claude-flow-novice 2.18.35 → 2.18.36
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.
|
@@ -6,7 +6,67 @@ allowed-tools: ["Task", "TaskOutput", "TodoWrite", "Read", "Bash"]
|
|
|
6
6
|
|
|
7
7
|
# CFN Fix Errors - Agent Coordination Mode
|
|
8
8
|
|
|
9
|
-
**Version:** 2.
|
|
9
|
+
**Version:** 2.1.0 | **Date:** 2025-12-21 | **Status:** Production Ready
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## QUICK REFERENCE (Follow This Process)
|
|
14
|
+
|
|
15
|
+
### Step-by-Step Execution:
|
|
16
|
+
|
|
17
|
+
1. **Get errors** → Save to `/tmp/` (tsc, eslint, or cargo check)
|
|
18
|
+
2. **Phase 0** → Fix root-cause files (types, core modules) ONE AT A TIME, blocking
|
|
19
|
+
3. **Commit** → After Phase 0 completes, commit all changes
|
|
20
|
+
4. **Phase 1** → Spawn up to 5 agents with `run_in_background: true`
|
|
21
|
+
5. **Monitor** → Use `TaskOutput(taskId, {block: false})` to check agent status
|
|
22
|
+
6. **Respawn** → When an agent completes, IMMEDIATELY spawn next agent for next file
|
|
23
|
+
7. **Commit** → Every 20 files fixed, commit changes to git
|
|
24
|
+
8. **Commit** → After Phase 1 completes, commit remaining changes
|
|
25
|
+
9. **Phase 2** → When <40 errors remain, spawn cleanup agent
|
|
26
|
+
10. **Commit** → After Phase 2 completes, final commit
|
|
27
|
+
|
|
28
|
+
### Critical Rules:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
AGENTS: Always spawn with run_in_background: true (max 5 concurrent)
|
|
32
|
+
RESPAWN: When TaskOutput shows "completed", spawn next agent immediately
|
|
33
|
+
COMMITS: git add && git commit:
|
|
34
|
+
- After Phase 0 completes
|
|
35
|
+
- Every 20 files fixed in Phase 1
|
|
36
|
+
- After Phase 1 completes
|
|
37
|
+
- After Phase 2 completes
|
|
38
|
+
NO FULL CHECKS: Agents must NOT run eslint ./cargo check on full project
|
|
39
|
+
SINGLE FILE: Each agent fixes ONE file only, then exits
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Agent Spawn Template:
|
|
43
|
+
```typescript
|
|
44
|
+
Task("typescript-specialist", // or "rust-developer"
|
|
45
|
+
`Fix errors in: [FILE_PATH]
|
|
46
|
+
PROJECT: [ROOT]
|
|
47
|
+
Read errors from /tmp/[errors].txt
|
|
48
|
+
Fix file, run post-edit validation, report results.`,
|
|
49
|
+
{run_in_background: true}
|
|
50
|
+
);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Monitor & Respawn Loop:
|
|
54
|
+
```typescript
|
|
55
|
+
// Check all active agents (non-blocking)
|
|
56
|
+
for (const agent of activeAgents) {
|
|
57
|
+
const result = TaskOutput(agent.taskId, {block: false});
|
|
58
|
+
if (result.status === "completed") {
|
|
59
|
+
filesFixed++;
|
|
60
|
+
removeFromActive(agent);
|
|
61
|
+
// IMMEDIATELY spawn next agent
|
|
62
|
+
if (fileQueue.length > 0) spawnNextAgent();
|
|
63
|
+
// Commit every 20 files
|
|
64
|
+
if (filesFixed % 20 === 0) gitCommit();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
10
70
|
|
|
11
71
|
## Quick Overview
|
|
12
72
|
|
|
@@ -421,7 +481,7 @@ REPORT: Summary of remaining errors and fixes applied.`,
|
|
|
421
481
|
---
|
|
422
482
|
|
|
423
483
|
## Version History
|
|
424
|
-
|
|
484
|
+
- v2.1.0 (2025-12-21) - Added quick reference at top, commit every 20 files, clearer respawn instructions
|
|
425
485
|
- v2.0.0 (2025-12-21) - Removed Cerebras, added Phase 0 for strategic root-cause files
|
|
426
486
|
- v1.2.0 (2025-12-21) - Fixed error file extraction patterns for Rust and TypeScript/ESLint
|
|
427
487
|
- v1.1.0 (2025-12-21) - Clarified instructions, removed pseudocode confusion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-flow-novice",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.36",
|
|
4
4
|
"description": "Claude Flow Novice - Advanced orchestration platform for multi-agent AI workflows with CFN Loop architecture\n\nIncludes Local RuVector Accelerator and all CFN skills for complete functionality.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|