learning_ai_common_plat/scripts
saravanakumardb1 cfcfc7bb90 fix(gitea): rewrite workspace:* in published tarballs (F16)
Resolves F16 in docker-build-optimization-roadmap v5.

Root cause:
  publish-outdated-packages.sh uses a pack-extract-repack pattern:
    1. pnpm pack (rewrites workspace:* in tarball)
    2. extract
    3. npm pack (re-tar from extracted content)
    4. npm publish

  Step 3 is the bug. npm pack does not recognize the pnpm-specific
  workspace: protocol — it treats workspace:* as a literal version
  string and passes it through to the final tarball. Result: any
  consumer doing 'pnpm install' inside Docker (where there is no
  workspace context) fails with ERR_PNPM_WORKSPACE_PKG_NOT_FOUND.

  Documented in roadmap §0 F16 + §3 Phase A-pre.

Fix (publish-outdated-packages.sh):
  - Insert a workspace:* rewriter between publishConfig strip and
    npm pack. Reads source package.json for each @bytelyst/* target,
    resolves workspace:* / workspace:^ / workspace:~ to ^x.y.z.
  - Add defense-in-depth: grep the post-rewrite package.json for any
    surviving 'workspace:' literal. If found, refuse to publish.

Republished 10 affected packages with workspace:* → resolved semver:
  @bytelyst/auth                0.1.5 → 0.1.6
  @bytelyst/diagnostics-client  0.1.6 → 0.1.7
  @bytelyst/events              0.1.5 → 0.1.6
  @bytelyst/extraction          0.1.5 → 0.1.6
  @bytelyst/fastify-auth        0.1.5 → 0.1.6
  @bytelyst/fastify-core        0.1.5 → 0.1.6
  @bytelyst/feedback-client     0.1.6 → 0.1.7
  @bytelyst/field-encrypt       0.1.6 → 0.1.7
  @bytelyst/react-auth          0.1.6 → 0.1.7
  @bytelyst/sync                0.1.5 → 0.1.6

Verification: all 10 packages now scan with 0 workspace:* refs in
their published package.json (per registry curl scan).

Unblocks: A0-V verification on learning_ai_clock (currently blocked
at learning_ai_clock@0be887288).
2026-05-27 01:29:29 -07:00
..
gitea fix(gitea): rewrite workspace:* in published tarballs (F16) 2026-05-27 01:29:29 -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 feat(gitea): parameterize owner via GITEA_NPM_OWNER + add doctor/token helpers 2026-05-27 00:41:47 -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