@intentic/sandbox-contract 1.429.0 → 1.431.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/README.md +12 -2
- package/dist/app-routes/app-pages.d.ts +1 -0
- package/dist/app-routes/app-pages.d.ts.map +1 -1
- package/dist/app-routes/app-pages.js +1 -0
- package/dist/app-routes/app-pages.js.map +1 -1
- package/dist/app-routes/index.d.ts +1 -0
- package/dist/app-routes/index.d.ts.map +1 -1
- package/dist/app-routes/index.js +1 -0
- package/dist/app-routes/index.js.map +1 -1
- package/dist/app-routes/return-path.d.ts +2 -0
- package/dist/app-routes/return-path.d.ts.map +1 -0
- package/dist/app-routes/return-path.js +8 -0
- package/dist/app-routes/return-path.js.map +1 -0
- package/dist/contracts/accounts.contract.d.ts +7 -0
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/accounts.contract.js +2 -0
- package/dist/contracts/accounts.contract.js.map +1 -1
- package/dist/contracts/agent.contract.d.ts +381 -0
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +3297 -1568
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +35 -5
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/automations.contract.d.ts +31 -0
- package/dist/contracts/automations.contract.d.ts.map +1 -1
- package/dist/contracts/automations.contract.js +1 -0
- package/dist/contracts/automations.contract.js.map +1 -1
- package/dist/contracts/bookmarks.contract.d.ts +101 -0
- package/dist/contracts/bookmarks.contract.d.ts.map +1 -0
- package/dist/contracts/bookmarks.contract.js +51 -0
- package/dist/contracts/bookmarks.contract.js.map +1 -0
- package/dist/contracts/browser.contract.d.ts +176 -0
- package/dist/contracts/browser.contract.d.ts.map +1 -0
- package/dist/contracts/browser.contract.js +150 -0
- package/dist/contracts/browser.contract.js.map +1 -0
- package/dist/contracts/capabilities.contract.d.ts +48 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.js +3 -1
- package/dist/contracts/capabilities.contract.js.map +1 -1
- package/dist/contracts/device-ci-runners.contract.d.ts +108 -0
- package/dist/contracts/device-ci-runners.contract.d.ts.map +1 -0
- package/dist/contracts/device-ci-runners.contract.js +56 -0
- package/dist/contracts/device-ci-runners.contract.js.map +1 -0
- package/dist/contracts/device.contract.d.ts +87 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/device.contract.js +4 -0
- package/dist/contracts/device.contract.js.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +1 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.js +1 -1
- package/dist/contracts/extensions.contract.js.map +1 -1
- package/dist/contracts/git.contract.d.ts +7 -0
- package/dist/contracts/git.contract.d.ts.map +1 -1
- package/dist/contracts/issues.contract.d.ts +11 -0
- package/dist/contracts/issues.contract.d.ts.map +1 -1
- package/dist/contracts/needs.contract.d.ts +408 -0
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.d.ts +4 -0
- package/dist/contracts/offload.contract.d.ts.map +1 -1
- package/dist/contracts/ports.contract.d.ts +8 -0
- package/dist/contracts/ports.contract.d.ts.map +1 -1
- package/dist/contracts/ports.contract.js +6 -5
- package/dist/contracts/ports.contract.js.map +1 -1
- package/dist/contracts/remote.contract.d.ts +121 -0
- package/dist/contracts/remote.contract.d.ts.map +1 -0
- package/dist/contracts/remote.contract.js +80 -0
- package/dist/contracts/remote.contract.js.map +1 -0
- package/dist/contracts/runner.contract.d.ts +716 -15
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.js +49 -2
- package/dist/contracts/runner.contract.js.map +1 -1
- package/dist/contracts/runners.contract.d.ts +16 -0
- package/dist/contracts/runners.contract.d.ts.map +1 -0
- package/dist/contracts/runners.contract.js +15 -0
- package/dist/contracts/runners.contract.js.map +1 -0
- package/dist/contracts/safety.contract.d.ts.map +1 -1
- package/dist/contracts/safety.contract.js +1 -0
- package/dist/contracts/safety.contract.js.map +1 -1
- package/dist/contracts/seal.contract.d.ts +105 -0
- package/dist/contracts/seal.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +6 -0
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +48 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +28 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +1 -0
- package/dist/contracts/settings.contract.js.map +1 -1
- package/dist/contracts/skills.contract.d.ts +6 -0
- package/dist/contracts/skills.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +482 -4
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +70 -3
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/translator.contract.d.ts +7 -0
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.d.ts +3 -0
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +194 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +2 -2
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/agent-transcript.d.ts +48 -0
- package/dist/events/agent-transcript.d.ts.map +1 -1
- package/dist/events/agent-words.d.ts +5 -0
- package/dist/events/agent-words.d.ts.map +1 -1
- package/dist/events/agent-words.js +20 -1
- package/dist/events/agent-words.js.map +1 -1
- package/dist/events/failure-rows.d.ts +2 -2
- package/dist/events/failure-rows.d.ts.map +1 -1
- package/dist/events/failure-rows.js +13 -13
- package/dist/events/failure-rows.js.map +1 -1
- package/dist/events/refusal-incidents.d.ts +1 -0
- package/dist/events/refusal-incidents.d.ts.map +1 -1
- package/dist/events/refusal-incidents.js +42 -19
- package/dist/events/refusal-incidents.js.map +1 -1
- package/dist/events/resume.d.ts.map +1 -1
- package/dist/events/resume.js +12 -12
- package/dist/events/resume.js.map +1 -1
- package/dist/events/sandbox-notice.d.ts.map +1 -1
- package/dist/events/sandbox-notice.js.map +1 -1
- package/dist/events/system-events.d.ts +102 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +240 -0
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/ids/conversation-ids.d.ts +1 -0
- package/dist/ids/conversation-ids.d.ts.map +1 -1
- package/dist/ids/conversation-ids.js +2 -1
- package/dist/ids/conversation-ids.js.map +1 -1
- package/dist/ids/project-id.d.ts.map +1 -1
- package/dist/ids/project-id.js +4 -4
- package/dist/ids/project-id.js.map +1 -1
- package/dist/ids/run-row-ids.d.ts +8 -0
- package/dist/ids/run-row-ids.d.ts.map +1 -0
- package/dist/ids/run-row-ids.js +32 -0
- package/dist/ids/run-row-ids.js.map +1 -0
- package/dist/index.d.ts +12 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/models/agent-catalog.d.ts.map +1 -1
- package/dist/models/agent-catalog.js +3 -2
- package/dist/models/agent-catalog.js.map +1 -1
- package/dist/models/agent-lanes.d.ts.map +1 -1
- package/dist/models/agent-lanes.js +4 -1
- package/dist/models/agent-lanes.js.map +1 -1
- package/dist/models/agent-runtimes.d.ts.map +1 -1
- package/dist/models/agent-runtimes.js +2 -2
- package/dist/models/agent-runtimes.js.map +1 -1
- package/dist/models/agent-standing.d.ts +6 -1
- package/dist/models/agent-standing.d.ts.map +1 -1
- package/dist/models/agent-standing.js +1 -0
- package/dist/models/agent-standing.js.map +1 -1
- package/dist/models/providers/provider-traits.d.ts +215 -0
- package/dist/models/providers/provider-traits.d.ts.map +1 -0
- package/dist/models/providers/provider-traits.js +60 -0
- package/dist/models/providers/provider-traits.js.map +1 -0
- package/dist/netd/browser-wire.d.ts +58 -1
- package/dist/netd/browser-wire.d.ts.map +1 -1
- package/dist/netd/browser-wire.js +27 -0
- package/dist/netd/browser-wire.js.map +1 -1
- package/dist/netd/generated/browser-wire.d.ts +135 -0
- package/dist/netd/generated/browser-wire.d.ts.map +1 -1
- package/dist/netd/generated/wire.d.ts +56 -1
- package/dist/netd/generated/wire.d.ts.map +1 -1
- package/dist/policy/admin/admin-grant.d.ts +21 -0
- package/dist/policy/admin/admin-grant.d.ts.map +1 -0
- package/dist/policy/admin/admin-grant.js +41 -0
- package/dist/policy/admin/admin-grant.js.map +1 -0
- package/dist/policy/capabilities/capability-kinds.d.ts +268 -0
- package/dist/policy/capabilities/capability-kinds.d.ts.map +1 -0
- package/dist/policy/capabilities/capability-kinds.js +47 -0
- package/dist/policy/capabilities/capability-kinds.js.map +1 -0
- package/dist/policy/command-classes.d.ts.map +1 -1
- package/dist/policy/command-classes.js +3 -1
- package/dist/policy/command-classes.js.map +1 -1
- package/dist/policy/device-programs.d.ts +79 -2
- package/dist/policy/device-programs.d.ts.map +1 -1
- package/dist/policy/device-programs.js +15 -16
- package/dist/policy/device-programs.js.map +1 -1
- package/dist/policy/reserved-servers.d.ts.map +1 -1
- package/dist/policy/reserved-servers.js +5 -1
- package/dist/policy/reserved-servers.js.map +1 -1
- package/dist/policy/role-capability.d.ts.map +1 -1
- package/dist/policy/role-capability.js +2 -1
- package/dist/policy/role-capability.js.map +1 -1
- package/dist/policy/shell/command-normalise.d.ts +10 -0
- package/dist/policy/shell/command-normalise.d.ts.map +1 -0
- package/dist/policy/shell/command-normalise.js +153 -0
- package/dist/policy/shell/command-normalise.js.map +1 -0
- package/dist/protocol/doors/listener-protocol.d.ts +4 -0
- package/dist/protocol/doors/listener-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/listener-protocol.js +4 -0
- package/dist/protocol/doors/listener-protocol.js.map +1 -1
- package/dist/protocol/doors/loopback-proof.d.ts +8 -0
- package/dist/protocol/doors/loopback-proof.d.ts.map +1 -0
- package/dist/protocol/doors/loopback-proof.js +11 -0
- package/dist/protocol/doors/loopback-proof.js.map +1 -0
- package/dist/protocol/doors/pass-scopes.d.ts +4 -0
- package/dist/protocol/doors/pass-scopes.d.ts.map +1 -0
- package/dist/protocol/doors/pass-scopes.js +3 -0
- package/dist/protocol/doors/pass-scopes.js.map +1 -0
- package/dist/protocol/doors/runner-protocol.d.ts +187 -0
- package/dist/protocol/doors/runner-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/runner-protocol.js +48 -1
- package/dist/protocol/doors/runner-protocol.js.map +1 -1
- package/dist/protocol/doors/sandbox-pass.d.ts +19 -2
- package/dist/protocol/doors/sandbox-pass.d.ts.map +1 -1
- package/dist/protocol/doors/sandbox-pass.js +42 -10
- package/dist/protocol/doors/sandbox-pass.js.map +1 -1
- package/dist/protocol/member-reach.d.ts +6 -0
- package/dist/protocol/member-reach.d.ts.map +1 -1
- package/dist/protocol/member-reach.js +24 -0
- package/dist/protocol/member-reach.js.map +1 -1
- package/dist/protocol/peer-mcp-server.d.ts +2 -0
- package/dist/protocol/peer-mcp-server.d.ts.map +1 -1
- package/dist/protocol/peer-mcp-server.js +1 -0
- package/dist/protocol/peer-mcp-server.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +518 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +26 -2
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +182 -2
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +67 -35
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/protocol/route-meta.d.ts.map +1 -1
- package/dist/protocol/route-meta.js.map +1 -1
- package/dist/schemas/account-routes.d.ts +176 -0
- package/dist/schemas/account-routes.d.ts.map +1 -0
- package/dist/schemas/account-routes.js +73 -0
- package/dist/schemas/account-routes.js.map +1 -0
- package/dist/schemas/activity.d.ts.map +1 -1
- package/dist/schemas/activity.js.map +1 -1
- package/dist/schemas/agent-background.d.ts +48 -0
- package/dist/schemas/agent-background.d.ts.map +1 -0
- package/dist/schemas/agent-background.js +63 -0
- package/dist/schemas/agent-background.js.map +1 -0
- package/dist/schemas/agent-land.d.ts +7 -0
- package/dist/schemas/agent-land.d.ts.map +1 -1
- package/dist/schemas/agent-land.js +11 -0
- package/dist/schemas/agent-land.js.map +1 -1
- package/dist/schemas/agent.d.ts +16 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +3 -4
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +42 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +668 -17
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +16 -41
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/auto-approve.d.ts +12 -0
- package/dist/schemas/auto-approve.d.ts.map +1 -0
- package/dist/schemas/auto-approve.js +12 -0
- package/dist/schemas/auto-approve.js.map +1 -0
- package/dist/schemas/automations.d.ts +83 -0
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +11 -1
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/bookmarks.d.ts +85 -0
- package/dist/schemas/bookmarks.d.ts.map +1 -0
- package/dist/schemas/bookmarks.js +56 -0
- package/dist/schemas/bookmarks.js.map +1 -0
- package/dist/schemas/bridge-heads.d.ts +57 -0
- package/dist/schemas/bridge-heads.d.ts.map +1 -0
- package/dist/schemas/bridge-heads.js +22 -0
- package/dist/schemas/bridge-heads.js.map +1 -0
- package/dist/schemas/browser-tools.d.ts +167 -0
- package/dist/schemas/browser-tools.d.ts.map +1 -0
- package/dist/schemas/browser-tools.js +121 -0
- package/dist/schemas/browser-tools.js.map +1 -0
- package/dist/schemas/browsing.d.ts +139 -0
- package/dist/schemas/browsing.d.ts.map +1 -0
- package/dist/schemas/browsing.js +83 -0
- package/dist/schemas/browsing.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +57 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +9 -0
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/checkout-hooks.d.ts +24 -0
- package/dist/schemas/checkout-hooks.d.ts.map +1 -0
- package/dist/schemas/checkout-hooks.js +23 -0
- package/dist/schemas/checkout-hooks.js.map +1 -0
- package/dist/schemas/ci-fleet.d.ts +216 -0
- package/dist/schemas/ci-fleet.d.ts.map +1 -0
- package/dist/schemas/ci-fleet.js +87 -0
- package/dist/schemas/ci-fleet.js.map +1 -0
- package/dist/schemas/connection-hub.d.ts +3 -1
- package/dist/schemas/connection-hub.d.ts.map +1 -1
- package/dist/schemas/connection-hub.js +2 -1
- package/dist/schemas/connection-hub.js.map +1 -1
- package/dist/schemas/context-continues.d.ts.map +1 -1
- package/dist/schemas/context-continues.js +2 -2
- package/dist/schemas/context-continues.js.map +1 -1
- package/dist/schemas/context-trim.js +3 -3
- package/dist/schemas/context-trim.js.map +1 -1
- package/dist/schemas/device-remote.d.ts +84 -0
- package/dist/schemas/device-remote.d.ts.map +1 -0
- package/dist/schemas/device-remote.js +54 -0
- package/dist/schemas/device-remote.js.map +1 -0
- package/dist/schemas/devices.d.ts +64 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +6 -1
- package/dist/schemas/devices.js.map +1 -1
- package/dist/schemas/environment.d.ts +1 -0
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js +1 -0
- package/dist/schemas/environment.js.map +1 -1
- package/dist/schemas/extension-updates.d.ts +2 -0
- package/dist/schemas/extension-updates.d.ts.map +1 -1
- package/dist/schemas/extension-updates.js +4 -0
- package/dist/schemas/extension-updates.js.map +1 -1
- package/dist/schemas/git/git.d.ts +13 -0
- package/dist/schemas/git/git.d.ts.map +1 -1
- package/dist/schemas/git/git.js +7 -7
- package/dist/schemas/git/git.js.map +1 -1
- package/dist/schemas/git/index-run.d.ts +1 -0
- package/dist/schemas/git/index-run.d.ts.map +1 -1
- package/dist/schemas/host-power.d.ts +54 -0
- package/dist/schemas/host-power.d.ts.map +1 -0
- package/dist/schemas/host-power.js +46 -0
- package/dist/schemas/host-power.js.map +1 -0
- package/dist/schemas/hosts.d.ts +145 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +15 -1
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/issues.d.ts +44 -0
- package/dist/schemas/issues.d.ts.map +1 -1
- package/dist/schemas/issues.js +12 -0
- package/dist/schemas/issues.js.map +1 -1
- package/dist/schemas/keep-warm.d.ts.map +1 -1
- package/dist/schemas/keep-warm.js +2 -3
- package/dist/schemas/keep-warm.js.map +1 -1
- package/dist/schemas/keyring-native.d.ts.map +1 -1
- package/dist/schemas/keyring-native.js +3 -1
- package/dist/schemas/keyring-native.js.map +1 -1
- package/dist/schemas/keyring.d.ts +1 -0
- package/dist/schemas/keyring.d.ts.map +1 -1
- package/dist/schemas/keyring.js +3 -1
- package/dist/schemas/keyring.js.map +1 -1
- package/dist/schemas/members.d.ts.map +1 -1
- package/dist/schemas/members.js +2 -14
- package/dist/schemas/members.js.map +1 -1
- package/dist/schemas/metrics.d.ts +8 -0
- package/dist/schemas/metrics.d.ts.map +1 -1
- package/dist/schemas/metrics.js +8 -0
- package/dist/schemas/metrics.js.map +1 -1
- package/dist/schemas/needs.d.ts +349 -1
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +45 -5
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/offload.d.ts +9 -0
- package/dist/schemas/offload.d.ts.map +1 -1
- package/dist/schemas/offload.js +2 -1
- package/dist/schemas/offload.js.map +1 -1
- package/dist/schemas/ports.d.ts +4 -0
- package/dist/schemas/ports.d.ts.map +1 -1
- package/dist/schemas/ports.js +3 -0
- package/dist/schemas/ports.js.map +1 -1
- package/dist/schemas/providers/capacity.d.ts +6 -0
- package/dist/schemas/providers/capacity.d.ts.map +1 -1
- package/dist/schemas/providers/handoff.d.ts.map +1 -1
- package/dist/schemas/providers/handoff.js +11 -11
- package/dist/schemas/providers/handoff.js.map +1 -1
- package/dist/schemas/providers/provider-oauth.d.ts +14 -0
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.js +6 -2
- package/dist/schemas/providers/provider-oauth.js.map +1 -1
- package/dist/schemas/providers/refusals.d.ts +12 -0
- package/dist/schemas/providers/refusals.d.ts.map +1 -1
- package/dist/schemas/providers/refusals.js +4 -0
- package/dist/schemas/providers/refusals.js.map +1 -1
- package/dist/schemas/providers/switched.js +1 -1
- package/dist/schemas/providers/switched.js.map +1 -1
- package/dist/schemas/queued-trial-retry.d.ts +7 -0
- package/dist/schemas/queued-trial-retry.d.ts.map +1 -0
- package/dist/schemas/queued-trial-retry.js +8 -0
- package/dist/schemas/queued-trial-retry.js.map +1 -0
- package/dist/schemas/remote-access.d.ts +138 -0
- package/dist/schemas/remote-access.d.ts.map +1 -0
- package/dist/schemas/remote-access.js +72 -0
- package/dist/schemas/remote-access.js.map +1 -0
- package/dist/schemas/run-targets.d.ts.map +1 -1
- package/dist/schemas/run-targets.js +2 -1
- package/dist/schemas/run-targets.js.map +1 -1
- package/dist/schemas/runner-views.d.ts +24 -0
- package/dist/schemas/runner-views.d.ts.map +1 -0
- package/dist/schemas/runner-views.js +16 -0
- package/dist/schemas/runner-views.js.map +1 -0
- package/dist/schemas/sandbox-reach.d.ts +157 -0
- package/dist/schemas/sandbox-reach.d.ts.map +1 -0
- package/dist/schemas/sandbox-reach.js +112 -0
- package/dist/schemas/sandbox-reach.js.map +1 -0
- package/dist/schemas/seal.d.ts +1 -1
- package/dist/schemas/seal.d.ts.map +1 -1
- package/dist/schemas/seal.js +1 -1
- package/dist/schemas/seal.js.map +1 -1
- package/dist/schemas/settings.d.ts +44 -0
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +24 -1
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/system.d.ts +19 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +9 -0
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/terminal.d.ts +182 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +60 -1
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/state/auth-state.d.ts.map +1 -1
- package/dist/state/auth-state.js +2 -0
- package/dist/state/auth-state.js.map +1 -1
- package/dist/state/definition.d.ts +64 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/runtime-state.d.ts +4 -1
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +2 -1
- package/dist/state/runtime-state.js.map +1 -1
- package/dist/state/workspace-state.d.ts +1 -1
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +1 -1
- package/dist/state/workspace-state.js.map +1 -1
- package/dist/sync/workspace-sync-ignores.d.ts +4 -0
- package/dist/sync/workspace-sync-ignores.d.ts.map +1 -0
- package/dist/sync/workspace-sync-ignores.js +75 -0
- package/dist/sync/workspace-sync-ignores.js.map +1 -0
- package/dist/text/land-rows.d.ts.map +1 -1
- package/dist/text/land-rows.js +13 -17
- package/dist/text/land-rows.js.map +1 -1
- package/dist/text/notice-rows.js +6 -6
- package/dist/text/notice-rows.js.map +1 -1
- package/dist/text/pages.d.ts.map +1 -1
- package/dist/text/pages.js +17 -4
- package/dist/text/pages.js.map +1 -1
- package/dist/text/transcript-fold.js +2 -2
- package/dist/text/transcript-fold.js.map +1 -1
- package/package.json +5 -5
- package/src/app-routes/app-pages.ts +3 -0
- package/src/app-routes/index.ts +1 -0
- package/src/app-routes/return-path.ts +16 -0
- package/src/contracts/accounts.contract.ts +3 -0
- package/src/contracts/agents.contract.ts +41 -5
- package/src/contracts/automations.contract.ts +2 -0
- package/src/contracts/bookmarks.contract.ts +66 -0
- package/src/contracts/browser.contract.ts +181 -0
- package/src/contracts/capabilities.contract.ts +7 -2
- package/src/contracts/device-ci-runners.contract.ts +81 -0
- package/src/contracts/device.contract.ts +15 -0
- package/src/contracts/extensions.contract.ts +1 -1
- package/src/contracts/ports.contract.ts +6 -6
- package/src/contracts/remote.contract.ts +104 -0
- package/src/contracts/runner.contract.ts +117 -3
- package/src/contracts/runners.contract.ts +19 -0
- package/src/contracts/safety.contract.ts +2 -0
- package/src/contracts/secrets.contract.ts +12 -0
- package/src/contracts/settings.contract.ts +2 -0
- package/src/contracts/system.contract.ts +98 -3
- package/src/events/agent-events.ts +3 -2
- package/src/events/agent-words.test.ts +19 -1
- package/src/events/agent-words.ts +33 -1
- package/src/events/failure-rows.ts +13 -14
- package/src/events/refusal-incidents.ts +60 -19
- package/src/events/resume.test.ts +3 -3
- package/src/events/resume.ts +12 -18
- package/src/events/sandbox-notice.ts +2 -0
- package/src/ids/conversation-ids.test.ts +3 -1
- package/src/ids/conversation-ids.ts +6 -4
- package/src/ids/project-dir.test.ts +1 -1
- package/src/ids/project-dir.ts +1 -1
- package/src/ids/project-id.test.ts +14 -0
- package/src/ids/project-id.ts +6 -4
- package/src/ids/run-row-ids.test.ts +38 -0
- package/src/ids/run-row-ids.ts +49 -0
- package/src/index.ts +18 -6
- package/src/models/agent-catalog.test.ts +7 -4
- package/src/models/agent-catalog.ts +3 -2
- package/src/models/agent-lanes.ts +8 -1
- package/src/models/agent-runtimes.ts +7 -6
- package/src/models/agent-standing.ts +13 -0
- package/src/models/provider-specs.test.ts +2 -2
- package/src/models/providers/provider-traits.test.ts +71 -0
- package/src/models/providers/provider-traits.ts +144 -0
- package/src/netd/browser-wire.ts +97 -0
- package/src/netd/generated/browser-wire.json +904 -0
- package/src/netd/generated/browser-wire.ts +62 -3
- package/src/netd/generated/netd-wire.json +299 -1
- package/src/netd/generated/wire.ts +27 -6
- package/src/netd/wire-manifests.test.ts +92 -1
- package/src/policy/admin/admin-grant.ts +69 -0
- package/src/policy/capabilities/capability-kinds.test.ts +112 -0
- package/src/policy/capabilities/capability-kinds.ts +110 -0
- package/src/policy/command-classes.ts +5 -3
- package/src/policy/credential-material.ts +1 -1
- package/src/policy/device-programs.ts +29 -20
- package/src/policy/overlay-lint.ts +1 -1
- package/src/policy/reserved-servers.ts +5 -1
- package/src/policy/role-capability.ts +3 -1
- package/src/policy/shell/command-normalise.test.ts +72 -0
- package/src/policy/shell/command-normalise.ts +212 -0
- package/src/policy/tests/admin-grant.test.ts +35 -0
- package/src/policy/tests/command-classes.test.ts +41 -0
- package/src/protocol/doors/listener-protocol.ts +18 -1
- package/src/protocol/doors/loopback-proof.ts +34 -0
- package/src/protocol/doors/pass-scopes.ts +12 -0
- package/src/protocol/doors/runner-protocol.ts +133 -4
- package/src/protocol/doors/sandbox-pass.test.ts +33 -1
- package/src/protocol/doors/sandbox-pass.ts +92 -16
- package/src/protocol/ingress-contract.fixture.json +9 -1
- package/src/protocol/member-reach.test.ts +40 -1
- package/src/protocol/member-reach.ts +40 -0
- package/src/protocol/peer-mcp-server.ts +6 -0
- package/src/protocol/raw/raw-json-routes.ts +48 -1
- package/src/protocol/raw/raw-routes.ts +99 -36
- package/src/protocol/route-meta.ts +4 -1
- package/src/schemas/account-routes.ts +126 -0
- package/src/schemas/activity.ts +4 -3
- package/src/schemas/agent-background.ts +104 -0
- package/src/schemas/agent-land.ts +21 -2
- package/src/schemas/agent.ts +3 -4
- package/src/schemas/agents.ts +26 -65
- package/src/schemas/auto-approve.ts +31 -0
- package/src/schemas/automations.ts +26 -1
- package/src/schemas/bookmarks.ts +79 -0
- package/src/schemas/bridge-heads.ts +33 -0
- package/src/schemas/browser-tools.ts +164 -0
- package/src/schemas/browsing.ts +129 -0
- package/src/schemas/capabilities.ts +32 -0
- package/src/schemas/checkout-hooks.ts +44 -0
- package/src/schemas/ci-fleet.ts +180 -0
- package/src/schemas/compose-overlay.test.ts +1 -1
- package/src/schemas/compose-overlay.ts +1 -1
- package/src/schemas/connection-hub.ts +4 -2
- package/src/schemas/context-continues.ts +6 -3
- package/src/schemas/context-trim.test.ts +6 -6
- package/src/schemas/context-trim.ts +3 -3
- package/src/schemas/data-protection.ts +1 -1
- package/src/schemas/device-remote.ts +106 -0
- package/src/schemas/device-swaps.test.ts +1 -1
- package/src/schemas/devices.ts +19 -1
- package/src/schemas/egress-private.test.ts +1 -1
- package/src/schemas/environment.ts +4 -0
- package/src/schemas/extension-updates.ts +8 -0
- package/src/schemas/git/git.ts +14 -14
- package/src/schemas/host-power.ts +79 -0
- package/src/schemas/hosts.ts +37 -2
- package/src/schemas/intentic-os.ts +2 -2
- package/src/schemas/issues.ts +14 -0
- package/src/schemas/keep-warm.test.ts +1 -1
- package/src/schemas/keep-warm.ts +2 -3
- package/src/schemas/keyring-native.test.ts +11 -3
- package/src/schemas/keyring-native.ts +3 -1
- package/src/schemas/keyring.ts +6 -1
- package/src/schemas/members.ts +4 -16
- package/src/schemas/metrics.test.ts +9 -1
- package/src/schemas/metrics.ts +8 -0
- package/src/schemas/needs.ts +68 -5
- package/src/schemas/offload.ts +6 -3
- package/src/schemas/ports.ts +5 -0
- package/src/schemas/providers/handoff.test.ts +8 -10
- package/src/schemas/providers/handoff.ts +11 -12
- package/src/schemas/providers/provider-oauth.ts +10 -2
- package/src/schemas/providers/refusals.ts +9 -0
- package/src/schemas/providers/switched.test.ts +6 -6
- package/src/schemas/providers/switched.ts +1 -1
- package/src/schemas/queued-trial-retry.ts +14 -0
- package/src/schemas/remote-access.ts +143 -0
- package/src/schemas/run-targets.ts +2 -1
- package/src/schemas/runner-views.ts +27 -0
- package/src/schemas/sandbox-reach.ts +161 -0
- package/src/schemas/seal.ts +2 -1
- package/src/schemas/settings.test.ts +5 -4
- package/src/schemas/settings.ts +54 -10
- package/src/schemas/state-plan.test.ts +1 -1
- package/src/schemas/state-plan.ts +2 -2
- package/src/schemas/system.ts +16 -1
- package/src/schemas/terminal.ts +87 -1
- package/src/schemas/updates.test.ts +1 -1
- package/src/schemas/updates.ts +1 -1
- package/src/state/auth-state.ts +6 -0
- package/src/state/runtime-state.test.ts +3 -2
- package/src/state/runtime-state.ts +7 -1
- package/src/state/update-probation.ts +1 -1
- package/src/state/ways-back.test.ts +1 -1
- package/src/state/workspace-state.test.ts +2 -0
- package/src/state/workspace-state.ts +4 -4
- package/src/sync/workspace-sync-ignores.test.ts +48 -0
- package/src/sync/workspace-sync-ignores.ts +143 -0
- package/src/text/land-rows.ts +13 -18
- package/src/text/notice-rows.ts +6 -6
- package/src/text/pages.ts +34 -7
- package/src/text/transcript-fold.test.ts +77 -39
- package/src/text/transcript-fold.ts +2 -2
|
@@ -20,7 +20,9 @@ import {
|
|
|
20
20
|
StackLogsSchema,
|
|
21
21
|
StackOpResultSchema,
|
|
22
22
|
} from "../schemas/device-stacks.js";
|
|
23
|
+
import { deviceCiRunnerRoutes } from "./device-ci-runners.contract.js";
|
|
23
24
|
import { EgressOwnerKeysReadSchema } from "../schemas/egress.js";
|
|
25
|
+
import { SandboxReachSchema } from "../schemas/sandbox-reach.js";
|
|
24
26
|
import { PresenceReportSchema } from "../schemas/logs.js";
|
|
25
27
|
import {
|
|
26
28
|
CheckoutPressInputSchema,
|
|
@@ -43,18 +45,29 @@ import {
|
|
|
43
45
|
import { AutoUpdateInputSchema, AutoUpdateSchema, SkipUpdateInputSchema } from "../schemas/updates.js";
|
|
44
46
|
import {
|
|
45
47
|
BrowserNameParamSchema,
|
|
48
|
+
BrowserPageActionInputSchema,
|
|
46
49
|
BrowserPageParamSchema,
|
|
47
50
|
BrowsersListSchema,
|
|
51
|
+
MoveBrowserPageInputSchema,
|
|
48
52
|
OpenBrowserInputSchema,
|
|
49
53
|
OpenBrowserResultSchema,
|
|
50
|
-
|
|
54
|
+
ReopenBrowserPageInputSchema,
|
|
51
55
|
SubagentsListSchema,
|
|
56
|
+
SystemDesktopSchema,
|
|
52
57
|
TerminalNameParamSchema,
|
|
53
58
|
TerminalScrollbackQuerySchema,
|
|
54
59
|
TerminalScrollbackSchema,
|
|
55
60
|
TerminalsListSchema,
|
|
56
61
|
} from "../schemas/terminal.js";
|
|
57
62
|
import { UsageSummarySchema } from "../schemas/providers/usage.js";
|
|
63
|
+
import {
|
|
64
|
+
BrowsingForgetInputSchema,
|
|
65
|
+
BrowsingForgetResultSchema,
|
|
66
|
+
BrowsingHistoryQuerySchema,
|
|
67
|
+
BrowsingHistorySchema,
|
|
68
|
+
SearchSuggestQuerySchema,
|
|
69
|
+
SearchSuggestionsSchema,
|
|
70
|
+
} from "../schemas/browsing.js";
|
|
58
71
|
|
|
59
72
|
// The box itself (terminals, devices, sessions, spend), which no control token reaches whatever the floor.
|
|
60
73
|
const systemRoute = procedure.meta({ control: "never" });
|
|
@@ -155,7 +168,8 @@ export const systemContract = {
|
|
|
155
168
|
"Exchanges a verified sign-in, or a session that has not expired yet, for a fresh session the daemon minted. That session is the credential every other call carries, and calling this again with a live one renews it.",
|
|
156
169
|
})
|
|
157
170
|
// Staying signed in and on the roster is identity, not power, and needs nothing the boot chain builds.
|
|
158
|
-
|
|
171
|
+
// The session it answers is a credential: never a panel process's.
|
|
172
|
+
.meta({ beforeBoot: true, floor: "viewer", guest: true, panel: false })
|
|
159
173
|
.output(DaemonSessionSchema),
|
|
160
174
|
events: procedure
|
|
161
175
|
.route({
|
|
@@ -343,6 +357,38 @@ export const systemContract = {
|
|
|
343
357
|
})
|
|
344
358
|
.input(BrowserNameParamSchema)
|
|
345
359
|
.output(OkSchema),
|
|
360
|
+
// The rest of what a tab's own menu does, over the roster rather than a picture socket for the same reason as
|
|
361
|
+
// closeBrowserPage: every window's tabs are on the strip, and only the one in front has a socket.
|
|
362
|
+
reopenBrowserPage: systemRoute
|
|
363
|
+
.route({
|
|
364
|
+
method: "POST",
|
|
365
|
+
path: "/system/browsers/{name}/closed",
|
|
366
|
+
summary: "Reopen a closed tab",
|
|
367
|
+
description:
|
|
368
|
+
"Brings back a tab closed in a browser window that is still open, at the place it had, as a browser's own Reopen closed tab does. Without a tab named it is the one closed last. Answers the tab it opened.",
|
|
369
|
+
})
|
|
370
|
+
.input(ReopenBrowserPageInputSchema)
|
|
371
|
+
.output(OpenBrowserResultSchema),
|
|
372
|
+
moveBrowserPage: systemRoute
|
|
373
|
+
.route({
|
|
374
|
+
method: "POST",
|
|
375
|
+
path: "/system/browsers/{name}/pages/{pageId}/move",
|
|
376
|
+
summary: "Move a tab along its window's strip",
|
|
377
|
+
description:
|
|
378
|
+
"Puts one tab at another place in its window's order, the order every view of the window draws its tabs in and the order your own window reopens them in.",
|
|
379
|
+
})
|
|
380
|
+
.input(MoveBrowserPageInputSchema)
|
|
381
|
+
.output(OkSchema),
|
|
382
|
+
browserPageAction: systemRoute
|
|
383
|
+
.route({
|
|
384
|
+
method: "POST",
|
|
385
|
+
path: "/system/browsers/{name}/pages/{pageId}/action",
|
|
386
|
+
summary: "Reload, duplicate or mute a tab",
|
|
387
|
+
description:
|
|
388
|
+
"Does one thing to one tab of a browser window, whether or not it is the tab in front: reloads it, opens a copy of it beside it, or mutes or unmutes it. Answers the tab acted on, or the copy.",
|
|
389
|
+
})
|
|
390
|
+
.input(BrowserPageActionInputSchema)
|
|
391
|
+
.output(OpenBrowserResultSchema),
|
|
346
392
|
// One tab, closed without watching its window: the Browsers strip shows every window's tabs, and only the window in
|
|
347
393
|
// front has a picture socket to say a close on.
|
|
348
394
|
closeBrowserPage: systemRoute
|
|
@@ -355,6 +401,41 @@ export const systemContract = {
|
|
|
355
401
|
})
|
|
356
402
|
.input(BrowserPageParamSchema)
|
|
357
403
|
.output(OkSchema),
|
|
404
|
+
// What the sandbox's browsers remember, one index per profile (schemas/browsing.ts): the address bar ranks it in the
|
|
405
|
+
// editor on every keystroke, so it ships whole once and then only what changed, by cursor.
|
|
406
|
+
browsingHistory: systemRoute
|
|
407
|
+
.route({
|
|
408
|
+
method: "GET",
|
|
409
|
+
path: "/system/browsing/history",
|
|
410
|
+
summary: "Where a browser has been",
|
|
411
|
+
description:
|
|
412
|
+
"The pages one of the sandbox's browsers has visited and the searches made in it, most worth suggesting first, for the address bar's suggestions and the history page. Hand back the cursor an answer gave to be told only what changed since. Each browser profile keeps its own: your own window's is `_own`, and nothing from an agent's browser is mixed into it.",
|
|
413
|
+
})
|
|
414
|
+
// Where the person went is theirs and the maintainers': a viewer reads the windows open, not their history.
|
|
415
|
+
.meta({ floor: "maintainer" })
|
|
416
|
+
.input(BrowsingHistoryQuerySchema)
|
|
417
|
+
.output(BrowsingHistorySchema),
|
|
418
|
+
forgetBrowsingHistory: systemRoute
|
|
419
|
+
.route({
|
|
420
|
+
method: "POST",
|
|
421
|
+
path: "/system/browsing/history/forget",
|
|
422
|
+
summary: "Forget part of a browser's history",
|
|
423
|
+
description:
|
|
424
|
+
"Removes pages from one browser profile's history: some addresses, everything visited in a stretch of time, or all of it. The address bar stops suggesting them at once. Chromium's own files inside the profile are not touched.",
|
|
425
|
+
})
|
|
426
|
+
.input(BrowsingForgetInputSchema)
|
|
427
|
+
.output(BrowsingForgetResultSchema),
|
|
428
|
+
// Fetched by the sandbox, so the engine sees the same address the browsing itself leaves from.
|
|
429
|
+
searchSuggestions: systemRoute
|
|
430
|
+
.route({
|
|
431
|
+
method: "GET",
|
|
432
|
+
path: "/system/browsing/suggest",
|
|
433
|
+
summary: "What a search engine suggests for some text",
|
|
434
|
+
description:
|
|
435
|
+
"Asks the chosen search engine what it would suggest for text typed into the address bar, from the sandbox's own address like the browsing itself. Answers an empty list rather than an error when the engine is slow or unreachable, since the address bar has its own suggestions to show.",
|
|
436
|
+
})
|
|
437
|
+
.input(SearchSuggestQuerySchema)
|
|
438
|
+
.output(SearchSuggestionsSchema),
|
|
358
439
|
// The picture and the hands come over /system/desktop-view; this is whether there is anything on it, and which windows
|
|
359
440
|
// a tab could show alone. Pushed through the `desktop` runtime domain as windows open, close and take the keyboard,
|
|
360
441
|
// and as their titles change while a view is open; never polled by the client.
|
|
@@ -366,7 +447,7 @@ export const systemContract = {
|
|
|
366
447
|
description:
|
|
367
448
|
"Whether the sandbox's desktop is up, which display it is, and which windows are open on it. The live picture of it, or of one window on it, comes over a separate socket; this says whether there is anything to see.",
|
|
368
449
|
})
|
|
369
|
-
.output(
|
|
450
|
+
.output(SystemDesktopSchema),
|
|
370
451
|
// In-process and spawned alike: the board draws each under the card of the conversation that started it, and a chat
|
|
371
452
|
// draws it on the card of the call that started it. Pushed through the `subagents` runtime domain, never polled. A
|
|
372
453
|
// subagent's work is read where it lives: an in-process one's on its delegation's card in its parent's record, a
|
|
@@ -392,6 +473,18 @@ export const systemContract = {
|
|
|
392
473
|
"Every computer this sandbox can see, whether it reached it through desktop sync or through a connected device, in one row per machine: what it says about itself, which sandboxes it holds, and what stopped it answering when nothing came back.",
|
|
393
474
|
})
|
|
394
475
|
.output(DevicesListSchema),
|
|
476
|
+
// (2026-11-22) The account's access map asks every sandbox it reaches for this one answer and joins them
|
|
477
|
+
// (docs/architecture/accounts.md). Read from what the daemon stores and its live connections, never by calling a
|
|
478
|
+
// machine, so a map of ten sandboxes costs ten cheap reads; only the link cards' terms ask the far sandbox, briefly.
|
|
479
|
+
reach: systemRoute
|
|
480
|
+
.route({
|
|
481
|
+
method: "GET",
|
|
482
|
+
path: "/system/reach",
|
|
483
|
+
summary: "What this sandbox is tied to outside itself",
|
|
484
|
+
description:
|
|
485
|
+
"The other sandboxes this one hands work to and takes work from, with their terms; the computers, phones, browsers and servers its agents reach, with the switches each has on; whether it may create sandboxes on its owner's account; and, for each, whether the reader's own conversations may use it and how many other people's may. Shaped for the reader: inbound links and where it runs are Full access's, the counts of other people are for whoever runs people and access.",
|
|
486
|
+
})
|
|
487
|
+
.output(SandboxReachSchema),
|
|
395
488
|
// One stream for every op; the daemon adds no judgment, a refusal is the machine's own `error` line.
|
|
396
489
|
manageDeviceSandbox: systemRoute
|
|
397
490
|
.route({
|
|
@@ -485,4 +578,6 @@ export const systemContract = {
|
|
|
485
578
|
.meta({ panel: false })
|
|
486
579
|
.input(DeviceStackDeployInputSchema)
|
|
487
580
|
.output(DeviceStackDeployResultSchema),
|
|
581
|
+
// The self-hosted CI runners on a connected computer, for the Pipelines view (device-ci-runners.contract.ts).
|
|
582
|
+
...deviceCiRunnerRoutes,
|
|
488
583
|
};
|
|
@@ -228,9 +228,10 @@ export const AgentEventSchema = z.discriminatedUnion("kind", [
|
|
|
228
228
|
}),
|
|
229
229
|
// The agent started running Bash in its live `agent-<id>` tmux session; one per turn, reused across all of a turn's
|
|
230
230
|
// commands including subagents'.
|
|
231
|
-
|
|
231
|
+
// `runner` (2026-11-23): stamped by the parent on a frame relayed from a runner, whose session lives there.
|
|
232
|
+
z.object({ kind: z.literal("terminal"), session: z.string(), runner: z.string().optional() }),
|
|
232
233
|
// The agent used a browser tool; one per turn, since one Chromium serves every browser call the turn makes.
|
|
233
|
-
z.object({ kind: z.literal("browser"), session: z.string() }),
|
|
234
|
+
z.object({ kind: z.literal("browser"), session: z.string(), runner: z.string().optional() }),
|
|
234
235
|
// One frame per subagent a turn starts, whichever mechanism starts it, then `subagent_update` as it works, mirroring
|
|
235
236
|
// `tool_call`/`tool_call_update`. `id` is its roster id: the spawning call's own id for an in-process subagent (the
|
|
236
237
|
// runtime's Agent/Task tool), its own conversation id for a spawned one, whose card is the call whose result names
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { agentWordsOf, agentWordsRow, childReportPrompt, peerMessagePrompt, unspokenPromptRow } from "./agent-words.js";
|
|
1
|
+
import { agentWordsBody, agentWordsOf, agentWordsRow, childReportPrompt, peerMessagePrompt, unspokenPromptRow } from "./agent-words.js";
|
|
2
2
|
import { watchWakePrompt } from "./watch-wake.js";
|
|
3
3
|
|
|
4
4
|
const peerTitled = (title: string | undefined): string => peerMessagePrompt({ from: "sharp-shale-htw8", title, message: "the sweep is done" });
|
|
@@ -73,6 +73,24 @@ describe("another agent's words", () => {
|
|
|
73
73
|
expect(agentWordsOf(stored)).toMatchObject({ kind: "child", from: "sub-x7", title: "Port the parser" });
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
+
it("hands back what the other agent said, without the lines the sandbox wraps it in", () => {
|
|
77
|
+
expect(agentWordsBody(peer())).toEqual({ said: "the sweep is done" });
|
|
78
|
+
const multi = report({ report: "Ported.\n\n- 12 tests pass\n- 1 skipped", machine: "omen", landing: "Held off your checkout." });
|
|
79
|
+
expect(agentWordsBody(multi)).toEqual({ said: "Ported.\n\n- 12 tests pass\n- 1 skipped" });
|
|
80
|
+
expect(agentWordsBody(report({ result: { json: '{"ok":true}' } }))?.said).toContain('{"ok":true}');
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it("reads a child's verification state, and says nothing where it carried none", () => {
|
|
84
|
+
expect(agentWordsBody(report({ verification: { state: "failing", check: "pnpm test" } }))).toMatchObject({ verification: "failing" });
|
|
85
|
+
expect(agentWordsBody(report({ verification: { state: "no-code" } }))).toMatchObject({ verification: "no-code" });
|
|
86
|
+
expect(agentWordsBody(report()) ?? {}).not.toHaveProperty("verification");
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it("says a report a child ended without as nothing, and answers no other prompt", () => {
|
|
90
|
+
expect(agentWordsBody(report({ report: " " }))).toEqual({ said: "" });
|
|
91
|
+
expect(agentWordsBody("fix the bug\n\nplease\n\nnow")).toBeUndefined();
|
|
92
|
+
});
|
|
93
|
+
|
|
76
94
|
it("ignores every other prompt, so any reader can ask without checking first", () => {
|
|
77
95
|
expect(agentWordsOf("fix the bug")).toBeUndefined();
|
|
78
96
|
expect(agentWordsOf("Message from another conversation in this workspace: nobody")).toBeUndefined();
|
|
@@ -98,7 +98,7 @@ export const childReportPrompt = (fields: ChildReportFields): string => {
|
|
|
98
98
|
...(fields.machine === undefined ? [] : [`${MACHINE_OPENING}\`${fields.machine}\`, not this sandbox.`]),
|
|
99
99
|
...(verification === undefined ? [] : [verification]),
|
|
100
100
|
"",
|
|
101
|
-
fields.report.trim() === "" ?
|
|
101
|
+
fields.report.trim() === "" ? NO_REPORT : fields.report.trim(),
|
|
102
102
|
...resultLines(fields.result),
|
|
103
103
|
"",
|
|
104
104
|
fields.review === undefined
|
|
@@ -115,6 +115,11 @@ const reviewClosing = (from: string, landing: string | undefined): string =>
|
|
|
115
115
|
"finding it left open that holds, check its own edits rather than trusting them, and say plainly which findings you think are " +
|
|
116
116
|
`wrong and why. If nothing is left open, say so in a line and stop. Ask it something with \`agents message ${from} '<text>'\`.`;
|
|
117
117
|
|
|
118
|
+
// What stands for a report a child ended without; read back by the parser, so it stays unchanged too.
|
|
119
|
+
const NO_REPORT = "(It ended without a closing report.)";
|
|
120
|
+
// The verification line's state, as `verificationLine` writes it.
|
|
121
|
+
const VERIFICATION_LINE = /^Verification: (verified|failing|unproven|no-code) —/u;
|
|
122
|
+
|
|
118
123
|
// The report's second line for a child that ran on a runner; read back by the parser, so it stays unchanged too.
|
|
119
124
|
const MACHINE_OPENING = "It ran on the runner ";
|
|
120
125
|
const MACHINE_LINE = /^It ran on the runner `([^`]+)`/u;
|
|
@@ -165,6 +170,33 @@ const reviewOf = (first: string, prompt: string): TranscriptAgentWords | undefin
|
|
|
165
170
|
};
|
|
166
171
|
};
|
|
167
172
|
|
|
173
|
+
/** What the other agent itself said, out of a prompt `agentWordsOf` recognises: the words between the opening lines and
|
|
174
|
+
* the closing paragraph the sandbox adds to every such prompt (`said`, empty for a child that ended without a report),
|
|
175
|
+
* and a child's verification state where its report carries one. */
|
|
176
|
+
export interface AgentWordsBody {
|
|
177
|
+
readonly said: string;
|
|
178
|
+
readonly verification?: SubagentVerification["state"];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export const agentWordsBody = (prompt: string): AgentWordsBody | undefined => {
|
|
182
|
+
const lines = prompt.split("\n");
|
|
183
|
+
const opened = lines.indexOf("");
|
|
184
|
+
const closed = lines.lastIndexOf("");
|
|
185
|
+
if (opened === -1 || closed <= opened || agentWordsOf(prompt) === undefined) {
|
|
186
|
+
return undefined;
|
|
187
|
+
}
|
|
188
|
+
const said = lines.slice(opened + 1, closed).join("\n").trim();
|
|
189
|
+
const state = lines
|
|
190
|
+
.slice(1, opened)
|
|
191
|
+
.map((line) => VERIFICATION_LINE.exec(line)?.[1])
|
|
192
|
+
.find((found) => found !== undefined);
|
|
193
|
+
const words = said === NO_REPORT ? "" : said;
|
|
194
|
+
return isVerificationState(state) ? { said: words, verification: state } : { said: words };
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
const VERIFICATION_STATES: ReadonlySet<string> = new Set<SubagentVerification["state"]>(["verified", "failing", "unproven", "no-code"]);
|
|
198
|
+
const isVerificationState = (word: string | undefined): word is SubagentVerification["state"] => word !== undefined && VERIFICATION_STATES.has(word);
|
|
199
|
+
|
|
168
200
|
/** Which other agent's words a stored prompt is; undefined for every other prompt. */
|
|
169
201
|
export const agentWordsOf = (prompt: string): TranscriptAgentWords | undefined => {
|
|
170
202
|
const first = prompt.split("\n", 1)[0] ?? "";
|
|
@@ -27,8 +27,8 @@ const failedRow = (event: ErrorFrame): FailureRow => ({
|
|
|
27
27
|
const undeliveredRow = (said: FailureSaid, unattended: boolean): FailureRow => ({
|
|
28
28
|
role: "notice",
|
|
29
29
|
text: unattended
|
|
30
|
-
? `${said.message} Nothing ran
|
|
31
|
-
: `${said.message}
|
|
30
|
+
? `${said.message} Nothing ran; this run started on its own.`
|
|
31
|
+
: `${said.message} Not delivered: held for you to send again.`,
|
|
32
32
|
noticeCode: noticeCode({ code: "undelivered", params: { ...said, unattended: unattended || undefined } }),
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -40,8 +40,8 @@ const stoppedPartwayRow = (said: FailureSaid, switchModel: boolean): FailureRow
|
|
|
40
40
|
const row: FailureRow = {
|
|
41
41
|
role: "notice",
|
|
42
42
|
text: switchModel
|
|
43
|
-
? `${said.message}
|
|
44
|
-
: `${said.message}
|
|
43
|
+
? `${said.message} Stopped partway, changes kept: continue with another model.`
|
|
44
|
+
: `${said.message} Stopped partway, changes kept: send a message to go on.`,
|
|
45
45
|
noticeCode: noticeCode({ code: "stoppedPartway", params: { ...said, switchModel: switchModel || undefined } }),
|
|
46
46
|
};
|
|
47
47
|
if (switchModel) {
|
|
@@ -65,8 +65,8 @@ const heldRow = (event: ErrorFrame): FailureRow => {
|
|
|
65
65
|
return {
|
|
66
66
|
role: "notice",
|
|
67
67
|
text: memory
|
|
68
|
-
? `${event.message} Nothing
|
|
69
|
-
: `${event.message} Nothing
|
|
68
|
+
? `${event.message} Nothing ran; send the message above anyway to start it.`
|
|
69
|
+
: `${event.message} Nothing ran; the message above is kept to send again.`,
|
|
70
70
|
noticeAction: memory ? memoryPress(event) : "sendAgain",
|
|
71
71
|
sandboxHeld: true,
|
|
72
72
|
noticeCode: noticeCode({ code: "kept", params: { ...said, memory: memory || undefined } }),
|
|
@@ -77,7 +77,7 @@ const heldRow = (event: ErrorFrame): FailureRow => {
|
|
|
77
77
|
}
|
|
78
78
|
return {
|
|
79
79
|
role: "notice",
|
|
80
|
-
text: `${event.message}
|
|
80
|
+
text: `${event.message} Message held: send again to start anyway.`,
|
|
81
81
|
noticeAction: memoryPress(event),
|
|
82
82
|
noticeCode: noticeCode({ code: "memoryHeld", params: said }),
|
|
83
83
|
};
|
|
@@ -85,9 +85,8 @@ const heldRow = (event: ErrorFrame): FailureRow => {
|
|
|
85
85
|
|
|
86
86
|
// What an armed credential renewal promises, and what its row says instead once a later failure in the same run took
|
|
87
87
|
// that promise back (TranscriptFold.withdrawRenewal).
|
|
88
|
-
export const RENEWING = "
|
|
89
|
-
export const RENEWAL_WITHDRAWN =
|
|
90
|
-
"The credential was being renewed, but the turn stopped before it could continue: it will not carry on by itself, so press Continue to pick it back up.";
|
|
88
|
+
export const RENEWING = "Renewing the credential; the turn continues by itself.";
|
|
89
|
+
export const RENEWAL_WITHDRAWN = "The renewal didn't resume the turn: press Continue to pick it up.";
|
|
91
90
|
|
|
92
91
|
// What a laddered wall's automatic re-runs are doing, said on the failure's own row so the count stays in the record.
|
|
93
92
|
const retryClause = (event: ErrorFrame): { text: string; code: NoticeCode } | undefined => {
|
|
@@ -98,13 +97,13 @@ const retryClause = (event: ErrorFrame): { text: string; code: NoticeCode } | un
|
|
|
98
97
|
const said = failureOf(event);
|
|
99
98
|
if (event.autoResume === "scheduled") {
|
|
100
99
|
return {
|
|
101
|
-
text: `Retrying
|
|
100
|
+
text: `Retrying: attempt ${retries.made + 1} of ${retries.max}.`,
|
|
102
101
|
code: noticeCode({ code: "retrying", params: { ...said, attempt: retries.made + 1, of: retries.max } }),
|
|
103
102
|
};
|
|
104
103
|
}
|
|
105
104
|
return retries.made >= retries.max
|
|
106
105
|
? {
|
|
107
|
-
text: `Retried ${retries.made} of ${retries.max} times
|
|
106
|
+
text: `Retried ${retries.made} of ${retries.max} times; no more retries.`,
|
|
108
107
|
code: noticeCode({ code: "retried", params: { ...said, made: retries.made, of: retries.max } }),
|
|
109
108
|
}
|
|
110
109
|
: undefined;
|
|
@@ -121,7 +120,7 @@ export const errorRow = (event: ErrorFrame, ran: boolean): FailureRow => {
|
|
|
121
120
|
return retry === undefined
|
|
122
121
|
? {
|
|
123
122
|
role: "notice",
|
|
124
|
-
text: `${message}
|
|
123
|
+
text: `${message} Not retrying; the turn waits here.`,
|
|
125
124
|
noticeCode: noticeCode({ code: "outageWaiting", params: said }),
|
|
126
125
|
}
|
|
127
126
|
: { role: "notice", text: `${message} ${retry.text}`, noticeCode: retry.code };
|
|
@@ -136,7 +135,7 @@ export const errorRow = (event: ErrorFrame, ran: boolean): FailureRow => {
|
|
|
136
135
|
}
|
|
137
136
|
: {
|
|
138
137
|
role: "notice",
|
|
139
|
-
text: `${message} Reconnect the account to
|
|
138
|
+
text: `${message} Reconnect the account to continue.`,
|
|
140
139
|
noticeCode: noticeCode({ code: "reconnect", params: said }),
|
|
141
140
|
};
|
|
142
141
|
}
|
|
@@ -10,7 +10,13 @@ import { type SandboxNotice, sandboxNoticeOf } from "./sandbox-notice.js";
|
|
|
10
10
|
|
|
11
11
|
The rows stay as they are in the record: the run is found again wherever it is drawn, so nothing about a stored
|
|
12
12
|
transcript, a rewind index or a fork changes. Only rows next to each other fold. A row between them (the person's
|
|
13
|
-
own message, a rebase, a different refusal) ends the run, since it is part of the story the reader is owed.
|
|
13
|
+
own message, a rebase, a different refusal) ends the run, since it is part of the story the reader is owed.
|
|
14
|
+
|
|
15
|
+
A wake is the exception (another agent's words, a watch, an answered need: a prompt nobody typed). When one wall
|
|
16
|
+
stands while a fleet of subagents reports back, every report wakes the conversation and is turned away in turn, and
|
|
17
|
+
the run read as report, refusal, report, refusal: seven subagents left fourteen rows and seventy lines on 2026-11-23.
|
|
18
|
+
The wakes the wall turned away fold into its run, and the run names them (`wakes`), so the reader still learns who
|
|
19
|
+
reported. A wake after the run's last refusal is the attempt in flight, and stays a row of its own. */
|
|
14
20
|
|
|
15
21
|
/** One refused attempt an incident folds: when it was refused, and the provider's own sentence for it. */
|
|
16
22
|
export interface IncidentAttempt {
|
|
@@ -26,6 +32,8 @@ export interface TranscriptIncident {
|
|
|
26
32
|
readonly attempts: readonly IncidentAttempt[];
|
|
27
33
|
// The run ended on the move (or a person's switch) that got the turn through, rather than on a refusal or a re-send.
|
|
28
34
|
readonly resolved: boolean;
|
|
35
|
+
// The wakes the wall turned away, by their index in the rows, oldest first: folded into the run, never drawn.
|
|
36
|
+
readonly wakes: readonly number[];
|
|
29
37
|
}
|
|
30
38
|
|
|
31
39
|
type Refusal = Extract<SandboxNotice, { code: "kept" | "undelivered" | "failed" }>;
|
|
@@ -68,40 +76,73 @@ const resent = (row: TranscriptRow): boolean => {
|
|
|
68
76
|
|
|
69
77
|
const movedOn = (row: TranscriptRow): boolean => codeOf(row, MOVED) !== undefined;
|
|
70
78
|
|
|
79
|
+
// A prompt nobody at the composer typed: another agent's words, a watch's wake, an answered need.
|
|
80
|
+
const isWake = (row: TranscriptRow): boolean =>
|
|
81
|
+
row.role === "notice" && (row.agentWords !== undefined || row.watchWake !== undefined || row.needWake !== undefined);
|
|
82
|
+
|
|
71
83
|
const attemptOf = (row: TranscriptRow, refusal: Refusal): IncidentAttempt =>
|
|
72
84
|
row.openedAt === undefined ? { said: refusal.params.message } : { at: row.openedAt, said: refusal.params.message };
|
|
73
85
|
|
|
86
|
+
// The wakes right above a first refusal, down to `floor`, which met the same wall: the first of them is what it turned away.
|
|
87
|
+
const wakesAbove = (rows: readonly TranscriptRow[], index: number, floor: number): number[] => {
|
|
88
|
+
let start = index;
|
|
89
|
+
while (start > floor && isWake(rows[start - 1]!)) {
|
|
90
|
+
start -= 1;
|
|
91
|
+
}
|
|
92
|
+
return Array.from({ length: index - start }, (_, offset) => start + offset);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// How far the run that opens on the refusal at `index` reaches: every same refusal, re-send and wake after it, up to and
|
|
96
|
+
// including the move or switch that ended it. A wake is joined only once a row after it carries the run on, since one
|
|
97
|
+
// after the last refusal is the attempt still in flight.
|
|
98
|
+
const runFrom = <R extends TranscriptRow>(rows: readonly R[], index: number, first: Refusal, resolves: (row: R) => boolean) => {
|
|
99
|
+
const attempts = [attemptOf(rows[index]!, first)];
|
|
100
|
+
const wakes: number[] = [];
|
|
101
|
+
let pending: number[] = [];
|
|
102
|
+
let to = index;
|
|
103
|
+
let resolved = false;
|
|
104
|
+
for (let next = index + 1; next < rows.length && !resolved; next += 1) {
|
|
105
|
+
const row = rows[next]!;
|
|
106
|
+
const again = refusalOf(row);
|
|
107
|
+
if (isWake(row)) {
|
|
108
|
+
pending.push(next);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if (again !== undefined && sameRefusal(first, again)) {
|
|
112
|
+
attempts.push(attemptOf(row, again));
|
|
113
|
+
} else if (movedOn(row) || resolves(row)) {
|
|
114
|
+
resolved = true;
|
|
115
|
+
} else if (!resent(row)) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
wakes.push(...pending);
|
|
119
|
+
pending = [];
|
|
120
|
+
to = next;
|
|
121
|
+
}
|
|
122
|
+
return { to, attempts, resolved, wakes };
|
|
123
|
+
};
|
|
124
|
+
|
|
74
125
|
/**
|
|
75
126
|
* Every run of rows that says one refusal, in order. `resolves` names the reader's own rows that end one (the editor's
|
|
76
127
|
* line for an account a person switched to); the sandbox's own move (`accountMoved`) always does. A lone refusal is no
|
|
77
|
-
* run, and is drawn as itself.
|
|
128
|
+
* run, and is drawn as itself, as is one wake and the refusal it met.
|
|
78
129
|
*/
|
|
79
130
|
export const transcriptIncidents = <R extends TranscriptRow>(rows: readonly R[], resolves: (row: R) => boolean = () => false): TranscriptIncident[] => {
|
|
80
131
|
const found: TranscriptIncident[] = [];
|
|
81
132
|
let index = 0;
|
|
133
|
+
// The first row a run may reach back to: never into the run before it.
|
|
134
|
+
let floor = 0;
|
|
82
135
|
while (index < rows.length) {
|
|
83
136
|
const first = refusalOf(rows[index]!);
|
|
84
137
|
if (first === undefined) {
|
|
85
138
|
index += 1;
|
|
86
139
|
continue;
|
|
87
140
|
}
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const again = refusalOf(row);
|
|
94
|
-
if (again !== undefined && sameRefusal(first, again)) {
|
|
95
|
-
attempts.push(attemptOf(row, again));
|
|
96
|
-
} else if (movedOn(row) || resolves(row)) {
|
|
97
|
-
resolved = true;
|
|
98
|
-
} else if (!resent(row)) {
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
to = next;
|
|
102
|
-
}
|
|
103
|
-
if (to > index) {
|
|
104
|
-
found.push({ from: index, to, attempts, resolved });
|
|
141
|
+
const above = wakesAbove(rows, index, floor);
|
|
142
|
+
const { to, attempts, resolved, wakes } = runFrom(rows, index, first, resolves);
|
|
143
|
+
if (to > index || above.length > 1) {
|
|
144
|
+
found.push({ from: above[0] ?? index, to, attempts, resolved, wakes: [...above, ...wakes] });
|
|
145
|
+
floor = to + 1;
|
|
105
146
|
}
|
|
106
147
|
index = to + 1;
|
|
107
148
|
}
|
|
@@ -60,7 +60,7 @@ test("a prompt that is not a resume discloses nothing", () => {
|
|
|
60
60
|
test("a re-run after the window overflowed discloses as its own notice", () => {
|
|
61
61
|
expect(resumeDisclosure(withResumeNote("ship the parser", RESUME_NOTES.overflow))).toEqual({
|
|
62
62
|
kind: "notice",
|
|
63
|
-
text: "Sent again in a fresh session
|
|
63
|
+
text: "Sent again in a fresh session: the last outgrew the context window.",
|
|
64
64
|
reason: "overflow",
|
|
65
65
|
});
|
|
66
66
|
});
|
|
@@ -70,7 +70,7 @@ test("a re-run's notice row names its reason beside its words", () => {
|
|
|
70
70
|
const disclosure = resumeDisclosure(withResumeNote("ship the parser", RESUME_NOTES.restart));
|
|
71
71
|
expect(disclosure?.kind === "notice" ? resumeNoticeRow(disclosure) : undefined).toEqual({
|
|
72
72
|
role: "notice",
|
|
73
|
-
text: "
|
|
73
|
+
text: "Sandbox back; picked up where it left off. Its background jobs ended.",
|
|
74
74
|
noticeCode: { code: "resumed", params: { reason: "restart" } },
|
|
75
75
|
});
|
|
76
76
|
});
|
|
@@ -119,7 +119,7 @@ test("a turn re-run after a memory kill is told why, what it lost, and not to re
|
|
|
119
119
|
expect(prompt).toContain(found);
|
|
120
120
|
expect(withoutResumeNote(prompt)).toBe("ship the parser");
|
|
121
121
|
const disclosure = resumeDisclosure(prompt);
|
|
122
|
-
expect(disclosure).toEqual({ kind: "notice", text:
|
|
122
|
+
expect(disclosure).toEqual({ kind: "notice", text: "Sent again once memory freed up; its background jobs ended.", reason: "memory" });
|
|
123
123
|
// Filed under its own reason, which this build's notice vocabulary reads back, so a reader words it as a memory kill
|
|
124
124
|
// rather than as a turn that stopped short.
|
|
125
125
|
const row = disclosure?.kind === "notice" ? resumeNoticeRow(disclosure) : undefined;
|
package/src/events/resume.ts
CHANGED
|
@@ -98,30 +98,24 @@ export type ResumeDisclosure =
|
|
|
98
98
|
const notice = (reason: ResumeNoticeReason, text: string): ResumeDisclosure => ({ kind: "notice", text, reason });
|
|
99
99
|
|
|
100
100
|
const RESUME_DISCLOSURES: Record<ResumeReason, ResumeDisclosure> = {
|
|
101
|
-
auth: notice("auth", "
|
|
102
|
-
outage: notice("outage", "The
|
|
101
|
+
auth: notice("auth", "Sign-in renewed; picked up where it left off."),
|
|
102
|
+
outage: notice("outage", "The provider came back; picked up where it left off."),
|
|
103
103
|
// Says what a restart costs a turn, since the turn re-runs as if nothing changed and finds its servers gone.
|
|
104
|
-
restart: notice(
|
|
105
|
-
|
|
106
|
-
"The sandbox came back; background commands and dev servers this turn started have ended; this turn picked up where it left off.",
|
|
107
|
-
),
|
|
108
|
-
stopped: notice("stopped", "Sent again after the turn stopped short, picking up where it left off."),
|
|
104
|
+
restart: notice("restart", "Sandbox back; picked up where it left off. Its background jobs ended."),
|
|
105
|
+
stopped: notice("stopped", "Sent again after the turn stopped short."),
|
|
109
106
|
// Said as the owner would say it, as `restart` is: what ran out, that it came back by itself once there was room, and
|
|
110
107
|
// what it lost on the way, in the words a person uses for what a turn leaves running.
|
|
111
|
-
memory: notice(
|
|
112
|
-
"memory",
|
|
113
|
-
"Sent again once memory freed up, after the sandbox ran out of memory and stopped this turn; background commands and dev servers it started have ended.",
|
|
114
|
-
),
|
|
108
|
+
memory: notice("memory", "Sent again once memory freed up; its background jobs ended."),
|
|
115
109
|
// None of these four auto-resumed, a person pressed Continue; `switched`/`carried` name the differing account.
|
|
116
|
-
limit: notice("limit", "Sent again after the allowance ran out mid-turn
|
|
117
|
-
switched: notice("switched", "Sent again on the switched account
|
|
118
|
-
carried: notice("carried", "Sent again on the switched account
|
|
119
|
-
trimmed: notice("trimmed", "Sent again after the allowance ran out,
|
|
120
|
-
summarized: notice("summarized", "Sent again after the allowance ran out,
|
|
110
|
+
limit: notice("limit", "Sent again after the allowance ran out mid-turn."),
|
|
111
|
+
switched: notice("switched", "Sent again on the switched account, in a fresh session."),
|
|
112
|
+
carried: notice("carried", "Sent again on the switched account, same session."),
|
|
113
|
+
trimmed: notice("trimmed", "Sent again after the allowance ran out, old tool output cleared."),
|
|
114
|
+
summarized: notice("summarized", "Sent again after the allowance ran out, from a summary."),
|
|
121
115
|
refused: notice("refused", "Sent again after the allowance refused it: nothing had run."),
|
|
122
116
|
door: notice("door", "Sent again: the first attempt was turned away before anything ran."),
|
|
123
|
-
overflow: notice("overflow", "Sent again in a fresh session
|
|
124
|
-
flagged: notice("flagged", "Sent again
|
|
117
|
+
overflow: notice("overflow", "Sent again in a fresh session: the last outgrew the context window."),
|
|
118
|
+
flagged: notice("flagged", "Sent again without the response the safeguards stopped."),
|
|
125
119
|
continued: notice("continued", "Carried on from where the last turn stopped."),
|
|
126
120
|
answered: { kind: "note", note: { title: "Picked back up after a sandbox restart", text: RESUME_NOTES.answered } },
|
|
127
121
|
};
|
|
@@ -10,6 +10,8 @@ export type WorktreeSyncCause = z.infer<typeof WorktreeSyncCauseSchema>;
|
|
|
10
10
|
// The sandbox's own notice rows (a land, a hold, a renewal, a stop), as a code and the facts they were worded from. The
|
|
11
11
|
// row's `text` stays the English sentence, which older apps, stored transcripts and agents reading their own history
|
|
12
12
|
// go on reading; `noticeCode` beside it is what lets an app say the same thing in the reader's language and words.
|
|
13
|
+
// Every sentence fits one row of a half-width chat, about 80 characters with its facts filled in (2026-11-20: a
|
|
14
|
+
// three-line rebase notice). What it would add beyond that belongs in the agent's prompt or behind a press, not here.
|
|
13
15
|
|
|
14
16
|
// On the wire a code is any string and its facts a flat record: a transcript page carrying a code newer than its reader
|
|
15
17
|
// still parses, and that reader draws `text`. The codes this build writes, with their facts typed, are
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
LAND_FIX_PREFIX,
|
|
6
6
|
LINKED_PREFIX,
|
|
7
7
|
LINK_CONVERSATION_PREFIX,
|
|
8
|
+
ROUTE_CONVERSATION_PREFIX,
|
|
8
9
|
looksDrawn,
|
|
9
10
|
SUBAGENT_PREFIX,
|
|
10
11
|
TAIL_ALPHABET,
|
|
@@ -79,6 +80,7 @@ test("no word collides with a derived id's prefix or a git name", () => {
|
|
|
79
80
|
LAND_FIX_PREFIX,
|
|
80
81
|
SUBAGENT_PREFIX,
|
|
81
82
|
LINK_CONVERSATION_PREFIX,
|
|
83
|
+
ROUTE_CONVERSATION_PREFIX,
|
|
82
84
|
LINKED_PREFIX,
|
|
83
85
|
"a-",
|
|
84
86
|
"wf-",
|
|
@@ -127,7 +129,7 @@ test("a drawn id, new or old, looks drawn; a route or a derived id does not", ()
|
|
|
127
129
|
// A subagent's and a link's conversations are drawn ids under a prefix, and their tails carry no digit about a third
|
|
128
130
|
// of the time, so the prefix must not hide them.
|
|
129
131
|
test("a drawn id under a subagent or link prefix still looks drawn, in either generation", () => {
|
|
130
|
-
for (const prefix of [SUBAGENT_PREFIX, LINK_CONVERSATION_PREFIX, LINKED_PREFIX]) {
|
|
132
|
+
for (const prefix of [SUBAGENT_PREFIX, LINK_CONVERSATION_PREFIX, ROUTE_CONVERSATION_PREFIX, LINKED_PREFIX]) {
|
|
131
133
|
expect(looksDrawn(`${prefix}${newConversationId()}`)).toBe(true);
|
|
132
134
|
expect(looksDrawn(`${prefix}otter-kmpq`)).toBe(true);
|
|
133
135
|
expect(looksDrawn(`${prefix}keen-pine-tkjf`)).toBe(true);
|
|
@@ -52,13 +52,15 @@ const tail = (): string => Array.from({ length: TAIL_LENGTH }, () => pick(TAIL_S
|
|
|
52
52
|
// A fresh id: `<word>-<tail>`, e.g. `otter-k7mq`; about ten characters against a UUID's thirty-six.
|
|
53
53
|
export const newConversationId = (): string => `${pick(CONVERSATION_WORDS)}-${tail()}`;
|
|
54
54
|
|
|
55
|
-
// A DRAWN ID WORN UNDER A PREFIX.
|
|
56
|
-
// of it: a spawned subagent (`sub-otter-k7mq`), a conversation a link opened here (`link-…`)
|
|
57
|
-
//
|
|
55
|
+
// A DRAWN ID WORN UNDER A PREFIX. Four kinds of conversation draw an id like any other and say what they are in front
|
|
56
|
+
// of it: a spawned subagent (`sub-otter-k7mq`), a conversation a link opened here (`link-…`), one another sandbox opened
|
|
57
|
+
// here acting for one of its people (`route-…`, 2026-11-24) and the roster entry for a task running on another sandbox
|
|
58
|
+
// (`linked-…`). Kept here beside the word list, since no word may read as one of them.
|
|
58
59
|
export const SUBAGENT_PREFIX = "sub-";
|
|
59
60
|
export const LINK_CONVERSATION_PREFIX = "link-";
|
|
61
|
+
export const ROUTE_CONVERSATION_PREFIX = "route-";
|
|
60
62
|
export const LINKED_PREFIX = "linked-";
|
|
61
|
-
const WRAPPING_PREFIXES = [SUBAGENT_PREFIX, LINK_CONVERSATION_PREFIX, LINKED_PREFIX];
|
|
63
|
+
const WRAPPING_PREFIXES = [SUBAGENT_PREFIX, LINK_CONVERSATION_PREFIX, ROUTE_CONVERSATION_PREFIX, LINKED_PREFIX];
|
|
62
64
|
const unwrapped = (id: string): string => {
|
|
63
65
|
const prefix = WRAPPING_PREFIXES.find((candidate) => id.startsWith(candidate));
|
|
64
66
|
return prefix === undefined ? id : id.slice(prefix.length);
|
|
@@ -3,7 +3,7 @@ import { MEMORY_FILE, PUBLIC_DIR, REFERENCE_DIR, WORKSPACE_ROOT } from "@intenti
|
|
|
3
3
|
import { STARTER_REPO } from "../state/starter.js";
|
|
4
4
|
import { isProjectDirName, projectDirCandidates, projectDirNameFor, projectDirNameOf, projectRemoteDir, RESERVED_PROJECT_DIR_NAMES } from "./project-dir.js";
|
|
5
5
|
|
|
6
|
-
// The cases `ic` is held to as well (
|
|
6
|
+
// The cases `ic` is held to as well (_hosts/ic/src/sandbox/project_dir.rs), read from the one file both run.
|
|
7
7
|
interface ProjectDirCases {
|
|
8
8
|
readonly names: readonly { readonly name: string; readonly valid: boolean }[];
|
|
9
9
|
readonly folders: readonly { readonly folder: string; readonly dirName: string }[];
|
package/src/ids/project-dir.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { STARTER_REPO } from "../state/starter.js";
|
|
|
4
4
|
// A PROJECT SANDBOX is made for one folder on the owner's computer, synced live into `/work/<name>` rather than into
|
|
5
5
|
// /work itself: the workspace root is the daemon's own, where it keeps its state, seeds its starter repo and serves
|
|
6
6
|
// `public/` to anyone with a link. `<name>` is derived from the folder's name once, on the owner's side, and every
|
|
7
|
-
// later reader (the sync agent, `ic`, the daemon) only validates it. `
|
|
7
|
+
// later reader (the sync agent, `ic`, the daemon) only validates it. `_hosts/ic/src/sandbox/project_dir.rs` holds the
|
|
8
8
|
// validation again for the host side; `project-dir.fixture.json` is the one set of cases both run.
|
|
9
9
|
|
|
10
10
|
// Top-level names the daemon treats as its own, so a project can never land on one: the public outbox, the reference
|