jumbo-cli 2.12.0 → 2.14.0

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 (266) hide show
  1. package/dist/application/context/goals/IGoalTitleReader.d.ts +9 -0
  2. package/dist/application/context/goals/IGoalTitleReader.d.ts.map +1 -0
  3. package/dist/application/context/goals/IGoalTitleReader.js +3 -0
  4. package/dist/application/context/goals/IGoalTitleReader.js.map +1 -0
  5. package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.d.ts +10 -0
  6. package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.d.ts.map +1 -0
  7. package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.js +3 -0
  8. package/dist/application/context/relations/discover/IRelationDiscoveryGoalRegistrar.js.map +1 -0
  9. package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.d.ts +9 -0
  10. package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.d.ts.map +1 -0
  11. package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.js +14 -0
  12. package/dist/application/context/relations/discover/NoOpRelationDiscoveryGoalRegistrar.js.map +1 -0
  13. package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.d.ts +14 -0
  14. package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.d.ts.map +1 -0
  15. package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.js +35 -0
  16. package/dist/application/context/relations/discover/RelationDiscoveryEventHandler.js.map +1 -0
  17. package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.d.ts +20 -0
  18. package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.d.ts.map +1 -0
  19. package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.js +48 -0
  20. package/dist/application/context/relations/discover/RelationDiscoveryGoalRegistrar.js.map +1 -0
  21. package/dist/infrastructure/context/goals/SqliteGoalStatusReader.d.ts +3 -1
  22. package/dist/infrastructure/context/goals/SqliteGoalStatusReader.d.ts.map +1 -1
  23. package/dist/infrastructure/context/goals/SqliteGoalStatusReader.js +6 -0
  24. package/dist/infrastructure/context/goals/SqliteGoalStatusReader.js.map +1 -1
  25. package/dist/infrastructure/host/HostBuilder.d.ts.map +1 -1
  26. package/dist/infrastructure/host/HostBuilder.js +10 -0
  27. package/dist/infrastructure/host/HostBuilder.js.map +1 -1
  28. package/dist/presentation/cli/commands/architecture/view/architecture.view.d.ts.map +1 -1
  29. package/dist/presentation/cli/commands/architecture/view/architecture.view.js +27 -16
  30. package/dist/presentation/cli/commands/architecture/view/architecture.view.js.map +1 -1
  31. package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.d.ts +9 -0
  32. package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.d.ts.map +1 -0
  33. package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.js +52 -0
  34. package/dist/presentation/cli/commands/audience-pains/list/AudiencePainListOutputBuilder.js.map +1 -0
  35. package/dist/presentation/cli/commands/audience-pains/list/audiencePains.list.d.ts.map +1 -1
  36. package/dist/presentation/cli/commands/audience-pains/list/audiencePains.list.js +9 -33
  37. package/dist/presentation/cli/commands/audience-pains/list/audiencePains.list.js.map +1 -1
  38. package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.d.ts +9 -0
  39. package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.d.ts.map +1 -0
  40. package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.js +53 -0
  41. package/dist/presentation/cli/commands/audiences/list/AudienceListOutputBuilder.js.map +1 -0
  42. package/dist/presentation/cli/commands/audiences/list/audiences.list.d.ts.map +1 -1
  43. package/dist/presentation/cli/commands/audiences/list/audiences.list.js +9 -33
  44. package/dist/presentation/cli/commands/audiences/list/audiences.list.js.map +1 -1
  45. package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.d.ts +9 -0
  46. package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.d.ts.map +1 -0
  47. package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.js +62 -0
  48. package/dist/presentation/cli/commands/components/list/ComponentListOutputBuilder.js.map +1 -0
  49. package/dist/presentation/cli/commands/components/list/components.list.d.ts.map +1 -1
  50. package/dist/presentation/cli/commands/components/list/components.list.js +9 -48
  51. package/dist/presentation/cli/commands/components/list/components.list.js.map +1 -1
  52. package/dist/presentation/cli/commands/components/search/ComponentSearchOutputBuilder.d.ts.map +1 -1
  53. package/dist/presentation/cli/commands/components/search/ComponentSearchOutputBuilder.js +16 -11
  54. package/dist/presentation/cli/commands/components/search/ComponentSearchOutputBuilder.js.map +1 -1
  55. package/dist/presentation/cli/commands/components/search/components.search.js +1 -1
  56. package/dist/presentation/cli/commands/components/search/components.search.js.map +1 -1
  57. package/dist/presentation/cli/commands/components/show/ComponentShowOutputBuilder.d.ts.map +1 -1
  58. package/dist/presentation/cli/commands/components/show/ComponentShowOutputBuilder.js +42 -21
  59. package/dist/presentation/cli/commands/components/show/ComponentShowOutputBuilder.js.map +1 -1
  60. package/dist/presentation/cli/commands/components/undeprecate/ComponentUndeprecateOutputBuilder.d.ts.map +1 -1
  61. package/dist/presentation/cli/commands/components/undeprecate/ComponentUndeprecateOutputBuilder.js +12 -2
  62. package/dist/presentation/cli/commands/components/undeprecate/ComponentUndeprecateOutputBuilder.js.map +1 -1
  63. package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.d.ts +9 -0
  64. package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.d.ts.map +1 -0
  65. package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.js +73 -0
  66. package/dist/presentation/cli/commands/decisions/list/DecisionListOutputBuilder.js.map +1 -0
  67. package/dist/presentation/cli/commands/decisions/list/decisions.list.d.ts.map +1 -1
  68. package/dist/presentation/cli/commands/decisions/list/decisions.list.js +9 -55
  69. package/dist/presentation/cli/commands/decisions/list/decisions.list.js.map +1 -1
  70. package/dist/presentation/cli/commands/decisions/restore/DecisionRestoreOutputBuilder.d.ts.map +1 -1
  71. package/dist/presentation/cli/commands/decisions/restore/DecisionRestoreOutputBuilder.js +11 -2
  72. package/dist/presentation/cli/commands/decisions/restore/DecisionRestoreOutputBuilder.js.map +1 -1
  73. package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.d.ts +9 -0
  74. package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.d.ts.map +1 -0
  75. package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.js +67 -0
  76. package/dist/presentation/cli/commands/dependencies/list/DependencyListOutputBuilder.js.map +1 -0
  77. package/dist/presentation/cli/commands/dependencies/list/dependencies.list.d.ts.map +1 -1
  78. package/dist/presentation/cli/commands/dependencies/list/dependencies.list.js +21 -71
  79. package/dist/presentation/cli/commands/dependencies/list/dependencies.list.js.map +1 -1
  80. package/dist/presentation/cli/commands/evolve/EvolveOutputBuilder.d.ts.map +1 -1
  81. package/dist/presentation/cli/commands/evolve/EvolveOutputBuilder.js +25 -4
  82. package/dist/presentation/cli/commands/evolve/EvolveOutputBuilder.js.map +1 -1
  83. package/dist/presentation/cli/commands/goals/add/GoalAddOutputBuilder.d.ts.map +1 -1
  84. package/dist/presentation/cli/commands/goals/add/GoalAddOutputBuilder.js +15 -4
  85. package/dist/presentation/cli/commands/goals/add/GoalAddOutputBuilder.js.map +1 -1
  86. package/dist/presentation/cli/commands/goals/approve/GoalApproveOutputBuilder.d.ts.map +1 -1
  87. package/dist/presentation/cli/commands/goals/approve/GoalApproveOutputBuilder.js +18 -21
  88. package/dist/presentation/cli/commands/goals/approve/GoalApproveOutputBuilder.js.map +1 -1
  89. package/dist/presentation/cli/commands/goals/approve/goal.approve.js +1 -1
  90. package/dist/presentation/cli/commands/goals/approve/goal.approve.js.map +1 -1
  91. package/dist/presentation/cli/commands/goals/block/GoalBlockOutputBuilder.d.ts.map +1 -1
  92. package/dist/presentation/cli/commands/goals/block/GoalBlockOutputBuilder.js +12 -6
  93. package/dist/presentation/cli/commands/goals/block/GoalBlockOutputBuilder.js.map +1 -1
  94. package/dist/presentation/cli/commands/goals/block/goal.block.js +1 -1
  95. package/dist/presentation/cli/commands/goals/block/goal.block.js.map +1 -1
  96. package/dist/presentation/cli/commands/goals/close/GoalCloseOutputBuilder.d.ts.map +1 -1
  97. package/dist/presentation/cli/commands/goals/close/GoalCloseOutputBuilder.js +25 -11
  98. package/dist/presentation/cli/commands/goals/close/GoalCloseOutputBuilder.js.map +1 -1
  99. package/dist/presentation/cli/commands/goals/close/goal.close.js +1 -1
  100. package/dist/presentation/cli/commands/goals/close/goal.close.js.map +1 -1
  101. package/dist/presentation/cli/commands/goals/codify/GoalCodifyOutputBuilder.d.ts.map +1 -1
  102. package/dist/presentation/cli/commands/goals/codify/GoalCodifyOutputBuilder.js +78 -60
  103. package/dist/presentation/cli/commands/goals/codify/GoalCodifyOutputBuilder.js.map +1 -1
  104. package/dist/presentation/cli/commands/goals/codify/goal.codify.js +1 -1
  105. package/dist/presentation/cli/commands/goals/codify/goal.codify.js.map +1 -1
  106. package/dist/presentation/cli/commands/goals/commit/GoalCommitOutputBuilder.d.ts.map +1 -1
  107. package/dist/presentation/cli/commands/goals/commit/GoalCommitOutputBuilder.js +13 -5
  108. package/dist/presentation/cli/commands/goals/commit/GoalCommitOutputBuilder.js.map +1 -1
  109. package/dist/presentation/cli/commands/goals/commit/goal.commit.js +1 -1
  110. package/dist/presentation/cli/commands/goals/commit/goal.commit.js.map +1 -1
  111. package/dist/presentation/cli/commands/goals/list/GoalListOutputBuilder.d.ts.map +1 -1
  112. package/dist/presentation/cli/commands/goals/list/GoalListOutputBuilder.js +20 -10
  113. package/dist/presentation/cli/commands/goals/list/GoalListOutputBuilder.js.map +1 -1
  114. package/dist/presentation/cli/commands/goals/pause/GoalPauseOutputBuilder.d.ts.map +1 -1
  115. package/dist/presentation/cli/commands/goals/pause/GoalPauseOutputBuilder.js +14 -8
  116. package/dist/presentation/cli/commands/goals/pause/GoalPauseOutputBuilder.js.map +1 -1
  117. package/dist/presentation/cli/commands/goals/pause/goal.pause.js +2 -2
  118. package/dist/presentation/cli/commands/goals/pause/goal.pause.js.map +1 -1
  119. package/dist/presentation/cli/commands/goals/qualify/GoalQualifyOutputBuilder.d.ts.map +1 -1
  120. package/dist/presentation/cli/commands/goals/qualify/GoalQualifyOutputBuilder.js +19 -20
  121. package/dist/presentation/cli/commands/goals/qualify/GoalQualifyOutputBuilder.js.map +1 -1
  122. package/dist/presentation/cli/commands/goals/qualify/goal.qualify.js +1 -1
  123. package/dist/presentation/cli/commands/goals/qualify/goal.qualify.js.map +1 -1
  124. package/dist/presentation/cli/commands/goals/refine/GoalRefineOutputBuilder.d.ts.map +1 -1
  125. package/dist/presentation/cli/commands/goals/refine/GoalRefineOutputBuilder.js +25 -22
  126. package/dist/presentation/cli/commands/goals/refine/GoalRefineOutputBuilder.js.map +1 -1
  127. package/dist/presentation/cli/commands/goals/refine/goal.refine.js +6 -5
  128. package/dist/presentation/cli/commands/goals/refine/goal.refine.js.map +1 -1
  129. package/dist/presentation/cli/commands/goals/reject/GoalRejectOutputBuilder.d.ts.map +1 -1
  130. package/dist/presentation/cli/commands/goals/reject/GoalRejectOutputBuilder.js +23 -23
  131. package/dist/presentation/cli/commands/goals/reject/GoalRejectOutputBuilder.js.map +1 -1
  132. package/dist/presentation/cli/commands/goals/reject/goal.reject.js +1 -1
  133. package/dist/presentation/cli/commands/goals/reject/goal.reject.js.map +1 -1
  134. package/dist/presentation/cli/commands/goals/remove/GoalRemoveOutputBuilder.d.ts.map +1 -1
  135. package/dist/presentation/cli/commands/goals/remove/GoalRemoveOutputBuilder.js +12 -6
  136. package/dist/presentation/cli/commands/goals/remove/GoalRemoveOutputBuilder.js.map +1 -1
  137. package/dist/presentation/cli/commands/goals/remove/goal.remove.js +1 -1
  138. package/dist/presentation/cli/commands/goals/remove/goal.remove.js.map +1 -1
  139. package/dist/presentation/cli/commands/goals/reset/GoalResetOutputBuilder.d.ts.map +1 -1
  140. package/dist/presentation/cli/commands/goals/reset/GoalResetOutputBuilder.js +13 -7
  141. package/dist/presentation/cli/commands/goals/reset/GoalResetOutputBuilder.js.map +1 -1
  142. package/dist/presentation/cli/commands/goals/reset/goal.reset.js +1 -1
  143. package/dist/presentation/cli/commands/goals/reset/goal.reset.js.map +1 -1
  144. package/dist/presentation/cli/commands/goals/resume/GoalResumeOutputBuilder.d.ts.map +1 -1
  145. package/dist/presentation/cli/commands/goals/resume/GoalResumeOutputBuilder.js +62 -56
  146. package/dist/presentation/cli/commands/goals/resume/GoalResumeOutputBuilder.js.map +1 -1
  147. package/dist/presentation/cli/commands/goals/resume/goal.resume.js +2 -2
  148. package/dist/presentation/cli/commands/goals/resume/goal.resume.js.map +1 -1
  149. package/dist/presentation/cli/commands/goals/review/GoalReviewOutputBuilder.d.ts.map +1 -1
  150. package/dist/presentation/cli/commands/goals/review/GoalReviewOutputBuilder.js +73 -52
  151. package/dist/presentation/cli/commands/goals/review/GoalReviewOutputBuilder.js.map +1 -1
  152. package/dist/presentation/cli/commands/goals/review/goal.review.js +1 -1
  153. package/dist/presentation/cli/commands/goals/review/goal.review.js.map +1 -1
  154. package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.d.ts +0 -8
  155. package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.d.ts.map +1 -1
  156. package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.js +53 -105
  157. package/dist/presentation/cli/commands/goals/show/GoalShowOutputBuilder.js.map +1 -1
  158. package/dist/presentation/cli/commands/goals/show/goal.show.js +1 -1
  159. package/dist/presentation/cli/commands/goals/show/goal.show.js.map +1 -1
  160. package/dist/presentation/cli/commands/goals/start/GoalStartOutputBuilder.d.ts.map +1 -1
  161. package/dist/presentation/cli/commands/goals/start/GoalStartOutputBuilder.js +58 -51
  162. package/dist/presentation/cli/commands/goals/start/GoalStartOutputBuilder.js.map +1 -1
  163. package/dist/presentation/cli/commands/goals/start/goal.start.js +2 -2
  164. package/dist/presentation/cli/commands/goals/start/goal.start.js.map +1 -1
  165. package/dist/presentation/cli/commands/goals/submit/GoalSubmitOutputBuilder.d.ts.map +1 -1
  166. package/dist/presentation/cli/commands/goals/submit/GoalSubmitOutputBuilder.js +15 -14
  167. package/dist/presentation/cli/commands/goals/submit/GoalSubmitOutputBuilder.js.map +1 -1
  168. package/dist/presentation/cli/commands/goals/submit/goal.submit.js +1 -1
  169. package/dist/presentation/cli/commands/goals/submit/goal.submit.js.map +1 -1
  170. package/dist/presentation/cli/commands/goals/unblock/GoalUnblockOutputBuilder.d.ts.map +1 -1
  171. package/dist/presentation/cli/commands/goals/unblock/GoalUnblockOutputBuilder.js +14 -2
  172. package/dist/presentation/cli/commands/goals/unblock/GoalUnblockOutputBuilder.js.map +1 -1
  173. package/dist/presentation/cli/commands/goals/unblock/goal.unblock.js +2 -2
  174. package/dist/presentation/cli/commands/goals/unblock/goal.unblock.js.map +1 -1
  175. package/dist/presentation/cli/commands/goals/update/GoalUpdateOutputBuilder.d.ts.map +1 -1
  176. package/dist/presentation/cli/commands/goals/update/GoalUpdateOutputBuilder.js +10 -2
  177. package/dist/presentation/cli/commands/goals/update/GoalUpdateOutputBuilder.js.map +1 -1
  178. package/dist/presentation/cli/commands/goals/update/goal.update.js +4 -4
  179. package/dist/presentation/cli/commands/goals/update/goal.update.js.map +1 -1
  180. package/dist/presentation/cli/commands/goals/update-progress/GoalUpdateProgressOutputBuilder.d.ts.map +1 -1
  181. package/dist/presentation/cli/commands/goals/update-progress/GoalUpdateProgressOutputBuilder.js +16 -8
  182. package/dist/presentation/cli/commands/goals/update-progress/GoalUpdateProgressOutputBuilder.js.map +1 -1
  183. package/dist/presentation/cli/commands/goals/update-progress/goal.update-progress.js +1 -1
  184. package/dist/presentation/cli/commands/goals/update-progress/goal.update-progress.js.map +1 -1
  185. package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.d.ts +9 -0
  186. package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.d.ts.map +1 -0
  187. package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.js +57 -0
  188. package/dist/presentation/cli/commands/guidelines/list/GuidelineListOutputBuilder.js.map +1 -0
  189. package/dist/presentation/cli/commands/guidelines/list/guidelines.list.d.ts.map +1 -1
  190. package/dist/presentation/cli/commands/guidelines/list/guidelines.list.js +9 -27
  191. package/dist/presentation/cli/commands/guidelines/list/guidelines.list.js.map +1 -1
  192. package/dist/presentation/cli/commands/heal/HealOutputBuilder.d.ts.map +1 -1
  193. package/dist/presentation/cli/commands/heal/HealOutputBuilder.js +18 -6
  194. package/dist/presentation/cli/commands/heal/HealOutputBuilder.js.map +1 -1
  195. package/dist/presentation/cli/commands/host/workers/worker.view.d.ts.map +1 -1
  196. package/dist/presentation/cli/commands/host/workers/worker.view.js +10 -4
  197. package/dist/presentation/cli/commands/host/workers/worker.view.js.map +1 -1
  198. package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.d.ts +9 -0
  199. package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.d.ts.map +1 -0
  200. package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.js +53 -0
  201. package/dist/presentation/cli/commands/invariants/list/InvariantListOutputBuilder.js.map +1 -0
  202. package/dist/presentation/cli/commands/invariants/list/invariants.list.d.ts.map +1 -1
  203. package/dist/presentation/cli/commands/invariants/list/invariants.list.js +9 -23
  204. package/dist/presentation/cli/commands/invariants/list/invariants.list.js.map +1 -1
  205. package/dist/presentation/cli/commands/project/init/project.init.js +8 -8
  206. package/dist/presentation/cli/commands/project/init/project.init.js.map +1 -1
  207. package/dist/presentation/cli/commands/registry/generated-commands.d.ts.map +1 -1
  208. package/dist/presentation/cli/commands/registry/generated-commands.js +6 -0
  209. package/dist/presentation/cli/commands/registry/generated-commands.js.map +1 -1
  210. package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.d.ts +13 -0
  211. package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.d.ts.map +1 -0
  212. package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.js +64 -0
  213. package/dist/presentation/cli/commands/relations/list/RelationListOutputBuilder.js.map +1 -0
  214. package/dist/presentation/cli/commands/relations/list/relations.list.d.ts.map +1 -1
  215. package/dist/presentation/cli/commands/relations/list/relations.list.js +15 -37
  216. package/dist/presentation/cli/commands/relations/list/relations.list.js.map +1 -1
  217. package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.d.ts +9 -0
  218. package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.d.ts.map +1 -0
  219. package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.js +61 -0
  220. package/dist/presentation/cli/commands/sessions/list/SessionListOutputBuilder.js.map +1 -0
  221. package/dist/presentation/cli/commands/sessions/list/sessions.list.d.ts.map +1 -1
  222. package/dist/presentation/cli/commands/sessions/list/sessions.list.js +9 -47
  223. package/dist/presentation/cli/commands/sessions/list/sessions.list.js.map +1 -1
  224. package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.d.ts +9 -0
  225. package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.d.ts.map +1 -0
  226. package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.js +59 -0
  227. package/dist/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.js.map +1 -0
  228. package/dist/presentation/cli/commands/value-propositions/list/values.list.d.ts.map +1 -1
  229. package/dist/presentation/cli/commands/value-propositions/list/values.list.js +9 -32
  230. package/dist/presentation/cli/commands/value-propositions/list/values.list.js.map +1 -1
  231. package/dist/presentation/cli/commands/work/refine/RefineryDisplay.d.ts +5 -39
  232. package/dist/presentation/cli/commands/work/refine/RefineryDisplay.d.ts.map +1 -1
  233. package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js +12 -89
  234. package/dist/presentation/cli/commands/work/refine/RefineryDisplay.js.map +1 -1
  235. package/dist/presentation/cli/commands/work/refine/work.refine.d.ts.map +1 -1
  236. package/dist/presentation/cli/commands/work/refine/work.refine.js +25 -106
  237. package/dist/presentation/cli/commands/work/refine/work.refine.js.map +1 -1
  238. package/dist/presentation/cli/commands/work/review/ReviewerDisplay.d.ts +17 -0
  239. package/dist/presentation/cli/commands/work/review/ReviewerDisplay.d.ts.map +1 -0
  240. package/dist/presentation/cli/commands/work/review/ReviewerDisplay.js +41 -0
  241. package/dist/presentation/cli/commands/work/review/ReviewerDisplay.js.map +1 -0
  242. package/dist/presentation/cli/commands/work/review/work.review.d.ts +23 -0
  243. package/dist/presentation/cli/commands/work/review/work.review.d.ts.map +1 -0
  244. package/dist/presentation/cli/commands/work/review/work.review.js +109 -0
  245. package/dist/presentation/cli/commands/work/review/work.review.js.map +1 -0
  246. package/dist/presentation/cli/commands/work/shared/AgentSpawner.d.ts +18 -0
  247. package/dist/presentation/cli/commands/work/shared/AgentSpawner.d.ts.map +1 -0
  248. package/dist/presentation/cli/commands/work/shared/AgentSpawner.js +38 -0
  249. package/dist/presentation/cli/commands/work/shared/AgentSpawner.js.map +1 -0
  250. package/dist/presentation/cli/commands/work/shared/DaemonDisplay.d.ts +56 -0
  251. package/dist/presentation/cli/commands/work/shared/DaemonDisplay.d.ts.map +1 -0
  252. package/dist/presentation/cli/commands/work/shared/DaemonDisplay.js +93 -0
  253. package/dist/presentation/cli/commands/work/shared/DaemonDisplay.js.map +1 -0
  254. package/dist/presentation/cli/commands/work/shared/DaemonLoop.d.ts +40 -0
  255. package/dist/presentation/cli/commands/work/shared/DaemonLoop.d.ts.map +1 -0
  256. package/dist/presentation/cli/commands/work/shared/DaemonLoop.js +82 -0
  257. package/dist/presentation/cli/commands/work/shared/DaemonLoop.js.map +1 -0
  258. package/dist/presentation/cli/commands/work/shared/GoalStatusQuery.d.ts +13 -0
  259. package/dist/presentation/cli/commands/work/shared/GoalStatusQuery.d.ts.map +1 -0
  260. package/dist/presentation/cli/commands/work/shared/GoalStatusQuery.js +29 -0
  261. package/dist/presentation/cli/commands/work/shared/GoalStatusQuery.js.map +1 -0
  262. package/dist/presentation/cli/rendering/OutputLayout.d.ts +39 -0
  263. package/dist/presentation/cli/rendering/OutputLayout.d.ts.map +1 -0
  264. package/dist/presentation/cli/rendering/OutputLayout.js +81 -0
  265. package/dist/presentation/cli/rendering/OutputLayout.js.map +1 -0
  266. package/package.json +1 -1
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.metadata = void 0;
9
9
  exports.relationsList = relationsList;
