From 6064d7d2273cc791ab8983a3367b6ccc202321c1 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Tue, 14 Apr 2026 11:57:23 -0700 Subject: [PATCH] docs(agents): add .npmrc canonical template rule to AGENTS.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- AGENTS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index daddebf..2b24065 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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