@kenkaiiii/ggcoder 4.3.212 → 4.3.213

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 (312) hide show
  1. package/README.md +5 -8
  2. package/dist/cli.d.ts +3 -1
  3. package/dist/cli.d.ts.map +1 -1
  4. package/dist/cli.js +112 -61
  5. package/dist/cli.js.map +1 -1
  6. package/dist/core/continue-replay-inventory.test.d.ts +2 -0
  7. package/dist/core/continue-replay-inventory.test.d.ts.map +1 -0
  8. package/dist/core/continue-replay-inventory.test.js +42 -0
  9. package/dist/core/continue-replay-inventory.test.js.map +1 -0
  10. package/dist/core/goal-controller.d.ts +2 -0
  11. package/dist/core/goal-controller.d.ts.map +1 -1
  12. package/dist/core/goal-controller.js +283 -24
  13. package/dist/core/goal-controller.js.map +1 -1
  14. package/dist/core/goal-controller.test.js +413 -16
  15. package/dist/core/goal-controller.test.js.map +1 -1
  16. package/dist/core/goal-lifecycle-smoke.test.js +48 -6
  17. package/dist/core/goal-lifecycle-smoke.test.js.map +1 -1
  18. package/dist/core/goal-prerequisites.d.ts +5 -0
  19. package/dist/core/goal-prerequisites.d.ts.map +1 -1
  20. package/dist/core/goal-prerequisites.js +37 -0
  21. package/dist/core/goal-prerequisites.js.map +1 -1
  22. package/dist/core/goal-prerequisites.test.js +29 -1
  23. package/dist/core/goal-prerequisites.test.js.map +1 -1
  24. package/dist/core/goal-references.d.ts +14 -0
  25. package/dist/core/goal-references.d.ts.map +1 -0
  26. package/dist/core/goal-references.js +153 -0
  27. package/dist/core/goal-references.js.map +1 -0
  28. package/dist/core/goal-references.test.d.ts +2 -0
  29. package/dist/core/goal-references.test.d.ts.map +1 -0
  30. package/dist/core/goal-references.test.js +77 -0
  31. package/dist/core/goal-references.test.js.map +1 -0
  32. package/dist/core/goal-store.d.ts +25 -0
  33. package/dist/core/goal-store.d.ts.map +1 -1
  34. package/dist/core/goal-store.js +150 -36
  35. package/dist/core/goal-store.js.map +1 -1
  36. package/dist/core/goal-store.test.js +19 -2
  37. package/dist/core/goal-store.test.js.map +1 -1
  38. package/dist/core/goal-verifier.d.ts.map +1 -1
  39. package/dist/core/goal-verifier.js +4 -1
  40. package/dist/core/goal-verifier.js.map +1 -1
  41. package/dist/core/goal-verifier.test.js +43 -0
  42. package/dist/core/goal-verifier.test.js.map +1 -1
  43. package/dist/core/goal-worker.d.ts +2 -0
  44. package/dist/core/goal-worker.d.ts.map +1 -1
  45. package/dist/core/goal-worker.js +33 -9
  46. package/dist/core/goal-worker.js.map +1 -1
  47. package/dist/core/goal-worker.test.js +49 -1
  48. package/dist/core/goal-worker.test.js.map +1 -1
  49. package/dist/core/prompt-commands.d.ts.map +1 -1
  50. package/dist/core/prompt-commands.js +28 -846
  51. package/dist/core/prompt-commands.js.map +1 -1
  52. package/dist/core/prompt-commands.test.js +40 -78
  53. package/dist/core/prompt-commands.test.js.map +1 -1
  54. package/dist/core/runtime-mode.d.ts +14 -0
  55. package/dist/core/runtime-mode.d.ts.map +1 -0
  56. package/dist/core/runtime-mode.js +10 -0
  57. package/dist/core/runtime-mode.js.map +1 -0
  58. package/dist/core/session-restore-display.test.d.ts +2 -0
  59. package/dist/core/session-restore-display.test.d.ts.map +1 -0
  60. package/dist/core/session-restore-display.test.js +100 -0
  61. package/dist/core/session-restore-display.test.js.map +1 -0
  62. package/dist/core/verify-commands.js +4 -4
  63. package/dist/core/verify-commands.js.map +1 -1
  64. package/dist/system-prompt.d.ts +2 -1
  65. package/dist/system-prompt.d.ts.map +1 -1
  66. package/dist/system-prompt.js +51 -37
  67. package/dist/system-prompt.js.map +1 -1
  68. package/dist/system-prompt.test.js +147 -40
  69. package/dist/system-prompt.test.js.map +1 -1
  70. package/dist/tools/bash.d.ts +3 -2
  71. package/dist/tools/bash.d.ts.map +1 -1
  72. package/dist/tools/bash.js +11 -4
  73. package/dist/tools/bash.js.map +1 -1
  74. package/dist/tools/edit.d.ts +5 -3
  75. package/dist/tools/edit.d.ts.map +1 -1
  76. package/dist/tools/edit.js +14 -4
  77. package/dist/tools/edit.js.map +1 -1
  78. package/dist/tools/edit.test.js +0 -10
  79. package/dist/tools/edit.test.js.map +1 -1
  80. package/dist/tools/goal-mode.test.d.ts +2 -0
  81. package/dist/tools/goal-mode.test.d.ts.map +1 -0
  82. package/dist/tools/goal-mode.test.js +121 -0
  83. package/dist/tools/goal-mode.test.js.map +1 -0
  84. package/dist/tools/goals.d.ts +15 -3
  85. package/dist/tools/goals.d.ts.map +1 -1
  86. package/dist/tools/goals.js +336 -26
  87. package/dist/tools/goals.js.map +1 -1
  88. package/dist/tools/goals.test.js +346 -6
  89. package/dist/tools/goals.test.js.map +1 -1
  90. package/dist/tools/index.d.ts +7 -10
  91. package/dist/tools/index.d.ts.map +1 -1
  92. package/dist/tools/index.js +6 -19
  93. package/dist/tools/index.js.map +1 -1
  94. package/dist/tools/plan-mode.test.js +34 -224
  95. package/dist/tools/plan-mode.test.js.map +1 -1
  96. package/dist/tools/prompt-hints.d.ts.map +1 -1
  97. package/dist/tools/prompt-hints.js +2 -6
  98. package/dist/tools/prompt-hints.js.map +1 -1
  99. package/dist/tools/subagent.d.ts +3 -2
  100. package/dist/tools/subagent.d.ts.map +1 -1
  101. package/dist/tools/subagent.js +4 -9
  102. package/dist/tools/subagent.js.map +1 -1
  103. package/dist/tools/write.d.ts +5 -3
  104. package/dist/tools/write.d.ts.map +1 -1
  105. package/dist/tools/write.js +14 -13
  106. package/dist/tools/write.js.map +1 -1
  107. package/dist/tools/write.test.js +0 -16
  108. package/dist/tools/write.test.js.map +1 -1
  109. package/dist/ui/App.d.ts +144 -28
  110. package/dist/ui/App.d.ts.map +1 -1
  111. package/dist/ui/App.js +1143 -862
  112. package/dist/ui/App.js.map +1 -1
  113. package/dist/ui/activity-phrases.d.ts.map +1 -1
  114. package/dist/ui/activity-phrases.js +0 -2
  115. package/dist/ui/activity-phrases.js.map +1 -1
  116. package/dist/ui/app-state-persistence.test.js +173 -5
  117. package/dist/ui/app-state-persistence.test.js.map +1 -1
  118. package/dist/ui/chat-layout-pinning.test.d.ts +2 -0
  119. package/dist/ui/chat-layout-pinning.test.d.ts.map +1 -0
  120. package/dist/ui/chat-layout-pinning.test.js +407 -0
  121. package/dist/ui/chat-layout-pinning.test.js.map +1 -0
  122. package/dist/ui/components/ActivityIndicator.d.ts +1 -2
  123. package/dist/ui/components/ActivityIndicator.d.ts.map +1 -1
  124. package/dist/ui/components/ActivityIndicator.js +63 -94
  125. package/dist/ui/components/ActivityIndicator.js.map +1 -1
  126. package/dist/ui/components/AssistantMessage.d.ts +6 -2
  127. package/dist/ui/components/AssistantMessage.d.ts.map +1 -1
  128. package/dist/ui/components/AssistantMessage.js +9 -4
  129. package/dist/ui/components/AssistantMessage.js.map +1 -1
  130. package/dist/ui/components/AssistantMessage.test.d.ts +2 -0
  131. package/dist/ui/components/AssistantMessage.test.d.ts.map +1 -0
  132. package/dist/ui/components/AssistantMessage.test.js +369 -0
  133. package/dist/ui/components/AssistantMessage.test.js.map +1 -0
  134. package/dist/ui/components/BackgroundTasksBar.d.ts +1 -3
  135. package/dist/ui/components/BackgroundTasksBar.d.ts.map +1 -1
  136. package/dist/ui/components/BackgroundTasksBar.js +2 -4
  137. package/dist/ui/components/BackgroundTasksBar.js.map +1 -1
  138. package/dist/ui/components/Banner.d.ts +1 -3
  139. package/dist/ui/components/Banner.d.ts.map +1 -1
  140. package/dist/ui/components/Banner.js +7 -3
  141. package/dist/ui/components/Banner.js.map +1 -1
  142. package/dist/ui/components/Footer.d.ts +26 -4
  143. package/dist/ui/components/Footer.d.ts.map +1 -1
  144. package/dist/ui/components/Footer.js +73 -21
  145. package/dist/ui/components/Footer.js.map +1 -1
  146. package/dist/ui/components/GoalOverlay.d.ts +28 -20
  147. package/dist/ui/components/GoalOverlay.d.ts.map +1 -1
  148. package/dist/ui/components/GoalOverlay.js +283 -253
  149. package/dist/ui/components/GoalOverlay.js.map +1 -1
  150. package/dist/ui/components/InputArea.d.ts +2 -6
  151. package/dist/ui/components/InputArea.d.ts.map +1 -1
  152. package/dist/ui/components/InputArea.js +40 -32
  153. package/dist/ui/components/InputArea.js.map +1 -1
  154. package/dist/ui/components/InputArea.test.js +11 -1
  155. package/dist/ui/components/InputArea.test.js.map +1 -1
  156. package/dist/ui/components/Markdown.d.ts +11 -11
  157. package/dist/ui/components/Markdown.d.ts.map +1 -1
  158. package/dist/ui/components/Markdown.js +25 -198
  159. package/dist/ui/components/Markdown.js.map +1 -1
  160. package/dist/ui/components/PlanOverlay.d.ts.map +1 -1
  161. package/dist/ui/components/PlanOverlay.js +1 -1
  162. package/dist/ui/components/PlanOverlay.js.map +1 -1
  163. package/dist/ui/components/ServerToolExecution.d.ts.map +1 -1
  164. package/dist/ui/components/ServerToolExecution.js +3 -2
  165. package/dist/ui/components/ServerToolExecution.js.map +1 -1
  166. package/dist/ui/components/SlashCommandMenu.d.ts +4 -3
  167. package/dist/ui/components/SlashCommandMenu.d.ts.map +1 -1
  168. package/dist/ui/components/SlashCommandMenu.js +38 -26
  169. package/dist/ui/components/SlashCommandMenu.js.map +1 -1
  170. package/dist/ui/components/StreamingArea.d.ts +11 -2
  171. package/dist/ui/components/StreamingArea.d.ts.map +1 -1
  172. package/dist/ui/components/StreamingArea.js +20 -23
  173. package/dist/ui/components/StreamingArea.js.map +1 -1
  174. package/dist/ui/components/StreamingArea.test.d.ts +2 -0
  175. package/dist/ui/components/StreamingArea.test.d.ts.map +1 -0
  176. package/dist/ui/components/StreamingArea.test.js +18 -0
  177. package/dist/ui/components/StreamingArea.test.js.map +1 -0
  178. package/dist/ui/components/ToolExecution.d.ts.map +1 -1
  179. package/dist/ui/components/ToolExecution.js +11 -27
  180. package/dist/ui/components/ToolExecution.js.map +1 -1
  181. package/dist/ui/components/ToolGroupExecution.d.ts.map +1 -1
  182. package/dist/ui/components/ToolGroupExecution.js +9 -124
  183. package/dist/ui/components/ToolGroupExecution.js.map +1 -1
  184. package/dist/ui/components/UserMessage.d.ts.map +1 -1
  185. package/dist/ui/components/UserMessage.js +15 -10
  186. package/dist/ui/components/UserMessage.js.map +1 -1
  187. package/dist/ui/components/UserMessage.test.d.ts +2 -0
  188. package/dist/ui/components/UserMessage.test.d.ts.map +1 -0
  189. package/dist/ui/components/UserMessage.test.js +39 -0
  190. package/dist/ui/components/UserMessage.test.js.map +1 -0
  191. package/dist/ui/footer-status-layout.test.js +21 -7
  192. package/dist/ui/footer-status-layout.test.js.map +1 -1
  193. package/dist/ui/goal-events.d.ts +8 -0
  194. package/dist/ui/goal-events.d.ts.map +1 -1
  195. package/dist/ui/goal-events.js +28 -8
  196. package/dist/ui/goal-events.js.map +1 -1
  197. package/dist/ui/goal-events.test.js +40 -2
  198. package/dist/ui/goal-events.test.js.map +1 -1
  199. package/dist/ui/goal-lifecycle-orchestration.test.js +127 -34
  200. package/dist/ui/goal-lifecycle-orchestration.test.js.map +1 -1
  201. package/dist/ui/goal-overlay.test.js +121 -43
  202. package/dist/ui/goal-overlay.test.js.map +1 -1
  203. package/dist/ui/goal-summary.d.ts +14 -0
  204. package/dist/ui/goal-summary.d.ts.map +1 -0
  205. package/dist/ui/goal-summary.js +194 -0
  206. package/dist/ui/goal-summary.js.map +1 -0
  207. package/dist/ui/hooks/useAgentLoop.d.ts +8 -2
  208. package/dist/ui/hooks/useAgentLoop.d.ts.map +1 -1
  209. package/dist/ui/hooks/useAgentLoop.js +20 -9
  210. package/dist/ui/hooks/useAgentLoop.js.map +1 -1
  211. package/dist/ui/hooks/useAgentLoop.test.d.ts +2 -0
  212. package/dist/ui/hooks/useAgentLoop.test.d.ts.map +1 -0
  213. package/dist/ui/hooks/useAgentLoop.test.js +8 -0
  214. package/dist/ui/hooks/useAgentLoop.test.js.map +1 -0
  215. package/dist/ui/hooks/useTerminalSize.d.ts +5 -9
  216. package/dist/ui/hooks/useTerminalSize.d.ts.map +1 -1
  217. package/dist/ui/hooks/useTerminalSize.js +9 -14
  218. package/dist/ui/hooks/useTerminalSize.js.map +1 -1
  219. package/dist/ui/live-item-flush.d.ts +2 -2
  220. package/dist/ui/live-item-flush.d.ts.map +1 -1
  221. package/dist/ui/live-item-flush.js +8 -4
  222. package/dist/ui/live-item-flush.js.map +1 -1
  223. package/dist/ui/long-prompt-regression-harness.test.d.ts +2 -0
  224. package/dist/ui/long-prompt-regression-harness.test.d.ts.map +1 -0
  225. package/dist/ui/long-prompt-regression-harness.test.js +195 -0
  226. package/dist/ui/long-prompt-regression-harness.test.js.map +1 -0
  227. package/dist/ui/plan-overlay.test.js +7 -29
  228. package/dist/ui/plan-overlay.test.js.map +1 -1
  229. package/dist/ui/queued-message.test.d.ts.map +1 -1
  230. package/dist/ui/queued-message.test.js +76 -14
  231. package/dist/ui/queued-message.test.js.map +1 -1
  232. package/dist/ui/render.d.ts +21 -24
  233. package/dist/ui/render.d.ts.map +1 -1
  234. package/dist/ui/render.js +46 -28
  235. package/dist/ui/render.js.map +1 -1
  236. package/dist/ui/render.test.d.ts +2 -0
  237. package/dist/ui/render.test.d.ts.map +1 -0
  238. package/dist/ui/render.test.js +16 -0
  239. package/dist/ui/render.test.js.map +1 -0
  240. package/dist/ui/scroll-stabilization.test.js +1 -1
  241. package/dist/ui/scroll-stabilization.test.js.map +1 -1
  242. package/dist/ui/slash-command-images.test.js +79 -4
  243. package/dist/ui/slash-command-images.test.js.map +1 -1
  244. package/dist/ui/terminal-history.d.ts +26 -0
  245. package/dist/ui/terminal-history.d.ts.map +1 -0
  246. package/dist/ui/terminal-history.js +910 -0
  247. package/dist/ui/terminal-history.js.map +1 -0
  248. package/dist/ui/terminal-history.test.d.ts +2 -0
  249. package/dist/ui/terminal-history.test.d.ts.map +1 -0
  250. package/dist/ui/terminal-history.test.js +314 -0
  251. package/dist/ui/terminal-history.test.js.map +1 -0
  252. package/dist/ui/tool-group-summary.d.ts +16 -0
  253. package/dist/ui/tool-group-summary.d.ts.map +1 -0
  254. package/dist/ui/tool-group-summary.js +123 -0
  255. package/dist/ui/tool-group-summary.js.map +1 -0
  256. package/dist/ui/tui-history-parity.test.d.ts +2 -0
  257. package/dist/ui/tui-history-parity.test.d.ts.map +1 -0
  258. package/dist/ui/tui-history-parity.test.js +243 -0
  259. package/dist/ui/tui-history-parity.test.js.map +1 -0
  260. package/dist/ui/utils/assistant-stream-split.d.ts +6 -0
  261. package/dist/ui/utils/assistant-stream-split.d.ts.map +1 -0
  262. package/dist/ui/utils/assistant-stream-split.js +37 -0
  263. package/dist/ui/utils/assistant-stream-split.js.map +1 -0
  264. package/dist/ui/utils/assistant-stream-split.test.d.ts +2 -0
  265. package/dist/ui/utils/assistant-stream-split.test.d.ts.map +1 -0
  266. package/dist/ui/utils/assistant-stream-split.test.js +58 -0
  267. package/dist/ui/utils/assistant-stream-split.test.js.map +1 -0
  268. package/dist/ui/utils/latex-to-unicode.d.ts +22 -0
  269. package/dist/ui/utils/latex-to-unicode.d.ts.map +1 -0
  270. package/dist/ui/utils/latex-to-unicode.js +538 -0
  271. package/dist/ui/utils/latex-to-unicode.js.map +1 -0
  272. package/dist/ui/utils/markdown-renderer.d.ts +20 -0
  273. package/dist/ui/utils/markdown-renderer.d.ts.map +1 -0
  274. package/dist/ui/utils/markdown-renderer.js +327 -0
  275. package/dist/ui/utils/markdown-renderer.js.map +1 -0
  276. package/dist/ui/utils/markdown-table.d.ts +9 -0
  277. package/dist/ui/utils/markdown-table.d.ts.map +1 -0
  278. package/dist/ui/utils/markdown-table.js +95 -0
  279. package/dist/ui/utils/markdown-table.js.map +1 -0
  280. package/dist/ui/utils/text-utils.d.ts +8 -0
  281. package/dist/ui/utils/text-utils.d.ts.map +1 -0
  282. package/dist/ui/utils/text-utils.js +16 -0
  283. package/dist/ui/utils/text-utils.js.map +1 -0
  284. package/dist/ui/utils/token-to-ansi.js +19 -9
  285. package/dist/ui/utils/token-to-ansi.js.map +1 -1
  286. package/dist/ui/utils/user-message-display.d.ts +7 -0
  287. package/dist/ui/utils/user-message-display.d.ts.map +1 -0
  288. package/dist/ui/utils/user-message-display.js +26 -0
  289. package/dist/ui/utils/user-message-display.js.map +1 -0
  290. package/dist/utils/format.js +0 -9
  291. package/dist/utils/format.js.map +1 -1
  292. package/package.json +9 -5
  293. package/dist/tools/enter-plan.d.ts +0 -8
  294. package/dist/tools/enter-plan.d.ts.map +0 -1
  295. package/dist/tools/enter-plan.js +0 -30
  296. package/dist/tools/enter-plan.js.map +0 -1
  297. package/dist/tools/exit-plan.d.ts +0 -8
  298. package/dist/tools/exit-plan.d.ts.map +0 -1
  299. package/dist/tools/exit-plan.js +0 -36
  300. package/dist/tools/exit-plan.js.map +0 -1
  301. package/dist/tools/tasks.d.ts +0 -16
  302. package/dist/tools/tasks.d.ts.map +0 -1
  303. package/dist/tools/tasks.js +0 -133
  304. package/dist/tools/tasks.js.map +0 -1
  305. package/dist/ui/components/EyesOverlay.d.ts +0 -10
  306. package/dist/ui/components/EyesOverlay.d.ts.map +0 -1
  307. package/dist/ui/components/EyesOverlay.js +0 -220
  308. package/dist/ui/components/EyesOverlay.js.map +0 -1
  309. package/dist/ui/components/TaskOverlay.d.ts +0 -10
  310. package/dist/ui/components/TaskOverlay.d.ts.map +0 -1
  311. package/dist/ui/components/TaskOverlay.js +0 -267
  312. package/dist/ui/components/TaskOverlay.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-commands.js","sourceRoot":"","sources":["../../src/core/prompt-commands.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,iCAAiC;QAC9C,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+lBAmEmlB;KAC5lB;IACD;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+BAA+B;QAC5C,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;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EAAE,SAAS;QACf,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yBAAyB;QACtC,MAAM,EAAE;;;;;;;;;;;;;;;iFAeqE;KAC9E;IACD;QACE,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yBAAyB;QACtC,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gLA6FoK;KAC7K;IACD;QACE,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,WAAW,EAAE,qBAAqB;QAClC,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6JAwFiJ;KAC1J;CACF,CAAC;AAEF,gDAAgD;AAChD,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,IAAI,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AACxF,CAAC"}