10
10
  const Renderer_js_1 = require("../../../rendering/Renderer.js");
11
+ const RelationListOutputBuilder_js_1 = require("./RelationListOutputBuilder.js");
11
12
  exports.metadata = {
12
13
  description: "List all knowledge graph relations",
13
14
  category: "relations",
@@ -35,15 +36,6 @@ exports.metadata = {
35
36
  ],
36
37
  related: ["relation add", "relation remove"],
37
38
  };
38
- function formatRelationText(relation) {
39
- console.log(`${relation.fromEntityType}:${relation.fromEntityId} --[${relation.relationType}]--> ${relation.toEntityType}:${relation.toEntityId}`);
40
- console.log(` ${relation.description}`);
41
- if (relation.strength) {
42
- console.log(` Strength: ${relation.strength}`);
43
- }
44
- console.log(` ID: ${relation.relationId}`);
45
- console.log("");
46
- }
47
39
  async function relationsList(options, container) {
48
40
  const renderer = Renderer_js_1.Renderer.getInstance();
49
41
  try {
@@ -59,38 +51,24 @@ async function relationsList(options, container) {
59
51
  return;
60
52
  }
61
53
  const config = renderer.getConfig();
54
+ const outputBuilder = new RelationListOutputBuilder_js_1.RelationListOutputBuilder();
62
55
  if (config.format === "text") {
63
56
  const filterLabel = options.entityType
64
- ? ` (${options.entityType}${options.entityId ? ':' + options.entityId : ''})`
65
- : "";
66
- console.log(`\nRelations${filterLabel} (${relations.length}):\n`);
67
- for (const relation of relations) {
68
- formatRelationText(relation);
69
- }
57
+ ? `${options.entityType}${options.entityId ? ':' + options.entityId : ''}`
58
+ : undefined;
59
+ const output = outputBuilder.build(relations, filterLabel);
60
+ renderer.info(output.toHumanReadable());
70
61
  }
71
62
  else {
72
- const data = {
73
- count: relations.length,
74
- filter: {
75
- entityType: options.entityType ?? null,
76
- entityId: options.entityId ?? null,
77
- status: options.status ?? "active",
78
- },
79
- relations: relations.map((r) => ({
80
- relationId: r.relationId,
81
- fromEntityType: r.fromEntityType,
82
- fromEntityId: r.fromEntityId,
83
- toEntityType: r.toEntityType,
84
- toEntityId: r.toEntityId,
85
- relationType: r.relationType,
86
- strength: r.strength,
87
- description: r.description,
88
- status: r.status,
89
- createdAt: r.createdAt,
90
- updatedAt: r.updatedAt,
91
- })),
92
- };
93
- renderer.data(data);
63
+ const output = outputBuilder.buildStructuredOutput(relations, {
64
+ entityType: options.entityType ?? null,
65
+ entityId: options.entityId ?? null,
66
+ status: options.status ?? "active",
67
+ });
68
+ const sections = output.getSections();
69
+ const dataSection = sections.find(s => s.type === "data");
70
+ if (dataSection)
71
+ renderer.data(dataSection.content);
94
72
  }
95
73
  }
96
74
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"relations.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/relations/list/relations.list.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AA+CH,sCA0DC;AArGD,gEAA0D;AAK7C,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE;QACP;YACE,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,yDAAyD;SACvE;QACD;YACE,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,8CAA8C;SAC5D;QACD;YACE,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,kEAAkE;SAChF;KACF;IACD,QAAQ,EAAE;QACR,EAAE,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,2BAA2B,EAAE;QAC7E,EAAE,OAAO,EAAE,yCAAyC,EAAE,WAAW,EAAE,gCAAgC,EAAE;QACrG,EAAE,OAA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EAAE,CAAC,CAAC,YAAY;oBAC5B,YAAY,EAAE,CAAC,CAAC,YAAY;oBAC5B,UAAU,EAAE,CAAC,CAAC,UAAU;oBACxB,YAAY,EAAE,CAAC,CAAC,YAAY;oBAC5B,QAAQ,EAAE,CAAC,CAAC,QAAQ;oBACpB,WAAW,EAAE,CAAC,CAAC,WAAW;oBAC1B,MAAM,EAAE,CAAC,CAAC,MAAM;oBAChB,SAAS,EAAE,CAAC,CAAC,SAAS;oBACtB,SAAS,EAAE,CAAC,CAAC,SAAS;iBACvB,CAAC,CAAC;aACJ,CAAC;YACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,0BAA0B,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"relations.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/relations/list/relations.list.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAsCH,sCA2CC;AA7ED,gEAA0D;AAI1D,iFAA2E;AAE9D,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE;QACP;YACE,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,yDAAyD;SACvE;QACD;YACE,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,8CAA8C;SAC5D;QACD;YACE,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,kEAAkE;SAChF;KACF;IACD,QAAQ,EAAE;QACR,EAAE,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,2BAA2B,EAAE;QAC7E,EAAE,OAAO,EA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;gBACpC,CAAC,CAAC,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC1E,CAAC,CAAC,SAAS,CAAC;YACd,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;YAC3D,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;QAC1C,CAAC;aAAM,CAAC;YACN,MAAM,MAAM,GAAG,aAAa,CAAC,qBAAqB,CAAC,SAAS,EAAE;gBAC5D,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI;gBACtC,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,IAAI;gBAClC,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,QAAQ;aACnC,CAAC,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;YACtC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC;YAC1D,IAAI,WAAW;gBAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAqB,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,0BAA0B,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { TerminalOutput } from '../../../output/TerminalOutput.js';
2
+ import { SessionView } from '../../../../../application/context/sessions/SessionView.js';
3
+ export declare class SessionListOutputBuilder {
4
+ private builder;
5
+ build(sessions: SessionView[], filter?: string): TerminalOutput;
6
+ buildStructuredOutput(sessions: SessionView[], filter?: string): TerminalOutput;
7
+ buildFailureError(error: Error | string): TerminalOutput;
8
+ }
9
+ //# sourceMappingURL=SessionListOutputBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionListOutputBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/SessionListOutputBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,4DAA4D,CAAC;AAIzF,qBAAa,wBAAwB;IACnC,OAAO,CAAC,OAAO,CAA+B;IAE9C,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc;IA0B/D,qBAAqB,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc;IAkB/E,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,cAAc;CAQzD"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SessionListOutputBuilder = void 0;
4
+ const TerminalOutputBuilder_js_1 = require("../../../output/TerminalOutputBuilder.js");
5
+ const StyleConfig_js_1 = require("../../../rendering/StyleConfig.js");
6
+ const OutputLayout_js_1 = require("../../../rendering/OutputLayout.js");
7
+ class SessionListOutputBuilder {
8
+ constructor() {
9
+ this.builder = new TerminalOutputBuilder_js_1.TerminalOutputBuilder();
10
+ }
11
+ build(sessions, filter) {
12
+ this.builder.reset();
13
+ const filterLabel = filter && filter !== "all" ? ` (${filter})` : "";
14
+ const lines = [];
15
+ lines.push("");
16
+ lines.push((0, OutputLayout_js_1.heading)(`Session History${filterLabel} (${sessions.length})`));
17
+ for (let i = 0; i < sessions.length; i++) {
18
+ const s = sessions[i];
19
+ if (i > 0)
20
+ lines.push("");
21
+ const statusTag = `[${s.status.toUpperCase()}]`;
22
+ lines.push((0, OutputLayout_js_1.contentLine)(`${StyleConfig_js_1.Colors.bold(statusTag)} ${StyleConfig_js_1.BrandColors.accentCyan(s.sessionId)}`));
23
+ if (s.focus) {
24
+ lines.push((0, OutputLayout_js_1.metaField)("Focus", StyleConfig_js_1.Colors.primary(s.focus), 9));
25
+ }
26
+ lines.push((0, OutputLayout_js_1.metaField)("Started", StyleConfig_js_1.Colors.muted(s.startedAt), 9));
27
+ if (s.endedAt) {
28
+ lines.push((0, OutputLayout_js_1.metaField)("Ended", StyleConfig_js_1.Colors.muted(s.endedAt), 9));
29
+ }
30
+ }
31
+ this.builder.addPrompt(lines.join("\n"));
32
+ return this.builder.build();
33
+ }
34
+ buildStructuredOutput(sessions, filter) {
35
+ this.builder.reset();
36
+ this.builder.addData({
37
+ count: sessions.length,
38
+ filter: filter ?? "all",
39
+ sessions: sessions.map((s) => ({
40
+ sessionId: s.sessionId,
41
+ status: s.status,
42
+ focus: s.focus,
43
+ startedAt: s.startedAt,
44
+ endedAt: s.endedAt,
45
+ createdAt: s.createdAt,
46
+ updatedAt: s.updatedAt,
47
+ })),
48
+ });
49
+ return this.builder.build();
50
+ }
51
+ buildFailureError(error) {
52
+ this.builder.reset();
53
+ this.builder.addPrompt(`${StyleConfig_js_1.Symbols.cross} ${StyleConfig_js_1.Colors.error("Failed to list sessions")}`);
54
+ this.builder.addData({
55
+ message: error instanceof Error ? error.message : error,
56
+ });
57
+ return this.builder.build();
58
+ }
59
+ }
60
+ exports.SessionListOutputBuilder = SessionListOutputBuilder;
61
+ //# sourceMappingURL=SessionListOutputBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionListOutputBuilder.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/SessionListOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAGjF,sEAAiF;AACjF,wEAAqF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C,KAAK,IAAI,uBAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,EAAE,CAAC,CAAC;QACtF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;SACxD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AAvDD,4DAuDC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.list.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/sessions.list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAMjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAwBtB,CAAC;AAqCF;;;GAGG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EAC5B,SAAS,EAAE,qBAAqB,iBAqDjC"}
1
+ {"version":3,"file":"sessions.list.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/sessions.list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAOjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAwBtB,CAAC;AASF;;;GAGG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EAC5B,SAAS,EAAE,qBAAqB,iBAuCjC"}
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.metadata = void 0;
14
14
  exports.sessionsList = sessionsList;
15
15
  const Renderer_js_1 = require("../../../rendering/Renderer.js");
16
+ const SessionListOutputBuilder_js_1 = require("./SessionListOutputBuilder.js");
16
17
  /**
17
18
  * Command metadata for auto-registration
18
19
  */
@@ -41,32 +42,6 @@ exports.metadata = {
41
42
  ],
42
43
  related: ["session start", "session end"],
43
44
  };
