dsh-session-superagent 0.9.26 → 0.9.27

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
@@ -2,6 +2,35 @@
2
2
 
3
3
  格式参照 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## [0.9.27] - 2026-11-02 —— 隔离执行链路在本机真跑通了(9 步)
6
+
7
+ ### 为什么做
8
+ 唤醒消息里写着"在隔离工作区里改,推分支开 PR",但这条链路一直只有"读过代码"
9
+ 和"worktree list 里出现过目录" —— 从没真跑过一遍完整流程。
10
+
11
+ ### 新增:`scripts/verify-isolation.mjs`
12
+ 在本机临时仓库里真开 worktree、真改文件、真提交、真回收,输出 9 步结论:
13
+ ```
14
+ PASS 临时仓库就绪
15
+ PASS 开隔离工作区 <tmp>
16
+ PASS 隔离区里能改能提交 d08af28 fix: #42
17
+ PASS 主工作区没被污染 README.md 仍是原样
18
+ PASS 回收隔离区 1 个 worktree
19
+ PASS 回收后分支仍在(remove 不管分支) zhuli/demo
20
+ PASS 显式删分支才真的清掉 zhuli/demo 已删除
21
+ PASS 数量线回收最旧的 3 个 wt6,wt7,wt8
22
+ PASS 孤儿目录 prune 后不再挂着 1 个 worktree
23
+ PASS 隔离链路 9 步全部通过
24
+ ```
25
+
26
+ ### 它纠正了一个误解
27
+ `git worktree remove` **不会**删分支。产品里是显式再跑 `git branch -D` 才清理干净 ——
28
+ 脚本第一版断言"分支随回收删除",直接 FAIL,按产品的真实命令序列改写后才通过。
29
+ **这就是"读代码以为懂"和"真跑一遍"的差别。**
30
+
31
+ ### 门禁
32
+ `preflight --fast` 第 **13** 项:`PASS 隔离链路 9 步全部通过`(1.3 秒)。
33
+
5
34
  ## [0.9.26] - 2026-11-02 —— 客户会读到的文字有了快照,改动必须是有意的
6
35
 
7
36
  ### 做法
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  <img src="assets/icon-180.png" width="88" height="88" alt="">
4
4
 
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
6
- [![Version](https://img.shields.io/badge/version-0.9.26-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.27-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
7
7
  [![npm](https://img.shields.io/npm/v/dsh-session-superagent.svg)](https://www.npmjs.com/package/dsh-session-superagent)
8
8
  [![dsh](https://img.shields.io/badge/DeepSeek%20Harness-plugin-orange.svg)](https://github.com/topics/dsh-plugin)
9
9
 
package/client.js CHANGED
@@ -14,7 +14,7 @@ window.__ModuleLoader__.load({
14
14
  const { useCallback, useEffect, useRef, useState } = React
15
15
 
16
16
  // 客户端版本探针:每次模块加载写一次,用来确认浏览器里跑的是哪一版
17
- const CLIENT_VERSION = '0.9.26'
17
+ const CLIENT_VERSION = '0.9.27'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
 
35
35
  export const name = 'dsh-session-superagent'
36
36
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
37
- export const SERVER_VERSION = '0.9.26'
37
+ export const SERVER_VERSION = '0.9.27'
38
38
  export const inject = ['tools', 'agents', 'webServer']
39
39
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
40
40
  const DEFAULT_SESSION_WAKES = 12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-superagent",
3
- "version": "0.9.26",
3
+ "version": "0.9.27",
4
4
  "description": "Session-level superagent for DeepSeek Harness: watch a GitHub repository and wake a session when something needs doing. Credentials never reach the model.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",