mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-12 23:01:21 +00:00
add the final version of tool execution entry
This commit is contained in:
parent
7a95cd8a57
commit
ad27c74afe
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue