@ashx-j/lunr-ai 0.2.13 → 0.2.14

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.
Files changed (37) hide show
  1. package/dist/catalog/codex.d.ts +9 -0
  2. package/dist/catalog/codex.d.ts.map +1 -0
  3. package/dist/catalog/codex.js +90 -0
  4. package/dist/catalog/codex.js.map +1 -0
  5. package/dist/catalog/metadata.d.ts +4 -0
  6. package/dist/catalog/metadata.d.ts.map +1 -0
  7. package/dist/catalog/metadata.js +20 -0
  8. package/dist/catalog/metadata.js.map +1 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +1 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/models-store.d.ts +3 -0
  14. package/dist/models-store.d.ts.map +1 -1
  15. package/dist/models-store.js.map +1 -1
  16. package/dist/models.generated.d.ts +89 -0
  17. package/dist/models.generated.d.ts.map +1 -1
  18. package/dist/openai-effort.d.ts +34 -0
  19. package/dist/openai-effort.d.ts.map +1 -0
  20. package/dist/openai-effort.js +81 -0
  21. package/dist/openai-effort.js.map +1 -0
  22. package/dist/providers/azure-openai-responses.models.d.ts +23 -0
  23. package/dist/providers/azure-openai-responses.models.d.ts.map +1 -1
  24. package/dist/providers/azure-openai-responses.models.js +18 -0
  25. package/dist/providers/azure-openai-responses.models.js.map +1 -1
  26. package/dist/providers/openai-codex.models.d.ts +33 -0
  27. package/dist/providers/openai-codex.models.d.ts.map +1 -1
  28. package/dist/providers/openai-codex.models.js +20 -0
  29. package/dist/providers/openai-codex.models.js.map +1 -1
  30. package/dist/providers/openai.models.d.ts +33 -0
  31. package/dist/providers/openai.models.d.ts.map +1 -1
  32. package/dist/providers/openai.models.js +20 -0
  33. package/dist/providers/openai.models.js.map +1 -1
  34. package/dist/types.d.ts +8 -0
  35. package/dist/types.d.ts.map +1 -1
  36. package/dist/types.js.map +1 -1
  37. package/package.json +5 -1
