@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateKeyPairSync } from "node:crypto";
|
|
1
|
+
import { createPrivateKey, generateKeyPairSync, sign } from "node:crypto";
|
|
2
2
|
import { mintIdentityAssertion, verifyIdentityAssertion } from "../../policy/identity-assertion.js";
|
|
3
3
|
import { isSandboxPass, mintSandboxPass, SANDBOX_PASS_MAX_TTL_MS, SANDBOX_PASS_TTL_MS, verifySandboxPass } from "./sandbox-pass.js";
|
|
4
4
|
|
|
@@ -20,6 +20,7 @@ describe("sandbox pass", () => {
|
|
|
20
20
|
from: A,
|
|
21
21
|
fromName: "ops",
|
|
22
22
|
to: B,
|
|
23
|
+
scope: "report",
|
|
23
24
|
project: "github.com/acme/app",
|
|
24
25
|
issuedAt: NOW / 1000,
|
|
25
26
|
expiresAt: (NOW + SANDBOX_PASS_TTL_MS) / 1000,
|
|
@@ -43,6 +44,37 @@ describe("sandbox pass", () => {
|
|
|
43
44
|
expect(verifySandboxPass(publicPem, assertion.replace(/^pa1/, "sp1"), NOW)).toBeUndefined();
|
|
44
45
|
});
|
|
45
46
|
|
|
47
|
+
// An organisation's line, said by the platform: present only when the two sides differ, and a pass without it reads
|
|
48
|
+
// as before.
|
|
49
|
+
it("carries the organisations a report crosses, and nothing when it crosses none", () => {
|
|
50
|
+
const crossesOrg = { from: { id: "org_1", name: "Acme" } };
|
|
51
|
+
expect(verifySandboxPass(publicPem, mint({ crossesOrg }), NOW)).toMatchObject({ crossesOrg });
|
|
52
|
+
const both = { from: { id: "org_1", name: "Acme" }, to: { id: "org_2", name: "Globex" } };
|
|
53
|
+
expect(verifySandboxPass(publicPem, mint({ crossesOrg: both }), NOW)?.crossesOrg).toEqual(both);
|
|
54
|
+
expect(verifySandboxPass(publicPem, mint(), NOW)).not.toHaveProperty("crossesOrg");
|
|
55
|
+
expect(verifySandboxPass(publicPem, mint({ crossesOrg: {} }), NOW)).not.toHaveProperty("crossesOrg");
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
// A pass that routes as a person names that one person and no project; a report names its project. A daemon from
|
|
59
|
+
// before scopes reads any pass with a project as a report, which is why no other scope may carry one.
|
|
60
|
+
it("routes as one named person for every scope but a report, and never carries a project there", () => {
|
|
61
|
+
const drop = verifySandboxPass(publicPem, mint({ scope: "drop", project: undefined, person: " Ada@Example.com " }), NOW);
|
|
62
|
+
expect(drop).toMatchObject({ scope: "drop", person: "ada@example.com" });
|
|
63
|
+
expect(drop).not.toHaveProperty("project");
|
|
64
|
+
expect(verifySandboxPass(publicPem, mint({ person: "ada@example.com" }), NOW)).toMatchObject({ scope: "report", person: "ada@example.com" });
|
|
65
|
+
expect(() => mint({ scope: "task", person: "ada@example.com" })).toThrow();
|
|
66
|
+
expect(() => mint({ scope: "read", project: undefined })).toThrow();
|
|
67
|
+
expect(() => mint({ project: undefined })).toThrow();
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it("refuses a scope this build does not know, rather than reading it as another", () => {
|
|
71
|
+
const [prefix, payload] = mint({ scope: "read", project: undefined, person: "ada@example.com" }).split(".");
|
|
72
|
+
const unknown = Buffer.from(Buffer.from(payload ?? "", "base64url").toString("utf8").replace(`"read"`, `"operate"`), "utf8").toString("base64url");
|
|
73
|
+
// Signed properly, by the right key: only the scope is one no build knows.
|
|
74
|
+
const signature = sign(null, Buffer.concat([Buffer.from(`${prefix}.`), Buffer.from(unknown, "base64url")]), createPrivateKey(privatePem)).toString("base64url");
|
|
75
|
+
expect(verifySandboxPass(publicPem, `${prefix}.${unknown}.${signature}`, NOW)).toBeUndefined();
|
|
76
|
+
});
|
|
77
|
+
|
|
46
78
|
it("refuses to mint a pass to itself or one that lives too long", () => {
|
|
47
79
|
expect(() => mint({ to: A })).toThrow();
|
|
48
80
|
expect(() => mint({ ttlMs: SANDBOX_PASS_MAX_TTL_MS + 1 })).toThrow();
|
|
@@ -2,6 +2,7 @@ import { createPrivateKey, createPublicKey, randomBytes, sign as edSign, verify
|
|
|
2
2
|
import { parseJsonWith } from "@intentic/base/json";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { SANDBOX_ID } from "../../ids/tunnel-ids.js";
|
|
5
|
+
import { PASS_SCOPES, type PassScope } from "./pass-scopes.js";
|
|
5
6
|
|
|
6
7
|
// The platform's signed word that one sandbox may report to another ON THE SAME ACCOUNT about one project: the
|
|
7
8
|
// credential behind account-level report routing. The sending daemon asks the platform who owns a project
|
|
@@ -19,6 +20,24 @@ export const SANDBOX_PASS_MAX_TTL_MS = 15 * 60_000;
|
|
|
19
20
|
|
|
20
21
|
// The header a pass rides on the receiving daemon's `/account/` routes.
|
|
21
22
|
export const SANDBOX_PASS_HEADER = "x-intentic-sandbox-pass";
|
|
23
|
+
export { ROUTE_SECRET_HEADER } from "./pass-scopes.js";
|
|
24
|
+
|
|
25
|
+
// One side of a report that crossed an organisation's line: the organisation, by its platform id and the name its admins
|
|
26
|
+
// gave it. A side that belongs to none is left out.
|
|
27
|
+
export interface PassOrg {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly name: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Set only when the two sandboxes do not belong to the same organisation (one personal and one bound, or two different
|
|
33
|
+
// organisations): the platform's word, so the receiver can say a report came across that line. Allowed, never refused.
|
|
34
|
+
export interface CrossesOrg {
|
|
35
|
+
readonly from?: PassOrg;
|
|
36
|
+
readonly to?: PassOrg;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// The scopes live in their own module, so a browser bundle can take them without this one's node:crypto.
|
|
40
|
+
export { PASS_SCOPES, type PassScope } from "./pass-scopes.js";
|
|
22
41
|
|
|
23
42
|
export interface SandboxPass {
|
|
24
43
|
// The sending sandbox's tunnel id, and the name its owner gave it (for the inbox; display only).
|
|
@@ -26,10 +45,16 @@ export interface SandboxPass {
|
|
|
26
45
|
readonly fromName: string;
|
|
27
46
|
// The receiving sandbox's tunnel id: a daemon refuses a pass addressed to anyone else.
|
|
28
47
|
readonly to: string;
|
|
29
|
-
|
|
30
|
-
|
|
48
|
+
readonly scope: PassScope;
|
|
49
|
+
// The normalized project id the receiver claims (project-id.ts): on a report pass, and only there.
|
|
50
|
+
readonly project?: string;
|
|
51
|
+
// The one person the request routes as (a lower-cased address), whom the platform found on both sandboxes' rosters:
|
|
52
|
+
// always on a scope other than `report`, and on a report only when the sender could prove which conversation asked.
|
|
53
|
+
readonly person?: string;
|
|
31
54
|
readonly issuedAt: number;
|
|
32
55
|
readonly expiresAt: number;
|
|
56
|
+
// Present only when the report crosses an organisation's line.
|
|
57
|
+
readonly crossesOrg?: CrossesOrg;
|
|
33
58
|
}
|
|
34
59
|
|
|
35
60
|
const base64url = (bytes: Buffer): string => bytes.toString("base64url");
|
|
@@ -45,9 +70,12 @@ export const mintSandboxPass = (
|
|
|
45
70
|
readonly from: string;
|
|
46
71
|
readonly fromName: string;
|
|
47
72
|
readonly to: string;
|
|
48
|
-
readonly
|
|
73
|
+
readonly scope?: PassScope;
|
|
74
|
+
readonly project?: string | undefined;
|
|
75
|
+
readonly person?: string | undefined;
|
|
49
76
|
readonly issuedAtMs: number;
|
|
50
77
|
readonly ttlMs?: number;
|
|
78
|
+
readonly crossesOrg?: CrossesOrg | undefined;
|
|
51
79
|
},
|
|
52
80
|
): string => {
|
|
53
81
|
if (!SANDBOX_ID.test(claim.from) || !SANDBOX_ID.test(claim.to)) {
|
|
@@ -56,8 +84,13 @@ export const mintSandboxPass = (
|
|
|
56
84
|
if (claim.from === claim.to) {
|
|
57
85
|
throw new Error("a sandbox pass is from one sandbox to another");
|
|
58
86
|
}
|
|
59
|
-
|
|
60
|
-
|
|
87
|
+
const scope = claim.scope ?? "report";
|
|
88
|
+
// A daemon from before scopes reads any pass with a project as a report, so only a report pass may carry one.
|
|
89
|
+
if (scope === "report" ? (claim.project ?? "").trim() === "" : claim.project !== undefined) {
|
|
90
|
+
throw new Error("a report pass names a project, and only a report pass does");
|
|
91
|
+
}
|
|
92
|
+
if (scope !== "report" && (claim.person ?? "").trim() === "") {
|
|
93
|
+
throw new Error("a pass that routes as a person names the person");
|
|
61
94
|
}
|
|
62
95
|
const ttlMs = claim.ttlMs ?? SANDBOX_PASS_TTL_MS;
|
|
63
96
|
if (ttlMs <= 0 || ttlMs > SANDBOX_PASS_MAX_TTL_MS) {
|
|
@@ -70,9 +103,14 @@ export const mintSandboxPass = (
|
|
|
70
103
|
name: claim.fromName.slice(0, 120),
|
|
71
104
|
aud: claim.to,
|
|
72
105
|
prj: claim.project,
|
|
106
|
+
// Left out for a report, so a report pass reads exactly as it did before scopes.
|
|
107
|
+
scp: scope === "report" ? undefined : scope,
|
|
108
|
+
sub: claim.person?.trim().toLowerCase(),
|
|
73
109
|
iat: Math.floor(claim.issuedAtMs / 1000),
|
|
74
110
|
exp: Math.floor((claim.issuedAtMs + ttlMs) / 1000),
|
|
75
111
|
jti: base64url(randomBytes(12)),
|
|
112
|
+
// JSON leaves an undefined key out, so a pass within one organisation carries no `org` at all.
|
|
113
|
+
org: claim.crossesOrg === undefined ? undefined : orgClaim(claim.crossesOrg),
|
|
76
114
|
}),
|
|
77
115
|
"utf8",
|
|
78
116
|
);
|
|
@@ -80,21 +118,40 @@ export const mintSandboxPass = (
|
|
|
80
118
|
return `${PASS_PREFIX}.${base64url(payload)}.${base64url(signature)}`;
|
|
81
119
|
};
|
|
82
120
|
|
|
121
|
+
const clip = (org: PassOrg): PassOrg => ({ id: org.id.slice(0, 64), name: org.name.slice(0, 120) });
|
|
122
|
+
const orgClaim = (crosses: { readonly from?: PassOrg | undefined; readonly to?: PassOrg | undefined }): CrossesOrg => {
|
|
123
|
+
if (crosses.from !== undefined && crosses.to !== undefined) {
|
|
124
|
+
return { from: clip(crosses.from), to: clip(crosses.to) };
|
|
125
|
+
}
|
|
126
|
+
if (crosses.from !== undefined) {
|
|
127
|
+
return { from: clip(crosses.from) };
|
|
128
|
+
}
|
|
129
|
+
return crosses.to === undefined ? {} : { to: clip(crosses.to) };
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const PassOrgSchema = z.object({ id: z.string().min(1).max(64), name: z.string().max(120) });
|
|
133
|
+
|
|
134
|
+
// `org` is optional, so a pass minted before it (or by a platform that never sets it) verifies as it did, and a daemon
|
|
135
|
+
// from before it strips the key it does not know rather than refusing the pass.
|
|
83
136
|
const PassPayloadSchema = z.object({
|
|
84
137
|
v: z.literal(1),
|
|
85
138
|
iss: z.string().regex(SANDBOX_ID),
|
|
86
139
|
name: z.string(),
|
|
87
140
|
aud: z.string().regex(SANDBOX_ID),
|
|
88
|
-
prj: z.string().min(1),
|
|
141
|
+
prj: z.string().min(1).optional(),
|
|
142
|
+
// An unknown scope fails the parse, so a pass for a door this build does not know is refused rather than misread.
|
|
143
|
+
scp: z.enum(PASS_SCOPES).optional(),
|
|
144
|
+
sub: z.string().min(3).max(254).optional(),
|
|
89
145
|
iat: z.number(),
|
|
90
146
|
exp: z.number(),
|
|
91
147
|
jti: z.string().min(1),
|
|
148
|
+
org: z.object({ from: PassOrgSchema.optional(), to: PassOrgSchema.optional() }).optional(),
|
|
92
149
|
});
|
|
93
150
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
//
|
|
97
|
-
|
|
151
|
+
type PassPayload = z.infer<typeof PassPayloadSchema>;
|
|
152
|
+
|
|
153
|
+
// The payload a valid signature covers, parsed; undefined for a wrong prefix, a bad signature or a malformed claim.
|
|
154
|
+
const signedPayload = (publicKeyPem: string, token: string): PassPayload | undefined => {
|
|
98
155
|
const [prefix, encodedPayload, encodedSignature, ...rest] = token.split(".");
|
|
99
156
|
if (prefix !== PASS_PREFIX || encodedPayload === undefined || encodedSignature === undefined || rest.length > 0) {
|
|
100
157
|
return undefined;
|
|
@@ -108,12 +165,31 @@ export const verifySandboxPass = (publicKeyPem: string, token: string, nowMs: nu
|
|
|
108
165
|
// allow(silent-catch): a key or signature that does not parse verifies nothing: the pass is invalid, said as undefined.
|
|
109
166
|
return undefined;
|
|
110
167
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
168
|
+
return parseJsonWith(payload.toString("utf8"), PassPayloadSchema);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
// Live at nowMs, issued no later than a minute ahead of it, and living no longer than any pass may.
|
|
172
|
+
const timely = (claim: PassPayload, nowMs: number): boolean =>
|
|
173
|
+
claim.exp * 1000 > nowMs && claim.iat * 1000 <= nowMs + 60_000 && (claim.exp - claim.iat) * 1000 <= SANDBOX_PASS_MAX_TTL_MS;
|
|
174
|
+
|
|
175
|
+
// A report names its project and nothing routes as a person without naming them; anything else is no pass at all.
|
|
176
|
+
const namesItsSubject = (claim: PassPayload): boolean =>
|
|
177
|
+
(claim.scp ?? "report") === "report" ? claim.prj !== undefined : claim.prj === undefined && claim.sub !== undefined;
|
|
178
|
+
|
|
179
|
+
const passOf = (claim: PassPayload): SandboxPass => {
|
|
180
|
+
const pass: SandboxPass = { from: claim.iss, fromName: claim.name, to: claim.aud, scope: claim.scp ?? "report", issuedAt: claim.iat, expiresAt: claim.exp };
|
|
181
|
+
const withProject: SandboxPass = claim.prj === undefined ? pass : { ...pass, project: claim.prj };
|
|
182
|
+
const withPerson: SandboxPass = claim.sub === undefined ? withProject : { ...withProject, person: claim.sub };
|
|
183
|
+
return claim.org === undefined || (claim.org.from === undefined && claim.org.to === undefined) ? withPerson : { ...withPerson, crossesOrg: orgClaim(claim.org) };
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
// Verifies a pass against the platform's public key at nowMs; undefined for any way of being invalid (wrong prefix, bad
|
|
187
|
+
// signature, malformed claim, an unknown scope, expired, issued in the future, living longer than allowed). The caller
|
|
188
|
+
// checks `to` against its own id, the scope against its door, and `project` or `person` against its own records.
|
|
189
|
+
export const verifySandboxPass = (publicKeyPem: string, token: string, nowMs: number): SandboxPass | undefined => {
|
|
190
|
+
const claim = signedPayload(publicKeyPem, token);
|
|
191
|
+
if (claim === undefined || claim.iss === claim.aud || !timely(claim, nowMs) || !namesItsSubject(claim)) {
|
|
116
192
|
return undefined;
|
|
117
193
|
}
|
|
118
|
-
return
|
|
194
|
+
return passOf(claim);
|
|
119
195
|
};
|
|
@@ -54,19 +54,25 @@
|
|
|
54
54
|
"POST /workspace/upload",
|
|
55
55
|
"POST /workspace/upload-archive",
|
|
56
56
|
"GET /system/sync/ssh",
|
|
57
|
+
"POST /browser/uploads",
|
|
58
|
+
"GET /browser/downloads/file",
|
|
57
59
|
"GET /bundles/download",
|
|
58
60
|
"GET /extensions/{id}/bundle",
|
|
59
61
|
"POST /system/webext/media",
|
|
60
62
|
"POST /system/webext/file",
|
|
61
63
|
"GET /system/runners/git/{repo}/info/refs",
|
|
62
64
|
"POST /system/runners/git/{repo}/git-upload-pack",
|
|
63
|
-
"POST /system/runners/git/{repo}/git-receive-pack"
|
|
65
|
+
"POST /system/runners/git/{repo}/git-receive-pack",
|
|
66
|
+
"POST /account/drop",
|
|
67
|
+
"GET /account/inbox/{id}/files"
|
|
64
68
|
],
|
|
65
69
|
"lanes": [
|
|
66
70
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/workspace/media?path=a.mp4", "lane": "bulk" },
|
|
67
71
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/workspace/download?ticket=t", "lane": "bulk" },
|
|
68
72
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/agents/c1/documents/raw?path=letter.odt", "lane": "bulk" },
|
|
69
73
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "POST", "path": "/workspace/upload?path=a", "lane": "bulk" },
|
|
74
|
+
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "POST", "path": "/browser/uploads", "lane": "bulk" },
|
|
75
|
+
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/browser/downloads/file?id=d1", "lane": "bulk" },
|
|
70
76
|
{ "host": "sandbox-abcdef012345.sbx.example.test:443", "method": "GET", "path": "/system/runners/git/app/info/refs?service=git-upload-pack", "lane": "bulk" },
|
|
71
77
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "POST", "path": "/system/runners/git/app/git-receive-pack", "lane": "bulk" },
|
|
72
78
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/system/sync/ssh", "lane": "bulk" },
|
|
@@ -78,6 +84,8 @@
|
|
|
78
84
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "OPTIONS", "path": "/workspace/raw", "lane": "bulk" },
|
|
79
85
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "OPTIONS", "path": "/system/runners/git/app/git-upload-pack", "lane": "bulk" },
|
|
80
86
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "get", "path": "/workspace/raw?path=a", "lane": "bulk" },
|
|
87
|
+
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "POST", "path": "/account/drop?wake=home-abc", "lane": "bulk" },
|
|
88
|
+
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/account/inbox/drop-abc/files", "lane": "bulk" },
|
|
81
89
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/workspace/thumb?path=a.png", "lane": "interactive" },
|
|
82
90
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "POST", "path": "/workspace/upload-diff", "lane": "interactive" },
|
|
83
91
|
{ "host": "sandbox-abcdef012345.sbx.example.test", "method": "GET", "path": "/agents", "lane": "interactive" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ATTACHMENTS_DIR } from "../state/workspace-state.js";
|
|
2
|
-
import { guestReach, memberRefusal, routeFloor } from "./member-reach.js";
|
|
2
|
+
import { guestReach, memberRefusal, routeFloor, scopeRefusal } from "./member-reach.js";
|
|
3
3
|
|
|
4
4
|
describe("routeFloor", () => {
|
|
5
5
|
test("reads floor at viewer: fleet, transcripts, workspace files, git log", () => {
|
|
@@ -275,3 +275,42 @@ describe("a home-only member", () => {
|
|
|
275
275
|
});
|
|
276
276
|
});
|
|
277
277
|
});
|
|
278
|
+
|
|
279
|
+
describe("scopeRefusal", () => {
|
|
280
|
+
const guest = { tier: "guest", agents: "chat" } as const;
|
|
281
|
+
const viewer = { tier: "viewer" } as const;
|
|
282
|
+
const collaborator = { tier: "collaborator", agents: "run" } as const;
|
|
283
|
+
const handsOnly = { tier: "writer", agents: "off" } as const;
|
|
284
|
+
const homeOnly = { tier: "collaborator", agents: "home" } as const;
|
|
285
|
+
|
|
286
|
+
test("a report and a read admit anyone on the roster, a guest included", () => {
|
|
287
|
+
for (const caller of [guest, viewer, collaborator, handsOnly, homeOnly]) {
|
|
288
|
+
expect(scopeRefusal(caller, "report")).toBeUndefined();
|
|
289
|
+
expect(scopeRefusal(caller, "read")).toBeUndefined();
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
test("a drop is the collaborator's and up, never a guest's, and a writer whose agents are off may drop", () => {
|
|
294
|
+
expect(scopeRefusal(guest, "drop")).toMatchObject({ floor: "collaborator", reason: "guest" });
|
|
295
|
+
expect(scopeRefusal(viewer, "drop")).toMatchObject({ floor: "collaborator", reason: "floor" });
|
|
296
|
+
expect(scopeRefusal(collaborator, "drop")).toBeUndefined();
|
|
297
|
+
expect(scopeRefusal(handsOnly, "drop")).toBeUndefined();
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
test("a drop that wakes a conversation also needs running agents", () => {
|
|
301
|
+
expect(scopeRefusal(collaborator, "drop", { wake: true })).toBeUndefined();
|
|
302
|
+
expect(scopeRefusal(handsOnly, "drop", { wake: true })).toMatchObject({ reason: "agents-off" });
|
|
303
|
+
expect(scopeRefusal(homeOnly, "drop", { wake: true })).toMatchObject({ reason: "agents-off" });
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
test("a task needs running agents here, and neither a guest nor a home-only member gets one", () => {
|
|
307
|
+
// POST /agent is on the guest list, so memberRefusal alone would admit a guest: the scope names them apart.
|
|
308
|
+
expect(memberRefusal(guest, "POST", "/agent")).toBeUndefined();
|
|
309
|
+
expect(scopeRefusal(guest, "task")).toMatchObject({ reason: "guest" });
|
|
310
|
+
expect(scopeRefusal(homeOnly, "task")).toMatchObject({ reason: "agents-off" });
|
|
311
|
+
expect(scopeRefusal(viewer, "task")).toMatchObject({ reason: "floor" });
|
|
312
|
+
expect(scopeRefusal(handsOnly, "task")).toMatchObject({ reason: "agents-off" });
|
|
313
|
+
expect(scopeRefusal(collaborator, "task")).toBeUndefined();
|
|
314
|
+
expect(scopeRefusal({ tier: "owner" }, "task")).toBeUndefined();
|
|
315
|
+
});
|
|
316
|
+
});
|
|
@@ -3,6 +3,7 @@ import { type MemberTier, tierAtLeast } from "../schemas/shared.js";
|
|
|
3
3
|
import { defaultFloor } from "./route-meta.js";
|
|
4
4
|
import { isAttachmentPath } from "../state/workspace-state.js";
|
|
5
5
|
import { sandboxRouteFor } from "../index.js";
|
|
6
|
+
import type { PassScope } from "./doors/pass-scopes.js";
|
|
6
7
|
|
|
7
8
|
// Role floors: the minimum trust tier each route demands, read from the route's own RouteMeta (route-meta.ts). One
|
|
8
9
|
// function for both sides: the daemon's bearer middleware refuses with it right after the caller's tier resolves, and
|
|
@@ -55,6 +56,45 @@ export const memberRefusal = (
|
|
|
55
56
|
return floor === "collaborator" && caller.agents === "off" ? { error: "running agents is not on for you here", floor, reason: "agents-off" } : undefined;
|
|
56
57
|
};
|
|
57
58
|
|
|
59
|
+
// The caller's fields every floor reads, as memberRefusal takes them.
|
|
60
|
+
type ReachCaller = Parameters<typeof memberRefusal>[0];
|
|
61
|
+
|
|
62
|
+
// WHAT A PERSON ROUTED FROM ANOTHER SANDBOX MAY DO HERE (2026-11-24, docs/architecture/account-routing.md), one rule per
|
|
63
|
+
// pass scope, beside memberRefusal so the editor can say before sending what the receiving daemon will answer. Undefined
|
|
64
|
+
// admits. `wake` is a drop that asks to be queued into one of the person's conversations, which starts a turn.
|
|
65
|
+
// - report: anyone on the roster, a guest included: the person is attribution only, and a report starts nothing they own;
|
|
66
|
+
// - drop: collaborator and up, never a guest. Not memberRefusal's floor, whose agents-off rule would refuse a writer who
|
|
67
|
+
// edits by hand, and a drop runs no agent; one that wakes a conversation is driving one, so it takes that floor too;
|
|
68
|
+
// - read: viewer and up, a guest included, since the reader cuts what they see to what they may read here;
|
|
69
|
+
// - task: whoever may start a turn here. A guest is named apart, as is a home-only member: both reach `POST /agent` on the
|
|
70
|
+
// guest list (member-reach.test.ts), for their own chat or home, never a conversation another sandbox opens for them.
|
|
71
|
+
export const scopeRefusal = (caller: ReachCaller, scope: PassScope, options: { readonly wake?: boolean } = {}): MemberRefusal | undefined => {
|
|
72
|
+
switch (scope) {
|
|
73
|
+
case "report":
|
|
74
|
+
case "read":
|
|
75
|
+
return undefined;
|
|
76
|
+
case "drop": {
|
|
77
|
+
if (caller.tier === "guest" || !tierAtLeast(caller.tier, "collaborator")) {
|
|
78
|
+
return { error: "dropping into this sandbox needs collaborator access here", floor: "collaborator", reason: caller.tier === "guest" ? "guest" : "floor" };
|
|
79
|
+
}
|
|
80
|
+
return options.wake === true ? taskRefusal(caller) : undefined;
|
|
81
|
+
}
|
|
82
|
+
case "task":
|
|
83
|
+
return taskRefusal(caller);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// Starting a turn here for a person another sandbox routes: the chat's own floor, a guest and a home-only member aside.
|
|
88
|
+
const taskRefusal = (caller: ReachCaller): MemberRefusal | undefined => {
|
|
89
|
+
if (caller.tier === "guest") {
|
|
90
|
+
return { error: "not open to a guest member", floor: "collaborator", reason: "guest" };
|
|
91
|
+
}
|
|
92
|
+
if (caller.agents === "home") {
|
|
93
|
+
return { error: "running agents here is limited to your own home conversation", floor: "collaborator", reason: "agents-off" };
|
|
94
|
+
}
|
|
95
|
+
return memberRefusal(caller, "POST", "/agent");
|
|
96
|
+
};
|
|
97
|
+
|
|
58
98
|
// Whether the caller was given the part of the sandbox this route runs (route-meta.ts `right`).
|
|
59
99
|
const givenRight = (caller: { readonly manages?: readonly ManageRight[] | undefined }, method: string, path: string): boolean => {
|
|
60
100
|
const right = sandboxRouteFor(method, path)?.meta.right;
|
|
@@ -29,6 +29,9 @@ export interface McpTool<Ctx> {
|
|
|
29
29
|
// JSON Schema for `tools/list`, derived from the zod schema once at module load, not per request.
|
|
30
30
|
readonly inputSchema: Record<string, unknown>;
|
|
31
31
|
readonly annotations: ReturnType<typeof toolAnnotations>;
|
|
32
|
+
// Whether a call's arguments carry a program (policy/device-programs.ts): the machine's own check, never sent in
|
|
33
|
+
// `tools/list`, which only the daemon's table speaks for.
|
|
34
|
+
readonly carriesProgram: boolean;
|
|
32
35
|
readonly call: (args: unknown, ctx: Ctx) => Promise<Record<string, unknown>>;
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -61,6 +64,8 @@ export const tool = <Schema extends z.ZodType, Ctx>(spec: {
|
|
|
61
64
|
readonly name: string;
|
|
62
65
|
readonly description: string;
|
|
63
66
|
readonly effect: ToolEffect;
|
|
67
|
+
// Its arguments carry a program; a device marks it through a wrapper that takes only names in that table.
|
|
68
|
+
readonly program?: true;
|
|
64
69
|
readonly input: Schema;
|
|
65
70
|
readonly run: (args: z.output<Schema>, ctx: Ctx) => Promise<Record<string, unknown>>;
|
|
66
71
|
}): McpTool<Ctx> => {
|
|
@@ -70,6 +75,7 @@ export const tool = <Schema extends z.ZodType, Ctx>(spec: {
|
|
|
70
75
|
description: spec.description,
|
|
71
76
|
inputSchema: converterReadable(inputSchema) as Record<string, unknown>,
|
|
72
77
|
annotations: toolAnnotations(spec.effect),
|
|
78
|
+
carriesProgram: spec.program === true,
|
|
73
79
|
call: async (args, ctx) => {
|
|
74
80
|
const parsed = spec.input.safeParse(args);
|
|
75
81
|
// Readable enough for a model to fix its own call: which field, and what was expected.
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
EnvironmentRuntimeDecisionSchema,
|
|
14
14
|
EnvironmentSchema,
|
|
15
15
|
} from "../../schemas/environment.js";
|
|
16
|
-
import { SyncStatusSchema } from "../../schemas/devices.js";
|
|
16
|
+
import { SyncChangesSchema, SyncStatusSchema } from "../../schemas/devices.js";
|
|
17
17
|
import { ConversationBundleSchema, DiagnosticsAnswerSchema, DiagnosticsAskSchema, DiagnosticsQuerySchema } from "../../schemas/diagnostics.js";
|
|
18
18
|
import { HostsListSchema } from "../../schemas/hosts.js";
|
|
19
19
|
import { VoicesViewSchema } from "../../schemas/voice.js";
|
|
@@ -37,6 +37,22 @@ import {
|
|
|
37
37
|
PhonePasswordsPairSchema,
|
|
38
38
|
} from "../../schemas/phone-passwords.js";
|
|
39
39
|
import { OkSchema } from "../../schemas/shared.js";
|
|
40
|
+
import {
|
|
41
|
+
DropAcceptedSchema,
|
|
42
|
+
DropBodySchema,
|
|
43
|
+
DropFilesSchema,
|
|
44
|
+
DropSendOutcomeSchema,
|
|
45
|
+
DropSendSchema,
|
|
46
|
+
DropTakenSchema,
|
|
47
|
+
DropTakeSchema,
|
|
48
|
+
PairingMintedSchema,
|
|
49
|
+
PairingMintSchema,
|
|
50
|
+
PairingsListSchema,
|
|
51
|
+
ReceivedDropSchema,
|
|
52
|
+
ReceivedDropsSchema,
|
|
53
|
+
RouteSecretSchema,
|
|
54
|
+
RoutesListSchema,
|
|
55
|
+
} from "../../schemas/account-routes.js";
|
|
40
56
|
import { PeerPairingAnswerSchema, SyncPairAnswerSchema, SyncPairRequestSchema } from "../../schemas/short-codes.js";
|
|
41
57
|
import { SpeechStatusSchema, SpeechTranscriptSchema, SpeechWakeClaimSchema, SpeechWakeGrantSchema } from "../../schemas/speech.js";
|
|
42
58
|
import {
|
|
@@ -97,6 +113,7 @@ import {
|
|
|
97
113
|
import { DefinitionDiffSchema, DefinitionExportSchema, WorkspacePublishResultSchema, WorkspacePublishSchema, WorkspaceRemoteSchema } from "../../state/definition.js";
|
|
98
114
|
import {
|
|
99
115
|
RunnerDefinitionAppliedSchema,
|
|
116
|
+
RunnerLabelSchema,
|
|
100
117
|
RunnersListSchema,
|
|
101
118
|
} from "../doors/runner-protocol.js";
|
|
102
119
|
import type { RawRouteKey } from "./raw-routes.js";
|
|
@@ -180,8 +197,11 @@ export const RAW_JSON_ROUTES = {
|
|
|
180
197
|
"GET /system/runners": { output: RunnersListSchema },
|
|
181
198
|
"DELETE /system/runners/{id}": { output: OkSchema },
|
|
182
199
|
"POST /system/runners/{id}/definition/sync": { output: RunnerDefinitionAppliedSchema },
|
|
200
|
+
// A runner's name for people (its id never changes); empty clears it.
|
|
201
|
+
"POST /system/runners/{id}/label": { input: RunnerLabelSchema, output: OkSchema },
|
|
183
202
|
// Desktop sync: the sandbox-level state, the pairing (`?mode=mirror` asks for the narrower one), one machine's key.
|
|
184
203
|
"GET /system/sync": { output: SyncStatusSchema },
|
|
204
|
+
"GET /system/sync/changes": { output: SyncChangesSchema },
|
|
185
205
|
"POST /system/sync/pair": { input: SyncPairRequestSchema, output: SyncPairAnswerSchema },
|
|
186
206
|
"DELETE /system/authorized-key/{machine}": { output: OkSchema },
|
|
187
207
|
// Every browser session revoked, the owner's own included.
|
|
@@ -194,9 +214,33 @@ export const RAW_JSON_ROUTES = {
|
|
|
194
214
|
"POST /system/links/{id}/requests/{request}": { input: LinkRequestDecisionSchema, output: InboundLinkSummarySchema },
|
|
195
215
|
// Another sandbox on the owner's account reporting a problem about a project this one claims (schemas/issues.ts).
|
|
196
216
|
"POST /account/report": { input: AccountReportSchema, output: IssueAcceptedSchema },
|
|
217
|
+
// A task routed as a person: the link doors' own shapes, behind a pass and a pairing instead of a link token.
|
|
218
|
+
"POST /account/task": { input: LinkTaskSchema, output: LinkTaskStatusSchema },
|
|
219
|
+
"GET /account/task/{id}": { output: LinkTaskStatusSchema },
|
|
220
|
+
"POST /account/task/{id}/messages": { input: LinkMessageSchema, output: LinkMessageReceiptSchema },
|
|
221
|
+
"POST /account/task/{id}/answer": { input: LinkAnswerSchema, output: OkSchema },
|
|
222
|
+
"POST /account/task/{id}/stop": { output: LinkTaskStatusSchema },
|
|
197
223
|
"POST /account/outbox": { input: AccountSendSchema, output: AccountSendOutcomeSchema },
|
|
198
224
|
"GET /account/outbox": { output: AccountOutboxSchema },
|
|
199
225
|
"GET /account/projects": { output: AccountProjectsSchema },
|
|
226
|
+
"GET /account/projects/suggest": { output: AccountProjectsSchema },
|
|
227
|
+
// Routing as a person: the pairings this sandbox keeps for others, and the secrets it holds for itself.
|
|
228
|
+
"POST /account/pairings": { input: PairingMintSchema, output: PairingMintedSchema },
|
|
229
|
+
"GET /account/pairings": { output: PairingsListSchema },
|
|
230
|
+
"DELETE /account/pairings/{from}": { output: OkSchema },
|
|
231
|
+
"POST /account/routes/secret": { input: RouteSecretSchema, output: OkSchema },
|
|
232
|
+
"GET /account/routes": { output: RoutesListSchema },
|
|
233
|
+
// Routing as a person: a drop between daemons, the sending side's loopback send, and the inbox it lands in.
|
|
234
|
+
"POST /account/drop": { input: DropBodySchema, output: DropAcceptedSchema },
|
|
235
|
+
"POST /account/drops": { input: DropSendSchema, output: DropSendOutcomeSchema },
|
|
236
|
+
"GET /account/inbox": { output: ReceivedDropsSchema },
|
|
237
|
+
"GET /account/inbox/{id}": { output: ReceivedDropSchema },
|
|
238
|
+
"GET /account/inbox/{id}/files": { output: DropFilesSchema },
|
|
239
|
+
"POST /account/inbox/{id}/take": { input: DropTakeSchema, output: DropTakenSchema },
|
|
240
|
+
"DELETE /account/inbox/{id}": { output: OkSchema },
|
|
241
|
+
// A read as a person answers what the fleet's own reads answer (GET /fleet…, POST /diagnostics).
|
|
242
|
+
"POST /account/read/diagnostics": { input: DiagnosticsQuerySchema, output: DiagnosticsAnswerSchema },
|
|
243
|
+
"GET /account/read/agents/{handle}/bundle": { output: ConversationBundleSchema },
|
|
200
244
|
// The link doors, as the asking sandbox's daemon reads them. A status takes `?after=<version>&wait=<seconds>` to
|
|
201
245
|
// be held until it moves past that version.
|
|
202
246
|
"GET /link": { output: LinkHelloSchema },
|
|
@@ -249,6 +293,9 @@ export const RAW_JSON_ROUTES = {
|
|
|
249
293
|
// A dropped tree as one tar, extracted entry by entry.
|
|
250
294
|
"POST /workspace/upload-archive": { bytes: true, output: OkSchema },
|
|
251
295
|
"POST /workspace/upload-diff": { input: UploadManifestSchema, output: UploadSkipSchema },
|
|
296
|
+
// One file for a page's file chooser or a drop (`?id=` the uploader's, `&name=` the file's own), in parts like a
|
|
297
|
+
// workspace upload; answered by browser.answerFileChooser or browser.dropFiles naming the id.
|
|
298
|
+
"POST /browser/uploads": { bytes: true, output: OkSchema },
|
|
252
299
|
} as const satisfies Partial<Record<RawRouteKey, RawJsonRoute>>;
|
|
253
300
|
|
|
254
301
|
export type RawJsonRouteKey = keyof typeof RAW_JSON_ROUTES;
|