jumbo-cli 2.0.1 → 2.0.2

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 (263) hide show
  1. package/LICENSE.txt +661 -661
  2. package/README.md +239 -239
  3. package/assets/claude-logo.svg +7 -7
  4. package/assets/codex-logo.svg +3 -3
  5. package/assets/cursor-logo.svg +31 -31
  6. package/assets/mistral-logo.svg +19 -19
  7. package/assets/skills/codify-jumbo-goal/SKILL.md +116 -116
  8. package/assets/skills/define-jumbo-goals/SKILL.md +193 -193
  9. package/assets/skills/refine-jumbo-goals/SKILL.md +156 -156
  10. package/assets/skills/reject-jumbo-goal/SKILL.md +58 -58
  11. package/assets/skills/review-jumbo-goal/SKILL.md +94 -94
  12. package/assets/skills/start-jumbo-goal/SKILL.md +86 -86
  13. package/assets/vscode-logo.svg +41 -41
  14. package/dist/domain/project/AgentFileReferenceContent.js +7 -7
  15. package/dist/domain/project/AgentsMdContent.js +74 -74
  16. package/dist/domain/project/CopilotInstructionsContent.js +38 -38
  17. package/dist/infrastructure/context/architecture/define/SqliteArchitectureDefinedProjector.js +5 -5
  18. package/dist/infrastructure/context/architecture/migrations/001-create-architecture-views.sql +16 -16
  19. package/dist/infrastructure/context/architecture/migrations/002-drop-dataflow-column.sql +4 -4
  20. package/dist/infrastructure/context/architecture/update/SqliteArchitectureUpdatedProjector.js +4 -4
  21. package/dist/infrastructure/context/audience-pains/add/SqliteAudiencePainAddedProjector.js +4 -4
  22. package/dist/infrastructure/context/audience-pains/migrations/001-create-audience-pain-views.sql +17 -17
  23. package/dist/infrastructure/context/audience-pains/update/SqliteAudiencePainUpdatedProjector.js +4 -4
  24. package/dist/infrastructure/context/audiences/add/SqliteAudienceAddedProjector.js +5 -5
  25. package/dist/infrastructure/context/audiences/migrations/001-create-audience-views.sql +17 -17
  26. package/dist/infrastructure/context/audiences/remove/SqliteAudienceRemovedProjector.js +6 -6
  27. package/dist/infrastructure/context/audiences/update/SqliteAudienceUpdatedProjector.js +4 -4
  28. package/dist/infrastructure/context/components/add/SqliteComponentAddedProjector.js +5 -5
  29. package/dist/infrastructure/context/components/deprecate/SqliteComponentDeprecatedProjector.js +7 -7
  30. package/dist/infrastructure/context/components/migrations/001-create-component-views.sql +21 -21
  31. package/dist/infrastructure/context/components/remove/SqliteComponentRemovedProjector.js +6 -6
  32. package/dist/infrastructure/context/components/rename/SqliteComponentRenamedProjector.js +4 -4
  33. package/dist/infrastructure/context/components/undeprecate/SqliteComponentUndeprecatedProjector.js +7 -7
  34. package/dist/infrastructure/context/components/update/SqliteComponentUpdatedProjector.js +4 -4
  35. package/dist/infrastructure/context/decisions/add/SqliteDecisionAddedProjector.js +6 -6
  36. package/dist/infrastructure/context/decisions/migrations/001-create-decision-views.sql +22 -22
  37. package/dist/infrastructure/context/decisions/restore/SqliteDecisionRestoredProjector.js +9 -9
  38. package/dist/infrastructure/context/decisions/reverse/SqliteDecisionReversedProjector.js +8 -8
  39. package/dist/infrastructure/context/decisions/supersede/SqliteDecisionSupersededProjector.js +7 -7
  40. package/dist/infrastructure/context/decisions/update/SqliteDecisionUpdatedProjector.js +10 -10
  41. package/dist/infrastructure/context/dependencies/add/SqliteDependencyAddedProjector.js +5 -5
  42. package/dist/infrastructure/context/dependencies/get/SqliteLegacyDependencyReader.js +5 -5
  43. package/dist/infrastructure/context/dependencies/migrations/001-create-dependency-views.sql +21 -21
  44. package/dist/infrastructure/context/dependencies/migrations/002-add-external-dependency-columns.sql +11 -11
  45. package/dist/infrastructure/context/dependencies/remove/SqliteDependencyRemovedProjector.js +8 -8
  46. package/dist/infrastructure/context/dependencies/update/SqliteDependencyUpdatedProjector.js +4 -4
  47. package/dist/infrastructure/context/goals/add/SqliteGoalAddedProjector.js +7 -7
  48. package/dist/infrastructure/context/goals/approve/SqliteGoalApprovedProjector.js +9 -9
  49. package/dist/infrastructure/context/goals/block/SqliteGoalBlockedProjector.js +7 -7
  50. package/dist/infrastructure/context/goals/close/SqliteGoalClosedProjector.js +9 -9
  51. package/dist/infrastructure/context/goals/codify/SqliteGoalCodifyingStartedProjector.js +9 -9
  52. package/dist/infrastructure/context/goals/commit/SqliteGoalCommittedProjector.js +9 -9
  53. package/dist/infrastructure/context/goals/complete/SqliteGoalCompletedProjector.js +9 -9
  54. package/dist/infrastructure/context/goals/migrate/SqliteGoalStatusMigratedProjector.js +7 -7
  55. package/dist/infrastructure/context/goals/migrations/001-create-goal-views.sql +20 -20
  56. package/dist/infrastructure/context/goals/migrations/002-add-embedded-context-columns.sql +11 -11
  57. package/dist/infrastructure/context/goals/migrations/003-add-next-goal-column.sql +4 -4
  58. package/dist/infrastructure/context/goals/migrations/004-add-claim-columns.sql +7 -7
  59. package/dist/infrastructure/context/goals/migrations/005-add-progress-column.sql +4 -4
  60. package/dist/infrastructure/context/goals/migrations/006-drop-boundaries-and-embedded-context-columns.sql +11 -11
  61. package/dist/infrastructure/context/goals/migrations/007-add-title-column.sql +2 -2
  62. package/dist/infrastructure/context/goals/migrations/008-add-prerequisite-goals-column.sql +1 -1
  63. package/dist/infrastructure/context/goals/migrations/009-add-review-issues-column.sql +1 -1
  64. package/dist/infrastructure/context/goals/pause/SqliteGoalPausedProjector.js +7 -7
  65. package/dist/infrastructure/context/goals/qualify/SqliteGoalQualifiedProjector.js +9 -9
  66. package/dist/infrastructure/context/goals/refine/SqliteGoalRefinedProjector.js +15 -15
  67. package/dist/infrastructure/context/goals/reject/SqliteGoalRejectedProjector.js +10 -10
  68. package/dist/infrastructure/context/goals/remove/SqliteGoalRemovedProjector.js +3 -3
  69. package/dist/infrastructure/context/goals/reset/SqliteGoalResetProjector.js +11 -11
  70. package/dist/infrastructure/context/goals/resume/SqliteGoalResumedProjector.js +10 -10
  71. package/dist/infrastructure/context/goals/review/SqliteGoalSubmittedForReviewProjector.js +9 -9
  72. package/dist/infrastructure/context/goals/start/SqliteGoalStartedProjector.js +9 -9
  73. package/dist/infrastructure/context/goals/submit/SqliteGoalSubmittedProjector.js +9 -9
  74. package/dist/infrastructure/context/goals/unblock/SqliteGoalUnblockedProjector.js +7 -7
  75. package/dist/infrastructure/context/goals/update/SqliteGoalUpdatedProjector.js +4 -4
  76. package/dist/infrastructure/context/goals/update-progress/SqliteGoalProgressUpdatedProjector.js +8 -8
  77. package/dist/infrastructure/context/guidelines/add/SqliteGuidelineAddedProjector.js +5 -5
  78. package/dist/infrastructure/context/guidelines/migrations/001-create-guideline-views.sql +22 -22
  79. package/dist/infrastructure/context/guidelines/remove/SqliteGuidelineRemovedProjector.js +8 -8
  80. package/dist/infrastructure/context/guidelines/update/SqliteGuidelineUpdatedProjector.js +4 -4
  81. package/dist/infrastructure/context/invariants/add/SqliteInvariantAddedProjector.js +5 -5
  82. package/dist/infrastructure/context/invariants/migrations/001-create-invariant-views.sql +16 -16
  83. package/dist/infrastructure/context/invariants/remove/SqliteInvariantRemovedProjector.js +2 -2
  84. package/dist/infrastructure/context/invariants/update/SqliteInvariantUpdatedProjector.js +9 -9
  85. package/dist/infrastructure/context/project/init/SqliteProjectInitializedProjector.js +5 -5
  86. package/dist/infrastructure/context/project/migrations/001-create-project-views.sql +13 -13
  87. package/dist/infrastructure/context/project/migrations/002-drop-boundaries-column.sql +4 -4
  88. package/dist/infrastructure/context/project/update/SqliteProjectUpdatedProjector.js +4 -4
  89. package/dist/infrastructure/context/relations/add/SqliteRelationAddedProjector.js +12 -12
  90. package/dist/infrastructure/context/relations/deactivate/SqliteRelationDeactivatedProjector.js +14 -14
  91. package/dist/infrastructure/context/relations/migrations/001-create-relation-views.sql +28 -28
  92. package/dist/infrastructure/context/relations/reactivate/SqliteRelationReactivatedProjector.js +14 -14
  93. package/dist/infrastructure/context/relations/remove/SqliteRelationRemovedProjector.js +14 -14
  94. package/dist/infrastructure/context/sessions/end/SqliteSessionEndedProjector.js +8 -8
  95. package/dist/infrastructure/context/sessions/migrations/001-create-session-views.sql +43 -43
  96. package/dist/infrastructure/context/sessions/migrations/002-add-goal-lifecycle-columns.sql +7 -7
  97. package/dist/infrastructure/context/sessions/migrations/003-remove-session-pause-status.sql +8 -8
  98. package/dist/infrastructure/context/sessions/migrations/004-drop-session-summary-views.sql +5 -5
  99. package/dist/infrastructure/context/sessions/start/SqliteSessionStartedProjector.js +5 -5
  100. package/dist/infrastructure/context/value-propositions/add/SqliteValuePropositionAddedProjector.js +5 -5
  101. package/dist/infrastructure/context/value-propositions/migrations/001-create-value-proposition-views.sql +19 -19
  102. package/dist/infrastructure/context/value-propositions/remove/SqliteValuePropositionRemovedProjector.js +2 -2
  103. package/dist/infrastructure/context/value-propositions/update/SqliteValuePropositionUpdatedProjector.js +4 -4
  104. package/dist/infrastructure/host/workers/migrations/001-create-workers.sql +12 -12
  105. package/dist/infrastructure/persistence/MigrationRunner.js +10 -10
  106. package/dist/infrastructure/settings/FsSettingsInitializer.js +25 -25
  107. package/dist/infrastructure/settings/FsSettingsReader.js +25 -25
  108. package/dist/presentation/cli/commands/project/init/project.init.d.ts.map +1 -1
  109. package/dist/presentation/cli/commands/project/init/project.init.js +4 -1
  110. package/dist/presentation/cli/commands/project/init/project.init.js.map +1 -1
  111. package/package.json +89 -89
  112. package/dist/application/context/goals/complete/CompleteGoalCommand.d.ts +0 -8
  113. package/dist/application/context/goals/complete/CompleteGoalCommand.d.ts.map +0 -1
  114. package/dist/application/context/goals/complete/CompleteGoalCommand.js +0 -3
  115. package/dist/application/context/goals/complete/CompleteGoalCommand.js.map +0 -1
  116. package/dist/application/context/goals/complete/CompleteGoalCommandHandler.d.ts +0 -27
  117. package/dist/application/context/goals/complete/CompleteGoalCommandHandler.d.ts.map +0 -1
  118. package/dist/application/context/goals/complete/CompleteGoalCommandHandler.js +0 -52
  119. package/dist/application/context/goals/complete/CompleteGoalCommandHandler.js.map +0 -1
  120. package/dist/application/context/goals/complete/CompleteGoalController.d.ts +0 -9
  121. package/dist/application/context/goals/complete/CompleteGoalController.d.ts.map +0 -1
  122. package/dist/application/context/goals/complete/CompleteGoalController.js +0 -13
  123. package/dist/application/context/goals/complete/CompleteGoalController.js.map +0 -1
  124. package/dist/application/context/goals/complete/CompleteGoalRequest.d.ts +0 -10
  125. package/dist/application/context/goals/complete/CompleteGoalRequest.d.ts.map +0 -1
  126. package/dist/application/context/goals/complete/CompleteGoalRequest.js +0 -3
  127. package/dist/application/context/goals/complete/CompleteGoalRequest.js.map +0 -1
  128. package/dist/application/context/goals/complete/CompleteGoalResponse.d.ts +0 -17
  129. package/dist/application/context/goals/complete/CompleteGoalResponse.d.ts.map +0 -1
  130. package/dist/application/context/goals/complete/CompleteGoalResponse.js +0 -3
  131. package/dist/application/context/goals/complete/CompleteGoalResponse.js.map +0 -1
  132. package/dist/application/context/goals/complete/ICompleteGoalGateway.d.ts +0 -6
  133. package/dist/application/context/goals/complete/ICompleteGoalGateway.d.ts.map +0 -1
  134. package/dist/application/context/goals/complete/ICompleteGoalGateway.js +0 -3
  135. package/dist/application/context/goals/complete/ICompleteGoalGateway.js.map +0 -1
  136. package/dist/application/context/goals/complete/LocalCompleteGoalGateway.d.ts +0 -16
  137. package/dist/application/context/goals/complete/LocalCompleteGoalGateway.d.ts.map +0 -1
  138. package/dist/application/context/goals/complete/LocalCompleteGoalGateway.js +0 -49
  139. package/dist/application/context/goals/complete/LocalCompleteGoalGateway.js.map +0 -1
  140. package/dist/application/context/project/init/IInitializationProtocol.d.ts +0 -44
  141. package/dist/application/context/project/init/IInitializationProtocol.d.ts.map +0 -1
  142. package/dist/application/context/project/init/IInitializationProtocol.js +0 -14
  143. package/dist/application/context/project/init/IInitializationProtocol.js.map +0 -1
  144. package/dist/application/context/project/init/InitializationProtocol.d.ts +0 -32
  145. package/dist/application/context/project/init/InitializationProtocol.d.ts.map +0 -1
  146. package/dist/application/context/project/init/InitializationProtocol.js +0 -51
  147. package/dist/application/context/project/init/InitializationProtocol.js.map +0 -1
  148. package/dist/application/context/relations/get/GetRelationsQueryHandler.d.ts +0 -14
  149. package/dist/application/context/relations/get/GetRelationsQueryHandler.d.ts.map +0 -1
  150. package/dist/application/context/relations/get/GetRelationsQueryHandler.js +0 -19
  151. package/dist/application/context/relations/get/GetRelationsQueryHandler.js.map +0 -1
  152. package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.d.ts +0 -27
  153. package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.d.ts.map +0 -1
  154. package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.js +0 -32
  155. package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.js.map +0 -1
  156. package/dist/application/maintenance/repair/IRepairMaintenanceGateway.d.ts +0 -6
  157. package/dist/application/maintenance/repair/IRepairMaintenanceGateway.d.ts.map +0 -1
  158. package/dist/application/maintenance/repair/IRepairMaintenanceGateway.js +0 -3
  159. package/dist/application/maintenance/repair/IRepairMaintenanceGateway.js.map +0 -1
  160. package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.d.ts +0 -16
  161. package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.d.ts.map +0 -1
  162. package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.js +0 -90
  163. package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.js.map +0 -1
  164. package/dist/application/maintenance/repair/RepairMaintenanceController.d.ts +0 -9
  165. package/dist/application/maintenance/repair/RepairMaintenanceController.d.ts.map +0 -1
  166. package/dist/application/maintenance/repair/RepairMaintenanceController.js +0 -13
  167. package/dist/application/maintenance/repair/RepairMaintenanceController.js.map +0 -1
  168. package/dist/application/maintenance/repair/RepairMaintenanceRequest.d.ts +0 -6
  169. package/dist/application/maintenance/repair/RepairMaintenanceRequest.d.ts.map +0 -1
  170. package/dist/application/maintenance/repair/RepairMaintenanceRequest.js +0 -3
  171. package/dist/application/maintenance/repair/RepairMaintenanceRequest.js.map +0 -1
  172. package/dist/application/maintenance/repair/RepairMaintenanceResponse.d.ts +0 -9
  173. package/dist/application/maintenance/repair/RepairMaintenanceResponse.d.ts.map +0 -1
  174. package/dist/application/maintenance/repair/RepairMaintenanceResponse.js +0 -3
  175. package/dist/application/maintenance/repair/RepairMaintenanceResponse.js.map +0 -1
  176. package/dist/application/repair/IRepairGateway.d.ts +0 -6
  177. package/dist/application/repair/IRepairGateway.d.ts.map +0 -1
  178. package/dist/application/repair/IRepairGateway.js +0 -3
  179. package/dist/application/repair/IRepairGateway.js.map +0 -1
  180. package/dist/application/repair/LocalRepairGateway.d.ts +0 -16
  181. package/dist/application/repair/LocalRepairGateway.d.ts.map +0 -1
  182. package/dist/application/repair/LocalRepairGateway.js +0 -90
  183. package/dist/application/repair/LocalRepairGateway.js.map +0 -1
  184. package/dist/application/repair/RepairController.d.ts +0 -9
  185. package/dist/application/repair/RepairController.d.ts.map +0 -1
  186. package/dist/application/repair/RepairController.js +0 -13
  187. package/dist/application/repair/RepairController.js.map +0 -1
  188. package/dist/application/repair/RepairRequest.d.ts +0 -6
  189. package/dist/application/repair/RepairRequest.d.ts.map +0 -1
  190. package/dist/application/repair/RepairRequest.js +0 -3
  191. package/dist/application/repair/RepairRequest.js.map +0 -1
  192. package/dist/application/repair/RepairResponse.d.ts +0 -9
  193. package/dist/application/repair/RepairResponse.d.ts.map +0 -1
  194. package/dist/application/repair/RepairResponse.js +0 -3
  195. package/dist/application/repair/RepairResponse.js.map +0 -1
  196. package/dist/domain/project/AgentInstructions.d.ts +0 -67
  197. package/dist/domain/project/AgentInstructions.d.ts.map +0 -1
  198. package/dist/domain/project/AgentInstructions.js +0 -261
  199. package/dist/domain/project/AgentInstructions.js.map +0 -1
  200. package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.d.ts +0 -33
  201. package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.d.ts.map +0 -1
  202. package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.js +0 -66
  203. package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.js.map +0 -1
  204. package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.d.ts +0 -10
  205. package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.d.ts.map +0 -1
  206. package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.js +0 -36
  207. package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.js.map +0 -1
  208. package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.d.ts +0 -10
  209. package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.d.ts.map +0 -1
  210. package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.js +0 -14
  211. package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.js.map +0 -1
  212. package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.d.ts +0 -10
  213. package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.d.ts.map +0 -1
  214. package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.js +0 -18
  215. package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.js.map +0 -1
  216. package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.d.ts +0 -10
  217. package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.d.ts.map +0 -1
  218. package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.js +0 -14
  219. package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.js.map +0 -1
  220. package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.d.ts +0 -29
  221. package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.d.ts.map +0 -1
  222. package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.js +0 -105
  223. package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.js.map +0 -1
  224. package/dist/presentation/cli/commands/goals/complete/goal.complete.d.ts +0 -20
  225. package/dist/presentation/cli/commands/goals/complete/goal.complete.d.ts.map +0 -1
  226. package/dist/presentation/cli/commands/goals/complete/goal.complete.js +0 -58
  227. package/dist/presentation/cli/commands/goals/complete/goal.complete.js.map +0 -1
  228. package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.d.ts +0 -26
  229. package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.d.ts.map +0 -1
  230. package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.js +0 -68
  231. package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.js.map +0 -1
  232. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.d.ts +0 -14
  233. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.d.ts.map +0 -1
  234. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.js +0 -61
  235. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.js.map +0 -1
  236. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.d.ts +0 -23
  237. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.d.ts.map +0 -1
  238. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.js +0 -59
  239. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.js.map +0 -1
  240. package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.d.ts +0 -24
  241. package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.d.ts.map +0 -1
  242. package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.js +0 -49
  243. package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.js.map +0 -1
  244. package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.d.ts +0 -27
  245. package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.d.ts.map +0 -1
  246. package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.js +0 -85
  247. package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.js.map +0 -1
  248. package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.d.ts +0 -16
  249. package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.d.ts.map +0 -1
  250. package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.js +0 -40
  251. package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.js.map +0 -1
  252. package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.d.ts +0 -26
  253. package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.d.ts.map +0 -1
  254. package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.js +0 -64
  255. package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.js.map +0 -1
  256. package/dist/presentation/cli/commands/repair/RepairOutputBuilder.d.ts +0 -24
  257. package/dist/presentation/cli/commands/repair/RepairOutputBuilder.d.ts.map +0 -1
  258. package/dist/presentation/cli/commands/repair/RepairOutputBuilder.js +0 -50
  259. package/dist/presentation/cli/commands/repair/RepairOutputBuilder.js.map +0 -1
  260. package/dist/presentation/cli/commands/repair/repair.d.ts +0 -31
  261. package/dist/presentation/cli/commands/repair/repair.d.ts.map +0 -1
  262. package/dist/presentation/cli/commands/repair/repair.js +0 -88
  263. package/dist/presentation/cli/commands/repair/repair.js.map +0 -1
