@aiwayds/dsh-model-sync 0.8.0 → 0.10.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.
Files changed (68) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +9 -4
  3. package/README.zh-CN.md +9 -4
  4. package/lib/builtin-catalog-snapshot.d.ts +5 -1
  5. package/lib/builtin-catalog-snapshot.js +13 -10
  6. package/lib/builtin-catalog-snapshot.js.map +1 -1
  7. package/lib/index.d.ts +366 -0
  8. package/lib/index.js +729 -13
  9. package/lib/index.js.map +1 -1
  10. package/lib/opencode-go-diagnose.d.ts +74 -0
  11. package/lib/opencode-go-diagnose.js +146 -0
  12. package/lib/opencode-go-diagnose.js.map +1 -0
  13. package/lib/opencode-go-grouping.d.ts +29 -0
  14. package/lib/opencode-go-grouping.js +77 -0
  15. package/lib/opencode-go-grouping.js.map +1 -0
  16. package/lib/opencode-go-journal.d.ts +110 -0
  17. package/lib/opencode-go-journal.js +406 -0
  18. package/lib/opencode-go-journal.js.map +1 -0
  19. package/lib/opencode-go-migrate.d.ts +343 -0
  20. package/lib/opencode-go-migrate.js +1300 -0
  21. package/lib/opencode-go-migrate.js.map +1 -0
  22. package/lib/opencode-go-migration.d.ts +227 -0
  23. package/lib/opencode-go-migration.js +384 -0
  24. package/lib/opencode-go-migration.js.map +1 -0
  25. package/lib/opencode-go-planner.d.ts +153 -0
  26. package/lib/opencode-go-planner.js +339 -0
  27. package/lib/opencode-go-planner.js.map +1 -0
  28. package/lib/opencode-go-profile.d.ts +57 -0
  29. package/lib/opencode-go-profile.js +103 -0
  30. package/lib/opencode-go-profile.js.map +1 -0
  31. package/lib/opencode-go-scheduler.d.ts +128 -0
  32. package/lib/opencode-go-scheduler.js +241 -0
  33. package/lib/opencode-go-scheduler.js.map +1 -0
  34. package/lib/opencode-go-source.d.ts +117 -0
  35. package/lib/opencode-go-source.js +331 -0
  36. package/lib/opencode-go-source.js.map +1 -0
  37. package/lib/opencode-go-store.d.ts +18 -0
  38. package/lib/opencode-go-store.js +68 -0
  39. package/lib/opencode-go-store.js.map +1 -0
  40. package/lib/opencode-go-sync.d.ts +94 -0
  41. package/lib/opencode-go-sync.js +364 -0
  42. package/lib/opencode-go-sync.js.map +1 -0
  43. package/lib/opencode-go-writer.d.ts +132 -0
  44. package/lib/opencode-go-writer.js +966 -0
  45. package/lib/opencode-go-writer.js.map +1 -0
  46. package/lib/provider-native.d.ts +3 -1
  47. package/lib/provider-native.js +4 -2
  48. package/lib/provider-native.js.map +1 -1
  49. package/lib/remote-catalog.d.ts +37 -0
  50. package/lib/remote-catalog.js +261 -3
  51. package/lib/remote-catalog.js.map +1 -1
  52. package/package.json +18 -18
  53. package/src/builtin-catalog-snapshot.ts +18 -11
  54. package/src/index.ts +873 -12
  55. package/src/opencode-go-diagnose.ts +222 -0
  56. package/src/opencode-go-grouping.ts +97 -0
  57. package/src/opencode-go-journal.ts +458 -0
  58. package/src/opencode-go-migrate.ts +1694 -0
  59. package/src/opencode-go-migration.ts +552 -0
  60. package/src/opencode-go-planner.ts +505 -0
  61. package/src/opencode-go-profile.ts +114 -0
  62. package/src/opencode-go-scheduler.ts +315 -0
  63. package/src/opencode-go-source.ts +424 -0
  64. package/src/opencode-go-store.ts +73 -0
  65. package/src/opencode-go-sync.ts +503 -0
  66. package/src/opencode-go-writer.ts +1189 -0
  67. package/src/provider-native.ts +3 -1
  68. package/src/remote-catalog.ts +293 -3
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 fan56
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -30,7 +30,9 @@ Model lists drift: providers ship new models, retire old ones, and adjust capabi
30
30
  - **Scheduled refresh.** `intervalMinutes` auto rounds (default 240 / 4h) plus a `startupDelaySeconds` initial delay (default 5); each round logs the same report a manual refresh produces. `0` disarms the interval (startup-only). The interval re-arms live when the config changes (`src/index.ts`).
