dsh-session-superagent 0.9.191 → 0.9.192

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,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.192] - 2026-11-05 —— 空态引导「默认 60 秒;先设 300 秒」自相矛盾
6
+
7
+ ### ① 一句话里两个默认值
8
+ 空态的引导卡第 2 步原文是「默认 60 秒;先设 300 秒,别把 API 打满」——
9
+ 客户看的是「我该填多少」,却先被告知一个默认值、再被告知改成另一个。改成:
10
+
11
+ > **填间隔**:新手先填 300 秒(5 分钟)—— 默认 60 秒适合盯得紧的仓库,公开仓库容易撞限流
12
+
13
+ 先说「填什么」,再说「为什么」。
14
+
15
+ ### ② 「全部恢复」同样是空操作
16
+ T9 修「全部暂停」时留了一条:`actBulk('resume')` 对 `enabled` 的守直接 `continue`,
17
+ 但按钮照常可点 —— 全都启用的状态下点它什么也不会发生。已按同一口径置灰 + 说明原因。
18
+
19
+ ### 证据
20
+ ```
21
+ node --test → 324/324
22
+ ui-audit → 11/11(100)
23
+ 出图:shot-empty-after.png(引导卡第 2 步已改)
24
+ ```
25
+
5
26
  ## [0.9.191] - 2026-11-05 —— 对比度体检接进门禁(带基线),并修掉它挖出的四处
6
27
 
