MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / bestEffortMigrations

Function bestEffortMigrations

apps/vis/server/src/lib/wire-reader.ts:24–30  ·  view source on GitHub ↗

Best-effort fallback for a wire file whose declared `protocol_version` is * below the known migration chain (below 1.0, or otherwise unrecognized-low): * `resolveWireMigrations` threw for it. We retry from the oldest known version * (1.0) and warn the caller; if even that fails we pass records

()

Source from the content-addressed store, hash-verified

22 * unchanged. (Versions at/above the current 1.4 never reach here — they
23 * resolve to an empty chain and are passed through directly.) */
24function bestEffortMigrations(): readonly WireMigration[] {
25 try {
26 return resolveWireMigrations('1.0');
27 } catch {
28 return [];
29 }
30}
31
32/** Read a single agent's `wire.jsonl`.
33 *

Callers 1

readAgentWireFunction · 0.85

Calls 1

resolveWireMigrationsFunction · 0.90

Tested by

no test coverage detected