UNPKG

histoire

Version:

A fast story book powered by Vite

8 lines (7 loc) • 495 B
import { captureCatalogSnapshot as captureSnapshot } from '../../runtime/catalog/snapshot.js'; import { mcpCapturePolicy, projectMcpSnapshot } from './projection.js'; /** Compatibility capture returns exact MCP/private-artifact metadata and access bounds. */ export async function captureCatalogSnapshot(ctx, options, outcomes) { const snapshot = await captureSnapshot(ctx, { ...options, ...mcpCapturePolicy }, outcomes); return projectMcpSnapshot(snapshot, ctx.root, options.secret); }