mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-09 14:04:06 +09:00
* fix(cli): drain memory teardown instead of forcing process exit The bin wrappers called process.exit(0) as soon as cli.run() resolved. On Windows that raced the memory ControllerRegistry/sql.js teardown and intermittently aborted with a libuv UV_HANDLE_CLOSING assertion after memory list had already printed its rows, turning a successful command into exit 127/0xC0000409 (#3226). Call shutdownBridge() to release the ControllerRegistry, preserve any exit code the command set, and let the event loop drain. The ruflo wrapper gets the same treatment. Add a bin-level regression test that spawns both wrappers repeatedly against a sql.js store and also checks that a one-shot write still terminates. * test(cli): keep the teardown regression test self-contained Drop local-only bin overrides so the test uses the checked-out wrappers exactly as CI does. The prebuilt-install run was only a source-worktree verification aid.