@claude-flow/cli 3.0.0-alpha.112 → 3.0.0-alpha.114
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/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +4 -7
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/swarm.d.ts.map +1 -1
- package/dist/src/commands/swarm.js +21 -0
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/memory/memory-initializer.d.ts +10 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -1
- package/dist/src/memory/memory-initializer.js +69 -0
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AAk3H1E,eAAO,MAAM,YAAY,EAAE,OAiG1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1274,9 +1274,9 @@ const postTaskCommand = {
|
|
|
1274
1274
|
{
|
|
1275
1275
|
name: 'task-id',
|
|
1276
1276
|
short: 'i',
|
|
1277
|
-
description: 'Unique task identifier',
|
|
1277
|
+
description: 'Unique task identifier (auto-generated if not provided)',
|
|
1278
1278
|
type: 'string',
|
|
1279
|
-
required:
|
|
1279
|
+
required: false
|
|
1280
1280
|
},
|
|
1281
1281
|
{
|
|
1282
1282
|
name: 'success',
|
|
@@ -1303,12 +1303,9 @@ const postTaskCommand = {
|
|
|
1303
1303
|
{ command: 'claude-flow hooks post-task -i task-456 --success false -q 0.3', description: 'Record failed task' }
|
|
1304
1304
|
],
|
|
1305
1305
|
action: async (ctx) => {
|
|
1306
|
-
|
|
1306
|
+
// Auto-generate task ID if not provided
|
|
1307
|
+
const taskId = ctx.flags.taskId || `task_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;
|
|
1307
1308
|
const success = ctx.flags.success;
|
|
1308
|
-
if (!taskId) {
|
|
1309
|
-
output.printError('Task ID is required. Use --task-id or -i flag.');
|
|
1310
|
-
return { success: false, exitCode: 1 };
|
|
1311
|
-
}
|
|
1312
1309
|
if (success === undefined) {
|
|
1313
1310
|
output.printError('Success flag is required. Use --success true/false.');
|
|
1314
1311
|
return { success: false, exitCode: 1 };
|