@kenkaiiii/ggcoder 4.3.218 → 4.3.220

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 (393) hide show
  1. package/dist/cli.d.ts.map +1 -1
  2. package/dist/cli.js +41 -21
  3. package/dist/cli.js.map +1 -1
  4. package/dist/core/agent-session-compaction.test.js +0 -7
  5. package/dist/core/agent-session-compaction.test.js.map +1 -1
  6. package/dist/core/agent-session.d.ts +0 -23
  7. package/dist/core/agent-session.d.ts.map +1 -1
  8. package/dist/core/agent-session.js +4 -98
  9. package/dist/core/agent-session.js.map +1 -1
  10. package/dist/core/continue-replay-inventory.test.js +1 -1
  11. package/dist/core/continue-replay-inventory.test.js.map +1 -1
  12. package/dist/core/goal-controller.d.ts +2 -0
  13. package/dist/core/goal-controller.d.ts.map +1 -1
  14. package/dist/core/goal-controller.js +152 -8
  15. package/dist/core/goal-controller.js.map +1 -1
  16. package/dist/core/goal-controller.test.js +232 -3
  17. package/dist/core/goal-controller.test.js.map +1 -1
  18. package/dist/core/goal-overhead-harness.d.ts +33 -0
  19. package/dist/core/goal-overhead-harness.d.ts.map +1 -0
  20. package/dist/core/goal-overhead-harness.js +268 -0
  21. package/dist/core/goal-overhead-harness.js.map +1 -0
  22. package/dist/core/goal-store.d.ts +3 -0
  23. package/dist/core/goal-store.d.ts.map +1 -1
  24. package/dist/core/goal-store.js +64 -3
  25. package/dist/core/goal-store.js.map +1 -1
  26. package/dist/core/goal-store.test.js +13 -0
  27. package/dist/core/goal-store.test.js.map +1 -1
  28. package/dist/core/goal-worker.d.ts.map +1 -1
  29. package/dist/core/goal-worker.js +17 -11
  30. package/dist/core/goal-worker.js.map +1 -1
  31. package/dist/core/goal-worker.test.js +41 -8
  32. package/dist/core/goal-worker.test.js.map +1 -1
  33. package/dist/core/goal-worktree.d.ts +21 -0
  34. package/dist/core/goal-worktree.d.ts.map +1 -1
  35. package/dist/core/goal-worktree.js +71 -1
  36. package/dist/core/goal-worktree.js.map +1 -1
  37. package/dist/core/goal-worktree.test.js +127 -2
  38. package/dist/core/goal-worktree.test.js.map +1 -1
  39. package/dist/core/prompt-commands.js +2 -2
  40. package/dist/core/prompt-commands.test.js +1 -1
  41. package/dist/core/prompt-commands.test.js.map +1 -1
  42. package/dist/core/runtime-mode.d.ts +7 -0
  43. package/dist/core/runtime-mode.d.ts.map +1 -1
  44. package/dist/core/runtime-mode.js +6 -0
  45. package/dist/core/runtime-mode.js.map +1 -1
  46. package/dist/core/session-manager.d.ts +3 -0
  47. package/dist/core/session-manager.d.ts.map +1 -1
  48. package/dist/core/session-manager.js +16 -0
  49. package/dist/core/session-manager.js.map +1 -1
  50. package/dist/core/session-restore-display.test.js +84 -0
  51. package/dist/core/session-restore-display.test.js.map +1 -1
  52. package/dist/core/slash-commands.d.ts +0 -2
  53. package/dist/core/slash-commands.d.ts.map +1 -1
  54. package/dist/core/slash-commands.js +0 -15
  55. package/dist/core/slash-commands.js.map +1 -1
  56. package/dist/core/tasks-store.d.ts +24 -0
  57. package/dist/core/tasks-store.d.ts.map +1 -0
  58. package/dist/core/tasks-store.js +81 -0
  59. package/dist/core/tasks-store.js.map +1 -0
  60. package/dist/system-prompt.d.ts +1 -1
  61. package/dist/system-prompt.d.ts.map +1 -1
  62. package/dist/system-prompt.js +13 -1
  63. package/dist/system-prompt.js.map +1 -1
  64. package/dist/system-prompt.test.js +2 -2
  65. package/dist/system-prompt.test.js.map +1 -1
  66. package/dist/tools/bash.d.ts +2 -0
  67. package/dist/tools/bash.d.ts.map +1 -1
  68. package/dist/tools/bash.js +5 -2
  69. package/dist/tools/bash.js.map +1 -1
  70. package/dist/tools/edit.d.ts +2 -0
  71. package/dist/tools/edit.d.ts.map +1 -1
  72. package/dist/tools/edit.js +16 -3
  73. package/dist/tools/edit.js.map +1 -1
  74. package/dist/tools/enter-plan.d.ts +8 -0
  75. package/dist/tools/enter-plan.d.ts.map +1 -0
  76. package/dist/tools/enter-plan.js +27 -0
  77. package/dist/tools/enter-plan.js.map +1 -0
  78. package/dist/tools/exit-plan.d.ts +8 -0
  79. package/dist/tools/exit-plan.d.ts.map +1 -0
  80. package/dist/tools/exit-plan.js +35 -0
  81. package/dist/tools/exit-plan.js.map +1 -0
  82. package/dist/tools/goals.d.ts +8 -5
  83. package/dist/tools/goals.d.ts.map +1 -1
  84. package/dist/tools/goals.js +124 -49
  85. package/dist/tools/goals.js.map +1 -1
  86. package/dist/tools/goals.test.js +356 -11
  87. package/dist/tools/goals.test.js.map +1 -1
  88. package/dist/tools/index.d.ts +11 -0
  89. package/dist/tools/index.d.ts.map +1 -1
  90. package/dist/tools/index.js +18 -4
  91. package/dist/tools/index.js.map +1 -1
  92. package/dist/tools/plan-mode.test.js +63 -24
  93. package/dist/tools/plan-mode.test.js.map +1 -1
  94. package/dist/tools/prompt-hints.d.ts.map +1 -1
  95. package/dist/tools/prompt-hints.js +4 -0
  96. package/dist/tools/prompt-hints.js.map +1 -1
  97. package/dist/tools/subagent.d.ts +3 -1
  98. package/dist/tools/subagent.d.ts.map +1 -1
  99. package/dist/tools/subagent.js +5 -2
  100. package/dist/tools/subagent.js.map +1 -1
  101. package/dist/tools/tasks.d.ts +16 -0
  102. package/dist/tools/tasks.d.ts.map +1 -0
  103. package/dist/tools/tasks.js +93 -0
  104. package/dist/tools/tasks.js.map +1 -0
  105. package/dist/tools/write.d.ts +2 -0
  106. package/dist/tools/write.d.ts.map +1 -1
  107. package/dist/tools/write.js +23 -3
  108. package/dist/tools/write.js.map +1 -1
  109. package/dist/ui/App.d.ts +10 -6
  110. package/dist/ui/App.d.ts.map +1 -1
  111. package/dist/ui/App.js +660 -987
  112. package/dist/ui/App.js.map +1 -1
  113. package/dist/ui/app-items.d.ts +7 -1
  114. package/dist/ui/app-items.d.ts.map +1 -1
  115. package/dist/ui/app-items.js +1 -1
  116. package/dist/ui/app-items.js.map +1 -1
  117. package/dist/ui/app-state-persistence.test.js +41 -23
  118. package/dist/ui/app-state-persistence.test.js.map +1 -1
  119. package/dist/ui/chat-layout-pinning.test.js +10 -0
  120. package/dist/ui/chat-layout-pinning.test.js.map +1 -1
  121. package/dist/ui/components/AssistantMessage.test.js +7 -7
  122. package/dist/ui/components/AssistantMessage.test.js.map +1 -1
  123. package/dist/ui/components/BackgroundTasksBar.d.ts.map +1 -1
  124. package/dist/ui/components/BackgroundTasksBar.js +6 -6
  125. package/dist/ui/components/BackgroundTasksBar.js.map +1 -1
  126. package/dist/ui/components/Banner.js +2 -2
  127. package/dist/ui/components/Banner.js.map +1 -1
  128. package/dist/ui/components/ChatFooterPane.d.ts +29 -0
  129. package/dist/ui/components/ChatFooterPane.d.ts.map +1 -0
  130. package/dist/ui/components/ChatFooterPane.js +16 -0
  131. package/dist/ui/components/ChatFooterPane.js.map +1 -0
  132. package/dist/ui/components/ChatInputStack.d.ts +34 -0
  133. package/dist/ui/components/ChatInputStack.d.ts.map +1 -0
  134. package/dist/ui/components/ChatInputStack.js +9 -0
  135. package/dist/ui/components/ChatInputStack.js.map +1 -0
  136. package/dist/ui/components/ChatLayout.d.ts +23 -0
  137. package/dist/ui/components/ChatLayout.d.ts.map +1 -0
  138. package/dist/ui/components/ChatLayout.js +16 -0
  139. package/dist/ui/components/ChatLayout.js.map +1 -0
  140. package/dist/ui/components/ChatLivePane.d.ts +18 -0
  141. package/dist/ui/components/ChatLivePane.d.ts.map +1 -0
  142. package/dist/ui/components/ChatLivePane.js +8 -0
  143. package/dist/ui/components/ChatLivePane.js.map +1 -0
  144. package/dist/ui/components/ChatScreen.d.ts +118 -0
  145. package/dist/ui/components/ChatScreen.d.ts.map +1 -0
  146. package/dist/ui/components/ChatScreen.js +14 -0
  147. package/dist/ui/components/ChatScreen.js.map +1 -0
  148. package/dist/ui/components/ChatStatusRow.d.ts +34 -0
  149. package/dist/ui/components/ChatStatusRow.d.ts.map +1 -0
  150. package/dist/ui/components/ChatStatusRow.js +11 -0
  151. package/dist/ui/components/ChatStatusRow.js.map +1 -0
  152. package/dist/ui/components/CompactionNotice.d.ts +4 -2
  153. package/dist/ui/components/CompactionNotice.d.ts.map +1 -1
  154. package/dist/ui/components/CompactionNotice.js +4 -4
  155. package/dist/ui/components/CompactionNotice.js.map +1 -1
  156. package/dist/ui/components/Footer.d.ts +6 -3
  157. package/dist/ui/components/Footer.d.ts.map +1 -1
  158. package/dist/ui/components/Footer.js +14 -4
  159. package/dist/ui/components/Footer.js.map +1 -1
  160. package/dist/ui/components/FooterStatusRow.d.ts +20 -0
  161. package/dist/ui/components/FooterStatusRow.d.ts.map +1 -0
  162. package/dist/ui/components/FooterStatusRow.js +10 -0
  163. package/dist/ui/components/FooterStatusRow.js.map +1 -0
  164. package/dist/ui/components/FullScreenOverlayRouter.d.ts +19 -0
  165. package/dist/ui/components/FullScreenOverlayRouter.d.ts.map +1 -0
  166. package/dist/ui/components/FullScreenOverlayRouter.js +18 -0
  167. package/dist/ui/components/FullScreenOverlayRouter.js.map +1 -0
  168. package/dist/ui/components/GoalOverlay.d.ts +2 -1
  169. package/dist/ui/components/GoalOverlay.d.ts.map +1 -1
  170. package/dist/ui/components/GoalOverlay.js +11 -6
  171. package/dist/ui/components/GoalOverlay.js.map +1 -1
  172. package/dist/ui/components/GoalPickerMenu.d.ts +9 -0
  173. package/dist/ui/components/GoalPickerMenu.d.ts.map +1 -0
  174. package/dist/ui/components/GoalPickerMenu.js +37 -0
  175. package/dist/ui/components/GoalPickerMenu.js.map +1 -0
  176. package/dist/ui/components/GoalStatusBar.d.ts +2 -0
  177. package/dist/ui/components/GoalStatusBar.d.ts.map +1 -1
  178. package/dist/ui/components/GoalStatusBar.js +27 -11
  179. package/dist/ui/components/GoalStatusBar.js.map +1 -1
  180. package/dist/ui/components/GoalStatusBar.test.d.ts +2 -0
  181. package/dist/ui/components/GoalStatusBar.test.d.ts.map +1 -0
  182. package/dist/ui/components/GoalStatusBar.test.js +17 -0
  183. package/dist/ui/components/GoalStatusBar.test.js.map +1 -0
  184. package/dist/ui/components/InputArea.d.ts +16 -1
  185. package/dist/ui/components/InputArea.d.ts.map +1 -1
  186. package/dist/ui/components/InputArea.js +95 -6
  187. package/dist/ui/components/InputArea.js.map +1 -1
  188. package/dist/ui/components/PlanOverlay.d.ts +7 -0
  189. package/dist/ui/components/PlanOverlay.d.ts.map +1 -1
  190. package/dist/ui/components/PlanOverlay.js +16 -2
  191. package/dist/ui/components/PlanOverlay.js.map +1 -1
  192. package/dist/ui/components/PlanOverlay.test.d.ts +2 -0
  193. package/dist/ui/components/PlanOverlay.test.d.ts.map +1 -0
  194. package/dist/ui/components/PlanOverlay.test.js +24 -0
  195. package/dist/ui/components/PlanOverlay.test.js.map +1 -0
  196. package/dist/ui/components/QueueIndicator.d.ts +9 -0
  197. package/dist/ui/components/QueueIndicator.d.ts.map +1 -0
  198. package/dist/ui/components/QueueIndicator.js +9 -0
  199. package/dist/ui/components/QueueIndicator.js.map +1 -0
  200. package/dist/ui/components/ServerToolExecution.d.ts +2 -0
  201. package/dist/ui/components/ServerToolExecution.d.ts.map +1 -1
  202. package/dist/ui/components/ServerToolExecution.js +3 -2
  203. package/dist/ui/components/ServerToolExecution.js.map +1 -1
  204. package/dist/ui/components/StreamingArea.js +1 -1
  205. package/dist/ui/components/StreamingArea.js.map +1 -1
  206. package/dist/ui/components/SubAgentPanel.d.ts +2 -1
  207. package/dist/ui/components/SubAgentPanel.d.ts.map +1 -1
  208. package/dist/ui/components/SubAgentPanel.js +2 -2
  209. package/dist/ui/components/SubAgentPanel.js.map +1 -1
  210. package/dist/ui/components/TaskPickerMenu.d.ts +9 -0
  211. package/dist/ui/components/TaskPickerMenu.d.ts.map +1 -0
  212. package/dist/ui/components/TaskPickerMenu.js +33 -0
  213. package/dist/ui/components/TaskPickerMenu.js.map +1 -0
  214. package/dist/ui/components/ToolExecution.d.ts +2 -0
  215. package/dist/ui/components/ToolExecution.d.ts.map +1 -1
  216. package/dist/ui/components/ToolExecution.js +13 -11
  217. package/dist/ui/components/ToolExecution.js.map +1 -1
  218. package/dist/ui/components/ToolGroupExecution.d.ts +2 -1
  219. package/dist/ui/components/ToolGroupExecution.d.ts.map +1 -1
  220. package/dist/ui/components/ToolGroupExecution.js +5 -3
  221. package/dist/ui/components/ToolGroupExecution.js.map +1 -1
  222. package/dist/ui/duration-format.d.ts +2 -0
  223. package/dist/ui/duration-format.d.ts.map +1 -0
  224. package/dist/ui/duration-format.js +9 -0
  225. package/dist/ui/duration-format.js.map +1 -0
  226. package/dist/ui/duration-summary.d.ts +2 -0
  227. package/dist/ui/duration-summary.d.ts.map +1 -0
  228. package/dist/ui/duration-summary.js +66 -0
  229. package/dist/ui/duration-summary.js.map +1 -0
  230. package/dist/ui/error-item.d.ts +8 -0
  231. package/dist/ui/error-item.d.ts.map +1 -0
  232. package/dist/ui/error-item.js +32 -0
  233. package/dist/ui/error-item.js.map +1 -0
  234. package/dist/ui/footer-status-layout.test.js +4 -3
  235. package/dist/ui/footer-status-layout.test.js.map +1 -1
  236. package/dist/ui/goal-events.d.ts +1 -0
  237. package/dist/ui/goal-events.d.ts.map +1 -1
  238. package/dist/ui/goal-events.js +2 -1
  239. package/dist/ui/goal-events.js.map +1 -1
  240. package/dist/ui/goal-events.test.js +16 -0
  241. package/dist/ui/goal-events.test.js.map +1 -1
  242. package/dist/ui/goal-lifecycle-orchestration.test.js +105 -18
  243. package/dist/ui/goal-lifecycle-orchestration.test.js.map +1 -1
  244. package/dist/ui/goal-progress.d.ts +1 -1
  245. package/dist/ui/goal-progress.d.ts.map +1 -1
  246. package/dist/ui/goal-progress.js +11 -13
  247. package/dist/ui/goal-progress.js.map +1 -1
  248. package/dist/ui/goal-run-helpers.d.ts +16 -0
  249. package/dist/ui/goal-run-helpers.d.ts.map +1 -0
  250. package/dist/ui/goal-run-helpers.js +61 -0
  251. package/dist/ui/goal-run-helpers.js.map +1 -0
  252. package/dist/ui/goal-status-bar.test.js +8 -6
  253. package/dist/ui/goal-status-bar.test.js.map +1 -1
  254. package/dist/ui/hooks/useChatLayoutMeasurements.d.ts +38 -0
  255. package/dist/ui/hooks/useChatLayoutMeasurements.d.ts.map +1 -0
  256. package/dist/ui/hooks/useChatLayoutMeasurements.js +71 -0
  257. package/dist/ui/hooks/useChatLayoutMeasurements.js.map +1 -0
  258. package/dist/ui/hooks/useGoalPickerController.d.ts +22 -0
  259. package/dist/ui/hooks/useGoalPickerController.d.ts.map +1 -0
  260. package/dist/ui/hooks/useGoalPickerController.js +35 -0
  261. package/dist/ui/hooks/useGoalPickerController.js.map +1 -0
  262. package/dist/ui/hooks/useTaskPickerController.d.ts +19 -0
  263. package/dist/ui/hooks/useTaskPickerController.d.ts.map +1 -0
  264. package/dist/ui/hooks/useTaskPickerController.js +41 -0
  265. package/dist/ui/hooks/useTaskPickerController.js.map +1 -0
  266. package/dist/ui/hooks/useTranscriptHistory.d.ts +34 -0
  267. package/dist/ui/hooks/useTranscriptHistory.d.ts.map +1 -0
  268. package/dist/ui/hooks/useTranscriptHistory.js +96 -0
  269. package/dist/ui/hooks/useTranscriptHistory.js.map +1 -0
  270. package/dist/ui/item-helpers.d.ts +2 -0
  271. package/dist/ui/item-helpers.d.ts.map +1 -1
  272. package/dist/ui/item-helpers.js +16 -0
  273. package/dist/ui/item-helpers.js.map +1 -1
  274. package/dist/ui/layout-decisions.d.ts +3 -12
  275. package/dist/ui/layout-decisions.d.ts.map +1 -1
  276. package/dist/ui/layout-decisions.js +7 -64
  277. package/dist/ui/layout-decisions.js.map +1 -1
  278. package/dist/ui/prompt-routing.d.ts.map +1 -1
  279. package/dist/ui/prompt-routing.js +36 -2
  280. package/dist/ui/prompt-routing.js.map +1 -1
  281. package/dist/ui/prompt-routing.test.d.ts +2 -0
  282. package/dist/ui/prompt-routing.test.d.ts.map +1 -0
  283. package/dist/ui/prompt-routing.test.js +48 -0
  284. package/dist/ui/prompt-routing.test.js.map +1 -0
  285. package/dist/ui/render.d.ts +9 -6
  286. package/dist/ui/render.d.ts.map +1 -1
  287. package/dist/ui/render.js +3 -2
  288. package/dist/ui/render.js.map +1 -1
  289. package/dist/ui/slash-command-images.test.js +3 -2
  290. package/dist/ui/slash-command-images.test.js.map +1 -1
  291. package/dist/ui/submit-prompt-command.d.ts +40 -0
  292. package/dist/ui/submit-prompt-command.d.ts.map +1 -0
  293. package/dist/ui/submit-prompt-command.js +92 -0
  294. package/dist/ui/submit-prompt-command.js.map +1 -0
  295. package/dist/ui/submit-slash-commands.d.ts +13 -0
  296. package/dist/ui/submit-slash-commands.d.ts.map +1 -0
  297. package/dist/ui/submit-slash-commands.js +36 -0
  298. package/dist/ui/submit-slash-commands.js.map +1 -0
  299. package/dist/ui/terminal-history-format.d.ts +1 -0
  300. package/dist/ui/terminal-history-format.d.ts.map +1 -1
  301. package/dist/ui/terminal-history-format.js +2 -1
  302. package/dist/ui/terminal-history-format.js.map +1 -1
  303. package/dist/ui/terminal-history-spacing.d.ts +1 -2
  304. package/dist/ui/terminal-history-spacing.d.ts.map +1 -1
  305. package/dist/ui/terminal-history-spacing.js +1 -27
  306. package/dist/ui/terminal-history-spacing.js.map +1 -1
  307. package/dist/ui/terminal-history-status-renderers.d.ts +2 -2
  308. package/dist/ui/terminal-history-status-renderers.d.ts.map +1 -1
  309. package/dist/ui/terminal-history-status-renderers.js +36 -17
  310. package/dist/ui/terminal-history-status-renderers.js.map +1 -1
  311. package/dist/ui/terminal-history.d.ts.map +1 -1
  312. package/dist/ui/terminal-history.js +59 -25
  313. package/dist/ui/terminal-history.js.map +1 -1
  314. package/dist/ui/terminal-history.test.js +2 -1
  315. package/dist/ui/terminal-history.test.js.map +1 -1
  316. package/dist/ui/tool-group-summary.d.ts +2 -2
  317. package/dist/ui/tool-group-summary.d.ts.map +1 -1
  318. package/dist/ui/tool-group-summary.js +18 -18
  319. package/dist/ui/tool-group-summary.js.map +1 -1
  320. package/dist/ui/transcript/GoalRows.d.ts +10 -0
  321. package/dist/ui/transcript/GoalRows.d.ts.map +1 -0
  322. package/dist/ui/transcript/GoalRows.js +35 -0
  323. package/dist/ui/transcript/GoalRows.js.map +1 -0
  324. package/dist/ui/transcript/MiscRows.d.ts +23 -0
  325. package/dist/ui/transcript/MiscRows.d.ts.map +1 -0
  326. package/dist/ui/transcript/MiscRows.js +41 -0
  327. package/dist/ui/transcript/MiscRows.js.map +1 -0
  328. package/dist/ui/transcript/StatusRow.d.ts +14 -0
  329. package/dist/ui/transcript/StatusRow.d.ts.map +1 -0
  330. package/dist/ui/transcript/StatusRow.js +14 -0
  331. package/dist/ui/transcript/StatusRow.js.map +1 -0
  332. package/dist/ui/transcript/ToolRows.d.ts +20 -0
  333. package/dist/ui/transcript/ToolRows.d.ts.map +1 -0
  334. package/dist/ui/transcript/ToolRows.js +25 -0
  335. package/dist/ui/transcript/ToolRows.js.map +1 -0
  336. package/dist/ui/transcript/TranscriptItemFrame.d.ts +8 -0
  337. package/dist/ui/transcript/TranscriptItemFrame.d.ts.map +1 -0
  338. package/dist/ui/transcript/TranscriptItemFrame.js +9 -0
  339. package/dist/ui/transcript/TranscriptItemFrame.js.map +1 -0
  340. package/dist/ui/transcript/TranscriptRenderer.d.ts +22 -0
  341. package/dist/ui/transcript/TranscriptRenderer.d.ts.map +1 -0
  342. package/dist/ui/transcript/TranscriptRenderer.js +84 -0
  343. package/dist/ui/transcript/TranscriptRenderer.js.map +1 -0
  344. package/dist/ui/transcript/presentation.d.ts +76 -0
  345. package/dist/ui/transcript/presentation.d.ts.map +1 -0
  346. package/dist/ui/transcript/presentation.js +109 -0
  347. package/dist/ui/transcript/presentation.js.map +1 -0
  348. package/dist/ui/transcript/spacing.d.ts +29 -0
  349. package/dist/ui/transcript/spacing.d.ts.map +1 -0
  350. package/dist/ui/transcript/spacing.js +91 -0
  351. package/dist/ui/transcript/spacing.js.map +1 -0
  352. package/dist/ui/transcript/spacing.test.d.ts +2 -0
  353. package/dist/ui/transcript/spacing.test.d.ts.map +1 -0
  354. package/dist/ui/transcript/spacing.test.js +21 -0
  355. package/dist/ui/transcript/spacing.test.js.map +1 -0
  356. package/dist/ui/transcript/tool-presentation.d.ts +12 -0
  357. package/dist/ui/transcript/tool-presentation.d.ts.map +1 -0
  358. package/dist/ui/transcript/tool-presentation.js +55 -0
  359. package/dist/ui/transcript/tool-presentation.js.map +1 -0
  360. package/dist/ui/tui-history-parity.test.js +6 -2
  361. package/dist/ui/tui-history-parity.test.js.map +1 -1
  362. package/dist/utils/plan-steps.d.ts.map +1 -1
  363. package/dist/utils/plan-steps.js +5 -1
  364. package/dist/utils/plan-steps.js.map +1 -1
  365. package/dist/utils/plan-steps.test.d.ts +2 -0
  366. package/dist/utils/plan-steps.test.d.ts.map +1 -0
  367. package/dist/utils/plan-steps.test.js +16 -0
  368. package/dist/utils/plan-steps.test.js.map +1 -0
  369. package/package.json +6 -6
  370. package/dist/core/repomap-budget.d.ts +0 -7
  371. package/dist/core/repomap-budget.d.ts.map +0 -1
  372. package/dist/core/repomap-budget.js +0 -10
  373. package/dist/core/repomap-budget.js.map +0 -1
  374. package/dist/core/repomap-budget.test.d.ts +0 -2
  375. package/dist/core/repomap-budget.test.d.ts.map +0 -1
  376. package/dist/core/repomap-budget.test.js +0 -26
  377. package/dist/core/repomap-budget.test.js.map +0 -1
  378. package/dist/core/repomap-context.d.ts +0 -11
  379. package/dist/core/repomap-context.d.ts.map +0 -1
  380. package/dist/core/repomap-context.js +0 -68
  381. package/dist/core/repomap-context.js.map +0 -1
  382. package/dist/core/repomap-context.test.d.ts +0 -2
  383. package/dist/core/repomap-context.test.d.ts.map +0 -1
  384. package/dist/core/repomap-context.test.js +0 -47
  385. package/dist/core/repomap-context.test.js.map +0 -1
  386. package/dist/core/repomap.d.ts +0 -74
  387. package/dist/core/repomap.d.ts.map +0 -1
  388. package/dist/core/repomap.js +0 -906
  389. package/dist/core/repomap.js.map +0 -1
  390. package/dist/core/repomap.test.d.ts +0 -2
  391. package/dist/core/repomap.test.d.ts.map +0 -1
  392. package/dist/core/repomap.test.js +0 -494
  393. package/dist/core/repomap.test.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ import type { GoalItem, GoalProgressItem } from "../app-items.js";
