// @bun
var{defineProperty:w,getOwnPropertyNames:L,getOwnPropertyDescriptor:N}=Object,O=Object.prototype.hasOwnProperty;function Q(j){return this[j]}var B=(j)=>{var k=(z??=new WeakMap).get(j),q;if(k)return k;if(k=w({},"__esModule",{value:!0}),j&&typeof j==="object"||typeof j==="function"){for(var v of L(j))if(!O.call(k,v))w(k,v,{get:Q.bind(j,v),enumerable:!(q=N(j,v))||q.enumerable})}return z.set(j,k),k},z;var W=(j)=>j;function X(j,k){this[j]=W.bind(null,k)}var C=(j,k)=>{for(var q in k)w(j,q,{get:k[q],enumerable:!0,configurable:!0,set:X.bind(k,q)})};var E=(j,k)=>()=>(j&&(k=j(j=0)),k);import{z as b}from"zod";var Y=b.enum(["patch","minor","major"]),D=b.enum(["codex","opencode","claude-code"]),y=b.enum(["release-branch","always","never"]),Z=b.enum(["maintainer","customer","integrator","agent"]),_=b.enum(["auto","assisted","manual"]),$=b.enum(["package-json","contractsrc","import-rewrite","codemod"]),F=b.object({kind:Z,summary:b.string(),affectedPackages:b.array(b.string()).optional(),affectedRuntimes:b.array(b.string()).optional(),affectedFrameworks:b.array(b.string()).optional()}),H=b.object({name:b.string(),releaseType:Y,version:b.string().optional(),previousVersion:b.string().optional()}),I=b.object({id:b.string(),title:b.string(),summary:b.string(),required:b.boolean().default(!0),when:b.string().optional(),steps:b.array(b.string()).default([])}),A=b.object({id:b.string(),kind:$,title:b.string(),summary:b.string(),path:b.string().optional(),packageName:b.string().optional(),dependencyType:b.enum(["dependencies","devDependencies","peerDependencies"]).optional(),from:b.string().optional(),to:b.string().optional(),configPath:b.string().optional(),value:b.unknown().optional(),codemodId:b.string().optional()}),x=b.object({id:b.string(),title:b.string(),summary:b.string(),level:_,instructions:b.array(b.string()).default([]),packages:b.array(b.string()).optional(),autofixes:b.array(A).optional()}),T=b.object({agent:D,title:b.string(),prompt:b.string()}),J=b.object({commands:b.array(b.string()).default([]),evidence:b.array(b.string()).default([])}),U=b.object({schemaVersion:b.literal("1").default("1"),slug:b.string(),summary:b.string(),isBreaking:b.boolean().default(!1),packages:b.array(H).default([]),affectedRuntimes:b.array(b.string()).default([]),affectedFrameworks:b.array(b.string()).default([]),audiences:b.array(F).default([]),deprecations:b.array(b.string()).default([]),migrationInstructions:b.array(I).default([]),upgradeSteps:b.array(x).default([]),validation:J.default({commands:[],evidence:[]}),prompts:b.record(D,b.string()).optional()}),f=b.object({name:b.string(),currentVersion:b.string().optional(),targetVersion:b.string().optional()}),K=b.object({slug:b.string(),version:b.string(),summary:b.string(),date:b.string(),isBreaking:b.boolean(),packages:b.array(H).default([]),affectedRuntimes:b.array(b.string()).default([]),affectedFrameworks:b.array(b.string()).default([]),audiences:b.array(F).default([]),deprecations:b.array(b.string()).default([]),migrationInstructions:b.array(I).default([]),upgradeSteps:b.array(x).default([]),validation:J.default({commands:[],evidence:[]})}),V=b.object({generatedAt:b.string(),releases:b.array(K).default([])}),g=b.object({generatedAt:b.string(),targetPackages:b.array(f).default([]),releases:b.array(K).default([]),steps:b.array(x).default([]),autofixCount:b.number().default(0),manualCount:b.number().default(0),assistedCount:b.number().default(0),agentPrompts:b.array(T).default([])});export{Y as VersionBumpTypeSchema,_ as UpgradeStepLevelSchema,x as UpgradePlanStepSchema,g as UpgradePlanSchema,f as UpgradePackageTargetSchema,A as UpgradeAutofixSchema,$ as UpgradeAutofixKindSchema,F as ReleaseImpactAudienceSchema,y as ReleaseEnforceOnSchema,J as ReleaseCapsuleValidationSchema,U as ReleaseCapsuleSchema,H as ReleaseCapsulePackageSchema,Z as ReleaseAudienceKindSchema,I as MigrationInstructionSchema,V as GeneratedReleaseManifestSchema,K as GeneratedReleaseManifestEntrySchema,D as AgentTargetSchema,T as AgentPromptBundleSchema};
