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:
rUvandClaude Opus 4.5 committed 2026-01-14 02:54:53 +00:00
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,
};
},
};