jumbo-cli 2.0.0 → 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 (278) 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/application/context/telemetry/get/LocalGetTelemetryStatusGateway.d.ts.map +1 -1
  15. package/dist/application/context/telemetry/get/LocalGetTelemetryStatusGateway.js +4 -1
  16. package/dist/application/context/telemetry/get/LocalGetTelemetryStatusGateway.js.map +1 -1
  17. package/dist/application/context/telemetry/update/UpdateTelemetryConsentCommandHandler.d.ts.map +1 -1
  18. package/dist/application/context/telemetry/update/UpdateTelemetryConsentCommandHandler.js +1 -0
  19. package/dist/application/context/telemetry/update/UpdateTelemetryConsentCommandHandler.js.map +1 -1
  20. package/dist/application/settings/Settings.d.ts +8 -2
  21. package/dist/application/settings/Settings.d.ts.map +1 -1
  22. package/dist/domain/project/AgentFileReferenceContent.js +7 -7
  23. package/dist/domain/project/AgentsMdContent.js +74 -74
  24. package/dist/domain/project/CopilotInstructionsContent.js +38 -38
  25. package/dist/infrastructure/context/architecture/define/SqliteArchitectureDefinedProjector.js +5 -5
  26. package/dist/infrastructure/context/architecture/migrations/001-create-architecture-views.sql +16 -16
  27. package/dist/infrastructure/context/architecture/migrations/002-drop-dataflow-column.sql +4 -4
  28. package/dist/infrastructure/context/architecture/update/SqliteArchitectureUpdatedProjector.js +4 -4
  29. package/dist/infrastructure/context/audience-pains/add/SqliteAudiencePainAddedProjector.js +4 -4
  30. package/dist/infrastructure/context/audience-pains/migrations/001-create-audience-pain-views.sql +17 -17
  31. package/dist/infrastructure/context/audience-pains/update/SqliteAudiencePainUpdatedProjector.js +4 -4
  32. package/dist/infrastructure/context/audiences/add/SqliteAudienceAddedProjector.js +5 -5
  33. package/dist/infrastructure/context/audiences/migrations/001-create-audience-views.sql +17 -17
  34. package/dist/infrastructure/context/audiences/remove/SqliteAudienceRemovedProjector.js +6 -6
  35. package/dist/infrastructure/context/audiences/update/SqliteAudienceUpdatedProjector.js +4 -4
  36. package/dist/infrastructure/context/components/add/SqliteComponentAddedProjector.js +5 -5
  37. package/dist/infrastructure/context/components/deprecate/SqliteComponentDeprecatedProjector.js +7 -7
  38. package/dist/infrastructure/context/components/migrations/001-create-component-views.sql +21 -21
  39. package/dist/infrastructure/context/components/remove/SqliteComponentRemovedProjector.js +6 -6
  40. package/dist/infrastructure/context/components/rename/SqliteComponentRenamedProjector.js +4 -4
  41. package/dist/infrastructure/context/components/undeprecate/SqliteComponentUndeprecatedProjector.js +7 -7
  42. package/dist/infrastructure/context/components/update/SqliteComponentUpdatedProjector.js +4 -4
  43. package/dist/infrastructure/context/decisions/add/SqliteDecisionAddedProjector.js +6 -6
  44. package/dist/infrastructure/context/decisions/migrations/001-create-decision-views.sql +22 -22
  45. package/dist/infrastructure/context/decisions/restore/SqliteDecisionRestoredProjector.js +9 -9
  46. package/dist/infrastructure/context/decisions/reverse/SqliteDecisionReversedProjector.js +8 -8
  47. package/dist/infrastructure/context/decisions/supersede/SqliteDecisionSupersededProjector.js +7 -7
  48. package/dist/infrastructure/context/decisions/update/SqliteDecisionUpdatedProjector.js +10 -10
  49. package/dist/infrastructure/context/dependencies/add/SqliteDependencyAddedProjector.js +5 -5
  50. package/dist/infrastructure/context/dependencies/get/SqliteLegacyDependencyReader.js +5 -5
  51. package/dist/infrastructure/context/dependencies/migrations/001-create-dependency-views.sql +21 -21
  52. package/dist/infrastructure/context/dependencies/migrations/002-add-external-dependency-columns.sql +11 -11
  53. package/dist/infrastructure/context/dependencies/remove/SqliteDependencyRemovedProjector.js +8 -8
  54. package/dist/infrastructure/context/dependencies/update/SqliteDependencyUpdatedProjector.js +4 -4
  55. package/dist/infrastructure/context/goals/add/SqliteGoalAddedProjector.js +7 -7
  56. package/dist/infrastructure/context/goals/approve/SqliteGoalApprovedProjector.js +9 -9
  57. package/dist/infrastructure/context/goals/block/SqliteGoalBlockedProjector.js +7 -7
  58. package/dist/infrastructure/context/goals/close/SqliteGoalClosedProjector.js +9 -9
  59. package/dist/infrastructure/context/goals/codify/SqliteGoalCodifyingStartedProjector.js +9 -9
  60. package/dist/infrastructure/context/goals/commit/SqliteGoalCommittedProjector.js +9 -9
  61. package/dist/infrastructure/context/goals/complete/SqliteGoalCompletedProjector.js +9 -9
  62. package/dist/infrastructure/context/goals/migrate/SqliteGoalStatusMigratedProjector.js +7 -7
  63. package/dist/infrastructure/context/goals/migrations/001-create-goal-views.sql +20 -20
  64. package/dist/infrastructure/context/goals/migrations/002-add-embedded-context-columns.sql +11 -11
  65. package/dist/infrastructure/context/goals/migrations/003-add-next-goal-column.sql +4 -4
  66. package/dist/infrastructure/context/goals/migrations/004-add-claim-columns.sql +7 -7
  67. package/dist/infrastructure/context/goals/migrations/005-add-progress-column.sql +4 -4
  68. package/dist/infrastructure/context/goals/migrations/006-drop-boundaries-and-embedded-context-columns.sql +11 -11
  69. package/dist/infrastructure/context/goals/migrations/007-add-title-column.sql +2 -2
  70. package/dist/infrastructure/context/goals/migrations/008-add-prerequisite-goals-column.sql +1 -1
  71. package/dist/infrastructure/context/goals/migrations/009-add-review-issues-column.sql +1 -1
  72. package/dist/infrastructure/context/goals/pause/SqliteGoalPausedProjector.js +7 -7
  73. package/dist/infrastructure/context/goals/qualify/SqliteGoalQualifiedProjector.js +9 -9
  74. package/dist/infrastructure/context/goals/refine/SqliteGoalRefinedProjector.js +15 -15
  75. package/dist/infrastructure/context/goals/reject/SqliteGoalRejectedProjector.js +10 -10
  76. package/dist/infrastructure/context/goals/remove/SqliteGoalRemovedProjector.js +3 -3
  77. package/dist/infrastructure/context/goals/reset/SqliteGoalResetProjector.js +11 -11
  78. package/dist/infrastructure/context/goals/resume/SqliteGoalResumedProjector.js +10 -10
  79. package/dist/infrastructure/context/goals/review/SqliteGoalSubmittedForReviewProjector.js +9 -9
  80. package/dist/infrastructure/context/goals/start/SqliteGoalStartedProjector.js +9 -9
  81. package/dist/infrastructure/context/goals/submit/SqliteGoalSubmittedProjector.js +9 -9
  82. package/dist/infrastructure/context/goals/unblock/SqliteGoalUnblockedProjector.js +7 -7
  83. package/dist/infrastructure/context/goals/update/SqliteGoalUpdatedProjector.js +4 -4
  84. package/dist/infrastructure/context/goals/update-progress/SqliteGoalProgressUpdatedProjector.js +8 -8
  85. package/dist/infrastructure/context/guidelines/add/SqliteGuidelineAddedProjector.js +5 -5
  86. package/dist/infrastructure/context/guidelines/migrations/001-create-guideline-views.sql +22 -22
  87. package/dist/infrastructure/context/guidelines/remove/SqliteGuidelineRemovedProjector.js +8 -8
  88. package/dist/infrastructure/context/guidelines/update/SqliteGuidelineUpdatedProjector.js +4 -4
  89. package/dist/infrastructure/context/invariants/add/SqliteInvariantAddedProjector.js +5 -5
  90. package/dist/infrastructure/context/invariants/migrations/001-create-invariant-views.sql +16 -16
  91. package/dist/infrastructure/context/invariants/remove/SqliteInvariantRemovedProjector.js +2 -2
  92. package/dist/infrastructure/context/invariants/update/SqliteInvariantUpdatedProjector.js +9 -9
  93. package/dist/infrastructure/context/project/init/SqliteProjectInitializedProjector.js +5 -5
  94. package/dist/infrastructure/context/project/migrations/001-create-project-views.sql +13 -13
  95. package/dist/infrastructure/context/project/migrations/002-drop-boundaries-column.sql +4 -4
  96. package/dist/infrastructure/context/project/update/SqliteProjectUpdatedProjector.js +4 -4
  97. package/dist/infrastructure/context/relations/add/SqliteRelationAddedProjector.js +12 -12
  98. package/dist/infrastructure/context/relations/deactivate/SqliteRelationDeactivatedProjector.js +14 -14
  99. package/dist/infrastructure/context/relations/migrations/001-create-relation-views.sql +28 -28
  100. package/dist/infrastructure/context/relations/reactivate/SqliteRelationReactivatedProjector.js +14 -14
  101. package/dist/infrastructure/context/relations/remove/SqliteRelationRemovedProjector.js +14 -14
  102. package/dist/infrastructure/context/sessions/end/SqliteSessionEndedProjector.js +8 -8
  103. package/dist/infrastructure/context/sessions/migrations/001-create-session-views.sql +43 -43
  104. package/dist/infrastructure/context/sessions/migrations/002-add-goal-lifecycle-columns.sql +7 -7
  105. package/dist/infrastructure/context/sessions/migrations/003-remove-session-pause-status.sql +8 -8
  106. package/dist/infrastructure/context/sessions/migrations/004-drop-session-summary-views.sql +5 -5
  107. package/dist/infrastructure/context/sessions/start/SqliteSessionStartedProjector.js +5 -5
  108. package/dist/infrastructure/context/value-propositions/add/SqliteValuePropositionAddedProjector.js +5 -5
  109. package/dist/infrastructure/context/value-propositions/migrations/001-create-value-proposition-views.sql +19 -19
  110. package/dist/infrastructure/context/value-propositions/remove/SqliteValuePropositionRemovedProjector.js +2 -2
  111. package/dist/infrastructure/context/value-propositions/update/SqliteValuePropositionUpdatedProjector.js +4 -4
  112. package/dist/infrastructure/host/workers/migrations/001-create-workers.sql +12 -12
  113. package/dist/infrastructure/persistence/MigrationRunner.js +10 -10
  114. package/dist/infrastructure/settings/DefaultSettings.d.ts.map +1 -1
  115. package/dist/infrastructure/settings/DefaultSettings.js +2 -1
  116. package/dist/infrastructure/settings/DefaultSettings.js.map +1 -1
  117. package/dist/infrastructure/settings/FsSettingsInitializer.d.ts.map +1 -1
  118. package/dist/infrastructure/settings/FsSettingsInitializer.js +25 -23
  119. package/dist/infrastructure/settings/FsSettingsInitializer.js.map +1 -1
  120. package/dist/infrastructure/settings/FsSettingsReader.d.ts.map +1 -1
  121. package/dist/infrastructure/settings/FsSettingsReader.js +27 -25
  122. package/dist/infrastructure/settings/FsSettingsReader.js.map +1 -1
  123. package/dist/presentation/cli/commands/project/init/project.init.d.ts.map +1 -1
  124. package/dist/presentation/cli/commands/project/init/project.init.js +13 -6
  125. package/dist/presentation/cli/commands/project/init/project.init.js.map +1 -1
  126. package/package.json +89 -89
  127. package/dist/application/context/goals/complete/CompleteGoalCommand.d.ts +0 -8
  128. package/dist/application/context/goals/complete/CompleteGoalCommand.d.ts.map +0 -1
  129. package/dist/application/context/goals/complete/CompleteGoalCommand.js +0 -3
  130. package/dist/application/context/goals/complete/CompleteGoalCommand.js.map +0 -1
  131. package/dist/application/context/goals/complete/CompleteGoalCommandHandler.d.ts +0 -27
  132. package/dist/application/context/goals/complete/CompleteGoalCommandHandler.d.ts.map +0 -1
  133. package/dist/application/context/goals/complete/CompleteGoalCommandHandler.js +0 -52
  134. package/dist/application/context/goals/complete/CompleteGoalCommandHandler.js.map +0 -1
  135. package/dist/application/context/goals/complete/CompleteGoalController.d.ts +0 -9
  136. package/dist/application/context/goals/complete/CompleteGoalController.d.ts.map +0 -1
  137. package/dist/application/context/goals/complete/CompleteGoalController.js +0 -13
  138. package/dist/application/context/goals/complete/CompleteGoalController.js.map +0 -1
  139. package/dist/application/context/goals/complete/CompleteGoalRequest.d.ts +0 -10
  140. package/dist/application/context/goals/complete/CompleteGoalRequest.d.ts.map +0 -1
  141. package/dist/application/context/goals/complete/CompleteGoalRequest.js +0 -3
  142. package/dist/application/context/goals/complete/CompleteGoalRequest.js.map +0 -1
  143. package/dist/application/context/goals/complete/CompleteGoalResponse.d.ts +0 -17
  144. package/dist/application/context/goals/complete/CompleteGoalResponse.d.ts.map +0 -1
  145. package/dist/application/context/goals/complete/CompleteGoalResponse.js +0 -3
  146. package/dist/application/context/goals/complete/CompleteGoalResponse.js.map +0 -1
  147. package/dist/application/context/goals/complete/ICompleteGoalGateway.d.ts +0 -6
  148. package/dist/application/context/goals/complete/ICompleteGoalGateway.d.ts.map +0 -1
  149. package/dist/application/context/goals/complete/ICompleteGoalGateway.js +0 -3
  150. package/dist/application/context/goals/complete/ICompleteGoalGateway.js.map +0 -1
  151. package/dist/application/context/goals/complete/LocalCompleteGoalGateway.d.ts +0 -16
  152. package/dist/application/context/goals/complete/LocalCompleteGoalGateway.d.ts.map +0 -1
  153. package/dist/application/context/goals/complete/LocalCompleteGoalGateway.js +0 -49
  154. package/dist/application/context/goals/complete/LocalCompleteGoalGateway.js.map +0 -1
  155. package/dist/application/context/project/init/IInitializationProtocol.d.ts +0 -44
  156. package/dist/application/context/project/init/IInitializationProtocol.d.ts.map +0 -1
  157. package/dist/application/context/project/init/IInitializationProtocol.js +0 -14
  158. package/dist/application/context/project/init/IInitializationProtocol.js.map +0 -1
  159. package/dist/application/context/project/init/InitializationProtocol.d.ts +0 -32
  160. package/dist/application/context/project/init/InitializationProtocol.d.ts.map +0 -1
  161. package/dist/application/context/project/init/InitializationProtocol.js +0 -51
  162. package/dist/application/context/project/init/InitializationProtocol.js.map +0 -1
  163. package/dist/application/context/relations/get/GetRelationsQueryHandler.d.ts +0 -14
  164. package/dist/application/context/relations/get/GetRelationsQueryHandler.d.ts.map +0 -1
  165. package/dist/application/context/relations/get/GetRelationsQueryHandler.js +0 -19
  166. package/dist/application/context/relations/get/GetRelationsQueryHandler.js.map +0 -1
  167. package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.d.ts +0 -27
  168. package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.d.ts.map +0 -1
  169. package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.js +0 -32
  170. package/dist/application/context/value-propositions/list/ListValuePropositionsQueryHandler.js.map +0 -1
  171. package/dist/application/maintenance/repair/IRepairMaintenanceGateway.d.ts +0 -6
  172. package/dist/application/maintenance/repair/IRepairMaintenanceGateway.d.ts.map +0 -1
  173. package/dist/application/maintenance/repair/IRepairMaintenanceGateway.js +0 -3
  174. package/dist/application/maintenance/repair/IRepairMaintenanceGateway.js.map +0 -1
  175. package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.d.ts +0 -16
  176. package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.d.ts.map +0 -1
  177. package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.js +0 -90
  178. package/dist/application/maintenance/repair/LocalRepairMaintenanceGateway.js.map +0 -1
  179. package/dist/application/maintenance/repair/RepairMaintenanceController.d.ts +0 -9
  180. package/dist/application/maintenance/repair/RepairMaintenanceController.d.ts.map +0 -1
  181. package/dist/application/maintenance/repair/RepairMaintenanceController.js +0 -13
  182. package/dist/application/maintenance/repair/RepairMaintenanceController.js.map +0 -1
  183. package/dist/application/maintenance/repair/RepairMaintenanceRequest.d.ts +0 -6
  184. package/dist/application/maintenance/repair/RepairMaintenanceRequest.d.ts.map +0 -1
  185. package/dist/application/maintenance/repair/RepairMaintenanceRequest.js +0 -3
  186. package/dist/application/maintenance/repair/RepairMaintenanceRequest.js.map +0 -1
  187. package/dist/application/maintenance/repair/RepairMaintenanceResponse.d.ts +0 -9
  188. package/dist/application/maintenance/repair/RepairMaintenanceResponse.d.ts.map +0 -1
  189. package/dist/application/maintenance/repair/RepairMaintenanceResponse.js +0 -3
  190. package/dist/application/maintenance/repair/RepairMaintenanceResponse.js.map +0 -1
  191. package/dist/application/repair/IRepairGateway.d.ts +0 -6
  192. package/dist/application/repair/IRepairGateway.d.ts.map +0 -1
  193. package/dist/application/repair/IRepairGateway.js +0 -3
  194. package/dist/application/repair/IRepairGateway.js.map +0 -1
  195. package/dist/application/repair/LocalRepairGateway.d.ts +0 -16
  196. package/dist/application/repair/LocalRepairGateway.d.ts.map +0 -1
  197. package/dist/application/repair/LocalRepairGateway.js +0 -90
  198. package/dist/application/repair/LocalRepairGateway.js.map +0 -1
  199. package/dist/application/repair/RepairController.d.ts +0 -9
  200. package/dist/application/repair/RepairController.d.ts.map +0 -1
  201. package/dist/application/repair/RepairController.js +0 -13
  202. package/dist/application/repair/RepairController.js.map +0 -1
  203. package/dist/application/repair/RepairRequest.d.ts +0 -6
  204. package/dist/application/repair/RepairRequest.d.ts.map +0 -1
  205. package/dist/application/repair/RepairRequest.js +0 -3
  206. package/dist/application/repair/RepairRequest.js.map +0 -1
  207. package/dist/application/repair/RepairResponse.d.ts +0 -9
  208. package/dist/application/repair/RepairResponse.d.ts.map +0 -1
  209. package/dist/application/repair/RepairResponse.js +0 -3
  210. package/dist/application/repair/RepairResponse.js.map +0 -1
  211. package/dist/domain/project/AgentInstructions.d.ts +0 -67
  212. package/dist/domain/project/AgentInstructions.d.ts.map +0 -1
  213. package/dist/domain/project/AgentInstructions.js +0 -261
  214. package/dist/domain/project/AgentInstructions.js.map +0 -1
  215. package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.d.ts +0 -33
  216. package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.d.ts.map +0 -1
  217. package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.js +0 -66
  218. package/dist/infrastructure/context/goals/claims/FsGoalClaimStore.js.map +0 -1
  219. package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.d.ts +0 -10
  220. package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.d.ts.map +0 -1
  221. package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.js +0 -36
  222. package/dist/infrastructure/context/goals/get/LocalGetGoalsGateway.js.map +0 -1
  223. package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.d.ts +0 -10
  224. package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.d.ts.map +0 -1
  225. package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.js +0 -14
  226. package/dist/infrastructure/context/goals/get/LocalShowGoalGateway.js.map +0 -1
  227. package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.d.ts +0 -10
  228. package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.d.ts.map +0 -1
  229. package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.js +0 -18
  230. package/dist/infrastructure/context/relations/get/LocalGetRelationsGateway.js.map +0 -1
  231. package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.d.ts +0 -10
  232. package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.d.ts.map +0 -1
  233. package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.js +0 -14
  234. package/dist/infrastructure/context/sessions/get/LocalGetSessionsGateway.js.map +0 -1
  235. package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.d.ts +0 -29
  236. package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.d.ts.map +0 -1
  237. package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.js +0 -105
  238. package/dist/presentation/cli/commands/goals/complete/GoalCompleteOutputBuilder.js.map +0 -1
  239. package/dist/presentation/cli/commands/goals/complete/goal.complete.d.ts +0 -20
  240. package/dist/presentation/cli/commands/goals/complete/goal.complete.d.ts.map +0 -1
  241. package/dist/presentation/cli/commands/goals/complete/goal.complete.js +0 -58
  242. package/dist/presentation/cli/commands/goals/complete/goal.complete.js.map +0 -1
  243. package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.d.ts +0 -26
  244. package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.d.ts.map +0 -1
  245. package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.js +0 -68
  246. package/dist/presentation/cli/commands/maintenance/db/rebuild/db.rebuild.js.map +0 -1
  247. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.d.ts +0 -14
  248. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.d.ts.map +0 -1
  249. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.js +0 -61
  250. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/MigrateDependenciesOutputBuilder.js.map +0 -1
  251. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.d.ts +0 -23
  252. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.d.ts.map +0 -1
  253. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.js +0 -59
  254. package/dist/presentation/cli/commands/maintenance/migrate-dependencies/dependency.migrate.js.map +0 -1
  255. package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.d.ts +0 -24
  256. package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.d.ts.map +0 -1
  257. package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.js +0 -49
  258. package/dist/presentation/cli/commands/maintenance/repair/RepairOutputBuilder.js.map +0 -1
  259. package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.d.ts +0 -27
  260. package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.d.ts.map +0 -1
  261. package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.js +0 -85
  262. package/dist/presentation/cli/commands/maintenance/repair/maintenance.repair.js.map +0 -1
  263. package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.d.ts +0 -16
  264. package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.d.ts.map +0 -1
  265. package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.js +0 -40
  266. package/dist/presentation/cli/commands/maintenance/upgrade/UpgradeOutputBuilder.js.map +0 -1
  267. package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.d.ts +0 -26
  268. package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.d.ts.map +0 -1
  269. package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.js +0 -64
  270. package/dist/presentation/cli/commands/maintenance/upgrade/db.upgrade.js.map +0 -1
  271. package/dist/presentation/cli/commands/repair/RepairOutputBuilder.d.ts +0 -24
  272. package/dist/presentation/cli/commands/repair/RepairOutputBuilder.d.ts.map +0 -1
  273. package/dist/presentation/cli/commands/repair/RepairOutputBuilder.js +0 -50
  274. package/dist/presentation/cli/commands/repair/RepairOutputBuilder.js.map +0 -1
  275. package/dist/presentation/cli/commands/repair/repair.d.ts +0 -31
  276. package/dist/presentation/cli/commands/repair/repair.d.ts.map +0 -1
  277. package/dist/presentation/cli/commands/repair/repair.js +0 -88
  278. package/dist/presentation/cli/commands/repair/repair.js.map +0 -1
