/** * cogitator run [message] - run agent */ import { Command } from 'commander'; import { Agent } from '@cogitator-ai/core'; import type { CogitatorConfig } from '@cogitator-ai/types'; import { findConfig, loadRunConfig, type RunConfig } from '../utils/run-config.js'; /** * The config with an MCP connector for the servers of plugins, when it has plugins and names no * connector: a config file cannot hold one, and plugins of the Claude Code format bring servers */ export declare function withPluginServers(config: CogitatorConfig): CogitatorConfig; export { findConfig, loadRunConfig }; export type { RunConfig }; /** The version of the CLI, as its package.json has it */ export declare function cliVersion(): string; export declare function createCliAgent(model: string): Agent; export declare function pickOllamaModel(available: readonly string[]): string | null; export declare function detectOllamaModel(baseUrl: string, apiKey?: string, headers?: Record): Promise; export declare function resolveRunModel(flagModel: string | undefined, env: Record, config: CogitatorConfig, configModel?: string): string | undefined; /** * The runtime config and the model a run would use: the flags, the config file, else Ollama's * models. The model is undefined when none is named and Ollama has none */ export declare function resolveRunConfig(options: { config?: string; model?: string; }): Promise<{ config: CogitatorConfig; model?: string; }>; /** Hints for a run that found no model */ export declare const NO_MODEL_HINTS: string[]; /** The runtime config and the model a run uses: the flags, the config file, else Ollama's models */ export declare function resolveRunRuntime(options: { config?: string; model?: string; }): Promise<{ config: CogitatorConfig; model: string; }>; export declare const runCommand: Command; //# sourceMappingURL=run.d.ts.map