@devries-cameron20 / t3code Mirror · read-only / commits / 31fb210090
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 10:15 UTC

refactor(server): keep manifest age parsing private (#10028)

Julius Marminge committed Sep 5, 2026 at 01:19 UTC 31fb21009024e9476bda4705355d55491d7fd2ef
2 files changed +1 -3
apps/server/src/provider/ModelManifest.test.ts
-2
@@ -17,7 +17,6 @@ import {
17 make,
18 resolveProviderCatalog,
19 type ModelManifestData,
20 - manifestUpdatedAtMs,
20 encodeManifestCache,
21 } from "./ModelManifest.ts";
22
@@ -382,7 +381,6 @@ describe("ModelManifest service", () => {
381 const fs = yield* FileSystem.FileSystem;
382 const path = yield* Path.Path;
383 const config = yield* ServerConfig.ServerConfig;
385 - assert.isAbove(manifestUpdatedAtMs(BUNDLED_MODEL_MANIFEST), 0);
384 const cachePath = path.join(config.stateDir, "model-manifest.json");
385 // A cache of the manifest as it was before the release edited it. The
386 // fetch time is irrelevant: the remote may be unreachable now, so
apps/server/src/provider/ModelManifest.ts
+1 -1
@@ -138,7 +138,7 @@ export const BUNDLED_MODEL_MANIFEST: ModelManifestData =
138 Schema.decodeUnknownSync(ModelManifestSchema)(bundledManifestJson);
139
140 /** Epoch millis of the manifest's `updatedAt`, or 0 when absent or unparsable. */
141 -export function manifestUpdatedAtMs(manifest: ModelManifestData): number {
141 +function manifestUpdatedAtMs(manifest: ModelManifestData): number {
142 if (manifest.updatedAt === undefined) return 0;
143 const parsed = Date.parse(manifest.updatedAt);
144 return Number.isNaN(parsed) ? 0 : parsed;