deepseek-harness-intelligent-ui 0.2.1 → 0.2.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 +17 -5
- package/README.md +15 -13
- package/README.zh-CN.md +15 -13
- package/client/client.js +1 -1
- package/package.json +4 -3
- package/src/compat.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.2.2]
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- npm co-installation with the supported DSH 0.2.0-rc and 0.2.1-alpha lines now uses explicit prerelease peer ranges.
|
|
14
|
+
- README installation examples use the 0.2.2 release version, explain the optional `next` tag, and link to versioned documentation and media outside the tarball.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Release reruns verify registry integrity, exact package contents and provenance before reusing a version. GitHub Release assets come from that registry tarball and conflicting assets are refused.
|
|
19
|
+
- Release preflight requires the tagged commit to belong to main. Actions use immutable commit SHAs, and publishing can opt into npm Trusted Publishing after account-side setup.
|
|
20
|
+
|
|
9
21
|
## [0.2.1]
|
|
10
22
|
|
|
11
23
|
### Changed
|
|
@@ -18,7 +30,7 @@ All notable changes to this project are documented here. The format follows
|
|
|
18
30
|
- Real-model evaluation now reads `DEEPSEEK_API_KEY` from the environment, validates requested rendered components and multi-turn data, acknowledges all tool calls, and exits nonzero on failures. Partial runs no longer combine historical results under a new timestamp. API errors and missing messages fail clearly; requests have a timeout.
|
|
19
31
|
- Marked the legacy evaluation report's missing-Chart false positive and clarified the limits of API-only evaluation in both READMEs.
|
|
20
32
|
|
|
21
|
-
##
|
|
33
|
+
## 0.2.0 (development milestone)
|
|
22
34
|
|
|
23
35
|
### Changed
|
|
24
36
|
|
|
@@ -37,7 +49,7 @@ All notable changes to this project are documented here. The format follows
|
|
|
37
49
|
- A nightly compatibility matrix across DSH versions (install smoke test plus browser E2E).
|
|
38
50
|
- A tag-driven release that publishes to npm with provenance and creates the GitHub Release.
|
|
39
51
|
|
|
40
|
-
##
|
|
52
|
+
## 0.1.0 (development milestone)
|
|
41
53
|
|
|
42
54
|
### Added
|
|
43
55
|
|
|
@@ -45,6 +57,6 @@ All notable changes to this project are documented here. The format follows
|
|
|
45
57
|
- The declarative component catalog (`ui_render`) and sandboxed streaming HTML widgets (`ui_render_widget`).
|
|
46
58
|
- The `/ui` command and the guidance system-prompt section.
|
|
47
59
|
|
|
48
|
-
[Unreleased]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/compare/v0.2.
|
|
49
|
-
[0.2.
|
|
50
|
-
[0.1
|
|
60
|
+
[Unreleased]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/compare/v0.2.2...HEAD
|
|
61
|
+
[0.2.2]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/compare/v0.2.1...v0.2.2
|
|
62
|
+
[0.2.1]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/releases/tag/v0.2.1
|
package/README.md
CHANGED
|
@@ -10,9 +10,9 @@ It ports the ideas of CopilotKit's [OpenIntelligentUI](https://github.com/Copilo
|
|
|
10
10
|
|
|
11
11
|
## Demo
|
|
12
12
|
|
|
13
|
-

|
|
13
|
+

|
|
14
14
|
|
|
15
|
-
🎥 **Full-quality video (H.264, ~2 min):** [docs/assets/demo.mp4](docs/assets/demo.mp4)
|
|
15
|
+
🎥 **Full-quality video (H.264, ~2 min):** [docs/assets/demo.mp4](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.1/docs/assets/demo.mp4)
|
|
16
16
|
|
|
17
17
|
> The recording comes from the real DSH Web 0.2.0-rc.1 with this plugin installed, driven by `npm run e2e:all -- --record`. The model behind it is the **scripted mock** in `scripts/e2e/` (no API key was available), so the answers are canned. Everything you see (streaming, rendering, interaction, the round trips, persistence, isolation) is the real plugin running in DSH.
|
|
18
18
|
>
|
|
@@ -20,21 +20,21 @@ It ports the ideas of CopilotKit's [OpenIntelligentUI](https://github.com/Copilo
|
|
|
20
20
|
|
|
21
21
|
| Dashboard streams in, then settles | Three.js widget: R slider, rotate, zoom |
|
|
22
22
|
|:---:|:---:|
|
|
23
|
-
|  |  |
|
|
23
|
+
|  |  |
|
|
24
24
|
| *Stat, Grid, Tabs, stacked bar chart with hover tooltip, sortable table, timeline, form* | *`x²+y²+z²=2Rz` via `UI.three()`: the slider re-shapes the surface locally* |
|
|
25
25
|
|
|
26
26
|
| Math, live Plot, Mermaid | Form → agent → new UI |
|
|
27
27
|
|:---:|:---:|
|
|
28
|
-
|  |  |
|
|
28
|
+
|  |  |
|
|
29
29
|
| *KaTeX formula, `Plot` with parameter sliders (no model call), Mermaid flowchart* | *Submitted values reach the agent, which answers with a forecast chart* |
|
|
30
30
|
|
|
31
31
|
| Streaming preview (same iframe becomes final) | Stopped mid-generation |
|
|
32
32
|
|:---:|:---:|
|
|
33
|
-
|  |  |
|
|
33
|
+
|  |  |
|
|
34
34
|
|
|
35
35
|
| Dark theme | Phone width (dark) | After reload |
|
|
36
36
|
|:---:|:---:|:---:|
|
|
37
|
-
|  |  |  |
|
|
37
|
+
|  |  |  |
|
|
38
38
|
|
|
39
39
|
## How the agent decides
|
|
40
40
|
|
|
@@ -122,17 +122,17 @@ npx deepseek-harness-intelligent-ui doctor # diagnose only
|
|
|
122
122
|
| Task | Command |
|
|
123
123
|
|---|---|
|
|
124
124
|
| Upgrade | `dsh plugin --profile web add deepseek-harness-intelligent-ui@latest` |
|
|
125
|
-
| Try a prerelease | `dsh plugin --profile web add deepseek-harness-intelligent-ui@next` |
|
|
126
|
-
| Pin a version | `dsh plugin --profile web add deepseek-harness-intelligent-ui@0.2.
|
|
125
|
+
| Try a prerelease (only when the `next` dist-tag exists) | `dsh plugin --profile web add deepseek-harness-intelligent-ui@next` |
|
|
126
|
+
| Pin a version | `dsh plugin --profile web add deepseek-harness-intelligent-ui@0.2.2` |
|
|
127
127
|
| Uninstall | `dsh plugin --profile web remove deepseek-harness-intelligent-ui` (or `npx deepseek-harness-intelligent-ui uninstall`) |
|
|
128
128
|
| From a checkout | `dsh plugin --profile web add file:/path/to/deepseek-harness-intelligent-ui` |
|
|
129
129
|
|
|
130
|
-
Supported DSH versions and the CI matrix are in [docs/compatibility.md](docs/compatibility.md).
|
|
130
|
+
Supported DSH versions and the CI matrix are in [docs/compatibility.md](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.2/docs/compatibility.md).
|
|
131
131
|
|
|
132
132
|
**Troubleshooting**
|
|
133
133
|
|
|
134
134
|
- *`pnpm was not found`*: DSH installs plugins with pnpm. Run `corepack enable` (it ships with Node) or `npm i -g pnpm`.
|
|
135
|
-
- *`… is incompatible with dsh X`*: your DSH is outside the supported range. Upgrade DSH (`npm i -g @deepseek-ai/dsh@latest`) or check [compatibility](docs/compatibility.md) for a plugin release that supports it.
|
|
135
|
+
- *`… is incompatible with dsh X`*: your DSH is outside the supported range. Upgrade DSH (`npm i -g @deepseek-ai/dsh@latest`) or check [compatibility](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.2/docs/compatibility.md) for a plugin release that supports it.
|
|
136
136
|
- *Upgrading from 0.1.x (`dsh-intelligent-ui` via `file:`)*: run `dsh plugin --profile web remove dsh-intelligent-ui` first. Both packages insert the same `intelligent-ui` row, and `doctor` reports the conflict.
|
|
137
137
|
- *The UI does not appear*: restart DSH Web after installing, and make sure you started the profile you installed into (`dsh web`).
|
|
138
138
|
|
|
@@ -170,10 +170,12 @@ npm run e2e:all -- --spec ./deepseek-harness-intelligent-ui-<v>.tgz # E2E the
|
|
|
170
170
|
npm run smoke -- --spec ./deepseek-harness-intelligent-ui-<v>.tgz # install smoke test (no browser): version gate, bundle row, DSH Web boot
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
The E2E runs on Windows, Linux and macOS. It finds Chrome per platform (set `CHROME_PATH` to override) and uses `DSH_BIN` to test another `dsh` binary. CI runs everything on all three OSes against every supported DSH line ([compatibility](docs/compatibility.md)).
|
|
173
|
+
The E2E runs on Windows, Linux and macOS. It finds Chrome per platform (set `CHROME_PATH` to override) and uses `DSH_BIN` to test another `dsh` binary. CI runs everything on all three OSes against every supported DSH line ([compatibility](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.2/docs/compatibility.md)).
|
|
174
174
|
|
|
175
175
|
**Releasing** (maintainers):
|
|
176
176
|
|
|
177
|
+
See [release security and OIDC setup](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/main/docs/releasing.md).
|
|
178
|
+
|
|
177
179
|
1. Add the notes under a new `## [x.y.z]` heading in [CHANGELOG.md](CHANGELOG.md).
|
|
178
180
|
2. Run `npm version x.y.z` (or `npm version prerelease --preid rc`). This rebuilds `client/client.js` with the new version and tags the commit.
|
|
179
181
|
3. Run `git push --follow-tags`. The tag triggers the Release workflow, which:
|
|
@@ -184,7 +186,7 @@ The E2E runs on Windows, Linux and macOS. It finds Chrome per platform (set `CHR
|
|
|
184
186
|
4. Run `npm run release:check` to perform the same preflight locally.
|
|
185
187
|
|
|
186
188
|
- **Layout:** `src/` is the Host half (plain ESM, no build). `client-src/` is the browser half (TSX, bundled with esbuild). `client/client.js` is committed and published so npm, `file:` and git installs need no build step. CI fails if it is stale. Never add a `prepare`/`postinstall` script, because DSH's pnpm blocks plugin build scripts.
|
|
187
|
-
- **What the E2E checks** (`scripts/e2e/browser.mjs`, report in [`docs/e2e-report.json`](docs/e2e-report.json)):
|
|
189
|
+
- **What the E2E checks** (`scripts/e2e/browser.mjs`, report in [`docs/e2e-report.json`](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.1/docs/e2e-report.json)):
|
|
188
190
|
- Plain Q&A stays text.
|
|
189
191
|
- The dashboard streams progressively.
|
|
190
192
|
- Chart hover, table sort and tabs are local.
|
|
@@ -207,7 +209,7 @@ The E2E runs on Windows, Linux and macOS. It finds Chrome per platform (set `CHR
|
|
|
207
209
|
|
|
208
210
|
The API suite checks model routing, tool-argument schemas, and selected requested components or data across 15 prompts. It does **not** execute model-generated widgets in a browser or verify factual data, visual quality, physics, or interaction behavior. The separate browser E2E uses scripted model responses.
|
|
209
211
|
|
|
210
|
-
The checked-in [historical report](docs/real-model-eval-report.json) was produced by the earlier evaluator. Its 15/15 result is not a current pass rate: B3 was incorrectly accepted despite containing no Chart. Other cases need a new run under the stricter assertions; the original report is retained with an audit note.
|
|
212
|
+
The checked-in [historical report](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.1/docs/real-model-eval-report.json) was produced by the earlier evaluator. Its 15/15 result is not a current pass rate: B3 was incorrectly accepted despite containing no Chart. Other cases need a new run under the stricter assertions; the original report is retained with an audit note.
|
|
211
213
|
|
|
212
214
|
The current suite requires rendered components (not orphan nodes), a sortable table for B2, a four-quarter multi-series bar chart for B3, range/checkbox form controls for B4, and parameter sliders for a native C2 Plot. Multi-turn cases validate all tool calls, acknowledge each call, require the submitted APAC/4/Optimistic parameters, and check all three requested screen sizes while retaining existing table values. These are automated assertions, not a complete quality assessment.
|
|
213
215
|
|
package/README.zh-CN.md
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
## 演示
|
|
18
18
|
|
|
19
|
-

|
|
19
|
+

|
|
20
20
|
|
|
21
|
-
🎥 **高清视频(H.264,约 2 分钟):** [docs/assets/demo.mp4](docs/assets/demo.mp4)
|
|
21
|
+
🎥 **高清视频(H.264,约 2 分钟):** [docs/assets/demo.mp4](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.1/docs/assets/demo.mp4)
|
|
22
22
|
|
|
23
23
|
> **录制方式:** 演示视频录自真实的 DSH Web 0.2.0-rc.1,装好本插件后由 `npm run e2e:all -- --record` 自动驱动。
|
|
24
24
|
>
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
|
|
29
29
|
| 看板流式出现并定稿 | Three.js 组件:R 滑块、旋转、缩放 |
|
|
30
30
|
|:---:|:---:|
|
|
31
|
-
|  |  |
|
|
31
|
+
|  |  |
|
|
32
32
|
| *指标卡、栅格、标签页、带悬停提示的堆叠柱状图、可排序表格、时间线、表单* | *用 `UI.three()` 绘制 `x²+y²+z²=2Rz`,拖动滑块在本地即时改变曲面* |
|
|
33
33
|
|
|
34
34
|
| 公式、实时函数图像、Mermaid | 表单 → Agent → 新界面 |
|
|
35
35
|
|:---:|:---:|
|
|
36
|
-
|  |  |
|
|
36
|
+
|  |  |
|
|
37
37
|
|
|
38
38
|
| 流式预览(同一个 iframe 直接定稿) | 生成中途停止 |
|
|
39
39
|
|:---:|:---:|
|
|
40
|
-
|  |  |
|
|
40
|
+
|  |  |
|
|
41
41
|
|
|
42
42
|
| 深色主题 | 手机宽度(深色) | 刷新后恢复 |
|
|
43
43
|
|:---:|:---:|:---:|
|
|
44
|
-
|  |  |  |
|
|
44
|
+
|  |  |  |
|
|
45
45
|
|
|
46
46
|
## Agent 如何选择呈现方式
|
|
47
47
|
|
|
@@ -153,17 +153,17 @@ npx deepseek-harness-intelligent-ui doctor # 只诊断,不做修
|
|
|
153
153
|
| 操作 | 命令 |
|
|
154
154
|
|---|---|
|
|
155
155
|
| 升级 | `dsh plugin --profile web add deepseek-harness-intelligent-ui@latest` |
|
|
156
|
-
|
|
|
157
|
-
| 固定版本 | `dsh plugin --profile web add deepseek-harness-intelligent-ui@0.2.
|
|
156
|
+
| 试用预发布版(仅在存在 `next` 标签时) | `dsh plugin --profile web add deepseek-harness-intelligent-ui@next` |
|
|
157
|
+
| 固定版本 | `dsh plugin --profile web add deepseek-harness-intelligent-ui@0.2.2` |
|
|
158
158
|
| 卸载 | `dsh plugin --profile web remove deepseek-harness-intelligent-ui`(或 `npx deepseek-harness-intelligent-ui uninstall`) |
|
|
159
159
|
| 从源码目录安装 | `dsh plugin --profile web add file:/path/to/deepseek-harness-intelligent-ui` |
|
|
160
160
|
|
|
161
|
-
安装后需要重启 DSH Web。bundle patch 会自动插入 `intelligent-ui` 这一行。要修改配置,在 profile 的 `cordis.patch.yml` 中添加 `- id: intelligent-ui` 和对应的 `config:`,配置项见英文 README 的表格。支持的 DSH 版本和 CI 测试矩阵见 [docs/compatibility.md](docs/compatibility.md)。
|
|
161
|
+
安装后需要重启 DSH Web。bundle patch 会自动插入 `intelligent-ui` 这一行。要修改配置,在 profile 的 `cordis.patch.yml` 中添加 `- id: intelligent-ui` 和对应的 `config:`,配置项见英文 README 的表格。支持的 DSH 版本和 CI 测试矩阵见 [docs/compatibility.md](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.2/docs/compatibility.md)。
|
|
162
162
|
|
|
163
163
|
**常见问题**
|
|
164
164
|
|
|
165
165
|
- *提示 `pnpm was not found`*:DSH 用 pnpm 安装插件。运行 `corepack enable`(Node 自带)或 `npm i -g pnpm`。
|
|
166
|
-
- *提示 `… is incompatible with dsh X`*:当前 DSH 版本不在支持范围内。可以升级 DSH(`npm i -g @deepseek-ai/dsh@latest`),或在[兼容性文档](docs/compatibility.md)里找支持该版本的插件发行版。
|
|
166
|
+
- *提示 `… is incompatible with dsh X`*:当前 DSH 版本不在支持范围内。可以升级 DSH(`npm i -g @deepseek-ai/dsh@latest`),或在[兼容性文档](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.2/docs/compatibility.md)里找支持该版本的插件发行版。
|
|
167
167
|
- *从 0.1.x 升级(以前用 `file:` 安装的 `dsh-intelligent-ui`)*:先运行 `dsh plugin --profile web remove dsh-intelligent-ui`。新旧两个包会插入同一个 `intelligent-ui` 行,`doctor` 能检测到这种冲突。
|
|
168
168
|
- *界面没有出现*:安装后要重启 DSH Web,并确认启动的是安装插件时指定的 profile(`dsh web`)。
|
|
169
169
|
|
|
@@ -172,7 +172,7 @@ npx deepseek-harness-intelligent-ui doctor # 只诊断,不做修
|
|
|
172
172
|
```sh
|
|
173
173
|
npm install
|
|
174
174
|
npm run build
|
|
175
|
-
npm test #
|
|
175
|
+
npm test # 单元/组件测试(含 DSH 兼容性检查与安装器 CLI)
|
|
176
176
|
npm run typecheck
|
|
177
177
|
npm run e2e:all # 构建 → 安装到临时 DSH 目录 → mock 模型 + 真实 DSH Web → 24 项浏览器检查
|
|
178
178
|
npm run e2e:all -- --record # 同时重新录制 docs/assets/demo.mp4 / demo.gif(需要 ffmpeg)
|
|
@@ -180,12 +180,14 @@ npm run e2e:all -- --spec ./deepseek-harness-intelligent-ui-<版本>.tgz # 改
|
|
|
180
180
|
npm run smoke -- --spec ./deepseek-harness-intelligent-ui-<版本>.tgz # 安装冒烟测试(不需要浏览器)
|
|
181
181
|
```
|
|
182
182
|
|
|
183
|
-
E2E 可以在 Windows、Linux、macOS 上运行。它会按平台自动查找 Chrome(可用 `CHROME_PATH` 指定),`DSH_BIN` 可指定其他 `dsh` 可执行文件。检查项见 `scripts/e2e/browser.mjs`,最近一次报告在 [`docs/e2e-report.json`](docs/e2e-report.json)。GitHub Actions 会在三个系统上,针对每个受支持的 DSH 版本跑完全部测试。
|
|
183
|
+
E2E 可以在 Windows、Linux、macOS 上运行。它会按平台自动查找 Chrome(可用 `CHROME_PATH` 指定),`DSH_BIN` 可指定其他 `dsh` 可执行文件。检查项见 `scripts/e2e/browser.mjs`,最近一次报告在 [`docs/e2e-report.json`](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.1/docs/e2e-report.json)。GitHub Actions 会在三个系统上,针对每个受支持的 DSH 版本跑完全部测试。
|
|
184
184
|
|
|
185
185
|
`client/client.js` 已提交到仓库并随包发布,所以 npm、`file:` 和 git 安装都不需要构建。不要添加 `prepare` 或 `postinstall` 脚本,因为 DSH 使用的 pnpm 会拦截插件的构建脚本。
|
|
186
186
|
|
|
187
187
|
**发布流程**(维护者):
|
|
188
188
|
|
|
189
|
+
发布安全与 OIDC 配置见[维护者说明](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/main/docs/releasing.md)。
|
|
190
|
+
|
|
189
191
|
1. 在 [CHANGELOG.md](CHANGELOG.md) 中新增 `## [x.y.z]` 小节。
|
|
190
192
|
2. 运行 `npm version x.y.z`(或 `npm version prerelease --preid rc`)。这一步会用新版本号重新构建 `client/client.js` 并打 tag。
|
|
191
193
|
3. 运行 `git push --follow-tags`。tag 推送后,Release 工作流会依次执行:
|
|
@@ -199,7 +201,7 @@ E2E 可以在 Windows、Linux、macOS 上运行。它会按平台自动查找 Ch
|
|
|
199
201
|
|
|
200
202
|
API 测试套件覆盖 15 个提示词,检查模型路由、工具参数格式,以及部分指定组件和数据。它**不会在浏览器中执行模型生成的组件**,也不验证数据事实、视觉质量、物理正确性或交互行为。独立浏览器 E2E 使用脚本化模型回复。
|
|
201
203
|
|
|
202
|
-
仓库保留的[历史报告](docs/real-model-eval-report.json)来自旧判分器,其中 15/15 不能作为当前通过率:B3 没有 Chart,却被判为通过。报告已标注此问题;其他用例需在新规则下重新运行,不能据此继续宣称全量通过。
|
|
204
|
+
仓库保留的[历史报告](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/v0.2.1/docs/real-model-eval-report.json)来自旧判分器,其中 15/15 不能作为当前通过率:B3 没有 Chart,却被判为通过。报告已标注此问题;其他用例需在新规则下重新运行,不能据此继续宣称全量通过。
|
|
203
205
|
|
|
204
206
|
新版要求组件可从根节点到达,B2 必须有可排序表格,B3 必须有四季度多系列柱状图,B4 表单必须有滑块和复选框,原生 C2 Plot 必须有参数滑块。多轮测试会校验所有工具调用并逐个回复,要求后续内容包含提交的 APAC、4 个季度和乐观情景,并核对三个型号的屏幕尺寸及原表格数据。这些自动断言不代表完整质量评估。
|
|
205
207
|
|
package/client/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* deepseek-harness-intelligent-ui 0.2.
|
|
1
|
+
/* deepseek-harness-intelligent-ui 0.2.2 — generated by scripts/build-client.mjs; do not edit. */
|
|
2
2
|
window.__ModuleLoader__.load({ id: "deepseek-harness-intelligent-ui", factory: (require) => {
|
|
3
3
|
var module = { exports: {} }; var exports = module.exports;
|
|
4
4
|
"use strict";var Re=Object.defineProperty;var Dn=Object.getOwnPropertyDescriptor;var qn=Object.getOwnPropertyNames;var Hn=Object.prototype.hasOwnProperty;var Bn=(e,t,n)=>t in e?Re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wn=(e,t)=>{for(var n in t)Re(e,n,{get:t[n],enumerable:!0})},Vn=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qn(t))!Hn.call(e,i)&&i!==n&&Re(e,i,{get:()=>t[i],enumerable:!(r=Dn(t,i))||r.enumerable});return e};var Jn=e=>Vn(Re({},"__esModule",{value:!0}),e);var z=(e,t,n)=>Bn(e,typeof t!="symbol"?t+"":t,n);var Zr={};Wn(Zr,{apply:()=>Yr,inject:()=>Xr,promptSession:()=>zn});module.exports=Jn(Zr);var Ie=Object.freeze({sin:[1,Math.sin],cos:[1,Math.cos],tan:[1,Math.tan],asin:[1,Math.asin],acos:[1,Math.acos],atan:[1,Math.atan],atan2:[2,Math.atan2],sinh:[1,Math.sinh],cosh:[1,Math.cosh],tanh:[1,Math.tanh],exp:[1,Math.exp],ln:[1,Math.log],log:[1,Math.log10],log10:[1,Math.log10],log2:[1,Math.log2],sqrt:[1,Math.sqrt],cbrt:[1,Math.cbrt],abs:[1,Math.abs],sign:[1,Math.sign],floor:[1,Math.floor],ceil:[1,Math.ceil],round:[1,Math.round],min:[-1,Math.min],max:[-1,Math.max],pow:[2,Math.pow],hypot:[-1,Math.hypot]}),Lt=Object.freeze({pi:Math.PI,e:Math.E,tau:2*Math.PI}),_t=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,Ut=500;function Kn(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepseek-harness-intelligent-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "DeepSeek Harness Intelligent UI: generative, interactive UI in the chat (declarative component catalog + sandboxed streaming HTML widgets), inspired by CopilotKit OpenIntelligentUI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@deepseek-ai/cordis": "~4.0.4 || >=4.0.5-alpha.0 <4.1.0-0",
|
|
75
|
-
"@deepseek-ai/dsh": ">=0.1.7-rc.1 <0.3.0-0",
|
|
76
|
-
"@deepseek-ai/dsh-llm": ">=0.1.7-rc.1 <0.3.0-0"
|
|
75
|
+
"@deepseek-ai/dsh": ">=0.1.7-rc.1 <0.3.0-0 || >=0.2.0-0 <0.2.0 || >=0.2.1-0 <0.2.1",
|
|
76
|
+
"@deepseek-ai/dsh-llm": ">=0.1.7-rc.1 <0.3.0-0 || >=0.2.0-0 <0.2.0 || >=0.2.1-0 <0.2.1"
|
|
77
77
|
},
|
|
78
78
|
"peerDependenciesMeta": {
|
|
79
79
|
"@deepseek-ai/cordis": {
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
"puppeteer-core": "25.12.0",
|
|
103
103
|
"react": "19.3.0",
|
|
104
104
|
"react-dom": "19.3.0",
|
|
105
|
+
"tar": "7.5.22",
|
|
105
106
|
"typescript": "7.0.2",
|
|
106
107
|
"vitest": "5.0.3"
|
|
107
108
|
},
|
package/src/compat.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/** Range of `@deepseek-ai/dsh` / `@deepseek-ai/dsh-llm` versions the plugin runs on. */
|
|
12
|
-
export const SUPPORTED_DSH_RANGE = '>=0.1.7-rc.1 <0.3.0-0';
|
|
12
|
+
export const SUPPORTED_DSH_RANGE = '>=0.1.7-rc.1 <0.3.0-0 || >=0.2.0-0 <0.2.0 || >=0.2.1-0 <0.2.1';
|
|
13
13
|
|
|
14
14
|
/** Versions the CI compatibility matrix installs the packed plugin into. */
|
|
15
15
|
export const TESTED_DSH_VERSIONS = Object.freeze(['0.1.7-rc.2', '0.2.0-rc.1', '0.2.0-rc.2', '0.2.1-alpha.2']);
|