@makaio/framework 1.0.0-dev-1781729394463 → 1.0.0-dev-1781766035621
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/{adapter-B5I7Wp4y.mjs → adapter-BmdC3QwV.mjs} +1 -1
- package/dist/adapters/index.d.mts +1 -1
- package/dist/adapters/stream-session/index.d.mts +2 -0
- package/dist/await-trigger-DwVldnMt.mjs +1 -0
- package/dist/bus/index.d.mts +20 -20
- package/dist/bus/index.mjs +1 -1
- package/dist/{canonical-model-BWGkgf3v.mjs → canonical-model-BM5WAnQW.mjs} +1 -1
- package/dist/compression-CXEHx0rS.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +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/extension/index.d.mts +2 -2
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +175 -170
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/{definition-b9jyJqPD.d.mts → definition-D_3U4OLJ.d.mts} +1 -1
- package/dist/{index-BEzRpWsS.d.mts → index-61LNzR4E.d.mts} +394 -394
- package/dist/{index-kwq54nx4.d.mts → index-B08YYzYZ.d.mts} +24 -24
- package/dist/{index-CmHdpW0E.d.mts → index-BN95duxC.d.mts} +8 -8
- package/dist/{index-DKNmj2sa.d.mts → index-B_FtZ3Gn.d.mts} +15 -15
- package/dist/{index-DWKCb-eJ.d.mts → index-BwZpSUql.d.mts} +28 -28
- package/dist/{index-DMz-2ACU.d.mts → index-ByDySw3V.d.mts} +100 -100
- package/dist/{index-Dw7ErgWU.d.mts → index-CewENhZO.d.mts} +8 -8
- package/dist/{index-CZJc-V9L.d.mts → index-Ch8A757m.d.mts} +17 -17
- package/dist/{index-mU2lnU7O.d.mts → index-CqCe7Phc.d.mts} +6 -6
- package/dist/{index-aciWhUWw.d.mts → index-DCDZrmkB.d.mts} +342 -342
- package/dist/{index-D1KPCXBN.d.mts → index-UKndP4iV.d.mts} +1 -1
- package/dist/{index-CW_LbXdg.d.mts → index-Y2r0Zvcm.d.mts} +8 -8
- package/dist/{index-Cjo24O5I.d.mts → index-YoTbsavl.d.mts} +39 -39
- package/dist/{index-BWIkf5oJ.d.mts → index-mpYmdMt9.d.mts} +9 -9
- package/dist/{index-DTBQOCar.d.mts → index-xyXYG5WO.d.mts} +16 -16
- 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/loop-gate-handlers-BLoGCWMQ.mjs +1 -0
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/{namespace-KMxsPJwm.d.mts → namespace-BeMGmLrp.d.mts} +9 -9
- package/dist/{namespace-65uwTpbg.d.mts → namespace-Cir7d-vM.d.mts} +6 -6
- package/dist/{namespace-COEUMuHL.d.mts → namespace-Ct8ipis5.d.mts} +154 -154
- package/dist/{namespace-6sIu5nBI2.d.mts → namespace-D8P8Sxce2.d.mts} +2 -2
- package/dist/{namespace-DYJZAGzR.d.mts → namespace-Da5Ip_ru.d.mts} +58 -58
- package/dist/{package-rdrXr17q.mjs → package-B1AXe-oz.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-B2bO5Yui.d.mts → schema-TNNx-dYQ.d.mts} +3 -3
- package/dist/{schemas-D4zaFE2p.d.mts → schemas-C_gGGevw.d.mts} +6 -6
- package/dist/{schemas-CDBn9MTz.d.mts → schemas-CarFhw0P.d.mts} +154 -154
- package/dist/{schemas-ByssHRGU2.d.mts → schemas-DF_RgKLw2.d.mts} +11 -11
- package/dist/{schemas-DMMWmWjq.d.mts → schemas-DXjyGVpx.d.mts} +4 -4
- package/dist/{schemas-BWasvfw2.mjs → schemas-yNBjlOKi.mjs} +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/context-rules/index.d.mts +3 -3
- package/dist/services/execution-target/index.d.mts +3 -3
- 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/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/harness/index.d.mts +6 -6
- package/dist/services/index.d.mts +110 -110
- package/dist/services/index.mjs +1 -1
- package/dist/services/session/index.d.mts +4 -4
- 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 +8 -8
- 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/services/tools/index.mjs +1 -1
- package/dist/{session-Bey-bzcX.mjs → session-DLTZOum3.mjs} +1 -1
- package/dist/{session-lineage-Cht4jbvV.d.mts → session-lineage-5-wRBzuC.d.mts} +1 -1
- package/dist/tools/index.d.mts +8 -0
- package/dist/{tools-uAgIrqan.mjs → tools-DFOsOboy.mjs} +1 -1
- package/dist/{transition-Coowd2dA.d.mts → transition-ByWf06n-.d.mts} +1 -1
- package/dist/{types-Cagp7JXb.d.mts → types-D2Q9qI-a.d.mts} +282 -282
- package/dist/workflow-engine/index.d.mts +32 -32
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-worker-CojIlB6k.mjs → workflow-worker-BIpYi6o7.mjs} +1 -1
- package/package.json +5 -1
- package/dist/await-trigger-DcMVmNW5.mjs +0 -1
- package/dist/compression-DMoeVgKx.mjs +0 -1
- package/dist/loop-gate-handlers-CwU5zAGs.mjs +0 -1
package/dist/.makaio-build.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"fingerprint": "
|
|
4
|
-
"builtAt": "2026-06-
|
|
3
|
+
"fingerprint": "45d65baa1e94159ea8013097c5b6213b53b3ed974c0e7c4ac336e55d6801fcf8",
|
|
4
|
+
"builtAt": "2026-06-18T07:01:40.805Z"
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,o as u,p as d,s as f,st as p,t as m,u as h,v as g}from"./schemas-
|
|
1
|
+
import{_ as e,a as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,o as u,p as d,s as f,st as p,t as m,u as h,v as g}from"./schemas-yNBjlOKi.mjs";import"./compression-CXEHx0rS.mjs";import"./provider-context-DjSUpHSM.mjs";import"./contracts/adapter/schemas/session-lineage.mjs";import{createBusNamespace as _}from"@makaio/framework/core";const v={getCapabilities:p,startAgent:g,infer:e,listAgents:a,getAgent:o,stopAgent:l,rehydrateAgent:d,getConfigSchema:i,"agent.created":r,"session.created":h,"session.discovered":m,"session.usage":c,"session.closed":n,log:f,error:u,initialized:t,quota:s},y=_(`adapter`,v),b=y.subjects;export{b as n,v as r,y as t};
|
|
@@ -4001,8 +4001,8 @@ interface TurnTrackerSerializedState {
|
|
|
4001
4001
|
declare const TurnTrackerSerializedStateSchema: z.ZodDefault<z.ZodObject<{
|
|
4002
4002
|
sessions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4003
4003
|
state: z.ZodEnum<{
|
|
4004
|
-
active: "active";
|
|
4005
4004
|
idle: "idle";
|
|
4005
|
+
active: "active";
|
|
4006
4006
|
}>;
|
|
4007
4007
|
currentTurnId: z.ZodOptional<z.ZodString>;
|
|
4008
4008
|
}, z.core.$strip>>;
|
|
@@ -447,6 +447,8 @@ interface StreamSessionConfig<TBus extends ScopedBus<string> = ScopedBus<string>
|
|
|
447
447
|
agentId: string;
|
|
448
448
|
/** Makaio session ID for tool execution context. Stable across turns. */
|
|
449
449
|
sessionId?: string;
|
|
450
|
+
/** Provider-assigned session identifier forwarded to tool execution context. */
|
|
451
|
+
adapterSessionId?: string;
|
|
450
452
|
/** Working directory for tool execution context. */
|
|
451
453
|
cwd: string;
|
|
452
454
|
/** Initial model identifier; mutable per turn via `updateModel()`. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{pathToFileURL as e}from"node:url";import{mkdir as t,rm as n,writeFile as r}from"node:fs/promises";import{basename as i,join as a}from"node:path";import{randomBytes as o}from"node:crypto";import{WorkflowDefinitionSchema as s,WorkflowError as c,WorkflowErrorCode as l}from"@makaio/framework/contracts";import{tmpdir as u}from"node:os";function d(e,t,n=[]){return{type:`makaio.workflow-worker.ready`,executionId:e,cancelSubject:t,adapters:n}}function f(e){if(typeof e!=`object`||!e)return!1;let t=e;return t.type===`makaio.workflow-worker.ready`&&typeof t.executionId==`string`&&typeof t.cancelSubject==`string`&&Array.isArray(t.adapters)&&t.adapters.every(e=>typeof e==`string`)}function p(e){if(typeof e!=`object`||!e)throw new c(l.NOT_EXECUTABLE,`Invalid workflow module default export: expected an object with 'definition' and 'runtimeHandlers', got ${typeof e}.`);let t=e;if(!(t.runtimeHandlers instanceof Map))throw new c(l.NOT_EXECUTABLE,`Invalid workflow module default export: 'runtimeHandlers' must be a Map instance.`);let n=s.safeParse(t.definition);if(!n.success)throw new c(l.NOT_EXECUTABLE,`Invalid workflow module default export: 'definition' must satisfy WorkflowDefinitionSchema. `+n.error.message);let r=m(t.zodSchemas)?t.zodSchemas:void 0,i=t.runtimeLoopGates;if(i!==void 0&&!(i instanceof Map))throw new c(l.NOT_EXECUTABLE,`Invalid workflow module default export: 'runtimeLoopGates' must be a Map instance when provided.`);return{definition:n.data,runtimeHandlers:t.runtimeHandlers,...r===void 0?{}:{zodSchemas:r},...i===void 0?{}:{runtimeLoopGates:i}}}function m(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`gates`in e}async function h(e,s){let c=i(e);if(!c||c===`.`||c===`..`)throw Error(`Invalid workflow source filename: ${e}`);let l=a(u(),`makaio-wf-${o(6).toString(`hex`)}`);await t(l,{recursive:!0});let d=a(l,c.endsWith(`.mjs`)?c:`${c}.mjs`);try{await r(d,s,`utf8`)}catch(e){throw await n(l,{recursive:!0,force:!0}).catch(()=>{}),e}return{tempDir:l,tempPath:d}}function g(e){return typeof e==`object`&&e&&Array.isArray(e.workflows)?e.workflows.map(p):[p(e)]}async function _(t){if(t.kind===`path`)return g((await import(e(t.path).href)).default);let{tempDir:r,tempPath:i}=await h(t.filename,t.source);try{return g((await import(e(i).href)).default)}finally{await n(r,{recursive:!0,force:!0})}}async function v(e){if(e.kind===`definition`)throw new c(l.NOT_EXECUTABLE,`Definition-sourced workers are handled by the workflow executor, not the file loader. Received source: ${JSON.stringify(e)}`);let t=await _(e);if(t.length!==1)throw new c(l.NOT_EXECUTABLE,`loadWorkflowModule expects a single workflow export, but the module exported ${String(t.length)} workflows. Use loadWorkflowModules for bundle exports.`);return t[0]}async function y(e){if(e.source.kind===`definition`){if(e.definition===void 0)throw Error(`Definition-sourced worker config for workflowId "${e.source.workflowId}" is missing the required 'definition' field. Ensure the executor populates WorkflowWorkerConfig.definition before dispatching.`);return{definition:e.definition,runtimeHandlers:new Map}}let t=await v(e.source);return b(e,t),e.definition===void 0?t:{...t,definition:e.definition}}function b(e,t){if(e.workflowId!==e.executionId&&t.definition.id!==e.workflowId)throw new c(l.SOURCE_MISMATCH,`Source-backed workflow for logical workflow '${e.workflowId}' loaded definition '${t.definition.id}'.`)}function x(e){let t=e.indexOf(`.`);if(t<=0||t===e.length-1)throw Error(`Invalid trigger subject: ${e}`);return{subject:e.slice(t+1),$meta:{namespace:e.slice(0,t),isRequest:!1,payload:{},local:!1,channel:!1}}}function S(e,t,n){return new Promise((r,i)=>{if(n.aborted){i(n.reason??Error(`Await-trigger aborted`));return}let a=[];function o(){for(let e of a)e();a.length=0}let s=()=>{o(),i(n.reason??Error(`Await-trigger aborted`))};n.addEventListener(`abort`,s,{once:!0}),a.push(()=>n.removeEventListener(`abort`,s));try{for(let n of t){let t=x(n.subject),i=e.on(t,e=>{o(),r(e.payload)},n.filter?{filter:n.filter}:void 0);a.push(i)}}catch(e){o(),i(e)}})}async function C(e,t,n,r){let i=(t.definition.triggers??[]).filter(e=>e.type===`bus-event`);if(Object.keys(e.triggerPayload).length!==0||i.length===0)return e;let a=await S(n,i,r);return{...e,triggerPayload:a}}export{d as a,_ as i,y as n,f as o,v as r,C as t};
|
package/dist/bus/index.d.mts
CHANGED
|
@@ -3598,25 +3598,6 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
|
|
|
3598
3598
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3599
3599
|
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
3600
3600
|
sessionId: z.ZodString;
|
|
3601
|
-
directTools: z.ZodArray<z.ZodObject<{
|
|
3602
|
-
fullName: z.ZodString;
|
|
3603
|
-
originalName: z.ZodString;
|
|
3604
|
-
serverName: z.ZodString;
|
|
3605
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3606
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3607
|
-
exposureMode: z.ZodEnum<{
|
|
3608
|
-
hidden: "hidden";
|
|
3609
|
-
discovery: "discovery";
|
|
3610
|
-
direct: "direct";
|
|
3611
|
-
}>;
|
|
3612
|
-
enabled: z.ZodBoolean;
|
|
3613
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
3614
|
-
discovery: "discovery";
|
|
3615
|
-
toolset: "toolset";
|
|
3616
|
-
}>>;
|
|
3617
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
3618
|
-
exposed: z.ZodBoolean;
|
|
3619
|
-
}, z.core.$strip>>;
|
|
3620
3601
|
servers: z.ZodArray<z.ZodObject<{
|
|
3621
3602
|
name: z.ZodString;
|
|
3622
3603
|
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -3653,9 +3634,28 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
|
|
|
3653
3634
|
type: z.ZodLiteral<"http">;
|
|
3654
3635
|
}, z.core.$strip>], "type">;
|
|
3655
3636
|
exposureMode: z.ZodEnum<{
|
|
3637
|
+
direct: "direct";
|
|
3656
3638
|
discovery: "discovery";
|
|
3639
|
+
}>;
|
|
3640
|
+
}, z.core.$strip>>;
|
|
3641
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
3642
|
+
fullName: z.ZodString;
|
|
3643
|
+
originalName: z.ZodString;
|
|
3644
|
+
serverName: z.ZodString;
|
|
3645
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3646
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3647
|
+
exposureMode: z.ZodEnum<{
|
|
3648
|
+
hidden: "hidden";
|
|
3657
3649
|
direct: "direct";
|
|
3650
|
+
discovery: "discovery";
|
|
3658
3651
|
}>;
|
|
3652
|
+
enabled: z.ZodBoolean;
|
|
3653
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
3654
|
+
discovery: "discovery";
|
|
3655
|
+
toolset: "toolset";
|
|
3656
|
+
}>>;
|
|
3657
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
3658
|
+
exposed: z.ZodBoolean;
|
|
3659
3659
|
}, z.core.$strip>>;
|
|
3660
3660
|
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
3661
3661
|
fullName: z.ZodString;
|
|
@@ -3665,8 +3665,8 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
|
|
|
3665
3665
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3666
3666
|
exposureMode: z.ZodEnum<{
|
|
3667
3667
|
hidden: "hidden";
|
|
3668
|
-
discovery: "discovery";
|
|
3669
3668
|
direct: "direct";
|
|
3669
|
+
discovery: "discovery";
|
|
3670
3670
|
}>;
|
|
3671
3671
|
enabled: z.ZodBoolean;
|
|
3672
3672
|
enabledBy: z.ZodOptional<z.ZodEnum<{
|