mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-14T02:54:53Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2c6138dc0a
commit
9dcdf57b00
1 file changed
+17
-3
@@ -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,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user