jumbo-cli 3.2.1 → 3.3.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 (423) hide show
  1. package/README.md +2 -2
  2. package/dist/application/context/goals/codify/CodifierProcessManager.d.ts.map +1 -1
  3. package/dist/application/context/goals/codify/CodifierProcessManager.js +9 -3
  4. package/dist/application/context/goals/codify/CodifierProcessManager.js.map +1 -1
  5. package/dist/application/context/goals/refine/RefinerProcessManager.d.ts.map +1 -1
  6. package/dist/application/context/goals/refine/RefinerProcessManager.js +19 -3
  7. package/dist/application/context/goals/refine/RefinerProcessManager.js.map +1 -1
  8. package/dist/application/context/goals/review/ReviewerProcessManager.d.ts.map +1 -1
  9. package/dist/application/context/goals/review/ReviewerProcessManager.js +16 -3
  10. package/dist/application/context/goals/review/ReviewerProcessManager.js.map +1 -1
  11. package/dist/domain/architecture/define/ArchitectureDefinedEvent.d.ts +2 -1
  12. package/dist/domain/architecture/define/ArchitectureDefinedEvent.d.ts.map +1 -1
  13. package/dist/domain/architecture/update/ArchitectureUpdatedEvent.d.ts +2 -1
  14. package/dist/domain/architecture/update/ArchitectureUpdatedEvent.d.ts.map +1 -1
  15. package/dist/domain/audience-pains/add/AudiencePainAddedEvent.d.ts +2 -1
  16. package/dist/domain/audience-pains/add/AudiencePainAddedEvent.d.ts.map +1 -1
  17. package/dist/domain/audience-pains/update/AudiencePainUpdatedEvent.d.ts +2 -1
  18. package/dist/domain/audience-pains/update/AudiencePainUpdatedEvent.d.ts.map +1 -1
  19. package/dist/domain/audiences/add/AudienceAddedEvent.d.ts +2 -2
  20. package/dist/domain/audiences/add/AudienceAddedEvent.d.ts.map +1 -1
  21. package/dist/domain/audiences/remove/AudienceRemovedEvent.d.ts +2 -1
  22. package/dist/domain/audiences/remove/AudienceRemovedEvent.d.ts.map +1 -1
  23. package/dist/domain/audiences/update/AudienceUpdatedEvent.d.ts +2 -2
  24. package/dist/domain/audiences/update/AudienceUpdatedEvent.d.ts.map +1 -1
  25. package/dist/domain/components/add/ComponentAddedEvent.d.ts +2 -2
  26. package/dist/domain/components/add/ComponentAddedEvent.d.ts.map +1 -1
  27. package/dist/domain/components/deprecate/ComponentDeprecatedEvent.d.ts +2 -2
  28. package/dist/domain/components/deprecate/ComponentDeprecatedEvent.d.ts.map +1 -1
  29. package/dist/domain/components/remove/ComponentRemovedEvent.d.ts +2 -2
  30. package/dist/domain/components/remove/ComponentRemovedEvent.d.ts.map +1 -1
  31. package/dist/domain/components/update/ComponentUpdatedEvent.d.ts +2 -2
  32. package/dist/domain/components/update/ComponentUpdatedEvent.d.ts.map +1 -1
  33. package/dist/domain/goals/unblock/GoalUnblockedEvent.d.ts +2 -2
  34. package/dist/domain/goals/unblock/GoalUnblockedEvent.d.ts.map +1 -1
  35. package/dist/domain/guidelines/add/GuidelineAddedEvent.d.ts +2 -2
  36. package/dist/domain/guidelines/add/GuidelineAddedEvent.d.ts.map +1 -1
  37. package/dist/domain/guidelines/remove/GuidelineRemovedEvent.d.ts +2 -1
  38. package/dist/domain/guidelines/remove/GuidelineRemovedEvent.d.ts.map +1 -1
  39. package/dist/domain/guidelines/update/GuidelineUpdatedEvent.d.ts +2 -2
  40. package/dist/domain/guidelines/update/GuidelineUpdatedEvent.d.ts.map +1 -1
  41. package/dist/domain/invariants/add/InvariantAddedEvent.d.ts +2 -1
  42. package/dist/domain/invariants/add/InvariantAddedEvent.d.ts.map +1 -1
  43. package/dist/domain/invariants/remove/InvariantRemovedEvent.d.ts +2 -1
  44. package/dist/domain/invariants/remove/InvariantRemovedEvent.d.ts.map +1 -1
  45. package/dist/domain/invariants/update/InvariantUpdatedEvent.d.ts +2 -1
  46. package/dist/domain/invariants/update/InvariantUpdatedEvent.d.ts.map +1 -1
  47. package/dist/domain/project/Constants.d.ts +7 -0
  48. package/dist/domain/project/Constants.d.ts.map +1 -1
  49. package/dist/domain/project/Constants.js +7 -0
  50. package/dist/domain/project/Constants.js.map +1 -1
  51. package/dist/domain/project/ProjectLifecyle.d.ts +7 -0
  52. package/dist/domain/project/ProjectLifecyle.d.ts.map +1 -0
  53. package/dist/domain/project/ProjectLifecyle.js +8 -0
  54. package/dist/domain/project/ProjectLifecyle.js.map +1 -0
  55. package/dist/domain/relations/Constants.d.ts +6 -0
  56. package/dist/domain/relations/Constants.d.ts.map +1 -1
  57. package/dist/domain/relations/Constants.js +6 -0
  58. package/dist/domain/relations/Constants.js.map +1 -1
  59. package/dist/domain/relations/Relation.d.ts +2 -2
  60. package/dist/domain/relations/Relation.d.ts.map +1 -1
  61. package/dist/domain/relations/Relation.js +10 -10
  62. package/dist/domain/relations/Relation.js.map +1 -1
  63. package/dist/domain/relations/add/RelationAddedEvent.d.ts +2 -2
  64. package/dist/domain/relations/add/RelationAddedEvent.d.ts.map +1 -1
  65. package/dist/domain/relations/remove/RelationRemovedEvent.d.ts +2 -2
  66. package/dist/domain/relations/remove/RelationRemovedEvent.d.ts.map +1 -1
  67. package/dist/domain/value-propositions/add/ValuePropositionAddedEvent.d.ts +2 -1
  68. package/dist/domain/value-propositions/add/ValuePropositionAddedEvent.d.ts.map +1 -1
  69. package/dist/domain/value-propositions/remove/ValuePropositionRemovedEvent.d.ts +2 -1
  70. package/dist/domain/value-propositions/remove/ValuePropositionRemovedEvent.d.ts.map +1 -1
  71. package/dist/domain/value-propositions/update/ValuePropositionUpdatedEvent.d.ts +2 -1
  72. package/dist/domain/value-propositions/update/ValuePropositionUpdatedEvent.d.ts.map +1 -1
  73. package/dist/infrastructure/agents/AgentCliGateway.d.ts.map +1 -1
  74. package/dist/infrastructure/agents/AgentCliGateway.js +30 -10
  75. package/dist/infrastructure/agents/AgentCliGateway.js.map +1 -1
  76. package/dist/infrastructure/context/project/init/CodexConfigurer.d.ts +19 -6
  77. package/dist/infrastructure/context/project/init/CodexConfigurer.d.ts.map +1 -1
  78. package/dist/infrastructure/context/project/init/CodexConfigurer.js +177 -9
  79. package/dist/infrastructure/context/project/init/CodexConfigurer.js.map +1 -1
  80. package/dist/presentation/tui/Constants.d.ts +18 -0
  81. package/dist/presentation/tui/Constants.d.ts.map +1 -0
  82. package/dist/presentation/tui/Constants.js +28 -0
  83. package/dist/presentation/tui/Constants.js.map +1 -0
  84. package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.d.ts +4 -10
  85. package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.d.ts.map +1 -1
  86. package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.js +17 -20
  87. package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.js.map +1 -1
  88. package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.d.ts +4 -0
  89. package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.d.ts.map +1 -0
  90. package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.js +9 -0
  91. package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.js.map +1 -0
  92. package/dist/presentation/tui/action-dispatch/TuiActionResult.d.ts +8 -0
  93. package/dist/presentation/tui/action-dispatch/TuiActionResult.d.ts.map +1 -0
  94. package/dist/presentation/tui/action-dispatch/TuiActionResult.js +2 -0
  95. package/dist/presentation/tui/action-dispatch/TuiActionResult.js.map +1 -0
  96. package/dist/presentation/tui/action-dispatch/TuiRequestController.d.ts +4 -0
  97. package/dist/presentation/tui/action-dispatch/TuiRequestController.d.ts.map +1 -0
  98. package/dist/presentation/tui/action-dispatch/TuiRequestController.js +2 -0
  99. package/dist/presentation/tui/action-dispatch/TuiRequestController.js.map +1 -0
  100. package/dist/presentation/tui/application-shell/Footer.d.ts +2 -6
  101. package/dist/presentation/tui/application-shell/Footer.d.ts.map +1 -1
  102. package/dist/presentation/tui/application-shell/Footer.js +16 -12
  103. package/dist/presentation/tui/application-shell/Footer.js.map +1 -1
  104. package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.d.ts +16 -0
  105. package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.d.ts.map +1 -0
  106. package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.js +10 -0
  107. package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.js.map +1 -0
  108. package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.d.ts +3 -0
  109. package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.d.ts.map +1 -0
  110. package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.js +4 -0
  111. package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.js.map +1 -0
  112. package/dist/presentation/tui/application-shell/Header.d.ts.map +1 -1
  113. package/dist/presentation/tui/application-shell/Header.js +4 -3
  114. package/dist/presentation/tui/application-shell/Header.js.map +1 -1
  115. package/dist/presentation/tui/application-shell/HeaderConstants.d.ts +6 -0
  116. package/dist/presentation/tui/application-shell/HeaderConstants.d.ts.map +1 -0
  117. package/dist/presentation/tui/application-shell/HeaderConstants.js +6 -0
  118. package/dist/presentation/tui/application-shell/HeaderConstants.js.map +1 -0
  119. package/dist/presentation/tui/application-shell/TuiApp.d.ts +1 -1
  120. package/dist/presentation/tui/application-shell/TuiApp.d.ts.map +1 -1
  121. package/dist/presentation/tui/application-shell/TuiApp.js +26 -23
  122. package/dist/presentation/tui/application-shell/TuiApp.js.map +1 -1
  123. package/dist/presentation/tui/application-shell/TuiAppConstants.d.ts +18 -0
  124. package/dist/presentation/tui/application-shell/TuiAppConstants.d.ts.map +1 -0
  125. package/dist/presentation/tui/application-shell/TuiAppConstants.js +18 -0
  126. package/dist/presentation/tui/application-shell/TuiAppConstants.js.map +1 -0
  127. package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.d.ts +6 -0
  128. package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.d.ts.map +1 -0
  129. package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.js +9 -0
  130. package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.js.map +1 -0
  131. package/dist/presentation/tui/billboard/AnimatedBillboard.d.ts.map +1 -1
  132. package/dist/presentation/tui/billboard/AnimatedBillboard.js +26 -100
  133. package/dist/presentation/tui/billboard/AnimatedBillboard.js.map +1 -1
  134. package/dist/presentation/tui/billboard/AnimatedBillboardPalette.d.ts +31 -0
  135. package/dist/presentation/tui/billboard/AnimatedBillboardPalette.d.ts.map +1 -0
  136. package/dist/presentation/tui/billboard/AnimatedBillboardPalette.js +54 -0
  137. package/dist/presentation/tui/billboard/AnimatedBillboardPalette.js.map +1 -0
  138. package/dist/presentation/tui/billboard/AnimatedBillboardPhase.d.ts +8 -0
  139. package/dist/presentation/tui/billboard/AnimatedBillboardPhase.d.ts.map +1 -0
  140. package/dist/presentation/tui/billboard/AnimatedBillboardPhase.js +7 -0
  141. package/dist/presentation/tui/billboard/AnimatedBillboardPhase.js.map +1 -0
  142. package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.d.ts +2 -0
  143. package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.d.ts.map +1 -0
  144. package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.js +17 -0
  145. package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.js.map +1 -0
  146. package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.d.ts +2 -0
  147. package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.d.ts.map +1 -0
  148. package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.js +10 -0
  149. package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.js.map +1 -0
  150. package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.d.ts +1 -2
  151. package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.d.ts.map +1 -1
  152. package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.js +4 -5
  153. package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.js.map +1 -1
  154. package/dist/presentation/tui/cockpit/CockpitDaemonEvents.d.ts.map +1 -1
  155. package/dist/presentation/tui/cockpit/CockpitDaemonEvents.js +23 -15
  156. package/dist/presentation/tui/cockpit/CockpitDaemonEvents.js.map +1 -1
  157. package/dist/presentation/tui/cockpit/CockpitDaemonFrames.d.ts +4 -4
  158. package/dist/presentation/tui/cockpit/CockpitDaemonFrames.d.ts.map +1 -1
  159. package/dist/presentation/tui/cockpit/CockpitDaemonFrames.js +5 -2
  160. package/dist/presentation/tui/cockpit/CockpitDaemonFrames.js.map +1 -1
  161. package/dist/presentation/tui/cockpit/CockpitDaemonPanel.d.ts +6 -17
  162. package/dist/presentation/tui/cockpit/CockpitDaemonPanel.d.ts.map +1 -1
  163. package/dist/presentation/tui/cockpit/CockpitDaemonPanel.js +20 -75
  164. package/dist/presentation/tui/cockpit/CockpitDaemonPanel.js.map +1 -1
  165. package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.d.ts +12 -0
  166. package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.d.ts.map +1 -0
  167. package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.js +12 -0
  168. package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.js.map +1 -0
  169. package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.d.ts +10 -0
  170. package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.d.ts.map +1 -0
  171. package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.js +2 -0
  172. package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.js.map +1 -0
  173. package/dist/presentation/tui/cockpit/CockpitGreeterCopy.d.ts +10 -0
  174. package/dist/presentation/tui/cockpit/CockpitGreeterCopy.d.ts.map +1 -0
  175. package/dist/presentation/tui/cockpit/CockpitGreeterCopy.js +14 -0
  176. package/dist/presentation/tui/cockpit/CockpitGreeterCopy.js.map +1 -0
  177. package/dist/presentation/tui/cockpit/CockpitGreeterView.d.ts.map +1 -1
  178. package/dist/presentation/tui/cockpit/CockpitGreeterView.js +3 -2
  179. package/dist/presentation/tui/cockpit/CockpitGreeterView.js.map +1 -1
  180. package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.d.ts +4 -0
  181. package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.d.ts.map +1 -0
  182. package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.js +4 -0
  183. package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.js.map +1 -0
  184. package/dist/presentation/tui/cockpit/CockpitLaunchpadView.d.ts.map +1 -1
  185. package/dist/presentation/tui/cockpit/CockpitLaunchpadView.js +45 -31
  186. package/dist/presentation/tui/cockpit/CockpitLaunchpadView.js.map +1 -1
  187. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.d.ts.map +1 -1
  188. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.js +5 -4
  189. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.js.map +1 -1
  190. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.d.ts +9 -0
  191. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.d.ts.map +1 -0
  192. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.js +12 -0
  193. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.js.map +1 -0
  194. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.d.ts +12 -0
  195. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.d.ts.map +1 -0
  196. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.js +16 -0
  197. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.js.map +1 -0
  198. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.d.ts.map +1 -1
  199. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.js +7 -6
  200. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.js.map +1 -1
  201. package/dist/presentation/tui/cockpit/CockpitScreen.d.ts +2 -1
  202. package/dist/presentation/tui/cockpit/CockpitScreen.d.ts.map +1 -1
  203. package/dist/presentation/tui/cockpit/CockpitScreen.js +23 -19
  204. package/dist/presentation/tui/cockpit/CockpitScreen.js.map +1 -1
  205. package/dist/presentation/tui/cockpit/CockpitScreenCopy.d.ts +7 -0
  206. package/dist/presentation/tui/cockpit/CockpitScreenCopy.d.ts.map +1 -0
  207. package/dist/presentation/tui/cockpit/CockpitScreenCopy.js +7 -0
  208. package/dist/presentation/tui/cockpit/CockpitScreenCopy.js.map +1 -0
  209. package/dist/presentation/tui/cockpit/CockpitScreenDefaults.d.ts +6 -0
  210. package/dist/presentation/tui/cockpit/CockpitScreenDefaults.d.ts.map +1 -0
  211. package/dist/presentation/tui/cockpit/CockpitScreenDefaults.js +6 -0
  212. package/dist/presentation/tui/cockpit/CockpitScreenDefaults.js.map +1 -0
  213. package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.d.ts +12 -0
  214. package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.d.ts.map +1 -0
  215. package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.js +16 -0
  216. package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.js.map +1 -0
  217. package/dist/presentation/tui/cockpit/CockpitUnprimedView.d.ts.map +1 -1
  218. package/dist/presentation/tui/cockpit/CockpitUnprimedView.js +8 -7
  219. package/dist/presentation/tui/cockpit/CockpitUnprimedView.js.map +1 -1
  220. package/dist/presentation/tui/cockpit/DaemonFrameViews.d.ts +17 -0
  221. package/dist/presentation/tui/cockpit/DaemonFrameViews.d.ts.map +1 -0
  222. package/dist/presentation/tui/cockpit/DaemonFrameViews.js +20 -0
  223. package/dist/presentation/tui/cockpit/DaemonFrameViews.js.map +1 -0
  224. package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.d.ts +4 -0
  225. package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.d.ts.map +1 -0
  226. package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.js +14 -0
  227. package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.js.map +1 -0
  228. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.d.ts +11 -0
  229. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.d.ts.map +1 -0
  230. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.js +15 -0
  231. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.js.map +1 -0
  232. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.d.ts +4 -0
  233. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.d.ts.map +1 -0
  234. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.js +7 -0
  235. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.js.map +1 -0
  236. package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.d.ts +11 -0
  237. package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.d.ts.map +1 -0
  238. package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.js +2 -0
  239. package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.js.map +1 -0
  240. package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.d.ts +11 -0
  241. package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.d.ts.map +1 -0
  242. package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.js +2 -0
  243. package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.js.map +1 -0
  244. package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.d.ts +7 -0
  245. package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.d.ts.map +1 -0
  246. package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.js +2 -0
  247. package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.js.map +1 -0
  248. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.d.ts +11 -0
  249. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.d.ts.map +1 -0
  250. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.js +15 -0
  251. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.js.map +1 -0
  252. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.d.ts +4 -0
  253. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.d.ts.map +1 -0
  254. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.js +7 -0
  255. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.js.map +1 -0
  256. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.d.ts +11 -0
  257. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.d.ts.map +1 -0
  258. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.js +16 -0
  259. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.js.map +1 -0
  260. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.d.ts +4 -0
  261. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.d.ts.map +1 -0
  262. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.js +7 -0
  263. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.js.map +1 -0
  264. package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.d.ts +10 -34
  265. package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.d.ts.map +1 -1
  266. package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.d.ts.map +1 -1
  267. package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.js +2 -1
  268. package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.js.map +1 -1
  269. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.d.ts +2 -7
  270. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.d.ts.map +1 -1
  271. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.js +2 -8
  272. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.js.map +1 -1
  273. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.d.ts +8 -0
  274. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.d.ts.map +1 -0
  275. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.js +6 -0
  276. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.js.map +1 -0
  277. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.d.ts +2 -0
  278. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.d.ts.map +1 -0
  279. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.js +2 -0
  280. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.js.map +1 -0
  281. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.d.ts +6 -0
  282. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.d.ts.map +1 -0
  283. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.js +2 -0
  284. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.js.map +1 -0
  285. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.d.ts +7 -0
  286. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.d.ts.map +1 -0
  287. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.js +8 -0
  288. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.js.map +1 -0
  289. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.d.ts +15 -0
  290. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.d.ts.map +1 -0
  291. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.js +2 -0
  292. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.js.map +1 -0
  293. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.d.ts +14 -0
  294. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.d.ts.map +1 -0
  295. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.js +13 -0
  296. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.js.map +1 -0
  297. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.d.ts +2 -0
  298. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.d.ts.map +1 -0
  299. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.js +2 -0
  300. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.js.map +1 -0
  301. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.d.ts +16 -0
  302. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.d.ts.map +1 -0
  303. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.js +16 -0
  304. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.js.map +1 -0
  305. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.d.ts.map +1 -1
  306. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.js +84 -42
  307. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.js.map +1 -1
  308. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.d.ts +17 -0
  309. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.d.ts.map +1 -0
  310. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.js +2 -0
  311. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.js.map +1 -0
  312. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.d.ts +7 -0
  313. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.d.ts.map +1 -0
  314. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.js +6 -0
  315. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.js.map +1 -0
  316. package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.d.ts +3 -0
  317. package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.d.ts.map +1 -0
  318. package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.js +6 -0
  319. package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.js.map +1 -0
  320. package/dist/presentation/tui/goals/Constants.d.ts +2 -0
  321. package/dist/presentation/tui/goals/Constants.d.ts.map +1 -0
  322. package/dist/presentation/tui/goals/Constants.js +2 -0
  323. package/dist/presentation/tui/goals/Constants.js.map +1 -0
  324. package/dist/presentation/tui/goals/GoalAuthoringFlow.d.ts.map +1 -1
  325. package/dist/presentation/tui/goals/GoalAuthoringFlow.js +80 -88
  326. package/dist/presentation/tui/goals/GoalAuthoringFlow.js.map +1 -1
  327. package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.d.ts +79 -0
  328. package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.d.ts.map +1 -0
  329. package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.js +84 -0
  330. package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.js.map +1 -0
  331. package/dist/presentation/tui/goals/GoalsScreen.d.ts.map +1 -1
  332. package/dist/presentation/tui/goals/GoalsScreen.js +49 -57
  333. package/dist/presentation/tui/goals/GoalsScreen.js.map +1 -1
  334. package/dist/presentation/tui/goals/GoalsScreenConstants.d.ts +33 -0
  335. package/dist/presentation/tui/goals/GoalsScreenConstants.d.ts.map +1 -0
  336. package/dist/presentation/tui/goals/GoalsScreenConstants.js +41 -0
  337. package/dist/presentation/tui/goals/GoalsScreenConstants.js.map +1 -0
  338. package/dist/presentation/tui/index.d.ts +4 -2
  339. package/dist/presentation/tui/index.d.ts.map +1 -1
  340. package/dist/presentation/tui/index.js +2 -1
  341. package/dist/presentation/tui/index.js.map +1 -1
  342. package/dist/presentation/tui/memory/MemoryScreen.d.ts.map +1 -1
  343. package/dist/presentation/tui/memory/MemoryScreen.js +10 -4
  344. package/dist/presentation/tui/memory/MemoryScreen.js.map +1 -1
  345. package/dist/presentation/tui/memory/components/ComponentsScreen.d.ts.map +1 -1
  346. package/dist/presentation/tui/memory/components/ComponentsScreen.js +5 -1
  347. package/dist/presentation/tui/memory/components/ComponentsScreen.js.map +1 -1
  348. package/dist/presentation/tui/memory/decisions/DecisionsScreen.d.ts.map +1 -1
  349. package/dist/presentation/tui/memory/decisions/DecisionsScreen.js +5 -1
  350. package/dist/presentation/tui/memory/decisions/DecisionsScreen.js.map +1 -1
  351. package/dist/presentation/tui/memory/dependencies/DependenciesScreen.d.ts.map +1 -1
  352. package/dist/presentation/tui/memory/dependencies/DependenciesScreen.js +5 -1
  353. package/dist/presentation/tui/memory/dependencies/DependenciesScreen.js.map +1 -1
  354. package/dist/presentation/tui/memory/entity-browser/EntityColumn.d.ts.map +1 -1
  355. package/dist/presentation/tui/memory/entity-browser/EntityColumn.js +4 -1
  356. package/dist/presentation/tui/memory/entity-browser/EntityColumn.js.map +1 -1
  357. package/dist/presentation/tui/memory/entity-browser/EntityDetailView.d.ts.map +1 -1
  358. package/dist/presentation/tui/memory/entity-browser/EntityDetailView.js +96 -40
  359. package/dist/presentation/tui/memory/entity-browser/EntityDetailView.js.map +1 -1
  360. package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.d.ts.map +1 -1
  361. package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.js +39 -12
  362. package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.js.map +1 -1
  363. package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.d.ts.map +1 -1
  364. package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.js +5 -1
  365. package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.js.map +1 -1
  366. package/dist/presentation/tui/memory/invariants/InvariantsScreen.d.ts.map +1 -1
  367. package/dist/presentation/tui/memory/invariants/InvariantsScreen.js +5 -1
  368. package/dist/presentation/tui/memory/invariants/InvariantsScreen.js.map +1 -1
  369. package/dist/presentation/tui/navigation/MegaMenu.d.ts.map +1 -1
  370. package/dist/presentation/tui/navigation/MegaMenu.js +19 -4
  371. package/dist/presentation/tui/navigation/MegaMenu.js.map +1 -1
  372. package/dist/presentation/tui/navigation/MegaMenuDefinitions.d.ts.map +1 -1
  373. package/dist/presentation/tui/navigation/MegaMenuDefinitions.js +101 -56
  374. package/dist/presentation/tui/navigation/MegaMenuDefinitions.js.map +1 -1
  375. package/dist/presentation/tui/navigation/ScreenRouter.d.ts.map +1 -1
  376. package/dist/presentation/tui/navigation/ScreenRouter.js +3 -2
  377. package/dist/presentation/tui/navigation/ScreenRouter.js.map +1 -1
  378. package/dist/presentation/tui/project-initialization/Constants.d.ts +140 -0
  379. package/dist/presentation/tui/project-initialization/Constants.d.ts.map +1 -0
  380. package/dist/presentation/tui/project-initialization/Constants.js +140 -0
  381. package/dist/presentation/tui/project-initialization/Constants.js.map +1 -0
  382. package/dist/presentation/tui/project-initialization/InitFlow.d.ts +1 -1
  383. package/dist/presentation/tui/project-initialization/InitFlow.d.ts.map +1 -1
  384. package/dist/presentation/tui/project-initialization/InitFlow.js +212 -191
  385. package/dist/presentation/tui/project-initialization/InitFlow.js.map +1 -1
  386. package/dist/presentation/tui/sessions/SessionScreen.d.ts.map +1 -1
  387. package/dist/presentation/tui/sessions/SessionScreen.js +53 -12
  388. package/dist/presentation/tui/sessions/SessionScreen.js.map +1 -1
  389. package/dist/presentation/tui/state-reading/TuiStateReader.d.ts.map +1 -1
  390. package/dist/presentation/tui/state-reading/TuiStateReader.js +4 -2
  391. package/dist/presentation/tui/state-reading/TuiStateReader.js.map +1 -1
  392. package/dist/presentation/tui/ui-primitives/ListPanel.d.ts.map +1 -1
  393. package/dist/presentation/tui/ui-primitives/ListPanel.js +2 -1
  394. package/dist/presentation/tui/ui-primitives/ListPanel.js.map +1 -1
  395. package/dist/presentation/tui/ui-primitives/ListPanelConstants.d.ts +4 -0
  396. package/dist/presentation/tui/ui-primitives/ListPanelConstants.d.ts.map +1 -0
  397. package/dist/presentation/tui/ui-primitives/ListPanelConstants.js +4 -0
  398. package/dist/presentation/tui/ui-primitives/ListPanelConstants.js.map +1 -0
  399. package/dist/presentation/tui/ui-primitives/Tumbler.d.ts.map +1 -1
  400. package/dist/presentation/tui/ui-primitives/Tumbler.js +2 -1
  401. package/dist/presentation/tui/ui-primitives/Tumbler.js.map +1 -1
  402. package/dist/presentation/tui/ui-primitives/TumblerConstants.d.ts +4 -0
  403. package/dist/presentation/tui/ui-primitives/TumblerConstants.d.ts.map +1 -0
  404. package/dist/presentation/tui/ui-primitives/TumblerConstants.js +4 -0
  405. package/dist/presentation/tui/ui-primitives/TumblerConstants.js.map +1 -0
  406. package/dist/presentation/tui/wizard/Wizard.d.ts +2 -1
  407. package/dist/presentation/tui/wizard/Wizard.d.ts.map +1 -1
  408. package/dist/presentation/tui/wizard/Wizard.js +47 -20
  409. package/dist/presentation/tui/wizard/Wizard.js.map +1 -1
  410. package/dist/presentation/tui/wizard/WizardConstants.d.ts +27 -0
  411. package/dist/presentation/tui/wizard/WizardConstants.d.ts.map +1 -0
  412. package/dist/presentation/tui/wizard/WizardConstants.js +26 -0
  413. package/dist/presentation/tui/wizard/WizardConstants.js.map +1 -0
  414. package/dist/presentation/work/codifier.daemon.d.ts.map +1 -1
  415. package/dist/presentation/work/codifier.daemon.js +20 -1
  416. package/dist/presentation/work/codifier.daemon.js.map +1 -1
  417. package/dist/presentation/work/refiner.daemon.d.ts.map +1 -1
  418. package/dist/presentation/work/refiner.daemon.js +20 -1
  419. package/dist/presentation/work/refiner.daemon.js.map +1 -1
  420. package/dist/presentation/work/reviewer.daemon.d.ts.map +1 -1
  421. package/dist/presentation/work/reviewer.daemon.js +20 -1
  422. package/dist/presentation/work/reviewer.daemon.js.map +1 -1
  423. package/package.json +1 -1
