chore: snapshot main sync

This commit is contained in:
2026-06-17 20:08:31 +00:00
parent b18de2a331
commit 8bd32537cf
354 changed files with 10208 additions and 9230 deletions

View File

@@ -1,8 +1,7 @@
import type { Agent, Session, ToolCall } from '../../types/api.js';
import * as modelContext from '../model-context.js';
import { PathScopeError } from '../path_guard.js';
import { TOOLS_BY_NAME } from '../tools.js';
import type { ToolExecCtx } from '../tools.js';
import { TOOLS_BY_NAME, type ToolExecCtx } from "../tools.js";
import { matchToolGlob } from '../agents.js';
import { maybeFlagForCompaction } from './payload.js';
import { insertParts, partsFromAssistantMessage, partsFromToolMessage } from './parts.js';
@@ -214,6 +213,7 @@ export async function executeToolPhase(
content,
tool_calls: toolCalls,
reasoning: result.reasoning,
reasoningBlocks: result.reasoningBlocks,
}).map((p) => ({
...p,
message_id: assistantMessageId,
@@ -404,7 +404,7 @@ export async function executeToolPhase(
});
const tres = await executeToolCall(
projectRoot, tc, session.allowed_read_paths,
{ sql: ctx.sql, sessionId },
{ sql: ctx.sql, sessionId, toolCallId: tc.id },
ctx.hooks, sessionId,
);
// tool_trace instrumentation - finish