2
+ export declare function GoalRow({ item, columns }: {
3
+ item: GoalItem;
4
+ columns: number;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export declare function GoalProgressRow({ item, columns }: {
7
+ item: GoalProgressItem;
8
+ columns: number;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=GoalRows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoalRows.d.ts","sourceRoot":"","sources":["../../../src/ui/transcript/GoalRows.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAelE,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,2CAW7E;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,2CA+C7F"}
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Box, Text } from "ink";
4
+ import { MessageResponse } from "../components/MessageResponse.js";
5
+ import { ToolUseLoader } from "../components/ToolUseLoader.js";
6
+ import { useTheme } from "../theme/theme.js";
7
+ import { truncateGoalProgressText } from "../goal-progress.js";
8
+ import { presentGoal, presentGoalProgress } from "./presentation.js";
9
+ function goalProgressColor(item, theme) {
10
+ const isError = item.status === "failed" || item.status === "fail" || item.status === "blocked";
11
+ if (isError)
12
+ return theme.error;
13
+ if (item.phase === "worker_finished" || item.phase === "terminal")
14
+ return theme.success;
15
+ if (item.phase === "verifier_finished" || item.phase === "verifier_started")
16
+ return theme.accent;
17
+ if (item.phase === "orchestrator_reviewing" || item.phase === "orchestrator_working") {
18
+ return theme.secondary;
19
+ }
20
+ if (item.phase === "continuing")
21
+ return theme.warning;
22
+ return theme.primary;
23
+ }
24
+ export function GoalRow({ item, columns }) {
25
+ const theme = useTheme();
26
+ const presentation = presentGoal(item);
27
+ return (_jsx(Box, { paddingLeft: 1, width: columns, flexShrink: 1, children: _jsx(Text, { color: theme.success, wrap: "truncate", children: truncateGoalProgressText(presentation.text, Math.max(8, columns - 2)) }) }, item.id));
28
+ }
29
+ export function GoalProgressRow({ item, columns }) {
30
+ const theme = useTheme();
31
+ const color = goalProgressColor(item, theme);
32
+ const presentation = presentGoalProgress(item);
33
+ return (_jsxs(Box, { flexDirection: "column", width: columns, children: [_jsxs(Box, { flexDirection: "row", paddingLeft: 1, width: columns, children: [_jsx(ToolUseLoader, { status: presentation.loaderStatus, staticDisplay: true, color: color }), _jsx(Text, { color: color, bold: true, wrap: "truncate", children: truncateGoalProgressText(presentation.titleText, Math.max(8, columns - 4)) })] }), presentation.hasResponseBody ? (_jsx(MessageResponse, { children: _jsxs(Box, { flexDirection: "column", flexShrink: 1, children: [item.detail ? (_jsx(Text, { color: theme.textDim, wrap: "wrap", children: item.detail })) : null, item.summaryRows?.map((row) => (_jsxs(Text, { wrap: "wrap", children: [_jsx(Text, { color: theme.textDim, children: row.label.padEnd(12) }), _jsx(Text, { color: theme.text, children: row.value }), row.detail ? _jsx(Text, { color: theme.textDim, children: ` · ${row.detail}` }) : null] }, `${item.id}-${row.label}`))), item.summarySections?.map((section) => (_jsxs(Box, { flexDirection: "column", flexShrink: 1, children: [_jsx(Text, { color: theme.textDim, children: section.title }), section.lines.map((line, lineIndex) => (_jsx(Text, { color: theme.text, wrap: "wrap", children: `• ${line}` }, `${item.id}-${section.title}-${lineIndex}`)))] }, `${item.id}-${section.title}`)))] }) })) : null] }, item.id));
34
+ }
35
+ //# sourceMappingURL=GoalRows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoalRows.js","sourceRoot":"","sources":["../../../src/ui/transcript/GoalRows.tsx"],"names":[],"mappings":";AA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AAC,EAAE,IAAI,OAAO,CAAC,KAAK,EAAE,CAWjC,CACP,CAAC,IACE,GACU,CACnB,CAAC,CAAC,CAAC,IAAI,KAtCA,IAAI,CAAC,EAAE,CAuCX,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { DurationItem, ErrorItem, QueuedItem, SetupHintItem, StepDoneItem, StylePackItem, UpdateNoticeItem } from "../app-items.js";
2
+ export declare function StylePackRow({ item }: {
3
+ item: StylePackItem;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export declare function SetupHintRow({ item }: {
6
+ item: SetupHintItem;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export declare function ErrorRow({ item }: {
9
+ item: ErrorItem;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ export declare function UpdateNoticeRow({ item }: {
12
+ item: UpdateNoticeItem;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ export declare function StepDoneRow({ item }: {
15
+ item: StepDoneItem;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ export declare function QueuedRow({ item }: {
18
+ item: QueuedItem;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ export declare function DurationRow({ item }: {
21
+ item: DurationItem;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ //# sourceMappingURL=MiscRows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MiscRows.d.ts","sourceRoot":"","sources":["../../../src/ui/transcript/MiscRows.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAWzB,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,2CAsC7D;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,2CAoC7D;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,2CA0BrD;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,2CAanE;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,2CAmB3D;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,2CAoBvD;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,2CAY3D"}
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Box, Text } from "ink";
4
+ import { useTheme } from "../theme/theme.js";
5
+ import { presentDuration, presentError, presentQueued, presentSetupHint, presentStepDone, presentStylePack, presentUpdateNotice, } from "./presentation.js";
6
+ export function StylePackRow({ item }) {
7
+ const theme = useTheme();
8
+ const presentation = presentStylePack(item);
9
+ return (_jsx(Box, { paddingLeft: 1, flexShrink: 1, children: _jsxs(Box, { flexShrink: 1, flexDirection: "column", borderStyle: "round", borderColor: theme.language, paddingX: 1, children: [_jsxs(Text, { wrap: "wrap", children: [_jsx(Text, { color: theme.language, bold: true, children: "◆ " }), _jsx(Text, { color: theme.language, bold: true, children: presentation.headerLabel })] }), _jsx(Text, { color: theme.text, bold: true, wrap: "wrap", children: presentation.names }), presentation.showSetupHint && (_jsx(Box, { marginTop: 1, children: _jsxs(Text, { wrap: "wrap", children: [_jsx(Text, { color: theme.textMuted, children: "Tip: run " }), _jsx(Text, { color: theme.language, bold: true, children: "/setup" }), _jsx(Text, { color: theme.textMuted, children: presentation.setupHint })] }) }))] }) }, item.id));
10
+ }
11
+ export function SetupHintRow({ item }) {
12
+ const theme = useTheme();
13
+ const presentation = presentSetupHint(item);
14
+ return (_jsx(Box, { paddingLeft: 1, flexShrink: 1, children: _jsxs(Box, { flexShrink: 1, flexDirection: "column", borderStyle: "round", borderColor: theme.language, paddingX: 1, children: [_jsxs(Text, { wrap: "wrap", children: [_jsx(Text, { color: theme.language, bold: true, children: "◆ " }), _jsx(Text, { color: theme.language, bold: true, children: presentation.headerLabel })] }), _jsx(Text, { color: theme.textMuted, wrap: "wrap", children: presentation.body }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { wrap: "wrap", children: [_jsx(Text, { color: theme.textMuted, children: "Tip: run " }), _jsx(Text, { color: theme.language, bold: true, children: "/setup" }), _jsx(Text, { color: theme.textMuted, children: presentation.setupHint })] }) })] }) }, item.id));
15
+ }
16
+ export function ErrorRow({ item }) {
17
+ const theme = useTheme();
18
+ const presentation = presentError(item);
19
+ return (_jsxs(Box, { flexDirection: "row", paddingLeft: 1, flexShrink: 1, children: [_jsx(Box, { width: 2, flexShrink: 0, children: _jsx(Text, { color: theme.error, bold: true, children: presentation.glyph }) }), _jsxs(Box, { flexDirection: "column", flexGrow: 1, children: [_jsx(Text, { color: theme.error, wrap: "wrap", children: presentation.headline }), presentation.message && (_jsx(Text, { color: theme.textDim, wrap: "wrap", children: presentation.message })), _jsx(Text, { color: theme.textDim, wrap: "wrap", children: presentation.guidance })] })] }, item.id));
20
+ }
21
+ export function UpdateNoticeRow({ item }) {
22
+ const theme = useTheme();
23
+ const presentation = presentUpdateNotice(item);
24
+ return (_jsx(Box, { paddingLeft: 1, flexShrink: 1, children: _jsx(Box, { flexShrink: 1, borderStyle: "round", borderColor: theme.commandColor, paddingX: 1, children: _jsx(Text, { color: theme.commandColor, bold: true, wrap: "wrap", children: presentation.text }) }) }, item.id));
25
+ }
26
+ export function StepDoneRow({ item }) {
27
+ const theme = useTheme();
28
+ const presentation = presentStepDone(item);
29
+ return (_jsx(Box, { paddingLeft: 1, flexShrink: 1, children: _jsxs(Text, { wrap: "wrap", children: [_jsx(Text, { color: theme.planPrimary, bold: true, children: presentation.glyph }), _jsx(Text, { color: theme.planPrimary, bold: true, children: presentation.text }), presentation.description ? (_jsx(Text, { color: theme.accent, children: presentation.description })) : null] }) }, item.id));
30
+ }
31
+ export function QueuedRow({ item }) {
32
+ const theme = useTheme();
33
+ const presentation = presentQueued(item);
34
+ return (_jsxs(Box, { flexDirection: "row", paddingLeft: 1, flexShrink: 1, children: [_jsx(Box, { width: 2, flexShrink: 0, children: _jsx(Text, { color: theme.warning, bold: true, children: presentation.glyph }) }), _jsx(Box, { flexDirection: "column", flexGrow: 1, children: _jsxs(Text, { color: theme.text, wrap: "wrap", children: [_jsx(Text, { color: theme.textDim, children: presentation.label }), presentation.text, presentation.suffix] }) })] }, item.id));
35
+ }
36
+ export function DurationRow({ item }) {
37
+ const theme = useTheme();
38
+ const presentation = presentDuration(item);
39
+ return (_jsx(Box, { paddingLeft: 1, children: _jsxs(Text, { color: theme.textDim, children: [presentation.glyph, presentation.text] }) }, item.id));
40
+ }
41
+ //# sourceMappingURL=MiscRows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MiscRows.js","sourceRoot":"","sources":["../../../src/ui/transcript/MiscRows.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAU7C,OAAO,EACL,eAAe,EACf,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,UAAU,YAAY,CAAC,EAAE,IAAI,EAA2B;IAC5D,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAE5C,OAAO,CACL,KA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,KAZE,IAAI,CAAC,EAAE,CAaX,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAE,IAAI,EAA0B;IAC1D,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,CACL,KAAC,GAAG,IAAe,WAAW,EAAE,CAAC,YAC/B,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,OAAO,aACvB,YAAY,CAAC,KAAK,EAClB,YAAY,CAAC,IAAI,IACb,IAJC,IAAI,CAAC,EAAE,CAKX,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { StatusPresentation } from "./presentation.js";
3
+ interface StatusRowProps {
4
+ id: string;
5
+ glyph?: string;
6
+ children?: React.ReactNode;
7
+ glyphColor?: string;
8
+ bold?: boolean;
9
+ muted?: boolean;
10
+ presentation?: StatusPresentation;
11
+ }
12
+ export declare function StatusRow({ id, glyph, children, glyphColor, bold, muted, presentation, }: StatusRowProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=StatusRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusRow.d.ts","sourceRoot":"","sources":["../../../src/ui/transcript/StatusRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC;AAED,wBAAgB,SAAS,CAAC,EACxB,EAAE,EACF,KAAK,EACL,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,YAAY,GACb,EAAE,cAAc,2CA4BhB"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Box, Text } from "ink";
4
+ import { useTheme } from "../theme/theme.js";
5
+ export function StatusRow({ id, glyph, children, glyphColor, bold, muted, presentation, }) {
6
+ const theme = useTheme();
7
+ const color = glyphColor ?? theme.commandColor;
8
+ const displayGlyph = presentation?.glyph ?? glyph ?? "";
9
+ const displayBold = presentation?.bold ?? bold;
10
+ const displayMuted = presentation?.muted ?? muted;
11
+ const displayChildren = children ?? presentation?.text ?? "";
12
+ return (_jsxs(Box, { flexDirection: "row", paddingLeft: 1, flexShrink: 1, children: [_jsx(Box, { width: 2, flexShrink: 0, children: _jsx(Text, { color: color, bold: displayBold ?? true, children: displayGlyph }) }), _jsx(Box, { flexDirection: "column", flexGrow: 1, children: _jsxs(Text, { color: displayMuted ? theme.textDim : theme.commandColor, bold: displayBold, wrap: "wrap", children: [presentation?.label ? _jsx(Text, { color: theme.textDim, children: presentation.label }) : null, displayChildren, presentation?.detail ? _jsx(Text, { color: theme.textDim, children: presentation.detail }) : null] }) })] }, id));
13
+ }
14
+ //# sourceMappingURL=StatusRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusRow.js","sourceRoot":"","sources":["../../../src/ui/transcript/StatusRow.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAa7C,MAAM,UAAU,SAAS,CAAC,EACxB,EAAE,EACF,KAAK,EACL,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,YAAY,GACG;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 -0,0 +1,20 @@
1
+ import type { ServerToolDoneItem, ServerToolStartItem, SubAgentGroupItem, ToolDoneItem, ToolGroupItem, ToolStartItem } from "../app-items.js";
2
+ export declare function ToolStartRow({ item }: {
3
+ item: ToolStartItem;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export declare function ToolDoneRow({ item }: {
6
+ item: ToolDoneItem;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export declare function ToolGroupRow({ item }: {
9
+ item: ToolGroupItem;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ export declare function ServerToolStartRow({ item }: {
12
+ item: ServerToolStartItem;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ export declare function ServerToolDoneRow({ item }: {
15
+ item: ServerToolDoneItem;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ export declare function SubAgentGroupRow({ item }: {
18
+ item: SubAgentGroupItem;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ //# sourceMappingURL=ToolRows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolRows.d.ts","sourceRoot":"","sources":["../../../src/ui/transcript/ToolRows.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAEzB,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,2CAW7D;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,2CAY3D;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,2CAE7D;AAED,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,2CAWzE;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,2CAWvE;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,2CAErE"}
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { ToolExecution } from "../components/ToolExecution.js";
4
+ import { ToolGroupExecution } from "../components/ToolGroupExecution.js";
5
+ import { ServerToolExecution } from "../components/ServerToolExecution.js";
6
+ import { SubAgentPanel } from "../components/SubAgentPanel.js";
7
+ export function ToolStartRow({ item }) {
8
+ return (_jsx(ToolExecution, { status: "running", name: item.name, args: item.args, progressOutput: item.progressOutput, animateUntil: item.animateUntil }, item.id));
9
+ }
10
+ export function ToolDoneRow({ item }) {
11
+ return (_jsx(ToolExecution, { status: "done", name: item.name, args: item.args, result: item.result, isError: item.isError, details: item.details }, item.id));
12
+ }
13
+ export function ToolGroupRow({ item }) {
14
+ return _jsx(ToolGroupExecution, { tools: item.tools }, item.id);
15
+ }
16
+ export function ServerToolStartRow({ item }) {
17
+ return (_jsx(ServerToolExecution, { status: "running", name: item.name, input: item.input, startedAt: item.startedAt, animateUntil: item.animateUntil }, item.id));
18
+ }
19
+ export function ServerToolDoneRow({ item }) {
20
+ return (_jsx(ServerToolExecution, { status: "done", name: item.name, input: item.input, durationMs: item.durationMs, resultType: item.resultType }, item.id));
21
+ }
22
+ export function SubAgentGroupRow({ item }) {
23
+ return _jsx(SubAgentPanel, { agents: item.agents, aborted: item.aborted }, item.id);
24
+ }
25
+ //# sourceMappingURL=ToolRows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolRows.js","sourceRoot":"","sources":["../../../src/ui/transcript/ToolRows.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,g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I,CAAC,EAAE,CAMZ,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,EAAE,IAAI,EAAgC;IACtE,OAAO,CACL,KAAC,mBAAmB,IAElB,MAAM,EAAC,MAAM,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,UAAU,EAAE,IAAI,CAAC,UAAU,IALtB,IAAI,CAAC,EAAE,CAMZ,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,EAAE,IAAI,EAA+B;IACpE,OAAO,KAAC,aAAa,IAAe,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,IAAnD,IAAI,CAAC,EAAE,CAAgD,CAAC;AACrF,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface TranscriptItemFrameProps {
3
+ children: React.ReactNode;
4
+ marginTop: number;
5
+ }
6
+ export declare function TranscriptItemFrame({ children, marginTop }: TranscriptItemFrameProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=TranscriptItemFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranscriptItemFrame.d.ts","sourceRoot":"","sources":["../../../src/ui/transcript/TranscriptItemFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,wBAAwB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,wBAAwB,2CAOpF"}
@@ -0,0 +1,9 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Box } from "ink";
4
+ export function TranscriptItemFrame({ children, marginTop }) {
5
+ if (marginTop <= 0)
6
+ return _jsx(_Fragment, { children: children });
7
+ return (_jsx(Box, { flexDirection: "column", marginTop: marginTop, children: children }));
8
+ }
9
+ //# sourceMappingURL=TranscriptItemFrame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranscriptItemFrame.js","sourceRoot":"","sources":["../../../src/ui/transcript/TranscriptItemFrame.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAO1B,MAAM,UAAU,mBAAmB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAA4B;IACnF,IAAI,SAAS,IAAI,CAAC;QAAE,OAAO,4BAAG,QAAQ,GAAI,CAAC;IAC3C,OAAO,CACL,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,YAC7C,QAAQ,GACL,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import type { Provider } from "@kenkaiiii/gg-ai";
3
+ import type { useTheme } from "../theme/theme.js";
4
+ import type { CompletedItem } from "../app-items.js";
5
+ interface RenderTranscriptItemOptions {
6
+ item: CompletedItem;
7
+ index: number;
8
+ items: CompletedItem[];
9
+ pendingHistoryFlushLastItem?: CompletedItem;
10
+ historyLastItem?: CompletedItem;
11
+ version: string;
12
+ currentModel: string;
13
+ currentProvider: Provider;
14
+ displayedCwd: string;
15
+ columns: number;
16
+ theme: ReturnType<typeof useTheme>;
17
+ renderMarkdown: boolean;
18
+ measuredLiveAreaRows: number;
19
+ }
20
+ export declare function renderTranscriptItem({ item, index, items, pendingHistoryFlushLastItem, historyLastItem, version, currentModel, currentProvider, displayedCwd, columns, theme: _theme, renderMarkdown, measuredLiveAreaRows, }: RenderTranscriptItemOptions): React.ReactNode;
21
+ export {};
22
+ //# sourceMappingURL=TranscriptRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranscriptRenderer.d.ts","sourceRoot":"","sources":["../../../src/ui/transcript/TranscriptRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAiCrD,UAAU,2BAA2B;IACnC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,2BAA2B,CAAC,EAAE,aAAa,CAAC;IAC5C,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,QAAQ,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,KAAK,EACL,KAAK,EACL,2BAA2B,EAC3B,eAAe,EACf,OAAO,EACP,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,OAAO,EACP,KAAK,EAAE,MAAM,EACb,cAAc,EACd,oBAAoB,GACrB,EAAE,2BAA2B,GAAG,KAAK,CAAC,SAAS,CAoH/C"}
@@ -0,0 +1,84 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { UserMessage } from "../components/UserMessage.js";
4
+ import { AssistantMessage } from "../components/AssistantMessage.js";
5
+ import { CompactionDone, CompactionSpinner } from "../components/CompactionNotice.js";
6
+ import { Banner } from "../components/Banner.js";
7
+ import { TranscriptItemFrame } from "./TranscriptItemFrame.js";
8
+ import { getTranscriptItemMarginTop } from "./spacing.js";
9
+ import { GoalProgressRow, GoalRow } from "./GoalRows.js";
10
+ import { DurationRow, ErrorRow, QueuedRow, SetupHintRow, StepDoneRow, StylePackRow, UpdateNoticeRow, } from "./MiscRows.js";
11
+ import { presentGoalAgentTransition, presentInfo, presentModelTransition, presentPlanEvent, presentPlanTransition, presentStopped, presentTask, presentThemeTransition, } from "./presentation.js";
12
+ import { StatusRow } from "./StatusRow.js";
13
+ import { ServerToolDoneRow, ServerToolStartRow, SubAgentGroupRow, ToolDoneRow, ToolGroupRow, ToolStartRow, } from "./ToolRows.js";
14
+ export function renderTranscriptItem({ item, index, items, pendingHistoryFlushLastItem, historyLastItem, version, currentModel, currentProvider, displayedCwd, columns, theme: _theme, renderMarkdown, measuredLiveAreaRows, }) {
15
+ const previousLiveItem = index > 0 ? items[index - 1] : undefined;
16
+ const transcriptMarginTop = getTranscriptItemMarginTop({
17
+ item,
18
+ previousLiveItem,
19
+ lastPendingHistoryItem: pendingHistoryFlushLastItem,
20
+ lastHistoryItem: historyLastItem,
21
+ });
22
+ const withTranscriptSpacing = (node) => (_jsx(TranscriptItemFrame, { marginTop: transcriptMarginTop, children: node }, `${item.id}-transcript-frame`));
23
+ switch (item.kind) {
24
+ case "tombstone":
25
+ return null;
26
+ case "banner":
27
+ return (_jsx(Banner, { version: version, model: currentModel, provider: currentProvider, cwd: displayedCwd }, item.id));
28
+ case "user":
29
+ return withTranscriptSpacing(_jsx(UserMessage, { text: item.text, imageCount: item.imageCount, pasteInfo: item.pasteInfo }, item.id));
30
+ case "goal":
31
+ return withTranscriptSpacing(_jsx(GoalRow, { item: item, columns: columns }));
32
+ case "goal_progress":
33
+ return withTranscriptSpacing(_jsx(GoalProgressRow, { item: item, columns: columns }));
34
+ case "style_pack":
35
+ return withTranscriptSpacing(_jsx(StylePackRow, { item: item }));
36
+ case "setup_hint":
37
+ return withTranscriptSpacing(_jsx(SetupHintRow, { item: item }));
38
+ case "assistant":
39
+ return withTranscriptSpacing(_jsx(AssistantMessage, { text: item.text, thinking: item.thinking, thinkingMs: item.thinkingMs, renderMarkdown: renderMarkdown, availableTerminalHeight: measuredLiveAreaRows }, item.id));
40
+ case "tool_start":
41
+ return withTranscriptSpacing(_jsx(ToolStartRow, { item: item }));
42
+ case "tool_done":
43
+ return withTranscriptSpacing(_jsx(ToolDoneRow, { item: item }));
44
+ case "tool_group":
45
+ return withTranscriptSpacing(_jsx(ToolGroupRow, { item: item }));
46
+ case "server_tool_start":
47
+ return withTranscriptSpacing(_jsx(ServerToolStartRow, { item: item }));
48
+ case "server_tool_done":
49
+ return withTranscriptSpacing(_jsx(ServerToolDoneRow, { item: item }));
50
+ case "error":
51
+ return withTranscriptSpacing(_jsx(ErrorRow, { item: item }));
52
+ case "info":
53
+ return withTranscriptSpacing(_jsx(StatusRow, { id: item.id, presentation: presentInfo(item) }));
54
+ case "update_notice":
55
+ return withTranscriptSpacing(_jsx(UpdateNoticeRow, { item: item }));
56
+ case "plan_transition":
57
+ return withTranscriptSpacing(_jsx(StatusRow, { id: item.id, presentation: presentPlanTransition(item) }));
58
+ case "goal_agent_transition":
59
+ return withTranscriptSpacing(_jsx(StatusRow, { id: item.id, presentation: presentGoalAgentTransition(item) }));
60
+ case "task":
61
+ return withTranscriptSpacing(_jsx(StatusRow, { id: item.id, presentation: presentTask(item) }));
62
+ case "model_transition":
63
+ return withTranscriptSpacing(_jsx(StatusRow, { id: item.id, presentation: presentModelTransition(item) }));
64
+ case "theme_transition":
65
+ return withTranscriptSpacing(_jsx(StatusRow, { id: item.id, presentation: presentThemeTransition(item) }));
66
+ case "plan_event":
67
+ return withTranscriptSpacing(_jsx(StatusRow, { id: item.id, presentation: presentPlanEvent(item) }));
68
+ case "stopped":
69
+ return withTranscriptSpacing(_jsx(StatusRow, { id: item.id, presentation: presentStopped(item) }));
70
+ case "step_done":
71
+ return withTranscriptSpacing(_jsx(StepDoneRow, { item: item }));
72
+ case "queued":
73
+ return withTranscriptSpacing(_jsx(QueuedRow, { item: item }));
74
+ case "compacting":
75
+ return withTranscriptSpacing(_jsx(CompactionSpinner, { staticDisplay: true }, item.id));
76
+ case "compacted":
77
+ return withTranscriptSpacing(_jsx(CompactionDone, { originalCount: item.originalCount, newCount: item.newCount, tokensBefore: item.tokensBefore, tokensAfter: item.tokensAfter }, item.id));
78
+ case "duration":
79
+ return withTranscriptSpacing(_jsx(DurationRow, { item: item }));
80
+ case "subagent_group":
81
+ return withTranscriptSpacing(_jsx(SubAgentGroupRow, { item: item }));
82
+ }
83
+ }
84
+ //# sourceMappingURL=TranscriptRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranscriptRenderer.js","sourceRoot":"","sources":["../../../src/ui/transcript/TranscriptRenderer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,0BAA0B,EAC1B,WAAW,EACX,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,WAAW,EACX,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,gBA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,EAAE,YAAY,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAI,CACjE,CAAC;QACJ,KAAK,SAAS;YACZ,OAAO,qBAAqB,CAAC,KAAC,SAAS,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,YAAY,EAAE,cAAc,CAAC,IAAI,CAAC,GAAI,CAAC,CAAC;QAC/F,KAAK,WAAW;YACd,OAAO,qBAAqB,CAAC,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC;QAC5D,KAAK,QAAQ;YACX,OAAO,qBAAqB,CAAC,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC;QAC1D,KAAK,YAAY;YACf,OAAO,qBAAqB,CAAC,KAAC,iBAAiB,IAAe,aAAa,UAAtB,IAAI,CAAC,EAAE,CAAkB,CAAC,CAAC;QAClF,KAAK,WAAW;YACd,OAAO,qBAAqB,CAC1B,KAAC,cAAc,IAEb,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,WAAW,EAAE,IAAI,CAAC,WAAW,IAJxB,IAAI,CAAC,EAAE,CAKZ,CACH,CAAC;QACJ,KAAK,UAAU;YACb,OAAO,qBAAqB,CAAC,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC;QAC5D,KAAK,gBAAgB;YACnB,OAAO,qBAAqB,CAAC,KAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC;IACnE,CAAC;AACH,CAAC"}
@@ -0,0 +1,76 @@
1
+ import type { DurationItem, ErrorItem, GoalAgentTransitionItem, GoalItem, GoalProgressItem, InfoItem, ModelTransitionItem, PlanEventItem, PlanTransitionItem, QueuedItem, SetupHintItem, StepDoneItem, StoppedItem, StylePackItem, TaskItem, ThemeTransitionItem, UpdateNoticeItem } from "../app-items.js";
2
+ export interface StatusPresentation {
3
+ glyph: string;
4
+ text: string;
5
+ label?: string;
6
+ detail?: string;
7
+ bold: boolean;
8
+ muted?: boolean;
9
+ }
10
+ export interface GoalPresentation {
11
+ glyph: string;
12
+ label: string;
13
+ title: string;
14
+ workerSuffix: string;
15
+ text: string;
16
+ }
17
+ export interface GoalProgressPresentation {
18
+ titleText: string;
19
+ hasResponseBody: boolean;
20
+ isError: boolean;
21
+ loaderStatus: "running" | "done" | "error";
22
+ }
23
+ export interface StylePackPresentation {
24
+ headerLabel: string;
25
+ names: string;
26
+ showSetupHint: boolean;
27
+ setupHint: string;
28
+ }
29
+ export interface SetupHintPresentation {
30
+ headerLabel: string;
31
+ body: string;
32
+ setupHint: string;
33
+ }
34
+ export interface ErrorPresentation {
35
+ glyph: string;
36
+ headline: string;
37
+ message?: string;
38
+ guidance: string;
39
+ }
40
+ export interface QueuedPresentation {
41
+ glyph: string;
42
+ label: string;
43
+ text: string;
44
+ suffix: string;
45
+ }
46
+ export interface UpdateNoticePresentation {
47
+ text: string;
48
+ }
49
+ export interface StepDonePresentation {
50
+ glyph: string;
51
+ text: string;
52
+ description?: string;
53
+ }
54
+ export interface DurationPresentation {
55
+ glyph: string;
56
+ text: string;
57
+ }
58
+ export declare function normalizeTranscriptStatusText(text: string): string;
59
+ export declare function presentGoal(item: GoalItem): GoalPresentation;
60
+ export declare function presentGoalProgress(item: GoalProgressItem): GoalProgressPresentation;
61
+ export declare function presentStylePack(item: StylePackItem): StylePackPresentation;
62
+ export declare function presentSetupHint(_item?: SetupHintItem): SetupHintPresentation;
63
+ export declare function presentError(item: ErrorItem): ErrorPresentation;
64
+ export declare function presentInfo(item: InfoItem): StatusPresentation;
65
+ export declare function presentTask(item: TaskItem): StatusPresentation;
66
+ export declare function presentPlanTransition(item: PlanTransitionItem): StatusPresentation;
67
+ export declare function presentGoalAgentTransition(item: GoalAgentTransitionItem): StatusPresentation;
68
+ export declare function presentModelTransition(item: ModelTransitionItem): StatusPresentation;
69
+ export declare function presentThemeTransition(item: ThemeTransitionItem): StatusPresentation;
70
+ export declare function presentPlanEvent(item: PlanEventItem): StatusPresentation;
71
+ export declare function presentStopped(item: StoppedItem): StatusPresentation;
72
+ export declare function presentQueued(item: QueuedItem): QueuedPresentation;
73
+ export declare function presentUpdateNotice(_item?: UpdateNoticeItem): UpdateNoticePresentation;
74
+ export declare function presentStepDone(item: StepDoneItem): StepDonePresentation;
75
+ export declare function presentDuration(item: DurationItem): DurationPresentation;
76
+ //# sourceMappingURL=presentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../../src/ui/transcript/presentation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,uBAAuB,EACvB,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACb,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAGzB,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,SAAS,GAAG,MAAM,GAAG,O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C,IAAI,EAAE,SAAS,GAAG,iBAAiB,CAO/D;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,kBAAkB,CAE9D;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,kBAAkB,CAE9D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,kBAAkB,GAAG,kBAAkB,CAElF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,uBAAuB,GAAG,kBAAkB,CAE5F;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,mBAAmB,GAAG,kBAAkB,CAEpF;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,mBAAmB,GAAG,kBAAkB,CAEpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,aAAa,GAAG,kBAAkB,CAYxE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,kBAAkB,CAEpE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,kBAAkB,CAOlE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,wBAAwB,CAEtF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,oBAAoB,CAMxE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,oBAAoB,CAExE"}
@@ -0,0 +1,109 @@
1
+ import { LANGUAGE_DISPLAY_NAMES } from "../../core/language-detector.js";
2
+ import { BLACK_CIRCLE } from "../constants/figures.js";
3
+ import { formatDuration } from "../duration-format.js";
4
+ import { UPDATE_NOTICE_TEXT } from "../app-items.js";
5
+ export function normalizeTranscriptStatusText(text) {
6
+ return text.replace(/\\n/g, "\n").replace(/^\n+|\n+$/g, "");
7
+ }
8
+ export function presentGoal(item) {
9
+ const workerSuffix = item.workerId ? ` · worker ${item.workerId}` : "";
10
+ return {
11
+ glyph: "▶",
12
+ label: "Goal: ",
13
+ title: item.title,
14
+ workerSuffix,
15
+ text: `▶ Goal: ${item.title}${workerSuffix}`,
16
+ };
17
+ }
18
+ export function presentGoalProgress(item) {
19
+ const workerSuffix = item.workerId ? ` · worker ${item.workerId}` : "";
20
+ const isError = item.status === "failed" || item.status === "fail" || item.status === "blocked";
21
+ const isDone = item.phase === "worker_finished" ||
22
+ item.phase === "verifier_finished" ||
23
+ item.phase === "terminal";
24
+ return {
25
+ titleText: `${item.title}${workerSuffix}`,
26
+ hasResponseBody: !!item.detail || !!item.summaryRows?.length || !!item.summarySections?.length,
27
+ isError,
28
+ loaderStatus: isError ? "error" : isDone ? "done" : "running",
29
+ };
30
+ }
31
+ export function presentStylePack(item) {
32
+ return {
33
+ headerLabel: item.added.length > 1 ? "STYLE PACKS ACTIVE" : "STYLE PACK ACTIVE",
34
+ names: item.added.map((id) => LANGUAGE_DISPLAY_NAMES[id] ?? id).join(", "),
35
+ showSetupHint: item.showSetupHint,
36
+ setupHint: " to audit this project against the active pack(s)",
37
+ };
38
+ }
39
+ export function presentSetupHint(_item) {
40
+ return {
41
+ headerLabel: "NO STYLE PACKS DETECTED",
42
+ body: "This directory has no recognized language manifest at its root.",
43
+ setupHint: " to audit project hygiene or bootstrap a new project from scratch",
44
+ };
45
+ }
46
+ export function presentError(item) {
47
+ return {
48
+ glyph: "✗ ",
49
+ headline: item.headline,
50
+ message: item.message && item.message !== item.headline ? item.message : undefined,
51
+ guidance: `→ ${item.guidance}`,
52
+ };
53
+ }
54
+ export function presentInfo(item) {
55
+ return { glyph: "○ ", text: normalizeTranscriptStatusText(item.text), bold: false, muted: true };
56
+ }
57
+ export function presentTask(item) {
58
+ return { glyph: "▸ ", label: "Task: ", text: item.title, bold: true };
59
+ }
60
+ export function presentPlanTransition(item) {
61
+ return { glyph: `${BLACK_CIRCLE} `, text: normalizeTranscriptStatusText(item.text), bold: true };
62
+ }
63
+ export function presentGoalAgentTransition(item) {
64
+ return { glyph: `${BLACK_CIRCLE} `, text: normalizeTranscriptStatusText(item.text), bold: true };
65
+ }
66
+ export function presentModelTransition(item) {
67
+ return { glyph: "▸ ", label: "Switched to ", text: item.modelName, bold: true };
68
+ }
69
+ export function presentThemeTransition(item) {
70
+ return { glyph: "◐ ", label: "Theme switched to ", text: item.themeName, bold: true };
71
+ }
72
+ export function presentPlanEvent(item) {
73
+ const labels = {
74
+ approved: "Plan approved",
75
+ rejected: "Plan rejected",
76
+ dismissed: "Plan dismissed",
77
+ };
78
+ return {
79
+ glyph: "○ ",
80
+ text: labels[item.event],
81
+ detail: item.detail ? ` — "${item.detail}"` : undefined,
82
+ bold: true,
83
+ };
84
+ }
85
+ export function presentStopped(item) {
86
+ return { glyph: "⊘ ", text: normalizeTranscriptStatusText(item.text), bold: true };
87
+ }
88
+ export function presentQueued(item) {
89
+ return {
90
+ glyph: "• ",
91
+ label: "Queued: ",
92
+ text: item.text || "(empty)",
93
+ suffix: item.imageCount ? ` (+${item.imageCount} image${item.imageCount > 1 ? "s" : ""})` : "",
94
+ };
95
+ }
96
+ export function presentUpdateNotice(_item) {
97
+ return { text: UPDATE_NOTICE_TEXT };
98
+ }
99
+ export function presentStepDone(item) {
100
+ return {
101
+ glyph: "✓ ",
102
+ text: `Step ${item.stepNum} done`,
103
+ description: item.description ? ` — ${item.description}` : undefined,
104
+ };
105
+ }
106
+ export function presentDuration(item) {
107
+ return { glyph: "✻ ", text: `${item.verb} ${formatDuration(item.durationMs)}` };
108
+ }
109
+ //# sourceMappingURL=presentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../src/ui/transcript/presentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAoBvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAoErD,MAAM,UAAU,6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