jumbo-cli 2.0.3 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/dist/application/context/architecture/update/ArchitectureUpdatedEventHandler.d.ts +3 -1
  2. package/dist/application/context/architecture/update/ArchitectureUpdatedEventHandler.d.ts.map +1 -1
  3. package/dist/application/context/architecture/update/ArchitectureUpdatedEventHandler.js +4 -1
  4. package/dist/application/context/architecture/update/ArchitectureUpdatedEventHandler.js.map +1 -1
  5. package/dist/application/context/audience-pains/update/AudiencePainUpdatedEventHandler.d.ts +3 -1
  6. package/dist/application/context/audience-pains/update/AudiencePainUpdatedEventHandler.d.ts.map +1 -1
  7. package/dist/application/context/audience-pains/update/AudiencePainUpdatedEventHandler.js +4 -1
  8. package/dist/application/context/audience-pains/update/AudiencePainUpdatedEventHandler.js.map +1 -1
  9. package/dist/application/context/audiences/remove/AudienceRemovedEventHandler.d.ts +3 -1
  10. package/dist/application/context/audiences/remove/AudienceRemovedEventHandler.d.ts.map +1 -1
  11. package/dist/application/context/audiences/remove/AudienceRemovedEventHandler.js +4 -1
  12. package/dist/application/context/audiences/remove/AudienceRemovedEventHandler.js.map +1 -1
  13. package/dist/application/context/audiences/update/AudienceUpdatedEventHandler.d.ts +3 -1
  14. package/dist/application/context/audiences/update/AudienceUpdatedEventHandler.d.ts.map +1 -1
  15. package/dist/application/context/audiences/update/AudienceUpdatedEventHandler.js +4 -1
  16. package/dist/application/context/audiences/update/AudienceUpdatedEventHandler.js.map +1 -1
  17. package/dist/application/context/components/deprecate/ComponentDeprecatedEventHandler.d.ts +3 -1
  18. package/dist/application/context/components/deprecate/ComponentDeprecatedEventHandler.d.ts.map +1 -1
  19. package/dist/application/context/components/deprecate/ComponentDeprecatedEventHandler.js +3 -1
  20. package/dist/application/context/components/deprecate/ComponentDeprecatedEventHandler.js.map +1 -1
  21. package/dist/application/context/components/remove/ComponentRemovedEventHandler.d.ts +3 -1
  22. package/dist/application/context/components/remove/ComponentRemovedEventHandler.d.ts.map +1 -1
  23. package/dist/application/context/components/remove/ComponentRemovedEventHandler.js +3 -1
  24. package/dist/application/context/components/remove/ComponentRemovedEventHandler.js.map +1 -1
  25. package/dist/application/context/components/undeprecate/ComponentUndeprecatedEventHandler.d.ts +3 -1
  26. package/dist/application/context/components/undeprecate/ComponentUndeprecatedEventHandler.d.ts.map +1 -1
  27. package/dist/application/context/components/undeprecate/ComponentUndeprecatedEventHandler.js +3 -1
  28. package/dist/application/context/components/undeprecate/ComponentUndeprecatedEventHandler.js.map +1 -1
  29. package/dist/application/context/components/update/ComponentUpdatedEventHandler.d.ts +3 -1
  30. package/dist/application/context/components/update/ComponentUpdatedEventHandler.d.ts.map +1 -1
  31. package/dist/application/context/components/update/ComponentUpdatedEventHandler.js +4 -1
  32. package/dist/application/context/components/update/ComponentUpdatedEventHandler.js.map +1 -1
  33. package/dist/application/context/decisions/restore/DecisionRestoredEventHandler.d.ts +3 -1
  34. package/dist/application/context/decisions/restore/DecisionRestoredEventHandler.d.ts.map +1 -1
  35. package/dist/application/context/decisions/restore/DecisionRestoredEventHandler.js +3 -1
  36. package/dist/application/context/decisions/restore/DecisionRestoredEventHandler.js.map +1 -1
  37. package/dist/application/context/decisions/supersede/DecisionSupersededEventHandler.d.ts +3 -1
  38. package/dist/application/context/decisions/supersede/DecisionSupersededEventHandler.d.ts.map +1 -1
  39. package/dist/application/context/decisions/supersede/DecisionSupersededEventHandler.js +3 -1
  40. package/dist/application/context/decisions/supersede/DecisionSupersededEventHandler.js.map +1 -1
  41. package/dist/application/context/decisions/update/DecisionUpdatedEventHandler.d.ts +3 -1
  42. package/dist/application/context/decisions/update/DecisionUpdatedEventHandler.d.ts.map +1 -1
  43. package/dist/application/context/decisions/update/DecisionUpdatedEventHandler.js +4 -1
  44. package/dist/application/context/decisions/update/DecisionUpdatedEventHandler.js.map +1 -1
  45. package/dist/application/context/dependencies/remove/DependencyRemovedEventHandler.d.ts +3 -1
  46. package/dist/application/context/dependencies/remove/DependencyRemovedEventHandler.d.ts.map +1 -1
  47. package/dist/application/context/dependencies/remove/DependencyRemovedEventHandler.js +4 -1
  48. package/dist/application/context/dependencies/remove/DependencyRemovedEventHandler.js.map +1 -1
  49. package/dist/application/context/dependencies/update/DependencyUpdatedEventHandler.d.ts +3 -1
  50. package/dist/application/context/dependencies/update/DependencyUpdatedEventHandler.d.ts.map +1 -1
  51. package/dist/application/context/dependencies/update/DependencyUpdatedEventHandler.js +4 -1
  52. package/dist/application/context/dependencies/update/DependencyUpdatedEventHandler.js.map +1 -1
  53. package/dist/application/context/goals/remove/GoalRemovedEventHandler.d.ts +3 -1
  54. package/dist/application/context/goals/remove/GoalRemovedEventHandler.d.ts.map +1 -1
  55. package/dist/application/context/goals/remove/GoalRemovedEventHandler.js +4 -1
  56. package/dist/application/context/goals/remove/GoalRemovedEventHandler.js.map +1 -1
  57. package/dist/application/context/goals/update/GoalUpdatedEventHandler.d.ts +3 -1
  58. package/dist/application/context/goals/update/GoalUpdatedEventHandler.d.ts.map +1 -1
  59. package/dist/application/context/goals/update/GoalUpdatedEventHandler.js +4 -1
  60. package/dist/application/context/goals/update/GoalUpdatedEventHandler.js.map +1 -1
  61. package/dist/application/context/guidelines/remove/GuidelineRemovedEventHandler.d.ts +3 -1
  62. package/dist/application/context/guidelines/remove/GuidelineRemovedEventHandler.d.ts.map +1 -1
  63. package/dist/application/context/guidelines/remove/GuidelineRemovedEventHandler.js +4 -1
  64. package/dist/application/context/guidelines/remove/GuidelineRemovedEventHandler.js.map +1 -1
  65. package/dist/application/context/guidelines/update/GuidelineUpdatedEventHandler.d.ts +3 -1
  66. package/dist/application/context/guidelines/update/GuidelineUpdatedEventHandler.d.ts.map +1 -1
  67. package/dist/application/context/guidelines/update/GuidelineUpdatedEventHandler.js +4 -1
  68. package/dist/application/context/guidelines/update/GuidelineUpdatedEventHandler.js.map +1 -1
  69. package/dist/application/context/invariants/remove/InvariantRemovedEventHandler.d.ts +3 -1
  70. package/dist/application/context/invariants/remove/InvariantRemovedEventHandler.d.ts.map +1 -1
  71. package/dist/application/context/invariants/remove/InvariantRemovedEventHandler.js +4 -1
  72. package/dist/application/context/invariants/remove/InvariantRemovedEventHandler.js.map +1 -1
  73. package/dist/application/context/invariants/update/InvariantUpdatedEventHandler.d.ts +3 -1
  74. package/dist/application/context/invariants/update/InvariantUpdatedEventHandler.d.ts.map +1 -1
  75. package/dist/application/context/invariants/update/InvariantUpdatedEventHandler.js +4 -1
  76. package/dist/application/context/invariants/update/InvariantUpdatedEventHandler.js.map +1 -1
  77. package/dist/application/context/project/init/IAgentFileProtocol.d.ts +33 -9
  78. package/dist/application/context/project/init/IAgentFileProtocol.d.ts.map +1 -1
  79. package/dist/application/context/project/init/IAgentFileProtocol.js +2 -1
  80. package/dist/application/context/project/init/IAgentFileProtocol.js.map +1 -1
  81. package/dist/application/context/project/init/LocalInitializeProjectGateway.d.ts +3 -1
  82. package/dist/application/context/project/init/LocalInitializeProjectGateway.d.ts.map +1 -1
  83. package/dist/application/context/project/init/LocalInitializeProjectGateway.js +4 -1
  84. package/dist/application/context/project/init/LocalInitializeProjectGateway.js.map +1 -1
  85. package/dist/application/context/project/update/ProjectUpdatedEventHandler.d.ts +3 -1
  86. package/dist/application/context/project/update/ProjectUpdatedEventHandler.d.ts.map +1 -1
  87. package/dist/application/context/project/update/ProjectUpdatedEventHandler.js +4 -1
  88. package/dist/application/context/project/update/ProjectUpdatedEventHandler.js.map +1 -1
  89. package/dist/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.d.ts +10 -0
  90. package/dist/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.d.ts.map +1 -0
  91. package/dist/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.js +3 -0
  92. package/dist/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.js.map +1 -0
  93. package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.d.ts +9 -0
  94. package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.d.ts.map +1 -0
  95. package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.js +14 -0
  96. package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.js.map +1 -0
  97. package/dist/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.d.ts +16 -0
  98. package/dist/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.d.ts.map +1 -0
  99. package/dist/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.js +43 -0
  100. package/dist/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.js.map +1 -0
  101. package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.d.ts +3 -1
  102. package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.d.ts.map +1 -1
  103. package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.js +4 -1
  104. package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.js.map +1 -1
  105. package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.d.ts +3 -1
  106. package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.d.ts.map +1 -1
  107. package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.js +4 -1
  108. package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.js.map +1 -1
  109. package/dist/application/evolve/EvolveController.d.ts.map +1 -1
  110. package/dist/application/evolve/EvolveController.js +3 -0
  111. package/dist/application/evolve/EvolveController.js.map +1 -1
  112. package/dist/domain/project/AgentFileReferenceContent.d.ts +11 -10
  113. package/dist/domain/project/AgentFileReferenceContent.d.ts.map +1 -1
  114. package/dist/domain/project/AgentFileReferenceContent.js +17 -31
  115. package/dist/domain/project/AgentFileReferenceContent.js.map +1 -1
  116. package/dist/domain/project/AgentsMdContent.d.ts +4 -3
  117. package/dist/domain/project/AgentsMdContent.d.ts.map +1 -1
  118. package/dist/domain/project/AgentsMdContent.js +6 -74
  119. package/dist/domain/project/AgentsMdContent.js.map +1 -1
  120. package/dist/domain/project/CopilotInstructionsContent.d.ts +11 -6
  121. package/dist/domain/project/CopilotInstructionsContent.d.ts.map +1 -1
  122. package/dist/domain/project/CopilotInstructionsContent.js +35 -48
  123. package/dist/domain/project/CopilotInstructionsContent.js.map +1 -1
  124. package/dist/domain/project/JumboMdContent.d.ts +45 -0
  125. package/dist/domain/project/JumboMdContent.d.ts.map +1 -0
  126. package/dist/domain/project/JumboMdContent.js +157 -0
  127. package/dist/domain/project/JumboMdContent.js.map +1 -0
  128. package/dist/infrastructure/context/project/init/AgentFileProtocol.d.ts +10 -2
  129. package/dist/infrastructure/context/project/init/AgentFileProtocol.d.ts.map +1 -1
  130. package/dist/infrastructure/context/project/init/AgentFileProtocol.js +60 -10
  131. package/dist/infrastructure/context/project/init/AgentFileProtocol.js.map +1 -1
  132. package/dist/infrastructure/context/project/init/ClaudeConfigurer.d.ts +3 -3
  133. package/dist/infrastructure/context/project/init/ClaudeConfigurer.d.ts.map +1 -1
  134. package/dist/infrastructure/context/project/init/ClaudeConfigurer.js +13 -14
  135. package/dist/infrastructure/context/project/init/ClaudeConfigurer.js.map +1 -1
  136. package/dist/infrastructure/context/project/init/CopilotConfigurer.d.ts +2 -2
  137. package/dist/infrastructure/context/project/init/CopilotConfigurer.d.ts.map +1 -1
  138. package/dist/infrastructure/context/project/init/CopilotConfigurer.js +16 -8
  139. package/dist/infrastructure/context/project/init/CopilotConfigurer.js.map +1 -1
  140. package/dist/infrastructure/context/project/init/GeminiConfigurer.d.ts +3 -3
  141. package/dist/infrastructure/context/project/init/GeminiConfigurer.d.ts.map +1 -1
  142. package/dist/infrastructure/context/project/init/GeminiConfigurer.js +13 -14
  143. package/dist/infrastructure/context/project/init/GeminiConfigurer.js.map +1 -1
  144. package/dist/infrastructure/host/HostBuilder.d.ts.map +1 -1
  145. package/dist/infrastructure/host/HostBuilder.js +25 -23
  146. package/dist/infrastructure/host/HostBuilder.js.map +1 -1
  147. package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.d.ts.map +1 -1
  148. package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.js +24 -22
  149. package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.js.map +1 -1
  150. package/dist/presentation/cli/commands/audience-pains/update/audiencePain.update.js +2 -2
  151. package/dist/presentation/cli/commands/audience-pains/update/audiencePain.update.js.map +1 -1
  152. package/dist/presentation/cli/commands/components/show/component.show.js +2 -2
  153. package/dist/presentation/cli/commands/components/show/component.show.js.map +1 -1
  154. package/dist/presentation/cli/commands/components/update/component.update.js +4 -4
  155. package/dist/presentation/cli/commands/components/update/component.update.js.map +1 -1
  156. package/dist/presentation/cli/commands/evolve/evolve.js +1 -1
  157. package/dist/presentation/cli/commands/evolve/evolve.js.map +1 -1
  158. package/dist/presentation/cli/commands/goals/add/goal.add.d.ts.map +1 -1
  159. package/dist/presentation/cli/commands/goals/add/goal.add.js +14 -6
  160. package/dist/presentation/cli/commands/goals/add/goal.add.js.map +1 -1
  161. package/dist/presentation/cli/commands/goals/start/goal.start.js +1 -1
  162. package/dist/presentation/cli/commands/goals/start/goal.start.js.map +1 -1
  163. package/dist/presentation/cli/commands/heal/heal.js +1 -1
  164. package/dist/presentation/cli/commands/heal/heal.js.map +1 -1
  165. package/dist/presentation/cli/commands/project/update/project.update.d.ts +1 -1
  166. package/dist/presentation/cli/commands/project/update/project.update.d.ts.map +1 -1
  167. package/dist/presentation/cli/commands/project/update/project.update.js +1 -6
  168. package/dist/presentation/cli/commands/project/update/project.update.js.map +1 -1
  169. package/dist/presentation/cli/commands/value-propositions/update/value.update.js +5 -5
  170. package/dist/presentation/cli/commands/value-propositions/update/value.update.js.map +1 -1
  171. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import { IEventHandler } from "../../../messaging/IEventHandler.js";
