dsh-opencode 0.1.3 → 0.1.4
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/README.md +9 -7
- package/lib/client.d.ts +1738 -0
- package/lib/client.js +537 -0
- package/lib/commands.js +8 -37
- package/lib/config.js +13 -2
- package/lib/index.js +5 -10
- package/lib/transport.js +1 -1
- package/package.json +34 -2
- package/lib/keyring.js +0 -109
package/README.md
CHANGED
|
@@ -20,22 +20,24 @@ pnpm dsh plugin --profile web remove dsh-opencode
|
|
|
20
20
|
## 使い方
|
|
21
21
|
|
|
22
22
|
1. DSH を再起動すると両ルートが登録される(以降のカタログ更新に再起動は不要)
|
|
23
|
-
2. `/dsh-opencode`
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
3. モデルセレクターから OpenCode のモデルを選んで使う
|
|
23
|
+
2. `/dsh-opencode` を引数なしで実行し、Client のポップアップから Zen または Go を選ぶ
|
|
24
|
+
3. Settings > Models の各 Live 行、またはセットアップ画面で API キーを保存する
|
|
25
|
+
4. モデルセレクターから OpenCode のモデルを選んで使う
|
|
27
26
|
|
|
28
27
|
| コマンド | 効果 |
|
|
29
28
|
|---|---|
|
|
30
|
-
| `/dsh-opencode [
|
|
29
|
+
| `/dsh-opencode [status\|help]` | API キーを含めずに各 route の状態を表示 |
|
|
31
30
|
| `/opencode-refresh [all\|zen\|go]` | カタログを強制更新 |
|
|
32
31
|
| `/opencode-status` | 更新時刻・エラー・モデル数・キー設定状況 |
|
|
33
32
|
| `/opencode-models <zen\|go> [--all]` | モデル一覧(`--all` で非対応含む) |
|
|
34
33
|
|
|
35
|
-
- API
|
|
36
|
-
-
|
|
34
|
+
- API キーはコマンド引数では受け取らず、Client の password 欄から DSH Credentials API にだけ保存
|
|
35
|
+
- 既定では Zen / Go が `OPENCODE_API_KEY` を共有するため、1 回の保存が両 route に反映
|
|
36
|
+
- カスタム credential reference は選択した route だけに保存。読み取り専用・確認不能は入力を無効化
|
|
37
37
|
- 環境変数 `OPENCODE_API_KEY`(両ルート既定参照)でも可
|
|
38
38
|
|
|
39
|
+
Client bundle は `pnpm build` で Host と一緒に生成される。Client command decoration、provider-card、shell overlay、Credentials Remote を持つ DSH 構成を対象とし、実ブラウザーでの互換性確認が必要です。
|
|
40
|
+
|
|
39
41
|
## 設定
|
|
40
42
|
|
|
41
43
|
名前空間 `opencode-live`(デフォルトは `cordis.patch.yml` 参照):
|