dsh-thinking-levels 4.2.1 → 4.3.0

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 CHANGED
@@ -11,34 +11,49 @@
11
11
  - [Список изменений на русском](./CHANGELOG.ru.md)
12
12
  - [Changelog en español](./CHANGELOG.es.md)
13
13
 
14
- ## [4.2.1] — 2026-10-12
14
+ ## [4.3.0] — 2026-10-17
15
15
 
16
- ### 変更 — stable への昇格(4.2.0-beta.29 からコード変更なし)
16
+ ### 追加
17
+ - 価格カタログ(src/price-catalog.ts):29 モデル x 地域。DeepSeek V4.1-Flash / V4-Flash / V4-Pro は公式のピーク/オフピーク2段(北京 09-12・14-18 がピーク、2026-08-17 施行)、GLM / Kimi / Qwen / Doubao / MiniMax / Ernie は一律価格。各項目は百万トークンあたりの3価格(非キャッシュ入力 / キャッシュヒット入力 / 出力)を保持し、asOf と出典を明記。海外(USD)枠は構造上予約するも公式確認まで意図的に空(数値の捏造なし)。
18
+ - defaultPricing 設定(cn / global / custom / off、既定 off):カタログ外モデルは Flash 価格で估算せず「未計価」と表示。
19
+ - 2026 国務院祝日/振替修正表(39 エントリ、dsh-session-guard と同源):振替出勤の週末は平日としてピーク判定、法定祝日は終日オフピーク。表外年は週末のみの劣化動作。
17
20
 
18
- - **4.2.0-beta 系を stable に昇格。** beta.18 → beta.29 の全内容(ファミリーセクショ
19
- ンのクロスバージョン対応、タブ列の折り返し、旧 plugins ページカードの退役、
20
- 0.1.0-rc.8 コールドセッション修正)。`engines.dsh` は 11 ホスト系の列挙を維持し、
21
- npm の `latest` チャネルはマルチライン stable を指すようになった。
22
- - **二重マニフェストの乖離を修正:** `dsh.plugin.json` が `4.2.0-beta.28` のまま
23
- だった(beta.29 の bump もれ)→ 両マニフェストとも 4.2.1 に統一。
24
-
25
- ## [4.2.0-beta.28] — 2026-10-08
26
-
27
- ### 削除
28
-
29
- - **旧 plugins ページの項目カード(`settings.plugin.item`)を退役。** ≤0.1.5 の
30
- plugins ページでファミリータブカードと重複していたため、起子插件設定
31
- ファミリータブが全ホスト世代で唯一の設定面となった。
32
-
33
- ## [4.2.0-beta.27] — 2026-10-08
21
+ ### 変更
22
+ - プロジェクション stateVersion 1 -> 2:usage サンプルごとに確定時の計価レシートを state に永続化、同一 step 置換は記録値を減算(费率混在再計算と負値を排除)、会話/ターン集計は通貨別バケット。アップグレード直後に旧セッションは現行カタログで再折りたたみされ総額が一度変動、以降の設定変更は新規サンプルのみ影响。
23
+ - 請求ポップオーバー:通貨別記号(¥ / $、不明は ISO コード)、flat/-null の正直な表示、「<model> で計価」はカタログ名から、混合通貨会話は合計せず通貨別行。
34
24
 
35
25
  ### 修正
26
+ - settings.describe() の形状正規化(進程内配列 vs RPC エンベロープ {namespaces:[...]}):想定外形状は例外を投げず欠扱い(静默冻结クラスを解消)。
27
+ - プロジェクション登録を try/catch で保護:請求单元的失败不再毒化插件整体或冷会话历史加载。
36
28
 
37
- - **ファミリータブ列がコンテナ幅で折り返される**ように:tablist の
38
- `flexWrap: 'nowrap'` + `overflowX: 'auto'`(063d9fd の単一行ストリップ設計)を
39
- `wrap` に変更し、ボタンから `flex: 0 0 auto` を除去。contributor タブが 7+ に
40
- 増えても横スクロールバーではなく次の行に流れます(≤0.1.7 全世代)。
41
-
29
+ ## [4.2.1] — 2026-10-12
30
+
31
+ ### 変更 — stable への昇格(4.2.0-beta.29 からコード変更なし)
32
+
33
+ - **4.2.0-beta 系を stable に昇格。** beta.18 → beta.29 の全内容(ファミリーセクショ
34
+ ンのクロスバージョン対応、タブ列の折り返し、旧 plugins ページカードの退役、
35
+ 0.1.0-rc.8 コールドセッション修正)。`engines.dsh` は 11 ホスト系の列挙を維持し、
36
+ npm の `latest` チャネルはマルチライン stable を指すようになった。
37
+ - **二重マニフェストの乖離を修正:** `dsh.plugin.json` が `4.2.0-beta.28` のまま
38
+ だった(beta.29 の bump もれ)→ 両マニフェストとも 4.2.1 に統一。
39
+
40
+ ## [4.2.0-beta.28] — 2026-10-08
41
+
42
+ ### 削除
43
+
44
+ - **旧 plugins ページの項目カード(`settings.plugin.item`)を退役。** ≤0.1.5 の
45
+ plugins ページでファミリータブカードと重複していたため、起子插件設定
46
+ ファミリータブが全ホスト世代で唯一の設定面となった。
47
+
48
+ ## [4.2.0-beta.27] — 2026-10-08
49
+
50
+ ### 修正
51
+
52
+ - **ファミリータブ列がコンテナ幅で折り返される**ように:tablist の
53
+ `flexWrap: 'nowrap'` + `overflowX: 'auto'`(063d9fd の単一行ストリップ設計)を
54
+ `wrap` に変更し、ボタンから `flex: 0 0 auto` を除去。contributor タブが 7+ に
55
+ 増えても横スクロールバーではなく次の行に流れます(≤0.1.7 全世代)。
56
+
42
57
  ## [4.2.0-beta.26] — 2026-10-08
