claude-flow-novice 1.5.17 → 1.5.18
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/.claude-flow-novice/dist/config/hooks/post-edit-pipeline.js +1807 -0
- package/.claude-flow-novice/dist/src/hooks/communication-integrated-post-edit.js +673 -0
- package/.claude-flow-novice/dist/src/hooks/enhanced/experience-adaptation-hooks.js +347 -0
- package/.claude-flow-novice/dist/src/hooks/enhanced/personalization-hooks.js +118 -0
- package/.claude-flow-novice/dist/src/hooks/enhanced-post-edit-pipeline.js +2044 -0
- package/.claude-flow-novice/dist/src/hooks/filter-integration.js +542 -0
- package/.claude-flow-novice/dist/src/hooks/guidance-hooks.js +629 -0
- package/.claude-flow-novice/dist/src/hooks/index.ts +239 -0
- package/.claude-flow-novice/dist/src/hooks/managers/enhanced-hook-manager.js +200 -0
- package/.claude-flow-novice/dist/src/hooks/resilient-hook-system.js +812 -0
- package/config/hooks/post-edit-pipeline.js +30 -0
- package/package.json +2 -1
- package/src/cli/simple-commands/init/templates/CLAUDE.md +38 -6
- package/src/hooks/communication-integrated-post-edit.js +673 -0
- package/src/hooks/enhanced/experience-adaptation-hooks.js +347 -0
- package/src/hooks/enhanced/personalization-hooks.js +118 -0
- package/src/hooks/enhanced-hooks-cli.js +168 -0
- package/src/hooks/enhanced-post-edit-pipeline.js +2044 -0
- package/src/hooks/filter-integration.js +542 -0
- package/src/hooks/guidance-hooks.js +629 -0
- package/src/hooks/index.ts +239 -0
- package/src/hooks/managers/enhanced-hook-manager.js +200 -0
- package/src/hooks/resilient-hook-system.js +812 -0
|
@@ -1505,6 +1505,36 @@ class UnifiedPostEditPipeline {
|
|
|
1505
1505
|
|
|
1506
1506
|
async run(filePath, options = {}) {
|
|
1507
1507
|
const language = this.detectLanguage(filePath);
|
|
1508
|
+
|
|
1509
|
+
// Bypass non-code files (config/documentation)
|
|
1510
|
+
const bypassExtensions = ['.toml', '.md', '.txt', '.json', '.yaml', '.yml'];
|
|
1511
|
+
const ext = path.extname(filePath).toLowerCase();
|
|
1512
|
+
if (bypassExtensions.includes(ext)) {
|
|
1513
|
+
console.log(`\n⏭️ BYPASSED: ${ext} files don't require validation`);
|
|
1514
|
+
return {
|
|
1515
|
+
file: filePath,
|
|
1516
|
+
language,
|
|
1517
|
+
timestamp: new Date().toISOString(),
|
|
1518
|
+
editId: `edit-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
1519
|
+
agentContext: this.extractAgentContext(options),
|
|
1520
|
+
status: 'BYPASSED',
|
|
1521
|
+
bypassed: true,
|
|
1522
|
+
reason: `${ext} files are configuration/documentation and don't require validation`,
|
|
1523
|
+
summary: {
|
|
1524
|
+
success: true,
|
|
1525
|
+
warnings: [],
|
|
1526
|
+
errors: [],
|
|
1527
|
+
suggestions: []
|
|
1528
|
+
}
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
// Auto-enable Rust strict mode for .rs files
|
|
1533
|
+
if (language === 'rust' && !this.rustStrict) {
|
|
1534
|
+
this.rustStrict = true;
|
|
1535
|
+
console.log('🦀 Auto-enabled Rust strict mode for .rs file');
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1508
1538
|
const results = {
|
|
1509
1539
|
file: filePath,
|
|
1510
1540
|
language,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-flow-novice",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.18",
|
|
4
4
|
"description": "Standalone Claude Flow for beginners - AI agent orchestration made easy with enhanced TDD testing pipeline. Enhanced init command creates complete agent system, MCP configuration with 30 essential tools, and automated hooks with single-file testing, real-time coverage analysis, and advanced validation. Fully standalone with zero external dependencies, complete project setup in one command.",
|
|
5
5
|
"mcpName": "io.github.ruvnet/claude-flow",
|
|
6
6
|
"main": ".claude-flow-novice/dist/index.js",
|
|
@@ -212,6 +212,7 @@
|
|
|
212
212
|
"src/swarm-fullstack/",
|
|
213
213
|
"src/npx/",
|
|
214
214
|
"src/language/",
|
|
215
|
+
"src/hooks/",
|
|
215
216
|
"examples/",
|
|
216
217
|
"wiki/",
|
|
217
218
|
"CLAUDE.md",
|
|
@@ -299,14 +299,46 @@ claude mcp add claude-flow-novice npx claude-flow-novice mcp start
|
|
|
299
299
|
- **Maximum iterations**: 3 attempts before escalation using next steps guidance
|
|
300
300
|
|
|
301
301
|
### Step 4: Verify - Consensus Swarm (2-4 validators REQUIRED)
|
|
302
|
+
|
|
303
|
+
**⚠️ CRITICAL: Sequential Spawning to Prevent Premature Validation**
|
|
304
|
+
|
|
305
|
+
Validators MUST spawn in **separate message** AFTER implementation completes:
|
|
306
|
+
|
|
302
307
|
```javascript
|
|
303
|
-
//
|
|
304
|
-
[
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
308
|
+
// MESSAGE 1: Implementation swarm only
|
|
309
|
+
[Implementation Message]:
|
|
310
|
+
mcp__claude-flow-novice__swarm_init({
|
|
311
|
+
topology: "mesh",
|
|
312
|
+
maxAgents: 3,
|
|
313
|
+
strategy: "balanced"
|
|
314
|
+
})
|
|
315
|
+
|
|
316
|
+
Task("Coder 1", "Implement feature X", "coder")
|
|
317
|
+
Task("Coder 2", "Implement feature Y", "backend-dev")
|
|
318
|
+
Task("Coder 3", "Implement feature Z", "rust-expert")
|
|
319
|
+
|
|
320
|
+
// [WAIT FOR ALL IMPLEMENTATION AGENTS TO COMPLETE]
|
|
321
|
+
|
|
322
|
+
// MESSAGE 2: Validation swarm after completion
|
|
323
|
+
[Validation Message]:
|
|
324
|
+
mcp__claude-flow-novice__swarm_init({
|
|
325
|
+
topology: "mesh",
|
|
326
|
+
maxAgents: 4,
|
|
327
|
+
strategy: "balanced"
|
|
328
|
+
})
|
|
329
|
+
|
|
330
|
+
Task("Validator 1", "Review completed work at [specific files]", "reviewer")
|
|
331
|
+
Task("Validator 2", "Security audit of completed implementation", "security-specialist")
|
|
332
|
+
Task("Validator 3", "Architecture validation of completed system", "system-architect")
|
|
333
|
+
Task("Validator 4", "Integration testing of completed features", "tester")
|
|
309
334
|
```
|
|
335
|
+
|
|
336
|
+
**WHY SEQUENTIAL SPAWNING:**
|
|
337
|
+
- ✅ Prevents validators from reviewing incomplete work-in-progress
|
|
338
|
+
- ✅ Ensures all implementation is finished before validation begins
|
|
339
|
+
- ✅ Avoids wasted validation cycles on partial code
|
|
340
|
+
- ✅ Produces accurate consensus scores on completed deliverables
|
|
341
|
+
|
|
310
342
|
- **Byzantine consensus voting** across all validators
|
|
311
343
|
- **Multi-dimensional checks**: quality, security, performance, tests, docs
|
|
312
344
|
|