import type { Context } from '@deepseek-ai/cordis'; import { type Agent } from '@deepseek-ai/dsh-agent'; import type { GoalScope, HostFailureTriggerEvidence, OwnerAuthorizedRepairResumeInput } from '@dsh-enhanced/assistant-goals'; import type { SkillStore } from './store.js'; export interface OwnerRepairAgentInput { id: string; authorizationDigest: string; scope: GoalScope; ownerRouteId: string; trigger: HostFailureTriggerEvidence; objective: string; maxGoalRounds: number; expiresAt: number; provider: string; model: string; reasoningEffort?: string; maxModelCalls: number; maxToolCalls: number; maxOutputTokens: number; maxDurationMs: number; allowedTools: readonly string[]; iteration?: number; initialModelCalls?: number; initialToolCalls?: number; recordUsage?: (kind: 'model' | 'tool') => void; assertCurrent: () => void; } /** * Owns short-lived Agents for already-authorized repair Goals. It deliberately * does not submit a user message: the mounted native goal-round driver is the * only continuation producer after Goals creates the armed native goal. */ export declare class OwnerRepairAgentRuntime { #private; private readonly ctx; private readonly store?; constructor(ctx: Context, store?: SkillStore | undefined); get(sessionId: string): Agent | undefined; /** A live process-local capability backed by the current durable execution fence. */ ownsResume(input: OwnerAuthorizedRepairResumeInput, callback: () => void): boolean; create(input: OwnerRepairAgentInput, signal?: AbortSignal): Promise<{ sessionId: string; goalId: string; }>; resume(input: OwnerRepairAgentInput, repair: OwnerAuthorizedRepairResumeInput['repair'], signal?: AbortSignal): Promise<{ sessionId: string; goalId: string; }>; closeSession(sessionId: string): Promise; closeAuthorization(authorizationId: string): Promise; dispose(): Promise; } //# sourceMappingURL=repair-agent.d.ts.map