gsd-pi 2.70.1 → 2.71.0-dev.977c553

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.
Files changed (259) hide show
  1. package/README.md +24 -17
  2. package/dist/resources/extensions/claude-code-cli/stream-adapter.js +129 -30
  3. package/dist/resources/extensions/get-secrets-from-user.js +17 -1
  4. package/dist/resources/extensions/gsd/auto-start.js +3 -11
  5. package/dist/resources/extensions/gsd/bootstrap/register-hooks.js +4 -0
  6. package/dist/resources/extensions/gsd/custom-workflow-engine.js +16 -12
  7. package/dist/resources/extensions/gsd/file-lock.js +60 -0
  8. package/dist/resources/extensions/gsd/guided-flow.js +12 -10
  9. package/dist/resources/extensions/gsd/init-wizard.js +3 -11
  10. package/dist/resources/extensions/gsd/prompts/discuss.md +31 -13
  11. package/dist/resources/extensions/gsd/state.js +234 -332
  12. package/dist/resources/extensions/gsd/tools/workflow-tool-executors.js +34 -0
  13. package/dist/resources/extensions/gsd/workflow-events.js +25 -13
  14. package/dist/resources/extensions/gsd/workflow-mcp-auto-prep.js +56 -0
  15. package/dist/resources/extensions/gsd/workflow-mcp.js +1 -1
  16. package/dist/web/standalone/.next/BUILD_ID +1 -1
  17. package/dist/web/standalone/.next/app-path-routes-manifest.json +13 -13
  18. package/dist/web/standalone/.next/build-manifest.json +4 -4
  19. package/dist/web/standalone/.next/prerender-manifest.json +3 -3
  20. package/dist/web/standalone/.next/react-loadable-manifest.json +1 -1
  21. package/dist/web/standalone/.next/required-server-files.json +4 -4
  22. package/dist/web/standalone/.next/server/app/_global-error/page.js +3 -3
  23. package/dist/web/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  24. package/dist/web/standalone/.next/server/app/_global-error.html +1 -1
  25. package/dist/web/standalone/.next/server/app/_global-error.rsc +1 -1
  26. package/dist/web/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  27. package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  28. package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  29. package/dist/web/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  30. package/dist/web/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  31. package/dist/web/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  32. package/dist/web/standalone/.next/server/app/_not-found/page.js +2 -2
  33. package/dist/web/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  34. package/dist/web/standalone/.next/server/app/_not-found.html +1 -1
  35. package/dist/web/standalone/.next/server/app/_not-found.rsc +3 -3
  36. package/dist/web/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  37. package/dist/web/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  38. package/dist/web/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  39. package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  40. package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  41. package/dist/web/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  42. package/dist/web/standalone/.next/server/app/api/boot/route.js +1 -1
  43. package/dist/web/standalone/.next/server/app/api/boot/route_client-reference-manifest.js +1 -1
  44. package/dist/web/standalone/.next/server/app/api/bridge-terminal/input/route.js +1 -1
  45. package/dist/web/standalone/.next/server/app/api/bridge-terminal/input/route_client-reference-manifest.js +1 -1
  46. package/dist/web/standalone/.next/server/app/api/bridge-terminal/resize/route.js +1 -1
  47. package/dist/web/standalone/.next/server/app/api/bridge-terminal/resize/route_client-reference-manifest.js +1 -1
  48. package/dist/web/standalone/.next/server/app/api/bridge-terminal/stream/route.js +2 -2
  49. package/dist/web/standalone/.next/server/app/api/bridge-terminal/stream/route_client-reference-manifest.js +1 -1
  50. package/dist/web/standalone/.next/server/app/api/browse-directories/route.js +1 -1
  51. package/dist/web/standalone/.next/server/app/api/browse-directories/route_client-reference-manifest.js +1 -1
  52. package/dist/web/standalone/.next/server/app/api/captures/route.js +1 -1
  53. package/dist/web/standalone/.next/server/app/api/captures/route_client-reference-manifest.js +1 -1
  54. package/dist/web/standalone/.next/server/app/api/cleanup/route.js +1 -1
  55. package/dist/web/standalone/.next/server/app/api/cleanup/route_client-reference-manifest.js +1 -1
  56. package/dist/web/standalone/.next/server/app/api/dev-mode/route.js +1 -1
  57. package/dist/web/standalone/.next/server/app/api/dev-mode/route_client-reference-manifest.js +1 -1
  58. package/dist/web/standalone/.next/server/app/api/doctor/route.js +1 -1
  59. package/dist/web/standalone/.next/server/app/api/doctor/route_client-reference-manifest.js +1 -1
  60. package/dist/web/standalone/.next/server/app/api/experimental/route.js +2 -2
  61. package/dist/web/standalone/.next/server/app/api/experimental/route_client-reference-manifest.js +1 -1
  62. package/dist/web/standalone/.next/server/app/api/export-data/route.js +1 -1
  63. package/dist/web/standalone/.next/server/app/api/export-data/route_client-reference-manifest.js +1 -1
  64. package/dist/web/standalone/.next/server/app/api/files/route.js +1 -1
  65. package/dist/web/standalone/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
  66. package/dist/web/standalone/.next/server/app/api/forensics/route.js +1 -1
  67. package/dist/web/standalone/.next/server/app/api/forensics/route_client-reference-manifest.js +1 -1
  68. package/dist/web/standalone/.next/server/app/api/git/route.js +1 -1
  69. package/dist/web/standalone/.next/server/app/api/git/route_client-reference-manifest.js +1 -1
  70. package/dist/web/standalone/.next/server/app/api/history/route.js +1 -1
  71. package/dist/web/standalone/.next/server/app/api/history/route_client-reference-manifest.js +1 -1
  72. package/dist/web/standalone/.next/server/app/api/hooks/route.js +1 -1
  73. package/dist/web/standalone/.next/server/app/api/hooks/route_client-reference-manifest.js +1 -1
  74. package/dist/web/standalone/.next/server/app/api/inspect/route.js +1 -1
  75. package/dist/web/standalone/.next/server/app/api/inspect/route_client-reference-manifest.js +1 -1
  76. package/dist/web/standalone/.next/server/app/api/knowledge/route.js +1 -1
  77. package/dist/web/standalone/.next/server/app/api/knowledge/route_client-reference-manifest.js +1 -1
  78. package/dist/web/standalone/.next/server/app/api/live-state/route.js +1 -1
  79. package/dist/web/standalone/.next/server/app/api/live-state/route_client-reference-manifest.js +1 -1
  80. package/dist/web/standalone/.next/server/app/api/notifications/route.js +2 -2
  81. package/dist/web/standalone/.next/server/app/api/notifications/route_client-reference-manifest.js +1 -1
  82. package/dist/web/standalone/.next/server/app/api/onboarding/route.js +1 -1
  83. package/dist/web/standalone/.next/server/app/api/onboarding/route_client-reference-manifest.js +1 -1
  84. package/dist/web/standalone/.next/server/app/api/preferences/route.js +1 -1
  85. package/dist/web/standalone/.next/server/app/api/preferences/route_client-reference-manifest.js +1 -1
  86. package/dist/web/standalone/.next/server/app/api/projects/route.js +1 -1
  87. package/dist/web/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  88. package/dist/web/standalone/.next/server/app/api/recovery/route.js +1 -1
  89. package/dist/web/standalone/.next/server/app/api/recovery/route_client-reference-manifest.js +1 -1
  90. package/dist/web/standalone/.next/server/app/api/remote-questions/route.js +2 -2
  91. package/dist/web/standalone/.next/server/app/api/remote-questions/route_client-reference-manifest.js +1 -1
  92. package/dist/web/standalone/.next/server/app/api/session/browser/route.js +1 -1
  93. package/dist/web/standalone/.next/server/app/api/session/browser/route_client-reference-manifest.js +1 -1
  94. package/dist/web/standalone/.next/server/app/api/session/command/route.js +1 -1
  95. package/dist/web/standalone/.next/server/app/api/session/command/route_client-reference-manifest.js +1 -1
  96. package/dist/web/standalone/.next/server/app/api/session/events/route.js +2 -2
  97. package/dist/web/standalone/.next/server/app/api/session/events/route_client-reference-manifest.js +1 -1
  98. package/dist/web/standalone/.next/server/app/api/session/manage/route.js +1 -1
  99. package/dist/web/standalone/.next/server/app/api/session/manage/route_client-reference-manifest.js +1 -1
  100. package/dist/web/standalone/.next/server/app/api/settings-data/route.js +1 -1
  101. package/dist/web/standalone/.next/server/app/api/settings-data/route_client-reference-manifest.js +1 -1
  102. package/dist/web/standalone/.next/server/app/api/shutdown/route.js +1 -1
  103. package/dist/web/standalone/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  104. package/dist/web/standalone/.next/server/app/api/skill-health/route.js +1 -1
  105. package/dist/web/standalone/.next/server/app/api/skill-health/route_client-reference-manifest.js +1 -1
  106. package/dist/web/standalone/.next/server/app/api/steer/route.js +1 -1
  107. package/dist/web/standalone/.next/server/app/api/steer/route_client-reference-manifest.js +1 -1
  108. package/dist/web/standalone/.next/server/app/api/switch-root/route.js +1 -1
  109. package/dist/web/standalone/.next/server/app/api/switch-root/route_client-reference-manifest.js +1 -1
  110. package/dist/web/standalone/.next/server/app/api/terminal/input/route.js +1 -1
  111. package/dist/web/standalone/.next/server/app/api/terminal/input/route_client-reference-manifest.js +1 -1
  112. package/dist/web/standalone/.next/server/app/api/terminal/resize/route.js +2 -2
  113. package/dist/web/standalone/.next/server/app/api/terminal/resize/route_client-reference-manifest.js +1 -1
  114. package/dist/web/standalone/.next/server/app/api/terminal/sessions/route.js +1 -1
  115. package/dist/web/standalone/.next/server/app/api/terminal/sessions/route_client-reference-manifest.js +1 -1
  116. package/dist/web/standalone/.next/server/app/api/terminal/stream/route.js +2 -2
  117. package/dist/web/standalone/.next/server/app/api/terminal/stream/route_client-reference-manifest.js +1 -1
  118. package/dist/web/standalone/.next/server/app/api/terminal/upload/route.js +1 -1
  119. package/dist/web/standalone/.next/server/app/api/terminal/upload/route_client-reference-manifest.js +1 -1
  120. package/dist/web/standalone/.next/server/app/api/undo/route.js +1 -1
  121. package/dist/web/standalone/.next/server/app/api/undo/route_client-reference-manifest.js +1 -1
  122. package/dist/web/standalone/.next/server/app/api/update/route.js +1 -1
  123. package/dist/web/standalone/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
  124. package/dist/web/standalone/.next/server/app/api/visualizer/route.js +1 -1
  125. package/dist/web/standalone/.next/server/app/api/visualizer/route_client-reference-manifest.js +1 -1
  126. package/dist/web/standalone/.next/server/app/index.html +1 -1
  127. package/dist/web/standalone/.next/server/app/index.rsc +4 -4
  128. package/dist/web/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  129. package/dist/web/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
  130. package/dist/web/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  131. package/dist/web/standalone/.next/server/app/index.segments/_index.segment.rsc +3 -3
  132. package/dist/web/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  133. package/dist/web/standalone/.next/server/app/page.js +2 -2
  134. package/dist/web/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  135. package/dist/web/standalone/.next/server/app-paths-manifest.json +13 -13
  136. package/dist/web/standalone/.next/server/chunks/63.js +3 -3
  137. package/dist/web/standalone/.next/server/chunks/6897.js +1 -1
  138. package/dist/web/standalone/.next/server/middleware-build-manifest.js +1 -1
  139. package/dist/web/standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
  140. package/dist/web/standalone/.next/server/middleware.js +2 -2
  141. package/dist/web/standalone/.next/server/next-font-manifest.js +1 -1
  142. package/dist/web/standalone/.next/server/next-font-manifest.json +1 -1
  143. package/dist/web/standalone/.next/server/pages/404.html +1 -1
  144. package/dist/web/standalone/.next/server/pages/500.html +1 -1
  145. package/dist/web/standalone/.next/server/server-reference-manifest.json +1 -1
  146. package/dist/web/standalone/.next/static/chunks/2826.dd3dc8bbd3025fa5.js +9 -0
  147. package/dist/web/standalone/.next/static/chunks/app/_not-found/{page-2f24283c162b6ab3.js → page-f2a7482d42a5614b.js} +1 -1
  148. package/dist/web/standalone/.next/static/chunks/app/{layout-9ecfd95f343793f0.js → layout-a16c7a7ecdf0c2cf.js} +1 -1
  149. package/dist/web/standalone/.next/static/chunks/app/page-f1e30ab6bb269149.js +1 -0
  150. package/dist/web/standalone/.next/static/chunks/main-app-fdab67f7802d7832.js +1 -0
  151. package/dist/web/standalone/.next/static/chunks/next/dist/client/components/builtin/global-error-459824ffb8c323dd.js +1 -0
  152. package/dist/web/standalone/.next/static/chunks/{webpack-6e4d7e9a4f57bed4.js → webpack-b868033a5834586d.js} +1 -1
  153. package/dist/web/standalone/node_modules/node-pty/build/Makefile +2 -2
  154. package/dist/web/standalone/node_modules/node-pty/build/Release/pty.node +0 -0
  155. package/dist/web/standalone/node_modules/node-pty/build/pty.target.mk +14 -14
  156. package/dist/web/standalone/node_modules/node-pty/node-addon-api/node_addon_api.target.mk +14 -14
  157. package/dist/web/standalone/node_modules/node-pty/node-addon-api/node_addon_api_except.target.mk +14 -14
  158. package/dist/web/standalone/node_modules/node-pty/node-addon-api/node_addon_api_maybe.target.mk +14 -14
  159. package/dist/web/standalone/server.js +1 -1
  160. package/package.json +1 -1
  161. package/packages/mcp-server/dist/env-writer.d.ts +39 -0
  162. package/packages/mcp-server/dist/env-writer.d.ts.map +1 -0
  163. package/packages/mcp-server/dist/env-writer.js +158 -0
  164. package/packages/mcp-server/dist/env-writer.js.map +1 -0
  165. package/packages/mcp-server/dist/server.d.ts +11 -2
  166. package/packages/mcp-server/dist/server.d.ts.map +1 -1
  167. package/packages/mcp-server/dist/server.js +102 -2
  168. package/packages/mcp-server/dist/server.js.map +1 -1
  169. package/packages/mcp-server/src/env-writer.test.ts +280 -0
  170. package/packages/mcp-server/src/env-writer.ts +183 -0
  171. package/packages/mcp-server/src/secure-env-collect.test.ts +265 -0
  172. package/packages/mcp-server/src/server.ts +137 -3
  173. package/packages/pi-coding-agent/dist/core/chat-controller-ordering.test.d.ts +2 -0
  174. package/packages/pi-coding-agent/dist/core/chat-controller-ordering.test.d.ts.map +1 -0
  175. package/packages/pi-coding-agent/dist/core/chat-controller-ordering.test.js +388 -0
  176. package/packages/pi-coding-agent/dist/core/chat-controller-ordering.test.js.map +1 -0
  177. package/packages/pi-coding-agent/dist/core/extensions/types.d.ts +2 -0
  178. package/packages/pi-coding-agent/dist/core/extensions/types.d.ts.map +1 -1
  179. package/packages/pi-coding-agent/dist/core/extensions/types.js.map +1 -1
  180. package/packages/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts +19 -2
  181. package/packages/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -1
  182. package/packages/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js +50 -1
  183. package/packages/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js.map +1 -1
  184. package/packages/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts +1 -0
  185. package/packages/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +1 -1
  186. package/packages/pi-coding-agent/dist/modes/interactive/components/extension-input.js +1 -0
  187. package/packages/pi-coding-agent/dist/modes/interactive/components/extension-input.js.map +1 -1
  188. package/packages/pi-coding-agent/dist/modes/interactive/controllers/chat-controller.d.ts.map +1 -1
  189. package/packages/pi-coding-agent/dist/modes/interactive/controllers/chat-controller.js +168 -23
  190. package/packages/pi-coding-agent/dist/modes/interactive/controllers/chat-controller.js.map +1 -1
  191. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode-state.d.ts +1 -0
  192. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode-state.d.ts.map +1 -1
  193. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode-state.js.map +1 -1
  194. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +6 -0
  195. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  196. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js +58 -2
  197. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
  198. package/packages/pi-coding-agent/dist/modes/rpc/rpc-mode.js +1 -1
  199. package/packages/pi-coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -1
  200. package/packages/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts +1 -0
  201. package/packages/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  202. package/packages/pi-coding-agent/dist/modes/rpc/rpc-types.js.map +1 -1
  203. package/packages/pi-coding-agent/package.json +1 -1
  204. package/packages/pi-coding-agent/src/core/chat-controller-ordering.test.ts +468 -0
  205. package/packages/pi-coding-agent/src/core/extensions/types.ts +2 -0
  206. package/packages/pi-coding-agent/src/modes/interactive/components/dynamic-border.ts +58 -2
  207. package/packages/pi-coding-agent/src/modes/interactive/components/extension-input.ts +2 -0
  208. package/packages/pi-coding-agent/src/modes/interactive/controllers/chat-controller.ts +198 -29
  209. package/packages/pi-coding-agent/src/modes/interactive/interactive-mode-state.ts +1 -0
  210. package/packages/pi-coding-agent/src/modes/interactive/interactive-mode.ts +66 -2
  211. package/packages/pi-coding-agent/src/modes/rpc/rpc-mode.ts +1 -1
  212. package/packages/pi-coding-agent/src/modes/rpc/rpc-types.ts +1 -0
  213. package/packages/pi-tui/dist/components/__tests__/input.test.js +9 -0
  214. package/packages/pi-tui/dist/components/__tests__/input.test.js.map +1 -1
  215. package/packages/pi-tui/dist/components/__tests__/markdown-maxlines.test.d.ts +2 -0
  216. package/packages/pi-tui/dist/components/__tests__/markdown-maxlines.test.d.ts.map +1 -0
  217. package/packages/pi-tui/dist/components/__tests__/markdown-maxlines.test.js +66 -0
  218. package/packages/pi-tui/dist/components/__tests__/markdown-maxlines.test.js.map +1 -0
  219. package/packages/pi-tui/dist/components/input.d.ts +2 -0
  220. package/packages/pi-tui/dist/components/input.d.ts.map +1 -1
  221. package/packages/pi-tui/dist/components/input.js +7 -4
  222. package/packages/pi-tui/dist/components/input.js.map +1 -1
  223. package/packages/pi-tui/dist/components/markdown.d.ts +3 -0
  224. package/packages/pi-tui/dist/components/markdown.d.ts.map +1 -1
  225. package/packages/pi-tui/dist/components/markdown.js +17 -1
  226. package/packages/pi-tui/dist/components/markdown.js.map +1 -1
  227. package/packages/pi-tui/src/components/__tests__/input.test.ts +11 -0
  228. package/packages/pi-tui/src/components/__tests__/markdown-maxlines.test.ts +75 -0
  229. package/packages/pi-tui/src/components/input.ts +7 -4
  230. package/packages/pi-tui/src/components/markdown.ts +22 -1
  231. package/pkg/package.json +1 -1
  232. package/src/resources/extensions/claude-code-cli/stream-adapter.ts +166 -31
  233. package/src/resources/extensions/claude-code-cli/tests/stream-adapter.test.ts +145 -0
  234. package/src/resources/extensions/get-secrets-from-user.ts +24 -1
  235. package/src/resources/extensions/gsd/auto-start.ts +3 -13
  236. package/src/resources/extensions/gsd/bootstrap/register-hooks.ts +4 -0
  237. package/src/resources/extensions/gsd/custom-workflow-engine.ts +19 -14
  238. package/src/resources/extensions/gsd/file-lock.ts +59 -0
  239. package/src/resources/extensions/gsd/guided-flow.ts +12 -9
  240. package/src/resources/extensions/gsd/init-wizard.ts +3 -13
  241. package/src/resources/extensions/gsd/prompts/discuss.md +31 -13
  242. package/src/resources/extensions/gsd/state.ts +274 -344
  243. package/src/resources/extensions/gsd/tests/derive-state-helpers.test.ts +436 -0
  244. package/src/resources/extensions/gsd/tests/discuss-incremental-persistence.test.ts +9 -0
  245. package/src/resources/extensions/gsd/tests/file-lock.test.ts +103 -0
  246. package/src/resources/extensions/gsd/tests/secure-env-collect.test.ts +45 -0
  247. package/src/resources/extensions/gsd/tests/workflow-mcp-auto-prep.test.ts +76 -0
  248. package/src/resources/extensions/gsd/tests/workflow-mcp.test.ts +155 -1
  249. package/src/resources/extensions/gsd/tests/workflow-tool-executors.test.ts +22 -0
  250. package/src/resources/extensions/gsd/tools/workflow-tool-executors.ts +60 -25
  251. package/src/resources/extensions/gsd/workflow-events.ts +34 -25
  252. package/src/resources/extensions/gsd/workflow-mcp-auto-prep.ts +76 -0
  253. package/src/resources/extensions/gsd/workflow-mcp.ts +1 -1
  254. package/dist/web/standalone/.next/static/chunks/2826.821e01b07d92e948.js +0 -9
  255. package/dist/web/standalone/.next/static/chunks/app/page-7115e62689b5fd84.js +0 -1
  256. package/dist/web/standalone/.next/static/chunks/main-app-d3d4c336195465f9.js +0 -1
  257. package/dist/web/standalone/.next/static/chunks/next/dist/client/components/builtin/global-error-ab5a8926e07ec673.js +0 -1
  258. /package/dist/web/standalone/.next/static/{9pw9EXtXjdM7EFrCXUEPf → 4xyaXTn7-shVHaGMcl75o}/_buildManifest.js +0 -0
  259. /package/dist/web/standalone/.next/static/{9pw9EXtXjdM7EFrCXUEPf → 4xyaXTn7-shVHaGMcl75o}/_ssgManifest.js +0 -0
