@aiwayds/dsh-model-sync 0.7.0 → 0.9.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/LICENSE +202 -0
- package/README.md +3 -3
- package/README.zh-CN.md +1 -1
- package/lib/builtin-catalog-snapshot.d.ts +7 -1
- package/lib/builtin-catalog-snapshot.js +18 -11
- package/lib/builtin-catalog-snapshot.js.map +1 -1
- package/lib/index.d.ts +13 -6
- package/lib/index.js +23 -8
- package/lib/index.js.map +1 -1
- package/package.json +17 -17
- package/src/builtin-catalog-snapshot.ts +25 -12
- package/src/index.ts +25 -8
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
|
@@ -26,7 +26,7 @@ Model lists drift: providers ship new models, retire old ones, and adjust capabi
|
|
|
26
26
|
- **Default routes.** When `managedRoutes` is empty, these pi.dev routes are synced: `opencode-go`, `zai-coding-cn`, `minimax-cn`, `xiaomi-token-plan-cn` (`DEFAULT_ROUTES` in `src/index.ts`).
|
|
27
27
|
- **Two write modes** (`writeMode`):
|
|
28
28
|
- `settings` (default) — the zero-patch pipeline: fetch → translate → `settings.mutate`. Self-contained; never touches the settings document directly, only via the official settings API.
|
|
29
|
-
- `overlay` (legacy) — delegates to the patched `dsh-llm-pi-ai` adapter's `piAiCatalog.refresh()` and merges pi.dev entries in memory (requires the optional patch).
|
|
29
|
+
- `overlay` (legacy, **deprecated**) — delegates to the patched `dsh-llm-pi-ai` adapter's `piAiCatalog.refresh()` and merges pi.dev entries in memory (requires the optional patch). dsh 0.2.1 removed the `piAiCatalog` seam outright (pi-ai 1.3.0 ModelsStore rework), so every overlay round now degrades to a notice — use the `settings` mode.
|
|
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.
|
|
@@ -71,7 +71,7 @@ Configure the plugin under the `dsh-model-sync` settings entry — on dsh 0.1.7+
|
|
|
71
71
|
|
|
72
72
|
| Key | Default | Description |
|
|
73
73
|
|---|---|---|
|
|
74
|
-
| `writeMode` | `'settings'` | Zero-patch pipeline; `'overlay'` for the legacy patched-adapter mode |
|
|
74
|
+
| `writeMode` | `'settings'` | Zero-patch pipeline; `'overlay'` (deprecated since dsh 0.2.1) for the legacy patched-adapter mode |
|
|
75
75
|
| `intervalMinutes` | `240 (4h)` | Auto-refresh interval in minutes; `0` = startup-only |
|
|
76
76
|
| `startupDelaySeconds` | `5` | Delay before the first auto refresh, so the llm adapter is ready |
|
|
77
77
|
| `refreshTimeoutMs` | `120000` | Abort budget for one refresh round's network request (min `1000`) |
|
|
@@ -137,4 +137,4 @@ The repo also carries the reference patches that document the legacy overlay beh
|
|
|
137
137
|
|
|
138
138
|
## License
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
Apache-2.0.
|
package/README.zh-CN.md
CHANGED
|
@@ -12,7 +12,13 @@
|
|
|
12
12
|
* deepseek-v4-flash-vision-exp; DeepSeek renamed deepseek-v4-flash →
|
|
13
13
|
* deepseek-flash on its own listing. dsh 0.2.0-rc.2 removed omen-alpha
|
|
14
14
|
* on opencode-go and six zai-coding-cn ids: glm-4.7, glm-5-turbo,
|
|
15
|
-
* glm-5.1, glm-5.2, glm-5.2-highspeed, glm-5v-turbo
|
|
15
|
+
* glm-5.1, glm-5.2, glm-5.2-highspeed, glm-5v-turbo. dsh 0.2.1-rc.2
|
|
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 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
|
|
16
22
|
* retained for historical user configurations: keepBuiltinOnly emission
|
|
17
23
|
* skips deprecated ids unless keepDeprecatedBuiltin opts back in. Marks
|
|
18
24
|
* and entries survive regeneration — this script re-adds them even when
|
|
@@ -4,44 +4,51 @@ 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:
|
|
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': [
|
|
11
|
+
{ id: 'beam-free', api: 'openai-completions', maxTokens: 131072 },
|
|
12
|
+
{ id: 'claude-haiku-5-5', api: 'anthropic-messages', maxTokens: 128000 },
|
|
10
13
|
{ id: 'deepseek-v4-flash', api: 'openai-completions', maxTokens: 384000, deprecated: true },
|
|
11
14
|
{ id: 'deepseek-v4-flash-vision-exp', api: 'openai-completions', maxTokens: 384000, deprecated: true },
|
|
12
15
|
{ id: 'deepseek-v4-pro', api: 'openai-completions', maxTokens: 384000 },
|
|
13
16
|
{ id: 'deepseek-v4.1-flash', api: 'openai-completions', maxTokens: 384000 },
|
|
14
|
-
{ id: '
|
|
17
|
+
{ id: 'gemini-4-argon', api: 'google-generative-ai', maxTokens: 65536 },
|
|
18
|
+
{ id: 'glm-5.1', api: 'openai-completions', maxTokens: 32768, deprecated: true },
|
|
15
19
|
{ id: 'glm-5.2', api: 'openai-completions', maxTokens: 131072 },
|
|
16
20
|
{ id: 'glm-5.3', api: 'openai-completions', maxTokens: 131072 },
|
|
17
21
|
{ id: 'glm-5.3-flash', api: 'openai-completions', maxTokens: 131072 },
|
|
18
22
|
{ id: 'gpt-5.6-luna', api: 'openai-responses', maxTokens: 128000 },
|
|
19
|
-
{ id: '
|
|
23
|
+
{ id: 'gpt-6-luna', api: 'openai-responses', maxTokens: 128000 },
|
|
24
|
+
{ id: 'grok-4.6', api: 'openai-responses', maxTokens: 500000, deprecated: true },
|
|
20
25
|
{ id: 'grok-4.7', api: 'openai-responses', maxTokens: 500000 },
|
|
21
26
|
{ id: 'hy3', api: 'openai-completions', maxTokens: 128000 },
|
|
22
27
|
{ id: 'hy4-preview', api: 'openai-completions', maxTokens: 64000 },
|
|
23
|
-
{ id: '
|
|
28
|
+
{ id: 'iceman-contributor-free', api: 'openai-completions', maxTokens: 131072 },
|
|
29
|
+
{ id: 'kimi-k2.6', api: 'openai-completions', maxTokens: 65536, deprecated: true },
|
|
24
30
|
{ id: 'kimi-k2.7-code', api: 'openai-completions', maxTokens: 262144 },
|
|
25
31
|
{ id: 'kimi-k3', api: 'openai-completions', maxTokens: 131072 },
|
|
32
|
+
{ id: 'kimi-k3.1-pro', api: 'openai-completions', maxTokens: 131072 },
|
|
26
33
|
{ id: 'longcat-2.0', api: 'openai-completions', maxTokens: 131072 },
|
|
27
34
|
{ id: 'mimo-v2.5', api: 'openai-completions', maxTokens: 128000 },
|
|
28
35
|
{ id: 'mimo-v2.5-pro', api: 'openai-completions', maxTokens: 128000 },
|
|
29
36
|
{ id: 'mimo-v2.6-flash', api: 'openai-completions', maxTokens: 131072 },
|
|
30
37
|
{ id: 'mimo-v2.6-pro', api: 'openai-completions', maxTokens: 131072 },
|
|
31
|
-
{ id: 'minimax-m2.7', api: 'openai-completions', maxTokens: 131072 },
|
|
38
|
+
{ id: 'minimax-m2.7', api: 'openai-completions', maxTokens: 131072, deprecated: true },
|
|
32
39
|
{ id: 'minimax-m3', api: 'anthropic-messages', maxTokens: 131072 },
|
|
40
|
+
{ id: 'minimax-m3.1-flash', api: 'openai-completions', maxTokens: 512000 },
|
|
33
41
|
{ id: 'muse-spark-1.2-contributor', api: 'openai-responses', maxTokens: 131072 },
|
|
34
42
|
{ id: 'muse-spark-1.3-contributor', api: 'openai-responses', maxTokens: 131072 },
|
|
35
43
|
{ id: 'omen-alpha', api: 'openai-completions', maxTokens: 128000, deprecated: true },
|
|
36
|
-
{ id: 'qwen3.6-plus', api: 'openai-completions', maxTokens: 65536 },
|
|
37
|
-
{ id: 'qwen3.7-max', api: 'openai-completions', maxTokens: 65536 },
|
|
38
|
-
{ id: 'qwen3.7-plus', api: '
|
|
44
|
+
{ id: 'qwen3.6-plus', api: 'openai-completions', maxTokens: 65536, deprecated: true },
|
|
45
|
+
{ id: 'qwen3.7-max', api: 'openai-completions', maxTokens: 65536, deprecated: true },
|
|
46
|
+
{ id: 'qwen3.7-plus', api: 'anthropic-messages', maxTokens: 65536 },
|
|
39
47
|
{ id: 'qwen3.8-flash', api: 'anthropic-messages', maxTokens: 131072 },
|
|
40
|
-
{ id: 'qwen3.8-max', api: '
|
|
48
|
+
{ id: 'qwen3.8-max', api: 'anthropic-messages', maxTokens: 131072 },
|
|
49
|
+
{ id: 'step-5-preview', api: 'openai-completions', maxTokens: 65536 }
|
|
41
50
|
],
|
|
42
51
|
'xiaomi-token-plan-cn': [
|
|
43
|
-
{ id: 'mimo-v2.5', api: 'openai-completions', maxTokens: 131072 },
|
|
44
|
-
{ id: 'mimo-v2.5-pro', api: 'openai-completions', maxTokens: 131072 },
|
|
45
52
|
{ id: 'mimo-v2.6-flash', api: 'openai-completions', maxTokens: 131072 },
|
|
46
53
|
{ id: 'mimo-v2.6-pro', api: 'openai-completions', maxTokens: 131072 }
|
|
47
54
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-catalog-snapshot.js","sourceRoot":"","sources":["../src/builtin-catalog-snapshot.ts"],"names":[],"mappings":"AAAA,6EAA6E;
|
|
1
|
+
{"version":3,"file":"builtin-catalog-snapshot.js","sourceRoot":"","sources":["../src/builtin-catalog-snapshot.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAsC7E,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;QAClE,EAAE,EAAE,EAAE,oBAAoB,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;KAC3E;IACD,aAAa,EAAE;QACb,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;QACjE,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;QACxE,EAAE,EAAE,EAAE,mBAAmB,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE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AC/D,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;QACjF,EAAE,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;QACrF,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;QACjF,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;QACjF,EAAE,EAAE,EAAE,mBAAmB,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;QAC3F,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;QAC/D,EAAE,EAAE,EAAE,eAAe,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;QACrE,EAAE,EAAE,EAAE,mBAAmB,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE;QACzE,EAAE,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;KACvF;CACF,CAAA"}
|
package/lib/index.d.ts
CHANGED
|
@@ -6,8 +6,11 @@
|
|
|
6
6
|
* - 'settings' (default): self-contained fetch → translate → settings.mutate
|
|
7
7
|
* pipeline that writes through the host settings service (zero patch
|
|
8
8
|
* required; settings.yaml up to dsh 0.1.6, the profile patch on 0.1.7+)
|
|
9
|
-
* - 'overlay' (legacy):
|
|
10
|
-
* to overlay pi.dev entries in memory
|
|
9
|
+
* - 'overlay' (legacy, deprecated): delegates to the patched dsh-llm-pi-ai's
|
|
10
|
+
* piAiCatalog.refresh() to overlay pi.dev entries in memory. dsh 0.2.1
|
|
11
|
+
* removed the piAiCatalog seam entirely (the pi-ai 0.87.1 → 1.3.0
|
|
12
|
+
* ModelsStore rework), so this mode can never refresh there and every
|
|
13
|
+
* round degrades to a notice; use the settings mode.
|
|
11
14
|
*
|
|
12
15
|
* @module dsh-model-sync
|
|
13
16
|
*/
|
|
@@ -29,8 +32,10 @@ export declare const inject: string[];
|
|
|
29
32
|
export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
30
33
|
/**
|
|
31
34
|
* Write mode: 'settings' (default, zero-patch settings.mutate pipeline) or
|
|
32
|
-
* 'overlay'
|
|
33
|
-
*
|
|
35
|
+
* 'overlay'. DEPRECATED: 'overlay' delegates to the patched adapter's
|
|
36
|
+
* piAiCatalog.refresh, a seam dsh 0.2.1 removed outright (pi-ai 1.3.0
|
|
37
|
+
* ModelsStore rework) — every overlay round now degrades to a notice.
|
|
38
|
+
* Use the settings mode.
|
|
34
39
|
*/
|
|
35
40
|
writeMode: z<"settings" | "overlay", "settings" | "overlay", "volatile-defined">;
|
|
36
41
|
/** Minutes between auto refreshes (default 240 = 4 hours); 0 = startup-only. */
|
|
@@ -71,8 +76,10 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
|
71
76
|
}>>, Schemastery.ObjectT<NoInfer<{
|
|
72
77
|
/**
|
|
73
78
|
* Write mode: 'settings' (default, zero-patch settings.mutate pipeline) or
|
|
74
|
-
* 'overlay'
|
|
75
|
-
*
|
|
79
|
+
* 'overlay'. DEPRECATED: 'overlay' delegates to the patched adapter's
|
|
80
|
+
* piAiCatalog.refresh, a seam dsh 0.2.1 removed outright (pi-ai 1.3.0
|
|
81
|
+
* ModelsStore rework) — every overlay round now degrades to a notice.
|
|
82
|
+
* Use the settings mode.
|
|
76
83
|
*/
|
|
77
84
|
writeMode: z<"settings" | "overlay", "settings" | "overlay", "volatile-defined">;
|
|
78
85
|
/** Minutes between auto refreshes (default 240 = 4 hours); 0 = startup-only. */
|
package/lib/index.js
CHANGED
|
@@ -7,8 +7,11 @@
|
|
|
7
7
|
* - 'settings' (default): self-contained fetch → translate → settings.mutate
|
|
8
8
|
* pipeline that writes through the host settings service (zero patch
|
|
9
9
|
* required; settings.yaml up to dsh 0.1.6, the profile patch on 0.1.7+)
|
|
10
|
-
* - 'overlay' (legacy):
|
|
11
|
-
* to overlay pi.dev entries in memory
|
|
10
|
+
* - 'overlay' (legacy, deprecated): delegates to the patched dsh-llm-pi-ai's
|
|
11
|
+
* piAiCatalog.refresh() to overlay pi.dev entries in memory. dsh 0.2.1
|
|
12
|
+
* removed the piAiCatalog seam entirely (the pi-ai 0.87.1 → 1.3.0
|
|
13
|
+
* ModelsStore rework), so this mode can never refresh there and every
|
|
14
|
+
* round degrades to a notice; use the settings mode.
|
|
12
15
|
*
|
|
13
16
|
* @module dsh-model-sync
|
|
14
17
|
*/
|
|
@@ -42,8 +45,10 @@ const OWN_ENTRY_ID = 'dsh-model-sync';
|
|
|
42
45
|
export const Config = z.object({
|
|
43
46
|
/**
|
|
44
47
|
* Write mode: 'settings' (default, zero-patch settings.mutate pipeline) or
|
|
45
|
-
* 'overlay'
|
|
46
|
-
*
|
|
48
|
+
* 'overlay'. DEPRECATED: 'overlay' delegates to the patched adapter's
|
|
49
|
+
* piAiCatalog.refresh, a seam dsh 0.2.1 removed outright (pi-ai 1.3.0
|
|
50
|
+
* ModelsStore rework) — every overlay round now degrades to a notice.
|
|
51
|
+
* Use the settings mode.
|
|
47
52
|
*/
|
|
48
53
|
writeMode: z.union(['settings', 'overlay']).default('settings').volatile(),
|
|
49
54
|
/** Minutes between auto refreshes (default 240 = 4 hours); 0 = startup-only. */
|
|
@@ -116,9 +121,11 @@ export async function apply(ctx, config) {
|
|
|
116
121
|
// Degradation path (never throws): the overlay needs a hand-patched
|
|
117
122
|
// dsh-llm-pi-ai exposing piAiCatalog.refresh(). Since dsh 0.1.2-alpha.3
|
|
118
123
|
// the patch cannot even apply (it shims settingsNamespace and
|
|
119
|
-
// installSettingsSection, both removed from dsh-settings),
|
|
120
|
-
//
|
|
121
|
-
|
|
124
|
+
// installSettingsSection, both removed from dsh-settings), and dsh
|
|
125
|
+
// 0.2.1 removed the piAiCatalog seam outright (pi-ai 1.3.0 ModelsStore
|
|
126
|
+
// rework) — so every host now lands here unless it runs the settings
|
|
127
|
+
// mode, which is the supported path.
|
|
128
|
+
return 'catalog refresh is unavailable — the dsh-llm-pi-ai remote-catalog patch is not applied (deprecated: dsh 0.2.1 removed the piAiCatalog seam, pi-ai 1.3.0 ModelsStore rework); the model list is the static catalog only. Switch writeMode to the supported settings mode.';
|
|
122
129
|
}
|
|
123
130
|
let providers;
|
|
124
131
|
try {
|
|
@@ -337,6 +344,8 @@ export async function apply(ctx, config) {
|
|
|
337
344
|
// -----------------------------------------------------------------------
|
|
338
345
|
// Unified syncNow
|
|
339
346
|
// -----------------------------------------------------------------------
|
|
347
|
+
/** One-shot guard for the overlay-mode deprecation warning. */
|
|
348
|
+
let overlayDeprecationWarned = false;
|
|
340
349
|
const syncNow = async (force) => {
|
|
341
350
|
// Read the live refs up front; the volatile snapshots are fresh per call.
|
|
342
351
|
const writeMode = config.writeMode.get();
|
|
@@ -351,7 +360,13 @@ export async function apply(ctx, config) {
|
|
|
351
360
|
if (writeMode === 'settings') {
|
|
352
361
|
return syncSettings(config, force);
|
|
353
362
|
}
|
|
354
|
-
// Overlay mode (
|
|
363
|
+
// Overlay mode (legacy). dsh 0.2.1 removed the piAiCatalog seam (pi-ai
|
|
364
|
+
// 1.3.0 ModelsStore rework), so this mode can no longer refresh anywhere;
|
|
365
|
+
// warn once per process and let the round degrade with its notice.
|
|
366
|
+
if (!overlayDeprecationWarned) {
|
|
367
|
+
overlayDeprecationWarned = true;
|
|
368
|
+
ctx.logger.warn("model-sync: writeMode 'overlay' is deprecated — dsh 0.2.1 removed the piAiCatalog seam (pi-ai 1.3.0 ModelsStore rework); switch to the default 'settings' mode");
|
|
369
|
+
}
|
|
355
370
|
const llm = ctx.get('llm');
|
|
356
371
|
if (llm === undefined || llm.listProviders === undefined || llm.listModels === undefined) {
|
|
357
372
|
return 'llm service is not available yet; try again shortly.';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AAExE;;;;;;;;;;;;GAYG;AAEH,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAWxC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EACL,kBAAkB,EAClB,eAAe,GAEhB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,gBAAgB,GAKjB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,cAAc,GAIf,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AACrF,OAAO,EAAE,oBAAoB,EAA+B,MAAM,uBAAuB,CAAA;AACzF,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,GAE5B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,uBAAuB,EACvB,cAAc,GAGf,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,IAAI,GAAG,gBAAgB,CAAA;AAEpC,yEAAyE;AACzE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,UAAU,CAAC,CAAA;AAElC,6EAA6E;AAC7E,uEAAuE;AACvE,4EAA4E;AAC5E,2EAA2E;AAC3E,2EAA2E;AAC3E,MAAM,YAAY,GAAG,gBAAgB,CAAA;AAErC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7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OAAO,EAAE,EAAE;QACX,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,CAAC,MAAM,CAAa;KAC5B,CAAC,CAAC,CAAA;AACP,CAAC;AAED;;GAEG;AACH,SAAS,wBAAwB,CAC/B,IAAoC,EACpC,KAAa;IAEb,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,SAAS,CAAA;IACxC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,EAAE,SAAgD,CAAA;IAC7E,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,SAAS,CAAA;IAC7C,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAwC,CAAA;IACzE,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,SAAS,CAAA;IAC7C,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAA;IAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QAAE,OAAO,SAAS,CAAA;IAC5C,OAAO,MAAgC,CAAA;AACzC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiwayds/dsh-model-sync",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "dsh plugin: keep llm-pi-ai provider routes' model lists in step with the pi.dev gateway, written through the official settings seam",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
8
|
"icon": "./icon.svg",
|
|
9
|
-
"license": "
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"dsh",
|
|
12
12
|
"dsh-plugin",
|
|
@@ -68,20 +68,20 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/node": "^24.0.0",
|
|
71
|
-
"@deepseek-ai/cordis": "4.0
|
|
72
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
73
|
-
"@deepseek-ai/dsh-attachment": "0.2.
|
|
74
|
-
"@deepseek-ai/dsh-brand": "0.2.
|
|
75
|
-
"@deepseek-ai/dsh-commands": "0.2.
|
|
76
|
-
"@deepseek-ai/dsh-credentials": "0.2.
|
|
71
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
72
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-brand": "0.2.2-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
|
|
77
77
|
"@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
|
|
78
|
-
"@deepseek-ai/dsh-launch-environment": "0.2.
|
|
79
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
80
|
-
"@deepseek-ai/dsh-scope": "0.2.
|
|
81
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
82
|
-
"@deepseek-ai/dsh-settings": "0.2.
|
|
83
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.
|
|
84
|
-
"@deepseek-ai/schemastery": "3.
|
|
78
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.2-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
80
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.1",
|
|
84
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
85
85
|
"typescript": "^5.9.0"
|
|
86
86
|
},
|
|
87
87
|
"dsh": {
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
},
|
|
96
96
|
"pnpm": {
|
|
97
97
|
"overrides": {
|
|
98
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.
|
|
99
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
98
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1"
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -14,7 +14,13 @@
|
|
|
14
14
|
* deepseek-v4-flash-vision-exp; DeepSeek renamed deepseek-v4-flash →
|
|
15
15
|
* deepseek-flash on its own listing. dsh 0.2.0-rc.2 removed omen-alpha
|
|
16
16
|
* on opencode-go and six zai-coding-cn ids: glm-4.7, glm-5-turbo,
|
|
17
|
-
* glm-5.1, glm-5.2, glm-5.2-highspeed, glm-5v-turbo
|
|
17
|
+
* glm-5.1, glm-5.2, glm-5.2-highspeed, glm-5v-turbo. dsh 0.2.1-rc.2
|
|
18
|
+
* (pi-ai 1.3.0) removed six more opencode-go ids: glm-5.1, grok-4.6,
|
|
19
|
+
* kimi-k2.6, minimax-m2.7, qwen3.6-plus, qwen3.7-max. The 2026-10
|
|
20
|
+
* catalog refresh dropped mimo-v2.5/mimo-v2.5-pro on xiaomi-token-plan-cn,
|
|
21
|
+
* replaced the opencode-go free ids cat-jam-free/space-bunny/
|
|
22
|
+
* step-5-preview-free with beam-free/minimax-m3.1-flash-free/step-5-preview,
|
|
23
|
+
* and added MiniMax-M3.1-Flash on minimax-cn). The data is
|
|
18
24
|
* retained for historical user configurations: keepBuiltinOnly emission
|
|
19
25
|
* skips deprecated ids unless keepDeprecatedBuiltin opts back in. Marks
|
|
20
26
|
* and entries survive regeneration — this script re-adds them even when
|
|
@@ -35,44 +41,51 @@ export const BUILTIN_CATALOG_SNAPSHOT: BuiltinCatalogSnapshotMap = {
|
|
|
35
41
|
'minimax-cn': [
|
|
36
42
|
{ id: 'MiniMax-M2.7', api: 'anthropic-messages', maxTokens: 131072 },
|
|
37
43
|
{ id: 'MiniMax-M2.7-highspeed', api: 'anthropic-messages', maxTokens: 131072 },
|
|
38
|
-
{ id: 'MiniMax-M3', api: 'anthropic-messages', maxTokens:
|
|
44
|
+
{ id: 'MiniMax-M3', api: 'anthropic-messages', maxTokens: 524288 },
|
|
45
|
+
{ id: 'MiniMax-M3.1-Flash', api: 'anthropic-messages', maxTokens: 524288 }
|
|
39
46
|
],
|
|
40
47
|
'opencode-go': [
|
|
48
|
+
{ id: 'beam-free', api: 'openai-completions', maxTokens: 131072 },
|
|
49
|
+
{ id: 'claude-haiku-5-5', api: 'anthropic-messages', maxTokens: 128000 },
|
|
41
50
|
{ id: 'deepseek-v4-flash', api: 'openai-completions', maxTokens: 384000, deprecated: true },
|
|
42
51
|
{ id: 'deepseek-v4-flash-vision-exp', api: 'openai-completions', maxTokens: 384000, deprecated: true },
|
|
43
52
|
{ id: 'deepseek-v4-pro', api: 'openai-completions', maxTokens: 384000 },
|
|
44
53
|
{ id: 'deepseek-v4.1-flash', api: 'openai-completions', maxTokens: 384000 },
|
|
45
|
-
{ id: '
|
|
54
|
+
{ id: 'gemini-4-argon', api: 'google-generative-ai', maxTokens: 65536 },
|
|
55
|
+
{ id: 'glm-5.1', api: 'openai-completions', maxTokens: 32768, deprecated: true },
|
|
46
56
|
{ id: 'glm-5.2', api: 'openai-completions', maxTokens: 131072 },
|
|
47
57
|
{ id: 'glm-5.3', api: 'openai-completions', maxTokens: 131072 },
|
|
48
58
|
{ id: 'glm-5.3-flash', api: 'openai-completions', maxTokens: 131072 },
|
|
49
59
|
{ id: 'gpt-5.6-luna', api: 'openai-responses', maxTokens: 128000 },
|
|
50
|
-
{ id: '
|
|
60
|
+
{ id: 'gpt-6-luna', api: 'openai-responses', maxTokens: 128000 },
|
|
61
|
+
{ id: 'grok-4.6', api: 'openai-responses', maxTokens: 500000, deprecated: true },
|
|
51
62
|
{ id: 'grok-4.7', api: 'openai-responses', maxTokens: 500000 },
|
|
52
63
|
{ id: 'hy3', api: 'openai-completions', maxTokens: 128000 },
|
|
53
64
|
{ id: 'hy4-preview', api: 'openai-completions', maxTokens: 64000 },
|
|
54
|
-
{ id: '
|
|
65
|
+
{ id: 'iceman-contributor-free', api: 'openai-completions', maxTokens: 131072 },
|
|
66
|
+
{ id: 'kimi-k2.6', api: 'openai-completions', maxTokens: 65536, deprecated: true },
|
|
55
67
|
{ id: 'kimi-k2.7-code', api: 'openai-completions', maxTokens: 262144 },
|
|
56
68
|
{ id: 'kimi-k3', api: 'openai-completions', maxTokens: 131072 },
|
|
69
|
+
{ id: 'kimi-k3.1-pro', api: 'openai-completions', maxTokens: 131072 },
|
|
57
70
|
{ id: 'longcat-2.0', api: 'openai-completions', maxTokens: 131072 },
|
|
58
71
|
{ id: 'mimo-v2.5', api: 'openai-completions', maxTokens: 128000 },
|
|
59
72
|
{ id: 'mimo-v2.5-pro', api: 'openai-completions', maxTokens: 128000 },
|
|
60
73
|
{ id: 'mimo-v2.6-flash', api: 'openai-completions', maxTokens: 131072 },
|
|
61
74
|
{ id: 'mimo-v2.6-pro', api: 'openai-completions', maxTokens: 131072 },
|
|
62
|
-
{ id: 'minimax-m2.7', api: 'openai-completions', maxTokens: 131072 },
|
|
75
|
+
{ id: 'minimax-m2.7', api: 'openai-completions', maxTokens: 131072, deprecated: true },
|
|
63
76
|
{ id: 'minimax-m3', api: 'anthropic-messages', maxTokens: 131072 },
|
|
77
|
+
{ id: 'minimax-m3.1-flash', api: 'openai-completions', maxTokens: 512000 },
|
|
64
78
|
{ id: 'muse-spark-1.2-contributor', api: 'openai-responses', maxTokens: 131072 },
|
|
65
79
|
{ id: 'muse-spark-1.3-contributor', api: 'openai-responses', maxTokens: 131072 },
|
|
66
80
|
{ id: 'omen-alpha', api: 'openai-completions', maxTokens: 128000, deprecated: true },
|
|
67
|
-
{ id: 'qwen3.6-plus', api: 'openai-completions', maxTokens: 65536 },
|
|
68
|
-
{ id: 'qwen3.7-max', api: 'openai-completions', maxTokens: 65536 },
|
|
69
|
-
{ id: 'qwen3.7-plus', api: '
|
|
81
|
+
{ id: 'qwen3.6-plus', api: 'openai-completions', maxTokens: 65536, deprecated: true },
|
|
82
|
+
{ id: 'qwen3.7-max', api: 'openai-completions', maxTokens: 65536, deprecated: true },
|
|
83
|
+
{ id: 'qwen3.7-plus', api: 'anthropic-messages', maxTokens: 65536 },
|
|
70
84
|
{ id: 'qwen3.8-flash', api: 'anthropic-messages', maxTokens: 131072 },
|
|
71
|
-
{ id: 'qwen3.8-max', api: '
|
|
85
|
+
{ id: 'qwen3.8-max', api: 'anthropic-messages', maxTokens: 131072 },
|
|
86
|
+
{ id: 'step-5-preview', api: 'openai-completions', maxTokens: 65536 }
|
|
72
87
|
],
|
|
73
88
|
'xiaomi-token-plan-cn': [
|
|
74
|
-
{ id: 'mimo-v2.5', api: 'openai-completions', maxTokens: 131072 },
|
|
75
|
-
{ id: 'mimo-v2.5-pro', api: 'openai-completions', maxTokens: 131072 },
|
|
76
89
|
{ id: 'mimo-v2.6-flash', api: 'openai-completions', maxTokens: 131072 },
|
|
77
90
|
{ id: 'mimo-v2.6-pro', api: 'openai-completions', maxTokens: 131072 }
|
|
78
91
|
],
|
package/src/index.ts
CHANGED
|
@@ -8,8 +8,11 @@
|
|
|
8
8
|
* - 'settings' (default): self-contained fetch → translate → settings.mutate
|
|
9
9
|
* pipeline that writes through the host settings service (zero patch
|
|
10
10
|
* required; settings.yaml up to dsh 0.1.6, the profile patch on 0.1.7+)
|
|
11
|
-
* - 'overlay' (legacy):
|
|
12
|
-
* to overlay pi.dev entries in memory
|
|
11
|
+
* - 'overlay' (legacy, deprecated): delegates to the patched dsh-llm-pi-ai's
|
|
12
|
+
* piAiCatalog.refresh() to overlay pi.dev entries in memory. dsh 0.2.1
|
|
13
|
+
* removed the piAiCatalog seam entirely (the pi-ai 0.87.1 → 1.3.0
|
|
14
|
+
* ModelsStore rework), so this mode can never refresh there and every
|
|
15
|
+
* round degrades to a notice; use the settings mode.
|
|
13
16
|
*
|
|
14
17
|
* @module dsh-model-sync
|
|
15
18
|
*/
|
|
@@ -84,8 +87,10 @@ const OWN_ENTRY_ID = 'dsh-model-sync'
|
|
|
84
87
|
export const Config = z.object({
|
|
85
88
|
/**
|
|
86
89
|
* Write mode: 'settings' (default, zero-patch settings.mutate pipeline) or
|
|
87
|
-
* 'overlay'
|
|
88
|
-
*
|
|
90
|
+
* 'overlay'. DEPRECATED: 'overlay' delegates to the patched adapter's
|
|
91
|
+
* piAiCatalog.refresh, a seam dsh 0.2.1 removed outright (pi-ai 1.3.0
|
|
92
|
+
* ModelsStore rework) — every overlay round now degrades to a notice.
|
|
93
|
+
* Use the settings mode.
|
|
89
94
|
*/
|
|
90
95
|
writeMode: z.union(['settings', 'overlay']).default('settings').volatile(),
|
|
91
96
|
/** Minutes between auto refreshes (default 240 = 4 hours); 0 = startup-only. */
|
|
@@ -208,9 +213,11 @@ export async function apply(ctx: Context, config: ModelSyncConfigValue): Promise
|
|
|
208
213
|
// Degradation path (never throws): the overlay needs a hand-patched
|
|
209
214
|
// dsh-llm-pi-ai exposing piAiCatalog.refresh(). Since dsh 0.1.2-alpha.3
|
|
210
215
|
// the patch cannot even apply (it shims settingsNamespace and
|
|
211
|
-
// installSettingsSection, both removed from dsh-settings),
|
|
212
|
-
//
|
|
213
|
-
|
|
216
|
+
// installSettingsSection, both removed from dsh-settings), and dsh
|
|
217
|
+
// 0.2.1 removed the piAiCatalog seam outright (pi-ai 1.3.0 ModelsStore
|
|
218
|
+
// rework) — so every host now lands here unless it runs the settings
|
|
219
|
+
// mode, which is the supported path.
|
|
220
|
+
return 'catalog refresh is unavailable — the dsh-llm-pi-ai remote-catalog patch is not applied (deprecated: dsh 0.2.1 removed the piAiCatalog seam, pi-ai 1.3.0 ModelsStore rework); the model list is the static catalog only. Switch writeMode to the supported settings mode.'
|
|
214
221
|
}
|
|
215
222
|
let providers: readonly { id: string }[]
|
|
216
223
|
try {
|
|
@@ -461,6 +468,8 @@ export async function apply(ctx: Context, config: ModelSyncConfigValue): Promise
|
|
|
461
468
|
// -----------------------------------------------------------------------
|
|
462
469
|
// Unified syncNow
|
|
463
470
|
// -----------------------------------------------------------------------
|
|
471
|
+
/** One-shot guard for the overlay-mode deprecation warning. */
|
|
472
|
+
let overlayDeprecationWarned = false
|
|
464
473
|
const syncNow = async (force: boolean): Promise<string> => {
|
|
465
474
|
// Read the live refs up front; the volatile snapshots are fresh per call.
|
|
466
475
|
const writeMode = config.writeMode.get()
|
|
@@ -478,7 +487,15 @@ export async function apply(ctx: Context, config: ModelSyncConfigValue): Promise
|
|
|
478
487
|
return syncSettings(config, force)
|
|
479
488
|
}
|
|
480
489
|
|
|
481
|
-
// Overlay mode (
|
|
490
|
+
// Overlay mode (legacy). dsh 0.2.1 removed the piAiCatalog seam (pi-ai
|
|
491
|
+
// 1.3.0 ModelsStore rework), so this mode can no longer refresh anywhere;
|
|
492
|
+
// warn once per process and let the round degrade with its notice.
|
|
493
|
+
if (!overlayDeprecationWarned) {
|
|
494
|
+
overlayDeprecationWarned = true
|
|
495
|
+
ctx.logger.warn(
|
|
496
|
+
"model-sync: writeMode 'overlay' is deprecated — dsh 0.2.1 removed the piAiCatalog seam (pi-ai 1.3.0 ModelsStore rework); switch to the default 'settings' mode",
|
|
497
|
+
)
|
|
498
|
+
}
|
|
482
499
|
const llm = ctx.get('llm') as LlmSeam | undefined
|
|
483
500
|
if (llm === undefined || llm.listProviders === undefined || llm.listModels === undefined) {
|
|
484
501
|
return 'llm service is not available yet; try again shortly.'
|