@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
|
@@ -64,6 +64,35 @@
|
|
|
64
64
|
"answer"
|
|
65
65
|
],
|
|
66
66
|
"type": "object"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"description": "Whether a runner view may open, and for which member (lowercased; absent when the daemon runs without auth), whose\nrevocation then closes it. `reason` says why not, for netd's log.",
|
|
70
|
+
"properties": {
|
|
71
|
+
"allowed": {
|
|
72
|
+
"type": "boolean"
|
|
73
|
+
},
|
|
74
|
+
"answer": {
|
|
75
|
+
"const": "runnerView",
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"member": {
|
|
79
|
+
"type": [
|
|
80
|
+
"string",
|
|
81
|
+
"null"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"reason": {
|
|
85
|
+
"type": [
|
|
86
|
+
"string",
|
|
87
|
+
"null"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": [
|
|
92
|
+
"answer",
|
|
93
|
+
"allowed"
|
|
94
|
+
],
|
|
95
|
+
"type": "object"
|
|
67
96
|
}
|
|
68
97
|
]
|
|
69
98
|
},
|
|
@@ -215,6 +244,26 @@
|
|
|
215
244
|
],
|
|
216
245
|
"type": "object"
|
|
217
246
|
},
|
|
247
|
+
"ParentUplinkConfig": {
|
|
248
|
+
"description": "A runner's uplink to its parent sandbox (2026-11-23): the parent's address (`http(s)://` or `ws(s)://`, its origin is\nwhat counts), this runner's id as the parent enrolled it, and the durable token it presents there. The runner's netd\ndials browser-wire's `RUNNER_UPLINK_PATH` on that origin and serves every stream the parent opens as its own.",
|
|
249
|
+
"properties": {
|
|
250
|
+
"runner": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
},
|
|
253
|
+
"token": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
},
|
|
256
|
+
"url": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"required": [
|
|
261
|
+
"url",
|
|
262
|
+
"runner",
|
|
263
|
+
"token"
|
|
264
|
+
],
|
|
265
|
+
"type": "object"
|
|
266
|
+
},
|
|
218
267
|
"PreviewGuard": {
|
|
219
268
|
"description": "Which preview hosts need the sandbox's pass, and how netd checks one (2026-10-27). netd applies it to requests on\nthe preview port and the tunnel only, never on the machine's loopback port, and never to the outbox (`public-`).\nA covered host lets through a pass that verifies (its cookie taken off before the upstream sees it), the probe, a\nCORS preflight, and the pass's exchange (handed back to Node); a navigation without a pass is handed back for Node's\npage, and anything else is answered 401 by netd itself, without asking Node.",
|
|
220
269
|
"properties": {
|
|
@@ -297,6 +346,34 @@
|
|
|
297
346
|
"to"
|
|
298
347
|
],
|
|
299
348
|
"type": "object"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"description": "A port on one of this sandbox's runners (2026-11-23): netd carries the request down that runner's uplink with\n`NetdHeader::RunnerPort`, and the runner's netd relays it to its own `localhost:<port>`. `frameable` as an\nupstream's. A netd older than it cannot read the answer and refuses its own question.",
|
|
352
|
+
"properties": {
|
|
353
|
+
"frameable": {
|
|
354
|
+
"type": "boolean"
|
|
355
|
+
},
|
|
356
|
+
"port": {
|
|
357
|
+
"format": "uint16",
|
|
358
|
+
"maximum": 65535,
|
|
359
|
+
"minimum": 0,
|
|
360
|
+
"type": "integer"
|
|
361
|
+
},
|
|
362
|
+
"runner": {
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"to": {
|
|
366
|
+
"const": "runner",
|
|
367
|
+
"type": "string"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"required": [
|
|
371
|
+
"to",
|
|
372
|
+
"runner",
|
|
373
|
+
"port",
|
|
374
|
+
"frameable"
|
|
375
|
+
],
|
|
376
|
+
"type": "object"
|
|
300
377
|
}
|
|
301
378
|
]
|
|
302
379
|
},
|
|
@@ -731,6 +808,67 @@
|
|
|
731
808
|
"device"
|
|
732
809
|
],
|
|
733
810
|
"type": "object"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"description": "On a runner: dial this parent's uplink, or stop dialling it with none (2026-11-23). The same config again changes\nnothing. Send only to a netd that told `ParentUplink`: an older one closes the link on a kind it does not know.",
|
|
814
|
+
"properties": {
|
|
815
|
+
"kind": {
|
|
816
|
+
"const": "parentUplink",
|
|
817
|
+
"type": "string"
|
|
818
|
+
},
|
|
819
|
+
"uplink": {
|
|
820
|
+
"anyOf": [
|
|
821
|
+
{
|
|
822
|
+
"$ref": "#/$defs/ParentUplinkConfig"
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"type": "null"
|
|
826
|
+
}
|
|
827
|
+
]
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
"required": [
|
|
831
|
+
"kind"
|
|
832
|
+
],
|
|
833
|
+
"type": "object"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"description": "On a parent: lets the runner `runner` hold an uplink (browser-wire's `RUNNER_UPLINK_PATH`) presenting the token\nwhose SHA-256 is `token_sha256`, as `DeviceUplink` does for a device and in a registry of its own, so a device's\ntoken never opens a runner's uplink (2026-11-23). Send only to a netd that told `RunnerUplinks`.",
|
|
837
|
+
"properties": {
|
|
838
|
+
"kind": {
|
|
839
|
+
"const": "runnerUplink",
|
|
840
|
+
"type": "string"
|
|
841
|
+
},
|
|
842
|
+
"runner": {
|
|
843
|
+
"type": "string"
|
|
844
|
+
},
|
|
845
|
+
"tokenSha256": {
|
|
846
|
+
"type": "string"
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
"required": [
|
|
850
|
+
"kind",
|
|
851
|
+
"runner",
|
|
852
|
+
"tokenSha256"
|
|
853
|
+
],
|
|
854
|
+
"type": "object"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"description": "Withdraws `runner`'s registration: its uplink is closed with browser-wire's `RUNNER_UPLINK_WITHDRAWN` and a later\ndial refused.",
|
|
858
|
+
"properties": {
|
|
859
|
+
"kind": {
|
|
860
|
+
"const": "runnerWithdraw",
|
|
861
|
+
"type": "string"
|
|
862
|
+
},
|
|
863
|
+
"runner": {
|
|
864
|
+
"type": "string"
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
"required": [
|
|
868
|
+
"kind",
|
|
869
|
+
"runner"
|
|
870
|
+
],
|
|
871
|
+
"type": "object"
|
|
734
872
|
}
|
|
735
873
|
],
|
|
736
874
|
"title": "FromNode"
|
|
@@ -738,7 +876,8 @@
|
|
|
738
876
|
"headers": [
|
|
739
877
|
"x-intentic-preview",
|
|
740
878
|
"x-intentic-preview-unreachable",
|
|
741
|
-
"x-intentic-listener"
|
|
879
|
+
"x-intentic-listener",
|
|
880
|
+
"x-intentic-runner-port"
|
|
742
881
|
],
|
|
743
882
|
"toNode": {
|
|
744
883
|
"$defs": {
|
|
@@ -829,6 +968,31 @@
|
|
|
829
968
|
],
|
|
830
969
|
"type": "object"
|
|
831
970
|
},
|
|
971
|
+
{
|
|
972
|
+
"description": "A person's view of a runner asking to open through `RUNNER_VIEW_PATH` (2026-11-23): the runner, the path it asks\nfor on the runner (one of netd's allowlist: `/system/terminal`, `/system/browser-view`, `/system/desktop-view`),\nand its query string as the browser sent it, ticket included. Node redeems the ticket it minted for exactly that\nrunner, view and session, and answers `RunnerView`; anything else (a refusal, an older Node) refuses the view.",
|
|
973
|
+
"properties": {
|
|
974
|
+
"path": {
|
|
975
|
+
"type": "string"
|
|
976
|
+
},
|
|
977
|
+
"query": {
|
|
978
|
+
"type": "string"
|
|
979
|
+
},
|
|
980
|
+
"question": {
|
|
981
|
+
"const": "runnerView",
|
|
982
|
+
"type": "string"
|
|
983
|
+
},
|
|
984
|
+
"runner": {
|
|
985
|
+
"type": "string"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"required": [
|
|
989
|
+
"question",
|
|
990
|
+
"runner",
|
|
991
|
+
"path",
|
|
992
|
+
"query"
|
|
993
|
+
],
|
|
994
|
+
"type": "object"
|
|
995
|
+
},
|
|
832
996
|
{
|
|
833
997
|
"description": "Whether Node's event loop turns, and how fast: answered `pong` at once, by the link itself. netd sends one\nevery 2 s once the previous one is answered, and reports the round trip as the vitals' lag. An older Node answers\nwith a refusal, or with an answer netd cannot read, and either still counts as answered.",
|
|
834
998
|
"properties": {
|
|
@@ -844,6 +1008,22 @@
|
|
|
844
1008
|
}
|
|
845
1009
|
]
|
|
846
1010
|
},
|
|
1011
|
+
"RunnerUplinkState": {
|
|
1012
|
+
"description": "A registered runner's uplink as a parent's netd holds it.",
|
|
1013
|
+
"properties": {
|
|
1014
|
+
"connected": {
|
|
1015
|
+
"type": "boolean"
|
|
1016
|
+
},
|
|
1017
|
+
"runner": {
|
|
1018
|
+
"type": "string"
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
"required": [
|
|
1022
|
+
"runner",
|
|
1023
|
+
"connected"
|
|
1024
|
+
],
|
|
1025
|
+
"type": "object"
|
|
1026
|
+
},
|
|
847
1027
|
"TunnelRefusal": {
|
|
848
1028
|
"description": "Why netd stopped dialling the ingress at its usual pace, past an ordinary drop it redials at once.",
|
|
849
1029
|
"oneOf": [
|
|
@@ -1042,6 +1222,49 @@
|
|
|
1042
1222
|
"uplinks"
|
|
1043
1223
|
],
|
|
1044
1224
|
"type": "object"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"description": "On a runner: where its uplink to the parent stands, told on every change and again to each Node that says hello,\nconfigured or not (2026-11-23). `reason` says why it is not held. It is how a Node knows this netd dials parents\nat all: a Node sends `FromNode::ParentUplink` only to a netd that told it. An older Node ignores it.",
|
|
1228
|
+
"properties": {
|
|
1229
|
+
"connected": {
|
|
1230
|
+
"type": "boolean"
|
|
1231
|
+
},
|
|
1232
|
+
"kind": {
|
|
1233
|
+
"const": "parentUplink",
|
|
1234
|
+
"type": "string"
|
|
1235
|
+
},
|
|
1236
|
+
"reason": {
|
|
1237
|
+
"type": [
|
|
1238
|
+
"string",
|
|
1239
|
+
"null"
|
|
1240
|
+
]
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
"required": [
|
|
1244
|
+
"kind",
|
|
1245
|
+
"connected"
|
|
1246
|
+
],
|
|
1247
|
+
"type": "object"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"description": "On a parent: every runner registered with `FromNode::RunnerUplink` and whether its uplink is up, told whole on\nevery change and again to each Node that says hello, as `DeviceUplinks` is (2026-11-23).",
|
|
1251
|
+
"properties": {
|
|
1252
|
+
"kind": {
|
|
1253
|
+
"const": "runnerUplinks",
|
|
1254
|
+
"type": "string"
|
|
1255
|
+
},
|
|
1256
|
+
"uplinks": {
|
|
1257
|
+
"items": {
|
|
1258
|
+
"$ref": "#/$defs/RunnerUplinkState"
|
|
1259
|
+
},
|
|
1260
|
+
"type": "array"
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
"required": [
|
|
1264
|
+
"kind",
|
|
1265
|
+
"uplinks"
|
|
1266
|
+
],
|
|
1267
|
+
"type": "object"
|
|
1045
1268
|
}
|
|
1046
1269
|
],
|
|
1047
1270
|
"title": "ToNode"
|
|
@@ -4,7 +4,7 @@ export type Answer = { "answer": "preview", route: PreviewRoute, } | { "answer":
|
|
|
4
4
|
/**
|
|
5
5
|
* The member whose ticket opened it, lowercased; absent when the daemon runs without auth.
|
|
6
6
|
*/
|
|
7
|
-
member?: string, } | { "answer": "pong" };
|
|
7
|
+
member?: string, } | { "answer": "pong" } | { "answer": "runnerView", allowed: boolean, member?: string, reason?: string, };
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* A PEM certificate chain and its PEM private key.
|
|
@@ -31,7 +31,7 @@ export type FromNode = { "kind": "hello", build: string, pid: number, generation
|
|
|
31
31
|
* run it (2026-11-11). netd dials nothing until Node sends a tunnel again, and tells Node `Superseded` rather than
|
|
32
32
|
* a plain "off". A netd older than it reads the frame as a bare stand-down, which stops dialling all the same.
|
|
33
33
|
*/
|
|
34
|
-
superseded?: string, } | { "kind": "ask", id: number, question: NetdQuestion, } | { "kind": "answer", id: number, answer: Answer, } | { "kind": "refused", id: number, message: string, } | { "kind": "revoke", member?: string, } | { "kind": "watch", checkout: WatchedCheckout, } | { "kind": "unwatch", dir: string, } | { "kind": "deviceUplink", device: string, tokenSha256: string, } | { "kind": "deviceWithdraw", device: string, };
|
|
34
|
+
superseded?: string, } | { "kind": "ask", id: number, question: NetdQuestion, } | { "kind": "answer", id: number, answer: Answer, } | { "kind": "refused", id: number, message: string, } | { "kind": "revoke", member?: string, } | { "kind": "watch", checkout: WatchedCheckout, } | { "kind": "unwatch", dir: string, } | { "kind": "deviceUplink", device: string, tokenSha256: string, } | { "kind": "deviceWithdraw", device: string, } | { "kind": "parentUplink", uplink?: ParentUplinkConfig, } | { "kind": "runnerUplink", runner: string, tokenSha256: string, } | { "kind": "runnerWithdraw", runner: string, };
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Every port netd binds, as Node's config names them; an absent one is not bound.
|
|
@@ -61,7 +61,7 @@ export type NetdAnswer = { "answer": "sync", generations: Array<number | null>,
|
|
|
61
61
|
* Request headers only netd sets on what it forwards to Node; it strips them from everything arriving outside.
|
|
62
62
|
* Exported as a literal type, so a Node constant naming one that drifts from this spelling fails to compile.
|
|
63
63
|
*/
|
|
64
|
-
export type NetdHeader = "x-intentic-preview" | "x-intentic-preview-unreachable" | "x-intentic-listener";
|
|
64
|
+
export type NetdHeader = "x-intentic-preview" | "x-intentic-preview-unreachable" | "x-intentic-listener" | "x-intentic-runner-port";
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* A question Node asks netd.
|
|
@@ -73,6 +73,13 @@ export type NetdQuestion = { "question": "sync", dirs: Array<string>, };
|
|
|
73
73
|
*/
|
|
74
74
|
export type Page = { status: number, headers: { [key in string]: string }, body: string, };
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* A runner's uplink to its parent sandbox (2026-11-23): the parent's address (`http(s)://` or `ws(s)://`, its origin is
|
|
78
|
+
* what counts), this runner's id as the parent enrolled it, and the durable token it presents there. The runner's netd
|
|
79
|
+
* dials browser-wire's `RUNNER_UPLINK_PATH` on that origin and serves every stream the parent opens as its own.
|
|
80
|
+
*/
|
|
81
|
+
export type ParentUplinkConfig = { url: string, runner: string, token: string, };
|
|
82
|
+
|
|
76
83
|
/**
|
|
77
84
|
* Which preview hosts need the sandbox's pass, and how netd checks one (2026-10-27). netd applies it to requests on
|
|
78
85
|
* the preview port and the tunnel only, never on the machine's loopback port, and never to the outbox (`public-`).
|
|
@@ -106,12 +113,17 @@ passPath: string, };
|
|
|
106
113
|
/**
|
|
107
114
|
* What becomes of a preview host's request, decided by Node once, when asked.
|
|
108
115
|
*/
|
|
109
|
-
export type PreviewRoute = { "to": "upstream", upstream: Upstream, } | { "to": "page", page: Page, } | { "to": "outbox" };
|
|
116
|
+
export type PreviewRoute = { "to": "upstream", upstream: Upstream, } | { "to": "page", page: Page, } | { "to": "outbox" } | { "to": "runner", runner: string, port: number, frameable: boolean, };
|
|
110
117
|
|
|
111
118
|
/**
|
|
112
119
|
* A question netd asks Node.
|
|
113
120
|
*/
|
|
114
|
-
export type Question = { "question": "preview", host: string, probe: boolean, } | { "question": "terminal", query: string, } | { "question": "ping" };
|
|
121
|
+
export type Question = { "question": "preview", host: string, probe: boolean, } | { "question": "terminal", query: string, } | { "question": "runnerView", runner: string, path: string, query: string, } | { "question": "ping" };
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* A registered runner's uplink as a parent's netd holds it.
|
|
125
|
+
*/
|
|
126
|
+
export type RunnerUplinkState = { runner: string, connected: boolean, };
|
|
115
127
|
|
|
116
128
|
export type Scheme = "http" | "https";
|
|
117
129
|
|
|
@@ -123,7 +135,7 @@ export type TerminalPlan = { "plan": "session", name: string, createIn?: string,
|
|
|
123
135
|
/**
|
|
124
136
|
* Everything netd sends Node.
|
|
125
137
|
*/
|
|
126
|
-
export type ToNode = { "kind": "ask", id: number, question: Question, } | { "kind": "answer", id: number, answer: NetdAnswer, } | { "kind": "refused", id: number, message: string, } | { "kind": "tunnel", connected: boolean, reason?: string, refused?: TunnelRefusal, } | { "kind": "hiddenLine", session: string, prompt: string, value: string, } | { "kind": "deviceUplinks", uplinks: Array<DeviceUplinkState>, };
|
|
138
|
+
export type ToNode = { "kind": "ask", id: number, question: Question, } | { "kind": "answer", id: number, answer: NetdAnswer, } | { "kind": "refused", id: number, message: string, } | { "kind": "tunnel", connected: boolean, reason?: string, refused?: TunnelRefusal, } | { "kind": "hiddenLine", session: string, prompt: string, value: string, } | { "kind": "deviceUplinks", uplinks: Array<DeviceUplinkState>, } | { "kind": "parentUplink", connected: boolean, reason?: string, } | { "kind": "runnerUplinks", uplinks: Array<RunnerUplinkState>, };
|
|
127
139
|
|
|
128
140
|
/**
|
|
129
141
|
* The ingress tunnel's door, the reachability grant it presents there, and the daemon's transfer routes it announces
|
|
@@ -23,6 +23,11 @@ import {
|
|
|
23
23
|
MEDIA_TOKEN_GRACE_SECONDS,
|
|
24
24
|
RTC_CHANNELS,
|
|
25
25
|
RTC_MESSAGE_MAX,
|
|
26
|
+
RUNNER_HEADER,
|
|
27
|
+
RUNNER_UPLINK_CLOSE_CODES,
|
|
28
|
+
RUNNER_UPLINK_PATH,
|
|
29
|
+
RUNNER_VIEW_PATH,
|
|
30
|
+
RUNNER_VIEW_TICKET,
|
|
26
31
|
TERMINAL_PATH,
|
|
27
32
|
WEBTRANSPORT_PATH,
|
|
28
33
|
} from "./browser-wire.js";
|
|
@@ -75,6 +80,7 @@ const browser = manifest("browser-wire") as {
|
|
|
75
80
|
socketDir: string;
|
|
76
81
|
closeCodes: Record<string, number>;
|
|
77
82
|
};
|
|
83
|
+
runner: { uplinkPath: string; header: string; viewPath: string; viewTicket: string; closeCodes: Record<string, number> };
|
|
78
84
|
edge: { verdictHeader: string; verdicts: { oneOf: { const: string }[] } };
|
|
79
85
|
terminal: { path: string; upgrade: string };
|
|
80
86
|
vitals: { path: string; file: string; body: { $defs: { NodeLink: { oneOf: { const: string }[] } } } };
|
|
@@ -161,6 +167,16 @@ describe("the wire outside oRPC, as the Rust crates define it", () => {
|
|
|
161
167
|
expect<Record<string, number>>(DEVICE_UPLINK_CLOSE_CODES).toEqual(browser.device.closeCodes);
|
|
162
168
|
});
|
|
163
169
|
|
|
170
|
+
it("dials a runner's uplink and opens a runner's views where browser-wire says", () => {
|
|
171
|
+
expect({ uplink: RUNNER_UPLINK_PATH, header: RUNNER_HEADER, view: RUNNER_VIEW_PATH, ticket: RUNNER_VIEW_TICKET }).toEqual({
|
|
172
|
+
uplink: browser.runner.uplinkPath,
|
|
173
|
+
header: browser.runner.header,
|
|
174
|
+
view: browser.runner.viewPath,
|
|
175
|
+
ticket: browser.runner.viewTicket,
|
|
176
|
+
});
|
|
177
|
+
expect<Record<string, number>>(RUNNER_UPLINK_CLOSE_CODES).toEqual(browser.runner.closeCodes);
|
|
178
|
+
});
|
|
179
|
+
|
|
164
180
|
it("finds netd's vitals where browser-wire says it answers them, in the states it names", () => {
|
|
165
181
|
expect(VITALS_PATH).toBe(browser.vitals.path);
|
|
166
182
|
expect(VITALS_FILE).toBe(browser.vitals.file);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createHash, createPrivateKey, createPublicKey, sign, verify } from "node:crypto";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import type { KeyringKeyPair } from "../keyring-seal.js";
|
|
4
|
+
|
|
5
|
+
/* A SANDBOX'S YES TO ONE COMMAND RUN AS ADMINISTRATOR (2026-11-23). run_command's `admin` runs a command through
|
|
6
|
+
intentic-remoted's Windows service, which starts it with the signed-in person's administrator token and no UAC prompt.
|
|
7
|
+
The service runs one only with a grant the sandbox signed once the owner's card was answered (or the conversation's
|
|
8
|
+
auto-approve mark answered it), checked against the sandbox signing keys pinned when the service was installed with an
|
|
9
|
+
administrator's yes: a program of the person's can reach the service's pipe, but cannot sign a grant, so the service
|
|
10
|
+
is no silent way to administrator for anything else on that computer.
|
|
11
|
+
|
|
12
|
+
The key is the sandbox's keyring signing pair (secrets/device/keyring-keys.ts, published at GET /keyring/keys), under
|
|
13
|
+
a domain of its own so a keyring grant can never be read as this one, or this one as a keyring grant. The grant names
|
|
14
|
+
the command by its SHA-256 alone; the service also holds the PowerShell invocation around it to the one the machine
|
|
15
|
+
agent makes, so nothing else rides on it. One use (its nonce), five minutes at most. intentic-remoted's
|
|
16
|
+
`src/service/admin.rs` verifies exactly these bytes. */
|
|
17
|
+
|
|
18
|
+
export const ADMIN_GRANT_DOMAIN = "intentic-admin-run/grant/v1\0";
|
|
19
|
+
export const ADMIN_GRANT_TTL_MS = 5 * 60_000;
|
|
20
|
+
|
|
21
|
+
const BASE64URL = /^[A-Za-z0-9_-]+$/u;
|
|
22
|
+
|
|
23
|
+
export const AdminRunGrantSchema = z.object({
|
|
24
|
+
kind: z.literal("admin-run"),
|
|
25
|
+
commandSha256: z.string().regex(/^[0-9a-f]{64}$/u).describe("The command's SHA-256, lowercase hex, over its UTF-8 text."),
|
|
26
|
+
nonce: z.string().regex(/^[A-Za-z0-9_-]{22}$/u).describe("16 random bytes, base64url: a grant runs once."),
|
|
27
|
+
issuedAt: z.int(),
|
|
28
|
+
expiresAt: z.int(),
|
|
29
|
+
});
|
|
30
|
+
export type AdminRunGrant = z.infer<typeof AdminRunGrantSchema>;
|
|
31
|
+
|
|
32
|
+
export const SignedAdminRunGrantSchema = z.object({
|
|
33
|
+
payload: z.string().regex(BASE64URL).max(4096).describe("The grant's JSON, base64url."),
|
|
34
|
+
sig: z.string().regex(/^[A-Za-z0-9_-]{86}$/u).describe("The sandbox's Ed25519 signature over the domain and the payload, base64url."),
|
|
35
|
+
});
|
|
36
|
+
export type SignedAdminRunGrant = z.infer<typeof SignedAdminRunGrantSchema>;
|
|
37
|
+
|
|
38
|
+
/** The command's digest a grant names. Pure. */
|
|
39
|
+
export const commandSha256 = (command: string): string => createHash("sha256").update(command, "utf8").digest("hex");
|
|
40
|
+
|
|
41
|
+
const signedBytes = (payload: Buffer): Buffer => Buffer.concat([Buffer.from(ADMIN_GRANT_DOMAIN, "utf8"), payload]);
|
|
42
|
+
|
|
43
|
+
/** Signs a grant for `command` with the sandbox's signing pair, living `ttlMs` from `nowMs`. */
|
|
44
|
+
export const signAdminGrant = (pair: KeyringKeyPair, command: string, nonce: string, nowMs: number, ttlMs: number = ADMIN_GRANT_TTL_MS): SignedAdminRunGrant => {
|
|
45
|
+
if (ttlMs <= 0 || ttlMs > ADMIN_GRANT_TTL_MS) {
|
|
46
|
+
throw new Error(`an administrator grant lives at most ${String(ADMIN_GRANT_TTL_MS / 1000)} s`);
|
|
47
|
+
}
|
|
48
|
+
const body = AdminRunGrantSchema.parse({ kind: "admin-run", commandSha256: commandSha256(command), nonce, issuedAt: nowMs, expiresAt: nowMs + ttlMs });
|
|
49
|
+
const payload = Buffer.from(JSON.stringify(body), "utf8");
|
|
50
|
+
const key = createPrivateKey({ key: { kty: "OKP", crv: "Ed25519", x: pair.publicKey, d: pair.privateKey }, format: "jwk" });
|
|
51
|
+
return { payload: payload.toString("base64url"), sig: sign(null, signedBytes(payload), key).toString("base64url") };
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** Whether `signed` is the holder of `publicKey`'s grant for `command`, live at `nowMs`. The service's own check, for tests and tools. */
|
|
55
|
+
export const adminGrantHolds = (publicKey: string, signed: SignedAdminRunGrant, command: string, nowMs: number): boolean => {
|
|
56
|
+
const payload = Buffer.from(signed.payload, "base64url");
|
|
57
|
+
const key = createPublicKey({ key: { kty: "OKP", crv: "Ed25519", x: publicKey }, format: "jwk" });
|
|
58
|
+
if (!verify(null, signedBytes(payload), key, Buffer.from(signed.sig, "base64url"))) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
const grant = AdminRunGrantSchema.safeParse(JSON.parse(payload.toString("utf8")));
|
|
62
|
+
return (
|
|
63
|
+
grant.success &&
|
|
64
|
+
grant.data.commandSha256 === commandSha256(command) &&
|
|
65
|
+
grant.data.expiresAt > grant.data.issuedAt &&
|
|
66
|
+
grant.data.expiresAt - grant.data.issuedAt <= ADMIN_GRANT_TTL_MS &&
|
|
67
|
+
nowMs <= grant.data.expiresAt
|
|
68
|
+
);
|
|
69
|
+
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
// A held item is dated this far out (an ordinary scheduledAt), to catch a mis-click before it's public.
|
|
2
2
|
export const APPROVAL_HOLD_MS = 60_000;
|
|
3
3
|
|
|
4
|
-
// Platforms reachable by a stored API credential alone; the rest need a turn to drive the logged-in browser.
|
|
5
|
-
export const DIRECT_PUBLISH_PLATFORMS: ReadonlySet<string> = new Set(["discord"]);
|
|
6
|
-
|
|
7
4
|
// The workspace-relative directory both prompts below name, spelled once.
|
|
8
5
|
const APPROVALS_DIR = ".intentic/config/approvals";
|
|
9
6
|
|
|
@@ -16,9 +13,17 @@ const WRITE_BACK = [
|
|
|
16
13
|
`owner can act on, then move to the next one instead of retrying in a loop.`,
|
|
17
14
|
];
|
|
18
15
|
|
|
16
|
+
// What a platform's own extension says a publishing turn should know about posting there (a card's `channel.posting`,
|
|
17
|
+
// 2026-11-26): the Reddit rule that a comment's permalink nests the reply under that comment lived here until then.
|
|
18
|
+
export interface PostingNote {
|
|
19
|
+
// The platform as its card names it ("Reddit").
|
|
20
|
+
readonly platform: string;
|
|
21
|
+
readonly note: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
// Names the files directly rather than saying "go look": the daemon already decided what's due, and a re-deriving turn
|
|
20
25
|
// could disagree. Writes the outcome back into the same file, since that's where the queue reads it.
|
|
21
|
-
export const publishTurnPrompt = (posts: readonly { readonly id: string; readonly platform: string }[]): string =>
|
|
26
|
+
export const publishTurnPrompt = (posts: readonly { readonly id: string; readonly platform: string }[], notes: readonly PostingNote[] = []): string =>
|
|
22
27
|
[
|
|
23
28
|
`Publish these approved posts, which are due now. They live in ${APPROVALS_DIR}/, one JSON file each:`,
|
|
24
29
|
``,
|
|
@@ -29,10 +34,10 @@ export const publishTurnPrompt = (posts: readonly { readonly id: string; readonl
|
|
|
29
34
|
` ${WRITE_BACK[1]}`,
|
|
30
35
|
`2. Post exactly its "content": with its "title", "target" and "media", using that platform's skill.`,
|
|
31
36
|
` A "target" that is a URL means this post is a REPLY to whatever is at it: open that exact URL and`,
|
|
32
|
-
` reply where it lands
|
|
33
|
-
` nest under that comment rather than becoming a new top-level comment on the thread.`,
|
|
37
|
+
` reply where it lands, under the one comment it names if it names one.`,
|
|
34
38
|
`3. ${WRITE_BACK[2]} ${WRITE_BACK[3]}`,
|
|
35
39
|
` ${WRITE_BACK[4]}`,
|
|
40
|
+
...(notes.length === 0 ? [] : [``, `What each platform's own extension adds:`, ...notes.map(({ platform, note }) => `- ${platform}: ${note}`)]),
|
|
36
41
|
``,
|
|
37
42
|
`Never rewrite the content: the owner approved these exact words. Never touch a file not listed above.`,
|
|
38
43
|
].join(`\n`);
|
package/src/policy/batch-runs.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { STATE_DIR } from "@intentic/constants";
|
|
2
|
-
import type
|
|
2
|
+
import { jobFields, type ModelRole } from "../models/model-roles.js";
|
|
3
3
|
|
|
4
4
|
// One batch run engine for every surface that fans an isolated agent turn out over items and reads results off disk.
|
|
5
5
|
// Backed by files, not a pack's own store, with derived conversation ids that join the fleet via a GET /agents filter,
|
|
@@ -102,7 +102,7 @@ export const batchTurnBody = (params: {
|
|
|
102
102
|
conversationId: params.conversationId,
|
|
103
103
|
isolated: true,
|
|
104
104
|
unattended: true,
|
|
105
|
-
|
|
105
|
+
...jobFields(params.role),
|
|
106
106
|
...(params.pick === undefined ? {} : runPickFields(params.pick)),
|
|
107
107
|
...params.extra,
|
|
108
108
|
});
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { CapabilityContributionSchema } from "@intentic/extension-manifest";
|
|
2
|
+
import { RunnableProvidersSchema } from "../../contracts/providers.contract.js";
|
|
3
|
+
import { CapabilityKindSchema } from "../../schemas/capabilities.js";
|
|
4
|
+
import { HubCardKindSchema } from "../../schemas/connection-hub.js";
|
|
5
|
+
import { REACHABLE_CREDENTIAL_KINDS } from "../../schemas/members.js";
|
|
6
|
+
import {
|
|
7
|
+
CAPABILITY_KIND_TRAITS,
|
|
8
|
+
ENDPOINT_KINDS,
|
|
9
|
+
isKindOf,
|
|
10
|
+
isPeerKind,
|
|
11
|
+
kindsWhere,
|
|
12
|
+
PEER_KINDS,
|
|
13
|
+
SANDBOX_BROWSER_KINDS,
|
|
14
|
+
traitsOf,
|
|
15
|
+
} from "./capability-kinds.js";
|
|
16
|
+
import { MCP_SERVER_MINTING_KINDS } from "../reserved-servers.js";
|
|
17
|
+
import { isSignedInAccount } from "../role-capability.js";
|
|
18
|
+
|
|
19
|
+
// Sorted, so a pin reads as a list and order never decides a match.
|
|
20
|
+
const sorted = (kinds: Iterable<string>): string[] => [...kinds].toSorted();
|
|
21
|
+
const where = (test: Parameters<typeof kindsWhere>[0]): string[] => sorted(kindsWhere(test));
|
|
22
|
+
|
|
23
|
+
test("the table has one row per kind, in the enum's order", () => {
|
|
24
|
+
expect(Object.keys(CAPABILITY_KIND_TRAITS)).toEqual(CapabilityKindSchema.options);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// Each pin is the hand-kept list the trait replaced, as it stood on 2026-11-23: a change here is a behaviour change.
|
|
28
|
+
test("every derived set matches the list it replaced", () => {
|
|
29
|
+
expect(where((t) => t.reachable)).toEqual(
|
|
30
|
+
sorted(["cli", "mcp", "browser", "identity", "ssh", "device", "phone", "webext", "plugin", "extension", "fleet", "link"]),
|
|
31
|
+
);
|
|
32
|
+
expect(sorted(REACHABLE_CREDENTIAL_KINDS)).toEqual(where((t) => t.reachable));
|
|
33
|
+
expect(where((t) => t.signedInAccount)).toEqual(sorted(["browser", "identity", "webext"]));
|
|
34
|
+
expect(where((t) => t.sandboxBrowser)).toEqual(sorted(["browser", "identity"]));
|
|
35
|
+
expect(where((t) => t.credentialMount)).toEqual(sorted(["browser", "identity", "mcp"]));
|
|
36
|
+
expect(where((t) => t.turnStartMount)).toEqual(sorted(["browser", "identity", "device", "webext", "phone", "mcp", "agent", "plugin"]));
|
|
37
|
+
expect(where((t) => t.tunnel)).toEqual(sorted(["vpn", "exit", "netdisk"]));
|
|
38
|
+
expect(where((t) => t.mintsServer)).toEqual(sorted(["mcp", "link"]));
|
|
39
|
+
expect(where((t) => t.provider === "endpoint")).toEqual(sorted(["endpoint", "localmodel"]));
|
|
40
|
+
expect(where((t) => t.provider === "agent")).toEqual(["agent"]);
|
|
41
|
+
expect(Object.fromEntries(kindsWhere((t) => t.peer !== undefined).map((kind) => [kind, traitsOf(kind)?.peer]))).toEqual({
|
|
42
|
+
device: "hosts",
|
|
43
|
+
webext: "webext",
|
|
44
|
+
phone: "phones",
|
|
45
|
+
});
|
|
46
|
+
expect(Object.fromEntries(CapabilityKindSchema.options.map((kind) => [kind, CAPABILITY_KIND_TRAITS[kind].group]))).toEqual({
|
|
47
|
+
mcp: "services",
|
|
48
|
+
cli: "services",
|
|
49
|
+
plugin: "services",
|
|
50
|
+
extension: "services",
|
|
51
|
+
agent: "services",
|
|
52
|
+
wallet: "services",
|
|
53
|
+
identity: "accounts",
|
|
54
|
+
browser: "accounts",
|
|
55
|
+
webext: "accounts",
|
|
56
|
+
device: "machines",
|
|
57
|
+
phone: "machines",
|
|
58
|
+
ssh: "machines",
|
|
59
|
+
docker: "machines",
|
|
60
|
+
link: "sandboxes",
|
|
61
|
+
fleet: "sandboxes",
|
|
62
|
+
vpn: "network",
|
|
63
|
+
netdisk: "network",
|
|
64
|
+
exit: "network",
|
|
65
|
+
endpoint: "models",
|
|
66
|
+
localmodel: "models",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
test("the readers that kept their names answer from the table", () => {
|
|
71
|
+
expect(sorted(CapabilityKindSchema.options.filter(isSignedInAccount))).toEqual(where((t) => t.signedInAccount));
|
|
72
|
+
// A string no kind answers to, including an inherited property name, is not an account.
|
|
73
|
+
expect(isSignedInAccount("toString")).toBe(false);
|
|
74
|
+
expect(isSignedInAccount("constructor")).toBe(false);
|
|
75
|
+
expect(traitsOf("hasOwnProperty")).toBeUndefined();
|
|
76
|
+
expect(sorted(PEER_KINDS)).toEqual(sorted(["device", "webext", "phone"]));
|
|
77
|
+
expect(sorted(ENDPOINT_KINDS)).toEqual(sorted(["endpoint", "localmodel"]));
|
|
78
|
+
expect(sorted(SANDBOX_BROWSER_KINDS)).toEqual(sorted(["browser", "identity"]));
|
|
79
|
+
expect(isPeerKind("devices")).toBe(false);
|
|
80
|
+
expect(sorted(MCP_SERVER_MINTING_KINDS)).toEqual(sorted(["mcp", "link", "device", "webext", "phone", "cli"]));
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
test("card tiles are exactly the kinds an extension may contribute", () => {
|
|
84
|
+
// The union's discriminator values, as zod gathers them from its arms.
|
|
85
|
+
const arms = [...(CapabilityContributionSchema._zod.propValues["kind"] ?? [])].map(String);
|
|
86
|
+
expect(where((t) => t.tile === "card")).toEqual(sorted(arms));
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
test("endpoint providers are the kinds the providers route lists as endpoints", () => {
|
|
90
|
+
const listed = CapabilityKindSchema.options.filter(
|
|
91
|
+
(kind) => RunnableProvidersSchema.pick({ endpoints: true }).safeParse({ endpoints: [{ id: "a", label: "a", kind }] }).success,
|
|
92
|
+
);
|
|
93
|
+
expect(where((t) => t.provider === "endpoint")).toEqual(sorted(listed));
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// The hub's card kinds are a wire enum kept literal; each one is a real kind and a service or a model, never something
|
|
97
|
+
// tied to where it was made (a machine, a disk, a link).
|
|
98
|
+
test("hub card kinds are real kinds that travel", () => {
|
|
99
|
+
for (const kind of HubCardKindSchema.options) {
|
|
100
|
+
expect(CapabilityKindSchema.options).toContain(kind);
|
|
101
|
+
expect(["services", "models"]).toContain(CAPABILITY_KIND_TRAITS[kind].group);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
test("isKindOf narrows a capability by its kind", () => {
|
|
106
|
+
type Card = { readonly kind: "device"; readonly id: string } | { readonly kind: "ssh"; readonly id: string };
|
|
107
|
+
const cards: readonly Card[] = [
|
|
108
|
+
{ kind: "device", id: "a" },
|
|
109
|
+
{ kind: "ssh", id: "b" },
|
|
110
|
+
];
|
|
111
|
+
expect(cards.filter((card) => isKindOf(card, ["device", "phone"])).map((card) => card.id)).toEqual(["a"]);
|
|
112
|
+
});
|