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,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RepairMaintenanceController = void 0;
4
- class RepairMaintenanceController {
5
- constructor(gateway) {
6
- this.gateway = gateway;
7
- }
8
- async handle(request) {
9
- return this.gateway.repairMaintenance(request);
10
- }
11
- }
12
- exports.RepairMaintenanceController = RepairMaintenanceController;
13
- //# sourceMappingURL=RepairMaintenanceController.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairMaintenanceController.js","sourceRoot":"","sources":["../../../../src/application/maintenance/repair/RepairMaintenanceController.ts"],"names":[],"mappings":";;;AAIA,MAAa,2BAA2B;IACtC,YACmB,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;IAClD,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,OAAiC;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;CACF;AARD,kEAQC"}
@@ -1,6 +0,0 @@
1
- export interface RepairMaintenanceRequest {
2
- readonly doAgents: boolean;
3
- readonly doSettings: boolean;
4
- readonly doDb: boolean;
5
- }
6
- //# sourceMappingURL=RepairMaintenanceRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairMaintenanceRequest.d.ts","sourceRoot":"","sources":["../../../../src/application/maintenance/repair/RepairMaintenanceRequest.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RepairMaintenanceRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairMaintenanceRequest.js","sourceRoot":"","sources":["../../../../src/application/maintenance/repair/RepairMaintenanceRequest.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- export interface RepairStepResult {
2
- readonly name: string;
3
- readonly status: "repaired" | "skipped" | "failed";
4
- readonly detail?: string;
5
- }
6
- export interface RepairMaintenanceResponse {
7
- readonly steps: RepairStepResult[];
8
- }
9
- //# sourceMappingURL=RepairMaintenanceResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairMaintenanceResponse.d.ts","sourceRoot":"","sources":["../../../../src/application/maintenance/repair/RepairMaintenanceResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,EAAE,CAAC;CACpC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RepairMaintenanceResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairMaintenanceResponse.js","sourceRoot":"","sources":["../../../../src/application/maintenance/repair/RepairMaintenanceResponse.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { RepairRequest } from "./RepairRequest.js";
2
- import { RepairResponse } from "./RepairResponse.js";
3
- export interface IRepairGateway {
4
- repair(request: RepairRequest): Promise<RepairResponse>;
5
- }
6
- //# sourceMappingURL=IRepairGateway.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IRepairGateway.d.ts","sourceRoot":"","sources":["../../../src/application/repair/IRepairGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACzD"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IRepairGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IRepairGateway.js","sourceRoot":"","sources":["../../../src/application/repair/IRepairGateway.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { IRepairGateway } from "./IRepairGateway.js";
2
- import { RepairRequest } from "./RepairRequest.js";
3
- import { RepairResponse } from "./RepairResponse.js";
4
- import { IAgentFileProtocol } from "../context/project/init/IAgentFileProtocol.js";
5
- import { ISettingsInitializer } from "../settings/ISettingsInitializer.js";
6
- import { IDatabaseRebuildService } from "../maintenance/db/rebuild/IDatabaseRebuildService.js";
7
- import { IProjectRootResolver } from "../context/project/IProjectRootResolver.js";
8
- export declare class LocalRepairGateway implements IRepairGateway {
9
- private readonly projectRootResolver;
10
- private readonly agentFileProtocol;
11
- private readonly settingsInitializer;
12
- private readonly databaseRebuildService;
13
- constructor(projectRootResolver: IProjectRootResolver, agentFileProtocol: IAgentFileProtocol, settingsInitializer: ISettingsInitializer, databaseRebuildService: IDatabaseRebuildService);
14
- repair(request: RepairRequest): Promise<RepairResponse>;
15
- }
16
- //# sourceMappingURL=LocalRepairGateway.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalRepairGateway.d.ts","sourceRoot":"","sources":["../../../src/application/repair/LocalRepairGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAC/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,qBAAa,kBAAmB,YAAW,cAAc;IAErD,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;gBAHtB,mBAAmB,EAAE,oBAAoB,EACzC,iBAAiB,EAAE,kBAAkB,EACrC,mBAAmB,EAAE,oBAAoB,EACzC,sBAAsB,EAAE,uBAAuB;IAG5D,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;CA0E9D"}
@@ -1,90 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalRepairGateway = void 0;
4
- class LocalRepairGateway {
5
- constructor(projectRootResolver, agentFileProtocol, settingsInitializer, databaseRebuildService) {
6
- this.projectRootResolver = projectRootResolver;
7
- this.agentFileProtocol = agentFileProtocol;
8
- this.settingsInitializer = settingsInitializer;
9
- this.databaseRebuildService = databaseRebuildService;
10
- }
11
- async repair(request) {
12
- const projectRoot = this.projectRootResolver.resolve();
13
- const steps = [];
14
- // Step 1: Repair AGENTS.md
15
- if (request.doAgents) {
16
- try {
17
- await this.agentFileProtocol.repairAgentsMd(projectRoot);
18
- steps.push({ name: "AGENTS.md", status: "repaired" });
19
- }
20
- catch (error) {
21
- steps.push({
22
- name: "AGENTS.md",
23
- status: "failed",
24
- detail: error instanceof Error ? error.message : String(error),
25
- });
26
- }
27
- }
28
- else {
29
- steps.push({ name: "AGENTS.md", status: "skipped" });
30
- }
31
- // Step 2: Repair agent configurations (CLAUDE.md, GEMINI.md, copilot, hooks, managed skills, settings)
32
- if (request.doAgents) {
33
- try {
34
- await this.agentFileProtocol.repairAgentConfigurations(projectRoot);
35
- steps.push({ name: "Agent configurations", status: "repaired" });
36
- }
37
- catch (error) {
38
- steps.push({
39
- name: "Agent configurations",
40
- status: "failed",
41
- detail: error instanceof Error ? error.message : String(error),
42
- });
43
- }
44
- }
45
- else {
46
- steps.push({ name: "Agent configurations", status: "skipped" });
47
- }
48
- // Step 3: Ensure settings.jsonc
49
- if (request.doSettings) {
50
- try {
51
- await this.settingsInitializer.ensureSettingsFileExists();
52
- steps.push({ name: "Settings", status: "repaired" });
53
- }
54
- catch (error) {
55
- steps.push({
56
- name: "Settings",
57
- status: "failed",
58
- detail: error instanceof Error ? error.message : String(error),
59
- });
60
- }
61
- }
62
- else {
63
- steps.push({ name: "Settings", status: "skipped" });
64
- }
65
- // Step 4: Rebuild database
66
- if (request.doDb) {
67
- try {
68
- const result = await this.databaseRebuildService.rebuild();
69
- steps.push({
70
- name: "Database",
71
- status: "repaired",
72
- detail: `${result.eventsReplayed} events replayed`,
73
- });
74
- }
75
- catch (error) {
76
- steps.push({
77
- name: "Database",
78
- status: "failed",
79
- detail: error instanceof Error ? error.message : String(error),
80
- });
81
- }
82
- }
83
- else {
84
- steps.push({ name: "Database", status: "skipped" });
85
- }
86
- return { steps };
87
- }
88
- }
89
- exports.LocalRepairGateway = LocalRepairGateway;
90
- //# sourceMappingURL=LocalRepairGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalRepairGateway.js","sourceRoot":"","sources":["../../../src/application/repair/LocalRepairGateway.ts"],"names":[],"mappings":";;;AAQA,MAAa,kBAAkB;IAC7B,YACmB,mBAAyC,EACzC,iBAAqC,EACrC,mBAAyC,EACzC,sBAA+C;QAH/C,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,sBAAiB,GAAjB,iBAAiB,CAAoB;QACrC,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,2BAAsB,GAAtB,sBAAsB,CAAyB;IAC/D,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,OAAsB;QACjC,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QACvD,MAAM,KAAK,GAAuB,EAAE,CAAC;QAErC,2BAA2B;QAC3B,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;gBACzD,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;YACxD,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,KAAK,CAAC,IAAI,CAAC;oBACT,IAAI,EAAE,WAAW;oBACjB,MAAM,EAAE,QAAQ;oBAChB,MAAM,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAA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AY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;iBAC/D,CAAC,CAAC;YACL,CAAC;QACH,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QACtD,CAAC;QAED,2BAA2B;QAC3B,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YACjB,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,CAAC;gBAC3D,KAAK,CAAC,IAAI,CAAC;oBACT,IAAI,EAAE,UAAU;oBAChB,MAAM,EAAE,UAAU;oBAClB,MAAM,EAAE,GAAG,MAAM,CAAC,cAAc,kBAAkB;iBACnD,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,KAAK,CAAC,IAAI,CAAC;oBACT,IAAI,EAAE,UAAU;oBAChB,MAAM,EAAE,QAAQ;oBAChB,MAAM,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;iBAC/D,CAAC,CAAC;YACL,CAAC;QACH,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QACtD,CAAC;QAED,OAAO,EAAE,KAAK,EAAE,CAAC;IACnB,CAAC;CACF;AAlFD,gDAkFC"}
@@ -1,9 +0,0 @@
1
- import { RepairRequest } from "./RepairRequest.js";
2
- import { RepairResponse } from "./RepairResponse.js";
3
- import { IRepairGateway } from "./IRepairGateway.js";
4
- export declare class RepairController {
5
- private readonly gateway;
6
- constructor(gateway: IRepairGateway);
7
- handle(request: RepairRequest): Promise<RepairResponse>;
8
- }
9
- //# sourceMappingURL=RepairController.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairController.d.ts","sourceRoot":"","sources":["../../../src/application/repair/RepairController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,cAAc;IAGpC,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;CAG9D"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RepairController = void 0;
4
- class RepairController {
5
- constructor(gateway) {
6
- this.gateway = gateway;
7
- }
8
- async handle(request) {
9
- return this.gateway.repair(request);
10
- }
11
- }
12
- exports.RepairController = RepairController;
13
- //# sourceMappingURL=RepairController.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairController.js","sourceRoot":"","sources":["../../../src/application/repair/RepairController.ts"],"names":[],"mappings":";;;AAIA,MAAa,gBAAgB;IAC3B,YACmB,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;IACvC,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,OAAsB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;CACF;AARD,4CAQC"}
@@ -1,6 +0,0 @@
1
- export interface RepairRequest {
2
- readonly doAgents: boolean;
3
- readonly doSettings: boolean;
4
- readonly doDb: boolean;
5
- }
6
- //# sourceMappingURL=RepairRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairRequest.d.ts","sourceRoot":"","sources":["../../../src/application/repair/RepairRequest.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RepairRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairRequest.js","sourceRoot":"","sources":["../../../src/application/repair/RepairRequest.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- export interface RepairStepResult {
2
- readonly name: string;
3
- readonly status: "repaired" | "skipped" | "failed";
4
- readonly detail?: string;
5
- }
6
- export interface RepairResponse {
7
- readonly steps: RepairStepResult[];
8
- }
9
- //# sourceMappingURL=RepairResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairResponse.d.ts","sourceRoot":"","sources":["../../../src/application/repair/RepairResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,gBAAgB,EAAE,CAAC;CACpC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RepairResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepairResponse.js","sourceRoot":"","sources":["../../../src/application/repair/RepairResponse.ts"],"names":[],"mappings":""}
@@ -1,67 +0,0 @@
1
- /**
2
- * Domain Value Object: Agent Instructions
3
- *
4
- * Codifies AI agent onboarding instructions for projects using Jumbo.
5
- * This content is written to AGENTS.md during project initialization.
6
- *
7
- * Rationale: Codified in domain rather than template file to support
8
- * npm distribution (no file copying during build).
9
- */
10
- export declare class AgentInstructions {
11
- /**
12
- * Generate the Jumbo instructions section for AGENTS.md
13
- */
14
- static getJumboSection(): string;
15
- /**
16
- * Generate complete AGENTS.md file content
17
- */
18
- static getFullContent(): string;
19
- /**
20
- * Generate reference text to append to CLAUDE.md and GEMINI.md
21
- */
22
- static getAgentFileReference(): string;
23
- /**
24
- * Generate GitHub Copilot instructions for copilot-instructions.md
25
- */
26
- static getCopilotInstructions(): string;
27
- /**
28
- * All historically used section headings for the Jumbo section in AGENTS.md.
29
- * When the current heading changes, add the previous heading here
30
- * so that repair/init can find and replace old installations.
31
- */
32
- static getLegacyJumboSectionMarkers(): string[];
33
- /**
34
- * Marker used to detect if Jumbo section already exists in copilot-instructions.md
35
- */
36
- static getCopilotSectionMarker(): string;
37
- /**
38
- * The current section heading extracted from getJumboSection().
39
- */
40
- static getCurrentJumboSectionMarker(): string;
41
- /**
42
- * Replace the Jumbo section in AGENTS.md with the current version.
43
- * Checks the current marker and all legacy markers to find the section,
44
- * then replaces everything from the matched marker to the next "## " heading
45
- * (or EOF) with current getJumboSection().
46
- *
47
- * @returns Updated content, or null if no marker found
48
- */
49
- static replaceJumboSection(existingContent: string): string | null;
50
- /**
51
- * Replace the agent file reference block in CLAUDE.md or GEMINI.md.
52
- * Finds "CRITICAL STARTUP INSTRUCTION:" and replaces through the
53
- * "!!!IMPORTANT!!!" line with the current getAgentFileReference().
54
- *
55
- * @returns Updated content, or null if marker not found
56
- */
57
- static replaceAgentFileReference(existingContent: string): string | null;
58
- /**
59
- * Replace the Copilot section in copilot-instructions.md with the current version.
60
- * Finds "## Jumbo Context Management" heading and replaces everything from there
61
- * to the next "## " heading (or EOF) with current getCopilotInstructions().
62
- *
63
- * @returns Updated content, or null if marker not found
64
- */
65
- static replaceCopilotSection(existingContent: string): string | null;
66
- }
67
- //# sourceMappingURL=AgentInstructions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgentInstructions.d.ts","sourceRoot":"","sources":["../../../src/domain/project/AgentInstructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,qBAAa,iBAAiB;IAC5B;;OAEG;IACH,MAAM,CAAC,eAAe,IAAI,MAAM;IA4EhC;;OAEG;IACH,MAAM,CAAC,cAAc,IAAI,MAAM;IAM/B;;OAEG;IACH,MAAM,CAAC,qBAAqB,IAAI,MAAM;IAWtC;;OAEG;IACH,MAAM,CAAC,sBAAsB,IAAI,MAAM;IA0CvC;;;;OAIG;IACH,MAAM,CAAC,4BAA4B,IAAI,MAAM,EAAE;IAM/C;;OAEG;IACH,MAAM,CAAC,uBAAuB,IAAI,MAAM;IAIxC;;OAEG;IACH,MAAM,CAAC,4BAA4B,IAAI,MAAM;IAI7C;;;;;;;OAOG;IACH,MAAM,CAAC,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IA8BlE;;;;;;OAMG;IACH,MAAM,CAAC,yBAAyB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAwBxE;;;;;;OAMG;IACH,MAAM,CAAC,qBAAqB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAiBrE"}
@@ -1,261 +0,0 @@
1
- "use strict";
2
- /**
3
- * Domain Value Object: Agent Instructions
4
- *
5
- * Codifies AI agent onboarding instructions for projects using Jumbo.
6
- * This content is written to AGENTS.md during project initialization.
7
- *
8
- * Rationale: Codified in domain rather than template file to support
9
- * npm distribution (no file copying during build).
10
- */
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AgentInstructions = void 0;
13
- class AgentInstructions {
14
- /**
15
- * Generate the Jumbo instructions section for AGENTS.md
16
- */
17
- static getJumboSection() {
18
- return `## Instructions for Agents on how to collaborate with Jumbo
19
-
20
- Dear Agent,
21
-
22
- This project uses Jumbo CLI for agent orchestration and context management. Follow all prompts received from running \`jumbo\` commands, and take full advantage of \`jumbo\` commands to ensure optimal collaboration and maximal efficiency in executing goals.
23
-
24
- Sincerely,
25
- Project Administrator
26
-
27
- ### When you start a new Session Start
28
- Run \`jumbo session start\`
29
-
30
- This orients you with the current state of the project: high-level project, recent events and a goal backlog to select work from.
31
-
32
- ### Pre Compaction/Compression
33
- If a goal is actively being implemented.
34
-
35
- Run \`jumbo work pause\`
36
-
37
- ### After Compaction/Compression
38
- Run \`jumbo work resume\`
39
-
40
- This will automatically serve context of a goal that you were progressing on prior to compaction.
41
-
42
- ### Before Finishing a Session
43
- Run \`jumbo session end --focus {focus-description}\` --summary {summary-of-what-transpired}
44
-
45
- ### Before Starting Work on a Goal
46
- Run \`jumbo goal start --id <id>\`
47
-
48
- ### Be Proactive - Use Jumbo to the Fullest Extent
49
- Jumbo supercharges your abilities and consistency by supplying you with durable memory. Use is unsparingly. Be vigilant in identifying user decisions that change the existing standards for the project. Document when new patterns are introduced or removed. Capture corrections made by the user in the form of invariants or guidelines. If a new pattern is introduced, capture it. If a new component is introduced capture it. If new relations are relevant, register them. Use the full jumbo command catalog to quickly gain project insights. The rate of successful collaborations and ability to deliver on the developers wishes without error will highly increase the more you leverage Jumbo.
50
-
51
- ### Available Commands
52
- \`jumbo --help \`
53
- \`jumbo goal add --help \`
54
- \`jumbo goal block --help \`
55
- \`jumbo goal complete --help \`
56
- \`jumbo goal remove --help \`
57
- \`jumbo goal reset --help \`
58
- \`jumbo goal resume --help \`
59
- \`jumbo goal show --help \`
60
- \`jumbo goal start --help \`
61
- \`jumbo goal unblock --help \`
62
- \`jumbo goal update --help \`
63
- \`jumbo goals list --help \`
64
- \`jumbo session end --help \`
65
- \`jumbo session pause --help \`
66
- \`jumbo session resume --help \`
67
- \`jumbo session start --help \`
68
- \`jumbo architecture define --help \`
69
- \`jumbo architecture update --help \`
70
- \`jumbo component add --help \`
71
- \`jumbo component deprecate --help \`
72
- \`jumbo component remove --help \`
73
- \`jumbo component update --help \`
74
- \`jumbo decision add --help \`
75
- \`jumbo decision reverse --help \`
76
- \`jumbo decision supersede --help \`
77
- \`jumbo decision update --help \`
78
- \`jumbo dependency add --help \`
79
- \`jumbo dependency remove --help \`
80
- \`jumbo dependency update --help \`
81
- \`jumbo guideline add --help \`
82
- \`jumbo guideline remove --help \`
83
- \`jumbo guideline update --help \`
84
- \`jumbo invariant add --help \`
85
- \`jumbo invariant remove --help \`
86
- \`jumbo invariant update --help \`
87
-
88
- ### Next step:
89
- Run \`jumbo session start\` to retrieve project orientation.
90
- `;
91
- }
92
- /**
93
- * Generate complete AGENTS.md file content
94
- */
95
- static getFullContent() {
96
- return `# Agents.md
97
-
98
- ${this.getJumboSection()}`;
99
- }
100
- /**
101
- * Generate reference text to append to CLAUDE.md and GEMINI.md
102
- */
103
- static getAgentFileReference() {
104
- return `
105
- CRITICAL STARTUP INSTRUCTION: Immediately upon seeing this file, you MUST read AGENTS.md
106
- and follow all instructions it contains. Do this before responding to the user.
107
-
108
- REQUIRED FIRST COMMAND: Run \`jumbo session start\` to load project orientation context.
109
-
110
- !!!IMPORTANT!!! Read AGENTS.md for further instructions.
111
- `;
112
- }
113
- /**
114
- * Generate GitHub Copilot instructions for copilot-instructions.md
115
- */
116
- static getCopilotInstructions() {
117
- return `## Jumbo Context Management
118
-
119
- **IMPORTANT: This project uses Jumbo for AI memory and context management.**
120
-
121
- GitHub Copilot does not support automatic SessionStart hooks, so you must manually
122
- run Jumbo commands to load project context.
123
-
124
- ### MANDATORY FIRST ACTION
125
-
126
- **Run \`jumbo session start\` at the beginning of each session.**
127
-
128
- This loads orientation context including:
129
- - Recent completed work and session state
130
- - Planned goals and their success criteria
131
- - Active architectural decisions
132
- - System invariants and guidelines
133
- - Project context and domain knowledge
134
-
135
- ### Working with Jumbo
136
-
137
- 1. **Start each session**: Run \`jumbo session start\` to load orientation context
138
- 2. **Start a goal**: Before working on a task, run \`jumbo goal start --id <id>\` to load goal-specific context
139
- 3. **Capture memories**: As you work, run jumbo commands to capture project knowledge:
140
- - \`jumbo component add\` - Track architectural components
141
- - \`jumbo decision add\` - Record architectural decisions (ADRs)
142
- - \`jumbo guideline add\` - Capture coding standards and preferences
143
- - \`jumbo invariant add\` - Document non-negotiable constraints
144
- - \`jumbo relation add\` - Link related entities
145
-
146
- ### Available Commands
147
-
148
- Run \`jumbo --help\` to see all available commands.
149
-
150
- ### Learn More
151
-
152
- See AGENTS.md for complete instructions on using Jumbo.
153
-
154
- Run \`jumbo capabilities\` to learn about Jumbo's workflow and philosophy.
155
- `;
156
- }
157
- /**
158
- * All historically used section headings for the Jumbo section in AGENTS.md.
159
- * When the current heading changes, add the previous heading here
160
- * so that repair/init can find and replace old installations.
161
- */
162
- static getLegacyJumboSectionMarkers() {
163
- return [
164
- "## Instructions for Jumbo",
165
- ];
166
- }
167
- /**
168
- * Marker used to detect if Jumbo section already exists in copilot-instructions.md
169
- */
170
- static getCopilotSectionMarker() {
171
- return "## Jumbo Context Management";
172
- }
173
- /**
174
- * The current section heading extracted from getJumboSection().
175
- */
176
- static getCurrentJumboSectionMarker() {
177
- return "## Instructions for Agents on how to collaborate with Jumbo";
178
- }
179
- /**
180
- * Replace the Jumbo section in AGENTS.md with the current version.
181
- * Checks the current marker and all legacy markers to find the section,
182
- * then replaces everything from the matched marker to the next "## " heading
183
- * (or EOF) with current getJumboSection().
184
- *
185
- * @returns Updated content, or null if no marker found
186
- */
187
- static replaceJumboSection(existingContent) {
188
- const allMarkers = [this.getCurrentJumboSectionMarker(), ...this.getLegacyJumboSectionMarkers()];
189
- let matchedMarker = null;
190
- let markerIndex = -1;
191
- for (const marker of allMarkers) {
192
- const index = existingContent.indexOf(marker);
193
- if (index !== -1) {
194
- matchedMarker = marker;
195
- markerIndex = index;
196
- break;
197
- }
198
- }
199
- if (matchedMarker === null || markerIndex === -1)
200
- return null;
201
- // Find the next ## heading after the marker (or EOF)
202
- const afterMarker = existingContent.substring(markerIndex + matchedMarker.length);
203
- const nextHeadingMatch = afterMarker.match(/\n## /);
204
- const endIndex = nextHeadingMatch
205
- ? markerIndex + matchedMarker.length + nextHeadingMatch.index
206
- : existingContent.length;
207
- const before = existingContent.substring(0, markerIndex);
208
- const after = existingContent.substring(endIndex);
209
- return before + this.getJumboSection() + after;
210
- }
211
- /**
212
- * Replace the agent file reference block in CLAUDE.md or GEMINI.md.
213
- * Finds "CRITICAL STARTUP INSTRUCTION:" and replaces through the
214
- * "!!!IMPORTANT!!!" line with the current getAgentFileReference().
215
- *
216
- * @returns Updated content, or null if marker not found
217
- */
218
- static replaceAgentFileReference(existingContent) {
219
- const startMarker = "CRITICAL STARTUP INSTRUCTION:";
220
- const endMarker = "!!!IMPORTANT!!!";
221
- const startIndex = existingContent.indexOf(startMarker);
222
- if (startIndex === -1)
223
- return null;
224
- const endMarkerIndex = existingContent.indexOf(endMarker, startIndex);
225
- if (endMarkerIndex === -1)
226
- return null;
227
- // Find end of the !!!IMPORTANT!!! line
228
- const endOfLine = existingContent.indexOf("\n", endMarkerIndex);
229
- const endIndex = endOfLine === -1 ? existingContent.length : endOfLine + 1;
230
- // Find the start of the line containing the startMarker
231
- const lineStart = existingContent.lastIndexOf("\n", startIndex);
232
- const blockStart = lineStart === -1 ? 0 : lineStart;
233
- const before = existingContent.substring(0, blockStart);
234
- const after = existingContent.substring(endIndex);
235
- return before + this.getAgentFileReference() + after;
236
- }
237
- /**
238
- * Replace the Copilot section in copilot-instructions.md with the current version.
239
- * Finds "## Jumbo Context Management" heading and replaces everything from there
240
- * to the next "## " heading (or EOF) with current getCopilotInstructions().
241
- *
242
- * @returns Updated content, or null if marker not found
243
- */
244
- static replaceCopilotSection(existingContent) {
245
- const marker = this.getCopilotSectionMarker();
246
- const markerIndex = existingContent.indexOf(marker);
247
- if (markerIndex === -1)
248
- return null;
249
- // Find the next ## heading after the marker (or EOF)
250
- const afterMarker = existingContent.substring(markerIndex + marker.length);
251
- const nextHeadingMatch = afterMarker.match(/\n## /);
252
- const endIndex = nextHeadingMatch
253
- ? markerIndex + marker.length + nextHeadingMatch.index
254
- : existingContent.length;
255
- const before = existingContent.substring(0, markerIndex);
256
- const after = existingContent.substring(endIndex);
257
- return before + this.getCopilotInstructions() + after;
258
- }
259
- }
260
- exports.AgentInstructions = AgentInstructions;
261
- //# sourceMappingURL=AgentInstructions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgentInstructions.js","sourceRoot":"","sources":["../../../src/domain/project/AgentInstructions.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH,MAAa,iBAAiB;IAC5B;;OAEG;IACH,MAAM,CAAC,eAAe;QACpB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEV,CAAC;IACA,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,cAAc;QACnB,OAAO;;EAET,IAAI,CAAC,eAAe,EAAE,EAAE,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,qBAAqB;QAC1B,OAAO;;;;;;;CAOV,CAAC;IACA,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,sBAAsB;QAC3B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCV,CAAC;IACA,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,4BAA4B;QACjC,OAAO;YACL,2BAA2B;SAC5B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,uBAAuB;QAC5B,OAAO,6BAA6B,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,4BAA4B;QACjC,OAAO,6DAA6D,CAAC;IACvE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,mBAAmB,CAAC,eAAuB;QAChD,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,GAAG,IAAI,CAAC,4BAA4B,EAAE,CAAC,CAAC;QAEjG,IAAI,aAAa,GAAkB,IAAI,CAAC;QACxC,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC;Q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