aiag-cli 1.2.0 → 1.4.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/README.md +0 -4
- package/dist/cli.js +4 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/coding.md +13 -6
- package/dist/commands/run.d.ts +0 -9
- package/dist/commands/run.d.ts.map +0 -1
- package/dist/commands/run.js +0 -91
- package/dist/commands/run.js.map +0 -1
package/README.md
CHANGED
|
@@ -49,7 +49,6 @@ aiag commit
|
|
|
49
49
|
| `aiag init` | 현재 디렉토리에 AIAG 초기화 |
|
|
50
50
|
| `aiag status` | 프로젝트 진행 상황 표시 |
|
|
51
51
|
| `aiag next` | 다음 기능 추천 받기 |
|
|
52
|
-
| `aiag run <id>` | 특정 기능 구현 프롬프트 생성 |
|
|
53
52
|
| `aiag work [id]` | 단일 기능 작업 시작 (세션 + 프롬프트) |
|
|
54
53
|
| `aiag auto [count]` | 자동 연속 구현 모드 |
|
|
55
54
|
| `aiag test [id]` | 기능 테스트 실행 |
|
|
@@ -61,9 +60,6 @@ aiag commit
|
|
|
61
60
|
### 작업 지시 명령어
|
|
62
61
|
|
|
63
62
|
```bash
|
|
64
|
-
# 특정 기능의 구현 프롬프트 생성 (Claude Code에 붙여넣기용)
|
|
65
|
-
aiag run AUTH-001
|
|
66
|
-
|
|
67
63
|
# 단일 기능 작업 시작 (세션 컨텍스트 업데이트 + 프롬프트)
|
|
68
64
|
aiag work
|
|
69
65
|
aiag work AUTH-001
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from 'commander';
|
|
3
|
+
import { createRequire } from 'module';
|
|
3
4
|
import { init } from './commands/init.js';
|
|
4
5
|
import { status } from './commands/status.js';
|
|
5
6
|
import { next } from './commands/next.js';
|
|
@@ -7,11 +8,12 @@ import { test } from './commands/test.js';
|
|
|
7
8
|
import { complete } from './commands/complete.js';
|
|
8
9
|
import { commit } from './commands/commit.js';
|
|
9
10
|
import { sessionStart, sessionEnd } from './commands/session.js';
|
|
10
|
-
import { run } from './commands/run.js';
|
|
11
11
|
import { work } from './commands/work.js';
|
|
12
12
|
import { auto } from './commands/auto.js';
|
|
13
|
+
const require = createRequire(import.meta.url);
|
|
14
|
+
const { version } = require('../package.json');
|
|
13
15
|
const program = new Command();
|
|
14
|
-
program.name('aiag').description('AIAG CLI - Long-Running Agent Harness Tool').version(
|
|
16
|
+
program.name('aiag').description('AIAG CLI - Long-Running Agent Harness Tool').version(version);
|
|
15
17
|
// aiag init
|
|
16
18
|
program
|
|
17
19
|
.command('init')
|
|
@@ -78,14 +80,6 @@ session
|
|
|
78
80
|
.action(async () => {
|
|
79
81
|
await sessionEnd();
|
|
80
82
|
});
|
|
81
|
-
// aiag run <id> - 특정 기능 구현 지시 프롬프트 생성
|
|
82
|
-
program
|
|
83
|
-
.command('run <featureId>')
|
|
84
|
-
.description('Generate implementation prompt for a specific feature')
|
|
85
|
-
.option('--copy', 'Copy prompt to clipboard')
|
|
86
|
-
.action(async (featureId, options) => {
|
|
87
|
-
await run(featureId, options);
|
|
88
|
-
});
|
|
89
83
|
// aiag work [id] - 단일 기능 작업 시작
|
|
90
84
|
program
|
|
91
85
|
.command('work [featureId]')
|
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,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAA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AC;AAEL,+BAA+B;AAC/B,OAAO;KACJ,OAAO,CAAC,cAAc,CAAC;KACvB,WAAW,CAAC,0EAA0E,CAAC;KACvF,MAAM,CAAC,QAAQ,EAAE,yCAAyC,CAAC;KAC3D,MAAM,CAAC,UAAU,EAAE,uDAAuD,CAAC;KAC3E,MAAM,CAAC,qBAAqB,EAAE,iCAAiC,CAAC;KAChE,MAAM,CAAC,2BAA2B,EAAE,oBAAoB,CAAC;KACzD,MAAM,CAAC,WAAW,EAAE,gDAAgD,CAAC;KACrE,MAAM,CAAC,sBAAsB,EAAE,kCAAkC,EAAE,GAAG,CAAC;KACvE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAC/B,MAAM,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEL,kBAAkB;AAClB,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export { test } from './commands/test.js';
|
|
|
9
9
|
export { complete } from './commands/complete.js';
|
|
10
10
|
export { commit } from './commands/commit.js';
|
|
11
11
|
export { sessionStart, sessionEnd } from './commands/session.js';
|
|
12
|
-
export { run } from './commands/run.js';
|
|
13
12
|
export { work } from './commands/work.js';
|
|
14
13
|
export { auto } from './commands/auto.js';
|
|
15
14
|
//# 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":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,6 @@ export { test } from './commands/test.js';
|
|
|
10
10
|
export { complete } from './commands/complete.js';
|
|
11
11
|
export { commit } from './commands/commit.js';
|
|
12
12
|
export { sessionStart, sessionEnd } from './commands/session.js';
|
|
13
|
-
export { run } from './commands/run.js';
|
|
14
13
|
export { work } from './commands/work.js';
|
|
15
14
|
export { auto } from './commands/auto.js';
|
|
16
15
|
//# 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,0BAA0B;AAE1B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAE1B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC"}
|
package/package.json
CHANGED
package/templates/coding.md
CHANGED
|
@@ -27,11 +27,13 @@ You are activated when `.aiag/` directory **EXISTS**.
|
|
|
27
27
|
## Working Rules
|
|
28
28
|
|
|
29
29
|
### ONE Feature Rule
|
|
30
|
+
|
|
30
31
|
- Work on **exactly ONE feature** per session
|
|
31
32
|
- Do not start another feature until current is complete
|
|
32
33
|
- If stuck, document issue and end session cleanly
|
|
33
34
|
|
|
34
35
|
### Incremental Progress
|
|
36
|
+
|
|
35
37
|
- Small, working commits
|
|
36
38
|
- Never leave code in broken state
|
|
37
39
|
- Test after every significant change
|
|
@@ -59,12 +61,12 @@ Before setting `"passes": true`:
|
|
|
59
61
|
|
|
60
62
|
## File Editing Rules
|
|
61
63
|
|
|
62
|
-
| File
|
|
63
|
-
|
|
64
|
-
| `feature_list.json` | **Only edit `passes` field**
|
|
65
|
-
| `progress.md`
|
|
66
|
-
| `init.sh`
|
|
67
|
-
| Source code
|
|
64
|
+
| File | Rule |
|
|
65
|
+
| ------------------- | ------------------------------------- |
|
|
66
|
+
| `feature_list.json` | **Only edit `passes` field** |
|
|
67
|
+
| `progress.md` | **Append only** (new sessions at top) |
|
|
68
|
+
| `init.sh` | Rarely, only when environment changes |
|
|
69
|
+
| Source code | Normal editing |
|
|
68
70
|
|
|
69
71
|
## Progress Update Format
|
|
70
72
|
|
|
@@ -76,23 +78,28 @@ Add to `.aiag/progress.md`:
|
|
|
76
78
|
## Session: [ISO timestamp]
|
|
77
79
|
|
|
78
80
|
### Context
|
|
81
|
+
|
|
79
82
|
- Previous session status
|
|
80
83
|
- Current environment state
|
|
81
84
|
|
|
82
85
|
### Work Done
|
|
86
|
+
|
|
83
87
|
- [x] FEATURE-ID: Description
|
|
84
88
|
- Sub-task completed
|
|
85
89
|
- Another sub-task
|
|
86
90
|
|
|
87
91
|
### Commits
|
|
92
|
+
|
|
88
93
|
- `abc1234` feat: commit message
|
|
89
94
|
- `def5678` test: another commit
|
|
90
95
|
|
|
91
96
|
### Next Session
|
|
97
|
+
|
|
92
98
|
- Continue with NEXT-FEATURE
|
|
93
99
|
- Or specific tasks
|
|
94
100
|
|
|
95
101
|
### Notes
|
|
102
|
+
|
|
96
103
|
- Any blockers or issues
|
|
97
104
|
- Technical decisions made
|
|
98
105
|
```
|
package/dist/commands/run.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAUA,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAqCpF"}
|
package/dist/commands/run.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { readFeatureList } from '../utils/featureList.js';
|
|
2
|
-
import { printHeader, printError, printSection, colors, icons, } from '../utils/output.js';
|
|
3
|
-
/**
|
|
4
|
-
* aiag run <id> - 특정 기능 구현 지시 프롬프트 생성
|
|
5
|
-
*/
|
|
6
|
-
export async function run(featureId, options = {}) {
|
|
7
|
-
const baseDir = process.cwd();
|
|
8
|
-
try {
|
|
9
|
-
const featureList = readFeatureList(baseDir);
|
|
10
|
-
if (!featureList) {
|
|
11
|
-
printError('No feature_list.json found. Run "aiag init" first.');
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const feature = featureList.features.find((f) => f.id === featureId);
|
|
15
|
-
if (!feature) {
|
|
16
|
-
printError(`Feature not found: ${featureId}`);
|
|
17
|
-
console.log('');
|
|
18
|
-
console.log(colors.dim('Available features:'));
|
|
19
|
-
featureList.features
|
|
20
|
-
.filter((f) => !f.passes)
|
|
21
|
-
.slice(0, 5)
|
|
22
|
-
.forEach((f) => {
|
|
23
|
-
console.log(` ${icons.bullet} ${f.id}: ${f.description}`);
|
|
24
|
-
});
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (feature.passes) {
|
|
28
|
-
printError(`Feature ${featureId} is already completed.`);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
printHeader(`Run Feature: ${featureId}`);
|
|
32
|
-
printFeatureDetails(feature);
|
|
33
|
-
printImplementationPrompt(feature);
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
printError(`Failed to run: ${error}`);
|
|
37
|
-
process.exit(1);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function printFeatureDetails(feature) {
|
|
41
|
-
console.log('');
|
|
42
|
-
console.log(colors.bold(feature.description));
|
|
43
|
-
console.log('');
|
|
44
|
-
console.log(`${colors.dim('Category:')} ${feature.category} ${colors.dim('Priority:')} ${feature.priority}`);
|
|
45
|
-
console.log('');
|
|
46
|
-
if (feature.acceptanceCriteria.length > 0) {
|
|
47
|
-
console.log(colors.dim('Acceptance Criteria:'));
|
|
48
|
-
feature.acceptanceCriteria.forEach((criteria, index) => {
|
|
49
|
-
console.log(` ${index + 1}. ${criteria}`);
|
|
50
|
-
});
|
|
51
|
-
console.log('');
|
|
52
|
-
}
|
|
53
|
-
if (feature.testCommand) {
|
|
54
|
-
console.log(`${colors.dim('Test Command:')} ${colors.info(feature.testCommand)}`);
|
|
55
|
-
console.log('');
|
|
56
|
-
}
|
|
57
|
-
if (feature.dependsOn && feature.dependsOn.length > 0) {
|
|
58
|
-
console.log(`${colors.dim('Dependencies:')} ${feature.dependsOn.join(', ')}`);
|
|
59
|
-
console.log('');
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function printImplementationPrompt(feature) {
|
|
63
|
-
printSection('Claude Code Prompt');
|
|
64
|
-
console.log(colors.dim('─'.repeat(50)));
|
|
65
|
-
console.log('');
|
|
66
|
-
const prompt = generatePrompt(feature);
|
|
67
|
-
console.log(prompt);
|
|
68
|
-
console.log('');
|
|
69
|
-
console.log(colors.dim('─'.repeat(50)));
|
|
70
|
-
console.log('');
|
|
71
|
-
console.log(colors.dim('위 프롬프트를 Claude Code에 붙여넣어 구현을 시작하세요.'));
|
|
72
|
-
}
|
|
73
|
-
function generatePrompt(feature) {
|
|
74
|
-
const lines = [
|
|
75
|
-
`${feature.id} feature를 구현해주세요.`,
|
|
76
|
-
'',
|
|
77
|
-
'Acceptance Criteria:',
|
|
78
|
-
...feature.acceptanceCriteria.map((c) => `- ${c}`),
|
|
79
|
-
'',
|
|
80
|
-
];
|
|
81
|
-
if (feature.testCommand) {
|
|
82
|
-
lines.push(`테스트 명령어: ${feature.testCommand}`);
|
|
83
|
-
lines.push('');
|
|
84
|
-
}
|
|
85
|
-
lines.push('완료 후:');
|
|
86
|
-
lines.push(`1. \`aiag test ${feature.id}\`로 테스트 실행`);
|
|
87
|
-
lines.push(`2. 통과하면 \`aiag complete ${feature.id}\` 실행`);
|
|
88
|
-
lines.push('3. `aiag commit`으로 커밋');
|
|
89
|
-
return lines.join('\n');
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=run.js.map
|
package/dist/commands/run.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,MAAM,EACN,KAAK,GACN,MAAM,oBAAoB,CAAC;AAO5B;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,GAAG,CAAC,SAAiB,EAAE,UAAsB,EAAE;IACnE,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAE9B,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,UAAU,CAAC,oDAAoD,CAAC,CAAC;YACjE,OAAO;QACT,CAAC;QAED,MAAM,OA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