@michengai/dsh-automation 0.1.35 → 0.1.36

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 CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  The five most recent published versions are listed below. Git tags and GitHub Releases now mirror these entries; historical sections retain links to their original release commits.
6
6
 
7
+ ## 0.1.36 - 2026-09-10
8
+
9
+ - Support DSH `0.1.5-rc.1` Agent setup and Web RPC dependency injection while retaining legacy interfaces. Correct manual/scheduled history labels and cover the official patch engine, real Connection, AgentLoop, and permissions.
10
+ - Accept both persisted session-list formats; preserve all session links when enumeration is unavailable or malformed, avoiding accidental unlinking of existing cold sessions.
11
+ - Pin development dependencies to `0.1.5-rc.1` and restrict official Host peers to `0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1`. Other versions fall outside the declared range and fail strict peer installation. Add new versions to the standalone `pnpm test:matrix` before expanding support.
12
+
7
13
  ## 0.1.35 - 2026-09-09
8
14
 
9
15
  - Adjust model menu sizing and hint containers, and simplify model rows.
@@ -4,6 +4,12 @@
4
4
 
5
5
  以下记录最近发布的五个版本。Git 标签与 GitHub Release 现已和这些条目同步;历史条目继续保留原始发布提交链接。
6
6
 
7
+ ## 0.1.36 - 2026-09-10
8
+
9
+ - 适配 DSH `0.1.5-rc.1` 的显式 Agent 创建回调和 Web RPC 依赖注入,保留旧版接口;修正历史记录的手动/定时触发文案,并补充官方补丁引擎、真实 Connection、AgentLoop 与权限回归。
10
+ - 兼容新旧持久化会话列表;缺少枚举能力或发现异常枚举时保留全部会话关联,避免将仍存在的冷会话误判为已删除。
11
+ - 开发依赖锁定 `0.1.5-rc.1`,官方 Host peer 范围精确限定为 `0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1`。其他版本不在声明范围内,严格 peer 安装将失败;新增版本需扩展并运行独立的 `pnpm test:matrix`。
12
+
7
13
  ## 0.1.35 - 2026-09-09
8
14
 
9
15
  - 调整模型菜单的宽度及辅助文本容器,精简模型条目显示。
package/README.md CHANGED
@@ -70,6 +70,10 @@ For a ready-to-use workbench, download [DSH Codex Desktop](https://github.com/Mi
70
70
 
71
71
  ## Prerequisites
72
72
 
73
+ - The current source uses DSH `0.1.5-rc.1` for development and real Host compatibility tests, while retaining the legacy Agent setup callback and session-list formats. Back up automation storage and sessions in the Profile before upgrading the Host; V3 sessions cannot be read after downgrading.
74
+ - Official DSH peerDependencies are exactly `0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1`; development dependencies remain pinned to `0.1.5-rc.1`. Use one consistent official package version within each Host.
75
+ - Other versions are outside the declared compatibility range. Installers may warn, and strict peer validation rejects them. Extend and pass the version matrix before adding a new rc.
76
+ - The Connection patch replaces the Web bundle's configured injection list with `[webServer, webRuntime]`; Loader still merges dependencies declared by the plugin source. Custom Hosts with additional configured injections must retain these two entries and their extra dependencies in a later Profile patch. This patch does not automatically merge other bundles' lists.
73
77
  - A working DeepSeek Harness Web installation with `dsh` available in PowerShell.
74
78
  - Examples use the `web` profile; replace it with the target profile.
75
79
  - Source installation and development require Node.js 22.19+. npm installation does not require running `npm install` in an arbitrary directory.
@@ -178,7 +182,9 @@ pnpm test
178
182
  pnpm build
179
183
  ```
180
184
 
181
- `pnpm check` runs typecheck, tests, and build together.
185
+ `pnpm check` runs typecheck, unit tests, real Host compatibility tests, and build. `pnpm test:host` bypasses runtime stubs and uses the official AgentLoop, Session V3, and permission service with a fixed local model adapter; it makes no external model calls. Browser interactions and real model calls require separate acceptance testing.
186
+
187
+ `pnpm test:matrix` builds the package, then creates separate temporary npm environments for all four versions using network access. It checks strict peer installation, every official dependency version, the packaged entry point, real AgentLoop execution, and service regressions. All four versions pass. Persistence enumeration in service regressions uses in-memory fixtures for both cold-session formats; it does not validate on-disk migration of a real Profile. The printed evidence directory retains installation lockfiles, test logs, and `results.json`. The matrix does not modify development dependencies or connect to the user's Profile.
182
188
 
183
189
  ## License
184
190
 
package/README.zh-CN.md CHANGED
@@ -70,6 +70,10 @@
70
70
 
71
71
  ## 前置条件
72
72
 
73
+ - 当前源码以 DSH `0.1.5-rc.1` 为开发和真实宿主测试基线,保留旧版 Agent 创建回调及会话列表格式的兼容。升级宿主前备份 Profile 中的自动化存储和会话目录;V3 会话不支持降级读取。
74
+ - 官方 DSH peerDependencies 精确限定为 `0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1`;开发依赖固定为 `0.1.5-rc.1`。同一宿主中的官方包应使用一致版本。
75
+ - 其他版本不在声明兼容范围内;安装器可能提示 peer 警告,启用严格 peer 校验时会失败。支持新 rc 前需扩展版本矩阵并通过验证。
76
+ - Connection 补丁替换 Web bundle 的配置注入列表为 `[webServer, webRuntime]`,Loader 仍会合并插件源码声明的依赖。自定义宿主若增加了其他配置注入,需在后置 Profile 补丁中保留这两项并补齐自定义依赖;本补丁不自动合并其他 bundle 的列表。
73
77
  - 已可正常运行 DeepSeek Harness Web,且可在 PowerShell 中使用 `dsh`。
74
78
  - 以下示例使用 `web` profile;请替换为实际目标 profile。
75
79
  - 从源码安装或二次开发需要 Node.js 22.19+;仅从 npm 安装无需在任意目录执行 `npm install`。
@@ -178,7 +182,9 @@ pnpm test
178
182
  pnpm build
179
183
  ```
180
184
 
181
- `pnpm check` 会连续执行类型检查、测试和构建。
185
+ `pnpm check` 会连续执行类型检查、单元测试、真实宿主兼容测试和构建。`pnpm test:host` 不加载宿主运行时桩,使用官方 AgentLoop、Session V3 和权限服务,模型响应由本地固定适配器提供,不调用外部模型。浏览器交互和真实模型调用需另行验收。
186
+
187
+ `pnpm test:matrix` 先构建发布包,再联网为上述四个版本分别建立临时 npm 环境,执行严格 peer 安装、整棵官方依赖树版本检查、发布入口加载、真实 AgentLoop 执行和服务回归。四版均通过;服务回归中的持久化枚举使用内存夹具,覆盖新旧冷会话格式,不等同于真实 Profile 的磁盘迁移验收。脚本输出证据目录,保留各版安装锁文件、测试日志和 `results.json`。矩阵不修改开发依赖,也不连接用户 Profile。
182
188
 
183
189
  ## 许可证
184
190
 
package/cordis.patch.yml CHANGED
@@ -1,4 +1,11 @@
1
1
  # 一次安装同时挂载 Host 服务并发布 Web 客户端。
2
+ # 新版 Connection 的独立 RPC 注册在自身作用域读取 webServer,需显式注入。
3
+ # 此列表替换官方 Web bundle 的 [webRuntime];插件源码声明的依赖仍由 Loader 合并。
4
+ - id: connection
5
+ name: '@deepseek-ai/dsh-client-connection'
6
+ inject:
7
+ - webServer
8
+ - webRuntime
2
9
  - insert:
3
10
  - id: dsh-automation
4
11
  name: '@michengai/dsh-automation'
package/lib/client.js CHANGED
@@ -34,6 +34,9 @@ var import_react6 = require("react");
34
34
  var import_dsh_client_ui_primitives2 = require("@deepseek-ai/dsh-client-ui-primitives");
35
35
 
36
36
  // src/client/helpers.ts
37
+ function formatRunTrigger(trigger, t) {
38
+ return t(`run.trigger.${trigger}`);
39
+ }
37
40
  var AutomationFormError = class extends Error {
38
41
  constructor(key) {
39
42
  super(key);
@@ -2470,7 +2473,7 @@ function RunRow({ run, t }) {
2470
2473
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("p", { children: [
2471
2474
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: clockTime(run.startedAt ?? run.scheduledFor) }),
2472
2475
  duration !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: duration }),
2473
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: t("history.trigger") })
2476
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: formatRunTrigger(run.trigger, t) })
2474
2477
  ] })