2
2
  import { BaseEvent } from "../../../../domain/BaseEvent.js";
3
3
  import { IDependencyRemovedProjector } from "./IDependencyRemovedProjector.js";
4
+ import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
4
5
  /**
5
6
  * Event handler for DependencyRemovedEvent.
6
7
  *
@@ -9,7 +10,8 @@ import { IDependencyRemovedProjector } from "./IDependencyRemovedProjector.js";
9
10
  */
10
11
  export declare class DependencyRemovedEventHandler implements IEventHandler {
11
12
  private readonly projector;
12
- constructor(projector: IDependencyRemovedProjector);
13
+ private readonly relationMaintenanceGoalRegistrar;
14
+ constructor(projector: IDependencyRemovedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
13
15
  handle(event: BaseEvent): Promise<void>;
14
16
  }
15
17
  //# sourceMappingURL=DependencyRemovedEventHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DependencyRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/dependencies/remove/DependencyRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;;;;GAKG;AACH,qBAAa,6BAA8B,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,2BAA2B;IAE7D,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9C"}
1
+ {"version":3,"file":"DependencyRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/dependencies/remove/DependencyRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,6BAA8B,YAAW,aAAa;IAE/D,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,2BAA2B,EACtC,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DependencyRemovedEventHandler = void 0;
4
+ const Constants_js_1 = require("../../../../domain/relations/Constants.js");
4
5
  /**
5
6
  * Event handler for DependencyRemovedEvent.
6
7
  *
@@ -8,11 +9,13 @@ exports.DependencyRemovedEventHandler = void 0;
8
9
  * when a dependency is removed. Subscribes to DependencyRemovedEvent via event bus.
9
10
  */
10
11
  class DependencyRemovedEventHandler {
11
- constructor(projector) {
12
+ constructor(projector, relationMaintenanceGoalRegistrar) {
12
13
  this.projector = projector;
14
+ this.relationMaintenanceGoalRegistrar = relationMaintenanceGoalRegistrar;
13
15
  }
14
16
  async handle(event) {
15
17
  const dependencyRemovedEvent = event;
18
+ await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.DEPENDENCY, dependencyRemovedEvent.aggregateId, "dependency was removed");
16
19
  await this.projector.applyDependencyRemoved(dependencyRemovedEvent);
17
20
  }
18
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DependencyRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/dependencies/remove/DependencyRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,6BAA6B;IACxC,YAA6B,SAAsC;QAAtC,cAAS,GAAT,SAAS,CAA6B;IAAG,CAAC;IAEvE,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,sBAAsB,GAAG,KAA+B,CAAC;QAC/D,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,CAAC;IACtE,CAAC;CACF;AAPD,sEAOC"}
1
+ {"version":3,"file":"DependencyRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/dependencies/remove/DependencyRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,6BAA6B;IACxC,YACmB,SAAsC,EACtC,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAA6B;QACtC,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,sBAAsB,GAAG,KAA+B,CAAC;QAC/D,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,UAAU,EACrB,sBAAsB,CAAC,WAAW,EAClC,wBAAwB,CACzB,CAAC;QACF,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,CAAC;IACtE,CAAC;CACF;AAfD,sEAeC"}
@@ -1,6 +1,7 @@
1
1
  import { IEventHandler } from "../../../messaging/IEventHandler.js";
2
2
  import { BaseEvent } from "../../../../domain/BaseEvent.js";
3
3
  import { IDependencyUpdatedProjector } from "./IDependencyUpdatedProjector.js";
4
+ import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
4
5
  /**
5
6
  * Event handler for DependencyUpdatedEvent.
6
7
  *
@@ -9,7 +10,8 @@ import { IDependencyUpdatedProjector } from "./IDependencyUpdatedProjector.js";
9
10
  */
10
11
  export declare class DependencyUpdatedEventHandler implements IEventHandler {
11
12
  private readonly projector;
12
- constructor(projector: IDependencyUpdatedProjector);
13
+ private readonly relationMaintenanceGoalRegistrar;
14
+ constructor(projector: IDependencyUpdatedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
13
15
  handle(event: BaseEvent): Promise<void>;
14
16
  }
15
17
  //# sourceMappingURL=DependencyUpdatedEventHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DependencyUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/dependencies/update/DependencyUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;;;;GAKG;AACH,qBAAa,6BAA8B,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,2BAA2B;IAE7D,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9C"}
1
+ {"version":3,"file":"DependencyUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/dependencies/update/DependencyUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,6BAA8B,YAAW,aAAa;IAE/D,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,2BAA2B,EACtC,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DependencyUpdatedEventHandler = void 0;
4
+ const Constants_js_1 = require("../../../../domain/relations/Constants.js");
4
5
  /**
5
6
  * Event handler for DependencyUpdatedEvent.
6
7
  *
@@ -8,12 +9,14 @@ exports.DependencyUpdatedEventHandler = void 0;
8
9
  * when a dependency is updated. Subscribes to DependencyUpdatedEvent via event bus.
9
10
  */
10
11
  class DependencyUpdatedEventHandler {
11
- constructor(projector) {
12
+ constructor(projector, relationMaintenanceGoalRegistrar) {
12
13
  this.projector = projector;
14
+ this.relationMaintenanceGoalRegistrar = relationMaintenanceGoalRegistrar;
13
15
  }
14
16
  async handle(event) {
15
17
  const dependencyUpdatedEvent = event;
16
18
  await this.projector.applyDependencyUpdated(dependencyUpdatedEvent);
19
+ await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.DEPENDENCY, dependencyUpdatedEvent.aggregateId, "dependency was updated");
17
20
  }
18
21
  }
19
22
  exports.DependencyUpdatedEventHandler = DependencyUpdatedEventHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"DependencyUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/dependencies/update/DependencyUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,6BAA6B;IACxC,YAA6B,SAAsC;QAAtC,cAAS,GAAT,SAAS,CAA6B;IAAG,CAAC;IAEvE,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,sBAAsB,GAAG,KAA+B,CAAC;QAC/D,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,CAAC;IACtE,CAAC;CACF;AAPD,sEAOC"}
1
+ {"version":3,"file":"DependencyUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/dependencies/update/DependencyUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,6BAA6B;IACxC,YACmB,SAAsC,EACtC,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAA6B;QACtC,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,sBAAsB,GAAG,KAA+B,CAAC;QAC/D,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,CAAC;QACpE,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,UAAU,EACrB,sBAAsB,CAAC,WAAW,EAClC,wBAAwB,CACzB,CAAC;IACJ,CAAC;CACF;AAfD,sEAeC"}
@@ -1,6 +1,7 @@
1
1
  import { IEventHandler } from "../../../messaging/IEventHandler.js";
2
2
  import { BaseEvent } from "../../../../domain/BaseEvent.js";
3
3
  import { IGoalRemovedProjector } from "./IGoalRemovedProjector.js";
4
+ import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
4
5
  /**
5
6
  * Event handler for GoalRemovedEvent.
6
7
  *
@@ -9,7 +10,8 @@ import { IGoalRemovedProjector } from "./IGoalRemovedProjector.js";
9
10
  */
10
11
  export declare class GoalRemovedEventHandler implements IEventHandler {
11
12
  private readonly projector;
12
- constructor(projector: IGoalRemovedProjector);
13
+ private readonly relationMaintenanceGoalRegistrar;
14
+ constructor(projector: IGoalRemovedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
13
15
  handle(event: BaseEvent): Promise<void>;
14
16
  }
15
17
  //# sourceMappingURL=GoalRemovedEventHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GoalRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/remove/GoalRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;;;;GAKG;AACH,qBAAa,uBAAwB,YAAW,aAAa;IAC/C,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,qBAAqB;IAEvD,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9C"}
1
+ {"version":3,"file":"GoalRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/remove/GoalRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,uBAAwB,YAAW,aAAa;IAEzD,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,qBAAqB,EAChC,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GoalRemovedEventHandler = void 0;
4
+ const Constants_js_1 = require("../../../../domain/relations/Constants.js");
4
5
  /**
5
6
  * Event handler for GoalRemovedEvent.
6
7
  *
@@ -8,11 +9,13 @@ exports.GoalRemovedEventHandler = void 0;
8
9
  * when a goal is removed. Subscribes to GoalRemovedEvent via event bus.
9
10
  */
10
11
  class GoalRemovedEventHandler {
11
- constructor(projector) {
12
+ constructor(projector, relationMaintenanceGoalRegistrar) {
12
13
  this.projector = projector;
14
+ this.relationMaintenanceGoalRegistrar = relationMaintenanceGoalRegistrar;
13
15
  }
14
16
  async handle(event) {
15
17
  const goalRemovedEvent = event;
18
+ await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.GOAL, goalRemovedEvent.aggregateId, "goal was removed");
16
19
  await this.projector.applyGoalRemoved(goalRemovedEvent);
17
20
  }
18
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"GoalRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/remove/GoalRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,uBAAuB;IAClC,YAA6B,SAAgC;QAAhC,cAAS,GAAT,SAAS,CAAuB;IAAG,CAAC;IAEjE,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,gBAAgB,GAAG,KAAyB,CAAC;QACnD,MAAM,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC;CACF;AAPD,0DAOC"}
1
+ {"version":3,"file":"GoalRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/remove/GoalRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,uBAAuB;IAClC,YACmB,SAAgC,EAChC,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAAuB;QAChC,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,gBAAgB,GAAG,KAAyB,CAAC;QACnD,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,IAAI,EACf,gBAAgB,CAAC,WAAW,EAC5B,kBAAkB,CACnB,CAAC;QACF,MAAM,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC;CACF;AAfD,0DAeC"}
@@ -1,6 +1,7 @@
1
1
  import { IEventHandler } from "../../../messaging/IEventHandler.js";
2
2
  import { BaseEvent } from "../../../../domain/BaseEvent.js";
3
3
  import { IGoalUpdatedProjector } from "./IGoalUpdatedProjector.js";
4
+ import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
4
5
  /**
5
6
  * Event handler for GoalUpdatedEvent.
6
7
  *
@@ -9,7 +10,8 @@ import { IGoalUpdatedProjector } from "./IGoalUpdatedProjector.js";
9
10
  */
10
11
  export declare class GoalUpdatedEventHandler implements IEventHandler {
11
12
  private readonly projector;
12
- constructor(projector: IGoalUpdatedProjector);
13
+ private readonly relationMaintenanceGoalRegistrar;
14
+ constructor(projector: IGoalUpdatedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
13
15
  handle(event: BaseEvent): Promise<void>;
14
16
  }
15
17
  //# sourceMappingURL=GoalUpdatedEventHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GoalUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/update/GoalUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;;;;GAKG;AACH,qBAAa,uBAAwB,YAAW,aAAa;IAC/C,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,qBAAqB;IAEvD,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9C"}
1
+ {"version":3,"file":"GoalUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/goals/update/GoalUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,uBAAwB,YAAW,aAAa;IAEzD,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,qBAAqB,EAChC,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GoalUpdatedEventHandler = void 0;
4
+ const Constants_js_1 = require("../../../../domain/relations/Constants.js");
4
5
  /**
5
6
  * Event handler for GoalUpdatedEvent.
6
7
  *
@@ -8,12 +9,14 @@ exports.GoalUpdatedEventHandler = void 0;
8
9
  * when a goal is updated. Subscribes to GoalUpdatedEvent via event bus.
9
10
  */
10
11
  class GoalUpdatedEventHandler {
11
- constructor(projector) {
12
+ constructor(projector, relationMaintenanceGoalRegistrar) {
12
13
  this.projector = projector;
14
+ this.relationMaintenanceGoalRegistrar = relationMaintenanceGoalRegistrar;
13
15
  }
14
16
  async handle(event) {
15
17
  const goalUpdatedEvent = event;
16
18
  await this.projector.applyGoalUpdated(goalUpdatedEvent);
19
+ await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.GOAL, goalUpdatedEvent.aggregateId, "goal was updated");
17
20
  }
18
21
  }
19
22
  exports.GoalUpdatedEventHandler = GoalUpdatedEventHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"GoalUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/update/GoalUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,uBAAuB;IAClC,YAA6B,SAAgC;QAAhC,cAAS,GAAT,SAAS,CAAuB;IAAG,CAAC;IAEjE,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,gBAAgB,GAAG,KAAyB,CAAC;QACnD,MAAM,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC;CACF;AAPD,0DAOC"}
1
+ {"version":3,"file":"GoalUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/goals/update/GoalUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,uBAAuB;IAClC,YACmB,SAAgC,EAChC,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAAuB;QAChC,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,gBAAgB,GAAG,KAAyB,CAAC;QACnD,MAAM,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;QACxD,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,IAAI,EACf,gBAAgB,CAAC,WAAW,EAC5B,kBAAkB,CACnB,CAAC;IACJ,CAAC;CACF;AAfD,0DAeC"}
@@ -1,6 +1,7 @@
1
1
  import { IEventHandler } from "../../../messaging/IEventHandler.js";
2
2
  import { BaseEvent } from "../../../../domain/BaseEvent.js";
3
3
  import { IGuidelineRemovedProjector } from "./IGuidelineRemovedProjector.js";
4
+ import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
4
5
  /**
5
6
  * Event handler for GuidelineRemovedEvent.
6
7
  *
@@ -9,7 +10,8 @@ import { IGuidelineRemovedProjector } from "./IGuidelineRemovedProjector.js";
9
10
  */
10
11
  export declare class GuidelineRemovedEventHandler implements IEventHandler {
11
12
  private readonly projector;
12
- constructor(projector: IGuidelineRemovedProjector);
13
+ private readonly relationMaintenanceGoalRegistrar;
14
+ constructor(projector: IGuidelineRemovedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
13
15
  handle(event: BaseEvent): Promise<void>;
14
16
  }
15
17
  //# sourceMappingURL=GuidelineRemovedEventHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GuidelineRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/guidelines/remove/GuidelineRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;;;;GAKG;AACH,qBAAa,4BAA6B,YAAW,aAAa;IACpD,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,0BAA0B;IAE5D,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9C"}
1
+ {"version":3,"file":"GuidelineRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/guidelines/remove/GuidelineRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,4BAA6B,YAAW,aAAa;IAE9D,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,0BAA0B,EACrC,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GuidelineRemovedEventHandler = void 0;
4
+ const Constants_js_1 = require("../../../../domain/relations/Constants.js");
4
5
  /**
5
6
  * Event handler for GuidelineRemovedEvent.
6
7
  *
@@ -8,11 +9,13 @@ exports.GuidelineRemovedEventHandler = void 0;
8
9
  * when a guideline is removed. Subscribes to GuidelineRemovedEvent via event bus.
9
10
  */
10
11
  class GuidelineRemovedEventHandler {
11
- constructor(projector) {
12
+ constructor(projector, relationMaintenanceGoalRegistrar) {
12
13
  this.projector = projector;
14
+ this.relationMaintenanceGoalRegistrar = relationMaintenanceGoalRegistrar;
13
15
  }
14
16
  async handle(event) {
15
17
  const guidelineRemovedEvent = event;
18
+ await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.GUIDELINE, guidelineRemovedEvent.aggregateId, "guideline was removed");
16
19
  await this.projector.applyGuidelineRemoved(guidelineRemovedEvent);
17
20
  }
18
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"GuidelineRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/guidelines/remove/GuidelineRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,4BAA4B;IACvC,YAA6B,SAAqC;QAArC,cAAS,GAAT,SAAS,CAA4B;IAAG,CAAC;IAEtE,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,qBAAqB,GAAG,KAA8B,CAAC;QAC7D,MAAM,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACF;AAPD,oEAOC"}
1
+ {"version":3,"file":"GuidelineRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/guidelines/remove/GuidelineRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,4BAA4B;IACvC,YACmB,SAAqC,EACrC,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAA4B;QACrC,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,qBAAqB,GAAG,KAA8B,CAAC;QAC7D,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,SAAS,EACpB,qBAAqB,CAAC,WAAW,EACjC,uBAAuB,CACxB,CAAC;QACF,MAAM,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACF;AAfD,oEAeC"}
@@ -1,6 +1,7 @@
1
1
  import { IEventHandler } from "../../../messaging/IEventHandler.js";
2
2
  import { BaseEvent } from "../../../../domain/BaseEvent.js";
3
3
  import { IGuidelineUpdatedProjector } from "./IGuidelineUpdatedProjector.js";
4
+ import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
4
5
  /**
5
6
  * Event handler for GuidelineUpdatedEvent.
6
7
  *
@@ -9,7 +10,8 @@ import { IGuidelineUpdatedProjector } from "./IGuidelineUpdatedProjector.js";
9
10
  */
10
11
  export declare class GuidelineUpdatedEventHandler implements IEventHandler {
11
12
  private readonly projector;
12
- constructor(projector: IGuidelineUpdatedProjector);
13
+ private readonly relationMaintenanceGoalRegistrar;
14
+ constructor(projector: IGuidelineUpdatedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
13
15
  handle(event: BaseEvent): Promise<void>;
14
16
  }
15
17
  //# sourceMappingURL=GuidelineUpdatedEventHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GuidelineUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/guidelines/update/GuidelineUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;;;;GAKG;AACH,qBAAa,4BAA6B,YAAW,aAAa;IACpD,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,0BAA0B;IAE5D,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9C"}
1
+ {"version":3,"file":"GuidelineUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/guidelines/update/GuidelineUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,4BAA6B,YAAW,aAAa;IAE9D,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,0BAA0B,EACrC,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GuidelineUpdatedEventHandler = void 0;
4
+ const Constants_js_1 = require("../../../../domain/relations/Constants.js");
4
5
  /**
5
6
  * Event handler for GuidelineUpdatedEvent.
6
7
  *
@@ -8,12 +9,14 @@ exports.GuidelineUpdatedEventHandler = void 0;
8
9
  * when a guideline is updated. Subscribes to GuidelineUpdatedEvent via event bus.
9
10
  */
10
11
  class GuidelineUpdatedEventHandler {
11
- constructor(projector) {
12
+ constructor(projector, relationMaintenanceGoalRegistrar) {
12
13
  this.projector = projector;
14
+ this.relationMaintenanceGoalRegistrar = relationMaintenanceGoalRegistrar;
13
15
  }
14
16
  async handle(event) {
15
17
  const guidelineUpdatedEvent = event;
16
18
  await this.projector.applyGuidelineUpdated(guidelineUpdatedEvent);
19
+ await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.GUIDELINE, guidelineUpdatedEvent.aggregateId, "guideline was updated");
17
20
  }
18
21
  }
19
22
  exports.GuidelineUpdatedEventHandler = GuidelineUpdatedEventHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"GuidelineUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/guidelines/update/GuidelineUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,4BAA4B;IACvC,YAA6B,SAAqC;QAArC,cAAS,GAAT,SAAS,CAA4B;IAAG,CAAC;IAEtE,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,qBAAqB,GAAG,KAA8B,CAAC;QAC7D,MAAM,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACF;AAPD,oEAOC"}
1
+ {"version":3,"file":"GuidelineUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/guidelines/update/GuidelineUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,4BAA4B;IACvC,YACmB,SAAqC,EACrC,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAA4B;QACrC,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,qBAAqB,GAAG,KAA8B,CAAC;QAC7D,MAAM,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;QAClE,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,SAAS,EACpB,qBAAqB,CAAC,WAAW,EACjC,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AAfD,oEAeC"}
@@ -1,6 +1,7 @@
1
1
  import { IEventHandler } from "../../../messaging/IEventHandler.js";
2
2
  import { BaseEvent } from "../../../../domain/BaseEvent.js";
3
3
  import { IInvariantRemovedProjector } from "./IInvariantRemovedProjector.js";
4
+ import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
4
5
  /**
5
6
  * Event handler for InvariantRemovedEvent.
6
7
  *
@@ -9,7 +10,8 @@ import { IInvariantRemovedProjector } from "./IInvariantRemovedProjector.js";
9
10
  */
10
11
  export declare class InvariantRemovedEventHandler implements IEventHandler {
11
12
  private readonly projector;
12
- constructor(projector: IInvariantRemovedProjector);
13
+ private readonly relationMaintenanceGoalRegistrar;
14
+ constructor(projector: IInvariantRemovedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
13
15
  handle(event: BaseEvent): Promise<void>;
14
16
  }
15
17
  //# sourceMappingURL=InvariantRemovedEventHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvariantRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/invariants/remove/InvariantRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;;;;GAKG;AACH,qBAAa,4BAA6B,YAAW,aAAa;IACpD,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,0BAA0B;IAE5D,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9C"}
1
+ {"version":3,"file":"InvariantRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/invariants/remove/InvariantRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,4BAA6B,YAAW,aAAa;IAE9D,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,0BAA0B,EACrC,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvariantRemovedEventHandler = void 0;
4
+ const Constants_js_1 = require("../../../../domain/relations/Constants.js");
4
5
  /**
5
6
  * Event handler for InvariantRemovedEvent.
6
7
  *
@@ -8,11 +9,13 @@ exports.InvariantRemovedEventHandler = void 0;
8
9
  * when an invariant is removed. Subscribes to InvariantRemovedEvent via event bus.
9
10
  */
10
11
  class InvariantRemovedEventHandler {
11
- constructor(projector) {
12
+ constructor(projector, relationMaintenanceGoalRegistrar) {
12
13
  this.projector = projector;
14
+ this.relationMaintenanceGoalRegistrar = relationMaintenanceGoalRegistrar;
13
15
  }
14
16
  async handle(event) {
15
17
  const invariantRemovedEvent = event;
18
+ await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.INVARIANT, invariantRemovedEvent.aggregateId, "invariant was removed");
16
19
  await this.projector.applyInvariantRemoved(invariantRemovedEvent);
17
20
  }
18
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InvariantRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/invariants/remove/InvariantRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,4BAA4B;IACvC,YAA6B,SAAqC;QAArC,cAAS,GAAT,SAAS,CAA4B;IAAG,CAAC;IAEtE,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,qBAAqB,GAAG,KAA8B,CAAC;QAC7D,MAAM,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACF;AAPD,oEAOC"}
1
+ {"version":3,"file":"InvariantRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/invariants/remove/InvariantRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,4BAA4B;IACvC,YACmB,SAAqC,EACrC,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAA4B;QACrC,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,qBAAqB,GAAG,KAA8B,CAAC;QAC7D,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,SAAS,EACpB,qBAAqB,CAAC,WAAW,EACjC,uBAAuB,CACxB,CAAC;QACF,MAAM,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACF;AAfD,oEAeC"}
@@ -1,6 +1,7 @@
1
1
  import { IEventHandler } from "../../../messaging/IEventHandler.js";
2
2
  import { BaseEvent } from "../../../../domain/BaseEvent.js";
3
3
  import { IInvariantUpdatedProjector } from "./IInvariantUpdatedProjector.js";
4
+ import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
4
5
  /**
5
6
  * Event handler for InvariantUpdatedEvent.
6
7
  *
@@ -9,7 +10,8 @@ import { IInvariantUpdatedProjector } from "./IInvariantUpdatedProjector.js";
9
10
  */
10
11
  export declare class InvariantUpdatedEventHandler implements IEventHandler {
11
12
  private readonly projector;
12
- constructor(projector: IInvariantUpdatedProjector);
13
+ private readonly relationMaintenanceGoalRegistrar;
14
+ constructor(projector: IInvariantUpdatedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
13
15
  handle(event: BaseEvent): Promise<void>;
14
16
  }
15
17
  //# sourceMappingURL=InvariantUpdatedEventHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvariantUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/invariants/update/InvariantUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;;;;GAKG;AACH,qBAAa,4BAA6B,YAAW,aAAa;IACpD,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,0BAA0B;IAE5D,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9C"}
1
+ {"version":3,"file":"InvariantUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/invariants/update/InvariantUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,4BAA6B,YAAW,aAAa;IAE9D,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,0BAA0B,EACrC,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvariantUpdatedEventHandler = void 0;
4
+ const Constants_js_1 = require("../../../../domain/relations/Constants.js");
4
5
  /**
5
6
  * Event handler for InvariantUpdatedEvent.
6
7
  *
@@ -8,12 +9,14 @@ exports.InvariantUpdatedEventHandler = void 0;
8
9
  * when an invariant is updated. Subscribes to InvariantUpdatedEvent via event bus.
9
10
  */
10
11
  class InvariantUpdatedEventHandler {
11
- constructor(projector) {
12
+ constructor(projector, relationMaintenanceGoalRegistrar) {
12
13
  this.projector = projector;
14
+ this.relationMaintenanceGoalRegistrar = relationMaintenanceGoalRegistrar;
13
15
  }
14
16
  async handle(event) {
15
17
  const invariantUpdatedEvent = event;
16
18
  await this.projector.applyInvariantUpdated(invariantUpdatedEvent);
19
+ await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.INVARIANT, invariantUpdatedEvent.aggregateId, "invariant was updated");
17
20
  }
18
21
  }
19
22
  exports.InvariantUpdatedEventHandler = InvariantUpdatedEventHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"InvariantUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/invariants/update/InvariantUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,4BAA4B;IACvC,YAA6B,SAAqC;QAArC,cAAS,GAAT,SAAS,CAA4B;IAAG,CAAC;IAEtE,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,qBAAqB,GAAG,KAA8B,CAAC;QAC7D,MAAM,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACF;AAPD,oEAOC"}
1
+ {"version":3,"file":"InvariantUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/invariants/update/InvariantUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,4BAA4B;IACvC,YACmB,SAAqC,EACrC,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAA4B;QACrC,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,qBAAqB,GAAG,KAA8B,CAAC;QAC7D,MAAM,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;QAClE,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,SAAS,EACpB,qBAAqB,CAAC,WAAW,EACjC,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AAfD,oEAeC"}
@@ -5,7 +5,8 @@
5
5
  * during project initialization.
6
6
  *
7
7
  * Responsibilities:
8
- * - Ensure AGENTS.md exists with Jumbo instructions
8
+ * - Ensure JUMBO.md exists with full Jumbo instructions
9
+ * - Ensure AGENTS.md exists with thin reference to JUMBO.md
9
10
  * - Ensure all supported agents are configured
10
11
  * - Report planned file changes for preview before execution
11
12
  *
@@ -18,12 +19,23 @@
18
19
  import { PlannedFileChange } from "./PlannedFileChange.js";
19
20
  export interface IAgentFileProtocol {
20
21
  /**
21
- * Ensure AGENTS.md exists with Jumbo instructions.
22
+ * Ensure JUMBO.md exists with full Jumbo instructions.
22
23
  *
23
24
  * Behavior:
24
- * - If AGENTS.md doesn't exist: Create it with full content
25
- * - If AGENTS.md exists without Jumbo Instructions: Append Jumbo Instructions section
26
- * - If AGENTS.md exists with Jumbo Instructions section: Replace with current version
25
+ * - If JUMBO.md doesn't exist: Create it with full content
26
+ * - If JUMBO.md exists with Jumbo section: Replace with current version
27
+ * - If JUMBO.md exists without Jumbo section: Append current Jumbo section
28
+ *
29
+ * @param projectRoot Absolute path to project root directory
30
+ */
31
+ ensureJumboMd(projectRoot: string): Promise<void>;
32
+ /**
33
+ * Ensure AGENTS.md exists with thin reference to JUMBO.md.
34
+ *
35
+ * Behavior:
36
+ * - If AGENTS.md doesn't exist: Create it with thin reference content
37
+ * - If AGENTS.md exists without Jumbo Instructions: Append thin reference section
38
+ * - If AGENTS.md exists with Jumbo Instructions section: Replace with thin reference
27
39
  *
28
40
  * @param projectRoot Absolute path to project root directory
29
41
  */
@@ -46,12 +58,23 @@ export interface IAgentFileProtocol {
46
58
  */
47
59
  ensureAgentConfigurations(projectRoot: string): Promise<void>;
48
60
  /**
49
- * Repair AGENTS.md by replacing the Jumbo section with the current version.
61
+ * Repair JUMBO.md by replacing the Jumbo section with the current version.
62
+ *
63
+ * Behavior:
64
+ * - If JUMBO.md doesn't exist: Create it with full content
65
+ * - If JUMBO.md exists with Jumbo section: Replace section with current version
66
+ * - If JUMBO.md exists without Jumbo section: Append current Jumbo section
67
+ *
68
+ * @param projectRoot Absolute path to project root directory
69
+ */
70
+ repairJumboMd(projectRoot: string): Promise<void>;
71
+ /**
72
+ * Repair AGENTS.md by replacing the Jumbo section with the current thin reference.
50
73
  *
51
74
  * Behavior:
52
- * - If AGENTS.md doesn't exist: Create it with full content
53
- * - If AGENTS.md exists with Jumbo section: Replace section with current version
54
- * - If AGENTS.md exists without Jumbo section: Append current Jumbo section
75
+ * - If AGENTS.md doesn't exist: Create it with thin reference content
76
+ * - If AGENTS.md exists with Jumbo section: Replace section with thin reference
77
+ * - If AGENTS.md exists without Jumbo section: Append thin reference section
55
78
  *
56
79
  * @param projectRoot Absolute path to project root directory
57
80
  */
@@ -73,6 +96,7 @@ export interface IAgentFileProtocol {
73
96
  * Use this for preview before user confirmation.
74
97
  *
75
98
  * Includes:
99
+ * - JUMBO.md (create or modify)
76
100
  * - AGENTS.md (create or modify)
77
101
  * - All agent-specific files from configurers
78
102
  *
@@ -1 +1 @@
1
- {"version":3,"file":"IAgentFileProtocol.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IAgentFileProtocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;OASG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;;;;;;;;;;;;;OAeG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;;;;;;;OASG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;;;;;;;;OAUG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;;;;;;;;OAUG;IACH,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;CAC1E"}
1
+ {"version":3,"file":"IAgentFileProtocol.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IAgentFileProtocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;OASG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD;;;;;;;;;OASG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;;;;;;;;;;;;;OAeG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;;;;;;;OASG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD;;;;;;;;;OASG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;;;;;;;;OAUG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;;;;;;;;;OAWG;IACH,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;CAC1E"}
@@ -6,7 +6,8 @@
6
6
  * during project initialization.
7
7
  *
8
8
  * Responsibilities:
9
- * - Ensure AGENTS.md exists with Jumbo instructions
9
+ * - Ensure JUMBO.md exists with full Jumbo instructions
10
+ * - Ensure AGENTS.md exists with thin reference to JUMBO.md
10
11
  * - Ensure all supported agents are configured
11
12
  * - Report planned file changes for preview before execution
12
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"IAgentFileProtocol.js","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IAgentFileProtocol.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
1
+ {"version":3,"file":"IAgentFileProtocol.js","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IAgentFileProtocol.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -3,10 +3,12 @@ import { InitializeProjectRequest } from "./InitializeProjectRequest.js";
3
3
  import { InitializeProjectResponse } from "./InitializeProjectResponse.js";
4
4
  import { InitializeProjectCommandHandler } from "./InitializeProjectCommandHandler.js";
5
5
  import { IPlanProjectInitGateway } from "./IPlanProjectInitGateway.js";
6
+ import { IAgentFileProtocol } from "./IAgentFileProtocol.js";
6
7
  export declare class LocalInitializeProjectGateway implements IInitializeProjectGateway {
7
8
  private readonly commandHandler;
8
9
  private readonly planProjectInitGateway;
9
- constructor(commandHandler: InitializeProjectCommandHandler, planProjectInitGateway: IPlanProjectInitGateway);
10
+ private readonly agentFileProtocol;
11
+ constructor(commandHandler: InitializeProjectCommandHandler, planProjectInitGateway: IPlanProjectInitGateway, agentFileProtocol: IAgentFileProtocol);
10
12
  initializeProject(request: InitializeProjectRequest): Promise<InitializeProjectResponse>;
11
13
  }
12
14
  //# sourceMappingURL=LocalInitializeProjectGateway.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LocalInitializeProjectGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/LocalInitializeProjectGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,qBAAa,6BAA8B,YAAW,yBAAyB;IAE3E,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,sBAAsB;gBADtB,cAAc,EAAE,+BAA+B,EAC/C,sBAAsB,EAAE,uBAAuB;IAG5D,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAe/F"}
1
+ {"version":3,"file":"LocalInitializeProjectGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/LocalInitializeProjectGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,qBAAa,6BAA8B,YAAW,yBAAyB;IAE3E,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,cAAc,EAAE,+BAA+B,EAC/C,sBAAsB,EAAE,uBAAuB,EAC/C,iBAAiB,EAAE,kBAAkB;IAGlD,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAkB/F"}
@@ -2,14 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LocalInitializeProjectGateway = void 0;
4
4
  class LocalInitializeProjectGateway {
5
- constructor(commandHandler, planProjectInitGateway) {
5
+ constructor(commandHandler, planProjectInitGateway, agentFileProtocol) {
6
6
  this.commandHandler = commandHandler;
7
7
  this.planProjectInitGateway = planProjectInitGateway;
8
+ this.agentFileProtocol = agentFileProtocol;
8
9
  }
9
10
  async initializeProject(request) {
10
11
  const planResponse = await this.planProjectInitGateway.planProjectInit({
11
12
  projectRoot: request.projectRoot,
12
13
  });
14
+ // Ensure JUMBO.md exists before ensureAgentsMd (called inside commandHandler.execute)
15
+ await this.agentFileProtocol.ensureJumboMd(request.projectRoot);
13
16
  const result = await this.commandHandler.execute({ name: request.name, purpose: request.purpose }, request.projectRoot);
14
17
  return {
15
18
  projectId: result.projectId,
@@ -1 +1 @@
1
- {"version":3,"file":"LocalInitializeProjectGateway.js","sourceRoot":"","sources":["../../../../../src/application/context/project/init/LocalInitializeProjectGateway.ts"],"names":[],"mappings":";;;AAMA,MAAa,6BAA6B;IACxC,YACmB,cAA+C,EAC/C,sBAA+C;QAD/C,mBAAc,GAAd,cAAc,CAAiC;QAC/C,2BAAsB,GAAtB,sBAAsB,CAAyB;IAC/D,CAAC;IAEJ,KAAK,CAAC,iBAAiB,CAAC,OAAiC;QACvD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC;YACrE,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAC9C,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,EAChD,OAAO,CAAC,WAAW,CACpB,CAAC;QAEF,OAAO;YACL,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,OAAO,EAAE,YAAY,CAAC,cAAc;SACrC,CAAC;IACJ,CAAC;CACF;AArBD,sEAqBC"}
1
+ {"version":3,"file":"LocalInitializeProjectGateway.js","sourceRoot":"","sources":["../../../../../src/application/context/project/init/LocalInitializeProjectGateway.ts"],"names":[],"mappings":";;;AAOA,MAAa,6BAA6B;IACxC,YACmB,cAA+C,EAC/C,sBAA+C,EAC/C,iBAAqC;QAFrC,mBAAc,GAAd,cAAc,CAAiC;QAC/C,2BAAsB,GAAtB,sBAAsB,CAAyB;QAC/C,sBAAiB,GAAjB,iBAAiB,CAAoB;IACrD,CAAC;IAEJ,KAAK,CAAC,iBAAiB,CAAC,OAAiC;QACvD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC;YACrE,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC,CAAC;QAEH,sFAAsF;QACtF,MAAM,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAEhE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAC9C,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,EAChD,OAAO,CAAC,WAAW,CACpB,CAAC;QAEF,OAAO;YACL,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,OAAO,EAAE,YAAY,CAAC,cAAc;SACrC,CAAC;IACJ,CAAC;CACF;AAzBD,sEAyBC"}