44
- /**
45
- * Format status for display
46
- */
47
- function formatStatus(status) {
48
- const statusMap = {
49
- active: "[ACTIVE]",
50
- paused: "[PAUSED]",
51
- blocked: "[BLOCKED]",
52
- ended: "[ENDED]",
53
- };
54
- return statusMap[status] || `[${status.toUpperCase()}]`;
55
- }
56
- /**
57
- * Format session for text output
58
- */
59
- function formatSessionText(session) {
60
- console.log(`${formatStatus(session.status)} ${session.sessionId}`);
61
- if (session.focus) {
62
- console.log(` Focus: ${session.focus}`);
63
- }
64
- console.log(` Started: ${session.startedAt}`);
65
- if (session.endedAt) {
66
- console.log(` Ended: ${session.endedAt}`);
67
- }
68
- console.log("");
69
- }
70
45
  /**
71
46
  * Validate status filter
72
47
  */
@@ -95,30 +70,17 @@ async function sessionsList(options, container) {
95
70
  }
96
71
  // Check if we're in structured output mode by examining renderer config
97
72
  const config = renderer.getConfig();
73
+ const outputBuilder = new SessionListOutputBuilder_js_1.SessionListOutputBuilder();
98
74
  if (config.format === "text") {
99
- // Text format: human-readable output
100
- const filterLabel = statusFilter === "all" ? "" : ` (${statusFilter})`;
101
- console.log(`\nSession History${filterLabel} (${sessions.length}):\n`);
102
- for (const session of sessions) {
103
- formatSessionText(session);
104
- }
75
+ const output = outputBuilder.build(sessions, statusFilter);
76
+ renderer.info(output.toHumanReadable());
105
77
  }
106
78
  else {
107
- // Structured format (json/yaml/ndjson): use renderer.data()
108
- const data = {
109
- count: sessions.length,
110
- filter: statusFilter,
111
- sessions: sessions.map((s) => ({
112
- sessionId: s.sessionId,
113
- status: s.status,
114
- focus: s.focus,
115
- startedAt: s.startedAt,
116
- endedAt: s.endedAt,
117
- createdAt: s.createdAt,
118
- updatedAt: s.updatedAt,
119
- })),
120
- };
121
- renderer.data(data);
79
+ const output = outputBuilder.buildStructuredOutput(sessions, statusFilter);
80
+ const sections = output.getSections();
81
+ const dataSection = sections.find(s => s.type === "data");
82
+ if (dataSection)
83
+ renderer.data(dataSection.content);
122
84
  }
123
85
  }
124
86
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/sessions.list.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AA6EH,oCAuDC;AA9HD,gEAA0D;AAG1D;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,sBAAsB;IACnC,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE;QACP;YACE,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,gEAAgE;SAC9E;KACF;IACD,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,qBAAqB;YAC9B,WAAW,EAAE,mBAAmB;SACjC;QACD;YACE,OAAO,EAAE,qCAAqC;YAC9C,WAAW,EAAE,2BAA2B;SACzC;QACD;YACE,OAAO,EAAE,kDAAkD;YAC3D,WAAW,EAAE,6BAA6B;SAC3C;KACF;IACD,OAAO,EAAE,CAAC,eAAe,EAAE,aAAa,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,SAAS,YAAY,CAAC,MAAc;IAClC,MAAM,SAAS,GAA2B;QACxC,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE,SAAS;KACjB,CAAC;IACF,OAAO,SAAS,CAAC,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC;AAC1D,CAAC;AAED;;GAEG;AACH,SAAS,iBAAiB,CAAC,OAAoB;IAC7C,OAAO,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,IAA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CAAC,yBAAyB,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,8CAA8C;AAChD,CAAC"}
1
+ {"version":3,"file":"sessions.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/sessions/list/sessions.list.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAkDH,oCAyCC;AArFD,gEAA0D;AAE1D,+EAAyE;AAEzE;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,sBAAsB;IACnC,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE;QACP;YACE,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,gEAAgE;SAC9E;KACF;IACD,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,qBAAqB;YAC9B,WAAW,EAAE,mBAAmB;SACjC;QACD;YACE,OAAO,EAAE,qCAAqC;YAC9C,WAAW,EAAE,2BAA2B;SACzC;QACD;YACE,OAAO,EAAE,kDAAkD;YAC3D,WAAW,EAAE,6BAA6B;SAC3C;KACF;IACD,OAAO,EAAE,CAAC,eAAe,EAAE,aAAa,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,SAAS,aAAa,CAAC,MAAc;IACnC,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC/D,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,YAAY,CAChC,OAA4B,EAC5B,SAAgC;IAEhC,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IAExC,IAAI,CAAC;QACH,uCAAuC;QACvC,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,IAAI,KAAK,CAAC;QAC7C,IAAI,CAAC,aAAa,CAAC,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AC,OAAqB,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,8CAA8C;AAChD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { TerminalOutput } from '../../../output/TerminalOutput.js';
2
+ import { ValuePropositionView } from '../../../../../application/context/value-propositions/ValuePropositionView.js';
3
+ export declare class ValueListOutputBuilder {
4
+ private builder;
5
+ build(values: ValuePropositionView[]): TerminalOutput;
6
+ buildStructuredOutput(values: ValuePropositionView[]): TerminalOutput;
7
+ buildFailureError(error: Error | string): TerminalOutput;
8
+ }
9
+ //# sourceMappingURL=ValueListOutputBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValueListOutputBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+EAA+E,CAAC;AAIrH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,OAAO,CAA+B;IAE9C,KAAK,CAAC,MAAM,EAAE,oBAAoB,EAAE,GAAG,cAAc;IAyBrD,qBAAqB,CAAC,MAAM,EAAE,oBAAoB,EAAE,GAAG,cAAc;IAiBrE,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,cAAc;CAQzD"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValueListOutputBuilder = void 0;
4
+ const TerminalOutputBuilder_js_1 = require("../../../output/TerminalOutputBuilder.js");
5
+ const StyleConfig_js_1 = require("../../../rendering/StyleConfig.js");
6
+ const OutputLayout_js_1 = require("../../../rendering/OutputLayout.js");
7
+ class ValueListOutputBuilder {
8
+ constructor() {
9
+ this.builder = new TerminalOutputBuilder_js_1.TerminalOutputBuilder();
10
+ }
11
+ build(values) {
12
+ this.builder.reset();
13
+ const lines = [];
14
+ lines.push("");
15
+ lines.push((0, OutputLayout_js_1.heading)(`Value Propositions (${values.length})`));
16
+ for (let i = 0; i < values.length; i++) {
17
+ const v = values[i];
18
+ if (i > 0)
19
+ lines.push("");
20
+ lines.push((0, OutputLayout_js_1.contentLine)(StyleConfig_js_1.BrandColors.accentCyan(v.title)));
21
+ lines.push(...(0, OutputLayout_js_1.wrapContent)(v.description));
22
+ if (v.benefit) {
23
+ lines.push((0, OutputLayout_js_1.metaField)("Benefit", StyleConfig_js_1.Colors.primary(v.benefit), 9));
24
+ }
25
+ if (v.measurableOutcome) {
26
+ lines.push((0, OutputLayout_js_1.metaField)("Outcome", StyleConfig_js_1.Colors.primary(v.measurableOutcome), 9));
27
+ }
28
+ lines.push((0, OutputLayout_js_1.metaField)("ID", StyleConfig_js_1.Colors.muted(v.valuePropositionId), 9));
29
+ }
30
+ this.builder.addPrompt(lines.join("\n"));
31
+ return this.builder.build();
32
+ }
33
+ buildStructuredOutput(values) {
34
+ this.builder.reset();
35
+ this.builder.addData({
36
+ count: values.length,
37
+ valuePropositions: values.map((v) => ({
38
+ valuePropositionId: v.valuePropositionId,
39
+ title: v.title,
40
+ description: v.description,
41
+ benefit: v.benefit,
42
+ measurableOutcome: v.measurableOutcome,
43
+ createdAt: v.createdAt,
44
+ updatedAt: v.updatedAt,
45
+ })),
46
+ });
47
+ return this.builder.build();
48
+ }
49
+ buildFailureError(error) {
50
+ this.builder.reset();
51
+ this.builder.addPrompt(`${StyleConfig_js_1.Symbols.cross} ${StyleConfig_js_1.Colors.error("Failed to list value propositions")}`);
52
+ this.builder.addData({
53
+ message: error instanceof Error ? error.message : error,
54
+ });
55
+ return this.builder.build();
56
+ }
57
+ }
58
+ exports.ValueListOutputBuilder = ValueListOutputBuilder;
59
+ //# sourceMappingURL=ValueListOutputBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValueListOutputBuilder.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/ValueListOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAGjF,sEAAiF;AACjF,wEAAkG;AAElG,MAAa,sBAAsB;IAAnC;QACU,YAAO,GAAG,IAAI,gDAAqB,EAAE,CAAC;IAoDhD,CAAC;IAlDC,KAAK,CAAC,MAA8B;QAClC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,MAAM,KAAK,GAAa,EAAE,CAAC;QAE3B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,IAAA,yBAAO,EAAC,uBAAuB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAE7D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACpB,IAAI,CAAC,GAAG,CAAC;gBAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC1B,KAAK,CAAC,IAAI,CAAC,IAAA,6BAAW,EAAC,4BAAW,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACzD,KAAK,CAAC,IAAI,CAAC,GAAG,IAAA,6BAAW,EAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;YAC1C,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;gBACd,KAAK,CAAC,IAAI,CAAC,IAAA,2BAAS,EAAC,SAAS,EAAE,uBAAM,CAAC,OAAO,CAAC,CAAC,CAAC,OAA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AAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,wBAAO,CAAC,KAAK,IAAI,uBAAM,CAAC,KAAK,CAAC,mCAAmC,CAAC,EAAE,CAAC,CAAC;QAChG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;SACxD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AArDD,wDAqDC"}
@@ -1 +1 @@
1
- {"version":3,"file":"values.list.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/values.list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAIjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAkBtB,CAAC;AAgBF;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC/B,SAAS,EAAE,qBAAqB,iBA0CjC"}
1
+ {"version":3,"file":"values.list.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/values.list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAKjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAkBtB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC/B,SAAS,EAAE,qBAAqB,iBA8BjC"}
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.metadata = void 0;
14
14
  exports.valuesList = valuesList;
15
15
  const Renderer_js_1 = require("../../../rendering/Renderer.js");
16
+ const ValueListOutputBuilder_js_1 = require("./ValueListOutputBuilder.js");
16
17
  /**
17
18
  * Command metadata for auto-registration
18
19
  */
@@ -35,19 +36,6 @@ exports.metadata = {
35
36
  ],
36
37
  related: ["value add", "value update", "value remove"],
37
38
  };
