@makaio/framework 1.0.0-dev-1782138936821 → 1.0.0-dev-1783282710723
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/{account-identity-D5TUafYg.mjs → account-identity-C7Kx_ieU.mjs} +1 -1
- package/dist/{adapter-Deu9viD2.mjs → adapter-DaQqmKOJ.mjs} +1 -1
- package/dist/adapters/index.d.mts +1 -1
- package/dist/artifact-CGjnoyCC.mjs +1 -0
- package/dist/bus/index.d.mts +41 -3
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-D-ioC0DE.mjs +1 -0
- package/dist/bus-rgUFuO2a.mjs +2 -0
- package/dist/{canonical-model-BM5WAnQW.mjs → canonical-model-DV-Z8gsb.mjs} +1 -1
- package/dist/{client-BO-0jTSV.mjs → client-BcfR-LJC.mjs} +1 -1
- package/dist/{compression-CXEHx0rS.mjs → compression-C5JAWdgZ.mjs} +1 -1
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -2
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +100 -100
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/provider/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/shared/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-BJ_975aA.mjs → definition-C-GVz7uw.mjs} +1 -1
- package/dist/{definition-s9PIua2B.d.mts → definition-DFcxkf2i.d.mts} +1 -1
- package/dist/{extension-CfL70C5n.mjs → extension-BS_4BOeO.mjs} +1 -1
- package/dist/{index-BwGfdbI0.d.mts → index-2fK9iSHI.d.mts} +9 -9
- package/dist/{index-BN95duxC.d.mts → index-4eP9DRL_.d.mts} +4 -4
- package/dist/{index-DDrS0Axp.d.mts → index-9b2_jXxq.d.mts} +15 -15
- package/dist/{index-DTBQOCar.d.mts → index-BMbmoarE.d.mts} +16 -16
- package/dist/{index-C2jl1iE2.d.mts → index-Bh6lHiW4.d.mts} +24 -24
- package/dist/{index-JkIaFJoM.d.mts → index-CL2T6LVv.d.mts} +6 -6
- package/dist/{index-B08YYzYZ.d.mts → index-CTEsbp9H.d.mts} +25 -25
- package/dist/{index-DYw2AuNR.d.mts → index-CaOWqztb.d.mts} +1 -1
- package/dist/{index-mU2lnU7O.d.mts → index-CqCe7Phc.d.mts} +6 -6
- package/dist/{index-Qd1Qom8M.d.mts → index-D6aAzr32.d.mts} +4 -4
- package/dist/{index-DXYFNGT9.d.mts → index-DLy-tc0L.d.mts} +53 -53
- package/dist/{index-Chtgizhn.d.mts → index-DdBRlm7m.d.mts} +57 -57
- package/dist/{index-ekpUAYVC.d.mts → index-Dg-y1mrq.d.mts} +827 -51
- package/dist/{index-CWDJFJGa.d.mts → index-GD-i3DW7.d.mts} +146 -146
- package/dist/{index-CaerrEDH.d.mts → index-NkNbYFud.d.mts} +1 -1
- package/dist/{index-ByDySw3V.d.mts → index-WHUV7neB.d.mts} +10 -10
- package/dist/{index-CRmApyqn.d.mts → index-Y2r0Zvcm.d.mts} +8 -8
- 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-DBXjSiBn.mjs → materialization-CUYxZCfk.mjs} +1 -1
- package/dist/{namespace-DuUCiVmK.d.mts → namespace-B4cV_pk3.d.mts} +6 -6
- package/dist/{namespace-DBGLCtoW.d.mts → namespace-CfvtDD_U.d.mts} +22 -22
- package/dist/{namespace-DXWpFdQH2.d.mts → namespace-D8P8Sxce2.d.mts} +2 -2
- package/dist/{namespace-CxzW0mIH.d.mts → namespace-DGAWYjbO.d.mts} +9 -9
- package/dist/{namespace-Bz0ORDns.d.mts → namespace-DXW-voCe.d.mts} +58 -58
- package/dist/node/transports/index.d.mts +8 -0
- package/dist/node/transports/index.mjs +2 -2
- package/dist/package.json +1 -1
- package/dist/{provider-context-DjSUpHSM.mjs → provider-context-CqMgPOWF.mjs} +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/{schema-Dky4zu9D.d.mts → schema-D1HrnvT7.d.mts} +2 -2
- package/dist/{schemas-7ncImjsM.d.mts → schemas-BemsLc_V.d.mts} +1 -1
- package/dist/{schemas-CynXJXJu.d.mts → schemas-CoFCV42v.d.mts} +22 -22
- package/dist/{schemas-CE1gbhxu.mjs → schemas-CuG17U3L.mjs} +1 -1
- package/dist/{schemas-Eq-lrXYz2.d.mts → schemas-D-9zNyAM2.d.mts} +5 -5
- package/dist/{schemas-CJ2JvA7d.d.mts → schemas-DMCGXlKa.d.mts} +4 -4
- package/dist/{schemas-bfhY9W6A.mjs → schemas-uID59wR8.mjs} +1 -1
- package/dist/scoped-bus-CZId-Df8.mjs +1 -0
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/execution-target/index.d.mts +1 -1
- package/dist/services/git/namespace.d.mts +4 -4
- package/dist/services/git/schemas.d.mts +3 -3
- package/dist/services/harness/index.d.mts +6 -6
- package/dist/services/index.d.mts +83 -40
- package/dist/services/index.mjs +1 -1
- package/dist/services/session/index.d.mts +4 -4
- package/dist/services/session/messages/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 +5 -5
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/{session-CpVSzgkZ.mjs → session-DH-ja8Ka.mjs} +1 -1
- package/dist/{shared-DpOEfD8F.mjs → shared-BVW-3Dhy.mjs} +1 -1
- package/dist/{transition-Bf-K6QGz.d.mts → transition-DnXibkhX.d.mts} +1 -1
- package/dist/{types-BolHvLpf.d.mts → types-Dur8EtpR.d.mts} +61 -61
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{workflow-BCKOJ4UC.mjs → workflow-BqH6ar-D.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +52 -52
- package/dist/workflow-worker-dH70EbjE.mjs +1 -0
- package/package.json +2 -2
- package/dist/artifact-B3npq1cy.mjs +0 -1
- package/dist/bus-BgodbPl9.mjs +0 -2
- package/dist/bus-HgaFcCZ1.mjs +0 -1
- package/dist/scoped-bus-H3xMYR0E.mjs +0 -1
- package/dist/workflow-worker-BIpYi6o7.mjs +0 -1
- /package/dist/{json-value-CmhSGMLv.mjs → json-value-DmU8ibo_.mjs} +0 -0
- /package/dist/{schemas-CR1Rripy.mjs → schemas-DlrQ0227.mjs} +0 -0
package/dist/.makaio-build.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"fingerprint": "
|
|
4
|
-
"builtAt": "2026-
|
|
3
|
+
"fingerprint": "e4724b16bce8dfb471088947f6a11245b0dd83c804539b9126f261830ae8be87",
|
|
4
|
+
"builtAt": "2026-07-05T20:19:33.478Z"
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./json-value-
|
|
1
|
+
import{t as e}from"./json-value-DmU8ibo_.mjs";import"./shared-BVW-3Dhy.mjs";import{g as t,h as n}from"./profile-BMBXUqqh.mjs";import{n as r}from"./version-DoV_pSzT.mjs";import{z as i}from"zod";const a=i.enum([`strong`,`alias`]),o=i.object({scheme:t,value:t,strength:a}),s=i.object({key:t,label:i.string(),usedPercentage:i.number().finite().min(0).max(100),resetsAt:n.optional()}),c=i.object({windows:i.array(s)}),l=i.record(i.string(),i.unknown()).optional(),u=i.object({clientId:t,found:i.boolean(),version:i.string().optional(),warningMessage:i.string().optional()}),d=i.object({clientId:t,binaryName:t,supportedVersions:r.optional()}),f=i.object({clientAccountId:t,clientId:t,observedAt:n,source:t,displayLabel:i.string().optional(),usage:c,metadata:l}),p=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`session`),sessionId:t}),i.object({kind:i.literal(`adapter-session`),adapterSessionId:t}),i.object({kind:i.literal(`both`),sessionId:t,adapterSessionId:t})]),m=i.object({clientId:i.string(),source:i.string(),kind:i.string(),observedAt:n,payload:e}),h={request:i.object({clientId:t,observedAt:n.optional(),displayLabel:i.string().optional(),identifiers:i.array(o).min(1),metadata:l}),response:i.object({clientAccountId:t,displayLabel:i.string().optional()})},g={request:m.extend({locator:p}),response:i.object({handled:i.boolean(),sessionId:t.nullable(),clientAccountId:t.nullable(),changed:i.boolean()})},_={request:i.object({clientId:t,observedAt:n,source:t,account:i.object({displayLabel:i.string().optional(),identifiers:i.array(o).min(1)}),usage:c,metadata:l}),response:i.object({clientAccountId:t,snapshot:f})};export{l as a,g as c,f as d,s as f,m as i,p as l,h as n,u as o,c as p,a as r,d as s,o as t,_ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t,c as n,ct as r,d as i,f as a,g as o,h as s,i as c,l,m as u,o as d,p as f,s as p,t as m,u as h,v as g}from"./schemas-
|
|
1
|
+
import{_ as e,a as t,c as n,ct as r,d as i,f as a,g as o,h as s,i as c,l,m as u,o as d,p as f,s as p,t as m,u as h,v as g}from"./schemas-uID59wR8.mjs";import"./compression-C5JAWdgZ.mjs";import"./provider-context-CqMgPOWF.mjs";import"./contracts/adapter/schemas/session-lineage.mjs";import{createBusNamespace as _}from"@makaio/framework/core";const v={getCapabilities:r,startAgent:g,infer:e,listAgents:o,getAgent:s,stopAgent:u,rehydrateAgent:f,getConfigSchema:a,"agent.created":i,"session.created":h,"session.discovered":m,"session.usage":l,"session.closed":n,log:p,error:d,initialized:t,quota:c},y=_(`adapter`,v),b=y.subjects;export{b as n,v as r,y as t};
|
|
@@ -4004,8 +4004,8 @@ interface TurnTrackerSerializedState {
|
|
|
4004
4004
|
declare const TurnTrackerSerializedStateSchema: z.ZodDefault<z.ZodObject<{
|
|
4005
4005
|
sessions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4006
4006
|
state: z.ZodEnum<{
|
|
4007
|
-
active: "active";
|
|
4008
4007
|
idle: "idle";
|
|
4008
|
+
active: "active";
|
|
4009
4009
|
}>;
|
|
4010
4010
|
currentTurnId: z.ZodOptional<z.ZodString>;
|
|
4011
4011
|
}, z.core.$strip>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./json-value-DmU8ibo_.mjs";import{n}from"./schemas-DlrQ0227.mjs";import{z as r}from"zod";import{createBusNamespace as i}from"@makaio/framework/core";const a=[`inline`,`summary`,`link`,`omit`],o=r.string().min(1),s=r.object({kinds:r.array(r.string().min(1)).optional(),hint:o.optional(),depth:r.number().int().min(1).max(20).optional(),nested:r.lazy(()=>c).optional()}),c=r.record(r.string().min(1),s),l=r.object({kind:r.string().min(1),id:r.string().min(1),displayName:r.string().optional()}),u=r.object({level:r.string().min(1),ids:r.record(r.string().min(1),r.string().min(1)).optional()}).superRefine((e,t)=>{e.level!==`global`&&(!e.ids||Object.keys(e.ids).length===0)&&t.addIssue({code:r.ZodIssueCode.custom,path:[`ids`],message:`ids is required when scope level is not 'global'`})}),d=r.object({level:r.string().min(1),ids:r.record(r.string().min(1),r.string().min(1)).optional()}),f=r.object({refClass:r.literal(`artifact`).default(`artifact`),kind:r.string().min(1),id:r.string().min(1),revision:r.string().min(1)}),p=r.object({refClass:r.literal(`local`).default(`local`),artifact:f,localId:r.string().min(1)}),m=r.object({refClass:r.literal(`evidence`).default(`evidence`),kind:r.string().min(1),id:r.string().min(1),revision:r.string().min(1).optional(),locator:r.string().min(1).optional()}),h=r.discriminatedUnion(`refClass`,[f,p,m]);function g(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 _=r.preprocess(g,h),v=r.discriminatedUnion(`refClass`,[f.extend({revision:r.string().min(1).optional()}),p,m]);function y(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 b=r.preprocess(y,v),x=r.object({type:r.string().min(1),target:_}),S=r.enum([`assumed`,`inferred`,`stated`,`confirmed`,`verified`]),C=r.object({kind:r.string().min(1),actor:l,timestamp:r.number().int().nonnegative(),detail:r.string().optional(),evidenceRef:_.optional()}),w=r.object({level:S,basis:r.array(C)}),T=r.object({id:r.string().min(1),kind:r.string().min(1),summary:r.string().min(1),detail:r.string().optional(),severity:r.enum([`info`,`warning`,`blocker`]).optional(),tags:r.array(r.string().min(1)).optional(),regarding:r.union([f,p]).optional(),evidence:r.union([f,m]).optional(),actor:l,timestamp:r.number().int().nonnegative()}),E=r.object({markdown:r.string().optional(),summary:r.string().optional(),plaintext:r.string().optional()}),D=r.object({kind:r.string().min(1),id:r.string().min(1),revision:r.string().min(1),scope:u,schemaVersion:r.string().min(1),data:t,relations:r.array(x),confidence:w.optional(),representations:E.optional(),actor:l,timestamp:r.number().int().nonnegative(),createdAt:r.number().int().nonnegative().optional()}),O=r.enum([`supersedes`,`manual`,`coexist`]),k=r.object({kind:r.string().min(1),description:r.string().trim().min(1),schemaVersion:r.string().min(1),dataSchema:t,scopeSchema:t.optional(),observationSchema:t.optional(),discriminator:r.union([r.string().min(1),r.array(r.string().min(1))]).optional(),conflictPolicy:O,status:r.object({path:r.string().min(1),values:r.array(r.string().min(1)).optional()}).optional(),lifecycle:r.object({defaultRelevance:r.enum([`active`,`fading`,`retired`,`archived`]).optional(),decayPolicy:r.string().min(1).optional()}).optional(),indexedFields:r.array(r.string().min(1)).optional(),searchableFields:r.array(r.string().min(1)).optional(),projection:n.optional(),defaultContext:c.optional()}),A=r.object({type:r.string().min(1),symmetry:r.enum([`asymmetric`,`symmetric`]),implication:r.string().min(1).optional(),sourceKinds:r.array(r.string().min(1)).optional(),targetKinds:r.array(r.string().min(1)).optional(),targetRefClasses:r.array(r.enum([`artifact`,`local`,`evidence`])).optional()}),j=r.object({kind:r.string().min(1).optional(),scope:d.optional(),ids:r.array(r.string().min(1)).optional(),currentOnly:r.boolean().optional(),search:r.string().optional(),relation:r.object({type:r.string().min(1).optional(),target:b.optional()}).optional(),confidence:r.object({maxLevel:S.optional(),minLevel:S.optional()}).optional(),indexed:r.record(r.string(),e).optional(),limit:r.number().int().min(1).optional()}),M=r.object({base:f,target:f}),N=r.object({base:D,target:D,changedPaths:r.array(r.string())});function P(e){let{$schema:t,...n}=r.toJSONSchema(e);return n}function F(e){return{...e,toRegistration:()=>({kind:e.kind,description:e.description,schemaVersion:e.schemaVersion,dataSchema:P(e.dataSchema),...e.scopeSchema?{scopeSchema:P(e.scopeSchema)}:{},...e.observationSchema?{observationSchema:P(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.defaultContext?{defaultContext:structuredClone(e.defaultContext)}:{}})}}function I(e){return{hooks:[...e.hooks]}}function L(e){return JSON.stringify([e.kind,e.id,e.revision])}const R=r.enum([`not-selected`,`not-found`,`depth-exceeded`,`unsupported-ref-class`,`cycle-detected`]),z=r.object({target:_,sourceRef:f,relationType:r.string().min(1),hint:o,status:r.enum([`resolved`,`unresolved`]),reason:R.optional()}).superRefine((e,t)=>{e.status===`unresolved`&&e.reason===void 0&&t.addIssue({code:r.ZodIssueCode.custom,path:[`reason`],message:`reason is required for unresolved artifact context refs`}),e.status===`resolved`&&e.reason!==void 0&&t.addIssue({code:r.ZodIssueCode.custom,path:[`reason`],message:`reason must be omitted for resolved artifact context refs`}),e.status===`resolved`&&e.target.refClass!==`artifact`&&t.addIssue({code:r.ZodIssueCode.custom,path:[`target`],message:`resolved artifact context refs must target an artifact revision`})}),B=r.object({rootRef:f,refs:r.array(z),resolved:r.array(D)}).superRefine((e,t)=>{let n=new Set(e.resolved.map(L));n.has(L(e.rootRef))||t.addIssue({code:r.ZodIssueCode.custom,path:[`resolved`],message:`resolved artifact context wire payloads must include the root artifact revision`}),e.refs.forEach((e,i)=>{n.has(L(e.sourceRef))||t.addIssue({code:r.ZodIssueCode.custom,path:[`refs`,i,`sourceRef`],message:`artifact context ref sources must have a matching revision in resolved`}),!(e.status!==`resolved`||e.target.refClass!==`artifact`)&&(n.has(L(e.target))||t.addIssue({code:r.ZodIssueCode.custom,path:[`refs`,i,`target`],message:`resolved artifact context refs must have a matching revision in resolved`}))})});function V(e){let t=B.parse(e),n=new Map(t.resolved.map(e=>[K(e),e])),r=new Map;for(let e of t.refs){let t=K(e.sourceRef),n=r.get(t);n||(n=[],r.set(t,n)),n.push(e)}let i=n.get(K(t.rootRef));if(!i)throw Error(`Resolved artifact context is missing root artifact '${K(t.rootRef)}'`);let a=H(t.rootRef,i,`inline`,r,n);return{root:a,flatten(){let e=[];return G(a,e),e}}}function H(e,t,n,r,i){return{status:`resolved`,ref:e,artifact:t,hint:n,children:W(e,r,i,new Set([K(e)]))}}function U(e,t,n,r,i,a,o){let s=K(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(K(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=K(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`}:U(e.target,a,e.relationType,e.hint,t,n,r)})}function G(e,t){if(e.status!==`unresolved`){t.push(e.artifact);for(let n of e.children)G(n,t)}}function K(e){return JSON.stringify([e.kind,e.id,e.revision])}const q={"kind.register":{request:k,response:r.object({registered:r.boolean()})},"kind.list":{request:r.object({kind:r.string().min(1).optional()}),response:r.object({kinds:r.array(k)})},"relation-type.register":{request:A,response:r.object({registered:r.boolean()})},"relation-type.list":{request:r.object({type:r.string().min(1).optional()}),response:r.object({relationTypes:r.array(A)})},create:{request:D.omit({id:!0,revision:!0,timestamp:!0}),response:r.object({artifact:D})},revise:{request:r.object({previous:f,revision:D.omit({id:!0,revision:!0,timestamp:!0})}),response:r.object({artifact:D})},resolve:{request:r.object({ref:f}),response:r.object({artifact:D.nullable()})},query:{request:j,response:r.object({artifacts:r.array(D)})},compare:{request:M,response:N},resolveContext:{request:r.object({ref:f,selectors:c.optional(),maxDepth:r.number().int().min(1).max(20).default(5)}),response:r.object({context:B})},created:r.object({artifact:D}),revised:r.object({previous:f,artifact:D}),"relation.added":r.object({artifact:f,relation:x}),"observation.added":r.object({artifact:f,observation:T}),"status.changed":r.object({artifact:f,path:r.string().min(1),previous:r.unknown().optional(),current:r.unknown().optional()}),"kind.changed":r.object({kind:r.string().min(1),schemaVersion:r.string().min(1)})},J=i(`artifact`,q),Y=J.subjects;export{A,D as C,w as D,S as E,s as M,o as N,m as O,c as P,E as S,C as T,d as _,z as a,x as b,I as c,M as d,N as f,j as g,T as h,V as i,a as j,p as k,F as l,k as m,q as n,R as o,O as p,Y as r,B as s,J as t,l as u,f as v,u as w,_ as x,b as y};
|
package/dist/bus/index.d.mts
CHANGED
|
@@ -2676,6 +2676,16 @@ declare class CorrelationTracker {
|
|
|
2676
2676
|
* @param error - Optional cancellation error
|
|
2677
2677
|
*/
|
|
2678
2678
|
cancel(correlationId: string, error?: Error): void;
|
|
2679
|
+
/**
|
|
2680
|
+
* Reject all pending requests with the given error.
|
|
2681
|
+
*
|
|
2682
|
+
* Clears all timeouts, removes abort listeners, rejects every pending
|
|
2683
|
+
* promise, and empties the map. New entries can still be tracked after
|
|
2684
|
+
* this call — use this for connection-loss scenarios where the transport
|
|
2685
|
+
* will reconnect.
|
|
2686
|
+
* @param error - Error to reject all pending requests with
|
|
2687
|
+
*/
|
|
2688
|
+
rejectAll(error: Error): void;
|
|
2679
2689
|
/**
|
|
2680
2690
|
* Clean up all pending requests.
|
|
2681
2691
|
*
|
|
@@ -3066,6 +3076,34 @@ declare class ChannelOnlyError extends BusError {
|
|
|
3066
3076
|
constructor(subject: string);
|
|
3067
3077
|
}
|
|
3068
3078
|
//#endregion
|
|
3079
|
+
//#region core/bus-core/src/errors/connection-lost-error.d.ts
|
|
3080
|
+
/**
|
|
3081
|
+
* Stable error code for connection-lost failures.
|
|
3082
|
+
*
|
|
3083
|
+
* Distinguishes transport disconnection from "no handler registered"
|
|
3084
|
+
* ({@link NoHandlerError}) so callers can decide whether to retry.
|
|
3085
|
+
*/
|
|
3086
|
+
declare const CONNECTION_LOST_ERROR_CODE: "CONNECTION_LOST";
|
|
3087
|
+
/**
|
|
3088
|
+
* Error thrown when a pending request is abandoned because the underlying
|
|
3089
|
+
* transport connection was lost before a response arrived.
|
|
3090
|
+
*
|
|
3091
|
+
* Unlike {@link NoHandlerError}, this error indicates that a handler may
|
|
3092
|
+
* well exist — the connection dropped before the response could be
|
|
3093
|
+
* delivered. Callers should treat this as retryable.
|
|
3094
|
+
*/
|
|
3095
|
+
declare class ConnectionLostError extends BusError {
|
|
3096
|
+
readonly code: "CONNECTION_LOST";
|
|
3097
|
+
/**
|
|
3098
|
+
* Whether the operation is safe to retry after reconnection.
|
|
3099
|
+
*/
|
|
3100
|
+
readonly retryable = true;
|
|
3101
|
+
/**
|
|
3102
|
+
* @param transportName - Name of the transport whose connection was lost
|
|
3103
|
+
*/
|
|
3104
|
+
constructor(transportName: string);
|
|
3105
|
+
}
|
|
3106
|
+
//#endregion
|
|
3069
3107
|
//#region core/bus-core/src/errors/local-subject-error.d.ts
|
|
3070
3108
|
/**
|
|
3071
3109
|
* Thrown when a remote peer attempts to invoke a local-only subject over a
|
|
@@ -3645,9 +3683,9 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
|
|
|
3645
3683
|
description: z.ZodOptional<z.ZodString>;
|
|
3646
3684
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3647
3685
|
exposureMode: z.ZodEnum<{
|
|
3648
|
-
hidden: "hidden";
|
|
3649
3686
|
direct: "direct";
|
|
3650
3687
|
discovery: "discovery";
|
|
3688
|
+
hidden: "hidden";
|
|
3651
3689
|
}>;
|
|
3652
3690
|
enabled: z.ZodBoolean;
|
|
3653
3691
|
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3664,9 +3702,9 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
|
|
|
3664
3702
|
description: z.ZodOptional<z.ZodString>;
|
|
3665
3703
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3666
3704
|
exposureMode: z.ZodEnum<{
|
|
3667
|
-
hidden: "hidden";
|
|
3668
3705
|
direct: "direct";
|
|
3669
3706
|
discovery: "discovery";
|
|
3707
|
+
hidden: "hidden";
|
|
3670
3708
|
}>;
|
|
3671
3709
|
enabled: z.ZodBoolean;
|
|
3672
3710
|
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3992,4 +4030,4 @@ interface ProjectedTelemetryTransportOptions {
|
|
|
3992
4030
|
*/
|
|
3993
4031
|
declare function createProjectedTelemetryTransport(options: ProjectedTelemetryTransportOptions): BusTransport;
|
|
3994
4032
|
//#endregion
|
|
3995
|
-
export { type BroadcastContext, type BroadcastResult, type BusBroadcastMessage, type BusBroadcastResponseMessage, BusError, type BusEventMessage, type BusHeartbeatMessage, BusLifecycle, type BusMessage, type BusMessageObserver, type BusNamespace, type BusReceiveHandler, type BusRequestMessage, type BusResponseMessage, type BusSubscribeMessage, type BusSubscribeSyncCompleteMessage, type BusSubscriptionAckMessage, type BusTransport, type BusTransportError, type BusTransportKeys, type BusTransportRegistry, type BusUnsubscribeMessage, type BusUrlConfig, type BusValidationMode, ChannelAuthError, ChannelClosedError, type ChannelEndpoint, type ChannelEndpointOptions, ChannelOnlyError, type ConnectOptions, type ConnectedPayload, CorrelationTracker, DEFAULT_REQUEST_TIMEOUT_MS, type DefinedSubjectExtension, type DisconnectedPayload, type EventSubjectExtension, type ExtendedSubjectDefinition, type ExtensionNamespace, type ExtensionNamespaceConfig, type ExtensionNamespaceExtensions, type ExtensionNamespaceFromConfig, type IDirectChannel, type IFilteredBus, type IMakaioBus, type InterceptorContext, LOCAL_ORIGIN, LocalSubjectError, MakaioBus, type MakaioBusContext, NO_HANDLER_ERROR_CODE, type NamespaceRegistrationOptions, NoHandlerError, type ObservedBusMessage, type OnOptions, OnceAbortError, type OptionalResult, type ProjectableBusMessage, type ProjectedTelemetryTransportOptions, REMOTE_ORIGIN, RequestError, type RequestSubjectExtension, type SchemaViolationCallback, type SchemaViolationReport, type ScopedBus, type ScopedBusFor, type SubjectExtension, type SubjectTelemetryAttributes, type SubjectTelemetryProjectionInput, type SubjectTelemetryProjector, type SubjectTelemetryProjectorInput, type SubjectTelemetryProjectorRegistry, type SubscriptionEntry, SystemChannelSchemas, TimeoutError, type TransportRegistration, ValidationError, __resetWarnedSubjects, buildSubscribeMessage, buildUnsubscribeMessage, channelSubject, collectorOnlySubject, createBusContext, createBusInstance, createChannelEndpoint, createExtensionNamespace, createFilteredBus, createProjectedTelemetryTransport, createSubjectTelemetryProjectorRegistry, defaultTransports, defineSubjectExtension, deserializeTransportError, extendSubjectImpl as extendSubject, getFullSubjectForSubjectDefinition, getPath, getSubjectFromBusMessage, handleCorrelationResponse, isNoHandlerErrorForSubject, isRequestSchema, localSubject, matchesAnySubscription, matchesFilter, matchesSubscription, mergeFilters, openChannel, parseBusUrl, projectSubjectTelemetryFacts, serializeTransportError, shouldReceiveMessage, trackMessageCorrelation, waitForSubscriptionPropagation };
|
|
4033
|
+
export { type BroadcastContext, type BroadcastResult, type BusBroadcastMessage, type BusBroadcastResponseMessage, BusError, type BusEventMessage, type BusHeartbeatMessage, BusLifecycle, type BusMessage, type BusMessageObserver, type BusNamespace, type BusReceiveHandler, type BusRequestMessage, type BusResponseMessage, type BusSubscribeMessage, type BusSubscribeSyncCompleteMessage, type BusSubscriptionAckMessage, type BusTransport, type BusTransportError, type BusTransportKeys, type BusTransportRegistry, type BusUnsubscribeMessage, type BusUrlConfig, type BusValidationMode, CONNECTION_LOST_ERROR_CODE, ChannelAuthError, ChannelClosedError, type ChannelEndpoint, type ChannelEndpointOptions, ChannelOnlyError, type ConnectOptions, type ConnectedPayload, ConnectionLostError, CorrelationTracker, DEFAULT_REQUEST_TIMEOUT_MS, type DefinedSubjectExtension, type DisconnectedPayload, type EventSubjectExtension, type ExtendedSubjectDefinition, type ExtensionNamespace, type ExtensionNamespaceConfig, type ExtensionNamespaceExtensions, type ExtensionNamespaceFromConfig, type IDirectChannel, type IFilteredBus, type IMakaioBus, type InterceptorContext, LOCAL_ORIGIN, LocalSubjectError, MakaioBus, type MakaioBusContext, NO_HANDLER_ERROR_CODE, type NamespaceRegistrationOptions, NoHandlerError, type ObservedBusMessage, type OnOptions, OnceAbortError, type OptionalResult, type ProjectableBusMessage, type ProjectedTelemetryTransportOptions, REMOTE_ORIGIN, RequestError, type RequestSubjectExtension, type SchemaViolationCallback, type SchemaViolationReport, type ScopedBus, type ScopedBusFor, type SubjectExtension, type SubjectTelemetryAttributes, type SubjectTelemetryProjectionInput, type SubjectTelemetryProjector, type SubjectTelemetryProjectorInput, type SubjectTelemetryProjectorRegistry, type SubscriptionEntry, SystemChannelSchemas, TimeoutError, type TransportRegistration, ValidationError, __resetWarnedSubjects, buildSubscribeMessage, buildUnsubscribeMessage, channelSubject, collectorOnlySubject, createBusContext, createBusInstance, createChannelEndpoint, createExtensionNamespace, createFilteredBus, createProjectedTelemetryTransport, createSubjectTelemetryProjectorRegistry, defaultTransports, defineSubjectExtension, deserializeTransportError, extendSubjectImpl as extendSubject, getFullSubjectForSubjectDefinition, getPath, getSubjectFromBusMessage, handleCorrelationResponse, isNoHandlerErrorForSubject, isRequestSchema, localSubject, matchesAnySubscription, matchesFilter, matchesSubscription, mergeFilters, openChannel, parseBusUrl, projectSubjectTelemetryFacts, serializeTransportError, shouldReceiveMessage, trackMessageCorrelation, waitForSubscriptionPropagation };
|