@intentic/sandbox-contract 1.344.0 → 1.346.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 +27 -9
- package/dist/contracts/accounts.contract.d.ts +24 -80
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.d.ts +247 -8
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +13 -2
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +1570 -33
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +47 -4
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/device.contract.d.ts +244 -1
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/device.contract.js +5 -1
- package/dist/contracts/device.contract.js.map +1 -1
- package/dist/contracts/endpoints.contract.d.ts +2 -1
- package/dist/contracts/endpoints.contract.d.ts.map +1 -1
- package/dist/contracts/endpoints.contract.js +1 -0
- package/dist/contracts/endpoints.contract.js.map +1 -1
- package/dist/contracts/providers.contract.d.ts +0 -1
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/push.contract.d.ts +11 -0
- package/dist/contracts/push.contract.d.ts.map +1 -1
- package/dist/contracts/push.contract.js +10 -1
- package/dist/contracts/push.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +149 -123
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.d.ts +169 -0
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +35 -0
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +2 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +37 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +235 -31
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/translator.contract.d.ts +24 -80
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.d.ts +11 -0
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.js +11 -1
- package/dist/contracts/workspace.contract.js.map +1 -1
- package/dist/events/agent-events.d.ts +60 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +44 -38
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/agent-transcript.d.ts +727 -0
- package/dist/events/agent-transcript.d.ts.map +1 -0
- package/dist/events/agent-transcript.js +34 -0
- package/dist/events/agent-transcript.js.map +1 -0
- 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 +9 -0
- package/dist/events/agent-words.js.map +1 -1
- package/dist/events/failure-rows.d.ts +14 -0
- package/dist/events/failure-rows.d.ts.map +1 -0
- package/dist/events/failure-rows.js +109 -0
- package/dist/events/failure-rows.js.map +1 -0
- package/dist/events/requests.d.ts +143 -0
- package/dist/events/requests.d.ts.map +1 -1
- package/dist/events/requests.js +35 -1
- package/dist/events/requests.js.map +1 -1
- package/dist/events/sandbox-notice.d.ts +23 -0
- package/dist/events/sandbox-notice.d.ts.map +1 -1
- package/dist/events/sandbox-notice.js +2 -0
- package/dist/events/sandbox-notice.js.map +1 -1
- package/dist/events/system-events.d.ts +156 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/system-events.js +7 -1
- package/dist/events/system-events.js.map +1 -1
- package/dist/events/transcript.d.ts +20 -720
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/events/transcript.js +17 -19
- package/dist/events/transcript.js.map +1 -1
- package/dist/ids/conversation-ids.d.ts +2 -0
- package/dist/ids/conversation-ids.d.ts.map +1 -1
- package/dist/ids/conversation-ids.js +2 -0
- package/dist/ids/conversation-ids.js.map +1 -1
- package/dist/ids/row-ids.d.ts +3 -0
- package/dist/ids/row-ids.d.ts.map +1 -0
- package/dist/ids/row-ids.js +11 -0
- package/dist/ids/row-ids.js.map +1 -0
- package/dist/index.d.ts +2296 -199
- package/dist/index.d.ts.map +1 -1
- package/dist/models/agent-lanes.d.ts.map +1 -1
- package/dist/models/agent-lanes.js +6 -7
- package/dist/models/agent-lanes.js.map +1 -1
- package/dist/models/agent-standing.d.ts +6 -19
- package/dist/models/agent-standing.d.ts.map +1 -1
- package/dist/models/agent-standing.js +14 -38
- package/dist/models/agent-standing.js.map +1 -1
- package/dist/models/model-pins.d.ts +3 -0
- package/dist/models/model-pins.d.ts.map +1 -1
- package/dist/models/model-pins.js +2 -0
- package/dist/models/model-pins.js.map +1 -1
- package/dist/models/plan-pools.d.ts +26 -4
- package/dist/models/plan-pools.d.ts.map +1 -1
- package/dist/models/plan-pools.js +159 -40
- package/dist/models/plan-pools.js.map +1 -1
- package/dist/netd/generated/wire.d.ts +5 -0
- package/dist/netd/generated/wire.d.ts.map +1 -1
- package/dist/policy/command-classes.d.ts +1 -1
- package/dist/policy/command-classes.d.ts.map +1 -1
- package/dist/policy/command-classes.js +2 -2
- package/dist/policy/command-classes.js.map +1 -1
- package/dist/policy/keyring-origins.d.ts +27 -0
- package/dist/policy/keyring-origins.d.ts.map +1 -0
- package/dist/policy/keyring-origins.js +213 -0
- package/dist/policy/keyring-origins.js.map +1 -0
- package/dist/policy/keyring-seal.d.ts +9 -0
- package/dist/policy/keyring-seal.d.ts.map +1 -1
- package/dist/policy/keyring-seal.js +18 -6
- package/dist/policy/keyring-seal.js.map +1 -1
- package/dist/policy/safety-policy.d.ts +1 -1
- package/dist/policy/safety-policy.d.ts.map +1 -1
- package/dist/policy/safety-policy.js +1 -1
- package/dist/policy/safety-policy.js.map +1 -1
- package/dist/policy/turned-away.d.ts +1 -0
- package/dist/policy/turned-away.d.ts.map +1 -1
- package/dist/policy/turned-away.js +10 -0
- package/dist/policy/turned-away.js.map +1 -1
- package/dist/protocol/doors/host-protocol.d.ts +1 -0
- package/dist/protocol/doors/host-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/host-protocol.js +1 -0
- package/dist/protocol/doors/host-protocol.js.map +1 -1
- package/dist/protocol/doors/runner-protocol.d.ts +1 -0
- package/dist/protocol/doors/runner-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/runner-protocol.js +1 -0
- package/dist/protocol/doors/runner-protocol.js.map +1 -1
- package/dist/protocol/doors/webext-links.d.ts +1 -0
- package/dist/protocol/doors/webext-links.d.ts.map +1 -1
- package/dist/protocol/doors/webext-links.js +1 -0
- package/dist/protocol/doors/webext-links.js.map +1 -1
- package/dist/protocol/peer-dial.d.ts +2 -0
- package/dist/protocol/peer-dial.d.ts.map +1 -1
- package/dist/protocol/peer-dial.js +62 -29
- package/dist/protocol/peer-dial.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +179 -1
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +5 -0
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +35 -0
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +9 -0
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/schemas/agent-next.d.ts +21 -0
- package/dist/schemas/agent-next.d.ts.map +1 -0
- package/dist/schemas/agent-next.js +21 -0
- package/dist/schemas/agent-next.js.map +1 -0
- package/dist/schemas/agent-place.d.ts +10 -0
- package/dist/schemas/agent-place.d.ts.map +1 -0
- package/dist/schemas/agent-place.js +15 -0
- package/dist/schemas/agent-place.js.map +1 -0
- package/dist/schemas/agent-search.d.ts +45 -0
- package/dist/schemas/agent-search.d.ts.map +1 -0
- package/dist/schemas/agent-search.js +28 -0
- package/dist/schemas/agent-search.js.map +1 -0
- package/dist/schemas/agent.d.ts +120 -78
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +40 -49
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +54 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +165 -59
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +25 -50
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/attach.d.ts +8 -0
- package/dist/schemas/attach.d.ts.map +1 -0
- package/dist/schemas/attach.js +14 -0
- package/dist/schemas/attach.js.map +1 -0
- package/dist/schemas/command-admission.d.ts +71 -0
- package/dist/schemas/command-admission.d.ts.map +1 -0
- package/dist/schemas/command-admission.js +27 -0
- package/dist/schemas/command-admission.js.map +1 -0
- package/dist/schemas/compose-overlay.d.ts +9 -0
- package/dist/schemas/compose-overlay.d.ts.map +1 -0
- package/dist/schemas/compose-overlay.js +11 -0
- package/dist/schemas/compose-overlay.js.map +1 -0
- package/dist/schemas/composer-drafts.d.ts +169 -0
- package/dist/schemas/composer-drafts.d.ts.map +1 -0
- package/dist/schemas/composer-drafts.js +60 -0
- package/dist/schemas/composer-drafts.js.map +1 -0
- package/dist/schemas/conversation-links.d.ts +44 -0
- package/dist/schemas/conversation-links.d.ts.map +1 -0
- package/dist/schemas/conversation-links.js +35 -0
- package/dist/schemas/conversation-links.js.map +1 -0
- package/dist/schemas/data-protection.d.ts +1 -1
- package/dist/schemas/data-protection.d.ts.map +1 -1
- package/dist/schemas/device-commands.d.ts +63 -0
- package/dist/schemas/device-commands.d.ts.map +1 -0
- package/dist/schemas/device-commands.js +42 -0
- package/dist/schemas/device-commands.js.map +1 -0
- package/dist/schemas/device-folder.d.ts +11 -0
- package/dist/schemas/device-folder.d.ts.map +1 -1
- package/dist/schemas/device-folder.js +1 -0
- package/dist/schemas/device-folder.js.map +1 -1
- package/dist/schemas/devices.d.ts +18 -68
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +8 -45
- package/dist/schemas/devices.js.map +1 -1
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js.map +1 -1
- package/dist/schemas/hosts.d.ts +29 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +23 -0
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/keyring-native.d.ts +137 -0
- package/dist/schemas/keyring-native.d.ts.map +1 -0
- package/dist/schemas/keyring-native.js +69 -0
- package/dist/schemas/keyring-native.js.map +1 -0
- package/dist/schemas/keyring.d.ts +413 -0
- package/dist/schemas/keyring.d.ts.map +1 -1
- package/dist/schemas/keyring.js +139 -4
- package/dist/schemas/keyring.js.map +1 -1
- package/dist/schemas/phone-passwords.d.ts +186 -0
- package/dist/schemas/phone-passwords.d.ts.map +1 -0
- package/dist/schemas/phone-passwords.js +25 -0
- package/dist/schemas/phone-passwords.js.map +1 -0
- package/dist/schemas/privacy-egress.d.ts +41 -0
- package/dist/schemas/privacy-egress.d.ts.map +1 -0
- package/dist/schemas/privacy-egress.js +30 -0
- package/dist/schemas/privacy-egress.js.map +1 -0
- package/dist/schemas/privacy.d.ts +1 -0
- package/dist/schemas/privacy.d.ts.map +1 -1
- package/dist/schemas/privacy.js +1 -0
- package/dist/schemas/privacy.js.map +1 -1
- package/dist/schemas/providers/plan-limits.d.ts +76 -130
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.js +36 -23
- package/dist/schemas/providers/plan-limits.js.map +1 -1
- package/dist/schemas/providers/provider-oauth.d.ts +24 -82
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.js +1 -6
- package/dist/schemas/providers/provider-oauth.js.map +1 -1
- package/dist/schemas/providers/refusals.d.ts +64 -0
- package/dist/schemas/providers/refusals.d.ts.map +1 -0
- package/dist/schemas/providers/refusals.js +33 -0
- package/dist/schemas/providers/refusals.js.map +1 -0
- package/dist/schemas/providers/usage.d.ts +1 -0
- package/dist/schemas/providers/usage.d.ts.map +1 -1
- package/dist/schemas/providers/usage.js +1 -0
- package/dist/schemas/providers/usage.js.map +1 -1
- package/dist/schemas/push.d.ts +13 -0
- package/dist/schemas/push.d.ts.map +1 -1
- package/dist/schemas/push.js +11 -1
- package/dist/schemas/push.js.map +1 -1
- package/dist/schemas/sandbox-passwords.d.ts +288 -0
- package/dist/schemas/sandbox-passwords.d.ts.map +1 -0
- package/dist/schemas/sandbox-passwords.js +66 -0
- package/dist/schemas/sandbox-passwords.js.map +1 -0
- package/dist/schemas/secrets.d.ts +2 -0
- package/dist/schemas/secrets.d.ts.map +1 -1
- package/dist/schemas/secrets.js +4 -0
- package/dist/schemas/secrets.js.map +1 -1
- package/dist/schemas/sessions.js +1 -1
- package/dist/schemas/sessions.js.map +1 -1
- package/dist/schemas/settings-savings.d.ts +709 -0
- package/dist/schemas/settings-savings.d.ts.map +1 -0
- package/dist/schemas/settings-savings.js +53 -0
- package/dist/schemas/settings-savings.js.map +1 -0
- package/dist/schemas/settings.d.ts +7 -671
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +5 -50
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/system.d.ts +16 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +11 -0
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/terminal.d.ts +5 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +4 -0
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/schemas/work-assurance.d.ts +24 -0
- package/dist/schemas/work-assurance.d.ts.map +1 -0
- package/dist/schemas/work-assurance.js +23 -0
- package/dist/schemas/work-assurance.js.map +1 -0
- package/dist/schemas/workspace/workspace-tree.d.ts +23 -0
- package/dist/schemas/workspace/workspace-tree.d.ts.map +1 -1
- package/dist/schemas/workspace/workspace-tree.js +20 -0
- package/dist/schemas/workspace/workspace-tree.js.map +1 -1
- package/dist/state/auth-state.d.ts +4 -0
- package/dist/state/auth-state.d.ts.map +1 -0
- package/dist/state/auth-state.js +37 -0
- package/dist/state/auth-state.js.map +1 -0
- package/dist/state/definition.d.ts +12 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/runtime-state.d.ts +3 -0
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +1 -0
- package/dist/state/runtime-state.js.map +1 -1
- package/dist/state/sandbox-build.d.ts +20 -0
- package/dist/state/sandbox-build.d.ts.map +1 -0
- package/dist/state/sandbox-build.js +43 -0
- package/dist/state/sandbox-build.js.map +1 -0
- package/dist/state/ways-back.d.ts +4 -0
- package/dist/state/ways-back.d.ts.map +1 -0
- package/dist/state/ways-back.js +8 -0
- package/dist/state/ways-back.js.map +1 -0
- package/dist/text/land-rows.d.ts +14 -0
- package/dist/text/land-rows.d.ts.map +1 -0
- package/dist/text/land-rows.js +86 -0
- package/dist/text/land-rows.js.map +1 -0
- package/dist/text/transcript-fold.d.ts +4 -2
- package/dist/text/transcript-fold.d.ts.map +1 -1
- package/dist/text/transcript-fold.js +21 -187
- package/dist/text/transcript-fold.js.map +1 -1
- package/dist/webext/index.d.ts +1 -0
- package/dist/webext/index.d.ts.map +1 -1
- package/dist/webext/index.js +1 -0
- package/dist/webext/index.js.map +1 -1
- package/package.json +7 -6
- package/src/contracts/agent.contract.ts +13 -1
- package/src/contracts/agents.contract.ts +53 -28
- package/src/contracts/device.contract.ts +16 -0
- package/src/contracts/endpoints.contract.ts +3 -0
- package/src/contracts/push.contract.ts +23 -1
- package/src/contracts/secrets.contract.ts +39 -0
- package/src/contracts/workspace.contract.ts +16 -0
- package/src/events/agent-events.ts +99 -79
- package/src/events/agent-transcript.ts +48 -0
- package/src/events/agent-words.ts +13 -0
- package/src/events/failure-rows.ts +148 -0
- package/src/events/requests.ts +41 -3
- package/src/events/sandbox-notice.ts +14 -2
- package/src/events/system-events.ts +14 -4
- package/src/events/transcript.ts +30 -28
- package/src/ids/conversation-ids.ts +7 -0
- package/src/ids/project-dir.test.ts +2 -2
- package/src/ids/project-dir.ts +4 -4
- package/src/ids/row-ids.ts +20 -0
- package/src/models/agent-lanes.ts +16 -24
- package/src/models/agent-runtimes.ts +2 -2
- package/src/models/agent-standing.ts +38 -95
- package/src/models/model-pins.test.ts +31 -1
- package/src/models/model-pins.ts +17 -0
- package/src/models/plan-pools.test.ts +274 -31
- package/src/models/plan-pools.ts +294 -79
- package/src/netd/generated/netd-wire.json +25 -0
- package/src/netd/generated/wire.ts +1 -1
- package/src/policy/command-classes.ts +2 -2
- package/src/policy/keyring-origins.test.ts +132 -0
- package/src/policy/keyring-origins.ts +287 -0
- package/src/policy/keyring-seal.test.ts +37 -2
- package/src/policy/keyring-seal.ts +33 -7
- package/src/policy/safety-policy.ts +1 -1
- package/src/policy/tests/safety-policy.test.ts +1 -1
- package/src/policy/turned-away.ts +15 -0
- package/src/protocol/doors/host-protocol.ts +3 -0
- package/src/protocol/doors/runner-protocol.ts +4 -1
- package/src/protocol/doors/webext-links.ts +3 -0
- package/src/protocol/peer-dial.test.ts +90 -4
- package/src/protocol/peer-dial.ts +83 -39
- package/src/protocol/raw/raw-json-routes.ts +13 -0
- package/src/protocol/raw/raw-routes.ts +13 -1
- package/src/schemas/agent-next.ts +34 -0
- package/src/schemas/agent-place.ts +22 -0
- package/src/schemas/agent-search.ts +51 -0
- package/src/schemas/agent.ts +63 -90
- package/src/schemas/agents.ts +55 -99
- package/src/schemas/attach.ts +23 -0
- package/src/schemas/command-admission.ts +57 -0
- package/src/schemas/compose-overlay.test.ts +35 -0
- package/src/schemas/compose-overlay.ts +19 -0
- package/src/schemas/composer-drafts.ts +86 -0
- package/src/schemas/conversation-links.ts +62 -0
- package/src/schemas/data-protection.ts +1 -1
- package/src/schemas/device-commands.ts +89 -0
- package/src/schemas/device-folder.ts +9 -0
- package/src/schemas/devices.ts +28 -110
- package/src/schemas/environment.ts +8 -9
- package/src/schemas/hosts.ts +60 -0
- package/src/schemas/keyring-native.test.ts +13 -0
- package/src/schemas/keyring-native.ts +101 -0
- package/src/schemas/keyring.ts +202 -4
- package/src/schemas/machine-presence.test.ts +33 -0
- package/src/schemas/phone-passwords.ts +51 -0
- package/src/schemas/privacy-egress.test.ts +83 -0
- package/src/schemas/privacy-egress.ts +86 -0
- package/src/schemas/privacy.ts +4 -0
- package/src/schemas/project-delivery.ts +1 -1
- package/src/schemas/providers/plan-limits.test.ts +16 -0
- package/src/schemas/providers/plan-limits.ts +55 -49
- package/src/schemas/providers/provider-oauth.ts +1 -13
- package/src/schemas/providers/refusals.ts +62 -0
- package/src/schemas/providers/usage.ts +2 -0
- package/src/schemas/push.ts +19 -3
- package/src/schemas/sandbox-passwords.ts +88 -0
- package/src/schemas/secrets.ts +4 -0
- package/src/schemas/sessions.ts +1 -1
- package/src/schemas/settings-savings.ts +125 -0
- package/src/schemas/settings.ts +10 -116
- package/src/schemas/system.ts +15 -0
- package/src/schemas/terminal.ts +8 -0
- package/src/schemas/work-assurance.ts +36 -0
- package/src/schemas/workspace/workspace-tree.ts +32 -0
- package/src/state/auth-state.ts +89 -0
- package/src/state/runtime-state.ts +10 -4
- package/src/state/sandbox-build.test.ts +95 -0
- package/src/state/sandbox-build.ts +96 -0
- package/src/state/ways-back.test.ts +36 -0
- package/src/state/ways-back.ts +19 -0
- package/src/state/workspace-state.ts +1 -1
- package/src/text/land-rows.ts +111 -0
- package/src/text/transcript-fold.test.ts +105 -9
- package/src/text/transcript-fold.ts +30 -232
- package/src/webext/index.ts +2 -0
- package/dist/events/undelivered.d.ts +0 -6
- package/dist/events/undelivered.d.ts.map +0 -1
- package/dist/events/undelivered.js +0 -9
- package/dist/events/undelivered.js.map +0 -1
- package/dist/state/history-state.d.ts +0 -3
- package/dist/state/history-state.d.ts.map +0 -1
- package/dist/state/history-state.js +0 -137
- package/dist/state/history-state.js.map +0 -1
- package/src/events/undelivered.ts +0 -15
- package/src/state/history-state.ts +0 -270
package/README.md
CHANGED
|
@@ -33,6 +33,15 @@ flowchart LR
|
|
|
33
33
|
own build, so a route an older daemon lacks shows as a missing feature instead of a 404. The desktop app's folder
|
|
34
34
|
sidecar sends the same frame with `surface: "folder"` and only the few routes it serves, which the browser offers
|
|
35
35
|
and never reads as out of date.
|
|
36
|
+
- Every file the daemon keeps says whether it travels in an environment bundle (`carry`, `secret`, `identity` or
|
|
37
|
+
`derived`, `src/state/state-portability.ts`). The contract holds the tables for the two roots other programs read:
|
|
38
|
+
`WORKSPACE_STATE_FILES`, and `AUTH_STATE_FILES` for the auth root of provider logins, secret vaults and trust files.
|
|
39
|
+
`/history` is the daemon's alone, so its table lives there: each stored document declares its class on its own
|
|
40
|
+
definition, and the daemon lists the paths no document claims (`src/store/evolution/history-state.ts` in
|
|
41
|
+
`_sandbox/sandbox`). In the auth root, the owner's restrictions (credential gates, host guards, the privacy shield)
|
|
42
|
+
travel without secrets, and this sandbox's own keys, pairings and the yeses its owner gave never travel. A path no
|
|
43
|
+
entry names keeps the directory's own class: `carry` on the workspace, `derived` on `/history`, `secret` in the auth
|
|
44
|
+
root.
|
|
36
45
|
- The oldest daemon the editor supports is declared here, `OLDEST_SUPPORTED_DAEMON` in `src/state/daemon-floor.ts`,
|
|
37
46
|
with a dated line for why it is that release. The editor reads a daemon's version off the head of the hello's
|
|
38
47
|
`build` (`<version>:<mtime>`) and draws a single "needs an update" page below it. The floor's test freezes the fields
|
|
@@ -44,16 +53,20 @@ flowchart LR
|
|
|
44
53
|
A turn refused for an unsupported or unreadable protected policy carries `agent-domain-refused`, an admission
|
|
45
54
|
refusal: its queued words remain owed, not consumed as an executed failure.
|
|
46
55
|
- Some rules live here as code, not only shapes, because both ends must reach the same answer. The main one is
|
|
47
|
-
whether an account can serve a turn: `
|
|
48
|
-
seat, a translator bench,
|
|
49
|
-
`blocked` with its `fix` · `unknown`), and `
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
whether an account can serve a turn: `serviceStates` in `src/models/plan-pools.ts` turns a revoked sign-in, a lost
|
|
57
|
+
seat, a translator bench, every refusal still standing and the plan limits into one `AccountState` (`ready` · `spent`
|
|
58
|
+
· `blocked` with its `fix` · `unknown`), and `fleetCapacity` folds a provider's accounts into one answer per model
|
|
59
|
+
(`serving` · `spent` until when · `unknown`). `SPENT_UTILIZATION` is the only spent line. The daemon and the editor both
|
|
60
|
+
run it, on the same account rows and the same refusals on file (`ProviderRefusalsSchema`, every refusal per provider);
|
|
61
|
+
no account row carries a verdict, so no surface can read a stale one.
|
|
52
62
|
- So is which lane the board files a conversation in and what of a fleet calls the person (`src/models/agent-standing.ts`,
|
|
53
63
|
`src/models/agent-lanes.ts`, `src/models/agent-starter.ts`, moved from the editor on 2026-10-16): the editor draws
|
|
54
64
|
the board by them and re-exports them where it always imported them, and the daemon counts `GET /agents/attention`
|
|
55
65
|
by `fleetAttention` (the Attention lane's cards plus held wakes, and the turns producing something), which the
|
|
56
|
-
desktop app's status bar reads through `ic sandbox attention`, so the bar and the board cannot disagree.
|
|
66
|
+
desktop app's status bar reads through `ic sandbox attention`, so the bar and the board cannot disagree. Whether a
|
|
67
|
+
conversation carries on by itself, and when, is one field the daemon derives on every card, `next`
|
|
68
|
+
(`src/schemas/agent-next.ts`): the lane, the card's corner and the chat read it rather than the hold, the queue or an
|
|
69
|
+
answer it came from (2026-10-20).
|
|
57
70
|
- So are the rules the daemon and a device must agree on about the owner's machine. `DEVICE_PROGRAM_TOOLS` in
|
|
58
71
|
`src/policy/device-programs.ts` says which device tools carry a program and how to read it, and
|
|
59
72
|
`sandboxPowerCommands` in `src/policy/sandbox-power.ts` recognises a command that starts, stops or replaces a
|
|
@@ -62,6 +75,10 @@ flowchart LR
|
|
|
62
75
|
(`src/state/update-probation.ts`), the one shape of `restart-intent.json` (`src/schemas/restart-intent.ts`), the
|
|
63
76
|
answer of `ic sandbox swaps --json` (`src/schemas/device-swaps.ts`), and what `ic os status --json` and
|
|
64
77
|
`ic os update --check --json` answer, with the argv of every `ic os` verb (`src/schemas/intentic-os.ts`).
|
|
78
|
+
- Which build a sandbox is, and every comparison between two of them, is `src/state/sandbox-build.ts`: a pending
|
|
79
|
+
rebuild, runner parity, and (2026-10-20) whether a swap landed. `/info` reports what answers (`running`: the build
|
|
80
|
+
and when its daemon started), and `swapVerdict` says landed, came back unmoved, or still waiting. A page used to
|
|
81
|
+
tell an update by the version moving, which a checkout build (always 0.0.0) never does.
|
|
65
82
|
- What a credential looks like is decided here too: `CREDENTIAL_ISSUERS` in `src/policy/credential-material.ts` (each
|
|
66
83
|
issuer's prefix and token body, as data) and `SECRET_REFERENCE` in `src/schemas/needs.ts` (the `{{secret:name}}`
|
|
67
84
|
pattern, non-global, so each site that scans derives its own `/g` copy). The terminal output filter
|
|
@@ -118,9 +135,10 @@ flowchart LR
|
|
|
118
135
|
under `access:METHOD /path`: every reach field of its `RouteMeta` with the default filled in (`routeAccess`). A
|
|
119
136
|
field is recorded even when a route leaves it out, so a lowered floor or a new `guest`, `agent` or `panel` grant is a
|
|
120
137
|
changed value, which counts as a shrink, never as growth that passes. The lock test names the route and the field
|
|
121
|
-
that moved.
|
|
122
|
-
|
|
123
|
-
|
|
138
|
+
that moved. It is `merge=derived` (`.gitattributes`): no land carries a copy of it, and the repository's fixers
|
|
139
|
+
(`_tools/scripts/verify/fixers.mjs`) write it again in the tree a land writes contract sources into, so two
|
|
140
|
+
conversations that both moved the contract never conflict on it. By hand, from source with no build first:
|
|
141
|
+
`pnpm --filter @intentic/sandbox-contract lock`. `src/state/contract-lock.test.ts`
|
|
124
142
|
fails while the lock and the schemas disagree. `_tools/checks/contract-shrink.mjs` fails CI for a pushed branch
|
|
125
143
|
that shrinks it with no commit declaring the break (`type!:` or `Breaking-Note:`); nothing checks the push itself.
|
|
126
144
|
|
|
@@ -71,33 +71,19 @@ export declare const accountsContract: {
|
|
|
71
71
|
}, import("zod/v4/core").$strip>]>;
|
|
72
72
|
rounded: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
73
73
|
lapsedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
74
|
+
missingSince: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
74
75
|
}, import("zod/v4/core").$strip>>;
|
|
75
76
|
measuredAt: import("zod").ZodNumber;
|
|
76
77
|
unread: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
77
78
|
since: import("zod").ZodNumber;
|
|
78
79
|
reason: import("zod").ZodString;
|
|
79
80
|
}, import("zod/v4/core").$strip>>;
|
|
81
|
+
uncovered: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
82
|
+
contradicted: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
83
|
+
at: import("zod").ZodNumber;
|
|
84
|
+
model: import("zod").ZodString;
|
|
85
|
+
}, import("zod/v4/core").$strip>>;
|
|
80
86
|
}, import("zod/v4/core").$strip>>;
|
|
81
|
-
state: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
82
|
-
kind: import("zod").ZodLiteral<"ready">;
|
|
83
|
-
room: import("zod").ZodNumber;
|
|
84
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
85
|
-
kind: import("zod").ZodLiteral<"spent">;
|
|
86
|
-
reopensAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
87
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
88
|
-
kind: import("zod").ZodLiteral<"blocked">;
|
|
89
|
-
fix: import("zod").ZodEnum<{
|
|
90
|
-
admin: "admin";
|
|
91
|
-
reconnect: "reconnect";
|
|
92
|
-
verify: "verify";
|
|
93
|
-
wait: "wait";
|
|
94
|
-
}>;
|
|
95
|
-
reason: import("zod").ZodString;
|
|
96
|
-
until: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
97
|
-
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
98
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
99
|
-
kind: import("zod").ZodLiteral<"unknown">;
|
|
100
|
-
}, import("zod/v4/core").$strip>], "kind">>;
|
|
101
87
|
}, import("zod/v4/core").$strip>>;
|
|
102
88
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
103
89
|
status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -139,33 +125,19 @@ export declare const accountsContract: {
|
|
|
139
125
|
}, import("zod/v4/core").$strip>]>;
|
|
140
126
|
rounded: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
141
127
|
lapsedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
128
|
+
missingSince: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
142
129
|
}, import("zod/v4/core").$strip>>;
|
|
143
130
|
measuredAt: import("zod").ZodNumber;
|
|
144
131
|
unread: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
145
132
|
since: import("zod").ZodNumber;
|
|
146
133
|
reason: import("zod").ZodString;
|
|
147
134
|
}, import("zod/v4/core").$strip>>;
|
|
135
|
+
uncovered: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
136
|
+
contradicted: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
137
|
+
at: import("zod").ZodNumber;
|
|
138
|
+
model: import("zod").ZodString;
|
|
139
|
+
}, import("zod/v4/core").$strip>>;
|
|
148
140
|
}, import("zod/v4/core").$strip>>;
|
|
149
|
-
state: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
150
|
-
kind: import("zod").ZodLiteral<"ready">;
|
|
151
|
-
room: import("zod").ZodNumber;
|
|
152
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
153
|
-
kind: import("zod").ZodLiteral<"spent">;
|
|
154
|
-
reopensAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
155
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
156
|
-
kind: import("zod").ZodLiteral<"blocked">;
|
|
157
|
-
fix: import("zod").ZodEnum<{
|
|
158
|
-
admin: "admin";
|
|
159
|
-
reconnect: "reconnect";
|
|
160
|
-
verify: "verify";
|
|
161
|
-
wait: "wait";
|
|
162
|
-
}>;
|
|
163
|
-
reason: import("zod").ZodString;
|
|
164
|
-
until: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
165
|
-
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
166
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
167
|
-
kind: import("zod").ZodLiteral<"unknown">;
|
|
168
|
-
}, import("zod/v4/core").$strip>], "kind">>;
|
|
169
141
|
}, import("zod/v4/core").$strip>>;
|
|
170
142
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
171
143
|
status: import("zod").ZodLiteral<"error">;
|
|
@@ -223,33 +195,19 @@ export declare const accountsContract: {
|
|
|
223
195
|
}, import("zod/v4/core").$strip>]>;
|
|
224
196
|
rounded: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
225
197
|
lapsedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
198
|
+
missingSince: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
226
199
|
}, import("zod/v4/core").$strip>>;
|
|
227
200
|
measuredAt: import("zod").ZodNumber;
|
|
228
201
|
unread: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
229
202
|
since: import("zod").ZodNumber;
|
|
230
203
|
reason: import("zod").ZodString;
|
|
231
204
|
}, import("zod/v4/core").$strip>>;
|
|
205
|
+
uncovered: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
206
|
+
contradicted: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
207
|
+
at: import("zod").ZodNumber;
|
|
208
|
+
model: import("zod").ZodString;
|
|
209
|
+
}, import("zod/v4/core").$strip>>;
|
|
232
210
|
}, import("zod/v4/core").$strip>>;
|
|
233
|
-
state: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
234
|
-
kind: import("zod").ZodLiteral<"ready">;
|
|
235
|
-
room: import("zod").ZodNumber;
|
|
236
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
237
|
-
kind: import("zod").ZodLiteral<"spent">;
|
|
238
|
-
reopensAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
239
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
240
|
-
kind: import("zod").ZodLiteral<"blocked">;
|
|
241
|
-
fix: import("zod").ZodEnum<{
|
|
242
|
-
admin: "admin";
|
|
243
|
-
reconnect: "reconnect";
|
|
244
|
-
verify: "verify";
|
|
245
|
-
wait: "wait";
|
|
246
|
-
}>;
|
|
247
|
-
reason: import("zod").ZodString;
|
|
248
|
-
until: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
249
|
-
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
250
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
251
|
-
kind: import("zod").ZodLiteral<"unknown">;
|
|
252
|
-
}, import("zod/v4/core").$strip>], "kind">>;
|
|
253
211
|
}, import("zod/v4/core").$strip>>;
|
|
254
212
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
255
213
|
rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -288,33 +246,19 @@ export declare const accountsContract: {
|
|
|
288
246
|
}, import("zod/v4/core").$strip>]>;
|
|
289
247
|
rounded: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
290
248
|
lapsedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
249
|
+
missingSince: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
291
250
|
}, import("zod/v4/core").$strip>>;
|
|
292
251
|
measuredAt: import("zod").ZodNumber;
|
|
293
252
|
unread: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
294
253
|
since: import("zod").ZodNumber;
|
|
295
254
|
reason: import("zod").ZodString;
|
|
296
255
|
}, import("zod/v4/core").$strip>>;
|
|
256
|
+
uncovered: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
257
|
+
contradicted: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
258
|
+
at: import("zod").ZodNumber;
|
|
259
|
+
model: import("zod").ZodString;
|
|
260
|
+
}, import("zod/v4/core").$strip>>;
|
|
297
261
|
}, import("zod/v4/core").$strip>>;
|
|
298
|
-
state: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
299
|
-
kind: import("zod").ZodLiteral<"ready">;
|
|
300
|
-
room: import("zod").ZodNumber;
|
|
301
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
302
|
-
kind: import("zod").ZodLiteral<"spent">;
|
|
303
|
-
reopensAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
304
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
305
|
-
kind: import("zod").ZodLiteral<"blocked">;
|
|
306
|
-
fix: import("zod").ZodEnum<{
|
|
307
|
-
admin: "admin";
|
|
308
|
-
reconnect: "reconnect";
|
|
309
|
-
verify: "verify";
|
|
310
|
-
wait: "wait";
|
|
311
|
-
}>;
|
|
312
|
-
reason: import("zod").ZodString;
|
|
313
|
-
until: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
314
|
-
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
315
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
316
|
-
kind: import("zod").ZodLiteral<"unknown">;
|
|
317
|
-
}, import("zod/v4/core").$strip>], "kind">>;
|
|
318
262
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
319
263
|
disconnect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
320
264
|
id: import("zod").ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/accounts.contract.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,gBAAgB;IACzB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUL,QAAQ
|
|
1
|
+
{"version":3,"file":"accounts.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/accounts.contract.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,gBAAgB;IACzB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUL,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUN,MAAM;;;;;;;;;;;;;;;;IAUN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASN,UAAU;;;;;;;;;;;;;;;;CASb,CAAC"}
|