Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix(core): keep the documented post-edit '-f <file> -s true' form literal so the #1862 witness marker holds

ra9707998ca5c
diff --git a/plugins/ruflo-core/scripts/ruflo-hook.cjs b/plugins/ruflo-core/scripts/ruflo-hook.cjs
index 4812309d98..80cd6953ca 100644
--- a/plugins/ruflo-core/scripts/ruflo-hook.cjs
+++ b/plugins/ruflo-core/scripts/ruflo-hook.cjs
@@ -618,7 +618,11 @@ function main() {
if (subcommand === 'post-edit') {
const file = event?.tool_input?.file_path ?? event?.tool_input?.path;
if (!file) done(); // bash version: `[ -z "$FILE" ] && exit 0`
- invokeCli('post-edit', ['-f', String(file), '-s', String(event?.hook_event_name !== 'PostToolUseFailure')], stdinData);
+ // Documented flags: -f <file> -s <success>. A failed edit (PostToolUseFailure) records success=false.
+ const editArgs = event?.hook_event_name === 'PostToolUseFailure'
+ ? ['-f', String(file), '-s', 'false']
+ : ['-f', String(file), '-s', 'true'];
+ invokeCli('post-edit', editArgs, stdinData);
done();
}