dsh-session-superagent 0.9.278 → 0.9.279
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 +23 -0
- package/README.md +3 -3
- package/client.js +24 -5
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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.279] - 2026-11-06 —— 官方 Input 与 Switch 全覆盖
|
|
6
|
+
|
|
7
|
+
### 单行输入
|
|
8
|
+
|
|
9
|
+
共享 `Input()` 在有官方导出时直接委托 DSH `Input`,搜索、repo/goal/ghDir、密码 token、数字和行内编辑全部统一。
|
|
10
|
+
官方 wrapper 保留 `dt-input` 布局 className,icon 只由官方渲染;value/onChange、aria、disabled、required、min/max/step、ref 全透传。
|
|
11
|
+
缺导出或 primitives 时完整回退旧 `span.dt-input > input`。textarea/select/time 不在本版强行迁移。
|
|
12
|
+
|
|
13
|
+
### 开关
|
|
14
|
+
|
|
15
|
+
共享 `Toggle()` 在有官方导出时委托 DSH `Switch`,保留 checked/onChange/label/disabled/title。
|
|
16
|
+
官方不收 id,使用无样式的 `span[id]` 保留关联;不回填 `dt-switch` 主题类。
|
|
17
|
+
缺导出时完整回退旧 button+thumb。新增与行内编辑业务逻辑不变。
|
|
18
|
+
|
|
19
|
+
### 验证
|
|
20
|
+
|
|
21
|
+
- Input 定向 **116/116**;Switch 定向 **25/25**;合并全量 **612/612**。
|
|
22
|
+
- 真实 Chromium:搜索、行内编辑、三个凭证输入、goal、Orbit/Modal 全部 PASS。
|
|
23
|
+
- 新增表单 3 面普通开关真实点击,`aria-checked=false→true`,草稿标脏且无 mutation。
|
|
24
|
+
- UI 体检 **11/11=100**。
|
|
25
|
+
|
|
26
|
+
未验真实 DSH Web GUI 与真实 watcher 写操作。按 Git 工作流保留本地候选。
|
|
27
|
+
|
|
5
28
|
## [0.9.278] - 2026-11-06 —— SegmentedTabs 与 Orbit DisclosureRow 原生化
|
|
6
29
|
|
|
7
30
|
### 主页面 tabs
|
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
|
[](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
|
|
@@ -148,7 +148,7 @@ Gitee 私有仓库要在「设置 → 凭证」填私人令牌;公开仓库不
|
|
|
148
148
|
## 开发
|
|
149
149
|
|
|
150
150
|
```sh
|
|
151
|
-
npm test #
|
|
151
|
+
npm test # 612 项单测(带离线开关;裸 node --test 会真去 spawn gh,两分半)
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
### 工具输出:文本给人和 agent,JSON 给程序
|
|
@@ -208,7 +208,7 @@ dsh plugin --profile <profile> add dsh-session-superagent@latest
|
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
```bash
|
|
211
|
-
npm test #
|
|
211
|
+
npm test # 612 项单测(带离线开关,约 1.6 秒)
|
|
212
212
|
node scripts/ui-audit.mjs # 11 项 UI 指标(写死颜色 / 自造 token / 官方结构采用 …)
|
|
213
213
|
node scripts/preflight.mjs # 41 项门禁(含上面两条,外加 profile 一致性、路由面、包内容)
|
|
214
214
|
node scripts/render-preview.mjs preview.html # 双主题静态预览,直接浏览器打开
|
package/client.js
CHANGED
|
@@ -346,6 +346,8 @@ window.__ModuleLoader__.load({
|
|
|
346
346
|
// 老宿主没有这个映射时 require 会抛错;可选探测失败必须完整保留本地实现。
|
|
347
347
|
let hostUi = null
|
|
348
348
|
let hostButton = null
|
|
349
|
+
let hostInput = null
|
|
350
|
+
let hostSwitch = null
|
|
349
351
|
let hostSegmentedTabs = null
|
|
350
352
|
let hostTooltip = null
|
|
351
353
|
let hostOrbit = null
|
|
@@ -354,6 +356,10 @@ window.__ModuleLoader__.load({
|
|
|
354
356
|
const primitives = require('@deepseek-ai/dsh-client-ui-primitives')
|
|
355
357
|
// Button 独立探测:老宿主缺 Modal/Toast 时仍可复用官方按钮;缺 Button 时所有 variant 完整回退旧 Btn。
|
|
356
358
|
hostButton = primitives.Button || null
|
|
359
|
+
// Input 同样独立探测:缺导出只回退共享输入框,不影响 Button/Tabs 等其它原语。
|
|
360
|
+
hostInput = primitives.Input || null
|
|
361
|
+
// Switch 同样独立探测:缺导出只回退共享 Toggle,不影响其它原语。
|
|
362
|
+
hostSwitch = primitives.Switch || null
|
|
357
363
|
// SegmentedTabs 同样独立探测:缺导出时完整保留下方 SegTabs,不影响其它原语。
|
|
358
364
|
hostSegmentedTabs = primitives.SegmentedTabs || null
|
|
359
365
|
if (primitives && primitives.Modal && primitives.Toast && primitives.IconWarningOutlineMedium) {
|
|
@@ -364,6 +370,8 @@ window.__ModuleLoader__.load({
|
|
|
364
370
|
} catch {
|
|
365
371
|
hostUi = null
|
|
366
372
|
hostButton = null
|
|
373
|
+
hostInput = null
|
|
374
|
+
hostSwitch = null
|
|
367
375
|
hostSegmentedTabs = null
|
|
368
376
|
hostTooltip = null
|
|
369
377
|
}
|
|
@@ -388,7 +396,7 @@ window.__ModuleLoader__.load({
|
|
|
388
396
|
}
|
|
389
397
|
|
|
390
398
|
// 客户端版本探针:每次模块加载写一次,用来确认浏览器里跑的是哪一版
|
|
391
|
-
const CLIENT_VERSION = '0.9.
|
|
399
|
+
const CLIENT_VERSION = '0.9.279'
|
|
392
400
|
// SEMVER_COMPARATOR_SOURCE_START
|
|
393
401
|
// This block is duplicated verbatim in client.js because the browser UMD cannot import ESM.
|
|
394
402
|
// test/update-semver.test.mjs audits both copies and exercises their behavior.
|
|
@@ -753,15 +761,26 @@ window.__ModuleLoader__.load({
|
|
|
753
761
|
}, item.label)))
|
|
754
762
|
}
|
|
755
763
|
|
|
756
|
-
function Input({ icon, ...rest }) {
|
|
764
|
+
function Input({ icon, className, ...rest }) {
|
|
765
|
+
if (hostInput) {
|
|
766
|
+
// 官方 className 作用于唯一 wrapper;保留 dt-input 让现有 Field/Search 布局选择器继续命中。
|
|
767
|
+
// icon 只交给官方渲染,ref 随 rest 交给官方 forwardRef,不能再包本地 span 或复刻 icon。
|
|
768
|
+
return h(hostInput, { ...rest, icon, className: cx('dt-input', className) })
|
|
769
|
+
}
|
|
770
|
+
// 老宿主完整保留 superagent 同源结构;ref 与全部原生 input 属性仍落在真正的 input 上。
|
|
757
771
|
return h('span', { className: 'dt-input' },
|
|
758
772
|
icon !== undefined ? h('span', { className: 'dt-input-icon' }, icon) : null,
|
|
759
|
-
h('input', rest))
|
|
773
|
+
h('input', { ...rest, className }))
|
|
760
774
|
}
|
|
761
775
|
|
|
762
|
-
function Toggle({ checked, onChange, label, id, disabled }) {
|
|
776
|
+
function Toggle({ checked, onChange, label, id, disabled, title }) {
|
|
777
|
+
if (hostSwitch) {
|
|
778
|
+
const control = h(hostSwitch, { checked: !!checked, onChange, label, disabled, title })
|
|
779
|
+
// 官方 Switch 不接收 id;仅用无样式 span 保留调用方 id,官方仍拥有 switch 语义与交互。
|
|
780
|
+
return id === undefined ? control : h('span', { id }, control)
|
|
781
|
+
}
|
|
763
782
|
return h('button', {
|
|
764
|
-
id, type: 'button', role: 'switch', 'aria-checked': !!checked, 'aria-label': label,
|
|
783
|
+
id, type: 'button', role: 'switch', 'aria-checked': !!checked, 'aria-label': label, title,
|
|
765
784
|
className: 'dt-switch', disabled, onClick: () => onChange(!checked),
|
|
766
785
|
}, h('span', { className: 'dt-switch-thumb' }))
|
|
767
786
|
}
|
package/lib/index.js
CHANGED
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
|
|
50
50
|
export const name = 'dsh-session-superagent'
|
|
51
51
|
/** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
|
|
52
|
-
export const SERVER_VERSION = '0.9.
|
|
52
|
+
export const SERVER_VERSION = '0.9.279'
|
|
53
53
|
export const inject = ['tools', 'agents', 'webServer']
|
|
54
54
|
/** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
|
|
55
55
|
// 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-superagent",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.279",
|
|
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",
|