From 760c4f80fa3fa1b99749d4b7208874aaaa44d1b1 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Fri, 9 Oct 2026 12:16:10 +0800 Subject: [PATCH] chore: pin index-v10 --- src/ml/imf/registry.ts | 2 +- test/client-work.test.ts | 4 ++-- test/imf.test.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ml/imf/registry.ts b/src/ml/imf/registry.ts index 31e6863..7d69e7b 100644 --- a/src/ml/imf/registry.ts +++ b/src/ml/imf/registry.ts @@ -16,7 +16,7 @@ import { load as loadYaml } from "js-yaml" export const DEFAULT_INDEX_URL = - "https://github.com/interscript/interscript-models/releases/download/index-v9/models-index.yaml" + "https://github.com/interscript/interscript-models/releases/download/index-v10/models-index.yaml" export interface Part { url: string diff --git a/test/client-work.test.ts b/test/client-work.test.ts index 4cb33f7..16905c6 100644 --- a/test/client-work.test.ts +++ b/test/client-work.test.ts @@ -145,9 +145,9 @@ describe("CORS asset rewrite (13)", () => { it("rewrites canonical interscript-models release URLs too", () => { expect( corsAssetUrl( - "https://github.com/interscript/interscript-models/releases/download/index-v9/models-index.yaml", + "https://github.com/interscript/interscript-models/releases/download/index-v10/models-index.yaml", ), - ).toBe("https://api.interscript.org/v1/assets/index-v9/models-index.yaml") + ).toBe("https://api.interscript.org/v1/assets/index-v10/models-index.yaml") }) it("leaves other hosts and schemes untouched", () => { expect(corsAssetUrl("https://example.com/x.zip")).toBe("https://example.com/x.zip") diff --git a/test/imf.test.ts b/test/imf.test.ts index 477e99b..89801ee 100644 --- a/test/imf.test.ts +++ b/test/imf.test.ts @@ -259,7 +259,7 @@ describe("registry", () => { it("DEFAULT_INDEX_URL pins a GitHub Release asset, never raw", async () => { const { DEFAULT_INDEX_URL } = await import("../src/ml/imf/registry.js") expect(DEFAULT_INDEX_URL).toMatch( - /^https:\/\/github\.com\/interscript\/interscript-models\/releases\/download\/index-v9\/models-index\.yaml$/, + /^https:\/\/github\.com\/interscript\/interscript-models\/releases\/download\/index-v10\/models-index\.yaml$/, ) expect(DEFAULT_INDEX_URL).not.toMatch(/raw\.githubusercontent/) }) @@ -389,7 +389,7 @@ describe("registry", () => { expect(typeof imf!["resolve"]).toBe("function") expect(typeof imf!["IMFModel"]).toBe("function") expect(imf!["DEFAULT_INDEX_URL"]).toMatch( - /github\.com\/interscript\/interscript-models\/releases\/download\/index-v9\/models-index\.yaml/, + /github\.com\/interscript\/interscript-models\/releases\/download\/index-v10\/models-index\.yaml/, ) }) })