histoire
Version:
A fast story book powered by Vite
16 lines • 1.08 kB
TypeScript
import type { CatalogSnapshot, CatalogStory } from '../../runtime/catalog/types.js';
import { readRegisteredText } from './containment.js';
/** Existing metadata validation/size quotas remain MCP projection policy. */
declare function validateStory(story: CatalogStory): 'INVALID_METADATA' | 'RESULT_TOO_LARGE' | undefined;
/** Shared capture supports direct compatibility callers without weakening access policy. */
export declare const mcpCapturePolicy: {
readText: typeof readRegisteredText;
validateStory: typeof validateStory;
maxDiagnostics: 100;
};
/** Projects canonical registered handles into MCP containment without another read or collector. */
export declare function projectMcpSnapshot(snapshot: CatalogSnapshot, root: string, secret?: string): CatalogSnapshot;
/** Projects compatibility captures before their owning provider assigns a revision. */
export declare function projectMcpSnapshot(snapshot: Omit<CatalogSnapshot, 'revision'>, root: string, secret?: string): Omit<CatalogSnapshot, 'revision'>;
export {};
//# sourceMappingURL=projection.d.ts.map