@intentic/sandbox-contract 1.430.0 → 1.432.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 +22 -5
- 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/briefs/agent-ask.d.ts +10 -0
- package/dist/briefs/agent-ask.d.ts.map +1 -0
- package/dist/briefs/agent-ask.js +2 -0
- package/dist/briefs/agent-ask.js.map +1 -0
- package/dist/{chores/extension-update.d.ts → briefs/extension-update-brief.d.ts} +1 -1
- package/dist/briefs/extension-update-brief.d.ts.map +1 -0
- package/dist/{chores/extension-update.js → briefs/extension-update-brief.js} +2 -2
- package/dist/briefs/extension-update-brief.js.map +1 -0
- package/dist/chores/digest.d.ts.map +1 -1
- package/dist/chores/digest.js.map +1 -1
- package/dist/chores/index.d.ts +2 -2
- package/dist/chores/index.d.ts.map +1 -1
- package/dist/chores/index.js +1 -1
- package/dist/chores/index.js.map +1 -1
- package/dist/chores/prompt.d.ts +1 -9
- package/dist/chores/prompt.d.ts.map +1 -1
- package/dist/chores/prompt.js +1 -1
- package/dist/chores/prompt.js.map +1 -1
- package/dist/chores/stack.d.ts.map +1 -1
- package/dist/chores/stack.js.map +1 -1
- package/dist/chores/verdict.d.ts.map +1 -1
- package/dist/chores/verdict.js.map +1 -1
- package/dist/chores/workspace-scope.d.ts +1 -3
- package/dist/chores/workspace-scope.d.ts.map +1 -1
- package/dist/chores/workspace-scope.js +1 -3
- package/dist/chores/workspace-scope.js.map +1 -1
- 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 +1226 -12
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +2665 -733
- 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 +90 -8
- 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/capabilities.contract.d.ts +49 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.js +24 -1
- package/dist/contracts/capabilities.contract.js.map +1 -1
- package/dist/contracts/ci.contract.d.ts +222 -95
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/ci.contract.js +87 -26
- package/dist/contracts/ci.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-stacks.contract.d.ts +129 -0
- package/dist/contracts/device-stacks.contract.d.ts.map +1 -0
- package/dist/contracts/device-stacks.contract.js +66 -0
- package/dist/contracts/device-stacks.contract.js.map +1 -0
- package/dist/contracts/device.contract.d.ts +74 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +604 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.js +11 -2
- 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/needs.contract.d.ts +1097 -18
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.d.ts +25 -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 +1 -0
- package/dist/contracts/remote.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +1203 -9
- 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 +100 -0
- package/dist/contracts/seal.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.d.ts +15 -0
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +27 -1
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +159 -2
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +59 -42
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +19 -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/stack-grants.contract.d.ts +418 -0
- package/dist/contracts/stack-grants.contract.d.ts.map +1 -0
- package/dist/contracts/stack-grants.contract.js +46 -0
- package/dist/contracts/stack-grants.contract.js.map +1 -0
- package/dist/contracts/system.contract.d.ts +516 -69
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +26 -45
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/usage.contract.d.ts +3 -0
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.d.ts +0 -55
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.js +0 -19
- package/dist/contracts/workspace.contract.js.map +1 -1
- package/dist/events/agent-events.d.ts +615 -8
- 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 +159 -2
- 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 +22 -2
- package/dist/events/agent-words.js.map +1 -1
- package/dist/events/child-news.d.ts +32 -0
- package/dist/events/child-news.d.ts.map +1 -0
- package/dist/events/child-news.js +171 -0
- package/dist/events/child-news.js.map +1 -0
- package/dist/events/prompt-origins.d.ts +42 -0
- package/dist/events/prompt-origins.d.ts.map +1 -1
- package/dist/events/prompt-origins.js +28 -0
- package/dist/events/prompt-origins.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/requests.d.ts +14 -0
- package/dist/events/requests.d.ts.map +1 -1
- package/dist/events/requests.js +12 -0
- package/dist/events/requests.js.map +1 -1
- package/dist/events/system-events.d.ts +98 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +799 -10
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/events/transcript.js +2 -1
- package/dist/events/transcript.js.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 +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -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/model-roles.d.ts +91 -37
- package/dist/models/model-roles.d.ts.map +1 -1
- package/dist/models/model-roles.js +106 -35
- package/dist/models/model-roles.js.map +1 -1
- package/dist/models/model-setups.d.ts +10 -8
- package/dist/models/model-setups.d.ts.map +1 -1
- package/dist/models/model-setups.js +15 -15
- package/dist/models/model-setups.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 +8 -0
- package/dist/netd/browser-wire.d.ts.map +1 -1
- package/dist/netd/browser-wire.js +5 -0
- package/dist/netd/browser-wire.js.map +1 -1
- package/dist/netd/generated/wire.d.ts +42 -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/approvals-execution.d.ts +5 -2
- package/dist/policy/approvals-execution.d.ts.map +1 -1
- package/dist/policy/approvals-execution.js +3 -4
- package/dist/policy/approvals-execution.js.map +1 -1
- package/dist/policy/batch-runs.d.ts +1 -1
- package/dist/policy/batch-runs.d.ts.map +1 -1
- package/dist/policy/batch-runs.js +2 -1
- package/dist/policy/batch-runs.js.map +1 -1
- 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/message-limits.d.ts.map +1 -1
- package/dist/policy/message-limits.js.map +1 -1
- package/dist/policy/org-locks.d.ts +1 -1
- package/dist/policy/org-locks.d.ts.map +1 -1
- package/dist/policy/org-locks.js +1 -0
- package/dist/policy/org-locks.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/policy/shell/workspace-root-exclude.d.ts +4 -0
- package/dist/policy/shell/workspace-root-exclude.d.ts.map +1 -0
- package/dist/policy/shell/workspace-root-exclude.js +4 -0
- package/dist/policy/shell/workspace-root-exclude.js.map +1 -0
- package/dist/protocol/doors/listener-protocol.d.ts +11 -0
- package/dist/protocol/doors/listener-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/listener-protocol.js +5 -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/doors/webext-links.d.ts.map +1 -1
- package/dist/protocol/doors/webext-links.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/extension-protocol.d.ts +518 -0
- package/dist/protocol/raw/extension-protocol.d.ts.map +1 -1
- package/dist/protocol/raw/extension-protocol.js +276 -0
- package/dist/protocol/raw/extension-protocol.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +572 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +25 -2
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +245 -3
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +79 -36
- 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 +4 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +4 -2
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +40 -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 +170 -27
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +26 -34
- package/dist/schemas/automations.js.map +1 -1
- 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/capabilities.d.ts +21 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +6 -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-deployments.d.ts +30 -0
- package/dist/schemas/ci-deployments.d.ts.map +1 -0
- package/dist/schemas/ci-deployments.js +18 -0
- package/dist/schemas/ci-deployments.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/ci.d.ts +348 -21
- package/dist/schemas/ci.d.ts.map +1 -1
- package/dist/schemas/ci.js +110 -19
- package/dist/schemas/ci.js.map +1 -1
- package/dist/schemas/command-run.d.ts +29 -0
- package/dist/schemas/command-run.d.ts.map +1 -0
- package/dist/schemas/command-run.js +20 -0
- package/dist/schemas/command-run.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/data-protection.d.ts +15 -2
- package/dist/schemas/data-protection.d.ts.map +1 -1
- package/dist/schemas/data-protection.js +15 -23
- package/dist/schemas/data-protection.js.map +1 -1
- package/dist/schemas/device-stacks.d.ts +131 -0
- package/dist/schemas/device-stacks.d.ts.map +1 -1
- package/dist/schemas/device-stacks.js +81 -0
- package/dist/schemas/device-stacks.js.map +1 -1
- package/dist/schemas/devices.d.ts +137 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +11 -2
- 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 +1186 -0
- package/dist/schemas/extension-updates.d.ts.map +1 -1
- package/dist/schemas/extension-updates.js +22 -4
- 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 +76 -0
- package/dist/schemas/host-power.d.ts.map +1 -0
- package/dist/schemas/host-power.js +101 -0
- package/dist/schemas/host-power.js.map +1 -0
- package/dist/schemas/hosts.d.ts +365 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +33 -1
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/issues.d.ts +55 -225
- package/dist/schemas/issues.d.ts.map +1 -1
- package/dist/schemas/issues.js +21 -43
- package/dist/schemas/issues.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/maintenance.d.ts.map +1 -1
- package/dist/schemas/maintenance.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 +33 -0
- package/dist/schemas/metrics.d.ts.map +1 -1
- package/dist/schemas/metrics.js +26 -0
- package/dist/schemas/metrics.js.map +1 -1
- package/dist/schemas/need-kinds.d.ts +19 -0
- package/dist/schemas/need-kinds.d.ts.map +1 -0
- package/dist/schemas/need-kinds.js +7 -0
- package/dist/schemas/need-kinds.js.map +1 -0
- package/dist/schemas/needs.d.ts +868 -27
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +79 -9
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/offload.d.ts +61 -0
- package/dist/schemas/offload.d.ts.map +1 -1
- package/dist/schemas/offload.js +14 -1
- package/dist/schemas/offload.js.map +1 -1
- package/dist/schemas/outward-action.d.ts +39 -0
- package/dist/schemas/outward-action.d.ts.map +1 -0
- package/dist/schemas/outward-action.js +40 -0
- package/dist/schemas/outward-action.js.map +1 -0
- 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/plan-limits.d.ts +1 -0
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.js +1 -0
- package/dist/schemas/providers/plan-limits.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/remote-access.d.ts +1 -0
- package/dist/schemas/remote-access.d.ts.map +1 -1
- package/dist/schemas/remote-access.js +1 -0
- package/dist/schemas/remote-access.js.map +1 -1
- 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/secrets.d.ts +17 -0
- package/dist/schemas/secrets.d.ts.map +1 -1
- package/dist/schemas/secrets.js +12 -5
- package/dist/schemas/secrets.js.map +1 -1
- package/dist/schemas/settings-history.d.ts +1 -1
- package/dist/schemas/settings-history.d.ts.map +1 -1
- package/dist/schemas/settings-history.js +5 -4
- package/dist/schemas/settings-history.js.map +1 -1
- package/dist/schemas/settings-savings.d.ts +58 -0
- package/dist/schemas/settings-savings.d.ts.map +1 -1
- package/dist/schemas/settings-savings.js +22 -0
- package/dist/schemas/settings-savings.js.map +1 -1
- package/dist/schemas/settings.d.ts +20 -42
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +24 -7
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/stack-grants.d.ts +60 -0
- package/dist/schemas/stack-grants.d.ts.map +1 -0
- package/dist/schemas/stack-grants.js +33 -0
- package/dist/schemas/stack-grants.js.map +1 -0
- 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 +46 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +19 -0
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/schemas/watch-sources.d.ts +72 -0
- package/dist/schemas/watch-sources.d.ts.map +1 -0
- package/dist/schemas/watch-sources.js +88 -0
- package/dist/schemas/watch-sources.js.map +1 -0
- package/dist/schemas/workspace/workspace-search.d.ts.map +1 -1
- package/dist/schemas/workspace/workspace-search.js +1 -1
- package/dist/schemas/workspace/workspace-search.js.map +1 -1
- package/dist/schemas/wsl-memory.d.ts +76 -0
- package/dist/schemas/wsl-memory.d.ts.map +1 -0
- package/dist/schemas/wsl-memory.js +36 -0
- package/dist/schemas/wsl-memory.js.map +1 -0
- package/dist/state/auth-state.d.ts.map +1 -1
- package/dist/state/auth-state.js +3 -0
- package/dist/state/auth-state.js.map +1 -1
- package/dist/state/definition.d.ts +16 -8
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/runtime-state.d.ts +1 -1
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +1 -1
- package/dist/state/runtime-state.js.map +1 -1
- package/dist/state/workspace-state.d.ts +9 -4
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +9 -4
- 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/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/briefs/agent-ask.ts +23 -0
- package/src/{chores/extension-update.ts → briefs/extension-update-brief.ts} +3 -2
- package/src/chores/digest.ts +1 -0
- package/src/chores/index.ts +13 -2
- package/src/chores/prompt.ts +3 -18
- package/src/chores/stack.ts +1 -0
- package/src/chores/verdict.ts +1 -0
- package/src/chores/workspace-scope.ts +3 -8
- 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/capabilities.contract.ts +31 -2
- package/src/contracts/ci.contract.ts +119 -37
- package/src/contracts/device-ci-runners.contract.ts +81 -0
- package/src/contracts/device-stacks.contract.ts +97 -0
- package/src/contracts/extensions.contract.ts +12 -1
- package/src/contracts/ports.contract.ts +6 -6
- 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 +39 -0
- package/src/contracts/settings.contract.ts +26 -0
- package/src/contracts/stack-grants.contract.ts +51 -0
- package/src/contracts/system.contract.ts +36 -62
- package/src/contracts/workspace.contract.ts +0 -22
- package/src/events/agent-events.ts +3 -2
- package/src/events/agent-words.test.ts +19 -1
- package/src/events/agent-words.ts +36 -2
- package/src/events/child-news.test.ts +91 -0
- package/src/events/child-news.ts +269 -0
- package/src/events/prompt-origins.ts +35 -0
- package/src/events/refusal-incidents.ts +60 -19
- package/src/events/requests.ts +18 -0
- package/src/events/transcript.ts +10 -1
- 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 +6 -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/model-roles.test.ts +61 -4
- package/src/models/model-roles.ts +153 -49
- package/src/models/model-setups.ts +49 -26
- 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 +13 -0
- package/src/netd/generated/browser-wire.json +10 -0
- package/src/netd/generated/netd-wire.json +224 -1
- package/src/netd/generated/wire.ts +18 -6
- package/src/netd/wire-manifests.test.ts +16 -0
- package/src/policy/admin/admin-grant.ts +69 -0
- package/src/policy/approvals-execution.ts +11 -6
- package/src/policy/batch-runs.ts +2 -2
- 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/message-limits.ts +8 -4
- package/src/policy/org-locks.ts +1 -0
- 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/shell/workspace-root-exclude.ts +11 -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 +32 -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/doors/webext-links.ts +3 -1
- package/src/protocol/ingress-contract.fixture.json +5 -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/extension-protocol.ts +469 -2
- package/src/protocol/raw/raw-json-routes.ts +45 -1
- package/src/protocol/raw/raw-routes.ts +133 -40
- package/src/protocol/route-meta.ts +4 -1
- package/src/schemas/account-routes.ts +126 -0
- package/src/schemas/activity.ts +6 -4
- package/src/schemas/agent-background.ts +104 -0
- package/src/schemas/agent-land.ts +21 -2
- package/src/schemas/agent.test.ts +3 -0
- package/src/schemas/agent.ts +10 -4
- package/src/schemas/agents.ts +26 -65
- package/src/schemas/auto-approve.ts +31 -0
- package/src/schemas/automations.ts +51 -42
- package/src/schemas/bridge-heads.ts +33 -0
- package/src/schemas/capabilities.ts +23 -0
- package/src/schemas/checkout-hooks.ts +44 -0
- package/src/schemas/ci-deployments.ts +26 -0
- package/src/schemas/ci-fleet.ts +180 -0
- package/src/schemas/ci.ts +185 -45
- package/src/schemas/command-run.ts +44 -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/data-protection.ts +28 -34
- package/src/schemas/device-stacks.ts +162 -3
- package/src/schemas/device-swaps.test.ts +1 -1
- package/src/schemas/devices.ts +31 -2
- package/src/schemas/egress-private.test.ts +1 -1
- package/src/schemas/environment.ts +4 -0
- package/src/schemas/extension-updates.ts +35 -7
- package/src/schemas/git/git.ts +14 -14
- package/src/schemas/host-power.test.ts +53 -0
- package/src/schemas/host-power.ts +173 -0
- package/src/schemas/hosts.test.ts +32 -0
- package/src/schemas/hosts.ts +86 -2
- package/src/schemas/intentic-os.ts +2 -2
- package/src/schemas/issues.ts +43 -86
- 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/maintenance.ts +4 -3
- package/src/schemas/members.ts +4 -16
- package/src/schemas/metrics.test.ts +9 -1
- package/src/schemas/metrics.ts +43 -0
- package/src/schemas/need-kinds.ts +13 -0
- package/src/schemas/needs.ts +118 -14
- package/src/schemas/offload.ts +37 -3
- package/src/schemas/outward-action.ts +47 -0
- package/src/schemas/ports.ts +5 -0
- package/src/schemas/providers/plan-limits.ts +1 -0
- package/src/schemas/providers/refusals.ts +9 -0
- package/src/schemas/remote-access.ts +3 -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/secrets.ts +23 -5
- package/src/schemas/settings-history.ts +10 -5
- package/src/schemas/settings-savings.ts +29 -0
- package/src/schemas/settings.test.ts +24 -23
- package/src/schemas/settings.ts +55 -22
- package/src/schemas/stack-grants.ts +59 -0
- 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 +28 -0
- package/src/schemas/updates.test.ts +1 -1
- package/src/schemas/updates.ts +1 -1
- package/src/schemas/version-seam.test.ts +4 -1
- package/src/schemas/watch-sources.ts +127 -0
- package/src/schemas/workspace/workspace-search.ts +5 -2
- package/src/schemas/wsl-memory.ts +59 -0
- package/src/state/auth-state.ts +10 -0
- package/src/state/runtime-state.test.ts +3 -2
- package/src/state/runtime-state.ts +3 -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 +21 -21
- package/src/sync/workspace-sync-ignores.test.ts +48 -0
- package/src/sync/workspace-sync-ignores.ts +143 -0
- package/src/text/embed.ts +2 -2
- package/src/text/pages.ts +34 -7
- package/src/text/transcript-fold.test.ts +40 -2
- package/src/text/transcript-fold.ts +2 -2
- package/dist/chores/extension-update.d.ts.map +0 -1
- package/dist/chores/extension-update.js.map +0 -1
- package/dist/contracts/chores.contract.d.ts +0 -213
- package/dist/contracts/chores.contract.d.ts.map +0 -1
- package/dist/contracts/chores.contract.js +0 -32
- package/dist/contracts/chores.contract.js.map +0 -1
- package/dist/contracts/issues.contract.d.ts +0 -95
- package/dist/contracts/issues.contract.d.ts.map +0 -1
- package/dist/contracts/issues.contract.js +0 -50
- package/dist/contracts/issues.contract.js.map +0 -1
- package/src/chores/chores.test.ts +0 -24
- package/src/chores/digest.test.ts +0 -27
- package/src/chores/probes.integration.test.ts +0 -494
- package/src/chores/stack.test.ts +0 -140
- package/src/chores/verdict.test.ts +0 -761
- package/src/contracts/chores.contract.ts +0 -39
- package/src/contracts/issues.contract.ts +0 -53
|
@@ -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 },
|
|
@@ -81,35 +81,41 @@ export const RAW_ROUTES = {
|
|
|
81
81
|
"POST /automations/{id}/fire": { auth: "door" },
|
|
82
82
|
// The release gate a pipeline runner waits on, gated by the workflow's minted gate token.
|
|
83
83
|
"POST /workflows/{id}/gate": { auth: "door" },
|
|
84
|
-
// The Visitor chat
|
|
84
|
+
// The Visitor chat's public paths before 2026-11-26, in customers' pages (the snippet's script) and in a widget loaded
|
|
85
|
+
// before the update: forwarded, translated, to the visitor-chat extension's own door below
|
|
86
|
+
// (extensions/backend/moved-doors.routes.ts), whose protections apply as they do there. Which sites loaded the widget
|
|
87
|
+
// left with it, for the extension's own install panel.
|
|
85
88
|
"GET /webchat/widget.js": { auth: "door", embedded: true },
|
|
86
89
|
"GET /webchat/{id}/config": { auth: "door", embedded: true },
|
|
87
90
|
"GET /webchat/{id}/challenge": { auth: "door", embedded: true },
|
|
88
91
|
"POST /webchat/{id}/message": { auth: "door", embedded: true },
|
|
89
92
|
"GET /webchat/{id}/messages": { auth: "door", embedded: true },
|
|
90
|
-
//
|
|
91
|
-
|
|
92
|
-
// The bug intake, the other anonymous door: gated by origin allowlist or ingest key, rate window and daily ceiling.
|
|
93
|
+
// The bug intake's public paths before 2026-11-26, out in customers' pages and apps: forwarded, translated, to the issues
|
|
94
|
+
// extension's own door below (extensions/backend/moved-doors.routes.ts), whose protections apply as they do there.
|
|
93
95
|
"GET /intake/sdk.js": { auth: "door", embedded: true },
|
|
94
96
|
"GET /intake/{id}/config": { auth: "door", embedded: true },
|
|
95
97
|
"GET /intake/{id}/challenge": { auth: "door", embedded: true },
|
|
96
98
|
"POST /intake/{id}/report": { auth: "door", embedded: true },
|
|
99
|
+
// (2026-11-26) An extension's public doors (`contributes.publicRoutes`), anyone's to call: gated in the handler by the
|
|
100
|
+
// route's own declaration (size, rate window, daily ceiling, an automation's allowlist or key, proof of work, a
|
|
101
|
+
// provider's signature) before the backend hears of it, and embedded, so a page elsewhere may call one.
|
|
102
|
+
"ALL /door/*": { auth: "door", embedded: true },
|
|
97
103
|
// The roster is for whoever runs people and access (Full access, or the People & access right) to read and change;
|
|
98
104
|
// giving up one's own grant is every tier's. Reading it is floored here as well as in its handler (members.routes.ts),
|
|
99
105
|
// so the editor knows before asking; what someone below Full access may change is the handler's (peopleChangeRefusal).
|
|
100
|
-
"GET /members": { floor: "maintainer", right: "people", control: "never" },
|
|
101
|
-
"POST /members": { right: "people", control: "never" },
|
|
102
|
-
"DELETE /members": { right: "people", control: "never" },
|
|
106
|
+
"GET /members": { floor: "maintainer", right: "people", panel: false, control: "never" },
|
|
107
|
+
"POST /members": { right: "people", panel: false, control: "never" },
|
|
108
|
+
"DELETE /members": { right: "people", panel: false, control: "never" },
|
|
103
109
|
"DELETE /members/self": { floor: "viewer", guest: true, control: "never" },
|
|
104
110
|
// What one's own grant allows, read by the editor to offer only what will be taken.
|
|
105
111
|
"GET /members/self": { floor: "viewer", guest: true, control: "never" },
|
|
106
112
|
// Asking for more access is every member's, a guest's included, from wherever they were refused; reading and
|
|
107
113
|
// dismissing the requests is for whoever runs people and access, beside the roster they are answered on.
|
|
108
114
|
"POST /members/requests": { floor: "viewer", guest: true, control: "never" },
|
|
109
|
-
"GET /members/requests": { floor: "maintainer", right: "people", control: "never" },
|
|
110
|
-
"DELETE /members/requests": { right: "people", control: "never" },
|
|
115
|
+
"GET /members/requests": { floor: "maintainer", right: "people", panel: false, control: "never" },
|
|
116
|
+
"DELETE /members/requests": { right: "people", panel: false, control: "never" },
|
|
111
117
|
// The owner's Reconnect: register with the platform now, having it adopt the sandbox first when it holds no record.
|
|
112
|
-
"POST /platform/relink": { floor: "owner", control: "never" },
|
|
118
|
+
"POST /platform/relink": { floor: "owner", panel: false, control: "never" },
|
|
113
119
|
"GET /environment": {},
|
|
114
120
|
"GET /environment/contents": {},
|
|
115
121
|
"POST /environment/approve": {},
|
|
@@ -124,10 +130,11 @@ export const RAW_ROUTES = {
|
|
|
124
130
|
"POST /engines/channel": {},
|
|
125
131
|
"POST /engines/update": {},
|
|
126
132
|
"POST /engines/revert": {},
|
|
133
|
+
// An export can carry every vault (the owner's choice), and its ticket is the download's credential: never a panel's.
|
|
127
134
|
"GET /bundles": { floor: "maintainer", control: "never" },
|
|
128
|
-
"POST /bundles": { control: "never" },
|
|
135
|
+
"POST /bundles": { panel: false, control: "never" },
|
|
129
136
|
"DELETE /bundles": { control: "never" },
|
|
130
|
-
"POST /bundles/ticket": { control: "never" },
|
|
137
|
+
"POST /bundles/ticket": { panel: false, control: "never" },
|
|
131
138
|
// Navigated to by the browser, so no header: its ticket is checked in the handler.
|
|
132
139
|
"GET /bundles/download": { auth: "door", control: "never", lane: "bulk" },
|
|
133
140
|
"GET /definition": {},
|
|
@@ -138,9 +145,10 @@ export const RAW_ROUTES = {
|
|
|
138
145
|
"GET /arrivals/hosts": {},
|
|
139
146
|
"POST /arrivals/scan": {},
|
|
140
147
|
"POST /arrivals/apply": {},
|
|
141
|
-
// Model API keys on the owner's devices, and turning the picked ones into model endpoints
|
|
142
|
-
|
|
143
|
-
"
|
|
148
|
+
// Model API keys on the owner's devices, and turning the picked ones into model endpoints: each reads credential
|
|
149
|
+
// files off the owner's computers, so never a panel process's.
|
|
150
|
+
"GET /arrivals/keys": { panel: false },
|
|
151
|
+
"POST /arrivals/keys/apply": { panel: false },
|
|
144
152
|
"DELETE /arrivals": {},
|
|
145
153
|
"GET /extensions/{id}/bundle": { lane: "bulk" },
|
|
146
154
|
// An extension backend's own namespace, proxied verbatim.
|
|
@@ -227,38 +235,68 @@ export const RAW_ROUTES = {
|
|
|
227
235
|
// A person in the channel pressing Stop on a turn that channel started; the handler asks the automation's own
|
|
228
236
|
// sender rules whether that person may.
|
|
229
237
|
"POST /listeners/{provider}/stop": { panel: false, control: "never" },
|
|
238
|
+
// (2026-11-26) Who a stranger who signed in is (a Google ID token verified against a site's own client id, and whether
|
|
239
|
+
// that address is the owner's or a member's), for a listener anyone on the internet reaches: the extension that owns
|
|
240
|
+
// it, declaring the route in `permissions.daemon`, checked in the handler too. The Visitor chat's.
|
|
241
|
+
"POST /listeners/{provider}/identity": { panel: false, control: "never" },
|
|
230
242
|
// What an extension's own code asks about itself (extension-protocol.ts): its settings with their secrets, and its
|
|
231
243
|
// event stream. Every extension token reaches both undeclared, and each answers only about the extension asking, so
|
|
232
244
|
// no other credential reaches them; the handler resolves the caller from its token again.
|
|
233
245
|
"GET /extension/settings": { floor: "maintainer", panel: false, control: "never" },
|
|
234
246
|
"GET /extension/events": { floor: "maintainer", panel: false, control: "never", stream: true },
|
|
247
|
+
// (2026-11-26) The two doors an extension's declared `permissions` open beside them: holding work in flight for as
|
|
248
|
+
// long as its stream stays open (`work`), and running one command under a workload class (`exec`). Reached the same
|
|
249
|
+
// way, by every extension token undeclared in `permissions.daemon`, and each checks its own declaration.
|
|
250
|
+
"POST /extension/work/hold": { floor: "maintainer", panel: false, control: "never", stream: true },
|
|
251
|
+
"POST /extension/exec": { floor: "maintainer", panel: false, control: "never" },
|
|
252
|
+
// (2026-11-26) The doors an agent tool's call opens onto the turn that made it (`permissions.turn`): the turn's own
|
|
253
|
+
// signed-in browser for an account it holds, the owner's browser it holds, and a background job in its conversation.
|
|
254
|
+
// Reached the same way, each answering only a ticket the daemon minted for that extension's own call or job.
|
|
255
|
+
"POST /extension/turn/browser": { floor: "maintainer", panel: false, control: "never" },
|
|
256
|
+
"POST /extension/turn/owner-browser": { floor: "maintainer", panel: false, control: "never" },
|
|
257
|
+
"POST /extension/jobs": { floor: "maintainer", panel: false, control: "never", stream: true },
|
|
258
|
+
"POST /extension/jobs/{id}": { floor: "maintainer", panel: false, control: "never" },
|
|
259
|
+
// (2026-11-26) A row in the activity feed, written as the calling extension's own. Reached the same way, undeclared.
|
|
260
|
+
"POST /extension/activity": { floor: "maintainer", panel: false, control: "never" },
|
|
261
|
+
// (2026-11-27) Hosted sleep as an extension's own code meets it (extension-protocol.ts): the public URL of one of its
|
|
262
|
+
// `wakes` routes with its wake secret, what this boot follows, and the before-sleep watch it answers ready on.
|
|
263
|
+
// Reached the same way, undeclared, each answering only about the extension asking.
|
|
264
|
+
"POST /extension/sleep/wake-url": { floor: "maintainer", panel: false, control: "never" },
|
|
265
|
+
"GET /extension/sleep/boot": { floor: "maintainer", panel: false, control: "never" },
|
|
266
|
+
"POST /extension/sleep/watch": { floor: "maintainer", panel: false, control: "never", stream: true },
|
|
267
|
+
"POST /extension/sleep/ready": { floor: "maintainer", panel: false, control: "never" },
|
|
268
|
+
// (2026-11-27) What the platform's sleep watch heard for the extension's own connections while the sandbox slept.
|
|
269
|
+
"POST /extension/sleep/heard": { floor: "maintainer", panel: false, control: "never" },
|
|
235
270
|
// The CI webhook receiver, gated by the per-sandbox webhook secret.
|
|
236
271
|
"POST /ci/webhook/{host}": { auth: "door" },
|
|
272
|
+
// (2026-11-25) What the forges said, as it is heard, for a program (schemas/ci.ts CiFeedEventSchema): Server-Sent
|
|
273
|
+
// Events. An extension reaches it by declaring it in `permissions.daemon`; no agent or panel token does.
|
|
274
|
+
"GET /ci/feed": { floor: "maintainer", panel: false, control: "never", stream: true },
|
|
237
275
|
// Where an MCP server's authorization server sends the browser back (capabilities/mcp-oauth/): gated by the state of
|
|
238
276
|
// a sign-in this daemon started, and worth nothing without the PKCE verifier only the daemon holds.
|
|
239
277
|
"GET /oauth/mcp/callback": { auth: "door", control: "never" },
|
|
240
278
|
// Below maintainer a pairing is capped to port-mirror, so a collaborator may mint a preview tunnel.
|
|
241
|
-
"POST /system/sync/pair": { floor: "collaborator", control: "never" },
|
|
279
|
+
"POST /system/sync/pair": { floor: "collaborator", panel: false, control: "never" },
|
|
242
280
|
// A copy-paste command's short code, redeemed by the install script it was handed to: a device's first contact,
|
|
243
281
|
// gated by the code itself and a limit on failed attempts (peers/redeem-codes.ts).
|
|
244
282
|
"POST /system/redeem/{code}": { auth: "door", control: "never" },
|
|
245
283
|
// The peer doors: a device, browser or runner redeems its pairing at `enroll` and dials `connect` with the token.
|
|
246
|
-
"POST /system/hosts/pair": { control: "never" },
|
|
284
|
+
"POST /system/hosts/pair": { panel: false, control: "never" },
|
|
247
285
|
"POST /system/hosts/enroll": { auth: "door", control: "never" },
|
|
248
286
|
"GET /system/hosts": { control: "never" },
|
|
249
|
-
"DELETE /system/hosts/{id}": { control: "never" },
|
|
287
|
+
"DELETE /system/hosts/{id}": { panel: false, control: "never" },
|
|
250
288
|
// A peer's socket reconnects on its own backoff, so it answers before boot.
|
|
251
289
|
"GET /system/hosts/connect": { auth: "door", beforeBoot: true, control: "never" },
|
|
252
290
|
"POST /system/hosts/keyring-changed": { auth: "door", control: "never" },
|
|
253
|
-
"POST /system/webext/pair": { control: "never" },
|
|
291
|
+
"POST /system/webext/pair": { panel: false, control: "never" },
|
|
254
292
|
"POST /system/webext/enroll": { auth: "door", control: "never" },
|
|
255
293
|
"GET /system/webext": { control: "never" },
|
|
256
|
-
"DELETE /system/webext/{id}": { control: "never" },
|
|
294
|
+
"DELETE /system/webext/{id}": { panel: false, control: "never" },
|
|
257
295
|
"GET /system/webext/connect": { auth: "door", beforeBoot: true, control: "never" },
|
|
258
|
-
"POST /system/phones/pair": { control: "never" },
|
|
296
|
+
"POST /system/phones/pair": { panel: false, control: "never" },
|
|
259
297
|
"POST /system/phones/enroll": { auth: "door", control: "never" },
|
|
260
298
|
"GET /system/phones": { control: "never" },
|
|
261
|
-
"DELETE /system/phones/{id}": { control: "never" },
|
|
299
|
+
"DELETE /system/phones/{id}": { panel: false, control: "never" },
|
|
262
300
|
"GET /system/phones/connect": { auth: "door", beforeBoot: true, control: "never" },
|
|
263
301
|
// The editor hands over the push-relay channel it registered for a phone, so the sandbox can wake it.
|
|
264
302
|
"POST /system/phones/{id}/wake": { control: "never" },
|
|
@@ -267,15 +305,20 @@ export const RAW_ROUTES = {
|
|
|
267
305
|
"POST /system/phones/passwords/pair": { auth: "door", control: "never" },
|
|
268
306
|
"POST /system/phones/passwords/capture": { auth: "door", control: "never" },
|
|
269
307
|
"POST /system/phones/passwords/fill": { auth: "door", control: "never" },
|
|
270
|
-
"POST /system/runners/pair": { control: "never" },
|
|
308
|
+
"POST /system/runners/pair": { panel: false, control: "never" },
|
|
271
309
|
"POST /system/runners/enroll": { auth: "door", control: "never" },
|
|
272
310
|
"GET /system/runners": { control: "never" },
|
|
273
|
-
"DELETE /system/runners/{id}": { control: "never" },
|
|
311
|
+
"DELETE /system/runners/{id}": { panel: false, control: "never" },
|
|
274
312
|
"GET /system/runners/connect": { auth: "door", beforeBoot: true, control: "never" },
|
|
275
313
|
// Every MCP server the daemon hosts for a turn (its browser routers, the machines and browsers it was granted, its
|
|
276
314
|
// extension cards' endpoints), by server name: the handler checks the conversation's mount bearer the turn's tool
|
|
277
315
|
// config carries, and that the running turn mounted that name.
|
|
278
316
|
"ALL /mcp/{mount}": { auth: "door", control: "never" },
|
|
317
|
+
// (2026-11-26) The same server, for the turn's own shell: a card's CLI calling the tools its extension's backend serves
|
|
318
|
+
// for that card (the IMAP and Microsoft 365 commands, whose credentials stay in the backend). One JSON-RPC message per
|
|
319
|
+
// request; the conversation it names is believed only with its turn's proof, and must have a live turn that mounted
|
|
320
|
+
// that card's tools (the extensions' card-tools.routes.ts).
|
|
321
|
+
"POST /tools/{mount}": { agent: true, control: "never" },
|
|
279
322
|
// A connected browser's credential doors, on its durable token: a sign-in moves in (`session`) or out (`lend`).
|
|
280
323
|
"POST /system/webext/session": { auth: "door", control: "never" },
|
|
281
324
|
"POST /system/webext/lend": { auth: "door", control: "never" },
|
|
@@ -291,6 +334,7 @@ export const RAW_ROUTES = {
|
|
|
291
334
|
// sandbox's own address, before it shares anything with it, rather than take them from whoever relays the share.
|
|
292
335
|
"GET /keyring/keys": { auth: "door", control: "never" },
|
|
293
336
|
"POST /system/runners/{id}/definition/sync": { control: "never" },
|
|
337
|
+
"POST /system/runners/{id}/label": { control: "never" },
|
|
294
338
|
// A runner's git door and credential doors, each on the runner's own bearer.
|
|
295
339
|
"GET /system/runners/git/{repo}/info/refs": { auth: "door", control: "never", lane: "bulk" },
|
|
296
340
|
"POST /system/runners/git/{repo}/git-upload-pack": { auth: "door", control: "never", lane: "bulk" },
|
|
@@ -299,6 +343,14 @@ export const RAW_ROUTES = {
|
|
|
299
343
|
"POST /system/runners/credentials/refresh": { auth: "door", control: "never" },
|
|
300
344
|
// A runner's wake for a conversation dispatched there (runner-wake.ts): said here, so its turn is the parent's.
|
|
301
345
|
"POST /system/runners/wake": { auth: "door", control: "never" },
|
|
346
|
+
// A runner's turn reading this sandbox's fleet (runner-protocol.ts runnerFleetPath), as a turn of the conversation it
|
|
347
|
+
// was placed there for reads it here: the same answers `GET /fleet…` gives.
|
|
348
|
+
"GET /system/runners/fleet": { auth: "door", control: "never" },
|
|
349
|
+
"GET /system/runners/fleet/{handle}": { auth: "door", control: "never" },
|
|
350
|
+
"GET /system/runners/fleet/{handle}/bundle": { auth: "door", control: "never" },
|
|
351
|
+
// A runner's turn calling one of its `subagents` tools for the conversation it was placed there for (runner-protocol.ts
|
|
352
|
+
// runnerSubagentsPath), run here as that conversation's turn running here runs it. A `wait` parks for up to 31 minutes.
|
|
353
|
+
"POST /system/runners/subagents/{tool}": { auth: "door", control: "never", stream: true },
|
|
302
354
|
[`ALL ${runnerTranslatorPath}/*` as const]: { auth: "door", control: "never" },
|
|
303
355
|
// The privacy shield's gateway: every shielded runtime's model requests, on the signed session its base URL carries
|
|
304
356
|
// (privacy/gateway/session-token.ts), which names the provider and the only upstream it may forward to. Held open
|
|
@@ -315,19 +367,57 @@ export const RAW_ROUTES = {
|
|
|
315
367
|
// Inbound links: another of the owner's sandboxes handing this one tasks (schemas/links.ts). Minted, re-termed and
|
|
316
368
|
// revoked by the owner alone, checked in the handler like a control token; a waiting task is the owner's to allow.
|
|
317
369
|
"GET /system/links": { control: "never" },
|
|
318
|
-
"POST /system/links": { control: "never" },
|
|
319
|
-
"POST /system/links/{id}": { control: "never" },
|
|
320
|
-
"DELETE /system/links/{id}": { control: "never" },
|
|
321
|
-
"POST /system/links/{id}/requests/{request}": { control: "never" },
|
|
370
|
+
"POST /system/links": { panel: false, control: "never" },
|
|
371
|
+
"POST /system/links/{id}": { panel: false, control: "never" },
|
|
372
|
+
"DELETE /system/links/{id}": { panel: false, control: "never" },
|
|
373
|
+
"POST /system/links/{id}/requests/{request}": { panel: false, control: "never" },
|
|
322
374
|
// Account-level report routing: another sandbox on the owner's account reporting a problem about a project this one
|
|
323
375
|
// claims. Checked in the handler against a pass the platform signed (policy/sandbox-pass.ts); it only ever records
|
|
324
376
|
// into the issues inbox, and wakes an agent only as the inbox's own escalation rule says.
|
|
325
377
|
"POST /account/report": { auth: "door", control: "never" },
|
|
378
|
+
// Routing as a person, the `task` scope (2026-11-24): another sandbox hands a task to a conversation here that acts
|
|
379
|
+
// for the one person its pass names. Each door checks the pass and that person's pairing itself (account-routing/
|
|
380
|
+
// admit-route.ts) and reaches only the conversations that (asking sandbox, person) opened, as a link's doors do.
|
|
381
|
+
"POST /account/task": { auth: "door", control: "never" },
|
|
382
|
+
"GET /account/task/{id}": { auth: "door", control: "never" },
|
|
383
|
+
"POST /account/task/{id}/messages": { auth: "door", control: "never" },
|
|
384
|
+
"POST /account/task/{id}/answer": { auth: "door", control: "never" },
|
|
385
|
+
"POST /account/task/{id}/stop": { auth: "door", control: "never" },
|
|
326
386
|
// The sending side, for the `projects` command on the agent's PATH: report a problem to whichever sandbox claims a
|
|
327
387
|
// project (delivered now or kept in the outbox), what is still waiting, and the projects this sandbox claims.
|
|
328
388
|
"POST /account/outbox": { agent: true, control: "never" },
|
|
329
389
|
"GET /account/outbox": { agent: true, control: "never" },
|
|
330
390
|
"GET /account/projects": { agent: true, control: "never" },
|
|
391
|
+
// The projects this workspace's repos could claim, from their remotes: for Settings ▸ Projects and `projects suggest`.
|
|
392
|
+
"GET /account/projects/suggest": { floor: "maintainer", agent: true, control: "never" },
|
|
393
|
+
// Routing as a person (schemas/account-routes.ts). The receiving side: the signed-in person pairs an asking sandbox
|
|
394
|
+
// with themselves (never a guest, who reaches nothing a pass would open), lists their own pairings, revokes one; the
|
|
395
|
+
// handler lets a maintainer list and revoke anyone's. The asking side: the same person, signed in here, keeps the
|
|
396
|
+
// secret they minted over there, and anyone reads what is held, never a secret. No agent and no control token reaches
|
|
397
|
+
// any of them: a pairing is the person's own word.
|
|
398
|
+
"POST /account/pairings": { floor: "viewer", panel: false, control: "never" },
|
|
399
|
+
"GET /account/pairings": { floor: "viewer", panel: false, control: "never" },
|
|
400
|
+
"DELETE /account/pairings/{from}": { floor: "viewer", panel: false, control: "never" },
|
|
401
|
+
"POST /account/routes/secret": { floor: "viewer", panel: false, control: "never" },
|
|
402
|
+
"GET /account/routes": { floor: "viewer", control: "never" },
|
|
403
|
+
// Routing as a person, a drop (schemas/account-routes.ts): another sandbox the person is in handing a note and files
|
|
404
|
+
// into this one's inbox, admitted in the handler by a drop pass beside the person's pairing (admit-route.ts); it starts
|
|
405
|
+
// no turn. The sending side, for `sandboxes send` on the agent's PATH. The inbox, for the `inbox` command and the
|
|
406
|
+
// editor's Received list: each shown to the people a drop names and to maintainers, the handler cutting the list.
|
|
407
|
+
"POST /account/drop": { auth: "door", control: "never", lane: "bulk" },
|
|
408
|
+
"POST /account/drops": { agent: true, control: "never" },
|
|
409
|
+
"GET /account/inbox": { floor: "viewer", agent: true, control: "never" },
|
|
410
|
+
"GET /account/inbox/{id}": { floor: "viewer", agent: true, control: "never" },
|
|
411
|
+
"GET /account/inbox/{id}/files": { floor: "viewer", agent: true, control: "never", lane: "bulk" },
|
|
412
|
+
"POST /account/inbox/{id}/take": { floor: "collaborator", agent: true, control: "never" },
|
|
413
|
+
"DELETE /account/inbox/{id}": { floor: "collaborator", agent: true, control: "never" },
|
|
414
|
+
// Routing as a person, a read: another sandbox the person is in reading the conversations and records they may read
|
|
415
|
+
// here, admitted in the handler by a read pass beside their pairing. None can change anything; diagnostics are a
|
|
416
|
+
// maintainer's, as this sandbox's own logs are.
|
|
417
|
+
"GET /account/read/agents": { auth: "door", control: "never" },
|
|
418
|
+
"GET /account/read/agents/{handle}": { auth: "door", control: "never" },
|
|
419
|
+
"GET /account/read/agents/{handle}/bundle": { auth: "door", control: "never" },
|
|
420
|
+
"POST /account/read/diagnostics": { auth: "door", control: "never" },
|
|
331
421
|
// The link doors, called by the asking sandbox's daemon: each checks the link token itself (x-intentic-link) and
|
|
332
422
|
// reaches only the conversations that link opened, which is the whole of a link's reach.
|
|
333
423
|
"GET /link": { auth: "door", control: "never" },
|
|
@@ -352,24 +442,24 @@ export const RAW_ROUTES = {
|
|
|
352
442
|
"POST /link/operate/exec/{id}/stop": { auth: "door", control: "never" },
|
|
353
443
|
"POST /link/operate/read": { auth: "door", control: "never" },
|
|
354
444
|
"POST /link/operate/write": { auth: "door", control: "never" },
|
|
355
|
-
"POST /system/control/tokens": { control: "never" },
|
|
356
|
-
"GET /system/control/tokens": { floor: "maintainer", control: "never" },
|
|
357
|
-
"DELETE /system/control/tokens/{id}": { control: "never" },
|
|
445
|
+
"POST /system/control/tokens": { panel: false, control: "never" },
|
|
446
|
+
"GET /system/control/tokens": { floor: "maintainer", panel: false, control: "never" },
|
|
447
|
+
"DELETE /system/control/tokens/{id}": { panel: false, control: "never" },
|
|
358
448
|
// One's own passkeys are identity, like staying signed in; the policy and recovery codes are the owner's own door, so
|
|
359
449
|
// they stay ownership's whoever else runs the sandbox.
|
|
360
|
-
"GET /system/passkeys": { guest: true, control: "never" },
|
|
361
|
-
"POST /system/passkeys/register/options": { floor: "viewer", guest: true, enrolment: true, control: "never" },
|
|
362
|
-
"POST /system/passkeys/register": { floor: "viewer", guest: true, enrolment: true, control: "never" },
|
|
450
|
+
"GET /system/passkeys": { guest: true, panel: false, control: "never" },
|
|
451
|
+
"POST /system/passkeys/register/options": { floor: "viewer", guest: true, enrolment: true, panel: false, control: "never" },
|
|
452
|
+
"POST /system/passkeys/register": { floor: "viewer", guest: true, enrolment: true, panel: false, control: "never" },
|
|
363
453
|
// The assertion has no bearer yet, since it is how one is minted.
|
|
364
454
|
"POST /system/passkeys/assert/options": { auth: "door", beforeBoot: true, control: "never" },
|
|
365
455
|
"POST /system/passkeys/assert": { auth: "door", beforeBoot: true, control: "never" },
|
|
366
|
-
"POST /system/passkeys/policy": { floor: "owner", control: "never" },
|
|
367
|
-
"POST /system/passkeys/recovery": { floor: "owner", control: "never" },
|
|
456
|
+
"POST /system/passkeys/policy": { floor: "owner", panel: false, control: "never" },
|
|
457
|
+
"POST /system/passkeys/recovery": { floor: "owner", panel: false, control: "never" },
|
|
368
458
|
// One's own passkey; the handler holds another member's to whoever runs people and access, and the owner's to the owner.
|
|
369
|
-
"DELETE /system/passkeys/{id}": { floor: "viewer", guest: true, control: "never" },
|
|
459
|
+
"DELETE /system/passkeys/{id}": { floor: "viewer", guest: true, panel: false, control: "never" },
|
|
370
460
|
// Checks its own bearer, since the require-passkey policy would otherwise hold out the owner it exists for.
|
|
371
461
|
"POST /system/session/recover": { auth: "door", beforeBoot: true, control: "never" },
|
|
372
|
-
"POST /system/sessions/revoke": { control: "never" },
|
|
462
|
+
"POST /system/sessions/revoke": { panel: false, control: "never" },
|
|
373
463
|
// Stays repeatable after a partial attempt; the handler does its own owner check.
|
|
374
464
|
"POST /system/access/disable": { auth: "door", control: "never" },
|
|
375
465
|
// The desktop-sync agent: redeems a one-time pairing, and later revokes with its own token.
|
|
@@ -377,9 +467,12 @@ export const RAW_ROUTES = {
|
|
|
377
467
|
"GET /system/sync": { control: "never" },
|
|
378
468
|
// The sync agent's own machine report, the daemon's only view of SYNC_DIR.
|
|
379
469
|
"POST /system/sync/report": { sync: "poll", control: "never" },
|
|
470
|
+
// The workspace's change signal (devices.ts SyncChangesSchema): a long poll the sync agent holds open, so the request
|
|
471
|
+
// timer leaves it out, and like the byte pipe no check-in; the ports poll beside it is the heartbeat.
|
|
472
|
+
"GET /system/sync/changes": { sync: "pipe", control: "never", stream: true },
|
|
380
473
|
"DELETE /system/authorized-key": { auth: "door", control: "never" },
|
|
381
474
|
// The owner revoking one machine is no door: it goes through the session middleware.
|
|
382
|
-
"DELETE /system/authorized-key/{machine}": { control: "never" },
|
|
475
|
+
"DELETE /system/authorized-key/{machine}": { panel: false, control: "never" },
|
|
383
476
|
} as const satisfies Readonly<Record<`${"GET" | "POST" | "PUT" | "DELETE" | "ALL"} /${string}`, RouteMeta>>;
|
|
384
477
|
|
|
385
478
|
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
|
@@ -18,11 +18,13 @@ export const ActivityEventSchema = z.object({
|
|
|
18
18
|
.describe("Which account handled it. Absent for the sandbox's own events and for work run on a provider's default."),
|
|
19
19
|
direction: z.enum(["in", "out", "system"]).describe("Whether something arrived, something went out, or the sandbox did it to itself."),
|
|
20
20
|
// in: message.received, voice_utterance.received, voice_transcript.received
|
|
21
|
-
// out: message.send, reaction.add, messages.read, api.call
|
|
21
|
+
// out: an outward action an extension declares (message.send, reaction.add, messages.read…), or api.call for a
|
|
22
|
+
// request through the credential gateway no declaration covers
|
|
22
23
|
// 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
|
|
24
|
+
// turn.started, turn.plan, turn.error, turn.completed, rule.held_work, land.unhidden, extension.landed_on,
|
|
25
|
+
// deps.verify_green, deps.verify_red, deps.breakage_routed, deps.breakage_fixup, deps.breakage_waiting,
|
|
26
|
+
// deps.breakage_held, deps.breakage_resolved, deps.breakage_spent; rule.blocked_push and rule.continued_turn are
|
|
27
|
+
// retired and only appear in older logs
|
|
26
28
|
type: z
|
|
27
29
|
.string()
|
|
28
30
|
.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
|
+
);
|