chatroom-cli 1.41.0 → 1.42.0

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
@@ -72833,7 +72833,10 @@ var init_featureFlags = __esm(() => {
72833
72833
  });
72834
72834
 
72835
72835
  // ../../services/backend/config/reliability.ts
72836
- var DAEMON_HEARTBEAT_INTERVAL_MS = 30000, AGENT_REQUEST_DEADLINE_MS = 120000, OBSERVATION_TTL_MS = 60000, OBSERVED_SAFETY_POLL_MS = 30000;
72836
+ var DAEMON_HEARTBEAT_INTERVAL_MS = 30000, AGENT_REQUEST_DEADLINE_MS = 120000, OBSERVATION_TTL_MS = 60000, OBSERVED_FULL_PUSH_INTERVAL_MS, OBSERVED_SAFETY_POLL_MS = 30000;
72837
+ var init_reliability = __esm(() => {
72838
+ OBSERVED_FULL_PUSH_INTERVAL_MS = 5 * 60000;
72839
+ });
72837
72840
 
72838
72841
  // src/commands/machine/daemon-start/capabilities-snapshot.ts
72839
72842
  function harnessCapabilitiesFingerprint(harnesses, versions) {
@@ -73955,6 +73958,14 @@ async function pushSingleWorkspaceGitSummaryForObserved(ctx, workingDir, reason
73955
73958
  return;
73956
73959
  }
73957
73960
  const branch = branchResult.branch;
73961
+ const now = Date.now();
73962
+ const lastFull = lastFullPushMs.get(stateKey) ?? 0;
73963
+ if (now - lastFull >= OBSERVED_FULL_PUSH_INTERVAL_MS) {
73964
+ lastFullPushMs.set(stateKey, now);
73965
+ await pushSingleWorkspaceGitState(ctx, workingDir);
73966
+ console.log(`[${formatTimestamp()}] \uD83D\uDC41️ Observed full git state pushed: ${workingDir} (${branch})${reason === "refresh" ? " [refresh]" : ""}`);
73967
+ return;
73968
+ }
73958
73969
  const slimFields = [
73959
73970
  branchField,
73960
73971
  ...GIT_STATE_FIELDS.filter((f) => f.includeInSlim),
@@ -73977,12 +73988,14 @@ async function pushSingleWorkspaceGitSummaryForObserved(ctx, workingDir, reason
73977
73988
  ctx.lastPushedGitState.set(stateKey, hash2);
73978
73989
  console.log(`[${formatTimestamp()}] \uD83D\uDC41️ Observed git summary pushed: ${workingDir} (${branch}${values3.get("isDirty") ? ", dirty" : ", clean"})${reason === "refresh" ? " [refresh]" : ""}`);
73979
73990
  }
73980
- var branchField, GIT_STATE_FIELDS;
73991
+ var lastFullPushMs, branchField, GIT_STATE_FIELDS;
73981
73992
  var init_git_heartbeat = __esm(() => {
73993
+ init_reliability();
73982
73994
  init_api3();
73983
73995
  init_git_reader();
73984
73996
  init_git_state_pipeline();
73985
73997
  init_convex_error();
73998
+ lastFullPushMs = new Map;
73986
73999
  branchField = {
73987
74000
  key: "branch",
73988
74001
  includeInSlim: true,
@@ -77443,6 +77456,7 @@ function startObservedSyncSubscription(ctx, wsClient2) {
77443
77456
  }
77444
77457
  }
77445
77458
  var init_observed_sync = __esm(() => {
77459
+ init_reliability();
77446
77460
  init_command_sync_heartbeat();
77447
77461
  init_git_heartbeat();
77448
77462
  init_api3();
@@ -78261,6 +78275,7 @@ Listening for commands...`);
78261
78275
  }
78262
78276
  var init_command_loop = __esm(() => {
78263
78277
  init_featureFlags();
78278
+ init_reliability();
78264
78279
  init_command_sync_heartbeat();
78265
78280
  init_on_request_start_agent();
78266
78281
  init_on_request_stop_agent();
@@ -79386,5 +79401,5 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
79386
79401
  });
79387
79402
  program2.parse();
79388
79403
 
79389
- //# debugId=6A67EAF8C913113064756E2164756E21
79404
+ //# debugId=A8CBF9A98939527D64756E2164756E21
79390
79405
  //# sourceMappingURL=index.js.map