chatroom-cli 1.13.1 → 1.13.2

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 +11 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16381,6 +16381,17 @@ async function recoverState(ctx) {
16381
16381
  console.log(` ⚠️ Recovery failed: ${e.message}`);
16382
16382
  console.log(` Continuing with fresh state`);
16383
16383
  }
16384
+ try {
16385
+ const result = await ctx.deps.backend.mutation(api.machines.clearAllSpawnedPids, {
16386
+ sessionId: ctx.sessionId,
16387
+ machineId: ctx.machineId
16388
+ });
16389
+ if (result.clearedCount > 0) {
16390
+ console.log(` \uD83E\uDDF9 Cleared ${result.clearedCount} stale agent PID(s) from backend`);
16391
+ }
16392
+ } catch (e) {
16393
+ console.log(` ⚠️ Failed to clear stale PIDs: ${e.message}`);
16394
+ }
16384
16395
  }
16385
16396
  async function initDaemon() {
16386
16397
  if (!acquireLock()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatroom-cli",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "CLI for multi-agent chatroom collaboration",
5
5
  "type": "module",
6
6
  "bin": {