@cherrystudio/provider-registry 0.3.6 → 0.5.0
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.
- package/data/models.json +89 -1
- package/data/providers.json +33 -2
- package/dist/bundled-catalog.cjs +3 -3
- package/dist/bundled-catalog.d.cts +1 -1
- package/dist/bundled-catalog.d.mts +1 -1
- package/dist/bundled-catalog.mjs +3 -3
- package/dist/{bundled-models-BwA_9T6J.cjs → bundled-models-B16Y742f.cjs} +126 -2
- package/dist/{bundled-models-DOfnQym6.mjs → bundled-models-DbCfGG7c.mjs} +126 -2
- package/dist/bundled-models.cjs +1 -1
- package/dist/bundled-models.d.cts +1 -1
- package/dist/bundled-models.d.mts +1 -1
- package/dist/bundled-models.mjs +1 -1
- package/dist/{bundled-provider-models-BGjUllh1.cjs → bundled-provider-models-BXz4jWQd.cjs} +1 -1
- package/dist/{bundled-provider-models-BeRozktd.mjs → bundled-provider-models-BwelA3n2.mjs} +1 -1
- package/dist/bundled-provider-models.cjs +1 -1
- package/dist/bundled-provider-models.d.cts +1 -1
- package/dist/bundled-provider-models.d.mts +1 -1
- package/dist/bundled-provider-models.mjs +1 -1
- package/dist/{bundled-providers-D6nxKMDo.cjs → bundled-providers-g2M7CbRK.cjs} +30 -3
- package/dist/{bundled-providers-Dg9hdC6D.mjs → bundled-providers-hsoDUZhO.mjs} +30 -3
- package/dist/bundled-providers.cjs +1 -1
- package/dist/bundled-providers.d.cts +1 -1
- package/dist/bundled-providers.d.mts +1 -1
- package/dist/bundled-providers.mjs +1 -1
- package/dist/{catalog-XJyrtwI9.d.cts → catalog-BqMRbtC6.d.cts} +2 -2
- package/dist/{catalog-XJyrtwI9.d.mts → catalog-BqMRbtC6.d.mts} +2 -2
- package/dist/{catalog-DElG_l-8.mjs → catalog-C1vmCQsh.mjs} +2 -2
- package/dist/{catalog-DurdOhD0.cjs → catalog-CiNhAT2f.cjs} +3 -3
- package/dist/index.cjs +7 -4
- package/dist/index.d.cts +15 -3
- package/dist/index.d.mts +15 -3
- package/dist/index.mjs +7 -4
- package/dist/{model-kwW2vWDI.cjs → model-CHEP1GQj.cjs} +3 -0
- package/dist/{model-NFEbqWMs.mjs → model-D2FsNZSf.mjs} +3 -0
- package/dist/{provider-D2l4EBDl.mjs → provider-SqdILkI9.mjs} +2 -2
- package/dist/{provider-C_xJo-Py.cjs → provider-jpEaS8pw.cjs} +2 -2
- package/dist/{provider-models-DdTUR-KL.d.cts → provider-models-BBd6l8lw.d.cts} +832 -22
- package/dist/{provider-models-DdTUR-KL.d.mts → provider-models-BBd6l8lw.d.mts} +832 -22
- package/dist/{provider-models-WeMLH-Dl.cjs → provider-models-CPwRSoBW.cjs} +2 -2
- package/dist/{provider-models-CCmPfrkT.mjs → provider-models-Ds8okXrz.mjs} +2 -2
- package/dist/{registry-9E7PzrQ5.d.mts → registry-BqsJAuKJ.d.mts} +1 -1
- package/dist/{registry-CbFrDd-J.d.cts → registry-DPkAQDdi.d.cts} +1 -1
- package/dist/registry-loader.cjs +5 -5
- package/dist/registry-loader.d.cts +2 -2
- package/dist/registry-loader.d.mts +2 -2
- package/dist/registry-loader.mjs +5 -5
- package/package.json +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_model = require("./model-
|
|
2
|
-
const require_provider = require("./provider-
|
|
1
|
+
const require_model = require("./model-CHEP1GQj.cjs");
|
|
2
|
+
const require_provider = require("./provider-jpEaS8pw.cjs");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
zod = require_model.__toESM(zod, 1);
|
|
5
5
|
//#region src/schemas/provider-models.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { c as ServiceTierOptionsSchema, p as ReasoningWireProfileSchema } from "./provider-
|
|
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-D2FsNZSf.mjs";
|
|
2
|
+
import { c as ServiceTierOptionsSchema, p as ReasoningWireProfileSchema } from "./provider-SqdILkI9.mjs";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
//#region src/schemas/provider-models.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as ModelConfig, c as ProviderConfig, n as ProviderModelOverride } from "./provider-models-
|
|
1
|
+
import { X as ModelConfig, c as ProviderConfig, n as ProviderModelOverride } from "./provider-models-BBd6l8lw.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-
|
|
1
|
+
import { X as ModelConfig, c as ProviderConfig, n as ProviderModelOverride } from "./provider-models-BBd6l8lw.cjs";
|
|
2
2
|
//#region src/registry.d.ts
|
|
3
3
|
interface ModelSnapshot {
|
|
4
4
|
readonly models: {
|
package/dist/registry-loader.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_model = require("./model-
|
|
3
|
-
const require_catalog = require("./catalog-
|
|
4
|
-
const require_provider = require("./provider-
|
|
5
|
-
const require_provider_models = require("./provider-models-
|
|
2
|
+
const require_model = require("./model-CHEP1GQj.cjs");
|
|
3
|
+
const require_catalog = require("./catalog-CiNhAT2f.cjs");
|
|
4
|
+
const require_provider = require("./provider-jpEaS8pw.cjs");
|
|
5
|
+
const require_provider_models = require("./provider-models-CPwRSoBW.cjs");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
let semver = require("semver");
|
|
8
8
|
semver = require_model.__toESM(semver, 1);
|
|
@@ -16,7 +16,7 @@ semver = require_model.__toESM(semver, 1);
|
|
|
16
16
|
*/
|
|
17
17
|
/** Whether this app lies inside the manifest's explicit semantic and freshness range. */
|
|
18
18
|
function isCatalogManifestCompatible(manifest, appVersion) {
|
|
19
|
-
if (manifest.schemaVersion !==
|
|
19
|
+
if (manifest.schemaVersion !== 4) return false;
|
|
20
20
|
const app = semver.default.coerce(appVersion)?.version;
|
|
21
21
|
const minimum = semver.default.coerce(manifest.minAppVersion)?.version;
|
|
22
22
|
const source = semver.default.coerce(manifest.sourceAppVersion)?.version;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Q as ModelListSchema, X as ModelConfig, c as ProviderConfig, f as ProviderListSchema, n as ProviderModelOverride, t as ProviderModelListSchema } from "./provider-models-
|
|
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-
|
|
1
|
+
import { Q as ModelListSchema, X as ModelConfig, c as ProviderConfig, f as ProviderListSchema, n as ProviderModelOverride, t as ProviderModelListSchema } from "./provider-models-BBd6l8lw.cjs";
|
|
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-BqMRbtC6.cjs";
|
|
3
3
|
//#region src/registry-loader.d.ts
|
|
4
4
|
/** Whether this app lies inside the manifest's explicit semantic and freshness range. */
|
|
5
5
|
declare function isCatalogManifestCompatible(manifest: CatalogManifest, appVersion: string): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Q as ModelListSchema, X as ModelConfig, c as ProviderConfig, f as ProviderListSchema, n as ProviderModelOverride, t as ProviderModelListSchema } from "./provider-models-
|
|
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-
|
|
1
|
+
import { Q as ModelListSchema, X as ModelConfig, c as ProviderConfig, f as ProviderListSchema, n as ProviderModelOverride, t as ProviderModelListSchema } from "./provider-models-BBd6l8lw.mjs";
|
|
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-BqMRbtC6.mjs";
|
|
3
3
|
//#region src/registry-loader.d.ts
|
|
4
4
|
/** Whether this app lies inside the manifest's explicit semantic and freshness range. */
|
|
5
5
|
declare function isCatalogManifestCompatible(manifest: CatalogManifest, appVersion: string): boolean;
|
package/dist/registry-loader.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
2
|
-
import { o as ModelListSchema } from "./model-
|
|
3
|
-
import { i as ProviderListSchema } from "./provider-
|
|
4
|
-
import { t as ProviderModelListSchema } from "./provider-models-
|
|
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-C1vmCQsh.mjs";
|
|
2
|
+
import { o as ModelListSchema } from "./model-D2FsNZSf.mjs";
|
|
3
|
+
import { i as ProviderListSchema } from "./provider-SqdILkI9.mjs";
|
|
4
|
+
import { t as ProviderModelListSchema } from "./provider-models-Ds8okXrz.mjs";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import semver from "semver";
|
|
7
7
|
//#region src/registry-loader.ts
|
|
@@ -14,7 +14,7 @@ import semver from "semver";
|
|
|
14
14
|
*/
|
|
15
15
|
/** Whether this app lies inside the manifest's explicit semantic and freshness range. */
|
|
16
16
|
function isCatalogManifestCompatible(manifest, appVersion) {
|
|
17
|
-
if (manifest.schemaVersion !==
|
|
17
|
+
if (manifest.schemaVersion !== 4) return false;
|
|
18
18
|
const app = semver.coerce(appVersion)?.version;
|
|
19
19
|
const minimum = semver.coerce(manifest.minAppVersion)?.version;
|
|
20
20
|
const source = semver.coerce(manifest.sourceAppVersion)?.version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cherrystudio/provider-registry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
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": {
|
|
@@ -123,7 +123,6 @@
|
|
|
123
123
|
"devDependencies": {
|
|
124
124
|
"@ai-sdk/provider-utils": "^4.0.40",
|
|
125
125
|
"@types/node": "^24.10.2",
|
|
126
|
-
"dotenv": "^17.2.3",
|
|
127
126
|
"tsdown": "^0.22.14",
|
|
128
127
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
129
128
|
"vitest": "^5.0.1",
|