Skip to content

Commit 9d48a72

Browse files
committed
Update README
1 parent d93f2aa commit 9d48a72

File tree

4 files changed

+97
-24
lines changed

4 files changed

+97
-24
lines changed

README.ja.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,19 @@ ultrathink を通じて自動的に動作させることもできますが、必
132132
あなたがユーザーの oh-my-opencode 設定を支援する LLM エージェントなら、以下の手順に従ってください:
133133

134134

135+
### ステップ 0: セットアップについてユーザーに尋ねる
136+
137+
OpenCode は様々なモデルをサポートしており、当プラグインは様々な最先端 LLM の使用を提案しています。そのため、ユーザーに以下の質問をする必要があります:
138+
1. Claude Pro/Max のサブスクリプションをお持ちですか?お持ちでない場合、メインオーケストレーターモデルとして 'opencode/big-pickle' (glm 4.6 として知られる) を使用することになります (非推奨)。
139+
-> ユーザーが「はい」と答えた場合、ToDo 追加: "ユーザーの Claude Pro/Max 認証設定"
140+
-> ユーザーが「いいえ」と答えた場合、ToDo 追加: "oh-my-opencode.json の OmO エージェントモデルを opencode/big-pickle にオーバーライド"
141+
2. ChatGPT のサブスクリプションをお持ちですか?お持ちでない場合、oracle エージェントに 32k thinking オプション付きの 'claude-opus-4-5' を使用することになります。
142+
-> ユーザーが「はい」と答えた場合、ToDo 追加: "ユーザーの ChatGPT 認証設定"
143+
-> ユーザーが「いいえ」と答えた場合、ToDo 追加: "oh-my-opencode.json の oracle エージェントモデルを 32k thinking 付きの claude-opus-4-5 にオーバーライド"
144+
3. Gemini モデルを統合しますか?統合しない場合、美しいデザインを享受できません。
145+
-> ユーザーが「はい」と答えた場合、ToDo 追加: "Google OAuth 設定"
146+
-> ユーザーが「いいえ」と答えた場合、ToDo 追加: "oh-my-opencode.json の frontend-ui-ux-engineer エージェントモデルを 32k thinking 付きの claude-opus-4-5 にオーバーライド"
147+
135148
### ステップ 1: OpenCode インストール確認
136149

137150
```bash
@@ -147,6 +160,12 @@ OpenCode がインストールされていない場合は、[OpenCode インス
147160

148161
### ステップ 2: oh-my-opencode プラグイン設定
149162

163+
#### JSONC
164+
- `~/.config/opencode/opencode.jsonc` が存在する場合は、そこで `oh-my-opencode` プラグインを追加してください。
165+
166+
#### JSON
167+
- opencode.jsonc が存在しない場合は、以下のコマンドを実行して作成・登録してください。
168+
150169
```bash
151170
mkdir -p ~/.config/opencode
152171

@@ -255,6 +274,22 @@ opencode auth login
255274

256275
プラグインはデフォルトで完璧に動作します。推奨される `google_auth: true` 設定を除き、明示的な要求なしに他の設定を変更したり機能をオフにしないでください。
257276

277+
### セットアップの確認
278+
279+
このドキュメントをもう一度読み、すべて正しく完了したか考えてみてください。
280+
281+
### ユーザーに「おめでとうございます!🎉」と伝える
282+
283+
ユーザーに伝えてください:おめでとうございます!🎉 OhMyOpenCode のセットアップが完了しました!ターミナルで `opencode` と入力して使い始めてください。
284+
285+
そして、この Readme が提案するように、当プラグインが提案するカタログや機能を、あなたが想像できる素晴らしいユースケースの例とともにリストアップしてください。
286+
287+
### 複雑すぎますか?
288+
289+
これが全部大変に感じるなら、一つだけ覚えてください:**プロンプトに `ultrawork` という単語を含めてください。**
290+
291+
それだけです。エージェントが残りを全部自動で処理します。
292+
258293
</details>
259294

260295

README.ko.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,18 @@ ultrathink 를 통해 자동으로 동작하게 할 수 있지만, 그렇지 않
129129
당신이 사용자의 oh-my-opencode 설정을 돕는 LLM Agent라면, 다음 단계를 따르세요:
130130