@@ -0,0 +1,9 @@
1
+ import type { Model } from "../types.ts";
2
+ export declare const CODEX_CATALOG_CLIENT_VERSION = "0.153.4";
3
+ export declare const CODEX_RELEASE_URL = "https://registry.npmjs.org/@openai/codex/latest";
4
+ export declare function codexModelsUrl(baseUrl: string, clientVersion?: string): string;
5
+ /** Fetch only a release number, never npm code. Backend visibility is version-gated. */
6
+ export declare function resolveCodexCatalogVersion(fetchImpl: typeof fetch, signal: AbortSignal, fallback?: string): Promise<string>;
7
+ /** Parse only model capabilities; server prompt templates and tool instructions are not imported. */
8
+ export declare function parseCodexCatalog(payload: unknown, baseUrl: string): Model<"openai-codex-responses">[];
9
+ //# sourceMappingURL=codex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/catalog/codex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAoB,MAAM,aAAa,CAAC;AAG3D,eAAO,MAAM,4BAA4B,YAAY,CAAC;AACtD,eAAO,MAAM,iBAAiB,oDAAoD,CAAC;AAGnF,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,SAA+B,GAAG,MAAM,CAGpG;AAED,wFAAwF;AACxF,wBAAsB,0BAA0B,CAC/C,SAAS,EAAE,OAAO,KAAK,EACvB,MAAM,EAAE,WAAW,EACnB,QAAQ,SAA+B,GACrC,OAAO,CAAC,MAAM,CAAC,CAajB;AAED,qGAAqG;AACrG,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,wBAAwB,CAAC,EAAE,CA0DtG","sourcesContent":["import type { Model, ThinkingLevelMap } from \"../types.ts\";\n\n// Version of the Codex discovery protocol we implement, independent of lunR's package version.\nexport const CODEX_CATALOG_CLIENT_VERSION = \"0.153.4\";\nexport const CODEX_RELEASE_URL = \"https://registry.npmjs.org/@openai/codex/latest\";\nconst LEVELS = [\"off\", \"minimal\", \"low\", \"medium\", \"high\", \"xhigh\", \"max\"] as const;\n\nexport function codexModelsUrl(baseUrl: string, clientVersion = CODEX_CATALOG_CLIENT_VERSION): string {\n\tconst base = baseUrl.replace(/\\/+$/, \"\");\n\treturn `${base.endsWith(\"/codex\") ? base : `${base}/codex`}/models?client_version=${encodeURIComponent(clientVersion)}`;\n}\n\n/** Fetch only a release number, never npm code. Backend visibility is version-gated. */\nexport async function resolveCodexCatalogVersion(\n\tfetchImpl: typeof fetch,\n\tsignal: AbortSignal,\n\tfallback = CODEX_CATALOG_CLIENT_VERSION,\n): Promise<string> {\n\ttry {\n\t\tconst response = await fetchImpl(CODEX_RELEASE_URL, {\n\t\t\tsignal: AbortSignal.any([signal, AbortSignal.timeout(1500)]),\n\t\t\theaders: { accept: \"application/json\" },\n\t\t});\n\t\tif (!response.ok) return fallback;\n\t\tconst value = (await response.json()) as { version?: unknown } | null;\n\t\tif (typeof value?.version !== \"string\" || !/^\\d+\\.\\d+\\.\\d+$/.test(value.version)) return fallback;\n\t\treturn value.version;\n\t} catch {\n\t\treturn fallback;\n\t}\n}\n\n/** Parse only model capabilities; server prompt templates and tool instructions are not imported. */\nexport function parseCodexCatalog(payload: unknown, baseUrl: string): Model<\"openai-codex-responses\">[] {\n\tif (!payload || typeof payload !== \"object\" || !Array.isArray((payload as { models?: unknown }).models)) {\n\t\tthrow new Error(\"Invalid Codex model catalog: expected models array\");\n\t}\n\tconst models = new Map<string, Model<\"openai-codex-responses\">>();\n\tfor (const value of (payload as { models: unknown[] }).models) {\n\t\tif (!value || typeof value !== \"object\") throw new Error(\"Invalid Codex model entry\");\n\t\tconst row = value as Record<string, unknown>;\n\t\tif (typeof row.slug !== \"string\" || !row.slug.trim()) throw new Error(\"Codex model is missing its slug\");\n\t\tconst supplied: NonNullable<Model<any>[\"catalog\"]>[\"supplied\"] = [];\n\t\tconst positive = (value: unknown) => typeof value === \"number\" && Number.isInteger(value) && value > 0;\n\t\tconst context = positive(row.context_window) ? row.context_window : row.max_context_window;\n\t\tif (positive(context)) supplied.push(\"contextWindow\");\n\t\tif (positive(row.max_output_tokens)) supplied.push(\"maxTokens\");\n\t\tconst name = typeof row.display_name === \"string\" && row.display_name.trim() ? row.display_name : row.slug;\n\t\tif (name !== row.slug) supplied.push(\"name\");\n\t\tconst input = Array.isArray(row.input_modalities)\n\t\t\t? row.input_modalities.filter((item): item is \"text\" | \"image\" => item === \"text\" || item === \"image\")\n\t\t\t: [];\n\t\tif (input.length) supplied.push(\"input\");\n\t\tlet thinkingLevelMap: ThinkingLevelMap | undefined;\n\t\tconst efforts = Array.isArray(row.supported_reasoning_levels)\n\t\t\t? row.supported_reasoning_levels.flatMap((item) =>\n\t\t\t\t\titem && typeof item.effort === \"string\" ? [item.effort as string] : [],\n\t\t\t\t)\n\t\t\t: [];\n\t\tif (Array.isArray(row.supported_reasoning_levels)) {\n\t\t\tthinkingLevelMap = Object.fromEntries(\n\t\t\t\tLEVELS.map((level) => [\n\t\t\t\t\tlevel,\n\t\t\t\t\tlevel === \"off\" && efforts.includes(\"none\") ? \"none\" : efforts.includes(level) ? level : null,\n\t\t\t\t]),\n\t\t\t);\n\t\t\tsupplied.push(\"reasoning\", \"thinkingLevelMap\");\n\t\t}\n\t\tmodels.set(row.slug, {\n\t\t\tid: row.slug,\n\t\t\tname,\n\t\t\tprovider: \"openai-codex\",\n\t\t\tapi: \"openai-codex-responses\",\n\t\t\tbaseUrl,\n\t\t\treasoning: efforts.length > 0,\n\t\t\tthinkingLevelMap,\n\t\t\tinput: input.length ? input : [\"text\"],\n\t\t\tcontextWindow: positive(context) ? (context as number) : 128000,\n\t\t\tmaxTokens: positive(row.max_output_tokens) ? (row.max_output_tokens as number) : 8192,\n\t\t\tcost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },\n\t\t\tcatalog: {\n\t\t\t\tsource: \"provider\",\n\t\t\t\tsupplied,\n\t\t\t\tpricing: \"unknown\",\n\t\t\t\treasoningLevels: efforts,\n\t\t\t\thidden: row.visibility !== \"list\",\n\t\t\t},\n\t\t});\n\t}\n\tif (!models.size) throw new Error(\"Codex returned an empty model catalog; retaining cached models\");\n\treturn [...models.values()];\n}\n"]}
@@ -0,0 +1,90 @@
1
+ // Version of the Codex discovery protocol we implement, independent of lunR's package version.
2
+ export const CODEX_CATALOG_CLIENT_VERSION = "0.153.4";
3
+ export const CODEX_RELEASE_URL = "https://registry.npmjs.org/@openai/codex/latest";
4
+ const LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
5
+ export function codexModelsUrl(baseUrl, clientVersion = CODEX_CATALOG_CLIENT_VERSION) {
6
+ const base = baseUrl.replace(/\/+$/, "");
7
+ return `${base.endsWith("/codex") ? base : `${base}/codex`}/models?client_version=${encodeURIComponent(clientVersion)}`;
8
+ }
9
+ /** Fetch only a release number, never npm code. Backend visibility is version-gated. */
10
+ export async function resolveCodexCatalogVersion(fetchImpl, signal, fallback = CODEX_CATALOG_CLIENT_VERSION) {
11
+ try {
12
+ const response = await fetchImpl(CODEX_RELEASE_URL, {
13
+ signal: AbortSignal.any([signal, AbortSignal.timeout(1500)]),
14
+ headers: { accept: "application/json" },
15
+ });
16
+ if (!response.ok)
17
+ return fallback;
18
+ const value = (await response.json());
19
+ if (typeof value?.version !== "string" || !/^\d+\.\d+\.\d+$/.test(value.version))
20
+ return fallback;
21
+ return value.version;
22
+ }
23
+ catch {
24
+ return fallback;
25
+ }
26
+ }
27
+ /** Parse only model capabilities; server prompt templates and tool instructions are not imported. */
28
+ export function parseCodexCatalog(payload, baseUrl) {
29
+ if (!payload || typeof payload !== "object" || !Array.isArray(payload.models)) {
30
+ throw new Error("Invalid Codex model catalog: expected models array");
31
+ }
32
+ const models = new Map();
33
+ for (const value of payload.models) {
34
+ if (!value || typeof value !== "object")
35
+ throw new Error("Invalid Codex model entry");
36
+ const row = value;
37
+ if (typeof row.slug !== "string" || !row.slug.trim())
38
+ throw new Error("Codex model is missing its slug");
39
+ const supplied = [];
40
+ const positive = (value) => typeof value === "number" && Number.isInteger(value) && value > 0;
41
+ const context = positive(row.context_window) ? row.context_window : row.max_context_window;
42
+ if (positive(context))
43
+ supplied.push("contextWindow");
44
+ if (positive(row.max_output_tokens))
45
+ supplied.push("maxTokens");
46
+ const name = typeof row.display_name === "string" && row.display_name.trim() ? row.display_name : row.slug;
47
+ if (name !== row.slug)
48
+ supplied.push("name");
49
+ const input = Array.isArray(row.input_modalities)
50
+ ? row.input_modalities.filter((item) => item === "text" || item === "image")
51
+ : [];
52
+ if (input.length)
53
+ supplied.push("input");
54
+ let thinkingLevelMap;
55
+ const efforts = Array.isArray(row.supported_reasoning_levels)
56
+ ? row.supported_reasoning_levels.flatMap((item) => item && typeof item.effort === "string" ? [item.effort] : [])
57
+ : [];
58
+ if (Array.isArray(row.supported_reasoning_levels)) {
59
+ thinkingLevelMap = Object.fromEntries(LEVELS.map((level) => [
60
+ level,
61
+ level === "off" && efforts.includes("none") ? "none" : efforts.includes(level) ? level : null,
62
+ ]));
63
+ supplied.push("reasoning", "thinkingLevelMap");
64
+ }
65
+ models.set(row.slug, {
66
+ id: row.slug,
67
+ name,
68
+ provider: "openai-codex",
69
+ api: "openai-codex-responses",
70
+ baseUrl,
71
+ reasoning: efforts.length > 0,
72
+ thinkingLevelMap,
73
+ input: input.length ? input : ["text"],
74
+ contextWindow: positive(context) ? context : 128000,
75
+ maxTokens: positive(row.max_output_tokens) ? row.max_output_tokens : 8192,
76
+ cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
77
+ catalog: {
78
+ source: "provider",
79
+ supplied,
80
+ pricing: "unknown",
81
+ reasoningLevels: efforts,
82
+ hidden: row.visibility !== "list",
83
+ },
84
+ });
85
+ }
86
+ if (!models.size)
87
+ throw new Error("Codex returned an empty model catalog; retaining cached models");
88
+ return [...models.values()];
89
+ }
90
+ //# sourceMappingURL=codex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/catalog/codex.ts"],"names":[],"mappings":"AAEA,+FAA+F;AA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["import type { Model, ThinkingLevelMap } from \"../types.ts\";\n\n// Version of the Codex discovery protocol we implement, independent of lunR's package version.\nexport const CODEX_CATALOG_CLIENT_VERSION = \"0.153.4\";\nexport const CODEX_RELEASE_URL = \"https://registry.npmjs.org/@openai/codex/latest\";\nconst LEVELS = [\"off\", \"minimal\", \"low\", \"medium\", \"high\", \"xhigh\", \"max\"] as const;\n\nexport function codexModelsUrl(baseUrl: string, clientVersion = CODEX_CATALOG_CLIENT_VERSION): string {\n\tconst base = baseUrl.replace(/\\/+$/, \"\");\n\treturn `${base.endsWith(\"/codex\") ? base : `${base}/codex`}/models?client_version=${encodeURIComponent(clientVersion)}`;\n}\n\n/** Fetch only a release number, never npm code. Backend visibility is version-gated. */\nexport async function resolveCodexCatalogVersion(\n\tfetchImpl: typeof fetch,\n\tsignal: AbortSignal,\n\tfallback = CODEX_CATALOG_CLIENT_VERSION,\n): Promise<string> {\n\ttry {\n\t\tconst response = await fetchImpl(CODEX_RELEASE_URL, {\n\t\t\tsignal: AbortSignal.any([signal, AbortSignal.timeout(1500)]),\n\t\t\theaders: { accept: \"application/json\" },\n\t\t});\n\t\tif (!response.ok) return fallback;\n\t\tconst value = (await response.json()) as { version?: unknown } | null;\n\t\tif (typeof value?.version !== \"string\" || !/^\\d+\\.\\d+\\.\\d+$/.test(value.version)) return fallback;\n\t\treturn value.version;\n\t} catch {\n\t\treturn fallback;\n\t}\n}\n\n/** Parse only model capabilities; server prompt templates and tool instructions are not imported. */\nexport function parseCodexCatalog(payload: unknown, baseUrl: string): Model<\"openai-codex-responses\">[] {\n\tif (!payload || typeof payload !== \"object\" || !Array.isArray((payload as { models?: unknown }).models)) {\n\t\tthrow new Error(\"Invalid Codex model catalog: expected models array\");\n\t}\n\tconst models = new Map<string, Model<\"openai-codex-responses\">>();\n\tfor (const value of (payload as { models: unknown[] }).models) {\n\t\tif (!value || typeof value !== \"object\") throw new Error(\"Invalid Codex model entry\");\n\t\tconst row = value as Record<string, unknown>;\n\t\tif (typeof row.slug !== \"string\" || !row.slug.trim()) throw new Error(\"Codex model is missing its slug\");\n\t\tconst supplied: NonNullable<Model<any>[\"catalog\"]>[\"supplied\"] = [];\n\t\tconst positive = (value: unknown) => typeof value === \"number\" && Number.isInteger(value) && value > 0;\n\t\tconst context = positive(row.context_window) ? row.context_window : row.max_context_window;\n\t\tif (positive(context)) supplied.push(\"contextWindow\");\n\t\tif (positive(row.max_output_tokens)) supplied.push(\"maxTokens\");\n\t\tconst name = typeof row.display_name === \"string\" && row.display_name.trim() ? row.display_name : row.slug;\n\t\tif (name !== row.slug) supplied.push(\"name\");\n\t\tconst input = Array.isArray(row.input_modalities)\n\t\t\t? row.input_modalities.filter((item): item is \"text\" | \"image\" => item === \"text\" || item === \"image\")\n\t\t\t: [];\n\t\tif (input.length) supplied.push(\"input\");\n\t\tlet thinkingLevelMap: ThinkingLevelMap | undefined;\n\t\tconst efforts = Array.isArray(row.supported_reasoning_levels)\n\t\t\t? row.supported_reasoning_levels.flatMap((item) =>\n\t\t\t\t\titem && typeof item.effort === \"string\" ? [item.effort as string] : [],\n\t\t\t\t)\n\t\t\t: [];\n\t\tif (Array.isArray(row.supported_reasoning_levels)) {\n\t\t\tthinkingLevelMap = Object.fromEntries(\n\t\t\t\tLEVELS.map((level) => [\n\t\t\t\t\tlevel,\n\t\t\t\t\tlevel === \"off\" && efforts.includes(\"none\") ? \"none\" : efforts.includes(level) ? level : null,\n\t\t\t\t]),\n\t\t\t);\n\t\t\tsupplied.push(\"reasoning\", \"thinkingLevelMap\");\n\t\t}\n\t\tmodels.set(row.slug, {\n\t\t\tid: row.slug,\n\t\t\tname,\n\t\t\tprovider: \"openai-codex\",\n\t\t\tapi: \"openai-codex-responses\",\n\t\t\tbaseUrl,\n\t\t\treasoning: efforts.length > 0,\n\t\t\tthinkingLevelMap,\n\t\t\tinput: input.length ? input : [\"text\"],\n\t\t\tcontextWindow: positive(context) ? (context as number) : 128000,\n\t\t\tmaxTokens: positive(row.max_output_tokens) ? (row.max_output_tokens as number) : 8192,\n\t\t\tcost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },\n\t\t\tcatalog: {\n\t\t\t\tsource: \"provider\",\n\t\t\t\tsupplied,\n\t\t\t\tpricing: \"unknown\",\n\t\t\t\treasoningLevels: efforts,\n\t\t\t\thidden: row.visibility !== \"list\",\n\t\t\t},\n\t\t});\n\t}\n\tif (!models.size) throw new Error(\"Codex returned an empty model catalog; retaining cached models\");\n\treturn [...models.values()];\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { Api, Model } from "../types.ts";
2
+ /** Dynamic routers may report negative price sentinels. Keep them usable without reporting negative/free costs. */
3
+ export declare function normalizeCatalogPricing<T extends Model<Api>>(model: T): T;
4
+ //# sourceMappingURL=metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/catalog/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE9C,mHAAmH;AACnH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAezE","sourcesContent":["import type { Api, Model } from \"../types.ts\";\n\n/** Dynamic routers may report negative price sentinels. Keep them usable without reporting negative/free costs. */\nexport function normalizeCatalogPricing<T extends Model<Api>>(model: T): T {\n\tconst fields = [\"input\", \"output\", \"cacheRead\", \"cacheWrite\"] as const;\n\tif (fields.every((field) => Number.isFinite(model.cost[field]) && model.cost[field] >= 0)) return model;\n\tconst cost = { ...model.cost };\n\tfor (const field of fields) cost[field] = Math.max(0, Number.isFinite(cost[field]) ? cost[field] : 0);\n\treturn {\n\t\t...model,\n\t\tcost,\n\t\tcatalog: {\n\t\t\t...model.catalog,\n\t\t\tsource: \"provider\",\n\t\t\tsupplied: (model.catalog?.supplied ?? []).filter((field) => field !== \"cost\"),\n\t\t\tpricing: \"unknown\",\n\t\t},\n\t};\n}\n"]}
@@ -0,0 +1,20 @@
1
+ /** Dynamic routers may report negative price sentinels. Keep them usable without reporting negative/free costs. */
2
+ export function normalizeCatalogPricing(model) {
3
+ const fields = ["input", "output", "cacheRead", "cacheWrite"];
4
+ if (fields.every((field) => Number.isFinite(model.cost[field]) && model.cost[field] >= 0))
5
+ return model;
6
+ const cost = { ...model.cost };
7
+ for (const field of fields)
8
+ cost[field] = Math.max(0, Number.isFinite(cost[field]) ? cost[field] : 0);
9
+ return {
10
+ ...model,
11
+ cost,
12
+ catalog: {
13
+ ...model.catalog,
14
+ source: "provider",
15
+ supplied: (model.catalog?.supplied ?? []).filter((field) => field !== "cost"),
16
+ pricing: "unknown",
17
+ },
18
+ };
19
+ }
20
+ //# sourceMappingURL=metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/catalog/metadata.ts"],"names":[],"mappings":"AAEA,mHAAmH;AACnH,MAAM,UAAU,uBAAuB,CAAuB,KAAQ,EAAK;IAC1E,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,CAAU,CAAC;IACvE,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IACxG,MAAM,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC/B,KAAK,MAAM,KAAK,IAAI,MAAM;QAAE,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtG,OAAO;QACN,GAAG,KAAK;QACR,IAAI;QACJ,OAAO,EAAE;YACR,GAAG,KAAK,CAAC,OAAO;YAChB,MAAM,EAAE,UAAU;YAClB,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC;YAC7E,OAAO,EAAE,SAAS;SAClB;KACD,CAAC;AAAA,CACF","sourcesContent":["import type { Api, Model } from \"../types.ts\";\n\n/** Dynamic routers may report negative price sentinels. Keep them usable without reporting negative/free costs. */\nexport function normalizeCatalogPricing<T extends Model<Api>>(model: T): T {\n\tconst fields = [\"input\", \"output\", \"cacheRead\", \"cacheWrite\"] as const;\n\tif (fields.every((field) => Number.isFinite(model.cost[field]) && model.cost[field] >= 0)) return model;\n\tconst cost = { ...model.cost };\n\tfor (const field of fields) cost[field] = Math.max(0, Number.isFinite(cost[field]) ? cost[field] : 0);\n\treturn {\n\t\t...model,\n\t\tcost,\n\t\tcatalog: {\n\t\t\t...model.catalog,\n\t\t\tsource: \"provider\",\n\t\t\tsupplied: (model.catalog?.supplied ?? []).filter((field) => field !== \"cost\"),\n\t\t\tpricing: \"unknown\",\n\t\t},\n\t};\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export type { OAuthAuthInfo, OAuthDeviceCodeInfo, OAuthLoginCallbacks, OAuthProm
20
20
  export * from "./images-models.ts";
