learning_ai_common_plat/scripts
saravanakumardb1 dd90f709e1 fix(gitea): set ROOT_URL=host.docker.internal, NO_PROXY for host (F17)
Resolves F17 in docker-build-optimization-roadmap.

Root cause:
  Gitea's app.ini ROOT_URL was http://localhost:3300/. Gitea bakes
  ROOT_URL into the dist.tarball field of every published package's
  metadata. Inside a Docker container, 'localhost' is the container
  itself, not the host \u2014 so any 'pnpm install' that needed to fetch
  a tarball would ECONNREFUSED, even though the registry metadata
  itself was reachable via host.docker.internal.

Server-side fix (not in git, requires manual replication on each dev
machine; documented in roadmap \u00a73 A-pre-6):
  - Edit /opt/homebrew/var/gitea/custom/conf/app.ini:
    ROOT_URL = http://host.docker.internal:3300/
  - brew services restart gitea
  - sudo sh -c 'echo "127.0.0.1 host.docker.internal" >> /etc/hosts'

Repo-side fix (this commit):
  - switch-network.sh: add host.docker.internal to NO_PROXY +
    NPM_CONFIG_NOPROXY when NETWORK=corp. Required so host-side curl/
    pnpm/npm bypass the corporate proxy (cso.proxy.att.com) when
    resolving host.docker.internal. Without this, host installs fail
    with the corp proxy's 'Unknown Host' 504 page.

Republished all 64 @bytelyst/* packages so tarball URLs reflect the
new ROOT_URL:
  - .publish-manifest.json: 64 entries with new content hashes
  - packages/*/package.json: 64 patch-version bumps
    (auto-bumped by publish-outdated-packages.sh because previous
    versions already existed in registry)

Verification:
  curl http://localhost:3300/.../@bytelyst%2Ferrors | jq .dist.tarball
  → http://host.docker.internal:3300/.../errors-0.1.11.tgz  (was localhost:3300)
  workspace:* refs across all 64 packages: 0

Unblocks: A0-V on every pilot. Verified PASSING on learning_ai_clock:
  backend cold build: 59.2 s
  web cold build:     3:13 (193 s)
  Both via Gitea registry, no docker-prep.sh tarballs needed.
2026-05-27 01:51:43 -07:00
..
gitea fix(gitea): set ROOT_URL=host.docker.internal, NO_PROXY for host (F17) 2026-05-27 01:51:43 -07:00
backup-main.sh ci: update CI/CD configuration 2026-03-10 11:32:25 -07:00
check-agent-docs-drift.sh feat(drift-check): forbid per-tool subdirectory AGENTS.md duplicates 2026-05-23 13:07:26 -07:00
check-npmrc-drift.sh feat(scripts): add .npmrc template + sync/drift-check scripts (DRY) 2026-04-14 11:48:55 -07:00
check-prototype-env.sh Add prototype deployment workflow 2026-03-14 05:01:09 +00:00
check-rule-violations.sh fix(scripts): string-literal / JSX-text false-positive heuristic for ts-any-type 2026-05-23 23:48:09 -07:00
check-token-drift.sh chore(ci): add local token drift check script 2026-03-28 01:01:06 -07:00
commit-workspace.sh ci: update CI/CD configuration 2026-03-29 10:50:53 -07:00
cosmos-telemetry-indexes.sh feat(telemetry): Phase 3 — cluster resolve/ignore, audit logging, webhook alerts, metrics endpoint, Cosmos indexes 2026-02-17 10:50:29 -08:00
create-encryption-keys.sh feat(field-encrypt): create @bytelyst/field-encrypt package with AES-256-GCM envelope encryption 2026-03-21 09:18:10 -07:00
deploy-admin-hotcopy.sh feat(admin-web): adopt trading web deployment model with docker-compose 2026-05-11 03:24:33 +00:00
docker-clean.sh chore(docker): add interactive cleanup menu 2026-05-05 18:28:55 -07:00
docker-prep.sh feat(platform-service): update Dockerfile for pnpm workspace support 2026-02-12 23:43:40 -08:00
encrypt-migrate.ts feat(devops): encryption migration CLI with embedded product configs 2026-03-21 13:19:55 -07:00
export-lysnr-kv.sh chore: add kv export audit 2026-02-15 00:43:29 -08:00
fix-npmrc-all-repos.sh chore(gitea): rename npm package owner ByteLyst -> learning_ai_user 2026-05-26 18:38:57 -07:00
godaddy-sync-bytelyst-dns.sh feat(dns): add ollama hostname support 2026-03-31 10:07:38 +00:00
lint-infra.sh chore(scripts): add lint-infra, typecheck-all, test-all cross-repo scripts 2026-03-26 23:15:16 -07:00
npmrc.template feat(gitea): parameterize owner via GITEA_NPM_OWNER + add doctor/token helpers 2026-05-27 00:41:47 -07:00
package.json feat(devops): encryption migration CLI with embedded product configs 2026-03-21 13:19:55 -07:00
prep-consumer.sh fix(docker): preserve peer deps in packed packages 2026-03-23 18:24:57 -07:00
prototype-self-test.sh Add prototype storage diagnostics and smoke test 2026-03-14 06:06:35 +00:00
prototype-up.sh Add Cosmos emulator prototype support 2026-03-14 05:24:01 +00:00
secret-scan-repo.sh chore(security): add secret scanning + playbook 2026-02-14 00:24:41 -08:00
secret-scan-staged.sh chore(security): add secret scanning + playbook 2026-02-14 00:24:41 -08:00
seed-keyvault.sh feat: add AKV seed script and AZURE_KEYVAULT_URL to .env.example 2026-02-14 22:25:04 -08:00
seed-lysnr-kv.sh ci: add lysnr kv seeder 2026-02-15 00:31:31 -08:00
setup-husky.sh chore(husky): run hooks from repo root and avoid npx 2026-02-14 12:55:41 -08:00
switch-network.sh fix(gitea): set ROOT_URL=host.docker.internal, NO_PROXY for host (F17) 2026-05-27 01:51:43 -07:00
sync-npmrc.sh feat(scripts): add .npmrc template + sync/drift-check scripts (DRY) 2026-04-14 11:48:55 -07:00
sync-workflows.sh fix(workflows): normalize repo management coverage 2026-03-24 16:05:12 -07:00
test-all.sh chore(scripts): add lint-infra, typecheck-all, test-all cross-repo scripts 2026-03-26 23:15:16 -07:00
tsconfig.json fix(scripts): add tsconfig.json — fixes pnpm typecheck failure 2026-03-21 15:55:27 -07:00
typecheck-all.sh chore(scripts): add lint-infra, typecheck-all, test-all cross-repo scripts 2026-03-26 23:15:16 -07:00
update-agent-docs.sh docs: consolidate learning_ai_smart_auth references into learning_ai_auth_app 2026-05-24 14:31:38 -07:00