add the final version of tool execution entry

This commit is contained in:
rafia-10 2026-02-21 18:16:32 +03:00
parent 7a95cd8a57
commit ad27c74afe

View file

@ -67,6 +67,14 @@ async function runWithHooks<T extends ToolName>(
) {
if (options?.checkpoint) await checkpointSaveAndMark(cline)
// ===== BRIDGE START =====
// convert Roo Code block/agent info to what your hooks expect
const filePath = block.filePath || block.target // actual file being edited
const intentId = block.intentId || cline.activeIntentId // pick from your agent context
const sessionId = cline.sessionId || crypto.randomUUID() // per-session ID
const contributorModel = cline.modelIdentifier || "claude-3-5-sonnet" // agent model name
// ===== BRIDGE END =====
// pre-hook can access cline and block
await preWriteHook(cline, block)