dsh-session-superagent 0.9.169 → 0.9.170
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 +31 -0
- package/MAINTENANCE.md +9 -6
- package/README.md +1 -1
- package/UPDATING.md +11 -6
- package/client.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
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.170] - 2026-11-04 —— 建立本仓库的维护标准(对照成熟开源项目的 55 条基准)
|
|
6
|
+
|
|
7
|
+
### 为什么
|
|
8
|
+
另一个会话把「成熟开源仓库的维护标准」调研做完了(55 条 / 十道分水岭 / 三处「标准悬空」)。
|
|
9
|
+
本仓库对照下来,**不是缺文件,是几处标准悬在半空**:
|
|
10
|
+
|
|
11
|
+
| 悬空形态 | 本仓库原状 | 现在 |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| 脚本写好了没人跑 | `ci.yml` 只跑 `preflight --fast`,ui-audit / check-docs / check-maintenance 从不执行 | CI 三步补齐 |
|
|
14
|
+
| 权限过度 | `ci.yml` 没有 `permissions:`(默认可能 write) | `contents: read` |
|
|
15
|
+
| 依赖更新无制度 | 无 dependabot(`actions/checkout@v4` 已落后) | `.github/dependabot.yml`(actions 周更) |
|
|
16
|
+
| 漏洞没有私密入口 | 无 `SECURITY.md` | 新增(含本插件的安全模型与已知边界) |
|
|
17
|
+
| 协作面为零 | 无 issue / PR 模板 | 三个 issue 表单 + PR 模板(bug 表单强制填版本/宿主/**是否重启**) |
|
|
18
|
+
| 分支保护 | **无**(`Branch not protected`) | 开 required check(`test (22)` / `test (24)`)+ 禁强推禁删;`enforce_admins=false` 是写明的取舍 |
|
|
19
|
+
| 标准没有文档 | — | [docs/维护标准.md](docs/维护标准.md):七条底线 + 20 项必备对照 + 十道分水岭 + **故意不做**的清单 |
|
|
20
|
+
|
|
21
|
+
### 落地物
|
|
22
|
+
- `.github/workflows/ci.yml`(权限最小化 + concurrency 取消旧跑 + fetch-depth 0 + 三步检查)
|
|
23
|
+
- `.github/ISSUE_TEMPLATE/{bug_report,feature_request,config}.yml`、`.github/PULL_REQUEST_TEMPLATE.md`
|
|
24
|
+
- `.github/dependabot.yml`、`SECURITY.md`、`docs/维护标准.md`
|
|
25
|
+
- 知识库第 178 条:[标准悬空:写好了没人调用 = 没写](docs/kb/standards-suspended-in-air.md)
|
|
26
|
+
|
|
27
|
+
### 证据
|
|
28
|
+
```
|
|
29
|
+
node --test → 267/267
|
|
30
|
+
preflight 全量 → 37/37
|
|
31
|
+
check-docs → 五项 PASS(178 篇)
|
|
32
|
+
check-maintenance → 6 项通过
|
|
33
|
+
gh api …/branches/main/protection → required_status_checks: ["test (22)","test (24)"], allow_force_pushes: false
|
|
34
|
+
```
|
|
35
|
+
|
|
5
36
|
## [0.9.169] - 2026-11-04 —— 发布通道补齐 + 维护标准本地化(取自 magpie 脚手架)
|
|
6
37
|
|
|
7
38
|
### 你指出的两件事
|
package/MAINTENANCE.md
CHANGED
|
@@ -26,17 +26,18 @@
|
|
|
26
26
|
| 资产 | 数量 |
|
|
27
27
|
|---|---:|
|
|
28
28
|
| `node --test` | 267 例全过 |
|
|
29
|
-
| `scripts/preflight.mjs` |
|
|
29
|
+
| `scripts/preflight.mjs` | 37 项全 PASS(`--fast` 36 项) |
|
|
30
30
|
| `scripts/ui-audit.mjs` | 11/11,100 分(写死颜色 0 / 自造 token 0) |
|
|
31
|
-
| `docs/kb` |
|
|
31
|
+
| `docs/kb` | 177 篇 / 9 板块(`check-docs` 五项 PASS,含总数校验) |
|
|
32
32
|
| `scripts/` | 52 个门禁与工装脚本 |
|
|
33
|
-
| GitHub Release |
|
|
33
|
+
| GitHub Release | 34 个(v0.9.136–v0.9.169 已补,其余待按批次回填) |
|
|
34
|
+
| CI / 分支保护 | `ci`(Node 22/24)在 PR 与 main 上跑;main 已开 required check,禁强推禁删 |
|
|
34
35
|
|
|
35
36
|
已验证(本轮实测):
|
|
36
37
|
|
|
37
|
-
- `node --test` → 267/267;preflight 全量
|
|
38
|
-
- `sync-profile --check` → 缺失 0 / 断链 0 / 陈旧 0;安装副本 `package.json` = 0.9.
|
|
39
|
-
- `npm publish` → `+ dsh-session-superagent@0.9.
|
|
38
|
+
- `node --test` → 267/267;preflight 全量 37/37;ui-audit 11/11 = 100;`check-docs` 五项 PASS;
|
|
39
|
+
- `sync-profile --check` → 缺失 0 / 断链 0 / 陈旧 0;安装副本 `package.json` = 0.9.169;
|
|
40
|
+
- `npm publish` → `+ dsh-session-superagent@0.9.169`;`git push` → 见 `git log --oneline -1`;
|
|
40
41
|
- 外部 PR:#2 / #3 / #5 / #6 已处理(#2 #3 → 0.9.167,#6 → 0.9.168,#5 按重复关闭);
|
|
41
42
|
#7(`ghConfigDir`)留在 open 等作者按三条意见改完。
|
|
42
43
|
|
|
@@ -65,6 +66,8 @@
|
|
|
65
66
|
5. **发布三处必须一致**:`package.json` / `lib/index.js` / `client.js` / README 徽章 / CHANGELOG
|
|
66
67
|
(`test/meta.test.mjs` 会拦),外加 **tag 与 Release 标题只写版本号**。
|
|
67
68
|
6. **不代改他人 PR**:给意见让对方改,改完我复核合入。
|
|
69
|
+
7. **标准写在文档里不算数**:新加的检查必须接进 `preflight` 或 CI,否则就是「标准悬空」
|
|
70
|
+
(写好了没人调用 = 没写)。见 [docs/维护标准.md](./docs/维护标准.md)。
|
|
68
71
|
|
|
69
72
|
## 五、给接手者的最短路径
|
|
70
73
|
|
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
|
|
package/UPDATING.md
CHANGED
|
@@ -21,17 +21,22 @@ node scripts/check-maintenance.mjs # 会告诉你哪处没对齐
|
|
|
21
21
|
# 3) 全量门禁(不是 --fast)
|
|
22
22
|
node scripts/preflight.mjs
|
|
23
23
|
|
|
24
|
-
# 4)
|
|
25
|
-
|
|
24
|
+
# 4) 提交,**commit 与 tag 一起推**
|
|
25
|
+
# 先推 commit 再补 tag,CI 会在「维护一致性」那一步红(tag 还不存在)—— 实测过一次。
|
|
26
|
+
git add -A && git commit -m "fix: ..."
|
|
27
|
+
git tag v<版本> && git push origin main v<版本>
|
|
26
28
|
|
|
27
|
-
# 5)
|
|
28
|
-
npm publish
|
|
29
|
-
|
|
30
|
-
# 6) 打 tag + 建 Release(标题自动是纯版本号)
|
|
29
|
+
# 5) 建 Release(标题自动是纯版本号;tag 已在,只补 Release)
|
|
31
30
|
node scripts/release-gh.mjs --latest
|
|
32
31
|
|
|
32
|
+
# 6) 发 npm
|
|
33
|
+
npm publish
|
|
34
|
+
|
|
33
35
|
# 7) 同步到本机安装副本(用户重启后生效)
|
|
34
36
|
node scripts/sync-profile.mjs
|
|
37
|
+
|
|
38
|
+
# 8) 看 CI 有没有绿(PR 会跳过维护一致性,main 上必须绿)
|
|
39
|
+
gh run list --workflow ci --limit 3
|
|
35
40
|
```
|
|
36
41
|
|
|
37
42
|
历史遗留版本要补 Release 时用 `node scripts/release-gh.mjs`(不带 `--latest`),
|
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.
|
|
17
|
+
const CLIENT_VERSION = '0.9.170'
|
|
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.
|
|
43
|
+
export const SERVER_VERSION = '0.9.170'
|
|
44
44
|
export const inject = ['tools', 'agents', 'webServer']
|
|
45
45
|
/** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
|
|
46
46
|
// 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-superagent",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.170",
|
|
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",
|