histoire
Version:
A fast story book powered by Vite
10 lines • 608 B
TypeScript
import type { ViteDevServer } from 'vite';
import type { AcpManager } from '../../acp/manager.js';
import type { Context } from '../../context.js';
/**
* Serves cached registry agent logos at `/__histoire/agents/icon/<registryId>`.
* Only registry-owned URLs are fetched; the browser never supplies one. Responses
* forbid every subresource and script so a hostile SVG stays inert even if opened directly.
*/
export declare function registerAgentIcons(ctx: Context, server: ViteDevServer, manager: Pick<AcpManager, 'icon'>, isActive: () => boolean): () => void;
//# sourceMappingURL=agents-icons.d.ts.map