@dsh-cc/model-aliases 0.9.2-rc.1 → 0.9.3-rc.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/README.i18n.yaml +2 -2
- package/README.md +8 -9
- package/README.zh.md +6 -6
- package/package.json +4 -4
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm check:readme --write
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 8fcc86a5517bd25c20a2956023ad86a771bfa2fa
|
|
6
|
+
README.zh.md: 0426bb4c468e93193fb1f709361d970e7bb0a8c0
|
package/README.md
CHANGED
|
@@ -63,8 +63,8 @@ resolves to "inherit the parent route" (the same no-override behavior as before)
|
|
|
63
63
|
```yaml
|
|
64
64
|
# ccModelRoutes service config (the preset's cc-model-routes row)
|
|
65
65
|
modelAliases:
|
|
66
|
-
sonnet: deepseek-
|
|
67
|
-
opus: { provider: deepseek
|
|
66
|
+
sonnet: deepseek-chat # string form: model only, provider inherits
|
|
67
|
+
opus: { provider: deepseek, model: deepseek-reasoner } # explicit route
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
```jsonc
|
|
@@ -108,8 +108,8 @@ nothing. An effort the target model does not support fails the request with
|
|
|
108
108
|
```jsonc
|
|
109
109
|
// settings namespace "model-aliases"
|
|
110
110
|
{
|
|
111
|
-
"opus": { "provider": "
|
|
112
|
-
"sonnet": { "provider": "
|
|
111
|
+
"opus": { "provider": "zai-api", "model": "glm-5.3", "reasoningEffort": "max" },
|
|
112
|
+
"sonnet": { "provider": "zai-api", "model": "glm-5.2", "reasoningEffort": "max" }
|
|
113
113
|
}
|
|
114
114
|
```
|
|
115
115
|
|
|
@@ -121,7 +121,7 @@ untouched.
|
|
|
121
121
|
|
|
122
122
|
A model reference — frontmatter `model:`, an alias target's `model` id, or the
|
|
123
123
|
auto-mode classifier's `route` — may carry a `` `$<level>` `` suffix
|
|
124
|
-
(`opus$high`, `
|
|
124
|
+
(`opus$high`, `deepseek-reasoner$high`). The suffix is stripped before the id leaves
|
|
125
125
|
the resolver (pricing, breakers, and pins key on bare model ids); the level
|
|
126
126
|
rides `reasoningEffort` on the resolved route and **overrides** an alias
|
|
127
127
|
target's declared `reasoningEffort`. Unknown level spellings are never
|
|
@@ -236,11 +236,10 @@ except `architect` follows its CC peer, so a deployment that already maps
|
|
|
236
236
|
| `architect` | Planning and orchestration | inherit (main thread) |
|
|
237
237
|
| `gauge` | Typed-decision cheap lane (System One models; not generative) | `haiku` |
|
|
238
238
|
|
|
239
|
-
`gauge` is a typed-decision lane for System One models
|
|
240
|
-
`llmbox_systemone/laya`); **never use it as agent frontmatter `model:`** — it
|
|
239
|
+
`gauge` is a typed-decision lane for System One models; **never use it as agent frontmatter `model:`** — it
|
|
241
240
|
is selected by decision consumers, not generative callers. This is enforced:
|
|
242
|
-
a System One target
|
|
243
|
-
id
|
|
241
|
+
a System One target, identified by `protocol: "systemone"` or a recognized
|
|
242
|
+
System One model-id prefix, keeps `protocol: 'systemone'` on its resolved route, the chat projections
|
|
244
243
|
(`toAgentOptions` / `toOneShotRoute`) refuse such a route, and the routes
|
|
245
244
|
service's `llm/stream` guard rejects any chat request for a System One model
|
|
246
245
|
with `SystemOneChatModelError` (code `SYSTEMONE_NOT_CHAT_MODEL`). The
|
package/README.zh.md
CHANGED
|
@@ -35,8 +35,8 @@ Claude Code 的 agent/CLAUDE.md frontmatter 用 alias 命名模型。没有 alia
|
|
|
35
35
|
```yaml
|
|
36
36
|
# ccModelRoutes 服务配置(预设的 cc-model-routes 行)
|
|
37
37
|
modelAliases:
|
|
38
|
-
sonnet: deepseek-
|
|
39
|
-
opus: { provider: deepseek
|
|
38
|
+
sonnet: deepseek-chat # 字符串形式:仅 model,provider 继承
|
|
39
|
+
opus: { provider: deepseek, model: deepseek-reasoner } # 显式路由
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
```jsonc
|
|
@@ -69,8 +69,8 @@ alias 的查找顺序:**settings overlay → config 默认 → builtin fallbac
|
|
|
69
69
|
```jsonc
|
|
70
70
|
// settings 命名空间 "model-aliases"
|
|
71
71
|
{
|
|
72
|
-
"opus": { "provider": "
|
|
73
|
-
"sonnet": { "provider": "
|
|
72
|
+
"opus": { "provider": "zai-api", "model": "glm-5.3", "reasoningEffort": "max" },
|
|
73
|
+
"sonnet": { "provider": "zai-api", "model": "glm-5.2", "reasoningEffort": "max" }
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@ alias 的查找顺序:**settings overlay → config 默认 → builtin fallbac
|
|
|
78
78
|
|
|
79
79
|
### `model$level` 后缀语法
|
|
80
80
|
|
|
81
|
-
模型引用——frontmatter 的 `model:`、alias target 的 `model` id、或 auto-mode classifier 的 `route`——可以携带 `` `$<level>` `` 后缀(`opus$high`、`
|
|
81
|
+
模型引用——frontmatter 的 `model:`、alias target 的 `model` id、或 auto-mode classifier 的 `route`——可以携带 `` `$<level>` `` 后缀(`opus$high`、`deepseek-reasoner$high`)。后缀在 id 离开解析器之前被剥离(定价、断路器、pin 都以裸 model id 为键);level 以 `reasoningEffort` 搭载在解析出的路由上,并**覆盖** alias target 声明的 `reasoningEffort`。未知 level 拼写既不剥离也不丢弃:原样携带到 harness 边界,由其以 `UNSUPPORTED_REASONING_EFFORT` 报错。畸形后缀(结尾 `$`、空或非法字符集的 level、provider 段中的 `$`)让引用原样透传——不含 `$` 的既有 id 解析字节级不变。
|
|
82
82
|
|
|
83
83
|
### Effort 优先级
|
|
84
84
|
|
|
@@ -134,7 +134,7 @@ alias 的查找顺序:**settings overlay → config 默认 → builtin fallbac
|
|
|
134
134
|
| `architect` | 规划与编排 | inherit(主线程) |
|
|
135
135
|
| `gauge` | 类型化决策低价 lane(System One 模型;非生成用途) | `haiku` |
|
|
136
136
|
|
|
137
|
-
`gauge` 是面向 System One
|
|
137
|
+
`gauge` 是面向 System One 模型的类型化决策 lane;**绝不要把它用作 agent frontmatter 的 `model:`**——它由决策消费者选择,而非生成式调用方。该约束是强制的:System One 目标(通过 `protocol: "systemone"` 或已识别的 System One 模型 id 前缀识别)在解析出的路由上保留 `protocol: 'systemone'`,聊天投影(`toAgentOptions` / `toOneShotRoute`)拒绝此类路由,routes 服务的 `llm/stream` 守卫以 `SystemOneChatModelError`(code `SYSTEMONE_NOT_CHAT_MODEL`)拒绝任何针对 System One 模型的聊天请求。permission-rules 分类器与探针通过自己的协议客户端访问 System One,不受影响。
|
|
138
138
|
|
|
139
139
|
已配置的字符串目标若指向另一个 alias,会**跟随一跳**(`sketch: haiku` 共用 haiku 的对象路由,含 `reasoningEffort`)。对象形式目标是具体路由,不作为名字再跟。第二跳不跟,因此 `sketch: draft` + `draft: haiku` 停在字面 `"haiku"`(防环)。
|
|
140
140
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-cc/model-aliases",
|
|
3
3
|
"description": "Claude Code-compatible model alias resolution for the DeepSeek Harness",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.3-rc.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dsh-cc/dsh-cc.git",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"@deepseek-ai/dsh-subagent-fork-in-process": "link:../../../../deepseek-harness/packages/subagent/subagent-fork-in-process",
|
|
51
51
|
"@deepseek-ai/dsh-subagent-spawn-in-process": "link:../../../../deepseek-harness/packages/subagent/subagent-spawn-in-process",
|
|
52
52
|
"@deepseek-ai/schemastery": "link:../../../../deepseek-harness/vendor/schemastery",
|
|
53
|
-
"@dsh-cc/settings-provider": "^0.9.
|
|
53
|
+
"@dsh-cc/settings-provider": "^0.9.3-rc.1",
|
|
54
54
|
"@dsh-cc/agent-loop-mock": "^0.1.0",
|
|
55
|
-
"@dsh-cc/settings-ns": "^0.9.
|
|
55
|
+
"@dsh-cc/settings-ns": "^0.9.3-rc.1"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@dsh-cc/settings-ns": "^0.9.
|
|
61
|
+
"@dsh-cc/settings-ns": "^0.9.3-rc.1"
|
|
62
62
|
}
|
|
63
63
|
}
|