@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
package/src/schemas/git/git.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GitRepoParamSchema } from "./git-view.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { AgentProviderSchema } from "../agent.js";
|
|
4
|
-
import { LandConflictSchema, LandedMessageSchema } from "../agents.js";
|
|
4
|
+
import { LandConflictSchema, LandedMessageSchema, LandingExtensionsSchema } from "../agents.js";
|
|
5
5
|
import { CommandRunSchema } from "../ci.js";
|
|
6
6
|
import { RefNameSchema } from "../internal.js";
|
|
7
7
|
import { MainBranchSchema } from "../shared.js";
|
|
@@ -260,9 +260,9 @@ export const GitOperationStateSchema = z.object({
|
|
|
260
260
|
export type GitOperationState = z.infer<typeof GitOperationStateSchema>;
|
|
261
261
|
// Judged by shape alone: the names scratch arrives under are made up fresh every time, so no list of names could hold.
|
|
262
262
|
export const ScratchReasonSchema = z
|
|
263
|
-
.enum(["hidden", "byproduct", "checkout", "oversized", "root"])
|
|
263
|
+
.enum(["hidden", "byproduct", "checkout", "oversized", "root", "bulk"])
|
|
264
264
|
.describe(
|
|
265
|
-
"Why it looks like scratch. A new hidden directory that is not one a project keeps on purpose (like `.github`). A log, dump, backup or editor leftover. A git checkout of its own. A new file past the size source code reaches.
|
|
265
|
+
"Why it looks like scratch. A new hidden directory that is not one a project keeps on purpose (like `.github`). A log, dump, backup or editor leftover. A git checkout of its own. A new file past the size source code reaches. A new dotfile at the top of a workspace whose projects are the repositories inside it. Or a new folder holding more files, or more bytes, than any change a person writes: build output an ignore rule stopped hiding, an unpacked archive, a download.",
|
|
266
266
|
);
|
|
267
267
|
export type ScratchReason = z.infer<typeof ScratchReasonSchema>;
|
|
268
268
|
export const ScratchPathSchema = z.object({
|
|
@@ -362,6 +362,12 @@ export const OriginAgentSchema = z.object({
|
|
|
362
362
|
),
|
|
363
363
|
});
|
|
364
364
|
export type OriginAgent = z.infer<typeof OriginAgentSchema>;
|
|
365
|
+
// Sandbox-wide and read at response time, not from the memoized scan: a discard waits on its restore point, and a
|
|
366
|
+
// press that showed nothing for minutes was pressed again after a reload (2026-11-21).
|
|
367
|
+
const runningIn = (what: string, doing: string) =>
|
|
368
|
+
z.array(z.string()).optional().describe(
|
|
369
|
+
`Repositories with ${what} running right now. The sandbox's answer rather than any one tab's, so a reload, a second window and another device all know. Absent means nothing is ${doing}.`,
|
|
370
|
+
);
|
|
365
371
|
// Aggregated review set across every repo (root + every discovered repo).
|
|
366
372
|
export const GitChangesSchema = z.object({
|
|
367
373
|
repos: z
|
|
@@ -377,14 +383,8 @@ export const GitChangesSchema = z.object({
|
|
|
377
383
|
.describe(
|
|
378
384
|
"Who each conversation named above is, keyed by id, so a caller need not look them up. Absent when nothing in the review can be attributed.",
|
|
379
385
|
),
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
committing: z
|
|
383
|
-
.array(z.string())
|
|
384
|
-
.optional()
|
|
385
|
-
.describe(
|
|
386
|
-
"Repositories with a commit running right now. The sandbox's answer rather than any one tab's, so a reload, a second window and another device all know. Absent means nothing is committing.",
|
|
387
|
-
),
|
|
386
|
+
committing: runningIn("a commit", "committing"),
|
|
387
|
+
discarding: runningIn("a discard (its restore point being taken, or the files going)", "being discarded"),
|
|
388
388
|
});
|
|
389
389
|
export type GitChanges = z.infer<typeof GitChangesSchema>;
|
|
390
390
|
// Re-read inside the same lock the commit used, so the caller redraws from here instead of a full rescan. `changes`
|
|
@@ -462,8 +462,6 @@ export const AgentRepoChangesSchema = z.object({
|
|
|
462
462
|
),
|
|
463
463
|
});
|
|
464
464
|
export type AgentRepoChanges = z.infer<typeof AgentRepoChangesSchema>;
|
|
465
|
-
// The review, plus why the last land refused: a conflict is found when the turn ends but resolved later on this
|
|
466
|
-
// surface, so it rides here rather than only in the land response, and refreshes on every land.
|
|
467
465
|
// A workspace repo this conversation's copy does not carry, where the copy nonetheless holds files at its path: what a
|
|
468
466
|
// turn wrote into a folder that was no checkout of its own, which therefore reached no branch.
|
|
469
467
|
export const OutsideCheckoutSchema = z.object({
|
|
@@ -476,7 +474,8 @@ export const OutsideCheckoutSchema = z.object({
|
|
|
476
474
|
files: z.number().describe("How many files the copy holds at its path. A floor past a thousand, which is where the count stops."),
|
|
477
475
|
});
|
|
478
476
|
export type OutsideCheckout = z.infer<typeof OutsideCheckoutSchema>;
|
|
479
|
-
|
|
477
|
+
// The review, plus why the last land refused: a conflict is found when the turn ends but resolved later on this
|
|
478
|
+
// surface, so it rides here rather than only in the land response, and refreshes on every land.
|
|
480
479
|
export const AgentChangesSchema = z.object({
|
|
481
480
|
repos: z.array(AgentRepoChangesSchema).describe("One entry per repository the conversation touched."),
|
|
482
481
|
// Disambiguates two opposite reasons for an empty list: nothing written, versus everything already committed.
|
|
@@ -555,6 +554,7 @@ export const AgentChangesSchema = z.object({
|
|
|
555
554
|
.describe(
|
|
556
555
|
"Repositories of your workspace this conversation's copy does not carry, where it nonetheless wrote files at their path. Nothing written there is on its branch, so no merge brings it; an `unborn` one is taken into the copy, with those files, on the conversation's next turn after its first commit. Absent when there are none.",
|
|
557
556
|
),
|
|
557
|
+
extensions: LandingExtensionsSchema,
|
|
558
558
|
});
|
|
559
559
|
export type AgentChanges = z.infer<typeof AgentChangesSchema>;
|
|
560
560
|
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
/* WHAT A COMPUTER'S OWN OS DOES TO WORK LEFT RUNNING ON IT (2026-11-22). Two sandboxes on rog had sessions booked for the
|
|
4
|
+
night. rog's power plan put it to sleep five hours after its owner's last keypress, at 05:37, and nothing on it ran
|
|
5
|
+
again until the lid was opened at 10:01: a send booked for 07:10 went out three hours late, and nobody had been told
|
|
6
|
+
this would happen. The machine agent now reads the settings that decide this (machine `power/`) and reports each one
|
|
7
|
+
that would stop a sandbox's scheduled work as a finding, in its facts (`DeviceFacts.power`). The daemon raises a
|
|
8
|
+
`host-power` card when something is booked that one of them would stop (needs.ts), and the owner's yes runs the
|
|
9
|
+
agent's `power-stay-on` op (DeviceAgentOpSchema), which changes those settings on mains power and leaves battery as it
|
|
10
|
+
is: a laptop in a bag must still sleep.
|
|
11
|
+
|
|
12
|
+
Finding ids are strings, not an enum, so a finding a newer agent adds is one more line rather than facts that fail to
|
|
13
|
+
parse; `text` is the agent's own sentence for it, which a reader shows when it has no words of its own for the id. */
|
|
14
|
+
|
|
15
|
+
// The ids this build knows. Each is one setting or one OS behaviour, on one power source where that matters.
|
|
16
|
+
export const POWER_FINDING = {
|
|
17
|
+
// Windows: "Sleep after" is set, on mains power, in at least one power plan.
|
|
18
|
+
sleepIdle: "sleep-idle",
|
|
19
|
+
// Windows: "Hibernate after" is set, on mains power.
|
|
20
|
+
hibernateIdle: "hibernate-idle",
|
|
21
|
+
// Windows: closing the lid on mains power sleeps, hibernates or shuts the computer down.
|
|
22
|
+
lidClose: "lid-close",
|
|
23
|
+
// Windows Modern Standby: the network is cut while the screen is off, so a provider call from a turn fails.
|
|
24
|
+
standbyNetwork: "standby-network",
|
|
25
|
+
// Windows: on battery it still sleeps (after `afterSeconds`, or when the lid closes). Reported, never changed.
|
|
26
|
+
batterySleep: "battery-sleep",
|
|
27
|
+
// Windows Update may restart the computer outside its active hours (`window`), and after a restart nothing runs
|
|
28
|
+
// until somebody signs in. Reported, never changed.
|
|
29
|
+
updateRestart: "update-restart",
|
|
30
|
+
// Linux or macOS: the OS may suspend the computer; the fix needs root, so `command` says what to run.
|
|
31
|
+
osSleep: "os-sleep",
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
export const HostPowerFindingSchema = z.object({
|
|
35
|
+
id: z.string().min(1).describe("Which setting or behaviour (POWER_FINDING), as a string so a newer agent's id still parses."),
|
|
36
|
+
power: z.enum(["ac", "dc"]).optional().describe("The power source it applies to: ac is mains, dc is battery. Absent where that does not matter."),
|
|
37
|
+
afterSeconds: z.number().int().positive().optional().describe("For a timeout: how long without input before it acts, the shortest across power plans."),
|
|
38
|
+
action: z.string().optional().describe("For the lid: what closing it does now, `sleep`, `hibernate` or `shut-down`."),
|
|
39
|
+
window: z
|
|
40
|
+
.object({
|
|
41
|
+
fromHour: z.number().int().min(0).max(23),
|
|
42
|
+
toHour: z.number().int().min(0).max(23),
|
|
43
|
+
})
|
|
44
|
+
.optional()
|
|
45
|
+
.describe("For an update restart: the local hours it may happen in, from `fromHour` up to `toHour` (wrapping past midnight)."),
|
|
46
|
+
plans: z.array(z.string()).optional().describe("Windows: the power plans that hold the value, by name. A vendor may switch between them by itself."),
|
|
47
|
+
fixable: z.boolean().describe("Whether the agent's `power-stay-on` op changes it."),
|
|
48
|
+
command: z.string().optional().describe("Where the agent cannot change it: the command a person runs on that computer."),
|
|
49
|
+
text: z.string().min(1).describe("What it does now, in the agent's words (English), for a reader with none of its own for this id."),
|
|
50
|
+
});
|
|
51
|
+
export type HostPowerFinding = z.infer<typeof HostPowerFindingSchema>;
|
|
52
|
+
|
|
53
|
+
export const HostPowerSchema = z.object({
|
|
54
|
+
at: z.number().describe("When the settings were read, in epoch ms."),
|
|
55
|
+
utcOffsetMinutes: z
|
|
56
|
+
.number()
|
|
57
|
+
.int()
|
|
58
|
+
.describe("The computer's local time minus UTC, in minutes, when read: what places a finding's local `window` on another clock."),
|
|
59
|
+
battery: z.boolean().optional().describe("Whether the computer has a battery at all."),
|
|
60
|
+
findings: z.array(HostPowerFindingSchema).describe("Everything its OS would do to stop or delay work left running; empty when nothing would."),
|
|
61
|
+
});
|
|
62
|
+
export type HostPower = z.infer<typeof HostPowerSchema>;
|
|
63
|
+
|
|
64
|
+
/** The findings the agent's `power-stay-on` op would change. Pure. */
|
|
65
|
+
export const fixablePowerFindings = (power: Pick<HostPower, "findings"> | undefined): HostPowerFinding[] =>
|
|
66
|
+
(power?.findings ?? []).filter((finding) => finding.fixable);
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether `at` (epoch ms) falls inside a finding's local-hours `window` on a computer `utcOffsetMinutes` from UTC: the
|
|
70
|
+
* window runs from `fromHour` up to `toHour`, past midnight when `toHour` is the smaller. Pure.
|
|
71
|
+
*/
|
|
72
|
+
export const insideLocalWindow = (at: number, window: NonNullable<HostPowerFinding["window"]>, utcOffsetMinutes: number): boolean => {
|
|
73
|
+
const local = new Date(at + utcOffsetMinutes * 60_000);
|
|
74
|
+
const hour = local.getUTCHours();
|
|
75
|
+
if (window.fromHour === window.toHour) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
return window.fromHour < window.toHour ? hour >= window.fromHour && hour < window.toHour : hour >= window.fromHour || hour < window.toHour;
|
|
79
|
+
};
|
package/src/schemas/hosts.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// hosts: the user's own connected devices (the `host` capability's live half)
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { HostPowerSchema } from "./host-power.js";
|
|
3
4
|
import { IntenticOsFactsSchema } from "./intentic-os.js";
|
|
4
5
|
// Manifest says which machines are intended; this says which actually hold a socket now. Nothing persists across a
|
|
5
6
|
// daemon restart except the enrollment itself, so a closed laptop reads offline within a heartbeat.
|
|
@@ -106,6 +107,11 @@ export const DeviceFactsSchema = z.object({
|
|
|
106
107
|
// the machine boots, so the daemon tells the agent it may be this box's steward and the os_* tools are there. `os`
|
|
107
108
|
// above stays the human name. Absent everywhere else, and from an agent older than the field.
|
|
108
109
|
intenticOs: IntenticOsFactsSchema.optional(),
|
|
110
|
+
// (2026-11-22) What this computer's OS would do to work left running on it: a power plan that sleeps it, a lid that
|
|
111
|
+
// does, an update restart in the night (HostPowerSchema, host-power.ts). Said by the environment that owns those
|
|
112
|
+
// settings (Windows' native side, a Linux or macOS host), never by a WSL distro. Absent from an agent older than the
|
|
113
|
+
// field, and where the settings could not be read.
|
|
114
|
+
power: HostPowerSchema.optional(),
|
|
109
115
|
});
|
|
110
116
|
export type DeviceFacts = z.infer<typeof DeviceFactsSchema>;
|
|
111
117
|
|
|
@@ -167,7 +173,7 @@ const GIB = 1024 ** 3;
|
|
|
167
173
|
below it. Windows' memory manager trims working sets and pages hard well before it reaches zero: rog froze with 1.1 GB
|
|
168
174
|
left, so the floor sits above that. A tenth scales it with the machine, where one browser or a game can take a few
|
|
169
175
|
gigabytes in a second and 1.5 GiB of a 64 GiB machine is no margin at all. */
|
|
170
|
-
const HOST_LOW_FLOOR_BYTES = 1.5 * GIB;
|
|
176
|
+
export const HOST_LOW_FLOOR_BYTES = 1.5 * GIB;
|
|
171
177
|
const HOST_LOW_SHARE = 0.1;
|
|
172
178
|
export const hostMemoryLowBytes = (totalBytes: number): number => Math.max(HOST_LOW_FLOOR_BYTES, HOST_LOW_SHARE * totalBytes);
|
|
173
179
|
|
|
@@ -200,6 +206,29 @@ export const DeviceFeatureSchema = z.enum([
|
|
|
200
206
|
// (2026-11-19) `list_stacks`, `stack_action`, `stack_logs` and `deploy_stack`: Docker compose stacks on the machine,
|
|
201
207
|
// read, driven and deployed to from the Deployments board (schemas/device-stacks.ts).
|
|
202
208
|
"stacks",
|
|
209
|
+
// (2026-11-20) `remoteStart` and `remoteStop`: people's remote desktop and terminals on this computer, served by
|
|
210
|
+
// intentic-remoted, which the agent starts and keeps (schemas/device-remote.ts). Advertised only where a remoted can
|
|
211
|
+
// exist here: a release built for this platform, or one already beside the agent.
|
|
212
|
+
"remote",
|
|
213
|
+
// (2026-11-20) `remoteStart` takes `iceServers`, which the agent writes into each uplink of remoted.json for remoted's
|
|
214
|
+
// own STUN gathering. Without it the daemon leaves them out: the input schema is strict.
|
|
215
|
+
"remote-ice",
|
|
216
|
+
// (2026-11-20) `remoteService`: remoted's Windows service for the lock screen and administrator prompts, read,
|
|
217
|
+
// installed and removed (schemas/device-remote.ts). Advertised by a Windows agent that advertises `remote`.
|
|
218
|
+
"remote-service",
|
|
219
|
+
// (2026-11-22) The `power-stay-on` agent op: the power settings that would sleep this computer through scheduled work
|
|
220
|
+
// (`DeviceFacts.power`), changed on mains power by `intentic-machine power stay-on`. Advertised where the agent can
|
|
221
|
+
// change them itself, which is Windows' native side.
|
|
222
|
+
"power",
|
|
223
|
+
// (2026-11-23) run_command's `admin`: the command run as the signed-in person's administrator, with no UAC prompt,
|
|
224
|
+
// through intentic-remoted's Windows service, under the card's "Run commands as administrator" switch. Advertised by
|
|
225
|
+
// a Windows agent that advertises `remote-service`; an agent without it would drop the field and run the command
|
|
226
|
+
// unelevated, so the daemon refuses `admin` to it rather than forward it.
|
|
227
|
+
"admin-run",
|
|
228
|
+
// (2026-11-24) `ci_runners`, `ci_runner_action`, `ci_runner_logs`, `ci_runner_register` and `ci_runner_remove`: the
|
|
229
|
+
// self-hosted GitHub Actions runners on this computer, read and driven from the Pipelines view
|
|
230
|
+
// (schemas/ci-fleet.ts). Advertised by a Linux agent: the runners are systemd units.
|
|
231
|
+
"ci-runners",
|
|
203
232
|
]);
|
|
204
233
|
export type DeviceFeature = z.infer<typeof DeviceFeatureSchema>;
|
|
205
234
|
export const DEVICE_FEATURE_RESHAPE_LATER: DeviceFeature = "reshape-later";
|
|
@@ -217,7 +246,13 @@ export const DEVICE_FEATURE_REACH_NETWORK: DeviceFeature = "reach-network";
|
|
|
217
246
|
export const DEVICE_FEATURE_SANDBOX_MOVE: DeviceFeature = "sandbox-move";
|
|
218
247
|
export const DEVICE_FEATURE_FILE_COPY: DeviceFeature = "file-copy";
|
|
219
248
|
export const DEVICE_FEATURE_STACKS: DeviceFeature = "stacks";
|
|
220
|
-
|
|
249
|
+
export const DEVICE_FEATURE_CI_RUNNERS: DeviceFeature = "ci-runners";
|
|
250
|
+
export const DEVICE_FEATURE_REMOTE: DeviceFeature = "remote";
|
|
251
|
+
export const DEVICE_FEATURE_REMOTE_ICE: DeviceFeature = "remote-ice";
|
|
252
|
+
export const DEVICE_FEATURE_REMOTE_SERVICE: DeviceFeature = "remote-service";
|
|
253
|
+
export const DEVICE_FEATURE_POWER: DeviceFeature = "power";
|
|
254
|
+
export const DEVICE_FEATURE_ADMIN_RUN: DeviceFeature = "admin-run";
|
|
255
|
+
// What `ic features --json` answers (_hosts/ic/src/features.rs, golden/ic-features.json): the optional ops that ic
|
|
221
256
|
// implements, as strings, since a newer ic's word means nothing to an older agent.
|
|
222
257
|
export const IcFeaturesAnswerSchema = z.object({ features: z.array(z.string()) });
|
|
223
258
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
-
// INTENTIC OS (2026-10-13): the immutable Linux that boots straight into Intentic (
|
|
3
|
+
// INTENTIC OS (2026-10-13): the immutable Linux that boots straight into Intentic (_hosts/README.md). Everything that changes
|
|
4
4
|
// the OS goes through `ic os`, and everything that calls it reads ic's JSON rather than bootc's. This is that JSON as the
|
|
5
5
|
// TypeScript side reads it, and the argv every caller spells it with: the machine agent's os_* tools run it, and a page
|
|
6
6
|
// that cannot reach the machine can print it for a person to type. golden/intentic-os.json holds an example of each
|
|
@@ -130,7 +130,7 @@ export const icOsRebootArgs = (): string[] => ["os", "reboot"];
|
|
|
130
130
|
export const icOsChannelArgs = (channel: IntenticOsChannel): string[] => ["os", "channel", IntenticOsChannelSchema.parse(channel)];
|
|
131
131
|
|
|
132
132
|
// THE MACHINE'S OWN SETTINGS (2026-10-16): the network, the sound, the screen, the keyboard and the drives a person plugs
|
|
133
|
-
// in, each a verb of `ic os` (
|
|
133
|
+
// in, each a verb of `ic os` (_hosts/README.md, "Settings"). The desktop app's This computer cards, its status bar and the
|
|
134
134
|
// machine agent's tools all read these shapes, so a person and the agent in the machine's own sandbox change the same
|
|
135
135
|
// things the same way ("connect to the guest Wi-Fi"). ic reads NetworkManager, WirePlumber, sway and udisks for them:
|
|
136
136
|
// nothing that calls ic speaks to those.
|
package/src/schemas/issues.ts
CHANGED
|
@@ -90,6 +90,20 @@ export const IssueSenderSchema = z.object({
|
|
|
90
90
|
sandboxName: z.string().max(120).describe("Its name on your account."),
|
|
91
91
|
project: z.string().max(200).describe("The project it reported about, as this sandbox claims it."),
|
|
92
92
|
conversationId: z.string().max(120).optional().describe("The conversation over there that reported it."),
|
|
93
|
+
person: z
|
|
94
|
+
.string()
|
|
95
|
+
.max(254)
|
|
96
|
+
.optional()
|
|
97
|
+
.describe("The person that conversation acts for, as the platform signed it and this sandbox's roster knows them: attribution only."),
|
|
98
|
+
crossesOrg: z
|
|
99
|
+
.object({
|
|
100
|
+
from: z.object({ id: z.string().max(64), name: z.string().max(120) }).optional(),
|
|
101
|
+
to: z.object({ id: z.string().max(64), name: z.string().max(120) }).optional(),
|
|
102
|
+
})
|
|
103
|
+
.optional()
|
|
104
|
+
.describe(
|
|
105
|
+
"Set when the reporting sandbox and this one are not in the same organisation, as the platform signed it: `from` is the reporter's organisation, `to` this sandbox's; a side in none is absent.",
|
|
106
|
+
),
|
|
93
107
|
});
|
|
94
108
|
export type IssueSender = z.infer<typeof IssueSenderSchema>;
|
|
95
109
|
|
|
@@ -44,7 +44,7 @@ describe("keep-warm economics", () => {
|
|
|
44
44
|
describe("the receipt a kept conversation's turn leaves", () => {
|
|
45
45
|
test("says it picked up warm, and for how long it was kept", () => {
|
|
46
46
|
expect(keptWarmLine({ readTokens: 251_000, writtenTokens: 3_000, kept: { forMs: 3 * HOUR + 12 * MINUTE, refreshes: 4 } })).toBe(
|
|
47
|
-
"Picked up warm: 251k tokens
|
|
47
|
+
"Picked up warm: 251k tokens from cache, kept 3h 12m (4 refreshes).",
|
|
48
48
|
);
|
|
49
49
|
});
|
|
50
50
|
|
package/src/schemas/keep-warm.ts
CHANGED
|
@@ -115,10 +115,9 @@ export const keptWarmLine = (opening: PromptCacheOpening): string | undefined =>
|
|
|
115
115
|
return undefined;
|
|
116
116
|
}
|
|
117
117
|
const { tokens, span, refreshes } = notice.params;
|
|
118
|
-
const held = `kept warm for ${span} with ${refreshes} ${refreshes === 1 ? "refresh" : "refreshes"}`;
|
|
119
118
|
return notice.code === "keptWarm"
|
|
120
|
-
? `Picked up warm: ${tokens} tokens
|
|
121
|
-
: `Picked up cold
|
|
119
|
+
? `Picked up warm: ${tokens} tokens from cache, kept ${span} (${refreshes} ${refreshes === 1 ? "refresh" : "refreshes"}).`
|
|
120
|
+
: `Picked up cold after ${span} kept warm: ${tokens} tokens resent, the prompt changed.`;
|
|
122
121
|
};
|
|
123
122
|
|
|
124
123
|
// A turn's prefix, part by part, so two turns that should share a cache can say which part stopped matching.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KeyringCaptureOutcomeSchema, KeyringRefusalCodeSchema, KeyringSecretNameSchema } from "./keyring.js";
|
|
2
2
|
import { KeyringNativeNameSchema, KeyringNativeOutcomeSchema, KeyringNativeRefusalCodeSchema } from "./keyring-native.js";
|
|
3
3
|
|
|
4
4
|
// keyring-native.ts spells three of keyring.ts's schemas again so the browser extension's bundle never reaches keyring.ts
|
|
@@ -7,7 +7,15 @@ import { KeyringNativeNameSchema, KeyringNativeOutcomeSchema, KeyringNativeRefus
|
|
|
7
7
|
test("the extension's copies of keyring.ts's names, refusals and outcomes are the same", () => {
|
|
8
8
|
expect(KeyringNativeRefusalCodeSchema.options).toEqual(KeyringRefusalCodeSchema.options);
|
|
9
9
|
expect(KeyringNativeOutcomeSchema.options).toEqual(KeyringCaptureOutcomeSchema.options);
|
|
10
|
-
for (const name of ["GITHUB_COM", "_1PASSWORD", "a", "1BAD", "has-dash", ""]) {
|
|
11
|
-
expect(KeyringNativeNameSchema.safeParse(name).success).toBe(
|
|
10
|
+
for (const name of ["GITHUB_COM", "_1PASSWORD", "a", "1BAD", "has-dash", "", "__proto__", "constructor", "prototype"]) {
|
|
11
|
+
expect(KeyringNativeNameSchema.safeParse(name).success).toBe(KeyringSecretNameSchema.safeParse(name).success);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
+
|
|
15
|
+
test("a secret's name is never one Object.prototype already has, since it keys the vault's plain objects", () => {
|
|
16
|
+
for (const name of ["__proto__", "constructor", "toString", "hasOwnProperty", "valueOf", "prototype"]) {
|
|
17
|
+
expect(KeyringSecretNameSchema.safeParse(name).success).toBe(false);
|
|
18
|
+
}
|
|
19
|
+
expect(KeyringSecretNameSchema.safeParse("CONSTRUCTOR").success).toBe(true);
|
|
20
|
+
expect(KeyringSecretNameSchema.safeParse("_proto").success).toBe(true);
|
|
21
|
+
});
|
|
@@ -20,7 +20,9 @@ const id = string().min(1).max(64);
|
|
|
20
20
|
const host = string().min(1).max(253);
|
|
21
21
|
|
|
22
22
|
/** keyring.ts's secret name, refusal code and capture outcome, as the extension sees them. */
|
|
23
|
-
export const KeyringNativeNameSchema = string()
|
|
23
|
+
export const KeyringNativeNameSchema = string()
|
|
24
|
+
.regex(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/u)
|
|
25
|
+
.refine((key) => !(key in Object.prototype) && key !== "prototype");
|
|
24
26
|
export const KeyringNativeRefusalCodeSchema = zEnum([
|
|
25
27
|
"no-keyring",
|
|
26
28
|
"locked",
|
package/src/schemas/keyring.ts
CHANGED
|
@@ -14,9 +14,14 @@ export const KeyringPublicKeySchema = z.string().regex(KEYRING_KEY_RE).describe(
|
|
|
14
14
|
// One secret's name, the same shape a sandbox secret's name and a reference to it take (SECRET_KEY_RE), so a shared
|
|
15
15
|
// entry is spent, typed and listed exactly like a sandbox-held one.
|
|
16
16
|
export const KEYRING_NAME_RE = /^[A-Za-z_][A-Za-z0-9_]{0,127}$/u;
|
|
17
|
+
// A name that keys a plain object in the keyring's vault (entries by name, phones by device) is never one of
|
|
18
|
+
// Object.prototype's members: `entries["constructor"]` would read the prototype's function instead of nothing, and an
|
|
19
|
+
// assignment to `entries["__proto__"]` would swap the dictionary's prototype for a peer's value.
|
|
20
|
+
export const isVaultKey = (key: string): boolean => !(key in Object.prototype) && key !== "prototype";
|
|
17
21
|
export const KeyringSecretNameSchema = z
|
|
18
22
|
.string()
|
|
19
23
|
.regex(KEYRING_NAME_RE)
|
|
24
|
+
.refine(isVaultKey, "not a name Object.prototype already has (`constructor`, `__proto__`, `toString`, ...)")
|
|
20
25
|
.describe("The secret's name, as a reference to it carries it: a letter or underscore, then letters, digits or `_`.");
|
|
21
26
|
|
|
22
27
|
export const KeyringShareModeSchema = z
|
|
@@ -431,7 +436,7 @@ export type KeyringPendingNeed = z.infer<typeof KeyringPendingNeedSchema>;
|
|
|
431
436
|
// way a Windows Hello signature is. Pairing is carried by a sandbox both are linked to, with both fingerprints shown.
|
|
432
437
|
export const KeyringPhoneKeysSchema = z
|
|
433
438
|
.object({
|
|
434
|
-
device: z.string().min(1).max(128).describe("The phone, by its device card."),
|
|
439
|
+
device: z.string().min(1).max(128).refine(isVaultKey, "not a name Object.prototype already has").describe("The phone, by its device card."),
|
|
435
440
|
label: z.string().min(1).max(200).describe("The phone's name for people, `Pixel 8`."),
|
|
436
441
|
seal: KeyringPublicKeySchema,
|
|
437
442
|
presence: z.string().min(1).max(512).describe("The presence key, X.509 SubjectPublicKeyInfo DER, base64."),
|
package/src/schemas/members.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// members: the daemon's shared-access roster (GET/POST/DELETE /members), who besides the owner reaches this sandbox
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { kindsWhere } from "../policy/capabilities/capability-kinds.js";
|
|
3
4
|
import type { CapabilityKind } from "./capabilities.js";
|
|
4
5
|
import { entryId } from "./internal.js";
|
|
5
6
|
import { type GrantedTier, GrantedTierSchema, type MemberTier, MemberTierSchema, withLegacyTier } from "./shared.js";
|
|
@@ -74,22 +75,9 @@ export type CredentialReach = z.infer<typeof CredentialReachSchema>;
|
|
|
74
75
|
// it per turn (a mount, a variable, a signature, a gateway request). The rest are the sandbox's own machinery with no
|
|
75
76
|
// value to withhold (Docker, a VPN once dialled, a mounted share, a local model, the wallet's owner-approved cards), so a
|
|
76
77
|
// reach neither lists nor removes them: a switch for one would be a line on a screen.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"browser",
|
|
81
|
-
"identity",
|
|
82
|
-
"ssh",
|
|
83
|
-
"device",
|
|
84
|
-
"phone",
|
|
85
|
-
"webext",
|
|
86
|
-
"plugin",
|
|
87
|
-
"extension",
|
|
88
|
-
// The owner's account: a person this sandbox works for may be kept from making sandboxes on it.
|
|
89
|
-
"fleet",
|
|
90
|
-
// Another of the owner's sandboxes: a person may be kept from handing it work.
|
|
91
|
-
"link",
|
|
92
|
-
];
|
|
78
|
+
// The owner's account (`fleet`) and another of their sandboxes (`link`) are among them: a person may be kept from
|
|
79
|
+
// making sandboxes on it, or from handing one work.
|
|
80
|
+
export const REACHABLE_CREDENTIAL_KINDS: readonly CapabilityKind[] = kindsWhere((traits) => traits.reachable);
|
|
93
81
|
|
|
94
82
|
// WHICH AI ACCOUNTS A PERSON'S CONVERSATIONS MAY RUN ON: the model accounts that pay for a turn (a Claude or Codex
|
|
95
83
|
// subscription, a routed provider's sign-in, an API-key endpoint), as distinct from the connections above, which are
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SandboxMetrics, SandboxMetricsSchema } from "./metrics.js";
|
|
1
|
+
import { type DiskPressure, type SandboxMetrics, DiskPressureSchema, SandboxMetricsSchema } from "./metrics.js";
|
|
2
2
|
|
|
3
3
|
// A daemon payload from before memoryBreakdown and the other optional accounting fields existed.
|
|
4
4
|
const legacyMetrics = {
|
|
@@ -18,6 +18,14 @@ const legacyMetrics = {
|
|
|
18
18
|
},
|
|
19
19
|
} satisfies SandboxMetrics;
|
|
20
20
|
|
|
21
|
+
test("disk-pressure readings keep old payloads valid and carry an optional host drive limit", () => {
|
|
22
|
+
const reading: DiskPressure = { level: "critical", freeBytes: 18_500_000_000, totalBytes: 394_500_000_000, measuredAt: 1, using: [] };
|
|
23
|
+
expect(DiskPressureSchema.parse(reading)).toEqual(reading);
|
|
24
|
+
expect(
|
|
25
|
+
DiskPressureSchema.parse({ ...reading, limitedBy: { drive: "C:\\", driveFreeBytes: 18_500_000_000 } }).limitedBy,
|
|
26
|
+
).toEqual({ drive: "C:\\", driveFreeBytes: 18_500_000_000 });
|
|
27
|
+
});
|
|
28
|
+
|
|
21
29
|
describe("the metrics memory accounting contract", () => {
|
|
22
30
|
test("an older payload parses unchanged without the optional breakdown or its categories", () => {
|
|
23
31
|
const parsed = SandboxMetricsSchema.parse(legacyMetrics);
|
package/src/schemas/metrics.ts
CHANGED
|
@@ -346,6 +346,10 @@ const StorageReportFields = z.object({
|
|
|
346
346
|
totalBytes: z.number().describe("The history volume's total size."),
|
|
347
347
|
floorBytes: z.number().describe("Space kept free before a new checkout: 2% of this volume clamped to 5–20 GiB."),
|
|
348
348
|
low: z.boolean().describe("Whether available history space is below the checkout floor."),
|
|
349
|
+
limitedBy: z
|
|
350
|
+
.object({ drive: z.string(), driveFreeBytes: z.number() })
|
|
351
|
+
.optional()
|
|
352
|
+
.describe("The Windows host drive limiting free space, when a host disk hint is available."),
|
|
349
353
|
})
|
|
350
354
|
.optional()
|
|
351
355
|
.describe("The filesystem holding conversation checkouts, independent of the workspace volume. Absent if unreadable."),
|
|
@@ -401,6 +405,10 @@ export const DiskPressureSchema = z.object({
|
|
|
401
405
|
freeBytes: z.number().describe("Space available on the history volume at the last reading."),
|
|
402
406
|
totalBytes: z.number().describe("The history volume's size."),
|
|
403
407
|
measuredAt: z.number().describe("When it was read, in milliseconds; 0 before the first reading."),
|
|
408
|
+
limitedBy: z
|
|
409
|
+
.object({ drive: z.string(), driveFreeBytes: z.number() })
|
|
410
|
+
.optional()
|
|
411
|
+
.describe("The Windows host drive limiting free space, when a host disk hint is available."),
|
|
404
412
|
reaped: z
|
|
405
413
|
.object({
|
|
406
414
|
bytes: z.number().describe("Space the removals gave back, as the volume measured it before and after."),
|
package/src/schemas/needs.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { KeyringShareModeSchema } from "./keyring.js";
|
|
3
3
|
import { AutomationSchema } from "./automations.js";
|
|
4
|
+
import { HostPowerFindingSchema } from "./host-power.js";
|
|
4
5
|
import { entryId } from "./internal.js";
|
|
6
|
+
import { PASS_SCOPES } from "../protocol/doors/pass-scopes.js";
|
|
5
7
|
|
|
6
8
|
// A need: something an agent cannot finish its task without that only a person can provide (a connection, a secret's
|
|
7
9
|
// value, wider reach, a tool in the image). Unlike a parked card it outlives the turn that raised it: the sandbox keeps
|
|
8
10
|
// it until someone answers, draws it wherever it is waiting, and wakes the conversation when it is met
|
|
9
11
|
// (docs/architecture/needs.md). Every word on a need is the daemon's except `why`, the agent's own case.
|
|
10
12
|
|
|
11
|
-
export const NEED_KINDS = ["capability", "secret", "grant", "release", "environment", "automation", "instruction"] as const;
|
|
13
|
+
export const NEED_KINDS = ["capability", "secret", "grant", "release", "environment", "automation", "instruction", "host-power", "claim", "route"] as const;
|
|
12
14
|
export const NeedKindSchema = z
|
|
13
15
|
.enum(NEED_KINDS)
|
|
14
16
|
.describe(
|
|
15
|
-
"What is being asked for: a connection, a secret's value, wider reach, a gated credential, a tool in the image, an automation to run unattended,
|
|
17
|
+
"What is being asked for: a connection, a secret's value, wider reach, a gated credential, a tool in the image, an automation to run unattended, a standing rule written into an AGENTS.md, power settings changed on the computer this sandbox runs on, a project claimed for this sandbox so the owner's other sandboxes report its problems here, or a person's leave for this sandbox to act as them in another.",
|
|
16
18
|
);
|
|
17
19
|
export type NeedKind = z.infer<typeof NeedKindSchema>;
|
|
18
20
|
|
|
@@ -192,6 +194,45 @@ export const InstructionNeedSchema = z.object({
|
|
|
192
194
|
});
|
|
193
195
|
export type InstructionNeed = z.infer<typeof InstructionNeedSchema>;
|
|
194
196
|
|
|
197
|
+
// The computer this sandbox runs on would sleep through work just booked on it (2026-11-22, host-power.ts): its power plan
|
|
198
|
+
// sleeps it after hours without input, its lid does, Windows Update may restart it in the night. Raised by the daemon
|
|
199
|
+
// itself, never by an agent's ask, in the conversation whose booking it would stop; a person's approval runs the
|
|
200
|
+
// computer's `power-stay-on` op, which changes what `fixable` findings say on mains power. Its outcome is the person's
|
|
201
|
+
// alone: the conversation is never woken to hear it, since a woken turn would run the booked work early.
|
|
202
|
+
export const HostPowerNeedSchema = z.object({
|
|
203
|
+
kind: z.literal("host-power"),
|
|
204
|
+
device: z.string().min(1).describe("The connected computer this sandbox runs on, by its device id."),
|
|
205
|
+
findings: z.array(HostPowerFindingSchema).describe("What its OS would do to the work, as read when the card was raised."),
|
|
206
|
+
dueAt: z.number().optional().describe("When the booked work that raised it is due, in milliseconds."),
|
|
207
|
+
});
|
|
208
|
+
export type HostPowerNeed = z.infer<typeof HostPowerNeedSchema>;
|
|
209
|
+
|
|
210
|
+
// A project claimed for this sandbox (docs/architecture/account-routing.md): the owner's other sandboxes then report the
|
|
211
|
+
// problems they see in it here (`projects report`), into this sandbox's issues inbox. Only the owner, signed in to the
|
|
212
|
+
// platform, writes a claim, so the agent proposes it and the owner's press makes it; one sandbox per project on an
|
|
213
|
+
// account, so a claim another sandbox held moves here.
|
|
214
|
+
export const ClaimNeedSchema = z.object({
|
|
215
|
+
kind: z.literal("claim"),
|
|
216
|
+
project: z.string().min(1).describe("The project, as its repository: github.com/owner/repo."),
|
|
217
|
+
heldBy: z.string().optional().describe("The sandbox on the owner's account that claims it now, which a yes moves it from."),
|
|
218
|
+
});
|
|
219
|
+
export type ClaimNeed = z.infer<typeof ClaimNeedSchema>;
|
|
220
|
+
|
|
221
|
+
// A person's leave for this sandbox to route as them into another one (docs/architecture/account-routing.md, 2026-11-24):
|
|
222
|
+
// every scope but a report needs the pairing secret that person minted at the target and handed here, so the platform's
|
|
223
|
+
// pass alone opens nothing but an inbox. Only that person can press it: their editor, signed in to both sandboxes, mints
|
|
224
|
+
// the secret over there and stores it here. Met once this sandbox holds a secret for (target, person).
|
|
225
|
+
export const RouteNeedSchema = z.object({
|
|
226
|
+
kind: z.literal("route"),
|
|
227
|
+
target: z.string().min(1).max(40).describe("The target sandbox's tunnel id."),
|
|
228
|
+
targetName: z.string().max(120).describe("Its name, as the platform gave it."),
|
|
229
|
+
person: z.string().min(1).max(254).describe("The one person this sandbox would route as, and the only one who can allow it."),
|
|
230
|
+
scopes: z.array(z.enum(PASS_SCOPES)).min(1).describe("What the routing is for: drop, read or task."),
|
|
231
|
+
address: z.string().max(400).optional().describe("The target's address, as the platform gave it, which the card reaches it at."),
|
|
232
|
+
from: z.string().max(40).optional().describe("This sandbox's own tunnel id, which the target keys the pairing on."),
|
|
233
|
+
});
|
|
234
|
+
export type RouteNeed = z.infer<typeof RouteNeedSchema>;
|
|
235
|
+
|
|
195
236
|
export const NeedSubjectSchema = z
|
|
196
237
|
.discriminatedUnion("kind", [
|
|
197
238
|
CapabilityNeedSchema,
|
|
@@ -201,6 +242,9 @@ export const NeedSubjectSchema = z
|
|
|
201
242
|
EnvironmentNeedSchema,
|
|
202
243
|
AutomationNeedSchema,
|
|
203
244
|
InstructionNeedSchema,
|
|
245
|
+
HostPowerNeedSchema,
|
|
246
|
+
ClaimNeedSchema,
|
|
247
|
+
RouteNeedSchema,
|
|
204
248
|
])
|
|
205
249
|
.describe("What exactly is asked for.");
|
|
206
250
|
export type NeedSubject = z.infer<typeof NeedSubjectSchema>;
|
|
@@ -264,6 +308,18 @@ export const NeedAskSchema = z.discriminatedUnion("kind", [
|
|
|
264
308
|
file: z.string().min(1).max(400).describe("The AGENTS.md, relative to the workspace root."),
|
|
265
309
|
text: z.string().trim().min(1).max(INSTRUCTION_MAX).describe("The rule, as it should read in the file."),
|
|
266
310
|
}),
|
|
311
|
+
// The project as the agent has it: github.com/owner/repo or any remote URL of it; the daemon normalises it.
|
|
312
|
+
z.object({ kind: z.literal("claim"), project: z.string().trim().min(1).max(400).describe("The project's repository, or any remote URL of it.") }),
|
|
313
|
+
// The target as the agent has it (its name or id); the person is the one the raising conversation acts for, never named here.
|
|
314
|
+
z.object({
|
|
315
|
+
kind: z.literal("route"),
|
|
316
|
+
target: z.string().trim().min(1).max(120).describe("The sandbox to route into, by its name or id."),
|
|
317
|
+
scopes: z
|
|
318
|
+
.array(z.enum(PASS_SCOPES))
|
|
319
|
+
.min(1)
|
|
320
|
+
.optional()
|
|
321
|
+
.describe("What it is for: drop, read or task (all three when left out)."),
|
|
322
|
+
}),
|
|
267
323
|
]);
|
|
268
324
|
export type NeedAsk = z.infer<typeof NeedAskSchema>;
|
|
269
325
|
|
|
@@ -399,6 +455,12 @@ export const ConversationGrantSchema = z.object({
|
|
|
399
455
|
.boolean()
|
|
400
456
|
.default(false)
|
|
401
457
|
.describe("Whether every request an allow-once could settle is allowed without asking, until somebody takes it back."),
|
|
458
|
+
// Put on from the conversation's card, read live by the card registry (schemas/auto-approve.ts): wider than
|
|
459
|
+
// `everything`, it answers the owner's hard rules too, and the conversations this one starts follow it.
|
|
460
|
+
autoApprove: z
|
|
461
|
+
.boolean()
|
|
462
|
+
.default(false)
|
|
463
|
+
.describe("Whether every permission it or a subagent it starts asks for is approved without asking, the owner's hard rules included."),
|
|
402
464
|
// Answered on a credential gateway card, read live by the gateway as each request its rules would ask about arrives.
|
|
403
465
|
rules: z
|
|
404
466
|
.array(BrokerRulePassSchema)
|
|
@@ -450,6 +512,7 @@ export const StandingGrantsSchema = z.object({
|
|
|
450
512
|
installs: z.boolean().default(false).describe("Whether its own dependency installs run without asking."),
|
|
451
513
|
secrets: z.array(z.string()).default([]).describe("Secrets it may send past their host guard without asking."),
|
|
452
514
|
everything: z.boolean().default(false).describe("Whether every request an allow-once could settle is allowed without asking."),
|
|
515
|
+
autoApprove: z.boolean().default(false).describe("Whether it and its subagents are approved without asking, the owner's hard rules included."),
|
|
453
516
|
rules: z.array(BrokerRulePassSchema).default([]).describe("Credential gateway rules that no longer ask before its requests."),
|
|
454
517
|
by: z.string().optional().describe("Who last allowed one of those."),
|
|
455
518
|
updatedAt: z.number().optional().describe("When one of those last changed, in milliseconds."),
|
|
@@ -472,11 +535,11 @@ export type StandingGrants = z.infer<typeof StandingGrantsSchema>;
|
|
|
472
535
|
export const ConversationGrantRevokeSchema = z.object({
|
|
473
536
|
conversationId: z.string(),
|
|
474
537
|
kind: z
|
|
475
|
-
.enum(["release", "install", "secret", "everything", "rule"])
|
|
538
|
+
.enum(["release", "install", "secret", "everything", "auto-approve", "rule"])
|
|
476
539
|
.describe(
|
|
477
|
-
"Which kind of yes: a credential's release, letting its installs run unasked, a secret sent past its host guard, allowing everything, or a credential gateway rule that stopped asking.",
|
|
540
|
+
"Which kind of yes: a credential's release, letting its installs run unasked, a secret sent past its host guard, allowing everything, its auto-approve mark, or a credential gateway rule that stopped asking.",
|
|
478
541
|
),
|
|
479
|
-
what: z.string().describe("The released credential or secret it named, or the rule's identity; empty for installs and
|
|
542
|
+
what: z.string().describe("The released credential or secret it named, or the rule's identity; empty for installs, everything and auto-approve."),
|
|
480
543
|
capability: z.string().optional().describe("For a rule, the capability whose rule it is; a rule's identity alone does not say."),
|
|
481
544
|
});
|
|
482
545
|
export type ConversationGrantRevoke = z.infer<typeof ConversationGrantRevokeSchema>;
|
package/src/schemas/offload.ts
CHANGED
|
@@ -102,9 +102,10 @@ export type SessionsPlacement = z.infer<typeof SessionsPlacementSchema>;
|
|
|
102
102
|
export const MachineStandingSchema = z.enum(["calm", "busy", "full"]);
|
|
103
103
|
export type MachineStanding = z.infer<typeof MachineStandingSchema>;
|
|
104
104
|
|
|
105
|
-
// What made a machine busy or full: memory short of what an agent needs, memory stalling, CPUs saturated,
|
|
106
|
-
// agents running as it has slots for
|
|
107
|
-
|
|
105
|
+
// What made a machine busy or full: memory short of what an agent needs, memory stalling, CPUs saturated, as many
|
|
106
|
+
// agents running as it has slots for, or its disk (the Windows drive under its engine, where that is tighter) too short
|
|
107
|
+
// for another agent's checkout and build.
|
|
108
|
+
export const MachineStrainSchema = z.enum(["memory", "memory-stall", "cpu", "agents", "disk"]);
|
|
108
109
|
export type MachineStrain = z.infer<typeof MachineStrainSchema>;
|
|
109
110
|
|
|
110
111
|
export const MachineLoadSchema = z.object({
|
|
@@ -117,6 +118,8 @@ export const MachineLoadSchema = z.object({
|
|
|
117
118
|
// What its resource budget has free, and the limit that is measured against; absent where nothing measures it.
|
|
118
119
|
memoryFreeMb: z.number().int().nonnegative().optional(),
|
|
119
120
|
memoryLimitMb: z.number().int().positive().optional(),
|
|
121
|
+
// What its workspace's disk has free, by the tighter of the volume and the host drive under it.
|
|
122
|
+
diskFreeMb: z.number().int().nonnegative().optional(),
|
|
120
123
|
// Conversations running a turn there now, and how many it holds at once (the fan-out scheduler's own slots).
|
|
121
124
|
agents: z.number().int().nonnegative(),
|
|
122
125
|
slots: z.number().int().positive(),
|
package/src/schemas/ports.ts
CHANGED
|
@@ -79,6 +79,11 @@ export const PortsListSchema = z.object({
|
|
|
79
79
|
});
|
|
80
80
|
export type PortsList = z.infer<typeof PortsListSchema>;
|
|
81
81
|
export const PortParamSchema = z.object({ port: z.number().int().min(1).max(65535).describe("Which port.") });
|
|
82
|
+
// (2026-11-23) A port on one of this sandbox's runners, for a conversation that runs there: previewed through the
|
|
83
|
+
// runner's uplink at an address of this sandbox's own.
|
|
84
|
+
export const PortForwardInputSchema = PortParamSchema.extend({
|
|
85
|
+
runner: z.string().min(1).optional().describe("The runner whose own port this is. Absent means a port of this sandbox."),
|
|
86
|
+
});
|
|
82
87
|
export const PortForwardResultSchema = z.object({
|
|
83
88
|
previewUrl: z
|
|
84
89
|
.string()
|