claude-flow 3.7.0-alpha.17 → 3.7.0-alpha.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-flow",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.18",
|
|
4
4
|
"description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -270,7 +270,7 @@ const preEditCommand = {
|
|
|
270
270
|
],
|
|
271
271
|
action: async (ctx) => {
|
|
272
272
|
// Default file to 'unknown' for backward compatibility (env var may be empty)
|
|
273
|
-
const filePath = ctx.
|
|
273
|
+
const filePath = ctx.flags.file || ctx.args[0] || 'unknown';
|
|
274
274
|
const operation = ctx.flags.operation || 'update';
|
|
275
275
|
output.printInfo(`Analyzing context for: ${output.highlight(filePath)}`);
|
|
276
276
|
try {
|
|
@@ -375,7 +375,7 @@ const postEditCommand = {
|
|
|
375
375
|
],
|
|
376
376
|
action: async (ctx) => {
|
|
377
377
|
// Default file to 'unknown' for backward compatibility (env var may be empty)
|
|
378
|
-
const filePath = ctx.
|
|
378
|
+
const filePath = ctx.flags.file || ctx.args[0] || 'unknown';
|
|
379
379
|
// Default success to true for backward compatibility (PostToolUse = success, PostToolUseFailure = failure)
|
|
380
380
|
const success = ctx.flags.success !== undefined ? ctx.flags.success : true;
|
|
381
381
|
output.printInfo(`Recording outcome for: ${output.highlight(filePath)}`);
|
|
@@ -458,7 +458,7 @@ const preCommandCommand = {
|
|
|
458
458
|
{ command: 'claude-flow hooks pre-command -c "npm install lodash"', description: 'Check package install' }
|
|
459
459
|
],
|
|
460
460
|
action: async (ctx) => {
|
|
461
|
-
const command = ctx.
|
|
461
|
+
const command = ctx.flags.command || ctx.args[0];
|
|
462
462
|
if (!command) {
|
|
463
463
|
output.printError('Command is required. Use --command or -c flag.');
|
|
464
464
|
return { success: false, exitCode: 1 };
|
|
@@ -567,7 +567,7 @@ const postCommandCommand = {
|
|
|
567
567
|
{ command: 'claude-flow hooks post-command -c "npm build" --success false -e 1', description: 'Record failed build' }
|
|
568
568
|
],
|
|
569
569
|
action: async (ctx) => {
|
|
570
|
-
const command = ctx.
|
|
570
|
+
const command = ctx.flags.command || ctx.args[0];
|
|
571
571
|
// Default success to true for backward compatibility
|
|
572
572
|
const success = ctx.flags.success !== undefined ? ctx.flags.success : true;
|
|
573
573
|
if (!command) {
|
|
@@ -639,7 +639,7 @@ const routeCommand = {
|
|
|
639
639
|
{ command: 'claude-flow hooks route -t "Optimize database queries" -K 5', description: 'Get top 5 suggestions' }
|
|
640
640
|
],
|
|
641
641
|
action: async (ctx) => {
|
|
642
|
-
const task = ctx.
|
|
642
|
+
const task = ctx.flags.task || ctx.args[0];
|
|
643
643
|
const topK = ctx.flags.topK || 3;
|
|
644
644
|
if (!task) {
|
|
645
645
|
output.printError('Task description is required. Use --task or -t flag.');
|
|
@@ -751,7 +751,7 @@ const explainCommand = {
|
|
|
751
751
|
{ command: 'claude-flow hooks explain -t "Optimize queries" -a coder --verbose', description: 'Verbose explanation for specific agent' }
|
|
752
752
|
],
|
|
753
753
|
action: async (ctx) => {
|
|
754
|
-
const task = ctx.
|
|
754
|
+
const task = ctx.flags.task || ctx.args[0];
|
|
755
755
|
if (!task) {
|
|
756
756
|
output.printError('Task description is required. Use --task or -t flag.');
|
|
757
757
|
return { success: false, exitCode: 1 };
|
|
@@ -1224,7 +1224,7 @@ const transferFromProjectCommand = {
|
|
|
1224
1224
|
{ command: 'claude-flow hooks transfer from-project -s ../prod --filter security -m 0.9', description: 'Transfer high-confidence security patterns' }
|
|
1225
1225
|
],
|
|
1226
1226
|
action: async (ctx) => {
|
|
1227
|
-
const sourcePath = ctx.
|
|
1227
|
+
const sourcePath = ctx.flags.source || ctx.args[0];
|
|
1228
1228
|
const minConfidence = ctx.flags.minConfidence || 0.7;
|
|
1229
1229
|
if (!sourcePath) {
|
|
1230
1230
|
output.printError('Source project path is required. Use --source or -s flag.');
|
|
@@ -1422,7 +1422,7 @@ const preTaskCommand = {
|
|
|
1422
1422
|
],
|
|
1423
1423
|
action: async (ctx) => {
|
|
1424
1424
|
const taskId = ctx.flags.taskId || `task-${Date.now().toString(36)}`;
|
|
1425
|
-
const description = ctx.
|
|
1425
|
+
const description = ctx.flags.description || ctx.args[0];
|
|
1426
1426
|
if (!description) {
|
|
1427
1427
|
output.printError('Description is required: --description "your task"');
|
|
1428
1428
|
return { success: false, exitCode: 1 };
|
|
@@ -1707,7 +1707,7 @@ const sessionRestoreCommand = {
|
|
|
1707
1707
|
{ command: 'claude-flow hooks session-restore -i session-12345', description: 'Restore specific session' }
|
|
1708
1708
|
],
|
|
1709
1709
|
action: async (ctx) => {
|
|
1710
|
-
const sessionId = ctx.
|
|
1710
|
+
const sessionId = ctx.flags.sessionId || ctx.args[0] || 'latest';
|
|
1711
1711
|
output.printInfo(`Restoring session: ${output.highlight(sessionId)}`);
|
|
1712
1712
|
try {
|
|
1713
1713
|
const result = await callMCPTool('hooks_session-restore', {
|
|
@@ -2519,7 +2519,7 @@ const coverageRouteCommand = {
|
|
|
2519
2519
|
{ command: 'claude-flow hooks coverage-route -t "add tests" --threshold 90', description: 'Route with custom threshold' }
|
|
2520
2520
|
],
|
|
2521
2521
|
action: async (ctx) => {
|
|
2522
|
-
const task = ctx.
|
|
2522
|
+
const task = ctx.flags.task || ctx.args[0];
|
|
2523
2523
|
const threshold = ctx.flags.threshold || 80;
|
|
2524
2524
|
const useRuvector = !ctx.flags['no-ruvector'];
|
|
2525
2525
|
if (!task) {
|
|
@@ -2739,7 +2739,7 @@ const coverageSuggestCommand = {
|
|
|
2739
2739
|
{ command: 'claude-flow hooks coverage-suggest -p src/services --threshold 90', description: 'Stricter threshold' }
|
|
2740
2740
|
],
|
|
2741
2741
|
action: async (ctx) => {
|
|
2742
|
-
const targetPath = ctx.
|
|
2742
|
+
const targetPath = ctx.flags.path || ctx.args[0];
|
|
2743
2743
|
const threshold = ctx.flags.threshold || 80;
|
|
2744
2744
|
const limit = ctx.flags.limit || 20;
|
|
2745
2745
|
if (!targetPath) {
|
|
@@ -3977,7 +3977,7 @@ const modelRouteCommand = {
|
|
|
3977
3977
|
{ command: 'claude-flow hooks model-route -t "architect auth system"', description: 'Route complex task (likely opus)' },
|
|
3978
3978
|
],
|
|
3979
3979
|
action: async (ctx) => {
|
|
3980
|
-
const task = ctx.
|
|
3980
|
+
const task = ctx.flags.task || ctx.args[0];
|
|
3981
3981
|
if (!task) {
|
|
3982
3982
|
output.printError('Task description required. Use --task or -t flag.');
|
|
3983
3983
|
return { success: false, exitCode: 1 };
|
|
@@ -4285,7 +4285,7 @@ const taskCompletedCommand = {
|
|
|
4285
4285
|
{ command: 'claude-flow hooks task-completed -i task-456 --notify-lead --quality 0.95', description: 'Complete with quality score' }
|
|
4286
4286
|
],
|
|
4287
4287
|
action: async (ctx) => {
|
|
4288
|
-
const taskId = ctx.
|
|
4288
|
+
const taskId = ctx.flags.taskId || ctx.args[0];
|
|
4289
4289
|
const trainPatterns = ctx.flags.trainPatterns !== false;
|
|
4290
4290
|
const notifyLead = ctx.flags.notifyLead !== false;
|
|
4291
4291
|
const success = ctx.flags.success !== false;
|
|
@@ -4363,7 +4363,7 @@ const notifyCommand = {
|
|
|
4363
4363
|
{ command: 'claude-flow hooks notify -m "Test failed" -l error', description: 'Send error notification' },
|
|
4364
4364
|
],
|
|
4365
4365
|
action: async (ctx) => {
|
|
4366
|
-
const message = ctx.
|
|
4366
|
+
const message = ctx.flags.message || ctx.args[0];
|
|
4367
4367
|
const level = ctx.flags.level || 'info';
|
|
4368
4368
|
if (!message) {
|
|
4369
4369
|
output.printError('Message is required: --message "your message"');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"sessionId":"7c6134bf-6c84-4145-9232-421e80ca3692","pid":85190,"procStart":"Fri May 8 13:13:24 2026","acquiredAt":1778246373999}
|