UNPKG

histoire

Version:

A fast story book powered by Vite

25 lines • 1.36 kB
import type { UiAgentCommand, UiAgentConfigOptions, UiAgentSettings } from '@histoire/shared'; /** Temporary sessions never borrow a comment runtime or send prompts. */ export declare function createAgentDiscovery(options: { /** Root captured by this manager. */ root: string; /** Initialization/session timeout. */ timeout: number; /** Secret redaction shared with manager. */ sanitize: (text: string) => string; /** Longest wait for commands announced after the probe session starts; defaults to 1500ms. */ commandsWait?: number; /** Receives commands announced by a fresh probe (never for results served from the cache). */ announced?: (agentId: string, commands: UiAgentCommand[]) => void; }): { /** Secret-bearing cache key stays in memory and never enters public snapshots. */ discover(preset: UiAgentSettings['presets'][number], environment: Record<string, string>, prepare: () => Promise<{ preset: UiAgentSettings['presets'][number]; environment: Record<string, string>; }>, force?: boolean): Promise<UiAgentConfigOptions>; /** Retire captured async authority before stopping temporary process trees. */ retire(): void; /** Drain probes as part of manager shutdown, including downloads and queued work. */ close(): Promise<void>; }; //# sourceMappingURL=discovery.d.ts.map