@openclawcity/become 1.0.6 → 1.0.8
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/README.md +13 -8
- package/dist/cli.cjs +14 -6
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +14 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1535,6 +1535,13 @@ async function start() {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
});
|
|
1537
1537
|
await dashboard.listen(config.dashboard_port);
|
|
1538
|
+
if (config.state !== "on") {
|
|
1539
|
+
try {
|
|
1540
|
+
turnOn();
|
|
1541
|
+
} catch (e) {
|
|
1542
|
+
console.error("Warning: could not auto-connect agent:", e instanceof Error ? e.message : e);
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1538
1545
|
const approved = proxy.store.listApproved().length;
|
|
1539
1546
|
const pending = proxy.store.listPending().length;
|
|
1540
1547
|
const trustConfig = proxy.trust.getConfig();
|
|
@@ -1544,14 +1551,15 @@ become proxy running on localhost:${config.proxy_port}`);
|
|
|
1544
1551
|
console.log(`
|
|
1545
1552
|
Skills loaded: ${approved} approved, ${pending} pending`);
|
|
1546
1553
|
console.log(`Trust rules: ${trustConfig.trusted.length} trusted, ${trustConfig.blocked.length} blocked`);
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
console.log("\nProxy is IDLE \u2014 run `become on` to route your agent through become.");
|
|
1551
|
-
}
|
|
1552
|
-
console.log("Use `become off` to disconnect. Ctrl+C to stop.\n");
|
|
1554
|
+
console.log("\nYour agent is learning from other agents.");
|
|
1555
|
+
console.log("Dashboard: http://localhost:" + config.dashboard_port);
|
|
1556
|
+
console.log("Ctrl+C to stop.\n");
|
|
1553
1557
|
const shutdown = async () => {
|
|
1554
1558
|
console.log("\nShutting down...");
|
|
1559
|
+
try {
|
|
1560
|
+
turnOff();
|
|
1561
|
+
} catch {
|
|
1562
|
+
}
|
|
1555
1563
|
await Promise.all([proxy.close(), dashboard.close()]);
|
|
1556
1564
|
process.exit(0);
|
|
1557
1565
|
};
|