@aqian0/dsh-renderer 0.0.0-stage → 0.1.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.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -2
  3. package/cordis.patch.yml +4 -0
  4. package/icon.svg +5 -0
  5. package/lib/client.js +738 -0
  6. package/lib/config.js +92 -0
  7. package/lib/host/artifact-tool.js +141 -0
  8. package/lib/host/media-bridge.js +102 -0
  9. package/lib/index.js +101 -0
  10. package/lib/shared/config-defaults.js +88 -0
  11. package/lib/shared/content-complexity.js +748 -0
  12. package/lib/shared/media-extractor.js +154 -0
  13. package/lib/shared/sandbox-core.js +217 -0
  14. package/lib/shared/sanitize.js +539 -0
  15. package/lib/types/client/artifact-toolview.d.ts +17 -0
  16. package/lib/types/client/code-view.d.ts +22 -0
  17. package/lib/types/client/document-card.d.ts +33 -0
  18. package/lib/types/client/fence-layer.d.ts +26 -0
  19. package/lib/types/client/highlight.d.ts +24 -0
  20. package/lib/types/client/icons.d.ts +10 -0
  21. package/lib/types/client/locales.d.ts +54 -0
  22. package/lib/types/client/sandbox.d.ts +23 -0
  23. package/lib/types/client/styles.d.ts +20 -0
  24. package/lib/types/client/svg-view.d.ts +19 -0
  25. package/lib/types/client/theme.d.ts +20 -0
  26. package/lib/types/client/turn-media.d.ts +10 -0
  27. package/lib/types/client/types.d.ts +181 -0
  28. package/lib/types/client/workbench.d.ts +24 -0
  29. package/lib/types/client.d.ts +10 -0
  30. package/lib/types/config.d.ts +48 -0
  31. package/lib/types/host/artifact-tool.d.ts +53 -0
  32. package/lib/types/host/media-bridge.d.ts +47 -0
  33. package/lib/types/index.d.ts +29 -0
  34. package/lib/types/shared/config-defaults.d.ts +54 -0
  35. package/lib/types/shared/content-complexity.d.ts +88 -0
  36. package/lib/types/shared/media-extractor.d.ts +42 -0
  37. package/lib/types/shared/sandbox-core.d.ts +101 -0
  38. package/lib/types/shared/sanitize.d.ts +97 -0
  39. package/locale/en.json +6 -0
  40. package/locale/zh.json +6 -0
  41. package/package.json +91 -4
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Pure content complexity analysis, document title extraction, language labels,
3
+ * and deterministic artifact identity helpers across HTML, SVG, Markdown, data,
4
+ * and general code fences.
5
+ *
6
+ * Used to decide when a Markdown fence in the Chat flow is too complex or long
7
+ * for comfortable inline reading and should instead render as a DSH-styled
8
+ * Document Expand Card that opens in the right Sidebar workbench.
9
+ *
10
+ * @module dsh-renderer/shared/content-complexity
11
+ */
12
+ /** Artifact presentation category used across the Chat card and Sidebar workbench. */
13
+ export type ArtifactContentKind = 'html' | 'svg' | 'code';
14
+ /** Broad document family used for complexity scoring and card iconography. */
15
+ export type ContentCategory = 'html' | 'svg' | 'markdown' | 'data' | 'diff' | 'code';
16
+ /** Individual heuristic signals contributing to complexity classification. */
17
+ export type ContentComplexityReason = 'meta-override' | 'large-size' | 'many-lines' | 'full-document' | 'substantial-script' | 'heavy-runtime-api' | 'external-assets' | 'substantial-style' | 'viewport-layout' | 'rich-dom' | 'app-landmarks' | 'interactive-graphics' | 'rich-vector' | 'text-heavy-diagram' | 'large-canvas' | 'vector-defs' | 'dense-code' | 'wide-lines' | 'structured-data' | 'multi-section-doc' | 'large-diff';
18
+ /** Measured metrics extracted from a fence body. */
19
+ export interface ContentComplexityMetrics {
20
+ readonly bytes: number;
21
+ readonly lines: number;
22
+ readonly maxLineLength: number;
23
+ readonly tagCount?: number | undefined;
24
+ readonly landmarkCount?: number | undefined;
25
+ readonly scriptChars?: number | undefined;
26
+ readonly styleChars?: number | undefined;
27
+ readonly primitiveCount?: number | undefined;
28
+ readonly textNodeCount?: number | undefined;
29
+ readonly symbolCount?: number | undefined;
30
+ readonly headingCount?: number | undefined;
31
+ }
32
+ /** Result of classifying whether a fence should collapse into a Sidebar document card. */
33
+ export interface ContentComplexityAnalysis {
34
+ readonly isComplex: boolean;
35
+ readonly category: ContentCategory;
36
+ readonly score: number;
37
+ readonly reasons: readonly ContentComplexityReason[];
38
+ readonly metrics: ContentComplexityMetrics;
39
+ }
40
+ /** Minimum composite score required to collapse a fence into a Sidebar document card. */
41
+ export declare const COMPLEX_CONTENT_SCORE_THRESHOLD = 6;
42
+ /** Classify a lowercased fence language into a coarse content category. */
43
+ export declare function classifyContentCategory(lang: string): ContentCategory;
44
+ /** Return a clean human-facing label for a fence language identifier. */
45
+ export declare function formatFenceLanguageLabel(lang: string): string;
46
+ /** Return an appropriate download file extension for an artifact kind + language. */
47
+ export declare function fileExtensionForFence(kind: ArtifactContentKind, lang?: string): string;
48
+ /**
49
+ * Analyze an HTML snippet to determine whether it is complex enough to display
50
+ * as a compact Document Expand Card in the Chat flow instead of an inline iframe.
51
+ */
52
+ export declare function analyzeHtmlComplexity(code: string, meta?: string): ContentComplexityAnalysis;
53
+ /**
54
+ * Analyze an SVG graphic to determine whether it is a large or dense diagram/illustration
55
+ * better inspected in the full-width right Sidebar workbench.
56
+ */
57
+ export declare function analyzeSvgComplexity(code: string, meta?: string): ContentComplexityAnalysis;
58
+ /**
59
+ * Analyze a general code, Markdown, structured-data, or diff fence to decide
60
+ * whether it is overly long/complex for the Chat flow and should move to the Sidebar.
61
+ */
62
+ export declare function analyzeCodeComplexity(lang: string, code: string, meta?: string): ContentComplexityAnalysis;
63
+ /** Unified complexity analyzer dispatching HTML, SVG, and general code/document fences. */
64
+ export declare function analyzeFenceComplexity(lang: string, code: string, meta?: string): ContentComplexityAnalysis;
65
+ /**
66
+ * Decide whether a still-streaming fence should collapse early into a "Generating…"
67
+ * Document Expand Card instead of flooding the Chat flow with hundreds of raw lines.
68
+ *
69
+ * Triggers immediately on explicit `sidebar`/`artifact`/`document` meta hints, full
70
+ * HTML document openings (`<!doctype html>` or `<html>` + `<head>`/`<style>`), large
71
+ * SVG canvases, or as soon as the partial body crosses the standard complexity threshold.
72
+ */
73
+ export declare function shouldCollapseWhileStreaming(lang: string, code: string, meta?: string): boolean;
74
+ /**
75
+ * Derive a concise human-readable document title from fence metadata or content structure
76
+ * (`title`/`file`/`filename`/`path` meta, `<title>`, `<h1>`, Markdown `# Heading`, or
77
+ * leading path comment / primary symbol) before falling back to a localized default.
78
+ */
79
+ export declare function deriveFenceDocumentTitle(lang: string, code: string, meta?: string, fallback?: string): string;
80
+ /** Format a UTF-8 byte count into a compact human-readable size label (e.g. `9.4 KB`). */
81
+ export declare function formatByteSize(bytes: number): string;
82
+ /**
83
+ * Compute a deterministic, collision-resistant artifact id from kind, language, and code.
84
+ *
85
+ * Ensures re-clicking the same document card focuses the existing right-Sidebar tab
86
+ * instead of spawning duplicates, and lets restored tabs reconnect across reloads.
87
+ */
88
+ export declare function computeArtifactId(kind: ArtifactContentKind, code: string, lang?: string): string;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Non-destructive prose media extractor for the `conversation.chat.turnTail` fallback.
3
+ *
4
+ * DSH's built-in `MarkdownText` currently rejects `data:image/*` Markdown image
5
+ * destinations and renders raw HTML (`<img>`, `<svg>`) as literal escaped text.
6
+ * This module scans Assistant prose *outside* code fences and inline code spans
7
+ * to recover those visual items without duplicating fenced `html`/`svg` blocks.
8
+ *
9
+ * @module dsh-renderer/shared/media-extractor
10
+ */
11
+ /** Extracted image or SVG item ready for fallback presentation in `turnTail`. */
12
+ export interface ExtractedMediaItem {
13
+ /** Stable deduplication key derived from item kind and normalized content. */
14
+ readonly key: string;
15
+ /** Media kind: raster/data-URI/HTTP image vs standalone inline SVG. */
16
+ readonly kind: 'image' | 'svg';
17
+ /** Safe `data:image/*` or `http(s)://` URL (for `kind: 'image'`), or sanitized SVG markup (for `kind: 'svg'`). */
18
+ readonly source: string;
19
+ /** Human-readable caption or alt text. */
20
+ readonly alt: string;
21
+ }
22
+ /** Options bounding fallback media extraction. */
23
+ export interface ExtractMediaOptions {
24
+ /** Maximum UTF-8 bytes allowed for any single extracted item. */
25
+ readonly maxContentBytes: number;
26
+ /** Maximum total items returned per Turn. */
27
+ readonly maxItems?: number | undefined;
28
+ }
29
+ /**
30
+ * Blank out fenced code blocks (`` ``` `` or `~~~`) and inline code spans (`` `...` ``)
31
+ * while preserving string length so downstream prose scanning never matches code examples
32
+ * or fences already handled by `conversation.chat.markdown.fence`.
33
+ */
34
+ export declare function stripMarkdownCode(markdown: string): string;
35
+ /**
36
+ * Extract fallback media items (`data:image/*` Markdown images, raw HTML `<img>` tags,
37
+ * and raw inline `<svg>...</svg>` blocks) from Assistant prose.
38
+ *
39
+ * Returns items in document appearance order, deduplicated and bounded by `maxContentBytes`
40
+ * and `maxItems`.
41
+ */
42
+ export declare function extractFallbackMedia(markdown: string, options: ExtractMediaOptions): ExtractedMediaItem[];
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Pure runtime state primitives shared by the sandbox iframe host and Artifact workbench:
3
+ * - LRU pool capping concurrently active interactive sandboxes
4
+ * - Strict `postMessage` frame parser with token verification and height clamping
5
+ * - Session-aware in-memory Artifact store with subscription support
6
+ *
7
+ * @module dsh-renderer/shared/sandbox-core
8
+ */
9
+ /** Parsed, validated message emitted by a sandboxed interactive iframe. */
10
+ export type ParsedSandboxMessage = {
11
+ readonly type: 'resize';
12
+ readonly height: number;
13
+ } | {
14
+ readonly type: 'error';
15
+ readonly message: string;
16
+ };
17
+ /**
18
+ * Validate and parse a `MessageEvent.data` payload from a sandboxed iframe.
19
+ *
20
+ * Rejects anything whose `token` does not match the instance's secret token or
21
+ * whose `type` is outside the explicit two-event allowlist (`resize` / `error`).
22
+ */
23
+ export declare function parseSandboxMessage(data: unknown, expectedToken: string, minHeight: number, maxHeight: number): ParsedSandboxMessage | null;
24
+ /**
25
+ * LRU pool that bounds the number of simultaneously live interactive iframe sandboxes.
26
+ *
27
+ * Activating a new sandbox past `capacity` puts the least-recently-used sandbox
28
+ * to sleep via its registered `onSleep` callback so memory and Blob URLs stay bounded
29
+ * across long conversations.
30
+ */
31
+ export declare class SandboxLruPool {
32
+ private readonly capacity;
33
+ private readonly active;
34
+ constructor(capacity: number);
35
+ /** Mark `id` active (or refresh its recency) and evict the oldest entry when full. */
36
+ activate(id: string, onSleep: () => void): void;
37
+ /** Refresh recency of an already active sandbox without changing its callback. */
38
+ touch(id: string): void;
39
+ /** Remove `id` from the pool without invoking its sleep callback (e.g. normal unmount). */
40
+ release(id: string): void;
41
+ /** Put every active sandbox to sleep and clear the pool (e.g. plugin teardown). */
42
+ sleepAll(): void;
43
+ /** Whether `id` is currently active in the pool. */
44
+ isActive(id: string): boolean;
45
+ /** Current number of active sandboxes. */
46
+ size(): number;
47
+ }
48
+ /** Presentation kind of an artifact opened inside the right Sidebar workbench or fullscreen modal. */
49
+ export type ArtifactKind = 'html' | 'svg' | 'code';
50
+ /** Stored artifact payload opened inside the right Sidebar workbench or fullscreen modal. */
51
+ export interface ArtifactRecord {
52
+ readonly id: string;
53
+ readonly address: string;
54
+ readonly kind: ArtifactKind;
55
+ readonly lang?: string | undefined;
56
+ readonly title: string;
57
+ readonly code: string;
58
+ readonly sessionId?: string | undefined;
59
+ }
60
+ /** Resource URI prefix used for right-Sidebar artifact tabs. */
61
+ export declare const ARTIFACT_RESOURCE_PREFIX = "dsh-resource://dsh-renderer/artifact/";
62
+ /** Build a canonical `dsh-resource://` address for one Artifact id. */
63
+ export declare function artifactAddressFor(id: string): string;
64
+ /** Extract the Artifact id from a `dsh-resource://dsh-renderer/artifact/<id>` address. */
65
+ export declare function parseArtifactAddress(address: string): string | null;
66
+ /**
67
+ * Bounded in-memory store for Artifacts opened in the right Sidebar workbench
68
+ * or fullscreen modal fallback.
69
+ */
70
+ export declare class ArtifactStore {
71
+ private readonly maxEntries;
72
+ private readonly records;
73
+ private readonly listeners;
74
+ private modalArtifactId;
75
+ private seq;
76
+ constructor(maxEntries?: number);
77
+ /** Insert or update an artifact, returning the stored record. */
78
+ put(input: {
79
+ readonly id?: string | undefined;
80
+ readonly kind: ArtifactKind;
81
+ readonly lang?: string | undefined;
82
+ readonly title: string;
83
+ readonly code: string;
84
+ readonly sessionId?: string | undefined;
85
+ }): ArtifactRecord;
86
+ /** Look up one artifact by id. */
87
+ get(id: string): ArtifactRecord | undefined;
88
+ /** Look up one artifact by its `dsh-resource://` address. */
89
+ getByAddress(address: string): ArtifactRecord | undefined;
90
+ /** Open an artifact inside the fullscreen modal fallback. */
91
+ openModal(id: string): void;
92
+ /** Close the fullscreen modal fallback. */
93
+ closeModal(): void;
94
+ /** Current artifact displayed in the fullscreen modal fallback, if any. */
95
+ getModalArtifact(): ArtifactRecord | undefined;
96
+ /** Subscribe to store updates (`useSyncExternalStore` compatible). */
97
+ subscribe(listener: () => void): () => void;
98
+ /** Drop all artifacts and listeners on plugin teardown. */
99
+ clear(): void;
100
+ private emit;
101
+ }
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Zero-dependency HTML/SVG sanitizer, CSP builder, and sandbox document generator.
3
+ *
4
+ * Security is layered:
5
+ * 1. A character-level HTML tag/attribute scanner strips dangerous elements, event
6
+ * handlers, unsafe URI schemes, declarative shadow roots, and unsafe CSS constructs.
7
+ * 2. Every generated static or interactive document prepends a strict
8
+ * Content-Security-Policy `<meta>` element before any author markup.
9
+ * 3. Callers mount static previews inside `<iframe sandbox="">` and interactive
10
+ * previews inside a Blob URL `<iframe sandbox="allow-scripts">` (never
11
+ * `allow-same-origin`).
12
+ *
13
+ * @module dsh-renderer/shared/sanitize
14
+ */
15
+ /** Theme tokens injected into sandboxed HTML documents so previews follow light/dark mode. */
16
+ export interface SandboxThemeTokens {
17
+ readonly scheme: 'light' | 'dark';
18
+ readonly bg: string;
19
+ readonly fg: string;
20
+ readonly border: string;
21
+ readonly accent: string;
22
+ }
23
+ /** Options controlling HTML sanitization and CSP generation. */
24
+ export interface HtmlDocumentOptions {
25
+ /** Allow external HTTPS stylesheets, scripts (in interactive mode), images, and fonts. */
26
+ readonly allowExternalResources: boolean;
27
+ /** Optional host theme tokens mirrored into the document `:root`. */
28
+ readonly theme?: SandboxThemeTokens | undefined;
29
+ /**
30
+ * Optional per-instance bridge pair (`token` + cryptographic `nonce`) enabling
31
+ * exact content-height measurement and live theme sync in static mode while
32
+ * keeping all author scripts strictly forbidden via `script-src 'nonce-...'`.
33
+ */
34
+ readonly staticBridge?: {
35
+ readonly token: string;
36
+ readonly nonce: string;
37
+ } | undefined;
38
+ }
39
+ /** Additional options for interactive sandbox documents with height/theme postMessage bridging. */
40
+ export interface InteractiveDocumentOptions extends HtmlDocumentOptions {
41
+ /** Per-instance opaque token required on every postMessage between iframe and host. */
42
+ readonly token: string;
43
+ }
44
+ /** Measure exact UTF-8 byte length without requiring Node's `Buffer` or a global `TextEncoder`. */
45
+ export declare function utf8ByteLength(text: string): number;
46
+ /** Escape text for safe inclusion inside HTML text nodes or double-quoted attributes. */
47
+ export declare function escapeHtml(value: string): string;
48
+ /**
49
+ * Validate whether an authored URL is safe for the given HTML attribute in static mode.
50
+ *
51
+ * @param attr - lowercased attribute name.
52
+ * @param value - raw attribute value.
53
+ * @param allowExternalResources - whether external `http(s):` media URLs are permitted.
54
+ */
55
+ export declare function isSafeStaticUrl(attr: string, value: string, allowExternalResources: boolean): boolean;
56
+ /**
57
+ * Sanitize CSS text (inline `style` attributes or `<style>` block bodies) by removing
58
+ * `@import`, legacy script expressions, and unsafe `url(...)` references.
59
+ */
60
+ export declare function sanitizeCss(css: string, allowExternalResources: boolean): string;
61
+ /**
62
+ * Sanitize raw HTML markup for static, script-free preview rendering.
63
+ *
64
+ * Strips dangerous container tags, void metadata tags, inline event handlers,
65
+ * unsafe URL schemes, declarative shadow roots, and unsafe CSS expressions.
66
+ */
67
+ export declare function sanitizeStaticHtml(rawHtml: string, allowExternalResources?: boolean): string;
68
+ /** Build the strict Content-Security-Policy string for static or interactive HTML sandboxes. */
69
+ export declare function buildSandboxCsp(mode: 'static' | 'interactive', allowExternalResources: boolean, staticNonce?: string): string;
70
+ /**
71
+ * Build a complete static HTML document ready for a sandboxed iframe.
72
+ *
73
+ * When `options.staticBridge` is omitted, CSP sets `script-src 'none'` for a
74
+ * zero-script `<iframe sandbox="">`. When `options.staticBridge` is provided,
75
+ * CSP locks script execution exclusively to `script-src 'nonce-<nonce>'` so
76
+ * only the host's own height/theme bridge runs while all author scripts stay
77
+ * stripped and CSP-blocked.
78
+ */
79
+ export declare function buildStaticHtmlDocument(rawHtml: string, options: HtmlDocumentOptions): string;
80
+ /**
81
+ * Build a complete interactive HTML document ready for a Blob URL inside
82
+ * `<iframe sandbox="allow-scripts">` (opaque origin, no `allow-same-origin`).
83
+ *
84
+ * Strips `<base>` and `<meta http-equiv="refresh"|"content-security-policy">`
85
+ * tags before prepending the renderer's own CSP and lightweight resize/theme bridge.
86
+ */
87
+ export declare function buildInteractiveHtmlDocument(rawHtml: string, options: InteractiveDocumentOptions): string;
88
+ /**
89
+ * Prepare standalone SVG markup for safe rendering inside `<img src="blob:...">`.
90
+ *
91
+ * Ensures the SVG namespace (`xmlns="http://www.w3.org/2000/svg"`) is declared
92
+ * (browsers render blank `<img>` boxes when standalone SVG omits it) and strips
93
+ * scripts, SMIL animations, foreignObject, and inline event handlers.
94
+ *
95
+ * @returns normalized SVG string, or `null` when the input contains no `<svg>` root.
96
+ */
97
+ export declare function prepareSvgForImage(rawSvg: string): string | null;
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Custom renderer",
4
+ "description": "First-class render_artifact streaming cards, sandboxed HTML/SVG previews, right-Sidebar workbench for complex content, and inline visual media fallback for DeepSeek Harness."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "自定义渲染器",
4
+ "description": "面向 DeepSeek Harness 的原生 render_artifact 流式卡片工具、HTML/SVG 沙箱预览、高复杂度内容侧栏展开与行内媒体补齐插件。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,93 @@
1
1
  {
2
2
  "name": "@aqian0/dsh-renderer",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Custom renderer plugin for DeepSeek Harness",
5
+ "keywords": [
6
+ "deepseek-harness",
7
+ "dsh",
8
+ "renderer"
9
+ ],
10
+ "homepage": "https://github.com/AQian0/dsh-renderer#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/AQian0/dsh-renderer/issues"
13
+ },
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/AQian0/dsh-renderer.git"
18
+ },
19
+ "files": [
20
+ "lib/**/*.js",
21
+ "lib/types/**/*.d.ts",
22
+ "cordis.patch.yml",
23
+ "locale/*.json",
24
+ "icon.svg"
25
+ ],
26
+ "type": "module",
27
+ "main": "lib/index.js",
28
+ "types": "lib/types/index.d.ts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./lib/types/index.d.ts",
32
+ "default": "./lib/index.js"
33
+ },
34
+ "./config": {
35
+ "types": "./lib/types/config.d.ts",
36
+ "default": "./lib/config.js"
37
+ },
38
+ "./client": {
39
+ "types": "./lib/types/client.d.ts",
40
+ "default": "./lib/client.js"
41
+ },
42
+ "./locale/*.json": "./locale/*.json",
43
+ "./icon": "./icon.svg",
44
+ "./package.json": "./package.json",
45
+ "./cordis.patch.yml": "./cordis.patch.yml"
46
+ },
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
50
+ "scripts": {
51
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig.client.json && vp build --config vite.client.config.ts",
52
+ "prepack": "vp run build",
53
+ "format": "vp fmt",
54
+ "format:check": "vp fmt --check",
55
+ "lint": "vp lint",
56
+ "lint:fix": "vp lint --fix",
57
+ "check": "vp check --deny-warnings",
58
+ "check:fix": "vp check --fix",
59
+ "typecheck": "tsc -p tsconfig.test.json",
60
+ "test:unit": "vp test",
61
+ "test:coverage": "vp test --coverage",
62
+ "test": "vp run check && vp run typecheck && vp test"
63
+ },
64
+ "devDependencies": {
65
+ "@shikijs/core": "^4.6.0",
66
+ "@shikijs/engine-javascript": "^4.6.0",
67
+ "@shikijs/langs": "^4.6.0",
68
+ "@types/node": "26.6.11",
69
+ "@vitest/coverage-v8": "5.1.1",
70
+ "typescript": "7.0.2",
71
+ "vite-plus": "1.8.0"
72
+ },
73
+ "peerDependencies": {
74
+ "@deepseek-ai/cordis": "^4.1.0",
75
+ "@deepseek-ai/schemastery": "^3.19.0"
76
+ },
77
+ "packageManager": "pnpm@12.23.0",
78
+ "dsh": {
79
+ "bundle": {
80
+ "patch": "./cordis.patch.yml"
81
+ },
82
+ "client": {
83
+ "platform": "web",
84
+ "inject": [
85
+ "@deepseek-ai/dsh-client-locale",
86
+ "@deepseek-ai/dsh-client-ui-chat",
87
+ "@deepseek-ai/dsh-client-ui-sidebar-right",
88
+ "@deepseek-ai/dsh-client-ui-theme",
89
+ "@deepseek-ai/dsh-client-ui-tool"
90
+ ]
91
+ }
92
+ }
93
+ }