@cherrystudio/provider-registry 0.1.2 → 0.2.2

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 (42) hide show
  1. package/data/models.json +218 -2
  2. package/data/provider-models.json +150 -1
  3. package/data/providers.json +9 -1
  4. package/dist/bundled-catalog.cjs +3 -3
  5. package/dist/bundled-catalog.d.cts +1 -1
  6. package/dist/bundled-catalog.d.mts +1 -1
  7. package/dist/bundled-catalog.mjs +3 -3
  8. package/dist/{bundled-models-CKAIAajx.cjs → bundled-models-BmyydLN3.cjs} +274 -2
  9. package/dist/{bundled-models-ANrcKQ2h.mjs → bundled-models-CuKnVXLk.mjs} +274 -2
  10. package/dist/bundled-models.cjs +1 -1
  11. package/dist/bundled-models.d.cts +1 -1
  12. package/dist/bundled-models.d.mts +1 -1
  13. package/dist/bundled-models.mjs +1 -1
  14. package/dist/{bundled-provider-models-Di8bps1n.cjs → bundled-provider-models-BgzNsa6D.cjs} +150 -2
  15. package/dist/{bundled-provider-models-DKmCgFge.mjs → bundled-provider-models-DGsvGf0g.mjs} +150 -2
  16. package/dist/bundled-provider-models.cjs +1 -1
  17. package/dist/bundled-provider-models.d.cts +1 -1
  18. package/dist/bundled-provider-models.d.mts +1 -1
  19. package/dist/bundled-provider-models.mjs +1 -1
  20. package/dist/{bundled-providers-BcszhEy2.mjs → bundled-providers-CJsteihb.mjs} +10 -2
  21. package/dist/{bundled-providers-Bv_iM9AO.cjs → bundled-providers-CceF8bTD.cjs} +10 -2
  22. package/dist/bundled-providers.cjs +1 -1
  23. package/dist/bundled-providers.d.cts +1 -1
  24. package/dist/bundled-providers.d.mts +1 -1
  25. package/dist/bundled-providers.mjs +1 -1
  26. package/dist/index.cjs +26 -3
  27. package/dist/index.d.cts +2 -2
  28. package/dist/index.d.mts +2 -2
  29. package/dist/index.mjs +26 -3
  30. package/dist/{provider-DkSIaann.cjs → provider-C_xJo-Py.cjs} +1 -0
  31. package/dist/{provider-D14qMZsE.mjs → provider-D2l4EBDl.mjs} +1 -0
  32. package/dist/{provider-models-BkxD9T17.mjs → provider-models-CCmPfrkT.mjs} +1 -1
  33. package/dist/{provider-models-DuZBXGmP.d.cts → provider-models-DdTUR-KL.d.cts} +3 -0
  34. package/dist/{provider-models-DuZBXGmP.d.mts → provider-models-DdTUR-KL.d.mts} +3 -0
  35. package/dist/{provider-models-BjKC53mr.cjs → provider-models-WeMLH-Dl.cjs} +1 -1
  36. package/dist/{registry-BjETdicx.d.mts → registry-9E7PzrQ5.d.mts} +1 -1
  37. package/dist/{registry-Di5ULW6Z.d.cts → registry-CbFrDd-J.d.cts} +1 -1
  38. package/dist/registry-loader.cjs +2 -2
  39. package/dist/registry-loader.d.cts +1 -1
  40. package/dist/registry-loader.d.mts +1 -1
  41. package/dist/registry-loader.mjs +2 -2
  42. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as REMOTE_REGISTRY_FILES, c as normalizeModelId, d as stripDateSnapshot, f as stripVariantQuantDateSuffixes, i as REGISTRY_SCHEMA_VERSION, l as stripBedrockDottedVendorPrefix, n as REGISTRY_FILES, o as ModelIndex, r as REGISTRY_MIN_APP_VERSION, s as ProviderModelIndex, t as CatalogManifestSchema, u as stripBedrockRevision } from "./catalog-DElG_l-8.mjs";
2
2
  import { C as REASONING_EFFORT, D as objectValues, E as SERVER_TOOL_MODEL_SCOPE, S as MODEL_CAPABILITY, T as SERVER_TOOL, a as ModelConfigSchema, b as ENDPOINT_TYPE, l as ReasoningControlSchema, n as ImageGenerationSupportSchema, o as ModelListSchema, t as ImageGenerationModeSchema, v as CANONICAL_PARAM_KEY, w as REASONING_EFFORT_ORDER, x as MODALITY, y as CURRENCY } from "./model-NFEbqWMs.mjs";
