# dependencies
**/node_modules
/.pnp
.pnp.js

# testing
**/coverage
**/coverage-node-only
apps/nsai/server/scripts/**/test-report.xml

# next.js
/.next/
/out/

# production
/build
**/dist

# WXT (browser extension)
/apps/nsai/browser-extension/.output/
/apps/nsai/browser-extension/.wxt/

# generated Teams bot app package
apps/nsai/server/scripts/teams-bot/build/
apps/nsai/server/nsai-bot.zip

# downloaded Swagger UI assets (regenerated by `npm run prepare:swagger-assets`)
apps/nsai/server/swagger-static/

# misc
.DS_Store
*.pem
# NOTE: `*.pem` above covers qradar-ca.pem / client.pem, but NOT the private key
# — docs/security/qradar-dsm-setup.md tells the operator to use `client.key` for
# SIEM_SYSLOG_TLS_KEY_PATH, and that is exactly the file the `./siem-tls` mount
# in the ops/ compose stacks carries. A TLS private key must never be
# committable.
*.key
# NOTE: host side of the read-only `./siem-tls:/etc/nodeshift:ro` mount in the
# ops/ compose files — operator-supplied SIEM TLS material (CA bundle, client
# cert, client key). Ignored wherever it is created.
siem-tls/
# NOTE: NSAI-3441 — the bundled Grafana's admin login (`env_file` of
# nsai-grafana in ops/docker-compose.1vm.monitoring.yaml), created by the
# operator next to the compose file. Ignored wherever it is created.
grafana.env

# NOTE: the license relay's PUBLIC key is meant to be in the repository — the
# client seals a developer's portal API key to it before dispatching the mint
# workflow (scripts/license-relay/). Only its private half is secret, and that
# lives in the LICENSE_RELAY_PRIVATE_KEY repository secret and nowhere else.
!.github/license-relay-public.pem

.claude/*
!.claude/skills
!.claude/agents/
!.claude/hooks/
!.claude/settings.json
!.claude/.gitignore

.codex/*
!.codex/skills

.cursor/*
!.cursor/skills

.agents/*
!.agents/skills/
!.agents/notes/

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local security-audit sink (AUDIT_LOG_PATH) — never commit. The file carries
# raw audit events (source IP, user-agent, email addresses, filenames) whenever
# LOG_PII_SANITIZATION_ENABLED is off, so every filename shape it ships under is
# ignored: `audit.log` is the historical local name and `audit-events.log` is
# what the ops/ compose stacks set AUDIT_LOG_PATH to.
audit.log
audit-events*.log*

# local env files
.env*.local
.env
.env.*
!.env.example
!.env.*.example
# NOTE: NSAI-2358 flavor files live under `apps/nsai/server/.env-flavors/`.
# The `.env` rule above matches the dotfile directory itself; the
# negations below un-ignore the directory and its tracked contents.
!apps/nsai/server/.env-flavors/
!apps/nsai/server/.env-flavors/**

# license runtime state — encrypted monotonic counter written by LicenseService
# on every clock-integrity check. Per-machine, runtime-generated; never commit.
.license-state

# license runtime state — the last verdict from the vendor license service,
# encrypted, written only by an online-license binary (NSAI-6019). Same deal:
# per-machine, runtime-generated, never commit. The .tmp sibling is the atomic
# write's staging file, left behind only if the process dies mid-write.
.license-online-state
.license-online-state.tmp

# codespace auto-license bookkeeping (fingerprint + expiry of the last mint),
# written by .devcontainer/scripts/issue-codespace-license.sh (NSAI-3791).
.codespace-license.meta

# devcontainer per-codespace state (generated secrets, seed marker)
.devcontainer/.local/

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# IDE
.idea/
*.swp
*.swo

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# k6 load-test run artifacts
apps/nsai/load-tests/reports/

# Playwright
node_modules/
test-results/
playwright-report/
/blob-report/
/playwright/.cache/

# PR media capture (capture-ui-media skill) — screenshots/video are published
# to a pr-media/* branch, never committed to the feature branch. The capture
# spec/config are throwaway scaffolding the skill writes then deletes, as are
# the docs-capture.* pair the capture-docs-screenshots skill writes (its output
# PNGs are committed under apps/nsai/nsai-docs/static/img, the scaffolding is not).
.pr-media/
apps/nsai/web/pr-capture.config.*
apps/nsai/web/tests/pr-capture.spec.*
apps/nsai/web/docs-capture.config.*
apps/nsai/web/tests/docs-capture.spec.*

# Istanbul
.nyc_output/
.nyc_output_merged/

# sonar
.scannerwork

# Python
__pycache__/
*.py[cod]
*$py.class
.pytest_cache/
.mypy_cache/
.ruff_cache/
*.egg-info/
.coverage
.coverage.*
coverage.xml
htmlcov/
.venv/

# Docusaurus
apps/nsai/nsai-docs/node_modules/
apps/nsai/nsai-docs/build/
apps/nsai/nsai-docs/.docusaurus/

# Simulator feedback bridge (codespace <-> local Mac agent mailbox)
.bridge/

# NOTE: Default state dir (SIEM_STAND_HOME) of the SIEM test stand in
# scripts/siem-stand — stand.env, receiver logs, pids, the generated test PKI,
# secrets and snapshots. Machine-local, shared by every worktree; never commit.
/.siem-stand/

# NOTE: State of the multi-replica dev rig in scripts/multi-replica-rig (RIG_HOME):
# replica logs, pids, per-replica license state. The copy of the server build the
# replicas run from sits next to dist/. Machine-local; never commit.
/.multi-replica-rig/
/apps/nsai/server/.rig-dist/
/apps/nsai/server/.rig-dist.tmp/

# Redis snapshot written by a locally started redis-server
dump.rdb

# Trusted CI checkout — deploy-1vm.yml / nightly-e2e.yml clone github.sha here
# (see NSDO-87) so the deploy job runs its orchestration scripts from a tree the
# PR under deploy cannot edit. Never committed; on a self-hosted runner it would
# otherwise linger in `git status` between runs.
.ci-trusted/

# Temp files
temp/

# NOTE: Stryker mutation-testing artifacts (apps/nsai/server) — the sandbox a
# crashed run leaves behind, the HTML/JSON reports with the incremental file,
# and Stryker's own log.
**/.stryker-tmp/
apps/nsai/server/reports/
**/stryker.log

# NOTE: NSAI-6437 — Deep Research evaluation output (results.jsonl, run.json,
# summary.md) and the corpora a live run records for review.
apps/nsai/server/research-eval-results/
apps/nsai/server/research-eval-recorded/

# NOTE: NSAI-7137 — retrieval golden set run output (results.json, summary.md).
apps/nsai/server/retrieval-eval-results/

# summarizer prompt-tuning runs and local provider credentials (tools/try_summary.py)
apps/nsai/meeting-processor/summarizer/runs/
apps/nsai/meeting-processor/summarizer/.env.local

# NOTE: NSAI-7744 — built by deploy-1vm-app.yml on the runner, never committed.
ops/posthog-dashboards.mjs

# NOTE: NSAI-8114 — prompt-lean eval step-0 captures carry full prompts and
# are stored outside the repository; this is the backstop if one lands here.
*.step0.json
