@intentic/sandbox-contract 1.430.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.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 +357 -0
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +3221 -1576
- 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/capabilities.contract.d.ts +12 -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 +27 -0
- package/dist/contracts/device.contract.d.ts.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 +1 -0
- package/dist/contracts/remote.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +702 -1
- 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 +85 -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 +2 -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 +332 -4
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +14 -3
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/usage.contract.d.ts +3 -0
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/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/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/system-events.d.ts +86 -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 +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- 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 +8 -0
- package/dist/netd/browser-wire.d.ts.map +1 -1
- package/dist/netd/browser-wire.js +5 -0
- package/dist/netd/browser-wire.js.map +1 -1
- package/dist/netd/generated/wire.d.ts +42 -1
- package/dist/netd/generated/wire.d.ts.map +1 -1
- package/dist/policy/admin/admin-grant.d.ts +21 -0
- package/dist/policy/admin/admin-grant.d.ts.map +1 -0
- package/dist/policy/admin/admin-grant.js +41 -0
- package/dist/policy/admin/admin-grant.js.map +1 -0
- package/dist/policy/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 +512 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +25 -2
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +164 -2
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +63 -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/agents-list.d.ts +34 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +656 -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/bridge-heads.d.ts +57 -0
- package/dist/schemas/bridge-heads.d.ts.map +1 -0
- package/dist/schemas/bridge-heads.js +22 -0
- package/dist/schemas/bridge-heads.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +21 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +6 -0
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/checkout-hooks.d.ts +24 -0
- package/dist/schemas/checkout-hooks.d.ts.map +1 -0
- package/dist/schemas/checkout-hooks.js +23 -0
- package/dist/schemas/checkout-hooks.js.map +1 -0
- package/dist/schemas/ci-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/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 +139 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +9 -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/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/refusals.d.ts +12 -0
- package/dist/schemas/providers/refusals.d.ts.map +1 -1
- package/dist/schemas/providers/refusals.js +4 -0
- package/dist/schemas/providers/refusals.js.map +1 -1
- package/dist/schemas/remote-access.d.ts +1 -0
- package/dist/schemas/remote-access.d.ts.map +1 -1
- package/dist/schemas/remote-access.js +1 -0
- package/dist/schemas/remote-access.js.map +1 -1
- package/dist/schemas/run-targets.d.ts.map +1 -1
- package/dist/schemas/run-targets.js +2 -1
- package/dist/schemas/run-targets.js.map +1 -1
- package/dist/schemas/runner-views.d.ts +24 -0
- package/dist/schemas/runner-views.d.ts.map +1 -0
- package/dist/schemas/runner-views.js +16 -0
- package/dist/schemas/runner-views.js.map +1 -0
- package/dist/schemas/sandbox-reach.d.ts +157 -0
- package/dist/schemas/sandbox-reach.d.ts.map +1 -0
- package/dist/schemas/sandbox-reach.js +112 -0
- package/dist/schemas/sandbox-reach.js.map +1 -0
- package/dist/schemas/settings.d.ts +18 -0
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +19 -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 +46 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +19 -0
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/state/auth-state.d.ts.map +1 -1
- package/dist/state/auth-state.js +1 -0
- package/dist/state/auth-state.js.map +1 -1
- package/dist/state/definition.d.ts +12 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/runtime-state.d.ts +1 -1
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +1 -1
- package/dist/state/runtime-state.js.map +1 -1
- package/dist/state/workspace-state.d.ts +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/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/capabilities.contract.ts +7 -2
- package/src/contracts/device-ci-runners.contract.ts +81 -0
- package/src/contracts/extensions.contract.ts +1 -1
- package/src/contracts/ports.contract.ts +6 -6
- package/src/contracts/runner.contract.ts +117 -3
- package/src/contracts/runners.contract.ts +19 -0
- package/src/contracts/safety.contract.ts +2 -0
- package/src/contracts/secrets.contract.ts +12 -0
- package/src/contracts/settings.contract.ts +2 -0
- package/src/contracts/system.contract.ts +20 -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/refusal-incidents.ts +60 -19
- 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 +3 -0
- 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 +13 -0
- package/src/netd/generated/browser-wire.json +10 -0
- package/src/netd/generated/netd-wire.json +224 -1
- package/src/netd/generated/wire.ts +18 -6
- package/src/netd/wire-manifests.test.ts +16 -0
- package/src/policy/admin/admin-grant.ts +69 -0
- package/src/policy/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 +5 -1
- package/src/protocol/member-reach.test.ts +40 -1
- package/src/protocol/member-reach.ts +40 -0
- package/src/protocol/peer-mcp-server.ts +6 -0
- package/src/protocol/raw/raw-json-routes.ts +45 -1
- package/src/protocol/raw/raw-routes.ts +88 -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/agents.ts +26 -65
- package/src/schemas/auto-approve.ts +31 -0
- package/src/schemas/automations.ts +26 -1
- package/src/schemas/bridge-heads.ts +33 -0
- package/src/schemas/capabilities.ts +23 -0
- package/src/schemas/checkout-hooks.ts +44 -0
- package/src/schemas/ci-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/data-protection.ts +1 -1
- 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 +24 -2
- package/src/schemas/intentic-os.ts +2 -2
- package/src/schemas/issues.ts +14 -0
- 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/refusals.ts +9 -0
- package/src/schemas/remote-access.ts +3 -0
- package/src/schemas/run-targets.ts +2 -1
- package/src/schemas/runner-views.ts +27 -0
- package/src/schemas/sandbox-reach.ts +161 -0
- package/src/schemas/settings.test.ts +5 -4
- package/src/schemas/settings.ts +45 -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 +28 -0
- package/src/schemas/updates.test.ts +1 -1
- package/src/schemas/updates.ts +1 -1
- package/src/state/auth-state.ts +3 -0
- package/src/state/runtime-state.test.ts +3 -2
- package/src/state/runtime-state.ts +3 -1
- package/src/state/update-probation.ts +1 -1
- package/src/state/ways-back.test.ts +1 -1
- package/src/state/workspace-state.test.ts +2 -0
- package/src/state/workspace-state.ts +4 -4
- package/src/sync/workspace-sync-ignores.test.ts +48 -0
- package/src/sync/workspace-sync-ignores.ts +143 -0
- package/src/text/pages.ts +34 -7
- package/src/text/transcript-fold.test.ts +40 -2
- package/src/text/transcript-fold.ts +2 -2
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
// THE SELF-HOSTED CI RUNNERS ON ONE OF THE OWNER'S COMPUTERS: GitHub Actions runner instances registered as systemd
|
|
4
|
+
// units (`actions.runner.*.service`, as the runner's own svc.sh names them), read and driven over the connection the
|
|
5
|
+
// machine's agent already holds open. The agent runs as the person; what needs root (starting a system unit, emptying a
|
|
6
|
+
// job's leftovers that a job container wrote as root, holding the test-memory pool's slots) is done by the machine's
|
|
7
|
+
// fleet service, `intentic-ci-fleet.service`, the same agent binary from a root-owned copy, which the agent asks over a
|
|
8
|
+
// local socket (_devices/machine src/ci-fleet/). Without that service a computer still lists its runners, read-only.
|
|
9
|
+
// The daemon relays (_sandbox/sandbox hosts/ci-fleet/device-ci-fleet.ts); the Pipelines view draws the Runners section.
|
|
10
|
+
|
|
11
|
+
// A runner's name as GitHub accepts one and as the runner's own config.sh writes it into the unit's name: letters,
|
|
12
|
+
// digits, dot, dash and underscore. Also the folder the fleet service registers a new one in, so one plain segment.
|
|
13
|
+
export const CiRunnerNameSchema = z
|
|
14
|
+
.string()
|
|
15
|
+
.regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/, "letters, digits, dot, dash and underscore, starting with a letter or digit, at most 64");
|
|
16
|
+
export type CiRunnerName = z.infer<typeof CiRunnerNameSchema>;
|
|
17
|
+
|
|
18
|
+
// systemd's own ActiveState words, plus `unknown` for one a newer systemd says that this list does not know, and
|
|
19
|
+
// `not-installed` for a runner folder whose `.service` names a unit systemd no longer has: configured, never started
|
|
20
|
+
// again (z440's four on 2026-11-24, their units gone since 2026-11-09 while the folders stayed). Only re-registering,
|
|
21
|
+
// or the runner's own `svc.sh install`, brings one back; the keeper cannot.
|
|
22
|
+
export const CiRunnerStateSchema = z.enum(["active", "activating", "deactivating", "reloading", "inactive", "failed", "unknown", "not-installed"]);
|
|
23
|
+
export type CiRunnerState = z.infer<typeof CiRunnerStateSchema>;
|
|
24
|
+
|
|
25
|
+
// Why a runner is down on purpose, so neither the fleet service's keeper nor a reader takes it for broken: stopped from
|
|
26
|
+
// the board (`board`), drained and stopped once its job ended (`drain`), or paused by `wsl-workers.sh` for a Windows
|
|
27
|
+
// smoke job (`smoke`).
|
|
28
|
+
export const CiRunnerHoldSchema = z.enum(["board", "drain", "smoke"]);
|
|
29
|
+
export type CiRunnerHold = z.infer<typeof CiRunnerHoldSchema>;
|
|
30
|
+
|
|
31
|
+
export const CiRunnerSchema = z.object({
|
|
32
|
+
// The runner's name at GitHub (`agentName` in its `.runner`), else the one its unit's name carries.
|
|
33
|
+
name: CiRunnerNameSchema,
|
|
34
|
+
// The systemd unit, `actions.runner.<scope>.<name>.service`.
|
|
35
|
+
unit: z.string(),
|
|
36
|
+
// The runner's own folder (the unit's WorkingDirectory), as the machine spells it.
|
|
37
|
+
dir: z.string(),
|
|
38
|
+
// The account the unit runs the runner as.
|
|
39
|
+
user: z.string(),
|
|
40
|
+
// What it is registered to (`gitHubUrl` in its `.runner`): a repository or an organisation.
|
|
41
|
+
url: z.string().optional(),
|
|
42
|
+
// The runner's version, read off the `bin` link a self-update points at `bin.<version>`.
|
|
43
|
+
version: z.string().optional(),
|
|
44
|
+
// The light lane (ci-runner.md): an instance named `<host>-light-<n>`, which takes only a pipeline's first two jobs.
|
|
45
|
+
light: z.boolean(),
|
|
46
|
+
state: CiRunnerStateSchema,
|
|
47
|
+
// Running a job right now: its Runner.Worker process is alive.
|
|
48
|
+
busy: z.boolean(),
|
|
49
|
+
// When that job's worker started, ISO; absent while idle.
|
|
50
|
+
busySince: z.string().optional(),
|
|
51
|
+
// The job's name, read from the worker's own log where it says it; absent while idle or where the log does not.
|
|
52
|
+
job: z.string().optional(),
|
|
53
|
+
// Down on purpose, and why; absent for a runner nobody holds down.
|
|
54
|
+
held: CiRunnerHoldSchema.optional(),
|
|
55
|
+
// A drain is waiting for its job to end, after which the runner is stopped.
|
|
56
|
+
draining: z.boolean(),
|
|
57
|
+
});
|
|
58
|
+
export type CiRunner = z.infer<typeof CiRunnerSchema>;
|
|
59
|
+
|
|
60
|
+
// One pass of one of the fleet service's rounds: when, whether it only reported (`dryRun`), what it freed, and its lines.
|
|
61
|
+
export const CiFleetPassSchema = z.object({
|
|
62
|
+
at: z.string(),
|
|
63
|
+
dryRun: z.boolean(),
|
|
64
|
+
freedBytes: z.number().int().nonnegative(),
|
|
65
|
+
// What it did, one sentence a line, as the old scripts' journal lines read; at most the newest 200.
|
|
66
|
+
lines: z.array(z.string()),
|
|
67
|
+
});
|
|
68
|
+
export type CiFleetPass = z.infer<typeof CiFleetPassSchema>;
|
|
69
|
+
|
|
70
|
+
// A shared cache under the fleet's cache root (`/ci-cache/<name>`), as the last janitor pass measured it.
|
|
71
|
+
export const CiCacheSchema = z.object({ name: z.string(), bytes: z.number().int().nonnegative() });
|
|
72
|
+
export type CiCache = z.infer<typeof CiCacheSchema>;
|
|
73
|
+
|
|
74
|
+
// The test-memory pool on this computer (`test-memory-pool.mjs`: one-GiB slot files that CI jobs flock), and what the
|
|
75
|
+
// fleet service holds of it for the Intentic sandboxes on the same engine, so CI sizes its test workers from what they
|
|
76
|
+
// leave. Slots 1..`reserved` are the gate band the service never takes.
|
|
77
|
+
export const CiSlotsSchema = z.object({
|
|
78
|
+
dir: z.string(),
|
|
79
|
+
total: z.number().int().positive(),
|
|
80
|
+
reserved: z.number().int().nonnegative(),
|
|
81
|
+
// Slots kept from CI for good, whatever the sandboxes hold: the host's floor (`--slots-usable` keeps this many usable).
|
|
82
|
+
floor: z.number().int().nonnegative(),
|
|
83
|
+
// Slots the service holds now: the floor and the sandboxes' share together.
|
|
84
|
+
heldForSandboxes: z.number().int().nonnegative(),
|
|
85
|
+
// Memory the sandboxes and sandbox runners on this engine use, as last measured.
|
|
86
|
+
sandboxBytes: z.number().int().nonnegative(),
|
|
87
|
+
// Slots CI jobs hold now, and slots nobody holds.
|
|
88
|
+
heldByCi: z.number().int().nonnegative(),
|
|
89
|
+
free: z.number().int().nonnegative(),
|
|
90
|
+
at: z.string(),
|
|
91
|
+
});
|
|
92
|
+
export type CiSlots = z.infer<typeof CiSlotsSchema>;
|
|
93
|
+
|
|
94
|
+
// The fleet service as the agent found it.
|
|
95
|
+
export const CiFleetServiceSchema = z.object({
|
|
96
|
+
// Installed and answering on its socket.
|
|
97
|
+
running: z.boolean(),
|
|
98
|
+
// Its unit exists, answering or not.
|
|
99
|
+
installed: z.boolean(),
|
|
100
|
+
version: z.string().optional(),
|
|
101
|
+
// Why it is not answering, in words, where it is installed.
|
|
102
|
+
problem: z.string().optional(),
|
|
103
|
+
});
|
|
104
|
+
export type CiFleetService = z.infer<typeof CiFleetServiceSchema>;
|
|
105
|
+
|
|
106
|
+
export const CiFleetSchema = z.object({
|
|
107
|
+
service: CiFleetServiceSchema,
|
|
108
|
+
runners: z.array(CiRunnerSchema),
|
|
109
|
+
// The fleet's shared cache root on this computer.
|
|
110
|
+
cacheRoot: z.string(),
|
|
111
|
+
caches: z.array(CiCacheSchema),
|
|
112
|
+
slots: CiSlotsSchema.optional(),
|
|
113
|
+
keeper: CiFleetPassSchema.optional(),
|
|
114
|
+
janitor: CiFleetPassSchema.optional(),
|
|
115
|
+
// The host prune (Docker images, build cache, volumes), on a computer whose Docker is its own rather than shared
|
|
116
|
+
// with Windows: omen's Docker Desktop is pruned by wsl-maintenance.ps1.
|
|
117
|
+
prune: CiFleetPassSchema.optional(),
|
|
118
|
+
});
|
|
119
|
+
export type CiFleet = z.infer<typeof CiFleetSchema>;
|
|
120
|
+
|
|
121
|
+
// `start` and `stop` act now; `stop` refuses a runner that is running a job. `drain` stops it the moment its job ends
|
|
122
|
+
// (at once when idle) and `restart` is a drain followed by a start. A runner stopped from here is held down: the keeper
|
|
123
|
+
// leaves it until a `start`.
|
|
124
|
+
export const CiRunnerOpSchema = z.enum(["start", "stop", "drain", "restart"]);
|
|
125
|
+
export type CiRunnerOp = z.infer<typeof CiRunnerOpSchema>;
|
|
126
|
+
|
|
127
|
+
export const CiRunnerOpResultSchema = z.object({ said: z.string() });
|
|
128
|
+
export type CiRunnerOpResult = z.infer<typeof CiRunnerOpResultSchema>;
|
|
129
|
+
|
|
130
|
+
export const CI_RUNNER_LOG_TAIL_DEFAULT = 200;
|
|
131
|
+
export const CI_RUNNER_LOG_TAIL_MAX = 5000;
|
|
132
|
+
export const CiRunnerLogsSchema = z.object({ text: z.string() });
|
|
133
|
+
export type CiRunnerLogs = z.infer<typeof CiRunnerLogsSchema>;
|
|
134
|
+
|
|
135
|
+
// A GitHub Actions label as config.sh takes one: no comma, which separates them.
|
|
136
|
+
export const CiRunnerLabelSchema = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/);
|
|
137
|
+
|
|
138
|
+
// What the machine's `ci_runner_register` takes: a registration token GitHub minted for `url` an hour's use, the new
|
|
139
|
+
// runner's name and labels. The fleet service downloads the runner release, checks its SHA-256, configures it as
|
|
140
|
+
// `user` (default: the account the existing runners run as) in `<user's home>/actions-runner-<name>` and installs its unit.
|
|
141
|
+
export const CiRunnerRegisterArgsSchema = z
|
|
142
|
+
.object({
|
|
143
|
+
url: z.string().url().startsWith("https://github.com/"),
|
|
144
|
+
token: z.string().min(10).max(200),
|
|
145
|
+
name: CiRunnerNameSchema,
|
|
146
|
+
labels: z.array(CiRunnerLabelSchema).min(1).max(20),
|
|
147
|
+
user: z.string().regex(/^[a-z_][a-z0-9_-]{0,31}$/).optional(),
|
|
148
|
+
})
|
|
149
|
+
.strict();
|
|
150
|
+
export type CiRunnerRegisterArgs = z.infer<typeof CiRunnerRegisterArgsSchema>;
|
|
151
|
+
|
|
152
|
+
// What `ci_runner_remove` takes: the runner and a removal token GitHub minted for its registration. Refused while it runs a job.
|
|
153
|
+
export const CiRunnerRemoveArgsSchema = z.object({ name: CiRunnerNameSchema, token: z.string().min(10).max(200) }).strict();
|
|
154
|
+
export type CiRunnerRemoveArgs = z.infer<typeof CiRunnerRemoveArgsSchema>;
|
|
155
|
+
|
|
156
|
+
// The daemon's route inputs: the device by its card id, then what the machine is asked.
|
|
157
|
+
const DeviceIdSchema = z.string().min(1);
|
|
158
|
+
export const DeviceCiFleetInputSchema = z.object({ id: DeviceIdSchema });
|
|
159
|
+
export type DeviceCiFleetInput = z.infer<typeof DeviceCiFleetInputSchema>;
|
|
160
|
+
export const DeviceCiRunnerOpInputSchema = z.object({ id: DeviceIdSchema, name: CiRunnerNameSchema, op: CiRunnerOpSchema });
|
|
161
|
+
export type DeviceCiRunnerOpInput = z.infer<typeof DeviceCiRunnerOpInputSchema>;
|
|
162
|
+
export const DeviceCiRunnerLogsInputSchema = z.object({
|
|
163
|
+
id: DeviceIdSchema,
|
|
164
|
+
name: CiRunnerNameSchema,
|
|
165
|
+
tail: z.coerce.number().int().positive().max(CI_RUNNER_LOG_TAIL_MAX).optional(),
|
|
166
|
+
});
|
|
167
|
+
export type DeviceCiRunnerLogsInput = z.infer<typeof DeviceCiRunnerLogsInputSchema>;
|
|
168
|
+
|
|
169
|
+
// Register a new runner on a device for one workspace repository's GitHub remote: the daemon mints the registration
|
|
170
|
+
// token through the GitHub connection and never stores it.
|
|
171
|
+
export const DeviceCiRunnerRegisterInputSchema = z.object({
|
|
172
|
+
id: DeviceIdSchema,
|
|
173
|
+
// Workspace-relative repository directory whose GitHub remote the runner serves.
|
|
174
|
+
repo: z.string().min(1).max(500),
|
|
175
|
+
name: CiRunnerNameSchema,
|
|
176
|
+
labels: z.array(CiRunnerLabelSchema).min(1).max(20),
|
|
177
|
+
});
|
|
178
|
+
export type DeviceCiRunnerRegisterInput = z.infer<typeof DeviceCiRunnerRegisterInputSchema>;
|
|
179
|
+
export const DeviceCiRunnerRemoveInputSchema = z.object({ id: DeviceIdSchema, name: CiRunnerNameSchema });
|
|
180
|
+
export type DeviceCiRunnerRemoveInput = z.infer<typeof DeviceCiRunnerRemoveInputSchema>;
|
|
@@ -5,7 +5,7 @@ import { packageRoot } from "@intentic/constants/node";
|
|
|
5
5
|
import { ComposedOverlayLineSchema } from "./compose-overlay.js";
|
|
6
6
|
|
|
7
7
|
// The lines a target image's composer prints, as examples: golden/compose-overlay.json, which ic's reader is held to
|
|
8
|
-
// (
|
|
8
|
+
// (_hosts/ic/src/sandbox/composition.rs). This is the TS half: each is a line the contract reads, its hash its overlay's.
|
|
9
9
|
|
|
10
10
|
interface ComposeCase {
|
|
11
11
|
readonly name: string;
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
// WHAT A TARGET IMAGE COMPOSES FOR A SANDBOX, as the host reads it: the one line the image's own composer prints
|
|
4
4
|
// (`node /opt/sandbox/dist/environment/compose-overlay.js --base <image>`, _sandbox/sandbox/src/environment/compose-overlay.ts) over read-only
|
|
5
5
|
// mounts of the sandbox's volumes before a swap onto it, which `ic` builds instead of the overlay the running daemon
|
|
6
|
-
// composed (
|
|
6
|
+
// composed (_hosts/ic/src/sandbox/composition.rs). golden/compose-overlay.json holds examples the Rust test reads.
|
|
7
7
|
|
|
8
8
|
// The one format `ic` reads; any other, or none, sends it back to the running daemon's overlay.
|
|
9
9
|
export const COMPOSE_OVERLAY_FORMAT = 1;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { HUB_PROVIDERS } from "../models/providers/provider-traits.js";
|
|
2
3
|
import { KEYRING_NAME_RE } from "./keyring.js";
|
|
3
4
|
|
|
4
5
|
// THE CONNECTIONS HUB: the keyring on one of the owner's computers as the place their connections live, so a sandbox can
|
|
@@ -31,8 +32,9 @@ export const HubCardKindSchema = z.enum(["cli", "mcp", "endpoint"]);
|
|
|
31
32
|
export type HubCardKind = z.infer<typeof HubCardKindSchema>;
|
|
32
33
|
|
|
33
34
|
// The model providers whose account is a key that does not rotate: what a sign-in there would write is the whole
|
|
34
|
-
// account: Cursor and Devin keys, and the minted Z.ai and Meta keys. (Endpoints are cards, above.)
|
|
35
|
-
|
|
35
|
+
// account: Cursor and Devin keys, and the minted Z.ai and Meta keys. (Endpoints are cards, above.) Read off the providers'
|
|
36
|
+
// `hubAccount` trait (models/providers/provider-traits.ts).
|
|
37
|
+
export const HUB_ACCOUNT_PROVIDERS = HUB_PROVIDERS;
|
|
36
38
|
export const HubAccountProviderSchema = z.enum(HUB_ACCOUNT_PROVIDERS);
|
|
37
39
|
export type HubAccountProvider = z.infer<typeof HubAccountProviderSchema>;
|
|
38
40
|
|
|
@@ -31,10 +31,13 @@ export const continueWhenNeedMetSetting = z
|
|
|
31
31
|
"Whether a conversation carries on by itself once something it asked a person for arrives: a connection made, a secret given, access allowed, a tool built into the image. Off leaves the answer on the conversation's card until someone sends a message.",
|
|
32
32
|
);
|
|
33
33
|
|
|
34
|
-
// A switch rather than a policy: a restart is the one ending with nobody watching it.
|
|
34
|
+
// A switch rather than a policy: a restart is the one ending with nobody watching it. On to begin with (2026-11-23): off,
|
|
35
|
+
// a restart left every conversation it cut waiting for a press, and one whose turn was waiting on its own subagents (cut
|
|
36
|
+
// by the same restart) had nothing left that would ever wake it. A restart storm still resumes nothing
|
|
37
|
+
// (restart-resume-policy.ts), and a restart traced to memory goes by memoryKillPolicy.
|
|
35
38
|
export const autoResumeOnRestartSetting = z
|
|
36
39
|
.boolean()
|
|
37
|
-
.default(
|
|
40
|
+
.default(true)
|
|
38
41
|
.describe(
|
|
39
|
-
"Whether a turn killed by the sandbox restarting is re-run once it comes back. A switch rather than one of the policies above, because a restart is the one ending with nobody watching it, so there is no in-chat question to answer.
|
|
42
|
+
"Whether a turn killed by the sandbox restarting is re-run once it comes back. A switch rather than one of the policies above, because a restart is the one ending with nobody watching it, so there is no in-chat question to answer. On to begin with, so work a restart cut carries on rather than waiting for a press; turn it off if you would rather not have the allowance spent and files edited while you are not watching. A burst of restarts in a row resumes nothing. Either way the interruption is recorded rather than silently lost. A restart the sandbox traces to memory running out goes by `memoryKillPolicy` instead, whatever this says.",
|
|
40
43
|
);
|
|
@@ -104,7 +104,7 @@ export type AuditSettings = z.infer<typeof AuditSettingsSchema>;
|
|
|
104
104
|
// channel. Email sending is the key the IMAP extension's sender consults (_extensions/imap/src/send.ts); the three
|
|
105
105
|
// `microsoft365.*` keys are what `m365` consults before sending, changing a calendar or uploading
|
|
106
106
|
// (_extensions/microsoft-365/src/actions.ts); the `ezdrp.*` and `edoreczenia.*` keys are the office acts the e-urzad
|
|
107
|
-
// extension's guard consults (
|
|
107
|
+
// extension's guard consults (src/core/guard.ts in intentic/extension-e-urzad): registering mail and adding files in EZD RP, sending
|
|
108
108
|
// an e-Doręczenia delivery, and opening one, the one read here with legal effect (it can make the delivery received).
|
|
109
109
|
// One list for the public-office preset, which holds every one of them, and the editor's Guardrails page, which sets them.
|
|
110
110
|
export const OUTWARD_ACTION_KEYS = [
|
|
@@ -4,7 +4,7 @@ import { packageRoot } from "@intentic/constants/node";
|
|
|
4
4
|
import { DeviceSwapsSchema } from "./device-swaps.js";
|
|
5
5
|
|
|
6
6
|
// The rows `ic sandbox swaps --json` answers, as examples: golden/swap-verdicts.json holds each of ic's records and the
|
|
7
|
-
// row it gives (the Rust test,
|
|
7
|
+
// row it gives (the Rust test, _hosts/ic/src/sandbox/swaps.rs, builds every one; the machine agent's fallback is held
|
|
8
8
|
// to the same rows). This is the TS half: the rows ic gives are the rows the contract reads, to the field.
|
|
9
9
|
|
|
10
10
|
interface VerdictCase {
|
package/src/schemas/devices.ts
CHANGED
|
@@ -82,6 +82,10 @@ export const DeviceSandboxSchema = z.object({
|
|
|
82
82
|
sandboxId: z.string().nullable().optional(),
|
|
83
83
|
localPort: z.number().int().nullable().optional(),
|
|
84
84
|
platformId: z.string().nullable().optional(),
|
|
85
|
+
// (2026-11-21) Whose runner this container is: its parent sandbox's address (the RUNNER_PARENT_URL it was made with)
|
|
86
|
+
// and that sandbox's name as the parent last told it (runnerContract.present). Null for a person's sandbox; absent
|
|
87
|
+
// from an older ic.
|
|
88
|
+
runnerOf: z.object({ url: z.string(), name: z.string().nullable().optional() }).nullable().optional(),
|
|
85
89
|
});
|
|
86
90
|
export type DeviceSandbox = z.infer<typeof DeviceSandboxSchema>;
|
|
87
91
|
// One operation on one sandbox, streamed as lines ending in a `result` or `error` frame. `prepare` builds the pending
|
|
@@ -214,7 +218,9 @@ export type DeviceFlowLine = z.infer<typeof DeviceFlowLineSchema>;
|
|
|
214
218
|
// on every sandbox's page and a sibling restarting or asleep must keep this machine, and never the link carrying the
|
|
215
219
|
// request, which is by definition answering. Before 2026-11-17 it took any link that had failed twenty dials (about
|
|
216
220
|
// eight minutes), and one sandbox's button disconnected the machine from another.
|
|
217
|
-
|
|
221
|
+
// `power-stay-on` (2026-11-22) changes the power settings that would sleep the computer through scheduled work, on mains
|
|
222
|
+
// power only (`intentic-machine power stay-on`, `DeviceFacts.power`); only an agent advertising DEVICE_FEATURE_POWER has it.
|
|
223
|
+
export const DeviceAgentOpSchema = z.enum(["upgrade", "restart", "forget-unreachable", "power-stay-on"]);
|
|
218
224
|
export type DeviceAgentOp = z.infer<typeof DeviceAgentOpSchema>;
|
|
219
225
|
export const DeviceAgentFlowSchema = z.strictObject({ op: DeviceAgentOpSchema });
|
|
220
226
|
export type DeviceAgentFlow = z.infer<typeof DeviceAgentFlowSchema>;
|
|
@@ -647,3 +653,15 @@ export const SyncStatusSchema = z.object({
|
|
|
647
653
|
machines: z.array(DeviceReportSchema).optional(),
|
|
648
654
|
});
|
|
649
655
|
export type SyncStatus = z.infer<typeof SyncStatusSchema>;
|
|
656
|
+
|
|
657
|
+
// GET /system/sync/changes: the workspace's change signal, held open by the daemon until something file sync carries has
|
|
658
|
+
// changed (2026-11-24). A device asks with the generation it last saw (`?after=`, beside `?epoch=`) and is answered at
|
|
659
|
+
// once when the daemon has moved past it or restarted since, else when a change comes or the hold runs out. A device that
|
|
660
|
+
// gets this answer at all knows the sandbox pushes, and lets its own scan of the sandbox fall back to a backstop.
|
|
661
|
+
export const SyncChangesSchema = z.object({
|
|
662
|
+
// This daemon run: a restart starts the count over, so a generation is only comparable within one epoch.
|
|
663
|
+
epoch: z.string(),
|
|
664
|
+
// How many coalesced batches of carried changes this run has seen.
|
|
665
|
+
generation: z.number().int().nonnegative(),
|
|
666
|
+
});
|
|
667
|
+
export type SyncChanges = z.infer<typeof SyncChangesSchema>;
|
|
@@ -3,7 +3,7 @@ import { join } from "node:path";
|
|
|
3
3
|
import { packageRoot } from "@intentic/constants/node";
|
|
4
4
|
import { EGRESS_PRIVATE_V4, EGRESS_PRIVATE_V6 } from "./egress.js";
|
|
5
5
|
|
|
6
|
-
// ic renders these ranges into its nftables rules (
|
|
6
|
+
// ic renders these ranges into its nftables rules (_hosts/ic/src/sandbox/egress/render.rs), and its Rust test reads the
|
|
7
7
|
// same golden, so a range added here and not there fails one side or the other instead of fencing differently.
|
|
8
8
|
// SAFETY: the golden is this package's own file; the assertions below fail on any field it lacks.
|
|
9
9
|
const GOLDEN = JSON.parse(readFileSync(join(packageRoot(import.meta.url), "golden", "egress-private.json"), "utf8")) as {
|
|
@@ -169,6 +169,10 @@ export const EnvironmentSchema = z.object({
|
|
|
169
169
|
// folder holding its file, so the update card offers that rather than an `ic` swap. Absent from an older daemon too,
|
|
170
170
|
// which is why the card still names the compose way beside the `ic` one when it cannot tell.
|
|
171
171
|
manager: z.literal("compose").optional(),
|
|
172
|
+
// Beside `manager`: the file a Compose sandbox's file reads its credentials from (`env_file:`, COMPOSE_CREDENTIALS_FILE
|
|
173
|
+
// in @intentic/sandbox-run). Absent where they are interpolated from the folder's `.env`, as setup wrote them before
|
|
174
|
+
// 2026-11-23, so the rebuild card renders the file that way again.
|
|
175
|
+
composeCredentials: z.string().optional(),
|
|
172
176
|
// A rebuild waiting for the agents to be idle, or started or refused once they were; absent when none is asked.
|
|
173
177
|
rebuildWhenIdle: EnvironmentRebuildWaitSchema.optional(),
|
|
174
178
|
// A checkout rebuild's restart held until no agent is mid-turn; absent when none is asked.
|
|
@@ -245,6 +245,14 @@ export const ExtensionSummarySchema = z.object({
|
|
|
245
245
|
dev: ExtensionDevSchema.optional().describe(
|
|
246
246
|
"Set while an extension installed from a repository is pointed at a source checkout in this workspace, for working on the extension itself: its code is served from there instead of the pinned copy. `commit` keeps naming the pinned version, which is what updates and the registry compare against.",
|
|
247
247
|
),
|
|
248
|
+
// A workspace folder has no commit to pin (`commit` reads "workspace"), so a land or an edit moving its code is
|
|
249
|
+
// seen by this instead: the editor loads it again when it moves.
|
|
250
|
+
revision: z
|
|
251
|
+
.string()
|
|
252
|
+
.optional()
|
|
253
|
+
.describe(
|
|
254
|
+
"For an extension written in this workspace: a short fingerprint of what the browser runs of it, its declaration and its built bundle. It changes whenever either does, which is how a screen tells the copy it loaded is behind. Absent for other sources.",
|
|
255
|
+
),
|
|
248
256
|
});
|
|
249
257
|
export type ExtensionSummary = z.infer<typeof ExtensionSummarySchema>;
|
|
250
258
|
// The dev-mode verbs address an installed extension any of the ways a person names one.
|
package/src/schemas/git/git.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GitRepoParamSchema } from "./git-view.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { AgentProviderSchema } from "../agent.js";
|
|
4
|
-
import { LandConflictSchema, LandedMessageSchema } from "../agents.js";
|
|
4
|
+
import { LandConflictSchema, LandedMessageSchema, LandingExtensionsSchema } from "../agents.js";
|
|
5
5
|
import { CommandRunSchema } from "../ci.js";
|
|
6
6
|
import { RefNameSchema } from "../internal.js";
|
|
7
7
|
import { MainBranchSchema } from "../shared.js";
|
|
@@ -260,9 +260,9 @@ export const GitOperationStateSchema = z.object({
|
|
|
260
260
|
export type GitOperationState = z.infer<typeof GitOperationStateSchema>;
|
|
261
261
|
// Judged by shape alone: the names scratch arrives under are made up fresh every time, so no list of names could hold.
|
|
262
262
|
export const ScratchReasonSchema = z
|
|
263
|
-
.enum(["hidden", "byproduct", "checkout", "oversized", "root"])
|
|
263
|
+
.enum(["hidden", "byproduct", "checkout", "oversized", "root", "bulk"])
|
|
264
264
|
.describe(
|
|
265
|
-
"Why it looks like scratch. A new hidden directory that is not one a project keeps on purpose (like `.github`). A log, dump, backup or editor leftover. A git checkout of its own. A new file past the size source code reaches.
|
|
265
|
+
"Why it looks like scratch. A new hidden directory that is not one a project keeps on purpose (like `.github`). A log, dump, backup or editor leftover. A git checkout of its own. A new file past the size source code reaches. A new dotfile at the top of a workspace whose projects are the repositories inside it. Or a new folder holding more files, or more bytes, than any change a person writes: build output an ignore rule stopped hiding, an unpacked archive, a download.",
|
|
266
266
|
);
|
|
267
267
|
export type ScratchReason = z.infer<typeof ScratchReasonSchema>;
|
|
268
268
|
export const ScratchPathSchema = z.object({
|
|
@@ -362,6 +362,12 @@ export const OriginAgentSchema = z.object({
|
|
|
362
362
|
),
|
|
363
363
|
});
|
|
364
364
|
export type OriginAgent = z.infer<typeof OriginAgentSchema>;
|
|
365
|
+
// Sandbox-wide and read at response time, not from the memoized scan: a discard waits on its restore point, and a
|
|
366
|
+
// press that showed nothing for minutes was pressed again after a reload (2026-11-21).
|
|
367
|
+
const runningIn = (what: string, doing: string) =>
|
|
368
|
+
z.array(z.string()).optional().describe(
|
|
369
|
+
`Repositories with ${what} running right now. The sandbox's answer rather than any one tab's, so a reload, a second window and another device all know. Absent means nothing is ${doing}.`,
|
|
370
|
+
);
|
|
365
371
|
// Aggregated review set across every repo (root + every discovered repo).
|
|
366
372
|
export const GitChangesSchema = z.object({
|
|
367
373
|
repos: z
|
|
@@ -377,14 +383,8 @@ export const GitChangesSchema = z.object({
|
|
|
377
383
|
.describe(
|
|
378
384
|
"Who each conversation named above is, keyed by id, so a caller need not look them up. Absent when nothing in the review can be attributed.",
|
|
379
385
|
),
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
committing: z
|
|
383
|
-
.array(z.string())
|
|
384
|
-
.optional()
|
|
385
|
-
.describe(
|
|
386
|
-
"Repositories with a commit running right now. The sandbox's answer rather than any one tab's, so a reload, a second window and another device all know. Absent means nothing is committing.",
|
|
387
|
-
),
|
|
386
|
+
committing: runningIn("a commit", "committing"),
|
|
387
|
+
discarding: runningIn("a discard (its restore point being taken, or the files going)", "being discarded"),
|
|
388
388
|
});
|
|
389
389
|
export type GitChanges = z.infer<typeof GitChangesSchema>;
|
|
390
390
|
// Re-read inside the same lock the commit used, so the caller redraws from here instead of a full rescan. `changes`
|
|
@@ -462,8 +462,6 @@ export const AgentRepoChangesSchema = z.object({
|
|
|
462
462
|
),
|
|
463
463
|
});
|
|
464
464
|
export type AgentRepoChanges = z.infer<typeof AgentRepoChangesSchema>;
|
|
465
|
-
// The review, plus why the last land refused: a conflict is found when the turn ends but resolved later on this
|
|
466
|
-
// surface, so it rides here rather than only in the land response, and refreshes on every land.
|
|
467
465
|
// A workspace repo this conversation's copy does not carry, where the copy nonetheless holds files at its path: what a
|
|
468
466
|
// turn wrote into a folder that was no checkout of its own, which therefore reached no branch.
|
|
469
467
|
export const OutsideCheckoutSchema = z.object({
|
|
@@ -476,7 +474,8 @@ export const OutsideCheckoutSchema = z.object({
|
|
|
476
474
|
files: z.number().describe("How many files the copy holds at its path. A floor past a thousand, which is where the count stops."),
|
|
477
475
|
});
|
|
478
476
|
export type OutsideCheckout = z.infer<typeof OutsideCheckoutSchema>;
|
|
479
|
-
|
|
477
|
+
// The review, plus why the last land refused: a conflict is found when the turn ends but resolved later on this
|
|
478
|
+
// surface, so it rides here rather than only in the land response, and refreshes on every land.
|
|
480
479
|
export const AgentChangesSchema = z.object({
|
|
481
480
|
repos: z.array(AgentRepoChangesSchema).describe("One entry per repository the conversation touched."),
|
|
482
481
|
// Disambiguates two opposite reasons for an empty list: nothing written, versus everything already committed.
|
|
@@ -555,6 +554,7 @@ export const AgentChangesSchema = z.object({
|
|
|
555
554
|
.describe(
|
|
556
555
|
"Repositories of your workspace this conversation's copy does not carry, where it nonetheless wrote files at their path. Nothing written there is on its branch, so no merge brings it; an `unborn` one is taken into the copy, with those files, on the conversation's next turn after its first commit. Absent when there are none.",
|
|
557
556
|
),
|
|
557
|
+
extensions: LandingExtensionsSchema,
|
|
558
558
|
});
|
|
559
559
|
export type AgentChanges = z.infer<typeof AgentChangesSchema>;
|
|
560
560
|
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
/* WHAT A COMPUTER'S OWN OS DOES TO WORK LEFT RUNNING ON IT (2026-11-22). Two sandboxes on rog had sessions booked for the
|
|
4
|
+
night. rog's power plan put it to sleep five hours after its owner's last keypress, at 05:37, and nothing on it ran
|
|
5
|
+
again until the lid was opened at 10:01: a send booked for 07:10 went out three hours late, and nobody had been told
|
|
6
|
+
this would happen. The machine agent now reads the settings that decide this (machine `power/`) and reports each one
|
|
7
|
+
that would stop a sandbox's scheduled work as a finding, in its facts (`DeviceFacts.power`). The daemon raises a
|
|
8
|
+
`host-power` card when something is booked that one of them would stop (needs.ts), and the owner's yes runs the
|
|
9
|
+
agent's `power-stay-on` op (DeviceAgentOpSchema), which changes those settings on mains power and leaves battery as it
|
|
10
|
+
is: a laptop in a bag must still sleep.
|
|
11
|
+
|
|
12
|
+
Finding ids are strings, not an enum, so a finding a newer agent adds is one more line rather than facts that fail to
|
|
13
|
+
parse; `text` is the agent's own sentence for it, which a reader shows when it has no words of its own for the id. */
|
|
14
|
+
|
|
15
|
+
// The ids this build knows. Each is one setting or one OS behaviour, on one power source where that matters.
|
|
16
|
+
export const POWER_FINDING = {
|
|
17
|
+
// Windows: "Sleep after" is set, on mains power, in at least one power plan.
|
|
18
|
+
sleepIdle: "sleep-idle",
|
|
19
|
+
// Windows: "Hibernate after" is set, on mains power.
|
|
20
|
+
hibernateIdle: "hibernate-idle",
|
|
21
|
+
// Windows: closing the lid on mains power sleeps, hibernates or shuts the computer down.
|
|
22
|
+
lidClose: "lid-close",
|
|
23
|
+
// Windows Modern Standby: the network is cut while the screen is off, so a provider call from a turn fails.
|
|
24
|
+
standbyNetwork: "standby-network",
|
|
25
|
+
// Windows: on battery it still sleeps (after `afterSeconds`, or when the lid closes). Reported, never changed.
|
|
26
|
+
batterySleep: "battery-sleep",
|
|
27
|
+
// Windows Update may restart the computer outside its active hours (`window`), and after a restart nothing runs
|
|
28
|
+
// until somebody signs in. Reported, never changed.
|
|
29
|
+
updateRestart: "update-restart",
|
|
30
|
+
// Linux or macOS: the OS may suspend the computer; the fix needs root, so `command` says what to run.
|
|
31
|
+
osSleep: "os-sleep",
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
export const HostPowerFindingSchema = z.object({
|
|
35
|
+
id: z.string().min(1).describe("Which setting or behaviour (POWER_FINDING), as a string so a newer agent's id still parses."),
|
|
36
|
+
power: z.enum(["ac", "dc"]).optional().describe("The power source it applies to: ac is mains, dc is battery. Absent where that does not matter."),
|
|
37
|
+
afterSeconds: z.number().int().positive().optional().describe("For a timeout: how long without input before it acts, the shortest across power plans."),
|
|
38
|
+
action: z.string().optional().describe("For the lid: what closing it does now, `sleep`, `hibernate` or `shut-down`."),
|
|
39
|
+
window: z
|
|
40
|
+
.object({
|
|
41
|
+
fromHour: z.number().int().min(0).max(23),
|
|
42
|
+
toHour: z.number().int().min(0).max(23),
|
|
43
|
+
})
|
|
44
|
+
.optional()
|
|
45
|
+
.describe("For an update restart: the local hours it may happen in, from `fromHour` up to `toHour` (wrapping past midnight)."),
|
|
46
|
+
plans: z.array(z.string()).optional().describe("Windows: the power plans that hold the value, by name. A vendor may switch between them by itself."),
|
|
47
|
+
fixable: z.boolean().describe("Whether the agent's `power-stay-on` op changes it."),
|
|
48
|
+
command: z.string().optional().describe("Where the agent cannot change it: the command a person runs on that computer."),
|
|
49
|
+
text: z.string().min(1).describe("What it does now, in the agent's words (English), for a reader with none of its own for this id."),
|
|
50
|
+
});
|
|
51
|
+
export type HostPowerFinding = z.infer<typeof HostPowerFindingSchema>;
|
|
52
|
+
|
|
53
|
+
export const HostPowerSchema = z.object({
|
|
54
|
+
at: z.number().describe("When the settings were read, in epoch ms."),
|
|
55
|
+
utcOffsetMinutes: z
|
|
56
|
+
.number()
|
|
57
|
+
.int()
|
|
58
|
+
.describe("The computer's local time minus UTC, in minutes, when read: what places a finding's local `window` on another clock."),
|
|
59
|
+
battery: z.boolean().optional().describe("Whether the computer has a battery at all."),
|
|
60
|
+
findings: z.array(HostPowerFindingSchema).describe("Everything its OS would do to stop or delay work left running; empty when nothing would."),
|
|
61
|
+
});
|
|
62
|
+
export type HostPower = z.infer<typeof HostPowerSchema>;
|
|
63
|
+
|
|
64
|
+
/** The findings the agent's `power-stay-on` op would change. Pure. */
|
|
65
|
+
export const fixablePowerFindings = (power: Pick<HostPower, "findings"> | undefined): HostPowerFinding[] =>
|
|
66
|
+
(power?.findings ?? []).filter((finding) => finding.fixable);
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether `at` (epoch ms) falls inside a finding's local-hours `window` on a computer `utcOffsetMinutes` from UTC: the
|
|
70
|
+
* window runs from `fromHour` up to `toHour`, past midnight when `toHour` is the smaller. Pure.
|
|
71
|
+
*/
|
|
72
|
+
export const insideLocalWindow = (at: number, window: NonNullable<HostPowerFinding["window"]>, utcOffsetMinutes: number): boolean => {
|
|
73
|
+
const local = new Date(at + utcOffsetMinutes * 60_000);
|
|
74
|
+
const hour = local.getUTCHours();
|
|
75
|
+
if (window.fromHour === window.toHour) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
return window.fromHour < window.toHour ? hour >= window.fromHour && hour < window.toHour : hour >= window.fromHour || hour < window.toHour;
|
|
79
|
+
};
|
package/src/schemas/hosts.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// hosts: the user's own connected devices (the `host` capability's live half)
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { HostPowerSchema } from "./host-power.js";
|
|
3
4
|
import { IntenticOsFactsSchema } from "./intentic-os.js";
|
|
4
5
|
// Manifest says which machines are intended; this says which actually hold a socket now. Nothing persists across a
|
|
5
6
|
// daemon restart except the enrollment itself, so a closed laptop reads offline within a heartbeat.
|
|
@@ -106,6 +107,11 @@ export const DeviceFactsSchema = z.object({
|
|
|
106
107
|
// the machine boots, so the daemon tells the agent it may be this box's steward and the os_* tools are there. `os`
|
|
107
108
|
// above stays the human name. Absent everywhere else, and from an agent older than the field.
|
|
108
109
|
intenticOs: IntenticOsFactsSchema.optional(),
|
|
110
|
+
// (2026-11-22) What this computer's OS would do to work left running on it: a power plan that sleeps it, a lid that
|
|
111
|
+
// does, an update restart in the night (HostPowerSchema, host-power.ts). Said by the environment that owns those
|
|
112
|
+
// settings (Windows' native side, a Linux or macOS host), never by a WSL distro. Absent from an agent older than the
|
|
113
|
+
// field, and where the settings could not be read.
|
|
114
|
+
power: HostPowerSchema.optional(),
|
|
109
115
|
});
|
|
110
116
|
export type DeviceFacts = z.infer<typeof DeviceFactsSchema>;
|
|
111
117
|
|
|
@@ -167,7 +173,7 @@ const GIB = 1024 ** 3;
|
|
|
167
173
|
below it. Windows' memory manager trims working sets and pages hard well before it reaches zero: rog froze with 1.1 GB
|
|
168
174
|
left, so the floor sits above that. A tenth scales it with the machine, where one browser or a game can take a few
|
|
169
175
|
gigabytes in a second and 1.5 GiB of a 64 GiB machine is no margin at all. */
|
|
170
|
-
const HOST_LOW_FLOOR_BYTES = 1.5 * GIB;
|
|
176
|
+
export const HOST_LOW_FLOOR_BYTES = 1.5 * GIB;
|
|
171
177
|
const HOST_LOW_SHARE = 0.1;
|
|
172
178
|
export const hostMemoryLowBytes = (totalBytes: number): number => Math.max(HOST_LOW_FLOOR_BYTES, HOST_LOW_SHARE * totalBytes);
|
|
173
179
|
|
|
@@ -210,6 +216,19 @@ export const DeviceFeatureSchema = z.enum([
|
|
|
210
216
|
// (2026-11-20) `remoteService`: remoted's Windows service for the lock screen and administrator prompts, read,
|
|
211
217
|
// installed and removed (schemas/device-remote.ts). Advertised by a Windows agent that advertises `remote`.
|
|
212
218
|
"remote-service",
|
|
219
|
+
// (2026-11-22) The `power-stay-on` agent op: the power settings that would sleep this computer through scheduled work
|
|
220
|
+
// (`DeviceFacts.power`), changed on mains power by `intentic-machine power stay-on`. Advertised where the agent can
|
|
221
|
+
// change them itself, which is Windows' native side.
|
|
222
|
+
"power",
|
|
223
|
+
// (2026-11-23) run_command's `admin`: the command run as the signed-in person's administrator, with no UAC prompt,
|
|
224
|
+
// through intentic-remoted's Windows service, under the card's "Run commands as administrator" switch. Advertised by
|
|
225
|
+
// a Windows agent that advertises `remote-service`; an agent without it would drop the field and run the command
|
|
226
|
+
// unelevated, so the daemon refuses `admin` to it rather than forward it.
|
|
227
|
+
"admin-run",
|
|
228
|
+
// (2026-11-24) `ci_runners`, `ci_runner_action`, `ci_runner_logs`, `ci_runner_register` and `ci_runner_remove`: the
|
|
229
|
+
// self-hosted GitHub Actions runners on this computer, read and driven from the Pipelines view
|
|
230
|
+
// (schemas/ci-fleet.ts). Advertised by a Linux agent: the runners are systemd units.
|
|
231
|
+
"ci-runners",
|
|
213
232
|
]);
|
|
214
233
|
export type DeviceFeature = z.infer<typeof DeviceFeatureSchema>;
|
|
215
234
|
export const DEVICE_FEATURE_RESHAPE_LATER: DeviceFeature = "reshape-later";
|
|
@@ -227,10 +246,13 @@ export const DEVICE_FEATURE_REACH_NETWORK: DeviceFeature = "reach-network";
|
|
|
227
246
|
export const DEVICE_FEATURE_SANDBOX_MOVE: DeviceFeature = "sandbox-move";
|
|
228
247
|
export const DEVICE_FEATURE_FILE_COPY: DeviceFeature = "file-copy";
|
|
229
248
|
export const DEVICE_FEATURE_STACKS: DeviceFeature = "stacks";
|
|
249
|
+
export const DEVICE_FEATURE_CI_RUNNERS: DeviceFeature = "ci-runners";
|
|
230
250
|
export const DEVICE_FEATURE_REMOTE: DeviceFeature = "remote";
|
|
231
251
|
export const DEVICE_FEATURE_REMOTE_ICE: DeviceFeature = "remote-ice";
|
|
232
252
|
export const DEVICE_FEATURE_REMOTE_SERVICE: DeviceFeature = "remote-service";
|
|
233
|
-
|
|
253
|
+
export const DEVICE_FEATURE_POWER: DeviceFeature = "power";
|
|
254
|
+
export const DEVICE_FEATURE_ADMIN_RUN: DeviceFeature = "admin-run";
|
|
255
|
+
// What `ic features --json` answers (_hosts/ic/src/features.rs, golden/ic-features.json): the optional ops that ic
|
|
234
256
|
// implements, as strings, since a newer ic's word means nothing to an older agent.
|
|
235
257
|
export const IcFeaturesAnswerSchema = z.object({ features: z.array(z.string()) });
|
|
236
258
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
-
// INTENTIC OS (2026-10-13): the immutable Linux that boots straight into Intentic (
|
|
3
|
+
// INTENTIC OS (2026-10-13): the immutable Linux that boots straight into Intentic (_hosts/README.md). Everything that changes
|
|
4
4
|
// the OS goes through `ic os`, and everything that calls it reads ic's JSON rather than bootc's. This is that JSON as the
|
|
5
5
|
// TypeScript side reads it, and the argv every caller spells it with: the machine agent's os_* tools run it, and a page
|
|
6
6
|
// that cannot reach the machine can print it for a person to type. golden/intentic-os.json holds an example of each
|
|
@@ -130,7 +130,7 @@ export const icOsRebootArgs = (): string[] => ["os", "reboot"];
|
|
|
130
130
|
export const icOsChannelArgs = (channel: IntenticOsChannel): string[] => ["os", "channel", IntenticOsChannelSchema.parse(channel)];
|
|
131
131
|
|
|
132
132
|
// THE MACHINE'S OWN SETTINGS (2026-10-16): the network, the sound, the screen, the keyboard and the drives a person plugs
|
|
133
|
-
// in, each a verb of `ic os` (
|
|
133
|
+
// in, each a verb of `ic os` (_hosts/README.md, "Settings"). The desktop app's This computer cards, its status bar and the
|
|
134
134
|
// machine agent's tools all read these shapes, so a person and the agent in the machine's own sandbox change the same
|
|
135
135
|
// things the same way ("connect to the guest Wi-Fi"). ic reads NetworkManager, WirePlumber, sway and udisks for them:
|
|
136
136
|
// nothing that calls ic speaks to those.
|
package/src/schemas/issues.ts
CHANGED
|
@@ -90,6 +90,20 @@ export const IssueSenderSchema = z.object({
|
|
|
90
90
|
sandboxName: z.string().max(120).describe("Its name on your account."),
|
|
91
91
|
project: z.string().max(200).describe("The project it reported about, as this sandbox claims it."),
|
|
92
92
|
conversationId: z.string().max(120).optional().describe("The conversation over there that reported it."),
|
|
93
|
+
person: z
|
|
94
|
+
.string()
|
|
95
|
+
.max(254)
|
|
96
|
+
.optional()
|
|
97
|
+
.describe("The person that conversation acts for, as the platform signed it and this sandbox's roster knows them: attribution only."),
|
|
98
|
+
crossesOrg: z
|
|
99
|
+
.object({
|
|
100
|
+
from: z.object({ id: z.string().max(64), name: z.string().max(120) }).optional(),
|
|
101
|
+
to: z.object({ id: z.string().max(64), name: z.string().max(120) }).optional(),
|
|
102
|
+
})
|
|
103
|
+
.optional()
|
|
104
|
+
.describe(
|
|
105
|
+
"Set when the reporting sandbox and this one are not in the same organisation, as the platform signed it: `from` is the reporter's organisation, `to` this sandbox's; a side in none is absent.",
|
|
106
|
+
),
|
|
93
107
|
});
|
|
94
108
|
export type IssueSender = z.infer<typeof IssueSenderSchema>;
|
|
95
109
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KeyringCaptureOutcomeSchema, KeyringRefusalCodeSchema, KeyringSecretNameSchema } from "./keyring.js";
|
|
2
2
|
import { KeyringNativeNameSchema, KeyringNativeOutcomeSchema, KeyringNativeRefusalCodeSchema } from "./keyring-native.js";
|
|
3
3
|
|
|
4
4
|
// keyring-native.ts spells three of keyring.ts's schemas again so the browser extension's bundle never reaches keyring.ts
|
|
@@ -7,7 +7,15 @@ import { KeyringNativeNameSchema, KeyringNativeOutcomeSchema, KeyringNativeRefus
|
|
|
7
7
|
test("the extension's copies of keyring.ts's names, refusals and outcomes are the same", () => {
|
|
8
8
|
expect(KeyringNativeRefusalCodeSchema.options).toEqual(KeyringRefusalCodeSchema.options);
|
|
9
9
|
expect(KeyringNativeOutcomeSchema.options).toEqual(KeyringCaptureOutcomeSchema.options);
|
|
10
|
-
for (const name of ["GITHUB_COM", "_1PASSWORD", "a", "1BAD", "has-dash", ""]) {
|
|
11
|
-
expect(KeyringNativeNameSchema.safeParse(name).success).toBe(
|
|
10
|
+
for (const name of ["GITHUB_COM", "_1PASSWORD", "a", "1BAD", "has-dash", "", "__proto__", "constructor", "prototype"]) {
|
|
11
|
+
expect(KeyringNativeNameSchema.safeParse(name).success).toBe(KeyringSecretNameSchema.safeParse(name).success);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
+
|
|
15
|
+
test("a secret's name is never one Object.prototype already has, since it keys the vault's plain objects", () => {
|
|
16
|
+
for (const name of ["__proto__", "constructor", "toString", "hasOwnProperty", "valueOf", "prototype"]) {
|
|
17
|
+
expect(KeyringSecretNameSchema.safeParse(name).success).toBe(false);
|
|
18
|
+
}
|
|
19
|
+
expect(KeyringSecretNameSchema.safeParse("CONSTRUCTOR").success).toBe(true);
|
|
20
|
+
expect(KeyringSecretNameSchema.safeParse("_proto").success).toBe(true);
|
|
21
|
+
});
|