@michengai/dsh-agency-agents 0.1.35 → 0.1.38
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 +34 -1
- package/CHANGELOG.zh-CN.md +34 -1
- package/README.md +24 -1
- package/README.zh-CN.md +24 -1
- package/lib/client.js +1136 -217
- package/lib/{index-Cj9YDkgr.d.ts → index-D4dhi1A4.d.ts} +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/remote.d.ts +40 -2
- package/lib/remote.js +150 -9
- package/lib/{src-CYNv1yps.js → src-CtqSbp2k.js} +329 -48
- package/package.json +54 -46
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,40 @@
|
|
|
4
4
|
|
|
5
5
|
The five most recent published versions are listed below.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## 0.1.38 - 2026-09-10
|
|
8
|
+
|
|
9
|
+
- Add the exact release-age exception for official `dsh-chunked-list@0.1.5-rc.1`, fixing clean CI installation.
|
|
10
|
+
- Type-check browser tests, configuration, and server scripts; require Chromium regressions in the release gate and CI.
|
|
11
|
+
- Clean temporary test files even when building fails, allow a custom port, and clarify the boundary between source tests and published-artifact acceptance.
|
|
12
|
+
|
|
13
|
+
- Fix backdrop dismissal moving focus away after prompt preview closes; add real Chromium regressions for three dismissal paths and StrictMode.
|
|
14
|
+
- Centralize legacy cleanup checks in the expert library and avoid accessing unregistered or disposed settings when there is no cleanup work.
|
|
15
|
+
- Restore focus to the original View Prompt button when closing the preview with Escape or the Close button, including after asynchronous prompt loading.
|
|
16
|
+
- Enumerate the four validated DSH RC versions (`0.1.0-rc.8`, `0.1.1-rc.2`, `0.1.2-rc.1`, `0.1.5-rc.1`) in host and package peers; allow the matching older Cordis and Schemastery baselines. Keep the legacy client runtime optional.
|
|
17
|
+
- Wait for settings registration before cleaning legacy deleted experts, fixing the startup warning and skipped cleanup on older hosts.
|
|
18
|
+
- Build against DSH `0.1.5-rc.1` with pinned development dependencies.
|
|
19
|
+
|
|
20
|
+
## 0.1.37 - 2026-09-10
|
|
21
|
+
|
|
22
|
+
This tag has a GitHub Release, but dependency release-age checks blocked CI and no npm package was published. Use 0.1.38.
|
|
23
|
+
|
|
24
|
+
- Type-check browser tests, configuration, and server scripts; require Chromium regressions in the release gate and CI.
|
|
25
|
+
- Clean temporary test files even when building fails, allow a custom port, and clarify the boundary between source tests and published-artifact acceptance.
|
|
26
|
+
|
|
27
|
+
- Fix backdrop dismissal moving focus away after prompt preview closes; add real Chromium regressions for three dismissal paths and StrictMode.
|
|
28
|
+
- Centralize legacy cleanup checks in the expert library and avoid accessing unregistered or disposed settings when there is no cleanup work.
|
|
29
|
+
- Restore focus to the original View Prompt button when closing the preview with Escape or the Close button, including after asynchronous prompt loading.
|
|
30
|
+
- Enumerate the four validated DSH RC versions (`0.1.0-rc.8`, `0.1.1-rc.2`, `0.1.2-rc.1`, `0.1.5-rc.1`) in host and package peers; allow the matching older Cordis and Schemastery baselines. Keep the legacy client runtime optional.
|
|
31
|
+
- Wait for settings registration before cleaning legacy deleted experts, fixing the startup warning and skipped cleanup on older hosts.
|
|
32
|
+
- Build against DSH `0.1.5-rc.1` with pinned development dependencies.
|
|
33
|
+
|
|
34
|
+
## 0.1.36 - 2026-09-09
|
|
35
|
+
|
|
36
|
+
- Create your own experts in Expert Settings: write custom instructions, copy and adapt a built-in expert, and choose an avatar and Emoji.
|
|
37
|
+
- Once enabled, custom experts are available by typing @ or clicking the Experts button in chat. Their reference tags use the same clean name display as built-in experts.
|
|
38
|
+
- Filter experts by source and enabled status for easier management. Deleting a custom expert is permanent and frees up a slot, so please check before deleting.
|
|
39
|
+
- Keep your draft when edits from multiple windows conflict, then review the latest content before saving. Experts with duplicate names can still be renamed or deleted in Settings without affecting other experts.
|
|
40
|
+
- Improved the chat entry, dropdown menus, and keyboard interactions; fixed issues with viewing, copying, and using some expert prompts; and improved update reliability.
|
|
8
41
|
|
|
9
42
|
## 0.1.35 - 2026-09-09
|
|
10
43
|
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,7 +4,40 @@
|
|
|
4
4
|
|
|
5
5
|
以下记录最近发布的五个版本。
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## 0.1.38 - 2026-09-10
|
|
8
|
+
|
|
9
|
+
- 补齐官方 `dsh-chunked-list@0.1.5-rc.1` 的精确发布等待期例外,修复全新 CI 安装被阻止的问题。
|
|
10
|
+
- 将浏览器测试、配置和服务脚本纳入类型检查;发布门禁及 CI 强制执行 Chromium 回归。
|
|
11
|
+
- 测试服务在构建失败时也清理临时目录,支持自定义端口,并明确源码测试与发布产物验收的边界。
|
|
12
|
+
|
|
13
|
+
- 修复点击提示词预览遮罩关闭后焦点被鼠标默认行为移走的问题,新增真实 Chromium 回归,覆盖三种关闭方式及 StrictMode。
|
|
14
|
+
- 将旧记录清理判断集中到专家库,无待清理记录时不访问尚未注册或已卸载的设置区。
|
|
15
|
+
- 修复提示词异步加载后关闭预览的焦点恢复,按 Escape 或点击关闭均返回原“查看提示词”按钮。
|
|
16
|
+
- 在宿主和子包 peer 中枚举四个已验证的 DSH RC(`0.1.0-rc.8`、`0.1.1-rc.2`、`0.1.2-rc.1`、`0.1.5-rc.1`),放行对应旧版 Cordis 和 Schemastery,保留旧客户端 runtime 为可选依赖。
|
|
17
|
+
- 等设置区注册后再清理旧删除记录,修复旧宿主启动警告及清理未执行的问题。
|
|
18
|
+
- DSH 开发依赖固定为 `0.1.5-rc.1`。
|
|
19
|
+
|
|
20
|
+
## 0.1.37 - 2026-09-10
|
|
21
|
+
|
|
22
|
+
此标签已创建 GitHub Release,但依赖发布等待期检查阻止 CI,未发布到 npm;请使用 0.1.38。
|
|
23
|
+
|
|
24
|
+
- 将浏览器测试、配置和服务脚本纳入类型检查;发布门禁及 CI 强制执行 Chromium 回归。
|
|
25
|
+
- 测试服务在构建失败时也清理临时目录,支持自定义端口,并明确源码测试与发布产物验收的边界。
|
|
26
|
+
|
|
27
|
+
- 修复点击提示词预览遮罩关闭后焦点被鼠标默认行为移走的问题,新增真实 Chromium 回归,覆盖三种关闭方式及 StrictMode。
|
|
28
|
+
- 将旧记录清理判断集中到专家库,无待清理记录时不访问尚未注册或已卸载的设置区。
|
|
29
|
+
- 修复提示词异步加载后关闭预览的焦点恢复,按 Escape 或点击关闭均返回原“查看提示词”按钮。
|
|
30
|
+
- 在宿主和子包 peer 中枚举四个已验证的 DSH RC(`0.1.0-rc.8`、`0.1.1-rc.2`、`0.1.2-rc.1`、`0.1.5-rc.1`),放行对应旧版 Cordis 和 Schemastery,保留旧客户端 runtime 为可选依赖。
|
|
31
|
+
- 等设置区注册后再清理旧删除记录,修复旧宿主启动警告及清理未执行的问题。
|
|
32
|
+
- DSH 开发依赖固定为 `0.1.5-rc.1`。
|
|
33
|
+
|
|
34
|
+
## 0.1.36 - 2026-09-09
|
|
35
|
+
|
|
36
|
+
- 新增自定义专家:在专家设置中创建自己的角色、编写提示词,也可以复制内置专家后修改,并选择头像和 Emoji。
|
|
37
|
+
- 自定义专家启用后,可在聊天中输入 @ 或点击「专家」按钮选择;引用标签与内置专家保持一致,简洁展示专家名称。
|
|
38
|
+
- 支持按来源和启用状态筛选,方便管理专家。删除自定义专家会永久移除并释放名额,请在删除前确认。
|
|
39
|
+
- 多窗口编辑发生冲突时保留草稿,可核对最新内容后继续保存;专家重名时仍可在设置中改名或删除,不影响其他专家使用。
|
|
40
|
+
- 优化聊天入口、下拉菜单和键盘操作体验,修复部分专家提示词查看、复制和调用异常,并提升更新稳定性。
|
|
8
41
|
|
|
9
42
|
## 0.1.35 - 2026-09-09
|
|
10
43
|
|
package/README.md
CHANGED
|
@@ -64,8 +64,14 @@ For a ready-to-use workbench, download [DSH Codex Desktop](https://github.com/Mi
|
|
|
64
64
|
- Examples use the `web` profile; replace it with the target profile.
|
|
65
65
|
- Source installation and development require Node.js 22+ and pnpm. npm installation does not require running `pnpm install` separately.
|
|
66
66
|
|
|
67
|
+
## Host dependencies and compatibility
|
|
68
|
+
|
|
69
|
+
DSH `dsh.client.inject` controls browser module loading order. Missing graph entries are skipped, and frozen modules need not exist as npm packages in a profile. Runtime / primitives entries remain for validated older RCs. Required peers such as `dsh-client-ui-slots` retain the runtime contract. Profiles with `auto-install-peers` disabled may report unmet peers; strict peer checks may also block installation. Check the host version and browser module availability rather than inferring runtime failure solely from the npm tree.
|
|
70
|
+
|
|
67
71
|
## Installation
|
|
68
72
|
|
|
73
|
+
Supported DeepSeek Harness RC versions: `0.1.0-rc.8`, `0.1.1-rc.2`, `0.1.2-rc.1`, and `0.1.5-rc.1`. The host is supplied by your existing CLI or Desktop installation; the plugin does not install another copy. Future RC versions require separate compatibility validation.
|
|
74
|
+
|
|
69
75
|
The installation commands below use the official npm registry.
|
|
70
76
|
|
|
71
77
|
### Ask an agent to install it (recommended)
|
|
@@ -738,7 +744,24 @@ pnpm test
|
|
|
738
744
|
pnpm verify
|
|
739
745
|
```
|
|
740
746
|
|
|
741
|
-
`prepublishOnly` runs
|
|
747
|
+
`prepublishOnly` runs the build, unit tests, browser regressions, and package-integrity checks before publishing. Release CI installs Chromium and its system dependencies; before the first local release, run the browser installation command below.
|
|
748
|
+
|
|
749
|
+
Run browser interaction regressions separately (real React DOM and Chromium; no DSH credentials or user profile required):
|
|
750
|
+
|
|
751
|
+
```powershell
|
|
752
|
+
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
|
753
|
+
$OutputEncoding = [System.Text.Encoding]::UTF8
|
|
754
|
+
pnpm exec playwright install chromium
|
|
755
|
+
pnpm test:browser
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
Coverage includes asynchronous loading, focus restoration after Escape, close-button and backdrop dismissal, StrictMode, and successive triggers. These component tests do not replace real-host or model-delegation acceptance. Browser tests bundle source rather than loading the published `lib/client.js`; artifacts still require build, package checks, and real-host acceptance. Override the default port 18769 with the `AGENCY_BROWSER_TEST_PORT` environment variable if needed.
|
|
759
|
+
|
|
760
|
+
## Custom experts
|
|
761
|
+
|
|
762
|
+
Open Settings → Experts → New expert. Set a name, description, category and prompt, then choose an avatar and a separate summon emoji (default 🧩). Save and enable makes the expert immediately available through @ and the Experts button. Reference labels use the standard expert icon and plain name, matching built-in experts; the emoji appears in candidate menus. Copy a base expert to customize it, or edit, enable, disable and delete custom experts. Deletion permanently removes the expert content and enabled state; it cannot be undone.
|
|
763
|
+
|
|
764
|
+
Data lives in the DSH settings agency-agents namespace outside the plugin directory and survives upgrades. External root still replaces the base roster; custom experts are appended. Viewing, copying, and summoning nested experts use the actual file selected by the catalog. The limit is 200 existing custom experts. Deletion frees a slot; legacy soft-deleted records are cleaned up on startup and subsequent writes. Name conflicts introduced by a base catalog update remain visible in Settings for renaming or deletion, but conflicting experts cannot be summoned. Concurrent changes reject stale saves and keep the draft in the editor. Read and compare the latest content, choose to keep your draft or load that content, then save explicitly. Deleted experts can only be continued as new experts. Remove disabled draft references or re-enable the expert; remove and reselect deleted or conflicting references. Writes carry a revision; see the [Remote contract](src/remote-contract.ts). Back up current settings before downgrading: restoring custom data is separate from rolling back plugin code.
|
|
742
765
|
|
|
743
766
|
## License and attribution
|
|
744
767
|
|
package/README.zh-CN.md
CHANGED
|
@@ -64,8 +64,14 @@
|
|
|
64
64
|
- 以下示例使用 `web` profile;请替换为实际目标 profile。
|
|
65
65
|
- 从源码安装或二次开发需要 Node.js 22+ 与 pnpm;仅从 npm 安装无需单独执行 `pnpm install`。
|
|
66
66
|
|
|
67
|
+
## 宿主依赖与兼容性
|
|
68
|
+
|
|
69
|
+
DSH 的 `dsh.client.inject` 声明浏览器模块的加载顺序;宿主模块图中不存在的项会跳过,冻结模块也不一定对应 Profile 内的 npm 包。为兼容已验证的旧 RC,保留 runtime / primitives 条目。`dsh-client-ui-slots` 等 required peer 仍表达运行时契约;关闭 `auto-install-peers` 的 Profile 可能出现 unmet peer 提示,严格 peer 检查还可能阻止安装,需核对宿主版本及浏览器模块是否提供,不能据 npm 包树缺失直接判定运行失败。
|
|
70
|
+
|
|
67
71
|
## 安装
|
|
68
72
|
|
|
73
|
+
支持的 DeepSeek Harness RC 版本:`0.1.0-rc.8`、`0.1.1-rc.2`、`0.1.2-rc.1`、`0.1.5-rc.1`。主程序由现有 CLI 或 Desktop 提供,插件不会另行安装;后续 RC 需另行验证兼容性。
|
|
74
|
+
|
|
69
75
|
以下安装命令使用官方 npm 源。
|
|
70
76
|
|
|
71
77
|
### 让 Agent 帮你安装(推荐)
|
|
@@ -738,7 +744,24 @@ pnpm test
|
|
|
738
744
|
pnpm verify
|
|
739
745
|
```
|
|
740
746
|
|
|
741
|
-
`prepublishOnly`
|
|
747
|
+
`prepublishOnly` 在发布前执行构建、单元测试、浏览器回归和包完整性检查;发布 CI 自动安装 Chromium 及系统依赖。首次本地发布前需执行下方浏览器安装命令。
|
|
748
|
+
|
|
749
|
+
浏览器交互回归独立运行(真实 React DOM 与 Chromium,不需要 DSH 认证或用户 Profile):
|
|
750
|
+
|
|
751
|
+
```powershell
|
|
752
|
+
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
|
753
|
+
$OutputEncoding = [System.Text.Encoding]::UTF8
|
|
754
|
+
pnpm exec playwright install chromium
|
|
755
|
+
pnpm test:browser
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
覆盖异步加载后通过 Escape、关闭按钮和遮罩退出时的焦点恢复,以及 StrictMode 和连续打开不同专家。该测试验证组件交互,不替代真实宿主和模型委派验收。 浏览器测试从源码构建,不加载发布的 `lib/client.js`;产物仍需构建、包校验及真实宿主验收。端口默认 18769,占用时可通过 `AGENCY_BROWSER_TEST_PORT` 环境变量覆盖。
|
|
759
|
+
|
|
760
|
+
## 自定义专家
|
|
761
|
+
|
|
762
|
+
在「设置 → 专家」点击「新建专家」,填写名称、简介、分类和专家提示词,可分别选择头像与召唤 Emoji(默认 🧩)。「保存并启用」后立即通过 @ 或专家按钮选择;标签与内置专家一致,显示统一专家图标和纯名称;Emoji 用于候选菜单。基础专家可复制为自定义,自定义专家可编辑、启停、删除,删除会永久移除专家内容及启用状态,无法撤销。
|
|
763
|
+
|
|
764
|
+
数据保存在 DSH settings 的 agency-agents 命名空间,独立于插件目录,升级保留。外部 root 仍替换基础名册,自定义专家追加到该名册;嵌套目录专家的查看、复制与召唤均读取名册选中的实际文件。最多保留 200 位自定义专家,删除立即释放名额;旧版已删除记录在启动及后续写入时清理。内置或外部目录更新导致的名称冲突会在设置页标记,允许改名或删除,冲突专家暂停召唤。多窗口冲突时在当前编辑器保留草稿,可读取最新内容并核对,选择继续使用草稿或载入最新内容后再保存;已删除专家只能作为新专家继续。停用的草稿标签需移除或重新启用,已删除或冲突的标签需移除并重新选择。写入携带修订号,协议以 [Remote 契约](src/remote-contract.ts) 为准。回退旧插件前应备份最新 settings,自定义数据的恢复与代码回退分开处理。
|
|
742
765
|
|
|
743
766
|
## 许可证与归属
|
|
744
767
|
|