@@ -49,6 +49,26 @@ This happens ONCE, before the first round. The goal: your first questions should
49
49
 
50
50
  For subsequent rounds, continue investigating between rounds — check docs, search, or scout as needed to make each round's questions smarter. But the first-round investigation is mandatory and explicit. Distribute searches across turns rather than clustering them in one turn.
51
51
 
52
+ ## Question Rounds
53
+
54
+ Ask **1–3 questions per round**. Keep each round tightly focused on one or two of the depth checklist dimensions — do not try to cover all six in one round.
55
+
56
+ **If `{{structuredQuestionsAvailable}}` is `true`:** use `ask_user_questions` for each round. 1–3 questions per call, each as a separate question object. Keep option labels short (3–5 words). Always include a freeform "Other / let me explain" option. When the user picks that option or writes a long freeform answer, switch to plain text follow-up for that thread before resuming structured questions. **IMPORTANT: Call `ask_user_questions` exactly once per turn. Never make multiple calls with the same or overlapping questions — wait for the user's response before asking the next round.**
57
+
58
+ **If `{{structuredQuestionsAvailable}}` is `false`:** ask questions in plain text. Keep each round to 1–3 focused questions. Wait for answers before asking the next round.
59
+
60
+ After each answer set, investigate further if any answer opens a new unknown, then ask the next round.
61
+
62
+ ### Round cadence
63
+
64
+ After each round of answers, decide whether you already have enough depth to write strong output.
65
+
66
+ - **Incremental persistence:** After every 2 question rounds, silently save a `{{milestoneId}}-CONTEXT-DRAFT.md` using `gsd_summary_save` with `artifact_type: "CONTEXT-DRAFT"` and `milestone_id: "{{milestoneId}}"`. This protects confirmed work against session crashes. Do NOT mention this save to the user.
67
+ - If not ready, continue to the next round immediately. Do **not** ask a meta "ready to wrap up?" question after every round.
68
+ - **Depth-matching rule:** Simple, well-defined work needs fewer rounds — maybe 1–2. Large, ambiguous visions need more — maybe 4+. Do not pad rounds to hit a number. Stop when the Depth Enforcement checklist below is fully satisfied.
69
+ - Do not count the reflection step as a question round. Rounds start after reflection is confirmed.
70
+ - When you genuinely believe the depth checklist is satisfied, move to the Depth Verification step below. Do not ask a separate "ready to wrap up?" gate — the depth verification IS the gate.
71
+
52
72
  ## Questioning Philosophy
