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.
- package/dist/application/context/architecture/update/ArchitectureUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/architecture/update/ArchitectureUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/architecture/update/ArchitectureUpdatedEventHandler.js +4 -1
- package/dist/application/context/architecture/update/ArchitectureUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/audience-pains/update/AudiencePainUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/audience-pains/update/AudiencePainUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/audience-pains/update/AudiencePainUpdatedEventHandler.js +4 -1
- package/dist/application/context/audience-pains/update/AudiencePainUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/audiences/remove/AudienceRemovedEventHandler.d.ts +3 -1
- package/dist/application/context/audiences/remove/AudienceRemovedEventHandler.d.ts.map +1 -1
- package/dist/application/context/audiences/remove/AudienceRemovedEventHandler.js +4 -1
- package/dist/application/context/audiences/remove/AudienceRemovedEventHandler.js.map +1 -1
- package/dist/application/context/audiences/update/AudienceUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/audiences/update/AudienceUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/audiences/update/AudienceUpdatedEventHandler.js +4 -1
- package/dist/application/context/audiences/update/AudienceUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/components/deprecate/ComponentDeprecatedEventHandler.d.ts +3 -1
- package/dist/application/context/components/deprecate/ComponentDeprecatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/components/deprecate/ComponentDeprecatedEventHandler.js +3 -1
- package/dist/application/context/components/deprecate/ComponentDeprecatedEventHandler.js.map +1 -1
- package/dist/application/context/components/remove/ComponentRemovedEventHandler.d.ts +3 -1
- package/dist/application/context/components/remove/ComponentRemovedEventHandler.d.ts.map +1 -1
- package/dist/application/context/components/remove/ComponentRemovedEventHandler.js +3 -1
- package/dist/application/context/components/remove/ComponentRemovedEventHandler.js.map +1 -1
- package/dist/application/context/components/undeprecate/ComponentUndeprecatedEventHandler.d.ts +3 -1
- package/dist/application/context/components/undeprecate/ComponentUndeprecatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/components/undeprecate/ComponentUndeprecatedEventHandler.js +3 -1
- package/dist/application/context/components/undeprecate/ComponentUndeprecatedEventHandler.js.map +1 -1
- package/dist/application/context/components/update/ComponentUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/components/update/ComponentUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/components/update/ComponentUpdatedEventHandler.js +4 -1
- package/dist/application/context/components/update/ComponentUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/decisions/restore/DecisionRestoredEventHandler.d.ts +3 -1
- package/dist/application/context/decisions/restore/DecisionRestoredEventHandler.d.ts.map +1 -1
- package/dist/application/context/decisions/restore/DecisionRestoredEventHandler.js +3 -1
- package/dist/application/context/decisions/restore/DecisionRestoredEventHandler.js.map +1 -1
- package/dist/application/context/decisions/supersede/DecisionSupersededEventHandler.d.ts +3 -1
- package/dist/application/context/decisions/supersede/DecisionSupersededEventHandler.d.ts.map +1 -1
- package/dist/application/context/decisions/supersede/DecisionSupersededEventHandler.js +3 -1
- package/dist/application/context/decisions/supersede/DecisionSupersededEventHandler.js.map +1 -1
- package/dist/application/context/decisions/update/DecisionUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/decisions/update/DecisionUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/decisions/update/DecisionUpdatedEventHandler.js +4 -1
- package/dist/application/context/decisions/update/DecisionUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/dependencies/remove/DependencyRemovedEventHandler.d.ts +3 -1
- package/dist/application/context/dependencies/remove/DependencyRemovedEventHandler.d.ts.map +1 -1
- package/dist/application/context/dependencies/remove/DependencyRemovedEventHandler.js +4 -1
- package/dist/application/context/dependencies/remove/DependencyRemovedEventHandler.js.map +1 -1
- package/dist/application/context/dependencies/update/DependencyUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/dependencies/update/DependencyUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/dependencies/update/DependencyUpdatedEventHandler.js +4 -1
- package/dist/application/context/dependencies/update/DependencyUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/goals/remove/GoalRemovedEventHandler.d.ts +3 -1
- package/dist/application/context/goals/remove/GoalRemovedEventHandler.d.ts.map +1 -1
- package/dist/application/context/goals/remove/GoalRemovedEventHandler.js +4 -1
- package/dist/application/context/goals/remove/GoalRemovedEventHandler.js.map +1 -1
- package/dist/application/context/goals/update/GoalUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/goals/update/GoalUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/goals/update/GoalUpdatedEventHandler.js +4 -1
- package/dist/application/context/goals/update/GoalUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/guidelines/remove/GuidelineRemovedEventHandler.d.ts +3 -1
- package/dist/application/context/guidelines/remove/GuidelineRemovedEventHandler.d.ts.map +1 -1
- package/dist/application/context/guidelines/remove/GuidelineRemovedEventHandler.js +4 -1
- package/dist/application/context/guidelines/remove/GuidelineRemovedEventHandler.js.map +1 -1
- package/dist/application/context/guidelines/update/GuidelineUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/guidelines/update/GuidelineUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/guidelines/update/GuidelineUpdatedEventHandler.js +4 -1
- package/dist/application/context/guidelines/update/GuidelineUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/invariants/remove/InvariantRemovedEventHandler.d.ts +3 -1
- package/dist/application/context/invariants/remove/InvariantRemovedEventHandler.d.ts.map +1 -1
- package/dist/application/context/invariants/remove/InvariantRemovedEventHandler.js +4 -1
- package/dist/application/context/invariants/remove/InvariantRemovedEventHandler.js.map +1 -1
- package/dist/application/context/invariants/update/InvariantUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/invariants/update/InvariantUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/invariants/update/InvariantUpdatedEventHandler.js +4 -1
- package/dist/application/context/invariants/update/InvariantUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/project/init/IAgentFileProtocol.d.ts +33 -9
- package/dist/application/context/project/init/IAgentFileProtocol.d.ts.map +1 -1
- package/dist/application/context/project/init/IAgentFileProtocol.js +2 -1
- package/dist/application/context/project/init/IAgentFileProtocol.js.map +1 -1
- package/dist/application/context/project/init/LocalInitializeProjectGateway.d.ts +3 -1
- package/dist/application/context/project/init/LocalInitializeProjectGateway.d.ts.map +1 -1
- package/dist/application/context/project/init/LocalInitializeProjectGateway.js +4 -1
- package/dist/application/context/project/init/LocalInitializeProjectGateway.js.map +1 -1
- package/dist/application/context/project/update/ProjectUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/project/update/ProjectUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/project/update/ProjectUpdatedEventHandler.js +4 -1
- package/dist/application/context/project/update/ProjectUpdatedEventHandler.js.map +1 -1
- package/dist/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.d.ts +10 -0
- package/dist/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.d.ts.map +1 -0
- package/dist/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.js +3 -0
- package/dist/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.js.map +1 -0
- package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.d.ts +9 -0
- package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.d.ts.map +1 -0
- package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.js +14 -0
- package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.js.map +1 -0
- package/dist/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.d.ts +16 -0
- package/dist/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.d.ts.map +1 -0
- package/dist/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.js +43 -0
- package/dist/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.js.map +1 -0
- package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.d.ts +3 -1
- package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.d.ts.map +1 -1
- package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.js +4 -1
- package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.js.map +1 -1
- package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.d.ts +3 -1
- package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.d.ts.map +1 -1
- package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.js +4 -1
- package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.js.map +1 -1
- package/dist/application/evolve/EvolveController.d.ts.map +1 -1
- package/dist/application/evolve/EvolveController.js +3 -0
- package/dist/application/evolve/EvolveController.js.map +1 -1
- package/dist/domain/project/AgentFileReferenceContent.d.ts +11 -10
- package/dist/domain/project/AgentFileReferenceContent.d.ts.map +1 -1
- package/dist/domain/project/AgentFileReferenceContent.js +17 -31
- package/dist/domain/project/AgentFileReferenceContent.js.map +1 -1
- package/dist/domain/project/AgentsMdContent.d.ts +4 -3
- package/dist/domain/project/AgentsMdContent.d.ts.map +1 -1
- package/dist/domain/project/AgentsMdContent.js +6 -74
- package/dist/domain/project/AgentsMdContent.js.map +1 -1
- package/dist/domain/project/CopilotInstructionsContent.d.ts +11 -6
- package/dist/domain/project/CopilotInstructionsContent.d.ts.map +1 -1
- package/dist/domain/project/CopilotInstructionsContent.js +35 -48
- package/dist/domain/project/CopilotInstructionsContent.js.map +1 -1
- package/dist/domain/project/JumboMdContent.d.ts +45 -0
- package/dist/domain/project/JumboMdContent.d.ts.map +1 -0
- package/dist/domain/project/JumboMdContent.js +157 -0
- package/dist/domain/project/JumboMdContent.js.map +1 -0
- package/dist/infrastructure/context/project/init/AgentFileProtocol.d.ts +10 -2
- package/dist/infrastructure/context/project/init/AgentFileProtocol.d.ts.map +1 -1
- package/dist/infrastructure/context/project/init/AgentFileProtocol.js +60 -10
- package/dist/infrastructure/context/project/init/AgentFileProtocol.js.map +1 -1
- package/dist/infrastructure/context/project/init/ClaudeConfigurer.d.ts +3 -3
- package/dist/infrastructure/context/project/init/ClaudeConfigurer.d.ts.map +1 -1
- package/dist/infrastructure/context/project/init/ClaudeConfigurer.js +13 -14
- package/dist/infrastructure/context/project/init/ClaudeConfigurer.js.map +1 -1
- package/dist/infrastructure/context/project/init/CopilotConfigurer.d.ts +2 -2
- package/dist/infrastructure/context/project/init/CopilotConfigurer.d.ts.map +1 -1
- package/dist/infrastructure/context/project/init/CopilotConfigurer.js +16 -8
- package/dist/infrastructure/context/project/init/CopilotConfigurer.js.map +1 -1
- package/dist/infrastructure/context/project/init/GeminiConfigurer.d.ts +3 -3
- package/dist/infrastructure/context/project/init/GeminiConfigurer.d.ts.map +1 -1
- package/dist/infrastructure/context/project/init/GeminiConfigurer.js +13 -14
- package/dist/infrastructure/context/project/init/GeminiConfigurer.js.map +1 -1
- package/dist/infrastructure/host/HostBuilder.d.ts.map +1 -1
- package/dist/infrastructure/host/HostBuilder.js +25 -23
- package/dist/infrastructure/host/HostBuilder.js.map +1 -1
- package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.d.ts.map +1 -1
- package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.js +24 -22
- package/dist/infrastructure/local/TemporarySequentialDatabaseRebuildService.js.map +1 -1
- package/dist/presentation/cli/commands/audience-pains/update/audiencePain.update.js +2 -2
- package/dist/presentation/cli/commands/audience-pains/update/audiencePain.update.js.map +1 -1
- package/dist/presentation/cli/commands/components/show/component.show.js +2 -2
- package/dist/presentation/cli/commands/components/show/component.show.js.map +1 -1
- package/dist/presentation/cli/commands/components/update/component.update.js +4 -4
- package/dist/presentation/cli/commands/components/update/component.update.js.map +1 -1
- package/dist/presentation/cli/commands/evolve/evolve.js +1 -1
- package/dist/presentation/cli/commands/evolve/evolve.js.map +1 -1
- package/dist/presentation/cli/commands/goals/add/goal.add.d.ts.map +1 -1
- package/dist/presentation/cli/commands/goals/add/goal.add.js +14 -6
- package/dist/presentation/cli/commands/goals/add/goal.add.js.map +1 -1
- package/dist/presentation/cli/commands/goals/start/goal.start.js +1 -1
- package/dist/presentation/cli/commands/goals/start/goal.start.js.map +1 -1
- package/dist/presentation/cli/commands/heal/heal.js +1 -1
- package/dist/presentation/cli/commands/heal/heal.js.map +1 -1
- package/dist/presentation/cli/commands/project/update/project.update.d.ts +1 -1
- package/dist/presentation/cli/commands/project/update/project.update.d.ts.map +1 -1
- package/dist/presentation/cli/commands/project/update/project.update.js +1 -6
- package/dist/presentation/cli/commands/project/update/project.update.js.map +1 -1
- package/dist/presentation/cli/commands/value-propositions/update/value.update.js +5 -5
- package/dist/presentation/cli/commands/value-propositions/update/value.update.js.map +1 -1
- 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 { IProjectUpdatedProjector } from "./IProjectUpdatedProjector.js";
|
|
4
|
+
import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
|
|
4
5
|
/**
|
|
5
6
|
* Event handler for ProjectUpdated event.
|
|
6
7
|
*
|
|
@@ -9,7 +10,8 @@ import { IProjectUpdatedProjector } from "./IProjectUpdatedProjector.js";
|
|
|
9
10
|
*/
|
|
10
11
|
export declare class ProjectUpdatedEventHandler implements IEventHandler {
|
|
11
12
|
private readonly projector;
|
|
12
|
-
|
|
13
|
+
private readonly relationMaintenanceGoalRegistrar;
|
|
14
|
+
constructor(projector: IProjectUpdatedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
|
|
13
15
|
handle(event: BaseEvent): Promise<void>;
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=ProjectUpdatedEventHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/update/ProjectUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"ProjectUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/update/ProjectUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,0BAA2B,YAAW,aAAa;IAE5D,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,wBAAwB,EACnC,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.ProjectUpdatedEventHandler = void 0;
|
|
4
|
+
const Constants_js_1 = require("../../../../domain/relations/Constants.js");
|
|
4
5
|
/**
|
|
5
6
|
* Event handler for ProjectUpdated event.
|
|
6
7
|
*
|
|
@@ -8,12 +9,14 @@ exports.ProjectUpdatedEventHandler = void 0;
|
|
|
8
9
|
* when a project is updated. Subscribes to ProjectUpdated via event bus.
|
|
9
10
|
*/
|
|
10
11
|
class ProjectUpdatedEventHandler {
|
|
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 projectUpdatedEvent = event;
|
|
16
18
|
await this.projector.applyProjectUpdated(projectUpdatedEvent);
|
|
19
|
+
await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.PROJECT, projectUpdatedEvent.aggregateId, "project was updated");
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
exports.ProjectUpdatedEventHandler = ProjectUpdatedEventHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/project/update/ProjectUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,0BAA0B;IACrC,
|
|
1
|
+
{"version":3,"file":"ProjectUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/project/update/ProjectUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,0BAA0B;IACrC,YACmB,SAAmC,EACnC,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAA0B;QACnC,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,mBAAmB,GAAG,KAA4B,CAAC;QACzD,MAAM,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;QAC9D,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,OAAO,EAClB,mBAAmB,CAAC,WAAW,EAC/B,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AAfD,gEAeC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EntityTypeValue } from "../../../../domain/relations/Constants.js";
|
|
2
|
+
/**
|
|
3
|
+
* Abstraction for the relation maintenance goal registration side-effect.
|
|
4
|
+
* When an entity changes, implementations check for active relations and
|
|
5
|
+
* optionally register a goal to review them.
|
|
6
|
+
*/
|
|
7
|
+
export interface IRelationMaintenanceGoalRegistrar {
|
|
8
|
+
execute(entityType: EntityTypeValue, entityId: string, changeDescription: string): Promise<string | null>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=IRelationMaintenanceGoalRegistrar.d.ts.map
|
package/dist/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IRelationMaintenanceGoalRegistrar.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAE5E;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,OAAO,CAAC,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC3G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IRelationMaintenanceGoalRegistrar.js","sourceRoot":"","sources":["../../../../../src/application/context/relations/maintain/IRelationMaintenanceGoalRegistrar.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IRelationMaintenanceGoalRegistrar } from "./IRelationMaintenanceGoalRegistrar.js";
|
|
2
|
+
/**
|
|
3
|
+
* No-op implementation used during database rebuild (event replay).
|
|
4
|
+
* Event replay must not produce side-effects like creating new goals.
|
|
5
|
+
*/
|
|
6
|
+
export declare class NoOpRelationMaintenanceGoalRegistrar implements IRelationMaintenanceGoalRegistrar {
|
|
7
|
+
execute(): Promise<null>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=NoOpRelationMaintenanceGoalRegistrar.d.ts.map
|
package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoOpRelationMaintenanceGoalRegistrar.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F;;;GAGG;AACH,qBAAa,oCAAqC,YAAW,iCAAiC;IACtF,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoOpRelationMaintenanceGoalRegistrar = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* No-op implementation used during database rebuild (event replay).
|
|
6
|
+
* Event replay must not produce side-effects like creating new goals.
|
|
7
|
+
*/
|
|
8
|
+
class NoOpRelationMaintenanceGoalRegistrar {
|
|
9
|
+
async execute() {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.NoOpRelationMaintenanceGoalRegistrar = NoOpRelationMaintenanceGoalRegistrar;
|
|
14
|
+
//# sourceMappingURL=NoOpRelationMaintenanceGoalRegistrar.js.map
|
package/dist/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoOpRelationMaintenanceGoalRegistrar.js","sourceRoot":"","sources":["../../../../../src/application/context/relations/maintain/NoOpRelationMaintenanceGoalRegistrar.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,oCAAoC;IAC/C,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAJD,oFAIC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EntityTypeValue } from "../../../../domain/relations/Constants.js";
|
|
2
|
+
import { IRelationViewReader } from "../get/IRelationViewReader.js";
|
|
3
|
+
import { AddGoalCommandHandler } from "../../goals/add/AddGoalCommandHandler.js";
|
|
4
|
+
import { IRelationMaintenanceGoalRegistrar } from "./IRelationMaintenanceGoalRegistrar.js";
|
|
5
|
+
/**
|
|
6
|
+
* Shared application service that registers a maintenance goal when an entity
|
|
7
|
+
* with active relations is changed. The goal objective directs the agent to
|
|
8
|
+
* verify and update those relations so they remain in symmetry with the entity.
|
|
9
|
+
*/
|
|
10
|
+
export declare class RelationMaintenanceGoalRegistrar implements IRelationMaintenanceGoalRegistrar {
|
|
11
|
+
private readonly relationViewReader;
|
|
12
|
+
private readonly addGoalCommandHandler;
|
|
13
|
+
constructor(relationViewReader: IRelationViewReader, addGoalCommandHandler: AddGoalCommandHandler);
|
|
14
|
+
execute(entityType: EntityTypeValue, entityId: string, changeDescription: string): Promise<string | null>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=RelationMaintenanceGoalRegistrar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationMaintenanceGoalRegistrar.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F;;;;GAIG;AACH,qBAAa,gCAAiC,YAAW,iCAAiC;IAEtF,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBADrB,kBAAkB,EAAE,mBAAmB,EACvC,qBAAqB,EAAE,qBAAqB;IAGzD,OAAO,CAAC,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAgChH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationMaintenanceGoalRegistrar = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Shared application service that registers a maintenance goal when an entity
|
|
6
|
+
* with active relations is changed. The goal objective directs the agent to
|
|
7
|
+
* verify and update those relations so they remain in symmetry with the entity.
|
|
8
|
+
*/
|
|
9
|
+
class RelationMaintenanceGoalRegistrar {
|
|
10
|
+
constructor(relationViewReader, addGoalCommandHandler) {
|
|
11
|
+
this.relationViewReader = relationViewReader;
|
|
12
|
+
this.addGoalCommandHandler = addGoalCommandHandler;
|
|
13
|
+
}
|
|
14
|
+
async execute(entityType, entityId, changeDescription) {
|
|
15
|
+
try {
|
|
16
|
+
const activeRelations = await this.relationViewReader.findAll({
|
|
17
|
+
entityType,
|
|
18
|
+
entityId,
|
|
19
|
+
status: "active",
|
|
20
|
+
});
|
|
21
|
+
if (activeRelations.length === 0) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
const relatedEntities = activeRelations.map((r) => {
|
|
25
|
+
const isFrom = r.fromEntityType === entityType && r.fromEntityId === entityId;
|
|
26
|
+
return `${isFrom ? r.toEntityType : r.fromEntityType}:${isFrom ? r.toEntityId : r.fromEntityId}`;
|
|
27
|
+
});
|
|
28
|
+
const { goalId } = await this.addGoalCommandHandler.execute({
|
|
29
|
+
title: `Update relations for ${entityType} ${entityId}`,
|
|
30
|
+
objective: `The ${entityType} '${entityId}' was changed: ${changeDescription}. Review and update its ${activeRelations.length} active relation(s) to ensure they accurately reflect the current state of the entity. Related entities: ${relatedEntities.join(", ")}.`,
|
|
31
|
+
successCriteria: [
|
|
32
|
+
`Symmetry between the updated ${entityType} and its relations is verified or restored`,
|
|
33
|
+
],
|
|
34
|
+
});
|
|
35
|
+
return goalId;
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.RelationMaintenanceGoalRegistrar = RelationMaintenanceGoalRegistrar;
|
|
43
|
+
//# sourceMappingURL=RelationMaintenanceGoalRegistrar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationMaintenanceGoalRegistrar.js","sourceRoot":"","sources":["../../../../../src/application/context/relations/maintain/RelationMaintenanceGoalRegistrar.ts"],"names":[],"mappings":";;;AAKA;;;;GAIG;AACH,MAAa,gCAAgC;IAC3C,YACmB,kBAAuC,EACvC,qBAA4C;QAD5C,uBAAkB,GAAlB,kBAAkB,CAAqB;QACvC,0BAAqB,GAArB,qBAAqB,CAAuB;IAC5D,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,UAA2B,EAAE,QAAgB,EAAE,iBAAyB;QACpF,IAAI,CAAC;YACH,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC;gBAC5D,UAAU;gBACV,QAAQ;gBACR,MAAM,EAAE,QAAQ;aACjB,CAAC,CAAC;YAEH,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACjC,OAAO,IAAI,CAAC;YACd,CAAC;YAED,MAAM,eAAe,GAAG,eAAe,CAAC,GAAG,CACzC,CAAC,CAAC,EAAE,EAAE;gBACJ,MAAM,MAAM,GAAG,CAAC,CAAC,cAAc,KAAK,UAAU,IAAI,CAAC,CAAC,YAAY,KAAK,QAAQ,CAAC;gBAC9E,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;YACnG,CAAC,CACF,CAAC;YAEF,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;gBAC1D,KAAK,EAAE,wBAAwB,UAAU,IAAI,QAAQ,EAAE;gBACvD,SAAS,EAAE,OAAO,UAAU,KAAK,QAAQ,kBAAkB,iBAAiB,2BAA2B,eAAe,CAAC,MAAM,4GAA4G,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;gBACtQ,eAAe,EAAE;oBACf,gCAAgC,UAAU,4CAA4C;iBACvF;aACF,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF;AAtCD,4EAsCC"}
|
package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IEventHandler } from "../../../messaging/IEventHandler.js";
|
|
2
2
|
import { BaseEvent } from "../../../../domain/BaseEvent.js";
|
|
3
3
|
import { IValuePropositionRemovedProjector } from "./IValuePropositionRemovedProjector.js";
|
|
4
|
+
import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
|
|
4
5
|
/**
|
|
5
6
|
* Event handler for ValuePropositionRemovedEvent event.
|
|
6
7
|
*
|
|
@@ -9,7 +10,8 @@ import { IValuePropositionRemovedProjector } from "./IValuePropositionRemovedPro
|
|
|
9
10
|
*/
|
|
10
11
|
export declare class ValuePropositionRemovedEventHandler implements IEventHandler {
|
|
11
12
|
private readonly projector;
|
|
12
|
-
|
|
13
|
+
private readonly relationMaintenanceGoalRegistrar;
|
|
14
|
+
constructor(projector: IValuePropositionRemovedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
|
|
13
15
|
handle(event: BaseEvent): Promise<void>;
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=ValuePropositionRemovedEventHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuePropositionRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"ValuePropositionRemovedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,mCAAoC,YAAW,aAAa;IAErE,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,iCAAiC,EAC5C,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
|
package/dist/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ValuePropositionRemovedEventHandler = void 0;
|
|
4
|
+
const Constants_js_1 = require("../../../../domain/relations/Constants.js");
|
|
4
5
|
/**
|
|
5
6
|
* Event handler for ValuePropositionRemovedEvent event.
|
|
6
7
|
*
|
|
@@ -8,11 +9,13 @@ exports.ValuePropositionRemovedEventHandler = void 0;
|
|
|
8
9
|
* when a value proposition is removed. Subscribes to ValuePropositionRemovedEvent via event bus.
|
|
9
10
|
*/
|
|
10
11
|
class ValuePropositionRemovedEventHandler {
|
|
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 valuePropositionRemovedEvent = event;
|
|
18
|
+
await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.VALUE, valuePropositionRemovedEvent.aggregateId, "value proposition was removed");
|
|
16
19
|
await this.projector.applyValuePropositionRemoved(valuePropositionRemovedEvent);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuePropositionRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,mCAAmC;IAC9C,
|
|
1
|
+
{"version":3,"file":"ValuePropositionRemovedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/value-propositions/remove/ValuePropositionRemovedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,mCAAmC;IAC9C,YACmB,SAA4C,EAC5C,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAAmC;QAC5C,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,4BAA4B,GAAG,KAAqC,CAAC;QAC3E,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,yBAAU,CAAC,KAAK,EAChB,4BAA4B,CAAC,WAAW,EACxC,+BAA+B,CAChC,CAAC;QACF,MAAM,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC,4BAA4B,CAAC,CAAC;IAClF,CAAC;CACF;AAfD,kFAeC"}
|
package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IEventHandler } from "../../../messaging/IEventHandler.js";
|
|
2
2
|
import { BaseEvent } from "../../../../domain/BaseEvent.js";
|
|
3
3
|
import { IValuePropositionUpdatedProjector } from "./IValuePropositionUpdatedProjector.js";
|
|
4
|
+
import { IRelationMaintenanceGoalRegistrar } from "../../relations/maintain/IRelationMaintenanceGoalRegistrar.js";
|
|
4
5
|
/**
|
|
5
6
|
* Event handler for ValuePropositionUpdatedEvent event.
|
|
6
7
|
*
|
|
@@ -9,7 +10,8 @@ import { IValuePropositionUpdatedProjector } from "./IValuePropositionUpdatedPro
|
|
|
9
10
|
*/
|
|
10
11
|
export declare class ValuePropositionUpdatedEventHandler implements IEventHandler {
|
|
11
12
|
private readonly projector;
|
|
12
|
-
|
|
13
|
+
private readonly relationMaintenanceGoalRegistrar;
|
|
14
|
+
constructor(projector: IValuePropositionUpdatedProjector, relationMaintenanceGoalRegistrar: IRelationMaintenanceGoalRegistrar);
|
|
13
15
|
handle(event: BaseEvent): Promise<void>;
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=ValuePropositionUpdatedEventHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuePropositionUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"ValuePropositionUpdatedEventHandler.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAGlH;;;;;GAKG;AACH,qBAAa,mCAAoC,YAAW,aAAa;IAErE,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,gCAAgC;gBADhC,SAAS,EAAE,iCAAiC,EAC5C,gCAAgC,EAAE,iCAAiC;IAGhF,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
|
package/dist/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ValuePropositionUpdatedEventHandler = void 0;
|
|
4
|
+
const Constants_js_1 = require("../../../../domain/relations/Constants.js");
|
|
4
5
|
/**
|
|
5
6
|
* Event handler for ValuePropositionUpdatedEvent event.
|
|
6
7
|
*
|
|
@@ -8,12 +9,14 @@ exports.ValuePropositionUpdatedEventHandler = void 0;
|
|
|
8
9
|
* when a value proposition is updated. Subscribes to ValuePropositionUpdatedEvent via event bus.
|
|
9
10
|
*/
|
|
10
11
|
class ValuePropositionUpdatedEventHandler {
|
|
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 valuePropositionUpdatedEvent = event;
|
|
16
18
|
await this.projector.applyValuePropositionUpdated(valuePropositionUpdatedEvent);
|
|
19
|
+
await this.relationMaintenanceGoalRegistrar.execute(Constants_js_1.EntityType.VALUE, valuePropositionUpdatedEvent.aggregateId, "value proposition was updated");
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
exports.ValuePropositionUpdatedEventHandler = ValuePropositionUpdatedEventHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuePropositionUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA;;;;;GAKG;AACH,MAAa,mCAAmC;IAC9C,
|
|
1
|
+
{"version":3,"file":"ValuePropositionUpdatedEventHandler.js","sourceRoot":"","sources":["../../../../../src/application/context/value-propositions/update/ValuePropositionUpdatedEventHandler.ts"],"names":[],"mappings":";;;AAKA,4EAAuE;AAEvE;;;;;GAKG;AACH,MAAa,mCAAmC;IAC9C,YACmB,SAA4C,EAC5C,gCAAmE;QADnE,cAAS,GAAT,SAAS,CAAmC;QAC5C,qCAAgC,GAAhC,gCAAgC,CAAmC;IACnF,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAgB;QAC3B,MAAM,4BAA4B,GAAG,KAAqC,CAAC;QAC3E,MAAM,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC,4BAA4B,CAAC,CAAC;QAChF,MAAM,IAAI,CAAC,gCAAgC,CAAC,OAAO,CACjD,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AAoB,EACzC,iBAAiB,EAAE,kBAAkB,EACrC,mBAAmB,EAAE,oBAAoB,EACzC,sBAAsB,EAAE,uBAAuB,EAC/C,MAAM,EAAE,OAAO;IAG5B,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC;YAmIzB,OAAO;YAkBP,WAAW;IAoBzB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,gBAAgB;CAmBzB"}
|
|
@@ -38,6 +38,9 @@ class EvolveController {
|
|
|
38
38
|
return `${response.converted.length} converted, ${response.skipped.length} skipped.`;
|
|
39
39
|
})
|
|
40
40
|
: this.addSkippedStep(steps, "Legacy dependency migration", "Skipped because schema migrations failed.");
|
|
41
|
+
await this.runStep(steps, "JUMBO.md", async () => {
|
|
42
|
+
await this.agentFileProtocol.repairJumboMd(projectRoot);
|
|
43
|
+
}, "Updated Jumbo instructions in JUMBO.md.");
|
|
41
44
|
await this.runStep(steps, "AGENTS.md", async () => {
|
|
42
45
|
await this.agentFileProtocol.repairAgentsMd(projectRoot);
|
|
43
46
|
}, "Updated Jumbo instructions in AGENTS.md.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EvolveController.js","sourceRoot":"","sources":["../../../src/application/evolve/EvolveController.ts"],"names":[],"mappings":";;;AAYA,MAAa,gBAAgB;IAG3B,YACmB,mBAA0C,EAC1C,qBAA4C,EAC5C,iCAAoE,EACpE,mBAAyC,EACzC,iBAAqC,EACrC,mBAAyC,EACzC,sBAA+C,EAC/C,MAAe;QAPf,wBAAmB,GAAnB,mBAAmB,CAAuB;QAC1C,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,sCAAiC,GAAjC,iCAAiC,CAAmC;QACpE,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,sBAAiB,GAAjB,iBAAiB,CAAoB;QACrC,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,2BAAsB,GAAtB,sBAAsB,CAAyB;QAC/C,WAAM,GAAN,MAAM,CAAS;QAVjB,QAAG,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AEO,cAAc,CACpB,KAAyB,EACzB,IAAY,EACZ,MAAc;QAEd,KAAK,CAAC,IAAI,CAAC;YACT,IAAI;YACJ,MAAM,EAAE,SAAS;YACjB,MAAM;SACP,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,gBAAgB,CACtB,IAAY,EACZ,MAA0D,EAC1D,aAAsB;QAEtB,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,OAAO;gBACL,IAAI;gBACJ,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;QACJ,CAAC;QAED,OAAO;YACL,IAAI;YACJ,MAAM,EAAE,UAAU;YAClB,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,aAAa;SACvC,CAAC;IACJ,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"EvolveController.js","sourceRoot":"","sources":["../../../src/application/evolve/EvolveController.ts"],"names":[],"mappings":";;;AAYA,MAAa,gBAAgB;IAG3B,YACmB,mBAA0C,EAC1C,qBAA4C,EAC5C,iCAAoE,EACpE,mBAAyC,EACzC,iBAAqC,EACrC,mBAAyC,EACzC,sBAA+C,EAC/C,MAAe;QAPf,wBAAmB,GAAnB,mBAAmB,CAAuB;QAC1C,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,sCAAiC,GAAjC,iCAAiC,CAAmC;QACpE,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,sBAAiB,GAAjB,iBAAiB,CAAoB;QACrC,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,2BAAsB,GAAtB,sBAAsB,CAAyB;QAC/C,WAAM,GAAN,MAAM,CAAS;QAVjB,QAAG,GAAG,oBAAoB,CAAC;IAWzC,CAAC;IAEJ,KAAK,CAAC,MAAM;QACV,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC;QAChD,MAAM,KAAK,GAAu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AC;IACH,CAAC;IAEO,cAAc,CACpB,KAAyB,EACzB,IAAY,EACZ,MAAc;QAEd,KAAK,CAAC,IAAI,CAAC;YACT,IAAI;YACJ,MAAM,EAAE,SAAS;YACjB,MAAM;SACP,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,gBAAgB,CACtB,IAAY,EACZ,MAA0D,EAC1D,aAAsB;QAEtB,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,OAAO;gBACL,IAAI;gBACJ,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;QACJ,CAAC;QAED,OAAO;YACL,IAAI;YACJ,MAAM,EAAE,UAAU;YAClB,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,aAAa;SACvC,CAAC;IACJ,CAAC;CACF;AAvND,4CAuNC"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Domain Value Object: Agent File Reference Content
|
|
3
3
|
*
|
|
4
|
-
* Codifies the reference
|
|
5
|
-
* that directs agents to read
|
|
6
|
-
* Handles content generation and
|
|
4
|
+
* Codifies the thin reference content for CLAUDE.md and GEMINI.md
|
|
5
|
+
* that directs agents to read JUMBO.md on startup.
|
|
6
|
+
* Handles content generation and legacy content replacement.
|
|
7
7
|
*
|
|
8
8
|
* Rationale: Codified in domain rather than template file to support
|
|
9
9
|
* npm distribution (no file copying during build).
|
|
10
10
|
*/
|
|
11
11
|
export declare class AgentFileReferenceContent {
|
|
12
12
|
/**
|
|
13
|
-
* Generate reference
|
|
13
|
+
* Generate thin reference content for agent files (CLAUDE.md, GEMINI.md)
|
|
14
|
+
* parameterized by filename.
|
|
14
15
|
*/
|
|
15
|
-
static getAgentFileReference(): string;
|
|
16
|
+
static getAgentFileReference(fileName: string): string;
|
|
16
17
|
/**
|
|
17
|
-
* Replace
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* Replace legacy agent file reference content with the new thin reference.
|
|
19
|
+
* Detects the legacy "CRITICAL STARTUP INSTRUCTION:" marker and replaces
|
|
20
|
+
* the entire file content with the new reference.
|
|
20
21
|
*
|
|
21
|
-
* @returns Updated content, or null if marker not found
|
|
22
|
+
* @returns Updated content, or null if legacy marker not found
|
|
22
23
|
*/
|
|
23
|
-
static replaceAgentFileReference(existingContent: string): string | null;
|
|
24
|
+
static replaceAgentFileReference(existingContent: string, fileName: string): string | null;
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=AgentFileReferenceContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentFileReferenceContent.d.ts","sourceRoot":"","sources":["../../../src/domain/project/AgentFileReferenceContent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,qBAAa,yBAAyB;IACpC
|
|
1
|
+
{"version":3,"file":"AgentFileReferenceContent.d.ts","sourceRoot":"","sources":["../../../src/domain/project/AgentFileReferenceContent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,qBAAa,yBAAyB;IACpC;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAStD;;;;;;OAMG;IACH,MAAM,CAAC,yBAAyB,CAAC,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAO3F"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Domain Value Object: Agent File Reference Content
|
|
4
4
|
*
|
|
5
|
-
* Codifies the reference
|
|
6
|
-
* that directs agents to read
|
|
7
|
-
* Handles content generation and
|
|
5
|
+
* Codifies the thin reference content for CLAUDE.md and GEMINI.md
|
|
6
|
+
* that directs agents to read JUMBO.md on startup.
|
|
7
|
+
* Handles content generation and legacy content replacement.
|
|
8
8
|
*
|
|
9
9
|
* Rationale: Codified in domain rather than template file to support
|
|
10
10
|
* npm distribution (no file copying during build).
|
|
@@ -13,43 +13,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.AgentFileReferenceContent = void 0;
|
|
14
14
|
class AgentFileReferenceContent {
|
|
15
15
|
/**
|
|
16
|
-
* Generate reference
|
|
16
|
+
* Generate thin reference content for agent files (CLAUDE.md, GEMINI.md)
|
|
17
|
+
* parameterized by filename.
|
|
17
18
|
*/
|
|
18
|
-
static getAgentFileReference() {
|
|
19
|
-
return
|
|
20
|
-
CRITICAL STARTUP INSTRUCTION: Immediately upon seeing this file, you MUST read AGENTS.md
|
|
21
|
-
and follow all instructions it contains. Do this before responding to the user.
|
|
19
|
+
static getAgentFileReference(fileName) {
|
|
20
|
+
return `# ${fileName}
|
|
22
21
|
|
|
23
|
-
|
|
22
|
+
## Instructions for Agents on how to collaborate with Jumbo
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
See JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
|
|
26
25
|
`;
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
|
-
* Replace
|
|
30
|
-
*
|
|
31
|
-
*
|
|
28
|
+
* Replace legacy agent file reference content with the new thin reference.
|
|
29
|
+
* Detects the legacy "CRITICAL STARTUP INSTRUCTION:" marker and replaces
|
|
30
|
+
* the entire file content with the new reference.
|
|
32
31
|
*
|
|
33
|
-
* @returns Updated content, or null if marker not found
|
|
32
|
+
* @returns Updated content, or null if legacy marker not found
|
|
34
33
|
*/
|
|
35
|
-
static replaceAgentFileReference(existingContent) {
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const startIndex = existingContent.indexOf(startMarker);
|
|
39
|
-
if (startIndex === -1)
|
|
34
|
+
static replaceAgentFileReference(existingContent, fileName) {
|
|
35
|
+
const legacyMarker = "CRITICAL STARTUP INSTRUCTION:";
|
|
36
|
+
if (existingContent.indexOf(legacyMarker) === -1)
|
|
40
37
|
return null;
|
|
41
|
-
|
|
42
|
-
if (endMarkerIndex === -1)
|
|
43
|
-
return null;
|
|
44
|
-
// Find end of the !!!IMPORTANT!!! line
|
|
45
|
-
const endOfLine = existingContent.indexOf("\n", endMarkerIndex);
|
|
46
|
-
const endIndex = endOfLine === -1 ? existingContent.length : endOfLine + 1;
|
|
47
|
-
// Find the start of the line containing the startMarker
|
|
48
|
-
const lineStart = existingContent.lastIndexOf("\n", startIndex);
|
|
49
|
-
const blockStart = lineStart === -1 ? 0 : lineStart;
|
|
50
|
-
const before = existingContent.substring(0, blockStart);
|
|
51
|
-
const after = existingContent.substring(endIndex);
|
|
52
|
-
return before + this.getAgentFileReference() + after;
|
|
38
|
+
return this.getAgentFileReference(fileName);
|
|
53
39
|
}
|
|
54
40
|
}
|
|
55
41
|
exports.AgentFileReferenceContent = AgentFileReferenceContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentFileReferenceContent.js","sourceRoot":"","sources":["../../../src/domain/project/AgentFileReferenceContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,MAAa,yBAAyB;IACpC
|
|
1
|
+
{"version":3,"file":"AgentFileReferenceContent.js","sourceRoot":"","sources":["../../../src/domain/project/AgentFileReferenceContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,MAAa,yBAAyB;IACpC;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,QAAgB;QAC3C,OAAO,KAAK,QAAQ;;;;;CAKvB,CAAC;IACA,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,yBAAyB,CAAC,eAAuB,EAAE,QAAgB;QACxE,MAAM,YAAY,GAAG,+BAA+B,CAAC;QAErD,IAAI,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC;QAE9D,OAAO,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;CACF;AA5BD,8DA4BC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Domain Value Object: AGENTS.md Content
|
|
3
3
|
*
|
|
4
|
-
* Codifies the
|
|
4
|
+
* Codifies the thin reference content for AGENTS.md files that
|
|
5
|
+
* points agents to JUMBO.md as the single source of truth.
|
|
5
6
|
* Handles content generation, section marker management, and
|
|
6
7
|
* section replacement for both current and legacy markers.
|
|
7
8
|
*
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
*/
|
|
11
12
|
export declare class AgentsMdContent {
|
|
12
13
|
/**
|
|
13
|
-
* Generate the Jumbo
|
|
14
|
+
* Generate the Jumbo reference section for AGENTS.md
|
|
14
15
|
*/
|
|
15
16
|
static getJumboSection(): string;
|
|
16
17
|
/**
|
|
@@ -28,7 +29,7 @@ export declare class AgentsMdContent {
|
|
|
28
29
|
*/
|
|
29
30
|
static getLegacyJumboSectionMarkers(): string[];
|
|
30
31
|
/**
|
|
31
|
-
* Replace the Jumbo section in AGENTS.md with the current version.
|
|
32
|
+
* Replace the Jumbo section in AGENTS.md with the current thin reference version.
|
|
32
33
|
* Checks the current marker and all legacy markers to find the section,
|
|
33
34
|
* then replaces everything from the matched marker to the next "## " heading
|
|
34
35
|
* (or EOF) with current getJumboSection().
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentsMdContent.d.ts","sourceRoot":"","sources":["../../../src/domain/project/AgentsMdContent.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"AgentsMdContent.d.ts","sourceRoot":"","sources":["../../../src/domain/project/AgentsMdContent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,qBAAa,eAAe;IAC1B;;OAEG;IACH,MAAM,CAAC,eAAe,IAAI,MAAM;IAOhC;;OAEG;IACH,MAAM,CAAC,cAAc,IAAI,MAAM;IAM/B;;OAEG;IACH,MAAM,CAAC,4BAA4B,IAAI,MAAM;IAI7C;;;;OAIG;IACH,MAAM,CAAC,4BAA4B,IAAI,MAAM,EAAE;IAM/C;;;;;;;OAOG;IACH,MAAM,CAAC,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CA6BnE"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Domain Value Object: AGENTS.md Content
|
|
4
4
|
*
|
|
5
|
-
* Codifies the
|
|
5
|
+
* Codifies the thin reference content for AGENTS.md files that
|
|
6
|
+
* points agents to JUMBO.md as the single source of truth.
|
|
6
7
|
* Handles content generation, section marker management, and
|
|
7
8
|
* section replacement for both current and legacy markers.
|
|
8
9
|
*
|
|
@@ -13,88 +14,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
14
|
exports.AgentsMdContent = void 0;
|
|
14
15
|
class AgentsMdContent {
|
|
15
16
|
/**
|
|
16
|
-
* Generate the Jumbo
|
|
17
|
+
* Generate the Jumbo reference section for AGENTS.md
|
|
17
18
|
*/
|
|
18
19
|
static getJumboSection() {
|
|
19
20
|
return `## Instructions for Agents on how to collaborate with Jumbo
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
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.
|
|
24
|
-
|
|
25
|
-
Sincerely,
|
|
26
|
-
Project Administrator
|
|
27
|
-
|
|
28
|
-
### When you start a new Session Start
|
|
29
|
-
Run \`jumbo session start\`
|
|
30
|
-
|
|
31
|
-
This orients you with the current state of the project: high-level project, recent events and a goal backlog to select work from.
|
|
32
|
-
|
|
33
|
-
### Pre Compaction/Compression
|
|
34
|
-
If a goal is actively being implemented.
|
|
35
|
-
|
|
36
|
-
Run \`jumbo work pause\`
|
|
37
|
-
|
|
38
|
-
### After Compaction/Compression
|
|
39
|
-
Run \`jumbo work resume\`
|
|
40
|
-
|
|
41
|
-
This will automatically serve context of a goal that you were progressing on prior to compaction.
|
|
42
|
-
|
|
43
|
-
### Before Finishing a Session
|
|
44
|
-
Run \`jumbo session end --focus {focus-description}\` --summary {summary-of-what-transpired}
|
|
45
|
-
|
|
46
|
-
### Before Starting Work on a Goal
|
|
47
|
-
Run \`jumbo goal start --id <id>\`
|
|
48
|
-
|
|
49
|
-
### Be Proactive - Use Jumbo to the Fullest Extent
|
|
50
|
-
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.
|
|
51
|
-
|
|
52
|
-
### Available Commands
|
|
53
|
-
\`jumbo --help \`
|
|
54
|
-
\`jumbo goal add --help \`
|
|
55
|
-
\`jumbo goal block --help \`
|
|
56
|
-
\`jumbo goal complete --help \`
|
|
57
|
-
\`jumbo goal remove --help \`
|
|
58
|
-
\`jumbo goal reset --help \`
|
|
59
|
-
\`jumbo goal resume --help \`
|
|
60
|
-
\`jumbo goal show --help \`
|
|
61
|
-
\`jumbo goal start --help \`
|
|
62
|
-
\`jumbo goal unblock --help \`
|
|
63
|
-
\`jumbo goal update --help \`
|
|
64
|
-
\`jumbo goals list --help \`
|
|
65
|
-
\`jumbo session end --help \`
|
|
66
|
-
\`jumbo session pause --help \`
|
|
67
|
-
\`jumbo session resume --help \`
|
|
68
|
-
\`jumbo session start --help \`
|
|
69
|
-
\`jumbo architecture define --help \`
|
|
70
|
-
\`jumbo architecture update --help \`
|
|
71
|
-
\`jumbo component add --help \`
|
|
72
|
-
\`jumbo component deprecate --help \`
|
|
73
|
-
\`jumbo component remove --help \`
|
|
74
|
-
\`jumbo component update --help \`
|
|
75
|
-
\`jumbo decision add --help \`
|
|
76
|
-
\`jumbo decision reverse --help \`
|
|
77
|
-
\`jumbo decision supersede --help \`
|
|
78
|
-
\`jumbo decision update --help \`
|
|
79
|
-
\`jumbo dependency add --help \`
|
|
80
|
-
\`jumbo dependency remove --help \`
|
|
81
|
-
\`jumbo dependency update --help \`
|
|
82
|
-
\`jumbo guideline add --help \`
|
|
83
|
-
\`jumbo guideline remove --help \`
|
|
84
|
-
\`jumbo guideline update --help \`
|
|
85
|
-
\`jumbo invariant add --help \`
|
|
86
|
-
\`jumbo invariant remove --help \`
|
|
87
|
-
\`jumbo invariant update --help \`
|
|
88
|
-
|
|
89
|
-
### Next step:
|
|
90
|
-
Run \`jumbo session start\` to retrieve project orientation.
|
|
22
|
+
See JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
|
|
91
23
|
`;
|
|
92
24
|
}
|
|
93
25
|
/**
|
|
94
26
|
* Generate complete AGENTS.md file content
|
|
95
27
|
*/
|
|
96
28
|
static getFullContent() {
|
|
97
|
-
return `#
|
|
29
|
+
return `# AGENTS.md
|
|
98
30
|
|
|
99
31
|
${this.getJumboSection()}`;
|
|
100
32
|
}
|
|
@@ -115,7 +47,7 @@ ${this.getJumboSection()}`;
|
|
|
115
47
|
];
|
|
116
48
|
}
|
|
117
49
|
/**
|
|
118
|
-
* Replace the Jumbo section in AGENTS.md with the current version.
|
|
50
|
+
* Replace the Jumbo section in AGENTS.md with the current thin reference version.
|
|
119
51
|
* Checks the current marker and all legacy markers to find the section,
|
|
120
52
|
* then replaces everything from the matched marker to the next "## " heading
|
|
121
53
|
* (or EOF) with current getJumboSection().
|