@spunto/build 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -163,10 +163,11 @@ installed on its behalf. Import `./spec` without zod and resolution fails loudly
163
163
  right trade for not taxing every other entry point.
164
164
 
165
165
  Concretely: **no platform I/O**. No database, no Docker socket, no WebSocket. This package produces
166
- strings and parses strings; its only network call is outbound HTTP to a public extension registry,
167
- with no platform credential attached. Configuration arrives as function parameters — never read from
168
- the environment — so that one control plane can scope a setting per organization and another per
169
- process without either shape leaking in here.
166
+ strings and parses strings. Its only network calls are outbound HTTP on the caller's behalf — a
167
+ public extension registry, and a model vendor's catalogue endpoint when you hand
168
+ `resolveContextWindow` a credential — and it holds no credential of its own. Configuration arrives
169
+ as function parameters, never read from the environment, so that one control plane can scope a
170
+ setting per organization and another per process without either shape leaking in here.
170
171
 
171
172
  That rule is what makes the package testable, safe to import from a node agent as well as from an
172
173
  API, and the reason it can't simply be folded into the design system: a script generator needs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spunto/build",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Spunto's shared Build engine \u2014 the devcontainer image protocol and VS Code extension registry clients, with no database, no HTTP framework and no UI.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -39,4 +39,16 @@ export type {
39
39
  UsageInput,
40
40
  } from "./agent-stream"
41
41
 
42
- export { contextWindowOf } from "./model-window"
42
+ // Model context windows. `liveContextWindow`/`resolveContextWindow` take a credential as a
43
+ // *parameter* and ask the model vendor's own API — the package still reads no environment and
44
+ // holds no key of its own, but it is the one place here that talks to something other than a
45
+ // public registry, and it does so on the caller's behalf. `resetModelWindowCache` exists for
46
+ // tests: the lookup memoises per process.
47
+ export {
48
+ apiModelId,
49
+ contextWindowOf,
50
+ liveContextWindow,
51
+ resetModelWindowCache,
52
+ resolveContextWindow,
53
+ } from "./model-window"
54
+ export type { ModelCredential } from "./model-window"