claude-flow 3.59.2 → 3.59.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -369,11 +369,23 @@ if (isHarness) {
|
|
|
369
369
|
const { CLI } = await import('../dist/src/index.js');
|
|
370
370
|
const cli = new CLI();
|
|
371
371
|
cli.run()
|
|
372
|
-
.then(() => {
|
|
373
|
-
// #1552:
|
|
374
|
-
//
|
|
375
|
-
//
|
|
376
|
-
|
|
372
|
+
.then(async () => {
|
|
373
|
+
// #1552: one-shot commands can leave the memory ControllerRegistry's
|
|
374
|
+
// database handles and timers alive. Close them before relying on the
|
|
375
|
+
// event loop to drain.
|
|
376
|
+
//
|
|
377
|
+
// #3226: calling process.exit(0) here used to race that teardown and
|
|
378
|
+
// intermittently abort on Windows with a libuv UV_HANDLE_CLOSING
|
|
379
|
+
// assertion *after* the command had printed a successful result. Set
|
|
380
|
+
// the exit status and let the loop drain instead.
|
|
381
|
+
if (process.exitCode === undefined) process.exitCode = 0;
|
|
382
|
+
try {
|
|
383
|
+
const { shutdownBridge } = await import('../dist/src/memory/memory-bridge.js');
|
|
384
|
+
if (typeof shutdownBridge === 'function') await shutdownBridge();
|
|
385
|
+
} catch {
|
|
386
|
+
// Cleanup is best-effort: it must never turn a successful command into
|
|
387
|
+
// a failure. Commands that do not use memory simply have nothing to do.
|
|
388
|
+
}
|
|
377
389
|
})
|
|
378
390
|
.catch((error) => {
|
|
379
391
|
console.error('Fatal error:', error.message);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.59.
|
|
3
|
+
"version": "3.59.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|