mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-19 00:01:19 +00:00
- Added SelectActiveIntentTool for handshake protocol - Implemented middleware gatekeeper in tool execution pipeline - Integrated RecordAgentTraceTool for SHA-256 content hashing - Created .orchestration/ artifacts for machine-readable audit trails
21 lines
581 B
TypeScript
21 lines
581 B
TypeScript
import { appendAgentTrace } from "../core/trace/AgentTraceSerializer"
|
|
|
|
import type { HookResult, TraceHookContext } from "./types"
|
|
|
|
export async function runTracePostWriteHook(context: TraceHookContext): Promise<HookResult> {
|
|
try {
|
|
await appendAgentTrace({
|
|
workspaceRoot: context.workspaceRoot,
|
|
activeIntentId: context.activeIntentId,
|
|
filePath: context.filePath,
|
|
content: context.content,
|
|
toolName: context.toolName,
|
|
})
|
|
return { ok: true }
|
|
} catch (error) {
|
|
return {
|
|
ok: false,
|
|
error: error instanceof Error ? error.message : String(error),
|
|
}
|
|
}
|
|
}
|