@sparkelf/dsh-genui 0.11.4-patch.2 → 0.13.0-sparkelf.2
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.md +76 -0
- package/ICON-NAMES.md +30 -0
- package/README.md +26 -28
- package/README.zh-CN.md +26 -28
- package/SKILL.md +128 -19
- package/THIRD_PARTY_NOTICES.md +42 -0
- package/assets/genui-icon.svg +20 -0
- package/assets/genui-logo.svg +18 -0
- package/lib/assets/icons.js +1 -0
- package/lib/assets/mermaid.js +325 -325
- package/lib/assets/standalone-runtime.js +10 -9
- package/lib/client.js +32 -31
- package/lib/index.js +489 -80
- package/lib/types/client/action-context.d.ts +1 -1
- package/lib/types/client/artifact/types.d.ts +1 -1
- package/lib/types/client/asset-loader.d.ts +2 -2
- package/lib/types/client/blocks/blocks.d.ts +12 -0
- package/lib/types/client/blocks/icon.d.ts +4 -0
- package/lib/types/client/dom-fence.d.ts +2 -1
- package/lib/types/client/fence-render.d.ts +5 -21
- package/lib/types/client/file-address.d.ts +4 -0
- package/lib/types/client/file-link-context.d.ts +49 -0
- package/lib/types/client/file-link.d.ts +17 -0
- package/lib/types/client/gallery.d.ts +8 -2
- package/lib/types/client/genui-runtime/diagnostics.d.ts +1 -1
- package/lib/types/client/genui-runtime/limits.d.ts +4 -0
- package/lib/types/client/genui-runtime/schema.d.ts +14 -1
- package/lib/types/client/guard.d.ts +4 -1
- package/lib/types/client/i18n/en.d.ts +5 -1
- package/lib/types/client/i18n/index.d.ts +1 -1
- package/lib/types/client/icons/asset-icons.d.ts +1 -0
- package/lib/types/client/icons/icon-data-full.d.ts +23 -0
- package/lib/types/client/icons/icon-data.d.ts +24 -0
- package/lib/types/client/icons/icon-lazy.d.ts +18 -0
- package/lib/types/client/icons/icon-names-full.d.ts +12 -0
- package/lib/types/client/index.d.ts +5 -15
- package/lib/types/client/inline.d.ts +1 -1
- package/lib/types/client/mermaid-colors.d.ts +2 -0
- package/lib/types/client/mermaid-core.d.ts +2 -1
- package/lib/types/client/mermaid-lazy.d.ts +5 -1
- package/lib/types/client/panel-command.d.ts +21 -1
- package/lib/types/client/panel.d.ts +6 -1
- package/lib/types/client/primitive-adapter.d.ts +0 -2
- package/lib/types/client/session-resolver.d.ts +13 -2
- package/lib/types/client/source-fence.d.ts +1 -1
- package/lib/types/client/spec.d.ts +107 -3
- package/lib/types/client/standalone/asset-loader.d.ts +1 -1
- package/lib/types/client/standalone/primitive-adapter.d.ts +0 -4
- package/lib/types/plugin/fence-feedback.d.ts +11 -7
- package/lib/types/plugin/index.d.ts +6 -2
- package/lib/types/shared/fence-language.d.ts +14 -0
- package/lib/types/shared/fence-repair.d.ts +2 -1
- package/lib/types/shared/fence-resolve.d.ts +1 -1
- package/package.json +92 -83
- package/src/client/EChartNode.tsx +17 -3
- package/src/client/GenuiBlock.module.css +411 -76
- package/src/client/action-context.ts +5 -15
- package/src/client/artifact/ArtifactExport.module.css +34 -3
- package/src/client/artifact/ExportableGenuiBlock.tsx +23 -2
- package/src/client/artifact/portability.ts +6 -1
- package/src/client/artifact/types.ts +1 -1
- package/src/client/asset-loader.ts +3 -3
- package/src/client/blocks/advanced.tsx +101 -14
- package/src/client/blocks/blocks.tsx +143 -0
- package/src/client/blocks/charts.tsx +22 -6
- package/src/client/blocks/icon.tsx +93 -0
- package/src/client/blocks/image.tsx +1 -0
- package/src/client/blocks/render-node.tsx +84 -52
- package/src/client/dom-fence.tsx +546 -72
- package/src/client/fence-render.tsx +5 -21
- package/src/client/file-address.ts +37 -0
- package/src/client/file-link-context.tsx +116 -0
- package/src/client/file-link.ts +46 -0
- package/src/client/gallery.ts +161 -133
- package/src/client/genui-runtime/diagnostics.ts +1 -1
- package/src/client/genui-runtime/limits.ts +4 -0
- package/src/client/genui-runtime/normalize.ts +42 -6
- package/src/client/genui-runtime/schema.ts +39 -7
- package/src/client/guard.ts +170 -15
- package/src/client/i18n/en.ts +5 -1
- package/src/client/i18n/index.ts +1 -1
- package/src/client/i18n/zh.ts +5 -1
- package/src/client/icons/asset-icons.ts +16 -0
- package/src/client/icons/icon-data-full.ts +5715 -0
- package/src/client/icons/icon-data.ts +507 -0
- package/src/client/icons/icon-lazy.ts +80 -0
- package/src/client/icons/icon-names-full.ts +12 -0
- package/src/client/index.tsx +27 -51
- package/src/client/inline.ts +17 -6
- package/src/client/mermaid-colors.ts +40 -0
- package/src/client/mermaid-core.ts +69 -61
- package/src/client/mermaid-lazy.ts +99 -4
- package/src/client/panel-command.ts +16 -2
- package/src/client/panel.tsx +18 -5
- package/src/client/primitive-adapter.ts +0 -11
- package/src/client/session-resolver.ts +12 -21
- package/src/client/source-fence.ts +4 -2
- package/src/client/spec.ts +116 -2
- package/src/client/standalone/asset-loader.ts +1 -1
- package/src/client/standalone/primitive-adapter.tsx +1 -9
- package/src/client/table-details.ts +4 -3
- package/src/plugin/fence-feedback.ts +60 -14
- package/src/plugin/index.ts +45 -20
- package/src/plugin/tool.ts +11 -2
- package/src/shared/fence-language.ts +30 -0
- package/src/shared/fence-repair.ts +37 -1
- package/src/shared/fence-resolve.ts +1 -1
- package/tsdown.config.ts +7 -8
- package/lib/invariant.js +0 -19
- package/lib/types/plugin/invariant.d.ts +0 -15
- package/src/plugin/invariant.ts +0 -30
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export interface GenuiLayoutHints {
|
|
5
5
|
span?: number;
|
|
6
6
|
}
|
|
7
|
-
export type GenuiNode = (GenuiText | GenuiRow | GenuiCol | GenuiGrid | GenuiCard | GenuiButton | GenuiInput | GenuiSelect | GenuiCheckbox | GenuiLink | GenuiImage | GenuiAudio | GenuiVideo | GenuiBadge | GenuiStat | GenuiHero | GenuiProgress | GenuiDivider | GenuiList | GenuiTable | GenuiChart | GenuiTabs | GenuiAvatar | GenuiSpacer | GenuiPlot | GenuiCallout | GenuiSteps | GenuiKeyValue | GenuiDiff | GenuiJson | GenuiCode | GenuiRadio | GenuiSubmit | GenuiSwitch | GenuiSlider | GenuiTextarea | GenuiAccordion | GenuiCopy | GenuiMermaid | GenuiSvg | GenuiScene3D | GenuiTimeline | GenuiFileTree | GenuiBreadcrumb | GenuiQuiz | GenuiDiagram) & GenuiLayoutHints | GenuiEChart;
|
|
7
|
+
export type GenuiNode = (GenuiText | GenuiRow | GenuiCol | GenuiGrid | GenuiCard | GenuiButton | GenuiInput | GenuiSelect | GenuiCheckbox | GenuiLink | GenuiImage | GenuiAudio | GenuiVideo | GenuiBadge | GenuiStat | GenuiHero | GenuiProgress | GenuiDivider | GenuiList | GenuiTable | GenuiChart | GenuiTabs | GenuiAvatar | GenuiSpacer | GenuiPlot | GenuiCallout | GenuiSteps | GenuiKeyValue | GenuiDiff | GenuiJson | GenuiCode | GenuiRadio | GenuiSubmit | GenuiSwitch | GenuiSlider | GenuiTextarea | GenuiAccordion | GenuiCopy | GenuiMermaid | GenuiSvg | GenuiScene3D | GenuiTimeline | GenuiFileTree | GenuiBreadcrumb | GenuiQuiz | GenuiDiagram | GenuiIcon | GenuiBlocks | GenuiArrow) & GenuiLayoutHints | GenuiEChart;
|
|
8
8
|
export interface GenuiSpec {
|
|
9
9
|
/** Short title shown as the card banner. */
|
|
10
10
|
title?: string;
|
|
@@ -27,9 +27,16 @@ export interface GenuiSpec {
|
|
|
27
27
|
}
|
|
28
28
|
export interface GenuiText {
|
|
29
29
|
type: 'text';
|
|
30
|
-
size?: 'h1' | 'h2' | 'h3' | 'body' | 'muted' | 'caption';
|
|
30
|
+
size?: 'display' | 'h1' | 'h2' | 'h3' | 'body' | 'muted' | 'caption';
|
|
31
31
|
content: string;
|
|
32
|
+
/** Legacy boolean shorthand; `align: 'center'` is the canonical form. */
|
|
32
33
|
center?: boolean;
|
|
34
|
+
/** Semantic colour for the run (danger renders red without a badge). */
|
|
35
|
+
tone?: 'danger' | 'success' | 'warning' | 'info' | 'muted';
|
|
36
|
+
/** Monospace run — hex, binary, identifiers — without the inline-code pill. */
|
|
37
|
+
mono?: boolean;
|
|
38
|
+
/** Horizontal alignment; `center?: true` normalizes to `align: 'center'`. */
|
|
39
|
+
align?: 'left' | 'center' | 'right';
|
|
33
40
|
}
|
|
34
41
|
export interface GenuiButton {
|
|
35
42
|
type: 'button';
|
|
@@ -100,8 +107,10 @@ export interface GenuiLink {
|
|
|
100
107
|
export interface GenuiImage {
|
|
101
108
|
type: 'image';
|
|
102
109
|
src: string;
|
|
103
|
-
/** Visible
|
|
110
|
+
/** Visible label line above the image and accessible description. */
|
|
104
111
|
alt?: string;
|
|
112
|
+
/** Caption line below the image (source, reading, credit). */
|
|
113
|
+
caption?: string;
|
|
105
114
|
}
|
|
106
115
|
/** User-controlled audio from a browser-reachable URL. */
|
|
107
116
|
export interface GenuiAudio {
|
|
@@ -164,6 +173,8 @@ export interface GenuiProgress {
|
|
|
164
173
|
}
|
|
165
174
|
export interface GenuiDivider {
|
|
166
175
|
type: 'divider';
|
|
176
|
+
/** Chapter separator: hairline + centered meta label (anthology program). */
|
|
177
|
+
label?: string;
|
|
167
178
|
}
|
|
168
179
|
export interface GenuiAvatar {
|
|
169
180
|
type: 'avatar';
|
|
@@ -173,16 +184,104 @@ export interface GenuiAvatar {
|
|
|
173
184
|
export interface GenuiSpacer {
|
|
174
185
|
type: 'spacer';
|
|
175
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* `arrow`: a thin connector between two blocks of a figure.
|
|
189
|
+
*
|
|
190
|
+
* The text glyph `↓` was the only way to draw a flow before this: it sits on
|
|
191
|
+
* the text baseline, inherits body size, and cannot hold a fixed gap. This node
|
|
192
|
+
* draws a hairline with a chevron head at a fixed length, so a vertical flow
|
|
193
|
+
* reads as a diagram instead of a paragraph.
|
|
194
|
+
*/
|
|
195
|
+
export interface GenuiArrow {
|
|
196
|
+
type: 'arrow';
|
|
197
|
+
dir?: 'down' | 'right';
|
|
198
|
+
/** Shaft length in px (16-96). Defaults to 26 (down) / 32 (right). */
|
|
199
|
+
length?: number;
|
|
200
|
+
/** Optional caption beside/under the arrow. */
|
|
201
|
+
label?: string;
|
|
202
|
+
}
|
|
203
|
+
/** One glyph from the bundled (curated) icon catalogue. */
|
|
204
|
+
export interface GenuiIcon {
|
|
205
|
+
type: 'icon';
|
|
206
|
+
/** Canonical catalogue name, e.g. `Nodes`. See ICON_NAMES / SKILL.md. */
|
|
207
|
+
name: string;
|
|
208
|
+
/** Accessible name. Omit when the icon is decorative beside a visible label. */
|
|
209
|
+
label?: string;
|
|
210
|
+
tone?: 'default' | 'muted' | 'info' | 'success' | 'warning' | 'danger';
|
|
211
|
+
/** Optical size in px; the renderer clamps to the nearest of 16/20/24/32. */
|
|
212
|
+
size?: number;
|
|
213
|
+
/** Tinted rounded-square plate (figure / stage-card use). */
|
|
214
|
+
tile?: boolean;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* One cell of a `blocks` row.
|
|
218
|
+
*
|
|
219
|
+
* A bare string is the common case (a label in a filled cell). The object form
|
|
220
|
+
* exists for figures that mark ONE cell out of many — a bit grid where the
|
|
221
|
+
* sign bit is highlighted, a lane where the current step is active — and for
|
|
222
|
+
* the small caption that hangs under a cell (`1` with `SF` beneath it).
|
|
223
|
+
*/
|
|
224
|
+
export type GenuiBlockCell = string | null | {
|
|
225
|
+
text: string;
|
|
226
|
+
/** Per-cell fill (hex); overrides the row colour. */
|
|
227
|
+
color?: string;
|
|
228
|
+
/** Per-cell semantic emphasis when no explicit hex is wanted. */
|
|
229
|
+
tone?: 'accent' | 'success' | 'warning' | 'danger' | 'muted';
|
|
230
|
+
/** Small caption under the cell (bit name, index, role…). */
|
|
231
|
+
sub?: string;
|
|
232
|
+
};
|
|
233
|
+
/** One row of a `blocks` figure: a label plus its cells. */
|
|
234
|
+
export interface GenuiBlocksRow {
|
|
235
|
+
/** Row label rendered to the left of the cells. */
|
|
236
|
+
label?: string;
|
|
237
|
+
/** Cells, left to right. `null` renders a blank (unpainted) slot; use the
|
|
238
|
+
* string `"—"` when a visible dash is wanted. */
|
|
239
|
+
cells: GenuiBlockCell[];
|
|
240
|
+
/** Fill for this row's cells (hex). Falls back to the accent wash. */
|
|
241
|
+
color?: string;
|
|
242
|
+
/**
|
|
243
|
+
* `fill` (default) paints every cell with the row colour.
|
|
244
|
+
* `outline` leaves cells unfilled with a hairline border — matrices where
|
|
245
|
+
* every cell is a box. `plain` removes the box entirely (a bit string like
|
|
246
|
+
* `1 0 1 0 0 0 0 0` reads as digits, not as a table), so only a cell with an
|
|
247
|
+
* explicit `tone`/`color` draws a surface.
|
|
248
|
+
*/
|
|
249
|
+
variant?: 'fill' | 'outline' | 'plain';
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* `blocks`: the declarative replacement for hand-written SVG block diagrams —
|
|
253
|
+
* a grid of filled cells grouped into labelled rows.
|
|
254
|
+
*
|
|
255
|
+
* Covers the three shapes models kept reaching for SVG to draw: a recursion /
|
|
256
|
+
* hierarchy ladder (each row divides its own width, 8 → 4 → 2 → 1), an equal
|
|
257
|
+
* row of parts (4 × "块 0"), and a lane/timeline grid (`columns` fixes the
|
|
258
|
+
* shared column count, `null` cells leave gaps).
|
|
259
|
+
*/
|
|
260
|
+
export interface GenuiBlocks {
|
|
261
|
+
type: 'blocks';
|
|
262
|
+
rows: GenuiBlocksRow[];
|
|
263
|
+
/** Fixed column count shared by every row. Omit to let each row divide its
|
|
264
|
+
* own width equally. */
|
|
265
|
+
columns?: number;
|
|
266
|
+
/** Figure caption rendered under the cells (the "每格代表…" line). */
|
|
267
|
+
caption?: string;
|
|
268
|
+
title?: string;
|
|
269
|
+
}
|
|
176
270
|
export interface GenuiRow {
|
|
177
271
|
type: 'row';
|
|
178
272
|
items: GenuiNode[];
|
|
179
273
|
wrap?: boolean;
|
|
180
274
|
spacer?: boolean;
|
|
275
|
+
/** Main-axis alignment. `center` is what figure headers need (icon + title
|
|
276
|
+
* stacked over a caption); the default stays `start`. */
|
|
277
|
+
justify?: 'start' | 'center' | 'end' | 'between';
|
|
181
278
|
}
|
|
182
279
|
export interface GenuiCol {
|
|
183
280
|
type: 'col';
|
|
184
281
|
items: GenuiNode[];
|
|
185
282
|
gap?: number;
|
|
283
|
+
/** Width as a percentage of the row (1-100). Omit to size by content. */
|
|
284
|
+
width?: number;
|
|
186
285
|
}
|
|
187
286
|
export interface GenuiGrid {
|
|
188
287
|
type: 'grid';
|
|
@@ -192,10 +291,15 @@ export interface GenuiGrid {
|
|
|
192
291
|
export interface GenuiCard {
|
|
193
292
|
type: 'card';
|
|
194
293
|
title?: string;
|
|
294
|
+
/** Meta overline above the title (chaptering for card groups; use sparingly). */
|
|
295
|
+
eyebrow?: string;
|
|
195
296
|
/** Semantic tint for the card surface (default: neutral). */
|
|
196
297
|
tone?: 'info' | 'success' | 'warning' | 'danger';
|
|
197
298
|
/** Explicit accent (hex) driving the border, title and wash. */
|
|
198
299
|
accent?: string;
|
|
300
|
+
/** Drop the elevation and use a faint neutral fill: figure panels read as
|
|
301
|
+
* printed blocks instead of floating cards. */
|
|
302
|
+
flat?: boolean;
|
|
199
303
|
items: GenuiNode[];
|
|
200
304
|
}
|
|
201
305
|
export interface GenuiList {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** 从启动代码预先载入的全局资源读取引擎。 */
|
|
2
|
-
export declare function loadGenuiAsset<T>(name: 'mermaid' | 'three' | 'echarts-core' | 'echarts-full'): Promise<T>;
|
|
2
|
+
export declare function loadGenuiAsset<T>(name: 'mermaid' | 'three' | 'echarts-core' | 'echarts-full' | 'icons'): Promise<T>;
|
|
@@ -48,7 +48,3 @@ export declare function JsonTree({ data, label, copyable, labels }: {
|
|
|
48
48
|
}): ReactNode;
|
|
49
49
|
/** 将文本复制到系统剪贴板。 */
|
|
50
50
|
export declare function writeClipboard(text: string): Promise<boolean>;
|
|
51
|
-
/** standalone 模式不连接 DSH 注册表,因此自定义组件始终不可用。 */
|
|
52
|
-
export declare function getGenuiComponent(_type: string): undefined;
|
|
53
|
-
/** standalone 模式专用的空动作上下文。 */
|
|
54
|
-
export declare const GenuiActionContext: import("react").Context<((action: string, payload: Record<string, unknown>) => void) | undefined>;
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* - **仅含 reasoning 的恢复。** 已验证的 GenUI 回合若只以 reasoning block 结束,使用宿主的
|
|
14
14
|
* `EMPTY_RESPONSE` retry policy。
|
|
15
15
|
* - **Never for subagents.** A child session's fence belongs to a parent reply.
|
|
16
|
-
* - **
|
|
17
|
-
*
|
|
18
|
-
* never rewritten.
|
|
16
|
+
* - **Shared fence matching.** GenUI labels use the renderer's case/punctuation
|
|
17
|
+
* normalization. Unrelated labels such as ` ```dsh-ui-dark `, indented prose,
|
|
18
|
+
* and mentions of the name are never rewritten.
|
|
19
19
|
* - **Accounted before sending.** The fingerprint is recorded before `steer`,
|
|
20
20
|
* so a re-entrant boundary cannot deliver the same correction twice.
|
|
21
21
|
* - **Cancellation-aware.** An aborted turn or a missing session is left alone.
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
import type { Context } from '@deepseek-ai/cordis';
|
|
28
28
|
import type { UserMessage } from '@deepseek-ai/dsh-session';
|
|
29
29
|
/** Plugin name recorded on every message this loop steers. */
|
|
30
|
-
export declare const FEEDBACK_PLUGIN_NAME = "@
|
|
30
|
+
export declare const FEEDBACK_PLUGIN_NAME = "@sparkelf/dsh-genui";
|
|
31
31
|
/** Source kind persisted by this plugin in Session format v4. */
|
|
32
|
-
export declare const FEEDBACK_SOURCE_KIND: "plugin:@
|
|
32
|
+
export declare const FEEDBACK_SOURCE_KIND: "plugin:@sparkelf/dsh-genui";
|
|
33
33
|
/**
|
|
34
34
|
* 同一个 turn 内 fence-feedback correction 的共享上限。
|
|
35
35
|
* Render failure 和 nothing-delivered reminder 共用该 budget;各自的 ledger 独立阻止重复修正。
|
|
@@ -105,6 +105,8 @@ export interface FenceFeedbackPlanInput {
|
|
|
105
105
|
readonly correctionsThisTurn?: number | undefined;
|
|
106
106
|
/** Turn {@link correctionsThisTurn} counts (stale counts are ignored). */
|
|
107
107
|
readonly correctionsTurn?: number | undefined;
|
|
108
|
+
/** Whether the host has registered the `render_ui` tool. Defaults to enabled. */
|
|
109
|
+
readonly renderUiToolEnabled?: boolean | undefined;
|
|
108
110
|
}
|
|
109
111
|
/** A correction the caller must account for before steering. */
|
|
110
112
|
export interface FenceFeedbackPlan {
|
|
@@ -139,13 +141,15 @@ export declare function planFenceFeedback(input: FenceFeedbackPlanInput): FenceF
|
|
|
139
141
|
*
|
|
140
142
|
* @param turn - turn that reached the boundary.
|
|
141
143
|
* @param attempt - correction number within the shared turn budget.
|
|
144
|
+
* @param renderUiToolEnabled - whether the correction may recommend `render_ui`.
|
|
142
145
|
* @returns the message text to steer into the running turn.
|
|
143
146
|
*/
|
|
144
|
-
export declare function missingBodyCorrectionText(turn: number, attempt?: number): string;
|
|
147
|
+
export declare function missingBodyCorrectionText(turn: number, attempt?: number, renderUiToolEnabled?: boolean): string;
|
|
145
148
|
/**
|
|
146
149
|
* 注册 GenUI 回合跟踪、宿主重试判定和可选的围栏修正流程。
|
|
147
150
|
*
|
|
148
151
|
* @param ctx - 宿主 Context。
|
|
149
152
|
* @param enabled - 是否启用同回合围栏修正。
|
|
153
|
+
* @param renderUiToolEnabled - 是否已注册 `render_ui` 工具。
|
|
150
154
|
*/
|
|
151
|
-
export declare function installFenceFeedback(ctx: Context, enabled: boolean): void;
|
|
155
|
+
export declare function installFenceFeedback(ctx: Context, enabled: boolean, renderUiToolEnabled?: boolean): void;
|
|
@@ -13,12 +13,12 @@ import { Context } from '@deepseek-ai/cordis';
|
|
|
13
13
|
* Deliberately slim: the `genui` skill carries the full component→field
|
|
14
14
|
* mapping; this section keeps only the contract that must always be
|
|
15
15
|
* present (fence syntax, type whitelist, and critical behavioral rules). */
|
|
16
|
-
export declare const GENUI_SECTION_TEXT = "
|
|
16
|
+
export declare const GENUI_SECTION_TEXT = "Render UI inside your reply with a fenced `dsh-ui` JSON block:\n\n```dsh-ui\n{\"title\":\"<user-language text>\",\"gap\":14,\"items\":[...]}\n```\n\nAllowed `type` values; the `genui` skill, when available, carries the full content\u2192component mapping and per-component field details:\n\n- \u5E03\u5C40: text \u00B7 row \u00B7 col \u00B7 grid \u00B7 card \u00B7 divider \u00B7 spacer \u00B7 hero\uFF08\u5C01\u9762\u5757\uFF0C\u4E00\u6761\u56DE\u7B54\u6700\u591A\u4E00\u4E2A\uFF09\n- \u5C55\u793A: badge \u00B7 stat \u00B7 progress \u00B7 list \u00B7 table \u00B7 keyvalue \u00B7 timeline \u00B7 file-tree \u00B7 breadcrumb \u00B7 callout \u00B7 steps \u00B7 diff \u00B7 json \u00B7 code \u00B7 copy \u00B7 avatar \u00B7 image \u00B7 audio \u00B7 video \u00B7 icon \u00B7 blocks \u00B7 arrow\n- \u56FE\u8868: chart {\"kind\":\"bars|line|donut\",\"data\":[{\"label\":\"...\",\"value\":n}]}\uFF08series\uFF1Abars \u5206\u7EC4/\u5806\u53E0 / line \u591A\u5E8F\u5217\uFF09 \u00B7 echart (preset \u540D\u6216 option \u76F4\u901A\uFF0C\u6E05\u5355\u89C1 skill) \u00B7 plot (\u51FD\u6570\u56FE) \u00B7 svg (\u5355\u56FE\u9884\u89C8)\n- \u4EA4\u4E92: button \u00B7 input \u00B7 textarea \u00B7 select \u00B7 checkbox \u00B7 switch \u00B7 slider \u00B7 radio \u00B7 submit \u00B7 quiz \u00B7 link \u00B7 tabs \u00B7 accordion\uFF08row.justify / col.width / card.flat \u89C1\u56FE\u5143\uFF09\n- \u9AD8\u7EA7: mermaid (\u6D41\u7A0B\u56FE/\u65F6\u5E8F/\u7518\u7279/ER \u7B49\uFF0C\u5173\u952E\u5B57\u89C1 skill) \u00B7 diagram (\u67B6\u6784/\u6D41\u7A0B\u56FE) \u00B7 scene3d (3D WebGL)\n\n**\u9ED8\u8BA4\u5C31\u8BE5\u51FA UI**\uFF1A\u51FA\u73B0\u4E0B\u5217\u60C5\u51B5\u81F3\u5C11\u51FA\u4E00\u4E2A\u56F4\u680F\uFF1A\n- \u22653 \u6761\u5E76\u5217\u8981\u70B9 \u2192 `list`\uFF1B\u6570\u5B57\u5BF9\u6BD4 \u2192 `table`\uFF1B\u6307\u6807/\u8FDB\u5EA6/\u72B6\u6001 \u2192 `stat`/`progress`/`badge`\n- \u6B65\u9AA4/\u65F6\u95F4\u7EBF \u2192 `steps`/`timeline`/`mermaid`\uFF1B\u67B6\u6784/\u6D41\u7A0B \u2192 `diagram` \u6216 `mermaid`\uFF1B\u5355\u6761\u98CE\u9669/\u7ED3\u8BBA\u6458\u8981 \u2192 `callout`\uFF1B\u4EE3\u7801/\u6539\u52A8 \u2192 `code`/`diff`/`json`\n- \u884C\u5185\u5BCC\u6587\u672C\uFF1A\u652F\u6301\u516C\u5F0F\u3001`code`\u3001\u52A0\u7C97\u3001\u9AD8\u4EAE\u3001\u94FE\u63A5\uFF1B\u7981\u7528 Markdown table \u4E0E fenced code\uFF0C\u6539\u7528 table/code/diff/json\u3002\n- \u9ED8\u8BA4\u65E0\u5361\uFF1A\u5361\u7247\u7528\u4E8E\u5E76\u6392\u9879\u3001\u6570\u636E\u5BF9\u8C61\u6216\u9700\u5E95\u8272\u7684\u98CE\u9669\u6E05\u5355\u3002\n\n**\u53D1\u56DE\u7B54\u524D\u6700\u540E\u81EA\u68C0\u4E00\u6B21**\uFF1A\u6709\u6CA1\u6709 \u22653 \u6761\u5E76\u5217\u8981\u70B9\u3001\u4EFB\u4F55\u5BF9\u6BD4\u3001\u4EFB\u4F55\u6570\u5B57/\u6307\u6807\u3001\u4EFB\u4F55\u6B65\u9AA4\u6216\u6D41\u7A0B\uFF1F\u6709\u5C31\u5148\u8F6C\u6210\u7EC4\u4EF6\u3002**\u72B6\u6001\u6C47\u62A5\u3001\u8FDB\u5EA6\u8BF4\u660E\u3001\u63D0\u4EA4\u4E0E\u6539\u52A8\u6E05\u5355\u540C\u6837\u7B97**\u3002\n- \u8D8B\u52BF/\u5360\u6BD4 \u2192 `chart`\uFF08\u22648 \u70B9\uFF09\u6216 `echart`\uFF1B\u914D\u8272\u8DDF\u968F\u4E3B\u9898\uFF0C\u8BED\u4E49\u9700\u8981\u65F6\u624D\u7528 `palette`/`card.accent`\uFF1Bgrid \u5B50\u8282\u70B9\u7528 `\"span\":2` \u505A\u5BBD\u7A84\u6DF7\u6392\uFF1B\u6570\u636E\u591A\u65F6\u7ED9 `table`/`list` \u914D `input`(id)+`filter` \u5C31\u5730\u7B5B\u9009\u3002\n- \u591A\u7EC4\u4EF6\u56DE\u7B54\u5148\u5957 skill\u300C\u7F16\u6392\u8303\u5F0F\u300D\uFF0C\u522B\u4E00\u884C\u4E00\u4E2A\u5F80\u4E0B\u5806\uFF1B\u7AE0\u8282\u5206\u9694 `divider` \u5E26 `label`\u3002\n\n**\u5B57\u6BB5\u901F\u67E5**\uFF08\u5B8C\u6574\u89C1 genui skill\uFF09\uFF1A`stat` `{\"type\":\"stat\",\"label\",\"value\"}` \u00B7 `table` `{\"type\":\"table\",\"columns\":[...],\"rows\":[[...]]}` \u00B7 `progress` `{\"type\":\"progress\",\"value\":0-100}` \u00B7 `keyvalue` `{\"type\":\"keyvalue\",\"pairs\":[{\"key\",\"value\"}]}` \u00B7 `steps` `{\"type\":\"steps\",\"steps\":[{\"title\"}]}` \u00B7 `file-tree` `{\"type\":\"file-tree\",\"items\":[{\"name\",\"type\":\"file|dir\"}]}` \u00B7 `callout` `{\"type\":\"callout\",\"content\"}`\n**\u8282\u70B9\u89C4\u5219\uFF1A** \u7EC4\u4EF6\u8282\u70B9\u5FC5\u987B\u5E26\u5B57\u7B26\u4E32 `type`\uFF0C\u503C\u4E3A\u7EC4\u4EF6\u540D\uFF1B`file-tree.items[].type` \u8868\u793A `file` \u6216 `dir`\u3002\n\n**\u5B57\u6BB5\u540D\u5199\u9519 = \u8BE5\u7EC4\u4EF6\u88AB\u4E22\u5F03**\uFF08\u5176\u4F59\u7EC4\u4EF6\u7167\u5E38\u6E32\u67D3\uFF09\uFF1A`callout` \u6B63\u6587\u662F `content` \u4E0D\u662F text/desc\uFF1B`table` \u8981 `columns`+`rows` \u4E0D\u662F items\uFF1B`keyvalue` \u8BB0\u5F55\u662F `{key,value}` \u4E0D\u662F `{label,value}`\uFF1B`file-tree` \u8BB0\u5F55\u662F `{name,type}` \u4E0D\u662F `{label}`\uFF1Bcallout tone \u662F info/success/warning/error\uFF08\u65E0 danger\uFF09\u3002\u4E0D\u786E\u5B9A\u5C31\u8C03 `validate_dsh_ui`\u3002\n\nRules:\n- LANGUAGE: reply+UI=conversation language; schema fixed. NEVER infer it from prompt/skill/examples/tools. Replace `<user-language ...>`; never emit these placeholders literally.\n- JSON \u4E25\u683C\uFF1A\u574F\u7EC4\u4EF6\u88AB\u4E22\u5F03\uFF0C\u574F\u56F4\u680F\u53D8\u4EE3\u7801\u5757\uFF1B\u22653 \u8282\u70B9\u6216\u542B table \u65F6\u8C03 validate_dsh_ui\uFF0C\u6309\u8BCA\u65AD\u4FEE\u6539\u5E76\u91CD\u9A8C\uFF1B\u5C0F\u56F4\u680F\u5B57\u6BB5\u5B58\u7591\u4E5F\u5148\u9A8C\u8BC1\u3002\n- warning=block_markdown\uFF1A\u6309 replacement \u6539\u5199\u5E76\u91CD\u9A8C\u3002\n- \u89C4\u6A21: \u2264200 \u8282\u70B9\u3001\u5D4C\u5957\u22648 \u5C42\uFF08\u8D85\u51FA\u88AB\u622A\u65AD\uFF09\uFF1B\u4E00\u6761\u56DE\u7B54 3\u20138 \u4E2A\u7EC4\u4EF6\uFF0C\u4E00\u4E2A\u4E3B\u9898\u4E00\u4E2A\u4E3B\u7EC4\u4EF6\uFF1B3D mesh 1\u20135\uFF1Bplot \u7ED9\u5408\u7406 xMin/xMax\u3002\n- LOCAL-FIRST + actions: UI \u80FD\u81EA\u5DF1\u505A\u7684\u72B6\u6001\u53D8\u5316\uFF08\u5224\u5377\u3001\u5224\u9898\u3001\u91CD\u7F6E\u3001\u5C55\u5F00\u3001\u9009\u4E2D\uFF09\u5C31\u5730\u5B8C\u6210\uFF0C\u96F6\u5F80\u8FD4\uFF1Baction \u53EA\u7528\u4E8E\u5FC5\u987B\u6A21\u578B\u53C2\u4E0E\u7684\u4E8B\u3002\u4EA4\u4E92\u4EE5 [genui-action] name + \u7EC4\u4EF6\u6570\u636E\u56DE\u4F20\uFF0C\u5C4A\u65F6\u91CD\u6E32\u67D3\u66F4\u65B0 UI\uFF1B\u65E0 action \u7684\u6309\u94AE\u7981\u7528\u3002\n- Durable state: \u4EA4\u4E92\u72B6\u6001\u6309\u300C\u4F1A\u8BDD+\u5185\u5BB9\u6307\u7EB9\u300D\u6301\u4E45\u5316\u2014\u2014\u5237\u65B0/\u91CD\u653E\u6062\u590D\uFF1B\u76F8\u540C\u5185\u5BB9\u4FDD\u7559\uFF0C\u65B0\u5185\u5BB9\u91CD\u7F6E\u3002\n- \u5377\u5B50\u6A21\u5F0F: \u6BCF\u9898\u4E00\u4E2A radio\uFF08group+answer+explanation\uFF09+ \u4E00\u4E2A submit\uFF08groups \u5168\u5217\uFF09\uFF0C\u672C\u5730\u5224\u5206\u3002\n- Secrets ban: \u4E0D\u7D22\u53D6\u5BC6\u7801\u3001API Key\u3001Token\u3001\u6062\u590D\u7801\uFF1B\u9700\u8981\u65F6\u62D2\u7EDD\u5E76\u89E3\u91CA\u3002\n- Tool channel: render_ui \u5DE5\u5177\u628A\u540C\u4E00 spec \u6E32\u67D3\u4E3A\u5DE5\u5177\u884C\u5361\u7247\uFF1B\u56F4\u680F\u7528\u4E8E\u56DE\u7B54\u5185\u8054 UI\u3002\n- \u56F4\u680F\u4F4D\u7F6E\uFF1A`dsh-ui` \u53EA\u5199\u5728**\u56DE\u7B54\u6B63\u6587**\uFF1B\u5199\u5728 reasoning/\u601D\u8003\u5757\u91CC\u4E0D\u6E32\u67D3\u3001\u7528\u6237\u770B\u4E0D\u5230\u2014\u2014\u601D\u8003\u91CC\u9A8C\u8BC1\u597D spec\uFF0C\u6B63\u6587\u518D\u8F93\u51FA\u540C\u4E00\u4EFD\u3002\n- Panel: \"panel\":true \u53EA\u6E32\u67D3\u8FDB\u4F1A\u8BDD\u9762\u677F dock \u5E76\u539F\u5730\u66F4\u65B0\uFF1B\"append\":true \u8FFD\u52A0\u5408\u5E76\uFF1B\u4E0A\u9650 200 \u8282\u70B9/200 \u6B21\u8FFD\u52A0\uFF0C\u6EE1\u4E86\u53D1 replace \u91CD\u5EFA\u3002\u9762\u677F\u6765\u7684 [genui-action] \u53EA\u56DE\u4E00\u4E2A panel:true \u56F4\u680F + \u81F3\u591A\u4E00\u884C 10 \u5B57\u5185\u786E\u8BA4\u3002";
|
|
17
17
|
/**
|
|
18
18
|
* Register the GenUI output-language section and the render_ui tool.
|
|
19
19
|
* @param ctx - cordis context.
|
|
20
20
|
*/
|
|
21
|
-
export declare const name = "@
|
|
21
|
+
export declare const name = "@sparkelf/dsh-genui";
|
|
22
22
|
export declare const inject: string[];
|
|
23
23
|
/**
|
|
24
24
|
* Plugin config as the host passes it (unvalidated: the node half deliberately
|
|
@@ -31,5 +31,9 @@ export interface GenuiPluginConfig {
|
|
|
31
31
|
* 每回合和每个围栏正文最多请求一次,子代理不触发,每次修正请求会消耗模型步数。
|
|
32
32
|
*/
|
|
33
33
|
fenceFeedback?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 是否注册 render_ui 模型工具。默认开启,设置为 false 时关闭;不影响 validate_dsh_ui 和 dsh-ui 围栏渲染。
|
|
36
|
+
*/
|
|
37
|
+
renderUiTool?: boolean;
|
|
34
38
|
}
|
|
35
39
|
export declare function apply(ctx: Context, config?: GenuiPluginConfig): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 把宿主的围栏语言标记规范化成 GenUI 能识别的写法。
|
|
3
|
+
*
|
|
4
|
+
* @param lang - 宿主 markdown 里的原始 language(可能含尾部标点或大小写差异)
|
|
5
|
+
* @returns 规范化后的语言名;无法规范化时返回输入本身
|
|
6
|
+
*/
|
|
7
|
+
export declare function normalizeFenceLanguage(lang: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* 判断语言标记是否指向 GenUI 围栏。
|
|
10
|
+
*
|
|
11
|
+
* @param lang - 宿主暴露的围栏语言(`null` = 围栏没有语言)
|
|
12
|
+
* @returns 规范化为 `dsh-ui` 时返回 true
|
|
13
|
+
*/
|
|
14
|
+
export declare function isGenuiFenceLanguage(lang: string | null | undefined): boolean;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* skips mismatched closers (a `]` mistyped as `}`, duplicated terminators).
|
|
15
15
|
* SETTLED MESSAGES ONLY: a streaming half must never be adopted as a
|
|
16
16
|
* finished prefix.
|
|
17
|
-
* @module @
|
|
17
|
+
* @module @sparkelf/dsh-genui/shared/fence-repair
|
|
18
18
|
*/
|
|
19
19
|
/** A fence body counts as complete when it parses as a whole JSON value. */
|
|
20
20
|
export declare function isCompleteJson(raw: string): boolean;
|
|
@@ -31,6 +31,7 @@ export declare function describeJsonFailure(raw: string): string | null;
|
|
|
31
31
|
* with ASCII quotes (e.g. `对"别名路径"判定失败`), which makes JSON.parse
|
|
32
32
|
* fail near that quote with "Expected ',' or ']'...".
|
|
33
33
|
* 2. Trailing commas before `}` / `]` or at end of input.
|
|
34
|
+
* 3. Valueless object keys immediately before a complete key-and-colon pair.
|
|
34
35
|
*
|
|
35
36
|
* A shared grammar-aware scan distinguishes object keys from values and
|
|
36
37
|
* checks the continuation after a potential string terminator. Ambiguous
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 使用浏览器 renderer 与 Node 侧最终回复反馈守卫共用的流程解析 dsh-ui 围栏正文。
|
|
3
|
-
* @module @
|
|
3
|
+
* @module @sparkelf/dsh-genui/shared/fence-resolve
|
|
4
4
|
*/
|
|
5
5
|
import { type GenuiProcessResult } from '../client/guard.ts';
|
|
6
6
|
import type { GenuiSpec } from '../client/spec.ts';
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkelf/dsh-genui",
|
|
3
3
|
"description": "GenUI for DeepSeek Harness: interactive UI components rendered inline in assistant replies via the ```dsh-ui fence — layout, charts, plots, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model. Ships the fence-teaching host plugin, the browser renderer (client half), and the genui skill.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0-sparkelf.2",
|
|
5
|
+
"icon": "./assets/genui-icon.svg",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "lib/index.js",
|
|
7
8
|
"types": "lib/types/plugin/index.d.ts",
|
|
@@ -10,15 +11,12 @@
|
|
|
10
11
|
"types": "./lib/types/plugin/index.d.ts",
|
|
11
12
|
"default": "./lib/index.js"
|
|
12
13
|
},
|
|
13
|
-
"./invariant": {
|
|
14
|
-
"types": "./lib/types/plugin/invariant.d.ts",
|
|
15
|
-
"default": "./lib/invariant.js"
|
|
16
|
-
},
|
|
17
14
|
"./client": {
|
|
18
15
|
"types": "./lib/types/client/index.d.ts",
|
|
19
16
|
"default": "./lib/client.js"
|
|
20
17
|
},
|
|
21
18
|
"./package.json": "./package.json",
|
|
19
|
+
"./icon": "./assets/genui-icon.svg",
|
|
22
20
|
"./embed": "./src/client/embed.ts",
|
|
23
21
|
"./assets/mermaid": "./src/client/asset-mermaid.ts",
|
|
24
22
|
"./assets/three": "./src/client/asset-three.ts",
|
|
@@ -28,13 +26,13 @@
|
|
|
28
26
|
"./skill": "./SKILL.md"
|
|
29
27
|
},
|
|
30
28
|
"files": [
|
|
29
|
+
"assets/genui-icon.svg",
|
|
30
|
+
"assets/genui-logo.svg",
|
|
31
31
|
"lib/index.js",
|
|
32
|
-
"lib/invariant.js",
|
|
33
32
|
"lib/client.js",
|
|
34
33
|
"lib/assets/mermaid.js",
|
|
35
34
|
"lib/assets/three.js",
|
|
36
35
|
"lib/types/plugin/index.d.ts",
|
|
37
|
-
"lib/types/plugin/invariant.d.ts",
|
|
38
36
|
"lib/types/client/index.d.ts",
|
|
39
37
|
"SKILL.md",
|
|
40
38
|
"README.md",
|
|
@@ -47,7 +45,9 @@
|
|
|
47
45
|
"tsconfig.json",
|
|
48
46
|
"tsdown.config.ts",
|
|
49
47
|
"lib/assets/echarts-core.js",
|
|
50
|
-
"lib/assets/echarts-full.js"
|
|
48
|
+
"lib/assets/echarts-full.js",
|
|
49
|
+
"ICON-NAMES.md",
|
|
50
|
+
"THIRD_PARTY_NOTICES.md"
|
|
51
51
|
],
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
@@ -75,83 +75,83 @@
|
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
78
|
-
"@deepseek-ai/dsh-agent": "^0.
|
|
79
|
-
"@deepseek-ai/dsh-
|
|
80
|
-
"@deepseek-ai/dsh-
|
|
81
|
-
"@deepseek-ai/dsh-client-
|
|
82
|
-
"@deepseek-ai/dsh-client-ui-
|
|
83
|
-
"@deepseek-ai/dsh-client-ui-
|
|
84
|
-
"@deepseek-ai/dsh-client-ui-
|
|
85
|
-
"@deepseek-ai/dsh-client-ui-
|
|
86
|
-
"@deepseek-ai/dsh-client-ui-
|
|
87
|
-
"@deepseek-ai/dsh-client-ui-
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-
|
|
89
|
-
"@deepseek-ai/dsh-
|
|
90
|
-
"@deepseek-ai/dsh-llm": "^0.
|
|
91
|
-
"@deepseek-ai/dsh-session": "^0.
|
|
92
|
-
"@deepseek-ai/dsh-skill": "^0.
|
|
93
|
-
"@deepseek-ai/dsh-system-prompt": "^0.
|
|
94
|
-
"@deepseek-ai/dsh-tools": "^0.
|
|
95
|
-
"@deepseek-ai/dsh-util-values": "^0.
|
|
78
|
+
"@deepseek-ai/dsh-agent": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-agent-loop": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
80
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-client-store": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-client-ui-chat": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-tool": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-llm": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-session": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-skill": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-tools": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-util-values": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
96
96
|
"react": "^18.0.0 || ^19.0.0"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@deepseek-ai/cordis": "4.0.2",
|
|
100
100
|
"@deepseek-ai/cordis-plugin-include": "1.0.7",
|
|
101
101
|
"@deepseek-ai/cordis-plugin-loader": "1.0.3",
|
|
102
|
-
"@deepseek-ai/dsh-agent": "0.1
|
|
103
|
-
"@deepseek-ai/dsh-agent-default-model": "0.1
|
|
104
|
-
"@deepseek-ai/dsh-agent-
|
|
105
|
-
"@deepseek-ai/dsh-api-gateway": "0.1
|
|
106
|
-
"@deepseek-ai/dsh-api-session-controller": "0.1
|
|
107
|
-
"@deepseek-ai/dsh-atomic-write": "0.1
|
|
108
|
-
"@deepseek-ai/dsh-attachment": "0.1
|
|
109
|
-
"@deepseek-ai/dsh-brand": "0.1
|
|
110
|
-
"@deepseek-ai/dsh-client-connection": "0.1
|
|
111
|
-
"@deepseek-ai/dsh-client-store": "0.1
|
|
112
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.1
|
|
113
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.1
|
|
114
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.1
|
|
115
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.1
|
|
116
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.1
|
|
117
|
-
"@deepseek-ai/dsh-client-ui-session": "0.1
|
|
118
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1
|
|
119
|
-
"@deepseek-ai/dsh-client-ui-tool": "0.1
|
|
120
|
-
"@deepseek-ai/dsh-
|
|
121
|
-
"@deepseek-ai/dsh-
|
|
122
|
-
"@deepseek-ai/dsh-
|
|
123
|
-
"@deepseek-ai/dsh-
|
|
124
|
-
"@deepseek-ai/dsh-
|
|
125
|
-
"@deepseek-ai/dsh-
|
|
126
|
-
"@deepseek-ai/dsh-
|
|
127
|
-
"@deepseek-ai/dsh-
|
|
128
|
-
"@deepseek-ai/dsh-
|
|
129
|
-
"@deepseek-ai/dsh-
|
|
130
|
-
"@deepseek-ai/dsh-
|
|
131
|
-
"@deepseek-ai/dsh-
|
|
132
|
-
"@deepseek-ai/dsh-session": "0.1
|
|
133
|
-
"@deepseek-ai/dsh-session-
|
|
134
|
-
"@deepseek-ai/dsh-session-
|
|
135
|
-
"@deepseek-ai/dsh-session-
|
|
136
|
-
"@deepseek-ai/dsh-
|
|
137
|
-
"@deepseek-ai/dsh-
|
|
138
|
-
"@deepseek-ai/dsh-
|
|
139
|
-
"@deepseek-ai/dsh-
|
|
140
|
-
"@deepseek-ai/dsh-
|
|
141
|
-
"@deepseek-ai/dsh-
|
|
142
|
-
"@deepseek-ai/dsh-
|
|
143
|
-
"@deepseek-ai/dsh-
|
|
144
|
-
"@deepseek-ai/dsh-
|
|
145
|
-
"@deepseek-ai/dsh-
|
|
146
|
-
"@deepseek-ai/dsh-
|
|
147
|
-
"@deepseek-ai/dsh-
|
|
148
|
-
"@deepseek-ai/dsh-
|
|
149
|
-
"@deepseek-ai/dsh-
|
|
150
|
-
"@deepseek-ai/dsh-util-
|
|
151
|
-
"@deepseek-ai/dsh-util-
|
|
152
|
-
"@deepseek-ai/dsh-util-
|
|
153
|
-
"@deepseek-ai/dsh-
|
|
154
|
-
"@
|
|
102
|
+
"@deepseek-ai/dsh-agent": "0.2.1-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.1-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.1-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-atomic-write": "0.2.1-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-brand": "0.2.1-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-rc.1",
|
|
115
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.1",
|
|
116
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.1",
|
|
117
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.1",
|
|
118
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.1",
|
|
119
|
+
"@deepseek-ai/dsh-client-ui-tool": "0.2.1-rc.1",
|
|
120
|
+
"@deepseek-ai/dsh-credentials": "0.2.1-rc.1",
|
|
121
|
+
"@deepseek-ai/dsh-deque": "0.2.1-rc.1",
|
|
122
|
+
"@deepseek-ai/dsh-file-reference": "0.2.1-rc.1",
|
|
123
|
+
"@deepseek-ai/dsh-home-paths": "0.2.1-rc.1",
|
|
124
|
+
"@deepseek-ai/dsh-jobs": "0.2.1-rc.1",
|
|
125
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.1",
|
|
126
|
+
"@deepseek-ai/dsh-native-command": "0.2.1-rc.1",
|
|
127
|
+
"@deepseek-ai/dsh-sandbox": "0.2.1-rc.1",
|
|
128
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.1",
|
|
129
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.1",
|
|
130
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.1",
|
|
131
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.1-rc.1",
|
|
132
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.1",
|
|
133
|
+
"@deepseek-ai/dsh-session-projection-cache": "0.2.1-rc.1",
|
|
134
|
+
"@deepseek-ai/dsh-session-query": "0.2.1-rc.1",
|
|
135
|
+
"@deepseek-ai/dsh-session-title": "0.2.1-rc.1",
|
|
136
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.1",
|
|
137
|
+
"@deepseek-ai/dsh-skill": "0.2.1-rc.1",
|
|
138
|
+
"@deepseek-ai/dsh-storage": "0.2.1-rc.1",
|
|
139
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.1-rc.1",
|
|
140
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.1",
|
|
141
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.1",
|
|
142
|
+
"@deepseek-ai/dsh-timeout": "0.2.1-rc.1",
|
|
143
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.1-rc.1",
|
|
144
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.1",
|
|
145
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.1",
|
|
146
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.1-rc.1",
|
|
147
|
+
"@deepseek-ai/dsh-user-approval": "0.2.1-rc.1",
|
|
148
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.1-rc.1",
|
|
149
|
+
"@deepseek-ai/dsh-util-crypto": "0.2.1-rc.1",
|
|
150
|
+
"@deepseek-ai/dsh-util-time": "0.2.1-rc.1",
|
|
151
|
+
"@deepseek-ai/dsh-util-values": "0.2.1-rc.1",
|
|
152
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-rc.1",
|
|
153
|
+
"@deepseek-ai/dsh-workspace": "0.2.1-rc.1",
|
|
154
|
+
"@shikijs/langs": "4.5.0",
|
|
155
155
|
"@testing-library/dom": "^10.4.1",
|
|
156
156
|
"@testing-library/react": "^16.0.0",
|
|
157
157
|
"@types/katex": "0.16.8",
|
|
@@ -159,20 +159,31 @@
|
|
|
159
159
|
"@types/react": "^18.0.0",
|
|
160
160
|
"@types/react-dom": "^18.0.0",
|
|
161
161
|
"@types/three": "^0.185.4",
|
|
162
|
+
"anser": "2.3.5",
|
|
163
|
+
"clsx": "2.1.1",
|
|
164
|
+
"diff": "9.0.0",
|
|
162
165
|
"echarts": "^5.6.0",
|
|
163
166
|
"echarts-wordcloud": "2.1.0",
|
|
167
|
+
"immer": "11.1.21",
|
|
164
168
|
"jsdom": "^25.0.0",
|
|
165
169
|
"lightningcss": "^1.25.0",
|
|
170
|
+
"mdast-util-gfm": "3.1.0",
|
|
171
|
+
"mdast-util-math": "3.0.0",
|
|
166
172
|
"mermaid": "11.16.0",
|
|
173
|
+
"micromark-extension-gfm": "3.0.0",
|
|
174
|
+
"micromark-extension-math": "3.1.0",
|
|
167
175
|
"react-dom": "^18.3.1",
|
|
168
176
|
"semver": "^7.8.5",
|
|
177
|
+
"shiki": "4.5.0",
|
|
178
|
+
"simple-icons": "16.35.0",
|
|
169
179
|
"three": "^0.180.0",
|
|
170
180
|
"tsdown": "^0.22.2",
|
|
171
181
|
"tsx": "^4.0.0",
|
|
172
182
|
"typescript": "^5.6.0",
|
|
173
183
|
"vite": "^6.0.0",
|
|
174
184
|
"vitest": "^3.0.0",
|
|
175
|
-
"yaml": "^2.4.2"
|
|
185
|
+
"yaml": "^2.4.2",
|
|
186
|
+
"zustand": "5.0.15"
|
|
176
187
|
},
|
|
177
188
|
"scripts": {
|
|
178
189
|
"build": "node scripts/clean.mjs && tsc -p tsconfig.json && tsdown",
|
|
@@ -192,6 +203,7 @@
|
|
|
192
203
|
},
|
|
193
204
|
"packageManager": "pnpm@11.7.0",
|
|
194
205
|
"engines": {
|
|
206
|
+
"dsh": "^0.2.0-rc.1 || ^0.2.1-rc.1",
|
|
195
207
|
"node": "^22.19.0 || >=24.0.0",
|
|
196
208
|
"pnpm": ">=11.7.0 <12"
|
|
197
209
|
},
|
|
@@ -226,9 +238,6 @@
|
|
|
226
238
|
"@deepseek-ai/dsh-client-ui-tool": {
|
|
227
239
|
"optional": true
|
|
228
240
|
},
|
|
229
|
-
"@deepseek-ai/dsh-invariants": {
|
|
230
|
-
"optional": true
|
|
231
|
-
},
|
|
232
241
|
"@deepseek-ai/dsh-llm": {
|
|
233
242
|
"optional": true
|
|
234
243
|
},
|