dsh-session-superagent 0.9.146 → 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 +62 -0
- package/README.md +2 -2
- package/client.js +9 -9
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,68 @@
|
|
|
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
|
+
|
|
37
|
+
## [0.9.147] - 2026-11-03 —— 总览行把"一堵墙"拆成三行;浅色主题逐页对照
|
|
38
|
+
|
|
39
|
+
### 为什么
|
|
40
|
+
浅色主题出图时看到总览第一条的说明行:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
README 收尾与发布 · s1 · 每 60s · 轮询 15 秒前 · 唤醒 5 分钟前 · 上次唤醒失败 #9 · 50 小时前 · 目标: 把 0.8.x 的文档补齐
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
六段用 ` · ` 串成一行,在 1000px 下折成两行、读起来是一堵墙。**这正是弹层当初被吐槽的同一个毛病,
|
|
47
|
+
只是它还在面板里。**
|
|
48
|
+
|
|
49
|
+
### 改法(三行,各管一件事)
|
|
50
|
+
```
|
|
51
|
+
README 收尾与发布 · s1 · 每 60s ← 是谁
|
|
52
|
+
轮询 15 秒前 · 唤醒 5 分钟前 · 上次唤醒失败 #9 · 50 小时前 ← 节律与最近结果
|
|
53
|
+
目标: 把 0.8.x 的文档补齐 ← 目标(有才显示)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### 浅色主题对照(本轮一起做)
|
|
57
|
+
出图核对:总览 / 设置 / 弹层 三处在浅色下的对比度、卡片底色、分隔线 —— 均正常,
|
|
58
|
+
`ui-audit` 的「自造 token / 写死颜色」两项仍为 0。
|
|
59
|
+
|
|
60
|
+
### 证据
|
|
61
|
+
```
|
|
62
|
+
node --test → 257/257
|
|
63
|
+
preflight 全量 → 36/36;ui-audit → 11/11 = 100
|
|
64
|
+
出图:浅色总览(改前/改后)、浅色设置、浅色弹层
|
|
65
|
+
```
|
|
66
|
+
|
|
5
67
|
## [0.9.146] - 2026-11-03 —— 两个时间序列挨着放,名字要能分开
|
|
6
68
|
|
|
7
69
|
### 为什么
|
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
|
* 挑「最新的那个服务端实例」。
|
|
@@ -1132,15 +1132,15 @@ window.__ModuleLoader__.load({
|
|
|
1132
1132
|
watcher.isolated ? h(Tag, null, isolationText(watcher)) : null,
|
|
1133
1133
|
filterText(watcher.filters) ? h(Tag, null, filterText(watcher.filters)) : null,
|
|
1134
1134
|
backoffText(watcher) ? h(Tag, { tone: 'warning' }, backoffText(watcher)) : null),
|
|
1135
|
+
// 三行,各管一件事:① 是谁 ② 节律与最近结果 ③ 目标
|
|
1136
|
+
// 原来六段用 ' · ' 串成一行(会话 · 每 60s · 轮询 · 唤醒 · 上次唤醒 · 目标),
|
|
1137
|
+
// 出图时那行在浅色主题下折成两行、读起来像一堵墙。
|
|
1135
1138
|
h('div', { className: 'dt-ticket-note' },
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
'
|
|
1140
|
-
|
|
1141
|
-
historyText(watcher),
|
|
1142
|
-
watcher.note ? '目标: ' + String(watcher.note).slice(0, 40) : '',
|
|
1143
|
-
].filter(Boolean).join(' · ')),
|
|
1139
|
+
(watcher.title || '未命名会话') + ' · ' + sessionTag(watcher.sessionId) + ' · 每 ' + watcher.intervalSec + 's'),
|
|
1140
|
+
h('div', { className: 'dt-ticket-note' },
|
|
1141
|
+
['轮询 ' + ageText(watcher.lastPoll), '唤醒 ' + wakeText(watcher.lastWake), historyText(watcher)]
|
|
1142
|
+
.filter(Boolean).join(' · ')),
|
|
1143
|
+
watcher.note ? h('div', { className: 'dt-ticket-note' }, '目标: ' + String(watcher.note).slice(0, 40)) : null,
|
|
1144
1144
|
watcher.lastDeferred ? h('div', { className: 'dt-ticket-note' }, watcher.lastDeferred) : null,
|
|
1145
1145
|
(watcher.otherSessions && watcher.otherSessions.length > 0)
|
|
1146
1146
|
? h('div', { className: 'dt-ticket-note' }, '还有 ' + watcher.otherSessions.length + ' 个会话也在守这个仓库:' + watcher.otherSessions.join('、') + '(各自独立唤醒;但 ack 标签是仓库级的 —— 任一方 ack 后两边都会跳过,想让两边各处理各的就给对方设不同标签)')
|
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",
|