7
28
  ### ① 把一次性核对变成门禁
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.9.191-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.192-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
 
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.191'
17
+ const CLIENT_VERSION = '0.9.192'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
@@ -332,7 +332,7 @@ window.__ModuleLoader__.load({
332
332
  // 出图时看到「① 填一个仓库(owner/name,比如 …)」——列表符号和步骤号重复,说明文字又和标题挤在同一行。
333
333
  const steps = [
334
334
  ['填一个仓库', 'owner/name,例如 MYCF711/dsh-session-superagent'],
335
- ['选间隔', '默认 60 秒;先设 300 秒,别把 API 打满'],
335
+ ['填间隔', '新手先填 300 秒(5 分钟)—— 默认 60 秒适合盯得紧的仓库,公开仓库容易撞限流'],
336
336
  ['点「添加到当前会话」', '之后仓库有动静,这个会话就会被叫醒'],
337
337
  ]
338
338
  return h('div', { className: 'dt-card sa-onboarding' },
@@ -1155,6 +1155,8 @@ window.__ModuleLoader__.load({
1155
1155
  // 可暂停的守 = 还在 enabled 的那些。actBulk('pause') 正是按这个条件跳过的,
1156
1156
  // 按钮的可用状态必须跟它同口径 —— 不同口径就会出现「可点、但一条都没动」。
1157
1157
  const pausable = watchers.filter((w) => w.enabled).length
1158
+ // 可恢复 = 已暂停的那些(actBulk 的 resume 分支跳过 enabled 的守)
1159
+ const resumable = watchers.length - pausable
1158
1160
 
1159
1161
  const stateTag = (watcher) => {
1160
1162
  const state = orbitStateOf(watcher)
@@ -2028,7 +2030,16 @@ window.__ModuleLoader__.load({
2028
2030
  'aria-label': pausable === 0 ? '全部暂停(不可用:没有在轮询的主理鱼)' : '全部暂停',
2029
2031
  onClick: () => actBulk('pause'),
2030
2032
  }, '全部暂停') : null,
2031
- watchers.length > 0 ? h(Btn, { size: 'sm', onClick: () => actBulk('resume') }, '全部恢复') : null)),
2033
+ // 与「全部暂停」同口径:没有可恢复的守时置灰并说明(actBulk 对 enabled 的守直接 continue)
2034
+ watchers.length > 0 ? h(Btn, {
2035
+ size: 'sm',
2036
+ disabled: resumable === 0,
2037
+ title: resumable === 0
2038
+ ? '没有可恢复的主理鱼:当前 ' + watchers.length + ' 条守都在轮询 —— 要一起停下请点「全部暂停」'
2039
+ : '恢复这一屏所有已暂停的主理鱼',
2040
+ 'aria-label': resumable === 0 ? '全部恢复(不可用:没有已暂停的主理鱼)' : '全部恢复',
2041
+ onClick: () => actBulk('resume'),
2042
+ }, '全部恢复') : null)),
2032
2043
  h(SegTabs, {
2033
2044
  items: [
2034
2045
  { value: 'overview', label: '总览' },
package/lib/index.js CHANGED
@@ -42,7 +42,7 @@ import {
42
42
 
43
43
  export const name = 'dsh-session-superagent'
44
44
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
45
- export const SERVER_VERSION = '0.9.191'
45
+ export const SERVER_VERSION = '0.9.192'
46
46
  export const inject = ['tools', 'agents', 'webServer']
47
47
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
48
48
  // 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」
package/package.json CHANGED
@@ -1,82 +1,82 @@
1
- {
2
- "name": "dsh-session-superagent",
3
- "version": "0.9.191",
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
- "type": "module",
6
- "main": "lib/index.js",
7
- "exports": {
8
- ".": "./lib/index.js",
9
- "./watch": "./lib/watch.js",
10
- "./redact": "./lib/redact.js",
11
- "./package.json": "./package.json",
12
- "./client": "./client.js"
13
- },
14
- "files": [
15
- "lib/index.js",
16
- "lib/watch.js",
17
- "lib/gh-format.js",
18
- "lib/redact.js",
19
- "lib/body.js",
20
- "lib/gitee.js",
21
- "cordis.patch.yml",
22
- "README.md",
23
- "CHANGELOG.md",
24
- "LICENSE",
25
- "client.js"
26
- ],
27
- "engines": {
28
- "node": ">=22.19.0",
29
- "dsh": ">=0.2.1-rc.5"
30
- },
31
- "scripts": {
32
- "test": "node --test",
33
- "check": "node --test",
34
- "preview:orbit": "node scripts/preview-orbit.mjs",
35
- "sync:profile": "node scripts/sync-profile.mjs",
36
- "smoke:observe": "node scripts/smoke-observe.mjs",
37
- "sync:profile:check": "node scripts/sync-profile.mjs --check",
38
- "sync:profile:repair": "node scripts/sync-profile.mjs --repair",
39
- "preview": "node scripts/render-preview.mjs",
40
- "preflight": "node scripts/preflight.mjs",
41
- "preview:themes": "node scripts/render-preview.mjs preview-themes.html"
42
- },
43
- "keywords": [
44
- "dsh",
45
- "dsh-plugin",
46
- "deepseek-harness",
47
- "cordis",
48
- "superagent",
49
- "watcher",
50
- "github",
51
- "automation"
52
- ],
53
- "license": "MIT",
54
- "repository": {
55
- "type": "git",
56
- "url": "git+https://github.com/MYCF711/dsh-session-superagent.git"
57
- },
58
- "dsh": {
59
- "bundle": {
60
- "patch": "./cordis.patch.yml"
61
- },
62
- "client": {
63
- "platform": "web",
64
- "inject": [
65
- "@deepseek-ai/dsh-client-ui-conversation"
66
- ]
67
- }
68
- },
69
- "peerDependencies": {
70
- "@deepseek-ai/cordis": "^4.0.1"
71
- },
72
- "peerDependenciesMeta": {
73
- "@deepseek-ai/cordis": {
74
- "optional": true
75
- }
76
- },
77
- "author": "MYCF711",
78
- "homepage": "https://github.com/MYCF711/dsh-session-superagent#readme",
79
- "bugs": {
80
- "url": "https://github.com/MYCF711/dsh-session-superagent/issues"
81
- }
82
- }
1
+ {
2
+ "name": "dsh-session-superagent",
3
+ "version": "0.9.192",
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
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "exports": {
8
+ ".": "./lib/index.js",
9
+ "./watch": "./lib/watch.js",
10
+ "./redact": "./lib/redact.js",
11
+ "./package.json": "./package.json",
12
+ "./client": "./client.js"
13
+ },
14
+ "files": [
15
+ "lib/index.js",
16
+ "lib/watch.js",
17
+ "lib/gh-format.js",
18
+ "lib/redact.js",
19
+ "lib/body.js",
20
+ "lib/gitee.js",
21
+ "cordis.patch.yml",
22
+ "README.md",
23
+ "CHANGELOG.md",
24
+ "LICENSE",
25
+ "client.js"
26
+ ],
27
+ "engines": {
28
+ "node": ">=22.19.0",
29
+ "dsh": ">=0.2.1-rc.5"
30
+ },
31
+ "scripts": {
32
+ "test": "node --test",
33
+ "check": "node --test",
34
+ "preview:orbit": "node scripts/preview-orbit.mjs",
35
+ "sync:profile": "node scripts/sync-profile.mjs",
36
+ "smoke:observe": "node scripts/smoke-observe.mjs",
37
+ "sync:profile:check": "node scripts/sync-profile.mjs --check",
38
+ "sync:profile:repair": "node scripts/sync-profile.mjs --repair",
39
+ "preview": "node scripts/render-preview.mjs",
40
+ "preflight": "node scripts/preflight.mjs",
41
+ "preview:themes": "node scripts/render-preview.mjs preview-themes.html"
42
+ },
43
+ "keywords": [
44
+ "dsh",
45
+ "dsh-plugin",
46
+ "deepseek-harness",
47
+ "cordis",
48
+ "superagent",
49
+ "watcher",
50
+ "github",
51
+ "automation"
52
+ ],
53
+ "license": "MIT",
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "git+https://github.com/MYCF711/dsh-session-superagent.git"
57
+ },
58
+ "dsh": {
59
+ "bundle": {
60
+ "patch": "./cordis.patch.yml"
61
+ },
62
+ "client": {
63
+ "platform": "web",
64
+ "inject": [
65
+ "@deepseek-ai/dsh-client-ui-conversation"
66
+ ]
67
+ }
68
+ },
69
+ "peerDependencies": {
70
+ "@deepseek-ai/cordis": "^4.0.1"
71
+ },
72
+ "peerDependenciesMeta": {
73
+ "@deepseek-ai/cordis": {
74
+ "optional": true
75
+ }
76
+ },
77
+ "author": "MYCF711",
78
+ "homepage": "https://github.com/MYCF711/dsh-session-superagent#readme",
79
+ "bugs": {
80
+ "url": "https://github.com/MYCF711/dsh-session-superagent/issues"
81
+ }
82
+ }