21
21
  export * from "./models.ts";
22
22
  export * from "./models-store.ts";
23
+ export { canonicalOpenAiModelId, isOpenAiChatModel, OPENAI_GPT6_THINKING_LEVEL_MAP, parseOpenAiGptVersion, supportsOpenAiMax, supportsOpenAiXhigh, withOpenAiEffortMetadata, } from "./openai-effort.ts";
23
24
  export * from "./providers/faux.ts";
24
25
  export * from "./session-resources.ts";
25
26
  export * from "./types.ts";
@@ -1 +1 @@
1
- {"version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;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,OAAO,EACN,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACpB,gCAAgC,EAChC,uBAAuB,GACvB,MAAM,iBAAiB,CAAC","sourcesContent":["export type { Static, TSchema } from \"typebox\";\nexport { Type } from \"typebox\";\n\n// Core only, side-effect free: no generated catalogs, no provider factories,\n// no api-registry, no OAuth implementations, no compat. Provider factories\n// live under \"@ashx-j/lunr-ai/providers/*\", API implementations under\n// \"@ashx-j/lunr-ai/api/*\", the old global API under\n// \"@ashx-j/lunr-ai/compat\".\nexport type { AnthropicEffort, AnthropicOptions, AnthropicThinkingDisplay } from \"./api/anthropic-messages.ts\";\nexport type { AzureOpenAIResponsesOptions } from \"./api/azure-openai-responses.ts\";\nexport type { BedrockOptions, BedrockThinkingDisplay } from \"./api/bedrock-converse-stream.ts\";\nexport type { GoogleOptions } from \"./api/google-generative-ai.ts\";\nexport type { GoogleThinkingLevel } from \"./api/google-shared.ts\";\nexport type { GoogleVertexOptions } from \"./api/google-vertex.ts\";\nexport * from \"./api/lazy.ts\";\nexport type { MistralOptions } from \"./api/mistral-conversations.ts\";\nexport type { OpenAICodexResponsesOptions, OpenAICodexWebSocketDebugStats } from \"./api/openai-codex-responses.ts\";\nexport type { OpenAICompletionsOptions } from \"./api/openai-completions.ts\";\nexport type { OpenAIResponsesOptions } from \"./api/openai-responses.ts\";\nexport type { PiMessagesEvent, PiMessagesOptions, PiMessagesRewriteImpact } from \"./api/pi-messages.ts\";\nexport * from \"./auth/context.ts\";\nexport * from \"./auth/credential-store.ts\";\nexport * from \"./auth/helpers.ts\";\nexport * from \"./auth/types.ts\";\nexport type {\n\tOAuthAuthInfo,\n\tOAuthDeviceCodeInfo,\n\tOAuthLoginCallbacks,\n\tOAuthPrompt,\n\tOAuthSelectOption,\n\tOAuthSelectPrompt,\n} from \"./compat/extension-oauth-types.ts\";\nexport * from \"./images-models.ts\";\nexport * from \"./models.ts\";\nexport * from \"./models-store.ts\";\nexport * from \"./providers/faux.ts\";\nexport * from \"./session-resources.ts\";\nexport * from \"./types.ts\";\nexport * from \"./utils/diagnostics.ts\";\nexport * from \"./utils/event-stream.ts\";\nexport * from \"./utils/json-parse.ts\";\nexport * from \"./utils/overflow.ts\";\nexport * from \"./utils/retry.ts\";\nexport * from \"./utils/typebox-helpers.ts\";\nexport * from \"./utils/validation.ts\";\nexport {\n\tparseXaiGrok4Minor,\n\tshouldUseXaiResponsesApi,\n\twithXaiEffortMetadata,\n\tXAI_GROK45_THINKING_LEVEL_MAP,\n\tXAI_GROK46_THINKING_LEVEL_MAP,\n\tXAI_RESPONSES_COMPAT,\n\tXAI_RESPONSES_EXCLUDED_MODEL_IDS,\n\tXAI_RESPONSES_MIN_MINOR,\n} from \"./xai-effort.ts\";\n"]}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAO/B,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC/G,YAAY,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACnF,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/F,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;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Type } from \"typebox\";\n\n// Core only, side-effect free: no generated catalogs, no provider factories,\n// no api-registry, no OAuth implementations, no compat. Provider factories\n// live under \"@ashx-j/lunr-ai/providers/*\", API implementations under\n// \"@ashx-j/lunr-ai/api/*\", the old global API under\n// \"@ashx-j/lunr-ai/compat\".\nexport type { AnthropicEffort, AnthropicOptions, AnthropicThinkingDisplay } from \"./api/anthropic-messages.ts\";\nexport type { AzureOpenAIResponsesOptions } from \"./api/azure-openai-responses.ts\";\nexport type { BedrockOptions, BedrockThinkingDisplay } from \"./api/bedrock-converse-stream.ts\";\nexport type { GoogleOptions } from \"./api/google-generative-ai.ts\";\nexport type { GoogleThinkingLevel } from \"./api/google-shared.ts\";\nexport type { GoogleVertexOptions } from \"./api/google-vertex.ts\";\nexport * from \"./api/lazy.ts\";\nexport type { MistralOptions } from \"./api/mistral-conversations.ts\";\nexport type { OpenAICodexResponsesOptions, OpenAICodexWebSocketDebugStats } from \"./api/openai-codex-responses.ts\";\nexport type { OpenAICompletionsOptions } from \"./api/openai-completions.ts\";\nexport type { OpenAIResponsesOptions } from \"./api/openai-responses.ts\";\nexport type { PiMessagesEvent, PiMessagesOptions, PiMessagesRewriteImpact } from \"./api/pi-messages.ts\";\nexport * from \"./auth/context.ts\";\nexport * from \"./auth/credential-store.ts\";\nexport * from \"./auth/helpers.ts\";\nexport * from \"./auth/types.ts\";\nexport type {\n\tOAuthAuthInfo,\n\tOAuthDeviceCodeInfo,\n\tOAuthLoginCallbacks,\n\tOAuthPrompt,\n\tOAuthSelectOption,\n\tOAuthSelectPrompt,\n} from \"./compat/extension-oauth-types.ts\";\nexport * from \"./images-models.ts\";\nexport * from \"./models.ts\";\nexport * from \"./models-store.ts\";\nexport {\n\tcanonicalOpenAiModelId,\n\tisOpenAiChatModel,\n\tOPENAI_GPT6_THINKING_LEVEL_MAP,\n\tparseOpenAiGptVersion,\n\tsupportsOpenAiMax,\n\tsupportsOpenAiXhigh,\n\twithOpenAiEffortMetadata,\n} from \"./openai-effort.ts\";\nexport * from \"./providers/faux.ts\";\nexport * from \"./session-resources.ts\";\nexport * from \"./types.ts\";\nexport * from \"./utils/diagnostics.ts\";\nexport * from \"./utils/event-stream.ts\";\nexport * from \"./utils/json-parse.ts\";\nexport * from \"./utils/overflow.ts\";\nexport * from \"./utils/retry.ts\";\nexport * from \"./utils/typebox-helpers.ts\";\nexport * from \"./utils/validation.ts\";\nexport {\n\tparseXaiGrok4Minor,\n\tshouldUseXaiResponsesApi,\n\twithXaiEffortMetadata,\n\tXAI_GROK45_THINKING_LEVEL_MAP,\n\tXAI_GROK46_THINKING_LEVEL_MAP,\n\tXAI_RESPONSES_COMPAT,\n\tXAI_RESPONSES_EXCLUDED_MODEL_IDS,\n\tXAI_RESPONSES_MIN_MINOR,\n} from \"./xai-effort.ts\";\n"]}
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ export * from "./auth/types.js";
7
7
  export * from "./images-models.js";
