# nscout configuration
# Copy or rename this file to .env before running nscout.
# All values shown are the defaults. Edit only what you need to change.

# ─── Registries ───────────────────────────────────────────────────────────────

# Comma-separated list of registries to check by default.
# Available: npm, github, pypi, domains, dockerhub
NSCOUT_REGISTRIES=npm,github,pypi,domains,dockerhub

# Comma-separated list of TLDs to check when domains registry is enabled.
NSCOUT_DOMAINS=.com,.dev,.io,.sh

# ─── Performance ──────────────────────────────────────────────────────────────

# Number of names checked in parallel.
NSCOUT_CONCURRENCY=4

# Per-request timeout in milliseconds.
NSCOUT_TIMEOUT=8000

# ─── AI suggest ───────────────────────────────────────────────────────────────

# Number of name candidates to generate with --suggest.
NSCOUT_LIMIT=10

# Default naming style for --suggest: free | claw | short | portmanteau
NSCOUT_STYLE=free

# Maximum tokens returned by the AI provider for --suggest.
NSCOUT_AI_MAX_TOKENS=512

# Force a specific AI provider: openai, anthropic
# If not set, the first provider with a valid API key is used automatically.
# Without any key, --suggest falls back to a deterministic stub and warns to stderr.
NSCOUT_AI_PROVIDER=

# OpenAI
OPENAI_API_KEY=
OPENAI_MODEL=gpt-4.1-mini

# Anthropic
ANTHROPIC_API_KEY=
ANTHROPIC_MODEL=claude-haiku-4-5-20251001

# ─── GitHub ───────────────────────────────────────────────────────────────────

# Without a token: 60 requests/hour (unauthenticated).
# With a token: 5000 requests/hour.
GITHUB_TOKEN=

# ─── RDAP (domain checks) ─────────────────────────────────────────────────────

# Number of retry attempts on non-404 RDAP errors (e.g. rate limiting).
NSCOUT_RDAP_RETRY_COUNT=1

# Delay in milliseconds between RDAP retry attempts.
NSCOUT_RDAP_RETRY_DELAY_MS=600

# Domains expiring within this many days are shown as expiring rather than taken.
NSCOUT_EXPIRING_THRESHOLD_DAYS=30

# ─── nscout-ui ────────────────────────────────────────────────────────────────

# Port for the nscout-ui web server.
PORT=3000

# Path to the nscout binary. Defaults to "nscout" (must be in PATH).
# If nscout is not globally installed, set the full path:
# NSCOUT_BIN=/path/to/nscout/dist/cli/index.js
NSCOUT_BIN=node ../dist/cli/index.js
