claude-flow 3.5.33 → 3.5.35
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.5.
|
|
3
|
+
"version": "3.5.35",
|
|
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",
|
|
@@ -157,9 +157,11 @@ const IS_WINDOWS = process.platform === 'win32';
|
|
|
157
157
|
* Platform-aware project dir variable reference.
|
|
158
158
|
* Claude Code sets $CLAUDE_PROJECT_DIR (Unix) / %CLAUDE_PROJECT_DIR% (Windows)
|
|
159
159
|
* as an environment variable before running hook commands.
|
|
160
|
+
* Falls back to "." (cwd) when the variable is unset, since Claude Code
|
|
161
|
+
* runs hooks from the project root directory.
|
|
160
162
|
*/
|
|
161
163
|
function projectDirVar() {
|
|
162
|
-
return IS_WINDOWS ? '%CLAUDE_PROJECT_DIR%' : '$CLAUDE_PROJECT_DIR';
|
|
164
|
+
return IS_WINDOWS ? '%CLAUDE_PROJECT_DIR%' : '${CLAUDE_PROJECT_DIR:-.}';
|
|
163
165
|
}
|
|
164
166
|
/**
|
|
165
167
|
* Build a cross-platform hook command.
|
|
@@ -399,59 +401,9 @@ function generateHooksConfig(config) {
|
|
|
399
401
|
},
|
|
400
402
|
];
|
|
401
403
|
}
|
|
402
|
-
// TeammateIdle
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
{
|
|
406
|
-
hooks: [
|
|
407
|
-
{
|
|
408
|
-
type: 'command',
|
|
409
|
-
command: hookHandlerCmd('post-task'),
|
|
410
|
-
timeout: 5000,
|
|
411
|
-
},
|
|
412
|
-
],
|
|
413
|
-
},
|
|
414
|
-
];
|
|
415
|
-
}
|
|
416
|
-
// TaskCompleted — train patterns and notify lead when a task completes
|
|
417
|
-
if (config.taskCompleted) {
|
|
418
|
-
hooks.TaskCompleted = [
|
|
419
|
-
{
|
|
420
|
-
hooks: [
|
|
421
|
-
{
|
|
422
|
-
type: 'command',
|
|
423
|
-
command: hookHandlerCmd('post-task'),
|
|
424
|
-
timeout: 5000,
|
|
425
|
-
},
|
|
426
|
-
],
|
|
427
|
-
},
|
|
428
|
-
];
|
|
429
|
-
}
|
|
430
|
-
// PostCompact — persist state after compaction completes
|
|
431
|
-
if (config.preCompact) {
|
|
432
|
-
hooks.PostCompact = [
|
|
433
|
-
{
|
|
434
|
-
matcher: 'manual',
|
|
435
|
-
hooks: [
|
|
436
|
-
{
|
|
437
|
-
type: 'command',
|
|
438
|
-
command: hookHandlerCmd('session-restore'),
|
|
439
|
-
timeout: 5000,
|
|
440
|
-
},
|
|
441
|
-
],
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
matcher: 'auto',
|
|
445
|
-
hooks: [
|
|
446
|
-
{
|
|
447
|
-
type: 'command',
|
|
448
|
-
command: hookHandlerCmd('session-restore'),
|
|
449
|
-
timeout: 5000,
|
|
450
|
-
},
|
|
451
|
-
],
|
|
452
|
-
},
|
|
453
|
-
];
|
|
454
|
-
}
|
|
404
|
+
// NOTE: TeammateIdle, TaskCompleted, and PostCompact are NOT accepted by
|
|
405
|
+
// Claude Code's settings.json validator (rejected as "Invalid key in record").
|
|
406
|
+
// Agent Teams coordination lives in claudeFlow.agentTeams.hooks instead.
|
|
455
407
|
return hooks;
|
|
456
408
|
}
|
|
457
409
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.35",
|
|
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",
|