Files
oh-my-opencode/src/tools/call-omo-agent/agent-resolver.ts
T
2026-05-12 15:28:57 +09:00

21 lines
703 B
TypeScript

import type { PluginInput } from "@opencode-ai/plugin";
import { ALLOWED_AGENTS } from "./constants";
export function clearCallableAgentsCache(): void {
// Kept for existing test setup and external callers; the resolver is now static.
}
/**
* Resolves the set of callable agent names for call_omo_agent.
*
* This tool is deliberately narrower than delegate-task: it may only launch
* the research lookup agents used by worker-style agents while they continue
* local work. Dynamic agents and other built-ins must go through task().
*/
export async function resolveCallableAgents(
_client?: PluginInput["client"],
_sessionId?: string,
): Promise<string[]> {
return [...ALLOWED_AGENTS];
}