38
- /**
39
- * Format value proposition for text output
40
- */
41
- function formatValueText(value) {
42
- console.log(`${value.title}`);
43
- console.log(` ${value.description}`);
44
- console.log(` Benefit: ${value.benefit}`);
45
- if (value.measurableOutcome) {
46
- console.log(` Outcome: ${value.measurableOutcome}`);
47
- }
48
- console.log(` ID: ${value.valuePropositionId}`);
49
- console.log("");
50
- }
51
39
  /**
52
40
  * Command handler
53
41
  * Called by Commander with parsed options
@@ -62,28 +50,17 @@ async function valuesList(_options, container) {
62
50
  }
63
51
  // Check if we're in structured output mode by examining renderer config
64
52
  const config = renderer.getConfig();
53
+ const outputBuilder = new ValueListOutputBuilder_js_1.ValueListOutputBuilder();
65
54
  if (config.format === "text") {
66
- // Text format: human-readable output
67
- console.log(`\nValue Propositions (${values.length}):\n`);
68
- for (const value of values) {
69
- formatValueText(value);
70
- }
55
+ const output = outputBuilder.build(values);
56
+ renderer.info(output.toHumanReadable());
71
57
  }
72
58
  else {
73
- // Structured format (json/yaml/ndjson): use renderer.data()
74
- const data = {
75
- count: values.length,
76
- values: values.map((v) => ({
77
- valuePropositionId: v.valuePropositionId,
78
- title: v.title,
79
- description: v.description,
80
- benefit: v.benefit,
81
- measurableOutcome: v.measurableOutcome,
82
- createdAt: v.createdAt,
83
- updatedAt: v.updatedAt,
84
- })),
85
- };
86
- renderer.data(data);
59
+ const output = outputBuilder.buildStructuredOutput(values);
60
+ const sections = output.getSections();
61
+ const dataSection = sections.find(s => s.type === "data");
62
+ if (dataSection)
63
+ renderer.data(dataSection.content);
87
64
  }
88
65
  }
89
66
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"values.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/values.list.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAgDH,gCA4CC;AAxFD,gEAA0D;AAG1D;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,mBAAmB;IAC7B,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,mBAAmB;YAC5B,WAAW,EAAE,4CAA4C;SAC1D;QACD;YACE,OAAO,EAAE,iCAAiC;YAC1C,WAAW,EAAE,qCAAqC;SACnD;QACD;YACE,OAAO,EAAE,iCAAiC;YAC1C,WAAW,EAAE,qCAAqC;SACnD;KACF;IACD,OAAO,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,cAAc,CAAC;CACvD,CAAC;AAEF;;GAEG;AACH,SAAS,eAAe,CAAC,KAA2B;IAClD,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IAC9B,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;IACtC,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IAC3C,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC5B,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC;IACvD,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,SAAS,KAAK,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACjD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,UAAU,CAC9B,QAA+B,EAC/B,SAAgC;IAEhC,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IAExC,IAAI,C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AAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACpG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,8CAA8C;AAChD,CAAC"}
1
+ {"version":3,"file":"values.list.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/value-propositions/list/values.list.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAmCH,gCAgCC;AA/DD,gEAA0D;AAE1D,2EAAqE;AAErE;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,mBAAmB;IAC7B,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,mBAAmB;YAC5B,WAAW,EAAE,4CAA4C;SAC1D;QACD;YACE,OAAO,EAAE,iCAAiC;YAC1C,WAAW,EAAE,qCAAqC;SACnD;QACD;YACE,OAAO,EAAE,iCAAiC;YAC1C,WAAW,EAAE,qCAAqC;SACnD;KACF;IACD,OAAO,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,cAAc,CAAC;CACvD,CAAC;AAEF;;;GAGG;AACI,KAAK,UAAU,UAAU,CAC9B,QAA+B,EAC/B,SAAgC;IAEhC,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IAExC,IAAI,CAAC;QACH,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,SAAS,CAAC,8BAA8B,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAE7E,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,QAAQ,CAAC,IAAI,CAAC,sEAAsE,CAAC,CAAC;YACtF,OAAO;QACT,CAAC;QAED,wEAAwE;QACxE,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;QACpC,MAAM,aAAa,GAAG,IAAI,kDAAsB,EAAE,CAAC;QAEnD,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YAC7B,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAC3C,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;QAC1C,CAAC;aAAM,CAAC;YACN,MAAM,MAAM,GAAG,aAAa,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAC3D,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;YACtC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC;YAC1D,IAAI,WAAW;gBAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAqB,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACpG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,8CAA8C;AAChD,CAAC"}
@@ -1,45 +1,11 @@
1
1
  /**
2
2
  * Refinery Display
3
3
  *
4
- * Layout and rendering for the `jumbo work refine` daemon.
5
- * Implements the mockup design with accent bars, glimmer title,
6
- * compact config, and gradient braille spinners.
4
+ * Display module for the `jumbo work refine` daemon.
5
+ * Extends DaemonDisplay with refine-specific labels.
7
6
  */
