@fish-under-sea/dsh-better-reasoning-effort-fish 0.5.10 → 2.0.1

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.
Files changed (51) hide show
  1. package/FORK.md +14 -26
  2. package/NOTICE.md +3 -3
  3. package/README.en.md +24 -27
  4. package/README.md +24 -27
  5. package/docs/market-card.png +0 -0
  6. package/icon.png +0 -0
  7. package/lib/index.js +2 -2
  8. package/lib/index.js.map +1 -1
  9. package/locale/en.json +1 -0
  10. package/locale/zh.json +1 -0
  11. package/package.json +43 -41
  12. package/screenshots.json +3 -0
  13. package/src/autofill.ts +187 -0
  14. package/src/client/ComposerSlider.tsx +515 -0
  15. package/src/client/EffortEditor.tsx +855 -0
  16. package/src/client/HeadersEditor.tsx +442 -0
  17. package/src/client/LocaleRefresh.tsx +46 -0
  18. package/src/client/SliderToggle.tsx +49 -0
  19. package/src/client/assets.d.ts +4 -0
  20. package/src/client/effort-memory.ts +412 -0
  21. package/src/client/effort.ts +88 -0
  22. package/src/client/index.ts +257 -0
  23. package/src/client/injection/autofill-run.ts +102 -0
  24. package/src/client/injection/composer-menu.ts +228 -0
  25. package/src/client/injection/configured-efforts.ts +95 -0
  26. package/src/client/injection/model-menu.ts +71 -0
  27. package/src/client/injection/models-page-editor.ts +1560 -0
  28. package/src/client/injection/models-page.ts +314 -0
  29. package/src/client/injection/mount.tsx +85 -0
  30. package/src/client/injection/provider-card.ts +200 -0
  31. package/src/client/injection/session-directory.ts +186 -0
  32. package/src/client/injection/slider-toggle-slot.ts +38 -0
  33. package/src/client/locales.ts +202 -0
  34. package/src/client/model-theme.ts +126 -0
  35. package/src/client/ops.ts +729 -0
  36. package/src/client/radiation.ts +407 -0
  37. package/src/client/runner-styles.ts +1274 -0
  38. package/src/client/slider-pref.ts +72 -0
  39. package/src/client/styles.ts +537 -0
  40. package/src/client/types.ts +386 -0
  41. package/src/client/wire-preview.ts +41 -0
  42. package/src/constants.ts +94 -0
  43. package/src/detection.ts +252 -0
  44. package/src/guard.ts +48 -0
  45. package/src/headers-conflict.ts +197 -0
  46. package/src/headers-core.ts +167 -0
  47. package/src/headers-fetch.ts +153 -0
  48. package/src/index.ts +834 -0
  49. package/src/knowledge.ts +1721 -0
  50. package/src/shared.ts +88 -0
  51. package/icon.svg +0 -12
package/FORK.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # 本 fork 的维护说明
2
2
 
