replicas-computer 0.3.25 → 0.3.26

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
@@ -3069,7 +3069,7 @@ async function computerStatusCommand() {
3069
3069
  }
3070
3070
 
3071
3071
  // src/version.ts
3072
- var COMPUTER_USE_VERSION = "0.3.25";
3072
+ var COMPUTER_USE_VERSION = "0.3.26";
3073
3073
  var COMPUTER_USE_PROTOCOL_VERSION = 1;
3074
3074
 
3075
3075
  // src/program.ts
@@ -1031,9 +1031,8 @@ var updateDiagnostics = (stats) => {
1031
1031
  viewerEvents.length ? `viewer events: ${describeEvents(viewerEvents.slice(-5))}` : ""
1032
1032
  ].filter(Boolean).join("\n");
1033
1033
  };
1034
- var sampleConnection = (stats, current, now) => {
1034
+ var sampleConnection = (stats, current, now, shown) => {
1035
1035
  const totals = connectionTotals;
1036
- const shown = !standby && document.visibilityState === "visible" && qualityUnseen.samples < 4;
1037
1036
  if (shown && totals.sampledAt) {
1038
1037
  totals.shownSince ??= totals.sampledAt;
1039
1038
  totals.shownMs += now - totals.sampledAt;
@@ -1063,8 +1062,9 @@ var reportQuality = (stats) => {
1063
1062
  const current = qualityWindow ??= { at: now, presented: presentedFrames, freezes: inbound?.freezeCount ?? 0, longestGapMs: 0 };
1064
1063
  const decoded = transport === "webrtc" ? inbound?.framesDecoded ?? 0 : socketDecodedFrames;
1065
1064
  qualityUnseen = { decoded, presented: presentedFrames, samples: decoded > qualityUnseen.decoded && presentedFrames === qualityUnseen.presented ? qualityUnseen.samples + 1 : 0 };
1066
- if (qualityUnseen.samples >= 4) current.unseen = true;
1067
- sampleConnection(stats, telemetry, now);
1065
+ const shown = !standby && document.visibilityState === "visible" && qualityUnseen.samples < 4;
1066
+ if (!shown) current.unseen = true;
1067
+ sampleConnection(stats, telemetry, now, shown);
1068
1068
  qualitySamples.push({ stats, telemetry });
1069
1069
  const windowMs = now - current.at;
1070
1070
  if (windowMs < qualityWindowMs) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-computer",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "description": "Replicas workspace computer-use runtime",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",