import { HarnessOptions } from "../../../composition/types/harness.cjs"; import { HarnessContext } from "../../../builders/cli/harnessContext.cjs"; import { BaseCommand } from "../baseCommand.cjs"; import { McpServerCost } from "@agimon-ai/doompi-core/mcp-schema-cost"; //#region src/cli/commands/explain/index.d.ts /** * What the selection costs before the first prompt, in tokens. * * Every figure is an estimate of what the provider will be sent, not a billed * total: skills are counted from files on disk and MCP tools from the schemas * their servers advertise, both with the same tokenizer. */ export interface MatrixCost { /** The always-on skill block Pi puts in the system prompt. */ skillPromptTokens: number; /** Skill bodies on disk, read only when a skill is invoked. */ skillBodyTokens: number; /** The persona prompt, when a profile selected one. */ personaTokens: number; /** Always-on tool schemas, per configured MCP server. */ mcpServers: McpServerCost[]; mcpToolTokens: number; } export interface MatrixExplanation { majorMode: string; profile?: string; persona?: string; domains: string[]; plugins: string[]; layers: string[]; hookGroups: string[]; hooksEnabled: boolean; skillDirectories: string[]; skillCount: number; agentCount: number; agentDirectories: string[]; mcpConfigPath?: string; mcpServers: string[]; mcpProxyUpstreams?: string[]; mcpFiltered: boolean; cost?: MatrixCost; } /** * Renders the resolved matrix for --explain. Composition spans three config * files, so this answers "why is that loaded" in one command instead of a * manual trace through domains, major modes, and plugin subsets. */ export declare function explainMatrix(explanation: MatrixExplanation): string; export declare function runExplain(context: HarnessContext): Promise; /** Compatibility API. Executables call the command function directly. */ export declare class ExplainCommand extends BaseCommand { readonly name = "explain"; matches(options: HarnessOptions): boolean; execute(context: HarnessContext): Promise; } //#endregion //# sourceMappingURL=index.d.cts.map