dsh-thinking-levels 4.4.13 → 4.4.15
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 +14 -0
- package/README.de.md +1 -1
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.it.md +1 -1
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +2 -2
- package/README.ru.md +1 -1
- package/README.zh.md +2 -2
- package/dsh.plugin.json +16 -16
- package/lib/client.js +49 -0
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +10 -0
- package/lib/index.js +7 -0
- package/lib/strict-step-schedule.d.ts +2 -0
- package/lib/strict-step-schedule.js +1 -0
- package/lib/thinking-level.d.ts +11 -0
- package/lib/thinking-level.js +53 -8
- package/locale/de.json +6 -0
- package/locale/en.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/it.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/ko.json +6 -0
- package/locale/ru.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +152 -150
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
4.4.14: auto 档简单工具判定修复(issue #8)+ 可配置追加名单 `Config.simpleTools`。
|
|
3
|
+
|
|
4
|
+
## [4.4.14] — 2026-11-10 (auto 降档:命名空间剥离 + shell/pwsh 内置 + 可配置追加名单)
|
|
5
|
+
|
|
6
|
+
### 修复
|
|
7
|
+
- **issue #8:auto 档在带命名空间工具名宿主恒降不到 `low`**。`SIMPLE_TOOL_RE` 词首锚定导致 `ops_bash`/`ops_grep`/`ops_read_files` 一律判非简单 → `simpleRatio()` 恒 0 → 恒 `high`。新增 `TOOL_NAMESPACE_RE` 先剥 `ops_` 前缀再判(`ops_` 系 dsh-ops 插件族的工具前缀,非宿主通用包装)。
|
|
8
|
+
- **命令工具名缺项**:内置简单工具表补 `shell`/`pwsh`/`cmd`/`sh`(此前仅 `bash`/`terminal`),使以 `shell`/`pwsh` 为命令入口的宿主(dsh-bash-terminal-ts、官方 pwsh)短调用也能降 `low`。
|
|
9
|
+
|
|
10
|
+
### 新增
|
|
11
|
+
- **`Config.simpleTools`(追加名单,volatile 热生效)**:逗号/空格分隔的工具名并入内置匹配,同样先剥 `ops_` 再按词边界判定;设置面在「模型能力」块上方新增文本框;9 语 `card.simpleTools`/`card.simpleToolsHint`。
|
|
12
|
+
|
|
13
|
+
### 测试
|
|
14
|
+
- 新增 5 条:shell/pwsh→low、ops_shell→low、配置追加名→low、ops_web_fetch 经剥离→low、词边界仍守 codebase_reader 判 high。全量 234/234。
|
|
15
|
+
|
|
2
16
|
4.4.9: per-model PDF input declaration + host enumeration addendum for DSH 0.2.1-rc.4.
|
|
3
17
|
|
|
4
18
|
## [4.4.9] — 2026-10-28 (模型级 PDF 输入声明 + rc.4 枚举)
|
package/README.de.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Unterstützte DSH-Versionen**
|
|
23
23
|
>
|
|
24
|
-
> Diese Version
|
|
24
|
+
> Diese Version deklariert die DSH-Hosts als **eine begrenzte Spanne** — `>=0.1.0-rc.8 <0.3.0-0` — jeder rc einzeln aufgelistet, keine Bereiche oder Carets; die stabile 0.2.1 ist erst mit ihrem Erscheinen deklariert.
|
|
25
25
|
>
|
|
26
26
|
> | DSH-Version | Status | Hinweise |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.es.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Versiones de DSH admitidas**
|
|
23
23
|
>
|
|
24
|
-
> Esta versión
|
|
24
|
+
> Esta versión declara los hosts de DSH como **un rango acotado** — `>=0.1.0-rc.8 <0.3.0-0` — cada rc listado individualmente, sin rangos ni carets; la 0.2.1 estable no se declara hasta su publicación.
|
|
25
25
|
>
|
|
26
26
|
> | Versión de DSH | Estado | Notas |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.fr.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Prise en charge des versions de DSH**
|
|
23
23
|
>
|
|
24
|
-
> Cette version
|
|
24
|
+
> Cette version déclare les hôtes DSH comme **une plage bornée** — `>=0.1.0-rc.8 <0.3.0-0` — chaque rc listé individuellement, sans plages ni carets ; la 0.2.1 stable n'est pas déclarée avant sa sortie.
|
|
25
25
|
>
|
|
26
26
|
> | Version de DSH | Statut | Notes |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.it.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Versioni di DSH supportate**
|
|
23
23
|
>
|
|
24
|
-
> Questa versione
|
|
24
|
+
> Questa versione dichiara gli host DSH come **un intervallo delimitato** — `>=0.1.0-rc.8 <0.3.0-0` — ogni rc elencato singolarmente, senza range o caret; la 0.2.1 stabile non è dichiarata finché non esce.
|
|
25
25
|
>
|
|
26
26
|
> | Versione DSH | Stato | Note |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.ja.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
> **互換性について:** `0.6.0` には日本語(`ja`)と韓国語(`ko`)の辞書と選択項目が含まれていますが、現在の公式 DSH は `LocaleRuntime` 経由で `zh` と `en` のみを提供しています。純正 DSH で `ja` または `ko` を選択すると `locale "<id>" is not registered` で失敗します。公式 DSH が対応 locale ID を追加するまで利用できません。上級ユーザーは DSH フォークを保守し、`packages/client/locale/src/locale-settings.ts` の `LOCALE_IDS` と `packages/client/locale/src/client/index.ts` の `LOCALES` ラベルを更新し、コア辞書とテストを追加して再ビルド・実行してください。このプラグインだけでは DSH のグローバル locale 一覧を拡張できません。
|
|
35
35
|
|
|
36
|
-
> **バージョン互換:**
|
|
36
|
+
> **バージョン互換:** 本リリースは **DSH ホストを単一の有界レンジ**で宣言:`>=0.1.0-rc.8 <0.3.0-0`——rc ごとに単列、区間/caret 不使用。0.1.7-rc.1 の境界以降、DSH は命令的な設定登録(`settings.register` / `installSettingsSection`)とクライアントの `settingsScope` サービスおよびプラグイン別カードスロットを削除し、実行時に変更できる設定フィールドは schemastery スキーマで `.volatile()` 付きとし、設定フォームはホストがスキーマから自動生成(登録呼び出しもクライアント設定カードも不要)、プラグインは `loader/volatile-update` に従ってリクエストごとに最新値を読みます——4.0.x は 0.2.0-rc セグメントの同一宣言的表面を対象とします。0.1.7-rc.1〜<0.2.0 のホストでは 3.x ライン(3.4.3、npm dist-tag `dsh-0.1.7`)を、0.1.2–0.1.6 ホストではプラグイン 3.0.2 を使用してください。
|
|
37
37
|
|
|
38
38
|
> **バージョン範囲ポリシー:** 各互換ラインはホストを自ラインのセグメントに厳密に固定します。0.1.x ホスト向けのラインは `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x:`>=0.1.7-rc.1 <0.1.8-0`;3.0.x:`>=0.1.5-alpha.1 <0.1.6-0`;2.0.x:`>=0.1.2-alpha.1 <0.1.3-0`;1.0.0-beta:`>=0.1.0-rc.8 <0.1.2-alpha.1`)、0.2.x セグメント向けのラインは `>=0.2.0-rc.1 <0.2.1-0`(4.0.x:`>=0.2.0-rc.1 <0.2.1-0`)に従います。どのラインも開放的な上限を宣言しません。互換性レゾルバが未対応の新ホストセグメントにプラグインラインを誤マッチすることはありません。0.4.0–0.6.0 は dsh peer 宣言を一切持たないためインストールしないでください。
|
|
39
39
|
|
package/README.ko.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
> **호환성 참고:** `0.6.0`에는 일본어(`ja`)와 한국어(`ko`) 사전 및 선택 항목이 포함되어 있지만, 현재 공식 DSH는 `LocaleRuntime`을 통해 `zh`와 `en`만 제공합니다. 순정 DSH에서 `ja` 또는 `ko`를 선택하면 `locale "<id>" is not registered` 오류가 발생합니다. 공식 DSH가 해당 locale ID를 추가할 때까지 사용할 수 없습니다. 고급 사용자는 DSH 포크를 유지하면서 `packages/client/locale/src/locale-settings.ts`의 `LOCALE_IDS`와 `packages/client/locale/src/client/index.ts`의 `LOCALES` 라벨을 업데이트하고 핵심 사전과 테스트를 추가한 뒤 다시 빌드하여 실행할 수 있습니다. 이 플러그인만으로는 DSH의 전역 locale 목록을 확장할 수 없습니다.
|
|
35
35
|
|
|
36
|
-
> **버전 호환:** 본
|
|
36
|
+
> **버전 호환:** 본 릴리스는 **DSH 호스트를 단일 유계 범위**로 선언: `>=0.1.0-rc.8 <0.3.0-0` — rc별 단독 열거, 구간/caret 미사용. 0.1.7-rc.1 경계 이후 DSH는 명령형 설정 등록(`settings.register` / `installSettingsSection`)과 클라이언트 `settingsScope` 서비스 및 플러그인별 카드 슬롯을 제거했고, 런타임 조정 가능한 설정 필드는 schemastery 스키마에 `.volatile()`로 표시되며, 설정 폼은 호스트가 스키마에서 자동 생성(등록 호출도 클라이언트 설정 카드도 없음)하고, 플러그인은 `loader/volatile-update`에 따라 요청마다 최신 값을 읽습니다——4.0.x은 0.2.0-rc 세그먼트의 동일한 선언적 표면을 대상으로 합니다. 0.1.7-rc.1~<0.2.0 호스트에서는 3.x 라인(3.4.3, npm dist-tag `dsh-0.1.7`)을, 0.1.2–0.1.6 호스트에서는 플러그인 3.0.2을 사용하세요.
|
|
37
37
|
|
|
38
38
|
> **버전 범위 정책:** 각 호환 라인은 호스트를 자기 라인의 세그먼트에 엄격히 고정합니다. 0.1.x 호스트 대상 라인은 `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x: `>=0.1.7-rc.1 <0.1.8-0`; 3.0.x: `>=0.1.5-alpha.1 <0.1.6-0`; 2.0.x: `>=0.1.2-alpha.1 <0.1.3-0`; 1.0.0-beta: `>=0.1.0-rc.8 <0.1.2-alpha.1`)을, 0.2.x 세그먼트 대상 라인은 `>=0.2.0-rc.1 <0.2.1-0`(4.0.x: `>=0.2.0-rc.1 <0.2.1-0`)을 따릅니다. 어떤 라인도 열린 상한을 선언하지 않으므로, 호환성 리졸버가 플러그인 라인을 지원하지 않는 더 새 호스트 세그먼트에 잘못 매칭할 일이 없습니다. 0.4.0–0.6.0은 dsh peer 선언이 전혀 없으므로 설치하지 마세요.
|
|
39
39
|
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
> **▼ DSH version support**
|
|
35
35
|
>
|
|
36
|
-
> This release
|
|
36
|
+
> This release declares its DSH hosts as **one bounded range** — `>=0.1.0-rc.8 <0.3.0-0` — written identically at every write point (`engines.dsh` in `package.json`, `dsh.plugin.json`, and every `@deepseek-ai/dsh-*` peer). The upper bound carries the `-0` suffix on purpose: under `includePrerelease` a bare `<0.3.0` would still admit `0.3.0-rc.*`, i.e. silently claim the next, unverified host line. Any 0.2.x rc inside the window installs without a plugin republish.
|
|
37
37
|
>
|
|
38
38
|
> | DSH version | Status | Notes |
|
|
39
39
|
> | --- | --- | --- |
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
>
|
|
44
44
|
> The boundary is `0.1.7-rc.1`, where DSH removed the imperative settings registration (`settings.register` / `installSettingsSection`) and the client `settingsScope` service. Since that boundary the runtime-adjustable config fields are marked `.volatile()` in the schemastery schema, the host generates the settings form from that schema alone (no registration call, no client settings card), and the plugin reads the live values per request, driven by `loader/volatile-update`. The 3.1.x–3.4.x lines target the 0.1.7 declarative surface; the 4.0.x line is the same surface retargeted to the 0.2.0-rc segment.
|
|
45
45
|
|
|
46
|
-
> **Version-range policy:** every compatibility line pins its host segment tightly. Lines targeting 0.1.x hosts follow `>=0.1.x-rc.1 <0.1.(x+1)-0` (3.1.x: `>=0.1.7-rc.1 <0.1.8-0`; 3.0.x: `>=0.1.5-alpha.1 <0.1.6-0`; 2.0.x: `>=0.1.2-alpha.1 <0.1.3-0`; 1.0.0-beta: `>=0.1.0-rc.8 <0.1.2-alpha.1`); lines targeting the 0.2.x segment follow `>=0.2.0-rc.1 <0.2.1-0` (4.0.x: `>=0.2.0-rc.1 <0.2.1-0`). No line ever declares an open upper bound, so a compatibility resolver can never match a plugin line against a newer host segment it was not built for. 0.4.0–0.6.0 carried no dsh peer declarations at all and are effectively compatibility-untyped — do not install them. Since
|
|
46
|
+
> **Version-range policy:** every compatibility line pins its host segment tightly. Lines targeting 0.1.x hosts follow `>=0.1.x-rc.1 <0.1.(x+1)-0` (3.1.x: `>=0.1.7-rc.1 <0.1.8-0`; 3.0.x: `>=0.1.5-alpha.1 <0.1.6-0`; 2.0.x: `>=0.1.2-alpha.1 <0.1.3-0`; 1.0.0-beta: `>=0.1.0-rc.8 <0.1.2-alpha.1`); lines targeting the 0.2.x segment follow `>=0.2.0-rc.1 <0.2.1-0` (4.0.x: `>=0.2.0-rc.1 <0.2.1-0`). No line ever declares an open upper bound, so a compatibility resolver can never match a plugin line against a newer host segment it was not built for. 0.4.0–0.6.0 carried no dsh peer declarations at all and are effectively compatibility-untyped — do not install them. **Since 4.4.x the 4.x line declares a single bounded range `>=0.1.0-rc.8 <0.3.0-0`** (engines and every dsh peer identical) instead of naming rcs one by one — the range formulas above describe the historical per-segment lines.
|
|
47
47
|
|
|
48
48
|
> **Compatibility note:** Version `0.6.0` includes Japanese (`ja`) and Korean (`ko`) dictionaries and selector entries, but the current official DSH releases expose only `zh` and `en` through `LocaleRuntime`. On stock DSH, selecting `ja` or `ko` fails with `locale "<id>" is not registered`. These languages will work after official DSH adds the locale IDs. Advanced users can use a DSH fork that updates `packages/client/locale/src/locale-settings.ts` (`LOCALE_IDS`) and `packages/client/locale/src/client/index.ts` (`LOCALES` labels), together with the corresponding core dictionaries and tests, then rebuild and run the forked DSH. Changing this plugin alone cannot extend DSH's global locale list.
|
|
49
49
|
|
package/README.ru.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Поддерживаемые версии DSH**
|
|
23
23
|
>
|
|
24
|
-
> Этот релиз
|
|
24
|
+
> Этот релиз объявляет хосты DSH как **один ограниченный диапазон** — `>=0.1.0-rc.8 <0.3.0-0` — каждый rc перечислен отдельно, без диапазонов и carets; стабильная 0.2.1 не объявляется до её выхода.
|
|
25
25
|
>
|
|
26
26
|
> | Версия DSH | Статус | Примечания |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.zh.md
CHANGED
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
|
|
34
34
|
> **兼容性说明:** `0.6.0` 已包含日本語(`ja`)和한국어(`ko`)字典及选择项,但当前官方 DSH 只通过 `LocaleRuntime` 提供 `zh` 和 `en`。在原版 DSH 中选择 `ja` 或 `ko` 会失败,并提示 `locale "<id>" is not registered`。需要等待官方 DSH 增加对应 locale ID 后才能正常使用。高级用户可以维护 DSH fork,在 `packages/client/locale/src/locale-settings.ts` 更新 `LOCALE_IDS`,在 `packages/client/locale/src/client/index.ts` 更新 `LOCALES` 标签,并补齐核心字典和测试,然后重新构建并运行 fork 版本。仅修改本插件无法扩展 DSH 的全局 locale 列表。
|
|
35
35
|
|
|
36
|
-
> **版本兼容:**
|
|
36
|
+
> **版本兼容:** 本版本把 DSH 宿主声明为**一条有界区间** —— `>=0.1.0-rc.8 <0.3.0-0`,并在每处写点写同一个串(`package.json` 的 `engines.dsh`、`dsh.plugin.json`、以及每个 `@deepseek-ai/dsh-*` peer)。上限带 `-0` 是有意为之:在 `includePrerelease` 下裸 `<0.3.0` 仍会放进 `0.3.0-rc.*`,等于悄悄声明支持下一条未验证宿主线。区间内的 0.2.x 任意 rc 无需重发插件即可安装。自 0.1.7-rc.1 边界起,DSH 移除了命令式设置注册(`settings.register` / `installSettingsSection`)与客户端 `settingsScope` 服务及每插件卡片槽位,运行时调整的配置字段在 schemastery schema 中标 `.volatile()`,设置表单由宿主按 schema 自动生成(无注册调用、无客户端设置卡片),插件按请求读取实时值(由 `loader/volatile-update` 驱动)——4.0.x 面向 0.2.0-rc 区段的同一声明式表面;0.1.7-rc.1 至 <0.2.0 的宿主请使用 3.x 线(3.4.3,npm dist-tag `dsh-0.1.7`),0.1.2–0.1.6 宿主请继续使用插件 3.0.2。
|
|
37
37
|
|
|
38
|
-
> **版本范围约定:** 每条兼容线都把宿主钉在本线自己的区段内。面向 0.1.x 宿主的线遵循 `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x:`>=0.1.7-rc.1 <0.1.8-0`;3.0.x:`>=0.1.5-alpha.1 <0.1.6-0`;2.0.x:`>=0.1.2-alpha.1 <0.1.3-0`;1.0.0-beta:`>=0.1.0-rc.8 <0.1.2-alpha.1`);面向 0.2.x 区段的线遵循 `>=0.2.0-rc.1 <0.2.1-0`(4.0.x:`>=0.2.0-rc.1 <0.2.1-0`)。任何线都不声明开放的上限,兼容性解析器因此绝不会把插件线匹配到它并未适配的更新宿主区段。0.4.0–0.6.0 完全没有声明 dsh peer
|
|
38
|
+
> **版本范围约定:** 每条兼容线都把宿主钉在本线自己的区段内。面向 0.1.x 宿主的线遵循 `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x:`>=0.1.7-rc.1 <0.1.8-0`;3.0.x:`>=0.1.5-alpha.1 <0.1.6-0`;2.0.x:`>=0.1.2-alpha.1 <0.1.3-0`;1.0.0-beta:`>=0.1.0-rc.8 <0.1.2-alpha.1`);面向 0.2.x 区段的线遵循 `>=0.2.0-rc.1 <0.2.1-0`(4.0.x:`>=0.2.0-rc.1 <0.2.1-0`)。任何线都不声明开放的上限,兼容性解析器因此绝不会把插件线匹配到它并未适配的更新宿主区段。0.4.0–0.6.0 完全没有声明 dsh peer 依赖,属于无兼容性标注版本——不要安装。**自 4.4.x 起,4.x 线改用单一有界区间 `>=0.1.0-rc.8 <0.3.0-0`**(engines 与每个 dsh peer 同串),不再逐 rc 点名;上面的区间公式仅描述历史上的分区段线。
|
|
39
39
|
|
|
40
40
|
在多步工具链任务中,模型在**每一次工具调用前**都会重新思考——而这个思考过程占据了绝大部分墙钟时间(一个 50 步的 agent 任务可能在工具之间花费数分钟思考)。`dsh-thinking-levels` 接入 dsh 每一步都会重新解析的 `agent/request` waterfall(以 `prepend` 置于最外层,避免被会话模型选择覆盖),向下一次模型请求注入思考档位。
|
|
41
41
|
|
package/dsh.plugin.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "dsh-external/dsh-thinking-levels",
|
|
3
|
-
"version": "4.4.
|
|
4
|
-
"main": "./lib/index.js",
|
|
5
|
-
"description": "thinking-level (reasoning_effort) control — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
|
|
6
|
-
"engines": {
|
|
7
|
-
"dsh": ">=0.1.
|
|
8
|
-
},
|
|
9
|
-
"contributes": {
|
|
10
|
-
"tools": [],
|
|
11
|
-
"skills": []
|
|
12
|
-
},
|
|
13
|
-
"client": {
|
|
14
|
-
"main": "./lib/client.js"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "dsh-external/dsh-thinking-levels",
|
|
3
|
+
"version": "4.4.15",
|
|
4
|
+
"main": "./lib/index.js",
|
|
5
|
+
"description": "thinking-level (reasoning_effort) control — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
|
|
6
|
+
"engines": {
|
|
7
|
+
"dsh": ">=0.1.0-rc.8 <0.3.0-0"
|
|
8
|
+
},
|
|
9
|
+
"contributes": {
|
|
10
|
+
"tools": [],
|
|
11
|
+
"skills": []
|
|
12
|
+
},
|
|
13
|
+
"client": {
|
|
14
|
+
"main": "./lib/client.js"
|
|
15
|
+
}
|
|
16
|
+
}
|
package/lib/client.js
CHANGED
|
@@ -29,6 +29,8 @@ window.__ModuleLoader__.load({
|
|
|
29
29
|
"card.allowDowngrade": "允许降档(auto 可降至 low)",
|
|
30
30
|
"card.allowUpgrade": "允许升档(auto 可升至 max)",
|
|
31
31
|
"card.defaultPricing": "目录外定价",
|
|
32
|
+
"card.simpleTools": "简单工具白名单(auto 降档判定)",
|
|
33
|
+
"card.simpleToolsHint": "逗号或空格分隔的工具名,追加进内置的「廉价确定性工具」判定(如 shell、pwsh、web_fetch)。auto 档据此把仅由这类短小调用构成的步骤降到低档;内置已覆盖 bash/terminal/shell/pwsh 等,此处仅补充宿主专有工具名。",
|
|
32
34
|
"card.defaultPricingHint": "定价目录未收录的模型(含其他插件接入的网关型号)如何计价;目录内模型始终按自己的目录价。改价只影响后续新账。",
|
|
33
35
|
"card.defaultPricing.estimate": "estimate — 典型价兜底估算(未校准·仅供参考,默认)",
|
|
34
36
|
"card.defaultPricing.cn": "cn — 人民币校准档(目录外仍按典型价估算)",
|
|
@@ -131,6 +133,8 @@ window.__ModuleLoader__.load({
|
|
|
131
133
|
"card.allowDowngrade": "Allow downgrade (auto may drop to low)",
|
|
132
134
|
"card.allowUpgrade": "Allow upgrade (auto may lift to max)",
|
|
133
135
|
"card.defaultPricing": "Off-catalog pricing",
|
|
136
|
+
"card.simpleTools": "Simple-tool allowlist (auto downgrade)",
|
|
137
|
+
"card.simpleToolsHint": "Comma- or space-separated tool names added to the built-in \"cheap and deterministic tool\" set (e.g. shell, pwsh, web_fetch). In auto, a step made only of these short calls drops to low. The built-in set already covers bash/terminal/shell/pwsh; use this for host-specific names.",
|
|
134
138
|
"card.defaultPricingHint": "How to price models the catalog does not list (including gateway models brought in by other plugins); catalogued models always use their own rates. Pricing changes only affect new accounting from now on.",
|
|
135
139
|
"card.defaultPricing.estimate": "estimate — typical-price fallback (uncalibrated, reference only; default)",
|
|
136
140
|
"card.defaultPricing.cn": "cn — CNY calibration tier (off-catalog still falls back to the typical price)",
|
|
@@ -233,6 +237,8 @@ window.__ModuleLoader__.load({
|
|
|
233
237
|
"card.allowDowngrade": "降格を許可(auto は low まで下げられる)",
|
|
234
238
|
"card.allowUpgrade": "昇格を許可(auto は max まで上げられる)",
|
|
235
239
|
"card.defaultPricing": "カタログ外モデルの価格",
|
|
240
|
+
"card.simpleTools": "簡易ツール許可リスト(auto ダウングレード)",
|
|
241
|
+
"card.simpleToolsHint": "カンマまたはスペース区切りのツール名を内蔵の「安価・決定論的ツール」判定に追加します(例: shell、pwsh、web_fetch)。auto ではこれらの短い呼び出しのみのステップは low に下がります。内蔵集合は既に bash/terminal/shell/pwsh を含むため、ここではホスト固有の名前を補完してください。",
|
|
236
242
|
"card.defaultPricingHint": "価格カタログに未登録のモデル(他プラグイン経由のゲートウェイモデル含む)の計算方法。登録済みモデルは常にカタログ価格を使用。価格変更は以降の新規記録のみ影響。",
|
|
237
243
|
"card.defaultPricing.estimate": "estimate — 典型価格でフォールバック見積り(未校正・参考値、デフォルト)",
|
|
238
244
|
"card.defaultPricing.cn": "cn — 人民元キャリブレーション(カタログ外は典型価格の見積りのまま)",
|
|
@@ -335,6 +341,8 @@ window.__ModuleLoader__.load({
|
|
|
335
341
|
"card.allowDowngrade": "다운그레이드 허용(auto가 low까지 내릴 수 있음)",
|
|
336
342
|
"card.allowUpgrade": "업그레이드 허용(auto가 max까지 올릴 수 있음)",
|
|
337
343
|
"card.defaultPricing": "카탈로그 외 과금",
|
|
344
|
+
"card.simpleTools": "간단한 도구 허용 목록(auto 강등)",
|
|
345
|
+
"card.simpleToolsHint": "쉼표 또는 공백으로 구분한 도구 이름을 내장 \"저렴하고 결정적인 도구\" 판정에 추가합니다(예: shell, pwsh, web_fetch). auto에서는 이런 짧은 호출만으로 구성된 단계가 low로 내려갑니다. 내장 목록은 이미 bash/terminal/shell/pwsh를 포함하므로 호스트 고유 이름을 보충하세요.",
|
|
338
346
|
"card.defaultPricingHint": "가격 카탈로그에 없는 모델(다른 플러그인으로 유입된 게이트웨이 모델 포함)의 과금 방식. 카탈로그 등재 모델은 항상 자체 등재가 사용. 가격 변경은 이후 신규 기록에만 반영.",
|
|
339
347
|
"card.defaultPricing.estimate": "estimate — 전형가 폴백 추정(미교정·참고용, 기본)",
|
|
340
348
|
"card.defaultPricing.cn": "cn — 위안화 보정 등급(카탈로그 외는 여전히 전형가 추정)",
|
|
@@ -437,6 +445,8 @@ window.__ModuleLoader__.load({
|
|
|
437
445
|
"card.allowDowngrade": "Autoriser la rétrogradation (auto peut descendre à low)",
|
|
438
446
|
"card.allowUpgrade": "Autoriser la montée (auto peut monter à max)",
|
|
439
447
|
"card.defaultPricing": "Tarification hors catalogue",
|
|
448
|
+
"card.simpleTools": "Liste d'outils simples (rétrogradation auto)",
|
|
449
|
+
"card.simpleToolsHint": "Noms d'outils séparés par virgule ou espace, ajoutés à l'ensemble interne des « outils bon marché et déterministes » (ex. shell, pwsh, web_fetch). En mode auto, une étape composée uniquement de ces appels courts passe à low. L'ensemble interne couvre déjà bash/terminal/shell/pwsh ; utilisez ce champ pour les noms propres à l'hôte.",
|
|
440
450
|
"card.defaultPricingHint": "Comment tarifer les modèles absents du catalogue (y compris les modèles de passerelle apportés par d'autres plugins) ; les modèles catalogués gardent leurs tarifs. Les changements ne touchent que les nouvelles lignes.",
|
|
441
451
|
"card.defaultPricing.estimate": "estimate — estimation par prix type (non calibrée, à titre indicatif ; par défaut)",
|
|
442
452
|
"card.defaultPricing.cn": "cn — palier calibré CNY (hors catalogue : estimation au prix type)",
|
|
@@ -539,6 +549,8 @@ window.__ModuleLoader__.load({
|
|
|
539
549
|
"card.allowDowngrade": "Herabstufung erlauben (auto kann auf low fallen)",
|
|
540
550
|
"card.allowUpgrade": "Hochstufung erlauben (auto kann auf max steigen)",
|
|
541
551
|
"card.defaultPricing": "Preis außerhalb des Katalogs",
|
|
552
|
+
"card.simpleTools": "Allowlist einfacher Tools (Auto-Downgrade)",
|
|
553
|
+
"card.simpleToolsHint": "Durch Komma oder Leerzeichen getrennte Tool-Namen, die der internen Menge „billige und deterministische Tools“ hinzugefügt werden (z. B. shell, pwsh, web_fetch). Im Auto-Modus sinkt ein Schritt, der nur aus diesen kurzen Aufrufen besteht, auf low. Die interne Menge enthält bereits bash/terminal/shell/pwsh; nutzen Sie dieses Feld für hostspezifische Namen.",
|
|
542
554
|
"card.defaultPricingHint": "Bepreisung von Modellen ohne Katalogeintrag (inkl. Gateway-Modelle anderer Plugins); katalogisierte Modelle nutzen immer ihre Katalogpreise. Änderungen wirken nur auf neue Buchungen.",
|
|
543
555
|
"card.defaultPricing.estimate": "estimate — Schätzung über Typicalpreis (unkalibriert, nur Referenz; Standard)",
|
|
544
556
|
"card.defaultPricing.cn": "cn — Kalibrierungsstufe CNY (ohne Katalogeintrag weiterhin Typicalpreis-Schätzung)",
|
|
@@ -641,6 +653,8 @@ window.__ModuleLoader__.load({
|
|
|
641
653
|
"card.allowDowngrade": "Consenti declassamento (auto può scendere a low)",
|
|
642
654
|
"card.allowUpgrade": "Consenti avanzamento (auto può salire a max)",
|
|
643
655
|
"card.defaultPricing": "Prezzi fuori catalogo",
|
|
656
|
+
"card.simpleTools": "Elenco strumenti semplici (downgrade automatico)",
|
|
657
|
+
"card.simpleToolsHint": "Nomi di strumenti separati da virgole o spazi, aggiunti all'insieme interno degli \"strumenti economici e deterministici\" (es. shell, pwsh, web_fetch). In modalità auto, un passo composto solo da queste chiamate brevi scende a low. L'insieme interno copre già bash/terminal/shell/pwsh; usa questo campo per nomi specifici dell'host.",
|
|
644
658
|
"card.defaultPricingHint": "Come fatturare i modelli assenti dal catalogo (inclusi i modelli gateway di altri plugin); i modelli in catalogo usano sempre i propri prezzi. Le modifiche valgono solo per le nuove registrazioni.",
|
|
645
659
|
"card.defaultPricing.estimate": "estimate — stima a prezzo tipico (non calibrata, solo indicativa; predefinito)",
|
|
646
660
|
"card.defaultPricing.cn": "cn — livello calibrato CNY (fuori catalogo resta la stima a prezzo tipico)",
|
|
@@ -743,6 +757,8 @@ window.__ModuleLoader__.load({
|
|
|
743
757
|
"card.allowDowngrade": "Разрешить понижение (auto может снизить до low)",
|
|
744
758
|
"card.allowUpgrade": "Разрешить повышение (auto может поднять до max)",
|
|
745
759
|
"card.defaultPricing": "Внекаталожное ценообразование",
|
|
760
|
+
"card.simpleTools": "Список простых инструментов (понижение auto)",
|
|
761
|
+
"card.simpleToolsHint": "Имена инструментов через запятую или пробел, добавляемые во встроенный набор «дешёвых и детерминированных инструментов» (напр. shell, pwsh, web_fetch). В режиме auto шаг из таких коротких вызовов понижается до low. Встроенный набор уже включает bash/terminal/shell/pwsh; используйте это поле для имён, специфичных для хоста.",
|
|
746
762
|
"card.defaultPricingHint": "Как считать модели, которых нет в каталоге цен (включая шлюзовые модели из других плагинов); каталожные модели всегда считаются по своему прайсу. Изменения влияют только на новые записи.",
|
|
747
763
|
"card.defaultPricing.estimate": "estimate — оценка по типовой цене (не откалибровано, справочно; по умолчанию)",
|
|
748
764
|
"card.defaultPricing.cn": "cn — калибровка CNY (вне каталога всё равно оценка по типовой цене)",
|
|
@@ -845,6 +861,8 @@ window.__ModuleLoader__.load({
|
|
|
845
861
|
"card.allowDowngrade": "Permitir degradación (auto puede bajar a low)",
|
|
846
862
|
"card.allowUpgrade": "Permitir mejora (auto puede subir a max)",
|
|
847
863
|
"card.defaultPricing": "Precio fuera del catálogo",
|
|
864
|
+
"card.simpleTools": "Lista de herramientas simples (degradación auto)",
|
|
865
|
+
"card.simpleToolsHint": "Nombres de herramientas separados por comas o espacios, añadidos al conjunto interno de \"herramientas baratas y deterministas\" (p. ej. shell, pwsh, web_fetch). En modo auto, un paso compuesto solo por estas llamadas cortas baja a low. El conjunto interno ya cubre bash/terminal/shell/pwsh; use este campo para nombres propios del host.",
|
|
848
866
|
"card.defaultPricingHint": "Cómo facturar los modelos sin entrada en el catálogo (incluidos modelos de puerta de enlace de otros plugins); los modelos catalogados usan siempre sus precios. Los cambios solo afectan a registros nuevos.",
|
|
849
867
|
"card.defaultPricing.estimate": "estimate — estimación a precio típico (sin calibrar, solo referencia; predeterminado)",
|
|
850
868
|
"card.defaultPricing.cn": "cn — nivel calibrado en CNY (fuera del catálogo sigue siendo estimación a precio típico)",
|
|
@@ -4826,6 +4844,7 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4826
4844
|
const value = snapshot.value ?? {};
|
|
4827
4845
|
const [pendingTl, setPendingTl] = (0, react.useState)({});
|
|
4828
4846
|
const [writeErrorTl, setWriteErrorTl] = (0, react.useState)(null);
|
|
4847
|
+
const [simpleToolsText, setSimpleToolsText] = (0, react.useState)((value.simpleTools ?? []).join(", "));
|
|
4829
4848
|
const viewValue = {
|
|
4830
4849
|
...value,
|
|
4831
4850
|
...pendingTl
|
|
@@ -5053,6 +5072,36 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
5053
5072
|
}, option))
|
|
5054
5073
|
})]
|
|
5055
5074
|
}),
|
|
5075
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5076
|
+
style: fieldStyle,
|
|
5077
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5078
|
+
style: rowStyle,
|
|
5079
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
5080
|
+
htmlFor: "plugin-config-thinking-levels-simple-tools",
|
|
5081
|
+
style: labelStyle,
|
|
5082
|
+
children: t("card.simpleTools")
|
|
5083
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
5084
|
+
id: "plugin-config-thinking-levels-simple-tools",
|
|
5085
|
+
type: "text",
|
|
5086
|
+
style: controlStyle,
|
|
5087
|
+
disabled: readonly,
|
|
5088
|
+
value: simpleToolsText,
|
|
5089
|
+
placeholder: "shell, pwsh, web_fetch",
|
|
5090
|
+
onChange: (event) => {
|
|
5091
|
+
const raw = event.currentTarget.value;
|
|
5092
|
+
setSimpleToolsText(raw);
|
|
5093
|
+
const parsed = Array.from(new Set(raw.split(/[,\s]+/).map((token) => token.trim()).filter((token) => token !== "")));
|
|
5094
|
+
writeTl("simpleTools", parsed);
|
|
5095
|
+
}
|
|
5096
|
+
})]
|
|
5097
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
5098
|
+
style: {
|
|
5099
|
+
...hintStyle,
|
|
5100
|
+
margin: "2px 0 10px"
|
|
5101
|
+
},
|
|
5102
|
+
children: t("card.simpleToolsHint")
|
|
5103
|
+
})]
|
|
5104
|
+
}),
|
|
5056
5105
|
writeErrorTl !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
5057
5106
|
style: {
|
|
5058
5107
|
margin: "8px 0 0",
|