@skj1724/oh-my-opencode 3.18.25 → 3.18.27

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.
@@ -23,11 +23,12 @@ export interface OrchestratorContext {
23
23
  availableAgents?: AvailableAgent[];
24
24
  availableSkills?: AvailableSkill[];
25
25
  userCategories?: Record<string, CategoryConfig>;
26
+ language?: string;
26
27
  }
27
28
  /**
28
- * Gets the appropriate Atlas prompt based on model.
29
+ * Gets the appropriate Atlas prompt based on model and language.
29
30
  */
30
- export declare function getAtlasPrompt(model?: string): string;
31
+ export declare function getAtlasPrompt(model?: string, language?: string): string;
31
32
  export declare function createAtlasAgent(ctx: OrchestratorContext): AgentConfig;
32
33
  export declare namespace createAtlasAgent {
33
34
  var mode: "primary";
@@ -1,2 +1,2 @@
1
1
  import type { AvailableCategory, AvailableSkill } from "./dynamic-agent-prompt-types";
2
- export declare function buildCategorySkillsDelegationGuide(categories: AvailableCategory[], skills: AvailableSkill[]): string;
2
+ export declare function buildCategorySkillsDelegationGuide(categories: AvailableCategory[], skills: AvailableSkill[], language?: string): string;
@@ -1,17 +1,11 @@
1
1
  import type { AvailableAgent, AvailableCategory, AvailableSkill } from "./dynamic-agent-prompt-types";
2
2
  import type { AvailableTool } from "./dynamic-agent-prompt-types";
3
- /**
4
- * Builds an explicit agent identity preamble that overrides any base system prompt identity.
5
- * This is critical for mode: "primary" agents where OpenCode prepends its own system prompt
6
- * containing a default identity (e.g., "You are Claude"). Without this override directive,
7
- * the LLM may default to the base identity instead of the agent's intended persona.
8
- */
9
- export declare function buildAgentIdentitySection(agentName: string, roleDescription: string): string;
10
- export declare function buildKeyTriggersSection(agents: AvailableAgent[], _skills?: AvailableSkill[]): string;
11
- export declare function buildToolSelectionTable(agents: AvailableAgent[], tools?: AvailableTool[], _skills?: AvailableSkill[]): string;
12
- export declare function buildExploreSection(agents: AvailableAgent[]): string;
13
- export declare function buildLibrarianSection(agents: AvailableAgent[]): string;
14
- export declare function buildDelegationTable(agents: AvailableAgent[]): string;
15
- export declare function buildOracleSection(agents: AvailableAgent[]): string;
16
- export declare function buildNonClaudePlannerSection(model: string): string;
17
- export declare function buildParallelDelegationSection(model: string, categories: AvailableCategory[]): string;
3
+ export declare function buildAgentIdentitySection(agentName: string, roleDescription: string, language?: string): string;
4
+ export declare function buildKeyTriggersSection(agents: AvailableAgent[], _skills?: AvailableSkill[], language?: string): string;
5
+ export declare function buildToolSelectionTable(agents: AvailableAgent[], tools?: AvailableTool[], _skills?: AvailableSkill[], language?: string): string;
6
+ export declare function buildExploreSection(agents: AvailableAgent[], language?: string): string;
7
+ export declare function buildLibrarianSection(agents: AvailableAgent[], language?: string): string;
8
+ export declare function buildDelegationTable(agents: AvailableAgent[], language?: string): string;
9
+ export declare function buildOracleSection(agents: AvailableAgent[], language?: string): string;
10
+ export declare function buildNonClaudePlannerSection(model: string, language?: string): string;
11
+ export declare function buildParallelDelegationSection(model: string, categories: AvailableCategory[], language?: string): string;
@@ -1,6 +1,6 @@
1
1
  import type { AvailableAgent, AvailableCategory, AvailableSkill } from "./dynamic-agent-prompt-types";
2
- export declare function buildHardBlocksSection(): string;
3
- export declare function buildAntiPatternsSection(): string;
4
- export declare function buildToolCallFormatSection(): string;
5
- export declare function buildUltraworkSection(agents: AvailableAgent[], categories: AvailableCategory[], skills: AvailableSkill[]): string;
6
- export declare function buildAntiDuplicationSection(): string;
2
+ export declare function buildHardBlocksSection(language?: string): string;
3
+ export declare function buildAntiPatternsSection(language?: string): string;
4
+ export declare function buildToolCallFormatSection(language?: string): string;
5
+ export declare function buildUltraworkSection(agents: AvailableAgent[], categories: AvailableCategory[], skills: AvailableSkill[], language?: string): string;
6
+ export declare function buildAntiDuplicationSection(language?: string): string;
@@ -1,3 +1,3 @@
1
1
  import type { AvailableTool } from "./dynamic-agent-prompt-types";
2
2
  export declare function categorizeTools(toolNames: string[]): AvailableTool[];
3
- export declare function getToolsPromptDisplay(tools: AvailableTool[]): string;
3
+ export declare function getToolsPromptDisplay(tools: AvailableTool[], language?: string): string;
@@ -25,4 +25,4 @@ export declare function getPrometheusPromptSource(model?: string): PrometheusPro
25
25
  * Gemini models → Gemini-optimized prompt (aggressive tool-call enforcement, thinking checkpoints)
26
26
  * Default (Claude, etc.) → Claude-optimized prompt (modular sections)
27
27
  */
28
- export declare function getPrometheusPrompt(model?: string, disabledTools?: readonly string[]): string;
28
+ export declare function getPrometheusPrompt(model?: string, disabledTools?: readonly string[], language?: string): string;
@@ -8,9 +8,9 @@ export declare const CHINESE_PROMPTS: {
8
8
  readonly momus: "file://./src/agents/prompts-zh/momus.md";
9
9
  readonly "sisyphus-junior": "file://./src/agents/prompts-zh/sisyphus-junior.md";
10
10
  readonly general: {
11
- readonly librarian: "file://./src/agents/prompts-zh/general-agents.md";
12
- readonly explore: "file://./src/agents/prompts-zh/general-agents.md";
13
- readonly "multimodal-looker": "file://./src/agents/prompts-zh/general-agents.md";
11
+ readonly librarian: "file://./src/agents/prompts-zh/librarian.md";
12
+ readonly explore: "file://./src/agents/prompts-zh/explore.md";
13
+ readonly "multimodal-looker": "file://./src/agents/prompts-zh/multimodal-looker.md";
14
14
  };
15
15
  };
16
16
  export type ChinesePromptKey = keyof typeof CHINESE_PROMPTS;
@@ -4,6 +4,6 @@
4
4
  */
5
5
  import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
6
6
  import { categorizeTools } from "../dynamic-agent-prompt-builder";
7
- export declare function buildTaskManagementSection(useTaskSystem: boolean): string;
7
+ export declare function buildTaskManagementSection(useTaskSystem: boolean, language?: string): string;
8
8
  export declare function buildDefaultSisyphusPrompt(model: string, availableAgents: AvailableAgent[], availableTools?: AvailableTool[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): string;
9
9
  export { categorizeTools };
@@ -2,7 +2,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
2
2
  import type { AgentPromptMetadata } from "./types";
3
3
  export declare const SISYPHUS_PROMPT_METADATA: AgentPromptMetadata;
4
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): string;
5
+ export declare function buildDynamicSisyphusPromptZh(model: string, availableAgents: AvailableAgent[], availableTools?: AvailableTool[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean, language?: string): string;
6
6
  export declare function createSisyphusAgent(model: string, availableAgents?: AvailableAgent[], availableToolNames?: string[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean, language?: string): AgentConfig;
7
7
  export declare namespace createSisyphusAgent {
8
8
  var mode: "primary";
@@ -0,0 +1,3 @@
1
+ export type SupportedLanguage = "zh-CN" | "zh-TW" | "en-US" | "ja-JP" | "ko-KR" | "fr-FR" | "de-DE" | "es-ES" | "pt-BR" | "ru-RU" | "vi-VN" | "th-TH" | "id-ID" | "ms-MY" | "hi-IN" | "ar-SA" | "he-IL";
2
+ export declare function isZhLanguage(lang?: string): boolean;
3
+ export declare function isEnLanguage(lang?: string): boolean;