53
73
 
54
74
  You are a thinking partner, not an interviewer.
@@ -94,29 +114,27 @@ Do NOT offer to proceed until ALL of the following are satisfied. Track these in
94
114
 
95
115
  Before offering to proceed, demonstrate absorption: reference specific things the user emphasized, specific terminology they used, specific nuance they sharpened — and show how those shaped your understanding. Synthesize, don't recite. "Your emphasis on X led me to prioritize Y over Z" is good. "You said X, you said Y, you said Z" is not. The user should feel heard in the specifics, not just acknowledged in the abstract.
96
116
 
97
- **Questioning depth should match scope.** Simple, well-defined work needs fewer rounds — maybe 1-2. Large, ambiguous visions need more — maybe 4+. Don't pad rounds to hit a number. Stop when the depth checklist is satisfied and you genuinely understand the work.
98
-
99
- Do not count the reflection step as a question round. Rounds start after reflection is confirmed.
100
-
101
117
  ## Depth Verification
102
118
 
103
119
  Before moving to the wrap-up gate, present a structured depth summary as a checkpoint.
104
120
 
105
121
  **Print the summary as normal chat text first** — this is where the formatting renders properly. Structure the summary across the depth checklist dimensions using the user's own terminology and framing. Cover: what you understood them to be building, what shaped your understanding most (their emphasis, constraints, concerns), and any areas where you're least confident in your understanding.
