@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
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import { procedure } from "../protocol/route-meta.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
CiDeploymentAnswerSchema,
|
|
4
|
+
CiDeploymentReportSchema,
|
|
5
|
+
CiFailedStepsResponseSchema,
|
|
6
|
+
CiJobAnnotationsResponseSchema,
|
|
7
|
+
CiJobLogResponseSchema,
|
|
8
|
+
CiJobParamSchema,
|
|
6
9
|
CiJobsResponseSchema,
|
|
7
|
-
|
|
10
|
+
CiLocalMainResponseSchema,
|
|
11
|
+
CiMainLineClaimSchema,
|
|
12
|
+
CiMainLinesResponseSchema,
|
|
13
|
+
CiPassedJobsResponseSchema,
|
|
14
|
+
CiRepairHandOverSchema,
|
|
15
|
+
CiRunListParamSchema,
|
|
16
|
+
CiRunListResponseSchema,
|
|
8
17
|
CiRunParamSchema,
|
|
18
|
+
CiRunResponseSchema,
|
|
9
19
|
CiRunsResponseSchema,
|
|
20
|
+
CiRunWorkflowResponseSchema,
|
|
10
21
|
} from "../schemas/ci.js";
|
|
11
22
|
import { OkSchema } from "../schemas/shared.js";
|
|
12
23
|
|
|
13
|
-
// Pipelines on the workspace repos' github/gitlab remotes
|
|
14
|
-
// on-demand backfill; per-repo webhook warnings ride along);
|
|
15
|
-
//
|
|
16
|
-
// (
|
|
17
|
-
//
|
|
24
|
+
// Pipelines on the workspace repos' github/gitlab remotes: CI ingestion, the core's (docs/architecture/core-and-
|
|
25
|
+
// extensions.md). `runs` serves what the forges report (cache + on-demand backfill; per-repo webhook warnings ride along);
|
|
26
|
+
// `rerun`/`cancel`/`dispatch` proxy to the vendor; the forge reads below them are what the pipelines extension's backend
|
|
27
|
+
// (main's fix agent and the Pipelines board) reads through the core's clients and credentials. (2026-11-26) Main's fix
|
|
28
|
+
// agent, `GET /ci/main`, `POST /ci/failures/forget` and `POST /ci/fix` moved to that backend. The public webhook receiver
|
|
29
|
+
// (/ci/webhook/:host) is a plain Hono route, vendors can't do Google ID tokens, so it lives outside this contract, like
|
|
30
|
+
// /automations/{id}/fire.
|
|
18
31
|
export const ciContract = {
|
|
19
32
|
runs: procedure
|
|
20
33
|
.route({
|
|
@@ -25,18 +38,6 @@ export const ciContract = {
|
|
|
25
38
|
"What the forges are reporting for every workspace repo that has a remote, served from a cache and filled in on demand. Repos whose notifications are not wired up say so.",
|
|
26
39
|
})
|
|
27
40
|
.output(CiRunsResponseSchema),
|
|
28
|
-
// The agent token reaches it (`agents ci`): what an agent meeting a failure asks before blaming itself or re-running
|
|
29
|
-
// main. Read from the CI store alone, never the forge, so any number of agents asking costs no API call.
|
|
30
|
-
main: procedure
|
|
31
|
-
.route({
|
|
32
|
-
method: "GET",
|
|
33
|
-
path: "/ci/main",
|
|
34
|
-
summary: "What main's CI is known to fail on now",
|
|
35
|
-
description:
|
|
36
|
-
"Each job failing on a workspace repository's main line, with the run and commit it last failed in, when the daemon read it, and the failing tests and errors its log named. Answered from the runs already heard, without asking the forge; a main line nothing is known of says so.",
|
|
37
|
-
})
|
|
38
|
-
.meta({ agent: true })
|
|
39
|
-
.output(CiMainResponseSchema),
|
|
40
41
|
rerun: procedure
|
|
41
42
|
.route({
|
|
42
43
|
method: "POST",
|
|
@@ -65,33 +66,114 @@ export const ciContract = {
|
|
|
65
66
|
})
|
|
66
67
|
.input(CiRunParamSchema)
|
|
67
68
|
.output(OkSchema),
|
|
68
|
-
|
|
69
|
+
jobs: procedure
|
|
69
70
|
.route({
|
|
70
71
|
method: "POST",
|
|
71
|
-
path: "/ci/
|
|
72
|
-
summary: "
|
|
72
|
+
path: "/ci/runs/jobs",
|
|
73
|
+
summary: "The steps inside one pipeline run",
|
|
73
74
|
description:
|
|
74
|
-
"
|
|
75
|
+
"Each job in a run with its outcome, which is where you look to find out what actually broke. The jobs as the forge reports them; the Pipelines board draws their graph from the run's workflow file.",
|
|
75
76
|
})
|
|
76
|
-
.input(
|
|
77
|
+
.input(CiRunParamSchema)
|
|
78
|
+
.output(CiJobsResponseSchema),
|
|
79
|
+
// (2026-11-26) The forge's word on one run or job, asked now through the core's client (schemas/ci.ts): what main's
|
|
80
|
+
// fix agent reads of a failure, and the board of a run's graph.
|
|
81
|
+
list: procedure
|
|
82
|
+
.route({ method: "POST", path: "/ci/runs/list", summary: "A repository's newest runs", description: "Its newest runs, asked of the forge now rather than read from the cache." })
|
|
83
|
+
.input(CiRunListParamSchema)
|
|
84
|
+
.output(CiRunListResponseSchema),
|
|
85
|
+
run: procedure
|
|
86
|
+
.route({ method: "POST", path: "/ci/runs/run", summary: "One pipeline run", description: "One run as the forge says it is now." })
|
|
87
|
+
.input(CiRunParamSchema)
|
|
88
|
+
.output(CiRunResponseSchema),
|
|
89
|
+
failedSteps: procedure
|
|
90
|
+
.route({
|
|
91
|
+
method: "POST",
|
|
92
|
+
path: "/ci/runs/failed-steps",
|
|
93
|
+
summary: "The failed jobs of one run",
|
|
94
|
+
description: "Each job of the run that failed, with the steps that failed it, the forge's reason and its runner, in the run's order. A job allowed to fail is none of them.",
|
|
95
|
+
})
|
|
96
|
+
.input(CiRunParamSchema)
|
|
97
|
+
.output(CiFailedStepsResponseSchema),
|
|
98
|
+
passedJobs: procedure
|
|
99
|
+
.route({ method: "POST", path: "/ci/runs/passed-jobs", summary: "The passed jobs of one run", description: "The names of the run's jobs that passed." })
|
|
100
|
+
.input(CiRunParamSchema)
|
|
101
|
+
.output(CiPassedJobsResponseSchema),
|
|
102
|
+
rerunFailed: procedure
|
|
103
|
+
.route({ method: "POST", path: "/ci/runs/rerun-failed", summary: "Run a pipeline's failed jobs again", description: "Asks the forge to re-run only the run's failed jobs." })
|
|
104
|
+
.input(CiRunParamSchema)
|
|
77
105
|
.output(OkSchema),
|
|
78
|
-
|
|
106
|
+
workflow: procedure
|
|
79
107
|
.route({
|
|
80
108
|
method: "POST",
|
|
81
|
-
path: "/ci/runs/
|
|
82
|
-
summary: "The
|
|
83
|
-
description: "
|
|
109
|
+
path: "/ci/runs/workflow",
|
|
110
|
+
summary: "The workflow file a run ran",
|
|
111
|
+
description: "The run's workflow file at its commit and every reusable workflow it calls that could be read: what its job graph is drawn from. Empty on a forge without one.",
|
|
84
112
|
})
|
|
85
113
|
.input(CiRunParamSchema)
|
|
86
|
-
.output(
|
|
87
|
-
|
|
114
|
+
.output(CiRunWorkflowResponseSchema),
|
|
115
|
+
jobLog: procedure
|
|
116
|
+
.route({ method: "POST", path: "/ci/jobs/log", summary: "One job's log", description: "The job's whole log as plain text, asked of the forge now." })
|
|
117
|
+
.input(CiJobParamSchema)
|
|
118
|
+
.output(CiJobLogResponseSchema),
|
|
119
|
+
jobAnnotations: procedure
|
|
120
|
+
.route({ method: "POST", path: "/ci/jobs/annotations", summary: "One job's annotations", description: "What the job's check run annotations say, where the forge has them." })
|
|
121
|
+
.input(CiJobParamSchema)
|
|
122
|
+
.output(CiJobAnnotationsResponseSchema),
|
|
123
|
+
mainLines: procedure
|
|
124
|
+
.route({
|
|
125
|
+
method: "GET",
|
|
126
|
+
path: "/ci/main-lines",
|
|
127
|
+
summary: "Each repository's main line",
|
|
128
|
+
description: "Every repository wired to CI and which branch is its main line: the forge's default branch, else the clone's, else main and master both.",
|
|
129
|
+
})
|
|
130
|
+
.output(CiMainLinesResponseSchema),
|
|
131
|
+
// (2026-11-26) Only an extension's own token: the claim is the calling extension's (ci/main-line-claims.ts).
|
|
132
|
+
claimMainLines: procedure
|
|
133
|
+
.route({
|
|
134
|
+
method: "POST",
|
|
135
|
+
path: "/ci/main-lines/claim",
|
|
136
|
+
summary: "Take main lines' failures for an extension",
|
|
137
|
+
description:
|
|
138
|
+
"While the calling extension holds the claim and is switched on, a main line's failure reaches no CI automation listening on every branch, so the extension's own fix agent is the one agent on it. An extension's own token only.",
|
|
139
|
+
})
|
|
140
|
+
.meta({ control: "never", panel: false })
|
|
141
|
+
.input(CiMainLineClaimSchema)
|
|
142
|
+
.output(OkSchema),
|
|
143
|
+
// (2026-11-26) What main's repair kept while it was the daemon's, handed to the extension taking it over, once.
|
|
144
|
+
handOverRepair: procedure
|
|
145
|
+
.route({
|
|
146
|
+
method: "POST",
|
|
147
|
+
path: "/ci/repair/hand-over",
|
|
148
|
+
summary: "Hand main's repair state to an extension",
|
|
149
|
+
description:
|
|
150
|
+
"What the sandbox kept about main's failing CI before its repair moved into an extension: each failing main line with its fix agent and turn counts, the passes, the fleet re-runs and the owner steps. The fix agents' runs become the calling extension's to hear, and an owner's switch that turned repairs off becomes its own setting of the same name. An extension's own token only.",
|
|
151
|
+
})
|
|
152
|
+
.meta({ control: "never", panel: false })
|
|
153
|
+
.output(CiRepairHandOverSchema),
|
|
154
|
+
// The agent token reaches it (`agents ci`): beside main's CI, which the pipelines extension follows, what this
|
|
155
|
+
// sandbox's own test runs saw fail at main commits (output-cleaners' test outcomes, under the history root).
|
|
156
|
+
localMain: procedure
|
|
157
|
+
.route({
|
|
158
|
+
method: "GET",
|
|
159
|
+
path: "/ci/main/local",
|
|
160
|
+
summary: "What this sandbox's own test runs saw fail at main",
|
|
161
|
+
description:
|
|
162
|
+
"What the test runs recorded on clean trees at main commits saw fail, newest main commit per repository, suites CI does not run included: rows, and the same in words.",
|
|
163
|
+
})
|
|
164
|
+
.meta({ agent: true })
|
|
165
|
+
.output(CiLocalMainResponseSchema),
|
|
166
|
+
// (2026-11-25) A deployment told to the repository's forge (schemas/ci.ts CiDeploymentReportSchema): how the
|
|
167
|
+
// Deployments extension shows a managed stack's deploys on GitHub or GitLab, through the CI board's own connection.
|
|
168
|
+
reportDeployment: procedure
|
|
88
169
|
.route({
|
|
89
170
|
method: "POST",
|
|
90
|
-
path: "/ci/
|
|
91
|
-
summary: "
|
|
171
|
+
path: "/ci/deployments",
|
|
172
|
+
summary: "Tell the forge a commit was deployed",
|
|
92
173
|
description:
|
|
93
|
-
"
|
|
174
|
+
"Shows on the repository's forge that a commit went to an environment and how it is going: a Deployment and its statuses on GitHub, a `deploy/<environment>` commit status on GitLab. A token without the scope is refused in the forge's own words.",
|
|
94
175
|
})
|
|
95
|
-
.
|
|
96
|
-
.
|
|
176
|
+
.meta({ control: "never", panel: false })
|
|
177
|
+
.input(CiDeploymentReportSchema)
|
|
178
|
+
.output(CiDeploymentAnswerSchema),
|
|
97
179
|
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
+
import {
|
|
3
|
+
CiFleetSchema,
|
|
4
|
+
CiRunnerLogsSchema,
|
|
5
|
+
CiRunnerOpResultSchema,
|
|
6
|
+
DeviceCiFleetInputSchema,
|
|
7
|
+
DeviceCiRunnerLogsInputSchema,
|
|
8
|
+
DeviceCiRunnerOpInputSchema,
|
|
9
|
+
DeviceCiRunnerRegisterInputSchema,
|
|
10
|
+
DeviceCiRunnerRemoveInputSchema,
|
|
11
|
+
} from "../schemas/ci-fleet.js";
|
|
12
|
+
|
|
13
|
+
// THE SELF-HOSTED CI RUNNERS ON A CONNECTED COMPUTER (schemas/ci-fleet.ts): what the Pipelines view's Runners section
|
|
14
|
+
// reads and drives. Relayed to the machine's own tools, which check its switches and ask its root fleet service for what
|
|
15
|
+
// needs root; the daemon adds GitHub's side, minting the token a registration or a removal takes through the workspace's
|
|
16
|
+
// GitHub connection and never keeping it. Part of the system contract (system.contract.ts spreads these in), kept in a
|
|
17
|
+
// module of their own as the device boards grow.
|
|
18
|
+
|
|
19
|
+
// The box itself, as every system route: no control token reaches these whatever the floor.
|
|
20
|
+
const systemRoute = procedure.meta({ control: "never" });
|
|
21
|
+
|
|
22
|
+
export const deviceCiRunnerRoutes = {
|
|
23
|
+
deviceCiFleet: systemRoute
|
|
24
|
+
.route({
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: "/system/devices/{id}/ci-runners",
|
|
27
|
+
summary: "The CI runners on one of your devices",
|
|
28
|
+
description:
|
|
29
|
+
"Every self-hosted GitHub Actions runner on a computer you connected: its systemd unit, whether it is running a job and which, whether it is held down and why, and what it is registered to; with the machine's CI fleet service, its shared caches, the test-memory slots it holds for sandboxes and the last pass of its keeper, janitor and prune. Without the fleet service a computer still lists its runners. Needs that computer's \"Run commands\" switch.",
|
|
30
|
+
})
|
|
31
|
+
.meta({ floor: "maintainer", panel: false })
|
|
32
|
+
.input(DeviceCiFleetInputSchema)
|
|
33
|
+
.output(CiFleetSchema),
|
|
34
|
+
// Start, stop, drain, or restart (a drain, then a start); a runner stopped here is held down until a start.
|
|
35
|
+
deviceCiRunnerOp: systemRoute
|
|
36
|
+
.route({
|
|
37
|
+
method: "POST",
|
|
38
|
+
path: "/system/devices/{id}/ci-runners/{name}/ops/{op}",
|
|
39
|
+
summary: "Start, stop, drain or restart a CI runner on one of your devices",
|
|
40
|
+
description:
|
|
41
|
+
"Drives one runner's systemd unit on a computer you connected: `start` and `stop` act now, and `stop` refuses a runner that is running a job; `drain` stops it the moment its job ends, and `restart` drains it and starts it again. A runner stopped from here stays down until it is started from here: the machine's keeper leaves it. Needs that computer's \"Run commands\" switch.",
|
|
42
|
+
})
|
|
43
|
+
.meta({ panel: false })
|
|
44
|
+
.input(DeviceCiRunnerOpInputSchema)
|
|
45
|
+
.output(CiRunnerOpResultSchema),
|
|
46
|
+
// Floored like the actions, though it only reads: a runner's log names the jobs it ran and what they printed.
|
|
47
|
+
deviceCiRunnerLogs: systemRoute
|
|
48
|
+
.route({
|
|
49
|
+
method: "GET",
|
|
50
|
+
path: "/system/devices/{id}/ci-runners/{name}/logs",
|
|
51
|
+
summary: "The recent log of a CI runner on one of your devices",
|
|
52
|
+
description: "The last lines one runner's service printed, oldest first.",
|
|
53
|
+
})
|
|
54
|
+
.meta({ floor: "maintainer", panel: false })
|
|
55
|
+
.input(DeviceCiRunnerLogsInputSchema)
|
|
56
|
+
.output(CiRunnerLogsSchema),
|
|
57
|
+
// The token is minted here for the repository's GitHub remote, handed to the machine and dropped.
|
|
58
|
+
registerDeviceCiRunner: systemRoute
|
|
59
|
+
.route({
|
|
60
|
+
method: "POST",
|
|
61
|
+
path: "/system/devices/{id}/ci-runners",
|
|
62
|
+
summary: "Add a CI runner to one of your devices",
|
|
63
|
+
description:
|
|
64
|
+
"Registers a new self-hosted GitHub Actions runner on a computer you connected, for the GitHub repository a workspace repository's remote names, with the given name and labels. The registration token is minted through this sandbox's GitHub connection, which needs admin on that repository, and is never kept. The computer downloads the runner release, checks it, configures it as the account its other runners run as and starts its unit; this takes minutes. Needs that computer's \"Run commands\" switch and its CI fleet service.",
|
|
65
|
+
})
|
|
66
|
+
.meta({ panel: false })
|
|
67
|
+
.input(DeviceCiRunnerRegisterInputSchema)
|
|
68
|
+
.output(CiRunnerOpResultSchema),
|
|
69
|
+
// Read off the runner's own registration first, so its removal token is minted for the repository it serves.
|
|
70
|
+
removeDeviceCiRunner: systemRoute
|
|
71
|
+
.route({
|
|
72
|
+
method: "DELETE",
|
|
73
|
+
path: "/system/devices/{id}/ci-runners/{name}",
|
|
74
|
+
summary: "Remove a CI runner from one of your devices",
|
|
75
|
+
description:
|
|
76
|
+
"Takes a runner off GitHub and off a computer you connected: the runner is unregistered and its service removed, with a removal token minted through this sandbox's GitHub connection for the repository or organisation the runner is registered to, never kept. Refused while the runner is running a job. Needs that computer's \"Run commands\" switch and its CI fleet service.",
|
|
77
|
+
})
|
|
78
|
+
.meta({ panel: false })
|
|
79
|
+
.input(DeviceCiRunnerRemoveInputSchema)
|
|
80
|
+
.output(CiRunnerOpResultSchema),
|
|
81
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
+
import {
|
|
3
|
+
DeviceHostStatsInputSchema,
|
|
4
|
+
DeviceStackDeployInputSchema,
|
|
5
|
+
DeviceStackDeployResultSchema,
|
|
6
|
+
DeviceStackLogsInputSchema,
|
|
7
|
+
DeviceStackManagedDeployInputSchema,
|
|
8
|
+
DeviceStackManagedDeployResultSchema,
|
|
9
|
+
DeviceStackOpInputSchema,
|
|
10
|
+
DeviceStacksInputSchema,
|
|
11
|
+
DeviceStacksSchema,
|
|
12
|
+
HostStatsSchema,
|
|
13
|
+
StackLogsSchema,
|
|
14
|
+
StackOpResultSchema,
|
|
15
|
+
} from "../schemas/device-stacks.js";
|
|
16
|
+
|
|
17
|
+
// DOCKER COMPOSE STACKS ON A CONNECTED COMPUTER (schemas/device-stacks.ts): what the Deployments board reads and drives
|
|
18
|
+
// where no Komodo stands between, and the managed deploy its engine stands on. Part of the system contract
|
|
19
|
+
// (system.contract.ts spreads these in), kept in a module of their own as the device boards grow.
|
|
20
|
+
|
|
21
|
+
// The box itself, as every system route: no control token reaches these whatever the floor.
|
|
22
|
+
const systemRoute = procedure.meta({ control: "never" });
|
|
23
|
+
|
|
24
|
+
export const deviceStackRoutes = {
|
|
25
|
+
deviceStacks: systemRoute
|
|
26
|
+
.route({
|
|
27
|
+
method: "GET",
|
|
28
|
+
path: "/system/devices/{id}/stacks",
|
|
29
|
+
summary: "The Docker compose stacks on one of your devices",
|
|
30
|
+
description:
|
|
31
|
+
"Every Docker compose project on a computer you connected, with each service's container, image and state, and the folder this sandbox deploys stacks into there. Intentic's own sandboxes are marked rather than left out. Needs that computer's \"Run commands\" switch.",
|
|
32
|
+
})
|
|
33
|
+
.meta({ floor: "maintainer", panel: false })
|
|
34
|
+
.input(DeviceStacksInputSchema)
|
|
35
|
+
.output(DeviceStacksSchema),
|
|
36
|
+
// Up, restart, start, stop, or pull-then-up; nothing here removes a stack or a volume.
|
|
37
|
+
deviceStackOp: systemRoute
|
|
38
|
+
.route({
|
|
39
|
+
method: "POST",
|
|
40
|
+
path: "/system/devices/{id}/stacks/{name}/ops/{op}",
|
|
41
|
+
summary: "Start, stop, restart or update a stack on one of your devices",
|
|
42
|
+
description:
|
|
43
|
+
"Runs `docker compose` for one stack on a computer you connected: `up` applies its files, `pull` fetches newer images and then applies, and `restart`, `start` and `stop` do what they say. Nothing here removes a stack or its volumes. Needs that computer's \"Run commands\" switch.",
|
|
44
|
+
})
|
|
45
|
+
.meta({ panel: false })
|
|
46
|
+
.input(DeviceStackOpInputSchema)
|
|
47
|
+
.output(StackOpResultSchema),
|
|
48
|
+
// Floored like the actions, though it only reads: a log can hold anything the service printed.
|
|
49
|
+
deviceStackLogs: systemRoute
|
|
50
|
+
.route({
|
|
51
|
+
method: "GET",
|
|
52
|
+
path: "/system/devices/{id}/stacks/{name}/logs",
|
|
53
|
+
summary: "The recent log of a stack on one of your devices",
|
|
54
|
+
description: "The last lines every service of one compose stack printed, oldest first, as `docker compose logs` gives them.",
|
|
55
|
+
})
|
|
56
|
+
.meta({ floor: "maintainer", panel: false })
|
|
57
|
+
.input(DeviceStackLogsInputSchema)
|
|
58
|
+
.output(StackLogsSchema),
|
|
59
|
+
// The repository's committed tree, packed here, carried over the device link and brought up there with `--build`.
|
|
60
|
+
deployDeviceStack: systemRoute
|
|
61
|
+
.route({
|
|
62
|
+
method: "POST",
|
|
63
|
+
path: "/system/devices/{id}/stacks/{name}/deploy",
|
|
64
|
+
summary: "Deploy a workspace repository to one of your devices",
|
|
65
|
+
description:
|
|
66
|
+
"Packs the committed tree (HEAD) of a workspace repository, carries it to a computer you connected and runs it there as a Docker compose stack of the given name, building its images on that computer. Uncommitted changes are not deployed. A `.env` already in the stack's folder there is kept: secrets are placed into it by an agent, never sent with a deploy. Needs that computer's \"Run commands\" and \"Run programs this sandbox sends\" switches.",
|
|
67
|
+
})
|
|
68
|
+
.meta({ panel: false })
|
|
69
|
+
.input(DeviceStackDeployInputSchema)
|
|
70
|
+
.output(DeviceStackDeployResultSchema),
|
|
71
|
+
// (2026-11-25) A MANAGED deploy (schemas/device-stacks.ts): the Deployments extension's engine sends the stack's
|
|
72
|
+
// definition with `{{secret:…}}` references, and the daemon fills them under the stack's grant (stack-grants.ts),
|
|
73
|
+
// packs the repository at the commit and relays the machine's deploy. The one door through which a secret's value
|
|
74
|
+
// reaches a server unattended; no value comes back.
|
|
75
|
+
deployManagedDeviceStack: systemRoute
|
|
76
|
+
.route({
|
|
77
|
+
method: "POST",
|
|
78
|
+
path: "/system/devices/{id}/stacks/{name}/deploy-managed",
|
|
79
|
+
summary: "Deploy a managed stack to one of your devices",
|
|
80
|
+
description:
|
|
81
|
+
"Deploys a workspace repository at a commit to a computer you connected as a Docker compose stack, writing its `.env` and registry logins there with the secret values the stack was granted, and waits for it to come up healthy. Refused, naming the secrets, when the stack's grant does not cover one it reads. Needs that computer's \"Run commands\" and \"Run programs this sandbox sends\" switches and an agent that manages stacks.",
|
|
82
|
+
})
|
|
83
|
+
.meta({ floor: "maintainer", panel: false })
|
|
84
|
+
.input(DeviceStackManagedDeployInputSchema)
|
|
85
|
+
.output(DeviceStackManagedDeployResultSchema),
|
|
86
|
+
// Disk, memory and load of a connected computer, for the Deployments monitor's alerts.
|
|
87
|
+
deviceHostStats: systemRoute
|
|
88
|
+
.route({
|
|
89
|
+
method: "GET",
|
|
90
|
+
path: "/system/devices/{id}/host-stats",
|
|
91
|
+
summary: "Disk, memory and load on one of your devices",
|
|
92
|
+
description: "Free space under Docker's data root and the stacks folder, available memory, load and CPU count. Needs that computer's \"Run commands\" switch.",
|
|
93
|
+
})
|
|
94
|
+
.meta({ floor: "maintainer", panel: false })
|
|
95
|
+
.input(DeviceHostStatsInputSchema)
|
|
96
|
+
.output(HostStatsSchema),
|
|
97
|
+
};
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
ExtensionsListSchema,
|
|
18
18
|
ExtensionUpdateActionSchema,
|
|
19
19
|
ExtensionUpdateAppliedSchema,
|
|
20
|
+
ExtensionUpdateDefaultsInputSchema,
|
|
20
21
|
ExtensionUpdatePolicyInputSchema,
|
|
21
22
|
ExtensionUpdatePreviewSchema,
|
|
22
23
|
ExtensionUpdatesCheckedSchema,
|
|
@@ -103,7 +104,7 @@ export const extensionsContract = {
|
|
|
103
104
|
path: "/extensions/{id}/approve",
|
|
104
105
|
summary: "Let a workspace extension run",
|
|
105
106
|
description:
|
|
106
|
-
"Approves an extension written in this workspace with the powers it declares now: its background processes start, its backend loads, and what it contributes is wired from the next turn. Editing its code keeps the approval; declaring a power it did not have puts it back in the pending list. Owner and maintainers only.",
|
|
107
|
+
"Approves an extension written in this workspace with the powers it declares now: its background processes start, its backend loads, and what it contributes is wired from the next turn. Editing its code keeps the approval; declaring a power it did not have puts it back in the pending list. A land approves the extensions it carries by itself, so this is for one written straight into the workspace. Owner and maintainers only.",
|
|
107
108
|
})
|
|
108
109
|
.meta({ panel: false, control: "never" })
|
|
109
110
|
.input(ExtensionApproveInputSchema)
|
|
@@ -190,6 +191,16 @@ export const extensionsContract = {
|
|
|
190
191
|
})
|
|
191
192
|
.input(ExtensionUpdatePolicyInputSchema)
|
|
192
193
|
.output(OkSchema),
|
|
194
|
+
setUpdateDefaults: procedure
|
|
195
|
+
.route({
|
|
196
|
+
method: "POST",
|
|
197
|
+
path: "/extensions/update-policy",
|
|
198
|
+
summary: "Whether extensions update by themselves",
|
|
199
|
+
description:
|
|
200
|
+
"The sandbox's answer for every extension installed from a repository that has no answer of its own. Automatic takes a release with the same powers by itself and leaves one that asks for more to you.",
|
|
201
|
+
})
|
|
202
|
+
.input(ExtensionUpdateDefaultsInputSchema)
|
|
203
|
+
.output(OkSchema),
|
|
193
204
|
// Declared via `contributes.processes`; the terminals list shows each one's log as `svc-ext-<id>-<name>`.
|
|
194
205
|
processStatus: procedure
|
|
195
206
|
.route({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { procedure } from "../protocol/route-meta.js";
|
|
2
2
|
import {
|
|
3
|
+
PortForwardInputSchema,
|
|
3
4
|
PortForwardResultSchema,
|
|
4
|
-
PortParamSchema,
|
|
5
|
-
PortsListSchema,
|
|
6
5
|
PreviewGuardSchema,
|
|
7
6
|
PreviewPassRequestSchema,
|
|
8
7
|
PreviewPassSchema,
|
|
9
8
|
} from "../schemas/ports.js";
|
|
10
9
|
import { OkSchema } from "../schemas/shared.js";
|
|
10
|
+
import { SyncPortsListSchema } from "../schemas/bridge-heads.js";
|
|
11
11
|
|
|
12
12
|
// Listening TCP ports in the sandbox + explicit forwarding through the preview proxy (see the ports section in
|
|
13
13
|
// schemas/ports.ts). `forward` is idempotent, re-forwarding a port returns its existing slot's URL; `unforward`
|
|
@@ -23,16 +23,16 @@ export const portsContract = {
|
|
|
23
23
|
// The desktop-sync watcher's poll, and the machine's check-in; and `devices ports`, an agent's answer to whose
|
|
24
24
|
// server holds which port.
|
|
25
25
|
.meta({ sync: "poll", agent: true })
|
|
26
|
-
.output(
|
|
26
|
+
.output(SyncPortsListSchema),
|
|
27
27
|
forward: procedure
|
|
28
28
|
.route({
|
|
29
29
|
method: "POST",
|
|
30
30
|
path: "/ports/forward",
|
|
31
31
|
summary: "Make a port reachable",
|
|
32
32
|
description:
|
|
33
|
-
"Gives one port an address on the outside. Asking twice is harmless: the second call hands back the address the first one made.",
|
|
33
|
+
"Gives one port an address on the outside. Asking twice is harmless: the second call hands back the address the first one made. Naming a runner forwards that runner's own port, for a conversation that runs there.",
|
|
34
34
|
})
|
|
35
|
-
.input(
|
|
35
|
+
.input(PortForwardInputSchema)
|
|
36
36
|
.output(PortForwardResultSchema),
|
|
37
37
|
unforward: procedure
|
|
38
38
|
.route({
|
|
@@ -41,7 +41,7 @@ export const portsContract = {
|
|
|
41
41
|
summary: "Stop exposing a port",
|
|
42
42
|
description: "Frees the slot at once. The address keeps resolving; it simply stops leading anywhere.",
|
|
43
43
|
})
|
|
44
|
-
.input(
|
|
44
|
+
.input(PortForwardInputSchema)
|
|
45
45
|
.output(OkSchema),
|
|
46
46
|
// The owner's guard on previews (schemas/ports.ts): any member reads it, since the editor asks for a pass only where
|
|
47
47
|
// it is on; only the owner changes it, like the passkey policy.
|
|
@@ -9,6 +9,10 @@ import {
|
|
|
9
9
|
RunnerDefinitionAppliedSchema,
|
|
10
10
|
RunnerFactsSchema,
|
|
11
11
|
RunnerHeldTurnSchema,
|
|
12
|
+
RunnerFeedFrameSchema,
|
|
13
|
+
RunnerPresentationSchema,
|
|
14
|
+
RunnerRevokeSchema,
|
|
15
|
+
RunnerStoppedSchema,
|
|
12
16
|
RunnerSyncLineSchema,
|
|
13
17
|
RunnerSyncSchema,
|
|
14
18
|
RunnerTurnSchema,
|
|
@@ -16,6 +20,17 @@ import {
|
|
|
16
20
|
import { EditorContextSchema } from "../schemas/agent.js";
|
|
17
21
|
import { AgentReplySchema } from "../schemas/providers/plan-limits.js";
|
|
18
22
|
import { OkSchema } from "../schemas/shared.js";
|
|
23
|
+
import {
|
|
24
|
+
BrowserPageActionInputSchema,
|
|
25
|
+
MoveBrowserPageInputSchema,
|
|
26
|
+
ReopenBrowserPageInputSchema,
|
|
27
|
+
BrowserNameParamSchema,
|
|
28
|
+
BrowserPageParamSchema, BrowsersListSchema, DesktopStateSchema, OpenBrowserInputSchema, OpenBrowserResultSchema } from "../schemas/terminal.js";
|
|
29
|
+
import { PortParamSchema } from "../schemas/ports.js";
|
|
30
|
+
import { TurnErrandSchema } from "../schemas/speaker.js";
|
|
31
|
+
|
|
32
|
+
// Files a message names, as bytes: the runner resolves no path of the parent's. `path` is workspace-relative.
|
|
33
|
+
const RunnerFilesSchema = z.array(z.object({ path: z.string().min(1), bytesBase64: z.string() }));
|
|
19
34
|
|
|
20
35
|
// What a runner can be asked, over the socket it opened; same inversion as deviceContract, the runner is the oRPC server,
|
|
21
36
|
// the parent the client. No `.route()`: the procedure path is the address. Typed throughout, unlike deviceContract's
|
|
@@ -37,9 +52,64 @@ export const runnerContract = {
|
|
|
37
52
|
// How many of the held turn's frames the parent has, said every few seconds while it relays them: the count a parent
|
|
38
53
|
// that restarted mid-turn reads on from (`heldTurn().acked`), since its own count died with it.
|
|
39
54
|
ackTurn: oc.input(RunnerAttachSchema).output(OkSchema),
|
|
40
|
-
//
|
|
41
|
-
|
|
42
|
-
//
|
|
55
|
+
// A page a turn here showed (`show_page`), by the workspace path its `page` frame names: the page is filed in the
|
|
56
|
+
// runner's own workspace, and the parent files a copy at the same path before relaying the frame, so the chat, which
|
|
57
|
+
// reads pages from the parent, can draw it. NOT_FOUND for a path that is not a stored page; an older runner lacks the
|
|
58
|
+
// procedure, and its pages stay on the runner.
|
|
59
|
+
readPage: oc.input(z.object({ path: z.string().min(1) })).output(z.object({ html: z.string() })),
|
|
60
|
+
// A picture a turn here showed (a screenshot, a generated image), by the workspace path its tool card names, read from
|
|
61
|
+
// the runner's artifacts folder: the parent files a copy before relaying the card, as it does a page, since the chat
|
|
62
|
+
// reads every picture from the parent and neither the relay nor the branch's push carries that folder. `have` is the
|
|
63
|
+
// sha256 of a file the parent already holds at that path; the answer then carries no bytes when the runner's file is
|
|
64
|
+
// the same. NOT_FOUND for a path outside the artifacts folder or no file there, PAYLOAD_TOO_LARGE past the cap; an
|
|
65
|
+
// older runner lacks the procedure, and its pictures stay on the runner.
|
|
66
|
+
// `conversationId` asks for a file in that conversation's checkout instead (a picture a turn Read from its own tree,
|
|
67
|
+
// `path` relative to the checkout), which the parent files under the artifacts folder's `runner/<id>/`; an older runner
|
|
68
|
+
// ignores it and answers NOT_FOUND, the path being outside its artifacts folder. `offset` and `length` ask for one
|
|
69
|
+
// piece of a file past a socket frame (up to 512 MiB in all), answered with the whole file's `size`; an older runner
|
|
70
|
+
// ignores them and answers the whole file, or PAYLOAD_TOO_LARGE. `have` is compared with the whole file either way.
|
|
71
|
+
// The first piece (offset 0) carries the whole file's `sha256`, which the parent checks the assembled copy against.
|
|
72
|
+
readArtifact: oc
|
|
73
|
+
.input(
|
|
74
|
+
z.object({
|
|
75
|
+
path: z.string().min(1),
|
|
76
|
+
have: z.string().optional(),
|
|
77
|
+
conversationId: z.string().min(1).optional(),
|
|
78
|
+
offset: z.number().int().nonnegative().optional(),
|
|
79
|
+
length: z.number().int().positive().optional(),
|
|
80
|
+
}),
|
|
81
|
+
)
|
|
82
|
+
.output(z.object({ bytesBase64: z.string().optional(), size: z.number().optional(), sha256: z.string().optional() })),
|
|
83
|
+
// The files in the runner's artifacts folder modified within the last `withinMs` (a duration, so neither machine's
|
|
84
|
+
// clock is read against the other's), the person's uploads and pages left out: what a turn here left there (a PDF, a
|
|
85
|
+
// video, a trace), swept home by the parent before it relays the turn's `done` and fetched with `readArtifact`. An
|
|
86
|
+
// older runner lacks the procedure (NOT_FOUND), and those files stay on the runner.
|
|
87
|
+
listArtifacts: oc
|
|
88
|
+
.input(z.object({ withinMs: z.number().int().positive() }))
|
|
89
|
+
.output(z.object({ files: z.array(z.object({ path: z.string().min(1), size: z.number(), mtimeMs: z.number() })) })),
|
|
90
|
+
// One piece of the `index`th video or audio file a stored page here streams (`show_page` media, agent/pages/page-media.ts),
|
|
91
|
+
// served only while the page's manifest verifies under this runner's own key and the file is still the one shown. The
|
|
92
|
+
// parent copies each into its artifacts folder and re-signs the manifest for its copies before filing the page.
|
|
93
|
+
// NOT_FOUND for anything else; an older runner lacks the procedure, and its pages' media plays nowhere, as before.
|
|
94
|
+
readPageMedia: oc
|
|
95
|
+
.input(
|
|
96
|
+
z.object({
|
|
97
|
+
page: z.string().min(1),
|
|
98
|
+
index: z.number().int().nonnegative(),
|
|
99
|
+
offset: z.number().int().nonnegative(),
|
|
100
|
+
length: z.number().int().positive(),
|
|
101
|
+
}),
|
|
102
|
+
)
|
|
103
|
+
// The first piece (offset 0) carries the file's `sha256`, as `readArtifact` does.
|
|
104
|
+
.output(z.object({ bytesBase64: z.string(), size: z.number(), sha256: z.string().optional() })),
|
|
105
|
+
// Returns `applied` rather than throwing: a missing id is an ordinary race, same as local NOT_FOUND. `files` carries
|
|
106
|
+
// the bytes of the files an answer attaches (a question's own-words answer), written at their workspace paths before
|
|
107
|
+
// the answer applies, since the runner resolves no path of the parent's; an older runner ignores it.
|
|
108
|
+
reply: oc.input(AgentReplySchema.and(z.object({ files: RunnerFilesSchema.optional() }))).output(z.object({ applied: z.boolean() })),
|
|
109
|
+
// Attachments/editor context travel uncomposed: the note must build against the runner's own workspace root. `files`
|
|
110
|
+
// carries the bytes of what attachments and mentions name, written before the steer applies. `voice` (default
|
|
111
|
+
// "person"), `outside` and `errand` say whose words they are when not the person's: an agent's message to a working
|
|
112
|
+
// child, a wake, a page's error report. An older runner ignores all four, and takes every steer as the person's.
|
|
43
113
|
steer: oc
|
|
44
114
|
.input(
|
|
45
115
|
z.object({
|
|
@@ -48,11 +118,19 @@ export const runnerContract = {
|
|
|
48
118
|
attachments: z.array(z.string()).optional(),
|
|
49
119
|
mentions: z.array(z.string()).optional(),
|
|
50
120
|
editorContext: EditorContextSchema.optional(),
|
|
121
|
+
voice: z.enum(["person", "sandbox", "agent"]).optional(),
|
|
122
|
+
outside: z.string().optional(),
|
|
123
|
+
errand: TurnErrandSchema.optional(),
|
|
124
|
+
files: RunnerFilesSchema.optional(),
|
|
51
125
|
}),
|
|
52
126
|
)
|
|
53
127
|
.output(z.object({ applied: z.boolean(), invalid: z.string().optional() })),
|
|
54
128
|
// REPLACE semantics: a key the definition omits returns to its default, unlike the owner apply's merge-beside.
|
|
55
129
|
applyDefinition: oc.input(z.object({ toml: z.string() })).output(RunnerDefinitionAppliedSchema),
|
|
130
|
+
// What the runner calls itself on its machine and whose it is, said on every connect and after a rename; the runner
|
|
131
|
+
// keeps it where its machine's `ic sandbox list` reads a sandbox's name. An older runner lacks it (NOT_FOUND), and
|
|
132
|
+
// stays listed by its slug.
|
|
133
|
+
present: oc.input(RunnerPresentationSchema).output(OkSchema),
|
|
56
134
|
// Stop the running turn; the parent's stop button reaching through.
|
|
57
135
|
interrupt: oc.input(RunnerTurnSchema.pick({ conversationId: true })).output(OkSchema),
|
|
58
136
|
// One shell line the parent offloaded (settings `offload`), run against a snapshot of the parent's tree; its output
|
|
@@ -63,4 +141,40 @@ export const runnerContract = {
|
|
|
63
141
|
cancelCommand: oc.input(RunnerCommandSchema.pick({ runId: true })).output(OkSchema),
|
|
64
142
|
// Liveness driven by the parent: keepalive and gone-detection in one.
|
|
65
143
|
ping: oc.output(OkSchema),
|
|
144
|
+
// LIVE VIEWS (2026-11-23): what the parent's editor shows of a conversation running here, beside the views netd carries
|
|
145
|
+
// down the uplink (a terminal, a browser's or the desktop's picture). Each degrades on an older runner, which lacks the
|
|
146
|
+
// procedure (NOT_FOUND): the parent then shows what it has, as before.
|
|
147
|
+
// The stream the parent opens each time this runner connects: every conversation's jobs and watches, then each change,
|
|
148
|
+
// and a word when the browsers or the desktop changed (runner-protocol.ts RunnerFeedFrameSchema).
|
|
149
|
+
feed: oc.output(streamOf(RunnerFeedFrameSchema)),
|
|
150
|
+
// This runner's browser windows, as its own `system.browsers` lists them; the parent namespaces their names.
|
|
151
|
+
browsers: oc.output(BrowsersListSchema),
|
|
152
|
+
// The window acts the parent's browser routes forward for one of this runner's windows, by the runner's own name.
|
|
153
|
+
openBrowser: oc.input(OpenBrowserInputSchema).output(OpenBrowserResultSchema),
|
|
154
|
+
closeBrowser: oc.input(BrowserNameParamSchema).output(OkSchema),
|
|
155
|
+
closeBrowserPage: oc.input(BrowserPageParamSchema).output(OkSchema),
|
|
156
|
+
// This runner's desktop, as its own `system.desktop` says; starts nothing.
|
|
157
|
+
desktop: oc.output(DesktopStateSchema),
|
|
158
|
+
// A person's stops on a runner conversation's card, applied here where the job or watch lives; `stopped` false when
|
|
159
|
+
// nothing was left to stop. Naming no watch disarms them all.
|
|
160
|
+
stopJob: oc.input(z.object({ conversationId: z.string().min(1), jobId: z.string().min(1) })).output(RunnerStoppedSchema),
|
|
161
|
+
stopWatching: oc.input(z.object({ conversationId: z.string().min(1), watchId: z.string().optional() })).output(RunnerStoppedSchema),
|
|
162
|
+
// Whether a port here may be previewed through the parent: something listens on it, reachable on loopback, and it is
|
|
163
|
+
// not a browser's DevTools port. A refusal is answered, with the reason the parent's own forward would give, never
|
|
164
|
+
// thrown: a NOT_FOUND is only ever an older runner without the door.
|
|
165
|
+
vetPort: oc.input(PortParamSchema).output(z.object({ refused: z.string().optional() })),
|
|
166
|
+
// The parent revoked a member's access (or everyone's): the picture sockets and tokens this runner's castd holds are
|
|
167
|
+
// ended, as the parent's own are; the parent's netd already closed every view it carried for them.
|
|
168
|
+
revoke: oc.input(RunnerRevokeSchema).output(OkSchema),
|
|
169
|
+
// A tab's own menu and the strip's drag on one of this runner's windows, by its own name (`system.reopenBrowserPage`,
|
|
170
|
+
// `moveBrowserPage`, `browserPageAction` there): answers the tab acted on or opened, nothing for a move.
|
|
171
|
+
browserTab: oc
|
|
172
|
+
.input(
|
|
173
|
+
z.union([
|
|
174
|
+
ReopenBrowserPageInputSchema.extend({ op: z.literal("reopen") }),
|
|
175
|
+
MoveBrowserPageInputSchema.extend({ op: z.literal("move") }),
|
|
176
|
+
BrowserPageActionInputSchema.extend({ op: z.literal("action") }),
|
|
177
|
+
]),
|
|
178
|
+
)
|
|
179
|
+
.output(OpenBrowserResultSchema.partial()),
|
|
66
180
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
+
import { RunnerOpenViewInputSchema, RunnerViewSchema } from "../schemas/runner-views.js";
|
|
3
|
+
|
|
4
|
+
// What the editor asks about a conversation that runs on one of this sandbox's runners (schemas/runner-views.ts); the
|
|
5
|
+
// runner's own procedures are runner.contract.ts, which only this daemon calls. Withheld from the panel and control
|
|
6
|
+
// tokens: a person opens a view, never a program.
|
|
7
|
+
export const runnersContract = {
|
|
8
|
+
openView: procedure
|
|
9
|
+
.route({
|
|
10
|
+
method: "POST",
|
|
11
|
+
path: "/system/conversations/{conversationId}/runner-view",
|
|
12
|
+
summary: "Open a live view of a conversation's runner",
|
|
13
|
+
description:
|
|
14
|
+
"Where a socket opens onto the terminal, a browser window or the desktop of the runner a conversation runs on, with a one-shot ticket. Maintainers only, for a conversation they may read, while its runner is connected.",
|
|
15
|
+
})
|
|
16
|
+
.meta({ panel: false, control: "never" })
|
|
17
|
+
.input(RunnerOpenViewInputSchema)
|
|
18
|
+
.output(RunnerViewSchema),
|
|
19
|
+
};
|