131131

132-
### 인간인 당신을 위한 설치 가이드
132+
### 0단계: 사용자에게 설정에 대해 물어보세요.
133+
134+
OpenCode는 다양한 모델을 지원하며, 이 플러그인은 다양한 프론티어 LLM 사용을 제안합니다. 따라서 사용자에게 다음 질문을 해야 합니다:
135+
1. Claude Pro/Max 구독이 있으신가요? 그렇지 않다면 메인 오케스트레이터 모델로 'opencode/big-pickle'(glm 4.6으로 알려짐)을 사용하게 됩니다 (권장하지 않음).
136+
-> 사용자가 '예'라고 답하면, 할 일 추가: "사용자 Claude Pro/Max 인증 설정"
137+
-> 사용자가 '아니오'라고 답하면, 할 일 추가: "oh-my-opencode.json의 OmO 에이전트 모델을 opencode/big-pickle로 재정의"
138+
2. ChatGPT 구독이 있으신가요? 그렇지 않다면 oracle 에이전트에 32k thinking 옵션이 있는 'claude-opus-4-5'를 사용하게 됩니다.
139+
-> 사용자가 '예'라고 답하면, 할 일 추가: "사용자 ChatGPT 인증 설정"
140+
-> 사용자가 '아니오'라고 답하면, 할 일 추가: "oh-my-opencode.json의 oracle 에이전트 모델을 32k thinking이 있는 claude-opus-4-5로 재정의"
141+
3. Gemini 모델을 통합하시겠습니까? 그렇지 않다면 아름다운 디자인을 즐길 수 없습니다.
142+
-> 사용자가 '예'라고 답하면, 할 일 추가: "Google OAuth 설정"
143+
-> 사용자가 '아니오'라고 답하면, 할 일 추가: "oh-my-opencode.json의 frontend-ui-ux-engineer 에이전트 모델을 32k thinking이 있는 claude-opus-4-5로 재정의"
133144

134145
### 1단계: OpenCode 설치 확인
135146

