dsh-model-think-level 2.2.0 → 2.3.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.md +18 -6
- package/lib/client/ConfigPane.d.ts +16 -5
- package/lib/client/KeyManager.d.ts +3 -0
- package/lib/client/auto-continue-pref.d.ts +33 -0
- package/lib/client/auto-continue-rules.d.ts +96 -0
- package/lib/client/image-config-client.d.ts +16 -1
- package/lib/client/index.d.ts +1 -0
- package/lib/client/injection/auto-continue-run.d.ts +53 -0
- package/lib/client/injection/config-button-seat.d.ts +2 -2
- package/lib/client/injection/image-card.d.ts +19 -7
- package/lib/client/injection/session-directory.d.ts +44 -0
- package/lib/client/locales.d.ts +19 -0
- package/lib/client/order-sync.d.ts +15 -4
- package/lib/client/provider-enabled.d.ts +11 -0
- package/lib/client/styles.d.ts +1 -1
- package/lib/client.js +161 -8
- package/lib/client.js.map +4 -4
- package/lib/image/config.d.ts +6 -0
- package/lib/image/deadline.d.ts +13 -0
- package/lib/image/generate.d.ts +8 -5
- package/lib/image/tool.d.ts +12 -3
- package/lib/index.d.ts +6 -0
- package/lib/index.js +436 -126
- package/lib/index.js.map +4 -4
- package/lib/order-store.d.ts +22 -0
- package/package.json +5 -3
package/lib/order-store.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export declare function mergeUiOrder(current: UiOrderDocument, patch: unknown, a
|
|
|
69
69
|
export declare function readUiOrder(file?: string): UiOrderDocument;
|
|
70
70
|
/** Write the document at one path, atomically. */
|
|
71
71
|
export declare function writeUiOrder(document: UiOrderDocument, file?: string): void;
|
|
72
|
+
/** Whether two documents say the same thing, their stamps aside. */
|
|
73
|
+
export declare function sameUiOrderContent(left: UiOrderDocument, right: UiOrderDocument): boolean;
|
|
72
74
|
/**
|
|
73
75
|
* Read, fold a payload over it, and write back — the POST route's whole body.
|
|
74
76
|
* The read and the write bracket one synchronous section, so two overlapping
|
|
@@ -76,3 +78,23 @@ export declare function writeUiOrder(document: UiOrderDocument, file?: string):
|
|
|
76
78
|
* @returns the document as it now stands on disk.
|
|
77
79
|
*/
|
|
78
80
|
export declare function commitUiOrder(patch: unknown, at: number, file?: string): UiOrderDocument;
|
|
81
|
+
/**
|
|
82
|
+
* The guarded fold the route uses: a payload that is not NEWER than the stored
|
|
83
|
+
* document may not rewrite it.
|
|
84
|
+
*
|
|
85
|
+
* `savedAt` is the arbitration every machine shares, so a push that carries an
|
|
86
|
+
* older (or the same) stamp with different content is a page that never saw the
|
|
87
|
+
* newer file — a second computer, or a tab whose boot answer arrived late. Letting
|
|
88
|
+
* it write would flip the stored order and the switches back to what that page
|
|
89
|
+
* still held, which is exactly how a disabled set "un-syncs" itself. The answer
|
|
90
|
+
* tells the sender it lost, and carries the document that actually won so it can
|
|
91
|
+
* adopt it instead of retrying.
|
|
92
|
+
* @param patch - the posted payload.
|
|
93
|
+
* @param at - the stamp to use when the payload carries none.
|
|
94
|
+
* @param file - document path (tests pass a temp file).
|
|
95
|
+
* @returns the stored document, and whether the payload was refused as stale.
|
|
96
|
+
*/
|
|
97
|
+
export declare function commitUiOrderGuarded(patch: unknown, at: number, file?: string): {
|
|
98
|
+
document: UiOrderDocument;
|
|
99
|
+
stale: boolean;
|
|
100
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-model-think-level",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "DSH 的第三方模型补齐思考等级:在官方 Models 页每个模型行注入 Thinking 开关和强度/模态编辑器,在输入框模型菜单加供应商→模型选择器、视觉徽章与等级行,并带搜索、拖拽排序、供应商启用开关;以及按路由接管请求头与 user-agent。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GaoHu1997 <gaohu9712@163.com>",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@deepseek-ai/cordis": "^4.0.3",
|
|
84
|
+
"@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",
|
|
84
85
|
"@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",
|
|
85
86
|
"@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",
|
|
86
87
|
"@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",
|
|
87
|
-
"@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",
|
|
88
88
|
"@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",
|
|
89
89
|
"@deepseek-ai/schemastery": "^3.18.0",
|
|
90
90
|
"react": "^18.2.0 || ^19.0.0",
|
|
@@ -124,10 +124,12 @@
|
|
|
124
124
|
"@types/react": "^18.3.1",
|
|
125
125
|
"@types/react-dom": "^18.3.1",
|
|
126
126
|
"esbuild": "^0.28.0",
|
|
127
|
+
"immer": "^11.2.9",
|
|
127
128
|
"jsdom": "^27.0.0",
|
|
128
129
|
"react": "^18.2.0",
|
|
129
130
|
"react-dom": "^18.2.0",
|
|
130
131
|
"typescript": "^5.9.0",
|
|
131
|
-
"vitest": "^4.0.0"
|
|
132
|
+
"vitest": "^4.0.0",
|
|
133
|
+
"zustand": "^5.0.16"
|
|
132
134
|
}
|
|
133
135
|
}
|