@intentic/sandbox-contract 1.248.0 → 1.250.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 +18 -15
- package/dist/chores/chores.d.ts.map +1 -1
- package/dist/chores/chores.js.map +1 -1
- package/dist/chores/digest.d.ts.map +1 -1
- package/dist/chores/digest.js.map +1 -1
- package/dist/chores/extension-update.d.ts.map +1 -1
- package/dist/chores/extension-update.js.map +1 -1
- package/dist/chores/fix-deps.d.ts.map +1 -1
- package/dist/chores/fix-deps.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/probes.d.ts.map +1 -1
- package/dist/chores/probes.js.map +1 -1
- package/dist/chores/prompt.d.ts.map +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 +7 -1
- package/dist/chores/verdict.d.ts.map +1 -1
- package/dist/chores/verdict.js +8 -0
- package/dist/chores/verdict.js.map +1 -1
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/accounts.contract.js.map +1 -1
- package/dist/contracts/activity.contract.d.ts +1 -0
- package/dist/contracts/activity.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.d.ts +12 -205
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +2 -1
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +228 -54
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +11 -2
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/automations.contract.d.ts +35 -17
- package/dist/contracts/automations.contract.d.ts.map +1 -1
- package/dist/contracts/automations.contract.js +10 -1
- package/dist/contracts/automations.contract.js.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts +0 -12
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.js +1 -1
- package/dist/contracts/capabilities.contract.js.map +1 -1
- package/dist/contracts/chores.contract.d.ts.map +1 -1
- package/dist/contracts/chores.contract.js.map +1 -1
- package/dist/contracts/ci.contract.d.ts +9 -0
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/endpoints.contract.d.ts.map +1 -1
- package/dist/contracts/endpoints.contract.js.map +1 -1
- package/dist/contracts/exit.contract.d.ts.map +1 -1
- package/dist/contracts/exit.contract.js +1 -1
- package/dist/contracts/exit.contract.js.map +1 -1
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.js.map +1 -1
- package/dist/contracts/git.contract.d.ts +45 -6
- package/dist/contracts/git.contract.d.ts.map +1 -1
- package/dist/contracts/git.contract.js +9 -9
- package/dist/contracts/git.contract.js.map +1 -1
- package/dist/contracts/host.contract.d.ts +2 -0
- package/dist/contracts/host.contract.d.ts.map +1 -1
- package/dist/contracts/host.contract.js.map +1 -1
- package/dist/contracts/intentic.contract.js +1 -1
- package/dist/contracts/intentic.contract.js.map +1 -1
- package/dist/contracts/logs.contract.d.ts.map +1 -1
- package/dist/contracts/logs.contract.js.map +1 -1
- package/dist/contracts/loops.contract.d.ts.map +1 -1
- package/dist/contracts/loops.contract.js.map +1 -1
- package/dist/contracts/personas.contract.d.ts +1 -0
- package/dist/contracts/personas.contract.d.ts.map +1 -1
- package/dist/contracts/personas.contract.js +1 -1
- package/dist/contracts/personas.contract.js.map +1 -1
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/providers.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +97 -171
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.js +2 -2
- package/dist/contracts/runner.contract.js.map +1 -1
- package/dist/contracts/safety.contract.d.ts.map +1 -1
- package/dist/contracts/safety.contract.js +1 -1
- package/dist/contracts/safety.contract.js.map +1 -1
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +2 -41
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.js +1 -1
- package/dist/contracts/sessions.contract.js.map +1 -1
- package/dist/contracts/settings.contract.d.ts +8 -18
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js.map +1 -1
- package/dist/contracts/share.contract.d.ts.map +1 -1
- package/dist/contracts/share.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/skills.contract.js +13 -4
- package/dist/contracts/skills.contract.js.map +1 -1
- package/dist/contracts/system.contract.d.ts +49 -73
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +12 -2
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.js.map +1 -1
- package/dist/contracts/vpn.contract.d.ts.map +1 -1
- package/dist/contracts/vpn.contract.js +1 -1
- package/dist/contracts/vpn.contract.js.map +1 -1
- package/dist/contracts/webext.contract.d.ts.map +1 -1
- package/dist/contracts/webext.contract.js.map +1 -1
- package/dist/contracts/workflows.contract.d.ts +7 -6
- package/dist/contracts/workflows.contract.d.ts.map +1 -1
- package/dist/contracts/workflows.contract.js +12 -3
- package/dist/contracts/workflows.contract.js.map +1 -1
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.js.map +1 -1
- package/dist/events/agent-events.d.ts +1237 -0
- package/dist/events/agent-events.d.ts.map +1 -0
- package/dist/events/agent-events.js +226 -0
- package/dist/events/agent-events.js.map +1 -0
- package/dist/events/cards.d.ts +404 -0
- package/dist/events/cards.d.ts.map +1 -0
- package/dist/events/cards.js +179 -0
- package/dist/events/cards.js.map +1 -0
- package/dist/events/resume.d.ts +23 -0
- package/dist/events/resume.d.ts.map +1 -0
- package/dist/events/resume.js +31 -0
- package/dist/events/resume.js.map +1 -0
- package/dist/events/system-events.d.ts +615 -0
- package/dist/events/system-events.d.ts.map +1 -0
- package/dist/events/system-events.js +64 -0
- package/dist/events/system-events.js.map +1 -0
- package/dist/events/transcript.d.ts +1755 -0
- package/dist/events/transcript.d.ts.map +1 -0
- package/dist/events/transcript.js +205 -0
- package/dist/events/transcript.js.map +1 -0
- package/dist/ids/conversation-ids.d.ts +8 -0
- package/dist/ids/conversation-ids.d.ts.map +1 -0
- package/dist/{conversation-ids.js → ids/conversation-ids.js} +13 -0
- package/dist/ids/conversation-ids.js.map +1 -0
- package/dist/ids/hostnames.d.ts.map +1 -0
- package/dist/ids/hostnames.js.map +1 -0
- package/dist/ids/session-names.d.ts.map +1 -0
- package/dist/ids/session-names.js.map +1 -0
- package/dist/ids/share-paths.d.ts.map +1 -0
- package/dist/ids/share-paths.js.map +1 -0
- package/dist/{tunnel-ids.d.ts → ids/tunnel-ids.d.ts} +1 -0
- package/dist/ids/tunnel-ids.d.ts.map +1 -0
- package/dist/{tunnel-ids.js → ids/tunnel-ids.js} +1 -0
- package/dist/ids/tunnel-ids.js.map +1 -0
- package/dist/index.d.ts +429 -450
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +54 -46
- package/dist/index.js.map +1 -1
- package/dist/{agent-catalog.d.ts → models/agent-catalog.d.ts} +2 -2
- package/dist/models/agent-catalog.d.ts.map +1 -0
- package/dist/models/agent-catalog.js.map +1 -0
- package/dist/models/agent-runtimes.d.ts.map +1 -0
- package/dist/models/agent-runtimes.js.map +1 -0
- package/dist/{fast-tier.d.ts → models/fast-tier.d.ts} +1 -1
- package/dist/models/fast-tier.d.ts.map +1 -0
- package/dist/models/fast-tier.js.map +1 -0
- package/dist/models/model-order.d.ts.map +1 -0
- package/dist/{model-order.js → models/model-order.js} +2 -0
- package/dist/models/model-order.js.map +1 -0
- package/dist/{model-pins.d.ts → models/model-pins.d.ts} +1 -1
- package/dist/models/model-pins.d.ts.map +1 -0
- package/dist/models/model-pins.js.map +1 -0
- package/dist/{model-roles.d.ts → models/model-roles.d.ts} +0 -33
- package/dist/models/model-roles.d.ts.map +1 -0
- package/dist/{model-roles.js → models/model-roles.js} +0 -35
- package/dist/models/model-roles.js.map +1 -0
- package/dist/{plan-pools.d.ts → models/plan-pools.d.ts} +1 -1
- package/dist/models/plan-pools.d.ts.map +1 -0
- package/dist/models/plan-pools.js.map +1 -0
- package/dist/models/prompt-complexity.d.ts.map +1 -0
- package/dist/models/prompt-complexity.js.map +1 -0
- package/dist/models/provider-specs.d.ts.map +1 -0
- package/dist/models/provider-specs.js.map +1 -0
- package/dist/policy/approvals-execution.d.ts.map +1 -0
- package/dist/policy/approvals-execution.js.map +1 -0
- package/dist/{batch-runs.d.ts → policy/batch-runs.d.ts} +5 -1
- package/dist/policy/batch-runs.d.ts.map +1 -0
- package/dist/{batch-runs.js → policy/batch-runs.js} +10 -7
- package/dist/policy/batch-runs.js.map +1 -0
- package/dist/policy/capability-env.d.ts.map +1 -0
- package/dist/policy/capability-env.js.map +1 -0
- package/dist/policy/capability-secrets.d.ts.map +1 -0
- package/dist/policy/capability-secrets.js.map +1 -0
- package/dist/{card-status.d.ts → policy/card-status.d.ts} +2 -2
- package/dist/policy/card-status.d.ts.map +1 -0
- package/dist/{card-status.js → policy/card-status.js} +1 -5
- package/dist/policy/card-status.js.map +1 -0
- package/dist/{command-classes.d.ts → policy/command-classes.d.ts} +6 -2
- package/dist/policy/command-classes.d.ts.map +1 -0
- package/dist/{command-classes.js → policy/command-classes.js} +48 -11
- package/dist/policy/command-classes.js.map +1 -0
- package/dist/{command-run.d.ts → policy/command-run.d.ts} +1 -1
- package/dist/policy/command-run.d.ts.map +1 -0
- package/dist/policy/command-run.js.map +1 -0
- package/dist/policy/control-scopes.d.ts +16 -0
- package/dist/policy/control-scopes.d.ts.map +1 -0
- package/dist/policy/control-scopes.js +26 -0
- package/dist/policy/control-scopes.js.map +1 -0
- package/dist/policy/credential-material.d.ts.map +1 -0
- package/dist/policy/credential-material.js.map +1 -0
- package/dist/policy/needs-action.d.ts.map +1 -0
- package/dist/policy/needs-action.js.map +1 -0
- package/dist/policy/output-fields.d.ts.map +1 -0
- package/dist/policy/output-fields.js.map +1 -0
- package/dist/policy/overlay-lint.d.ts.map +1 -0
- package/dist/policy/overlay-lint.js.map +1 -0
- package/dist/policy/owner-ticket.d.ts.map +1 -0
- package/dist/{owner-ticket.js → policy/owner-ticket.js} +1 -1
- package/dist/policy/owner-ticket.js.map +1 -0
- package/dist/{safety-policy.d.ts → policy/safety-policy.d.ts} +6 -5
- package/dist/policy/safety-policy.d.ts.map +1 -0
- package/dist/{safety-policy.js → policy/safety-policy.js} +12 -12
- package/dist/policy/safety-policy.js.map +1 -0
- package/dist/policy/search-globs.d.ts.map +1 -0
- package/dist/policy/search-globs.js.map +1 -0
- package/dist/protocol/container-requirements.d.ts +20 -0
- package/dist/protocol/container-requirements.d.ts.map +1 -0
- package/dist/protocol/container-requirements.js +23 -0
- package/dist/protocol/container-requirements.js.map +1 -0
- package/dist/{host-protocol.d.ts → protocol/host-protocol.d.ts} +1 -0
- package/dist/protocol/host-protocol.d.ts.map +1 -0
- package/dist/{host-protocol.js → protocol/host-protocol.js} +1 -0
- package/dist/protocol/host-protocol.js.map +1 -0
- package/dist/protocol/ingress-contract.d.ts.map +1 -0
- package/dist/{ingress-contract.js → protocol/ingress-contract.js} +1 -1
- package/dist/protocol/ingress-contract.js.map +1 -0
- package/dist/protocol/ingress-protocol.d.ts.map +1 -0
- package/dist/protocol/ingress-protocol.js.map +1 -0
- package/dist/protocol/listener-protocol.d.ts.map +1 -0
- package/dist/{listener-protocol.js → protocol/listener-protocol.js} +1 -1
- package/dist/protocol/listener-protocol.js.map +1 -0
- package/dist/{peer-dial.d.ts → protocol/peer-dial.d.ts} +4 -1
- package/dist/protocol/peer-dial.d.ts.map +1 -0
- package/dist/{peer-dial.js → protocol/peer-dial.js} +51 -10
- package/dist/protocol/peer-dial.js.map +1 -0
- package/dist/protocol/peer-mcp-server.d.ts.map +1 -0
- package/dist/protocol/peer-mcp-server.js.map +1 -0
- package/dist/protocol/request-id.d.ts.map +1 -0
- package/dist/protocol/request-id.js.map +1 -0
- package/dist/protocol/routes.d.ts.map +1 -0
- package/dist/protocol/routes.js.map +1 -0
- package/dist/{runner-protocol.d.ts → protocol/runner-protocol.d.ts} +1 -0
- package/dist/protocol/runner-protocol.d.ts.map +1 -0
- package/dist/{runner-protocol.js → protocol/runner-protocol.js} +2 -1
- package/dist/protocol/runner-protocol.js.map +1 -0
- package/dist/protocol/sse.d.ts.map +1 -0
- package/dist/protocol/sse.js.map +1 -0
- package/dist/{terminal-protocol.d.ts → protocol/terminal-protocol.d.ts} +1 -3
- package/dist/protocol/terminal-protocol.d.ts.map +1 -0
- package/dist/protocol/terminal-protocol.js.map +1 -0
- package/dist/protocol/webext-links.d.ts.map +1 -0
- package/dist/protocol/webext-links.js.map +1 -0
- package/dist/{webext-protocol.d.ts → protocol/webext-protocol.d.ts} +1 -0
- package/dist/protocol/webext-protocol.d.ts.map +1 -0
- package/dist/{webext-protocol.js → protocol/webext-protocol.js} +1 -0
- package/dist/protocol/webext-protocol.js.map +1 -0
- package/dist/schemas/activity.d.ts +2 -0
- package/dist/schemas/activity.d.ts.map +1 -1
- package/dist/schemas/activity.js +4 -0
- package/dist/schemas/activity.js.map +1 -1
- package/dist/schemas/agent.d.ts +16 -4
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +21 -4
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents.d.ts +17 -4
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +15 -4
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/approvals.d.ts.map +1 -1
- package/dist/schemas/approvals.js.map +1 -1
- package/dist/schemas/automations.d.ts +54 -28
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +26 -8
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +0 -8
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +0 -4
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/ci.d.ts +10 -0
- package/dist/schemas/ci.d.ts.map +1 -1
- package/dist/schemas/ci.js +9 -1
- package/dist/schemas/ci.js.map +1 -1
- package/dist/schemas/codebase-health.d.ts.map +1 -1
- package/dist/schemas/codebase-health.js.map +1 -1
- package/dist/schemas/devices.d.ts +92 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +12 -1
- package/dist/schemas/devices.js.map +1 -1
- package/dist/schemas/engines.d.ts.map +1 -1
- package/dist/schemas/engines.js.map +1 -1
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js.map +1 -1
- package/dist/schemas/exit.d.ts.map +1 -1
- package/dist/schemas/exit.js.map +1 -1
- package/dist/schemas/extension-updates.d.ts.map +1 -1
- package/dist/schemas/extension-updates.js.map +1 -1
- package/dist/schemas/git-history.d.ts.map +1 -1
- package/dist/schemas/git-history.js.map +1 -1
- package/dist/schemas/git.d.ts +80 -16
- package/dist/schemas/git.d.ts.map +1 -1
- package/dist/schemas/git.js +37 -25
- package/dist/schemas/git.js.map +1 -1
- package/dist/schemas/history.d.ts.map +1 -1
- package/dist/schemas/history.js.map +1 -1
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/inventory.d.ts.map +1 -1
- package/dist/schemas/inventory.js.map +1 -1
- package/dist/schemas/issues.d.ts +0 -1
- package/dist/schemas/issues.d.ts.map +1 -1
- package/dist/schemas/issues.js +0 -1
- package/dist/schemas/issues.js.map +1 -1
- package/dist/schemas/logs.d.ts.map +1 -1
- package/dist/schemas/logs.js.map +1 -1
- package/dist/schemas/loops.d.ts.map +1 -1
- package/dist/schemas/loops.js +1 -1
- package/dist/schemas/loops.js.map +1 -1
- package/dist/schemas/maintenance.d.ts.map +1 -1
- package/dist/schemas/maintenance.js.map +1 -1
- package/dist/schemas/marketplace.d.ts +0 -4
- package/dist/schemas/marketplace.d.ts.map +1 -1
- package/dist/schemas/panels.d.ts.map +1 -1
- package/dist/schemas/panels.js.map +1 -1
- package/dist/schemas/personas.d.ts +2 -1
- package/dist/schemas/personas.d.ts.map +1 -1
- package/dist/schemas/personas.js +6 -2
- package/dist/schemas/personas.js.map +1 -1
- package/dist/schemas/plan-limits.d.ts +2 -4
- package/dist/schemas/plan-limits.d.ts.map +1 -1
- package/dist/schemas/plan-limits.js +5 -8
- package/dist/schemas/plan-limits.js.map +1 -1
- package/dist/schemas/ports.d.ts.map +1 -1
- package/dist/schemas/ports.js.map +1 -1
- package/dist/schemas/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/provider-oauth.js.map +1 -1
- package/dist/schemas/provider-subscriptions.d.ts +1 -1
- package/dist/schemas/provider-subscriptions.d.ts.map +1 -1
- package/dist/schemas/provider-subscriptions.js +1 -1
- package/dist/schemas/provider-subscriptions.js.map +1 -1
- package/dist/schemas/public.d.ts.map +1 -1
- package/dist/schemas/public.js.map +1 -1
- package/dist/schemas/push.d.ts.map +1 -1
- package/dist/schemas/push.js.map +1 -1
- package/dist/schemas/secrets.d.ts.map +1 -1
- package/dist/schemas/secrets.js.map +1 -1
- package/dist/schemas/settings.d.ts +11 -9
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +22 -7
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/share.d.ts.map +1 -1
- package/dist/schemas/share.js.map +1 -1
- package/dist/schemas/shared.d.ts +4 -0
- package/dist/schemas/shared.d.ts.map +1 -1
- package/dist/schemas/shared.js +3 -0
- package/dist/schemas/shared.js.map +1 -1
- package/dist/schemas/system.d.ts +6 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +10 -0
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/schemas/usage.d.ts.map +1 -1
- package/dist/schemas/usage.js.map +1 -1
- package/dist/schemas/vpn.d.ts.map +1 -1
- package/dist/schemas/vpn.js.map +1 -1
- package/dist/schemas/webext.d.ts.map +1 -1
- package/dist/schemas/webext.js.map +1 -1
- package/dist/schemas/workflows.d.ts +66 -9
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/schemas/workflows.js +6 -5
- package/dist/schemas/workflows.js.map +1 -1
- package/dist/schemas/workspace-repos.d.ts.map +1 -1
- package/dist/schemas/workspace-repos.js.map +1 -1
- package/dist/schemas/workspace-search.d.ts.map +1 -1
- package/dist/schemas/workspace-search.js.map +1 -1
- package/dist/schemas/workspace-setup.d.ts.map +1 -1
- package/dist/schemas/workspace-setup.js.map +1 -1
- package/dist/schemas/workspace-tree.d.ts.map +1 -1
- package/dist/schemas/workspace-tree.js.map +1 -1
- package/dist/state/arrival.d.ts.map +1 -0
- package/dist/{arrival.js → state/arrival.js} +1 -1
- package/dist/state/arrival.js.map +1 -0
- package/dist/state/contract-lock.d.ts.map +1 -0
- package/dist/{contract-lock.js → state/contract-lock.js} +1 -1
- package/dist/state/contract-lock.js.map +1 -0
- package/dist/{definition.d.ts → state/definition.d.ts} +21 -17
- package/dist/state/definition.d.ts.map +1 -0
- package/dist/{definition.js → state/definition.js} +4 -4
- package/dist/state/definition.js.map +1 -0
- package/dist/state/history-state.d.ts.map +1 -0
- package/dist/{history-state.js → state/history-state.js} +1 -0
- package/dist/state/history-state.js.map +1 -0
- package/dist/state/runtime-state.d.ts.map +1 -0
- package/dist/state/runtime-state.js.map +1 -0
- package/dist/state/starter.d.ts.map +1 -0
- package/dist/state/starter.js.map +1 -0
- package/dist/state/state-portability.d.ts.map +1 -0
- package/dist/state/state-portability.js.map +1 -0
- package/dist/state/versions.d.ts.map +1 -0
- package/dist/state/versions.js.map +1 -0
- package/dist/{workspace-state.d.ts → state/workspace-state.d.ts} +8 -0
- package/dist/state/workspace-state.d.ts.map +1 -0
- package/dist/{workspace-state.js → state/workspace-state.js} +25 -0
- package/dist/state/workspace-state.js.map +1 -0
- package/dist/{documents.d.ts → text/documents.d.ts} +1 -1
- package/dist/text/documents.d.ts.map +1 -0
- package/dist/{documents.js → text/documents.js} +1 -1
- package/dist/text/documents.js.map +1 -0
- package/dist/text/embed.d.ts.map +1 -0
- package/dist/text/embed.js.map +1 -0
- package/dist/text/mentions.d.ts.map +1 -0
- package/dist/text/mentions.js.map +1 -0
- package/dist/text/model-answer.d.ts +3 -0
- package/dist/text/model-answer.d.ts.map +1 -0
- package/dist/text/model-answer.js +3 -0
- package/dist/text/model-answer.js.map +1 -0
- package/dist/text/path-refs.d.ts.map +1 -0
- package/dist/text/path-refs.js.map +1 -0
- package/dist/{shell-regions.d.ts → text/shell-regions.d.ts} +1 -1
- package/dist/text/shell-regions.d.ts.map +1 -0
- package/dist/text/shell-regions.js.map +1 -0
- package/dist/text/title.d.ts.map +1 -0
- package/dist/text/title.js.map +1 -0
- package/dist/{transcript-fold.d.ts → text/transcript-fold.d.ts} +2 -1
- package/dist/text/transcript-fold.d.ts.map +1 -0
- package/dist/{transcript-fold.js → text/transcript-fold.js} +2 -16
- package/dist/text/transcript-fold.js.map +1 -0
- package/dist/text/whisper.d.ts +3 -0
- package/dist/text/whisper.d.ts.map +1 -0
- package/dist/text/whisper.js +11 -0
- package/dist/text/whisper.js.map +1 -0
- package/dist/{workflow-faults.d.ts → text/workflow-faults.d.ts} +1 -1
- package/dist/text/workflow-faults.d.ts.map +1 -0
- package/dist/{workflow-faults.js → text/workflow-faults.js} +1 -1
- package/dist/text/workflow-faults.js.map +1 -0
- package/package.json +70 -70
- package/src/chores/chores.test.ts +4 -10
- package/src/chores/chores.ts +148 -392
- package/src/chores/digest.ts +8 -28
- package/src/chores/extension-update.ts +3 -8
- package/src/chores/fix-deps.ts +4 -18
- package/src/chores/index.ts +2 -2
- package/src/chores/probes.test.ts +7 -43
- package/src/chores/probes.ts +62 -167
- package/src/chores/prompt.ts +10 -34
- package/src/chores/stack.test.ts +6 -45
- package/src/chores/stack.ts +27 -118
- package/src/chores/verdict.test.ts +101 -80
- package/src/chores/verdict.ts +54 -99
- package/src/contracts/accounts.contract.ts +4 -19
- package/src/contracts/agent.contract.ts +7 -22
- package/src/contracts/agents.contract.ts +25 -71
- package/src/contracts/automations.contract.ts +14 -30
- package/src/contracts/capabilities.contract.ts +8 -35
- package/src/contracts/chores.contract.ts +4 -15
- package/src/contracts/endpoints.contract.ts +5 -22
- package/src/contracts/exit.contract.ts +7 -30
- package/src/contracts/extensions.contract.ts +8 -30
- package/src/contracts/git.contract.ts +25 -49
- package/src/contracts/host.contract.ts +9 -44
- package/src/contracts/intentic.contract.ts +1 -1
- package/src/contracts/logs.contract.ts +3 -13
- package/src/contracts/loops.contract.ts +9 -40
- package/src/contracts/personas.contract.ts +10 -35
- package/src/contracts/providers.contract.ts +4 -17
- package/src/contracts/runner.contract.ts +12 -39
- package/src/contracts/safety.contract.ts +5 -14
- package/src/contracts/secrets.contract.ts +4 -22
- package/src/contracts/sessions.contract.ts +1 -1
- package/src/contracts/settings.contract.ts +4 -10
- package/src/contracts/share.contract.ts +3 -9
- package/src/contracts/skills.contract.ts +21 -19
- package/src/contracts/system.contract.ts +26 -52
- package/src/contracts/usage.contract.ts +7 -21
- package/src/contracts/vpn.contract.ts +9 -16
- package/src/contracts/webext.contract.ts +9 -25
- package/src/contracts/workflows.contract.ts +34 -58
- package/src/contracts/workspace.contract.ts +19 -50
- package/src/events/agent-events.ts +345 -0
- package/src/events/cards.ts +286 -0
- package/src/{events.test.ts → events/resume.test.ts} +4 -19
- package/src/events/resume.ts +60 -0
- package/src/events/system-events.ts +139 -0
- package/src/events/transcript.ts +320 -0
- package/src/{conversation-ids.test.ts → ids/conversation-ids.test.ts} +25 -13
- package/src/ids/conversation-ids.ts +178 -0
- package/src/ids/hostnames.ts +129 -0
- package/src/ids/session-names.ts +29 -0
- package/src/ids/share-paths.ts +43 -0
- package/src/{tunnel-ids.test.ts → ids/tunnel-ids.test.ts} +1 -14
- package/src/ids/tunnel-ids.ts +29 -0
- package/src/index.ts +71 -87
- package/src/{agent-catalog.test.ts → models/agent-catalog.test.ts} +19 -93
- package/src/models/agent-catalog.ts +174 -0
- package/src/models/agent-runtimes.ts +201 -0
- package/src/models/capability-ledger.test.ts +84 -0
- package/src/{fast-tier.test.ts → models/fast-tier.test.ts} +7 -18
- package/src/models/fast-tier.ts +36 -0
- package/src/{model-order.test.ts → models/model-order.test.ts} +54 -40
- package/src/models/model-order.ts +171 -0
- package/src/{model-pins.test.ts → models/model-pins.test.ts} +12 -46
- package/src/models/model-pins.ts +57 -0
- package/src/models/model-roles.test.ts +38 -0
- package/src/models/model-roles.ts +180 -0
- package/src/{plan-pools.test.ts → models/plan-pools.test.ts} +6 -11
- package/src/models/plan-pools.ts +65 -0
- package/src/{prompt-complexity.test.ts → models/prompt-complexity.test.ts} +8 -60
- package/src/models/prompt-complexity.ts +215 -0
- package/src/{provider-specs.test.ts → models/provider-specs.test.ts} +18 -47
- package/src/models/provider-specs.ts +272 -0
- package/src/policy/approvals-execution.ts +58 -0
- package/src/{batch-runs.test.ts → policy/batch-runs.test.ts} +4 -20
- package/src/policy/batch-runs.ts +137 -0
- package/src/policy/capability-secrets.ts +5 -0
- package/src/{card-status.ts → policy/card-status.ts} +11 -26
- package/src/{command-classes.test.ts → policy/command-classes.test.ts} +11 -118
- package/src/policy/command-classes.ts +395 -0
- package/src/policy/command-run.ts +65 -0
- package/src/policy/control-scopes.ts +38 -0
- package/src/{credential-material.test.ts → policy/credential-material.test.ts} +4 -26
- package/src/policy/credential-material.ts +91 -0
- package/src/policy/needs-action.ts +5 -0
- package/src/policy/output-fields.ts +86 -0
- package/src/policy/overlay-lint.ts +100 -0
- package/src/{owner-ticket.test.ts → policy/owner-ticket.test.ts} +1 -1
- package/src/{owner-ticket.ts → policy/owner-ticket.ts} +9 -31
- package/src/policy/safety-policy.test.ts +84 -0
- package/src/policy/safety-policy.ts +142 -0
- package/src/policy/search-globs.ts +60 -0
- package/src/protocol/container-requirements.test.ts +72 -0
- package/src/protocol/container-requirements.ts +58 -0
- package/src/protocol/host-protocol.ts +29 -0
- package/src/protocol/ingress-contract.ts +103 -0
- package/src/{ingress-protocol.test.ts → protocol/ingress-protocol.test.ts} +25 -90
- package/src/protocol/ingress-protocol.ts +441 -0
- package/src/protocol/listener-protocol.ts +75 -0
- package/src/{peer-dial.test.ts → protocol/peer-dial.test.ts} +52 -1
- package/src/protocol/peer-dial.ts +207 -0
- package/src/{peer-mcp-server.ts → protocol/peer-mcp-server.ts} +16 -41
- package/src/protocol/request-id.ts +5 -0
- package/src/{routes.test.ts → protocol/routes.test.ts} +14 -22
- package/src/protocol/routes.ts +159 -0
- package/src/protocol/runner-protocol.ts +197 -0
- package/src/protocol/terminal-protocol.ts +13 -0
- package/src/protocol/webext-links.ts +50 -0
- package/src/protocol/webext-protocol.ts +24 -0
- package/src/schemas/activity.ts +22 -30
- package/src/schemas/agent.ts +130 -238
- package/src/schemas/agents.ts +165 -483
- package/src/schemas/approvals.ts +23 -71
- package/src/schemas/automations.ts +142 -250
- package/src/schemas/capabilities.ts +127 -414
- package/src/schemas/ci.ts +56 -108
- package/src/schemas/codebase-health.ts +7 -11
- package/src/schemas/devices.ts +103 -321
- package/src/schemas/engines.ts +16 -44
- package/src/schemas/environment.ts +41 -91
- package/src/schemas/exit.ts +24 -81
- package/src/schemas/extension-updates.ts +42 -87
- package/src/schemas/git-history.ts +30 -84
- package/src/schemas/git.ts +141 -256
- package/src/schemas/history.ts +14 -40
- package/src/schemas/hosts.ts +9 -15
- package/src/schemas/inventory.ts +8 -10
- package/src/schemas/issues.ts +66 -134
- package/src/schemas/logs.ts +15 -34
- package/src/schemas/loops.ts +46 -163
- package/src/schemas/maintenance.ts +47 -172
- package/src/schemas/panels.ts +20 -45
- package/src/schemas/personas.ts +50 -200
- package/src/schemas/plan-limits.ts +58 -197
- package/src/schemas/ports.ts +14 -32
- package/src/schemas/provider-oauth.ts +23 -76
- package/src/schemas/provider-subscriptions.ts +4 -13
- package/src/schemas/public.ts +4 -15
- package/src/schemas/push.ts +8 -36
- package/src/schemas/secrets.ts +20 -64
- package/src/schemas/settings.ts +182 -602
- package/src/schemas/share.ts +14 -32
- package/src/schemas/shared.ts +14 -13
- package/src/schemas/system.ts +46 -78
- package/src/schemas/terminal.ts +41 -120
- package/src/schemas/usage.ts +44 -233
- package/src/schemas/version-seam.test.ts +9 -26
- package/src/schemas/vpn.ts +27 -64
- package/src/schemas/webext.ts +22 -53
- package/src/schemas/workflows.ts +57 -183
- package/src/schemas/workspace-repos.ts +12 -24
- package/src/schemas/workspace-search.ts +17 -35
- package/src/schemas/workspace-setup.ts +4 -11
- package/src/schemas/workspace-tree.ts +32 -91
- package/src/state/arrival.ts +109 -0
- package/src/state/contract-lock.test.ts +17 -0
- package/src/state/contract-lock.ts +49 -0
- package/src/state/definition.ts +143 -0
- package/src/state/history-state.ts +103 -0
- package/src/{runtime-state.test.ts → state/runtime-state.test.ts} +3 -10
- package/src/state/runtime-state.ts +63 -0
- package/src/state/starter.ts +5 -0
- package/src/state/state-portability.ts +27 -0
- package/src/state/versions.ts +26 -0
- package/src/{workspace-state.test.ts → state/workspace-state.test.ts} +65 -172
- package/src/state/workspace-state.ts +669 -0
- package/src/{documents.test.ts → text/documents.test.ts} +1 -1
- package/src/text/documents.ts +42 -0
- package/src/text/embed.ts +132 -0
- package/src/text/mentions.ts +21 -0
- package/src/text/model-answer.ts +9 -0
- package/src/text/path-refs.ts +39 -0
- package/src/text/shell-regions.ts +224 -0
- package/src/{title.test.ts → text/title.test.ts} +13 -32
- package/src/text/title.ts +202 -0
- package/src/{transcript-fold.test.ts → text/transcript-fold.test.ts} +5 -83
- package/src/{transcript-fold.ts → text/transcript-fold.ts} +65 -170
- package/src/text/whisper.test.ts +19 -0
- package/src/text/whisper.ts +17 -0
- package/src/{workflow-faults.test.ts → text/workflow-faults.test.ts} +6 -24
- package/src/{workflow-faults.ts → text/workflow-faults.ts} +20 -60
- package/dist/agent-catalog.d.ts.map +0 -1
- package/dist/agent-catalog.js.map +0 -1
- package/dist/agent-runtimes.d.ts.map +0 -1
- package/dist/agent-runtimes.js.map +0 -1
- package/dist/approvals-execution.d.ts.map +0 -1
- package/dist/approvals-execution.js.map +0 -1
- package/dist/arrival.d.ts.map +0 -1
- package/dist/arrival.js.map +0 -1
- package/dist/batch-runs.d.ts.map +0 -1
- package/dist/batch-runs.js.map +0 -1
- package/dist/capability-env.d.ts.map +0 -1
- package/dist/capability-env.js.map +0 -1
- package/dist/capability-secrets.d.ts.map +0 -1
- package/dist/capability-secrets.js.map +0 -1
- package/dist/card-status.d.ts.map +0 -1
- package/dist/card-status.js.map +0 -1
- package/dist/command-classes.d.ts.map +0 -1
- package/dist/command-classes.js.map +0 -1
- package/dist/command-run.d.ts.map +0 -1
- package/dist/command-run.js.map +0 -1
- package/dist/contract-lock.d.ts.map +0 -1
- package/dist/contract-lock.js.map +0 -1
- package/dist/conversation-ids.d.ts +0 -4
- package/dist/conversation-ids.d.ts.map +0 -1
- package/dist/conversation-ids.js.map +0 -1
- package/dist/credential-material.d.ts.map +0 -1
- package/dist/credential-material.js.map +0 -1
- package/dist/definition.d.ts.map +0 -1
- package/dist/definition.js.map +0 -1
- package/dist/documents.d.ts.map +0 -1
- package/dist/documents.js.map +0 -1
- package/dist/embed.d.ts.map +0 -1
- package/dist/embed.js.map +0 -1
- package/dist/events.d.ts +0 -4336
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js +0 -725
- package/dist/events.js.map +0 -1
- package/dist/fast-tier.d.ts.map +0 -1
- package/dist/fast-tier.js.map +0 -1
- package/dist/history-state.d.ts.map +0 -1
- package/dist/history-state.js.map +0 -1
- package/dist/host-protocol.d.ts.map +0 -1
- package/dist/host-protocol.js.map +0 -1
- package/dist/hostnames.d.ts.map +0 -1
- package/dist/hostnames.js.map +0 -1
- package/dist/ingress-contract.d.ts.map +0 -1
- package/dist/ingress-contract.js.map +0 -1
- package/dist/ingress-protocol.d.ts.map +0 -1
- package/dist/ingress-protocol.js.map +0 -1
- package/dist/listener-protocol.d.ts.map +0 -1
- package/dist/listener-protocol.js.map +0 -1
- package/dist/mentions.d.ts.map +0 -1
- package/dist/mentions.js.map +0 -1
- package/dist/model-order.d.ts.map +0 -1
- package/dist/model-order.js.map +0 -1
- package/dist/model-pins.d.ts.map +0 -1
- package/dist/model-pins.js.map +0 -1
- package/dist/model-roles.d.ts.map +0 -1
- package/dist/model-roles.js.map +0 -1
- package/dist/needs-action.d.ts.map +0 -1
- package/dist/needs-action.js.map +0 -1
- package/dist/output-fields.d.ts.map +0 -1
- package/dist/output-fields.js.map +0 -1
- package/dist/overlay-lint.d.ts.map +0 -1
- package/dist/overlay-lint.js.map +0 -1
- package/dist/owner-ticket.d.ts.map +0 -1
- package/dist/owner-ticket.js.map +0 -1
- package/dist/path-refs.d.ts.map +0 -1
- package/dist/path-refs.js.map +0 -1
- package/dist/peer-dial.d.ts.map +0 -1
- package/dist/peer-dial.js.map +0 -1
- package/dist/peer-mcp-server.d.ts.map +0 -1
- package/dist/peer-mcp-server.js.map +0 -1
- package/dist/plan-pools.d.ts.map +0 -1
- package/dist/plan-pools.js.map +0 -1
- package/dist/prompt-complexity.d.ts.map +0 -1
- package/dist/prompt-complexity.js.map +0 -1
- package/dist/provider-specs.d.ts.map +0 -1
- package/dist/provider-specs.js.map +0 -1
- package/dist/request-id.d.ts.map +0 -1
- package/dist/request-id.js.map +0 -1
- package/dist/routes.d.ts.map +0 -1
- package/dist/routes.js.map +0 -1
- package/dist/runner-protocol.d.ts.map +0 -1
- package/dist/runner-protocol.js.map +0 -1
- package/dist/runtime-state.d.ts.map +0 -1
- package/dist/runtime-state.js.map +0 -1
- package/dist/safety-policy.d.ts.map +0 -1
- package/dist/safety-policy.js.map +0 -1
- package/dist/search-globs.d.ts.map +0 -1
- package/dist/search-globs.js.map +0 -1
- package/dist/session-names.d.ts.map +0 -1
- package/dist/session-names.js.map +0 -1
- package/dist/share-paths.d.ts.map +0 -1
- package/dist/share-paths.js.map +0 -1
- package/dist/shell-regions.d.ts.map +0 -1
- package/dist/shell-regions.js.map +0 -1
- package/dist/sse.d.ts.map +0 -1
- package/dist/sse.js.map +0 -1
- package/dist/starter.d.ts.map +0 -1
- package/dist/starter.js.map +0 -1
- package/dist/state-portability.d.ts.map +0 -1
- package/dist/state-portability.js.map +0 -1
- package/dist/terminal-protocol.d.ts.map +0 -1
- package/dist/terminal-protocol.js.map +0 -1
- package/dist/title.d.ts.map +0 -1
- package/dist/title.js.map +0 -1
- package/dist/transcript-fold.d.ts.map +0 -1
- package/dist/transcript-fold.js.map +0 -1
- package/dist/tunnel-ids.d.ts.map +0 -1
- package/dist/tunnel-ids.js.map +0 -1
- package/dist/versions.d.ts.map +0 -1
- package/dist/versions.js.map +0 -1
- package/dist/webext-links.d.ts.map +0 -1
- package/dist/webext-links.js.map +0 -1
- package/dist/webext-protocol.d.ts.map +0 -1
- package/dist/webext-protocol.js.map +0 -1
- package/dist/workflow-faults.d.ts.map +0 -1
- package/dist/workflow-faults.js.map +0 -1
- package/dist/workspace-state.d.ts.map +0 -1
- package/dist/workspace-state.js.map +0 -1
- package/src/agent-catalog.ts +0 -316
- package/src/agent-runtimes.ts +0 -419
- package/src/approvals-execution.ts +0 -96
- package/src/arrival.ts +0 -160
- package/src/batch-runs.ts +0 -188
- package/src/capability-ledger.test.ts +0 -140
- package/src/capability-secrets.ts +0 -20
- package/src/command-classes.ts +0 -617
- package/src/command-run.ts +0 -78
- package/src/contract-lock.test.ts +0 -23
- package/src/contract-lock.ts +0 -66
- package/src/conversation-ids.ts +0 -207
- package/src/credential-material.ts +0 -181
- package/src/definition.ts +0 -207
- package/src/documents.ts +0 -67
- package/src/embed.ts +0 -164
- package/src/events.ts +0 -1870
- package/src/fast-tier.ts +0 -72
- package/src/history-state.ts +0 -174
- package/src/host-protocol.ts +0 -36
- package/src/hostnames.ts +0 -180
- package/src/ingress-contract.ts +0 -157
- package/src/ingress-protocol.ts +0 -625
- package/src/listener-protocol.ts +0 -96
- package/src/mentions.ts +0 -25
- package/src/model-order.ts +0 -262
- package/src/model-pins.ts +0 -132
- package/src/model-roles.test.ts +0 -52
- package/src/model-roles.ts +0 -320
- package/src/needs-action.ts +0 -14
- package/src/output-fields.ts +0 -111
- package/src/overlay-lint.ts +0 -116
- package/src/path-refs.ts +0 -59
- package/src/peer-dial.ts +0 -163
- package/src/plan-pools.ts +0 -92
- package/src/prompt-complexity.ts +0 -334
- package/src/provider-specs.ts +0 -432
- package/src/request-id.ts +0 -41
- package/src/routes.ts +0 -219
- package/src/runner-protocol.ts +0 -239
- package/src/runtime-state.ts +0 -140
- package/src/safety-policy.test.ts +0 -88
- package/src/safety-policy.ts +0 -258
- package/src/search-globs.ts +0 -76
- package/src/session-names.ts +0 -44
- package/src/share-paths.ts +0 -68
- package/src/shell-regions.ts +0 -289
- package/src/starter.ts +0 -13
- package/src/state-portability.ts +0 -56
- package/src/terminal-protocol.ts +0 -16
- package/src/title.ts +0 -267
- package/src/tunnel-ids.ts +0 -57
- package/src/versions.ts +0 -48
- package/src/webext-links.ts +0 -90
- package/src/webext-protocol.ts +0 -27
- package/src/workspace-state.ts +0 -1090
- /package/dist/{hostnames.d.ts → ids/hostnames.d.ts} +0 -0
- /package/dist/{hostnames.js → ids/hostnames.js} +0 -0
- /package/dist/{session-names.d.ts → ids/session-names.d.ts} +0 -0
- /package/dist/{session-names.js → ids/session-names.js} +0 -0
- /package/dist/{share-paths.d.ts → ids/share-paths.d.ts} +0 -0
- /package/dist/{share-paths.js → ids/share-paths.js} +0 -0
- /package/dist/{agent-catalog.js → models/agent-catalog.js} +0 -0
- /package/dist/{agent-runtimes.d.ts → models/agent-runtimes.d.ts} +0 -0
- /package/dist/{agent-runtimes.js → models/agent-runtimes.js} +0 -0
- /package/dist/{fast-tier.js → models/fast-tier.js} +0 -0
- /package/dist/{model-order.d.ts → models/model-order.d.ts} +0 -0
- /package/dist/{model-pins.js → models/model-pins.js} +0 -0
- /package/dist/{plan-pools.js → models/plan-pools.js} +0 -0
- /package/dist/{prompt-complexity.d.ts → models/prompt-complexity.d.ts} +0 -0
- /package/dist/{prompt-complexity.js → models/prompt-complexity.js} +0 -0
- /package/dist/{provider-specs.d.ts → models/provider-specs.d.ts} +0 -0
- /package/dist/{provider-specs.js → models/provider-specs.js} +0 -0
- /package/dist/{approvals-execution.d.ts → policy/approvals-execution.d.ts} +0 -0
- /package/dist/{approvals-execution.js → policy/approvals-execution.js} +0 -0
- /package/dist/{capability-env.d.ts → policy/capability-env.d.ts} +0 -0
- /package/dist/{capability-env.js → policy/capability-env.js} +0 -0
- /package/dist/{capability-secrets.d.ts → policy/capability-secrets.d.ts} +0 -0
- /package/dist/{capability-secrets.js → policy/capability-secrets.js} +0 -0
- /package/dist/{command-run.js → policy/command-run.js} +0 -0
- /package/dist/{credential-material.d.ts → policy/credential-material.d.ts} +0 -0
- /package/dist/{credential-material.js → policy/credential-material.js} +0 -0
- /package/dist/{needs-action.d.ts → policy/needs-action.d.ts} +0 -0
- /package/dist/{needs-action.js → policy/needs-action.js} +0 -0
- /package/dist/{output-fields.d.ts → policy/output-fields.d.ts} +0 -0
- /package/dist/{output-fields.js → policy/output-fields.js} +0 -0
- /package/dist/{overlay-lint.d.ts → policy/overlay-lint.d.ts} +0 -0
- /package/dist/{overlay-lint.js → policy/overlay-lint.js} +0 -0
- /package/dist/{owner-ticket.d.ts → policy/owner-ticket.d.ts} +0 -0
- /package/dist/{search-globs.d.ts → policy/search-globs.d.ts} +0 -0
- /package/dist/{search-globs.js → policy/search-globs.js} +0 -0
- /package/dist/{ingress-contract.d.ts → protocol/ingress-contract.d.ts} +0 -0
- /package/dist/{ingress-protocol.d.ts → protocol/ingress-protocol.d.ts} +0 -0
- /package/dist/{ingress-protocol.js → protocol/ingress-protocol.js} +0 -0
- /package/dist/{listener-protocol.d.ts → protocol/listener-protocol.d.ts} +0 -0
- /package/dist/{peer-mcp-server.d.ts → protocol/peer-mcp-server.d.ts} +0 -0
- /package/dist/{peer-mcp-server.js → protocol/peer-mcp-server.js} +0 -0
- /package/dist/{request-id.d.ts → protocol/request-id.d.ts} +0 -0
- /package/dist/{request-id.js → protocol/request-id.js} +0 -0
- /package/dist/{routes.d.ts → protocol/routes.d.ts} +0 -0
- /package/dist/{routes.js → protocol/routes.js} +0 -0
- /package/dist/{sse.d.ts → protocol/sse.d.ts} +0 -0
- /package/dist/{sse.js → protocol/sse.js} +0 -0
- /package/dist/{terminal-protocol.js → protocol/terminal-protocol.js} +0 -0
- /package/dist/{webext-links.d.ts → protocol/webext-links.d.ts} +0 -0
- /package/dist/{webext-links.js → protocol/webext-links.js} +0 -0
- /package/dist/{arrival.d.ts → state/arrival.d.ts} +0 -0
- /package/dist/{contract-lock.d.ts → state/contract-lock.d.ts} +0 -0
- /package/dist/{history-state.d.ts → state/history-state.d.ts} +0 -0
- /package/dist/{runtime-state.d.ts → state/runtime-state.d.ts} +0 -0
- /package/dist/{runtime-state.js → state/runtime-state.js} +0 -0
- /package/dist/{starter.d.ts → state/starter.d.ts} +0 -0
- /package/dist/{starter.js → state/starter.js} +0 -0
- /package/dist/{state-portability.d.ts → state/state-portability.d.ts} +0 -0
- /package/dist/{state-portability.js → state/state-portability.js} +0 -0
- /package/dist/{versions.d.ts → state/versions.d.ts} +0 -0
- /package/dist/{versions.js → state/versions.js} +0 -0
- /package/dist/{embed.d.ts → text/embed.d.ts} +0 -0
- /package/dist/{embed.js → text/embed.js} +0 -0
- /package/dist/{mentions.d.ts → text/mentions.d.ts} +0 -0
- /package/dist/{mentions.js → text/mentions.js} +0 -0
- /package/dist/{path-refs.d.ts → text/path-refs.d.ts} +0 -0
- /package/dist/{path-refs.js → text/path-refs.js} +0 -0
- /package/dist/{shell-regions.js → text/shell-regions.js} +0 -0
- /package/dist/{title.d.ts → text/title.d.ts} +0 -0
- /package/dist/{title.js → text/title.js} +0 -0
- /package/src/{hostnames.test.ts → ids/hostnames.test.ts} +0 -0
- /package/src/{share-paths.test.ts → ids/share-paths.test.ts} +0 -0
- /package/src/{capability-env.ts → policy/capability-env.ts} +0 -0
- /package/src/{overlay-lint.test.ts → policy/overlay-lint.test.ts} +0 -0
- /package/src/{search-globs.test.ts → policy/search-globs.test.ts} +0 -0
- /package/src/{ingress-contract.test.ts → protocol/ingress-contract.test.ts} +0 -0
- /package/src/{peer-mcp-server.test.ts → protocol/peer-mcp-server.test.ts} +0 -0
- /package/src/{sse.ts → protocol/sse.ts} +0 -0
- /package/src/{versions.test.ts → state/versions.test.ts} +0 -0
- /package/src/{embed.test.ts → text/embed.test.ts} +0 -0
- /package/src/{mentions.test.ts → text/mentions.test.ts} +0 -0
- /package/src/{path-refs.test.ts → text/path-refs.test.ts} +0 -0
package/src/schemas/history.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// history: daemon-owned workspace snapshots (diff + restore)
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
// visible checkpoint's diff.
|
|
3
|
+
// Daemon snapshots /work into bare git dirs on /history, outside the agent's reach; a snapshot groups one commit per
|
|
4
|
+
// scope (root + each nested repo) under a shared id. "interval" captures are a hidden safety net that dissolves into
|
|
5
|
+
// the next visible checkpoint's diff.
|
|
7
6
|
|
|
8
7
|
export const SnapshotTriggerSchema = z.enum(["turn", "interval", "pre-restore", "restore", "user"]);
|
|
9
8
|
export type SnapshotTrigger = z.infer<typeof SnapshotTriggerSchema>;
|
|
@@ -14,24 +13,19 @@ export const SnapshotSchema = z.object({
|
|
|
14
13
|
trigger: SnapshotTriggerSchema.describe(
|
|
15
14
|
"What caused it. The automatic between-turn captures are a safety net and are not listed; they dissolve into the next visible point's differences.",
|
|
16
15
|
),
|
|
17
|
-
//
|
|
16
|
+
// Absent for anything but a "turn" snapshot.
|
|
18
17
|
label: z.string().optional().describe("What to call it. For one taken before a turn, that turn's prompt."),
|
|
19
18
|
});
|
|
20
19
|
export type Snapshot = z.infer<typeof SnapshotSchema>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* at, which is also how many messages a rewind to it keeps. */
|
|
20
|
+
// Which conversation message a turn answers, so its pre-turn checkpoint can be filed under it. `index` is the
|
|
21
|
+
// transcript position the turn began at, and how many messages a rewind to it keeps.
|
|
24
22
|
export interface SnapshotTurn {
|
|
25
23
|
readonly conversationId: string;
|
|
26
24
|
readonly index: number;
|
|
27
25
|
}
|
|
28
26
|
export const SnapshotsListSchema = z.object({ snapshots: z.array(SnapshotSchema).describe("Every point you can go back to, newest first.") });
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*
|
|
32
|
-
* `index` is the transcript position of the user message being rewound TO, which is also how many messages
|
|
33
|
-
* survive, rewinding to the first message of a conversation keeps none of it and restores the workspace to
|
|
34
|
-
* before it ran. */
|
|
27
|
+
// Restores the workspace to that turn's checkpoint, drops every message after it, and forgets the provider session so
|
|
28
|
+
// the next turn opens fresh.
|
|
35
29
|
export const RewindTurnSchema = z.object({
|
|
36
30
|
conversationId: z.string().min(1).describe("Which conversation to rewind."),
|
|
37
31
|
index: z
|
|
@@ -43,23 +37,20 @@ export const RewindTurnSchema = z.object({
|
|
|
43
37
|
),
|
|
44
38
|
});
|
|
45
39
|
export const RewindResultSchema = z.object({
|
|
46
|
-
/* The checkpoint the workspace was restored to, for the History timeline to select. Absent when the
|
|
47
|
-
* conversation works in a checkout of its own: that rewind moved the conversation's own branch, which the
|
|
48
|
-
* workspace timeline does not carry, there is no row there to select. */
|
|
49
40
|
snapshot: z
|
|
50
41
|
.string()
|
|
51
42
|
.optional()
|
|
52
43
|
.describe(
|
|
53
44
|
"The saved point the files were put back to. Absent for a conversation working in its own copy, whose rewind moved a branch rather than the shared timeline.",
|
|
54
45
|
),
|
|
55
|
-
//
|
|
46
|
+
// What the client removes from its own message bubbles.
|
|
56
47
|
dropped: z.number().int().nonnegative().describe("How many messages were removed."),
|
|
57
48
|
});
|
|
58
49
|
export type RewindResult = z.infer<typeof RewindResultSchema>;
|
|
59
50
|
export const SnapshotIdSchema = z.object({ id: z.string().min(1).describe("Which saved point.") });
|
|
60
51
|
export const SnapshotChangeSchema = z.object({
|
|
61
52
|
scope: z.string().describe("Which part of the workspace the path belongs to: the workspace root, or one of the repositories inside it."),
|
|
62
|
-
//
|
|
53
|
+
// Forward slashes.
|
|
63
54
|
path: z.string().describe("The path, relative to that scope."),
|
|
64
55
|
status: z.enum(["added", "modified", "deleted", "type-changed"]).describe("What happened to it."),
|
|
65
56
|
});
|
|
@@ -72,25 +63,8 @@ export const SnapshotFileDiffQuerySchema = z.object({
|
|
|
72
63
|
scope: z.string().min(1).describe("Which part of the workspace the path belongs to."),
|
|
73
64
|
path: z.string().min(1).describe("The file, relative to that scope."),
|
|
74
65
|
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
* Both whole sides of a half-megabyte file are a megabyte of JSON per click, so above the cap they are not
|
|
78
|
-
* sent, which used to be the end of it: the response said "too large" and every review surface printed one
|
|
79
|
-
* sentence over an empty pane. That is the wrong trade, because the thing a reader wants out of a big file is
|
|
80
|
-
* almost never the file: it is the handful of lines that MOVED, and those are small however big the file is.
|
|
81
|
-
*
|
|
82
|
-
* So the daemon diffs it and sends the CHANGED REGIONS as a unified patch, at the same three lines of context
|
|
83
|
-
* a collapsed region keeps elsewhere. A 40 KB patch stands in for a 60 MB pair, and the reader gets the actual
|
|
84
|
-
* review rather than a refusal. `patch` carries the `@@` sections only, the file headers git prints above them
|
|
85
|
-
* name rev-specs no one can apply anyway.
|
|
86
|
-
*
|
|
87
|
-
* An added or deleted file has no counterpart to diff against, so its patch IS the file, one region of pure
|
|
88
|
-
* +/− lines. That is still the right answer: cut to the budget, it is the head of the file, which is the peek
|
|
89
|
-
* the reader came for.
|
|
90
|
-
*
|
|
91
|
-
* `patch` is absent only when there was nothing to make one from: a change too large even to render as a
|
|
92
|
-
* patch, or a git that refused. The sizes are still there, so a surface can at least say how big the thing it
|
|
93
|
-
* is not showing is. */
|
|
66
|
+
// Unified-diff hunks of the changed regions only, not the whole file. An added/deleted file's patch is the whole file;
|
|
67
|
+
// `patch` is absent only when even that could not be made.
|
|
94
68
|
export const PartialFileDiffSchema = z.object({
|
|
95
69
|
beforeBytes: z.number().int().nonnegative().optional().describe("How big the before side is, in bytes. Absent when the file did not exist yet."),
|
|
96
70
|
afterBytes: z.number().int().nonnegative().optional().describe("How big the after side is, in bytes. Absent when the file was deleted."),
|
|
@@ -101,8 +75,8 @@ export const PartialFileDiffSchema = z.object({
|
|
|
101
75
|
more: z.boolean().optional().describe("There were more changed regions than fit; the patch stops at a region boundary."),
|
|
102
76
|
});
|
|
103
77
|
export type PartialFileDiff = z.infer<typeof PartialFileDiffSchema>;
|
|
104
|
-
// Both sides of a file diff
|
|
105
|
-
//
|
|
78
|
+
// Both sides of a file diff (snapshot vs parent, or worktree vs HEAD); an absent side means added/deleted. Binary is
|
|
79
|
+
// flagged, not shipped; oversized arrives as `partial`.
|
|
106
80
|
export const FileDiffSchema = z.object({
|
|
107
81
|
before: z.string().optional().describe("The whole file as it was. Absent when it did not exist yet, or when `partial` is set."),
|
|
108
82
|
after: z.string().optional().describe("The whole file as it is now. Absent when it was deleted, or when `partial` is set."),
|
package/src/schemas/hosts.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
// hosts: the user's own connected devices (the `host` capability's live half)
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// is "online" exactly while its WebSocket is attached, so a laptop that closed its lid reads as offline within
|
|
6
|
-
// a heartbeat rather than staying green until someone asks it to do something.
|
|
3
|
+
// Manifest says which machines are intended; this says which actually hold a socket now. Nothing persists across a
|
|
4
|
+
// daemon restart except the enrollment itself, so a closed laptop reads offline within a heartbeat.
|
|
7
5
|
|
|
8
|
-
// What a machine reports
|
|
9
|
-
//
|
|
10
|
-
// tells it HOW to drive Windows, this tells it WHICH Windows this is.
|
|
6
|
+
// What a machine reports once at connect (`host.describe`), cached until it reconnects: the skill pack says how to
|
|
7
|
+
// drive Windows, this says which Windows it is.
|
|
11
8
|
export const HostFactsSchema = z.object({
|
|
12
|
-
// The OS's own name for itself, "Windows 11 Pro 24H2"
|
|
9
|
+
// The OS's own name for itself, e.g. "Windows 11 Pro 24H2".
|
|
13
10
|
os: z.string(),
|
|
14
11
|
arch: z.string(),
|
|
15
12
|
// The shell run_command actually spawns, so the agent writes for the right one from its first command.
|
|
@@ -18,9 +15,8 @@ export const HostFactsSchema = z.object({
|
|
|
18
15
|
home: z.string(),
|
|
19
16
|
// Roots in force right now (the capability's `roots`, or [home]), the agent sees its own boundary.
|
|
20
17
|
roots: z.array(z.string()),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* Absent when the machine has no docker to ask, which is a machine that runs no sandboxes anyway. */
|
|
18
|
+
// Docker engine's size (WSL guest on Windows, Desktop VM on macOS, host on Linux); the ceiling a sandbox's share is
|
|
19
|
+
// bounded by.
|
|
24
20
|
engine: z.object({ memoryBytes: z.number(), cpus: z.number() }).optional(),
|
|
25
21
|
});
|
|
26
22
|
export type HostFacts = z.infer<typeof HostFactsSchema>;
|
|
@@ -29,11 +25,9 @@ export const HostSummarySchema = z.object({
|
|
|
29
25
|
id: z.string(),
|
|
30
26
|
platform: z.string().min(1),
|
|
31
27
|
online: z.boolean(),
|
|
32
|
-
//
|
|
33
|
-
// a tool. Absent until the machine has connected once.
|
|
28
|
+
// Agent binary version; absent until the machine has connected once.
|
|
34
29
|
version: z.string().optional(),
|
|
35
|
-
// Epoch ms of the last
|
|
36
|
-
// booted, liveness is a fact about a socket, so a restart forgets it rather than claiming stale uptime.
|
|
30
|
+
// Epoch ms of the last held socket; absent means not since this daemon booted (liveness resets on restart).
|
|
37
31
|
lastSeen: z.number().optional(),
|
|
38
32
|
facts: HostFactsSchema.optional(),
|
|
39
33
|
});
|
package/src/schemas/inventory.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// inventory: the i.have.* / i.want.service entries in deploy.config.ts's managed region
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
// The daemon renders/parses these; the browser edits them through the inventory routes.
|
|
4
|
-
// daemon's deploy-config.ts so the daemon and the browser validate against ONE schema (no cross-repo dupes).
|
|
3
|
+
// The daemon renders/parses these; the browser edits them through the inventory routes.
|
|
5
4
|
|
|
6
5
|
export const InventoryProviderSchema = z.enum(["host", "cloudflare", "github", "gitlab", "stripe"]);
|
|
7
6
|
export type InventoryProvider = z.infer<typeof InventoryProviderSchema>;
|
|
8
7
|
export const ServiceKindSchema = z.enum(["signoz", "outline", "paperless", "openproject", "invoiceninja", "infisical"]);
|
|
9
8
|
export type ServiceKind = z.infer<typeof ServiceKindSchema>;
|
|
10
|
-
// Non-secret option values
|
|
11
|
-
//
|
|
9
|
+
// Non-secret option values; secret options (sshKey, apiToken, apiKey) are emitted as env() references, never sent over
|
|
10
|
+
// the wire.
|
|
12
11
|
export const InventoryValuesSchema = z.record(z.string(), z.union([z.string(), z.number()]));
|
|
13
12
|
// `const <name>` binding in deploy.config.ts, so it must be a valid identifier.
|
|
14
13
|
const inventoryName = z
|
|
@@ -30,8 +29,8 @@ export const ServiceEntrySchema = z.object({
|
|
|
30
29
|
on: z.string().describe("Which of your machines to put it on."),
|
|
31
30
|
expose: z.string().describe("How it should be reachable."),
|
|
32
31
|
});
|
|
33
|
-
// i.want.app
|
|
34
|
-
//
|
|
32
|
+
// i.want.app: single production environment on `main`; `values.domain` is where it's exposed. Multi-env/teams wiring is
|
|
33
|
+
// hand-authored outside the managed region.
|
|
35
34
|
export const AppEntrySchema = z.object({
|
|
36
35
|
kind: z.literal("app").describe("An app of your own, built from source and deployed."),
|
|
37
36
|
name: z.string().describe("What to call it."),
|
|
@@ -51,8 +50,8 @@ export const InventoryNameParamSchema = z.object({ name: z.string().describe("Wh
|
|
|
51
50
|
export const InventoryListSchema = z.object({
|
|
52
51
|
entries: z.array(InventoryEntrySchema).describe("Everything declared: what you have, and what you want provisioned."),
|
|
53
52
|
});
|
|
54
|
-
// A deploy-target host self-registering via
|
|
55
|
-
//
|
|
53
|
+
// A deploy-target host self-registering via POST /enroll (connect-token auth); the SSH key (+ optional Cloudflare
|
|
54
|
+
// token) is written to desired-state/.env, and upserted into inventory.
|
|
56
55
|
export const EnrollHostInputSchema = z.object({
|
|
57
56
|
name: inventoryName,
|
|
58
57
|
user: z.string().min(1),
|
|
@@ -61,8 +60,7 @@ export const EnrollHostInputSchema = z.object({
|
|
|
61
60
|
via: z.enum(["direct", "cloudflared"]).default("cloudflared"),
|
|
62
61
|
sshKey: z.string().min(1),
|
|
63
62
|
cfToken: z.string().optional(),
|
|
64
|
-
//
|
|
65
|
-
// resolve validates against it (no re-discovery) and the Add-service dialog offers `<subdomain>.<zone>`.
|
|
63
|
+
// Resolved alongside cfToken; avoids re-discovery and lets Add-service offer `<subdomain>.<zone>`.
|
|
66
64
|
cfZone: z.string().optional(),
|
|
67
65
|
});
|
|
68
66
|
export type EnrollHostInput = z.infer<typeof EnrollHostInputSchema>;
|
package/src/schemas/issues.ts
CHANGED
|
@@ -1,33 +1,19 @@
|
|
|
1
|
-
//
|
|
2
|
-
// (.intentic/records/issues/<fingerprint>.json, one file per group)
|
|
1
|
+
// Inbound bug reports from the owner's own sites and apps, grouped by fingerprint
|
|
2
|
+
// (.intentic/records/issues/<fingerprint>.json, one file per group).
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { entryId } from "./internal.js";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* IssueReportSchema what a stranger's browser POSTs to /intake/<id>/report. UNTRUSTED, every field of it,
|
|
11
|
-
* and bounded field by field because the endpoint is public and the body is a stack trace
|
|
12
|
-
* somebody else's machine wrote.
|
|
13
|
-
* IssueSchema what the daemon KEEPS: one group per fingerprint, with a count, a first/last seen and
|
|
14
|
-
* the most recent sample. A crash loop is one of these, not ten thousand.
|
|
15
|
-
* IssuesConfigSchema what the owner configures on the automation, and IssuePublicConfigSchema the subset the
|
|
16
|
-
* SDK is allowed to read back. Named field by field there, never by omission, the same
|
|
17
|
-
* rule WebchatConfig's public half is built on.
|
|
18
|
-
*
|
|
19
|
-
* The SDK imports these as TYPES ONLY (`import type`), so zod never reaches a visitor's browser, which is why
|
|
20
|
-
* the wire shapes live in this package beside the stored ones rather than being re-typed in the bundle. */
|
|
6
|
+
// Three shapes: `IssueReportSchema` (untrusted, from a stranger's POST), `IssueSchema` (the daemon's per-fingerprint
|
|
7
|
+
// group with a count and latest sample), and `IssuesConfigSchema`/`IssuePublicConfigSchema` (owner settings vs. what
|
|
8
|
+
// the SDK reads back). Imported as types only, so zod never reaches a browser.
|
|
21
9
|
|
|
22
|
-
//
|
|
23
|
-
//
|
|
10
|
+
// `crash` and `detection` group under one fingerprint with a rising count; `report` never groups, since two people's
|
|
11
|
+
// own words are two different things.
|
|
24
12
|
export const IssueKindSchema = z.enum(["crash", "report", "detection"]);
|
|
25
13
|
export type IssueKind = z.infer<typeof IssueKindSchema>;
|
|
26
14
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* for a console line, a failed fetch and a route change alike is one the agent can render as a timeline
|
|
30
|
-
* without knowing which instrumentations the site switched on. */
|
|
15
|
+
// Flat {at, kind, message} rather than a per-source union, so breadcrumbs from any instrumentation render as one
|
|
16
|
+
// ordered timeline without the agent knowing which ones fired.
|
|
31
17
|
export const IssueBreadcrumbSchema = z.object({
|
|
32
18
|
at: z.number().describe("When, in milliseconds."),
|
|
33
19
|
kind: z.string().max(40).describe("What sort of thing it was: a console line, a request, a click, a route change."),
|
|
@@ -35,97 +21,79 @@ export const IssueBreadcrumbSchema = z.object({
|
|
|
35
21
|
});
|
|
36
22
|
export type IssueBreadcrumb = z.infer<typeof IssueBreadcrumbSchema>;
|
|
37
23
|
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
// `unverifiedDisplayName` does. There is no signed identity on this endpoint and there should not be one: a
|
|
41
|
-
// crash handler fires on a dying page, where no sign-in ceremony can run.
|
|
24
|
+
// Unverified by construction: both fields are typed by the reporter and ride beside the content, never above it. No
|
|
25
|
+
// sign-in ceremony can run on a dying page.
|
|
42
26
|
export const IssueReporterSchema = z.object({
|
|
43
27
|
email: z.string().max(320).optional().describe("An address they typed, to reach them about it. Unverified."),
|
|
44
28
|
name: z.string().max(200).optional().describe("A name they typed. Unverified, and never identity."),
|
|
45
29
|
});
|
|
46
30
|
export type IssueReporter = z.infer<typeof IssueReporterSchema>;
|
|
47
31
|
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
// for the first person who loops over it.
|
|
32
|
+
// Host-supplied strings (route, version, locale, tenant); bounded in both key count and length, the one open-ended
|
|
33
|
+
// field on a public endpoint.
|
|
51
34
|
const CONTEXT_KEYS_MAX = 20;
|
|
52
35
|
const IssueContextSchema = z
|
|
53
36
|
.record(z.string().max(60), z.string().max(300))
|
|
54
37
|
.refine((context) => Object.keys(context).length <= CONTEXT_KEYS_MAX, { message: `at most ${CONTEXT_KEYS_MAX} context entries` });
|
|
55
38
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
* `window.onerror` in an old browser, which has a message and very little else. */
|
|
39
|
+
// One report as it arrives; only `kind`/`message` are required, since demanding every kind's fields would refuse the
|
|
40
|
+
// commonest case (`window.onerror` with little else).
|
|
59
41
|
export const IssueReportSchema = z.object({
|
|
60
42
|
kind: IssueKindSchema.describe("A crash the SDK caught, something a person wrote in, or a problem the SDK noticed on its own."),
|
|
61
43
|
message: z.string().min(1).max(1000).describe("The error's own message, or the headline of what a person reported."),
|
|
62
44
|
stack: z.string().max(20_000).optional().describe("The stack, verbatim from the browser."),
|
|
63
45
|
url: z.string().max(2000).optional().describe("Where it happened: the page's address, or a screen name in an app."),
|
|
64
|
-
|
|
65
|
-
* is enough to check that commit out and read the real frames; there is nothing to upload, no artifact
|
|
66
|
-
* store, and no sourcemap pipeline to keep in step with a deploy. A site that sets nothing here still gets
|
|
67
|
-
* a grouped, readable issue: it just costs the agent a guess about which build it came from. */
|
|
46
|
+
// No artifact store or sourcemap pipeline needed: absent, the agent just guesses which build it came from.
|
|
68
47
|
release: z.string().max(200).optional().describe("Which build it came from: a commit sha or a tag. With it the agent reads your real source rather than minified frames."),
|
|
69
48
|
userAgent: z.string().max(400).optional().describe("What the browser said it was."),
|
|
70
49
|
description: z.string().max(5000).optional().describe("What the person typed, when a person is the one reporting."),
|
|
71
50
|
reporter: IssueReporterSchema.optional().describe("Who says they are reporting it. Unverified by construction."),
|
|
72
51
|
breadcrumbs: z.array(IssueBreadcrumbSchema).max(40).optional().describe("What happened just before, oldest first."),
|
|
73
52
|
context: IssueContextSchema.optional().describe("Whatever else the app attached: a route, a version, a locale."),
|
|
74
|
-
|
|
75
|
-
* are the same thing (or knows one crash is really two) can say so, and the daemon groups on this instead
|
|
76
|
-
* of on the stack. It is hashed like everything else, never used as a filename directly. */
|
|
53
|
+
// Hashed like everything else; never used as a filename directly.
|
|
77
54
|
fingerprint: z.string().max(200).optional().describe("Group by this instead of by the stack, when your app knows better than the stack does."),
|
|
78
55
|
});
|
|
79
56
|
export type IssueReport = z.infer<typeof IssueReportSchema>;
|
|
80
57
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
* IssueReportSchema so that what gets STORED (the sample) is the evidence and not the doorman's paperwork. */
|
|
58
|
+
// POSTed to /intake/<id>/report: the report plus what the gate needs (client id, anti-bot answer) but never stores —
|
|
59
|
+
// keeps the stored sample pure evidence, not doorman's paperwork.
|
|
84
60
|
export const IssueIngestSchema = z.object({
|
|
85
61
|
report: IssueReportSchema,
|
|
86
|
-
//
|
|
87
|
-
// the key the per-minute limit counts against, so one runaway tab cannot spend the whole day's budget.
|
|
62
|
+
// Per-minute limit key; distinct from the daily budget below.
|
|
88
63
|
clientId: z.string().min(1).max(200).describe("The SDK's own id for this browser. Not a secret: it is what the rate limit counts against."),
|
|
89
|
-
// Only for `report`, and only
|
|
90
|
-
// where there is no second to spend on a puzzle and no user to wait for it.
|
|
64
|
+
// Only for `report`, and only if a proof-of-work is asked for; a crash has no second to spend on a puzzle.
|
|
91
65
|
powNonce: z.string().max(400).optional(),
|
|
92
|
-
//
|
|
93
|
-
//
|
|
94
|
-
// the real ceilings are the dedup, the rate limit and the daily budget.
|
|
66
|
+
// For a client with no Origin header; an abuse label, not a secret (ships inside a binary) — dedup, rate limit and
|
|
67
|
+
// daily budget are the real ceilings.
|
|
95
68
|
key: z.string().max(200).optional(),
|
|
96
69
|
});
|
|
97
70
|
export type IssueIngest = z.infer<typeof IssueIngestSchema>;
|
|
98
71
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
* looked at this" and "something is looking at it right now", which is the question a triage inbox is for. */
|
|
72
|
+
// `investigating` is set only by the daemon when a turn actually starts (a wake, or the Investigate button); never
|
|
73
|
+
// guessed, never settable by a click.
|
|
102
74
|
export const IssueStatusSchema = z.enum(["open", "investigating", "resolved", "ignored"]);
|
|
103
75
|
export type IssueStatus = z.infer<typeof IssueStatusSchema>;
|
|
104
76
|
|
|
105
|
-
// One agent turn
|
|
106
|
-
//
|
|
77
|
+
// One agent turn for this issue; the conversation id is the link, so nothing about the run itself needs storing beyond
|
|
78
|
+
// it.
|
|
107
79
|
export const IssueRunSchema = z.object({
|
|
108
80
|
conversationId: z.string().describe("The conversation this run became."),
|
|
109
81
|
at: z.number().describe("When it started, in milliseconds."),
|
|
110
|
-
//
|
|
111
|
-
// not as "someone already looked at this".
|
|
82
|
+
// Lets a post-fix recurrence read as "it came back", not "already looked at".
|
|
112
83
|
atCount: z.number().describe("How many times it had happened when this run started."),
|
|
113
84
|
});
|
|
114
85
|
export type IssueRun = z.infer<typeof IssueRunSchema>;
|
|
115
86
|
|
|
116
|
-
|
|
117
|
-
|
|
87
|
+
// One group; the id is the fingerprint and the filename, never in the body, so a body cannot disagree with its own
|
|
88
|
+
// grouping.
|
|
118
89
|
export const IssueSchema = z.object({
|
|
119
90
|
kind: IssueKindSchema,
|
|
120
|
-
//
|
|
121
|
-
// recurrences of one crash cannot be filed under two names.
|
|
91
|
+
// Derived from the report, never typed, so two recurrences of one crash can't end up under two titles.
|
|
122
92
|
title: z.string().min(1).max(300).describe("The one line this is listed under."),
|
|
123
93
|
culprit: z.string().max(300).optional().describe("The frame it came from, when the stack named one."),
|
|
124
|
-
//
|
|
125
|
-
// list across all of them, so the group has to say which door it came in through.
|
|
94
|
+
// A workspace can run several intakes (one per site); the inbox is one list across all of them.
|
|
126
95
|
automationId: entryId.describe("Which intake received it."),
|
|
127
|
-
//
|
|
128
|
-
// client (a mobile app, a server) that has no origin to send.
|
|
96
|
+
// Absent for a keyed client (mobile app, server) with no Origin header to send.
|
|
129
97
|
origin: z.string().max(400).optional().describe("Which site it came from."),
|
|
130
98
|
firstSeen: z.number().describe("When it first happened, in milliseconds."),
|
|
131
99
|
lastSeen: z.number().describe("When it last happened, in milliseconds."),
|
|
@@ -133,14 +101,10 @@ export const IssueSchema = z.object({
|
|
|
133
101
|
status: IssueStatusSchema.default("open").describe("Where it stands with you."),
|
|
134
102
|
statusAt: z.number().optional().describe("When the status last changed, in milliseconds."),
|
|
135
103
|
release: z.string().max(200).optional().describe("The build the latest one came from."),
|
|
136
|
-
//
|
|
137
|
-
// happening, what it looks like now is what a fix has to reproduce, and the first one is often from a
|
|
138
|
-
// build that no longer exists.
|
|
104
|
+
// Latest, not first: a fix must match what it looks like now, not a build that may no longer exist.
|
|
139
105
|
sample: IssueReportSchema.describe("The most recent one, in full."),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
* far past its last firing. Stored rather than derived, because "how many since the last wake" is not
|
|
143
|
-
* recoverable from a count and a timestamp after a restart. */
|
|
106
|
+
// Escalation rule lives in this number: fires once when new, again only once count has moved this far past it.
|
|
107
|
+
// Stored, since a restart can't derive it from a count and timestamp.
|
|
144
108
|
firedAt: z.number().optional().describe("What the count stood at the last time this woke an agent."),
|
|
145
109
|
runs: z.array(IssueRunSchema).max(20).optional().describe("The turns started for it."),
|
|
146
110
|
});
|
|
@@ -150,9 +114,8 @@ export type Issue = z.infer<typeof IssueSchema>;
|
|
|
150
114
|
export const IssueSummarySchema = IssueSchema.extend({ id: entryId.describe("The issue's id, which is its fingerprint.") });
|
|
151
115
|
export type IssueSummary = z.infer<typeof IssueSummarySchema>;
|
|
152
116
|
|
|
153
|
-
// `invalid
|
|
154
|
-
//
|
|
155
|
-
// volume, and either is worth seeing rather than silently skipping.
|
|
117
|
+
// `invalid`: nothing but the daemon writes these files, so one that fails to parse is a bug in this daemon or a
|
|
118
|
+
// half-written volume, worth surfacing not skipping.
|
|
156
119
|
export const IssuesListSchema = z.object({
|
|
157
120
|
issues: z.array(IssueSummarySchema).describe("The inbox, most recently seen first."),
|
|
158
121
|
invalid: z.array(z.string()).describe("Files in the issues directory that could not be read at all."),
|
|
@@ -160,66 +123,45 @@ export const IssuesListSchema = z.object({
|
|
|
160
123
|
export type IssuesList = z.infer<typeof IssuesListSchema>;
|
|
161
124
|
|
|
162
125
|
export const IssueIdParamSchema = z.object({ id: entryId.describe("Which issue.") });
|
|
163
|
-
//
|
|
164
|
-
//
|
|
126
|
+
// `investigating` is not offered here: the daemon sets it when a turn actually starts, so a click can't fake the one
|
|
127
|
+
// status that means something.
|
|
165
128
|
export const IssueStatusInputSchema = z.object({
|
|
166
129
|
id: entryId.describe("Which issue."),
|
|
167
130
|
status: z.enum(["open", "resolved", "ignored"]).describe("Where it now stands with you."),
|
|
168
131
|
});
|
|
169
132
|
export type IssueStatusInput = z.infer<typeof IssueStatusInputSchema>;
|
|
170
133
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
* Present only on `issues` listener automations, ignored on every other trigger, the shape WebchatConfig
|
|
174
|
-
* already established. `allowedOrigins` is NOT here: it lives on the trigger, because it is the admission gate
|
|
175
|
-
* the ingest route reads rather than a rendering choice, and one gate in two places is one gate. */
|
|
134
|
+
// Present only on `issues` listener automations. `allowedOrigins` is not here: it lives on the trigger, since the
|
|
135
|
+
// ingest route reads it as the admission gate, not a rendering choice.
|
|
176
136
|
export const IssuesConfigSchema = z.object({
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
*
|
|
181
|
-
* It is an abuse LABEL, not a secret, and the difference matters: it ships inside a binary anyone can pull
|
|
182
|
-
* apart. What it buys is that a leaked key can be rotated in one click while the origin allowlist keeps
|
|
183
|
-
* covering the web. The ceilings are what actually bound the damage. */
|
|
184
|
-
ingestKey: z.string().min(1).optional().describe("The key an app with no website origin presents. Rotate it freely: the limits, not this, are what bound the damage."),
|
|
185
|
-
/* Whether a browser with no allowed origin may still report by presenting the key. Off by default: the
|
|
186
|
-
* commonest way an intake gets abused is its key ending up in a public web bundle, and the allowlist is
|
|
187
|
-
* the thing that stops that mattering. */
|
|
137
|
+
// Ingest key lives in the secrets store (`AutomationSummary.ingestKey`), not here — an abuse label the origin
|
|
138
|
+
// allowlist and ceilings actually bound, not a secret.
|
|
139
|
+
// Off by default: a leaked key in a public bundle is the commonest abuse, and the allowlist is what limits it.
|
|
188
140
|
keyFromBrowsers: z.boolean().optional().describe("Let a browser report with the key alone, rather than only from a site you listed. Off unless you need it."),
|
|
189
|
-
//
|
|
190
|
-
// ISSUES_DAILY_MAX_DEFAULT, never uncapped, for the reason the Front Desk's own daily cap gives.
|
|
141
|
+
// Per UTC day, counted in reports that reach the store; absent means ISSUES_DAILY_MAX_DEFAULT, never uncapped.
|
|
191
142
|
dailyReportMax: z.number().int().positive().optional().describe("How many reports a day this intake accepts at all."),
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
* ISSUES_ESCALATE_AFTER_DEFAULT.
|
|
195
|
-
*
|
|
196
|
-
* This is the number that makes the whole product safe to leave on. Without it a crash loop on one popular
|
|
197
|
-
* page is an agent turn per affected browser, which is a bill rather than a bug report. */
|
|
143
|
+
// Wakes an agent on new, then again once count has grown this much since the last wake; absent means
|
|
144
|
+
// ISSUES_ESCALATE_AFTER_DEFAULT. Without a cap, a crash loop is a turn per browser.
|
|
198
145
|
escalateAfter: z.number().int().positive().optional().describe("How many more times a known crash must happen before it wakes an agent again."),
|
|
199
|
-
//
|
|
200
|
-
// it). Absent ⇒ off, leaving the origin allowlist and the ceilings as the whole boundary.
|
|
146
|
+
// Written reports only, never a crash; absent means off, leaving the allowlist and ceilings as the boundary.
|
|
201
147
|
antiBot: z.enum(["pow"]).optional().describe("Make a person's browser solve a small puzzle before it accepts a written report."),
|
|
202
|
-
|
|
148
|
+
// The report dialog's chrome; public by construction.
|
|
203
149
|
title: z.string().max(80).optional().describe("The dialog's heading."),
|
|
204
150
|
prompt: z.string().max(300).optional().describe("The line above the box they type in."),
|
|
205
151
|
thanks: z.string().max(300).optional().describe("What it says once they have sent it."),
|
|
206
152
|
askEmail: z.boolean().optional().describe("Ask for an address to reply to. Optional for them either way."),
|
|
207
|
-
//
|
|
208
|
-
// from its channels rather than only painting it.
|
|
153
|
+
// Hex colour; the SDK derives a hover and focus ring from its channels, not just paints it.
|
|
209
154
|
accent: z
|
|
210
155
|
.string()
|
|
211
156
|
.regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/, "accent must be a hex colour, e.g. #e47100")
|
|
212
157
|
.optional(),
|
|
213
|
-
//
|
|
214
|
-
// crash reporter meant to report crashes.
|
|
158
|
+
// Absent means on: a site that embedded this meant to report crashes.
|
|
215
159
|
captureCrashes: z.boolean().optional().describe("Catch uncaught errors automatically, as well as what people write in."),
|
|
216
160
|
});
|
|
217
161
|
export type IssuesConfig = z.infer<typeof IssuesConfigSchema>;
|
|
218
162
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
* a stranger's browser until somebody deliberately lists it, which is the property this shape exists for.
|
|
222
|
-
* `ingestKey` is conspicuously absent, a browser proves itself by its origin. */
|
|
163
|
+
// Fully resolved daemon-side; every field is named here so a secret added to `IssuesConfig` later stays invisible until
|
|
164
|
+
// deliberately listed. `ingestKey` is absent — a browser proves itself by origin.
|
|
223
165
|
export const IssuePublicConfigSchema = z.object({
|
|
224
166
|
automationId: z.string(),
|
|
225
167
|
title: z.string(),
|
|
@@ -228,21 +170,18 @@ export const IssuePublicConfigSchema = z.object({
|
|
|
228
170
|
askEmail: z.boolean(),
|
|
229
171
|
accent: z.string(),
|
|
230
172
|
captureCrashes: z.boolean(),
|
|
231
|
-
// "off" spelled out
|
|
232
|
-
// and a missing field meaning "no challenge" is how one serialization bug becomes an open door.
|
|
173
|
+
// "off" spelled out, not absent: a missing field meaning no challenge is how a serialization bug opens a door.
|
|
233
174
|
antiBot: z.enum(["pow", "off"]),
|
|
234
175
|
});
|
|
235
176
|
export type IssuePublicConfig = z.infer<typeof IssuePublicConfigSchema>;
|
|
236
177
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
* owner's facts, and the caller is a stranger's browser. */
|
|
178
|
+
// A short reference to show the reporter ("we filed this as 4f3a…"), and nothing else: whether it's new, its count, who
|
|
179
|
+
// it woke are the owner's facts, not a stranger's.
|
|
240
180
|
export const IssueAcceptedSchema = z.object({ ok: z.literal(true), id: z.string() });
|
|
241
181
|
export type IssueAccepted = z.infer<typeof IssueAcceptedSchema>;
|
|
242
182
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
* pasted, and one pasted on an origin the allowlist does not have, are both "an intake with no reports". */
|
|
183
|
+
// Which origins loaded this intake's SDK, and which were turned away: a snippet never pasted and one pasted on a
|
|
184
|
+
// disallowed origin both look like "no reports".
|
|
246
185
|
export const IssueInstallSchema = z.object({
|
|
247
186
|
origin: z.string(),
|
|
248
187
|
allowed: z.boolean(),
|
|
@@ -253,23 +192,16 @@ export const IssueInstallsSchema = z.object({ origins: z.array(IssueInstallSchem
|
|
|
253
192
|
export type IssueInstalls = z.infer<typeof IssueInstallsSchema>;
|
|
254
193
|
export const IssueIntakeIdParamSchema = z.object({ automationId: entryId.describe("Which intake.") });
|
|
255
194
|
|
|
256
|
-
|
|
257
|
-
*
|
|
258
|
-
* Here rather than beside the route that enforces them, for WebchatConfig's reason: the automation editor has
|
|
259
|
-
* to be able to show the owner what they are already protected by, and a limit that is invisible until it is
|
|
260
|
-
* hit gets filed as a bug. */
|
|
195
|
+
// Constants both the editor and the route need, so a limit is visible to the owner before it is hit.
|
|
261
196
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
* message is always a turn. High enough that a real product's bad afternoon fits inside it, low enough that a
|
|
265
|
-
* script pointed at the endpoint stops being interesting within seconds. */
|
|
197
|
+
// Default daily ceiling; higher than the Front Desk's 200 since a report is only sometimes a turn (dedup decides),
|
|
198
|
+
// unlike a visitor message.
|
|
266
199
|
export const ISSUES_DAILY_MAX_DEFAULT = 2000;
|
|
267
200
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
* everybody crosses it almost at once, which is exactly when the second wake is worth having. */
|
|
201
|
+
// Default escalation threshold; quiet on the long tail, but a spike that starts affecting everybody crosses it almost
|
|
202
|
+
// immediately.
|
|
271
203
|
export const ISSUES_ESCALATE_AFTER_DEFAULT = 10;
|
|
272
204
|
|
|
273
|
-
//
|
|
274
|
-
//
|
|
205
|
+
// Max ingest body size; a normal report is a few KB, this leaves room for a pathological trace without becoming a file
|
|
206
|
+
// upload.
|
|
275
207
|
export const ISSUE_PAYLOAD_MAX = 96_000;
|