mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-12 23:01:21 +00:00
add status param to posthook function
This commit is contained in:
parent
b1089b6331
commit
e0f8c2e510
1 changed files with 8 additions and 1 deletions
|
|
@ -64,7 +64,14 @@ export function detectMutationClass(oldContent: string, newContent: string): "AS
|
|||
return "INTENT_EVOLUTION"
|
||||
}
|
||||
|
||||
export function postWriteHook(filePath: string, intent: Intent, sessionId: string, contributorModel: string) {
|
||||
export function postWriteHook(
|
||||
filePath: string,
|
||||
intent: Intent,
|
||||
sessionId: string,
|
||||
contributorModel: string,
|
||||
status: "SUCCESS" | "FAILED",
|
||||
error?: unknown,
|
||||
) {
|
||||
const orchestrationDir = path.resolve(".orchestration")
|
||||
if (!fs.existsSync(orchestrationDir)) {
|
||||
fs.mkdirSync(orchestrationDir)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue