gsd-pi 2.81.0 → 2.82.0-dev.ed17d078d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -30
- package/dist/resources/.managed-resources-content-hash +1 -1
- package/dist/resources/extensions/browser-tools/tools/screenshot.js +1 -0
- package/dist/resources/extensions/browser-tools/tools/zoom.js +1 -0
- package/dist/resources/extensions/gsd/auto/loop.js +111 -8
- package/dist/resources/extensions/gsd/auto/orchestrator.js +113 -6
- package/dist/resources/extensions/gsd/auto/phases.js +199 -97
- package/dist/resources/extensions/gsd/auto/run-unit.js +66 -3
- package/dist/resources/extensions/gsd/auto/session.js +9 -0
- package/dist/resources/extensions/gsd/auto/verification-retry-policy.js +43 -0
- package/dist/resources/extensions/gsd/auto-dashboard.js +182 -178
- package/dist/resources/extensions/gsd/auto-dispatch.js +14 -11
- package/dist/resources/extensions/gsd/auto-post-unit.js +7 -1
- package/dist/resources/extensions/gsd/auto-prompts.js +11 -3
- package/dist/resources/extensions/gsd/auto-recovery.js +6 -181
- package/dist/resources/extensions/gsd/auto-runtime-state.js +5 -0
- package/dist/resources/extensions/gsd/auto-start.js +20 -23
- package/dist/resources/extensions/gsd/auto-unit-closeout.js +33 -5
- package/dist/resources/extensions/gsd/auto-verification.js +12 -6
- package/dist/resources/extensions/gsd/auto-worktree.js +8 -0
- package/dist/resources/extensions/gsd/auto.js +386 -106
- package/dist/resources/extensions/gsd/bootstrap/agent-end-recovery.js +13 -6
- package/dist/resources/extensions/gsd/bootstrap/register-hooks.js +13 -2
- package/dist/resources/extensions/gsd/bootstrap/register-shortcuts.js +4 -8
- package/dist/resources/extensions/gsd/bootstrap/system-context.js +55 -12
- package/dist/resources/extensions/gsd/commands/handlers/core.js +1 -1
- package/dist/resources/extensions/gsd/commands/handlers/notifications-handler.js +4 -10
- package/dist/resources/extensions/gsd/commands/handlers/parallel.js +9 -0
- package/dist/resources/extensions/gsd/commands-handlers.js +15 -2
- package/dist/resources/extensions/gsd/context-store.js +112 -0
- package/dist/resources/extensions/gsd/db-writer.js +150 -84
- package/dist/resources/extensions/gsd/docs/preferences-reference.md +1 -1
- package/dist/resources/extensions/gsd/doctor-git-checks.js +41 -6
- package/dist/resources/extensions/gsd/git-service.js +2 -1
- package/dist/resources/extensions/gsd/gsd-db.js +7 -23
- package/dist/resources/extensions/gsd/health-widget-core.js +1 -1
- package/dist/resources/extensions/gsd/health-widget.js +4 -10
- package/dist/resources/extensions/gsd/knowledge-backfill.js +144 -0
- package/dist/resources/extensions/gsd/knowledge-capture.js +136 -0
- package/dist/resources/extensions/gsd/knowledge-parser.js +154 -0
- package/dist/resources/extensions/gsd/knowledge-projection.js +210 -0
- package/dist/resources/extensions/gsd/markdown-renderer.js +6 -96
- package/dist/resources/extensions/gsd/md-importer.js +1 -1
- package/dist/resources/extensions/gsd/memory-backfill.js +73 -17
- package/dist/resources/extensions/gsd/memory-consolidation-scanner.js +222 -0
- package/dist/resources/extensions/gsd/migrate/command.js +5 -0
- package/dist/resources/extensions/gsd/migrate/preview.js +9 -0
- package/dist/resources/extensions/gsd/migrate/transformer.js +51 -4
- package/dist/resources/extensions/gsd/migrate/writer.js +11 -1
- package/dist/resources/extensions/gsd/native-git-bridge.js +14 -14
- package/dist/resources/extensions/gsd/notification-overlay.js +35 -40
- package/dist/resources/extensions/gsd/parallel-merge.js +53 -30
- package/dist/resources/extensions/gsd/parallel-monitor-overlay.js +25 -33
- package/dist/resources/extensions/gsd/prompts/complete-slice.md +14 -12
- package/dist/resources/extensions/gsd/prompts/discuss-headless.md +20 -2
- package/dist/resources/extensions/gsd/prompts/discuss.md +20 -2
- package/dist/resources/extensions/gsd/prompts/system.md +2 -2
- package/dist/resources/extensions/gsd/provider-switch-observer.js +146 -0
- package/dist/resources/extensions/gsd/recovery-classification.js +15 -1
- package/dist/resources/extensions/gsd/session-lock.js +40 -0
- package/dist/resources/extensions/gsd/state-reconciliation/drift/completion.js +131 -0
- package/dist/resources/extensions/gsd/state-reconciliation/drift/merge-state.js +247 -0
- package/dist/resources/extensions/gsd/state-reconciliation/drift/project-md.js +50 -0
- package/dist/resources/extensions/gsd/state-reconciliation/drift/roadmap.js +87 -0
- package/dist/resources/extensions/gsd/state-reconciliation/drift/sketch-flag.js +50 -0
- package/dist/resources/extensions/gsd/state-reconciliation/drift/stale-render.js +124 -0
- package/dist/resources/extensions/gsd/state-reconciliation/drift/stale-worker.js +32 -0
- package/dist/resources/extensions/gsd/state-reconciliation/errors.js +41 -0
- package/dist/resources/extensions/gsd/state-reconciliation/index.js +99 -0
- package/dist/resources/extensions/gsd/state-reconciliation/registry.js +24 -0
- package/dist/resources/extensions/gsd/state-reconciliation/spawn-gate.js +43 -0
- package/dist/resources/extensions/gsd/state-reconciliation/types.js +3 -0
- package/dist/resources/extensions/gsd/state-reconciliation.js +5 -26
- package/dist/resources/extensions/gsd/templates/knowledge.md +2 -2
- package/dist/resources/extensions/gsd/tui/render-kit.js +74 -0
- package/dist/resources/extensions/gsd/watch/header-renderer.js +92 -69
- package/dist/resources/extensions/gsd/watch/splash-palette.js +10 -0
- package/dist/resources/extensions/gsd/workflow-mcp.js +2 -2
- package/dist/resources/extensions/gsd/worktree-lifecycle.js +722 -316
- package/dist/resources/extensions/gsd/worktree-telemetry.js +3 -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 +6 -6
- package/dist/web/standalone/.next/build-manifest.json +3 -3
- package/dist/web/standalone/.next/prerender-manifest.json +3 -3
- package/dist/web/standalone/.next/required-server-files.json +3 -3
- package/dist/web/standalone/.next/server/app/_global-error/page.js +3 -3
- package/dist/web/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +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/page.js +2 -2
- package/dist/web/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.html +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.rsc +3 -3
- package/dist/web/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- 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 +3 -3
- 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/api/boot/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/boot/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/bridge-terminal/input/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/bridge-terminal/input/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/bridge-terminal/resize/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/bridge-terminal/resize/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/bridge-terminal/stream/route.js +2 -2
- package/dist/web/standalone/.next/server/app/api/bridge-terminal/stream/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/browse-directories/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/browse-directories/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/captures/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/captures/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/cleanup/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/cleanup/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/dev-mode/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/dev-mode/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/doctor/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/doctor/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/experimental/route.js +2 -2
- package/dist/web/standalone/.next/server/app/api/experimental/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/export-data/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/export-data/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/files/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/forensics/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/forensics/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/git/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/git/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/history/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/history/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/hooks/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/hooks/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/inspect/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/inspect/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/knowledge/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/knowledge/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/live-state/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/live-state/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/notifications/route.js +2 -2
- package/dist/web/standalone/.next/server/app/api/notifications/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/onboarding/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/onboarding/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/preferences/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/preferences/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/projects/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/recovery/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/recovery/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/remote-questions/route.js +2 -2
- package/dist/web/standalone/.next/server/app/api/remote-questions/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/session/browser/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/session/browser/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/session/command/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/session/command/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/session/events/route.js +2 -2
- package/dist/web/standalone/.next/server/app/api/session/events/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/session/manage/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/session/manage/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/settings-data/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/settings-data/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/shutdown/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/skill-health/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/skill-health/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/steer/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/steer/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/switch-root/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/switch-root/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/terminal/input/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/terminal/input/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/terminal/resize/route.js +2 -2
- package/dist/web/standalone/.next/server/app/api/terminal/resize/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/terminal/sessions/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/terminal/sessions/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/terminal/stream/route.js +2 -2
- package/dist/web/standalone/.next/server/app/api/terminal/stream/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/terminal/upload/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/terminal/upload/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/undo/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/undo/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/update/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/api/visualizer/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/visualizer/route_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app/index.html +1 -1
- package/dist/web/standalone/.next/server/app/index.rsc +4 -4
- package/dist/web/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/web/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
- 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 +3 -3
- package/dist/web/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/page.js +2 -2
- package/dist/web/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/web/standalone/.next/server/app-paths-manifest.json +6 -6
- package/dist/web/standalone/.next/server/chunks/63.js +3 -3
- package/dist/web/standalone/.next/server/chunks/6897.js +1 -1
- package/dist/web/standalone/.next/server/middleware-build-manifest.js +1 -1
- package/dist/web/standalone/.next/server/middleware.js +2 -2
- package/dist/web/standalone/.next/server/next-font-manifest.js +1 -1
- package/dist/web/standalone/.next/server/next-font-manifest.json +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/dist/web/standalone/.next/static/chunks/app/_not-found/{page-2f24283c162b6ab3.js → page-f2a7482d42a5614b.js} +1 -1
- package/dist/web/standalone/.next/static/chunks/app/{layout-9ecfd95f343793f0.js → layout-a16c7a7ecdf0c2cf.js} +1 -1
- package/dist/web/standalone/.next/static/chunks/app/page-752f1e2ebdaa3e45.js +1 -0
- package/dist/web/standalone/.next/static/chunks/main-app-fdab67f7802d7832.js +1 -0
- package/dist/web/standalone/.next/static/chunks/next/dist/client/components/builtin/global-error-459824ffb8c323dd.js +1 -0
- package/dist/web/standalone/node_modules/node-pty/build/Makefile +2 -2
- package/dist/web/standalone/node_modules/node-pty/build/Release/pty.node +0 -0
- package/dist/web/standalone/node_modules/node-pty/build/pty.target.mk +14 -14
- package/dist/web/standalone/node_modules/node-pty/node-addon-api/node_addon_api.target.mk +14 -14
- package/dist/web/standalone/node_modules/node-pty/node-addon-api/node_addon_api_except.target.mk +14 -14
- package/dist/web/standalone/node_modules/node-pty/node-addon-api/node_addon_api_maybe.target.mk +14 -14
- package/dist/web/standalone/server.js +1 -1
- package/dist/welcome-screen.d.ts +0 -7
- package/dist/welcome-screen.js +60 -69
- package/package.json +3 -2
- package/packages/daemon/package.json +2 -2
- package/packages/mcp-server/README.md +2 -0
- package/packages/mcp-server/package.json +2 -2
- package/packages/mcp-server/src/workflow-tools-parity.test.ts +244 -0
- package/packages/native/package.json +1 -1
- package/packages/pi-agent-core/package.json +1 -1
- package/packages/pi-agent-core/tsconfig.tsbuildinfo +1 -1
- package/packages/pi-ai/dist/index.d.ts +2 -2
- package/packages/pi-ai/dist/index.d.ts.map +1 -1
- package/packages/pi-ai/dist/index.js +1 -1
- package/packages/pi-ai/dist/index.js.map +1 -1
- package/packages/pi-ai/dist/providers/transform-messages.d.ts +11 -0
- package/packages/pi-ai/dist/providers/transform-messages.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/transform-messages.js +20 -0
- package/packages/pi-ai/dist/providers/transform-messages.js.map +1 -1
- package/packages/pi-ai/package.json +1 -1
- package/packages/pi-ai/src/index.ts +7 -2
- package/packages/pi-ai/src/providers/transform-messages.ts +24 -0
- package/packages/pi-ai/tsconfig.tsbuildinfo +1 -1
- package/packages/pi-coding-agent/dist/core/system-prompt.js +4 -4
- package/packages/pi-coding-agent/dist/core/system-prompt.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/assistant-message-design.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/assistant-message-design.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/assistant-message-design.test.js +47 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/assistant-message-design.test.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/tool-execution.test.js +76 -9
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/tool-execution.test.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/user-message-design.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/user-message-design.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/user-message-design.test.js +40 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/__tests__/user-message-design.test.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/adaptive-layout.d.ts +0 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/adaptive-layout.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/adaptive-layout.js +30 -29
- package/packages/pi-coding-agent/dist/modes/interactive/components/adaptive-layout.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/adaptive-layout.test.js +10 -3
- package/packages/pi-coding-agent/dist/modes/interactive/components/adaptive-layout.test.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +13 -13
- package/packages/pi-coding-agent/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts +1 -3
- package/packages/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +58 -3
- package/packages/pi-coding-agent/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/diff.d.ts +2 -2
- package/packages/pi-coding-agent/dist/modes/interactive/components/diff.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/diff.js +12 -6
- package/packages/pi-coding-agent/dist/modes/interactive/components/diff.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/footer.js +14 -41
- package/packages/pi-coding-agent/dist/modes/interactive/components/footer.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts +0 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +86 -82
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/transcript-design.d.ts +35 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/transcript-design.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/transcript-design.js +152 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/transcript-design.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/tui-style-kit.d.ts +16 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/tui-style-kit.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/tui-style-kit.js +73 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/tui-style-kit.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/user-message.js +12 -8
- package/packages/pi-coding-agent/dist/modes/interactive/components/user-message.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme-highlight.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme-highlight.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme-highlight.test.js +17 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme-highlight.test.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js +105 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.js +27 -26
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/tui-mode.test.js +9 -6
- package/packages/pi-coding-agent/dist/modes/interactive/tui-mode.test.js.map +1 -1
- package/packages/pi-coding-agent/dist/tests/system-prompt-file-safety.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/tests/system-prompt-file-safety.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/tests/system-prompt-file-safety.test.js +17 -0
- package/packages/pi-coding-agent/dist/tests/system-prompt-file-safety.test.js.map +1 -0
- package/packages/pi-coding-agent/package.json +1 -1
- package/packages/pi-coding-agent/src/core/system-prompt.ts +4 -4
- package/packages/pi-coding-agent/src/modes/interactive/components/__tests__/assistant-message-design.test.ts +56 -0
- package/packages/pi-coding-agent/src/modes/interactive/components/__tests__/tool-execution.test.ts +113 -9
- package/packages/pi-coding-agent/src/modes/interactive/components/__tests__/user-message-design.test.ts +48 -0
- package/packages/pi-coding-agent/src/modes/interactive/components/adaptive-layout.test.ts +10 -3
- package/packages/pi-coding-agent/src/modes/interactive/components/adaptive-layout.ts +43 -42
- package/packages/pi-coding-agent/src/modes/interactive/components/assistant-message.ts +14 -14
- package/packages/pi-coding-agent/src/modes/interactive/components/bash-execution.ts +64 -3
- package/packages/pi-coding-agent/src/modes/interactive/components/diff.ts +13 -7
- package/packages/pi-coding-agent/src/modes/interactive/components/footer.ts +15 -42
- package/packages/pi-coding-agent/src/modes/interactive/components/tool-execution.ts +84 -104
- package/packages/pi-coding-agent/src/modes/interactive/components/transcript-design.ts +196 -0
- package/packages/pi-coding-agent/src/modes/interactive/components/tui-style-kit.ts +94 -0
- package/packages/pi-coding-agent/src/modes/interactive/components/user-message.ts +14 -9
- package/packages/pi-coding-agent/src/modes/interactive/theme/theme-highlight.test.ts +23 -0
- package/packages/pi-coding-agent/src/modes/interactive/theme/theme.ts +106 -1
- package/packages/pi-coding-agent/src/modes/interactive/theme/themes.ts +27 -26
- package/packages/pi-coding-agent/src/modes/interactive/tui-mode.test.ts +9 -6
- package/packages/pi-coding-agent/src/tests/system-prompt-file-safety.test.ts +22 -0
- package/packages/pi-coding-agent/tsconfig.tsbuildinfo +1 -1
- package/packages/pi-tui/dist/__tests__/overlay-layout.test.js +14 -1
- package/packages/pi-tui/dist/__tests__/overlay-layout.test.js.map +1 -1
- package/packages/pi-tui/dist/overlay-layout.d.ts.map +1 -1
- package/packages/pi-tui/dist/overlay-layout.js +9 -6
- package/packages/pi-tui/dist/overlay-layout.js.map +1 -1
- package/packages/pi-tui/dist/tui.d.ts.map +1 -1
- package/packages/pi-tui/dist/tui.js +5 -0
- package/packages/pi-tui/dist/tui.js.map +1 -1
- package/packages/pi-tui/package.json +1 -1
- package/packages/pi-tui/src/__tests__/overlay-layout.test.ts +20 -1
- package/packages/pi-tui/src/overlay-layout.ts +10 -7
- package/packages/pi-tui/src/tui.ts +6 -0
- package/packages/pi-tui/tsconfig.tsbuildinfo +1 -1
- package/packages/rpc-client/package.json +1 -1
- package/pkg/dist/modes/interactive/theme/theme-highlight.test.d.ts +2 -0
- package/pkg/dist/modes/interactive/theme/theme-highlight.test.d.ts.map +1 -0
- package/pkg/dist/modes/interactive/theme/theme-highlight.test.js +17 -0
- package/pkg/dist/modes/interactive/theme/theme-highlight.test.js.map +1 -0
- package/pkg/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/pkg/dist/modes/interactive/theme/theme.js +105 -1
- package/pkg/dist/modes/interactive/theme/theme.js.map +1 -1
- package/pkg/dist/modes/interactive/theme/themes.d.ts.map +1 -1
- package/pkg/dist/modes/interactive/theme/themes.js +27 -26
- package/pkg/dist/modes/interactive/theme/themes.js.map +1 -1
- package/pkg/package.json +1 -1
- package/src/resources/extensions/browser-tools/tools/screenshot.ts +1 -0
- package/src/resources/extensions/browser-tools/tools/zoom.ts +1 -0
- package/src/resources/extensions/gsd/auto/contracts.ts +46 -11
- package/src/resources/extensions/gsd/auto/loop-deps.ts +9 -5
- package/src/resources/extensions/gsd/auto/loop.ts +113 -9
- package/src/resources/extensions/gsd/auto/orchestrator.ts +118 -6
- package/src/resources/extensions/gsd/auto/phases.ts +158 -19
- package/src/resources/extensions/gsd/auto/run-unit.ts +69 -4
- package/src/resources/extensions/gsd/auto/session.ts +10 -0
- package/src/resources/extensions/gsd/auto/verification-retry-policy.ts +82 -0
- package/src/resources/extensions/gsd/auto-dashboard.ts +230 -183
- package/src/resources/extensions/gsd/auto-dispatch.ts +15 -1
- package/src/resources/extensions/gsd/auto-post-unit.ts +7 -1
- package/src/resources/extensions/gsd/auto-prompts.ts +11 -3
- package/src/resources/extensions/gsd/auto-recovery.ts +7 -209
- package/src/resources/extensions/gsd/auto-runtime-state.ts +5 -0
- package/src/resources/extensions/gsd/auto-start.ts +22 -22
- package/src/resources/extensions/gsd/auto-unit-closeout.ts +51 -0
- package/src/resources/extensions/gsd/auto-verification.ts +12 -6
- package/src/resources/extensions/gsd/auto-worktree.ts +8 -0
- package/src/resources/extensions/gsd/auto.ts +424 -106
- package/src/resources/extensions/gsd/bootstrap/agent-end-recovery.ts +21 -6
- package/src/resources/extensions/gsd/bootstrap/register-hooks.ts +12 -2
- package/src/resources/extensions/gsd/bootstrap/register-shortcuts.ts +5 -8
- package/src/resources/extensions/gsd/bootstrap/system-context.ts +58 -15
- package/src/resources/extensions/gsd/commands/handlers/core.ts +1 -1
- package/src/resources/extensions/gsd/commands/handlers/notifications-handler.ts +4 -10
- package/src/resources/extensions/gsd/commands/handlers/parallel.ts +12 -0
- package/src/resources/extensions/gsd/commands-handlers.ts +19 -2
- package/src/resources/extensions/gsd/context-store.ts +120 -1
- package/src/resources/extensions/gsd/db-writer.ts +167 -84
- package/src/resources/extensions/gsd/docs/preferences-reference.md +1 -1
- package/src/resources/extensions/gsd/doctor-git-checks.ts +44 -6
- package/src/resources/extensions/gsd/doctor-types.ts +2 -0
- package/src/resources/extensions/gsd/git-service.ts +2 -0
- package/src/resources/extensions/gsd/gsd-db.ts +7 -23
- package/src/resources/extensions/gsd/health-widget-core.ts +1 -1
- package/src/resources/extensions/gsd/health-widget.ts +6 -10
- package/src/resources/extensions/gsd/journal.ts +2 -0
- package/src/resources/extensions/gsd/knowledge-backfill.ts +164 -0
- package/src/resources/extensions/gsd/knowledge-capture.ts +160 -0
- package/src/resources/extensions/gsd/knowledge-parser.ts +174 -0
- package/src/resources/extensions/gsd/knowledge-projection.ts +241 -0
- package/src/resources/extensions/gsd/markdown-renderer.ts +10 -96
- package/src/resources/extensions/gsd/md-importer.ts +1 -1
- package/src/resources/extensions/gsd/memory-backfill.ts +89 -17
- package/src/resources/extensions/gsd/memory-consolidation-scanner.ts +277 -0
- package/src/resources/extensions/gsd/migrate/command.ts +5 -0
- package/src/resources/extensions/gsd/migrate/preview.ts +10 -0
- package/src/resources/extensions/gsd/migrate/transformer.ts +58 -4
- package/src/resources/extensions/gsd/migrate/writer.ts +14 -1
- package/src/resources/extensions/gsd/native-git-bridge.ts +14 -13
- package/src/resources/extensions/gsd/notification-overlay.ts +50 -46
- package/src/resources/extensions/gsd/parallel-merge.ts +61 -34
- package/src/resources/extensions/gsd/parallel-monitor-overlay.ts +33 -35
- package/src/resources/extensions/gsd/prompts/complete-slice.md +14 -12
- package/src/resources/extensions/gsd/prompts/discuss-headless.md +20 -2
- package/src/resources/extensions/gsd/prompts/discuss.md +20 -2
- package/src/resources/extensions/gsd/prompts/system.md +2 -2
- package/src/resources/extensions/gsd/provider-switch-observer.ts +185 -0
- package/src/resources/extensions/gsd/recovery-classification.ts +18 -1
- package/src/resources/extensions/gsd/session-lock.ts +41 -0
- package/src/resources/extensions/gsd/state-reconciliation/drift/completion.ts +172 -0
- package/src/resources/extensions/gsd/state-reconciliation/drift/merge-state.ts +337 -0
- package/src/resources/extensions/gsd/state-reconciliation/drift/project-md.ts +69 -0
- package/src/resources/extensions/gsd/state-reconciliation/drift/roadmap.ts +109 -0
- package/src/resources/extensions/gsd/state-reconciliation/drift/sketch-flag.ts +68 -0
- package/src/resources/extensions/gsd/state-reconciliation/drift/stale-render.ts +185 -0
- package/src/resources/extensions/gsd/state-reconciliation/drift/stale-worker.ts +46 -0
- package/src/resources/extensions/gsd/state-reconciliation/errors.ts +67 -0
- package/src/resources/extensions/gsd/state-reconciliation/index.ts +142 -0
- package/src/resources/extensions/gsd/state-reconciliation/registry.ts +27 -0
- package/src/resources/extensions/gsd/state-reconciliation/spawn-gate.ts +60 -0
- package/src/resources/extensions/gsd/state-reconciliation/types.ts +83 -0
- package/src/resources/extensions/gsd/state-reconciliation.ts +21 -53
- package/src/resources/extensions/gsd/templates/knowledge.md +2 -2
- package/src/resources/extensions/gsd/tests/artifact-retry-cap.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/auto-dashboard.test.ts +99 -0
- package/src/resources/extensions/gsd/tests/auto-loop.test.ts +729 -176
- package/src/resources/extensions/gsd/tests/auto-orchestrator.test.ts +408 -4
- package/src/resources/extensions/gsd/tests/auto-paused-ui-cleanup.test.ts +291 -4
- package/src/resources/extensions/gsd/tests/auto-runtime-state.test.ts +20 -5
- package/src/resources/extensions/gsd/tests/auto-start-orphan-bootstrap.test.ts +18 -0
- package/src/resources/extensions/gsd/tests/auto-unit-closeout.test.ts +68 -0
- package/src/resources/extensions/gsd/tests/browser-tools-compatibility-declarations.test.ts +62 -0
- package/src/resources/extensions/gsd/tests/context-store-decisions-from-memories.test.ts +312 -0
- package/src/resources/extensions/gsd/tests/custom-engine-loop-integration.test.ts +28 -1
- package/src/resources/extensions/gsd/tests/db-writer.test.ts +13 -8
- package/src/resources/extensions/gsd/tests/decisions-projection-from-memories.test.ts +453 -0
- package/src/resources/extensions/gsd/tests/decisions-stop-table-writes.test.ts +348 -0
- package/src/resources/extensions/gsd/tests/deep-project-auto-loop.test.ts +20 -2
- package/src/resources/extensions/gsd/tests/dispatch-complete-milestone-guard.test.ts +44 -0
- package/src/resources/extensions/gsd/tests/freeform-decisions.test.ts +8 -4
- package/src/resources/extensions/gsd/tests/gsd-tools.test.ts +11 -7
- package/src/resources/extensions/gsd/tests/header-renderer.test.ts +40 -0
- package/src/resources/extensions/gsd/tests/headless-milestone-parity.test.ts +10 -0
- package/src/resources/extensions/gsd/tests/health-widget.test.ts +14 -4
- package/src/resources/extensions/gsd/tests/integration/doctor-git.test.ts +44 -0
- package/src/resources/extensions/gsd/tests/integration/git-service.test.ts +26 -0
- package/src/resources/extensions/gsd/tests/integration/integration-lifecycle.test.ts +13 -5
- package/src/resources/extensions/gsd/tests/integration/integration-proof.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/integration/migrate-command.test.ts +48 -3
- package/src/resources/extensions/gsd/tests/integration/parallel-merge.test.ts +116 -24
- package/src/resources/extensions/gsd/tests/journal-integration.test.ts +0 -1
- package/src/resources/extensions/gsd/tests/knowledge-backfill-projection.test.ts +323 -0
- package/src/resources/extensions/gsd/tests/knowledge-capture.test.ts +242 -0
- package/src/resources/extensions/gsd/tests/knowledge.test.ts +47 -2
- package/src/resources/extensions/gsd/tests/load-knowledge-block-rules-only.test.ts +209 -0
- package/src/resources/extensions/gsd/tests/markdown-renderer.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/memory-consolidation-scanner.test.ts +316 -0
- package/src/resources/extensions/gsd/tests/merge-conflict-stops-loop.test.ts +46 -11
- package/src/resources/extensions/gsd/tests/migrate-transformer.test.ts +5 -1
- package/src/resources/extensions/gsd/tests/migrate-writer-integration.test.ts +6 -1
- package/src/resources/extensions/gsd/tests/notification-overlay.test.ts +78 -41
- package/src/resources/extensions/gsd/tests/notifications-handler.test.ts +44 -0
- package/src/resources/extensions/gsd/tests/originalbase-path-comparison.test.ts +12 -217
- package/src/resources/extensions/gsd/tests/parallel-monitor-overlay.test.ts +38 -6
- package/src/resources/extensions/gsd/tests/plan-milestone-sketch-render.test.ts +157 -0
- package/src/resources/extensions/gsd/tests/post-exec-retry-bypass.test.ts +2 -2
- package/src/resources/extensions/gsd/tests/progressive-planning.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/prompt-contracts.test.ts +32 -1
- package/src/resources/extensions/gsd/tests/provider-switch-observer.test.ts +252 -0
- package/src/resources/extensions/gsd/tests/resume-dispatch-worktree.test.ts +7 -3
- package/src/resources/extensions/gsd/tests/runtime-invariant-modules.test.ts +6 -3
- package/src/resources/extensions/gsd/tests/session-start-footer.test.ts +16 -4
- package/src/resources/extensions/gsd/tests/session-switch-abort-misclassification.test.ts +24 -0
- package/src/resources/extensions/gsd/tests/state-corruption-2945.test.ts +65 -58
- package/src/resources/extensions/gsd/tests/state-reconciliation-drift.test.ts +952 -0
- package/src/resources/extensions/gsd/tests/token-tool-gating.test.ts +4 -0
- package/src/resources/extensions/gsd/tests/tui-header-lifecycle.test.ts +121 -1
- package/src/resources/extensions/gsd/tests/tui-render-kit.test.ts +66 -0
- package/src/resources/extensions/gsd/tests/verification-retry-policy.test.ts +83 -0
- package/src/resources/extensions/gsd/tests/workflow-mcp.test.ts +6 -0
- package/src/resources/extensions/gsd/tests/worktree-journal-events.test.ts +158 -58
- package/src/resources/extensions/gsd/tests/worktree-lifecycle.test.ts +572 -118
- package/src/resources/extensions/gsd/tests/worktree-telemetry.test.ts +59 -2
- package/src/resources/extensions/gsd/tests/write-gate-planning-unit.test.ts +18 -0
- package/src/resources/extensions/gsd/tui/render-kit.ts +109 -0
- package/src/resources/extensions/gsd/watch/header-renderer.ts +121 -79
- package/src/resources/extensions/gsd/watch/splash-palette.ts +11 -0
- package/src/resources/extensions/gsd/workflow-logger.ts +4 -0
- package/src/resources/extensions/gsd/workflow-mcp.ts +2 -2
- package/src/resources/extensions/gsd/worktree-lifecycle.ts +1151 -524
- package/src/resources/extensions/gsd/worktree-telemetry.ts +7 -2
- package/dist/web/standalone/.next/static/chunks/app/page-200592a7f3baf579.js +0 -1
- package/dist/web/standalone/.next/static/chunks/main-app-d3d4c336195465f9.js +0 -1
- package/dist/web/standalone/.next/static/chunks/next/dist/client/components/builtin/global-error-ab5a8926e07ec673.js +0 -1
- package/src/resources/extensions/gsd/tests/worktree-resolver.test.ts +0 -1544
- /package/dist/web/standalone/.next/static/{drLMkgfHQ8lzS229_HWYR → YEvjuT-fsFfYQhDSWtueS}/_buildManifest.js +0 -0
- /package/dist/web/standalone/.next/static/{drLMkgfHQ8lzS229_HWYR → YEvjuT-fsFfYQhDSWtueS}/_ssgManifest.js +0 -0
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
// GSD
|
|
2
|
-
//
|
|
3
|
-
|
|
4
|
-
import { truncateToWidth, visibleWidth, wrapTextWithAnsi, matchesKey, Key } from "@gsd/pi-tui";
|
|
1
|
+
// Project/App: GSD-2
|
|
2
|
+
// File Purpose: Notification history overlay with severity filtering and width-safe TUI rendering.
|
|
3
|
+
import { truncateToWidth, visibleWidth, matchesKey, Key } from "@gsd/pi-tui";
|
|
5
4
|
import { readNotifications, markAllRead, clearNotifications, onNotificationStoreChange, } from "./notification-store.js";
|
|
6
5
|
import { formattedShortcutPair } from "./shortcut-defs.js";
|
|
7
|
-
import {
|
|
8
|
-
const FILTER_CYCLE = ["all", "error", "warning", "info"];
|
|
6
|
+
import { padRightVisible, renderFrame, renderKeyHints, rightAlign, wrapVisibleText, } from "./tui/render-kit.js";
|
|
7
|
+
const FILTER_CYCLE = ["all", "error", "warning", "success", "info"];
|
|
8
|
+
const OVERLAY_WIDTH = "58%";
|
|
9
|
+
const OVERLAY_MIN_WIDTH = 68;
|
|
10
|
+
const OVERLAY_MAX_HEIGHT_PERCENT = 52;
|
|
11
|
+
const OVERLAY_MARGIN = { top: 2, right: 2, bottom: 6, left: 2 };
|
|
12
|
+
export function notificationOverlayOptions() {
|
|
13
|
+
return {
|
|
14
|
+
width: OVERLAY_WIDTH,
|
|
15
|
+
minWidth: OVERLAY_MIN_WIDTH,
|
|
16
|
+
maxHeight: `${OVERLAY_MAX_HEIGHT_PERCENT}%`,
|
|
17
|
+
anchor: "top-center",
|
|
18
|
+
row: "24%",
|
|
19
|
+
margin: OVERLAY_MARGIN,
|
|
20
|
+
backdrop: true,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
9
23
|
function severityIcon(severity) {
|
|
10
24
|
switch (severity) {
|
|
11
25
|
case "error": return "✗";
|
|
@@ -15,15 +29,6 @@ function severityIcon(severity) {
|
|
|
15
29
|
default: return "●";
|
|
16
30
|
}
|
|
17
31
|
}
|
|
18
|
-
/** Column-aware word wrap using pi-tui's native wrapper (handles unicode/ANSI). */
|
|
19
|
-
function wrapText(text, maxWidth) {
|
|
20
|
-
if (maxWidth <= 0)
|
|
21
|
-
return [text];
|
|
22
|
-
const lines = wrapTextWithAnsi(text, maxWidth);
|
|
23
|
-
// Safety clamp: if any line still exceeds maxWidth (e.g. unbreakable long token),
|
|
24
|
-
// truncate it with an ellipsis so it cannot bleed past the box border.
|
|
25
|
-
return lines.map((l) => visibleWidth(l) > maxWidth ? truncateToWidth(l, maxWidth, "…") : l);
|
|
26
|
-
}
|
|
27
32
|
function formatTimestamp(ts) {
|
|
28
33
|
try {
|
|
29
34
|
const d = new Date(ts);
|
|
@@ -155,12 +160,15 @@ export class GSDNotificationOverlay {
|
|
|
155
160
|
return this.cachedLines;
|
|
156
161
|
}
|
|
157
162
|
const content = this.buildContentLines(width);
|
|
158
|
-
const
|
|
163
|
+
const terminalRows = process.stdout.rows || 32;
|
|
164
|
+
const availableRows = Math.max(1, terminalRows - OVERLAY_MARGIN.top - OVERLAY_MARGIN.bottom);
|
|
165
|
+
const overlayRows = Math.min(availableRows, Math.max(1, Math.floor((terminalRows * OVERLAY_MAX_HEIGHT_PERCENT) / 100)));
|
|
166
|
+
const maxVisibleRows = Math.max(5, overlayRows - 2);
|
|
159
167
|
const visibleContentRows = Math.min(content.length, maxVisibleRows);
|
|
160
168
|
const maxScroll = Math.max(0, content.length - visibleContentRows);
|
|
161
169
|
this.scrollOffset = Math.min(this.scrollOffset, maxScroll);
|
|
162
170
|
const visibleContent = content.slice(this.scrollOffset, this.scrollOffset + visibleContentRows);
|
|
163
|
-
const lines = this.
|
|
171
|
+
const lines = renderFrame(this.theme, visibleContent, width);
|
|
164
172
|
this.cachedWidth = width;
|
|
165
173
|
this.cachedLines = lines;
|
|
166
174
|
return lines;
|
|
@@ -192,30 +200,14 @@ export class GSDNotificationOverlay {
|
|
|
192
200
|
this.tui.requestRender();
|
|
193
201
|
}
|
|
194
202
|
}
|
|
195
|
-
wrapInBox(inner, width) {
|
|
196
|
-
const th = this.theme;
|
|
197
|
-
const border = (s) => th.fg("borderAccent", s);
|
|
198
|
-
const innerWidth = width - 4;
|
|
199
|
-
const lines = [];
|
|
200
|
-
lines.push(border("╭" + "─".repeat(width - 2) + "╮"));
|
|
201
|
-
for (const line of inner) {
|
|
202
|
-
const truncated = truncateToWidth(line, innerWidth);
|
|
203
|
-
const padWidth = Math.max(0, innerWidth - visibleWidth(truncated));
|
|
204
|
-
lines.push(border("│") + " " + truncated + " ".repeat(padWidth) + " " + border("│"));
|
|
205
|
-
}
|
|
206
|
-
lines.push(border("╰" + "─".repeat(width - 2) + "╯"));
|
|
207
|
-
return lines;
|
|
208
|
-
}
|
|
209
203
|
buildContentLines(width) {
|
|
210
204
|
const th = this.theme;
|
|
211
|
-
const shellWidth = width - 4;
|
|
212
|
-
const contentWidth =
|
|
213
|
-
const sidePad = Math.max(0, Math.floor((shellWidth - contentWidth) / 2));
|
|
214
|
-
const leftMargin = " ".repeat(sidePad);
|
|
205
|
+
const shellWidth = Math.max(1, width - 4);
|
|
206
|
+
const contentWidth = shellWidth;
|
|
215
207
|
const lines = [];
|
|
216
208
|
const row = (content = "") => {
|
|
217
209
|
const truncated = truncateToWidth(content, contentWidth);
|
|
218
|
-
return
|
|
210
|
+
return padRightVisible(truncated, contentWidth);
|
|
219
211
|
};
|
|
220
212
|
const blank = () => row("");
|
|
221
213
|
const hr = () => row(th.fg("dim", "─".repeat(contentWidth)));
|
|
@@ -223,13 +215,16 @@ export class GSDNotificationOverlay {
|
|
|
223
215
|
const title = th.fg("accent", th.bold("Notifications"));
|
|
224
216
|
const filterLabel = this.filter === "all"
|
|
225
217
|
? th.fg("dim", "all")
|
|
226
|
-
: th.fg(this.filter === "error" ? "error"
|
|
218
|
+
: th.fg(this.filter === "error" ? "error"
|
|
219
|
+
: this.filter === "warning" ? "warning"
|
|
220
|
+
: this.filter === "success" ? "success"
|
|
221
|
+
: "dim", this.filter);
|
|
227
222
|
const count = `${this.filteredEntries.length} entries`;
|
|
228
|
-
lines.push(row(
|
|
223
|
+
lines.push(row(rightAlign(`${title} ${th.fg("dim", "filter:")} ${filterLabel}`, th.fg("dim", count), contentWidth)));
|
|
229
224
|
lines.push(hr());
|
|
230
225
|
// Controls
|
|
231
226
|
const closeShortcut = formattedShortcutPair("notifications");
|
|
232
|
-
lines.push(row(th
|
|
227
|
+
lines.push(row(renderKeyHints(th, ["↑/↓ scroll", "f filter", "c clear", `Esc/${closeShortcut} close`], contentWidth)));
|
|
233
228
|
lines.push(blank());
|
|
234
229
|
// Entries
|
|
235
230
|
const filtered = this.filteredEntries;
|
|
@@ -254,7 +249,7 @@ export class GSDNotificationOverlay {
|
|
|
254
249
|
const prefixWidth = visibleWidth(prefix);
|
|
255
250
|
const msgMaxWidth = Math.max(10, contentWidth - prefixWidth);
|
|
256
251
|
// Wrap long messages onto continuation lines indented to align with message start
|
|
257
|
-
const msgLines =
|
|
252
|
+
const msgLines = wrapVisibleText(entry.message, msgMaxWidth);
|
|
258
253
|
const indent = " ".repeat(prefixWidth);
|
|
259
254
|
for (let i = 0; i < msgLines.length; i++) {
|
|
260
255
|
if (i === 0) {
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
import { existsSync, readdirSync } from "node:fs";
|
|
8
8
|
import { join } from "node:path";
|
|
9
9
|
import { spawnSync } from "node:child_process";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { resolveGsdPathContract } from "./paths.js";
|
|
11
|
+
import { getAutoWorktreePath } from "./auto-worktree.js";
|
|
12
|
+
import { buildWorktreeLifecycleDeps } from "./auto.js";
|
|
13
|
+
import { mergeMilestoneStandalone, } from "./worktree-lifecycle.js";
|
|
13
14
|
import { MergeConflictError } from "./git-service.js";
|
|
14
15
|
import { removeSessionStatus } from "./session-status-io.js";
|
|
15
16
|
import { getErrorMessage } from "./error-utils.js";
|
|
@@ -105,37 +106,42 @@ export function determineMergeOrder(workers, order = "sequential", basePath) {
|
|
|
105
106
|
}
|
|
106
107
|
/**
|
|
107
108
|
* Attempt to merge a single milestone's worktree back to main.
|
|
108
|
-
*
|
|
109
|
+
*
|
|
110
|
+
* Routes through `WorktreeLifecycle.mergeMilestoneStandalone` so parallel
|
|
111
|
+
* callers get the same projection-finalize / roadmap-fallback / secondary-
|
|
112
|
+
* teardown invariants as the single-loop path. Closes the parallel-merge
|
|
113
|
+
* bypass that ADR-016 names (issue #5618).
|
|
109
114
|
*/
|
|
110
115
|
export async function mergeCompletedMilestone(basePath, milestoneId) {
|
|
116
|
+
// Resolve the worktree path explicitly; parallel-merge has no AutoSession
|
|
117
|
+
// to read it from. Only use the worktree path when git actually knows
|
|
118
|
+
// about it (`getAutoWorktreePath` returns non-null). When the directory
|
|
119
|
+
// exists on disk but isn't a registered git worktree (e.g. a stale
|
|
120
|
+
// session-status marker dir), fall back to the project root and let the
|
|
121
|
+
// standalone's mode detection pick branch-mode or skipped — using the
|
|
122
|
+
// un-registered dir as `worktreeBasePath` would cause `getCurrentBranch`
|
|
123
|
+
// to fail with a "Worktree HEAD diverged" error.
|
|
124
|
+
const registeredWtPath = getAutoWorktreePath(basePath, milestoneId);
|
|
125
|
+
const worktreeBasePath = registeredWtPath ?? basePath;
|
|
126
|
+
let result;
|
|
111
127
|
try {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return {
|
|
116
|
-
milestoneId,
|
|
117
|
-
success: false,
|
|
118
|
-
error: `No roadmap found for ${milestoneId}`,
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
const roadmapContent = await loadFile(roadmapPath);
|
|
122
|
-
if (!roadmapContent) {
|
|
123
|
-
return {
|
|
124
|
-
milestoneId,
|
|
125
|
-
success: false,
|
|
126
|
-
error: `Could not read roadmap for ${milestoneId}`,
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
// Attempt the merge
|
|
130
|
-
const result = mergeMilestoneToMain(basePath, milestoneId, roadmapContent);
|
|
131
|
-
// Clean up parallel session status
|
|
132
|
-
removeSessionStatus(basePath, milestoneId);
|
|
133
|
-
return {
|
|
128
|
+
result = mergeMilestoneStandalone(buildWorktreeLifecycleDeps(), {
|
|
129
|
+
originalBasePath: basePath,
|
|
130
|
+
worktreeBasePath,
|
|
134
131
|
milestoneId,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
132
|
+
// Parallel context never runs with degraded isolation — workers only
|
|
133
|
+
// exist when isolation succeeded. Pass `false` explicitly so the
|
|
134
|
+
// standalone's degraded-skip branch is not reached.
|
|
135
|
+
isolationDegraded: false,
|
|
136
|
+
notify: (msg, level) => {
|
|
137
|
+
// Surface user-visible messages from the standalone through the
|
|
138
|
+
// workflow logger so the parallel merge's progress is visible in
|
|
139
|
+
// the same channel as the rest of the parallel orchestration.
|
|
140
|
+
if (level === "error" || level === "warning") {
|
|
141
|
+
logWarning("parallel", `${milestoneId}: ${msg}`);
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
});
|
|
139
145
|
}
|
|
140
146
|
catch (err) {
|
|
141
147
|
if (err instanceof MergeConflictError) {
|
|
@@ -152,6 +158,23 @@ export async function mergeCompletedMilestone(basePath, milestoneId) {
|
|
|
152
158
|
error: getErrorMessage(err),
|
|
153
159
|
};
|
|
154
160
|
}
|
|
161
|
+
if (!result.merged) {
|
|
162
|
+
return {
|
|
163
|
+
milestoneId,
|
|
164
|
+
success: false,
|
|
165
|
+
error: result.mode === "skipped"
|
|
166
|
+
? `Merge skipped for ${milestoneId} (mode=none or isolation degraded).`
|
|
167
|
+
: `No roadmap for ${milestoneId} — milestone branch preserved for manual merge.`,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
// Clean up parallel session status — only on a real merge.
|
|
171
|
+
removeSessionStatus(basePath, milestoneId);
|
|
172
|
+
return {
|
|
173
|
+
milestoneId,
|
|
174
|
+
success: true,
|
|
175
|
+
commitMessage: result.commitMessage,
|
|
176
|
+
pushed: result.pushed,
|
|
177
|
+
};
|
|
155
178
|
}
|
|
156
179
|
/**
|
|
157
180
|
* Merge all completed milestones in sequence.
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Full-screen TUI overlay showing real-time parallel worker progress.
|
|
5
|
-
* Opened via `/gsd parallel watch`, Ctrl+Alt+P (⌃⌥P on macOS),
|
|
6
|
-
* or Ctrl+Shift+P fallback.
|
|
7
|
-
* Reads the same data sources as `scripts/parallel-monitor.mjs` but
|
|
8
|
-
* renders as a native pi-tui overlay with theme integration.
|
|
9
|
-
*/
|
|
1
|
+
// Project/App: GSD-2
|
|
2
|
+
// File Purpose: Parallel worker monitor overlay with width-safe operations-console rendering.
|
|
10
3
|
import { existsSync, statSync, readFileSync, openSync, readSync, closeSync, readdirSync } from "node:fs";
|
|
11
4
|
import { join } from "node:path";
|
|
12
5
|
import { spawnSync } from "node:child_process";
|
|
@@ -14,6 +7,7 @@ import { matchesKey, Key } from "@gsd/pi-tui";
|
|
|
14
7
|
import { formatDuration } from "../shared/mod.js";
|
|
15
8
|
import { formattedShortcutPair } from "./shortcut-defs.js";
|
|
16
9
|
import { resolveGsdPathContract } from "./paths.js";
|
|
10
|
+
import { renderBar, renderKeyHints, renderProgressBar, safeLine, statusGlyph, } from "./tui/render-kit.js";
|
|
17
11
|
// ─── Data Helpers ─────────────────────────────────────────────────────────
|
|
18
12
|
function readJsonSafe(filePath) {
|
|
19
13
|
try {
|
|
@@ -226,17 +220,6 @@ function unitTypeLabel(unitType) {
|
|
|
226
220
|
};
|
|
227
221
|
return labels[unitType || ""] || (unitType || "---").toUpperCase().slice(0, 5);
|
|
228
222
|
}
|
|
229
|
-
function progressBar(done, total, width) {
|
|
230
|
-
if (total === 0)
|
|
231
|
-
return "░".repeat(width);
|
|
232
|
-
const filled = Math.round((done / total) * width);
|
|
233
|
-
return "█".repeat(filled) + "░".repeat(width - filled);
|
|
234
|
-
}
|
|
235
|
-
function healthGlyph(alive, heartbeatAge) {
|
|
236
|
-
if (!alive)
|
|
237
|
-
return "○";
|
|
238
|
-
return "●";
|
|
239
|
-
}
|
|
240
223
|
// ─── Overlay Class ────────────────────────────────────────────────────────
|
|
241
224
|
export class ParallelMonitorOverlay {
|
|
242
225
|
tui;
|
|
@@ -247,6 +230,7 @@ export class ParallelMonitorOverlay {
|
|
|
247
230
|
workers = [];
|
|
248
231
|
events = [];
|
|
249
232
|
cachedLines;
|
|
233
|
+
cachedWidth;
|
|
250
234
|
scrollOffset = 0;
|
|
251
235
|
disposed = false;
|
|
252
236
|
resizeHandler = null;
|
|
@@ -279,6 +263,7 @@ export class ParallelMonitorOverlay {
|
|
|
279
263
|
}
|
|
280
264
|
this.events = this.events.slice(-10);
|
|
281
265
|
this.cachedLines = undefined;
|
|
266
|
+
this.cachedWidth = undefined;
|
|
282
267
|
this.tui.requestRender();
|
|
283
268
|
}
|
|
284
269
|
dispose() {
|
|
@@ -313,13 +298,14 @@ export class ParallelMonitorOverlay {
|
|
|
313
298
|
}
|
|
314
299
|
invalidate() {
|
|
315
300
|
this.cachedLines = undefined;
|
|
301
|
+
this.cachedWidth = undefined;
|
|
316
302
|
}
|
|
317
303
|
render(width) {
|
|
318
|
-
if (this.cachedLines)
|
|
304
|
+
if (this.cachedLines && this.cachedWidth === width)
|
|
319
305
|
return this.cachedLines;
|
|
320
306
|
const t = this.theme;
|
|
321
307
|
const lines = [];
|
|
322
|
-
const w = Math.max(
|
|
308
|
+
const w = Math.max(1, width);
|
|
323
309
|
// Header
|
|
324
310
|
const totalCost = this.workers.reduce((s, wk) => s + wk.cost, 0);
|
|
325
311
|
const aliveCount = this.workers.filter((wk) => wk.alive).length;
|
|
@@ -328,7 +314,7 @@ export class ParallelMonitorOverlay {
|
|
|
328
314
|
lines.push(t.fg("muted", ` ${now} │ ${aliveCount}/${this.workers.length} alive │ Total: `) +
|
|
329
315
|
t.bold(`$${totalCost.toFixed(2)}`) +
|
|
330
316
|
t.fg("muted", " │ 5s refresh"));
|
|
331
|
-
lines.push(t
|
|
317
|
+
lines.push(renderBar(t, w));
|
|
332
318
|
if (this.workers.length === 0) {
|
|
333
319
|
lines.push("");
|
|
334
320
|
lines.push(t.fg("warning", " No parallel workers found."));
|
|
@@ -339,7 +325,7 @@ export class ParallelMonitorOverlay {
|
|
|
339
325
|
lines.push("");
|
|
340
326
|
// Health + ID + state
|
|
341
327
|
const healthColor = wk.alive ? "success" : "error";
|
|
342
|
-
const glyph =
|
|
328
|
+
const glyph = statusGlyph(t, wk.alive ? "active" : "idle");
|
|
343
329
|
const stateText = wk.alive
|
|
344
330
|
? t.fg("success", "RUNNING")
|
|
345
331
|
: t.fg("error", t.bold("DEAD"));
|
|
@@ -374,21 +360,25 @@ export class ParallelMonitorOverlay {
|
|
|
374
360
|
});
|
|
375
361
|
lines.push(` ${t.fg("muted", "slices")} ${chips.join(" ")}`);
|
|
376
362
|
// Task progress bar
|
|
377
|
-
const
|
|
363
|
+
const barWidth = Math.max(6, Math.min(25, w - 32));
|
|
364
|
+
const bar = renderProgressBar(t, wk.doneTasks, wk.totalTasks, barWidth, {
|
|
365
|
+
filledChar: "█",
|
|
366
|
+
emptyChar: "░",
|
|
367
|
+
emptyColor: "dim",
|
|
368
|
+
});
|
|
378
369
|
const pct = wk.totalTasks > 0 ? Math.round((wk.doneTasks / wk.totalTasks) * 100) : 0;
|
|
379
|
-
lines.push(` ${t.fg("muted", "tasks")} ${
|
|
370
|
+
lines.push(` ${t.fg("muted", "tasks")} ${bar} ${wk.doneTasks}/${wk.totalTasks} ` +
|
|
380
371
|
t.fg("muted", `(${pct}%) │ slices done ${wk.doneSlices}/${wk.totalSlices}`));
|
|
381
372
|
}
|
|
382
373
|
// Errors
|
|
383
374
|
for (const err of wk.errors.slice(-2)) {
|
|
384
|
-
|
|
385
|
-
lines.push(` ${t.fg("error", "⚠ " + truncated)}`);
|
|
375
|
+
lines.push(` ${t.fg("error", "! " + err)}`);
|
|
386
376
|
}
|
|
387
377
|
}
|
|
388
378
|
}
|
|
389
379
|
// Event feed
|
|
390
380
|
lines.push("");
|
|
391
|
-
lines.push(t
|
|
381
|
+
lines.push(renderBar(t, w));
|
|
392
382
|
lines.push(` ${t.bold("Recent Events")}`);
|
|
393
383
|
if (this.events.length === 0) {
|
|
394
384
|
lines.push(t.fg("muted", " No events yet..."));
|
|
@@ -396,8 +386,7 @@ export class ParallelMonitorOverlay {
|
|
|
396
386
|
else {
|
|
397
387
|
for (const evt of this.events.slice(-8)) {
|
|
398
388
|
const mid = evt.match(/^✓ (M\d+)\//)?.[1] || "";
|
|
399
|
-
|
|
400
|
-
lines.push(` ${t.fg("muted", "│")} ${t.fg("accent", mid)} ${truncated.replace(/^✓ M\d+\//, "")}`);
|
|
389
|
+
lines.push(` ${t.fg("muted", "│")} ${t.fg("accent", mid)} ${evt.replace(/^✓ M\d+\//, "")}`);
|
|
401
390
|
}
|
|
402
391
|
}
|
|
403
392
|
// Footer
|
|
@@ -411,13 +400,16 @@ export class ParallelMonitorOverlay {
|
|
|
411
400
|
}
|
|
412
401
|
lines.push(` ${t.bold("Total: $" + this.workers.reduce((s, wk) => s + wk.cost, 0).toFixed(2))}`);
|
|
413
402
|
}
|
|
414
|
-
lines.push(t
|
|
403
|
+
lines.push(renderKeyHints(t, [`ESC/q/${formattedShortcutPair("parallel")} close`, "↑↓ scroll"], w));
|
|
415
404
|
// Apply scroll — use terminal rows as height estimate
|
|
416
405
|
const termHeight = process.stdout.rows || 40;
|
|
417
406
|
const maxScroll = Math.max(0, lines.length - termHeight);
|
|
418
407
|
this.scrollOffset = Math.min(Math.max(this.scrollOffset, 0), maxScroll);
|
|
419
|
-
const visible = lines
|
|
408
|
+
const visible = lines
|
|
409
|
+
.slice(this.scrollOffset, this.scrollOffset + termHeight)
|
|
410
|
+
.map((line) => safeLine(line, w));
|
|
420
411
|
this.cachedLines = visible;
|
|
412
|
+
this.cachedWidth = width;
|
|
421
413
|
return visible;
|
|
422
414
|
}
|
|
423
415
|
}
|
|
@@ -22,22 +22,24 @@ Use `subagent` only for fresh-context review when useful: reviewer for cross-cut
|
|
|
22
22
|
|
|
23
23
|
1. Use the inlined Slice Summary and UAT templates.
|
|
24
24
|
2. {{skillActivation}}
|
|
25
|
-
3. Run all slice-level verification checks from the slice plan
|
|
26
|
-
4.
|
|
27
|
-
5.
|
|
28
|
-
6.
|
|
29
|
-
7. If
|
|
30
|
-
8.
|
|
31
|
-
9.
|
|
32
|
-
10.
|
|
33
|
-
11.
|
|
34
|
-
12.
|
|
35
|
-
13.
|
|
25
|
+
3. Run all slice-level verification checks from the slice plan through the closeout-safe verification surface (`gsd_exec` / Context Mode verification evidence); refresh current state if needed. Do not use direct `bash` for verification commands.
|
|
26
|
+
4. Complete the slice only when every required verification check passes. If verification fails or the fix requires source changes, do **not** edit source files in this unit and do **not** call `gsd_slice_complete`.
|
|
27
|
+
5. For task-specific failures, call `gsd_task_reopen` with the failing completed task and a concrete reason so execution can redo the work. For plan-invalidating failures, call `gsd_replan_slice` with the blocker and updated execution tasks. Then stop with: "Slice {{sliceId}} needs execution follow-up."
|
|
28
|
+
6. Task summaries use a flat file layout under `tasks/` such as `T01-SUMMARY.md`, not inside per-task subdirectories like `tasks/T01/SUMMARY.md`. Never use `tasks/*/SUMMARY.md`.
|
|
29
|
+
7. If observability/diagnostics were planned, verify them unless the slice is simple.
|
|
30
|
+
8. Address every gate in Gates to Close. Q8 maps to **Operational Readiness**: health signal, failure signal, recovery procedure, monitoring gaps. Empty sections are recorded as omitted.
|
|
31
|
+
9. If requirement status changed, call `gsd_requirement_update`; do not write `.gsd/REQUIREMENTS.md` directly.
|
|
32
|
+
10. Prepare `gsd_slice_complete` content with camelCase fields `milestoneId`, `sliceId`, `sliceTitle`, `oneLiner`, `narrative`, `verification`, and `uatContent`.
|
|
33
|
+
11. Draft concrete UAT with preconditions, numbered steps, expected outcomes, edge cases, UAT Type, and Not Proven By This UAT.
|
|
34
|
+
12. Review the inlined task-summary excerpts for DECISIONS.md and KNOWLEDGE.md-worthy decisions, patterns, and gotchas. Read full `*-SUMMARY.md` files only when an excerpt is absent, truncated, or lacks the specific evidence needed for the slice narrative. Capture significant items with `capture_thought`; do not append knowledge files directly.
|
|
35
|
+
13. When verification passes, call `gsd_slice_complete`. The DB-backed tool is the canonical write path. Do **not** manually write `{{sliceSummaryPath}}`. Do **not** manually write `{{sliceUatPath}}`. Do not edit roadmap checkboxes; the tool renders files and updates projections.
|
|
36
|
+
14. Do not run git commands.
|
|
37
|
+
15. Update `.gsd/PROJECT.md` with a full `write` only if the current project state needs refresh.
|
|
36
38
|
|
|
37
39
|
**Autonomous execution:** no human is available. Do not call `ask_user_questions` or `secure_env_collect`; make reasonable assumptions and document them.
|
|
38
40
|
|
|
39
41
|
**File system safety:** if re-reading task summaries, use `find .gsd/milestones/{{milestoneId}}/slices/{{sliceId}}/tasks -name "*-SUMMARY.md"` or `ls .gsd/milestones/{{milestoneId}}/slices/{{sliceId}}/tasks/*-SUMMARY.md`. Never pass `{{slicePath}}` or any directory path directly to the `read` tool.
|
|
40
42
|
|
|
41
|
-
**You MUST call `gsd_slice_complete` with summary and UAT content before finishing.**
|
|
43
|
+
**You MUST call `gsd_slice_complete` with summary and UAT content before finishing only after verification passes.**
|
|
42
44
|
|
|
43
45
|
When done, say: "Slice {{sliceId}} complete."
|
|
@@ -129,7 +129,16 @@ If ANY box is unchecked, **STOP**. Do NOT emit the ready phrase. Emit the missin
|
|
|
129
129
|
|
|
130
130
|
Do not announce the ready phrase as something you are "about to" do. The ready phrase is a post-write signal, not an intent signal.
|
|
131
131
|
|
|
132
|
-
After completing steps 1–7 above,
|
|
132
|
+
After completing steps 1–7 above, end with this concise user-facing handoff:
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
Milestone {{milestoneId}} ready.
|
|
136
|
+
|
|
137
|
+
Next steps:
|
|
138
|
+
- Run `/gsd auto` to start execution if it does not begin automatically.
|
|
139
|
+
- Use `/gsd status` or `/gsd visualize` to inspect the roadmap.
|
|
140
|
+
- Use `/gsd notifications` to review or configure delivery alerts.
|
|
141
|
+
```
|
|
133
142
|
|
|
134
143
|
### Multi-Milestone
|
|
135
144
|
|
|
@@ -215,7 +224,16 @@ If ANY box is unchecked, **STOP**. Do NOT emit the ready phrase. Emit the missin
|
|
|
215
224
|
|
|
216
225
|
Do not announce the ready phrase as something you are "about to" do. The ready phrase is a post-write signal, not an intent signal.
|
|
217
226
|
|
|
218
|
-
After completing every step above,
|
|
227
|
+
After completing every step above, end with this concise user-facing handoff:
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
Milestone {{milestoneId}} ready.
|
|
231
|
+
|
|
232
|
+
Next steps:
|
|
233
|
+
- Run `/gsd auto` to start execution if it does not begin automatically.
|
|
234
|
+
- Use `/gsd status` or `/gsd visualize` to inspect the roadmap.
|
|
235
|
+
- Use `/gsd notifications` to review or configure delivery alerts.
|
|
236
|
+
```
|
|
219
237
|
|
|
220
238
|
## Critical Rules
|
|
221
239
|
|
|
@@ -252,7 +252,16 @@ If ANY box is unchecked, **STOP**. Do NOT emit the ready phrase. Emit the missin
|
|
|
252
252
|
|
|
253
253
|
Do not announce the ready phrase as something you are "about to" do. It is a post-write signal, not intent.
|
|
254
254
|
|
|
255
|
-
After completing steps 1–7 above,
|
|
255
|
+
After completing steps 1–7 above, end with this concise user-facing handoff:
|
|
256
|
+
|
|
257
|
+
```
|
|
258
|
+
Milestone {{milestoneId}} ready.
|
|
259
|
+
|
|
260
|
+
Next steps:
|
|
261
|
+
- Run `/gsd auto` to start execution if it does not begin automatically.
|
|
262
|
+
- Use `/gsd status` or `/gsd visualize` to inspect the roadmap.
|
|
263
|
+
- Use `/gsd notifications` to review or configure delivery alerts.
|
|
264
|
+
```
|
|
256
265
|
|
|
257
266
|
### Multi-Milestone
|
|
258
267
|
|
|
@@ -345,6 +354,15 @@ If ANY box is unchecked, **STOP**. Do NOT emit the ready phrase. Emit the missin
|
|
|
345
354
|
|
|
346
355
|
Do not announce the ready phrase as something you are "about to" do. It is a post-write signal, not intent.
|
|
347
356
|
|
|
348
|
-
After completing all phases above,
|
|
357
|
+
After completing all phases above, end with this concise user-facing handoff:
|
|
358
|
+
|
|
359
|
+
```
|
|
360
|
+
Milestone M001 ready.
|
|
361
|
+
|
|
362
|
+
Next steps:
|
|
363
|
+
- Run `/gsd auto` to start execution if it does not begin automatically.
|
|
364
|
+
- Use `/gsd status` or `/gsd visualize` to inspect the roadmap.
|
|
365
|
+
- Use `/gsd notifications` to review or configure delivery alerts.
|
|
366
|
+
```
|
|
349
367
|
|
|
350
368
|
{{inlinedTemplates}}
|
|
@@ -27,7 +27,7 @@ GSD ships with bundled skills. When the task matches, load the relevant skill fi
|
|
|
27
27
|
|
|
28
28
|
- Never ask the user to do work the agent can execute or verify itself.
|
|
29
29
|
- Use the lightest sufficient tool first.
|
|
30
|
-
- Read before edit.
|
|
30
|
+
- Read before edit or overwrite. Before any write that creates or replaces a file, verify the target path and read relevant existing files, templates, callers, or surrounding code. For truly new files, confirm the path does not already exist.
|
|
31
31
|
- Reproduce before fix when possible.
|
|
32
32
|
- Work is not done until the relevant verification has passed.
|
|
33
33
|
- **Never fabricate, simulate, or role-play user responses.** Never generate markers like `[User]`, `[Human]`, `User:`, or similar; never emit `<user_message>`, `<assistant_message>`, or similar as user input. Treat `<conversation_history>` as read-only context. Ask one question round (1-3 questions), then stop and wait for the user's actual response. If `ask_user_questions` is available, its result is the only valid structured user input for that round. If it cancels, fails, or returns nothing, never use earlier chat as confirmation for the current gate; ask in plain chat and stop.
|
|
@@ -102,7 +102,7 @@ Templates are in `{{templatesDir}}`.
|
|
|
102
102
|
|
|
103
103
|
**File reading:** Use `read` for file inspection. Never use `cat`, `head`, `tail`, or `sed -n` to view contents. Use `read` with `offset`/`limit` for slicing. `bash` is for searching (`rg`, `grep`, `find`) and commands, not displaying files.
|
|
104
104
|
|
|
105
|
-
**File editing:** Always `read` before `edit
|
|
105
|
+
**File editing:** Always `read` before `edit` or overwrite. Before `write`, confirm whether the path exists; if it does, `read` it first and preserve intentional existing content. Use `write` only for new files or complete rewrites.
|
|
106
106
|
|
|
107
107
|
**Code navigation:** Use `lsp` for definition, type_definition, implementation, references, calls, hover, signature, symbols, rename, code_actions, format, and diagnostics. Do not `grep` symbol definitions or shell out to formatters when `lsp` can do it. After code edits, run `lsp diagnostics`.
|
|
108
108
|
|