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:23 -07:00
parent 2bf172935b
commit 6064d7d227

View File

@ -167,6 +167,15 @@ learning_ai_clock/
- All web colors via `--cm-*` CSS custom properties from `@bytelyst/design-tokens` — never hardcode hex values
- 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
- Never use `console.log` in production code