@@ -1,33 +0,0 @@
1
- /**
2
- * FsGoalClaimStore - File-based goal claim persistence
3
- *
4
- * Stores goal claims in a JSON file for simple, file-based persistence.
5
- * Claims are keyed by goalId for O(1) lookup.
6
- */
7
- import { IGoalClaimStore } from "../../../../application/context/goals/claims/IGoalClaimStore.js";
8
- import { GoalClaim } from "../../../../application/context/goals/claims/GoalClaim.js";
9
- export declare class FsGoalClaimStore implements IGoalClaimStore {
10
- private readonly claimsFilePath;
11
- constructor(rootDir: string);
12
- /**
13
- * Retrieves the current claim for a goal.
14
- */
15
- getClaim(goalId: string): GoalClaim | null;
16
- /**
17
- * Creates or updates a claim for a goal.
18
- */
19
- setClaim(claim: GoalClaim): void;
20
- /**
21
- * Removes the claim for a goal.
22
- */
23
- releaseClaim(goalId: string): void;
24
- /**
25
- * Loads the claims data from disk.
26
- */
27
- private loadData;
28
- /**
29
- * Saves the claims data to disk.
30
- */
31
- private saveData;
32
- }
33
- //# sourceMappingURL=FsGoalClaimStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FsGoalClaimStore.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/goals/claims/FsGoalClaimStore.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,iEAAiE,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAStF,qBAAa,gBAAiB,YAAW,eAAe;IACtD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;gBAE5B,OAAO,EAAE,MAAM;IAI3B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAK1C;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAMhC;;OAEG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAMlC;;OAEG;IACH,OAAO,CAAC,QAAQ;IAahB;;OAEG;IACH,OAAO,CAAC,QAAQ;CAQjB"}
@@ -1,66 +0,0 @@
1
- "use strict";
2
- /**
3
- * FsGoalClaimStore - File-based goal claim persistence
4
- *
5
- * Stores goal claims in a JSON file for simple, file-based persistence.
6
- * Claims are keyed by goalId for O(1) lookup.
7
- */
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.FsGoalClaimStore = void 0;
13
- const fs_extra_1 = __importDefault(require("fs-extra"));
14
- const path_1 = __importDefault(require("path"));
15
- class FsGoalClaimStore {
16
- constructor(rootDir) {
17
- this.claimsFilePath = path_1.default.join(rootDir, "claims.json");
18
- }
19
- /**
20
- * Retrieves the current claim for a goal.
21
- */
22
- getClaim(goalId) {
23
- const data = this.loadData();
24
- return data.claims[goalId] ?? null;
25
- }
26
- /**
27
- * Creates or updates a claim for a goal.
28
- */
29
- setClaim(claim) {
30
- const data = this.loadData();
31
- data.claims[claim.goalId] = claim;
32
- this.saveData(data);
33
- }
34
- /**
35
- * Removes the claim for a goal.
36
- */
37
- releaseClaim(goalId) {
38
- const data = this.loadData();
39
- delete data.claims[goalId];
40
- this.saveData(data);
41
- }
42
- /**
43
- * Loads the claims data from disk.
44
- */
45
- loadData() {
46
- try {
47
- if (fs_extra_1.default.existsSync(this.claimsFilePath)) {
48
- const content = fs_extra_1.default.readFileSync(this.claimsFilePath, "utf-8");
49
- return JSON.parse(content);
50
- }
51
- }
52
- catch {
53
- // If file is corrupted, start fresh
54
- }
55
- return { claims: {} };
56
- }
57
- /**
58
- * Saves the claims data to disk.
59
- */
60
- saveData(data) {
61
- fs_extra_1.default.ensureFileSync(this.claimsFilePath);
62
- fs_extra_1.default.writeFileSync(this.claimsFilePath, JSON.stringify(data, null, 2), "utf-8");
63
- }
64
- }
65
- exports.FsGoalClaimStore = FsGoalClaimStore;
66
- //# sourceMappingURL=FsGoalClaimStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FsGoalClaimStore.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/goals/claims/FsGoalClaimStore.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,wDAA0B;AAC1B,gDAAwB;AAWxB,MAAa,gBAAgB;IAG3B,YAAY,OAAe;QACzB,IAAI,CAAC,cAAc,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc;QACrB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAgB;QACvB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC7B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;QAClC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,MAAc;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC3B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED;;OAEG;IACK,QAAQ;QACd,IAAI,CAAC;YACH,IAAI,kBAAE,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;gBACvC,MAAM,OAAO,GAAG,kBAAE,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;gBAC9D,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAmB,CAAC;YAC/C,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,oCAAoC;QACtC,CAAC;QAED,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACxB,CAAC;IAED;;OAEG;IACK,QAAQ,CAAC,IAAoB;QACnC,kBAAE,CAAC,cAAc,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACvC,kBAAE,CAAC,aAAa,CACd,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAC7B,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AA5DD,4CA4DC"}
@@ -1,10 +0,0 @@
1
- import { IGetGoalsGateway } from "../../../../application/context/goals/get/IGetGoalsGateway.js";
2
- import { GetGoalsRequest } from "../../../../application/context/goals/get/GetGoalsRequest.js";
3
- import { GetGoalsResponse } from "../../../../application/context/goals/get/GetGoalsResponse.js";
4
- import { IGoalStatusReader } from "../../../../application/context/goals/IGoalStatusReader.js";
5
- export declare class LocalGetGoalsGateway implements IGetGoalsGateway {
6
- private readonly goalStatusReader;
7
- constructor(goalStatusReader: IGoalStatusReader);
8
- getGoals(request: GetGoalsRequest): Promise<GetGoalsResponse>;
9
- }
10
- //# sourceMappingURL=LocalGetGoalsGateway.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalGetGoalsGateway.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/goals/get/LocalGetGoalsGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAe/F,qBAAa,oBAAqB,YAAW,gBAAgB;IAEzD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,iBAAiB;IAGhD,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAqBpE"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalGetGoalsGateway = void 0;
4
- const Constants_js_1 = require("../../../../domain/goals/Constants.js");
5
- const VALID_STATUSES = Object.values(Constants_js_1.GoalStatus);
6
- const DEFAULT_STATUSES = [
7
- Constants_js_1.GoalStatus.TODO,
8
- Constants_js_1.GoalStatus.REFINED,
9
- Constants_js_1.GoalStatus.DOING,
10
- Constants_js_1.GoalStatus.BLOCKED,
11
- Constants_js_1.GoalStatus.PAUSED,
12
- Constants_js_1.GoalStatus.INREVIEW,
13
- Constants_js_1.GoalStatus.QUALIFIED,
14
- ];
15
- class LocalGetGoalsGateway {
16
- constructor(goalStatusReader) {
17
- this.goalStatusReader = goalStatusReader;
18
- }
19
- async getGoals(request) {
20
- const statuses = request.statuses;
21
- if (statuses && statuses.length > 0) {
22
- const invalidStatuses = statuses.filter(s => !VALID_STATUSES.includes(s));
23
- if (invalidStatuses.length > 0) {
24
- throw new Error(`Invalid status: ${invalidStatuses.join(", ")}. Valid statuses: ${VALID_STATUSES.join(", ")}`);
25
- }
26
- }
27
- const statusesToFilter = (statuses && statuses.length > 0)
28
- ? statuses
29
- : DEFAULT_STATUSES;
30
- const allGoals = await this.goalStatusReader.findAll();
31
- const goals = allGoals.filter(goal => statusesToFilter.includes(goal.status));
32
- return { goals };
33
- }
34
- }
35
- exports.LocalGetGoalsGateway = LocalGetGoalsGateway;
36
- //# sourceMappingURL=LocalGetGoalsGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalGetGoalsGateway.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/goals/get/LocalGetGoalsGateway.ts"],"names":[],"mappings":";;;AAIA,wEAAmF;AAEnF,MAAM,cAAc,GAAsB,MAAM,CAAC,MAAM,CAAC,yBAAU,CAAC,CAAC;AAEpE,MAAM,gBAAgB,GAA8B;IAClD,yBAAU,CAAC,IAAI;IACf,yBAAU,CAAC,OAAO;IAClB,yBAAU,CAAC,KAAK;IAChB,yBAAU,CAAC,OAAO;IAClB,yBAAU,CAAC,MAAM;IACjB,yBAAU,CAAC,QAAQ;IACnB,yBAAU,CAAC,SAAS;CACrB,CAAC;AAEF,MAAa,oBAAoB;IAC/B,YACmB,gBAAmC;QAAnC,qBAAgB,GAAhB,gBAAgB,CAAmB;IACnD,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,OAAwB;QACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QAElC,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpC,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1E,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC/B,MAAM,IAAI,KAAK,CACb,mBAAmB,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC9F,CAAC;YACJ,CAAC;QACH,CAAC;QAED,MAAM,gBAAgB,GAAG,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;YACxD,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,gBAAqC,CAAC;QAE1C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC;QACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAE9E,OAAO,EAAE,KAAK,EAAE,CAAC;IACnB,CAAC;CACF;AA1BD,oDA0BC"}
@@ -1,10 +0,0 @@
1
- import { IShowGoalGateway } from "../../../../application/context/goals/get/IShowGoalGateway.js";
2
- import { ShowGoalRequest } from "../../../../application/context/goals/get/ShowGoalRequest.js";
3
- import { ShowGoalResponse } from "../../../../application/context/goals/get/ShowGoalResponse.js";
4
- import { GoalContextQueryHandler } from "../../../../application/context/goals/get/GoalContextQueryHandler.js";
5
- export declare class LocalShowGoalGateway implements IShowGoalGateway {
6
- private readonly goalContextQueryHandler;
7
- constructor(goalContextQueryHandler: GoalContextQueryHandler);
8
- showGoal(request: ShowGoalRequest): Promise<ShowGoalResponse>;
9
- }
10
- //# sourceMappingURL=LocalShowGoalGateway.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalShowGoalGateway.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/goals/get/LocalShowGoalGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AACjG,OAAO,EAAE,uBAAuB,EAAE,MAAM,sEAAsE,CAAC;AAE/G,qBAAa,oBAAqB,YAAW,gBAAgB;IAEzD,OAAO,CAAC,QAAQ,CAAC,uBAAuB;gBAAvB,uBAAuB,EAAE,uBAAuB;IAG7D,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAIpE"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalShowGoalGateway = void 0;
4
- class LocalShowGoalGateway {
5
- constructor(goalContextQueryHandler) {
6
- this.goalContextQueryHandler = goalContextQueryHandler;
7
- }
8
- async showGoal(request) {
9
- const contextualGoalView = await this.goalContextQueryHandler.execute(request.goalId);
10
- return { contextualGoalView };
11
- }
12
- }
13
- exports.LocalShowGoalGateway = LocalShowGoalGateway;
14
- //# sourceMappingURL=LocalShowGoalGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalShowGoalGateway.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/goals/get/LocalShowGoalGateway.ts"],"names":[],"mappings":";;;AAKA,MAAa,oBAAoB;IAC/B,YACmB,uBAAgD;QAAhD,4BAAuB,GAAvB,uBAAuB,CAAyB;IAChE,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,OAAwB;QACrC,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACtF,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAChC,CAAC;CACF;AATD,oDASC"}
@@ -1,10 +0,0 @@
1
- import { IGetRelationsGateway } from "../../../../application/context/relations/get/IGetRelationsGateway.js";
2
- import { GetRelationsRequest } from "../../../../application/context/relations/get/GetRelationsRequest.js";
3
- import { GetRelationsResponse } from "../../../../application/context/relations/get/GetRelationsResponse.js";
4
- import { IRelationViewReader } from "../../../../application/context/relations/get/IRelationViewReader.js";
5
- export declare class LocalGetRelationsGateway implements IGetRelationsGateway {
6
- private readonly relationViewReader;
7
- constructor(relationViewReader: IRelationViewReader);
8
- getRelations(request: GetRelationsRequest): Promise<GetRelationsResponse>;
9
- }
10
- //# sourceMappingURL=LocalGetRelationsGateway.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalGetRelationsGateway.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/relations/get/LocalGetRelationsGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAC;AAC7G,OAAO,EAAE,mBAAmB,EAAE,MAAM,sEAAsE,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAC;AAC7G,OAAO,EAAE,mBAAmB,EAAE,MAAM,sEAAsE,CAAC;AAE3G,qBAAa,wBAAyB,YAAW,oBAAoB;IAEjE,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAAlB,kBAAkB,EAAE,mBAAmB;IAGpD,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAQhF"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalGetRelationsGateway = void 0;
4
- class LocalGetRelationsGateway {
5
- constructor(relationViewReader) {
6
- this.relationViewReader = relationViewReader;
7
- }
8
- async getRelations(request) {
9
- const relations = await this.relationViewReader.findAll({
10
- entityType: request.entityType,
11
- entityId: request.entityId,
12
- status: request.status,
13
- });
14
- return { relations };
15
- }
16
- }
17
- exports.LocalGetRelationsGateway = LocalGetRelationsGateway;
18
- //# sourceMappingURL=LocalGetRelationsGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalGetRelationsGateway.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/relations/get/LocalGetRelationsGateway.ts"],"names":[],"mappings":";;;AAKA,MAAa,wBAAwB;IACnC,YACmB,kBAAuC;QAAvC,uBAAkB,GAAlB,kBAAkB,CAAqB;IACvD,CAAC;IAEJ,KAAK,CAAC,YAAY,CAAC,OAA4B;QAC7C,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC;YACtD,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC,CAAC;QACH,OAAO,EAAE,SAAS,EAAE,CAAC;IACvB,CAAC;CACF;AAbD,4DAaC"}
@@ -1,10 +0,0 @@
1
- import { IGetSessionsGateway } from "../../../../application/context/sessions/get/IGetSessionsGateway.js";
2
- import { GetSessionsRequest } from "../../../../application/context/sessions/get/GetSessionsRequest.js";
3
- import { GetSessionsResponse } from "../../../../application/context/sessions/get/GetSessionsResponse.js";
4
- import { ISessionViewReader } from "../../../../application/context/sessions/get/ISessionViewReader.js";
5
- export declare class LocalGetSessionsGateway implements IGetSessionsGateway {
6
- private readonly sessionViewReader;
7
- constructor(sessionViewReader: ISessionViewReader);
8
- getSessions(request: GetSessionsRequest): Promise<GetSessionsResponse>;
9
- }
10
- //# sourceMappingURL=LocalGetSessionsGateway.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalGetSessionsGateway.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/sessions/get/LocalGetSessionsGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAC1G,OAAO,EAAE,kBAAkB,EAAE,MAAM,oEAAoE,CAAC;AACxG,OAAO,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAC1G,OAAO,EAAE,kBAAkB,EAAE,MAAM,oEAAoE,CAAC;AAExG,qBAAa,uBAAwB,YAAW,mBAAmB;IAE/D,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,kBAAkB;IAGlD,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAI7E"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalGetSessionsGateway = void 0;
4
- class LocalGetSessionsGateway {
5
- constructor(sessionViewReader) {
6
- this.sessionViewReader = sessionViewReader;
7
- }
8
- async getSessions(request) {
9
- const sessions = await this.sessionViewReader.findAll(request.status);
10
- return { sessions };
11
- }
12
- }
13
- exports.LocalGetSessionsGateway = LocalGetSessionsGateway;
14
- //# sourceMappingURL=LocalGetSessionsGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalGetSessionsGateway.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/sessions/get/LocalGetSessionsGateway.ts"],"names":[],"mappings":";;;AAKA,MAAa,uBAAuB;IAClC,YACmB,iBAAqC;QAArC,sBAAiB,GAAjB,iBAAiB,CAAoB;IACrD,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,OAA2B;QAC3C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACtE,OAAO,EAAE,QAAQ,EAAE,CAAC;IACtB,CAAC;CACF;AATD,0DASC"}
@@ -1,29 +0,0 @@
1
- import { TerminalOutput } from '../../../output/TerminalOutput.js';
2
- import { CompleteGoalResponse } from '../../../../../application/context/goals/complete/CompleteGoalResponse.js';
3
- /**
4
- * Specialized builder for goal.complete command output.
5
- * Encapsulates all output rendering for the complete goal command.
6
- *
7
- * Pattern: Output builders contain ALL prompt and output content.
8
- * Command files must not duplicate or add additional output after calling the builder.
9
- */
10
- export declare class GoalCompleteOutputBuilder {
11
- private builder;
12
- constructor();
13
- /**
14
- * Build deprecation warning output.
15
- * Advises users to switch to 'jumbo goal codify' + 'jumbo goal close'.
16
- */
17
- buildDeprecationWarning(): TerminalOutput;
18
- /**
19
- * Build output for successful goal completion.
20
- * Renders learning capture prompt, entity review, and optional next goal information.
21
- */
22
- buildSuccess(response: CompleteGoalResponse): TerminalOutput;
23
- /**
24
- * Build output for goal completion failure.
25
- * Renders error message when goal completion fails.
26
- */
27
- buildFailureError(error: Error | string): TerminalOutput;
28
- }
29
- //# sourceMappingURL=GoalCompleteOutputBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GoalCompleteOutputBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AAEjH;;;;;;GAMG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,OAAO,CAAwB;;IAMvC;;;OAGG;IACH,uBAAuB,IAAI,cAAc;IASzC;;;OAGG;IACH,YAAY,CAAC,QAAQ,EAAE,oBAAoB,GAAG,cAAc;IAwE5D;;;OAGG;IACH,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,cAAc;CAQzD"}
@@ -1,105 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GoalCompleteOutputBuilder = void 0;
4
- const TerminalOutputBuilder_js_1 = require("../../../output/TerminalOutputBuilder.js");
5
- /**
6
- * Specialized builder for goal.complete command output.
7
- * Encapsulates all output rendering for the complete goal command.
8
- *
9
- * Pattern: Output builders contain ALL prompt and output content.
10
- * Command files must not duplicate or add additional output after calling the builder.
11
- */
12
- class GoalCompleteOutputBuilder {
13
- constructor() {
14
- this.builder = new TerminalOutputBuilder_js_1.TerminalOutputBuilder();
15
- }
16
- /**
17
- * Build deprecation warning output.
18
- * Advises users to switch to 'jumbo goal codify' + 'jumbo goal close'.
19
- */
20
- buildDeprecationWarning() {
21
- this.builder.reset();
22
- this.builder.addPrompt("⚠ Deprecation Notice: 'jumbo goal complete' is deprecated. Use 'jumbo goal codify' followed by 'jumbo goal close' instead.\n" +
23
- "---");
24
- return this.builder.build();
25
- }
26
- /**
27
- * Build output for successful goal completion.
28
- * Renders learning capture prompt, entity review, and optional next goal information.
29
- */
30
- buildSuccess(response) {
31
- this.builder.reset();
32
- // Section 1: Capture new learnings
33
- this.builder.addPrompt("# Goal Completed - Capture Learnings\n" +
34
- "@LLM: Reflect on your interaction with the user during this goal.\n" +
35
- "Did it surface any NEW invariants, guidelines, decisions, components, dependencies, or architectural patterns not yet captured?\n" +
36
- "Were you corrected in a way that reveals a missing rule?\n" +
37
- "Only propose additions that are:\n" +
38
- " - Universal (applicable beyond this specific goal)\n" +
39
- " - Dense (one sentence, no examples unless the example IS the rule)\n" +
40
- " - Actionable (changes how code is written or decisions are made)\n" +
41
- "If nothing qualifies, say so. Avoid restating what's already captured.\n" +
42
- "Run 'jumbo --help' for command details.");
43
- // Section 2: Review registered entities for staleness
44
- this.builder.addPrompt("## Review Registered Entities\n" +
45
- "@LLM: This goal may have changed the codebase in ways that affect registered entities.\n" +
46
- "For each entity type below, consider whether any existing registrations need updating based on the work performed.\n\n" +
47
- "### Components\n" +
48
- "Did any component descriptions, responsibilities, or paths change? Were any components deprecated or removed?\n" +
49
- " Update: jumbo component update --id <id> --description \"...\" --responsibility \"...\"\n" +
50
- " Deprecate: jumbo component deprecate --id <id> --reason \"...\"\n" +
51
- " Add new: jumbo component add --name \"...\" --type \"...\" --description \"...\" --responsibility \"...\" --path \"...\"\n\n" +
52
- "### Decisions\n" +
53
- "Were any architectural decisions made, superseded, or invalidated by this work?\n" +
54
- " Add: jumbo decision add --title \"...\" --context \"...\" --rationale \"...\"\n" +
55
- " Update: jumbo decision update --id <id> --rationale \"...\"\n" +
56
- " Supersede: jumbo decision supersede --id <id> --new-decision-id <new-id>\n\n" +
57
- "### Invariants\n" +
58
- "Were any invariants introduced, weakened, strengthened, or made obsolete?\n" +
59
- " Add: jumbo invariant add --title \"...\" --description \"...\" --enforcement \"...\"\n" +
60
- " Update: jumbo invariant update --id <id> --description \"...\" --enforcement \"...\"\n" +
61
- " Remove: jumbo invariant remove --id <id>\n\n" +
62
- "### Guidelines\n" +
63
- "Were any coding, testing, or documentation guidelines introduced or changed?\n" +
64
- " Add: jumbo guideline add --category \"...\" --title \"...\" --description \"...\"\n" +
65
- " Update: jumbo guideline update --guideline-id <id> --description \"...\"\n" +
66
- " Remove: jumbo guideline remove --guideline-id <id>\n\n" +
67
- "### Dependencies\n" +
68
- "Were any inter-component dependencies added, removed, or changed?\n" +
69
- " Add: jumbo dependency add --consumer-id <id> --provider-id <id> --contract \"...\"\n" +
70
- " Update: jumbo dependency update --id <id> --contract \"...\"\n" +
71
- " Remove: jumbo dependency remove --id <id>\n\n" +
72
- "### Architecture\n" +
73
- "Did this work change the architecture style, principles, or patterns?\n" +
74
- " Update: jumbo architecture update --style \"...\" --principles \"...\"\n\n" +
75
- "### Relations\n" +
76
- "Should any new relations be established between entities touched by this goal?\n" +
77
- " Add: jumbo relation add --from-type <type> --from-id <id> --to-type <type> --to-id <id> --type <type> --strength <level>");
78
- // Next goal in chain (if exists)
79
- if (response.nextGoal) {
80
- this.builder.addPrompt("## Next goal in chain:");
81
- this.builder.addData({
82
- goalId: response.nextGoal.goalId,
83
- objective: response.nextGoal.objective,
84
- status: response.nextGoal.status,
85
- });
86
- this.builder.addPrompt("Start the next goal immediately. Run:\n" +
87
- ` jumbo goal start --id ${response.nextGoal.goalId}`);
88
- }
89
- return this.builder.build();
90
- }
91
- /**
92
- * Build output for goal completion failure.
93
- * Renders error message when goal completion fails.
94
- */
95
- buildFailureError(error) {
96
- this.builder.reset();
97
- this.builder.addPrompt("✗ Failed to complete goal");
98
- this.builder.addData({
99
- message: error instanceof Error ? error.message : error
100
- });
101
- return this.builder.build();
102
- }
103
- }
104
- exports.GoalCompleteOutputBuilder = GoalCompleteOutputBuilder;
105
- //# sourceMappingURL=GoalCompleteOutputBuilder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GoalCompleteOutputBuilder.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAIjF;;;;;;GAMG;AACH,MAAa,yBAAyB;IAGpC;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,gDAAqB,EAAE,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,uBAAuB;QACrB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,8HAA8H;YAC9H,KAAK,CACN,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,QAA8B;QACzC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAErB,mCAAmC;QACnC,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,wCAAwC;YACxC,qEAAqE;YACrE,mIAAmI;YACnI,4DAA4D;YAC5D,oCAAoC;YACpC,wDAAwD;YACxD,wEAAwE;YACxE,sEAAsE;YACtE,0EAA0E;YAC1E,yCAAyC,CAC1C,CAAC;QAEF,sDAAsD;QACtD,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,iCAAiC;YACjC,0FAA0F;YAC1F,wHAAwH;YACxH,kBAAkB;YAClB,iHAAiH;YACjH,6FAA6F;YAC7F,qEAAqE;YACrE,gIAAgI;YAChI,iBAAiB;YACjB,mFAAmF;YACnF,mFAAmF;YACnF,iEAAiE;YACjE,gFAAgF;YAChF,kBAAkB;YAClB,6EAA6E;YAC7E,0FAA0F;YAC1F,0FAA0F;YAC1F,gDAAgD;YAChD,kBAAkB;YAClB,gFAAgF;YAChF,uFAAuF;YACvF,8EAA8E;YAC9E,0DAA0D;YAC1D,oBAAoB;YACpB,qEAAqE;YACrE,wFAAwF;YACxF,kEAAkE;YAClE,iDAAiD;YACjD,oBAAoB;YACpB,yEAAyE;YACzE,8EAA8E;YAC9E,iBAAiB;YACjB,kFAAkF;YAClF,4HAA4H,CAC7H,CAAC;QAEF,iCAAiC;QACjC,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACtB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC;YACjD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;gBACnB,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM;gBAChC,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,SAAS;gBACtC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM;aACjC,CAAC,CAAC;YACH,IAAI,CAAC,OAAO,CAAC,SAAS,CACpB,yCAAyC;gBACzC,2BAA2B,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CACtD,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,iBAAiB,CAAC,KAAqB;QACrC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;SACxD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AA5GD,8DA4GC"}
@@ -1,20 +0,0 @@
1
- /**
2
- * CLI Command: jumbo goal complete
3
- *
4
- * @deprecated Use 'jumbo goal codify' followed by 'jumbo goal close' instead.
5
- * Completes a QUALIFIED goal. Retained for backward compatibility.
6
- */
7
- import { CommandMetadata } from "../../registry/CommandMetadata.js";
8
- import { IApplicationContainer } from "../../../../../application/host/IApplicationContainer.js";
9
- /**
10
- * Command metadata for auto-registration
11
- */
12
- export declare const metadata: CommandMetadata;
13
- /**
14
- * Command handler
15
- * Called by Commander with parsed options
16
- */
17
- export declare function goalComplete(options: {
18
- id: string;
19
- }, container: IApplicationContainer): Promise<void>;
20
- //# sourceMappingURL=goal.complete.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"goal.complete.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/goals/complete/goal.complete.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAIjG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAiBtB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACvB,SAAS,EAAE,qBAAqB,iBAwBjC"}
@@ -1,58 +0,0 @@
1
- "use strict";
2
- /**
3
- * CLI Command: jumbo goal complete
4
- *
5
- * @deprecated Use 'jumbo goal codify' followed by 'jumbo goal close' instead.
6
- * Completes a QUALIFIED goal. Retained for backward compatibility.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.metadata = void 0;
10
- exports.goalComplete = goalComplete;
11
- const Renderer_js_1 = require("../../../rendering/Renderer.js");
12
- const GoalCompleteOutputBuilder_js_1 = require("./GoalCompleteOutputBuilder.js");
13
- /**
14
- * Command metadata for auto-registration
15
- */
16
- exports.metadata = {
17
- description: "[deprecated] Mark a qualified goal as completed. Use 'goal codify' + 'goal close' instead.",
18
- category: "work",
19
- requiredOptions: [
20
- {
21
- flags: "-i, --id <id>",
22
- description: "ID of the goal to complete"
23
- }
24
- ],
25
- options: [],
26
- examples: [
27
- {
28
- command: "jumbo goal complete --id goal_abc123",
29
- description: "Complete a qualified goal (deprecated)"
30
- }
31
- ],
32
- related: ["goal codify", "goal close"]
33
- };
34
- /**
35
- * Command handler
36
- * Called by Commander with parsed options
37
- */
38
- async function goalComplete(options, container) {
39
- const renderer = Renderer_js_1.Renderer.getInstance();
40
- try {
41
- // 1. Emit deprecation warning
42
- const outputBuilder = new GoalCompleteOutputBuilder_js_1.GoalCompleteOutputBuilder();
43
- const warning = outputBuilder.buildDeprecationWarning();
44
- renderer.info(warning.toHumanReadable());
45
- // 2. Execute via controller
46
- const response = await container.completeGoalController.handle({
47
- goalId: options.id,
48
- });
49
- // 3. Build and render output using builder pattern
50
- const output = outputBuilder.buildSuccess(response);
51
- renderer.info(output.toHumanReadable());
52
- }
53
- catch (error) {
54
- renderer.error("Failed to complete goal", error instanceof Error ? error : String(error));
55
- process.exit(1);
56
- }
57
- }
58
- //# sourceMappingURL=goal.complete.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"goal.complete.js","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/goals/complete/goal.complete.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAiCH,oCA0BC;AAvDD,gEAA0D;AAC1D,iFAA2E;AAE3E;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,4FAA4F;IACzG,QAAQ,EAAE,MAAM;IAChB,eAAe,EAAE;QACf;YACE,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,4BAA4B;SAC1C;KACF;IACD,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,sCAAsC;YAC/C,WAAW,EAAE,wCAAwC;SACtD;KACF;IACD,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACI,KAAK,UAAU,YAAY,CAChC,OAAuB,EACvB,SAAgC;IAEhC,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IAExC,IAAI,CAAC;QACH,8BAA8B;QAC9B,MAAM,aAAa,GAAG,IAAI,wDAAyB,EAAE,CAAC;QACtD,MAAM,OAAO,GAAG,aAAa,CAAC,uBAAuB,EAAE,CAAC;QACxD,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;QAEzC,4BAA4B;QAC5B,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,sBAAsB,CAAC,MAAM,CAAC;YAC7D,MAAM,EAAE,OAAO,CAAC,EAAE;SACnB,CAAC,CAAC;QAEH,mDAAmD;QACnD,MAAM,MAAM,GAAG,aAAa,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAEpD,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;IAE1C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * CLI Command: jumbo db rebuild
3
- *
4
- * Rebuilds the materialized views (SQLite database) by replaying all events
5
- * from the event store. Useful for recovering from database corruption.
6
- *
7
- * This command delegates to the application layer for the rebuild operation.
8
- * All infrastructure concerns (closing connections, deleting files) are
9
- * handled by the infrastructure layer via dependency inversion.
10
- */
11
- import { CommandMetadata } from "../../../registry/CommandMetadata.js";
12
- import { IApplicationContainer } from "../../../../../../application/host/IApplicationContainer.js";
13
- /**
14
- * Command metadata for auto-registration
15
- */
16
- export declare const metadata: CommandMetadata;
17
- interface RebuildOptions {
18
- yes?: boolean;
19
- }
20
- /**
21
- * Command handler
22
- * Called by Commander with parsed options
23
- */
24
- export declare function dbRebuild(options: RebuildOptions, container: IApplicationContainer): Promise<void>;
25
- export {};
26
- //# sourceMappingURL=db.rebuild.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"db.rebuild.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAGpG;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,eAmBtB,CAAC;AAEF,UAAU,cAAc;IACtB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,qBAAqB,iBAgCxF"}
@@ -1,68 +0,0 @@
1
- "use strict";
2
- /**
3
- * CLI Command: jumbo db rebuild
4
- *
5
- * Rebuilds the materialized views (SQLite database) by replaying all events
6
- * from the event store. Useful for recovering from database corruption.
7
- *
8
- * This command delegates to the application layer for the rebuild operation.
9
- * All infrastructure concerns (closing connections, deleting files) are
10
- * handled by the infrastructure layer via dependency inversion.
11
- */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.metadata = void 0;
14
- exports.dbRebuild = dbRebuild;
15
- const Renderer_js_1 = require("../../../../rendering/Renderer.js");
16
- /**
17
- * Command metadata for auto-registration
18
- */
19
- exports.metadata = {
20
- description: "Rebuild the database from the event store",
21
- options: [
22
- {
23
- flags: "--yes",
24
- description: "Skip confirmation prompt",
25
- },
26
- ],
27
- examples: [
28
- {
29
- command: "jumbo db rebuild",
30
- description: "Rebuild the database with confirmation prompt",
31
- },
32
- {
33
- command: "jumbo db rebuild --yes",
34
- description: "Rebuild the database without confirmation",
35
- },
36
- ],
37
- related: [],
38
- };
39
- /**
40
- * Command handler
41
- * Called by Commander with parsed options
42
- */
43
- async function dbRebuild(options, container) {
44
- const renderer = Renderer_js_1.Renderer.getInstance();
45
- try {
46
- // Confirm destructive operation
47
- if (!options.yes) {
48
- renderer.info("⚠️ WARNING: This will delete and rebuild the database.\n" +
49
- "All materialized views will be reconstructed from the event store.\n");
50
- renderer.error("Confirmation required", "Use --yes flag to proceed");
51
- process.exit(1);
52
- }
53
- renderer.info("Starting database rebuild...\n");
54
- // Delegate to controller — all db lifecycle concerns handled internally
55
- const response = await container.rebuildDatabaseController.handle({
56
- skipConfirmation: options.yes,
57
- });
58
- // Success output
59
- renderer.success("Database rebuilt successfully", {
60
- eventsReplayed: response.eventsReplayed,
61
- });
62
- }
63
- catch (error) {
64
- renderer.error("Failed to rebuild database", error instanceof Error ? error : String(error));
65
- process.exit(1);
66
- }
67
- }
68
- //# sourceMappingURL=db.rebuild.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"db.rebuild.js","sourceRoot":"","sources":["../../../../../../../src/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAsCH,8BAgCC;AAlED,mEAA6D;AAE7D;;GAEG;AACU,QAAA,QAAQ,GAAoB;IACvC,WAAW,EAAE,2CAA2C;IACxD,OAAO,EAAE;QACP;YACE,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,0BAA0B;SACxC;KACF;IACD,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,+CAA+C;SAC7D;QACD;YACE,OAAO,EAAE,wBAAwB;YACjC,WAAW,EAAE,2CAA2C;SACzD;KACF;IACD,OAAO,EAAE,EAAE;CACZ,CAAC;AAMF;;;GAGG;AACI,KAAK,UAAU,SAAS,CAAC,OAAuB,EAAE,SAAgC;IACvF,MAAM,QAAQ,GAAG,sBAAQ,CAAC,WAAW,EAAE,CAAC;IAExC,IAAI,CAAC;QACH,gCAAgC;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YACjB,QAAQ,CAAC,IAAI,CACX,2DAA2D;gBAC3D,sEAAsE,CACvE,CAAC;YACF,QAAQ,CAAC,KAAK,CAAC,uBAAuB,EAAE,2BAA2B,CAAC,CAAC;YACrE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,QAAQ,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;QAEhD,wEAAwE;QACxE,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,yBAAyB,CAAC,MAAM,CAAC;YAChE,gBAAgB,EAAE,OAAO,CAAC,GAAG;SAC9B,CAAC,CAAC;QAEH,iBAAiB;QACjB,QAAQ,CAAC,OAAO,CAAC,+BAA+B,EAAE;YAChD,cAAc,EAAE,QAAQ,CAAC,cAAc;SACxC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,KAAK,CACZ,4BAA4B,EAC5B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAC/C,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}