dsh-session-superagent 0.9.37 → 0.9.38

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,30 @@
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.38] - 2026-11-02 —— 全 docs/ 一致性体检(并删掉一条假警报太多的检查)
6
+
7
+ ### 学到的(知识库第 86 条)
8
+ 静态检查最怕的不是查不出,而是**假警报** —— 假警报一多,人就学会无视工具,门禁等于失效。
9
+
10
+ ### 本轮我自己制造的三次假警报
11
+ | 检查 | 假警报 | 真因 |
12
+ |---|---|---|
13
+ | 路由存在性 | `~/.dsh/state/session-superagent/watchers.json` 被当成路由 | 文件路径与路由同形,要排除 `state/` 与 `.json` |
14
+ | 字段存在性 | `button` / `loading` / `glossary` 被判"lib 里没有" | 这些是**面板**的 React 概念,判据选错了层 |
15
+ | 路径存在性 | `lib/client.js` 被判不存在 | 那份文档描述的是**官方仓库**的文件 |
16
+
17
+ ### 最终留下的四条硬检查(17 份文档)
18
+ ```
19
+ PASS 工具名都对得上
20
+ PASS 路由都对得上
21
+ PASS 版本号都对得上
22
+ PASS 文件路径都对得上
23
+ ```
24
+ 字段检查**直接删掉**:无法区分组件名与服务端字段,假警报率太高 —— 宁可少一条检查,也不让门禁不可信。
25
+
26
+ ### 门禁
27
+ `preflight --fast` 第 **18** 项:`PASS 全库文档一致 17 份文档的工具/路由/版本/路径都对得上`。
28
+
5
29
  ## [0.9.37] - 2026-11-02 —— 唤醒消息单行 ≤ 120 字符(按字符算,不是字节)
6
30
 
7
31
  ### 学到的(知识库第 85 条)
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.37-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.38-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.37'
17
+ const CLIENT_VERSION = '0.9.38'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
 
40
40
  export const name = 'dsh-session-superagent'
41
41
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
42
- export const SERVER_VERSION = '0.9.37'
42
+ export const SERVER_VERSION = '0.9.38'
43
43
  export const inject = ['tools', 'agents', 'webServer']
44
44
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
45
45
  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.37",
3
+ "version": "0.9.38",
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",