@makaio/framework 1.0.0-dev-1790589224264 → 1.0.0-dev-1790599449321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapters/claude/index.mjs +1 -1
- package/dist/artifact-XE82Q2bH.mjs +1 -0
- package/dist/bus/index.mjs +1 -1
- package/dist/bus--m38BS3i.mjs +9 -0
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +33 -33
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +2 -2
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{extension-CeZwB88e.mjs → extension-DeTvdQIB.mjs} +1 -1
- package/dist/{index-6UlianLY2.d.mts → index-9O8N514B2.d.mts} +4 -4
- package/dist/{index-CUZUtXEu.d.mts → index-BSYu8AXG.d.mts} +307 -248
- package/dist/{index-BZipIIQy.d.mts → index-BstMoG8p.d.mts} +1 -1
- package/dist/{index-BYMgvz_a2.d.mts → index-CPOJqxrf2.d.mts} +3 -3
- package/dist/{index-BM53WQaQ.d.mts → index-CVRQS5jk.d.mts} +1 -1
- package/dist/{index-M3Iec3eE.d.mts → index-CcTlPuIg.d.mts} +41 -41
- package/dist/{index-Bc71KrgF.d.mts → index-CpaWzUE5.d.mts} +1 -1
- package/dist/{index-CV0vG3bg.d.mts → index-CtwkMknv.d.mts} +6 -6
- package/dist/{index-CIO_96nw2.d.mts → index-DHTLIeW62.d.mts} +5 -5
- package/dist/{index-BGkVbgfn.d.mts → index-DrfwkH1x.d.mts} +8 -8
- package/dist/{index-BZ-N1rRo.d.mts → index-GlDcAkrf.d.mts} +4 -4
- package/dist/{index-vkVZKcUh.d.mts → index-UbOsrzp6.d.mts} +24 -24
- package/dist/{index-BNmm-M0P.d.mts → index-_CsKmUOy.d.mts} +15 -10
- package/dist/{index-gXC1ACAT.d.mts → index-uusIGFLo.d.mts} +4 -4
- package/dist/{index-n-eY7pCU.d.mts → index-wQB90bP1.d.mts} +4 -4
- package/dist/kernel/extension/index.d.mts +2 -2
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kind-registration-CdjmVxY_.mjs +1 -0
- package/dist/{materialization-6Whrkf5D.mjs → materialization-BzSgnv2R.mjs} +1 -1
- package/dist/{namespace-C5tKjqgb.d.mts → namespace-B9iQN3FQ.d.mts} +4 -4
- package/dist/{namespace-D6W4Erwp.d.mts → namespace-DAzOxaux.d.mts} +2 -2
- package/dist/package.json +1 -1
- package/dist/{schemas-Cpr1Z-U8.d.mts → schemas-BNQtL3Ln.d.mts} +23 -3
- package/dist/{schemas-D6ZdMKo3.mjs → schemas-BvDsO8Is.mjs} +1 -1
- package/dist/{schemas-Cb9OJ9va.d.mts → schemas-CBDNnyz4.d.mts} +1 -1
- package/dist/{schemas-CYjPZwlQ.d.mts → schemas-DnyXA-9o.d.mts} +2 -2
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +14 -14
- package/dist/services/session/index.d.mts +2 -2
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +2 -2
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/{transition-rAXkw6VL.d.mts → transition-DK43U3QJ.d.mts} +1 -1
- package/dist/{types-Dsfqmc2x.d.mts → types-jmH0Yad4.d.mts} +3 -3
- package/dist/{view-builder-K641GC8j.d.mts → view-builder-Nffvg8MI.d.mts} +1 -1
- package/dist/{worker-CIhuGZx1.mjs → worker-toBnRJ0A.mjs} +1 -1
- package/dist/{workflow-Co4YAyPP.mjs → workflow-BDDB6EJi.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +32 -32
- package/package.json +1 -1
- package/dist/artifact-z-GlRNax.mjs +0 -1
- package/dist/bus-_RyFr-xv.mjs +0 -9
- package/dist/kind-registration-XiS6z3mC.mjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./json-value-DM-EjTC1.mjs";import{a as t,n}from"./json-tree-Cmb_BzHr.mjs";import{z as r}from"zod";function i(e){return a(e)?e:void 0}function a(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function o(e,t){if(!a(e))return!1;let n=e.type;return n===t?!0:Array.isArray(n)&&n.length===1&&n[0]===t}const s=`[]`;function c(e,t){return Object.keys(t).length===0?e:e?t:!1}function l(e,t){if(t===`#`)return e;if(!t.startsWith(`#/`))return;let n=e;for(let e of t.slice(2).split(`/`)){let t=i(n),r=e.replace(/~1/g,`/`).replace(/~0/g,`~`);if(!t||!Object.hasOwn(t,r))return;n=t[r]}return n}function u(e,t){let n=t.$ref;if(typeof n!=`string`)return;let r=l(e,n);if(typeof r==`boolean`){if(e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return r;let{$ref:n,...i}=t;return c(r,i)}let a=i(r);if(!a||e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return a;let{$ref:o,...s}=t;return Object.keys(s).length===0?a:{...a,allOf:[s,...Array.isArray(a.allOf)?a.allOf:[]]}}function d(e,t){for(let[n,r]of Object.entries(t))e[n]=Object.hasOwn(e,n)?{allOf:[e[n],r]}:r}function f(e){return Array.isArray(e.required)?e.required.filter(e=>typeof e==`string`):[]}function ee(e,t){let n=i(e.properties);if(!n||!Object.hasOwn(n,t))return;let r=n[t];return typeof r==`boolean`?r:i(r)}function p(e,t,n){if(typeof t.$ref==`string`){if(n.has(t.$ref))return;let r=u(e,t);return a(r)?p(e,r,new Set([...n,t.$ref])):void 0}if(!Array.isArray(t.allOf))return t;let{allOf:r,...o}=t,s={},c={},l=new Set;for(let t of[o,...r]){let r=i(t),a=r?p(e,r,n):void 0;if(!a||a.anyOf||a.oneOf)return;if(a.type!==void 0){if(s.type!==void 0&&s.type!==a.type)return;s.type=a.type}for(let e of[`items`,`prefixItems`])if(a[e]!==void 0){if(s[e]!==void 0)return;s[e]=a[e]}d(c,i(a.properties)??{});for(let e of f(a))l.add(e)}return{...s,properties:c,required:[...l]}}function te(e,t,n,r,i,a,o,s){if(a.has(n))return;let c=u(e,t);return typeof c==`boolean`?r.length===0?[c]:void 0:c?m(e,c,r,i,new Set([...a,n]),o,s):void 0}function ne(e,t,n,r){if(!o(t,`array`))return;let a=t.items;if(typeof a==`boolean`)return n.length===0?[a]:void 0;let s=i(a);return s?m(e,s,n,r):void 0}function re(e,t,n){if(typeof n.$ref!=`string`)return{node:{...n,allOf:[t,...Array.isArray(n.allOf)?n.allOf:[]]}};let r=u(e,n);return a(r)?{node:{...r,allOf:[t,...Array.isArray(r.allOf)?r.allOf:[]]},ref:n.$ref}:{node:{allOf:[t,n]}}}function m(e,t,n,r,a=new Set,s=!1,c=!1){if(typeof t.$ref==`string`){let i=t.$ref;return te(e,t,i,n,r,a,s,c)}let l=Array.isArray(t.anyOf)?`anyOf`:`oneOf`,u=t[l];if(Array.isArray(u)){let{[l]:o,...d}=t,f=u.map(t=>{let o=i(t);if(!o)return;let{node:l,ref:u}=re(e,d,o);return m(e,l,n,r,u===void 0?a:new Set([...a,u]),s,c)});return f.every(e=>e!==void 0)?f.flatMap(e=>e??[]):void 0}if(Array.isArray(t.allOf)){let i=p(e,t,a);return i?m(e,i,n,r,a,s,c):void 0}if(n.length===0)return[t];let[d,...h]=n;if(d===`[]`)return ne(e,t,h,r||c);if(!(!o(t,`object`)&&!(t.type===void 0&&s))&&!(!d||r&&!f(t).includes(d)))return ie(e,ee(t,d),h,r,c)}function ie(e,t,n,r,i){return typeof t==`boolean`?n.length===0?[t]:void 0:t?m(e,t,n,r,new Set,!1,i):void 0}function h(e,t,n){return m(e,e,[...t],n?.required??!1,new Set,!0,n?.requiredAfterElement??!1)}function g(e,t){return h(e,t.split(`.`))!==void 0}function _(e){let t=[],n=(e,n)=>{let r=i(e);r&&t.push({node:r,path:n})};for(let t of[`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`])for(let[r,a]of Object.entries(i(e[t])??{}))n(a,[t,r]);for(let t of[`allOf`,`anyOf`,`oneOf`,`prefixItems`,`items`]){let r=e[t];Array.isArray(r)&&r.forEach((e,r)=>n(e,[t,r]))}for(let t of[`items`,`additionalItems`,`additionalProperties`,`unevaluatedItems`,`unevaluatedProperties`,`propertyNames`,`contains`,`not`,`if`,`then`,`else`,`contentSchema`])n(e[t],[t]);return t}function v(e,t=[`dataSchema`]){if(Array.isArray(e.prefixItems)||Array.isArray(e.items))throw Error(`Unsupported tuple serialization at ${t.join(`.`)}: use an array schema or an explicit JSON Schema registration`);for(let n of _(e))v(n.node,[...t,...n.path])}function y(e,t,n=new Set){if(t.additionalProperties===!1)return!0;if(typeof t.$ref==`string`&&!n.has(t.$ref)){let r=u(e,t);if(r===void 0||a(r)&&y(e,r,new Set([...n,t.$ref])))return!0}return _(t).some(t=>y(e,t.node,n))}function b(e,t,n,r){if(Object.hasOwn(t,`$ref`)&&typeof t.$ref!=`string`&&n.addIssue({code:`custom`,path:[...r,`$ref`],message:`Schema reference must be a string`}),typeof t.$ref==`string`&&!t.$ref.startsWith(`#`)&&n.addIssue({code:`custom`,path:[...r,`$ref`],message:`Only fragment schema references are supported; absolute and document-relative references are outside the artifact registration profile`}),Object.hasOwn(t,`$anchor`)&&n.addIssue({code:`custom`,path:[...r,`$anchor`],message:`Named schema anchors are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&t.$ref.startsWith(`#`)&&t.$ref.length>1&&!t.$ref.startsWith(`#/`)&&n.addIssue({code:`custom`,path:[...r,`$ref`],message:`Named schema references are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&(t.$ref===`#`||t.$ref.startsWith(`#/`))){let a=l(e,t.$ref);!i(a)&&typeof a!=`boolean`&&n.addIssue({code:`custom`,path:[...r,`$ref`],message:`Fragment schema reference must resolve to an existing object or boolean schema`})}}function x(e,t,n,r=[`dataSchema`]){Object.hasOwn(t,`$async`)&&t.$async!==!1&&n.addIssue({code:`custom`,path:[...r,`$async`],message:`Asynchronous artifact schemas are not supported`}),b(e,t,n,r);for(let e of[`anyOf`,`oneOf`]){let i=t[e];Array.isArray(i)&&i.some(e=>typeof e==`boolean`)&&n.addIssue({code:`custom`,path:[...r,e],message:`Unsupported boolean union alternative: use object schema declarations`})}Array.isArray(t.allOf)&&(y(e,t)||!p(e,t,new Set))&&n.addIssue({code:`custom`,path:[...r,`allOf`],message:`Unsupported intersection: use open compatible conjuncts or a single closed object schema`});for(let i of _(t))x(e,i.node,n,[...r,...i.path])}function ae(e,t){x(e.dataSchema,e.dataSchema,t);let n=m(e.dataSchema,e.dataSchema,e.titlePath.split(`.`),!0,new Set,!0);(!n?.length||n.some(e=>!o(e,`string`)))&&t.addIssue({code:`custom`,path:[`titlePath`],message:`titlePath must select a required string in every data schema variant`});let r=[...(e.indexedFields??[]).map((e,t)=>({path:e,location:[`indexedFields`,t]})),...(e.searchableFields??[]).map((e,t)=>({path:e,location:[`searchableFields`,t]})),...(e.uniqueness??[]).flatMap((e,t)=>e.by.flatMap((e,n)=>e.kind===`data`?[{path:e.path,location:[`uniqueness`,t,`by`,n,`path`]}]:[])),...Object.entries(e.views??{}).flatMap(([e,t])=>t.fields.map((t,n)=>({path:t,location:[`views`,e,`fields`,n]})))];for(let{path:n,location:i}of r)g(e.dataSchema,n)||t.addIssue({code:`custom`,path:i,message:`Data path ${n} must select a declared field`})}function S(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n||Array.isArray(n)||!Object.hasOwn(n,e))throw Error(`Artifact title is missing at ${t}`);n=Reflect.get(n,e)}if(typeof n!=`string`||n.trim().length===0)throw Error(`Artifact title at ${t} must be a nonblank string`);return n}const C=[`$dynamicRef`,`$dynamicAnchor`,`$recursiveRef`,`$recursiveAnchor`];function w(e,t,n=[`dataSchema`]){for(let r of C)Object.hasOwn(e,r)&&t.addIssue({code:`custom`,path:[...n,r],message:`Unsupported dynamic reference: use a plain local $ref`});for(let r of _(e))w(r.node,t,[...n,...r.path])}function T(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function oe(e,t){if(typeof t!=`string`)return;let n=l(e,t);return T(n)?n:void 0}function E(e,t){return T(e)?Object.values(e).some(e=>Array.isArray(e)&&e.includes(t)):!1}function D(e,t){let n=e.properties;if(T(n)&&Object.hasOwn(n,t)||Array.isArray(e.required)&&e.required.includes(t)||E(e.dependentRequired,t)||E(e.dependencies,t))return!0;let r=e.patternProperties;return T(r)?Object.keys(r).some(e=>{try{return new RegExp(e,`u`).test(t)}catch{return!1}}):!1}function O(e){let t=[];for(let n of[`allOf`,`anyOf`,`oneOf`]){let r=e[n];if(Array.isArray(r))for(let e of r)T(e)&&t.push(e)}for(let n of[`if`,`then`,`else`]){let r=e[n];T(r)&&t.push(r)}for(let n of[`dependentSchemas`,`dependencies`]){let r=e[n];if(T(r))for(let e of Object.values(r))T(e)&&t.push(e)}return t}function k(e,t){let n=new Set,r=i=>{if(n.has(i))return!1;if(n.add(i),D(i,t))return!0;let a=oe(e,i.$ref);return a&&r(a)?!0:O(i).some(r)};return r(e)}const A=/^[a-z0-9]+(--?[a-z0-9]+)*$/,se=r.string().regex(A,`Slug must be lowercase alphanumeric segments joined by hyphens.`),j=`slug`,ce=`Data field slug is reserved: the artifact envelope owns the slug`,le=[[/ä/g,`ae`],[/ö/g,`oe`],[/ü/g,`ue`],[/ß/g,`ss`],[/æ/g,`ae`],[/ø/g,`oe`]];function M(e){let t=le.reduce((e,[t,n])=>e.replace(t,n),e.toLowerCase()).normalize(`NFKD`).replace(/\p{M}/gu,``).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``);return t.length>0?t:null}const ue=80;function N(e){if(e.length<=80)return e;let t=e.lastIndexOf(`-`,80);return(t>0?e.slice(0,t):e.slice(0,80)).replace(/-+$/,``)}function de(e,t,n){let r=M(S(e,t));if(r!==null)return N(r);let i=M(n);if(i!==null)return N(i);throw Error(`Artifact ${n} yields no slug from its title or identity`)}function P(e,t){let n=e.addressableParts;if(!n||n.length===0)return;let r=new Set;for(let[i,a]of n.entries())r.has(a.path)&&t.addIssue({code:`custom`,path:[`addressableParts`,i,`path`],message:`addressableParts[${i}].path duplicates an earlier area; each declared area must have a distinct path`}),r.add(a.path),F(e.dataSchema,a,i,t)}function F(e,t,n,r){let i=h(e,t.path.split(`.`));if(!i||i.length===0){r.addIssue({code:`custom`,path:[`addressableParts`,n,`path`],message:`addressableParts[${n}].path must select a declared location in every data schema variant`});return}if(i.some(e=>!o(e,`array`))){r.addIssue({code:`custom`,path:[`addressableParts`,n,`path`],message:`addressableParts[${n}].path must select an array schema in every data schema variant`});return}if(i.some(e=>typeof e==`object`&&(Array.isArray(e.prefixItems)||Array.isArray(e.items)))){r.addIssue({code:`custom`,path:[`addressableParts`,n,`path`],message:`addressableParts[${n}].path selects a tuple schema; tuples are outside the addressable-parts profile (homogeneous arrays only)`});return}I(e,t,n,r)}function I(e,t,n,r){let i=()=>{r.addIssue({code:`custom`,path:[`addressableParts`,n,`idPath`],message:`addressableParts[${n}].idPath must select a required string in every element variant`})},a=t.idPath.split(`.`),s=h(e,[...t.path.split(`.`),`[]`,...a],{requiredAfterElement:!0});if(!s||s.length===0){i();return}s.some(e=>!o(e,`string`))&&i()}function L(e,r){let i=[],a=new Map;for(let o of e){let e=t(r,o.path.split(`.`));if(e===void 0)continue;if(!Array.isArray(e)){i.push({path:o.path,reason:`declared part area must be an array; found ${typeof e}`});continue}let s=o.idPath.split(`.`);for(let[r,c]of e.entries()){let e=`${o.path}.${r}.${o.idPath}`;if(!n(c)){i.push({path:e,reason:`part element is not an object; local identifier cannot be read`});continue}let l=t(c,s);if(typeof l!=`string`){i.push({path:e,reason:l===void 0?`local identifier is missing`:`local identifier must be a string; found ${typeof l}`});continue}if(/^\s*$/.test(l)){i.push({path:e,reason:`local identifier must be a non-empty, non-whitespace-only string`});continue}let u=a.get(l);u===void 0?a.set(l,e):i.push({path:e,reason:`duplicate local identifier "${l}"; also found at ${u}`})}}return i}function R(e,t,n){let r=[],i=V(e,t);for(let[t,a]of n.entries()){if(a.sourceLocalId===void 0)continue;let n=i?.get(a.sourceLocalId)??(e.length===0?{ok:!1,reason:`NO_PARTS_DECLARED`}:{ok:!1,reason:`PART_NOT_FOUND`});n.ok||r.push({relationIndex:t,reason:n.reason})}return r}const z=[`ARTIFACT_NOT_FOUND`,`KIND_NOT_REGISTERED`,`NO_PARTS_DECLARED`,`PART_NOT_FOUND`,`DUPLICATE_LOCAL_ID`],B=r.strictObject({code:r.enum(z),message:r.string().min(1),repair:r.string().min(1)});function V(e,r){if(e.length===0)return;let i=new Map;for(let a of e){let e=t(r,a.path.split(`.`));if(!Array.isArray(e))continue;let o=a.idPath.split(`.`);for(let r of e){if(!n(r))continue;let e=t(r,o);typeof e==`string`&&(i.has(e)?i.set(e,{ok:!1,reason:`DUPLICATE_LOCAL_ID`}):i.set(e,{ok:!0,areaPath:a.path,part:r}))}}return i}function fe(e,t,n){let r=V(e,t);return r===void 0?{ok:!1,reason:`NO_PARTS_DECLARED`}:r.get(n)??{ok:!1,reason:`PART_NOT_FOUND`}}const H=r.number().int().positive(),U=r.enum([`knowledge`,`commitment`,`interaction`,`record`]),W=r.string().regex(/^[A-Za-z_$][\w$-]*(?:\.[A-Za-z_$][\w$-]*)*$/),G=r.strictObject({fields:r.array(W).min(1)}),K=new Set([`full`]),q={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},J=r.enum([...q.knowledge,...q.commitment,...q.interaction]),Y=r.strictObject({relationType:r.string().trim().min(1),targetKinds:r.array(r.string().trim().min(1)).min(1).optional(),minItems:r.number().int().nonnegative(),maxItems:r.number().int().nonnegative().optional()}).refine(e=>e.maxItems===void 0||e.maxItems>=e.minItems,{path:[`maxItems`],message:`maxItems must be at least minItems`}),X=r.discriminatedUnion(`kind`,[r.strictObject({kind:r.literal(`data`),path:W}),r.strictObject({kind:r.literal(`relation-target`),relationType:r.string().trim().min(1)})]),Z=r.strictObject({path:W,idPath:W}),Q=r.strictObject({by:r.array(X).min(1),lifecycleStates:r.array(J).min(1).optional()}),$=r.strictObject({minItems:r.number().int().nonnegative()}),pe=r.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),me=r.strictObject({kind:r.string().trim().min(1),description:r.string().trim().min(1),schemaVersion:H,category:U,dataSchema:e,titlePath:W,relations:r.array(Y).optional(),uniqueness:r.array(Q).optional(),evidenceRequirements:$.optional(),indexedFields:r.array(W).optional(),searchableFields:r.array(W).optional(),addressableParts:r.array(Z).min(1).optional(),views:r.record(r.string().trim().min(1),G).optional()}).superRefine((e,t)=>{pe.safeParse(e.dataSchema.$schema).success||t.addIssue({code:`custom`,path:[`dataSchema`,`$schema`],message:`Unsupported data schema dialect: omit $schema for draft-7 or declare the supported draft-7 or 2020-12 URI`});let n=q[e.category];e.uniqueness?.forEach((r,i)=>{r.lifecycleStates?.some(e=>!n.includes(e))&&t.addIssue({code:`custom`,path:[`uniqueness`,i,`lifecycleStates`],message:`Lifecycle conditions are incompatible with category ${e.category}`})}),Object.keys(e.views??{}).forEach(e=>{K.has(e)&&t.addIssue({code:`custom`,path:[`views`,e],message:`Artifact kind view ${e} is reserved for the generic complete-payload view`})}),k(e.dataSchema,`slug`)&&t.addIssue({code:`custom`,path:[`dataSchema`,`properties`,j],message:`Data field ${j} is reserved: the artifact envelope owns the slug`}),w(e.dataSchema,t),ae(e,t),P(e,t)});export{g as A,se as C,s as D,k as E,v as O,ce as S,M as T,fe as _,me as a,j as b,Z as c,Q as d,X as f,R as g,L as h,$ as i,S as j,h as k,Y as l,B as m,U as n,G as o,z as p,W as r,J as s,q as t,H as u,P as v,de as w,A as x,ue as y};
|