dsh-thinking-levels 3.4.4 → 3.4.5-beta.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.
- package/CHANGELOG.ja.md +17 -0
- package/CHANGELOG.ko.md +17 -0
- package/CHANGELOG.md +23 -0
- package/README.md +12 -2
- package/README.zh.md +10 -0
- package/dsh.plugin.json +1 -1
- package/lib/client.js +461 -28
- package/lib/client.js.map +1 -1
- package/lib/thinking-level.d.ts +27 -0
- package/lib/thinking-level.js +55 -0
- package/package.json +1 -1
package/CHANGELOG.ja.md
CHANGED
|
@@ -8,6 +8,23 @@
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
### 追加 — 思考レベルスライダー(鲸魚娘ランナーつまみ) — 3.4.5-beta.1
|
|
12
|
+
|
|
13
|
+
- モデルパネルの各行の思考レベル `<select>` をセグメントスライダーに改修。行のレベル
|
|
14
|
+
チップをクリックすると全幅スライダーが展開されます:ストップ数はモデルの広告レベルに
|
|
15
|
+
追従、`auto` は常に最左(次いで `off`/`on`、強度昇順、未知のゲートウェイ値は最後)、
|
|
16
|
+
つまみはポインターに連続追従してリリース時にスナップ(1 ジェスチャー 1 回書き込み)、
|
|
17
|
+
←/→/Home/End で段階移動、旧「プロバイダーの既定」リセットは行内の ↺ ボタンとして存続。
|
|
18
|
+
- DeepSeek 系の行(公式ルート、id/名前に deepseek を含むゲートウェイモデル)は 8 フレームの
|
|
19
|
+
側面ランニング立絵をつまみに採用(ピンポンループ、静止 720ms/方向・ドラッグ中 420ms、
|
|
20
|
+
`prefers-reduced-motion` で停止)。それ以外は白い丸ノブ。立絵は HanaAyane/dsh-reasoning-effort
|
|
21
|
+
のコミュニティ二次創作(`assets/chibi-runner-strip.png`)。再生成は
|
|
22
|
+
`python tools/whale-mascot.py`。
|
|
23
|
+
- `thinking-level` に純粋ヘルパー `orderEffortsForSlider` / `nearestEffortStopIndex` を
|
|
24
|
+
追加(ユニットテスト付き)。
|
|
25
|
+
- テスト修正(既存不具合):`settings-seat.spec.ts` が `plugins.bundle.config` 追加前の
|
|
26
|
+
2 スロット前提のままで落ちていたため、現行の登録面に合わせて更新。
|
|
27
|
+
|
|
11
28
|
### 修正 — プラグイン設定の二重表示 — 2.0.0-beta.4
|
|
12
29
|
|
|
13
30
|
- **`settings.plugins.tab` 登録を削除。** 0.1.5 互換作業では DSH 0.1.5 が `settings.plugin.item` スロットを廃止したと想定していましたが、リリース済みの 0.1.5-rc.2(および 0.1.6-alpha.1)の `ui-settings-plugins` は内蔵の設定タブの子として同スロットを維持しています。両スロットが宣言されているため 2 つの登録が同時に発火し、設定 → プラグインに項目カードと専用タブの 2 つが表示されていました。項目カードだけで全サポート線をカバーできるため、タブ登録(および `ctx.locale.bind` のラベル thunk)を削除しました。
|
package/CHANGELOG.ko.md
CHANGED
|
@@ -8,6 +8,23 @@
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
### 추가 — 사고 레벨 슬라이더(고래소녀 러너 썸) — 3.4.5-beta.1
|
|
12
|
+
|
|
13
|
+
- 모델 패널各行의 사고 레벨 `<select>`를 세그먼트 슬라이더로 개편. 행의 레벨 칩을 클릭하면
|
|
14
|
+
전폭 슬라이더가 펼쳐집니다: 스톱 수는 모델이 광고하는 레벨에 적응하고, `auto`는 항상
|
|
15
|
+
최좌측(이후 `off`/`on`, 강도 오름차순, 미지 게이트웨이 값은 마지막), 썸은 포인터를
|
|
16
|
+
연속 추적 후 놓을 때 스냅(제스처당 1회 기록), ←/→/Home/End로 단계 이동, 기존
|
|
17
|
+
"공급자 기본값" 초기화는 슬라이더 행의 ↺ 버튼으로 존속.
|
|
18
|
+
- DeepSeek 계열 행(공식 라우트, id/이름에 deepseek 포함 게이트웨이 모델)은 8프레임 측면
|
|
19
|
+
주행 입썸을 썸으로 사용(핑퐁 루프, 대기 720ms/방향·드래그 중 420ms,
|
|
20
|
+
`prefers-reduced-motion` 시 정지). 그 외 모델은 흰색 원형 노브. 입썸은
|
|
21
|
+
HanaAyane/dsh-reasoning-effort의 커뮤니티 2차 창작(`assets/chibi-runner-strip.png`).
|
|
22
|
+
재생성은 `python tools/whale-mascot.py`.
|
|
23
|
+
- `thinking-level`에 순수 헬퍼 `orderEffortsForSlider` / `nearestEffortStopIndex` 추가
|
|
24
|
+
(단위 테스트 포함).
|
|
25
|
+
- 테스트 수정(기존 결함): `plugins.bundle.config` 카드 추가 이후 2슬롯 전제로 남아
|
|
26
|
+
실패하던 `settings-seat.spec.ts` 기대값을 현행 등록면에 맞게 갱신.
|
|
27
|
+
|
|
11
28
|
### 수정 — 플러그인 설정 중복 표시 — 2.0.0-beta.4
|
|
12
29
|
|
|
13
30
|
- **`settings.plugins.tab` 등록 제거.** 0.1.5 호환 작업에서 DSH 0.1.5가 `settings.plugin.item` 슬롯을 폐지했다고 가정했지만, 릴리스된 0.1.5-rc.2(및 0.1.6-alpha.1)의 `ui-settings-plugins`는 내장 구성 탭의 자식으로 해당 슬롯을 유지합니다. 두 슬롯이 모두 선언되어 두 등록이 동시에 발화했고, 설정 → 플러그인에 항목 카드와 전용 탭이 함께 표시되었습니다. 항목 카드만으로 전체 지원 라인을 커버할 수 있으므로 탭 등록(및 `ctx.locale.bind` 라벨 thunk)을 제거했습니다.
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,29 @@ All notable changes to `dsh-thinking-levels` are documented here.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
### Added — effort slider (whale-girl runner thumb) — 3.4.5-beta.1
|
|
12
|
+
|
|
13
|
+
- **The model panel's per-line effort `<select>` became a segment slider.** Click a line's
|
|
14
|
+
effort chip and a full-width slider expands under that line: the stop count adapts to the
|
|
15
|
+
model's advertised efforts, `auto` is pinned leftmost (then `off`/`on`, the strength
|
|
16
|
+
gradient, unknown gateway wire values last), the thumb follows the pointer continuously
|
|
17
|
+
and snaps on release (one route write per gesture), ←/→/Home/End step stop-by-stop, and
|
|
18
|
+
the old "Provider default" reset survives as the ↺ button of the slider row.
|
|
19
|
+
- **Whale-girl runner thumb on DeepSeek lines.** Official DeepSeek routes and gateway
|
|
20
|
+
models whose id/name says deepseek run an 8-frame side-run strip as the thumb (ping-pong
|
|
21
|
+
loop, 720 ms per direction at rest / 420 ms while dragging, frozen under
|
|
22
|
+
`prefers-reduced-motion`); every other model keeps a plain white knob. Community
|
|
23
|
+
whale-girl artwork sourced from HanaAyane/dsh-reasoning-effort
|
|
24
|
+
(`assets/chibi-runner-strip.png`); regenerate the inlined asset via
|
|
25
|
+
`python tools/whale-mascot.py`.
|
|
26
|
+
- **Pure slider helpers** exported from `thinking-level`: `orderEffortsForSlider`
|
|
27
|
+
(stable auto-leftmost ordering, unknown ids kept last in arrival order) and
|
|
28
|
+
`nearestEffortStopIndex` (exact match, rank-nearest fallback with ties toward the
|
|
29
|
+
stronger level), with unit coverage.
|
|
30
|
+
- **Test repair (pre-existing):** `settings-seat.spec.ts` still expected the two-slot
|
|
31
|
+
surface and had been failing since the `plugins.bundle.config` card landed; the
|
|
32
|
+
registration expectations now cover it.
|
|
33
|
+
|
|
11
34
|
### Fixed — duplicate Plugins settings entry — 2.0.0-beta.4
|
|
12
35
|
|
|
13
36
|
- **Removed the `settings.plugins.tab` registration.** The 0.1.5 compat work assumed DSH 0.1.5
|
package/README.md
CHANGED
|
@@ -77,6 +77,16 @@ For hand-declared `llm-pi-ai` models, map each level to the exact value your gat
|
|
|
77
77
|
|
|
78
78
|
> The visual editor for this mapping rode the plugin's settings card, which the DSH 0.1.7 migration removed (the seat no longer exists). Edit the `reasoningEfforts` table through the official Models settings surface instead — the host-side detection and injection read it live either way.
|
|
79
79
|
|
|
80
|
+
## Effort slider (per model line)
|
|
81
|
+
|
|
82
|
+
The model panel's per-line effort `<select>` became a **segment slider**: click a line's effort chip (it shows the effective level, or *Provider default*) and a full-width slider expands under that line. The stop count adapts to what the model advertises — two-stop toggle-only models, the official `off/low/high/max` set, custom gateway wire values; `auto` (when the directory carries the mask) is pinned **leftmost**, then `off`/`on`, then the strength gradient, unknown wire values last.
|
|
83
|
+
|
|
84
|
+
Interaction follows the approved dsh-reasoning-effort visual baseline: the thumb follows the pointer continuously and **snaps on release** (one route write per gesture), the plain thumb is pure white in every theme, the thumb stays fully visible at both endpoints, and ←/→/Home/End step stop-by-stop. The select's *Provider default* reset survives as the ↺ button of the slider row.
|
|
85
|
+
|
|
86
|
+
DeepSeek lines (the official route, or any gateway model whose id/name says deepseek) run the **whale-girl runner** as the thumb: an 8-frame side-run strip, ping-pong looped (720 ms per direction at rest, 420 ms while dragging), frozen under `prefers-reduced-motion`. Every other model gets the plain knob.
|
|
87
|
+
|
|
88
|
+
The strip is community whale-girl artwork sourced from [HanaAyane/dsh-reasoning-effort](https://github.com/HanaAyane/dsh-reasoning-effort) (`assets/chibi-runner-strip.png`); regenerate the inlined asset with `python tools/whale-mascot.py`.
|
|
89
|
+
|
|
80
90
|
## Context-window presets
|
|
81
91
|
|
|
82
92
|
The composer tool-row quick control (next to the model/effort select) edits a **context window limit**: preset stops `64K / 128K / 256K / 400K / 512K / 1M`, a custom integer input, and a clear button. The value is written to the `llm-pi-ai` model entry `contextWindow` (integer `2000`–`1000000`) — or to the `llm-deepseek` entry for official DeepSeek models.
|
|
@@ -232,10 +242,10 @@ The host half does **not** value-depend on `@deepseek-ai/dsh-settings` — since
|
|
|
232
242
|
```bash
|
|
233
243
|
npm run lint # eslint (typescript-eslint flat config)
|
|
234
244
|
npm run typecheck # tsc --noEmit
|
|
235
|
-
npm test # vitest
|
|
245
|
+
npm test # vitest
|
|
236
246
|
```
|
|
237
247
|
|
|
238
|
-
Test coverage: level policy (manual pass-through incl. the extended levels, `on` clamping, auto scheduler, validation, simple-tool boundary), the model-capability guard (`reasoningEffortSupported`, `resolveEffortInjection` stripping/passthrough), session-event parsing (guards, window cap, malformed records), the config schema (defaults lockstep, out-of-band rejection, `models` overrides), and the official-compat sync (identification, explicit-value respect, identity idempotence, write-time schema gating).
|
|
248
|
+
Test coverage: the slider helpers (`orderEffortsForSlider` auto-leftmost ordering with unknown wire values last, `nearestEffortStopIndex` rank-nearest placement), level policy (manual pass-through incl. the extended levels, `on` clamping, auto scheduler, validation, simple-tool boundary), the model-capability guard (`reasoningEffortSupported`, `resolveEffortInjection` stripping/passthrough), session-event parsing (guards, window cap, malformed records), the config schema (defaults lockstep, out-of-band rejection, `models` overrides), and the official-compat sync (identification, explicit-value respect, identity idempotence, write-time schema gating).
|
|
239
249
|
|
|
240
250
|
## License
|
|
241
251
|
|
package/README.zh.md
CHANGED
|
@@ -49,6 +49,16 @@
|
|
|
49
49
|
- 官方预设:`Off / High / Max`(官方 DeepSeek 风格)
|
|
50
50
|
- 通用预设:`Off / Low / Medium / High`
|
|
51
51
|
|
|
52
|
+
## 思考强度滑块(逐模型行)
|
|
53
|
+
|
|
54
|
+
模型面板里的逐行思考强度下拉框已改造为**分段滑块**:点击模型行的档位 chip(显示当前生效档位或「提供方默认」),该行下方展开全宽滑动条。分段数随模型广告的档位自适应——toggle 型只有两档、官方 `off/low/high/max`、网关自定义线上值均可;目录带 `auto` mask 时 **auto 恒在最左**,其后依次 off/on 与强度递增档,未知线上值排最末。
|
|
55
|
+
|
|
56
|
+
交互对齐 dsh-reasoning-effort 已批准的视觉基线:滑钮拖动时连续跟手、**松手吸附**提交(每次手势只写一次路由);普通滑钮全主题纯白;两端刻度处滑钮完整可见;键盘 ←/→/Home/End 逐档移动。原「提供方默认」重置保留为滑块行的 ↺ 按钮。
|
|
57
|
+
|
|
58
|
+
DeepSeek 行(官方路由,或 id/名称含 deepseek 的网关模型)滑钮为**鲸鱼娘奔跑立绘**:8 帧侧面奔跑 strip,乒乓循环(静止 720ms/单向,拖动中 420ms/单向),`prefers-reduced-motion` 下冻结;其他模型为普通白色圆钮。
|
|
59
|
+
|
|
60
|
+
立绘为社区鲸鱼娘二创,来源 [HanaAyane/dsh-reasoning-effort](https://github.com/HanaAyane/dsh-reasoning-effort)(`assets/chibi-runner-strip.png`);用 `python tools/whale-mascot.py` 可重新生成内联素材。
|
|
61
|
+
|
|
52
62
|
## 模型能力守卫(v0.5.0)
|
|
53
63
|
|
|
54
64
|
插件**绝不向未声明推理能力的模型发送 `reasoning_effort`**。自定义 openai-completions 路由(如未配置 `reasoningEfforts` 的本地 Qwen3.6)通过 `ctx.llm.resolveModelInfo` 被判定为非推理模型,任何档位(继承的或调度产生的)都会被**剥离**而不是下发——dsh 的逐请求 `UNSUPPORTED_REASONING_EFFORT` 拒绝因此不会触发。不支持的字段绝不打进 API。
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-thinking-levels",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5-beta.1",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"description": "thinking-level (reasoning_effort) control — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
|
|
6
6
|
"engines": {
|