dsh-thinking-levels 0.4.1 → 0.6.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 +89 -0
- package/CHANGELOG.ko.md +89 -0
- package/CHANGELOG.md +89 -0
- package/INSTALL.ja.md +163 -0
- package/INSTALL.ko.md +163 -0
- package/INSTALL.md +163 -0
- package/INSTALL.zh.md +163 -0
- package/LICENSE +21 -0
- package/README.ja.md +168 -0
- package/README.ko.md +168 -0
- package/README.md +195 -108
- package/README.zh.md +174 -108
- package/lib/client.js +1142 -93
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +35 -3
- package/lib/index.js +221 -26
- package/lib/takeover-sync.d.ts +98 -0
- package/lib/takeover-sync.js +131 -0
- package/lib/thinking-level.d.ts +106 -16
- package/lib/thinking-level.js +126 -13
- package/package.json +88 -79
package/CHANGELOG.ja.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# 変更履歴
|
|
2
|
+
|
|
3
|
+
`dsh-thinking-levels` の主な変更を記録します。
|
|
4
|
+
|
|
5
|
+
- [English changelog](./CHANGELOG.md)
|
|
6
|
+
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
7
|
+
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
8
|
+
|
|
9
|
+
## [0.6.0] — 2026-02-?
|
|
10
|
+
|
|
11
|
+
### 追加
|
|
12
|
+
|
|
13
|
+
- **8 つの標準レベル**(dsh-thinking-effort に合わせて):`off / on / minimal / low / medium / high / xhigh / max`(+ `auto` スケジューラーマスク)。`on` は思考有効化トグルで、モデルの既定強度(`high` または最高の宣言済み思考レベル)にクランプされます。`minimal` / `medium` / `xhigh` はカスタムゲートウェイが宣言していれば透過し、公式アダプターでは `high` に畳み込まれます。
|
|
14
|
+
- **設定カードのカスタム送信値マッピング**(dsh-thinking-effort から借用):各レベルにチェックを入れ、ゲートウェイに送信する値を入力(例:`high` → `ultra`)。`off` を空欄にすると送信されません。モデルの `reasoningEfforts` テーブルとして保存されます。
|
|
15
|
+
- **設定カードの表示刷新**(dsh-thinking-effort から借用):プロバイダーがモデルをグループ化し、各モデル行はテキスト/画像/コンテキストバッジを表示、モデルはレベル別エディターに展開、検索ボックスでモデルを絞り込み、ワンクリックプリセット(公式 DeepSeek 形式 / 汎用)を全思考モデルに適用。
|
|
16
|
+
- **多言語対応**:日本語(`ja`)と韓国語(`ko`)の辞書、`README.ja.md` / `README.ko.md`、`INSTALL.{md,zh,ja,ko}.md`、`CHANGELOG.{md,ja,ko}.md`。注:公式 DSH の locale ランタイムはまだ `zh` / `en` のみ公開しているため、`ja` / `ko` の選択には DSH フォークが必要です(README の互換性注記を参照)。
|
|
17
|
+
|
|
18
|
+
### 変更
|
|
19
|
+
|
|
20
|
+
- `level` 設定面は 9 値すべてを受け付けます(`off | on | minimal | low | medium | high | xhigh | max | auto`)。
|
|
21
|
+
- `models[].efforts` オーバーライドは拡張レベルを受け付けます。
|
|
22
|
+
- カードレンダラーをリファクタリング。能力エディターは即時チェックボックスコミットではなく、明示的な「レベルを適用」ボタン付きのステージ型ワイヤードラフトを使用します。
|
|
23
|
+
|
|
24
|
+
### 修正
|
|
25
|
+
|
|
26
|
+
- 未使用ヘルパー `effortLevelsOf` を削除。レガシー `_N` 未使用パラメータの lint 警告を抑制。
|
|
27
|
+
|
|
28
|
+
## [0.5.2] — 2026-02-?
|
|
29
|
+
|
|
30
|
+
### 追加
|
|
31
|
+
|
|
32
|
+
- **`dsh-llm-openai-completions` の自動引き継ぎ**:カスタム openai-completions ゲートウェイ(`api: openai-completions` または非公式 baseURL)**かつ** いずれかのモデルが `reasoningEfforts` テーブルを宣言する provider を `llm-openai-completions.providers` に `enabled: true` でマージ。プラグイン起動、`llm/adapters-updated`、設定変更時に実行。ソフト結合(名前空間未登録なら書き込みをスキップ)。
|
|
33
|
+
|
|
34
|
+
## [0.5.1] — 2026-02-?
|
|
35
|
+
|
|
36
|
+
### 追加
|
|
37
|
+
|
|
38
|
+
- モデル能力エディターカード:すべてのカスタム `llm-pi-ai` プロバイダーモデルに視覚 / 思考 / effort サポート / effort レベル / 思考形式を提供し、`llm-pi-ai` 設定名前空間へ直接書き込み(公式パッケージの変更なし)。
|
|
39
|
+
|
|
40
|
+
## [0.5.0] — 2026-02-?
|
|
41
|
+
|
|
42
|
+
### 追加
|
|
43
|
+
|
|
44
|
+
- モデル能力ガード:推論能力を宣言していないモデルに `reasoning_effort` を送信しない(Qwen3.6 などのカスタム openai-completions ルートは除去)。
|
|
45
|
+
- dsh rc.7+ での `low` 透過。rc.6 時代のアダプターは構成者が確認した `models` オーバーライドで `low` を広告可能。
|
|
46
|
+
- `models` 設定セクション(`provider/model` → `vision` / `thinking` / `efforts`)。
|
|
47
|
+
|
|
48
|
+
## [0.4.1] — 2026-02-?
|
|
49
|
+
|
|
50
|
+
### 修正
|
|
51
|
+
|
|
52
|
+
- adapter `resolveModel` のラップが `llm/adapters-updated` で再実行されるようにし、アダプターがプラグイン適用後に登録されても `Auto` マスクが表示されるように。
|
|
53
|
+
|
|
54
|
+
## [0.4.0] — 2026-02-?
|
|
55
|
+
|
|
56
|
+
### 変更
|
|
57
|
+
|
|
58
|
+
- `@deepseek-ai/dsh-settings` への値依存を撤廃。設定登録は cordis `settings` サービス経由(ローカルの `installSettingsSection` 相当)。
|
|
59
|
+
- カード登録に `id` と `key` の両方を指定し、CLI(keyed)と DSH Desktop(list)の slot 宣言の両方で動作。
|
|
60
|
+
|
|
61
|
+
## [0.3.0] — 2026-02-?
|
|
62
|
+
|
|
63
|
+
### 追加
|
|
64
|
+
|
|
65
|
+
- モデルセレクターの `Auto`(マスク):adapter `resolveModel` の efforts に注入。プラグインが `agent/request` waterfall(`prepend` 登録)で `low` / `high` / `max` をステップごとにスケジュール。
|
|
66
|
+
|
|
67
|
+
## [0.2.1] — 2026-02-?
|
|
68
|
+
|
|
69
|
+
### 修正
|
|
70
|
+
|
|
71
|
+
- `exports["./client"]` を追加し、dsh の client-modules ローダーが client bundle を発見できるように。
|
|
72
|
+
|
|
73
|
+
## [0.2.0] — 2026-02-?
|
|
74
|
+
|
|
75
|
+
### 追加
|
|
76
|
+
|
|
77
|
+
- 最初の client 設定カード(レベルピッカー + スケジューラートグル)。
|
|
78
|
+
|
|
79
|
+
## [0.1.1] — 2026-02-?
|
|
80
|
+
|
|
81
|
+
### 修正
|
|
82
|
+
|
|
83
|
+
- 生の TS ソースではなくコンパイル済み `lib/` を公開(Node 22 は `node_modules` 配下の `.ts` の type-stripping を禁止)。
|
|
84
|
+
|
|
85
|
+
## [0.1.0] — 2026-02-?
|
|
86
|
+
|
|
87
|
+
### 追加
|
|
88
|
+
|
|
89
|
+
- 初回リリース:固定 reasoning effort の `agent/request` 注入。
|
package/CHANGELOG.ko.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# 변경 기록
|
|
2
|
+
|
|
3
|
+
`dsh-thinking-levels`의 주요 변경 사항을 기록합니다.
|
|
4
|
+
|
|
5
|
+
- [English changelog](./CHANGELOG.md)
|
|
6
|
+
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
7
|
+
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
8
|
+
|
|
9
|
+
## [0.6.0] — 2026-02-?
|
|
10
|
+
|
|
11
|
+
### 추가
|
|
12
|
+
|
|
13
|
+
- **8개 표준 수준**(dsh-thinking-effort에 맞춤): `off / on / minimal / low / medium / high / xhigh / max`(+ `auto` 스케줄러 마스크). `on`은 사고 활성화 토글로 모델 기본 강도(`high` 또는 가장 높은 선언 사고 수준)로 클램프됩니다. `minimal` / `medium` / `xhigh`는 사용자 지정 게이트웨이가 선언하면 통과하고 공식 어댑터에서는 `high`로 접힙니다.
|
|
14
|
+
- **설정 카드의 사용자 지정 전송 값 매핑**(dsh-thinking-effort에서 차용): 각 수준을 체크하고 게이트웨이에 보낼 값을 입력(예: `high` → `ultra`). `off`를 비워 두면 전송되지 않습니다. 모델의 `reasoningEfforts` 테이블로 저장됩니다.
|
|
15
|
+
- **설정 카드 표시 개편**(dsh-thinking-effort에서 차용): 제공자가 모델을 그룹화하고, 각 모델 행은 텍스트/이미지/컨텍스트 배지를 표시하며, 모델을 펼치면 수준별 편집기가 되고, 검색 상자로 모델을 필터링하며, 원클릭 프리셋(공식 DeepSeek 방식 / 일반 방식)을 모든 사고 모델에 적용합니다.
|
|
16
|
+
- **다국어 지원**: 일본어(`ja`)와 한국어(`ko`) 사전, `README.ja.md` / `README.ko.md`, `INSTALL.{md,zh,ja,ko}.md`, `CHANGELOG.{md,ja,ko}.md`. 참고: 공식 DSH locale 런타임은 아직 `zh` / `en`만 제공하므로 `ja` / `ko` 선택에는 DSH 포크가 필요합니다(README 호환성 참고 참조).
|
|
17
|
+
|
|
18
|
+
### 변경
|
|
19
|
+
|
|
20
|
+
- `level` 구성 표면이 9개 값 전체를 받습니다(`off | on | minimal | low | medium | high | xhigh | max | auto`).
|
|
21
|
+
- `models[].efforts` 오버라이드가 확장 수준을 받습니다.
|
|
22
|
+
- 카드 렌더러 리팩터링. 능력 편집기는 즉시 체크박스 커밋 대신 명시적「수준 적용」버튼이 있는 스테이지형 와이어 드래프트를 사용합니다.
|
|
23
|
+
|
|
24
|
+
### 수정
|
|
25
|
+
|
|
26
|
+
- 미사용 헬퍼 `effortLevelsOf` 제거. 레거시 `_N` 미사용 매개변수 lint 경고 억제.
|
|
27
|
+
|
|
28
|
+
## [0.5.2] — 2026-02-?
|
|
29
|
+
|
|
30
|
+
### 추가
|
|
31
|
+
|
|
32
|
+
- **`dsh-llm-openai-completions` 자동 인계**: 사용자 지정 openai-completions 게이트웨이(`api: openai-completions` 또는 비공식 baseURL) **그리고** 어떤 모델이 `reasoningEfforts` 테이블을 선언한 provider를 `llm-openai-completions.providers`에 `enabled: true`로 병합. 플러그인 시작, `llm/adapters-updated`, 설정 변경 시 실행. 소프트 결합(네임스페이스 미등록이면 쓰기 건너뜀).
|
|
33
|
+
|
|
34
|
+
## [0.5.1] — 2026-02-?
|
|
35
|
+
|
|
36
|
+
### 추가
|
|
37
|
+
|
|
38
|
+
- 모델 기능 편집기 카드: 모든 사용자 지정 `llm-pi-ai` 제공자 모델에 시각 / 사고 / effort 지원 / effort 수준 / 사고 형식을 제공하고 `llm-pi-ai` 설정 네임스페이스에 직접 기록(공식 패키지 변경 없음).
|
|
39
|
+
|
|
40
|
+
## [0.5.0] — 2026-02-?
|
|
41
|
+
|
|
42
|
+
### 추가
|
|
43
|
+
|
|
44
|
+
- 모델 기능 가드: 추론 기능을 선언하지 않은 모델에 `reasoning_effort`를 보내지 않음(Qwen3.6 등 사용자 지정 openai-completions 라우트는 제거).
|
|
45
|
+
- dsh rc.7+에서 `low` 통과. rc.6 시대 어댑터는 구성자가 확인한 `models` 오버라이드로 `low`를 광고 가능.
|
|
46
|
+
- `models` 구성 섹션(`provider/model` → `vision` / `thinking` / `efforts`).
|
|
47
|
+
|
|
48
|
+
## [0.4.1] — 2026-02-?
|
|
49
|
+
|
|
50
|
+
### 수정
|
|
51
|
+
|
|
52
|
+
- adapter `resolveModel` 래핑이 `llm/adapters-updated`에서 다시 실행되어 어댑터가 플러그인 적용 후 등록되어도 `Auto` 마스크가 표시됩니다.
|
|
53
|
+
|
|
54
|
+
## [0.4.0] — 2026-02-?
|
|
55
|
+
|
|
56
|
+
### 변경
|
|
57
|
+
|
|
58
|
+
- `@deepseek-ai/dsh-settings` 값 의존성 제거. 설정 등록은 cordis `settings` 서비스 경유(로컬 `installSettingsSection` 동등물).
|
|
59
|
+
- 카드 등록에 `id`와 `key`를 모두 지정하여 CLI(keyed)와 DSH Desktop(list) slot 선언 모두에서 작동.
|
|
60
|
+
|
|
61
|
+
## [0.3.0] — 2026-02-?
|
|
62
|
+
|
|
63
|
+
### 추가
|
|
64
|
+
|
|
65
|
+
- 모델 선택기 `Auto`(마스크): adapter `resolveModel` efforts에 주입. 플러그인이 `agent/request` waterfall(`prepend` 등록)에서 `low` / `high` / `max`를 스텝별로 스케줄링.
|
|
66
|
+
|
|
67
|
+
## [0.2.1] — 2026-02-?
|
|
68
|
+
|
|
69
|
+
### 수정
|
|
70
|
+
|
|
71
|
+
- `exports["./client"]` 추가로 dsh의 client-modules 로더가 client bundle을 발견.
|
|
72
|
+
|
|
73
|
+
## [0.2.0] — 2026-02-?
|
|
74
|
+
|
|
75
|
+
### 추가
|
|
76
|
+
|
|
77
|
+
- 첫 client 설정 카드(수준 선택기 + 스케줄러 토글).
|
|
78
|
+
|
|
79
|
+
## [0.1.1] — 2026-02-?
|
|
80
|
+
|
|
81
|
+
### 수정
|
|
82
|
+
|
|
83
|
+
- 원본 TS 소스 대신 컴파일된 `lib/`를 게시(Node 22는 `node_modules` 아래 `.ts`의 type-stripping 금지).
|
|
84
|
+
|
|
85
|
+
## [0.1.0] — 2026-02-?
|
|
86
|
+
|
|
87
|
+
### 추가
|
|
88
|
+
|
|
89
|
+
- 최초 릴리스: 고정 reasoning effort의 `agent/request` 주입.
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `dsh-thinking-levels` are documented here.
|
|
4
|
+
|
|
5
|
+
- [English changelog](./CHANGELOG.md)
|
|
6
|
+
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
7
|
+
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
8
|
+
|
|
9
|
+
## [0.6.0] — 2026-02-?
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Eight standard levels** aligned with dsh-thinking-effort: `off / on / minimal / low / medium / high / xhigh / max` (plus the `auto` scheduler mask). `on` is the enable-thinking toggle, clamped to the model's default strength (`high` or the highest advertised thinking level); `minimal` / `medium` / `xhigh` pass through when a custom gateway advertises them and collapse onto `high` on the official adapter.
|
|
14
|
+
- **Custom wire mapping in the settings card** (borrowed from dsh-thinking-effort): each level can be ticked and given the exact value sent to the gateway (e.g. `high` → `ultra`); `off` left empty means "do not send". Stored as the model's `reasoningEfforts` table.
|
|
15
|
+
- **Settings-card presentation overhaul** (borrowed from dsh-thinking-effort): providers group their models, each model row shows text/image/context badges, models expand into a per-level editor, a search box filters models, and one-click presets (official DeepSeek style / generic) apply to every thinking model.
|
|
16
|
+
- **Multilingual**: Japanese (`ja`) and Korean (`ko`) dictionaries, plus `README.ja.md` / `README.ko.md`, `INSTALL.{md,zh,ja,ko}.md`, and `CHANGELOG.{md,ja,ko}.md`. Note: the official DSH locale runtime still exposes only `zh` / `en`, so `ja` / `ko` selection requires a DSH fork (see README compatibility note).
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- `level` config surface accepts the full nine values (`off | on | minimal | low | medium | high | xhigh | max | auto`).
|
|
21
|
+
- `models[].efforts` override accepts the extended levels.
|
|
22
|
+
- Card renderer refactored; capability editors now use a staged wire draft with an explicit **Apply levels** button instead of immediate checkbox commits.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- `effortLevelsOf` unused helper removed; legacy `_N` unused-parameter lint warning silenced.
|
|
27
|
+
|
|
28
|
+
## [0.5.2] — 2026-02-?
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- **Auto-takeover of `dsh-llm-openai-completions`**: providers that are custom openai-completions gateways (`api: openai-completions` or non-official baseURL) **and** declare a `reasoningEfforts` table on any model are merged into `llm-openai-completions.providers` with `enabled: true`. Runs on plugin start, `llm/adapters-updated`, and settings changes; soft-coupled (skips the write when the namespace is unregistered).
|
|
33
|
+
|
|
34
|
+
## [0.5.1] — 2026-02-?
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
|
|
38
|
+
- Model-capability editor card: vision / thinking / supports-effort / effort levels / thinking format for every custom `llm-pi-ai` provider model, written straight to the `llm-pi-ai` settings namespace (no official-package changes).
|
|
39
|
+
|
|
40
|
+
## [0.5.0] — 2026-02-?
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
|
|
44
|
+
- Model-aware guard: never send `reasoning_effort` to a model that does not advertise it (custom openai-completions routes such as Qwen3.6 are stripped instead).
|
|
45
|
+
- `low` passthrough on dsh rc.7+; rc.6-era adapters can advertise `low` via a configurer-confirmed `models` override.
|
|
46
|
+
- `models` config section (`provider/model` → `vision` / `thinking` / `efforts`).
|
|
47
|
+
|
|
48
|
+
## [0.4.1] — 2026-02-?
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- Adapter `resolveModel` wrapper now re-runs on `llm/adapters-updated` so the `Auto` mask appears even when adapters register after plugin apply.
|
|
53
|
+
|
|
54
|
+
## [0.4.0] — 2026-02-?
|
|
55
|
+
|
|
56
|
+
### Changed
|
|
57
|
+
|
|
58
|
+
- Removed the value dependency on `@deepseek-ai/dsh-settings`; settings registration goes through the cordis `settings` service (local `installSettingsSection` equivalent).
|
|
59
|
+
- Card registration supplies both `id` and `key` so it works on CLI (keyed) and DSH Desktop (list) slot declarations.
|
|
60
|
+
|
|
61
|
+
## [0.3.0] — 2026-02-?
|
|
62
|
+
|
|
63
|
+
### Added
|
|
64
|
+
|
|
65
|
+
- Model-selector `Auto` (mask): injected into adapter `resolveModel` efforts; the plugin schedules `low` / `high` / `max` per step via the `agent/request` waterfall (registered with `prepend` so the session model-selection assembly cannot overwrite it).
|
|
66
|
+
|
|
67
|
+
## [0.2.1] — 2026-02-?
|
|
68
|
+
|
|
69
|
+
### Fixed
|
|
70
|
+
|
|
71
|
+
- Added `exports["./client"]` so the client bundle is discovered by dsh's client-modules loader.
|
|
72
|
+
|
|
73
|
+
## [0.2.0] — 2026-02-?
|
|
74
|
+
|
|
75
|
+
### Added
|
|
76
|
+
|
|
77
|
+
- First client settings card (level picker + scheduler toggles).
|
|
78
|
+
|
|
79
|
+
## [0.1.1] — 2026-02-?
|
|
80
|
+
|
|
81
|
+
### Fixed
|
|
82
|
+
|
|
83
|
+
- Publish compiled `lib/` instead of raw TS sources (Node 22 forbids type-stripping `.ts` under `node_modules`).
|
|
84
|
+
|
|
85
|
+
## [0.1.0] — 2026-02-?
|
|
86
|
+
|
|
87
|
+
### Added
|
|
88
|
+
|
|
89
|
+
- Initial release: `agent/request` injection of a fixed reasoning effort.
|
package/INSTALL.ja.md
ADDED
|
@@ -0,0 +1,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 ページをリフレッシュしてください。「設定 → プラグイン → 設定可能なプラグイン」を開き、「思考レベル」カードを展開します。
|
|
120
|
+
|
|
121
|
+
1. レベルセレクターは 8 つの標準レベルに `auto` を加えたものを提供します。下にスケジューラートグルがあります。
|
|
122
|
+
2. モデル能力セクションはプロバイダーごとにグループ化されます。各モデル行はテキスト/画像バッジと宣言済みコンテキスト長を表示し、展開するとレベル別エディターになります。
|
|
123
|
+
3. レベルにチェックを入れ、ゲートウェイ送信値(例:`high` → `ultra`)を入力して「レベルを適用」を押します。`off` を空欄にすると送信されません。
|
|
124
|
+
4. 検索ボックスでモデルを絞り込み、公式/汎用プリセットで全思考モデルに一括適用できます。
|
|
125
|
+
|
|
126
|
+
## 日本語と韓国語のサポート状況
|
|
127
|
+
|
|
128
|
+
プラグインには `ja` と `ko` の辞書が含まれていますが、現在の公式 DSH リリースは `LocaleRuntime` 経由で `zh` と `en` のみを提供します。純正 DSH で日本語または韓国語を選択すると `locale "<id>" is not registered` で失敗します。
|
|
129
|
+
|
|
130
|
+
公式サポートが来る前に使うには、DSH フォークを保守して更新してください:
|
|
131
|
+
|
|
132
|
+
- `packages/client/locale/src/locale-settings.ts`:`LOCALE_IDS` に `ja` と `ko` を追加(Host プリファレンススキーマはこのリストから派生)。
|
|
133
|
+
- `packages/client/locale/src/client/index.ts`:`LOCALES` に `{ id: 'ja', label: '日本語' }` と `{ id: 'ko', label: '한국어' }` を追加。
|
|
134
|
+
- 対応するコア辞書とテストを追加し、フォーク版を再ビルドして実行。
|
|
135
|
+
|
|
136
|
+
プラグイン単体では DSH のグローバル locale 一覧を拡張できません。フォークのドキュメントにあるビルドと公式 profile コマンドを使用してください。profile マニフェストの手動編集はしないでください。
|
|
137
|
+
|
|
138
|
+
## 6. トラブルシューティング
|
|
139
|
+
|
|
140
|
+
| 症状 | 対処 |
|
|
141
|
+
| --- | --- |
|
|
142
|
+
| `dsh` が見つからない | 公式 DSH CLI をインストール/有効化。普通の npm/pnpm コマンドで profile インストールを再現しないでください。 |
|
|
143
|
+
| `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | profile の `pnpm-workspace.yaml` の `minimumReleaseAgeExclude` にバージョンを追加。 |
|
|
144
|
+
| プラグインが「無効/未マウント」でエラーなし | profile 構成を確認。ホストは `@deepseek-ai/dsh-settings` に値依存してはいけません(本プラグインはしていません)。 |
|
|
145
|
+
| client エントリが `__DSH_BOOT__` にない | `exports["./client"]` が存在し、host fiber が確立されていることを確認。 |
|
|
146
|
+
| モデルセレクターに `Auto` がない | adapter `resolveModel` のラップが効いているか確認(`llm/adapters-updated` で再ラップ)。 |
|
|
147
|
+
| 設定カードの書き込み失敗 | llm-pi-ai スキーマに拒否された(例:思考レベルがない `reasoningEfforts` テーブル)。入力値を確認。 |
|
|
148
|
+
| Subagent が `UNSUPPORTED_REASONING_EFFORT` | 対象モデルがレベルを宣言していない。対応レベルを使うかプロバイダー既定に戻す。 |
|
|
149
|
+
| ブラウザが古い bundle を表示 | アップグレード後にハードリフレッシュ(Ctrl+Shift+R)。 |
|
|
150
|
+
|
|
151
|
+
## 7. アンインストール
|
|
152
|
+
|
|
153
|
+
公式コマンドを使用:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
dsh plugin --profile <profile> remove dsh-thinking-levels -w
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
構成から bundle が消えたことを確認:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
dsh --profile <profile> --dump-default-config
|
|
163
|
+
```
|
package/INSTALL.ko.md
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# 설치 안내(공식 DSH CLI)
|
|
2
|
+
|
|
3
|
+
이 가이드는 공식 `dsh plugin` 명령만 사용합니다. 이 명령은 의존성을 profile에 설치하고 `dsh.profile.bundles`를 동기화합니다. 일반 `npm install`, profile에서 직접 `pnpm add`, profile 매니페스트 수동 편집으로 대체하지 마세요.
|
|
4
|
+
|
|
5
|
+
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
6
|
+
- [English installation guide](./INSTALL.md)
|
|
7
|
+
- [中文安装指南](./INSTALL.zh.md)
|
|
8
|
+
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
9
|
+
- [한국어 README](./README.ko.md)
|
|
10
|
+
- [English README](./README.md)
|
|
11
|
+
- [中文 README](./README.zh.md)
|
|
12
|
+
- [日本語 README](./README.ja.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 재시작, 브라우저 측은 웹 페이지 새로고침이 필요합니다.
|
|
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를 재시작하고 웹 페이지를 새로고침하세요. 「설정 → 플러그인 → 설정 가능한 플러그인」을 열고 「사고 수준」 카드를 펼치세요.
|
|
120
|
+
|
|
121
|
+
1. 수준 선택기는 8개 표준 수준에 `auto`를 더한 목록을 제공합니다. 아래에 스케줄러 토글이 있습니다.
|
|
122
|
+
2. 모델 기능 섹션은 제공자별로 그룹화됩니다. 각 모델 행은 텍스트/이미지 배지와 선언된 컨텍스트 길이를 표시하며, 펼치면 수준별 편집기가 됩니다.
|
|
123
|
+
3. 수준을 체크하고 게이트웨이 전송 값(예: `high` → `ultra`)을 입력한 뒤 「수준 적용」을 누르세요. `off`를 비워 두면 전송되지 않습니다.
|
|
124
|
+
4. 검색 상자로 모델을 필터링하고, 공식/일반 프리셋으로 모든 사고 모델에 일괄 적용할 수 있습니다.
|
|
125
|
+
|
|
126
|
+
## 일본어·한국어 지원 상태
|
|
127
|
+
|
|
128
|
+
플러그인에는 `ja`와 `ko` 사전이 포함되어 있지만, 현재 공식 DSH 릴리스는 `LocaleRuntime`을 통해 `zh`와 `en`만 제공합니다. 순정 DSH에서 일본어 또는 한국어를 선택하면 `locale "<id>" is not registered` 오류가 발생합니다.
|
|
129
|
+
|
|
130
|
+
공식 지원 전에 사용하려면 DSH 포크를 유지하며 업데이트하세요:
|
|
131
|
+
|
|
132
|
+
- `packages/client/locale/src/locale-settings.ts`: `LOCALE_IDS`에 `ja`와 `ko` 추가(Host 기본 설정 스키마가 이 목록에서 파생).
|
|
133
|
+
- `packages/client/locale/src/client/index.ts`: `LOCALES`에 `{ id: 'ja', label: '日本語' }`와 `{ id: 'ko', label: '한국어' }` 추가.
|
|
134
|
+
- 해당 핵심 사전과 테스트를 추가하고 포크 버전을 다시 빌드하여 실행.
|
|
135
|
+
|
|
136
|
+
플러그인만으로는 DSH의 전역 locale 목록을 확장할 수 없습니다. 포크 문서의 빌드 및 공식 profile 명령을 사용하세요. profile 매니페스트를 수동으로 편집하지 마세요.
|
|
137
|
+
|
|
138
|
+
## 6. 트러블슈팅
|
|
139
|
+
|
|
140
|
+
| 증상 | 조치 |
|
|
141
|
+
| --- | --- |
|
|
142
|
+
| `dsh`를 찾을 수 없음 | 공식 DSH CLI를 설치/활성화. 일반 npm/pnpm 명령으로 profile 설치를 흉내 내지 마세요. |
|
|
143
|
+
| `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | profile의 `pnpm-workspace.yaml` `minimumReleaseAgeExclude`에 버전 추가. |
|
|
144
|
+
| 플러그인이「비활성화/미마운트」이며 오류 없음 | profile 구성을 확인. 호스트는 `@deepseek-ai/dsh-settings`에 값 의존하면 안 됩니다(본 플러그인은 안 함). |
|
|
145
|
+
| client 항목이 `__DSH_BOOT__`에 없음 | `exports["./client"]`가 있고 host fiber가 생성되었는지 확인. |
|
|
146
|
+
| 모델 선택기에 `Auto` 없음 | adapter `resolveModel` 래핑이 적용되었는지 확인(`llm/adapters-updated`에서 재래핑). |
|
|
147
|
+
| 설정 카드 쓰기 실패 | llm-pi-ai 스키마에 거부됨(예: 사고 수준이 없는 `reasoningEfforts` 테이블). 입력 값 확인. |
|
|
148
|
+
| Subagent가 `UNSUPPORTED_REASONING_EFFORT` | 대상 모델이 해당 수준을 선언하지 않음. 지원 수준을 쓰거나 제공자 기본값으로 복원. |
|
|
149
|
+
| 브라우저가 오래된 bundle 표시 | 업그레이드 후 하드 새로고침(Ctrl+Shift+R). |
|
|
150
|
+
|
|
151
|
+
## 7. 제거
|
|
152
|
+
|
|
153
|
+
공식 명령 사용:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
dsh plugin --profile <profile> remove dsh-thinking-levels -w
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
구성에서 bundle이 사라졌는지 확인:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
dsh --profile <profile> --dump-default-config
|
|
163
|
+
```
|