@aiwayds/dsh-model-sync 0.5.0 → 0.6.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 +13 -10
- package/README.zh-CN.md +14 -9
- package/cordis.patch.yml +5 -4
- package/icon.svg +6 -0
- package/lib/builtin-catalog-snapshot.d.ts +9 -0
- package/lib/builtin-catalog-snapshot.js +2 -2
- package/lib/builtin-catalog-snapshot.js.map +1 -1
- package/lib/index.d.ts +149 -1
- package/lib/index.js +120 -42
- package/lib/index.js.map +1 -1
- package/lib/provider-native.d.ts +124 -0
- package/lib/provider-native.js +202 -0
- package/lib/provider-native.js.map +1 -0
- package/lib/route-credential.d.ts +2 -1
- package/lib/route-credential.js.map +1 -1
- package/lib/translate.d.ts +8 -0
- package/lib/translate.js.map +1 -1
- package/lib/writer.d.ts +2 -1
- package/lib/writer.js.map +1 -1
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +26 -23
- package/src/builtin-catalog-snapshot.ts +11 -2
- package/src/index.ts +165 -54
- package/src/provider-native.ts +293 -0
- package/src/route-credential.ts +2 -1
- package/src/translate.ts +8 -0
- package/src/writer.ts +2 -1
package/src/translate.ts
CHANGED
|
@@ -108,6 +108,14 @@ export interface BuiltinModelData {
|
|
|
108
108
|
id: string
|
|
109
109
|
api: string
|
|
110
110
|
maxTokens?: number
|
|
111
|
+
/**
|
|
112
|
+
* The id left the official default model list (dsh 0.1.7 removed
|
|
113
|
+
* deepseek-v4-flash / deepseek-v4-flash-vision-exp) but the data is kept
|
|
114
|
+
* for historical user configurations. Deprecated entries still serve
|
|
115
|
+
* base-matching classification, but the keepBuiltinOnly emission skips
|
|
116
|
+
* them unless explicitly opted back in (see index.ts getBuiltinOnlyEntries).
|
|
117
|
+
*/
|
|
118
|
+
deprecated?: boolean
|
|
111
119
|
}
|
|
112
120
|
|
|
113
121
|
// ---------------------------------------------------------------------------
|
package/src/writer.ts
CHANGED
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
* stored ones (a re-added key is the user's latest intent).
|
|
32
32
|
* - Revision conflict retry: catch SETTINGS_CONFLICT, re-read, re-translate,
|
|
33
33
|
* re-write once
|
|
34
|
-
* - Never touches
|
|
34
|
+
* - Never touches the settings document directly (settings.yaml up to
|
|
35
|
+
* dsh 0.1.6, the profile patch on 0.1.7+) — only through settings.mutate
|
|
35
36
|
* - Store read failure: when the models-store read fails (corrupt JSON,
|
|
36
37
|
* EACCES, …) AND settings carries no overrides key, skip the round with
|
|
37
38
|
* reason 'store-unavailable' and leave settings.models untouched — the
|