106
122
 
107
- **Then** use `ask_user_questions` with a short confirmation question — NOT the summary itself. The question field is designed for single sentences, not multi-paragraph summaries.
123
+ **Then confirm:**
108
124
 
109
- **Convention:** The question ID must contain `depth_verification` (e.g., `depth_verification_confirm`). This naming convention enables downstream mechanical detection of this step.
125
+ **If `{{structuredQuestionsAvailable}}` is `true`:** use `ask_user_questions` with:
126
+ - header: "Depth Check"
127
+ - question: "Did I capture the depth right?"
128
+ - options: "Yes, you got it (Recommended)", "Not quite — let me clarify"
129
+ - **The question ID must contain `depth_verification`** (e.g., `depth_verification_confirm`) — this naming convention enables downstream mechanical detection and the write-gate.
110
130
 
111
- Example flow:
112
- 1. Print in chat: the full depth summary with markdown formatting (headers, bold, bullets)
113
- 2. Call `ask_user_questions` with: header "Depth Check", question "Did I capture the depth right?", options "Yes, you got it (Recommended)" and "Not quite — let me clarify"
131
+ **If `{{structuredQuestionsAvailable}}` is `false`:** ask in plain text: "Did I capture that correctly? If not, tell me what I missed." Wait for explicit confirmation before proceeding. **The same non-bypassable gate applies to the plain-text path** — if the user does not respond, gives an ambiguous answer, or does not explicitly confirm, you MUST re-ask. Never rationalize past a missing confirmation.
114
132
 
115
133
  If they clarify, absorb the correction and re-verify.
116
134
 
117
135
  The depth verification is the required write-gate. Do **not** add another meta "ready to proceed?" checkpoint immediately after it unless there is still material ambiguity.
118
136
 
119
- **CRITICAL — Non-bypassable gate:** The system mechanically blocks CONTEXT.md writes until the user selects the "(Recommended)" option. If the user declines, cancels, or the tool fails, you MUST re-ask — never rationalize past the block ("tool not responding, I'll proceed" is forbidden). The gate exists to protect the user's work; treat a block as an instruction, not an obstacle to work around.
137
+ **CRITICAL — Non-bypassable gate:** The system mechanically blocks CONTEXT.md writes until the user selects the "(Recommended)" option (structured path) or explicitly confirms (plain-text path). If the user declines, cancels, does not respond, or the tool fails, you MUST re-ask — never rationalize past the block ("tool not responding, I'll proceed" is forbidden). The gate exists to protect the user's work; treat a block as an instruction, not an obstacle to work around.
120
138
 
121
139
  ## Wrap-up Gate
122
140
 
@@ -244,7 +262,7 @@ If a milestone has no dependencies, omit the frontmatter. The dependency chain f
244
262
 
245
263
  #### Phase 3: Sequential readiness gate for remaining milestones
