@allthingsclaude/blueprints 0.2.0 → 0.3.0-beta.10
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/README.md +80 -12
- package/content/agents/audit.md +40 -25
- package/content/agents/bootstrap.md +25 -5
- package/content/agents/changelog.md +350 -0
- package/content/agents/cleanup.md +155 -0
- package/content/agents/commit.md +235 -0
- package/content/agents/debug.md +198 -0
- package/content/agents/docs.md +344 -0
- package/content/agents/{optimize.md → dry.md} +38 -15
- package/content/agents/explain.md +195 -0
- package/content/agents/finalize.md +20 -5
- package/content/agents/handoff.md +11 -5
- package/content/agents/imagine.md +2 -2
- package/content/agents/implement.md +54 -16
- package/content/agents/migrate.md +330 -0
- package/content/agents/parallelize.md +21 -4
- package/content/agents/plan.md +35 -5
- package/content/agents/refactor.md +156 -0
- package/content/agents/release.md +502 -0
- package/content/agents/research-codebase.md +160 -18
- package/content/agents/research-docs.md +135 -19
- package/content/agents/research-web.md +149 -19
- package/content/agents/secure.md +351 -0
- package/content/agents/storyboard.md +11 -5
- package/content/agents/test.md +181 -0
- package/content/commands/audit.md +15 -24
- package/content/commands/auto.md +361 -0
- package/content/commands/bootstrap.md +2 -2
- package/content/commands/brainstorm.md +63 -9
- package/content/commands/challenge.md +7 -0
- package/content/commands/changelog.md +50 -0
- package/content/commands/cleanup.md +14 -301
- package/content/commands/commit.md +45 -0
- package/content/commands/critique.md +7 -0
- package/content/commands/debug.md +9 -251
- package/content/commands/docs.md +48 -0
- package/content/commands/dry.md +48 -0
- package/content/commands/explain.md +12 -309
- package/content/commands/finalize.md +3 -3
- package/content/commands/flush.md +9 -14
- package/content/commands/handoff.md +1 -1
- package/content/commands/implement.md +5 -5
- package/content/commands/kickoff.md +7 -4
- package/content/commands/migrate.md +54 -0
- package/content/commands/parallelize.md +2 -2
- package/content/commands/pickup.md +1 -1
- package/content/commands/plan.md +2 -2
- package/content/commands/refactor.md +21 -379
- package/content/commands/release.md +63 -0
- package/content/commands/research.md +1 -1
- package/content/commands/secure.md +51 -0
- package/content/commands/storyboard.md +3 -3
- package/content/commands/test.md +15 -201
- package/content/commands/verify.md +7 -0
- package/dist/cli.js +47 -15
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/installer.d.ts +29 -4
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +120 -17
- package/dist/installer.js.map +1 -1
- package/package.json +5 -1
- package/content/commands/optimize.md +0 -338
package/content/commands/test.md
CHANGED
|
@@ -12,13 +12,10 @@ I'll help you run tests, analyze failures, and generate missing test coverage.
|
|
|
12
12
|
|
|
13
13
|
**Working Directory**: !`pwd`
|
|
14
14
|
|
|
15
|
-
**Branch**: !`git branch --show-current`
|
|
15
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
16
16
|
|
|
17
17
|
**Test Configuration**:
|
|
18
|
-
!`ls -la vitest.config.* jest.config.* 2>/dev/null || echo "No test config found"`
|
|
19
|
-
|
|
20
|
-
**Test Files**:
|
|
21
|
-
!`find . -name "*.test.ts" -o -name "*.test.tsx" -o -name "*.spec.ts" -o -name "*.spec.tsx" 2>/dev/null | head -20 | wc -l` test files found
|
|
18
|
+
!`ls -la vitest.config.* jest.config.* playwright.config.* 2>/dev/null || echo "No test config found"`
|
|
22
19
|
|
|
23
20
|
---
|
|
24
21
|
|
|
@@ -28,202 +25,19 @@ $ARGUMENTS
|
|
|
28
25
|
|
|
29
26
|
---
|
|
30
27
|
|
|
31
|
-
## Test
|
|
32
|
-
|
|
33
|
-
Based on the arguments, determine the appropriate action:
|
|
34
|
-
|
|
35
|
-
### If no arguments or "run":
|
|
36
|
-
1. Run the full test suite: `pnpm test` or `pnpm test:run`
|
|
37
|
-
2. Analyze any failures
|
|
38
|
-
3. Provide fix suggestions
|
|
39
|
-
|
|
40
|
-
### If file pattern provided (e.g., "auth", "user.test.ts"):
|
|
41
|
-
1. Run targeted tests: `pnpm test [pattern]`
|
|
42
|
-
2. Show detailed output for failures
|
|
43
|
-
3. Suggest fixes
|
|
44
|
-
|
|
45
|
-
### If "generate" or "coverage":
|
|
46
|
-
1. Identify files without test coverage
|
|
47
|
-
2. Analyze the code structure
|
|
48
|
-
3. Generate test file templates with meaningful test cases
|
|
49
|
-
|
|
50
|
-
### If "watch":
|
|
51
|
-
1. Start test watcher: `pnpm test:watch` or `pnpm test --watch`
|
|
52
|
-
2. Provide guidance on TDD workflow
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## Test Analysis Framework
|
|
57
|
-
|
|
58
|
-
When tests fail, analyze systematically:
|
|
59
|
-
|
|
60
|
-
### 1. Categorize Failures
|
|
61
|
-
|
|
62
|
-
**Assertion Failures**:
|
|
63
|
-
- Expected vs actual value mismatch
|
|
64
|
-
- Missing or incorrect mock data
|
|
65
|
-
- Race conditions or timing issues
|
|
66
|
-
|
|
67
|
-
**Runtime Errors**:
|
|
68
|
-
- Import/module resolution
|
|
69
|
-
- Missing dependencies or mocks
|
|
70
|
-
- Type errors at runtime
|
|
71
|
-
|
|
72
|
-
**Environment Issues**:
|
|
73
|
-
- Missing env variables
|
|
74
|
-
- Database connection failures
|
|
75
|
-
- External service dependencies
|
|
76
|
-
|
|
77
|
-
### 2. Root Cause Analysis
|
|
78
|
-
|
|
79
|
-
For each failure:
|
|
80
|
-
- Read the test file and understand intent
|
|
81
|
-
- Read the implementation being tested
|
|
82
|
-
- Identify the gap between expected and actual behavior
|
|
83
|
-
- Check if it's a test bug or implementation bug
|
|
84
|
-
|
|
85
|
-
### 3. Fix Suggestions
|
|
86
|
-
|
|
87
|
-
Provide specific, actionable fixes:
|
|
88
|
-
```markdown
|
|
89
|
-
### `path/to/file.test.ts:42` - Test Name
|
|
90
|
-
|
|
91
|
-
**Error**: [Error message]
|
|
92
|
-
|
|
93
|
-
**Root Cause**: [Analysis]
|
|
94
|
-
|
|
95
|
-
**Fix Option 1** (Update test):
|
|
96
|
-
```typescript
|
|
97
|
-
// Change this...
|
|
98
|
-
// To this...
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Fix Option 2** (Update implementation):
|
|
102
|
-
```typescript
|
|
103
|
-
// The implementation should...
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**Recommendation**: [Which fix is appropriate and why]
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Test Generation Guidelines
|
|
112
|
-
|
|
113
|
-
When generating tests:
|
|
114
|
-
|
|
115
|
-
### Structure
|
|
116
|
-
```typescript
|
|
117
|
-
import { describe, it, expect, vi, beforeEach } from 'vitest'
|
|
118
|
-
|
|
119
|
-
describe('[Component/Function Name]', () => {
|
|
120
|
-
beforeEach(() => {
|
|
121
|
-
// Reset mocks and state
|
|
122
|
-
})
|
|
123
|
-
|
|
124
|
-
describe('[method or behavior]', () => {
|
|
125
|
-
it('should [expected behavior] when [condition]', () => {
|
|
126
|
-
// Arrange
|
|
127
|
-
// Act
|
|
128
|
-
// Assert
|
|
129
|
-
})
|
|
28
|
+
## Launching Test Agent
|
|
130
29
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
30
|
+
The test agent will:
|
|
31
|
+
- Detect your test runner and package manager
|
|
32
|
+
- Run tests (full suite or targeted by pattern)
|
|
33
|
+
- Analyze failures with root cause identification
|
|
34
|
+
- Suggest specific fixes (test bug vs implementation bug)
|
|
35
|
+
- Generate test templates for uncovered files (if requested)
|
|
134
36
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Coverage Priorities
|
|
143
|
-
1. **Happy path**: Normal expected usage
|
|
144
|
-
2. **Edge cases**: Empty inputs, boundaries, nulls
|
|
145
|
-
3. **Error cases**: Invalid inputs, network failures
|
|
146
|
-
4. **Integration points**: API calls, database operations
|
|
147
|
-
|
|
148
|
-
### Mocking Strategy
|
|
149
|
-
- Mock external dependencies (APIs, databases)
|
|
150
|
-
- Use real implementations for pure functions
|
|
151
|
-
- Mock time-sensitive operations (dates, timers)
|
|
152
|
-
- Use `vi.spyOn` for partial mocks
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
## Output Format
|
|
157
|
-
|
|
158
|
-
### After Running Tests
|
|
159
|
-
|
|
160
|
-
```markdown
|
|
161
|
-
# Test Results
|
|
162
|
-
|
|
163
|
-
**Suite**: [test suite name or pattern]
|
|
164
|
-
**Status**: [PASS/FAIL]
|
|
165
|
-
**Duration**: [time]
|
|
166
|
-
|
|
167
|
-
## Summary
|
|
168
|
-
- Total: [X] tests
|
|
169
|
-
- Passed: [Y]
|
|
170
|
-
- Failed: [Z]
|
|
171
|
-
- Skipped: [N]
|
|
172
|
-
|
|
173
|
-
## Failures (if any)
|
|
174
|
-
|
|
175
|
-
### 1. `path/to/test.ts:42` - [Test Name]
|
|
176
|
-
|
|
177
|
-
**Error**:
|
|
178
|
-
```
|
|
179
|
-
[Error output]
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
**Analysis**: [Root cause explanation]
|
|
183
|
-
|
|
184
|
-
**Suggested Fix**:
|
|
185
|
-
```typescript
|
|
186
|
-
[Code fix]
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
---
|
|
190
|
-
|
|
191
|
-
## Recommendations
|
|
192
|
-
|
|
193
|
-
- [Action item 1]
|
|
194
|
-
- [Action item 2]
|
|
195
|
-
|
|
196
|
-
## Next Steps
|
|
197
|
-
|
|
198
|
-
1. Fix failing tests (if any)
|
|
199
|
-
2. Run `pnpm test` to verify fixes
|
|
200
|
-
3. Consider adding tests for [uncovered area]
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
## Special Considerations
|
|
206
|
-
|
|
207
|
-
### Async Testing
|
|
208
|
-
- Use `async/await` properly
|
|
209
|
-
- Handle promise rejections
|
|
210
|
-
- Set appropriate timeouts
|
|
211
|
-
|
|
212
|
-
### Component Testing (React)
|
|
213
|
-
- Use `@testing-library/react`
|
|
214
|
-
- Test user behavior, not implementation
|
|
215
|
-
- Avoid testing internal state
|
|
216
|
-
|
|
217
|
-
### API/tRPC Testing
|
|
218
|
-
- Mock Prisma client
|
|
219
|
-
- Test input validation
|
|
220
|
-
- Verify error responses
|
|
221
|
-
|
|
222
|
-
### Database Testing
|
|
223
|
-
- Use transactions for isolation
|
|
224
|
-
- Clean up test data
|
|
225
|
-
- Consider test fixtures
|
|
226
|
-
|
|
227
|
-
---
|
|
37
|
+
**Workflows**:
|
|
38
|
+
- No arguments → Run full suite, analyze failures
|
|
39
|
+
- File pattern → Run targeted tests
|
|
40
|
+
- `generate` → Identify untested files, create test templates
|
|
41
|
+
- `watch` → Start test watcher
|
|
228
42
|
|
|
229
|
-
|
|
43
|
+
Use the Task tool to launch the test agent (subagent_type="test") with the focus area and any additional context from arguments.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Verification Mode
|
|
3
|
+
argument-hint: [optional: approach or task to verify]
|
|
3
4
|
author: "@markoradak"
|
|
4
5
|
---
|
|
5
6
|
|
|
@@ -13,4 +14,10 @@ Before proceeding with this task, perform a quick verification check:
|
|
|
13
14
|
|
|
14
15
|
Keep it brief - just enough to make sure we're on the right track.
|
|
15
16
|
|
|
17
|
+
## Scope
|
|
18
|
+
|
|
19
|
+
This mode applies to the current task or topic. Once verification is done, normal conversation resumes.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
16
23
|
$ARGUMENTS
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,8 @@ import { program } from 'commander';
|
|
|
3
3
|
import inquirer from 'inquirer';
|
|
4
4
|
import chalk from 'chalk';
|
|
5
5
|
import ora from 'ora';
|
|
6
|
-
import { installBlueprints, getDefaultClaudeDir, getInstallPaths, POWER_LEVEL_LABELS } from './installer.js';
|
|
6
|
+
import { installBlueprints, getDefaultClaudeDir, getInstallPaths, getSourcePaths, POWER_LEVEL_LABELS, DEFAULT_TASKS_DIR } from './installer.js';
|
|
7
|
+
import fs from 'fs';
|
|
7
8
|
import { createRequire } from 'module';
|
|
8
9
|
const require = createRequire(import.meta.url);
|
|
9
10
|
const pkg = require('../package.json');
|
|
@@ -15,7 +16,8 @@ program
|
|
|
15
16
|
.option('-l, --local', 'Install to current directory (./.claude)')
|
|
16
17
|
.option('-p, --path <path>', 'Install to a custom path')
|
|
17
18
|
.option('-y, --yes', 'Skip confirmation prompts')
|
|
18
|
-
.option('--power <level>', 'Agent power level 1-5 (default:
|
|
19
|
+
.option('--power <level>', 'Agent power level 1-5 (default: 4)')
|
|
20
|
+
.option('--tasks-dir <name>', `Tasks directory name (default: ${DEFAULT_TASKS_DIR})`)
|
|
19
21
|
.parse(process.argv);
|
|
20
22
|
const options = program.opts();
|
|
21
23
|
async function main() {
|
|
@@ -94,7 +96,7 @@ async function main() {
|
|
|
94
96
|
powerLevel = parsed;
|
|
95
97
|
}
|
|
96
98
|
else if (options.yes) {
|
|
97
|
-
powerLevel =
|
|
99
|
+
powerLevel = 4;
|
|
98
100
|
}
|
|
99
101
|
else {
|
|
100
102
|
const powerAnswer = await inquirer.prompt([
|
|
@@ -103,25 +105,55 @@ async function main() {
|
|
|
103
105
|
name: 'power',
|
|
104
106
|
message: 'Select agent power level:',
|
|
105
107
|
choices: [
|
|
106
|
-
{ name: '1 - Economy (
|
|
107
|
-
{ name: '2 - Balanced (haiku
|
|
108
|
-
{ name: '3 - Standard (all sonnet
|
|
109
|
-
{ name: '4 - Enhanced (sonnet
|
|
110
|
-
{ name: '5 - Maximum (all opus — most capable)', value: 5 },
|
|
108
|
+
{ name: '1 - Economy (haiku + sonnet heavyweight — fastest, lowest cost)', value: 1 },
|
|
109
|
+
{ name: '2 - Balanced (haiku light, sonnet everything else)', value: 2 },
|
|
110
|
+
{ name: '3 - Standard (all sonnet)', value: 3 },
|
|
111
|
+
{ name: '4 - Enhanced (sonnet light, opus everything else — recommended)', value: 4 },
|
|
112
|
+
{ name: '5 - Maximum (all opus — most capable, highest cost)', value: 5 },
|
|
111
113
|
],
|
|
112
|
-
default:
|
|
114
|
+
default: 3 // 0-indexed, so index 3 = value 4
|
|
113
115
|
}
|
|
114
116
|
]);
|
|
115
117
|
powerLevel = powerAnswer.power;
|
|
116
118
|
}
|
|
119
|
+
// Determine tasks directory name
|
|
120
|
+
let tasksDir;
|
|
121
|
+
if (options.tasksDir) {
|
|
122
|
+
tasksDir = options.tasksDir;
|
|
123
|
+
}
|
|
124
|
+
else if (options.yes) {
|
|
125
|
+
tasksDir = DEFAULT_TASKS_DIR;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
const tasksDirAnswer = await inquirer.prompt([
|
|
129
|
+
{
|
|
130
|
+
type: 'input',
|
|
131
|
+
name: 'tasksDir',
|
|
132
|
+
message: 'Tasks directory name (for plans, handoffs, state):',
|
|
133
|
+
default: DEFAULT_TASKS_DIR,
|
|
134
|
+
validate: (input) => {
|
|
135
|
+
if (!input.trim())
|
|
136
|
+
return 'Please enter a directory name';
|
|
137
|
+
if (/[<>:"|?*]/.test(input))
|
|
138
|
+
return 'Invalid characters in directory name';
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
]);
|
|
143
|
+
tasksDir = tasksDirAnswer.tasksDir;
|
|
144
|
+
}
|
|
117
145
|
// Show what will be installed
|
|
118
146
|
const paths = getInstallPaths(targetPath);
|
|
147
|
+
const sourcePaths = getSourcePaths();
|
|
148
|
+
const commandCount = fs.readdirSync(sourcePaths.commands).filter(f => f.endsWith('.md')).length;
|
|
149
|
+
const agentCount = fs.readdirSync(sourcePaths.agents).filter(f => f.endsWith('.md')).length;
|
|
119
150
|
console.log();
|
|
120
151
|
console.log(chalk.yellow('Installation Summary:'));
|
|
121
152
|
console.log(chalk.dim('─'.repeat(50)));
|
|
122
|
-
console.log(` ${chalk.bold('Commands:')}
|
|
123
|
-
console.log(` ${chalk.bold('Agents:')}
|
|
153
|
+
console.log(` ${chalk.bold('Commands:')} ${commandCount} files → ${chalk.cyan(paths.commands)}`);
|
|
154
|
+
console.log(` ${chalk.bold('Agents:')} ${agentCount} files → ${chalk.cyan(paths.agents)}`);
|
|
124
155
|
console.log(` ${chalk.bold('Power Level:')} ${chalk.magenta(`${powerLevel} - ${POWER_LEVEL_LABELS[powerLevel]}`)}`);
|
|
156
|
+
console.log(` ${chalk.bold('Tasks Dir:')} ${chalk.cyan(`${tasksDir}/`)}`);
|
|
125
157
|
console.log(chalk.dim('─'.repeat(50)));
|
|
126
158
|
console.log();
|
|
127
159
|
// Confirm installation unless --yes flag is provided
|
|
@@ -142,7 +174,7 @@ async function main() {
|
|
|
142
174
|
// Perform installation
|
|
143
175
|
const spinner = ora('Installing blueprints...').start();
|
|
144
176
|
try {
|
|
145
|
-
const result = await installBlueprints(targetPath, powerLevel);
|
|
177
|
+
const result = await installBlueprints(targetPath, powerLevel, tasksDir);
|
|
146
178
|
spinner.succeed(chalk.green('Installation complete!'));
|
|
147
179
|
console.log();
|
|
148
180
|
console.log(chalk.dim('─'.repeat(50)));
|
|
@@ -163,9 +195,9 @@ async function main() {
|
|
|
163
195
|
console.log(` ${chalk.cyan('3.')} Type ${chalk.yellow('/plan')} to start planning, ${chalk.yellow('/research')} to research, etc.`);
|
|
164
196
|
}
|
|
165
197
|
console.log();
|
|
166
|
-
console.log(chalk.dim('Available commands: /audit, /bootstrap, /brainstorm, /challenge,
|
|
167
|
-
console.log(chalk.dim('/critique, /debug, /explain, /finalize, /flush, /handoff,
|
|
168
|
-
console.log(chalk.dim('/
|
|
198
|
+
console.log(chalk.dim('Available commands: /audit, /auto, /bootstrap, /brainstorm, /challenge,'));
|
|
199
|
+
console.log(chalk.dim('/cleanup, /critique, /debug, /dry, /explain, /finalize, /flush, /handoff,'));
|
|
200
|
+
console.log(chalk.dim('/imagine, /implement, /kickoff, /parallelize, /pickup, /plan, /refactor,'));
|
|
169
201
|
console.log(chalk.dim('/research, /storyboard, /test, /verify'));
|
|
170
202
|
console.log();
|
|
171
203
|
}
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEhJ,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAA6C,CAAC;AAanF,OAAO;KACJ,IAAI,CAAC,YAAY,CAAC;KAClB,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC;KAC5B,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,cAAc,EAAE,iDAAiD,CAAC;KACz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C,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;IAC9E,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,qBAAqB,YAAY,EAAE,CAAC,CAAC,CAAC;IAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Install Claude Code commands and agents for enhanced AI-assisted development workflows.
|
|
5
5
|
*/
|
|
6
|
-
export { getDefaultClaudeDir, getInstallPaths, getSourcePaths, installBlueprints, checkExistingInstallation, ensureDir, copyDirectory } from './installer.js';
|
|
6
|
+
export { getDefaultClaudeDir, getInstallPaths, getSourcePaths, installBlueprints, checkExistingInstallation, ensureDir, copyDirectory, DEFAULT_TASKS_DIR, TEMPLATE_VARS, buildTemplateVars, replaceTemplateVars } from './installer.js';
|
|
7
7
|
export type { InstallPaths, SourcePaths, InstallResult, ExistingInstallation } from './installer.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,SAAS,EACT,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,oBAAoB,EACrB,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Install Claude Code commands and agents for enhanced AI-assisted development workflows.
|
|
5
5
|
*/
|
|
6
|
-
export { getDefaultClaudeDir, getInstallPaths, getSourcePaths, installBlueprints, checkExistingInstallation, ensureDir, copyDirectory } from './installer.js';
|
|
6
|
+
export { getDefaultClaudeDir, getInstallPaths, getSourcePaths, installBlueprints, checkExistingInstallation, ensureDir, copyDirectory, DEFAULT_TASKS_DIR, TEMPLATE_VARS, buildTemplateVars, replaceTemplateVars } from './installer.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,SAAS,EACT,aAAa,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,gBAAgB,CAAC"}
|
package/dist/installer.d.ts
CHANGED
|
@@ -16,6 +16,13 @@ export interface InstallResult {
|
|
|
16
16
|
export type AgentPowerLevel = 1 | 2 | 3 | 4 | 5;
|
|
17
17
|
export declare const POWER_LEVEL_LABELS: Record<AgentPowerLevel, string>;
|
|
18
18
|
export declare const RESEARCH_AGENTS: string[];
|
|
19
|
+
export declare const LIGHTWEIGHT_AGENTS: string[];
|
|
20
|
+
export declare const HEAVYWEIGHT_AGENTS: string[];
|
|
21
|
+
export type AgentTier = 'lightweight' | 'research' | 'standard' | 'heavyweight';
|
|
22
|
+
export declare const DEFAULT_TASKS_DIR = "tasks";
|
|
23
|
+
export declare function buildTemplateVars(tasksDir?: string): Record<string, string>;
|
|
24
|
+
export declare const TEMPLATE_VARS: Record<string, string>;
|
|
25
|
+
export declare function replaceTemplateVars(content: string, tasksDir?: string): string;
|
|
19
26
|
export interface ExistingInstallation {
|
|
20
27
|
hasCommands: boolean;
|
|
21
28
|
hasAgents: boolean;
|
|
@@ -41,19 +48,37 @@ export declare function ensureDir(dirPath: string): void;
|
|
|
41
48
|
/**
|
|
42
49
|
* Copy all files from source to destination directory
|
|
43
50
|
*/
|
|
44
|
-
export declare function copyDirectory(srcDir: string, destDir: string): number;
|
|
51
|
+
export declare function copyDirectory(srcDir: string, destDir: string, tasksDir?: string): number;
|
|
45
52
|
/**
|
|
46
|
-
*
|
|
53
|
+
* Determine the tier for an agent based on its filename
|
|
54
|
+
*/
|
|
55
|
+
export declare function getAgentTier(filename: string): AgentTier;
|
|
56
|
+
/**
|
|
57
|
+
* Get the model to use for a given agent file based on power level and tier
|
|
58
|
+
*
|
|
59
|
+
* Tiers:
|
|
60
|
+
* - lightweight: commit, changelog, handoff, cleanup, imagine (rote tasks)
|
|
61
|
+
* - research: codebase/docs/web research (search + synthesize)
|
|
62
|
+
* - standard: refactor, test, plan, implement, etc. (balanced)
|
|
63
|
+
* - heavyweight: audit, debug, secure (deep reasoning, high stakes)
|
|
47
64
|
*/
|
|
48
65
|
export declare function getModelForAgent(filename: string, powerLevel: AgentPowerLevel): 'haiku' | 'sonnet' | 'opus';
|
|
49
66
|
/**
|
|
50
67
|
* Copy agent files with model rewritten based on power level
|
|
51
68
|
*/
|
|
52
|
-
export declare function copyAgentsWithPowerLevel(srcDir: string, destDir: string, powerLevel: AgentPowerLevel): number;
|
|
69
|
+
export declare function copyAgentsWithPowerLevel(srcDir: string, destDir: string, powerLevel: AgentPowerLevel, tasksDir?: string): number;
|
|
70
|
+
/**
|
|
71
|
+
* Get the current package version
|
|
72
|
+
*/
|
|
73
|
+
export declare function getPackageVersion(): string;
|
|
74
|
+
/**
|
|
75
|
+
* Remove files from a destination directory that no longer exist in the source
|
|
76
|
+
*/
|
|
77
|
+
export declare function cleanStaleFiles(srcDir: string, destDir: string): number;
|
|
53
78
|
/**
|
|
54
79
|
* Install blueprints to the target path
|
|
55
80
|
*/
|
|
56
|
-
export declare function installBlueprints(targetPath: string, powerLevel?: AgentPowerLevel): Promise<InstallResult>;
|
|
81
|
+
export declare function installBlueprints(targetPath: string, powerLevel?: AgentPowerLevel, tasksDir?: string): Promise<InstallResult>;
|
|
57
82
|
/**
|
|
58
83
|
* Check if blueprints are already installed at a path
|
|
59
84
|
*/
|
package/dist/installer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installer.d.ts","sourceRoot":"","sources":["../src/installer.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,YAAY,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;CAC7B;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEhD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAM9D,CAAC;AAEF,eAAO,MAAM,eAAe,UAI3B,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,YA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