dsh-session-superagent 0.9.159 → 0.9.160

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,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.160] - 2026-11-03 —— 样式表在 apply() 里注入一次,从结构上消灭"某个入口没样式"
6
+
7
+ ### 为什么
8
+ 0.9.159 发现圆环弹层没样式,根因是 `ensurePortedCss()` 只挂在面板组件里。
9
+ 当时补的那次调用是**第二个注入点** —— 但下次再加一个槽位(比如状态栏右侧的角标),
10
+ 同样的坑会再来一次。
11
+
12
+ ### 改法
13
+ 把注入提到模块入口,一次搞定所有槽位:
14
+
15
+ ```js
16
+ apply(ctx) {
17
+ …
18
+ // 任何槽位(面板 / 圆环 / 将来的入口)都用得上
19
+ try { ensurePortedCss() } catch {}
20
+ ```
21
+
22
+ 组件里的两次调用保留(幂等),作为"宿主早期渲染顺序异常"时的兜底。
23
+
24
+ ### 测试
25
+ 在 0.9.159 那条静态断言里再加一条:**`apply()` 源码里也必须出现 `ensurePortedCss`**。
26
+ 现在两道:入口一次 + StatusOrbit 一次,缺哪个都会红。
27
+
5
28
  ## [0.9.159] - 2026-11-03 —— 真机:圆环弹层变成无样式裸文字(样式表没注入)
6
29
 
7
30
  ### 现场(用户截图)
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.159-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.160-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.159'
17
+ const CLIENT_VERSION = '0.9.160'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
@@ -2015,6 +2015,9 @@ window.__ModuleLoader__.load({
2015
2015
  apply(ctx) {
2016
2016
  try { noteOnce('client-version', CLIENT_VERSION) } catch {}
2017
2017
  try { note('apply', 'start') } catch {}
2018
+ // 样式表在这里注入一次就够了:任何槽位(面板 / 圆环 / 将来的入口)都用得上。
2019
+ // 之前只在面板组件挂载时注入,没打开过面板就直接点圆环 → 弹层没有样式(0.9.159 才补上那次调用)。
2020
+ try { ensurePortedCss() } catch {}
2018
2021
 
2019
2022
  // ① the 主理鱼 tab in the centre-column view ring
2020
2023
  ctx.effect(() => {
package/lib/index.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
 
41
41
  export const name = 'dsh-session-superagent'
42
42
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
43
- export const SERVER_VERSION = '0.9.159'
43
+ export const SERVER_VERSION = '0.9.160'
44
44
  export const inject = ['tools', 'agents', 'webServer']
45
45
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
46
46
  // 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-superagent",
3
- "version": "0.9.159",
3
+ "version": "0.9.160",
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",