@claude-flow/cli 3.0.0-alpha.111 → 3.0.0-alpha.113

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.
@@ -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;AAs3H1E,eAAO,MAAM,YAAY,EAAE,OAiG1B,CAAC;AAEF,eAAe,YAAY,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"}
@@ -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
- const taskId = ctx.flags.taskId;
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 };