@reinamaccredy/oh-my-opencode 3.0.0-beta.8 → 3.0.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.
Files changed (63) hide show
  1. package/README.ja.md +4 -4
  2. package/README.md +5 -5
  3. package/README.zh-cn.md +4 -4
  4. package/dist/agents/types.d.ts +2 -0
  5. package/dist/cli/config-manager.d.ts +3 -17
  6. package/dist/cli/index.js +390 -359
  7. package/dist/cli/types.d.ts +3 -1
  8. package/dist/config/index.d.ts +2 -2
  9. package/dist/config/schema.d.ts +215 -181
  10. package/dist/features/background-agent/index.d.ts +1 -1
  11. package/dist/features/background-agent/manager.d.ts +10 -0
  12. package/dist/features/background-agent/types.d.ts +4 -0
  13. package/dist/features/boulder-state/index.d.ts +1 -0
  14. package/dist/features/boulder-state/unified-state.d.ts +86 -0
  15. package/dist/features/maestro/hooks/index.d.ts +16 -0
  16. package/dist/features/maestro/index.d.ts +4 -0
  17. package/dist/features/maestro/skills/index.d.ts +4 -0
  18. package/dist/features/maestro/types.d.ts +42 -0
  19. package/dist/features/maestro/utils/index.d.ts +4 -0
  20. package/dist/features/workflow-engine/contracts/v1/types.d.ts +9 -0
  21. package/dist/hooks/background-notification/index.d.ts +10 -0
  22. package/dist/hooks/index.d.ts +3 -0
  23. package/dist/hooks/maestro-sisyphus-bridge/constants.d.ts +9 -0
  24. package/dist/hooks/maestro-sisyphus-bridge/index.d.ts +53 -0
  25. package/dist/hooks/tdd-enforcement/constants.d.ts +16 -0
  26. package/dist/hooks/tdd-enforcement/index.d.ts +54 -0
  27. package/dist/index.js +1955 -6035
  28. package/dist/shared/migration.d.ts +13 -0
  29. package/dist/tools/skill/tools.d.ts +1 -7
  30. package/dist/tools/slashcommand/tools.d.ts +1 -7
  31. package/package.json +7 -6
  32. package/dist/auth/antigravity/accounts.d.ts +0 -40
  33. package/dist/auth/antigravity/accounts.test.d.ts +0 -1
  34. package/dist/auth/antigravity/browser.d.ts +0 -27
  35. package/dist/auth/antigravity/browser.test.d.ts +0 -1
  36. package/dist/auth/antigravity/cli.d.ts +0 -2
  37. package/dist/auth/antigravity/cli.test.d.ts +0 -1
  38. package/dist/auth/antigravity/constants.d.ts +0 -98
  39. package/dist/auth/antigravity/constants.test.d.ts +0 -1
  40. package/dist/auth/antigravity/fetch.d.ts +0 -69
  41. package/dist/auth/antigravity/index.d.ts +0 -13
  42. package/dist/auth/antigravity/integration.test.d.ts +0 -10
  43. package/dist/auth/antigravity/message-converter.d.ts +0 -54
  44. package/dist/auth/antigravity/oauth.d.ts +0 -51
  45. package/dist/auth/antigravity/oauth.test.d.ts +0 -1
  46. package/dist/auth/antigravity/plugin.d.ts +0 -54
  47. package/dist/auth/antigravity/project.d.ts +0 -10
  48. package/dist/auth/antigravity/request.d.ts +0 -116
  49. package/dist/auth/antigravity/request.test.d.ts +0 -1
  50. package/dist/auth/antigravity/response.d.ts +0 -137
  51. package/dist/auth/antigravity/storage.d.ts +0 -5
  52. package/dist/auth/antigravity/storage.test.d.ts +0 -1
  53. package/dist/auth/antigravity/thinking.d.ts +0 -278
  54. package/dist/auth/antigravity/thinking.test.d.ts +0 -10
  55. package/dist/auth/antigravity/thought-signature-store.d.ts +0 -52
  56. package/dist/auth/antigravity/token.d.ts +0 -38
  57. package/dist/auth/antigravity/token.test.d.ts +0 -1
  58. package/dist/auth/antigravity/tools.d.ts +0 -119
  59. package/dist/auth/antigravity/types.d.ts +0 -229
  60. package/dist/cli/commands/auth.d.ts +0 -2
  61. package/dist/cli/config-manager.test.d.ts +0 -1
  62. package/dist/google-auth.d.ts +0 -3
  63. package/dist/google-auth.js +0 -3871
