gsd-pi 2.76.0-dev.4100bd590 → 2.76.0-dev.479ad0e78
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/claude-cli-check.js +32 -3
- package/dist/mcp-server.d.ts +7 -0
- package/dist/mcp-server.js +35 -1
- package/dist/onboarding.js +45 -0
- package/dist/resource-loader.d.ts +1 -1
- package/dist/resource-loader.js +2 -8
- package/dist/resources/extensions/claude-code-cli/readiness.js +4 -3
- package/dist/resources/extensions/claude-code-cli/stream-adapter.js +77 -17
- package/dist/resources/extensions/gsd/auto/loop.js +9 -0
- package/dist/resources/extensions/gsd/auto/phases.js +58 -5
- package/dist/resources/extensions/gsd/auto/run-unit.js +38 -2
- package/dist/resources/extensions/gsd/auto/session.js +22 -1
- package/dist/resources/extensions/gsd/auto-dispatch.js +16 -3
- package/dist/resources/extensions/gsd/auto-model-selection.js +14 -3
- package/dist/resources/extensions/gsd/auto-post-unit.js +25 -2
- package/dist/resources/extensions/gsd/auto-prompts.js +14 -0
- package/dist/resources/extensions/gsd/auto-recovery.js +32 -1
- package/dist/resources/extensions/gsd/auto-start.js +58 -57
- package/dist/resources/extensions/gsd/auto-worktree.js +51 -53
- package/dist/resources/extensions/gsd/auto.js +70 -28
- package/dist/resources/extensions/gsd/bootstrap/agent-end-recovery.js +17 -1
- package/dist/resources/extensions/gsd/bootstrap/db-tools.js +39 -9
- package/dist/resources/extensions/gsd/bootstrap/exec-tools.js +93 -0
- package/dist/resources/extensions/gsd/bootstrap/register-extension.js +2 -0
- package/dist/resources/extensions/gsd/bootstrap/register-hooks.js +52 -6
- package/dist/resources/extensions/gsd/bootstrap/write-gate.js +34 -2
- package/dist/resources/extensions/gsd/clean-root-preflight.js +93 -0
- package/dist/resources/extensions/gsd/commands-prefs-wizard.js +968 -23
- package/dist/resources/extensions/gsd/compaction-snapshot.js +121 -0
- package/dist/resources/extensions/gsd/complexity-classifier.js +5 -3
- package/dist/resources/extensions/gsd/error-classifier.js +10 -3
- package/dist/resources/extensions/gsd/exec-history.js +120 -0
- package/dist/resources/extensions/gsd/exec-sandbox.js +258 -0
- package/dist/resources/extensions/gsd/gitignore.js +1 -0
- package/dist/resources/extensions/gsd/gsd-db.js +149 -31
- package/dist/resources/extensions/gsd/guided-flow.js +190 -1
- package/dist/resources/extensions/gsd/health-widget.js +4 -1
- package/dist/resources/extensions/gsd/init-wizard.js +15 -1
- package/dist/resources/extensions/gsd/key-manager.js +28 -0
- package/dist/resources/extensions/gsd/model-router.js +36 -3
- package/dist/resources/extensions/gsd/pre-execution-checks.js +44 -9
- package/dist/resources/extensions/gsd/preferences-types.js +9 -0
- package/dist/resources/extensions/gsd/preferences-validation.js +83 -0
- package/dist/resources/extensions/gsd/preferences.js +17 -17
- package/dist/resources/extensions/gsd/prompt-loader.js +22 -7
- package/dist/resources/extensions/gsd/prompts/discuss-headless.md +8 -0
- package/dist/resources/extensions/gsd/prompts/discuss.md +29 -2
- package/dist/resources/extensions/gsd/prompts/parallel-research-slices.md +5 -2
- package/dist/resources/extensions/gsd/safety/evidence-collector.js +96 -0
- package/dist/resources/extensions/gsd/safety/file-change-validator.js +13 -5
- package/dist/resources/extensions/gsd/safety/safety-harness.js +5 -1
- package/dist/resources/extensions/gsd/token-counter.js +22 -5
- package/dist/resources/extensions/gsd/tools/complete-milestone.js +16 -10
- package/dist/resources/extensions/gsd/tools/exec-search-tool.js +59 -0
- package/dist/resources/extensions/gsd/tools/exec-tool.js +126 -0
- package/dist/resources/extensions/gsd/tools/resume-tool.js +23 -0
- package/dist/resources/extensions/gsd/uok/plan-v2.js +20 -3
- package/dist/resources/extensions/gsd/workflow-mcp.js +3 -0
- package/dist/resources/extensions/gsd/worktree-resolver.js +50 -10
- package/dist/resources/skills/verify-before-complete/SKILL.md +2 -1
- package/dist/resources/skills/write-docs/SKILL.md +2 -1
- package/dist/tsconfig.extensions.tsbuildinfo +1 -1
- package/dist/web/standalone/.next/BUILD_ID +1 -1
- package/dist/web/standalone/.next/app-path-routes-manifest.json +17 -17
- package/dist/web/standalone/.next/build-manifest.json +2 -2
- package/dist/web/standalone/.next/prerender-manifest.json +3 -3
- package/dist/web/standalone/.next/required-server-files.json +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.html +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.html +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.html +1 -1
- package/dist/web/standalone/.next/server/app/index.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app-paths-manifest.json +17 -17
- package/dist/web/standalone/.next/server/chunks/6897.js +2 -2
- package/dist/web/standalone/.next/server/middleware-build-manifest.js +1 -1
- package/dist/web/standalone/.next/server/middleware-manifest.json +5 -5
- package/dist/web/standalone/.next/server/pages/404.html +1 -1
- package/dist/web/standalone/.next/server/pages/500.html +1 -1
- package/dist/web/standalone/.next/server/server-reference-manifest.json +1 -1
- package/dist/web/standalone/server.js +1 -1
- package/dist/welcome-screen.js +6 -1
- package/dist/wizard.js +2 -0
- package/package.json +1 -1
- package/packages/mcp-server/dist/remote-questions.d.ts +45 -0
- package/packages/mcp-server/dist/remote-questions.d.ts.map +1 -0
- package/packages/mcp-server/dist/remote-questions.js +732 -0
- package/packages/mcp-server/dist/remote-questions.js.map +1 -0
- package/packages/mcp-server/dist/server.d.ts +7 -0
- package/packages/mcp-server/dist/server.d.ts.map +1 -1
- package/packages/mcp-server/dist/server.js +70 -8
- package/packages/mcp-server/dist/server.js.map +1 -1
- package/packages/mcp-server/dist/session-manager.d.ts +14 -0
- package/packages/mcp-server/dist/session-manager.d.ts.map +1 -1
- package/packages/mcp-server/dist/session-manager.js +49 -1
- package/packages/mcp-server/dist/session-manager.js.map +1 -1
- package/packages/mcp-server/dist/workflow-tools.d.ts.map +1 -1
- package/packages/mcp-server/dist/workflow-tools.js +64 -25
- package/packages/mcp-server/dist/workflow-tools.js.map +1 -1
- package/packages/mcp-server/package.json +2 -1
- package/packages/mcp-server/src/mcp-server.test.ts +67 -0
- package/packages/mcp-server/src/remote-questions.test.ts +294 -0
- package/packages/mcp-server/src/remote-questions.ts +916 -0
- package/packages/mcp-server/src/server.ts +89 -14
- package/packages/mcp-server/src/session-manager.ts +43 -1
- package/packages/mcp-server/src/workflow-tools.test.ts +146 -1
- package/packages/mcp-server/src/workflow-tools.ts +84 -43
- package/packages/mcp-server/tsconfig.test.json +19 -0
- package/packages/mcp-server/tsconfig.tsbuildinfo +1 -1
- package/packages/pi-ai/dist/models/custom.d.ts +38 -0
- package/packages/pi-ai/dist/models/custom.d.ts.map +1 -1
- package/packages/pi-ai/dist/models/custom.js +41 -0
- package/packages/pi-ai/dist/models/custom.js.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic-auth.test.js +1 -1
- package/packages/pi-ai/dist/providers/anthropic-auth.test.js.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic-shared.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic-shared.js +27 -4
- package/packages/pi-ai/dist/providers/anthropic-shared.js.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic.js +8 -3
- package/packages/pi-ai/dist/providers/anthropic.js.map +1 -1
- package/packages/pi-ai/dist/providers/minimax-tool-name.test.d.ts +2 -0
- package/packages/pi-ai/dist/providers/minimax-tool-name.test.d.ts.map +1 -0
- package/packages/pi-ai/dist/providers/minimax-tool-name.test.js +80 -0
- package/packages/pi-ai/dist/providers/minimax-tool-name.test.js.map +1 -0
- package/packages/pi-ai/dist/providers/openai-completions.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/openai-completions.js +60 -15
- package/packages/pi-ai/dist/providers/openai-completions.js.map +1 -1
- package/packages/pi-ai/dist/providers/simple-options.d.ts +10 -0
- package/packages/pi-ai/dist/providers/simple-options.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/simple-options.js +16 -1
- package/packages/pi-ai/dist/providers/simple-options.js.map +1 -1
- package/packages/pi-ai/dist/providers/think-tag-parser.d.ts +17 -0
- package/packages/pi-ai/dist/providers/think-tag-parser.d.ts.map +1 -0
- package/packages/pi-ai/dist/providers/think-tag-parser.js +75 -0
- package/packages/pi-ai/dist/providers/think-tag-parser.js.map +1 -0
- package/packages/pi-ai/dist/providers/think-tag-parser.test.d.ts +2 -0
- package/packages/pi-ai/dist/providers/think-tag-parser.test.d.ts.map +1 -0
- package/packages/pi-ai/dist/providers/think-tag-parser.test.js +41 -0
- package/packages/pi-ai/dist/providers/think-tag-parser.test.js.map +1 -0
- package/packages/pi-ai/src/models/custom.ts +42 -0
- package/packages/pi-ai/src/providers/anthropic-auth.test.ts +1 -1
- package/packages/pi-ai/src/providers/anthropic-shared.ts +26 -5
- package/packages/pi-ai/src/providers/anthropic.ts +9 -3
- package/packages/pi-ai/src/providers/minimax-tool-name.test.ts +98 -0
- package/packages/pi-ai/src/providers/openai-completions.ts +57 -16
- package/packages/pi-ai/src/providers/simple-options.ts +17 -1
- package/packages/pi-ai/src/providers/think-tag-parser.test.ts +44 -0
- package/packages/pi-ai/src/providers/think-tag-parser.ts +94 -0
- package/packages/pi-ai/tsconfig.tsbuildinfo +1 -1
- package/packages/pi-coding-agent/dist/core/agent-session-abort-order.test.js +3 -2
- package/packages/pi-coding-agent/dist/core/agent-session-abort-order.test.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/agent-session.d.ts +2 -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 +7 -0
- package/packages/pi-coding-agent/dist/core/agent-session.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/runner.d.ts +2 -0
- package/packages/pi-coding-agent/dist/core/extensions/runner.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/runner.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/types.d.ts +7 -0
- package/packages/pi-coding-agent/dist/core/extensions/types.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/types.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-discovery.d.ts +3 -1
- package/packages/pi-coding-agent/dist/core/model-discovery.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-discovery.js +92 -12
- package/packages/pi-coding-agent/dist/core/model-discovery.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-discovery.test.js +16 -1
- package/packages/pi-coding-agent/dist/core/model-discovery.test.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-registry-custom-caps.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/core/model-registry-custom-caps.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/model-registry-custom-caps.test.js +203 -0
- package/packages/pi-coding-agent/dist/core/model-registry-custom-caps.test.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/model-registry-discovery.test.js +61 -1
- package/packages/pi-coding-agent/dist/core/model-registry-discovery.test.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-registry.d.ts +5 -0
- package/packages/pi-coding-agent/dist/core/model-registry.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-registry.js +90 -10
- package/packages/pi-coding-agent/dist/core/model-registry.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/redact-secrets.d.ts +2 -0
- package/packages/pi-coding-agent/dist/core/redact-secrets.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/redact-secrets.js +49 -0
- package/packages/pi-coding-agent/dist/core/redact-secrets.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/redact-secrets.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/core/redact-secrets.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/redact-secrets.test.js +67 -0
- package/packages/pi-coding-agent/dist/core/redact-secrets.test.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/session-manager.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/session-manager.js +10 -6
- package/packages/pi-coding-agent/dist/core/session-manager.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/session-manager.test.js +45 -1
- package/packages/pi-coding-agent/dist/core/session-manager.test.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/chat-frame.d.ts +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/chat-frame.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/chat-frame.js +5 -4
- package/packages/pi-coding-agent/dist/modes/interactive/components/chat-frame.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/provider-manager.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/provider-manager.js +13 -7
- package/packages/pi-coding-agent/dist/modes/interactive/components/provider-manager.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +7 -6
- package/packages/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +29 -21
- package/packages/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
- 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 +13 -1
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/packages/pi-coding-agent/src/core/agent-session-abort-order.test.ts +3 -2
- package/packages/pi-coding-agent/src/core/agent-session.ts +11 -0
- package/packages/pi-coding-agent/src/core/extensions/runner.ts +2 -0
- package/packages/pi-coding-agent/src/core/extensions/types.ts +7 -0
- package/packages/pi-coding-agent/src/core/model-discovery.test.ts +19 -0
- package/packages/pi-coding-agent/src/core/model-discovery.ts +99 -12
- package/packages/pi-coding-agent/src/core/model-registry-custom-caps.test.ts +245 -0
- package/packages/pi-coding-agent/src/core/model-registry-discovery.test.ts +75 -0
- package/packages/pi-coding-agent/src/core/model-registry.ts +102 -10
- package/packages/pi-coding-agent/src/core/redact-secrets.test.ts +86 -0
- package/packages/pi-coding-agent/src/core/redact-secrets.ts +58 -0
- package/packages/pi-coding-agent/src/core/session-manager.test.ts +65 -1
- package/packages/pi-coding-agent/src/core/session-manager.ts +10 -6
- package/packages/pi-coding-agent/src/modes/interactive/components/chat-frame.ts +6 -6
- package/packages/pi-coding-agent/src/modes/interactive/components/provider-manager.ts +16 -7
- package/packages/pi-coding-agent/src/modes/interactive/components/skill-invocation-message.ts +36 -22
- package/packages/pi-coding-agent/src/modes/interactive/interactive-mode.ts +13 -1
- package/packages/pi-coding-agent/tsconfig.tsbuildinfo +1 -1
- package/scripts/link-workspace-packages.cjs +1 -0
- package/src/resources/extensions/claude-code-cli/readiness.ts +4 -3
- package/src/resources/extensions/claude-code-cli/stream-adapter.ts +78 -17
- package/src/resources/extensions/claude-code-cli/tests/stream-adapter.test.ts +149 -5
- package/src/resources/extensions/gsd/auto/loop-deps.ts +14 -0
- package/src/resources/extensions/gsd/auto/loop.ts +9 -0
- package/src/resources/extensions/gsd/auto/phases.ts +82 -4
- package/src/resources/extensions/gsd/auto/run-unit.ts +40 -2
- package/src/resources/extensions/gsd/auto/session.ts +35 -2
- package/src/resources/extensions/gsd/auto-dispatch.ts +16 -3
- package/src/resources/extensions/gsd/auto-model-selection.ts +17 -2
- package/src/resources/extensions/gsd/auto-post-unit.ts +29 -3
- package/src/resources/extensions/gsd/auto-prompts.ts +28 -1
- package/src/resources/extensions/gsd/auto-recovery.ts +26 -1
- package/src/resources/extensions/gsd/auto-start.ts +60 -68
- package/src/resources/extensions/gsd/auto-worktree.ts +62 -63
- package/src/resources/extensions/gsd/auto.ts +73 -28
- package/src/resources/extensions/gsd/bootstrap/agent-end-recovery.ts +23 -1
- package/src/resources/extensions/gsd/bootstrap/db-tools.ts +40 -9
- package/src/resources/extensions/gsd/bootstrap/exec-tools.ts +109 -0
- package/src/resources/extensions/gsd/bootstrap/register-extension.ts +2 -0
- package/src/resources/extensions/gsd/bootstrap/register-hooks.ts +54 -6
- package/src/resources/extensions/gsd/bootstrap/write-gate.ts +35 -2
- package/src/resources/extensions/gsd/clean-root-preflight.ts +111 -0
- package/src/resources/extensions/gsd/commands-prefs-wizard.ts +898 -32
- package/src/resources/extensions/gsd/compaction-snapshot.ts +165 -0
- package/src/resources/extensions/gsd/complexity-classifier.ts +5 -3
- package/src/resources/extensions/gsd/error-classifier.ts +10 -3
- package/src/resources/extensions/gsd/exec-history.ts +153 -0
- package/src/resources/extensions/gsd/exec-sandbox.ts +326 -0
- package/src/resources/extensions/gsd/gitignore.ts +1 -1
- package/src/resources/extensions/gsd/gsd-db.ts +157 -33
- package/src/resources/extensions/gsd/guided-flow.ts +222 -1
- package/src/resources/extensions/gsd/health-widget.ts +3 -1
- package/src/resources/extensions/gsd/init-wizard.ts +15 -1
- package/src/resources/extensions/gsd/journal.ts +2 -1
- package/src/resources/extensions/gsd/key-manager.ts +28 -0
- package/src/resources/extensions/gsd/model-router.ts +42 -1
- package/src/resources/extensions/gsd/pre-execution-checks.ts +46 -10
- package/src/resources/extensions/gsd/preferences-types.ts +46 -0
- package/src/resources/extensions/gsd/preferences-validation.ts +79 -0
- package/src/resources/extensions/gsd/preferences.ts +17 -17
- package/src/resources/extensions/gsd/prompt-loader.ts +30 -7
- package/src/resources/extensions/gsd/prompts/discuss-headless.md +8 -0
- package/src/resources/extensions/gsd/prompts/discuss.md +29 -2
- package/src/resources/extensions/gsd/prompts/parallel-research-slices.md +5 -2
- package/src/resources/extensions/gsd/safety/evidence-collector.ts +119 -0
- package/src/resources/extensions/gsd/safety/file-change-validator.ts +17 -4
- package/src/resources/extensions/gsd/safety/safety-harness.ts +9 -0
- package/src/resources/extensions/gsd/tests/auto-loop.test.ts +188 -2
- package/src/resources/extensions/gsd/tests/auto-model-selection.test.ts +12 -0
- package/src/resources/extensions/gsd/tests/auto-paused-session-validation.test.ts +12 -0
- package/src/resources/extensions/gsd/tests/auto-recovery.test.ts +49 -0
- package/src/resources/extensions/gsd/tests/auto-start-bootstrap-await-3420.test.ts +141 -0
- package/src/resources/extensions/gsd/tests/auto-start-model-capture.test.ts +33 -3
- package/src/resources/extensions/gsd/tests/auto-thinking-restore.test.ts +38 -0
- package/src/resources/extensions/gsd/tests/auto-wrapup-inflight-guard.test.ts +23 -0
- package/src/resources/extensions/gsd/tests/clean-root-preflight.test.ts +186 -0
- package/src/resources/extensions/gsd/tests/compaction-snapshot.test.ts +123 -0
- package/src/resources/extensions/gsd/tests/complete-milestone.test.ts +61 -1
- package/src/resources/extensions/gsd/tests/complete-slice.test.ts +2 -2
- package/src/resources/extensions/gsd/tests/complete-task.test.ts +2 -2
- package/src/resources/extensions/gsd/tests/complexity-classifier.test.ts +3 -3
- package/src/resources/extensions/gsd/tests/custom-engine-loop-integration.test.ts +2 -0
- package/src/resources/extensions/gsd/tests/doctor-providers.test.ts +31 -0
- package/src/resources/extensions/gsd/tests/double-merge-guard.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/ensure-db-open.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/escalation.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/exec-history.test.ts +237 -0
- package/src/resources/extensions/gsd/tests/exec-sandbox.test.ts +210 -0
- package/src/resources/extensions/gsd/tests/file-change-validator.test.ts +58 -0
- package/src/resources/extensions/gsd/tests/gsd-db.test.ts +447 -1
- package/src/resources/extensions/gsd/tests/init-wizard.test.ts +27 -0
- package/src/resources/extensions/gsd/tests/integration/git-service.test.ts +1 -0
- package/src/resources/extensions/gsd/tests/integration/gitignore-tracked-gsd.test.ts +1 -0
- package/src/resources/extensions/gsd/tests/integration/idle-recovery.test.ts +30 -0
- package/src/resources/extensions/gsd/tests/isolation-none-branch-guard.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/issue-4540-regressions.test.ts +288 -0
- package/src/resources/extensions/gsd/tests/journal-integration.test.ts +2 -0
- package/src/resources/extensions/gsd/tests/key-manager.test.ts +9 -0
- package/src/resources/extensions/gsd/tests/md-importer.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/memory-pressure-stuck-state.test.ts +12 -0
- package/src/resources/extensions/gsd/tests/memory-store.test.ts +2 -2
- package/src/resources/extensions/gsd/tests/parallel-research-dispatch.test.ts +19 -0
- package/src/resources/extensions/gsd/tests/plan-gate-failed-doctor-heal-hint.test.ts +37 -0
- package/src/resources/extensions/gsd/tests/pre-exec-backtick-strip.test.ts +14 -0
- package/src/resources/extensions/gsd/tests/pre-exec-gate-loop.test.ts +272 -0
- package/src/resources/extensions/gsd/tests/pre-execution-checks.test.ts +356 -0
- package/src/resources/extensions/gsd/tests/preferences.test.ts +110 -0
- package/src/resources/extensions/gsd/tests/prefs-wizard-coverage.test.ts +44 -0
- package/src/resources/extensions/gsd/tests/prompt-loader-extension-dir.test.ts +49 -0
- package/src/resources/extensions/gsd/tests/provider-errors.test.ts +48 -0
- package/src/resources/extensions/gsd/tests/ready-phrase-no-files-4573.test.ts +388 -0
- package/src/resources/extensions/gsd/tests/restore-tools-after-discuss.test.ts +9 -3
- package/src/resources/extensions/gsd/tests/resume-dispatch-worktree.test.ts +230 -0
- package/src/resources/extensions/gsd/tests/safety-harness-false-positives.test.ts +205 -0
- package/src/resources/extensions/gsd/tests/save-gate-result-render.test.ts +95 -0
- package/src/resources/extensions/gsd/tests/schema-v21-sequence.test.ts +413 -0
- package/src/resources/extensions/gsd/tests/session-start-footer.test.ts +32 -40
- package/src/resources/extensions/gsd/tests/stash-queued-context-files.test.ts +56 -0
- package/src/resources/extensions/gsd/tests/token-counter.test.ts +105 -1
- package/src/resources/extensions/gsd/tests/tool-compatibility.test.ts +107 -0
- package/src/resources/extensions/gsd/tests/uok-plan-v2-wiring.test.ts +23 -0
- package/src/resources/extensions/gsd/tests/workflow-tool-executors.test.ts +65 -2
- package/src/resources/extensions/gsd/tests/worktree-db.test.ts +35 -0
- package/src/resources/extensions/gsd/tests/worktree-journal-events.test.ts +6 -1
- package/src/resources/extensions/gsd/tests/worktree-resolver.test.ts +78 -5
- package/src/resources/extensions/gsd/tests/write-gate.test.ts +64 -0
- package/src/resources/extensions/gsd/tests/zombie-gsd-state.test.ts +3 -1
- package/src/resources/extensions/gsd/token-counter.ts +22 -5
- package/src/resources/extensions/gsd/tools/complete-milestone.ts +15 -9
- package/src/resources/extensions/gsd/tools/exec-search-tool.ts +81 -0
- package/src/resources/extensions/gsd/tools/exec-tool.ts +183 -0
- package/src/resources/extensions/gsd/tools/resume-tool.ts +40 -0
- package/src/resources/extensions/gsd/uok/plan-v2.ts +26 -3
- package/src/resources/extensions/gsd/workflow-logger.ts +3 -1
- package/src/resources/extensions/gsd/workflow-mcp.ts +3 -0
- package/src/resources/extensions/gsd/worktree-resolver.ts +54 -9
- package/src/resources/skills/verify-before-complete/SKILL.md +2 -1
- package/src/resources/skills/write-docs/SKILL.md +2 -1
- /package/dist/web/standalone/.next/static/{YnUwu2WWaT0_hyTLUF4nq → JgU2F-5N9mTyB7kUSSk9A}/_buildManifest.js +0 -0
- /package/dist/web/standalone/.next/static/{YnUwu2WWaT0_hyTLUF4nq → JgU2F-5N9mTyB7kUSSk9A}/_ssgManifest.js +0 -0
|
@@ -180,7 +180,7 @@ function openRawDb(path: string): unknown {
|
|
|
180
180
|
return new Database(path);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
const SCHEMA_VERSION =
|
|
183
|
+
const SCHEMA_VERSION = 22;
|
|
184
184
|
|
|
185
185
|
function indexExists(db: DbAdapter, name: string): boolean {
|
|
186
186
|
return !!db.prepare(
|
|
@@ -559,16 +559,6 @@ function initSchema(db: DbAdapter, fileBacked: boolean): void {
|
|
|
559
559
|
|
|
560
560
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_active ON memories(superseded_by)");
|
|
561
561
|
|
|
562
|
-
// Existing DBs may arrive here before migrateSchema() has added columns
|
|
563
|
-
// that fresh installs already have. Add only columns needed by bootstrap
|
|
564
|
-
// indexes so old DBs can open far enough for the normal migration chain.
|
|
565
|
-
ensureBootstrapIndexColumns(db);
|
|
566
|
-
|
|
567
|
-
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_scope ON memories(scope)");
|
|
568
|
-
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_sources_kind ON memory_sources(kind)");
|
|
569
|
-
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_sources_scope ON memory_sources(scope)");
|
|
570
|
-
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_relations_from ON memory_relations(from_id)");
|
|
571
|
-
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_relations_to ON memory_relations(to_id)");
|
|
572
562
|
db.exec("CREATE INDEX IF NOT EXISTS idx_replan_history_milestone ON replan_history(milestone_id, created_at)");
|
|
573
563
|
|
|
574
564
|
// v13 indexes — hot-path dispatch queries
|
|
@@ -586,9 +576,6 @@ function initSchema(db: DbAdapter, fileBacked: boolean): void {
|
|
|
586
576
|
db.exec("CREATE INDEX IF NOT EXISTS idx_turn_git_tx_turn ON turn_git_transactions(trace_id, turn_id)");
|
|
587
577
|
db.exec("CREATE INDEX IF NOT EXISTS idx_audit_events_trace ON audit_events(trace_id, ts)");
|
|
588
578
|
db.exec("CREATE INDEX IF NOT EXISTS idx_audit_events_turn ON audit_events(trace_id, turn_id, ts)");
|
|
589
|
-
// ADR-011 Phase 2 — also created by the v17 migration; fresh installs
|
|
590
|
-
// skip migrations so the index must be created here too.
|
|
591
|
-
db.exec("CREATE INDEX IF NOT EXISTS idx_tasks_escalation_pending ON tasks(milestone_id, slice_id, escalation_pending)");
|
|
592
579
|
|
|
593
580
|
db.exec(`CREATE VIEW IF NOT EXISTS active_decisions AS SELECT * FROM decisions WHERE superseded_by IS NULL`);
|
|
594
581
|
db.exec(`CREATE VIEW IF NOT EXISTS active_requirements AS SELECT * FROM requirements WHERE superseded_by IS NULL`);
|
|
@@ -596,6 +583,17 @@ function initSchema(db: DbAdapter, fileBacked: boolean): void {
|
|
|
596
583
|
|
|
597
584
|
const existing = db.prepare("SELECT count(*) as cnt FROM schema_version").get();
|
|
598
585
|
if (existing && (existing["cnt"] as number) === 0) {
|
|
586
|
+
// Fresh install — all tables are created above with the full current schema,
|
|
587
|
+
// so it is safe to create all migration-specific indexes here. For existing
|
|
588
|
+
// databases these indexes are created inside the individual migration guards
|
|
589
|
+
// in migrateSchema() after the corresponding columns have been added.
|
|
590
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_tasks_escalation_pending ON tasks(milestone_id, slice_id, escalation_pending)");
|
|
591
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_scope ON memories(scope)");
|
|
592
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_sources_kind ON memory_sources(kind)");
|
|
593
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_sources_scope ON memory_sources(scope)");
|
|
594
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_relations_from ON memory_relations(from_id)");
|
|
595
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_relations_to ON memory_relations(to_id)");
|
|
596
|
+
|
|
599
597
|
db.prepare(
|
|
600
598
|
"INSERT INTO schema_version (version, applied_at) VALUES (:version, :applied_at)",
|
|
601
599
|
).run({
|
|
@@ -672,14 +670,6 @@ function ensureColumn(db: DbAdapter, table: string, column: string, ddl: string)
|
|
|
672
670
|
if (!columnExists(db, table, column)) db.exec(ddl);
|
|
673
671
|
}
|
|
674
672
|
|
|
675
|
-
function ensureBootstrapIndexColumns(db: DbAdapter): void {
|
|
676
|
-
ensureColumn(db, "memories", "scope", `ALTER TABLE memories ADD COLUMN scope TEXT NOT NULL DEFAULT 'project'`);
|
|
677
|
-
ensureColumn(db, "memories", "tags", `ALTER TABLE memories ADD COLUMN tags TEXT NOT NULL DEFAULT '[]'`);
|
|
678
|
-
ensureColumn(db, "memory_sources", "scope", `ALTER TABLE memory_sources ADD COLUMN scope TEXT NOT NULL DEFAULT 'project'`);
|
|
679
|
-
ensureColumn(db, "memory_sources", "tags", `ALTER TABLE memory_sources ADD COLUMN tags TEXT NOT NULL DEFAULT '[]'`);
|
|
680
|
-
ensureColumn(db, "tasks", "escalation_pending", `ALTER TABLE tasks ADD COLUMN escalation_pending INTEGER NOT NULL DEFAULT 0`);
|
|
681
|
-
}
|
|
682
|
-
|
|
683
673
|
function migrateSchema(db: DbAdapter): void {
|
|
684
674
|
const row = db.prepare("SELECT MAX(version) as v FROM schema_version").get();
|
|
685
675
|
const currentVersion = row ? (row["v"] as number) : 0;
|
|
@@ -947,19 +937,24 @@ function migrateSchema(db: DbAdapter): void {
|
|
|
947
937
|
}
|
|
948
938
|
|
|
949
939
|
if (currentVersion < 12) {
|
|
940
|
+
// NOTE: The original DDL used COALESCE(task_id, '') in the PRIMARY KEY
|
|
941
|
+
// expression, which is invalid SQLite syntax and causes startup errors on
|
|
942
|
+
// DBs that migrate through v12. The corrected DDL uses
|
|
943
|
+
// task_id TEXT NOT NULL DEFAULT '' with a plain column list PK. DBs that
|
|
944
|
+
// were created with the broken DDL are repaired by the v22 migration below.
|
|
950
945
|
db.exec(`
|
|
951
946
|
CREATE TABLE IF NOT EXISTS quality_gates (
|
|
952
947
|
milestone_id TEXT NOT NULL,
|
|
953
948
|
slice_id TEXT NOT NULL,
|
|
954
949
|
gate_id TEXT NOT NULL,
|
|
955
950
|
scope TEXT NOT NULL DEFAULT 'slice',
|
|
956
|
-
task_id TEXT DEFAULT
|
|
951
|
+
task_id TEXT NOT NULL DEFAULT '',
|
|
957
952
|
status TEXT NOT NULL DEFAULT 'pending',
|
|
958
953
|
verdict TEXT NOT NULL DEFAULT '',
|
|
959
954
|
rationale TEXT NOT NULL DEFAULT '',
|
|
960
955
|
findings TEXT NOT NULL DEFAULT '',
|
|
961
956
|
evaluated_at TEXT DEFAULT NULL,
|
|
962
|
-
PRIMARY KEY (milestone_id, slice_id, gate_id,
|
|
957
|
+
PRIMARY KEY (milestone_id, slice_id, gate_id, task_id),
|
|
963
958
|
FOREIGN KEY (milestone_id, slice_id) REFERENCES slices(milestone_id, id)
|
|
964
959
|
)
|
|
965
960
|
`);
|
|
@@ -1117,6 +1112,10 @@ function migrateSchema(db: DbAdapter): void {
|
|
|
1117
1112
|
tags TEXT NOT NULL DEFAULT '[]'
|
|
1118
1113
|
)
|
|
1119
1114
|
`);
|
|
1115
|
+
// If memory_sources already existed before v18 (created by an earlier
|
|
1116
|
+
// version of initSchema that lacked scope/tags), add the missing columns.
|
|
1117
|
+
ensureColumn(db, "memory_sources", "scope", `ALTER TABLE memory_sources ADD COLUMN scope TEXT NOT NULL DEFAULT 'project'`);
|
|
1118
|
+
ensureColumn(db, "memory_sources", "tags", `ALTER TABLE memory_sources ADD COLUMN tags TEXT NOT NULL DEFAULT '[]'`);
|
|
1120
1119
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_scope ON memories(scope)");
|
|
1121
1120
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_sources_kind ON memory_sources(kind)");
|
|
1122
1121
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_sources_scope ON memory_sources(scope)");
|
|
@@ -1187,6 +1186,52 @@ function migrateSchema(db: DbAdapter): void {
|
|
|
1187
1186
|
});
|
|
1188
1187
|
}
|
|
1189
1188
|
|
|
1189
|
+
if (currentVersion < 22) {
|
|
1190
|
+
// v22: Repair quality_gates tables that were created by the broken v12
|
|
1191
|
+
// migration (which used COALESCE(task_id, '') as a PK expression — invalid
|
|
1192
|
+
// SQLite DDL). Those DBs have task_id nullable (dflt_value NULL, notnull 0).
|
|
1193
|
+
// Rebuild the table with the correct schema, migrating existing rows via
|
|
1194
|
+
// COALESCE so no data is lost.
|
|
1195
|
+
const qgInfo = db.prepare("PRAGMA table_info(quality_gates)").all() as Array<Record<string, unknown>>;
|
|
1196
|
+
const taskIdCol = qgInfo.find((r) => r["name"] === "task_id");
|
|
1197
|
+
const needsRepair = taskIdCol && (taskIdCol["notnull"] === 0 || taskIdCol["notnull"] === "0");
|
|
1198
|
+
if (needsRepair) {
|
|
1199
|
+
db.exec(`
|
|
1200
|
+
CREATE TABLE quality_gates_new (
|
|
1201
|
+
milestone_id TEXT NOT NULL,
|
|
1202
|
+
slice_id TEXT NOT NULL,
|
|
1203
|
+
gate_id TEXT NOT NULL,
|
|
1204
|
+
scope TEXT NOT NULL DEFAULT 'slice',
|
|
1205
|
+
task_id TEXT NOT NULL DEFAULT '',
|
|
1206
|
+
status TEXT NOT NULL DEFAULT 'pending',
|
|
1207
|
+
verdict TEXT NOT NULL DEFAULT '',
|
|
1208
|
+
rationale TEXT NOT NULL DEFAULT '',
|
|
1209
|
+
findings TEXT NOT NULL DEFAULT '',
|
|
1210
|
+
evaluated_at TEXT DEFAULT NULL,
|
|
1211
|
+
PRIMARY KEY (milestone_id, slice_id, gate_id, task_id),
|
|
1212
|
+
FOREIGN KEY (milestone_id, slice_id) REFERENCES slices(milestone_id, id)
|
|
1213
|
+
)
|
|
1214
|
+
`);
|
|
1215
|
+
db.exec(`
|
|
1216
|
+
INSERT OR IGNORE INTO quality_gates_new
|
|
1217
|
+
(milestone_id, slice_id, gate_id, scope, task_id, status, verdict, rationale, findings, evaluated_at)
|
|
1218
|
+
SELECT milestone_id, slice_id, gate_id, scope, COALESCE(task_id, ''), status, verdict, rationale, findings, evaluated_at
|
|
1219
|
+
FROM quality_gates
|
|
1220
|
+
`);
|
|
1221
|
+
db.exec("DROP TABLE quality_gates");
|
|
1222
|
+
db.exec("ALTER TABLE quality_gates_new RENAME TO quality_gates");
|
|
1223
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_quality_gates_pending ON quality_gates(milestone_id, slice_id, status)");
|
|
1224
|
+
}
|
|
1225
|
+
// Ensure scope column exists on quality_gates and assessments (guard
|
|
1226
|
+
// against DBs that somehow lack it after a partial migration).
|
|
1227
|
+
ensureColumn(db, "quality_gates", "scope", "ALTER TABLE quality_gates ADD COLUMN scope TEXT NOT NULL DEFAULT 'slice'");
|
|
1228
|
+
ensureColumn(db, "assessments", "scope", "ALTER TABLE assessments ADD COLUMN scope TEXT NOT NULL DEFAULT ''");
|
|
1229
|
+
db.prepare("INSERT INTO schema_version (version, applied_at) VALUES (:version, :applied_at)").run({
|
|
1230
|
+
":version": 22,
|
|
1231
|
+
":applied_at": new Date().toISOString(),
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1190
1235
|
db.exec("COMMIT");
|
|
1191
1236
|
} catch (err) {
|
|
1192
1237
|
db.exec("ROLLBACK");
|
|
@@ -1199,6 +1244,8 @@ let currentPath: string | null = null;
|
|
|
1199
1244
|
let currentPid: number = 0;
|
|
1200
1245
|
let _exitHandlerRegistered = false;
|
|
1201
1246
|
let _dbOpenAttempted = false;
|
|
1247
|
+
let _lastDbError: Error | null = null;
|
|
1248
|
+
let _lastDbPhase: "open" | "initSchema" | "vacuum-recovery" | null = null;
|
|
1202
1249
|
|
|
1203
1250
|
export function getDbProvider(): ProviderName | null {
|
|
1204
1251
|
loadProvider();
|
|
@@ -1219,12 +1266,58 @@ export function wasDbOpenAttempted(): boolean {
|
|
|
1219
1266
|
return _dbOpenAttempted;
|
|
1220
1267
|
}
|
|
1221
1268
|
|
|
1269
|
+
export function getDbStatus(): {
|
|
1270
|
+
available: boolean;
|
|
1271
|
+
provider: ProviderName | null;
|
|
1272
|
+
attempted: boolean;
|
|
1273
|
+
lastError: Error | null;
|
|
1274
|
+
lastPhase: "open" | "initSchema" | "vacuum-recovery" | null;
|
|
1275
|
+
} {
|
|
1276
|
+
loadProvider();
|
|
1277
|
+
return {
|
|
1278
|
+
available: currentDb !== null,
|
|
1279
|
+
provider: providerName,
|
|
1280
|
+
attempted: _dbOpenAttempted,
|
|
1281
|
+
lastError: _lastDbError,
|
|
1282
|
+
lastPhase: _lastDbPhase,
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1222
1286
|
export function openDatabase(path: string): boolean {
|
|
1223
1287
|
_dbOpenAttempted = true;
|
|
1224
1288
|
if (currentDb && currentPath !== path) closeDatabase();
|
|
1225
1289
|
if (currentDb && currentPath === path) return true;
|
|
1226
1290
|
|
|
1227
|
-
|
|
1291
|
+
// Reset error state only when a new open attempt is actually going to run.
|
|
1292
|
+
_lastDbError = null;
|
|
1293
|
+
_lastDbPhase = null;
|
|
1294
|
+
|
|
1295
|
+
let rawDb: unknown;
|
|
1296
|
+
let fallbackProvider: ProviderName | null = null;
|
|
1297
|
+
let fallbackModule: unknown = null;
|
|
1298
|
+
try {
|
|
1299
|
+
rawDb = openRawDb(path);
|
|
1300
|
+
} catch (primaryErr) {
|
|
1301
|
+
_lastDbPhase = "open";
|
|
1302
|
+
_lastDbError = primaryErr instanceof Error ? primaryErr : new Error(String(primaryErr));
|
|
1303
|
+
// node:sqlite loaded but failed to open this file — try better-sqlite3 as fallback.
|
|
1304
|
+
if (providerName === "node:sqlite") {
|
|
1305
|
+
try {
|
|
1306
|
+
const mod = _require("better-sqlite3");
|
|
1307
|
+
const Db = (mod && mod.default) ? mod.default : mod;
|
|
1308
|
+
if (typeof Db === "function") {
|
|
1309
|
+
rawDb = new Db(path);
|
|
1310
|
+
fallbackProvider = "better-sqlite3";
|
|
1311
|
+
fallbackModule = Db;
|
|
1312
|
+
_lastDbError = null;
|
|
1313
|
+
_lastDbPhase = null;
|
|
1314
|
+
}
|
|
1315
|
+
} catch {
|
|
1316
|
+
// fallback unavailable; surface original error
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
if (!rawDb) throw primaryErr;
|
|
1320
|
+
}
|
|
1228
1321
|
if (!rawDb) return false;
|
|
1229
1322
|
|
|
1230
1323
|
const adapter = createAdapter(rawDb);
|
|
@@ -1240,15 +1333,25 @@ export function openDatabase(path: string): boolean {
|
|
|
1240
1333
|
initSchema(adapter, fileBacked);
|
|
1241
1334
|
process.stderr.write("gsd-db: recovered corrupt database via VACUUM\n");
|
|
1242
1335
|
} catch (retryErr) {
|
|
1336
|
+
_lastDbPhase = "vacuum-recovery";
|
|
1337
|
+
_lastDbError = retryErr instanceof Error ? retryErr : new Error(String(retryErr));
|
|
1243
1338
|
try { adapter.close(); } catch (e) { logWarning("db", `close after VACUUM failed: ${(e as Error).message}`); }
|
|
1244
1339
|
throw retryErr;
|
|
1245
1340
|
}
|
|
1246
1341
|
} else {
|
|
1247
|
-
|
|
1342
|
+
_lastDbPhase = "initSchema";
|
|
1343
|
+
_lastDbError = err instanceof Error ? err : new Error(String(err));
|
|
1344
|
+
try { adapter.close(); } catch (e) { logWarning("db", `close after initSchema failed: ${(e as Error).message}`); }
|
|
1248
1345
|
throw err;
|
|
1249
1346
|
}
|
|
1250
1347
|
}
|
|
1251
1348
|
|
|
1349
|
+
// Commit fallback provider switch only after open + schema both succeeded.
|
|
1350
|
+
if (fallbackProvider) {
|
|
1351
|
+
providerName = fallbackProvider;
|
|
1352
|
+
providerModule = fallbackModule;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1252
1355
|
currentDb = adapter;
|
|
1253
1356
|
currentPath = path;
|
|
1254
1357
|
currentPid = process.pid;
|
|
@@ -1276,8 +1379,12 @@ export function closeDatabase(): void {
|
|
|
1276
1379
|
currentDb = null;
|
|
1277
1380
|
currentPath = null;
|
|
1278
1381
|
currentPid = 0;
|
|
1279
|
-
_dbOpenAttempted = false;
|
|
1280
1382
|
}
|
|
1383
|
+
// Reset session-scoped state unconditionally so stale error info from a
|
|
1384
|
+
// failed open doesn't persist into the next open attempt or status check.
|
|
1385
|
+
_dbOpenAttempted = false;
|
|
1386
|
+
_lastDbError = null;
|
|
1387
|
+
_lastDbPhase = null;
|
|
1281
1388
|
}
|
|
1282
1389
|
|
|
1283
1390
|
/** Run a full VACUUM — call sparingly (e.g. after milestone completion). */
|
|
@@ -2669,7 +2776,10 @@ export function reconcileWorktreeDb(
|
|
|
2669
2776
|
FROM wt.artifacts
|
|
2670
2777
|
`).run());
|
|
2671
2778
|
|
|
2672
|
-
// Merge milestones — worktree may have updated status/planning fields
|
|
2779
|
+
// Merge milestones — worktree may have updated status/planning fields.
|
|
2780
|
+
// Never downgrade status: complete > active > pre-planning (#4372).
|
|
2781
|
+
// A stale worktree may carry an older 'active' status for a milestone
|
|
2782
|
+
// that the main DB has already marked 'complete'; preserve the higher status.
|
|
2673
2783
|
merged.milestones = countChanges(adapter.prepare(`
|
|
2674
2784
|
INSERT OR REPLACE INTO milestones (
|
|
2675
2785
|
id, title, status, depends_on, created_at, completed_at,
|
|
@@ -2677,11 +2787,25 @@ export function reconcileWorktreeDb(
|
|
|
2677
2787
|
verification_contract, verification_integration, verification_operational, verification_uat,
|
|
2678
2788
|
definition_of_done, requirement_coverage, boundary_map_markdown
|
|
2679
2789
|
)
|
|
2680
|
-
SELECT id, title,
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2790
|
+
SELECT w.id, w.title,
|
|
2791
|
+
CASE
|
|
2792
|
+
WHEN m.status IN ('complete', 'done') AND w.status NOT IN ('complete', 'done')
|
|
2793
|
+
THEN m.status ELSE w.status
|
|
2794
|
+
END,
|
|
2795
|
+
w.depends_on,
|
|
2796
|
+
CASE
|
|
2797
|
+
WHEN m.status IN ('complete', 'done') AND w.status NOT IN ('complete', 'done')
|
|
2798
|
+
THEN m.created_at ELSE w.created_at
|
|
2799
|
+
END,
|
|
2800
|
+
CASE
|
|
2801
|
+
WHEN m.status IN ('complete', 'done') AND w.status NOT IN ('complete', 'done')
|
|
2802
|
+
THEN m.completed_at ELSE w.completed_at
|
|
2803
|
+
END,
|
|
2804
|
+
w.vision, w.success_criteria, w.key_risks, w.proof_strategy,
|
|
2805
|
+
w.verification_contract, w.verification_integration, w.verification_operational, w.verification_uat,
|
|
2806
|
+
w.definition_of_done, w.requirement_coverage, w.boundary_map_markdown
|
|
2807
|
+
FROM wt.milestones w
|
|
2808
|
+
LEFT JOIN milestones m ON m.id = w.id
|
|
2685
2809
|
`).run());
|
|
2686
2810
|
|
|
2687
2811
|
// Merge slices — preserve worktree progress but never downgrade completed status (#2558).
|
|
@@ -105,7 +105,7 @@ function runPlanV2Gate(
|
|
|
105
105
|
if (!compiled.ok) {
|
|
106
106
|
const reason = compiled.reason ?? "plan-v2 compilation failed";
|
|
107
107
|
ctx.ui.notify(
|
|
108
|
-
`Plan gate failed-closed: ${reason}. Complete plan/discuss artifacts before execution
|
|
108
|
+
`Plan gate failed-closed: ${reason}. Complete plan/discuss artifacts before execution.\n\nIf this keeps happening, try: /gsd doctor heal`,
|
|
109
109
|
"error",
|
|
110
110
|
);
|
|
111
111
|
return false;
|
|
@@ -130,8 +130,20 @@ interface PendingAutoStartEntry {
|
|
|
130
130
|
milestoneId: string; // the milestone being discussed
|
|
131
131
|
step?: boolean; // preserve step mode through discuss → auto transition
|
|
132
132
|
createdAt: number; // timestamp for staleness detection (#3274)
|
|
133
|
+
// #4573: counter for how many times the LLM emitted the ready phrase
|
|
134
|
+
// without writing the required artifacts. Cleared on entry delete/recreate.
|
|
135
|
+
readyRejectCount?: number;
|
|
133
136
|
}
|
|
134
137
|
|
|
138
|
+
// #4573: cap for how many times we nudge the LLM after a premature ready
|
|
139
|
+
// phrase before giving up and asking the user to re-run /gsd.
|
|
140
|
+
const MAX_READY_REJECTS = 2;
|
|
141
|
+
|
|
142
|
+
// #4573: matches the canonical ready phrase the discuss prompt asks the LLM
|
|
143
|
+
// to emit. Accepts any M-prefixed milestone ID (three digits + optional
|
|
144
|
+
// suffix) with optional trailing punctuation.
|
|
145
|
+
const READY_PHRASE_RE = /\bMilestone\s+M\d{3}[A-Z0-9-]*\s+ready\.?/i;
|
|
146
|
+
|
|
135
147
|
const pendingAutoStartMap = new Map<string, PendingAutoStartEntry>();
|
|
136
148
|
|
|
137
149
|
/**
|
|
@@ -279,6 +291,215 @@ export function checkAutoStartAfterDiscuss(): boolean {
|
|
|
279
291
|
return true;
|
|
280
292
|
}
|
|
281
293
|
|
|
294
|
+
/**
|
|
295
|
+
* Extract the concatenated text content from an assistant message, whether it
|
|
296
|
+
* stores content as a string or as an array of text blocks.
|
|
297
|
+
*/
|
|
298
|
+
function extractAssistantText(msg: any): string {
|
|
299
|
+
if (!msg) return "";
|
|
300
|
+
const content = msg.content;
|
|
301
|
+
if (typeof content === "string") return content;
|
|
302
|
+
if (!Array.isArray(content)) return "";
|
|
303
|
+
const parts: string[] = [];
|
|
304
|
+
for (const block of content) {
|
|
305
|
+
if (!block || typeof block !== "object") continue;
|
|
306
|
+
if (block.type === "text" && typeof block.text === "string") parts.push(block.text);
|
|
307
|
+
}
|
|
308
|
+
return parts.join("\n");
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Return true if the assistant message contains any tool-use block.
|
|
313
|
+
*/
|
|
314
|
+
function hasToolUse(msg: any): boolean {
|
|
315
|
+
if (!msg) return false;
|
|
316
|
+
const content = msg.content;
|
|
317
|
+
if (!Array.isArray(content)) return false;
|
|
318
|
+
return content.some((b: any) => b && typeof b === "object" && (b.type === "tool_use" || b.type === "tool-use"));
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* #4573 — Detect and recover from the "ready phrase without files" failure mode.
|
|
323
|
+
*
|
|
324
|
+
* When the LLM emits "Milestone {{id}} ready." but has not written CONTEXT.md
|
|
325
|
+
* or ROADMAP.md, `checkAutoStartAfterDiscuss()` silently returns false and the
|
|
326
|
+
* next /gsd invocation loops into the "All milestones complete" warning.
|
|
327
|
+
*
|
|
328
|
+
* This function, called from `handleAgentEnd` after `checkAutoStartAfterDiscuss`
|
|
329
|
+
* returns false, pattern-matches the ready phrase on the last assistant message.
|
|
330
|
+
* If it fired AND neither CONTEXT.md nor ROADMAP.md exists, it:
|
|
331
|
+
* 1. Notifies the user that the signal was rejected.
|
|
332
|
+
* 2. Injects a system message via `pi.sendMessage(..., {triggerTurn:true})`
|
|
333
|
+
* telling the LLM the signal was premature and to emit the writes now.
|
|
334
|
+
* 3. Caps at `MAX_READY_REJECTS` per-entry; beyond that, gives up and asks
|
|
335
|
+
* the user to re-run /gsd.
|
|
336
|
+
*
|
|
337
|
+
* Returns true when a nudge (or give-up) was emitted, signaling the caller to
|
|
338
|
+
* skip `resolveAgentEnd`.
|
|
339
|
+
*/
|
|
340
|
+
export function maybeHandleReadyPhraseWithoutFiles(event: { messages: any[] }): boolean {
|
|
341
|
+
const entry = _getPendingAutoStart();
|
|
342
|
+
if (!entry) return false;
|
|
343
|
+
const { ctx, pi, basePath, milestoneId } = entry;
|
|
344
|
+
|
|
345
|
+
// Gate: last assistant message must contain the ready phrase
|
|
346
|
+
const lastMsg = event.messages[event.messages.length - 1];
|
|
347
|
+
const text = extractAssistantText(lastMsg);
|
|
348
|
+
if (!READY_PHRASE_RE.test(text)) return false;
|
|
349
|
+
|
|
350
|
+
// Gate: artifacts must still be missing — if they exist, the happy path
|
|
351
|
+
// already fired and we have nothing to do.
|
|
352
|
+
const contextFile = resolveMilestoneFile(basePath, milestoneId, "CONTEXT");
|
|
353
|
+
const roadmapFile = resolveMilestoneFile(basePath, milestoneId, "ROADMAP");
|
|
354
|
+
if (contextFile || roadmapFile) return false;
|
|
355
|
+
|
|
356
|
+
entry.readyRejectCount = (entry.readyRejectCount ?? 0) + 1;
|
|
357
|
+
|
|
358
|
+
if (entry.readyRejectCount > MAX_READY_REJECTS) {
|
|
359
|
+
// Give up: clear state and tell the user to re-run /gsd. Avoids an
|
|
360
|
+
// infinite nudge loop when the LLM never produces the writes.
|
|
361
|
+
pendingAutoStartMap.delete(basePath);
|
|
362
|
+
ctx.ui.notify(
|
|
363
|
+
`Milestone ${milestoneId}: LLM signaled "ready" ${entry.readyRejectCount} times without writing files. ` +
|
|
364
|
+
`Stopping auto-nudge. Run /gsd to try again.`,
|
|
365
|
+
"error",
|
|
366
|
+
);
|
|
367
|
+
return true;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
ctx.ui.notify(
|
|
371
|
+
`Milestone ${milestoneId}: "ready" signal rejected — CONTEXT.md and ROADMAP.md are missing. Asking the LLM to complete the writes.`,
|
|
372
|
+
"warning",
|
|
373
|
+
);
|
|
374
|
+
|
|
375
|
+
const nudge =
|
|
376
|
+
`You emitted "Milestone ${milestoneId} ready." but neither ` +
|
|
377
|
+
`.gsd/milestones/${milestoneId}/${milestoneId}-CONTEXT.md nor ` +
|
|
378
|
+
`.gsd/milestones/${milestoneId}/${milestoneId}-ROADMAP.md exists on disk. ` +
|
|
379
|
+
`The ready phrase is a POST-WRITE signal and has been rejected. ` +
|
|
380
|
+
`In this turn: (1) write PROJECT.md, REQUIREMENTS.md, and the milestone ` +
|
|
381
|
+
`CONTEXT.md, (2) call gsd_plan_milestone, then (3) emit the ready phrase. ` +
|
|
382
|
+
`Do not describe these steps — execute them as tool calls. ` +
|
|
383
|
+
`This is retry ${entry.readyRejectCount}/${MAX_READY_REJECTS}; further ` +
|
|
384
|
+
`premature signals will clear the session.`;
|
|
385
|
+
|
|
386
|
+
try {
|
|
387
|
+
pi.sendMessage(
|
|
388
|
+
{ customType: "gsd-ready-no-files", content: nudge, display: false },
|
|
389
|
+
{ triggerTurn: true },
|
|
390
|
+
);
|
|
391
|
+
} catch (e) {
|
|
392
|
+
logWarning("guided", `ready-phrase nudge sendMessage failed: ${(e as Error).message}`);
|
|
393
|
+
return false;
|
|
394
|
+
}
|
|
395
|
+
return true;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* #4573 — Detect and recover from the "announces tool, never calls it" stall.
|
|
400
|
+
*
|
|
401
|
+
* The LLM emits text like "I'll now write the CONTEXT.md file" but the turn
|
|
402
|
+
* ends with zero tool-use blocks. The harness has no post-turn tool-call
|
|
403
|
+
* validation, so the unit promise resolves and the user sees a stalled state.
|
|
404
|
+
*
|
|
405
|
+
* This function, called from `handleAgentEnd`, inspects the last assistant
|
|
406
|
+
* message. If ALL of the following are true, it injects a recovery message:
|
|
407
|
+
* - Text-only (no tool-use blocks)
|
|
408
|
+
* - Contains a commit-intent phrase ("I'll write", "I'll call", etc.)
|
|
409
|
+
* - Auto-mode is active OR a discussion autostart is pending
|
|
410
|
+
* - `emptyTurnRetryCount` is under the cap
|
|
411
|
+
*
|
|
412
|
+
* Per-handler state is held on the `PendingAutoStartEntry` when present, and
|
|
413
|
+
* on a module-level map otherwise. The counter resets on any successful
|
|
414
|
+
* tool-use turn via `resetEmptyTurnCounter`.
|
|
415
|
+
*/
|
|
416
|
+
const emptyTurnCounterByBase = new Map<string, number>();
|
|
417
|
+
const MAX_EMPTY_TURN_RETRIES = 2;
|
|
418
|
+
|
|
419
|
+
// Phrases that indicate the LLM is about to do something but has not yet.
|
|
420
|
+
// Kept tight to avoid flagging legitimate narration like "I'll wait for your answer."
|
|
421
|
+
const COMMIT_INTENT_RE =
|
|
422
|
+
/\b(?:I['’]ll|I will|Next,? I['’]ll|Now I['’]ll|Let me|I['’]m going to|I am going to)\s+(?:now\s+)?(?:write|create|call|invoke|update|add|make|run|execute|generate|produce|emit|compose|implement|save|apply|commit)\b/i;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Reset the empty-turn counter for a basePath after a successful tool-use turn.
|
|
426
|
+
* Called from handleAgentEnd when the last message contains tool_use blocks.
|
|
427
|
+
*/
|
|
428
|
+
export function resetEmptyTurnCounter(basePath?: string): void {
|
|
429
|
+
if (basePath) emptyTurnCounterByBase.delete(basePath);
|
|
430
|
+
else emptyTurnCounterByBase.clear();
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export function maybeHandleEmptyIntentTurn(
|
|
434
|
+
event: { messages: any[] },
|
|
435
|
+
isAuto: boolean,
|
|
436
|
+
): boolean {
|
|
437
|
+
// Gate: only fire when there is system-driven work in flight. Interactive
|
|
438
|
+
// /gsd discuss (user-driven) produces legitimate text-only turns.
|
|
439
|
+
if (!isAuto && pendingAutoStartMap.size === 0) return false;
|
|
440
|
+
|
|
441
|
+
const lastMsg = event.messages[event.messages.length - 1];
|
|
442
|
+
if (!lastMsg) return false;
|
|
443
|
+
if (hasToolUse(lastMsg)) return false;
|
|
444
|
+
|
|
445
|
+
const text = extractAssistantText(lastMsg).trim();
|
|
446
|
+
if (!text) return false;
|
|
447
|
+
|
|
448
|
+
// Skip if the LLM is emitting the ready phrase — that is the ready-no-files
|
|
449
|
+
// path, handled by maybeHandleReadyPhraseWithoutFiles.
|
|
450
|
+
if (READY_PHRASE_RE.test(text)) return false;
|
|
451
|
+
|
|
452
|
+
// Skip if the LLM is clearly handing back to the user. Keep the heuristic
|
|
453
|
+
// tight: a trailing question mark on the last non-empty line is the common
|
|
454
|
+
// signal for "I asked the user a question and stopped."
|
|
455
|
+
const lines = text.split(/\r?\n/).map((l) => l.trim()).filter(Boolean);
|
|
456
|
+
const lastLine = lines[lines.length - 1] ?? "";
|
|
457
|
+
if (lastLine.endsWith("?")) return false;
|
|
458
|
+
|
|
459
|
+
// Must contain a commit-intent phrase — this is the stall we care about.
|
|
460
|
+
if (!COMMIT_INTENT_RE.test(text)) return false;
|
|
461
|
+
|
|
462
|
+
// Resolve the target basePath + pi for injection. Prefer the pending
|
|
463
|
+
// autostart entry (discuss flow); otherwise we cannot inject.
|
|
464
|
+
const entry = _getPendingAutoStart();
|
|
465
|
+
if (!entry) return false;
|
|
466
|
+
const { ctx, pi, basePath } = entry;
|
|
467
|
+
|
|
468
|
+
const count = (emptyTurnCounterByBase.get(basePath) ?? 0) + 1;
|
|
469
|
+
emptyTurnCounterByBase.set(basePath, count);
|
|
470
|
+
|
|
471
|
+
if (count > MAX_EMPTY_TURN_RETRIES) {
|
|
472
|
+
ctx.ui.notify(
|
|
473
|
+
`Empty-turn recovery: LLM announced intent ${count} times without calling any tool. ` +
|
|
474
|
+
`Stopping auto-nudge.`,
|
|
475
|
+
"error",
|
|
476
|
+
);
|
|
477
|
+
return false; // let the normal flow resolve/pause the unit
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
ctx.ui.notify(
|
|
481
|
+
`Empty-turn detected: LLM announced intent but called no tool. Prompting it to execute.`,
|
|
482
|
+
"info",
|
|
483
|
+
);
|
|
484
|
+
|
|
485
|
+
const nudge =
|
|
486
|
+
`Your last turn announced an action (e.g. "I'll write…" or "Let me call…") ` +
|
|
487
|
+
`but contained no tool call. The system records zero tool-use blocks for ` +
|
|
488
|
+
`that turn. Execute the announced action NOW as a tool call in this turn. ` +
|
|
489
|
+
`Do not describe it again. Retry ${count}/${MAX_EMPTY_TURN_RETRIES}.`;
|
|
490
|
+
|
|
491
|
+
try {
|
|
492
|
+
pi.sendMessage(
|
|
493
|
+
{ customType: "gsd-empty-turn-recovery", content: nudge, display: false },
|
|
494
|
+
{ triggerTurn: true },
|
|
495
|
+
);
|
|
496
|
+
} catch (e) {
|
|
497
|
+
logWarning("guided", `empty-turn nudge sendMessage failed: ${(e as Error).message}`);
|
|
498
|
+
return false;
|
|
499
|
+
}
|
|
500
|
+
return true;
|
|
501
|
+
}
|
|
502
|
+
|
|
282
503
|
/**
|
|
283
504
|
* Extract milestone IDs from PROJECT.md milestone sequence table.
|
|
284
505
|
* Looks for rows like "| M001 | Name | Status |" and extracts the ID column.
|
|
@@ -108,6 +108,7 @@ export function initHealthWidget(ctx: ExtensionContext): void {
|
|
|
108
108
|
let data = initialData;
|
|
109
109
|
let cachedLines: string[] | undefined;
|
|
110
110
|
let refreshInFlight = false;
|
|
111
|
+
let isDisposed = false;
|
|
111
112
|
|
|
112
113
|
const refresh = async () => {
|
|
113
114
|
if (refreshInFlight) return;
|
|
@@ -115,7 +116,7 @@ export function initHealthWidget(ctx: ExtensionContext): void {
|
|
|
115
116
|
try {
|
|
116
117
|
data = loadHealthWidgetData(basePath);
|
|
117
118
|
cachedLines = undefined;
|
|
118
|
-
_tui.requestRender();
|
|
119
|
+
if (!isDisposed) _tui.requestRender();
|
|
119
120
|
} catch { /* non-fatal */ } finally {
|
|
120
121
|
refreshInFlight = false;
|
|
121
122
|
}
|
|
@@ -140,6 +141,7 @@ export function initHealthWidget(ctx: ExtensionContext): void {
|
|
|
140
141
|
},
|
|
141
142
|
invalidate(): void { cachedLines = undefined; cachedWidth = undefined; },
|
|
142
143
|
dispose(): void {
|
|
144
|
+
isDisposed = true;
|
|
143
145
|
clearInterval(refreshTimer);
|
|
144
146
|
},
|
|
145
147
|
};
|
|
@@ -10,7 +10,7 @@ import type { ExtensionAPI, ExtensionCommandContext } from "@gsd/pi-coding-agent
|
|
|
10
10
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from "node:fs";
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
import { showNextAction } from "../shared/tui.js";
|
|
13
|
-
import { nativeIsRepo, nativeInit } from "./native-git-bridge.js";
|
|
13
|
+
import { nativeIsRepo, nativeInit, nativeAddAll, nativeCommit } from "./native-git-bridge.js";
|
|
14
14
|
import { ensureGitignore, untrackRuntimeFiles } from "./gitignore.js";
|
|
15
15
|
import { gsdRoot } from "./paths.js";
|
|
16
16
|
import { assertSafeDirectory } from "./validate-directory.js";
|
|
@@ -74,6 +74,7 @@ export async function showProjectInit(
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
// ── Step 2: Git setup ──────────────────────────────────────────────────────
|
|
77
|
+
let didInitGit = false;
|
|
77
78
|
if (!signals.isGitRepo) {
|
|
78
79
|
const gitChoice = await showNextAction(ctx, {
|
|
79
80
|
title: "GSD — Project Setup",
|
|
@@ -89,6 +90,7 @@ export async function showProjectInit(
|
|
|
89
90
|
|
|
90
91
|
if (gitChoice === "init_git") {
|
|
91
92
|
nativeInit(basePath, prefs.mainBranch);
|
|
93
|
+
didInitGit = true;
|
|
92
94
|
}
|
|
93
95
|
} else {
|
|
94
96
|
// Auto-detect main branch from existing repo
|
|
@@ -295,6 +297,18 @@ export async function showProjectInit(
|
|
|
295
297
|
ensureGitignore(basePath);
|
|
296
298
|
untrackRuntimeFiles(basePath);
|
|
297
299
|
|
|
300
|
+
// Create initial commit so git log and git worktree work immediately (#4530).
|
|
301
|
+
// Without this, the branch is "unborn" (zero commits) and downstream operations
|
|
302
|
+
// like `git log` and `git worktree add` fail.
|
|
303
|
+
if (didInitGit) {
|
|
304
|
+
try {
|
|
305
|
+
nativeAddAll(basePath);
|
|
306
|
+
nativeCommit(basePath, "chore: init project");
|
|
307
|
+
} catch {
|
|
308
|
+
// Non-fatal — user can commit manually; don't block project init
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
298
312
|
// Auto-generate codebase map for instant agent orientation
|
|
299
313
|
try {
|
|
300
314
|
const result = generateCodebaseMap(basePath);
|
|
@@ -39,7 +39,8 @@ export type JournalEventType =
|
|
|
39
39
|
| "worktree-create-failed"
|
|
40
40
|
| "worktree-skip"
|
|
41
41
|
| "worktree-merge-start"
|
|
42
|
-
| "worktree-merge-failed"
|
|
42
|
+
| "worktree-merge-failed"
|
|
43
|
+
| "artifact-verification-retry";
|
|
43
44
|
|
|
44
45
|
/** A single structured event in the journal. */
|
|
45
46
|
export interface JournalEntry {
|