@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
|
@@ -27,16 +27,16 @@ describe("suggestHandoff", () => {
|
|
|
27
27
|
describe("handedOffLine", () => {
|
|
28
28
|
it("names what the continuing session started from beside what carrying would have re-read", () => {
|
|
29
29
|
expect(handedOffLine({ mode: "trim", tokens: 112_400, from: 431_000, cleared: 180 })).toBe(
|
|
30
|
-
"Continued
|
|
30
|
+
"Continued trimmed to ~112k tokens from 431k: 180 old tool outputs cleared.",
|
|
31
31
|
);
|
|
32
32
|
expect(handedOffLine({ mode: "summary", model: "claude-haiku-5-5", from: 431_000 })).toBe(
|
|
33
|
-
"Continued in a fresh session
|
|
33
|
+
"Continued in a fresh session from a summary by claude-haiku-5-5.",
|
|
34
34
|
);
|
|
35
|
-
expect(handedOffLine({ mode: "carry", tokens: 431_000 })).toBe("Continued in the same session, re-reading
|
|
35
|
+
expect(handedOffLine({ mode: "carry", tokens: 431_000 })).toBe("Continued in the same session, re-reading ~431k tokens.");
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
it("says plainly when the way picked could not be built", () => {
|
|
39
|
-
expect(handedOffLine({ mode: "trim", fellBack: true })).toBe("
|
|
39
|
+
expect(handedOffLine({ mode: "trim", fellBack: true })).toBe("Couldn't trim the session, so it was carried whole.");
|
|
40
40
|
expect(handedOffNotice({ mode: "summary", fellBack: true })).toStrictEqual({ code: "handedOff", params: { mode: "summary", fellBack: true } });
|
|
41
41
|
});
|
|
42
42
|
});
|
|
@@ -44,12 +44,10 @@ describe("handedOffLine", () => {
|
|
|
44
44
|
describe("a home's fresh start", () => {
|
|
45
45
|
it("says why the chat started over and what the fresh session opened with", () => {
|
|
46
46
|
expect(freshStartLine({ why: "cold", from: 90_000, summarized: false })).toBe(
|
|
47
|
-
"
|
|
47
|
+
"Idle too long to re-read at ~90k tokens: fresh session, from its recent messages.",
|
|
48
48
|
);
|
|
49
|
-
expect(freshStartLine({ why: "asked", summarized: true })).toBe(
|
|
50
|
-
|
|
51
|
-
);
|
|
52
|
-
expect(freshStartLine({ why: "cleared", summarized: false })).toBe("History cleared: started fresh, opened with its latest messages and the work in hand.");
|
|
49
|
+
expect(freshStartLine({ why: "asked", summarized: true })).toBe("Started fresh, as you asked, from a summary.");
|
|
50
|
+
expect(freshStartLine({ why: "cleared", summarized: false })).toBe("History cleared: started fresh, from its recent messages.");
|
|
53
51
|
});
|
|
54
52
|
|
|
55
53
|
it("carries only the facts it has", () => {
|
|
@@ -67,5 +65,5 @@ describe("a home's fresh start", () => {
|
|
|
67
65
|
test("a failed summary carries its reason into both the notice and readable line", () => {
|
|
68
66
|
const event = { mode: "summary", fellBack: true, reason: "Every summary model is out of allowance" } as const;
|
|
69
67
|
expect(handedOffNotice(event)).toEqual({ code: "handedOff", params: event });
|
|
70
|
-
expect(handedOffLine(event)).toBe("
|
|
68
|
+
expect(handedOffLine(event)).toBe("Couldn't write a summary; started fresh from recent messages. Reason: Every summary model is out of allowance");
|
|
71
69
|
});
|
|
@@ -111,22 +111,21 @@ export const handedOffNotice = (event: HandedOff): Extract<SandboxNotice, { code
|
|
|
111
111
|
export const handedOffLine = (event: HandedOff): string => {
|
|
112
112
|
if (event.fellBack === true) {
|
|
113
113
|
const line = event.mode === "trim"
|
|
114
|
-
? "
|
|
115
|
-
: "
|
|
114
|
+
? "Couldn't trim the session, so it was carried whole."
|
|
115
|
+
: "Couldn't write a summary; started fresh from recent messages.";
|
|
116
116
|
return event.reason === undefined ? line : `${line} Reason: ${event.reason}`;
|
|
117
117
|
}
|
|
118
118
|
const tokens = event.tokens === undefined ? undefined : tokensLabel(event.tokens);
|
|
119
119
|
switch (event.mode) {
|
|
120
120
|
case "carry":
|
|
121
|
-
return
|
|
121
|
+
return tokens === undefined ? "Continued in the same session, re-reading all of it." : `Continued in the same session, re-reading ~${tokens} tokens.`;
|
|
122
122
|
case "trim": {
|
|
123
123
|
const cleared = event.cleared ?? 0;
|
|
124
|
-
const size =
|
|
125
|
-
|
|
126
|
-
return `Continued in a trimmed copy of the session${size}: ${cleared} older tool output${cleared === 1 ? "" : "s"} cleared, every message and tool call kept.`;
|
|
124
|
+
const size = tokens === undefined ? "" : ` to ~${tokens} tokens${event.from === undefined ? "" : ` from ${tokensLabel(event.from)}`}`;
|
|
125
|
+
return `Continued trimmed${size}: ${cleared} old tool output${cleared === 1 ? "" : "s"} cleared.`;
|
|
127
126
|
}
|
|
128
127
|
case "summary":
|
|
129
|
-
return `Continued in a fresh session
|
|
128
|
+
return `Continued in a fresh session from a summary${event.model === undefined ? "" : ` by ${event.model}`}.`;
|
|
130
129
|
}
|
|
131
130
|
};
|
|
132
131
|
|
|
@@ -164,17 +163,17 @@ export const freshStartNotice = (event: FreshStart): Extract<SandboxNotice, { co
|
|
|
164
163
|
|
|
165
164
|
/** The transcript's line for a fresh session, in the English the record keeps. */
|
|
166
165
|
export const freshStartLine = (event: FreshStart): string => {
|
|
167
|
-
const from = event.from === undefined ? "" : ` at
|
|
166
|
+
const from = event.from === undefined ? "" : ` at ~${tokensLabel(event.from)} tokens`;
|
|
168
167
|
const why =
|
|
169
168
|
event.why === "budget"
|
|
170
|
-
? `
|
|
169
|
+
? `Memory full${from}: fresh session`
|
|
171
170
|
: event.why === "cold"
|
|
172
|
-
? `
|
|
171
|
+
? `Idle too long to re-read${from}: fresh session`
|
|
173
172
|
: event.why === "asked"
|
|
174
173
|
? "Started fresh, as you asked"
|
|
175
174
|
: "History cleared: started fresh";
|
|
176
175
|
const carried = event.summarized
|
|
177
|
-
? `,
|
|
178
|
-
: ",
|
|
176
|
+
? `, from a summary${event.model === undefined ? "" : ` by ${event.model}`}.`
|
|
177
|
+
: ", from its recent messages.";
|
|
179
178
|
return `${why}${carried}`;
|
|
180
179
|
};
|
|
@@ -123,8 +123,16 @@ export const LoginCompletedSchema = z.object({
|
|
|
123
123
|
});
|
|
124
124
|
// One attempt's standing, for a card to watch the attempt itself rather than the account list: a list that already
|
|
125
125
|
// held an account says nothing about whether this sign-in, adding another, has landed.
|
|
126
|
+
// Who is still watching for where the browser lands, re-read on every status: a device whose link dropped, or whose
|
|
127
|
+
// agent restarted, stops listening, and a card still promising "finishes by itself" would wait on nobody.
|
|
128
|
+
const LiveCatchersSchema = z
|
|
129
|
+
.array(SignInCatcherSchema)
|
|
130
|
+
.optional()
|
|
131
|
+
.describe(
|
|
132
|
+
"Who is still watching for where the browser lands, for an attempt that started with somebody watching. Empty means every watcher has gone (a device disconnected, a browser closed): the sign-in will not finish by itself any more, and the address the browser landed on has to be handed back. Absent for an attempt nobody watched.",
|
|
133
|
+
);
|
|
126
134
|
export const LoginStatusSchema = z.discriminatedUnion("status", [
|
|
127
|
-
z.object({ status: z.literal("wait") }),
|
|
135
|
+
z.object({ status: z.literal("wait"), catchers: LiveCatchersSchema }),
|
|
128
136
|
z.object({
|
|
129
137
|
status: z.literal("ok"),
|
|
130
138
|
account: OauthAccountSchema.optional().describe("The account it connected. Absent where the row lands in the account list a little later."),
|
|
@@ -154,7 +162,7 @@ export const TranslatorStartSchema = z.object({
|
|
|
154
162
|
),
|
|
155
163
|
});
|
|
156
164
|
export const TranslatorStatusSchema = z.discriminatedUnion("status", [
|
|
157
|
-
z.object({ status: z.literal("wait") }),
|
|
165
|
+
z.object({ status: z.literal("wait"), catchers: LiveCatchersSchema }),
|
|
158
166
|
z.object({ status: z.literal("ok") }),
|
|
159
167
|
z.object({ status: z.literal("error"), error: z.string().min(1) }),
|
|
160
168
|
]);
|
|
@@ -63,6 +63,15 @@ export const ProviderRefusalSchema = z.object({
|
|
|
63
63
|
.describe(
|
|
64
64
|
"Set by a person rather than by a refused turn, for a plan nothing can read: believed for a day, or until unmarked or a turn on it is answered.",
|
|
65
65
|
),
|
|
66
|
+
// Heard from the platform rather than refused here (2026-11-24, docs/architecture/account-routing.md): another of the
|
|
67
|
+
// owner's sandboxes signed in to the same provider account was refused for a spent allowance. Judged as a limit
|
|
68
|
+
// refusal like any other, and settled the same way: a turn answered here proves the account has room again.
|
|
69
|
+
source: z
|
|
70
|
+
.enum(["another-sandbox"])
|
|
71
|
+
.optional()
|
|
72
|
+
.describe(
|
|
73
|
+
"Where the refusal was seen, when not here: `another-sandbox` for a spent allowance another of the owner's sandboxes on the same account reported. Absent for one this sandbox's own turn met.",
|
|
74
|
+
),
|
|
66
75
|
});
|
|
67
76
|
export type ProviderRefusal = z.infer<typeof ProviderRefusalSchema>;
|
|
68
77
|
// A routed account's per-model bench as the translator holds it: the provider's own refusal of that account on that
|
|
@@ -5,28 +5,28 @@ import { type Switched, switchedLine, switchedNotice } from "./switched.js";
|
|
|
5
5
|
describe("switchedLine", () => {
|
|
6
6
|
it("names the provider, account or loop a fresh session started on", () => {
|
|
7
7
|
expect(switchedLine({ segment: "provider", provider: "codex", model: "gpt-5-codex", fresh: true })).toBe(
|
|
8
|
-
"Switched to Codex:
|
|
8
|
+
"Switched to Codex: fresh session, conversation carried over.",
|
|
9
9
|
);
|
|
10
10
|
expect(switchedLine({ segment: "account", provider: "claude", account: "Work", fresh: true })).toBe(
|
|
11
|
-
"Switched to the Work account:
|
|
11
|
+
"Switched to the Work account: fresh session, conversation carried over.",
|
|
12
12
|
);
|
|
13
13
|
expect(switchedLine({ segment: "loop", provider: "kimi", loop: "Claude Code", fresh: true })).toBe(
|
|
14
|
-
"Switched to running through Claude Code:
|
|
14
|
+
"Switched to running through Claude Code: fresh session, conversation carried over.",
|
|
15
15
|
);
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
it("says an account it has no name for as another of the provider's, never as the provider it was already on", () => {
|
|
19
19
|
expect(switchedLine({ segment: "account", provider: "claude", fresh: true })).toBe(
|
|
20
|
-
"Switched to another Claude account:
|
|
20
|
+
"Switched to another Claude account: fresh session, conversation carried over.",
|
|
21
21
|
);
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
it("says a model switch kept the session, or that it opened a fresh one where there was none to keep", () => {
|
|
25
25
|
expect(switchedLine({ segment: "model", provider: "claude", model: "claude-sonnet-5", fresh: false })).toBe(
|
|
26
|
-
"Switched to Claude Sonnet 5: same session,
|
|
26
|
+
"Switched to Claude Sonnet 5: same session, re-read once.",
|
|
27
27
|
);
|
|
28
28
|
expect(switchedLine({ segment: "model", provider: "claude", model: "claude-sonnet-5", fresh: true })).toBe(
|
|
29
|
-
"Switched to Claude Sonnet 5:
|
|
29
|
+
"Switched to Claude Sonnet 5: fresh session, conversation carried over.",
|
|
30
30
|
);
|
|
31
31
|
});
|
|
32
32
|
});
|
|
@@ -68,5 +68,5 @@ const switchedTo = (event: Switched): string => {
|
|
|
68
68
|
/** The transcript's line for a turn that switched what it runs on, in the English the record keeps. */
|
|
69
69
|
export const switchedLine = (event: Switched): string =>
|
|
70
70
|
`${switchedTo(event)}: ${
|
|
71
|
-
event.fresh ? "
|
|
71
|
+
event.fresh ? "fresh session, conversation carried over." : "same session, re-read once."
|
|
72
72
|
}`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
// A message the free trial turned away as busy, which the sandbox sends again by itself on a short bounded backoff
|
|
4
|
+
// (the daemon's trial-retry.ts): which try its booking is, of how many. A booking a person re-times, a pick that moves
|
|
5
|
+
// the words, or a message sent after them takes it off, and the words go (or wait) as that person said.
|
|
6
|
+
export const QueuedTrialRetrySchema = z
|
|
7
|
+
.object({
|
|
8
|
+
made: z.number().int().min(1).describe("Which automatic try this booking is, counting from 1."),
|
|
9
|
+
max: z.number().int().min(1).describe("How many automatic tries the sandbox makes before it leaves the message for a press."),
|
|
10
|
+
})
|
|
11
|
+
.describe(
|
|
12
|
+
"Says `until` is the sandbox sending this message again by itself after the free trial turned it away as busy, not a time somebody chose. Absent on any other booking, and from sandboxes older than the field.",
|
|
13
|
+
);
|
|
14
|
+
export type QueuedTrialRetry = z.infer<typeof QueuedTrialRetrySchema>;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type RemoteServiceResult, RemoteServiceResultSchema } from "./device-remote.js";
|
|
3
|
+
|
|
4
|
+
// A PERSON'S REMOTE SCREEN AND TERMINALS ON A CONNECTED COMPUTER (2026-11-20), the editor's `remote.*` procedures. The
|
|
5
|
+
// computer's `intentic-remoted` serves both; it dials the sandbox's netd (browser-wire's DEVICE_UPLINK_PATH), and netd
|
|
6
|
+
// carries each viewer's socket down that uplink, so neither a picture nor a keystroke crosses the daemon. The daemon
|
|
7
|
+
// decides who may, starts remoted through the machine agent on the first open, and mints the token each socket opens
|
|
8
|
+
// with, castd's format with `s` naming `media/<session>` or `terminal/<session>`. A screen's socket speaks the media
|
|
9
|
+
// socket's protocol and a terminal's the sandbox terminal's, at the `path` handed back with `?token=<token>` after it.
|
|
10
|
+
|
|
11
|
+
// `[A-Za-z0-9_-]{1,64}`: what netd lets through as a device's or a session's name on the viewer's path.
|
|
12
|
+
const SessionNameSchema = z.string().regex(/^[A-Za-z0-9_-]{1,64}$/, "letters, digits, dash and underscore, at most 64");
|
|
13
|
+
|
|
14
|
+
// Which computer: the connection key the device list addresses it by (`rog`, `rog::wsl:archlinux`).
|
|
15
|
+
const DeviceKeySchema = z.string().min(1).max(200).describe("The device's connection, as the device list names it: `rog`, or `rog::wsl:archlinux`.");
|
|
16
|
+
|
|
17
|
+
export const RemoteDeviceInputSchema = z.object({ device: DeviceKeySchema });
|
|
18
|
+
|
|
19
|
+
// Which of the computer's switches allow what, as the computer itself says (or its card, before remoted has run).
|
|
20
|
+
export const RemoteAccessAllowSchema = z.object({
|
|
21
|
+
// Watch the screen.
|
|
22
|
+
view: z.boolean(),
|
|
23
|
+
// Drive the pointer and keys.
|
|
24
|
+
control: z.boolean(),
|
|
25
|
+
// Open terminals.
|
|
26
|
+
terminal: z.boolean(),
|
|
27
|
+
});
|
|
28
|
+
export type RemoteAccessAllow = z.infer<typeof RemoteAccessAllowSchema>;
|
|
29
|
+
|
|
30
|
+
// One monitor of the computer, in its own desktop's pixels.
|
|
31
|
+
export const RemoteAccessMonitorSchema = z.object({
|
|
32
|
+
id: z.string(),
|
|
33
|
+
name: z.string(),
|
|
34
|
+
x: z.number(),
|
|
35
|
+
y: z.number(),
|
|
36
|
+
width: z.number(),
|
|
37
|
+
height: z.number(),
|
|
38
|
+
scale: z.number(),
|
|
39
|
+
primary: z.boolean(),
|
|
40
|
+
});
|
|
41
|
+
export type RemoteAccessMonitor = z.infer<typeof RemoteAccessMonitorSchema>;
|
|
42
|
+
|
|
43
|
+
// One terminal remoted holds, which any entitled viewer can attach to again while remoted runs.
|
|
44
|
+
export const RemoteTerminalSchema = z.object({
|
|
45
|
+
session: z.string(),
|
|
46
|
+
title: z.string(),
|
|
47
|
+
// The environment it runs in (`native`, `wsl:archlinux`).
|
|
48
|
+
environment: z.string(),
|
|
49
|
+
// When it was opened, in ms since the epoch.
|
|
50
|
+
createdAt: z.number(),
|
|
51
|
+
// Sockets attached to it now.
|
|
52
|
+
viewers: z.number(),
|
|
53
|
+
});
|
|
54
|
+
export type RemoteTerminal = z.infer<typeof RemoteTerminalSchema>;
|
|
55
|
+
|
|
56
|
+
export const RemoteStatusSchema = z.object({
|
|
57
|
+
// Whether a screen or a terminal can be opened now; `reason` says why not, in words for the person.
|
|
58
|
+
available: z.boolean(),
|
|
59
|
+
reason: z.string().optional(),
|
|
60
|
+
allow: RemoteAccessAllowSchema,
|
|
61
|
+
// Empty until remoted has run once since the device connected.
|
|
62
|
+
monitors: z.array(RemoteAccessMonitorSchema),
|
|
63
|
+
// Why a computer that would show its screen here has none to show (no display and nothing to start a virtual desktop
|
|
64
|
+
// with, a Wayland session without PipeWire), in remoted's words naming what to install. Only while monitors is empty.
|
|
65
|
+
screenReason: z.string().optional(),
|
|
66
|
+
// The environments a terminal can open in.
|
|
67
|
+
environments: z.array(z.string()),
|
|
68
|
+
terminals: z.array(RemoteTerminalSchema),
|
|
69
|
+
});
|
|
70
|
+
export type RemoteStatus = z.infer<typeof RemoteStatusSchema>;
|
|
71
|
+
|
|
72
|
+
// A STUN (or TURN) server both ends of a screen's peer connection use, as RTCPeerConnection takes it.
|
|
73
|
+
export const RemoteIceServerSchema = z.object({
|
|
74
|
+
urls: z.array(z.string().min(1)).min(1),
|
|
75
|
+
username: z.string().optional(),
|
|
76
|
+
credential: z.string().optional(),
|
|
77
|
+
});
|
|
78
|
+
export type RemoteIceServer = z.infer<typeof RemoteIceServerSchema>;
|
|
79
|
+
|
|
80
|
+
// Cloudflare's public STUN: reflexive candidates for a direct path when the network allows one.
|
|
81
|
+
export const DEFAULT_REMOTE_ICE_SERVERS: readonly RemoteIceServer[] = [{ urls: ["stun:stun.cloudflare.com:3478"] }];
|
|
82
|
+
|
|
83
|
+
// The sandbox setting (`remoteIceServers`, settings.ts) naming the servers both ends of a screen's peer connection gather
|
|
84
|
+
// candidates from: the editor's and the computer's remoted. An empty list leaves only host candidates, a direct path only
|
|
85
|
+
// where the two share a network.
|
|
86
|
+
export const remoteIceServersSetting = z
|
|
87
|
+
.array(RemoteIceServerSchema)
|
|
88
|
+
.max(8)
|
|
89
|
+
.default(() => DEFAULT_REMOTE_ICE_SERVERS.map((server) => ({ ...server, urls: [...server.urls] })))
|
|
90
|
+
.describe(
|
|
91
|
+
"The STUN servers a remote screen on one of your computers uses to find a direct path between your browser and that computer, as RTCPeerConnection takes them (`urls`, and `username` and `credential` for a TURN server). Cloudflare's public STUN by default. Empty finds a direct path only when both are on the same network; otherwise the picture goes through the sandbox.",
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
export const RemoteOpenScreenInputSchema = RemoteDeviceInputSchema.extend({
|
|
95
|
+
// A monitor's id from `status`; absent, the primary one.
|
|
96
|
+
monitor: z.string().max(64).optional(),
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
// A socket's token: what it opens with (`?token=`), and when it stops opening anything, in ms since the epoch. An open
|
|
100
|
+
// socket outlives it by the media grace; `refresh` hands a fresher one for the socket's `{type: "token"}` message.
|
|
101
|
+
export const RemoteTokenSchema = z.object({ token: z.string(), expiresAt: z.number() });
|
|
102
|
+
export type RemoteToken = z.infer<typeof RemoteTokenSchema>;
|
|
103
|
+
|
|
104
|
+
export const RemoteScreenSchema = RemoteTokenSchema.extend({
|
|
105
|
+
// `screen-<monitor id>`.
|
|
106
|
+
session: z.string(),
|
|
107
|
+
// Where the media socket opens on the sandbox's address: `/system/device-media/<device>/<session>`.
|
|
108
|
+
path: z.string(),
|
|
109
|
+
// A viewer who may watch and not drive: remoted ignores its input.
|
|
110
|
+
readOnly: z.boolean(),
|
|
111
|
+
iceServers: z.array(RemoteIceServerSchema),
|
|
112
|
+
});
|
|
113
|
+
export type RemoteScreen = z.infer<typeof RemoteScreenSchema>;
|
|
114
|
+
|
|
115
|
+
export const RemoteOpenTerminalInputSchema = RemoteDeviceInputSchema.extend({
|
|
116
|
+
// `native` or a distro (`wsl:archlinux`) from `status`; absent, remoted's own.
|
|
117
|
+
environment: z.string().max(200).optional(),
|
|
118
|
+
shell: z.string().max(400).optional(),
|
|
119
|
+
cwd: z.string().max(4000).optional(),
|
|
120
|
+
cols: z.number().int().min(1).max(1000),
|
|
121
|
+
rows: z.number().int().min(1).max(1000),
|
|
122
|
+
});
|
|
123
|
+
export type RemoteOpenTerminalInput = z.infer<typeof RemoteOpenTerminalInputSchema>;
|
|
124
|
+
|
|
125
|
+
export const RemoteSessionInputSchema = RemoteDeviceInputSchema.extend({ session: SessionNameSchema });
|
|
126
|
+
|
|
127
|
+
export const RemoteTerminalOpenedSchema = RemoteTokenSchema.extend({
|
|
128
|
+
// `t-<random>`.
|
|
129
|
+
session: z.string(),
|
|
130
|
+
// Where the terminal socket opens on the sandbox's address: `/system/device-terminal/<device>/<session>`.
|
|
131
|
+
path: z.string(),
|
|
132
|
+
});
|
|
133
|
+
export type RemoteTerminalOpened = z.infer<typeof RemoteTerminalOpenedSchema>;
|
|
134
|
+
|
|
135
|
+
// Windows' lock screen and administrator prompts (schemas/device-remote.ts has what the service is): the computer's own
|
|
136
|
+
// answer, passed on as it came. `remote.service` reads it; `remote.changeService` installs (or updates) or removes it
|
|
137
|
+
// through one UAC prompt on that computer, and answers the status read after it, with `declined` or `error` saying why
|
|
138
|
+
// nothing changed.
|
|
139
|
+
export const RemoteServiceSchema = RemoteServiceResultSchema;
|
|
140
|
+
export type RemoteService = RemoteServiceResult;
|
|
141
|
+
|
|
142
|
+
export const RemoteServiceChangeInputSchema = RemoteDeviceInputSchema.extend({ action: z.enum(["install", "uninstall"]) });
|
|
143
|
+
export type RemoteServiceChangeInput = z.infer<typeof RemoteServiceChangeInputSchema>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { STATE_DIR } from "@intentic/constants";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { CHECKOUT_HOOKS_FILE } from "./checkout-hooks.js";
|
|
3
4
|
import { ArtifactNameSchema } from "./device-artifacts.js";
|
|
4
5
|
|
|
5
6
|
// <repo>/.intentic/run.json declares what a repository can run, and where: in the sandbox, on the owner's own computers, or
|
|
@@ -21,7 +22,7 @@ export const HEAVY_CLASSES_FILE = `${STATE_DIR}/heavy.json`;
|
|
|
21
22
|
|
|
22
23
|
// Project files under `.intentic/` live at each repository's root, including a project kept at the workspace root.
|
|
23
24
|
// The root repo tracks them (VERSIONED_STATE_PATHS in state/workspace-state.ts), so an agent's edit lands like code.
|
|
24
|
-
export const ROOT_PROJECT_PATHS: readonly string[] = [RUN_TARGETS_FILE, HEAVY_CLASSES_FILE];
|
|
25
|
+
export const ROOT_PROJECT_PATHS: readonly string[] = [RUN_TARGETS_FILE, HEAVY_CLASSES_FILE, CHECKOUT_HOOKS_FILE];
|
|
25
26
|
|
|
26
27
|
const RepoPathSchema = z
|
|
27
28
|
.string()
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
// A PERSON'S LIVE VIEW OF A CONVERSATION THAT RUNS ON A RUNNER (2026-11-23), the editor's `runners.openView`. A runner is
|
|
4
|
+
// another machine's sandbox container; the editor only ever talks to this sandbox, whose netd carries the view's socket
|
|
5
|
+
// down the runner's uplink under `/system/runner-view/<runner>/…` once this daemon redeems the one-shot ticket the answer
|
|
6
|
+
// carries. Each dial asks again: a ticket opens one socket, for a few seconds.
|
|
7
|
+
|
|
8
|
+
export const RunnerViewKindSchema = z.enum(["terminal", "browser-view", "desktop-view"]);
|
|
9
|
+
export type RunnerViewKind = z.infer<typeof RunnerViewKindSchema>;
|
|
10
|
+
|
|
11
|
+
export const RunnerOpenViewInputSchema = z.object({
|
|
12
|
+
conversationId: z.string().min(1).describe("The conversation whose runner the view is of."),
|
|
13
|
+
kind: RunnerViewKindSchema.describe("A terminal, a browser window's picture, or the desktop's."),
|
|
14
|
+
session: z
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe("The terminal session, the browser window (the runner's own name for it), or the desktop window; absent for the whole desktop."),
|
|
18
|
+
});
|
|
19
|
+
export type RunnerOpenViewInput = z.infer<typeof RunnerOpenViewInputSchema>;
|
|
20
|
+
|
|
21
|
+
export const RunnerViewSchema = z.object({
|
|
22
|
+
runner: z.string().describe("The runner the view opens on."),
|
|
23
|
+
// `/system/runner-view/<runner>/system/<view>`, on this sandbox's own address.
|
|
24
|
+
path: z.string().describe("Where the socket opens on this sandbox's address."),
|
|
25
|
+
query: z.string().describe("The query the socket opens with, its ticket included; add the view's own parameters to it."),
|
|
26
|
+
});
|
|
27
|
+
export type RunnerView = z.infer<typeof RunnerViewSchema>;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { MemberTierSchema } from "./shared.js";
|
|
3
|
+
|
|
4
|
+
// ONE SANDBOX'S TIES TO EVERYTHING OUTSIDE IT, as the person reading may see them (GET /system/reach). The editor asks
|
|
5
|
+
// every sandbox an account reaches for this answer and joins them into the account's access map (Settings ▸ Access
|
|
6
|
+
// map, docs/architecture/accounts.md): the other sandboxes this one hands work to and takes work from, the computers
|
|
7
|
+
// and servers its agents reach, and whether it may create sandboxes on its owner's account. Each daemon answers for
|
|
8
|
+
// its own ties alone, from what it stores and enforces, so the platform never learns them.
|
|
9
|
+
//
|
|
10
|
+
// Nothing here is a credential: no token, no address path, no secret. What joins two answers is an id both sides hold:
|
|
11
|
+
// a sandbox's platform id (else its address's host name), a computer's machine id (else its host name), a server's
|
|
12
|
+
// host name. Open sets (a link's answer, a device's kind, the switches it has on) are strings rather than enums, so a
|
|
13
|
+
// value a newer daemon adds never fails an older editor's parse; the known values are named below.
|
|
14
|
+
|
|
15
|
+
/** What a link's far side answered the last time this sandbox asked it (`GET /link`). */
|
|
16
|
+
export const REACH_LINK_ANSWERS = ["answering", "silent", "revoked"] as const;
|
|
17
|
+
export type ReachLinkAnswer = (typeof REACH_LINK_ANSWERS)[number];
|
|
18
|
+
|
|
19
|
+
/** What kind of thing a device card connects. */
|
|
20
|
+
export const REACH_DEVICE_KINDS = ["computer", "phone", "browser"] as const;
|
|
21
|
+
export type ReachDeviceKind = (typeof REACH_DEVICE_KINDS)[number];
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A device card's switches that let an agent or a person act on the machine, in the order they are said. A card's
|
|
25
|
+
* switch that is on and named here is listed in `grants`; `roots` and the rest are settings, not grants.
|
|
26
|
+
*/
|
|
27
|
+
export const REACH_DEVICE_GRANTS = [
|
|
28
|
+
"shell",
|
|
29
|
+
"write",
|
|
30
|
+
"screen",
|
|
31
|
+
"control",
|
|
32
|
+
"sandboxes",
|
|
33
|
+
"destructive",
|
|
34
|
+
"admin",
|
|
35
|
+
"programs",
|
|
36
|
+
"remoteView",
|
|
37
|
+
"remoteControl",
|
|
38
|
+
"remoteTerminal",
|
|
39
|
+
] as const;
|
|
40
|
+
export type ReachDeviceGrant = (typeof REACH_DEVICE_GRANTS)[number];
|
|
41
|
+
|
|
42
|
+
/** The grants that let whoever holds them act on the machine as themselves (run, change or drive it), not only look. */
|
|
43
|
+
export const REACH_DEVICE_ACTING_GRANTS: readonly ReachDeviceGrant[] = ["shell", "write", "control", "destructive", "programs", "remoteControl", "remoteTerminal", "admin"];
|
|
44
|
+
|
|
45
|
+
/** A link's terms as the taking sandbox sets them, in the words both ends of a tie read. */
|
|
46
|
+
export const ReachLinkTermsSchema = z.object({
|
|
47
|
+
tasks: z.boolean().describe("Its agents may hand that sandbox tasks."),
|
|
48
|
+
records: z.boolean().describe("They may read that sandbox's conversations and diagnostics."),
|
|
49
|
+
operate: z.boolean().describe("They may run commands and read and write files there, as its owner's terminal would."),
|
|
50
|
+
approve: z.boolean().describe("Each new task waits for that sandbox's owner to allow it."),
|
|
51
|
+
role: z.string().optional().describe("The name of the role its tasks wear there; absent, they wear none."),
|
|
52
|
+
});
|
|
53
|
+
export type ReachLinkTerms = z.infer<typeof ReachLinkTermsSchema>;
|
|
54
|
+
|
|
55
|
+
// How many other people here may use one card through their own conversations: the owner and everyone on the roster
|
|
56
|
+
// who runs agents here and whose own access reaches the card. Only for a reader who runs people and access.
|
|
57
|
+
const othersField = z
|
|
58
|
+
.number()
|
|
59
|
+
.int()
|
|
60
|
+
.nonnegative()
|
|
61
|
+
.optional()
|
|
62
|
+
.describe("How many other people here may have their own agents use it. Absent when the roster is not the reader's to read.");
|
|
63
|
+
|
|
64
|
+
// Whether the reader's own conversations here may use one card: they run agents here, and their access reaches it.
|
|
65
|
+
const yoursField = z.boolean().describe("Whether the reader's own conversations here may use it.");
|
|
66
|
+
|
|
67
|
+
/** A `link` card here: this sandbox's agents may hand work to that one, under that sandbox's terms. */
|
|
68
|
+
export const ReachLinkOutSchema = z.object({
|
|
69
|
+
card: z.string().describe("The card's id here: what this sandbox's agents hand work `to`."),
|
|
70
|
+
name: z.string().optional().describe("What the other sandbox is called, as pairing named it."),
|
|
71
|
+
sandboxId: z.string().optional().describe("The other sandbox's platform id, when pairing named it."),
|
|
72
|
+
host: z.string().describe("The host name of the other sandbox's address, the join key when no id was named."),
|
|
73
|
+
answer: z.string().describe("What it answered when last asked: answering, silent (off or unreachable) or revoked."),
|
|
74
|
+
terms: ReachLinkTermsSchema.optional().describe("Its terms as the other sandbox last said them; absent while it has not answered."),
|
|
75
|
+
yours: yoursField,
|
|
76
|
+
others: othersField,
|
|
77
|
+
});
|
|
78
|
+
export type ReachLinkOut = z.infer<typeof ReachLinkOutSchema>;
|
|
79
|
+
|
|
80
|
+
/** An inbound link here: that sandbox's agents may hand work to this one, under the terms this sandbox's owner set. */
|
|
81
|
+
export const ReachLinkInSchema = z.object({
|
|
82
|
+
id: z.string(),
|
|
83
|
+
label: z.string().describe("What the asking sandbox is called here."),
|
|
84
|
+
sandboxId: z.string().optional().describe("The asking sandbox's platform id, when pairing named it."),
|
|
85
|
+
host: z.string().optional().describe("The host name of the asking sandbox's address, when pairing named it."),
|
|
86
|
+
terms: ReachLinkTermsSchema.extend({
|
|
87
|
+
runAs: z.string().optional().describe("The name of the service its tasks act as; absent, they act for this sandbox's owner."),
|
|
88
|
+
}),
|
|
89
|
+
lastUsedAt: z.number().optional().describe("When it was last used, epoch milliseconds; absent means never."),
|
|
90
|
+
waiting: z.number().int().nonnegative().describe("Tasks it handed over that wait for this sandbox's owner."),
|
|
91
|
+
});
|
|
92
|
+
export type ReachLinkIn = z.infer<typeof ReachLinkInSchema>;
|
|
93
|
+
|
|
94
|
+
/** A computer, phone or browser this sandbox's agents reach through a card of its own. */
|
|
95
|
+
export const ReachDeviceSchema = z.object({
|
|
96
|
+
card: z.string(),
|
|
97
|
+
kind: z.string().describe("computer, phone or browser."),
|
|
98
|
+
label: z.string().describe("What the owner calls it."),
|
|
99
|
+
machineId: z.string().optional().describe("The computer's own stable id, shared by every environment on it: the join key across sandboxes."),
|
|
100
|
+
hostname: z.string().optional().describe("Its OS host name, the join key when it has said no machine id."),
|
|
101
|
+
platform: z.string().optional().describe("windows, macos, linux, android, ios."),
|
|
102
|
+
online: z.boolean().optional().describe("Connected now; absent where nothing could say."),
|
|
103
|
+
grants: z.array(z.string()).describe("The card's switches that are on (REACH_DEVICE_GRANTS)."),
|
|
104
|
+
yours: yoursField,
|
|
105
|
+
others: othersField,
|
|
106
|
+
});
|
|
107
|
+
export type ReachDevice = z.infer<typeof ReachDeviceSchema>;
|
|
108
|
+
|
|
109
|
+
/** A server this sandbox's agents sign in to over SSH. */
|
|
110
|
+
export const ReachServerSchema = z.object({
|
|
111
|
+
card: z.string(),
|
|
112
|
+
host: z.string().describe("The host it dials, lowercased: the join key across sandboxes."),
|
|
113
|
+
user: z.string().optional(),
|
|
114
|
+
admin: z.boolean().describe("The card holds an admin password its agents may type to sudo or su."),
|
|
115
|
+
yours: yoursField,
|
|
116
|
+
others: othersField,
|
|
117
|
+
});
|
|
118
|
+
export type ReachServer = z.infer<typeof ReachServerSchema>;
|
|
119
|
+
|
|
120
|
+
export const SandboxReachSchema = z.object({
|
|
121
|
+
self: z.object({
|
|
122
|
+
sandboxId: z.string().optional().describe("This sandbox's platform id, as its last announce was answered; absent before one."),
|
|
123
|
+
runsOn: z
|
|
124
|
+
.object({ host: z.string().optional(), os: z.string().optional() })
|
|
125
|
+
.optional()
|
|
126
|
+
.describe("The machine this copy runs on and its side, as its host named them. Only for the owner and Full access."),
|
|
127
|
+
org: z
|
|
128
|
+
.object({ id: z.string(), name: z.string() })
|
|
129
|
+
.optional()
|
|
130
|
+
.describe("The organisation whose policy this daemon enforces here; absent for a personal sandbox."),
|
|
131
|
+
}),
|
|
132
|
+
reader: z.object({
|
|
133
|
+
tier: MemberTierSchema.describe("The reader's tier here, as this daemon enforces it now."),
|
|
134
|
+
agents: z.boolean().describe("Whether the reader's conversations here run agents."),
|
|
135
|
+
}),
|
|
136
|
+
linksOut: z.array(ReachLinkOutSchema),
|
|
137
|
+
linksIn: z.array(ReachLinkInSchema).optional().describe("Absent below Full access: minting and reading inbound links is theirs."),
|
|
138
|
+
devices: z.array(ReachDeviceSchema),
|
|
139
|
+
servers: z.array(ReachServerSchema),
|
|
140
|
+
fleet: z
|
|
141
|
+
.object({ yours: yoursField, others: othersField })
|
|
142
|
+
.optional()
|
|
143
|
+
.describe("This sandbox holds a fleet card: its agents may create and manage sandboxes on its owner's account."),
|
|
144
|
+
people: z
|
|
145
|
+
.number()
|
|
146
|
+
.int()
|
|
147
|
+
.nonnegative()
|
|
148
|
+
.optional()
|
|
149
|
+
.describe("How many other people may sign in here, the owner included when the reader is not them. Absent when the roster is not the reader's to read."),
|
|
150
|
+
readAt: z.number().describe("When this answer was put together, epoch milliseconds."),
|
|
151
|
+
});
|
|
152
|
+
export type SandboxReach = z.infer<typeof SandboxReachSchema>;
|
|
153
|
+
|
|
154
|
+
/** The host name of an address, lowercased, with no scheme, port, path or credentials: the join key two answers share. */
|
|
155
|
+
export const reachHostOf = (address: string): string =>
|
|
156
|
+
address
|
|
157
|
+
.trim()
|
|
158
|
+
.toLowerCase()
|
|
159
|
+
.replace(/^[a-z][a-z0-9+.-]*:\/\//, "")
|
|
160
|
+
.replace(/^[^@/]*@/, "")
|
|
161
|
+
.replace(/[/:?#].*$/, "");
|
package/src/schemas/seal.ts
CHANGED
|
@@ -67,7 +67,8 @@ export const SealAskSchema = SealPersonSchema.extend({ at: z.number() });
|
|
|
67
67
|
export type SealAsk = z.infer<typeof SealAskSchema>;
|
|
68
68
|
|
|
69
69
|
export const SEAL_OPEN_HOURS = 24;
|
|
70
|
-
|
|
70
|
+
// Any reason the owner writes will do: a minimum length only disabled the press on a short, honest one ("Help").
|
|
71
|
+
export const SEAL_REASON_MIN = 1;
|
|
71
72
|
export const SEAL_REASON_MAX = 500;
|
|
72
73
|
|
|
73
74
|
// An opening without asking. Kept on the conversation for good; no route removes one. `approvedBy` is the second
|
|
@@ -244,6 +244,7 @@ test("build output defaults: six idle hours, reaping under 15% free, full debug
|
|
|
244
244
|
expect(defaults.buildOutputIdleHours).toBe(6);
|
|
245
245
|
expect(defaults.diskReapBelowPercent).toBe(15);
|
|
246
246
|
expect(defaults.leanRustBuilds).toBe(false);
|
|
247
|
+
expect(defaults.rustIncrementalOff).toBe(false);
|
|
247
248
|
expect(SandboxSettingsSchema.safeParse({ buildOutputIdleHours: 0 }).success).toBe(false);
|
|
248
249
|
expect(SandboxSettingsSchema.safeParse({ diskReapBelowPercent: 4 }).success).toBe(false);
|
|
249
250
|
});
|
|
@@ -298,13 +299,13 @@ describe(`default job setups`, () => {
|
|
|
298
299
|
});
|
|
299
300
|
});
|
|
300
301
|
|
|
301
|
-
// A memory kill's answer
|
|
302
|
-
//
|
|
302
|
+
// A memory kill's answer and the restart switch are both on to begin with: a memory kill lets its victims back one at a
|
|
303
|
+
// time once memory settles (turn-break.ts), any other restart resumes what it cut. Only the two answers it takes are written.
|
|
303
304
|
describe(`the answer to a memory kill`, () => {
|
|
304
|
-
test(`resumes by default,
|
|
305
|
+
test(`resumes by default, as resuming after any restart does`, () => {
|
|
305
306
|
const defaults = SandboxSettingsSchema.parse({});
|
|
306
307
|
expect(defaults.memoryKillPolicy).toBe(`resume`);
|
|
307
|
-
expect(defaults.autoResumeOnRestart).toBe(
|
|
308
|
+
expect(defaults.autoResumeOnRestart).toBe(true);
|
|
308
309
|
});
|
|
309
310
|
|
|
310
311
|
test(`takes wait or resume and nothing else`, () => {
|