@@ -146,6 +157,12 @@ OpenCode가 설치되어 있지 않다면, [OpenCode 설치 가이드](https://o
146157

147158
### 2단계: oh-my-opencode 플러그인 설정
148159

160+
#### JSONC
161+
- `~/.config/opencode/opencode.jsonc`가 존재한다면, 그곳에 `oh-my-opencode` 플러그인을 추가하세요.
162+
163+
#### JSON
164+
- opencode.jsonc가 없다면, 다음 명령어를 실행하여 생성하고 등록하세요.
165+
149166
```bash
150167
mkdir -p ~/.config/opencode
151168

@@ -254,6 +271,22 @@ opencode auth login
254271

255272
플러그인은 기본값으로 완벽하게 동작합니다. 권장 사항인 `google_auth: true` 설정을 제외하고는, 명시적인 요청 없이 다른 설정을 변경하거나 기능을 끄지 마세요.
256273

274+
### 설정 확인
275+
276+
이 문서를 다시 읽고, 모든 것이 올바르게 수행되었는지 생각해보세요.
277+
278+
### 사용자에게 '축하합니다! 🎉'라고 말하세요
279+
280+
사용자에게 말하세요: 축하합니다! 🎉 OhMyOpenCode 설정을 성공적으로 마쳤습니다! 터미널에 `opencode`를 입력하여 사용을 시작하세요.
281+
282+
그리고 이 리드미가 제안하듯, 우리 플러그인이 제안하는 카탈로그와 기능들을 나열하고, 당신이 상상할 수 있는 멋진 유스케이스 예시를 함께 제시하세요.
283+
284+
### 너무 복잡한가요?
285+
286+
이 모든 것이 벅차게 느껴진다면, 딱 하나만 기억하세요: **프롬프트에 `ultrawork` 라는 단어를 포함시키세요.**
287+
288+
그게 끝입니다. 에이전트가 알아서 나머지를 처리할 겁니다.
289+
257290
</details>
258291

259292

README.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -204,35 +204,27 @@ Following is the configuration guides for each providers. Please use interactive
204204

205205
```bash
206206
opencode auth login
207-
# Provider: Select Anthropic
208-
# Login method: Select Claude Pro/Max
207+
# Interactive Terminal: find Provider: Select Anthropic
208+
# Interactive Terminal: find Login method: Select Claude Pro/Max
209209
# Guide user through OAuth flow in browser
210210
# Wait for completion
211211
# Verify success and confirm with user
212212
```
213213

214-
#### 4.2 Google Gemini (Antigravity OAuth)
215-
216-
First, enable Google auth in `~/.config/opencode/oh-my-opencode.json`:
217-
218-
```json
219-
{
220-
"google_auth": true
221-
}
222-
```
214+
#### Google Gemini (Antigravity OAuth)
223215

224216
Then authenticate:
225217

226218
```bash
227219
opencode auth login
228-
# Provider: Select Google
229-
# Login method: Select OAuth with Google (Antigravity)
230-
# Guide user through OAuth flow in browser
220+
# Interactive Terminal: find Provider: Select Google
221+
# Interactive Terminal: find Login method: Select Google
222+
# Guide user through OAuth flow in browser. You use tools like pbcopy or other equivalents depending on your OS, and tell user that you have copied the link and paste it to the browser
231223
# Wait for completion
232224
# Verify success and confirm with user
233225
```
234226

235-
#### 4.3 OpenAI (ChatGPT Plus/Pro)
227+
#### OpenAI (ChatGPT Plus/Pro)
236228

237229
First, add the opencode-openai-codex-auth plugin:
238230

@@ -257,27 +249,37 @@ First, add the opencode-openai-codex-auth plugin:
257249

258250
Then run `cd ~/.config/opencode && bun i`. In `opencode.json`, use `"opencode-openai-codex-auth"` without the version suffix.
259251

260-
#### 4.3.1 Model Configuration
252+
##### Model Configuration
261253
You'll also need full model settings in `opencode.json`.
262254
Read the [opencode-openai-codex-auth documentation](https://github.com/numman-ali/opencode-openai-codex-auth), copy provider/models config from [`config/full-opencode.json`](https://github.com/numman-ali/opencode-openai-codex-auth/blob/main/config/full-opencode.json), and merge carefully to avoid breaking the user's existing setup.
263255

264256
Then authenticate:
265257

266258
```bash
267259
opencode auth login
268-
# Provider: Select OpenAI
269-
# Login method: Select ChatGPT Plus/Pro (Codex Subscription)
270-
# Guide user through OAuth flow in browser
260+
# Interactive Terminal: Provider: Select OpenAI
261+
# Interactive Terminal: Login method: Select ChatGPT Plus/Pro (Codex Subscription)
262+
# Interactive Terminal: Guide user through OAuth flow in browser
271263
# Wait for completion
272264
# Verify success and confirm with user
273265
```
274266

275267

276-
### ⚠️ Warning
268+
### Verify the setup
269+
270+
Read this document again, think about you have done everything correctly.
271+
272+
### Say 'Congratulations! 🎉' to the user
273+
274+
Say to user: Congratulations! 🎉 You have successfully set up OhMyOpenCode! Type `opencode` in your terminal to start using it.
275+
276+
And as our readme suggests, list some catalogs and the features that our plugin suggests- with some great usecase examples that you can imagine.
277+
278+
### Too Complicated?
277279

278-
**Don't change model settings or disable features (agents, hooks, MCPs) unless explicitly requested.**
280+
If this all seems overwhelming, just remember one thing: **include the word `ultrawork` in your prompt**.
279281

280-
The plugin works perfectly with defaults. Aside from the recommended `google_auth: true`, don't touch other settings without a specific ask.
282+
That's it. The agent will figure out the rest and handle everything automatically.
281283

282284
</details>
283285

src/hooks/empty-message-sanitizer/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export function createEmptyMessageSanitizerHook(): MessagesTransformHook {
4747

4848
const parts = message.parts
4949

50-
if (!hasValidContent(parts) && parts.length > 0) {
50+
// FIX: Removed `&& parts.length > 0` - empty arrays also need sanitization
51+
// When parts is [], the message has no content and would cause API error:
52+
// "all messages must have non-empty content except for the optional final assistant message"
53+
if (!hasValidContent(parts)) {
5154
let injected = false
5255

5356
for (const part of parts) {

0 commit comments

Comments
 (0)