jumbo-cli 2.7.2 → 2.8.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/assets/skills/jumbo-add-component/SKILL.md +45 -0
- package/assets/skills/jumbo-add-decision/SKILL.md +42 -0
- package/assets/skills/jumbo-add-dependency/SKILL.md +41 -0
- package/assets/skills/jumbo-add-guideline/SKILL.md +47 -0
- package/assets/skills/jumbo-add-invariant/SKILL.md +44 -0
- package/dist/application/context/project/init/AgentSelection.d.ts +1 -1
- package/dist/application/context/project/init/AgentSelection.d.ts.map +1 -1
- package/dist/domain/project/CursorRulesContent.d.ts +32 -0
- package/dist/domain/project/CursorRulesContent.d.ts.map +1 -0
- package/dist/domain/project/CursorRulesContent.js +60 -0
- package/dist/domain/project/CursorRulesContent.js.map +1 -0
- package/dist/infrastructure/context/project/init/AgentFileProtocol.d.ts.map +1 -1
- package/dist/infrastructure/context/project/init/AgentFileProtocol.js +6 -2
- package/dist/infrastructure/context/project/init/AgentFileProtocol.js.map +1 -1
- package/dist/infrastructure/context/project/init/CodexConfigurer.d.ts +34 -0
- package/dist/infrastructure/context/project/init/CodexConfigurer.d.ts.map +1 -0
- package/dist/infrastructure/context/project/init/CodexConfigurer.js +43 -0
- package/dist/infrastructure/context/project/init/CodexConfigurer.js.map +1 -0
- package/dist/infrastructure/context/project/init/CopilotConfigurer.d.ts +14 -4
- package/dist/infrastructure/context/project/init/CopilotConfigurer.d.ts.map +1 -1
- package/dist/infrastructure/context/project/init/CopilotConfigurer.js +97 -4
- package/dist/infrastructure/context/project/init/CopilotConfigurer.js.map +1 -1
- package/dist/infrastructure/context/project/init/CursorConfigurer.d.ts +60 -0
- package/dist/infrastructure/context/project/init/CursorConfigurer.d.ts.map +1 -0
- package/dist/infrastructure/context/project/init/CursorConfigurer.js +236 -0
- package/dist/infrastructure/context/project/init/CursorConfigurer.js.map +1 -0
- package/dist/infrastructure/context/project/init/VibeConfigurer.d.ts +33 -0
- package/dist/infrastructure/context/project/init/VibeConfigurer.d.ts.map +1 -0
- package/dist/infrastructure/context/project/init/VibeConfigurer.js +42 -0
- package/dist/infrastructure/context/project/init/VibeConfigurer.js.map +1 -0
- package/package.json +1 -1
- package/dist/infrastructure/context/project/init/GitHubHooksConfigurer.d.ts +0 -40
- package/dist/infrastructure/context/project/init/GitHubHooksConfigurer.d.ts.map +0 -1
- package/dist/infrastructure/context/project/init/GitHubHooksConfigurer.js +0 -135
- package/dist/infrastructure/context/project/init/GitHubHooksConfigurer.js.map +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: jumbo-add-component
|
|
3
|
+
description: Use liberally when you create, discover, or modify a software component. Registers the component with Jumbo so future sessions have accurate architectural context.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Add Component
|
|
7
|
+
|
|
8
|
+
Register a software component with Jumbo when you create one, discover an unregistered one, or significantly change one's responsibility.
|
|
9
|
+
|
|
10
|
+
## Command Syntax
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
jumbo component add \
|
|
14
|
+
--name "<ComponentName>" \
|
|
15
|
+
--type "<service|db|queue|ui|lib|api|worker|cache|storage>" \
|
|
16
|
+
--description "<What the component does>" \
|
|
17
|
+
--responsibility "<Single responsibility>" \
|
|
18
|
+
--path "<file-path>"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Bad Example
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
jumbo component add \
|
|
25
|
+
--name "Utils" \
|
|
26
|
+
--type "lib" \
|
|
27
|
+
--description "Helper functions" \
|
|
28
|
+
--responsibility "Various utilities" \
|
|
29
|
+
--path "src/utils.ts"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Vague name, description, and responsibility. A future agent cannot determine what this component does or whether to use it.
|
|
33
|
+
|
|
34
|
+
## Good Example
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
jumbo component add \
|
|
38
|
+
--name "EventStreamProjectionBuilder" \
|
|
39
|
+
--type "service" \
|
|
40
|
+
--description "Rebuilds materialized projections from event streams by replaying events through registered projection handlers" \
|
|
41
|
+
--responsibility "Projection rebuilding from event history" \
|
|
42
|
+
--path "src/infrastructure/projections/EventStreamProjectionBuilder.ts"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Name is self-documenting. Description and responsibility tell a future agent exactly what the component does and when to interact with it.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: jumbo-add-decision
|
|
3
|
+
description: Use liberally when you make an architectural choice, select a technology, or reject an alternative. Records the decision so future sessions understand why the codebase looks the way it does.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Add Decision
|
|
7
|
+
|
|
8
|
+
Register an architectural decision with Jumbo when you choose one approach over alternatives. Decisions explain **why** the codebase looks the way it does — without them, future agents may reverse your choices or repeat your analysis.
|
|
9
|
+
|
|
10
|
+
## Command Syntax
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
jumbo decision add \
|
|
14
|
+
--title "<Decision title>" \
|
|
15
|
+
--context "<Problem statement and background>" \
|
|
16
|
+
--rationale "<Why this choice was made>" \
|
|
17
|
+
--alternative "<Rejected option>" \
|
|
18
|
+
--consequences "<Trade-offs accepted>"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Bad Example
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
jumbo decision add \
|
|
25
|
+
--title "Use events" \
|
|
26
|
+
--context "Need to track changes"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Title is too vague to be useful. Missing rationale means a future agent has no basis for understanding the choice. Missing alternatives means they cannot evaluate whether the context has changed.
|
|
30
|
+
|
|
31
|
+
## Good Example
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
jumbo decision add \
|
|
35
|
+
--title "Use event sourcing over state-based persistence for domain aggregates" \
|
|
36
|
+
--context "Domain aggregates need audit history and the ability to rebuild state at any point in time" \
|
|
37
|
+
--rationale "Event sourcing provides a complete audit trail and enables temporal queries without additional infrastructure" \
|
|
38
|
+
--alternative "State-based persistence with a separate audit log table" \
|
|
39
|
+
--consequences "Requires projection rebuilding for read models; increases storage for high-frequency aggregates"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Title names both the chosen and rejected pattern. Context explains the problem. Rationale connects the choice to the problem. Alternatives and consequences give future agents the information they need to judge whether the decision still holds.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: jumbo-add-dependency
|
|
3
|
+
description: Use liberally when you introduce, discover, or upgrade a third-party package or external service. Registers the dependency so future sessions know what the project relies on.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Add Dependency
|
|
7
|
+
|
|
8
|
+
Register a third-party dependency with Jumbo when you add a new package, discover an unregistered one, or integrate with an external service.
|
|
9
|
+
|
|
10
|
+
## Command Syntax
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
jumbo dependency add \
|
|
14
|
+
--name "<Display name>" \
|
|
15
|
+
--ecosystem "<npm|pip|maven|service|...>" \
|
|
16
|
+
--package-name "<package-identifier>" \
|
|
17
|
+
--version-constraint "<semver-range>"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Bad Example
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
jumbo dependency add \
|
|
24
|
+
--name "testing lib" \
|
|
25
|
+
--ecosystem npm \
|
|
26
|
+
--package-name jest
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Name does not match the package. Missing version constraint means future agents cannot detect version drift or compatibility issues.
|
|
30
|
+
|
|
31
|
+
## Good Example
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
jumbo dependency add \
|
|
35
|
+
--name "Jest" \
|
|
36
|
+
--ecosystem npm \
|
|
37
|
+
--package-name jest \
|
|
38
|
+
--version-constraint "^29.7.0"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Name matches the package identity. Ecosystem and package name enable automated lookups. Version constraint communicates the compatibility range.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: jumbo-add-guideline
|
|
3
|
+
description: Use liberally when the user expresses a preference about how work should be done — coding style, process, testing approach, communication style. Captures the guideline so future sessions follow it without being told again.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Add Guideline
|
|
7
|
+
|
|
8
|
+
Register a guideline with Jumbo when the user states a preference about how work should be done. Guidelines shape agent behavior across all future sessions.
|
|
9
|
+
|
|
10
|
+
**Important:** Guidelines must be **generally applicable** to the project. Do not word them for a specific use case, goal, or task. A guideline that only applies to one situation belongs in a goal's criteria, not in the guideline registry.
|
|
11
|
+
|
|
12
|
+
## Command Syntax
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
jumbo guideline add \
|
|
16
|
+
--category "<testing|codingStyle|process|communication|documentation|security|performance|other>" \
|
|
17
|
+
--title "<Guideline title>" \
|
|
18
|
+
--description "<What to do and when>" \
|
|
19
|
+
--rationale "<Why this matters>" \
|
|
20
|
+
--enforcement "<How compliance is verified>"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Bad Example
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
jumbo guideline add \
|
|
27
|
+
--category codingStyle \
|
|
28
|
+
--title "Use arrow functions in the auth module" \
|
|
29
|
+
--description "All functions in src/auth/ should be arrow functions" \
|
|
30
|
+
--rationale "Consistency in auth code" \
|
|
31
|
+
--enforcement "Code review"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Too narrow — scoped to one module and one task. This is a goal criterion, not a project guideline.
|
|
35
|
+
|
|
36
|
+
## Good Example
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
jumbo guideline add \
|
|
40
|
+
--category codingStyle \
|
|
41
|
+
--title "Prefer arrow functions for non-method declarations" \
|
|
42
|
+
--description "Use arrow functions for callbacks, inline handlers, and standalone function expressions. Use function declarations for exported named functions and class methods." \
|
|
43
|
+
--rationale "Consistent lexical scoping and concise syntax across the codebase" \
|
|
44
|
+
--enforcement "ESLint prefer-arrow-callback rule"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Applies project-wide. States when to use and when not to use. Rationale explains the benefit. Enforcement is concrete.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: jumbo-add-invariant
|
|
3
|
+
description: Use liberally when you discover or are told a non-negotiable constraint — something that must always be true regardless of context. Registers the invariant so future sessions never violate it.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Add Invariant
|
|
7
|
+
|
|
8
|
+
Register an invariant with Jumbo when you discover a non-negotiable constraint — a rule that must hold true across the entire project at all times, regardless of which goal is being implemented.
|
|
9
|
+
|
|
10
|
+
**Important:** Invariants must be **generally applicable** to the project. Do not word them for a specific use case, goal, or task. An invariant that only applies during one piece of work belongs in a goal's criteria, not in the invariant registry. If you find yourself writing "when working on X" or "for the Y feature", it is not an invariant.
|
|
11
|
+
|
|
12
|
+
## Command Syntax
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
jumbo invariant add \
|
|
16
|
+
--title "<Invariant title>" \
|
|
17
|
+
--description "<What must always be true>" \
|
|
18
|
+
--enforcement "<How compliance is verified>" \
|
|
19
|
+
--rationale "<Why this is non-negotiable>"
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Bad Example
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
jumbo invariant add \
|
|
26
|
+
--title "Session endpoint must validate tokens" \
|
|
27
|
+
--description "The /api/session endpoint must check JWT expiry" \
|
|
28
|
+
--enforcement "Integration test" \
|
|
29
|
+
--rationale "Security requirement for session management"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Too narrow — applies to one endpoint. This is a requirement for a specific feature, not a project-wide invariant.
|
|
33
|
+
|
|
34
|
+
## Good Example
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
jumbo invariant add \
|
|
38
|
+
--title "All API endpoints must validate authentication tokens" \
|
|
39
|
+
--description "Every endpoint that accepts authenticated requests must verify token validity, expiry, and scope before processing the request" \
|
|
40
|
+
--enforcement "Middleware applied at router level; integration tests verify 401 for expired/invalid tokens" \
|
|
41
|
+
--rationale "Security compliance requirement — unauthenticated access to protected resources is a critical vulnerability"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Applies to every endpoint, not just one. States the full constraint. Enforcement is structural (middleware) not manual. Rationale explains why violation is unacceptable.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentSelection.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/AgentSelection.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"AgentSelection.d.ts","sourceRoot":"","sources":["../../../../../src/application/context/project/init/AgentSelection.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEpF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Domain Value Object: Cursor Rules Content
|
|
3
|
+
*
|
|
4
|
+
* Codifies the content for .cursor/rules/jumbo.mdc that directs
|
|
5
|
+
* Cursor agents to read JUMBO.md on startup.
|
|
6
|
+
* Handles content generation with YAML frontmatter (alwaysApply: true)
|
|
7
|
+
* and section replacement for repair operations.
|
|
8
|
+
*
|
|
9
|
+
* Rationale: Codified in domain rather than template file to support
|
|
10
|
+
* npm distribution (no file copying during build).
|
|
11
|
+
*/
|
|
12
|
+
export declare class CursorRulesContent {
|
|
13
|
+
private static readonly SECTION_MARKER;
|
|
14
|
+
/**
|
|
15
|
+
* Generate full .cursor/rules/jumbo.mdc content with YAML frontmatter
|
|
16
|
+
* and a reference to JUMBO.md.
|
|
17
|
+
*/
|
|
18
|
+
static getFullContent(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Marker used to detect if Jumbo section already exists in the rules file.
|
|
21
|
+
*/
|
|
22
|
+
static getSectionMarker(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Replace the Jumbo section in an existing rules file with the current content.
|
|
25
|
+
* Finds the section marker and replaces everything from there to EOF
|
|
26
|
+
* with the current section content.
|
|
27
|
+
*
|
|
28
|
+
* @returns Updated content, or null if marker not found
|
|
29
|
+
*/
|
|
30
|
+
static replaceSection(existingContent: string): string | null;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=CursorRulesContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CursorRulesContent.d.ts","sourceRoot":"","sources":["../../../src/domain/project/CursorRulesContent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAiC;IAEvE;;;OAGG;IACH,MAAM,CAAC,cAAc,IAAI,MAAM;IAa/B;;OAEG;IACH,MAAM,CAAC,gBAAgB,IAAI,MAAM;IAIjC;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAc9D"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Domain Value Object: Cursor Rules Content
|
|
4
|
+
*
|
|
5
|
+
* Codifies the content for .cursor/rules/jumbo.mdc that directs
|
|
6
|
+
* Cursor agents to read JUMBO.md on startup.
|
|
7
|
+
* Handles content generation with YAML frontmatter (alwaysApply: true)
|
|
8
|
+
* and section replacement for repair operations.
|
|
9
|
+
*
|
|
10
|
+
* Rationale: Codified in domain rather than template file to support
|
|
11
|
+
* npm distribution (no file copying during build).
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.CursorRulesContent = void 0;
|
|
15
|
+
class CursorRulesContent {
|
|
16
|
+
/**
|
|
17
|
+
* Generate full .cursor/rules/jumbo.mdc content with YAML frontmatter
|
|
18
|
+
* and a reference to JUMBO.md.
|
|
19
|
+
*/
|
|
20
|
+
static getFullContent() {
|
|
21
|
+
return `---
|
|
22
|
+
alwaysApply: true
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
${this.SECTION_MARKER}
|
|
26
|
+
|
|
27
|
+
# Jumbo Context Management
|
|
28
|
+
|
|
29
|
+
See JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
|
|
30
|
+
`;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Marker used to detect if Jumbo section already exists in the rules file.
|
|
34
|
+
*/
|
|
35
|
+
static getSectionMarker() {
|
|
36
|
+
return this.SECTION_MARKER;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Replace the Jumbo section in an existing rules file with the current content.
|
|
40
|
+
* Finds the section marker and replaces everything from there to EOF
|
|
41
|
+
* with the current section content.
|
|
42
|
+
*
|
|
43
|
+
* @returns Updated content, or null if marker not found
|
|
44
|
+
*/
|
|
45
|
+
static replaceSection(existingContent) {
|
|
46
|
+
const markerIndex = existingContent.indexOf(this.SECTION_MARKER);
|
|
47
|
+
if (markerIndex === -1)
|
|
48
|
+
return null;
|
|
49
|
+
const before = existingContent.substring(0, markerIndex);
|
|
50
|
+
return before + `${this.SECTION_MARKER}
|
|
51
|
+
|
|
52
|
+
# Jumbo Context Management
|
|
53
|
+
|
|
54
|
+
See JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
|
|
55
|
+
`;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.CursorRulesContent = CursorRulesContent;
|
|
59
|
+
CursorRulesContent.SECTION_MARKER = "<!-- jumbo:cursor-rules -->";
|
|
60
|
+
//# sourceMappingURL=CursorRulesContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CursorRulesContent.js","sourceRoot":"","sources":["../../../src/domain/project/CursorRulesContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,MAAM,CAAC,cAAc;QACnB,OAAO;;;;EAIT,IAAI,CAAC,cAAc;;;;;CAKpB,CAAC;IACA,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,gBAAgB;QACrB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,CAAC,eAAuB;QAC3C,MAAM,WAAW,GAAG,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAEjE,IAAI,WAAW,KAAK,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC;QAEpC,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAEzD,OAAO,MAAM,GAAG,GAAG,IAAI,CAAC,cAAc;;;;;CAKzC,CAAC;IACA,CAAC;;AA/CH,gDAgDC;AA/CyB,iCAAc,GAAG,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentFileProtocol.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/AgentFileProtocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,gEAAgE,CAAC;AACzG,OAAO,EAAE,kBAAkB,EAAE,MAAM,oEAAoE,CAAC;AACxG,OAAO,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;
|
|
1
|
+
{"version":3,"file":"AgentFileProtocol.d.ts","sour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qB;IAanC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,iBAAiB;CAW1B"}
|
|
@@ -25,7 +25,9 @@ const AgentsMdContent_js_1 = require("../../../../domain/project/AgentsMdContent
|
|
|
25
25
|
const ClaudeConfigurer_js_1 = require("./ClaudeConfigurer.js");
|
|
26
26
|
const GeminiConfigurer_js_1 = require("./GeminiConfigurer.js");
|
|
27
27
|
const CopilotConfigurer_js_1 = require("./CopilotConfigurer.js");
|
|
28
|
-
const
|
|
28
|
+
const VibeConfigurer_js_1 = require("./VibeConfigurer.js");
|
|
29
|
+
const CodexConfigurer_js_1 = require("./CodexConfigurer.js");
|
|
30
|
+
const CursorConfigurer_js_1 = require("./CursorConfigurer.js");
|
|
29
31
|
const DEFAULT_TEMPLATE_SKILLS_ROOT = path_1.default.resolve(__dirname, "..", "..", "..", "..", "..", "assets", "skills");
|
|
30
32
|
class AgentFileProtocol {
|
|
31
33
|
constructor(templateSkillsRoot = DEFAULT_TEMPLATE_SKILLS_ROOT) {
|
|
@@ -34,7 +36,9 @@ class AgentFileProtocol {
|
|
|
34
36
|
new ClaudeConfigurer_js_1.ClaudeConfigurer(),
|
|
35
37
|
new GeminiConfigurer_js_1.GeminiConfigurer(),
|
|
36
38
|
new CopilotConfigurer_js_1.CopilotConfigurer(),
|
|
37
|
-
new
|
|
39
|
+
new VibeConfigurer_js_1.VibeConfigurer(),
|
|
40
|
+
new CodexConfigurer_js_1.CodexConfigurer(),
|
|
41
|
+
new CursorConfigurer_js_1.CursorConfigurer(),
|
|
38
42
|
];
|
|
39
43
|
}
|
|
40
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentFileProtocol.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/AgentFileProtocol.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;;;;AAEH,gDAAwB;AACxB,wDAA0B;AAI1B,oFAA8E;AAC9E,sFAAgF;AAEhF,+DAAyD;AACzD,+DAAyD;AACzD,iEAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"AgentFileProtocol.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/AgentFileProtocol.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;;;;AAEH,gDAAwB;AACxB,wDAA0B;AAI1B,oFAA8E;AAC9E,sFAAgF;AAEhF,+DAAyD;AACzD,+DAAyD;AACzD,iEAA2D;AAC3D,2DAAqD;AACrD,6DAAuD;AACvD,+DAAyD;AAEzD,MAAM,4BAA4B,GAAG,cAAI,CAAC,OAAO,CAC/C,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,QAAQ,CACT,CAAC;AAEF,MAAa,iBAAiB;IAU5B,YAA6B,qBAA6B,4BAA4B;QAAzD,uBAAkB,GAAlB,kBAAkB,CAAuC;QATrE,gBAAW,GAAkB;YAC5C,IAAI,sCAAgB,EAAE;YACtB,IAAI,sCAAgB,EAAE;YACtB,IAAI,wCAAiB,EAAE;YACvB,IAAI,kCAAc,EAAE;YACpB,IAAI,oCAAe,EAAE;YACrB,IAAI,sCAAgB,EAAE;SACvB,CAAC;IAEuF,CAAC;IAE1F;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,WAAmB;QACrC,MAAM,WAAW,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAEvD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,kBAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAEhD,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,kBAAE,CAAC,SAAS,CAAC,WAAW,EAAE,kCAAc,CAAC,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;gBAC1E,OAAO;YACT,CAAC;YAED,MAAM,OAAO,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAA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AAE,CAAC,kBAAkB,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9F,CAAC;IAEO,iBAAiB,CAAC,gBAAqC;QAC7D,MAAM,cAAc,GAAG,IAAI,GAAG,EAAU,CAAC;QAEzC,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAC/D,KAAK,MAAM,aAAa,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC;gBACtD,cAAc,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;YACpC,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACrF,CAAC;CACF;AAvUD,8CAuUC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infrastructure: OpenAI Codex Configurer
|
|
3
|
+
*
|
|
4
|
+
* Encapsulates all knowledge about OpenAI Codex configuration:
|
|
5
|
+
* - Skills distributed to .codex/skills
|
|
6
|
+
*
|
|
7
|
+
* Codex reads AGENTS.md natively, so no instruction file is needed.
|
|
8
|
+
* Codex does not support lifecycle hooks, so configuration is
|
|
9
|
+
* limited to skill distribution.
|
|
10
|
+
*
|
|
11
|
+
* Operations are idempotent and gracefully handle errors.
|
|
12
|
+
*/
|
|
13
|
+
import { IConfigurer } from "./IConfigurer.js";
|
|
14
|
+
import { PlannedFileChange } from "../../../../application/context/project/init/PlannedFileChange.js";
|
|
15
|
+
export declare class CodexConfigurer implements IConfigurer {
|
|
16
|
+
readonly agent: {
|
|
17
|
+
readonly id: "codex";
|
|
18
|
+
readonly name: "Codex";
|
|
19
|
+
};
|
|
20
|
+
readonly skillPlatforms: readonly [".codex/skills"];
|
|
21
|
+
/**
|
|
22
|
+
* Configure all OpenAI Codex requirements for Jumbo.
|
|
23
|
+
* Codex reads AGENTS.md natively and has no hook system,
|
|
24
|
+
* so no additional configuration files are needed.
|
|
25
|
+
*
|
|
26
|
+
* @param projectRoot Absolute path to project root directory
|
|
27
|
+
*/
|
|
28
|
+
configure(_projectRoot: string): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Return what changes this configurer will make without executing.
|
|
31
|
+
*/
|
|
32
|
+
getPlannedFileChanges(_projectRoot: string): Promise<PlannedFileChange[]>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=CodexConfigurer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodexConfigurer.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CodexConfigurer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AAEtG,qBAAa,eAAgB,YAAW,WAAW;IACjD,QAAQ,CAAC,KAAK;;;MAGH;IAEX,QAAQ,CAAC,cAAc,6BAA8B;IAErD;;;;;;OAMG;IACG,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKpD;;OAEG;IACG,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAGhF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Infrastructure: OpenAI Codex Configurer
|
|
4
|
+
*
|
|
5
|
+
* Encapsulates all knowledge about OpenAI Codex configuration:
|
|
6
|
+
* - Skills distributed to .codex/skills
|
|
7
|
+
*
|
|
8
|
+
* Codex reads AGENTS.md natively, so no instruction file is needed.
|
|
9
|
+
* Codex does not support lifecycle hooks, so configuration is
|
|
10
|
+
* limited to skill distribution.
|
|
11
|
+
*
|
|
12
|
+
* Operations are idempotent and gracefully handle errors.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CodexConfigurer = void 0;
|
|
16
|
+
class CodexConfigurer {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.agent = {
|
|
19
|
+
id: "codex",
|
|
20
|
+
name: "Codex",
|
|
21
|
+
};
|
|
22
|
+
this.skillPlatforms = [".codex/skills"];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Configure all OpenAI Codex requirements for Jumbo.
|
|
26
|
+
* Codex reads AGENTS.md natively and has no hook system,
|
|
27
|
+
* so no additional configuration files are needed.
|
|
28
|
+
*
|
|
29
|
+
* @param projectRoot Absolute path to project root directory
|
|
30
|
+
*/
|
|
31
|
+
async configure(_projectRoot) {
|
|
32
|
+
// Codex reads AGENTS.md natively - no additional files needed.
|
|
33
|
+
// Skills are installed by AgentFileProtocol via skillPlatforms.
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Return what changes this configurer will make without executing.
|
|
37
|
+
*/
|
|
38
|
+
async getPlannedFileChanges(_projectRoot) {
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CodexConfigurer = CodexConfigurer;
|
|
43
|
+
//# sourceMappingURL=CodexConfigurer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodexConfigurer.js","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CodexConfigurer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAKH,MAAa,eAAe;IAA5B;QACW,UAAK,GAAG;YACf,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;SACL,CAAC;QAEF,mBAAc,GAAG,CAAC,eAAe,CAAU,CAAC;IAoBvD,CAAC;IAlBC;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,CAAC,YAAoB;QAClC,+DAA+D;QAC/D,gEAAgE;IAClE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,qBAAqB,CAAC,YAAoB;QAC9C,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AA1BD,0CA0BC"}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Encapsulates all knowledge about GitHub Copilot configuration:
|
|
5
5
|
* - .github/copilot-instructions.md with thin reference to JUMBO.md
|
|
6
|
-
*
|
|
7
|
-
* Note: Copilot does not support SessionStart hooks, so configuration
|
|
8
|
-
* is limited to static instruction files.
|
|
6
|
+
* - .github/hooks/hooks.json with SessionStart hooks
|
|
9
7
|
*
|
|
10
8
|
* Operations are idempotent and gracefully handle errors.
|
|
11
9
|
*/
|
|
@@ -28,7 +26,19 @@ export declare class CopilotConfigurer implements IConfigurer {
|
|
|
28
26
|
*/
|
|
29
27
|
private ensureCopilotInstructions;
|
|
30
28
|
/**
|
|
31
|
-
*
|
|
29
|
+
* Ensure GitHub hooks are configured in .github/hooks/hooks.json
|
|
30
|
+
*/
|
|
31
|
+
private ensureGitHubHooks;
|
|
32
|
+
/**
|
|
33
|
+
* Merge hooks, preserving existing content and adding missing Jumbo hooks
|
|
34
|
+
*/
|
|
35
|
+
private mergeHooks;
|
|
36
|
+
/**
|
|
37
|
+
* Merge hook arrays, deduplicating by command content
|
|
38
|
+
*/
|
|
39
|
+
private mergeHookArray;
|
|
40
|
+
/**
|
|
41
|
+
* Repair Copilot configuration by replacing stale Jumbo section and ensuring hooks
|
|
32
42
|
*/
|
|
33
43
|
repair(projectRoot: string): Promise<void>;
|
|
34
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotConfigurer.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CopilotConfigurer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CopilotConfigurer.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/context/project/init/CopilotConfigurer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AAEtG,qBAAa,iBAAkB,YAAW,WAAW;IACnD,QAAQ,CAAC,KAAK;;;MAGH;IAEX,QAAQ,CAAC,cAAc,8BAA+B;IAEtD;;;;OAIG;IACG,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKnD;;OAEG;YACW,yBAAyB;IA6CvC;;OAEG;YACW,iBAAiB;IA0D/B;;OAEG;IACH,OAAO,CAAC,UAAU;IAuBlB;;OAEG;IACH,OAAO,CAAC,cAAc;IAetB;;OAEG;IACG,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKhD;;OAEG;YACW,yBAAyB;IA2CvC;;OAEG;IACG,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAqB/E"}
|