chatroom-cli 1.122.0 → 1.122.1

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/index.js CHANGED
@@ -126776,8 +126776,9 @@ function runId(run3) {
126776
126776
  return typeof run3._id === "string" ? run3._id : run3._id.toString();
126777
126777
  }
126778
126778
  function startCommandRunSubscriber(deps, onEvent) {
126779
- const seen = new Set;
126780
- const emitRuns = (runs) => {
126779
+ const seenPending = new Set;
126780
+ const seenStop = new Set;
126781
+ const emitRuns = (runs, seen) => {
126781
126782
  if (!runs?.length)
126782
126783
  return;
126783
126784
  for (const run3 of runs) {
@@ -126791,8 +126792,8 @@ function startCommandRunSubscriber(deps, onEvent) {
126791
126792
  const unsub = deps.wsClient.onUpdate(api.daemon.commands.listActionableCommandRuns, { sessionId: deps.sessionId, machineId: deps.machineId }, (result) => {
126792
126793
  if (!result)
126793
126794
  return;
126794
- emitRuns(result.pendingRuns);
126795
- emitRuns(result.stopRequestedRuns);
126795
+ emitRuns(result.pendingRuns, seenPending);
126796
+ emitRuns(result.stopRequestedRuns, seenStop);
126796
126797
  }, (err) => {
126797
126798
  console.warn(`[daemon] command-run subscriber error: ${err instanceof Error ? err.message : String(err)}`);
126798
126799
  });
@@ -136732,4 +136733,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
136732
136733
  });
136733
136734
  program2.parse();
136734
136735
 
136735
- //# debugId=6A3FE3FB59437FFF64756E2164756E21
136736
+ //# debugId=AE2A4CFFF5FE9DDE64756E2164756E21