Skip to content

fix(atlas): restore packaged runtime and guard release staging - #122

Merged
gsvprharsha merged 4 commits into
tempestai-dev:mainfrom
bferanmi806-sketch:fix/117-atlas-packaging
Sep 19, 2026
Merged

gsvprharsha merged 4 commits into
tempestai-dev:mainfrom
bferanmi806-sketch:fix/117-atlas-packaging

Conversation

@bferanmi806-sketch

Copy link
Copy Markdown
Contributor

Fixes the Windows Atlas indexing failure where installed builds shipped no dist/mcp/server-entry.js.

Confirmed root cause: node_modules/@usetempest/atlas had silently become a local link to packages/atlas (workspace-glob side effect in 671fd4b; the follow-up exclusion in 1442b4c never regenerated the lock, so every npm ci reproduced the junction). That checkout ships no dist/ and root install never builds it, yet install-atlas.mjs staged it unchecked - then deleted src/ - so the installer bundled a tree with neither source nor build output.

What this changes:

  • package-lock.json now resolves @usetempest/[email protected] from the registry again (entry byte-identical to the v0.1.20 known-good lock) and drops the stale packages/atlas workspace/dev closure. Delta vs main is exactly: 1 entry modified, 1 nested ignore pinned to 7.0.6, 82 stale entries removed; no other version or metadata changes.
  • scripts/install-atlas.mjs verifies the source tree before staging (compiled entry points plus wasm assets; a fully built local packages/atlas checkout is allowed with a warning for integration testing, an unbuilt one fails clearly) and re-verifies the staged bundle after pruning, so missing runtime artifacts fail the build instead of the installer.
  • packages/atlas/package.json: removed the accidental self-dependency (no source file imports it).
  • src/atlas/atlas-release.check.ts: new npm test self-check pinning the registry resolution in the lockfile and the bundle's runtime files.

Closes #117

Tests run:

  • npm ci under npm 10.9.9 (release CI toolchain family): clean, lock untouched; install-atlas verification green.
  • npm test: 15/16; new atlas-release check passes. The single failure is the pre-existing AgentQuotaStrip.check.ts module-resolution failure, reproduced on the pristine base and unrelated to this change.
  • npx tsc --noEmit clean; staged dist/index.js loads; negative staging cases (missing dist, unbuilt local link) fail fast as intended.

node_modules/@usetempest/atlas had become a local link to packages/atlas (workspace-glob side effect in 671fd4b, lock never regenerated in 1442b4c). That checkout ships no dist/ and root npm ci never builds it, so install-atlas.mjs staged a tree with neither src/ (pruned) nor dist/ and the installer shipped without dist/mcp/server-entry.js (tempestai-dev#117). Resolve the published 1.3.2 tarball again, drop the dead workspace-linked dev closure from the lock, remove the accidental self-dependency, and fail staging loudly when the source lacks compiled output or pruning drops runtime assets.


Fails npm test if the lockfile ever links @usetempest/atlas back to the local checkout, if the self-dependency returns, or if a staged bundle present in the tree lacks its runtime entry points; live-tree assertions skip gracefully on partial checkouts while install-atlas.mjs enforces the same invariants hard during npm ci.
…registry tree

Restore the libc metadata npm 11 dropped from 39 unrelated Linux optional packages, drop the empty cli-darwin-universal stub entry, and pin the Atlas-nested ignore to 7.0.6 as in the v0.1.20 registry lock instead of the freshly resolved 7.0.9. The delta against origin/main is now exactly: Atlas link to registry 1.3.2, one nested ignore entry, and removal of the stale packages/atlas workspace/dev closure. Validated with npm 10.9.9 (release CI toolchain family): package-lock-only regen is a no-op except npm 10's own peer-flag noise, and a full npm ci installs cleanly without touching the lock.
verifySource() no longer rejects a node_modules/@usetempest/atlas link to packages/atlas outright; it warns and stages when every required compiled runtime file and asset exists, so intentional local integration testing keeps working. An unbuilt local tree still fails clearly on the missing dist output. The release check mirrors this: the lockfile assertions continue to pin the registry package for official installs, while the live-tree assertion requires completeness wherever Atlas resolves from.
@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

@bferanmi806-sketch is attempting to deploy a commit to the Tempest OSS Team on Vercel.

A member of the Team first needs to authorize it.

@bferanmi806-sketch
bferanmi806-sketch marked this pull request as draft September 18, 2026 20:12
@bferanmi806-sketch
bferanmi806-sketch marked this pull request as ready for review September 18, 2026 20:16

@gsvprharsha gsvprharsha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Safe to merge. To test in another anonymous box to ensure there are no erros.

@gsvprharsha
gsvprharsha merged commit 13fe8fb into tempestai-dev:main Sep 19, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Windows: Atlas indexing fails — server-entry.js missing from NSIS install

2 participants