@@ -5,80 +5,32 @@ function getGoalPrompt() {
5
5
  expect(goal).toBeDefined();
6
6
  return goal?.prompt ?? "";
7
7
  }
8
- function expectOrdered(text, snippets) {
9
- let previousIndex = -1;
10
- for (const snippet of snippets) {
11
- const index = text.indexOf(snippet);
12
- expect(index, `Missing ordered snippet: ${snippet}`).toBeGreaterThan(previousIndex);
13
- previousIndex = index;
14
- }
15
- }
16
8
  describe("prompt commands", () => {
17
- it("defines /goal as a durable loop with proportional sensory proof", () => {
9
+ it("defines /goal as a short Goal setup wrapper", () => {
18
10
  const goal = PROMPT_COMMANDS.find((command) => command.name === "goal");
19
11
  const prompt = getGoalPrompt();
20
12
  expect(goal?.description).toContain("programmatic goal loop");
21
- expect(prompt).toContain("Core mindset: goal-specific sensory proof");
22
- expect(prompt).toContain("Do not default to ordinary tests, generic scripts, or broad simulations");
23
- expect(prompt).toContain("Required senses/signals");
24
- expect(prompt).toContain("Proportional instruments");
25
- expect(prompt).toContain("Any examples you consider are inspiration, not a checklist");
26
- expect(prompt).toContain("Persist the run with the goals tool");
27
- expect(prompt).toContain("evidence_plan items");
28
- expect(prompt).toContain("Non-negotiable boundary: /goal creates a run, it does not do the work");
29
- expect(prompt).toContain("Create or update the durable run and Goal tasks, then stop");
30
- expect(prompt).toContain("Do not implement, fix, refactor, edit, or generate project artifacts");
31
- expect(prompt).toContain("Do not call subagent, the normal tasks tool, goals resume");
32
- expect(prompt).toContain('Do not run the verifier or "just start" any task');
33
- expect(prompt).toContain("Worker agents do implementation after the user explicitly starts the Goal");
34
- expect(prompt).toContain("Plan first; do not build during initial Goal creation");
35
- expect(prompt).toContain("You MUST run every cheap local prerequisite check");
36
- expect(prompt).toContain("Do not leave a locally checkable prerequisite as unknown");
37
- expect(prompt).toContain("do not mark any prerequisite met unless you have checked it");
38
- expect(prompt).toContain("the goals tool will also run each provided `check_command` before persisting");
39
- expect(prompt).toContain("worker agents should build instruments");
40
- expect(prompt).toContain("after the user starts the Goal");
41
- expect(prompt).toContain("capture it as a Goal task instead of doing it yourself");
42
- expect(prompt).toContain("Only ask the user for true external blockers");
43
- expect(prompt).toContain('named "User prerequisites" in the pane');
44
- expect(prompt).toContain("The user may provide the missing value or instructions in chat");
45
- expect(prompt).toContain("verify it locally without revealing secrets");
46
- expect(prompt).toContain("do not simulate, script, screenshot, benchmark, or red-team anything unless that signal is relevant");
47
- expect(prompt).toContain("Do not use the normal tasks tool for this workflow");
48
- expect(prompt).toContain("Each Goal task prompt must be standalone");
49
- expect(prompt).toContain('Avoid pure "investigate and report" tasks');
50
- expect(prompt).toContain('goals({ action: "evidence"');
51
- expect(prompt).toContain("creating or updating the next implementation task");
52
- expect(prompt).toContain("persist the run/tasks/evidence plan → stop");
53
- expect(prompt).toContain("briefly say what the orchestrator is doing");
54
- expect(prompt).toContain("take the next durable control-loop action rather than merely narrating");
55
- expect(prompt).toContain("do not switch into hands-on implementation");
56
- expect(prompt).toContain("only complete after verification passes");
57
- expect(prompt).toContain("Then stop. Do not continue into implementation");
58
- expect(prompt).toContain("worker startup, verifier execution, or Goal resume");
59
- expect(prompt).toContain("Goal pane keybind is (r) to run it");
60
- expect(prompt).toContain("give the user a specific final summary in chat");
61
- expect(prompt).toContain("Do not collapse the outcome into one generic row");
62
- expect(prompt).toContain("one row per substantive Goal task");
63
- expect(prompt).toContain("problem, how it was proven real or wrong, what fixed it");
64
- expect(prompt).toContain("creation/improvement/non-problem goals");
65
- expect(prompt).toContain("Include small snippets when useful");
66
- expect(prompt).toContain("file:line references, command names and exit codes");
67
- expect(prompt).toContain('concrete proof snippets instead of a generic "verified" claim');
13
+ expect(prompt).toContain("Create a Goal run for the following objective");
14
+ expect(prompt).toContain("First plan/research only if needed");
15
+ expect(prompt).toContain("Goal setup will consume that plan");
16
+ expect(prompt.length).toBeLessThan(240);
17
+ expect(prompt).not.toContain("Core mindset: goal-specific sensory proof");
18
+ expect(prompt).not.toContain("Non-negotiable boundary: /goal creates a run");
19
+ expect(prompt).not.toContain("Do not implement, fix, refactor, edit");
68
20
  });
69
- it("keeps the /goal sensory-proof mindset complete and ordered", () => {
21
+ it("keeps deep Goal setup policy out of the slash command body", () => {
70
22
  const prompt = getGoalPrompt();
71
- expectOrdered(prompt, [
23
+ for (const snippet of [
72
24
  "1. Intended experience",
73
25
  "2. Failure imagination",
74
26
  "3. Required senses/signals",
75
27
  "4. Proportional instruments",
76
28
  "5. Completion rule",
77
- ]);
78
- expect(prompt).toContain("First model what must be experienced");
79
- expect(prompt).toContain("Think in capabilities, not fixed tools");
80
- expect(prompt).toContain("as small as possible while still removing the important assumptions");
81
- expect(prompt).toContain("what remains unproven or blocked");
29
+ ]) {
30
+ expect(prompt).not.toContain(snippet);
31
+ }
32
+ expect(prompt).not.toContain("Do not default to ordinary tests, generic scripts");
33
+ expect(prompt).not.toContain("worker agents should build instruments");
82
34
  });
83
35
  it("guards /goal against the old generic proof-path bias", () => {
84
36
  const prompt = getGoalPrompt();
@@ -95,19 +47,25 @@ describe("prompt commands", () => {
95
47
  expect(prompt).not.toContain(phrase);
96
48
  }
97
49
  });
98
- it("defines /source as a plan-research-adjust-verify command", () => {
99
- const source = PROMPT_COMMANDS.find((command) => command.name === "source");
100
- expect(source).toBeDefined();
101
- expect(source?.aliases).toEqual(["depcheck", "depsource"]);
102
- expect(source?.description).toContain("Plan, source-check, adjust, and verify");
103
- expect(source?.prompt).toContain("# Source: Plan → Research → Adjust → Verify");
104
- expect(source?.prompt).toContain("Do a short, private plan");
105
- expect(source?.prompt).toContain("call `source_path` before making claims");
106
- expect(source?.prompt).toContain("Spawn the research sub-agents in parallel");
107
- expect(source?.prompt).toContain("fix all confirmed issues directly");
108
- expect(source?.prompt).toContain("Run the relevant project checks");
109
- expect(source?.prompt).not.toContain("Do not start implementing until the user chooses");
110
- expect(source?.prompt).not.toContain("Report only");
50
+ it("removes retired prompt-template commands", () => {
51
+ const removedCommandNames = [
52
+ "scan",
53
+ "verify",
54
+ "source",
55
+ "simplify",
56
+ "batch",
57
+ "research",
58
+ "setup-lint",
59
+ `setup-${"tests"}`,
60
+ "setup-update",
61
+ ];
62
+ const removedAliases = ["depcheck", "depsource"];
63
+ for (const name of removedCommandNames) {
64
+ expect(PROMPT_COMMANDS.find((command) => command.name === name)).toBeUndefined();
65
+ }
66
+ for (const alias of removedAliases) {
67
+ expect(PROMPT_COMMANDS.find((command) => command.aliases.includes(alias))).toBeUndefined();
68
+ }
111
69
  });
112
70
  it("defines /expand as a fresh, repo-validated comparison command", () => {
113
71
  const expand = PROMPT_COMMANDS.find((command) => command.name === "expand");
@@ -117,7 +75,7 @@ describe("prompt commands", () => {
117
75
  expect(expand?.prompt).toContain("validate it yourself before reporting");
118
76
  expect(expand?.prompt).toContain("The table must have exactly 3 columns");
119
77
  expect(expand?.prompt).toContain("Do not start implementing until the user chooses");
120
- expect(expand?.prompt).toContain("Do not create planning tasks");
78
+ expect(expand?.prompt).toContain("Do not create planning-only Goal tasks");
121
79
  expect(expand?.prompt).not.toContain("Create an implementation plan first");
122
80
  expect(expand?.prompt).not.toContain("create one planning task");
123
81
  expect(expand?.prompt).not.toContain("plan mode");
@@ -128,7 +86,10 @@ describe("prompt commands", () => {
128
86
  expect(init?.prompt).toContain("project-specific context only");
129
87
  expect(init?.prompt).toContain("Do NOT add generic agent behavior");
130
88
  expect(init?.prompt).toContain("Remove generic guidance");
131
- expect(init?.prompt).toContain("Do not duplicate language style packs or generic verification rules");
89
+ expect(init?.prompt).toContain("Never add guidance that requires running checks");
90
+ expect(init?.prompt).toContain("mandatory after-every-edit requirements");
91
+ expect(init?.prompt).toContain("After editing ANY file");
92
+ expect(init?.prompt).toContain("Do not duplicate language style packs, generic verification rules");
132
93
  expect(init?.prompt).toContain("Do NOT embed generated symbol maps");
133
94
  expect(init?.prompt).toContain("generated repo maps");
134
95
  expect(init?.prompt).toContain("CLAUDE.md must remain durable, agent-focused project context");
@@ -136,6 +97,7 @@ describe("prompt commands", () => {
136
97
  expect(init?.prompt).not.toContain("one file per component");
137
98
  expect(init?.prompt).not.toContain("single responsibility");
138
99
  expect(init?.prompt).not.toContain("zero-tolerance code quality checks");
100
+ expect(init?.prompt).not.toContain("run full quality suite after every edit");
139
101
  });
140
102
  });
141
103
  //# sourceMappingURL=prompt-commands.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-commands.test.js","sourceRoot":"","sources":["../../src/core/prompt-commands.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,SAAS,aAAa;IACpB,MAAM,IAAI,GAAG,eAAe,CAAC,IA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I,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QAC5D,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,oCAAoC,CAAC,CAAC;QACzE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,yCAAyC,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ export type GoalMode = "off" | "planner" | "setup" | "coordinator";
2
+ export interface RuntimeModeRefs {
3
+ goalModeRef?: {
4
+ current: GoalMode;
5
+ };
6
+ }
7
+ export declare function getActiveGoalMode(goalModeRef?: {
8
+ current: GoalMode;
9
+ }): GoalMode;
10
+ export declare function isGoalModeActive(goalModeRef?: {
11
+ current: GoalMode;
12
+ }): boolean;
13
+ export declare function goalModeRestriction(toolName: string, action: string): string;
14
+ //# sourceMappingURL=runtime-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-mode.d.ts","sourceRoot":"","sources":["../../src/core/runtime-mode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE;QAAE,OAAO,EAAE,QAAQ,CAAA;KAAE,CAAC;CACrC;AAED,wBAAgB,iBAAiB,CAAC,WAAW,CAAC,EAAE;IAAE,OAAO,EAAE,QAAQ,CAAA;CAAE,GAAG,QAAQ,CAE/E;AAED,wBAAgB,gBAAgB,CAAC,WAAW,CAAC,EAAE;IAAE,OAAO,EAAE,QAAQ,CAAA;CAAE,GAAG,OAAO,CAE7E;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAE5E"}
@@ -0,0 +1,10 @@
1
+ export function getActiveGoalMode(goalModeRef) {
2
+ return goalModeRef?.current ?? "off";
3
+ }
4
+ export function isGoalModeActive(goalModeRef) {
5
+ return getActiveGoalMode(goalModeRef) !== "off";
6
+ }
7
+ export function goalModeRestriction(toolName, action) {
8
+ return `Error: ${toolName} is restricted in Goal mode. The parent session is planning/orchestration-only; use the appropriate Goal phase for ${action} and let Goal workers perform implementation.`;
9
+ }
10
+ //# sourceMappingURL=runtime-mode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-mode.js","sourceRoot":"","sources":["../../src/core/runtime-mode.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,iBAAiB,CAAC,WAAmC;IACnE,OAAO,WAAW,EAAE,OAAO,IAAI,KAAK,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,WAAmC;IAClE,OAAO,iBAAiB,CAAC,WAAW,CAAC,KAAK,KAAK,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,QAAgB,EAAE,MAAc;IAClE,OAAO,UAAU,QAAQ,sHAAsH,MAAM,+CAA+C,CAAC;AACvM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=session-restore-display.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-restore-display.test.d.ts","sourceRoot":"","sources":["../../src/core/session-restore-display.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,100 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { messagesToHistoryItems } from "../cli.js";
3
+ import { getRestoredMessagesForDisplay } from "./session-compaction.js";
4
+ import { GOAL_EVENT_PAYLOAD_PREFIX, GOAL_VERIFIER_EVENT_PREFIX, GOAL_WORKER_EVENT_PREFIX, } from "../ui/goal-events.js";
5
+ function extractText(content) {
6
+ if (typeof content === "string")
7
+ return content;
8
+ if (!Array.isArray(content))
9
+ return "";
10
+ return content
11
+ .filter((block) => block.type === "text" && "text" in block)
12
+ .map((block) => block.text)
13
+ .join("\n");
14
+ }
15
+ function replayTexts(messages) {
16
+ return getRestoredMessagesForDisplay(messages).map((message) => extractText(message.content));
17
+ }
18
+ function replayHistory(messages) {
19
+ return messagesToHistoryItems(getRestoredMessagesForDisplay(messages));
20
+ }
21
+ describe("continued session replay display filtering", () => {
22
+ it("does not replay raw persisted goal worker synthetic events as chat", () => {
23
+ const persisted = [
24
+ { role: "user", content: "please keep this normal user prompt" },
25
+ {
26
+ role: "user",
27
+ content: `${GOAL_WORKER_EVENT_PREFIX} run_id="run-a" goal="Fix replay" task_id="task-a" task="Repro" worker="worker-a" status=done exit_code=0\n${GOAL_EVENT_PAYLOAD_PREFIX}{"version":1,"kind":"worker","runId":"run-a","goal":"Fix replay","status":"done","exitCode":0,"summary":"done","goalState":{"status":"running","userPrerequisites":"(none)","verifier":null,"blockers":[],"prerequisites":[],"evidencePlan":[],"tasks":[],"evidenceCount":0},"taskId":"task-a","task":"Repro","worker":"worker-a","workerLogFile":"/tmp/worker.log","toolsUsed":[]}\nsummary:\ndone`,
28
+ },
29
+ ];
30
+ const history = replayHistory(persisted);
31
+ const replayedText = JSON.stringify(history);
32
+ expect(history).toMatchObject([
33
+ { kind: "user", text: "please keep this normal user prompt" },
34
+ {
35
+ kind: "goal_progress",
36
+ phase: "worker_finished",
37
+ title: "Done: Repro",
38
+ detail: "done",
39
+ workerId: "worker-a",
40
+ status: "done",
41
+ },
42
+ ]);
43
+ expect(replayedText).not.toContain(GOAL_WORKER_EVENT_PREFIX);
44
+ expect(replayedText).not.toContain(GOAL_EVENT_PAYLOAD_PREFIX);
45
+ });
46
+ it("does not replay raw persisted goal verifier synthetic events as chat", () => {
47
+ const persisted = [
48
+ {
49
+ role: "user",
50
+ content: `${GOAL_VERIFIER_EVENT_PREFIX} run_id="run-a" goal="Fix replay" status=fail exit_code=1\n${GOAL_EVENT_PAYLOAD_PREFIX}{"version":1,"kind":"verifier","runId":"run-a","goal":"Fix replay","status":"fail","exitCode":1,"summary":"failed","goalState":{"status":"verifying","userPrerequisites":"(none)","verifier":null,"blockers":[],"prerequisites":[],"evidencePlan":[],"tasks":[],"evidenceCount":0},"command":"pnpm test","fixAttempts":0,"fixLimit":3,"completionGuidance":"fix"}\nsummary:\nfailed`,
51
+ },
52
+ ];
53
+ const history = replayHistory(persisted);
54
+ const replayedText = JSON.stringify(history);
55
+ expect(history).toMatchObject([
56
+ {
57
+ kind: "goal_progress",
58
+ phase: "verifier_finished",
59
+ title: "Verifier fail: Fix replay",
60
+ detail: "failed",
61
+ status: "fail",
62
+ },
63
+ ]);
64
+ expect(replayedText).not.toContain(GOAL_VERIFIER_EVENT_PREFIX);
65
+ expect(replayedText).not.toContain(GOAL_EVENT_PAYLOAD_PREFIX);
66
+ });
67
+ it("restores terminal goal state as a compact goal progress row", () => {
68
+ const persisted = [
69
+ {
70
+ role: "user",
71
+ content: `${GOAL_VERIFIER_EVENT_PREFIX} run_id="run-a" goal="Fix replay" status=pass exit_code=0\n${GOAL_EVENT_PAYLOAD_PREFIX}{"version":1,"kind":"verifier","runId":"run-a","goal":"Fix replay","status":"pass","exitCode":0,"summary":"Verifier passed","goalState":{"status":"passed","userPrerequisites":"(none)","verifier":{"description":"Replay verifier","lastStatus":"pass"},"blockers":[],"prerequisites":[],"evidencePlan":[],"tasks":[{"id":"task-a","title":"Repro","status":"done","attempts":1}],"evidenceCount":3},"command":"pnpm test","fixAttempts":0,"fixLimit":3,"completionGuidance":"complete"}\nsummary:\nVerifier passed`,
72
+ },
73
+ ];
74
+ const history = replayHistory(persisted);
75
+ const replayedText = JSON.stringify(history);
76
+ expect(history).toMatchObject([
77
+ {
78
+ kind: "goal_progress",
79
+ phase: "terminal",
80
+ title: "Goal passed: Fix replay",
81
+ detail: "Verifier passed",
82
+ status: "passed",
83
+ },
84
+ ]);
85
+ expect(replayedText).not.toContain(GOAL_VERIFIER_EVENT_PREFIX);
86
+ expect(replayedText).not.toContain(GOAL_EVENT_PAYLOAD_PREFIX);
87
+ });
88
+ it("keeps compact restore/system control out of display but preserves normal slash-command text", () => {
89
+ const persisted = [
90
+ { role: "system", content: "internal system control should remain hidden" },
91
+ { role: "user", content: "/help" },
92
+ { role: "assistant", content: "Here are the available commands." },
93
+ ];
94
+ const replayedText = replayTexts(persisted).join("\n");
95
+ expect(replayedText).not.toContain("internal system control");
96
+ expect(replayedText).toContain("/help");
97
+ expect(replayedText).toContain("Here are the available commands.");
98
+ });
99
+ });
100
+ //# sourceMappingURL=session-restore-display.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-restore-display.test.js","sourceRoot":"","sources":["../../src/core/session-restore-display.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAE9B,SAAS,WAAW,CAAC,OAA2B;IAC9C,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC;IAChD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC;IACvC,OAAO,OAAO;SACX,MAAM,CACL,CAAC,KAAK,EAA2C,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,MAAM,IAAI,KAAK,CAC7F;SACA,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;SAC1B,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,SAAS,WAAW,CAAC,QAA4B;IAC/C,OAAO,6BAA6B,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,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Ac;YAC3B,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,8CAA8C,EAAE;YAC3E,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE;YAClC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,kCAAkC,EAAE;SACnE,CAAC;QAEF,MAAM,YAAY,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEvD,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAC9D,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACxC,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -200,10 +200,10 @@ export function renderVerifySection(cmds) {
200
200
  lines.push(`- **${lang}**: ${parts}`);
201
201
  }
202
202
  return (`## Verification\n\n` +
203
- `After meaningful edits, run the relevant verification commands below to ` +
204
- `confirm pack compliance. Pick only the commands matching the language(s) ` +
205
- `you actually touched. If a command fails, fix the issues before reporting ` +
206
- `the task complete \u2014 never claim success on unverified output.\n\n` +
203
+ `When verification is needed, choose the smallest relevant command(s) below. ` +
204
+ `Pick only the commands matching the language(s) you actually touched; do not ` +
205
+ `run the full list by default after every edit. If a command fails, fix the ` +
206
+ `issues before reporting the task complete \u2014 never claim success on unverified output.\n\n` +
207
207
  lines.join("\n"));
208
208
  }
209
209
  //# sourceMappingURL=verify-commands.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"verify-commands.js","sourceRoot":"","sources":["../../src/core/verify-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAoB7B;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,GAAW,EA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AG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1E,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,EAAE,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,CACL,qBAAqB;QACrB,8EAA8E;QAC9E,+EAA+E;QAC/E,6EAA6E;QAC7E,gGAAgG;QAChG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CACjB,CAAC;AACJ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { type Skill } from "./core/skills.js";
2
2
  import type { LanguageId } from "./core/language-detector.js";
3
+ import type { GoalMode } from "./core/runtime-mode.js";
3
4
  /**
4
5
  * Build the system prompt dynamically based on cwd and context.
5
6
  *
@@ -7,5 +8,5 @@ import type { LanguageId } from "./core/language-detector.js";
7
8
  * Pass `tools.map(t => t.name)` from the session so the prompt reflects
8
9
  * exactly what the model can call. Defaults to the full built-in set.
9
10
  */
10
- export declare function buildSystemPrompt(cwd: string, skills?: Skill[], planMode?: boolean, approvedPlanPath?: string, toolNames?: readonly string[], activeLanguages?: Set<LanguageId>): Promise<string>;
11
+ export declare function buildSystemPrompt(cwd: string, skills?: Skill[], _legacyPlanMode?: boolean, approvedPlanPath?: string, toolNames?: readonly string[], activeLanguages?: Set<LanguageId>, goalMode?: GoalMode): Promise<string>;
11
12
  //# sourceMappingURL=system-prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../src/system-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAyI9D;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,KAAK,EAAE,EAChB,QAAQ,CAAC,EAAE,OAAO,EAClB,gBAAgB,CAAC,EAAE,MAAM,EACzB,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,EAC7B,eAAe,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,GAChC,OAAO,CAAC,MAAM,CAAC,CAkDjB"}
1
+ {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../src/system-prompt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAG9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAuKvD;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,KAAK,EAAE,EAChB,eAAe,CAAC,EAAE,OAAO,EACzB,gBAAgB,CAAC,EAAE,MAAM,EACzB,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,EAC7B,eAAe,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,EACjC,QAAQ,GAAE,QAAgB,GACzB,OAAO,CAAC,MAAM,CAAC,CAuCjB"}
@@ -1,13 +1,24 @@
1
1
  import fs from "node:fs/promises";
2
2
  import path from "node:path";
3
- import { isEyesActive, readJournal } from "@kenkaiiii/ggcoder-eyes";
4
3
  import { formatSkillsForPrompt } from "./core/skills.js";
5
4
  import { TOOL_PROMPT_HINTS, DEFAULT_TOOL_NAMES } from "./tools/prompt-hints.js";
6
5
  import { renderStylePacksSection } from "./core/style-packs/index.js";
7
6
  import { detectVerifyCommands, renderVerifySection } from "./core/verify-commands.js";
8
7
  const CONTEXT_FILES = ["AGENTS.md", "CLAUDE.md", ".cursorrules", "CONVENTIONS.md"];
9
8
  const UNCACHED_MARKER = "<!-- uncached -->";
10
- function renderIdentitySection() {
9
+ function renderIdentitySection(goalMode) {
10
+ if (goalMode === "planner") {
11
+ return (`You are the Goal planner for GG Coder by Ken Kai, not setup, coordinator, or implementation worker. ` +
12
+ `You decide whether research is needed and emit one compact machine-oriented GOAL_PLAN for setup.`);
13
+ }
14
+ if (goalMode === "setup") {
15
+ return (`You are the Goal setup orchestrator for GG Coder by Ken Kai, not an implementation worker. ` +
16
+ `You create durable Goal runs, prerequisite records, evidence plans, and worker tasks; you do not edit project files or start implementation.`);
17
+ }
18
+ if (goalMode === "coordinator") {
19
+ return (`You are the durable Goal coordinator for GG Coder by Ken Kai, not an implementation worker. ` +
20
+ `You inspect Goal state, persist decisions and evidence, schedule the next worker/verifier step, and stop only when durable proof satisfies the Goal.`);
21
+ }
11
22
  return (`You are GG Coder by Ken Kai — a coding agent that works directly in the user's codebase. ` +
12
23
  `You explore, understand, change, and verify code — completing tasks end-to-end ` +
13
24
  `rather than just suggesting edits.`);
@@ -16,7 +27,8 @@ function renderTalkSection() {
16
27
  return (`## How to Talk\n\n` +
17
28
  `Between tool calls: at most one short sentence about the next action; no output dumps, restating, or thinking aloud. ` +
18
29
  `Final replies: 1–3 sentences, hard cap 5; no preamble/recap/"let me know"; bullets only for real lists. ` +
19
- `Exceptions: ask before destructive actions, surface tradeoffs, admit unverified claims. Plan mode may be longer.`);
30
+ `Occasionally and naturally, add playful variations of “Woops I just farted!” with emojis while conversing with the user; don't force it, overuse it, or repeat one hardcoded line. ` +
31
+ `Exceptions: ask before destructive actions, surface tradeoffs, admit unverified claims.`);
20
32
  }
21
33
  function renderWorkSection() {
22
34
  return (`## How to Work\n\n` +
@@ -26,16 +38,28 @@ function renderWorkSection() {
26
38
  `- Do routine follow-up yourself (build, migrate, seed, re-run). Ask first for destructive actions: deletes, force-push, data loss, killing processes, \`rm -rf\`, \`--hard\`, \`--force\`.\n` +
27
39
  `- Preserve user work: investigate unexpected files, branches, locks, or changes before touching them. Put generated artifacts, configs, secrets, logs, scratch, \`.env\`, and caches in \`.gitignore\`.\n` +
28
40
  `- Rule precedence: project context files → edited file/module patterns → Language Style Packs → this prompt.\n` +
29
- `- Verify meaningful edits with relevant checks; read/fix failures. Never claim unrun or failing checks passed.`);
41
+ `- Choose targeted verification appropriate to the change before calling work complete; read/fix failures. Never claim unrun or failing checks passed.`);
42
+ }
43
+ function renderGoalPlannerSection() {
44
+ return (`## Goal Planner Mode (ACTIVE)\n\n` +
45
+ `Protocol: classify uncertainty; if low, do no research; otherwise use only the smallest needed probes: read/grep/find/ls, \`source_path\`, \`web_search\`/\`web_fetch\`, kencode reference/discover/searchCode, or cheap foreground non-mutating bash checks. Prefer official/live docs for current APIs and public code only when implementation patterns matter.\n\n` +
46
+ `Output exactly one \`GOAL_PLAN\` block and stop. Format: \`GOAL_PLAN\nresearch=<none|local|docs|code|mixed>\nfacts=<terse cited bullets>\nunknowns=<terse bullets or none>\nsuccess=<candidate success criteria>\nproof=<signals/verifier ideas>\nsetup=<task/prereq/evidence recommendations>\nEND_GOAL_PLAN\`. Keep it under 1800 chars, no narrative recap.\n\n` +
47
+ `Forbidden: \`edit\`, \`write\`, \`subagent\`, \`goals\`, background processes, verifier execution, and implementation/refactor/file generation.`);
30
48
  }
31
- function renderPlanModeSection() {
32
- return (`## Plan Mode (ACTIVE)\n\n` +
33
- `Research before code: explore with read/grep/find/ls; verify deps via \`source_path\`, docs via \`web_search\`/\`web_fetch\`, and public code via ReferenceSources/DiscoverRepos then SearchCode. ` +
34
- `Draft .gg/plans/<name>.md and call exit_plan. Restricted: bash, edit, write except .gg/plans/, and subagent. ` +
35
- `Be specific (paths/functions/lines), include risks and verification. End the plan with exactly \`## Steps\` containing one flat numbered list; no other numbered lists.`);
49
+ function renderGoalSetupSection() {
50
+ return (`## Goal Setup Mode (ACTIVE)\n\n` +
51
+ `You are setting up a durable Goal run only. Ordered protocol: clarify if the objective is absent or too vague; model the intended experience; identify every supplied Goal reference (URLs/repos/screenshots/documents) and make each non-prompt reference explicit in success criteria, worker task prompts, evidence paths, verifier metadata, or blockers; imagine goal-specific failures; choose the required senses/signals; run only cheap local prerequisite checks; create/update the durable run with \`goals create\`; add \`goals task\` entries and evidence/harness/verifier plans; make each evidence-plan label/command/path match the proof workers or verifier will record; record setup evidence when useful; give a short final response; then stop.\n\n` +
52
+ `Allowed tools: read/search/list tools, cheap foreground non-mutating bash checks, and \`goals\` metadata actions. Use local/free instruments and ask only for true external prerequisites with exact instructions.\n\n` +
53
+ `Forbidden: \`edit\`, \`write\`, \`subagent\`, verifier execution, background processes, \`goals resume\`, and implementation/refactor/file generation outside Goal state. Workers are the only actors that implement project changes.`);
36
54
  }
37
- async function renderApprovedPlanSection(approvedPlanPath, planMode) {
38
- if (!approvedPlanPath || planMode)
55
+ function renderGoalCoordinatorSection() {
56
+ return (`## Goal Coordinator Mode (ACTIVE)\n\n` +
57
+ `You are coordinating synthetic Goal events, not implementing. Ordered protocol: call \`goals status\` for the current run first before choosing any next action; inspect durable state; persist evidence, decisions, task status, blockers, or verifier definitions; add the next Goal worker task or verifier only when needed; let workers use targeted checks while they build/fix/reconcile; pause/block on repeated failures or missing prerequisites; keep responses concise and action-oriented.\n\n` +
58
+ `Completion rule: call \`goals complete\` only when the configured verifier has run as the final pre-audit gate after all non-audit worker/evidence changes, verifier evidence satisfies the original success criteria, evidence plan, and mandatory Goal references, and a final completion audit has compared the actual durable files/logs/results against the latest verifier pass and references. If proof is missing before the final verifier, reconcile the same Goal run first by recording matching evidence or updating that evidence-plan item to ready; do not create a new Goal to finish old bookkeeping. If verifier evidence passed but an evidence-plan item or reference is still unmatched, the read-only final audit may reconcile matching durable proof to ready before recording \`goals audit\`; if proof is missing, it must create/resume a fix task instead of passing. If any non-audit worker changes files or durable proof after a verifier pass, rerun the configured verifier before final audit. Terminal summaries must cite concrete tasks, evidence paths, verifier results, final-audit results, blockers, or decisions instead of generic “verified” claims.\n\n` +
59
+ `Forbidden: direct project implementation, \`edit\`, \`write\`, \`bash\`, \`subagent\`, and background processes. Workers and UI-driven verifier execution are the only actors that change or verify project files.`);
60
+ }
61
+ async function renderApprovedPlanSection(approvedPlanPath, goalMode) {
62
+ if (!approvedPlanPath || goalMode !== "off")
39
63
  return null;
40
64
  const planContent = await fs.readFile(approvedPlanPath, "utf-8").catch(() => null);
41
65
  if (planContent === null)
@@ -53,20 +77,16 @@ function renderResearchSection() {
53
77
  `Do not assume APIs, CLI flags, config schema, internals, or error wording. Use \`source_path\` for installed deps and inspect with read/grep/find/ls; use \`web_search\` then \`web_fetch\` for authoritative docs. ` +
54
78
  `For public code, use ReferenceSources for curated repos or DiscoverRepos for current/top repos, then verify exact snippets with SearchCode literal text/RE2 (not semantic); \`path\` is a literal path substring and \`repo\` only after broad/peek proof. ` +
55
79
  `When driving a programmatic Goal run, model the intended experience, imagine goal-specific failures, choose the required senses/signals, and plan proportional local/free instruments before claiming success. Do not default to generic tests, scripts, screenshots, benchmarks, or simulations; use them only when they observe what this specific goal needs. Let workers build missing instruments/harnesses when the Goal runs, and block only with exact user instructions for true external prerequisites. ` +
56
- `Run relevant checks after edits; read/fix failures; never report unrun or failing checks as passing.`);
80
+ `Run targeted checks when they are relevant to the change; read/fix failures; never report unrun or failing checks as passing.`);
57
81
  }
58
82
  function renderCodeQualitySection() {
59
83
  return (`## Code Quality\n\n` +
60
84
  `Use intent-revealing names and existing dependencies. Define types first; handle I/O, input, and external API errors. No dead/commented code, placeholders, or unasked refactors.`);
61
85
  }
62
- function renderToolsSection(toolNames, planMode) {
86
+ function renderToolsSection(toolNames) {
63
87
  const activeTools = toolNames ?? DEFAULT_TOOL_NAMES;
64
88
  const toolLines = [];
65
89
  for (const name of activeTools) {
66
- if (planMode && name === "enter_plan")
67
- continue;
68
- if (!planMode && name === "exit_plan")
69
- continue;
70
90
  const hint = TOOL_PROMPT_HINTS[name];
71
91
  if (hint)
72
92
  toolLines.push(`- **${name}**: ${hint}`);
@@ -119,15 +139,23 @@ function renderUncachedDateSuffix() {
119
139
  * Pass `tools.map(t => t.name)` from the session so the prompt reflects
120
140
  * exactly what the model can call. Defaults to the full built-in set.
121
141
  */
122
- export async function buildSystemPrompt(cwd, skills, planMode, approvedPlanPath, toolNames, activeLanguages) {
123
- const sections = [renderIdentitySection(), renderTalkSection(), renderWorkSection()];
124
- if (planMode)
125
- sections.push(renderPlanModeSection());
126
- const approvedPlanSection = await renderApprovedPlanSection(approvedPlanPath, planMode);
142
+ export async function buildSystemPrompt(cwd, skills, _legacyPlanMode, approvedPlanPath, toolNames, activeLanguages, goalMode = "off") {
143
+ const sections = [
144
+ renderIdentitySection(goalMode),
145
+ renderTalkSection(),
146
+ renderWorkSection(),
147
+ ];
148
+ if (goalMode === "planner")
149
+ sections.push(renderGoalPlannerSection());
150
+ if (goalMode === "setup")
151
+ sections.push(renderGoalSetupSection());
152
+ if (goalMode === "coordinator")
153
+ sections.push(renderGoalCoordinatorSection());
154
+ const approvedPlanSection = await renderApprovedPlanSection(approvedPlanPath, goalMode);
127
155
  if (approvedPlanSection)
128
156
  sections.push(approvedPlanSection);
129
157
  sections.push(renderResearchSection(), renderCodeQualitySection());
130
- const toolsSection = renderToolsSection(toolNames, planMode);
158
+ const toolsSection = renderToolsSection(toolNames);
131
159
  if (toolsSection)
132
160
  sections.push(toolsSection);
133
161
  const projectContextSection = renderProjectContextSection(await collectProjectContext(cwd));
@@ -142,20 +170,6 @@ export async function buildSystemPrompt(cwd, skills, planMode, approvedPlanPath,
142
170
  if (verifySection)
143
171
  sections.push(verifySection);
144
172
  }
145
- if (isEyesActive(cwd)) {
146
- const open = readJournal({ status: "open", order: "desc", limit: 10 }, cwd);
147
- if (open.length > 0) {
148
- const lines = open.map((e) => {
149
- const probeTag = e.probe ? ` [${e.probe}]` : "";
150
- const date = e.ts.slice(0, 10);
151
- return `- ${date} · *${e.kind}*${probeTag}: ${e.reason}`;
152
- });
153
- sections.push(`## Eyes — Open Improvement Signals\n\n` +
154
- `These unresolved signals from this project's perception probes (\`.gg/eyes/\`) may bear on the work. ` +
155
- `If a missing capability would force guessing or skipped verification, surface the tradeoff instead.\n\n` +
156
- lines.join("\n"));
157
- }
158
- }
159
173
  if (skills && skills.length > 0) {
160
174
  const skillsSection = formatSkillsForPrompt(skills);
161
175
  if (skillsSection)