@skj1724/oh-my-opencode 3.18.27 → 3.18.28

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 (132) hide show
  1. package/README.ja.md +16 -16
  2. package/README.ko.md +16 -16
  3. package/README.md +19 -19
  4. package/README.ru.md +8 -8
  5. package/README.zh-cn.md +16 -16
  6. package/bin/oh-my-opencode.js +4 -2
  7. package/bin/platform.js +2 -2
  8. package/bin/platform.test.ts +25 -0
  9. package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-16.d.ts +1 -0
  10. package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-17.d.ts +1 -0
  11. package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-18.d.ts +1 -0
  12. package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-19.d.ts +1 -0
  13. package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-20.d.ts +1 -0
  14. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-01.d.ts +1 -0
  15. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-02.d.ts +1 -0
  16. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-03.d.ts +1 -0
  17. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-04.d.ts +1 -0
  18. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-05.d.ts +1 -0
  19. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-06.d.ts +1 -0
  20. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-07.d.ts +1 -0
  21. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-08.d.ts +1 -0
  22. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-09.d.ts +1 -0
  23. package/dist/__tests__/perf/fixtures/in-tree/src/app/file-10.d.ts +1 -0
  24. package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-11.d.ts +1 -0
  25. package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-12.d.ts +1 -0
  26. package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-13.d.ts +1 -0
  27. package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-14.d.ts +1 -0
  28. package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-15.d.ts +1 -0
  29. package/dist/agents/atlas/agent.d.ts +2 -3
  30. package/dist/agents/atlas/default-prompt-sections.d.ts +6 -6
  31. package/dist/agents/atlas/gemini-prompt-sections.d.ts +6 -6
  32. package/dist/agents/atlas/gpt-prompt-sections.d.ts +6 -6
  33. package/dist/agents/atlas/prompt-section-builder.d.ts +3 -3
  34. package/dist/agents/builtin-agents/atlas-agent.d.ts +0 -2
  35. package/dist/agents/builtin-agents/environment-context.d.ts +0 -1
  36. package/dist/agents/builtin-agents/general-agents.d.ts +0 -1
  37. package/dist/agents/builtin-agents/hephaestus-agent.d.ts +0 -1
  38. package/dist/agents/builtin-agents/sisyphus-agent.d.ts +0 -1
  39. package/dist/agents/builtin-agents.d.ts +1 -1
  40. package/dist/agents/dynamic-agent-category-skills-guide.d.ts +1 -1
  41. package/dist/agents/dynamic-agent-core-sections.d.ts +14 -9
  42. package/dist/agents/dynamic-agent-policy-sections.d.ts +5 -5
  43. package/dist/agents/dynamic-agent-tool-categorization.d.ts +1 -1
  44. package/dist/agents/env-context.d.ts +7 -1
  45. package/dist/agents/hephaestus/agent.d.ts +2 -2
  46. package/dist/agents/hephaestus/gpt-5-3-codex.d.ts +9 -9
  47. package/dist/agents/hephaestus/gpt-5-4.d.ts +18 -18
  48. package/dist/agents/hephaestus/gpt-5-5.d.ts +13 -0
  49. package/dist/agents/hephaestus/gpt.d.ts +1 -1
  50. package/dist/agents/metis.d.ts +9 -9
  51. package/dist/agents/momus.d.ts +10 -11
  52. package/dist/agents/prometheus/behavioral-summary.d.ts +3 -3
  53. package/dist/agents/prometheus/gemini.d.ts +7 -7
  54. package/dist/agents/prometheus/gpt.d.ts +6 -6
  55. package/dist/agents/prometheus/high-accuracy-mode.d.ts +3 -3
  56. package/dist/agents/prometheus/identity-constraints.d.ts +3 -4
  57. package/dist/agents/prometheus/interview-mode.d.ts +3 -3
  58. package/dist/agents/prometheus/plan-generation.d.ts +4 -4
  59. package/dist/agents/prometheus/plan-template.d.ts +4 -4
  60. package/dist/agents/prometheus/system-prompt.d.ts +11 -11
  61. package/dist/agents/sisyphus/default.d.ts +3 -3
  62. package/dist/agents/sisyphus/gemini.d.ts +10 -10
  63. package/dist/agents/sisyphus/gpt-5-4.d.ts +18 -18
  64. package/dist/agents/sisyphus/gpt-5-5.d.ts +18 -0
  65. package/dist/agents/sisyphus/index.d.ts +1 -0
  66. package/dist/agents/sisyphus-junior/agent.d.ts +2 -2
  67. package/dist/agents/sisyphus-junior/default.d.ts +5 -5
  68. package/dist/agents/sisyphus-junior/gemini.d.ts +6 -6
  69. package/dist/agents/sisyphus-junior/gpt-5-3-codex.d.ts +4 -4
  70. package/dist/agents/sisyphus-junior/gpt-5-4.d.ts +7 -7
  71. package/dist/agents/sisyphus-junior/gpt-5-5.d.ts +12 -0
  72. package/dist/agents/sisyphus-junior/gpt.d.ts +5 -5
  73. package/dist/agents/sisyphus-junior/index.d.ts +1 -0
  74. package/dist/agents/sisyphus.d.ts +2 -3
  75. package/dist/agents/types.d.ts +2 -1
  76. package/dist/cli/index.js +2360 -3399
  77. package/dist/config/schema/agent-overrides.d.ts +0 -15
  78. package/dist/config/schema/commands.d.ts +0 -2
  79. package/dist/config/schema/oh-my-opencode-config.d.ts +0 -19
  80. package/dist/features/background-agent/concurrency.d.ts +1 -1
  81. package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -1
  82. package/dist/features/builtin-commands/templates/ralph-loop.d.ts +3 -3
  83. package/dist/features/builtin-commands/templates/refactor.d.ts +1 -1
  84. package/dist/features/builtin-commands/templates/remove-ai-slops.d.ts +1 -1
  85. package/dist/features/builtin-commands/types.d.ts +1 -2
  86. package/dist/features/builtin-skills/skills/git-master-sections/commit-workflow.d.ts +1 -1
  87. package/dist/hooks/atlas/system-reminder-templates.d.ts +6 -6
  88. package/dist/hooks/auto-update-checker/constants.d.ts +1 -1
  89. package/dist/hooks/compaction-context-injector/compaction-context-prompt.d.ts +1 -1
  90. package/dist/hooks/keyword-detector/analyze/default.d.ts +8 -8
  91. package/dist/hooks/keyword-detector/search/default.d.ts +8 -8
  92. package/dist/hooks/keyword-detector/ultrawork/default.d.ts +6 -6
  93. package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +12 -12
  94. package/dist/hooks/keyword-detector/ultrawork/gpt.d.ts +7 -7
  95. package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +3 -3
  96. package/dist/hooks/prometheus-md-only/constants.d.ts +2 -2
  97. package/dist/hooks/todo-continuation-enforcer/constants.d.ts +1 -1
  98. package/dist/hooks/tool-output-truncator.d.ts +0 -6
  99. package/dist/index.js +9793 -10923
  100. package/dist/oh-my-opencode.schema.json +3 -57
  101. package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +1 -5
  102. package/dist/shared/logger.d.ts +0 -1
  103. package/dist/shared/model-capabilities/supplemental-entries.d.ts +2 -0
  104. package/dist/shared/plugin-identity.d.ts +4 -4
  105. package/dist/shared/system-directive.d.ts +1 -2
  106. package/dist/tools/ast-grep/pattern-hints.d.ts +4 -0
  107. package/dist/tools/ast-grep/tool-descriptions.d.ts +3 -0
  108. package/dist/tools/call-omo-agent/constants.d.ts +1 -1
  109. package/dist/tools/delegate-task/prompt-builder.d.ts +2 -2
  110. package/dist/tools/index.d.ts +1 -1
  111. package/dist/tools/interactive-bash/index.d.ts +2 -2
  112. package/dist/tools/interactive-bash/tools.d.ts +0 -1
  113. package/package.json +104 -99
  114. package/postinstall.mjs +133 -35
  115. package/dist/agents/load-prompt-template.d.ts +0 -1
  116. package/dist/agents/prompts-zh/index.d.ts +0 -16
  117. package/dist/agents/types/language.d.ts +0 -3
  118. package/dist/config/schema/i18n.d.ts +0 -21
  119. package/dist/features/builtin-commands/templates/open-plan.d.ts +0 -1
  120. package/src/agents/prompts-zh/atlas.md +0 -657
  121. package/src/agents/prompts-zh/explore.md +0 -85
  122. package/src/agents/prompts-zh/general-agents.md +0 -401
  123. package/src/agents/prompts-zh/hephaestus.md +0 -391
  124. package/src/agents/prompts-zh/index.ts +0 -17
  125. package/src/agents/prompts-zh/librarian.md +0 -282
  126. package/src/agents/prompts-zh/metis.md +0 -284
  127. package/src/agents/prompts-zh/momus.md +0 -181
  128. package/src/agents/prompts-zh/multimodal-looker.md +0 -40
  129. package/src/agents/prompts-zh/oracle.md +0 -206
  130. package/src/agents/prompts-zh/prometheus.md +0 -1327
  131. package/src/agents/prompts-zh/sisyphus-junior.md +0 -29
  132. package/src/agents/prompts-zh/sisyphus.md +0 -387
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Gemini-optimized Sisyphus-Junior System Prompt
2
+ * Gemini 优化版 Sisyphus-Junior 系统提示词
3
3
  *
