import { Sn as AgentDefaultsConfig, r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { t as PluginManifestRecord } from "./manifest-registry-DfLhto5W.js"; import { o as VerboseLevel, r as ThinkLevel } from "./thinking.shared-B0i5nFYk.js"; import { m as EmbeddedPiRunMeta } from "./params-Dn0c2Mlz.js"; import { s as SessionEntry } from "./types-XfK0DXQJ.js"; import { t as ModelCatalogEntry } from "./model-catalog.types-DT_5duBc.js"; import { n as RuntimeEnv } from "./runtime-BPmgxFyD.js"; import { t as CliDeps } from "./deps.types-qyR-Pvbb.js"; import { a as OutboundSessionContext } from "./delivery-queue-X7rawx8x.js"; import { l as projectOutboundPayloadPlanForJson } from "./deliver-CwujvoXi.js"; import { s as AcpSessionResolution, t as AcpSessionManager } from "./manager.core-BwUXjkag.js"; import { n as AgentCommandOpts, r as AgentCommandResultMetaOverrides, t as AgentCommandIngressOpts } from "./types-6ZMlsglI.js"; //#region src/agents/command/delivery.d.ts type AgentCommandDeliveryPayloadStatus = "sent" | "suppressed" | "failed"; type AgentCommandDeliveryPayloadOutcome = { index: number; status: AgentCommandDeliveryPayloadStatus; reason?: string; resultCount?: number; sentBeforeError?: boolean; stage?: string; error?: string; hookEffect?: { cancelReason?: string; metadata?: Record; }; }; type AgentCommandDeliveryStatus = { requested: true; attempted: boolean; status: "sent" | "suppressed" | "partial_failed" | "failed"; /** `partial` means at least one payload was sent before a later payload failed. */ succeeded: true | false | "partial"; error?: true; errorMessage?: string; /** Free-form lowercase_snake reason from durable delivery or preflight validation. */ reason?: string; resultCount?: number; sentBeforeError?: true; payloadOutcomes?: AgentCommandDeliveryPayloadOutcome[]; }; type AgentCommandDeliveryResult = { payloads: ReturnType; meta: EmbeddedPiRunMeta & AgentCommandResultMetaOverrides; deliverySucceeded?: boolean; deliveryStatus?: AgentCommandDeliveryStatus; }; //#endregion //#region src/agents/agent-runtime-config.d.ts declare function resolveAgentRuntimeConfig(runtime: RuntimeEnv, params?: { runtimeTargetsChannelSecrets?: boolean; }): Promise<{ loadedRaw: KlawConfig; sourceConfig: KlawConfig; cfg: KlawConfig; }>; //#endregion //#region src/agents/agent-command.d.ts declare function prepareAgentCommandExecution(opts: AgentCommandOpts & { senderIsOwner: boolean; }, runtime: RuntimeEnv): Promise<{ body: string; transcriptBody: string; cfg: KlawConfig; configuredThinkingCatalog: ModelCatalogEntry[]; normalizedSpawned: { spawnedBy?: string; groupId?: string; groupChannel?: string; groupSpace?: string; workspaceDir?: string; }; agentCfg: AgentDefaultsConfig | undefined; thinkOverride: ThinkLevel | undefined; thinkOnce: ThinkLevel | undefined; verboseOverride: VerboseLevel | undefined; timeoutMs: number; sessionId: string; sessionKey: string | undefined; sessionEntry: SessionEntry | undefined; sessionStore: Record | undefined; storePath: string; isNewSession: boolean; persistedThinking: ThinkLevel | undefined; persistedVerbose: VerboseLevel | undefined; sessionAgentId: string; outboundSession: OutboundSessionContext | undefined; workspaceDir: string; agentDir: string; modelManifestContext: { manifestPlugins: readonly PluginManifestRecord[]; }; runId: string; acpManager: AcpSessionManager; acpResolution: AcpSessionResolution | null; }>; declare function agentCommand(opts: AgentCommandOpts, runtime?: RuntimeEnv, deps?: CliDeps): Promise; declare function agentCommandFromIngress(opts: AgentCommandIngressOpts, runtime?: RuntimeEnv, deps?: CliDeps): Promise; declare const testing: { resolveAgentRuntimeConfig: typeof resolveAgentRuntimeConfig; prepareAgentCommandExecution: typeof prepareAgentCommandExecution; }; //#endregion export { agentCommandFromIngress as n, testing as r, agentCommand as t };