dsh-session-superagent 0.8.83 → 0.8.84

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,27 @@
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.8.84] - 2026-11-02 —— 接口做减法:/state 少传 3 个没人读的字段
6
+
7
+ ### 怎么找出来的(知识库第 33 条)
8
+ 写脚本把 `/state` 的投影字段逐个在 `client.js` 里数引用:`cooldownMs` / `wakeTimes` / `lastBatch`
9
+ **各 0 次**。它们只服务端自己用(`wakeTimes` 用于限流),没必要每次推给界面。
10
+
11
+ ### 数字
12
+ | | 一条满载守的体积 |
13
+ |---|---|
14
+ | 含这三个字段 | **3.8 KB** |
15
+ | 去掉 | **2.2 KB** |
16
+
17
+ 单条省 1.6 KB;10 条守省 **16.9 KB / 次**。面板每 5 秒拉一次 → 一小时约 **12 MB** 的无用流量。
18
+
19
+ ### 改了什么
20
+ `/state` 不再回传这三个字段(**状态文件里保留**,服务端照旧用)。
21
+ 新增回归用例:一旦它们回到 `/state` 就红;同时确保在用字段(id/repo/intervalSec/enabled/filters/priority/history)仍在。
22
+
23
+ ### 测试
24
+ - 合计 **133 例**。
25
+
5
26
  ## [0.8.83] - 2026-11-02 —— CI 红绿:上一轮的顾虑被实测推翻
6
27
 
7
28
  ### 学到的(知识库第 32 条)
package/MAINTENANCE.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## 二、当前状态(2026-11-01)
11
11
 
12
- - [x] 七个工具可用(github / repo_here / watch_start / watch_status / watch_stop / watch_ack / watch_doctor),`node --test` 132/132 通过
12
+ - [x] 七个工具可用(github / repo_here / watch_start / watch_status / watch_stop / watch_ack / watch_doctor),`node --test` 133/133 通过
13
13
  - [x] 自回声抑制(逐条水位)
14
14
  - [x] 仅空闲注入(避免草稿回放)
15
15
  - [x] 唤醒失败不推进水位
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.8.83-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.8.84-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
 
@@ -99,7 +99,7 @@ dsh plugin install /path/to/dsh-session-superagent
99
99
  ## 开发
100
100
 
101
101
  ```sh
102
- node --test # 132 项单测
102
+ node --test # 133 项单测
103
103
  ```
104
104
 
105
105
  版本与发布流程见 [UPDATING.md](UPDATING.md),交付门见 [CHECKLIST.md](CHECKLIST.md),接手台账见 [MAINTENANCE.md](MAINTENANCE.md)。
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.8.83'
17
+ const CLIENT_VERSION = '0.8.84'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
 
31
31
  export const name = 'dsh-session-superagent'
32
32
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
33
- export const SERVER_VERSION = '0.8.83'
33
+ export const SERVER_VERSION = '0.8.84'
34
34
  export const inject = ['tools', 'agents', 'webServer']
35
35
 
36
36
  /** 仅供测试:读写状态文件(生产代码不要用)。 */
@@ -1080,7 +1080,6 @@ export function apply(ctx) {
1080
1080
  repoAccess: w.repoAccess ?? null,
1081
1081
  lastReopened: w.lastReopened ?? null,
1082
1082
  priority: w.priority ?? null,
1083
- lastBatch: w.lastBatch ?? [],
1084
1083
  isolated: w.isolated === true,
1085
1084
  workdir: w.workdir ?? null,
1086
1085
  lastWorktree: w.lastWorktree ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-superagent",
3
- "version": "0.8.83",
3
+ "version": "0.8.84",
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",