246
264
 
247
- For each remaining milestone **one at a time, in sequence**, decide the most likely readiness mode from the evidence you already have, then use `ask_user_questions` to let the user correct that recommendation. **Non-bypassable:** If `ask_user_questions` fails, errors, returns no response, or the user's response does not match a provided option, you MUST re-ask — never rationalize past the block or auto-select a readiness mode. Present three options:
265
+ For each remaining milestone **one at a time, in sequence**, decide the most likely readiness mode from the evidence you already have, then present the three options below to the user. **If `{{structuredQuestionsAvailable}}` is `true`:** use `ask_user_questions`. **If `{{structuredQuestionsAvailable}}` is `false`:** present the options as a plain-text numbered list and ask the user to type their choice. **Non-bypassable:** If the user does not respond, gives an ambiguous answer, or the tool fails, you MUST re-ask — never rationalize past the block or auto-select a readiness mode. Present three options:
248
266
 
249
267
  - **"Discuss now"** — The user wants to conduct a focused discussion for this milestone in the current session, while the context from the broader discussion is still fresh. Proceed with a focused discussion for this milestone (reflection → investigation → questioning → depth verification). When the discussion concludes, write a full `CONTEXT.md`. Then move to the gate for the next milestone.
250
268
  - **"Write draft for later"** — This milestone has seed material from the current conversation but needs its own dedicated discussion in a future session. Write a `CONTEXT-DRAFT.md` capturing the seed material (what was discussed, key ideas, provisional scope, open questions). Mark it clearly as a draft, not a finalized context. **What happens downstream:** When auto-mode reaches this milestone, it pauses and notifies the user: "M00x has draft context — needs discussion. Run /gsd." The `/gsd` wizard shows a "Discuss from draft" option that seeds the new discussion with this draft, so nothing from the current conversation is lost. After the dedicated discussion produces a full CONTEXT.md, the draft file is automatically deleted.