3
- import { a as REASONING_FORMAT_TYPES, c as ServiceTierOptionsSchema, d as REASONING_WIRE_TARGETS, f as ReasoningFormatWireProfileSchema, g as matchVendor, h as isVendor, i as ProviderListSchema, l as ServiceTierRequestControlSchema, m as VENDOR_PATTERNS, n as ProviderConfigSchema, o as ServerToolConfigSchema, p as ReasoningWireProfileSchema, r as ProviderEditionSchema, s as ServiceTierDeliverySchema, t as FastModeTransportSchema, u as ServiceTierSelectionSchema } from "./provider-D14qMZsE.mjs";
4
- import { n as ProviderModelOverrideSchema, r as ProviderModelReasoningContractSchema, t as ProviderModelListSchema } from "./provider-models-BkxD9T17.mjs";
3
+ import { a as REASONING_FORMAT_TYPES, c as ServiceTierOptionsSchema, d as REASONING_WIRE_TARGETS, f as ReasoningFormatWireProfileSchema, g as matchVendor, h as isVendor, i as ProviderListSchema, l as ServiceTierRequestControlSchema, m as VENDOR_PATTERNS, n as ProviderConfigSchema, o as ServerToolConfigSchema, p as ReasoningWireProfileSchema, r as ProviderEditionSchema, s as ServiceTierDeliverySchema, t as FastModeTransportSchema, u as ServiceTierSelectionSchema } from "./provider-D2l4EBDl.mjs";
4
+ import { n as ProviderModelOverrideSchema, r as ProviderModelReasoningContractSchema, t as ProviderModelListSchema } from "./provider-models-CCmPfrkT.mjs";
5
5
  import * as z from "zod";
6
6
  //#region src/registry.ts
7
7
  /** Parse untrusted model metadata; provider routing is supplied separately by the application. */
@@ -935,10 +935,23 @@ const REASONING_FAMILY_RULES = [
935
935
  wireDialect: "effort",
936
936
  template: true
937
937
  },
938
+ {
939
+ pattern: "^(?:gemini-nano-banana|nano-banana-pro)",
940
+ wireDialect: "effort",
941
+ template: true
942
+ },
938
943
  {
939
944
  pattern: "^gemma-?4",
940
945
  toggle: true
941
946
  },
