@intentic/sandbox-contract 1.429.0 → 1.431.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/app-routes/app-pages.d.ts +1 -0
- package/dist/app-routes/app-pages.d.ts.map +1 -1
- package/dist/app-routes/app-pages.js +1 -0
- package/dist/app-routes/app-pages.js.map +1 -1
- package/dist/app-routes/index.d.ts +1 -0
- package/dist/app-routes/index.d.ts.map +1 -1
- package/dist/app-routes/index.js +1 -0
- package/dist/app-routes/index.js.map +1 -1
- package/dist/app-routes/return-path.d.ts +2 -0
- package/dist/app-routes/return-path.d.ts.map +1 -0
- package/dist/app-routes/return-path.js +8 -0
- package/dist/app-routes/return-path.js.map +1 -0
- package/dist/contracts/accounts.contract.d.ts +7 -0
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/accounts.contract.js +2 -0
- package/dist/contracts/accounts.contract.js.map +1 -1
- package/dist/contracts/agent.contract.d.ts +381 -0
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +3297 -1568
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +35 -5
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/automations.contract.d.ts +31 -0
- package/dist/contracts/automations.contract.d.ts.map +1 -1
- package/dist/contracts/automations.contract.js +1 -0
- package/dist/contracts/automations.contract.js.map +1 -1
- package/dist/contracts/bookmarks.contract.d.ts +101 -0
- package/dist/contracts/bookmarks.contract.d.ts.map +1 -0
- package/dist/contracts/bookmarks.contract.js +51 -0
- package/dist/contracts/bookmarks.contract.js.map +1 -0
- package/dist/contracts/browser.contract.d.ts +176 -0
- package/dist/contracts/browser.contract.d.ts.map +1 -0
- package/dist/contracts/browser.contract.js +150 -0
- package/dist/contracts/browser.contract.js.map +1 -0
- package/dist/contracts/capabilities.contract.d.ts +48 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.js +3 -1
- package/dist/contracts/capabilities.contract.js.map +1 -1
- package/dist/contracts/device-ci-runners.contract.d.ts +108 -0
- package/dist/contracts/device-ci-runners.contract.d.ts.map +1 -0
- package/dist/contracts/device-ci-runners.contract.js +56 -0
- package/dist/contracts/device-ci-runners.contract.js.map +1 -0
- package/dist/contracts/device.contract.d.ts +87 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/device.contract.js +4 -0
- package/dist/contracts/device.contract.js.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +1 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.js +1 -1
- package/dist/contracts/extensions.contract.js.map +1 -1
- package/dist/contracts/git.contract.d.ts +7 -0
- package/dist/contracts/git.contract.d.ts.map +1 -1
- package/dist/contracts/issues.contract.d.ts +11 -0
- package/dist/contracts/issues.contract.d.ts.map +1 -1
- package/dist/contracts/needs.contract.d.ts +408 -0
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.d.ts +4 -0
- package/dist/contracts/offload.contract.d.ts.map +1 -1
- package/dist/contracts/ports.contract.d.ts +8 -0
- package/dist/contracts/ports.contract.d.ts.map +1 -1
- package/dist/contracts/ports.contract.js +6 -5
- package/dist/contracts/ports.contract.js.map +1 -1
- package/dist/contracts/remote.contract.d.ts +121 -0
- package/dist/contracts/remote.contract.d.ts.map +1 -0
- package/dist/contracts/remote.contract.js +80 -0
- package/dist/contracts/remote.contract.js.map +1 -0
- package/dist/contracts/runner.contract.d.ts +716 -15
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.js +49 -2
- package/dist/contracts/runner.contract.js.map +1 -1
- package/dist/contracts/runners.contract.d.ts +16 -0
- package/dist/contracts/runners.contract.d.ts.map +1 -0
- package/dist/contracts/runners.contract.js +15 -0
- package/dist/contracts/runners.contract.js.map +1 -0
- package/dist/contracts/safety.contract.d.ts.map +1 -1
- package/dist/contracts/safety.contract.js +1 -0
- package/dist/contracts/safety.contract.js.map +1 -1
- package/dist/contracts/seal.contract.d.ts +105 -0
- package/dist/contracts/seal.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +6 -0
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +48 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +28 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +1 -0
- package/dist/contracts/settings.contract.js.map +1 -1
- package/dist/contracts/skills.contract.d.ts +6 -0
- package/dist/contracts/skills.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +482 -4
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +70 -3
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/translator.contract.d.ts +7 -0
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.d.ts +3 -0
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +194 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +2 -2
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/agent-transcript.d.ts +48 -0
- package/dist/events/agent-transcript.d.ts.map +1 -1
- package/dist/events/agent-words.d.ts +5 -0
- package/dist/events/agent-words.d.ts.map +1 -1
- package/dist/events/agent-words.js +20 -1
- package/dist/events/agent-words.js.map +1 -1
- package/dist/events/failure-rows.d.ts +2 -2
- package/dist/events/failure-rows.d.ts.map +1 -1
- package/dist/events/failure-rows.js +13 -13
- package/dist/events/failure-rows.js.map +1 -1
- package/dist/events/refusal-incidents.d.ts +1 -0
- package/dist/events/refusal-incidents.d.ts.map +1 -1
- package/dist/events/refusal-incidents.js +42 -19
- package/dist/events/refusal-incidents.js.map +1 -1
- package/dist/events/resume.d.ts.map +1 -1
- package/dist/events/resume.js +12 -12
- package/dist/events/resume.js.map +1 -1
- package/dist/events/sandbox-notice.d.ts.map +1 -1
- package/dist/events/sandbox-notice.js.map +1 -1
- package/dist/events/system-events.d.ts +102 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +240 -0
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/ids/conversation-ids.d.ts +1 -0
- package/dist/ids/conversation-ids.d.ts.map +1 -1
- package/dist/ids/conversation-ids.js +2 -1
- package/dist/ids/conversation-ids.js.map +1 -1
- package/dist/ids/project-id.d.ts.map +1 -1
- package/dist/ids/project-id.js +4 -4
- package/dist/ids/project-id.js.map +1 -1
- package/dist/ids/run-row-ids.d.ts +8 -0
- package/dist/ids/run-row-ids.d.ts.map +1 -0
- package/dist/ids/run-row-ids.js +32 -0
- package/dist/ids/run-row-ids.js.map +1 -0
- package/dist/index.d.ts +12 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/models/agent-catalog.d.ts.map +1 -1
- package/dist/models/agent-catalog.js +3 -2
- package/dist/models/agent-catalog.js.map +1 -1
- package/dist/models/agent-lanes.d.ts.map +1 -1
- package/dist/models/agent-lanes.js +4 -1
- package/dist/models/agent-lanes.js.map +1 -1
- package/dist/models/agent-runtimes.d.ts.map +1 -1
- package/dist/models/agent-runtimes.js +2 -2
- package/dist/models/agent-runtimes.js.map +1 -1
- package/dist/models/agent-standing.d.ts +6 -1
- package/dist/models/agent-standing.d.ts.map +1 -1
- package/dist/models/agent-standing.js +1 -0
- package/dist/models/agent-standing.js.map +1 -1
- package/dist/models/providers/provider-traits.d.ts +215 -0
- package/dist/models/providers/provider-traits.d.ts.map +1 -0
- package/dist/models/providers/provider-traits.js +60 -0
- package/dist/models/providers/provider-traits.js.map +1 -0
- package/dist/netd/browser-wire.d.ts +58 -1
- package/dist/netd/browser-wire.d.ts.map +1 -1
- package/dist/netd/browser-wire.js +27 -0
- package/dist/netd/browser-wire.js.map +1 -1
- package/dist/netd/generated/browser-wire.d.ts +135 -0
- package/dist/netd/generated/browser-wire.d.ts.map +1 -1
- package/dist/netd/generated/wire.d.ts +56 -1
- package/dist/netd/generated/wire.d.ts.map +1 -1
- package/dist/policy/admin/admin-grant.d.ts +21 -0
- package/dist/policy/admin/admin-grant.d.ts.map +1 -0
- package/dist/policy/admin/admin-grant.js +41 -0
- package/dist/policy/admin/admin-grant.js.map +1 -0
- package/dist/policy/capabilities/capability-kinds.d.ts +268 -0
- package/dist/policy/capabilities/capability-kinds.d.ts.map +1 -0
- package/dist/policy/capabilities/capability-kinds.js +47 -0
- package/dist/policy/capabilities/capability-kinds.js.map +1 -0
- package/dist/policy/command-classes.d.ts.map +1 -1
- package/dist/policy/command-classes.js +3 -1
- package/dist/policy/command-classes.js.map +1 -1
- package/dist/policy/device-programs.d.ts +79 -2
- package/dist/policy/device-programs.d.ts.map +1 -1
- package/dist/policy/device-programs.js +15 -16
- package/dist/policy/device-programs.js.map +1 -1
- package/dist/policy/reserved-servers.d.ts.map +1 -1
- package/dist/policy/reserved-servers.js +5 -1
- package/dist/policy/reserved-servers.js.map +1 -1
- package/dist/policy/role-capability.d.ts.map +1 -1
- package/dist/policy/role-capability.js +2 -1
- package/dist/policy/role-capability.js.map +1 -1
- package/dist/policy/shell/command-normalise.d.ts +10 -0
- package/dist/policy/shell/command-normalise.d.ts.map +1 -0
- package/dist/policy/shell/command-normalise.js +153 -0
- package/dist/policy/shell/command-normalise.js.map +1 -0
- package/dist/protocol/doors/listener-protocol.d.ts +4 -0
- package/dist/protocol/doors/listener-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/listener-protocol.js +4 -0
- package/dist/protocol/doors/listener-protocol.js.map +1 -1
- package/dist/protocol/doors/loopback-proof.d.ts +8 -0
- package/dist/protocol/doors/loopback-proof.d.ts.map +1 -0
- package/dist/protocol/doors/loopback-proof.js +11 -0
- package/dist/protocol/doors/loopback-proof.js.map +1 -0
- package/dist/protocol/doors/pass-scopes.d.ts +4 -0
- package/dist/protocol/doors/pass-scopes.d.ts.map +1 -0
- package/dist/protocol/doors/pass-scopes.js +3 -0
- package/dist/protocol/doors/pass-scopes.js.map +1 -0
- package/dist/protocol/doors/runner-protocol.d.ts +187 -0
- package/dist/protocol/doors/runner-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/runner-protocol.js +48 -1
- package/dist/protocol/doors/runner-protocol.js.map +1 -1
- package/dist/protocol/doors/sandbox-pass.d.ts +19 -2
- package/dist/protocol/doors/sandbox-pass.d.ts.map +1 -1
- package/dist/protocol/doors/sandbox-pass.js +42 -10
- package/dist/protocol/doors/sandbox-pass.js.map +1 -1
- package/dist/protocol/member-reach.d.ts +6 -0
- package/dist/protocol/member-reach.d.ts.map +1 -1
- package/dist/protocol/member-reach.js +24 -0
- package/dist/protocol/member-reach.js.map +1 -1
- package/dist/protocol/peer-mcp-server.d.ts +2 -0
- package/dist/protocol/peer-mcp-server.d.ts.map +1 -1
- package/dist/protocol/peer-mcp-server.js +1 -0
- package/dist/protocol/peer-mcp-server.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +518 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +26 -2
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +182 -2
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +67 -35
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/protocol/route-meta.d.ts.map +1 -1
- package/dist/protocol/route-meta.js.map +1 -1
- package/dist/schemas/account-routes.d.ts +176 -0
- package/dist/schemas/account-routes.d.ts.map +1 -0
- package/dist/schemas/account-routes.js +73 -0
- package/dist/schemas/account-routes.js.map +1 -0
- package/dist/schemas/activity.d.ts.map +1 -1
- package/dist/schemas/activity.js.map +1 -1
- package/dist/schemas/agent-background.d.ts +48 -0
- package/dist/schemas/agent-background.d.ts.map +1 -0
- package/dist/schemas/agent-background.js +63 -0
- package/dist/schemas/agent-background.js.map +1 -0
- package/dist/schemas/agent-land.d.ts +7 -0
- package/dist/schemas/agent-land.d.ts.map +1 -1
- package/dist/schemas/agent-land.js +11 -0
- package/dist/schemas/agent-land.js.map +1 -1
- package/dist/schemas/agent.d.ts +16 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +3 -4
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +42 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +668 -17
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +16 -41
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/auto-approve.d.ts +12 -0
- package/dist/schemas/auto-approve.d.ts.map +1 -0
- package/dist/schemas/auto-approve.js +12 -0
- package/dist/schemas/auto-approve.js.map +1 -0
- package/dist/schemas/automations.d.ts +83 -0
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +11 -1
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/bookmarks.d.ts +85 -0
- package/dist/schemas/bookmarks.d.ts.map +1 -0
- package/dist/schemas/bookmarks.js +56 -0
- package/dist/schemas/bookmarks.js.map +1 -0
- package/dist/schemas/bridge-heads.d.ts +57 -0
- package/dist/schemas/bridge-heads.d.ts.map +1 -0
- package/dist/schemas/bridge-heads.js +22 -0
- package/dist/schemas/bridge-heads.js.map +1 -0
- package/dist/schemas/browser-tools.d.ts +167 -0
- package/dist/schemas/browser-tools.d.ts.map +1 -0
- package/dist/schemas/browser-tools.js +121 -0
- package/dist/schemas/browser-tools.js.map +1 -0
- package/dist/schemas/browsing.d.ts +139 -0
- package/dist/schemas/browsing.d.ts.map +1 -0
- package/dist/schemas/browsing.js +83 -0
- package/dist/schemas/browsing.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +57 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +9 -0
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/checkout-hooks.d.ts +24 -0
- package/dist/schemas/checkout-hooks.d.ts.map +1 -0
- package/dist/schemas/checkout-hooks.js +23 -0
- package/dist/schemas/checkout-hooks.js.map +1 -0
- package/dist/schemas/ci-fleet.d.ts +216 -0
- package/dist/schemas/ci-fleet.d.ts.map +1 -0
- package/dist/schemas/ci-fleet.js +87 -0
- package/dist/schemas/ci-fleet.js.map +1 -0
- package/dist/schemas/connection-hub.d.ts +3 -1
- package/dist/schemas/connection-hub.d.ts.map +1 -1
- package/dist/schemas/connection-hub.js +2 -1
- package/dist/schemas/connection-hub.js.map +1 -1
- package/dist/schemas/context-continues.d.ts.map +1 -1
- package/dist/schemas/context-continues.js +2 -2
- package/dist/schemas/context-continues.js.map +1 -1
- package/dist/schemas/context-trim.js +3 -3
- package/dist/schemas/context-trim.js.map +1 -1
- package/dist/schemas/device-remote.d.ts +84 -0
- package/dist/schemas/device-remote.d.ts.map +1 -0
- package/dist/schemas/device-remote.js +54 -0
- package/dist/schemas/device-remote.js.map +1 -0
- package/dist/schemas/devices.d.ts +64 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +6 -1
- package/dist/schemas/devices.js.map +1 -1
- package/dist/schemas/environment.d.ts +1 -0
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js +1 -0
- package/dist/schemas/environment.js.map +1 -1
- package/dist/schemas/extension-updates.d.ts +2 -0
- package/dist/schemas/extension-updates.d.ts.map +1 -1
- package/dist/schemas/extension-updates.js +4 -0
- package/dist/schemas/extension-updates.js.map +1 -1
- package/dist/schemas/git/git.d.ts +13 -0
- package/dist/schemas/git/git.d.ts.map +1 -1
- package/dist/schemas/git/git.js +7 -7
- package/dist/schemas/git/git.js.map +1 -1
- package/dist/schemas/git/index-run.d.ts +1 -0
- package/dist/schemas/git/index-run.d.ts.map +1 -1
- package/dist/schemas/host-power.d.ts +54 -0
- package/dist/schemas/host-power.d.ts.map +1 -0
- package/dist/schemas/host-power.js +46 -0
- package/dist/schemas/host-power.js.map +1 -0
- package/dist/schemas/hosts.d.ts +145 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +15 -1
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/issues.d.ts +44 -0
- package/dist/schemas/issues.d.ts.map +1 -1
- package/dist/schemas/issues.js +12 -0
- package/dist/schemas/issues.js.map +1 -1
- package/dist/schemas/keep-warm.d.ts.map +1 -1
- package/dist/schemas/keep-warm.js +2 -3
- package/dist/schemas/keep-warm.js.map +1 -1
- package/dist/schemas/keyring-native.d.ts.map +1 -1
- package/dist/schemas/keyring-native.js +3 -1
- package/dist/schemas/keyring-native.js.map +1 -1
- package/dist/schemas/keyring.d.ts +1 -0
- package/dist/schemas/keyring.d.ts.map +1 -1
- package/dist/schemas/keyring.js +3 -1
- package/dist/schemas/keyring.js.map +1 -1
- package/dist/schemas/members.d.ts.map +1 -1
- package/dist/schemas/members.js +2 -14
- package/dist/schemas/members.js.map +1 -1
- package/dist/schemas/metrics.d.ts +8 -0
- package/dist/schemas/metrics.d.ts.map +1 -1
- package/dist/schemas/metrics.js +8 -0
- package/dist/schemas/metrics.js.map +1 -1
- package/dist/schemas/needs.d.ts +349 -1
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +45 -5
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/offload.d.ts +9 -0
- package/dist/schemas/offload.d.ts.map +1 -1
- package/dist/schemas/offload.js +2 -1
- package/dist/schemas/offload.js.map +1 -1
- package/dist/schemas/ports.d.ts +4 -0
- package/dist/schemas/ports.d.ts.map +1 -1
- package/dist/schemas/ports.js +3 -0
- package/dist/schemas/ports.js.map +1 -1
- package/dist/schemas/providers/capacity.d.ts +6 -0
- package/dist/schemas/providers/capacity.d.ts.map +1 -1
- package/dist/schemas/providers/handoff.d.ts.map +1 -1
- package/dist/schemas/providers/handoff.js +11 -11
- package/dist/schemas/providers/handoff.js.map +1 -1
- package/dist/schemas/providers/provider-oauth.d.ts +14 -0
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.js +6 -2
- package/dist/schemas/providers/provider-oauth.js.map +1 -1
- package/dist/schemas/providers/refusals.d.ts +12 -0
- package/dist/schemas/providers/refusals.d.ts.map +1 -1
- package/dist/schemas/providers/refusals.js +4 -0
- package/dist/schemas/providers/refusals.js.map +1 -1
- package/dist/schemas/providers/switched.js +1 -1
- package/dist/schemas/providers/switched.js.map +1 -1
- package/dist/schemas/queued-trial-retry.d.ts +7 -0
- package/dist/schemas/queued-trial-retry.d.ts.map +1 -0
- package/dist/schemas/queued-trial-retry.js +8 -0
- package/dist/schemas/queued-trial-retry.js.map +1 -0
- package/dist/schemas/remote-access.d.ts +138 -0
- package/dist/schemas/remote-access.d.ts.map +1 -0
- package/dist/schemas/remote-access.js +72 -0
- package/dist/schemas/remote-access.js.map +1 -0
- package/dist/schemas/run-targets.d.ts.map +1 -1
- package/dist/schemas/run-targets.js +2 -1
- package/dist/schemas/run-targets.js.map +1 -1
- package/dist/schemas/runner-views.d.ts +24 -0
- package/dist/schemas/runner-views.d.ts.map +1 -0
- package/dist/schemas/runner-views.js +16 -0
- package/dist/schemas/runner-views.js.map +1 -0
- package/dist/schemas/sandbox-reach.d.ts +157 -0
- package/dist/schemas/sandbox-reach.d.ts.map +1 -0
- package/dist/schemas/sandbox-reach.js +112 -0
- package/dist/schemas/sandbox-reach.js.map +1 -0
- package/dist/schemas/seal.d.ts +1 -1
- package/dist/schemas/seal.d.ts.map +1 -1
- package/dist/schemas/seal.js +1 -1
- package/dist/schemas/seal.js.map +1 -1
- package/dist/schemas/settings.d.ts +44 -0
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +24 -1
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/system.d.ts +19 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +9 -0
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/terminal.d.ts +182 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +60 -1
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/state/auth-state.d.ts.map +1 -1
- package/dist/state/auth-state.js +2 -0
- package/dist/state/auth-state.js.map +1 -1
- package/dist/state/definition.d.ts +64 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/runtime-state.d.ts +4 -1
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +2 -1
- package/dist/state/runtime-state.js.map +1 -1
- package/dist/state/workspace-state.d.ts +1 -1
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +1 -1
- package/dist/state/workspace-state.js.map +1 -1
- package/dist/sync/workspace-sync-ignores.d.ts +4 -0
- package/dist/sync/workspace-sync-ignores.d.ts.map +1 -0
- package/dist/sync/workspace-sync-ignores.js +75 -0
- package/dist/sync/workspace-sync-ignores.js.map +1 -0
- package/dist/text/land-rows.d.ts.map +1 -1
- package/dist/text/land-rows.js +13 -17
- package/dist/text/land-rows.js.map +1 -1
- package/dist/text/notice-rows.js +6 -6
- package/dist/text/notice-rows.js.map +1 -1
- package/dist/text/pages.d.ts.map +1 -1
- package/dist/text/pages.js +17 -4
- package/dist/text/pages.js.map +1 -1
- package/dist/text/transcript-fold.js +2 -2
- package/dist/text/transcript-fold.js.map +1 -1
- package/package.json +5 -5
- package/src/app-routes/app-pages.ts +3 -0
- package/src/app-routes/index.ts +1 -0
- package/src/app-routes/return-path.ts +16 -0
- package/src/contracts/accounts.contract.ts +3 -0
- package/src/contracts/agents.contract.ts +41 -5
- package/src/contracts/automations.contract.ts +2 -0
- package/src/contracts/bookmarks.contract.ts +66 -0
- package/src/contracts/browser.contract.ts +181 -0
- package/src/contracts/capabilities.contract.ts +7 -2
- package/src/contracts/device-ci-runners.contract.ts +81 -0
- package/src/contracts/device.contract.ts +15 -0
- package/src/contracts/extensions.contract.ts +1 -1
- package/src/contracts/ports.contract.ts +6 -6
- package/src/contracts/remote.contract.ts +104 -0
- package/src/contracts/runner.contract.ts +117 -3
- package/src/contracts/runners.contract.ts +19 -0
- package/src/contracts/safety.contract.ts +2 -0
- package/src/contracts/secrets.contract.ts +12 -0
- package/src/contracts/settings.contract.ts +2 -0
- package/src/contracts/system.contract.ts +98 -3
- package/src/events/agent-events.ts +3 -2
- package/src/events/agent-words.test.ts +19 -1
- package/src/events/agent-words.ts +33 -1
- package/src/events/failure-rows.ts +13 -14
- package/src/events/refusal-incidents.ts +60 -19
- package/src/events/resume.test.ts +3 -3
- package/src/events/resume.ts +12 -18
- package/src/events/sandbox-notice.ts +2 -0
- package/src/ids/conversation-ids.test.ts +3 -1
- package/src/ids/conversation-ids.ts +6 -4
- package/src/ids/project-dir.test.ts +1 -1
- package/src/ids/project-dir.ts +1 -1
- package/src/ids/project-id.test.ts +14 -0
- package/src/ids/project-id.ts +6 -4
- package/src/ids/run-row-ids.test.ts +38 -0
- package/src/ids/run-row-ids.ts +49 -0
- package/src/index.ts +18 -6
- package/src/models/agent-catalog.test.ts +7 -4
- package/src/models/agent-catalog.ts +3 -2
- package/src/models/agent-lanes.ts +8 -1
- package/src/models/agent-runtimes.ts +7 -6
- package/src/models/agent-standing.ts +13 -0
- package/src/models/provider-specs.test.ts +2 -2
- package/src/models/providers/provider-traits.test.ts +71 -0
- package/src/models/providers/provider-traits.ts +144 -0
- package/src/netd/browser-wire.ts +97 -0
- package/src/netd/generated/browser-wire.json +904 -0
- package/src/netd/generated/browser-wire.ts +62 -3
- package/src/netd/generated/netd-wire.json +299 -1
- package/src/netd/generated/wire.ts +27 -6
- package/src/netd/wire-manifests.test.ts +92 -1
- package/src/policy/admin/admin-grant.ts +69 -0
- package/src/policy/capabilities/capability-kinds.test.ts +112 -0
- package/src/policy/capabilities/capability-kinds.ts +110 -0
- package/src/policy/command-classes.ts +5 -3
- package/src/policy/credential-material.ts +1 -1
- package/src/policy/device-programs.ts +29 -20
- package/src/policy/overlay-lint.ts +1 -1
- package/src/policy/reserved-servers.ts +5 -1
- package/src/policy/role-capability.ts +3 -1
- package/src/policy/shell/command-normalise.test.ts +72 -0
- package/src/policy/shell/command-normalise.ts +212 -0
- package/src/policy/tests/admin-grant.test.ts +35 -0
- package/src/policy/tests/command-classes.test.ts +41 -0
- package/src/protocol/doors/listener-protocol.ts +18 -1
- package/src/protocol/doors/loopback-proof.ts +34 -0
- package/src/protocol/doors/pass-scopes.ts +12 -0
- package/src/protocol/doors/runner-protocol.ts +133 -4
- package/src/protocol/doors/sandbox-pass.test.ts +33 -1
- package/src/protocol/doors/sandbox-pass.ts +92 -16
- package/src/protocol/ingress-contract.fixture.json +9 -1
- package/src/protocol/member-reach.test.ts +40 -1
- package/src/protocol/member-reach.ts +40 -0
- package/src/protocol/peer-mcp-server.ts +6 -0
- package/src/protocol/raw/raw-json-routes.ts +48 -1
- package/src/protocol/raw/raw-routes.ts +99 -36
- package/src/protocol/route-meta.ts +4 -1
- package/src/schemas/account-routes.ts +126 -0
- package/src/schemas/activity.ts +4 -3
- package/src/schemas/agent-background.ts +104 -0
- package/src/schemas/agent-land.ts +21 -2
- package/src/schemas/agent.ts +3 -4
- package/src/schemas/agents.ts +26 -65
- package/src/schemas/auto-approve.ts +31 -0
- package/src/schemas/automations.ts +26 -1
- package/src/schemas/bookmarks.ts +79 -0
- package/src/schemas/bridge-heads.ts +33 -0
- package/src/schemas/browser-tools.ts +164 -0
- package/src/schemas/browsing.ts +129 -0
- package/src/schemas/capabilities.ts +32 -0
- package/src/schemas/checkout-hooks.ts +44 -0
- package/src/schemas/ci-fleet.ts +180 -0
- package/src/schemas/compose-overlay.test.ts +1 -1
- package/src/schemas/compose-overlay.ts +1 -1
- package/src/schemas/connection-hub.ts +4 -2
- package/src/schemas/context-continues.ts +6 -3
- package/src/schemas/context-trim.test.ts +6 -6
- package/src/schemas/context-trim.ts +3 -3
- package/src/schemas/data-protection.ts +1 -1
- package/src/schemas/device-remote.ts +106 -0
- package/src/schemas/device-swaps.test.ts +1 -1
- package/src/schemas/devices.ts +19 -1
- package/src/schemas/egress-private.test.ts +1 -1
- package/src/schemas/environment.ts +4 -0
- package/src/schemas/extension-updates.ts +8 -0
- package/src/schemas/git/git.ts +14 -14
- package/src/schemas/host-power.ts +79 -0
- package/src/schemas/hosts.ts +37 -2
- package/src/schemas/intentic-os.ts +2 -2
- package/src/schemas/issues.ts +14 -0
- package/src/schemas/keep-warm.test.ts +1 -1
- package/src/schemas/keep-warm.ts +2 -3
- package/src/schemas/keyring-native.test.ts +11 -3
- package/src/schemas/keyring-native.ts +3 -1
- package/src/schemas/keyring.ts +6 -1
- package/src/schemas/members.ts +4 -16
- package/src/schemas/metrics.test.ts +9 -1
- package/src/schemas/metrics.ts +8 -0
- package/src/schemas/needs.ts +68 -5
- package/src/schemas/offload.ts +6 -3
- package/src/schemas/ports.ts +5 -0
- package/src/schemas/providers/handoff.test.ts +8 -10
- package/src/schemas/providers/handoff.ts +11 -12
- package/src/schemas/providers/provider-oauth.ts +10 -2
- package/src/schemas/providers/refusals.ts +9 -0
- package/src/schemas/providers/switched.test.ts +6 -6
- package/src/schemas/providers/switched.ts +1 -1
- package/src/schemas/queued-trial-retry.ts +14 -0
- package/src/schemas/remote-access.ts +143 -0
- package/src/schemas/run-targets.ts +2 -1
- package/src/schemas/runner-views.ts +27 -0
- package/src/schemas/sandbox-reach.ts +161 -0
- package/src/schemas/seal.ts +2 -1
- package/src/schemas/settings.test.ts +5 -4
- package/src/schemas/settings.ts +54 -10
- package/src/schemas/state-plan.test.ts +1 -1
- package/src/schemas/state-plan.ts +2 -2
- package/src/schemas/system.ts +16 -1
- package/src/schemas/terminal.ts +87 -1
- package/src/schemas/updates.test.ts +1 -1
- package/src/schemas/updates.ts +1 -1
- package/src/state/auth-state.ts +6 -0
- package/src/state/runtime-state.test.ts +3 -2
- package/src/state/runtime-state.ts +7 -1
- package/src/state/update-probation.ts +1 -1
- package/src/state/ways-back.test.ts +1 -1
- package/src/state/workspace-state.test.ts +2 -0
- package/src/state/workspace-state.ts +4 -4
- package/src/sync/workspace-sync-ignores.test.ts +48 -0
- package/src/sync/workspace-sync-ignores.ts +143 -0
- package/src/text/land-rows.ts +13 -18
- package/src/text/notice-rows.ts +6 -6
- package/src/text/pages.ts +34 -7
- package/src/text/transcript-fold.test.ts +77 -39
- package/src/text/transcript-fold.ts +2 -2
|
@@ -165,6 +165,7 @@ export type IdentityConfig = z.infer<typeof IdentityConfigSchema>;
|
|
|
165
165
|
// machine, never here, so a compromised sandbox can't exceed what the owner ticked.
|
|
166
166
|
// on/off, not boolean: capability configs arrive from the form as strings, and a select renders an enum.
|
|
167
167
|
const hostScope = z.enum(["on", "off"]);
|
|
168
|
+
type HostScope = z.infer<typeof hostScope>;
|
|
168
169
|
export const DeviceScopesSchema = z.object({
|
|
169
170
|
// Run commands in a real shell (PowerShell on Windows, the login shell on Linux). Off ⇒ files/screen only.
|
|
170
171
|
shell: hostScope.default("on"),
|
|
@@ -183,10 +184,41 @@ export const DeviceScopesSchema = z.object({
|
|
|
183
184
|
// agent's supervision (app_start). Narrower than `shell` in what it reaches and wider in what it trusts: the program
|
|
184
185
|
// is the sandbox's, not one already on the machine.
|
|
185
186
|
programs: hostScope.default("off"),
|
|
187
|
+
// (2026-11-20) PEOPLE'S remote access, from the editor, served by intentic-remoted on the machine
|
|
188
|
+
// (schemas/device-remote.ts). Three switches of their own, independent of the agents' `screen`, `control` and
|
|
189
|
+
// `shell`: what an agent may do and what a person at another screen may do are different grants. All default off.
|
|
190
|
+
// Let people see the screen: a live view of this computer's desktop.
|
|
191
|
+
remoteView: hostScope.default("off"),
|
|
192
|
+
// Let people use the mouse and keyboard: input from that view. The person at the computer can pause it.
|
|
193
|
+
remoteControl: hostScope.default("off"),
|
|
194
|
+
// Let people open terminals: a shell on this computer, in any of its environments.
|
|
195
|
+
remoteTerminal: hostScope.default("off"),
|
|
196
|
+
// (2026-11-23) Run commands as administrator: run_command's `admin`, on Windows, through intentic-remoted's service,
|
|
197
|
+
// with no UAC prompt at the computer. Its own switch, default off, beside `shell` and never implied by it: what a
|
|
198
|
+
// command may do as the person and what it may do as the computer's administrator are different grants. Each run
|
|
199
|
+
// still asks on a card in chat, which only a conversation's auto-approve mark answers by itself.
|
|
200
|
+
admin: hostScope.default("off"),
|
|
186
201
|
// One directory per line. Empty ⇒ the machine's home directory, which is what the agent reports at connect.
|
|
187
202
|
roots: z.string().optional(),
|
|
188
203
|
});
|
|
189
204
|
export type DeviceScopes = z.infer<typeof DeviceScopesSchema>;
|
|
205
|
+
/** A device permission switch: every scope but `roots`, which is folders, not on/off. */
|
|
206
|
+
export type DeviceSwitch = Exclude<keyof DeviceScopes, "roots">;
|
|
207
|
+
/** Every device switch, in the schema's order, so a new switch reaches whatever reads this without an edit. */
|
|
208
|
+
export const DEVICE_SWITCHES: readonly DeviceSwitch[] = DeviceScopesSchema.keyof().options.filter((key): key is DeviceSwitch => key !== "roots");
|
|
209
|
+
/**
|
|
210
|
+
* A grant with exactly `on` switched on and every other switch off, a new switch included; `extra` is laid over it.
|
|
211
|
+
* Not `DeviceScopesSchema.parse({})`, whose defaults turn `shell` and `screen` on.
|
|
212
|
+
*/
|
|
213
|
+
export const deviceScopesOn = <Extra extends Partial<DeviceScopes> = Record<never, never>>(
|
|
214
|
+
on: readonly DeviceSwitch[] = [],
|
|
215
|
+
extra?: Extra,
|
|
216
|
+
): Record<DeviceSwitch, HostScope> & Extra => ({
|
|
217
|
+
// SAFETY: one entry for every switch, each "on" or "off".
|
|
218
|
+
...(Object.fromEntries(DEVICE_SWITCHES.map((name) => [name, on.includes(name) ? "on" : "off"])) as Record<DeviceSwitch, HostScope>),
|
|
219
|
+
// SAFETY: an absent extra adds nothing, which is what the default Extra says.
|
|
220
|
+
...(extra ?? ({} as Extra)),
|
|
221
|
+
});
|
|
190
222
|
export const DeviceConfigSchema = DeviceScopesSchema.extend({ platform: z.string().min(1) });
|
|
191
223
|
// An ACP agent served as a chat provider: the daemon spawns `command` as a long-lived JSON-RPC subprocess, and the
|
|
192
224
|
// capability id becomes the provider id. `env` is a pasted KEY=VALUE block, the whole secret field; `loginCommand` runs
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { STATE_DIR } from "@intentic/constants";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
// <repo>/.intentic/checkout.json declares what runs around a conversation's own checkout of the repository, beside
|
|
5
|
+
// run.json (run-targets.ts), which declares what the repository can run:
|
|
6
|
+
// - `setup`, once when the checkout is created, before the conversation's turn starts (installing what a fresh tree
|
|
7
|
+
// lacks, seeding a dev database).
|
|
8
|
+
// - `archive`, before the checkout is removed (dumping state somewhere it outlives the checkout). A failure holds the
|
|
9
|
+
// removal back.
|
|
10
|
+
// Each runs from the checkout's root, and only once the owner has approved its exact content (the command and the bytes
|
|
11
|
+
// of the files it runs), so a branch that edits either asks again (conversations/worktrees/lifecycle/checkout-hooks.ts).
|
|
12
|
+
|
|
13
|
+
export const CHECKOUT_HOOKS_FILE = `${STATE_DIR}/checkout.json`;
|
|
14
|
+
|
|
15
|
+
// The longest a hook may run before it is stopped and counted as failed.
|
|
16
|
+
export const MAX_CHECKOUT_HOOK_SECONDS = 1800;
|
|
17
|
+
|
|
18
|
+
const RepoFileSchema = z
|
|
19
|
+
.string()
|
|
20
|
+
.min(1)
|
|
21
|
+
.max(500)
|
|
22
|
+
.refine((path) => !path.startsWith("/") && !path.split(/[\\/]/).includes(".."), "a path inside the repository, relative to its root");
|
|
23
|
+
|
|
24
|
+
export const CheckoutHookSchema = z
|
|
25
|
+
.object({
|
|
26
|
+
// A shell command, run with `sh -c` from the checkout's root.
|
|
27
|
+
command: z.string().min(1).max(4000),
|
|
28
|
+
// Files the approval pins beside the command, for a script that the command reaches indirectly. A file the
|
|
29
|
+
// command names by its repository path is pinned without being listed.
|
|
30
|
+
files: z.array(RepoFileSchema).max(20).default([]),
|
|
31
|
+
timeoutSeconds: z.int().min(1).max(MAX_CHECKOUT_HOOK_SECONDS).default(300),
|
|
32
|
+
})
|
|
33
|
+
.strict();
|
|
34
|
+
export type CheckoutHook = z.infer<typeof CheckoutHookSchema>;
|
|
35
|
+
|
|
36
|
+
export const CheckoutHooksFileSchema = z
|
|
37
|
+
.object({
|
|
38
|
+
setup: CheckoutHookSchema.optional(),
|
|
39
|
+
archive: CheckoutHookSchema.optional(),
|
|
40
|
+
})
|
|
41
|
+
.strict();
|
|
42
|
+
export type CheckoutHooksFile = z.infer<typeof CheckoutHooksFileSchema>;
|
|
43
|
+
|
|
44
|
+
export type CheckoutHookKind = keyof CheckoutHooksFile;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
// THE SELF-HOSTED CI RUNNERS ON ONE OF THE OWNER'S COMPUTERS: GitHub Actions runner instances registered as systemd
|
|
4
|
+
// units (`actions.runner.*.service`, as the runner's own svc.sh names them), read and driven over the connection the
|
|
5
|
+
// machine's agent already holds open. The agent runs as the person; what needs root (starting a system unit, emptying a
|
|
6
|
+
// job's leftovers that a job container wrote as root, holding the test-memory pool's slots) is done by the machine's
|
|
7
|
+
// fleet service, `intentic-ci-fleet.service`, the same agent binary from a root-owned copy, which the agent asks over a
|
|
8
|
+
// local socket (_devices/machine src/ci-fleet/). Without that service a computer still lists its runners, read-only.
|
|
9
|
+
// The daemon relays (_sandbox/sandbox hosts/ci-fleet/device-ci-fleet.ts); the Pipelines view draws the Runners section.
|
|
10
|
+
|
|
11
|
+
// A runner's name as GitHub accepts one and as the runner's own config.sh writes it into the unit's name: letters,
|
|
12
|
+
// digits, dot, dash and underscore. Also the folder the fleet service registers a new one in, so one plain segment.
|
|
13
|
+
export const CiRunnerNameSchema = z
|
|
14
|
+
.string()
|
|
15
|
+
.regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/, "letters, digits, dot, dash and underscore, starting with a letter or digit, at most 64");
|
|
16
|
+
export type CiRunnerName = z.infer<typeof CiRunnerNameSchema>;
|
|
17
|
+
|
|
18
|
+
// systemd's own ActiveState words, plus `unknown` for one a newer systemd says that this list does not know, and
|
|
19
|
+
// `not-installed` for a runner folder whose `.service` names a unit systemd no longer has: configured, never started
|
|
20
|
+
// again (z440's four on 2026-11-24, their units gone since 2026-11-09 while the folders stayed). Only re-registering,
|
|
21
|
+
// or the runner's own `svc.sh install`, brings one back; the keeper cannot.
|
|
22
|
+
export const CiRunnerStateSchema = z.enum(["active", "activating", "deactivating", "reloading", "inactive", "failed", "unknown", "not-installed"]);
|
|
23
|
+
export type CiRunnerState = z.infer<typeof CiRunnerStateSchema>;
|
|
24
|
+
|
|
25
|
+
// Why a runner is down on purpose, so neither the fleet service's keeper nor a reader takes it for broken: stopped from
|
|
26
|
+
// the board (`board`), drained and stopped once its job ended (`drain`), or paused by `wsl-workers.sh` for a Windows
|
|
27
|
+
// smoke job (`smoke`).
|
|
28
|
+
export const CiRunnerHoldSchema = z.enum(["board", "drain", "smoke"]);
|
|
29
|
+
export type CiRunnerHold = z.infer<typeof CiRunnerHoldSchema>;
|
|
30
|
+
|
|
31
|
+
export const CiRunnerSchema = z.object({
|
|
32
|
+
// The runner's name at GitHub (`agentName` in its `.runner`), else the one its unit's name carries.
|
|
33
|
+
name: CiRunnerNameSchema,
|
|
34
|
+
// The systemd unit, `actions.runner.<scope>.<name>.service`.
|
|
35
|
+
unit: z.string(),
|
|
36
|
+
// The runner's own folder (the unit's WorkingDirectory), as the machine spells it.
|
|
37
|
+
dir: z.string(),
|
|
38
|
+
// The account the unit runs the runner as.
|
|
39
|
+
user: z.string(),
|
|
40
|
+
// What it is registered to (`gitHubUrl` in its `.runner`): a repository or an organisation.
|
|
41
|
+
url: z.string().optional(),
|
|
42
|
+
// The runner's version, read off the `bin` link a self-update points at `bin.<version>`.
|
|
43
|
+
version: z.string().optional(),
|
|
44
|
+
// The light lane (ci-runner.md): an instance named `<host>-light-<n>`, which takes only a pipeline's first two jobs.
|
|
45
|
+
light: z.boolean(),
|
|
46
|
+
state: CiRunnerStateSchema,
|
|
47
|
+
// Running a job right now: its Runner.Worker process is alive.
|
|
48
|
+
busy: z.boolean(),
|
|
49
|
+
// When that job's worker started, ISO; absent while idle.
|
|
50
|
+
busySince: z.string().optional(),
|
|
51
|
+
// The job's name, read from the worker's own log where it says it; absent while idle or where the log does not.
|
|
52
|
+
job: z.string().optional(),
|
|
53
|
+
// Down on purpose, and why; absent for a runner nobody holds down.
|
|
54
|
+
held: CiRunnerHoldSchema.optional(),
|
|
55
|
+
// A drain is waiting for its job to end, after which the runner is stopped.
|
|
56
|
+
draining: z.boolean(),
|
|
57
|
+
});
|
|
58
|
+
export type CiRunner = z.infer<typeof CiRunnerSchema>;
|
|
59
|
+
|
|
60
|
+
// One pass of one of the fleet service's rounds: when, whether it only reported (`dryRun`), what it freed, and its lines.
|
|
61
|
+
export const CiFleetPassSchema = z.object({
|
|
62
|
+
at: z.string(),
|
|
63
|
+
dryRun: z.boolean(),
|
|
64
|
+
freedBytes: z.number().int().nonnegative(),
|
|
65
|
+
// What it did, one sentence a line, as the old scripts' journal lines read; at most the newest 200.
|
|
66
|
+
lines: z.array(z.string()),
|
|
67
|
+
});
|
|
68
|
+
export type CiFleetPass = z.infer<typeof CiFleetPassSchema>;
|
|
69
|
+
|
|
70
|
+
// A shared cache under the fleet's cache root (`/ci-cache/<name>`), as the last janitor pass measured it.
|
|
71
|
+
export const CiCacheSchema = z.object({ name: z.string(), bytes: z.number().int().nonnegative() });
|
|
72
|
+
export type CiCache = z.infer<typeof CiCacheSchema>;
|
|
73
|
+
|
|
74
|
+
// The test-memory pool on this computer (`test-memory-pool.mjs`: one-GiB slot files that CI jobs flock), and what the
|
|
75
|
+
// fleet service holds of it for the Intentic sandboxes on the same engine, so CI sizes its test workers from what they
|
|
76
|
+
// leave. Slots 1..`reserved` are the gate band the service never takes.
|
|
77
|
+
export const CiSlotsSchema = z.object({
|
|
78
|
+
dir: z.string(),
|
|
79
|
+
total: z.number().int().positive(),
|
|
80
|
+
reserved: z.number().int().nonnegative(),
|
|
81
|
+
// Slots kept from CI for good, whatever the sandboxes hold: the host's floor (`--slots-usable` keeps this many usable).
|
|
82
|
+
floor: z.number().int().nonnegative(),
|
|
83
|
+
// Slots the service holds now: the floor and the sandboxes' share together.
|
|
84
|
+
heldForSandboxes: z.number().int().nonnegative(),
|
|
85
|
+
// Memory the sandboxes and sandbox runners on this engine use, as last measured.
|
|
86
|
+
sandboxBytes: z.number().int().nonnegative(),
|
|
87
|
+
// Slots CI jobs hold now, and slots nobody holds.
|
|
88
|
+
heldByCi: z.number().int().nonnegative(),
|
|
89
|
+
free: z.number().int().nonnegative(),
|
|
90
|
+
at: z.string(),
|
|
91
|
+
});
|
|
92
|
+
export type CiSlots = z.infer<typeof CiSlotsSchema>;
|
|
93
|
+
|
|
94
|
+
// The fleet service as the agent found it.
|
|
95
|
+
export const CiFleetServiceSchema = z.object({
|
|
96
|
+
// Installed and answering on its socket.
|
|
97
|
+
running: z.boolean(),
|
|
98
|
+
// Its unit exists, answering or not.
|
|
99
|
+
installed: z.boolean(),
|
|
100
|
+
version: z.string().optional(),
|
|
101
|
+
// Why it is not answering, in words, where it is installed.
|
|
102
|
+
problem: z.string().optional(),
|
|
103
|
+
});
|
|
104
|
+
export type CiFleetService = z.infer<typeof CiFleetServiceSchema>;
|
|
105
|
+
|
|
106
|
+
export const CiFleetSchema = z.object({
|
|
107
|
+
service: CiFleetServiceSchema,
|
|
108
|
+
runners: z.array(CiRunnerSchema),
|
|
109
|
+
// The fleet's shared cache root on this computer.
|
|
110
|
+
cacheRoot: z.string(),
|
|
111
|
+
caches: z.array(CiCacheSchema),
|
|
112
|
+
slots: CiSlotsSchema.optional(),
|
|
113
|
+
keeper: CiFleetPassSchema.optional(),
|
|
114
|
+
janitor: CiFleetPassSchema.optional(),
|
|
115
|
+
// The host prune (Docker images, build cache, volumes), on a computer whose Docker is its own rather than shared
|
|
116
|
+
// with Windows: omen's Docker Desktop is pruned by wsl-maintenance.ps1.
|
|
117
|
+
prune: CiFleetPassSchema.optional(),
|
|
118
|
+
});
|
|
119
|
+
export type CiFleet = z.infer<typeof CiFleetSchema>;
|
|
120
|
+
|
|
121
|
+
// `start` and `stop` act now; `stop` refuses a runner that is running a job. `drain` stops it the moment its job ends
|
|
122
|
+
// (at once when idle) and `restart` is a drain followed by a start. A runner stopped from here is held down: the keeper
|
|
123
|
+
// leaves it until a `start`.
|
|
124
|
+
export const CiRunnerOpSchema = z.enum(["start", "stop", "drain", "restart"]);
|
|
125
|
+
export type CiRunnerOp = z.infer<typeof CiRunnerOpSchema>;
|
|
126
|
+
|
|
127
|
+
export const CiRunnerOpResultSchema = z.object({ said: z.string() });
|
|
128
|
+
export type CiRunnerOpResult = z.infer<typeof CiRunnerOpResultSchema>;
|
|
129
|
+
|
|
130
|
+
export const CI_RUNNER_LOG_TAIL_DEFAULT = 200;
|
|
131
|
+
export const CI_RUNNER_LOG_TAIL_MAX = 5000;
|
|
132
|
+
export const CiRunnerLogsSchema = z.object({ text: z.string() });
|
|
133
|
+
export type CiRunnerLogs = z.infer<typeof CiRunnerLogsSchema>;
|
|
134
|
+
|
|
135
|
+
// A GitHub Actions label as config.sh takes one: no comma, which separates them.
|
|
136
|
+
export const CiRunnerLabelSchema = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/);
|
|
137
|
+
|
|
138
|
+
// What the machine's `ci_runner_register` takes: a registration token GitHub minted for `url` an hour's use, the new
|
|
139
|
+
// runner's name and labels. The fleet service downloads the runner release, checks its SHA-256, configures it as
|
|
140
|
+
// `user` (default: the account the existing runners run as) in `<user's home>/actions-runner-<name>` and installs its unit.
|
|
141
|
+
export const CiRunnerRegisterArgsSchema = z
|
|
142
|
+
.object({
|
|
143
|
+
url: z.string().url().startsWith("https://github.com/"),
|
|
144
|
+
token: z.string().min(10).max(200),
|
|
145
|
+
name: CiRunnerNameSchema,
|
|
146
|
+
labels: z.array(CiRunnerLabelSchema).min(1).max(20),
|
|
147
|
+
user: z.string().regex(/^[a-z_][a-z0-9_-]{0,31}$/).optional(),
|
|
148
|
+
})
|
|
149
|
+
.strict();
|
|
150
|
+
export type CiRunnerRegisterArgs = z.infer<typeof CiRunnerRegisterArgsSchema>;
|
|
151
|
+
|
|
152
|
+
// What `ci_runner_remove` takes: the runner and a removal token GitHub minted for its registration. Refused while it runs a job.
|
|
153
|
+
export const CiRunnerRemoveArgsSchema = z.object({ name: CiRunnerNameSchema, token: z.string().min(10).max(200) }).strict();
|
|
154
|
+
export type CiRunnerRemoveArgs = z.infer<typeof CiRunnerRemoveArgsSchema>;
|
|
155
|
+
|
|
156
|
+
// The daemon's route inputs: the device by its card id, then what the machine is asked.
|
|
157
|
+
const DeviceIdSchema = z.string().min(1);
|
|
158
|
+
export const DeviceCiFleetInputSchema = z.object({ id: DeviceIdSchema });
|
|
159
|
+
export type DeviceCiFleetInput = z.infer<typeof DeviceCiFleetInputSchema>;
|
|
160
|
+
export const DeviceCiRunnerOpInputSchema = z.object({ id: DeviceIdSchema, name: CiRunnerNameSchema, op: CiRunnerOpSchema });
|
|
161
|
+
export type DeviceCiRunnerOpInput = z.infer<typeof DeviceCiRunnerOpInputSchema>;
|
|
162
|
+
export const DeviceCiRunnerLogsInputSchema = z.object({
|
|
163
|
+
id: DeviceIdSchema,
|
|
164
|
+
name: CiRunnerNameSchema,
|
|
165
|
+
tail: z.coerce.number().int().positive().max(CI_RUNNER_LOG_TAIL_MAX).optional(),
|
|
166
|
+
});
|
|
167
|
+
export type DeviceCiRunnerLogsInput = z.infer<typeof DeviceCiRunnerLogsInputSchema>;
|
|
168
|
+
|
|
169
|
+
// Register a new runner on a device for one workspace repository's GitHub remote: the daemon mints the registration
|
|
170
|
+
// token through the GitHub connection and never stores it.
|
|
171
|
+
export const DeviceCiRunnerRegisterInputSchema = z.object({
|
|
172
|
+
id: DeviceIdSchema,
|
|
173
|
+
// Workspace-relative repository directory whose GitHub remote the runner serves.
|
|
174
|
+
repo: z.string().min(1).max(500),
|
|
175
|
+
name: CiRunnerNameSchema,
|
|
176
|
+
labels: z.array(CiRunnerLabelSchema).min(1).max(20),
|
|
177
|
+
});
|
|
178
|
+
export type DeviceCiRunnerRegisterInput = z.infer<typeof DeviceCiRunnerRegisterInputSchema>;
|
|
179
|
+
export const DeviceCiRunnerRemoveInputSchema = z.object({ id: DeviceIdSchema, name: CiRunnerNameSchema });
|
|
180
|
+
export type DeviceCiRunnerRemoveInput = z.infer<typeof DeviceCiRunnerRemoveInputSchema>;
|
|
@@ -5,7 +5,7 @@ import { packageRoot } from "@intentic/constants/node";
|
|
|
5
5
|
import { ComposedOverlayLineSchema } from "./compose-overlay.js";
|
|
6
6
|
|
|
7
7
|
// The lines a target image's composer prints, as examples: golden/compose-overlay.json, which ic's reader is held to
|
|
8
|
-
// (
|
|
8
|
+
// (_hosts/ic/src/sandbox/composition.rs). This is the TS half: each is a line the contract reads, its hash its overlay's.
|
|
9
9
|
|
|
10
10
|
interface ComposeCase {
|
|
11
11
|
readonly name: string;
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
// WHAT A TARGET IMAGE COMPOSES FOR A SANDBOX, as the host reads it: the one line the image's own composer prints
|
|
4
4
|
// (`node /opt/sandbox/dist/environment/compose-overlay.js --base <image>`, _sandbox/sandbox/src/environment/compose-overlay.ts) over read-only
|
|
5
5
|
// mounts of the sandbox's volumes before a swap onto it, which `ic` builds instead of the overlay the running daemon
|
|
6
|
-
// composed (
|
|
6
|
+
// composed (_hosts/ic/src/sandbox/composition.rs). golden/compose-overlay.json holds examples the Rust test reads.
|
|
7
7
|
|
|
8
8
|
// The one format `ic` reads; any other, or none, sends it back to the running daemon's overlay.
|
|
9
9
|
export const COMPOSE_OVERLAY_FORMAT = 1;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { HUB_PROVIDERS } from "../models/providers/provider-traits.js";
|
|
2
3
|
import { KEYRING_NAME_RE } from "./keyring.js";
|
|
3
4
|
|
|
4
5
|
// THE CONNECTIONS HUB: the keyring on one of the owner's computers as the place their connections live, so a sandbox can
|
|
@@ -31,8 +32,9 @@ export const HubCardKindSchema = z.enum(["cli", "mcp", "endpoint"]);
|
|
|
31
32
|
export type HubCardKind = z.infer<typeof HubCardKindSchema>;
|
|
32
33
|
|
|
33
34
|
// The model providers whose account is a key that does not rotate: what a sign-in there would write is the whole
|
|
34
|
-
// account: Cursor and Devin keys, and the minted Z.ai and Meta keys. (Endpoints are cards, above.)
|
|
35
|
-
|
|
35
|
+
// account: Cursor and Devin keys, and the minted Z.ai and Meta keys. (Endpoints are cards, above.) Read off the providers'
|
|
36
|
+
// `hubAccount` trait (models/providers/provider-traits.ts).
|
|
37
|
+
export const HUB_ACCOUNT_PROVIDERS = HUB_PROVIDERS;
|
|
36
38
|
export const HubAccountProviderSchema = z.enum(HUB_ACCOUNT_PROVIDERS);
|
|
37
39
|
export type HubAccountProvider = z.infer<typeof HubAccountProviderSchema>;
|
|
38
40
|
|
|
@@ -31,10 +31,13 @@ export const continueWhenNeedMetSetting = z
|
|
|
31
31
|
"Whether a conversation carries on by itself once something it asked a person for arrives: a connection made, a secret given, access allowed, a tool built into the image. Off leaves the answer on the conversation's card until someone sends a message.",
|
|
32
32
|
);
|
|
33
33
|
|
|
34
|
-
// A switch rather than a policy: a restart is the one ending with nobody watching it.
|
|
34
|
+
// A switch rather than a policy: a restart is the one ending with nobody watching it. On to begin with (2026-11-23): off,
|
|
35
|
+
// a restart left every conversation it cut waiting for a press, and one whose turn was waiting on its own subagents (cut
|
|
36
|
+
// by the same restart) had nothing left that would ever wake it. A restart storm still resumes nothing
|
|
37
|
+
// (restart-resume-policy.ts), and a restart traced to memory goes by memoryKillPolicy.
|
|
35
38
|
export const autoResumeOnRestartSetting = z
|
|
36
39
|
.boolean()
|
|
37
|
-
.default(
|
|
40
|
+
.default(true)
|
|
38
41
|
.describe(
|
|
39
|
-
"Whether a turn killed by the sandbox restarting is re-run once it comes back. A switch rather than one of the policies above, because a restart is the one ending with nobody watching it, so there is no in-chat question to answer.
|
|
42
|
+
"Whether a turn killed by the sandbox restarting is re-run once it comes back. A switch rather than one of the policies above, because a restart is the one ending with nobody watching it, so there is no in-chat question to answer. On to begin with, so work a restart cut carries on rather than waiting for a press; turn it off if you would rather not have the allowance spent and files edited while you are not watching. A burst of restarts in a row resumes nothing. Either way the interruption is recorded rather than silently lost. A restart the sandbox traces to memory running out goes by `memoryKillPolicy` instead, whatever this says.",
|
|
40
43
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { contextTrimLine } from "./context-trim.js";
|
|
2
2
|
|
|
3
3
|
// The one thing a reader ever sees of this mechanism. It has to answer three questions in one line: why the turn ran
|
|
4
|
-
// thin, what it lost, and whether the reader's own instructions were among the losses.
|
|
4
|
+
// thin, what it lost, and whether the reader's own instructions were among the losses (they never are).
|
|
5
5
|
|
|
6
6
|
test("the window comes first, then what went, then what stayed", () => {
|
|
7
7
|
const line = contextTrimLine({ window: 16_384, omitted: ["Map of this project", "Working in this sandbox"], base: true });
|
|
@@ -9,7 +9,7 @@ test("the window comes first, then what went, then what stayed", () => {
|
|
|
9
9
|
expect(line).toContain("16k window");
|
|
10
10
|
expect(line).toContain("Map of this project, Working in this sandbox");
|
|
11
11
|
// Without this clause the line reads as "your AGENTS.md may not have arrived", which is the one thing it is not.
|
|
12
|
-
expect(line).toContain("
|
|
12
|
+
expect(line).toContain("workspace rules kept");
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
// A swapped base is a bigger change than any note and is stated as its own fact, not folded into the list.
|
|
@@ -17,8 +17,8 @@ test("a swapped base says so, and a kept one does not", () => {
|
|
|
17
17
|
const swapped = contextTrimLine({ window: 16_384, omitted: [], base: true });
|
|
18
18
|
const kept = contextTrimLine({ window: 32_768, omitted: ["Map of this project"], base: false });
|
|
19
19
|
|
|
20
|
-
expect(swapped).toContain("base
|
|
21
|
-
expect(kept).not.toContain("base
|
|
20
|
+
expect(swapped).toContain("base prompt shortened");
|
|
21
|
+
expect(kept).not.toContain("base prompt");
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
// Nothing to list happens for real: a turn whose optional notes were all off already, on a window small enough to swap
|
|
@@ -26,8 +26,8 @@ test("a swapped base says so, and a kept one does not", () => {
|
|
|
26
26
|
test("an empty list leaves no dangling clause", () => {
|
|
27
27
|
const line = contextTrimLine({ window: 16_384, omitted: [], base: true });
|
|
28
28
|
|
|
29
|
-
expect(line).
|
|
30
|
-
expect(line).not.toContain("
|
|
29
|
+
expect(line).toBe("Sent thin for the 16k window; base prompt shortened; workspace rules kept.");
|
|
30
|
+
expect(line).not.toContain("without");
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
// A user's own server can be started with any number at all, and rounding it to "24k" would misquote the thing the
|
|
@@ -28,7 +28,7 @@ export const contextTrimNotice = ({ window, omitted, base }: ContextTrim): Extra
|
|
|
28
28
|
// The closing clause is load-bearing: without it the row reads as "my AGENTS.md may not have arrived".
|
|
29
29
|
export const contextTrimLine = (trim: ContextTrim): string => {
|
|
30
30
|
const { window, omitted, base } = contextTrimNotice(trim).params;
|
|
31
|
-
const swapped = base ?
|
|
32
|
-
const left = omitted === undefined ? `` :
|
|
33
|
-
return `Sent thin for
|
|
31
|
+
const swapped = base ? `; base prompt shortened` : ``;
|
|
32
|
+
const left = omitted === undefined ? `` : `, without ${omitted}`;
|
|
33
|
+
return `Sent thin for the ${window} window${left}${swapped}; workspace rules kept.`;
|
|
34
34
|
};
|
|
@@ -104,7 +104,7 @@ export type AuditSettings = z.infer<typeof AuditSettingsSchema>;
|
|
|
104
104
|
// channel. Email sending is the key the IMAP extension's sender consults (_extensions/imap/src/send.ts); the three
|
|
105
105
|
// `microsoft365.*` keys are what `m365` consults before sending, changing a calendar or uploading
|
|
106
106
|
// (_extensions/microsoft-365/src/actions.ts); the `ezdrp.*` and `edoreczenia.*` keys are the office acts the e-urzad
|
|
107
|
-
// extension's guard consults (
|
|
107
|
+
// extension's guard consults (src/core/guard.ts in intentic/extension-e-urzad): registering mail and adding files in EZD RP, sending
|
|
108
108
|
// an e-Doręczenia delivery, and opening one, the one read here with legal effect (it can make the delivery received).
|
|
109
109
|
// One list for the public-office preset, which holds every one of them, and the editor's Guardrails page, which sets them.
|
|
110
110
|
export const OUTWARD_ACTION_KEYS = [
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { OkSchema } from "./shared.js";
|
|
3
|
+
|
|
4
|
+
/* PEOPLE'S REMOTE DESKTOP AND TERMINALS ON A CONNECTED COMPUTER (2026-11-20). A person in the editor (never an agent) sees
|
|
5
|
+
the screen, drives the mouse and keyboard, or opens a terminal on one of the owner's computers. One daemon per
|
|
6
|
+
environment there, intentic-remoted, serves them: it dials this sandbox's `/system/device-uplink` and carries the
|
|
7
|
+
terminals and the view over that uplink. The machine agent starts it only while it is wanted, through the two device
|
|
8
|
+
procedures below, which the daemon alone calls (never a tool), and only on an agent advertising `remote`. What a person
|
|
9
|
+
may do is the computer's own three switches (`remoteView`, `remoteControl`, `remoteTerminal` in DeviceScopesSchema),
|
|
10
|
+
read on the machine from the link's grant, and the person at the computer can pause input or end every session. */
|
|
11
|
+
|
|
12
|
+
// What `remoteStart` hands the machine: the device's name on this sandbox, the token remoted presents when it dials the
|
|
13
|
+
// uplink, and the key the view's frames are sealed with (base64url of 32 bytes, unpadded). Both secrets are the daemon's
|
|
14
|
+
// to mint and rotate; the machine only passes them to remoted and never logs them.
|
|
15
|
+
// `iceServers` (2026-11-20) are the `remoteIceServers` setting's URLs (`stun:host:port`), which remoted asks for its
|
|
16
|
+
// server-reflexive address so a screen's peer connection can find a direct path from outside the computer's network.
|
|
17
|
+
// Sent only to an agent advertising `remote-ice` (this schema is strict, so an older agent would refuse the call);
|
|
18
|
+
// absent, remoted offers its host candidates alone.
|
|
19
|
+
export const RemoteStartInputSchema = z
|
|
20
|
+
.object({
|
|
21
|
+
device: z.string().regex(/^[A-Za-z0-9_-]{1,64}$/, "a device name: letters, digits, `_` and `-`, at most 64"),
|
|
22
|
+
uplinkToken: z.string().min(1),
|
|
23
|
+
mediaKey: z.string().regex(/^[A-Za-z0-9_-]{43}$/, "base64url of 32 bytes, unpadded"),
|
|
24
|
+
iceServers: z.array(z.string().min(1).max(512)).max(32).optional(),
|
|
25
|
+
})
|
|
26
|
+
.strict();
|
|
27
|
+
export type RemoteStartInput = z.infer<typeof RemoteStartInputSchema>;
|
|
28
|
+
|
|
29
|
+
// One monitor of the computer as remoted reports it: its place on the desktop in pixels, and its scale factor.
|
|
30
|
+
export const RemoteMonitorSchema = z
|
|
31
|
+
.object({
|
|
32
|
+
id: z.string(),
|
|
33
|
+
name: z.string(),
|
|
34
|
+
x: z.int(),
|
|
35
|
+
y: z.int(),
|
|
36
|
+
width: z.int(),
|
|
37
|
+
height: z.int(),
|
|
38
|
+
scale: z.number(),
|
|
39
|
+
primary: z.boolean(),
|
|
40
|
+
})
|
|
41
|
+
.strict();
|
|
42
|
+
export type RemoteMonitor = z.infer<typeof RemoteMonitorSchema>;
|
|
43
|
+
|
|
44
|
+
// What people may do over this link's uplink, read from the link's three switches.
|
|
45
|
+
export const RemoteAllowSchema = z
|
|
46
|
+
.object({
|
|
47
|
+
view: z.boolean(),
|
|
48
|
+
control: z.boolean(),
|
|
49
|
+
terminal: z.boolean(),
|
|
50
|
+
})
|
|
51
|
+
.strict();
|
|
52
|
+
export type RemoteAllow = z.infer<typeof RemoteAllowSchema>;
|
|
53
|
+
|
|
54
|
+
// The answer once remoted's uplink to this sandbox is up: remoted's version, what is allowed, the monitors a view can
|
|
55
|
+
// show, and the environments a terminal can open in (`native`, `wsl:<distro>`).
|
|
56
|
+
export const RemoteStartResultSchema = z
|
|
57
|
+
.object({
|
|
58
|
+
version: z.string(),
|
|
59
|
+
allow: RemoteAllowSchema,
|
|
60
|
+
monitors: z.array(RemoteMonitorSchema),
|
|
61
|
+
environments: z.array(z.string()),
|
|
62
|
+
})
|
|
63
|
+
.strict();
|
|
64
|
+
export type RemoteStartResult = z.infer<typeof RemoteStartResultSchema>;
|
|
65
|
+
|
|
66
|
+
// `remoteStop` takes nothing and answers the plain acknowledgement: this link's uplink is gone.
|
|
67
|
+
export const RemoteStopResultSchema = OkSchema;
|
|
68
|
+
export type RemoteStopResult = z.infer<typeof RemoteStopResultSchema>;
|
|
69
|
+
|
|
70
|
+
/* THE LOCK SCREEN AND ADMINISTRATOR PROMPTS, ON WINDOWS (2026-11-20). A process in the person's session cannot see or
|
|
71
|
+
drive the secure desktop (the sign-in and lock screen, Ctrl+Alt+Del, UAC prompts). intentic-remoted can install a
|
|
72
|
+
Windows service of its own that can, and installing it needs an administrator's yes on that computer, once.
|
|
73
|
+
`remoteService` is how the owner asks for it from the editor: `status` reads it unelevated; `install` (also an update:
|
|
74
|
+
it replaces what is there) and `uninstall` show the person at the computer one UAC prompt, then read the status
|
|
75
|
+
again. Only the daemon calls it, never a tool, and only on an agent advertising `remote-service` (Windows alone);
|
|
76
|
+
an agent anywhere else answers `supported: false` without running anything. */
|
|
77
|
+
export const RemoteServiceActionSchema = z.enum(["install", "uninstall", "status"]);
|
|
78
|
+
export type RemoteServiceAction = z.infer<typeof RemoteServiceActionSchema>;
|
|
79
|
+
|
|
80
|
+
export const RemoteServiceInputSchema = z.object({ action: RemoteServiceActionSchema }).strict();
|
|
81
|
+
export type RemoteServiceInput = z.infer<typeof RemoteServiceInputSchema>;
|
|
82
|
+
|
|
83
|
+
// The service's helper in the person's session: which Windows session it runs in, and which desktop it is on now
|
|
84
|
+
// (`Default`, `Winlogon`, `Screen-saver`; null when it cannot tell).
|
|
85
|
+
export const RemoteServiceHelperSchema = z.object({ session: z.int(), desktop: z.string().nullable() });
|
|
86
|
+
|
|
87
|
+
// Not strict, unlike the inputs: a newer agent saying more of its service is still read by an older daemon.
|
|
88
|
+
export const RemoteServiceResultSchema = z.object({
|
|
89
|
+
// Whether this computer can have the service at all (Windows); `reason` says why not.
|
|
90
|
+
supported: z.boolean(),
|
|
91
|
+
reason: z.string().optional(),
|
|
92
|
+
installed: z.boolean(),
|
|
93
|
+
// The Windows service's state as remoted names it: `running`, `stopped`, `starting`, `stopping`.
|
|
94
|
+
state: z.string().optional(),
|
|
95
|
+
// The installed service's version, and the agent's own remoted's, which an install would put there.
|
|
96
|
+
version: z.string().optional(),
|
|
97
|
+
agentVersion: z.string().optional(),
|
|
98
|
+
// Installed, and at another version than the agent's remoted: an install updates it.
|
|
99
|
+
outOfDate: z.boolean(),
|
|
100
|
+
helper: RemoteServiceHelperSchema.nullable().optional(),
|
|
101
|
+
// The administrator's yes was not given, so nothing changed.
|
|
102
|
+
declined: z.boolean().optional(),
|
|
103
|
+
// What went wrong with an install or uninstall, in a sentence for the person; the fields above are read after it.
|
|
104
|
+
error: z.string().optional(),
|
|
105
|
+
});
|
|
106
|
+
export type RemoteServiceResult = z.infer<typeof RemoteServiceResultSchema>;
|
|
@@ -4,7 +4,7 @@ import { packageRoot } from "@intentic/constants/node";
|
|
|
4
4
|
import { DeviceSwapsSchema } from "./device-swaps.js";
|
|
5
5
|
|
|
6
6
|
// The rows `ic sandbox swaps --json` answers, as examples: golden/swap-verdicts.json holds each of ic's records and the
|
|
7
|
-
// row it gives (the Rust test,
|
|
7
|
+
// row it gives (the Rust test, _hosts/ic/src/sandbox/swaps.rs, builds every one; the machine agent's fallback is held
|
|
8
8
|
// to the same rows). This is the TS half: the rows ic gives are the rows the contract reads, to the field.
|
|
9
9
|
|
|
10
10
|
interface VerdictCase {
|
package/src/schemas/devices.ts
CHANGED
|
@@ -82,6 +82,10 @@ export const DeviceSandboxSchema = z.object({
|
|
|
82
82
|
sandboxId: z.string().nullable().optional(),
|
|
83
83
|
localPort: z.number().int().nullable().optional(),
|
|
84
84
|
platformId: z.string().nullable().optional(),
|
|
85
|
+
// (2026-11-21) Whose runner this container is: its parent sandbox's address (the RUNNER_PARENT_URL it was made with)
|
|
86
|
+
// and that sandbox's name as the parent last told it (runnerContract.present). Null for a person's sandbox; absent
|
|
87
|
+
// from an older ic.
|
|
88
|
+
runnerOf: z.object({ url: z.string(), name: z.string().nullable().optional() }).nullable().optional(),
|
|
85
89
|
});
|
|
86
90
|
export type DeviceSandbox = z.infer<typeof DeviceSandboxSchema>;
|
|
87
91
|
// One operation on one sandbox, streamed as lines ending in a `result` or `error` frame. `prepare` builds the pending
|
|
@@ -214,7 +218,9 @@ export type DeviceFlowLine = z.infer<typeof DeviceFlowLineSchema>;
|
|
|
214
218
|
// on every sandbox's page and a sibling restarting or asleep must keep this machine, and never the link carrying the
|
|
215
219
|
// request, which is by definition answering. Before 2026-11-17 it took any link that had failed twenty dials (about
|
|
216
220
|
// eight minutes), and one sandbox's button disconnected the machine from another.
|
|
217
|
-
|
|
221
|
+
// `power-stay-on` (2026-11-22) changes the power settings that would sleep the computer through scheduled work, on mains
|
|
222
|
+
// power only (`intentic-machine power stay-on`, `DeviceFacts.power`); only an agent advertising DEVICE_FEATURE_POWER has it.
|
|
223
|
+
export const DeviceAgentOpSchema = z.enum(["upgrade", "restart", "forget-unreachable", "power-stay-on"]);
|
|
218
224
|
export type DeviceAgentOp = z.infer<typeof DeviceAgentOpSchema>;
|
|
219
225
|
export const DeviceAgentFlowSchema = z.strictObject({ op: DeviceAgentOpSchema });
|
|
220
226
|
export type DeviceAgentFlow = z.infer<typeof DeviceAgentFlowSchema>;
|
|
@@ -647,3 +653,15 @@ export const SyncStatusSchema = z.object({
|
|
|
647
653
|
machines: z.array(DeviceReportSchema).optional(),
|
|
648
654
|
});
|
|
649
655
|
export type SyncStatus = z.infer<typeof SyncStatusSchema>;
|
|
656
|
+
|
|
657
|
+
// GET /system/sync/changes: the workspace's change signal, held open by the daemon until something file sync carries has
|
|
658
|
+
// changed (2026-11-24). A device asks with the generation it last saw (`?after=`, beside `?epoch=`) and is answered at
|
|
659
|
+
// once when the daemon has moved past it or restarted since, else when a change comes or the hold runs out. A device that
|
|
660
|
+
// gets this answer at all knows the sandbox pushes, and lets its own scan of the sandbox fall back to a backstop.
|
|
661
|
+
export const SyncChangesSchema = z.object({
|
|
662
|
+
// This daemon run: a restart starts the count over, so a generation is only comparable within one epoch.
|
|
663
|
+
epoch: z.string(),
|
|
664
|
+
// How many coalesced batches of carried changes this run has seen.
|
|
665
|
+
generation: z.number().int().nonnegative(),
|
|
666
|
+
});
|
|
667
|
+
export type SyncChanges = z.infer<typeof SyncChangesSchema>;
|
|
@@ -3,7 +3,7 @@ import { join } from "node:path";
|
|
|
3
3
|
import { packageRoot } from "@intentic/constants/node";
|
|
4
4
|
import { EGRESS_PRIVATE_V4, EGRESS_PRIVATE_V6 } from "./egress.js";
|
|
5
5
|
|
|
6
|
-
// ic renders these ranges into its nftables rules (
|
|
6
|
+
// ic renders these ranges into its nftables rules (_hosts/ic/src/sandbox/egress/render.rs), and its Rust test reads the
|
|
7
7
|
// same golden, so a range added here and not there fails one side or the other instead of fencing differently.
|
|
8
8
|
// SAFETY: the golden is this package's own file; the assertions below fail on any field it lacks.
|
|
9
9
|
const GOLDEN = JSON.parse(readFileSync(join(packageRoot(import.meta.url), "golden", "egress-private.json"), "utf8")) as {
|
|
@@ -169,6 +169,10 @@ export const EnvironmentSchema = z.object({
|
|
|
169
169
|
// folder holding its file, so the update card offers that rather than an `ic` swap. Absent from an older daemon too,
|
|
170
170
|
// which is why the card still names the compose way beside the `ic` one when it cannot tell.
|
|
171
171
|
manager: z.literal("compose").optional(),
|
|
172
|
+
// Beside `manager`: the file a Compose sandbox's file reads its credentials from (`env_file:`, COMPOSE_CREDENTIALS_FILE
|
|
173
|
+
// in @intentic/sandbox-run). Absent where they are interpolated from the folder's `.env`, as setup wrote them before
|
|
174
|
+
// 2026-11-23, so the rebuild card renders the file that way again.
|
|
175
|
+
composeCredentials: z.string().optional(),
|
|
172
176
|
// A rebuild waiting for the agents to be idle, or started or refused once they were; absent when none is asked.
|
|
173
177
|
rebuildWhenIdle: EnvironmentRebuildWaitSchema.optional(),
|
|
174
178
|
// A checkout rebuild's restart held until no agent is mid-turn; absent when none is asked.
|
|
@@ -245,6 +245,14 @@ export const ExtensionSummarySchema = z.object({
|
|
|
245
245
|
dev: ExtensionDevSchema.optional().describe(
|
|
246
246
|
"Set while an extension installed from a repository is pointed at a source checkout in this workspace, for working on the extension itself: its code is served from there instead of the pinned copy. `commit` keeps naming the pinned version, which is what updates and the registry compare against.",
|
|
247
247
|
),
|
|
248
|
+
// A workspace folder has no commit to pin (`commit` reads "workspace"), so a land or an edit moving its code is
|
|
249
|
+
// seen by this instead: the editor loads it again when it moves.
|
|
250
|
+
revision: z
|
|
251
|
+
.string()
|
|
252
|
+
.optional()
|
|
253
|
+
.describe(
|
|
254
|
+
"For an extension written in this workspace: a short fingerprint of what the browser runs of it, its declaration and its built bundle. It changes whenever either does, which is how a screen tells the copy it loaded is behind. Absent for other sources.",
|
|
255
|
+
),
|
|
248
256
|
});
|
|
249
257
|
export type ExtensionSummary = z.infer<typeof ExtensionSummarySchema>;
|
|
250
258
|
// The dev-mode verbs address an installed extension any of the ways a person names one.
|