chatroom-cli 1.14.2 → 1.14.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 +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16724,13 +16724,14 @@ async function onDaemonShutdown(ctx) {
16724
16724
  if (activeAgents.length > 0) {
16725
16725
  console.log(`[${formatTimestamp()}] Stopping ${activeAgents.length} agent(s)...`);
16726
16726
  await Promise.allSettled(activeAgents.map(async ({ chatroomId, role, slot }) => {
16727
+ const pid = slot.pid;
16727
16728
  try {
16728
16729
  await ctx.deps.agentProcessManager.stop({
16729
16730
  chatroomId,
16730
16731
  role,
16731
16732
  reason: "daemon.shutdown"
16732
16733
  });
16733
- console.log(` Stopped ${role} (PID ${slot.pid})`);
16734
+ console.log(` Stopped ${role} (PID ${pid})`);
16734
16735
  } catch (e) {
16735
16736
  console.log(` ⚠️ Failed to stop ${role}: ${e.message}`);
16736
16737
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatroom-cli",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
4
4
  "description": "CLI for multi-agent chatroom collaboration",
5
5
  "type": "module",
6
6
  "bin": {