dsh-session-superagent 0.9.82 → 0.9.83

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,25 @@
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.83] - 2026-11-02 —— 空态引导不能引用不存在的控件
6
+
7
+ ### 为什么
8
+ 空态写着「③ 点「添加到当前会话」」,但那是**文案**;按钮一旦改名,引导就指向空气。
9
+ 这类失效不会报错,只会让客户照着做却没反应。
10
+
11
+ ### 做法
12
+ 用例从引导文本里抽出所有「…」引用的名字,逐个要求它们**在「触发」页真实出现**。
13
+
14
+ ### 过程中两次假通过(都是判据问题)
15
+ 1. 第一版断言写成 `trigger.includes(name) || overview.includes(name)` ——
16
+ 引导文本自己就含这个词,`overview` 永远为真 → **注入改名后仍 PASS**;
17
+ 2. 收紧成只查「触发」页后仍然 PASS,因为测试桩没传 `sessionId`,
18
+ 按钮渲染成「先打开一个会话」而引用的是「添加到当前会话」。
19
+ 给渲染桩加上 `props` 参数、测试传 `{ sessionId: 's1' }` 后,注入改名**立刻变红**。
20
+
21
+ ### 测试
22
+ - 新增 1 例(现在是真会红的那种)。合计 **196 例**。
23
+
5
24
  ## [0.9.82] - 2026-11-02 —— 跳过必须可见:skip 要带原因,用例体内不许静默 return
6
25
 
7
26
  ### 为什么
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.82-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.83-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
 
@@ -121,7 +121,7 @@ dsh plugin install /path/to/dsh-session-superagent
121
121
  ## 开发
122
122
 
123
123
  ```sh
124
- node --test # 195 项单测
124
+ node --test # 196 项单测
125
125
  ```
126
126
 
127
127
  ### 工具输出:文本给人和 agent,JSON 给程序
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.82'
17
+ const CLIENT_VERSION = '0.9.83'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
 
41
41
  export const name = 'dsh-session-superagent'
42
42
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
43
- export const SERVER_VERSION = '0.9.82'
43
+ export const SERVER_VERSION = '0.9.83'
44
44
  export const inject = ['tools', 'agents', 'webServer']
45
45
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
46
46
  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.82",
3
+ "version": "0.9.83",
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",