31
31
  - **Change reporting / diff.** Every round reports added/removed model ids (`diffModelIds`), and in `settings` mode added/removed/changed entries against the current raw settings (`diffEntries`, `diff.ts`). Dropped and degraded entries are reported with their reasons.
32
32
  - **`modelSync` service.** Exposes a `modelSync` service (`syncNow()`) that a UI can call to force one refresh round and read the report.
33
- - **`/model-sync` command.** The plugin registers a `/model-sync` slash command itself through the shared dsh command registry (`@deepseek-ai/dsh-commands`), so every interactive UI lists it automatically — no UI-side wiring. Running it forces one sync round on the spot and prints the same report the scheduled rounds log; the sync scope is decided by `managedRoutes` (arguments are ignored). The registry is an optional peer: hosts without a command registry still get the scheduled rounds and the `modelSync` service.
33
+ - **`/model-sync` command.** The plugin registers a `/model-sync` slash command itself through the shared dsh command registry (`@deepseek-ai/dsh-commands`), so every interactive UI lists it automatically — no UI-side wiring. Running it forces one sync round on the spot and prints the same report the scheduled rounds log; the sync scope is decided by `managedRoutes` (arguments are ignored). The registry is an optional peer: hosts without a command registry still get the scheduled rounds and the `modelSync` service. Its subcommands are `go`/`status` (one full opencode-go round), `adopt go` (the same round with adoption), and `migrate plan|apply|rollback|status` (the only explicit-consent config writer; `plan` is read-only, `apply` requires a plan hash, a 6-digit confirm code and `--ack-managed`). `eject` is retired — `migrate rollback` is the only rollback entry.
34
+ - **opencode-go sync (opt-in).** With `opencode.go.enabled: true`, three routes — `opencode-go` (chat-completions), `opencode-go-msg` (messages), `opencode-go-resp` (responses) — sync from the official public `/v1/models` listing instead of pi.dev. It is off by default, so existing handwritten opencode-go lists are frozen until you opt in. These go routes are separate from the default pi.dev `managedRoutes` above.
35
+ - **`/opencode-status` read-only diagnostic.** Compares the official opencode-go `/v1/models` listing with the current profile's routes (no writes, no settings mutation).
34
36
  - **Translation rules.** pi.dev entries are translated into settings-writable model profiles (`translate.ts`): base-matching vs base-less classification, `reasoningEfforts` derivation (S2 gate), `compat` gating to `openai-completions` (S5 gate), `maxTokens` handling, and drop logic for mixed-protocol routes. Capacity values get a sanity gate: a `contextWindow` that is not a positive integer, or a `maxTokens` that is not a positive integer strictly below the context window (listings sometimes echo the context window into `maxTokens`), is skipped with a degrade warning instead of written.
35
37
  - **Your overrides are durable.** `modelOverrides` is your own per-model channel (think levels, narrowed context windows). dsh refuses a models list beside non-empty overrides, so the sync folds your fields into the written models, clears the key in the same write, and re-applies the values from its store (`~/.dsh/models-store.json`) on every round — they keep winning over the synced values for as long as the route is managed.
36
38
  - **Safe-by-default options:**
@@ -82,6 +84,7 @@ Configure the plugin under the `dsh-model-sync` settings entry — on dsh 0.1.7+
82
84
  | `forceMaxReasoningEffort` | `false` | Force max reasoning effort on models with a non-empty `thinkingFormat` |
83
85
  | `providerNativeFetch` | `true` | Union each mapped provider's first-party `/models` listing into the pi.dev result (additions only) |
84
86
  | `keepDeprecatedBuiltin` | `false` | Opt back into emitting builtin ids the official default model list dropped (dsh 0.1.7 removed `deepseek-v4-flash` / `deepseek-v4-flash-vision-exp`; dsh 0.2.0 removed `omen-alpha` on opencode-go and `glm-4.7` / `glm-5-turbo` / `glm-5.1` / `glm-5.2` / `glm-5.2-highspeed` / `glm-5v-turbo` on zai-coding-cn; the snapshot keeps the data but no longer syncs them by default) |
87
+ | `opencode.go.enabled` | `false` | Opt in to official-listing sync for the three `opencode-go*` routes; default off keeps existing handwritten opencode-go lists frozen (need sync → set `true` explicitly) |
85
88
 
