@makaio/framework 1.0.0-dev-1781023871421 → 1.0.0-dev-1781081952714
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-DT5NOtFi.mjs → account-identity-CgzOqnVm.mjs} +1 -1
- package/dist/{adapter-C1eI-fGV.mjs → adapter-Dt2FDMs4.mjs} +1 -1
- package/dist/adapters/acp-client/index.d.mts +4 -4
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +24 -23
- package/dist/adapters/index.mjs +6 -13
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/ajv-BJsabpMb.mjs +8 -0
- package/dist/await-trigger-DREnXCEJ.mjs +1 -0
- package/dist/bus/index.d.mts +19 -19
- package/dist/{client-bx74gm4R.mjs → client-BBJf1mVA.mjs} +1 -1
- 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/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +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/facet/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +425 -425
- 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/model-registry/index.d.mts +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- 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/skill/index.d.mts +1 -1
- package/dist/contracts/skill/index.mjs +1 -1
- package/dist/contracts/telemetry/index.d.mts +1 -1
- package/dist/contracts/telemetry/index.mjs +1 -1
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/toast/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/variant/index.mjs +1 -1
- package/dist/create-static-mount-CFGo91CI.mjs +1 -0
- package/dist/cross-spawn-BL6EvJBv.mjs +1 -0
- package/dist/{cursor-storage-CtVJ3JzB.mjs → cursor-storage-C_WTAESV.mjs} +1 -1
- package/dist/{definition-CrgHIpTK.d.mts → definition-DqJOg6Lv.d.mts} +1 -1
- package/dist/descriptor-to-package-CY8oc2gl.mjs +1 -0
- package/dist/detached-extension-handle-CxEBQnSa.mjs +1 -0
- package/dist/drizzle/0000_charming_prowler.sql +443 -0
- package/dist/drizzle/0001_known_stephen_strange.sql +25 -0
- package/dist/drizzle/0002_woozy_gladiator.sql +1 -0
- package/dist/drizzle/0003_overjoyed_adam_destine.sql +1 -0
- package/dist/drizzle/0004_solid_goliath.sql +1 -0
- package/dist/drizzle/0005_round_calypso.sql +51 -0
- package/dist/drizzle/0006_free_tiger_shark.sql +4 -0
- package/dist/drizzle/0007_sparkling_terror.sql +2 -0
- package/dist/drizzle/0008_petite_deathstrike.sql +1 -0
- package/dist/drizzle/0009_lethal_malcolm_colcord.sql +6 -0
- package/dist/drizzle/0010_grey_chronomancer.sql +1 -0
- package/dist/drizzle/0011_solid_nomad.sql +1 -0
- package/dist/drizzle/meta/0000_snapshot.json +2813 -0
- package/dist/drizzle/meta/0001_snapshot.json +2820 -0
- package/dist/drizzle/meta/0002_snapshot.json +2827 -0
- package/dist/drizzle/meta/0003_snapshot.json +2834 -0
- package/dist/drizzle/meta/0004_snapshot.json +2842 -0
- package/dist/drizzle/meta/0005_snapshot.json +2849 -0
- package/dist/drizzle/meta/0006_snapshot.json +2865 -0
- package/dist/drizzle/meta/0007_snapshot.json +2879 -0
- package/dist/drizzle/meta/0008_snapshot.json +2886 -0
- package/dist/drizzle/meta/0009_snapshot.json +2901 -0
- package/dist/drizzle/meta/0010_snapshot.json +2908 -0
- package/dist/drizzle/meta/0011_snapshot.json +2915 -0
- package/dist/drizzle/meta/_journal.json +90 -0
- package/dist/esm-BdLRFEUy.mjs +3 -0
- package/dist/expression/index.d.mts +120 -0
- package/dist/expression/index.mjs +1431 -0
- package/dist/extension--5Q190u_.mjs +1 -0
- package/dist/{extension-CpIUgBKI.mjs → extension-DFIZ3FCJ.mjs} +1 -1
- package/dist/extension-discovery-CkV_VRdJ.d.mts +163 -0
- package/dist/fast-uri-BF2Xuiop.mjs +1 -0
- package/dist/{filesystem-service-B8rhBRgB.mjs → filesystem-service-DH9zlxyd.mjs} +1 -1
- package/dist/git/index.mjs +17 -17
- package/dist/globby-4SrlyIlj.mjs +1 -0
- package/dist/{handlers-CkTsQLra.mjs → handlers-Bev7-xjL.mjs} +1 -1
- package/dist/{index-472sOmsW.d.mts → index-BAhJKQLX.d.mts} +7 -7
- package/dist/{index-D9MwJ2Q8.d.mts → index-BCKRUuI2.d.mts} +2 -2
- package/dist/{index-mNec7V-9.d.mts → index-BYkOUd0x.d.mts} +12 -12
- package/dist/{index-8SZkg7s6.d.mts → index-Bibt5jAX.d.mts} +8 -8
- package/dist/{index-DBw-89vC2.d.mts → index-BmV60tMf.d.mts} +18 -18
- package/dist/{index-B_zQC98V.d.mts → index-BpniJgxu.d.mts} +4 -4
- package/dist/{index-soFznFCy2.d.mts → index-Bw_zL7Rs.d.mts} +1 -1
- package/dist/{index-CelJCBjk.d.mts → index-C3zfJg6s.d.mts} +13 -13
- package/dist/{index-Caig6TeF.d.mts → index-CNOTkyGw.d.mts} +379 -303
- package/dist/{index-Bh_Ne7LF.d.mts → index-CwKzQuIX.d.mts} +28 -28
- package/dist/{index-B3PK4FIn.d.mts → index-D6bw4qJp.d.mts} +112 -112
- package/dist/{index-Cm0dUkWL.d.mts → index-DETxgKS2.d.mts} +24 -24
- package/dist/{index-D90OmGmV.d.mts → index-Db0uJ_Cg2.d.mts} +3 -3
- package/dist/{index-Bvb2mMH6.d.mts → index-IekAD8Gp.d.mts} +44 -44
- package/dist/index-YDfOv0GT.d.mts +1133 -0
- package/dist/{index-L4GjJDKb.d.mts → index-fVgKVvta.d.mts} +3 -3
- package/dist/{index-DUaw0Dw8.d.mts → index-jlQ4IhR5.d.mts} +497 -497
- package/dist/jsonl-transport-BxNXizIm.mjs +3 -0
- package/dist/kernel/cli/index.d.mts +2 -95
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/register.d.mts +2 -0
- package/dist/kernel/cli/register.mjs +1 -0
- package/dist/kernel/cli/schemas.mjs +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/extension/index.mjs +1 -1
- package/dist/kernel/index.d.mts +5 -5
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/namespace/index.mjs +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/providers/index.mjs +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/kernel/window/index.mjs +1 -1
- package/dist/lib-B9kVK_1_.mjs +4 -0
- package/dist/lib-DPruLs5D.mjs +155 -0
- package/dist/lib-aRogYLqg.mjs +5 -0
- package/dist/load-extensions-C-TqCwzL.mjs +1 -0
- package/dist/load-extensions-D9nbDIiW.d.mts +117 -0
- package/dist/mcp-http-server/index.d.mts +561 -0
- package/dist/mcp-http-server/index.mjs +4 -0
- package/dist/{namespace-EQniz-Aw.d.mts → namespace-B60mn8J-2.d.mts} +4 -4
- package/dist/{namespace-CxhsoFUP.d.mts → namespace-BBVtD1gu.d.mts} +14 -14
- package/dist/namespace-BXqetkc3.mjs +1 -0
- package/dist/{namespace-Dr8K0MCp.d.mts → namespace-BlS_i9KT.d.mts} +17 -17
- package/dist/{namespace-5QQqbF-B.d.mts → namespace-ByyuIFpL.d.mts} +91 -91
- package/dist/{namespace-DLovh2Ws.d.mts → namespace-CHMszppN.d.mts} +6 -6
- package/dist/{namespace-BM7Djng9.d.mts → namespace-CqUGzG53.d.mts} +2 -2
- package/dist/{namespace-DD8Oiqo7.d.mts → namespace-D1Iw_d1P.d.mts} +20 -20
- package/dist/{namespace-DgqkaOVu.d.mts → namespace-DBKWNrk7.d.mts} +22 -22
- package/dist/{namespace-CaaNnKcR.d.mts → namespace-Ds6HkJEU.d.mts} +138 -138
- package/dist/namespace-DzVf1hVH.d.mts +96 -0
- package/dist/{namespace-TyiTsLFv.d.mts → namespace-aBIAWxY3.d.mts} +46 -46
- package/dist/{namespace-DuXK5AYN.mjs → namespace-h0HIuqx0.mjs} +1 -1
- package/dist/{native-session-supervisor-B1TnaPUF.mjs → native-session-supervisor-DeKpxhWO.mjs} +1 -1
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/index.mjs +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.mjs +1 -1
- package/dist/{orchestrator-shared-CIDiFJMD.mjs → orchestrator-shared-FnWrPS09.mjs} +1 -1
- package/dist/out-CvZYgczi.mjs +41 -0
- package/dist/package-1DS4bXg5.mjs +1 -0
- package/dist/package-BSnp1zOR.d.mts +372 -0
- package/dist/package.json +5 -0
- package/dist/primitive-runtime-DcYYWy_6.mjs +8 -0
- package/dist/{profile-6ynCD5k3.mjs → profile-D39-Zy_W.mjs} +1 -1
- package/dist/{provider-context-CK6B4X_8.mjs → provider-context-lfG0BpqX.mjs} +1 -1
- package/dist/quick-lru-B9nWXbXI.mjs +1 -0
- package/dist/rules/index.d.mts +27 -0
- package/dist/rules/index.mjs +1 -0
- package/dist/rules/schemas.d.mts +2 -0
- package/dist/rules/schemas.mjs +1 -0
- package/dist/runtime-bun/index.d.mts +385 -0
- package/dist/runtime-bun/index.mjs +1 -0
- package/dist/runtime-node/bus/runtime/namespace.d.mts +61 -0
- package/dist/runtime-node/bus/runtime/namespace.mjs +1 -0
- package/dist/runtime-node/bus/runtime/schemas.d.mts +54 -0
- package/dist/runtime-node/bus/runtime/schemas.mjs +1 -0
- package/dist/runtime-node/extension-discovery.d.mts +2 -0
- package/dist/runtime-node/extension-discovery.mjs +1 -0
- package/dist/runtime-node/extension-validation.d.mts +2 -0
- package/dist/runtime-node/extension-validation.mjs +1 -0
- package/dist/runtime-node/index.d.mts +745 -0
- package/dist/runtime-node/index.mjs +148 -0
- package/dist/runtime-node/makaio-config.d.mts +153 -0
- package/dist/runtime-node/makaio-config.mjs +1 -0
- package/dist/runtime-node/workflow-worker/index.d.mts +2 -0
- package/dist/runtime-node/workflow-worker/index.mjs +1 -0
- package/dist/runtime-node/workflow-worker/worker-entry.d.mts +39 -0
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -0
- package/dist/{schema-M5YTvSAG.d.mts → schema-CDL_pyyM.d.mts} +4 -4
- package/dist/{schema-e0wU_lcV.mjs → schema-DCJyzRHe.mjs} +1 -1
- package/dist/schema-introspection-CuRZPYEc.mjs +1 -0
- package/dist/{schemas-C46QfKzv.d.mts → schemas-B5ToLwIs.d.mts} +14 -14
- package/dist/schemas-C792eVAZ.d.mts +171 -0
- package/dist/{schemas-CaLhkkLn.mjs → schemas-CSUwpaNm.mjs} +1 -1
- package/dist/{schemas-DVF1A4DF.d.mts → schemas-Chyj6HuZ.d.mts} +9 -9
- package/dist/{schemas-DATniTHb.d.mts → schemas-DZUaRcYl.d.mts} +14 -14
- package/dist/{schemas-DiYVzG6e.d.mts → schemas-Exixg77V2.d.mts} +16 -16
- package/dist/{schemas-ClOOT1W6.d.mts → schemas-lqvZ6UpK.d.mts} +3 -3
- package/dist/{schemas-j7ivZ2HI.d.mts → schemas-on3_N5HP.d.mts} +138 -138
- package/dist/{schemas-wg_6PAdV.d.mts → schemas-t1VR6_b_.d.mts} +4 -4
- package/dist/semver-DhHJv6Dt.mjs +1 -0
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/index.mjs +1 -1
- 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/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/adapter-subsystem/namespace.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/capability/index.d.mts +1 -1
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/codebase/index.d.mts +2 -2
- package/dist/services/codebase/namespace.d.mts +1 -1
- package/dist/services/codebase/schemas.d.mts +1 -1
- package/dist/services/compression/index.d.mts +2 -2
- package/dist/services/compression/namespace.d.mts +1 -1
- package/dist/services/compression/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +7 -7
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/filesystem/index.mjs +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 +6 -6
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.d.mts +6 -6
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.d.mts +12 -12
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +159 -158
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +3 -3
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.d.mts +6 -6
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.d.mts +3 -3
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/model-registry/index.d.mts +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/provider-runtime/index.mjs +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +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/session/testing/index.mjs +1 -1
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.d.mts +3 -3
- package/dist/services/settings/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +10 -10
- package/dist/services/settings/namespace.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/settings/storage/index.d.mts +3 -3
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/subagent/index.d.mts +1 -1
- package/dist/services/subagent/index.mjs +1 -1
- 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/tool-approval/index.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- package/dist/services/tray-menu/index.mjs +1 -1
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/services/turn/schemas.d.mts +10 -10
- package/dist/{session-BoldSdNZ2.mjs → session-BnfsJoZi.mjs} +1 -1
- package/dist/{session-DuVOYctZ.mjs → session-C1Cami7U.mjs} +1 -1
- package/dist/{session-lineage-CRsc9g1x.d.mts → session-lineage-CKg6mErA.d.mts} +1 -1
- package/dist/{skill-CQO4mDqK.mjs → skill-BNQnWVIG.mjs} +1 -1
- package/dist/src-Dvp41Cg2.mjs +1 -0
- package/dist/src-Z3vAZJfw.mjs +21 -0
- package/dist/storage/drizzle/client.d.mts +1 -1
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/index.d.mts +1 -1
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/storage-namespace-BXO3lDVy.mjs +1 -0
- package/dist/{storage-namespace-BXkoh5Sy.d.mts → storage-namespace-BXmMUd7a.d.mts} +20 -20
- package/dist/style.css +540 -540
- package/dist/supports-color-fVsgozsi.mjs +1 -0
- package/dist/tool-approval-service-BgNcJvKx.mjs +1 -0
- package/dist/tools-DC4KrqI1.mjs +1 -0
- package/dist/{types-CCdqjeuH.d.mts → types-B0BtvVAq.d.mts} +2 -81
- package/dist/{types-BCMUtBj1.d.mts → types-CmMesAgR.d.mts} +1 -1
- package/dist/{types-DZHvOc_Q.d.mts → types-D0fPFh-D.d.mts} +1 -1
- package/dist/{types-Dy3YTcTF.d.mts → types-DiGqpZOD.d.mts} +288 -288
- package/dist/ui-components/index.d.mts +1 -1
- package/dist/ui-components/index.mjs +2 -2
- package/dist/ui-hooks/index.d.mts +6 -6
- package/dist/ui-kernel/index.d.mts +7 -7
- package/dist/ui-kernel/pages/namespace.d.mts +8 -8
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/ui-views/index.mjs +2 -2
- package/dist/version-B4NO_fID.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +6568 -0
- package/dist/workflow-engine/index.mjs +1 -0
- package/dist/workflow-engine/package.d.mts +2 -0
- package/dist/workflow-engine/package.mjs +1 -0
- package/dist/workflow-engine/workflow-orchestrator.d.mts +61 -0
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -0
- package/dist/workflow-worker-DvP753UN.mjs +1 -0
- package/package.json +65 -1
- package/dist/extension-C-4BHMRI.mjs +0 -1
- package/dist/globby-rtWVaFHv.mjs +0 -41
- package/dist/schema-introspection-Dn1jWQs1.mjs +0 -1
- package/dist/schemas-CVvwIfG4.mjs +0 -1
- package/dist/storage-namespace-DWsYLAXa.mjs +0 -1
- package/dist/tool-approval-service-BvZWhYZp.mjs +0 -1
- package/dist/tools-D-luYcDw.mjs +0 -1431
- package/dist/version-BeT3ASEe.mjs +0 -1
- /package/dist/{base-orchestrator-wyumsn3b.d.mts → base-orchestrator-M5mAB5-w.d.mts} +0 -0
- /package/dist/{capability-service-CJbmhfv9.mjs → capability-service-jjrFLM6r.mjs} +0 -0
- /package/dist/{cleanEnvForAdapter-KkYzQa1f.mjs → cleanEnvForAdapter-BlpmyXYk.mjs} +0 -0
- /package/dist/{clients-namespace-GmSJpBUV.d.mts → clients-namespace-SFk7OTop.d.mts} +0 -0
- /package/dist/{config-namespace-CPY9YsR8.d.mts → config-namespace-BzAvE2nY.d.mts} +0 -0
- /package/dist/{config-namespace-ncYg2ct_.mjs → config-namespace-DydHz9so.mjs} +0 -0
- /package/dist/{definition-BLCdXGzh.d.mts → definition-BSghHJpQ.d.mts} +0 -0
- /package/dist/{definition-pkJ6szUl.d.mts → definition-q6iLw11H.d.mts} +0 -0
- /package/dist/{drizzle-Eq8W1EbD.mjs → drizzle-DpjZFY_j.mjs} +0 -0
- /package/dist/{event-Ca2yUf5i.mjs → event-BEllCn16.mjs} +0 -0
- /package/dist/{execution-target-CRPTfZlc.mjs → execution-target-CQGYaaM2.mjs} +0 -0
- /package/dist/{extension-namespace-cMh_mMiL.mjs → extension-namespace-BBgYOttA.mjs} +0 -0
- /package/dist/{facet-BuwhrThl.mjs → facet-DMrryX_0.mjs} +0 -0
- /package/dist/{filesystem-service-p_iJVHd4.d.mts → filesystem-service-Ddngll0j.d.mts} +0 -0
- /package/dist/{harness-BRCMcvQN.mjs → harness-B8E_wRwa.mjs} +0 -0
- /package/dist/{host-Br9VuOyr.mjs → host-DbMiI5wQ.mjs} +0 -0
- /package/dist/{identity-Cz2IeEtm.mjs → identity-Bmx-8fPa.mjs} +0 -0
- /package/dist/{index-U-A8eyGT.d.mts → index-9IDJUJ4X.d.mts} +0 -0
- /package/dist/{index-CGmcS0Ma.d.mts → index-BBvcP-P0.d.mts} +0 -0
- /package/dist/{index-BGfWS6GE.d.mts → index-BKKNWqkP2.d.mts} +0 -0
- /package/dist/{index-DKia0MX1.d.mts → index-BMpRB6iE.d.mts} +0 -0
- /package/dist/{index-CHQ1SqT0.d.mts → index-BbCjtc3h.d.mts} +0 -0
- /package/dist/{index-BFg9BUpx.d.mts → index-BheaEhyI.d.mts} +0 -0
- /package/dist/{index-Cs0kZXIz2.d.mts → index-BnQSPC6c.d.mts} +0 -0
- /package/dist/{index-CCGVh9BF2.d.mts → index-BpXX9WZJ.d.mts} +0 -0
- /package/dist/{index-DMKnON5s.d.mts → index-Bsp0O_sI.d.mts} +0 -0
- /package/dist/{index-DANINzMu.d.mts → index-Buo9H8RK.d.mts} +0 -0
- /package/dist/{index-CLpjm52M.d.mts → index-BxFA1XcP.d.mts} +0 -0
- /package/dist/{index-ChunCFu4.d.mts → index-C33Tq1ei2.d.mts} +0 -0
- /package/dist/{index-DGBu6bHi2.d.mts → index-C6BhKRnH.d.mts} +0 -0
- /package/dist/{index-eemAKwsB.d.mts → index-CDU_s69P.d.mts} +0 -0
- /package/dist/{index-DKC62dY5.d.mts → index-CGJjA-hR2.d.mts} +0 -0
- /package/dist/{index-CokQYGVP.d.mts → index-Clut1ljB.d.mts} +0 -0
- /package/dist/{index-BVgfS-AJ.d.mts → index-Cz9JMjZK.d.mts} +0 -0
- /package/dist/{index-vtXJuwrz.d.mts → index-D0SUjZmU.d.mts} +0 -0
- /package/dist/{index-x_lVDp_J.d.mts → index-D6Iyvz9T.d.mts} +0 -0
- /package/dist/{index-D5d5HeWI2.d.mts → index-DOfq0qqv.d.mts} +0 -0
- /package/dist/{index-De3kPhlN.d.mts → index-DSV1aFgK.d.mts} +0 -0
- /package/dist/{index-B80L4YqA.d.mts → index-Dsq2zKvu.d.mts} +0 -0
- /package/dist/{materialization-CuUBu4XI.mjs → materialization-3QUnQLbC.mjs} +0 -0
- /package/dist/{model-registry-Scn_MC2d.mjs → model-registry-B0AIdj7O.mjs} +0 -0
- /package/dist/{model-registry-CfXytvzx.mjs → model-registry-j-rCKcik.mjs} +0 -0
- /package/dist/{namespace-CFLAmQfh.mjs → namespace-BbjCyZC9.mjs} +0 -0
- /package/dist/{namespace-BwzZJqTV.mjs → namespace-BgPoC46Q.mjs} +0 -0
- /package/dist/{namespace-Yna5-Pws.mjs → namespace-CDiM5Bcr.mjs} +0 -0
- /package/dist/{namespace-BoD94mrN.mjs → namespace-CUOGcGPG.mjs} +0 -0
- /package/dist/{namespace-LViZ-EQk.mjs → namespace-D6X67cUk.mjs} +0 -0
- /package/dist/{namespace-DkRgbZYn.mjs → namespace-ENv7H7Na.mjs} +0 -0
- /package/dist/{namespace-xcmbQlxh.mjs → namespace-FT8igkn4.mjs} +0 -0
- /package/dist/{namespace-CaoZ3S78.d.mts → namespace-XTGCaSXj.d.mts} +0 -0
- /package/dist/{namespace-CTm3nEvh.d.mts → namespace-nlsvvMtD.d.mts} +0 -0
- /package/dist/{namespace-IV1QK__V.d.mts → namespace-uuR0Fg5r.d.mts} +0 -0
- /package/dist/{orchestrator-shared-Dfa7FMyw.d.mts → orchestrator-shared-D91Wk7z-.d.mts} +0 -0
- /package/dist/{package-DKVlsMP3.mjs → package-OE9dMQsq.mjs} +0 -0
- /package/dist/{platform-DZ7z-wXD.mjs → platform-Dhv22LiX.mjs} +0 -0
- /package/dist/{providers-u8i15co9.mjs → providers-B1p0P-vB.mjs} +0 -0
- /package/dist/{providers-namespace-DSEpli4A.d.mts → providers-namespace-BqWYkydw.d.mts} +0 -0
- /package/dist/{schema-CoyE6mPt.mjs → schema-DOnJmAPw.mjs} +0 -0
- /package/dist/{schemas-Bd0OjRQf.d.mts → schemas-B77Gi8Xr.d.mts} +0 -0
- /package/dist/{schemas-jFe1AuI-.mjs → schemas-BCIuTWRl2.mjs} +0 -0
- /package/dist/{schemas-DE-GNmSD.mjs → schemas-BdAf5u58.mjs} +0 -0
- /package/dist/{schemas-CDBSjg7o.d.mts → schemas-Dyk7JuVl.d.mts} +0 -0
- /package/dist/{schemas-DaRSfYLf.d.mts → schemas-Kq33MTPY.d.mts} +0 -0
- /package/dist/{server-lifecycle-YoSGFGnU.d.mts → server-lifecycle-47mygK3E.d.mts} +0 -0
- /package/dist/{server-lifecycle-FXTPW39-.mjs → server-lifecycle-Cg47L59Q.mjs} +0 -0
- /package/dist/{shared-schemas-CPShiLNp.mjs → shared-schemas-CKe2uN4-.mjs} +0 -0
- /package/dist/{storage-namespace-definition-Bkx5rSto.d.mts → storage-namespace-definition-C3XbpiP8.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-CqSdsuCC.mjs → storage-namespace-definition-RvjfFysN.mjs} +0 -0
- /package/dist/{telemetry-CvdLBWuk.mjs → telemetry-O0394b7p.mjs} +0 -0
- /package/dist/{tray-menu-service-DuXq5k22.mjs → tray-menu-service-B5YPK_YF.mjs} +0 -0
- /package/dist/{types-C2Ob9zz_.d.mts → types-5Gw3iVpK.d.mts} +0 -0
- /package/dist/{types-dyP-bXXE.d.mts → types-BhXRffJ_.d.mts} +0 -0
- /package/dist/{types-MfJZ67e9.d.mts → types-D-bP8RRE.d.mts} +0 -0
- /package/dist/{variant-CT6XBP6T.mjs → variant-COVbYmMs.mjs} +0 -0
- /package/dist/{window-registry-CBcrGTv4.d.mts → window-registry-CfEi_Ji4.d.mts} +0 -0
- /package/dist/{window-registry-DW-dKRjQ.mjs → window-registry-XjOExitT.mjs} +0 -0
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { IMakaioBus } from "@makaio/framework/bus";
|
|
2
|
+
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
3
|
+
import { ExtensionContext, IWorkflowRunner, IWorkflowTriggerTypeRegistry, MakaioNodeExtension, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, WorkflowDefinition } from "@makaio/framework/contracts";
|
|
4
|
+
import { BaseService } from "@makaio/framework/service-base";
|
|
5
|
+
import { MakaioDatabase } from "@makaio/framework/storage/drizzle";
|
|
6
|
+
|
|
7
|
+
//#region subsystems/workflow-engine/src/storage/handler.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Registers all Drizzle-based workflow storage handlers with the bus.
|
|
10
|
+
*
|
|
11
|
+
* Handles:
|
|
12
|
+
* - Definition CRUD: get, set, delete, list
|
|
13
|
+
* - Execution CRUD: getExecution, setExecution, updateExecution, listExecutions
|
|
14
|
+
* - Frame CRUD: setFrame, getFrame, listFrames
|
|
15
|
+
* - Gate instance CRUD: setGateInstance, getGateInstance, listGateInstances
|
|
16
|
+
* - Span CRUD: setSpan, listSpans
|
|
17
|
+
* - Execution link CRUD: setExecutionLink, listExecutionLinks
|
|
18
|
+
* - Run context CRUD: setRunContext, getRunContext
|
|
19
|
+
* - WorkLog projection: worklog.get, worklog.list, worklog.changed (event-driven)
|
|
20
|
+
* @param bus - MakaioBus instance for message handling
|
|
21
|
+
* @param db - Drizzle database instance
|
|
22
|
+
* @param _ctx - Extension context (unused; reserved for future use)
|
|
23
|
+
* @returns Cleanup function to unregister all handlers
|
|
24
|
+
*/
|
|
25
|
+
declare function registerDrizzleWorkflowStorage(bus: IMakaioBus, db: MakaioDatabase, _ctx: ExtensionContext): () => void;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region subsystems/workflow-engine/src/types.d.ts
|
|
28
|
+
/**
|
|
29
|
+
* Configuration for the workflow executor.
|
|
30
|
+
*/
|
|
31
|
+
interface ExecutorConfig {
|
|
32
|
+
/** Timeout for individual step execution in ms. */
|
|
33
|
+
stepTimeoutMs: number;
|
|
34
|
+
/** Cooldown between steps in ms. */
|
|
35
|
+
stepCooldownMs: number;
|
|
36
|
+
/** Bus server WebSocket URL for runner worker connections. */
|
|
37
|
+
busUrl?: string;
|
|
38
|
+
/** Bus authentication strategy for runner worker connections. */
|
|
39
|
+
busAuth: StepRunnerBusAuth;
|
|
40
|
+
/** Platform-level defaults (cwd, env) for runner process creation. */
|
|
41
|
+
platformDefaults: StepRunnerPlatformDefaults;
|
|
42
|
+
/** Grace period in ms before forceKill is issued after cooperative abort. */
|
|
43
|
+
cancelTimeoutMs: number;
|
|
44
|
+
/**
|
|
45
|
+
* Absolute path to the Makaio data-home directory.
|
|
46
|
+
*
|
|
47
|
+
* Forwarded to workflow workers as `context.makaioHome` so workers can
|
|
48
|
+
* locate stored config, keys, and installed extensions. When omitted the
|
|
49
|
+
* executor derives a default from the `MAKAIO_HOME` environment variable
|
|
50
|
+
* or `~/.makaio`.
|
|
51
|
+
*/
|
|
52
|
+
makaioHome?: string;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region subsystems/workflow-engine/src/workflow-executor.d.ts
|
|
56
|
+
/**
|
|
57
|
+
* Core workflow executor service.
|
|
58
|
+
*
|
|
59
|
+
* Orchestrates workflow execution lifecycle:
|
|
60
|
+
* - Creates coordinator session for each execution
|
|
61
|
+
* - Executes steps via the mutable DAG scheduler
|
|
62
|
+
* - Spawns subagents for each step
|
|
63
|
+
* - Tracks progress and emits lifecycle events
|
|
64
|
+
* - Manages cancellation and cleanup
|
|
65
|
+
*/
|
|
66
|
+
declare class WorkflowExecutor extends BaseService {
|
|
67
|
+
/** Drizzle storage handler registration for the composition root. */
|
|
68
|
+
static readonly storage: {
|
|
69
|
+
readonly drizzle: typeof registerDrizzleWorkflowStorage;
|
|
70
|
+
};
|
|
71
|
+
private readonly config;
|
|
72
|
+
private readonly activeExecutions;
|
|
73
|
+
private readonly executionTasks;
|
|
74
|
+
private readonly shellAbortControllers;
|
|
75
|
+
private readonly activeRunnerSteps;
|
|
76
|
+
private readonly gateTimeoutScheduler;
|
|
77
|
+
private readonly resumeDispatches;
|
|
78
|
+
/**
|
|
79
|
+
* Per-execution abort controllers used to cancel workflow-level runners.
|
|
80
|
+
* Keyed by execution ID; only populated when a {@link IWorkflowRunner} is used.
|
|
81
|
+
*/
|
|
82
|
+
private readonly workflowAbortControllers;
|
|
83
|
+
private readonly workflowRunner?;
|
|
84
|
+
private triggerTypeRegistry?;
|
|
85
|
+
/**
|
|
86
|
+
* Create a new workflow executor.
|
|
87
|
+
* @param bus - The message bus for communication
|
|
88
|
+
* @param config - Optional partial configuration (merged with defaults)
|
|
89
|
+
* @param workflowRunner - Optional workflow-level runner for isolated execution
|
|
90
|
+
*/
|
|
91
|
+
constructor(bus: IMakaioBus, config?: Partial<ExecutorConfig>, workflowRunner?: IWorkflowRunner);
|
|
92
|
+
/**
|
|
93
|
+
* Set the trigger type registry for listTriggerTypes support.
|
|
94
|
+
* @param registry - Trigger type registry instance
|
|
95
|
+
*/
|
|
96
|
+
setTriggerTypeRegistry(registry: IWorkflowTriggerTypeRegistry): void;
|
|
97
|
+
/**
|
|
98
|
+
* Retrieve the registry set via {@link setTriggerTypeRegistry}.
|
|
99
|
+
*
|
|
100
|
+
* The composition root calls this after boot to wire
|
|
101
|
+
* `setWorkflowTriggerTypeRegistry` from `@makaio/kernel-core`.
|
|
102
|
+
* @returns The trigger type registry, or `undefined` if not yet set.
|
|
103
|
+
*/
|
|
104
|
+
getTriggerTypeRegistry(): IWorkflowTriggerTypeRegistry | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Register all bus handlers via BaseService lifecycle.
|
|
107
|
+
* Called once by `init()` — idempotency is handled by BaseService.
|
|
108
|
+
*/
|
|
109
|
+
protected onInit(): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Release in-flight executions and abort shell processes.
|
|
112
|
+
* Called by `destroy()` before handler unsubscription.
|
|
113
|
+
*/
|
|
114
|
+
protected onDestroy(): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Build a {@link FinalizerDeps} bundle from current instance state.
|
|
117
|
+
*
|
|
118
|
+
* Extracted to avoid duplicating the same field enumeration across the cancel
|
|
119
|
+
* handler, the shutdown path, and the runner rejection catch path.
|
|
120
|
+
* @returns Finalizer dependency bundle.
|
|
121
|
+
*/
|
|
122
|
+
private buildFinalizerDeps;
|
|
123
|
+
/**
|
|
124
|
+
* Build a {@link RunnerTaskDeps} bundle for delegating to
|
|
125
|
+
* {@link buildExecutionTask} or {@link buildFileExecutionTask}.
|
|
126
|
+
* @param workflowRunner - The runner instance to use (always defined at these call sites).
|
|
127
|
+
* @returns Runner task dependency bundle.
|
|
128
|
+
*/
|
|
129
|
+
private buildRunnerTaskDeps;
|
|
130
|
+
/**
|
|
131
|
+
* Resolve the workspace root inherited from a parent session.
|
|
132
|
+
*
|
|
133
|
+
* Coordinator sessions are created with this target working directory so
|
|
134
|
+
* in-process shell steps and workflow-level workers share the same workspace.
|
|
135
|
+
* @param parentSessionId - Optional parent session identifier.
|
|
136
|
+
* @returns Parent session working directory, or the executor default cwd.
|
|
137
|
+
*/
|
|
138
|
+
private resolveExecutionWorkspaceRoot;
|
|
139
|
+
/**
|
|
140
|
+
* Build the {@link StartExecutionDeps} bundle used by {@link startExecution}
|
|
141
|
+
* and {@link startFileExecution}.
|
|
142
|
+
* @returns Start execution dependency bundle.
|
|
143
|
+
*/
|
|
144
|
+
private buildStartDeps;
|
|
145
|
+
/** Register execution control handlers (start, cancel). */
|
|
146
|
+
private registerExecutionHandlers;
|
|
147
|
+
/** Register timeout wakeup handlers for parked gates. */
|
|
148
|
+
private registerGateTimeoutHandlers;
|
|
149
|
+
/**
|
|
150
|
+
* Rebuild timeout wakeups for exit-based gates left waiting across executor restarts.
|
|
151
|
+
*
|
|
152
|
+
* Gate rows persist the effective timeout policy captured when the reviewer
|
|
153
|
+
* prompt opened, so rehydration does not depend on the current workflow
|
|
154
|
+
* definition or a definition snapshot being available. Expired deadlines are
|
|
155
|
+
* scheduled with zero delay and redispatched by the same persisted-gate
|
|
156
|
+
* timeout path used for live suspensions.
|
|
157
|
+
*/
|
|
158
|
+
private rehydratePausedGateTimeouts;
|
|
159
|
+
/**
|
|
160
|
+
* Main execution loop — drives the primitive runtime over the workflow's
|
|
161
|
+
* root sequence node.
|
|
162
|
+
*
|
|
163
|
+
* Creates a per-execution `RuntimeContext` and `AbortController`, then
|
|
164
|
+
* delegates to {@link executeSequence} to walk the node tree. The abort
|
|
165
|
+
* controller is registered in `workflowAbortControllers` so the cancel
|
|
166
|
+
* handler can interrupt a running execution.
|
|
167
|
+
* @param executionId - The execution ID.
|
|
168
|
+
*/
|
|
169
|
+
private runExecution;
|
|
170
|
+
/**
|
|
171
|
+
* Accept a gate response for an execution that is paused in storage.
|
|
172
|
+
*
|
|
173
|
+
* Checks that the execution is paused, the response targets a waiting gate
|
|
174
|
+
* frame directly or by a unique gate node, and the submitted resume data
|
|
175
|
+
* matches the persisted gate schema. On a valid response, updates the gate
|
|
176
|
+
* instance to its resolved state and triggers a resume dispatch via
|
|
177
|
+
* {@link resumePausedExecution}.
|
|
178
|
+
*
|
|
179
|
+
* Returns `false` without modifying state when the execution is not paused
|
|
180
|
+
* or the gate response is ambiguous or invalid, allowing the bus to continue
|
|
181
|
+
* to the next handler.
|
|
182
|
+
* @param payload - Gate response payload from the bus request context.
|
|
183
|
+
* @returns `true` when the gate was accepted and resume dispatched; `false` otherwise.
|
|
184
|
+
*/
|
|
185
|
+
private respondToPausedGate;
|
|
186
|
+
/**
|
|
187
|
+
* Transition a paused execution back to running and re-dispatch it through
|
|
188
|
+
* the configured runner infrastructure.
|
|
189
|
+
* @param executionId - Execution to resume.
|
|
190
|
+
*/
|
|
191
|
+
private resumePausedExecution;
|
|
192
|
+
/**
|
|
193
|
+
* Dispatch a paused execution once durable resume state is available.
|
|
194
|
+
* @param executionId - Execution to resume.
|
|
195
|
+
* @returns True when a runner task was launched.
|
|
196
|
+
*/
|
|
197
|
+
private dispatchPausedExecutionResume;
|
|
198
|
+
}
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region subsystems/workflow-engine/src/cron-trigger-evaluator.d.ts
|
|
201
|
+
/**
|
|
202
|
+
* Schedules and fires cron triggers for workflows on `'main-dev-machine'` role machines.
|
|
203
|
+
*
|
|
204
|
+
* On `init`, loads all workflow definitions with `cron` triggers and schedules
|
|
205
|
+
* them via croner. Subscribes to workflow CRUD events to keep the schedule
|
|
206
|
+
* index live.
|
|
207
|
+
*
|
|
208
|
+
* Each cron trigger fires `WorkflowSubjects.start` with the workflow ID and
|
|
209
|
+
* a `triggerPayload` containing the scheduled fire time.
|
|
210
|
+
*
|
|
211
|
+
* ## Role partitioning
|
|
212
|
+
*
|
|
213
|
+
* Only machines with role `'main-dev-machine'` should run this evaluator.
|
|
214
|
+
* Server-role machines rely on the relay-side `CronEvaluator` for routing.
|
|
215
|
+
* @example
|
|
216
|
+
* ```typescript
|
|
217
|
+
* if (machineRole === 'main-dev-machine') {
|
|
218
|
+
* const evaluator = new CronTriggerEvaluator(bus);
|
|
219
|
+
* await evaluator.init();
|
|
220
|
+
* // ...on shutdown:
|
|
221
|
+
* evaluator.destroy();
|
|
222
|
+
* }
|
|
223
|
+
* ```
|
|
224
|
+
*/
|
|
225
|
+
declare class CronTriggerEvaluator {
|
|
226
|
+
private readonly bus;
|
|
227
|
+
private readonly cleanupFns;
|
|
228
|
+
private initialized;
|
|
229
|
+
/**
|
|
230
|
+
* Active cron jobs keyed by `{workflowId}:{triggerIndex}`.
|
|
231
|
+
*/
|
|
232
|
+
private readonly jobs;
|
|
233
|
+
/**
|
|
234
|
+
* @param bus - The shared bus instance
|
|
235
|
+
*/
|
|
236
|
+
constructor(bus: IMakaioBus);
|
|
237
|
+
/**
|
|
238
|
+
* Initialize the evaluator.
|
|
239
|
+
*
|
|
240
|
+
* Idempotent: calling `init()` on an already-initialized evaluator is a no-op.
|
|
241
|
+
*/
|
|
242
|
+
init(): Promise<void>;
|
|
243
|
+
/**
|
|
244
|
+
* Destroy the evaluator, stopping all cron jobs and removing all subscriptions.
|
|
245
|
+
*
|
|
246
|
+
* Idempotent: calling `destroy()` on a non-initialized evaluator is a no-op.
|
|
247
|
+
*/
|
|
248
|
+
destroy(): void;
|
|
249
|
+
activeJobCount(): number;
|
|
250
|
+
/**
|
|
251
|
+
* Load all existing workflow definitions and schedule their cron triggers.
|
|
252
|
+
*/
|
|
253
|
+
private loadExistingTriggers;
|
|
254
|
+
/**
|
|
255
|
+
* Schedule all `cron` triggers found in a workflow definition.
|
|
256
|
+
* @param workflow - Workflow definition to schedule
|
|
257
|
+
*/
|
|
258
|
+
private scheduleWorkflow;
|
|
259
|
+
/**
|
|
260
|
+
* Stop and remove all cron jobs for a given workflow.
|
|
261
|
+
* @param workflowId - Workflow identifier to unschedule
|
|
262
|
+
*/
|
|
263
|
+
private unscheduleWorkflow;
|
|
264
|
+
/**
|
|
265
|
+
* Stop and remove a single cron job by key.
|
|
266
|
+
* @param key - Job key (`{workflowId}:{triggerIndex}`)
|
|
267
|
+
*/
|
|
268
|
+
private stopJob;
|
|
269
|
+
/**
|
|
270
|
+
* Stop all active cron jobs and clear the jobs map.
|
|
271
|
+
*/
|
|
272
|
+
private stopAllJobs;
|
|
273
|
+
/**
|
|
274
|
+
* Fire a cron trigger by requesting workflow start.
|
|
275
|
+
*
|
|
276
|
+
* Errors are logged but not propagated — cron jobs are fire-and-forget.
|
|
277
|
+
* @param workflowId - Workflow to start
|
|
278
|
+
* @param triggerIndex - Index of the trigger that fired
|
|
279
|
+
*/
|
|
280
|
+
private fireTrigger;
|
|
281
|
+
}
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region subsystems/workflow-engine/src/workflow-engine-service.d.ts
|
|
284
|
+
/**
|
|
285
|
+
* Options for constructing a {@link WorkflowEngineService}.
|
|
286
|
+
*
|
|
287
|
+
* All fields are optional — when omitted the service uses the in-process
|
|
288
|
+
* workflow scheduler and default executor config.
|
|
289
|
+
*/
|
|
290
|
+
interface WorkflowEngineServiceOptions {
|
|
291
|
+
/**
|
|
292
|
+
* Workflow-level runner for dispatching full workflow executions to an
|
|
293
|
+
* isolated environment (worker thread pool, child process, container).
|
|
294
|
+
*
|
|
295
|
+
* When provided the executor delegates each new execution to this runner
|
|
296
|
+
* instead of running it in-process via the DAG scheduler.
|
|
297
|
+
* When omitted, execution falls back to the in-process DAG scheduler.
|
|
298
|
+
*/
|
|
299
|
+
workflowRunner?: IWorkflowRunner;
|
|
300
|
+
/** Partial executor configuration merged with defaults. */
|
|
301
|
+
executorConfig?: Partial<ExecutorConfig>;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Workflow engine package service.
|
|
305
|
+
*
|
|
306
|
+
* Owns the boot lifecycle for the workflow executor and trigger evaluators so
|
|
307
|
+
* stored triggers become active during normal runtime package startup.
|
|
308
|
+
*/
|
|
309
|
+
declare class WorkflowEngineService extends BaseService {
|
|
310
|
+
private readonly workflowExecutor;
|
|
311
|
+
private readonly busEventTriggerEvaluator;
|
|
312
|
+
private readonly cronTriggerEvaluator;
|
|
313
|
+
/**
|
|
314
|
+
* @param bus - Shared runtime bus.
|
|
315
|
+
* @param options - Optional workflow runner and executor config overrides.
|
|
316
|
+
*/
|
|
317
|
+
constructor(bus: IMakaioBus, options?: WorkflowEngineServiceOptions);
|
|
318
|
+
/**
|
|
319
|
+
* Executor owned by this package service.
|
|
320
|
+
* @returns Workflow executor instance.
|
|
321
|
+
*/
|
|
322
|
+
get executor(): WorkflowExecutor;
|
|
323
|
+
/**
|
|
324
|
+
* Cron evaluator owned by this package service.
|
|
325
|
+
* @returns Cron trigger evaluator instance.
|
|
326
|
+
*/
|
|
327
|
+
get cronTriggers(): CronTriggerEvaluator;
|
|
328
|
+
/**
|
|
329
|
+
* Set the trigger type registry used by executor request handlers.
|
|
330
|
+
* @param registry - Trigger type registry instance.
|
|
331
|
+
*/
|
|
332
|
+
setTriggerTypeRegistry(registry: IWorkflowTriggerTypeRegistry): void;
|
|
333
|
+
/**
|
|
334
|
+
* Retrieve the executor trigger type registry.
|
|
335
|
+
* @returns Trigger type registry, or `undefined` when none is set.
|
|
336
|
+
*/
|
|
337
|
+
getTriggerTypeRegistry(): IWorkflowTriggerTypeRegistry | undefined;
|
|
338
|
+
/**
|
|
339
|
+
* Initialize executor handlers before trigger evaluators can fire starts.
|
|
340
|
+
* @returns Promise that resolves once all child services are initialized.
|
|
341
|
+
*/
|
|
342
|
+
protected onInit(): Promise<void>;
|
|
343
|
+
/**
|
|
344
|
+
* Tear down child services in reverse boot order.
|
|
345
|
+
* @returns Promise that resolves once all child services are destroyed.
|
|
346
|
+
*/
|
|
347
|
+
private destroyOwnedServices;
|
|
348
|
+
}
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region subsystems/workflow-engine/src/package.d.ts
|
|
351
|
+
/** Typed package token for retrieving the workflow engine package service. */
|
|
352
|
+
declare const WorkflowEngineToken: _$_makaio_contracts0.ExtensionToken<WorkflowEngineService>;
|
|
353
|
+
/**
|
|
354
|
+
* Create a workflow engine package manifest with optional runtime overrides.
|
|
355
|
+
*
|
|
356
|
+
* The returned manifest registers the `WorkflowEngineService` as the package
|
|
357
|
+
* service, wires Drizzle storage handlers, and forwards the provided options
|
|
358
|
+
* to the executor so that composition roots can inject a workflow-level runner
|
|
359
|
+
* or executor configuration (e.g. busUrl, busAuth, platformDefaults).
|
|
360
|
+
* @param options - Optional workflow runner and executor config overrides.
|
|
361
|
+
* @returns A `MakaioNodeExtension` manifest for the workflow engine subsystem.
|
|
362
|
+
*/
|
|
363
|
+
declare function createWorkflowEnginePackage(options?: WorkflowEngineServiceOptions): MakaioNodeExtension<IMakaioBus>;
|
|
364
|
+
/**
|
|
365
|
+
* Default workflow engine package manifest (no runtime overrides).
|
|
366
|
+
*
|
|
367
|
+
* Equivalent to `createWorkflowEnginePackage()` with no arguments. Preserved
|
|
368
|
+
* for existing consumers that reference the static constant directly.
|
|
369
|
+
*/
|
|
370
|
+
declare const workflowEnginePackage: MakaioNodeExtension<IMakaioBus>;
|
|
371
|
+
//#endregion
|
|
372
|
+
export { WorkflowExecutor as a, WorkflowEngineService as i, createWorkflowEnginePackage as n, registerDrizzleWorkflowStorage as o, workflowEnginePackage as r, WorkflowEngineToken as t };
|