@@ -256,9 +274,9 @@ Before writing each milestone's CONTEXT.md (whether primary or secondary), you M
256
274
 
257
275
  1. **Read the actual code** for every file or module you reference. Confirm APIs exist, check what functions actually do, identify phantom capabilities (code that exists but isn't wired up).
258
276
  2. **Check for stale assumptions** — the codebase changes. Verify referenced modules still work as described.
259
- 3. **Present findings** — use `ask_user_questions` with a question ID containing BOTH `depth_verification` AND the milestone ID (e.g., `depth_verification_M002`). Present: what you're about to write, key technical findings from investigation, risks the code review surfaced.
277
+ 3. **Present findings** — **If `{{structuredQuestionsAvailable}}` is `true`:** use `ask_user_questions` with a question ID containing BOTH `depth_verification` AND the milestone ID (e.g., `depth_verification_M002`). Present: what you're about to write, key technical findings from investigation, risks the code review surfaced. **If `{{structuredQuestionsAvailable}}` is `false`:** present the same findings in plain text and ask for explicit confirmation before proceeding.
260
278
 
261
- **The system mechanically blocks CONTEXT.md writes until the per-milestone depth verification passes.** Each milestone needs its own verification — one global verification does not unlock all milestones.
279
+ **The system mechanically blocks CONTEXT.md writes until the per-milestone depth verification passes** (structured path: user selects "(Recommended)" option; plain-text path: user explicitly confirms). Each milestone needs its own verification — one global verification does not unlock all milestones.
262
280
 
263
281
  **Why sequential, not batch:** After writing the primary milestone's context and roadmap, the agent still has context window capacity. Asking one milestone at a time lets the user decide per-milestone whether to invest that remaining capacity in a focused discussion now, or defer to a future session. A batch question ("Ready/Draft/Queue for M002, M003, M004?") forces the user to decide everything upfront without knowing how much session capacity remains.
264
282