dsh-thinking-levels 4.4.16 → 4.4.18
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/CHANGELOG.de.md +1 -0
- package/CHANGELOG.es.md +1 -0
- package/CHANGELOG.fr.md +1 -0
- package/CHANGELOG.it.md +1 -0
- package/CHANGELOG.ja.md +1 -0
- package/CHANGELOG.ko.md +1 -0
- package/CHANGELOG.md +16 -5
- package/CHANGELOG.pt.md +331 -0
- package/CHANGELOG.ru.md +1 -0
- package/INSTALL.de.md +3 -0
- package/INSTALL.es.md +3 -0
- package/INSTALL.fr.md +3 -0
- package/INSTALL.it.md +3 -0
- package/INSTALL.ja.md +3 -0
- package/INSTALL.ko.md +3 -0
- package/INSTALL.md +3 -0
- package/INSTALL.pt.md +178 -0
- package/INSTALL.ru.md +3 -0
- package/INSTALL.zh.md +3 -0
- package/README.de.md +3 -0
- package/README.es.md +3 -0
- package/README.fr.md +3 -0
- package/README.it.md +3 -0
- package/README.ja.md +3 -0
- package/README.ko.md +3 -0
- package/README.md +3 -0
- package/README.pt.md +232 -0
- package/README.ru.md +3 -0
- package/README.zh.md +3 -0
- package/dsh.plugin.json +1 -1
- package/lib/client.js +107 -2
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +28 -10
- package/lib/index.js +122 -12
- package/locale/pt.json +6 -0
- package/package.json +155 -152
package/lib/index.d.ts
CHANGED
|
@@ -218,16 +218,34 @@ declare module '@deepseek-ai/cordis' {
|
|
|
218
218
|
export declare function readVolatile<T>(value: T | Volatile<T> | undefined, fallback: T): T;
|
|
219
219
|
/** Minimal face of the llm service's adapter registrations (typed locally to avoid a host-package value import). */
|
|
220
220
|
interface LlmRegistration {
|
|
221
|
-
adapter:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
221
|
+
adapter: AdapterLike;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* The adapter members the host actually calls (`@deepseek-ai/dsh-llm`:
|
|
225
|
+
* `providerInfo` / `providerRetryPolicy` / `imageRequestPricing` /
|
|
226
|
+
* `imageRequestTarget` / `listModels` / `resolveModel` / `prepareCall` /
|
|
227
|
+
* `stream`, per the `LlmAdapter` declaration in dsh-tool-cordis' API catalog).
|
|
228
|
+
*
|
|
229
|
+
* The facade must forward ALL of them: dropping one silently breaks that
|
|
230
|
+
* provider's feature (e.g. a missing `imageRequestTarget` fails image
|
|
231
|
+
* requests). `resolveModel` is the only member we rewrite.
|
|
232
|
+
*/
|
|
233
|
+
interface AdapterLike {
|
|
234
|
+
providerInfo?: (provider: string) => unknown;
|
|
235
|
+
providerRetryPolicy?: (provider: string) => unknown;
|
|
236
|
+
imageRequestPricing?: (provider: string, model: string) => unknown;
|
|
237
|
+
imageRequestTarget?: (provider: string, model: string, image: unknown) => unknown;
|
|
238
|
+
listModels?: (provider: string) => Promise<readonly unknown[]>;
|
|
239
|
+
resolveModel: (provider: string, model: string, signal?: unknown) => Promise<{
|
|
240
|
+
reasoning?: {
|
|
241
|
+
efforts?: {
|
|
242
|
+
id: string;
|
|
243
|
+
name: string;
|
|
244
|
+
}[];
|
|
245
|
+
};
|
|
246
|
+
}>;
|
|
247
|
+
prepareCall?: (provider: string, model: string, signal?: unknown) => Promise<unknown>;
|
|
248
|
+
stream?: (options: unknown) => unknown;
|
|
231
249
|
}
|
|
232
250
|
/**
|
|
233
251
|
* Advertise `auto` (and, for configurer-confirmed rc.6-era models, `low`) in
|
package/lib/index.js
CHANGED
|
@@ -116,14 +116,91 @@ const AUTO_EFFORT = { id: 'auto', name: 'Auto' };
|
|
|
116
116
|
*/
|
|
117
117
|
const LOW_EFFORT = { id: 'low', name: 'Low' };
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Marks a TL-built facade, so a re-run of the advertisement can tell "this
|
|
120
|
+
* registration already carries my facade" from "this is a third party's
|
|
121
|
+
* wrapper". Not enumerable: it must never leak into a `for...in` /
|
|
122
|
+
* `Object.keys` sweep a host or plugin performs on the adapter.
|
|
123
|
+
*/
|
|
124
|
+
const TL_FACADE = Symbol('dsh-thinking-levels/adapter-facade');
|
|
125
|
+
/** Every member name the facade must forward; `resolveModel` is handled separately. */
|
|
126
|
+
const FORWARDED_ADAPTER_MEMBERS = [
|
|
127
|
+
'providerInfo',
|
|
128
|
+
'providerRetryPolicy',
|
|
129
|
+
'imageRequestPricing',
|
|
130
|
+
'imageRequestTarget',
|
|
131
|
+
'listModels',
|
|
132
|
+
'prepareCall',
|
|
133
|
+
'stream',
|
|
134
|
+
];
|
|
135
|
+
/** Facade per inner adapter: one identity per adapter, however many providers it serves. */
|
|
136
|
+
const facades = new WeakMap();
|
|
137
|
+
/**
|
|
138
|
+
* Adapters whose `resolveModel` is already advertised — the per-adapter
|
|
120
139
|
* idempotence issue #4 proves was missing: re-running the advertisement on
|
|
121
140
|
* every `llm/adapters-updated` stacked a new wrapper per pass, and every
|
|
122
141
|
* stacked layer re-ran the post-processing on each resolveModel call.
|
|
123
|
-
*
|
|
124
|
-
*
|
|
142
|
+
*
|
|
143
|
+
* Keyed on the **inner** adapter (the one a third party registered), not on
|
|
144
|
+
* the facade we put into the registry — see {@link advertiseModelCapability}.
|
|
125
145
|
*/
|
|
126
146
|
const advertisedAdapters = new WeakSet();
|
|
147
|
+
/**
|
|
148
|
+
* Build a forwarding facade over `inner` that rewrites `resolveModel`'s
|
|
149
|
+
* result. Issue #10 (and its sibling #9) is why this exists at all.
|
|
150
|
+
*
|
|
151
|
+
* ## Why a facade instead of assigning onto `adapter.resolveModel`
|
|
152
|
+
*
|
|
153
|
+
* The old implementation did `adapter.resolveModel = wrapper`, which is an
|
|
154
|
+
* in-place mutation of an object a THIRD PARTY owns. Two real plugins turn
|
|
155
|
+
* that into a failure:
|
|
156
|
+
*
|
|
157
|
+
* - `dsh-providers-hub` wraps the adapter in a Proxy whose `get` trap returns
|
|
158
|
+
* a CACHED `resolveModel` wrapper that nevertheless re-reads
|
|
159
|
+
* `target.resolveModel` on every call, and which has **no `set` trap**. Our
|
|
160
|
+
* assignment wrote through to the bare adapter, so the hub wrapper called
|
|
161
|
+
* back into ours, which called the hub wrapper it had captured: unbounded
|
|
162
|
+
* mutual recursion (`RangeError: Maximum call stack size exceeded`, issue
|
|
163
|
+
* #10).
|
|
164
|
+
* - `dsh-vision-router` wraps the adapter in a read-only Proxy whose
|
|
165
|
+
* `getOwnPropertyDescriptor` reports `writable: false`, so the assignment
|
|
166
|
+
* throws `TypeError: Cannot redefine property: resolveModel` (issue #9).
|
|
167
|
+
*
|
|
168
|
+
* A facade writes nothing to the third party's object, so neither shape can
|
|
169
|
+
* fire. We instead replace the **registry entry** — and the host reads
|
|
170
|
+
* `adapters.get(provider)` fresh on every call (`dsh-llm` has no cached
|
|
171
|
+
* adapter reference across calls), so the swap is transparent to it.
|
|
172
|
+
*
|
|
173
|
+
* ## Why a plain object and not a Proxy
|
|
174
|
+
*
|
|
175
|
+
* The Proxy behaviours above are exactly the trap semantics we want to stay
|
|
176
|
+
* away from. A plain object also keeps `this` honest: every forwarded member
|
|
177
|
+
* is bound to `inner`, never to the facade (a facade-bound `this` would make
|
|
178
|
+
* an adapter's internal `this.stream` call loop back through the facade).
|
|
179
|
+
* @param inner - the adapter a third party registered; never mutated.
|
|
180
|
+
* @param postProcess - the capability advertisement applied to each result.
|
|
181
|
+
* @returns the facade to place in the registry entry.
|
|
182
|
+
*/
|
|
183
|
+
function adapterFacade(inner, postProcess) {
|
|
184
|
+
const facade = {
|
|
185
|
+
// Rewritten: resolve through the inner adapter, then advertise on the result.
|
|
186
|
+
async resolveModel(provider, model, signal) {
|
|
187
|
+
const info = await inner.resolveModel.call(inner, provider, model, signal);
|
|
188
|
+
return postProcess(info, provider, model);
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
// Forwarded: `this` MUST be `inner`, and the function identity must be stable
|
|
192
|
+
// (downstream code caches by function identity).
|
|
193
|
+
const forwarded = facade;
|
|
194
|
+
const source = inner;
|
|
195
|
+
for (const member of FORWARDED_ADAPTER_MEMBERS) {
|
|
196
|
+
const value = source[member];
|
|
197
|
+
if (typeof value !== 'function')
|
|
198
|
+
continue;
|
|
199
|
+
forwarded[member] = value.bind(inner);
|
|
200
|
+
}
|
|
201
|
+
Object.defineProperty(facade, TL_FACADE, { value: true, enumerable: false });
|
|
202
|
+
return facade;
|
|
203
|
+
}
|
|
127
204
|
/**
|
|
128
205
|
* Advertise `auto` (and, for configurer-confirmed rc.6-era models, `low`) in
|
|
129
206
|
* the model directory: wrap every registered adapter's `resolveModel` so the
|
|
@@ -145,18 +222,36 @@ const advertisedAdapters = new WeakSet();
|
|
|
145
222
|
* `installLegacySection`)
|
|
146
223
|
*/
|
|
147
224
|
export function advertiseModelCapability(llm, overrideFor, piAiFor) {
|
|
148
|
-
|
|
149
|
-
|
|
225
|
+
const adapters = llm?.adapters;
|
|
226
|
+
if (adapters === undefined)
|
|
227
|
+
return;
|
|
228
|
+
// Snapshot the entries first: the loop REPLACES map entries, and a live
|
|
229
|
+
// iterator would then visit the replacements.
|
|
230
|
+
for (const [route, registration] of [...adapters]) {
|
|
231
|
+
const inner = registration.adapter;
|
|
232
|
+
// A registration already carrying our facade needs nothing (this is what a
|
|
233
|
+
// re-run sees). Checked before the WeakSet because the WeakSet is keyed on
|
|
234
|
+
// the INNER adapter, which the registry entry no longer points at.
|
|
235
|
+
if (inner[TL_FACADE] === true)
|
|
236
|
+
continue;
|
|
150
237
|
// Issue #4: the re-run on every `llm/adapters-updated` must NOT stack
|
|
151
238
|
// wrappers — each stacked layer re-ran the post-processing (and a full
|
|
152
|
-
// describeSettings) on every resolveModel call.
|
|
153
|
-
//
|
|
154
|
-
|
|
239
|
+
// describeSettings) on every resolveModel call. Keyed on the inner adapter
|
|
240
|
+
// so a third party's re-registration of the same instance is still
|
|
241
|
+
// recognised, while our own facade is not mistaken for a fresh adapter.
|
|
242
|
+
//
|
|
243
|
+
// NOTE: a cached facade must still be INSTALLED on this route — one adapter
|
|
244
|
+
// commonly serves several providers, and the first route's pass would
|
|
245
|
+
// otherwise leave the others pointing at the bare adapter (no `auto`).
|
|
246
|
+
const cachedFacade = facades.get(inner);
|
|
247
|
+
if (cachedFacade !== undefined) {
|
|
248
|
+
adapters.set(route, { ...registration, adapter: cachedFacade });
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
if (advertisedAdapters.has(inner))
|
|
155
252
|
continue;
|
|
156
|
-
advertisedAdapters.add(
|
|
157
|
-
const
|
|
158
|
-
adapter.resolveModel = async (provider, model, signal) => {
|
|
159
|
-
const info = await original(provider, model, signal);
|
|
253
|
+
advertisedAdapters.add(inner);
|
|
254
|
+
const postProcess = (info, provider, model) => {
|
|
160
255
|
const reasoning = info.reasoning;
|
|
161
256
|
if (reasoning === undefined)
|
|
162
257
|
return info;
|
|
@@ -191,6 +286,21 @@ export function advertiseModelCapability(llm, overrideFor, piAiFor) {
|
|
|
191
286
|
info.reasoning = { ...reasoning, efforts };
|
|
192
287
|
return info;
|
|
193
288
|
};
|
|
289
|
+
// Issue #10 / #9: replace the REGISTRY ENTRY rather than mutating the
|
|
290
|
+
// adapter a third party owns. See `adapterFacade` for why an in-place
|
|
291
|
+
// `adapter.resolveModel = ...` deadlocks against hub's write-through Proxy
|
|
292
|
+
// and throws against vision-router's read-only one.
|
|
293
|
+
//
|
|
294
|
+
// One facade per INNER adapter, shared across every route it serves: the
|
|
295
|
+
// host compares `adapters.get(provider).adapter` by identity to decide
|
|
296
|
+
// whether a message's replay state survives (`dsh-llm`'s `forAdapter`), so
|
|
297
|
+
// per-route facades would make the same adapter look like two different
|
|
298
|
+
// ones. The provider is passed per call, so one facade serves them all.
|
|
299
|
+
const existing = facades.get(inner);
|
|
300
|
+
const facade = existing ?? adapterFacade(inner, postProcess);
|
|
301
|
+
if (existing === undefined)
|
|
302
|
+
facades.set(inner, facade);
|
|
303
|
+
adapters.set(route, { ...registration, adapter: facade });
|
|
194
304
|
}
|
|
195
305
|
}
|
|
196
306
|
/**
|
package/locale/pt.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Níveis de raciocínio",
|
|
4
|
+
"description": "Escolha Auto no seletor de modelo: o plugin programa low / high / max conforme o histórico de chamadas de ferramentas antes de enviar o effort à API. Aqui você configura o nível padrão, os limites do agendador e as capacidades por modelo (nível → valor wire enviado ao gateway)."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,152 +1,155 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-thinking-levels",
|
|
3
|
-
"version": "4.4.
|
|
4
|
-
"publishConfig": {
|
|
5
|
-
"registry": "https://registry.npmjs.org",
|
|
6
|
-
"access": "public",
|
|
7
|
-
"tag": "latest"
|
|
8
|
-
},
|
|
9
|
-
"description": "DSH host plugin: thinking-level (reasoning_effort) control for dsh — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/drscrewdriver/dsh-thinking-levels.git"
|
|
13
|
-
},
|
|
14
|
-
"type": "module",
|
|
15
|
-
"files": [
|
|
16
|
-
"lib",
|
|
17
|
-
"cordis.patch.yml",
|
|
18
|
-
"dsh.plugin.json",
|
|
19
|
-
"README.md",
|
|
20
|
-
"README.zh.md",
|
|
21
|
-
"README.ja.md",
|
|
22
|
-
"README.ko.md",
|
|
23
|
-
"README.fr.md",
|
|
24
|
-
"README.de.md",
|
|
25
|
-
"README.it.md",
|
|
26
|
-
"README.ru.md",
|
|
27
|
-
"README.es.md",
|
|
28
|
-
"
|
|
29
|
-
"INSTALL.
|
|
30
|
-
"INSTALL.
|
|
31
|
-
"INSTALL.
|
|
32
|
-
"INSTALL.
|
|
33
|
-
"INSTALL.
|
|
34
|
-
"INSTALL.
|
|
35
|
-
"INSTALL.
|
|
36
|
-
"INSTALL.
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"CHANGELOG.
|
|
40
|
-
"CHANGELOG.
|
|
41
|
-
"CHANGELOG.
|
|
42
|
-
"CHANGELOG.
|
|
43
|
-
"CHANGELOG.
|
|
44
|
-
"CHANGELOG.
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"default": "./lib/
|
|
60
|
-
},
|
|
61
|
-
"./
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"@deepseek-ai/
|
|
73
|
-
"@deepseek-ai/dsh-
|
|
74
|
-
"@deepseek-ai/dsh-
|
|
75
|
-
"@deepseek-ai/dsh-client-
|
|
76
|
-
"@deepseek-ai/dsh-client-ui-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"@deepseek-ai/dsh-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"@deepseek-ai/dsh-api-
|
|
83
|
-
"optional": true
|
|
84
|
-
},
|
|
85
|
-
"@deepseek-ai/dsh-
|
|
86
|
-
"optional": true
|
|
87
|
-
},
|
|
88
|
-
"@deepseek-ai/dsh-client-
|
|
89
|
-
"optional": true
|
|
90
|
-
},
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-
|
|
92
|
-
"optional": true
|
|
93
|
-
},
|
|
94
|
-
"@deepseek-ai/dsh-client-ui-
|
|
95
|
-
"optional": true
|
|
96
|
-
},
|
|
97
|
-
"@deepseek-ai/dsh-client-ui-
|
|
98
|
-
"optional": true
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"@deepseek-ai/
|
|
110
|
-
"@deepseek-ai/
|
|
111
|
-
"@deepseek-ai/dsh-client-
|
|
112
|
-
"@deepseek-ai/dsh-client-
|
|
113
|
-
"@deepseek-ai/
|
|
114
|
-
"@
|
|
115
|
-
"@
|
|
116
|
-
"@
|
|
117
|
-
"eslint": "^10.
|
|
118
|
-
"
|
|
119
|
-
"react
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
"@deepseek-ai/dsh-
|
|
145
|
-
"@deepseek-ai/dsh-
|
|
146
|
-
"@deepseek-ai/dsh-client-
|
|
147
|
-
"@deepseek-ai/dsh-client-ui-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-thinking-levels",
|
|
3
|
+
"version": "4.4.18",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"registry": "https://registry.npmjs.org",
|
|
6
|
+
"access": "public",
|
|
7
|
+
"tag": "latest"
|
|
8
|
+
},
|
|
9
|
+
"description": "DSH host plugin: thinking-level (reasoning_effort) control for dsh — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/drscrewdriver/dsh-thinking-levels.git"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"files": [
|
|
16
|
+
"lib",
|
|
17
|
+
"cordis.patch.yml",
|
|
18
|
+
"dsh.plugin.json",
|
|
19
|
+
"README.md",
|
|
20
|
+
"README.zh.md",
|
|
21
|
+
"README.ja.md",
|
|
22
|
+
"README.ko.md",
|
|
23
|
+
"README.fr.md",
|
|
24
|
+
"README.de.md",
|
|
25
|
+
"README.it.md",
|
|
26
|
+
"README.ru.md",
|
|
27
|
+
"README.es.md",
|
|
28
|
+
"README.pt.md",
|
|
29
|
+
"INSTALL.md",
|
|
30
|
+
"INSTALL.zh.md",
|
|
31
|
+
"INSTALL.ja.md",
|
|
32
|
+
"INSTALL.ko.md",
|
|
33
|
+
"INSTALL.fr.md",
|
|
34
|
+
"INSTALL.de.md",
|
|
35
|
+
"INSTALL.it.md",
|
|
36
|
+
"INSTALL.ru.md",
|
|
37
|
+
"INSTALL.es.md",
|
|
38
|
+
"INSTALL.pt.md",
|
|
39
|
+
"CHANGELOG.md",
|
|
40
|
+
"CHANGELOG.ja.md",
|
|
41
|
+
"CHANGELOG.ko.md",
|
|
42
|
+
"CHANGELOG.fr.md",
|
|
43
|
+
"CHANGELOG.de.md",
|
|
44
|
+
"CHANGELOG.it.md",
|
|
45
|
+
"CHANGELOG.ru.md",
|
|
46
|
+
"CHANGELOG.es.md",
|
|
47
|
+
"CHANGELOG.pt.md",
|
|
48
|
+
"locale"
|
|
49
|
+
],
|
|
50
|
+
"main": "lib/index.js",
|
|
51
|
+
"types": "lib/index.d.ts",
|
|
52
|
+
"exports": {
|
|
53
|
+
".": {
|
|
54
|
+
"types": "./lib/index.d.ts",
|
|
55
|
+
"default": "./lib/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./thinking-level": {
|
|
58
|
+
"types": "./lib/thinking-level.d.ts",
|
|
59
|
+
"default": "./lib/thinking-level.js"
|
|
60
|
+
},
|
|
61
|
+
"./client": {
|
|
62
|
+
"default": "./lib/client.js"
|
|
63
|
+
},
|
|
64
|
+
"./locale/*.json": "./locale/*.json",
|
|
65
|
+
"./package.json": "./package.json"
|
|
66
|
+
},
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": ">=22.19.0 || >=24.0.0",
|
|
69
|
+
"dsh": ">=0.1.0-rc.8 <0.3.0-0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
73
|
+
"@deepseek-ai/dsh-api-remotes": "0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3 || 0.2.2-rc.4 || 0.2.2-rc.5",
|
|
74
|
+
"@deepseek-ai/dsh-api-session-controller": "0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3 || 0.2.2-rc.4 || 0.2.2-rc.5",
|
|
75
|
+
"@deepseek-ai/dsh-client-locale": "0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3 || 0.2.2-rc.4 || 0.2.2-rc.5",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3 || 0.2.2-rc.4 || 0.2.2-rc.5",
|
|
77
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3 || 0.2.2-rc.4 || 0.2.2-rc.5",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3 || 0.2.2-rc.4 || 0.2.2-rc.5",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3 || 0.2.2-rc.4 || 0.2.2-rc.5"
|
|
80
|
+
},
|
|
81
|
+
"peerDependenciesMeta": {
|
|
82
|
+
"@deepseek-ai/dsh-api-remotes": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"@deepseek-ai/dsh-api-session-controller": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"@deepseek-ai/dsh-client-locale": {
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-model-selection": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-renderer": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-settings": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"@deepseek-ai/dsh-client-ui-slots": {
|
|
101
|
+
"optional": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"dependencies": {
|
|
105
|
+
"@deepseek-ai/schemastery": "^3.18.4",
|
|
106
|
+
"zod": "^4.4.3"
|
|
107
|
+
},
|
|
108
|
+
"devDependencies": {
|
|
109
|
+
"@deepseek-ai/cordis": "^4.0.4",
|
|
110
|
+
"@deepseek-ai/cosmokit": "^1.8.5",
|
|
111
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.3",
|
|
112
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.3",
|
|
113
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.3",
|
|
114
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.3",
|
|
115
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.3",
|
|
116
|
+
"@deepseek-ai/schemastery": "^3.18.4",
|
|
117
|
+
"@eslint/js": "^10.0.1",
|
|
118
|
+
"@types/node": "^24.0.0",
|
|
119
|
+
"@types/react": "~18.3.1",
|
|
120
|
+
"eslint": "^10.8.1",
|
|
121
|
+
"react": "^18.2.0",
|
|
122
|
+
"react-test-renderer": "^18.3.1",
|
|
123
|
+
"tsdown": "^0.22.2",
|
|
124
|
+
"typescript": "^5.6.0",
|
|
125
|
+
"typescript-eslint": "^8.67.0",
|
|
126
|
+
"vitest": "^3.0.0"
|
|
127
|
+
},
|
|
128
|
+
"scripts": {
|
|
129
|
+
"build": "tsc -p tsconfig.build.json && tsdown",
|
|
130
|
+
"prepack": "npm run build",
|
|
131
|
+
"prepublishOnly": "npm run build",
|
|
132
|
+
"release:4x": "npm publish --tag dsh-0.2.0 --registry=https://registry.npmjs.org",
|
|
133
|
+
"typecheck": "tsc --noEmit",
|
|
134
|
+
"lint": "eslint src tests",
|
|
135
|
+
"test": "vitest run"
|
|
136
|
+
},
|
|
137
|
+
"license": "MIT",
|
|
138
|
+
"dsh": {
|
|
139
|
+
"bundle": {
|
|
140
|
+
"patch": "./cordis.patch.yml"
|
|
141
|
+
},
|
|
142
|
+
"client": {
|
|
143
|
+
"inject": [
|
|
144
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
145
|
+
"@deepseek-ai/dsh-api-session-controller",
|
|
146
|
+
"@deepseek-ai/dsh-client-locale",
|
|
147
|
+
"@deepseek-ai/dsh-client-ui-model-selection",
|
|
148
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
149
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
150
|
+
"@deepseek-ai/dsh-client-ui-slots"
|
|
151
|
+
],
|
|
152
|
+
"platform": "web"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|