@mindfoldhq/trellis 0.1.1 → 0.1.3
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/{templates/agents/bodies → .claude/agents}/check.md +7 -0
- package/dist/{templates/agents/bodies → .claude/agents}/debug.md +7 -0
- package/dist/{templates/agents/bodies → .claude/agents}/dispatch.md +11 -8
- package/dist/{templates/agents/bodies → .claude/agents}/implement.md +7 -0
- package/dist/.claude/agents/plan.md +396 -0
- package/dist/{templates/agents/bodies → .claude/agents}/research.md +7 -0
- package/dist/{templates/commands/common/check-cross-layer.txt → .claude/commands/check-cross-layer.md} +29 -29
- package/dist/{templates → .claude}/hooks/inject-subagent-context.py +63 -0
- package/dist/.cursor/commands/before-backend-dev.md +13 -0
- package/dist/.cursor/commands/before-frontend-dev.md +13 -0
- package/dist/.cursor/commands/break-loop.md +107 -0
- package/dist/.cursor/commands/check-backend.md +13 -0
- package/dist/.cursor/commands/check-cross-layer.md +153 -0
- package/dist/.cursor/commands/check-frontend.md +13 -0
- package/dist/.cursor/commands/create-command.md +154 -0
- package/dist/.cursor/commands/finish-work.md +129 -0
- package/dist/.cursor/commands/integrate-skill.md +219 -0
- package/dist/.cursor/commands/onboard-developer.md +355 -0
- package/dist/.cursor/commands/record-agent-flow.md +62 -0
- package/dist/.trellis/scripts/common/phase.sh +150 -0
- package/dist/{templates/scripts/feature.sh.txt → .trellis/scripts/feature.sh} +8 -3
- package/dist/{templates/scripts/multi-agent/cleanup.sh.txt → .trellis/scripts/multi-agent/cleanup.sh} +107 -18
- package/dist/.trellis/scripts/multi-agent/create-pr.sh +241 -0
- package/dist/.trellis/scripts/multi-agent/plan.sh +232 -0
- package/dist/{templates/scripts/multi-agent/start.sh.txt → .trellis/scripts/multi-agent/start.sh} +21 -0
- package/dist/{templates/scripts/multi-agent/status.sh.txt → .trellis/scripts/multi-agent/status.sh} +282 -10
- package/dist/.trellis/structure/backend/database-guidelines.md +51 -0
- package/dist/.trellis/structure/backend/directory-structure.md +209 -0
- package/dist/.trellis/structure/backend/error-handling.md +278 -0
- package/dist/.trellis/structure/backend/index.md +38 -0
- package/dist/.trellis/structure/backend/logging-guidelines.md +266 -0
- package/dist/.trellis/structure/backend/quality-guidelines.md +313 -0
- package/dist/.trellis/structure/frontend/component-guidelines.md +59 -0
- package/dist/.trellis/structure/frontend/directory-structure.md +54 -0
- package/dist/.trellis/structure/frontend/hook-guidelines.md +51 -0
- package/dist/.trellis/structure/frontend/index.md +39 -0
- package/dist/.trellis/structure/frontend/quality-guidelines.md +51 -0
- package/dist/.trellis/structure/frontend/state-management.md +51 -0
- package/dist/.trellis/structure/frontend/type-safety.md +51 -0
- package/dist/.trellis/structure/guides/code-reuse-thinking-guide.md +92 -0
- package/dist/.trellis/structure/guides/cross-layer-thinking-guide.md +94 -0
- package/dist/.trellis/structure/guides/index.md +79 -0
- package/dist/{templates/scripts/worktree.yaml.txt → .trellis/worktree.yaml} +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +5 -16
- package/dist/commands/init.js.map +1 -1
- package/dist/configurators/claude.d.ts +17 -17
- package/dist/configurators/claude.d.ts.map +1 -1
- package/dist/configurators/claude.js +29 -59
- package/dist/configurators/claude.js.map +1 -1
- package/dist/configurators/cursor.d.ts +3 -3
- package/dist/configurators/cursor.d.ts.map +1 -1
- package/dist/configurators/cursor.js +11 -15
- package/dist/configurators/cursor.js.map +1 -1
- package/dist/configurators/opencode.d.ts +11 -10
- package/dist/configurators/opencode.d.ts.map +1 -1
- package/dist/configurators/opencode.js +14 -33
- package/dist/configurators/opencode.js.map +1 -1
- package/dist/configurators/workflow.d.ts +7 -0
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +30 -99
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/templates/extract.d.ts +73 -8
- package/dist/templates/extract.d.ts.map +1 -1
- package/dist/templates/extract.js +149 -10
- package/dist/templates/extract.js.map +1 -1
- package/dist/templates/markdown/gitignore.txt +6 -1
- package/dist/templates/markdown/index.d.ts +5 -1
- package/dist/templates/markdown/index.d.ts.map +1 -1
- package/dist/templates/markdown/index.js +54 -26
- package/dist/templates/markdown/index.js.map +1 -1
- package/dist/templates/markdown/structure/backend/directory-structure.md.txt +6 -6
- package/dist/templates/markdown/structure/backend/error-handling.md.txt +8 -8
- package/dist/templates/markdown/structure/backend/index.md.txt +5 -5
- package/dist/templates/markdown/structure/backend/logging-guidelines.md.txt +8 -8
- package/dist/templates/markdown/structure/frontend/index.md.txt +6 -6
- package/dist/templates/markdown/structure/guides/cross-layer-thinking-guide.md.txt +5 -5
- package/dist/templates/markdown/structure/guides/index.md.txt +7 -7
- package/dist/templates/markdown/worktree.yaml.txt +58 -0
- package/package.json +1 -1
- package/dist/configurators/templates.d.ts +0 -40
- package/dist/configurators/templates.d.ts.map +0 -1
- package/dist/configurators/templates.js +0 -67
- package/dist/configurators/templates.js.map +0 -1
- package/dist/templates/agents/index.d.ts +0 -42
- package/dist/templates/agents/index.d.ts.map +0 -1
- package/dist/templates/agents/index.js +0 -148
- package/dist/templates/agents/index.js.map +0 -1
- package/dist/templates/agents/metadata.d.ts +0 -48
- package/dist/templates/agents/metadata.d.ts.map +0 -1
- package/dist/templates/agents/metadata.js +0 -101
- package/dist/templates/agents/metadata.js.map +0 -1
- package/dist/templates/commands/index.d.ts +0 -48
- package/dist/templates/commands/index.d.ts.map +0 -1
- package/dist/templates/commands/index.js +0 -167
- package/dist/templates/commands/index.js.map +0 -1
- package/dist/templates/commands/opencode/start.md.txt +0 -127
- package/dist/templates/hooks/index.d.ts +0 -33
- package/dist/templates/hooks/index.d.ts.map +0 -1
- package/dist/templates/hooks/index.js +0 -53
- package/dist/templates/hooks/index.js.map +0 -1
- package/dist/templates/scripts/index.d.ts +0 -36
- package/dist/templates/scripts/index.d.ts.map +0 -1
- package/dist/templates/scripts/index.js +0 -41
- package/dist/templates/scripts/index.js.map +0 -1
- /package/dist/{templates/commands/common/before-backend-dev.txt → .claude/commands/before-backend-dev.md} +0 -0
- /package/dist/{templates/commands/common/before-frontend-dev.txt → .claude/commands/before-frontend-dev.md} +0 -0
- /package/dist/{templates/commands/common/break-loop.txt → .claude/commands/break-loop.md} +0 -0
- /package/dist/{templates/commands/common/check-backend.txt → .claude/commands/check-backend.md} +0 -0
- /package/dist/{templates/commands/common/check-frontend.txt → .claude/commands/check-frontend.md} +0 -0
- /package/dist/{templates/commands/common/create-command.txt → .claude/commands/create-command.md} +0 -0
- /package/dist/{templates/commands/common/finish-work.txt → .claude/commands/finish-work.md} +0 -0
- /package/dist/{templates/commands/common/integrate-skill.txt → .claude/commands/integrate-skill.md} +0 -0
- /package/dist/{templates/commands/common/onboard-developer.txt → .claude/commands/onboard-developer.md} +0 -0
- /package/dist/{templates/commands/claude/parallel.md.txt → .claude/commands/parallel.md} +0 -0
- /package/dist/{templates/commands/common/record-agent-flow.txt → .claude/commands/record-agent-flow.md} +0 -0
- /package/dist/{templates/commands/claude/start.md.txt → .claude/commands/start.md} +0 -0
- /package/dist/{templates/hooks → .claude}/settings.json +0 -0
- /package/dist/{templates/commands/cursor/start.md.txt → .cursor/commands/start.md} +0 -0
- /package/dist/{templates/markdown/agent-traces-index.md.txt → .trellis/agent-traces/index.md} +0 -0
- /package/dist/{templates/scripts/add-session.sh.txt → .trellis/scripts/add-session.sh} +0 -0
- /package/dist/{templates/scripts/common/developer.sh.txt → .trellis/scripts/common/developer.sh} +0 -0
- /package/dist/{templates/scripts/common/git-context.sh.txt → .trellis/scripts/common/git-context.sh} +0 -0
- /package/dist/{templates/scripts/common/paths.sh.txt → .trellis/scripts/common/paths.sh} +0 -0
- /package/dist/{templates/scripts/common/worktree.sh.txt → .trellis/scripts/common/worktree.sh} +0 -0
- /package/dist/{templates/scripts/create-bootstrap.sh.txt → .trellis/scripts/create-bootstrap.sh} +0 -0
- /package/dist/{templates/scripts/get-context.sh.txt → .trellis/scripts/get-context.sh} +0 -0
- /package/dist/{templates/scripts/get-developer.sh.txt → .trellis/scripts/get-developer.sh} +0 -0
- /package/dist/{templates/scripts/init-developer.sh.txt → .trellis/scripts/init-developer.sh} +0 -0
- /package/dist/{templates/markdown/workflow.md.txt → .trellis/workflow.md} +0 -0
- /package/dist/templates/markdown/{agents.md.txt → agents.md} +0 -0
- /package/dist/templates/markdown/{init-agent.md.txt → init-agent.md} +0 -0
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
**Most bugs and tech debt come from "didn't think of that"**, not from lack of skill:
|
|
10
10
|
|
|
11
|
-
- Didn't think about what happens at layer boundaries
|
|
12
|
-
- Didn't think about code patterns repeating
|
|
13
|
-
- Didn't think about edge cases
|
|
14
|
-
- Didn't think about future maintainers
|
|
11
|
+
- Didn't think about what happens at layer boundaries -> cross-layer bugs
|
|
12
|
+
- Didn't think about code patterns repeating -> duplicated code everywhere
|
|
13
|
+
- Didn't think about edge cases -> runtime errors
|
|
14
|
+
- Didn't think about future maintainers -> unreadable code
|
|
15
15
|
|
|
16
16
|
These guides help you **ask the right questions before coding**.
|
|
17
17
|
|
|
@@ -35,7 +35,7 @@ These guides help you **ask the right questions before coding**.
|
|
|
35
35
|
- [ ] Multiple consumers need the same data
|
|
36
36
|
- [ ] You're not sure where to put some logic
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
-> Read [Cross-Layer Thinking Guide](./cross-layer-thinking-guide.md)
|
|
39
39
|
|
|
40
40
|
### When to Think About Code Reuse
|
|
41
41
|
|
|
@@ -43,9 +43,9 @@ These guides help you **ask the right questions before coding**.
|
|
|
43
43
|
- [ ] You see the same pattern repeated 3+ times
|
|
44
44
|
- [ ] You're adding a new field to multiple places
|
|
45
45
|
- [ ] **You're modifying any constant or config**
|
|
46
|
-
- [ ] **You're creating a new utility/helper function**
|
|
46
|
+
- [ ] **You're creating a new utility/helper function** <- Search first!
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
-> Read [Code Reuse Thinking Guide](./code-reuse-thinking-guide.md)
|
|
49
49
|
|
|
50
50
|
---
|
|
51
51
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Worktree Configuration for Multi-Agent Pipeline
|
|
2
|
+
# Used for worktree initialization in multi-agent workflows
|
|
3
|
+
#
|
|
4
|
+
# All paths are relative to project root
|
|
5
|
+
|
|
6
|
+
#-------------------------------------------------------------------------------
|
|
7
|
+
# Paths
|
|
8
|
+
#-------------------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
# Worktree storage directory (relative to project root)
|
|
11
|
+
# Recommended: keep worktrees outside the main repo to avoid conflicts
|
|
12
|
+
worktree_dir: ../<project-name>-worktrees
|
|
13
|
+
|
|
14
|
+
#-------------------------------------------------------------------------------
|
|
15
|
+
# Files to Copy
|
|
16
|
+
#-------------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
# Files to copy to each worktree (each worktree needs independent copy)
|
|
19
|
+
# These files contain sensitive info or need worktree-independent config
|
|
20
|
+
copy:
|
|
21
|
+
# Environment variables (uncomment and customize as needed)
|
|
22
|
+
# - .env
|
|
23
|
+
# - .env.local
|
|
24
|
+
# Workflow config
|
|
25
|
+
- .trellis/.developer
|
|
26
|
+
|
|
27
|
+
#-------------------------------------------------------------------------------
|
|
28
|
+
# Post-Create Hooks
|
|
29
|
+
#-------------------------------------------------------------------------------
|
|
30
|
+
|
|
31
|
+
# Commands to run after creating worktree
|
|
32
|
+
# Executed in worktree directory, in order, abort on failure
|
|
33
|
+
post_create:
|
|
34
|
+
# Install dependencies (uncomment based on your package manager)
|
|
35
|
+
# - npm install
|
|
36
|
+
# - pnpm install --frozen-lockfile
|
|
37
|
+
# - yarn install --frozen-lockfile
|
|
38
|
+
# - pip install -r requirements.txt
|
|
39
|
+
# - bundle install
|
|
40
|
+
# - cargo build
|
|
41
|
+
|
|
42
|
+
#-------------------------------------------------------------------------------
|
|
43
|
+
# Pre-Merge Checks
|
|
44
|
+
#-------------------------------------------------------------------------------
|
|
45
|
+
|
|
46
|
+
# Pre-merge validation (used by create-pr.sh)
|
|
47
|
+
pre_merge:
|
|
48
|
+
# Type checking (uncomment based on your setup)
|
|
49
|
+
# - npm run typecheck
|
|
50
|
+
# - pnpm typecheck
|
|
51
|
+
# - mypy .
|
|
52
|
+
# Linting
|
|
53
|
+
# - npm run lint
|
|
54
|
+
# - pnpm lint
|
|
55
|
+
# - ruff check .
|
|
56
|
+
# Testing
|
|
57
|
+
# - npm test
|
|
58
|
+
# - pytest
|
package/package.json
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Command template configurator
|
|
3
|
-
*
|
|
4
|
-
* Provides command templates based on the target AI tool's capabilities.
|
|
5
|
-
* Different AI tools support different features, so we generate
|
|
6
|
-
* appropriate command sets for each.
|
|
7
|
-
*/
|
|
8
|
-
import type { AITool } from "../types/ai-tools.js";
|
|
9
|
-
export type CommandTemplates = Record<string, string>;
|
|
10
|
-
/**
|
|
11
|
-
* Get command templates for a specific AI tool
|
|
12
|
-
*
|
|
13
|
-
* @param tool - The AI tool to get templates for (defaults to claude-code for full support)
|
|
14
|
-
* @returns A record of command name to template content
|
|
15
|
-
*/
|
|
16
|
-
export declare function getCommandTemplates(tool?: AITool): CommandTemplates;
|
|
17
|
-
/**
|
|
18
|
-
* Get all command templates regardless of AI tool
|
|
19
|
-
* Useful for tools that support all features
|
|
20
|
-
*
|
|
21
|
-
* @returns A record of all command names to template content
|
|
22
|
-
*/
|
|
23
|
-
export declare function getAllCommandTemplates(): CommandTemplates;
|
|
24
|
-
/**
|
|
25
|
-
* Get command templates for Claude Code (full feature set)
|
|
26
|
-
*/
|
|
27
|
-
export declare function getClaudeCodeTemplates(): CommandTemplates;
|
|
28
|
-
/**
|
|
29
|
-
* Get command templates for Cursor (common features only)
|
|
30
|
-
*/
|
|
31
|
-
export declare function getCursorTemplates(): CommandTemplates;
|
|
32
|
-
/**
|
|
33
|
-
* Get the list of available command names for a tool
|
|
34
|
-
*/
|
|
35
|
-
export declare function getAvailableCommands(tool?: AITool): string[];
|
|
36
|
-
/**
|
|
37
|
-
* Get command descriptions for a tool (useful for help text)
|
|
38
|
-
*/
|
|
39
|
-
export declare function getCommandDescriptions(tool?: AITool): Record<string, string>;
|
|
40
|
-
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/configurators/templates.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAOnD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,GAAE,MAAsB,GAC3B,gBAAgB,CAGlB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,gBAAgB,CAEzD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,gBAAgB,CAEzD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,CAErD;AAaD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,GAAE,MAAsB,GAAG,MAAM,EAAE,CAE3E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,GAAE,MAAsB,GAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Command template configurator
|
|
3
|
-
*
|
|
4
|
-
* Provides command templates based on the target AI tool's capabilities.
|
|
5
|
-
* Different AI tools support different features, so we generate
|
|
6
|
-
* appropriate command sets for each.
|
|
7
|
-
*/
|
|
8
|
-
import { getTemplatesForTool, getAllTemplates, } from "../templates/commands/index.js";
|
|
9
|
-
/**
|
|
10
|
-
* Get command templates for a specific AI tool
|
|
11
|
-
*
|
|
12
|
-
* @param tool - The AI tool to get templates for (defaults to claude-code for full support)
|
|
13
|
-
* @returns A record of command name to template content
|
|
14
|
-
*/
|
|
15
|
-
export function getCommandTemplates(tool = "claude-code") {
|
|
16
|
-
const templates = getTemplatesForTool(tool);
|
|
17
|
-
return templatesToRecord(templates);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get all command templates regardless of AI tool
|
|
21
|
-
* Useful for tools that support all features
|
|
22
|
-
*
|
|
23
|
-
* @returns A record of all command names to template content
|
|
24
|
-
*/
|
|
25
|
-
export function getAllCommandTemplates() {
|
|
26
|
-
return templatesToRecord(getAllTemplates());
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get command templates for Claude Code (full feature set)
|
|
30
|
-
*/
|
|
31
|
-
export function getClaudeCodeTemplates() {
|
|
32
|
-
return getCommandTemplates("claude-code");
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Get command templates for Cursor (common features only)
|
|
36
|
-
*/
|
|
37
|
-
export function getCursorTemplates() {
|
|
38
|
-
return getCommandTemplates("cursor");
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Convert CommandTemplate array to CommandTemplates record
|
|
42
|
-
*/
|
|
43
|
-
function templatesToRecord(templates) {
|
|
44
|
-
const result = {};
|
|
45
|
-
for (const template of templates) {
|
|
46
|
-
result[template.name] = template.content;
|
|
47
|
-
}
|
|
48
|
-
return result;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Get the list of available command names for a tool
|
|
52
|
-
*/
|
|
53
|
-
export function getAvailableCommands(tool = "claude-code") {
|
|
54
|
-
return getTemplatesForTool(tool).map((t) => t.name);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Get command descriptions for a tool (useful for help text)
|
|
58
|
-
*/
|
|
59
|
-
export function getCommandDescriptions(tool = "claude-code") {
|
|
60
|
-
const templates = getTemplatesForTool(tool);
|
|
61
|
-
const result = {};
|
|
62
|
-
for (const template of templates) {
|
|
63
|
-
result[template.name] = template.description;
|
|
64
|
-
}
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=templates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/configurators/templates.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,mBAAmB,EACnB,eAAe,GAEhB,MAAM,gCAAgC,CAAC;AAIxC;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,OAAe,aAAa;IAE5B,MAAM,SAAS,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC5C,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACtC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,iBAAiB,CAAC,eAAe,EAAE,CAAC,CAAC;AAC9C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,mBAAmB,CAAC,aAAa,CAAC,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,SAAS,iBAAiB,CAAC,SAA4B;IACrD,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC;IAC3C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe,aAAa;IAC/D,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAe,aAAa;IAE5B,MAAM,SAAS,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC;IAC/C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent templates for Multi-Agent Pipeline
|
|
3
|
-
*
|
|
4
|
-
* Supports multiple output formats:
|
|
5
|
-
* - Claude Code: YAML frontmatter with name, description, tools (string), model
|
|
6
|
-
* - OpenCode: YAML frontmatter with description, tools (object)
|
|
7
|
-
*
|
|
8
|
-
* The agent body content is shared across formats.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Output format type
|
|
12
|
-
*/
|
|
13
|
-
export type AgentFormat = "claude" | "opencode";
|
|
14
|
-
/**
|
|
15
|
-
* Get full agent content with format-specific frontmatter
|
|
16
|
-
*/
|
|
17
|
-
export declare function getAgentContent(name: string, format: AgentFormat): string;
|
|
18
|
-
/**
|
|
19
|
-
* Agent template definition (for backwards compatibility)
|
|
20
|
-
*/
|
|
21
|
-
export interface AgentTemplate {
|
|
22
|
-
/** Agent name (used for filename) */
|
|
23
|
-
name: string;
|
|
24
|
-
/** Template content */
|
|
25
|
-
content: string;
|
|
26
|
-
/** Human-readable description */
|
|
27
|
-
description: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Get all agent templates for a specific format
|
|
31
|
-
*/
|
|
32
|
-
export declare function getAllAgents(format?: AgentFormat): AgentTemplate[];
|
|
33
|
-
/**
|
|
34
|
-
* Get a specific agent template by name
|
|
35
|
-
*/
|
|
36
|
-
export declare function getAgentByName(name: string, format?: AgentFormat): AgentTemplate | undefined;
|
|
37
|
-
export declare const implementAgentTemplate: string;
|
|
38
|
-
export declare const checkAgentTemplate: string;
|
|
39
|
-
export declare const debugAgentTemplate: string;
|
|
40
|
-
export declare const researchAgentTemplate: string;
|
|
41
|
-
export declare const dispatchAgentTemplate: string;
|
|
42
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/agents/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgBH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;AAgFhD;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAiBzE;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,GAAE,WAAsB,GAAG,aAAa,EAAE,CAU5E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,WAAsB,GAC7B,aAAa,GAAG,SAAS,CAa3B;AAGD,eAAO,MAAM,sBAAsB,EAAE,MAGpC,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,MAA2C,CAAC;AAC7E,eAAO,MAAM,kBAAkB,EAAE,MAA2C,CAAC;AAC7E,eAAO,MAAM,qBAAqB,EAAE,MAGnC,CAAC;AACF,eAAO,MAAM,qBAAqB,EAAE,MAGnC,CAAC"}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent templates for Multi-Agent Pipeline
|
|
3
|
-
*
|
|
4
|
-
* Supports multiple output formats:
|
|
5
|
-
* - Claude Code: YAML frontmatter with name, description, tools (string), model
|
|
6
|
-
* - OpenCode: YAML frontmatter with description, tools (object)
|
|
7
|
-
*
|
|
8
|
-
* The agent body content is shared across formats.
|
|
9
|
-
*/
|
|
10
|
-
import { readFileSync } from "fs";
|
|
11
|
-
import { dirname, join } from "path";
|
|
12
|
-
import { fileURLToPath } from "url";
|
|
13
|
-
import { AGENT_METADATA, getAgentMetadata, getAgentNamesForFormat, } from "./metadata.js";
|
|
14
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
15
|
-
const __dirname = dirname(__filename);
|
|
16
|
-
/**
|
|
17
|
-
* Read an agent body template (without frontmatter)
|
|
18
|
-
*/
|
|
19
|
-
function readAgentBody(name) {
|
|
20
|
-
const filePath = join(__dirname, "bodies", `${name}.md`);
|
|
21
|
-
return readFileSync(filePath, "utf-8");
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Format tools as Claude Code style (comma-separated string)
|
|
25
|
-
*/
|
|
26
|
-
function formatClaudeTools(tools) {
|
|
27
|
-
const toolNames = [];
|
|
28
|
-
if (tools.read)
|
|
29
|
-
toolNames.push("Read");
|
|
30
|
-
if (tools.write)
|
|
31
|
-
toolNames.push("Write");
|
|
32
|
-
if (tools.edit)
|
|
33
|
-
toolNames.push("Edit");
|
|
34
|
-
if (tools.bash)
|
|
35
|
-
toolNames.push("Bash");
|
|
36
|
-
if (tools.glob)
|
|
37
|
-
toolNames.push("Glob");
|
|
38
|
-
if (tools.grep)
|
|
39
|
-
toolNames.push("Grep");
|
|
40
|
-
// Add external tools for agents that have them
|
|
41
|
-
toolNames.push("mcp__exa__web_search_exa", "mcp__exa__get_code_context_exa");
|
|
42
|
-
return toolNames.join(", ");
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Format tools as OpenCode style (YAML object)
|
|
46
|
-
*/
|
|
47
|
-
function formatOpenCodeTools(tools) {
|
|
48
|
-
const lines = [
|
|
49
|
-
` read: ${tools.read}`,
|
|
50
|
-
` write: ${tools.write}`,
|
|
51
|
-
` edit: ${tools.edit}`,
|
|
52
|
-
` bash: ${tools.bash}`,
|
|
53
|
-
` glob: ${tools.glob}`,
|
|
54
|
-
` grep: ${tools.grep}`,
|
|
55
|
-
];
|
|
56
|
-
return lines.join("\n");
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Generate Claude Code frontmatter
|
|
60
|
-
*/
|
|
61
|
-
function generateClaudeFrontmatter(meta) {
|
|
62
|
-
const lines = [
|
|
63
|
-
"---",
|
|
64
|
-
`name: ${meta.name}`,
|
|
65
|
-
`description: |`,
|
|
66
|
-
` ${meta.description}`,
|
|
67
|
-
`tools: ${formatClaudeTools(meta.tools)}`,
|
|
68
|
-
];
|
|
69
|
-
if (meta.model) {
|
|
70
|
-
lines.push(`model: ${meta.model}`);
|
|
71
|
-
}
|
|
72
|
-
lines.push("---", "");
|
|
73
|
-
return lines.join("\n");
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Generate OpenCode frontmatter
|
|
77
|
-
*
|
|
78
|
-
* OpenCode agents use:
|
|
79
|
-
* - description: Brief description of agent purpose
|
|
80
|
-
* - mode: subagent (invoked via @mention) | primary (cycled with Tab) | all
|
|
81
|
-
* - tools: Object with boolean values for each tool
|
|
82
|
-
*/
|
|
83
|
-
function generateOpenCodeFrontmatter(meta) {
|
|
84
|
-
const lines = [
|
|
85
|
-
"---",
|
|
86
|
-
`description: ${meta.description}`,
|
|
87
|
-
"mode: subagent",
|
|
88
|
-
"tools:",
|
|
89
|
-
formatOpenCodeTools(meta.tools),
|
|
90
|
-
"---",
|
|
91
|
-
"",
|
|
92
|
-
];
|
|
93
|
-
return lines.join("\n");
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Get full agent content with format-specific frontmatter
|
|
97
|
-
*/
|
|
98
|
-
export function getAgentContent(name, format) {
|
|
99
|
-
const meta = getAgentMetadata(name);
|
|
100
|
-
if (!meta) {
|
|
101
|
-
throw new Error(`Unknown agent: ${name}`);
|
|
102
|
-
}
|
|
103
|
-
if (format === "opencode" && !meta.supportsOpenCode) {
|
|
104
|
-
throw new Error(`Agent ${name} does not support OpenCode format`);
|
|
105
|
-
}
|
|
106
|
-
const body = readAgentBody(name);
|
|
107
|
-
const frontmatter = format === "claude"
|
|
108
|
-
? generateClaudeFrontmatter(meta)
|
|
109
|
-
: generateOpenCodeFrontmatter(meta);
|
|
110
|
-
return frontmatter + body;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Get all agent templates for a specific format
|
|
114
|
-
*/
|
|
115
|
-
export function getAllAgents(format = "claude") {
|
|
116
|
-
const names = getAgentNamesForFormat(format);
|
|
117
|
-
return names.map((name) => {
|
|
118
|
-
const meta = AGENT_METADATA[name];
|
|
119
|
-
return {
|
|
120
|
-
name,
|
|
121
|
-
content: getAgentContent(name, format),
|
|
122
|
-
description: meta.description,
|
|
123
|
-
};
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Get a specific agent template by name
|
|
128
|
-
*/
|
|
129
|
-
export function getAgentByName(name, format = "claude") {
|
|
130
|
-
const meta = getAgentMetadata(name);
|
|
131
|
-
if (!meta)
|
|
132
|
-
return undefined;
|
|
133
|
-
if (format === "opencode" && !meta.supportsOpenCode) {
|
|
134
|
-
return undefined;
|
|
135
|
-
}
|
|
136
|
-
return {
|
|
137
|
-
name,
|
|
138
|
-
content: getAgentContent(name, format),
|
|
139
|
-
description: meta.description,
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
// Legacy exports for backwards compatibility
|
|
143
|
-
export const implementAgentTemplate = getAgentContent("implement", "claude");
|
|
144
|
-
export const checkAgentTemplate = getAgentContent("check", "claude");
|
|
145
|
-
export const debugAgentTemplate = getAgentContent("debug", "claude");
|
|
146
|
-
export const researchAgentTemplate = getAgentContent("research", "claude");
|
|
147
|
-
export const dispatchAgentTemplate = getAgentContent("dispatch", "claude");
|
|
148
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":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M,KAAK,UAAU,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACpD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,IAAI;QACJ,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC;QACtC,WAAW,EAAE,IAAI,CAAC,WAAW;KAC9B,CAAC;AACJ,CAAC;AAED,6CAA6C;AAC7C,MAAM,CAAC,MAAM,sBAAsB,GAAW,eAAe,CAC3D,WAAW,EACX,QAAQ,CACT,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAW,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,kBAAkB,GAAW,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,qBAAqB,GAAW,eAAe,CAC1D,UAAU,EACV,QAAQ,CACT,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAW,eAAe,CAC1D,UAAU,EACV,QAAQ,CACT,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent metadata definitions
|
|
3
|
-
*
|
|
4
|
-
* Shared metadata for all agents, used to generate format-specific frontmatter.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Tool permissions for agents
|
|
8
|
-
*/
|
|
9
|
-
export interface AgentTools {
|
|
10
|
-
read: boolean;
|
|
11
|
-
write: boolean;
|
|
12
|
-
edit: boolean;
|
|
13
|
-
bash: boolean;
|
|
14
|
-
glob: boolean;
|
|
15
|
-
grep: boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Agent metadata
|
|
19
|
-
*/
|
|
20
|
-
export interface AgentMetadata {
|
|
21
|
-
/** Agent name */
|
|
22
|
-
name: string;
|
|
23
|
-
/** Human-readable description */
|
|
24
|
-
description: string;
|
|
25
|
-
/** Tool permissions */
|
|
26
|
-
tools: AgentTools;
|
|
27
|
-
/** Preferred model (Claude format only) */
|
|
28
|
-
model?: "opus" | "sonnet" | "haiku";
|
|
29
|
-
/** Whether this agent is available for OpenCode */
|
|
30
|
-
supportsOpenCode: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* All agent metadata definitions
|
|
34
|
-
*/
|
|
35
|
-
export declare const AGENT_METADATA: Record<string, AgentMetadata>;
|
|
36
|
-
/**
|
|
37
|
-
* Get metadata for a specific agent
|
|
38
|
-
*/
|
|
39
|
-
export declare function getAgentMetadata(name: string): AgentMetadata | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Get all agent names
|
|
42
|
-
*/
|
|
43
|
-
export declare function getAllAgentNames(): string[];
|
|
44
|
-
/**
|
|
45
|
-
* Get agent names that support a specific format
|
|
46
|
-
*/
|
|
47
|
-
export declare function getAgentNamesForFormat(format: "claude" | "opencode"): string[];
|
|
48
|
-
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/templates/agents/metadata.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB;IACvB,KAAK,EAAE,UAAU,CAAC;IAClB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,mDAAmD;IACnD,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CA4ExD,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAExE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,EAAE,CAE3C;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,QAAQ,GAAG,UAAU,GAC5B,MAAM,EAAE,CAIV"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent metadata definitions
|
|
3
|
-
*
|
|
4
|
-
* Shared metadata for all agents, used to generate format-specific frontmatter.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* All agent metadata definitions
|
|
8
|
-
*/
|
|
9
|
-
export const AGENT_METADATA = {
|
|
10
|
-
implement: {
|
|
11
|
-
name: "implement",
|
|
12
|
-
description: "Code implementation expert. Understands specs and requirements, then implements features. No git commit allowed.",
|
|
13
|
-
tools: {
|
|
14
|
-
read: true,
|
|
15
|
-
write: true,
|
|
16
|
-
edit: true,
|
|
17
|
-
bash: true,
|
|
18
|
-
glob: true,
|
|
19
|
-
grep: true,
|
|
20
|
-
},
|
|
21
|
-
model: "opus",
|
|
22
|
-
supportsOpenCode: true,
|
|
23
|
-
},
|
|
24
|
-
check: {
|
|
25
|
-
name: "check",
|
|
26
|
-
description: "Code quality check expert. Reviews code changes against specs and self-fixes issues.",
|
|
27
|
-
tools: {
|
|
28
|
-
read: true,
|
|
29
|
-
write: true,
|
|
30
|
-
edit: true,
|
|
31
|
-
bash: true,
|
|
32
|
-
glob: true,
|
|
33
|
-
grep: true,
|
|
34
|
-
},
|
|
35
|
-
model: "opus",
|
|
36
|
-
supportsOpenCode: true,
|
|
37
|
-
},
|
|
38
|
-
debug: {
|
|
39
|
-
name: "debug",
|
|
40
|
-
description: "Issue fixing expert. Understands issues, fixes against specs, and verifies fixes. Precise fixes only.",
|
|
41
|
-
tools: {
|
|
42
|
-
read: true,
|
|
43
|
-
write: true,
|
|
44
|
-
edit: true,
|
|
45
|
-
bash: true,
|
|
46
|
-
glob: true,
|
|
47
|
-
grep: true,
|
|
48
|
-
},
|
|
49
|
-
model: "sonnet",
|
|
50
|
-
supportsOpenCode: true,
|
|
51
|
-
},
|
|
52
|
-
research: {
|
|
53
|
-
name: "research",
|
|
54
|
-
description: "Code and tech search expert. Pure research, no code modifications. Finds files, patterns, and tech solutions.",
|
|
55
|
-
tools: {
|
|
56
|
-
read: true,
|
|
57
|
-
write: false,
|
|
58
|
-
edit: false,
|
|
59
|
-
bash: false,
|
|
60
|
-
glob: true,
|
|
61
|
-
grep: true,
|
|
62
|
-
},
|
|
63
|
-
model: "haiku",
|
|
64
|
-
supportsOpenCode: true,
|
|
65
|
-
},
|
|
66
|
-
dispatch: {
|
|
67
|
-
name: "dispatch",
|
|
68
|
-
description: "Multi-Agent Pipeline main dispatcher. Pure dispatcher. Only responsible for calling subagents and scripts in phase order.",
|
|
69
|
-
tools: {
|
|
70
|
-
read: true,
|
|
71
|
-
write: false,
|
|
72
|
-
edit: false,
|
|
73
|
-
bash: true,
|
|
74
|
-
glob: false,
|
|
75
|
-
grep: false,
|
|
76
|
-
},
|
|
77
|
-
model: "sonnet",
|
|
78
|
-
supportsOpenCode: false, // OpenCode doesn't use dispatch pattern
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Get metadata for a specific agent
|
|
83
|
-
*/
|
|
84
|
-
export function getAgentMetadata(name) {
|
|
85
|
-
return AGENT_METADATA[name];
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Get all agent names
|
|
89
|
-
*/
|
|
90
|
-
export function getAllAgentNames() {
|
|
91
|
-
return Object.keys(AGENT_METADATA);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Get agent names that support a specific format
|
|
95
|
-
*/
|
|
96
|
-
export function getAgentNamesForFormat(format) {
|
|
97
|
-
return Object.entries(AGENT_METADATA)
|
|
98
|
-
.filter(([_, meta]) => (format === "opencode" ? meta.supportsOpenCode : true))
|
|
99
|
-
.map(([name]) => name);
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=metadata.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/templates/agents/metadata.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA8BH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAkC;IAC3D,SAAS,EAAE;QACT,IAAI,EAAE,WAAW;QACjB,WAAW,EACT,kHAAkH;QACpH,KAAK,EAAE;YACL,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACX;QACD,KAAK,EAAE,MAAM;QACb,gBAAgB,EAAE,IAAI;KACvB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,WAAW,EACT,sFAAsF;QACxF,KAAK,EAAE;YACL,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACX;QACD,KAAK,EAAE,MAAM;QACb,gBAAgB,EAAE,IAAI;KACvB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,WAAW,EACT,uGAAuG;QACzG,KAAK,EAAE;YACL,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACX;QACD,KAAK,EAAE,QAAQ;QACf,gBAAgB,EAAE,IAAI;KACvB;IACD,QAAQ,EAAE;QACR,IAAI,EAA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-
* All templates are in common/ and work with all supported AI tools.
|
|
5
|
-
* The claude/ directory is reserved for future Claude-specific commands.
|
|
6
|
-
*/
|
|
7
|
-
import type { AITool, TemplateDir } from "../../types/ai-tools.js";
|
|
8
|
-
export declare const claudeStartTemplate: string;
|
|
9
|
-
export declare const claudeParallelTemplate: string;
|
|
10
|
-
export declare const cursorStartTemplate: string;
|
|
11
|
-
export declare const opencodeStartTemplate: string;
|
|
12
|
-
export declare const recordAgentFlowTemplate: string;
|
|
13
|
-
export declare const onboardDeveloperTemplate: string;
|
|
14
|
-
export declare const checkFrontendTemplate: string;
|
|
15
|
-
export declare const checkBackendTemplate: string;
|
|
16
|
-
export declare const checkCrossLayerTemplate: string;
|
|
17
|
-
export declare const beforeFrontendDevTemplate: string;
|
|
18
|
-
export declare const beforeBackendDevTemplate: string;
|
|
19
|
-
export declare const finishWorkTemplate: string;
|
|
20
|
-
export declare const breakLoopTemplate: string;
|
|
21
|
-
export declare const createCommandTemplate: string;
|
|
22
|
-
export declare const integrateSkillTemplate: string;
|
|
23
|
-
/**
|
|
24
|
-
* Command template definition
|
|
25
|
-
*/
|
|
26
|
-
export interface CommandTemplate {
|
|
27
|
-
/** Command name (used for filename) */
|
|
28
|
-
name: string;
|
|
29
|
-
/** Template content */
|
|
30
|
-
content: string;
|
|
31
|
-
/** Human-readable description */
|
|
32
|
-
description: string;
|
|
33
|
-
/** Which directory this template belongs to */
|
|
34
|
-
category: TemplateDir;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Get command templates available for a specific AI tool
|
|
38
|
-
*/
|
|
39
|
-
export declare function getTemplatesForTool(tool: AITool): CommandTemplate[];
|
|
40
|
-
/**
|
|
41
|
-
* Get all command templates
|
|
42
|
-
*/
|
|
43
|
-
export declare function getAllTemplates(): CommandTemplate[];
|
|
44
|
-
/**
|
|
45
|
-
* Get a specific template by name
|
|
46
|
-
*/
|
|
47
|
-
export declare function getTemplateByName(name: string): CommandTemplate | undefined;
|
|
48
|
-
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