mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-17 23:51:08 +00:00
25 lines
647 B
TypeScript
25 lines
647 B
TypeScript
import path from "path"
|
|
import { appendAgentTrace } from "./post-hook" // adjust path if needed
|
|
import fs from "fs/promises"
|
|
|
|
async function runTest() {
|
|
const cwd = process.cwd()
|
|
const testFile = "src/test_file.txt"
|
|
|
|
// Ensure the src folder exists
|
|
await fs.mkdir(path.join(cwd, "src"), { recursive: true })
|
|
|
|
// Call your Post-Hook
|
|
await appendAgentTrace(cwd, {
|
|
relativePath: testFile,
|
|
content: "console.log('hello world')",
|
|
intentId: "INT-001",
|
|
mutationClass: "CREATE",
|
|
reqId: "REQ-123",
|
|
sessionLogId: "SESSION-456",
|
|
})
|
|
|
|
console.log("✅ Test completed. Check .orchestration/agent_trace.jsonl and intent_map.md")
|
|
}
|
|
|
|
runTest()
|