jumbo-cli 3.1.0 → 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 (867) hide show
  1. package/README.md +3 -3
  2. package/assets/skills/codify-jumbo-goal/SKILL.md +0 -6
  3. package/assets/skills/define-jumbo-goals/SKILL.md +24 -25
  4. package/assets/skills/jumbo-add-component/SKILL.md +9 -0
  5. package/assets/skills/jumbo-add-decision/SKILL.md +9 -0
  6. package/assets/skills/jumbo-add-dependency/SKILL.md +9 -0
  7. package/assets/skills/jumbo-add-guideline/SKILL.md +9 -0
  8. package/assets/skills/jumbo-add-invariant/SKILL.md +9 -0
  9. package/assets/skills/jumbo-design-goal/SKILL.md +1 -1
  10. package/assets/skills/refine-jumbo-goals/SKILL.md +4 -4
  11. package/dist/application/agents/AgentInvocation.d.ts +10 -0
  12. package/dist/application/agents/AgentInvocation.d.ts.map +1 -0
  13. package/dist/application/agents/AgentInvocation.js +2 -0
  14. package/dist/application/agents/AgentInvocation.js.map +1 -0
  15. package/dist/application/agents/IAgentGateway.d.ts +5 -0
  16. package/dist/application/agents/IAgentGateway.d.ts.map +1 -0
  17. package/dist/application/agents/IAgentGateway.js +2 -0
  18. package/dist/application/agents/IAgentGateway.js.map +1 -0
  19. package/dist/application/context/decisions/get/IDecisionViewReader.d.ts +7 -0
  20. package/dist/application/context/decisions/get/IDecisionViewReader.d.ts.map +1 -1
  21. package/dist/application/context/decisions/search/DecisionSearchCriteria.d.ts +17 -0
  22. package/dist/application/context/decisions/search/DecisionSearchCriteria.d.ts.map +1 -0
  23. package/dist/application/context/decisions/search/DecisionSearchCriteria.js +12 -0
  24. package/dist/application/context/decisions/search/DecisionSearchCriteria.js.map +1 -0
  25. package/dist/application/context/decisions/search/ISearchDecisionsGateway.d.ts +10 -0
  26. package/dist/application/context/decisions/search/ISearchDecisionsGateway.d.ts.map +1 -0
  27. package/dist/application/context/decisions/search/ISearchDecisionsGateway.js +6 -0
  28. package/dist/application/context/decisions/search/ISearchDecisionsGateway.js.map +1 -0
  29. package/dist/application/context/decisions/search/LocalSearchDecisionsGateway.d.ts +14 -0
  30. package/dist/application/context/decisions/search/LocalSearchDecisionsGateway.d.ts.map +1 -0
  31. package/dist/application/context/decisions/search/LocalSearchDecisionsGateway.js +14 -0
  32. package/dist/application/context/decisions/search/LocalSearchDecisionsGateway.js.map +1 -0
  33. package/dist/application/context/decisions/search/SearchDecisionsController.d.ts +13 -0
  34. package/dist/application/context/decisions/search/SearchDecisionsController.d.ts.map +1 -0
  35. package/dist/application/context/decisions/search/SearchDecisionsController.js +13 -0
  36. package/dist/application/context/decisions/search/SearchDecisionsController.js.map +1 -0
  37. package/dist/application/context/decisions/search/SearchDecisionsRequest.d.ts +8 -0
  38. package/dist/application/context/decisions/search/SearchDecisionsRequest.d.ts.map +1 -0
  39. package/dist/application/context/decisions/search/SearchDecisionsRequest.js +5 -0
  40. package/dist/application/context/decisions/search/SearchDecisionsRequest.js.map +1 -0
  41. package/dist/application/context/decisions/search/SearchDecisionsResponse.d.ts +8 -0
  42. package/dist/application/context/decisions/search/SearchDecisionsResponse.d.ts.map +1 -0
  43. package/dist/application/context/decisions/search/SearchDecisionsResponse.js +5 -0
  44. package/dist/application/context/decisions/search/SearchDecisionsResponse.js.map +1 -0
  45. package/dist/application/context/dependencies/get/IDependencyViewReader.d.ts +7 -0
  46. package/dist/application/context/dependencies/get/IDependencyViewReader.d.ts.map +1 -1
  47. package/dist/application/context/dependencies/search/DependencySearchCriteria.d.ts +22 -0
  48. package/dist/application/context/dependencies/search/DependencySearchCriteria.d.ts.map +1 -0
  49. package/dist/application/context/dependencies/search/DependencySearchCriteria.js +12 -0
  50. package/dist/application/context/dependencies/search/DependencySearchCriteria.js.map +1 -0
  51. package/dist/application/context/dependencies/search/ISearchDependenciesGateway.d.ts +10 -0
  52. package/dist/application/context/dependencies/search/ISearchDependenciesGateway.d.ts.map +1 -0
  53. package/dist/application/context/dependencies/search/ISearchDependenciesGateway.js +6 -0
  54. package/dist/application/context/dependencies/search/ISearchDependenciesGateway.js.map +1 -0
  55. package/dist/application/context/dependencies/search/LocalSearchDependenciesGateway.d.ts +14 -0
  56. package/dist/application/context/dependencies/search/LocalSearchDependenciesGateway.d.ts.map +1 -0
  57. package/dist/application/context/dependencies/search/LocalSearchDependenciesGateway.js +14 -0
  58. package/dist/application/context/dependencies/search/LocalSearchDependenciesGateway.js.map +1 -0
  59. package/dist/application/context/dependencies/search/SearchDependenciesController.d.ts +13 -0
  60. package/dist/application/context/dependencies/search/SearchDependenciesController.d.ts.map +1 -0
  61. package/dist/application/context/dependencies/search/SearchDependenciesController.js +13 -0
  62. package/dist/application/context/dependencies/search/SearchDependenciesController.js.map +1 -0
  63. package/dist/application/context/dependencies/search/SearchDependenciesRequest.d.ts +8 -0
  64. package/dist/application/context/dependencies/search/SearchDependenciesRequest.d.ts.map +1 -0
  65. package/dist/application/context/dependencies/search/SearchDependenciesRequest.js +5 -0
  66. package/dist/application/context/dependencies/search/SearchDependenciesRequest.js.map +1 -0
  67. package/dist/application/context/dependencies/search/SearchDependenciesResponse.d.ts +8 -0
  68. package/dist/application/context/dependencies/search/SearchDependenciesResponse.d.ts.map +1 -0
  69. package/dist/application/context/dependencies/search/SearchDependenciesResponse.js +5 -0
  70. package/dist/application/context/dependencies/search/SearchDependenciesResponse.js.map +1 -0
  71. package/dist/application/context/goals/codify/CodifierProcessManager.d.ts +34 -0
  72. package/dist/application/context/goals/codify/CodifierProcessManager.d.ts.map +1 -0
  73. package/dist/application/context/goals/codify/CodifierProcessManager.js +177 -0
  74. package/dist/application/context/goals/codify/CodifierProcessManager.js.map +1 -0
  75. package/dist/application/context/goals/refine/RefinerProcessManager.d.ts +28 -0
  76. package/dist/application/context/goals/refine/RefinerProcessManager.d.ts.map +1 -0
  77. package/dist/application/context/goals/refine/RefinerProcessManager.js +163 -0
  78. package/dist/application/context/goals/refine/RefinerProcessManager.js.map +1 -0
  79. package/dist/application/context/goals/review/ReviewerProcessManager.d.ts +28 -0
  80. package/dist/application/context/goals/review/ReviewerProcessManager.d.ts.map +1 -0
  81. package/dist/application/context/goals/review/ReviewerProcessManager.js +174 -0
  82. package/dist/application/context/goals/review/ReviewerProcessManager.js.map +1 -0
  83. package/dist/application/context/guidelines/get/IGuidelineViewReader.d.ts +7 -0
  84. package/dist/application/context/guidelines/get/IGuidelineViewReader.d.ts.map +1 -1
  85. package/dist/application/context/guidelines/search/GuidelineSearchCriteria.d.ts +17 -0
  86. package/dist/application/context/guidelines/search/GuidelineSearchCriteria.d.ts.map +1 -0
  87. package/dist/application/context/guidelines/search/GuidelineSearchCriteria.js +12 -0
  88. package/dist/application/context/guidelines/search/GuidelineSearchCriteria.js.map +1 -0
  89. package/dist/application/context/guidelines/search/ISearchGuidelinesGateway.d.ts +10 -0
  90. package/dist/application/context/guidelines/search/ISearchGuidelinesGateway.d.ts.map +1 -0
  91. package/dist/application/context/guidelines/search/ISearchGuidelinesGateway.js +6 -0
  92. package/dist/application/context/guidelines/search/ISearchGuidelinesGateway.js.map +1 -0
  93. package/dist/application/context/guidelines/search/LocalSearchGuidelinesGateway.d.ts +14 -0
  94. package/dist/application/context/guidelines/search/LocalSearchGuidelinesGateway.d.ts.map +1 -0
  95. package/dist/application/context/guidelines/search/LocalSearchGuidelinesGateway.js +14 -0
  96. package/dist/application/context/guidelines/search/LocalSearchGuidelinesGateway.js.map +1 -0
  97. package/dist/application/context/guidelines/search/SearchGuidelinesController.d.ts +13 -0
  98. package/dist/application/context/guidelines/search/SearchGuidelinesController.d.ts.map +1 -0
  99. package/dist/application/context/guidelines/search/SearchGuidelinesController.js +13 -0
  100. package/dist/application/context/guidelines/search/SearchGuidelinesController.js.map +1 -0
  101. package/dist/application/context/guidelines/search/SearchGuidelinesRequest.d.ts +8 -0
  102. package/dist/application/context/guidelines/search/SearchGuidelinesRequest.d.ts.map +1 -0
  103. package/dist/application/context/guidelines/search/SearchGuidelinesRequest.js +5 -0
  104. package/dist/application/context/guidelines/search/SearchGuidelinesRequest.js.map +1 -0
  105. package/dist/application/context/guidelines/search/SearchGuidelinesResponse.d.ts +8 -0
  106. package/dist/application/context/guidelines/search/SearchGuidelinesResponse.d.ts.map +1 -0
  107. package/dist/application/context/guidelines/search/SearchGuidelinesResponse.js +5 -0
  108. package/dist/application/context/guidelines/search/SearchGuidelinesResponse.js.map +1 -0
  109. package/dist/application/context/invariants/get/IInvariantViewReader.d.ts +7 -0
  110. package/dist/application/context/invariants/get/IInvariantViewReader.d.ts.map +1 -1
  111. package/dist/application/context/invariants/search/ISearchInvariantsGateway.d.ts +10 -0
  112. package/dist/application/context/invariants/search/ISearchInvariantsGateway.d.ts.map +1 -0
  113. package/dist/application/context/invariants/search/ISearchInvariantsGateway.js +6 -0
  114. package/dist/application/context/invariants/search/ISearchInvariantsGateway.js.map +1 -0
  115. package/dist/application/context/invariants/search/InvariantSearchCriteria.d.ts +14 -0
  116. package/dist/application/context/invariants/search/InvariantSearchCriteria.d.ts.map +1 -0
  117. package/dist/application/context/invariants/search/InvariantSearchCriteria.js +11 -0
  118. package/dist/application/context/invariants/search/InvariantSearchCriteria.js.map +1 -0
  119. package/dist/application/context/invariants/search/LocalSearchInvariantsGateway.d.ts +14 -0
  120. package/dist/application/context/invariants/search/LocalSearchInvariantsGateway.d.ts.map +1 -0
  121. package/dist/application/context/invariants/search/LocalSearchInvariantsGateway.js +14 -0
  122. package/dist/application/context/invariants/search/LocalSearchInvariantsGateway.js.map +1 -0
  123. package/dist/application/context/invariants/search/SearchInvariantsController.d.ts +13 -0
  124. package/dist/application/context/invariants/search/SearchInvariantsController.d.ts.map +1 -0
  125. package/dist/application/context/invariants/search/SearchInvariantsController.js +13 -0
  126. package/dist/application/context/invariants/search/SearchInvariantsController.js.map +1 -0
  127. package/dist/application/context/invariants/search/SearchInvariantsRequest.d.ts +8 -0
  128. package/dist/application/context/invariants/search/SearchInvariantsRequest.d.ts.map +1 -0
  129. package/dist/application/context/invariants/search/SearchInvariantsRequest.js +5 -0
  130. package/dist/application/context/invariants/search/SearchInvariantsRequest.js.map +1 -0
  131. package/dist/application/context/invariants/search/SearchInvariantsResponse.d.ts +8 -0
  132. package/dist/application/context/invariants/search/SearchInvariantsResponse.d.ts.map +1 -0
  133. package/dist/application/context/invariants/search/SearchInvariantsResponse.js +5 -0
  134. package/dist/application/context/invariants/search/SearchInvariantsResponse.js.map +1 -0
  135. package/dist/application/context/project/ProjectKnowledgeInventoryView.d.ts +12 -0
  136. package/dist/application/context/project/ProjectKnowledgeInventoryView.d.ts.map +1 -0
  137. package/dist/application/context/project/ProjectKnowledgeInventoryView.js +2 -0
  138. package/dist/application/context/project/ProjectKnowledgeInventoryView.js.map +1 -0
  139. package/dist/application/context/project/ProjectLifecycleState.d.ts +7 -0
  140. package/dist/application/context/project/ProjectLifecycleState.d.ts.map +1 -0
  141. package/dist/application/context/project/ProjectLifecycleState.js +2 -0
  142. package/dist/application/context/project/ProjectLifecycleState.js.map +1 -0
  143. package/dist/application/context/project/ProjectSummaryView.d.ts +2 -0
  144. package/dist/application/context/project/ProjectSummaryView.d.ts.map +1 -1
  145. package/dist/application/context/project/ProjectView.d.ts +2 -0
  146. package/dist/application/context/project/ProjectView.d.ts.map +1 -1
  147. package/dist/application/context/project/query/GetProjectSummaryQueryHandler.d.ts.map +1 -1
  148. package/dist/application/context/project/query/GetProjectSummaryQueryHandler.js +3 -0
  149. package/dist/application/context/project/query/GetProjectSummaryQueryHandler.js.map +1 -1
  150. package/dist/application/context/project/query/IProjectContextReader.d.ts +10 -0
  151. package/dist/application/context/project/query/IProjectContextReader.d.ts.map +1 -1
  152. package/dist/application/context/project/query/ProjectLifecycleClassifier.d.ts +9 -0
  153. package/dist/application/context/project/query/ProjectLifecycleClassifier.d.ts.map +1 -0
  154. package/dist/application/context/project/query/ProjectLifecycleClassifier.js +18 -0
  155. package/dist/application/context/project/query/ProjectLifecycleClassifier.js.map +1 -0
  156. package/dist/application/context/project/query/north-star/ProjectNorthStarView.d.ts +20 -0
  157. package/dist/application/context/project/query/north-star/ProjectNorthStarView.d.ts.map +1 -0
  158. package/dist/application/context/project/query/north-star/ProjectNorthStarView.js +2 -0
  159. package/dist/application/context/project/query/north-star/ProjectNorthStarView.js.map +1 -0
  160. package/dist/application/context/project/show/IShowProjectGateway.d.ts +6 -0
  161. package/dist/application/context/project/show/IShowProjectGateway.d.ts.map +1 -0
  162. package/dist/application/context/project/show/IShowProjectGateway.js +2 -0
  163. package/dist/application/context/project/show/IShowProjectGateway.js.map +1 -0
  164. package/dist/application/context/project/show/LocalShowProjectGateway.d.ts +16 -0
  165. package/dist/application/context/project/show/LocalShowProjectGateway.d.ts.map +1 -0
  166. package/dist/application/context/project/show/LocalShowProjectGateway.js +32 -0
  167. package/dist/application/context/project/show/LocalShowProjectGateway.js.map +1 -0
  168. package/dist/application/context/project/show/ShowProjectController.d.ts +9 -0
  169. package/dist/application/context/project/show/ShowProjectController.d.ts.map +1 -0
  170. package/dist/application/context/project/show/ShowProjectController.js +9 -0
  171. package/dist/application/context/project/show/ShowProjectController.js.map +1 -0
  172. package/dist/application/context/project/show/ShowProjectRequest.d.ts +4 -0
  173. package/dist/application/context/project/show/ShowProjectRequest.d.ts.map +1 -0
  174. package/dist/application/context/project/show/ShowProjectRequest.js +2 -0
  175. package/dist/application/context/project/show/ShowProjectRequest.js.map +1 -0
  176. package/dist/application/context/project/show/ShowProjectResponse.d.ts +7 -0
  177. package/dist/application/context/project/show/ShowProjectResponse.d.ts.map +1 -0
  178. package/dist/application/context/project/show/ShowProjectResponse.js +2 -0
  179. package/dist/application/context/project/show/ShowProjectResponse.js.map +1 -0
  180. package/dist/application/context/sessions/get/SessionContext.d.ts +2 -2
  181. package/dist/application/context/sessions/get/SessionContextQueryHandler.d.ts +1 -1
  182. package/dist/application/context/sessions/get/SessionContextQueryHandler.d.ts.map +1 -1
  183. package/dist/application/context/sessions/get/SessionContextQueryHandler.js +3 -1
  184. package/dist/application/context/sessions/get/SessionContextQueryHandler.js.map +1 -1
  185. package/dist/application/context/sessions/start/LocalStartSessionGateway.d.ts +2 -7
  186. package/dist/application/context/sessions/start/LocalStartSessionGateway.d.ts.map +1 -1
  187. package/dist/application/context/sessions/start/LocalStartSessionGateway.js +4 -35
  188. package/dist/application/context/sessions/start/LocalStartSessionGateway.js.map +1 -1
  189. package/dist/application/context/sessions/start/SessionStartResponse.d.ts +4 -4
  190. package/dist/application/context/sessions/start/SessionStartResponse.d.ts.map +1 -1
  191. package/dist/application/daemons/IProcessManager.d.ts +28 -0
  192. package/dist/application/daemons/IProcessManager.d.ts.map +1 -0
  193. package/dist/application/daemons/IProcessManager.js +2 -0
  194. package/dist/application/daemons/IProcessManager.js.map +1 -0
  195. package/dist/application/daemons/IShutdownSignal.d.ts +5 -0
  196. package/dist/application/daemons/IShutdownSignal.d.ts.map +1 -0
  197. package/dist/application/daemons/IShutdownSignal.js +2 -0
  198. package/dist/application/daemons/IShutdownSignal.js.map +1 -0
  199. package/dist/application/daemons/ITicker.d.ts +4 -0
  200. package/dist/application/daemons/ITicker.d.ts.map +1 -0
  201. package/dist/application/daemons/ITicker.js +2 -0
  202. package/dist/application/daemons/ITicker.js.map +1 -0
  203. package/dist/application/daemons/IWorkerDaemonProcessController.d.ts +30 -0
  204. package/dist/application/daemons/IWorkerDaemonProcessController.d.ts.map +1 -0
  205. package/dist/application/daemons/IWorkerDaemonProcessController.js +2 -0
  206. package/dist/application/daemons/IWorkerDaemonProcessController.js.map +1 -0
  207. package/dist/application/daemons/PollingLoop.d.ts +13 -0
  208. package/dist/application/daemons/PollingLoop.d.ts.map +1 -0
  209. package/dist/application/daemons/PollingLoop.js +15 -0
  210. package/dist/application/daemons/PollingLoop.js.map +1 -0
  211. package/dist/application/daemons/WorkerDaemonCatalog.d.ts +11 -0
  212. package/dist/application/daemons/WorkerDaemonCatalog.d.ts.map +1 -0
  213. package/dist/application/daemons/WorkerDaemonCatalog.js +12 -0
  214. package/dist/application/daemons/WorkerDaemonCatalog.js.map +1 -0
  215. package/dist/application/host/IApplicationContainer.d.ts +6 -0
  216. package/dist/application/host/IApplicationContainer.d.ts.map +1 -1
  217. package/dist/application/settings/Settings.d.ts +11 -0
  218. package/dist/application/settings/Settings.d.ts.map +1 -1
  219. package/dist/cli.js +68 -5
  220. package/dist/cli.js.map +1 -1
  221. package/dist/domain/architecture/define/ArchitectureDefinedEvent.d.ts +2 -1
  222. package/dist/domain/architecture/define/ArchitectureDefinedEvent.d.ts.map +1 -1
  223. package/dist/domain/architecture/update/ArchitectureUpdatedEvent.d.ts +2 -1
  224. package/dist/domain/architecture/update/ArchitectureUpdatedEvent.d.ts.map +1 -1
  225. package/dist/domain/audience-pains/add/AudiencePainAddedEvent.d.ts +2 -1
  226. package/dist/domain/audience-pains/add/AudiencePainAddedEvent.d.ts.map +1 -1
  227. package/dist/domain/audience-pains/update/AudiencePainUpdatedEvent.d.ts +2 -1
  228. package/dist/domain/audience-pains/update/AudiencePainUpdatedEvent.d.ts.map +1 -1
  229. package/dist/domain/audiences/add/AudienceAddedEvent.d.ts +2 -2
  230. package/dist/domain/audiences/add/AudienceAddedEvent.d.ts.map +1 -1
  231. package/dist/domain/audiences/remove/AudienceRemovedEvent.d.ts +2 -1
  232. package/dist/domain/audiences/remove/AudienceRemovedEvent.d.ts.map +1 -1
  233. package/dist/domain/audiences/update/AudienceUpdatedEvent.d.ts +2 -2
  234. package/dist/domain/audiences/update/AudienceUpdatedEvent.d.ts.map +1 -1
  235. package/dist/domain/components/add/ComponentAddedEvent.d.ts +2 -2
  236. package/dist/domain/components/add/ComponentAddedEvent.d.ts.map +1 -1
  237. package/dist/domain/components/deprecate/ComponentDeprecatedEvent.d.ts +2 -2
  238. package/dist/domain/components/deprecate/ComponentDeprecatedEvent.d.ts.map +1 -1
  239. package/dist/domain/components/remove/ComponentRemovedEvent.d.ts +2 -2
  240. package/dist/domain/components/remove/ComponentRemovedEvent.d.ts.map +1 -1
  241. package/dist/domain/components/update/ComponentUpdatedEvent.d.ts +2 -2
  242. package/dist/domain/components/update/ComponentUpdatedEvent.d.ts.map +1 -1
  243. package/dist/domain/goals/unblock/GoalUnblockedEvent.d.ts +2 -2
  244. package/dist/domain/goals/unblock/GoalUnblockedEvent.d.ts.map +1 -1
  245. package/dist/domain/guidelines/add/GuidelineAddedEvent.d.ts +2 -2
  246. package/dist/domain/guidelines/add/GuidelineAddedEvent.d.ts.map +1 -1
  247. package/dist/domain/guidelines/remove/GuidelineRemovedEvent.d.ts +2 -1
  248. package/dist/domain/guidelines/remove/GuidelineRemovedEvent.d.ts.map +1 -1
  249. package/dist/domain/guidelines/update/GuidelineUpdatedEvent.d.ts +2 -2
  250. package/dist/domain/guidelines/update/GuidelineUpdatedEvent.d.ts.map +1 -1
  251. package/dist/domain/invariants/add/InvariantAddedEvent.d.ts +2 -1
  252. package/dist/domain/invariants/add/InvariantAddedEvent.d.ts.map +1 -1
  253. package/dist/domain/invariants/remove/InvariantRemovedEvent.d.ts +2 -1
  254. package/dist/domain/invariants/remove/InvariantRemovedEvent.d.ts.map +1 -1
  255. package/dist/domain/invariants/update/InvariantUpdatedEvent.d.ts +2 -1
  256. package/dist/domain/invariants/update/InvariantUpdatedEvent.d.ts.map +1 -1
  257. package/dist/domain/project/Constants.d.ts +7 -0
  258. package/dist/domain/project/Constants.d.ts.map +1 -1
  259. package/dist/domain/project/Constants.js +7 -0
  260. package/dist/domain/project/Constants.js.map +1 -1
  261. package/dist/domain/project/JumboMdContent.js +1 -1
  262. package/dist/domain/project/ProjectLifecyle.d.ts +7 -0
  263. package/dist/domain/project/ProjectLifecyle.d.ts.map +1 -0
  264. package/dist/domain/project/ProjectLifecyle.js +8 -0
  265. package/dist/domain/project/ProjectLifecyle.js.map +1 -0
  266. package/dist/domain/relations/Constants.d.ts +6 -0
  267. package/dist/domain/relations/Constants.d.ts.map +1 -1
  268. package/dist/domain/relations/Constants.js +6 -0
  269. package/dist/domain/relations/Constants.js.map +1 -1
  270. package/dist/domain/relations/Relation.d.ts +2 -2
  271. package/dist/domain/relations/Relation.d.ts.map +1 -1
  272. package/dist/domain/relations/Relation.js +10 -10
  273. package/dist/domain/relations/Relation.js.map +1 -1
  274. package/dist/domain/relations/add/RelationAddedEvent.d.ts +2 -2
  275. package/dist/domain/relations/add/RelationAddedEvent.d.ts.map +1 -1
  276. package/dist/domain/relations/remove/RelationRemovedEvent.d.ts +2 -2
  277. package/dist/domain/relations/remove/RelationRemovedEvent.d.ts.map +1 -1
  278. package/dist/domain/value-propositions/add/ValuePropositionAddedEvent.d.ts +2 -1
  279. package/dist/domain/value-propositions/add/ValuePropositionAddedEvent.d.ts.map +1 -1
  280. package/dist/domain/value-propositions/remove/ValuePropositionRemovedEvent.d.ts +2 -1
  281. package/dist/domain/value-propositions/remove/ValuePropositionRemovedEvent.d.ts.map +1 -1
  282. package/dist/domain/value-propositions/update/ValuePropositionUpdatedEvent.d.ts +2 -1
  283. package/dist/domain/value-propositions/update/ValuePropositionUpdatedEvent.d.ts.map +1 -1
  284. package/dist/infrastructure/agents/AgentCliGateway.d.ts +15 -0
  285. package/dist/infrastructure/agents/AgentCliGateway.d.ts.map +1 -0
  286. package/dist/infrastructure/agents/AgentCliGateway.js +102 -0
  287. package/dist/infrastructure/agents/AgentCliGateway.js.map +1 -0
  288. package/dist/infrastructure/context/decisions/get/SqliteDecisionViewReader.d.ts +8 -0
  289. package/dist/infrastructure/context/decisions/get/SqliteDecisionViewReader.d.ts.map +1 -1
  290. package/dist/infrastructure/context/decisions/get/SqliteDecisionViewReader.js +45 -0
  291. package/dist/infrastructure/context/decisions/get/SqliteDecisionViewReader.js.map +1 -1
  292. package/dist/infrastructure/context/decisions/migrations/002-add-decision-search-indexes.sql +11 -0
  293. package/dist/infrastructure/context/dependencies/get/SqliteDependencyViewReader.d.ts +3 -0
  294. package/dist/infrastructure/context/dependencies/get/SqliteDependencyViewReader.d.ts.map +1 -1
  295. package/dist/infrastructure/context/dependencies/get/SqliteDependencyViewReader.js +57 -0
  296. package/dist/infrastructure/context/dependencies/get/SqliteDependencyViewReader.js.map +1 -1
  297. package/dist/infrastructure/context/dependencies/migrations/003-add-dependency-search-indexes.sql +12 -0
  298. package/dist/infrastructure/context/guidelines/get/SqliteGuidelineViewReader.d.ts +8 -0
  299. package/dist/infrastructure/context/guidelines/get/SqliteGuidelineViewReader.d.ts.map +1 -1
  300. package/dist/infrastructure/context/guidelines/get/SqliteGuidelineViewReader.js +31 -0
  301. package/dist/infrastructure/context/guidelines/get/SqliteGuidelineViewReader.js.map +1 -1
  302. package/dist/infrastructure/context/guidelines/migrations/003-add-guideline-search-indexes.sql +17 -0
  303. package/dist/infrastructure/context/invariants/get/SqliteInvariantViewReader.d.ts +8 -0
  304. package/dist/infrastructure/context/invariants/get/SqliteInvariantViewReader.d.ts.map +1 -1
  305. package/dist/infrastructure/context/invariants/get/SqliteInvariantViewReader.js +31 -0
  306. package/dist/infrastructure/context/invariants/get/SqliteInvariantViewReader.js.map +1 -1
  307. package/dist/infrastructure/context/invariants/migrations/003-add-invariant-search-indexes.sql +6 -0
  308. package/dist/infrastructure/context/project/init/CodexConfigurer.d.ts +19 -6
  309. package/dist/infrastructure/context/project/init/CodexConfigurer.d.ts.map +1 -1
  310. package/dist/infrastructure/context/project/init/CodexConfigurer.js +177 -9
  311. package/dist/infrastructure/context/project/init/CodexConfigurer.js.map +1 -1
  312. package/dist/infrastructure/context/project/query/SqliteProjectContextReader.d.ts +5 -0
  313. package/dist/infrastructure/context/project/query/SqliteProjectContextReader.d.ts.map +1 -1
  314. package/dist/infrastructure/context/project/query/SqliteProjectContextReader.js +34 -2
  315. package/dist/infrastructure/context/project/query/SqliteProjectContextReader.js.map +1 -1
  316. package/dist/infrastructure/daemons/IntervalTicker.d.ts +7 -0
  317. package/dist/infrastructure/daemons/IntervalTicker.d.ts.map +1 -0
  318. package/dist/infrastructure/daemons/IntervalTicker.js +11 -0
  319. package/dist/infrastructure/daemons/IntervalTicker.js.map +1 -0
  320. package/dist/infrastructure/daemons/NodeWorkerDaemonProcessController.d.ts +12 -0
  321. package/dist/infrastructure/daemons/NodeWorkerDaemonProcessController.d.ts.map +1 -0
  322. package/dist/infrastructure/daemons/NodeWorkerDaemonProcessController.js +56 -0
  323. package/dist/infrastructure/daemons/NodeWorkerDaemonProcessController.js.map +1 -0
  324. package/dist/infrastructure/daemons/ProcessSignalSource.d.ts +10 -0
  325. package/dist/infrastructure/daemons/ProcessSignalSource.d.ts.map +1 -0
  326. package/dist/infrastructure/daemons/ProcessSignalSource.js +24 -0
  327. package/dist/infrastructure/daemons/ProcessSignalSource.js.map +1 -0
  328. package/dist/infrastructure/host/HostBuilder.d.ts.map +1 -1
  329. package/dist/infrastructure/host/HostBuilder.js +16 -1
  330. package/dist/infrastructure/host/HostBuilder.js.map +1 -1
  331. package/dist/infrastructure/logging/FileLogger.js +1 -1
  332. package/dist/infrastructure/settings/DefaultSettings.d.ts.map +1 -1
  333. package/dist/infrastructure/settings/DefaultSettings.js +3 -0
  334. package/dist/infrastructure/settings/DefaultSettings.js.map +1 -1
  335. package/dist/infrastructure/settings/FsSettingsInitializer.d.ts.map +1 -1
  336. package/dist/infrastructure/settings/FsSettingsInitializer.js +6 -0
  337. package/dist/infrastructure/settings/FsSettingsInitializer.js.map +1 -1
  338. package/dist/infrastructure/settings/FsSettingsReader.d.ts.map +1 -1
  339. package/dist/infrastructure/settings/FsSettingsReader.js +10 -0
  340. package/dist/infrastructure/settings/FsSettingsReader.js.map +1 -1
  341. package/dist/presentation/cli/AppRunner.d.ts +7 -1
  342. package/dist/presentation/cli/AppRunner.d.ts.map +1 -1
  343. package/dist/presentation/cli/AppRunner.js +10 -5
  344. package/dist/presentation/cli/AppRunner.js.map +1 -1
  345. package/dist/presentation/cli/CliBootstrapPlan.d.ts +12 -0
  346. package/dist/presentation/cli/CliBootstrapPlan.d.ts.map +1 -0
  347. package/dist/presentation/cli/CliBootstrapPlan.js +23 -0
  348. package/dist/presentation/cli/CliBootstrapPlan.js.map +1 -0
  349. package/dist/presentation/cli/banner/AnimationFrames.d.ts +6 -1
  350. package/dist/presentation/cli/banner/AnimationFrames.d.ts.map +1 -1
  351. package/dist/presentation/cli/banner/AnimationFrames.js +307 -288
  352. package/dist/presentation/cli/banner/AnimationFrames.js.map +1 -1
  353. package/dist/presentation/cli/commands/decisions/search/DecisionSearchOutputBuilder.d.ts +17 -0
  354. package/dist/presentation/cli/commands/decisions/search/DecisionSearchOutputBuilder.d.ts.map +1 -0
  355. package/dist/presentation/cli/commands/decisions/search/DecisionSearchOutputBuilder.js +90 -0
  356. package/dist/presentation/cli/commands/decisions/search/DecisionSearchOutputBuilder.js.map +1 -0
  357. package/dist/presentation/cli/commands/decisions/search/decisions.search.d.ts +22 -0
  358. package/dist/presentation/cli/commands/decisions/search/decisions.search.d.ts.map +1 -0
  359. package/dist/presentation/cli/commands/decisions/search/decisions.search.js +93 -0
  360. package/dist/presentation/cli/commands/decisions/search/decisions.search.js.map +1 -0
  361. package/dist/presentation/cli/commands/dependencies/search/DependencySearchOutputBuilder.d.ts +16 -0
  362. package/dist/presentation/cli/commands/dependencies/search/DependencySearchOutputBuilder.d.ts.map +1 -0
  363. package/dist/presentation/cli/commands/dependencies/search/DependencySearchOutputBuilder.js +85 -0
  364. package/dist/presentation/cli/commands/dependencies/search/DependencySearchOutputBuilder.js.map +1 -0
  365. package/dist/presentation/cli/commands/dependencies/search/dependencies.search.d.ts +21 -0
  366. package/dist/presentation/cli/commands/dependencies/search/dependencies.search.d.ts.map +1 -0
  367. package/dist/presentation/cli/commands/dependencies/search/dependencies.search.js +111 -0
  368. package/dist/presentation/cli/commands/dependencies/search/dependencies.search.js.map +1 -0
  369. package/dist/presentation/cli/commands/guidelines/search/GuidelineSearchOutputBuilder.d.ts +22 -0
  370. package/dist/presentation/cli/commands/guidelines/search/GuidelineSearchOutputBuilder.d.ts.map +1 -0
  371. package/dist/presentation/cli/commands/guidelines/search/GuidelineSearchOutputBuilder.js +86 -0
  372. package/dist/presentation/cli/commands/guidelines/search/GuidelineSearchOutputBuilder.js.map +1 -0
  373. package/dist/presentation/cli/commands/guidelines/search/guidelines.search.d.ts +21 -0
  374. package/dist/presentation/cli/commands/guidelines/search/guidelines.search.d.ts.map +1 -0
  375. package/dist/presentation/cli/commands/guidelines/search/guidelines.search.js +92 -0
  376. package/dist/presentation/cli/commands/guidelines/search/guidelines.search.js.map +1 -0
  377. package/dist/presentation/cli/commands/invariants/search/InvariantSearchOutputBuilder.d.ts +22 -0
  378. package/dist/presentation/cli/commands/invariants/search/InvariantSearchOutputBuilder.d.ts.map +1 -0
  379. package/dist/presentation/cli/commands/invariants/search/InvariantSearchOutputBuilder.js +79 -0
  380. package/dist/presentation/cli/commands/invariants/search/InvariantSearchOutputBuilder.js.map +1 -0
  381. package/dist/presentation/cli/commands/invariants/search/invariants.search.d.ts +20 -0
  382. package/dist/presentation/cli/commands/invariants/search/invariants.search.d.ts.map +1 -0
  383. package/dist/presentation/cli/commands/invariants/search/invariants.search.js +80 -0
  384. package/dist/presentation/cli/commands/invariants/search/invariants.search.js.map +1 -0
  385. package/dist/presentation/cli/commands/project/show/ProjectShowOutputBuilder.d.ts +14 -0
  386. package/dist/presentation/cli/commands/project/show/ProjectShowOutputBuilder.d.ts.map +1 -0
  387. package/dist/presentation/cli/commands/project/show/ProjectShowOutputBuilder.js +84 -0
  388. package/dist/presentation/cli/commands/project/show/ProjectShowOutputBuilder.js.map +1 -0
  389. package/dist/presentation/cli/commands/project/show/project.show.d.ts +12 -0
  390. package/dist/presentation/cli/commands/project/show/project.show.d.ts.map +1 -0
  391. package/dist/presentation/cli/commands/project/show/project.show.js +59 -0
  392. package/dist/presentation/cli/commands/project/show/project.show.js.map +1 -0
  393. package/dist/presentation/cli/commands/registry/generated-commands.d.ts.map +1 -1
  394. package/dist/presentation/cli/commands/registry/generated-commands.js +30 -0
  395. package/dist/presentation/cli/commands/registry/generated-commands.js.map +1 -1
  396. package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.d.ts +1 -1
  397. package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.d.ts.map +1 -1
  398. package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.js +3 -2
  399. package/dist/presentation/cli/commands/sessions/start/SessionContextOutputBuilder.js.map +1 -1
  400. package/dist/presentation/cli/commands/sessions/start/SessionStartOutputBuilder.d.ts +8 -9
  401. package/dist/presentation/cli/commands/sessions/start/SessionStartOutputBuilder.d.ts.map +1 -1
  402. package/dist/presentation/cli/commands/sessions/start/SessionStartOutputBuilder.js +107 -42
  403. package/dist/presentation/cli/commands/sessions/start/SessionStartOutputBuilder.js.map +1 -1
  404. package/dist/presentation/cli/commands/sessions/start/SessionStartTextRenderer.d.ts +3 -2
  405. package/dist/presentation/cli/commands/sessions/start/SessionStartTextRenderer.d.ts.map +1 -1
  406. package/dist/presentation/cli/commands/sessions/start/SessionStartTextRenderer.js +24 -10
  407. package/dist/presentation/cli/commands/sessions/start/SessionStartTextRenderer.js.map +1 -1
  408. package/dist/presentation/cli/commands/sessions/start/session.start.d.ts.map +1 -1
  409. package/dist/presentation/cli/commands/sessions/start/session.start.js +2 -5
  410. package/dist/presentation/cli/commands/sessions/start/session.start.js.map +1 -1
  411. package/dist/presentation/cli/commands/work/shared/AgentSpawner.d.ts +7 -4
  412. package/dist/presentation/cli/commands/work/shared/AgentSpawner.d.ts.map +1 -1
  413. package/dist/presentation/cli/commands/work/shared/AgentSpawner.js +11 -4
  414. package/dist/presentation/cli/commands/work/shared/AgentSpawner.js.map +1 -1
  415. package/dist/presentation/shared/DesignTokens.d.ts +94 -0
  416. package/dist/presentation/shared/DesignTokens.d.ts.map +1 -0
  417. package/dist/presentation/shared/DesignTokens.js +94 -0
  418. package/dist/presentation/shared/DesignTokens.js.map +1 -0
  419. package/dist/presentation/tui/Constants.d.ts +18 -0
  420. package/dist/presentation/tui/Constants.d.ts.map +1 -0
  421. package/dist/presentation/tui/Constants.js +28 -0
  422. package/dist/presentation/tui/Constants.js.map +1 -0
  423. package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.d.ts +6 -0
  424. package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.d.ts.map +1 -0
  425. package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.js +18 -0
  426. package/dist/presentation/tui/action-dispatch/TuiActionDispatcher.js.map +1 -0
  427. package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.d.ts +4 -0
  428. package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.d.ts.map +1 -0
  429. package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.js +9 -0
  430. package/dist/presentation/tui/action-dispatch/TuiActionErrorNormalizer.js.map +1 -0
  431. package/dist/presentation/tui/action-dispatch/TuiActionResult.d.ts +8 -0
  432. package/dist/presentation/tui/action-dispatch/TuiActionResult.d.ts.map +1 -0
  433. package/dist/presentation/tui/action-dispatch/TuiActionResult.js +2 -0
  434. package/dist/presentation/tui/action-dispatch/TuiActionResult.js.map +1 -0
  435. package/dist/presentation/tui/action-dispatch/TuiRequestController.d.ts +4 -0
  436. package/dist/presentation/tui/action-dispatch/TuiRequestController.d.ts.map +1 -0
  437. package/dist/presentation/tui/action-dispatch/TuiRequestController.js +2 -0
  438. package/dist/presentation/tui/action-dispatch/TuiRequestController.js.map +1 -0
  439. package/dist/presentation/tui/application-shell/Footer.d.ts +12 -0
  440. package/dist/presentation/tui/application-shell/Footer.d.ts.map +1 -0
  441. package/dist/presentation/tui/application-shell/Footer.js +41 -0
  442. package/dist/presentation/tui/application-shell/Footer.js.map +1 -0
  443. package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.d.ts +16 -0
  444. package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.d.ts.map +1 -0
  445. package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.js +10 -0
  446. package/dist/presentation/tui/application-shell/FooterShortcutDescriptor.js.map +1 -0
  447. package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.d.ts +3 -0
  448. package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.d.ts.map +1 -0
  449. package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.js +4 -0
  450. package/dist/presentation/tui/application-shell/FooterUnreadNotificationCounter.js.map +1 -0
  451. package/dist/presentation/tui/application-shell/Header.d.ts +10 -0
  452. package/dist/presentation/tui/application-shell/Header.d.ts.map +1 -0
  453. package/dist/presentation/tui/application-shell/Header.js +45 -0
  454. package/dist/presentation/tui/application-shell/Header.js.map +1 -0
  455. package/dist/presentation/tui/application-shell/HeaderConstants.d.ts +6 -0
  456. package/dist/presentation/tui/application-shell/HeaderConstants.d.ts.map +1 -0
  457. package/dist/presentation/tui/application-shell/HeaderConstants.js +6 -0
  458. package/dist/presentation/tui/application-shell/HeaderConstants.js.map +1 -0
  459. package/dist/presentation/tui/application-shell/NotificationDrawer.d.ts +16 -0
  460. package/dist/presentation/tui/application-shell/NotificationDrawer.d.ts.map +1 -0
  461. package/dist/presentation/tui/application-shell/NotificationDrawer.js +56 -0
  462. package/dist/presentation/tui/application-shell/NotificationDrawer.js.map +1 -0
  463. package/dist/presentation/tui/application-shell/TuiApp.d.ts +25 -0
  464. package/dist/presentation/tui/application-shell/TuiApp.d.ts.map +1 -0
  465. package/dist/presentation/tui/application-shell/TuiApp.js +233 -0
  466. package/dist/presentation/tui/application-shell/TuiApp.js.map +1 -0
  467. package/dist/presentation/tui/application-shell/TuiAppConstants.d.ts +18 -0
  468. package/dist/presentation/tui/application-shell/TuiAppConstants.d.ts.map +1 -0
  469. package/dist/presentation/tui/application-shell/TuiAppConstants.js +18 -0
  470. package/dist/presentation/tui/application-shell/TuiAppConstants.js.map +1 -0
  471. package/dist/presentation/tui/application-shell/TuiApplicationLauncher.d.ts +19 -0
  472. package/dist/presentation/tui/application-shell/TuiApplicationLauncher.d.ts.map +1 -0
  473. package/dist/presentation/tui/application-shell/TuiApplicationLauncher.js +46 -0
  474. package/dist/presentation/tui/application-shell/TuiApplicationLauncher.js.map +1 -0
  475. package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.d.ts +6 -0
  476. package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.d.ts.map +1 -0
  477. package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.js +9 -0
  478. package/dist/presentation/tui/application-shell/useFooterNotificationDismissal.js.map +1 -0
  479. package/dist/presentation/tui/billboard/AnimatedBillboard.d.ts +11 -0
  480. package/dist/presentation/tui/billboard/AnimatedBillboard.d.ts.map +1 -0
  481. package/dist/presentation/tui/billboard/AnimatedBillboard.js +332 -0
  482. package/dist/presentation/tui/billboard/AnimatedBillboard.js.map +1 -0
  483. package/dist/presentation/tui/billboard/AnimatedBillboardPalette.d.ts +31 -0
  484. package/dist/presentation/tui/billboard/AnimatedBillboardPalette.d.ts.map +1 -0
  485. package/dist/presentation/tui/billboard/AnimatedBillboardPalette.js +54 -0
  486. package/dist/presentation/tui/billboard/AnimatedBillboardPalette.js.map +1 -0
  487. package/dist/presentation/tui/billboard/AnimatedBillboardPhase.d.ts +8 -0
  488. package/dist/presentation/tui/billboard/AnimatedBillboardPhase.d.ts.map +1 -0
  489. package/dist/presentation/tui/billboard/AnimatedBillboardPhase.js +7 -0
  490. package/dist/presentation/tui/billboard/AnimatedBillboardPhase.js.map +1 -0
  491. package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.d.ts +2 -0
  492. package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.d.ts.map +1 -0
  493. package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.js +17 -0
  494. package/dist/presentation/tui/billboard/AnimatedBillboardStickerArt.js.map +1 -0
  495. package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.d.ts +2 -0
  496. package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.d.ts.map +1 -0
  497. package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.js +10 -0
  498. package/dist/presentation/tui/billboard/AnimatedBillboardWordmarkArt.js.map +1 -0
  499. package/dist/presentation/tui/cockpit/AnimatedBanner.d.ts +13 -0
  500. package/dist/presentation/tui/cockpit/AnimatedBanner.d.ts.map +1 -0
  501. package/dist/presentation/tui/cockpit/AnimatedBanner.js +193 -0
  502. package/dist/presentation/tui/cockpit/AnimatedBanner.js.map +1 -0
  503. package/dist/presentation/tui/cockpit/CenteredPrompt.d.ts +10 -0
  504. package/dist/presentation/tui/cockpit/CenteredPrompt.d.ts.map +1 -0
  505. package/dist/presentation/tui/cockpit/CenteredPrompt.js +14 -0
  506. package/dist/presentation/tui/cockpit/CenteredPrompt.js.map +1 -0
  507. package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.d.ts +7 -0
  508. package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.d.ts.map +1 -0
  509. package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.js +32 -0
  510. package/dist/presentation/tui/cockpit/CockpitDaemonConfiguration.js.map +1 -0
  511. package/dist/presentation/tui/cockpit/CockpitDaemonEvents.d.ts +14 -0
  512. package/dist/presentation/tui/cockpit/CockpitDaemonEvents.d.ts.map +1 -0
  513. package/dist/presentation/tui/cockpit/CockpitDaemonEvents.js +154 -0
  514. package/dist/presentation/tui/cockpit/CockpitDaemonEvents.js.map +1 -0
  515. package/dist/presentation/tui/cockpit/CockpitDaemonFrames.d.ts +39 -0
  516. package/dist/presentation/tui/cockpit/CockpitDaemonFrames.d.ts.map +1 -0
  517. package/dist/presentation/tui/cockpit/CockpitDaemonFrames.js +186 -0
  518. package/dist/presentation/tui/cockpit/CockpitDaemonFrames.js.map +1 -0
  519. package/dist/presentation/tui/cockpit/CockpitDaemonPanel.d.ts +16 -0
  520. package/dist/presentation/tui/cockpit/CockpitDaemonPanel.d.ts.map +1 -0
  521. package/dist/presentation/tui/cockpit/CockpitDaemonPanel.js +53 -0
  522. package/dist/presentation/tui/cockpit/CockpitDaemonPanel.js.map +1 -0
  523. package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.d.ts +12 -0
  524. package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.d.ts.map +1 -0
  525. package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.js +12 -0
  526. package/dist/presentation/tui/cockpit/CockpitDaemonPanelCopy.js.map +1 -0
  527. package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.d.ts +10 -0
  528. package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.d.ts.map +1 -0
  529. package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.js +2 -0
  530. package/dist/presentation/tui/cockpit/CockpitDaemonSnapshot.js.map +1 -0
  531. package/dist/presentation/tui/cockpit/CockpitGreeterCopy.d.ts +10 -0
  532. package/dist/presentation/tui/cockpit/CockpitGreeterCopy.d.ts.map +1 -0
  533. package/dist/presentation/tui/cockpit/CockpitGreeterCopy.js +14 -0
  534. package/dist/presentation/tui/cockpit/CockpitGreeterCopy.js.map +1 -0
  535. package/dist/presentation/tui/cockpit/CockpitGreeterView.d.ts +3 -0
  536. package/dist/presentation/tui/cockpit/CockpitGreeterView.d.ts.map +1 -0
  537. package/dist/presentation/tui/cockpit/CockpitGreeterView.js +18 -0
  538. package/dist/presentation/tui/cockpit/CockpitGreeterView.js.map +1 -0
  539. package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.d.ts +4 -0
  540. package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.d.ts.map +1 -0
  541. package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.js +4 -0
  542. package/dist/presentation/tui/cockpit/CockpitLaunchpadCopy.js.map +1 -0
  543. package/dist/presentation/tui/cockpit/CockpitLaunchpadView.d.ts +25 -0
  544. package/dist/presentation/tui/cockpit/CockpitLaunchpadView.d.ts.map +1 -0
  545. package/dist/presentation/tui/cockpit/CockpitLaunchpadView.js +231 -0
  546. package/dist/presentation/tui/cockpit/CockpitLaunchpadView.js.map +1 -0
  547. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.d.ts +3 -0
  548. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.d.ts.map +1 -0
  549. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.js +17 -0
  550. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcome.js.map +1 -0
  551. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.d.ts +9 -0
  552. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.d.ts.map +1 -0
  553. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.js +12 -0
  554. package/dist/presentation/tui/cockpit/CockpitLaunchpadWelcomeCopy.js.map +1 -0
  555. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.d.ts +12 -0
  556. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.d.ts.map +1 -0
  557. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.js +16 -0
  558. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyCopy.js.map +1 -0
  559. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.d.ts +3 -0
  560. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.d.ts.map +1 -0
  561. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.js +23 -0
  562. package/dist/presentation/tui/cockpit/CockpitPrimedEmptyView.js.map +1 -0
  563. package/dist/presentation/tui/cockpit/CockpitScreen.d.ts +21 -0
  564. package/dist/presentation/tui/cockpit/CockpitScreen.d.ts.map +1 -0
  565. package/dist/presentation/tui/cockpit/CockpitScreen.js +59 -0
  566. package/dist/presentation/tui/cockpit/CockpitScreen.js.map +1 -0
  567. package/dist/presentation/tui/cockpit/CockpitScreenCopy.d.ts +7 -0
  568. package/dist/presentation/tui/cockpit/CockpitScreenCopy.d.ts.map +1 -0
  569. package/dist/presentation/tui/cockpit/CockpitScreenCopy.js +7 -0
  570. package/dist/presentation/tui/cockpit/CockpitScreenCopy.js.map +1 -0
  571. package/dist/presentation/tui/cockpit/CockpitScreenDefaults.d.ts +6 -0
  572. package/dist/presentation/tui/cockpit/CockpitScreenDefaults.d.ts.map +1 -0
  573. package/dist/presentation/tui/cockpit/CockpitScreenDefaults.js +6 -0
  574. package/dist/presentation/tui/cockpit/CockpitScreenDefaults.js.map +1 -0
  575. package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.d.ts +12 -0
  576. package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.d.ts.map +1 -0
  577. package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.js +16 -0
  578. package/dist/presentation/tui/cockpit/CockpitUnprimedCopy.js.map +1 -0
  579. package/dist/presentation/tui/cockpit/CockpitUnprimedView.d.ts +3 -0
  580. package/dist/presentation/tui/cockpit/CockpitUnprimedView.d.ts.map +1 -0
  581. package/dist/presentation/tui/cockpit/CockpitUnprimedView.js +28 -0
  582. package/dist/presentation/tui/cockpit/CockpitUnprimedView.js.map +1 -0
  583. package/dist/presentation/tui/cockpit/DaemonFrameViews.d.ts +17 -0
  584. package/dist/presentation/tui/cockpit/DaemonFrameViews.d.ts.map +1 -0
  585. package/dist/presentation/tui/cockpit/DaemonFrameViews.js +20 -0
  586. package/dist/presentation/tui/cockpit/DaemonFrameViews.js.map +1 -0
  587. package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.d.ts +4 -0
  588. package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.d.ts.map +1 -0
  589. package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.js +14 -0
  590. package/dist/presentation/tui/cockpit/DaemonPanelStatusLabel.js.map +1 -0
  591. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.d.ts +11 -0
  592. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.d.ts.map +1 -0
  593. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.js +15 -0
  594. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonConstants.js.map +1 -0
  595. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.d.ts +4 -0
  596. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.d.ts.map +1 -0
  597. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.js +7 -0
  598. package/dist/presentation/tui/cockpit/daemons/CodifierDaemonFrame.js.map +1 -0
  599. package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.d.ts +11 -0
  600. package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.d.ts.map +1 -0
  601. package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.js +2 -0
  602. package/dist/presentation/tui/cockpit/daemons/IDaemonConstants.js.map +1 -0
  603. package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.d.ts +11 -0
  604. package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.d.ts.map +1 -0
  605. package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.js +2 -0
  606. package/dist/presentation/tui/cockpit/daemons/IDaemonFrame.js.map +1 -0
  607. package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.d.ts +7 -0
  608. package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.d.ts.map +1 -0
  609. package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.js +2 -0
  610. package/dist/presentation/tui/cockpit/daemons/IDaemonUiDefinition.js.map +1 -0
  611. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.d.ts +11 -0
  612. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.d.ts.map +1 -0
  613. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.js +15 -0
  614. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonConstants.js.map +1 -0
  615. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.d.ts +4 -0
  616. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.d.ts.map +1 -0
  617. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.js +7 -0
  618. package/dist/presentation/tui/cockpit/daemons/RefinerDaemonFrame.js.map +1 -0
  619. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.d.ts +11 -0
  620. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.d.ts.map +1 -0
  621. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.js +16 -0
  622. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonConstants.js.map +1 -0
  623. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.d.ts +4 -0
  624. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.d.ts.map +1 -0
  625. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.js +7 -0
  626. package/dist/presentation/tui/cockpit/daemons/ReviewerDaemonFrame.js.map +1 -0
  627. package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.d.ts +18 -0
  628. package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.d.ts.map +1 -0
  629. package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.js +2 -0
  630. package/dist/presentation/tui/daemon-subprocesses/ISubprocessManager.js.map +1 -0
  631. package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.d.ts +11 -0
  632. package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.d.ts.map +1 -0
  633. package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.js +31 -0
  634. package/dist/presentation/tui/daemon-subprocesses/NoOpSubprocessManager.js.map +1 -0
  635. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.d.ts +3 -0
  636. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.d.ts.map +1 -0
  637. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.js +4 -0
  638. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerContext.js.map +1 -0
  639. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.d.ts +8 -0
  640. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.d.ts.map +1 -0
  641. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.js +6 -0
  642. package/dist/presentation/tui/daemon-subprocesses/SubprocessManagerProvider.js.map +1 -0
  643. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.d.ts +2 -0
  644. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.d.ts.map +1 -0
  645. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.js +2 -0
  646. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonConfig.js.map +1 -0
  647. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.d.ts +6 -0
  648. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.d.ts.map +1 -0
  649. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.js +2 -0
  650. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonCounts.js.map +1 -0
  651. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.d.ts +7 -0
  652. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.d.ts.map +1 -0
  653. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.js +8 -0
  654. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventCategory.js.map +1 -0
  655. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.d.ts +15 -0
  656. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.d.ts.map +1 -0
  657. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.js +2 -0
  658. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventSnapshot.js.map +1 -0
  659. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.d.ts +14 -0
  660. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.d.ts.map +1 -0
  661. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.js +13 -0
  662. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonEventStatus.js.map +1 -0
  663. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.d.ts +2 -0
  664. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.d.ts.map +1 -0
  665. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.js +2 -0
  666. package/dist/presentation/tui/daemon-subprocesses/TuiDaemonName.js.map +1 -0
  667. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.d.ts +16 -0
  668. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.d.ts.map +1 -0
  669. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.js +16 -0
  670. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessCopy.js.map +1 -0
  671. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.d.ts +22 -0
  672. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.d.ts.map +1 -0
  673. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.js +299 -0
  674. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessManager.js.map +1 -0
  675. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.d.ts +17 -0
  676. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.d.ts.map +1 -0
  677. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.js +2 -0
  678. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessSnapshot.js.map +1 -0
  679. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.d.ts +7 -0
  680. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.d.ts.map +1 -0
  681. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.js +6 -0
  682. package/dist/presentation/tui/daemon-subprocesses/TuiSubprocessStatus.js.map +1 -0
  683. package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.d.ts +3 -0
  684. package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.d.ts.map +1 -0
  685. package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.js +6 -0
  686. package/dist/presentation/tui/daemon-subprocesses/useSubprocessManager.js.map +1 -0
  687. package/dist/presentation/tui/goals/Constants.d.ts +2 -0
  688. package/dist/presentation/tui/goals/Constants.d.ts.map +1 -0
  689. package/dist/presentation/tui/goals/Constants.js +2 -0
  690. package/dist/presentation/tui/goals/Constants.js.map +1 -0
  691. package/dist/presentation/tui/goals/GoalAuthoringFlow.d.ts +22 -0
  692. package/dist/presentation/tui/goals/GoalAuthoringFlow.d.ts.map +1 -0
  693. package/dist/presentation/tui/goals/GoalAuthoringFlow.js +219 -0
  694. package/dist/presentation/tui/goals/GoalAuthoringFlow.js.map +1 -0
  695. package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.d.ts +79 -0
  696. package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.d.ts.map +1 -0
  697. package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.js +84 -0
  698. package/dist/presentation/tui/goals/GoalAuthoringFlowConstants.js.map +1 -0
  699. package/dist/presentation/tui/goals/GoalsScreen.d.ts +3 -0
  700. package/dist/presentation/tui/goals/GoalsScreen.d.ts.map +1 -0
  701. package/dist/presentation/tui/goals/GoalsScreen.js +151 -0
  702. package/dist/presentation/tui/goals/GoalsScreen.js.map +1 -0
  703. package/dist/presentation/tui/goals/GoalsScreenConstants.d.ts +33 -0
  704. package/dist/presentation/tui/goals/GoalsScreenConstants.d.ts.map +1 -0
  705. package/dist/presentation/tui/goals/GoalsScreenConstants.js +41 -0
  706. package/dist/presentation/tui/goals/GoalsScreenConstants.js.map +1 -0
  707. package/dist/presentation/tui/index.d.ts +10 -0
  708. package/dist/presentation/tui/index.d.ts.map +1 -0
  709. package/dist/presentation/tui/index.js +6 -0
  710. package/dist/presentation/tui/index.js.map +1 -0
  711. package/dist/presentation/tui/memory/MemoryScreen.d.ts +3 -0
  712. package/dist/presentation/tui/memory/MemoryScreen.d.ts.map +1 -0
  713. package/dist/presentation/tui/memory/MemoryScreen.js +19 -0
  714. package/dist/presentation/tui/memory/MemoryScreen.js.map +1 -0
  715. package/dist/presentation/tui/memory/components/ComponentAddFlow.d.ts +14 -0
  716. package/dist/presentation/tui/memory/components/ComponentAddFlow.d.ts.map +1 -0
  717. package/dist/presentation/tui/memory/components/ComponentAddFlow.js +46 -0
  718. package/dist/presentation/tui/memory/components/ComponentAddFlow.js.map +1 -0
  719. package/dist/presentation/tui/memory/components/ComponentsScreen.d.ts +3 -0
  720. package/dist/presentation/tui/memory/components/ComponentsScreen.d.ts.map +1 -0
  721. package/dist/presentation/tui/memory/components/ComponentsScreen.js +21 -0
  722. package/dist/presentation/tui/memory/components/ComponentsScreen.js.map +1 -0
  723. package/dist/presentation/tui/memory/decisions/DecisionAddFlow.d.ts +15 -0
  724. package/dist/presentation/tui/memory/decisions/DecisionAddFlow.d.ts.map +1 -0
  725. package/dist/presentation/tui/memory/decisions/DecisionAddFlow.js +63 -0
  726. package/dist/presentation/tui/memory/decisions/DecisionAddFlow.js.map +1 -0
  727. package/dist/presentation/tui/memory/decisions/DecisionsScreen.d.ts +3 -0
  728. package/dist/presentation/tui/memory/decisions/DecisionsScreen.d.ts.map +1 -0
  729. package/dist/presentation/tui/memory/decisions/DecisionsScreen.js +22 -0
  730. package/dist/presentation/tui/memory/decisions/DecisionsScreen.js.map +1 -0
  731. package/dist/presentation/tui/memory/dependencies/DependenciesScreen.d.ts +3 -0
  732. package/dist/presentation/tui/memory/dependencies/DependenciesScreen.d.ts.map +1 -0
  733. package/dist/presentation/tui/memory/dependencies/DependenciesScreen.js +23 -0
  734. package/dist/presentation/tui/memory/dependencies/DependenciesScreen.js.map +1 -0
  735. package/dist/presentation/tui/memory/dependencies/DependencyAddFlow.d.ts +16 -0
  736. package/dist/presentation/tui/memory/dependencies/DependencyAddFlow.d.ts.map +1 -0
  737. package/dist/presentation/tui/memory/dependencies/DependencyAddFlow.js +56 -0
  738. package/dist/presentation/tui/memory/dependencies/DependencyAddFlow.js.map +1 -0
  739. package/dist/presentation/tui/memory/entity-browser/EntityColumn.d.ts +14 -0
  740. package/dist/presentation/tui/memory/entity-browser/EntityColumn.d.ts.map +1 -0
  741. package/dist/presentation/tui/memory/entity-browser/EntityColumn.js +24 -0
  742. package/dist/presentation/tui/memory/entity-browser/EntityColumn.js.map +1 -0
  743. package/dist/presentation/tui/memory/entity-browser/EntityDetailView.d.ts +10 -0
  744. package/dist/presentation/tui/memory/entity-browser/EntityDetailView.d.ts.map +1 -0
  745. package/dist/presentation/tui/memory/entity-browser/EntityDetailView.js +141 -0
  746. package/dist/presentation/tui/memory/entity-browser/EntityDetailView.js.map +1 -0
  747. package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.d.ts +13 -0
  748. package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.d.ts.map +1 -0
  749. package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.js +107 -0
  750. package/dist/presentation/tui/memory/entity-browser/MemoryEntityScreen.js.map +1 -0
  751. package/dist/presentation/tui/memory/entity-browser/MemoryEntityShapes.d.ts +41 -0
  752. package/dist/presentation/tui/memory/entity-browser/MemoryEntityShapes.d.ts.map +1 -0
  753. package/dist/presentation/tui/memory/entity-browser/MemoryEntityShapes.js +2 -0
  754. package/dist/presentation/tui/memory/entity-browser/MemoryEntityShapes.js.map +1 -0
  755. package/dist/presentation/tui/memory/guidelines/GuidelineAddFlow.d.ts +15 -0
  756. package/dist/presentation/tui/memory/guidelines/GuidelineAddFlow.d.ts.map +1 -0
  757. package/dist/presentation/tui/memory/guidelines/GuidelineAddFlow.js +57 -0
  758. package/dist/presentation/tui/memory/guidelines/GuidelineAddFlow.js.map +1 -0
  759. package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.d.ts +3 -0
  760. package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.d.ts.map +1 -0
  761. package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.js +22 -0
  762. package/dist/presentation/tui/memory/guidelines/GuidelinesScreen.js.map +1 -0
  763. package/dist/presentation/tui/memory/invariants/InvariantAddFlow.d.ts +13 -0
  764. package/dist/presentation/tui/memory/invariants/InvariantAddFlow.d.ts.map +1 -0
  765. package/dist/presentation/tui/memory/invariants/InvariantAddFlow.js +41 -0
  766. package/dist/presentation/tui/memory/invariants/InvariantAddFlow.js.map +1 -0
  767. package/dist/presentation/tui/memory/invariants/InvariantsScreen.d.ts +3 -0
  768. package/dist/presentation/tui/memory/invariants/InvariantsScreen.d.ts.map +1 -0
  769. package/dist/presentation/tui/memory/invariants/InvariantsScreen.js +20 -0
  770. package/dist/presentation/tui/memory/invariants/InvariantsScreen.js.map +1 -0
  771. package/dist/presentation/tui/navigation/MegaMenu.d.ts +10 -0
  772. package/dist/presentation/tui/navigation/MegaMenu.d.ts.map +1 -0
  773. package/dist/presentation/tui/navigation/MegaMenu.js +179 -0
  774. package/dist/presentation/tui/navigation/MegaMenu.js.map +1 -0
  775. package/dist/presentation/tui/navigation/MegaMenuDefinitions.d.ts +17 -0
  776. package/dist/presentation/tui/navigation/MegaMenuDefinitions.d.ts.map +1 -0
  777. package/dist/presentation/tui/navigation/MegaMenuDefinitions.js +207 -0
  778. package/dist/presentation/tui/navigation/MegaMenuDefinitions.js.map +1 -0
  779. package/dist/presentation/tui/navigation/ScreenDefinitions.d.ts +36 -0
  780. package/dist/presentation/tui/navigation/ScreenDefinitions.d.ts.map +1 -0
  781. package/dist/presentation/tui/navigation/ScreenDefinitions.js +12 -0
  782. package/dist/presentation/tui/navigation/ScreenDefinitions.js.map +1 -0
  783. package/dist/presentation/tui/navigation/ScreenRouter.d.ts +19 -0
  784. package/dist/presentation/tui/navigation/ScreenRouter.d.ts.map +1 -0
  785. package/dist/presentation/tui/navigation/ScreenRouter.js +32 -0
  786. package/dist/presentation/tui/navigation/ScreenRouter.js.map +1 -0
  787. package/dist/presentation/tui/project-initialization/Constants.d.ts +140 -0
  788. package/dist/presentation/tui/project-initialization/Constants.d.ts.map +1 -0
  789. package/dist/presentation/tui/project-initialization/Constants.js +140 -0
  790. package/dist/presentation/tui/project-initialization/Constants.js.map +1 -0
  791. package/dist/presentation/tui/project-initialization/InitFlow.d.ts +24 -0
  792. package/dist/presentation/tui/project-initialization/InitFlow.d.ts.map +1 -0
  793. package/dist/presentation/tui/project-initialization/InitFlow.js +650 -0
  794. package/dist/presentation/tui/project-initialization/InitFlow.js.map +1 -0
  795. package/dist/presentation/tui/sessions/SessionScreen.d.ts +3 -0
  796. package/dist/presentation/tui/sessions/SessionScreen.d.ts.map +1 -0
  797. package/dist/presentation/tui/sessions/SessionScreen.js +79 -0
  798. package/dist/presentation/tui/sessions/SessionScreen.js.map +1 -0
  799. package/dist/presentation/tui/state-reading/TuiStateReader.d.ts +58 -0
  800. package/dist/presentation/tui/state-reading/TuiStateReader.d.ts.map +1 -0
  801. package/dist/presentation/tui/state-reading/TuiStateReader.js +152 -0
  802. package/dist/presentation/tui/state-reading/TuiStateReader.js.map +1 -0
  803. package/dist/presentation/tui/ui-primitives/DetailPane.d.ts +15 -0
  804. package/dist/presentation/tui/ui-primitives/DetailPane.d.ts.map +1 -0
  805. package/dist/presentation/tui/ui-primitives/DetailPane.js +12 -0
  806. package/dist/presentation/tui/ui-primitives/DetailPane.js.map +1 -0
  807. package/dist/presentation/tui/ui-primitives/KeyBadge.d.ts +11 -0
  808. package/dist/presentation/tui/ui-primitives/KeyBadge.d.ts.map +1 -0
  809. package/dist/presentation/tui/ui-primitives/KeyBadge.js +9 -0
  810. package/dist/presentation/tui/ui-primitives/KeyBadge.js.map +1 -0
  811. package/dist/presentation/tui/ui-primitives/ListPanel.d.ts +16 -0
  812. package/dist/presentation/tui/ui-primitives/ListPanel.d.ts.map +1 -0
  813. package/dist/presentation/tui/ui-primitives/ListPanel.js +16 -0
  814. package/dist/presentation/tui/ui-primitives/ListPanel.js.map +1 -0
  815. package/dist/presentation/tui/ui-primitives/ListPanelConstants.d.ts +4 -0
  816. package/dist/presentation/tui/ui-primitives/ListPanelConstants.d.ts.map +1 -0
  817. package/dist/presentation/tui/ui-primitives/ListPanelConstants.js +4 -0
  818. package/dist/presentation/tui/ui-primitives/ListPanelConstants.js.map +1 -0
  819. package/dist/presentation/tui/ui-primitives/Panel.d.ts +15 -0
  820. package/dist/presentation/tui/ui-primitives/Panel.d.ts.map +1 -0
  821. package/dist/presentation/tui/ui-primitives/Panel.js +9 -0
  822. package/dist/presentation/tui/ui-primitives/Panel.js.map +1 -0
  823. package/dist/presentation/tui/ui-primitives/SectionHeading.d.ts +8 -0
  824. package/dist/presentation/tui/ui-primitives/SectionHeading.d.ts.map +1 -0
  825. package/dist/presentation/tui/ui-primitives/SectionHeading.js +9 -0
  826. package/dist/presentation/tui/ui-primitives/SectionHeading.js.map +1 -0
  827. package/dist/presentation/tui/ui-primitives/StatusIndicator.d.ts +9 -0
  828. package/dist/presentation/tui/ui-primitives/StatusIndicator.d.ts.map +1 -0
  829. package/dist/presentation/tui/ui-primitives/StatusIndicator.js +21 -0
  830. package/dist/presentation/tui/ui-primitives/StatusIndicator.js.map +1 -0
  831. package/dist/presentation/tui/ui-primitives/Tumbler.d.ts +18 -0
  832. package/dist/presentation/tui/ui-primitives/Tumbler.d.ts.map +1 -0
  833. package/dist/presentation/tui/ui-primitives/Tumbler.js +102 -0
  834. package/dist/presentation/tui/ui-primitives/Tumbler.js.map +1 -0
  835. package/dist/presentation/tui/ui-primitives/TumblerConstants.d.ts +4 -0
  836. package/dist/presentation/tui/ui-primitives/TumblerConstants.d.ts.map +1 -0
  837. package/dist/presentation/tui/ui-primitives/TumblerConstants.js +4 -0
  838. package/dist/presentation/tui/ui-primitives/TumblerConstants.js.map +1 -0
  839. package/dist/presentation/tui/wizard/Wizard.d.ts +54 -0
  840. package/dist/presentation/tui/wizard/Wizard.d.ts.map +1 -0
  841. package/dist/presentation/tui/wizard/Wizard.js +412 -0
  842. package/dist/presentation/tui/wizard/Wizard.js.map +1 -0
  843. package/dist/presentation/tui/wizard/WizardConstants.d.ts +27 -0
  844. package/dist/presentation/tui/wizard/WizardConstants.d.ts.map +1 -0
  845. package/dist/presentation/tui/wizard/WizardConstants.js +26 -0
  846. package/dist/presentation/tui/wizard/WizardConstants.js.map +1 -0
  847. package/dist/presentation/tui/wizard/WizardTextInput.d.ts +12 -0
  848. package/dist/presentation/tui/wizard/WizardTextInput.d.ts.map +1 -0
  849. package/dist/presentation/tui/wizard/WizardTextInput.js +39 -0
  850. package/dist/presentation/tui/wizard/WizardTextInput.js.map +1 -0
  851. package/dist/presentation/work/codifier.daemon.d.ts +3 -0
  852. package/dist/presentation/work/codifier.daemon.d.ts.map +1 -0
  853. package/dist/presentation/work/codifier.daemon.js +94 -0
  854. package/dist/presentation/work/codifier.daemon.js.map +1 -0
  855. package/dist/presentation/work/refiner.daemon.d.ts +3 -0
  856. package/dist/presentation/work/refiner.daemon.d.ts.map +1 -0
  857. package/dist/presentation/work/refiner.daemon.js +79 -0
  858. package/dist/presentation/work/refiner.daemon.js.map +1 -0
  859. package/dist/presentation/work/reviewer.daemon.d.ts +3 -0
  860. package/dist/presentation/work/reviewer.daemon.d.ts.map +1 -0
  861. package/dist/presentation/work/reviewer.daemon.js +79 -0
  862. package/dist/presentation/work/reviewer.daemon.js.map +1 -0
  863. package/package.json +5 -1
  864. package/dist/application/context/project/get/ContextualProjectView.d.ts +0 -24
  865. package/dist/application/context/project/get/ContextualProjectView.d.ts.map +0 -1
  866. package/dist/application/context/project/get/ContextualProjectView.js +0 -2
  867. package/dist/application/context/project/get/ContextualProjectView.js.map +0 -1
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { Box, Text } from "ink";
3
+ import { SemanticColors, TuiGlyphs } from "../../shared/DesignTokens.js";
4
+ const STATUS_COLORS = {
5
+ active: SemanticColors.success,
6
+ idle: SemanticColors.info,
7
+ off: SemanticColors.muted,
8
+ error: SemanticColors.error,
9
+ };
10
+ export function StatusIndicator({ label, status, }) {
11
+ const color = STATUS_COLORS[status];
12
+ return (React.createElement(Box, null,
13
+ React.createElement(Text, { color: color },
14
+ TuiGlyphs.filledCircle,
15
+ " "),
16
+ React.createElement(Text, { color: SemanticColors.primary },
17
+ label,
18
+ ": "),
19
+ React.createElement(Text, { color: color }, status)));
20
+ }
21
+ //# sourceMappingURL=StatusIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusIndicator.js","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAIzE,MAAM,aAAa,GAAgC;IACjD,MAAM,EAAE,cAAc,CAAC,OAAO;IAC9B,IAAI,EAAE,cAAc,CAAC,IAAI;IACzB,GAAG,EAAE,cAAc,CAAC,KAAK;IACzB,KAAK,EAAE,cAAc,CAAC,KAAK;CAC5B,CAAC;AAOF,MAAM,UAAU,eAAe,CAAC,EAC9B,KAAK,EACL,MAAM,GACe;IACrB,MAAM,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAEpC,OAAO,CACL,oBAAC,GAAG;QACF,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK;YAAG,SAAS,CAAC,YAAY;gBAAS;QACpD,oBAAC,IAAI,IAAC,KAAK,EAAE,cAAc,CAAC,OAAO;YAAG,KAAK;iBAAU;QACrD,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,IAAG,MAAM,CAAQ,CAC/B,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ export interface TumblerItem {
3
+ readonly key: string;
4
+ readonly value: string;
5
+ }
6
+ export interface TumblerProps {
7
+ readonly title?: string;
8
+ readonly items: readonly TumblerItem[];
9
+ readonly initialFocusedKey?: string;
10
+ readonly visibleCount?: number;
11
+ readonly maxDisplayLength?: number;
12
+ readonly width?: number;
13
+ readonly isActive?: boolean;
14
+ readonly emptyMessage?: string;
15
+ readonly onFocusedItemChange?: (item: TumblerItem) => void;
16
+ }
17
+ export declare function Tumbler({ title, items, initialFocusedKey, visibleCount, maxDisplayLength, width, isActive, emptyMessage, onFocusedItemChange, }: TumblerProps): React.ReactElement;
18
+ //# sourceMappingURL=Tumbler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tumbler.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/Tumbler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IACvC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CAC5D;AAkFD,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,YAAgB,EAChB,gBAAgB,EAChB,KAAgC,EAChC,QAAe,EACf,YAAuC,EACvC,mBAAmB,GACpB,EAAE,YAAY,GAAG,KAAK,CAAC,YAAY,CA4FnC"}
@@ -0,0 +1,102 @@
1
+ import React, { useEffect, useMemo, useState } from "react";
2
+ import { Box, Text, useInput } from "ink";
3
+ import { BaseColors, SemanticColors, TuiGlyphs, TuiLayout, } from "../../shared/DesignTokens.js";
4
+ import { Panel } from "./Panel.js";
5
+ import { TumblerCopy } from "./TumblerConstants.js";
6
+ function normalizeVisibleCount(visibleCount) {
7
+ const wholeCount = Math.max(1, Math.floor(visibleCount));
8
+ return wholeCount % 2 === 0 ? wholeCount + 1 : wholeCount;
9
+ }
10
+ function focusedIndexForKey(items, initialFocusedKey) {
11
+ if (!initialFocusedKey) {
12
+ return 0;
13
+ }
14
+ const requestedIndex = items.findIndex((item) => item.key === initialFocusedKey);
15
+ return requestedIndex < 0 ? 0 : requestedIndex;
16
+ }
17
+ function wrapIndex(index, itemCount) {
18
+ return (index + itemCount) % itemCount;
19
+ }
20
+ function getVisibleRows(items, focusedIndex, visibleCount) {
21
+ if (items.length === 0) {
22
+ return [];
23
+ }
24
+ const normalizedVisibleCount = Math.min(normalizeVisibleCount(visibleCount), items.length);
25
+ const radius = Math.floor(normalizedVisibleCount / 2);
26
+ return Array.from({ length: normalizedVisibleCount }, (_, rowIndex) => {
27
+ const distanceFromFocus = rowIndex - radius;
28
+ return {
29
+ item: items[wrapIndex(focusedIndex + distanceFromFocus, items.length)],
30
+ distanceFromFocus,
31
+ };
32
+ });
33
+ }
34
+ function colorForDistance(distanceFromFocus) {
35
+ const distance = Math.abs(distanceFromFocus);
36
+ if (distance === 0) {
37
+ return SemanticColors.primary;
38
+ }
39
+ if (distance === 1) {
40
+ return BaseColors.shade4;
41
+ }
42
+ return BaseColors.shade6;
43
+ }
44
+ function truncateValue(value, maxDisplayLength) {
45
+ if (maxDisplayLength === undefined) {
46
+ return value;
47
+ }
48
+ const normalizedMaxLength = Math.max(0, Math.floor(maxDisplayLength));
49
+ if (value.length <= normalizedMaxLength) {
50
+ return value;
51
+ }
52
+ if (normalizedMaxLength <= 3) {
53
+ return ".".repeat(normalizedMaxLength);
54
+ }
55
+ return `${value.slice(0, normalizedMaxLength - 3)}...`;
56
+ }
57
+ export function Tumbler({ title, items, initialFocusedKey, visibleCount = 5, maxDisplayLength, width = TuiLayout.listPanelWidth, isActive = true, emptyMessage = TumblerCopy.emptyMessage, onFocusedItemChange, }) {
58
+ const [focusedIndex, setFocusedIndex] = useState(() => focusedIndexForKey(items, initialFocusedKey));
59
+ const normalizedVisibleCount = normalizeVisibleCount(visibleCount);
60
+ useEffect(() => {
61
+ setFocusedIndex((currentIndex) => {
62
+ if (items.length === 0) {
63
+ return 0;
64
+ }
65
+ return Math.min(currentIndex, items.length - 1);
66
+ });
67
+ }, [items.length]);
68
+ useInput((_input, key) => {
69
+ if (items.length === 0) {
70
+ return;
71
+ }
72
+ if (key.upArrow) {
73
+ setFocusedIndex((currentIndex) => wrapIndex(currentIndex - 1, items.length));
74
+ return;
75
+ }
76
+ if (key.downArrow) {
77
+ setFocusedIndex((currentIndex) => wrapIndex(currentIndex + 1, items.length));
78
+ }
79
+ }, { isActive });
80
+ const visibleRows = useMemo(() => getVisibleRows(items, focusedIndex, normalizedVisibleCount), [focusedIndex, items, normalizedVisibleCount]);
81
+ const focusedItem = items[focusedIndex];
82
+ useEffect(() => {
83
+ if (focusedItem) {
84
+ onFocusedItemChange?.(focusedItem);
85
+ }
86
+ }, [focusedItem, onFocusedItemChange]);
87
+ const content = items.length === 0 ? (React.createElement(Text, { color: SemanticColors.muted, italic: true }, emptyMessage)) : (React.createElement(Box, { flexDirection: "column" }, visibleRows.map(({ item, distanceFromFocus }) => {
88
+ const isFocused = distanceFromFocus === 0;
89
+ return (React.createElement(Box, { key: `${item.key}-${distanceFromFocus}` },
90
+ React.createElement(Text, { color: isActive && isFocused
91
+ ? BaseColors.brandBlue
92
+ : colorForDistance(distanceFromFocus), bold: isFocused },
93
+ isFocused ? TuiGlyphs.selector : " ",
94
+ " "),
95
+ React.createElement(Text, { color: colorForDistance(distanceFromFocus), bold: isFocused }, truncateValue(item.value, maxDisplayLength))));
96
+ })));
97
+ if (title) {
98
+ return (React.createElement(Panel, { title: title, width: width }, content));
99
+ }
100
+ return (React.createElement(Box, { flexDirection: "column", width: width }, content));
101
+ }
102
+ //# sourceMappingURL=Tumbler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tumbler.js","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/Tumbler.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ export declare const TumblerCopy: {
2
+ readonly emptyMessage: "No items";
3
+ };
4
+ //# sourceMappingURL=TumblerConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TumblerConstants.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/TumblerConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;CAEd,CAAC"}
@@ -0,0 +1,4 @@
1
+ export const TumblerCopy = {
2
+ emptyMessage: "No items",
3
+ };
4
+ //# sourceMappingURL=TumblerConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TumblerConstants.js","sourceRoot":"","sources":["../../../../src/presentation/tui/ui-primitives/TumblerConstants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,YAAY,EAAE,UAAU;CAChB,CAAC"}
@@ -0,0 +1,54 @@
1
+ import React from "react";
2
+ import { type WizardFieldKindValue } from "./WizardConstants.js";
3
+ export interface WizardStepField {
4
+ readonly key: string;
5
+ readonly label: string;
6
+ readonly placeholder?: string;
7
+ readonly kind?: WizardFieldKindValue;
8
+ readonly options?: readonly WizardStepFieldOption[];
9
+ readonly defaultValue?: string;
10
+ readonly required?: boolean;
11
+ readonly validate?: (value: string, values: Record<string, string>) => string | null;
12
+ }
13
+ export interface WizardStepFieldOption {
14
+ readonly value: string;
15
+ readonly label: string;
16
+ }
17
+ export interface WizardStepDefinition {
18
+ readonly title: string;
19
+ readonly description?: string;
20
+ readonly fields: readonly WizardStepField[];
21
+ }
22
+ export interface WizardProps {
23
+ readonly title: string;
24
+ readonly steps: readonly WizardStepDefinition[];
25
+ readonly onConfirm: (values: Record<string, string>) => void;
26
+ readonly onCancel: () => void;
27
+ readonly onBack?: () => void;
28
+ readonly initialStepIndex?: number;
29
+ readonly initialValues?: Readonly<Record<string, string>>;
30
+ readonly dispatchError?: string | null;
31
+ readonly disabled?: boolean;
32
+ readonly progressLabel?: string | WizardProgressLabelResolver;
33
+ readonly extraHints?: readonly WizardFooterHint[];
34
+ readonly onInput?: (input: string, key: WizardInputKey) => boolean;
35
+ }
36
+ export interface WizardFooterHint {
37
+ readonly char: string;
38
+ readonly label: string;
39
+ }
40
+ export type WizardProgressLabelResolver = (currentStepIndex: number, totalSteps: number) => string | undefined;
41
+ export interface WizardInputKey {
42
+ readonly upArrow?: boolean;
43
+ readonly downArrow?: boolean;
44
+ readonly leftArrow?: boolean;
45
+ readonly rightArrow?: boolean;
46
+ readonly return?: boolean;
47
+ readonly escape?: boolean;
48
+ readonly tab?: boolean;
49
+ readonly shift?: boolean;
50
+ readonly ctrl?: boolean;
51
+ readonly meta?: boolean;
52
+ }
53
+ export declare function Wizard({ title, steps, onConfirm, onCancel, onBack, initialStepIndex, initialValues, dispatchError, disabled, progressLabel, extraHints, onInput, }: WizardProps): React.ReactElement;
54
+ //# sourceMappingURL=Wizard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Wizard.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tui/wizard/Wizard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AASjE,OAAO,EAKL,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,oBAAoB,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACpD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,GAAG,IAAI,CAAC;CACtF;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAChD,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAC7D,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAC;IAC9D,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAClD,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC;CACpE;AAQD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,2BAA2B,GAAG,CACxC,gBAAgB,EAAE,MAAM,EACxB,UAAU,EAAE,MAAM,KACf,MAAM,GAAG,SAAS,CAAC;AAExB,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,MAAM,EACN,gBAAoB,EACpB,aAAkB,EAClB,aAAoB,EACpB,QAAgB,EAChB,aAAa,EACb,UAAe,EACf,OAAO,GACR,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CAielC"}
@@ -0,0 +1,412 @@
1
+ import React, { useState, useRef, useLayoutEffect } from "react";
2
+ import { Box, Text, useInput, measureElement } from "ink";
3
+ import { BaseColors, SemanticColors, TuiGlyphs, } from "../../shared/DesignTokens.js";
4
+ import { KeyBadge } from "../ui-primitives/KeyBadge.js";
5
+ import { WizardTextInput } from "./WizardTextInput.js";
6
+ import { WizardFieldKind, WizardKeyboardHintCopy, WizardKeyboardHintKey, WizardValidationCopy, } from "./WizardConstants.js";
7
+ const OVERLAY_MIN_WIDTH = 88;
8
+ const YES_NO_VALUES = {
9
+ yes: "yes",
10
+ no: "no",
11
+ };
12
+ export function Wizard({ title, steps, onConfirm, onCancel, onBack, initialStepIndex = 0, initialValues = {}, dispatchError = null, disabled = false, progressLabel, extraHints = [], onInput, }) {
13
+ const boundedInitialStepIndex = Math.min(Math.max(initialStepIndex, 0), Math.max(steps.length - 1, 0));
14
+ const initialValuesWithDefaults = withStepDefaultValues(steps[boundedInitialStepIndex]?.fields ?? [], { ...initialValues });
15
+ const [currentStepIndex, setCurrentStepIndex] = useState(boundedInitialStepIndex);
16
+ const [values, setValues] = useState({
17
+ ...initialValuesWithDefaults,
18
+ });
19
+ const valuesRef = useRef({
20
+ ...initialValuesWithDefaults,
21
+ });
22
+ const [activeFieldIndex, setActiveFieldIndex] = useState(0);
23
+ const activeFieldRef = useRef(0);
24
+ const stepIndexRef = useRef(boundedInitialStepIndex);
25
+ const [focusedOptionIndexes, setFocusedOptionIndexes] = useState({});
26
+ const focusedOptionIndexesRef = useRef({});
27
+ const [validationErrors, setValidationErrors] = useState({});
28
+ const panelRef = useRef(null);
29
+ const [innerWidth, setInnerWidth] = useState(OVERLAY_MIN_WIDTH - 8);
30
+ const initialValuesKey = JSON.stringify(initialValues);
31
+ useLayoutEffect(() => {
32
+ const nextStepIndex = Math.min(Math.max(initialStepIndex, 0), Math.max(steps.length - 1, 0));
33
+ const nextValues = withStepDefaultValues(steps[nextStepIndex]?.fields ?? [], { ...initialValues });
34
+ stepIndexRef.current = nextStepIndex;
35
+ activeFieldRef.current = 0;
36
+ valuesRef.current = nextValues;
37
+ focusedOptionIndexesRef.current = {};
38
+ setCurrentStepIndex(nextStepIndex);
39
+ setActiveFieldIndex(0);
40
+ setValues({ ...nextValues });
41
+ setFocusedOptionIndexes({});
42
+ setValidationErrors({});
43
+ }, [initialStepIndex, initialValuesKey, steps]);
44
+ useLayoutEffect(() => {
45
+ if (panelRef.current) {
46
+ const { width } = measureElement(panelRef.current);
47
+ const inner = Math.max(1, width - 8);
48
+ if (inner !== innerWidth) {
49
+ setInnerWidth(inner);
50
+ }
51
+ }
52
+ });
53
+ const renderedStepIndex = Math.min(Math.max(currentStepIndex, 0), Math.max(steps.length - 1, 0));
54
+ const currentStep = steps[renderedStepIndex];
55
+ const isFirstStep = renderedStepIndex === 0;
56
+ const isLastStep = renderedStepIndex === steps.length - 1;
57
+ const totalSteps = steps.length;
58
+ const currentFields = currentStep.fields;
59
+ const activeField = currentFields[activeFieldIndex];
60
+ const showSpaceToggleHint = activeField?.kind === WizardFieldKind.MULTI_SELECT ||
61
+ activeField?.kind === WizardFieldKind.SINGLE_SELECT ||
62
+ activeField?.kind === WizardFieldKind.YES_NO;
63
+ const showBackHint = !isFirstStep || onBack !== undefined;
64
+ const footerProgressLabel = typeof progressLabel === "function"
65
+ ? progressLabel(renderedStepIndex, totalSteps) ??
66
+ `${renderedStepIndex + 1}/${totalSteps}`
67
+ : progressLabel ?? `${renderedStepIndex + 1}/${totalSteps}`;
68
+ const footerProgressWidth = footerProgressLabel.length;
69
+ const footerHintsWidth = Math.max(1, innerWidth - footerProgressWidth - 2);
70
+ const footerHints = [
71
+ ...(showBackHint
72
+ ? [
73
+ {
74
+ char: WizardKeyboardHintKey.back,
75
+ label: WizardKeyboardHintCopy.back,
76
+ compact: true,
77
+ },
78
+ ]
79
+ : []),
80
+ {
81
+ char: WizardKeyboardHintKey.submit,
82
+ label: disabled
83
+ ? WizardKeyboardHintCopy.working
84
+ : isLastStep
85
+ ? WizardKeyboardHintCopy.confirm
86
+ : WizardKeyboardHintCopy.next,
87
+ compact: true,
88
+ },
89
+ {
90
+ char: WizardKeyboardHintKey.cancel,
91
+ label: WizardKeyboardHintCopy.cancel,
92
+ compact: true,
93
+ },
94
+ ...(currentFields.length > 1
95
+ ? [
96
+ {
97
+ char: WizardKeyboardHintKey.field,
98
+ label: WizardKeyboardHintCopy.field,
99
+ compact: true,
100
+ },
101
+ ]
102
+ : []),
103
+ ...(showSpaceToggleHint
104
+ ? [
105
+ {
106
+ char: WizardKeyboardHintKey.toggle,
107
+ label: WizardKeyboardHintCopy.toggle,
108
+ compact: true,
109
+ },
110
+ ]
111
+ : []),
112
+ ...extraHints.map((hint) => ({ ...hint, compact: true })),
113
+ ];
114
+ const clearFieldError = (fieldKey) => {
115
+ if (validationErrors[fieldKey] !== undefined) {
116
+ const next = { ...validationErrors };
117
+ delete next[fieldKey];
118
+ setValidationErrors(next);
119
+ }
120
+ };
121
+ const handleFieldChange = (fieldKey, nextValue) => {
122
+ valuesRef.current = { ...valuesRef.current, [fieldKey]: nextValue };
123
+ setValues({ ...valuesRef.current });
124
+ clearFieldError(fieldKey);
125
+ };
126
+ const handleFocusedOptionIndexChange = (fieldKey, nextIndex) => {
127
+ focusedOptionIndexesRef.current = {
128
+ ...focusedOptionIndexesRef.current,
129
+ [fieldKey]: nextIndex,
130
+ };
131
+ setFocusedOptionIndexes({ ...focusedOptionIndexesRef.current });
132
+ };
133
+ useInput((input, key) => {
134
+ if (disabled) {
135
+ return;
136
+ }
137
+ if (key.escape) {
138
+ onCancel();
139
+ return;
140
+ }
141
+ if (onInput?.(input, key)) {
142
+ return;
143
+ }
144
+ const stepIdx = stepIndexRef.current;
145
+ const step = steps[stepIdx];
146
+ const fields = step.fields;
147
+ const fieldIdx = activeFieldRef.current;
148
+ const activeField = fields[fieldIdx];
149
+ const lastStep = stepIdx === steps.length - 1;
150
+ const navigateBack = () => {
151
+ if (stepIdx > 0) {
152
+ const prevIdx = stepIdx - 1;
153
+ stepIndexRef.current = prevIdx;
154
+ activeFieldRef.current = 0;
155
+ setCurrentStepIndex(prevIdx);
156
+ setActiveFieldIndex(0);
157
+ setValidationErrors({});
158
+ return;
159
+ }
160
+ onBack?.();
161
+ };
162
+ if (key.leftArrow && !input) {
163
+ navigateBack();
164
+ return;
165
+ }
166
+ if (key.tab && !key.shift) {
167
+ if (fieldIdx < fields.length - 1) {
168
+ activeFieldRef.current = fieldIdx + 1;
169
+ setActiveFieldIndex(fieldIdx + 1);
170
+ }
171
+ return;
172
+ }
173
+ if (key.tab && key.shift) {
174
+ if (fieldIdx > 0) {
175
+ activeFieldRef.current = fieldIdx - 1;
176
+ setActiveFieldIndex(fieldIdx - 1);
177
+ }
178
+ else {
179
+ navigateBack();
180
+ }
181
+ return;
182
+ }
183
+ if (activeField?.kind !== WizardFieldKind.MULTI_SELECT &&
184
+ activeField?.kind !== WizardFieldKind.SINGLE_SELECT &&
185
+ key.upArrow) {
186
+ if (fieldIdx > 0) {
187
+ activeFieldRef.current = fieldIdx - 1;
188
+ setActiveFieldIndex(fieldIdx - 1);
189
+ }
190
+ return;
191
+ }
192
+ if (activeField?.kind !== WizardFieldKind.MULTI_SELECT &&
193
+ activeField?.kind !== WizardFieldKind.SINGLE_SELECT &&
194
+ key.downArrow) {
195
+ if (fieldIdx < fields.length - 1) {
196
+ activeFieldRef.current = fieldIdx + 1;
197
+ setActiveFieldIndex(fieldIdx + 1);
198
+ }
199
+ return;
200
+ }
201
+ if (activeField?.kind === WizardFieldKind.YES_NO) {
202
+ if (input === "y" || input === "Y") {
203
+ handleFieldChange(activeField.key, YES_NO_VALUES.yes);
204
+ return;
205
+ }
206
+ if (input === "n" || input === "N") {
207
+ handleFieldChange(activeField.key, YES_NO_VALUES.no);
208
+ return;
209
+ }
210
+ if (input === " ") {
211
+ handleFieldChange(activeField.key, resolveFieldValue(activeField, valuesRef.current) === YES_NO_VALUES.yes
212
+ ? YES_NO_VALUES.no
213
+ : YES_NO_VALUES.yes);
214
+ return;
215
+ }
216
+ }
217
+ if (activeField?.kind === WizardFieldKind.MULTI_SELECT) {
218
+ const options = activeField.options ?? [];
219
+ const currentOptionIndex = focusedOptionIndexesRef.current[activeField.key] ?? 0;
220
+ if (key.upArrow && options.length > 0) {
221
+ handleFocusedOptionIndexChange(activeField.key, Math.max(currentOptionIndex - 1, 0));
222
+ return;
223
+ }
224
+ if (key.downArrow && options.length > 0) {
225
+ handleFocusedOptionIndexChange(activeField.key, Math.min(currentOptionIndex + 1, options.length - 1));
226
+ return;
227
+ }
228
+ if (input === " " && options[currentOptionIndex] !== undefined) {
229
+ handleFieldChange(activeField.key, toggleMultiSelectValue(resolveFieldValue(activeField, valuesRef.current), options[currentOptionIndex].value));
230
+ return;
231
+ }
232
+ }
233
+ if (activeField?.kind === WizardFieldKind.SINGLE_SELECT) {
234
+ const options = activeField.options ?? [];
235
+ const currentOptionIndex = focusedOptionIndexesRef.current[activeField.key] ?? 0;
236
+ if (key.upArrow && options.length > 0) {
237
+ const nextIndex = Math.max(currentOptionIndex - 1, 0);
238
+ handleFocusedOptionIndexChange(activeField.key, nextIndex);
239
+ handleFieldChange(activeField.key, options[nextIndex].value);
240
+ return;
241
+ }
242
+ if (key.downArrow && options.length > 0) {
243
+ const nextIndex = Math.min(currentOptionIndex + 1, options.length - 1);
244
+ handleFocusedOptionIndexChange(activeField.key, nextIndex);
245
+ handleFieldChange(activeField.key, options[nextIndex].value);
246
+ return;
247
+ }
248
+ if (input === " " && options[currentOptionIndex] !== undefined) {
249
+ handleFieldChange(activeField.key, options[currentOptionIndex].value);
250
+ return;
251
+ }
252
+ }
253
+ if (key.return) {
254
+ if (fieldIdx < fields.length - 1) {
255
+ activeFieldRef.current = fieldIdx + 1;
256
+ setActiveFieldIndex(fieldIdx + 1);
257
+ return;
258
+ }
259
+ const currentValues = withStepDefaultValues(fields, valuesRef.current);
260
+ const errors = {};
261
+ for (const field of fields) {
262
+ const fieldValue = resolveFieldValue(field, currentValues);
263
+ if (field.required !== false && fieldValue.trim().length === 0) {
264
+ errors[field.key] = WizardValidationCopy.required;
265
+ continue;
266
+ }
267
+ const validationError = field.validate?.(fieldValue, currentValues);
268
+ if (validationError !== undefined && validationError !== null) {
269
+ errors[field.key] = validationError;
270
+ }
271
+ }
272
+ if (Object.keys(errors).length > 0) {
273
+ setValidationErrors(errors);
274
+ return;
275
+ }
276
+ if (lastStep) {
277
+ onConfirm({ ...currentValues });
278
+ }
279
+ else {
280
+ const nextIdx = stepIdx + 1;
281
+ stepIndexRef.current = nextIdx;
282
+ activeFieldRef.current = 0;
283
+ setCurrentStepIndex(nextIdx);
284
+ setActiveFieldIndex(0);
285
+ setValidationErrors({});
286
+ }
287
+ return;
288
+ }
289
+ });
290
+ return (React.createElement(Box, { flexDirection: "column", alignItems: "center", justifyContent: "center", flexGrow: 1 },
291
+ React.createElement(Box, { flexDirection: "column", backgroundColor: BaseColors.black, paddingX: 4, paddingY: 2, minWidth: OVERLAY_MIN_WIDTH, ref: panelRef },
292
+ React.createElement(Box, { flexDirection: "column", gap: 0 },
293
+ React.createElement(Text, { color: SemanticColors.headline, bold: true },
294
+ TuiGlyphs.accentBar,
295
+ " ",
296
+ title)),
297
+ currentStep.description !== undefined && (React.createElement(Box, { marginTop: 1 },
298
+ React.createElement(Text, { color: SemanticColors.secondary, wrap: "wrap" }, currentStep.description))),
299
+ React.createElement(Box, { flexDirection: "column", marginTop: 1, gap: 1 }, currentFields.map((field, fieldIndex) => {
300
+ const fieldValue = resolveFieldValue(field, values);
301
+ const isFocused = fieldIndex === activeFieldIndex;
302
+ if (field.kind === WizardFieldKind.YES_NO) {
303
+ return (React.createElement(WizardYesNoToggle, { key: field.key, label: field.label, value: fieldValue, focused: isFocused, error: validationErrors[field.key] }));
304
+ }
305
+ if (field.kind === WizardFieldKind.MULTI_SELECT) {
306
+ return (React.createElement(WizardMultiSelect, { key: field.key, label: field.label, value: fieldValue, options: field.options ?? [], focused: isFocused, focusedOptionIndex: focusedOptionIndexes[field.key] ?? 0, error: validationErrors[field.key] }));
307
+ }
308
+ if (field.kind === WizardFieldKind.SINGLE_SELECT) {
309
+ return (React.createElement(WizardSingleSelect, { key: field.key, label: field.label, value: fieldValue, options: field.options ?? [], focused: isFocused, focusedOptionIndex: focusedOptionIndexes[field.key] ?? 0, error: validationErrors[field.key] }));
310
+ }
311
+ return (React.createElement(WizardTextInput, { key: field.key, label: field.label, value: fieldValue, placeholder: field.placeholder, focused: isFocused, error: validationErrors[field.key], onChange: (nextValue) => handleFieldChange(field.key, nextValue) }));
312
+ })),
313
+ dispatchError !== null && (React.createElement(Box, { marginTop: 1, width: innerWidth },
314
+ React.createElement(Text, { color: SemanticColors.error, wrap: "wrap" }, dispatchError))),
315
+ React.createElement(Box, { marginTop: 1, width: innerWidth },
316
+ React.createElement(Text, { color: BaseColors.shade5, backgroundColor: BaseColors.black }, TuiGlyphs.divider.repeat(innerWidth))),
317
+ React.createElement(Box, { marginTop: 1, width: innerWidth },
318
+ React.createElement(Box, { width: footerHintsWidth, flexWrap: "wrap", columnGap: 2, rowGap: 0 }, footerHints.map((hint) => (React.createElement(KeyBadge, { key: `${hint.char}-${hint.label}`, char: hint.char, label: hint.label, compact: hint.compact })))),
319
+ React.createElement(Box, { flexGrow: 1 }),
320
+ React.createElement(Box, { width: footerProgressWidth },
321
+ React.createElement(Text, { color: SemanticColors.secondary }, footerProgressLabel))))));
322
+ }
323
+ function WizardSingleSelect({ label, value, options, focused, focusedOptionIndex, error, }) {
324
+ return (React.createElement(Box, { flexDirection: "column", gap: 0 },
325
+ React.createElement(Text, { color: SemanticColors.inputLabel, bold: focused, dimColor: true }, label),
326
+ React.createElement(Box, { flexDirection: "column" }, options.map((option, index) => {
327
+ const optionFocused = focused && index === focusedOptionIndex;
328
+ const selected = value === option.value;
329
+ return (React.createElement(Text, { key: option.value, color: optionFocused ? BaseColors.brandBlue : SemanticColors.primary, bold: optionFocused },
330
+ optionFocused ? TuiGlyphs.selector : " ",
331
+ " (",
332
+ selected ? "x" : " ",
333
+ ")",
334
+ " ",
335
+ option.label));
336
+ })),
337
+ error !== undefined && (React.createElement(Box, { marginLeft: 0 },
338
+ React.createElement(Text, { color: SemanticColors.error },
339
+ TuiGlyphs.cross,
340
+ " ",
341
+ error)))));
342
+ }
343
+ function WizardMultiSelect({ label, value, options, focused, focusedOptionIndex, error, }) {
344
+ const selectedValues = parseMultiSelectValue(value);
345
+ return (React.createElement(Box, { flexDirection: "column", gap: 0 },
346
+ React.createElement(Text, { color: SemanticColors.inputLabel, bold: focused, dimColor: true }, label),
347
+ React.createElement(Box, { flexDirection: "column" }, options.map((option, index) => {
348
+ const optionFocused = focused && index === focusedOptionIndex;
349
+ const selected = selectedValues.includes(option.value);
350
+ return (React.createElement(Text, { key: option.value, color: optionFocused ? BaseColors.brandBlue : SemanticColors.primary, bold: optionFocused },
351
+ optionFocused ? TuiGlyphs.selector : " ",
352
+ " [",
353
+ selected ? "x" : " ",
354
+ "]",
355
+ " ",
356
+ option.label));
357
+ })),
358
+ error !== undefined && (React.createElement(Box, { marginLeft: 0 },
359
+ React.createElement(Text, { color: SemanticColors.error },
360
+ TuiGlyphs.cross,
361
+ " ",
362
+ error)))));
363
+ }
364
+ function WizardYesNoToggle({ label, value, focused, error, }) {
365
+ return (React.createElement(Box, { flexDirection: "column", gap: 0 },
366
+ React.createElement(Text, { color: SemanticColors.inputLabel, bold: focused, dimColor: true }, label),
367
+ React.createElement(Box, { gap: 2 },
368
+ React.createElement(WizardYesNoOption, { label: "Yes", selected: value === YES_NO_VALUES.yes, focused: focused }),
369
+ React.createElement(WizardYesNoOption, { label: "No", selected: value !== YES_NO_VALUES.yes, focused: focused })),
370
+ error !== undefined && (React.createElement(Box, { marginLeft: 0 },
371
+ React.createElement(Text, { color: SemanticColors.error },
372
+ TuiGlyphs.cross,
373
+ " ",
374
+ error)))));
375
+ }
376
+ function WizardYesNoOption({ label, selected, focused, }) {
377
+ const color = selected
378
+ ? focused
379
+ ? BaseColors.brandBlue
380
+ : SemanticColors.primary
381
+ : SemanticColors.muted;
382
+ return (React.createElement(Text, { color: color, bold: selected },
383
+ selected ? TuiGlyphs.selector : " ",
384
+ " ",
385
+ label));
386
+ }
387
+ function resolveFieldValue(field, values) {
388
+ return values[field.key] ?? field.defaultValue ?? "";
389
+ }
390
+ function withStepDefaultValues(fields, values) {
391
+ return fields.reduce((nextValues, field) => {
392
+ if (nextValues[field.key] === undefined &&
393
+ field.defaultValue !== undefined) {
394
+ nextValues[field.key] = field.defaultValue;
395
+ }
396
+ return nextValues;
397
+ }, { ...values });
398
+ }
399
+ function parseMultiSelectValue(value) {
400
+ return value
401
+ .split(",")
402
+ .map((item) => item.trim())
403
+ .filter((item) => item.length > 0);
404
+ }
405
+ function toggleMultiSelectValue(value, optionValue) {
406
+ const selectedValues = parseMultiSelectValue(value);
407
+ const nextValues = selectedValues.includes(optionValue)
408
+ ? selectedValues.filter((selectedValue) => selectedValue !== optionValue)
409
+ : [...selectedValues, optionValue];
410
+ return nextValues.join(",");
411
+ }
412
+ //# sourceMappingURL=Wizard.js.map