Files
Malte UblandClaude Opus 5.5 f2eeda7fb8 Compile augmented npm packages from scriptc-pm source overlays (--sources)
`scriptc build|run|coverage --sources[=<manifest>]` reads a scriptc-pm
schema-1 manifest (default: the nearest .scriptc-pm/manifest.json above
the entry) and compiles each augmented package instance from its
TypeScript overlay instead of its published JS.

- Instances are keyed by realpath(installedDir). The resolver redirects
  an import that lands in an instance's installed directory to the
  instance's exports inside its overlay (resolveSourceOverlayModule);
  overlay files compile as program modules.
- tsgo gets the pilot's "paths" injection, but only for names with a
  single augmented instance; other instances start dropped, and a second
  installed copy of a redirected name drops it too.
- Fallback per instance through the drop-and-reload loop: a preflight
  diagnostic in an overlay, a program type error naming it, a top-level
  require() edge to it, a lowering refusal inside it, or a program that
  only fails against the source surface (probe) drops the overlay and
  the package compiles from published JS. Reasons are reported on stderr
  and as "source"/"source-fallback" rows in coverage.
- Build caches key by the manifest's lockDigest and bytes instead of
  being bypassed; the network-fetching --provenance-sources pilot stays
  uncacheable and becomes one more producer of the same overlay set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 19:40:55 -07:00
..
2026-07-22 18:08:04 -05:00