@opengsd/gsd-pi 1.0.2-dev.867e002 → 1.0.2-dev.aed3486
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/onboarding.js +22 -3
- package/dist/resources/.managed-resources-content-hash +1 -1
- package/dist/resources/extensions/context7/index.js +12 -2
- package/dist/resources/extensions/get-secrets-from-user.js +16 -16
- package/dist/resources/extensions/google-cli/index.js +30 -0
- package/dist/resources/extensions/google-cli/models.js +55 -0
- package/dist/resources/extensions/google-cli/package.json +11 -0
- package/dist/resources/extensions/google-cli/readiness.js +12 -0
- package/dist/resources/extensions/google-cli/stream-adapter.js +191 -0
- package/dist/resources/extensions/gsd/auto/loop.js +62 -1
- package/dist/resources/extensions/gsd/auto/orchestrator.js +4 -2
- package/dist/resources/extensions/gsd/auto/phases.js +37 -0
- package/dist/resources/extensions/gsd/auto/run-unit.js +8 -0
- package/dist/resources/extensions/gsd/auto/session.js +3 -0
- package/dist/resources/extensions/gsd/auto-dispatch.js +17 -7
- package/dist/resources/extensions/gsd/auto-post-unit.js +21 -11
- package/dist/resources/extensions/gsd/auto-prompts.js +5 -236
- package/dist/resources/extensions/gsd/auto-recovery.js +10 -5
- package/dist/resources/extensions/gsd/auto-start.js +232 -49
- package/dist/resources/extensions/gsd/auto.js +6 -1
- package/dist/resources/extensions/gsd/bootstrap/db-tools.js +4 -3
- package/dist/resources/extensions/gsd/bootstrap/exec-tools.js +7 -2
- package/dist/resources/extensions/gsd/bootstrap/register-extension.js +39 -5
- package/dist/resources/extensions/gsd/bootstrap/register-hooks.js +17 -7
- package/dist/resources/extensions/gsd/bootstrap/system-context.js +3 -27
- package/dist/resources/extensions/gsd/closeout-recovery.js +7 -1
- package/dist/resources/extensions/gsd/commands/handlers/auto.js +9 -1
- package/dist/resources/extensions/gsd/commands-usage.js +105 -1
- package/dist/resources/extensions/gsd/config-overlay.js +20 -14
- package/dist/resources/extensions/gsd/context-overlay.js +22 -16
- package/dist/resources/extensions/gsd/dashboard-overlay.js +10 -23
- package/dist/resources/extensions/gsd/doctor-engine-checks.js +87 -0
- package/dist/resources/extensions/gsd/doctor-providers.js +54 -24
- package/dist/resources/extensions/gsd/doctor.js +6 -1
- package/dist/resources/extensions/gsd/git-conflict-state.js +26 -1
- package/dist/resources/extensions/gsd/guided-flow.js +5 -6
- package/dist/resources/extensions/gsd/key-manager.js +45 -13
- package/dist/resources/extensions/gsd/milestone-reopen-events.js +28 -0
- package/dist/resources/extensions/gsd/notification-overlay.js +8 -9
- package/dist/resources/extensions/gsd/parallel-monitor-overlay.js +15 -13
- package/dist/resources/extensions/gsd/preferences-skills.js +11 -4
- package/dist/resources/extensions/gsd/preferences.js +14 -2
- package/dist/resources/extensions/gsd/prompt-loader.js +2 -0
- package/dist/resources/extensions/gsd/prompts/discuss.md +4 -2
- package/dist/resources/extensions/gsd/prompts/guided-discuss-milestone.md +2 -0
- package/dist/resources/extensions/gsd/prompts/system.md +1 -3
- package/dist/resources/extensions/gsd/queue-reorder-ui.js +28 -18
- package/dist/resources/extensions/gsd/repository-registry.js +3 -1
- package/dist/resources/extensions/gsd/safety/evidence-collector.js +11 -4
- package/dist/resources/extensions/gsd/skill-activation.js +233 -0
- package/dist/resources/extensions/gsd/skill-catalog.data.js +820 -0
- package/dist/resources/extensions/gsd/skill-catalog.install.js +179 -0
- package/dist/resources/extensions/gsd/skill-catalog.js +5 -1028
- package/dist/resources/extensions/gsd/skill-discovery.js +121 -79
- package/dist/resources/extensions/gsd/skill-scope.js +52 -0
- package/dist/resources/extensions/gsd/skill-telemetry.js +6 -39
- package/dist/resources/extensions/gsd/skills.js +60 -0
- package/dist/resources/extensions/gsd/state-reconciliation/drift/artifact-db.js +351 -0
- package/dist/resources/extensions/gsd/state-reconciliation/index.js +41 -0
- package/dist/resources/extensions/gsd/state-reconciliation/registry.js +4 -0
- package/dist/resources/extensions/gsd/tools/complete-task.js +9 -0
- package/dist/resources/extensions/gsd/tools/exec-tool.js +42 -8
- package/dist/resources/extensions/gsd/tools/workflow-tool-executors.js +63 -2
- package/dist/resources/extensions/gsd/tui/render-kit.js +51 -0
- package/dist/resources/extensions/gsd/unit-context-manifest.js +35 -26
- package/dist/resources/extensions/gsd/user-input-boundary.js +1 -1
- package/dist/resources/extensions/gsd/vision-ask.js +22 -0
- package/dist/resources/extensions/gsd/visualizer-overlay.js +8 -36
- package/dist/resources/extensions/gsd/worktree-lifecycle.js +24 -3
- package/dist/resources/extensions/search-the-web/native-search.js +57 -8
- package/dist/resources/extensions/shared/confirm-ui.js +9 -6
- package/dist/resources/extensions/shared/dialog-frame.js +42 -0
- package/dist/resources/extensions/shared/interview-ui.js +42 -30
- package/dist/resources/extensions/shared/next-action-ui.js +6 -6
- package/dist/resources/skills/create-skill/references/gsd-skill-ecosystem.md +1 -1
- package/dist/web/standalone/.next/BUILD_ID +1 -1
- package/dist/web/standalone/.next/app-path-routes-manifest.json +4 -4
- 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/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 +4 -4
- package/dist/web/standalone/.next/server/chunks/1834.js +2 -2
- package/dist/web/standalone/.next/server/middleware-build-manifest.js +1 -1
- 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/package.json +1 -1
- package/packages/cloud-mcp-gateway/package.json +2 -2
- package/packages/contracts/package.json +1 -1
- package/packages/daemon/package.json +4 -4
- package/packages/gsd-agent-core/dist/session/agent-session-extensions.d.ts +1 -0
- package/packages/gsd-agent-core/dist/session/agent-session-extensions.d.ts.map +1 -1
- package/packages/gsd-agent-core/dist/session/agent-session-extensions.js +22 -8
- package/packages/gsd-agent-core/dist/session/agent-session-extensions.js.map +1 -1
- package/packages/gsd-agent-core/package.json +5 -5
- package/packages/gsd-agent-modes/dist/modes/interactive/components/dialog-container.d.ts +12 -0
- package/packages/gsd-agent-modes/dist/modes/interactive/components/dialog-container.d.ts.map +1 -0
- package/packages/gsd-agent-modes/dist/modes/interactive/components/dialog-container.js +45 -0
- package/packages/gsd-agent-modes/dist/modes/interactive/components/dialog-container.js.map +1 -0
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-editor.d.ts +3 -2
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-editor.js +11 -11
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-input.d.ts +3 -3
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-input.d.ts.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-input.js +13 -11
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-input.js.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-selector.d.ts +3 -3
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-selector.d.ts.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-selector.js +12 -10
- package/packages/gsd-agent-modes/dist/modes/interactive/components/extension-selector.js.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/index.d.ts +1 -0
- package/packages/gsd-agent-modes/dist/modes/interactive/components/index.d.ts.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/index.js +1 -0
- package/packages/gsd-agent-modes/dist/modes/interactive/components/index.js.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/login-dialog.d.ts +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/login-dialog.js +2 -2
- package/packages/gsd-agent-modes/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/oauth-selector.d.ts +6 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/oauth-selector.js +9 -6
- package/packages/gsd-agent-modes/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/transcript-design.d.ts.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/transcript-design.js +0 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/components/transcript-design.js.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/interactive-selectors-auth.d.ts +3 -0
- package/packages/gsd-agent-modes/dist/modes/interactive/interactive-selectors-auth.d.ts.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/interactive-selectors-auth.js +144 -2
- package/packages/gsd-agent-modes/dist/modes/interactive/interactive-selectors-auth.js.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/interactive-selectors-session.d.ts.map +1 -1
- package/packages/gsd-agent-modes/dist/modes/interactive/interactive-selectors-session.js +2 -14
- package/packages/gsd-agent-modes/dist/modes/interactive/interactive-selectors-session.js.map +1 -1
- package/packages/gsd-agent-modes/package.json +7 -7
- package/packages/mcp-server/dist/workflow-tools.d.ts.map +1 -1
- package/packages/mcp-server/dist/workflow-tools.js +10 -5
- package/packages/mcp-server/dist/workflow-tools.js.map +1 -1
- package/packages/mcp-server/package.json +3 -3
- package/packages/native/package.json +1 -1
- package/packages/pi-agent-core/dist/harness/skills.d.ts.map +1 -1
- package/packages/pi-agent-core/dist/harness/skills.js +6 -0
- package/packages/pi-agent-core/dist/harness/skills.js.map +1 -1
- package/packages/pi-agent-core/dist/harness/system-prompt.d.ts +7 -0
- package/packages/pi-agent-core/dist/harness/system-prompt.d.ts.map +1 -1
- package/packages/pi-agent-core/dist/harness/system-prompt.js +7 -0
- package/packages/pi-agent-core/dist/harness/system-prompt.js.map +1 -1
- package/packages/pi-agent-core/package.json +1 -1
- package/packages/pi-ai/dist/models.generated.d.ts +8 -59
- package/packages/pi-ai/dist/models.generated.d.ts.map +1 -1
- package/packages/pi-ai/dist/models.generated.js +21 -72
- package/packages/pi-ai/dist/models.generated.js.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic.js +50 -0
- package/packages/pi-ai/dist/providers/anthropic.js.map +1 -1
- package/packages/pi-ai/dist/providers/openai-responses-shared.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/openai-responses-shared.js +28 -4
- package/packages/pi-ai/dist/providers/openai-responses-shared.js.map +1 -1
- package/packages/pi-ai/dist/types.d.ts +2 -0
- package/packages/pi-ai/dist/types.d.ts.map +1 -1
- package/packages/pi-ai/dist/types.js.map +1 -1
- package/packages/pi-ai/package.json +1 -1
- package/packages/pi-coding-agent/README.md +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/extension-upstream-types.d.ts +2 -2
- package/packages/pi-coding-agent/dist/core/extensions/extension-upstream-types.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/extension-upstream-types.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/loader.js +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/loader.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/runner.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/runner.js +8 -2
- package/packages/pi-coding-agent/dist/core/extensions/runner.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/skills.d.ts +3 -0
- package/packages/pi-coding-agent/dist/core/skills.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/skills.js +3 -0
- package/packages/pi-coding-agent/dist/core/skills.js.map +1 -1
- package/packages/pi-coding-agent/package.json +7 -7
- package/packages/pi-tui/package.json +1 -1
- package/packages/rpc-client/package.json +2 -2
- package/pkg/package.json +1 -1
- package/src/resources/extensions/context7/index.ts +15 -2
- package/src/resources/extensions/get-secrets-from-user.ts +17 -16
- package/src/resources/extensions/google-cli/index.ts +34 -0
- package/src/resources/extensions/google-cli/models.ts +57 -0
- package/src/resources/extensions/google-cli/package.json +11 -0
- package/src/resources/extensions/google-cli/readiness.ts +15 -0
- package/src/resources/extensions/google-cli/stream-adapter.ts +245 -0
- package/src/resources/extensions/gsd/auto/loop.ts +74 -1
- package/src/resources/extensions/gsd/auto/orchestrator.ts +4 -2
- package/src/resources/extensions/gsd/auto/phases.ts +46 -0
- package/src/resources/extensions/gsd/auto/run-unit.ts +10 -0
- package/src/resources/extensions/gsd/auto/session.ts +3 -0
- package/src/resources/extensions/gsd/auto-dispatch.ts +31 -11
- package/src/resources/extensions/gsd/auto-post-unit.ts +43 -14
- package/src/resources/extensions/gsd/auto-prompts.ts +4 -284
- package/src/resources/extensions/gsd/auto-recovery.ts +10 -7
- package/src/resources/extensions/gsd/auto-start.ts +307 -56
- package/src/resources/extensions/gsd/auto.ts +6 -1
- package/src/resources/extensions/gsd/bootstrap/db-tools.ts +4 -3
- package/src/resources/extensions/gsd/bootstrap/exec-tools.ts +9 -4
- package/src/resources/extensions/gsd/bootstrap/register-extension.ts +42 -5
- package/src/resources/extensions/gsd/bootstrap/register-hooks.ts +18 -6
- package/src/resources/extensions/gsd/bootstrap/system-context.ts +3 -28
- package/src/resources/extensions/gsd/closeout-recovery.ts +6 -1
- package/src/resources/extensions/gsd/commands/handlers/auto.ts +9 -1
- package/src/resources/extensions/gsd/commands-usage.ts +110 -5
- package/src/resources/extensions/gsd/config-overlay.ts +19 -16
- package/src/resources/extensions/gsd/context-overlay.ts +24 -19
- package/src/resources/extensions/gsd/dashboard-overlay.ts +14 -27
- package/src/resources/extensions/gsd/doctor-engine-checks.ts +99 -0
- package/src/resources/extensions/gsd/doctor-providers.ts +55 -27
- package/src/resources/extensions/gsd/doctor-types.ts +2 -0
- package/src/resources/extensions/gsd/doctor.ts +6 -1
- package/src/resources/extensions/gsd/git-conflict-state.ts +25 -1
- package/src/resources/extensions/gsd/guided-flow.ts +5 -6
- package/src/resources/extensions/gsd/key-manager.ts +57 -14
- package/src/resources/extensions/gsd/milestone-reopen-events.ts +28 -0
- package/src/resources/extensions/gsd/notification-overlay.ts +12 -11
- package/src/resources/extensions/gsd/parallel-monitor-overlay.ts +16 -12
- package/src/resources/extensions/gsd/preferences-skills.ts +11 -4
- package/src/resources/extensions/gsd/preferences.ts +17 -2
- package/src/resources/extensions/gsd/prompt-loader.ts +2 -0
- package/src/resources/extensions/gsd/prompts/discuss.md +4 -2
- package/src/resources/extensions/gsd/prompts/guided-discuss-milestone.md +2 -0
- package/src/resources/extensions/gsd/prompts/system.md +1 -3
- package/src/resources/extensions/gsd/queue-reorder-ui.ts +29 -20
- package/src/resources/extensions/gsd/repository-registry.ts +3 -1
- package/src/resources/extensions/gsd/safety/evidence-collector.ts +11 -4
- package/src/resources/extensions/gsd/skill-activation.ts +292 -0
- package/src/resources/extensions/gsd/skill-catalog.data.ts +858 -0
- package/src/resources/extensions/gsd/skill-catalog.install.ts +205 -0
- package/src/resources/extensions/gsd/skill-catalog.ts +16 -1087
- package/src/resources/extensions/gsd/skill-discovery.ts +134 -78
- package/src/resources/extensions/gsd/skill-scope.ts +63 -0
- package/src/resources/extensions/gsd/skill-telemetry.ts +6 -40
- package/src/resources/extensions/gsd/skills.ts +75 -0
- package/src/resources/extensions/gsd/state-reconciliation/drift/artifact-db.ts +499 -0
- package/src/resources/extensions/gsd/state-reconciliation/index.ts +40 -0
- package/src/resources/extensions/gsd/state-reconciliation/registry.ts +8 -0
- package/src/resources/extensions/gsd/state-reconciliation/types.ts +30 -0
- package/src/resources/extensions/gsd/tests/auto-loop.test.ts +328 -2
- package/src/resources/extensions/gsd/tests/auto-orchestrator.test.ts +21 -0
- package/src/resources/extensions/gsd/tests/auto-post-unit-artifact-diagnostic.test.ts +28 -2
- package/src/resources/extensions/gsd/tests/auto-post-unit-evidence-crossref-4909.test.ts +30 -0
- package/src/resources/extensions/gsd/tests/auto-recovery.test.ts +41 -0
- package/src/resources/extensions/gsd/tests/auto-retry-mcp-churn-fixes.test.ts +12 -0
- package/src/resources/extensions/gsd/tests/auto-start-orphan-bootstrap.test.ts +436 -0
- package/src/resources/extensions/gsd/tests/closeout-recovery.test.ts +15 -0
- package/src/resources/extensions/gsd/tests/collect-from-manifest.test.ts +31 -0
- package/src/resources/extensions/gsd/tests/commands-context.test.ts +5 -3
- package/src/resources/extensions/gsd/tests/commands-dispatcher-workspace-git.test.ts +15 -2
- package/src/resources/extensions/gsd/tests/commands-usage.test.ts +97 -0
- package/src/resources/extensions/gsd/tests/context-chart.test.ts +9 -0
- package/src/resources/extensions/gsd/tests/dashboard-overlay.test.ts +25 -0
- package/src/resources/extensions/gsd/tests/discord-invite-links.test.ts +1 -0
- package/src/resources/extensions/gsd/tests/discuss-prompt.test.ts +4 -2
- package/src/resources/extensions/gsd/tests/discuss-tool-scoping.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/doctor-providers.test.ts +105 -0
- package/src/resources/extensions/gsd/tests/doctor-scope-db-unavailable.test.ts +101 -1
- package/src/resources/extensions/gsd/tests/exec-sandbox.test.ts +30 -0
- package/src/resources/extensions/gsd/tests/guided-discuss-milestone-prompt-rendering.test.ts +6 -0
- package/src/resources/extensions/gsd/tests/key-manager.test.ts +23 -4
- package/src/resources/extensions/gsd/tests/notification-overlay.test.ts +6 -1
- package/src/resources/extensions/gsd/tests/orphaned-worktree-audit.test.ts +70 -10
- package/src/resources/extensions/gsd/tests/parallel-monitor-overlay.test.ts +7 -1
- package/src/resources/extensions/gsd/tests/post-unit-retry-on-orchestrator-bridge.test.ts +93 -0
- package/src/resources/extensions/gsd/tests/queue-reorder-ui.test.ts +46 -0
- package/src/resources/extensions/gsd/tests/register-extension-guard.test.ts +116 -11
- package/src/resources/extensions/gsd/tests/repository-registry.test.ts +30 -1
- package/src/resources/extensions/gsd/tests/show-config-command.test.ts +4 -0
- package/src/resources/extensions/gsd/tests/skill-discovery.test.ts +111 -0
- package/src/resources/extensions/gsd/tests/skill-scope-auto.test.ts +67 -0
- package/src/resources/extensions/gsd/tests/skills.test.ts +55 -0
- package/src/resources/extensions/gsd/tests/start-auto-detached.test.ts +13 -2
- package/src/resources/extensions/gsd/tests/state-reconciliation-drift.test.ts +303 -0
- package/src/resources/extensions/gsd/tests/token-tool-gating.test.ts +19 -0
- package/src/resources/extensions/gsd/tests/tool-param-optionality.test.ts +24 -1
- package/src/resources/extensions/gsd/tests/tui-border-assertions.ts +28 -0
- package/src/resources/extensions/gsd/tests/tui-render-kit.test.ts +14 -0
- package/src/resources/extensions/gsd/tests/unit-context-manifest.test.ts +18 -0
- package/src/resources/extensions/gsd/tests/user-input-boundary.test.ts +26 -0
- package/src/resources/extensions/gsd/tests/vision-ask.test.ts +23 -0
- package/src/resources/extensions/gsd/tests/visualizer-overlay.test.ts +6 -1
- package/src/resources/extensions/gsd/tests/workflow-mcp-auto-prep.test.ts +74 -1
- package/src/resources/extensions/gsd/tests/workflow-tool-executors.test.ts +82 -0
- package/src/resources/extensions/gsd/tests/workspace-git-preflight.test.ts +16 -1
- package/src/resources/extensions/gsd/tests/worktree-lifecycle.test.ts +28 -0
- package/src/resources/extensions/gsd/tests/zombie-gsd-state.test.ts +45 -1
- package/src/resources/extensions/gsd/tools/complete-task.ts +9 -0
- package/src/resources/extensions/gsd/tools/exec-tool.ts +42 -10
- package/src/resources/extensions/gsd/tools/workflow-tool-executors.ts +82 -5
- package/src/resources/extensions/gsd/tui/render-kit.ts +82 -0
- package/src/resources/extensions/gsd/unit-context-manifest.ts +37 -26
- package/src/resources/extensions/gsd/user-input-boundary.ts +1 -1
- package/src/resources/extensions/gsd/vision-ask.ts +28 -0
- package/src/resources/extensions/gsd/visualizer-overlay.ts +12 -40
- package/src/resources/extensions/gsd/worktree-lifecycle.ts +37 -2
- package/src/resources/extensions/search-the-web/native-search.ts +60 -8
- package/src/resources/extensions/shared/confirm-ui.ts +8 -12
- package/src/resources/extensions/shared/dialog-frame.ts +71 -0
- package/src/resources/extensions/shared/interview-ui.ts +43 -42
- package/src/resources/extensions/shared/next-action-ui.ts +6 -6
- package/src/resources/extensions/shared/tests/confirm-ui.test.ts +57 -0
- package/src/resources/extensions/shared/tests/interview-ui-border.test.ts +163 -0
- package/src/resources/extensions/shared/tests/next-action-ui-hasui.test.ts +55 -0
- package/src/resources/skills/create-skill/references/gsd-skill-ecosystem.md +1 -1
- /package/dist/web/standalone/.next/static/{praHP_OATcjBkvAVejjGK → _LIEWYP8ISVAPKAEEXxFr}/_buildManifest.js +0 -0
- /package/dist/web/standalone/.next/static/{praHP_OATcjBkvAVejjGK → _LIEWYP8ISVAPKAEEXxFr}/_ssgManifest.js +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import { formattedShortcutPair } from "./shortcut-defs.js";
|
|
16
16
|
import {
|
|
17
17
|
padRightVisible,
|
|
18
|
-
|
|
18
|
+
renderDialogFrame,
|
|
19
19
|
renderKeyHints,
|
|
20
20
|
rightAlign,
|
|
21
21
|
wrapVisibleText,
|
|
@@ -200,13 +200,20 @@ export class GSDNotificationOverlay {
|
|
|
200
200
|
availableRows,
|
|
201
201
|
Math.max(1, Math.floor((terminalRows * OVERLAY_MAX_HEIGHT_PERCENT) / 100)),
|
|
202
202
|
);
|
|
203
|
-
const maxVisibleRows = Math.max(5, overlayRows -
|
|
203
|
+
const maxVisibleRows = Math.max(5, overlayRows - 4);
|
|
204
204
|
const visibleContentRows = Math.min(content.length, maxVisibleRows);
|
|
205
205
|
const maxScroll = Math.max(0, content.length - visibleContentRows);
|
|
206
206
|
this.scrollOffset = Math.min(this.scrollOffset, maxScroll);
|
|
207
207
|
const visibleContent = content.slice(this.scrollOffset, this.scrollOffset + visibleContentRows);
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
const footer = renderKeyHints(
|
|
209
|
+
this.theme,
|
|
210
|
+
["↑/↓ scroll", "f filter", "c clear", `Esc/${formattedShortcutPair("notifications")} close`],
|
|
211
|
+
Math.max(1, width - 4),
|
|
212
|
+
);
|
|
213
|
+
const lines = renderDialogFrame(this.theme, "Notifications", visibleContent, width, {
|
|
214
|
+
footer,
|
|
215
|
+
scroll: { offset: this.scrollOffset, visibleRows: visibleContentRows, totalRows: content.length },
|
|
216
|
+
});
|
|
210
217
|
|
|
211
218
|
this.cachedWidth = width;
|
|
212
219
|
this.cachedLines = lines;
|
|
@@ -256,8 +263,6 @@ export class GSDNotificationOverlay {
|
|
|
256
263
|
const blank = () => row("");
|
|
257
264
|
const hr = () => row(th.fg("dim", "─".repeat(contentWidth)));
|
|
258
265
|
|
|
259
|
-
// Header
|
|
260
|
-
const title = th.fg("accent", th.bold("Notifications"));
|
|
261
266
|
const filterLabel = this.filter === "all"
|
|
262
267
|
? th.fg("dim", "all")
|
|
263
268
|
: th.fg(
|
|
@@ -269,15 +274,11 @@ export class GSDNotificationOverlay {
|
|
|
269
274
|
);
|
|
270
275
|
const count = `${this.filteredEntries.length} entries`;
|
|
271
276
|
lines.push(row(rightAlign(
|
|
272
|
-
`${
|
|
277
|
+
`${th.fg("dim", "filter:")} ${filterLabel}`,
|
|
273
278
|
th.fg("dim", count),
|
|
274
279
|
contentWidth,
|
|
275
280
|
)));
|
|
276
281
|
lines.push(hr());
|
|
277
|
-
|
|
278
|
-
// Controls
|
|
279
|
-
const closeShortcut = formattedShortcutPair("notifications");
|
|
280
|
-
lines.push(row(renderKeyHints(th, ["↑/↓ scroll", "f filter", "c clear", `Esc/${closeShortcut} close`], contentWidth)));
|
|
281
282
|
lines.push(blank());
|
|
282
283
|
|
|
283
284
|
// Entries
|
|
@@ -13,6 +13,7 @@ import { formattedShortcutPair } from "./shortcut-defs.js";
|
|
|
13
13
|
import { resolveGsdPathContract } from "./paths.js";
|
|
14
14
|
import {
|
|
15
15
|
renderBar,
|
|
16
|
+
renderDialogFrame,
|
|
16
17
|
renderKeyHints,
|
|
17
18
|
renderProgressBar,
|
|
18
19
|
safeLine,
|
|
@@ -378,19 +379,18 @@ export class ParallelMonitorOverlay {
|
|
|
378
379
|
const t = this.theme;
|
|
379
380
|
const lines: string[] = [];
|
|
380
381
|
const w = Math.max(1, width);
|
|
382
|
+
const contentWidth = Math.max(1, w - 4);
|
|
381
383
|
|
|
382
|
-
// Header
|
|
383
384
|
const totalCost = this.workers.reduce((s, wk) => s + wk.cost, 0);
|
|
384
385
|
const aliveCount = this.workers.filter((wk) => wk.alive).length;
|
|
385
386
|
const now = new Date().toLocaleTimeString();
|
|
386
387
|
|
|
387
|
-
lines.push(t.bold(t.fg("accent", " GSD Parallel Monitor ")));
|
|
388
388
|
lines.push(
|
|
389
389
|
t.fg("muted", ` ${now} │ ${aliveCount}/${this.workers.length} alive │ Total: `) +
|
|
390
390
|
t.bold(`$${totalCost.toFixed(2)}`) +
|
|
391
391
|
t.fg("muted", " │ 5s refresh"),
|
|
392
392
|
);
|
|
393
|
-
lines.push(renderBar(t,
|
|
393
|
+
lines.push(renderBar(t, contentWidth));
|
|
394
394
|
|
|
395
395
|
if (this.workers.length === 0) {
|
|
396
396
|
lines.push("");
|
|
@@ -444,7 +444,7 @@ export class ParallelMonitorOverlay {
|
|
|
444
444
|
lines.push(` ${t.fg("muted", "slices")} ${chips.join(" ")}`);
|
|
445
445
|
|
|
446
446
|
// Task progress bar
|
|
447
|
-
const barWidth = Math.max(6, Math.min(25,
|
|
447
|
+
const barWidth = Math.max(6, Math.min(25, contentWidth - 32));
|
|
448
448
|
const bar = renderProgressBar(t, wk.doneTasks, wk.totalTasks, barWidth, {
|
|
449
449
|
filledChar: "█",
|
|
450
450
|
emptyChar: "░",
|
|
@@ -466,7 +466,7 @@ export class ParallelMonitorOverlay {
|
|
|
466
466
|
|
|
467
467
|
// Event feed
|
|
468
468
|
lines.push("");
|
|
469
|
-
lines.push(renderBar(t,
|
|
469
|
+
lines.push(renderBar(t, contentWidth));
|
|
470
470
|
lines.push(` ${t.bold("Recent Events")}`);
|
|
471
471
|
|
|
472
472
|
if (this.events.length === 0) {
|
|
@@ -478,7 +478,6 @@ export class ParallelMonitorOverlay {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
-
// Footer
|
|
482
481
|
lines.push("");
|
|
483
482
|
const allDone = this.workers.length > 0 && this.workers.every((wk) => !wk.alive);
|
|
484
483
|
if (allDone) {
|
|
@@ -491,17 +490,22 @@ export class ParallelMonitorOverlay {
|
|
|
491
490
|
}
|
|
492
491
|
lines.push(` ${t.bold("Total: $" + this.workers.reduce((s, wk) => s + wk.cost, 0).toFixed(2))}`);
|
|
493
492
|
}
|
|
494
|
-
lines.push(renderKeyHints(t, [`ESC/q/${formattedShortcutPair("parallel")} close`, "↑↓ scroll"], w));
|
|
495
493
|
|
|
496
494
|
// Apply scroll — use terminal rows as height estimate
|
|
497
495
|
const termHeight = process.stdout.rows || 40;
|
|
498
|
-
const
|
|
496
|
+
const maxBodyRows = Math.max(1, Math.min(lines.length, termHeight - 12));
|
|
497
|
+
const maxScroll = Math.max(0, lines.length - maxBodyRows);
|
|
499
498
|
this.scrollOffset = Math.min(Math.max(this.scrollOffset, 0), maxScroll);
|
|
500
499
|
const visible = lines
|
|
501
|
-
.slice(this.scrollOffset, this.scrollOffset +
|
|
502
|
-
.map((line) => safeLine(line,
|
|
503
|
-
|
|
500
|
+
.slice(this.scrollOffset, this.scrollOffset + maxBodyRows)
|
|
501
|
+
.map((line) => safeLine(line, contentWidth));
|
|
502
|
+
const footer = renderKeyHints(t, [`ESC/q/${formattedShortcutPair("parallel")} close`, "↑↓ scroll"], contentWidth);
|
|
503
|
+
|
|
504
|
+
this.cachedLines = renderDialogFrame(t, "GSD Parallel Monitor", visible, w, {
|
|
505
|
+
footer,
|
|
506
|
+
scroll: { offset: this.scrollOffset, visibleRows: maxBodyRows, totalRows: lines.length },
|
|
507
|
+
});
|
|
504
508
|
this.cachedWidth = width;
|
|
505
|
-
return
|
|
509
|
+
return this.cachedLines;
|
|
506
510
|
}
|
|
507
511
|
}
|
|
@@ -23,10 +23,17 @@ import { validatePreferences } from "./preferences-validation.js";
|
|
|
23
23
|
export type { GSDSkillRule, SkillDiscoveryMode, SkillResolution, SkillResolutionReport } from "./preferences-types.js";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* Known skill directories
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* Known skill directories for **preference reference resolution** (bare skill names).
|
|
27
|
+
*
|
|
28
|
+
* Search order (first match wins):
|
|
29
|
+
* 1. ~/.gsd/agent/skills/ (GSD bundled)
|
|
30
|
+
* 2. ~/.agents/skills/ (ecosystem global)
|
|
31
|
+
* 3. .agents/skills/ (project ecosystem)
|
|
32
|
+
* 4. ~/.claude/skills/ and .claude/skills/ (Claude Code compatibility)
|
|
33
|
+
*
|
|
34
|
+
* Note: the ResourceLoader catalog uses PackageManager precedence instead —
|
|
35
|
+
* project `.gsd/skills` and `.agents/skills` can override bundled GSD skills
|
|
36
|
+
* on name collision. See docs/dev/what-is-pi/09-the-customization-stack.md.
|
|
30
37
|
*/
|
|
31
38
|
export function getSkillSearchDirs(cwd: string): Array<{ dir: string; method: SkillResolution["method"] }> {
|
|
32
39
|
const dirs: Array<{ dir: string; method: SkillResolution["method"] }> = [
|
|
@@ -570,9 +570,14 @@ function mergePreDispatchHooks(
|
|
|
570
570
|
|
|
571
571
|
// ─── System Prompt Rendering ──────────────────────────────────────────────────
|
|
572
572
|
|
|
573
|
-
export function renderPreferencesForSystemPrompt(
|
|
573
|
+
export function renderPreferencesForSystemPrompt(
|
|
574
|
+
preferences: GSDPreferences,
|
|
575
|
+
resolutions?: Map<string, SkillResolution>,
|
|
576
|
+
options?: { includeResolvedPaths?: boolean },
|
|
577
|
+
): string {
|
|
574
578
|
const validated = validatePreferences(preferences);
|
|
575
579
|
const lines: string[] = ["## GSD Skill Preferences"];
|
|
580
|
+
const includeResolvedPaths = options?.includeResolvedPaths ?? true;
|
|
576
581
|
|
|
577
582
|
if (validated.errors.length > 0) {
|
|
578
583
|
lines.push("- Validation: some preference values were ignored because they were invalid.");
|
|
@@ -589,7 +594,17 @@ export function renderPreferencesForSystemPrompt(preferences: GSDPreferences, re
|
|
|
589
594
|
"- Current user instructions still override these defaults.",
|
|
590
595
|
);
|
|
591
596
|
|
|
592
|
-
const fmt = (ref: string) =>
|
|
597
|
+
const fmt = (ref: string) => {
|
|
598
|
+
if (!resolutions) return ref;
|
|
599
|
+
if (!includeResolvedPaths) {
|
|
600
|
+
const resolution = resolutions.get(ref);
|
|
601
|
+
if (!resolution || resolution.method === "unresolved") {
|
|
602
|
+
return `${ref} (⚠ not found — check skill name or path)`;
|
|
603
|
+
}
|
|
604
|
+
return ref;
|
|
605
|
+
}
|
|
606
|
+
return formatSkillRef(ref, resolutions);
|
|
607
|
+
};
|
|
593
608
|
|
|
594
609
|
if (preferences.always_use_skills && preferences.always_use_skills.length > 0) {
|
|
595
610
|
lines.push("- Always use these skills when relevant:");
|
|
@@ -22,6 +22,7 @@ import { join, dirname } from "node:path";
|
|
|
22
22
|
import { fileURLToPath } from "node:url";
|
|
23
23
|
import { logWarning } from "./workflow-logger.js";
|
|
24
24
|
import { gsdHome } from "./gsd-home.js";
|
|
25
|
+
import { chooseVisionAskVariant } from "./vision-ask.js";
|
|
25
26
|
|
|
26
27
|
type ExistsFn = (path: string) => boolean;
|
|
27
28
|
|
|
@@ -184,6 +185,7 @@ export function loadPrompt(name: string, vars: Record<string, string> = {}): str
|
|
|
184
185
|
planTemplatePath: join(getTemplatesDir(), "plan.md"),
|
|
185
186
|
taskPlanTemplatePath: join(getTemplatesDir(), "task-plan.md"),
|
|
186
187
|
taskSummaryTemplatePath: join(getTemplatesDir(), "task-summary.md"),
|
|
188
|
+
visionAsk: chooseVisionAskVariant(),
|
|
187
189
|
skillActivation: "If a `GSD Skill Preferences` block is present in system context, use it and the `<available_skills>` catalog in your system prompt to decide which skills to load and follow for this unit, without relaxing required verification or artifact rules.",
|
|
188
190
|
...vars,
|
|
189
191
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{{preamble}}
|
|
2
2
|
|
|
3
|
-
Ask
|
|
3
|
+
Ask exactly this once: "{{visionAsk}}" Then use the user's reply as vision input.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The opener is intentionally variable so GSD feels alive across project starts. Keep it natural, easy to answer, and assistant/developer shaped: plain language, light guidance, no corporate wording, no roleplay.
|
|
6
|
+
|
|
7
|
+
**Special handling:** If the **user's** message is status, branch state, clarification, or any other non-project-description, treat it as vision input and proceed instead of repeating the opener. Do **not** treat the system preamble above (e.g. "New milestone M00X.") as vision input — wait for the user.
|
|
6
8
|
|
|
7
9
|
## Reflection Step
|
|
8
10
|
|
|
@@ -4,6 +4,8 @@ Discuss milestone {{milestoneId}} ("{{milestoneTitle}}"). Identify real gray are
|
|
|
4
4
|
|
|
5
5
|
**Structured questions available: {{structuredQuestionsAvailable}}**
|
|
6
6
|
|
|
7
|
+
**Conversation opener:** For the first user-facing question round, if you need a broad starting question, use: "{{visionAsk}}" Pair it with investigation-shaped follow-ups. Keep the tone natural and easy to answer, like an assistant/developer helping the user shape the next piece of work.
|
|
8
|
+
|
|
7
9
|
{{inlinedTemplates}}
|
|
8
10
|
|
|
9
11
|
---
|
|
@@ -19,9 +19,7 @@ Leave the project ready for the next agent to understand and continue. Artifacts
|
|
|
19
19
|
|
|
20
20
|
## Skills
|
|
21
21
|
|
|
22
|
-
GSD ships with bundled skills.
|
|
23
|
-
|
|
24
|
-
{{bundledSkillsTable}}
|
|
22
|
+
GSD ships with bundled skills. Installed skills are listed in `<available_skills>` in your system prompt — load the relevant skill file with `read` using the path shown there before starting matching work. Use bare skill names in preferences; GSD resolves paths.
|
|
25
23
|
|
|
26
24
|
## Hard Rules
|
|
27
25
|
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
import type { ExtensionContext } from "@gsd/pi-coding-agent";
|
|
12
12
|
import { type Theme } from "@gsd/pi-coding-agent";
|
|
13
13
|
import { Key, matchesKey, truncateToWidth, type TUI } from "@gsd/pi-tui";
|
|
14
|
-
import { makeUI } from "../shared/tui.js";
|
|
15
14
|
import { GLYPH } from "../shared/mod.js";
|
|
16
15
|
import { validateQueueOrder, type DependencyValidation } from "./queue-order.js";
|
|
16
|
+
import { renderDialogFrame, renderKeyHints } from "./tui/render-kit.js";
|
|
17
17
|
|
|
18
18
|
export interface ReorderItem {
|
|
19
19
|
id: string;
|
|
@@ -45,6 +45,7 @@ export async function showQueueReorder(
|
|
|
45
45
|
let grabbed = false;
|
|
46
46
|
let scrollOffset = 0;
|
|
47
47
|
let cachedLines: string[] | undefined;
|
|
48
|
+
let cachedWidth: number | undefined;
|
|
48
49
|
let validation: DependencyValidation;
|
|
49
50
|
|
|
50
51
|
// Mutable deps map — tracks removals during this session
|
|
@@ -66,6 +67,7 @@ export async function showQueueReorder(
|
|
|
66
67
|
|
|
67
68
|
function refresh() {
|
|
68
69
|
cachedLines = undefined;
|
|
70
|
+
cachedWidth = undefined;
|
|
69
71
|
tui.requestRender();
|
|
70
72
|
}
|
|
71
73
|
|
|
@@ -151,17 +153,15 @@ export async function showQueueReorder(
|
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
function render(width: number): string[] {
|
|
154
|
-
if (cachedLines) return cachedLines;
|
|
156
|
+
if (cachedLines && cachedWidth === width) return cachedLines;
|
|
155
157
|
|
|
156
|
-
const
|
|
158
|
+
const contentWidth = Math.max(1, width - 4);
|
|
157
159
|
const lines: string[] = [];
|
|
158
160
|
const queueRows: string[] = [];
|
|
159
|
-
const
|
|
160
|
-
const add = (s: string) => truncateToWidth(s, width);
|
|
161
|
+
const add = (s: string) => truncateToWidth(s, contentWidth);
|
|
161
162
|
let cursorQueueRow = 0;
|
|
162
163
|
|
|
163
|
-
const headerText = grabbed ? "
|
|
164
|
-
push(ui.bar(), ui.blank(), ui.header(headerText), ui.blank());
|
|
164
|
+
const headerText = grabbed ? "Queue Reorder - Moving Item" : "Queue Reorder";
|
|
165
165
|
|
|
166
166
|
// Completed milestones (dimmed)
|
|
167
167
|
if (completed.length > 0) {
|
|
@@ -170,7 +170,7 @@ export async function showQueueReorder(
|
|
|
170
170
|
const label = m.title && m.title !== m.id ? `${m.id} ${m.title}` : m.id;
|
|
171
171
|
lines.push(add(` ${theme.fg("dim", `${GLYPH.statusDone} ${label}`)}`));
|
|
172
172
|
}
|
|
173
|
-
push(
|
|
173
|
+
lines.push("");
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
// Pending milestones
|
|
@@ -223,7 +223,7 @@ export async function showQueueReorder(
|
|
|
223
223
|
// Removed deps feedback
|
|
224
224
|
const trailingLines: string[] = [];
|
|
225
225
|
if (removedDeps.length > 0) {
|
|
226
|
-
trailingLines.push(
|
|
226
|
+
trailingLines.push("");
|
|
227
227
|
for (const r of removedDeps) {
|
|
228
228
|
trailingLines.push(add(` ${theme.fg("success", `${GLYPH.statusDone} Removed: ${r.milestone} depends_on ${r.dep}`)}`));
|
|
229
229
|
}
|
|
@@ -232,12 +232,10 @@ export async function showQueueReorder(
|
|
|
232
232
|
// Circular warning
|
|
233
233
|
const circ = validation.violations.find(v => v.type === 'circular');
|
|
234
234
|
if (circ) {
|
|
235
|
-
trailingLines.push(
|
|
235
|
+
trailingLines.push("");
|
|
236
236
|
trailingLines.push(add(` ${theme.fg("error", `${GLYPH.statusWarning} ${circ.message}`)}`));
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
trailingLines.push(...ui.blank());
|
|
240
|
-
|
|
241
239
|
// Hints — context-sensitive based on grab state
|
|
242
240
|
const hints: string[] = [];
|
|
243
241
|
if (grabbed) {
|
|
@@ -256,10 +254,9 @@ export async function showQueueReorder(
|
|
|
256
254
|
}
|
|
257
255
|
hints.push("esc");
|
|
258
256
|
|
|
259
|
-
trailingLines.push(...ui.hints(hints), ...ui.bar());
|
|
260
|
-
|
|
261
257
|
const maxOverlayRows = Math.max(10, process.stdout.rows ? Math.floor(process.stdout.rows * 0.8) : 24);
|
|
262
|
-
const
|
|
258
|
+
const frameRows = 4;
|
|
259
|
+
const availableQueueRows = Math.max(1, maxOverlayRows - frameRows - lines.length - trailingLines.length);
|
|
263
260
|
const maxScroll = Math.max(0, queueRows.length - availableQueueRows);
|
|
264
261
|
if (cursorQueueRow < scrollOffset) {
|
|
265
262
|
scrollOffset = cursorQueueRow;
|
|
@@ -268,13 +265,25 @@ export async function showQueueReorder(
|
|
|
268
265
|
}
|
|
269
266
|
scrollOffset = Math.min(Math.max(scrollOffset, 0), maxScroll);
|
|
270
267
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
268
|
+
const queueStartRow = lines.length;
|
|
269
|
+
const visibleQueueRows = queueRows.slice(scrollOffset, scrollOffset + availableQueueRows);
|
|
270
|
+
lines.push(...visibleQueueRows, ...trailingLines);
|
|
271
|
+
|
|
272
|
+
cachedLines = renderDialogFrame(theme, headerText, lines, width, {
|
|
273
|
+
footer: renderKeyHints(theme, hints, contentWidth),
|
|
274
|
+
scroll: {
|
|
275
|
+
offset: scrollOffset,
|
|
276
|
+
visibleRows: availableQueueRows,
|
|
277
|
+
totalRows: queueRows.length,
|
|
278
|
+
trackOffset: queueStartRow,
|
|
279
|
+
trackRows: visibleQueueRows.length,
|
|
280
|
+
},
|
|
281
|
+
});
|
|
282
|
+
cachedWidth = width;
|
|
283
|
+
return cachedLines;
|
|
275
284
|
}
|
|
276
285
|
|
|
277
|
-
return { render, invalidate: () => { cachedLines = undefined; }, handleInput };
|
|
286
|
+
return { render, invalidate: () => { cachedLines = undefined; cachedWidth = undefined; }, handleInput };
|
|
278
287
|
}, {
|
|
279
288
|
overlay: true,
|
|
280
289
|
overlayOptions: { width: "70%", minWidth: 50, maxHeight: "80%", anchor: "center" },
|
|
@@ -77,7 +77,9 @@ export function createRepositoryRegistry(
|
|
|
77
77
|
workspacePrefs?: WorkspacePreferences,
|
|
78
78
|
): RepositoryRegistry {
|
|
79
79
|
const contract = resolveGsdPathContract(basePath);
|
|
80
|
-
const projectRoot =
|
|
80
|
+
const projectRoot = contract.isWorktree
|
|
81
|
+
? resolveGitWorkingTreeRoot(contract.workRoot) ?? contract.projectRoot
|
|
82
|
+
: contract.projectRoot;
|
|
81
83
|
const mode = workspacePrefs?.mode ?? "project";
|
|
82
84
|
const repoMap = new Map<string, RegisteredRepository>();
|
|
83
85
|
|
|
@@ -51,14 +51,15 @@ export interface FileEditEvidence {
|
|
|
51
51
|
export type EvidenceEntry = BashEvidence | FileWriteEvidence | FileEditEvidence;
|
|
52
52
|
|
|
53
53
|
const EXECUTION_TOOL_NAMES = new Set([
|
|
54
|
-
"bash",
|
|
55
|
-
"Bash",
|
|
56
|
-
"PowerShell",
|
|
57
54
|
"async_bash",
|
|
55
|
+
"bash",
|
|
56
|
+
"exec_command",
|
|
57
|
+
"functions.exec_command",
|
|
58
58
|
"gsd_exec",
|
|
59
59
|
"gsd_exec_search",
|
|
60
60
|
"mcp__gsd-workflow__gsd_exec",
|
|
61
61
|
"mcp__gsd-workflow__gsd_exec_search",
|
|
62
|
+
"powershell",
|
|
62
63
|
]);
|
|
63
64
|
|
|
64
65
|
// ─── Module State ───────────────────────────────────────────────────────────
|
|
@@ -89,6 +90,12 @@ export function getFilePaths(): string[] {
|
|
|
89
90
|
.map(e => e.path);
|
|
90
91
|
}
|
|
91
92
|
|
|
93
|
+
/** True when a tool name represents a shell/command execution surface. */
|
|
94
|
+
export function isExecutionToolName(name: unknown): boolean {
|
|
95
|
+
if (typeof name !== "string") return false;
|
|
96
|
+
return EXECUTION_TOOL_NAMES.has(name.trim().toLowerCase());
|
|
97
|
+
}
|
|
98
|
+
|
|
92
99
|
// ─── Persistence (Bug #4385 — evidence must survive session restarts) ────────
|
|
93
100
|
|
|
94
101
|
/**
|
|
@@ -199,7 +206,7 @@ export function clearEvidenceFromDisk(
|
|
|
199
206
|
* Exit codes and output are filled in by recordToolResult after execution.
|
|
200
207
|
*/
|
|
201
208
|
export function recordToolCall(toolCallId: string, toolName: string, input: Record<string, unknown>): void {
|
|
202
|
-
if (
|
|
209
|
+
if (isExecutionToolName(toolName)) {
|
|
203
210
|
unitEvidence.push({
|
|
204
211
|
kind: "bash",
|
|
205
212
|
toolCallId,
|