UNPKG

histoire

Version:

A fast story book powered by Vite

25 lines • 1.55 kB
import type { UiAgentCommand, UiAgentSettings } from '@histoire/shared'; import type { AcpManagerOptions } from './types.js'; /** * Manager-scoped registry preparation and discovery retain independent process ownership. * @param options Manager options. * @param sanitize Secret redaction. * @param announced Receives commands from fresh discovery probes. */ export declare function createAgentServices(options: AcpManagerOptions, sanitize: (text: string) => string, announced?: (agentId: string, commands: UiAgentCommand[]) => void): { /** A forced catalog refresh invalidates capabilities tied to previous adapter versions. */ registry(force?: boolean): Promise<import("@histoire/shared").UiAgentRegistry>; prepare: (preset: UiAgentSettings['presets'][number], environment: Record<string, string>) => Promise<{ preset: Omit<import("@histoire/shared").AgentPreset, "env">; environment: Record<string, string>; }>; /** Same-origin SVG logo of a registry agent. */ icon: (id: string) => Promise<string | undefined>; /** Coalesced probes use exact configured command/environment/model identity. */ discover: (preset: UiAgentSettings['presets'][number], environment: Record<string, string>, force?: boolean) => Promise<import("@histoire/shared").UiAgentConfigOptions>; /** Abort preparing launches synchronously before preferences enter control lane. */ retire(): void; /** No temporary agent survives context shutdown. */ close(): Promise<void>; }; //# sourceMappingURL=services.d.ts.map