86
89
  Example (settings section `dsh-model-sync`; a legacy `settings.yaml` `model-sync:` section is not auto-imported by the dsh 0.1.7 host itself — the plugin recovers it once at boot, see above):
87
90
 
@@ -112,9 +115,11 @@ providers:
112
115
 
113
116
  Note that listing data itself can be noisy: values are sanity-gated (positive integers; `maxTokens` strictly below `contextWindow`), and stripped values show up in the sync report as `DEGRADED` lines with reasons.
114
117
 
115
- ### Manual refresh: the `/model-sync` command
118
+ ### Manual refresh: `/model-sync` and `/opencode-status`
116
119
 
117
- Type `/model-sync` in any interactive UI to force one sync round on the spot. The plugin registers the command in the shared command registry (`@deepseek-ai/dsh-commands`), and UIs discover it automatically. It returns the same report the scheduled rounds log. The sync scope is decided by `managedRoutes`; any arguments typed after the command are ignored. Hosts without a command registry degrade gracefully — the scheduled rounds and the `modelSync` service keep working.
120
+ Type `/model-sync` in any interactive UI to force one sync round on the spot. The plugin registers the command in the shared command registry (`@deepseek-ai/dsh-commands`), and UIs discover it automatically. It returns the same report the scheduled rounds log. The sync scope is decided by `managedRoutes`; extra arguments to a bare `/model-sync` are ignored. Hosts without a command registry degrade gracefully — the scheduled rounds and the `modelSync` service keep working.
121
+
122
+ opencode-go adds subcommands: `/model-sync go` (or `status`) runs one full go round, `/model-sync adopt go` runs it with adoption, and `/model-sync migrate plan|apply|rollback|status` is the only explicit-consent config writer — `plan` is read-only and `apply` requires a plan hash, a 6-digit confirm code and `--ack-managed`. `eject` is retired; use `migrate rollback` to revert. `/opencode-status` is a separate read-only diagnostic that compares the official listing with the current profile's routes; it never writes settings or credentials.
118
123
 
119
124
  ## Development
120
125
 
@@ -137,4 +142,4 @@ The repo also carries the reference patches that document the legacy overlay beh
137
142
 
138
143
  ## License
139
144
 
140
- MIT.
145
+ Apache-2.0.
package/README.zh-CN.md CHANGED
@@ -30,7 +30,9 @@ https://github.com/user-attachments/assets/c3f9c8b1-ea5e-470c-b8a8-60a81fc5c20a
30
30
  - **定时刷新。** `intervalMinutes` 周期轮(默认 240,即 4 小时)加 `startupDelaySeconds` 启动延迟(默认 5 秒);每轮自动刷新输出的报告与手动刷新完全相同。`0` 表示关闭周期(仅启动时刷一次)。配置变更时周期会实时重新挂载(`src/index.ts`)。
31
31
  - **变更报告 / diff。** 每轮报告新增/移除的模型 id(`diffModelIds`);`settings` 模式下还会对照当前原始 settings 报告新增/移除/变更的条目(`diffEntries`,`diff.ts`)。被丢弃(dropped)与降级(degraded)的条目连同原因一并报告。
32
32
  - **`modelSync` 服务。** 对外暴露 `modelSync` 服务(`syncNow()`),UI 调用它即可强制跑一轮刷新并读取报告。
