@cloudpeers-jkl/model-router 0.2.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/README.md +74 -0
- package/dist/adapters/anthropic.d.ts +7 -0
- package/dist/adapters/anthropic.js +121 -0
- package/dist/adapters/gemini.d.ts +40 -0
- package/dist/adapters/gemini.js +151 -0
- package/dist/adapters/selfhosted.d.ts +14 -0
- package/dist/adapters/selfhosted.js +96 -0
- package/dist/capabilities.d.ts +18 -0
- package/dist/capabilities.js +14 -0
- package/dist/errors.d.ts +23 -0
- package/dist/errors.js +32 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +22 -0
- package/dist/policy.d.ts +35 -0
- package/dist/policy.js +48 -0
- package/dist/router.d.ts +36 -0
- package/dist/router.js +328 -0
- package/dist/schema.d.ts +335 -0
- package/dist/schema.js +68 -0
- package/dist/types.d.ts +256 -0
- package/dist/types.js +16 -0
- package/package.json +33 -0
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudpeers-jkl/model-router",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "cloudpeers inference router — embedded library (no central data plane). Sovereignty privacy gate, static task-class routing, Anthropic Messages lingua franca, uniform metering.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc -p tsconfig.json",
|
|
21
|
+
"test": "vitest run",
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@google/generative-ai": ">=0.24.0",
|
|
26
|
+
"zod": ">=3.22.0"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/jenklin/cloudpeers-gcp-nov25.git",
|
|
31
|
+
"directory": "packages/model-router"
|
|
32
|
+
}
|
|
33
|
+
}
|