dsh-session-superagent 0.8.45 → 0.8.46
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 +22 -0
- package/README.md +1 -1
- package/client.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
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.46] - 2026-11-02 —— 双主题预览 + 「自造 token」守门
|
|
6
|
+
|
|
7
|
+
### ① 预览脚本终于能看两套主题
|
|
8
|
+
`node scripts/render-preview.mjs out.html` 现在一次输出 **浅色 + 深色**两套(9 个场景 × 2 = 18 块),
|
|
9
|
+
覆盖:总览 / 判定 / 触发 / 设置(来源)/ 设置(版本与更新)/ 新版本横幅 / 两种 Toast / 术语表。
|
|
10
|
+
|
|
11
|
+
顺手修掉一个长期误导:预览的兜底 token 用的是
|
|
12
|
+
`--dsw-alias-border-default`、`--dsw-alias-success-500`、`--dsw-alias-accent-primary` ——
|
|
13
|
+
**宿主机上根本没有这些变量**,所以以前预览一直"没上色",看起来像样式没移植对。
|
|
14
|
+
现在全部换成真实变量名(`--dsw-alias-border-l3`、`--dsw-alias-state-success-primary`、`--dsw-alias-brand-primary` …)。
|
|
15
|
+
|
|
16
|
+
### ② 新增守门:自造 token
|
|
17
|
+
`ui-audit` 第 11 项 —— 我们自己代码里引用的 `--dsw-*` 必须都在官方 CSS 里出现过。
|
|
18
|
+
当前 0 处自造(引用 20 个变量,全部有出处)。这条能防住「变量名拼错→样式静默失效」。
|
|
19
|
+
|
|
20
|
+
### 指标
|
|
21
|
+
```
|
|
22
|
+
11/11 通过(100 分)
|
|
23
|
+
写死颜色(样式块)0 · 写死颜色(inline/JS)0 · 自造 token 0
|
|
24
|
+
官方结构 8/8 · 弹层键盘 3/3 · 裸 button 5/17 · 死代码 0
|
|
25
|
+
```
|
|
26
|
+
|
|
5
27
|
## [0.8.45] - 2026-11-02 —— 表单字段补齐官方 Field,状态色全部 token 化
|
|
6
28
|
|
|
7
29
|
### ① 表单字段用官方 `Field`(带 hint / note)
|
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.8.
|
|
17
|
+
const CLIENT_VERSION = '0.8.46'
|
|
18
18
|
let BASE = '/session-superagent'
|
|
19
19
|
/**
|
|
20
20
|
* 挑「最新的那个服务端实例」。
|
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.
|
|
33
|
+
export const SERVER_VERSION = '0.8.46'
|
|
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.
|
|
3
|
+
"version": "0.8.46",
|
|
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",
|