dsh-session-superagent 0.9.13 → 0.9.14
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 +21 -0
- package/README.md +1 -1
- package/client.js +8 -3
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.14] - 2026-11-02 —— 「按仓库」的仓库名可以点了
|
|
6
|
+
|
|
7
|
+
### 学到的(知识库第 63 条)
|
|
8
|
+
概览层的作用是**导航**,不是再显示一遍信息;看起来像可点的就必须可点。
|
|
9
|
+
|
|
10
|
+
### 问题
|
|
11
|
+
0.9.13 的汇总里仓库名是纯文本 —— 像标题、点了没反应,明细还得自己去列表里找。
|
|
12
|
+
|
|
13
|
+
### 改法
|
|
14
|
+
仓库名改成按钮,点一下把 `search` 设成该仓库(再点取消),复用已有搜索过滤:
|
|
15
|
+
- **零新增 state**(`search` 已在槽位里);
|
|
16
|
+
- 类名用 `dt-textlink dt-row-name`,**不用 `dt-open`** —— 后者是明细行的展开按钮,
|
|
17
|
+
已有用例按"每行恰好 1 个 dt-open"断言。
|
|
18
|
+
|
|
19
|
+
### 又一次同一个坑
|
|
20
|
+
先用 `dt-open` → 「每行有编辑按钮」用例立刻红(2 !== 1)。
|
|
21
|
+
**共用类名导致语义混淆**:`dt-open` 是"展开这一行","筛选列表"是另一件事。
|
|
22
|
+
|
|
23
|
+
### 测试
|
|
24
|
+
- 新增 1 例(每仓库一个可点名字 + 搜索命中时明细只剩它)。合计 **158 例**。
|
|
25
|
+
|
|
5
26
|
## [0.9.13] - 2026-11-02 —— 总览加「按仓库」汇总
|
|
6
27
|
|
|
7
28
|
### 学到的(知识库第 62 条)
|
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/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.14'
|
|
18
18
|
let BASE = '/session-superagent'
|
|
19
19
|
/**
|
|
20
20
|
* 挑「最新的那个服务端实例」。
|
|
@@ -1254,12 +1254,17 @@ window.__ModuleLoader__.load({
|
|
|
1254
1254
|
h('div', { className: 'dt-hint' }, watcher.repo + ' · ' + event.text)))))))
|
|
1255
1255
|
|
|
1256
1256
|
// 按仓库汇总:守多个仓库时先看哪个健康,再看明细(渐进披露)
|
|
1257
|
-
const repoSummary = visible.length === 0 ? null : h(Section, { key: 'repo-summary', title: '按仓库' },
|
|
1257
|
+
const repoSummary = visible.length === 0 ? null : h(Section, { key: 'repo-summary', title: '按仓库', hint: '点仓库名只看它(再点取消)' },
|
|
1258
1258
|
h('div', { className: 'dt-rows' }, ...summarizeByRepo(visible).map((group) => h('div', { key: 'repo-' + group.repo, className: 'dt-row' },
|
|
1259
1259
|
h('div', { className: 'dt-row-main' },
|
|
1260
1260
|
h('div', { className: 'dt-row-title' },
|
|
1261
1261
|
h(StateDot, { state: group.errors > 0 ? 'error' : group.silentWakes >= 2 ? 'warning' : 'done' }),
|
|
1262
|
-
h('
|
|
1262
|
+
h('button', {
|
|
1263
|
+
className: 'dt-textlink dt-row-name',
|
|
1264
|
+
type: 'button',
|
|
1265
|
+
onClick: () => setSearch(search === group.repo ? '' : group.repo),
|
|
1266
|
+
title: '点一下只看这个仓库(再点取消)',
|
|
1267
|
+
}, group.repo),
|
|
1263
1268
|
...group.badges.map((badge) => h(Tag, { key: 'rb-' + badge.text, tone: badge.tone }, badge.text))),
|
|
1264
1269
|
h('div', { className: 'dt-row-meta' },
|
|
1265
1270
|
h('span', null, group.count + ' 条守(启用 ' + group.enabled + ')'),
|
package/lib/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
|
|
33
33
|
export const name = 'dsh-session-superagent'
|
|
34
34
|
/** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
|
|
35
|
-
export const SERVER_VERSION = '0.9.
|
|
35
|
+
export const SERVER_VERSION = '0.9.14'
|
|
36
36
|
export const inject = ['tools', 'agents', 'webServer']
|
|
37
37
|
/** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
|
|
38
38
|
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.
|
|
3
|
+
"version": "0.9.14",
|
|
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",
|