@makaio/framework 1.0.0-dev-1788811230746 → 1.0.0-dev-1788832451167
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/{artifact-Btbuib48.mjs → artifact-ClvHqL3w.mjs} +1 -1
- package/dist/bus/index.mjs +1 -1
- package/dist/{context-resolution-C2VBZhaR.d.mts → context-resolution-BrtoXnez.d.mts} +99 -20
- 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/index.d.mts +64 -64
- 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/{execution-attempt-repository-OryBjQQI.d.mts → execution-attempt-repository-CgB7uiYD.d.mts} +12 -1
- package/dist/execution-attempt-repository-D0cCU7dI.mjs +1 -0
- package/dist/{index-CXH1Bk0W.d.mts → index-BADuMxcP.d.mts} +134 -134
- package/dist/{index-BhOMZWZa2.d.mts → index-BDAfOYSw2.d.mts} +24 -24
- package/dist/{index-CAYbui7g.d.mts → index-BakMNLkB.d.mts} +110 -22
- package/dist/{index-CnGHGFMC.d.mts → index-Bsr4rZl0.d.mts} +4 -4
- package/dist/{index-DEpAI8CY.d.mts → index-BvgLFm-U.d.mts} +1 -1
- package/dist/{index-9PUmCySn.d.mts → index-BxOFB25y.d.mts} +5 -4
- package/dist/{index-BTCodvXA.d.mts → index-C1PfDEIV.d.mts} +50 -50
- package/dist/{index-C-cnB1Te.d.mts → index-CGJgZGqN.d.mts} +8 -8
- package/dist/{index-B6Kr3cxD2.d.mts → index-CiKzWCW02.d.mts} +30 -6
- package/dist/{index-DsjUnKyr.d.mts → index-DZXpKlyB.d.mts} +19 -19
- package/dist/{index-DrO6QLwf2.d.mts → index-DZnb56vt2.d.mts} +1 -1
- package/dist/{index-BDDavX2S.d.mts → index-LOh6AEqx.d.mts} +9 -9
- package/dist/{index-BxTM9lY0.d.mts → index-LryUXslm.d.mts} +1 -1
- package/dist/{index-CgqEyk9R.d.mts → index-rygpcDBV.d.mts} +1 -1
- package/dist/{index-Df9L5wwp.d.mts → index-vXmPEZ5O.d.mts} +388 -88
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{materialization-lVd9_-jr.mjs → materialization-B_LA9pfy.mjs} +1 -1
- package/dist/{namespace-BkOvOAU5.d.mts → namespace-BMG3RCdr.d.mts} +6 -6
- package/dist/{namespace-2qvc6E2Y.d.mts → namespace-BoyqQiW9.d.mts} +2 -2
- package/dist/{namespace-CirognbA.d.mts → namespace-BymM0nl_.d.mts} +27 -27
- package/dist/{namespace-DAINF1II.d.mts → namespace-DdqVQSyc.d.mts} +2 -2
- package/dist/{namespace-DokogwAZ.d.mts → namespace-DlrX8feY.d.mts} +45 -45
- package/dist/{namespace-CxXNlHpn.d.mts → namespace-Dw5H_KCF.d.mts} +4 -4
- package/dist/{package-DEYXB80d.mjs → package-CzKoZ1k0.mjs} +1 -1
- package/dist/{package-eOEt1w6u.d.mts → package-DkpF17X_.d.mts} +14 -6
- package/dist/package.json +1 -1
- package/dist/runtime-node/index.d.mts +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/{schema-zSyY22Ck.d.mts → schema-C9PauHXt.d.mts} +2 -2
- package/dist/{schemas-DuJs6Iqj.d.mts → schemas-B2UbGJpJ.d.mts} +10 -10
- package/dist/{schemas-Dn1JDTPw.d.mts → schemas-BDZFd3Wb.d.mts} +2 -2
- package/dist/{schemas-DqnA42bw.d.mts → schemas-CBpjAhut.d.mts} +4 -4
- package/dist/schemas-CNkUEbIr.mjs +1 -0
- package/dist/{schemas-D0_kfoDf.d.mts → schemas-Wqo3_F6-.d.mts} +1 -1
- 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/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/execution-target/index.d.mts +2 -2
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +30 -30
- package/dist/services/index.mjs +1 -1
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +7 -7
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +10 -10
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/{transition-BB138WkK.d.mts → transition-DFA_ckdP.d.mts} +1 -1
- package/dist/{types-CR23FzmK.d.mts → types-DkfDRSTr.d.mts} +48 -48
- package/dist/{view-builder-qIGQrZfs.d.mts → view-builder-CYW_9n4A.d.mts} +1 -1
- package/dist/{worker-DPTYFyNP.mjs → worker-B4nD_Erm.mjs} +1 -1
- package/dist/{workflow-BomH9DBB.mjs → workflow-H8hsEikC.mjs} +1 -1
- package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -2
- package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
- package/dist/workflow-engine/index.d.mts +4 -4
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/testing/conformance.d.mts +1 -1
- package/dist/workflow-engine/testing/conformance.mjs +1 -1
- package/dist/workflow-engine/testing/index.d.mts +1 -1
- package/dist/workflow-engine/testing/index.mjs +1 -1
- package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
- package/dist/workflow-engine/testing/sqlite.mjs +32 -32
- package/dist/{workflow-worker-BW3CE0YG.mjs → workflow-worker-CmIkKnpF.mjs} +2 -2
- package/package.json +1 -1
- package/dist/execution-attempt-repository-Djg3qDRv.mjs +0 -1
- package/dist/schemas-C3kyQWGf.mjs +0 -1
package/dist/.makaio-build.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"fingerprint": "
|
|
4
|
-
"builtAt": "2026-09-
|
|
3
|
+
"fingerprint": "c1c0e49324f9a4373148c5124ea5977163653981119a8ee54fa45cdda7663d3d",
|
|
4
|
+
"builtAt": "2026-09-08T01:55:16.119Z",
|
|
5
5
|
"declarations": true,
|
|
6
6
|
"declarationBackend": "tsc"
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$ as e,Q as t,S as n,a as r,d as i,f as a,l as o,m as s,n as c,o as l,r as u,s as d}from"./schemas-CNkUEbIr.mjs";import{t as f}from"./zod-json-schema-Dixc-B1T.mjs";import{z as p}from"zod";import{createBusNamespace as m}from"@makaio/framework/core";function h(e){return{...e,toRegistration:()=>({kind:e.kind,description:e.description,schemaVersion:e.schemaVersion,dataSchema:f(e.dataSchema),...e.scopeSchema?{scopeSchema:f(e.scopeSchema)}:{},...e.observationSchema?{observationSchema:f(e.observationSchema)}:{},...e.discriminator===void 0?{}:{discriminator:typeof e.discriminator==`string`?e.discriminator:Array.from(e.discriminator)},conflictPolicy:e.conflictPolicy,...e.status?{status:{...e.status,...e.status.values?{values:[...e.status.values]}:{}}}:{},...e.lifecycle?{lifecycle:e.lifecycle}:{},...e.indexedFields?{indexedFields:[...e.indexedFields]}:{},...e.searchableFields?{searchableFields:[...e.searchableFields]}:{},...e.projection?{projection:{...e.projection,...e.projection.semanticEvents?{semanticEvents:[...e.projection.semanticEvents]}:{},...e.projection.projectedFields?{projectedFields:e.projection.projectedFields.map(e=>({...e}))}:{},...e.projection.affordances?{affordances:e.projection.affordances.map(e=>structuredClone(e))}:{}}}:{},...e.defaultContext?{defaultContext:structuredClone(e.defaultContext)}:{}})}}function g(e){return{hooks:[...e.hooks]}}function _(e){return JSON.stringify([e.kind,e.id,e.revision])}const v=p.enum([`not-selected`,`not-found`,`depth-exceeded`,`unsupported-ref-class`,`cycle-detected`]),y=p.object({target:a,sourceRef:o,relationType:p.string().min(1),hint:t,status:p.enum([`resolved`,`unresolved`]),reason:v.optional()}).superRefine((e,t)=>{e.status===`unresolved`&&e.reason===void 0&&t.addIssue({code:p.ZodIssueCode.custom,path:[`reason`],message:`reason is required for unresolved artifact context refs`}),e.status===`resolved`&&e.reason!==void 0&&t.addIssue({code:p.ZodIssueCode.custom,path:[`reason`],message:`reason must be omitted for resolved artifact context refs`}),e.status===`resolved`&&e.target.refClass!==`artifact`&&t.addIssue({code:p.ZodIssueCode.custom,path:[`target`],message:`resolved artifact context refs must target an artifact revision`})}),b=p.object({rootRef:o,refs:p.array(y),resolved:p.array(s)}).superRefine((e,t)=>{let n=new Set(e.resolved.map(_));n.has(_(e.rootRef))||t.addIssue({code:p.ZodIssueCode.custom,path:[`resolved`],message:`resolved artifact context wire payloads must include the root artifact revision`}),e.refs.forEach((e,r)=>{n.has(_(e.sourceRef))||t.addIssue({code:p.ZodIssueCode.custom,path:[`refs`,r,`sourceRef`],message:`artifact context ref sources must have a matching revision in resolved`}),!(e.status!==`resolved`||e.target.refClass!==`artifact`)&&(n.has(_(e.target))||t.addIssue({code:p.ZodIssueCode.custom,path:[`refs`,r,`target`],message:`resolved artifact context refs must have a matching revision in resolved`}))})});function x(e){let t=b.parse(e),n=new Map(t.resolved.map(e=>[E(e),e])),r=new Map;for(let e of t.refs){let t=E(e.sourceRef),n=r.get(t);n||(n=[],r.set(t,n)),n.push(e)}let i=n.get(E(t.rootRef));if(!i)throw Error(`Resolved artifact context is missing root artifact '${E(t.rootRef)}'`);let a=S(t.rootRef,i,`inline`,r,n);return{root:a,flatten(){let e=[];return T(a,e),e}}}function S(e,t,n,r,i){return{status:`resolved`,ref:e,artifact:t,hint:n,children:w(e,r,i,new Set([E(e)]))}}function C(e,t,n,r,i,a,o){let s=E(e),c=new Set(o);return c.add(s),{status:`resolved`,ref:e,artifact:t,relation:n,hint:r,children:w(e,i,a,c)}}function w(e,t,n,r){return(t.get(E(e))??[]).map(e=>{if(e.status===`unresolved`)return{status:`unresolved`,target:e.target,relation:e.relationType,hint:e.hint,reason:e.reason};if(e.target.refClass!==`artifact`)throw Error(`Resolved artifact context refs must target an artifact revision`);let i=E(e.target),a=n.get(i);if(!a)throw Error(`Resolved artifact context is missing target artifact '${i}'`);return r.has(i)?{status:`unresolved`,target:e.target,relation:e.relationType,hint:e.hint,reason:`cycle-detected`}:C(e.target,a,e.relationType,e.hint,t,n,r)})}function T(e,t){if(e.status!==`unresolved`){t.push(e.artifact);for(let n of e.children)T(n,t)}}function E(e){return JSON.stringify([e.kind,e.id,e.revision])}const D={"kind.register":{request:r,response:p.object({registered:p.boolean()})},"kind.list":{request:p.object({kind:p.string().min(1).optional()}),response:p.object({kinds:p.array(r)})},"relation-type.register":{request:n,response:p.object({registered:p.boolean()})},"relation-type.list":{request:p.object({type:p.string().min(1).optional()}),response:p.object({relationTypes:p.array(n)})},create:{request:s.omit({id:!0,revision:!0,timestamp:!0}),response:p.object({artifact:s})},revise:{request:p.object({previous:o,revision:s.omit({id:!0,revision:!0,timestamp:!0})}),response:p.object({artifact:s})},resolve:{request:p.object({ref:o}),response:p.object({artifact:s.nullable()})},query:{request:d,response:p.object({artifacts:p.array(s)})},compare:{request:c,response:u},resolveContext:{request:p.object({ref:o,selectors:e.optional(),maxDepth:p.number().int().min(1).max(20).default(5)}),response:p.object({context:b})},created:p.object({artifact:s}),revised:p.object({previous:o,artifact:s}),"relation.added":p.object({artifact:o,relation:i}),"observation.added":p.object({artifact:o,observation:l}),"status.changed":p.object({artifact:o,path:p.string().min(1),previous:p.unknown().optional(),current:p.unknown().optional()}),"kind.changed":p.object({kind:p.string().min(1),schemaVersion:p.string().min(1)})},O=m(`artifact`,D),k=O.subjects;export{y as a,g as c,x as i,h as l,D as n,v as o,k as r,b as s,O as t};
|