43
58
 
44
59
  ### 追加 — クロスバージョン・ファミリーセクション(beta.18 → beta.26)
package/CHANGELOG.ko.md CHANGED
@@ -11,34 +11,49 @@
11
11
  - [Список изменений на русском](./CHANGELOG.ru.md)
12
12
  - [Changelog en español](./CHANGELOG.es.md)
13
13
 
14
- ## [4.2.1] — 2026-10-12
14
+ ## [4.3.0] — 2026-10-17
15
15
 
16
- ### 변경 — 안정 버전 승격 (4.2.0-beta.29 이후 코드 변경 없음)
16
+ ### 추가
17
+ - 가격 카탈로그(src/price-catalog.ts): 29개 모델 x 지역 — DeepSeek V4.1-Flash / V4-Flash / V4-Pro는 공식 봉우/곡선 2단(베이징 09-12, 14-18 봉우리; 2026-08-17 시행), GLM / Kimi / Qwen / Doubao / MiniMax / Ernie는 평일 가격. 각 항목은 백만 토큰당 3개 슬롯(비캐시 입력 / 캐시 히트 입력 / 출력)과 asOf + 출처 표기를 가짐. 해외(USD) 항목은 구조만 확보, 공식 페이지 검증 전까지 의도적 비움(날조 없음).
18
+ - defaultPricing 설정(cn / global / custom / off, 기본 off): 카탈로그 밖 모델은 더 이상 Flash 가격으로 추정하지 않고 "미과금"으로 표시.
19
+ - 2026 국무원 공휴/보근 수정표(39항목, dsh-session-guard 와 동일 출처): 보근 주말은 평일처럼 봉우리의 대상, 법정 공휴는 종일 곡선. 표 밖 연도는 주말 규칙으로 축퇴.
17
20
 
18
- - **4.2.0-beta 라인을 안정 버전으로 승격.** beta.18 → beta.29 전체 내용(세대 간
19
- 패밀리 섹션, 탭 스트립 줄바꿈, 구 plugins 페이지 카드 퇴역, 0.1.0-rc.8 콜드
20
- 세션 수정) 포함. `engines.dsh`는 11개 호스트 라인 열거를 유지하며, npm
21
- `latest` 채널이 이제 멀티라인 안정 버전을 가리킵니다.
22
- - **이중 매니페스트 불일치 수정:** `dsh.plugin.json`이 `4.2.0-beta.28`에
23
- 머물러 있었음(beta.29 bump 누락) → 두 매니페스트 모두 4.2.1로 통일.
24
-
25
- ## [4.2.0-beta.28] — 2026-10-08
26
-
27
- ### 제거
28
-
29
- - **구 plugins 페이지 항목 카드(`settings.plugin.item`) 퇴역.** ≤0.1.5 plugins
30
- 페이지에서 패밀리 탭 카드와 중복되었음 — 이제 起子插件設定 패밀리 탭이 모든
31
- 호스트 세대의 유일한 설정면이다.
32
-
33
- ## [4.2.0-beta.27] — 2026-10-08
21
+ ### 변경
22
+ - 프로젝션 stateVersion 1 -> 2: 사용 샘플에 절입 시점 계산 전표를 영속화, 동일 단계 교체는 기록값 차감(혼합 요율 재계산·음수 제거), 합계는 통화별 버킷. 업그레이드 후 옛 세션은 현재 카탈로그로 재절입되어 총액이 한 번 변동, 이후 설정 변경은 신규 샘플에만 반영.
23
+ - 과금 팝오버: 통화별 기호(¥ / $, 미지는 ISO 코드), flat/null 정직한 표시, "모댔 기반 과금", 혼통화 세션은 합산 대신 통화별 행.
34
24
 
