import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { ToolPolicyInput } from "@mono-agent/agent-harness"; import type { RuntimeOptionsExtension } from "./runtime-option-extensions.js"; export declare const RUN_HISTORY_MCP_SERVER_NAME = "mono-agent-run-history"; export declare const RUN_HISTORY_TOOL_NAME = "RunHistory"; export interface RunHistoryBinding { readonly artifactDir: string; /** Request conversation id. Daily rollover buckets are ignored when configured. */ readonly conversationId: string; /** Run id for the active request. It is never listable or inspectable. */ readonly runId: string; /** The active session rollover mode. */ readonly rollover?: "none" | "daily"; } export interface RunHistoryRuntimeExtensionOptions { readonly artifactDir: string; /** The configured session rollover mode; daily buckets remain one logical history scope. */ readonly rollover?: "none" | "daily"; /** Best-effort diagnostic when the loopback MCP endpoint cannot start. */ readonly onUnavailable?: (error: unknown) => void; } export interface RunHistoryRuntimeExtension { readonly runtimeOptions: { readonly mcpServers: Record; }; readonly cleanup: () => Promise; } type RunHistoryToolPolicy = Pick; /** Resolve the canonical, legacy, MCP-prefixed, and server-wildcard policy spellings. */ export declare function isRunHistoryToolAllowed(policy: RunHistoryToolPolicy | undefined): boolean; /** Build a read-only RunHistory server bound to one logical conversation and active run. */ export declare function createRunHistoryServer(binding: RunHistoryBinding): McpServer; /** Create a per-request loopback MCP endpoint bound to the harness's bucketed conversation id. */ export declare function createRunHistoryRuntimeExtension(options: RunHistoryRuntimeExtensionOptions): RuntimeOptionsExtension; export {}; //# sourceMappingURL=run-history.d.ts.map