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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Infrastructure: Claude Code Configurer
|
|
4
4
|
*
|
|
5
5
|
* Encapsulates all knowledge about Claude Code configuration:
|
|
6
|
-
* - CLAUDE.md with reference to
|
|
6
|
+
* - CLAUDE.md with thin reference to JUMBO.md
|
|
7
7
|
* - .claude/settings.json with SessionStart hooks
|
|
8
8
|
*
|
|
9
9
|
* Use this as a reference when creating new agent Configurers.
|
|
@@ -31,23 +31,22 @@ class ClaudeConfigurer {
|
|
|
31
31
|
await this.ensureClaudeSettings(projectRoot);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Ensure CLAUDE.md exists with reference to
|
|
34
|
+
* Ensure CLAUDE.md exists with thin reference to JUMBO.md
|
|
35
35
|
*/
|
|
36
36
|
async ensureClaudeMd(projectRoot) {
|
|
37
37
|
const claudeMdPath = path_1.default.join(projectRoot, "CLAUDE.md");
|
|
38
|
-
const reference = AgentFileReferenceContent_js_1.AgentFileReferenceContent.getAgentFileReference();
|
|
38
|
+
const reference = AgentFileReferenceContent_js_1.AgentFileReferenceContent.getAgentFileReference("CLAUDE.md");
|
|
39
39
|
try {
|
|
40
40
|
const exists = await fs_extra_1.default.pathExists(claudeMdPath);
|
|
41
41
|
if (!exists) {
|
|
42
|
-
|
|
43
|
-
await fs_extra_1.default.writeFile(claudeMdPath, reference.trim() + "\n", "utf-8");
|
|
42
|
+
await fs_extra_1.default.writeFile(claudeMdPath, reference, "utf-8");
|
|
44
43
|
return;
|
|
45
44
|
}
|
|
46
45
|
// File exists - check if reference is present
|
|
47
46
|
const content = await fs_extra_1.default.readFile(claudeMdPath, "utf-8");
|
|
48
|
-
if (!content.includes("
|
|
47
|
+
if (!content.includes("JUMBO.md")) {
|
|
49
48
|
// Reference missing - append it
|
|
50
|
-
const updatedContent = content.trimEnd() + "\n" + reference;
|
|
49
|
+
const updatedContent = content.trimEnd() + "\n\n" + reference;
|
|
51
50
|
await fs_extra_1.default.writeFile(claudeMdPath, updatedContent, "utf-8");
|
|
52
51
|
}
|
|
53
52
|
// else: Reference already present - no-op
|
|
@@ -117,26 +116,26 @@ class ClaudeConfigurer {
|
|
|
117
116
|
await this.ensureClaudeSettings(projectRoot);
|
|
118
117
|
}
|
|
119
118
|
/**
|
|
120
|
-
* Repair CLAUDE.md by replacing the reference
|
|
119
|
+
* Repair CLAUDE.md by replacing the reference with the current thin reference
|
|
121
120
|
*/
|
|
122
121
|
async repairClaudeMd(projectRoot) {
|
|
123
122
|
const claudeMdPath = path_1.default.join(projectRoot, "CLAUDE.md");
|
|
124
|
-
const reference = AgentFileReferenceContent_js_1.AgentFileReferenceContent.getAgentFileReference();
|
|
123
|
+
const reference = AgentFileReferenceContent_js_1.AgentFileReferenceContent.getAgentFileReference("CLAUDE.md");
|
|
125
124
|
try {
|
|
126
125
|
const exists = await fs_extra_1.default.pathExists(claudeMdPath);
|
|
127
126
|
if (!exists) {
|
|
128
|
-
await fs_extra_1.default.writeFile(claudeMdPath, reference
|
|
127
|
+
await fs_extra_1.default.writeFile(claudeMdPath, reference, "utf-8");
|
|
129
128
|
return;
|
|
130
129
|
}
|
|
131
130
|
const content = await fs_extra_1.default.readFile(claudeMdPath, "utf-8");
|
|
132
|
-
const replaced = AgentFileReferenceContent_js_1.AgentFileReferenceContent.replaceAgentFileReference(content);
|
|
131
|
+
const replaced = AgentFileReferenceContent_js_1.AgentFileReferenceContent.replaceAgentFileReference(content, "CLAUDE.md");
|
|
133
132
|
if (replaced !== null) {
|
|
134
|
-
//
|
|
133
|
+
// Legacy reference block found - replace entire file with new thin reference
|
|
135
134
|
await fs_extra_1.default.writeFile(claudeMdPath, replaced, "utf-8");
|
|
136
135
|
}
|
|
137
|
-
else if (!content.includes("
|
|
136
|
+
else if (!content.includes("JUMBO.md")) {
|
|
138
137
|
// No reference at all - append
|
|
139
|
-
const updatedContent = content.trimEnd() + "\n" + reference;
|
|
138
|
+
const updatedContent = content.trimEnd() + "\n\n" + reference;
|
|
140
139
|
await fs_extra_1.default.writeFile(claudeMdPath, updatedContent, "utf-8");
|
|
141
140
|
}
|
|
142
141
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClaudeConfigurer.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/ClaudeConfigurer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;AAEH,gDAAwB;AACxB,wDAA0B;AAC1B,0GAAoG;AACpG,+EAAyE;AAIzE,MAAa,gBAAgB;IAC3B;;;;OAIG;IACH,KAAK,CAAC,SAAS,CAAC,WAAmB;QACjC,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACvC,MAAM,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,cAAc,CAAC,WAAmB;QAC9C,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,wDAAyB,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ClaudeConfigurer.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/ClaudeConfigurer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;AAEH,gDAAwB;AACxB,wDAA0B;AAC1B,0GAAoG;AACpG,+EAAyE;AAIzE,MAAa,gBAAgB;IAC3B;;;;OAIG;IACH,KAAK,CAAC,SAAS,CAAC,WAAmB;QACjC,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACvC,MAAM,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,cAAc,CAAC,WAAmB;QAC9C,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,wDAAyB,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;QAE/E,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,kBAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YAEjD,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,kBAAE,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;gBACrD,OAAO;YACT,CAAC;YAED,8CAA8C;YAC9C,MAAM,OAAO,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAEzD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;gBAClC,gCAAgC;gBAChC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;gBAC9D,MAAM,kBAAE,CAAC,SAAS,CAAC,YAAY,EA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,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CACV,wCAAwC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CACjG,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,qBAAqB,CAAC,WAAmB;QAC7C,MAAM,OAAO,GAAwB,EAAE,CAAC;QAExC,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACzD,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,CAAC,MAAM,kBAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;YACjE,WAAW,EAAE,wBAAwB;SACtC,CAAC,CAAC;QAEH,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,uBAAuB,CAAC,CAAC;QACrE,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EAAE,CAAC,MAAM,kBAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;YACjE,WAAW,EAAE,wCAAwC;SACtD,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAjKD,4CAiKC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Infrastructure: GitHub Copilot Configurer
|
|
3
3
|
*
|
|
4
4
|
* Encapsulates all knowledge about GitHub Copilot configuration:
|
|
5
|
-
* - .github/copilot-instructions.md with
|
|
5
|
+
* - .github/copilot-instructions.md with thin reference to JUMBO.md
|
|
6
6
|
*
|
|
7
7
|
* Note: Copilot does not support SessionStart hooks, so configuration
|
|
8
8
|
* is limited to static instruction files.
|
|
@@ -27,7 +27,7 @@ export declare class CopilotConfigurer implements IConfigurer {
|
|
|
27
27
|
*/
|
|
28
28
|
repair(projectRoot: string): Promise<void>;
|
|
29
29
|
/**
|
|
30
|
-
* Repair copilot-instructions.md by replacing the Jumbo section with current
|
|
30
|
+
* Repair copilot-instructions.md by replacing the Jumbo section with current thin reference
|
|
31
31
|
*/
|
|
32
32
|
private repairCopilotInstructions;
|
|
33
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotConfigurer.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CopilotConfigurer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AAEtG,qBAAa,iBAAkB,YAAW,WAAW;IACnD;;;;OAIG;IACG,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInD;;OAEG;YACW,yBAAyB;
|
|
1
|
+
{"version":3,"file":"CopilotConfigurer.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CopilotConfigurer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AAEtG,qBAAa,iBAAkB,YAAW,WAAW;IACnD;;;;OAIG;IACG,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInD;;OAEG;YACW,yBAAyB;IA6CvC;;OAEG;IACG,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhD;;OAEG;YACW,yBAAyB;IA2CvC;;OAEG;IACG,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAe/E"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Infrastructure: GitHub Copilot Configurer
|
|
4
4
|
*
|
|
5
5
|
* Encapsulates all knowledge about GitHub Copilot configuration:
|
|
6
|
-
* - .github/copilot-instructions.md with
|
|
6
|
+
* - .github/copilot-instructions.md with thin reference to JUMBO.md
|
|
7
7
|
*
|
|
8
8
|
* Note: Copilot does not support SessionStart hooks, so configuration
|
|
9
9
|
* is limited to static instruction files.
|
|
@@ -37,16 +37,20 @@ class CopilotConfigurer {
|
|
|
37
37
|
await fs_extra_1.default.ensureDir(path_1.default.join(projectRoot, ".github"));
|
|
38
38
|
const exists = await fs_extra_1.default.pathExists(copilotInstructionsPath);
|
|
39
39
|
if (!exists) {
|
|
40
|
-
// File doesn't exist - create with
|
|
40
|
+
// File doesn't exist - create with thin reference
|
|
41
41
|
await fs_extra_1.default.writeFile(copilotInstructionsPath, CopilotInstructionsContent_js_1.CopilotInstructionsContent.getCopilotInstructions(), "utf-8");
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
// File exists - check if Jumbo section is present
|
|
45
45
|
const content = await fs_extra_1.default.readFile(copilotInstructionsPath, "utf-8");
|
|
46
46
|
const jumboMarker = CopilotInstructionsContent_js_1.CopilotInstructionsContent.getCopilotSectionMarker();
|
|
47
|
-
if (!content.includes(jumboMarker)) {
|
|
48
|
-
// Jumbo section missing - append
|
|
49
|
-
const
|
|
47
|
+
if (!content.includes(jumboMarker) && !content.includes("## Jumbo Context Management")) {
|
|
48
|
+
// Jumbo section missing (neither current nor legacy) - append section
|
|
49
|
+
const sectionContent = `## Instructions for Agents on how to collaborate with Jumbo
|
|
50
|
+
|
|
51
|
+
See ../JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
|
|
52
|
+
`;
|
|
53
|
+
const updatedContent = content + "\n\n" + sectionContent;
|
|
50
54
|
await fs_extra_1.default.writeFile(copilotInstructionsPath, updatedContent, "utf-8");
|
|
51
55
|
}
|
|
52
56
|
// else: Jumbo section already present - no-op
|
|
@@ -63,7 +67,7 @@ class CopilotConfigurer {
|
|
|
63
67
|
await this.repairCopilotInstructions(projectRoot);
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
66
|
-
* Repair copilot-instructions.md by replacing the Jumbo section with current
|
|
70
|
+
* Repair copilot-instructions.md by replacing the Jumbo section with current thin reference
|
|
67
71
|
*/
|
|
68
72
|
async repairCopilotInstructions(projectRoot) {
|
|
69
73
|
const copilotInstructionsPath = path_1.default.join(projectRoot, ".github", "copilot-instructions.md");
|
|
@@ -77,12 +81,16 @@ class CopilotConfigurer {
|
|
|
77
81
|
const content = await fs_extra_1.default.readFile(copilotInstructionsPath, "utf-8");
|
|
78
82
|
const replaced = CopilotInstructionsContent_js_1.CopilotInstructionsContent.replaceCopilotSection(content);
|
|
79
83
|
if (replaced !== null) {
|
|
80
|
-
// Jumbo section found - replace with
|
|
84
|
+
// Jumbo section found (current or legacy) - replace with thin reference
|
|
81
85
|
await fs_extra_1.default.writeFile(copilotInstructionsPath, replaced, "utf-8");
|
|
82
86
|
}
|
|
83
87
|
else {
|
|
84
88
|
// Jumbo section not found - append
|
|
85
|
-
const
|
|
89
|
+
const sectionContent = `## Instructions for Agents on how to collaborate with Jumbo
|
|
90
|
+
|
|
91
|
+
See ../JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
|
|
92
|
+
`;
|
|
93
|
+
const updatedContent = content + "\n\n" + sectionContent;
|
|
86
94
|
await fs_extra_1.default.writeFile(copilotInstructionsPath, updatedContent, "utf-8");
|
|
87
95
|
}
|
|
88
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotConfigurer.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CopilotConfigurer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;AAEH,gDAAwB;AACxB,wDAA0B;AAC1B,4GAAsG;AAItG,MAAa,iBAAiB;IAC5B;;;;OAIG;IACH,KAAK,CAAC,SAAS,CAAC,WAAmB;QACjC,MAAM,IAAI,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,yBAAyB,CAAC,WAAmB;QACzD,MAAM,uBAAuB,GAAG,cAAI,CAAC,IAAI,CACvC,WAAW,EACX,SAAS,EACT,yBAAyB,CAC1B,CAAC;QAEF,IAAI,CAAC;YACH,kCAAkC;YAClC,MAAM,kBAAE,CAAC,SAAS,CAAC,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;YAEtD,MAAM,MAAM,GAAG,MAAM,kBAAE,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;YAE5D,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,
|
|
1
|
+
{"version":3,"file":"CopilotConfigurer.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CopilotConfigurer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;AAEH,gDAAwB;AACxB,wDAA0B;AAC1B,4GAAsG;AAItG,MAAa,iBAAiB;IAC5B;;;;OAIG;IACH,KAAK,CAAC,SAAS,CAAC,WAAmB;QACjC,MAAM,IAAI,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,yBAAyB,CAAC,WAAmB;QACzD,MAAM,uBAAuB,GAAG,cAAI,CAAC,IAAI,CACvC,WAAW,EACX,SAAS,EACT,yBAAyB,CAC1B,CAAC;QAEF,IAAI,CAAC;YACH,kCAAkC;YAClC,MAAM,kBAAE,CAAC,SAAS,CAAC,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;YAEtD,MAAM,MAAM,GAAG,MAAM,kBAAE,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;YAE5D,IAAI,CAAC,MAAM,EAAE,CAAC;gBAC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MAAM,kBAAE,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;gBAC5E,WAAW,EAAE,wBAAwB;aACtC;SACF,CAAC;IACJ,CAAC;CACF;AAjID,8CAiIC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Infrastructure: Gemini CLI Configurer
|
|
3
3
|
*
|
|
4
4
|
* Encapsulates all knowledge about Gemini CLI configuration:
|
|
5
|
-
* - GEMINI.md with reference to
|
|
5
|
+
* - GEMINI.md with thin reference to JUMBO.md
|
|
6
6
|
* - .gemini/settings.json with SessionStart hooks
|
|
7
7
|
*
|
|
8
8
|
* Operations are idempotent and gracefully handle errors.
|
|
@@ -17,7 +17,7 @@ export declare class GeminiConfigurer implements IConfigurer {
|
|
|
17
17
|
*/
|
|
18
18
|
configure(projectRoot: string): Promise<void>;
|
|
19
19
|
/**
|
|
20
|
-
* Ensure GEMINI.md exists with reference to
|
|
20
|
+
* Ensure GEMINI.md exists with thin reference to JUMBO.md
|
|
21
21
|
*/
|
|
22
22
|
private ensureGeminiMd;
|
|
23
23
|
/**
|
|
@@ -29,7 +29,7 @@ export declare class GeminiConfigurer implements IConfigurer {
|
|
|
29
29
|
*/
|
|
30
30
|
repair(projectRoot: string): Promise<void>;
|
|
31
31
|
/**
|
|
32
|
-
* Repair GEMINI.md by replacing the reference
|
|
32
|
+
* Repair GEMINI.md by replacing the reference with the current thin reference
|
|
33
33
|
*/
|
|
34
34
|
private repairGeminiMd;
|
|
35
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeminiConfigurer.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/GeminiConfigurer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AAEtG,qBAAa,gBAAiB,YAAW,WAAW;IAClD;;;;OAIG;IACG,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKnD;;OAEG;YACW,cAAc;
|
|
1
|
+
{"version":3,"file":"GeminiConfigurer.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/GeminiConfigurer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AAEtG,qBAAa,gBAAiB,YAAW,WAAW;IAClD;;;;OAIG;IACG,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKnD;;OAEG;YACW,cAAc;IA6B5B;;OAEG;YACW,oBAAoB;IAoDlC;;OAEG;IACG,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKhD;;OAEG;YACW,cAAc;IA8B5B;;OAEG;IACG,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAmB/E"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Infrastructure: Gemini CLI Configurer
|
|
4
4
|
*
|
|
5
5
|
* Encapsulates all knowledge about Gemini CLI configuration:
|
|
6
|
-
* - GEMINI.md with reference to
|
|
6
|
+
* - GEMINI.md with thin reference to JUMBO.md
|
|
7
7
|
* - .gemini/settings.json with SessionStart hooks
|
|
8
8
|
*
|
|
9
9
|
* Operations are idempotent and gracefully handle errors.
|
|
@@ -28,23 +28,22 @@ class GeminiConfigurer {
|
|
|
28
28
|
await this.ensureGeminiSettings(projectRoot);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Ensure GEMINI.md exists with reference to
|
|
31
|
+
* Ensure GEMINI.md exists with thin reference to JUMBO.md
|
|
32
32
|
*/
|
|
33
33
|
async ensureGeminiMd(projectRoot) {
|
|
34
34
|
const geminiMdPath = path_1.default.join(projectRoot, "GEMINI.md");
|
|
35
|
-
const reference = AgentFileReferenceContent_js_1.AgentFileReferenceContent.getAgentFileReference();
|
|
35
|
+
const reference = AgentFileReferenceContent_js_1.AgentFileReferenceContent.getAgentFileReference("GEMINI.md");
|
|
36
36
|
try {
|
|
37
37
|
const exists = await fs_extra_1.default.pathExists(geminiMdPath);
|
|
38
38
|
if (!exists) {
|
|
39
|
-
|
|
40
|
-
await fs_extra_1.default.writeFile(geminiMdPath, reference.trim() + "\n", "utf-8");
|
|
39
|
+
await fs_extra_1.default.writeFile(geminiMdPath, reference, "utf-8");
|
|
41
40
|
return;
|
|
42
41
|
}
|
|
43
42
|
// File exists - check if reference is present
|
|
44
43
|
const content = await fs_extra_1.default.readFile(geminiMdPath, "utf-8");
|
|
45
|
-
if (!content.includes("
|
|
44
|
+
if (!content.includes("JUMBO.md")) {
|
|
46
45
|
// Reference missing - append it
|
|
47
|
-
const updatedContent = content.trimEnd() + "\n" + reference;
|
|
46
|
+
const updatedContent = content.trimEnd() + "\n\n" + reference;
|
|
48
47
|
await fs_extra_1.default.writeFile(geminiMdPath, updatedContent, "utf-8");
|
|
49
48
|
}
|
|
50
49
|
// else: Reference already present - no-op
|
|
@@ -114,26 +113,26 @@ class GeminiConfigurer {
|
|
|
114
113
|
await this.ensureGeminiSettings(projectRoot);
|
|
115
114
|
}
|
|
116
115
|
/**
|
|
117
|
-
* Repair GEMINI.md by replacing the reference
|
|
116
|
+
* Repair GEMINI.md by replacing the reference with the current thin reference
|
|
118
117
|
*/
|
|
119
118
|
async repairGeminiMd(projectRoot) {
|
|
120
119
|
const geminiMdPath = path_1.default.join(projectRoot, "GEMINI.md");
|
|
121
|
-
const reference = AgentFileReferenceContent_js_1.AgentFileReferenceContent.getAgentFileReference();
|
|
120
|
+
const reference = AgentFileReferenceContent_js_1.AgentFileReferenceContent.getAgentFileReference("GEMINI.md");
|
|
122
121
|
try {
|
|
123
122
|
const exists = await fs_extra_1.default.pathExists(geminiMdPath);
|
|
124
123
|
if (!exists) {
|
|
125
|
-
await fs_extra_1.default.writeFile(geminiMdPath, reference
|
|
124
|
+
await fs_extra_1.default.writeFile(geminiMdPath, reference, "utf-8");
|
|
126
125
|
return;
|
|
127
126
|
}
|
|
128
127
|
const content = await fs_extra_1.default.readFile(geminiMdPath, "utf-8");
|
|
129
|
-
const replaced = AgentFileReferenceContent_js_1.AgentFileReferenceContent.replaceAgentFileReference(content);
|
|
128
|
+
const replaced = AgentFileReferenceContent_js_1.AgentFileReferenceContent.replaceAgentFileReference(content, "GEMINI.md");
|
|
130
129
|
if (replaced !== null) {
|
|
131
|
-
//
|
|
130
|
+
// Legacy reference block found - replace entire file with new thin reference
|
|
132
131
|
await fs_extra_1.default.writeFile(geminiMdPath, replaced, "utf-8");
|
|
133
132
|
}
|
|
134
|
-
else if (!content.includes("
|
|
133
|
+
else if (!content.includes("JUMBO.md")) {
|
|
135
134
|
// No reference at all - append
|
|
136
|
-
const updatedContent = content.trimEnd() + "\n" + reference;
|
|
135
|
+
const updatedContent = content.trimEnd() + "\n\n" + reference;
|
|
137
136
|
await fs_extra_1.default.writeFile(geminiMdPath, updatedContent, "utf-8");
|
|
138
137
|
}
|
|
139
138
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeminiConfigurer.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/GeminiConfigurer.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;;;AAEH,gDAAwB;AACxB,wDAA0B;AAC1B,0GAAoG;AACpG,+EAAyE;AAIzE,MAAa,gBAAgB;IAC3B;;;;OAIG;IACH,KAAK,CAAC,SAAS,CAAC,WAAmB;QACjC,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACvC,MAAM,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,cAAc,CAAC,WAAmB;QAC9C,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,wDAAyB,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"GeminiConfigurer.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/GeminiConfigurer.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;;;AAEH,gDAAwB;AACxB,wDAA0B;AAC1B,0GAAoG;AACpG,+EAAyE;AAIzE,MAAa,gBAAgB;IAC3B;;;;OAIG;IACH,KAAK,CAAC,SAAS,CAAC,WAAmB;QACjC,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACvC,MAAM,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,cAAc,CAAC,WAAmB;QAC9C,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,wDAAyB,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;QAE/E,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,kBAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YAEjD,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,kBAAE,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;gBACrD,OAAO;YACT,CAAC;YAED,8CAA8C;YAC9C,MAAM,OAAO,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAEzD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;gBAClC,gCAAgC;gBAChC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,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BAAqB,EAAE,MAAM,iDAAiD,CAAC;AASxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"HostBuilder.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/host/HostBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AASxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AAyhBnF,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAoB;IACvC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAE1B;gBAGZ,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,QAAQ,CAAC,QAAQ,EACrB,uBAAuB,CAAC,EAAE,CAAC,eAAe,EAAE,gBAAgB,KAAK,IAAI;IAOvE;;;;;;;OAOG;IACG,KAAK,IAAI,OAAO,CAAC,qBAAqB,CAAC;CA+mD9C"}
|
|
@@ -397,6 +397,7 @@ const RelationDeactivationCascade_js_1 = require("../../application/context/rela
|
|
|
397
397
|
const RelationReactivatedEventHandler_js_1 = require("../../application/context/relations/reactivate/RelationReactivatedEventHandler.js");
|
|
398
398
|
const ReactivateRelationCommandHandler_js_1 = require("../../application/context/relations/reactivate/ReactivateRelationCommandHandler.js");
|
|
399
399
|
const RelationReactivationCascade_js_1 = require("../../application/context/relations/reactivate/RelationReactivationCascade.js");
|
|
400
|
+
const RelationMaintenanceGoalRegistrar_js_1 = require("../../application/context/relations/maintain/RelationMaintenanceGoalRegistrar.js");
|
|
400
401
|
const RelationRemovedEventHandler_js_1 = require("../../application/context/relations/remove/RelationRemovedEventHandler.js");
|
|
401
402
|
const RemoveRelationCommandHandler_js_1 = require("../../application/context/relations/remove/RemoveRelationCommandHandler.js");
|
|
402
403
|
const LocalRemoveRelationGateway_js_1 = require("../../application/context/relations/remove/LocalRemoveRelationGateway.js");
|
|
@@ -1029,7 +1030,7 @@ class HostBuilder {
|
|
|
1029
1030
|
const initializeProjectCommandHandler = new InitializeProjectCommandHandler_js_1.InitializeProjectCommandHandler(projectInitializedEventStore, eventBus, projectInitializedProjector, agentFileProtocol, settingsInitializer, gitignoreProtocol);
|
|
1030
1031
|
const localPlanProjectInitGateway = new LocalPlanProjectInitGateway_js_1.LocalPlanProjectInitGateway(agentFileProtocol, settingsInitializer, gitignoreProtocol);
|
|
1031
1032
|
const planProjectInitController = new PlanProjectInitController_js_1.PlanProjectInitController(localPlanProjectInitGateway);
|
|
1032
|
-
const localInitializeProjectGateway = new LocalInitializeProjectGateway_js_1.LocalInitializeProjectGateway(initializeProjectCommandHandler, localPlanProjectInitGateway);
|
|
1033
|
+
const localInitializeProjectGateway = new LocalInitializeProjectGateway_js_1.LocalInitializeProjectGateway(initializeProjectCommandHandler, localPlanProjectInitGateway, agentFileProtocol);
|
|
1033
1034
|
const initializeProjectController = new InitializeProjectController_js_1.InitializeProjectController(localInitializeProjectGateway);
|
|
1034
1035
|
// AddRelation Controller
|
|
1035
1036
|
const addRelationCommandHandler = new AddRelationCommandHandler_js_1.AddRelationCommandHandler(relationAddedEventStore, eventBus, relationAddedProjector);
|
|
@@ -1046,6 +1047,7 @@ class HostBuilder {
|
|
|
1046
1047
|
const relationDeactivationCascade = new RelationDeactivationCascade_js_1.RelationDeactivationCascade(relationViewReader, deactivateRelationCommandHandler);
|
|
1047
1048
|
const reactivateRelationCommandHandler = new ReactivateRelationCommandHandler_js_1.ReactivateRelationCommandHandler(relationReactivatedEventStore, relationReactivatedEventStore, eventBus, relationReactivatedProjector);
|
|
1048
1049
|
const relationReactivationCascade = new RelationReactivationCascade_js_1.RelationReactivationCascade(relationViewReader, reactivateRelationCommandHandler);
|
|
1050
|
+
const relationMaintenanceGoalRegistrar = new RelationMaintenanceGoalRegistrar_js_1.RelationMaintenanceGoalRegistrar(relationViewReader, addGoalCommandHandler);
|
|
1049
1051
|
const removeRelationGateway = new LocalRemoveRelationGateway_js_1.LocalRemoveRelationGateway(removeRelationCommandHandler, relationRemovedProjector);
|
|
1050
1052
|
const removeRelationController = new RemoveRelationController_js_1.RemoveRelationController(removeRelationGateway);
|
|
1051
1053
|
// GetRelations Controller
|
|
@@ -1059,7 +1061,7 @@ class HostBuilder {
|
|
|
1059
1061
|
const sessionEndedEventHandler = new SessionEndedEventHandler_js_1.SessionEndedEventHandler(sessionEndedProjector);
|
|
1060
1062
|
const goalAddedEventHandler = new GoalAddedEventHandler_js_1.GoalAddedEventHandler(goalAddedProjector);
|
|
1061
1063
|
const goalStartedEventHandler = new GoalStartedEventHandler_js_1.GoalStartedEventHandler(goalStartedProjector);
|
|
1062
|
-
const goalUpdatedEventHandler = new GoalUpdatedEventHandler_js_1.GoalUpdatedEventHandler(goalUpdatedProjector);
|
|
1064
|
+
const goalUpdatedEventHandler = new GoalUpdatedEventHandler_js_1.GoalUpdatedEventHandler(goalUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1063
1065
|
const goalBlockedEventHandler = new GoalBlockedEventHandler_js_1.GoalBlockedEventHandler(goalBlockedProjector);
|
|
1064
1066
|
const goalUnblockedEventHandler = new GoalUnblockedEventHandler_js_1.GoalUnblockedEventHandler(goalUnblockedProjector);
|
|
1065
1067
|
const goalPausedEventHandler = new GoalPausedEventHandler_js_1.GoalPausedEventHandler(goalPausedProjector);
|
|
@@ -1067,7 +1069,7 @@ class HostBuilder {
|
|
|
1067
1069
|
const goalCompletedEventHandler = new GoalCompletedEventHandler_js_1.GoalCompletedEventHandler(goalCompletedProjector);
|
|
1068
1070
|
const goalRefinedEventHandler = new GoalRefinedEventHandler_js_1.GoalRefinedEventHandler(goalRefinedProjector);
|
|
1069
1071
|
const goalResetEventHandler = new GoalResetEventHandler_js_1.GoalResetEventHandler(goalResetProjector);
|
|
1070
|
-
const goalRemovedEventHandler = new GoalRemovedEventHandler_js_1.GoalRemovedEventHandler(goalRemovedProjector);
|
|
1072
|
+
const goalRemovedEventHandler = new GoalRemovedEventHandler_js_1.GoalRemovedEventHandler(goalRemovedProjector, relationMaintenanceGoalRegistrar);
|
|
1071
1073
|
const goalProgressUpdatedEventHandler = new GoalProgressUpdatedEventHandler_js_1.GoalProgressUpdatedEventHandler(goalProgressUpdatedProjector);
|
|
1072
1074
|
const goalSubmittedForReviewEventHandler = new GoalSubmittedForReviewEventHandler_js_1.GoalSubmittedForReviewEventHandler(goalSubmittedForReviewProjector);
|
|
1073
1075
|
const goalQualifiedEventHandler = new GoalQualifiedEventHandler_js_1.GoalQualifiedEventHandler(goalQualifiedProjector);
|
|
@@ -1082,43 +1084,43 @@ class HostBuilder {
|
|
|
1082
1084
|
// Solution Category
|
|
1083
1085
|
// Architecture Event Handlers - decomposed by use case
|
|
1084
1086
|
const architectureDefinedEventHandler = new ArchitectureDefinedEventHandler_js_1.ArchitectureDefinedEventHandler(architectureDefinedProjector);
|
|
1085
|
-
const architectureUpdatedEventHandler = new ArchitectureUpdatedEventHandler_js_1.ArchitectureUpdatedEventHandler(architectureUpdatedProjector);
|
|
1087
|
+
const architectureUpdatedEventHandler = new ArchitectureUpdatedEventHandler_js_1.ArchitectureUpdatedEventHandler(architectureUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1086
1088
|
// Component Event Handlers - decomposed by use case
|
|
1087
1089
|
const componentAddedEventHandler = new ComponentAddedEventHandler_js_1.ComponentAddedEventHandler(componentAddedProjector);
|
|
1088
|
-
const componentUpdatedEventHandler = new ComponentUpdatedEventHandler_js_1.ComponentUpdatedEventHandler(componentUpdatedProjector);
|
|
1089
|
-
const componentDeprecatedEventHandler = new ComponentDeprecatedEventHandler_js_1.ComponentDeprecatedEventHandler(componentDeprecatedProjector, relationDeactivationCascade);
|
|
1090
|
-
const componentUndeprecatedEventHandler = new ComponentUndeprecatedEventHandler_js_1.ComponentUndeprecatedEventHandler(componentUndeprecatedProjector, relationReactivationCascade);
|
|
1091
|
-
const componentRemovedEventHandler = new ComponentRemovedEventHandler_js_1.ComponentRemovedEventHandler(componentRemovedProjector, relationDeactivationCascade);
|
|
1090
|
+
const componentUpdatedEventHandler = new ComponentUpdatedEventHandler_js_1.ComponentUpdatedEventHandler(componentUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1091
|
+
const componentDeprecatedEventHandler = new ComponentDeprecatedEventHandler_js_1.ComponentDeprecatedEventHandler(componentDeprecatedProjector, relationDeactivationCascade, relationMaintenanceGoalRegistrar);
|
|
1092
|
+
const componentUndeprecatedEventHandler = new ComponentUndeprecatedEventHandler_js_1.ComponentUndeprecatedEventHandler(componentUndeprecatedProjector, relationReactivationCascade, relationMaintenanceGoalRegistrar);
|
|
1093
|
+
const componentRemovedEventHandler = new ComponentRemovedEventHandler_js_1.ComponentRemovedEventHandler(componentRemovedProjector, relationDeactivationCascade, relationMaintenanceGoalRegistrar);
|
|
1092
1094
|
const componentRenamedEventHandler = new ComponentRenamedEventHandler_js_1.ComponentRenamedEventHandler(componentRenamedProjector);
|
|
1093
1095
|
// Dependency Event Handlers - decomposed by use case
|
|
1094
1096
|
const dependencyAddedEventHandler = new DependencyAddedEventHandler_js_1.DependencyAddedEventHandler(dependencyAddedProjector);
|
|
1095
|
-
const dependencyUpdatedEventHandler = new DependencyUpdatedEventHandler_js_1.DependencyUpdatedEventHandler(dependencyUpdatedProjector);
|
|
1096
|
-
const dependencyRemovedEventHandler = new DependencyRemovedEventHandler_js_1.DependencyRemovedEventHandler(dependencyRemovedProjector);
|
|
1097
|
+
const dependencyUpdatedEventHandler = new DependencyUpdatedEventHandler_js_1.DependencyUpdatedEventHandler(dependencyUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1098
|
+
const dependencyRemovedEventHandler = new DependencyRemovedEventHandler_js_1.DependencyRemovedEventHandler(dependencyRemovedProjector, relationMaintenanceGoalRegistrar);
|
|
1097
1099
|
// Decision Event Handlers - decomposed by use case
|
|
1098
1100
|
const decisionAddedEventHandler = new DecisionAddedEventHandler_js_1.DecisionAddedEventHandler(decisionAddedProjector);
|
|
1099
|
-
const decisionUpdatedEventHandler = new DecisionUpdatedEventHandler_js_1.DecisionUpdatedEventHandler(decisionUpdatedProjector);
|
|
1101
|
+
const decisionUpdatedEventHandler = new DecisionUpdatedEventHandler_js_1.DecisionUpdatedEventHandler(decisionUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1100
1102
|
const decisionReversedEventHandler = new DecisionReversedEventHandler_js_1.DecisionReversedEventHandler(decisionReversedProjector, relationDeactivationCascade);
|
|
1101
|
-
const decisionRestoredEventHandler = new DecisionRestoredEventHandler_js_1.DecisionRestoredEventHandler(decisionRestoredProjector, relationReactivationCascade);
|
|
1102
|
-
const decisionSupersededEventHandler = new DecisionSupersededEventHandler_js_1.DecisionSupersededEventHandler(decisionSupersededProjector, relationDeactivationCascade);
|
|
1103
|
+
const decisionRestoredEventHandler = new DecisionRestoredEventHandler_js_1.DecisionRestoredEventHandler(decisionRestoredProjector, relationReactivationCascade, relationMaintenanceGoalRegistrar);
|
|
1104
|
+
const decisionSupersededEventHandler = new DecisionSupersededEventHandler_js_1.DecisionSupersededEventHandler(decisionSupersededProjector, relationDeactivationCascade, relationMaintenanceGoalRegistrar);
|
|
1103
1105
|
// Guideline Event Handlers - decomposed by use case
|
|
1104
1106
|
const guidelineAddedEventHandler = new GuidelineAddedEventHandler_js_1.GuidelineAddedEventHandler(guidelineAddedProjector);
|
|
1105
|
-
const guidelineUpdatedEventHandler = new GuidelineUpdatedEventHandler_js_1.GuidelineUpdatedEventHandler(guidelineUpdatedProjector);
|
|
1106
|
-
const guidelineRemovedEventHandler = new GuidelineRemovedEventHandler_js_1.GuidelineRemovedEventHandler(guidelineRemovedProjector);
|
|
1107
|
+
const guidelineUpdatedEventHandler = new GuidelineUpdatedEventHandler_js_1.GuidelineUpdatedEventHandler(guidelineUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1108
|
+
const guidelineRemovedEventHandler = new GuidelineRemovedEventHandler_js_1.GuidelineRemovedEventHandler(guidelineRemovedProjector, relationMaintenanceGoalRegistrar);
|
|
1107
1109
|
// Invariant Event Handlers - decomposed by use case
|
|
1108
1110
|
const invariantAddedEventHandler = new InvariantAddedEventHandler_js_1.InvariantAddedEventHandler(invariantAddedProjector);
|
|
1109
|
-
const invariantUpdatedEventHandler = new InvariantUpdatedEventHandler_js_1.InvariantUpdatedEventHandler(invariantUpdatedProjector);
|
|
1110
|
-
const invariantRemovedEventHandler = new InvariantRemovedEventHandler_js_1.InvariantRemovedEventHandler(invariantRemovedProjector);
|
|
1111
|
+
const invariantUpdatedEventHandler = new InvariantUpdatedEventHandler_js_1.InvariantUpdatedEventHandler(invariantUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1112
|
+
const invariantRemovedEventHandler = new InvariantRemovedEventHandler_js_1.InvariantRemovedEventHandler(invariantRemovedProjector, relationMaintenanceGoalRegistrar);
|
|
1111
1113
|
// Project Knowledge Category
|
|
1112
1114
|
// Project Event Handlers - decomposed by use case
|
|
1113
1115
|
const projectInitializedEventHandler = new ProjectInitializedEventHandler_js_1.ProjectInitializedEventHandler(projectInitializedProjector);
|
|
1114
|
-
const projectUpdatedEventHandler = new ProjectUpdatedEventHandler_js_1.ProjectUpdatedEventHandler(projectUpdatedProjector);
|
|
1116
|
+
const projectUpdatedEventHandler = new ProjectUpdatedEventHandler_js_1.ProjectUpdatedEventHandler(projectUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1115
1117
|
// AudiencePain Event Handlers - decomposed by use case
|
|
1116
1118
|
const audiencePainAddedEventHandler = new AudiencePainAddedEventHandler_js_1.AudiencePainAddedEventHandler(audiencePainAddedProjector);
|
|
1117
|
-
const audiencePainUpdatedEventHandler = new AudiencePainUpdatedEventHandler_js_1.AudiencePainUpdatedEventHandler(audiencePainUpdatedProjector);
|
|
1119
|
+
const audiencePainUpdatedEventHandler = new AudiencePainUpdatedEventHandler_js_1.AudiencePainUpdatedEventHandler(audiencePainUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1118
1120
|
// Audience Event Handlers - decomposed by use case
|
|
1119
1121
|
const audienceAddedEventHandler = new AudienceAddedEventHandler_js_1.AudienceAddedEventHandler(audienceAddedProjector);
|
|
1120
|
-
const audienceUpdatedEventHandler = new AudienceUpdatedEventHandler_js_1.AudienceUpdatedEventHandler(audienceUpdatedProjector);
|
|
1121
|
-
const audienceRemovedEventHandler = new AudienceRemovedEventHandler_js_1.AudienceRemovedEventHandler(audienceRemovedProjector);
|
|
1122
|
+
const audienceUpdatedEventHandler = new AudienceUpdatedEventHandler_js_1.AudienceUpdatedEventHandler(audienceUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1123
|
+
const audienceRemovedEventHandler = new AudienceRemovedEventHandler_js_1.AudienceRemovedEventHandler(audienceRemovedProjector, relationMaintenanceGoalRegistrar);
|
|
1122
1124
|
// ValueProposition Controllers
|
|
1123
1125
|
const addValuePropositionCommandHandler = new AddValuePropositionCommandHandler_js_1.AddValuePropositionCommandHandler(valuePropositionAddedEventStore, eventBus);
|
|
1124
1126
|
const addValuePropositionGateway = new LocalAddValuePropositionGateway_js_1.LocalAddValuePropositionGateway(addValuePropositionCommandHandler, valuePropositionUpdatedProjector);
|
|
@@ -1133,8 +1135,8 @@ class HostBuilder {
|
|
|
1133
1135
|
const updateValuePropositionController = new UpdateValuePropositionController_js_1.UpdateValuePropositionController(updateValuePropositionGateway);
|
|
1134
1136
|
// ValueProposition Event Handlers - decomposed by use case
|
|
1135
1137
|
const valuePropositionAddedEventHandler = new ValuePropositionAddedEventHandler_js_1.ValuePropositionAddedEventHandler(valuePropositionAddedProjector);
|
|
1136
|
-
const valuePropositionUpdatedEventHandler = new ValuePropositionUpdatedEventHandler_js_1.ValuePropositionUpdatedEventHandler(valuePropositionUpdatedProjector);
|
|
1137
|
-
const valuePropositionRemovedEventHandler = new ValuePropositionRemovedEventHandler_js_1.ValuePropositionRemovedEventHandler(valuePropositionRemovedProjector);
|
|
1138
|
+
const valuePropositionUpdatedEventHandler = new ValuePropositionUpdatedEventHandler_js_1.ValuePropositionUpdatedEventHandler(valuePropositionUpdatedProjector, relationMaintenanceGoalRegistrar);
|
|
1139
|
+
const valuePropositionRemovedEventHandler = new ValuePropositionRemovedEventHandler_js_1.ValuePropositionRemovedEventHandler(valuePropositionRemovedProjector, relationMaintenanceGoalRegistrar);
|
|
1138
1140
|
// Relations Category - Event Handlers - decomposed by use case
|
|
1139
1141
|
const relationAddedEventHandler = new RelationAddedEventHandler_js_1.RelationAddedEventHandler(relationAddedProjector);
|
|
1140
1142
|
const relationDeactivatedEventHandler = new RelationDeactivatedEventHandler_js_1.RelationDeactivatedEventHandler(relationDeactivatedProjector);
|