@intentic/sandbox-contract 1.238.0 → 1.239.0
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/dist/contracts/agent.contract.d.ts +21 -2
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +1 -1
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +12 -2
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/events.d.ts +13 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +10 -0
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +138 -118
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/engines.d.ts +157 -0
- package/dist/schemas/engines.d.ts.map +1 -0
- package/dist/schemas/engines.js +70 -0
- package/dist/schemas/engines.js.map +1 -0
- package/dist/schemas/plan-limits.d.ts +19 -0
- package/dist/schemas/plan-limits.d.ts.map +1 -1
- package/dist/schemas/plan-limits.js +8 -1
- package/dist/schemas/plan-limits.js.map +1 -1
- package/dist/workspace-state.d.ts +5 -0
- package/dist/workspace-state.d.ts.map +1 -1
- package/dist/workspace-state.js +1 -0
- package/dist/workspace-state.js.map +1 -1
- package/package.json +4 -4
- package/src/contracts/agent.contract.ts +1 -1
- package/src/events.test.ts +14 -0
- package/src/events.ts +44 -7
- package/src/index.ts +1 -0
- package/src/schemas/engines.ts +129 -0
- package/src/schemas/plan-limits.ts +31 -12
- package/src/workspace-state.test.ts +5 -0
- package/src/workspace-state.ts +12 -0
|
@@ -334,6 +334,11 @@ describe(`VERSIONED_STATE_PATHS`, () => {
|
|
|
334
334
|
* node:fs, and both used to reach that far with no diff anywhere. Kept rather than consumed, one
|
|
335
335
|
* small file at a time, so tracking them yields a record instead of churn. */
|
|
336
336
|
`.intentic/config/drafts/`,
|
|
337
|
+
/* Where each agent engine takes its version from. Tracked for the same reason heavy-commands is:
|
|
338
|
+
* it is a standing decision about what runs for everyone on this workspace — tracking upstream's
|
|
339
|
+
* newest Claude Code, or pinning one while a regression is open — and `git log` is the only thing
|
|
340
|
+
* that answers "since when". */
|
|
341
|
+
`.intentic/config/engines.json`,
|
|
337
342
|
`.intentic/config/environment.Dockerfile`,
|
|
338
343
|
`.intentic/config/environment.custom.Dockerfile`,
|
|
339
344
|
`.intentic/config/environment.d/`,
|
package/src/workspace-state.ts
CHANGED
|
@@ -249,6 +249,18 @@ const STATE_FILES = [
|
|
|
249
249
|
* missing tools, and arriving with the recurrence memory is the whole reason it is kept. The drift snapshot
|
|
250
250
|
* inside is machine-scoped, and self-expires on the move: its bornAt can never match the new container. */
|
|
251
251
|
{ path: ".intentic/records/runtime-installs.json", invalidates: ["environment"], portability: "carry" },
|
|
252
|
+
/* Where each agent ENGINE's version comes from: the blessed list, upstream's newest, a pin, or the image
|
|
253
|
+
* (schemas/engines.ts). The versions themselves are machine state and live on the daemon's volume, because
|
|
254
|
+
* they are architecture-specific binaries; the POLICY is a decision about this workspace's work and travels
|
|
255
|
+
* with it — a team that pins Claude Code while a regression is open wants that pin to survive the move to a
|
|
256
|
+
* fresh sandbox rather than to be rediscovered by hitting the regression again.
|
|
257
|
+
*
|
|
258
|
+
* `versioned` for the config slice's usual reason (personas.json's entry argues it): it changes at human
|
|
259
|
+
* speed, holds no secret, and "since when have we been tracking upstream's newest on this repo" is a
|
|
260
|
+
* question only `git log` answers. Its own key rather than `environment`'s: the engines card is drawn on
|
|
261
|
+
* that page but reads its own route, and a channel change must not cost every open Environment tab a
|
|
262
|
+
* re-read of the overlay it did not touch. */
|
|
263
|
+
{ path: ".intentic/config/engines.json", invalidates: ["engines"], portability: "carry", versioned: true },
|
|
252
264
|
/* Written by the AGENT's file tools (the drafts skill), read by the owner's approval inbox, the one entry
|
|
253
265
|
* here whose whole point is that a change arrives from outside the browser that renders it. `authored`:
|
|
254
266
|
* a draft is text somebody wrote, and "find the reddit draft about X" is an ordinary search.
|