@intentic/sandbox-contract 1.231.0 → 1.233.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 +13 -2
- package/dist/agent-catalog.d.ts +2 -1
- package/dist/agent-catalog.d.ts.map +1 -1
- package/dist/agent-catalog.js +1 -1
- package/dist/agent-catalog.js.map +1 -1
- package/dist/chores/chores.d.ts +1 -1
- package/dist/chores/chores.d.ts.map +1 -1
- package/dist/chores/probes.d.ts +1 -1
- package/dist/chores/probes.d.ts.map +1 -1
- package/dist/chores/stack.d.ts.map +1 -1
- package/dist/chores/stack.js +2 -1
- package/dist/chores/stack.js.map +1 -1
- package/dist/chores/verdict.d.ts +1 -1
- package/dist/chores/verdict.d.ts.map +1 -1
- package/dist/command-classes.d.ts +14 -0
- package/dist/command-classes.d.ts.map +1 -0
- package/dist/command-classes.js +168 -0
- package/dist/command-classes.js.map +1 -0
- package/dist/contracts/activity.contract.js +1 -1
- package/dist/contracts/activity.contract.js.map +1 -1
- package/dist/contracts/agent.contract.d.ts +51 -2
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +13 -1
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +24 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +5 -1
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/automations.contract.js +2 -1
- package/dist/contracts/automations.contract.js.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts +63 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.js +3 -1
- package/dist/contracts/capabilities.contract.js.map +1 -1
- package/dist/contracts/chores.contract.d.ts.map +1 -1
- package/dist/contracts/chores.contract.js +2 -1
- package/dist/contracts/chores.contract.js.map +1 -1
- package/dist/contracts/ci.contract.js +2 -1
- package/dist/contracts/ci.contract.js.map +1 -1
- package/dist/contracts/claude.contract.js +2 -1
- package/dist/contracts/claude.contract.js.map +1 -1
- package/dist/contracts/cursor.contract.js +2 -1
- package/dist/contracts/cursor.contract.js.map +1 -1
- package/dist/contracts/drafts.contract.d.ts.map +1 -1
- package/dist/contracts/drafts.contract.js +2 -1
- package/dist/contracts/drafts.contract.js.map +1 -1
- package/dist/contracts/endpoints.contract.d.ts.map +1 -1
- package/dist/contracts/endpoints.contract.js +2 -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 +2 -1
- package/dist/contracts/exit.contract.js.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +42 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.js +4 -1
- package/dist/contracts/extensions.contract.js.map +1 -1
- package/dist/contracts/git.contract.d.ts.map +1 -1
- package/dist/contracts/git.contract.js +4 -1
- package/dist/contracts/git.contract.js.map +1 -1
- package/dist/contracts/grok.contract.d.ts.map +1 -1
- package/dist/contracts/grok.contract.js +2 -1
- package/dist/contracts/grok.contract.js.map +1 -1
- package/dist/contracts/history.contract.d.ts.map +1 -1
- package/dist/contracts/history.contract.js +2 -1
- package/dist/contracts/history.contract.js.map +1 -1
- package/dist/contracts/host.contract.d.ts +11 -0
- package/dist/contracts/host.contract.d.ts.map +1 -1
- package/dist/contracts/host.contract.js +4 -1
- package/dist/contracts/host.contract.js.map +1 -1
- package/dist/contracts/intentic.contract.d.ts.map +1 -1
- package/dist/contracts/intentic.contract.js +2 -1
- package/dist/contracts/intentic.contract.js.map +1 -1
- package/dist/contracts/inventory.contract.js +1 -1
- package/dist/contracts/inventory.contract.js.map +1 -1
- package/dist/contracts/logs.contract.d.ts.map +1 -1
- package/dist/contracts/logs.contract.js +1 -1
- package/dist/contracts/logs.contract.js.map +1 -1
- package/dist/contracts/loops.contract.js +2 -1
- package/dist/contracts/loops.contract.js.map +1 -1
- package/dist/contracts/panels.contract.d.ts.map +1 -1
- package/dist/contracts/panels.contract.js +2 -1
- package/dist/contracts/panels.contract.js.map +1 -1
- package/dist/contracts/personas.contract.js +2 -1
- package/dist/contracts/personas.contract.js.map +1 -1
- package/dist/contracts/ports.contract.d.ts.map +1 -1
- package/dist/contracts/ports.contract.js +2 -1
- package/dist/contracts/ports.contract.js.map +1 -1
- package/dist/contracts/prepush.contract.d.ts.map +1 -1
- package/dist/contracts/prepush.contract.js +2 -1
- package/dist/contracts/prepush.contract.js.map +1 -1
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/providers.contract.js +2 -1
- package/dist/contracts/providers.contract.js.map +1 -1
- package/dist/contracts/public.contract.d.ts.map +1 -1
- package/dist/contracts/public.contract.js +2 -1
- package/dist/contracts/public.contract.js.map +1 -1
- package/dist/contracts/push.contract.d.ts.map +1 -1
- package/dist/contracts/push.contract.js +2 -1
- package/dist/contracts/push.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +151 -43
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.js +14 -1
- package/dist/contracts/runner.contract.js.map +1 -1
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +2 -1
- package/dist/contracts/secrets.contract.js.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 +20 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +3 -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 +2 -1
- package/dist/contracts/share.contract.js.map +1 -1
- package/dist/contracts/skills.contract.d.ts.map +1 -1
- package/dist/contracts/skills.contract.js +2 -1
- package/dist/contracts/skills.contract.js.map +1 -1
- package/dist/contracts/system.contract.d.ts +35 -16
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +6 -1
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/contracts/translator.contract.js +4 -1
- package/dist/contracts/translator.contract.js.map +1 -1
- package/dist/contracts/usage.contract.js +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 +2 -1
- package/dist/contracts/vpn.contract.js.map +1 -1
- package/dist/contracts/webext.contract.d.ts +45 -0
- package/dist/contracts/webext.contract.d.ts.map +1 -0
- package/dist/contracts/webext.contract.js +12 -0
- package/dist/contracts/webext.contract.js.map +1 -0
- package/dist/contracts/workflows.contract.js +2 -1
- package/dist/contracts/workflows.contract.js.map +1 -1
- package/dist/contracts/workspace.contract.d.ts +2 -2
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.js +7 -1
- package/dist/contracts/workspace.contract.js.map +1 -1
- package/dist/definition-action.d.ts +7 -0
- package/dist/definition-action.d.ts.map +1 -0
- package/dist/definition-action.js +3 -0
- package/dist/definition-action.js.map +1 -0
- package/dist/definition.d.ts +1064 -0
- package/dist/definition.d.ts.map +1 -0
- package/dist/definition.js +93 -0
- package/dist/definition.js.map +1 -0
- package/dist/events.d.ts +109 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +30 -1
- package/dist/events.js.map +1 -1
- package/dist/fast-tier.d.ts +1 -1
- package/dist/fast-tier.d.ts.map +1 -1
- package/dist/history-state.d.ts.map +1 -1
- package/dist/history-state.js +1 -0
- package/dist/history-state.js.map +1 -1
- package/dist/index.d.ts +371 -103
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +52 -1
- package/dist/index.js.map +1 -1
- package/dist/listener-protocol.js +1 -1
- package/dist/listener-protocol.js.map +1 -1
- package/dist/quick-model.d.ts +1 -1
- package/dist/quick-model.d.ts.map +1 -1
- package/dist/runner-protocol.d.ts +18 -0
- package/dist/runner-protocol.d.ts.map +1 -1
- package/dist/runner-protocol.js +8 -4
- package/dist/runner-protocol.js.map +1 -1
- package/dist/schemas/activity.d.ts +112 -0
- package/dist/schemas/activity.d.ts.map +1 -0
- package/dist/schemas/activity.js +70 -0
- package/dist/schemas/activity.js.map +1 -0
- package/dist/schemas/agent.d.ts +189 -0
- package/dist/schemas/agent.d.ts.map +1 -0
- package/dist/schemas/agent.js +170 -0
- package/dist/schemas/agent.js.map +1 -0
- package/dist/schemas/agents.d.ts +690 -0
- package/dist/schemas/agents.d.ts.map +1 -0
- package/dist/schemas/agents.js +314 -0
- package/dist/schemas/agents.js.map +1 -0
- package/dist/schemas/automations.d.ts +736 -0
- package/dist/schemas/automations.d.ts.map +1 -0
- package/dist/schemas/automations.js +218 -0
- package/dist/schemas/automations.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +753 -0
- package/dist/schemas/capabilities.d.ts.map +1 -0
- package/dist/schemas/capabilities.js +269 -0
- package/dist/schemas/capabilities.js.map +1 -0
- package/dist/schemas/ci.d.ts +179 -0
- package/dist/schemas/ci.d.ts.map +1 -0
- package/dist/schemas/ci.js +99 -0
- package/dist/schemas/ci.js.map +1 -0
- package/dist/schemas/claude-gate.d.ts +13 -0
- package/dist/schemas/claude-gate.d.ts.map +1 -0
- package/dist/schemas/claude-gate.js +8 -0
- package/dist/schemas/claude-gate.js.map +1 -0
- package/dist/schemas/codebase-health.d.ts +56 -0
- package/dist/schemas/codebase-health.d.ts.map +1 -0
- package/dist/schemas/codebase-health.js +43 -0
- package/dist/schemas/codebase-health.js.map +1 -0
- package/dist/schemas/computers.d.ts +386 -0
- package/dist/schemas/computers.d.ts.map +1 -0
- package/dist/schemas/computers.js +107 -0
- package/dist/schemas/computers.js.map +1 -0
- package/dist/schemas/drafts.d.ts +84 -0
- package/dist/schemas/drafts.d.ts.map +1 -0
- package/dist/schemas/drafts.js +44 -0
- package/dist/schemas/drafts.js.map +1 -0
- package/dist/schemas/environment.d.ts +349 -0
- package/dist/schemas/environment.d.ts.map +1 -0
- package/dist/schemas/environment.js +111 -0
- package/dist/schemas/environment.js.map +1 -0
- package/dist/schemas/exit.d.ts +151 -0
- package/dist/schemas/exit.d.ts.map +1 -0
- package/dist/schemas/exit.js +115 -0
- package/dist/schemas/exit.js.map +1 -0
- package/dist/schemas/extension-updates.d.ts +1014 -0
- package/dist/schemas/extension-updates.d.ts.map +1 -0
- package/dist/schemas/extension-updates.js +197 -0
- package/dist/schemas/extension-updates.js.map +1 -0
- package/dist/schemas/fast-mode.d.ts +8 -0
- package/dist/schemas/fast-mode.d.ts.map +1 -0
- package/dist/schemas/fast-mode.js +3 -0
- package/dist/schemas/fast-mode.js.map +1 -0
- package/dist/schemas/git-history.d.ts +238 -0
- package/dist/schemas/git-history.d.ts.map +1 -0
- package/dist/schemas/git-history.js +152 -0
- package/dist/schemas/git-history.js.map +1 -0
- package/dist/schemas/git.d.ts +471 -0
- package/dist/schemas/git.d.ts.map +1 -0
- package/dist/schemas/git.js +204 -0
- package/dist/schemas/git.js.map +1 -0
- package/dist/schemas/history.d.ts +100 -0
- package/dist/schemas/history.d.ts.map +1 -0
- package/dist/schemas/history.js +54 -0
- package/dist/schemas/history.js.map +1 -0
- package/dist/schemas/hosts.d.ts +41 -0
- package/dist/schemas/hosts.d.ts.map +1 -0
- package/dist/schemas/hosts.js +18 -0
- package/dist/schemas/hosts.js.map +1 -0
- package/dist/schemas/intentic.d.ts +5 -0
- package/dist/schemas/intentic.d.ts.map +1 -0
- package/dist/schemas/intentic.js +3 -0
- package/dist/schemas/intentic.js.map +1 -0
- package/dist/schemas/internal.d.ts +8 -0
- package/dist/schemas/internal.d.ts.map +1 -0
- package/dist/schemas/internal.js +12 -0
- package/dist/schemas/internal.js.map +1 -0
- package/dist/schemas/inventory.d.ts +171 -0
- package/dist/schemas/inventory.d.ts.map +1 -0
- package/dist/schemas/inventory.js +51 -0
- package/dist/schemas/inventory.js.map +1 -0
- package/dist/schemas/logs.d.ts +67 -0
- package/dist/schemas/logs.d.ts.map +1 -0
- package/dist/schemas/logs.js +54 -0
- package/dist/schemas/logs.js.map +1 -0
- package/dist/schemas/loops.d.ts +415 -0
- package/dist/schemas/loops.d.ts.map +1 -0
- package/dist/schemas/loops.js +188 -0
- package/dist/schemas/loops.js.map +1 -0
- package/dist/schemas/maintenance.d.ts +557 -0
- package/dist/schemas/maintenance.d.ts.map +1 -0
- package/dist/schemas/maintenance.js +201 -0
- package/dist/schemas/maintenance.js.map +1 -0
- package/dist/schemas/marketplace.d.ts +64 -0
- package/dist/schemas/marketplace.d.ts.map +1 -0
- package/dist/schemas/marketplace.js +17 -0
- package/dist/schemas/marketplace.js.map +1 -0
- package/dist/schemas/panels.d.ts +61 -0
- package/dist/schemas/panels.d.ts.map +1 -0
- package/dist/schemas/panels.js +51 -0
- package/dist/schemas/panels.js.map +1 -0
- package/dist/schemas/personas.d.ts +122 -0
- package/dist/schemas/personas.d.ts.map +1 -0
- package/dist/schemas/personas.js +102 -0
- package/dist/schemas/personas.js.map +1 -0
- package/dist/schemas/plan-limits.d.ts +172 -0
- package/dist/schemas/plan-limits.d.ts.map +1 -0
- package/dist/schemas/plan-limits.js +126 -0
- package/dist/schemas/plan-limits.js.map +1 -0
- package/dist/schemas/ports.d.ts +71 -0
- package/dist/schemas/ports.d.ts.map +1 -0
- package/dist/schemas/ports.js +42 -0
- package/dist/schemas/ports.js.map +1 -0
- package/dist/schemas/provider-oauth.d.ts +128 -0
- package/dist/schemas/provider-oauth.d.ts.map +1 -0
- package/dist/schemas/provider-oauth.js +91 -0
- package/dist/schemas/provider-oauth.js.map +1 -0
- package/dist/schemas/provider-subscriptions.d.ts +9 -0
- package/dist/schemas/provider-subscriptions.d.ts.map +1 -0
- package/dist/schemas/provider-subscriptions.js +3 -0
- package/dist/schemas/provider-subscriptions.js.map +1 -0
- package/dist/schemas/public.d.ts +32 -0
- package/dist/schemas/public.d.ts.map +1 -0
- package/dist/schemas/public.js +29 -0
- package/dist/schemas/public.js.map +1 -0
- package/dist/schemas/push.d.ts +55 -0
- package/dist/schemas/push.d.ts.map +1 -0
- package/dist/schemas/push.js +60 -0
- package/dist/schemas/push.js.map +1 -0
- package/dist/schemas/secrets.d.ts +86 -0
- package/dist/schemas/secrets.d.ts.map +1 -0
- package/dist/schemas/secrets.js +51 -0
- package/dist/schemas/secrets.js.map +1 -0
- package/dist/schemas/sessions.d.ts +32 -0
- package/dist/schemas/sessions.d.ts.map +1 -0
- package/dist/schemas/sessions.js +11 -0
- package/dist/schemas/sessions.js.map +1 -0
- package/dist/schemas/settings.d.ts +548 -0
- package/dist/schemas/settings.d.ts.map +1 -0
- package/dist/schemas/settings.js +259 -0
- package/dist/schemas/settings.js.map +1 -0
- package/dist/schemas/share.d.ts +49 -0
- package/dist/schemas/share.d.ts.map +1 -0
- package/dist/schemas/share.js +26 -0
- package/dist/schemas/share.js.map +1 -0
- package/dist/schemas/shared.d.ts +22 -0
- package/dist/schemas/shared.d.ts.map +1 -0
- package/dist/schemas/shared.js +16 -0
- package/dist/schemas/shared.js.map +1 -0
- package/dist/schemas/system.d.ts +86 -0
- package/dist/schemas/system.d.ts.map +1 -0
- package/dist/schemas/system.js +64 -0
- package/dist/schemas/system.js.map +1 -0
- package/dist/schemas/terminal.d.ts +230 -0
- package/dist/schemas/terminal.d.ts.map +1 -0
- package/dist/schemas/terminal.js +133 -0
- package/dist/schemas/terminal.js.map +1 -0
- package/dist/schemas/usage.d.ts +113 -0
- package/dist/schemas/usage.d.ts.map +1 -0
- package/dist/schemas/usage.js +91 -0
- package/dist/schemas/usage.js.map +1 -0
- package/dist/schemas/vpn.d.ts +229 -0
- package/dist/schemas/vpn.d.ts.map +1 -0
- package/dist/schemas/vpn.js +115 -0
- package/dist/schemas/vpn.js.map +1 -0
- package/dist/schemas/webext.d.ts +98 -0
- package/dist/schemas/webext.d.ts.map +1 -0
- package/dist/schemas/webext.js +36 -0
- package/dist/schemas/webext.js.map +1 -0
- package/dist/schemas/workflows.d.ts +881 -0
- package/dist/schemas/workflows.d.ts.map +1 -0
- package/dist/schemas/workflows.js +164 -0
- package/dist/schemas/workflows.js.map +1 -0
- package/dist/schemas/workspace-repos.d.ts +143 -0
- package/dist/schemas/workspace-repos.d.ts.map +1 -0
- package/dist/schemas/workspace-repos.js +87 -0
- package/dist/schemas/workspace-repos.js.map +1 -0
- package/dist/schemas/workspace-search.d.ts +170 -0
- package/dist/schemas/workspace-search.d.ts.map +1 -0
- package/dist/schemas/workspace-search.js +85 -0
- package/dist/schemas/workspace-search.js.map +1 -0
- package/dist/schemas/workspace-setup.d.ts +48 -0
- package/dist/schemas/workspace-setup.d.ts.map +1 -0
- package/dist/schemas/workspace-setup.js +26 -0
- package/dist/schemas/workspace-setup.js.map +1 -0
- package/dist/schemas/workspace-tree.d.ts +120 -0
- package/dist/schemas/workspace-tree.d.ts.map +1 -0
- package/dist/schemas/workspace-tree.js +111 -0
- package/dist/schemas/workspace-tree.js.map +1 -0
- package/dist/webext-links.d.ts +13 -0
- package/dist/webext-links.d.ts.map +1 -0
- package/dist/webext-links.js +24 -0
- package/dist/webext-links.js.map +1 -0
- package/dist/webext-protocol.d.ts +8 -0
- package/dist/webext-protocol.d.ts.map +1 -0
- package/dist/webext-protocol.js +7 -0
- package/dist/webext-protocol.js.map +1 -0
- package/dist/workflow-faults.d.ts +1 -1
- package/dist/workflow-faults.d.ts.map +1 -1
- package/dist/workspace-state.d.ts +11 -2
- package/dist/workspace-state.d.ts.map +1 -1
- package/dist/workspace-state.js +4 -2
- package/dist/workspace-state.js.map +1 -1
- package/package.json +17 -6
- package/src/agent-catalog.test.ts +1 -1
- package/src/agent-catalog.ts +4 -11
- package/src/chores/chores.ts +1 -1
- package/src/chores/probes.ts +1 -1
- package/src/chores/stack.test.ts +19 -0
- package/src/chores/stack.ts +19 -3
- package/src/chores/verdict.test.ts +11 -1
- package/src/chores/verdict.ts +1 -1
- package/src/command-classes.test.ts +378 -0
- package/src/command-classes.ts +378 -0
- package/src/contracts/activity.contract.ts +1 -1
- package/src/contracts/agent.contract.ts +22 -12
- package/src/contracts/agents.contract.ts +6 -6
- package/src/contracts/automations.contract.ts +2 -2
- package/src/contracts/capabilities.contract.ts +3 -4
- package/src/contracts/chores.contract.ts +2 -1
- package/src/contracts/ci.contract.ts +2 -2
- package/src/contracts/claude.contract.ts +2 -2
- package/src/contracts/cursor.contract.ts +2 -2
- package/src/contracts/drafts.contract.ts +2 -1
- package/src/contracts/endpoints.contract.ts +2 -1
- package/src/contracts/exit.contract.ts +2 -1
- package/src/contracts/extensions.contract.ts +5 -5
- package/src/contracts/git.contract.ts +19 -18
- package/src/contracts/grok.contract.ts +2 -1
- package/src/contracts/history.contract.ts +2 -1
- package/src/contracts/host.contract.ts +4 -1
- package/src/contracts/intentic.contract.ts +2 -1
- package/src/contracts/inventory.contract.ts +1 -1
- package/src/contracts/logs.contract.ts +7 -1
- package/src/contracts/loops.contract.ts +2 -2
- package/src/contracts/panels.contract.ts +2 -1
- package/src/contracts/personas.contract.ts +3 -3
- package/src/contracts/ports.contract.ts +3 -2
- package/src/contracts/prepush.contract.ts +2 -1
- package/src/contracts/providers.contract.ts +2 -1
- package/src/contracts/public.contract.ts +3 -2
- package/src/contracts/push.contract.ts +2 -1
- package/src/contracts/runner.contract.ts +33 -1
- package/src/contracts/secrets.contract.ts +2 -1
- package/src/contracts/sessions.contract.ts +1 -1
- package/src/contracts/settings.contract.ts +3 -9
- package/src/contracts/share.contract.ts +3 -2
- package/src/contracts/skills.contract.ts +2 -1
- package/src/contracts/system.contract.ts +6 -9
- package/src/contracts/translator.contract.ts +4 -1
- package/src/contracts/usage.contract.ts +1 -1
- package/src/contracts/vpn.contract.ts +2 -8
- package/src/contracts/webext.contract.ts +37 -0
- package/src/contracts/workflows.contract.ts +2 -2
- package/src/contracts/workspace.contract.ts +10 -12
- package/src/conversation-ids.test.ts +1 -1
- package/src/definition-action.ts +8 -0
- package/src/definition.ts +235 -0
- package/src/events.ts +128 -22
- package/src/fast-tier.ts +1 -1
- package/src/history-state.ts +5 -0
- package/src/host-protocol.ts +1 -1
- package/src/hostnames.test.ts +2 -2
- package/src/index.ts +61 -1
- package/src/listener-protocol.ts +1 -1
- package/src/quick-model.ts +1 -1
- package/src/runner-protocol.ts +35 -5
- package/src/schemas/activity.ts +123 -0
- package/src/schemas/agent.ts +409 -0
- package/src/schemas/agents.ts +802 -0
- package/src/schemas/automations.ts +510 -0
- package/src/schemas/capabilities.ts +729 -0
- package/src/schemas/ci.ts +235 -0
- package/src/schemas/claude-gate.ts +13 -0
- package/src/schemas/codebase-health.ts +64 -0
- package/src/schemas/computers.ts +287 -0
- package/src/schemas/drafts.ts +108 -0
- package/src/schemas/environment.ts +276 -0
- package/src/schemas/exit.ts +222 -0
- package/src/schemas/extension-updates.ts +322 -0
- package/src/schemas/fast-mode.ts +8 -0
- package/src/schemas/git-history.ts +265 -0
- package/src/schemas/git.ts +430 -0
- package/src/schemas/history.ts +112 -0
- package/src/schemas/hosts.ts +37 -0
- package/src/schemas/intentic.ts +2 -0
- package/src/schemas/internal.ts +17 -0
- package/src/schemas/inventory.ts +68 -0
- package/src/schemas/logs.ts +96 -0
- package/src/schemas/loops.ts +401 -0
- package/src/schemas/maintenance.ts +421 -0
- package/src/schemas/marketplace.ts +23 -0
- package/src/schemas/panels.ts +99 -0
- package/src/schemas/personas.ts +281 -0
- package/src/schemas/plan-limits.ts +255 -0
- package/src/schemas/ports.ts +84 -0
- package/src/schemas/provider-oauth.ts +191 -0
- package/src/schemas/provider-subscriptions.ts +11 -0
- package/src/schemas/public.ts +52 -0
- package/src/schemas/push.ts +112 -0
- package/src/schemas/secrets.ts +68 -0
- package/src/schemas/sessions.ts +16 -0
- package/src/schemas/settings.ts +932 -0
- package/src/schemas/share.ts +71 -0
- package/src/schemas/shared.ts +32 -0
- package/src/schemas/system.ts +156 -0
- package/src/schemas/terminal.ts +286 -0
- package/src/schemas/usage.ts +303 -0
- package/src/{schemas.test.ts → schemas/version-seam.test.ts} +4 -2
- package/src/schemas/vpn.ts +215 -0
- package/src/schemas/webext.ts +79 -0
- package/src/schemas/workflows.ts +413 -0
- package/src/schemas/workspace-repos.ts +123 -0
- package/src/schemas/workspace-search.ts +141 -0
- package/src/schemas/workspace-setup.ts +43 -0
- package/src/schemas/workspace-tree.ts +234 -0
- package/src/title.test.ts +1 -1
- package/src/webext-links.ts +80 -0
- package/src/webext-protocol.ts +27 -0
- package/src/workflow-faults.test.ts +1 -1
- package/src/workflow-faults.ts +1 -1
- package/src/workspace-state.test.ts +7 -3
- package/src/workspace-state.ts +27 -13
- package/dist/schemas.d.ts +0 -9800
- package/dist/schemas.d.ts.map +0 -1
- package/dist/schemas.js +0 -4252
- package/dist/schemas.js.map +0 -1
- package/src/schemas.ts +0 -9999
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AdmissionPolicySchema, AdmissionRuleSchema, CommandClassSchema } from "./agent.js";
|
|
3
|
+
export const SystemPromptModeSchema = z.enum(["intentic", "claude", "custom"]);
|
|
4
|
+
export const BuiltinPromptSchema = z.object({ base: z.enum(["intentic", "claude"]) });
|
|
5
|
+
export const DependencyFreshnessSchema = z.enum(["off", "versions", "full"]);
|
|
6
|
+
export const RuleMomentSchema = z.enum([
|
|
7
|
+
"turn.ending",
|
|
8
|
+
"push.starting",
|
|
9
|
+
"agent.finished",
|
|
10
|
+
]);
|
|
11
|
+
export const RuleBuiltinSchema = z.enum(["verify-edits", "verify-removals", "verify-ui-edits"]);
|
|
12
|
+
export const RuleActionSchema = z.discriminatedUnion("kind", [
|
|
13
|
+
z.object({
|
|
14
|
+
kind: z.literal("command"),
|
|
15
|
+
command: z.string().max(500),
|
|
16
|
+
timeoutMs: z.number().min(60_000).max(3_600_000).default(900_000),
|
|
17
|
+
}),
|
|
18
|
+
z.object({ kind: z.literal("instruct"), text: z.string().min(1).max(4000) }),
|
|
19
|
+
z.object({ kind: z.literal("verdict"), verdict: z.enum(["allow", "hold"]) }),
|
|
20
|
+
z.object({ kind: z.literal("builtin"), name: RuleBuiltinSchema }),
|
|
21
|
+
]);
|
|
22
|
+
export const RuleConditionSchema = z.object({
|
|
23
|
+
repo: z.string().min(1).optional(),
|
|
24
|
+
paths: z.array(z.string().min(1)).max(20).optional(),
|
|
25
|
+
outcome: z.array(z.enum(["clean", "error", "conflict"])).optional(),
|
|
26
|
+
});
|
|
27
|
+
const MOMENT_ACTIONS = {
|
|
28
|
+
"turn.ending": ["builtin", "instruct", "command"],
|
|
29
|
+
"push.starting": ["command"],
|
|
30
|
+
"agent.finished": ["verdict"],
|
|
31
|
+
};
|
|
32
|
+
export const RuleSchema = z
|
|
33
|
+
.object({
|
|
34
|
+
id: z.string().regex(/^[a-z0-9][a-z0-9-]*$/),
|
|
35
|
+
label: z.string().min(1).max(80),
|
|
36
|
+
moment: RuleMomentSchema,
|
|
37
|
+
when: RuleConditionSchema.optional(),
|
|
38
|
+
action: RuleActionSchema,
|
|
39
|
+
enabled: z.boolean().default(true),
|
|
40
|
+
})
|
|
41
|
+
.refine((rule) => MOMENT_ACTIONS[rule.moment].includes(rule.action.kind), {
|
|
42
|
+
message: "that action cannot stand at that moment",
|
|
43
|
+
path: ["action"],
|
|
44
|
+
});
|
|
45
|
+
export const RuleFiringsSchema = z.record(z.string(), z.number());
|
|
46
|
+
export const SkillOriginSchema = z.enum(["builtin", "own", "capability", "extension", "plugin", "persona", "dropped"]);
|
|
47
|
+
export const SkillNameSchema = z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "a skill name is lowercase letters, digits and dashes");
|
|
48
|
+
export const SkillSummarySchema = z.object({
|
|
49
|
+
id: z
|
|
50
|
+
.string()
|
|
51
|
+
.describe("Its handle, which reading and deleting take. A skill of your own is simply its name; one belonging to something else is qualified, because two packages may each ship a review."),
|
|
52
|
+
name: z.string().describe("Its name."),
|
|
53
|
+
description: z
|
|
54
|
+
.string()
|
|
55
|
+
.describe("What it is for, which is the line the agent reads to decide whether to reach for it. Empty when the skill declares none, which is worth showing as the blank it is: a skill with no description is rarely picked."),
|
|
56
|
+
origin: SkillOriginSchema.describe("Where it came from."),
|
|
57
|
+
owner: z.string().optional().describe("Who ships it, as the row would name them."),
|
|
58
|
+
enabled: z.boolean().describe("Whether the agent can reach it."),
|
|
59
|
+
switchable: z
|
|
60
|
+
.boolean()
|
|
61
|
+
.describe("Whether this surface can switch it. Everything else is on because its extension or its plugin is, and a switch here that silently did nothing would be worse than none, so the row names its owner instead."),
|
|
62
|
+
editable: z
|
|
63
|
+
.boolean()
|
|
64
|
+
.describe("Whether it can be rewritten here. Your own only: editing somebody else's in place would be undone the next time the thing that ships it catches up."),
|
|
65
|
+
removable: z.boolean(),
|
|
66
|
+
});
|
|
67
|
+
export const SkillsListSchema = z.array(SkillSummarySchema);
|
|
68
|
+
export const SkillBodySchema = z.object({
|
|
69
|
+
id: z.string().describe("The skill's id, which can carry the owner it came from."),
|
|
70
|
+
name: z.string().describe("Its name."),
|
|
71
|
+
body: z.string().describe("The instructions themselves, as written."),
|
|
72
|
+
});
|
|
73
|
+
export const SkillIdSchema = z.object({
|
|
74
|
+
id: z
|
|
75
|
+
.string()
|
|
76
|
+
.min(1)
|
|
77
|
+
.describe("Which skill. It travels in the query rather than the address, because an id can name the owner it came from and that will not fit in a path."),
|
|
78
|
+
});
|
|
79
|
+
export const SkillDraftSchema = z.object({
|
|
80
|
+
name: SkillNameSchema.describe("What to call it. Saving over an existing name rewrites it, which is also how one is renamed."),
|
|
81
|
+
description: z.string().min(1).max(1024).describe("What it is for, which is what the agent reads to decide whether to reach for it."),
|
|
82
|
+
body: z.string().min(1).describe("The skill itself."),
|
|
83
|
+
});
|
|
84
|
+
export const SkillRemoveSchema = z.object({
|
|
85
|
+
name: SkillNameSchema.describe("Which skill to delete. The text and the enabled list are both updated, so nothing is left half done."),
|
|
86
|
+
});
|
|
87
|
+
export const SandboxSettingsSchema = z.object({
|
|
88
|
+
stableSystemPrompt: z
|
|
89
|
+
.boolean()
|
|
90
|
+
.default(false)
|
|
91
|
+
.describe("Keep the instructions identical between turns so the provider can cache them, moving anything that varies into the message instead. Cheaper, at the cost of some flexibility."),
|
|
92
|
+
skills: z.array(z.string()).default(["lsp", "fileq"]).describe("Which skills are switched on."),
|
|
93
|
+
hashlineEdits: z
|
|
94
|
+
.boolean()
|
|
95
|
+
.default(false)
|
|
96
|
+
.describe("Have the agent edit files by line number rather than by quoting the text it wants replaced. Cheaper on large files, and less forgiving of a stale read."),
|
|
97
|
+
terseOutput: z.boolean().default(false).describe("Ask the agent to say less. It changes how much it narrates, not how much it does."),
|
|
98
|
+
terseHoldout: z
|
|
99
|
+
.number()
|
|
100
|
+
.min(0)
|
|
101
|
+
.max(1)
|
|
102
|
+
.default(0)
|
|
103
|
+
.describe("What share of turns to run without that instruction, so the two can be compared honestly. It has to be measured this way, because a turn cannot be re-run to see what it would have said. Zero means no measurement, which is the default, since the comparison costs the very tokens it is measuring."),
|
|
104
|
+
systemPromptMode: SystemPromptModeSchema.default("intentic").describe("Which instructions the agent starts from: intentic's own, the ones the installed Claude Code carries, or your own. The first two both get this product's own guidance added on top; your own gets nothing added, which is the point of it."),
|
|
105
|
+
systemPrompt: z
|
|
106
|
+
.string()
|
|
107
|
+
.max(20000)
|
|
108
|
+
.default("")
|
|
109
|
+
.describe("Your own instructions, used only when the mode above says custom. Then it is the whole of them: both built-in bases go, and so does everything this product would otherwise add, including the guidance the chat's own cards are driven by. That is the price of total control."),
|
|
110
|
+
iqSearch: z
|
|
111
|
+
.boolean()
|
|
112
|
+
.default(false)
|
|
113
|
+
.describe("Teach the agent how to use this workspace's own search tool, rather than leaving it to grep around."),
|
|
114
|
+
iqSearchHoldout: z
|
|
115
|
+
.number()
|
|
116
|
+
.min(0)
|
|
117
|
+
.max(1)
|
|
118
|
+
.default(0)
|
|
119
|
+
.describe("What share of conversations to run without that teaching, so the two can be compared. Whole conversations rather than individual turns, because once the teaching is in a session, withholding it from the next request does not make the model forget it."),
|
|
120
|
+
workspaceMap: z
|
|
121
|
+
.boolean()
|
|
122
|
+
.default(false)
|
|
123
|
+
.describe("Open every conversation with a map of the project it starts in: what is in it, what each part is for, and where the agent is standing. Worked out fresh each time rather than written down anywhere, because a written layout is wrong within a fortnight. Off by default, since it spends tokens on the first message of every conversation."),
|
|
124
|
+
sidecars: z
|
|
125
|
+
.boolean()
|
|
126
|
+
.default(false)
|
|
127
|
+
.describe("Keep an up-to-date markdown rendering of every document, image and audio file in the workspace, made in the background as files land, so the agent reads a pre-derived text instead of paying to parse the file mid-task. Costs background CPU on a document-heavy workspace, so it is a switch rather than a default."),
|
|
128
|
+
dependencyFreshness: DependencyFreshnessSchema.default("off")
|
|
129
|
+
.describe("Whether a version the agent is about to pin is checked against the package's own registry first. Facts only, or facts plus the name of a maintained replacement where the registry agrees the current choice has been abandoned. It tells the agent and lets it decide rather than refusing, because matching a version your project already uses is usually the right answer and a gate would fight it."),
|
|
130
|
+
outputCleaners: z
|
|
131
|
+
.string()
|
|
132
|
+
.default("")
|
|
133
|
+
.describe("Which command outputs to trim before the agent reads them, cutting the noise a build tool prints without cutting what it said."),
|
|
134
|
+
outputHoldout: z
|
|
135
|
+
.number()
|
|
136
|
+
.min(0)
|
|
137
|
+
.max(1)
|
|
138
|
+
.default(0)
|
|
139
|
+
.describe("What share of commands to leave untrimmed, so the saving can be measured against a real comparison rather than estimated."),
|
|
140
|
+
quickModel: z
|
|
141
|
+
.array(z.string())
|
|
142
|
+
.max(10)
|
|
143
|
+
.default([])
|
|
144
|
+
.describe("Which models do the small automatic jobs that are not a conversation, such as writing a commit message. A list rather than one pick, tried in order, because the interesting failure is a model that is connected and simply will not answer today. Empty means work it out from whatever is connected, which improves by itself as accounts are added."),
|
|
145
|
+
changelogRepos: z
|
|
146
|
+
.array(z.string())
|
|
147
|
+
.max(50)
|
|
148
|
+
.default([])
|
|
149
|
+
.describe("Which repositories keep a changelog, and so get a user-facing note written alongside each merge. A list rather than a switch, and empty by default, because the commit writer's standing rule is to copy the house style rather than impose one, and a repository that has never written such a note gives it nothing to copy."),
|
|
150
|
+
agentRunModels: z
|
|
151
|
+
.array(z.string())
|
|
152
|
+
.max(10)
|
|
153
|
+
.default([])
|
|
154
|
+
.describe("Which models run the work a screen starts rather than a person: fixing a red pipeline, a maintenance chore, an acceptance run. Tried in order, so one spent account does not take every such run down. Empty falls back to whatever the chat would have used, which is the honest floor because it is the model you already chose to work with."),
|
|
155
|
+
agentRunEffort: z.string().default("").describe("How hard those runs should think."),
|
|
156
|
+
autoTier: z
|
|
157
|
+
.enum(["off", "shadow", "on"])
|
|
158
|
+
.default("shadow")
|
|
159
|
+
.describe("Whether an easy-looking turn may run on a cheaper model from the same provider. Three states rather than a switch, because the middle one is the only honest road to the third: it scores every turn and routes nothing, so the guess can become a measurement before it changes anything. It can only ever route down, so the worst case is one turn's quality rather than a bill nobody asked for."),
|
|
160
|
+
autoTierEagerness: z
|
|
161
|
+
.enum(["cautious", "balanced", "eager"])
|
|
162
|
+
.default("balanced")
|
|
163
|
+
.describe("How readily a turn counts as simple enough for the cheaper model. It moves only the cutoff: at every setting a turn still has to say something positively easy, so nothing here can downgrade a short vague request."),
|
|
164
|
+
autoFastModels: z
|
|
165
|
+
.array(z.string())
|
|
166
|
+
.max(10)
|
|
167
|
+
.default([])
|
|
168
|
+
.describe("Which cheaper model a downgraded turn lands on. A list so a sandbox spanning providers can name a rung on each, but not a fallback ladder: an entry naming a different provider than the turn is on is skipped rather than tried, because switching provider retires the conversation and starting over to save a fraction of a penny is not a saving. Empty picks the cheapest the turn's own provider publishes."),
|
|
169
|
+
agentRetentionDays: z
|
|
170
|
+
.number()
|
|
171
|
+
.min(0)
|
|
172
|
+
.max(365)
|
|
173
|
+
.default(3)
|
|
174
|
+
.describe("How many days a finished conversation stays on the board before being put away. Zero means never. The one setting here that defaults on, because each card left behind is a real working copy on disk, not just a row."),
|
|
175
|
+
resumeAfterOutage: z
|
|
176
|
+
.boolean()
|
|
177
|
+
.default(false)
|
|
178
|
+
.describe("Whether a turn killed by the model provider failing is re-run automatically, backing off between attempts. The sandbox-wide default; any one conversation can say otherwise. Off to begin with, because a retry spends your allowance on a turn you sent once and only you can say whether it was worth paying for twice. Worth turning on for a sandbox whose work mostly happens with nobody in the room."),
|
|
179
|
+
autoResumeOnRestart: z
|
|
180
|
+
.boolean()
|
|
181
|
+
.default(false)
|
|
182
|
+
.describe("Whether a turn killed by the sandbox restarting is re-run once it comes back. Off to begin with, for the same reason: it would spend your allowance on work you are not watching and edit files while you are still waiting for the sandbox to return. Either way the interruption is recorded rather than silently lost."),
|
|
183
|
+
rules: z
|
|
184
|
+
.array(RuleSchema)
|
|
185
|
+
.max(50)
|
|
186
|
+
.default([])
|
|
187
|
+
.describe("Standing instructions you give the sandbox about its own work: ask for proof before a turn ends, run something before a push, hold or release finished work. Empty is the default and is exactly the behaviour of a fresh sandbox, because each of those defaults is what no rule matched means at its own moment."),
|
|
188
|
+
automationFailureLimit: z
|
|
189
|
+
.number()
|
|
190
|
+
.min(0)
|
|
191
|
+
.max(20)
|
|
192
|
+
.default(0)
|
|
193
|
+
.describe("How many failures in a row before an automation switches itself off. Zero means never, which is the default, because the failure is not always the automation's fault and a job disabled at three in the morning is one nobody re-enables. Only real errors count: a guard deciding there was nothing to do, or the sandbox dying mid-run, say nothing about the automation."),
|
|
194
|
+
admission: AdmissionPolicySchema.prefault({}).describe("Whether work started from outside may run, per kind of trigger: let it, hold it for approval, or refuse it. Composes with each automation's own setting, and the stricter of the two wins, so holding every visitor's message needs no edit to each automation."),
|
|
195
|
+
actionRules: z
|
|
196
|
+
.record(z.string(), AdmissionRuleSchema)
|
|
197
|
+
.default({})
|
|
198
|
+
.describe("What an agent may do out in the world, per kind of action: go ahead, ask first, or never."),
|
|
199
|
+
commandRules: z
|
|
200
|
+
.partialRecord(CommandClassSchema, AdmissionRuleSchema)
|
|
201
|
+
.default({})
|
|
202
|
+
.describe("What an agent may run inside the sandbox, for the six kinds of command that are hard to take back: rewriting git history, deleting recursively, wiping a disk or a container volume, reading credential files, publishing a package, reaching out to the network. Everything else is recoverable in a container that is itself disposable, and gating it would be friction bought with nothing. Leaving a kind unset is not the same as allowing it: wiping a disk is held for your approval until you say otherwise, because nothing here brings that back."),
|
|
203
|
+
explainCommands: z
|
|
204
|
+
.boolean()
|
|
205
|
+
.default(false)
|
|
206
|
+
.describe("Have the quick model describe each held command in one plain sentence, above the command itself. Costs one quick-model call per card raised, on your own connected account. The command is always still there to read."),
|
|
207
|
+
subagentsAtOnce: z.number().min(1).max(200).default(20).describe("How many helper agents may work at the same time."),
|
|
208
|
+
subagentsPerTurn: z.number().min(1).max(2000).default(200).describe("How many a single turn may start in total."),
|
|
209
|
+
subagentDepth: z
|
|
210
|
+
.number()
|
|
211
|
+
.min(1)
|
|
212
|
+
.max(10)
|
|
213
|
+
.default(3)
|
|
214
|
+
.describe("How many levels deep the delegation may go, since a helper can start helpers of its own."),
|
|
215
|
+
});
|
|
216
|
+
export const BuiltinPromptTextSchema = z.object({ text: z.string(), version: z.string() });
|
|
217
|
+
export const SavingsStageSchema = z.object({ id: z.string(), commands: z.number(), savedTokens: z.number() });
|
|
218
|
+
export const InputSavingsSchema = z.object({
|
|
219
|
+
updatedAt: z.number().optional(),
|
|
220
|
+
commands: z.number(),
|
|
221
|
+
rawTokens: z.number(),
|
|
222
|
+
emittedTokens: z.number(),
|
|
223
|
+
savedPct: z.number(),
|
|
224
|
+
perCleaner: z.array(SavingsStageSchema),
|
|
225
|
+
holdout: z.object({ cleaned: z.number(), heldOut: z.number(), measuredSavedPct: z.number().optional() }),
|
|
226
|
+
gaps: z.array(z.object({ command: z.string(), commands: z.number(), tokens: z.number() })),
|
|
227
|
+
});
|
|
228
|
+
export const SavingsArmSchema = z.object({ turns: z.number(), mean: z.number() });
|
|
229
|
+
export const TurnMetricReadingSchema = z.object({
|
|
230
|
+
metric: z.enum(["proseChars", "searchCalls", "openingSearches"]),
|
|
231
|
+
on: SavingsArmSchema,
|
|
232
|
+
off: SavingsArmSchema,
|
|
233
|
+
controlTurnsNeeded: z.number().optional(),
|
|
234
|
+
marginPct: z.number().optional(),
|
|
235
|
+
deltaPct: z.number().optional(),
|
|
236
|
+
saved: z.number().optional(),
|
|
237
|
+
});
|
|
238
|
+
export const TurnExperimentSchema = z.object({
|
|
239
|
+
metrics: z.tuple([TurnMetricReadingSchema], TurnMetricReadingSchema),
|
|
240
|
+
minTurns: z.number(),
|
|
241
|
+
sampleUnit: z.enum(["turns", "conversations"]).optional(),
|
|
242
|
+
cohort: z.string().optional(),
|
|
243
|
+
});
|
|
244
|
+
export const TierReportSchema = z.object({
|
|
245
|
+
judged: z.number(),
|
|
246
|
+
fast: z.number(),
|
|
247
|
+
atStakeUsd: z.number(),
|
|
248
|
+
routed: z.number(),
|
|
249
|
+
routedUsd: z.number(),
|
|
250
|
+
escalated: z.number(),
|
|
251
|
+
denied: z.number(),
|
|
252
|
+
});
|
|
253
|
+
export const SavingsReportSchema = z.object({
|
|
254
|
+
input: InputSavingsSchema,
|
|
255
|
+
output: TurnExperimentSchema.optional(),
|
|
256
|
+
search: TurnExperimentSchema.optional(),
|
|
257
|
+
tier: TierReportSchema.optional(),
|
|
258
|
+
});
|
|
259
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/schemas/settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAK5F,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAI/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,C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MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAKzC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAIpE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IAGpB,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,EAAE;IAGzD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAgBH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAErC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAElB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAIhB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IAEtB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IAKrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IAErB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,kBAAkB;IACzB,MAAM,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAEvC,IAAI,EAAE,gBAAgB,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ShareDetailSchema: z.ZodEnum<{
|
|
3
|
+
everything: "everything";
|
|
4
|
+
messages: "messages";
|
|
5
|
+
}>;
|
|
6
|
+
export type ShareDetail = z.infer<typeof ShareDetailSchema>;
|
|
7
|
+
export declare const SharedConversationSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
conversationId: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
detail: z.ZodEnum<{
|
|
12
|
+
everything: "everything";
|
|
13
|
+
messages: "messages";
|
|
14
|
+
}>;
|
|
15
|
+
sharedAt: z.ZodNumber;
|
|
16
|
+
messages: z.ZodNumber;
|
|
17
|
+
url: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type SharedConversation = z.infer<typeof SharedConversationSchema>;
|
|
20
|
+
export declare const ShareListSchema: z.ZodObject<{
|
|
21
|
+
shares: z.ZodArray<z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
conversationId: z.ZodString;
|
|
24
|
+
title: z.ZodString;
|
|
25
|
+
detail: z.ZodEnum<{
|
|
26
|
+
everything: "everything";
|
|
27
|
+
messages: "messages";
|
|
28
|
+
}>;
|
|
29
|
+
sharedAt: z.ZodNumber;
|
|
30
|
+
messages: z.ZodNumber;
|
|
31
|
+
url: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type ShareList = z.infer<typeof ShareListSchema>;
|
|
35
|
+
export declare const ShareCreateSchema: z.ZodObject<{
|
|
36
|
+
conversationId: z.ZodString;
|
|
37
|
+
title: z.ZodString;
|
|
38
|
+
detail: z.ZodEnum<{
|
|
39
|
+
everything: "everything";
|
|
40
|
+
messages: "messages";
|
|
41
|
+
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const ShareUpdateSchema: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export declare const ShareRemoveSchema: z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
//# sourceMappingURL=share.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../src/schemas/share.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,iBAAiB;;;EAAqC,CAAC;AACpE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBA6BnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,eAAO,MAAM,eAAe;;;;;;;;;;;;;iBAAwH,CAAC;AACrJ,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAIxD,eAAO,MAAM,iBAAiB;;;;;;;iBAM5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;iBAE5B,CAAC;AACH,eAAO,MAAM,iBAAiB;;iBAA4E,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ShareDetailSchema = z.enum(["messages", "everything"]);
|
|
3
|
+
export const SharedConversationSchema = z.object({
|
|
4
|
+
id: z
|
|
5
|
+
.string()
|
|
6
|
+
.describe("The share's own id, minted fresh each time, so sharing one conversation twice gives two links. Deliberately not the conversation's id, which is memorable by design and would make a page's address guessable."),
|
|
7
|
+
conversationId: z.string().describe("Which conversation it was taken from."),
|
|
8
|
+
title: z.string().describe("The title on the page, which is the sharer's choice rather than the conversation's own."),
|
|
9
|
+
detail: ShareDetailSchema.describe("How much travels: the two speakers' words alone, or the whole record including the agent's work and thinking, which necessarily publishes the code and command output in it."),
|
|
10
|
+
sharedAt: z
|
|
11
|
+
.number()
|
|
12
|
+
.describe("When the snapshot was taken, in milliseconds. A share is frozen, so this dates what a recipient can see rather than when the conversation happened."),
|
|
13
|
+
messages: z.number().describe("How many messages are behind the link."),
|
|
14
|
+
url: z.string().optional().describe("The page's address. Absent on a sandbox with nowhere to publish to."),
|
|
15
|
+
});
|
|
16
|
+
export const ShareListSchema = z.object({ shares: z.array(SharedConversationSchema).describe("Every conversation currently published as a page.") });
|
|
17
|
+
export const ShareCreateSchema = z.object({
|
|
18
|
+
conversationId: z.string().min(1).describe("Which conversation to publish."),
|
|
19
|
+
title: z.string().min(1).max(80).describe("The title for the page. The conversation's own name is only what a dialog would open with."),
|
|
20
|
+
detail: ShareDetailSchema.describe("How much to publish. Two levels rather than a set of switches, because every extra toggle is another thing to get wrong about a link that cannot be recalled."),
|
|
21
|
+
});
|
|
22
|
+
export const ShareUpdateSchema = z.object({
|
|
23
|
+
id: z.string().min(1).describe("Which share to re-take. Its link stays the same, which matters because it has already been sent."),
|
|
24
|
+
});
|
|
25
|
+
export const ShareRemoveSchema = z.object({ id: z.string().min(1).describe("Which share to take down.") });
|
|
26
|
+
//# sourceMappingURL=share.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"share.js","sourceRoot":"","sources":["../../src/schemas/share.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC;AAGpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAK7C,EAAE,EAAE,CAAC;SACA,MAAM,EAAE;SACR,QAAQ,CACL,gNAAgN,CACnN;IAGL,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAC5E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yFAAyF,CAAC;IACrH,MAAM,EAAE,iBAAiB,CAAC,QAAQ,CAC9B,8KAA8K,CACjL;IAGD,QAAQ,EAAE,CAAC;SACN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export declare const OkSchema: z.ZodObject<{
|
|
3
|
+
ok: z.ZodLiteral<true>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const MemberRoleSchema: z.ZodEnum<{
|
|
6
|
+
collaborator: "collaborator";
|
|
7
|
+
maintainer: "maintainer";
|
|
8
|
+
owner: "owner";
|
|
9
|
+
viewer: "viewer";
|
|
10
|
+
}>;
|
|
11
|
+
export type MemberRole = z.infer<typeof MemberRoleSchema>;
|
|
12
|
+
export declare const GrantedRoleSchema: z.ZodEnum<{
|
|
13
|
+
collaborator: "collaborator";
|
|
14
|
+
maintainer: "maintainer";
|
|
15
|
+
viewer: "viewer";
|
|
16
|
+
}>;
|
|
17
|
+
export type GrantedRole = z.infer<typeof GrantedRoleSchema>;
|
|
18
|
+
export declare const roleAtLeast: (role: MemberRole, floor: MemberRole) => boolean;
|
|
19
|
+
export declare const RepoParamSchema: z.ZodObject<{
|
|
20
|
+
repo: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/schemas/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,QAAQ;;iBAInB,CAAC;AAKH,eAAO,MAAM,gBAAgB;;;;;EAA4D,CAAC;AAC1F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,iBAAiB;;;;EAAmD,CAAC;AAClF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAI5D,eAAO,MAAM,WAAW,SAAU,UAAU,SAAS,UAAU,KAAG,OAA4D,CAAC;AAK/H,eAAO,MAAM,eAAe;;iBAM1B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const OkSchema = z.object({
|
|
3
|
+
ok: z
|
|
4
|
+
.literal(true)
|
|
5
|
+
.describe("Always true. A route that answers this either did the thing or refused with a status; there is no third outcome to report."),
|
|
6
|
+
});
|
|
7
|
+
export const MemberRoleSchema = z.enum(["viewer", "collaborator", "maintainer", "owner"]);
|
|
8
|
+
export const GrantedRoleSchema = z.enum(["viewer", "collaborator", "maintainer"]);
|
|
9
|
+
const MEMBER_ROLE_RANK = { viewer: 0, collaborator: 1, maintainer: 2, owner: 3 };
|
|
10
|
+
export const roleAtLeast = (role, floor) => MEMBER_ROLE_RANK[role] >= MEMBER_ROLE_RANK[floor];
|
|
11
|
+
export const RepoParamSchema = z.object({
|
|
12
|
+
repo: z
|
|
13
|
+
.string()
|
|
14
|
+
.describe('Which repository. "root" is the workspace itself; anything else is a repository\'s folder relative to the workspace root, URL-encoded.'),
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/schemas/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,EAAE,EAAE,CAAC;SACA,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,4HAA4H,CAAC;CAC9I,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;AAG1F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC;AAIlF,MAAM,gBAAgB,GAA+B,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC7G,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAgB,EAAE,KAAiB,EAAW,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAK/H,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,CAAC;SACF,MAAM,EAAE;SACR,QAAQ,CACL,wIAAwI,CAC3I;CACR,CAAC,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AdapterHealthSchema: z.ZodObject<{
|
|
3
|
+
state: z.ZodEnum<{
|
|
4
|
+
ready: "ready";
|
|
5
|
+
unavailable: "unavailable";
|
|
6
|
+
unknown: "unknown";
|
|
7
|
+
}>;
|
|
8
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
9
|
+
checkedAt: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type AdapterHealthReport = z.infer<typeof AdapterHealthSchema>;
|
|
12
|
+
export declare const StagedUpdateSchema: z.ZodObject<{
|
|
13
|
+
version: z.ZodOptional<z.ZodString>;
|
|
14
|
+
channel: z.ZodString;
|
|
15
|
+
at: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type StagedUpdate = z.infer<typeof StagedUpdateSchema>;
|
|
18
|
+
export declare const InfoSchema: z.ZodObject<{
|
|
19
|
+
name: z.ZodOptional<z.ZodString>;
|
|
20
|
+
image: z.ZodOptional<z.ZodString>;
|
|
21
|
+
version: z.ZodOptional<z.ZodString>;
|
|
22
|
+
latest: z.ZodOptional<z.ZodString>;
|
|
23
|
+
updateAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
25
|
+
state: z.ZodEnum<{
|
|
26
|
+
ready: "ready";
|
|
27
|
+
unavailable: "unavailable";
|
|
28
|
+
unknown: "unknown";
|
|
29
|
+
}>;
|
|
30
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
31
|
+
checkedAt: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
34
|
+
previousImage: z.ZodOptional<z.ZodString>;
|
|
35
|
+
updateNotes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
moreUpdateNotes: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
breakingNotes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
staged: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
version: z.ZodOptional<z.ZodString>;
|
|
40
|
+
channel: z.ZodString;
|
|
41
|
+
at: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type Info = z.infer<typeof InfoSchema>;
|
|
45
|
+
export declare const ManifestProblemSchema: z.ZodObject<{
|
|
46
|
+
kind: z.ZodEnum<{
|
|
47
|
+
invalidEntry: "invalidEntry";
|
|
48
|
+
unknownKey: "unknownKey";
|
|
49
|
+
unreadable: "unreadable";
|
|
50
|
+
}>;
|
|
51
|
+
detail: z.ZodString;
|
|
52
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type ManifestProblem = z.infer<typeof ManifestProblemSchema>;
|
|
55
|
+
export declare const ManifestProblemReportSchema: z.ZodObject<{
|
|
56
|
+
path: z.ZodString;
|
|
57
|
+
problems: z.ZodArray<z.ZodObject<{
|
|
58
|
+
kind: z.ZodEnum<{
|
|
59
|
+
invalidEntry: "invalidEntry";
|
|
60
|
+
unknownKey: "unknownKey";
|
|
61
|
+
unreadable: "unreadable";
|
|
62
|
+
}>;
|
|
63
|
+
detail: z.ZodString;
|
|
64
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type ManifestProblemReport = z.infer<typeof ManifestProblemReportSchema>;
|
|
68
|
+
export declare const ManifestProblemsSchema: z.ZodArray<z.ZodObject<{
|
|
69
|
+
path: z.ZodString;
|
|
70
|
+
problems: z.ZodArray<z.ZodObject<{
|
|
71
|
+
kind: z.ZodEnum<{
|
|
72
|
+
invalidEntry: "invalidEntry";
|
|
73
|
+
unknownKey: "unknownKey";
|
|
74
|
+
unreadable: "unreadable";
|
|
75
|
+
}>;
|
|
76
|
+
detail: z.ZodString;
|
|
77
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
export declare const DaemonSessionSchema: z.ZodObject<{
|
|
81
|
+
token: z.ZodString;
|
|
82
|
+
expiresAt: z.ZodNumber;
|
|
83
|
+
email: z.ZodString;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type DaemonSession = z.infer<typeof DaemonSessionSchema>;
|
|
86
|
+
//# sourceMappingURL=system.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../src/schemas/system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,mBAAmB;;;;;;;;iBAS9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AActE,eAAO,MAAM,kBAAkB;;;;iBAa7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;iBA+DrB,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAiB9C,eAAO,MAAM,qBAAqB;;;;;;;;iBAQhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAKtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,eAAO,MAAM,sBAAsB;;;;;;;;;;;kBAAuC,CAAC;AAI3E,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const AdapterHealthSchema = z.object({
|
|
3
|
+
state: z
|
|
4
|
+
.enum(["ready", "unavailable", "unknown"])
|
|
5
|
+
.describe("Whether this runtime can serve a turn. Unknown is a real answer rather than a soft no: a check that could not run must not grey out a provider you can in fact use."),
|
|
6
|
+
detail: z.string().optional().describe("Why it cannot, and what to do about it. Absent when it can."),
|
|
7
|
+
checkedAt: z.number().describe("When it was last checked, in milliseconds."),
|
|
8
|
+
});
|
|
9
|
+
export const StagedUpdateSchema = z.object({
|
|
10
|
+
version: z.string().optional().describe("What the downloaded build says it is. Absent means ready but unnamed, never that nothing is ready."),
|
|
11
|
+
channel: z
|
|
12
|
+
.string()
|
|
13
|
+
.describe("Which channel it was taken from. Not necessarily the one this sandbox follows: downloading a beta build is not the same as moving onto beta."),
|
|
14
|
+
at: z.number().describe("When the download finished, in milliseconds, which answers whether this is still the update being offered."),
|
|
15
|
+
});
|
|
16
|
+
export const InfoSchema = z.object({
|
|
17
|
+
name: z.string().optional().describe("What this sandbox is called."),
|
|
18
|
+
image: z.string().optional().describe("The image it is running."),
|
|
19
|
+
version: z.string().optional().describe("The version of that image."),
|
|
20
|
+
latest: z.string().optional().describe("The newest published version on its channel."),
|
|
21
|
+
updateAvailable: z.boolean().optional().describe("Whether those two differ."),
|
|
22
|
+
runtimes: z
|
|
23
|
+
.record(z.string(), AdapterHealthSchema)
|
|
24
|
+
.optional()
|
|
25
|
+
.describe("Which agent runtimes can serve a turn right now, keyed by runtime. Absent until the first check has run, which reads the same as every entry being unknown."),
|
|
26
|
+
channel: z.string().optional().describe("Which release channel this sandbox follows."),
|
|
27
|
+
previousImage: z
|
|
28
|
+
.string()
|
|
29
|
+
.optional()
|
|
30
|
+
.describe("The image the last update replaced, which is what a rollback would return to. Absent means there is nothing to go back to."),
|
|
31
|
+
updateNotes: z
|
|
32
|
+
.array(z.string())
|
|
33
|
+
.optional()
|
|
34
|
+
.describe("What is in the update, in the words of the people it is for, newest first. Absent or empty whenever there is nothing worth saying, which reads on screen exactly as it did before there were notes at all."),
|
|
35
|
+
moreUpdateNotes: z
|
|
36
|
+
.number()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe("How many further notes there are beyond the ones sent, for a sandbox left alone a long time. Absent or zero means you have all of them."),
|
|
39
|
+
breakingNotes: z
|
|
40
|
+
.array(z.string())
|
|
41
|
+
.optional()
|
|
42
|
+
.describe("What the update takes away, uncapped, because a warning that fell off a shortened list is a breaking update taken unwarned. Absent for the overwhelming majority, which break nothing."),
|
|
43
|
+
staged: StagedUpdateSchema.optional().describe("An update already downloaded and built on the machine running this container, waiting only for the restart that applies it. That restart is seconds, where an unprepared update is minutes, which is a different decision entirely. Absent when nothing is waiting."),
|
|
44
|
+
});
|
|
45
|
+
export const ManifestProblemSchema = z.object({
|
|
46
|
+
kind: z
|
|
47
|
+
.enum(["unreadable", "unknownKey", "invalidEntry"])
|
|
48
|
+
.describe("What to do about it. Unreadable means the whole file is being ignored and everything in it is at its default. An unknown key means only that key is ignored. An invalid entry means one item of a list was skipped and the rest is fine."),
|
|
49
|
+
detail: z.string().describe("What exactly was wrong."),
|
|
50
|
+
suggestion: z.string().optional().describe("The name it was probably meant to be, when one is close enough to guess honestly."),
|
|
51
|
+
});
|
|
52
|
+
export const ManifestProblemReportSchema = z.object({
|
|
53
|
+
path: z.string().describe("The file, as a workspace path. The file is the unit somebody fixes, which is why problems are grouped by it."),
|
|
54
|
+
problems: z
|
|
55
|
+
.array(ManifestProblemSchema)
|
|
56
|
+
.describe("Everything currently wrong with it. A file with nothing wrong is absent rather than present and empty."),
|
|
57
|
+
});
|
|
58
|
+
export const ManifestProblemsSchema = z.array(ManifestProblemReportSchema);
|
|
59
|
+
export const DaemonSessionSchema = z.object({
|
|
60
|
+
token: z.string().describe("The credential every other call carries. Present it as a bearer token."),
|
|
61
|
+
expiresAt: z.number().describe("When it stops working, in milliseconds, so a caller can renew ahead of it without reading the token."),
|
|
62
|
+
email: z.string().describe("Who the sandbox verified you as."),
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../src/schemas/system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,CAAC;SACH,IAAI,CAAC,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;SACzC,QAAQ,CACL,qKAAqK,CACxK;IAEL,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6DAA6D,CAAC;IACrG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;CAC/E,CAAC,CAAC;AAeH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAGvC,OAAO,EA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