dsh-session-superagent 0.8.95 → 0.8.96
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 +29 -0
- package/README.md +2 -2
- package/client.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
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.8.96] - 2026-11-02 —— index.js 量完不拆;顺手加文档体检
|
|
6
|
+
|
|
7
|
+
### 一、为什么**不**拆 index.js(知识库第 45 条)
|
|
8
|
+
用拆 watch.js 的同一套方法量化:
|
|
9
|
+
```
|
|
10
|
+
基建区 1000 行 / 注册区 796 行
|
|
11
|
+
注册区用到的基建名字:25 个(占 46 个定义)
|
|
12
|
+
每条路由平均跨度:53 行
|
|
13
|
+
```
|
|
14
|
+
对比 watch.js 那次是**零依赖单向关系**,这边是 25 个共享符号 ——
|
|
15
|
+
拆开等于给每条路由传一大包依赖或造"上帝对象",复杂度从一维变两维。
|
|
16
|
+
它已是"上基建、下注册"的纵向结构,**不拆**。
|
|
17
|
+
|
|
18
|
+
### 二、顺手加的:文档体检
|
|
19
|
+
45+ 篇文档互相引用,写错的链接没人会发现。新增 `scripts/check-docs.mjs`:
|
|
20
|
+
- 扫全部 Markdown,只查仓库内相对链接;
|
|
21
|
+
- 额外查**孤儿文档**(`docs/kb/*.md` 没被索引 = 客户永远看不到)。
|
|
22
|
+
|
|
23
|
+
首跑结果:
|
|
24
|
+
```
|
|
25
|
+
扫描 66 篇 Markdown,63 个内部链接目标
|
|
26
|
+
PASS 所有内部链接都能解析
|
|
27
|
+
PASS 知识库文档全部被索引
|
|
28
|
+
```
|
|
29
|
+
都健康 —— 但**这是运气不是保证**。已接入 preflight(第 10 项)。
|
|
30
|
+
|
|
31
|
+
### 测试
|
|
32
|
+
- 138 例全过;preflight **10 项**全过。
|
|
33
|
+
|
|
5
34
|
## [0.8.95] - 2026-11-02 —— 按「改动轴」拆开 watch.js(883 → 486 行)
|
|
6
35
|
|
|
7
36
|
### 学到的(知识库第 44 条)
|
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)
|
|
6
|
-
[](https://github.com/MYCF711/dsh-session-superagent/releases)
|
|
7
7
|
[](https://www.npmjs.com/package/dsh-session-superagent)
|
|
8
8
|
[](https://github.com/topics/dsh-plugin)
|
|
9
9
|
|
|
@@ -143,7 +143,7 @@ dsh plugin --profile <profile> add dsh-session-superagent@latest
|
|
|
143
143
|
```bash
|
|
144
144
|
node --test # 103 例单测
|
|
145
145
|
node scripts/ui-audit.mjs # 11 项 UI 指标(写死颜色 / 自造 token / 官方结构采用 …)
|
|
146
|
-
node scripts/preflight.mjs #
|
|
146
|
+
node scripts/preflight.mjs # 10 项门禁(含上面两条,外加 profile 一致性、路由面、包内容)
|
|
147
147
|
node scripts/render-preview.mjs preview.html # 双主题静态预览,直接浏览器打开
|
|
148
148
|
```
|
|
149
149
|
|
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.
|
|
17
|
+
const CLIENT_VERSION = '0.8.96'
|
|
18
18
|
let BASE = '/session-superagent'
|
|
19
19
|
/**
|
|
20
20
|
* 挑「最新的那个服务端实例」。
|
package/lib/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
|
|
32
32
|
export const name = 'dsh-session-superagent'
|
|
33
33
|
/** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
|
|
34
|
-
export const SERVER_VERSION = '0.8.
|
|
34
|
+
export const SERVER_VERSION = '0.8.96'
|
|
35
35
|
export const inject = ['tools', 'agents', 'webServer']
|
|
36
36
|
|
|
37
37
|
/** 仅供测试:读写状态文件(生产代码不要用)。 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-superagent",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.96",
|
|
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",
|