dsh-model-think-level 1.1.4 → 1.1.5

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.
@@ -13,8 +13,9 @@
13
13
  *
14
14
  * The file holds no secrets: references and labels only, which is what makes it
15
15
  * safe to keep in plain text and easy for a user to inspect or repair by hand.
16
- * Every read is defensive (a corrupted file degrades to "nothing listed") and
17
- * every write is atomic (`write` to a sibling temp file, then `rename`), so a
16
+ * Existing unreadable or malformed files fail closed, so a mutation cannot
17
+ * replace lost metadata with a fresh index. Every write is atomic (`write` to a
18
+ * sibling temp file, then `rename`), so a
18
19
  * crash mid-write cannot leave a half-parsed index behind.
19
20
  *
20
21
  * All of it is synchronous on purpose: the host is single-threaded, so a
@@ -50,7 +51,7 @@ export declare function keyIndexFilePath(home?: string): string;
50
51
  * @returns a well-formed document.
51
52
  */
52
53
  export declare function parseKeyIndex(raw: unknown): KeyIndexDocument;
53
- /** Read the index at one path, or an empty one when there is nothing to read. */
54
+ /** Read the index; only an absent file means a fresh, empty document. */
54
55
  export declare function readKeyIndex(file?: string): KeyIndexDocument;
55
56
  /** Write the index at one path, atomically. */
56
57
  export declare function writeKeyIndex(document: KeyIndexDocument, file?: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-model-think-level",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "DSH 的第三方模型补齐思考等级:在官方 Models 页每个模型行注入 Thinking 开关和强度/模态编辑器,在输入框模型菜单加供应商→模型选择器、视觉徽章与等级行,并带搜索、拖拽排序、供应商启用开关;以及按路由接管请求头与 user-agent。",
5
5
  "license": "MIT",
6
6
  "author": "GaoHu1997 <gaohu9712@163.com>",
@@ -52,13 +52,15 @@
52
52
  "lib/",
53
53
  "cordis.patch.yml",
54
54
  "README.md",
55
- "README.zh.md",
56
55
  "LICENSE",
57
56
  "assets/",
58
- "docs/*.svg",
57
+ "docs/image*.png",
59
58
  "icon.svg",
60
59
  "locale/*.json"
61
60
  ],
61
+ "publishConfig": {
62
+ "registry": "https://registry.npmjs.org/"
63
+ },
62
64
  "icon": "./icon.svg",
63
65
  "dsh": {
64
66
  "bundle": {
@@ -72,6 +74,8 @@
72
74
  "build": "npm run build:clean && npm run build:host && npm run build:client && npm run build:types",
73
75
  "build:clean": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\"",
74
76
  "check:styles": "node scripts/check-styles.mjs",
77
+ "check:package": "npm pack --dry-run --ignore-scripts --json > .tmp-pack-manifest.json && node scripts/check-package.mjs .tmp-pack-manifest.json",
78
+ "docs:models": "node scripts/generate-models-doc.mjs",
75
79
  "build:client": "npm run check:styles && node scripts/build-client.mjs",
76
80
  "test": "vitest run",
77
81
  "typecheck": "tsc --noEmit -p tsconfig.json",
@@ -83,10 +87,21 @@
83
87
  "node": "^22.19.0 || >=24"
84
88
  },
85
89
  "peerDependencies": {
90
+ "@deepseek-ai/cordis": "^4.0.3",
91
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.5-alpha.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1 || ^0.2.0-rc.1",
92
+ "@deepseek-ai/dsh-client-ui-model-selection": "^0.1.5-alpha.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1 || ^0.2.0-rc.1",
93
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.5-alpha.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1 || ^0.2.0-rc.1",
86
94
  "@deepseek-ai/dsh-api-remotes": "^0.1.5-alpha.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1 || ^0.2.0-rc.1",
87
95
  "@deepseek-ai/dsh-settings": "^0.1.5-alpha.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1 || ^0.2.0-rc.1",
88
96
  "@deepseek-ai/schemastery": "^3.18.0",
89
- "react": "^18.2.0 || ^19.0.0"
97
+ "react": "^18.2.0 || ^19.0.0",
98
+ "react-dom": "^18.2.0 || ^19.0.0"
99
+ },
100
+ "peerDependenciesMeta": {
101
+ "@deepseek-ai/cordis": { "optional": true },
102
+ "@deepseek-ai/dsh-api-session-controller": { "optional": true },
103
+ "@deepseek-ai/dsh-client-ui-model-selection": { "optional": true },
104
+ "@deepseek-ai/dsh-client-ui-slots": { "optional": true }
90
105
  },
91
106
  "devDependencies": {
92
107
  "@deepseek-ai/cordis": "4.0.3",