@zephinel/dsh-intelligent-ui 0.6.0 → 0.6.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/README.en.md +7 -7
- package/README.md +7 -7
- package/lib/client.js +111 -105
- package/lib/index.js +43 -39
- package/lib/standalone.css +1 -1
- package/lib/standalone.js +108 -102
- package/locale/detail.en.md +11 -0
- package/locale/detail.zh.md +11 -0
- package/locale/en.json +2 -1
- package/locale/zh.json +2 -1
- package/package.json +4 -4
- package/skills/intelligent-ui/references/integration.md +7 -7
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Intelligent UI
|
|
2
|
+
|
|
3
|
+
Turn answers into interactive pages: itineraries, comparisons, dashboards, forms and articles, with chat-native on-demand generation and custom visual templates.
|
|
4
|
+
|
|
5
|
+
## Common settings
|
|
6
|
+
|
|
7
|
+
- **Composer UI controls** and **answer style**: adjust the global defaults below; per-session overrides take precedence.
|
|
8
|
+
- **Experimental → answer as document**: off by default; when on, ordinary answers render as a chrome-less document page.
|
|
9
|
+
- **Templates and styles**: manage them in the sidebar Intelligent UI panel; each card's header offers edit, revision history and export.
|
|
10
|
+
|
|
11
|
+
See the [README](https://github.com/Zephinel/dsh-intelligent-ui#readme) for usage and [docs](https://github.com/Zephinel/dsh-intelligent-ui/tree/main/docs) for architecture and limitations.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# 智能 UI
|
|
2
|
+
|
|
3
|
+
把回答渲染成可交互页面:行程、对比、看板、表单、文章,也支持聊天内按需生成和自定义视觉模板。
|
|
4
|
+
|
|
5
|
+
## 常用设置
|
|
6
|
+
|
|
7
|
+
- **输入框 UI 控件**与**回答样式**:在下方的全局默认里调整,会话级覆盖优先。
|
|
8
|
+
- **实验性功能 → 回答即文档**:默认关闭;开启后普通回答渲染为无卡片外壳的文档页面。
|
|
9
|
+
- **模板与样式**:在侧栏「智能 UI」面板管理;卡片右上角可编辑、查看修订或导出。
|
|
10
|
+
|
|
11
|
+
完整用法见 [README](https://github.com/Zephinel/dsh-intelligent-ui#readme),架构与限制见 [docs](https://github.com/Zephinel/dsh-intelligent-ui/tree/main/docs)。
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Intelligent UI",
|
|
4
|
-
"description": "Interactive answers for DeepSeek Harness: maps, charts, forms and articles, with custom visual templates and chat-native on-demand generation. Use temporary results immediately, adjust or save them later; manage templates and export images or interactive pages."
|
|
4
|
+
"description": "Interactive answers for DeepSeek Harness: maps, charts, forms and articles, with custom visual templates and chat-native on-demand generation. Use temporary results immediately, adjust or save them later; manage templates and export images or interactive pages.",
|
|
5
|
+
"detail": "locale/detail.en.md"
|
|
5
6
|
}
|
|
6
7
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "智能 UI",
|
|
4
|
-
"description": "DeepSeek Harness 的交互式回答:地图、图表、表单与文章,支持自定义视觉模板和聊天内按需生成。临时结果可直接使用、调整或事后保存,并可管理模板、导出图片或交互页面。"
|
|
4
|
+
"description": "DeepSeek Harness 的交互式回答:地图、图表、表单与文章,支持自定义视觉模板和聊天内按需生成。临时结果可直接使用、调整或事后保存,并可管理模板、导出图片或交互页面。",
|
|
5
|
+
"detail": "locale/detail.zh.md"
|
|
5
6
|
}
|
|
6
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zephinel/dsh-intelligent-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Intelligent UI for DeepSeek Harness: render OpenUI Lang answers as interactive maps, photos, charts, forms, drawings, working tools or a reading article inside the Web chat. Global defaults live on the Plugins detail page; the composer overrides enablement and answer style per session.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"check:release": "node scripts/release-check.mjs",
|
|
51
51
|
"prepare": "node scripts/build.mjs",
|
|
52
52
|
"check:theme": "node test/renderer/theme-torture.mjs",
|
|
53
|
-
"test:browser": "node test/browser/on-demand.e2e.mjs && node test/browser/style-panel.e2e.mjs && node test/browser/style-theme.e2e.mjs && node test/browser/export-image.e2e.mjs && node test/browser/standalone-page.e2e.mjs && node test/browser/article-layout.e2e.mjs && node test/browser/settings-picker.e2e.mjs && node test/browser/
|
|
53
|
+
"test:browser": "node test/browser/on-demand.e2e.mjs && node test/browser/style-panel.e2e.mjs && node test/browser/style-theme.e2e.mjs && node test/browser/export-image.e2e.mjs && node test/browser/standalone-page.e2e.mjs && node test/browser/article-layout.e2e.mjs && node test/browser/settings-picker.e2e.mjs && node test/browser/update-prompt.e2e.mjs && node test/browser/artifact-edit.e2e.mjs && node test/browser/nested-edit-renderer.e2e.mjs",
|
|
54
54
|
"capture:readme": "node scripts/capture-screenshots.mjs && node scripts/capture-editor-screenshot.mjs && node scripts/capture-editor-screenshot.mjs --en && node scripts/build-readme-bento.mjs",
|
|
55
55
|
"check:docs-facts": "node scripts/check-doc-facts.mjs",
|
|
56
56
|
"check:docs-links": "node scripts/check-docs-links.mjs",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@openuidev/lang-core": "^1.
|
|
86
|
-
"@openuidev/react-lang": "^1.
|
|
85
|
+
"@openuidev/lang-core": "^1.1.1",
|
|
86
|
+
"@openuidev/react-lang": "^1.1.1",
|
|
87
87
|
"@types/node": "^22.20.5",
|
|
88
88
|
"@types/react": "^18.3.0",
|
|
89
89
|
"@types/react-dom": "^18.3.0",
|
|
@@ -9,11 +9,11 @@ The same package ships the Agent Skill in `skills/intelligent-ui/`. A deployment
|
|
|
9
9
|
|
|
10
10
|
## Current status
|
|
11
11
|
|
|
12
|
-
**Published.** `@zephinel/dsh-intelligent-ui@0.
|
|
12
|
+
**Published.** `@zephinel/dsh-intelligent-ui@0.6.2` is on npm and the repository is public at `Zephinel/dsh-intelligent-ui`. The published package includes the current feature set (in-place editing with revision history, Auto page-vs-text decision, experimental answer-as-document mode, local images, style switching and the PTC-dispatched `render_ui` card fix). Prefer the npm or GitHub bundle install below; the local-checkout flow remains available for development.
|
|
13
13
|
|
|
14
14
|
## Requirements
|
|
15
15
|
|
|
16
|
-
- DSH **0.2.2** (validated on `0.2.2-rc.1`,
|
|
16
|
+
- DSH **0.2.2** (validated on `0.2.2-rc.1`, npm `latest`; `0.2.2-rc.3` on the `next` channel has a community PTC check but this fix is not yet re-verified there), Node **24**.
|
|
17
17
|
- The **web** profile (or any profile whose app has a browser chat surface); the client half declares `"dsh": { "client": { "platform": "web" } }`.
|
|
18
18
|
- Interactive-page export additionally needs a `webServer` service so the Host can serve the standalone renderer assets; without it image export still works and page export reports a build failure.
|
|
19
19
|
- Style catalog and management require Host `webServer` plus `connection.requestRejection` authentication. On-demand uses the deployment's normal default conversation model services and session events; there is no extension-owned draft model endpoint, `llm` injection or `agentDefaultModel` injection. The structured clarification path additionally needs the built-in `ask_user_question` tool; a text fallback keeps the operation pending for the next message instead of requiring an immediate re-arm.
|
|
@@ -53,9 +53,9 @@ The browser half follows DSH's UI language and needs no configuration:
|
|
|
53
53
|
The package declares `"dsh": { "bundle": { "patch": "./cordis.patch.yml" } }`, and that patch inserts the host row `id: intelligent-ui` with `name: '@zephinel/dsh-intelligent-ui'`. Installing the repository as a bundle installs the package into the profile and selects it in the profile's ordered layer list:
|
|
54
54
|
|
|
55
55
|
```sh
|
|
56
|
-
# npm (current latest: 0.
|
|
56
|
+
# npm (current latest: 0.6.2)
|
|
57
57
|
dsh plugin --profile web add @zephinel/dsh-intelligent-ui
|
|
58
|
-
dsh plugin --profile web add @zephinel/dsh-intelligent-ui@0.
|
|
58
|
+
dsh plugin --profile web add @zephinel/dsh-intelligent-ui@0.6.2 # pin a version
|
|
59
59
|
# or GitHub
|
|
60
60
|
dsh plugin --profile web add github:Zephinel/dsh-intelligent-ui
|
|
61
61
|
```
|
|
@@ -66,7 +66,7 @@ DSH Desktop installs the same bundle from the app instead of the CLI: **Plugins*
|
|
|
66
66
|
|
|
67
67
|
Packaging behavior that matters when publishing:
|
|
68
68
|
|
|
69
|
-
- The registry tarball ships the prebuilt `lib/` (host and client bundles), `cordis.patch.yml`, `skills/`, `locale/`, `licenses/`, `assets/`, the two READMEs (`README.md` / `README.en.md`), `LICENSE`, `NOTICE` and `icon.svg` (
|
|
69
|
+
- The registry tarball ships the prebuilt `lib/` (host and client bundles), `cordis.patch.yml`, `skills/`, `locale/`, `licenses/`, `assets/`, the two READMEs (`README.md` / `README.en.md`), `locale/` (including the `detail.*.md` guides the plugin page prefers over the README), `LICENSE`, `NOTICE` and `icon.svg` (67 files). The generated component spec and generation prompt are build inputs compiled into `lib/index.js`; `vendor/` and `src/` are not shipped.
|
|
70
70
|
- A Git checkout installs from source: pnpm runs the package's `prepare` build, so the install may ask for **build-script approval** and needs the toolchain. A registry tarball has nothing to build.
|
|
71
71
|
- Without `dsh.bundle`, the manager would install the package as a plain dependency with the warning `declares no dsh.bundle — installed as a plain dependency, not a profile layer`, and nothing would load. This package declares it, so that warning means the wrong spec or an old tarball.
|
|
72
72
|
|
|
@@ -74,7 +74,7 @@ If DSH refuses the package for version incompatibility, either install a compati
|
|
|
74
74
|
|
|
75
75
|
```sh
|
|
76
76
|
dsh plugin --profile web version-exemptions
|
|
77
|
-
dsh plugin --profile web allow-version @zephinel/dsh-intelligent-ui@0.
|
|
77
|
+
dsh plugin --profile web allow-version @zephinel/dsh-intelligent-ui@0.6.2 --dsh-version 0.2.2-rc.1 --accept-risk
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
Remove it with the mirror command:
|
|
@@ -213,4 +213,4 @@ Work top-down; each step rules out one layer:
|
|
|
213
213
|
- Interactive pages are self-contained but large (about 3.4–4.9 MB) and keep only the exporting theme; non-free cards keep the 760px measure and the live 12px card gap, free results use the full page width, and their photos, maps and routing still use the same third-party services as inside DSH.
|
|
214
214
|
- **Image export follows the live cards, not the whole page.** Portaled overlays — an open `Popover` panel and `Celebration` confetti live on `<body>` — are visible on screen but absent from the saved PNG; everything inside the card, including an expanded `Map` dialog, is captured.
|
|
215
215
|
- The `/iui` Host replies and the command palette's command description stay English even in a Chinese UI; both are DSH platform behavior, and the command palette localizes only first-party commands by identity.
|
|
216
|
-
- The package is published on npm as `@zephinel/dsh-intelligent-ui@0.
|
|
216
|
+
- The package is published on npm as `@zephinel/dsh-intelligent-ui@0.6.2`; pin a version for reproducibility. Publishing a new version needs a version bump plus the packaging checks in `test/packaging/`.
|