import{EventRegistry as d,OperationSpecRegistry as l}from"@contractspec/lib.contracts-spec";import{DataViewRegistry as P}from"@contractspec/lib.contracts-spec/data-views";import{ContractReferenceDataView as C,ContractReferenceQuery as u,DocsGenerateCommand as f,DocsGeneratedEvent as k,DocsIndexDataView as p,DocsIndexQuery as v,DocsLayoutPresentation as g,DocsPublishCommand as c,DocsPublishedEvent as y,DocsReferencePagePresentation as a,DocsSearchForm as o,ExampleCatalogDataView as i}from"@contractspec/lib.contracts-spec/docs";import{FormRegistry as n}from"@contractspec/lib.contracts-spec/forms";import{PresentationRegistry as s}from"@contractspec/lib.contracts-spec/presentations";import{serializeDataViewSpec as t,serializeEventSpec as r,serializeFormSpec as e,serializeOperationSpec as DD,serializePresentationSpec as QD}from"@contractspec/lib.contracts-spec/serialization";var q=null;function T(){let D=new l;return D.register(v).register(u).register(f).register(c),D}function H(){if(!q)q=T();return q}function j(D,Q){return H().get(D,Q)}var w=null;function V(){let D=new d;return D.register(k).register(y),D}function W(){if(!w)w=V();return w}function X(D,Q){return W().get(D,Q)}var z=null;function Y(){let D=new s;return D.register(g).register(a),D}function Z(){if(!z)z=Y();return z}function _(D,Q){return Z().get(D,Q)}var B=null;function $(){let D=new P;return D.register(p).register(C).register(i),D}function h(){if(!B)B=$();return B}function E(D,Q){return h().get(D,Q)}var G=null;function U(){let D=new n;return D.register(o),D}function A(){if(!G)G=U();return G}function O(D,Q){return A().get(D)}function xD(D,Q){let x=j(D,Q);return DD(x)??void 0}function jD(D,Q){let x=X(D,Q);return r(x)??void 0}function qD(D,Q){let x=_(D,Q);return QD(x)??void 0}function wD(D,Q){let x=E(D,Q);return t(x)??void 0}function zD(D,Q){let x=O(D,Q);return e(x)??void 0}function b(){q=null}function R(){w=null}function S(){z=null}function I(){B=null}function M(){G=null}function BD(){b(),R(),S(),I(),M()}var K={meta:{key:"contractspec.docs",version:"1.0.0",title:"Documentation",description:"Comprehensive documentation system for ContractSpec",domain:"platform",owners:["@platform.docs"],tags:["documentation","guides","api-reference"],stability:"stable"},operations:[{key:"docs_search",version:"1.0.0"},{key:"docs.navigate",version:"1.0.0"}],events:[{key:"docs.page_viewed",version:"1.0.0"},{key:"docs.search_performed",version:"1.0.0"}],presentations:[{key:"docs.landing",version:"1.0.0"},{key:"docs.getting-started",version:"1.0.0"},{key:"docs.architecture",version:"1.0.0"}],capabilities:{provides:[{key:"contracts.docs",version:"1.0.0"}],requires:[]}};import{ContractReferenceQuery as GD,DocSummaryModel as HD,DocsIndexInput as JD,DocsIndexOutput as KD,DocsIndexQuery as LD,DocsIndexQuery as ND}from"@contractspec/lib.contracts-spec/docs";var L={meta:{key:"contractspec.mcp",version:"1.0.0",title:"MCP Integration",description:"Model Context Protocol server for AI agent integration",domain:"platform",owners:["@platform.mcp"],tags:["mcp","ai-agents","tooling"],stability:"beta"},operations:[{key:"mcp.tool.register",version:"1.0.0"},{key:"mcp.resource.register",version:"1.0.0"},{key:"mcp.prompt.register",version:"1.0.0"}],events:[{key:"mcp.tool_invoked",version:"1.0.0"},{key:"mcp.resource_accessed",version:"1.0.0"}],presentations:[],capabilities:{provides:[{key:"contracts.mcp",version:"1.0.0"}],requires:[{key:"contracts.operations",version:"1.0.0"}]}};var N={meta:{key:"contractspec.presentations",version:"1.0.0",title:"Presentation Runtime",description:"Cross-platform rendering of contract-driven UI",domain:"platform",owners:["@platform.presentations"],tags:["presentations","ui","rendering","cross-platform"],stability:"beta"},operations:[{key:"presentation.render",version:"1.0.0"},{key:"presentation.transform",version:"1.0.0"}],events:[{key:"presentation.rendered",version:"1.0.0"},{key:"presentation.transformed",version:"1.0.0"}],presentations:[{key:"form.standard",version:"1.0.0"},{key:"list.standard",version:"1.0.0"},{key:"detail.standard",version:"1.0.0"}],capabilities:{provides:[{key:"contracts.presentations",version:"1.0.0"}],requires:[]}};import{AppConfigFeature as TD}from"@contractspec/lib.contracts-spec/app-config";import{FeatureRegistry as VD}from"@contractspec/lib.contracts-spec/features";function m(){let D=new VD;return D.register(K),D.register(L),D.register(N),D.register(TD),D}var J=null;function WD(){if(!J)J=m();return J}function XD(){J=null}import{FeatureRegistry as kD}from"@contractspec/lib.contracts-spec/features";import{useMemo as F}from"react";function nD(){let D=F(()=>H(),[]);return F(()=>({resolveOperation:(Q)=>j(Q.key,Q.version),getOperationSpec:(Q,x)=>j(Q,x),listOperations:()=>D.list()}),[D])}export{nD as useContractsRegistry};