33
- - **`/model-sync` 命令。** 插件自行通过共享的 dsh 命令注册表(`@deepseek-ai/dsh-commands`)注册 `/model-sync` 斜杠命令,所有交互式 UI 自动发现并列出——UI 侧零配合。执行它当场强制跑一轮刷新,输出的报告与定时轮完全相同;同步范围由 `managedRoutes` 决定(参数会被忽略)。命令注册表是可选 peer:没有命令注册服务的宿主照常降级,定时刷新与 `modelSync` 服务不受影响。
33
+ - **`/model-sync` 命令。** 插件自行通过共享的 dsh 命令注册表(`@deepseek-ai/dsh-commands`)注册 `/model-sync` 斜杠命令,所有交互式 UI 自动发现并列出——UI 侧零配合。执行它当场强制跑一轮刷新,输出的报告与定时轮完全相同;同步范围由 `managedRoutes` 决定(裸命令后附带的额外参数会被忽略)。命令注册表是可选 peer:没有命令注册服务的宿主照常降级,定时刷新与 `modelSync` 服务不受影响。其子命令为 `go`/`status`(跑一整轮 opencode-go 同步)、`adopt go`(带采纳跑同一轮)、`migrate plan|apply|rollback|status`(唯一的显式同意配置写入路径;`plan` 只读,`apply` 需要 plan hash、6 位确认码与 `--ack-managed`)。`eject` 已下线——回退只用 `migrate rollback`。
34
+ - **opencode-go 同步(需显式开启)。** 设 `opencode.go.enabled: true` 后,三条路由——`opencode-go`(chat-completions)、`opencode-go-msg`(messages)、`opencode-go-resp`(responses)——改为从官方公开 `/v1/models` 清单同步,而非 pi.dev。默认关闭,因此现存手写的 opencode-go 列表在开启前保持冻结。这三条 go 路由与上文的默认 pi.dev `managedRoutes` 相互独立。
35
+ - **`/opencode-status` 只读诊断。** 对照官方 opencode-go `/v1/models` 清单与当前 profile 的路由(零写入、不改 settings)。
34
36
  - **翻译规则。** pi.dev 条目被翻译成 settings 可写的模型 profile(`translate.ts`):base-matching 与 base-less 分类、`reasoningEfforts` 推导(S2 gate)、`compat` 门控到 `openai-completions`(S5 gate)、`maxTokens` 处理,以及混合协议路由的丢弃逻辑。容量值另有卫生门:非正整数的 `contextWindow`,或不是「严格小于 contextWindow 的正整数」的 `maxTokens`(有的列表会把 context window 回声填进 maxTokens),一律跳过不写,并在报告中以降级警告说明。
35
37
  - **你的覆盖不会被吃掉。** `modelOverrides` 是你自己的按模型调整通道(think level、收窄 context window 等)。dsh 拒绝 models 列表与非空 modelOverrides 并存,因此同步会把覆盖字段折叠进写入的 models、在同一次写入中清掉该键,并把原值存进 `~/.dsh/models-store.json` 逐轮回放——只要路由仍被托管,覆盖就持续压过同步值。
36
38
  - **默认安全的开关:**
@@ -82,6 +84,7 @@ dsh plugin remove @aiwayds/dsh-model-sync
82
84
  | `forceMaxReasoningEffort` | `false` | 对 `thinkingFormat` 非空的模型强制 max reasoning effort |
83
85
  | `providerNativeFetch` | `true` | 把各厂商自家的 `/models` 列表并入 pi.dev 结果(只增不减) |
84
86
  | `keepDeprecatedBuiltin` | `false` | 重新同步官方默认列表已移除的内置 id(dsh 0.1.7 移除了 `deepseek-v4-flash` / `deepseek-v4-flash-vision-exp`;dsh 0.2.0 移除了 opencode-go 的 `omen-alpha` 与 zai-coding-cn 的 `glm-4.7` / `glm-5-turbo` / `glm-5.1` / `glm-5.2` / `glm-5.2-highspeed` / `glm-5v-turbo`;快照保留数据但默认不再同步) |
87
+ | `opencode.go.enabled` | `false` | 开启则对三条 `opencode-go*` 路由改用官方清单同步;默认关闭使现存手写 opencode-go 列表保持冻结(需要同步时显式设 `true`) |
85
88
 
86
89
  示例:
87
90
 
@@ -114,9 +117,11 @@ providers:
114
117
 
115
118
  另外列表数据本身可能有噪声:容量值有卫生门(正整数;`maxTokens` 必须严格小于 `contextWindow`),被剥离的值会在同步报告里以 `DEGRADED` 行连同原因出现。
116
119
 
117
- ### 手动刷新:`/model-sync` 命令
120
+ ### 手动刷新:`/model-sync` 与 `/opencode-status`
118
121
 
119
- 在任意交互式 UI 里输入 `/model-sync` 即可当场强制跑一轮同步。命令由插件自己注册进共享命令注册表(`@deepseek-ai/dsh-commands`),UI 自动发现。它返回与定时轮相同的报告;同步范围由 `managedRoutes` 决定,命令后面的参数一律忽略。没有命令注册服务的宿主会平滑降级——定时刷新与 `modelSync` 服务照常工作。
122
+ 在任意交互式 UI 里输入 `/model-sync` 即可当场强制跑一轮同步。命令由插件自己注册进共享命令注册表(`@deepseek-ai/dsh-commands`),UI 自动发现。它返回与定时轮相同的报告;同步范围由 `managedRoutes` 决定,裸命令后附带的额外参数会被忽略。没有命令注册服务的宿主会平滑降级——定时刷新与 `modelSync` 服务照常工作。
123
+
124
+ opencode-go 增加了子命令:`/model-sync go`(或 `status`)跑一整轮 go 同步,`/model-sync adopt go` 带采纳跑同一轮,`/model-sync migrate plan|apply|rollback|status` 是唯一的显式同意配置写入路径——`plan` 只读,`apply` 需要 plan hash、6 位确认码与 `--ack-managed`。`eject` 已下线,回退请用 `migrate rollback`。`/opencode-status` 是另一条只读诊断命令,对照官方清单与当前 profile 路由,从不写入 settings 或凭据。
120
125
 
