@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,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
// The daemon's state engine as the host reads it, in two documents a Rust binary (`ic`) parses by these field names:
|
|
4
|
-
// the update pre-flight's one line (the target image's state-plan.ts, read by
|
|
5
|
-
// embedded verbatim in the staged-update marker), and the `state` of `/health` (read by
|
|
4
|
+
// the update pre-flight's one line (the target image's state-plan.ts, read by _hosts/ic/src/sandbox/preflight.rs and
|
|
5
|
+
// embedded verbatim in the staged-update marker), and the `state` of `/health` (read by _hosts/ic/src/health.rs). The
|
|
6
6
|
// golden files beside the contract (golden/) are this schema's examples, and the Rust tests assert against them.
|
|
7
7
|
|
|
8
8
|
export const PlanStepSchema = z.object({
|
package/src/schemas/system.ts
CHANGED
|
@@ -421,7 +421,14 @@ export const BuildStampSchema = z.object({
|
|
|
421
421
|
|
|
422
422
|
// GET /health: the "is a daemon there" probe every flow uses (launch scripts, /setup, the browser's loopback probe,
|
|
423
423
|
// the platform's hosted gate, the onboarding lane), served raw before any authentication. `ic` reads it too, in Rust
|
|
424
|
-
// (
|
|
424
|
+
// (_hosts/ic/src/health.rs), which cannot import this and reads only `boot`, `state` and `announce` loosely.
|
|
425
|
+
const IoPoolStateSchema = z.object({
|
|
426
|
+
state: z.enum(["answering", "stalled"]),
|
|
427
|
+
pendingMs: z.number().optional(),
|
|
428
|
+
lastMs: z.number().optional(),
|
|
429
|
+
stalls: z.number(),
|
|
430
|
+
});
|
|
431
|
+
|
|
425
432
|
export const DaemonHealthSchema = z.object({
|
|
426
433
|
ok: z.literal(true),
|
|
427
434
|
// The sandbox id, so a loopback probe can confirm it reached this daemon and not an unrelated process. Absent on a
|
|
@@ -443,6 +450,13 @@ export const DaemonHealthSchema = z.object({
|
|
|
443
450
|
// Which proofs this daemon takes to open a session, read before any sign-in since the route list arrives only after
|
|
444
451
|
// one. Absent on a daemon from before email sign-in: Google, and the owner ticket on a hosted machine.
|
|
445
452
|
signIn: z.object({ proofs: z.array(ProofMethodSchema) }).optional(),
|
|
453
|
+
// The answer to a machine agent's challenge (`?proof=&proofKey=`), present only on the loopback port and only for a
|
|
454
|
+
// credential this daemon issued: what tells the real daemon from another listener there (protocol/doors/loopback-proof.ts).
|
|
455
|
+
proof: z.string().optional(),
|
|
456
|
+
// Whether libuv's thread pool, which every fs, dns and zlib call shares, still takes work: `stalled` with how long the
|
|
457
|
+
// probe's stat has waited (a network mount holding every thread, most likely), the last stat's time, and the stalls
|
|
458
|
+
// since boot. Absent on a daemon from before the probe.
|
|
459
|
+
ioPool: IoPoolStateSchema.optional(),
|
|
446
460
|
});
|
|
447
461
|
export type DaemonHealth = z.infer<typeof DaemonHealthSchema>;
|
|
448
462
|
|
|
@@ -466,5 +480,6 @@ export const DaemonHealthReadingSchema = z.object({
|
|
|
466
480
|
.object({ proofs: z.array(z.string()).catch([]) })
|
|
467
481
|
.optional()
|
|
468
482
|
.catch(undefined),
|
|
483
|
+
ioPool: IoPoolStateSchema.optional().catch(undefined),
|
|
469
484
|
});
|
|
470
485
|
export type DaemonHealthReading = z.infer<typeof DaemonHealthReadingSchema>;
|
package/src/schemas/terminal.ts
CHANGED
|
@@ -190,6 +190,12 @@ export const BrowserSessionSchema = z.object({
|
|
|
190
190
|
.boolean()
|
|
191
191
|
.optional()
|
|
192
192
|
.describe("Your own window, opened from the browser view rather than by an agent. Yours to use whenever it is open; no agent drives it."),
|
|
193
|
+
// (2026-11-23) A window on one of this sandbox's runners, listed by the parent beside its own: its `name` is then
|
|
194
|
+
// `<runner>~<the runner's own name>`, so the two never collide, and its view opens through `runners.openView`.
|
|
195
|
+
runner: z
|
|
196
|
+
.string()
|
|
197
|
+
.optional()
|
|
198
|
+
.describe("The runner this window is open on, for a conversation that runs there. Absent means this sandbox."),
|
|
193
199
|
// The conversation whose agent opened it; the client reads that agent's turn to know whether it is driving now.
|
|
194
200
|
owner: z
|
|
195
201
|
.string()
|
|
@@ -211,6 +217,8 @@ export const BrowserPageParamSchema = z.object({
|
|
|
211
217
|
});
|
|
212
218
|
export const OpenBrowserInputSchema = z.object({
|
|
213
219
|
url: z.string().optional().describe("Where the new tab goes. Absent opens a blank tab, the way a browser's own new tab does."),
|
|
220
|
+
// (2026-11-23) The runner's own window instead, for a conversation that runs there; answered by its merged name.
|
|
221
|
+
runner: z.string().optional().describe("Open the tab in this runner's own window instead of this sandbox's. Absent means this sandbox."),
|
|
214
222
|
});
|
|
215
223
|
export type OpenBrowserInput = z.infer<typeof OpenBrowserInputSchema>;
|
|
216
224
|
export const OpenBrowserResultSchema = z.object({
|
|
@@ -267,6 +275,20 @@ export const DesktopStateSchema = z.object({
|
|
|
267
275
|
.describe("Each window open on it, absent when it is not running or has no window manager to ask."),
|
|
268
276
|
});
|
|
269
277
|
export type DesktopState = z.infer<typeof DesktopStateSchema>;
|
|
278
|
+
// (2026-11-23) The sandbox's desktop as `system.desktop` answers it: its own, and each connected runner's, for a
|
|
279
|
+
// conversation that runs there. A runner's picture opens through `runners.openView` with `desktop-view`.
|
|
280
|
+
export const RunnerDesktopSchema = z.object({
|
|
281
|
+
runner: z.string().describe("The runner whose desktop this is."),
|
|
282
|
+
state: DesktopStateSchema.describe("Its desktop, as the runner says."),
|
|
283
|
+
});
|
|
284
|
+
export type RunnerDesktop = z.infer<typeof RunnerDesktopSchema>;
|
|
285
|
+
export const SystemDesktopSchema = DesktopStateSchema.extend({
|
|
286
|
+
runners: z
|
|
287
|
+
.array(RunnerDesktopSchema)
|
|
288
|
+
.optional()
|
|
289
|
+
.describe("Each connected runner's desktop, for the conversations that run there. Absent when this sandbox has no runner connected."),
|
|
290
|
+
});
|
|
291
|
+
export type SystemDesktop = z.infer<typeof SystemDesktopSchema>;
|
|
270
292
|
// A subagent is any agent another agent started, and every surface shows one the same way whichever mechanism started
|
|
271
293
|
// it. The kind names the mechanism, never a second sort of thing:
|
|
272
294
|
// subagent: in-process, the runtime's own Agent/Task tool, tracked via SubagentStart/Stop hooks and task_* messages
|
|
@@ -380,6 +402,12 @@ export const SubagentSessionSchema = z.object({
|
|
|
380
402
|
sandbox: z.string().describe("What that sandbox is called."),
|
|
381
403
|
sandboxId: z.string().optional().describe("That sandbox's id on the owner's account, when the card knows it."),
|
|
382
404
|
conversationId: z.string().describe("The conversation it opened there."),
|
|
405
|
+
via: z
|
|
406
|
+
.literal("person")
|
|
407
|
+
.optional()
|
|
408
|
+
.describe(
|
|
409
|
+
"Handed over as the person the asking conversation acts for, not over a link card: that person is in the conversation there and reads it, and nothing waits for that sandbox's owner to allow it.",
|
|
410
|
+
),
|
|
383
411
|
})
|
|
384
412
|
.optional()
|
|
385
413
|
.describe("For a task handed to another sandbox: which one, and the conversation it runs in there."),
|
|
@@ -5,7 +5,7 @@ import { PreparingUpdateSchema } from "./system.js";
|
|
|
5
5
|
import { UpdateOutcomeSchema } from "./updates.js";
|
|
6
6
|
|
|
7
7
|
// The update markers `ic` writes onto /history for the daemon to read, spelled once here: golden/update-outcome.json
|
|
8
|
-
// and golden/update-preparing.json are these examples as JSON, and ic's Rust test (
|
|
8
|
+
// and golden/update-preparing.json are these examples as JSON, and ic's Rust test (_hosts/ic/src/sandbox/host_files.rs)
|
|
9
9
|
// holds what it writes to them field for field. Where each file lives is the daemon's to say (its own golden,
|
|
10
10
|
// host-files.json). A change here that the committed file does not carry fails, naming the file;
|
|
11
11
|
// `INTENTIC_WRITE_GOLDEN=1` rewrites them, and the Rust test then says whether ic still writes them.
|
package/src/schemas/updates.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
// WHAT THE HOST LAST DID ABOUT THIS SANDBOX'S VERSION, in the host's own words. Written by `ic` (the swap, its health
|
|
4
|
-
// check and the probation that follows it:
|
|
4
|
+
// check and the probation that follows it: _hosts/ic/src/sandbox/outcome.rs) onto /history as `update-outcome.json`,
|
|
5
5
|
// the same volume whichever container runs, so the version that ends up running reads what happened to the other one.
|
|
6
6
|
// Advisory: the swap and its undoing are the host's; this is only how the sandbox and its owner hear about them.
|
|
7
7
|
export const UpdateOutcomeResultSchema = z.enum(["updated", "kept", "restored", "rolled-back"]);
|
|
@@ -22,7 +22,10 @@ test("a payload from a build that predates a toggle parses, with the new toggle
|
|
|
22
22
|
|
|
23
23
|
test("no field is required: a workspace that has never written settings parses", () => {
|
|
24
24
|
const defaults = SandboxSettingsSchema.parse({});
|
|
25
|
-
|
|
25
|
+
// An absent role map selects the suggested setups, while a saved empty map disables every job's setup.
|
|
26
|
+
expect(Object.keys(defaults).toSorted()).toEqual(Object.keys(SandboxSettingsSchema.shape).filter((key) => key !== "roleSetups").toSorted());
|
|
27
|
+
expect(defaults.roleSetups).toBeUndefined();
|
|
28
|
+
expect(SandboxSettingsSchema.parse({ roleSetups: {} }).roleSetups).toEqual({});
|
|
26
29
|
});
|
|
27
30
|
|
|
28
31
|
test("a key of the wrong type is still a parse failure: tolerance is for absence, not for garbage", () => {
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// The ready-made sources a watch can check instead of a guard command (AutomationSchema `source`), and the watch kinds
|
|
2
|
+
// extensions declare for them. Split from automations.ts, which re-exports all of it: that module is what an extension
|
|
3
|
+
// may import (extension-api's EXTENSION_WIRE).
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { WATCH_KIND_ID, WatchKindDeclarationSchema, watchSentence } from "@intentic/extension-manifest";
|
|
6
|
+
|
|
7
|
+
// A watch is an automation whose check decides, without a model, whether anything happened: either its `guard` command
|
|
8
|
+
// or a ready-made source, checked with no shell and no model (automations/watch/). Only once the check says so does
|
|
9
|
+
// anything run, and what it saw goes with the wake.
|
|
10
|
+
// url: the daemon's own kind, one page, its text or the first `select` match, for `fireOn: change`.
|
|
11
|
+
// (2026-11-26) Every other kind is a WATCH KIND an extension declares (`contributes.watchKinds`) and its backend checks
|
|
12
|
+
// (`api.checks.serve`): its id in `kind` and its parameters flat beside it, as the kind's fields name them, checked
|
|
13
|
+
// against that declaration when it is saved. `npm` and `github-release` were the daemon's own until then and keep the
|
|
14
|
+
// stored shape they always had, so nothing stored converts: the connectors extension declares and checks both now. A
|
|
15
|
+
// kind no enabled extension declares fails its check as an error on the run, saying so, until one does.
|
|
16
|
+
export const UrlWatchSourceSchema = z.object({
|
|
17
|
+
kind: z.literal("url").describe("One web page."),
|
|
18
|
+
url: z.string().url().describe("The page, http or https."),
|
|
19
|
+
select: z
|
|
20
|
+
.string()
|
|
21
|
+
.min(1)
|
|
22
|
+
.max(500)
|
|
23
|
+
.optional()
|
|
24
|
+
.describe("A regular expression; what it matches (its first group, if it has one) is what is watched rather than the whole page's text."),
|
|
25
|
+
});
|
|
26
|
+
export type UrlWatchSource = z.infer<typeof UrlWatchSourceSchema>;
|
|
27
|
+
// The two kinds the daemon checked itself until 2026-11-26, in the exact shape a released copy speaks: an older runner or
|
|
28
|
+
// daemon reads and writes these on the runner door, which lags in the field, so they stay arms of their own beside the
|
|
29
|
+
// open one until that door's floor (_tools/checks/lib/peer-floors.mjs) passes the release that made them contributed.
|
|
30
|
+
// The connectors extension declares and checks both; the open arm never takes their ids, so a source matches one arm.
|
|
31
|
+
const RELEASED_KINDS: ReadonlySet<string> = new Set(["npm", "github-release"]);
|
|
32
|
+
export const NpmWatchSourceSchema = z.object({
|
|
33
|
+
kind: z.literal("npm").describe("A package on the npm registry."),
|
|
34
|
+
package: z.string().min(1).max(214).describe("The package name, scoped or not, like bun or @scope/name."),
|
|
35
|
+
range: z
|
|
36
|
+
.string()
|
|
37
|
+
.min(1)
|
|
38
|
+
.max(200)
|
|
39
|
+
.optional()
|
|
40
|
+
.describe("A semver range, like >=1.4.3. Passes once a published version satisfies it. Prereleases count only when the range names one."),
|
|
41
|
+
tag: z.string().min(1).max(100).optional().describe("Which dist-tag to read without a range. Absent means latest."),
|
|
42
|
+
});
|
|
43
|
+
export const GithubReleaseWatchSourceSchema = z.object({
|
|
44
|
+
kind: z.literal("github-release").describe("The newest release of a public GitHub repository."),
|
|
45
|
+
repo: z
|
|
46
|
+
.string()
|
|
47
|
+
.regex(/^[\w.-]+\/[\w.-]+$/, "repo must look like owner/name")
|
|
48
|
+
.describe("The repository, as owner/name."),
|
|
49
|
+
prereleases: z.boolean().optional().describe("Count prereleases too. Absent means only full releases."),
|
|
50
|
+
});
|
|
51
|
+
export const OpenWatchSourceSchema = z
|
|
52
|
+
.object({
|
|
53
|
+
kind: z
|
|
54
|
+
.string()
|
|
55
|
+
.regex(WATCH_KIND_ID)
|
|
56
|
+
.refine((kind) => !RELEASED_KINDS.has(kind), "npm and github-release keep the shape they were released with")
|
|
57
|
+
.describe("A watch kind an enabled extension declares: `automations kinds` lists them, with their parameters."),
|
|
58
|
+
})
|
|
59
|
+
.catchall(z.union([z.string().min(1).max(2000), z.boolean()]))
|
|
60
|
+
.describe("A watch kind an extension declares, its parameters beside `kind` as the kind's fields name them.");
|
|
61
|
+
// Exactly one arm matches any source (`oneOf` on the wire, as the released union was).
|
|
62
|
+
export const WatchSourceSchema = z.xor([NpmWatchSourceSchema, GithubReleaseWatchSourceSchema, UrlWatchSourceSchema, OpenWatchSourceSchema]);
|
|
63
|
+
export type WatchSource = z.infer<typeof WatchSourceSchema>;
|
|
64
|
+
// Every kind but the daemon's own `url`, each checked by the extension that declares it.
|
|
65
|
+
export type ContributedWatchSource = Exclude<WatchSource, UrlWatchSource>;
|
|
66
|
+
// The daemon's own kind, told apart from a contributed one, whose `kind` is any word but this one.
|
|
67
|
+
export const isUrlSource = (source: WatchSource): source is UrlWatchSource => source.kind === "url";
|
|
68
|
+
|
|
69
|
+
// One watch kind as the catalogue serves it: what its extension declares (extension-manifest's watch-kinds.ts), the
|
|
70
|
+
// extension that declares it, and whether that extension is on. A kind of an extension that is off stays listed, so a
|
|
71
|
+
// stored source naming it still reads as what it was.
|
|
72
|
+
export const WatchKindSchema = WatchKindDeclarationSchema.omit({ capabilities: true }).extend({
|
|
73
|
+
extension: z.string().min(1).describe("The extension that declares and checks it, as publisher.name."),
|
|
74
|
+
enabled: z.boolean().describe("Whether that extension is on. A source of a kind whose extension is off fails its check until it is back."),
|
|
75
|
+
});
|
|
76
|
+
export type WatchKind = z.infer<typeof WatchKindSchema>;
|
|
77
|
+
export { watchParamsProblem, watchSentence, WATCH_KIND_ID, type WatchKindField } from "@intentic/extension-manifest";
|
|
78
|
+
|
|
79
|
+
// What a daemon from before contributed kinds (2026-11-26) checked itself, said as the connectors extension now
|
|
80
|
+
// declares them: an editor reads these only when the catalogue it is served carries no `watchKinds`, so a sandbox that
|
|
81
|
+
// has not updated still draws and edits the watches it has.
|
|
82
|
+
export const BUILT_IN_WATCH_KINDS: readonly WatchKind[] = [
|
|
83
|
+
{
|
|
84
|
+
id: "npm",
|
|
85
|
+
label: "npm package",
|
|
86
|
+
icon: "box",
|
|
87
|
+
logo: "npm",
|
|
88
|
+
description: "A version on the npm registry: with a range, it passes once a published version satisfies it; without, it follows a dist-tag.",
|
|
89
|
+
sentence: "npm {package}[@{range}][@{tag}]",
|
|
90
|
+
fields: [
|
|
91
|
+
{ key: "package", label: "Package", required: true, placeholder: "bun", maxLength: 214 },
|
|
92
|
+
{ key: "range", label: "Version range", placeholder: ">=1.4.3", hint: "Passes once a published version satisfies it.", maxLength: 200 },
|
|
93
|
+
{ key: "tag", label: "Dist-tag", placeholder: "latest", hint: "Without a range, which tag's version to follow. Absent means latest.", maxLength: 100 },
|
|
94
|
+
],
|
|
95
|
+
extension: "intentic.connectors",
|
|
96
|
+
enabled: true,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "github-release",
|
|
100
|
+
label: "GitHub release",
|
|
101
|
+
icon: "github",
|
|
102
|
+
logo: "github",
|
|
103
|
+
description: "The newest release of a GitHub repository, read through a connected GitHub card when there is one.",
|
|
104
|
+
sentence: "GitHub releases of {repo}[ (prereleases too){prereleases}]",
|
|
105
|
+
fields: [
|
|
106
|
+
{ key: "repo", label: "Repository", required: true, placeholder: "oven-sh/bun", pattern: "^[\\w.-]+/[\\w.-]+$", patternHint: "owner/name" },
|
|
107
|
+
{ key: "prereleases", label: "Prereleases too", type: "switch" },
|
|
108
|
+
],
|
|
109
|
+
extension: "intentic.connectors",
|
|
110
|
+
enabled: true,
|
|
111
|
+
},
|
|
112
|
+
];
|
|
113
|
+
|
|
114
|
+
/** The kinds a catalogue serves, or the built-in ones of a daemon from before it served any. */
|
|
115
|
+
export const watchKindsOf = (catalog: { readonly watchKinds?: readonly WatchKind[] | undefined } | undefined): readonly WatchKind[] =>
|
|
116
|
+
catalog?.watchKinds ?? BUILT_IN_WATCH_KINDS;
|
|
117
|
+
|
|
118
|
+
/** What a source watches, in a few words: a contributed kind by its declaration's sentence, a page by its address. */
|
|
119
|
+
export const watchSourceSentence = (source: WatchSource, kinds: readonly WatchKind[]): string => {
|
|
120
|
+
if (isUrlSource(source)) {
|
|
121
|
+
return source.select === undefined ? source.url : `${source.url} (matching ${source.select})`;
|
|
122
|
+
}
|
|
123
|
+
return watchSentence(
|
|
124
|
+
kinds.find((kind) => kind.id === source.kind),
|
|
125
|
+
source,
|
|
126
|
+
);
|
|
127
|
+
};
|
|
@@ -112,11 +112,14 @@ export const WorkspaceSearchResultSchema = z.object({
|
|
|
112
112
|
"At least one file had more matches than are kept per file, so the total is a floor. Different from the page being truncated: a complete page can still count partially.",
|
|
113
113
|
),
|
|
114
114
|
cursor: z.string().optional().describe("Pass this back as `after` to get the next page."),
|
|
115
|
-
// What the search did unasked
|
|
115
|
+
// What the search did unasked (a pattern rerun as literal, escapes rewritten), and for an empty answer what one
|
|
116
|
+
// changed switch would have found.
|
|
116
117
|
note: z
|
|
117
118
|
.string()
|
|
118
119
|
.optional()
|
|
119
|
-
.describe(
|
|
120
|
+
.describe(
|
|
121
|
+
"What the search did that you did not ask for: a pattern rerun as plain text because it was not valid, or escapes rewritten. When nothing matched, what would have with one switch changed: any case, ignored files, plain text.",
|
|
122
|
+
),
|
|
120
123
|
});
|
|
121
124
|
export type WorkspaceSearchResult = z.infer<typeof WorkspaceSearchResultSchema>;
|
|
122
125
|
// What /workspace/search/stream sends: the files a text search has found so far, as it finds them, then its answer.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
/* A WSL2 VM TOO BIG FOR THE PC IT RUNS ON (2026-11-26). rog (31.4 GiB) gives its VM `memory=22GB` in `.wslconfig`, and
|
|
4
|
+
the VM keeps what it is given: Windows sat at 2-5 GiB available for hours, under its 3.1 GiB low line
|
|
5
|
+
(hostMemoryLowBytes, hosts.ts), with vmmemWSL holding 16.6 GiB in RAM. Dropping the VM's file cache gives back a
|
|
6
|
+
fraction of a gigabyte (machine `environments/windows-memory.ts`): the size itself is what does not fit. So the
|
|
7
|
+
Windows side's agent watches Windows' available memory and the VM's own footprint for hours, and when Windows has
|
|
8
|
+
been under its low line most of that time while the VM held a large share, it works out a `memory=` that leaves
|
|
9
|
+
Windows its own use, the low line and a margin (machine `environments/wsl-memory-fit.ts`), and reports it in its
|
|
10
|
+
facts (`DeviceFacts.wslMemory`). The daemon raises a `wsl-memory` card for the owner (needs.ts), and their yes runs
|
|
11
|
+
the agent's `wsl-memory` op (DeviceAgentOpSchema), which rewrites that one line of `.wslconfig` with a backup beside
|
|
12
|
+
it. It takes effect only when WSL restarts, which restarts every sandbox on that PC: the owner does that. */
|
|
13
|
+
|
|
14
|
+
export const WslMemoryCapSchema = z.object({
|
|
15
|
+
name: z.string().min(1).describe("The sandbox, as ic lists it."),
|
|
16
|
+
memoryBytes: z.number().positive().describe("Its container's memory cap, in bytes."),
|
|
17
|
+
});
|
|
18
|
+
export type WslMemoryCap = z.infer<typeof WslMemoryCapSchema>;
|
|
19
|
+
|
|
20
|
+
export const WslMemoryFitSchema = z.object({
|
|
21
|
+
at: z.number().describe("When the agent decided, in epoch ms."),
|
|
22
|
+
windowMs: z.number().positive().describe("How long the readings it decided on span, in ms."),
|
|
23
|
+
readings: z.number().int().positive().describe("How many readings that is."),
|
|
24
|
+
totalBytes: z.number().positive().describe("Windows' physical memory."),
|
|
25
|
+
lowLineBytes: z.number().positive().describe("Windows' low line (hostMemoryLowBytes): under it the host counts as short."),
|
|
26
|
+
underLowShare: z.number().min(0).max(1).describe("The share of the readings in which Windows had less available than its low line."),
|
|
27
|
+
availableMedianBytes: z.number().nonnegative().describe("Windows' available memory, the median of the readings."),
|
|
28
|
+
vmMedianBytes: z.number().nonnegative().describe("The VM's footprint in RAM (vmmemWSL's working set), the median of the readings."),
|
|
29
|
+
outsideBytes: z
|
|
30
|
+
.number()
|
|
31
|
+
.nonnegative()
|
|
32
|
+
.describe("Windows' own use outside the VM (total - available - the VM's working set) at the high percentile the proposal rests on."),
|
|
33
|
+
configuredGb: z.number().positive().optional().describe("`memory=` as `.wslconfig` sets it now, in GB (WSL reads them as GiB). Absent: not set."),
|
|
34
|
+
proposedGb: z.number().int().positive().describe("The `memory=` the agent proposes, in whole GB."),
|
|
35
|
+
atFloor: z.boolean().describe("The proposal is the floor that still runs one sandbox: less would fit Windows, but nothing would run."),
|
|
36
|
+
capsOver: z.array(WslMemoryCapSchema).optional().describe("Sandboxes on this PC whose container cap is larger than the proposal."),
|
|
37
|
+
text: z.string().min(1).describe("What was measured and what is proposed, in the agent's words (English)."),
|
|
38
|
+
});
|
|
39
|
+
export type WslMemoryFit = z.infer<typeof WslMemoryFitSchema>;
|
|
40
|
+
|
|
41
|
+
export const WslMemorySchema = z.object({
|
|
42
|
+
configPath: z.string().min(1).describe("The `.wslconfig` the agent reads and would write."),
|
|
43
|
+
configuredGb: z.number().positive().optional().describe("`memory=` in its `[wsl2]` section, in GB. Absent: not set, so WSL gives the VM half the RAM."),
|
|
44
|
+
fit: WslMemoryFitSchema.optional().describe("Present when the VM is too big for this PC: what was measured and the size proposed."),
|
|
45
|
+
});
|
|
46
|
+
export type WslMemory = z.infer<typeof WslMemorySchema>;
|
|
47
|
+
|
|
48
|
+
// The need it raises (one of needs.ts `NeedSubjectSchema`'s kinds, kept here beside what it carries): the WSL2 VM of the
|
|
49
|
+
// PC this sandbox runs on is too big for it. Raised by the daemon itself, never by an agent's ask, in the conversation a
|
|
50
|
+
// person spoke in; a person's yes runs the PC's `wsl-memory` op, which writes `fit.proposedGb` into `.wslconfig`.
|
|
51
|
+
// Nothing changes until WSL restarts, which restarts every sandbox on that PC: that is the owner's to do. Its outcome is
|
|
52
|
+
// the person's alone: no agent hears it.
|
|
53
|
+
export const WslMemoryNeedSchema = z.object({
|
|
54
|
+
kind: z.literal("wsl-memory"),
|
|
55
|
+
device: z.string().min(1).describe("The connected PC this sandbox runs on, by its device id (Windows' own side)."),
|
|
56
|
+
configPath: z.string().min(1).describe("The `.wslconfig` a yes writes."),
|
|
57
|
+
fit: WslMemoryFitSchema.describe("What was measured and the size proposed, as read when the card was raised."),
|
|
58
|
+
});
|
|
59
|
+
export type WslMemoryNeed = z.infer<typeof WslMemoryNeedSchema>;
|
package/src/state/auth-state.ts
CHANGED
|
@@ -39,6 +39,9 @@ export const AUTH_STATE_FILES: readonly StateFile[] = [
|
|
|
39
39
|
{ path: "sandbox-secrets.json", portability: "secret" },
|
|
40
40
|
{ path: "capability-secrets.json", portability: "secret" },
|
|
41
41
|
{ path: "extension-secrets.json", portability: "secret" },
|
|
42
|
+
// The pairing secrets people minted at other sandboxes so this one may route there as them (the daemon's
|
|
43
|
+
// account-routing/route-secrets.ts).
|
|
44
|
+
{ path: "route-secrets.json", portability: "secret" },
|
|
42
45
|
// The personal data the shield masked, by token, and the pictures it painted over.
|
|
43
46
|
{ path: "privacy-vault.json", portability: "secret" },
|
|
44
47
|
{ path: "privacy-images/", portability: "secret" },
|
|
@@ -61,6 +64,13 @@ export const AUTH_STATE_FILES: readonly StateFile[] = [
|
|
|
61
64
|
{ path: "secret-programs.json", portability: "identity", note: "Allow programs to receive secrets again from Secrets." },
|
|
62
65
|
// Per-card credential rules and raw delivery, the owner's widening of a connector's own rules.
|
|
63
66
|
{ path: "credential-policy.json", portability: "identity", note: "Set a connection's credential rules and delivery again from Capabilities." },
|
|
67
|
+
// (2026-11-25) Which secrets each managed stack may receive, from which repository, on which computer (the daemon's
|
|
68
|
+
// secrets/stack-grants.ts).
|
|
69
|
+
{ path: "stack-grants.json", portability: "identity", note: "Let each managed stack receive its secrets again from Deployments." },
|
|
70
|
+
// (2026-11-25) The key this sandbox marks secret values with (HMACs, never a value: the daemon's
|
|
71
|
+
// secrets/marks/secret-marks.ts), which tell a rotated secret from the one a stack was deployed with. Meaningless under
|
|
72
|
+
// any other key, so a target mints its own, and each stack's marks start again with its next deploy.
|
|
73
|
+
{ path: "secret-marks.json", portability: "identity" },
|
|
64
74
|
|
|
65
75
|
/* ---- this sandbox's own keys, and what it is paired with ---- */
|
|
66
76
|
|
|
@@ -37,8 +37,9 @@ describe(`staleRuntimeQueryKeys`, () => {
|
|
|
37
37
|
expect(staleRuntimeQueryKeys([`activity`])).toEqual([[`activity`], [`activity-status`]]);
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
it(`re-reads the Allowed list when a
|
|
41
|
-
|
|
40
|
+
it(`re-reads the Allowed list and the extensions when a yes is written or taken back, which no file push carries`, () => {
|
|
41
|
+
// An approved workspace extension is one of those yeses, and what it lets run is the extensions list.
|
|
42
|
+
expect(staleRuntimeQueryKeys([`grants`])).toEqual([[`grants`], [`extensions`]]);
|
|
42
43
|
});
|
|
43
44
|
|
|
44
45
|
it(`re-reads each paired-machine roster on its own door's push, and the sync state on a device's`, () => {
|
|
@@ -83,7 +83,9 @@ const RUNTIME_DOMAINS = [
|
|
|
83
83
|
|
|
84
84
|
// A standing yes written or taken back outside a need's answer: a permission card's pass, a release, a purge. They
|
|
85
85
|
// live under the auth root, which no file push watches, and the Allowed list must move with the card that wrote one.
|
|
86
|
-
|
|
86
|
+
// A workspace extension's approval is one of them, so the extensions list (and the editor's extension host, which
|
|
87
|
+
// loads what it lets run) moves with it too.
|
|
88
|
+
{ domain: "grants", invalidates: [["grants"], ["extensions"]] },
|
|
87
89
|
|
|
88
90
|
// Somebody asked the owner for more access, or a request was answered (auth/members/access-requests.ts): the owner's
|
|
89
91
|
// list beside the roster moves, and so does the asker's own "asked" (GET /members/self). Like grants, they live under
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// THE POLICY AN UPDATE IS HELD TO AFTER IT TOOK, one policy on two substrates.
|
|
2
2
|
//
|
|
3
3
|
// A new version of a sandbox that came up is not yet a version that works. On a machine `ic` runs, the old container stays
|
|
4
|
-
// parked and ready while a watch looks at the new one (
|
|
4
|
+
// parked and ready while a watch looks at the new one (_hosts/ic/src/sandbox/probation.rs), and puts the old one back
|
|
5
5
|
// by itself if it keeps failing. On Fly the platform's api does the same job over the image the machine's row keeps as
|
|
6
6
|
// its way back (_platform/api/src/sandbox/hosted/gate/hosted-probation.ts). The two cannot share code (one looks through
|
|
7
7
|
// Docker, the other through Fly's exec), so they share what decides: the numbers below, and `judgeProbation` /
|
|
@@ -4,7 +4,7 @@ import { packageRoot } from "@intentic/constants/node";
|
|
|
4
4
|
import { DeviceFeatureSchema } from "../schemas/hosts.js";
|
|
5
5
|
import { waysBack } from "./ways-back.js";
|
|
6
6
|
|
|
7
|
-
// What `ic features --json` answers (
|
|
7
|
+
// What `ic features --json` answers (_hosts/ic/src/features.rs holds the same list to this golden).
|
|
8
8
|
// SAFETY: the golden is this package's own file; the assertions below fail on any field it lacks.
|
|
9
9
|
const IC_FEATURES = JSON.parse(readFileSync(join(packageRoot(import.meta.url), "golden", "ic-features.json"), "utf8")) as { readonly features: readonly string[] };
|
|
10
10
|
|
|
@@ -367,6 +367,8 @@ describe(`VERSIONED_STATE_PATHS`, () => {
|
|
|
367
367
|
// Spelled out rather than derived, so adding a tracked entry is a visible edit here, not a silent side effect.
|
|
368
368
|
it(`tracks exactly the configuration files plus the agent's own authored output`, () => {
|
|
369
369
|
expect(VERSIONED_STATE_PATHS.toSorted()).toEqual([
|
|
370
|
+
// A project's checkout hooks, committed with its code like run.json (schemas/checkout-hooks.ts).
|
|
371
|
+
`${STATE_DIR}/checkout.json`,
|
|
370
372
|
`${STATE_DIR}/config/approvals/`,
|
|
371
373
|
// Which folders each named area holds: editing one moves what everyone granted it can see, so the
|
|
372
374
|
// change belongs in a diff rather than only in a screen.
|
|
@@ -142,19 +142,17 @@ const STATE_FILES = [
|
|
|
142
142
|
portability: "derived",
|
|
143
143
|
note: "Stamps of when each rule last did something; the new sandbox starts its own record.",
|
|
144
144
|
},
|
|
145
|
-
// Runtime-install ledger: which tools sessions installed, how often, and the last drift snapshot
|
|
146
|
-
//
|
|
147
|
-
//
|
|
148
|
-
// new container.
|
|
145
|
+
// Runtime-install ledger: which tools sessions installed, how often, and the last drift snapshot (environment/
|
|
146
|
+
// runtime-installs.ts). `carry` unlike rule-firings: this is about what the workspace's tasks keep needing, not what
|
|
147
|
+
// one machine did. The drift snapshot self-expires on a move since its `bornAt` won't match the new container.
|
|
149
148
|
{ path: ".intentic/records/runtime-installs.json", invalidates: ["environment"], portability: "carry" },
|
|
150
149
|
// What agents are waiting on people for (docs/architecture/needs.md): every open need and the recent closed ones.
|
|
151
150
|
// Holds no credential (a secret need names the secret, its value goes to the secret store), so it may `carry`: a
|
|
152
151
|
// question a moved sandbox still has to ask. `needs` is the chat cards', the board's and the inbox's shared read.
|
|
153
152
|
{ path: ".intentic/records/needs.json", invalidates: ["needs"], portability: "carry" },
|
|
154
|
-
// Where each agent engine's version comes from: blessed list, upstream newest, a pin, or the image
|
|
155
|
-
//
|
|
156
|
-
//
|
|
157
|
-
// the engines card reads its own route.
|
|
153
|
+
// Where each agent engine's version comes from: blessed list, upstream newest, a pin, or the image (schemas/engines.ts).
|
|
154
|
+
// The versions themselves are machine state on the daemon's volume (architecture-specific binaries); the policy here
|
|
155
|
+
// travels. `versioned`: a human decision worth reviewing. Own key, not `environment`'s: the engines card reads its own.
|
|
158
156
|
{ path: ".intentic/config/engines.json", invalidates: ["engines"], portability: "carry", versioned: true },
|
|
159
157
|
// Written by the agent's approvals skill, read by the owner's inbox. `authored`: text meant to be found by search.
|
|
160
158
|
// `versioned`: an approval can spend, send, or delete under the owner's name, and is kept (not consumed) as a
|
|
@@ -212,30 +210,30 @@ const STATE_FILES = [
|
|
|
212
210
|
why: "Where releases before 2026-10-12 kept the wakes automations held for a person; they now sit on the history volume, and nothing reads this copy. The intentic.approvals extension's contributes.files still binds it, with `automation-approvals` as its query key, not core's.",
|
|
213
211
|
portability: "carry",
|
|
214
212
|
},
|
|
215
|
-
//
|
|
216
|
-
// about the product, not the container. Not `versioned`: machine-recorded telemetry, not an owner decision.
|
|
213
|
+
// The issues extension keeps one report per fingerprint as telemetry. The daemon wrote these until 2026-11-26.
|
|
217
214
|
{
|
|
218
215
|
path: ".intentic/records/issues/",
|
|
219
216
|
invalidates: [],
|
|
220
217
|
why: "Declared by the intentic.issues extension's contributes.files, `issues` is its query key, not core's.",
|
|
221
218
|
portability: "carry",
|
|
219
|
+
outsideWriter: "the intentic.issues extension's backend",
|
|
222
220
|
},
|
|
223
|
-
//
|
|
224
|
-
//
|
|
225
|
-
//
|
|
221
|
+
// Where releases before 2026-11-24 kept the reports this sandbox could not yet deliver to another of the account. They
|
|
222
|
+
// now wait on the history volume (`account-outbox/`, the daemon's account-routing/account-outbox.ts), where no turn can rewrite
|
|
223
|
+
// a queued one before it drains; nothing reads this directory, and a build that read it is only ever rolled back to.
|
|
226
224
|
{
|
|
227
225
|
path: ".intentic/records/outbox/",
|
|
228
226
|
invalidates: [],
|
|
229
|
-
why: "
|
|
227
|
+
why: "Where releases before 2026-11-24 kept the account outbox; it now waits on the history volume, and nothing reads this copy.",
|
|
230
228
|
portability: "carry",
|
|
231
229
|
},
|
|
232
|
-
//
|
|
233
|
-
// point-in-time evidence about this workspace.
|
|
230
|
+
// The maintenance extension keeps its ledger and probe evidence here, taking over from the daemon's chores store.
|
|
234
231
|
{
|
|
235
232
|
path: ".intentic/records/chores/",
|
|
236
233
|
invalidates: [],
|
|
237
234
|
why: "Declared by the intentic.maintenance extension's contributes.files, `maintenance-report`/`maintenance-runs` are its query keys, not core's.",
|
|
238
235
|
portability: "carry",
|
|
236
|
+
outsideWriter: "the intentic.maintenance extension's backend",
|
|
239
237
|
},
|
|
240
238
|
// Documentation staging tree (documentation extension's paths.ts): generation writes here, the owner approves
|
|
241
239
|
// here, publishing copies into the repo. `authored`: draft READMEs, searchable like a post draft.
|
|
@@ -262,25 +260,27 @@ const STATE_FILES = [
|
|
|
262
260
|
portability: "carry",
|
|
263
261
|
},
|
|
264
262
|
|
|
265
|
-
//
|
|
266
|
-
// Each entry's `why` states the constraint so a future reader doesn't have to re-derive it.
|
|
263
|
+
// Each entry's `why` explains its empty query invalidation list.
|
|
267
264
|
{
|
|
268
265
|
path: ".intentic/records/webchat-installs.json",
|
|
269
266
|
invalidates: [],
|
|
270
|
-
why: "Which origins have loaded a Visitor chat's widget, written on a 30s flush timer while a customer's site serves page views. The install panel that renders it fetches on open and polls itself while it is on screen, which is the whole window in which the answer changes for anyone. Pushing instead would bill every connected browser a refetch per flush, for a panel almost nobody has open.",
|
|
267
|
+
why: "Which origins have loaded a Visitor chat's widget, written by the visitor-chat extension's backend (the daemon until 2026-11-26) on a 30s flush timer while a customer's site serves page views. The install panel that renders it fetches on open and polls itself while it is on screen, which is the whole window in which the answer changes for anyone. Pushing instead would bill every connected browser a refetch per flush, for a panel almost nobody has open.",
|
|
271
268
|
portability: "carry",
|
|
269
|
+
outsideWriter: "the intentic.visitor-chat extension's backend",
|
|
272
270
|
},
|
|
273
271
|
{
|
|
274
272
|
path: ".intentic/records/issue-installs.json",
|
|
275
273
|
invalidates: [],
|
|
276
|
-
why: "The same probe for the bug reporter's script, on the same flush timer and read by the same kind of panel, so it is outside the push path for the same reason the Visitor chat's is.",
|
|
274
|
+
why: "The same probe for the bug reporter's script, written by the issues extension's backend (the daemon until 2026-11-26) on the same flush timer and read by the same kind of panel, so it is outside the push path for the same reason the Visitor chat's is.",
|
|
277
275
|
portability: "carry",
|
|
276
|
+
outsideWriter: "the intentic.issues extension's backend",
|
|
278
277
|
},
|
|
279
278
|
{
|
|
280
279
|
path: ".intentic/records/webchat-outbox.json",
|
|
281
280
|
invalidates: [],
|
|
282
|
-
why: "Visitor chat replies a visitor has not collected yet, written when an approved wake answers or a human writes as the agent. The only reader is a stranger's browser polling the public
|
|
281
|
+
why: "Visitor chat replies a visitor has not collected yet, written by the visitor-chat extension's gateway (the daemon until 2026-11-26) when an approved wake answers or a human writes as the agent. The only reader is a stranger's browser polling the extension's public door, which no query key in this app addresses; the owner's own view of the same words is the conversation's transcript, which the agent registry already pushes.",
|
|
283
282
|
portability: "carry",
|
|
283
|
+
outsideWriter: "the intentic.visitor-chat extension's gateway",
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
path: ".intentic/records/thread-sessions.json",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { STATE_DIR } from "@intentic/constants";
|
|
2
|
+
import { IGNORES, syncIgnoreMatcher, workspaceSyncIgnores } from "./workspace-sync-ignores.js";
|
|
3
|
+
|
|
4
|
+
describe("workspaceSyncIgnores", () => {
|
|
5
|
+
test.each([
|
|
6
|
+
"node_modules",
|
|
7
|
+
"app/node_modules/x/index.js",
|
|
8
|
+
"a/b/dist/main.js",
|
|
9
|
+
`${STATE_DIR}/records/sessions/x.jsonl`,
|
|
10
|
+
"refs/some-clone/src/a.ts",
|
|
11
|
+
"intentic/.git/index",
|
|
12
|
+
"app/.env",
|
|
13
|
+
"app/.env.production.local",
|
|
14
|
+
"repo/.intentic/local/cache/db",
|
|
15
|
+
"crate/target/debug/foo",
|
|
16
|
+
"crate/target/x86_64-pc-windows-msvc/release/foo.exe",
|
|
17
|
+
"crate/target/fast/incremental/x",
|
|
18
|
+
"crate/target/x86_64-unknown-linux-gnu/fast/deps/y",
|
|
19
|
+
])("leaves out %s", (path) => {
|
|
20
|
+
expect(workspaceSyncIgnores(path)).toBe(true);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
test.each([
|
|
24
|
+
"README.md",
|
|
25
|
+
"intentic/_sandbox/sandbox/src/main.ts",
|
|
26
|
+
"repo/.intentic/checks.json",
|
|
27
|
+
"repo/refs/notes.md",
|
|
28
|
+
"app/.env.example",
|
|
29
|
+
"crate/target/fast/my-binary",
|
|
30
|
+
"crate/target/CACHEDIR.TAG",
|
|
31
|
+
"docs/target.md",
|
|
32
|
+
])("carries %s", (path) => {
|
|
33
|
+
expect(workspaceSyncIgnores(path)).toBe(false);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
test("matches nothing for a spelling it was never taught, which only ever over-signals", () => {
|
|
37
|
+
const matches = syncIgnoreMatcher(["!keep", "a?c", "[ab]"]);
|
|
38
|
+
expect(["keep", "abc", "a"].some(matches)).toBe(false);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
test("understands every pattern the session is created with", () => {
|
|
42
|
+
// Each built-in pattern, spelled as a path, is left out by its own rule.
|
|
43
|
+
for (const pattern of IGNORES) {
|
|
44
|
+
const path = pattern.replace(/^\//, "").replaceAll("**/", "x/").replaceAll("*", "y");
|
|
45
|
+
expect(workspaceSyncIgnores(path), pattern).toBe(true);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
});
|