35
25
  ### 수정
26
+ - settings.describe() 모양 정규화(프로세스 내 배열 vs RPC ​​{namespaces:[...]} 봉투): 이상 모양은 예외 대신 결측 처리(조용한 동결 classe 해소).
27
+ - 프로젝션 등록 try/catch 보호: 과금 단위 실패가 플러그인 전체/콜드 세션 히스토리를 오염시키지 않음.
36
28
 
37
- - **패밀리 탭 행이 컨테이너 폭에서 줄바꿈**: tablist의 `flexWrap: 'nowrap'` +
38
- `overflowX: 'auto'`(063d9fd의 단일 행 스트립 설계)를 `wrap`으로 바꾸고 버튼에서
39
- `flex: 0 0 auto` 제거. contributor 탭이 7개 이상이어도 가로 스크롤바 대신 다음
40
- 행으로 흐릅니다(≤0.1.7 전 세대).
41
-
29
+ ## [4.2.1] — 2026-10-12
30
+
31
+ ### 변경 — 안정 버전 승격 (4.2.0-beta.29 이후 코드 변경 없음)
32
+
33
+ - **4.2.0-beta 라인을 안정 버전으로 승격.** beta.18 → beta.29 전체 내용(세대 간
34
+ 패밀리 섹션, 탭 스트립 줄바꿈, 구 plugins 페이지 카드 퇴역, 0.1.0-rc.8 콜드
35
+ 세션 수정) 포함. `engines.dsh`는 11개 호스트 라인 열거를 유지하며, npm
36
+ `latest` 채널이 이제 멀티라인 안정 버전을 가리킵니다.
37
+ - **이중 매니페스트 불일치 수정:** `dsh.plugin.json`이 `4.2.0-beta.28`에
38
+ 머물러 있었음(beta.29 bump 누락) → 두 매니페스트 모두 4.2.1로 통일.
39
+
40
+ ## [4.2.0-beta.28] — 2026-10-08
41
+
42
+ ### 제거
43
+
44
+ - **구 plugins 페이지 항목 카드(`settings.plugin.item`) 퇴역.** ≤0.1.5 plugins
45
+ 페이지에서 패밀리 탭 카드와 중복되었음 — 이제 起子插件設定 패밀리 탭이 모든
46
+ 호스트 세대의 유일한 설정면이다.
47
+
48
+ ## [4.2.0-beta.27] — 2026-10-08
49
+
50
+ ### 수정
51
+
52
+ - **패밀리 탭 행이 컨테이너 폭에서 줄바꿈**: tablist의 `flexWrap: 'nowrap'` +
53
+ `overflowX: 'auto'`(063d9fd의 단일 행 스트립 설계)를 `wrap`으로 바꾸고 버튼에서
54
+ `flex: 0 0 auto` 제거. contributor 탭이 7개 이상이어도 가로 스크롤바 대신 다음
55
+ 행으로 흐릅니다(≤0.1.7 전 세대).
56
+
42
57
  ## [4.2.0-beta.26] — 2026-10-08
43
58
 
44
59
  ### 추가 — 크로스 버전 패밀리 섹션 (beta.18 → beta.26)
package/CHANGELOG.md CHANGED
@@ -11,6 +11,22 @@ All notable changes to `dsh-thinking-levels` are documented here.
11
11
  - [Список изменений на русском](./CHANGELOG.ru.md)
12
12
  - [Changelog en español](./CHANGELOG.es.md)
13
13
 
14
+ ## [4.3.0] — 2026-10-17
15
+
16
+ ### Added
17
+ - Price catalog (src/price-catalog.ts): 29 model entries x region — DeepSeek V4.1-Flash / V4-Flash / V4-Pro carry the official peak/off-peak pairs (Beijing 09-12 & 14-18 peak, schedule effective 2026-08-17); GLM / Kimi / Qwen / Doubao / MiniMax / Ernie carry flat CN rates. Every entry prices three slots per million tokens — non-cached input / cache-hit input / output — and ships asOf + source annotations. Overseas (USD) slots are structurally present but intentionally left empty until official pages can be re-verified: no fabricated numbers.
18
+ - defaultPricing setting (cn / global / custom / off, default off): models outside the catalog are no longer estimated at Flash rates — they render as unpriced instead.
19
+ - 2026 State Council holiday/make-up correction table (39 rows, shared provenance with dsh-session-guard): make-up-workday weekends count as workdays for peak gating; statutory holidays are off-peak all day. Unknown years degrade to natural-weekend rules.
20
+
21
+ ### Changed
22
+ - Projection stateVersion 1 -> 2: each usage sample stores a pricing receipt settled at fold time; same-step replacement subtracts the recorded values (no mixed-rate recomputation, no negative ledgers); session/turn totals are bucketed per currency. After upgrading, old checkpoints are discarded and refolded against the CURRENT catalog — historical totals shift once; afterwards pricing edits only affect subsequent samples.
23
+ - Billing popover: currency-aware symbols (¥ / $, unknown currency falls back to its ISO code), honest chips for flat/null tiers, "priced as <model>" derived from the catalog label, and mixed-currency sessions list per-currency rows instead of a fake sum.
24
+ - matchedModel / unitPricePerM deprecated (dual-written for one more generation).
25
+
26
+ ### Fixed
27
+ - settings.describe() shape normalization: in-process array vs RPC {namespaces:[...]} envelope — exotic shapes now read as absent instead of throwing into a swallowed catch (the silent-freeze failure class).
28
+ - Projection registration is try/catch-guarded: a billing-unit failure hides the billing section instead of poisoning the whole plugin fiber or cold session history.
29
+
14
30
  ## [4.2.1] — 2026-10-12
