dsh-thinking-levels 3.0.0 → 3.1.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/INSTALL.ja.md +162 -163
- package/INSTALL.ko.md +162 -163
- package/INSTALL.md +173 -174
- package/INSTALL.zh.md +174 -174
- package/README.ja.md +173 -172
- package/README.ko.md +173 -172
- package/README.md +15 -20
- package/README.zh.md +182 -181
- package/dsh.plugin.json +16 -16
- package/lib/client.js +8 -1186
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +63 -12
- package/lib/index.js +40 -46
- package/package.json +12 -10
package/INSTALL.ja.md
CHANGED
|
@@ -1,163 +1,162 @@
|
|
|
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
|
-
- [日本語 README](./README.ja.md)
|
|
10
|
-
- [English README](./README.md)
|
|
11
|
-
- [中文 README](./README.zh.md)
|
|
12
|
-
- [한국어 README](./README.ko.md)
|
|
13
|
-
- [Changelog](./CHANGELOG.md)
|
|
14
|
-
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
15
|
-
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
16
|
-
|
|
17
|
-
このガイドのプレースホルダー:
|
|
18
|
-
|
|
19
|
-
- `<profile>`:変更する DSH profile。通常は `web`;
|
|
20
|
-
- `dsh-thinking-levels`:npm パッケージ名とランタイムプラグイン ID;
|
|
21
|
-
- `thinking-levels`:Cordis 構成エントリと設定 Slot ID。
|
|
22
|
-
|
|
23
|
-
## 0. 前提と profile の確認
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
|
|
27
|
-
dsh --version
|
|
28
|
-
ls "${DSH_HOME:-$HOME/.dsh}/profiles"
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
実行中の DSH プロセスが使う profile を使用してください。`web` が一般的ですが、実際の `--profile` 引数が優先されます。
|
|
32
|
-
|
|
33
|
-
## 1. 公式インストール
|
|
34
|
-
|
|
35
|
-
最新版をインストール:
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
dsh plugin --profile <profile> add dsh-thinking-levels -w
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
(profile が pnpm workspace root の場合は `-w` が必要です。`web` はそうです。)
|
|
42
|
-
|
|
43
|
-
現在のリリースを明示的にインストール:
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
dsh plugin --profile <profile> add dsh-thinking-levels@0.6.0 -w
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
公式 CLI は profile の依存関係、ロックファイル、`dsh.profile.bundles` を自動更新します。手動で YAML を追加しないでください。
|
|
50
|
-
|
|
51
|
-
### サプライチェーン冷却期間
|
|
52
|
-
|
|
53
|
-
dsh ランタイムは pnpm 11 を使用し、`minimumReleaseAge` ポリシーが新規公開版を
|
|
54
|
-
`ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` でブロックすることがあります。`~/.dsh/profiles/web/pnpm-workspace.yaml` の
|
|
55
|
-
`minimumReleaseAgeExclude` にバージョンを追加してください:
|
|
56
|
-
|
|
57
|
-
```yaml
|
|
58
|
-
minimumReleaseAgeExclude:
|
|
59
|
-
- dsh-thinking-levels@0.6.0
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## 2. アップグレード
|
|
63
|
-
|
|
64
|
-
registry の最新版へアップグレード:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
dsh plugin --profile <profile> update dsh-thinking-levels -w
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
ホスト側の変更は DSH を再起動、ブラウザ側は Web ページをリフレッシュしてください。
|
|
71
|
-
|
|
72
|
-
## 3. ローカルパス / link: 登録(代替)
|
|
73
|
-
|
|
74
|
-
開発用やオフラインインストールでは、ローカルチェックアウトから登録できます:
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
# ~/.dsh/profiles/web/package.json dependencies:
|
|
78
|
-
# "dsh-thinking-levels": "link:<dsh-thinking-levels の絶対パス>"
|
|
79
|
-
# ~/.dsh/profiles/web/cordis.patch.yml:
|
|
80
|
-
# - insert:
|
|
81
|
-
# - id: thinking-levels
|
|
82
|
-
# name: dsh-thinking-levels
|
|
83
|
-
cd ~/.dsh/profiles/web && pnpm install && dsh web
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
または公式 CLI でローカルパスを追加(ネットワーク不要):
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
dsh plugin --profile <profile> add /dsh-thinking-levels の絶対パス/ -w
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
## 4. インストールの検証
|
|
93
|
-
|
|
94
|
-
依存関係とインストール済みバージョンを確認:
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
grep -n "dsh-thinking-levels" \
|
|
98
|
-
"${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
|
|
99
|
-
node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
このリリースではバージョンは `0.6.0` でなければなりません。
|
|
103
|
-
|
|
104
|
-
公式構成を確認:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
dsh --profile <profile> --dump-default-config
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
以下が含まれている必要があります:
|
|
111
|
-
|
|
112
|
-
```yaml
|
|
113
|
-
- id: thinking-levels
|
|
114
|
-
name: dsh-thinking-levels
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## 5.
|
|
118
|
-
|
|
119
|
-
DSH を再起動し、Web ページをリフレッシュしてください。「設定 →
|
|
120
|
-
|
|
121
|
-
1.
|
|
122
|
-
2.
|
|
123
|
-
3.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
- `packages/client/locale/src/
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
|
141
|
-
|
|
|
142
|
-
| `
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
```
|
|
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
|
+
- [日本語 README](./README.ja.md)
|
|
10
|
+
- [English README](./README.md)
|
|
11
|
+
- [中文 README](./README.zh.md)
|
|
12
|
+
- [한국어 README](./README.ko.md)
|
|
13
|
+
- [Changelog](./CHANGELOG.md)
|
|
14
|
+
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
15
|
+
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
16
|
+
|
|
17
|
+
このガイドのプレースホルダー:
|
|
18
|
+
|
|
19
|
+
- `<profile>`:変更する DSH profile。通常は `web`;
|
|
20
|
+
- `dsh-thinking-levels`:npm パッケージ名とランタイムプラグイン ID;
|
|
21
|
+
- `thinking-levels`:Cordis 構成エントリと設定 Slot ID。
|
|
22
|
+
|
|
23
|
+
## 0. 前提と profile の確認
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
|
|
27
|
+
dsh --version
|
|
28
|
+
ls "${DSH_HOME:-$HOME/.dsh}/profiles"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
実行中の DSH プロセスが使う profile を使用してください。`web` が一般的ですが、実際の `--profile` 引数が優先されます。
|
|
32
|
+
|
|
33
|
+
## 1. 公式インストール
|
|
34
|
+
|
|
35
|
+
最新版をインストール:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
dsh plugin --profile <profile> add dsh-thinking-levels -w
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
(profile が pnpm workspace root の場合は `-w` が必要です。`web` はそうです。)
|
|
42
|
+
|
|
43
|
+
現在のリリースを明示的にインストール:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
dsh plugin --profile <profile> add dsh-thinking-levels@0.6.0 -w
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
公式 CLI は profile の依存関係、ロックファイル、`dsh.profile.bundles` を自動更新します。手動で YAML を追加しないでください。
|
|
50
|
+
|
|
51
|
+
### サプライチェーン冷却期間
|
|
52
|
+
|
|
53
|
+
dsh ランタイムは pnpm 11 を使用し、`minimumReleaseAge` ポリシーが新規公開版を
|
|
54
|
+
`ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` でブロックすることがあります。`~/.dsh/profiles/web/pnpm-workspace.yaml` の
|
|
55
|
+
`minimumReleaseAgeExclude` にバージョンを追加してください:
|
|
56
|
+
|
|
57
|
+
```yaml
|
|
58
|
+
minimumReleaseAgeExclude:
|
|
59
|
+
- dsh-thinking-levels@0.6.0
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## 2. アップグレード
|
|
63
|
+
|
|
64
|
+
registry の最新版へアップグレード:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
dsh plugin --profile <profile> update dsh-thinking-levels -w
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
ホスト側の変更は DSH を再起動、ブラウザ側は Web ページをリフレッシュしてください。
|
|
71
|
+
|
|
72
|
+
## 3. ローカルパス / link: 登録(代替)
|
|
73
|
+
|
|
74
|
+
開発用やオフラインインストールでは、ローカルチェックアウトから登録できます:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# ~/.dsh/profiles/web/package.json dependencies:
|
|
78
|
+
# "dsh-thinking-levels": "link:<dsh-thinking-levels の絶対パス>"
|
|
79
|
+
# ~/.dsh/profiles/web/cordis.patch.yml:
|
|
80
|
+
# - insert:
|
|
81
|
+
# - id: thinking-levels
|
|
82
|
+
# name: dsh-thinking-levels
|
|
83
|
+
cd ~/.dsh/profiles/web && pnpm install && dsh web
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
または公式 CLI でローカルパスを追加(ネットワーク不要):
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
dsh plugin --profile <profile> add /dsh-thinking-levels の絶対パス/ -w
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## 4. インストールの検証
|
|
93
|
+
|
|
94
|
+
依存関係とインストール済みバージョンを確認:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
grep -n "dsh-thinking-levels" \
|
|
98
|
+
"${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
|
|
99
|
+
node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
このリリースではバージョンは `0.6.0` でなければなりません。
|
|
103
|
+
|
|
104
|
+
公式構成を確認:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
dsh --profile <profile> --dump-default-config
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
以下が含まれている必要があります:
|
|
111
|
+
|
|
112
|
+
```yaml
|
|
113
|
+
- id: thinking-levels
|
|
114
|
+
name: dsh-thinking-levels
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## 5. 設定フォームの検証
|
|
118
|
+
|
|
119
|
+
DSH を再起動し、Web ページをリフレッシュしてください。「設定 → プラグイン」を開き、**dsh-thinking-levels** のエントリを探します——DSH 0.1.7 からフォームはホストがプラグイン宣言の `.volatile()` スキーマフィールドから自動生成します(カスタムクライアントカードはもうありません)。
|
|
120
|
+
|
|
121
|
+
1. フォームには有効トグル、レベルセレクター(8 つの標準レベル + `auto`)、スケジューラートグル(`allowDowngrade` / `allowUpgrade`)が表示されます。
|
|
122
|
+
2. 確定した変更は次のモデルリクエストから有効、再起動不要(ライブ volatile 設定)。
|
|
123
|
+
3. モデル別能力エディター(ゲートウェイ送信値、llm-pi-ai)は廃止されたカードとともに削除されました——llm-pi-ai のモデル能力は公式の「モデル」設定面から編集してください。
|
|
124
|
+
|
|
125
|
+
## 日本語と韓国語のサポート状況
|
|
126
|
+
|
|
127
|
+
プラグインには `ja` と `ko` の辞書が含まれていますが、現在の公式 DSH リリースは `LocaleRuntime` 経由で `zh` と `en` のみを提供します。純正 DSH で日本語または韓国語を選択すると `locale "<id>" is not registered` で失敗します。
|
|
128
|
+
|
|
129
|
+
公式サポートが来る前に使うには、DSH フォークを保守して更新してください:
|
|
130
|
+
|
|
131
|
+
- `packages/client/locale/src/locale-settings.ts`:`LOCALE_IDS` に `ja` と `ko` を追加(Host プリファレンススキーマはこのリストから派生)。
|
|
132
|
+
- `packages/client/locale/src/client/index.ts`:`LOCALES` に `{ id: 'ja', label: '日本語' }` と `{ id: 'ko', label: '한국어' }` を追加。
|
|
133
|
+
- 対応するコア辞書とテストを追加し、フォーク版を再ビルドして実行。
|
|
134
|
+
|
|
135
|
+
プラグイン単体では DSH のグローバル locale 一覧を拡張できません。フォークのドキュメントにあるビルドと公式 profile コマンドを使用してください。profile マニフェストの手動編集はしないでください。
|
|
136
|
+
|
|
137
|
+
## 6. トラブルシューティング
|
|
138
|
+
|
|
139
|
+
| 症状 | 対処 |
|
|
140
|
+
| --- | --- |
|
|
141
|
+
| `dsh` が見つからない | 公式 DSH CLI をインストール/有効化。普通の npm/pnpm コマンドで profile インストールを再現しないでください。 |
|
|
142
|
+
| `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | profile の `pnpm-workspace.yaml` の `minimumReleaseAgeExclude` にバージョンを追加。 |
|
|
143
|
+
| プラグインが「無効/未マウント」でエラーなし | profile 構成を確認。ホストは `@deepseek-ai/dsh-settings` に値依存してはいけません(本プラグインはしていません)。 |
|
|
144
|
+
| client エントリが `__DSH_BOOT__` にない | `exports["./client"]` が存在し、host fiber が確立されていることを確認。 |
|
|
145
|
+
| モデルセレクターに `Auto` がない | adapter `resolveModel` のラップが効いているか確認(`llm/adapters-updated` で再ラップ)。 |
|
|
146
|
+
| 設定フォームの書き込み失敗 | プラグインスキーマに拒否された。宣言された `.volatile()` フィールド型に合わせる。 |
|
|
147
|
+
| Subagent が `UNSUPPORTED_REASONING_EFFORT` | 対象モデルがレベルを宣言していない。対応レベルを使うかプロバイダー既定に戻す。 |
|
|
148
|
+
| ブラウザが古い bundle を表示 | アップグレード後にハードリフレッシュ(Ctrl+Shift+R)。 |
|
|
149
|
+
|
|
150
|
+
## 7. アンインストール
|
|
151
|
+
|
|
152
|
+
公式コマンドを使用:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
dsh plugin --profile <profile> remove dsh-thinking-levels -w
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
構成から bundle が消えたことを確認:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
dsh --profile <profile> --dump-default-config
|
|
162
|
+
```
|