// @bun
var d=Object.defineProperty;var l=(D)=>D;function P(D,Q){this[D]=l.bind(null,Q)}var $D=(D,Q)=>{for(var x in Q)d(D,x,{get:Q[x],enumerable:!0,configurable:!0,set:P.bind(Q,x)})};var hD=(D,Q)=>()=>(D&&(Q=D(D=0)),Q);import{EventRegistry as C,OperationSpecRegistry as u}from"@contractspec/lib.contracts-spec";import{DataViewRegistry as f}from"@contractspec/lib.contracts-spec/data-views";import{ContractReferenceDataView as k,ContractReferenceQuery as p,DocsGenerateCommand as v,DocsGeneratedEvent as g,DocsIndexDataView as c,DocsIndexQuery as y,DocsLayoutPresentation as a,DocsPublishCommand as o,DocsPublishedEvent as i,DocsReferencePagePresentation as n,DocsSearchForm as s,ExampleCatalogDataView as t}from"@contractspec/lib.contracts-spec/docs";import{FormRegistry as r}from"@contractspec/lib.contracts-spec/forms";import{PresentationRegistry as e}from"@contractspec/lib.contracts-spec/presentations";import{serializeDataViewSpec as DD,serializeEventSpec as QD,serializeFormSpec as xD,serializeOperationSpec as jD,serializePresentationSpec as qD}from"@contractspec/lib.contracts-spec/serialization";var q=null;function T(){let D=new u;return D.register(y).register(p).register(v).register(o),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 C;return D.register(g).register(i),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 e;return D.register(a).register(n),D}function Z(){if(!z)z=Y();return z}function _(D,Q){return Z().get(D,Q)}var B=null;function $(){let D=new f;return D.register(c).register(k).register(t),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 r;return D.register(s),D}function A(){if(!G)G=U();return G}function O(D,Q){return A().get(D)}function wD(D,Q){let x=j(D,Q);return jD(x)??void 0}function zD(D,Q){let x=X(D,Q);return QD(x)??void 0}function BD(D,Q){let x=_(D,Q);return qD(x)??void 0}function GD(D,Q){let x=E(D,Q);return DD(x)??void 0}function HD(D,Q){let x=O(D,Q);return xD(x)??void 0}function b(){q=null}function R(){w=null}function S(){z=null}function I(){B=null}function M(){G=null}function JD(){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 KD,DocSummaryModel as LD,DocsIndexInput as ND,DocsIndexOutput as TD,DocsIndexQuery as VD,DocsIndexQuery as WD}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 XD}from"@contractspec/lib.contracts-spec/app-config";import{FeatureRegistry as YD}from"@contractspec/lib.contracts-spec/features";function m(){let D=new YD;return D.register(K),D.register(L),D.register(N),D.register(XD),D}var J=null;function ZD(){if(!J)J=m();return J}function _D(){J=null}import{FeatureRegistry as aD}from"@contractspec/lib.contracts-spec/features";import{useMemo as F}from"react";function QQ(){let D=F(()=>H(),[]);return F(()=>({resolveOperation:(Q)=>j(Q.key,Q.version),getOperationSpec:(Q,x)=>j(Q,x),listOperations:()=>D.list()}),[D])}export{QQ as useContractsRegistry};
