@openscout/protocol 0.2.92 → 0.2.94

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/src/presence.ts CHANGED
@@ -25,17 +25,6 @@ import type { ObservedActivity, ObservedStatusPhase } from "./observed-status.js
25
25
  */
26
26
  export const PRESENCE_STALE_AFTER_MS = 45_000;
27
27
 
28
- /**
29
- * Maximum steady-state gap between freshness-bearing presence updates.
30
- *
31
- * A renderer only knows the `staleAt` carried by the last beat it received.
32
- * The broker therefore republishes an otherwise unchanged beat before that
33
- * deadline while newer liveness evidence keeps arriving. This remains bounded
34
- * (two events per minute at the defaults) without letting a continuously
35
- * heartbeating agent expire in a connected client.
36
- */
37
- export const PRESENCE_REFRESH_INTERVAL_MS = 30_000;
38
-
39
28
  /**
40
29
  * How long a stale beat lingers before it is dropped entirely.
41
30
  *
@@ -353,8 +353,8 @@ export function parseScoutRuntimeSpec(input: string): ScoutRuntimeSpecParseResul
353
353
  };
354
354
  }
355
355
  const rawHarness = parts[0]!.trim().toLowerCase();
356
- const harness = normalizeScoutLaunchableHarness(rawHarness);
357
- if (!harness) {
356
+ const harness = (rawHarness === "oc" ? "opencode" : rawHarness) as ScoutLaunchableHarness;
357
+ if (!isScoutLaunchableHarness(harness)) {
358
358
  return {
359
359
  ok: false,
360
360
  error: `unsupported runtime harness "${parts[0]}"; expected one of: ${SCOUT_LAUNCHABLE_HARNESSES.join(", ")}`,
@@ -415,7 +415,7 @@ export function normalizeScoutLaunchableHarness(
415
415
  export function isScoutLaunchableHarness(value: string | null | undefined): value is ScoutLaunchableHarness {
416
416
  if (!value) return false;
417
417
  const normalized = value.trim().toLowerCase();
418
- return SCOUT_LAUNCHABLE_HARNESSES.includes(normalized as ScoutLaunchableHarness);
418
+ return normalized === "oc" || SCOUT_LAUNCHABLE_HARNESSES.includes(normalized as ScoutLaunchableHarness);
419
419
  }
420
420
 
421
421
  export function normalizeScoutReasoningEffort(