@openclawcity/become 1.0.12 → 1.0.13
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/dist/cli.cjs +12 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +12 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1624,15 +1624,24 @@ Connected to: ${config.agent_type}${config.openclaw_agent_id ? ` (agent: ${confi
|
|
|
1624
1624
|
console.log(`[become] ${s.requests_forwarded} requests forwarded, ${s.skills_injected} skills injected, ${s.lessons_extracted} lessons extracted`);
|
|
1625
1625
|
}
|
|
1626
1626
|
}, 6e4);
|
|
1627
|
-
|
|
1627
|
+
let shuttingDown = false;
|
|
1628
|
+
const shutdown = () => {
|
|
1629
|
+
if (shuttingDown) {
|
|
1630
|
+
process.exit(0);
|
|
1631
|
+
return;
|
|
1632
|
+
}
|
|
1633
|
+
shuttingDown = true;
|
|
1628
1634
|
clearInterval(activityInterval);
|
|
1629
1635
|
console.log("\nShutting down...");
|
|
1630
1636
|
try {
|
|
1631
1637
|
turnOff();
|
|
1632
1638
|
} catch {
|
|
1633
1639
|
}
|
|
1634
|
-
|
|
1635
|
-
|
|
1640
|
+
proxy.close().catch(() => {
|
|
1641
|
+
});
|
|
1642
|
+
dashboard.close().catch(() => {
|
|
1643
|
+
});
|
|
1644
|
+
setTimeout(() => process.exit(0), 500);
|
|
1636
1645
|
};
|
|
1637
1646
|
process.on("SIGINT", shutdown);
|
|
1638
1647
|
process.on("SIGTERM", shutdown);
|