@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,204 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AgentProviderSchema } from "./agent.js";
|
|
3
|
+
import { LandConflictSchema, LandedMessageSchema } from "./agents.js";
|
|
4
|
+
import { RefNameSchema } from "./internal.js";
|
|
5
|
+
import { RepoParamSchema } from "./shared.js";
|
|
6
|
+
export const CommitSchema = RepoParamSchema.extend({
|
|
7
|
+
message: z.string().min(1).describe("The commit message."),
|
|
8
|
+
all: z
|
|
9
|
+
.boolean()
|
|
10
|
+
.optional()
|
|
11
|
+
.describe("Stage every change in the repository first, then commit. An alternative to naming paths, not a companion to it."),
|
|
12
|
+
paths: z
|
|
13
|
+
.array(z.string().min(1))
|
|
14
|
+
.max(500)
|
|
15
|
+
.optional()
|
|
16
|
+
.describe("Stage exactly these paths, then commit everything staged. Leave this and `all` out to commit whatever is already staged."),
|
|
17
|
+
});
|
|
18
|
+
export const DiscardSchema = RepoParamSchema.extend({
|
|
19
|
+
paths: z
|
|
20
|
+
.array(z.string().min(1))
|
|
21
|
+
.max(500)
|
|
22
|
+
.optional()
|
|
23
|
+
.describe("Which paths to throw away. Leave it out to discard every uncommitted change in the repository."),
|
|
24
|
+
});
|
|
25
|
+
export const GitStageSchema = RepoParamSchema.extend({
|
|
26
|
+
paths: z.array(z.string().min(1)).max(500).describe("The paths to move. Nothing on disk changes, so this is always safe and always reversible."),
|
|
27
|
+
});
|
|
28
|
+
export const PushSchema = RepoParamSchema.extend({
|
|
29
|
+
branch: z
|
|
30
|
+
.string()
|
|
31
|
+
.min(1)
|
|
32
|
+
.optional()
|
|
33
|
+
.describe("Which branch to push. Leave it out for the checked-out one. A branch with no upstream yet gets one set on this push."),
|
|
34
|
+
});
|
|
35
|
+
export const GitFileQuerySchema = RepoParamSchema.extend({ path: z.string().min(1).describe("The file to read, relative to the repository root.") });
|
|
36
|
+
export const GitFileWriteSchema = RepoParamSchema.extend({
|
|
37
|
+
path: z.string().min(1).describe("Where to write, relative to the repository root. Missing folders are created."),
|
|
38
|
+
content: z.string().describe("The file's whole new contents."),
|
|
39
|
+
});
|
|
40
|
+
export const GitDiffSideSchema = z.enum(["staged", "unstaged", "conflicted"]);
|
|
41
|
+
export const GitFileDiffQuerySchema = RepoParamSchema.extend({
|
|
42
|
+
path: z.string().min(1).describe("The file, relative to the repository root."),
|
|
43
|
+
side: GitDiffSideSchema.describe("Which comparison you want. A file that is staged and then edited again has genuinely different answers for each, which is why this is required rather than assumed."),
|
|
44
|
+
});
|
|
45
|
+
export const GitStatusSchema = z.object({
|
|
46
|
+
branch: z.string().describe("The checked-out branch."),
|
|
47
|
+
dirty: z.boolean().describe("Whether anything is uncommitted."),
|
|
48
|
+
files: z.array(z.string()).describe("Every path with something pending, staged or not."),
|
|
49
|
+
});
|
|
50
|
+
export const GitFilesSchema = z.object({
|
|
51
|
+
files: z.array(z.string()).describe("Every path git tracks, relative to the repository root. Ignored and untracked files are not here."),
|
|
52
|
+
});
|
|
53
|
+
export const GitFileSchema = z.object({
|
|
54
|
+
path: z.string().describe("The path, as asked for."),
|
|
55
|
+
content: z.string().describe("The file's contents as they stand on disk."),
|
|
56
|
+
});
|
|
57
|
+
export const RepoPathsSchema = z.object({
|
|
58
|
+
repo: z.string().min(1).describe("Which repository."),
|
|
59
|
+
paths: z.array(z.string().min(1)).max(500).optional().describe("Which of its paths. Leave it out for the whole repository."),
|
|
60
|
+
});
|
|
61
|
+
export const GitChangeSchema = z.object({
|
|
62
|
+
path: z.string().describe("The path, relative to the repository root. For a rename this is the new one."),
|
|
63
|
+
status: z
|
|
64
|
+
.enum(["added", "modified", "deleted", "renamed", "type-changed", "conflicted"])
|
|
65
|
+
.describe("What happened to it. Conflicted is not a kind of edit: nothing can be committed anywhere in the repository while one exists."),
|
|
66
|
+
from: z.string().optional().describe("Where a renamed file came from."),
|
|
67
|
+
additions: z
|
|
68
|
+
.number()
|
|
69
|
+
.optional()
|
|
70
|
+
.describe("Lines added. Absent for a binary file, and for an untracked one, which has nothing to compare against."),
|
|
71
|
+
deletions: z.number().optional().describe("Lines removed. Absent for the same reasons additions is."),
|
|
72
|
+
});
|
|
73
|
+
export const GitRemoteStateSchema = z.object({
|
|
74
|
+
remote: z
|
|
75
|
+
.string()
|
|
76
|
+
.optional()
|
|
77
|
+
.describe("The remote this branch pushes to. Absent means none is configured. In a fork with two remotes, pushing to the wrong one succeeds and leaves the count stuck, which is why this says which."),
|
|
78
|
+
branch: z.string().optional().describe("The checked-out branch. Absent when the repository is on a bare commit, or has no commits yet."),
|
|
79
|
+
upstream: z.string().optional().describe("The branch on the remote this one follows. Absent means the next push will publish it."),
|
|
80
|
+
ahead: z.number().describe("Commits you have that the remote does not."),
|
|
81
|
+
behind: z.number().describe("Commits the remote has that you do not, as of the last fetch. Fetch before trusting it."),
|
|
82
|
+
});
|
|
83
|
+
export const GitBranchSchema = z.object({
|
|
84
|
+
name: z.string().describe("The branch name."),
|
|
85
|
+
current: z.boolean().describe("Whether this is the one checked out."),
|
|
86
|
+
upstream: z.string().optional().describe("The branch on the remote it follows, if any."),
|
|
87
|
+
ahead: z.number().describe("Commits this branch has that its remote counterpart does not."),
|
|
88
|
+
behind: z.number().describe("Commits its remote counterpart has that it does not."),
|
|
89
|
+
gone: z
|
|
90
|
+
.boolean()
|
|
91
|
+
.optional()
|
|
92
|
+
.describe("The branch it followed no longer exists on the remote, usually because a merged pull request deleted it. The signal that this one is safe to delete."),
|
|
93
|
+
at: z.number().describe("When its tip was committed, in milliseconds. Lists are newest first."),
|
|
94
|
+
});
|
|
95
|
+
export const GitRemoteBranchSchema = z.object({
|
|
96
|
+
name: z.string().describe("The full name, such as origin/main."),
|
|
97
|
+
remote: z.string().describe("Just the remote part, so a picker can group by it without re-parsing."),
|
|
98
|
+
branch: z.string().describe("Just the branch part."),
|
|
99
|
+
at: z.number().describe("When its tip was committed, in milliseconds, as this repository last saw it."),
|
|
100
|
+
});
|
|
101
|
+
export const GitBranchesSchema = z.object({
|
|
102
|
+
branches: z.array(GitBranchSchema).describe("Branches in this repository."),
|
|
103
|
+
remotes: z
|
|
104
|
+
.array(GitRemoteBranchSchema)
|
|
105
|
+
.describe("Branches on its remotes, as last seen. Sent together with the locals so a switcher never draws a half-filled list."),
|
|
106
|
+
});
|
|
107
|
+
export const GitBranchCreateAtSchema = RepoParamSchema.extend({
|
|
108
|
+
name: RefNameSchema.describe("The new branch's name."),
|
|
109
|
+
start: z.string().min(1).optional().describe("Where to start it: a commit or another branch. Leave it out to start from where you are."),
|
|
110
|
+
checkout: z.boolean().optional().describe("Switch to it as well as creating it."),
|
|
111
|
+
});
|
|
112
|
+
export const GitBranchDeleteSchema = RepoParamSchema.extend({
|
|
113
|
+
name: RefNameSchema.describe("The branch to delete."),
|
|
114
|
+
force: z
|
|
115
|
+
.boolean()
|
|
116
|
+
.optional()
|
|
117
|
+
.describe("Delete it even though it holds work that was never merged. The deliberate retry after the first attempt refuses."),
|
|
118
|
+
});
|
|
119
|
+
export const GitOperationSchema = z.enum(["merge", "rebase", "cherry-pick", "revert"]);
|
|
120
|
+
export const GitOperationStateSchema = z.object({
|
|
121
|
+
repo: z.string().describe("The repository asked about."),
|
|
122
|
+
operation: GitOperationSchema.optional().describe("Which operation the working tree is stuck inside. Absent means it is not stuck at all, which is almost always. While one is present git refuses nearly everything else, and abandoning it is the only way out."),
|
|
123
|
+
});
|
|
124
|
+
export const RepoChangesSchema = z.object({
|
|
125
|
+
repo: z.string(),
|
|
126
|
+
branch: z.string().optional().describe("The checked-out branch. Absent in a repository that has no commits yet."),
|
|
127
|
+
conflicted: z
|
|
128
|
+
.array(GitChangeSchema)
|
|
129
|
+
.describe("Paths a merge or rebase could not finish. First, because nothing anywhere in this repository can be committed until they are resolved. Held apart from the two lists below, because staged or not is not a question one of these has an answer to."),
|
|
130
|
+
operation: GitOperationSchema.optional().describe("What halted, when something did. This is the sentence that explains the conflicts above and names the way out of them."),
|
|
131
|
+
staged: z.array(GitChangeSchema).describe("What a plain commit would record right now."),
|
|
132
|
+
unstaged: z
|
|
133
|
+
.array(GitChangeSchema)
|
|
134
|
+
.describe("Edits on disk that are not staged, plus untracked files. A path can be in both lists at once with different line counts, which is why they are separate."),
|
|
135
|
+
truncated: z
|
|
136
|
+
.number()
|
|
137
|
+
.optional()
|
|
138
|
+
.describe("How many changes were cut from the two lists above. A freshly cloned monorepo or a mass delete runs to six figures, which no screen can draw, so past a budget the lists arrive short and this says by how much. Absent means they are complete."),
|
|
139
|
+
remote: GitRemoteStateSchema.optional().describe("Where this repository stands against its remote."),
|
|
140
|
+
origins: z
|
|
141
|
+
.record(z.string(), z.array(z.string()))
|
|
142
|
+
.optional()
|
|
143
|
+
.describe("Which conversation put each path here, newest first, keyed by path. Only work that went through a merge can appear: edits made in the shared tree, in a terminal, or by a person are simply absent rather than guessed at."),
|
|
144
|
+
error: z
|
|
145
|
+
.string()
|
|
146
|
+
.optional()
|
|
147
|
+
.describe("Why the repository could not be read at all, in git's own words. A repository left broken by a failed import arrives with empty lists and this set, rather than vanishing from the answer with nothing to act on."),
|
|
148
|
+
});
|
|
149
|
+
export const OriginAgentSchema = z.object({
|
|
150
|
+
title: z.string().optional().describe("The conversation's title. Absent for one that never got as far as having a title."),
|
|
151
|
+
provider: AgentProviderSchema.describe("Which model provider it ran on."),
|
|
152
|
+
landedMessage: LandedMessageSchema.optional().describe("What the merged work did, drafted by the conversation itself. Carried here as well as on its card, because merged lines outlive the card: archiving a finished conversation does not uncommit its work."),
|
|
153
|
+
});
|
|
154
|
+
export const GitChangesSchema = z.object({
|
|
155
|
+
repos: z
|
|
156
|
+
.array(RepoChangesSchema)
|
|
157
|
+
.describe("One entry per repository that has something pending, is out of step with its remote, or could not be read. A clean repository is simply absent."),
|
|
158
|
+
originAgents: z
|
|
159
|
+
.record(z.string(), OriginAgentSchema)
|
|
160
|
+
.optional()
|
|
161
|
+
.describe("Who each conversation named above is, keyed by id, so a caller need not look them up. Absent when nothing in the review can be attributed."),
|
|
162
|
+
committing: z
|
|
163
|
+
.array(z.string())
|
|
164
|
+
.optional()
|
|
165
|
+
.describe("Repositories with a commit running right now. The sandbox's answer rather than any one tab's, so a reload, a second window and another device all know. Absent means nothing is committing."),
|
|
166
|
+
});
|
|
167
|
+
export const CommitResultSchema = z.object({
|
|
168
|
+
committed: z.boolean().describe("Whether a commit was actually recorded."),
|
|
169
|
+
changes: RepoChangesSchema.optional().describe("What this repository looks like now, read in the same breath as the commit so a caller can redraw from here instead of asking for a fresh scan. Absent means there is nothing left to show."),
|
|
170
|
+
originAgents: z
|
|
171
|
+
.record(z.string(), OriginAgentSchema)
|
|
172
|
+
.optional()
|
|
173
|
+
.describe("Who the conversations named in those changes are. Merge it over what you already hold rather than replacing: other repositories still name their own."),
|
|
174
|
+
});
|
|
175
|
+
export const WorkspaceModuleSchema = z.object({
|
|
176
|
+
dir: z.string().describe("Where the package lives, relative to its repository. Empty when the repository is itself one package."),
|
|
177
|
+
name: z.string().describe("The name the package declares for itself."),
|
|
178
|
+
});
|
|
179
|
+
export const RepoModulesSchema = z.object({
|
|
180
|
+
repo: z.string().describe("Which repository."),
|
|
181
|
+
modules: z.array(WorkspaceModuleSchema).describe("Its packages."),
|
|
182
|
+
});
|
|
183
|
+
export const WorkspaceModulesSchema = z.object({ repos: z.array(RepoModulesSchema).describe("Every repository with the packages inside it.") });
|
|
184
|
+
export const AgentChangeSchema = GitChangeSchema.extend({
|
|
185
|
+
landed: z
|
|
186
|
+
.boolean()
|
|
187
|
+
.describe("Whether this change is already in the shared tree. The list is everything the conversation wrote, not just what is left over, because a clean turn merges in milliseconds and a list of leftovers would show an empty panel for work nobody had looked at yet."),
|
|
188
|
+
});
|
|
189
|
+
export const AgentRepoChangesSchema = z.object({
|
|
190
|
+
repo: z.string().describe("Which repository."),
|
|
191
|
+
branch: z.string().optional().describe("The branch this conversation's work sits on."),
|
|
192
|
+
changes: z.array(AgentChangeSchema).describe("What it changed there."),
|
|
193
|
+
modules: z
|
|
194
|
+
.array(WorkspaceModuleSchema)
|
|
195
|
+
.describe("The packages of the tree these changes came from, so a review can group by package. Carried with the changes rather than looked up separately, because a package the conversation has just created exists only in its own copy and the shared tree has never heard of it."),
|
|
196
|
+
});
|
|
197
|
+
export const AgentChangesSchema = z.object({
|
|
198
|
+
repos: z.array(AgentRepoChangesSchema).describe("One entry per repository the conversation touched."),
|
|
199
|
+
conflicts: z
|
|
200
|
+
.array(LandConflictSchema)
|
|
201
|
+
.optional()
|
|
202
|
+
.describe("Why the last merge refused, when one did. Carried here as well as in the merge's own answer, because a conflict is found the moment a turn ends and dealt with hours later on this surface, which would otherwise open with nothing to explain what it promised to resolve."),
|
|
203
|
+
});
|
|
204
|
+
//# sourceMappingURL=git.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/schemas/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAY9C,MA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,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAAC,oDAAoD,CAAC;IACrG,SAAS,EAAE,CAAC;SACP,KAAK,CAAC,kBAAkB,CAAC;SACzB,QAAQ,EAAE;SACV,QAAQ,CACL,6QAA6Q,CAChR;CACR,CAAC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SnapshotTriggerSchema: z.ZodEnum<{
|
|
3
|
+
interval: "interval";
|
|
4
|
+
"pre-restore": "pre-restore";
|
|
5
|
+
restore: "restore";
|
|
6
|
+
turn: "turn";
|
|
7
|
+
user: "user";
|
|
8
|
+
}>;
|
|
9
|
+
export type SnapshotTrigger = z.infer<typeof SnapshotTriggerSchema>;
|
|
10
|
+
export declare const SnapshotSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
at: z.ZodNumber;
|
|
13
|
+
trigger: z.ZodEnum<{
|
|
14
|
+
interval: "interval";
|
|
15
|
+
"pre-restore": "pre-restore";
|
|
16
|
+
restore: "restore";
|
|
17
|
+
turn: "turn";
|
|
18
|
+
user: "user";
|
|
19
|
+
}>;
|
|
20
|
+
label: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type Snapshot = z.infer<typeof SnapshotSchema>;
|
|
23
|
+
export interface SnapshotTurn {
|
|
24
|
+
readonly conversationId: string;
|
|
25
|
+
readonly index: number;
|
|
26
|
+
}
|
|
27
|
+
export declare const SnapshotsListSchema: z.ZodObject<{
|
|
28
|
+
snapshots: z.ZodArray<z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
at: z.ZodNumber;
|
|
31
|
+
trigger: z.ZodEnum<{
|
|
32
|
+
interval: "interval";
|
|
33
|
+
"pre-restore": "pre-restore";
|
|
34
|
+
restore: "restore";
|
|
35
|
+
turn: "turn";
|
|
36
|
+
user: "user";
|
|
37
|
+
}>;
|
|
38
|
+
label: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const RewindTurnSchema: z.ZodObject<{
|
|
42
|
+
conversationId: z.ZodString;
|
|
43
|
+
index: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const RewindResultSchema: z.ZodObject<{
|
|
46
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
47
|
+
dropped: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type RewindResult = z.infer<typeof RewindResultSchema>;
|
|
50
|
+
export declare const SnapshotIdSchema: z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const SnapshotChangeSchema: z.ZodObject<{
|
|
54
|
+
scope: z.ZodString;
|
|
55
|
+
path: z.ZodString;
|
|
56
|
+
status: z.ZodEnum<{
|
|
57
|
+
added: "added";
|
|
58
|
+
deleted: "deleted";
|
|
59
|
+
modified: "modified";
|
|
60
|
+
"type-changed": "type-changed";
|
|
61
|
+
}>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type SnapshotChange = z.infer<typeof SnapshotChangeSchema>;
|
|
64
|
+
export declare const SnapshotDiffSchema: z.ZodObject<{
|
|
65
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
66
|
+
scope: z.ZodString;
|
|
67
|
+
path: z.ZodString;
|
|
68
|
+
status: z.ZodEnum<{
|
|
69
|
+
added: "added";
|
|
70
|
+
deleted: "deleted";
|
|
71
|
+
modified: "modified";
|
|
72
|
+
"type-changed": "type-changed";
|
|
73
|
+
}>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export declare const SnapshotFileDiffQuerySchema: z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
scope: z.ZodString;
|
|
79
|
+
path: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const PartialFileDiffSchema: z.ZodObject<{
|
|
82
|
+
beforeBytes: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
afterBytes: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
85
|
+
more: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type PartialFileDiff = z.infer<typeof PartialFileDiffSchema>;
|
|
88
|
+
export declare const FileDiffSchema: z.ZodObject<{
|
|
89
|
+
before: z.ZodOptional<z.ZodString>;
|
|
90
|
+
after: z.ZodOptional<z.ZodString>;
|
|
91
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
beforeBytes: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
afterBytes: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
96
|
+
more: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export type FileDiff = z.infer<typeof FileDiffSchema>;
|
|
100
|
+
//# sourceMappingURL=history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/schemas/history.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,qBAAqB;;;;;;EAAiE,CAAC;AACpG,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;iBASzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAItD,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;iBAA6G,CAAC;AAO9I,eAAO,MAAM,gBAAgB;;;iBAS3B,CAAC;AACH,eAAO,MAAM,kBAAkB;;;iBAY7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,gBAAgB;;iBAAqE,CAAC;AACnG,eAAO,MAAM,oBAAoB;;;;;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,eAAO,MAAM,kBAAkB;;;;;;;;;;;iBAE7B,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AAoBH,eAAO,MAAM,qBAAqB;;;;;iBAQhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,cAAc;;;;;;;;;;iBAKzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const SnapshotTriggerSchema = z.enum(["turn", "interval", "pre-restore", "restore", "user"]);
|
|
3
|
+
export const SnapshotSchema = z.object({
|
|
4
|
+
id: z.string().describe("The saved point's id, which is what restoring and diffing take."),
|
|
5
|
+
at: z.number().describe("When it was taken, in milliseconds."),
|
|
6
|
+
trigger: SnapshotTriggerSchema.describe("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."),
|
|
7
|
+
label: z.string().optional().describe("What to call it. For one taken before a turn, that turn's prompt."),
|
|
8
|
+
});
|
|
9
|
+
export const SnapshotsListSchema = z.object({ snapshots: z.array(SnapshotSchema).describe("Every point you can go back to, newest first.") });
|
|
10
|
+
export const RewindTurnSchema = z.object({
|
|
11
|
+
conversationId: z.string().min(1).describe("Which conversation to rewind."),
|
|
12
|
+
index: z
|
|
13
|
+
.number()
|
|
14
|
+
.int()
|
|
15
|
+
.nonnegative()
|
|
16
|
+
.describe("Which message to go back to, counting from the start. It is also how many messages survive: rewinding to the first keeps none of them and puts the files back to before it ran."),
|
|
17
|
+
});
|
|
18
|
+
export const RewindResultSchema = z.object({
|
|
19
|
+
snapshot: z
|
|
20
|
+
.string()
|
|
21
|
+
.optional()
|
|
22
|
+
.describe("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."),
|
|
23
|
+
dropped: z.number().int().nonnegative().describe("How many messages were removed."),
|
|
24
|
+
});
|
|
25
|
+
export const SnapshotIdSchema = z.object({ id: z.string().min(1).describe("Which saved point.") });
|
|
26
|
+
export const SnapshotChangeSchema = z.object({
|
|
27
|
+
scope: z.string().describe("Which part of the workspace the path belongs to: the workspace root, or one of the repositories inside it."),
|
|
28
|
+
path: z.string().describe("The path, relative to that scope."),
|
|
29
|
+
status: z.enum(["added", "modified", "deleted", "type-changed"]).describe("What happened to it."),
|
|
30
|
+
});
|
|
31
|
+
export const SnapshotDiffSchema = z.object({
|
|
32
|
+
changes: z.array(SnapshotChangeSchema).describe("Everything that differs between this saved point and the one before it."),
|
|
33
|
+
});
|
|
34
|
+
export const SnapshotFileDiffQuerySchema = z.object({
|
|
35
|
+
id: z.string().min(1).describe("Which saved point."),
|
|
36
|
+
scope: z.string().min(1).describe("Which part of the workspace the path belongs to."),
|
|
37
|
+
path: z.string().min(1).describe("The file, relative to that scope."),
|
|
38
|
+
});
|
|
39
|
+
export const PartialFileDiffSchema = z.object({
|
|
40
|
+
beforeBytes: z.number().int().nonnegative().optional().describe("How big the before side is, in bytes. Absent when the file did not exist yet."),
|
|
41
|
+
afterBytes: z.number().int().nonnegative().optional().describe("How big the after side is, in bytes. Absent when the file was deleted."),
|
|
42
|
+
patch: z
|
|
43
|
+
.string()
|
|
44
|
+
.optional()
|
|
45
|
+
.describe("The changed regions as unified-diff hunks (`@@` sections only). Absent when the change was too large to render even as a patch."),
|
|
46
|
+
more: z.boolean().optional().describe("There were more changed regions than fit; the patch stops at a region boundary."),
|
|
47
|
+
});
|
|
48
|
+
export const FileDiffSchema = z.object({
|
|
49
|
+
before: z.string().optional().describe("The whole file as it was. Absent when it did not exist yet, or when `partial` is set."),
|
|
50
|
+
after: z.string().optional().describe("The whole file as it is now. Absent when it was deleted, or when `partial` is set."),
|
|
51
|
+
binary: z.boolean().optional().describe("The file is not text, so neither side is sent."),
|
|
52
|
+
partial: PartialFileDiffSchema.optional().describe("Set when the file was too large to send whole: what is sent instead of the two sides."),
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/schemas/history.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAEpG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iEAAiE,CAAC;IAE1F,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAC9D,OAAO,EAAE,qBAAqB,CAAC,QAAQ,CACnC,mJAAmJ,CACtJ;IAED,KAAK,EAAE,CAAC,CAAC,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CAAC;CAC3H,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uFAAuF,CAAC;IAC/H,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oFAAoF,CAAC;IAC3H,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;IACzF,OAAO,EAAE,qBAAqB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uFAAuF,CAAC;CAC9I,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const HostFactsSchema: z.ZodObject<{
|
|
3
|
+
os: z.ZodString;
|
|
4
|
+
arch: z.ZodString;
|
|
5
|
+
shell: z.ZodString;
|
|
6
|
+
home: z.ZodString;
|
|
7
|
+
roots: z.ZodArray<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type HostFacts = z.infer<typeof HostFactsSchema>;
|
|
10
|
+
export declare const HostSummarySchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
platform: z.ZodString;
|
|
13
|
+
online: z.ZodBoolean;
|
|
14
|
+
version: z.ZodOptional<z.ZodString>;
|
|
15
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
facts: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
os: z.ZodString;
|
|
18
|
+
arch: z.ZodString;
|
|
19
|
+
shell: z.ZodString;
|
|
20
|
+
home: z.ZodString;
|
|
21
|
+
roots: z.ZodArray<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type HostSummary = z.infer<typeof HostSummarySchema>;
|
|
25
|
+
export declare const HostsListSchema: z.ZodObject<{
|
|
26
|
+
hosts: z.ZodArray<z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
platform: z.ZodString;
|
|
29
|
+
online: z.ZodBoolean;
|
|
30
|
+
version: z.ZodOptional<z.ZodString>;
|
|
31
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
facts: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
os: z.ZodString;
|
|
34
|
+
arch: z.ZodString;
|
|
35
|
+
shell: z.ZodString;
|
|
36
|
+
home: z.ZodString;
|
|
37
|
+
roots: z.ZodArray<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
//# sourceMappingURL=hosts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosts.d.ts","sourceRoot":"","sources":["../../src/schemas/hosts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,eAAe;;;;;;iBAU1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;iBAY5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;iBAAkD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const HostFactsSchema = z.object({
|
|
3
|
+
os: z.string(),
|
|
4
|
+
arch: z.string(),
|
|
5
|
+
shell: z.string(),
|
|
6
|
+
home: z.string(),
|
|
7
|
+
roots: z.array(z.string()),
|
|
8
|
+
});
|
|
9
|
+
export const HostSummarySchema = z.object({
|
|
10
|
+
id: z.string(),
|
|
11
|
+
platform: z.string().min(1),
|
|
12
|
+
online: z.boolean(),
|
|
13
|
+
version: z.string().optional(),
|
|
14
|
+
lastSeen: z.number().optional(),
|
|
15
|
+
facts: HostFactsSchema.optional(),
|
|
16
|
+
});
|
|
17
|
+
export const HostsListSchema = z.object({ hosts: z.array(HostSummarySchema) });
|
|
18
|
+
//# sourceMappingURL=hosts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosts.js","sourceRoot":"","sources":["../../src/schemas/hosts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAEpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAEhB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IAEjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAEhB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC7B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IAEtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IAGnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAG9B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intentic.d.ts","sourceRoot":"","sources":["../../src/schemas/intentic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,eAAO,MAAM,iBAAiB;;iBAA0C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intentic.js","sourceRoot":"","sources":["../../src/schemas/intentic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/schemas/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,OAAO,aAIqB,CAAC;AAE1C,eAAO,MAAM,aAAa,aAGb,CAAC;AAId,eAAO,MAAM,SAAS;;;GAAuC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const entryId = z
|
|
3
|
+
.string()
|
|
4
|
+
.min(1)
|
|
5
|
+
.max(60)
|
|
6
|
+
.regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/);
|
|
7
|
+
export const RefNameSchema = z
|
|
8
|
+
.string()
|
|
9
|
+
.regex(/^[A-Za-z0-9][A-Za-z0-9._/-]*$/)
|
|
10
|
+
.max(200);
|
|
11
|
+
export const autoStart = z.enum(["on", "off"]).default("off");
|
|
12
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/schemas/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC;KACnB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAE1C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KACzB,MAAM,EAAE;KACR,KAAK,CAAC,+BAA+B,CAAC;KACtC,GAAG,CAAC,GAAG,CAAC,CAAC;AAId,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|