import { $ as StorageDescriptor, A as HarnessConstructor, B as InvokeOptions, C as listMcpServers, D as removeMcpServer, E as readMasterMcpServers, F as HarnessDetection, G as McpServerConfig, H as ListModelsOptions, I as HarnessId, J as Platform, K as PathCandidate, L as HarnessInvocation, M as EnvOverride, N as EvidenceLevel, O as syncMcpServers, P as HarnessCapabilities, Q as SkillsSyncTarget, R as HarnessInvocationModes, S as addMcpServer, T as parseJsonc, U as ListModelsResult, V as InvokeResult, W as McpConfigFile, X as ResolveOptions, Y as PromptTemplateSyncTarget, Z as ResolvedPaths, _ as McpConfigListing, a as PromptSyncAction, b as SyncReport, c as PromptTemplateTargetResult, d as AgentsConfig, et as version, f as AgentsSyncAction, g as syncAgentsFiles, h as readAgentsConfig, i as syncSkills, j as AvailableModel, k as Harness, l as syncPromptTemplates, m as AgentsTargetResult, n as SkillsSyncReport, o as PromptSyncReport, p as AgentsSyncReport, q as PathCategory, r as SkillsSyncTargetResult, s as PromptSyncTargetResult, t as SkillsSyncAction, u as AgentsCompanionTargetResult, v as McpEnvError, w as masterMcpPath, x as SyncTargetResult, y as McpTransportError, z as HarnessModelListing } from "./_chunks/skills-sync.mjs"; //#region src/registry.d.ts export declare function registerHarness(HarnessClass: HarnessConstructor): Harness; export declare function getHarness(id: HarnessId): Harness; export declare function listHarnesses(): HarnessId[]; export declare function isHarnessId(id: string): id is HarnessId; export declare function getAllHarnesses(): Harness[]; /** * Detect the active agent from environment variables. * Returns the first match since env detection is unambiguous. * * @returns {Harness | null} The detected harness, or null when none matches. */ export declare function detectHarnessFromEnv(): Harness | null; /** * Detect which agents have project-level markers in the given directory. * Returns all matches (multiple agents can be configured in the same project). * * @param cwd - Directory to inspect; defaults to the current working directory. * @returns {Harness[]} Every harness whose project markers match. */ export declare function detectProjectHarnesses(cwd?: string): Harness[]; /** * Detect the most likely active agent. Priority: * 1. Env vars (running inside agent = unambiguous) * 2. Single project-level match * 3. null if ambiguous or no match * * @param cwd - Directory to inspect for project markers. * @returns {Harness | null} The unambiguous active harness, or null. */ export declare function detectHarness(cwd?: string): Harness | null; //#endregion //#region src/resolve.d.ts export declare function resolvePathTemplate(template: string, options?: ResolveOptions): string; /** * The agntn config directory: $XDG_CONFIG_HOME/agntn or ~/.config/agntn. * * @param options - Path-resolution overrides. * @returns {string} The resolved agntn configuration directory. */ export declare function agntnConfigDir(options?: ResolveOptions): string; /** * The agntn data directory: $XDG_DATA_HOME/agntn or ~/.local/share/agntn. * * @param options - Path-resolution overrides. * @returns {string} The resolved agntn data directory. */ export declare function agntnDataDir(options?: ResolveOptions): string; //#endregion //#region src/schemas/claude.d.ts interface ClaudeTextBlock { type: "text"; text: string; } interface ClaudeThinkingBlock { type: "thinking"; thinking: string; signature: string; } interface ClaudeToolUseBlock { type: "tool_use"; id: string; name: string; input: unknown; } interface ClaudeToolResultBlock { type: "tool_result"; tool_use_id: string; content: string | unknown[]; is_error: boolean; } type ClaudeContentBlock = ClaudeTextBlock | ClaudeThinkingBlock | ClaudeToolUseBlock | ClaudeToolResultBlock; interface ClaudeUsage { input_tokens: number; cache_creation_input_tokens: number; cache_read_input_tokens: number; output_tokens: number; } interface ClaudeBaseEntry { uuid: string; timestamp: string; sessionId: string; parentUuid: string | null; isSidechain: boolean; userType: "external" | "ant"; cwd: string; version: string; gitBranch: string; } interface ClaudeUserEntry extends ClaudeBaseEntry { type: "user"; message: { role: "user"; content: string | ClaudeContentBlock[]; }; isMeta?: boolean; toolUseResult?: { stdout: string; stderr: string; interrupted: boolean; isImage: boolean; }; } interface ClaudeAssistantEntry extends ClaudeBaseEntry { type: "assistant"; requestId: string; message: { id: string; role: "assistant"; type: "message"; model: string; content: ClaudeContentBlock[]; stop_reason: string | null; stop_sequence: string | null; usage: ClaudeUsage; }; } interface ClaudeSummaryEntry { type: "summary"; summary: string; leafUuid: string; } type ClaudeSessionEntry = ClaudeUserEntry | ClaudeAssistantEntry | ClaudeSummaryEntry; interface ClaudeHistoryEntry { display: string; timestamp: number; project: string; sessionId: string; pastedContents: Record; } //#endregion //#region src/schemas/gemini.d.ts interface GeminiTokensSummary { input: number; output: number; cached: number; thoughts?: number; tool?: number; total: number; } interface GeminiToolCallRecord { id: string; name: string; args: Record; result?: unknown[] | null; status: "success" | "error" | "running"; timestamp: string; displayName?: string; renderOutputAsMarkdown?: boolean; } interface GeminiThought { subject: string; description: string; timestamp: string; } interface GeminiMessageRecord { id: string; timestamp: string; type: "user" | "gemini" | "info" | "error" | "warning"; content: unknown[]; displayContent?: unknown[]; model?: string; tokens?: GeminiTokensSummary; thoughts?: GeminiThought[]; toolCalls?: GeminiToolCallRecord[]; } interface GeminiConversationRecord { sessionId: string; projectHash: string; startTime: string; lastUpdated: string; messages: GeminiMessageRecord[]; summary?: string; directories?: string[]; kind?: "main" | "subagent"; } //#endregion //#region src/schemas/codex.d.ts interface CodexHistoryEntry { session_id: string; ts: number; text: string; } interface CodexThread { id: string; rollout_path: string; created_at: number; updated_at: number; source: string; model_provider: string; cwd: string; title: string; sandbox_policy: string; approval_mode: string; tokens_used: number; archived: number; git_sha: string; } interface CodexLogEntry { id: number; ts: number; ts_nanos: number; level: string; message: string; thread_id: string | null; process_uuid: string; } //#endregion //#region src/schemas/opencode.d.ts interface OpenCodeSession { id: string; project_id: string; workspace_id: string | null; parent_id: string | null; slug: string; directory: string; title: string; version: string; share_url: string | null; summary_additions: number | null; summary_deletions: number | null; summary_files: number | null; time_created: number; time_updated: number; time_compacting: number | null; time_archived: number | null; } interface OpenCodeMessage { id: string; session_id: string; time_created: number; time_updated: number; data: unknown; } interface OpenCodeTextPart { type: "text"; text: string; synthetic?: boolean; ignored?: boolean; } interface OpenCodeReasoningPart { type: "reasoning"; text: string; } interface OpenCodeToolPart { type: "tool"; callID: string; tool: string; state: "pending" | "running" | "completed" | "error"; } interface OpenCodeFilePart { type: "file"; mime: string; filename: string; url: string; source?: string; } interface OpenCodeSubtaskPart { type: "subtask"; prompt: string; description: string; agent?: string; model?: string; command?: string; } interface OpenCodeStepStartPart { type: "step-start"; snapshot?: string; } interface OpenCodeStepFinishPart { type: "step-finish"; reason: string; cost?: number; tokens?: unknown; snapshot?: string; } interface OpenCodeSnapshotPart { type: "snapshot"; snapshot: string; } interface OpenCodePatchPart { type: "patch"; hash: string; files: unknown; } interface OpenCodeAgentPart { type: "agent"; name: string; source?: string; } interface OpenCodeRetryPart { type: "retry"; attempt: number; error: string; time?: number; } interface OpenCodeCompactionPart { type: "compaction"; auto?: boolean; overflow?: boolean; } type OpenCodePart = OpenCodeTextPart | OpenCodeReasoningPart | OpenCodeToolPart | OpenCodeFilePart | OpenCodeSubtaskPart | OpenCodeStepStartPart | OpenCodeStepFinishPart | OpenCodeSnapshotPart | OpenCodePatchPart | OpenCodeAgentPart | OpenCodeRetryPart | OpenCodeCompactionPart; interface OpenCodeTodo { session_id: string; content: string; status: string; priority: string; position: number; time_created: number; time_updated: number; } interface OpenCodeProject { id: string; worktree: string; vcs: string | null; name: string | null; } //#endregion //#region src/index.d.ts export declare const harnessIds: readonly HarnessId[]; //#endregion export { type AgentsCompanionTargetResult, type AgentsConfig, type AgentsSyncAction, type AgentsSyncReport, type AgentsTargetResult, type AvailableModel, type ClaudeAssistantEntry, type ClaudeBaseEntry, type ClaudeContentBlock, type ClaudeHistoryEntry, type ClaudeSessionEntry, type ClaudeSummaryEntry, type ClaudeTextBlock, type ClaudeThinkingBlock, type ClaudeToolResultBlock, type ClaudeToolUseBlock, type ClaudeUsage, type ClaudeUserEntry, type CodexHistoryEntry, type CodexLogEntry, type CodexThread, type EnvOverride, type EvidenceLevel, type GeminiConversationRecord, type GeminiMessageRecord, type GeminiThought, type GeminiTokensSummary, type GeminiToolCallRecord, Harness, type HarnessCapabilities, type HarnessConstructor, type HarnessDetection, type HarnessId, type HarnessInvocation, type HarnessInvocationModes, type HarnessModelListing, type InvokeOptions, type InvokeResult, type ListModelsOptions, type ListModelsResult, type McpConfigFile, type McpConfigListing, McpEnvError, type McpServerConfig, McpTransportError, type OpenCodeAgentPart, type OpenCodeCompactionPart, type OpenCodeFilePart, type OpenCodeMessage, type OpenCodePart, type OpenCodePatchPart, type OpenCodeProject, type OpenCodeReasoningPart, type OpenCodeRetryPart, type OpenCodeSession, type OpenCodeSnapshotPart, type OpenCodeStepFinishPart, type OpenCodeStepStartPart, type OpenCodeSubtaskPart, type OpenCodeTextPart, type OpenCodeTodo, type OpenCodeToolPart, type PathCandidate, type PathCategory, type Platform, type PromptSyncAction, type PromptSyncReport, type PromptSyncTargetResult, type PromptTemplateSyncTarget, type PromptTemplateTargetResult, type ResolveOptions, type ResolvedPaths, type SkillsSyncAction, type SkillsSyncReport, type SkillsSyncTarget, type SkillsSyncTargetResult, type StorageDescriptor, type SyncReport, type SyncTargetResult, addMcpServer, listMcpServers, masterMcpPath, parseJsonc, readAgentsConfig, readMasterMcpServers, removeMcpServer, syncAgentsFiles, syncMcpServers, syncPromptTemplates, syncSkills, version }; //# sourceMappingURL=index.d.mts.map