package/README.ja.md CHANGED
@@ -362,7 +362,7 @@ opencode auth login
362
362
  `opencode.json` に完全なモデル設定も構成する必要があります。
363
363
  [opencode-openai-codex-auth ドキュメント](https://github.com/numman-ali/opencode-openai-codex-auth)を読み、[`config/opencode-modern.json`](https://github.com/numman-ali/opencode-openai-codex-auth/blob/main/config/opencode-modern.json)(OpenCode v1.0.210+)または [`config/opencode-legacy.json`](https://github.com/numman-ali/opencode-openai-codex-auth/blob/main/config/opencode-legacy.json)(旧バージョン)から provider/models 設定をコピーして、ユーザーの既存のセットアップを壊さないよう慎重にマージしてください。
364
364
 
365
- **利用可能なモデル**: `openai/gpt-5.2`, `openai/gpt-5.2-codex`, `openai/gpt-5.1-codex-max`, `openai/gpt-5.1-codex`, `openai/gpt-5.1-codex-mini`, `openai/gpt-5.1`
365
+ **利用可能なモデル**: `proxypal/gpt-5.2-codex`, `proxypal/gpt-5.2-codex-codex`, `openai/gpt-5.1-codex-max`, `openai/gpt-5.1-codex`, `openai/gpt-5.1-codex-mini`, `openai/gpt-5.1`
366
366
 
367
367
  **Variants** (OpenCode v1.0.210+): `--variant=<none|low|medium|high|xhigh>` オプションで推論強度を制御できます。
368
368
 
@@ -460,7 +460,7 @@ oh-my-opencode を削除するには:
460
460
  ### Agents: あなたの新しいチームメイト
461
461
 
462
462
  - **Sisyphus** (`anthropic/claude-opus-4-5`): **デフォルトエージェントです。** OpenCode のための強力な AI オーケストレーターです。専門のサブエージェントを活用して、複雑なタスクを計画、委任、実行します。バックグラウンドタスクへの委任と Todo ベースのワークフローを重視します。最大の推論能力を発揮するため、Claude Opus 4.5 と拡張思考 (32k token budget) を使用します。
463
- - **oracle** (`openai/gpt-5.2`): アーキテクチャ、コードレビュー、戦略立案のための専門アドバイザー。GPT-5.2 の卓越した論理的推論と深い分析能力を活用します。AmpCode からインスピレーションを得ました。
463
+ - **oracle** (`proxypal/gpt-5.2-codex`): アーキテクチャ、コードレビュー、戦略立案のための専門アドバイザー。GPT-5.2 の卓越した論理的推論と深い分析能力を活用します。AmpCode からインスピレーションを得ました。
464
464
  - **librarian** (`anthropic/claude-sonnet-4-5` または `google/gemini-3-flash`): マルチリポジトリ分析、ドキュメント検索、実装例の調査を担当。Antigravity 認証が設定されている場合は Gemini 3 Flash を使用し、それ以外は Claude Sonnet 4.5 を使用して、深いコードベース理解と GitHub リサーチ、根拠に基づいた回答を提供します。AmpCode からインスピレーションを得ました。
465
465
  - **explore** (`opencode/grok-code`、`google/gemini-3-flash`、または `anthropic/claude-haiku-4-5`): 高速なコードベース探索、ファイルパターンマッチング。Antigravity 認証が設定されている場合は Gemini 3 Flash を使用し、Claude max20 が利用可能な場合は Haiku を使用し、それ以外は Grok を使います。Claude Code からインスピレーションを得ました。
466
466
  - **frontend-ui-ux-engineer** (`google/gemini-3-pro-preview`): 開発者に転身したデザイナーという設定です。素晴らしい UI を作ります。美しく独創的な UI コードを生成することに長けた Gemini を使用します。
@@ -755,7 +755,7 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
755
755
  /* エージェントのオーバーライド - 特定のタスクに合わせてモデルをカスタマイズ */
756
756
  "agents": {
757
757
  "oracle": {
758
- "model": "openai/gpt-5.2" // 戦略的な推論のための GPT
758
+ "model": "proxypal/gpt-5.2-codex" // 戦略的な推論のための GPT
759
759
  },
760
760
  "explore": {
761
761
  "model": "opencode/grok-code" // 探索のための高速かつ無料のモデル
@@ -916,7 +916,7 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
916
916
  "model": "anthropic/claude-opus-4"
917
917
  },
918
918
  "Prometheus (Planner)": {
919
- "model": "openai/gpt-5.2"
919
+ "model": "proxypal/gpt-5.2-codex"
920
920
  },
921
921
  "Metis (Plan Consultant)": {
922
922
  "model": "anthropic/claude-sonnet-4-5"
package/README.md CHANGED
@@ -401,7 +401,7 @@ First, add the opencode-openai-codex-auth plugin:
401
401
  You'll also need full model settings in `opencode.json`.
402
402
  Read the [opencode-openai-codex-auth documentation](https://github.com/numman-ali/opencode-openai-codex-auth), copy provider/models config from [`config/opencode-modern.json`](https://github.com/numman-ali/opencode-openai-codex-auth/blob/main/config/opencode-modern.json) (for OpenCode v1.0.210+) or [`config/opencode-legacy.json`](https://github.com/numman-ali/opencode-openai-codex-auth/blob/main/config/opencode-legacy.json) (for older versions), and merge carefully to avoid breaking the user's existing setup.
403
403
 
404
- **Available models**: `openai/gpt-5.2`, `openai/gpt-5.2-codex`, `openai/gpt-5.1-codex-max`, `openai/gpt-5.1-codex`, `openai/gpt-5.1-codex-mini`, `openai/gpt-5.1`
404
+ **Available models**: `proxypal/gpt-5.2-codex`, `proxypal/gpt-5.2-codex-codex`, `openai/gpt-5.1-codex-max`, `openai/gpt-5.1-codex`, `openai/gpt-5.1-codex-mini`, `openai/gpt-5.1`
405
405
 
406
406
  **Variants** (OpenCode v1.0.210+): Use `--variant=<none|low|medium|high|xhigh>` for reasoning effort control.
407
407
 
@@ -498,7 +498,7 @@ To remove oh-my-opencode:
498
498
  ### Agents: Your Teammates
499
499
 
500
500
  - **Sisyphus** (`anthropic/claude-opus-4-5`): **The default agent.** A powerful AI orchestrator for OpenCode. Plans, delegates, and executes complex tasks using specialized subagents with aggressive parallel execution. Emphasizes background task delegation and todo-driven workflow. Uses Claude Opus 4.5 with extended thinking (32k budget) for maximum reasoning capability.
501
- - **oracle** (`openai/gpt-5.2`): Architecture, code review, strategy. Uses GPT-5.2 for its stellar logical reasoning and deep analysis. Inspired by AmpCode.
501
+ - **oracle** (`proxypal/gpt-5.2-codex`): Architecture, code review, strategy. Uses GPT-5.2 for its stellar logical reasoning and deep analysis. Inspired by AmpCode.
502
502
  - **librarian** (`anthropic/claude-sonnet-4-5` or `google/gemini-3-flash`): Multi-repo analysis, doc lookup, implementation examples. Uses Gemini 3 Flash when Antigravity auth is configured, otherwise Claude Sonnet 4.5 for deep codebase understanding and GitHub research with evidence-based answers. Inspired by AmpCode.
503
503
  - **explore** (`opencode/grok-code`, `google/gemini-3-flash`, or `anthropic/claude-haiku-4-5`): Fast codebase exploration and pattern matching. Uses Gemini 3 Flash when Antigravity auth is configured, Haiku when Claude max20 is available, otherwise Grok. Inspired by Claude Code.
504
504
  - **frontend-ui-ux-engineer** (`google/gemini-3-pro-high`): A designer turned developer. Builds gorgeous UIs. Gemini excels at creative, beautiful UI code.
@@ -811,7 +811,7 @@ When both `oh-my-opencode.jsonc` and `oh-my-opencode.json` files exist, `.jsonc`
811
811
  /* Agent overrides - customize models for specific tasks */
812
812
  "agents": {
813
813
  "oracle": {
814
- "model": "openai/gpt-5.2" // GPT for strategic reasoning
814
+ "model": "proxypal/gpt-5.2-codex" // GPT for strategic reasoning
815
815
  },
816
816
  "explore": {
817
817
  "model": "opencode/grok-code" // Free & fast for exploration
@@ -1007,7 +1007,7 @@ You can also customize Sisyphus agents like other agents:
1007
1007
  "model": "anthropic/claude-opus-4"
1008
1008
  },
1009
1009
  "Prometheus (Planner)": {
1010
- "model": "openai/gpt-5.2"
1010
+ "model": "proxypal/gpt-5.2-codex"
1011
1011
  },
1012
1012
  "Metis (Plan Consultant)": {
1013
1013
  "model": "anthropic/claude-sonnet-4-5"
@@ -1066,7 +1066,7 @@ Categories enable domain-specific task delegation via the `sisyphus_task` tool.
1066
1066
  | Category | Model | Description |
1067
1067
  |----------|-------|-------------|
1068
1068
  | `visual` | `google/gemini-3-pro-preview` | Frontend, UI/UX, design-focused tasks. High creativity (temp 0.7). |
1069
- | `business-logic` | `openai/gpt-5.2` | Backend logic, architecture, strategic reasoning. Low creativity (temp 0.1). |
1069
+ | `business-logic` | `proxypal/gpt-5.2-codex` | Backend logic, architecture, strategic reasoning. Low creativity (temp 0.1). |
1070
1070
 
1071
1071
  **Usage:**
1072
1072
 
package/README.zh-cn.md CHANGED
@@ -367,7 +367,7 @@ opencode auth login
367
367
  要在 `opencode.json` 里配完整的模型设置。
368
368
  去读 [opencode-openai-codex-auth 文档](https://github.com/numman-ali/opencode-openai-codex-auth),从 [`config/opencode-modern.json`](https://github.com/numman-ali/opencode-openai-codex-auth/blob/main/config/opencode-modern.json)(OpenCode v1.0.210+)或 [`config/opencode-legacy.json`](https://github.com/numman-ali/opencode-openai-codex-auth/blob/main/config/opencode-legacy.json)(旧版本)抄 provider/models 配置,动脑子合并,别搞炸了。
369
369
 
370
- **可用模型**:`openai/gpt-5.2`, `openai/gpt-5.2-codex`, `openai/gpt-5.1-codex-max`, `openai/gpt-5.1-codex`, `openai/gpt-5.1-codex-mini`, `openai/gpt-5.1`
370
+ **可用模型**:`proxypal/gpt-5.2-codex`, `proxypal/gpt-5.2-codex-codex`, `openai/gpt-5.1-codex-max`, `openai/gpt-5.1-codex`, `openai/gpt-5.1-codex-mini`, `openai/gpt-5.1`
371
371
 
372
372
  **Variants**(OpenCode v1.0.210+):用 `--variant=<none|low|medium|high|xhigh>` 控制推理强度。
373
373
 
@@ -465,7 +465,7 @@ gh repo star code-yeongyu/oh-my-opencode
465
465
  ### Agents:你的神队友
466
466
 
467
467
  - **Sisyphus** (`anthropic/claude-opus-4-5`):**默认 Agent。** OpenCode 专属的强力 AI 编排器。指挥专业子 Agent 搞定复杂任务。主打后台任务委派和 Todo 驱动。用 Claude Opus 4.5 加上扩展思考(32k token 预算),智商拉满。
468
- - **oracle** (`openai/gpt-5.2`):架构师、代码审查员、战略家。GPT-5.2 的逻辑推理和深度分析能力不是盖的。致敬 AmpCode。
468
+ - **oracle** (`proxypal/gpt-5.2-codex`):架构师、代码审查员、战略家。GPT-5.2 的逻辑推理和深度分析能力不是盖的。致敬 AmpCode。
469
469
  - **librarian** (`anthropic/claude-sonnet-4-5` 或 `google/gemini-3-flash`):多仓库分析、查文档、找示例。配置 Antigravity 认证时使用 Gemini 3 Flash,否则使用 Claude Sonnet 4.5 深入理解代码库,GitHub 调研,给出的答案都有据可查。致敬 AmpCode。
470
470
  - **explore** (`opencode/grok-code`、`google/gemini-3-flash` 或 `anthropic/claude-haiku-4-5`):极速代码库扫描、模式匹配。配置 Antigravity 认证时使用 Gemini 3 Flash,Claude max20 可用时使用 Haiku,否则用 Grok。致敬 Claude Code。
471
471
  - **frontend-ui-ux-engineer** (`google/gemini-3-pro-preview`):设计师出身的程序员。UI 做得那是真漂亮。Gemini 写这种创意美观的代码是一绝。
@@ -756,7 +756,7 @@ Agent 爽了,你自然也爽。但我还想直接让你爽。
756
756
  /* Agent 覆盖 - 为特定任务自定义模型 */
757
757
  "agents": {
758
758
  "oracle": {
759
- "model": "openai/gpt-5.2" // 用于战略推理的 GPT
759
+ "model": "proxypal/gpt-5.2-codex" // 用于战略推理的 GPT
760
760
  },
761
761
  "explore": {
762
762
  "model": "opencode/grok-code" // 快速且免费的搜索模型
@@ -917,7 +917,7 @@ Sisyphus Agent 也能自定义:
917
917
  "model": "anthropic/claude-opus-4"
918
918
  },
919
919
  "Prometheus (Planner)": {
920
- "model": "openai/gpt-5.2"
920
+ "model": "proxypal/gpt-5.2-codex"
921
921
  },
922
922
  "Metis (Plan Consultant)": {
923
923
  "model": "anthropic/claude-sonnet-4-5"
@@ -40,6 +40,8 @@ export interface AgentPromptMetadata {
40
40
  keyTrigger?: string;
41
41
  }
42
42
  export declare function isGptModel(model: string): boolean;
43
+ export declare function isProxyPalGptModel(model: string): boolean;
44
+ export declare function getGptReasoningEffort(model: string): "medium" | "xhigh";
43
45
  export type BuiltinAgentName = "Sisyphus" | "oracle" | "librarian" | "explore" | "frontend-ui-ux-engineer" | "document-writer" | "multimodal-looker" | "Metis (Plan Consultant)" | "Momus (Plan Reviewer)" | "orchestrator-sisyphus";
44
46
  export type OverridableAgentName = "build" | BuiltinAgentName;
45
47
  export type AgentName = BuiltinAgentName;
@@ -27,25 +27,11 @@ export interface BunInstallResult {
27
27
  }
28
28
  export declare function runBunInstall(): Promise<boolean>;
29
29
  export declare function runBunInstallWithDetails(): Promise<BunInstallResult>;
30
- /**
31
- * Antigravity Provider Configuration
32
- *
33
- * IMPORTANT: Model names MUST use `antigravity-` prefix for stability.
34
- *
35
- * The opencode-antigravity-auth plugin supports two naming conventions:
36
- * - `antigravity-gemini-3-pro-high` (RECOMMENDED, explicit Antigravity quota routing)
37
- * - `gemini-3-pro-high` (LEGACY, backward compatible but may break in future)
38
- *
39
- * Legacy names rely on Gemini CLI using `-preview` suffix for disambiguation.
40
- * If Google removes `-preview`, legacy names may route to wrong quota.
41
- *
42
- * @see https://github.com/NoeFabris/opencode-antigravity-auth#migration-guide-v127
43
- */
44
30
  export declare const ANTIGRAVITY_PROVIDER_CONFIG: {
45
31
  google: {
46
32
  name: string;
47
33
  models: {
48
- "antigravity-gemini-3-pro-high": {
34
+ "gemini-3-pro-high": {
49
35
  name: string;
50
36
  thinking: boolean;
51
37
  attachment: boolean;
@@ -58,7 +44,7 @@ export declare const ANTIGRAVITY_PROVIDER_CONFIG: {
58
44
  output: string[];
59
45
  };
60
46
  };
61
- "antigravity-gemini-3-pro-low": {
47
+ "gemini-3-pro-low": {
62
48
  name: string;
63
49
  thinking: boolean;
64
50
  attachment: boolean;
@@ -71,7 +57,7 @@ export declare const ANTIGRAVITY_PROVIDER_CONFIG: {
71
57
  output: string[];
72
58
  };
73
59
  };
74
- "antigravity-gemini-3-flash": {
60
+ "gemini-3-flash": {
75
61
  name: string;
76
62
  attachment: boolean;
77
63
  limit: {