15
31
 
16
32
  ### Changed — stable promotion (no code changes since 4.2.0-beta.29)
package/INSTALL.ja.md CHANGED
@@ -1,191 +1,191 @@
1
- # インストールガイド(公式 DSH CLI)
2
-
3
- このガイドは公式 `dsh plugin` コマンドのみを使用します。このコマンドは依存関係を profile にインストールし、`dsh.profile.bundles` を同期します。普通の `npm install`、profile での直接 `pnpm add`、profile マニフェストの手動編集で代用しないでください。
4
-
5
- - [日本語インストールガイド](./INSTALL.ja.md)
6
- - [English installation guide](./INSTALL.md)
7
- - [中文安装指南](./INSTALL.zh.md)
8
- - [한국어 설치 안내](./INSTALL.ko.md)
9
- - [Guide d'installation en français](./INSTALL.fr.md)
10
- - [Installationsanleitung auf Deutsch](./INSTALL.de.md)
11
- - [Guida all'installazione in italiano](./INSTALL.it.md)
12
- - [Руководство по установке на русском](./INSTALL.ru.md)
13
- - [Guía de instalación en español](./INSTALL.es.md)
14
- - [日本語 README](./README.ja.md)
15
- - [English README](./README.md)
16
- - [中文 README](./README.zh.md)
17
- - [한국어 README](./README.ko.md)
18
- - [README en français](./README.fr.md)
19
- - [Deutsche README](./README.de.md)
20
- - [README in italiano](./README.it.md)
21
- - [README на русском](./README.ru.md)
22
- - [README en español](./README.es.md)
23
- - [Changelog](./CHANGELOG.md)
24
- - [日本語 changelog](./CHANGELOG.ja.md)
25
- - [한국어 changelog](./CHANGELOG.ko.md)
26
- - [Changelog en français](./CHANGELOG.fr.md)
27
- - [Changelog auf Deutsch](./CHANGELOG.de.md)
28
- - [Changelog in italiano](./CHANGELOG.it.md)
29
- - [Список изменений на русском](./CHANGELOG.ru.md)
30
- - [Changelog en español](./CHANGELOG.es.md)
31
-
32
- このガイドのプレースホルダー:
33
-
34
- - `<profile>`:変更する DSH profile。通常は `web`;
35
- - `dsh-thinking-levels`:npm パッケージ名とランタイムプラグイン ID;
36
- - `thinking-levels`:Cordis 構成エントリと設定 Slot ID。
37
-
38
- > **バージョン要件 —— DSH v0.2.0-rc.1 以降のみ対応。**
39
- >
40
- > インストール前にバージョンを確認してください(`dsh --version`)。
41
- >
42
- > | DSH バージョン | 操作 |
43
- > | --- | --- |
44
- > | ≥ 0.2.0-rc.1 | 本リリース(4.0.x)をインストール。 |
45
- > | ≥ 0.1.7-rc.1 〜 < 0.2.0 | 3.x ラインをインストール:`dsh plugin --profile <profile> add dsh-thinking-levels@dsh-0.1.7 -w`(3.4.3)。 |
46
- > | < 0.1.7-rc.1 | 旧プラグインライン(3.0.2)を使用。**DSH 0.1.7+ で旧プラグインビルドを実行しないでください——プラグインをアップグレードしてください。** |
47
- >
48
- > 境界は `0.1.7-rc.1` です:このバージョンで命令的な設定登録(`settings.register` / `installSettingsSection`)とクライアント `settingsScope` サービスが削除されました。以降、3.x ライン(0.1.7 ホスト)も本リリース(0.2.0-rc ホスト)も同一の宣言的設定表面(`.volatile()` スキーマフィールド + `configForms`)を対象とします。
49
-
50
- > 旧い DSH は npm の dist-tag で対応ラインをインストールします:`dsh plugin add dsh-thinking-levels@dsh-0.1.7`(DSH 0.1.7–0.1.x、プラグイン 3.4.3)、`...@dsh-0.1.5`(DSH 0.1.5)、`...@dsh-0.1.2`(DSH 0.1.2)、`...@compat`(DSH 0.1.0–0.1.1)。≤ 0.6.0 の旧 0.x 版は dsh peer 宣言を持たないためインストールしないでください。
51
-
52
- ## 0. 前提と profile の確認
53
-
54
- ```bash
55
- echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
56
- dsh --version
57
- ls "${DSH_HOME:-$HOME/.dsh}/profiles"
58
- ```
59
-
60
- 実行中の DSH プロセスが使う profile を使用してください。`web` が一般的ですが、実際の `--profile` 引数が優先されます。
61
-
62
- ## 1. 公式インストール
63
-
64
- 最新版をインストール:
65
-
66
- ```bash
67
- dsh plugin --profile <profile> add dsh-thinking-levels -w
68
- ```
69
-
70
- (profile が pnpm workspace root の場合は `-w` が必要です。`web` はそうです。)
71
-
72
- 現在のリリースを明示的にインストール:
73
-
74
- ```bash
75
- dsh plugin --profile <profile> add dsh-thinking-levels@4.0.0 -w
76
- ```
77
-
78
- 公式 CLI は profile の依存関係、ロックファイル、`dsh.profile.bundles` を自動更新します。手動で YAML を追加しないでください。
79
-
80
- ### サプライチェーン冷却期間
81
-
82
- dsh ランタイムは pnpm 11 を使用し、`minimumReleaseAge` ポリシーが新規公開版を
83
- `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` でブロックすることがあります。`~/.dsh/profiles/web/pnpm-workspace.yaml` の
84
- `minimumReleaseAgeExclude` にバージョンを追加してください:
85
-
86
- ```yaml
87
- minimumReleaseAgeExclude:
88
- - dsh-thinking-levels@4.0.0
89
- ```
90
-
91
- ## 2. アップグレード
92
-
93
- registry の最新版へアップグレード:
94
-
95
- ```bash
96
- dsh plugin --profile <profile> update dsh-thinking-levels -w
97
- ```
98
-
99
- ホスト側の変更は DSH を再起動、ブラウザ側は Web ページをリフレッシュしてください。
100
-
101
- ## 3. ローカルパス / link: 登録(代替)
102
-
103
- 開発用やオフラインインストールでは、ローカルチェックアウトから登録できます:
104
-
105
- ```bash
106
- # ~/.dsh/profiles/web/package.json dependencies:
107
- # "dsh-thinking-levels": "link:<dsh-thinking-levels の絶対パス>"
108
- # ~/.dsh/profiles/web/cordis.patch.yml:
109
- # - insert:
110
- # - id: thinking-levels
111
- # name: dsh-thinking-levels
112
- cd ~/.dsh/profiles/web && pnpm install && dsh web
113
- ```
114
-
115
- または公式 CLI でローカルパスを追加(ネットワーク不要):
116
-
117
- ```bash
118
- dsh plugin --profile <profile> add /dsh-thinking-levels の絶対パス/ -w
119
- ```
120
-
121
- ## 4. インストールの検証
122
-
123
- 依存関係とインストール済みバージョンを確認:
124
-
125
- ```bash
126
- grep -n "dsh-thinking-levels" \
127
- "${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
128
- node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
129
- ```
130
-
131
- このリリースではバージョンは `4.0.0` でなければなりません。
132
-
133
- 公式構成を確認:
134
-
135
- ```bash
136
- dsh --profile <profile> --dump-default-config
137
- ```
138
-
139
- 以下が含まれている必要があります:
140
-
141
- ```yaml
142
- - id: thinking-levels
143
- name: dsh-thinking-levels
144
- ```
145
-
146
- ## 5. 設定フォームの検証
147
-
148
- DSH を再起動し、Web ページをリフレッシュしてください。「設定 → プラグイン」を開き、**dsh-thinking-levels** のエントリを探します——DSH 0.1.7 からフォームはホストがプラグイン宣言の `.volatile()` スキーマフィールドから自動生成します(カスタムクライアントカードはもうありません)。
149
-
150
- 1. フォームには有効トグル、レベルセレクター(8 つの標準レベル + `auto`)、スケジューラートグル(`allowDowngrade` / `allowUpgrade`)が表示されます。
151
- 2. 確定した変更は次のモデルリクエストから有効、再起動不要(ライブ volatile 設定)。
152
- 3. モデル別能力エディター(ゲートウェイ送信値、llm-pi-ai)は廃止されたカードとともに削除されました——llm-pi-ai のモデル能力は公式の「モデル」設定面から編集してください。
153
-
154
- ## 日本語と韓国語のサポート状況
155
-
156
- プラグインには `ja` と `ko` の辞書が含まれていますが、現在の公式 DSH リリースは `LocaleRuntime` 経由で `zh` と `en` のみを提供します。純正 DSH で日本語または韓国語を選択すると `locale "<id>" is not registered` で失敗します。
157
-
158
- 公式サポートが来る前に使うには、DSH フォークを保守して更新してください:
159
-
160
- - `packages/client/locale/src/locale-settings.ts`:`LOCALE_IDS` に `ja` と `ko` を追加(Host プリファレンススキーマはこのリストから派生)。
161
- - `packages/client/locale/src/client/index.ts`:`LOCALES` に `{ id: 'ja', label: '日本語' }` と `{ id: 'ko', label: '한국어' }` を追加。
162
- - 対応するコア辞書とテストを追加し、フォーク版を再ビルドして実行。
163
-
164
- プラグイン単体では DSH のグローバル locale 一覧を拡張できません。フォークのドキュメントにあるビルドと公式 profile コマンドを使用してください。profile マニフェストの手動編集はしないでください。
165
-
166
- ## 6. トラブルシューティング
167
-
168
- | 症状 | 対処 |
169
- | --- | --- |
170
- | `dsh` が見つからない | 公式 DSH CLI をインストール/有効化。普通の npm/pnpm コマンドで profile インストールを再現しないでください。 |
171
- | `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | profile の `pnpm-workspace.yaml` の `minimumReleaseAgeExclude` にバージョンを追加。 |
172
- | プラグインが「無効/未マウント」でエラーなし | profile 構成を確認。ホストは `@deepseek-ai/dsh-settings` に値依存してはいけません(本プラグインはしていません)。 |
173
- | client エントリが `__DSH_BOOT__` にない | `exports["./client"]` が存在し、host fiber が確立されていることを確認。 |
174
- | モデルセレクターに `Auto` がない | adapter `resolveModel` のラップが効いているか確認(`llm/adapters-updated` で再ラップ)。 |
175
- | 設定フォームの書き込み失敗 | プラグインスキーマに拒否された。宣言された `.volatile()` フィールド型に合わせる。 |
176
- | Subagent が `UNSUPPORTED_REASONING_EFFORT` | 対象モデルがレベルを宣言していない。対応レベルを使うかプロバイダー既定に戻す。 |
177
- | ブラウザが古い bundle を表示 | アップグレード後にハードリフレッシュ(Ctrl+Shift+R)。 |
178
-
179
- ## 7. アンインストール
180
-
181
- 公式コマンドを使用:
182
-
183
- ```bash
184
- dsh plugin --profile <profile> remove dsh-thinking-levels -w
185
- ```
186
-
187
- 構成から bundle が消えたことを確認:
188
-
189
- ```bash
190
- dsh --profile <profile> --dump-default-config
191
- ```
1
+ # インストールガイド(公式 DSH CLI)
2
+
3
+ このガイドは公式 `dsh plugin` コマンドのみを使用します。このコマンドは依存関係を profile にインストールし、`dsh.profile.bundles` を同期します。普通の `npm install`、profile での直接 `pnpm add`、profile マニフェストの手動編集で代用しないでください。
4
+
5
+ - [日本語インストールガイド](./INSTALL.ja.md)
6
+ - [English installation guide](./INSTALL.md)
7
+ - [中文安装指南](./INSTALL.zh.md)
8
+ - [한국어 설치 안내](./INSTALL.ko.md)
9
+ - [Guide d'installation en français](./INSTALL.fr.md)
10
+ - [Installationsanleitung auf Deutsch](./INSTALL.de.md)
11
+ - [Guida all'installazione in italiano](./INSTALL.it.md)
12
+ - [Руководство по установке на русском](./INSTALL.ru.md)
13
+ - [Guía de instalación en español](./INSTALL.es.md)
14
+ - [日本語 README](./README.ja.md)
15
+ - [English README](./README.md)
16
+ - [中文 README](./README.zh.md)
17
+ - [한국어 README](./README.ko.md)
18
+ - [README en français](./README.fr.md)
19
+ - [Deutsche README](./README.de.md)
20
+ - [README in italiano](./README.it.md)
21
+ - [README на русском](./README.ru.md)
22
+ - [README en español](./README.es.md)
23
+ - [Changelog](./CHANGELOG.md)
24
+ - [日本語 changelog](./CHANGELOG.ja.md)
25
+ - [한국어 changelog](./CHANGELOG.ko.md)
26
+ - [Changelog en français](./CHANGELOG.fr.md)
27
+ - [Changelog auf Deutsch](./CHANGELOG.de.md)
28
+ - [Changelog in italiano](./CHANGELOG.it.md)
29
+ - [Список изменений на русском](./CHANGELOG.ru.md)
30
+ - [Changelog en español](./CHANGELOG.es.md)
31
+
32
+ このガイドのプレースホルダー:
33
+
34
+ - `<profile>`:変更する DSH profile。通常は `web`;
35
+ - `dsh-thinking-levels`:npm パッケージ名とランタイムプラグイン ID;
36
+ - `thinking-levels`:Cordis 構成エントリと設定 Slot ID。
37
+
38
+ > **バージョン要件 —— DSH v0.2.0-rc.1 以降のみ対応。**
39
+ >
40
+ > インストール前にバージョンを確認してください(`dsh --version`)。
41
+ >
42
+ > | DSH バージョン | 操作 |
43
+ > | --- | --- |
44
+ > | ≥ 0.2.0-rc.1 | 本リリース(4.0.x)をインストール。 |
45
+ > | ≥ 0.1.7-rc.1 〜 < 0.2.0 | 3.x ラインをインストール:`dsh plugin --profile <profile> add dsh-thinking-levels@dsh-0.1.7 -w`(3.4.3)。 |
46
+ > | < 0.1.7-rc.1 | 旧プラグインライン(3.0.2)を使用。**DSH 0.1.7+ で旧プラグインビルドを実行しないでください——プラグインをアップグレードしてください。** |
47
+ >
48
+ > 境界は `0.1.7-rc.1` です:このバージョンで命令的な設定登録(`settings.register` / `installSettingsSection`)とクライアント `settingsScope` サービスが削除されました。以降、3.x ライン(0.1.7 ホスト)も本リリース(0.2.0-rc ホスト)も同一の宣言的設定表面(`.volatile()` スキーマフィールド + `configForms`)を対象とします。
49
+
50
+ > 旧い DSH は npm の dist-tag で対応ラインをインストールします:`dsh plugin add dsh-thinking-levels@dsh-0.1.7`(DSH 0.1.7–0.1.x、プラグイン 3.4.3)、`...@dsh-0.1.5`(DSH 0.1.5)、`...@dsh-0.1.2`(DSH 0.1.2)、`...@compat`(DSH 0.1.0–0.1.1)。≤ 0.6.0 の旧 0.x 版は dsh peer 宣言を持たないためインストールしないでください。
51
+
52
+ ## 0. 前提と profile の確認
53
+
54
+ ```bash
55
+ echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
56
+ dsh --version
57
+ ls "${DSH_HOME:-$HOME/.dsh}/profiles"
58
+ ```
59
+
60
+ 実行中の DSH プロセスが使う profile を使用してください。`web` が一般的ですが、実際の `--profile` 引数が優先されます。
61
+
62
+ ## 1. 公式インストール
63
+
64
+ 最新版をインストール:
65
+
66
+ ```bash
67
+ dsh plugin --profile <profile> add dsh-thinking-levels -w
68
+ ```
69
+
70
+ (profile が pnpm workspace root の場合は `-w` が必要です。`web` はそうです。)
71
+
72
+ 現在のリリースを明示的にインストール:
73
+
74
+ ```bash
75
+ dsh plugin --profile <profile> add dsh-thinking-levels@4.0.0 -w
76
+ ```
77
+
78
+ 公式 CLI は profile の依存関係、ロックファイル、`dsh.profile.bundles` を自動更新します。手動で YAML を追加しないでください。
79
+
80
+ ### サプライチェーン冷却期間
81
+
82
+ dsh ランタイムは pnpm 11 を使用し、`minimumReleaseAge` ポリシーが新規公開版を
83
+ `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` でブロックすることがあります。`~/.dsh/profiles/web/pnpm-workspace.yaml` の
84
+ `minimumReleaseAgeExclude` にバージョンを追加してください:
85
+
86
+ ```yaml
87
+ minimumReleaseAgeExclude:
88
+ - dsh-thinking-levels@4.0.0
89
+ ```
90
+
91
+ ## 2. アップグレード
92
+
93
+ registry の最新版へアップグレード:
94
+
95
+ ```bash
96
+ dsh plugin --profile <profile> update dsh-thinking-levels -w
97
+ ```
98
+
99
+ ホスト側の変更は DSH を再起動、ブラウザ側は Web ページをリフレッシュしてください。
100
+
101
+ ## 3. ローカルパス / link: 登録(代替)
102
+
103
+ 開発用やオフラインインストールでは、ローカルチェックアウトから登録できます:
104
+
105
+ ```bash
106
+ # ~/.dsh/profiles/web/package.json dependencies:
107
+ # "dsh-thinking-levels": "link:<dsh-thinking-levels の絶対パス>"
108
+ # ~/.dsh/profiles/web/cordis.patch.yml:
109
+ # - insert:
110
+ # - id: thinking-levels
111
+ # name: dsh-thinking-levels
112
+ cd ~/.dsh/profiles/web && pnpm install && dsh web
113
+ ```
114
+
115
+ または公式 CLI でローカルパスを追加(ネットワーク不要):
116
+
117
+ ```bash
118
+ dsh plugin --profile <profile> add /dsh-thinking-levels の絶対パス/ -w
119
+ ```
120
+
121
+ ## 4. インストールの検証
122
+
123
+ 依存関係とインストール済みバージョンを確認:
124
+
125
+ ```bash
126
+ grep -n "dsh-thinking-levels" \
127
+ "${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
128
+ node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
129
+ ```
130
+
131
+ このリリースではバージョンは `4.0.0` でなければなりません。
132
+
133
+ 公式構成を確認:
134
+
135
+ ```bash
136
+ dsh --profile <profile> --dump-default-config
137
+ ```
138
+
139
+ 以下が含まれている必要があります:
140
+
141
+ ```yaml
142
+ - id: thinking-levels
143
+ name: dsh-thinking-levels
144
+ ```
145
+
146
+ ## 5. 設定フォームの検証
147
+
148
+ DSH を再起動し、Web ページをリフレッシュしてください。「設定 → プラグイン」を開き、**dsh-thinking-levels** のエントリを探します——DSH 0.1.7 からフォームはホストがプラグイン宣言の `.volatile()` スキーマフィールドから自動生成します(カスタムクライアントカードはもうありません)。
149
+
150
+ 1. フォームには有効トグル、レベルセレクター(8 つの標準レベル + `auto`)、スケジューラートグル(`allowDowngrade` / `allowUpgrade`)が表示されます。
151
+ 2. 確定した変更は次のモデルリクエストから有効、再起動不要(ライブ volatile 設定)。
152
+ 3. モデル別能力エディター(ゲートウェイ送信値、llm-pi-ai)は廃止されたカードとともに削除されました——llm-pi-ai のモデル能力は公式の「モデル」設定面から編集してください。
153
+
154
+ ## 日本語と韓国語のサポート状況
155
+
156
+ プラグインには `ja` と `ko` の辞書が含まれていますが、現在の公式 DSH リリースは `LocaleRuntime` 経由で `zh` と `en` のみを提供します。純正 DSH で日本語または韓国語を選択すると `locale "<id>" is not registered` で失敗します。
157
+
158
+ 公式サポートが来る前に使うには、DSH フォークを保守して更新してください:
159
+
160
+ - `packages/client/locale/src/locale-settings.ts`:`LOCALE_IDS` に `ja` と `ko` を追加(Host プリファレンススキーマはこのリストから派生)。
161
+ - `packages/client/locale/src/client/index.ts`:`LOCALES` に `{ id: 'ja', label: '日本語' }` と `{ id: 'ko', label: '한국어' }` を追加。
162
+ - 対応するコア辞書とテストを追加し、フォーク版を再ビルドして実行。
163
+
164
+ プラグイン単体では DSH のグローバル locale 一覧を拡張できません。フォークのドキュメントにあるビルドと公式 profile コマンドを使用してください。profile マニフェストの手動編集はしないでください。
165
+
166
+ ## 6. トラブルシューティング
167
+
168
+ | 症状 | 対処 |
169
+ | --- | --- |
170
+ | `dsh` が見つからない | 公式 DSH CLI をインストール/有効化。普通の npm/pnpm コマンドで profile インストールを再現しないでください。 |
171
+ | `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | profile の `pnpm-workspace.yaml` の `minimumReleaseAgeExclude` にバージョンを追加。 |
172
+ | プラグインが「無効/未マウント」でエラーなし | profile 構成を確認。ホストは `@deepseek-ai/dsh-settings` に値依存してはいけません(本プラグインはしていません)。 |
173
+ | client エントリが `__DSH_BOOT__` にない | `exports["./client"]` が存在し、host fiber が確立されていることを確認。 |
174
+ | モデルセレクターに `Auto` がない | adapter `resolveModel` のラップが効いているか確認(`llm/adapters-updated` で再ラップ)。 |
175
+ | 設定フォームの書き込み失敗 | プラグインスキーマに拒否された。宣言された `.volatile()` フィールド型に合わせる。 |
176
+ | Subagent が `UNSUPPORTED_REASONING_EFFORT` | 対象モデルがレベルを宣言していない。対応レベルを使うかプロバイダー既定に戻す。 |
177
+ | ブラウザが古い bundle を表示 | アップグレード後にハードリフレッシュ(Ctrl+Shift+R)。 |
178
+
179
+ ## 7. アンインストール
180
+
181
+ 公式コマンドを使用:
182
+
183
+ ```bash
184
+ dsh plugin --profile <profile> remove dsh-thinking-levels -w
185
+ ```
186
+
187
+ 構成から bundle が消えたことを確認:
188
+
189
+ ```bash
190
+ dsh --profile <profile> --dump-default-config
191
+ ```