Browse Source

lowercase

Alvin Unreal 2 months ago
parent
commit
3b2b127dae
4 changed files with 5 additions and 5 deletions
  1. 1 1
      src/agents/index.ts
  2. 1 1
      src/agents/orchestrator.ts
  3. 2 2
      src/config/schema.ts
  4. 1 1
      src/index.ts

+ 1 - 1
src/agents/index.ts

@@ -13,7 +13,7 @@ export type { AgentDefinition } from "./orchestrator";
 type AgentFactory = (model: string) => AgentDefinition;
 
 const AGENT_FACTORIES: Record<AgentName, AgentFactory> = {
-  Orchestrator: createOrchestratorAgent,
+  orchestrator: createOrchestratorAgent,
   oracle: createOracleAgent,
   librarian: createLibrarianAgent,
   explore: createExploreAgent,

+ 1 - 1
src/agents/orchestrator.ts

@@ -7,7 +7,7 @@ export interface AgentDefinition {
 
 export function createOrchestratorAgent(model: string): AgentDefinition {
   return {
-    name: "Orchestrator",
+    name: "orchestrator",
     config: {
       model,
       temperature: 0.1,

+ 2 - 2
src/config/schema.ts

@@ -22,7 +22,7 @@ export type PluginConfig = z.infer<typeof PluginConfigSchema>;
 
 // Agent names
 export type AgentName =
-  | "Orchestrator"
+  | "orchestrator"
   | "oracle"
   | "librarian"
   | "explore"
@@ -31,7 +31,7 @@ export type AgentName =
   | "multimodal-looker";
 
 export const DEFAULT_MODELS: Record<AgentName, string> = {
-  Orchestrator: "anthropic/claude-sonnet-4-5",
+  orchestrator: "anthropic/claude-sonnet-4-5",
   oracle: "openai/gpt-4.1",
   librarian: "anthropic/claude-sonnet-4-5",
   explore: "anthropic/claude-haiku-4-5",

+ 1 - 1
src/index.ts

@@ -18,7 +18,7 @@ const OhMyOpenCodeLite: Plugin = async (ctx) => {
     tool: backgroundTools,
 
     config: async (opencodeConfig: Record<string, unknown>) => {
-      (opencodeConfig as { default_agent?: string }).default_agent = "Orchestrator";
+      (opencodeConfig as { default_agent?: string }).default_agent = "orchestrator";
 
       const configAgent = opencodeConfig.agent as Record<string, unknown> | undefined;
       if (!configAgent) {