@intentic/sandbox-contract 1.232.0 → 1.234.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 +11 -5
- package/dist/agent-catalog.d.ts +4 -2
- package/dist/agent-catalog.d.ts.map +1 -1
- package/dist/agent-catalog.js +20 -14
- 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/chores.js +36 -1
- package/dist/chores/chores.js.map +1 -1
- package/dist/chores/probes.d.ts +1 -1
- package/dist/chores/probes.d.ts.map +1 -1
- package/dist/chores/probes.js +70 -0
- package/dist/chores/probes.js.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 +17 -0
- package/dist/command-classes.d.ts.map +1 -0
- package/dist/command-classes.js +189 -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 +40 -2
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +4 -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.d.ts +30 -0
- package/dist/contracts/automations.contract.d.ts.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 +17 -0
- 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 +44 -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 +7 -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/issues.contract.d.ts +89 -0
- package/dist/contracts/issues.contract.d.ts.map +1 -0
- package/dist/contracts/issues.contract.js +50 -0
- package/dist/contracts/issues.contract.js.map +1 -0
- 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 +127 -84
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.js +10 -2
- 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 +32 -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 +31 -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/credential-material.d.ts +2 -0
- package/dist/credential-material.d.ts.map +1 -0
- package/dist/credential-material.js +36 -0
- package/dist/credential-material.js.map +1 -0
- 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 +132 -21
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +29 -7
- package/dist/definition.js.map +1 -1
- package/dist/events.d.ts +101 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +25 -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 +2 -0
- package/dist/history-state.js.map +1 -1
- package/dist/hostnames.d.ts +2 -0
- package/dist/hostnames.d.ts.map +1 -1
- package/dist/hostnames.js +3 -1
- package/dist/hostnames.js.map +1 -1
- package/dist/index.d.ts +411 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -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/runtime-state.d.ts +9 -0
- package/dist/runtime-state.d.ts.map +1 -1
- package/dist/runtime-state.js +3 -0
- package/dist/runtime-state.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 +195 -0
- package/dist/schemas/agent.d.ts.map +1 -0
- package/dist/schemas/agent.js +171 -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 +781 -0
- package/dist/schemas/automations.d.ts.map +1 -0
- package/dist/schemas/automations.js +223 -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 +1016 -0
- package/dist/schemas/extension-updates.d.ts.map +1 -0
- package/dist/schemas/extension-updates.js +199 -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/issues.d.ts +324 -0
- package/dist/schemas/issues.d.ts.map +1 -0
- package/dist/schemas/issues.js +107 -0
- package/dist/schemas/issues.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 +618 -0
- package/dist/schemas/maintenance.d.ts.map +1 -0
- package/dist/schemas/maintenance.js +222 -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 +554 -0
- package/dist/schemas/settings.d.ts.map +1 -0
- package/dist/schemas/settings.js +263 -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 +122 -0
- package/dist/schemas/webext.d.ts.map +1 -0
- package/dist/schemas/webext.js +45 -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 +14 -0
- package/dist/webext-links.d.ts.map +1 -0
- package/dist/webext-links.js +25 -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 +12 -8
- package/dist/workspace-state.d.ts.map +1 -1
- package/dist/workspace-state.js +15 -10
- package/dist/workspace-state.js.map +1 -1
- package/package.json +19 -8
- package/src/agent-catalog.test.ts +56 -55
- package/src/agent-catalog.ts +33 -33
- package/src/capability-ledger.test.ts +11 -2
- package/src/chores/chores.test.ts +1 -1
- package/src/chores/chores.ts +67 -2
- package/src/chores/probes.test.ts +65 -0
- package/src/chores/probes.ts +133 -1
- package/src/chores/stack.test.ts +19 -0
- package/src/chores/stack.ts +19 -3
- package/src/chores/verdict.test.ts +40 -20
- package/src/chores/verdict.ts +1 -1
- package/src/command-classes.test.ts +445 -0
- package/src/command-classes.ts +468 -0
- package/src/contracts/activity.contract.ts +1 -1
- package/src/contracts/agent.contract.ts +4 -13
- 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 +8 -7
- 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/issues.contract.ts +60 -0
- 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 +18 -2
- 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/credential-material.test.ts +120 -0
- package/src/credential-material.ts +100 -0
- package/src/definition-action.ts +8 -0
- package/src/definition.ts +74 -10
- package/src/events.ts +84 -22
- package/src/fast-tier.ts +1 -1
- package/src/history-state.ts +17 -0
- package/src/host-protocol.ts +1 -1
- package/src/hostnames.test.ts +2 -2
- package/src/hostnames.ts +18 -2
- package/src/index.ts +65 -1
- package/src/listener-protocol.ts +1 -1
- package/src/quick-model.ts +1 -1
- package/src/routes.test.ts +4 -2
- package/src/runner-protocol.ts +35 -5
- package/src/runtime-state.ts +16 -0
- package/src/schemas/activity.ts +123 -0
- package/src/schemas/agent.ts +422 -0
- package/src/schemas/agents.ts +802 -0
- package/src/schemas/automations.ts +522 -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 +324 -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/issues.ts +279 -0
- package/src/schemas/logs.ts +96 -0
- package/src/schemas/loops.ts +401 -0
- package/src/schemas/maintenance.ts +471 -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 +964 -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 +288 -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 +108 -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/tunnel-ids.test.ts +3 -1
- package/src/webext-links.ts +90 -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 +6 -4
- package/src/workspace-state.ts +35 -50
- package/dist/schemas.d.ts +0 -9909
- package/dist/schemas.d.ts.map +0 -1
- package/dist/schemas.js +0 -4288
- package/dist/schemas.js.map +0 -1
- package/src/schemas.ts +0 -10090
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-updates.d.ts","sourceRoot":"","sources":["../../src/schemas/extension-updates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAGhF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;iBAiChC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,uBAAuB;;;;;iBASlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,qBAAqB;;;;;;;;;;iBAahC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAI1D,eAAO,MAAM,2BAA2B;;;iBAOtC,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;iBASvC,CAAC;AAGH,eAAO,MAAM,4BAA4B;;;;iBASvC,CAAC;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;iBAO3C,CAAC;AACH,eAAO,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe/B,CAAC;AAKH,eAAO,MAAM,uBAAuB;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,4BAA4B;;;iBAKvC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAKH,eAAO,MAAM,8BAA8B;;;iBASzC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAC;AAKH,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;;;;iBAOvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ExtensionManifestSchema } from "@intentic/extension-manifest";
|
|
3
|
+
const extensionId = z
|
|
4
|
+
.string()
|
|
5
|
+
.min(1)
|
|
6
|
+
.max(121)
|
|
7
|
+
.regex(/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/);
|
|
8
|
+
export const ExtensionUpdatePolicySchema = z.object({
|
|
9
|
+
updates: z.enum(["notify", "agent", "auto"]),
|
|
10
|
+
advisories: z.enum(["auto-disable", "notify"]),
|
|
11
|
+
});
|
|
12
|
+
export const ExtensionUpdateSchema = z.object({
|
|
13
|
+
ref: z.string().describe("The commit being offered."),
|
|
14
|
+
version: z.string().optional().describe("What it calls itself."),
|
|
15
|
+
url: z.string().describe("Where it comes from."),
|
|
16
|
+
path: z.string().optional().describe("Where inside that repository it lives."),
|
|
17
|
+
trust: z.enum(["verified", "listed"]).describe("Whether anybody vouched for it, or it is merely listed."),
|
|
18
|
+
securityFix: z
|
|
19
|
+
.boolean()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe("This release fixes a security problem in earlier ones, so here the old version is the dangerous one."),
|
|
22
|
+
registry: z.string().describe("Which registry said so."),
|
|
23
|
+
at: z.string().describe("When it was published."),
|
|
24
|
+
needsReview: z
|
|
25
|
+
.string()
|
|
26
|
+
.optional()
|
|
27
|
+
.describe("Why this one was not taken automatically and is asking for a person instead: it wants more than it used to, or nobody has vouched for it."),
|
|
28
|
+
review: z
|
|
29
|
+
.object({
|
|
30
|
+
conversationId: z.string().describe("Where to read what it found."),
|
|
31
|
+
at: z.string().describe("When it looked."),
|
|
32
|
+
})
|
|
33
|
+
.optional()
|
|
34
|
+
.describe("An agent has already read the difference between what is installed and this, so the card can link to what it found rather than offer to start looking."),
|
|
35
|
+
});
|
|
36
|
+
export const ExtensionAdvisorySchema = z.object({
|
|
37
|
+
reason: z
|
|
38
|
+
.string()
|
|
39
|
+
.describe("Why the registry pulled the listing, in its own words. Delisting protects people browsing; this record is for the person already running it."),
|
|
40
|
+
registry: z.string().describe("Which registry said so."),
|
|
41
|
+
at: z.string().describe("When."),
|
|
42
|
+
autoDisabled: z.boolean().describe("Whether the sandbox has already switched it off."),
|
|
43
|
+
});
|
|
44
|
+
export const ExtensionHealthSchema = z.object({
|
|
45
|
+
state: z
|
|
46
|
+
.enum(["watching", "healthy", "unhealthy"])
|
|
47
|
+
.describe("How it has behaved since the last update. Checks catch broken, not wrong, so for a while after a swap it is simply watched."),
|
|
48
|
+
detail: z.string().optional().describe("What is going wrong, when something is."),
|
|
49
|
+
fromRef: z.string().optional().describe("Which version it was updated from, which is what going back would return to."),
|
|
50
|
+
at: z.string().describe("When the watching started."),
|
|
51
|
+
autoReverted: z
|
|
52
|
+
.boolean()
|
|
53
|
+
.optional()
|
|
54
|
+
.describe("The update was already rolled back without anybody asking. The record stays rather than pretending the attempt never happened."),
|
|
55
|
+
});
|
|
56
|
+
export const PowersDiffSchema = z.object({
|
|
57
|
+
added: z.array(z.string()).describe("What the new version asks for that the running one does not. The whole point of the comparison."),
|
|
58
|
+
removed: z.array(z.string()).describe("What it no longer asks for."),
|
|
59
|
+
unchanged: z.array(z.string()).describe("What stays the same."),
|
|
60
|
+
});
|
|
61
|
+
export const ExtensionUpdateActionSchema = z.object({
|
|
62
|
+
id: extensionId.describe("Which extension."),
|
|
63
|
+
ref: z
|
|
64
|
+
.string()
|
|
65
|
+
.regex(/^[0-9a-f]{40}$/)
|
|
66
|
+
.optional()
|
|
67
|
+
.describe("Which commit, in full. Leave it out for whatever the last check found, which is what most callers mean."),
|
|
68
|
+
});
|
|
69
|
+
export const ExtensionUpdatePreviewSchema = z.object({
|
|
70
|
+
ref: z.string().describe("The commit this would install."),
|
|
71
|
+
version: z.string().describe("What that version calls itself."),
|
|
72
|
+
installedVersion: z.string().describe("What is running now."),
|
|
73
|
+
engines: z.string().describe("Which sandbox versions the new one says it needs."),
|
|
74
|
+
compatible: z.boolean().describe("Whether this sandbox is one of them."),
|
|
75
|
+
powers: PowersDiffSchema.describe("Exactly what the new code asks for that the running one does not. This is what approving an update is approving."),
|
|
76
|
+
});
|
|
77
|
+
export const ExtensionUpdateAppliedSchema = z.object({
|
|
78
|
+
ok: z.literal(true).describe("It went through."),
|
|
79
|
+
ref: z.string().describe("Which commit is now running."),
|
|
80
|
+
rebuildNeeded: z
|
|
81
|
+
.boolean()
|
|
82
|
+
.optional()
|
|
83
|
+
.describe("The new version changes what the sandbox image contains, so a one-time rebuild is still pending and the update is not wholly landed yet."),
|
|
84
|
+
});
|
|
85
|
+
export const ExtensionUpdatePolicyInputSchema = z.object({
|
|
86
|
+
id: extensionId.describe("Which extension."),
|
|
87
|
+
updates: z
|
|
88
|
+
.enum(["notify", "agent", "auto"])
|
|
89
|
+
.optional()
|
|
90
|
+
.describe("What to do about a newer version: tell you, have an agent read the difference first, or just take it."),
|
|
91
|
+
advisories: z.enum(["auto-disable", "notify"]).optional().describe("What to do about a security warning: switch it off at once, or tell you."),
|
|
92
|
+
});
|
|
93
|
+
export const ExtensionUpdatesCheckedSchema = z.object({
|
|
94
|
+
ok: z.literal(true).describe("The check ran."),
|
|
95
|
+
checkedAt: z.string().describe("When, so a screen can date the answer."),
|
|
96
|
+
});
|
|
97
|
+
export const ExtensionSummarySchema = z.object({
|
|
98
|
+
id: extensionId.describe("The extension's id."),
|
|
99
|
+
manifest: ExtensionManifestSchema.describe("What it declares about itself: what it contributes, what it needs, and what it may reach."),
|
|
100
|
+
commit: z.string().describe("Exactly which commit is installed."),
|
|
101
|
+
source: z
|
|
102
|
+
.enum(["builtin", "installed", "workspace"])
|
|
103
|
+
.describe("Where the code comes from: baked into the sandbox image and not removable, installed from a repository at a pinned commit, or written in this workspace and edited in place."),
|
|
104
|
+
enabled: z
|
|
105
|
+
.boolean()
|
|
106
|
+
.describe("The owner's switch. A switched-off extension is still listed, which is what makes it switchable back on, but nothing it contributes is wired up."),
|
|
107
|
+
essential: z
|
|
108
|
+
.boolean()
|
|
109
|
+
.optional()
|
|
110
|
+
.describe("Its switch is fixed on, because it is the only way to see or stop an engine the sandbox runs regardless. Hiding that page would not stop the spending, only your ability to notice it. Declared by the core about its own surfaces, never by an extension about itself, which would be a pack making itself un-removable."),
|
|
111
|
+
usage: z
|
|
112
|
+
.record(z.string(), z.object({ calls: z.number().int().nonnegative().describe("How many times."), last: z.string().describe("When, most recently.") }))
|
|
113
|
+
.optional()
|
|
114
|
+
.describe("How much of the reach it asked for it has actually used, keyed by what it declared. Absent means never observed doing anything, which is a different claim from uses none of them, and the two have to stay tellable apart: reading either as these permissions are unnecessary turns evidence into a guess with a number on it."),
|
|
115
|
+
backend: z
|
|
116
|
+
.object({
|
|
117
|
+
state: z
|
|
118
|
+
.enum(["running", "error", "absent", "incompatible", "starting", "stopped"])
|
|
119
|
+
.describe("How its server half is doing. Absent means the code is not in this image at all; incompatible means it needs a different sandbox version."),
|
|
120
|
+
detail: z
|
|
121
|
+
.string()
|
|
122
|
+
.optional()
|
|
123
|
+
.describe("What went wrong, so a backend that failed to start is a sentence rather than an address that answers nothing."),
|
|
124
|
+
})
|
|
125
|
+
.optional()
|
|
126
|
+
.describe("Present only for an extension that ships a server half."),
|
|
127
|
+
update: ExtensionUpdateSchema.optional().describe("A newer version waiting. All five of these exist only for one installed from a repository: a built-in updates with the image and one written here is edited live."),
|
|
128
|
+
advisory: ExtensionAdvisorySchema.optional().describe("A security warning about the installed version."),
|
|
129
|
+
health: ExtensionHealthSchema.optional().describe("How it has behaved since the last update, which is what decides whether that update sticks."),
|
|
130
|
+
previous: z
|
|
131
|
+
.object({
|
|
132
|
+
ref: z.string().describe("The commit that was running before."),
|
|
133
|
+
version: z.string().optional().describe("What it called itself."),
|
|
134
|
+
})
|
|
135
|
+
.optional()
|
|
136
|
+
.describe("The version kept one step back, which is what going back means."),
|
|
137
|
+
updatePolicy: ExtensionUpdatePolicySchema.optional().describe("The owner's standing answer for this one: tell me, have an agent look, or just do it."),
|
|
138
|
+
});
|
|
139
|
+
export const InvalidWorkspaceExtensionSchema = z.object({
|
|
140
|
+
dir: z.string().describe("Which folder."),
|
|
141
|
+
error: z.string().describe("Why it could not be read."),
|
|
142
|
+
});
|
|
143
|
+
export const ExtensionsListSchema = z.object({
|
|
144
|
+
extensions: z.array(ExtensionSummarySchema).describe("What is installed."),
|
|
145
|
+
invalid: z
|
|
146
|
+
.array(InvalidWorkspaceExtensionSchema)
|
|
147
|
+
.describe("Extensions written here that could not be read at all. Listed rather than dropped, because there is no install moment at which to reject a broken one, so this is its only way of saying anything."),
|
|
148
|
+
updatesCheckedAt: z
|
|
149
|
+
.string()
|
|
150
|
+
.optional()
|
|
151
|
+
.describe("When updates were last looked for. Absent until the first check has run. Sent so a screen can say checked an hour ago rather than presenting staleness as certainty."),
|
|
152
|
+
});
|
|
153
|
+
export const ExtensionSettingsSchema = z.object({
|
|
154
|
+
settings: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).describe("The values, minus anything marked secret."),
|
|
155
|
+
secretsSet: z
|
|
156
|
+
.array(z.string())
|
|
157
|
+
.describe("Which of its secret settings actually hold a value. Names only: the values themselves never come back."),
|
|
158
|
+
});
|
|
159
|
+
export const ExtensionSettingsInputSchema = z.object({
|
|
160
|
+
id: z.string().describe("Which extension."),
|
|
161
|
+
settings: z
|
|
162
|
+
.record(z.string(), z.union([z.string(), z.number(), z.boolean()]))
|
|
163
|
+
.describe("The values to write. A key the extension never declared is refused rather than quietly stored."),
|
|
164
|
+
});
|
|
165
|
+
export const ExtensionEnabledInputSchema = z.object({
|
|
166
|
+
id: z.string().describe("Which extension."),
|
|
167
|
+
enabled: z.boolean().describe("On or off."),
|
|
168
|
+
});
|
|
169
|
+
export const WorkspaceExtensionCreateSchema = z.object({
|
|
170
|
+
publisher: z
|
|
171
|
+
.string()
|
|
172
|
+
.regex(/^[a-z0-9][a-z0-9-]*$/)
|
|
173
|
+
.describe("Who it is by, which together with the name makes its id."),
|
|
174
|
+
name: z
|
|
175
|
+
.string()
|
|
176
|
+
.regex(/^[a-z0-9][a-z0-9-]*$/)
|
|
177
|
+
.describe("What it is called."),
|
|
178
|
+
});
|
|
179
|
+
export const WorkspaceExtensionCreatedSchema = z.object({
|
|
180
|
+
id: z.string().describe("The id it was given."),
|
|
181
|
+
dir: z.string().describe("Where its files are, so you can open them."),
|
|
182
|
+
});
|
|
183
|
+
export const ExtensionUsageInputSchema = z.object({
|
|
184
|
+
id: z.string().describe("Which extension."),
|
|
185
|
+
used: z.record(z.string(), z.number().int().positive()).describe("Which of its declared powers it exercised, and how many times."),
|
|
186
|
+
});
|
|
187
|
+
export const ExtensionProcessParamSchema = z.object({
|
|
188
|
+
id: z.string().describe("Which extension."),
|
|
189
|
+
name: z.string().describe("Which of its declared processes."),
|
|
190
|
+
});
|
|
191
|
+
export const ExtensionProcessStatusSchema = z.object({
|
|
192
|
+
name: z.string().describe("Which process."),
|
|
193
|
+
running: z.boolean().describe("Whether it is up. False with a port means it crashed and the supervisor is waiting to retry it."),
|
|
194
|
+
port: z.number().optional().describe("The port it was given."),
|
|
195
|
+
restarts: z.number().optional().describe("How many times it died and was brought back since it was started. A growing number is a service in trouble."),
|
|
196
|
+
lastExitCode: z.number().optional().describe("How it last exited, when it has crashed at least once."),
|
|
197
|
+
previewUrl: z.string().optional().describe("Where to open it, when it has an address."),
|
|
198
|
+
});
|
|
199
|
+
//# sourceMappingURL=extension-updates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-updates.js","sourceRoot":"","sources":["../../src/schemas/extension-updates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAMvE,MAAM,WAAW,GAAG,CAAC;KAChB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC;KACR,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAM3C,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;CACjD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACrD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAChE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC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AE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,iGAAiG,CAAC;IAChI,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC9D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6GAA6G,CAAC;IACvJ,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wDAAwD,CAAC;IACtG,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;CAC1F,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-mode.d.ts","sourceRoot":"","sources":["../../src/schemas/fast-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;EAAoC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-mode.js","sourceRoot":"","sources":["../../src/schemas/fast-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const GitCommitSchema: z.ZodObject<{
|
|
3
|
+
sha: z.ZodString;
|
|
4
|
+
short: z.ZodString;
|
|
5
|
+
parents: z.ZodArray<z.ZodString>;
|
|
6
|
+
subject: z.ZodString;
|
|
7
|
+
body: z.ZodString;
|
|
8
|
+
author: z.ZodString;
|
|
9
|
+
email: z.ZodString;
|
|
10
|
+
at: z.ZodNumber;
|
|
11
|
+
refs: z.ZodArray<z.ZodString>;
|
|
12
|
+
head: z.ZodBoolean;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type GitCommit = z.infer<typeof GitCommitSchema>;
|
|
15
|
+
export declare const GitLogSchema: z.ZodObject<{
|
|
16
|
+
repo: z.ZodString;
|
|
17
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
18
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
19
|
+
sha: z.ZodString;
|
|
20
|
+
short: z.ZodString;
|
|
21
|
+
parents: z.ZodArray<z.ZodString>;
|
|
22
|
+
subject: z.ZodString;
|
|
23
|
+
body: z.ZodString;
|
|
24
|
+
author: z.ZodString;
|
|
25
|
+
email: z.ZodString;
|
|
26
|
+
at: z.ZodNumber;
|
|
27
|
+
refs: z.ZodArray<z.ZodString>;
|
|
28
|
+
head: z.ZodBoolean;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
hasMore: z.ZodBoolean;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type GitLog = z.infer<typeof GitLogSchema>;
|
|
33
|
+
export declare const GitLogQuerySchema: z.ZodObject<{
|
|
34
|
+
repo: z.ZodString;
|
|
35
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
36
|
+
skip: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const GitReposSchema: z.ZodObject<{
|
|
39
|
+
repos: z.ZodArray<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type GitRepos = z.infer<typeof GitReposSchema>;
|
|
42
|
+
export declare const GitRemoteRepoSchema: z.ZodObject<{
|
|
43
|
+
repo: z.ZodString;
|
|
44
|
+
host: z.ZodString;
|
|
45
|
+
project: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type GitRemoteRepo = z.infer<typeof GitRemoteRepoSchema>;
|
|
48
|
+
export declare const GitRemoteReposSchema: z.ZodObject<{
|
|
49
|
+
repos: z.ZodArray<z.ZodObject<{
|
|
50
|
+
repo: z.ZodString;
|
|
51
|
+
host: z.ZodString;
|
|
52
|
+
project: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type GitRemoteRepos = z.infer<typeof GitRemoteReposSchema>;
|
|
56
|
+
export declare const GitPublishFileSchema: z.ZodObject<{
|
|
57
|
+
repo: z.ZodString;
|
|
58
|
+
path: z.ZodString;
|
|
59
|
+
content: z.ZodString;
|
|
60
|
+
message: z.ZodString;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export declare const GitPublishFileResultSchema: z.ZodObject<{
|
|
63
|
+
ok: z.ZodBoolean;
|
|
64
|
+
wrote: z.ZodBoolean;
|
|
65
|
+
committed: z.ZodBoolean;
|
|
66
|
+
pushed: z.ZodBoolean;
|
|
67
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
68
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
69
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type GitPublishFileResult = z.infer<typeof GitPublishFileResultSchema>;
|
|
72
|
+
export declare const GitCommitDiffQuerySchema: z.ZodObject<{
|
|
73
|
+
repo: z.ZodString;
|
|
74
|
+
sha: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export declare const GitCommitDiffSchema: z.ZodObject<{
|
|
77
|
+
files: z.ZodArray<z.ZodObject<{
|
|
78
|
+
path: z.ZodString;
|
|
79
|
+
status: z.ZodEnum<{
|
|
80
|
+
added: "added";
|
|
81
|
+
conflicted: "conflicted";
|
|
82
|
+
deleted: "deleted";
|
|
83
|
+
modified: "modified";
|
|
84
|
+
renamed: "renamed";
|
|
85
|
+
"type-changed": "type-changed";
|
|
86
|
+
}>;
|
|
87
|
+
from: z.ZodOptional<z.ZodString>;
|
|
88
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type GitCommitDiff = z.infer<typeof GitCommitDiffSchema>;
|
|
93
|
+
export declare const GitCommitFileDiffQuerySchema: z.ZodObject<{
|
|
94
|
+
repo: z.ZodString;
|
|
95
|
+
sha: z.ZodString;
|
|
96
|
+
path: z.ZodString;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export declare const GitBranchCreateSchema: z.ZodObject<{
|
|
99
|
+
repo: z.ZodString;
|
|
100
|
+
sha: z.ZodString;
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export declare const GitTagCreateSchema: z.ZodObject<{
|
|
104
|
+
repo: z.ZodString;
|
|
105
|
+
sha: z.ZodString;
|
|
106
|
+
name: z.ZodString;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export declare const GitCheckoutSchema: z.ZodObject<{
|
|
109
|
+
repo: z.ZodString;
|
|
110
|
+
ref: z.ZodString;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export declare const GitTagDeleteSchema: z.ZodObject<{
|
|
113
|
+
repo: z.ZodString;
|
|
114
|
+
name: z.ZodString;
|
|
115
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export declare const GitTagPushSchema: z.ZodObject<{
|
|
118
|
+
repo: z.ZodString;
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
remote: z.ZodString;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
export declare const GitResetSchema: z.ZodObject<{
|
|
123
|
+
repo: z.ZodString;
|
|
124
|
+
sha: z.ZodString;
|
|
125
|
+
mode: z.ZodEnum<{
|
|
126
|
+
hard: "hard";
|
|
127
|
+
mixed: "mixed";
|
|
128
|
+
soft: "soft";
|
|
129
|
+
}>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export declare const GitCommitActionSchema: z.ZodObject<{
|
|
132
|
+
repo: z.ZodString;
|
|
133
|
+
sha: z.ZodString;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
export declare const GitActionResultSchema: z.ZodObject<{
|
|
136
|
+
ok: z.ZodBoolean;
|
|
137
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export type GitActionResult = z.infer<typeof GitActionResultSchema>;
|
|
140
|
+
export declare const StashEntrySchema: z.ZodObject<{
|
|
141
|
+
ref: z.ZodString;
|
|
142
|
+
sha: z.ZodString;
|
|
143
|
+
short: z.ZodString;
|
|
144
|
+
subject: z.ZodString;
|
|
145
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
146
|
+
at: z.ZodNumber;
|
|
147
|
+
parents: z.ZodArray<z.ZodString>;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
export type StashEntry = z.infer<typeof StashEntrySchema>;
|
|
150
|
+
export declare const StashListSchema: z.ZodObject<{
|
|
151
|
+
repo: z.ZodString;
|
|
152
|
+
stashes: z.ZodArray<z.ZodObject<{
|
|
153
|
+
ref: z.ZodString;
|
|
154
|
+
sha: z.ZodString;
|
|
155
|
+
short: z.ZodString;
|
|
156
|
+
subject: z.ZodString;
|
|
157
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
158
|
+
at: z.ZodNumber;
|
|
159
|
+
parents: z.ZodArray<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
export declare const StashPushSchema: z.ZodObject<{
|
|
163
|
+
repo: z.ZodString;
|
|
164
|
+
message: z.ZodOptional<z.ZodString>;
|
|
165
|
+
includeUntracked: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
export declare const StashApplySchema: z.ZodObject<{
|
|
168
|
+
repo: z.ZodString;
|
|
169
|
+
ref: z.ZodString;
|
|
170
|
+
pop: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
export declare const StashRefParamSchema: z.ZodObject<{
|
|
173
|
+
repo: z.ZodString;
|
|
174
|
+
ref: z.ZodString;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
export declare const StashDiffQuerySchema: z.ZodObject<{
|
|
177
|
+
repo: z.ZodString;
|
|
178
|
+
ref: z.ZodString;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export declare const UndoKindSchema: z.ZodEnum<{
|
|
181
|
+
amend: "amend";
|
|
182
|
+
"cherry-pick": "cherry-pick";
|
|
183
|
+
commit: "commit";
|
|
184
|
+
merge: "merge";
|
|
185
|
+
other: "other";
|
|
186
|
+
pull: "pull";
|
|
187
|
+
rebase: "rebase";
|
|
188
|
+
reset: "reset";
|
|
189
|
+
revert: "revert";
|
|
190
|
+
}>;
|
|
191
|
+
export type UndoKind = z.infer<typeof UndoKindSchema>;
|
|
192
|
+
export declare const UndoableActionSchema: z.ZodObject<{
|
|
193
|
+
kind: z.ZodEnum<{
|
|
194
|
+
amend: "amend";
|
|
195
|
+
"cherry-pick": "cherry-pick";
|
|
196
|
+
commit: "commit";
|
|
197
|
+
merge: "merge";
|
|
198
|
+
other: "other";
|
|
199
|
+
pull: "pull";
|
|
200
|
+
rebase: "rebase";
|
|
201
|
+
reset: "reset";
|
|
202
|
+
revert: "revert";
|
|
203
|
+
}>;
|
|
204
|
+
description: z.ZodString;
|
|
205
|
+
branch: z.ZodString;
|
|
206
|
+
sha: z.ZodString;
|
|
207
|
+
previousSha: z.ZodString;
|
|
208
|
+
changesWorkingTree: z.ZodBoolean;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export type UndoableAction = z.infer<typeof UndoableActionSchema>;
|
|
211
|
+
export declare const GitUndoStateSchema: z.ZodObject<{
|
|
212
|
+
repo: z.ZodString;
|
|
213
|
+
action: z.ZodOptional<z.ZodObject<{
|
|
214
|
+
kind: z.ZodEnum<{
|
|
215
|
+
amend: "amend";
|
|
216
|
+
"cherry-pick": "cherry-pick";
|
|
217
|
+
commit: "commit";
|
|
218
|
+
merge: "merge";
|
|
219
|
+
other: "other";
|
|
220
|
+
pull: "pull";
|
|
221
|
+
rebase: "rebase";
|
|
222
|
+
reset: "reset";
|
|
223
|
+
revert: "revert";
|
|
224
|
+
}>;
|
|
225
|
+
description: z.ZodString;
|
|
226
|
+
branch: z.ZodString;
|
|
227
|
+
sha: z.ZodString;
|
|
228
|
+
previousSha: z.ZodString;
|
|
229
|
+
changesWorkingTree: z.ZodBoolean;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
export type GitUndoState = z.infer<typeof GitUndoStateSchema>;
|
|
233
|
+
export declare const GitUndoSchema: z.ZodObject<{
|
|
234
|
+
repo: z.ZodString;
|
|
235
|
+
previousSha: z.ZodString;
|
|
236
|
+
discardChanges: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
//# sourceMappingURL=git-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-history.d.ts","sourceRoot":"","sources":["../../src/schemas/git-history.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,eAAe;;;;;;;;;;;iBAe1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAGxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;iBAYvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CA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GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAWpE,eAAO,MAAM,gBAAgB;;;;;;;;iBAS3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,eAAO,MAAM,eAAe;;;;;;;;;;;iBAG1B,CAAC;AAGH,eAAO,MAAM,eAAe;;;;iBAG1B,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;;iBAG3B,CAAC;AACH,eAAO,MAAM,mBAAmB;;;iBAA2E,CAAC;AAC5G,eAAO,MAAM,oBAAoB;;;iBAA2E,CAAC;AAY7G,eAAO,MAAM,cAAc;;;;;;;;;;EAAoG,CAAC;AAChI,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;iBAe/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;iBAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,aAAa;;;;iBAKxB,CAAC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { GitChangeSchema } from "./git.js";
|
|
3
|
+
import { RefNameSchema } from "./internal.js";
|
|
4
|
+
import { RepoParamSchema } from "./shared.js";
|
|
5
|
+
const ShaSchema = z.string().regex(/^[0-9a-f]{4,64}$/);
|
|
6
|
+
export const GitCommitSchema = z.object({
|
|
7
|
+
sha: z.string().describe("The commit, in full."),
|
|
8
|
+
short: z.string().describe("The abbreviated form, for showing."),
|
|
9
|
+
parents: z
|
|
10
|
+
.array(z.string())
|
|
11
|
+
.describe("What it came from. None means the first commit, one is ordinary, two or more is a merge, which is what a graph draws its lanes from."),
|
|
12
|
+
subject: z.string().describe("Its first line."),
|
|
13
|
+
body: z.string().describe("Everything after that."),
|
|
14
|
+
author: z.string().describe("Who wrote it."),
|
|
15
|
+
email: z.string().describe("Their address."),
|
|
16
|
+
at: z.number().describe("When they wrote it, in milliseconds."),
|
|
17
|
+
refs: z.array(z.string()).describe("Branches and tags sitting on it."),
|
|
18
|
+
head: z.boolean().describe("Whether this is where the repository currently stands."),
|
|
19
|
+
});
|
|
20
|
+
export const GitLogSchema = z.object({
|
|
21
|
+
repo: z.string().describe("Which repository."),
|
|
22
|
+
branch: z.string().optional().describe("Which branch these are from."),
|
|
23
|
+
commits: z.array(GitCommitSchema).describe("The commits, newest first."),
|
|
24
|
+
hasMore: z
|
|
25
|
+
.boolean()
|
|
26
|
+
.describe("There are older ones behind this page. It is also what stops the last row being drawn as the beginning of history, which is how a truncated log used to claim it started where the page happened to stop."),
|
|
27
|
+
});
|
|
28
|
+
export const GitLogQuerySchema = RepoParamSchema.extend({
|
|
29
|
+
limit: z.coerce.number().int().positive().max(2000).optional().describe("How many commits to return."),
|
|
30
|
+
skip: z.coerce
|
|
31
|
+
.number()
|
|
32
|
+
.int()
|
|
33
|
+
.nonnegative()
|
|
34
|
+
.max(1_000_000)
|
|
35
|
+
.optional()
|
|
36
|
+
.describe("How many newer commits to step over, which is how you page further back. Paged rather than read whole, because a large repository's history is tens of thousands of rows."),
|
|
37
|
+
});
|
|
38
|
+
export const GitReposSchema = z.object({
|
|
39
|
+
repos: z.array(z.string()).describe('Every repository\'s id. The workspace itself is always present as "root".'),
|
|
40
|
+
});
|
|
41
|
+
export const GitRemoteRepoSchema = z.object({
|
|
42
|
+
repo: z.string().describe("The workspace repository."),
|
|
43
|
+
host: z.string().describe("Which forge its remote points at."),
|
|
44
|
+
project: z.string().describe("Which project there, as owner and name."),
|
|
45
|
+
});
|
|
46
|
+
export const GitRemoteReposSchema = z.object({
|
|
47
|
+
repos: z.array(GitRemoteRepoSchema).describe("Each repository matched to the project its remote points at."),
|
|
48
|
+
});
|
|
49
|
+
export const GitPublishFileSchema = RepoParamSchema.extend({
|
|
50
|
+
path: z.string().min(1).describe("Which file, relative to the repository."),
|
|
51
|
+
content: z.string().describe("Its whole new contents."),
|
|
52
|
+
message: z.string().min(1).describe("The commit message."),
|
|
53
|
+
});
|
|
54
|
+
export const GitPublishFileResultSchema = z.object({
|
|
55
|
+
ok: z.boolean().describe("Whether the whole thing went through."),
|
|
56
|
+
wrote: z.boolean().describe("The file was written."),
|
|
57
|
+
committed: z.boolean().describe("The commit was recorded."),
|
|
58
|
+
pushed: z.boolean().describe("It reached the remote."),
|
|
59
|
+
branch: z.string().optional().describe("Which branch it happened on."),
|
|
60
|
+
defaultBranch: z.string().optional().describe("Which branch the repository considers its main one, so a caller can see it was on a side branch."),
|
|
61
|
+
reason: z
|
|
62
|
+
.string()
|
|
63
|
+
.optional()
|
|
64
|
+
.describe("Why it stopped where it did. Being on a side branch, having no remote and having no credentials are all reported here rather than raised."),
|
|
65
|
+
});
|
|
66
|
+
export const GitCommitDiffQuerySchema = RepoParamSchema.extend({ sha: ShaSchema.describe("Which commit.") });
|
|
67
|
+
export const GitCommitDiffSchema = z.object({
|
|
68
|
+
files: z
|
|
69
|
+
.array(GitChangeSchema)
|
|
70
|
+
.describe("Which files it touched, with counts but not contents. Fetch any one file's contents separately, so a commit with a thousand files stays one cheap answer."),
|
|
71
|
+
});
|
|
72
|
+
export const GitCommitFileDiffQuerySchema = RepoParamSchema.extend({
|
|
73
|
+
sha: ShaSchema.describe("Which commit."),
|
|
74
|
+
path: z.string().min(1).describe("Which file in it."),
|
|
75
|
+
});
|
|
76
|
+
export const GitBranchCreateSchema = RepoParamSchema.extend({
|
|
77
|
+
sha: ShaSchema.describe("Which commit to start it at."),
|
|
78
|
+
name: RefNameSchema.describe("The new branch's name."),
|
|
79
|
+
});
|
|
80
|
+
export const GitTagCreateSchema = RepoParamSchema.extend({
|
|
81
|
+
sha: ShaSchema.describe("Which commit to tag."),
|
|
82
|
+
name: RefNameSchema.describe("The tag's name."),
|
|
83
|
+
});
|
|
84
|
+
export const GitCheckoutSchema = RepoParamSchema.extend({ ref: RefNameSchema.describe("Where to switch to: a branch, a tag, or a commit.") });
|
|
85
|
+
export const GitTagDeleteSchema = RepoParamSchema.extend({
|
|
86
|
+
name: RefNameSchema.describe("Which tag."),
|
|
87
|
+
remote: RefNameSchema.optional().describe("Also delete it there. Leave it out to remove it locally only."),
|
|
88
|
+
});
|
|
89
|
+
export const GitTagPushSchema = RepoParamSchema.extend({
|
|
90
|
+
name: RefNameSchema.describe("Which tag."),
|
|
91
|
+
remote: RefNameSchema.describe("Which remote to send it to."),
|
|
92
|
+
});
|
|
93
|
+
export const GitResetSchema = RepoParamSchema.extend({
|
|
94
|
+
sha: ShaSchema.describe("Which commit to move the branch to."),
|
|
95
|
+
mode: z
|
|
96
|
+
.enum(["soft", "mixed", "hard"])
|
|
97
|
+
.describe("How much to take with it: move the branch alone, also unstage, or also throw away what is on disk. The last one takes a checkpoint first."),
|
|
98
|
+
});
|
|
99
|
+
export const GitCommitActionSchema = RepoParamSchema.extend({ sha: ShaSchema.describe("Which commit to act on.") });
|
|
100
|
+
export const GitActionResultSchema = z.object({
|
|
101
|
+
ok: z.boolean().describe("Whether it worked."),
|
|
102
|
+
reason: z
|
|
103
|
+
.string()
|
|
104
|
+
.optional()
|
|
105
|
+
.describe("Why not, in git's own words. A conflict, a missing remote and missing credentials are all reported here rather than raised, because they are things a screen has to render rather than breakages."),
|
|
106
|
+
});
|
|
107
|
+
export const StashEntrySchema = z.object({
|
|
108
|
+
ref: z.string().describe("How to address it, which applying and dropping take."),
|
|
109
|
+
sha: z.string().describe("The commit behind it, because a stash entry is a commit."),
|
|
110
|
+
short: z.string().describe("The abbreviated form, for showing."),
|
|
111
|
+
subject: z.string().describe("What it was set aside as, with git's own scaffolding stripped off."),
|
|
112
|
+
branch: z.string().optional().describe("Which branch it was set aside from."),
|
|
113
|
+
at: z.number().describe("When, in milliseconds."),
|
|
114
|
+
parents: z.array(z.string()).describe("What it sits on, so a graph can draw it like any other commit."),
|
|
115
|
+
});
|
|
116
|
+
export const StashListSchema = z.object({
|
|
117
|
+
repo: z.string().describe("Which repository."),
|
|
118
|
+
stashes: z.array(StashEntrySchema).describe("What is set aside, newest first."),
|
|
119
|
+
});
|
|
120
|
+
const StashRefSchema = z.string().regex(/^stash@\{\d{1,4}\}$/);
|
|
121
|
+
export const StashPushSchema = RepoParamSchema.extend({
|
|
122
|
+
message: z.string().max(500).optional().describe("What to call it, so you know what it was later."),
|
|
123
|
+
includeUntracked: z.boolean().optional().describe("Also set aside files git is not yet tracking, which are otherwise left where they are."),
|
|
124
|
+
});
|
|
125
|
+
export const StashApplySchema = RepoParamSchema.extend({
|
|
126
|
+
ref: StashRefSchema.describe("Which entry."),
|
|
127
|
+
pop: z.boolean().optional().describe("Remove it from the stash once it has been applied cleanly."),
|
|
128
|
+
});
|
|
129
|
+
export const StashRefParamSchema = RepoParamSchema.extend({ ref: StashRefSchema.describe("Which entry.") });
|
|
130
|
+
export const StashDiffQuerySchema = RepoParamSchema.extend({ ref: StashRefSchema.describe("Which entry.") });
|
|
131
|
+
export const UndoKindSchema = z.enum(["commit", "amend", "merge", "rebase", "cherry-pick", "revert", "reset", "pull", "other"]);
|
|
132
|
+
export const UndoableActionSchema = z.object({
|
|
133
|
+
kind: UndoKindSchema.describe("What the last action was."),
|
|
134
|
+
description: z.string().describe("What undoing it would do, in words."),
|
|
135
|
+
branch: z.string().describe("Which branch would move."),
|
|
136
|
+
sha: z.string().describe("Where it stands now."),
|
|
137
|
+
previousSha: z
|
|
138
|
+
.string()
|
|
139
|
+
.describe("Where it would go back to. Send this with the undo as proof you looked, so one prepared against a view that has since moved is refused rather than landing somewhere unexamined."),
|
|
140
|
+
changesWorkingTree: z
|
|
141
|
+
.boolean()
|
|
142
|
+
.describe("Undoing would rewrite files as well as moving the branch, so anything offering it should warn about losing work."),
|
|
143
|
+
});
|
|
144
|
+
export const GitUndoStateSchema = z.object({
|
|
145
|
+
repo: z.string().describe("Which repository."),
|
|
146
|
+
action: UndoableActionSchema.optional().describe("What undoing would reverse. Absent means there is nothing to go back from."),
|
|
147
|
+
});
|
|
148
|
+
export const GitUndoSchema = RepoParamSchema.extend({
|
|
149
|
+
previousSha: ShaSchema.describe("Where to go back to, from the matching read. It is also proof you looked: one prepared against a stale view is refused."),
|
|
150
|
+
discardChanges: z.boolean().optional().describe("Also rewrite the files, rather than only moving the branch."),
|
|
151
|
+
});
|
|
152
|
+
//# sourceMappingURL=git-history.js.map
|