@intentic/sandbox-contract 1.431.0 → 1.433.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 +25 -3
- 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/agent.contract.d.ts +1049 -12
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +358 -4
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/approvals.contract.d.ts +35 -0
- package/dist/contracts/approvals.contract.d.ts.map +1 -1
- package/dist/contracts/approvals.contract.js +13 -3
- package/dist/contracts/approvals.contract.js.map +1 -1
- package/dist/contracts/automations.contract.d.ts +60 -8
- package/dist/contracts/automations.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts +40 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.js +21 -0
- 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-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 +47 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +607 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.js +10 -1
- package/dist/contracts/extensions.contract.js.map +1 -1
- package/dist/contracts/needs.contract.d.ts +887 -18
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.d.ts +21 -0
- package/dist/contracts/offload.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +653 -40
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/seal.contract.d.ts +20 -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 +21 -1
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +133 -2
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +73 -42
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +18 -0
- package/dist/contracts/settings.contract.js.map +1 -1
- package/dist/contracts/stack-grants.contract.d.ts +440 -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 +191 -69
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +12 -42
- package/dist/contracts/system.contract.js.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 +509 -8
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-transcript.d.ts +133 -2
- package/dist/events/agent-transcript.d.ts.map +1 -1
- package/dist/events/agent-words.d.ts.map +1 -1
- package/dist/events/agent-words.js +2 -1
- 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/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 +16 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +669 -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.map +1 -1
- package/dist/ids/conversation-ids.js.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.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/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/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/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 +7 -0
- package/dist/protocol/doors/listener-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/listener-protocol.js +1 -0
- package/dist/protocol/doors/listener-protocol.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/raw/extension-protocol.d.ts +634 -0
- package/dist/protocol/raw/extension-protocol.d.ts.map +1 -1
- package/dist/protocol/raw/extension-protocol.js +292 -0
- package/dist/protocol/raw/extension-protocol.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +3034 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +39 -0
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +260 -1
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +57 -1
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/protocol/s2s/address.d.ts +53 -0
- package/dist/protocol/s2s/address.d.ts.map +1 -0
- package/dist/protocol/s2s/address.js +111 -0
- package/dist/protocol/s2s/address.js.map +1 -0
- package/dist/protocol/s2s/attestation.d.ts +41 -0
- package/dist/protocol/s2s/attestation.d.ts.map +1 -0
- package/dist/protocol/s2s/attestation.js +96 -0
- package/dist/protocol/s2s/attestation.js.map +1 -0
- package/dist/protocol/s2s/canonical.d.ts +10 -0
- package/dist/protocol/s2s/canonical.d.ts.map +1 -0
- package/dist/protocol/s2s/canonical.js +94 -0
- package/dist/protocol/s2s/canonical.js.map +1 -0
- package/dist/protocol/s2s/envelope.d.ts +40 -0
- package/dist/protocol/s2s/envelope.d.ts.map +1 -0
- package/dist/protocol/s2s/envelope.js +116 -0
- package/dist/protocol/s2s/envelope.js.map +1 -0
- package/dist/protocol/s2s/extension-sign.d.ts +21 -0
- package/dist/protocol/s2s/extension-sign.d.ts.map +1 -0
- package/dist/protocol/s2s/extension-sign.js +41 -0
- package/dist/protocol/s2s/extension-sign.js.map +1 -0
- package/dist/protocol/s2s/identity-doc.d.ts +50 -0
- package/dist/protocol/s2s/identity-doc.d.ts.map +1 -0
- package/dist/protocol/s2s/identity-doc.js +89 -0
- package/dist/protocol/s2s/identity-doc.js.map +1 -0
- package/dist/protocol/s2s/index.d.ts +12 -0
- package/dist/protocol/s2s/index.d.ts.map +1 -0
- package/dist/protocol/s2s/index.js +12 -0
- package/dist/protocol/s2s/index.js.map +1 -0
- package/dist/protocol/s2s/kem.d.ts +15 -0
- package/dist/protocol/s2s/kem.d.ts.map +1 -0
- package/dist/protocol/s2s/kem.js +34 -0
- package/dist/protocol/s2s/kem.js.map +1 -0
- package/dist/protocol/s2s/keys.d.ts +34 -0
- package/dist/protocol/s2s/keys.d.ts.map +1 -0
- package/dist/protocol/s2s/keys.js +81 -0
- package/dist/protocol/s2s/keys.js.map +1 -0
- package/dist/protocol/s2s/passkey-cosign.d.ts +44 -0
- package/dist/protocol/s2s/passkey-cosign.d.ts.map +1 -0
- package/dist/protocol/s2s/passkey-cosign.js +139 -0
- package/dist/protocol/s2s/passkey-cosign.js.map +1 -0
- package/dist/protocol/s2s/session.d.ts +61 -0
- package/dist/protocol/s2s/session.d.ts.map +1 -0
- package/dist/protocol/s2s/session.js +98 -0
- package/dist/protocol/s2s/session.js.map +1 -0
- package/dist/protocol/s2s/sign.d.ts +12 -0
- package/dist/protocol/s2s/sign.d.ts.map +1 -0
- package/dist/protocol/s2s/sign.js +33 -0
- package/dist/protocol/s2s/sign.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.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 +8 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +16 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/approvals.d.ts +100 -0
- package/dist/schemas/approvals.d.ts.map +1 -1
- package/dist/schemas/approvals.js +21 -0
- package/dist/schemas/approvals.js.map +1 -1
- package/dist/schemas/automations.d.ts +89 -27
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +15 -33
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +1 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- 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.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-admission.d.ts +6 -0
- package/dist/schemas/command-admission.d.ts.map +1 -1
- package/dist/schemas/command-admission.js +2 -1
- package/dist/schemas/command-admission.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/contact-need.d.ts +50 -0
- package/dist/schemas/contact-need.d.ts.map +1 -0
- package/dist/schemas/contact-need.js +19 -0
- package/dist/schemas/contact-need.js.map +1 -0
- package/dist/schemas/contacts-settings.d.ts +5 -0
- package/dist/schemas/contacts-settings.d.ts.map +1 -0
- package/dist/schemas/contacts-settings.js +11 -0
- package/dist/schemas/contacts-settings.js.map +1 -0
- 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 +73 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +6 -2
- package/dist/schemas/devices.js.map +1 -1
- package/dist/schemas/extension-updates.d.ts +1192 -0
- package/dist/schemas/extension-updates.d.ts.map +1 -1
- package/dist/schemas/extension-updates.js +18 -4
- package/dist/schemas/extension-updates.js.map +1 -1
- package/dist/schemas/host-power.d.ts +22 -0
- package/dist/schemas/host-power.d.ts.map +1 -1
- package/dist/schemas/host-power.js +55 -0
- package/dist/schemas/host-power.js.map +1 -1
- package/dist/schemas/hosts.d.ts +226 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +24 -0
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/issues.d.ts +37 -249
- package/dist/schemas/issues.d.ts.map +1 -1
- package/dist/schemas/issues.js +10 -43
- package/dist/schemas/issues.js.map +1 -1
- package/dist/schemas/links.d.ts +8 -0
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/links.js +4 -0
- package/dist/schemas/links.js.map +1 -1
- package/dist/schemas/maintenance.d.ts.map +1 -1
- package/dist/schemas/maintenance.js.map +1 -1
- package/dist/schemas/metrics.d.ts +25 -0
- package/dist/schemas/metrics.d.ts.map +1 -1
- package/dist/schemas/metrics.js +18 -0
- package/dist/schemas/metrics.js.map +1 -1
- package/dist/schemas/need-kinds.d.ts +20 -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 +666 -30
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +29 -6
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/offload.d.ts +52 -0
- package/dist/schemas/offload.d.ts.map +1 -1
- package/dist/schemas/offload.js +12 -0
- 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/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/redirect-need.d.ts +15 -0
- package/dist/schemas/redirect-need.d.ts.map +1 -0
- package/dist/schemas/redirect-need.js +14 -0
- package/dist/schemas/redirect-need.js.map +1 -0
- package/dist/schemas/s2s-identity.d.ts +521 -0
- package/dist/schemas/s2s-identity.d.ts.map +1 -0
- package/dist/schemas/s2s-identity.js +208 -0
- package/dist/schemas/s2s-identity.js.map +1 -0
- package/dist/schemas/s2s-views.d.ts +2127 -0
- package/dist/schemas/s2s-views.d.ts.map +1 -0
- package/dist/schemas/s2s-views.js +217 -0
- package/dist/schemas/s2s-views.js.map +1 -0
- package/dist/schemas/s2s-wire.d.ts +1616 -0
- package/dist/schemas/s2s-wire.d.ts.map +1 -0
- package/dist/schemas/s2s-wire.js +276 -0
- package/dist/schemas/s2s-wire.js.map +1 -0
- package/dist/schemas/s2s.d.ts +5 -0
- package/dist/schemas/s2s.d.ts.map +1 -0
- package/dist/schemas/s2s.js +5 -0
- package/dist/schemas/s2s.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 +18 -42
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +7 -6
- 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/terminal.d.ts +2 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +4 -0
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/schemas/vpn.d.ts +4 -0
- package/dist/schemas/vpn.d.ts.map +1 -1
- package/dist/schemas/vpn.js +9 -0
- package/dist/schemas/vpn.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 +8 -0
- package/dist/state/auth-state.js.map +1 -1
- package/dist/state/definition.d.ts +22 -8
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/workspace-state.d.ts +8 -3
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +8 -3
- package/dist/state/workspace-state.js.map +1 -1
- package/package.json +20 -5
- 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/approvals.contract.ts +24 -3
- package/src/contracts/capabilities.contract.ts +24 -0
- package/src/contracts/ci.contract.ts +119 -37
- package/src/contracts/device-stacks.contract.ts +97 -0
- package/src/contracts/extensions.contract.ts +11 -0
- package/src/contracts/secrets.contract.ts +27 -0
- package/src/contracts/settings.contract.ts +24 -0
- package/src/contracts/stack-grants.contract.ts +51 -0
- package/src/contracts/system.contract.ts +16 -59
- package/src/contracts/workspace.contract.ts +0 -22
- package/src/events/agent-words.ts +3 -1
- 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/requests.ts +18 -0
- package/src/events/transcript.ts +10 -1
- package/src/ids/conversation-ids.test.ts +22 -3
- package/src/ids/conversation-ids.ts +5 -7
- package/src/index.ts +3 -6
- 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/policy/approvals-execution.ts +11 -6
- package/src/policy/batch-runs.ts +2 -2
- package/src/policy/message-limits.ts +8 -4
- package/src/policy/org-locks.ts +1 -0
- package/src/policy/shell/workspace-root-exclude.ts +11 -0
- package/src/protocol/doors/listener-protocol.ts +14 -0
- package/src/protocol/doors/webext-links.ts +3 -1
- package/src/protocol/ingress-contract.fixture.json +6 -1
- package/src/protocol/raw/extension-protocol.ts +513 -2
- package/src/protocol/raw/raw-json-routes.ts +85 -0
- package/src/protocol/raw/raw-routes.ts +111 -7
- package/src/protocol/s2s/address.test.ts +157 -0
- package/src/protocol/s2s/address.ts +193 -0
- package/src/protocol/s2s/attestation.test.ts +262 -0
- package/src/protocol/s2s/attestation.ts +173 -0
- package/src/protocol/s2s/canonical.test.ts +70 -0
- package/src/protocol/s2s/canonical.ts +119 -0
- package/src/protocol/s2s/envelope.test.ts +162 -0
- package/src/protocol/s2s/envelope.ts +194 -0
- package/src/protocol/s2s/extension-sign.test.ts +117 -0
- package/src/protocol/s2s/extension-sign.ts +76 -0
- package/src/protocol/s2s/identity-doc.test.ts +187 -0
- package/src/protocol/s2s/identity-doc.ts +169 -0
- package/src/protocol/s2s/index.ts +15 -0
- package/src/protocol/s2s/kem.ts +62 -0
- package/src/protocol/s2s/keys.test.ts +76 -0
- package/src/protocol/s2s/keys.ts +155 -0
- package/src/protocol/s2s/passkey-cosign.test.ts +98 -0
- package/src/protocol/s2s/passkey-cosign.testing.ts +86 -0
- package/src/protocol/s2s/passkey-cosign.ts +192 -0
- package/src/protocol/s2s/s2s.testing.ts +22 -0
- package/src/protocol/s2s/session.test.ts +133 -0
- package/src/protocol/s2s/session.ts +179 -0
- package/src/protocol/s2s/sign.test.ts +66 -0
- package/src/protocol/s2s/sign.ts +53 -0
- package/src/schemas/activity.ts +2 -1
- package/src/schemas/agent.test.ts +3 -0
- package/src/schemas/agent.ts +10 -4
- package/src/schemas/approvals.ts +41 -0
- package/src/schemas/automations.ts +26 -41
- package/src/schemas/ci-deployments.ts +26 -0
- package/src/schemas/ci.ts +185 -45
- package/src/schemas/command-admission.ts +4 -1
- package/src/schemas/command-run.ts +44 -0
- package/src/schemas/contact-need.ts +26 -0
- package/src/schemas/contacts-settings.ts +16 -0
- package/src/schemas/data-protection.ts +28 -34
- package/src/schemas/device-stacks.ts +162 -3
- package/src/schemas/devices.ts +13 -2
- package/src/schemas/extension-updates.ts +27 -7
- package/src/schemas/host-power.test.ts +53 -0
- package/src/schemas/host-power.ts +96 -2
- package/src/schemas/hosts.test.ts +32 -0
- package/src/schemas/hosts.ts +62 -0
- package/src/schemas/issues.ts +30 -86
- package/src/schemas/links.ts +4 -0
- package/src/schemas/maintenance.ts +4 -3
- package/src/schemas/metrics.ts +35 -0
- package/src/schemas/need-kinds.ts +13 -0
- package/src/schemas/needs.ts +44 -16
- package/src/schemas/offload.ts +31 -0
- package/src/schemas/outward-action.ts +47 -0
- package/src/schemas/providers/plan-limits.ts +1 -0
- package/src/schemas/redirect-need.ts +19 -0
- package/src/schemas/s2s-identity.ts +329 -0
- package/src/schemas/s2s-views.ts +326 -0
- package/src/schemas/s2s-wire.ts +401 -0
- package/src/schemas/s2s.test.ts +175 -0
- package/src/schemas/s2s.ts +9 -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 +23 -23
- package/src/schemas/settings.ts +12 -12
- package/src/schemas/stack-grants.ts +59 -0
- package/src/schemas/terminal.ts +6 -0
- package/src/schemas/version-seam.test.ts +13 -1
- package/src/schemas/vpn.ts +13 -0
- 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 +17 -0
- package/src/state/workspace-state.ts +18 -18
- package/src/text/embed.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 -106
- package/dist/contracts/issues.contract.d.ts.map +0 -1
- package/dist/contracts/issues.contract.js +0 -50
- package/dist/contracts/issues.contract.js.map +0 -1
- package/src/chores/chores.test.ts +0 -24
- package/src/chores/digest.test.ts +0 -27
- package/src/chores/probes.integration.test.ts +0 -494
- package/src/chores/stack.test.ts +0 -140
- package/src/chores/verdict.test.ts +0 -761
- package/src/contracts/chores.contract.ts +0 -39
- package/src/contracts/issues.contract.ts +0 -53
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import { procedure } from "../protocol/route-meta.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
CiDeploymentAnswerSchema,
|
|
4
|
+
CiDeploymentReportSchema,
|
|
5
|
+
CiFailedStepsResponseSchema,
|
|
6
|
+
CiJobAnnotationsResponseSchema,
|
|
7
|
+
CiJobLogResponseSchema,
|
|
8
|
+
CiJobParamSchema,
|
|
6
9
|
CiJobsResponseSchema,
|
|
7
|
-
|
|
10
|
+
CiLocalMainResponseSchema,
|
|
11
|
+
CiMainLineClaimSchema,
|
|
12
|
+
CiMainLinesResponseSchema,
|
|
13
|
+
CiPassedJobsResponseSchema,
|
|
14
|
+
CiRepairHandOverSchema,
|
|
15
|
+
CiRunListParamSchema,
|
|
16
|
+
CiRunListResponseSchema,
|
|
8
17
|
CiRunParamSchema,
|
|
18
|
+
CiRunResponseSchema,
|
|
9
19
|
CiRunsResponseSchema,
|
|
20
|
+
CiRunWorkflowResponseSchema,
|
|
10
21
|
} from "../schemas/ci.js";
|
|
11
22
|
import { OkSchema } from "../schemas/shared.js";
|
|
12
23
|
|
|
13
|
-
// Pipelines on the workspace repos' github/gitlab remotes
|
|
14
|
-
// on-demand backfill; per-repo webhook warnings ride along);
|
|
15
|
-
//
|
|
16
|
-
// (
|
|
17
|
-
//
|
|
24
|
+
// Pipelines on the workspace repos' github/gitlab remotes: CI ingestion, the core's (docs/architecture/core-and-
|
|
25
|
+
// extensions.md). `runs` serves what the forges report (cache + on-demand backfill; per-repo webhook warnings ride along);
|
|
26
|
+
// `rerun`/`cancel`/`dispatch` proxy to the vendor; the forge reads below them are what the pipelines extension's backend
|
|
27
|
+
// (main's fix agent and the Pipelines board) reads through the core's clients and credentials. (2026-11-26) Main's fix
|
|
28
|
+
// agent, `GET /ci/main`, `POST /ci/failures/forget` and `POST /ci/fix` moved to that backend. The public webhook receiver
|
|
29
|
+
// (/ci/webhook/:host) is a plain Hono route, vendors can't do Google ID tokens, so it lives outside this contract, like
|
|
30
|
+
// /automations/{id}/fire.
|
|
18
31
|
export const ciContract = {
|
|
19
32
|
runs: procedure
|
|
20
33
|
.route({
|
|
@@ -25,18 +38,6 @@ export const ciContract = {
|
|
|
25
38
|
"What the forges are reporting for every workspace repo that has a remote, served from a cache and filled in on demand. Repos whose notifications are not wired up say so.",
|
|
26
39
|
})
|
|
27
40
|
.output(CiRunsResponseSchema),
|
|
28
|
-
// The agent token reaches it (`agents ci`): what an agent meeting a failure asks before blaming itself or re-running
|
|
29
|
-
// main. Read from the CI store alone, never the forge, so any number of agents asking costs no API call.
|
|
30
|
-
main: procedure
|
|
31
|
-
.route({
|
|
32
|
-
method: "GET",
|
|
33
|
-
path: "/ci/main",
|
|
34
|
-
summary: "What main's CI is known to fail on now",
|
|
35
|
-
description:
|
|
36
|
-
"Each job failing on a workspace repository's main line, with the run and commit it last failed in, when the daemon read it, and the failing tests and errors its log named. Answered from the runs already heard, without asking the forge; a main line nothing is known of says so.",
|
|
37
|
-
})
|
|
38
|
-
.meta({ agent: true })
|
|
39
|
-
.output(CiMainResponseSchema),
|
|
40
41
|
rerun: procedure
|
|
41
42
|
.route({
|
|
42
43
|
method: "POST",
|
|
@@ -65,33 +66,114 @@ export const ciContract = {
|
|
|
65
66
|
})
|
|
66
67
|
.input(CiRunParamSchema)
|
|
67
68
|
.output(OkSchema),
|
|
68
|
-
|
|
69
|
+
jobs: procedure
|
|
69
70
|
.route({
|
|
70
71
|
method: "POST",
|
|
71
|
-
path: "/ci/
|
|
72
|
-
summary: "
|
|
72
|
+
path: "/ci/runs/jobs",
|
|
73
|
+
summary: "The steps inside one pipeline run",
|
|
73
74
|
description:
|
|
74
|
-
"
|
|
75
|
+
"Each job in a run with its outcome, which is where you look to find out what actually broke. The jobs as the forge reports them; the Pipelines board draws their graph from the run's workflow file.",
|
|
75
76
|
})
|
|
76
|
-
.input(
|
|
77
|
+
.input(CiRunParamSchema)
|
|
78
|
+
.output(CiJobsResponseSchema),
|
|
79
|
+
// (2026-11-26) The forge's word on one run or job, asked now through the core's client (schemas/ci.ts): what main's
|
|
80
|
+
// fix agent reads of a failure, and the board of a run's graph.
|
|
81
|
+
list: procedure
|
|
82
|
+
.route({ method: "POST", path: "/ci/runs/list", summary: "A repository's newest runs", description: "Its newest runs, asked of the forge now rather than read from the cache." })
|
|
83
|
+
.input(CiRunListParamSchema)
|
|
84
|
+
.output(CiRunListResponseSchema),
|
|
85
|
+
run: procedure
|
|
86
|
+
.route({ method: "POST", path: "/ci/runs/run", summary: "One pipeline run", description: "One run as the forge says it is now." })
|
|
87
|
+
.input(CiRunParamSchema)
|
|
88
|
+
.output(CiRunResponseSchema),
|
|
89
|
+
failedSteps: procedure
|
|
90
|
+
.route({
|
|
91
|
+
method: "POST",
|
|
92
|
+
path: "/ci/runs/failed-steps",
|
|
93
|
+
summary: "The failed jobs of one run",
|
|
94
|
+
description: "Each job of the run that failed, with the steps that failed it, the forge's reason and its runner, in the run's order. A job allowed to fail is none of them.",
|
|
95
|
+
})
|
|
96
|
+
.input(CiRunParamSchema)
|
|
97
|
+
.output(CiFailedStepsResponseSchema),
|
|
98
|
+
passedJobs: procedure
|
|
99
|
+
.route({ method: "POST", path: "/ci/runs/passed-jobs", summary: "The passed jobs of one run", description: "The names of the run's jobs that passed." })
|
|
100
|
+
.input(CiRunParamSchema)
|
|
101
|
+
.output(CiPassedJobsResponseSchema),
|
|
102
|
+
rerunFailed: procedure
|
|
103
|
+
.route({ method: "POST", path: "/ci/runs/rerun-failed", summary: "Run a pipeline's failed jobs again", description: "Asks the forge to re-run only the run's failed jobs." })
|
|
104
|
+
.input(CiRunParamSchema)
|
|
77
105
|
.output(OkSchema),
|
|
78
|
-
|
|
106
|
+
workflow: procedure
|
|
79
107
|
.route({
|
|
80
108
|
method: "POST",
|
|
81
|
-
path: "/ci/runs/
|
|
82
|
-
summary: "The
|
|
83
|
-
description: "
|
|
109
|
+
path: "/ci/runs/workflow",
|
|
110
|
+
summary: "The workflow file a run ran",
|
|
111
|
+
description: "The run's workflow file at its commit and every reusable workflow it calls that could be read: what its job graph is drawn from. Empty on a forge without one.",
|
|
84
112
|
})
|
|
85
113
|
.input(CiRunParamSchema)
|
|
86
|
-
.output(
|
|
87
|
-
|
|
114
|
+
.output(CiRunWorkflowResponseSchema),
|
|
115
|
+
jobLog: procedure
|
|
116
|
+
.route({ method: "POST", path: "/ci/jobs/log", summary: "One job's log", description: "The job's whole log as plain text, asked of the forge now." })
|
|
117
|
+
.input(CiJobParamSchema)
|
|
118
|
+
.output(CiJobLogResponseSchema),
|
|
119
|
+
jobAnnotations: procedure
|
|
120
|
+
.route({ method: "POST", path: "/ci/jobs/annotations", summary: "One job's annotations", description: "What the job's check run annotations say, where the forge has them." })
|
|
121
|
+
.input(CiJobParamSchema)
|
|
122
|
+
.output(CiJobAnnotationsResponseSchema),
|
|
123
|
+
mainLines: procedure
|
|
124
|
+
.route({
|
|
125
|
+
method: "GET",
|
|
126
|
+
path: "/ci/main-lines",
|
|
127
|
+
summary: "Each repository's main line",
|
|
128
|
+
description: "Every repository wired to CI and which branch is its main line: the forge's default branch, else the clone's, else main and master both.",
|
|
129
|
+
})
|
|
130
|
+
.output(CiMainLinesResponseSchema),
|
|
131
|
+
// (2026-11-26) Only an extension's own token: the claim is the calling extension's (ci/main-line-claims.ts).
|
|
132
|
+
claimMainLines: procedure
|
|
133
|
+
.route({
|
|
134
|
+
method: "POST",
|
|
135
|
+
path: "/ci/main-lines/claim",
|
|
136
|
+
summary: "Take main lines' failures for an extension",
|
|
137
|
+
description:
|
|
138
|
+
"While the calling extension holds the claim and is switched on, a main line's failure reaches no CI automation listening on every branch, so the extension's own fix agent is the one agent on it. An extension's own token only.",
|
|
139
|
+
})
|
|
140
|
+
.meta({ control: "never", panel: false })
|
|
141
|
+
.input(CiMainLineClaimSchema)
|
|
142
|
+
.output(OkSchema),
|
|
143
|
+
// (2026-11-26) What main's repair kept while it was the daemon's, handed to the extension taking it over, once.
|
|
144
|
+
handOverRepair: procedure
|
|
145
|
+
.route({
|
|
146
|
+
method: "POST",
|
|
147
|
+
path: "/ci/repair/hand-over",
|
|
148
|
+
summary: "Hand main's repair state to an extension",
|
|
149
|
+
description:
|
|
150
|
+
"What the sandbox kept about main's failing CI before its repair moved into an extension: each failing main line with its fix agent and turn counts, the passes, the fleet re-runs and the owner steps. The fix agents' runs become the calling extension's to hear, and an owner's switch that turned repairs off becomes its own setting of the same name. An extension's own token only.",
|
|
151
|
+
})
|
|
152
|
+
.meta({ control: "never", panel: false })
|
|
153
|
+
.output(CiRepairHandOverSchema),
|
|
154
|
+
// The agent token reaches it (`agents ci`): beside main's CI, which the pipelines extension follows, what this
|
|
155
|
+
// sandbox's own test runs saw fail at main commits (output-cleaners' test outcomes, under the history root).
|
|
156
|
+
localMain: procedure
|
|
157
|
+
.route({
|
|
158
|
+
method: "GET",
|
|
159
|
+
path: "/ci/main/local",
|
|
160
|
+
summary: "What this sandbox's own test runs saw fail at main",
|
|
161
|
+
description:
|
|
162
|
+
"What the test runs recorded on clean trees at main commits saw fail, newest main commit per repository, suites CI does not run included: rows, and the same in words.",
|
|
163
|
+
})
|
|
164
|
+
.meta({ agent: true })
|
|
165
|
+
.output(CiLocalMainResponseSchema),
|
|
166
|
+
// (2026-11-25) A deployment told to the repository's forge (schemas/ci.ts CiDeploymentReportSchema): how the
|
|
167
|
+
// Deployments extension shows a managed stack's deploys on GitHub or GitLab, through the CI board's own connection.
|
|
168
|
+
reportDeployment: procedure
|
|
88
169
|
.route({
|
|
89
170
|
method: "POST",
|
|
90
|
-
path: "/ci/
|
|
91
|
-
summary: "
|
|
171
|
+
path: "/ci/deployments",
|
|
172
|
+
summary: "Tell the forge a commit was deployed",
|
|
92
173
|
description:
|
|
93
|
-
"
|
|
174
|
+
"Shows on the repository's forge that a commit went to an environment and how it is going: a Deployment and its statuses on GitHub, a `deploy/<environment>` commit status on GitLab. A token without the scope is refused in the forge's own words.",
|
|
94
175
|
})
|
|
95
|
-
.
|
|
96
|
-
.
|
|
176
|
+
.meta({ control: "never", panel: false })
|
|
177
|
+
.input(CiDeploymentReportSchema)
|
|
178
|
+
.output(CiDeploymentAnswerSchema),
|
|
97
179
|
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
+
import {
|
|
3
|
+
DeviceHostStatsInputSchema,
|
|
4
|
+
DeviceStackDeployInputSchema,
|
|
5
|
+
DeviceStackDeployResultSchema,
|
|
6
|
+
DeviceStackLogsInputSchema,
|
|
7
|
+
DeviceStackManagedDeployInputSchema,
|
|
8
|
+
DeviceStackManagedDeployResultSchema,
|
|
9
|
+
DeviceStackOpInputSchema,
|
|
10
|
+
DeviceStacksInputSchema,
|
|
11
|
+
DeviceStacksSchema,
|
|
12
|
+
HostStatsSchema,
|
|
13
|
+
StackLogsSchema,
|
|
14
|
+
StackOpResultSchema,
|
|
15
|
+
} from "../schemas/device-stacks.js";
|
|
16
|
+
|
|
17
|
+
// DOCKER COMPOSE STACKS ON A CONNECTED COMPUTER (schemas/device-stacks.ts): what the Deployments board reads and drives
|
|
18
|
+
// where no Komodo stands between, and the managed deploy its engine stands on. Part of the system contract
|
|
19
|
+
// (system.contract.ts spreads these in), kept in a module of their own as the device boards grow.
|
|
20
|
+
|
|
21
|
+
// The box itself, as every system route: no control token reaches these whatever the floor.
|
|
22
|
+
const systemRoute = procedure.meta({ control: "never" });
|
|
23
|
+
|
|
24
|
+
export const deviceStackRoutes = {
|
|
25
|
+
deviceStacks: systemRoute
|
|
26
|
+
.route({
|
|
27
|
+
method: "GET",
|
|
28
|
+
path: "/system/devices/{id}/stacks",
|
|
29
|
+
summary: "The Docker compose stacks on one of your devices",
|
|
30
|
+
description:
|
|
31
|
+
"Every Docker compose project on a computer you connected, with each service's container, image and state, and the folder this sandbox deploys stacks into there. Intentic's own sandboxes are marked rather than left out. Needs that computer's \"Run commands\" switch.",
|
|
32
|
+
})
|
|
33
|
+
.meta({ floor: "maintainer", panel: false })
|
|
34
|
+
.input(DeviceStacksInputSchema)
|
|
35
|
+
.output(DeviceStacksSchema),
|
|
36
|
+
// Up, restart, start, stop, or pull-then-up; nothing here removes a stack or a volume.
|
|
37
|
+
deviceStackOp: systemRoute
|
|
38
|
+
.route({
|
|
39
|
+
method: "POST",
|
|
40
|
+
path: "/system/devices/{id}/stacks/{name}/ops/{op}",
|
|
41
|
+
summary: "Start, stop, restart or update a stack on one of your devices",
|
|
42
|
+
description:
|
|
43
|
+
"Runs `docker compose` for one stack on a computer you connected: `up` applies its files, `pull` fetches newer images and then applies, and `restart`, `start` and `stop` do what they say. Nothing here removes a stack or its volumes. Needs that computer's \"Run commands\" switch.",
|
|
44
|
+
})
|
|
45
|
+
.meta({ panel: false })
|
|
46
|
+
.input(DeviceStackOpInputSchema)
|
|
47
|
+
.output(StackOpResultSchema),
|
|
48
|
+
// Floored like the actions, though it only reads: a log can hold anything the service printed.
|
|
49
|
+
deviceStackLogs: systemRoute
|
|
50
|
+
.route({
|
|
51
|
+
method: "GET",
|
|
52
|
+
path: "/system/devices/{id}/stacks/{name}/logs",
|
|
53
|
+
summary: "The recent log of a stack on one of your devices",
|
|
54
|
+
description: "The last lines every service of one compose stack printed, oldest first, as `docker compose logs` gives them.",
|
|
55
|
+
})
|
|
56
|
+
.meta({ floor: "maintainer", panel: false })
|
|
57
|
+
.input(DeviceStackLogsInputSchema)
|
|
58
|
+
.output(StackLogsSchema),
|
|
59
|
+
// The repository's committed tree, packed here, carried over the device link and brought up there with `--build`.
|
|
60
|
+
deployDeviceStack: systemRoute
|
|
61
|
+
.route({
|
|
62
|
+
method: "POST",
|
|
63
|
+
path: "/system/devices/{id}/stacks/{name}/deploy",
|
|
64
|
+
summary: "Deploy a workspace repository to one of your devices",
|
|
65
|
+
description:
|
|
66
|
+
"Packs the committed tree (HEAD) of a workspace repository, carries it to a computer you connected and runs it there as a Docker compose stack of the given name, building its images on that computer. Uncommitted changes are not deployed. A `.env` already in the stack's folder there is kept: secrets are placed into it by an agent, never sent with a deploy. Needs that computer's \"Run commands\" and \"Run programs this sandbox sends\" switches.",
|
|
67
|
+
})
|
|
68
|
+
.meta({ panel: false })
|
|
69
|
+
.input(DeviceStackDeployInputSchema)
|
|
70
|
+
.output(DeviceStackDeployResultSchema),
|
|
71
|
+
// (2026-11-25) A MANAGED deploy (schemas/device-stacks.ts): the Deployments extension's engine sends the stack's
|
|
72
|
+
// definition with `{{secret:…}}` references, and the daemon fills them under the stack's grant (stack-grants.ts),
|
|
73
|
+
// packs the repository at the commit and relays the machine's deploy. The one door through which a secret's value
|
|
74
|
+
// reaches a server unattended; no value comes back.
|
|
75
|
+
deployManagedDeviceStack: systemRoute
|
|
76
|
+
.route({
|
|
77
|
+
method: "POST",
|
|
78
|
+
path: "/system/devices/{id}/stacks/{name}/deploy-managed",
|
|
79
|
+
summary: "Deploy a managed stack to one of your devices",
|
|
80
|
+
description:
|
|
81
|
+
"Deploys a workspace repository at a commit to a computer you connected as a Docker compose stack, writing its `.env` and registry logins there with the secret values the stack was granted, and waits for it to come up healthy. Refused, naming the secrets, when the stack's grant does not cover one it reads. Needs that computer's \"Run commands\" and \"Run programs this sandbox sends\" switches and an agent that manages stacks.",
|
|
82
|
+
})
|
|
83
|
+
.meta({ floor: "maintainer", panel: false })
|
|
84
|
+
.input(DeviceStackManagedDeployInputSchema)
|
|
85
|
+
.output(DeviceStackManagedDeployResultSchema),
|
|
86
|
+
// Disk, memory and load of a connected computer, for the Deployments monitor's alerts.
|
|
87
|
+
deviceHostStats: systemRoute
|
|
88
|
+
.route({
|
|
89
|
+
method: "GET",
|
|
90
|
+
path: "/system/devices/{id}/host-stats",
|
|
91
|
+
summary: "Disk, memory and load on one of your devices",
|
|
92
|
+
description: "Free space under Docker's data root and the stacks folder, available memory, load and CPU count. Needs that computer's \"Run commands\" switch.",
|
|
93
|
+
})
|
|
94
|
+
.meta({ floor: "maintainer", panel: false })
|
|
95
|
+
.input(DeviceHostStatsInputSchema)
|
|
96
|
+
.output(HostStatsSchema),
|
|
97
|
+
};
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
ExtensionsListSchema,
|
|
18
18
|
ExtensionUpdateActionSchema,
|
|
19
19
|
ExtensionUpdateAppliedSchema,
|
|
20
|
+
ExtensionUpdateDefaultsInputSchema,
|
|
20
21
|
ExtensionUpdatePolicyInputSchema,
|
|
21
22
|
ExtensionUpdatePreviewSchema,
|
|
22
23
|
ExtensionUpdatesCheckedSchema,
|
|
@@ -190,6 +191,16 @@ export const extensionsContract = {
|
|
|
190
191
|
})
|
|
191
192
|
.input(ExtensionUpdatePolicyInputSchema)
|
|
192
193
|
.output(OkSchema),
|
|
194
|
+
setUpdateDefaults: procedure
|
|
195
|
+
.route({
|
|
196
|
+
method: "POST",
|
|
197
|
+
path: "/extensions/update-policy",
|
|
198
|
+
summary: "Whether extensions update by themselves",
|
|
199
|
+
description:
|
|
200
|
+
"The sandbox's answer for every extension installed from a repository that has no answer of its own. Automatic takes a release with the same powers by itself and leaves one that asks for more to you.",
|
|
201
|
+
})
|
|
202
|
+
.input(ExtensionUpdateDefaultsInputSchema)
|
|
203
|
+
.output(OkSchema),
|
|
193
204
|
// Declared via `contributes.processes`; the terminals list shows each one's log as `svc-ext-<id>-<name>`.
|
|
194
205
|
processStatus: procedure
|
|
195
206
|
.route({
|
|
@@ -11,6 +11,9 @@ import {
|
|
|
11
11
|
SecretKeyParamSchema,
|
|
12
12
|
SecretGeneratedSchema,
|
|
13
13
|
SecretGenerateSchema,
|
|
14
|
+
SecretImportSchema,
|
|
15
|
+
SecretMarksRequestSchema,
|
|
16
|
+
SecretMarksResponseSchema,
|
|
14
17
|
SecretRegenerateSchema,
|
|
15
18
|
SecretHostGuardSetResultSchema,
|
|
16
19
|
SecretHostGuardSetSchema,
|
|
@@ -63,6 +66,30 @@ export const secretsContract = {
|
|
|
63
66
|
.meta({ agent: true })
|
|
64
67
|
.input(SecretGenerateSchema)
|
|
65
68
|
.output(SecretGeneratedSchema),
|
|
69
|
+
importValue: secretRoute
|
|
70
|
+
.route({
|
|
71
|
+
method: "POST",
|
|
72
|
+
path: "/secrets/import",
|
|
73
|
+
summary: "Store a value under a new name",
|
|
74
|
+
description:
|
|
75
|
+
"Stores a value read from the `secrets import` command's input under a name nothing here holds yet, where `set` would have put it: how a value moves from where it lives now (another orchestrator's variables, a file on a server) without passing through the chat. Answers the name and its length, never the value. Refused for a name something here already holds, so it can add a credential and never replace one.",
|
|
76
|
+
})
|
|
77
|
+
// (2026-11-25) The `secrets import` CLI, on the agent token; withheld from the panel token, as `set` is.
|
|
78
|
+
.meta({ agent: true, panel: false })
|
|
79
|
+
.input(SecretImportSchema)
|
|
80
|
+
.output(SecretGeneratedSchema),
|
|
81
|
+
// (2026-11-25) Keyed marks of named values (schemas/secrets.ts), never the values: how the Deployments extension tells
|
|
82
|
+
// that a secret a stack received changed since. An extension reaches it by declaring it; not the agent, not a panel.
|
|
83
|
+
marks: procedure
|
|
84
|
+
.route({
|
|
85
|
+
method: "POST",
|
|
86
|
+
path: "/secrets/marks",
|
|
87
|
+
summary: "A keyed mark of each named secret's value",
|
|
88
|
+
description: "An HMAC of each value under a key only this sandbox holds, so two marks compare equal exactly when the value is unchanged. Never the value.",
|
|
89
|
+
})
|
|
90
|
+
.meta({ floor: "maintainer", control: "never", panel: false })
|
|
91
|
+
.input(SecretMarksRequestSchema)
|
|
92
|
+
.output(SecretMarksResponseSchema),
|
|
66
93
|
regenerate: secretRoute
|
|
67
94
|
.route({
|
|
68
95
|
method: "POST",
|
|
@@ -20,6 +20,8 @@ import {
|
|
|
20
20
|
TimezoneOfferSchema,
|
|
21
21
|
TimezoneStateSchema,
|
|
22
22
|
} from "../schemas/settings.js";
|
|
23
|
+
import { ModelRolesSchema } from "../models/model-roles.js";
|
|
24
|
+
import { OutwardActionsSchema } from "../schemas/data-protection.js";
|
|
23
25
|
import { OkSchema } from "../schemas/shared.js";
|
|
24
26
|
import { DayWindowQuerySchema } from "../schemas/providers/usage.js";
|
|
25
27
|
|
|
@@ -92,6 +94,28 @@ export const settingsContract = {
|
|
|
92
94
|
"A separate read rather than a field on the settings, because a rule firing is not somebody editing anything: folding it in would turn every firing into a settings write and put a self-changing value inside the object a screen edits.",
|
|
93
95
|
})
|
|
94
96
|
.output(RuleFiringsSchema),
|
|
97
|
+
// Read off the enabled extensions' manifests, not out of the settings file: the rules are the owner's, the actions
|
|
98
|
+
// they can be written for are each extension's own declaration (2026-11-25).
|
|
99
|
+
outwardActions: procedure
|
|
100
|
+
.route({
|
|
101
|
+
method: "GET",
|
|
102
|
+
path: "/settings/outward-actions",
|
|
103
|
+
summary: "What the action rules can be written for",
|
|
104
|
+
description:
|
|
105
|
+
"Every outward action the enabled extensions declare (send a Slack message, upload to OneDrive), by the key an action rule for it is written under. Reads are left out: a rule on one would hold a bot reading its own channel.",
|
|
106
|
+
})
|
|
107
|
+
.output(OutwardActionsSchema),
|
|
108
|
+
// Read off the extensions' manifests, not out of the settings file: which setup a job runs on is the owner's, the jobs
|
|
109
|
+
// there are are the sandbox's own and each extension's declaration (2026-11-26).
|
|
110
|
+
modelRoles: procedure
|
|
111
|
+
.route({
|
|
112
|
+
method: "GET",
|
|
113
|
+
path: "/settings/model-roles",
|
|
114
|
+
summary: "The jobs a model setup can be chosen for",
|
|
115
|
+
description:
|
|
116
|
+
"Every job this sandbox picks a model for: its own (commit messages, the safety judge, loop iterations), then each installed extension's (`contributes.modelRoles`: pipeline fixes, maintenance chores), with whether that extension is switched on. A switched-off extension's job stays listed so the owner's choice for it is kept, and is not shown.",
|
|
117
|
+
})
|
|
118
|
+
.output(ModelRolesSchema),
|
|
95
119
|
// Read off the repositories themselves, not out of the settings file: the declaration is a tracked file in each
|
|
96
120
|
// repository, and only the owner's answer to it lives here.
|
|
97
121
|
repoChecks: procedure
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
+
import { NeedRaisedSchema } from "../schemas/needs.js";
|
|
3
|
+
import { OkSchema } from "../schemas/shared.js";
|
|
4
|
+
import { StackGrantRefSchema, StackGrantRequestSchema, StackGrantSetSchema, StackGrantsResponseSchema } from "../schemas/stack-grants.js";
|
|
5
|
+
|
|
6
|
+
// WHICH SECRETS EACH MANAGED STACK MAY RECEIVE (schemas/stack-grants.ts). Reading the grants reaches an extension (the
|
|
7
|
+
// Deployments board shows what is missing) and the agent; granting and revoking are the owner's alone, never a machine
|
|
8
|
+
// credential's, and the handlers hold the caller to the Secrets right again. An agent asks on a card instead.
|
|
9
|
+
const grantRoute = procedure.meta({ control: "never", panel: false });
|
|
10
|
+
|
|
11
|
+
export const stackGrantsContract = {
|
|
12
|
+
list: grantRoute
|
|
13
|
+
.route({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/stack-grants",
|
|
16
|
+
summary: "Which secrets each managed stack may receive",
|
|
17
|
+
description: "Every grant: the repository, stack and computer it is for, and the secret names it covers. Names only, never a value.",
|
|
18
|
+
})
|
|
19
|
+
.meta({ agent: true })
|
|
20
|
+
.output(StackGrantsResponseSchema),
|
|
21
|
+
request: grantRoute
|
|
22
|
+
.route({
|
|
23
|
+
method: "POST",
|
|
24
|
+
path: "/stack-grants/request",
|
|
25
|
+
summary: "Ask the owner to let a stack receive some secrets",
|
|
26
|
+
description:
|
|
27
|
+
"Raises a card in the asking conversation listing the names; the owner's yes grants exactly those, for that stack from that repository on that computer.",
|
|
28
|
+
})
|
|
29
|
+
.meta({ agent: true, floor: "maintainer" })
|
|
30
|
+
.input(StackGrantRequestSchema)
|
|
31
|
+
.output(NeedRaisedSchema),
|
|
32
|
+
grant: grantRoute
|
|
33
|
+
.route({
|
|
34
|
+
method: "POST",
|
|
35
|
+
path: "/stack-grants/grant",
|
|
36
|
+
summary: "Let a stack receive these secrets",
|
|
37
|
+
})
|
|
38
|
+
.meta({ floor: "maintainer", right: "secrets" })
|
|
39
|
+
.input(StackGrantSetSchema)
|
|
40
|
+
.output(StackGrantsResponseSchema),
|
|
41
|
+
revoke: grantRoute
|
|
42
|
+
.route({
|
|
43
|
+
method: "POST",
|
|
44
|
+
path: "/stack-grants/revoke",
|
|
45
|
+
summary: "Stop a stack receiving secrets",
|
|
46
|
+
description: "Its next managed deploy is refused until granted again; what already runs keeps its `.env`.",
|
|
47
|
+
})
|
|
48
|
+
.meta({ floor: "maintainer", right: "secrets" })
|
|
49
|
+
.input(StackGrantRefSchema)
|
|
50
|
+
.output(OkSchema),
|
|
51
|
+
};
|
|
@@ -10,17 +10,8 @@ import {
|
|
|
10
10
|
DeviceSandboxFlowInputSchema,
|
|
11
11
|
DevicesListSchema,
|
|
12
12
|
} from "../schemas/devices.js";
|
|
13
|
-
import {
|
|
14
|
-
DeviceStackDeployInputSchema,
|
|
15
|
-
DeviceStackDeployResultSchema,
|
|
16
|
-
DeviceStackLogsInputSchema,
|
|
17
|
-
DeviceStackOpInputSchema,
|
|
18
|
-
DeviceStacksInputSchema,
|
|
19
|
-
DeviceStacksSchema,
|
|
20
|
-
StackLogsSchema,
|
|
21
|
-
StackOpResultSchema,
|
|
22
|
-
} from "../schemas/device-stacks.js";
|
|
23
13
|
import { deviceCiRunnerRoutes } from "./device-ci-runners.contract.js";
|
|
14
|
+
import { deviceStackRoutes } from "./device-stacks.contract.js";
|
|
24
15
|
import { EgressOwnerKeysReadSchema } from "../schemas/egress.js";
|
|
25
16
|
import { SandboxReachSchema } from "../schemas/sandbox-reach.js";
|
|
26
17
|
import { PresenceReportSchema } from "../schemas/logs.js";
|
|
@@ -28,6 +19,7 @@ import {
|
|
|
28
19
|
CheckoutPressInputSchema,
|
|
29
20
|
CheckoutPressResultSchema,
|
|
30
21
|
DiskPressureSchema,
|
|
22
|
+
MemoryReclaimResultSchema,
|
|
31
23
|
SandboxMetricsSchema,
|
|
32
24
|
StorageCleanInputSchema,
|
|
33
25
|
StorageCleanResultSchema,
|
|
@@ -294,6 +286,18 @@ export const systemContract = {
|
|
|
294
286
|
})
|
|
295
287
|
.input(CheckoutPressInputSchema)
|
|
296
288
|
.output(CheckoutPressResultSchema),
|
|
289
|
+
// (2026-11-26) The composer's "Free memory" press while the computer under this sandbox is short (offload.placement
|
|
290
|
+
// `reclaim`). The owner's alone: it empties caches every conversation here was reading from.
|
|
291
|
+
reclaimMemory: systemRoute
|
|
292
|
+
.route({
|
|
293
|
+
method: "POST",
|
|
294
|
+
path: "/system/memory/reclaim",
|
|
295
|
+
summary: "Give memory back to the computer this sandbox runs on",
|
|
296
|
+
description:
|
|
297
|
+
"Has this sandbox let go of memory it can do without (cached files first) now, and says how much it let go and what the computer it runs on had available just before and a few seconds after. On a Windows PC much of what a sandbox lets go stays inside the WSL VM, so the answer can be that Windows got none of it. Refused, with why, where that computer says nothing of its memory, where the kernel takes no reclaim, or while this sandbox is short of memory itself.",
|
|
298
|
+
})
|
|
299
|
+
.meta({ floor: "owner", panel: false })
|
|
300
|
+
.output(MemoryReclaimResultSchema),
|
|
297
301
|
// Control plane only; live I/O is /system/terminal WebSocket, exempt from the Bearer auth these routes take.
|
|
298
302
|
terminals: systemRoute
|
|
299
303
|
.route({
|
|
@@ -529,55 +533,8 @@ export const systemContract = {
|
|
|
529
533
|
})
|
|
530
534
|
.input(DeviceAgentFlowInputSchema)
|
|
531
535
|
.output(streamOf(DeviceFlowLineSchema)),
|
|
532
|
-
// Docker compose stacks on a connected computer (
|
|
533
|
-
|
|
534
|
-
// adds no opinion beyond the floor, so a refusal arrives in the machine's words, naming the switch to flip.
|
|
535
|
-
deviceStacks: systemRoute
|
|
536
|
-
.route({
|
|
537
|
-
method: "GET",
|
|
538
|
-
path: "/system/devices/{id}/stacks",
|
|
539
|
-
summary: "The Docker compose stacks on one of your devices",
|
|
540
|
-
description:
|
|
541
|
-
"Every Docker compose project on a computer you connected, with each service's container, image and state, and the folder this sandbox deploys stacks into there. Intentic's own sandboxes are marked rather than left out. Needs that computer's \"Run commands\" switch.",
|
|
542
|
-
})
|
|
543
|
-
.meta({ floor: "maintainer", panel: false })
|
|
544
|
-
.input(DeviceStacksInputSchema)
|
|
545
|
-
.output(DeviceStacksSchema),
|
|
546
|
-
// Up, restart, start, stop, or pull-then-up; nothing here removes a stack or a volume.
|
|
547
|
-
deviceStackOp: systemRoute
|
|
548
|
-
.route({
|
|
549
|
-
method: "POST",
|
|
550
|
-
path: "/system/devices/{id}/stacks/{name}/ops/{op}",
|
|
551
|
-
summary: "Start, stop, restart or update a stack on one of your devices",
|
|
552
|
-
description:
|
|
553
|
-
"Runs `docker compose` for one stack on a computer you connected: `up` applies its files, `pull` fetches newer images and then applies, and `restart`, `start` and `stop` do what they say. Nothing here removes a stack or its volumes. Needs that computer's \"Run commands\" switch.",
|
|
554
|
-
})
|
|
555
|
-
.meta({ panel: false })
|
|
556
|
-
.input(DeviceStackOpInputSchema)
|
|
557
|
-
.output(StackOpResultSchema),
|
|
558
|
-
// Floored like the actions, though it only reads: a log can hold anything the service printed.
|
|
559
|
-
deviceStackLogs: systemRoute
|
|
560
|
-
.route({
|
|
561
|
-
method: "GET",
|
|
562
|
-
path: "/system/devices/{id}/stacks/{name}/logs",
|
|
563
|
-
summary: "The recent log of a stack on one of your devices",
|
|
564
|
-
description: "The last lines every service of one compose stack printed, oldest first, as `docker compose logs` gives them.",
|
|
565
|
-
})
|
|
566
|
-
.meta({ floor: "maintainer", panel: false })
|
|
567
|
-
.input(DeviceStackLogsInputSchema)
|
|
568
|
-
.output(StackLogsSchema),
|
|
569
|
-
// The repository's committed tree, packed here, carried over the device link and brought up there with `--build`.
|
|
570
|
-
deployDeviceStack: systemRoute
|
|
571
|
-
.route({
|
|
572
|
-
method: "POST",
|
|
573
|
-
path: "/system/devices/{id}/stacks/{name}/deploy",
|
|
574
|
-
summary: "Deploy a workspace repository to one of your devices",
|
|
575
|
-
description:
|
|
576
|
-
"Packs the committed tree (HEAD) of a workspace repository, carries it to a computer you connected and runs it there as a Docker compose stack of the given name, building its images on that computer. Uncommitted changes are not deployed. A `.env` already in the stack's folder there is kept: secrets are placed into it by an agent, never sent with a deploy. Needs that computer's \"Run commands\" and \"Run programs this sandbox sends\" switches.",
|
|
577
|
-
})
|
|
578
|
-
.meta({ panel: false })
|
|
579
|
-
.input(DeviceStackDeployInputSchema)
|
|
580
|
-
.output(DeviceStackDeployResultSchema),
|
|
536
|
+
// Docker compose stacks on a connected computer (device-stacks.contract.ts).
|
|
537
|
+
...deviceStackRoutes,
|
|
581
538
|
// The self-hosted CI runners on a connected computer, for the Pipelines view (device-ci-runners.contract.ts).
|
|
582
539
|
...deviceCiRunnerRoutes,
|
|
583
540
|
};
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
TemplatesListSchema,
|
|
16
16
|
WorkspaceSyncSchema,
|
|
17
17
|
} from "../schemas/workspace/workspace-repos.js";
|
|
18
|
-
import { PackageModulesParamSchema, PackageModulesSchema, WorkspaceGraphSchema } from "../schemas/workspace/workspace-graph.js";
|
|
19
18
|
import { WorkspaceSearchFrameSchema, WorkspaceSearchQuerySchema, WorkspaceSearchResultSchema } from "../schemas/workspace/workspace-search.js";
|
|
20
19
|
import { WorkspaceInstallResultSchema, WorkspaceInstallSchema, WorkspaceSetupSchema } from "../schemas/workspace/workspace-setup.js";
|
|
21
20
|
import {
|
|
@@ -380,27 +379,6 @@ export const workspaceContract = {
|
|
|
380
379
|
})
|
|
381
380
|
.input(RepoAppsParamSchema)
|
|
382
381
|
.output(AppsListSchema),
|
|
383
|
-
// The monorepo's package dependency graph, from pnpm-workspace.yaml globs and each package.json's deps.
|
|
384
|
-
packageGraph: procedure
|
|
385
|
-
.route({
|
|
386
|
-
method: "GET",
|
|
387
|
-
path: "/workspace/repos/{repo}/graph",
|
|
388
|
-
summary: "How a repo's packages depend on each other",
|
|
389
|
-
description: "Every package in one multi-package repo and which of its siblings each one uses, which is what a dependency view draws.",
|
|
390
|
-
})
|
|
391
|
-
.input(RepoAppsParamSchema)
|
|
392
|
-
.output(WorkspaceGraphSchema),
|
|
393
|
-
// One package's modules grouped into units, and the value imports between them, placed in its declared layers.
|
|
394
|
-
packageModules: procedure
|
|
395
|
-
.route({
|
|
396
|
-
method: "GET",
|
|
397
|
-
path: "/workspace/repos/{repo}/layers",
|
|
398
|
-
summary: "How one package's modules import each other",
|
|
399
|
-
description:
|
|
400
|
-
"One workspace package's source directories as units, the value imports between them, and the layers its layers.json declares, which is what a view of its insides draws.",
|
|
401
|
-
})
|
|
402
|
-
.input(PackageModulesParamSchema)
|
|
403
|
-
.output(PackageModulesSchema),
|
|
404
382
|
// Every repo's package dirs in one call, since a review spans repos and per-repo would fan out per open.
|
|
405
383
|
modules: procedure
|
|
406
384
|
.route({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { oneLine } from "@intentic/base/one-line";
|
|
2
2
|
import type { SubagentVerification } from "../schemas/terminal.js";
|
|
3
3
|
import type { TranscriptAgentWords, TranscriptRow } from "./transcript.js";
|
|
4
|
+
import { childNewsRow } from "./child-news.js";
|
|
4
5
|
import { needWakeRow } from "./need-wake.js";
|
|
5
6
|
import { watchWakeRow } from "./watch-wake.js";
|
|
6
7
|
|
|
@@ -221,4 +222,5 @@ export const agentWordsRow = (prompt: string): TranscriptRow | undefined => {
|
|
|
221
222
|
};
|
|
222
223
|
|
|
223
224
|
/** The row for a prompt nobody at the composer typed; every transcript reader asks this one function. */
|
|
224
|
-
export const unspokenPromptRow = (prompt: string): TranscriptRow | undefined =>
|
|
225
|
+
export const unspokenPromptRow = (prompt: string): TranscriptRow | undefined =>
|
|
226
|
+
watchWakeRow(prompt) ?? needWakeRow(prompt) ?? agentWordsRow(prompt) ?? childNewsRow(prompt);
|