3
- 本仓库是 **dsh-better-reasoning-effort 的个人客制化版(fork)**,不是原创或官方发行版。当前基线为 [HaoyueQin/dsh-better-reasoning-effort](https://github.com/HaoyueQin/dsh-better-reasoning-effort) `master` **v0.5.4**,固定 commit **`2d68b65cc641cd85e95384c859a2bc3de23d9e08`**;前一基线为 v0.5.2 `52b584c`。
3
+ 本包(`dsh-fish` 单仓的 `packages/dsh-better-reasoning-effort-fish`)是 **dsh-better-reasoning-effort 的个人客制化版(fork)**,不是原创或官方发行版。当前基线为 [HaoyueQin/dsh-better-reasoning-effort](https://github.com/HaoyueQin/dsh-better-reasoning-effort) `master` **v0.5.4**,固定 commit **`2d68b65cc641cd85e95384c859a2bc3de23d9e08`**;前一基线为 v0.5.2 `52b584c`。2.0.0 起源码随 `dsh-fish` 单仓维护,历史独立仓库只保留 0.5.x 的 tag 与已发布版本。
4
4
 
5
5
  改动范围、素材来源、MIT 许可及身份字段约束见 **[NOTICE.md](NOTICE.md)**;完整用户说明见 [中文 README](README.md) / [English README](README.en.md)。
6
6
 
7
7
  ## 跟随上游:按基线 diff 移植
8
8
 
9
- 本仓库是**没有共同历史的独立仓库**,不能照搬 `git merge upstream/master`;也不应通过 `--allow-unrelated-histories` 将上游全树合并进来。应取得固定提交,审阅旧基线到新基线的 diff,再逐路径移植,同时保留本 Fork 差异。不要把「上游当前 master」的后续变化混入本次固定同步。
9
+ 本包与上游**没有共同历史**(并入单仓前是独立仓库),不能照搬 `git merge upstream/master`;也不应通过 `--allow-unrelated-histories` 将上游全树合并进来。应取得固定提交,审阅旧基线到新基线的 diff,再逐路径移植到本目录,同时保留本 Fork 差异。不要把「上游当前 master」的后续变化混入本次固定同步。
10
10
 
11
11
  以下仅作维护命令示例,`upstream` remote 已存在则跳过添加;不要求切分支或提交:
12
12
 
@@ -35,7 +35,7 @@ git diff 52b584c 2d68b65cc641cd85e95384c859a2bc3de23d9e08 -- src tests scripts p
35
35
  | `scripts/build-client.mjs` / `src/client/assets.d.ts` / `assets/` | 八张运行 PNG 经 esbuild `dataurl` 内嵌,不引入静态资源路由;保留完整第三方 MIT 许可 |
36
36
  | 六份根目录说明文档 | 用户 README 保持 Fish 说明;两份 `original` 备份保持固定上游提交原文与身份 |
37
37
 
38
- 本次同步还包括官方 `modelOverrides` 目录安全写入、未知模型不自动填充,以及默认档守护与活动报告。DSH peer 范围新增 `^0.2.1-alpha.1`、DSH devDependencies 对齐上游 `^0.2.1-alpha.1`;本次发布版本为 `0.5.10`,不要误改为上游包名或版本 `0.5.4`。依赖声明对齐不等于本 Fork 已在真实 DSH 验证。
38
+ 本次同步还包括官方 `modelOverrides` 目录安全写入、未知模型不自动填充,以及默认档守护与活动报告。2.0.0 起本包并入 `dsh-fish` 单仓:DSH 要求 **≥ 0.2.2-rc.1**,peer 与开发依赖统一到 `^0.2.2-rc.1`,发布版本为 `2.0.0`,不要误改为上游包名或版本 `0.5.4`。依赖声明对齐不等于本 Fork 已在真实 DSH 验证。
39
39
 
40
40
  ### 原始 README 备份
41
41
 
@@ -57,37 +57,25 @@ git show 2d68b65:README.zh.md > README_ZH.original.md
57
57
  - `assets/third-party/dsh-reasoning-effort.LICENSE` 完整保留来源 MIT 版权、授权及免责条款;不得只保留链接或短句替代完整许可。
58
58
  - `assets/` 的八张 `*-runner-strip.png` 运行素材经 `dataurl` 内嵌进客户端 bundle;不要把参考预览当成运行资源,也不要另开资源路由。
59
59
 
60
- ## 发布记录:0.5.10
60
+ ## 发布记录:2.0.0
61
61
 
62
- `0.5.10` 是包名改为 `@fish-under-sea/dsh-better-reasoning-effort-fish` 后的首个发布版本,内容为上游 v0.5.4 同步与八主题功能。
62
+ `2.0.0` 是本包并入 `dsh-fish` 单仓后的首个版本,与其余成员同批构建、同批发布;功能为上游 v0.5.4 同步与八主题。
63
63
 
64
- - **npm**:`@fish-under-sea/dsh-better-reasoning-effort-fish@0.5.10`。未加 scope 的旧包 `0.5.9` 已由作者删除;scope 包按首次发布流程在本机执行 `npm publish --access public --ignore-scripts`。
65
- - **GitHub Release**:`v0.5.10`,资产为同一 commit 构建的 `fish-under-sea-dsh-better-reasoning-effort-fish-0.5.10.tgz`,可直接用于 `dsh plugin add <tarball URL>`。`npm pack` 对 scoped 包会去掉 `@` 并把 `/` 换成 `-`,`release.yml` 的附件 glob 已同步。
66
- - **历史版本**:`v0.5.9` 与 `v0.5.8` 的 tag 与 release 保留为历史,不移动、不覆盖;其中 `v0.5.9` 是未加 scope 的版本,npm 侧已删除,不再使用。
67
- - **后续 tag 发布**:`publish.yml` 使用 npm Trusted Publishing。scoped 包需要先在 npm 网页重新配置 GitHub Actions 发布者(仓库名 + `publish.yml`);未配置前,新的 tag 发布会失败,应继续在本机完成首次发布。`publish.yml` 对已经存在于 registry 的版本会跳过重复发布,避免本机发布后 tag 推送把 CI 标红。
68
-
69
- 发布不改变验证边界:本地 `typecheck`、`npm test`(24 个测试文件、518 项)与 `build` 已通过,浏览器交互与真实 DSH 运行仍未验证。
64
+ - **npm**:随聚合包 `@fish-under-sea/dsh-fish@2.0.0` 一同发布,本包独立版本为 `@fish-under-sea/dsh-better-reasoning-effort-fish@2.0.0`。`files` 覆盖 `lib/`、`src/`、`assets/`、`locale/`、`docs/*.svg`、`icon.png`、`cordis.patch.yml` 与各说明文档;`lib/` 已提交,安装方无需构建。
65
+ - **GitHub Release**:由单仓 tag `v2.0.0` 触发 `.github/workflows/release.yml`,生成聚合包 `fish-under-sea-dsh-fish-2.0.0.tgz` 附件;成员包不再有各自的独立 Release 仓库。
66
+ - **历史版本**:独立仓库的 `v0.5.8` / `v0.5.9` / `v0.5.10` tag 与已发布版本保留为历史,不移动、不覆盖,并在 2.0.0 发布后标记 deprecated 引导升级;未加 scope 的 `0.5.9` 已由作者从 npm 删除。
67
+ - **验证边界**:2.0.0 合并时 `npm run typecheck` 与 `npm run build` 通过,`npm pack --dry-run` 覆盖运行所需文件;测试套件需在普通终端运行(见下),浏览器交互与真实 DSH 运行仍未验证。
70
68
 
71
69
  ## 本机开发备注(DSH 文件沙箱)
72
70
 
73
- 以下为既有开发环境的排障参考,不是本次已执行或要求自动执行的步骤。遇到权限限制应遵循当前环境审批,不绕过沙箱。
74
-
75
- - 在曾出现 `EPERM` 的环境中,vite 在 Windows 探测网络驱动器的 `exec("net use")` 可能被阻止。仓库提供的幂等补丁只修改本地 `node_modules`,重装依赖后需重跑:
76
-
77
- ```bash
78
- node scripts/sandbox-vite-patch.mjs
79
- ```
80
-
81
- - 若默认 fork 池的 IPC 管道被限制,可改用线程池:
82
-
83
- ```bash
84
- node node_modules/vitest/vitest.mjs run --pool=threads
85
- ```
71
+ 以下为既有开发环境的排障参考,不是发布流程要求的步骤。遇到权限限制应遵循当前环境审批,不绕过沙箱。
86
72
 
87
- - esbuild 需要启动自身二进制服务并通过管道通信;如被拦,应先通过环境批准的方式取得执行权限。常规构建入口:
73
+ - 依赖由单仓根目录的 `pnpm install` 提供,本包目录没有自己的 `node_modules`。
74
+ - 在禁止子进程管道的沙箱里,vitest 加载 vite 配置时会因 Windows 的 `exec("net use")` 报 `EPERM`,esbuild 也无法启动自身服务。测试请换到普通终端;需要在本机沙箱内构建时,可用同版本 esbuild 的 CLI 直接产出 `lib/index.js` 与 `lib/client.js`(参数与 `scripts/build-*.mjs` 一致),再用 `npm run build:types` 生成声明文件。
75
+ - 常规构建入口仍是:
88
76
 
89
77
  ```bash
90
78
  npm run build
91
79
  ```
92
80
 
93
- 构建中的 `build:client` 包含样式检查;不要为了绕开环境问题跳过项目已有检查。`lib/` 为 gitignore 中的构建产物,源码 clone 不自带。
81
+ 构建中的 `build:client` 包含样式检查;不要为了绕开环境问题跳过项目已有检查。`lib/` 是提交进单仓的构建产物,本包目录不再自带 `.gitignore`(由单仓根忽略 `node_modules/` 与 `*.tgz`)。
package/NOTICE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 来源与署名(NOTICE)
2
2
 
3
- 本仓库是 **dsh-better-reasoning-effort** 插件的**个人客制化版(fork)**,**不是原创项目,也不是上游官方发行版**。本版既有兼容修复,也移植了第三方视觉素材与交互代码,不再是「只做一处修复」。
3
+ 本包(2.0.0 起位于 `dsh-fish` 单仓的 `packages/dsh-better-reasoning-effort-fish`)是 **dsh-better-reasoning-effort** 插件的**个人客制化版(fork)**,**不是原创项目,也不是上游官方发行版**。本版既有兼容修复,也移植了第三方视觉素材与交互代码,不再是「只做一处修复」。
4
4
 
5
5
  ## 原始项目与同步基线
6
6
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  ### 上游同步
23
23
 
24
- 从 v0.5.2 同步至上述 v0.5.4,包括:官方 `modelOverrides` 目录安全写入;自动填充仅处理命中精选官方知识库的模型、未知模型须用户确认自动适配;强制思考默认档守护尊重路由级 `reasoning` 默认值,并提供活动计数与最近模型报告。DSH peer 范围新增 `^0.2.1-alpha.1`,开发依赖同步到上游对应范围;这是依赖与源码基线对齐,**不是本 Fork 在真实 DSH 中的验证声明**。
24
+ 从 v0.5.2 同步至上述 v0.5.4,包括:官方 `modelOverrides` 目录安全写入;自动填充仅处理命中精选官方知识库的模型、未知模型须用户确认自动适配;强制思考默认档守护尊重路由级 `reasoning` 默认值,并提供活动计数与最近模型报告。2.0.0 并入 `dsh-fish` 单仓后,DSH 要求与 peer / 开发依赖统一为 `^0.2.2-rc.1`;这是依赖与源码基线的对齐,**不是本 Fork 在真实 DSH 中的验证声明**。
25
25
 
26
26
  ### Fish 身份与 provider-card 兼容修复
27
27
 
@@ -67,4 +67,4 @@ host 路由 `PROBE_PATH` / `AUTOFILL_CONFIG_PATH` / `HEADERS_CONFIG_PATH` 继续
67
67
 
68
68
  ## 当前发布与验证状态
69
69
 
70
- 当前源码已随 npm `@fish-under-sea/dsh-better-reasoning-effort-fish@0.5.10` 与 GitHub Release `v0.5.10` 发布,包含上游 v0.5.4 同步与八主题功能;未加 scope 的旧包 `0.5.9` 已由作者删除。素材预览和上游的验证记录均不能作为本分支在真实 DSH 中已验证的证据。
70
+ 2.0.0 起本包随 `dsh-fish` 单仓与聚合包 `@fish-under-sea/dsh-fish@2.0.0` 同批发布,独立版本为 npm `@fish-under-sea/dsh-better-reasoning-effort-fish@2.0.0`;独立仓库的 0.5.x 版本保留为历史并标记 deprecated,未加 scope 的旧包 `0.5.9` 已由作者删除。合并时的本地检查为 `npm run typecheck`、`npm run build` 与 `npm pack --dry-run`;测试套件需在普通终端运行。素材预览和上游的验证记录均不能作为本包在真实 DSH 中已验证的证据。
package/README.en.md CHANGED
@@ -6,17 +6,17 @@
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/@fish-under-sea/dsh-better-reasoning-effort-fish?style=flat-square&label=npm&color=cb3837)](https://www.npmjs.com/package/@fish-under-sea/dsh-better-reasoning-effort-fish)
8
8
  ![license](https://img.shields.io/badge/license-MIT-green?style=flat-square)
9
- ![node](https://img.shields.io/badge/node-%5E22.19.0%20%7C%7C%20%3E%3D24-339933?style=flat-square)
10
- ![DSH](https://img.shields.io/badge/DSH-%E2%89%A5%200.1.5%2Dalpha.1-4b6ef6?style=flat-square)
9
+ ![node](https://img.shields.io/badge/node-%E2%89%A5%2024.9-339933?style=flat-square)
10
+ ![DSH](https://img.shields.io/badge/DSH-%E2%89%A5%200.2.2%2Drc.1-4b6ef6?style=flat-square)
11
11
  ![plugin](https://img.shields.io/badge/plugin-client%20%2B%20host-6b7280?style=flat-square)
12
12
 
13
- <img src="icon.svg" alt="dsh-better-reasoning-effort-fish" width="96">
13
+ <img src="icon.png" alt="dsh-better-reasoning-effort-fish" width="96">
14
14
 
15
15
  [简体中文](README.md) · **English**
16
16
 
17
17
  </div>
18
18
 
19
- > **npm `0.5.10` is released (`@fish-under-sea/dsh-better-reasoning-effort-fish`).** It includes the upstream v0.5.4 sync and the eight runner themes. See [Installation](#installation) for install and upgrade commands. Browser interaction and real-DSH verification are still pending; see [Development & Testing](#development--testing).
19
+ > **2.0.1: this package now lives in the [`dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) monorepo as the `packages/dsh-better-reasoning-effort-fish` workspace member, built and released together with the aggregation package `@fish-under-sea/dsh-fish` 2.0.1.** Features are the upstream v0.5.4 sync plus the eight runner themes. See [Installation](#installation) for install and upgrade commands. Browser interaction and real-DSH verification are still pending; see [Development & Testing](#development--testing).
20
20
 
21
21
  ## Original Author & Attribution (Please Read First)
22
22
 
@@ -27,9 +27,10 @@
27
27
  | Original repository | <https://github.com/HaoyueQin/dsh-better-reasoning-effort> |
28
28
  | Upstream npm package | `dsh-better-reasoning-effort` (**belongs to the original author; this fork cannot reuse the name**) |
29
29
  | This fork's npm package | **`@fish-under-sea/dsh-better-reasoning-effort-fish`** |
30
+ | Location since 2.0.1 | [`packages/dsh-better-reasoning-effort-fish`](https://github.com/Fish-under-sea/dsh-fish/tree/main/packages/dsh-better-reasoning-effort-fish) in the [`dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) monorepo, built and released with the other members |
30
31
  | License | **MIT**; upstream [`LICENSE`](LICENSE) is unmodified; see [`NOTICE.md`](NOTICE.md) for the visual source's separate MIT notice |
31
32
  | Fork baseline | [HaoyueQin/dsh-better-reasoning-effort](https://github.com/HaoyueQin/dsh-better-reasoning-effort) `master` = **v0.5.4** (commit [`2d68b65cc641cd85e95384c859a2bc3de23d9e08`](https://github.com/HaoyueQin/dsh-better-reasoning-effort/commit/2d68b65cc641cd85e95384c859a2bc3de23d9e08); synced from v0.5.2 `52b584c`) |
32
- | Nature of this fork | **Personal customization (fork)** — neither original nor official; the upstream README is preserved intact as [`README.original.md`](README.original.md) / [`README_ZH.original.md`](README_ZH.original.md) |
33
+ | Nature of this fork | **Personal customization (fork)** — neither original nor official; from 2.0.1 the source is maintained in the `dsh-fish` monorepo, while the standalone repository keeps only the 0.5.x release history; the upstream README is preserved intact as [`README.original.md`](README.original.md) / [`README_ZH.original.md`](README_ZH.original.md) |
33
34
 
34
35
  > Full details on attribution and the scope of changes are in [`NOTICE.md`](NOTICE.md). Please preserve the original author's credit when redistributing.
35
36
 
@@ -82,40 +83,37 @@ This plugin brings both configuration surfaces back into the UI: edit them insid
82
83
 
83
84
  ## Installation
84
85
 
85
- Compatibility follows the union of peer ranges in `package.json`: the listed lines from `0.1.5-alpha.1` onward, now including `^0.2.1-alpha.1` (not a blanket guarantee for all future versions). DSH development dependencies use `^0.2.1-alpha.1`, aligned with upstream v0.5.4. Node requirement: `^22.19.0 || >=24`. **Dependency alignment does not mean this release has been verified on every listed DSH version.**
86
+ Since 2.0.1 this package follows the rest of the monorepo: DSH **≥ 0.2.2-rc.1**, with peer and development dependencies at `^0.2.2-rc.1`; Node **≥ 24.9**. **Dependency alignment does not mean this release has been verified on every DSH version.**
86
87
 
87
- ### npm (recommended)
88
+ ### Aggregation package (recommended)
88
89
 
89
90
  ```sh
90
91
  # Desktop
91
- dsh plugin --profile desktop add @fish-under-sea/dsh-better-reasoning-effort-fish@0.5.10
92
+ dsh plugin --profile desktop add @fish-under-sea/dsh-fish@2.0.1
92
93
 
93
94
  # Web
94
- dsh plugin --profile web add @fish-under-sea/dsh-better-reasoning-effort-fish@0.5.10
95
+ dsh plugin --profile web add @fish-under-sea/dsh-fish@2.0.1
95
96
  ```
96
97
 
97
- DSH's bundled pnpm uses a 24-hour `minimum-release-age`, so unpinned installs may temporarily resolve to an older release; pinning bypasses that wait. **Restart DSH** and hard-refresh the browser after installation.
98
-
99
- ### Release tarball
100
-
101
- When the npm registry is unreachable, install the packaged artifact from the GitHub Release:
98
+ The aggregation package pins all ten members to exact versions, so installing it brings every plugin released alongside this one. If you only need this plugin, install it on its own:
102
99
 
103
100
  ```sh
104
- dsh plugin --profile web add \
105
- https://github.com/Fish-under-sea/dsh-better-reasoning-effort-fish/releases/download/v0.5.10/fish-under-sea-dsh-better-reasoning-effort-fish-0.5.10.tgz
101
+ dsh plugin --profile web add @fish-under-sea/dsh-better-reasoning-effort-fish@2.0.1
106
102
  ```
107
103
 
108
- This tarball and npm `@fish-under-sea/dsh-better-reasoning-effort-fish@0.5.10` are built from the same commit. Restart DSH and hard-refresh the browser afterwards.
104
+ DSH's bundled pnpm uses a 24-hour `minimum-release-age`, so unpinned installs may temporarily resolve to an older release; pinning bypasses that wait. **Restart DSH** and hard-refresh the browser after installation.
109
105
 
110
- ### Local source (development)
106
+ ### Monorepo source (development)
111
107
 
112
- Run in the repository root (adjust the link path and choose your profile):
108
+ This package lives in the `dsh-fish` monorepo and its `lib/` is committed, so a clone installs without a build. Rebuild and link it after changing sources:
113
109
 
114
110
  ```sh
115
- npm install && npm run build
116
- dsh plugin --profile desktop add link:/path/to/dsh-better-reasoning-effort-fish
111
+ git clone https://github.com/Fish-under-sea/dsh-fish.git
112
+ cd dsh-fish && pnpm install
113
+ pnpm --filter @fish-under-sea/dsh-better-reasoning-effort-fish build
114
+ dsh plugin --profile desktop add link:$PWD/packages/dsh-better-reasoning-effort-fish
117
115
  # Or the Web profile
118
- dsh plugin --profile web add link:/path/to/dsh-better-reasoning-effort-fish
116
+ dsh plugin --profile web add link:$PWD/packages/dsh-better-reasoning-effort-fish
119
117
  ```
120
118
 
121
119
  Source edits do not update the npm package. After rebuilding locally, restart DSH and hard-refresh the browser.
@@ -206,8 +204,7 @@ See [`docs/compatibility-notes.md`](docs/compatibility-notes.md) for more compat
206
204
 
207
205
  ## Development & Testing
208
206
 
209
- Local checks before this release (Node 24.14.0, npm 11.9.0): `npm run typecheck`, `npm test` (24 test files, 518 tests, all passing), and `npm run build` all passed. Browser interaction and real-DSH verification are still unverified; these release notes do not treat dependency alignment or asset previews as runtime evidence.
210
-
207
+ Local checks when the package was merged into the monorepo for 2.0.1 (Node 24.14.0): `npm run typecheck` and `npm run build` passed; the `lib/` artifacts are committed, so a clone packs and publishes without a build. Browser interaction and real-DSH verification are still unverified; these release notes do not treat dependency alignment or asset previews as runtime evidence.
211
208
 
212
209
  ```sh
213
210
  npm run typecheck # tsc strict check
@@ -215,13 +212,13 @@ npm test # vitest: knowledge base / inference / autofill / DOM inject
215
212
  npm run build # lib/*.js + lib/client.js
216
213
  ```
217
214
 
218
- Tests are vitest-driven. Run `npm install` first to install dependencies (a fresh clone has no `node_modules`), then `npm test` to run the suite; build with `npm run build` (`lib/` is a build artifact, gitignored and not present in clones).
215
+ Tests are vitest-driven and use the dependencies installed by `pnpm install` at the monorepo root; `lib/` is a committed build artifact — rebuild it with `npm run build` when needed.
219
216
 
220
- When developing under the DSH file sandbox, `vitest` and esbuild need extra handling (the sandbox blocks subprocess pipes) — see [`FORK.md`](FORK.md) for the full commands.
217
+ When developing under the DSH file sandbox, `vitest` cannot load its vite config and esbuild cannot start its service (the sandbox blocks subprocess pipes) — run the suite in a normal terminal; see [`FORK.md`](FORK.md) for build notes.
221
218
 
222
219
  ## Relationship to the Aggregation Package
223
220
 
224
- This package lives in a **standalone repository** (<https://github.com/Fish-under-sea/dsh-better-reasoning-effort-fish>) — it is not inside the `dsh-fish` monorepo. However, it is one of the members of the aggregation package [`@fish-under-sea/dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) and can be installed alongside the other plugins in that suite.
221
+ Since 2.0.1 this package lives in the [`dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) monorepo and is built and released with the other members; the aggregation package [`@fish-under-sea/dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) pins it at an exact version, and it can also be installed on its own as described in [Installation](#installation). The former standalone repository (<https://github.com/Fish-under-sea/dsh-better-reasoning-effort-fish>) keeps only the 0.5.x tags and published versions and is no longer updated; upgrade to 2.0.1.
225
222
 
226
223
  ## License
227
224
 
package/README.md CHANGED
@@ -6,17 +6,17 @@
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/@fish-under-sea/dsh-better-reasoning-effort-fish?style=flat-square&label=npm&color=cb3837)](https://www.npmjs.com/package/@fish-under-sea/dsh-better-reasoning-effort-fish)
8
8
  ![license](https://img.shields.io/badge/license-MIT-green?style=flat-square)
9
- ![node](https://img.shields.io/badge/node-%5E22.19.0%20%7C%7C%20%3E%3D24-339933?style=flat-square)
10
- ![DSH](https://img.shields.io/badge/DSH-%E2%89%A5%200.1.5%2Dalpha.1-4b6ef6?style=flat-square)
9
+ ![node](https://img.shields.io/badge/node-%E2%89%A5%2024.9-339933?style=flat-square)
10
+ ![DSH](https://img.shields.io/badge/DSH-%E2%89%A5%200.2.2%2Drc.1-4b6ef6?style=flat-square)
11
11
  ![plugin](https://img.shields.io/badge/plugin-client%20%2B%20host-6b7280?style=flat-square)
12
12
 
13
- <img src="icon.svg" alt="dsh-better-reasoning-effort-fish" width="96">
13
+ <img src="icon.png" alt="dsh-better-reasoning-effort-fish" width="96">
14
14
 
15
15
  **简体中文** · [English](README.en.md)
16
16
 
17
17
  </div>
18
18
 
19
- > **npm `0.5.10` 已发布(`@fish-under-sea/dsh-better-reasoning-effort-fish`)。** 本版包含上游 v0.5.4 同步与八款大肥鱼主题,安装与升级方式见[安装](#安装)。浏览器交互与真实 DSH 运行验证仍待补充,详见[开发与测试](#开发与测试)。
19
+ > **2.0.1:本包已并入 `dsh-fish` 单仓,作为 `packages/dsh-better-reasoning-effort-fish` 工作区成员随聚合包 [`@fish-under-sea/dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) `2.0.1` 一同构建与发布。** 功能为上游 v0.5.4 同步与八款大肥鱼主题;安装与升级方式见[安装](#安装)。浏览器交互与真实 DSH 运行验证仍待补充,详见[开发与测试](#开发与测试)。
20
20
 
21
21
  ## 原作者与授权(请先读)
22
22
 
@@ -27,9 +27,10 @@
27
27
  | 原仓库 | <https://github.com/HaoyueQin/dsh-better-reasoning-effort> |
28
28
  | 上游 npm 包名 | `dsh-better-reasoning-effort`(**归原作者,本版不能沿用**) |
29
29
  | 本版 npm 包名 | **`@fish-under-sea/dsh-better-reasoning-effort-fish`** |
30
+ | 本版位置 | [`dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) 单仓的 [`packages/dsh-better-reasoning-effort-fish`](https://github.com/Fish-under-sea/dsh-fish/tree/main/packages/dsh-better-reasoning-effort-fish),与其余成员同批构建、同版本发布 |
30
31
  | 许可证 | **MIT**;上游 [`LICENSE`](LICENSE) 未修改,视觉来源的独立 MIT 声明见 [`NOTICE.md`](NOTICE.md) |
31
32
  | 本版基线 | [HaoyueQin/dsh-better-reasoning-effort](https://github.com/HaoyueQin/dsh-better-reasoning-effort) `master` = **v0.5.4**(commit [`2d68b65cc641cd85e95384c859a2bc3de23d9e08`](https://github.com/HaoyueQin/dsh-better-reasoning-effort/commit/2d68b65cc641cd85e95384c859a2bc3de23d9e08);由 v0.5.2 `52b584c` 同步) |
32
- | 本版性质 | **个人客制化版(fork)**,非原创、非官方;上游 README 完整保留为 [`README.original.md`](README.original.md) / [`README_ZH.original.md`](README_ZH.original.md) |
33
+ | 本版性质 | **个人客制化版(fork)**,非原创、非官方;2.0.1 起源码随 `dsh-fish` 单仓维护,历史独立仓库只保留 0.5.x 的发布记录;上游 README 完整保留为 [`README.original.md`](README.original.md) / [`README_ZH.original.md`](README_ZH.original.md) |
33
34
 
34
35
  > 署名与改动范围的完整说明见 [`NOTICE.md`](NOTICE.md)。再分发时请保留原作者署名。
35
36
 
@@ -82,40 +83,37 @@
82
83
 
83
84
  ## 安装
84
85
 
85
- 兼容声明以 `package.json` 的联合 peer 范围为准,覆盖 `0.1.5-alpha.1` 起的列明版本线,并新增 `^0.2.1-alpha.1`(不是对所有未来版本的无限保证);DSH 开发依赖同步为 `^0.2.1-alpha.1`,与上游 v0.5.4 对齐。Node 要求 `^22.19.0 || >=24`。**这表示依赖范围对齐,不表示本版已在所有列明 DSH 版本中验证。**
86
+ 2.0.1 起本包与单仓其余成员对齐:DSH 要求 **≥ 0.2.2-rc.1**,`package.json` 的 peer 与开发依赖都是 `^0.2.2-rc.1`;Node 要求 **≥ 24.9**。**依赖对齐不表示本版已在所有 DSH 版本中验证。**
86
87
 
87
- ### npm(推荐)
88
+ ### 聚合包(推荐)
88
89
 
89
90
  ```sh
90
91
  # 桌面版
91
- dsh plugin --profile desktop add @fish-under-sea/dsh-better-reasoning-effort-fish@0.5.10
92
+ dsh plugin --profile desktop add @fish-under-sea/dsh-fish@2.0.1
92
93
 
93
94
  # Web 版
94
- dsh plugin --profile web add @fish-under-sea/dsh-better-reasoning-effort-fish@0.5.10
95
+ dsh plugin --profile web add @fish-under-sea/dsh-fish@2.0.1
95
96
  ```
96
97
 
97
- DSH 内置 pnpm 的 `minimum-release-age` 为 24 小时,不指定版本时可能暂时解析到更旧的版本;指定版本可跳过该等待。安装后**重启 DSH** 并强制刷新浏览器。
98
-
99
- ### release tarball
100
-
101
- npm registry 不可达时,可直接安装 GitHub Release 的打包成品:
98
+ 聚合包以精确版本固定十个成员,安装它即得到与本包同批发布的其余插件。只需要这一个插件时,也可以单独安装:
102
99
 
103
100
  ```sh
104
- dsh plugin --profile web add \
105
- https://github.com/Fish-under-sea/dsh-better-reasoning-effort-fish/releases/download/v0.5.10/fish-under-sea-dsh-better-reasoning-effort-fish-0.5.10.tgz
101
+ dsh plugin --profile web add @fish-under-sea/dsh-better-reasoning-effort-fish@2.0.1
106
102
  ```
107
103
 
108
- 该 tarball 与 npm `@fish-under-sea/dsh-better-reasoning-effort-fish@0.5.10` 由同一 commit 构建。安装后同样需要重启 DSH 并强制刷新浏览器。
104
+ DSH 内置 pnpm 的 `minimum-release-age` 为 24 小时,不指定版本时可能暂时解析到更旧的版本;指定版本可跳过该等待。安装后**重启 DSH** 并强制刷新浏览器。
109
105
 
110
- ### 本地源码(开发)
106
+ ### 单仓源码(开发)
111
107
 
112
- 在仓库根目录执行(按实际目录修改链接路径,选择你使用的 profile):
108
+ 本包在 `dsh-fish` 单仓内,`lib/` 已随仓库提交,克隆后无需构建即可安装。改动源码后按下面的方式重建并链接:
113
109
 
114
110
  ```sh
115
- npm install && npm run build
116
- dsh plugin --profile desktop add link:/path/to/dsh-better-reasoning-effort-fish
111
+ git clone https://github.com/Fish-under-sea/dsh-fish.git
112
+ cd dsh-fish && pnpm install
113
+ pnpm --filter @fish-under-sea/dsh-better-reasoning-effort-fish build
114
+ dsh plugin --profile desktop add link:$PWD/packages/dsh-better-reasoning-effort-fish
117
115
  # 或 Web profile
118
- dsh plugin --profile web add link:/path/to/dsh-better-reasoning-effort-fish
116
+ dsh plugin --profile web add link:$PWD/packages/dsh-better-reasoning-effort-fish
119
117
  ```
120
118
 
121
119
  源码改动不会自动进入 npm 包;本地重新构建后,重启 DSH 并强制刷新浏览器。
@@ -206,8 +204,7 @@ dsh plugin --profile web remove dsh-reasoning-effort
206
204
 
207
205
  ## 开发与测试
208
206
 
209
- 本版发布前的本地检查(Node 24.14.0、npm 11.9.0):`npm run typecheck`、`npm test`(24 个测试文件、518 项全部通过)与 `npm run build` 均通过。浏览器交互与真实 DSH 运行仍未验证,发布说明不把依赖对齐或素材预览当作运行证据。
210
-
207
+ 2.0.1 并入单仓时的本地检查(Node 24.14.0):`npm run typecheck` 与 `npm run build` 通过;`lib/` 产物已随仓库提交,克隆后无需构建即可打包发布。浏览器交互与真实 DSH 运行仍未验证,发布说明不把依赖对齐或素材预览当作运行证据。
211
208
 
212
209
  ```sh
213
210
  npm run typecheck # tsc 严格检查
@@ -215,13 +212,13 @@ npm test # vitest:知识库 / 推断 / 自动填充 / DOM 注入 /
215
212
  npm run build # lib/*.js + lib/client.js
216
213
  ```
217
214
 
218
- 测试由 vitest 驱动,需先 `npm install` 安装依赖(全新 clone 不含 `node_modules`),再 `npm test` 运行;构建用 `npm run build`(`lib/` 为构建产物,已被 gitignore,clone 里不含)。
215
+ 测试由 vitest 驱动,依赖由单仓根目录的 `pnpm install` 提供;`lib/` 是提交进仓库的构建产物,需要时用 `npm run build` 重建。
219
216
 
220
- 本机在 DSH 文件沙箱下开发时,`vitest` 与 esbuild 需要额外处理(沙箱禁止子进程管道)—— 完整命令见 [`FORK.md`](FORK.md)。
217
+ 本机在 DSH 文件沙箱下开发时,`vitest` 的 vite 配置加载与 esbuild 服务启动会被沙箱禁止的子进程管道拦下 —— 需在普通终端跑测试;构建见 [`FORK.md`](FORK.md) 的说明。
221
218
 
222
219
  ## 与聚合包的关系
223
220
 
224
- 本包是**独立仓库**(<https://github.com/Fish-under-sea/dsh-better-reasoning-effort-fish>),不在 `dsh-fish` 单仓内;但它是聚合包 [`@fish-under-sea/dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) 的成员之一,可与聚合包内其他插件一起安装。
221
+ 2.0.1 起本包在 [`dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) 单仓内,与其余成员同批构建、同版本发布;聚合包 [`@fish-under-sea/dsh-fish`](https://github.com/Fish-under-sea/dsh-fish) 以精确版本固定它,也可按[安装](#安装)一节单独安装本包。历史独立仓库(<https://github.com/Fish-under-sea/dsh-better-reasoning-effort-fish>)只保留 0.5.x 的 tag 与已发布版本,不再继续更新;升级请安装 2.0.1。
225
222
 
226
223
  ## 许可
227
224
 
Binary file
package/icon.png ADDED
Binary file
package/lib/index.js CHANGED
@@ -1418,7 +1418,7 @@ function requestUrlOf(input) {
1418
1418
  }
1419
1419
 
1420
1420
  // src/headers-fetch.ts
1421
- var REGISTRY = /* @__PURE__ */ Symbol.for("dsh-better-reasoning-effort.fetch-overrides");
1421
+ var REGISTRY = Symbol.for("dsh-better-reasoning-effort.fetch-overrides");
1422
1422
  function registryOf() {
1423
1423
  const holder = globalThis;
1424
1424
  return holder[REGISTRY];
@@ -1451,7 +1451,7 @@ function makeWrapper(base, entries) {
1451
1451
  function installHeaderOverlay(source) {
1452
1452
  const holder = globalThis;
1453
1453
  let registry = holder[REGISTRY];
1454
- const token = /* @__PURE__ */ Symbol("bre-header-overlay");
1454
+ const token = Symbol("bre-header-overlay");
1455
1455
  if (registry === void 0) {
1456
1456
  const base = globalThis.fetch;
1457
1457
  const entries = /* @__PURE__ */ new Map();