8
- export interface RefineryConfig {
9
- agentId: string;
10
- pollIntervalS: number;
11
- maxRetries: number;
12
- }
13
- export declare class RefineryDisplay {
14
- private config;
15
- private write;
16
- constructor(config: RefineryConfig);
17
- /** Render the header block: accent bar + glimmer title + config + divider */
18
- renderHeader(): Promise<void>;
19
- /** Start the idle "Waiting..." braille spinner */
20
- startWaiting(): {
21
- stop: () => void;
22
- };
23
- /** Render goal discovery info */
24
- renderGoalStart(goalId: string, objective: string, attempt: number, maxRetries: number): void;
25
- /** Start the active "Refining..." braille spinner */
26
- startRefining(): {
27
- stop: () => void;
28
- };
29
- /** Render goal completion */
30
- renderGoalComplete(goalId: string, objective: string, attempts: number): void;
31
- /** Render goal exhaustion/skip warning */
32
- renderGoalSkipped(goalId: string, status: string, maxRetries: number): void;
33
- /** Render retry info */
34
- renderRetry(attempt: number, maxRetries: number): void;
35
- /** Render unknown agent error */
36
- renderUnknownAgent(agent: string, supported: readonly string[]): void;
37
- /** Render shutdown message */
38
- renderShutdown(): void;
39
- private out;
40
- private line;
41
- private divider;
42
- private truncateObjective;
43
- private shortId;
7
+ import { DaemonDisplay, DaemonRuntimeConfig } from "../shared/DaemonDisplay.js";
8
+ export declare class RefineryDisplay extends DaemonDisplay {
9
+ constructor(runtimeConfig: DaemonRuntimeConfig);
44
10
  }
45
11
  //# sourceMappingURL=RefineryDisplay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RefineryDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/work/refine/RefineryDisplay.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiBH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,KAAK,CAAsB;gBAEvB,MAAM,EAAE,cAAc;IAKlC,6EAA6E;IACvE,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBnC,kDAAkD;IAClD,YAAY,IAAI;QAAE,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;IAIpC,iCAAiC;IACjC,eAAe,CACb,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,IAAI;IAQP,qDAAqD;IACrD,aAAa,IAAI;QAAE,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;IAIrC,6BAA6B;IAC7B,kBAAkB,CAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,IAAI;IASP,0CAA0C;IAC1C,iBAAiB,CACf,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB,IAAI;IAQP,wBAAwB;IACxB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAItD,iCAAiC;IACjC,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAIrE,8BAA8B;IAC9B,cAAc,IAAI,IAAI;IAOtB,OAAO,CAAC,GAAG;IAIX,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,OAAO;CAGhB"}
1
+ {"version":3,"file":"RefineryDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/work/refine/RefineryDisplay.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,qBAAa,eAAgB,SAAQ,aAAa;gBACpC,aAAa,EAAE,mBAAmB;CAY/C"}
@@ -2,98 +2,21 @@
2
2
  /**
3
3
  * Refinery Display
4
4
  *
5
- * Layout and rendering for the `jumbo work refine` daemon.
6
- * Implements the mockup design with accent bars, glimmer title,
7
- * compact config, and gradient braille spinners.
5
+ * Display module for the `jumbo work refine` daemon.
6
+ * Extends DaemonDisplay with refine-specific labels.
8
7
  */
9
8
  Object.defineProperty(exports, "__esModule", { value: true });
10
9
  exports.RefineryDisplay = void 0;
11
- const StyleConfig_js_1 = require("../../../rendering/StyleConfig.js");
12
- const GlimmerEffect_js_1 = require("../../../animations/GlimmerEffect.js");
13
- const BrailleSpinner_js_1 = require("../../../animations/BrailleSpinner.js");
14
- const RESET = "\x1b[0m";
15
- const DIM = "\x1b[2m";
16
- const GREEN = "\x1b[32m";
17
- const YELLOW = "\x1b[33m";
18
- const RED = "\x1b[31m";
19
- const BOLD = "\x1b[1m";
20
- const BRIGHT_WHITE = "\x1b[97m";
21
- const [jbR, jbG, jbB] = StyleConfig_js_1.BrandColors.jumboBlueRaw;
22
- const JUMBO_BLUE = `\x1b[38;2;${jbR};${jbG};${jbB}m`;
23
- class RefineryDisplay {
24
- constructor(config) {
25
- this.config = config;
26
- this.write = (s) => process.stderr.write(s);
27
- }
28
- /** Render the header block: accent bar + glimmer title + config + divider */
29
- async renderHeader() {
30
- const { agentId, pollIntervalS, maxRetries } = this.config;
31
- this.line("");
32
- await (0, GlimmerEffect_js_1.playGlimmer)("Jumbo Refinery", ` ${JUMBO_BLUE}│${RESET} `, {
33
- baseColor: JUMBO_BLUE,
34
- highlightColor: BRIGHT_WHITE,
35
- }, this.write);
36
- this.out("\n");
37
- this.line(` ${JUMBO_BLUE}│${RESET} ${DIM}${agentId} · poll ${pollIntervalS}s · retries ${maxRetries} · Q to stop${RESET}`);
38
- this.divider();
39
- }
40
- /** Start the idle "Waiting..." braille spinner */
41
- startWaiting() {
42
- return (0, BrailleSpinner_js_1.startBrailleSpinner)({ label: "foraging", write: this.write });
43
- }
44
- /** Render goal discovery info */
45
- renderGoalStart(goalId, objective, attempt, maxRetries) {
46
- const sid = this.shortId(goalId);
47
- this.line(` ${GREEN}●${RESET} ${BOLD}${sid}${RESET} ${DIM}attempt ${attempt}/${maxRetries}${RESET}`);
48
- this.line(` ${DIM}${this.truncateObjective(objective)}${RESET}`);
49
- }
50
- /** Start the active "Refining..." braille spinner */
51
- startRefining() {
52
- return (0, BrailleSpinner_js_1.startBrailleSpinner)({ label: "refining", write: this.write });
53
- }
54
- /** Render goal completion */
55
- renderGoalComplete(goalId, objective, attempts) {
56
- const sid = this.shortId(goalId);
57
- this.line(` ${GREEN}✓${RESET} ${GREEN}refined${RESET} ${BOLD}${sid}${RESET} ${DIM}${attempts} attempt${attempts !== 1 ? "s" : ""}${RESET}`);
58
- this.line(` ${DIM}${this.truncateObjective(objective)}${RESET}`);
59
- this.line("");
60
- }
61
- /** Render goal exhaustion/skip warning */
62
- renderGoalSkipped(goalId, status, maxRetries) {
63
- const sid = this.shortId(goalId);
64
- this.line(` ${YELLOW}⚠${RESET} ${sid} did not reach 'refined' after ${maxRetries} attempts (status: ${status}). Skipping.`);
65
- this.line("");
66
- }
67
- /** Render retry info */
68
- renderRetry(attempt, maxRetries) {
69
- this.line(` ${DIM}→ Retry ${attempt}/${maxRetries}...${RESET}`);
70
- }
71
- /** Render unknown agent error */
72
- renderUnknownAgent(agent, supported) {
73
- this.line(`${RED}✗${RESET} Unknown agent '${agent}'. Supported: ${supported.join(", ")}`);
74
- }
75
- /** Render shutdown message */
76
- renderShutdown() {
77
- this.line("");
78
- this.line(` ${DIM}→ Refinery stopped.${RESET}`);
79
- }
80
- // --- Private helpers ---
81
- out(msg) {
82
- this.write(msg);
83
- }
84
- line(msg) {
85
- this.write(`${msg}\n`);
86
- }
87
- divider() {
88
- this.line(` ${DIM}${"─".repeat(50)}${RESET}`);
89
- }
90
- truncateObjective(text, max = 60) {
91
- if (text.length <= max)
92
- return text;
93
- return text.slice(0, max - 3) + "...";
94
- }
95
- shortId(goalId) {
96
- return goalId.length > 12 ? goalId.slice(0, 8) : goalId;
10
+ const DaemonDisplay_js_1 = require("../shared/DaemonDisplay.js");
11
+ class RefineryDisplay extends DaemonDisplay_js_1.DaemonDisplay {
12
+ constructor(runtimeConfig) {
13
+ super({
14
+ title: "Jumbo Refinery",
15
+ idleLabel: "foraging",
16
+ activeLabel: "refining",
17
+ completeStatus: "refined",
18
+ daemonName: "Refinery",
19
+ }, runtimeConfig);
97
20
  }
98
21
  }
99
22
  exports.RefineryDisplay = RefineryDisplay;