@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 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/schemas/workflows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyCxB,eAAO,MAAM,qBAAqB;;;EAAgC,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAIpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8E7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAc9D,eAAO,MAAM,kBAAkB;;;;;;iBA+C7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAQzC,eAAO,MAAM,iBAAiB;;;;EAAsC,CAAC;AACrE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,iBAAiB;;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CAAC;AACrI,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAmH,CAAC;AACpJ,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAC;AACH,eAAO,MAAM,qBAAqB;;iBAA2D,CAAC;AAC9F,eAAO,MAAM,wBAAwB;;iBAAyD,CAAC;AAI/F,eAAO,MAAM,sBAAsB;;;iBASjC,CAAC;AAIH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO7B,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AgentHarnessSchema, AgentProviderSchema, RepoBaseSchema } from "./agent.js";
|
|
3
|
+
import { entryId } from "./internal.js";
|
|
4
|
+
import { LoopCheckSchema, LoopContextSchema, LoopDocumentSchema, LoopOutputSchema, LoopStateSchema } from "./loops.js";
|
|
5
|
+
const StepIdSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1)
|
|
8
|
+
.max(24)
|
|
9
|
+
.regex(/^[a-z0-9][a-z0-9-]*$/);
|
|
10
|
+
export const WorkflowHandoffSchema = z.enum(["fresh", "continue"]);
|
|
11
|
+
const WORKFLOW_STEPS_MAX = 24;
|
|
12
|
+
export const WorkflowStepSchema = z.object({
|
|
13
|
+
id: StepIdSchema.describe("This step's own name, which other steps use to say they wait on it."),
|
|
14
|
+
title: z.string().min(1).max(60).describe("What to call it on screen. Short: the instruction below is where the detail goes."),
|
|
15
|
+
goal: z
|
|
16
|
+
.string()
|
|
17
|
+
.min(1)
|
|
18
|
+
.optional()
|
|
19
|
+
.describe("What done means for this step, in your words. It is what the step is judged against, and a different sentence from what it is told to do."),
|
|
20
|
+
prompt: z
|
|
21
|
+
.string()
|
|
22
|
+
.min(1)
|
|
23
|
+
.optional()
|
|
24
|
+
.describe("What the step is told to do. The goal is the suite is green; this is run the tests, take the top failure, fix it. Leaving it out hands over the run's own request untouched, which is right for a step whose whole job is do what was asked."),
|
|
25
|
+
needs: z
|
|
26
|
+
.array(StepIdSchema)
|
|
27
|
+
.describe("Which steps must finish first. Empty means it starts when the run does. Naming a step that does not exist, or a loop between steps, is refused when the workflow is saved."),
|
|
28
|
+
handoff: WorkflowHandoffSchema.describe("How it meets what came before: a fresh conversation handed the previous step's result, or the same conversation carried on."),
|
|
29
|
+
output: LoopOutputSchema.describe("What it has to produce for the step to count."),
|
|
30
|
+
checks: z.array(LoopCheckSchema).describe("What has to pass before it counts as done."),
|
|
31
|
+
context: LoopContextSchema.describe("How the step's own repeats meet each other. A long-running step wants to start clean each round; a short polish-this step wants to carry on."),
|
|
32
|
+
maxSpendUsd: z
|
|
33
|
+
.number()
|
|
34
|
+
.positive()
|
|
35
|
+
.optional()
|
|
36
|
+
.describe("A ceiling on what this step may spend. The one resource that cannot be recovered after an unattended fan-out, which is why it is here and iteration limits are not. Absent is uncapped."),
|
|
37
|
+
agent: AgentProviderSchema.optional().describe("Which provider runs it."),
|
|
38
|
+
harness: AgentHarnessSchema.optional().describe("Which agentic loop runs it."),
|
|
39
|
+
account: z.string().optional().describe("Which account pays for it."),
|
|
40
|
+
model: z.string().optional().describe("Which model runs it."),
|
|
41
|
+
actsAs: entryId
|
|
42
|
+
.optional()
|
|
43
|
+
.describe("Which persona it acts as. Unpinned, a step gets the strict unwatched default: every tool, and no signed-in accounts at all. Pinning one is how a release check gets a voice, a folder to work in, or the single account it may post from."),
|
|
44
|
+
});
|
|
45
|
+
export const WorkflowGateSchema = z.object({
|
|
46
|
+
step: StepIdSchema.describe("Which step's answer carries the decision. Usually a last step that weighs up the ones before it, though nothing requires that."),
|
|
47
|
+
field: z
|
|
48
|
+
.string()
|
|
49
|
+
.min(1)
|
|
50
|
+
.describe("Which of that step's declared answers to read. A declared field is the one part of a step's answer that was checked rather than fished out of prose, which is the whole rule here. Checked when the workflow is saved."),
|
|
51
|
+
pass: z
|
|
52
|
+
.array(z.string().min(1))
|
|
53
|
+
.min(1)
|
|
54
|
+
.describe("Which values mean ship it. Everything else fails. A list of what passes rather than what fails, because a step answering mostly-pass or pass-with-notes must not ship, and this gets that right without anybody having had to enumerate the ways a model can hedge."),
|
|
55
|
+
token: z
|
|
56
|
+
.string()
|
|
57
|
+
.optional()
|
|
58
|
+
.describe("The credential the calling pipeline presents. It is the only one in the exchange, because a build runner has no identity of its own here."),
|
|
59
|
+
dailyMax: z
|
|
60
|
+
.number()
|
|
61
|
+
.int()
|
|
62
|
+
.positive()
|
|
63
|
+
.optional()
|
|
64
|
+
.describe("How many runs a day, across every caller. A gate is a paid door with nobody in the loop: one wired into a push-triggered pipeline is a fan-out of conversations per commit. Absent is a small default rather than unlimited."),
|
|
65
|
+
});
|
|
66
|
+
export const GATE_DAILY_MAX_DEFAULT = 20;
|
|
67
|
+
export const GateOutcomeSchema = z.enum(["pass", "fail", "blocked"]);
|
|
68
|
+
export const GateVerdictSchema = z.object({
|
|
69
|
+
outcome: GateOutcomeSchema.describe("Ship it, do not, or we could not tell. That third answer exists because could not reach a judgement is not the product is broken: a gate that reported its own outages as failures is one a team switches off, so it should be the honest answer far more often than the convenient one, and it means a neutral build rather than a red one."),
|
|
70
|
+
reason: z.string().describe("Why, in one line. Realistically the only part of this a build log will ever show."),
|
|
71
|
+
runId: z.string().describe("The run behind the verdict, so somebody can go and read it."),
|
|
72
|
+
value: z
|
|
73
|
+
.string()
|
|
74
|
+
.optional()
|
|
75
|
+
.describe("What the step actually answered. Absent when there was nothing to read, which is most of the could-not-tell cases."),
|
|
76
|
+
});
|
|
77
|
+
export const WorkflowSchema = z.object({
|
|
78
|
+
id: entryId.describe("The workflow's id."),
|
|
79
|
+
name: z.string().min(1).max(80).describe("What to call it."),
|
|
80
|
+
description: z.string().max(400).optional().describe("What it is for."),
|
|
81
|
+
steps: z
|
|
82
|
+
.array(WorkflowStepSchema)
|
|
83
|
+
.min(1)
|
|
84
|
+
.max(WORKFLOW_STEPS_MAX)
|
|
85
|
+
.describe("The steps, each with what it waits on. Every one runs in its own private copy of the repos, always, because parallel steps sharing a tree collide."),
|
|
86
|
+
gate: WorkflowGateSchema.optional().describe("Present means a machine can run this design and get a ship-it answer back. Absent means an ordinary workflow, started by a person, with no outside door onto it at all."),
|
|
87
|
+
maxParallel: z
|
|
88
|
+
.number()
|
|
89
|
+
.int()
|
|
90
|
+
.min(1)
|
|
91
|
+
.max(8)
|
|
92
|
+
.describe("How many steps may run at once. Bounded, because a fan-out of twelve is twelve model sessions, twelve working copies and twelve times the burn rate, on one machine."),
|
|
93
|
+
});
|
|
94
|
+
export const WorkflowStepStateSchema = z.enum(["pending", "running", "done", "failed", "skipped", "stopped"]);
|
|
95
|
+
export const WorkflowStepRunSchema = z.object({
|
|
96
|
+
stepId: StepIdSchema.describe("Which step this is."),
|
|
97
|
+
state: WorkflowStepStateSchema.describe("How it went. Skipped carries what the others cannot: it never ran, because something it was waiting on did not finish. That is why a failed run shows one red step and a trail of grey ones."),
|
|
98
|
+
conversationId: z
|
|
99
|
+
.string()
|
|
100
|
+
.describe("The conversation it ran on, and the way from a node on the graph to a real record. Shared with the step before it when they were chained, which is what makes those two one card."),
|
|
101
|
+
startedAt: z.number().optional().describe("When it began, in milliseconds."),
|
|
102
|
+
endedAt: z.number().optional().describe("When it ended, in milliseconds."),
|
|
103
|
+
iterations: z.number().int().min(0).describe("How many rounds it took."),
|
|
104
|
+
costUsd: z.number().optional().describe("What it cost, in dollars."),
|
|
105
|
+
loopState: LoopStateSchema.optional().describe("How its repeating ended. Out of rounds and stuck both come out as a failed step, and the difference between them is the difference between give it more room and more room will not help."),
|
|
106
|
+
detail: z.string().optional().describe("What went wrong, when something did."),
|
|
107
|
+
document: LoopDocumentSchema.optional().describe("What it produced, once it has produced something that passes its own declared shape. This is what the steps after it are handed."),
|
|
108
|
+
report: z
|
|
109
|
+
.string()
|
|
110
|
+
.optional()
|
|
111
|
+
.describe("The start of its closing words. Bounded, so a long answer is not silently cut down to its last few thousand characters and the record stays a sensible size."),
|
|
112
|
+
reportPath: z
|
|
113
|
+
.string()
|
|
114
|
+
.optional()
|
|
115
|
+
.describe("Where the whole answer is, as a workspace path. Every step can read it, so a long handoff need not be copied into anybody's prompt."),
|
|
116
|
+
});
|
|
117
|
+
export const WorkflowRunStateSchema = z.enum(["running", "done", "failed", "stopped", "overspent", "error"]);
|
|
118
|
+
export const WorkflowRunSchema = z.object({
|
|
119
|
+
runId: z.string().min(1).describe("This run's id."),
|
|
120
|
+
workflow: WorkflowSchema.describe("The design as it stood when the run started, copied rather than looked up. The run has to keep showing the graph it actually ran, not the one edited twice since, and a run of a deleted workflow has to stay readable."),
|
|
121
|
+
repos: z
|
|
122
|
+
.array(RepoBaseSchema)
|
|
123
|
+
.min(1)
|
|
124
|
+
.max(50)
|
|
125
|
+
.describe("The workspace as this run began, one exact commit per repository. Every step branches from these, even if the shared tree moves while a wide fan-out is still opening its copies, so the steps can be compared with each other afterwards."),
|
|
126
|
+
request: z
|
|
127
|
+
.string()
|
|
128
|
+
.optional()
|
|
129
|
+
.describe("What this run was asked to do, handed to every step on top of its own instructions. It is what makes one saved design worth keeping: two models, one task is a shape, and the task is different every time. Absent for a run started with nowhere to type one."),
|
|
130
|
+
state: WorkflowRunStateSchema.describe("How the run is going. Finished means every step that ran got there; a run with skipped steps counts as failed, because a graph that never reached its end did not do what it was asked whatever the survivors managed."),
|
|
131
|
+
startedAt: z.number().describe("When it began, in milliseconds."),
|
|
132
|
+
endedAt: z.number().optional().describe("When it ended, in milliseconds."),
|
|
133
|
+
resumed: z.number().int().min(0).describe("How many times the sandbox restarted under it and picked it back up."),
|
|
134
|
+
detail: z.string().optional().describe("What went wrong, when something did."),
|
|
135
|
+
steps: z
|
|
136
|
+
.array(WorkflowStepRunSchema)
|
|
137
|
+
.describe("One entry per step, in the design's own order. Every one is written down as waiting when the run starts, so the picture is complete from the first frame and a missing step never has to mean two things."),
|
|
138
|
+
archivedAt: z
|
|
139
|
+
.number()
|
|
140
|
+
.optional()
|
|
141
|
+
.describe("When it was put away, in milliseconds. The record stays readable and every step's branch, transcript and counters are untouched. Its conversations are put away with it, and brought back with it. Absent means live on the board."),
|
|
142
|
+
});
|
|
143
|
+
export const WorkflowSummarySchema = WorkflowSchema.extend({ runs: z.array(WorkflowRunSchema).describe("Its runs, newest first.") });
|
|
144
|
+
export const WorkflowsListSchema = z.object({ workflows: z.array(WorkflowSummarySchema).describe("Every saved design with its own run history.") });
|
|
145
|
+
export const WorkflowRunsListSchema = z.object({
|
|
146
|
+
runs: z.array(WorkflowRunSchema).describe("Every run across every workflow, newest first, including runs of workflows since deleted."),
|
|
147
|
+
});
|
|
148
|
+
export const WorkflowIdParamSchema = z.object({ id: z.string().describe("Which workflow.") });
|
|
149
|
+
export const WorkflowRunIdParamSchema = z.object({ runId: z.string().describe("Which run.") });
|
|
150
|
+
export const WorkflowRunStartSchema = WorkflowIdParamSchema.extend({
|
|
151
|
+
request: z
|
|
152
|
+
.string()
|
|
153
|
+
.min(1)
|
|
154
|
+
.max(20_000)
|
|
155
|
+
.optional()
|
|
156
|
+
.describe("What to point it at. Optional, because a design whose steps already say what they want is complete on its own; only one written as a shape needs today's sentence."),
|
|
157
|
+
});
|
|
158
|
+
export const WorkflowSaveSchema = z.object({
|
|
159
|
+
workflow: WorkflowSchema.describe("The design to write."),
|
|
160
|
+
create: z
|
|
161
|
+
.boolean()
|
|
162
|
+
.describe("Whether you mean to make a new one or replace an existing one. Said outright rather than inferred, so an id that happens to collide is a refusal instead of one saved design quietly overwriting another."),
|
|
163
|
+
});
|
|
164
|
+
//# sourceMappingURL=workflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/schemas/workflows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAmBvH,MAAM,YAAY,GAAG,CAAC;KACjB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAenC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;AAInE,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,YAAY,CAAC,QAAQ,CAAC,qEAAqE,CAAC;IAEhG,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,mFAAmF,CAAC;IAW9H,IAAI,EAAE,CAAC;SACF,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACL,2IAA2I,CAC9I;IAUL,MAAM,EA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C,EAAE,CAAC,CAAC;AAC9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;AAI/F,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAAC,MAAM,CAAC;IAC/D,OAAO,EAAE,CAAC;SACL,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,MAAM,CAAC;SACX,QAAQ,EAAE;SACV,QAAQ,CACL,oKAAoK,CACvK;CACR,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IACzD,MAAM,EAAE,CAAC;SACJ,OAAO,EAAE;SACT,QAAQ,CACL,2MAA2M,CAC9M;CACR,CAAC,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ReposListSchema: z.ZodObject<{
|
|
3
|
+
repos: z.ZodArray<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const CloneRepoSchema: z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
cloneUrl: z.ZodString;
|
|
8
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const CloneResultSchema: z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
path: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const RepoSyncSchema: z.ZodObject<{
|
|
15
|
+
repo: z.ZodString;
|
|
16
|
+
status: z.ZodEnum<{
|
|
17
|
+
current: "current";
|
|
18
|
+
dirty: "dirty";
|
|
19
|
+
diverged: "diverged";
|
|
20
|
+
error: "error";
|
|
21
|
+
"no-remote": "no-remote";
|
|
22
|
+
skipped: "skipped";
|
|
23
|
+
updated: "updated";
|
|
24
|
+
}>;
|
|
25
|
+
behind: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
ahead: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
head: z.ZodOptional<z.ZodString>;
|
|
28
|
+
message: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const WorkspaceSyncSchema: z.ZodObject<{
|
|
31
|
+
repos: z.ZodArray<z.ZodObject<{
|
|
32
|
+
repo: z.ZodString;
|
|
33
|
+
status: z.ZodEnum<{
|
|
34
|
+
current: "current";
|
|
35
|
+
dirty: "dirty";
|
|
36
|
+
diverged: "diverged";
|
|
37
|
+
error: "error";
|
|
38
|
+
"no-remote": "no-remote";
|
|
39
|
+
skipped: "skipped";
|
|
40
|
+
updated: "updated";
|
|
41
|
+
}>;
|
|
42
|
+
behind: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
ahead: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
head: z.ZodOptional<z.ZodString>;
|
|
45
|
+
message: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const AppInstanceInputSchema: z.ZodObject<{
|
|
49
|
+
template: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type AppInstanceInput = z.infer<typeof AppInstanceInputSchema>;
|
|
53
|
+
export declare const AddAppsSchema: z.ZodObject<{
|
|
54
|
+
repo: z.ZodString;
|
|
55
|
+
apps: z.ZodArray<z.ZodObject<{
|
|
56
|
+
template: z.ZodString;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export declare const RunTestsSchema: z.ZodObject<{
|
|
61
|
+
repo: z.ZodString;
|
|
62
|
+
session: z.ZodString;
|
|
63
|
+
dirs: z.ZodArray<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export declare const TemplateSummarySchema: z.ZodObject<{
|
|
66
|
+
key: z.ZodString;
|
|
67
|
+
label: z.ZodString;
|
|
68
|
+
description: z.ZodString;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type TemplateSummary = z.infer<typeof TemplateSummarySchema>;
|
|
71
|
+
export declare const TemplatesListSchema: z.ZodObject<{
|
|
72
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
73
|
+
key: z.ZodString;
|
|
74
|
+
label: z.ZodString;
|
|
75
|
+
description: z.ZodString;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export type TemplatesList = z.infer<typeof TemplatesListSchema>;
|
|
79
|
+
export declare const RepoAppSchema: z.ZodObject<{
|
|
80
|
+
app: z.ZodString;
|
|
81
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
82
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
83
|
+
running: z.ZodBoolean;
|
|
84
|
+
healthy: z.ZodBoolean;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type RepoApp = z.infer<typeof RepoAppSchema>;
|
|
87
|
+
export declare const AppsListSchema: z.ZodObject<{
|
|
88
|
+
apps: z.ZodArray<z.ZodObject<{
|
|
89
|
+
app: z.ZodString;
|
|
90
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
91
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
92
|
+
running: z.ZodBoolean;
|
|
93
|
+
healthy: z.ZodBoolean;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type AppsList = z.infer<typeof AppsListSchema>;
|
|
97
|
+
export declare const WorkspacePackageSchema: z.ZodObject<{
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
dir: z.ZodString;
|
|
100
|
+
group: z.ZodString;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export type WorkspacePackage = z.infer<typeof WorkspacePackageSchema>;
|
|
103
|
+
export declare const WorkspaceDepTypeSchema: z.ZodEnum<{
|
|
104
|
+
dev: "dev";
|
|
105
|
+
peer: "peer";
|
|
106
|
+
prod: "prod";
|
|
107
|
+
}>;
|
|
108
|
+
export type WorkspaceDepType = z.infer<typeof WorkspaceDepTypeSchema>;
|
|
109
|
+
export declare const WorkspaceDepEdgeSchema: z.ZodObject<{
|
|
110
|
+
from: z.ZodString;
|
|
111
|
+
to: z.ZodString;
|
|
112
|
+
type: z.ZodEnum<{
|
|
113
|
+
dev: "dev";
|
|
114
|
+
peer: "peer";
|
|
115
|
+
prod: "prod";
|
|
116
|
+
}>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export type WorkspaceDepEdge = z.infer<typeof WorkspaceDepEdgeSchema>;
|
|
119
|
+
export declare const WorkspaceGraphSchema: z.ZodObject<{
|
|
120
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
dir: z.ZodString;
|
|
123
|
+
group: z.ZodString;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
126
|
+
from: z.ZodString;
|
|
127
|
+
to: z.ZodString;
|
|
128
|
+
type: z.ZodEnum<{
|
|
129
|
+
dev: "dev";
|
|
130
|
+
peer: "peer";
|
|
131
|
+
prod: "prod";
|
|
132
|
+
}>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
export type WorkspaceGraph = z.infer<typeof WorkspaceGraphSchema>;
|
|
136
|
+
export declare const RepoAppsParamSchema: z.ZodObject<{
|
|
137
|
+
repo: z.ZodString;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export declare const AppParamSchema: z.ZodObject<{
|
|
140
|
+
repo: z.ZodString;
|
|
141
|
+
app: z.ZodString;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
//# sourceMappingURL=workspace-repos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-repos.d.ts","sourceRoot":"","sources":["../../src/schemas/workspace-repos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;iBAI1B,CAAC;AACH,eAAO,MAAM,eAAe;;;;iBAI1B,CAAC;AACH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAGH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;iBAWzB,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;iBAAiH,CAAC;AAIlJ,eAAO,MAAM,sBAAsB;;;iBAOjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,eAAO,MAAM,aAAa;;;;;;iBAGxB,CAAC;AAKH,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,eAAO,MAAM,mBAAmB;;;;;;iBAE9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAMhE,eAAO,MAAM,aAAa;;;;;;iBAWxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,eAAO,MAAM,cAAc;;;;;;;;iBAAsF,CAAC;AAClH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAItD,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,eAAO,MAAM,sBAAsB;;;;EAAkC,CAAC;AACtE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,mBAAmB;;iBAA+D,CAAC;AAChG,eAAO,MAAM,cAAc;;;iBAOzB,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ReposListSchema = z.object({
|
|
3
|
+
repos: z
|
|
4
|
+
.array(z.string())
|
|
5
|
+
.describe('Every repository\'s id, sorted. An id is its folder relative to the workspace root, and "root" is the workspace itself.'),
|
|
6
|
+
});
|
|
7
|
+
export const CloneRepoSchema = z.object({
|
|
8
|
+
name: z.string().min(1).describe("What to call it in the workspace."),
|
|
9
|
+
cloneUrl: z.string().min(1).describe("Where to clone it from."),
|
|
10
|
+
branch: z.string().optional().describe("Which branch to check out. Leave it out for the repository's default."),
|
|
11
|
+
});
|
|
12
|
+
export const CloneResultSchema = z.object({
|
|
13
|
+
name: z.string().describe("What it ended up called."),
|
|
14
|
+
path: z.string().describe("Where it landed."),
|
|
15
|
+
});
|
|
16
|
+
export const RepoSyncSchema = z.object({
|
|
17
|
+
repo: z.string().describe("Which repository."),
|
|
18
|
+
status: z
|
|
19
|
+
.enum(["updated", "current", "dirty", "diverged", "no-remote", "skipped", "error"])
|
|
20
|
+
.describe("What happened to it. Dirty and diverged are why a repository was left alone: it had uncommitted work, or it had moved in a way that cannot be fast-forwarded."),
|
|
21
|
+
behind: z.number().optional().describe("How many commits it was behind."),
|
|
22
|
+
ahead: z.number().optional().describe("How many commits it was ahead."),
|
|
23
|
+
head: z.string().optional().describe("The commit it ended up on."),
|
|
24
|
+
message: z.string().optional().describe("What went wrong, when something did."),
|
|
25
|
+
});
|
|
26
|
+
export const WorkspaceSyncSchema = z.object({ repos: z.array(RepoSyncSchema).describe("One entry per repository, saying what happened to it.") });
|
|
27
|
+
export const AppInstanceInputSchema = z.object({
|
|
28
|
+
template: z.string().min(1).describe("Which kind of app to scaffold, by its key in the template list."),
|
|
29
|
+
name: z
|
|
30
|
+
.string()
|
|
31
|
+
.min(1)
|
|
32
|
+
.regex(/^[a-z][a-z0-9-]*$/)
|
|
33
|
+
.describe("What to call this one."),
|
|
34
|
+
});
|
|
35
|
+
export const AddAppsSchema = z.object({
|
|
36
|
+
repo: z.string().describe("Which repository to scaffold into."),
|
|
37
|
+
apps: z.array(AppInstanceInputSchema).min(1).describe("The apps to add."),
|
|
38
|
+
});
|
|
39
|
+
export const RunTestsSchema = z.object({
|
|
40
|
+
repo: z.string().describe("Which repository."),
|
|
41
|
+
session: z.string().describe("What to call the terminal this runs in, so you can find it again."),
|
|
42
|
+
dirs: z.array(z.string()).min(1).describe("Which projects to test, as folders relative to the repository. Empty targets the repository root."),
|
|
43
|
+
});
|
|
44
|
+
export const TemplateSummarySchema = z.object({
|
|
45
|
+
key: z.string().describe("The id to name when scaffolding one."),
|
|
46
|
+
label: z.string().describe("What to call it on screen."),
|
|
47
|
+
description: z.string().describe("What you get."),
|
|
48
|
+
});
|
|
49
|
+
export const TemplatesListSchema = z.object({
|
|
50
|
+
templates: z.array(TemplateSummarySchema).describe("The kinds of app the configured source repository knows how to scaffold."),
|
|
51
|
+
});
|
|
52
|
+
export const RepoAppSchema = z.object({
|
|
53
|
+
app: z.string().describe("The app's name, which is also its folder."),
|
|
54
|
+
kind: z
|
|
55
|
+
.string()
|
|
56
|
+
.optional()
|
|
57
|
+
.describe("What sort of app it is: the template it came from, or the framework worked out from its dependencies. Absent when it was found purely by having a dev script."),
|
|
58
|
+
previewUrl: z.string().optional().describe("Where to open it. Absent when this sandbox has no outside address."),
|
|
59
|
+
running: z.boolean().describe("Whether its dev server is up."),
|
|
60
|
+
healthy: z.boolean().describe("Whether it is actually answering."),
|
|
61
|
+
});
|
|
62
|
+
export const AppsListSchema = z.object({ apps: z.array(RepoAppSchema).describe("The apps in this repository.") });
|
|
63
|
+
export const WorkspacePackageSchema = z.object({
|
|
64
|
+
name: z.string().describe("The name the package declares."),
|
|
65
|
+
dir: z.string().describe("Where it lives, relative to the repository."),
|
|
66
|
+
group: z.string().describe("The top-level folder it sits under, which is what a diagram colours by."),
|
|
67
|
+
});
|
|
68
|
+
export const WorkspaceDepTypeSchema = z.enum(["prod", "dev", "peer"]);
|
|
69
|
+
export const WorkspaceDepEdgeSchema = z.object({
|
|
70
|
+
from: z.string().describe("The package that depends."),
|
|
71
|
+
to: z.string().describe("The package it depends on."),
|
|
72
|
+
type: WorkspaceDepTypeSchema.describe("Which kind of dependency declared it."),
|
|
73
|
+
});
|
|
74
|
+
export const WorkspaceGraphSchema = z.object({
|
|
75
|
+
packages: z.array(WorkspacePackageSchema).describe("Every package in the repository."),
|
|
76
|
+
edges: z.array(WorkspaceDepEdgeSchema).describe("Which of them use which. Pure data: how to lay it out is yours to decide."),
|
|
77
|
+
});
|
|
78
|
+
export const RepoAppsParamSchema = z.object({ repo: z.string().describe("Which repository.") });
|
|
79
|
+
export const AppParamSchema = z.object({
|
|
80
|
+
repo: z.string().describe("Which repository."),
|
|
81
|
+
app: z
|
|
82
|
+
.string()
|
|
83
|
+
.min(1)
|
|
84
|
+
.regex(/^[a-z][a-z0-9-]*$/)
|
|
85
|
+
.describe("Which app inside it."),
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=workspace-repos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;AAChG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC9C,GAAG,EAAE,CAAC;SACD,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,KAAK,CAAC,mBAAmB,CAAC;SAC1B,QAAQ,CAAC,sBAAsB,CAAC;CACxC,CAAC,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const WorkspaceSearchQuerySchema: z.ZodObject<{
|
|
3
|
+
query: z.ZodString;
|
|
4
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
5
|
+
ast: "ast";
|
|
6
|
+
def: "def";
|
|
7
|
+
files: "files";
|
|
8
|
+
find: "find";
|
|
9
|
+
q: "q";
|
|
10
|
+
refs: "refs";
|
|
11
|
+
sym: "sym";
|
|
12
|
+
}>>;
|
|
13
|
+
includeIgnored: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
14
|
+
literal: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
15
|
+
word: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
16
|
+
caseSensitive: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
17
|
+
include: z.ZodOptional<z.ZodString>;
|
|
18
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
19
|
+
after: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const WorkspaceSearchTagSchema: z.ZodObject<{
|
|
22
|
+
kind: z.ZodEnum<{
|
|
23
|
+
bm25: "bm25";
|
|
24
|
+
call: "call";
|
|
25
|
+
def: "def";
|
|
26
|
+
fuzzy: "fuzzy";
|
|
27
|
+
heuristic: "heuristic";
|
|
28
|
+
import: "import";
|
|
29
|
+
path: "path";
|
|
30
|
+
rerank: "rerank";
|
|
31
|
+
sem: "sem";
|
|
32
|
+
text: "text";
|
|
33
|
+
type: "type";
|
|
34
|
+
write: "write";
|
|
35
|
+
}>;
|
|
36
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type WorkspaceSearchTag = z.infer<typeof WorkspaceSearchTagSchema>;
|
|
39
|
+
export declare const WorkspaceSearchSpanSchema: z.ZodObject<{
|
|
40
|
+
start: z.ZodNumber;
|
|
41
|
+
end: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type WorkspaceSearchSpan = z.infer<typeof WorkspaceSearchSpanSchema>;
|
|
44
|
+
export declare const WorkspaceSearchHitSchema: z.ZodObject<{
|
|
45
|
+
line: z.ZodNumber;
|
|
46
|
+
text: z.ZodString;
|
|
47
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
48
|
+
start: z.ZodNumber;
|
|
49
|
+
end: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
52
|
+
kind: z.ZodEnum<{
|
|
53
|
+
bm25: "bm25";
|
|
54
|
+
call: "call";
|
|
55
|
+
def: "def";
|
|
56
|
+
fuzzy: "fuzzy";
|
|
57
|
+
heuristic: "heuristic";
|
|
58
|
+
import: "import";
|
|
59
|
+
path: "path";
|
|
60
|
+
rerank: "rerank";
|
|
61
|
+
sem: "sem";
|
|
62
|
+
text: "text";
|
|
63
|
+
type: "type";
|
|
64
|
+
write: "write";
|
|
65
|
+
}>;
|
|
66
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
context: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type WorkspaceSearchHit = z.infer<typeof WorkspaceSearchHitSchema>;
|
|
71
|
+
export declare const WorkspaceSearchGroupSchema: z.ZodObject<{
|
|
72
|
+
path: z.ZodString;
|
|
73
|
+
score: z.ZodNumber;
|
|
74
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
75
|
+
line: z.ZodNumber;
|
|
76
|
+
text: z.ZodString;
|
|
77
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
78
|
+
start: z.ZodNumber;
|
|
79
|
+
end: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
82
|
+
kind: z.ZodEnum<{
|
|
83
|
+
bm25: "bm25";
|
|
84
|
+
call: "call";
|
|
85
|
+
def: "def";
|
|
86
|
+
fuzzy: "fuzzy";
|
|
87
|
+
heuristic: "heuristic";
|
|
88
|
+
import: "import";
|
|
89
|
+
path: "path";
|
|
90
|
+
rerank: "rerank";
|
|
91
|
+
sem: "sem";
|
|
92
|
+
text: "text";
|
|
93
|
+
type: "type";
|
|
94
|
+
write: "write";
|
|
95
|
+
}>;
|
|
96
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
context: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
capped: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export type WorkspaceSearchGroup = z.infer<typeof WorkspaceSearchGroupSchema>;
|
|
103
|
+
export declare const WorkspaceSearchFreshnessSchema: z.ZodObject<{
|
|
104
|
+
state: z.ZodEnum<{
|
|
105
|
+
building: "building";
|
|
106
|
+
fresh: "fresh";
|
|
107
|
+
stale: "stale";
|
|
108
|
+
}>;
|
|
109
|
+
ageMs: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
behind: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export type WorkspaceSearchFreshness = z.infer<typeof WorkspaceSearchFreshnessSchema>;
|
|
114
|
+
export declare const WorkspaceSearchResultSchema: z.ZodObject<{
|
|
115
|
+
mode: z.ZodString;
|
|
116
|
+
total: z.ZodNumber;
|
|
117
|
+
files: z.ZodNumber;
|
|
118
|
+
shown: z.ZodNumber;
|
|
119
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
120
|
+
path: z.ZodString;
|
|
121
|
+
score: z.ZodNumber;
|
|
122
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
123
|
+
line: z.ZodNumber;
|
|
124
|
+
text: z.ZodString;
|
|
125
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
126
|
+
start: z.ZodNumber;
|
|
127
|
+
end: z.ZodNumber;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
130
|
+
kind: z.ZodEnum<{
|
|
131
|
+
bm25: "bm25";
|
|
132
|
+
call: "call";
|
|
133
|
+
def: "def";
|
|
134
|
+
fuzzy: "fuzzy";
|
|
135
|
+
heuristic: "heuristic";
|
|
136
|
+
import: "import";
|
|
137
|
+
path: "path";
|
|
138
|
+
rerank: "rerank";
|
|
139
|
+
sem: "sem";
|
|
140
|
+
text: "text";
|
|
141
|
+
type: "type";
|
|
142
|
+
write: "write";
|
|
143
|
+
}>;
|
|
144
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
context: z.ZodOptional<z.ZodString>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
capped: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
freshness: z.ZodObject<{
|
|
151
|
+
state: z.ZodEnum<{
|
|
152
|
+
building: "building";
|
|
153
|
+
fresh: "fresh";
|
|
154
|
+
stale: "stale";
|
|
155
|
+
}>;
|
|
156
|
+
ageMs: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
behind: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
truncated: z.ZodBoolean;
|
|
161
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
163
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
164
|
+
note: z.ZodOptional<z.ZodString>;
|
|
165
|
+
related: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
166
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type WorkspaceSearchResult = z.infer<typeof WorkspaceSearchResultSchema>;
|
|
170
|
+
//# sourceMappingURL=workspace-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-search.d.ts","sourceRoot":"","sources":["../../src/schemas/workspace-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;iBA8BrC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;iBAOnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAG9E,eAAO,MAAM,8BAA8B;;;;;;;;;iBAYzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0CtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|