dsh-thinking-levels 0.4.1 → 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.
@@ -3,30 +3,44 @@
3
3
  *
4
4
  * The measured bottleneck of tool calls in dsh is the model's THINKING phase
5
5
  * (~90% of the wall-clock time for simple tasks), not the tool execution
6
- * itself. DeepSeek's API exposes `reasoning_effort` in three wire levels
7
- * (low / high / max, plus `off` disables thinking; low shipped 2026-08-13 and
8
- * maps 1:1 per the official docs — medium/xhigh collapse onto high).
6
+ * itself. DeepSeek's API exposes `reasoning_effort` in wire levels
7
+ * (off / low / high / max; low shipped 2026-08-13 in dsh rc.7 — rc.6 and
8
+ * older adapters only accept off / high / max).
9
9
  *
10
- * The plugin offers FIVE user-facing levels:
11
- * - `off` : thinking disabled (manual only — never auto-picked).
12
- * - `low` : manual fix for simple chat tasks (cheap rounds stay cheap).
13
- * - `high` : manual fix, the official default effort.
14
- * - `max` : manual fix for heavy work.
15
- * - `auto` : schedule per step from the recent tool-call history, between
16
- * `low` / `high` / `max` (never `off`, never `auto` itself).
10
+ * The plugin offers EIGHT standard levels aligned with dsh-thinking-effort's
11
+ * level set, plus the scheduler sentinel:
12
+ * - `off` : thinking disabled (manual only — never auto-picked).
13
+ * - `on` : thinking enabled at the model's default strength. Toggle-only
14
+ * models (Qwen3.6-style) surface Off/On; `on` lifts to the
15
+ * advertised `high` (or the highest thinking level the model
16
+ * takes) instead of an exact wire level.
17
+ * - `minimal` / `low` / `medium` / `high` / `xhigh` / `max` : strength
18
+ * gradients. Each maps to a wire value via the model's `reasoningEfforts`
19
+ * table (customizable per model — e.g. `high` → `ultra`); levels the model
20
+ * does not advertise are clamped to its highest thinking level or stripped.
21
+ * - `auto` : schedule per step from the recent tool-call history, between
22
+ * `low` / `high` / `max` (never `off`, never `auto` itself).
23
+ *
24
+ * A request-level guard decides whether an effort may be injected at all:
25
+ * models that do not advertise reasoning metadata (custom openai-completions
26
+ * routes such as Qwen3.6 with no `reasoningEfforts`) must never receive a
27
+ * `reasoningEffort` — dsh rejects it per request with
28
+ * UNSUPPORTED_REASONING_EFFORT. Unsupported fields are stripped, not sent.
17
29
  *
18
30
  * Kept dependency-free (pure inputs -> output) so the policy is unit-testable
19
31
  * in isolation; the plugin host feeds it the live session's recent calls.
20
32
  */
21
- /** The five user-facing thinking levels; the wire levels dsh forwards to DeepSeek plus the scheduler sentinel. */
22
- export type EffortId = 'off' | 'low' | 'high' | 'max' | 'auto';
33
+ /** The user-facing thinking levels: the eight standard levels plus the scheduler sentinel. */
34
+ export type EffortId = 'off' | 'on' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
23
35
  /** Wire levels the auto scheduler may pick (never `off`, never `auto`). */
24
- export type AutoEffort = Exclude<EffortId, 'auto' | 'off'>;
36
+ export type AutoEffort = 'low' | 'high' | 'max';
37
+ /** The eight standard levels (excluding the `auto` scheduler sentinel). */
38
+ export declare const STANDARD_LEVELS: readonly EffortId[];
25
39
  /** Runtime guard: is this a level the plugin understands? */
26
40
  export declare function isEffortId(value: unknown): value is EffortId;
27
41
  /**
28
42
  * Fail-loud config validation: reject an out-of-band level (e.g. a stray
29
- * `medium` from an old profile) instead of silently injecting it into the
43
+ * value from an old profile) instead of silently injecting it into the
30
44
  * model request, where dsh would throw `UNSUPPORTED_REASONING_EFFORT`.
31
45
  */
32
46
  export declare function assertEffortId(value: unknown, where: string): asserts value is EffortId;
@@ -37,13 +51,15 @@ export interface ToolCallSample {
37
51
  /** Approximate argument size in characters (payload heft). */
38
52
  argsSize: number;
39
53
  }
