@claude-flow/cli 3.38.11 → 3.38.12
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/helpers/.helpers-version +1 -1
- package/.claude/helpers/helpers.manifest.json +2 -2
- package/catalog-manifest.json +2 -2
- package/dist/src/commands/hooks.js +3 -2
- package/dist/src/init/executor.d.ts +6 -0
- package/dist/src/init/executor.js +5 -3
- package/dist/src/init/settings-generator.js +6 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.38.12
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": {
|
|
3
|
-
"version": "3.38.
|
|
3
|
+
"version": "3.38.12",
|
|
4
4
|
"files": {
|
|
5
5
|
"auto-memory-hook.mjs": "85fe05c757421c52137c0bc8545a0896bab6b4714538c2a11d1d0835bfcc8c1c",
|
|
6
6
|
"hook-handler.cjs": "dae295fb9ae2626b89899c19a20cc911541af82b52d2eeb9b214d618b96e9a86",
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"statusline.cjs": "0457fe53f8cd2c56458ff178392536a5868efd1a573665fa43bc01d2d95ca677"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
|
-
"signature": "
|
|
11
|
+
"signature": "8JINtA8uubiBqNQbsz8OL2fcc4xmKGk6gKPGoa1ib7/21nYDaYWiWrZB/4xli8AGUdmQuMS9GT6ANbpPjqAcCw==",
|
|
12
12
|
"algorithm": "ed25519"
|
|
13
13
|
}
|
package/catalog-manifest.json
CHANGED
|
@@ -4457,7 +4457,8 @@ const teammateIdleCommand = {
|
|
|
4457
4457
|
short: 'a',
|
|
4458
4458
|
description: 'Automatically assign pending tasks to idle teammate',
|
|
4459
4459
|
type: 'boolean',
|
|
4460
|
-
|
|
4460
|
+
// #3031: explicit opt-in only. Idle/liveness is not assignment authority.
|
|
4461
|
+
default: false
|
|
4461
4462
|
},
|
|
4462
4463
|
{
|
|
4463
4464
|
name: 'check-task-list',
|
|
@@ -4483,7 +4484,7 @@ const teammateIdleCommand = {
|
|
|
4483
4484
|
{ command: 'claude-flow hooks teammate-idle -t worker-1 --check-task-list', description: 'Check tasks for specific teammate' }
|
|
4484
4485
|
],
|
|
4485
4486
|
action: async (ctx) => {
|
|
4486
|
-
const autoAssign = ctx.flags.autoAssign
|
|
4487
|
+
const autoAssign = ctx.flags.autoAssign === true;
|
|
4487
4488
|
const checkTaskList = ctx.flags.checkTaskList !== false;
|
|
4488
4489
|
const teammateId = ctx.flags.teammateId;
|
|
4489
4490
|
const teamName = ctx.flags.teamName;
|
|
@@ -23,6 +23,12 @@ export interface UpgradeResult {
|
|
|
23
23
|
/** Added by --settings flag */
|
|
24
24
|
settingsUpdated?: string[];
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Merge new settings into existing settings.json
|
|
28
|
+
* Preserves user customizations while adding new features like Agent Teams
|
|
29
|
+
* Uses platform-specific commands for Mac, Linux, and Windows
|
|
30
|
+
*/
|
|
31
|
+
export declare function mergeSettingsForUpgrade(existing: Record<string, unknown>): Record<string, unknown>;
|
|
26
32
|
/**
|
|
27
33
|
* Execute upgrade - updates helpers and creates missing metrics without losing data
|
|
28
34
|
* This is safe for existing users who want the latest statusline fixes
|
|
@@ -276,7 +276,7 @@ export async function executeInit(options) {
|
|
|
276
276
|
* Preserves user customizations while adding new features like Agent Teams
|
|
277
277
|
* Uses platform-specific commands for Mac, Linux, and Windows
|
|
278
278
|
*/
|
|
279
|
-
function mergeSettingsForUpgrade(existing) {
|
|
279
|
+
export function mergeSettingsForUpgrade(existing) {
|
|
280
280
|
const merged = { ...existing };
|
|
281
281
|
const platform = detectPlatform();
|
|
282
282
|
const isWindows = platform.os === 'windows';
|
|
@@ -440,13 +440,15 @@ function mergeSettingsForUpgrade(existing) {
|
|
|
440
440
|
taskListEnabled: true,
|
|
441
441
|
mailboxEnabled: true,
|
|
442
442
|
coordination: {
|
|
443
|
-
|
|
443
|
+
// #3031: an upgrade must remove the unsafe generated default. Idle
|
|
444
|
+
// status is not proof that a task is unowned or inside agent scope.
|
|
445
|
+
autoAssignOnIdle: false,
|
|
444
446
|
trainPatternsOnComplete: true,
|
|
445
447
|
notifyLeadOnComplete: true,
|
|
446
448
|
sharedMemoryNamespace: 'agent-teams',
|
|
447
449
|
},
|
|
448
450
|
hooks: {
|
|
449
|
-
teammateIdle: { enabled: true, autoAssign:
|
|
451
|
+
teammateIdle: { enabled: true, autoAssign: false, checkTaskList: true },
|
|
450
452
|
taskCompleted: { enabled: true, trainPatterns: true, notifyLead: true },
|
|
451
453
|
},
|
|
452
454
|
},
|
|
@@ -83,7 +83,11 @@ export function generateSettings(options) {
|
|
|
83
83
|
taskListEnabled: true,
|
|
84
84
|
mailboxEnabled: true,
|
|
85
85
|
coordination: {
|
|
86
|
-
|
|
86
|
+
// #3031: Liveness alone is not authority. Keep idle assignment off
|
|
87
|
+
// until the scheduler can prove task ownership, agent scope, and a
|
|
88
|
+
// refusal/back-off state. Users may explicitly opt in after supplying
|
|
89
|
+
// those controls in their host configuration.
|
|
90
|
+
autoAssignOnIdle: false,
|
|
87
91
|
trainPatternsOnComplete: true, // Train neural patterns when tasks complete
|
|
88
92
|
notifyLeadOnComplete: true, // Notify team lead when tasks complete
|
|
89
93
|
sharedMemoryNamespace: 'agent-teams', // Memory namespace for team coordination
|
|
@@ -91,7 +95,7 @@ export function generateSettings(options) {
|
|
|
91
95
|
hooks: {
|
|
92
96
|
teammateIdle: {
|
|
93
97
|
enabled: true,
|
|
94
|
-
autoAssign:
|
|
98
|
+
autoAssign: false,
|
|
95
99
|
checkTaskList: true,
|
|
96
100
|
},
|
|
97
101
|
taskCompleted: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.38.
|
|
3
|
+
"version": "3.38.12",
|
|
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",
|