2475
2478
  ] });
2476
2479
  }
@@ -2548,7 +2551,6 @@ var en = {
2548
2551
  "history.date": "{date}",
2549
2552
  "history.week": "Week of {date}",
2550
2553
  "history.month": "{month}",
2551
- "history.trigger": "Scheduled",
2552
2554
  "history.nextApprox": "Next run in about {when}",
2553
2555
  "time.withinMinute": "about {count} minutes",
2554
2556
  "time.withinHour": "about {count} hours",
@@ -2677,7 +2679,6 @@ var en = {
2677
2679
  "card.cancel": "Cancel",
2678
2680
  "run.trigger.schedule": "Scheduled",
2679
2681
  "run.trigger.manual": "Manual",
2680
- "run.trigger.catch-up": "Catch-up",
2681
2682
  "run.openSession": "Session {id}",
2682
2683
  "run.markRead": "Mark reviewed",
2683
2684
  loading: "Loading automations\u2026",
@@ -2765,7 +2766,6 @@ var zh = {
2765
2766
  "history.date": "{date}",
2766
2767
  "history.week": "{date} \u5F53\u5468",
2767
2768
  "history.month": "{month}",
2768
- "history.trigger": "\u5B9A\u65F6\u89E6\u53D1",
2769
2769
  "history.nextApprox": "\u4E0B\u6B21\u6267\u884C \u5927\u7EA6 {when}",
2770
2770
  "time.withinMinute": "{count} \u5206\u949F\u5185",
2771
2771
  "time.withinHour": "{count} \u5C0F\u65F6\u5185",
@@ -2892,9 +2892,8 @@ var zh = {
2892
2892
  "card.confirmDeleteHint": "\u8FD0\u884C\u5386\u53F2\u4F1A\u4FDD\u7559\u7528\u4E8E\u5BA1\u8BA1\u3002",
2893
2893
  "card.confirm": "\u786E\u8BA4\u5220\u9664",
2894
2894
  "card.cancel": "\u53D6\u6D88",
2895
- "run.trigger.schedule": "\u5B9A\u65F6",
2896
- "run.trigger.manual": "\u624B\u52A8",
2897
- "run.trigger.catch-up": "\u8865\u507F\u8FD0\u884C",
2895
+ "run.trigger.schedule": "\u5B9A\u65F6\u89E6\u53D1",
2896
+ "run.trigger.manual": "\u624B\u52A8\u89E6\u53D1",
2898
2897
  "run.openSession": "Session {id}",
2899
2898
  "run.markRead": "\u6807\u8BB0\u5DF2\u5904\u7406",
2900
2899
  loading: "\u6B63\u5728\u52A0\u8F7D\u81EA\u52A8\u5316\u2026",