chatroom-cli 1.84.5 → 1.84.7

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
@@ -101950,7 +101950,7 @@ var init_start_subscriptions2 = __esm(() => {
101950
101950
  });
101951
101951
 
101952
101952
  // src/commands/machine/daemon-start/enhancer/constants.ts
101953
- var ENHANCER_AGENT_ROLE = "enhancer", ENHANCER_AGENT_END_GRACE_MS = 3000, ENHANCER_JOB_POLL_INTERVAL_MS = 500, ENHANCER_SILENCE_TIMEOUT_MS = 120000;
101953
+ var ENHANCER_AGENT_ROLE = "enhancer", ENHANCER_AGENT_END_GRACE_MS = 3000, ENHANCER_JOB_POLL_INTERVAL_MS = 500;
101954
101954
 
101955
101955
  // src/commands/machine/daemon-start/enhancer/enhancer-log.ts
101956
101956
  function formatEnhancerLogLine(message) {
@@ -101969,7 +101969,6 @@ var ENHANCER_LOG_PREFIX = "[enhancer]";
101969
101969
  async function waitForEnhancerJobResolution(params) {
101970
101970
  const { sessionId, chatroomId, jobId, backend: backend2, onFailure, onSalvageComplete } = params;
101971
101971
  let outcome = null;
101972
- let lastActivityAt = Date.now();
101973
101972
  let salvagedText = "";
101974
101973
  const pollInterval = setInterval(async () => {
101975
101974
  if (outcome)
@@ -101986,17 +101985,7 @@ async function waitForEnhancerJobResolution(params) {
101986
101985
  }
101987
101986
  } catch {}
101988
101987
  }, ENHANCER_JOB_POLL_INTERVAL_MS);
101989
- const silenceInterval = setInterval(() => {
101990
- if (outcome)
101991
- return;
101992
- if (Date.now() - lastActivityAt >= ENHANCER_SILENCE_TIMEOUT_MS) {
101993
- outcome = "failed";
101994
- writeEnhancerLog(`silence timeout — no activity for ${ENHANCER_SILENCE_TIMEOUT_MS}ms`);
101995
- onFailure("Enhancer silence timeout — no output received", false);
101996
- }
101997
- }, ENHANCER_JOB_POLL_INTERVAL_MS);
101998
101988
  params.onAssistantText?.((text) => {
101999
- lastActivityAt = Date.now();
102000
101989
  salvagedText += text;
102001
101990
  });
102002
101991
  params.onAgentEnd?.(() => {
@@ -102066,7 +102055,6 @@ async function waitForEnhancerJobResolution(params) {
102066
102055
  }, 100);
102067
102056
  });
102068
102057
  clearInterval(pollInterval);
102069
- clearInterval(silenceInterval);
102070
102058
  return outcome ?? "failed";
102071
102059
  }
102072
102060
  var init_wait_for_enhancer_job = __esm(() => {
@@ -114390,4 +114378,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
114390
114378
  });
114391
114379
  program2.parse();
114392
114380
 
114393
- //# debugId=12F4187F56EA920864756E2164756E21
114381
+ //# debugId=477A9C774FF4304E64756E2164756E21