@makaio/framework 1.0.0-dev-1790589224264 → 1.0.0-dev-1790598955306
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 +32 -32
- 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/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-vkVZKcUh.d.mts → index-BM8oUon_.d.mts} +24 -24
- package/dist/{index-BZ-N1rRo.d.mts → index-CGM0-mt2.d.mts} +37 -37
- package/dist/{index-BYMgvz_a2.d.mts → index-CPOJqxrf2.d.mts} +3 -3
- package/dist/{index-BZipIIQy.d.mts → index-CU0AgN84.d.mts} +1 -1
- package/dist/{index-BM53WQaQ.d.mts → index-CVRQS5jk.d.mts} +1 -1
- package/dist/{index-gXC1ACAT.d.mts → index-CXroIgOA.d.mts} +4 -4
- package/dist/{index-BNmm-M0P.d.mts → index-CZIFCrMc.d.mts} +19 -19
- 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-CUZUtXEu.d.mts → index-bXozN5vc.d.mts} +342 -283
- package/dist/{index-M3Iec3eE.d.mts → index-e3AB0Iyv.d.mts} +59 -59
- 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/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.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 +16 -16
- 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 +55 -55
- 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
|
@@ -0,0 +1 @@
|
|
|
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 ae(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 b(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`}),ae(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))b(e,i.node,n,[...r,...i.path])}function oe(e,t){b(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 x(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 S=[`$dynamicRef`,`$dynamicAnchor`,`$recursiveRef`,`$recursiveAnchor`];function C(e,t,n=[`dataSchema`]){for(let r of S)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))C(r.node,t,[...n,...r.path])}function w(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function se(e,t){if(typeof t!=`string`)return;let n=l(e,t);return w(n)?n:void 0}function T(e,t){return w(e)?Object.values(e).some(e=>Array.isArray(e)&&e.includes(t)):!1}function E(e,t){let n=e.properties;if(w(n)&&Object.hasOwn(n,t)||Array.isArray(e.required)&&e.required.includes(t)||T(e.dependentRequired,t)||T(e.dependencies,t))return!0;let r=e.patternProperties;return w(r)?Object.keys(r).some(e=>{try{return new RegExp(e,`u`).test(t)}catch{return!1}}):!1}function D(e){let t=[];for(let n of[`allOf`,`anyOf`,`oneOf`]){let r=e[n];if(Array.isArray(r))for(let e of r)w(e)&&t.push(e)}for(let n of[`if`,`then`,`else`]){let r=e[n];w(r)&&t.push(r)}for(let n of[`dependentSchemas`,`dependencies`]){let r=e[n];if(w(r))for(let e of Object.values(r))w(e)&&t.push(e)}return t}function O(e,t){let n=new Set,r=i=>{if(n.has(i))return!1;if(n.add(i),E(i,t))return!0;let a=se(e,i.$ref);return a&&r(a)?!0:D(i).some(r)};return r(e)}const k=/^[a-z0-9]+(--?[a-z0-9]+)*$/,ce=r.string().regex(k,`Slug must be lowercase alphanumeric segments joined by hyphens.`),A=`slug`,le=`Data field slug is reserved: the artifact envelope owns the slug`,ue=[[/ä/g,`ae`],[/ö/g,`oe`],[/ü/g,`ue`],[/ß/g,`ss`],[/æ/g,`ae`],[/ø/g,`oe`]];function j(e){let t=ue.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 de=80;function M(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 N(e,t,n){let r=j(x(e,t));if(r!==null)return M(r);let i=j(n);if(i!==null)return M(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)}),pe=new Set([`full`]),K={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},q=r.enum([...K.knowledge,...K.commitment,...K.interaction]),J=r.strictObject({path:W,equals:r.union([r.string(),r.number(),r.boolean()])}),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(),when:J.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(q).min(1).optional()}),$=r.strictObject({minItems:r.number().int().nonnegative()}),me=r.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),he=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)=>{me.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=K[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}`})}),e.relations?.forEach((n,r)=>{n.when&&!g(e.dataSchema,n.when.path)&&t.addIssue({code:`custom`,path:[`relations`,r,`when`,`path`],message:`Data path ${n.when.path} must select a declared field`})}),Object.keys(e.views??{}).forEach(e=>{pe.has(e)&&t.addIssue({code:`custom`,path:[`views`,e],message:`Artifact kind view ${e} is reserved for the generic complete-payload view`})}),O(e.dataSchema,`slug`)&&t.addIssue({code:`custom`,path:[`dataSchema`,`properties`,A],message:`Data field ${A} is reserved: the artifact envelope owns the slug`}),C(e.dataSchema,t),oe(e,t),P(e,t)});export{h as A,le as C,O as D,j as E,x as M,s as O,k as S,N as T,R as _,he as a,de as b,Z as c,H as d,Q as f,L as g,B as h,$ as i,g as j,v as k,J as l,z as m,U as n,G as o,X as p,W as r,q as s,K as t,Y as u,fe as v,ce as w,A as x,P as y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{c as n,w as r}from"./schemas-
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{c as n,w as r}from"./schemas-BvDsO8Is.mjs";import{z as i}from"zod";import{createBusNamespace as a}from"@makaio/framework/core";const o=i.enum([`link`,`summary`,`full`]),s=i.object({artifactId:i.string().min(1).optional(),url:i.string().min(1).optional(),label:i.string().min(1),sourceLocalId:n.shape.sourceLocalId}),c=i.object({id:i.string().min(1),kind:i.string().min(1),revision:i.string().min(1),status:i.string().min(1).optional()}),l=i.object({breadcrumbs:i.array(s),related:i.array(s)}),u=i.object({dashboard:i.string().min(1).optional(),materialized:i.string().min(1).optional()}),d=i.object({type:i.literal(`summary`),title:i.string().min(1),text:i.string().min(1)}),f=i.object({type:i.literal(`properties`),title:i.string().min(1),rows:i.array(i.object({label:i.string().min(1),value:i.string()}))}),p=i.object({type:i.literal(`table`),title:i.string().min(1),columns:i.array(i.string().min(1)),rows:i.array(i.object({cells:i.array(i.string()),link:s.optional()}))}),m=i.object({type:i.literal(`relations`),title:i.string().min(1),groups:i.array(i.object({type:i.string().min(1),items:i.array(s)}))}),h=i.object({type:i.literal(`evidence`),title:i.string().min(1),items:i.array(i.object({kind:i.string().min(1),id:i.string().min(1),locator:i.string().min(1).optional()}))}),g=i.object({type:i.literal(`raw`),title:i.string().min(1),json:t}),_=i.object({type:i.literal(`code`),title:i.string().min(1),language:i.string().min(1),content:i.string()}),v=i.object({type:i.literal(`diagram`),title:i.string().min(1),notation:i.literal(`mermaid`),source:i.string().min(1)}),y=i.discriminatedUnion(`type`,[d,f,p,m,h,g,_,v]),b=i.object({title:i.string().min(1),artifact:c,navigation:l,sections:i.array(y),links:u}),x=e,S=i.object({level:o,params:x.optional()}),C=i.object({kind:i.literal(`entry`),via:i.string().min(1).optional(),collection:i.string().min(1).optional()});function w(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:i.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const T=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1),as:o.optional()}),C.extend({title:i.string().min(1).optional(),hostRelation:i.string().min(1).optional()}).superRefine(w(`affordance`))]),E=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1)}),C.superRefine(w(`request`))]);function D(e){return e}const O=i.enum([`title`,`summary`]),k=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`label`),prefix:i.string().min(1).optional()}),i.object({kind:i.literal(`field`),name:i.string().min(1),fieldId:i.string().min(1).optional()}),i.object({kind:i.literal(`issue-type`),name:i.string().min(1),typeId:i.string().min(1).optional()}),i.object({kind:i.literal(`body-fragment`),slot:i.string().min(1)}),i.object({kind:i.literal(`comment`),template:i.string().min(1)})]),A=i.object({id:i.string().min(1),provider:i.string().min(1),namespace:i.string().min(1),target:k,appliesTo:i.array(i.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:i.record(i.string(),i.string()).optional(),description:i.string().min(1).optional(),params:e.optional()}),j=i.enum([`status`,`workflow`,`priority`]),M=i.object({path:i.string().min(1),semantic:j.optional(),fromLevel:o.optional(),viewRole:O.optional()}),N=i.object({mode:i.enum([`none`,`surface`,`comment`]),defaultRole:i.enum([`workpiece`,`artifact`]).optional(),semanticEvents:i.array(i.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:i.array(M).optional(),affordances:i.array(T).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,r=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&r++;n>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),r>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),P=i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),externalUrl:i.string().optional(),surfaceRole:i.enum([`workpiece`,`artifact`]),lastSyncedRevision:i.string().optional(),metadata:i.record(i.string(),i.unknown()).optional()}),F=S.extend({ref:r,affordance:E}),I=i.discriminatedUnion(`status`,[i.object({status:i.literal(`ok`),view:b,builderVersion:i.number().int().positive(),sourceRevision:i.string().min(1)}),i.object({status:i.literal(`artifact-not-found`),view:i.null()}),i.object({status:i.literal(`not-rendered`),view:i.null()})]),L={"surfaceBinding.register":{request:A,response:i.object({registered:i.boolean()})},"surfaceBinding.list":{request:i.object({id:i.string().min(1).optional(),provider:i.string().min(1).optional(),namespace:i.string().min(1).optional()}),response:i.object({bindings:i.array(A)})},"surfaceBinding.changed":i.object({id:i.string().min(1),provider:i.string().min(1)}),"ref.changed":i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),operation:i.enum([`upserted`,`deleted`]),origin:i.enum([`factory`,`external`]).optional()}),"capability.resolved":i.object({provider:i.string().min(1),surface:i.string().min(1),capabilities:i.record(i.string().min(1),i.boolean()),degraded:i.boolean()}),"artifact.view.resolve":{request:F,response:I}},R=a(`materialization`,L),ee=R.subjects;function z(e){return{id:e.id,toRegistration:()=>({id:e.id,provider:e.provider,namespace:e.namespace,target:structuredClone(e.target),appliesTo:[...e.appliesTo],...e.valueMapping===void 0?{}:{valueMapping:{...e.valueMapping}},...e.description===void 0?{}:{description:e.description},...e.params===void 0?{}:{params:structuredClone(e.params)}})}}const B=8;function V(e){let t=0,n=0;for(let r=0;r<e.length;r++)e[r]==="`"?(n++,n>t&&(t=n)):n=0;let r=Math.max(3,t+1);return"`".repeat(r)}function H(e){return e.replace(/`/g,``)}function U(e){return e.replace(/\]/g,`\\]`)}function W(e){let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n),i=e[n];t+=r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||i===`-`?i:`%${r.toString(16).toUpperCase().padStart(4,`0`)}`}return t}function G(e){return e.replace(/\(/g,`%28`).replace(/\)/g,`%29`)}function K(e){let t=e.sourceLocalId?W(e.sourceLocalId):void 0,n=t?`${e.label} (from part: ${t})`:e.label;return e.url?`[${U(n)}](${G(e.url)})`:t?`${e.label} (from part: ${U(t)})`:n}function q(e){let t=[];if(e.breadcrumbs.length>0&&t.push(`**Breadcrumbs:** ${e.breadcrumbs.map(K).join(` › `)}`),e.related.length>0){t.length>0&&t.push(``),t.push(`**Related:**`);for(let n of e.related)t.push(`- ${K(n)}`)}return t}function J(e){return e.replace(/\|/g,`\\|`).replace(/[\r\n]+/g,` `)}function Y(e){return[`### ${e.title}`,``,e.text]}function X(e){let t=[`### ${e.title}`,``];for(let n of e.rows)n.value.length>0?t.push(`**${n.label}:** ${n.value}`):t.push(`**${n.label}:**`);return t}function Z(e){let t=[`### ${e.title}`,``],n=e.rows.some(e=>e.link!==void 0),r=e.columns.map(J);n&&r.push(``);let i=r.length;t.push(`| ${r.join(` | `)} |`),t.push(`| ${r.map(()=>`---`).join(` | `)} |`);for(let r of e.rows){let e=r.cells.map(J);for(n&&e.push(r.link?J(K(r.link)):``);e.length<i;)e.push(``);t.push(`| ${e.join(` | `)} |`)}return t}function Q(e){let t=[`### ${e.title}`,``];for(let n of e.groups){t.push(`**${n.type}**`,``);for(let e of n.items)t.push(`- ${K(e)}`);t.push(``)}return t}function te(e){let t=[`### ${e.title}`,``];for(let n of e.items){let e=n.locator?` (${n.locator})`:``;t.push(`- **${n.kind}:** ${n.id}${e}`)}return t}function $(e,t,n){let r=V(t);return[`### ${e}`,``,`${r}${H(n)}`,t,r]}function ne(e){return $(e.title,JSON.stringify(e.json,null,2),`json`)}function re(e){return $(e.title,e.content,e.language)}function ie(e){return $(e.title,e.source,e.notation)}function ae(e){switch(e.type){case`summary`:return Y(e);case`properties`:return X(e);case`table`:return Z(e);case`relations`:return Q(e);case`evidence`:return te(e);case`raw`:return ne(e);case`code`:return re(e);case`diagram`:return ie(e)}}function oe(e,t={}){let n=[];t.includeTitle!==!1&&n.push([`## ${e.title}`]);let r=q(e.navigation);r.length>0&&n.push(r);for(let t of e.sections)n.push(ae(t));return n.map(e=>e.join(`
|
|
2
2
|
`)).join(`
|
|
3
3
|
|
|
4
4
|
`)}export{g as A,h as C,b as D,s as E,p as F,y as M,d as N,l as O,u as P,v as S,o as T,E as _,I as a,D as b,ee as c,M as d,j as f,T as g,k as h,F as i,m as j,f as k,P as l,A as m,oe as n,R as o,O as p,z as r,L as s,B as t,N as u,x as v,c as w,_ as x,S as y};
|
|
@@ -335,8 +335,8 @@ declare const MessageStorageNamespace$1: {
|
|
|
335
335
|
isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
336
336
|
}, _$zod_v4_core0.$strip>], "type">>;
|
|
337
337
|
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
338
|
-
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
339
338
|
turnId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
339
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
340
340
|
timestamp: _$zod.ZodNumber;
|
|
341
341
|
contentText: _$zod.ZodString;
|
|
342
342
|
adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1120,8 +1120,8 @@ declare const MessageStorageNamespace$1: {
|
|
|
1120
1120
|
isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1121
1121
|
}, _$zod_v4_core0.$strip>], "type">>;
|
|
1122
1122
|
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1123
|
-
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1124
1123
|
turnId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
1124
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1125
1125
|
timestamp: _$zod.ZodNumber;
|
|
1126
1126
|
contentText: _$zod.ZodString;
|
|
1127
1127
|
adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2030,10 +2030,10 @@ declare const MessageStorageNamespace$1: {
|
|
|
2030
2030
|
})[];
|
|
2031
2031
|
messageId: string;
|
|
2032
2032
|
agentId: never;
|
|
2033
|
-
adapterSessionId: never;
|
|
2034
2033
|
turnId: string | null;
|
|
2035
|
-
|
|
2034
|
+
adapterSessionId: never;
|
|
2036
2035
|
timestamp: number;
|
|
2036
|
+
limit: never;
|
|
2037
2037
|
query: string;
|
|
2038
2038
|
contentText: string;
|
|
2039
2039
|
adapterMessageId: string;
|
|
@@ -47,8 +47,8 @@ declare const AdapterRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"a
|
|
|
47
47
|
teardownCompleted: _$zod.ZodObject<{
|
|
48
48
|
evidence: _$zod.ZodEnum<{
|
|
49
49
|
unknown: "unknown";
|
|
50
|
-
closed: "closed";
|
|
51
50
|
exited: "exited";
|
|
51
|
+
closed: "closed";
|
|
52
52
|
released: "released";
|
|
53
53
|
detached: "detached";
|
|
54
54
|
}>;
|
|
@@ -100,8 +100,8 @@ declare const AdapterRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
100
100
|
teardownCompleted: _$zod.ZodObject<{
|
|
101
101
|
evidence: _$zod.ZodEnum<{
|
|
102
102
|
unknown: "unknown";
|
|
103
|
-
closed: "closed";
|
|
104
103
|
exited: "exited";
|
|
104
|
+
closed: "closed";
|
|
105
105
|
released: "released";
|
|
106
106
|
detached: "detached";
|
|
107
107
|
}>;
|
package/dist/package.json
CHANGED
|
@@ -54,12 +54,26 @@ declare const ArtifactLifecycleStateSchema: z.ZodEnum<{
|
|
|
54
54
|
revoked: "revoked";
|
|
55
55
|
"closed-without-resolution": "closed-without-resolution";
|
|
56
56
|
}>;
|
|
57
|
-
/**
|
|
57
|
+
/** Applies the requirement only when the artifact data holds `equals` at `path`. */
|
|
58
|
+
declare const ArtifactRelationRequirementConditionSchema: z.ZodObject<{
|
|
59
|
+
path: z.ZodString;
|
|
60
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
/**
|
|
63
|
+
* Additional relation requirement; undeclared relation types remain permitted.
|
|
64
|
+
* Without `when` the requirement always applies. With `when` it applies only when
|
|
65
|
+
* the value at `when.path` equals `when.equals`; it is skipped when that value is
|
|
66
|
+
* missing, non-scalar, or not equal.
|
|
67
|
+
*/
|
|
58
68
|
declare const ArtifactRelationRequirementSchema: z.ZodObject<{
|
|
59
69
|
relationType: z.ZodString;
|
|
60
70
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
71
|
minItems: z.ZodNumber;
|
|
62
72
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
path: z.ZodString;
|
|
75
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
76
|
+
}, z.core.$strict>>;
|
|
63
77
|
}, z.core.$strict>;
|
|
64
78
|
/** One contribution to an explicit uniqueness key. Relation targets exclude revision pins. */
|
|
65
79
|
declare const ArtifactUniquenessSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -117,6 +131,10 @@ declare const ArtifactKindRegistrationSchema$1: z.ZodObject<{
|
|
|
117
131
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
132
|
minItems: z.ZodNumber;
|
|
119
133
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
path: z.ZodString;
|
|
136
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
137
|
+
}, z.core.$strict>>;
|
|
120
138
|
}, z.core.$strict>>>;
|
|
121
139
|
uniqueness: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
122
140
|
by: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -157,6 +175,8 @@ type ArtifactCategory = z.infer<typeof ArtifactCategorySchema>;
|
|
|
157
175
|
type ArtifactLifecycleState = z.infer<typeof ArtifactLifecycleStateSchema>;
|
|
158
176
|
/** Additional relation cardinality declaration. */
|
|
159
177
|
type ArtifactRelationRequirement = z.infer<typeof ArtifactRelationRequirementSchema>;
|
|
178
|
+
/** Data condition under which a relation requirement applies. */
|
|
179
|
+
type ArtifactRelationRequirementCondition = z.infer<typeof ArtifactRelationRequirementConditionSchema>;
|
|
160
180
|
/** Explicit uniqueness declaration. */
|
|
161
181
|
type ArtifactUniquenessRule = z.infer<typeof ArtifactUniquenessRuleSchema>;
|
|
162
182
|
/** Direct evidence cardinality declaration. */
|
|
@@ -692,8 +712,8 @@ declare const RelationTypeRegistrationSchema: z.ZodObject<{
|
|
|
692
712
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
693
713
|
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
694
714
|
local: "local";
|
|
695
|
-
artifact: "artifact";
|
|
696
715
|
evidence: "evidence";
|
|
716
|
+
artifact: "artifact";
|
|
697
717
|
entity: "entity";
|
|
698
718
|
}>>>;
|
|
699
719
|
}, z.core.$strip>;
|
|
@@ -1122,4 +1142,4 @@ type ArtifactCompareRequest = z.infer<typeof ArtifactCompareRequestSchema>;
|
|
|
1122
1142
|
/** Result of comparing two artifact revisions. */
|
|
1123
1143
|
type ArtifactCompareResponse = z.infer<typeof ArtifactCompareResponseSchema>;
|
|
1124
1144
|
//#endregion
|
|
1125
|
-
export { ArtifactPartAreaSchema as $, ConfidenceMetadata as A, ARTIFACT_CATEGORY_LIFECYCLE_STATES as B, ArtifactScope as C, ConfidenceBasisSchema as D, ConfidenceBasis as E, EvidenceRefSchema as F, ArtifactEvidenceRequirementsSchema as G, ArtifactCategorySchema as H, LocalRef as I, ArtifactKindView as J, ArtifactKindRegistration$1 as K, LocalRefSchema as L, EntityRef as M, EntityRefSchema as N, ConfidenceLevel as O, EvidenceRef as P, ArtifactPartArea as Q, RelationTypeRegistration$1 as R, ArtifactRevisionSchema as S, ArtifactStatusPathSchema as T, ArtifactDataPathSchema as U, ArtifactCategory as V, ArtifactEvidenceRequirements as W, ArtifactLifecycleState as X, ArtifactKindViewSchema as Y, ArtifactLifecycleStateSchema as Z, ArtifactRelationTarget as _, ArtifactCompareResponse as a,
|
|
1145
|
+
export { ArtifactPartAreaSchema as $, ConfidenceMetadata as A, ARTIFACT_CATEGORY_LIFECYCLE_STATES as B, ArtifactScope as C, ConfidenceBasisSchema as D, ConfidenceBasis as E, EvidenceRefSchema as F, ArtifactEvidenceRequirementsSchema as G, ArtifactCategorySchema as H, LocalRef as I, ArtifactKindView as J, ArtifactKindRegistration$1 as K, LocalRefSchema as L, EntityRef as M, EntityRefSchema as N, ConfidenceLevel as O, EvidenceRef as P, ArtifactPartArea as Q, RelationTypeRegistration$1 as R, ArtifactRevisionSchema as S, ArtifactStatusPathSchema as T, ArtifactDataPathSchema as U, ArtifactCategory as V, ArtifactEvidenceRequirements as W, ArtifactLifecycleState as X, ArtifactKindViewSchema as Y, ArtifactLifecycleStateSchema as Z, ArtifactRelationTarget as _, ArtifactCompareResponse as a, ArtifactUniquenessRule as at, ArtifactRepresentationsSchema as b, ArtifactObservationSchema as c, ArtifactRef$1 as ct, ArtifactQueryScope as d, ArtifactRelationRequirement as et, ArtifactQueryScopeSchema as f, ArtifactRelationSchema as g, ArtifactRelationQueryTargetSchema as h, ArtifactCompareRequestSchema as i, ArtifactSchemaVersionSchema as it, ConfidenceMetadataSchema as j, ConfidenceLevelSchema as k, ArtifactQueryRequest as l, ArtifactRefSchema as lt, ArtifactRelationQueryTarget as m, ArtifactActorSchema as n, ArtifactRelationRequirementConditionSchema as nt, ArtifactCompareResponseSchema as o, ArtifactUniquenessRuleSchema as ot, ArtifactRelation as p, ArtifactKindRegistrationSchema$1 as q, ArtifactCompareRequest as r, ArtifactRelationRequirementSchema as rt, ArtifactObservation$1 as s, ArtifactUniquenessSelectorSchema as st, ArtifactActor as t, ArtifactRelationRequirementCondition as tt, ArtifactQueryRequestSchema as u, ArtifactRelationTargetSchema as v, ArtifactScopeSchema as w, ArtifactRevision$1 as x, ArtifactRepresentations as y, RelationTypeRegistrationSchema as z };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{d as n,r,w as i}from"./kind-registration-CdjmVxY_.mjs";import{t as a}from"./repo-context-cO-TLEGN.mjs";import{z as o}from"zod";const s=o.string().min(1).regex(/\S/),c=o.strictObject({refClass:o.literal(`artifact`),kind:s,id:s,revision:s}),l=`x-makaio-value-type`,u=`evidence/v1`,d=o.string().min(1).regex(/\S/),f=o.strictObject({kind:o.literal(`whole-source`)}),p=o.strictObject({kind:o.literal(`lines`),startLine:o.number().int().positive(),lineCount:o.number().int().positive()}),m=o.strictObject({kind:o.literal(`data-path`),path:r}),h=o.strictObject({kind:o.literal(`git-file`),repository:a.strict(),path:d,commit:o.string().regex(/^(?:[0-9a-fA-F]{40}|[0-9a-fA-F]{64})$/)}),g=o.strictObject({kind:o.literal(`confluence-page`),site:d,pageId:d,version:o.number().int().positive()}),_=o.strictObject({kind:o.literal(`artifact`),reference:c}),v=o.union([o.strictObject({source:h,location:o.union([f,p]),excerpt:o.string().optional()}),o.strictObject({source:g,location:f,excerpt:o.string().optional()}),o.strictObject({source:_,location:o.union([f,m]),excerpt:o.string().optional()})]).meta({title:`EvidenceValue`,description:`An immutable, directly cited source and its source-specific location.`,[l]:u}),y=o.string().regex(/^(?:\/(?:[^~/]|~[01])*)+$/,`Expected a data-relative JSON Pointer`),b=o.object({kind:o.string().min(1),id:o.string().min(1),displayName:o.string().optional()}),x=o.object({level:o.string().min(1),ids:o.record(o.string().min(1),o.string().min(1)).optional()}).superRefine((e,t)=>{e.level!==`global`&&(!e.ids||Object.keys(e.ids).length===0)&&t.addIssue({code:o.ZodIssueCode.custom,path:[`ids`],message:`ids is required when scope level is not 'global'`})}),S=o.object({level:o.string().min(1),ids:o.record(o.string().min(1),o.string().min(1)).optional()}),C=o.object({refClass:o.literal(`local`).default(`local`),artifact:c,localId:o.string().min(1)}),w=o.object({refClass:o.literal(`evidence`).default(`evidence`),kind:o.string().min(1),id:o.string().min(1),revision:o.string().min(1).optional(),locator:o.string().min(1).optional()}),T=o.strictObject({refClass:o.literal(`entity`),entityType:o.string().min(1),id:o.string().min(1)}),E=o.discriminatedUnion(`refClass`,[c,C,w,T]);function D(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e||!(`revision`in e)?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const O=o.preprocess(D,E),k=o.discriminatedUnion(`refClass`,[c.extend({revision:c.shape.revision.optional()}),C,w,T]);function A(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const j=o.preprocess(A,k),M=o.object({type:o.string().min(1),sourceLocalId:o.string().min(1).regex(/\S/).optional(),target:O}),N=o.enum([`assumed`,`inferred`,`stated`,`confirmed`,`verified`]),P=o.object({kind:o.string().min(1),actor:b,timestamp:o.number().int().nonnegative(),detail:o.string().optional(),evidenceRef:O.optional()}),F=o.object({level:N,basis:o.array(P)}),I=o.object({id:o.string().min(1),kind:o.string().min(1),summary:o.string().min(1),detail:o.string().optional(),severity:o.enum([`info`,`warning`,`blocker`]).optional(),tags:o.array(o.string().min(1)).optional(),regarding:o.union([c,C]).optional(),evidence:o.union([c,w]).optional(),actor:b,timestamp:o.number().int().nonnegative()}),L=o.object({markdown:o.string().optional(),summary:o.string().optional(),plaintext:o.string().optional()}),R=o.object({kind:c.shape.kind,id:c.shape.id,slug:i,revision:c.shape.revision,scope:x,schemaVersion:n,data:e,relations:o.array(M),evidence:o.array(v).optional(),confidence:F.optional(),representations:L.optional(),actor:b,timestamp:o.number().int().nonnegative(),createdAt:o.number().int().nonnegative().optional()}),z=o.object({type:o.string().min(1),symmetry:o.enum([`asymmetric`,`symmetric`]),implication:o.string().min(1).optional(),sourceKinds:o.array(o.string().min(1)).optional(),targetKinds:o.array(o.string().min(1)).optional(),targetRefClasses:o.array(o.enum([`artifact`,`local`,`evidence`,`entity`])).optional()}),B=o.object({kind:o.string().min(1).optional(),scope:S.optional(),ids:o.array(o.string().min(1)).optional(),slug:i.optional(),currentOnly:o.boolean().optional(),search:o.string().optional(),relation:o.object({type:o.string().min(1).optional(),target:j.optional()}).optional(),confidence:o.object({maxLevel:N.optional(),minLevel:N.optional()}).optional(),indexed:o.record(o.string(),t).optional(),limit:o.number().int().min(1).optional()}),V=o.object({base:c,target:c}),H=o.object({base:R,target:R,changedPaths:o.array(o.string())});export{v as C,u as S,T as _,B as a,z as b,M as c,R as d,x as f,F as g,N as h,I as i,O as l,P as m,V as n,S as o,y as p,H as r,j as s,b as t,L as u,w as v,c as w,l as x,C as y};
|
|
@@ -143,8 +143,8 @@ declare const AdapterRuntimeSchemas: {
|
|
|
143
143
|
teardownCompleted: z.ZodObject<{
|
|
144
144
|
evidence: z.ZodEnum<{
|
|
145
145
|
unknown: "unknown";
|
|
146
|
-
closed: "closed";
|
|
147
146
|
exited: "exited";
|
|
147
|
+
closed: "closed";
|
|
148
148
|
released: "released";
|
|
149
149
|
detached: "detached";
|
|
150
150
|
}>;
|
|
@@ -46,6 +46,7 @@ declare const SubagentTemplateCreateSchema: z.ZodObject<{
|
|
|
46
46
|
name: z.ZodString;
|
|
47
47
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
48
48
|
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
49
|
+
adapterName: z.ZodString;
|
|
49
50
|
model: z.ZodOptional<z.ZodString>;
|
|
50
51
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
51
52
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -55,7 +56,6 @@ declare const SubagentTemplateCreateSchema: z.ZodObject<{
|
|
|
55
56
|
fork: "fork";
|
|
56
57
|
fresh: "fresh";
|
|
57
58
|
}>>;
|
|
58
|
-
adapterName: z.ZodString;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
type SubagentTemplateCreate = z.infer<typeof SubagentTemplateCreateSchema>;
|
|
61
61
|
/**
|
|
@@ -131,6 +131,7 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
133
133
|
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
134
|
+
adapterName: z.ZodString;
|
|
134
135
|
model: z.ZodOptional<z.ZodString>;
|
|
135
136
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
136
137
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -140,7 +141,6 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
140
141
|
fork: "fork";
|
|
141
142
|
fresh: "fresh";
|
|
142
143
|
}>>;
|
|
143
|
-
adapterName: z.ZodString;
|
|
144
144
|
}, z.core.$strip>;
|
|
145
145
|
response: z.ZodObject<{
|
|
146
146
|
id: z.ZodString;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ResolveNameResponseSchema, a as GetMachineIdResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, i as GetMachineIdResponse, l as ResolveIdResponseSchema, m as ResolveNameRequest, n as GetMachineIdRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, r as GetMachineIdRequestSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../../schemas-
|
|
2
|
-
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-
|
|
3
|
-
import { a as ResolveLiveAdapterIdentity, c as resolveDeterministicAdapterId, i as ResolveLiveAdapterId, n as AdapterRuntimeIdentityHandlerOptions, o as buildDeterministicAdapterId, r as RegisteredAdapterRuntimeIdentityHandlers, s as registerAdapterRuntimeIdentityHandlers, t as AdapterIdentityRegistry } from "../../index-
|
|
1
|
+
import { _ as ResolveNameResponseSchema, a as GetMachineIdResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, i as GetMachineIdResponse, l as ResolveIdResponseSchema, m as ResolveNameRequest, n as GetMachineIdRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, r as GetMachineIdRequestSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../../schemas-CBDNnyz4.mjs";
|
|
2
|
+
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-DAzOxaux.mjs";
|
|
3
|
+
import { a as ResolveLiveAdapterIdentity, c as resolveDeterministicAdapterId, i as ResolveLiveAdapterId, n as AdapterRuntimeIdentityHandlerOptions, o as buildDeterministicAdapterId, r as RegisteredAdapterRuntimeIdentityHandlers, s as registerAdapterRuntimeIdentityHandlers, t as AdapterIdentityRegistry } from "../../index-CVRQS5jk.mjs";
|
|
4
4
|
export { AdapterIdentityRegistry, AdapterRuntimeIdentityHandlerOptions, AdapterRuntimeNamespace, AdapterRuntimeSchemas, AdapterRuntimeSubjects, GetMachineIdRequest, GetMachineIdRequestSchema, GetMachineIdResponse, GetMachineIdResponseSchema, RegisteredAdapterRuntimeIdentityHandlers, ResolveIdRequest, ResolveIdRequestSchema, ResolveIdResponse, ResolveIdResponseSchema, ResolveLiveAdapterId, ResolveLiveAdapterIdentity, ResolveLiveIdentityRequest, ResolveLiveIdentityRequestSchema, ResolveLiveIdentityResponse, ResolveLiveIdentityResponseSchema, ResolveNameRequest, ResolveNameRequestSchema, ResolveNameResponse, ResolveNameResponseSchema, buildDeterministicAdapterId, registerAdapterRuntimeIdentityHandlers, resolveDeterministicAdapterId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-
|
|
1
|
+
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-DAzOxaux.mjs";
|
|
2
2
|
export { AdapterRuntimeNamespace, AdapterRuntimeSubjects };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as ResolveNameResponseSchema, a as GetMachineIdResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, i as GetMachineIdResponse, l as ResolveIdResponseSchema, m as ResolveNameRequest, n as GetMachineIdRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, r as GetMachineIdRequestSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../../schemas-
|
|
1
|
+
import { _ as ResolveNameResponseSchema, a as GetMachineIdResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, i as GetMachineIdResponse, l as ResolveIdResponseSchema, m as ResolveNameRequest, n as GetMachineIdRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, r as GetMachineIdRequestSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../../schemas-CBDNnyz4.mjs";
|
|
2
2
|
export { AdapterRuntimeSchemas, GetMachineIdRequest, GetMachineIdRequestSchema, GetMachineIdResponse, GetMachineIdResponseSchema, ResolveIdRequest, ResolveIdRequestSchema, ResolveIdResponse, ResolveIdResponseSchema, ResolveLiveIdentityRequest, ResolveLiveIdentityRequestSchema, ResolveLiveIdentityResponse, ResolveLiveIdentityResponseSchema, ResolveNameRequest, ResolveNameRequestSchema, ResolveNameResponse, ResolveNameResponseSchema };
|
|
@@ -160,8 +160,8 @@ declare const ResolvedContextRulesSchema: z.ZodObject<{
|
|
|
160
160
|
declare const ContextRuleChangedEventSchema: z.ZodObject<{
|
|
161
161
|
ruleId: z.ZodString;
|
|
162
162
|
changeType: z.ZodEnum<{
|
|
163
|
-
updated: "updated";
|
|
164
163
|
created: "created";
|
|
164
|
+
updated: "updated";
|
|
165
165
|
deleted: "deleted";
|
|
166
166
|
}>;
|
|
167
167
|
previous: z.ZodNullable<z.ZodObject<{
|
|
@@ -313,8 +313,8 @@ declare const ContextRulesServiceNamespace: _$_makaio_core0.BusNamespaceDefiniti
|
|
|
313
313
|
changed: _$zod.ZodObject<{
|
|
314
314
|
ruleId: _$zod.ZodString;
|
|
315
315
|
changeType: _$zod.ZodEnum<{
|
|
316
|
-
updated: "updated";
|
|
317
316
|
created: "created";
|
|
317
|
+
updated: "updated";
|
|
318
318
|
deleted: "deleted";
|
|
319
319
|
}>;
|
|
320
320
|
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
@@ -383,8 +383,8 @@ declare const ContextRulesServiceSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
383
383
|
changed: _$zod.ZodObject<{
|
|
384
384
|
ruleId: _$zod.ZodString;
|
|
385
385
|
changeType: _$zod.ZodEnum<{
|
|
386
|
-
updated: "updated";
|
|
387
386
|
created: "created";
|
|
387
|
+
updated: "updated";
|
|
388
388
|
deleted: "deleted";
|
|
389
389
|
}>;
|
|
390
390
|
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
@@ -11,8 +11,8 @@ declare const FsNamespace: _$_makaio_core0.BusNamespaceDefinition<"fs", {
|
|
|
11
11
|
path: _$zod.ZodString;
|
|
12
12
|
kind: _$zod.ZodEnum<{
|
|
13
13
|
create: "create";
|
|
14
|
-
change: "change";
|
|
15
14
|
delete: "delete";
|
|
15
|
+
change: "change";
|
|
16
16
|
}>;
|
|
17
17
|
}, _$zod_v4_core0.$strip>;
|
|
18
18
|
batch: _$zod.ZodObject<{
|
|
@@ -20,8 +20,8 @@ declare const FsNamespace: _$_makaio_core0.BusNamespaceDefinition<"fs", {
|
|
|
20
20
|
path: _$zod.ZodString;
|
|
21
21
|
kind: _$zod.ZodEnum<{
|
|
22
22
|
create: "create";
|
|
23
|
-
change: "change";
|
|
24
23
|
delete: "delete";
|
|
24
|
+
change: "change";
|
|
25
25
|
}>;
|
|
26
26
|
}, _$zod_v4_core0.$strip>>;
|
|
27
27
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -154,8 +154,8 @@ declare const FsSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjec
|
|
|
154
154
|
path: _$zod.ZodString;
|
|
155
155
|
kind: _$zod.ZodEnum<{
|
|
156
156
|
create: "create";
|
|
157
|
-
change: "change";
|
|
158
157
|
delete: "delete";
|
|
158
|
+
change: "change";
|
|
159
159
|
}>;
|
|
160
160
|
}, _$zod_v4_core0.$strip>;
|
|
161
161
|
batch: _$zod.ZodObject<{
|
|
@@ -163,8 +163,8 @@ declare const FsSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjec
|
|
|
163
163
|
path: _$zod.ZodString;
|
|
164
164
|
kind: _$zod.ZodEnum<{
|
|
165
165
|
create: "create";
|
|
166
|
-
change: "change";
|
|
167
166
|
delete: "delete";
|
|
167
|
+
change: "change";
|
|
168
168
|
}>;
|
|
169
169
|
}, _$zod_v4_core0.$strip>>;
|
|
170
170
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -295,8 +295,8 @@ declare const FileSystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
295
295
|
path: _$zod.ZodString;
|
|
296
296
|
kind: _$zod.ZodEnum<{
|
|
297
297
|
create: "create";
|
|
298
|
-
change: "change";
|
|
299
298
|
delete: "delete";
|
|
299
|
+
change: "change";
|
|
300
300
|
}>;
|
|
301
301
|
}, _$zod_v4_core0.$strip>;
|
|
302
302
|
batch: _$zod.ZodObject<{
|
|
@@ -304,8 +304,8 @@ declare const FileSystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
304
304
|
path: _$zod.ZodString;
|
|
305
305
|
kind: _$zod.ZodEnum<{
|
|
306
306
|
create: "create";
|
|
307
|
-
change: "change";
|
|
308
307
|
delete: "delete";
|
|
308
|
+
change: "change";
|
|
309
309
|
}>;
|
|
310
310
|
}, _$zod_v4_core0.$strip>>;
|
|
311
311
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -6,8 +6,8 @@ import { z } from "zod";
|
|
|
6
6
|
*/
|
|
7
7
|
declare const FsChangeKindSchema: z.ZodEnum<{
|
|
8
8
|
create: "create";
|
|
9
|
-
change: "change";
|
|
10
9
|
delete: "delete";
|
|
10
|
+
change: "change";
|
|
11
11
|
}>;
|
|
12
12
|
type FsChangeKind = z.infer<typeof FsChangeKindSchema>;
|
|
13
13
|
/**
|
|
@@ -17,8 +17,8 @@ declare const FsChangedSchema: z.ZodObject<{
|
|
|
17
17
|
path: z.ZodString;
|
|
18
18
|
kind: z.ZodEnum<{
|
|
19
19
|
create: "create";
|
|
20
|
-
change: "change";
|
|
21
20
|
delete: "delete";
|
|
21
|
+
change: "change";
|
|
22
22
|
}>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
type FsChanged = z.infer<typeof FsChangedSchema>;
|
|
@@ -30,8 +30,8 @@ declare const FsBatchSchema: z.ZodObject<{
|
|
|
30
30
|
path: z.ZodString;
|
|
31
31
|
kind: z.ZodEnum<{
|
|
32
32
|
create: "create";
|
|
33
|
-
change: "change";
|
|
34
33
|
delete: "delete";
|
|
34
|
+
change: "change";
|
|
35
35
|
}>;
|
|
36
36
|
}, z.core.$strip>>;
|
|
37
37
|
}, z.core.$strip>;
|
|
@@ -330,8 +330,8 @@ declare const GitNamespace: _$_makaio_core0.BusNamespaceDefinition<"git", {
|
|
|
330
330
|
path: _$zod.ZodString;
|
|
331
331
|
branch: _$zod.ZodString;
|
|
332
332
|
event: _$zod.ZodEnum<{
|
|
333
|
-
removed: "removed";
|
|
334
333
|
added: "added";
|
|
334
|
+
removed: "removed";
|
|
335
335
|
}>;
|
|
336
336
|
timestamp: _$zod.ZodString;
|
|
337
337
|
}, _$zod_v4_core0.$strip>; /** Add a repo to watch */
|
|
@@ -917,8 +917,8 @@ declare const GitSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
|
|
|
917
917
|
path: _$zod.ZodString;
|
|
918
918
|
branch: _$zod.ZodString;
|
|
919
919
|
event: _$zod.ZodEnum<{
|
|
920
|
-
removed: "removed";
|
|
921
920
|
added: "added";
|
|
921
|
+
removed: "removed";
|
|
922
922
|
}>;
|
|
923
923
|
timestamp: _$zod.ZodString;
|
|
924
924
|
}, _$zod_v4_core0.$strip>; /** Add a repo to watch */
|
|
@@ -429,8 +429,8 @@ declare const GitWorktreeEventSchema: z.ZodObject<{
|
|
|
429
429
|
path: z.ZodString;
|
|
430
430
|
branch: z.ZodString;
|
|
431
431
|
event: z.ZodEnum<{
|
|
432
|
-
removed: "removed";
|
|
433
432
|
added: "added";
|
|
433
|
+
removed: "removed";
|
|
434
434
|
}>;
|
|
435
435
|
timestamp: z.ZodString;
|
|
436
436
|
}, z.core.$strip>;
|
|
@@ -15,7 +15,6 @@ declare const HarnessInputSchema: z.ZodObject<{
|
|
|
15
15
|
name: z.ZodString;
|
|
16
16
|
clientId: z.ZodOptional<z.ZodString>;
|
|
17
17
|
adapterName: z.ZodOptional<z.ZodString>;
|
|
18
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19
18
|
toolCapabilityMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
20
19
|
"file.read": "file.read";
|
|
21
20
|
"file.write": "file.write";
|
|
@@ -37,6 +36,7 @@ declare const HarnessInputSchema: z.ZodObject<{
|
|
|
37
36
|
"always-ask": "always-ask";
|
|
38
37
|
"full-access": "full-access";
|
|
39
38
|
}>>>;
|
|
39
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40
40
|
approvalPolicy: z.ZodEnum<{
|
|
41
41
|
reject: "reject";
|
|
42
42
|
"always-ask": "always-ask";
|
|
@@ -132,7 +132,6 @@ declare const HarnessStorageNamespace: _$_makaio_storage_core0.StorageNamespaceD
|
|
|
132
132
|
name: z.ZodString;
|
|
133
133
|
clientId: z.ZodOptional<z.ZodString>;
|
|
134
134
|
adapterName: z.ZodOptional<z.ZodString>;
|
|
135
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
136
135
|
toolCapabilityMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
137
136
|
"file.read": "file.read";
|
|
138
137
|
"file.write": "file.write";
|
|
@@ -154,6 +153,7 @@ declare const HarnessStorageNamespace: _$_makaio_storage_core0.StorageNamespaceD
|
|
|
154
153
|
"always-ask": "always-ask";
|
|
155
154
|
"full-access": "full-access";
|
|
156
155
|
}>>>;
|
|
156
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
157
157
|
approvalPolicy: z.ZodEnum<{
|
|
158
158
|
reject: "reject";
|
|
159
159
|
"always-ask": "always-ask";
|
|
@@ -739,7 +739,6 @@ declare const HarnessStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
739
739
|
name: z.ZodString;
|
|
740
740
|
clientId: z.ZodOptional<z.ZodString>;
|
|
741
741
|
adapterName: z.ZodOptional<z.ZodString>;
|
|
742
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
743
742
|
toolCapabilityMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
744
743
|
"file.read": "file.read";
|
|
745
744
|
"file.write": "file.write";
|
|
@@ -761,6 +760,7 @@ declare const HarnessStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
761
760
|
"always-ask": "always-ask";
|
|
762
761
|
"full-access": "full-access";
|
|
763
762
|
}>>>;
|
|
763
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
764
764
|
approvalPolicy: z.ZodEnum<{
|
|
765
765
|
reject: "reject";
|
|
766
766
|
"always-ask": "always-ask";
|