add status param to posthook function

This commit is contained in:
rafia-10 2026-02-21 18:38:55 +03:00
parent b1089b6331
commit e0f8c2e510

View file

@ -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)