histoire
Version:
A fast story book powered by Vite
9 lines (8 loc) • 578 B
JavaScript
import { attachRuntimeCatalog } from '../../runtime/catalog/attachment.js';
import { createProjectCatalog } from './catalog.js';
/** Reuses generation canonical publication while retaining MCP projection policy. */
export function attachProjectCatalog(runtime, options) {
const attachment = attachRuntimeCatalog(runtime, { ...options, epoch: runtime.epoch });
const catalog = createProjectCatalog({ ...options, epoch: runtime.epoch, root: runtime.context.root, provider: attachment.catalog });
return { catalog, ready: attachment.ready, close: attachment.close };
}