4
- * Key differences from Claude/GPT variants:
5
- * - Aggressive tool-call enforcement (Gemini skips tools in favor of reasoning)
6
- * - Anti-optimism checkpoints (Gemini claims "done" prematurely)
7
- * - Repeated verification mandates (Gemini treats verification as optional)
8
- * - Stronger scope discipline (Gemini's creativity causes scope creep)
4
+ * Claude/GPT 变体的关键区别:
5
+ * - 强制使用工具调用(Gemini 倾向于跳过工具,依赖推理)
6
+ * - 反乐观检查点(Gemini 过早声称"完成"
7
+ * - 重复验证要求(Gemini 将验证视为可选)
8
+ * - 更强化的范围纪律(Gemini 的创造力导致范围蔓延)
9
9
  */
10
10
  export declare function buildGeminiSisyphusJuniorPrompt(useTaskSystem: boolean, promptAppend?: string): string;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GPT-5.3-Codex Optimized Sisyphus-Junior System Prompt
2
+ * GPT-5.3-Codex 优化版 Sisyphus-Junior 系统提示词
3
3
  *
4
- * Hephaestus-style prompt adapted for a focused executor:
5
- * - Same autonomy, reporting, parallelism, and tool usage patterns
6
- * - CAN spawn explore/librarian via call_omo_agent for research
4
+ * 适配于专注执行器的赫菲斯托斯风格提示词:
5
+ * - 保持相同的自主性、报告、并行和工具使用模式
6
+ * - 可通过 call_omo_agent 生成 explore/librarian 进行研究
7
7
  */
8
8
  export declare function buildGpt53CodexSisyphusJuniorPrompt(useTaskSystem: boolean, promptAppend?: string): string;
@@ -1,11 +1,11 @@
1
1
  /**
2
- * GPT-5.4 Optimized Sisyphus-Junior System Prompt
2
+ * GPT-5.4 优化版 Sisyphus-Junior 系统提示词
3
3
  *
4
- * Tuned for GPT-5.4 system prompt design principles:
5
- * - Expert coding agent framing with approach-first mentality
6
- * - Deterministic tool usage (always/never, not try/maybe)
7
- * - Prose-first output style
8
- * - Nuanced autonomy (focus unless directly conflicting)
9
- * - CAN spawn explore/librarian via call_omo_agent for research
4
+ * 针对 GPT-5.4 系统提示词设计原则进行调整:
5
+ * - 专家编码代理框架,采用先方法后行动的思维模式
6
+ * - 确定性的工具使用(总是/从不,而非尝试/也许)
7
+ * - 散文优先的输出风格
8
+ * - 细致入微的自主性(专注除非直接冲突)
9
+ * - 可通过 call_omo_agent 生成 explore/librarian 进行研究
10
10
  */
11
11
  export declare function buildGpt54SisyphusJuniorPrompt(useTaskSystem: boolean, promptAppend?: string): string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * GPT-5.5 原生 Sisyphus-Junior 提示词 - 基于 OpenAI Codex 的 gpt-5.4 提示词架构
3
+ * 从头重写,针对 GPT-5.5 进行了调优。
4
+ *
5
+ * 源自 drafts/gpt-5-5/sisyphus-junior.md(2026 年 4 月审核)。
6
+ *
7
+ * 为何独立模块:Sisyphus-Junior 是与 Hephaestus 对应的分类衍生执行器。
8
+ * 基础提示词与分类无关;实际的分类上下文(deep、quick、ultrabrain、writing)
9
+ * 在运行时通过 \`promptAppend\` 参数附加。GPT-5.5 被期望能够将分类上下文
10
+ * 和基础指令连贯地整合在一起,无需在"分类上下文"结尾部分之外添加显式框架。
11
+ */
12
+ export declare function buildGpt55SisyphusJuniorPrompt(useTaskSystem: boolean, promptAppend?: string): string;
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Generic GPT Sisyphus-Junior System Prompt
2
+ * 通用 GPT Sisyphus-Junior 系统提示词
3
3
  *
4
- * Hephaestus-style prompt adapted for a focused executor:
5
- * - Same autonomy, reporting, parallelism, and tool usage patterns
6
- * - CAN spawn explore/librarian via call_omo_agent for research
7
- * - Used as fallback for GPT models without a model-specific prompt
4
+ * 适配于专注执行器的赫菲斯托斯风格提示词:
5
+ * - 保持相同的自主性、报告、并行和工具使用模式
6
+ * - 可通过 call_omo_agent 生成 explore/librarian 进行研究
7
+ * - 作为没有特定模型提示词的 GPT 模型的回退方案
8
8
  */
9
9
  export declare function buildGptSisyphusJuniorPrompt(useTaskSystem: boolean, promptAppend?: string): string;
@@ -1,6 +1,7 @@
1
1
  export { buildDefaultSisyphusJuniorPrompt } from "./default";
2
2
  export { buildGptSisyphusJuniorPrompt } from "./gpt";
3
3
  export { buildGpt54SisyphusJuniorPrompt } from "./gpt-5-4";
4
+ export { buildGpt55SisyphusJuniorPrompt } from "./gpt-5-5";
4
5
  export { buildGpt53CodexSisyphusJuniorPrompt } from "./gpt-5-3-codex";
5
6
  export { buildGeminiSisyphusJuniorPrompt } from "./gemini";
6
7
  export { SISYPHUS_JUNIOR_DEFAULTS, getSisyphusJuniorPromptSource, buildSisyphusJuniorPrompt, createSisyphusJuniorAgentWithOverrides, } from "./agent";
@@ -1,9 +1,8 @@
1
1
  import type { AgentConfig } from "@opencode-ai/sdk";
2
2
  import type { AgentPromptMetadata } from "./types";
3
3
  export declare const SISYPHUS_PROMPT_METADATA: AgentPromptMetadata;
4
- import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "./dynamic-agent-prompt-builder";
5
- export declare function buildDynamicSisyphusPromptZh(model: string, availableAgents: AvailableAgent[], availableTools?: AvailableTool[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean, language?: string): string;
6
- export declare function createSisyphusAgent(model: string, availableAgents?: AvailableAgent[], availableToolNames?: string[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean, language?: string): AgentConfig;
4
+ import type { AvailableAgent, AvailableSkill, AvailableCategory } from "./dynamic-agent-prompt-builder";
5
+ export declare function createSisyphusAgent(model: string, availableAgents?: AvailableAgent[], availableToolNames?: string[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): AgentConfig;
7
6
  export declare namespace createSisyphusAgent {
8
7
  var mode: "primary";
9
8
  }
@@ -53,7 +53,8 @@ export interface AgentPromptMetadata {
53
53
  keyTrigger?: string;
54
54
  }
55
55
  export declare function isGptModel(model: string): boolean;
56
- export declare function isGpt5_4Model(model: string): boolean;
56
+ export declare function isGptNativeSisyphusModel(model: string): boolean;
57
+ export declare function isGpt5_5Model(model: string): boolean;
57
58
  export declare function isGpt5_3CodexModel(model: string): boolean;
58
59
  export declare function isMiniMaxModel(model: string): boolean;
59
60
  export declare function isGlmModel(model: string): boolean;