121
126
  ## 开发
122
127
 
@@ -139,4 +144,4 @@ npm test # node --test(pretest 先构建):diff / translate / writer
139
144
 
140
145
  ## 许可证
141
146
 
142
- MIT。
147
+ Apache-2.0。
@@ -14,7 +14,11 @@
14
14
  * on opencode-go and six zai-coding-cn ids: glm-4.7, glm-5-turbo,
15
15
  * glm-5.1, glm-5.2, glm-5.2-highspeed, glm-5v-turbo. dsh 0.2.1-rc.2
16
16
  * (pi-ai 1.3.0) removed six more opencode-go ids: glm-5.1, grok-4.6,
17
- * kimi-k2.6, minimax-m2.7, qwen3.6-plus, qwen3.7-max). The data is
17
+ * kimi-k2.6, minimax-m2.7, qwen3.6-plus, qwen3.7-max. The 2026-10
18
+ * catalog refresh dropped mimo-v2.5/mimo-v2.5-pro on xiaomi-token-plan-cn,
19
+ * replaced the opencode-go free ids cat-jam-free/space-bunny/
20
+ * step-5-preview-free with beam-free/minimax-m3.1-flash-free/step-5-preview,
21
+ * and added MiniMax-M3.1-Flash on minimax-cn). The data is
18
22
  * retained for historical user configurations: keepBuiltinOnly emission
19
23
  * skips deprecated ids unless keepDeprecatedBuiltin opts back in. Marks
20
24
  * and entries survive regeneration — this script re-adds them even when
