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
()
| 22 | * unchanged. (Versions at/above the current 1.4 never reach here — they |
| 23 | * resolve to an empty chain and are passed through directly.) */ |
| 24 | function 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 | * |
no test coverage detected