@agentic15.com/agentic15-claude-zen 4.0.0 → 4.0.2
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 +24 -10
- package/package.json +1 -1
- package/src/cli/CommitCommand.js +26 -1
- package/src/cli/TaskCommand.js +1 -0
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ cd my-project
|
|
|
28
28
|
```bash
|
|
29
29
|
# Initialize git (if not already done)
|
|
30
30
|
git init
|
|
31
|
+
git branch -M main # Rename master to main
|
|
31
32
|
git add .
|
|
32
33
|
git commit -m "Initial commit"
|
|
33
34
|
|
|
@@ -51,7 +52,7 @@ cat > /tmp/protection.json << 'EOF'
|
|
|
51
52
|
"required_pull_request_reviews": {
|
|
52
53
|
"required_approving_review_count": 0
|
|
53
54
|
},
|
|
54
|
-
"enforce_admins":
|
|
55
|
+
"enforce_admins": false,
|
|
55
56
|
"allow_force_pushes": false,
|
|
56
57
|
"allow_deletions": false,
|
|
57
58
|
"required_status_checks": null,
|
|
@@ -77,7 +78,7 @@ $body = @"
|
|
|
77
78
|
"required_pull_request_reviews": {
|
|
78
79
|
"required_approving_review_count": 0
|
|
79
80
|
},
|
|
80
|
-
"enforce_admins":
|
|
81
|
+
"enforce_admins": false,
|
|
81
82
|
"allow_force_pushes": false,
|
|
82
83
|
"allow_deletions": false,
|
|
83
84
|
"required_status_checks": null,
|
|
@@ -93,25 +94,38 @@ gh api repos/OWNER/REPO -X PATCH -H "Accept: application/vnd.github+json" -f del
|
|
|
93
94
|
|
|
94
95
|
Replace `OWNER/REPO` with your GitHub username and repository name.
|
|
95
96
|
|
|
96
|
-
**Step 5: Launch Claude Code**
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
> **IMPORTANT**: Always launch Claude Code from inside your project directory, not from the parent directory.
|
|
101
|
-
|
|
102
|
-
**Step 6: Use Framework Commands**
|
|
98
|
+
**Step 5: Use Framework Commands**
|
|
103
99
|
```bash
|
|
104
100
|
npx agentic15 auth # One-time GitHub setup
|
|
105
101
|
npx agentic15 plan # Enter interactive mode
|
|
106
102
|
# Type/paste your requirements, press Ctrl+D when done
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
**Step 6: Launch Claude Code in Another Terminal**
|
|
107
|
+
|
|
107
108
|
# Open another terminal. Make sure that you in your project directory. Launch Claude
|
|
109
|
+
Start Claude Code CLI from inside the `my-project` directory. Claude Code MUST be running from inside your project directory to access the framework files.
|
|
108
110
|
# Ask Claude: "Read the requirements file and generate a task breakdown plan"
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
**Step 7: User Termianl and Not Claude Terminal**
|
|
114
|
+
```
|
|
115
|
+
npx agentic15 plan # Generate Task Files and Lock Plan
|
|
109
116
|
npx agentic15 task next # Start first task
|
|
110
|
-
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**Step 8: Claude Terminal**
|
|
120
|
+
# Ask Claude: "Implement this Active task"
|
|
121
|
+
|
|
122
|
+
**Step 9: User Termianl Not Claude Terminal**
|
|
123
|
+
```
|
|
111
124
|
npx agentic15 commit # Test, commit, push, PR
|
|
112
125
|
```
|
|
113
126
|
|
|
114
|
-
|
|
127
|
+
|
|
128
|
+
**Step 10: Clean Up Local Branches**
|
|
115
129
|
```bash
|
|
116
130
|
# If auto-delete is enabled, only clean up local branches
|
|
117
131
|
git branch -d feature/task-001
|
package/package.json
CHANGED
package/src/cli/CommitCommand.js
CHANGED
|
@@ -45,7 +45,10 @@ export class CommitCommand {
|
|
|
45
45
|
// Step 8: Update GitHub issue status
|
|
46
46
|
await this.updateGitHubIssue(task, prUrl);
|
|
47
47
|
|
|
48
|
-
// Step 9:
|
|
48
|
+
// Step 9: Mark task as completed
|
|
49
|
+
this.markTaskCompleted(task);
|
|
50
|
+
|
|
51
|
+
// Step 10: Display summary
|
|
49
52
|
this.displaySummary(task, prUrl, tracker);
|
|
50
53
|
}
|
|
51
54
|
|
|
@@ -266,6 +269,28 @@ export class CommitCommand {
|
|
|
266
269
|
}
|
|
267
270
|
}
|
|
268
271
|
|
|
272
|
+
static markTaskCompleted(task) {
|
|
273
|
+
try {
|
|
274
|
+
const activePlanPath = join(process.cwd(), '.claude', 'ACTIVE-PLAN');
|
|
275
|
+
const planId = readFileSync(activePlanPath, 'utf-8').trim();
|
|
276
|
+
const trackerPath = join(process.cwd(), '.claude', 'plans', planId, 'TASK-TRACKER.json');
|
|
277
|
+
|
|
278
|
+
// Update tracker
|
|
279
|
+
const tracker = JSON.parse(readFileSync(trackerPath, 'utf-8'));
|
|
280
|
+
const taskInTracker = tracker.taskFiles.find(t => t.id === task.id);
|
|
281
|
+
|
|
282
|
+
if (taskInTracker) {
|
|
283
|
+
taskInTracker.status = 'completed';
|
|
284
|
+
taskInTracker.completedAt = new Date().toISOString();
|
|
285
|
+
writeFileSync(trackerPath, JSON.stringify(tracker, null, 2));
|
|
286
|
+
console.log(`\n✅ Marked ${task.id} as completed`);
|
|
287
|
+
}
|
|
288
|
+
} catch (error) {
|
|
289
|
+
console.log(`\n⚠️ Failed to mark task as completed: ${error.message}`);
|
|
290
|
+
console.log(' You may need to manually update TASK-TRACKER.json\n');
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
269
294
|
static displaySummary(task, prUrl, tracker) {
|
|
270
295
|
console.log('\n┌─────────────────────────────────────────┐');
|
|
271
296
|
console.log('│ ✅ Commit Workflow Complete │');
|
package/src/cli/TaskCommand.js
CHANGED
|
@@ -275,6 +275,7 @@ export class TaskCommand {
|
|
|
275
275
|
console.log('\n 2. Link it to your local project:');
|
|
276
276
|
console.log(' git remote add origin https://github.com/OWNER/REPO.git');
|
|
277
277
|
console.log('\n 3. Push your initial code:');
|
|
278
|
+
console.log(' git branch -M main');
|
|
278
279
|
console.log(' git add .');
|
|
279
280
|
console.log(' git commit -m "Initial commit"');
|
|
280
281
|
console.log(' git push -u origin main');
|