deepseek-harness-intelligent-ui 0.2.5 → 0.2.6
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 +18 -1
- package/README.md +6 -1
- package/README.zh-CN.md +6 -1
- package/client/client.d.ts +5 -0
- package/client/client.js +19 -19
- package/docs/component-extensions.md +136 -0
- package/examples/component-extension/build-dsh-client.mjs +13 -0
- package/examples/component-extension/cordis.patch.yml +3 -0
- package/examples/component-extension/dsh-client.bundle.js +78 -0
- package/examples/component-extension/dsh-client.js +10 -0
- package/examples/component-extension/host.mjs +11 -0
- package/examples/component-extension/index.html +32 -0
- package/examples/component-extension/manifest.js +21 -0
- package/examples/component-extension/package.template.json +35 -0
- package/examples/component-extension/renderers.js +13 -0
- package/examples/component-extension/serve.mjs +19 -0
- package/package.json +20 -9
- package/renderer/renderer.js +17 -17
- package/src/catalog/browser.d.ts +18 -0
- package/src/catalog/catalog.js +26 -7
- package/src/catalog/extensions.d.ts +42 -0
- package/src/catalog/extensions.js +87 -0
- package/src/catalog/patch.js +5 -5
- package/src/tools/patch.js +10 -8
- package/src/tools/render.js +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,22 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.2.6]
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Catalog API v1 for trusted third-party components: namespaced manifests, strict shared props schemas, version checks, React renderers, disable/uninstall lifecycle, and safe fallback in streamed, patched and portable UIs. See `docs/component-extensions.md`.
|
|
14
|
+
- Public schema-inferred TypeScript declarations and a runnable GitDiffViewer extension template.
|
|
15
|
+
- README npm download badges.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Extension validation and offline package verification now agree on what an extension package must contain.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Bundled React and React DOM 19.3.1; dev tooling bumps (puppeteer-core 25.14.0, vitest, pnpm/action-setup 6.1.0). CDN-pinned widget libraries (KaTeX, Mermaid, Three.js, D3, Chart.js, canvas-confetti) are excluded from Dependabot so online and offline versions stay in lockstep.
|
|
24
|
+
|
|
9
25
|
## [0.2.5]
|
|
10
26
|
|
|
11
27
|
### Added
|
|
@@ -115,7 +131,8 @@ All notable changes to this project are documented here. The format follows
|
|
|
115
131
|
- The declarative component catalog (`ui_render`) and sandboxed streaming HTML widgets (`ui_render_widget`).
|
|
116
132
|
- The `/ui` command and the guidance system-prompt section.
|
|
117
133
|
|
|
118
|
-
[Unreleased]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/compare/v0.2.
|
|
134
|
+
[Unreleased]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/compare/v0.2.6...HEAD
|
|
135
|
+
[0.2.6]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/compare/v0.2.5...v0.2.6
|
|
119
136
|
[0.2.5]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/compare/v0.2.4...v0.2.5
|
|
120
137
|
[0.2.4]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/compare/v0.2.3...v0.2.4
|
|
121
138
|
[0.2.3]: https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/compare/v0.2.2...v0.2.3
|
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/actions/workflows/ci.yml)
|
|
8
8
|
[](https://www.npmjs.com/package/deepseek-harness-intelligent-ui)
|
|
9
|
+
[](https://www.npmjs.com/package/deepseek-harness-intelligent-ui)
|
|
9
10
|
[](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/main/docs/compatibility.md)
|
|
10
11
|
[](https://nodejs.org)
|
|
11
12
|
[](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/main/docs/compatibility.md)
|
|
@@ -19,6 +20,10 @@ Generative, interactive UI for [DeepSeek Harness](https://github.com/deepseek-ai
|
|
|
19
20
|
|
|
20
21
|
It ports the ideas of CopilotKit's [OpenIntelligentUI](https://github.com/CopilotKit/OpenIntelligentUI) (Open Generative UI + A2UI-style declarative components) onto DSH's own extension points. It needs no CopilotKit, LangGraph, or external router.
|
|
21
22
|
|
|
23
|
+
### Third-party declarative components
|
|
24
|
+
|
|
25
|
+
Trusted companion plugins can register versioned, namespaced components with shared Host/browser props validation, local React renderers and lifecycle controls. See the [extension API and runnable GitDiffViewer template](docs/component-extensions.md). Run `node examples/component-extension/serve.mjs` after building to try it.
|
|
26
|
+
|
|
22
27
|
## ✨ Highlights
|
|
23
28
|
|
|
24
29
|
<table>
|
|
@@ -143,7 +148,7 @@ npx deepseek-harness-intelligent-ui doctor # diagnose only
|
|
|
143
148
|
|---|---|
|
|
144
149
|
| Upgrade | `dsh plugin --profile web add deepseek-harness-intelligent-ui@latest` |
|
|
145
150
|
| Try a prerelease (only when the `next` dist-tag exists) | `dsh plugin --profile web add deepseek-harness-intelligent-ui@next` |
|
|
146
|
-
| Pin a version | `dsh plugin --profile web add deepseek-harness-intelligent-ui@0.2.
|
|
151
|
+
| Pin a version | `dsh plugin --profile web add deepseek-harness-intelligent-ui@0.2.6` |
|
|
147
152
|
| Uninstall | `dsh plugin --profile web remove deepseek-harness-intelligent-ui` (or `npx deepseek-harness-intelligent-ui uninstall`) |
|
|
148
153
|
| From a checkout | `dsh plugin --profile web add file:/path/to/deepseek-harness-intelligent-ui` |
|
|
149
154
|
|
package/README.zh-CN.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/actions/workflows/ci.yml)
|
|
8
8
|
[](https://www.npmjs.com/package/deepseek-harness-intelligent-ui)
|
|
9
|
+
[](https://www.npmjs.com/package/deepseek-harness-intelligent-ui)
|
|
9
10
|
[](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/main/docs/compatibility.md)
|
|
10
11
|
[](https://nodejs.org)
|
|
11
12
|
[](https://github.com/dreamfarer-space/deepseek-harness-intelligent-ui/blob/main/docs/compatibility.md)
|
|
@@ -25,6 +26,10 @@
|
|
|
25
26
|
|
|
26
27
|
本插件把 CopilotKit [OpenIntelligentUI](https://github.com/CopilotKit/OpenIntelligentUI) 的思路(Open Generative UI + A2UI 风格声明式组件)移植到 DSH 自带的扩展点上,不依赖 CopilotKit、LangGraph 或外部路由服务。
|
|
27
28
|
|
|
29
|
+
### 第三方声明式组件
|
|
30
|
+
|
|
31
|
+
可信伴随插件可注册带版本和命名空间的组件,Host 与浏览器共用 props Schema,并支持本地 React 渲染、禁用和卸载。详见[扩展接口与可运行的 GitDiffViewer 模板](docs/component-extensions.md)。构建后运行 `node examples/component-extension/serve.mjs` 即可体验。模型输出不能注册或加载代码。
|
|
32
|
+
|
|
28
33
|
## ✨ 亮点
|
|
29
34
|
|
|
30
35
|
<table>
|
|
@@ -149,7 +154,7 @@ npx deepseek-harness-intelligent-ui doctor # 只诊断,不做修
|
|
|
149
154
|
|---|---|
|
|
150
155
|
| 升级 | `dsh plugin --profile web add deepseek-harness-intelligent-ui@latest` |
|
|
151
156
|
| 试用预发布版(仅在存在 `next` 标签时) | `dsh plugin --profile web add deepseek-harness-intelligent-ui@next` |
|
|
152
|
-
| 固定版本 | `dsh plugin --profile web add deepseek-harness-intelligent-ui@0.2.
|
|
157
|
+
| 固定版本 | `dsh plugin --profile web add deepseek-harness-intelligent-ui@0.2.6` |
|
|
153
158
|
| 卸载 | `dsh plugin --profile web remove deepseek-harness-intelligent-ui`(或 `npx deepseek-harness-intelligent-ui uninstall`) |
|
|
154
159
|
| 从源码目录安装 | `dsh plugin --profile web add file:/path/to/deepseek-harness-intelligent-ui` |
|
|
155
160
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from '../src/catalog/browser.js';
|
|
2
|
+
export const inject: string[];
|
|
3
|
+
export function apply(ctx: any): void;
|
|
4
|
+
export function promptSession(sessions: any, sessionId: string, text: string): Promise<void>;
|
|
5
|
+
export function createControlledRuntime(sessionId: string): any;
|