histoire
Version:
A fast story book powered by Vite
27 lines • 1.24 kB
TypeScript
import type { SessionNotification } from '@agentclientprotocol/sdk';
import type { UiAgentSettings } from '@histoire/shared';
import type { AgentBrokers } from './brokers.js';
import type { AgentRecord } from './record.js';
/** Coalesced startup owns its record before any package download or SDK await. */
export declare function startAgentRecord(record: AgentRecord, preset: UiAgentSettings['presets'][number], options: {
/** Captured project root. */
root: string;
/** Bounded initialize handshake. */
timeout: number;
/** Resolves managed distribution and private environment. */
prepare: () => Promise<{
preset: UiAgentSettings['presets'][number];
environment: Record<string, string>;
}>;
/** Tests exact manager generation and record identity. */
owned: () => boolean;
/** Redacts launch and protocol failures. */
sanitize: (value: string) => string;
/** Safe state broadcaster. */
changed: () => void;
/** Permission and elicitation authority shared by every agent. */
brokers: AgentBrokers;
/** Existing notification observer. */
update: (notification: SessionNotification) => void;
}): Promise<void>;
//# sourceMappingURL=start-record.d.ts.map