gsd-pi 2.33.1 → 2.34.0-dev.6769913
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/dist/bundled-resource-path.d.ts +8 -0
- package/dist/bundled-resource-path.js +14 -0
- package/dist/cli.js +16 -0
- package/dist/headless-query.js +6 -6
- package/dist/resource-loader.d.ts +2 -0
- package/dist/resource-loader.js +39 -4
- package/dist/resources/extensions/ask-user-questions.js +217 -0
- package/dist/resources/extensions/async-jobs/async-bash-tool.js +180 -0
- package/dist/resources/extensions/async-jobs/await-tool.js +90 -0
- package/dist/resources/extensions/async-jobs/cancel-job-tool.js +28 -0
- package/dist/resources/extensions/async-jobs/index.js +119 -0
- package/dist/resources/extensions/async-jobs/job-manager.js +159 -0
- package/dist/resources/extensions/aws-auth/index.js +138 -0
- package/dist/resources/extensions/bg-shell/bg-shell-command.js +182 -0
- package/dist/resources/extensions/bg-shell/bg-shell-lifecycle.js +343 -0
- package/dist/resources/extensions/bg-shell/bg-shell-tool.js +831 -0
- package/dist/resources/extensions/bg-shell/index.js +41 -0
- package/dist/resources/extensions/bg-shell/interaction.js +160 -0
- package/dist/resources/extensions/bg-shell/output-formatter.js +245 -0
- package/dist/resources/extensions/bg-shell/overlay.js +378 -0
- package/dist/resources/extensions/bg-shell/process-manager.js +413 -0
- package/dist/resources/extensions/bg-shell/readiness-detector.js +109 -0
- package/dist/resources/extensions/bg-shell/types.js +96 -0
- package/dist/resources/extensions/bg-shell/utilities.js +50 -0
- package/dist/resources/extensions/browser-tools/capture.js +179 -0
- package/dist/resources/extensions/browser-tools/core.js +899 -0
- package/dist/resources/extensions/browser-tools/{evaluate-helpers.ts → evaluate-helpers.js} +0 -1
- package/dist/resources/extensions/browser-tools/index.js +123 -0
- package/dist/resources/extensions/browser-tools/lifecycle.js +222 -0
- package/dist/resources/extensions/browser-tools/refs.js +254 -0
- package/dist/resources/extensions/browser-tools/settle.js +173 -0
- package/dist/resources/extensions/browser-tools/state.js +126 -0
- package/dist/resources/extensions/browser-tools/tools/action-cache.js +179 -0
- package/dist/resources/extensions/browser-tools/tools/assertions.js +320 -0
- package/dist/resources/extensions/browser-tools/tools/codegen.js +242 -0
- package/dist/resources/extensions/browser-tools/tools/device.js +162 -0
- package/dist/resources/extensions/browser-tools/tools/extract.js +191 -0
- package/dist/resources/extensions/browser-tools/tools/forms.js +710 -0
- package/dist/resources/extensions/browser-tools/tools/injection-detect.js +178 -0
- package/dist/resources/extensions/browser-tools/tools/inspection.js +426 -0
- package/dist/resources/extensions/browser-tools/tools/intent.js +556 -0
- package/dist/resources/extensions/browser-tools/tools/interaction.js +776 -0
- package/dist/resources/extensions/browser-tools/tools/navigation.js +208 -0
- package/dist/resources/extensions/browser-tools/tools/network-mock.js +194 -0
- package/dist/resources/extensions/browser-tools/tools/pages.js +280 -0
- package/dist/resources/extensions/browser-tools/tools/pdf.js +74 -0
- package/dist/resources/extensions/browser-tools/tools/refs.js +485 -0
- package/dist/resources/extensions/browser-tools/tools/screenshot.js +87 -0
- package/dist/resources/extensions/browser-tools/tools/session.js +375 -0
- package/dist/resources/extensions/browser-tools/tools/state-persistence.js +180 -0
- package/dist/resources/extensions/browser-tools/tools/visual-diff.js +174 -0
- package/dist/resources/extensions/browser-tools/tools/wait.js +201 -0
- package/dist/resources/extensions/browser-tools/tools/zoom.js +90 -0
- package/dist/resources/extensions/browser-tools/utils.js +490 -0
- package/dist/resources/extensions/context7/index.js +337 -0
- package/dist/resources/extensions/get-secrets-from-user.js +492 -0
- package/dist/resources/extensions/google-search/index.js +373 -0
- package/dist/resources/extensions/gsd/activity-log.js +146 -0
- package/dist/resources/extensions/gsd/atomic-write.js +38 -0
- package/dist/resources/extensions/gsd/auto/session.js +182 -0
- package/dist/resources/extensions/gsd/auto-budget.js +30 -0
- package/dist/resources/extensions/gsd/auto-dashboard.js +429 -0
- package/dist/resources/extensions/gsd/auto-direct-dispatch.js +185 -0
- package/dist/resources/extensions/gsd/auto-dispatch.js +353 -0
- package/dist/resources/extensions/gsd/auto-loop.js +956 -0
- package/dist/resources/extensions/gsd/auto-model-selection.js +133 -0
- package/dist/resources/extensions/gsd/auto-observability.js +56 -0
- package/dist/resources/extensions/gsd/auto-post-unit.js +385 -0
- package/dist/resources/extensions/gsd/auto-prompts.js +1153 -0
- package/dist/resources/extensions/gsd/auto-recovery.js +512 -0
- package/dist/resources/extensions/gsd/auto-start.js +414 -0
- package/dist/resources/extensions/gsd/auto-supervisor.js +47 -0
- package/dist/resources/extensions/gsd/auto-timeout-recovery.js +183 -0
- package/dist/resources/extensions/gsd/auto-timers.js +180 -0
- package/dist/resources/extensions/gsd/auto-tool-tracking.js +50 -0
- package/dist/resources/extensions/gsd/auto-unit-closeout.js +30 -0
- package/dist/resources/extensions/gsd/auto-verification.js +171 -0
- package/dist/resources/extensions/gsd/auto-worktree-sync.js +167 -0
- package/dist/resources/extensions/gsd/auto-worktree.js +830 -0
- package/dist/resources/extensions/gsd/auto.js +765 -0
- package/dist/resources/extensions/gsd/{cache.ts → cache.js} +5 -7
- package/dist/resources/extensions/gsd/captures.js +354 -0
- package/dist/resources/extensions/gsd/changelog.js +162 -0
- package/dist/resources/extensions/gsd/claude-import.js +540 -0
- package/dist/resources/extensions/gsd/collision-diagnostics.js +226 -0
- package/dist/resources/extensions/gsd/commands-bootstrap.js +224 -0
- package/dist/resources/extensions/gsd/commands-config.js +89 -0
- package/dist/resources/extensions/gsd/commands-extensions.js +259 -0
- package/dist/resources/extensions/gsd/commands-handlers.js +310 -0
- package/dist/resources/extensions/gsd/commands-inspect.js +70 -0
- package/dist/resources/extensions/gsd/commands-logs.js +468 -0
- package/dist/resources/extensions/gsd/commands-maintenance.js +185 -0
- package/dist/resources/extensions/gsd/commands-prefs-wizard.js +660 -0
- package/dist/resources/extensions/gsd/commands-workflow-templates.js +408 -0
- package/dist/resources/extensions/gsd/commands.js +1031 -0
- package/dist/resources/extensions/gsd/complexity-classifier.js +257 -0
- package/dist/resources/extensions/gsd/{constants.ts → constants.js} +0 -6
- package/dist/resources/extensions/gsd/context-budget.js +187 -0
- package/dist/resources/extensions/gsd/context-store.js +165 -0
- package/dist/resources/extensions/gsd/crash-recovery.js +110 -0
- package/dist/resources/extensions/gsd/dashboard-overlay.js +562 -0
- package/dist/resources/extensions/gsd/db-writer.js +298 -0
- package/dist/resources/extensions/gsd/debug-logger.js +161 -0
- package/dist/resources/extensions/gsd/detection.js +373 -0
- package/dist/resources/extensions/gsd/diff-context.js +168 -0
- package/dist/resources/extensions/gsd/dispatch-guard.js +75 -0
- package/dist/resources/extensions/gsd/docs/preferences-reference.md +25 -18
- package/dist/resources/extensions/gsd/doctor-checks.js +562 -0
- package/dist/resources/extensions/gsd/doctor-environment.js +429 -0
- package/dist/resources/extensions/gsd/doctor-format.js +71 -0
- package/dist/resources/extensions/gsd/doctor-proactive.js +239 -0
- package/dist/resources/extensions/gsd/doctor-providers.js +292 -0
- package/dist/resources/extensions/gsd/doctor-types.js +12 -0
- package/dist/resources/extensions/gsd/doctor.js +672 -0
- package/dist/resources/extensions/gsd/error-utils.js +6 -0
- package/dist/resources/extensions/gsd/{errors.ts → errors.js} +6 -11
- package/dist/resources/extensions/gsd/exit-command.js +11 -0
- package/dist/resources/extensions/gsd/{export-html.ts → export-html.js} +482 -614
- package/dist/resources/extensions/gsd/export.js +268 -0
- package/dist/resources/extensions/gsd/file-watcher.js +76 -0
- package/dist/resources/extensions/gsd/files.js +937 -0
- package/dist/resources/extensions/gsd/forensics.js +511 -0
- package/dist/resources/extensions/gsd/{git-constants.ts → git-constants.js} +4 -5
- package/dist/resources/extensions/gsd/git-self-heal.js +113 -0
- package/dist/resources/extensions/gsd/git-service.js +460 -0
- package/dist/resources/extensions/gsd/{gitignore.ts → gitignore.js} +98 -125
- package/dist/resources/extensions/gsd/gsd-db.js +735 -0
- package/dist/resources/extensions/gsd/guided-flow-queue.js +366 -0
- package/dist/resources/extensions/gsd/guided-flow.js +1158 -0
- package/dist/resources/extensions/gsd/health-widget.js +141 -0
- package/dist/resources/extensions/gsd/history.js +118 -0
- package/dist/resources/extensions/gsd/index.js +1114 -0
- package/dist/resources/extensions/gsd/init-wizard.js +479 -0
- package/dist/resources/extensions/gsd/json-persistence.js +62 -0
- package/dist/resources/extensions/gsd/{jsonl-utils.ts → jsonl-utils.js} +10 -7
- package/dist/resources/extensions/gsd/key-manager.js +829 -0
- package/dist/resources/extensions/gsd/marketplace-discovery.js +356 -0
- package/dist/resources/extensions/gsd/md-importer.js +440 -0
- package/dist/resources/extensions/gsd/memory-extractor.js +295 -0
- package/dist/resources/extensions/gsd/memory-store.js +351 -0
- package/dist/resources/extensions/gsd/metrics.js +377 -0
- package/dist/resources/extensions/gsd/migrate/command.js +157 -0
- package/dist/resources/extensions/gsd/migrate/index.js +7 -0
- package/dist/resources/extensions/gsd/migrate/parser.js +268 -0
- package/dist/resources/extensions/gsd/migrate/parsers.js +477 -0
- package/dist/resources/extensions/gsd/migrate/preview.js +47 -0
- package/dist/resources/extensions/gsd/migrate/transformer.js +278 -0
- package/dist/resources/extensions/gsd/migrate/types.js +4 -0
- package/dist/resources/extensions/gsd/migrate/validator.js +41 -0
- package/dist/resources/extensions/gsd/migrate/writer.js +477 -0
- package/dist/resources/extensions/gsd/migrate-external.js +130 -0
- package/dist/resources/extensions/gsd/milestone-actions.js +111 -0
- package/dist/resources/extensions/gsd/{milestone-ids.ts → milestone-ids.js} +50 -63
- package/dist/resources/extensions/gsd/model-cost-table.js +48 -0
- package/dist/resources/extensions/gsd/model-router.js +187 -0
- package/dist/resources/extensions/gsd/namespaced-registry.js +322 -0
- package/dist/resources/extensions/gsd/namespaced-resolver.js +176 -0
- package/dist/resources/extensions/gsd/native-git-bridge.js +842 -0
- package/dist/resources/extensions/gsd/native-parser-bridge.js +156 -0
- package/dist/resources/extensions/gsd/notifications.js +58 -0
- package/dist/resources/extensions/gsd/observability-validator.js +398 -0
- package/dist/resources/extensions/gsd/parallel-eligibility.js +182 -0
- package/dist/resources/extensions/gsd/parallel-merge.js +121 -0
- package/dist/resources/extensions/gsd/parallel-orchestrator.js +687 -0
- package/dist/resources/extensions/gsd/paths.js +414 -0
- package/dist/resources/extensions/gsd/plugin-importer.js +254 -0
- package/dist/resources/extensions/gsd/post-unit-hooks.js +433 -0
- package/dist/resources/extensions/gsd/preferences-models.js +294 -0
- package/dist/resources/extensions/gsd/preferences-skills.js +154 -0
- package/dist/resources/extensions/gsd/preferences-types.js +73 -0
- package/dist/resources/extensions/gsd/preferences-validation.js +607 -0
- package/dist/resources/extensions/gsd/preferences.js +325 -0
- package/dist/resources/extensions/gsd/progress-score.js +102 -0
- package/dist/resources/extensions/gsd/prompt-cache-optimizer.js +150 -0
- package/dist/resources/extensions/gsd/prompt-compressor.js +393 -0
- package/dist/resources/extensions/gsd/prompt-loader.js +119 -0
- package/dist/resources/extensions/gsd/prompt-ordering.js +170 -0
- package/dist/resources/extensions/gsd/provider-error-pause.js +60 -0
- package/dist/resources/extensions/gsd/queue-order.js +178 -0
- package/dist/resources/extensions/gsd/queue-reorder-ui.js +234 -0
- package/dist/resources/extensions/gsd/quick.js +206 -0
- package/dist/resources/extensions/gsd/repo-identity.js +187 -0
- package/dist/resources/extensions/gsd/{reports.ts → reports.js} +146 -241
- package/dist/resources/extensions/gsd/{resource-version.ts → resource-version.js} +50 -53
- package/dist/resources/extensions/gsd/roadmap-slices.js +130 -0
- package/dist/resources/extensions/gsd/routing-history.js +210 -0
- package/dist/resources/extensions/gsd/safe-fs.js +52 -0
- package/dist/resources/extensions/gsd/semantic-chunker.js +254 -0
- package/dist/resources/extensions/gsd/session-forensics.js +427 -0
- package/dist/resources/extensions/gsd/session-lock.js +397 -0
- package/dist/resources/extensions/gsd/session-status-io.js +134 -0
- package/dist/resources/extensions/gsd/skill-discovery.js +121 -0
- package/dist/resources/extensions/gsd/skill-health.js +324 -0
- package/dist/resources/extensions/gsd/{skill-telemetry.ts → skill-telemetry.js} +58 -74
- package/dist/resources/extensions/gsd/state.js +653 -0
- package/dist/resources/extensions/gsd/structured-data-formatter.js +97 -0
- package/dist/resources/extensions/gsd/summary-distiller.js +212 -0
- package/dist/resources/extensions/gsd/templates/preferences.md +1 -0
- package/dist/resources/extensions/gsd/token-counter.js +54 -0
- package/dist/resources/extensions/gsd/triage-resolution.js +217 -0
- package/dist/resources/extensions/gsd/triage-ui.js +125 -0
- package/dist/resources/extensions/gsd/types.js +4 -0
- package/dist/resources/extensions/gsd/undo.js +205 -0
- package/dist/resources/extensions/gsd/unit-id.js +7 -0
- package/dist/resources/extensions/gsd/unit-runtime.js +131 -0
- package/dist/resources/extensions/gsd/validate-directory.js +143 -0
- package/dist/resources/extensions/gsd/verification-evidence.js +122 -0
- package/dist/resources/extensions/gsd/verification-gate.js +514 -0
- package/dist/resources/extensions/gsd/visualizer-data.js +612 -0
- package/dist/resources/extensions/gsd/visualizer-overlay.js +501 -0
- package/dist/resources/extensions/gsd/visualizer-views.js +893 -0
- package/dist/resources/extensions/gsd/workflow-templates.js +188 -0
- package/dist/resources/extensions/gsd/workspace-index.js +139 -0
- package/dist/resources/extensions/gsd/worktree-command-bootstrap.js +40 -0
- package/dist/resources/extensions/gsd/worktree-command.js +682 -0
- package/dist/resources/extensions/gsd/worktree-manager.js +358 -0
- package/dist/resources/extensions/gsd/worktree-resolver.js +344 -0
- package/dist/resources/extensions/gsd/worktree.js +199 -0
- package/dist/resources/extensions/mac-tools/index.js +768 -0
- package/dist/resources/extensions/mcp-client/index.js +364 -0
- package/dist/resources/extensions/package.json +3 -0
- package/dist/resources/extensions/remote-questions/config.js +70 -0
- package/dist/resources/extensions/remote-questions/discord-adapter.js +134 -0
- package/dist/resources/extensions/remote-questions/format.js +234 -0
- package/dist/resources/extensions/remote-questions/http-client.js +43 -0
- package/dist/resources/extensions/remote-questions/manager.js +156 -0
- package/dist/resources/extensions/remote-questions/{mod.ts → mod.js} +1 -10
- package/dist/resources/extensions/remote-questions/notify.js +89 -0
- package/dist/resources/extensions/remote-questions/remote-command.js +453 -0
- package/dist/resources/extensions/remote-questions/slack-adapter.js +123 -0
- package/dist/resources/extensions/remote-questions/status.js +25 -0
- package/dist/resources/extensions/remote-questions/store.js +70 -0
- package/dist/resources/extensions/remote-questions/telegram-adapter.js +123 -0
- package/dist/resources/extensions/remote-questions/types.js +5 -0
- package/dist/resources/extensions/search-the-web/cache.js +74 -0
- package/dist/resources/extensions/search-the-web/command-search-provider.js +79 -0
- package/dist/resources/extensions/search-the-web/format.js +161 -0
- package/dist/resources/extensions/search-the-web/http.js +178 -0
- package/dist/resources/extensions/search-the-web/index.js +41 -0
- package/dist/resources/extensions/search-the-web/native-search.js +166 -0
- package/dist/resources/extensions/search-the-web/provider.js +143 -0
- package/dist/resources/extensions/search-the-web/tavily.js +82 -0
- package/dist/resources/extensions/search-the-web/tool-fetch-page.js +452 -0
- package/dist/resources/extensions/search-the-web/tool-llm-context.js +455 -0
- package/dist/resources/extensions/search-the-web/tool-search.js +482 -0
- package/dist/resources/extensions/search-the-web/url-utils.js +121 -0
- package/dist/resources/extensions/shared/confirm-ui.js +96 -0
- package/dist/resources/extensions/shared/{format-utils.ts → format-utils.js} +85 -91
- package/dist/resources/extensions/shared/frontmatter.js +109 -0
- package/dist/resources/extensions/shared/interview-ui.js +569 -0
- package/dist/resources/extensions/shared/{mod.ts → mod.js} +2 -24
- package/dist/resources/extensions/shared/next-action-ui.js +168 -0
- package/dist/resources/extensions/shared/{path-display.ts → path-display.js} +2 -3
- package/dist/resources/extensions/shared/sanitize.js +17 -0
- package/dist/resources/extensions/shared/terminal.js +21 -0
- package/dist/resources/extensions/shared/ui.js +245 -0
- package/dist/resources/extensions/shared/wizard-ui.js +478 -0
- package/dist/resources/extensions/slash-commands/audit.js +72 -0
- package/dist/resources/extensions/slash-commands/clear.js +8 -0
- package/dist/resources/extensions/slash-commands/create-extension.js +264 -0
- package/dist/resources/extensions/slash-commands/create-slash-command.js +208 -0
- package/dist/resources/extensions/slash-commands/index.js +10 -0
- package/dist/resources/extensions/subagent/agents.js +103 -0
- package/dist/resources/extensions/subagent/index.js +905 -0
- package/dist/resources/extensions/subagent/isolation.js +384 -0
- package/dist/resources/extensions/subagent/worker-registry.js +73 -0
- package/dist/resources/extensions/ttsr/index.js +144 -0
- package/dist/resources/extensions/ttsr/rule-loader.js +70 -0
- package/dist/resources/extensions/ttsr/ttsr-manager.js +380 -0
- package/dist/resources/extensions/universal-config/discovery.js +94 -0
- package/dist/resources/extensions/universal-config/format.js +178 -0
- package/dist/resources/extensions/universal-config/index.js +99 -0
- package/dist/resources/extensions/universal-config/scanners.js +574 -0
- package/dist/resources/extensions/universal-config/tools.js +57 -0
- package/dist/resources/extensions/universal-config/types.js +8 -0
- package/dist/resources/extensions/voice/index.js +247 -0
- package/dist/startup-timings.d.ts +2 -0
- package/dist/startup-timings.js +22 -0
- package/dist/tool-bootstrap.js +59 -11
- package/dist/worktree-cli.js +7 -7
- package/package.json +1 -1
- package/packages/native/dist/native.d.ts +0 -2
- package/packages/native/dist/native.js +0 -2
- package/packages/native/src/native.ts +0 -3
- package/packages/pi-agent-core/dist/agent-loop.d.ts +14 -0
- package/packages/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
- package/packages/pi-agent-core/dist/agent-loop.js +24 -27
- package/packages/pi-agent-core/dist/agent-loop.js.map +1 -1
- package/packages/pi-agent-core/dist/agent.d.ts +1 -0
- package/packages/pi-agent-core/dist/agent.d.ts.map +1 -1
- package/packages/pi-agent-core/dist/agent.js +11 -22
- package/packages/pi-agent-core/dist/agent.js.map +1 -1
- package/packages/pi-agent-core/dist/proxy.d.ts +1 -25
- package/packages/pi-agent-core/dist/proxy.d.ts.map +1 -1
- package/packages/pi-agent-core/dist/proxy.js +1 -1
- package/packages/pi-agent-core/dist/proxy.js.map +1 -1
- package/packages/pi-agent-core/src/agent-loop.ts +30 -27
- package/packages/pi-agent-core/src/agent.ts +12 -23
- package/packages/pi-agent-core/src/proxy.ts +1 -1
- package/packages/pi-ai/dist/api-registry.d.ts +0 -2
- package/packages/pi-ai/dist/api-registry.d.ts.map +1 -1
- package/packages/pi-ai/dist/api-registry.js +0 -10
- package/packages/pi-ai/dist/api-registry.js.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic.d.ts +0 -8
- package/packages/pi-ai/dist/providers/anthropic.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic.js +1 -1
- package/packages/pi-ai/dist/providers/anthropic.js.map +1 -1
- package/packages/pi-ai/dist/providers/github-copilot-headers.d.ts +0 -1
- package/packages/pi-ai/dist/providers/github-copilot-headers.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/github-copilot-headers.js +1 -1
- package/packages/pi-ai/dist/providers/github-copilot-headers.js.map +1 -1
- package/packages/pi-ai/dist/providers/google-gemini-cli.d.ts +1 -43
- package/packages/pi-ai/dist/providers/google-gemini-cli.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/google-gemini-cli.js +2 -2
- package/packages/pi-ai/dist/providers/google-gemini-cli.js.map +1 -1
- package/packages/pi-ai/dist/providers/google-shared.d.ts +0 -4
- package/packages/pi-ai/dist/providers/google-shared.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/google-shared.js +1 -1
- package/packages/pi-ai/dist/providers/google-shared.js.map +1 -1
- package/packages/pi-ai/dist/providers/register-builtins.d.ts +0 -1
- package/packages/pi-ai/dist/providers/register-builtins.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/register-builtins.js +1 -1
- package/packages/pi-ai/dist/providers/register-builtins.js.map +1 -1
- package/packages/pi-ai/dist/utils/event-stream.d.ts +0 -2
- package/packages/pi-ai/dist/utils/event-stream.d.ts.map +1 -1
- package/packages/pi-ai/dist/utils/event-stream.js +0 -4
- package/packages/pi-ai/dist/utils/event-stream.js.map +1 -1
- package/packages/pi-ai/dist/utils/overflow.d.ts +0 -4
- package/packages/pi-ai/dist/utils/overflow.d.ts.map +1 -1
- package/packages/pi-ai/dist/utils/overflow.js +0 -6
- package/packages/pi-ai/dist/utils/overflow.js.map +1 -1
- package/packages/pi-ai/dist/utils/validation.d.ts +0 -8
- package/packages/pi-ai/dist/utils/validation.d.ts.map +1 -1
- package/packages/pi-ai/dist/utils/validation.js +0 -14
- package/packages/pi-ai/dist/utils/validation.js.map +1 -1
- package/packages/pi-ai/src/api-registry.ts +0 -12
- package/packages/pi-ai/src/providers/anthropic.ts +1 -1
- package/packages/pi-ai/src/providers/github-copilot-headers.ts +1 -1
- package/packages/pi-ai/src/providers/google-gemini-cli.ts +2 -2
- package/packages/pi-ai/src/providers/google-shared.ts +1 -1
- package/packages/pi-ai/src/providers/register-builtins.ts +1 -1
- package/packages/pi-ai/src/utils/event-stream.ts +0 -5
- package/packages/pi-ai/src/utils/overflow.ts +1 -8
- package/packages/pi-ai/src/utils/validation.ts +0 -15
- package/packages/pi-coding-agent/dist/config.d.ts +0 -9
- package/packages/pi-coding-agent/dist/config.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/config.js +4 -8
- package/packages/pi-coding-agent/dist/config.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/agent-session.d.ts +4 -0
- package/packages/pi-coding-agent/dist/core/agent-session.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/agent-session.js +24 -5
- package/packages/pi-coding-agent/dist/core/agent-session.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts +0 -4
- package/packages/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/export-html/ansi-to-html.js +1 -1
- package/packages/pi-coding-agent/dist/core/export-html/ansi-to-html.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.d.ts +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.js +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/loader.d.ts +1 -0
- package/packages/pi-coding-agent/dist/core/extensions/loader.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/loader.js +31 -4
- package/packages/pi-coding-agent/dist/core/extensions/loader.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/runner.d.ts +0 -5
- package/packages/pi-coding-agent/dist/core/extensions/runner.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/runner.js +0 -13
- package/packages/pi-coding-agent/dist/core/extensions/runner.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/keybindings.d.ts +0 -8
- package/packages/pi-coding-agent/dist/core/keybindings.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/keybindings.js +2 -2
- package/packages/pi-coding-agent/dist/core/keybindings.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/client.d.ts +0 -17
- package/packages/pi-coding-agent/dist/core/lsp/client.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/client.js +3 -62
- package/packages/pi-coding-agent/dist/core/lsp/client.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/config.d.ts +0 -2
- package/packages/pi-coding-agent/dist/core/lsp/config.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/config.js +0 -7
- package/packages/pi-coding-agent/dist/core/lsp/config.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/edits.d.ts +0 -5
- package/packages/pi-coding-agent/dist/core/lsp/edits.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/edits.js +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/edits.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.d.ts +0 -1
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.js +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/utils.d.ts +1 -6
- package/packages/pi-coding-agent/dist/core/lsp/utils.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/utils.js +1 -28
- package/packages/pi-coding-agent/dist/core/lsp/utils.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/messages.d.ts +0 -8
- package/packages/pi-coding-agent/dist/core/messages.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/messages.js +5 -5
- package/packages/pi-coding-agent/dist/core/messages.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-registry.d.ts +0 -3
- package/packages/pi-coding-agent/dist/core/model-registry.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-registry.js +1 -3
- package/packages/pi-coding-agent/dist/core/model-registry.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-resolver.d.ts +1 -26
- package/packages/pi-coding-agent/dist/core/model-resolver.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-resolver.js +3 -59
- package/packages/pi-coding-agent/dist/core/model-resolver.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/prompt-templates.d.ts +0 -17
- package/packages/pi-coding-agent/dist/core/prompt-templates.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/prompt-templates.js +2 -2
- package/packages/pi-coding-agent/dist/core/prompt-templates.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/session-manager.d.ts +0 -4
- package/packages/pi-coding-agent/dist/core/session-manager.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/session-manager.js +2 -4
- package/packages/pi-coding-agent/dist/core/session-manager.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/settings-manager.d.ts +8 -12
- package/packages/pi-coding-agent/dist/core/settings-manager.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/settings-manager.js +78 -168
- package/packages/pi-coding-agent/dist/core/settings-manager.js.map +1 -1
- package/packages/pi-coding-agent/dist/index.d.ts +1 -1
- package/packages/pi-coding-agent/dist/index.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/index.js +1 -1
- package/packages/pi-coding-agent/dist/index.js.map +1 -1
- package/packages/pi-coding-agent/dist/migrations.d.ts +0 -16
- package/packages/pi-coding-agent/dist/migrations.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/migrations.js +2 -2
- package/packages/pi-coding-agent/dist/migrations.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts +0 -2
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js +2 -2
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +1 -24
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js +50 -512
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/slash-command-handlers.d.ts +71 -0
- package/packages/pi-coding-agent/dist/modes/interactive/slash-command-handlers.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/slash-command-handlers.js +514 -0
- package/packages/pi-coding-agent/dist/modes/interactive/slash-command-handlers.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts +65 -4
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js +6 -23
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.d.ts +12 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.js +175 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.js.map +1 -0
- package/packages/pi-coding-agent/dist/utils/changelog.d.ts +0 -4
- package/packages/pi-coding-agent/dist/utils/changelog.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/changelog.js +1 -1
- package/packages/pi-coding-agent/dist/utils/changelog.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.d.ts +0 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.js +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/photon.d.ts +0 -19
- package/packages/pi-coding-agent/dist/utils/photon.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/photon.js +1 -120
- package/packages/pi-coding-agent/dist/utils/photon.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/tools-manager.d.ts +0 -1
- package/packages/pi-coding-agent/dist/utils/tools-manager.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/tools-manager.js +1 -1
- package/packages/pi-coding-agent/dist/utils/tools-manager.js.map +1 -1
- package/packages/pi-coding-agent/package.json +1 -1
- package/packages/pi-coding-agent/src/config.ts +5 -10
- package/packages/pi-coding-agent/src/core/agent-session.ts +26 -5
- package/packages/pi-coding-agent/src/core/export-html/ansi-to-html.ts +1 -1
- package/packages/pi-coding-agent/src/core/extensions/index.ts +1 -0
- package/packages/pi-coding-agent/src/core/extensions/loader.ts +35 -4
- package/packages/pi-coding-agent/src/core/extensions/runner.ts +0 -13
- package/packages/pi-coding-agent/src/core/keybindings.ts +2 -2
- package/packages/pi-coding-agent/src/core/lsp/client.ts +3 -73
- package/packages/pi-coding-agent/src/core/lsp/config.ts +0 -11
- package/packages/pi-coding-agent/src/core/lsp/edits.ts +1 -1
- package/packages/pi-coding-agent/src/core/lsp/lspmux.ts +1 -1
- package/packages/pi-coding-agent/src/core/lsp/utils.ts +1 -33
- package/packages/pi-coding-agent/src/core/messages.ts +5 -5
- package/packages/pi-coding-agent/src/core/model-registry.ts +0 -2
- package/packages/pi-coding-agent/src/core/model-resolver.ts +3 -77
- package/packages/pi-coding-agent/src/core/prompt-templates.ts +2 -2
- package/packages/pi-coding-agent/src/core/session-manager.ts +2 -4
- package/packages/pi-coding-agent/src/core/settings-manager.ts +87 -166
- package/packages/pi-coding-agent/src/index.ts +1 -0
- package/packages/pi-coding-agent/src/migrations.ts +2 -2
- package/packages/pi-coding-agent/src/modes/interactive/components/session-selector-search.ts +2 -2
- package/packages/pi-coding-agent/src/modes/interactive/interactive-mode.ts +50 -561
- package/packages/pi-coding-agent/src/modes/interactive/slash-command-handlers.ts +653 -0
- package/packages/pi-coding-agent/src/modes/interactive/theme/theme.ts +7 -26
- package/packages/pi-coding-agent/src/modes/interactive/theme/themes.ts +196 -0
- package/packages/pi-coding-agent/src/utils/changelog.ts +1 -1
- package/packages/pi-coding-agent/src/utils/clipboard-image.ts +1 -1
- package/packages/pi-coding-agent/src/utils/photon.ts +0 -137
- package/packages/pi-coding-agent/src/utils/tools-manager.ts +1 -1
- package/packages/pi-tui/dist/components/editor.d.ts +0 -10
- package/packages/pi-tui/dist/components/editor.d.ts.map +1 -1
- package/packages/pi-tui/dist/components/editor.js +1 -1
- package/packages/pi-tui/dist/components/editor.js.map +1 -1
- package/packages/pi-tui/dist/overlay-layout.d.ts +55 -0
- package/packages/pi-tui/dist/overlay-layout.d.ts.map +1 -0
- package/packages/pi-tui/dist/overlay-layout.js +288 -0
- package/packages/pi-tui/dist/overlay-layout.js.map +1 -0
- package/packages/pi-tui/dist/tui.d.ts +0 -22
- package/packages/pi-tui/dist/tui.d.ts.map +1 -1
- package/packages/pi-tui/dist/tui.js +6 -272
- package/packages/pi-tui/dist/tui.js.map +1 -1
- package/packages/pi-tui/dist/utils.d.ts +0 -7
- package/packages/pi-tui/dist/utils.d.ts.map +1 -1
- package/packages/pi-tui/dist/utils.js +0 -44
- package/packages/pi-tui/dist/utils.js.map +1 -1
- package/packages/pi-tui/src/components/editor.ts +1 -1
- package/packages/pi-tui/src/overlay-layout.ts +372 -0
- package/packages/pi-tui/src/tui.ts +11 -312
- package/packages/pi-tui/src/utils.ts +0 -43
- package/pkg/dist/core/export-html/ansi-to-html.d.ts +0 -4
- package/pkg/dist/core/export-html/ansi-to-html.d.ts.map +1 -1
- package/pkg/dist/core/export-html/ansi-to-html.js +1 -1
- package/pkg/dist/core/export-html/ansi-to-html.js.map +1 -1
- package/pkg/dist/modes/interactive/theme/theme.d.ts +65 -4
- package/pkg/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/pkg/dist/modes/interactive/theme/theme.js +6 -23
- package/pkg/dist/modes/interactive/theme/theme.js.map +1 -1
- package/pkg/dist/modes/interactive/theme/themes.d.ts +12 -0
- package/pkg/dist/modes/interactive/theme/themes.d.ts.map +1 -0
- package/pkg/dist/modes/interactive/theme/themes.js +175 -0
- package/pkg/dist/modes/interactive/theme/themes.js.map +1 -0
- package/pkg/package.json +1 -1
- package/src/resources/extensions/bg-shell/index.ts +41 -46
- package/src/resources/extensions/browser-tools/index.ts +156 -67
- package/src/resources/extensions/gsd/auto/session.ts +47 -30
- package/src/resources/extensions/gsd/auto-dashboard.ts +28 -131
- package/src/resources/extensions/gsd/auto-direct-dispatch.ts +6 -1
- package/src/resources/extensions/gsd/auto-dispatch.ts +135 -91
- package/src/resources/extensions/gsd/auto-loop.ts +1665 -0
- package/src/resources/extensions/gsd/auto-observability.ts +4 -2
- package/src/resources/extensions/gsd/auto-post-unit.ts +85 -228
- package/src/resources/extensions/gsd/auto-prompts.ts +138 -109
- package/src/resources/extensions/gsd/auto-recovery.ts +124 -118
- package/src/resources/extensions/gsd/auto-start.ts +440 -354
- package/src/resources/extensions/gsd/auto-supervisor.ts +5 -12
- package/src/resources/extensions/gsd/auto-timeout-recovery.ts +8 -8
- package/src/resources/extensions/gsd/auto-timers.ts +3 -4
- package/src/resources/extensions/gsd/auto-verification.ts +76 -72
- package/src/resources/extensions/gsd/auto-worktree-sync.ts +204 -0
- package/src/resources/extensions/gsd/auto-worktree.ts +453 -133
- package/src/resources/extensions/gsd/auto.ts +516 -1189
- package/src/resources/extensions/gsd/captures.ts +10 -4
- package/src/resources/extensions/gsd/changelog.ts +213 -0
- package/src/resources/extensions/gsd/commands-bootstrap.ts +253 -0
- package/src/resources/extensions/gsd/commands.ts +48 -32
- package/src/resources/extensions/gsd/dispatch-guard.ts +13 -9
- package/src/resources/extensions/gsd/docs/preferences-reference.md +25 -18
- package/src/resources/extensions/gsd/doctor-checks.ts +3 -4
- package/src/resources/extensions/gsd/git-service.ts +32 -12
- package/src/resources/extensions/gsd/gitignore.ts +4 -2
- package/src/resources/extensions/gsd/gsd-db.ts +375 -180
- package/src/resources/extensions/gsd/guided-flow.ts +22 -11
- package/src/resources/extensions/gsd/index.ts +76 -163
- package/src/resources/extensions/gsd/post-unit-hooks.ts +13 -13
- package/src/resources/extensions/gsd/progress-score.ts +65 -200
- package/src/resources/extensions/gsd/quick.ts +121 -76
- package/src/resources/extensions/gsd/repo-identity.ts +56 -22
- package/src/resources/extensions/gsd/session-lock.ts +17 -0
- package/src/resources/extensions/gsd/templates/preferences.md +1 -0
- package/src/resources/extensions/gsd/tests/agent-end-retry.test.ts +32 -59
- package/src/resources/extensions/gsd/tests/all-milestones-complete-merge.test.ts +75 -27
- package/src/resources/extensions/gsd/tests/auto-budget-alerts.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/auto-lock-creation.test.ts +37 -0
- package/src/resources/extensions/gsd/tests/auto-loop.test.ts +1458 -0
- package/src/resources/extensions/gsd/tests/auto-recovery.test.ts +8 -162
- package/src/resources/extensions/gsd/tests/auto-secrets-gate.test.ts +2 -108
- package/src/resources/extensions/gsd/tests/auto-session-encapsulation.test.ts +1 -3
- package/src/resources/extensions/gsd/tests/auto-worktree-milestone-merge.test.ts +0 -3
- package/src/resources/extensions/gsd/tests/auto-worktree.test.ts +58 -0
- package/src/resources/extensions/gsd/tests/dispatch-guard.test.ts +0 -55
- package/src/resources/extensions/gsd/tests/git-service.test.ts +16 -7
- package/src/resources/extensions/gsd/tests/headless-query.test.ts +22 -0
- package/src/resources/extensions/gsd/tests/milestone-transition-worktree.test.ts +8 -11
- package/src/resources/extensions/gsd/tests/provider-errors.test.ts +4 -6
- package/src/resources/extensions/gsd/tests/quick-branch-lifecycle.test.ts +281 -0
- package/src/resources/extensions/gsd/tests/repo-identity-worktree.test.ts +71 -0
- package/src/resources/extensions/gsd/tests/run-uat.test.ts +3 -3
- package/src/resources/extensions/gsd/tests/session-lock-regression.test.ts +64 -0
- package/src/resources/extensions/gsd/tests/sidecar-queue.test.ts +181 -0
- package/src/resources/extensions/gsd/tests/stale-worktree-cwd.test.ts +0 -3
- package/src/resources/extensions/gsd/tests/token-profile.test.ts +6 -6
- package/src/resources/extensions/gsd/tests/triage-dispatch.test.ts +6 -6
- package/src/resources/extensions/gsd/tests/undo.test.ts +6 -0
- package/src/resources/extensions/gsd/tests/verification-evidence.test.ts +24 -26
- package/src/resources/extensions/gsd/tests/verification-gate.test.ts +7 -136
- package/src/resources/extensions/gsd/tests/worktree-db-integration.test.ts +205 -0
- package/src/resources/extensions/gsd/tests/worktree-db.test.ts +442 -0
- package/src/resources/extensions/gsd/tests/worktree-e2e.test.ts +0 -3
- package/src/resources/extensions/gsd/tests/worktree-resolver.test.ts +705 -0
- package/src/resources/extensions/gsd/tests/worktree-sync-milestones.test.ts +57 -106
- package/src/resources/extensions/gsd/tests/worktree.test.ts +5 -1
- package/src/resources/extensions/gsd/tests/write-gate.test.ts +43 -132
- package/src/resources/extensions/gsd/types.ts +90 -77
- package/src/resources/extensions/gsd/undo.ts +42 -46
- package/src/resources/extensions/gsd/unit-runtime.ts +14 -18
- package/src/resources/extensions/gsd/verification-evidence.ts +0 -2
- package/src/resources/extensions/gsd/verification-gate.ts +4 -16
- package/src/resources/extensions/gsd/worktree-command-bootstrap.ts +46 -0
- package/src/resources/extensions/gsd/worktree-command.ts +29 -11
- package/src/resources/extensions/gsd/worktree-manager.ts +2 -3
- package/src/resources/extensions/gsd/worktree-resolver.ts +485 -0
- package/src/resources/extensions/gsd/worktree.ts +7 -44
- package/src/resources/extensions/mcp-client/index.ts +2 -1
- package/src/resources/extensions/package.json +3 -0
- package/src/resources/extensions/search-the-web/command-search-provider.ts +1 -1
- package/src/resources/extensions/search-the-web/index.ts +35 -52
- package/src/resources/extensions/search-the-web/tavily.ts +1 -1
- package/dist/resources/extensions/ask-user-questions.ts +0 -290
- package/dist/resources/extensions/async-jobs/async-bash-tool.ts +0 -212
- package/dist/resources/extensions/async-jobs/await-tool.ts +0 -103
- package/dist/resources/extensions/async-jobs/cancel-job-tool.ts +0 -35
- package/dist/resources/extensions/async-jobs/index.ts +0 -141
- package/dist/resources/extensions/async-jobs/job-manager.ts +0 -211
- package/dist/resources/extensions/aws-auth/index.ts +0 -144
- package/dist/resources/extensions/bg-shell/bg-shell-command.ts +0 -219
- package/dist/resources/extensions/bg-shell/bg-shell-lifecycle.ts +0 -400
- package/dist/resources/extensions/bg-shell/bg-shell-tool.ts +0 -985
- package/dist/resources/extensions/bg-shell/index.ts +0 -59
- package/dist/resources/extensions/bg-shell/interaction.ts +0 -198
- package/dist/resources/extensions/bg-shell/output-formatter.ts +0 -279
- package/dist/resources/extensions/bg-shell/overlay.ts +0 -437
- package/dist/resources/extensions/bg-shell/process-manager.ts +0 -464
- package/dist/resources/extensions/bg-shell/readiness-detector.ts +0 -126
- package/dist/resources/extensions/bg-shell/types.ts +0 -303
- package/dist/resources/extensions/bg-shell/utilities.ts +0 -57
- package/dist/resources/extensions/browser-tools/capture.ts +0 -199
- package/dist/resources/extensions/browser-tools/core.ts +0 -1196
- package/dist/resources/extensions/browser-tools/index.ts +0 -71
- package/dist/resources/extensions/browser-tools/lifecycle.ts +0 -270
- package/dist/resources/extensions/browser-tools/refs.ts +0 -264
- package/dist/resources/extensions/browser-tools/settle.ts +0 -197
- package/dist/resources/extensions/browser-tools/state.ts +0 -408
- package/dist/resources/extensions/browser-tools/tools/action-cache.ts +0 -216
- package/dist/resources/extensions/browser-tools/tools/assertions.ts +0 -342
- package/dist/resources/extensions/browser-tools/tools/codegen.ts +0 -274
- package/dist/resources/extensions/browser-tools/tools/device.ts +0 -183
- package/dist/resources/extensions/browser-tools/tools/extract.ts +0 -229
- package/dist/resources/extensions/browser-tools/tools/forms.ts +0 -801
- package/dist/resources/extensions/browser-tools/tools/injection-detect.ts +0 -221
- package/dist/resources/extensions/browser-tools/tools/inspection.ts +0 -492
- package/dist/resources/extensions/browser-tools/tools/intent.ts +0 -614
- package/dist/resources/extensions/browser-tools/tools/interaction.ts +0 -865
- package/dist/resources/extensions/browser-tools/tools/navigation.ts +0 -232
- package/dist/resources/extensions/browser-tools/tools/network-mock.ts +0 -244
- package/dist/resources/extensions/browser-tools/tools/pages.ts +0 -303
- package/dist/resources/extensions/browser-tools/tools/pdf.ts +0 -92
- package/dist/resources/extensions/browser-tools/tools/refs.ts +0 -541
- package/dist/resources/extensions/browser-tools/tools/screenshot.ts +0 -101
- package/dist/resources/extensions/browser-tools/tools/session.ts +0 -400
- package/dist/resources/extensions/browser-tools/tools/state-persistence.ts +0 -202
- package/dist/resources/extensions/browser-tools/tools/visual-diff.ts +0 -209
- package/dist/resources/extensions/browser-tools/tools/wait.ts +0 -247
- package/dist/resources/extensions/browser-tools/tools/zoom.ts +0 -104
- package/dist/resources/extensions/browser-tools/utils.ts +0 -660
- package/dist/resources/extensions/context7/index.ts +0 -428
- package/dist/resources/extensions/get-secrets-from-user.ts +0 -607
- package/dist/resources/extensions/google-search/index.ts +0 -466
- package/dist/resources/extensions/gsd/activity-log.ts +0 -162
- package/dist/resources/extensions/gsd/atomic-write.ts +0 -35
- package/dist/resources/extensions/gsd/auto/session.ts +0 -236
- package/dist/resources/extensions/gsd/auto-budget.ts +0 -32
- package/dist/resources/extensions/gsd/auto-constants.ts +0 -6
- package/dist/resources/extensions/gsd/auto-dashboard.ts +0 -626
- package/dist/resources/extensions/gsd/auto-direct-dispatch.ts +0 -224
- package/dist/resources/extensions/gsd/auto-dispatch.ts +0 -409
- package/dist/resources/extensions/gsd/auto-idempotency.ts +0 -151
- package/dist/resources/extensions/gsd/auto-model-selection.ts +0 -179
- package/dist/resources/extensions/gsd/auto-observability.ts +0 -72
- package/dist/resources/extensions/gsd/auto-post-unit.ts +0 -618
- package/dist/resources/extensions/gsd/auto-prompts.ts +0 -1273
- package/dist/resources/extensions/gsd/auto-recovery.ts +0 -578
- package/dist/resources/extensions/gsd/auto-start.ts +0 -483
- package/dist/resources/extensions/gsd/auto-stuck-detection.ts +0 -221
- package/dist/resources/extensions/gsd/auto-supervisor.ts +0 -61
- package/dist/resources/extensions/gsd/auto-timeout-recovery.ts +0 -263
- package/dist/resources/extensions/gsd/auto-timers.ts +0 -224
- package/dist/resources/extensions/gsd/auto-tool-tracking.ts +0 -54
- package/dist/resources/extensions/gsd/auto-unit-closeout.ts +0 -48
- package/dist/resources/extensions/gsd/auto-verification.ts +0 -229
- package/dist/resources/extensions/gsd/auto-worktree.ts +0 -658
- package/dist/resources/extensions/gsd/auto.ts +0 -1834
- package/dist/resources/extensions/gsd/captures.ts +0 -427
- package/dist/resources/extensions/gsd/claude-import.ts +0 -656
- package/dist/resources/extensions/gsd/collision-diagnostics.ts +0 -332
- package/dist/resources/extensions/gsd/commands-config.ts +0 -102
- package/dist/resources/extensions/gsd/commands-extensions.ts +0 -328
- package/dist/resources/extensions/gsd/commands-handlers.ts +0 -395
- package/dist/resources/extensions/gsd/commands-inspect.ts +0 -91
- package/dist/resources/extensions/gsd/commands-logs.ts +0 -536
- package/dist/resources/extensions/gsd/commands-maintenance.ts +0 -206
- package/dist/resources/extensions/gsd/commands-prefs-wizard.ts +0 -780
- package/dist/resources/extensions/gsd/commands-workflow-templates.ts +0 -543
- package/dist/resources/extensions/gsd/commands.ts +0 -1149
- package/dist/resources/extensions/gsd/complexity-classifier.ts +0 -320
- package/dist/resources/extensions/gsd/context-budget.ts +0 -266
- package/dist/resources/extensions/gsd/context-store.ts +0 -195
- package/dist/resources/extensions/gsd/crash-recovery.ts +0 -121
- package/dist/resources/extensions/gsd/dashboard-overlay.ts +0 -681
- package/dist/resources/extensions/gsd/db-writer.ts +0 -360
- package/dist/resources/extensions/gsd/debug-logger.ts +0 -178
- package/dist/resources/extensions/gsd/detection.ts +0 -470
- package/dist/resources/extensions/gsd/diff-context.ts +0 -214
- package/dist/resources/extensions/gsd/dispatch-guard.ts +0 -81
- package/dist/resources/extensions/gsd/doctor-checks.ts +0 -612
- package/dist/resources/extensions/gsd/doctor-environment.ts +0 -497
- package/dist/resources/extensions/gsd/doctor-format.ts +0 -78
- package/dist/resources/extensions/gsd/doctor-proactive.ts +0 -292
- package/dist/resources/extensions/gsd/doctor-providers.ts +0 -343
- package/dist/resources/extensions/gsd/doctor-types.ts +0 -87
- package/dist/resources/extensions/gsd/doctor.ts +0 -722
- package/dist/resources/extensions/gsd/error-utils.ts +0 -6
- package/dist/resources/extensions/gsd/exit-command.ts +0 -18
- package/dist/resources/extensions/gsd/export.ts +0 -317
- package/dist/resources/extensions/gsd/file-watcher.ts +0 -97
- package/dist/resources/extensions/gsd/files.ts +0 -1058
- package/dist/resources/extensions/gsd/forensics.ts +0 -629
- package/dist/resources/extensions/gsd/git-self-heal.ts +0 -127
- package/dist/resources/extensions/gsd/git-service.ts +0 -580
- package/dist/resources/extensions/gsd/gsd-db.ts +0 -685
- package/dist/resources/extensions/gsd/guided-flow-queue.ts +0 -440
- package/dist/resources/extensions/gsd/guided-flow.ts +0 -1303
- package/dist/resources/extensions/gsd/health-widget.ts +0 -167
- package/dist/resources/extensions/gsd/history.ts +0 -143
- package/dist/resources/extensions/gsd/index.ts +0 -1390
- package/dist/resources/extensions/gsd/init-wizard.ts +0 -587
- package/dist/resources/extensions/gsd/json-persistence.ts +0 -67
- package/dist/resources/extensions/gsd/key-manager.ts +0 -996
- package/dist/resources/extensions/gsd/marketplace-discovery.ts +0 -508
- package/dist/resources/extensions/gsd/md-importer.ts +0 -527
- package/dist/resources/extensions/gsd/mechanical-completion.ts +0 -430
- package/dist/resources/extensions/gsd/memory-extractor.ts +0 -352
- package/dist/resources/extensions/gsd/memory-store.ts +0 -441
- package/dist/resources/extensions/gsd/metrics.ts +0 -532
- package/dist/resources/extensions/gsd/migrate/command.ts +0 -219
- package/dist/resources/extensions/gsd/migrate/index.ts +0 -42
- package/dist/resources/extensions/gsd/migrate/parser.ts +0 -323
- package/dist/resources/extensions/gsd/migrate/parsers.ts +0 -539
- package/dist/resources/extensions/gsd/migrate/preview.ts +0 -48
- package/dist/resources/extensions/gsd/migrate/transformer.ts +0 -346
- package/dist/resources/extensions/gsd/migrate/types.ts +0 -370
- package/dist/resources/extensions/gsd/migrate/validator.ts +0 -55
- package/dist/resources/extensions/gsd/migrate/writer.ts +0 -579
- package/dist/resources/extensions/gsd/migrate-external.ts +0 -140
- package/dist/resources/extensions/gsd/milestone-actions.ts +0 -126
- package/dist/resources/extensions/gsd/model-cost-table.ts +0 -65
- package/dist/resources/extensions/gsd/model-router.ts +0 -256
- package/dist/resources/extensions/gsd/namespaced-registry.ts +0 -467
- package/dist/resources/extensions/gsd/namespaced-resolver.ts +0 -307
- package/dist/resources/extensions/gsd/native-git-bridge.ts +0 -1041
- package/dist/resources/extensions/gsd/native-parser-bridge.ts +0 -267
- package/dist/resources/extensions/gsd/notifications.ts +0 -87
- package/dist/resources/extensions/gsd/observability-validator.ts +0 -429
- package/dist/resources/extensions/gsd/parallel-eligibility.ts +0 -233
- package/dist/resources/extensions/gsd/parallel-merge.ts +0 -157
- package/dist/resources/extensions/gsd/parallel-orchestrator.ts +0 -826
- package/dist/resources/extensions/gsd/paths.ts +0 -449
- package/dist/resources/extensions/gsd/plugin-importer.ts +0 -411
- package/dist/resources/extensions/gsd/post-unit-hooks.ts +0 -520
- package/dist/resources/extensions/gsd/preferences-models.ts +0 -329
- package/dist/resources/extensions/gsd/preferences-skills.ts +0 -169
- package/dist/resources/extensions/gsd/preferences-types.ts +0 -229
- package/dist/resources/extensions/gsd/preferences-validation.ts +0 -590
- package/dist/resources/extensions/gsd/preferences.ts +0 -416
- package/dist/resources/extensions/gsd/progress-score.ts +0 -273
- package/dist/resources/extensions/gsd/prompt-cache-optimizer.ts +0 -213
- package/dist/resources/extensions/gsd/prompt-compressor.ts +0 -508
- package/dist/resources/extensions/gsd/prompt-loader.ts +0 -130
- package/dist/resources/extensions/gsd/prompt-ordering.ts +0 -200
- package/dist/resources/extensions/gsd/provider-error-pause.ts +0 -88
- package/dist/resources/extensions/gsd/queue-order.ts +0 -230
- package/dist/resources/extensions/gsd/queue-reorder-ui.ts +0 -276
- package/dist/resources/extensions/gsd/quick.ts +0 -212
- package/dist/resources/extensions/gsd/repo-identity.ts +0 -169
- package/dist/resources/extensions/gsd/roadmap-slices.ts +0 -149
- package/dist/resources/extensions/gsd/routing-history.ts +0 -286
- package/dist/resources/extensions/gsd/safe-fs.ts +0 -47
- package/dist/resources/extensions/gsd/semantic-chunker.ts +0 -336
- package/dist/resources/extensions/gsd/session-forensics.ts +0 -537
- package/dist/resources/extensions/gsd/session-lock.ts +0 -426
- package/dist/resources/extensions/gsd/session-status-io.ts +0 -179
- package/dist/resources/extensions/gsd/skill-discovery.ts +0 -139
- package/dist/resources/extensions/gsd/skill-health.ts +0 -417
- package/dist/resources/extensions/gsd/state.ts +0 -727
- package/dist/resources/extensions/gsd/structured-data-formatter.ts +0 -144
- package/dist/resources/extensions/gsd/summary-distiller.ts +0 -258
- package/dist/resources/extensions/gsd/tests/activity-log.test.ts +0 -213
- package/dist/resources/extensions/gsd/tests/agent-end-retry.test.ts +0 -107
- package/dist/resources/extensions/gsd/tests/all-milestones-complete-merge.test.ts +0 -200
- package/dist/resources/extensions/gsd/tests/auto-budget-alerts.test.ts +0 -50
- package/dist/resources/extensions/gsd/tests/auto-dashboard.test.ts +0 -166
- package/dist/resources/extensions/gsd/tests/auto-dispatch-loop.test.ts +0 -691
- package/dist/resources/extensions/gsd/tests/auto-lock-creation.test.ts +0 -186
- package/dist/resources/extensions/gsd/tests/auto-preflight.test.ts +0 -40
- package/dist/resources/extensions/gsd/tests/auto-recovery.test.ts +0 -640
- package/dist/resources/extensions/gsd/tests/auto-reentrancy-guard.test.ts +0 -127
- package/dist/resources/extensions/gsd/tests/auto-secrets-gate.test.ts +0 -302
- package/dist/resources/extensions/gsd/tests/auto-session-encapsulation.test.ts +0 -257
- package/dist/resources/extensions/gsd/tests/auto-skip-loop.test.ts +0 -123
- package/dist/resources/extensions/gsd/tests/auto-worktree-milestone-merge.test.ts +0 -340
- package/dist/resources/extensions/gsd/tests/auto-worktree.test.ts +0 -167
- package/dist/resources/extensions/gsd/tests/budget-prediction.test.ts +0 -220
- package/dist/resources/extensions/gsd/tests/cache-staleness-regression.test.ts +0 -317
- package/dist/resources/extensions/gsd/tests/captures.test.ts +0 -438
- package/dist/resources/extensions/gsd/tests/claude-import-tui.test.ts +0 -351
- package/dist/resources/extensions/gsd/tests/collect-from-manifest.test.ts +0 -469
- package/dist/resources/extensions/gsd/tests/collision-diagnostics.test.ts +0 -705
- package/dist/resources/extensions/gsd/tests/commands-logs.test.ts +0 -241
- package/dist/resources/extensions/gsd/tests/complete-milestone.test.ts +0 -209
- package/dist/resources/extensions/gsd/tests/complexity-classifier.test.ts +0 -181
- package/dist/resources/extensions/gsd/tests/context-budget.test.ts +0 -352
- package/dist/resources/extensions/gsd/tests/context-compression.test.ts +0 -193
- package/dist/resources/extensions/gsd/tests/context-store.test.ts +0 -462
- package/dist/resources/extensions/gsd/tests/continue-here.test.ts +0 -285
- package/dist/resources/extensions/gsd/tests/cost-projection.test.ts +0 -134
- package/dist/resources/extensions/gsd/tests/crash-recovery.test.ts +0 -134
- package/dist/resources/extensions/gsd/tests/dashboard-budget.test.ts +0 -346
- package/dist/resources/extensions/gsd/tests/db-writer.test.ts +0 -602
- package/dist/resources/extensions/gsd/tests/debug-logger.test.ts +0 -185
- package/dist/resources/extensions/gsd/tests/derive-state-db.test.ts +0 -405
- package/dist/resources/extensions/gsd/tests/derive-state-deps.test.ts +0 -421
- package/dist/resources/extensions/gsd/tests/derive-state-draft.test.ts +0 -308
- package/dist/resources/extensions/gsd/tests/derive-state.test.ts +0 -788
- package/dist/resources/extensions/gsd/tests/detection.test.ts +0 -398
- package/dist/resources/extensions/gsd/tests/diff-context.test.ts +0 -136
- package/dist/resources/extensions/gsd/tests/discuss-prompt.test.ts +0 -15
- package/dist/resources/extensions/gsd/tests/dispatch-guard.test.ts +0 -128
- package/dist/resources/extensions/gsd/tests/dispatch-missing-task-plans.test.ts +0 -132
- package/dist/resources/extensions/gsd/tests/dispatch-stall-guard.test.ts +0 -126
- package/dist/resources/extensions/gsd/tests/doctor-environment.test.ts +0 -314
- package/dist/resources/extensions/gsd/tests/doctor-fixlevel.test.ts +0 -245
- package/dist/resources/extensions/gsd/tests/doctor-git.test.ts +0 -344
- package/dist/resources/extensions/gsd/tests/doctor-proactive.test.ts +0 -278
- package/dist/resources/extensions/gsd/tests/doctor-providers.test.ts +0 -298
- package/dist/resources/extensions/gsd/tests/doctor-runtime.test.ts +0 -302
- package/dist/resources/extensions/gsd/tests/doctor.test.ts +0 -652
- package/dist/resources/extensions/gsd/tests/draft-promotion.test.ts +0 -169
- package/dist/resources/extensions/gsd/tests/exit-command.test.ts +0 -50
- package/dist/resources/extensions/gsd/tests/export-html-all.test.ts +0 -105
- package/dist/resources/extensions/gsd/tests/export-html-enhancements.test.ts +0 -378
- package/dist/resources/extensions/gsd/tests/extension-selector-separator.test.ts +0 -144
- package/dist/resources/extensions/gsd/tests/feature-branch-lifecycle-integration.test.ts +0 -424
- package/dist/resources/extensions/gsd/tests/git-self-heal.test.ts +0 -131
- package/dist/resources/extensions/gsd/tests/git-service.test.ts +0 -1172
- package/dist/resources/extensions/gsd/tests/gsd-db.test.ts +0 -353
- package/dist/resources/extensions/gsd/tests/gsd-inspect.test.ts +0 -125
- package/dist/resources/extensions/gsd/tests/gsd-tools.test.ts +0 -326
- package/dist/resources/extensions/gsd/tests/headless-answers.test.ts +0 -340
- package/dist/resources/extensions/gsd/tests/headless-query.test.ts +0 -162
- package/dist/resources/extensions/gsd/tests/idle-recovery.test.ts +0 -485
- package/dist/resources/extensions/gsd/tests/in-flight-tool-tracking.test.ts +0 -32
- package/dist/resources/extensions/gsd/tests/init-wizard.test.ts +0 -197
- package/dist/resources/extensions/gsd/tests/integration/headless-command.ts +0 -534
- package/dist/resources/extensions/gsd/tests/integration-edge.test.ts +0 -228
- package/dist/resources/extensions/gsd/tests/integration-lifecycle.test.ts +0 -277
- package/dist/resources/extensions/gsd/tests/integration-mixed-milestones.test.ts +0 -523
- package/dist/resources/extensions/gsd/tests/key-manager.test.ts +0 -414
- package/dist/resources/extensions/gsd/tests/knowledge.test.ts +0 -161
- package/dist/resources/extensions/gsd/tests/loop-regression.test.ts +0 -877
- package/dist/resources/extensions/gsd/tests/manifest-status.test.ts +0 -283
- package/dist/resources/extensions/gsd/tests/marketplace-test-fixtures.ts +0 -91
- package/dist/resources/extensions/gsd/tests/md-importer.test.ts +0 -410
- package/dist/resources/extensions/gsd/tests/mechanical-completion.test.ts +0 -356
- package/dist/resources/extensions/gsd/tests/memory-extractor.test.ts +0 -180
- package/dist/resources/extensions/gsd/tests/memory-leak-guards.test.ts +0 -91
- package/dist/resources/extensions/gsd/tests/memory-store.test.ts +0 -345
- package/dist/resources/extensions/gsd/tests/metrics.test.ts +0 -253
- package/dist/resources/extensions/gsd/tests/migrate-command.test.ts +0 -369
- package/dist/resources/extensions/gsd/tests/migrate-parser.test.ts +0 -757
- package/dist/resources/extensions/gsd/tests/migrate-transformer.test.ts +0 -635
- package/dist/resources/extensions/gsd/tests/migrate-validator-parsers.test.ts +0 -414
- package/dist/resources/extensions/gsd/tests/migrate-writer-integration.test.ts +0 -303
- package/dist/resources/extensions/gsd/tests/migrate-writer.test.ts +0 -398
- package/dist/resources/extensions/gsd/tests/milestone-transition-worktree.test.ts +0 -147
- package/dist/resources/extensions/gsd/tests/model-cost-table.test.ts +0 -69
- package/dist/resources/extensions/gsd/tests/model-isolation.test.ts +0 -157
- package/dist/resources/extensions/gsd/tests/model-router.test.ts +0 -167
- package/dist/resources/extensions/gsd/tests/must-have-parser.test.ts +0 -291
- package/dist/resources/extensions/gsd/tests/namespaced-registry.test.ts +0 -1027
- package/dist/resources/extensions/gsd/tests/namespaced-resolver.test.ts +0 -671
- package/dist/resources/extensions/gsd/tests/native-has-changes-cache.test.ts +0 -61
- package/dist/resources/extensions/gsd/tests/next-milestone-id.test.ts +0 -23
- package/dist/resources/extensions/gsd/tests/none-mode-gates.test.ts +0 -114
- package/dist/resources/extensions/gsd/tests/notifications.test.ts +0 -67
- package/dist/resources/extensions/gsd/tests/overrides.test.ts +0 -131
- package/dist/resources/extensions/gsd/tests/parallel-budget-atomicity.test.ts +0 -331
- package/dist/resources/extensions/gsd/tests/parallel-crash-recovery.test.ts +0 -298
- package/dist/resources/extensions/gsd/tests/parallel-merge.test.ts +0 -468
- package/dist/resources/extensions/gsd/tests/parallel-orchestration.test.ts +0 -685
- package/dist/resources/extensions/gsd/tests/parallel-worker-monitoring.test.ts +0 -171
- package/dist/resources/extensions/gsd/tests/parallel-workers-multi-milestone-e2e.test.ts +0 -354
- package/dist/resources/extensions/gsd/tests/park-edge-cases.test.ts +0 -276
- package/dist/resources/extensions/gsd/tests/park-milestone.test.ts +0 -401
- package/dist/resources/extensions/gsd/tests/parsers.test.ts +0 -1704
- package/dist/resources/extensions/gsd/tests/plan-milestone.test.ts +0 -133
- package/dist/resources/extensions/gsd/tests/plan-quality-validator.test.ts +0 -363
- package/dist/resources/extensions/gsd/tests/plan-slice-prompt.test.ts +0 -42
- package/dist/resources/extensions/gsd/tests/plugin-importer-live.test.ts +0 -481
- package/dist/resources/extensions/gsd/tests/plugin-importer.test.ts +0 -1383
- package/dist/resources/extensions/gsd/tests/post-unit-hooks.test.ts +0 -337
- package/dist/resources/extensions/gsd/tests/preferences.test.ts +0 -276
- package/dist/resources/extensions/gsd/tests/progress-score.test.ts +0 -206
- package/dist/resources/extensions/gsd/tests/prompt-budget-enforcement.test.ts +0 -464
- package/dist/resources/extensions/gsd/tests/prompt-cache-optimizer.test.ts +0 -314
- package/dist/resources/extensions/gsd/tests/prompt-compressor.test.ts +0 -529
- package/dist/resources/extensions/gsd/tests/prompt-db.test.ts +0 -385
- package/dist/resources/extensions/gsd/tests/prompt-ordering.test.ts +0 -296
- package/dist/resources/extensions/gsd/tests/provider-errors.test.ts +0 -338
- package/dist/resources/extensions/gsd/tests/queue-draft-detection.test.ts +0 -126
- package/dist/resources/extensions/gsd/tests/queue-order.test.ts +0 -204
- package/dist/resources/extensions/gsd/tests/queue-reorder-e2e.test.ts +0 -282
- package/dist/resources/extensions/gsd/tests/reassess-detection.test.ts +0 -154
- package/dist/resources/extensions/gsd/tests/reassess-prompt.test.ts +0 -145
- package/dist/resources/extensions/gsd/tests/regex-hardening.test.ts +0 -281
- package/dist/resources/extensions/gsd/tests/remote-questions.test.ts +0 -642
- package/dist/resources/extensions/gsd/tests/remote-status.test.ts +0 -99
- package/dist/resources/extensions/gsd/tests/replan-slice.test.ts +0 -538
- package/dist/resources/extensions/gsd/tests/requirements.test.ts +0 -106
- package/dist/resources/extensions/gsd/tests/roadmap-parse-regression.test.ts +0 -358
- package/dist/resources/extensions/gsd/tests/roadmap-slices.test.ts +0 -66
- package/dist/resources/extensions/gsd/tests/routing-history.test.ts +0 -240
- package/dist/resources/extensions/gsd/tests/run-uat.test.ts +0 -416
- package/dist/resources/extensions/gsd/tests/secure-env-collect.test.ts +0 -185
- package/dist/resources/extensions/gsd/tests/semantic-chunker.test.ts +0 -426
- package/dist/resources/extensions/gsd/tests/session-lock-regression.test.ts +0 -216
- package/dist/resources/extensions/gsd/tests/session-lock.test.ts +0 -434
- package/dist/resources/extensions/gsd/tests/skill-lifecycle.test.ts +0 -126
- package/dist/resources/extensions/gsd/tests/smart-entry-draft.test.ts +0 -123
- package/dist/resources/extensions/gsd/tests/stale-worktree-cwd.test.ts +0 -142
- package/dist/resources/extensions/gsd/tests/stop-auto-remote.test.ts +0 -156
- package/dist/resources/extensions/gsd/tests/structured-data-formatter.test.ts +0 -365
- package/dist/resources/extensions/gsd/tests/summary-distiller.test.ts +0 -323
- package/dist/resources/extensions/gsd/tests/test-helpers.ts +0 -61
- package/dist/resources/extensions/gsd/tests/token-counter.test.ts +0 -129
- package/dist/resources/extensions/gsd/tests/token-optimization-benchmark.test.ts +0 -1272
- package/dist/resources/extensions/gsd/tests/token-optimization-prefs.test.ts +0 -164
- package/dist/resources/extensions/gsd/tests/token-profile.test.ts +0 -268
- package/dist/resources/extensions/gsd/tests/token-savings.test.ts +0 -366
- package/dist/resources/extensions/gsd/tests/triage-dispatch.test.ts +0 -340
- package/dist/resources/extensions/gsd/tests/triage-resolution.test.ts +0 -416
- package/dist/resources/extensions/gsd/tests/undo.test.ts +0 -136
- package/dist/resources/extensions/gsd/tests/unique-milestone-ids.test.ts +0 -219
- package/dist/resources/extensions/gsd/tests/unit-runtime.test.ts +0 -258
- package/dist/resources/extensions/gsd/tests/update-command.test.ts +0 -67
- package/dist/resources/extensions/gsd/tests/validate-directory.test.ts +0 -222
- package/dist/resources/extensions/gsd/tests/validate-milestone.test.ts +0 -375
- package/dist/resources/extensions/gsd/tests/verification-evidence.test.ts +0 -745
- package/dist/resources/extensions/gsd/tests/verification-gate.test.ts +0 -1208
- package/dist/resources/extensions/gsd/tests/visualizer-critical-path.test.ts +0 -145
- package/dist/resources/extensions/gsd/tests/visualizer-data.test.ts +0 -446
- package/dist/resources/extensions/gsd/tests/visualizer-overlay.test.ts +0 -237
- package/dist/resources/extensions/gsd/tests/visualizer-views.test.ts +0 -718
- package/dist/resources/extensions/gsd/tests/worker-registry.test.ts +0 -148
- package/dist/resources/extensions/gsd/tests/workflow-templates.test.ts +0 -173
- package/dist/resources/extensions/gsd/tests/workspace-index.test.ts +0 -38
- package/dist/resources/extensions/gsd/tests/worktree-bugfix.test.ts +0 -120
- package/dist/resources/extensions/gsd/tests/worktree-e2e.test.ts +0 -244
- package/dist/resources/extensions/gsd/tests/worktree-integration.test.ts +0 -207
- package/dist/resources/extensions/gsd/tests/worktree-manager.test.ts +0 -141
- package/dist/resources/extensions/gsd/tests/worktree-post-create-hook.test.ts +0 -165
- package/dist/resources/extensions/gsd/tests/worktree-sync-milestones.test.ts +0 -206
- package/dist/resources/extensions/gsd/tests/worktree.test.ts +0 -171
- package/dist/resources/extensions/gsd/tests/write-gate.test.ts +0 -211
- package/dist/resources/extensions/gsd/token-counter.ts +0 -65
- package/dist/resources/extensions/gsd/triage-resolution.ts +0 -284
- package/dist/resources/extensions/gsd/triage-ui.ts +0 -175
- package/dist/resources/extensions/gsd/types.ts +0 -425
- package/dist/resources/extensions/gsd/undo.ts +0 -223
- package/dist/resources/extensions/gsd/unit-id.ts +0 -14
- package/dist/resources/extensions/gsd/unit-runtime.ts +0 -192
- package/dist/resources/extensions/gsd/validate-directory.ts +0 -164
- package/dist/resources/extensions/gsd/verification-evidence.ts +0 -188
- package/dist/resources/extensions/gsd/verification-gate.ts +0 -643
- package/dist/resources/extensions/gsd/visualizer-data.ts +0 -866
- package/dist/resources/extensions/gsd/visualizer-overlay.ts +0 -566
- package/dist/resources/extensions/gsd/visualizer-views.ts +0 -1171
- package/dist/resources/extensions/gsd/workflow-templates.ts +0 -241
- package/dist/resources/extensions/gsd/workspace-index.ts +0 -217
- package/dist/resources/extensions/gsd/worktree-command.ts +0 -807
- package/dist/resources/extensions/gsd/worktree-manager.ts +0 -449
- package/dist/resources/extensions/gsd/worktree.ts +0 -257
- package/dist/resources/extensions/mac-tools/index.ts +0 -852
- package/dist/resources/extensions/mcp-client/index.ts +0 -459
- package/dist/resources/extensions/remote-questions/config.ts +0 -83
- package/dist/resources/extensions/remote-questions/discord-adapter.ts +0 -148
- package/dist/resources/extensions/remote-questions/format.ts +0 -315
- package/dist/resources/extensions/remote-questions/http-client.ts +0 -76
- package/dist/resources/extensions/remote-questions/manager.ts +0 -184
- package/dist/resources/extensions/remote-questions/notify.ts +0 -90
- package/dist/resources/extensions/remote-questions/remote-command.ts +0 -457
- package/dist/resources/extensions/remote-questions/slack-adapter.ts +0 -141
- package/dist/resources/extensions/remote-questions/status.ts +0 -31
- package/dist/resources/extensions/remote-questions/store.ts +0 -81
- package/dist/resources/extensions/remote-questions/telegram-adapter.ts +0 -149
- package/dist/resources/extensions/remote-questions/types.ts +0 -102
- package/dist/resources/extensions/search-the-web/cache.ts +0 -78
- package/dist/resources/extensions/search-the-web/command-search-provider.ts +0 -101
- package/dist/resources/extensions/search-the-web/format.ts +0 -258
- package/dist/resources/extensions/search-the-web/http.ts +0 -238
- package/dist/resources/extensions/search-the-web/index.ts +0 -65
- package/dist/resources/extensions/search-the-web/native-search.ts +0 -193
- package/dist/resources/extensions/search-the-web/provider.ts +0 -148
- package/dist/resources/extensions/search-the-web/tavily.ts +0 -116
- package/dist/resources/extensions/search-the-web/tool-fetch-page.ts +0 -589
- package/dist/resources/extensions/search-the-web/tool-llm-context.ts +0 -608
- package/dist/resources/extensions/search-the-web/tool-search.ts +0 -649
- package/dist/resources/extensions/search-the-web/url-utils.ts +0 -125
- package/dist/resources/extensions/shared/confirm-ui.ts +0 -126
- package/dist/resources/extensions/shared/frontmatter.ts +0 -117
- package/dist/resources/extensions/shared/interview-ui.ts +0 -613
- package/dist/resources/extensions/shared/next-action-ui.ts +0 -212
- package/dist/resources/extensions/shared/sanitize.ts +0 -19
- package/dist/resources/extensions/shared/terminal.ts +0 -23
- package/dist/resources/extensions/shared/tests/format-utils.test.ts +0 -153
- package/dist/resources/extensions/shared/ui.ts +0 -400
- package/dist/resources/extensions/shared/wizard-ui.ts +0 -551
- package/dist/resources/extensions/slash-commands/audit.ts +0 -88
- package/dist/resources/extensions/slash-commands/clear.ts +0 -10
- package/dist/resources/extensions/slash-commands/create-extension.ts +0 -297
- package/dist/resources/extensions/slash-commands/create-slash-command.ts +0 -234
- package/dist/resources/extensions/slash-commands/index.ts +0 -12
- package/dist/resources/extensions/subagent/agents.ts +0 -126
- package/dist/resources/extensions/subagent/index.ts +0 -1121
- package/dist/resources/extensions/subagent/isolation.ts +0 -501
- package/dist/resources/extensions/subagent/worker-registry.ts +0 -99
- package/dist/resources/extensions/ttsr/index.ts +0 -168
- package/dist/resources/extensions/ttsr/rule-loader.ts +0 -74
- package/dist/resources/extensions/ttsr/ttsr-manager.ts +0 -456
- package/dist/resources/extensions/universal-config/discovery.ts +0 -104
- package/dist/resources/extensions/universal-config/format.ts +0 -191
- package/dist/resources/extensions/universal-config/index.ts +0 -120
- package/dist/resources/extensions/universal-config/scanners.ts +0 -642
- package/dist/resources/extensions/universal-config/tests/discovery.test.ts +0 -119
- package/dist/resources/extensions/universal-config/tests/format.test.ts +0 -127
- package/dist/resources/extensions/universal-config/tests/scanners.test.ts +0 -456
- package/dist/resources/extensions/universal-config/tools.ts +0 -60
- package/dist/resources/extensions/universal-config/types.ts +0 -135
- package/dist/resources/extensions/voice/index.ts +0 -272
- package/dist/resources/skills/create-gsd-extension/templates/extension-skeleton.ts +0 -51
- package/dist/resources/skills/create-gsd-extension/templates/stateful-tool-skeleton.ts +0 -143
- package/packages/pi-coding-agent/dist/modes/interactive/theme/dark.json +0 -85
- package/packages/pi-coding-agent/dist/modes/interactive/theme/light.json +0 -84
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme-schema.json +0 -335
- package/packages/pi-coding-agent/src/modes/interactive/theme/dark.json +0 -85
- package/packages/pi-coding-agent/src/modes/interactive/theme/light.json +0 -84
- package/packages/pi-coding-agent/src/modes/interactive/theme/theme-schema.json +0 -335
- package/pkg/dist/modes/interactive/theme/dark.json +0 -85
- package/pkg/dist/modes/interactive/theme/light.json +0 -84
- package/pkg/dist/modes/interactive/theme/theme-schema.json +0 -335
- package/src/resources/extensions/gsd/auto-constants.ts +0 -6
- package/src/resources/extensions/gsd/auto-idempotency.ts +0 -151
- package/src/resources/extensions/gsd/auto-stuck-detection.ts +0 -221
- package/src/resources/extensions/gsd/mechanical-completion.ts +0 -430
- package/src/resources/extensions/gsd/tests/auto-dispatch-loop.test.ts +0 -691
- package/src/resources/extensions/gsd/tests/auto-reentrancy-guard.test.ts +0 -127
- package/src/resources/extensions/gsd/tests/auto-skip-loop.test.ts +0 -123
- package/src/resources/extensions/gsd/tests/dispatch-stall-guard.test.ts +0 -126
- package/src/resources/extensions/gsd/tests/loop-regression.test.ts +0 -877
- package/src/resources/extensions/gsd/tests/mechanical-completion.test.ts +0 -356
- package/src/resources/extensions/gsd/tests/progress-score.test.ts +0 -206
- package/src/resources/extensions/gsd/tests/session-lock.test.ts +0 -434
|
@@ -1,1149 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GSD Command — /gsd
|
|
3
|
-
*
|
|
4
|
-
* One command, one wizard. Routes to smart entry or status.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import type { ExtensionAPI, ExtensionCommandContext } from "@gsd/pi-coding-agent";
|
|
8
|
-
import type { GSDState } from "./types.js";
|
|
9
|
-
import { existsSync, readFileSync, readdirSync, unlinkSync } from "node:fs";
|
|
10
|
-
import { homedir } from "node:os";
|
|
11
|
-
import { join } from "node:path";
|
|
12
|
-
import { gsdRoot } from "./paths.js";
|
|
13
|
-
import { enableDebug } from "./debug-logger.js";
|
|
14
|
-
import { deriveState } from "./state.js";
|
|
15
|
-
import { GSDDashboardOverlay } from "./dashboard-overlay.js";
|
|
16
|
-
import { GSDVisualizerOverlay } from "./visualizer-overlay.js";
|
|
17
|
-
import { showQueue, showDiscuss, showHeadlessMilestoneCreation } from "./guided-flow.js";
|
|
18
|
-
import { startAuto, stopAuto, pauseAuto, isAutoActive, isAutoPaused, isStepMode, stopAutoRemote } from "./auto.js";
|
|
19
|
-
import { dispatchDirectPhase } from "./auto-direct-dispatch.js";
|
|
20
|
-
import { resolveProjectRoot } from "./worktree.js";
|
|
21
|
-
import { assertSafeDirectory } from "./validate-directory.js";
|
|
22
|
-
import {
|
|
23
|
-
getGlobalGSDPreferencesPath,
|
|
24
|
-
getProjectGSDPreferencesPath,
|
|
25
|
-
loadEffectiveGSDPreferences,
|
|
26
|
-
} from "./preferences.js";
|
|
27
|
-
import { handleRemote } from "../remote-questions/mod.js";
|
|
28
|
-
import { handleQuick } from "./quick.js";
|
|
29
|
-
import { handleHistory } from "./history.js";
|
|
30
|
-
import { handleUndo } from "./undo.js";
|
|
31
|
-
import { handleExport } from "./export.js";
|
|
32
|
-
import {
|
|
33
|
-
isParallelActive, getOrchestratorState, getWorkerStatuses,
|
|
34
|
-
prepareParallelStart, startParallel, stopParallel,
|
|
35
|
-
pauseWorker, resumeWorker,
|
|
36
|
-
} from "./parallel-orchestrator.js";
|
|
37
|
-
import { formatEligibilityReport } from "./parallel-eligibility.js";
|
|
38
|
-
import { mergeAllCompleted, mergeCompletedMilestone, formatMergeResults } from "./parallel-merge.js";
|
|
39
|
-
import { resolveParallelConfig } from "./preferences.js";
|
|
40
|
-
|
|
41
|
-
// ─── Imports from extracted modules ──────────────────────────────────────────
|
|
42
|
-
import { handlePrefs, handlePrefsMode, handlePrefsWizard, ensurePreferencesFile } from "./commands-prefs-wizard.js";
|
|
43
|
-
import { handleConfig } from "./commands-config.js";
|
|
44
|
-
import { handleInspect } from "./commands-inspect.js";
|
|
45
|
-
import { handleCleanupBranches, handleCleanupSnapshots, handleSkip, handleDryRun } from "./commands-maintenance.js";
|
|
46
|
-
import { handleDoctor, handleSteer, handleCapture, handleTriage, handleKnowledge, handleRunHook, handleUpdate, handleSkillHealth } from "./commands-handlers.js";
|
|
47
|
-
import { computeProgressScore, formatProgressLine } from "./progress-score.js";
|
|
48
|
-
import { runEnvironmentChecks } from "./doctor-environment.js";
|
|
49
|
-
import { handleLogs } from "./commands-logs.js";
|
|
50
|
-
import { handleStart, handleTemplates, getTemplateCompletions } from "./commands-workflow-templates.js";
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/** Resolve the effective project root, accounting for worktree paths. */
|
|
54
|
-
export function projectRoot(): string {
|
|
55
|
-
const cwd = process.cwd();
|
|
56
|
-
const root = resolveProjectRoot(cwd);
|
|
57
|
-
|
|
58
|
-
// When running inside a GSD worktree, the resolved root may be a "dangerous"
|
|
59
|
-
// directory (e.g., $HOME used as a git repo root — #1317). The safety check
|
|
60
|
-
// should validate the actual working directory, not the upstream root,
|
|
61
|
-
// because the worktree itself is a safe project subdirectory.
|
|
62
|
-
// Only skip the root check when we can confirm we're in a valid worktree.
|
|
63
|
-
if (root !== cwd) {
|
|
64
|
-
// We're in a worktree — validate the worktree path instead of the root
|
|
65
|
-
assertSafeDirectory(cwd);
|
|
66
|
-
} else {
|
|
67
|
-
assertSafeDirectory(root);
|
|
68
|
-
}
|
|
69
|
-
return root;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function registerGSDCommand(pi: ExtensionAPI): void {
|
|
73
|
-
pi.registerCommand("gsd", {
|
|
74
|
-
description: "GSD — Get Shit Done: /gsd help|start|templates|next|auto|stop|pause|status|visualize|queue|quick|capture|triage|dispatch|history|undo|skip|export|cleanup|mode|prefs|config|keys|hooks|run-hook|skill-health|doctor|forensics|migrate|remote|steer|knowledge|new-milestone|parallel|update",
|
|
75
|
-
getArgumentCompletions: (prefix: string) => {
|
|
76
|
-
const subcommands = [
|
|
77
|
-
{ cmd: "help", desc: "Categorized command reference with descriptions" },
|
|
78
|
-
{ cmd: "next", desc: "Explicit step mode (same as /gsd)" },
|
|
79
|
-
{ cmd: "auto", desc: "Autonomous mode — research, plan, execute, commit, repeat" },
|
|
80
|
-
{ cmd: "stop", desc: "Stop auto mode gracefully" },
|
|
81
|
-
{ cmd: "pause", desc: "Pause auto-mode (preserves state, /gsd auto to resume)" },
|
|
82
|
-
{ cmd: "status", desc: "Progress dashboard" },
|
|
83
|
-
{ cmd: "visualize", desc: "Open 10-tab workflow visualizer (progress, timeline, deps, metrics, health, agent, changes, knowledge, captures, export)" },
|
|
84
|
-
{ cmd: "queue", desc: "Queue and reorder future milestones" },
|
|
85
|
-
{ cmd: "quick", desc: "Execute a quick task without full planning overhead" },
|
|
86
|
-
{ cmd: "discuss", desc: "Discuss architecture and decisions" },
|
|
87
|
-
{ cmd: "capture", desc: "Fire-and-forget thought capture" },
|
|
88
|
-
{ cmd: "triage", desc: "Manually trigger triage of pending captures" },
|
|
89
|
-
{ cmd: "dispatch", desc: "Dispatch a specific phase directly" },
|
|
90
|
-
{ cmd: "history", desc: "View execution history" },
|
|
91
|
-
{ cmd: "undo", desc: "Revert last completed unit" },
|
|
92
|
-
{ cmd: "skip", desc: "Prevent a unit from auto-mode dispatch" },
|
|
93
|
-
{ cmd: "export", desc: "Export milestone/slice results" },
|
|
94
|
-
{ cmd: "cleanup", desc: "Remove merged branches or snapshots" },
|
|
95
|
-
{ cmd: "mode", desc: "Switch workflow mode (solo/team)" },
|
|
96
|
-
{ cmd: "prefs", desc: "Manage preferences (model selection, timeouts, etc.)" },
|
|
97
|
-
{ cmd: "config", desc: "Set API keys for external tools" },
|
|
98
|
-
{ cmd: "keys", desc: "API key manager — list, add, remove, test, rotate, doctor" },
|
|
99
|
-
{ cmd: "hooks", desc: "Show configured post-unit and pre-dispatch hooks" },
|
|
100
|
-
{ cmd: "run-hook", desc: "Manually trigger a specific hook" },
|
|
101
|
-
{ cmd: "skill-health", desc: "Skill lifecycle dashboard" },
|
|
102
|
-
{ cmd: "doctor", desc: "Runtime health checks with auto-fix" },
|
|
103
|
-
{ cmd: "logs", desc: "Browse activity logs, debug logs, and metrics" },
|
|
104
|
-
{ cmd: "forensics", desc: "Examine execution logs" },
|
|
105
|
-
{ cmd: "init", desc: "Project init wizard — detect, configure, bootstrap .gsd/" },
|
|
106
|
-
{ cmd: "setup", desc: "Global setup status and configuration" },
|
|
107
|
-
{ cmd: "migrate", desc: "Migrate a v1 .planning directory to .gsd format" },
|
|
108
|
-
{ cmd: "remote", desc: "Control remote auto-mode" },
|
|
109
|
-
{ cmd: "steer", desc: "Hard-steer plan documents during execution" },
|
|
110
|
-
{ cmd: "inspect", desc: "Show SQLite DB diagnostics" },
|
|
111
|
-
{ cmd: "knowledge", desc: "Add persistent project knowledge (rule, pattern, or lesson)" },
|
|
112
|
-
{ cmd: "new-milestone", desc: "Create a milestone from a specification document (headless)" },
|
|
113
|
-
{ cmd: "parallel", desc: "Parallel milestone orchestration (start, status, stop, merge)" },
|
|
114
|
-
{ cmd: "park", desc: "Park a milestone — skip without deleting" },
|
|
115
|
-
{ cmd: "unpark", desc: "Reactivate a parked milestone" },
|
|
116
|
-
{ cmd: "update", desc: "Update GSD to the latest version" },
|
|
117
|
-
{ cmd: "start", desc: "Start a workflow template (bugfix, spike, feature, etc.)" },
|
|
118
|
-
{ cmd: "templates", desc: "List available workflow templates" },
|
|
119
|
-
{ cmd: "extensions", desc: "Manage extensions (list, enable, disable, info)" },
|
|
120
|
-
];
|
|
121
|
-
const parts = prefix.trim().split(/\s+/);
|
|
122
|
-
|
|
123
|
-
if (parts.length <= 1) {
|
|
124
|
-
return subcommands
|
|
125
|
-
.filter((item) => item.cmd.startsWith(parts[0] ?? ""))
|
|
126
|
-
.map((item) => ({
|
|
127
|
-
value: item.cmd,
|
|
128
|
-
label: item.cmd,
|
|
129
|
-
description: item.desc
|
|
130
|
-
}));
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
if (parts[0] === "auto" && parts.length <= 2) {
|
|
134
|
-
const flagPrefix = parts[1] ?? "";
|
|
135
|
-
const flags = [
|
|
136
|
-
{ flag: "--verbose", desc: "Show detailed execution output" },
|
|
137
|
-
{ flag: "--debug", desc: "Enable debug logging" },
|
|
138
|
-
];
|
|
139
|
-
return flags
|
|
140
|
-
.filter((f) => f.flag.startsWith(flagPrefix))
|
|
141
|
-
.map((f) => ({ value: `auto ${f.flag}`, label: f.flag, description: f.desc }));
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
if (parts[0] === "mode" && parts.length <= 2) {
|
|
145
|
-
const subPrefix = parts[1] ?? "";
|
|
146
|
-
const modes = [
|
|
147
|
-
{ cmd: "global", desc: "Edit global workflow mode" },
|
|
148
|
-
{ cmd: "project", desc: "Edit project-specific workflow mode" },
|
|
149
|
-
];
|
|
150
|
-
return modes
|
|
151
|
-
.filter((m) => m.cmd.startsWith(subPrefix))
|
|
152
|
-
.map((m) => ({ value: `mode ${m.cmd}`, label: m.cmd, description: m.desc }));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
if (parts[0] === "parallel" && parts.length <= 2) {
|
|
156
|
-
const subPrefix = parts[1] ?? "";
|
|
157
|
-
const subs = [
|
|
158
|
-
{ cmd: "start", desc: "Start parallel milestone orchestration" },
|
|
159
|
-
{ cmd: "status", desc: "Show parallel worker statuses" },
|
|
160
|
-
{ cmd: "stop", desc: "Stop all parallel workers" },
|
|
161
|
-
{ cmd: "pause", desc: "Pause a specific worker" },
|
|
162
|
-
{ cmd: "resume", desc: "Resume a paused worker" },
|
|
163
|
-
{ cmd: "merge", desc: "Merge completed milestone branches" },
|
|
164
|
-
];
|
|
165
|
-
return subs
|
|
166
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
167
|
-
.map((s) => ({ value: `parallel ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
if (parts[0] === "setup" && parts.length <= 2) {
|
|
171
|
-
const subPrefix = parts[1] ?? "";
|
|
172
|
-
const subs = [
|
|
173
|
-
{ cmd: "llm", desc: "Configure LLM provider settings" },
|
|
174
|
-
{ cmd: "search", desc: "Configure web search provider" },
|
|
175
|
-
{ cmd: "remote", desc: "Configure remote integrations" },
|
|
176
|
-
{ cmd: "keys", desc: "Manage API keys" },
|
|
177
|
-
{ cmd: "prefs", desc: "Configure global preferences" },
|
|
178
|
-
];
|
|
179
|
-
return subs
|
|
180
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
181
|
-
.map((s) => ({ value: `setup ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
if (parts[0] === "logs" && parts.length <= 2) {
|
|
185
|
-
const subPrefix = parts[1] ?? "";
|
|
186
|
-
const subs = [
|
|
187
|
-
{ cmd: "debug", desc: "List or view debug log files" },
|
|
188
|
-
{ cmd: "tail", desc: "Show last N activity log summaries" },
|
|
189
|
-
{ cmd: "clear", desc: "Remove old activity and debug logs" },
|
|
190
|
-
];
|
|
191
|
-
return subs
|
|
192
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
193
|
-
.map((s) => ({ value: `logs ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (parts[0] === "keys" && parts.length <= 2) {
|
|
197
|
-
const subPrefix = parts[1] ?? "";
|
|
198
|
-
const subs = [
|
|
199
|
-
{ cmd: "list", desc: "Show key status dashboard" },
|
|
200
|
-
{ cmd: "add", desc: "Add a key for a provider" },
|
|
201
|
-
{ cmd: "remove", desc: "Remove a key" },
|
|
202
|
-
{ cmd: "test", desc: "Validate key(s) with API call" },
|
|
203
|
-
{ cmd: "rotate", desc: "Replace an existing key" },
|
|
204
|
-
{ cmd: "doctor", desc: "Health check all keys" },
|
|
205
|
-
];
|
|
206
|
-
return subs
|
|
207
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
208
|
-
.map((s) => ({ value: `keys ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if (parts[0] === "prefs" && parts.length <= 2) {
|
|
212
|
-
const subPrefix = parts[1] ?? "";
|
|
213
|
-
const subs = [
|
|
214
|
-
{ cmd: "global", desc: "Edit global preferences file" },
|
|
215
|
-
{ cmd: "project", desc: "Edit project preferences file" },
|
|
216
|
-
{ cmd: "status", desc: "Show effective preferences" },
|
|
217
|
-
{ cmd: "wizard", desc: "Interactive preferences wizard" },
|
|
218
|
-
{ cmd: "setup", desc: "First-time preferences setup" },
|
|
219
|
-
{ cmd: "import-claude", desc: "Import settings from Claude Code" },
|
|
220
|
-
];
|
|
221
|
-
return subs
|
|
222
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
223
|
-
.map((s) => ({ value: `prefs ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
if (parts[0] === "remote" && parts.length <= 2) {
|
|
227
|
-
const subPrefix = parts[1] ?? "";
|
|
228
|
-
const subs = [
|
|
229
|
-
{ cmd: "slack", desc: "Configure Slack integration" },
|
|
230
|
-
{ cmd: "discord", desc: "Configure Discord integration" },
|
|
231
|
-
{ cmd: "status", desc: "Show remote connection status" },
|
|
232
|
-
{ cmd: "disconnect", desc: "Disconnect remote integrations" },
|
|
233
|
-
];
|
|
234
|
-
return subs
|
|
235
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
236
|
-
.map((s) => ({ value: `remote ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
if (parts[0] === "next" && parts.length <= 2) {
|
|
240
|
-
const flagPrefix = parts[1] ?? "";
|
|
241
|
-
const flags = [
|
|
242
|
-
{ flag: "--verbose", desc: "Show detailed step output" },
|
|
243
|
-
{ flag: "--dry-run", desc: "Preview next step without executing" },
|
|
244
|
-
];
|
|
245
|
-
return flags
|
|
246
|
-
.filter((f) => f.flag.startsWith(flagPrefix))
|
|
247
|
-
.map((f) => ({ value: `next ${f.flag}`, label: f.flag, description: f.desc }));
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
if (parts[0] === "history" && parts.length <= 2) {
|
|
251
|
-
const flagPrefix = parts[1] ?? "";
|
|
252
|
-
const flags = [
|
|
253
|
-
{ flag: "--cost", desc: "Show cost breakdown per entry" },
|
|
254
|
-
{ flag: "--phase", desc: "Filter by phase type" },
|
|
255
|
-
{ flag: "--model", desc: "Filter by model used" },
|
|
256
|
-
{ flag: "10", desc: "Show last 10 entries" },
|
|
257
|
-
{ flag: "20", desc: "Show last 20 entries" },
|
|
258
|
-
{ flag: "50", desc: "Show last 50 entries" },
|
|
259
|
-
];
|
|
260
|
-
return flags
|
|
261
|
-
.filter((f) => f.flag.startsWith(flagPrefix))
|
|
262
|
-
.map((f) => ({ value: `history ${f.flag}`, label: f.flag, description: f.desc }));
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
if (parts[0] === "undo" && parts.length <= 2) {
|
|
266
|
-
return [{ value: "undo --force", label: "--force", description: "Skip confirmation prompt" }];
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if (parts[0] === "export" && parts.length <= 2) {
|
|
270
|
-
const flagPrefix = parts[1] ?? "";
|
|
271
|
-
const flags = [
|
|
272
|
-
{ flag: "--json", desc: "Export as JSON" },
|
|
273
|
-
{ flag: "--markdown", desc: "Export as Markdown" },
|
|
274
|
-
{ flag: "--html", desc: "Export as HTML" },
|
|
275
|
-
{ flag: "--html --all", desc: "Export all milestones as HTML" },
|
|
276
|
-
];
|
|
277
|
-
return flags
|
|
278
|
-
.filter((f) => f.flag.startsWith(flagPrefix))
|
|
279
|
-
.map((f) => ({ value: `export ${f.flag}`, label: f.flag, description: f.desc }));
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
if (parts[0] === "cleanup" && parts.length <= 2) {
|
|
283
|
-
const subPrefix = parts[1] ?? "";
|
|
284
|
-
const subs = [
|
|
285
|
-
{ cmd: "branches", desc: "Remove merged milestone branches" },
|
|
286
|
-
{ cmd: "snapshots", desc: "Remove old execution snapshots" },
|
|
287
|
-
];
|
|
288
|
-
return subs
|
|
289
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
290
|
-
.map((s) => ({ value: `cleanup ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
if (parts[0] === "knowledge" && parts.length <= 2) {
|
|
294
|
-
const subPrefix = parts[1] ?? "";
|
|
295
|
-
const subs = [
|
|
296
|
-
{ cmd: "rule", desc: "Add a project rule (always/never do X)" },
|
|
297
|
-
{ cmd: "pattern", desc: "Add a code pattern to follow" },
|
|
298
|
-
{ cmd: "lesson", desc: "Record a lesson learned" },
|
|
299
|
-
];
|
|
300
|
-
return subs
|
|
301
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
302
|
-
.map((s) => ({ value: `knowledge ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
if (parts[0] === "start" && parts.length <= 2) {
|
|
306
|
-
const subPrefix = parts[1] ?? "";
|
|
307
|
-
const subs = [
|
|
308
|
-
{ cmd: "bugfix", desc: "Triage, fix, test, and ship a bug fix" },
|
|
309
|
-
{ cmd: "small-feature", desc: "Lightweight feature with optional discussion" },
|
|
310
|
-
{ cmd: "spike", desc: "Research, prototype, and document findings" },
|
|
311
|
-
{ cmd: "hotfix", desc: "Minimal: fix it, test it, ship it" },
|
|
312
|
-
{ cmd: "refactor", desc: "Inventory, plan waves, migrate, verify" },
|
|
313
|
-
{ cmd: "security-audit", desc: "Scan, triage, remediate, re-scan" },
|
|
314
|
-
{ cmd: "dep-upgrade", desc: "Assess, upgrade, fix breaks, verify" },
|
|
315
|
-
{ cmd: "full-project", desc: "Complete GSD workflow with full ceremony" },
|
|
316
|
-
{ cmd: "resume", desc: "Resume an in-progress workflow" },
|
|
317
|
-
{ cmd: "--list", desc: "List all available templates" },
|
|
318
|
-
{ cmd: "--dry-run", desc: "Preview workflow without executing" },
|
|
319
|
-
];
|
|
320
|
-
return subs
|
|
321
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
322
|
-
.map((s) => ({ value: `start ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
if (parts[0] === "templates" && parts.length <= 2) {
|
|
326
|
-
const subPrefix = parts[1] ?? "";
|
|
327
|
-
const subs = [
|
|
328
|
-
{ cmd: "info", desc: "Show detailed template info" },
|
|
329
|
-
];
|
|
330
|
-
return subs
|
|
331
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
332
|
-
.map((s) => ({ value: `templates ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
if (parts[0] === "templates" && parts[1] === "info" && parts.length <= 3) {
|
|
336
|
-
const namePrefix = parts[2] ?? "";
|
|
337
|
-
return getTemplateCompletions(namePrefix)
|
|
338
|
-
.map((c) => ({ value: `templates ${c.value}`, label: c.label, description: c.description }));
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
if (parts[0] === "extensions") {
|
|
342
|
-
if (parts.length <= 2) {
|
|
343
|
-
const subPrefix = parts[1] ?? "";
|
|
344
|
-
const subs = [
|
|
345
|
-
{ cmd: "list", desc: "List all extensions and their status" },
|
|
346
|
-
{ cmd: "enable", desc: "Enable a disabled extension" },
|
|
347
|
-
{ cmd: "disable", desc: "Disable an extension" },
|
|
348
|
-
{ cmd: "info", desc: "Show extension details" },
|
|
349
|
-
];
|
|
350
|
-
return subs
|
|
351
|
-
.filter((s) => s.cmd.startsWith(subPrefix))
|
|
352
|
-
.map((s) => ({ value: `extensions ${s.cmd}`, label: s.cmd, description: s.desc }));
|
|
353
|
-
}
|
|
354
|
-
if (parts.length === 3 && ["enable", "disable", "info"].includes(parts[1])) {
|
|
355
|
-
const idPrefix = parts[2] ?? "";
|
|
356
|
-
try {
|
|
357
|
-
const extDir = join(homedir(), ".gsd", "agent", "extensions");
|
|
358
|
-
const ids: { id: string; name: string }[] = [];
|
|
359
|
-
for (const entry of readdirSync(extDir, { withFileTypes: true })) {
|
|
360
|
-
if (!entry.isDirectory()) continue;
|
|
361
|
-
const mPath = join(extDir, entry.name, "extension-manifest.json");
|
|
362
|
-
if (!existsSync(mPath)) continue;
|
|
363
|
-
try {
|
|
364
|
-
const m = JSON.parse(readFileSync(mPath, "utf-8"));
|
|
365
|
-
if (typeof m?.id === "string") ids.push({ id: m.id, name: m.name ?? m.id });
|
|
366
|
-
} catch { /* skip malformed */ }
|
|
367
|
-
}
|
|
368
|
-
return ids
|
|
369
|
-
.filter((e) => e.id.startsWith(idPrefix))
|
|
370
|
-
.map((e) => ({
|
|
371
|
-
value: `extensions ${parts[1]} ${e.id}`,
|
|
372
|
-
label: e.id,
|
|
373
|
-
description: e.name,
|
|
374
|
-
}));
|
|
375
|
-
} catch {
|
|
376
|
-
return [];
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
return [];
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
if (parts[0] === "doctor") {
|
|
383
|
-
const modePrefix = parts[1] ?? "";
|
|
384
|
-
const modes = [
|
|
385
|
-
{ cmd: "fix", desc: "Auto-fix detected issues" },
|
|
386
|
-
{ cmd: "heal", desc: "AI-driven deep healing" },
|
|
387
|
-
{ cmd: "audit", desc: "Run health audit without fixing" },
|
|
388
|
-
];
|
|
389
|
-
|
|
390
|
-
if (parts.length <= 2) {
|
|
391
|
-
return modes
|
|
392
|
-
.filter((m) => m.cmd.startsWith(modePrefix))
|
|
393
|
-
.map((m) => ({ value: `doctor ${m.cmd}`, label: m.cmd, description: m.desc }));
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
return [];
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
if (parts[0] === "dispatch" && parts.length <= 2) {
|
|
400
|
-
const phasePrefix = parts[1] ?? "";
|
|
401
|
-
const phases = [
|
|
402
|
-
{ cmd: "research", desc: "Run research phase" },
|
|
403
|
-
{ cmd: "plan", desc: "Run planning phase" },
|
|
404
|
-
{ cmd: "execute", desc: "Run execution phase" },
|
|
405
|
-
{ cmd: "complete", desc: "Run completion phase" },
|
|
406
|
-
{ cmd: "reassess", desc: "Reassess current progress" },
|
|
407
|
-
{ cmd: "uat", desc: "Run user acceptance testing" },
|
|
408
|
-
{ cmd: "replan", desc: "Replan the current slice" },
|
|
409
|
-
];
|
|
410
|
-
return phases
|
|
411
|
-
.filter((p) => p.cmd.startsWith(phasePrefix))
|
|
412
|
-
.map((p) => ({ value: `dispatch ${p.cmd}`, label: p.cmd, description: p.desc }));
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
return [];
|
|
416
|
-
},
|
|
417
|
-
|
|
418
|
-
async handler(args: string, ctx: ExtensionCommandContext) {
|
|
419
|
-
const trimmed = (typeof args === "string" ? args : "").trim();
|
|
420
|
-
|
|
421
|
-
if (trimmed === "help" || trimmed === "h" || trimmed === "?") {
|
|
422
|
-
showHelp(ctx);
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
if (trimmed === "status") {
|
|
427
|
-
await handleStatus(ctx);
|
|
428
|
-
return;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
if (trimmed === "visualize") {
|
|
432
|
-
await handleVisualize(ctx);
|
|
433
|
-
return;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
if (trimmed === "mode" || trimmed.startsWith("mode ")) {
|
|
437
|
-
const modeArgs = trimmed.replace(/^mode\s*/, "").trim();
|
|
438
|
-
const scope = modeArgs === "project" ? "project" : "global";
|
|
439
|
-
const path = scope === "project" ? getProjectGSDPreferencesPath() : getGlobalGSDPreferencesPath();
|
|
440
|
-
await ensurePreferencesFile(path, ctx, scope);
|
|
441
|
-
await handlePrefsMode(ctx, scope);
|
|
442
|
-
return;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
if (trimmed === "prefs" || trimmed.startsWith("prefs ")) {
|
|
446
|
-
await handlePrefs(trimmed.replace(/^prefs\s*/, "").trim(), ctx);
|
|
447
|
-
return;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
if (trimmed === "init") {
|
|
451
|
-
const { detectProjectState } = await import("./detection.js");
|
|
452
|
-
const { showProjectInit, handleReinit } = await import("./init-wizard.js");
|
|
453
|
-
const basePath = projectRoot();
|
|
454
|
-
const detection = detectProjectState(basePath);
|
|
455
|
-
if (detection.state === "v2-gsd" || detection.state === "v2-gsd-empty") {
|
|
456
|
-
await handleReinit(ctx, detection);
|
|
457
|
-
} else {
|
|
458
|
-
await showProjectInit(ctx, pi, basePath, detection);
|
|
459
|
-
}
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
if (trimmed === "keys" || trimmed.startsWith("keys ")) {
|
|
464
|
-
const { handleKeys } = await import("./key-manager.js");
|
|
465
|
-
const keysArgs = trimmed.replace(/^keys\s*/, "").trim();
|
|
466
|
-
await handleKeys(keysArgs, ctx);
|
|
467
|
-
return;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
if (trimmed === "setup" || trimmed.startsWith("setup ")) {
|
|
471
|
-
const setupArgs = trimmed.replace(/^setup\s*/, "").trim();
|
|
472
|
-
await handleSetup(setupArgs, ctx);
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
if (trimmed === "doctor" || trimmed.startsWith("doctor ")) {
|
|
477
|
-
await handleDoctor(trimmed.replace(/^doctor\s*/, "").trim(), ctx, pi);
|
|
478
|
-
return;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
if (trimmed === "logs" || trimmed.startsWith("logs ")) {
|
|
482
|
-
await handleLogs(trimmed.replace(/^logs\s*/, "").trim(), ctx);
|
|
483
|
-
return;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
if (trimmed === "forensics" || trimmed.startsWith("forensics ")) {
|
|
487
|
-
const { handleForensics } = await import("./forensics.js");
|
|
488
|
-
await handleForensics(trimmed.replace(/^forensics\s*/, "").trim(), ctx, pi);
|
|
489
|
-
return;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
if (trimmed === "next" || trimmed.startsWith("next ")) {
|
|
493
|
-
if (trimmed.includes("--dry-run")) {
|
|
494
|
-
await handleDryRun(ctx, projectRoot());
|
|
495
|
-
return;
|
|
496
|
-
}
|
|
497
|
-
const verboseMode = trimmed.includes("--verbose");
|
|
498
|
-
const debugMode = trimmed.includes("--debug");
|
|
499
|
-
if (debugMode) enableDebug(projectRoot());
|
|
500
|
-
await startAuto(ctx, pi, projectRoot(), verboseMode, { step: true });
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
if (trimmed === "auto" || trimmed.startsWith("auto ")) {
|
|
505
|
-
const verboseMode = trimmed.includes("--verbose");
|
|
506
|
-
const debugMode = trimmed.includes("--debug");
|
|
507
|
-
if (debugMode) enableDebug(projectRoot());
|
|
508
|
-
await startAuto(ctx, pi, projectRoot(), verboseMode);
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
if (trimmed === "stop") {
|
|
513
|
-
if (!isAutoActive() && !isAutoPaused()) {
|
|
514
|
-
// Not running in this process — check for a remote auto-mode session
|
|
515
|
-
const result = stopAutoRemote(projectRoot());
|
|
516
|
-
if (result.found) {
|
|
517
|
-
ctx.ui.notify(`Sent stop signal to auto-mode session (PID ${result.pid}). It will shut down gracefully.`, "info");
|
|
518
|
-
} else if (result.error) {
|
|
519
|
-
ctx.ui.notify(`Failed to stop remote auto-mode: ${result.error}`, "error");
|
|
520
|
-
} else {
|
|
521
|
-
ctx.ui.notify("Auto-mode is not running.", "info");
|
|
522
|
-
}
|
|
523
|
-
return;
|
|
524
|
-
}
|
|
525
|
-
await stopAuto(ctx, pi, "User requested stop");
|
|
526
|
-
return;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
if (trimmed === "pause") {
|
|
530
|
-
if (!isAutoActive()) {
|
|
531
|
-
if (isAutoPaused()) {
|
|
532
|
-
ctx.ui.notify("Auto-mode is already paused. /gsd auto to resume.", "info");
|
|
533
|
-
} else {
|
|
534
|
-
ctx.ui.notify("Auto-mode is not running.", "info");
|
|
535
|
-
}
|
|
536
|
-
return;
|
|
537
|
-
}
|
|
538
|
-
await pauseAuto(ctx, pi);
|
|
539
|
-
return;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
if (trimmed === "history" || trimmed.startsWith("history ")) {
|
|
543
|
-
await handleHistory(trimmed.replace(/^history\s*/, "").trim(), ctx, projectRoot());
|
|
544
|
-
return;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
if (trimmed === "undo" || trimmed.startsWith("undo ")) {
|
|
548
|
-
await handleUndo(trimmed.replace(/^undo\s*/, "").trim(), ctx, pi, projectRoot());
|
|
549
|
-
return;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
if (trimmed.startsWith("skip ")) {
|
|
553
|
-
await handleSkip(trimmed.replace(/^skip\s*/, "").trim(), ctx, projectRoot());
|
|
554
|
-
return;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
if (trimmed === "export" || trimmed.startsWith("export ")) {
|
|
558
|
-
await handleExport(trimmed.replace(/^export\s*/, "").trim(), ctx, projectRoot());
|
|
559
|
-
return;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
// ─── Parallel Orchestration ────────────────────────────────────────
|
|
563
|
-
if (trimmed.startsWith("parallel")) {
|
|
564
|
-
const parallelArgs = trimmed.slice("parallel".length).trim();
|
|
565
|
-
const [subCmd = "", ...restParts] = parallelArgs.split(/\s+/);
|
|
566
|
-
const rest = restParts.join(" ");
|
|
567
|
-
|
|
568
|
-
if (subCmd === "start" || subCmd === "") {
|
|
569
|
-
const loaded = loadEffectiveGSDPreferences();
|
|
570
|
-
const config = resolveParallelConfig(loaded?.preferences);
|
|
571
|
-
if (!config.enabled) {
|
|
572
|
-
pi.sendMessage({
|
|
573
|
-
customType: "gsd-parallel",
|
|
574
|
-
content: "Parallel mode is not enabled. Set `parallel.enabled: true` in your preferences.",
|
|
575
|
-
display: false,
|
|
576
|
-
});
|
|
577
|
-
return;
|
|
578
|
-
}
|
|
579
|
-
const candidates = await prepareParallelStart(projectRoot(), loaded?.preferences);
|
|
580
|
-
const report = formatEligibilityReport(candidates);
|
|
581
|
-
if (candidates.eligible.length === 0) {
|
|
582
|
-
pi.sendMessage({ customType: "gsd-parallel", content: report + "\n\nNo milestones are eligible for parallel execution.", display: false });
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
585
|
-
const result = await startParallel(
|
|
586
|
-
projectRoot(),
|
|
587
|
-
candidates.eligible.map(e => e.milestoneId),
|
|
588
|
-
loaded?.preferences,
|
|
589
|
-
);
|
|
590
|
-
const lines = [`Parallel orchestration started.`, `Workers: ${result.started.join(", ")}`];
|
|
591
|
-
if (result.errors.length > 0) {
|
|
592
|
-
lines.push(`Errors: ${result.errors.map(e => `${e.mid}: ${e.error}`).join("; ")}`);
|
|
593
|
-
}
|
|
594
|
-
pi.sendMessage({ customType: "gsd-parallel", content: report + "\n\n" + lines.join("\n"), display: false });
|
|
595
|
-
return;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
if (subCmd === "status") {
|
|
599
|
-
if (!isParallelActive()) {
|
|
600
|
-
pi.sendMessage({ customType: "gsd-parallel", content: "No parallel orchestration is currently active.", display: false });
|
|
601
|
-
return;
|
|
602
|
-
}
|
|
603
|
-
const workers = getWorkerStatuses();
|
|
604
|
-
const lines = ["# Parallel Workers\n"];
|
|
605
|
-
for (const w of workers) {
|
|
606
|
-
lines.push(`- **${w.milestoneId}** (${w.title}) — ${w.state} — ${w.completedUnits} units — $${w.cost.toFixed(2)}`);
|
|
607
|
-
}
|
|
608
|
-
const orchState = getOrchestratorState();
|
|
609
|
-
if (orchState) {
|
|
610
|
-
lines.push(`\nTotal cost: $${orchState.totalCost.toFixed(2)}`);
|
|
611
|
-
}
|
|
612
|
-
pi.sendMessage({ customType: "gsd-parallel", content: lines.join("\n"), display: false });
|
|
613
|
-
return;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
if (subCmd === "stop") {
|
|
617
|
-
const mid = rest.trim() || undefined;
|
|
618
|
-
await stopParallel(projectRoot(), mid);
|
|
619
|
-
pi.sendMessage({ customType: "gsd-parallel", content: mid ? `Stopped worker for ${mid}.` : "All parallel workers stopped.", display: false });
|
|
620
|
-
return;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
if (subCmd === "pause") {
|
|
624
|
-
const mid = rest.trim() || undefined;
|
|
625
|
-
pauseWorker(projectRoot(), mid);
|
|
626
|
-
pi.sendMessage({ customType: "gsd-parallel", content: mid ? `Paused worker for ${mid}.` : "All parallel workers paused.", display: false });
|
|
627
|
-
return;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
if (subCmd === "resume") {
|
|
631
|
-
const mid = rest.trim() || undefined;
|
|
632
|
-
resumeWorker(projectRoot(), mid);
|
|
633
|
-
pi.sendMessage({ customType: "gsd-parallel", content: mid ? `Resumed worker for ${mid}.` : "All parallel workers resumed.", display: false });
|
|
634
|
-
return;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
if (subCmd === "merge") {
|
|
638
|
-
const mid = rest.trim() || undefined;
|
|
639
|
-
if (mid) {
|
|
640
|
-
// Merge a specific milestone
|
|
641
|
-
const result = await mergeCompletedMilestone(projectRoot(), mid);
|
|
642
|
-
pi.sendMessage({ customType: "gsd-parallel", content: formatMergeResults([result]), display: false });
|
|
643
|
-
return;
|
|
644
|
-
}
|
|
645
|
-
// Merge all completed milestones
|
|
646
|
-
const workers = getWorkerStatuses();
|
|
647
|
-
if (workers.length === 0) {
|
|
648
|
-
pi.sendMessage({ customType: "gsd-parallel", content: "No parallel workers to merge.", display: false });
|
|
649
|
-
return;
|
|
650
|
-
}
|
|
651
|
-
const results = await mergeAllCompleted(projectRoot(), workers);
|
|
652
|
-
pi.sendMessage({ customType: "gsd-parallel", content: formatMergeResults(results), display: false });
|
|
653
|
-
return;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
pi.sendMessage({
|
|
657
|
-
customType: "gsd-parallel",
|
|
658
|
-
content: `Unknown parallel subcommand "${subCmd}". Usage: /gsd parallel [start|status|stop|pause|resume|merge]`,
|
|
659
|
-
display: false,
|
|
660
|
-
});
|
|
661
|
-
return;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
if (trimmed === "cleanup") {
|
|
665
|
-
await handleCleanupBranches(ctx, projectRoot());
|
|
666
|
-
await handleCleanupSnapshots(ctx, projectRoot());
|
|
667
|
-
return;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
if (trimmed === "cleanup branches") {
|
|
671
|
-
await handleCleanupBranches(ctx, projectRoot());
|
|
672
|
-
return;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
if (trimmed === "cleanup snapshots") {
|
|
676
|
-
await handleCleanupSnapshots(ctx, projectRoot());
|
|
677
|
-
return;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
if (trimmed === "queue") {
|
|
681
|
-
await showQueue(ctx, pi, projectRoot());
|
|
682
|
-
return;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
if (trimmed === "discuss") {
|
|
686
|
-
await showDiscuss(ctx, pi, projectRoot());
|
|
687
|
-
return;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
if (trimmed === "park" || trimmed.startsWith("park ")) {
|
|
691
|
-
const basePath = projectRoot();
|
|
692
|
-
const arg = trimmed.replace(/^park\s*/, "").trim();
|
|
693
|
-
const { parkMilestone, isParked } = await import("./milestone-actions.js");
|
|
694
|
-
const { deriveState } = await import("./state.js");
|
|
695
|
-
|
|
696
|
-
let targetId = arg;
|
|
697
|
-
if (!targetId) {
|
|
698
|
-
// Park the current active milestone
|
|
699
|
-
const state = await deriveState(basePath);
|
|
700
|
-
if (!state.activeMilestone) {
|
|
701
|
-
ctx.ui.notify("No active milestone to park.", "warning");
|
|
702
|
-
return;
|
|
703
|
-
}
|
|
704
|
-
targetId = state.activeMilestone.id;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
if (isParked(basePath, targetId)) {
|
|
708
|
-
ctx.ui.notify(`${targetId} is already parked. Use /gsd unpark ${targetId} to reactivate.`, "info");
|
|
709
|
-
return;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
// Extract reason from remaining args (e.g., /gsd park M002 "reason here")
|
|
713
|
-
const reasonParts = arg.replace(targetId, "").trim().replace(/^["']|["']$/g, "");
|
|
714
|
-
const reason = reasonParts || "Parked via /gsd park";
|
|
715
|
-
|
|
716
|
-
const success = parkMilestone(basePath, targetId, reason);
|
|
717
|
-
if (success) {
|
|
718
|
-
ctx.ui.notify(`Parked ${targetId}. Run /gsd unpark ${targetId} to reactivate.`, "info");
|
|
719
|
-
} else {
|
|
720
|
-
ctx.ui.notify(`Could not park ${targetId} — milestone not found.`, "warning");
|
|
721
|
-
}
|
|
722
|
-
return;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
if (trimmed === "unpark" || trimmed.startsWith("unpark ")) {
|
|
726
|
-
const basePath = projectRoot();
|
|
727
|
-
const arg = trimmed.replace(/^unpark\s*/, "").trim();
|
|
728
|
-
const { unparkMilestone } = await import("./milestone-actions.js");
|
|
729
|
-
const { deriveState } = await import("./state.js");
|
|
730
|
-
|
|
731
|
-
let targetId = arg;
|
|
732
|
-
if (!targetId) {
|
|
733
|
-
// List parked milestones and let user pick
|
|
734
|
-
const state = await deriveState(basePath);
|
|
735
|
-
const parkedEntries = state.registry.filter(e => e.status === "parked");
|
|
736
|
-
if (parkedEntries.length === 0) {
|
|
737
|
-
ctx.ui.notify("No parked milestones.", "info");
|
|
738
|
-
return;
|
|
739
|
-
}
|
|
740
|
-
if (parkedEntries.length === 1) {
|
|
741
|
-
targetId = parkedEntries[0].id;
|
|
742
|
-
} else {
|
|
743
|
-
ctx.ui.notify(`Parked milestones: ${parkedEntries.map(e => e.id).join(", ")}. Specify which to unpark: /gsd unpark <id>`, "info");
|
|
744
|
-
return;
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
const success = unparkMilestone(basePath, targetId);
|
|
749
|
-
if (success) {
|
|
750
|
-
ctx.ui.notify(`Unparked ${targetId}. It will resume its normal position in the queue.`, "info");
|
|
751
|
-
} else {
|
|
752
|
-
ctx.ui.notify(`Could not unpark ${targetId} — milestone not found or not parked.`, "warning");
|
|
753
|
-
}
|
|
754
|
-
return;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
if (trimmed === "new-milestone") {
|
|
758
|
-
const basePath = projectRoot();
|
|
759
|
-
const headlessContextPath = join(gsdRoot(basePath), "runtime", "headless-context.md");
|
|
760
|
-
if (existsSync(headlessContextPath)) {
|
|
761
|
-
const seedContext = readFileSync(headlessContextPath, "utf-8");
|
|
762
|
-
try { unlinkSync(headlessContextPath); } catch { /* non-fatal */ }
|
|
763
|
-
await showHeadlessMilestoneCreation(ctx, pi, basePath, seedContext);
|
|
764
|
-
} else {
|
|
765
|
-
// No headless context — fall back to interactive smart entry
|
|
766
|
-
const { showSmartEntry } = await import("./guided-flow.js");
|
|
767
|
-
await showSmartEntry(ctx, pi, basePath);
|
|
768
|
-
}
|
|
769
|
-
return;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
if (trimmed.startsWith("capture ") || trimmed === "capture") {
|
|
773
|
-
await handleCapture(trimmed.replace(/^capture\s*/, "").trim(), ctx);
|
|
774
|
-
return;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
if (trimmed === "triage") {
|
|
778
|
-
await handleTriage(ctx, pi, process.cwd());
|
|
779
|
-
return;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
if (trimmed === "quick" || trimmed.startsWith("quick ")) {
|
|
783
|
-
await handleQuick(trimmed.replace(/^quick\s*/, "").trim(), ctx, pi);
|
|
784
|
-
return;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
if (trimmed === "config") {
|
|
788
|
-
await handleConfig(ctx);
|
|
789
|
-
return;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
if (trimmed === "hooks") {
|
|
793
|
-
const { formatHookStatus } = await import("./post-unit-hooks.js");
|
|
794
|
-
ctx.ui.notify(formatHookStatus(), "info");
|
|
795
|
-
return;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
// ─── Skill Health ────────────────────────────────────────────
|
|
799
|
-
if (trimmed === "skill-health" || trimmed.startsWith("skill-health ")) {
|
|
800
|
-
await handleSkillHealth(trimmed.replace(/^skill-health\s*/, "").trim(), ctx);
|
|
801
|
-
return;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
if (trimmed.startsWith("run-hook ")) {
|
|
805
|
-
await handleRunHook(trimmed.replace(/^run-hook\s*/, "").trim(), ctx, pi);
|
|
806
|
-
return;
|
|
807
|
-
}
|
|
808
|
-
if (trimmed === "run-hook") {
|
|
809
|
-
ctx.ui.notify(`Usage: /gsd run-hook <hook-name> <unit-type> <unit-id>
|
|
810
|
-
|
|
811
|
-
Unit types:
|
|
812
|
-
execute-task - Task execution (unit-id: M001/S01/T01)
|
|
813
|
-
plan-slice - Slice planning (unit-id: M001/S01)
|
|
814
|
-
research-milestone - Milestone research (unit-id: M001)
|
|
815
|
-
complete-slice - Slice completion (unit-id: M001/S01)
|
|
816
|
-
complete-milestone - Milestone completion (unit-id: M001)
|
|
817
|
-
|
|
818
|
-
Examples:
|
|
819
|
-
/gsd run-hook code-review execute-task M001/S01/T01
|
|
820
|
-
/gsd run-hook lint-check plan-slice M001/S01`, "warning");
|
|
821
|
-
return;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
if (trimmed.startsWith("steer ")) {
|
|
825
|
-
await handleSteer(trimmed.replace(/^steer\s+/, "").trim(), ctx, pi);
|
|
826
|
-
return;
|
|
827
|
-
}
|
|
828
|
-
if (trimmed === "steer") {
|
|
829
|
-
ctx.ui.notify("Usage: /gsd steer <description of change>. Example: /gsd steer Use Postgres instead of SQLite", "warning");
|
|
830
|
-
return;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
if (trimmed.startsWith("knowledge ")) {
|
|
834
|
-
await handleKnowledge(trimmed.replace(/^knowledge\s+/, "").trim(), ctx);
|
|
835
|
-
return;
|
|
836
|
-
}
|
|
837
|
-
if (trimmed === "knowledge") {
|
|
838
|
-
ctx.ui.notify("Usage: /gsd knowledge <rule|pattern|lesson> <description>. Example: /gsd knowledge rule Use real DB for integration tests", "warning");
|
|
839
|
-
return;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
if (trimmed === "migrate" || trimmed.startsWith("migrate ")) {
|
|
843
|
-
const { handleMigrate } = await import("./migrate/command.js");
|
|
844
|
-
await handleMigrate(trimmed.replace(/^migrate\s*/, "").trim(), ctx, pi);
|
|
845
|
-
return;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
if (trimmed === "remote" || trimmed.startsWith("remote ")) {
|
|
849
|
-
await handleRemote(trimmed.replace(/^remote\s*/, "").trim(), ctx, pi);
|
|
850
|
-
return;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
if (trimmed === "dispatch" || trimmed.startsWith("dispatch ")) {
|
|
854
|
-
const phase = trimmed.replace(/^dispatch\s*/, "").trim();
|
|
855
|
-
if (!phase) {
|
|
856
|
-
ctx.ui.notify("Usage: /gsd dispatch <phase> (research|plan|execute|complete|reassess|uat|replan)", "warning");
|
|
857
|
-
return;
|
|
858
|
-
}
|
|
859
|
-
await dispatchDirectPhase(ctx, pi, phase, projectRoot());
|
|
860
|
-
return;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
if (trimmed === "inspect") {
|
|
864
|
-
await handleInspect(ctx);
|
|
865
|
-
return;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
if (trimmed === "update") {
|
|
869
|
-
await handleUpdate(ctx);
|
|
870
|
-
return;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
// ─── Workflow Templates ────────────────────────────────────────
|
|
874
|
-
if (trimmed === "start" || trimmed.startsWith("start ")) {
|
|
875
|
-
await handleStart(trimmed.replace(/^start\s*/, "").trim(), ctx, pi);
|
|
876
|
-
return;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
if (trimmed === "templates" || trimmed.startsWith("templates ")) {
|
|
880
|
-
await handleTemplates(trimmed.replace(/^templates\s*/, "").trim(), ctx);
|
|
881
|
-
return;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
if (trimmed === "") {
|
|
885
|
-
// Bare /gsd defaults to step mode
|
|
886
|
-
await startAuto(ctx, pi, projectRoot(), false, { step: true });
|
|
887
|
-
return;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
if (trimmed === "extensions" || trimmed.startsWith("extensions ")) {
|
|
891
|
-
const { handleExtensions } = await import("./commands-extensions.js");
|
|
892
|
-
await handleExtensions(trimmed.replace(/^extensions\s*/, "").trim(), ctx);
|
|
893
|
-
return;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
ctx.ui.notify(
|
|
897
|
-
`Unknown: /gsd ${trimmed}. Run /gsd help for available commands.`,
|
|
898
|
-
"warning",
|
|
899
|
-
);
|
|
900
|
-
},
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
function showHelp(ctx: ExtensionCommandContext): void {
|
|
905
|
-
const lines = [
|
|
906
|
-
"GSD — Get Shit Done\n",
|
|
907
|
-
"WORKFLOW",
|
|
908
|
-
" /gsd start <tpl> Start a workflow template (bugfix, spike, feature, hotfix, etc.)",
|
|
909
|
-
" /gsd templates List available workflow templates [info <name>]",
|
|
910
|
-
" /gsd Run next unit in step mode (same as /gsd next)",
|
|
911
|
-
" /gsd next Execute next task, then pause [--dry-run] [--verbose]",
|
|
912
|
-
" /gsd auto Run all queued units continuously [--verbose]",
|
|
913
|
-
" /gsd stop Stop auto-mode gracefully",
|
|
914
|
-
" /gsd pause Pause auto-mode (preserves state, /gsd auto to resume)",
|
|
915
|
-
" /gsd discuss Start guided milestone/slice discussion",
|
|
916
|
-
" /gsd new-milestone Create milestone from headless context (used by gsd headless)",
|
|
917
|
-
"",
|
|
918
|
-
"VISIBILITY",
|
|
919
|
-
" /gsd status Show progress dashboard (Ctrl+Alt+G)",
|
|
920
|
-
" /gsd visualize Interactive 10-tab TUI (progress, timeline, deps, metrics, health, agent, changes, knowledge, captures, export)",
|
|
921
|
-
" /gsd queue Show queued/dispatched units and execution order",
|
|
922
|
-
" /gsd history View execution history [--cost] [--phase] [--model] [N]",
|
|
923
|
-
"",
|
|
924
|
-
"COURSE CORRECTION",
|
|
925
|
-
" /gsd steer <desc> Apply user override to active work",
|
|
926
|
-
" /gsd capture <text> Quick-capture a thought to CAPTURES.md",
|
|
927
|
-
" /gsd triage Classify and route pending captures",
|
|
928
|
-
" /gsd skip <unit> Prevent a unit from auto-mode dispatch",
|
|
929
|
-
" /gsd undo Revert last completed unit [--force]",
|
|
930
|
-
" /gsd park [id] Park a milestone — skip without deleting [reason]",
|
|
931
|
-
" /gsd unpark [id] Reactivate a parked milestone",
|
|
932
|
-
"",
|
|
933
|
-
"PROJECT KNOWLEDGE",
|
|
934
|
-
" /gsd knowledge <type> <text> Add rule, pattern, or lesson to KNOWLEDGE.md",
|
|
935
|
-
"",
|
|
936
|
-
"SETUP & CONFIGURATION",
|
|
937
|
-
" /gsd init Project init wizard — detect, configure, bootstrap .gsd/",
|
|
938
|
-
" /gsd setup Global setup status [llm|search|remote|keys|prefs]",
|
|
939
|
-
" /gsd mode Set workflow mode (solo/team) [global|project]",
|
|
940
|
-
" /gsd prefs Manage preferences [global|project|status|wizard|setup|import-claude]",
|
|
941
|
-
" /gsd config Set API keys for external tools",
|
|
942
|
-
" /gsd keys API key manager [list|add|remove|test|rotate|doctor]",
|
|
943
|
-
" /gsd hooks Show post-unit hook configuration",
|
|
944
|
-
" /gsd extensions Manage extensions [list|enable|disable|info]",
|
|
945
|
-
"",
|
|
946
|
-
"MAINTENANCE",
|
|
947
|
-
" /gsd doctor Diagnose and repair .gsd/ state [audit|fix|heal] [scope]",
|
|
948
|
-
" /gsd export Export milestone/slice results [--json|--markdown|--html] [--all]",
|
|
949
|
-
" /gsd cleanup Remove merged branches or snapshots [branches|snapshots]",
|
|
950
|
-
" /gsd migrate Migrate .planning/ (v1) to .gsd/ (v2) format",
|
|
951
|
-
" /gsd remote Control remote auto-mode [slack|discord|status|disconnect]",
|
|
952
|
-
" /gsd inspect Show SQLite DB diagnostics (schema, row counts, recent entries)",
|
|
953
|
-
" /gsd update Update GSD to the latest version via npm",
|
|
954
|
-
];
|
|
955
|
-
ctx.ui.notify(lines.join("\n"), "info");
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
async function handleStatus(ctx: ExtensionCommandContext): Promise<void> {
|
|
959
|
-
const basePath = projectRoot();
|
|
960
|
-
const state = await deriveState(basePath);
|
|
961
|
-
|
|
962
|
-
if (state.registry.length === 0) {
|
|
963
|
-
ctx.ui.notify("No GSD milestones found. Run /gsd to start.", "info");
|
|
964
|
-
return;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
const result = await ctx.ui.custom<void>(
|
|
968
|
-
(tui, theme, _kb, done) => {
|
|
969
|
-
return new GSDDashboardOverlay(tui, theme, () => done());
|
|
970
|
-
},
|
|
971
|
-
{
|
|
972
|
-
overlay: true,
|
|
973
|
-
overlayOptions: {
|
|
974
|
-
width: "70%",
|
|
975
|
-
minWidth: 60,
|
|
976
|
-
maxHeight: "90%",
|
|
977
|
-
anchor: "center",
|
|
978
|
-
},
|
|
979
|
-
},
|
|
980
|
-
);
|
|
981
|
-
|
|
982
|
-
// Fallback for RPC mode where ctx.ui.custom() returns undefined.
|
|
983
|
-
// Produce a text-based status summary so the turn is not empty.
|
|
984
|
-
if (result === undefined) {
|
|
985
|
-
ctx.ui.notify(formatTextStatus(state), "info");
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
export async function fireStatusViaCommand(
|
|
990
|
-
ctx: import("@gsd/pi-coding-agent").ExtensionContext,
|
|
991
|
-
): Promise<void> {
|
|
992
|
-
await handleStatus(ctx as ExtensionCommandContext);
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
async function handleVisualize(ctx: ExtensionCommandContext): Promise<void> {
|
|
996
|
-
if (!ctx.hasUI) {
|
|
997
|
-
ctx.ui.notify("Visualizer requires an interactive terminal.", "warning");
|
|
998
|
-
return;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
const result = await ctx.ui.custom<void>(
|
|
1002
|
-
(tui, theme, _kb, done) => {
|
|
1003
|
-
return new GSDVisualizerOverlay(tui, theme, () => done());
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
overlay: true,
|
|
1007
|
-
overlayOptions: {
|
|
1008
|
-
width: "80%",
|
|
1009
|
-
minWidth: 80,
|
|
1010
|
-
maxHeight: "90%",
|
|
1011
|
-
anchor: "center",
|
|
1012
|
-
},
|
|
1013
|
-
},
|
|
1014
|
-
);
|
|
1015
|
-
|
|
1016
|
-
// Fallback for RPC mode where ctx.ui.custom() returns undefined.
|
|
1017
|
-
if (result === undefined) {
|
|
1018
|
-
ctx.ui.notify("Visualizer requires an interactive terminal. Use /gsd status for a text-based overview.", "warning");
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
async function handleSetup(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
1023
|
-
const { detectProjectState, hasGlobalSetup } = await import("./detection.js");
|
|
1024
|
-
|
|
1025
|
-
// Show current global setup status
|
|
1026
|
-
const globalConfigured = hasGlobalSetup();
|
|
1027
|
-
const detection = detectProjectState(projectRoot());
|
|
1028
|
-
|
|
1029
|
-
const statusLines = ["GSD Setup Status\n"];
|
|
1030
|
-
statusLines.push(` Global preferences: ${globalConfigured ? "configured" : "not set"}`);
|
|
1031
|
-
statusLines.push(` Project state: ${detection.state}`);
|
|
1032
|
-
if (detection.projectSignals.primaryLanguage) {
|
|
1033
|
-
statusLines.push(` Detected: ${detection.projectSignals.primaryLanguage}`);
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
if (args === "llm" || args === "auth") {
|
|
1037
|
-
ctx.ui.notify("Use /login to configure LLM authentication.", "info");
|
|
1038
|
-
return;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
if (args === "search") {
|
|
1042
|
-
ctx.ui.notify("Use /search-provider to configure web search.", "info");
|
|
1043
|
-
return;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
if (args === "remote") {
|
|
1047
|
-
ctx.ui.notify("Use /gsd remote to configure remote questions.", "info");
|
|
1048
|
-
return;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
if (args === "keys") {
|
|
1052
|
-
const { handleKeys } = await import("./key-manager.js");
|
|
1053
|
-
await handleKeys("", ctx);
|
|
1054
|
-
return;
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
if (args === "prefs") {
|
|
1058
|
-
await ensurePreferencesFile(getGlobalGSDPreferencesPath(), ctx, "global");
|
|
1059
|
-
await handlePrefsWizard(ctx, "global");
|
|
1060
|
-
return;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
// Full setup summary
|
|
1064
|
-
ctx.ui.notify(statusLines.join("\n"), "info");
|
|
1065
|
-
ctx.ui.notify(
|
|
1066
|
-
"Available setup commands:\n" +
|
|
1067
|
-
" /gsd setup llm — LLM authentication\n" +
|
|
1068
|
-
" /gsd setup search — Web search provider\n" +
|
|
1069
|
-
" /gsd setup remote — Remote questions (Discord/Slack/Telegram)\n" +
|
|
1070
|
-
" /gsd setup keys — Tool API keys\n" +
|
|
1071
|
-
" /gsd setup prefs — Global preferences wizard",
|
|
1072
|
-
"info",
|
|
1073
|
-
);
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
// ─── Text-based status for RPC mode ────────────────────────────────────────
|
|
1077
|
-
|
|
1078
|
-
/**
|
|
1079
|
-
* Generate a text-based status summary for non-TUI environments (RPC mode).
|
|
1080
|
-
* Used as a fallback when the interactive dashboard overlay is unavailable.
|
|
1081
|
-
*/
|
|
1082
|
-
function formatTextStatus(state: GSDState): string {
|
|
1083
|
-
const lines: string[] = ["GSD Status\n"];
|
|
1084
|
-
|
|
1085
|
-
// Progress score — traffic light (#1221)
|
|
1086
|
-
const progressScore = computeProgressScore();
|
|
1087
|
-
lines.push(formatProgressLine(progressScore));
|
|
1088
|
-
lines.push("");
|
|
1089
|
-
|
|
1090
|
-
// Phase
|
|
1091
|
-
lines.push(`Phase: ${state.phase}`);
|
|
1092
|
-
|
|
1093
|
-
// Active milestone
|
|
1094
|
-
if (state.activeMilestone) {
|
|
1095
|
-
lines.push(`Active milestone: ${state.activeMilestone.id} — ${state.activeMilestone.title}`);
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
// Active slice / task
|
|
1099
|
-
if (state.activeSlice) {
|
|
1100
|
-
lines.push(`Active slice: ${state.activeSlice.id} — ${state.activeSlice.title}`);
|
|
1101
|
-
}
|
|
1102
|
-
if (state.activeTask) {
|
|
1103
|
-
lines.push(`Active task: ${state.activeTask.id} — ${state.activeTask.title}`);
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
// Progress
|
|
1107
|
-
if (state.progress) {
|
|
1108
|
-
const { milestones, slices, tasks } = state.progress;
|
|
1109
|
-
const parts: string[] = [];
|
|
1110
|
-
parts.push(`milestones ${milestones.done}/${milestones.total}`);
|
|
1111
|
-
if (slices) parts.push(`slices ${slices.done}/${slices.total}`);
|
|
1112
|
-
if (tasks) parts.push(`tasks ${tasks.done}/${tasks.total}`);
|
|
1113
|
-
lines.push(`Progress: ${parts.join(", ")}`);
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
// Next action
|
|
1117
|
-
if (state.nextAction) {
|
|
1118
|
-
lines.push(`Next: ${state.nextAction}`);
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
// Blockers
|
|
1122
|
-
if (state.blockers.length > 0) {
|
|
1123
|
-
lines.push(`Blockers: ${state.blockers.join("; ")}`);
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
// Milestone registry summary
|
|
1127
|
-
if (state.registry.length > 0) {
|
|
1128
|
-
lines.push("");
|
|
1129
|
-
lines.push("Milestones:");
|
|
1130
|
-
for (const m of state.registry) {
|
|
1131
|
-
const statusIcon = m.status === "complete" ? "✓" : m.status === "active" ? "▶" : m.status === "parked" ? "⏸" : "○";
|
|
1132
|
-
lines.push(` ${statusIcon} ${m.id}: ${m.title} (${m.status})`);
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
// Environment health (#1221)
|
|
1137
|
-
const envResults = runEnvironmentChecks(projectRoot());
|
|
1138
|
-
const envIssues = envResults.filter(r => r.status !== "ok");
|
|
1139
|
-
if (envIssues.length > 0) {
|
|
1140
|
-
lines.push("");
|
|
1141
|
-
lines.push("Environment:");
|
|
1142
|
-
for (const r of envIssues) {
|
|
1143
|
-
const icon = r.status === "error" ? "✗" : "⚠";
|
|
1144
|
-
lines.push(` ${icon} ${r.message}`);
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
return lines.join("\n");
|
|
1149
|
-
}
|