Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Add package import-closure test and include schemas

4 months ago

6e176ec
Authored
mweinbach6/2/2026, 12:28:07 PM
Add a new test (test/package-import-closure.test.ts) that runs `npm pack --dry-run` and verifies that all relative imports within packaged files resolve to files included in the npm tarball; it also enforces an allowlist and validation for deliberate relative imports into node_modules. Update package.json to stop excluding src/server/jsonrpc/schema.backups.ts and src/shared/jsonrpcControlSchemas.ts from the published files list, and update test/package-manifest.test.ts expectations accordingly because runtime route handlers require these JSON-RPC control schemas to ship. The new tests only run on POSIX CI/dev shells and include resolution heuristics to mirror TS/ESM resolution rules.

Parente98f9b2

3 files changed
  • package.json+0−2
  • test/package-import-closure.test.ts+279−0
  • test/package-manifest.test.ts+5−2