dsh-session-superagent 0.9.250 → 0.9.251
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 +41 -0
- package/README.md +3 -3
- package/client.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,47 @@
|
|
|
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.251] - 2026-11-05 —— 14 条弹层用例断言的是「错误的树」
|
|
6
|
+
|
|
7
|
+
T38 指出:这些用例传的是 `[list, true, {x, y}]`,而那个组件有 **4 个** `useState`
|
|
8
|
+
(`watchers` / `orbitError` / `open` / `anchor`)。于是实际渲染出来的是:
|
|
9
|
+
|
|
10
|
+
| 槽位 | 你以为 | 实际 |
|
|
11
|
+
|---|---|---|
|
|
12
|
+
| `watchers` | list | list ✓ |
|
|
13
|
+
| `orbitError` | (默认 null) | **`true`** |
|
|
14
|
+
| `open` | `true` | **`{x, y}`**(真值,所以弹层还是渲染出来的) |
|
|
15
|
+
| `anchor` | `{x, y}` | **`null`** |
|
|
16
|
+
|
|
17
|
+
`anchor` 恒为 `null` → 弹层的**视口夹紧**那 5 个 `if` 从来没执行过。
|
|
18
|
+
|
|
19
|
+
### 修了什么
|
|
20
|
+
|
|
21
|
+
14 处传参改成 `[list, null, true, {x, y}]`。前后对比(锚点 x=600):
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
旧传法 → left = 8 (走了默认分支)
|
|
25
|
+
新传法 → left = 416 (按锚点居中,夹紧逻辑真的跑了)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
新增用例:锚点贴右边不溢出、贴左边不小于 8、居中时按锚点算。
|
|
29
|
+
|
|
30
|
+
### 桩上加了一道校验
|
|
31
|
+
|
|
32
|
+
位置化队列**传多了**现在是硬错误(多余的值被静默丢掉,作者以为设了);
|
|
33
|
+
**传少了**仍然允许(可能是「只用默认值」),`PANEL_STRICT=1` 时也抛。
|
|
34
|
+
|
|
35
|
+
校验时机也修过一次:一开始放在 `render()` 里,结果误报 ——
|
|
36
|
+
那时只跑完**根组件**,像 `ConfirmBtn` 这种自带 `useState` 的子组件要等 `walk()` 展开时才跑。
|
|
37
|
+
现在挪到 `walk()` 收尾比对。
|
|
38
|
+
|
|
39
|
+
### 证据
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
npm test → 390/390
|
|
43
|
+
npm run strict 模式下:103 处「传少了」(多为弹层只传 watchers 的用例,属预期)
|
|
44
|
+
```
|
|
45
|
+
|
|
5
46
|
## [0.9.250] - 2026-11-05 —— 9 个真机 bug 注入,82 条面板用例全绿
|
|
6
47
|
|
|
7
48
|
T38 做了一件很直接的事:把 9 个「真机上一定会坏」的 bug 注入 `client.js` 副本,跑 82 条面板用例。
|
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
|
[](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
|
|
@@ -146,7 +146,7 @@ Gitee 私有仓库要在「设置 → 凭证」填私人令牌;公开仓库不
|
|
|
146
146
|
## 开发
|
|
147
147
|
|
|
148
148
|
```sh
|
|
149
|
-
npm test #
|
|
149
|
+
npm test # 390 项单测(带离线开关;裸 node --test 会真去 spawn gh,两分半)
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
### 工具输出:文本给人和 agent,JSON 给程序
|
|
@@ -206,7 +206,7 @@ dsh plugin --profile <profile> add dsh-session-superagent@latest
|
|
|
206
206
|
|
|
207
207
|
|
|
208
208
|
```bash
|
|
209
|
-
npm test #
|
|
209
|
+
npm test # 390 项单测(带离线开关,约 1.6 秒)
|
|
210
210
|
node scripts/ui-audit.mjs # 11 项 UI 指标(写死颜色 / 自造 token / 官方结构采用 …)
|
|
211
211
|
node scripts/preflight.mjs # 40 项门禁(含上面两条,外加 profile 一致性、路由面、包内容)
|
|
212
212
|
node scripts/render-preview.mjs preview.html # 双主题静态预览,直接浏览器打开
|
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.251'
|
|
18
18
|
let BASE = '/session-superagent'
|
|
19
19
|
/**
|
|
20
20
|
* 挑「最新的那个服务端实例」。
|
package/lib/index.js
CHANGED
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
|
|
45
45
|
export const name = 'dsh-session-superagent'
|
|
46
46
|
/** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
|
|
47
|
-
export const SERVER_VERSION = '0.9.
|
|
47
|
+
export const SERVER_VERSION = '0.9.251'
|
|
48
48
|
export const inject = ['tools', 'agents', 'webServer']
|
|
49
49
|
/** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
|
|
50
50
|
// 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-superagent",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.251",
|
|
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",
|