jumbo-cli 2.1.0 → 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/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/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 +1 -1
- package/dist/infrastructure/host/HostBuilder.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* during project initialization.
|
|
6
6
|
*
|
|
7
7
|
* Responsibilities:
|
|
8
|
-
* - Ensure
|
|
8
|
+
* - Ensure JUMBO.md exists with full Jumbo instructions
|
|
9
|
+
* - Ensure AGENTS.md exists with thin reference to JUMBO.md
|
|
9
10
|
* - Ensure all supported agents are configured
|
|
10
11
|
* - Report planned file changes for preview before execution
|
|
11
12
|
*
|
|
@@ -18,12 +19,23 @@
|
|
|
18
19
|
import { PlannedFileChange } from "./PlannedFileChange.js";
|
|
19
20
|
export interface IAgentFileProtocol {
|
|
20
21
|
/**
|
|
21
|
-
* Ensure
|
|
22
|
+
* Ensure JUMBO.md exists with full Jumbo instructions.
|
|
22
23
|
*
|
|
23
24
|
* Behavior:
|
|
24
|
-
* - If
|
|
25
|
-
* - If
|
|
26
|
-
* - If
|
|
25
|
+
* - If JUMBO.md doesn't exist: Create it with full content
|
|
26
|
+
* - If JUMBO.md exists with Jumbo section: Replace with current version
|
|
27
|
+
* - If JUMBO.md exists without Jumbo section: Append current Jumbo section
|
|
28
|
+
*
|
|
29
|
+
* @param projectRoot Absolute path to project root directory
|
|
30
|
+
*/
|
|
31
|
+
ensureJumboMd(projectRoot: string): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Ensure AGENTS.md exists with thin reference to JUMBO.md.
|
|
34
|
+
*
|
|
35
|
+
* Behavior:
|
|
36
|
+
* - If AGENTS.md doesn't exist: Create it with thin reference content
|
|
37
|
+
* - If AGENTS.md exists without Jumbo Instructions: Append thin reference section
|
|
38
|
+
* - If AGENTS.md exists with Jumbo Instructions section: Replace with thin reference
|
|
27
39
|
*
|
|
28
40
|
* @param projectRoot Absolute path to project root directory
|
|
29
41
|
*/
|
|
@@ -46,12 +58,23 @@ export interface IAgentFileProtocol {
|
|
|
46
58
|
*/
|
|
47
59
|
ensureAgentConfigurations(projectRoot: string): Promise<void>;
|
|
48
60
|
/**
|
|
49
|
-
* Repair
|
|
61
|
+
* Repair JUMBO.md by replacing the Jumbo section with the current version.
|
|
62
|
+
*
|
|
63
|
+
* Behavior:
|
|
64
|
+
* - If JUMBO.md doesn't exist: Create it with full content
|
|
65
|
+
* - If JUMBO.md exists with Jumbo section: Replace section with current version
|
|
66
|
+
* - If JUMBO.md exists without Jumbo section: Append current Jumbo section
|
|
67
|
+
*
|
|
68
|
+
* @param projectRoot Absolute path to project root directory
|
|
69
|
+
*/
|
|
70
|
+
repairJumboMd(projectRoot: string): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Repair AGENTS.md by replacing the Jumbo section with the current thin reference.
|
|
50
73
|
*
|
|
51
74
|
* Behavior:
|
|
52
|
-
* - If AGENTS.md doesn't exist: Create it with
|
|
53
|
-
* - If AGENTS.md exists with Jumbo section: Replace section with
|
|
54
|
-
* - If AGENTS.md exists without Jumbo section: Append
|
|
75
|
+
* - If AGENTS.md doesn't exist: Create it with thin reference content
|
|
76
|
+
* - If AGENTS.md exists with Jumbo section: Replace section with thin reference
|
|
77
|
+
* - If AGENTS.md exists without Jumbo section: Append thin reference section
|
|
55
78
|
*
|
|
56
79
|
* @param projectRoot Absolute path to project root directory
|
|
57
80
|
*/
|
|
@@ -73,6 +96,7 @@ export interface IAgentFileProtocol {
|
|
|
73
96
|
* Use this for preview before user confirmation.
|
|
74
97
|
*
|
|
75
98
|
* Includes:
|
|
99
|
+
* - JUMBO.md (create or modify)
|
|
76
100
|
* - AGENTS.md (create or modify)
|
|
77
101
|
* - All agent-specific files from configurers
|
|
78
102
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAgentFileProtocol.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IAgentFileProtocol.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"IAgentFileProtocol.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IAgentFileProtocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;OASG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD;;;;;;;;;OASG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;;;;;;;;;;;;;OAeG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;;;;;;;OASG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD;;;;;;;;;OASG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;;;;;;;;OAUG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;;;;;;;;;OAWG;IACH,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;CAC1E"}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* during project initialization.
|
|
7
7
|
*
|
|
8
8
|
* Responsibilities:
|
|
9
|
-
* - Ensure
|
|
9
|
+
* - Ensure JUMBO.md exists with full Jumbo instructions
|
|
10
|
+
* - Ensure AGENTS.md exists with thin reference to JUMBO.md
|
|
10
11
|
* - Ensure all supported agents are configured
|
|
11
12
|
* - Report planned file changes for preview before execution
|
|
12
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAgentFileProtocol.js","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IAgentFileProtocol.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"IAgentFileProtocol.js","sourceRoot":"","sources":["../../../../../src/application/context/project/init/IAgentFileProtocol.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
@@ -3,10 +3,12 @@ import { InitializeProjectRequest } from "./InitializeProjectRequest.js";
|
|
|
3
3
|
import { InitializeProjectResponse } from "./InitializeProjectResponse.js";
|
|
4
4
|
import { InitializeProjectCommandHandler } from "./InitializeProjectCommandHandler.js";
|
|
5
5
|
import { IPlanProjectInitGateway } from "./IPlanProjectInitGateway.js";
|
|
6
|
+
import { IAgentFileProtocol } from "./IAgentFileProtocol.js";
|
|
6
7
|
export declare class LocalInitializeProjectGateway implements IInitializeProjectGateway {
|
|
7
8
|
private readonly commandHandler;
|
|
8
9
|
private readonly planProjectInitGateway;
|
|
9
|
-
|
|
10
|
+
private readonly agentFileProtocol;
|
|
11
|
+
constructor(commandHandler: InitializeProjectCommandHandler, planProjectInitGateway: IPlanProjectInitGateway, agentFileProtocol: IAgentFileProtocol);
|
|
10
12
|
initializeProject(request: InitializeProjectRequest): Promise<InitializeProjectResponse>;
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=LocalInitializeProjectGateway.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalInitializeProjectGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/LocalInitializeProjectGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"LocalInitializeProjectGateway.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/LocalInitializeProjectGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,qBAAa,6BAA8B,YAAW,yBAAyB;IAE3E,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,cAAc,EAAE,+BAA+B,EAC/C,sBAAsB,EAAE,uBAAuB,EAC/C,iBAAiB,EAAE,kBAAkB;IAGlD,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAkB/F"}
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LocalInitializeProjectGateway = void 0;
|
|
4
4
|
class LocalInitializeProjectGateway {
|
|
5
|
-
constructor(commandHandler, planProjectInitGateway) {
|
|
5
|
+
constructor(commandHandler, planProjectInitGateway, agentFileProtocol) {
|
|
6
6
|
this.commandHandler = commandHandler;
|
|
7
7
|
this.planProjectInitGateway = planProjectInitGateway;
|
|
8
|
+
this.agentFileProtocol = agentFileProtocol;
|
|
8
9
|
}
|
|
9
10
|
async initializeProject(request) {
|
|
10
11
|
const planResponse = await this.planProjectInitGateway.planProjectInit({
|
|
11
12
|
projectRoot: request.projectRoot,
|
|
12
13
|
});
|
|
14
|
+
// Ensure JUMBO.md exists before ensureAgentsMd (called inside commandHandler.execute)
|
|
15
|
+
await this.agentFileProtocol.ensureJumboMd(request.projectRoot);
|
|
13
16
|
const result = await this.commandHandler.execute({ name: request.name, purpose: request.purpose }, request.projectRoot);
|
|
14
17
|
return {
|
|
15
18
|
projectId: result.projectId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalInitializeProjectGateway.js","sourceRoot":"","sources":["../../../../../src/application/context/project/init/LocalInitializeProjectGateway.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"LocalInitializeProjectGateway.js","sourceRoot":"","sources":["../../../../../src/application/context/project/init/LocalInitializeProjectGateway.ts"],"names":[],"mappings":";;;AAOA,MAAa,6BAA6B;IACxC,YACmB,cAA+C,EAC/C,sBAA+C,EAC/C,iBAAqC;QAFrC,mBAAc,GAAd,cAAc,CAAiC;QAC/C,2BAAsB,GAAtB,sBAAsB,CA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,CAAC,IAAI,CAAC,CAAC;AAExD,qBAAa,gBAAgB;IAIzB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,iCAAiC;IAClD,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAVzB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAwB;gBAGzB,mBAAmB,EAAE,qBAAqB,EAC1C,qBAAqB,EAAE,qBAAqB,EAC5C,iCAAiC,EAAE,iCAAiC,EACpE,mBAAmB,EAAE,oBAAoB,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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SAAS;aACxD,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,uBAAuB,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE;gBAChG,UAAU,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;aAC/D,CAAC,CAAC;YACH,OAAO;gBACL,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;aAC/D,CAAC;QACJ,CAAC;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;
|
|
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,i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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().
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentsMdContent.js","sourceRoot":"","sources":["../../../src/domain/project/AgentsMdContent.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"AgentsMdContent.js","sourceRoot":"","sources":["../../../src/domain/project/AgentsMdContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,eAAe;IAC1B;;OAEG;IACH,MAAM,CAAC,eAAe;QACpB,OAAO;;;CAGV,CAAC;IACA,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,cAAc;QACnB,OAAO;;EAET,IAAI,CAAC,eAAe,EAAE,EAAE,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,4BAA4B;QACjC,OAAO,6DAA6D,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,4BAA4B;QACjC,OAAO;YACL,2BAA2B;SAC5B,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,mBAAmB,CAAC,eAAuB;QAChD,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,GAAG,IAAI,CAAC,4BAA4B,EAAE,CAAC,CAAC;QAEjG,IAAI,aAAa,GAAkB,IAAI,CAAC;QACxC,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC;QAErB,KAAK,MAAM,MAAM,IAAI,UAAU,EAAE,CAAC;YAChC,MAAM,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAC9C,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;gBACjB,aAAa,GAAG,MAAM,CAAC;gBACvB,WAAW,GAAG,KAAK,CAAC;gBACpB,MAAM;YACR,CAAC;QACH,CAAC;QAED,IAAI,aAAa,KAAK,IAAI,IAAI,WAAW,KAAK,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC;QAE9D,qDAAqD;QACrD,MAAM,WAAW,GAAG,eAAe,CAAC,SAAS,CAAC,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;QAClF,MAAM,gBAAgB,GAAG,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACpD,MAAM,QAAQ,GAAG,gBAAgB;YAC/B,CAAC,CAAC,WAAW,GAAG,aAAa,CAAC,MAAM,GAAG,gBAAgB,CAAC,KAAM;YAC9D,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC;QAE3B,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QACzD,MAAM,KAAK,GAAG,eAAe,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAElD,OAAO,MAAM,GAAG,IAAI,CAAC,eAAe,EAAE,GAAG,KAAK,CAAC;IACjD,CAAC;CACF;AA3ED,0CA2EC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Domain Value Object: Copilot Instructions Content
|
|
3
3
|
*
|
|
4
|
-
* Codifies the
|
|
4
|
+
* Codifies the thin reference content for copilot-instructions.md
|
|
5
|
+
* that directs agents to read JUMBO.md on startup.
|
|
5
6
|
* Handles content generation, section marker detection, and section replacement.
|
|
6
7
|
*
|
|
7
8
|
* Rationale: Codified in domain rather than template file to support
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
*/
|
|
10
11
|
export declare class CopilotInstructionsContent {
|
|
11
12
|
/**
|
|
12
|
-
* Generate
|
|
13
|
+
* Generate thin reference content for copilot-instructions.md
|
|
13
14
|
*/
|
|
14
15
|
static getCopilotInstructions(): string;
|
|
15
16
|
/**
|
|
@@ -17,11 +18,15 @@ export declare class CopilotInstructionsContent {
|
|
|
17
18
|
*/
|
|
18
19
|
static getCopilotSectionMarker(): string;
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* Legacy marker from the previous verbose Copilot instructions.
|
|
22
|
+
*/
|
|
23
|
+
private static getLegacyCopilotSectionMarker;
|
|
24
|
+
/**
|
|
25
|
+
* Replace the Copilot section in copilot-instructions.md with the current thin reference.
|
|
26
|
+
* Finds current or legacy section marker and replaces everything from there
|
|
27
|
+
* to the next "## " heading (or EOF) with current thin reference section.
|
|
23
28
|
*
|
|
24
|
-
* @returns Updated content, or null if marker
|
|
29
|
+
* @returns Updated content, or null if no marker found
|
|
25
30
|
*/
|
|
26
31
|
static replaceCopilotSection(existingContent: string): string | null;
|
|
27
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotInstructionsContent.d.ts","sourceRoot":"","sources":["../../../src/domain/project/CopilotInstructionsContent.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CopilotInstructionsContent.d.ts","sourceRoot":"","sources":["../../../src/domain/project/CopilotInstructionsContent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,qBAAa,0BAA0B;IACrC;;OAEG;IACH,MAAM,CAAC,sBAAsB,IAAI,MAAM;IASvC;;OAEG;IACH,MAAM,CAAC,uBAAuB,IAAI,MAAM;IAIxC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,6BAA6B;IAI5C;;;;;;OAMG;IACH,MAAM,CAAC,qBAAqB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAkCrE"}
|