@claude-flow/cli 3.0.0-alpha.60 → 3.0.0-alpha.62

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.
@@ -320,16 +320,38 @@ npx @claude-flow/cli@latest performance benchmark --suite all
320
320
  ### Testing & Validation
321
321
  \`tdd-london-swarm\`, \`production-validator\`
322
322
 
323
- ## 🪝 V3 Hooks System (17 Hooks + 12 Workers)
324
-
325
- ### Hook Categories
326
-
327
- | Category | Hooks | Purpose |
328
- |----------|-------|---------|
329
- | **Core** | \`pre-edit\`, \`post-edit\`, \`pre-command\`, \`post-command\`, \`pre-task\`, \`post-task\` | Tool lifecycle |
330
- | **Session** | \`session-start\`, \`session-end\`, \`session-restore\`, \`notify\` | Context management |
331
- | **Intelligence** | \`route\`, \`explain\`, \`pretrain\`, \`build-agents\`, \`transfer\` | Neural learning |
332
- | **Learning** | \`intelligence\` (trajectory-start/step/end, pattern-store/search, stats, attention) | Reinforcement |
323
+ ## 🪝 V3 Hooks System (27 Hooks + 12 Workers)
324
+
325
+ ### All Available Hooks
326
+
327
+ | Hook | Description | Key Options |
328
+ |------|-------------|-------------|
329
+ | \`pre-edit\` | Get context before editing files | \`--file\`, \`--operation\` |
330
+ | \`post-edit\` | Record editing outcome for learning | \`--file\`, \`--success\`, \`--train-neural\` |
331
+ | \`pre-command\` | Assess risk before commands | \`--command\`, \`--validate-safety\` |
332
+ | \`post-command\` | Record command execution outcome | \`--command\`, \`--track-metrics\` |
333
+ | \`pre-task\` | Record task start, get agent suggestions | \`--description\`, \`--coordinate-swarm\` |
334
+ | \`post-task\` | Record task completion for learning | \`--task-id\`, \`--success\`, \`--store-results\` |
335
+ | \`session-start\` | Start/restore session (v2 compat) | \`--session-id\`, \`--auto-configure\` |
336
+ | \`session-end\` | End session and persist state | \`--generate-summary\`, \`--export-metrics\` |
337
+ | \`session-restore\` | Restore a previous session | \`--session-id\`, \`--latest\` |
338
+ | \`route\` | Route task to optimal agent | \`--task\`, \`--context\`, \`--top-k\` |
339
+ | \`route-task\` | (v2 compat) Alias for route | \`--task\`, \`--auto-swarm\` |
340
+ | \`explain\` | Explain routing decision | \`--topic\`, \`--detailed\` |
341
+ | \`pretrain\` | Bootstrap intelligence from repo | \`--model-type\`, \`--epochs\` |
342
+ | \`build-agents\` | Generate optimized agent configs | \`--agent-types\`, \`--focus\` |
343
+ | \`metrics\` | View learning metrics dashboard | \`--v3-dashboard\`, \`--format\` |
344
+ | \`transfer\` | Transfer patterns via IPFS registry | \`store\`, \`from-project\` |
345
+ | \`list\` | List all registered hooks | \`--format\` |
346
+ | \`intelligence\` | RuVector intelligence system | \`trajectory-*\`, \`pattern-*\`, \`stats\` |
347
+ | \`worker\` | Background worker management | \`list\`, \`dispatch\`, \`status\`, \`detect\` |
348
+ | \`progress\` | Check V3 implementation progress | \`--detailed\`, \`--format\` |
349
+ | \`statusline\` | Generate dynamic statusline | \`--json\`, \`--compact\`, \`--no-color\` |
350
+ | \`coverage-route\` | Route based on test coverage gaps | \`--task\`, \`--path\` |
351
+ | \`coverage-suggest\` | Suggest coverage improvements | \`--path\` |
352
+ | \`coverage-gaps\` | List coverage gaps with priorities | \`--format\`, \`--limit\` |
353
+ | \`pre-bash\` | (v2 compat) Alias for pre-command | Same as pre-command |
354
+ | \`post-bash\` | (v2 compat) Alias for post-command | Same as post-command |
333
355
 
334
356
  ### 12 Background Workers
335
357
 
@@ -354,7 +376,7 @@ npx @claude-flow/cli@latest performance benchmark --suite all
354
376
  # Core hooks
355
377
  npx @claude-flow/cli@latest hooks pre-task --description "[task]"
356
378
  npx @claude-flow/cli@latest hooks post-task --task-id "[id]" --success true
357
- npx @claude-flow/cli@latest hooks post-edit --file "[file]" --train-patterns
379
+ npx @claude-flow/cli@latest hooks post-edit --file "[file]" --train-neural true
358
380
 
359
381
  # Session management
360
382
  npx @claude-flow/cli@latest hooks session-start --session-id "[id]"
@@ -373,6 +395,30 @@ npx @claude-flow/cli@latest hooks build-agents --agent-types coder,tester
373
395
  npx @claude-flow/cli@latest hooks worker list
374
396
  npx @claude-flow/cli@latest hooks worker dispatch --trigger audit
375
397
  npx @claude-flow/cli@latest hooks worker status
398
+
399
+ # Coverage-aware routing
400
+ npx @claude-flow/cli@latest hooks coverage-gaps --format table
401
+ npx @claude-flow/cli@latest hooks coverage-route --task "[task]"
402
+
403
+ # Statusline (for Claude Code integration)
404
+ npx @claude-flow/cli@latest hooks statusline
405
+ npx @claude-flow/cli@latest hooks statusline --json
406
+ \`\`\`
407
+
408
+ ## 🔄 Migration (V2 to V3)
409
+
410
+ \`\`\`bash
411
+ # Check migration status
412
+ npx @claude-flow/cli@latest migrate status
413
+
414
+ # Run migration with backup
415
+ npx @claude-flow/cli@latest migrate run --backup
416
+
417
+ # Rollback if needed
418
+ npx @claude-flow/cli@latest migrate rollback
419
+
420
+ # Validate migration
421
+ npx @claude-flow/cli@latest migrate validate
376
422
  \`\`\`
377
423
 
378
424
  ## 🧠 Intelligence System (RuVector)
@@ -1 +1 @@
1
- {"version":3,"file":"claudemd-generator.js","sourceRoot":"","sources":["../../../src/init/claudemd-generator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAoB;IACnD,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC1C,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;IAC5C,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;IAEpD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;0DAyBiD,QAAQ,iBAAiB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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