947
+ {
948
+ pattern: "^gemini-nano-banana",
949
+ effort: [
950
+ "minimal",
951
+ "medium",
952
+ "high"
953
+ ]
954
+ },
942
955
  {
943
956
  pattern: "^gemini-3(?:\\.\\d+)?-flash|^gemini-3\\.1-flash-lite|^gemini-flash-latest",
944
957
  effort: [
@@ -949,7 +962,7 @@ const REASONING_FAMILY_RULES = [
949
962
  ]
950
963
  },
951
964
  {
952
- pattern: "^gemini-3-pro",
965
+ pattern: "^(?:gemini-3-pro|nano-banana-pro)",
953
966
  effort: ["low", "high"]
954
967
  },
955
968
  {
@@ -1064,6 +1077,16 @@ const REASONING_FAMILY_RULES = [
1064
1077
  pattern: "^longcat-2[.-]0$",
1065
1078
  toggle: true
1066
1079
  },
1080
+ {
1081
+ pattern: "^muse-spark-open(?:-|$)",
1082
+ effort: [
1083
+ "low",
1084
+ "medium",
1085
+ "high",
1086
+ "xhigh"
1087
+ ],
1088
+ toggle: false
1089
+ },
1067
1090
  { pattern: "^muse-spark" },
1068
1091
  {
1069
1092
  pattern: "^minimax-m3[.-]1-flash-preview$",
@@ -290,6 +290,7 @@ const ProviderReasoningFormatSchema = zod.discriminatedUnion("type", [
290
290
  ]);
291
291
  const REASONING_FORMAT_TYPES = ProviderReasoningFormatSchema.options.map((option) => option.shape.type.value);
292
292
  const ProviderWebsiteSchema = zod.object({ website: zod.object({
293
+ billing: zod.url().optional(),
293
294
  official: zod.url().optional(),
294
295
  docs: zod.url().optional(),
295
296
  apiKey: zod.url().optional(),
@@ -289,6 +289,7 @@ const ProviderReasoningFormatSchema = z.discriminatedUnion("type", [
289
289
  ]);
290
290
  const REASONING_FORMAT_TYPES = ProviderReasoningFormatSchema.options.map((option) => option.shape.type.value);
291
291
  const ProviderWebsiteSchema = z.object({ website: z.object({
292
+ billing: z.url().optional(),
292
293
  official: z.url().optional(),
293
294
  docs: z.url().optional(),
294
295
  apiKey: z.url().optional(),
@@ -1,5 +1,5 @@
1
1
  import { b as ENDPOINT_TYPE, c as PartialModelPricingSchema, d as looseArray, f as EndpointTypeSchema, g as VersionSchema, h as ProviderIdSchema, i as ModelCapabilityTypeSchema, m as ModelIdSchema, n as ImageGenerationSupportSchema, r as ModalitySchema, s as ParameterSupportSchema, u as ReasoningSupportSchema } from "./model-NFEbqWMs.mjs";
2
- import { c as ServiceTierOptionsSchema, p as ReasoningWireProfileSchema } from "./provider-D14qMZsE.mjs";
2
+ import { c as ServiceTierOptionsSchema, p as ReasoningWireProfileSchema } from "./provider-D2l4EBDl.mjs";
3
3
  import * as z from "zod";
4
4
  //#region src/schemas/provider-models.ts
5
5
  /**
@@ -18915,6 +18915,7 @@ declare const ProviderConfigSchema: z.ZodObject<{
18915
18915
  }, z.core.$strip>>;
18916
18916
  metadata: z.ZodIntersection<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodObject<{
18917
18917
  website: z.ZodObject<{
18918
+ billing: z.ZodOptional<z.ZodURL>;
18918
18919
  official: z.ZodOptional<z.ZodURL>;
18919
18920
  docs: z.ZodOptional<z.ZodURL>;
18920
18921
  apiKey: z.ZodOptional<z.ZodURL>;
@@ -18939,6 +18940,7 @@ declare const ProviderListSchema: z.ZodObject<{
18939
18940
  reportsActualCost: boolean;
18940
18941
  metadata: Record<string, unknown> & {
18941
18942
  website: {
18943
+ billing?: string | undefined;
18942
18944
  official?: string | undefined;
18943
18945
  docs?: string | undefined;
18944
18946
  apiKey?: string | undefined;
@@ -21120,6 +21122,7 @@ declare const ProviderListSchema: z.ZodObject<{
21120
21122
  reportsActualCost: boolean;
21121
21123
  metadata: Record<string, unknown> & {
21122
21124
  website: {
21125
+ billing?: string | undefined;
21123
21126
  official?: string | undefined;
21124
21127
  docs?: string | undefined;
21125
21128
  apiKey?: string | undefined;
@@ -18915,6 +18915,7 @@ declare const ProviderConfigSchema: z.ZodObject<{
18915
18915
  }, z.core.$strip>>;
18916
18916
  metadata: z.ZodIntersection<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodObject<{
18917
18917
  website: z.ZodObject<{
18918
+ billing: z.ZodOptional<z.ZodURL>;
18918
18919
  official: z.ZodOptional<z.ZodURL>;
18919
18920
  docs: z.ZodOptional<z.ZodURL>;
18920
18921
  apiKey: z.ZodOptional<z.ZodURL>;
@@ -18939,6 +18940,7 @@ declare const ProviderListSchema: z.ZodObject<{
18939
18940
  reportsActualCost: boolean;
18940
18941
  metadata: Record<string, unknown> & {
18941
18942
  website: {
18943
+ billing?: string | undefined;
18942
18944
  official?: string | undefined;
18943
18945
  docs?: string | undefined;
18944
18946
  apiKey?: string | undefined;
@@ -21120,6 +21122,7 @@ declare const ProviderListSchema: z.ZodObject<{
21120
21122
  reportsActualCost: boolean;
21121
21123
  metadata: Record<string, unknown> & {
21122
21124
  website: {
21125
+ billing?: string | undefined;
21123
21126
  official?: string | undefined;
21124
21127
  docs?: string | undefined;
21125
21128
  apiKey?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  const require_model = require("./model-kwW2vWDI.cjs");
2
- const require_provider = require("./provider-DkSIaann.cjs");
2
+ const require_provider = require("./provider-C_xJo-Py.cjs");
3
3
  let zod = require("zod");
4
4
  zod = require_model.__toESM(zod, 1);
5
5
  //#region src/schemas/provider-models.ts
@@ -1,4 +1,4 @@
1
- import { X as ModelConfig, c as ProviderConfig, n as ProviderModelOverride } from "./provider-models-DuZBXGmP.mjs";
1
+ import { X as ModelConfig, c as ProviderConfig, n as ProviderModelOverride } from "./provider-models-DdTUR-KL.mjs";
2
2
  //#region src/registry.d.ts
3
3
  interface ModelSnapshot {
4
4
  readonly models: {
@@ -1,4 +1,4 @@
1
- import { X as ModelConfig, c as ProviderConfig, n as ProviderModelOverride } from "./provider-models-DuZBXGmP.cjs";
1
+ import { X as ModelConfig, c as ProviderConfig, n as ProviderModelOverride } from "./provider-models-DdTUR-KL.cjs";
2
2
  //#region src/registry.d.ts
3
3
  interface ModelSnapshot {
4
4
  readonly models: {
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_model = require("./model-kwW2vWDI.cjs");
3
3
  const require_catalog = require("./catalog-DurdOhD0.cjs");
4
- const require_provider = require("./provider-DkSIaann.cjs");
5
- const require_provider_models = require("./provider-models-BjKC53mr.cjs");
4
+ const require_provider = require("./provider-C_xJo-Py.cjs");
5
+ const require_provider_models = require("./provider-models-WeMLH-Dl.cjs");
6
6
  let node_fs = require("node:fs");
7
7
  let semver = require("semver");
8
8
  semver = require_model.__toESM(semver, 1);
@@ -1,4 +1,4 @@
1
- import { Q as ModelListSchema, X as ModelConfig, c as ProviderConfig, f as ProviderListSchema, n as ProviderModelOverride, t as ProviderModelListSchema } from "./provider-models-DuZBXGmP.cjs";
1
+ import { Q as ModelListSchema, X as ModelConfig, c as ProviderConfig, f as ProviderListSchema, n as ProviderModelOverride, t as ProviderModelListSchema } from "./provider-models-DdTUR-KL.cjs";
2
2
  import { a as REGISTRY_SCHEMA_VERSION, c as RemoteRegistryFileName, i as REGISTRY_MIN_APP_VERSION, n as CatalogManifestSchema, o as REMOTE_REGISTRY_FILES, r as REGISTRY_FILES, s as RegistryFileName, t as CatalogManifest } from "./catalog-XJyrtwI9.cjs";
3
3
  //#region src/registry-loader.d.ts
4
4
  /** Whether this app lies inside the manifest's explicit semantic and freshness range. */
@@ -1,4 +1,4 @@
1
- import { Q as ModelListSchema, X as ModelConfig, c as ProviderConfig, f as ProviderListSchema, n as ProviderModelOverride, t as ProviderModelListSchema } from "./provider-models-DuZBXGmP.mjs";
1
+ import { Q as ModelListSchema, X as ModelConfig, c as ProviderConfig, f as ProviderListSchema, n as ProviderModelOverride, t as ProviderModelListSchema } from "./provider-models-DdTUR-KL.mjs";
2
2
  import { a as REGISTRY_SCHEMA_VERSION, c as RemoteRegistryFileName, i as REGISTRY_MIN_APP_VERSION, n as CatalogManifestSchema, o as REMOTE_REGISTRY_FILES, r as REGISTRY_FILES, s as RegistryFileName, t as CatalogManifest } from "./catalog-XJyrtwI9.mjs";
3
3
  //#region src/registry-loader.d.ts
4
4
  /** Whether this app lies inside the manifest's explicit semantic and freshness range. */
@@ -1,7 +1,7 @@
1
1
  import { a as REMOTE_REGISTRY_FILES, i as REGISTRY_SCHEMA_VERSION, n as REGISTRY_FILES, o as ModelIndex, r as REGISTRY_MIN_APP_VERSION, s as ProviderModelIndex, t as CatalogManifestSchema } from "./catalog-DElG_l-8.mjs";
2
2
  import { o as ModelListSchema } from "./model-NFEbqWMs.mjs";
3
- import { i as ProviderListSchema } from "./provider-D14qMZsE.mjs";
4
- import { t as ProviderModelListSchema } from "./provider-models-BkxD9T17.mjs";
3
+ import { i as ProviderListSchema } from "./provider-D2l4EBDl.mjs";
4
+ import { t as ProviderModelListSchema } from "./provider-models-CCmPfrkT.mjs";
5
5
  import { readFileSync } from "node:fs";
6
6
  import semver from "semver";
7
7
  //#region src/registry-loader.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cherrystudio/provider-registry",
3
- "version": "0.1.2",
3
+ "version": "0.2.2",
4
4
  "description": "Cross-platform AI provider and model catalogs, schemas, and lookup utilities",
5
5
  "homepage": "https://github.com/CherryHQ/cherry-studio#readme",
6
6
  "bugs": {