dsh-session-superagent 0.9.147 → 0.9.148
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 +32 -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,38 @@
|
|
|
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.148] - 2026-11-03 —— 量出一行 154px 花在哪;合并动作行的尝试**失败并回滚**
|
|
6
|
+
|
|
7
|
+
### 量出来的(本轮唯一新增的观测手段)
|
|
8
|
+
给预览工装加了按行测量(`--measure` 现在能量任意容器及其子块):
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
body h154 | title h20 | meta h21 | note h20 | note h20 | note h20 | actions h30
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
结论:**动作行(立刻/暂停/删除)占 30px + 间距,是整行高度的 22%。**
|
|
15
|
+
|
|
16
|
+
### 试了什么(以及为什么回滚)
|
|
17
|
+
想把动作并进徽章行(右侧对齐)省掉那一行。**试了两次,两次都在括号收尾上把行结构改坏**
|
|
18
|
+
(第一次 `actions` 被移到 editor 之后,第二次 meta 的 `)` 丢失、备注行被塞进徽章行)。
|
|
19
|
+
两次都用 `git checkout -- client.js` 回滚,`node --check` + 257 例测试确认回到基线。
|
|
20
|
+
|
|
21
|
+
**教训:这段行结构是 5 层嵌套的 `h()` 调用,靠文本替换搬一块 12 行的 JSX,收尾括号一定会错位。
|
|
22
|
+
要动它必须整块重写,不能"剪贴"。**
|
|
23
|
+
|
|
24
|
+
### 本轮实际交付
|
|
25
|
+
1. `--measure` 可按行量(上述数字就是它给的);
|
|
26
|
+
2. 新增 1 例结构保护:**每条守都必须有 3 个动作控件** —— 正因为本轮把行结构改坏过两次,
|
|
27
|
+
下次再动这一块,测试会先拦住;
|
|
28
|
+
3. 浅色主题对照补齐:判定 / 触发两页出图核对,对比度与分隔线正常。
|
|
29
|
+
|
|
30
|
+
### 证据
|
|
31
|
+
```
|
|
32
|
+
node --test → 258/258
|
|
33
|
+
preflight 全量 → 36/36;ui-audit → 11/11 = 100
|
|
34
|
+
出图:浅色判定、浅色触发
|
|
35
|
+
```
|
|
36
|
+
|
|
5
37
|
## [0.9.147] - 2026-11-03 —— 总览行把"一堵墙"拆成三行;浅色主题逐页对照
|
|
6
38
|
|
|
7
39
|
### 为什么
|
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
|
|
|
@@ -123,7 +123,7 @@ dsh plugin install /path/to/dsh-session-superagent
|
|
|
123
123
|
## 开发
|
|
124
124
|
|
|
125
125
|
```sh
|
|
126
|
-
node --test #
|
|
126
|
+
node --test # 258 项单测
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
### 工具输出:文本给人和 agent,JSON 给程序
|
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.148'
|
|
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.148'
|
|
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.148",
|
|
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",
|