You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore: sourcemaps in dist/ point to missing src/ — include src/ in npm publish or use inlineSources #94
The published `@stackbilt/llm-providers` package (v1.17.2) includes `.js.map` files in `dist/` that reference `../src/*.ts` as their source paths, but `src/` is not included in the published package. This causes vitest (and any other tool that consumes sourcemaps) to emit warnings on every test run:
```
Sourcemap for ".../node_modules/@stackbilt/llm-providers/dist/index.js" points to missing source files
Sourcemap for ".../node_modules/@stackbilt/llm-providers/dist/canonical.js" points to missing source files
Sourcemap for ".../node_modules/@stackbilt/llm-providers/dist/gateway-routing.js" points to missing source files
```
(28 warnings total — one per dist file)
Verified via:
$ cat dist/index.js.map | python3 -c "import json,sys; d=json.load(sys.stdin); print(d['sources'])"
['../src/index.ts']
$ ls node_modules/@stackbilt/llm-providers/src
ls: cannot access '...src': No such file or directory
Fix (pick one)
Option A — include src/ in the package (enables step-through debugging):
Add "src" to the files array in package.json:
"files": ["dist", "src"]
Option B — strip sourcemaps from the published dist (smaller package, no warnings):
In tsconfig.json or the build command, set "sourceMap": false or add --no-source-maps to the build step.
Option C — inline sources into the map (single file, no missing reference):
Set "inlineSources": true in tsconfig.json. The .map files will embed the source content directly, so no separate src/ needed.
Option A is preferred if downstream consumers step through llm-providers code during debugging. Option B is fine if sourcemaps aren't needed in consumers.
Context
Observed in aegis-daemon v2.25.2 test suite. Not a test failure — all 1863 tests pass — but 28 warnings pollute every vitest run output and make real failures harder to spot.
This work is uncommitted/unpushed on main, based on 8a9eda6c058d63f0ec08332f6a408aaf409232cf, and is not merged or released. Keep this issue open pending review/integration. The local handoff is docs/maintenance/issue-sweep.md; it will travel with the code.
Implemented Option C: tsconfig.json enables inlineSources. scripts/package-smoke.sh now checks embedded sourcesContent in packaged .js.map files. Manual pack/unpack verification on Windows found 33 complete, nonempty JavaScript maps. The shell package-smoke script itself was not run on this host; its artifact checks were exercised manually. Declaration maps are not covered by this JavaScript-map fix.
Remaining: review, CI/package validation and integration. Version remains 1.21.0; no published package has changed.
Validation for the combined local sweep: 605 tests pass across 27 files, TypeScript typecheck passes, Worker-targeted bundle/import smoke passes. Packed entrypoint exports/client methods and all 33 JavaScript sourcemaps were checked on Windows with Node 24.19.0/npm 11.17.0. No live/billable providers or workerd execution; this does not prove minimum Node-version compatibility.
Closing: shipped in 1.22.0. tsconfig.json sets inlineSources, and scripts/package-smoke.sh checks that packaged JavaScript maps embed their sources. Re-checked 2026-11-08 against the published 1.25.0 package: all 36 .js.map files carry non-empty sourcesContent, so tools no longer look for the missing src/. Declaration maps (.d.ts.map) still point to ../src; they were outside this issue.
Activity
stackbilt-admin commentedon Oct 13, 2026
Local implementation checkpoint — 2026-10-12
This work is uncommitted/unpushed on
main, based on8a9eda6c058d63f0ec08332f6a408aaf409232cf, and is not merged or released. Keep this issue open pending review/integration. The local handoff isdocs/maintenance/issue-sweep.md; it will travel with the code.Implemented Option C:
tsconfig.jsonenablesinlineSources.scripts/package-smoke.shnow checks embeddedsourcesContentin packaged.js.mapfiles. Manual pack/unpack verification on Windows found 33 complete, nonempty JavaScript maps. The shell package-smoke script itself was not run on this host; its artifact checks were exercised manually. Declaration maps are not covered by this JavaScript-map fix.Remaining: review, CI/package validation and integration. Version remains 1.21.0; no published package has changed.
Validation for the combined local sweep: 605 tests pass across 27 files, TypeScript typecheck passes, Worker-targeted bundle/import smoke passes. Packed entrypoint exports/client methods and all 33 JavaScript sourcemaps were checked on Windows with Node 24.19.0/npm 11.17.0. No live/billable providers or workerd execution; this does not prove minimum Node-version compatibility.
feat: streaming lifecycle, tenant-safe caching, client-scoped resilie…
stackbilt-admin commentedon Nov 8, 2026
Closing: shipped in 1.22.0.
tsconfig.jsonsetsinlineSources, andscripts/package-smoke.shchecks that packaged JavaScript maps embed their sources. Re-checked 2026-11-08 against the published 1.25.0 package: all 36.js.mapfiles carry non-emptysourcesContent, so tools no longer look for the missingsrc/. Declaration maps (.d.ts.map) still point to../src; they were outside this issue.fix: address review on DeepSeek V4.1 Flash
feat: add Workers AI DeepSeek V4.1 Flash (#144)