dsh-session-superagent 0.9.28 → 0.9.29

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.29] - 2026-11-02 —— 「多久会叫醒我」现在能算给人看
6
+
7
+ ### 学到的(知识库第 77 条)
8
+ 延迟要拆成可归因的几段(tail latency 分解的思路),用户才能判断该调哪一头。
9
+
10
+ ### 新增:`scripts/explain-latency.mjs`
11
+ 用真实函数算出五段耗时并打印成表:
12
+ ```
13
+ ① 提交 0 秒 客户动作
14
+ ② 下一次轮询看到它 1 分 2 秒 最多一个轮询周期 + 抖动 1794 毫秒
15
+ ③ 冷却期门禁 0 秒 只吸收「自己刚碰过的条目」
16
+ ④ 活跃时段门禁 0 秒 当前在 09:00-23:00 内
17
+ ⑤ 频率上限排队 30 分 0 秒 假设这一小时已用完 6 次
18
+ ```
19
+ 常见 ≈「一个间隔 + 抖动」;最坏 ≈ 五段叠加(半小时级)。
20
+ 并明确区分**唤醒延迟**与**失败重试退避**(后者 2→4→8→16 分钟,客户最容易混淆)。
21
+
22
+ ### 它纠正了我的理解
23
+ 第 ② 段我一开始只算抖动(2 秒),忘了提交时刻相对下一次轮询是随机的 ——
24
+ 最坏要等满一个周期。跑出来"最常见 1 分 2 秒"和表里对不上,一眼发现。
25
+
26
+ ### README
27
+ 「一次真实运行长什么样」末尾直接指向这条命令。
28
+
5
29
  ## [0.9.28] - 2026-11-02 —— 并发隔离真跑通;隔离区不再污染 `git status`
6
30
 
7
31
  ### 新增:`scripts/verify-concurrency.mjs`(9 步)
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.28-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.29-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
 
@@ -86,6 +86,9 @@ dsh plugin install /path/to/dsh-session-superagent
86
86
  4. 会话按 `AGENTS.md` 判断:bug 直接修、范围外的功能请求回复“待定”、需要决策则提问;
87
87
  5. 处理完写回 issue/PR。
88
88
 
89
+ 想知道「第 3 步到底多久会发生」,直接跑 `node scripts/explain-latency.mjs`:它把延迟拆成
90
+ 轮询间隔 / 抖动 / 活跃时段 / 冷却期 / 每小时上限 五段,并给出常见与最坏两种情况。
91
+
89
92
  ## 安全边界
90
93
 
91
94
  - **凭证**:插件通过已登录的 `gh` CLI 调用 API,token 不落 workspace、不进会话;所有输出过 `redact()`(`ghp_*` / `github_pat_*` / PEM 私钥 / Authorization 头)。
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.28'
17
+ const CLIENT_VERSION = '0.9.29'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
 
35
35
  export const name = 'dsh-session-superagent'
36
36
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
37
- export const SERVER_VERSION = '0.9.28'
37
+ export const SERVER_VERSION = '0.9.29'
38
38
  export const inject = ['tools', 'agents', 'webServer']
39
39
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
40
40
  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.28",
3
+ "version": "0.9.29",
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",