Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv860ec7cf8a0a
diff --git a/v3/@claude-flow/cli/src/commands/hooks.ts b/v3/@claude-flow/cli/src/commands/hooks.ts
index 7ca218d373..5d9c7f4337 100644
--- a/v3/@claude-flow/cli/src/commands/hooks.ts
+++ b/v3/@claude-flow/cli/src/commands/hooks.ts
@@ -1604,14 +1604,10 @@ const postTaskCommand: Command = {
{ command: 'claude-flow hooks post-task -i task-456 --success false -q 0.3', description: 'Record failed task' }
],
action: async (ctx: CommandContext): Promise<CommandResult> => {
- const taskId = ctx.flags.taskId as string;
+ // Auto-generate task ID if not provided
+ const taskId = (ctx.flags.taskId as string) || `task_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;
const success = ctx.flags.success as boolean;
- if (!taskId) {
- output.printError('Task ID is required. Use --task-id or -i flag.');
- return { success: false, exitCode: 1 };
- }
-
if (success === undefined) {
output.printError('Success flag is required. Use --success true/false.');
return { success: false, exitCode: 1 };