claude-flow-novice 1.5.17 ā 1.5.19
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 +1837 -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/CHANGELOG.md +22 -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
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.5.19] - 2025-10-01
|
|
11
|
+
|
|
12
|
+
### ⨠Added
|
|
13
|
+
- **Auto-enable Rust Strict Mode**: Automatically enables `--rust-strict` flag for `.rs` files
|
|
14
|
+
- Detects `.unwrap()`, `.expect()`, `panic!()`, `todo!()`, `unimplemented!()`
|
|
15
|
+
- Provides line numbers, code snippets, and actionable suggestions
|
|
16
|
+
- No manual flag required - activates automatically for all Rust files
|
|
17
|
+
- Populates `rustQuality` JSON field with comprehensive analysis
|
|
18
|
+
- **Bypass Non-Code Files**: Skip validation for config/documentation files
|
|
19
|
+
- Bypassed extensions: `.toml`, `.md`, `.txt`, `.json`, `.yaml`, `.yml`
|
|
20
|
+
- Returns immediate success status without running formatters/linters
|
|
21
|
+
- Improves performance for Cargo.toml, README.md, package.json edits
|
|
22
|
+
- Agent-friendly: no wasted processing on configuration files
|
|
23
|
+
|
|
24
|
+
### š§ Improved
|
|
25
|
+
- **Post-Edit Pipeline**: Smarter file type detection and processing
|
|
26
|
+
- Console shows `š¦ Auto-enabled Rust strict mode` for visibility
|
|
27
|
+
- Bypass message: `āļø BYPASSED: .md files don't require validation`
|
|
28
|
+
- Structured JSON includes `bypassed: true` and reason field
|
|
29
|
+
|
|
30
|
+
## [1.5.18] - Previous Release
|
|
31
|
+
|
|
10
32
|
### ⨠Added
|
|
11
33
|
- **`/fullstack` Slash Command**: Launch coordinated full-stack development team with consensus validation
|
|
12
34
|
- Automatic team composition (researcher, coder, tester, reviewer, architect)
|
|
@@ -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.19",
|
|
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
|
|