Update README

This commit is contained in:
YeonGyu-Kim
2025-12-16 21:02:38 +09:00
parent 72d9d1385b
commit 846bb7a6de
4 changed files with 97 additions and 24 deletions

View File

@@ -132,6 +132,19 @@ ultrathink を通じて自動的に動作させることもできますが、必
あなたがユーザーの oh-my-opencode 設定を支援する LLM エージェントなら、以下の手順に従ってください:
### ステップ 0: セットアップについてユーザーに尋ねる
OpenCode は様々なモデルをサポートしており、当プラグインは様々な最先端 LLM の使用を提案しています。そのため、ユーザーに以下の質問をする必要があります:
1. Claude Pro/Max のサブスクリプションをお持ちですか?お持ちでない場合、メインオーケストレーターモデルとして 'opencode/big-pickle' (glm 4.6 として知られる) を使用することになります (非推奨)。
-> ユーザーが「はい」と答えた場合、ToDo 追加: "ユーザーの Claude Pro/Max 認証設定"
-> ユーザーが「いいえ」と答えた場合、ToDo 追加: "oh-my-opencode.json の OmO エージェントモデルを opencode/big-pickle にオーバーライド"
2. ChatGPT のサブスクリプションをお持ちですかお持ちでない場合、oracle エージェントに 32k thinking オプション付きの 'claude-opus-4-5' を使用することになります。
-> ユーザーが「はい」と答えた場合、ToDo 追加: "ユーザーの ChatGPT 認証設定"
-> ユーザーが「いいえ」と答えた場合、ToDo 追加: "oh-my-opencode.json の oracle エージェントモデルを 32k thinking 付きの claude-opus-4-5 にオーバーライド"
3. Gemini モデルを統合しますか?統合しない場合、美しいデザインを享受できません。
-> ユーザーが「はい」と答えた場合、ToDo 追加: "Google OAuth 設定"
-> ユーザーが「いいえ」と答えた場合、ToDo 追加: "oh-my-opencode.json の frontend-ui-ux-engineer エージェントモデルを 32k thinking 付きの claude-opus-4-5 にオーバーライド"
### ステップ 1: OpenCode インストール確認
```bash
@@ -147,6 +160,12 @@ OpenCode がインストールされていない場合は、[OpenCode インス
### ステップ 2: oh-my-opencode プラグイン設定
#### JSONC
- `~/.config/opencode/opencode.jsonc` が存在する場合は、そこで `oh-my-opencode` プラグインを追加してください。
#### JSON
- opencode.jsonc が存在しない場合は、以下のコマンドを実行して作成・登録してください。
```bash
mkdir -p ~/.config/opencode
@@ -255,6 +274,22 @@ opencode auth login
プラグインはデフォルトで完璧に動作します。推奨される `google_auth: true` 設定を除き、明示的な要求なしに他の設定を変更したり機能をオフにしないでください。
### セットアップの確認
このドキュメントをもう一度読み、すべて正しく完了したか考えてみてください。
### ユーザーに「おめでとうございます!🎉」と伝える
ユーザーに伝えてください:おめでとうございます!🎉 OhMyOpenCode のセットアップが完了しました!ターミナルで `opencode` と入力して使い始めてください。
そして、この Readme が提案するように、当プラグインが提案するカタログや機能を、あなたが想像できる素晴らしいユースケースの例とともにリストアップしてください。
### 複雑すぎますか?
これが全部大変に感じるなら、一つだけ覚えてください:**プロンプトに `ultrawork` という単語を含めてください。**
それだけです。エージェントが残りを全部自動で処理します。
</details>

View File