@@ -2,14 +2,17 @@
2
2
  * Infrastructure: OpenAI Codex Configurer
3
3
  *
4
4
  * Encapsulates all knowledge about OpenAI Codex configuration:
5
+ * - .codex/hooks.json with Codex lifecycle hooks
5
6
  * - Skills distributed to .codex/skills
6
7
  *
7
8
  * Codex reads AGENTS.md natively, so no instruction file is needed.
8
- * Codex does not support lifecycle hooks, so configuration is
9
- * limited to skill distribution.
9
+ * Codex hooks parse JSON stdout as hook-control envelopes, so Jumbo
10
+ * lifecycle commands use text output to avoid parser conflicts.
10
11
  *
11
12
  * Operations are idempotent and gracefully handle errors.
12
13
  */
14
+ import path from "path";
15
+ import fs from "fs-extra";
13
16
  export class CodexConfigurer {
14
17
  constructor() {
15
18
  this.agent = {
@@ -20,20 +23,185 @@ export class CodexConfigurer {
20
23
  }
21
24
  /**
22
25
  * Configure all OpenAI Codex requirements for Jumbo.
23
- * Codex reads AGENTS.md natively and has no hook system,
24
- * so no additional configuration files are needed.
26
+ * Codex reads AGENTS.md natively; lifecycle hooks are configured
27
+ * separately in .codex/hooks.json.
25
28
  *
26
29
  * @param projectRoot Absolute path to project root directory
27
30
  */
28
- async configure(_projectRoot) {
29
- // Codex reads AGENTS.md natively - no additional files needed.
30
- // Skills are installed by AgentFileProtocol via skillPlatforms.
31
+ async configure(projectRoot) {
32
+ await this.ensureCodexHooks(projectRoot);
33
+ }
34
+ /**
35
+ * Repair Codex configuration by replacing stale Jumbo hook commands.
36
+ */
37
+ async repair(projectRoot) {
38
+ await this.ensureCodexHooks(projectRoot);
39
+ }
40
+ async ensureCodexHooks(projectRoot) {
41
+ try {
42
+ const hooksPath = path.join(projectRoot, ".codex", "hooks.json");
43
+ await fs.ensureDir(path.join(projectRoot, ".codex"));
44
+ const exists = await fs.pathExists(hooksPath);
45
+ if (!exists) {
46
+ await fs.writeFile(hooksPath, JSON.stringify(this.getJumboHooks(), null, 2) + "\n", "utf-8");
47
+ return;
48
+ }
49
+ const existingContent = await fs.readFile(hooksPath, "utf-8");
50
+ let existingHooks = {};
51
+ if (existingContent.trim()) {
52
+ try {
53
+ existingHooks = JSON.parse(existingContent);
54
+ }
55
+ catch {
56
+ await fs.writeFile(hooksPath, JSON.stringify(this.getJumboHooks(), null, 2) + "\n", "utf-8");
57
+ return;
58
+ }
59
+ }
60
+ const normalizedExistingHooks = this.removeStaleJumboHooks(existingHooks);
61
+ const mergedHooks = this.mergeHooks(normalizedExistingHooks, this.getJumboHooks());
62
+ await fs.writeFile(hooksPath, JSON.stringify(mergedHooks, null, 2) + "\n", "utf-8");
63
+ }
64
+ catch (error) {
65
+ console.warn(`Warning: Failed to configure Codex hooks: ${error instanceof Error ? error.message : String(error)}`);
66
+ }
67
+ }
68
+ getJumboHooks() {
69
+ return {
70
+ hooks: {
71
+ PreCompact: [
72
+ {
73
+ matcher: "auto",
74
+ hooks: [
75
+ {
76
+ type: "command",
77
+ command: "jumbo work pause --format text",
78
+ },
79
+ ],
80
+ },
81
+ ],
82
+ SessionStart: [
83
+ {
84
+ matcher: "startup",
85
+ hooks: [
86
+ {
87
+ type: "command",
88
+ command: "jumbo session start --format text",
89
+ },
90
+ ],
91
+ },
92
+ {
93
+ matcher: "compact",
94
+ hooks: [
95
+ {
96
+ type: "command",
97
+ command: "jumbo work resume --format text",
98
+ },
99
+ ],
100
+ },
101
+ ],
102
+ },
103
+ };
104
+ }
105
+ mergeHooks(existing, jumbo) {
106
+ const result = { ...existing };
107
+ result.hooks = result.hooks ?? {};
108
+ for (const [eventName, matcherGroups] of Object.entries(jumbo.hooks ?? {})) {
109
+ const existingGroups = Array.isArray(result.hooks[eventName]) ? result.hooks[eventName] : [];
110
+ result.hooks[eventName] = this.mergeMatcherGroups(existingGroups, matcherGroups);
111
+ }
112
+ return result;
113
+ }
114
+ mergeMatcherGroups(existing, additions) {
115
+ const merged = [...existing];
116
+ for (const addition of additions) {
117
+ const existingIndex = merged.findIndex((entry) => entry?.matcher === addition.matcher);
118
+ if (existingIndex >= 0) {
119
+ merged[existingIndex] = {
120
+ ...merged[existingIndex],
121
+ hooks: this.mergeHookArray(Array.isArray(merged[existingIndex].hooks) ? merged[existingIndex].hooks : [], addition.hooks),
122
+ };
123
+ }
124
+ else {
125
+ merged.push(addition);
126
+ }
127
+ }
128
+ return merged;
129
+ }
130
+ mergeHookArray(existing, additions) {
131
+ const merged = [...existing];
132
+ const existingKeys = new Set(existing.map((hook) => JSON.stringify(hook)));
133
+ for (const addition of additions) {
134
+ const additionKey = JSON.stringify(addition);
135
+ if (!existingKeys.has(additionKey)) {
136
+ merged.push(addition);
137
+ existingKeys.add(additionKey);
138
+ }
139
+ }
140
+ return merged;
141
+ }
142
+ removeStaleJumboHooks(existing) {
143
+ if (!existing || typeof existing !== "object") {
144
+ return {};
145
+ }
146
+ const result = { ...existing };
147
+ const rawHooks = existing.hooks;
148
+ if (!rawHooks || typeof rawHooks !== "object") {
149
+ return result;
150
+ }
151
+ const normalizedHooks = {};
152
+ for (const [eventName, matcherGroups] of Object.entries(rawHooks)) {
153
+ if (!Array.isArray(matcherGroups)) {
154
+ continue;
155
+ }
156
+ const normalizedGroups = matcherGroups
157
+ .map((matcherGroup) => this.removeStaleJumboHooksFromMatcher(matcherGroup))
158
+ .filter((matcherGroup) => matcherGroup !== null);
159
+ if (normalizedGroups.length > 0) {
160
+ normalizedHooks[eventName] = normalizedGroups;
161
+ }
162
+ }
163
+ result.hooks = normalizedHooks;
164
+ return result;
165
+ }
166
+ removeStaleJumboHooksFromMatcher(matcherGroup) {
167
+ if (!matcherGroup || typeof matcherGroup !== "object") {
168
+ return null;
169
+ }
170
+ const candidate = matcherGroup;
171
+ const hooks = Array.isArray(candidate.hooks) ? candidate.hooks : [];
172
+ const nonJumboHooks = hooks.filter((hook) => !this.isJumboLifecycleHook(hook));
173
+ if (nonJumboHooks.length === 0) {
174
+ return null;
175
+ }
176
+ return {
177
+ ...candidate,
178
+ hooks: nonJumboHooks,
179
+ };
180
+ }
181
+ isJumboLifecycleHook(hook) {
182
+ if (!hook || typeof hook !== "object") {
183
+ return false;
184
+ }
185
+ const command = hook.command;
186
+ return (command === "jumbo session start" ||
187
+ command === "jumbo session start --format text" ||
188
+ command === "jumbo work resume" ||
189
+ command === "jumbo work resume --format text" ||
190
+ command === "jumbo work pause" ||
191
+ command === "jumbo work pause --format text");
31
192
  }
32
193
  /**
33
194
  * Return what changes this configurer will make without executing.
34
195
  */
35
- async getPlannedFileChanges(_projectRoot) {
36
- return [];
196
+ async getPlannedFileChanges(projectRoot) {
197
+ const hooksPath = path.join(projectRoot, ".codex", "hooks.json");
198
+ return [
199
+ {
200
+ path: ".codex/hooks.json",
201
+ action: (await fs.pathExists(hooksPath)) ? "modify" : "create",
202
+ description: "Add Codex lifecycle hooks using text-mode Jumbo output",
203
+ },
204
+ ];
37
205
  }
38
206
  }
39
207
  //# sourceMappingURL=CodexConfigurer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CodexConfigurer.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CodexConfigurer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,MAAM,OAAO,eAAe;IAA5B;QACW,UAAK,GAAG;YACf,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;SACL,CAAC;QAEF,mBAAc,GAAG,CAAC,eAAe,CAAU,CAAC;IAoBvD,CAAC;IAlBC;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,CAAC,YAAoB;QAClC,+DAA+D;QAC/D,gEAAgE;IAClE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,qBAAqB,CAAC,YAAoB;QAC9C,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"}
1
+ {"version":3,"file":"CodexConfigurer.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CodexConfigurer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,UAAU,CAAC;AAI1B,MAAM,OAAO,eAAe;IAA5B;QACW,UAAK,GAAG;YACf,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;SACL,CAAC;QAEF,mBAAc,GAAG,CAAC,eAAe,CAAU,CAAC;IA2NvD,CAAC;IAzNC;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,CAAC,WAAmB;QACjC,MAAM,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAC3C,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qB,CAAC,WAAmB;QAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;QAEjE,OAAO;YACL;gBACE,IAAI,EAAE,mBAAmB;gBACzB,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;gBAC9D,WAAW,EAAE,wDAAwD;aACtE;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,18 @@
1
+ export declare const TuiConstants: {
2
+ readonly Screens: {
3
+ readonly Cockpit: {
4
+ readonly Key: "cockpit";
5
+ readonly Label: "Cockpit";
6
+ };
7
+ readonly Goals: {
8
+ readonly Key: "goals";
9
+ readonly Label: "Goals";
10
+ };
11
+ readonly Memory: {
12
+ readonly Key: "memory";
13
+ readonly Label: "Memory";
14
+ };
15
+ };
16
+ readonly KeyBindings: {};
17
+ };
18
+ //# sourceMappingURL=Constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/presentation/tui/Constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;CA2Bf,CAAC"}
@@ -0,0 +1,28 @@
1
+ // Constants.ts
2
+ export const TuiConstants = {
3
+ Screens: {
4
+ /*
5
+ The operational dashboard for users.
6
+ */
7
+ Cockpit: {
8
+ Key: "cockpit",
9
+ Label: "Cockpit"
10
+ },
11
+ /*
12
+ Overview, and management, of goal backlog.
13
+ */
14
+ Goals: {
15
+ Key: "goals",
16
+ Label: "Goals"
17
+ },
18
+ /*
19
+ Overview, and management, of memories.
20
+ */
21
+ Memory: {
22
+ Key: "memory",
23
+ Label: "Memory"
24
+ }
25
+ },
26
+ KeyBindings: {}
27
+ };
28
+ //# sourceMappingURL=Constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../../src/presentation/tui/Constants.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE;QACP;;UAEE;QACF,OAAO,EAAE;YACL,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,SAAS;SACnB;QACD;;UAEE;QACF,KAAK,EAAE;YACH,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,OAAO;SACjB;QACD;;UAEE;QACF,MAAM,EAAE;YACJ,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;SAClB;KACF;IACD,WAAW,EAAE,EAEZ;CACO,CAAC"}
@@ -1,12 +1,6 @@
1
- export interface TuiRequestController<TRequest, TResponse> {
2
- handle(request: TRequest): Promise<TResponse>;
3
- }
4
- export type TuiActionResult<TResponse> = {
5
- readonly ok: true;
6
- readonly response: TResponse;
7
- } | {
8
- readonly ok: false;
9
- readonly error: Error;
1
+ import type { TuiActionResult } from "./TuiActionResult.js";
2
+ import type { TuiRequestController } from "./TuiRequestController.js";
3
+ export declare const TuiActionDispatcher: {
4
+ readonly dispatch: <TRequest, TResponse>(controller: TuiRequestController<TRequest, TResponse>, request: TRequest) => Promise<TuiActionResult<TResponse>>;
10
5
  };
11
- export declare function dispatchTuiAction<TRequest, TResponse>(controller: TuiRequestController<TRequest, TResponse>, request: TRequest): Promise<TuiActionResult<TResponse>>;
12
6
  //# sourceMappingURL=TuiActionDispatcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TuiActionDispatcher.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiActionDispatcher.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB,CAAC,QAAQ,EAAE,SAAS;IACvD,MAAM,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAC/C;AAED,MAAM,MAAM,eAAe,CAAC,SAAS,IACjC;IACE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B,GACD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;CACvB,CAAC;AAEN,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,SAAS,EACzD,UAAU,EAAE,oBAAoB,CAAC,QAAQ,EAAE,SAAS,CAAC,EACrD,OAAO,EAAE,QAAQ,GAChB,OAAO,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAYrC"}
1
+ {"version":3,"file":"TuiActionDispatcher.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiActionDispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,eAAO,MAAM,mBAAmB;wBACf,QAAQ,EAAE,SAAS,cACpB,oBAAoB,CAAC,QAAQ,EAAE,SAAS,CAAC,WAC5C,QAAQ,KAChB,OAAO,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;CAa9B,CAAC"}
@@ -1,21 +1,18 @@
1
- export async function dispatchTuiAction(controller, request) {
2
- try {
3
- return {
4
- ok: true,
5
- response: await controller.handle(request),
6
- };
7
- }
8
- catch (caughtError) {
9
- return {
10
- ok: false,
11
- error: toError(caughtError),
12
- };
13
- }
14
- }
15
- function toError(caughtError) {
16
- if (caughtError instanceof Error) {
17
- return caughtError;
18
- }
19
- return new Error(String(caughtError));
20
- }
1
+ import { TuiActionErrorNormalizer } from "./TuiActionErrorNormalizer.js";
2
+ export const TuiActionDispatcher = {
3
+ async dispatch(controller, request) {
4
+ try {
5
+ return {
6
+ ok: true,
7
+ response: await controller.handle(request),
8
+ };
9
+ }
10
+ catch (caughtError) {
11
+ return {
12
+ ok: false,
13
+ error: TuiActionErrorNormalizer.normalize(caughtError),
14
+ };
15
+ }
16
+ },
17
+ };
21
18
  //# sourceMappingURL=TuiActionDispatcher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TuiActionDispatcher.js","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiActionDispatcher.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,UAAqD,EACrD,OAAiB;IAEjB,IAAI,CAAC;QACH,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,MAAM,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;SAC3C,CAAC;IACJ,CAAC;IAAC,OAAO,WAAW,EAAE,CAAC;QACrB,OAAO;YACL,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC;SAC5B,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAS,OAAO,CAAC,WAAoB;IACnC,IAAI,WAAW,YAAY,KAAK,EAAE,CAAC;QACjC,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AACxC,CAAC"}
1
+ {"version":3,"file":"TuiActionDispatcher.js","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiActionDispatcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,KAAK,CAAC,QAAQ,CACZ,UAAqD,EACrD,OAAiB;QAEjB,IAAI,CAAC;YACH,OAAO;gBACL,EAAE,EAAE,IAAI;gBACR,QAAQ,EAAE,MAAM,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;aAC3C,CAAC;QACJ,CAAC;QAAC,OAAO,WAAW,EAAE,CAAC;YACrB,OAAO;gBACL,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE,wBAAwB,CAAC,SAAS,CAAC,WAAW,CAAC;aACvD,CAAC;QACJ,CAAC;IACH,CAAC;CACO,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const TuiActionErrorNormalizer: {
2
+ readonly normalize: (caughtError: unknown) => Error;
3
+ };
4
+ //# sourceMappingURL=TuiActionErrorNormalizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TuiActionErrorNormalizer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiActionErrorNormalizer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;sCACZ,OAAO,KAAG,KAAK;CAO9B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const TuiActionErrorNormalizer = {
2
+ normalize(caughtError) {
3
+ if (caughtError instanceof Error) {
4
+ return caughtError;
5
+ }
6
+ return new Error(String(caughtError));
7
+ },
8
+ };
9
+ //# sourceMappingURL=TuiActionErrorNormalizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TuiActionErrorNormalizer.js","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiActionErrorNormalizer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,SAAS,CAAC,WAAoB;QAC5B,IAAI,WAAW,YAAY,KAAK,EAAE,CAAC;YACjC,OAAO,WAAW,CAAC;QACrB,CAAC;QAED,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IACxC,CAAC;CACO,CAAC"}
@@ -0,0 +1,8 @@
1
+ export type TuiActionResult<TResponse> = {
2
+ readonly ok: true;
3
+ readonly response: TResponse;
4
+ } | {
5
+ readonly ok: false;
6
+ readonly error: Error;
7
+ };
8
+ //# sourceMappingURL=TuiActionResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TuiActionResult.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiActionResult.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CAAC,SAAS,IACjC;IACE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B,GACD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;CACvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TuiActionResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TuiActionResult.js","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiActionResult.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface TuiRequestController<TRequest, TResponse> {
2
+ handle(request: TRequest): Promise<TResponse>;
3
+ }
4
+ //# sourceMappingURL=TuiRequestController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TuiRequestController.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiRequestController.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB,CAAC,QAAQ,EAAE,SAAS;IACvD,MAAM,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAC/C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TuiRequestController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TuiRequestController.js","sourceRoot":"","sources":["../../../../src/presentation/tui/action-dispatch/TuiRequestController.ts"],"names":[],"mappings":""}
@@ -1,16 +1,12 @@
1
1
  import React from "react";
2
2
  import type { NotificationDrawerNotification } from "./NotificationDrawer.js";
3
+ import { type FooterContextualShortcutDescriptor } from "./FooterShortcutDescriptor.js";
3
4
  interface FooterProps {
4
5
  terminalWidth: number;
5
6
  shortcutsEnabled?: boolean;
6
- contextualShortcuts?: readonly FooterShortcut[];
7
+ contextualShortcuts?: readonly FooterContextualShortcutDescriptor[];
7
8
  notifications?: readonly NotificationDrawerNotification[];
8
9
  }
9
- interface FooterShortcut {
10
- readonly char: string;
11
- readonly label: string;
12
- }
13
- export declare const NOTIFICATION_NOTIFIER_COLOR: "#ffcc00";
14
10
  export declare function Footer({ terminalWidth, shortcutsEnabled, contextualShortcuts, notifications, }: FooterProps): React.ReactElement;
15
11
  export {};
16
12
  //# sourceMappingURL=Footer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAE9E,UAAU,WAAW;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;IAChD,aAAa,CAAC,EAAE,SAAS,8BAA8B,EAAE,CAAC;CAC3D;AAED,UAAU,cAAc;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,2BAA2B,WAAyB,CAAC;AAElE,wBAAgB,MAAM,CAAC,EACrB,aAAa,EACb,gBAAuB,EACvB,mBAAwB,EACxB,aAAkB,GACnB,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CA+DlC"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,+BAA+B,CAAC;AAOvC,UAAU,WAAW;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,SAAS,kCAAkC,EAAE,CAAC;IACpE,aAAa,CAAC,EAAE,SAAS,8BAA8B,EAAE,CAAC;CAC3D;AAED,wBAAgB,MAAM,CAAC,EACrB,aAAa,EACb,gBAAuB,EACvB,mBAAwB,EACxB,aAAkB,GACnB,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CAiElC"}
@@ -3,34 +3,38 @@ import { Box, Text, useInput } from "ink";
3
3
  import { BaseColors, TuiGlyphs } from "../../shared/DesignTokens.js";
4
4
  import { KeyBadge } from "../ui-primitives/KeyBadge.js";
5
5
  import { NotificationDrawer } from "./NotificationDrawer.js";
6
- export const NOTIFICATION_NOTIFIER_COLOR = BaseColors.brandYellow;
6
+ import { FooterShortcut, } from "./FooterShortcutDescriptor.js";
7
+ import { FooterUnreadNotificationCounter } from "./FooterUnreadNotificationCounter.js";
8
+ import { useFooterNotificationDismissal } from "./useFooterNotificationDismissal.js";
9
+ const FOOTER_NOTIFICATION_COUNTER_COLOR = BaseColors.brandYellow;
10
+ const FOOTER_NOTIFICATION_COUNT_COPY = "notifications";
7
11
  export function Footer({ terminalWidth, shortcutsEnabled = true, contextualShortcuts = [], notifications = [], }) {
8
12
  const [notificationDrawerOpen, setNotificationDrawerOpen] = useState(false);
9
- const [dismissedNotificationIds, setDismissedNotificationIds] = useState([]);
10
- const visibleNotifications = useMemo(() => notifications.filter((notification) => !dismissedNotificationIds.includes(notification.id)), [dismissedNotificationIds, notifications]);
11
- const unreadNotificationCount = visibleNotifications.filter((notification) => notification.unread).length;
13
+ const { dismissedNotificationIds, handleDismissNotification } = useFooterNotificationDismissal();
14
+ const visibleNotifications = useMemo(() => notifications.filter((notification) => !dismissedNotificationIds.includes(notification.id)), [notifications, dismissedNotificationIds]);
15
+ const unreadNotificationCount = FooterUnreadNotificationCounter(visibleNotifications);
12
16
  useInput((input) => {
13
17
  if (!shortcutsEnabled) {
14
18
  return;
15
19
  }
16
- if (input === "n" || input === "N") {
20
+ if (input === FooterShortcut.NOTIFICATIONS.char ||
21
+ input === FooterShortcut.NOTIFICATIONS.char.toUpperCase()) {
17
22
  setNotificationDrawerOpen((isOpen) => !isOpen);
18
23
  }
19
24
  });
20
- const handleDismissNotification = (id) => {
21
- setDismissedNotificationIds((previous) => [...previous, id]);
22
- };
23
25
  return (React.createElement(Box, { flexDirection: "column", width: terminalWidth },
24
26
  notificationDrawerOpen && (React.createElement(NotificationDrawer, { notifications: visibleNotifications, onDismiss: handleDismissNotification, onClose: () => setNotificationDrawerOpen(false), terminalWidth: terminalWidth })),
25
27
  React.createElement(Box, { justifyContent: "space-between", paddingX: 1 },
26
28
  React.createElement(Box, { gap: 2 },
27
- React.createElement(KeyBadge, { char: "q", label: "quit" }),
29
+ React.createElement(KeyBadge, { char: FooterShortcut.QUIT.char, label: FooterShortcut.QUIT.label }),
28
30
  contextualShortcuts.map((shortcut) => (React.createElement(KeyBadge, { key: `${shortcut.char}-${shortcut.label}`, char: shortcut.char, label: shortcut.label })))),
29
31
  unreadNotificationCount > 0 && (React.createElement(Box, { alignItems: "center", gap: 1 },
30
- React.createElement(KeyBadge, { char: "n" }),
31
- React.createElement(Text, { color: NOTIFICATION_NOTIFIER_COLOR },
32
+ React.createElement(KeyBadge, { char: FooterShortcut.NOTIFICATIONS.char }),
33
+ React.createElement(Text, { color: FOOTER_NOTIFICATION_COUNTER_COLOR },
32
34
  TuiGlyphs.filledCircle,
33
- " notifications (",
35
+ " ",
36
+ FOOTER_NOTIFICATION_COUNT_COPY,
37
+ " (",
34
38
  unreadNotificationCount,
35
39
  ")"))))));
36
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAA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,8BAA8B;;oBACvD,uBAAuB;wBACnB,CACH,CACP,CACG,CACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ export interface FooterShortcutDescriptor {
2
+ readonly char: string;
3
+ }
4
+ export interface FooterContextualShortcutDescriptor extends FooterShortcutDescriptor {
5
+ readonly label: string;
6
+ }
7
+ export declare const FooterShortcut: {
8
+ readonly QUIT: {
9
+ readonly char: "q";
10
+ readonly label: "quit";
11
+ };
12
+ readonly NOTIFICATIONS: {
13
+ readonly char: "n";
14
+ };
15
+ };
16
+ //# sourceMappingURL=FooterShortcutDescriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterShortcutDescriptor.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/FooterShortcutDescriptor.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kCAAmC,SAAQ,wBAAwB;IAClF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,cAAc;;;;;;;;CAQuE,CAAC"}
@@ -0,0 +1,10 @@
1
+ export const FooterShortcut = {
2
+ QUIT: {
3
+ char: "q",
4
+ label: "quit",
5
+ },
6
+ NOTIFICATIONS: {
7
+ char: "n",
8
+ },
9
+ };
10
+ //# sourceMappingURL=FooterShortcutDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterShortcutDescriptor.js","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/FooterShortcutDescriptor.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,GAAG;QACT,KAAK,EAAE,MAAM;KACd;IACD,aAAa,EAAE;QACb,IAAI,EAAE,GAAG;KACV;CAC+F,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { NotificationDrawerNotification } from "./NotificationDrawer.js";
2
+ export declare function FooterUnreadNotificationCounter(notifications: readonly NotificationDrawerNotification[]): number;
3
+ //# sourceMappingURL=FooterUnreadNotificationCounter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterUnreadNotificationCounter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/FooterUnreadNotificationCounter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAE9E,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,SAAS,8BAA8B,EAAE,GACvD,MAAM,CAER"}
@@ -0,0 +1,4 @@
1
+ export function FooterUnreadNotificationCounter(notifications) {
2
+ return notifications.filter((notification) => notification.unread).length;
3
+ }
4
+ //# sourceMappingURL=FooterUnreadNotificationCounter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterUnreadNotificationCounter.js","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/FooterUnreadNotificationCounter.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,+BAA+B,CAC7C,aAAwD;IAExD,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;AAC5E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,WAAW;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,MAAM,CAAC,EACrB,WAAW,EACX,aAAa,EACb,OAAO,EACP,aAAa,GACd,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CAiClC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,UAAU,WAAW;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,MAAM,CAAC,EACrB,WAAW,EACX,aAAa,EACb,OAAO,EACP,aAAa,GACd,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CAiClC"}
@@ -1,9 +1,10 @@
1
1
  import React from "react";
2
2
  import { Box, Text } from "ink";
3
3
  import { BaseColors, SemanticColors } from "../../shared/DesignTokens.js";
4
+ import { HeaderCopy, PATH_TRUNCATION_MARKER, VERSION_PREFIX, } from "./HeaderConstants.js";
4
5
  export function Header({ projectName, directoryPath, version, terminalWidth, }) {
5
- const versionText = `v${version}`;
6
- const versionLabelText = `Jumbo ● ${versionText}`;
6
+ const versionText = `${VERSION_PREFIX}${version}`;
7
+ const versionLabelText = `${HeaderCopy.productName} ● ${versionText}`;
7
8
  const displayedDirectoryPath = fitDirectoryPath({
8
9
  directoryPath,
9
10
  projectName,
@@ -39,6 +40,6 @@ function fitDirectoryPath({ directoryPath, projectName, terminalWidth, versionLa
39
40
  if (availablePathWidth <= 3) {
40
41
  return directoryPath.slice(0, availablePathWidth);
41
42
  }
42
- return `${directoryPath.slice(0, availablePathWidth - 3)}...`;
43
+ return `${directoryPath.slice(0, availablePathWidth - PATH_TRUNCATION_MARKER.length)}${PATH_TRUNCATION_MARKER}`;
43
44
  }
44
45
  //# sourceMappingURL=Header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,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AM;QAClB,oBAAoB;QACpB,gBAAgB,CAAC,MAAM,CAAC;IAE1B,IAAI,kBAAkB,IAAI,CAAC,EAAE,CAAC;QAC5B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,aAAa,CAAC,MAAM,IAAI,kBAAkB,EAAE,CAAC;QAC/C,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,IAAI,kBAAkB,IAAI,CAAC,EAAE,CAAC;QAC5B,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC;IACpD,CAAC;IAED,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC;AAChE,CAAC"}
1
+ {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAa,MAAM,8BAA8B,CAAC;AACrF,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAS9B,MAAM,UAAU,MAAM,CAAC,EACrB,WAAW,EACX,aAAa,EACb,OAAO,EACP,aAAa,GACD;IACZ,MAAM,WAAW,GAAG,GAAG,cAAc,GAAG,OAAO,EAAE,CAAC;IAClD,MAAM,gBAAgB,GAAG,GAAG,UAAU,CAAC,WAAW,MAAM,WAAW,EAAE,CAAC;IACtE,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;QAC9C,aAAa;QACb,WAAW;QACX,aAAa;QACb,gBAAgB;KACjB,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,KAAK,EAAE,aAAa;QAC9C,oBAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,QAAQ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+1,6 @@
1
+ export declare const HeaderCopy: {
2
+ readonly productName: "Jumbo";
3
+ };
4
+ export declare const VERSION_PREFIX = "v";
5
+ export declare const PATH_TRUNCATION_MARKER = "...";
6
+ //# sourceMappingURL=HeaderConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderConstants.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/application-shell/HeaderConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;CAEb,CAAC;AAEX,eAAO,MAAM,cAAc,MAAM,CAAC;AAClC,eAAO,MAAM,sBAAsB,QAAQ,CAAC"}