@apinggithub/mydsh-auto-model-router 0.0.0-stage → 0.2.1
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/LICENSE +21 -0
- package/README.md +522 -3
- package/README.zh.md +463 -0
- package/auto-adapter.mjs +132 -0
- package/classifier.mjs +86 -0
- package/client.js +123 -0
- package/compat.mjs +199 -0
- package/config.mjs +461 -0
- package/cordis.patch.yml +11 -0
- package/cost-control.mjs +159 -0
- package/fallback.mjs +62 -0
- package/index.mjs +429 -0
- package/notify.mjs +653 -0
- package/package.json +74 -6
- package/router.mjs +751 -0
- package/rules.mjs +59 -0
- package/scoring.mjs +69 -0
- package/text-width.mjs +73 -0
package/package.json
CHANGED
|
@@ -1,6 +1,74 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@apinggithub/mydsh-auto-model-router",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@apinggithub/mydsh-auto-model-router",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Hybrid model router for DeepSeek Harness: declarative rules, user-configurable cost control (cost-first / quality-first / balanced), optional LLM task classifier, and failure fallback chains.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.mjs",
|
|
9
|
+
"./client": "./client.js",
|
|
10
|
+
"./package.json": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"index.mjs",
|
|
14
|
+
"config.mjs",
|
|
15
|
+
"rules.mjs",
|
|
16
|
+
"cost-control.mjs",
|
|
17
|
+
"classifier.mjs",
|
|
18
|
+
"fallback.mjs",
|
|
19
|
+
"router.mjs",
|
|
20
|
+
"notify.mjs",
|
|
21
|
+
"auto-adapter.mjs",
|
|
22
|
+
"compat.mjs",
|
|
23
|
+
"text-width.mjs",
|
|
24
|
+
"scoring.mjs",
|
|
25
|
+
"client.js",
|
|
26
|
+
"cordis.patch.yml",
|
|
27
|
+
"README.md",
|
|
28
|
+
"README.zh.md"
|
|
29
|
+
],
|
|
30
|
+
"dsh": {
|
|
31
|
+
"bundle": {
|
|
32
|
+
"patch": "./cordis.patch.yml"
|
|
33
|
+
},
|
|
34
|
+
"client": {
|
|
35
|
+
"inject": [],
|
|
36
|
+
"platform": "web"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"test": "node --test *.test.mjs",
|
|
41
|
+
"build:client": "node build-client.mjs",
|
|
42
|
+
"publish:all": "npm publish --access public && cd tier-cost && npm publish --access public"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@deepseek-ai/dsh-llm": ">=0.1.0-0 <1.0.0",
|
|
46
|
+
"@deepseek-ai/dsh-tools": ">=0.1.0-0 <1.0.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@deepseek-ai/dsh-llm": "0.1.0-rc.6",
|
|
50
|
+
"@deepseek-ai/dsh-tools": "0.1.0-rc.6"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": "^22.19.0 || >=24",
|
|
54
|
+
"dsh": ">=0.1.0-0 <1.0.0"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"dsh",
|
|
58
|
+
"dsh-plugin",
|
|
59
|
+
"deepseek-harness",
|
|
60
|
+
"model-router",
|
|
61
|
+
"llm",
|
|
62
|
+
"routing",
|
|
63
|
+
"cost-optimization"
|
|
64
|
+
],
|
|
65
|
+
"repository": {
|
|
66
|
+
"type": "git",
|
|
67
|
+
"url": "git+https://github.com/apinggithub/mydsh-auto-model-router.git"
|
|
68
|
+
},
|
|
69
|
+
"homepage": "https://github.com/apinggithub/mydsh-auto-model-router#readme",
|
|
70
|
+
"bugs": {
|
|
71
|
+
"url": "https://github.com/apinggithub/mydsh-auto-model-router/issues"
|
|
72
|
+
},
|
|
73
|
+
"license": "MIT"
|
|
74
|
+
}
|