40
- /** Everything the policy needs to decide one request's level. */
54
+ /**
55
+ * Everything the policy needs to decide one request's level.
56
+ */
41
57
  export interface EffortDecisionInput {
42
58
  /** Recent tool calls of the step (oldest first); empty for a fresh prompt. */
43
59
  recentCalls: readonly ToolCallSample[];
44
60
  /** The user-selected level: a fixed wire level, or `auto` for scheduling. */
45
61
  selected: EffortId;
46
- /** User preference: allow the scheduler to drop below the hub (`high`). */
62
+ /** Scheduler preference: allow the scheduler to drop below the hub (`high`). */
47
63
  allowDowngrade: boolean;
48
64
  /** User preference: allow the scheduler to lift above the hub to `max`. */
49
65
  allowUpgrade: boolean;
@@ -58,5 +74,79 @@ export interface EffortDecisionInput {
58
74
  * @returns The level to inject; `auto` is resolved before returning.
59
75
  */
60
76
  export declare function decideEffort(input: EffortDecisionInput): EffortId;
77
+ /**
78
+ * Whether a model's resolved metadata advertises reasoning-effort support.
79
+ * dsh resolves `reasoning` to `undefined` for non-reasoning models (e.g. a
80
+ * hand-declared openai-completions route without `reasoningEfforts`), and
81
+ * rejects any requested effort for them per request. An empty efforts list is
82
+ * equally incapable and is treated as unsupported.
83
+ * @param reasoning - the `reasoning` field of a resolved model info.
84
+ * @returns true when the model advertises at least one effort level.
85
+ */
86
+ export declare function reasoningEffortSupported(reasoning: unknown): boolean;
87
+ /** One request-level injection decision. */
88
+ export interface EffortInjectionInput {
89
+ /** Whether the target model advertises reasoning-effort support. */
90
+ supportsReasoning: boolean;
91
+ /** The `reasoningEffort` already present on the request seed, if any. */
92
+ seedEffort: unknown;
93
+ /** Plugin-configured default level when the seed carries none. */
94
+ selected: EffortId;
95
+ /** Recent tool calls of the step, for the auto scheduler. */
96
+ recentCalls: readonly ToolCallSample[];
97
+ /** Scheduler preference: allow the scheduler to drop below `high`. */
98
+ allowDowngrade: boolean;
99
+ /** Scheduler preference: allow lifting above `high` to `max`. */
100
+ allowUpgrade: boolean;
101
+ /** The model's advertised effort ids (including plugin masks like `auto`). */
102
+ efforts: readonly string[];
103
+ /**
104
+ * The model takes only an on/off thinking toggle (Qwen3.6 / mimo-v2.5
105
+ * style): `off` must be stripped (pi-ai expresses it by omitting the effort,
106
+ * not by sending an `off` value), and `on` maps to the advertised `high`
107
+ * level (pi-ai serializes it as enable_thinking, no reasoning_effort).
108
+ */
109
+ toggleOnly: boolean;
110
+ }
111
+ /** The resolved action for one `agent/request`. */
112
+ export interface EffortInjectionDecision {
113
+ /** Keep/inject a `reasoningEffort` on the request (false = strip it). */
114
+ inject: boolean;
115
+ /** The wire level to set, present when `inject` is true. */
116
+ level?: EffortId;
117
+ }
118
+ /**
119
+ * Clamp a level to the ones the model actually advertises. The adapter rejects
120
+ * any other value per request (UNSUPPORTED_REASONING_EFFORT), so an unsupported
121
+ * scheduled level is lifted to the model's highest advertised thinking level
122
+ * (a toggle-only model advertises off/high → a scheduled low becomes `high`,
123
+ * which enables thinking without sending a think effort), and a model
124
+ * advertising no thinking level at all yields nothing (strip).
125
+ * @param level - the scheduled or manually selected level.
126
+ * @param efforts - the model's advertised effort ids (escalation-ordered).
127
+ * @returns the level to inject, or `undefined` when the model cannot take it.
128
+ */
129
+ export declare function clampToEfforts(level: EffortId, efforts: readonly string[]): EffortId | undefined;
130
+ /**
131
+ * Decide what one model request should do with `reasoningEffort`.
132
+ *
133
+ * - A model without reasoning support never receives the field: dsh would
134
+ * throw UNSUPPORTED_REASONING_EFFORT, so the seed's inherited effort (from a
135
+ * previous route or session header) is stripped.
136
+ * - A manual wire selection passes through unchanged when the model advertises
137
+ * it; an unsupported manual pick is stripped rather than clamped (the user
138
+ * asked for that exact level).
139
+ * - `on` is the enable-thinking toggle, never a wire level: on a toggle-only
140
+ * model it injects the advertised thinking level (`high`), which the wire
141
+ * serializes as enable_thinking without a reasoning_effort; an
142
+ * effort-capable model does not advertise `on`, so it is stripped.
143
+ * - `auto` (or no selection) resolves through the scheduler; the result is
144
+ * clamped to the model's advertised levels, so a scheduled `low` on a model
145
+ * that only takes off/high (Qwen3.6) becomes `high` instead of an error.
146
+ *
147
+ * @param input - model capability plus the seed's current effort.
148
+ * @returns whether to inject and the level to set.
149
+ */
150
+ export declare function resolveEffortInjection(input: EffortInjectionInput): EffortInjectionDecision;
61
151
  /** Wall-clock delta of one tool call, for the timing telemetry. */
62
152
  export declare function toolDurationMs(startedAt: number, finishedAt: number): number;
@@ -3,33 +3,50 @@
3
3
  *
4
4
  * The measured bottleneck of tool calls in dsh is the model's THINKING phase
5
5
  * (~90% of the wall-clock time for simple tasks), not the tool execution
6
- * itself. DeepSeek's API exposes `reasoning_effort` in three wire levels
7
- * (low / high / max, plus `off` disables thinking; low shipped 2026-08-13 and
8
- * maps 1:1 per the official docs — medium/xhigh collapse onto high).
6
+ * itself. DeepSeek's API exposes `reasoning_effort` in wire levels
7
+ * (off / low / high / max; low shipped 2026-08-13 in dsh rc.7 — rc.6 and
8
+ * older adapters only accept off / high / max).
9
9
  *
10
- * The plugin offers FIVE user-facing levels:
11
- * - `off` : thinking disabled (manual only — never auto-picked).
12
- * - `low` : manual fix for simple chat tasks (cheap rounds stay cheap).
13
- * - `high` : manual fix, the official default effort.
14
- * - `max` : manual fix for heavy work.
15
- * - `auto` : schedule per step from the recent tool-call history, between
16
- * `low` / `high` / `max` (never `off`, never `auto` itself).
10
+ * The plugin offers EIGHT standard levels aligned with dsh-thinking-effort's
11
+ * level set, plus the scheduler sentinel:
12
+ * - `off` : thinking disabled (manual only — never auto-picked).
13
+ * - `on` : thinking enabled at the model's default strength. Toggle-only
14
+ * models (Qwen3.6-style) surface Off/On; `on` lifts to the
15
+ * advertised `high` (or the highest thinking level the model
16
+ * takes) instead of an exact wire level.
17
+ * - `minimal` / `low` / `medium` / `high` / `xhigh` / `max` : strength
18
+ * gradients. Each maps to a wire value via the model's `reasoningEfforts`
19
+ * table (customizable per model — e.g. `high` → `ultra`); levels the model
20
+ * does not advertise are clamped to its highest thinking level or stripped.
21
+ * - `auto` : schedule per step from the recent tool-call history, between
22
+ * `low` / `high` / `max` (never `off`, never `auto` itself).
23
+ *
24
+ * A request-level guard decides whether an effort may be injected at all:
25
+ * models that do not advertise reasoning metadata (custom openai-completions
26
+ * routes such as Qwen3.6 with no `reasoningEfforts`) must never receive a
27
+ * `reasoningEffort` — dsh rejects it per request with
28
+ * UNSUPPORTED_REASONING_EFFORT. Unsupported fields are stripped, not sent.
17
29
  *
18
30
  * Kept dependency-free (pure inputs -> output) so the policy is unit-testable
19
31
  * in isolation; the plugin host feeds it the live session's recent calls.
20
32
  */
33
+ /** The eight standard levels (excluding the `auto` scheduler sentinel). */
34
+ export const STANDARD_LEVELS = [
35
+ 'off', 'on', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max',
36
+ ];
21
37
  /** Runtime guard: is this a level the plugin understands? */
22
38
  export function isEffortId(value) {
23
- return value === 'off' || value === 'low' || value === 'high' || value === 'max' || value === 'auto';
39
+ return STANDARD_LEVELS.includes(value) || value === 'auto';
24
40
  }
25
41
  /**
26
42
  * Fail-loud config validation: reject an out-of-band level (e.g. a stray
27
- * `medium` from an old profile) instead of silently injecting it into the
43
+ * value from an old profile) instead of silently injecting it into the
28
44
  * model request, where dsh would throw `UNSUPPORTED_REASONING_EFFORT`.
29
45
  */
30
46
  export function assertEffortId(value, where) {
31
47
  if (!isEffortId(value)) {
32
- throw new TypeError(`${where}: invalid thinking level ${JSON.stringify(value)} (expected off | low | high | max | auto)`);
48
+ throw new TypeError(`${where}: invalid thinking level ${JSON.stringify(value)} `
49
+ + '(expected off | on | minimal | low | medium | high | xhigh | max | auto)');
33
50
  }
34
51
  }
35
52
  /** Deterministic tool names that are cheap to reason about (word-boundary anchored). */
@@ -53,6 +70,10 @@ function simpleRatio(calls) {
53
70
  * - Mixed or heavy tools -> `high` (the hub).
54
71
  * - Very heavy context (huge args) -> `max` (when upgrades are allowed).
55
72
  *
73
+ * The scheduler MAY pick `low`: the request-level capability guard strips any
74
+ * effort from models that do not support it, so a scheduled `low` only ever
75
+ * reaches models that advertise the level.
76
+ *
56
77
  * @param calls - recent tool calls of the step.
57
78
  * @param allowDowngrade - may drop below `high`.
58
79
  * @param allowUpgrade - may lift above `high`.
@@ -84,6 +105,98 @@ export function decideEffort(input) {
84
105
  return selected;
85
106
  return scheduleEffort(recentCalls, allowDowngrade, allowUpgrade);
86
107
  }
108
+ /**
109
+ * Whether a model's resolved metadata advertises reasoning-effort support.
110
+ * dsh resolves `reasoning` to `undefined` for non-reasoning models (e.g. a
111
+ * hand-declared openai-completions route without `reasoningEfforts`), and
112
+ * rejects any requested effort for them per request. An empty efforts list is
113
+ * equally incapable and is treated as unsupported.
114
+ * @param reasoning - the `reasoning` field of a resolved model info.
115
+ * @returns true when the model advertises at least one effort level.
116
+ */
117
+ export function reasoningEffortSupported(reasoning) {
118
+ if (typeof reasoning !== 'object' || reasoning === null)
119
+ return false;
120
+ const efforts = reasoning.efforts;
121
+ return Array.isArray(efforts) && efforts.length > 0;
122
+ }
123
+ /**
124
+ * Clamp a level to the ones the model actually advertises. The adapter rejects
125
+ * any other value per request (UNSUPPORTED_REASONING_EFFORT), so an unsupported
126
+ * scheduled level is lifted to the model's highest advertised thinking level
127
+ * (a toggle-only model advertises off/high → a scheduled low becomes `high`,
128
+ * which enables thinking without sending a think effort), and a model
129
+ * advertising no thinking level at all yields nothing (strip).
130
+ * @param level - the scheduled or manually selected level.
131
+ * @param efforts - the model's advertised effort ids (escalation-ordered).
132
+ * @returns the level to inject, or `undefined` when the model cannot take it.
133
+ */
134
+ export function clampToEfforts(level, efforts) {
135
+ if (efforts.includes(level))
136
+ return level;
137
+ // off and auto are not thinking levels; the advertised list is
138
+ // escalation-ordered.
139
+ const thinking = efforts.filter(id => id !== 'off' && id !== 'auto');
140
+ if (thinking.length === 0)
141
+ return undefined;
142
+ return thinking[thinking.length - 1];
143
+ }
144
+ /**
145
+ * Decide what one model request should do with `reasoningEffort`.
146
+ *
147
+ * - A model without reasoning support never receives the field: dsh would
148
+ * throw UNSUPPORTED_REASONING_EFFORT, so the seed's inherited effort (from a
149
+ * previous route or session header) is stripped.
150
+ * - A manual wire selection passes through unchanged when the model advertises
151
+ * it; an unsupported manual pick is stripped rather than clamped (the user
152
+ * asked for that exact level).
153
+ * - `on` is the enable-thinking toggle, never a wire level: on a toggle-only
154
+ * model it injects the advertised thinking level (`high`), which the wire
155
+ * serializes as enable_thinking without a reasoning_effort; an
156
+ * effort-capable model does not advertise `on`, so it is stripped.
157
+ * - `auto` (or no selection) resolves through the scheduler; the result is
158
+ * clamped to the model's advertised levels, so a scheduled `low` on a model
159
+ * that only takes off/high (Qwen3.6) becomes `high` instead of an error.
160
+ *
161
+ * @param input - model capability plus the seed's current effort.
162
+ * @returns whether to inject and the level to set.
163
+ */
164
+ export function resolveEffortInjection(input) {
165
+ const { supportsReasoning, seedEffort, selected, efforts, toggleOnly } = input;
166
+ if (!supportsReasoning)
167
+ return { inject: false };
168
+ if (toggleOnly) {
169
+ // Toggle-only model (Qwen3.6 / mimo-v2.5 style): thinking is an on/off
170
+ // switch expressed through the provider's enable_thinking semantics.
171
+ // - Off → inject `off`: the provider maps it to thinking disabled.
172
+ // - On / any other seed → inject `high` (the advertised toggle level): the
173
+ // short-circuit adapter serializes a non-off effort as enable_thinking
174
+ // true — an explicit "thinking on" signal the wire needs. (A request
175
+ // with NO effort at all is the ambiguous case: leaving it absent relies
176
+ // on the provider default, which some gateways treat as off.)
177
+ return { inject: true, level: seedEffort === 'off' ? 'off' : 'high' };
178
+ }
179
+ if (seedEffort === 'on') {
180
+ // A stray On on an effort-capable model: never a wire level, stripped.
181
+ return { inject: false };
182
+ }
183
+ if (isEffortId(seedEffort) && seedEffort !== 'auto') {
184
+ // A manual pick is the user asking for that exact level: pass it through
185
+ // only when the model advertises it, strip it otherwise (no clamping of an
186
+ // explicit choice).
187
+ return efforts.includes(seedEffort)
188
+ ? { inject: true, level: seedEffort }
189
+ : { inject: false };
190
+ }
191
+ const level = decideEffort({
192
+ recentCalls: input.recentCalls,
193
+ selected: seedEffort === 'auto' ? 'auto' : selected,
194
+ allowDowngrade: input.allowDowngrade,
195
+ allowUpgrade: input.allowUpgrade,
196
+ });
197
+ const clamped = clampToEfforts(level, efforts);
198
+ return clamped === undefined ? { inject: false } : { inject: true, level: clamped };
199
+ }
87
200
  /** Wall-clock delta of one tool call, for the timing telemetry. */
88
201
  export function toolDurationMs(startedAt, finishedAt) {
89
202
  return Math.max(0, finishedAt - startedAt);
package/package.json CHANGED
@@ -1,79 +1,88 @@
1
- {
2
- "name": "dsh-thinking-levels",
3
- "version": "0.4.1",
4
- "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.",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/drscrewdriver/dsh-thinking-levels.git"
8
- },
9
- "type": "module",
10
- "files": [
11
- "lib",
12
- "cordis.patch.yml",
13
- "README.md",
14
- "README.zh.md"
15
- ],
16
- "main": "lib/index.js",
17
- "types": "lib/index.d.ts",
18
- "exports": {
19
- ".": {
20
- "types": "./lib/index.d.ts",
21
- "default": "./lib/index.js"
22
- },
23
- "./thinking-level": {
24
- "types": "./lib/thinking-level.d.ts",
25
- "default": "./lib/thinking-level.js"
26
- },
27
- "./client": {
28
- "default": "./lib/client.js"
29
- },
30
- "./package.json": "./package.json"
31
- },
32
- "engines": {
33
- "node": ">=20"
34
- },
35
- "peerDependencies": {
36
- "@deepseek-ai/cordis": "^4.0.1"
37
- },
38
- "dependencies": {
39
- "@deepseek-ai/schemastery": "^3.18.0"
40
- },
41
- "devDependencies": {
42
- "@deepseek-ai/cordis": "^4.0.1",
43
- "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.7",
44
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.7",
45
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.0-rc.7",
46
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.7",
47
- "@eslint/js": "^10.0.1",
48
- "@types/node": "^24.0.0",
49
- "@types/react": "~18.3.1",
50
- "eslint": "^10.8.1",
51
- "react": "^18.2.0",
52
- "tsdown": "^0.22.2",
53
- "typescript": "^5.6.0",
54
- "typescript-eslint": "^8.67.0",
55
- "vitest": "^3.0.0"
56
- },
57
- "scripts": {
58
- "build": "tsc -p tsconfig.build.json && tsdown",
59
- "prepublishOnly": "npm run build",
60
- "typecheck": "tsc --noEmit",
61
- "lint": "eslint src tests",
62
- "test": "vitest run"
63
- },
64
- "license": "MIT",
65
- "dsh": {
66
- "bundle": {
67
- "patch": "./cordis.patch.yml"
68
- },
69
- "client": {
70
- "inject": [
71
- "@deepseek-ai/dsh-client-runtime",
72
- "@deepseek-ai/dsh-client-locale",
73
- "@deepseek-ai/dsh-client-ui-slots",
74
- "@deepseek-ai/dsh-client-ui-settings"
75
- ],
76
- "platform": "web"
77
- }
78
- }
79
- }
1
+ {
2
+ "name": "dsh-thinking-levels",
3
+ "version": "0.6.0",
4
+ "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.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/drscrewdriver/dsh-thinking-levels.git"
8
+ },
9
+ "type": "module",
10
+ "files": [
11
+ "lib",
12
+ "cordis.patch.yml",
13
+ "README.md",
14
+ "README.zh.md",
15
+ "README.ja.md",
16
+ "README.ko.md",
17
+ "INSTALL.md",
18
+ "INSTALL.zh.md",
19
+ "INSTALL.ja.md",
20
+ "INSTALL.ko.md",
21
+ "CHANGELOG.md",
22
+ "CHANGELOG.ja.md",
23
+ "CHANGELOG.ko.md"
24
+ ],
25
+ "main": "lib/index.js",
26
+ "types": "lib/index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./lib/index.d.ts",
30
+ "default": "./lib/index.js"
31
+ },
32
+ "./thinking-level": {
33
+ "types": "./lib/thinking-level.d.ts",
34
+ "default": "./lib/thinking-level.js"
35
+ },
36
+ "./client": {
37
+ "default": "./lib/client.js"
38
+ },
39
+ "./package.json": "./package.json"
40
+ },
41
+ "engines": {
42
+ "node": ">=20"
43
+ },
44
+ "peerDependencies": {
45
+ "@deepseek-ai/cordis": "^4.0.1"
46
+ },
47
+ "dependencies": {
48
+ "@deepseek-ai/schemastery": "^3.18.0"
49
+ },
50
+ "devDependencies": {
51
+ "@deepseek-ai/cordis": "^4.0.1",
52
+ "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.7",
53
+ "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.7",
54
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.0-rc.7",
55
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.7",
56
+ "@eslint/js": "^10.0.1",
57
+ "@types/node": "^24.0.0",
58
+ "@types/react": "~18.3.1",
59
+ "eslint": "^10.8.1",
60
+ "react": "^18.2.0",
61
+ "tsdown": "^0.22.2",
62
+ "typescript": "^5.6.0",
63
+ "typescript-eslint": "^8.67.0",
64
+ "vitest": "^3.0.0"
65
+ },
66
+ "scripts": {
67
+ "build": "tsc -p tsconfig.build.json && tsdown",
68
+ "prepublishOnly": "npm run build",
69
+ "typecheck": "tsc --noEmit",
70
+ "lint": "eslint src tests",
71
+ "test": "vitest run"
72
+ },
73
+ "license": "MIT",
74
+ "dsh": {
75
+ "bundle": {
76
+ "patch": "./cordis.patch.yml"
77
+ },
78
+ "client": {
79
+ "inject": [
80
+ "@deepseek-ai/dsh-client-runtime",
81
+ "@deepseek-ai/dsh-client-locale",
82
+ "@deepseek-ai/dsh-client-ui-slots",
83
+ "@deepseek-ai/dsh-client-ui-settings"
84
+ ],
85
+ "platform": "web"
86
+ }
87
+ }
88
+ }