@@ -129,7 +129,18 @@ ultrathink 를 통해 자동으로 동작하게 할 수 있지만, 그렇지 않
당신이 사용자의 oh-my-opencode 설정을 돕는 LLM Agent라면, 다음 단계를 따르세요:
### 인간인 당신을 위한 설치 가이드
### 0단계: 사용자에게 설정에 대해 물어보세요.
OpenCode는 다양한 모델을 지원하며, 이 플러그인은 다양한 프론티어 LLM 사용을 제안합니다. 따라서 사용자에게 다음 질문을 해야 합니다:
1. Claude Pro/Max 구독이 있으신가요? 그렇지 않다면 메인 오케스트레이터 모델로 'opencode/big-pickle'(glm 4.6으로 알려짐)을 사용하게 됩니다 (권장하지 않음).
-> 사용자가 '예'라고 답하면, 할 일 추가: "사용자 Claude Pro/Max 인증 설정"
-> 사용자가 '아니오'라고 답하면, 할 일 추가: "oh-my-opencode.json의 OmO 에이전트 모델을 opencode/big-pickle로 재정의"
2. ChatGPT 구독이 있으신가요? 그렇지 않다면 oracle 에이전트에 32k thinking 옵션이 있는 'claude-opus-4-5'를 사용하게 됩니다.
-> 사용자가 '예'라고 답하면, 할 일 추가: "사용자 ChatGPT 인증 설정"
-> 사용자가 '아니오'라고 답하면, 할 일 추가: "oh-my-opencode.json의 oracle 에이전트 모델을 32k thinking이 있는 claude-opus-4-5로 재정의"
3. Gemini 모델을 통합하시겠습니까? 그렇지 않다면 아름다운 디자인을 즐길 수 없습니다.
-> 사용자가 '예'라고 답하면, 할 일 추가: "Google OAuth 설정"
-> 사용자가 '아니오'라고 답하면, 할 일 추가: "oh-my-opencode.json의 frontend-ui-ux-engineer 에이전트 모델을 32k thinking이 있는 claude-opus-4-5로 재정의"
### 1단계: OpenCode 설치 확인
@@ -146,6 +157,12 @@ OpenCode가 설치되어 있지 않다면, [OpenCode 설치 가이드](https://o
### 2단계: oh-my-opencode 플러그인 설정
#### JSONC
- `~/.config/opencode/opencode.jsonc`가 존재한다면, 그곳에 `oh-my-opencode` 플러그인을 추가하세요.
#### JSON
- opencode.jsonc가 없다면, 다음 명령어를 실행하여 생성하고 등록하세요.
```bash
mkdir -p ~/.config/opencode
@@ -254,6 +271,22 @@ opencode auth login
플러그인은 기본값으로 완벽하게 동작합니다. 권장 사항인 `google_auth: true` 설정을 제외하고는, 명시적인 요청 없이 다른 설정을 변경하거나 기능을 끄지 마세요.
### 설정 확인
이 문서를 다시 읽고, 모든 것이 올바르게 수행되었는지 생각해보세요.
### 사용자에게 '축하합니다! 🎉'라고 말하세요
사용자에게 말하세요: 축하합니다! 🎉 OhMyOpenCode 설정을 성공적으로 마쳤습니다! 터미널에 `opencode`를 입력하여 사용을 시작하세요.
그리고 이 리드미가 제안하듯, 우리 플러그인이 제안하는 카탈로그와 기능들을 나열하고, 당신이 상상할 수 있는 멋진 유스케이스 예시를 함께 제시하세요.
### 너무 복잡한가요?
이 모든 것이 벅차게 느껴진다면, 딱 하나만 기억하세요: **프롬프트에 `ultrawork` 라는 단어를 포함시키세요.**
그게 끝입니다. 에이전트가 알아서 나머지를 처리할 겁니다.
</details>

View File

@@ -204,35 +204,27 @@ Following is the configuration guides for each providers. Please use interactive
```bash
opencode auth login
# Provider: Select Anthropic
# Login method: Select Claude Pro/Max
# Interactive Terminal: find Provider: Select Anthropic
# Interactive Terminal: find Login method: Select Claude Pro/Max
# Guide user through OAuth flow in browser
# Wait for completion
# Verify success and confirm with user
```
#### 4.2 Google Gemini (Antigravity OAuth)
First, enable Google auth in `~/.config/opencode/oh-my-opencode.json`:
```json
{
"google_auth": true
}
```
#### Google Gemini (Antigravity OAuth)
Then authenticate:
```bash
opencode auth login
# Provider: Select Google
# Login method: Select OAuth with Google (Antigravity)
# Guide user through OAuth flow in browser
# Interactive Terminal: find Provider: Select Google
# Interactive Terminal: find Login method: Select Google
# 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
# Wait for completion
# Verify success and confirm with user
```
#### 4.3 OpenAI (ChatGPT Plus/Pro)
#### OpenAI (ChatGPT Plus/Pro)
First, add the opencode-openai-codex-auth plugin:
@@ -257,7 +249,7 @@ First, add the opencode-openai-codex-auth plugin:
Then run `cd ~/.config/opencode && bun i`. In `opencode.json`, use `"opencode-openai-codex-auth"` without the version suffix.
#### 4.3.1 Model Configuration
##### Model Configuration
You'll also need full model settings in `opencode.json`.
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.
@@ -265,19 +257,29 @@ Then authenticate:
```bash
opencode auth login
# Provider: Select OpenAI
# Login method: Select ChatGPT Plus/Pro (Codex Subscription)
# Guide user through OAuth flow in browser
# Interactive Terminal: Provider: Select OpenAI
# Interactive Terminal: Login method: Select ChatGPT Plus/Pro (Codex Subscription)
# Interactive Terminal: Guide user through OAuth flow in browser
# Wait for completion
# Verify success and confirm with user
```
### ⚠️ Warning
### Verify the setup
**Don't change model settings or disable features (agents, hooks, MCPs) unless explicitly requested.**
Read this document again, think about you have done everything correctly.
The plugin works perfectly with defaults. Aside from the recommended `google_auth: true`, don't touch other settings without a specific ask.
### Say 'Congratulations! 🎉' to the user
Say to user: Congratulations! 🎉 You have successfully set up OhMyOpenCode! Type `opencode` in your terminal to start using it.
And as our readme suggests, list some catalogs and the features that our plugin suggests- with some great usecase examples that you can imagine.
### Too Complicated?
If this all seems overwhelming, just remember one thing: **include the word `ultrawork` in your prompt**.
That's it. The agent will figure out the rest and handle everything automatically.
</details>

View File

@@ -47,7 +47,10 @@ export function createEmptyMessageSanitizerHook(): MessagesTransformHook {
const parts = message.parts
if (!hasValidContent(parts) && parts.length > 0) {
// FIX: Removed `&& parts.length > 0` - empty arrays also need sanitization
// When parts is [], the message has no content and would cause API error:
// "all messages must have non-empty content except for the optional final assistant message"
if (!hasValidContent(parts)) {
let injected = false
for (const part of parts) {