8
8
  export * from "./models.js";
9
9
  export * from "./models-store.js";
10
+ export { canonicalOpenAiModelId, isOpenAiChatModel, OPENAI_GPT6_THINKING_LEVEL_MAP, parseOpenAiGptVersion, supportsOpenAiMax, supportsOpenAiXhigh, withOpenAiEffortMetadata, } from "./openai-effort.js";
10
11
  export * from "./providers/faux.js";
11
12
  export * from "./session-resources.js";
12
13
  export * from "./types.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAa/B,cAAc,eAAe,CAAC;AAM9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAShC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,OAAO,EACN,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACpB,gCAAgC,EAChC,uBAAuB,GACvB,MAAM,iBAAiB,CAAC","sourcesContent":["export type { Static, TSchema } from \"typebox\";\nexport { Type } from \"typebox\";\n\n// Core only, side-effect free: no generated catalogs, no provider factories,\n// no api-registry, no OAuth implementations, no compat. Provider factories\n// live under \"@ashx-j/lunr-ai/providers/*\", API implementations under\n// \"@ashx-j/lunr-ai/api/*\", the old global API under\n// \"@ashx-j/lunr-ai/compat\".\nexport type { AnthropicEffort, AnthropicOptions, AnthropicThinkingDisplay } from \"./api/anthropic-messages.ts\";\nexport type { AzureOpenAIResponsesOptions } from \"./api/azure-openai-responses.ts\";\nexport type { BedrockOptions, BedrockThinkingDisplay } from \"./api/bedrock-converse-stream.ts\";\nexport type { GoogleOptions } from \"./api/google-generative-ai.ts\";\nexport type { GoogleThinkingLevel } from \"./api/google-shared.ts\";\nexport type { GoogleVertexOptions } from \"./api/google-vertex.ts\";\nexport * from \"./api/lazy.ts\";\nexport type { MistralOptions } from \"./api/mistral-conversations.ts\";\nexport type { OpenAICodexResponsesOptions, OpenAICodexWebSocketDebugStats } from \"./api/openai-codex-responses.ts\";\nexport type { OpenAICompletionsOptions } from \"./api/openai-completions.ts\";\nexport type { OpenAIResponsesOptions } from \"./api/openai-responses.ts\";\nexport type { PiMessagesEvent, PiMessagesOptions, PiMessagesRewriteImpact } from \"./api/pi-messages.ts\";\nexport * from \"./auth/context.ts\";\nexport * from \"./auth/credential-store.ts\";\nexport * from \"./auth/helpers.ts\";\nexport * from \"./auth/types.ts\";\nexport type {\n\tOAuthAuthInfo,\n\tOAuthDeviceCodeInfo,\n\tOAuthLoginCallbacks,\n\tOAuthPrompt,\n\tOAuthSelectOption,\n\tOAuthSelectPrompt,\n} from \"./compat/extension-oauth-types.ts\";\nexport * from \"./images-models.ts\";\nexport * from \"./models.ts\";\nexport * from \"./models-store.ts\";\nexport * from \"./providers/faux.ts\";\nexport * from \"./session-resources.ts\";\nexport * from \"./types.ts\";\nexport * from \"./utils/diagnostics.ts\";\nexport * from \"./utils/event-stream.ts\";\nexport * from \"./utils/json-parse.ts\";\nexport * from \"./utils/overflow.ts\";\nexport * from \"./utils/retry.ts\";\nexport * from \"./utils/typebox-helpers.ts\";\nexport * from \"./utils/validation.ts\";\nexport {\n\tparseXaiGrok4Minor,\n\tshouldUseXaiResponsesApi,\n\twithXaiEffortMetadata,\n\tXAI_GROK45_THINKING_LEVEL_MAP,\n\tXAI_GROK46_THINKING_LEVEL_MAP,\n\tXAI_RESPONSES_COMPAT,\n\tXAI_RESPONSES_EXCLUDED_MODEL_IDS,\n\tXAI_RESPONSES_MIN_MINOR,\n} from \"./xai-effort.ts\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAa/B,cAAc,eAAe,CAAC;AAM9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAShC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACN,sBAAsB,EACtB,iBAAiB,EACjB,8BAA8B,EAC9B,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,OAAO,EACN,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACpB,gCAAgC,EAChC,uBAAuB,GACvB,MAAM,iBAAiB,CAAC","sourcesContent":["export type { Static, TSchema } from \"typebox\";\nexport { Type } from \"typebox\";\n\n// Core only, side-effect free: no generated catalogs, no provider factories,\n// no api-registry, no OAuth implementations, no compat. Provider factories\n// live under \"@ashx-j/lunr-ai/providers/*\", API implementations under\n// \"@ashx-j/lunr-ai/api/*\", the old global API under\n// \"@ashx-j/lunr-ai/compat\".\nexport type { AnthropicEffort, AnthropicOptions, AnthropicThinkingDisplay } from \"./api/anthropic-messages.ts\";\nexport type { AzureOpenAIResponsesOptions } from \"./api/azure-openai-responses.ts\";\nexport type { BedrockOptions, BedrockThinkingDisplay } from \"./api/bedrock-converse-stream.ts\";\nexport type { GoogleOptions } from \"./api/google-generative-ai.ts\";\nexport type { GoogleThinkingLevel } from \"./api/google-shared.ts\";\nexport type { GoogleVertexOptions } from \"./api/google-vertex.ts\";\nexport * from \"./api/lazy.ts\";\nexport type { MistralOptions } from \"./api/mistral-conversations.ts\";\nexport type { OpenAICodexResponsesOptions, OpenAICodexWebSocketDebugStats } from \"./api/openai-codex-responses.ts\";\nexport type { OpenAICompletionsOptions } from \"./api/openai-completions.ts\";\nexport type { OpenAIResponsesOptions } from \"./api/openai-responses.ts\";\nexport type { PiMessagesEvent, PiMessagesOptions, PiMessagesRewriteImpact } from \"./api/pi-messages.ts\";\nexport * from \"./auth/context.ts\";\nexport * from \"./auth/credential-store.ts\";\nexport * from \"./auth/helpers.ts\";\nexport * from \"./auth/types.ts\";\nexport type {\n\tOAuthAuthInfo,\n\tOAuthDeviceCodeInfo,\n\tOAuthLoginCallbacks,\n\tOAuthPrompt,\n\tOAuthSelectOption,\n\tOAuthSelectPrompt,\n} from \"./compat/extension-oauth-types.ts\";\nexport * from \"./images-models.ts\";\nexport * from \"./models.ts\";\nexport * from \"./models-store.ts\";\nexport {\n\tcanonicalOpenAiModelId,\n\tisOpenAiChatModel,\n\tOPENAI_GPT6_THINKING_LEVEL_MAP,\n\tparseOpenAiGptVersion,\n\tsupportsOpenAiMax,\n\tsupportsOpenAiXhigh,\n\twithOpenAiEffortMetadata,\n} from \"./openai-effort.ts\";\nexport * from \"./providers/faux.ts\";\nexport * from \"./session-resources.ts\";\nexport * from \"./types.ts\";\nexport * from \"./utils/diagnostics.ts\";\nexport * from \"./utils/event-stream.ts\";\nexport * from \"./utils/json-parse.ts\";\nexport * from \"./utils/overflow.ts\";\nexport * from \"./utils/retry.ts\";\nexport * from \"./utils/typebox-helpers.ts\";\nexport * from \"./utils/validation.ts\";\nexport {\n\tparseXaiGrok4Minor,\n\tshouldUseXaiResponsesApi,\n\twithXaiEffortMetadata,\n\tXAI_GROK45_THINKING_LEVEL_MAP,\n\tXAI_GROK46_THINKING_LEVEL_MAP,\n\tXAI_RESPONSES_COMPAT,\n\tXAI_RESPONSES_EXCLUDED_MODEL_IDS,\n\tXAI_RESPONSES_MIN_MINOR,\n} from \"./xai-effort.ts\";\n"]}
