var{defineProperty:A,getOwnPropertyNames:L,getOwnPropertyDescriptor:N}=Object,O=Object.prototype.hasOwnProperty;function Q(j){return this[j]}var R=(j)=>{var k=(B??=new WeakMap).get(j),q;if(k)return k;if(k=A({},"__esModule",{value:!0}),j&&typeof j==="object"||typeof j==="function"){for(var w of L(j))if(!O.call(k,w))A(k,w,{get:Q.bind(j,w),enumerable:!(q=N(j,w))||q.enumerable})}return B.set(j,k),k},B;var T=(j)=>j;function U(j,k){this[j]=T.bind(null,k)}var V=(j,k)=>{for(var q in k)A(j,q,{get:k[q],enumerable:!0,configurable:!0,set:U.bind(k,q)})};var P=(j,k)=>()=>(j&&(k=j(j=0)),k);import{z as g}from"zod";var W=g.enum(["template","workflow","integration","knowledge","blueprint","ui","script","library"]),X=g.enum(["public","internal","experimental"]),Y=g.enum(["playground","specs","builder","markdown","evolution"]),Z=g.enum(["idea","in_creation","experimental","beta","stable","deprecated"]),C=g.object({rootDocId:g.string().optional(),goalDocId:g.string().optional(),usageDocId:g.string().optional(),referenceDocId:g.string().optional(),constraintsDocId:g.string().optional()}),_=g.object({enabled:g.boolean(),modes:g.array(Y)}),$=g.object({enabled:g.boolean(),installable:g.boolean()}),v=g.object({enabled:g.boolean()}),G=g.object({templates:g.boolean(),sandbox:_,studio:$,mcp:v}),H=g.object({packageName:g.string().min(1),feature:g.string().optional(),blueprint:g.string().optional(),presentations:g.string().optional(),contracts:g.string().optional(),handlers:g.string().optional(),ui:g.string().optional(),docs:g.string().optional()}),I=g.object({version:g.string(),key:g.string().min(1),title:g.string().optional(),description:g.string().min(1),domain:g.string().optional(),stability:Z,owners:g.array(g.string()),tags:g.array(g.string()),docId:g.array(g.string()).optional(),kind:W,visibility:X,summary:g.string().optional()}),F=g.object({key:g.string().min(1),version:g.string().optional()}),K=g.object({key:g.string().min(1)}),J=g.object({meta:I,docs:C.optional(),surfaces:G,entrypoints:H,blueprint:g.union([g.record(g.string(),g.unknown()),F]).optional(),features:g.array(g.union([g.record(g.string(),g.unknown()),K])).optional()});function b(j){return J.parse(j)}function y(j){return J.safeParse(j)}function M(j){return I.parse(j)}function s(j){return G.parse(j)}function r(j){return H.parse(j)}function u(j){return C.parse(j)}export{y as safeParseExampleSpec,s as parseExampleSurfaces,b as parseExampleSpec,M as parseExampleMeta,r as parseExampleEntrypoints,u as parseExampleDocumentation,Z as StabilitySchema,F as SpecPointerSchema,K as FeatureRefSchema,X as ExampleVisibilitySchema,G as ExampleSurfacesSchema,$ as ExampleStudioSupportSchema,J as ExampleSpecSchema,_ as ExampleSandboxSupportSchema,Y as ExampleSandboxModeSchema,I as ExampleMetaSchema,v as ExampleMcpSupportSchema,W as ExampleKindSchema,H as ExampleEntrypointsSchema,C as ExampleDocumentationSchema};
