@friendlyrobot/discord-pi-agent 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -607,8 +607,10 @@ function createStopHandler(client, agentService, config) {
607
607
  }
608
608
  function registerSignalHandlers(stop) {
609
609
  const handleSignal = (signal) => {
610
+ console.log(`[shutdown] received ${signal}`);
610
611
  stop().finally(() => {
611
- console.log(`[shutdown] received ${signal}`);
612
+ console.log("[shutdown] done");
613
+ process.exit(0);
612
614
  });
613
615
  };
614
616
  process.on("SIGINT", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friendlyrobot/discord-pi-agent",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Reusable Discord gateway bridge for persistent pi agent sessions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",