docs(agents): add .npmrc canonical template rule to AGENTS.md

Never edit .npmrc directly in product repos — managed by
canonical template in learning_ai_common_plat/scripts/npmrc.template.
Use sync-npmrc.sh to propagate. Prevents gitea.bytelyst.com hardcoding.
This commit is contained in:
saravanakumardb1 2026-04-14 11:57:26 -07:00
parent 163f488506
commit ea2d8029ff

View File

@ -178,6 +178,15 @@ learning_ai_notes/
- All colors via `--nl-*` CSS custom properties from `@bytelyst/design-tokens` — never hardcode hex values - All colors via `--nl-*` CSS custom properties from `@bytelyst/design-tokens` — never hardcode hex values
- Every interactive element must have `aria-label` or visible text label - Every interactive element must have `aria-label` or visible text label
### .npmrc — NEVER edit directly
**`.npmrc` is managed by a canonical template in `learning_ai_common_plat`.** Never create or hand-edit `.npmrc` — it will drift.
- **Template:** `../learning_ai_common_plat/scripts/npmrc.template`
- **Sync:** `cd ../learning_ai_common_plat && bash scripts/sync-npmrc.sh`
- **Key rule:** Never hardcode `gitea.bytelyst.com` — use `${GITEA_NPM_HOST:-localhost}:3300` (SSH tunnel on corp network)
### MUST NOT do ### MUST NOT do
- Never use `console.log` in production code — use `req.log` or `app.log` in Fastify - Never use `console.log` in production code — use `req.log` or `app.log` in Fastify