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

rUv9dcdf57b009c
diff --git a/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts
index 899c3b1c08..4e1ffba3b0 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts
@@ -1222,7 +1222,7 @@ export const hooksIntelligenceReset: MCPTool = {
},
};
-// Intelligence trajectory hooks
+// Intelligence trajectory hooks - REAL implementation using activeTrajectories
export const hooksTrajectoryStart: MCPTool = {
name: 'hooks/intelligence/trajectory-start',
description: 'Begin SONA trajectory for reinforcement learning',
@@ -1237,14 +1237,28 @@ export const hooksTrajectoryStart: MCPTool = {
handler: async (params: Record<string, unknown>) => {
const task = params.task as string;
const agent = (params.agent as string) || 'coder';
- const trajectoryId = `traj-${Date.now()}`;
+ const trajectoryId = `traj-${Date.now()}-${Math.random().toString(36).substring(7)}`;
+ const startedAt = new Date().toISOString();
+
+ // Create real trajectory entry in memory
+ const trajectory: TrajectoryData = {
+ id: trajectoryId,
+ task,
+ agent,
+ steps: [],
+ startedAt,
+ };
+
+ activeTrajectories.set(trajectoryId, trajectory);
return {
trajectoryId,
task,
agent,
- started: new Date().toISOString(),
+ started: startedAt,
status: 'recording',
+ implementation: 'real-trajectory-tracking',
+ activeCount: activeTrajectories.size,
};
},
};