dsh-session-superagent 0.8.47 → 0.8.48

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,26 @@
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.8.48] - 2026-11-02 —— 第一次打开不再白屏:三步上手
6
+
7
+ 客户装完第一次打开「主理鱼」,以前只有一行灰字「还没有主理鱼」。等于让他去翻 README。
8
+
9
+ 现在空态是一张官方 `dt-card`,三步 + 一个能直接开始的按钮:
10
+
11
+ ```
12
+ 三步让这个会话开始盯办
13
+ ① 填一个仓库(owner/name,比如 MYCF711/dsh-session-superagent)
14
+ ② 选间隔(默认 60 秒;建议先设 300 秒,别把 API 打满)
15
+ ③ 点「添加到当前会话」——之后仓库有动静,这个会话就会被叫醒
16
+ [去添加第一条]
17
+ 想先看看效果?在「触发」页勾上「仅观察」:它只记录本会唤醒哪几条,不会真打扰你。
18
+ ```
19
+
20
+ 点「去添加第一条」直接切到「触发」页,不用自己找。
21
+
22
+ ### 测试
23
+ - 新增用例:空态必须有三步(①③都在)+ 一个「去添加第一条」按钮。合计 **103 例**。
24
+
5
25
  ## [0.8.47] - 2026-11-02 —— 客户报障:面板里一键复制诊断
6
26
 
7
27
  客户在别的电脑上用我们的插件,我们看不到他的状态文件。以前报障只能靠来回问
package/MAINTENANCE.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## 二、当前状态(2026-11-01)
11
11
 
12
- - [x] 七个工具可用(github / repo_here / watch_start / watch_status / watch_stop / watch_ack / watch_doctor),`node --test` 102/102 通过
12
+ - [x] 七个工具可用(github / repo_here / watch_start / watch_status / watch_stop / watch_ack / watch_doctor),`node --test` 103/103 通过
13
13
  - [x] 自回声抑制(逐条水位)
14
14
  - [x] 仅空闲注入(避免草稿回放)
15
15
  - [x] 唤醒失败不推进水位
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.8.47-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.8.48-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
 
@@ -99,7 +99,7 @@ dsh plugin install /path/to/dsh-session-superagent
99
99
  ## 开发
100
100
 
101
101
  ```sh
102
- node --test # 102 项单测
102
+ node --test # 103 项单测
103
103
  ```
104
104
 
105
105
  版本与发布流程见 [UPDATING.md](UPDATING.md),交付门见 [CHECKLIST.md](CHECKLIST.md),接手台账见 [MAINTENANCE.md](MAINTENANCE.md)。
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.8.47'
17
+ const CLIENT_VERSION = '0.8.48'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
@@ -257,6 +257,23 @@ window.__ModuleLoader__.load({
257
257
  children)
258
258
  }
259
259
 
260
+ /**
261
+ * 第一次打开面板时的空态:官方那种「不是白屏,而是告诉你下一步做什么」。
262
+ * 三步走完就能跑起来 —— 客户不用去翻 README。
263
+ */
264
+ function Onboarding({ onStart }) {
265
+ return h('div', { className: 'dt-card' },
266
+ h('div', { className: 'dt-card-head' },
267
+ h('span', { className: 'dt-card-title' }, '三步让这个会话开始盯办')),
268
+ h('ol', { className: 'dt-plain-list' },
269
+ h('li', null, '① 填一个仓库(owner/name,比如 MYCF711/dsh-session-superagent)'),
270
+ h('li', null, '② 选间隔(默认 60 秒;建议先设 300 秒,别把 API 打满)'),
271
+ h('li', null, '③ 点「添加到当前会话」——之后仓库有动静,这个会话就会被叫醒')),
272
+ h('div', { className: 'dt-actions' },
273
+ h(Btn, { variant: 'primary', icon: h(Icon, { name: 'plus' }), onClick: onStart }, '去添加第一条')),
274
+ h(Hint, null, '想先看看效果?在「触发」页勾上「仅观察」:它只记录本会唤醒哪几条,不会真打扰你。'))
275
+ }
276
+
260
277
  /** 官方 DisclosureRow 的实际用法:默认收起,点开看明细。 */
261
278
  function CollapsibleList({ title, items }) {
262
279
  const [open, setOpen] = useState(false)
@@ -1063,7 +1080,7 @@ window.__ModuleLoader__.load({
1063
1080
  h('div', { className: 'dt-stat' }, h('span', { className: 'dt-stat-value' }, String(broken)), h('span', null, '异常'))),
1064
1081
  h(Section, { key: 'list', title: needle ? '搜索结果' : '主理鱼', count: visible.length },
1065
1082
  watchers.length === 0
1066
- ? h(Hint, null, '还没有主理鱼。切到「触发」页填一个 owner/name 添加。')
1083
+ ? h(Onboarding, { onStart: () => setTab('trigger') })
1067
1084
  : visible.length === 0
1068
1085
  ? h(Hint, null, '没有匹配「' + search + '」的主理鱼。')
1069
1086
  : h('ul', { className: 'dt-list' }, visible.map(row))),
package/lib/index.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
 
31
31
  export const name = 'dsh-session-superagent'
32
32
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
33
- export const SERVER_VERSION = '0.8.47'
33
+ export const SERVER_VERSION = '0.8.48'
34
34
  export const inject = ['tools', 'agents', 'webServer']
35
35
 
36
36
  /** 仅供测试:读写状态文件(生产代码不要用)。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-superagent",
3
- "version": "0.8.47",
3
+ "version": "0.8.48",
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",