@michengai/dsh-automation 0.1.12 → 0.1.14

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 ADDED
@@ -0,0 +1,36 @@
1
+ # Changelog
2
+
3
+ [简体中文](CHANGELOG.zh-CN.md)
4
+
5
+ The five most recent published versions are listed below. This repository did not create Git tags for these releases, so each version links to its release commit.
6
+
7
+ ## 0.1.14 — 2026-08-23
8
+
9
+ - Added bilingual changelogs covering the five most recent releases.
10
+ - Linked the release history from both README editions and included it in the npm package.
11
+
12
+ Published package: [`@michengai/dsh-automation@0.1.14`](https://www.npmjs.com/package/@michengai/dsh-automation/v/0.1.14).
13
+
14
+ ## 0.1.13 — 2026-08-23
15
+
16
+ - Logged internal RPC failures instead of leaving automation failures silent.
17
+
18
+ Release commit: [`6f04ae9`](https://github.com/MichengAI/dsh-automation/commit/6f04ae9).
19
+
20
+ ## 0.1.12 — 2026-08-23
21
+
22
+ - Aligned automation permission behavior with interactive chat.
23
+
24
+ Release commit: [`d116209`](https://github.com/MichengAI/dsh-automation/commit/d116209).
25
+
26
+ ## 0.1.11 — 2026-08-23
27
+
28
+ - Hardened automation safety checks and scheduling behavior.
29
+
30
+ Release commit: [`1692ca6`](https://github.com/MichengAI/dsh-automation/commit/1692ca6).
31
+
32
+ ## 0.1.10 — 2026-08-23
33
+
34
+ - Aligned the scheduled-task model selector with the chat model selector.
35
+
36
+ Release commit: [`f9d39ee`](https://github.com/MichengAI/dsh-automation/commit/f9d39ee).
@@ -0,0 +1,36 @@
1
+ # 更新日志
2
+
3
+ [English](CHANGELOG.md)
4
+
5
+ 以下记录最近发布的五个版本。仓库没有为这些版本创建 Git 标签,因此每个版本链接到对应的发布提交。
6
+
7
+ ## 0.1.14 — 2026-08-23
8
+
9
+ - 新增中英文更新日志,展示最近五个发布版本。
10
+ - 在中英文 README 中加入更新日志入口,并将日志纳入 npm 包。
11
+
12
+ 发布包:[`@michengai/dsh-automation@0.1.14`](https://www.npmjs.com/package/@michengai/dsh-automation/v/0.1.14)。
13
+
14
+ ## 0.1.13 — 2026-08-23
15
+
16
+ - 记录内部 RPC 失败,避免自动化执行错误被静默吞掉。
17
+
18
+ 发布提交:[`6f04ae9`](https://github.com/MichengAI/dsh-automation/commit/6f04ae9)。
19
+
20
+ ## 0.1.12 — 2026-08-23
21
+
22
+ - 使自动化权限行为与交互式聊天保持一致。
23
+
24
+ 发布提交:[`d116209`](https://github.com/MichengAI/dsh-automation/commit/d116209)。
25
+
26
+ ## 0.1.11 — 2026-08-23
27
+
28
+ - 加强自动化安全检查和调度行为。
29
+
30
+ 发布提交:[`1692ca6`](https://github.com/MichengAI/dsh-automation/commit/1692ca6)。
31
+
32
+ ## 0.1.10 — 2026-08-23
33
+
34
+ - 使定时任务模型选择器与聊天模型选择器保持一致。
35
+
36
+ 发布提交:[`f9d39ee`](https://github.com/MichengAI/dsh-automation/commit/f9d39ee)。
package/README.md CHANGED
@@ -169,3 +169,7 @@ pnpm build
169
169
  Start from the [documentation entry](docs/00-交接入口/00-阅读导航.md) for project status, architecture, and the current iteration. Product notes live in NOTICE.
170
170
 
171
171
  This project uses [Apache License 2.0](LICENSE).
172
+
173
+ ## Changelog
174
+
175
+ See [CHANGELOG.md](CHANGELOG.md) for the five most recent releases.
package/README.zh-CN.md CHANGED
@@ -169,3 +169,7 @@ pnpm build
169
169
  项目状态、使用边界、技术架构和迭代记录从[文档交接入口](docs/00-交接入口/00-阅读导航.md)开始。补充说明见 NOTICE。
170
170
 
171
171
  本项目采用 [Apache License 2.0](LICENSE)。
172
+
173
+ ## 更新日志
174
+
175
+ 最近五个发布版本见 [CHANGELOG.zh-CN.md](CHANGELOG.zh-CN.md)。
package/lib/index.js CHANGED
@@ -22511,6 +22511,9 @@ var WEEKDAYS = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"];
22511
22511
  var RpcRequestError = class extends Error {
22512
22512
  name = "RpcRequestError";
22513
22513
  };
22514
+ function isBadRequest(error51) {
22515
+ return error51 instanceof RpcRequestError || error51 instanceof AutomationRequestError;
22516
+ }
22514
22517
  function record2(value, label) {
22515
22518
  if (typeof value !== "object" || value === null || Array.isArray(value)) {
22516
22519
  throw new RpcRequestError(`${label} must be an object`);
@@ -22581,7 +22584,7 @@ function errorResult(error51, aborted2 = false) {
22581
22584
  };
22582
22585
  }
22583
22586
  const message = error51 instanceof Error ? error51.message : String(error51);
22584
- const badRequest = error51 instanceof RpcRequestError || error51 instanceof AutomationRequestError;
22587
+ const badRequest = isBadRequest(error51);
22585
22588
  return {
22586
22589
  ok: false,
22587
22590
  error: {
@@ -22729,6 +22732,10 @@ function registerAutomationRpc(ctx, service) {
22729
22732
  throw new RpcRequestError(`unknown automation endpoint '${endpoint}'`);
22730
22733
  }
22731
22734
  } catch (error51) {
22735
+ if (!signal.aborted && !isBadRequest(error51)) {
22736
+ const detail = error51 instanceof Error ? error51.stack ?? error51.message : String(error51);
22737
+ ctx.logger.warn(`dsh-automation: RPC '${endpoint}' failed: ${detail}`);
22738
+ }
22732
22739
  return errorResult(error51, signal.aborted);
22733
22740
  }
22734
22741
  }, { authority: "loopback" });
@@ -1,6 +1,9 @@
1
1
  /** 仅 loopback 的 Web 客户端 RPC 适配器。 */
2
2
  import { type AutomationService } from './service.ts';
3
3
  interface RpcContext {
4
+ readonly logger: {
5
+ warn(message: string): void;
6
+ };
4
7
  readonly connection: {
5
8
  readonly rpc: {
6
9
  handle(channel: string, handler: (endpoint: string, payload: unknown, signal: AbortSignal) => Promise<unknown>, options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-automation",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "在独立 DSH Session 中按计划执行编码任务,支持 Web 设置页与 Agent 双入口管理。",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -24,7 +24,9 @@
24
24
  "README.md",
25
25
  "README.zh-CN.md",
26
26
  "LICENSE",
27
- "NOTICE"
27
+ "NOTICE",
28
+ "CHANGELOG.md",
29
+ "CHANGELOG.zh-CN.md"
28
30
  ],
29
31
  "license": "Apache-2.0",
30
32
  "repository": {