@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
|
@@ -53,7 +53,7 @@ export const RAW_ROUTES = {
|
|
|
53
53
|
"POST /workspace/upload-diff": {},
|
|
54
54
|
"POST /workspace/upload-archive": { lane: "bulk" },
|
|
55
55
|
// Minting is cheap: each WebSocket upgrade floors its own redemption.
|
|
56
|
-
"POST /system/ws-ticket": { beforeBoot: true, floor: "collaborator", control: "never" },
|
|
56
|
+
"POST /system/ws-ticket": { beforeBoot: true, floor: "collaborator", panel: false, control: "never" },
|
|
57
57
|
// A WebSocket upgrade carries no Authorization header; the terminal, both browser wires and the desktop's check a
|
|
58
58
|
// query ticket.
|
|
59
59
|
"GET /system/terminal": { auth: "door", beforeBoot: true, control: "never", netd: true },
|
|
@@ -64,6 +64,17 @@ export const RAW_ROUTES = {
|
|
|
64
64
|
"GET /system/sync/ssh": { sync: "pipe", control: "never", lane: "bulk" },
|
|
65
65
|
"GET /system/browser-profile": { auth: "door", beforeBoot: true, control: "never" },
|
|
66
66
|
"GET /system/browser-view": { auth: "door", beforeBoot: true, control: "never" },
|
|
67
|
+
// A file the person picked for a page's file chooser, or dropped on one (browser/uploads): operating the window,
|
|
68
|
+
// like the view's own socket, so the maintainer's. Into a temp folder the daemon cleans, never the workspace.
|
|
69
|
+
"POST /browser/uploads": { floor: "maintainer", control: "never", lane: "bulk" },
|
|
70
|
+
// A finished browser download, saved by the person's own browser: navigated to, so no header, and its ticket
|
|
71
|
+
// (browser.downloadTicket, minted at maintainer) is checked in the handler.
|
|
72
|
+
"GET /browser/downloads/file": { auth: "door", control: "never", lane: "bulk" },
|
|
73
|
+
// Chromium's own DevTools for one page, framed by the editor: the frontend's files and the page's DevTools socket,
|
|
74
|
+
// proxied from the window's debugging port. A frame and its socket send no header, so the ticket is the path's first
|
|
75
|
+
// segment (browser.devtools, minted at maintainer), checked in the handler. The socket first: it is the narrower.
|
|
76
|
+
"GET /browser/devtools/{ticket}/ws/{kind}/{target}": { auth: "door", control: "never" },
|
|
77
|
+
"GET /browser/devtools/{ticket}/*": { auth: "door", control: "never" },
|
|
67
78
|
// The sandbox's own desktop, watched and driven by the owner (desktop/desktop-view.ts); the same query ticket.
|
|
68
79
|
"GET /system/desktop-view": { auth: "door", beforeBoot: true, control: "never" },
|
|
69
80
|
// An event automation's webhook, gated by the automation's own token.
|
|
@@ -86,19 +97,19 @@ export const RAW_ROUTES = {
|
|
|
86
97
|
// The roster is for whoever runs people and access (Full access, or the People & access right) to read and change;
|
|
87
98
|
// giving up one's own grant is every tier's. Reading it is floored here as well as in its handler (members.routes.ts),
|
|
88
99
|
// so the editor knows before asking; what someone below Full access may change is the handler's (peopleChangeRefusal).
|
|
89
|
-
"GET /members": { floor: "maintainer", right: "people", control: "never" },
|
|
90
|
-
"POST /members": { right: "people", control: "never" },
|
|
91
|
-
"DELETE /members": { right: "people", control: "never" },
|
|
100
|
+
"GET /members": { floor: "maintainer", right: "people", panel: false, control: "never" },
|
|
101
|
+
"POST /members": { right: "people", panel: false, control: "never" },
|
|
102
|
+
"DELETE /members": { right: "people", panel: false, control: "never" },
|
|
92
103
|
"DELETE /members/self": { floor: "viewer", guest: true, control: "never" },
|
|
93
104
|
// What one's own grant allows, read by the editor to offer only what will be taken.
|
|
94
105
|
"GET /members/self": { floor: "viewer", guest: true, control: "never" },
|
|
95
106
|
// Asking for more access is every member's, a guest's included, from wherever they were refused; reading and
|
|
96
107
|
// dismissing the requests is for whoever runs people and access, beside the roster they are answered on.
|
|
97
108
|
"POST /members/requests": { floor: "viewer", guest: true, control: "never" },
|
|
98
|
-
"GET /members/requests": { floor: "maintainer", right: "people", control: "never" },
|
|
99
|
-
"DELETE /members/requests": { right: "people", control: "never" },
|
|
109
|
+
"GET /members/requests": { floor: "maintainer", right: "people", panel: false, control: "never" },
|
|
110
|
+
"DELETE /members/requests": { right: "people", panel: false, control: "never" },
|
|
100
111
|
// The owner's Reconnect: register with the platform now, having it adopt the sandbox first when it holds no record.
|
|
101
|
-
"POST /platform/relink": { floor: "owner", control: "never" },
|
|
112
|
+
"POST /platform/relink": { floor: "owner", panel: false, control: "never" },
|
|
102
113
|
"GET /environment": {},
|
|
103
114
|
"GET /environment/contents": {},
|
|
104
115
|
"POST /environment/approve": {},
|
|
@@ -113,10 +124,11 @@ export const RAW_ROUTES = {
|
|
|
113
124
|
"POST /engines/channel": {},
|
|
114
125
|
"POST /engines/update": {},
|
|
115
126
|
"POST /engines/revert": {},
|
|
127
|
+
// An export can carry every vault (the owner's choice), and its ticket is the download's credential: never a panel's.
|
|
116
128
|
"GET /bundles": { floor: "maintainer", control: "never" },
|
|
117
|
-
"POST /bundles": { control: "never" },
|
|
129
|
+
"POST /bundles": { panel: false, control: "never" },
|
|
118
130
|
"DELETE /bundles": { control: "never" },
|
|
119
|
-
"POST /bundles/ticket": { control: "never" },
|
|
131
|
+
"POST /bundles/ticket": { panel: false, control: "never" },
|
|
120
132
|
// Navigated to by the browser, so no header: its ticket is checked in the handler.
|
|
121
133
|
"GET /bundles/download": { auth: "door", control: "never", lane: "bulk" },
|
|
122
134
|
"GET /definition": {},
|
|
@@ -127,9 +139,10 @@ export const RAW_ROUTES = {
|
|
|
127
139
|
"GET /arrivals/hosts": {},
|
|
128
140
|
"POST /arrivals/scan": {},
|
|
129
141
|
"POST /arrivals/apply": {},
|
|
130
|
-
// Model API keys on the owner's devices, and turning the picked ones into model endpoints
|
|
131
|
-
|
|
132
|
-
"
|
|
142
|
+
// Model API keys on the owner's devices, and turning the picked ones into model endpoints: each reads credential
|
|
143
|
+
// files off the owner's computers, so never a panel process's.
|
|
144
|
+
"GET /arrivals/keys": { panel: false },
|
|
145
|
+
"POST /arrivals/keys/apply": { panel: false },
|
|
133
146
|
"DELETE /arrivals": {},
|
|
134
147
|
"GET /extensions/{id}/bundle": { lane: "bulk" },
|
|
135
148
|
// An extension backend's own namespace, proxied verbatim.
|
|
@@ -227,27 +240,27 @@ export const RAW_ROUTES = {
|
|
|
227
240
|
// a sign-in this daemon started, and worth nothing without the PKCE verifier only the daemon holds.
|
|
228
241
|
"GET /oauth/mcp/callback": { auth: "door", control: "never" },
|
|
229
242
|
// Below maintainer a pairing is capped to port-mirror, so a collaborator may mint a preview tunnel.
|
|
230
|
-
"POST /system/sync/pair": { floor: "collaborator", control: "never" },
|
|
243
|
+
"POST /system/sync/pair": { floor: "collaborator", panel: false, control: "never" },
|
|
231
244
|
// A copy-paste command's short code, redeemed by the install script it was handed to: a device's first contact,
|
|
232
245
|
// gated by the code itself and a limit on failed attempts (peers/redeem-codes.ts).
|
|
233
246
|
"POST /system/redeem/{code}": { auth: "door", control: "never" },
|
|
234
247
|
// The peer doors: a device, browser or runner redeems its pairing at `enroll` and dials `connect` with the token.
|
|
235
|
-
"POST /system/hosts/pair": { control: "never" },
|
|
248
|
+
"POST /system/hosts/pair": { panel: false, control: "never" },
|
|
236
249
|
"POST /system/hosts/enroll": { auth: "door", control: "never" },
|
|
237
250
|
"GET /system/hosts": { control: "never" },
|
|
238
|
-
"DELETE /system/hosts/{id}": { control: "never" },
|
|
251
|
+
"DELETE /system/hosts/{id}": { panel: false, control: "never" },
|
|
239
252
|
// A peer's socket reconnects on its own backoff, so it answers before boot.
|
|
240
253
|
"GET /system/hosts/connect": { auth: "door", beforeBoot: true, control: "never" },
|
|
241
254
|
"POST /system/hosts/keyring-changed": { auth: "door", control: "never" },
|
|
242
|
-
"POST /system/webext/pair": { control: "never" },
|
|
255
|
+
"POST /system/webext/pair": { panel: false, control: "never" },
|
|
243
256
|
"POST /system/webext/enroll": { auth: "door", control: "never" },
|
|
244
257
|
"GET /system/webext": { control: "never" },
|
|
245
|
-
"DELETE /system/webext/{id}": { control: "never" },
|
|
258
|
+
"DELETE /system/webext/{id}": { panel: false, control: "never" },
|
|
246
259
|
"GET /system/webext/connect": { auth: "door", beforeBoot: true, control: "never" },
|
|
247
|
-
"POST /system/phones/pair": { control: "never" },
|
|
260
|
+
"POST /system/phones/pair": { panel: false, control: "never" },
|
|
248
261
|
"POST /system/phones/enroll": { auth: "door", control: "never" },
|
|
249
262
|
"GET /system/phones": { control: "never" },
|
|
250
|
-
"DELETE /system/phones/{id}": { control: "never" },
|
|
263
|
+
"DELETE /system/phones/{id}": { panel: false, control: "never" },
|
|
251
264
|
"GET /system/phones/connect": { auth: "door", beforeBoot: true, control: "never" },
|
|
252
265
|
// The editor hands over the push-relay channel it registered for a phone, so the sandbox can wake it.
|
|
253
266
|
"POST /system/phones/{id}/wake": { control: "never" },
|
|
@@ -256,10 +269,10 @@ export const RAW_ROUTES = {
|
|
|
256
269
|
"POST /system/phones/passwords/pair": { auth: "door", control: "never" },
|
|
257
270
|
"POST /system/phones/passwords/capture": { auth: "door", control: "never" },
|
|
258
271
|
"POST /system/phones/passwords/fill": { auth: "door", control: "never" },
|
|
259
|
-
"POST /system/runners/pair": { control: "never" },
|
|
272
|
+
"POST /system/runners/pair": { panel: false, control: "never" },
|
|
260
273
|
"POST /system/runners/enroll": { auth: "door", control: "never" },
|
|
261
274
|
"GET /system/runners": { control: "never" },
|
|
262
|
-
"DELETE /system/runners/{id}": { control: "never" },
|
|
275
|
+
"DELETE /system/runners/{id}": { panel: false, control: "never" },
|
|
263
276
|
"GET /system/runners/connect": { auth: "door", beforeBoot: true, control: "never" },
|
|
264
277
|
// Every MCP server the daemon hosts for a turn (its browser routers, the machines and browsers it was granted, its
|
|
265
278
|
// extension cards' endpoints), by server name: the handler checks the conversation's mount bearer the turn's tool
|
|
@@ -280,6 +293,7 @@ export const RAW_ROUTES = {
|
|
|
280
293
|
// sandbox's own address, before it shares anything with it, rather than take them from whoever relays the share.
|
|
281
294
|
"GET /keyring/keys": { auth: "door", control: "never" },
|
|
282
295
|
"POST /system/runners/{id}/definition/sync": { control: "never" },
|
|
296
|
+
"POST /system/runners/{id}/label": { control: "never" },
|
|
283
297
|
// A runner's git door and credential doors, each on the runner's own bearer.
|
|
284
298
|
"GET /system/runners/git/{repo}/info/refs": { auth: "door", control: "never", lane: "bulk" },
|
|
285
299
|
"POST /system/runners/git/{repo}/git-upload-pack": { auth: "door", control: "never", lane: "bulk" },
|
|
@@ -288,6 +302,14 @@ export const RAW_ROUTES = {
|
|
|
288
302
|
"POST /system/runners/credentials/refresh": { auth: "door", control: "never" },
|
|
289
303
|
// A runner's wake for a conversation dispatched there (runner-wake.ts): said here, so its turn is the parent's.
|
|
290
304
|
"POST /system/runners/wake": { auth: "door", control: "never" },
|
|
305
|
+
// A runner's turn reading this sandbox's fleet (runner-protocol.ts runnerFleetPath), as a turn of the conversation it
|
|
306
|
+
// was placed there for reads it here: the same answers `GET /fleet…` gives.
|
|
307
|
+
"GET /system/runners/fleet": { auth: "door", control: "never" },
|
|
308
|
+
"GET /system/runners/fleet/{handle}": { auth: "door", control: "never" },
|
|
309
|
+
"GET /system/runners/fleet/{handle}/bundle": { auth: "door", control: "never" },
|
|
310
|
+
// A runner's turn calling one of its `subagents` tools for the conversation it was placed there for (runner-protocol.ts
|
|
311
|
+
// runnerSubagentsPath), run here as that conversation's turn running here runs it. A `wait` parks for up to 31 minutes.
|
|
312
|
+
"POST /system/runners/subagents/{tool}": { auth: "door", control: "never", stream: true },
|
|
291
313
|
[`ALL ${runnerTranslatorPath}/*` as const]: { auth: "door", control: "never" },
|
|
292
314
|
// The privacy shield's gateway: every shielded runtime's model requests, on the signed session its base URL carries
|
|
293
315
|
// (privacy/gateway/session-token.ts), which names the provider and the only upstream it may forward to. Held open
|
|
@@ -304,19 +326,57 @@ export const RAW_ROUTES = {
|
|
|
304
326
|
// Inbound links: another of the owner's sandboxes handing this one tasks (schemas/links.ts). Minted, re-termed and
|
|
305
327
|
// revoked by the owner alone, checked in the handler like a control token; a waiting task is the owner's to allow.
|
|
306
328
|
"GET /system/links": { control: "never" },
|
|
307
|
-
"POST /system/links": { control: "never" },
|
|
308
|
-
"POST /system/links/{id}": { control: "never" },
|
|
309
|
-
"DELETE /system/links/{id}": { control: "never" },
|
|
310
|
-
"POST /system/links/{id}/requests/{request}": { control: "never" },
|
|
329
|
+
"POST /system/links": { panel: false, control: "never" },
|
|
330
|
+
"POST /system/links/{id}": { panel: false, control: "never" },
|
|
331
|
+
"DELETE /system/links/{id}": { panel: false, control: "never" },
|
|
332
|
+
"POST /system/links/{id}/requests/{request}": { panel: false, control: "never" },
|
|
311
333
|
// Account-level report routing: another sandbox on the owner's account reporting a problem about a project this one
|
|
312
334
|
// claims. Checked in the handler against a pass the platform signed (policy/sandbox-pass.ts); it only ever records
|
|
313
335
|
// into the issues inbox, and wakes an agent only as the inbox's own escalation rule says.
|
|
314
336
|
"POST /account/report": { auth: "door", control: "never" },
|
|
337
|
+
// Routing as a person, the `task` scope (2026-11-24): another sandbox hands a task to a conversation here that acts
|
|
338
|
+
// for the one person its pass names. Each door checks the pass and that person's pairing itself (account-routing/
|
|
339
|
+
// admit-route.ts) and reaches only the conversations that (asking sandbox, person) opened, as a link's doors do.
|
|
340
|
+
"POST /account/task": { auth: "door", control: "never" },
|
|
341
|
+
"GET /account/task/{id}": { auth: "door", control: "never" },
|
|
342
|
+
"POST /account/task/{id}/messages": { auth: "door", control: "never" },
|
|
343
|
+
"POST /account/task/{id}/answer": { auth: "door", control: "never" },
|
|
344
|
+
"POST /account/task/{id}/stop": { auth: "door", control: "never" },
|
|
315
345
|
// The sending side, for the `projects` command on the agent's PATH: report a problem to whichever sandbox claims a
|
|
316
346
|
// project (delivered now or kept in the outbox), what is still waiting, and the projects this sandbox claims.
|
|
317
347
|
"POST /account/outbox": { agent: true, control: "never" },
|
|
318
348
|
"GET /account/outbox": { agent: true, control: "never" },
|
|
319
349
|
"GET /account/projects": { agent: true, control: "never" },
|
|
350
|
+
// The projects this workspace's repos could claim, from their remotes: for Settings ▸ Projects and `projects suggest`.
|
|
351
|
+
"GET /account/projects/suggest": { floor: "maintainer", agent: true, control: "never" },
|
|
352
|
+
// Routing as a person (schemas/account-routes.ts). The receiving side: the signed-in person pairs an asking sandbox
|
|
353
|
+
// with themselves (never a guest, who reaches nothing a pass would open), lists their own pairings, revokes one; the
|
|
354
|
+
// handler lets a maintainer list and revoke anyone's. The asking side: the same person, signed in here, keeps the
|
|
355
|
+
// secret they minted over there, and anyone reads what is held, never a secret. No agent and no control token reaches
|
|
356
|
+
// any of them: a pairing is the person's own word.
|
|
357
|
+
"POST /account/pairings": { floor: "viewer", panel: false, control: "never" },
|
|
358
|
+
"GET /account/pairings": { floor: "viewer", panel: false, control: "never" },
|
|
359
|
+
"DELETE /account/pairings/{from}": { floor: "viewer", panel: false, control: "never" },
|
|
360
|
+
"POST /account/routes/secret": { floor: "viewer", panel: false, control: "never" },
|
|
361
|
+
"GET /account/routes": { floor: "viewer", control: "never" },
|
|
362
|
+
// Routing as a person, a drop (schemas/account-routes.ts): another sandbox the person is in handing a note and files
|
|
363
|
+
// into this one's inbox, admitted in the handler by a drop pass beside the person's pairing (admit-route.ts); it starts
|
|
364
|
+
// no turn. The sending side, for `sandboxes send` on the agent's PATH. The inbox, for the `inbox` command and the
|
|
365
|
+
// editor's Received list: each shown to the people a drop names and to maintainers, the handler cutting the list.
|
|
366
|
+
"POST /account/drop": { auth: "door", control: "never", lane: "bulk" },
|
|
367
|
+
"POST /account/drops": { agent: true, control: "never" },
|
|
368
|
+
"GET /account/inbox": { floor: "viewer", agent: true, control: "never" },
|
|
369
|
+
"GET /account/inbox/{id}": { floor: "viewer", agent: true, control: "never" },
|
|
370
|
+
"GET /account/inbox/{id}/files": { floor: "viewer", agent: true, control: "never", lane: "bulk" },
|
|
371
|
+
"POST /account/inbox/{id}/take": { floor: "collaborator", agent: true, control: "never" },
|
|
372
|
+
"DELETE /account/inbox/{id}": { floor: "collaborator", agent: true, control: "never" },
|
|
373
|
+
// Routing as a person, a read: another sandbox the person is in reading the conversations and records they may read
|
|
374
|
+
// here, admitted in the handler by a read pass beside their pairing. None can change anything; diagnostics are a
|
|
375
|
+
// maintainer's, as this sandbox's own logs are.
|
|
376
|
+
"GET /account/read/agents": { auth: "door", control: "never" },
|
|
377
|
+
"GET /account/read/agents/{handle}": { auth: "door", control: "never" },
|
|
378
|
+
"GET /account/read/agents/{handle}/bundle": { auth: "door", control: "never" },
|
|
379
|
+
"POST /account/read/diagnostics": { auth: "door", control: "never" },
|
|
320
380
|
// The link doors, called by the asking sandbox's daemon: each checks the link token itself (x-intentic-link) and
|
|
321
381
|
// reaches only the conversations that link opened, which is the whole of a link's reach.
|
|
322
382
|
"GET /link": { auth: "door", control: "never" },
|
|
@@ -341,24 +401,24 @@ export const RAW_ROUTES = {
|
|
|
341
401
|
"POST /link/operate/exec/{id}/stop": { auth: "door", control: "never" },
|
|
342
402
|
"POST /link/operate/read": { auth: "door", control: "never" },
|
|
343
403
|
"POST /link/operate/write": { auth: "door", control: "never" },
|
|
344
|
-
"POST /system/control/tokens": { control: "never" },
|
|
345
|
-
"GET /system/control/tokens": { floor: "maintainer", control: "never" },
|
|
346
|
-
"DELETE /system/control/tokens/{id}": { control: "never" },
|
|
404
|
+
"POST /system/control/tokens": { panel: false, control: "never" },
|
|
405
|
+
"GET /system/control/tokens": { floor: "maintainer", panel: false, control: "never" },
|
|
406
|
+
"DELETE /system/control/tokens/{id}": { panel: false, control: "never" },
|
|
347
407
|
// One's own passkeys are identity, like staying signed in; the policy and recovery codes are the owner's own door, so
|
|
348
408
|
// they stay ownership's whoever else runs the sandbox.
|
|
349
|
-
"GET /system/passkeys": { guest: true, control: "never" },
|
|
350
|
-
"POST /system/passkeys/register/options": { floor: "viewer", guest: true, enrolment: true, control: "never" },
|
|
351
|
-
"POST /system/passkeys/register": { floor: "viewer", guest: true, enrolment: true, control: "never" },
|
|
409
|
+
"GET /system/passkeys": { guest: true, panel: false, control: "never" },
|
|
410
|
+
"POST /system/passkeys/register/options": { floor: "viewer", guest: true, enrolment: true, panel: false, control: "never" },
|
|
411
|
+
"POST /system/passkeys/register": { floor: "viewer", guest: true, enrolment: true, panel: false, control: "never" },
|
|
352
412
|
// The assertion has no bearer yet, since it is how one is minted.
|
|
353
413
|
"POST /system/passkeys/assert/options": { auth: "door", beforeBoot: true, control: "never" },
|
|
354
414
|
"POST /system/passkeys/assert": { auth: "door", beforeBoot: true, control: "never" },
|
|
355
|
-
"POST /system/passkeys/policy": { floor: "owner", control: "never" },
|
|
356
|
-
"POST /system/passkeys/recovery": { floor: "owner", control: "never" },
|
|
415
|
+
"POST /system/passkeys/policy": { floor: "owner", panel: false, control: "never" },
|
|
416
|
+
"POST /system/passkeys/recovery": { floor: "owner", panel: false, control: "never" },
|
|
357
417
|
// One's own passkey; the handler holds another member's to whoever runs people and access, and the owner's to the owner.
|
|
358
|
-
"DELETE /system/passkeys/{id}": { floor: "viewer", guest: true, control: "never" },
|
|
418
|
+
"DELETE /system/passkeys/{id}": { floor: "viewer", guest: true, panel: false, control: "never" },
|
|
359
419
|
// Checks its own bearer, since the require-passkey policy would otherwise hold out the owner it exists for.
|
|
360
420
|
"POST /system/session/recover": { auth: "door", beforeBoot: true, control: "never" },
|
|
361
|
-
"POST /system/sessions/revoke": { control: "never" },
|
|
421
|
+
"POST /system/sessions/revoke": { panel: false, control: "never" },
|
|
362
422
|
// Stays repeatable after a partial attempt; the handler does its own owner check.
|
|
363
423
|
"POST /system/access/disable": { auth: "door", control: "never" },
|
|
364
424
|
// The desktop-sync agent: redeems a one-time pairing, and later revokes with its own token.
|
|
@@ -366,9 +426,12 @@ export const RAW_ROUTES = {
|
|
|
366
426
|
"GET /system/sync": { control: "never" },
|
|
367
427
|
// The sync agent's own machine report, the daemon's only view of SYNC_DIR.
|
|
368
428
|
"POST /system/sync/report": { sync: "poll", control: "never" },
|
|
429
|
+
// The workspace's change signal (devices.ts SyncChangesSchema): a long poll the sync agent holds open, so the request
|
|
430
|
+
// timer leaves it out, and like the byte pipe no check-in; the ports poll beside it is the heartbeat.
|
|
431
|
+
"GET /system/sync/changes": { sync: "pipe", control: "never", stream: true },
|
|
369
432
|
"DELETE /system/authorized-key": { auth: "door", control: "never" },
|
|
370
433
|
// The owner revoking one machine is no door: it goes through the session middleware.
|
|
371
|
-
"DELETE /system/authorized-key/{machine}": { control: "never" },
|
|
434
|
+
"DELETE /system/authorized-key/{machine}": { panel: false, control: "never" },
|
|
372
435
|
} as const satisfies Readonly<Record<`${"GET" | "POST" | "PUT" | "DELETE" | "ALL"} /${string}`, RouteMeta>>;
|
|
373
436
|
|
|
374
437
|
export type RawRouteKey = keyof typeof RAW_ROUTES;
|
|
@@ -38,7 +38,10 @@ export interface RouteMeta {
|
|
|
38
38
|
readonly agent?: true;
|
|
39
39
|
// The desktop-sync token reaches it; a `poll` refreshes the machine's heartbeat, the held-open `pipe` does not.
|
|
40
40
|
readonly sync?: "poll" | "pipe";
|
|
41
|
-
// Withheld from the panel token, which reaches every other route: it puts a stored credential in motion
|
|
41
|
+
// Withheld from the panel token, which reaches every other route: it puts a stored credential in motion, or it
|
|
42
|
+
// administers the sandbox for its owner (the people on it, tokens and links minted, computers paired, passkeys and
|
|
43
|
+
// sessions, secrets and the settings that hold the agent back). (2026-11-24) The token is handed to every
|
|
44
|
+
// repo-defined process, which an agent can start: such a route reached by it was the owner's, by anyone's hand.
|
|
42
45
|
readonly panel?: false;
|
|
43
46
|
readonly control?: ControlReach;
|
|
44
47
|
// A transfer: announced to the edge through netd (tunnel-bulk.ts), which sends it down the tunnel's bulk socket,
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
// ROUTING AS A PERSON, the pairing (docs/architecture/account-routing.md, 2026-11-24). A scope other than `report` is
|
|
4
|
+
// admitted only beside a secret the person minted at the receiving sandbox and handed to the asking one, so the
|
|
5
|
+
// platform's pass alone opens nothing but an inbox. The person's own editor carries it, being signed in to both: it
|
|
6
|
+
// mints the secret at the target (`POST /account/pairings`), which keeps only its hash, and stores it here
|
|
7
|
+
// (`POST /account/routes/secret`), beside the vault, where no agent reads it.
|
|
8
|
+
|
|
9
|
+
// A tunnel id, as the platform names a sandbox to another (twelve lowercase hex characters).
|
|
10
|
+
const TunnelIdSchema = z.string().regex(/^[0-9a-f]{12}$/);
|
|
11
|
+
|
|
12
|
+
// At the receiving sandbox: the signed-in person pairs the asking sandbox `from` with themselves.
|
|
13
|
+
export const PairingMintSchema = z.object({
|
|
14
|
+
from: TunnelIdSchema.describe("The asking sandbox's tunnel id."),
|
|
15
|
+
fromName: z.string().trim().min(1).max(120).describe("Its name, for the list of pairings; display only."),
|
|
16
|
+
});
|
|
17
|
+
export type PairingMint = z.infer<typeof PairingMintSchema>;
|
|
18
|
+
|
|
19
|
+
// The secret, answered once; only its hash stays.
|
|
20
|
+
export const PairingMintedSchema = z.object({
|
|
21
|
+
from: z.string(),
|
|
22
|
+
person: z.string(),
|
|
23
|
+
secret: z.string().describe("The pairing secret: hand it to the asking sandbox, which sends it beside every routed request."),
|
|
24
|
+
createdAt: z.number(),
|
|
25
|
+
});
|
|
26
|
+
export type PairingMinted = z.infer<typeof PairingMintedSchema>;
|
|
27
|
+
|
|
28
|
+
// One pairing as the receiving sandbox keeps it, without its hash.
|
|
29
|
+
export const PairingSchema = z.object({
|
|
30
|
+
from: z.string(),
|
|
31
|
+
fromName: z.string(),
|
|
32
|
+
person: z.string(),
|
|
33
|
+
createdAt: z.number(),
|
|
34
|
+
});
|
|
35
|
+
export type Pairing = z.infer<typeof PairingSchema>;
|
|
36
|
+
export const PairingsListSchema = z.object({ pairings: z.array(PairingSchema) });
|
|
37
|
+
export type PairingsList = z.infer<typeof PairingsListSchema>;
|
|
38
|
+
|
|
39
|
+
// At the asking sandbox: the secret the signed-in person minted at `target`, to keep for routing as them there.
|
|
40
|
+
export const RouteSecretSchema = z.object({
|
|
41
|
+
target: TunnelIdSchema.describe("The target sandbox's tunnel id."),
|
|
42
|
+
secret: z.string().min(32).max(200),
|
|
43
|
+
});
|
|
44
|
+
export type RouteSecret = z.infer<typeof RouteSecretSchema>;
|
|
45
|
+
|
|
46
|
+
// What the asking sandbox holds, never the secrets.
|
|
47
|
+
export const RouteHeldSchema = z.object({ target: z.string(), person: z.string(), createdAt: z.number() });
|
|
48
|
+
export type RouteHeld = z.infer<typeof RouteHeldSchema>;
|
|
49
|
+
export const RoutesListSchema = z.object({ routes: z.array(RouteHeldSchema) });
|
|
50
|
+
export type RoutesList = z.infer<typeof RoutesListSchema>;
|
|
51
|
+
|
|
52
|
+
// A DROP (2026-11-24, docs/architecture/account-routing.md): a note and files one of a person's sandboxes hands another
|
|
53
|
+
// that person is in, landing in its inbox on the history volume and starting no turn. Bounded so one drop is one POST.
|
|
54
|
+
export const DROP_NOTE_MAX = 4_000;
|
|
55
|
+
export const DROP_FILES_MAX = 20;
|
|
56
|
+
export const DROP_BYTES_MAX = 10 * 1024 * 1024;
|
|
57
|
+
// A file's own name, never a path: it lands in the drop's folder as itself.
|
|
58
|
+
const DropFileNameSchema = z
|
|
59
|
+
.string()
|
|
60
|
+
.min(1)
|
|
61
|
+
.max(200)
|
|
62
|
+
.refine((name) => !/[/\\\0]/u.test(name) && name !== "." && name !== "..", "a file's own name, without a directory");
|
|
63
|
+
const DropNoteSchema = z.string().max(DROP_NOTE_MAX);
|
|
64
|
+
// A conversation id as the receiving sandbox names its own.
|
|
65
|
+
const ConversationIdSchema = z.string().min(1).max(120);
|
|
66
|
+
// One file: its name and its bytes in base64.
|
|
67
|
+
export const DropFileSchema = z.object({ name: DropFileNameSchema, data: z.string() });
|
|
68
|
+
|
|
69
|
+
// The loopback send (`sandboxes send`): the target sandbox by name or id, and the files as the command read them. The
|
|
70
|
+
// command reads them itself, as the agent, so the daemon never opens a path an agent names (its own state included).
|
|
71
|
+
export const DropSendSchema = z.object({
|
|
72
|
+
sandbox: z.string().trim().min(1).max(120),
|
|
73
|
+
files: z.array(DropFileSchema).max(DROP_FILES_MAX).default([]),
|
|
74
|
+
note: DropNoteSchema.optional(),
|
|
75
|
+
wake: ConversationIdSchema.optional().describe("Queue the note into this conversation of the person's there, while a turn of it runs."),
|
|
76
|
+
});
|
|
77
|
+
export type DropSend = z.infer<typeof DropSendSchema>;
|
|
78
|
+
|
|
79
|
+
// What the send came to: the outbox's answer, or the person's card it raised instead of sending.
|
|
80
|
+
export const DropSendOutcomeSchema = z.discriminatedUnion("state", [
|
|
81
|
+
z.object({ state: z.literal("delivered"), to: z.string(), id: z.string() }),
|
|
82
|
+
z.object({ state: z.literal("queued"), to: z.string().optional(), reason: z.string(), times: z.number() }),
|
|
83
|
+
z.object({ state: z.literal("refused"), reason: z.string() }),
|
|
84
|
+
z.object({ state: z.literal("asked"), reason: z.string(), needId: z.string() }),
|
|
85
|
+
]);
|
|
86
|
+
export type DropSendOutcome = z.infer<typeof DropSendOutcomeSchema>;
|
|
87
|
+
|
|
88
|
+
// The wire, daemon to daemon (`POST /account/drop`, `?wake=<conversation>`): one JSON body, every file's bytes in
|
|
89
|
+
// base64 beside its name, the shape the outbox's postToDoor already sends. The sender's drop id makes a retry land once.
|
|
90
|
+
export const DropBodySchema = z.object({
|
|
91
|
+
id: z.string().regex(/^[A-Za-z0-9_-]{8,80}$/u),
|
|
92
|
+
note: DropNoteSchema.optional(),
|
|
93
|
+
conversationId: z.string().max(120).optional().describe("The sending conversation, for the record; display only."),
|
|
94
|
+
files: z.array(DropFileSchema).max(DROP_FILES_MAX),
|
|
95
|
+
});
|
|
96
|
+
export type DropBody = z.infer<typeof DropBodySchema>;
|
|
97
|
+
// Base64 is four bytes for three, plus the note and the names.
|
|
98
|
+
export const DROP_BODY_MAX = Math.ceil((DROP_BYTES_MAX * 4) / 3) + 256 * 1024;
|
|
99
|
+
export const DropAcceptedSchema = z.object({ ok: z.literal(true), id: z.string(), woke: z.boolean().optional() });
|
|
100
|
+
|
|
101
|
+
// One drop as the receiving sandbox keeps it (its manifest), as the inbox lists it.
|
|
102
|
+
export const ReceivedDropSchema = z.object({
|
|
103
|
+
id: z.string(),
|
|
104
|
+
from: z.object({ sandboxId: z.string(), sandboxName: z.string() }),
|
|
105
|
+
person: z.string(),
|
|
106
|
+
// Set when the two sandboxes are not in one organisation, as the pass said (a side in none is absent).
|
|
107
|
+
crossesOrg: z
|
|
108
|
+
.object({ from: z.object({ id: z.string(), name: z.string() }).optional(), to: z.object({ id: z.string(), name: z.string() }).optional() })
|
|
109
|
+
.optional(),
|
|
110
|
+
note: z.string().optional(),
|
|
111
|
+
files: z.array(z.object({ name: z.string(), size: z.number() })),
|
|
112
|
+
receivedAt: z.number(),
|
|
113
|
+
// The conversation it asked to be queued into, and whether a turn of it was running to take it.
|
|
114
|
+
wake: z.object({ conversationId: z.string(), delivered: z.boolean() }).optional(),
|
|
115
|
+
});
|
|
116
|
+
export type ReceivedDrop = z.infer<typeof ReceivedDropSchema>;
|
|
117
|
+
export const ReceivedDropsSchema = z.object({ drops: z.array(ReceivedDropSchema) });
|
|
118
|
+
export type ReceivedDrops = z.infer<typeof ReceivedDropsSchema>;
|
|
119
|
+
// Taking a drop copies its files into a folder of the workspace (workspace-relative, or absolute under it).
|
|
120
|
+
export const DropTakeSchema = z.object({ dest: z.string().min(1).max(1000) });
|
|
121
|
+
export type DropTake = z.infer<typeof DropTakeSchema>;
|
|
122
|
+
export const DropTakenSchema = z.object({ dest: z.string(), files: z.array(z.string()) });
|
|
123
|
+
export type DropTaken = z.infer<typeof DropTakenSchema>;
|
|
124
|
+
// A drop's files whole, for the `inbox take` command, which writes them where its own shell sees the destination.
|
|
125
|
+
export const DropFilesSchema = z.object({ files: z.array(DropFileSchema) });
|
|
126
|
+
export type DropFiles = z.infer<typeof DropFilesSchema>;
|
package/src/schemas/activity.ts
CHANGED
|
@@ -20,9 +20,10 @@ export const ActivityEventSchema = z.object({
|
|
|
20
20
|
// in: message.received, voice_utterance.received, voice_transcript.received
|
|
21
21
|
// out: message.send, reaction.add, messages.read, api.call (unclassified endpoint)
|
|
22
22
|
// system: gateway.login_failed, dispatch.failed, voice.session_started, voice.session_ended, automation.run,
|
|
23
|
-
// turn.started, turn.plan, turn.error, turn.completed, rule.held_work,
|
|
24
|
-
// deps.
|
|
25
|
-
// deps.breakage_spent; rule.blocked_push and rule.continued_turn are
|
|
23
|
+
// turn.started, turn.plan, turn.error, turn.completed, rule.held_work, land.unhidden, extension.landed_on,
|
|
24
|
+
// deps.verify_green, deps.verify_red, deps.breakage_routed, deps.breakage_fixup, deps.breakage_waiting,
|
|
25
|
+
// deps.breakage_held, deps.breakage_resolved, deps.breakage_spent; rule.blocked_push and rule.continued_turn are
|
|
26
|
+
// retired and only appear in older logs
|
|
26
27
|
type: z
|
|
27
28
|
.string()
|
|
28
29
|
.describe(
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
// WHAT A CONVERSATION LEAVES GOING BESIDE ITS TURN, as its card carries it (AgentSummarySchema): the commands it left
|
|
4
|
+
// running in the background, and the workflow runs it started, which keep starting subagents of their own while the
|
|
5
|
+
// conversation rests. Both outlive the turn that started them, so both are a person's to stop from the card.
|
|
6
|
+
|
|
7
|
+
// In memory only: a daemon restart leaves transcript rows naming jobs this list no longer carries.
|
|
8
|
+
export const AgentJobsSchema = z
|
|
9
|
+
.array(
|
|
10
|
+
z.object({
|
|
11
|
+
id: z.string().describe("The daemon's handle for this job, the one its transcript row names."),
|
|
12
|
+
label: z.string().describe("What the job is, in the agent's own words when it gave any, else its command on one line."),
|
|
13
|
+
session: z.string().describe("The terminal session its pane runs in, which is what opening it focuses."),
|
|
14
|
+
startedAt: z.number().describe("When it started, in milliseconds."),
|
|
15
|
+
endedAt: z.number().optional().describe("When the command exited, in milliseconds. Absent while it runs."),
|
|
16
|
+
exitCode: z.number().int().optional().describe("The code it exited with. Absent while it runs, or when its exit left none."),
|
|
17
|
+
// What the turn that left it running decided about it (agent/tools/jobs/job-fates.ts): one of these, or none
|
|
18
|
+
// while its turn is still going.
|
|
19
|
+
watch: z
|
|
20
|
+
.string()
|
|
21
|
+
.optional()
|
|
22
|
+
.describe(
|
|
23
|
+
"The watch its exit wakes this conversation through. Present once the turn that left it running has ended and the conversation is waiting on it.",
|
|
24
|
+
),
|
|
25
|
+
handed: z
|
|
26
|
+
.boolean()
|
|
27
|
+
.optional()
|
|
28
|
+
.describe(
|
|
29
|
+
"Left running for the person: the agent kept it for them with the `keep` tool (or it holds a port this conversation already left them), so it outlives the turn, wakes nothing and is theirs to stop.",
|
|
30
|
+
),
|
|
31
|
+
ports: z.array(z.number().int()).optional().describe("The ports it was listening on when its turn ended."),
|
|
32
|
+
stoppedBy: z
|
|
33
|
+
.enum(["turn", "person", "agent"])
|
|
34
|
+
.optional()
|
|
35
|
+
.describe(
|
|
36
|
+
"Who stopped it: the sandbox, when the turn that used it ended without handing it over; a person; or the agent itself. Present from the moment the stop is asked. Absent for a job that exited by itself.",
|
|
37
|
+
),
|
|
38
|
+
// agent/tools/jobs/input-wait.ts: told from /proc, never from what it printed, since a prompt can go
|
|
39
|
+
// straight to the terminal or sit in a pipe.
|
|
40
|
+
inputWait: z
|
|
41
|
+
.object({
|
|
42
|
+
since: z.number().describe("When it went still, in milliseconds."),
|
|
43
|
+
program: z.string().describe("The process blocked reading the terminal, as its command line."),
|
|
44
|
+
})
|
|
45
|
+
.optional()
|
|
46
|
+
.describe(
|
|
47
|
+
"Present while it sits blocked reading its terminal with nothing moving: a prompt nobody in the sandbox will answer, which only stopping it or a person typing into its terminal ends. Absent while it runs on, and once it ends.",
|
|
48
|
+
),
|
|
49
|
+
}),
|
|
50
|
+
)
|
|
51
|
+
.optional()
|
|
52
|
+
.describe(
|
|
53
|
+
"Commands this conversation left running in the background, and how the most recent ones ended. Absent means none since the daemon started. A job is running exactly while it has no end.",
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
// In memory, as the runs are (agent/subagents/workflows/live-runs.ts): a run a restart picks up is listed again as it goes
|
|
57
|
+
// on. A run is a script, not a turn: it keeps starting subagents while the conversation itself rests.
|
|
58
|
+
export const AgentScriptRunsSchema = z
|
|
59
|
+
.array(
|
|
60
|
+
z.object({
|
|
61
|
+
id: z.string().describe("The run's id, the one its agent was given (`wfr-…`)."),
|
|
62
|
+
name: z.string().describe("The workflow's name, from its script's `meta`."),
|
|
63
|
+
calls: z.number().int().min(0).describe("How many subagents it has started so far. One run starts at most 200."),
|
|
64
|
+
working: z.number().int().min(0).describe("How many of its subagents are at work now."),
|
|
65
|
+
failed: z.number().int().min(0).describe("How many of its calls failed or were stopped."),
|
|
66
|
+
phase: z.string().optional().describe("The phase its script last marked."),
|
|
67
|
+
startedAt: z.number().describe("When it started, in milliseconds."),
|
|
68
|
+
}),
|
|
69
|
+
)
|
|
70
|
+
.optional()
|
|
71
|
+
.describe(
|
|
72
|
+
"Workflow runs this conversation started that are still going. A run starts subagents of its own until its script ends, whether or not the conversation is running, so stopping its subagents one at a time does not end it: it starts the next. Stopping the run does (`stopFamily`). Absent means none.",
|
|
73
|
+
);
|
|
74
|
+
export type AgentScriptRun = NonNullable<z.infer<typeof AgentScriptRunsSchema>>[number];
|
|
75
|
+
|
|
76
|
+
// Naming a run stops only that run and its subagents; naming none stops everything the conversation has going.
|
|
77
|
+
export const AgentStopFamilySchema = z.object({
|
|
78
|
+
id: z.string().min(1).describe("Which conversation."),
|
|
79
|
+
run: z.string().min(1).optional().describe("One of its workflow runs, by the id its card carries. Absent stops its turn, every run and every agent below it."),
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export const AgentFamilyStoppedSchema = z.object({
|
|
83
|
+
turn: z.boolean().describe("Whether its own turn was running and was stopped."),
|
|
84
|
+
runs: z.number().int().min(0).describe("How many workflow runs were stopped: its own, and those of the agents below it."),
|
|
85
|
+
agents: z.number().int().min(0).describe("How many agents below it had work stopped: a running turn, a start still waiting, a re-run the sandbox had booked."),
|
|
86
|
+
});
|
|
87
|
+
export type AgentFamilyStopped = z.infer<typeof AgentFamilyStoppedSchema>;
|
|
88
|
+
|
|
89
|
+
// Outside conditions a conversation is parked on; a finished-looking card can restart itself when one fires, and an
|
|
90
|
+
// armed watch keeps a hosted machine (and its bill) awake. The check command itself never rides the wire, since it
|
|
91
|
+
// may hold a secret.
|
|
92
|
+
export const AgentWatchesSchema = z
|
|
93
|
+
.array(
|
|
94
|
+
z.object({
|
|
95
|
+
id: z.string().describe("The daemon's handle for this watch, the same one the agent was given when it armed it."),
|
|
96
|
+
note: z.string().describe("The agent's own line on what it is waiting for."),
|
|
97
|
+
intervalSeconds: z.number().int().min(1).describe("How often the check runs."),
|
|
98
|
+
deadlineAt: z.number().describe("When it gives up and wakes the conversation anyway, in milliseconds. Every watch has one."),
|
|
99
|
+
}),
|
|
100
|
+
)
|
|
101
|
+
.optional()
|
|
102
|
+
.describe(
|
|
103
|
+
"Outside conditions this conversation is parked on, each of which will wake it. Absent means none, which is nearly every conversation: an armed watch is why a finished-looking agent starts working by itself, and why a hosted machine will not go idle.",
|
|
104
|
+
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// What a land answers and takes: the conflicts that stopped it, its outcome,
|
|
2
|
-
// for. Apart from agents.ts, which re-exports every name here, so a conversation's summary and the land press's own
|
|
1
|
+
// What a land answers and takes: the conflicts that stopped it, its outcome, the modes and spans a land can be asked
|
|
2
|
+
// for, and the workspace extensions it would turn on. Apart from agents.ts, which re-exports every name here, so a conversation's summary and the land press's own
|
|
3
3
|
// shapes are not one file.
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -96,3 +96,22 @@ export const AgentLandSchema = z.object({
|
|
|
96
96
|
span: AgentSpanSchema.optional().describe("How much of the work to take. Leave it out for everything not yet merged."),
|
|
97
97
|
force: z.boolean().optional().describe("Go ahead despite a check that would otherwise refuse."),
|
|
98
98
|
});
|
|
99
|
+
|
|
100
|
+
// The workspace extensions a land would turn on, on the review before the press: a land is the yes to the extensions it
|
|
101
|
+
// carries (the daemon's extensions/landed-extensions.ts). Judged against the approvals as they stand now.
|
|
102
|
+
export const LandingExtensionsSchema = z
|
|
103
|
+
.array(
|
|
104
|
+
z.object({
|
|
105
|
+
id: z.string().describe("The extension, as publisher.name."),
|
|
106
|
+
dir: z.string().describe("Its folder under .intentic/config/workspace-extensions/."),
|
|
107
|
+
powers: z
|
|
108
|
+
.array(z.string())
|
|
109
|
+
.describe("What merging lets it do that it was not approved for, one plain sentence each. Empty when it asks for nothing new."),
|
|
110
|
+
approvedBefore: z.boolean().describe("Whether it ran here before, approved for fewer powers."),
|
|
111
|
+
}),
|
|
112
|
+
)
|
|
113
|
+
.optional()
|
|
114
|
+
.describe(
|
|
115
|
+
"Extensions written in this workspace that merging this work turns on: new ones, and ones asking for powers they were not approved for. A merge is the yes to them, so their code runs in your browser and the sandbox from then on, until you switch one off or take the yes back. Absent when there are none.",
|
|
116
|
+
);
|
|
117
|
+
export type LandingExtensions = NonNullable<z.infer<typeof LandingExtensionsSchema>>;
|
package/src/schemas/agent.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { MENTION_LIMIT } from "../text/mentions.js";
|
|
|
9
9
|
import { entryId } from "./internal.js";
|
|
10
10
|
import { FRESH_OF_DESCRIPTION, FreshOfSchema, FROM_BRANCH_DESCRIPTION, freshOfIssues, fromBranchIssues } from "./conversation-links.js";
|
|
11
11
|
import { RepoBranchSchema } from "./shared.js";
|
|
12
|
+
import { QueuedTrialRetrySchema } from "./queued-trial-retry.js";
|
|
12
13
|
// Agent runtimes the daemon can serve: native providers have dedicated adapters, `endpoint/<id>` names an installed
|
|
13
14
|
// endpoint capability, anything else is an ACP agent capability id. A bare string, not an enum, so an unknown id is a
|
|
14
15
|
// clean error, not a contract change.
|
|
@@ -507,10 +508,7 @@ export type MessageVoice = z.infer<typeof MessageVoiceSchema>;
|
|
|
507
508
|
// cannot say once the chat has moved somewhere with room.
|
|
508
509
|
export const QueuedReopenSchema = z.object({
|
|
509
510
|
agent: AgentProviderSchema.describe("The provider whose allowance it waits out."),
|
|
510
|
-
account: z
|
|
511
|
-
.string()
|
|
512
|
-
.optional()
|
|
513
|
-
.describe("Which of its accounts. Absent when none was named, and every account of the provider read spent."),
|
|
511
|
+
account: z.string().optional().describe("Which of its accounts. Absent when none was named, and every account of the provider read spent."),
|
|
514
512
|
});
|
|
515
513
|
export type QueuedReopen = z.infer<typeof QueuedReopenSchema>;
|
|
516
514
|
// Who a person's waiting message goes on, as its request names it now.
|
|
@@ -550,6 +548,7 @@ export const QueuedMessageSchema = z.object({
|
|
|
550
548
|
reopenOf: QueuedReopenSchema.optional().describe(
|
|
551
549
|
"The allowance this message's `until` waits out: it was booked for that account's reopen, by the composer or by the sandbox holding words it would not send into a spent allowance, rather than for a time somebody chose. Absent on any other booking, and from sandboxes older than the field.",
|
|
552
550
|
),
|
|
551
|
+
trialRetry: QueuedTrialRetrySchema.optional(),
|
|
553
552
|
serves: QueuedServingSchema.optional().describe(
|
|
554
553
|
"Who serves the turn this message starts: the provider, loop, model, effort and account it was sent under, or was moved to since (`agent.queueReroute`, an account switch). Only on a person's words; the sandbox's and an agent's own go on wherever the conversation runs when they go. Absent from sandboxes older than the field.",
|
|
555
554
|
),
|