package/package.json CHANGED
@@ -1,89 +1,89 @@
1
- {
2
- "name": "jumbo-cli",
3
- "version": "2.0.0",
4
- "description": "Memory for Coding Agents",
5
- "keywords": [
6
- "cli",
7
- "command-line",
8
- "coding-agent-context",
9
- "terminal",
10
- "agent-context",
11
- "ai-agent-context",
12
- "llm-agent-context",
13
- "coding-agent-memory",
14
- "agent-memory",
15
- "ai-agent-memory",
16
- "llm-agent-memory",
17
- "context-engineering",
18
- "developer-tools"
19
- ],
20
- "homepage": "https://github.com/jumbo-dot-tech/jumbo.cli#readme",
21
- "bugs": {
22
- "url": "https://github.com/jumbo-dot-tech/jumbo.cli/issues"
23
- },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/jumbo-dot-tech/jumbo.cli.git"
27
- },
28
- "license": "AGPL-3.0",
29
- "author": "Josh Wheelock <josh@jumbo.tech.com> (https://jumbo.tech)",
30
- "main": "dist/index.js",
31
- "bin": {
32
- "jumbo": "dist/cli.js"
33
- },
34
- "files": [
35
- "dist",
36
- "assets"
37
- ],
38
- "scripts": {
39
- "generate:commands": "node build/generate-command-registry.mjs",
40
- "prebuild": "npm run generate:commands",
41
- "build": "tsc && npm run copy:migrations",
42
- "copy:migrations": "node build/copy-migrations.mjs",
43
- "dev": "tsc --watch",
44
- "test": "jest",
45
- "lint": "eslint --config eslint.config.mjs \"src/**/*.ts\"",
46
- "format": "prettier --write \"src/**/*.ts\"",
47
- "prepublishOnly": "npm run build",
48
- "clean:testdata": "rm -rf .jumbo test-integration-*"
49
- },
50
- "dependencies": {
51
- "better-sqlite3": "^12.4.1",
52
- "boxen": "^8.0.1",
53
- "chalk": "^4.1.2",
54
- "commander": "^11.1.0",
55
- "date-fns": "^3.0.6",
56
- "fast-glob": "^3.3.2",
57
- "fs-extra": "^11.3.2",
58
- "ink": "^3.2.0",
59
- "inquirer": "^8.2.5",
60
- "inversify": "^7.10.4",
61
- "jsonc-parser": "^3.3.1",
62
- "posthog-node": "^5.21.2",
63
- "react": "^17.0.2",
64
- "react-dom": "^17.0.2",
65
- "reflect-metadata": "^0.2.2",
66
- "strip-ansi": "^6.0.1",
67
- "ulid": "^2.3.0",
68
- "uuid": "^13.0.0",
69
- "yaml": "^2.8.1"
70
- },
71
- "devDependencies": {
72
- "@eslint/js": "^9.0.0",
73
- "@types/better-sqlite3": "^7.6.13",
74
- "@types/fs-extra": "^11.0.4",
75
- "@types/inquirer": "^8.2.10",
76
- "@types/jest": "^29.5.11",
77
- "@types/node": "^20.19.19",
78
- "@types/uuid": "^10.0.0",
79
- "eslint": "^9.0.0",
80
- "jest": "^29.7.0",
81
- "prettier": "^3.1.1",
82
- "ts-jest": "^29.1.1",
83
- "typescript": "^5.9.3",
84
- "typescript-eslint": "^8.0.0"
85
- },
86
- "engines": {
87
- "node": ">=18.18.0"
88
- }
89
- }
1
+ {
2
+ "name": "jumbo-cli",
3
+ "version": "2.0.2",
4
+ "description": "Memory and Context Orchestration for Coding Agents",
5
+ "keywords": [
6
+ "cli",
7
+ "command-line",
8
+ "coding-agent-context",
9
+ "terminal",
10
+ "agent-context",
11
+ "ai-agent-context",
12
+ "llm-agent-context",
13
+ "coding-agent-memory",
14
+ "agent-memory",
15
+ "ai-agent-memory",
16
+ "llm-agent-memory",
17
+ "context-engineering",
18
+ "developer-tools"
19
+ ],
20
+ "homepage": "https://jumbocontext.com",
21
+ "bugs": {
22
+ "url": "https://github.com/jumbocontext/jumbo.cli/issues"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/jumbocontext/jumbo.cli.git"
27
+ },
28
+ "license": "AGPL-3.0",
29
+ "author": "Josh Wheelock <hello@jumbocontext.com> (https://jumbocontext.com)",
30
+ "main": "dist/index.js",
31
+ "bin": {
32
+ "jumbo": "dist/cli.js"
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "assets"
37
+ ],
38
+ "scripts": {
39
+ "generate:commands": "node build/generate-command-registry.mjs",
40
+ "prebuild": "npm run generate:commands",
41
+ "build": "tsc && npm run copy:migrations",
42
+ "copy:migrations": "node build/copy-migrations.mjs",
43
+ "dev": "tsc --watch",
44
+ "test": "jest",
45
+ "lint": "eslint --config eslint.config.mjs \"src/**/*.ts\"",
46
+ "format": "prettier --write \"src/**/*.ts\"",
47
+ "prepublishOnly": "npm run build",
48
+ "clean:testdata": "rm -rf .jumbo test-integration-*"
49
+ },
50
+ "dependencies": {
51
+ "better-sqlite3": "^12.4.1",
52
+ "boxen": "^8.0.1",
53
+ "chalk": "^4.1.2",
54
+ "commander": "^11.1.0",
55
+ "date-fns": "^3.0.6",
56
+ "fast-glob": "^3.3.2",
57
+ "fs-extra": "^11.3.2",
58
+ "ink": "^3.2.0",
59
+ "inquirer": "^8.2.5",
60
+ "inversify": "^7.10.4",
61
+ "jsonc-parser": "^3.3.1",
62
+ "posthog-node": "^5.21.2",
63
+ "react": "^17.0.2",
64
+ "react-dom": "^17.0.2",
65
+ "reflect-metadata": "^0.2.2",
66
+ "strip-ansi": "^6.0.1",
67
+ "ulid": "^2.3.0",
68
+ "uuid": "^13.0.0",
69
+ "yaml": "^2.8.1"
70
+ },
71
+ "devDependencies": {
72
+ "@eslint/js": "^9.0.0",
73
+ "@types/better-sqlite3": "^7.6.13",
74
+ "@types/fs-extra": "^11.0.4",
75
+ "@types/inquirer": "^8.2.10",
76
+ "@types/jest": "^29.5.11",
77
+ "@types/node": "^20.19.19",
78
+ "@types/uuid": "^10.0.0",
79
+ "eslint": "^9.0.0",
80
+ "jest": "^29.7.0",
81
+ "prettier": "^3.1.1",
82
+ "ts-jest": "^29.1.1",
83
+ "typescript": "^5.9.3",
84
+ "typescript-eslint": "^8.0.0"
85
+ },
86
+ "engines": {
87
+ "node": ">=18.18.0"
88
+ }
89
+ }
@@ -1,8 +0,0 @@
1
- /**
2
- * Command to complete a goal.
3
- * Transitions goal status from "doing" or "blocked" to "completed".
4
- */
5
- export interface CompleteGoalCommand {
6
- readonly goalId: string;
7
- }
8
- //# sourceMappingURL=CompleteGoalCommand.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalCommand.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalCommand.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=CompleteGoalCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalCommand.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalCommand.ts"],"names":[],"mappings":""}
@@ -1,27 +0,0 @@
1
- import { CompleteGoalCommand } from "./CompleteGoalCommand.js";
2
- import { IGoalCompletedEventWriter } from "./IGoalCompletedEventWriter.js";
3
- import { IGoalCompletedEventReader } from "./IGoalCompletedEventReader.js";
4
- import { IGoalCompleteReader } from "./IGoalCompleteReader.js";
5
- import { IEventBus } from "../../../messaging/IEventBus.js";
6
- import { GoalClaimPolicy } from "../claims/GoalClaimPolicy.js";
7
- import { IWorkerIdentityReader } from "../../../host/workers/IWorkerIdentityReader.js";
8
- import { GoalContextQueryHandler } from "../get/GoalContextQueryHandler.js";
9
- import { ContextualGoalView } from "../get/ContextualGoalView.js";
10
- /**
11
- * Handles completion of a goal.
12
- * Loads aggregate from event history, calls domain logic, persists event.
13
- * Releases goal claims on successful completion.
14
- * Returns ContextualGoalView for presentation layer.
15
- */
16
- export declare class CompleteGoalCommandHandler {
17
- private readonly eventWriter;
18
- private readonly eventReader;
19
- private readonly goalReader;
20
- private readonly eventBus;
21
- private readonly claimPolicy;
22
- private readonly workerIdentityReader;
23
- private readonly goalContextQueryHandler;
24
- constructor(eventWriter: IGoalCompletedEventWriter, eventReader: IGoalCompletedEventReader, goalReader: IGoalCompleteReader, eventBus: IEventBus, claimPolicy: GoalClaimPolicy, workerIdentityReader: IWorkerIdentityReader, goalContextQueryHandler: GoalContextQueryHandler);
25
- execute(command: CompleteGoalCommand): Promise<ContextualGoalView>;
26
- }
27
- //# sourceMappingURL=CompleteGoalCommandHandler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalCommandHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalCommandHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE;;;;;GAKG;AACH,qBAAa,0BAA0B;IAEnC,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,uBAAuB;gBANvB,WAAW,EAAE,yBAAyB,EACtC,WAAW,EAAE,yBAAyB,EACtC,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,eAAe,EAC5B,oBAAoB,EAAE,qBAAqB,EAC3C,uBAAuB,EAAE,uBAAuB;IAG7D,OAAO,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAuCzE"}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CompleteGoalCommandHandler = void 0;
4
- const Goal_js_1 = require("../../../../domain/goals/Goal.js");
5
- const Constants_js_1 = require("../../../../domain/goals/Constants.js");
6
- /**
7
- * Handles completion of a goal.
8
- * Loads aggregate from event history, calls domain logic, persists event.
9
- * Releases goal claims on successful completion.
10
- * Returns ContextualGoalView for presentation layer.
11
- */
12
- class CompleteGoalCommandHandler {
13
- constructor(eventWriter, eventReader, goalReader, eventBus, claimPolicy, workerIdentityReader, goalContextQueryHandler) {
14
- this.eventWriter = eventWriter;
15
- this.eventReader = eventReader;
16
- this.goalReader = goalReader;
17
- this.eventBus = eventBus;
18
- this.claimPolicy = claimPolicy;
19
- this.workerIdentityReader = workerIdentityReader;
20
- this.goalContextQueryHandler = goalContextQueryHandler;
21
- }
22
- async execute(command) {
23
- // 1. Check goal exists (query projection for fast check)
24
- const view = await this.goalReader.findById(command.goalId);
25
- if (!view) {
26
- throw new Error((0, Constants_js_1.formatErrorMessage)(Constants_js_1.GoalErrorMessages.GOAL_NOT_FOUND, { id: command.goalId }));
27
- }
28
- // 2. Validate claim ownership - only the claimant can complete a goal
29
- const workerId = this.workerIdentityReader.workerId;
30
- const claimValidation = this.claimPolicy.canClaim(command.goalId, workerId);
31
- if (!claimValidation.allowed) {
32
- throw new Error((0, Constants_js_1.formatErrorMessage)(Constants_js_1.GoalErrorMessages.GOAL_CLAIMED_BY_ANOTHER_WORKER, {
33
- expiresAt: claimValidation.existingClaim.claimExpiresAt,
34
- }));
35
- }
36
- // 3. Rehydrate aggregate from event history (event sourcing)
37
- const history = await this.eventReader.readStream(command.goalId);
38
- const goal = Goal_js_1.Goal.rehydrate(command.goalId, history);
39
- // 4. Domain logic produces event (validates state)
40
- const event = goal.complete();
41
- // 5. Persist event to file store
42
- await this.eventWriter.append(event);
43
- // 6. Release claim after successful completion
44
- this.claimPolicy.releaseClaim(command.goalId);
45
- // 7. Publish event to bus (projections will update via subscriptions)
46
- await this.eventBus.publish(event);
47
- // 8. Query goal context
48
- return this.goalContextQueryHandler.execute(command.goalId);
49
- }
50
- }
51
- exports.CompleteGoalCommandHandler = CompleteGoalCommandHandler;
52
- //# sourceMappingURL=CompleteGoalCommandHandler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalCommandHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalCommandHandler.ts"],"names":[],"mappings":";;;AAKA,8DAAwD;AACxD,wEAA8F;AAM9F;;;;;GAKG;AACH,MAAa,0BAA0B;IACrC,YACmB,WAAsC,EACtC,WAAsC,EACtC,UAA+B,EAC/B,QAAmB,EACnB,WAA4B,EAC5B,oBAA2C,EAC3C,uBAAgD;QANhD,gBAAW,GAAX,WAAW,CAA2B;QACtC,gBAAW,GAAX,WAAW,CAA2B;QACtC,eAAU,GAAV,UAAU,CAAqB;QAC/B,aAAQ,GAAR,QAAQ,CAAW;QACnB,gBAAW,GAAX,WAAW,CAAiB;QAC5B,yBAAoB,GAApB,oBAAoB,CAAuB;QAC3C,4BAAuB,GAAvB,uBAAuB,CAAyB;IAChE,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,OAA4B;QACxC,yDAAyD;QACzD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CACb,IAAA,iCAAkB,EAAC,gCAAiB,CAAC,cAAc,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAC7E,CAAC;QACJ,CAAC;QAED,sEAAsE;QACtE,MAAM,QAAQ,GAAG,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC;QACpD,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC5E,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CACb,IAAA,iCAAkB,EAAC,gCAAiB,CAAC,8BAA8B,EAAE;gBACnE,SAAS,EAAE,eAAe,CAAC,aAAa,CAAC,cAAc;aACxD,CAAC,CACH,CAAC;QACJ,CAAC;QAED,6DAA6D;QAC7D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAClE,MAAM,IAAI,GAAG,cAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,OAAc,CAAC,CAAC;QAE5D,mDAAmD;QACnD,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAE9B,iCAAiC;QACjC,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAErC,+CAA+C;QAC/C,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAE9C,sEAAsE;QACtE,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAEnC,wBAAwB;QACxB,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;CACF;AAlDD,gEAkDC"}
@@ -1,9 +0,0 @@
1
- import { CompleteGoalRequest } from "./CompleteGoalRequest.js";
2
- import { CompleteGoalResponse } from "./CompleteGoalResponse.js";
3
- import { ICompleteGoalGateway } from "./ICompleteGoalGateway.js";
4
- export declare class CompleteGoalController {
5
- private readonly gateway;
6
- constructor(gateway: ICompleteGoalGateway);
7
- handle(request: CompleteGoalRequest): Promise<CompleteGoalResponse>;
8
- }
9
- //# sourceMappingURL=CompleteGoalController.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalController.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,qBAAa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,oBAAoB;IAG1C,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAG1E"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CompleteGoalController = void 0;
4
- class CompleteGoalController {
5
- constructor(gateway) {
6
- this.gateway = gateway;
7
- }
8
- async handle(request) {
9
- return this.gateway.completeGoal(request);
10
- }
11
- }
12
- exports.CompleteGoalController = CompleteGoalController;
13
- //# sourceMappingURL=CompleteGoalController.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalController.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalController.ts"],"names":[],"mappings":";;;AAIA,MAAa,sBAAsB;IACjC,YACmB,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;IAC7C,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,OAA4B;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CACF;AARD,wDAQC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * CompleteGoalRequest
3
- *
4
- * Request model for goal completion endpoint.
5
- * Goal must be in QUALIFIED status to be completed.
6
- */
7
- export interface CompleteGoalRequest {
8
- readonly goalId: string;
9
- }
10
- //# sourceMappingURL=CompleteGoalRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalRequest.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalRequest.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=CompleteGoalRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalRequest.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalRequest.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- /**
2
- * CompleteGoalResponse
3
- *
4
- * Response model for goal completion requests.
5
- * Returns minimal data after successful completion (token optimization).
6
- */
7
- export interface CompleteGoalResponse {
8
- readonly goalId: string;
9
- readonly objective: string;
10
- readonly status: string;
11
- readonly nextGoal?: {
12
- readonly goalId: string;
13
- readonly objective: string;
14
- readonly status: string;
15
- };
16
- }
17
- //# sourceMappingURL=CompleteGoalResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalResponse.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalResponse.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KACzB,CAAC;CACH"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=CompleteGoalResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteGoalResponse.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/CompleteGoalResponse.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { CompleteGoalRequest } from "./CompleteGoalRequest.js";
2
- import { CompleteGoalResponse } from "./CompleteGoalResponse.js";
3
- export interface ICompleteGoalGateway {
4
- completeGoal(request: CompleteGoalRequest): Promise<CompleteGoalResponse>;
5
- }
6
- //# sourceMappingURL=ICompleteGoalGateway.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ICompleteGoalGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/ICompleteGoalGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAC3E"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ICompleteGoalGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ICompleteGoalGateway.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/ICompleteGoalGateway.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { ICompleteGoalGateway } from "./ICompleteGoalGateway.js";
2
- import { CompleteGoalRequest } from "./CompleteGoalRequest.js";
3
- import { CompleteGoalResponse } from "./CompleteGoalResponse.js";
4
- import { CompleteGoalCommandHandler } from "./CompleteGoalCommandHandler.js";
5
- import { IGoalCompleteReader } from "./IGoalCompleteReader.js";
6
- import { GoalClaimPolicy } from "../claims/GoalClaimPolicy.js";
7
- import { IWorkerIdentityReader } from "../../../host/workers/IWorkerIdentityReader.js";
8
- export declare class LocalCompleteGoalGateway implements ICompleteGoalGateway {
9
- private readonly commandHandler;
10
- private readonly goalReader;
11
- private readonly claimPolicy;
12
- private readonly workerIdentityReader;
13
- constructor(commandHandler: CompleteGoalCommandHandler, goalReader: IGoalCompleteReader, claimPolicy: GoalClaimPolicy, workerIdentityReader: IWorkerIdentityReader);
14
- completeGoal(request: CompleteGoalRequest): Promise<CompleteGoalResponse>;
15
- }
16
- //# sourceMappingURL=LocalCompleteGoalGateway.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalCompleteGoalGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/LocalCompleteGoalGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAGvF,qBAAa,wBAAyB,YAAW,oBAAoB;IAEjE,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAHpB,cAAc,EAAE,0BAA0B,EAC1C,UAAU,EAAE,mBAAmB,EAC/B,WAAW,EAAE,eAAe,EAC5B,oBAAoB,EAAE,qBAAqB;IAGxD,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAyChF"}
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalCompleteGoalGateway = void 0;
4
- const Constants_js_1 = require("../../../../domain/goals/Constants.js");
5
- class LocalCompleteGoalGateway {
6
- constructor(commandHandler, goalReader, claimPolicy, workerIdentityReader) {
7
- this.commandHandler = commandHandler;
8
- this.goalReader = goalReader;
9
- this.claimPolicy = claimPolicy;
10
- this.workerIdentityReader = workerIdentityReader;
11
- }
12
- async completeGoal(request) {
13
- // Validate claim ownership - only the claimant can complete a goal
14
- const workerId = this.workerIdentityReader.workerId;
15
- const claimValidation = this.claimPolicy.canClaim(request.goalId, workerId);
16
- if (!claimValidation.allowed) {
17
- throw new Error((0, Constants_js_1.formatErrorMessage)(Constants_js_1.GoalErrorMessages.GOAL_CLAIMED_BY_ANOTHER_WORKER, {
18
- expiresAt: claimValidation.existingClaim.claimExpiresAt,
19
- }));
20
- }
21
- // Delegate to command handler (validates QUALIFIED status, performs state change)
22
- await this.commandHandler.execute({ goalId: request.goalId });
23
- // Get updated goal view
24
- const goalView = await this.goalReader.findById(request.goalId);
25
- if (!goalView) {
26
- throw new Error(`Goal not found after completion: ${request.goalId}`);
27
- }
28
- // Check for next goal
29
- let nextGoal;
30
- if (goalView.nextGoalId) {
31
- const nextGoalView = await this.goalReader.findById(goalView.nextGoalId);
32
- if (nextGoalView) {
33
- nextGoal = {
34
- goalId: nextGoalView.goalId,
35
- objective: nextGoalView.objective,
36
- status: nextGoalView.status,
37
- };
38
- }
39
- }
40
- return {
41
- goalId: request.goalId,
42
- objective: goalView.objective,
43
- status: goalView.status,
44
- nextGoal,
45
- };
46
- }
47
- }
48
- exports.LocalCompleteGoalGateway = LocalCompleteGoalGateway;
49
- //# sourceMappingURL=LocalCompleteGoalGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalCompleteGoalGateway.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/complete/LocalCompleteGoalGateway.ts"],"names":[],"mappings":";;;AAOA,wEAA8F;AAE9F,MAAa,wBAAwB;IACnC,YACmB,cAA0C,EAC1C,UAA+B,EAC/B,WAA4B,EAC5B,oBAA2C;QAH3C,mBAAc,GAAd,cAAc,CAA4B;QAC1C,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAiB;QAC5B,yBAAoB,GAApB,oBAAoB,CAAuB;IAC3D,CAAC;IAEJ,KAAK,CAAC,YAAY,CAAC,OAA4B;QAC7C,mEAAmE;QACnE,MAAM,QAAQ,GAAG,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC;QACpD,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC5E,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CACb,IAAA,iCAAkB,EAAC,gCAAiB,CAAC,8BAA8B,EAAE;gBACnE,SAAS,EAAE,eAAe,CAAC,aAAa,CAAC,cAAc;aACxD,CAAC,CACH,CAAC;QACJ,CAAC;QAED,kFAAkF;QAClF,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAE9D,wBAAwB;QACxB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAChE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,oCAAoC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QACxE,CAAC;QAED,sBAAsB;QACtB,IAAI,QAAQ,CAAC;QACb,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;YACxB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;YACzE,IAAI,YAAY,EAAE,CAAC;gBACjB,QAAQ,GAAG;oBACT,MAAM,EAAE,YAAY,CAAC,MAAM;oBAC3B,SAAS,EAAE,YAAY,CAAC,SAAS;oBACjC,MAAM,EAAE,YAAY,CAAC,MAAM;iBAC5B,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO;YACL,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,SAAS,EAAE,QAAQ,CAAC,SAAS;YAC7B,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,QAAQ;SACT,CAAC;IACJ,CAAC;CACF;AAjDD,4DAiDC"}
@@ -1,44 +0,0 @@
1
- /**
2
- * Port: Initialization Protocol
3
- *
4
- * High-level interface for project initialization operations.
5
- * Provides both preview (what will change) and execution capabilities.
6
- *
7
- * This abstraction enables:
8
- * - Preview before execution (user confirmation)
9
- * - Single source of truth for file changes
10
- * - Decoupling presentation from application logic
11
- */
12
- import { PlannedFileChange } from "./PlannedFileChange.js";
13
- import { InitializeProjectCommand } from "./InitializeProjectCommand.js";
14
- /**
15
- * Result of project initialization
16
- */
17
- export interface InitializationResult {
18
- /** The unique project identifier */
19
- projectId: string;
20
- /** The actual changes made during initialization */
21
- changes: PlannedFileChange[];
22
- }
23
- /**
24
- * Protocol for project initialization operations
25
- */
26
- export interface IInitializationProtocol {
27
- /**
28
- * Get all planned changes for initialization without executing.
29
- * Use this for preview before user confirmation.
30
- *
31
- * @param projectRoot Absolute path to project root directory
32
- * @returns List of planned file changes
33
- */
34
- getPlannedFileChanges(projectRoot: string): Promise<PlannedFileChange[]>;
35
- /**
36
- * Execute initialization and return what was done.
37
- *
38
- * @param command The initialization command with project details
39
- * @param projectRoot Absolute path to project root directory
40
- * @returns Initialization result with project ID and actual changes
41
- */
42
- execute(command: InitializeProjectCommand, projectRoot: string): Promise<InitializationResult>;
43
- }
44
- //# sourceMappingURL=IInitializationProtocol.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IInitializationProtocol.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IInitializationProtocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;OAMG;IACH,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAEzE;;;;;;OAMG;IACH,OAAO,CACL,OAAO,EAAE,wBAAwB,EACjC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /**
3
- * Port: Initialization Protocol
4
- *
5
- * High-level interface for project initialization operations.
6
- * Provides both preview (what will change) and execution capabilities.
7
- *
8
- * This abstraction enables:
9
- * - Preview before execution (user confirmation)
10
- * - Single source of truth for file changes
11
- * - Decoupling presentation from application logic
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- //# sourceMappingURL=IInitializationProtocol.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IInitializationProtocol.js","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IInitializationProtocol.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG"}
@@ -1,32 +0,0 @@
1
- /**
2
- * Application: Initialization Protocol Implementation
3
- *
4
- * Orchestrates project initialization operations. Composes the command handler
5
- * with planned changes functionality to provide a unified API.
6
- *
7
- * This service:
8
- * - Provides preview of all planned file changes
9
- * - Executes initialization via the command handler
10
- * - Returns actual changes made during execution
11
- */
12
- import { IInitializationProtocol, InitializationResult } from "./IInitializationProtocol.js";
13
- import { PlannedFileChange } from "./PlannedFileChange.js";
14
- import { InitializeProjectCommand } from "./InitializeProjectCommand.js";
15
- import { InitializeProjectCommandHandler } from "./InitializeProjectCommandHandler.js";
16
- import { IAgentFileProtocol } from "./IAgentFileProtocol.js";
17
- import { ISettingsInitializer } from "../../../settings/ISettingsInitializer.js";
18
- export declare class InitializationProtocol implements IInitializationProtocol {
19
- private readonly commandHandler;
20
- private readonly agentFileProtocol;
21
- private readonly settingsInitializer;
22
- constructor(commandHandler: InitializeProjectCommandHandler, agentFileProtocol: IAgentFileProtocol, settingsInitializer: ISettingsInitializer);
23
- /**
24
- * Get all planned changes for initialization without executing.
25
- */
26
- getPlannedFileChanges(projectRoot: string): Promise<PlannedFileChange[]>;
27
- /**
28
- * Execute initialization and return what was done.
29
- */
30
- execute(command: InitializeProjectCommand, projectRoot: string): Promise<InitializationResult>;
31
- }
32
- //# sourceMappingURL=InitializationProtocol.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InitializationProtocol.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/InitializationProtocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,qBAAa,sBAAuB,YAAW,uBAAuB;IAElE,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAFnB,cAAc,EAAE,+BAA+B,EAC/C,iBAAiB,EAAE,kBAAkB,EACrC,mBAAmB,EAAE,oBAAoB;IAG5D;;OAEG;IACG,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAgB9E;;OAEG;IACG,OAAO,CACX,OAAO,EAAE,wBAAwB,EACjC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,oBAAoB,CAAC;CAYjC"}