@intentic/sandbox-contract 1.430.0 → 1.432.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 +22 -5
- 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/briefs/agent-ask.d.ts +10 -0
- package/dist/briefs/agent-ask.d.ts.map +1 -0
- package/dist/briefs/agent-ask.js +2 -0
- package/dist/briefs/agent-ask.js.map +1 -0
- package/dist/{chores/extension-update.d.ts → briefs/extension-update-brief.d.ts} +1 -1
- package/dist/briefs/extension-update-brief.d.ts.map +1 -0
- package/dist/{chores/extension-update.js → briefs/extension-update-brief.js} +2 -2
- package/dist/briefs/extension-update-brief.js.map +1 -0
- package/dist/chores/digest.d.ts.map +1 -1
- package/dist/chores/digest.js.map +1 -1
- package/dist/chores/index.d.ts +2 -2
- package/dist/chores/index.d.ts.map +1 -1
- package/dist/chores/index.js +1 -1
- package/dist/chores/index.js.map +1 -1
- package/dist/chores/prompt.d.ts +1 -9
- package/dist/chores/prompt.d.ts.map +1 -1
- package/dist/chores/prompt.js +1 -1
- package/dist/chores/prompt.js.map +1 -1
- package/dist/chores/stack.d.ts.map +1 -1
- package/dist/chores/stack.js.map +1 -1
- package/dist/chores/verdict.d.ts.map +1 -1
- package/dist/chores/verdict.js.map +1 -1
- package/dist/chores/workspace-scope.d.ts +1 -3
- package/dist/chores/workspace-scope.d.ts.map +1 -1
- package/dist/chores/workspace-scope.js +1 -3
- package/dist/chores/workspace-scope.js.map +1 -1
- package/dist/contracts/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 +1226 -12
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +2665 -733
- 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 +90 -8
- 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 +49 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.js +24 -1
- package/dist/contracts/capabilities.contract.js.map +1 -1
- package/dist/contracts/ci.contract.d.ts +222 -95
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/ci.contract.js +87 -26
- package/dist/contracts/ci.contract.js.map +1 -1
- package/dist/contracts/device-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-stacks.contract.d.ts +129 -0
- package/dist/contracts/device-stacks.contract.d.ts.map +1 -0
- package/dist/contracts/device-stacks.contract.js +66 -0
- package/dist/contracts/device-stacks.contract.js.map +1 -0
- package/dist/contracts/device.contract.d.ts +74 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +604 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.js +11 -2
- 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/needs.contract.d.ts +1097 -18
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.d.ts +25 -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 +1203 -9
- 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 +100 -0
- package/dist/contracts/seal.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.d.ts +15 -0
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +27 -1
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +159 -2
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +59 -42
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +19 -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/stack-grants.contract.d.ts +418 -0
- package/dist/contracts/stack-grants.contract.d.ts.map +1 -0
- package/dist/contracts/stack-grants.contract.js +46 -0
- package/dist/contracts/stack-grants.contract.js.map +1 -0
- package/dist/contracts/system.contract.d.ts +516 -69
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +26 -45
- 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/contracts/workspace.contract.d.ts +0 -55
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.js +0 -19
- package/dist/contracts/workspace.contract.js.map +1 -1
- package/dist/events/agent-events.d.ts +615 -8
- 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 +159 -2
- 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 +22 -2
- package/dist/events/agent-words.js.map +1 -1
- package/dist/events/child-news.d.ts +32 -0
- package/dist/events/child-news.d.ts.map +1 -0
- package/dist/events/child-news.js +171 -0
- package/dist/events/child-news.js.map +1 -0
- package/dist/events/prompt-origins.d.ts +42 -0
- package/dist/events/prompt-origins.d.ts.map +1 -1
- package/dist/events/prompt-origins.js +28 -0
- package/dist/events/prompt-origins.js.map +1 -1
- package/dist/events/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/requests.d.ts +14 -0
- package/dist/events/requests.d.ts.map +1 -1
- package/dist/events/requests.js +12 -0
- package/dist/events/requests.js.map +1 -1
- package/dist/events/system-events.d.ts +98 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +799 -10
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/events/transcript.js +2 -1
- package/dist/events/transcript.js.map +1 -1
- package/dist/ids/conversation-ids.d.ts +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 +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/models/agent-catalog.d.ts.map +1 -1
- package/dist/models/agent-catalog.js +3 -2
- package/dist/models/agent-catalog.js.map +1 -1
- package/dist/models/agent-lanes.d.ts.map +1 -1
- package/dist/models/agent-lanes.js +4 -1
- package/dist/models/agent-lanes.js.map +1 -1
- package/dist/models/agent-runtimes.d.ts.map +1 -1
- package/dist/models/agent-runtimes.js +2 -2
- package/dist/models/agent-runtimes.js.map +1 -1
- package/dist/models/agent-standing.d.ts +6 -1
- package/dist/models/agent-standing.d.ts.map +1 -1
- package/dist/models/agent-standing.js +1 -0
- package/dist/models/agent-standing.js.map +1 -1
- package/dist/models/model-roles.d.ts +91 -37
- package/dist/models/model-roles.d.ts.map +1 -1
- package/dist/models/model-roles.js +106 -35
- package/dist/models/model-roles.js.map +1 -1
- package/dist/models/model-setups.d.ts +10 -8
- package/dist/models/model-setups.d.ts.map +1 -1
- package/dist/models/model-setups.js +15 -15
- package/dist/models/model-setups.js.map +1 -1
- package/dist/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/approvals-execution.d.ts +5 -2
- package/dist/policy/approvals-execution.d.ts.map +1 -1
- package/dist/policy/approvals-execution.js +3 -4
- package/dist/policy/approvals-execution.js.map +1 -1
- package/dist/policy/batch-runs.d.ts +1 -1
- package/dist/policy/batch-runs.d.ts.map +1 -1
- package/dist/policy/batch-runs.js +2 -1
- package/dist/policy/batch-runs.js.map +1 -1
- package/dist/policy/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/message-limits.d.ts.map +1 -1
- package/dist/policy/message-limits.js.map +1 -1
- package/dist/policy/org-locks.d.ts +1 -1
- package/dist/policy/org-locks.d.ts.map +1 -1
- package/dist/policy/org-locks.js +1 -0
- package/dist/policy/org-locks.js.map +1 -1
- package/dist/policy/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/policy/shell/workspace-root-exclude.d.ts +4 -0
- package/dist/policy/shell/workspace-root-exclude.d.ts.map +1 -0
- package/dist/policy/shell/workspace-root-exclude.js +4 -0
- package/dist/policy/shell/workspace-root-exclude.js.map +1 -0
- package/dist/protocol/doors/listener-protocol.d.ts +11 -0
- package/dist/protocol/doors/listener-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/listener-protocol.js +5 -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/doors/webext-links.d.ts.map +1 -1
- package/dist/protocol/doors/webext-links.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/extension-protocol.d.ts +518 -0
- package/dist/protocol/raw/extension-protocol.d.ts.map +1 -1
- package/dist/protocol/raw/extension-protocol.js +276 -0
- package/dist/protocol/raw/extension-protocol.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +572 -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 +245 -3
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +79 -36
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/protocol/route-meta.d.ts.map +1 -1
- package/dist/protocol/route-meta.js.map +1 -1
- package/dist/schemas/account-routes.d.ts +176 -0
- package/dist/schemas/account-routes.d.ts.map +1 -0
- package/dist/schemas/account-routes.js +73 -0
- package/dist/schemas/account-routes.js.map +1 -0
- package/dist/schemas/activity.d.ts.map +1 -1
- package/dist/schemas/activity.js.map +1 -1
- package/dist/schemas/agent-background.d.ts +48 -0
- package/dist/schemas/agent-background.d.ts.map +1 -0
- package/dist/schemas/agent-background.js +63 -0
- package/dist/schemas/agent-background.js.map +1 -0
- package/dist/schemas/agent-land.d.ts +7 -0
- package/dist/schemas/agent-land.d.ts.map +1 -1
- package/dist/schemas/agent-land.js +11 -0
- package/dist/schemas/agent-land.js.map +1 -1
- package/dist/schemas/agent.d.ts +4 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +4 -2
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +40 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +668 -17
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +16 -41
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/auto-approve.d.ts +12 -0
- package/dist/schemas/auto-approve.d.ts.map +1 -0
- package/dist/schemas/auto-approve.js +12 -0
- package/dist/schemas/auto-approve.js.map +1 -0
- package/dist/schemas/automations.d.ts +170 -27
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +26 -34
- 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-deployments.d.ts +30 -0
- package/dist/schemas/ci-deployments.d.ts.map +1 -0
- package/dist/schemas/ci-deployments.js +18 -0
- package/dist/schemas/ci-deployments.js.map +1 -0
- package/dist/schemas/ci-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/ci.d.ts +348 -21
- package/dist/schemas/ci.d.ts.map +1 -1
- package/dist/schemas/ci.js +110 -19
- package/dist/schemas/ci.js.map +1 -1
- package/dist/schemas/command-run.d.ts +29 -0
- package/dist/schemas/command-run.d.ts.map +1 -0
- package/dist/schemas/command-run.js +20 -0
- package/dist/schemas/command-run.js.map +1 -0
- package/dist/schemas/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/data-protection.d.ts +15 -2
- package/dist/schemas/data-protection.d.ts.map +1 -1
- package/dist/schemas/data-protection.js +15 -23
- package/dist/schemas/data-protection.js.map +1 -1
- package/dist/schemas/device-stacks.d.ts +131 -0
- package/dist/schemas/device-stacks.d.ts.map +1 -1
- package/dist/schemas/device-stacks.js +81 -0
- package/dist/schemas/device-stacks.js.map +1 -1
- package/dist/schemas/devices.d.ts +137 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +11 -2
- 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 +1186 -0
- package/dist/schemas/extension-updates.d.ts.map +1 -1
- package/dist/schemas/extension-updates.js +22 -4
- 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 +76 -0
- package/dist/schemas/host-power.d.ts.map +1 -0
- package/dist/schemas/host-power.js +101 -0
- package/dist/schemas/host-power.js.map +1 -0
- package/dist/schemas/hosts.d.ts +365 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +33 -1
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/issues.d.ts +55 -225
- package/dist/schemas/issues.d.ts.map +1 -1
- package/dist/schemas/issues.js +21 -43
- 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/maintenance.d.ts.map +1 -1
- package/dist/schemas/maintenance.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 +33 -0
- package/dist/schemas/metrics.d.ts.map +1 -1
- package/dist/schemas/metrics.js +26 -0
- package/dist/schemas/metrics.js.map +1 -1
- package/dist/schemas/need-kinds.d.ts +19 -0
- package/dist/schemas/need-kinds.d.ts.map +1 -0
- package/dist/schemas/need-kinds.js +7 -0
- package/dist/schemas/need-kinds.js.map +1 -0
- package/dist/schemas/needs.d.ts +868 -27
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +79 -9
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/offload.d.ts +61 -0
- package/dist/schemas/offload.d.ts.map +1 -1
- package/dist/schemas/offload.js +14 -1
- package/dist/schemas/offload.js.map +1 -1
- package/dist/schemas/outward-action.d.ts +39 -0
- package/dist/schemas/outward-action.d.ts.map +1 -0
- package/dist/schemas/outward-action.js +40 -0
- package/dist/schemas/outward-action.js.map +1 -0
- package/dist/schemas/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/plan-limits.d.ts +1 -0
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.js +1 -0
- package/dist/schemas/providers/plan-limits.js.map +1 -1
- package/dist/schemas/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/secrets.d.ts +17 -0
- package/dist/schemas/secrets.d.ts.map +1 -1
- package/dist/schemas/secrets.js +12 -5
- package/dist/schemas/secrets.js.map +1 -1
- package/dist/schemas/settings-history.d.ts +1 -1
- package/dist/schemas/settings-history.d.ts.map +1 -1
- package/dist/schemas/settings-history.js +5 -4
- package/dist/schemas/settings-history.js.map +1 -1
- package/dist/schemas/settings-savings.d.ts +58 -0
- package/dist/schemas/settings-savings.d.ts.map +1 -1
- package/dist/schemas/settings-savings.js +22 -0
- package/dist/schemas/settings-savings.js.map +1 -1
- package/dist/schemas/settings.d.ts +20 -42
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +24 -7
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/stack-grants.d.ts +60 -0
- package/dist/schemas/stack-grants.d.ts.map +1 -0
- package/dist/schemas/stack-grants.js +33 -0
- package/dist/schemas/stack-grants.js.map +1 -0
- package/dist/schemas/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/schemas/watch-sources.d.ts +72 -0
- package/dist/schemas/watch-sources.d.ts.map +1 -0
- package/dist/schemas/watch-sources.js +88 -0
- package/dist/schemas/watch-sources.js.map +1 -0
- package/dist/schemas/workspace/workspace-search.d.ts.map +1 -1
- package/dist/schemas/workspace/workspace-search.js +1 -1
- package/dist/schemas/workspace/workspace-search.js.map +1 -1
- package/dist/schemas/wsl-memory.d.ts +76 -0
- package/dist/schemas/wsl-memory.d.ts.map +1 -0
- package/dist/schemas/wsl-memory.js +36 -0
- package/dist/schemas/wsl-memory.js.map +1 -0
- package/dist/state/auth-state.d.ts.map +1 -1
- package/dist/state/auth-state.js +3 -0
- package/dist/state/auth-state.js.map +1 -1
- package/dist/state/definition.d.ts +16 -8
- 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 +9 -4
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +9 -4
- 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/briefs/agent-ask.ts +23 -0
- package/src/{chores/extension-update.ts → briefs/extension-update-brief.ts} +3 -2
- package/src/chores/digest.ts +1 -0
- package/src/chores/index.ts +13 -2
- package/src/chores/prompt.ts +3 -18
- package/src/chores/stack.ts +1 -0
- package/src/chores/verdict.ts +1 -0
- package/src/chores/workspace-scope.ts +3 -8
- package/src/contracts/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 +31 -2
- package/src/contracts/ci.contract.ts +119 -37
- package/src/contracts/device-ci-runners.contract.ts +81 -0
- package/src/contracts/device-stacks.contract.ts +97 -0
- package/src/contracts/extensions.contract.ts +12 -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 +39 -0
- package/src/contracts/settings.contract.ts +26 -0
- package/src/contracts/stack-grants.contract.ts +51 -0
- package/src/contracts/system.contract.ts +36 -62
- package/src/contracts/workspace.contract.ts +0 -22
- package/src/events/agent-events.ts +3 -2
- package/src/events/agent-words.test.ts +19 -1
- package/src/events/agent-words.ts +36 -2
- package/src/events/child-news.test.ts +91 -0
- package/src/events/child-news.ts +269 -0
- package/src/events/prompt-origins.ts +35 -0
- package/src/events/refusal-incidents.ts +60 -19
- package/src/events/requests.ts +18 -0
- package/src/events/transcript.ts +10 -1
- 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 +6 -6
- package/src/models/agent-catalog.test.ts +7 -4
- package/src/models/agent-catalog.ts +3 -2
- package/src/models/agent-lanes.ts +8 -1
- package/src/models/agent-runtimes.ts +7 -6
- package/src/models/agent-standing.ts +13 -0
- package/src/models/model-roles.test.ts +61 -4
- package/src/models/model-roles.ts +153 -49
- package/src/models/model-setups.ts +49 -26
- 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/approvals-execution.ts +11 -6
- package/src/policy/batch-runs.ts +2 -2
- 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/message-limits.ts +8 -4
- package/src/policy/org-locks.ts +1 -0
- 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/shell/workspace-root-exclude.ts +11 -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 +32 -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/doors/webext-links.ts +3 -1
- 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/extension-protocol.ts +469 -2
- package/src/protocol/raw/raw-json-routes.ts +45 -1
- package/src/protocol/raw/raw-routes.ts +133 -40
- package/src/protocol/route-meta.ts +4 -1
- package/src/schemas/account-routes.ts +126 -0
- package/src/schemas/activity.ts +6 -4
- package/src/schemas/agent-background.ts +104 -0
- package/src/schemas/agent-land.ts +21 -2
- package/src/schemas/agent.test.ts +3 -0
- package/src/schemas/agent.ts +10 -4
- package/src/schemas/agents.ts +26 -65
- package/src/schemas/auto-approve.ts +31 -0
- package/src/schemas/automations.ts +51 -42
- 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-deployments.ts +26 -0
- package/src/schemas/ci-fleet.ts +180 -0
- package/src/schemas/ci.ts +185 -45
- package/src/schemas/command-run.ts +44 -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 +28 -34
- package/src/schemas/device-stacks.ts +162 -3
- package/src/schemas/device-swaps.test.ts +1 -1
- package/src/schemas/devices.ts +31 -2
- package/src/schemas/egress-private.test.ts +1 -1
- package/src/schemas/environment.ts +4 -0
- package/src/schemas/extension-updates.ts +35 -7
- package/src/schemas/git/git.ts +14 -14
- package/src/schemas/host-power.test.ts +53 -0
- package/src/schemas/host-power.ts +173 -0
- package/src/schemas/hosts.test.ts +32 -0
- package/src/schemas/hosts.ts +86 -2
- package/src/schemas/intentic-os.ts +2 -2
- package/src/schemas/issues.ts +43 -86
- 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/maintenance.ts +4 -3
- package/src/schemas/members.ts +4 -16
- package/src/schemas/metrics.test.ts +9 -1
- package/src/schemas/metrics.ts +43 -0
- package/src/schemas/need-kinds.ts +13 -0
- package/src/schemas/needs.ts +118 -14
- package/src/schemas/offload.ts +37 -3
- package/src/schemas/outward-action.ts +47 -0
- package/src/schemas/ports.ts +5 -0
- package/src/schemas/providers/plan-limits.ts +1 -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/secrets.ts +23 -5
- package/src/schemas/settings-history.ts +10 -5
- package/src/schemas/settings-savings.ts +29 -0
- package/src/schemas/settings.test.ts +24 -23
- package/src/schemas/settings.ts +55 -22
- package/src/schemas/stack-grants.ts +59 -0
- 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/schemas/version-seam.test.ts +4 -1
- package/src/schemas/watch-sources.ts +127 -0
- package/src/schemas/workspace/workspace-search.ts +5 -2
- package/src/schemas/wsl-memory.ts +59 -0
- package/src/state/auth-state.ts +10 -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 +21 -21
- package/src/sync/workspace-sync-ignores.test.ts +48 -0
- package/src/sync/workspace-sync-ignores.ts +143 -0
- package/src/text/embed.ts +2 -2
- package/src/text/pages.ts +34 -7
- package/src/text/transcript-fold.test.ts +40 -2
- package/src/text/transcript-fold.ts +2 -2
- package/dist/chores/extension-update.d.ts.map +0 -1
- package/dist/chores/extension-update.js.map +0 -1
- package/dist/contracts/chores.contract.d.ts +0 -213
- package/dist/contracts/chores.contract.d.ts.map +0 -1
- package/dist/contracts/chores.contract.js +0 -32
- package/dist/contracts/chores.contract.js.map +0 -1
- package/dist/contracts/issues.contract.d.ts +0 -95
- package/dist/contracts/issues.contract.d.ts.map +0 -1
- package/dist/contracts/issues.contract.js +0 -50
- package/dist/contracts/issues.contract.js.map +0 -1
- package/src/chores/chores.test.ts +0 -24
- package/src/chores/digest.test.ts +0 -27
- package/src/chores/probes.integration.test.ts +0 -494
- package/src/chores/stack.test.ts +0 -140
- package/src/chores/verdict.test.ts +0 -761
- package/src/contracts/chores.contract.ts +0 -39
- package/src/contracts/issues.contract.ts +0 -53
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { REFERENCE_DIR, STATE_DIR } from "@intentic/constants";
|
|
2
|
+
|
|
3
|
+
// FILE SYNC'S IGNORE LIST, shared by its two ends (2026-11-24). The device agent creates every Mutagen session with it
|
|
4
|
+
// (machine sync/ssh.ts), and the sandbox daemon reads it to decide which of its watcher's changes are worth telling a
|
|
5
|
+
// device about (sandbox hosts/sync/sync-changes.ts): one list, so the signal cannot drift from what the session carries.
|
|
6
|
+
|
|
7
|
+
// Mutagen's two-way ignore set: also excludes secrets and the daemon's `.intentic` state, never the search-ignore
|
|
8
|
+
// set's job. `.git` matches every level, since git state travels by git's own protocol (git-bridge.ts), not file sync.
|
|
9
|
+
// Every name here is frozen into a session at its creation, so changing the list replaces every session this agent
|
|
10
|
+
// holds, each from a settled state (mutagen.ts readyForReplacement). A project folder's share of it (PROJECT_IGNORES) is
|
|
11
|
+
// also `project-ignores.fixture.json`, which the desktop app's NOT_SYNCED is held to: change them together.
|
|
12
|
+
// The folders Cargo fills inside a profile folder that no run starts from.
|
|
13
|
+
const CARGO_PROFILE_CACHES = ["incremental", ".fingerprint", "deps", "build", "examples"] as const;
|
|
14
|
+
|
|
15
|
+
export const IGNORES: readonly string[] = [
|
|
16
|
+
"node_modules",
|
|
17
|
+
"dist",
|
|
18
|
+
".turbo",
|
|
19
|
+
".cache",
|
|
20
|
+
".next",
|
|
21
|
+
".angular",
|
|
22
|
+
// Astro's build cache; `.astro/dev.json` holds machine-local paths, so both sides regenerating it is a
|
|
23
|
+
// create-vs-create conflict that never settles.
|
|
24
|
+
".astro",
|
|
25
|
+
// What the daemon's own walk already leaves out (@intentic/workspace-ignore IGNORED_DIRS): Python environments and
|
|
26
|
+
// bytecode, Gradle's caches and scratch space. An environment holds interpreter paths and compiled wheels for the
|
|
27
|
+
// machine that built it, so carried across it is broken on the other side, and each side rebuilding its own is the
|
|
28
|
+
// same create-vs-create standoff as `.astro`.
|
|
29
|
+
".venv",
|
|
30
|
+
"venv",
|
|
31
|
+
"__pycache__",
|
|
32
|
+
".gradle",
|
|
33
|
+
".tmp",
|
|
34
|
+
".env",
|
|
35
|
+
// The machine-local env files every framework's loader reads over `.env` (Vite, Next, CRA): secrets by convention,
|
|
36
|
+
// and per machine by name. `.env.example` and the other committed variants still sync.
|
|
37
|
+
".env.local",
|
|
38
|
+
".env.*.local",
|
|
39
|
+
".secrets.json",
|
|
40
|
+
"claude.json",
|
|
41
|
+
// No `capabilities.json` entry: its credentials live in the vault now, and the daemon's own copy sits under
|
|
42
|
+
// STATE_DIR already. Keeping it would only exclude a same-named file of the user's.
|
|
43
|
+
// ANCHORED TO THE ROOT, unlike `.git` below, because two different directories share this name: the WORKSPACE's
|
|
44
|
+
// state dir (the sandbox's own, carried one-way by the `-state` session) and a REPOSITORY's own `.intentic/`,
|
|
45
|
+
// which is committed content — this repo keeps its `checks.json` there. Depth-matched, the one pattern swallowed
|
|
46
|
+
// both, and since the bridge moves git state while file sync moves the files, a tracked file that never arrives
|
|
47
|
+
// reads as deleted in the clone for good: `intentic/.intentic/checks.json` sat in VS Code's Source Control as a
|
|
48
|
+
// phantom `D` that no amount of syncing could clear.
|
|
49
|
+
`/${STATE_DIR}`,
|
|
50
|
+
// The reference shelf, anchored for the same reason the state dir above is: the TOP-LEVEL `refs/` is consultation
|
|
51
|
+
// material — already excluded from workspace views, search and dependency setup by this same constant — while a
|
|
52
|
+
// repository's own `refs/` at any depth is ordinary content. Left in, it is the whole cost of syncing: measured on
|
|
53
|
+
// a dogfooding machine as 215,555 of the workspace's 222,000 entries, an 18 GB upload, and a full rescan of all of
|
|
54
|
+
// it every poll on an endpoint that has no file watcher.
|
|
55
|
+
`/${REFERENCE_DIR}`,
|
|
56
|
+
".git",
|
|
57
|
+
".pnpm-store",
|
|
58
|
+
// The image build's staging tree, for the same reason as `.astro` above and measured on a dogfooding machine:
|
|
59
|
+
// both sides write their own `package.json`/`pnpm-lock.yaml` per extension into it, which is 98 create-vs-create
|
|
60
|
+
// conflicts that two-way-safe will never settle — and while they stand, that pairing propagates nothing at all.
|
|
61
|
+
".image-out",
|
|
62
|
+
// A REPOSITORY's own `.intentic/` travels (its `checks.json` is committed), but these two folders under it are the
|
|
63
|
+
// machine's own: `.intentic/local` (caches, logs, runtime and temporary files) and the older `.intentic/cache`.
|
|
64
|
+
// Each end writes its own, so carried across they are create-vs-create conflicts that two-way-safe will never
|
|
65
|
+
// settle, measured on a dogfooding machine as a stuck `index.db-shm` of a search index that has since been removed.
|
|
66
|
+
// `**/` is Mutagen's (doublestar) spelling for "at any depth, the root included"; a path without it is anchored.
|
|
67
|
+
`**/${STATE_DIR}/cache`,
|
|
68
|
+
`**/${STATE_DIR}/local`,
|
|
69
|
+
// Cargo's build output: a profile folder under `target/`, natively or under a target triple
|
|
70
|
+
// (`target/x86_64-pc-windows-msvc/release`). Measured on rog, 2026-10-26: three crates' `target/` were 16 of the
|
|
71
|
+
// workspace's 18 GB and 31,000 of its 44,000 entries, SHA-1 hashed and shipped both ways on every `cargo build`
|
|
72
|
+
// either side ran, and rescanned every poll. Matched by its profile folders rather than a bare `target`, which is
|
|
73
|
+
// also an ordinary folder name in source trees; what is left of `target/` (CACHEDIR.TAG, .rustc_info.json) is bytes.
|
|
74
|
+
"**/target/debug",
|
|
75
|
+
"**/target/release",
|
|
76
|
+
"**/target/*/debug",
|
|
77
|
+
"**/target/*/release",
|
|
78
|
+
// Every other profile's (a custom `--profile fast` lands in `target/fast`) caches, natively and under a triple:
|
|
79
|
+
// the incremental state, fingerprints, compiled dependencies, build-script output and examples. Measured on the
|
|
80
|
+
// owner's shinobi workspace, 2026-11: `target/fast` alone was 1.2-1.9 GB of these, carried both ways on every
|
|
81
|
+
// build. The profile folder's own top level (the finished binary, its `.d` file) still travels, so a build made on
|
|
82
|
+
// one side can be started by hand on the other; a device run never needs it, since `devices run` pushes its
|
|
83
|
+
// artifact over the device link (sandbox bin/devices).
|
|
84
|
+
...CARGO_PROFILE_CACHES.flatMap((cache) => [`**/target/*/${cache}`, `**/target/*/*/${cache}`]),
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
// WHETHER THE WORKSPACE SESSION LEAVES A PATH OUT, by IGNORES, for a path relative to the workspace root. A path is left
|
|
88
|
+
// out when it or any folder above it matches, since Mutagen never looks inside an ignored folder. Only the spellings
|
|
89
|
+
// IGNORES uses are understood: a pattern without `/` matches a single name at any depth, with `*` inside one name; a
|
|
90
|
+
// leading `/` anchors it to the root; `**` is any number of folders, the root included. Any other pattern matches
|
|
91
|
+
// nothing. That errs on one side only: a change this reads as carried costs a device one sync cycle it did not need,
|
|
92
|
+
// while a change read as ignored would wait for the session's backstop scan.
|
|
93
|
+
type Glob = readonly string[];
|
|
94
|
+
|
|
95
|
+
const UNDERSTOOD = /^[^?[\]!\\{}]+$/;
|
|
96
|
+
|
|
97
|
+
const globOf = (pattern: string): { readonly anywhere: boolean; readonly segments: Glob } | undefined => {
|
|
98
|
+
if (!UNDERSTOOD.test(pattern)) {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
if (pattern.startsWith("/")) {
|
|
102
|
+
return { anywhere: false, segments: pattern.slice(1).split("/") };
|
|
103
|
+
}
|
|
104
|
+
return pattern.includes("/") ? { anywhere: false, segments: pattern.split("/") } : { anywhere: true, segments: [pattern] };
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const nameMatches = (glob: string, name: string): boolean => {
|
|
108
|
+
if (!glob.includes("*")) {
|
|
109
|
+
return glob === name;
|
|
110
|
+
}
|
|
111
|
+
const parts = glob.split("*").map((part) => part.replace(/[.+^${}()|\\]/g, "\\$&"));
|
|
112
|
+
return new RegExp(`^${parts.join("[^/]*")}$`).test(name);
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const segmentsMatch = (glob: Glob, path: readonly string[]): boolean => {
|
|
116
|
+
const [head, ...rest] = glob;
|
|
117
|
+
if (head === undefined) {
|
|
118
|
+
return path.length === 0;
|
|
119
|
+
}
|
|
120
|
+
if (head === "**") {
|
|
121
|
+
// zero folders, or one more and try again
|
|
122
|
+
return segmentsMatch(rest, path) || (path.length > 0 && segmentsMatch(glob, path.slice(1)));
|
|
123
|
+
}
|
|
124
|
+
const [name, ...tail] = path;
|
|
125
|
+
return name !== undefined && nameMatches(head, name) && segmentsMatch(rest, tail);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const syncIgnoreMatcher = (patterns: readonly string[]): ((relPath: string) => boolean) => {
|
|
129
|
+
const globs = patterns.flatMap((pattern) => globOf(pattern) ?? []);
|
|
130
|
+
const named = globs.filter((glob) => glob.anywhere).map((glob) => glob.segments[0] ?? "");
|
|
131
|
+
const rooted = globs.filter((glob) => !glob.anywhere).map((glob) => glob.segments);
|
|
132
|
+
return (relPath: string): boolean => {
|
|
133
|
+
const segments = relPath.split(/[\\/]/).filter((segment) => segment !== "" && segment !== ".");
|
|
134
|
+
if (segments.some((segment) => named.some((glob) => nameMatches(glob, segment)))) {
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
// The path itself and every folder above it, each against every rooted pattern.
|
|
138
|
+
return segments.some((_, index) => rooted.some((glob) => segmentsMatch(glob, segments.slice(0, index + 1))));
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// The workspace session's own rules: what the sandbox's change signal leaves out.
|
|
143
|
+
export const workspaceSyncIgnores: (relPath: string) => boolean = syncIgnoreMatcher(IGNORES);
|
package/src/text/embed.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { escapeHtml } from "@intentic/base/escape";
|
|
2
2
|
import { FetchJsonError, fetchJson } from "@intentic/base/fetch-json";
|
|
3
3
|
|
|
4
|
-
// The zod-free half of an embed's wire and look, shared by the two embeds (webchat-widget, issue-sdk) and the
|
|
5
|
-
//
|
|
4
|
+
// The zod-free half of an embed's wire and look, shared by the two embeds (webchat-widget, issue-sdk) and the doors
|
|
5
|
+
// behind them (since 2026-11-26 their extensions' public routes, the visitor-chat and issues extensions'). Nothing imported but base's dependency-free subpaths: this bundles into someone else's page, and
|
|
6
6
|
// the contract's barrel would drag in zod (measured at 1.1 MB for two strings).
|
|
7
7
|
|
|
8
8
|
// Where an embed talks to: the daemon it came from, and the automation it is the public face of.
|
package/src/text/pages.ts
CHANGED
|
@@ -204,8 +204,8 @@ export const PAGE_LAYOUT_GUIDE =
|
|
|
204
204
|
`borderless, on the conversation's own background: leave html and body without a background, use a fluid width, and ` +
|
|
205
205
|
`add no outer card, border or page title of your own, since the page is part of your reply. Let the content set the ` +
|
|
206
206
|
`height (no 100vh on html or body): the frame grows to fit. Give charts fixed pixel heights. Size anything you draw ` +
|
|
207
|
-
`from its container's width
|
|
208
|
-
`
|
|
207
|
+
`from its container's width, and draw again when that width changes (a ResizeObserver on the container): the column ` +
|
|
208
|
+
`narrows on a phone and when a side panel opens.`;
|
|
209
209
|
|
|
210
210
|
// The base every page starts from: the theme's colours and fonts (native controls in the accent too), no margin, no
|
|
211
211
|
// scrollbar (the frame fits the page).
|
|
@@ -221,6 +221,29 @@ const baseCss = (canvas: boolean): string =>
|
|
|
221
221
|
export const pageThemeCss = (theme: PageTheme, canvas = false): string =>
|
|
222
222
|
`:root{color-scheme:${theme.appearance};${PAGE_THEME_VARIABLES.map((name) => `${name}:${theme.variables[name].replace(/[;{}<>]/g, ``)};`).join(``)}}${baseCss(canvas)}`;
|
|
223
223
|
|
|
224
|
+
// A script that scrolls something into view, or focuses something, moves every scroller around it, and a sandboxed
|
|
225
|
+
// frame's edge does not stop it: in Chromium 156 a page calling `scrollIntoView()` or `focus()` as it loaded scrolled
|
|
226
|
+
// the chat around it by 2000px (2026-11-24), so a log that shows its newest line or a mock-up that focuses its search
|
|
227
|
+
// field took the reader away from what they were reading. Run first inside a frame, this keeps both to the page: the
|
|
228
|
+
// scrollers inside it and its own viewport move as the browser would move them (block and inline alignment, scroll
|
|
229
|
+
// margins and padding, clamped to each one's range, a fixed box leaving its viewport alone), and nothing outside it.
|
|
230
|
+
// Right after the reader's own press in the page (its transient activation) the browser's own runs instead, since then
|
|
231
|
+
// the scroll is theirs: "show me the chart" may bring the chart into the chat's view. What the browser scrolls by its
|
|
232
|
+
// own hand is out of reach here: a modal dialog focusing its first control, a form reporting a field it refuses.
|
|
233
|
+
const CONTAINED_SCROLL = `(function(){if(window.parent===window)return;
|
|
234
|
+
var E=Element.prototype,into=E.scrollIntoView,needed=E.scrollIntoViewIfNeeded;
|
|
235
|
+
function pressed(){var a=navigator.userActivation;return !!(a&&a.isActive);}
|
|
236
|
+
function px(v){return parseFloat(v)||0;}
|
|
237
|
+
function shift(a,z,lo,hi,how){var inside=a>=lo&&z<=hi;if(how==="start")return a-lo;if(how==="end")return z-hi;if(how==="center"||(how==="if-needed"&&!inside))return (a+z-lo-hi)/2;if(inside||how==="if-needed"||(a<lo&&z>hi))return 0;var big=z-a>hi-lo;return a<lo?(big?z-hi:a-lo):(big?a-lo:z-hi);}
|
|
238
|
+
function contain(el,block,inline,behavior){var g=getComputedStyle(el),r=el.getBoundingClientRect(),top=r.top-px(g.scrollMarginTop),bottom=r.bottom+px(g.scrollMarginBottom),left=r.left-px(g.scrollMarginLeft),right=r.right+px(g.scrollMarginRight),dx=0,dy=0,root=document.scrollingElement||document.documentElement,fixed=g.position==="fixed",e=el;
|
|
239
|
+
function move(c,s,at,by){var y=shift(top-dy,bottom-dy,at.top+px(s.scrollPaddingTop),at.top+c.clientHeight-px(s.scrollPaddingBottom),block),x=shift(left-dx,right-dx,at.left+px(s.scrollPaddingLeft),at.left+c.clientWidth-px(s.scrollPaddingRight),inline),n=s.direction==="rtl"?c.clientWidth-c.scrollWidth:0;y=Math.max(-c.scrollTop,Math.min(c.scrollHeight-c.clientHeight-c.scrollTop,y));x=Math.max(n-c.scrollLeft,Math.min(n+c.scrollWidth-c.clientWidth-c.scrollLeft,x));if(x||y)by({left:x,top:y,behavior:behavior});dx+=x;dy+=y;}
|
|
240
|
+
while(!fixed){e=e.parentElement||(e.getRootNode&&e.getRootNode().host);if(!e||e===root||e===document.documentElement)break;var s=getComputedStyle(e),h=getComputedStyle(document.documentElement);if(!(e===document.body&&h.overflowX+h.overflowY==="visiblevisible")&&/auto|scroll|hidden/.test(s.overflowX+s.overflowY)){var b=e.getBoundingClientRect();move(e,s,{top:b.top+e.clientTop,left:b.left+e.clientLeft},e.scrollBy.bind(e));}fixed=s.position==="fixed";}
|
|
241
|
+
if(!fixed)move(root,getComputedStyle(root),{top:0,left:0},window.scrollBy.bind(window));}
|
|
242
|
+
E.scrollIntoView=function(v){if(pressed())return into.apply(this,arguments);var o=v!==null&&typeof v==="object"?v:{block:v===false?"end":"start"};contain(this,o.block||"start",o.inline||"nearest",o.behavior||"auto");};
|
|
243
|
+
if(needed)E.scrollIntoViewIfNeeded=function(c){if(pressed())return needed.apply(this,arguments);var how=c===false?"nearest":"if-needed";contain(this,how,how,"auto");};
|
|
244
|
+
function guard(P){var f=P&&P.focus;if(!f)return;P.focus=function(o){if(pressed())return f.apply(this,arguments);var p={},k;if(o&&typeof o==="object")for(k in o)p[k]=o[k];var wants=!p.preventScroll;p.preventScroll=true;f.call(this,p);var at=this.getRootNode&&this.getRootNode();if(wants&&at&&at.activeElement===this)contain(this,"if-needed","if-needed","auto");};}
|
|
245
|
+
guard(window.HTMLElement&&HTMLElement.prototype);guard(window.SVGElement&&SVGElement.prototype);})();`;
|
|
246
|
+
|
|
224
247
|
// The page's half of the bridge, run first in its head: the theme it starts in and every change the chat posts, the
|
|
225
248
|
// height it needs whenever that changes, which of its pictures the pointer rests on or presses (one already drawn at its
|
|
226
249
|
// own size, or inside something the page made pressable, is never offered), and `window.intentic` for the page's own
|
|
@@ -265,7 +288,7 @@ export const pageHead = (theme: PageTheme, options: { readonly canvas?: boolean
|
|
|
265
288
|
return (
|
|
266
289
|
`<style id="intentic-theme">${pageThemeCss(theme, canvas)}</style>` +
|
|
267
290
|
// The bootstrap, holding the theme it starts from as `intentic.theme`; `<` escaped so the JSON cannot end the script.
|
|
268
|
-
`<script>${bootstrapScript(canvas).replace(`theme=null`, `theme=${JSON.stringify(theme).replace(/</g, `\\u003c`)}`)}</script>`
|
|
291
|
+
`<script>${CONTAINED_SCROLL}${bootstrapScript(canvas).replace(`theme=null`, `theme=${JSON.stringify(theme).replace(/</g, `\\u003c`)}`)}</script>`
|
|
269
292
|
);
|
|
270
293
|
};
|
|
271
294
|
|
|
@@ -348,16 +371,20 @@ const STANDALONE_SCRIPT =
|
|
|
348
371
|
export const standalonePage = (html: string): string =>
|
|
349
372
|
intoHead(html, `<style id="intentic-page-defaults">${pageDefaultsCss()}</style><script>${STANDALONE_SCRIPT}</script>`);
|
|
350
373
|
|
|
351
|
-
// A stored page as a published conversation carries it (share-publish.ts): sealed off the network,
|
|
352
|
-
// height to the page around it, in the bridge's own
|
|
353
|
-
// it was stored with (standalonePage), which follows
|
|
374
|
+
// A stored page as a published conversation carries it (share-publish.ts): sealed off the network, its scripted
|
|
375
|
+
// scrolling kept to itself (CONTAINED_SCROLL), and saying its own height to the page around it, in the bridge's own
|
|
376
|
+
// words, so the shared transcript fits its frame. It keeps the theme it was stored with (standalonePage), which follows
|
|
377
|
+
// the reader's light or dark.
|
|
354
378
|
const SIZE_SCRIPT =
|
|
355
379
|
`(function(){if(window.parent===window)return;var h=-1;function z(){var r=document.documentElement,b=document.body,` +
|
|
356
380
|
`v=Math.ceil(Math.max(r.getBoundingClientRect().height,b?b.getBoundingClientRect().bottom:0));if(v===h||v<=0)return;h=v;` +
|
|
357
381
|
`window.parent.postMessage({jsonrpc:"2.0",method:${JSON.stringify(PAGE_BRIDGE.sizeChanged)},params:{height:v}},"*");}` +
|
|
358
382
|
`if(window.ResizeObserver)new ResizeObserver(z).observe(document.documentElement);window.addEventListener("load",z);setTimeout(z,50);})();`;
|
|
359
383
|
export const publishedPage = (stored: string): string =>
|
|
360
|
-
intoHead(
|
|
384
|
+
intoHead(
|
|
385
|
+
withoutPageMedia(stored),
|
|
386
|
+
`<meta http-equiv="Content-Security-Policy" content="${SEALED_PAGE_POLICY}"><meta name="referrer" content="no-referrer"><script>${CONTAINED_SCROLL}${SIZE_SCRIPT}</script>`,
|
|
387
|
+
);
|
|
361
388
|
|
|
362
389
|
// What an MCP server's app is shown with (agent/pages/mcp-apps.ts): the call's arguments and its result, kept inside the
|
|
363
390
|
// stored page as a data block the chat hands the app over the bridge (`tool-input`, `tool-result`) once it is ready.
|
|
@@ -1415,18 +1415,21 @@ describe("transcriptIncidents", () => {
|
|
|
1415
1415
|
{ at: 2_000, said: ORG_OFF },
|
|
1416
1416
|
],
|
|
1417
1417
|
resolved: true,
|
|
1418
|
+
wakes: [],
|
|
1418
1419
|
},
|
|
1419
1420
|
]);
|
|
1420
1421
|
});
|
|
1421
1422
|
|
|
1422
1423
|
// THE FAILURE THIS PREVENTS: the same sentence twice, a row apart, read as two problems.
|
|
1423
1424
|
it("never leaves two identical refusals side by side as two rows", () => {
|
|
1424
|
-
expect(transcriptIncidents([refusedAt(1), refusedAt(2)])).toEqual([
|
|
1425
|
+
expect(transcriptIncidents([refusedAt(1), refusedAt(2)])).toEqual([
|
|
1426
|
+
{ from: 0, to: 1, attempts: [{ at: 1, said: ORG_OFF }, { at: 2, said: ORG_OFF }], resolved: false, wakes: [] },
|
|
1427
|
+
]);
|
|
1425
1428
|
});
|
|
1426
1429
|
|
|
1427
1430
|
// A re-send still in flight is the latest word: the turn is being tried again, which the refusal under it no longer says.
|
|
1428
1431
|
it("draws a re-send in flight as the run's last row, unresolved", () => {
|
|
1429
|
-
expect(transcriptIncidents([refusedAt(1), resent()])).toEqual([{ from: 0, to: 1, attempts: [{ at: 1, said: ORG_OFF }], resolved: false }]);
|
|
1432
|
+
expect(transcriptIncidents([refusedAt(1), resent()])).toEqual([{ from: 0, to: 1, attempts: [{ at: 1, said: ORG_OFF }], resolved: false, wakes: [] }]);
|
|
1430
1433
|
});
|
|
1431
1434
|
|
|
1432
1435
|
it("leaves a lone refusal, a lone move and the rows around a run as they are", () => {
|
|
@@ -1460,6 +1463,41 @@ describe("transcriptIncidents", () => {
|
|
|
1460
1463
|
expect(transcriptIncidents([failed(undefined), failed(undefined)])).toEqual([]);
|
|
1461
1464
|
});
|
|
1462
1465
|
|
|
1466
|
+
// THE BURST THIS PREVENTS (2026-11-23): one wall while a fleet of subagents reports back, each report waking the
|
|
1467
|
+
// conversation into the same refusal, left report, refusal, report, refusal down the column: one row now.
|
|
1468
|
+
it("folds the subagent reports a wall turned away into its run, and names them", () => {
|
|
1469
|
+
const report = (title: string): TranscriptRow => ({
|
|
1470
|
+
role: "notice",
|
|
1471
|
+
text: `Subagent "${title}" failed.`,
|
|
1472
|
+
agentWords: { kind: "child", from: `sub-${title}`, title, failed: true, sent: "report" },
|
|
1473
|
+
});
|
|
1474
|
+
const rows = [userRow("go", SENT_AT, []), report("a"), refusedAt(1), report("b"), refusedAt(2), report("c"), report("d"), refusedAt(3)];
|
|
1475
|
+
expect(transcriptIncidents(rows)).toEqual([
|
|
1476
|
+
{
|
|
1477
|
+
from: 1,
|
|
1478
|
+
to: 7,
|
|
1479
|
+
attempts: [
|
|
1480
|
+
{ at: 1, said: ORG_OFF },
|
|
1481
|
+
{ at: 2, said: ORG_OFF },
|
|
1482
|
+
{ at: 3, said: ORG_OFF },
|
|
1483
|
+
],
|
|
1484
|
+
resolved: false,
|
|
1485
|
+
wakes: [1, 3, 5, 6],
|
|
1486
|
+
},
|
|
1487
|
+
]);
|
|
1488
|
+
});
|
|
1489
|
+
|
|
1490
|
+
// A wake after the run's last refusal is the attempt still in flight: the latest word, drawn as itself. One wake and
|
|
1491
|
+
// the refusal it met are two rows, as before; two wakes the one refusal turned away fold.
|
|
1492
|
+
it("leaves the wake in flight, and one wake with its refusal, as rows of their own", () => {
|
|
1493
|
+
const watch: TranscriptRow = { role: "notice", text: "The watch fired", watchWake: { outcome: "met", note: "CI", elapsed: "3m", sent: "fired" } };
|
|
1494
|
+
expect(transcriptIncidents([refusedAt(1), peer, refusedAt(2), watch])).toMatchObject([{ from: 0, to: 2, wakes: [1] }]);
|
|
1495
|
+
expect(transcriptIncidents([peer, refusedAt(1)])).toEqual([]);
|
|
1496
|
+
expect(transcriptIncidents([peer, watch, refusedAt(1)])).toMatchObject([{ from: 0, to: 2, wakes: [0, 1] }]);
|
|
1497
|
+
// Never reaches back into the run before it.
|
|
1498
|
+
expect(transcriptIncidents([refusedAt(1), refusedAt(2), peer, refusedAt(3)]).map(({ from, to }) => [from, to])).toEqual([[0, 3]]);
|
|
1499
|
+
});
|
|
1500
|
+
|
|
1463
1501
|
// A person's pick in the composer is the editor's own line, which the sandbox cannot code: the reader names it.
|
|
1464
1502
|
it("ends a run on a row the reader says resolved it", () => {
|
|
1465
1503
|
const switched: TranscriptRow = { role: "notice", text: "Switched to the radarsu@gmail.com account" };
|
|
@@ -183,7 +183,7 @@ export class TranscriptFold {
|
|
|
183
183
|
const [index, opened] = this.open();
|
|
184
184
|
const tool = cardOf(event, this.now?.());
|
|
185
185
|
const row = this.rows[index]!;
|
|
186
|
-
|
|
186
|
+
(row.tools ??= []).push(tool);
|
|
187
187
|
this.cards.set(tool.id, { tool, row: index });
|
|
188
188
|
this.claimById(tool);
|
|
189
189
|
return [...opened, { op: "tool", index, tool: structuredClone(tool) }];
|
|
@@ -518,7 +518,7 @@ export class TranscriptFold {
|
|
|
518
518
|
}
|
|
519
519
|
if (event.kind === "tool_call") {
|
|
520
520
|
const child = cardOf(event, this.now?.());
|
|
521
|
-
|
|
521
|
+
(place.tool.children ??= []).push(child);
|
|
522
522
|
this.cards.set(child.id, { tool: child, row: place.row, parent });
|
|
523
523
|
this.claimById(child);
|
|
524
524
|
return [{ op: "tool", index: place.row, tool: structuredClone(child), parent }];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension-update.d.ts","sourceRoot":"","sources":["../../src/chores/extension-update.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,WAAW;IAExB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,WAAW,yCAA0C,WAAW,KAAG,MAQ1E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension-update.js","sourceRoot":"","sources":["../../src/chores/extension-update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKzC,MAAM,iBAAiB,GACnB,uGAAuG;IACvG,wGAAwG;IACxG,4GAA4G;IAC5G,6GAA6G;IAC7G,2EAA2E,CAAC;AAahF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAe,EAAU,EAAE,CACrF,UAAU,CAAC;IACP,OAAO,EAAE,4BAA4B,KAAK,yCAAyC,GAAG,UAAU,OAAO,OAAO,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,GAAG;IAC1J,GAAG,EAAE,+LAA+L;IACpM,SAAS,EAAE,2JAA2J;IACtK,IAAI,EAAE,sJAAsJ;IAC5J,UAAU,EAAE,iBAAiB;IAC7B,IAAI,EAAE,oHAAoH,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,2DAA2D;CAC3M,CAAC,CAAC"}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
export declare const choresContract: {
|
|
2
|
-
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
-
repos: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4
|
-
repo: import("zod").ZodString;
|
|
5
|
-
probes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
6
|
-
id: import("zod").ZodEnum<{
|
|
7
|
-
audit: "audit";
|
|
8
|
-
bundle: "bundle";
|
|
9
|
-
jscpd: "jscpd";
|
|
10
|
-
knip: "knip";
|
|
11
|
-
mutation: "mutation";
|
|
12
|
-
outdated: "outdated";
|
|
13
|
-
ui: "ui";
|
|
14
|
-
}>;
|
|
15
|
-
state: import("zod").ZodEnum<{
|
|
16
|
-
failed: "failed";
|
|
17
|
-
ok: "ok";
|
|
18
|
-
unavailable: "unavailable";
|
|
19
|
-
}>;
|
|
20
|
-
ranAt: import("zod").ZodNumber;
|
|
21
|
-
tookMs: import("zod").ZodNumber;
|
|
22
|
-
facts: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
23
|
-
id: import("zod").ZodLiteral<"outdated">;
|
|
24
|
-
packages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
25
|
-
name: import("zod").ZodString;
|
|
26
|
-
current: import("zod").ZodString;
|
|
27
|
-
latest: import("zod").ZodString;
|
|
28
|
-
kind: import("zod").ZodEnum<{
|
|
29
|
-
major: "major";
|
|
30
|
-
minor: "minor";
|
|
31
|
-
patch: "patch";
|
|
32
|
-
}>;
|
|
33
|
-
section: import("zod").ZodString;
|
|
34
|
-
standalone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
-
}, import("zod/v4/core").$strip>>;
|
|
36
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
37
|
-
id: import("zod").ZodLiteral<"audit">;
|
|
38
|
-
advisories: import("zod").ZodArray<import("zod").ZodObject<{
|
|
39
|
-
name: import("zod").ZodString;
|
|
40
|
-
severity: import("zod").ZodEnum<{
|
|
41
|
-
critical: "critical";
|
|
42
|
-
high: "high";
|
|
43
|
-
info: "info";
|
|
44
|
-
low: "low";
|
|
45
|
-
moderate: "moderate";
|
|
46
|
-
}>;
|
|
47
|
-
title: import("zod").ZodString;
|
|
48
|
-
patched: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
-
dev: import("zod").ZodBoolean;
|
|
50
|
-
standalone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
-
}, import("zod/v4/core").$strip>>;
|
|
52
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
53
|
-
id: import("zod").ZodLiteral<"knip">;
|
|
54
|
-
deadCode: import("zod").ZodObject<{
|
|
55
|
-
files: import("zod").ZodNumber;
|
|
56
|
-
exports: import("zod").ZodNumber;
|
|
57
|
-
types: import("zod").ZodNumber;
|
|
58
|
-
dependencies: import("zod").ZodNumber;
|
|
59
|
-
devDependencies: import("zod").ZodNumber;
|
|
60
|
-
sample: import("zod").ZodArray<import("zod").ZodString>;
|
|
61
|
-
}, import("zod/v4/core").$strip>;
|
|
62
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
63
|
-
id: import("zod").ZodLiteral<"jscpd">;
|
|
64
|
-
duplication: import("zod").ZodObject<{
|
|
65
|
-
percentage: import("zod").ZodNumber;
|
|
66
|
-
clones: import("zod").ZodNumber;
|
|
67
|
-
top: import("zod").ZodArray<import("zod").ZodObject<{
|
|
68
|
-
lines: import("zod").ZodNumber;
|
|
69
|
-
first: import("zod").ZodString;
|
|
70
|
-
second: import("zod").ZodString;
|
|
71
|
-
}, import("zod/v4/core").$strip>>;
|
|
72
|
-
}, import("zod/v4/core").$strip>;
|
|
73
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
74
|
-
id: import("zod").ZodLiteral<"ui">;
|
|
75
|
-
scan: import("zod").ZodObject<{
|
|
76
|
-
components: import("zod").ZodArray<import("zod").ZodString>;
|
|
77
|
-
bypasses: import("zod").ZodArray<import("zod").ZodObject<{
|
|
78
|
-
path: import("zod").ZodString;
|
|
79
|
-
count: import("zod").ZodNumber;
|
|
80
|
-
}, import("zod/v4/core").$strip>>;
|
|
81
|
-
idioms: import("zod").ZodArray<import("zod").ZodObject<{
|
|
82
|
-
id: import("zod").ZodString;
|
|
83
|
-
files: import("zod").ZodArray<import("zod").ZodString>;
|
|
84
|
-
}, import("zod/v4/core").$strip>>;
|
|
85
|
-
}, import("zod/v4/core").$strip>;
|
|
86
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
87
|
-
id: import("zod").ZodLiteral<"bundle">;
|
|
88
|
-
bundle: import("zod").ZodObject<{
|
|
89
|
-
dir: import("zod").ZodString;
|
|
90
|
-
totalBytes: import("zod").ZodNumber;
|
|
91
|
-
totalGzip: import("zod").ZodNumber;
|
|
92
|
-
assets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
93
|
-
path: import("zod").ZodString;
|
|
94
|
-
bytes: import("zod").ZodNumber;
|
|
95
|
-
gzip: import("zod").ZodNumber;
|
|
96
|
-
}, import("zod/v4/core").$strip>>;
|
|
97
|
-
}, import("zod/v4/core").$strip>;
|
|
98
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
99
|
-
id: import("zod").ZodLiteral<"mutation">;
|
|
100
|
-
mutation: import("zod").ZodObject<{
|
|
101
|
-
score: import("zod").ZodNumber;
|
|
102
|
-
killed: import("zod").ZodNumber;
|
|
103
|
-
survived: import("zod").ZodNumber;
|
|
104
|
-
inconclusive: import("zod").ZodNumber;
|
|
105
|
-
survivors: import("zod").ZodArray<import("zod").ZodObject<{
|
|
106
|
-
file: import("zod").ZodString;
|
|
107
|
-
line: import("zod").ZodNumber;
|
|
108
|
-
mutator: import("zod").ZodString;
|
|
109
|
-
replacement: import("zod").ZodString;
|
|
110
|
-
}, import("zod/v4/core").$strip>>;
|
|
111
|
-
}, import("zod/v4/core").$strip>;
|
|
112
|
-
}, import("zod/v4/core").$strip>], "id">>;
|
|
113
|
-
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
114
|
-
}, import("zod/v4/core").$strip>>;
|
|
115
|
-
signals: import("zod").ZodObject<{
|
|
116
|
-
packages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
117
|
-
dir: import("zod").ZodString;
|
|
118
|
-
name: import("zod").ZodString;
|
|
119
|
-
engines: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
120
|
-
dependencies: import("zod").ZodArray<import("zod").ZodString>;
|
|
121
|
-
devDependencies: import("zod").ZodArray<import("zod").ZodString>;
|
|
122
|
-
documented: import("zod").ZodBoolean;
|
|
123
|
-
}, import("zod/v4/core").$strip>>;
|
|
124
|
-
shape: import("zod").ZodObject<{
|
|
125
|
-
docs: import("zod").ZodArray<import("zod").ZodString>;
|
|
126
|
-
dockerfiles: import("zod").ZodArray<import("zod").ZodString>;
|
|
127
|
-
ci: import("zod").ZodArray<import("zod").ZodString>;
|
|
128
|
-
lockfile: import("zod").ZodBoolean;
|
|
129
|
-
packageManifest: import("zod").ZodBoolean;
|
|
130
|
-
deps: import("zod").ZodArray<import("zod").ZodString>;
|
|
131
|
-
}, import("zod/v4/core").$strip>;
|
|
132
|
-
hotspots: import("zod").ZodArray<import("zod").ZodObject<{
|
|
133
|
-
path: import("zod").ZodString;
|
|
134
|
-
commits: import("zod").ZodNumber;
|
|
135
|
-
adds: import("zod").ZodNumber;
|
|
136
|
-
dels: import("zod").ZodNumber;
|
|
137
|
-
complexity: import("zod").ZodNumber;
|
|
138
|
-
score: import("zod").ZodNumber;
|
|
139
|
-
latestMs: import("zod").ZodNumber;
|
|
140
|
-
}, import("zod/v4/core").$strip>>;
|
|
141
|
-
keyModules: import("zod").ZodArray<import("zod").ZodObject<{
|
|
142
|
-
path: import("zod").ZodString;
|
|
143
|
-
exports: import("zod").ZodNumber;
|
|
144
|
-
}, import("zod/v4/core").$strip>>;
|
|
145
|
-
totals: import("zod").ZodObject<{
|
|
146
|
-
files: import("zod").ZodNumber;
|
|
147
|
-
symbols: import("zod").ZodNumber;
|
|
148
|
-
complexity: import("zod").ZodNumber;
|
|
149
|
-
hotspots: import("zod").ZodNumber;
|
|
150
|
-
}, import("zod/v4/core").$strip>;
|
|
151
|
-
indexed: import("zod").ZodBoolean;
|
|
152
|
-
}, import("zod/v4/core").$strip>;
|
|
153
|
-
}, import("zod/v4/core").$strip>>;
|
|
154
|
-
ledger: import("zod").ZodArray<import("zod").ZodObject<{
|
|
155
|
-
repo: import("zod").ZodString;
|
|
156
|
-
chore: import("zod").ZodString;
|
|
157
|
-
ranAt: import("zod").ZodNumber;
|
|
158
|
-
runId: import("zod").ZodString;
|
|
159
|
-
outcome: import("zod").ZodEnum<{
|
|
160
|
-
acted: "acted";
|
|
161
|
-
clean: "clean";
|
|
162
|
-
reported: "reported";
|
|
163
|
-
}>;
|
|
164
|
-
digest: import("zod").ZodString;
|
|
165
|
-
snoozedUntil: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
166
|
-
}, import("zod/v4/core").$strip>>;
|
|
167
|
-
running: import("zod").ZodArray<import("zod").ZodObject<{
|
|
168
|
-
repo: import("zod").ZodString;
|
|
169
|
-
id: import("zod").ZodEnum<{
|
|
170
|
-
audit: "audit";
|
|
171
|
-
bundle: "bundle";
|
|
172
|
-
jscpd: "jscpd";
|
|
173
|
-
knip: "knip";
|
|
174
|
-
mutation: "mutation";
|
|
175
|
-
outdated: "outdated";
|
|
176
|
-
ui: "ui";
|
|
177
|
-
}>;
|
|
178
|
-
askedAt: import("zod").ZodNumber;
|
|
179
|
-
startedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
180
|
-
}, import("zod/v4/core").$strip>>;
|
|
181
|
-
node: import("zod").ZodString;
|
|
182
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
183
|
-
probe: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
184
|
-
repo: import("zod").ZodString;
|
|
185
|
-
id: import("zod").ZodEnum<{
|
|
186
|
-
audit: "audit";
|
|
187
|
-
bundle: "bundle";
|
|
188
|
-
jscpd: "jscpd";
|
|
189
|
-
knip: "knip";
|
|
190
|
-
mutation: "mutation";
|
|
191
|
-
outdated: "outdated";
|
|
192
|
-
ui: "ui";
|
|
193
|
-
}>;
|
|
194
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
195
|
-
ok: import("zod").ZodLiteral<true>;
|
|
196
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
197
|
-
record: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
198
|
-
repo: import("zod").ZodString;
|
|
199
|
-
chore: import("zod").ZodString;
|
|
200
|
-
ranAt: import("zod").ZodNumber;
|
|
201
|
-
runId: import("zod").ZodString;
|
|
202
|
-
outcome: import("zod").ZodEnum<{
|
|
203
|
-
acted: "acted";
|
|
204
|
-
clean: "clean";
|
|
205
|
-
reported: "reported";
|
|
206
|
-
}>;
|
|
207
|
-
digest: import("zod").ZodString;
|
|
208
|
-
snoozedUntil: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
209
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
210
|
-
ok: import("zod").ZodLiteral<true>;
|
|
211
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
212
|
-
};
|
|
213
|
-
//# sourceMappingURL=chores.contract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chores.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/chores.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;IAEvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASJ,KAAK;;;;;;;;;;;;;;IAWL,MAAM;;;;;;;;;;;;;;;CAUT,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
-
import { ChoreLedgerWriteSchema, ChoreProbeRequestSchema, ChoresReportSchema } from "../schemas/maintenance.js";
|
|
3
|
-
import { OkSchema } from "../schemas/shared.js";
|
|
4
|
-
export const choresContract = {
|
|
5
|
-
list: procedure
|
|
6
|
-
.route({
|
|
7
|
-
method: "GET",
|
|
8
|
-
path: "/chores",
|
|
9
|
-
summary: "What maintenance the repos are asking for",
|
|
10
|
-
description: "Every repo's standing evidence in one read: what the last measurement found and how old it is, the cheap signals that are always current, and what has already been decided about each.",
|
|
11
|
-
})
|
|
12
|
-
.output(ChoresReportSchema),
|
|
13
|
-
probe: procedure
|
|
14
|
-
.route({
|
|
15
|
-
method: "POST",
|
|
16
|
-
path: "/chores/probe",
|
|
17
|
-
summary: "Measure one repo again now",
|
|
18
|
-
description: "Re-runs a single check without waiting for it to go stale. Answers immediately: the work happens in the background and the result turns up in the next read, because some of these sweeps outlive any sane request.",
|
|
19
|
-
})
|
|
20
|
-
.input(ChoreProbeRequestSchema)
|
|
21
|
-
.output(OkSchema),
|
|
22
|
-
record: procedure
|
|
23
|
-
.route({
|
|
24
|
-
method: "POST",
|
|
25
|
-
path: "/chores/ledger",
|
|
26
|
-
summary: "Record a verdict, or snooze one",
|
|
27
|
-
description: "Writes what somebody concluded about one repo's chore, replacing the previous verdict. A chore has one current answer, not a growing pile of times it was fine.",
|
|
28
|
-
})
|
|
29
|
-
.input(ChoreLedgerWriteSchema)
|
|
30
|
-
.output(OkSchema),
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=chores.contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chores.contract.js","sourceRoot":"","sources":["../../src/contracts/chores.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAChH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,MAAM,CAAC,MAAM,cAAc,GAAG;IAE1B,IAAI,EAAE,SAAS;SACV,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,2CAA2C;QACpD,WAAW,EACP,yLAAyL;KAChM,CAAC;SACD,MAAM,CAAC,kBAAkB,CAAC;IAC/B,KAAK,EAAE,SAAS;SACX,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACP,qNAAqN;KAC5N,CAAC;SACD,KAAK,CAAC,uBAAuB,CAAC;SAC9B,MAAM,CAAC,QAAQ,CAAC;IAErB,MAAM,EAAE,SAAS;SACZ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EACP,iKAAiK;KACxK,CAAC;SACD,KAAK,CAAC,sBAAsB,CAAC;SAC7B,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|