@@ -4,18 +4,18 @@ export const BUILTIN_CATALOG_SNAPSHOT = {
4
4
  'minimax-cn': [
5
5
  { id: 'MiniMax-M2.7', api: 'anthropic-messages', maxTokens: 131072 },
6
6
  { id: 'MiniMax-M2.7-highspeed', api: 'anthropic-messages', maxTokens: 131072 },
7
- { id: 'MiniMax-M3', api: 'anthropic-messages', maxTokens: 512000 }
7
+ { id: 'MiniMax-M3', api: 'anthropic-messages', maxTokens: 524288 },
8
+ { id: 'MiniMax-M3.1-Flash', api: 'anthropic-messages', maxTokens: 524288 }
8
9
  ],
9
10
  'opencode-go': [
10
- { id: 'cat-jam-free', api: 'openai-completions', maxTokens: 131072 },
11
+ { id: 'beam-free', api: 'openai-completions', maxTokens: 131072 },
11
12
  { id: 'claude-haiku-5-5', api: 'anthropic-messages', maxTokens: 128000 },
12
13
  { id: 'deepseek-v4-flash', api: 'openai-completions', maxTokens: 384000, deprecated: true },
13
14
  { id: 'deepseek-v4-flash-vision-exp', api: 'openai-completions', maxTokens: 384000, deprecated: true },
14
15
  { id: 'deepseek-v4-pro', api: 'openai-completions', maxTokens: 384000 },
15
16
  { id: 'deepseek-v4.1-flash', api: 'openai-completions', maxTokens: 384000 },
16
- { id: 'gemini-4-argon-contributor', api: 'google-generative-ai', maxTokens: 65536 },
17
+ { id: 'gemini-4-argon', api: 'google-generative-ai', maxTokens: 65536 },
17
18
  { id: 'glm-5.1', api: 'openai-completions', maxTokens: 32768, deprecated: true },
18
- { id: 'glm-5.2', api: 'openai-completions', maxTokens: 131072 },
19
19
  { id: 'glm-5.3', api: 'openai-completions', maxTokens: 131072 },
20
20
  { id: 'glm-5.3-flash', api: 'openai-completions', maxTokens: 131072 },
21
21
  { id: 'gpt-5.6-luna', api: 'openai-responses', maxTokens: 128000 },
@@ -23,18 +23,23 @@ export const BUILTIN_CATALOG_SNAPSHOT = {
23
23
  { id: 'grok-4.6', api: 'openai-responses', maxTokens: 500000, deprecated: true },
24
24
  { id: 'grok-4.7', api: 'openai-responses', maxTokens: 500000 },
25
25
  { id: 'hy3', api: 'openai-completions', maxTokens: 128000 },
26
+ { id: 'hy4', api: 'openai-completions', maxTokens: 65536 },
27
+ { id: 'hy4-flash-free', api: 'openai-completions', maxTokens: 65536 },
26
28
  { id: 'hy4-preview', api: 'openai-completions', maxTokens: 64000 },
29
+ { id: 'iceman-contributor-free', api: 'openai-completions', maxTokens: 131072 },
27
30
  { id: 'kimi-k2.6', api: 'openai-completions', maxTokens: 65536, deprecated: true },
28
31
  { id: 'kimi-k2.7-code', api: 'openai-completions', maxTokens: 262144 },
29
- { id: 'kimi-k3', api: 'openai-completions', maxTokens: 131072 },
32
+ { id: 'kimi-k3', api: 'openai-completions', maxTokens: 1048576 },
33
+ { id: 'kimi-k3.1-pro', api: 'openai-completions', maxTokens: 1048576 },
30
34
  { id: 'longcat-2.0', api: 'openai-completions', maxTokens: 131072 },
31
- { id: 'longcat-2.5-preview-free', api: 'openai-completions', maxTokens: 131072 },
35
+ { id: 'longcat-2.5-free', api: 'openai-completions', maxTokens: 262144 },
32
36
  { id: 'mimo-v2.5', api: 'openai-completions', maxTokens: 128000 },
33
37
  { id: 'mimo-v2.5-pro', api: 'openai-completions', maxTokens: 128000 },
34
38
  { id: 'mimo-v2.6-flash', api: 'openai-completions', maxTokens: 131072 },
35
39
  { id: 'mimo-v2.6-pro', api: 'openai-completions', maxTokens: 131072 },
36
40
  { id: 'minimax-m2.7', api: 'openai-completions', maxTokens: 131072, deprecated: true },
37
41
  { id: 'minimax-m3', api: 'anthropic-messages', maxTokens: 131072 },
42
+ { id: 'minimax-m3.1-flash', api: 'openai-completions', maxTokens: 512000 },
38
43
  { id: 'muse-spark-1.2-contributor', api: 'openai-responses', maxTokens: 131072 },
39
44
  { id: 'muse-spark-1.3-contributor', api: 'openai-responses', maxTokens: 131072 },
40
45
  { id: 'omen-alpha', api: 'openai-completions', maxTokens: 128000, deprecated: true },
@@ -43,12 +48,10 @@ export const BUILTIN_CATALOG_SNAPSHOT = {
43
48
  { id: 'qwen3.7-plus', api: 'anthropic-messages', maxTokens: 65536 },
44
49
  { id: 'qwen3.8-flash', api: 'anthropic-messages', maxTokens: 131072 },
45
50
  { id: 'qwen3.8-max', api: 'anthropic-messages', maxTokens: 131072 },
46
- { id: 'space-bunny', api: 'openai-completions', maxTokens: 524288 },
47
- { id: 'step-5-preview-free', api: 'openai-completions', maxTokens: 65536 }
51
+ { id: 'qwen4-max', api: 'anthropic-messages', maxTokens: 262144 },
52
+ { id: 'step-5-preview', api: 'openai-completions', maxTokens: 65536 }
48
53
  ],
49
54
  'xiaomi-token-plan-cn': [
50
- { id: 'mimo-v2.5', api: 'openai-completions', maxTokens: 131072 },
51
- { id: 'mimo-v2.5-pro', api: 'openai-completions', maxTokens: 131072 },
52
55
  { id: 'mimo-v2.6-flash', api: 'openai-completions', maxTokens: 131072 },
53
56
  { id: 'mimo-v2.6-pro', api: 'openai-completions', maxTokens: 131072 }
54
57
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"builtin-catalog-snapshot.js","sourceRoot":"","sources":["../src/builtin-catalog-snapshot.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAkC7E,8CAA8C;AAC9C,MAAM,CAAC,MAAM,wBAAwB,GAA8B;IACjE,YAAY,EAAE;QACZ,EAAE,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;QACpE,EAAE,EAAE,EAAE,wBAAwB,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;QAC9E,EAAE,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;KACnE;IACD,aAAa,EAAE;QACb,EAAE,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;QACpE,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;QACxE,EAAE,EAAE,EAAE,mBAAmB,EAAE,GAAG,EAAE,oBAAoB,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