@@ -1,5 +1,8 @@
1
1
  import type { Api, Model } from "./types.ts";
2
2
  export interface ModelsStoreEntry {
3
+ /** Hash of provider endpoint and account identity; never a credential. */
4
+ scope?: string;
5
+ discoveryClientVersion?: string;
3
6
  models: readonly Model<Api>[];
4
7
  /** Unix timestamp of the last completed remote check. */
5
8
  checkedAt?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"models-store.d.ts","sourceRoot":"","sources":["../src/models-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAChC,MAAM,EAAE,SAAS,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;IAC9B,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,sDAAsD;AACtD,MAAM,WAAW,WAAW;IAC3B,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IAChE,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,6FAA6F;AAC7F,MAAM,WAAW,mBAAmB;IACnC,IAAI,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IAC9C,KAAK,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,qBAAa,mBAAoB,YAAW,WAAW;IACtD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuC;IAEzD,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAGpE;IAEK,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtE;IAEK,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9C;CACD","sourcesContent":["import type { Api, Model } from \"./types.ts\";\n\nexport interface ModelsStoreEntry {\n\tmodels: readonly Model<Api>[];\n\t/** Unix timestamp of the last completed remote check. */\n\tcheckedAt?: number;\n}\n\n/** Persistent model catalogs keyed by provider ID. */\nexport interface ModelsStore {\n\tread(providerId: string): Promise<ModelsStoreEntry | undefined>;\n\twrite(providerId: string, entry: ModelsStoreEntry): Promise<void>;\n\tdelete(providerId: string): Promise<void>;\n}\n\n/** ModelsStore scoped to one provider. Providers cannot access other providers' catalogs. */\nexport interface ProviderModelsStore {\n\tread(): Promise<ModelsStoreEntry | undefined>;\n\twrite(entry: ModelsStoreEntry): Promise<void>;\n\tdelete(): Promise<void>;\n}\n\nexport class InMemoryModelsStore implements ModelsStore {\n\tprivate readonly entries = new Map<string, ModelsStoreEntry>();\n\n\tasync read(providerId: string): Promise<ModelsStoreEntry | undefined> {\n\t\tconst entry = this.entries.get(providerId);\n\t\treturn entry ? structuredClone(entry) : undefined;\n\t}\n\n\tasync write(providerId: string, entry: ModelsStoreEntry): Promise<void> {\n\t\tthis.entries.set(providerId, structuredClone(entry));\n\t}\n\n\tasync delete(providerId: string): Promise<void> {\n\t\tthis.entries.delete(providerId);\n\t}\n}\n"]}
1
+ {"version":3,"file":"models-store.d.ts","sourceRoot":"","sources":["../src/models-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAChC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,MAAM,EAAE,SAAS,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;IAC9B,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,sDAAsD;AACtD,MAAM,WAAW,WAAW;IAC3B,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IAChE,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,6FAA6F;AAC7F,MAAM,WAAW,mBAAmB;IACnC,IAAI,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IAC9C,KAAK,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,qBAAa,mBAAoB,YAAW,WAAW;IACtD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuC;IAEzD,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAGpE;IAEK,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtE;IAEK,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9C;CACD","sourcesContent":["import type { Api, Model } from \"./types.ts\";\n\nexport interface ModelsStoreEntry {\n\t/** Hash of provider endpoint and account identity; never a credential. */\n\tscope?: string;\n\tdiscoveryClientVersion?: string;\n\tmodels: readonly Model<Api>[];\n\t/** Unix timestamp of the last completed remote check. */\n\tcheckedAt?: number;\n}\n\n/** Persistent model catalogs keyed by provider ID. */\nexport interface ModelsStore {\n\tread(providerId: string): Promise<ModelsStoreEntry | undefined>;\n\twrite(providerId: string, entry: ModelsStoreEntry): Promise<void>;\n\tdelete(providerId: string): Promise<void>;\n}\n\n/** ModelsStore scoped to one provider. Providers cannot access other providers' catalogs. */\nexport interface ProviderModelsStore {\n\tread(): Promise<ModelsStoreEntry | undefined>;\n\twrite(entry: ModelsStoreEntry): Promise<void>;\n\tdelete(): Promise<void>;\n}\n\nexport class InMemoryModelsStore implements ModelsStore {\n\tprivate readonly entries = new Map<string, ModelsStoreEntry>();\n\n\tasync read(providerId: string): Promise<ModelsStoreEntry | undefined> {\n\t\tconst entry = this.entries.get(providerId);\n\t\treturn entry ? structuredClone(entry) : undefined;\n\t}\n\n\tasync write(providerId: string, entry: ModelsStoreEntry): Promise<void> {\n\t\tthis.entries.set(providerId, structuredClone(entry));\n\t}\n\n\tasync delete(providerId: string): Promise<void> {\n\t\tthis.entries.delete(providerId);\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"models-store.js","sourceRoot":"","sources":["../src/models-store.ts"],"names":[],"mappings":"AAsBA,MAAM,OAAO,mBAAmB;IACd,OAAO,GAAG,IAAI,GAAG,EAA4B,CAAC;IAE/D,KAAK,CAAC,IAAI,CAAC,UAAkB,EAAyC;QACrE,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAAA,CAClD;IAED,KAAK,CAAC,KAAK,CAAC,UAAkB,EAAE,KAAuB,EAAiB;QACvE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IAAA,CACrD;IAED,KAAK,CAAC,MAAM,CAAC,UAAkB,EAAiB;QAC/C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAAA,CAChC;CACD","sourcesContent":["import type { Api, Model } from \"./types.ts\";\n\nexport interface ModelsStoreEntry {\n\tmodels: readonly Model<Api>[];\n\t/** Unix timestamp of the last completed remote check. */\n\tcheckedAt?: number;\n}\n\n/** Persistent model catalogs keyed by provider ID. */\nexport interface ModelsStore {\n\tread(providerId: string): Promise<ModelsStoreEntry | undefined>;\n\twrite(providerId: string, entry: ModelsStoreEntry): Promise<void>;\n\tdelete(providerId: string): Promise<void>;\n}\n\n/** ModelsStore scoped to one provider. Providers cannot access other providers' catalogs. */\nexport interface ProviderModelsStore {\n\tread(): Promise<ModelsStoreEntry | undefined>;\n\twrite(entry: ModelsStoreEntry): Promise<void>;\n\tdelete(): Promise<void>;\n}\n\nexport class InMemoryModelsStore implements ModelsStore {\n\tprivate readonly entries = new Map<string, ModelsStoreEntry>();\n\n\tasync read(providerId: string): Promise<ModelsStoreEntry | undefined> {\n\t\tconst entry = this.entries.get(providerId);\n\t\treturn entry ? structuredClone(entry) : undefined;\n\t}\n\n\tasync write(providerId: string, entry: ModelsStoreEntry): Promise<void> {\n\t\tthis.entries.set(providerId, structuredClone(entry));\n\t}\n\n\tasync delete(providerId: string): Promise<void> {\n\t\tthis.entries.delete(providerId);\n\t}\n}\n"]}
1
+ {"version":3,"file":"models-store.js","sourceRoot":"","sources":["../src/models-store.ts"],"names":[],"mappings":"AAyBA,MAAM,OAAO,mBAAmB;IACd,OAAO,GAAG,IAAI,GAAG,EAA4B,CAAC;IAE/D,KAAK,CAAC,IAAI,CAAC,UAAkB,EAAyC;QACrE,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAAA,CAClD;IAED,KAAK,CAAC,KAAK,CAAC,UAAkB,EAAE,KAAuB,EAAiB;QACvE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IAAA,CACrD;IAED,KAAK,CAAC,MAAM,CAAC,UAAkB,EAAiB;QAC/C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAAA,CAChC;CACD","sourcesContent":["import type { Api, Model } from \"./types.ts\";\n\nexport interface ModelsStoreEntry {\n\t/** Hash of provider endpoint and account identity; never a credential. */\n\tscope?: string;\n\tdiscoveryClientVersion?: string;\n\tmodels: readonly Model<Api>[];\n\t/** Unix timestamp of the last completed remote check. */\n\tcheckedAt?: number;\n}\n\n/** Persistent model catalogs keyed by provider ID. */\nexport interface ModelsStore {\n\tread(providerId: string): Promise<ModelsStoreEntry | undefined>;\n\twrite(providerId: string, entry: ModelsStoreEntry): Promise<void>;\n\tdelete(providerId: string): Promise<void>;\n}\n\n/** ModelsStore scoped to one provider. Providers cannot access other providers' catalogs. */\nexport interface ProviderModelsStore {\n\tread(): Promise<ModelsStoreEntry | undefined>;\n\twrite(entry: ModelsStoreEntry): Promise<void>;\n\tdelete(): Promise<void>;\n}\n\nexport class InMemoryModelsStore implements ModelsStore {\n\tprivate readonly entries = new Map<string, ModelsStoreEntry>();\n\n\tasync read(providerId: string): Promise<ModelsStoreEntry | undefined> {\n\t\tconst entry = this.entries.get(providerId);\n\t\treturn entry ? structuredClone(entry) : undefined;\n\t}\n\n\tasync write(providerId: string, entry: ModelsStoreEntry): Promise<void> {\n\t\tthis.entries.set(providerId, structuredClone(entry));\n\t}\n\n\tasync delete(providerId: string): Promise<void> {\n\t\tthis.entries.delete(providerId);\n\t}\n}\n"]}
@@ -3090,6 +3090,29 @@ export declare const MODELS: {
3090
3090
  contextWindow: number;
3091
3091
  maxTokens: number;
3092
3092
  };
3093
+ readonly "gpt-6-astra": {
3094
+ id: string;
3095
+ name: string;
3096
+ api: "azure-openai-responses";
3097
+ provider: string;
3098
+ baseUrl: string;
3099
+ reasoning: true;
3100
+ thinkingLevelMap: {
3101
+ off: null;
3102
+ minimal: null;
3103
+ xhigh: string;
3104
+ max: string;
3105
+ };
3106
+ input: ("image" | "text")[];
3107
+ cost: {
3108
+ input: number;
3109
+ output: number;
3110
+ cacheRead: number;
3111
+ cacheWrite: number;
3112
+ };
3113
+ contextWindow: number;
3114
+ maxTokens: number;
3115
+ };
3093
3116
  readonly "gpt-realtime-2.1": {
3094
3117
  id: string;
3095
3118
  name: string;
@@ -9968,6 +9991,39 @@ export declare const MODELS: {
9968
9991
  contextWindow: number;
9969
9992
  maxTokens: number;
9970
9993
  };
9994
+ readonly "gpt-6-astra": {
9995
+ id: string;
9996
+ name: string;
9997
+ api: "openai-responses";
9998
+ provider: string;
9999
+ baseUrl: string;
10000
+ compat: {
10001
+ supportsToolSearch: true;
10002
+ };
10003
+ reasoning: true;
10004
+ thinkingLevelMap: {
10005
+ off: null;
10006
+ minimal: null;
10007
+ xhigh: string;
10008
+ max: string;
10009
+ };
10010
+ input: ("image" | "text")[];
10011
+ cost: {
10012
+ input: number;
10013
+ output: number;
10014
+ cacheRead: number;
10015
+ cacheWrite: number;
10016
+ tiers: {
10017
+ inputTokensAbove: number;
10018
+ input: number;
10019
+ output: number;
10020
+ cacheRead: number;
10021
+ cacheWrite: number;
10022
+ }[];
10023
+ };
10024
+ contextWindow: number;
10025
+ maxTokens: number;
10026
+ };
9971
10027
  readonly "gpt-realtime-2.1": {
9972
10028
  id: string;
9973
10029
  name: string;
@@ -10123,6 +10179,39 @@ export declare const MODELS: {
10123
10179
  };
10124
10180
  };
10125
10181
  readonly "openai-codex": {
10182
+ readonly "gpt-6-astra": {
10183
+ id: string;
10184
+ name: string;
10185
+ api: "openai-codex-responses";
10186
+ provider: string;
10187
+ baseUrl: string;
10188
+ compat: {
10189
+ supportsToolSearch: true;
10190
+ };
10191
+ reasoning: true;
10192
+ thinkingLevelMap: {
10193
+ off: null;
10194
+ minimal: null;
10195
+ xhigh: string;
10196
+ max: string;
10197
+ };
10198
+ input: ("image" | "text")[];
10199
+ cost: {
10200
+ input: number;
10201
+ output: number;
10202
+ cacheRead: number;
10203
+ cacheWrite: number;
10204
+ tiers: {
10205
+ inputTokensAbove: number;
10206
+ input: number;
10207
+ output: number;
10208
+ cacheRead: number;
10209
+ cacheWrite: number;
10210
+ }[];
10211
+ };
10212
+ contextWindow: number;
10213
+ maxTokens: number;
10214
+ };
10126
10215
  readonly "gpt-5.3-codex-spark": {
10127
10216
  id: string;
10128
10217
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"models.generated.d.ts","sourceRoot":"","sources":["../src/models.generated.ts"],"names":[],"mappings":"AA2CA,eA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCT,CAAC","sourcesContent":["// This file is auto-generated by scripts/generate-models.ts\n// Do not edit manually - run 'npm run generate-models' to update\n\nimport { AMAZON_BEDROCK_MODELS } from \"./providers/amazon-bedrock.models.ts\";\nimport { ANT_LING_MODELS } from \"./providers/ant-ling.models.ts\";\nimport { ANTHROPIC_MODELS } from \"./providers/anthropic.models.ts\";\nimport { AZURE_OPENAI_RESPONSES_MODELS } from \"./providers/azure-openai-responses.models.ts\";\nimport { CEREBRAS_MODELS } from \"./providers/cerebras.models.ts\";\nimport { CLOUDFLARE_AI_GATEWAY_MODELS } from \"./providers/cloudflare-ai-gateway.models.ts\";\nimport { CLOUDFLARE_WORKERS_AI_MODELS } from \"./providers/cloudflare-workers-ai.models.ts\";\nimport { DEEPSEEK_MODELS } from \"./providers/deepseek.models.ts\";\nimport { FIREWORKS_MODELS } from \"./providers/fireworks.models.ts\";\nimport { GITHUB_COPILOT_MODELS } from \"./providers/github-copilot.models.ts\";\nimport { GOOGLE_MODELS } from \"./providers/google.models.ts\";\nimport { GOOGLE_VERTEX_MODELS } from \"./providers/google-vertex.models.ts\";\nimport { GROQ_MODELS } from \"./providers/groq.models.ts\";\nimport { HUGGINGFACE_MODELS } from \"./providers/huggingface.models.ts\";\nimport { KIMI_CODING_MODELS } from \"./providers/kimi-coding.models.ts\";\nimport { MINIMAX_MODELS } from \"./providers/minimax.models.ts\";\nimport { MINIMAX_CN_MODELS } from \"./providers/minimax-cn.models.ts\";\nimport { MISTRAL_MODELS } from \"./providers/mistral.models.ts\";\nimport { MOONSHOTAI_MODELS } from \"./providers/moonshotai.models.ts\";\nimport { MOONSHOTAI_CN_MODELS } from \"./providers/moonshotai-cn.models.ts\";\nimport { NVIDIA_MODELS } from \"./providers/nvidia.models.ts\";\nimport { OPENAI_MODELS } from \"./providers/openai.models.ts\";\nimport { OPENAI_CODEX_MODELS } from \"./providers/openai-codex.models.ts\";\nimport { OPENCODE_MODELS } from \"./providers/opencode.models.ts\";\nimport { OPENCODE_GO_MODELS } from \"./providers/opencode-go.models.ts\";\nimport { OPENROUTER_MODELS } from \"./providers/openrouter.models.ts\";\nimport { QWEN_TOKEN_PLAN_MODELS } from \"./providers/qwen-token-plan.models.ts\";\nimport { QWEN_TOKEN_PLAN_CN_MODELS } from \"./providers/qwen-token-plan-cn.models.ts\";\nimport { QWEN_CLOUD_MODELS } from \"./providers/qwen-cloud.models.ts\";\nimport { QWEN_CLOUD_CN_MODELS } from \"./providers/qwen-cloud-cn.models.ts\";\nimport { TOGETHER_MODELS } from \"./providers/together.models.ts\";\nimport { VERCEL_AI_GATEWAY_MODELS } from \"./providers/vercel-ai-gateway.models.ts\";\nimport { XAI_MODELS } from \"./providers/xai.models.ts\";\nimport { XIAOMI_MODELS } from \"./providers/xiaomi.models.ts\";\nimport { XIAOMI_TOKEN_PLAN_AMS_MODELS } from \"./providers/xiaomi-token-plan-ams.models.ts\";\nimport { XIAOMI_TOKEN_PLAN_CN_MODELS } from \"./providers/xiaomi-token-plan-cn.models.ts\";\nimport { XIAOMI_TOKEN_PLAN_SGP_MODELS } from \"./providers/xiaomi-token-plan-sgp.models.ts\";\nimport { ZAI_MODELS } from \"./providers/zai.models.ts\";\nimport { ZAI_CODING_CN_MODELS } from \"./providers/zai-coding-cn.models.ts\";\n\nexport const MODELS = {\n\t\"amazon-bedrock\": AMAZON_BEDROCK_MODELS,\n\t\"ant-ling\": ANT_LING_MODELS,\n\t\"anthropic\": ANTHROPIC_MODELS,\n\t\"azure-openai-responses\": AZURE_OPENAI_RESPONSES_MODELS,\n\t\"cerebras\": CEREBRAS_MODELS,\n\t\"cloudflare-ai-gateway\": CLOUDFLARE_AI_GATEWAY_MODELS,\n\t\"cloudflare-workers-ai\": CLOUDFLARE_WORKERS_AI_MODELS,\n\t\"deepseek\": DEEPSEEK_MODELS,\n\t\"fireworks\": FIREWORKS_MODELS,\n\t\"github-copilot\": GITHUB_COPILOT_MODELS,\n\t\"google\": GOOGLE_MODELS,\n\t\"google-vertex\": GOOGLE_VERTEX_MODELS,\n\t\"groq\": GROQ_MODELS,\n\t\"huggingface\": HUGGINGFACE_MODELS,\n\t\"kimi-coding\": KIMI_CODING_MODELS,\n\t\"minimax\": MINIMAX_MODELS,\n\t\"minimax-cn\": MINIMAX_CN_MODELS,\n\t\"mistral\": MISTRAL_MODELS,\n\t\"moonshotai\": MOONSHOTAI_MODELS,\n\t\"moonshotai-cn\": MOONSHOTAI_CN_MODELS,\n\t\"nvidia\": NVIDIA_MODELS,\n\t\"openai\": OPENAI_MODELS,\n\t\"openai-codex\": OPENAI_CODEX_MODELS,\n\t\"opencode\": OPENCODE_MODELS,\n\t\"opencode-go\": OPENCODE_GO_MODELS,\n\t\"openrouter\": OPENROUTER_MODELS,\n\t\"qwen-token-plan\": QWEN_TOKEN_PLAN_MODELS,\n\t\"qwen-token-plan-cn\": QWEN_TOKEN_PLAN_CN_MODELS,\n\t\"qwen-cloud\": QWEN_CLOUD_MODELS,\n\t\"qwen-cloud-cn\": QWEN_CLOUD_CN_MODELS,\n\t\"together\": TOGETHER_MODELS,\n\t\"vercel-ai-gateway\": VERCEL_AI_GATEWAY_MODELS,\n\t\"xai\": XAI_MODELS,\n\t\"xiaomi\": XIAOMI_MODELS,\n\t\"xiaomi-token-plan-ams\": XIAOMI_TOKEN_PLAN_AMS_MODELS,\n\t\"xiaomi-token-plan-cn\": XIAOMI_TOKEN_PLAN_CN_MODELS,\n\t\"xiaomi-token-plan-sgp\": XIAOMI_TOKEN_PLAN_SGP_MODELS,\n\t\"zai\": ZAI_MODELS,\n\t\"zai-coding-cn\": ZAI_CODING_CN_MODELS,\n} as const;\n"]}
1
+ {"version":3,"file":"models.generated.d.ts","sourceRoot":"","sources":["../src/models.generated.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCT,CAAC","sourcesContent":["// This file is auto-generated by scripts/generate-models.ts\n// Do not edit manually - run 'npm run generate-models' to update\n\nimport { AMAZON_BEDROCK_MODELS } from \"./providers/amazon-bedrock.models.ts\";\nimport { ANT_LING_MODELS } from \"./providers/ant-ling.models.ts\";\nimport { ANTHROPIC_MODELS } from \"./providers/anthropic.models.ts\";\nimport { AZURE_OPENAI_RESPONSES_MODELS } from \"./providers/azure-openai-responses.models.ts\";\nimport { CEREBRAS_MODELS } from \"./providers/cerebras.models.ts\";\nimport { CLOUDFLARE_AI_GATEWAY_MODELS } from \"./providers/cloudflare-ai-gateway.models.ts\";\nimport { CLOUDFLARE_WORKERS_AI_MODELS } from \"./providers/cloudflare-workers-ai.models.ts\";\nimport { DEEPSEEK_MODELS } from \"./providers/deepseek.models.ts\";\nimport { FIREWORKS_MODELS } from \"./providers/fireworks.models.ts\";\nimport { GITHUB_COPILOT_MODELS } from \"./providers/github-copilot.models.ts\";\nimport { GOOGLE_MODELS } from \"./providers/google.models.ts\";\nimport { GOOGLE_VERTEX_MODELS } from \"./providers/google-vertex.models.ts\";\nimport { GROQ_MODELS } from \"./providers/groq.models.ts\";\nimport { HUGGINGFACE_MODELS } from \"./providers/huggingface.models.ts\";\nimport { KIMI_CODING_MODELS } from \"./providers/kimi-coding.models.ts\";\nimport { MINIMAX_MODELS } from \"./providers/minimax.models.ts\";\nimport { MINIMAX_CN_MODELS } from \"./providers/minimax-cn.models.ts\";\nimport { MISTRAL_MODELS } from \"./providers/mistral.models.ts\";\nimport { MOONSHOTAI_MODELS } from \"./providers/moonshotai.models.ts\";\nimport { MOONSHOTAI_CN_MODELS } from \"./providers/moonshotai-cn.models.ts\";\nimport { NVIDIA_MODELS } from \"./providers/nvidia.models.ts\";\nimport { OPENAI_MODELS } from \"./providers/openai.models.ts\";\nimport { OPENAI_CODEX_MODELS } from \"./providers/openai-codex.models.ts\";\nimport { OPENCODE_MODELS } from \"./providers/opencode.models.ts\";\nimport { OPENCODE_GO_MODELS } from \"./providers/opencode-go.models.ts\";\nimport { OPENROUTER_MODELS } from \"./providers/openrouter.models.ts\";\nimport { QWEN_TOKEN_PLAN_MODELS } from \"./providers/qwen-token-plan.models.ts\";\nimport { QWEN_TOKEN_PLAN_CN_MODELS } from \"./providers/qwen-token-plan-cn.models.ts\";\nimport { QWEN_CLOUD_MODELS } from \"./providers/qwen-cloud.models.ts\";\nimport { QWEN_CLOUD_CN_MODELS } from \"./providers/qwen-cloud-cn.models.ts\";\nimport { TOGETHER_MODELS } from \"./providers/together.models.ts\";\nimport { VERCEL_AI_GATEWAY_MODELS } from \"./providers/vercel-ai-gateway.models.ts\";\nimport { XAI_MODELS } from \"./providers/xai.models.ts\";\nimport { XIAOMI_MODELS } from \"./providers/xiaomi.models.ts\";\nimport { XIAOMI_TOKEN_PLAN_AMS_MODELS } from \"./providers/xiaomi-token-plan-ams.models.ts\";\nimport { XIAOMI_TOKEN_PLAN_CN_MODELS } from \"./providers/xiaomi-token-plan-cn.models.ts\";\nimport { XIAOMI_TOKEN_PLAN_SGP_MODELS } from \"./providers/xiaomi-token-plan-sgp.models.ts\";\nimport { ZAI_MODELS } from \"./providers/zai.models.ts\";\nimport { ZAI_CODING_CN_MODELS } from \"./providers/zai-coding-cn.models.ts\";\n\nexport const MODELS = {\n\t\"amazon-bedrock\": AMAZON_BEDROCK_MODELS,\n\t\"ant-ling\": ANT_LING_MODELS,\n\t\"anthropic\": ANTHROPIC_MODELS,\n\t\"azure-openai-responses\": AZURE_OPENAI_RESPONSES_MODELS,\n\t\"cerebras\": CEREBRAS_MODELS,\n\t\"cloudflare-ai-gateway\": CLOUDFLARE_AI_GATEWAY_MODELS,\n\t\"cloudflare-workers-ai\": CLOUDFLARE_WORKERS_AI_MODELS,\n\t\"deepseek\": DEEPSEEK_MODELS,\n\t\"fireworks\": FIREWORKS_MODELS,\n\t\"github-copilot\": GITHUB_COPILOT_MODELS,\n\t\"google\": GOOGLE_MODELS,\n\t\"google-vertex\": GOOGLE_VERTEX_MODELS,\n\t\"groq\": GROQ_MODELS,\n\t\"huggingface\": HUGGINGFACE_MODELS,\n\t\"kimi-coding\": KIMI_CODING_MODELS,\n\t\"minimax\": MINIMAX_MODELS,\n\t\"minimax-cn\": MINIMAX_CN_MODELS,\n\t\"mistral\": MISTRAL_MODELS,\n\t\"moonshotai\": MOONSHOTAI_MODELS,\n\t\"moonshotai-cn\": MOONSHOTAI_CN_MODELS,\n\t\"nvidia\": NVIDIA_MODELS,\n\t\"openai\": OPENAI_MODELS,\n\t\"openai-codex\": OPENAI_CODEX_MODELS,\n\t\"opencode\": OPENCODE_MODELS,\n\t\"opencode-go\": OPENCODE_GO_MODELS,\n\t\"openrouter\": OPENROUTER_MODELS,\n\t\"qwen-token-plan\": QWEN_TOKEN_PLAN_MODELS,\n\t\"qwen-token-plan-cn\": QWEN_TOKEN_PLAN_CN_MODELS,\n\t\"qwen-cloud\": QWEN_CLOUD_MODELS,\n\t\"qwen-cloud-cn\": QWEN_CLOUD_CN_MODELS,\n\t\"together\": TOGETHER_MODELS,\n\t\"vercel-ai-gateway\": VERCEL_AI_GATEWAY_MODELS,\n\t\"xai\": XAI_MODELS,\n\t\"xiaomi\": XIAOMI_MODELS,\n\t\"xiaomi-token-plan-ams\": XIAOMI_TOKEN_PLAN_AMS_MODELS,\n\t\"xiaomi-token-plan-cn\": XIAOMI_TOKEN_PLAN_CN_MODELS,\n\t\"xiaomi-token-plan-sgp\": XIAOMI_TOKEN_PLAN_SGP_MODELS,\n\t\"zai\": ZAI_MODELS,\n\t\"zai-coding-cn\": ZAI_CODING_CN_MODELS,\n} as const;\n"]}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * OpenAI GPT-5+ thinking overlays.
3
+ * Used by generate-models.ts and catalog merge. Do not hand-edit catalog JSON for these maps.
4
+ *
5
+ * Version floors, not frozen ids:
6
+ * - gpt-5.2+ / gpt-6+: native xhigh
7
+ * - gpt-5.6+ / gpt-6+: native max
8
+ * - gpt-6+: off and minimal unsupported (low / medium / high / xhigh / max)
9
+ */
10
+ export declare function canonicalOpenAiModelId(modelId: string): string;
11
+ export declare function parseOpenAiGptVersion(modelId: string): {
12
+ major: number;
13
+ minor: number;
14
+ } | undefined;
15
+ export declare function supportsOpenAiXhigh(modelId: string): boolean;
16
+ export declare function supportsOpenAiMax(modelId: string): boolean;
17
+ export declare function isOpenAiChatModel(modelId: string): boolean;
18
+ /** gpt-6+: cannot disable thinking; no minimal; native xhigh and max. */
19
+ export declare const OPENAI_GPT6_THINKING_LEVEL_MAP: {
20
+ readonly off: null;
21
+ readonly minimal: null;
22
+ readonly xhigh: "xhigh";
23
+ readonly max: "max";
24
+ };
25
+ /**
26
+ * Stamp GPT-5.2+ / GPT-6+ effort maps onto any catalog layer so a stale shard
27
+ * or live /models row cannot hide xhigh/max or leave gpt-6 on a gpt-4 template.
28
+ */
29
+ export declare function withOpenAiEffortMetadata<T extends {
30
+ id: string;
31
+ provider?: string;
32
+ api?: string;
33
+ }>(model: T): T;
34
+ //# sourceMappingURL=openai-effort.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openai-effort.d.ts","sourceRoot":"","sources":["../src/openai-effort.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAG9D;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAInG;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAI5D;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAI1D;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,yEAAyE;AACzE,eAAO,MAAM,8BAA8B;;;;;CAKjC,CAAC;AAYX;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAiC/G","sourcesContent":["/**\n * OpenAI GPT-5+ thinking overlays.\n * Used by generate-models.ts and catalog merge. Do not hand-edit catalog JSON for these maps.\n *\n * Version floors, not frozen ids:\n * - gpt-5.2+ / gpt-6+: native xhigh\n * - gpt-5.6+ / gpt-6+: native max\n * - gpt-6+: off and minimal unsupported (low / medium / high / xhigh / max)\n */\nexport function canonicalOpenAiModelId(modelId: string): string {\n\tconst slash = modelId.lastIndexOf(\"/\");\n\treturn slash >= 0 ? modelId.slice(slash + 1) : modelId;\n}\n\nexport function parseOpenAiGptVersion(modelId: string): { major: number; minor: number } | undefined {\n\tconst match = /^gpt-(\\d+)(?:\\.(\\d+))?/i.exec(canonicalOpenAiModelId(modelId));\n\tif (!match) return undefined;\n\treturn { major: Number(match[1]), minor: Number(match[2] ?? 0) };\n}\n\nexport function supportsOpenAiXhigh(modelId: string): boolean {\n\tconst version = parseOpenAiGptVersion(modelId);\n\tif (!version) return false;\n\treturn version.major > 5 || (version.major === 5 && version.minor >= 2);\n}\n\nexport function supportsOpenAiMax(modelId: string): boolean {\n\tconst version = parseOpenAiGptVersion(modelId);\n\tif (!version) return false;\n\treturn version.major > 5 || (version.major === 5 && version.minor >= 6);\n}\n\nexport function isOpenAiChatModel(modelId: string): boolean {\n\treturn /(?:^|\\/)gpt-\\d+(?:\\.\\d+)?-chat(?:-|$)/i.test(modelId);\n}\n\n/** gpt-6+: cannot disable thinking; no minimal; native xhigh and max. */\nexport const OPENAI_GPT6_THINKING_LEVEL_MAP = {\n\toff: null,\n\tminimal: null,\n\txhigh: \"xhigh\",\n\tmax: \"max\",\n} as const;\n\nconst OPENAI_EFFORT_PROVIDER_IDS = new Set([\"openai\", \"openai-codex\", \"azure-openai-responses\"]);\n\ntype OpenAiOverlayModel = {\n\tid: string;\n\tprovider?: string;\n\tapi?: string;\n\treasoning?: boolean;\n\tthinkingLevelMap?: object;\n};\n\n/**\n * Stamp GPT-5.2+ / GPT-6+ effort maps onto any catalog layer so a stale shard\n * or live /models row cannot hide xhigh/max or leave gpt-6 on a gpt-4 template.\n */\nexport function withOpenAiEffortMetadata<T extends { id: string; provider?: string; api?: string }>(model: T): T {\n\tif (!model.provider || !OPENAI_EFFORT_PROVIDER_IDS.has(model.provider)) return model;\n\tconst version = parseOpenAiGptVersion(model.id);\n\tif (!version || version.major < 5) return model;\n\n\tconst current = model as T & OpenAiOverlayModel;\n\tconst thinkingLevelMap: Record<string, string | null> = {\n\t\t...(current.thinkingLevelMap as Record<string, string | null> | undefined),\n\t};\n\tlet changed = false;\n\n\tif (supportsOpenAiXhigh(model.id) && thinkingLevelMap.xhigh !== \"xhigh\") {\n\t\tthinkingLevelMap.xhigh = \"xhigh\";\n\t\tchanged = true;\n\t}\n\tif (supportsOpenAiMax(model.id) && thinkingLevelMap.max !== \"max\") {\n\t\tthinkingLevelMap.max = \"max\";\n\t\tchanged = true;\n\t}\n\tif (version.major >= 6) {\n\t\tfor (const [key, value] of Object.entries(OPENAI_GPT6_THINKING_LEVEL_MAP)) {\n\t\t\tif (thinkingLevelMap[key] !== value) {\n\t\t\t\tthinkingLevelMap[key] = value;\n\t\t\t\tchanged = true;\n\t\t\t}\n\t\t}\n\t\tif (current.reasoning !== true && !isOpenAiChatModel(model.id)) {\n\t\t\treturn { ...model, reasoning: true, thinkingLevelMap };\n\t\t}\n\t}\n\n\tif (!changed) return model;\n\treturn { ...model, thinkingLevelMap };\n}\n"]}