import type { CorpConfig } from "../../core/config/types.js"; import type { createSealClient } from "../../core/http/factory.js"; import { runTool } from "../helpers.js"; import { outputOptions } from "../printer.js"; import type { ParsedArgs } from "../types.js"; export async function handleLlmCommand( action: string | undefined, client: Awaited>, corp: CorpConfig, args: ParsedArgs ) { if (action === "config" || action === "get") { await runTool("seal_llm_config_get", client, corp, {}, outputOptions(args.options)); return; } if (action === "providers" || action === "list") { await runTool("seal_llm_providers_list", client, corp, {}, outputOptions(args.options)); return; } throw new Error(`Unknown llm command: ${action ?? ""}. Run 'seal-use help' for available commands.`); }