dsh-session-superagent 0.9.73 → 0.9.74

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,24 @@
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.74] - 2026-11-02 —— 首次使用时别让客户看到内部说法
6
+
7
+ ### 做法
8
+ 给面板文案快照加了**空态场景**(没配守、没凭证、没用量),把它当成"客户第一眼"来审。
9
+
10
+ ### 发现
11
+ 空态里有两处"内部说法":
12
+ | 位置 | 原文 | 现在 |
13
+ |---|---|---|
14
+ | 添加按钮(无会话时) | `需要会话上下文` | `先打开一个会话` |
15
+ | 说明行 | 同上 | `(在会话里打开本面板,才能把仓库绑到会话上)` |
16
+
17
+ 「会话上下文」是我们内部的叫法 —— 客户看到只会想"什么上下文?"
18
+
19
+ ### 测试
20
+ - 新增 1 例:空态必须有三步引导,且**不得出现** `deferReason / silentWakes / cursor / filterCounts / watch_ack` 这些内部字段名,也不许出现「需要会话上下文」。合计 **192 例**。
21
+ - 面板文案快照 129 → **153 行**(多了空态一节)。
22
+
5
23
  ## [0.9.73] - 2026-11-02 —— 门禁注入覆盖 26/26,并修掉一个"失败却 exit 0"
6
24
 
7
25
  ### 做了什么
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.73-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.74-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 # 191 项单测
124
+ node --test # 192 项单测
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.73'
17
+ const CLIENT_VERSION = '0.9.74'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
@@ -1410,7 +1410,7 @@ window.__ModuleLoader__.load({
1410
1410
  form.isolated ? field('隔离工作目录', h(Input, { value: form.workdir, placeholder: '绝对路径,留空 = 当前工作目录', onChange: (e) => setForm({ ...form, workdir: e.target.value }) })) : null,
1411
1411
  h('div', { className: 'dt-actions' },
1412
1412
  h(Btn, { variant: 'primary', icon: h(Icon, { name: 'plus' }), onClick: addWatcher, disabled: !sessionId || !form.repo.trim() },
1413
- sessionId ? '添加到当前会话' : '需要会话上下文'))))
1413
+ sessionId ? '添加到当前会话' : '先打开一个会话'))))
1414
1414
 
1415
1415
  const settingsSections = [
1416
1416
  h(Section, { key: 'source', title: '来源' },
@@ -1661,7 +1661,7 @@ window.__ModuleLoader__.load({
1661
1661
  h('h1', { className: 'dt-page-title' }, '主理鱼'),
1662
1662
  h('span', { className: 'dt-hint' },
1663
1663
  (body.sessionTitle ? '会话:' + body.sessionTitle + ' · ' : '')
1664
- + (sessionId ? '盯办 + 主动办:仓库有动静就叫醒本会话' : '需要会话上下文'))),
1664
+ + (sessionId ? '盯办 + 主动办:仓库有动静就叫醒本会话' : '(在会话里打开本面板,才能把仓库绑到会话上)'))),
1665
1665
  h('div', { className: 'dt-toolbar' },
1666
1666
  h(Input, { value: search, placeholder: '搜索仓库 / 编号 / 标题', onChange: (e) => setSearch(e.target.value), 'aria-label': '搜索' }),
1667
1667
  h(Btn, { size: 'sm', variant: 'ghost', icon: h(Icon, { name: 'question' }), onClick: () => setGlossary(true) }, '术语'),
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.73'
43
+ export const SERVER_VERSION = '0.9.74'
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.73",
3
+ "version": "0.9.74",
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",