fix(config): remove :3300 port from Gitea npm registry URLs
The Gitea instance runs on default port 80, not 3300. Updated the npmrc template and AGENTS.md references accordingly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
da98c9fd3f
commit
e83ab9907e
@ -1,6 +1,7 @@
|
|||||||
# AGENTS.md — AI Coding Agent Instructions
|
# AGENTS.md — AI Coding Agent Instructions
|
||||||
|
|
||||||
<!-- BEGIN: canonical-behavior-pointer (auto-managed) -->
|
<!-- BEGIN: canonical-behavior-pointer (auto-managed) -->
|
||||||
|
|
||||||
> **Read first (ecosystem-wide agent behavior):**
|
> **Read first (ecosystem-wide agent behavior):**
|
||||||
> [`AI.dev/SKILLS/agent-behavior-guidelines.md`](AI.dev/SKILLS/agent-behavior-guidelines.md)
|
> [`AI.dev/SKILLS/agent-behavior-guidelines.md`](AI.dev/SKILLS/agent-behavior-guidelines.md)
|
||||||
>
|
>
|
||||||
@ -10,6 +11,7 @@
|
|||||||
> Cosmos doc, conventional commits, style preservation).
|
> Cosmos doc, conventional commits, style preservation).
|
||||||
>
|
>
|
||||||
> The per-repo content below extends — never duplicates — the canonical rules.
|
> The per-repo content below extends — never duplicates — the canonical rules.
|
||||||
|
|
||||||
<!-- END: canonical-behavior-pointer -->
|
<!-- END: canonical-behavior-pointer -->
|
||||||
|
|
||||||
> **For:** Claude Code, OpenAI Codex, Cursor, GitHub Copilot, Windsurf Cascade, and any AI coding agent.
|
> **For:** Claude Code, OpenAI Codex, Cursor, GitHub Copilot, Windsurf Cascade, and any AI coding agent.
|
||||||
@ -158,7 +160,7 @@ learning_ai_common_plat/
|
|||||||
- **Template:** `scripts/npmrc.template` in this repo (learning_ai_common_plat)
|
- **Template:** `scripts/npmrc.template` in this repo (learning_ai_common_plat)
|
||||||
- **Sync:** `bash scripts/sync-npmrc.sh` — copies template to all 13 product repos
|
- **Sync:** `bash scripts/sync-npmrc.sh` — copies template to all 13 product repos
|
||||||
- **Audit:** `bash scripts/check-npmrc-drift.sh` — detects drift (CI-ready, exits 1 on mismatch)
|
- **Audit:** `bash scripts/check-npmrc-drift.sh` — detects drift (CI-ready, exits 1 on mismatch)
|
||||||
- **Key config:** `@bytelyst:registry` uses `${GITEA_NPM_HOST:-localhost}:3300` SSH tunnel — never hardcode `gitea.bytelyst.com` (unreachable on corp network)
|
- **Key config:** `@bytelyst:registry` uses `${GITEA_NPM_HOST:-localhost}` — never hardcode `gitea.bytelyst.com` (unreachable on corp network)
|
||||||
- **If adding a new repo:** add it to the `REPOS` array in both `sync-npmrc.sh` and `check-npmrc-drift.sh`, then run sync
|
- **If adding a new repo:** add it to the `REPOS` array in both `sync-npmrc.sh` and `check-npmrc-drift.sh`, then run sync
|
||||||
|
|
||||||
### MUST NOT do
|
### MUST NOT do
|
||||||
@ -166,7 +168,7 @@ learning_ai_common_plat/
|
|||||||
- 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
|
||||||
- Never use `any` type — use Zod inference or explicit types
|
- Never use `any` type — use Zod inference or explicit types
|
||||||
- Never hardcode secrets or API keys
|
- Never hardcode secrets or API keys
|
||||||
- Never hardcode `gitea.bytelyst.com` in `.npmrc` — use `${GITEA_NPM_HOST:-localhost}:3300` via the canonical template
|
- Never hardcode `gitea.bytelyst.com` in `.npmrc` — use `${GITEA_NPM_HOST:-localhost}` via the canonical template
|
||||||
- Secret guardrails: Husky runs `scripts/secret-scan-staged.sh` (pre-commit) and `scripts/secret-scan-repo.sh` (pre-push). See `docs/WINDSURF/CODEX_SESSION_SUMMARY_AND_PLAYBOOK.md`.
|
- Secret guardrails: Husky runs `scripts/secret-scan-staged.sh` (pre-commit) and `scripts/secret-scan-repo.sh` (pre-push). See `docs/WINDSURF/CODEX_SESSION_SUMMARY_AND_PLAYBOOK.md`.
|
||||||
- Never commit real emulator keys or blob account keys in tracked files; keep placeholders in `.env.example`
|
- Never commit real emulator keys or blob account keys in tracked files; keep placeholders in `.env.example`
|
||||||
- Never modify tests to make them pass — fix the actual code
|
- Never modify tests to make them pass — fix the actual code
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/${GITEA_NPM_OWNER:-learning_ai_user}/npm/
|
@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}/api/packages/${GITEA_NPM_OWNER:-learning_ai_user}/npm/
|
||||||
//${GITEA_NPM_HOST:-localhost}:3300/api/packages/${GITEA_NPM_OWNER:-learning_ai_user}/npm/:_authToken=${GITEA_NPM_TOKEN}
|
//${GITEA_NPM_HOST:-localhost}/api/packages/${GITEA_NPM_OWNER:-learning_ai_user}/npm/:_authToken=${GITEA_NPM_TOKEN}
|
||||||
strict-ssl=false
|
strict-ssl=false
|
||||||
link-workspace-packages=true
|
link-workspace-packages=true
|
||||||
prefer-workspace-packages=true
|
prefer-workspace-packages=true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user