@makaio/framework 1.0.0-dev-1784889676396 → 1.0.0-dev-1785344643235
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 +3 -2
- package/dist/{account-identity-CP4DC0DL.mjs → account-identity-DFx8pwKL.mjs} +1 -1
- package/dist/{adapter-CYobxqN_.mjs → adapter-D5c5LrPN.mjs} +1 -1
- package/dist/adapters/claude/index.d.mts +204 -27
- package/dist/adapters/claude/index.mjs +3 -3
- package/dist/adapters/config/index.d.mts +2 -2
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +49 -4
- package/dist/adapters/index.mjs +3 -3
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/{artifact-DCkizHkS.mjs → artifact-DGiXqb11.mjs} +1 -1
- package/dist/attempt-record-codec-CqO1_XnE.mjs +1 -0
- package/dist/{auth-C3NOWqTU.mjs → auth-DGEdiHF6.mjs} +1 -1
- package/dist/authority-state-bootstrap-GPL_tqaT.mjs +1 -0
- package/dist/bus/index.mjs +1 -1
- package/dist/{canonical-model-EMRYCVjX.mjs → canonical-model-BAytQ4NV.mjs} +1 -1
- package/dist/capabilities-BQEp34ir.mjs +1 -0
- package/dist/{client-OYk0Ttck.mjs → client-DbS847wW.mjs} +1 -1
- package/dist/clients/index.d.mts +5 -3
- package/dist/clients/index.mjs +1 -1
- package/dist/clients/managed-install.d.mts +1 -1
- package/dist/clients/managed-install.mjs +1 -1
- package/dist/{compression-CZ_6fYq8.mjs → compression-74fFeBha.mjs} +1 -1
- package/dist/{config-namespace-DTA6EQL8.mjs → config-namespace-TVX-hG4I.mjs} +1 -1
- package/dist/{context-resolution-B9ANWbG0.d.mts → context-resolution-BQBk4Ish.d.mts} +6 -4
- 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 +2 -2
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/auth/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/capabilities/index.d.mts +2 -0
- package/dist/contracts/capabilities/index.mjs +1 -0
- 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 +24 -2
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +4 -4
- 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 +1682 -9431
- 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/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 +2 -2
- package/dist/contracts/shared/index.mjs +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/timeout/index.mjs +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/contracts/worker-node/index.d.mts +2 -0
- package/dist/contracts/worker-node/index.mjs +1 -0
- package/dist/contracts/workflow/index.d.mts +3 -3
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-K3m51lgO.mjs → definition-CJfiv8xm.mjs} +1 -1
- package/dist/{detached-extension-handle-BsywhHfk.mjs → detached-extension-handle-Ddfquy5_.mjs} +1 -1
- package/dist/drizzle/0030_remote-worker-execution.sql +6 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/execution-attempt-repository-DWXKY41_.d.mts +1056 -0
- package/dist/execution-target-Cf645pDj.mjs +1 -0
- package/dist/{extension-Cgg45Xk1.mjs → extension-DCA4pYrY.mjs} +1 -1
- package/dist/extension-hjOPs10e.mjs +1 -0
- package/dist/{filesystem-service-Cupz_Z7S.mjs → filesystem-service-DlP2HfDg.mjs} +1 -1
- package/dist/framework-packages-C3RWfJDk.mjs +1 -0
- package/dist/git/index.mjs +1 -1
- package/dist/{globby-DWp7V-P2.mjs → globby-1yCVCk8s.mjs} +1 -1
- package/dist/{handlers-cMBmexF4.mjs → handlers-CfnLyLfE.mjs} +1 -1
- package/dist/{harness-DflvHAGV.mjs → harness-DpwsFsE7.mjs} +1 -1
- package/dist/{index-BhXCCgJV2.d.mts → index-4fE_hUP02.d.mts} +1 -1
- package/dist/{index-BMx59xb7.d.mts → index-8gKx-OVP.d.mts} +13 -7
- package/dist/index-B0Kf_OWi.d.mts +267 -0
- package/dist/{index-DRiTICBU.d.mts → index-BAXkicoQ.d.mts} +1 -1
- package/dist/{index-CnXXq6sW.d.mts → index-BC79QrGC.d.mts} +10 -10
- package/dist/{index-CvmWRumB.d.mts → index-BQLUVXIB.d.mts} +1024 -888
- package/dist/{index-CKO9S6oo.d.mts → index-BXD3kEs_.d.mts} +28 -10
- package/dist/{index-DUf47Jn_.d.mts → index-BskPjMet.d.mts} +8 -8
- package/dist/{index-CjyfQ_vQ.d.mts → index-CL-0NeQW.d.mts} +8 -5
- package/dist/{index-Cw7_69gV.d.mts → index-CRvpVIqA.d.mts} +1 -1
- package/dist/{index-7FjcxGlK.d.mts → index-CUvNKYkV.d.mts} +1 -1
- package/dist/{index-CtUTCAJ6.d.mts → index-CVaRZoiu.d.mts} +4 -4
- package/dist/{index-Cw84_Dqi.d.mts → index-CnMu8BQl.d.mts} +4 -4
- package/dist/{index-DaMfTvfz.d.mts → index-DA9g2A5P.d.mts} +1 -1
- package/dist/{index-Bi5jFT9S.d.mts → index-DJAmSnuh.d.mts} +12 -12
- package/dist/{index-pjATMrvJ.d.mts → index-DkiTJM5p.d.mts} +693 -31
- package/dist/{index-jbgHR5J2.d.mts → index-GHASUiem.d.mts} +1 -1
- package/dist/{index-BDDbcWNI.d.mts → index-HsTxm-R3.d.mts} +3 -3
- package/dist/{index-Bs3CXR232.d.mts → index-I5YG-qrb2.d.mts} +6 -6
- package/dist/{index-0Ju2i8gV.d.mts → index-SsBHjUqA.d.mts} +204 -165
- package/dist/index-XZyMxxnU.d.mts +1602 -0
- package/dist/{index-dkvGHN10.d.mts → index-brqfk9JQ.d.mts} +6 -6
- package/dist/{index-D43lQCHs.d.mts → index-q0Tiqems.d.mts} +131 -131
- package/dist/index-w_FmghjT.d.mts +7295 -0
- package/dist/kernel/cli/index.d.mts +2 -2
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/register.d.mts +1 -1
- package/dist/kernel/cli/register.mjs +1 -1
- 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 +14 -8
- 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-BeMM738r.mjs → lib-C7-s68uf.mjs} +1 -1
- package/dist/{lib-B7TpTzkG.mjs → lib-DErgth_E.mjs} +2 -2
- package/dist/{load-extensions-BLdG90Zi.d.mts → load-extensions-BxsDB87B.d.mts} +1 -1
- package/dist/{load-extensions-CUmFCcYi.mjs → load-extensions-D0DfjYLC.mjs} +1 -1
- package/dist/{materialization-s8eR1eQ4.mjs → materialization-Jd198K3y.mjs} +1 -1
- package/dist/mcp-http-server/index.d.mts +305 -79
- package/dist/mcp-http-server/index.mjs +4 -4
- package/dist/model-BGgVmRnN.mjs +1 -0
- package/dist/modes-BheyN7SS.mjs +1 -0
- package/dist/{namespace-DwQtzlY-.mjs → namespace-BqxtpNAn.mjs} +1 -1
- package/dist/{namespace-BHliaabz.d.mts → namespace-DBm9K23m.d.mts} +6 -6
- package/dist/{namespace-zOfq1Uhn.d.mts → namespace-DI4Yx_xu.d.mts} +27 -27
- package/dist/namespace-DJfUADSV.mjs +1 -0
- package/dist/{namespace-BphMM6S82.d.mts → namespace-DPgxPa8m2.d.mts} +1 -1
- package/dist/{namespace-Bd49QmzS.d.mts → namespace-DWCEo-9M.d.mts} +0 -60
- package/dist/{namespace-CriPb5wY.d.mts → namespace-jPUGV-b2.d.mts} +42 -42
- package/dist/{native-session-supervisor-Bgz-Q1WH.mjs → native-session-supervisor-DRx0MX-d.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/node/transports/index.d.mts +81 -9
- package/dist/node/transports/index.mjs +2 -2
- package/dist/{orchestrator-shared-CY7Tu7kZ.mjs → orchestrator-shared-BxmHCPvx.mjs} +1 -1
- package/dist/package-CNUPPcU1.mjs +7 -0
- package/dist/package-DWMxGfzK.d.mts +827 -0
- package/dist/{package-DKnzOvoR.mjs → package-Dft_RItb.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/{packages-zDnokBpl.mjs → packages-DtEEP0Vt.mjs} +1 -1
- package/dist/{profile-BRi6K6am.mjs → profile-BTAI31Nt.mjs} +1 -1
- package/dist/{provider-context-DOsjOjiR.mjs → provider-context-Dq53Cgzz.mjs} +1 -1
- package/dist/{provider-context-BYkMl--1.mjs → provider-context-PZIQWcqQ.mjs} +1 -1
- package/dist/provider-operation-Cxoe2SUr.d.mts +207 -0
- package/dist/providers/index.mjs +1 -1
- package/dist/{registry-Dw6l7k3e.mjs → registry-wfF2uTty.mjs} +29 -29
- package/dist/{resolved-O2XXjTeu.mjs → resolved-DZgqql2Z.mjs} +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-bun/index.mjs +1 -1
- package/dist/runtime-node/extension-discovery.d.mts +1 -1
- package/dist/runtime-node/extension-validation.d.mts +1 -1
- package/dist/runtime-node/extension-validation.mjs +1 -1
- package/dist/runtime-node/index.d.mts +4 -4
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/makaio-config.mjs +1 -1
- package/dist/runtime-node/static/model-registry.yaml +348 -0
- package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.d.mts +7 -4
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-BO9TgmOs.d.mts → schema-Bwr_NrOS.d.mts} +2 -2
- package/dist/{schema-BI0aCHvV.mjs → schema-Dd-e89MO.mjs} +1 -1
- package/dist/{schemas-B5tMYfhC.d.mts → schemas-C4yUXs4G.d.mts} +4 -4
- package/dist/schemas-CRB2O5zo.mjs +1 -0
- package/dist/{schemas-Dgj3WaOI.mjs → schemas-Cm09dXL4.mjs} +1 -1
- package/dist/{schemas-BJ8VMXhO.mjs → schemas-DaHQzpgm.mjs} +1 -1
- package/dist/{schemas-BDC2Nqj1.d.mts → schemas-ENwK6jmV.d.mts} +14 -14
- package/dist/{schemas-ChF2z4RB.d.mts → schemas-N6x2z7Lf.d.mts} +0 -45
- package/dist/schemas-tDf_WiC8.mjs +1 -0
- package/dist/selection-BNwTKEVT.mjs +1 -0
- package/dist/service-base/index.d.mts +47 -2
- package/dist/service-base/index.mjs +1 -1
- 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 +3 -3
- 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 +4 -4
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/namespace.mjs +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/execution-target/schemas.mjs +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/filesystem/index.mjs +1 -1
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.d.mts +2 -2
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +86 -371
- 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 +2 -2
- 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 +2 -2
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.d.mts +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/materialization/index.d.mts +1 -1
- package/dist/services/materialization/index.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 +14 -14
- 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/workflow-transitions/index.d.mts +2 -0
- package/dist/services/workflow-transitions/index.mjs +1 -0
- package/dist/{session-Carng3Yk.mjs → session-BOGCd18q.mjs} +1 -1
- package/dist/{session-idI1jk5X.mjs → session-BTFiDoGz.mjs} +1 -1
- package/dist/{session-lineage-Cte63dGx.d.mts → session-lineage-B_JW5LpF.d.mts} +1 -1
- package/dist/{shared-RP_KARKF.mjs → shared-BQ0CHIVy.mjs} +1 -1
- package/dist/{skill-CpNjWFuE.mjs → skill-BR6rkfLe.mjs} +1 -1
- package/dist/{src-XihJcAQS.mjs → src-DD0v-nIj.mjs} +1 -1
- package/dist/storage/drizzle/client.d.mts +1 -1
- package/dist/storage/drizzle/client.mjs +1 -1
- package/dist/storage/drizzle/index.d.mts +50 -2
- package/dist/storage/drizzle/index.mjs +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/testing/drizzle-harness.d.mts +44 -3
- package/dist/testing/drizzle-harness.mjs +1 -1
- package/dist/{tool-approval-service-fIZ9x0kL.mjs → tool-approval-service-kBA0fRzm.mjs} +1 -1
- package/dist/tools-PdG9fO1M.mjs +1 -0
- package/dist/{transition-BodgGLZx.d.mts → transition-DuVzKt8-.d.mts} +3 -42
- package/dist/{types-LspCUW09.d.mts → types-B1MNcwgH.d.mts} +1 -1
- package/dist/{types-Bzxo7ATi.d.mts → types-BqVAOzJP.d.mts} +48 -48
- package/dist/{types-DBb5jY4Z.d.mts → types-CJ_QZ1yW.d.mts} +47 -3
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/index.mjs +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/utils/index.d.mts +18 -4
- package/dist/utils/index.mjs +1 -1
- package/dist/{version-BbWrAPld.mjs → version-CoCeMxDT.mjs} +1 -1
- package/dist/{view-builder-tU7iaxrk.d.mts → view-builder-CvoSL2oL.d.mts} +2 -1
- package/dist/visibility-qhGWmpSJ.mjs +1 -0
- package/dist/worker-node-Bl9_vqYi.mjs +1 -0
- package/dist/worker-node-DZTuT1DS.mjs +1 -0
- package/dist/workflow-BfDbgtIQ.mjs +1 -0
- package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -0
- package/dist/workflow-engine/execution-attempt-repository.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +619 -685
- 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/provider-operation.d.mts +2 -0
- package/dist/workflow-engine/provider-operation.mjs +1 -0
- package/dist/workflow-engine/testing/index.d.mts +146 -0
- package/dist/workflow-engine/testing/index.mjs +1 -0
- package/dist/workflow-engine/testing/sqlite.d.mts +22 -0
- package/dist/workflow-engine/testing/sqlite.mjs +130 -0
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/workflow-transitions-DSc45ixc.mjs +1 -0
- package/dist/workflow-worker-BN9XPxQO.mjs +1 -0
- package/package.json +20 -3
- package/dist/authority-state-bootstrap-C_-F_dtq.mjs +0 -1
- package/dist/execution-target-CsZXIvli.mjs +0 -1
- package/dist/extension-CjTu6mzW.mjs +0 -1
- package/dist/model-uE5IyUFJ.mjs +0 -1
- package/dist/namespace-C05pkLbN.mjs +0 -1
- package/dist/package-BSG1681x.d.mts +0 -427
- package/dist/package-DW1Upu8E.mjs +0 -7
- package/dist/schemas-BRxU_oqL.mjs +0 -1
- package/dist/schemas-C-J4W1ID.mjs +0 -1
- package/dist/selection-YRuVSdck.mjs +0 -1
- package/dist/tools-Cs2DwjCC.mjs +0 -1
- package/dist/visibility-Cb62p9bv.mjs +0 -1
- package/dist/workflow-BX-FxDb0.mjs +0 -1
- package/dist/workflow-worker-DR9qYOFc.mjs +0 -1
- /package/dist/{adapter-auth-runtime-DFBLXD5K.mjs → adapter-auth-runtime-DO-FVTXg.mjs} +0 -0
- /package/dist/{adapter-binding-Dfk_g-lP.d.mts → adapter-binding-DQchUtrK.d.mts} +0 -0
- /package/dist/{ajv-C8r45sFs.mjs → ajv-DD3SIL2i.mjs} +0 -0
- /package/dist/{attach-error-DCnzW-Yz.mjs → attach-error-C3tngg6J.mjs} +0 -0
- /package/dist/{await-trigger-UceeyCyi.mjs → await-trigger-I3lrepb8.mjs} +0 -0
- /package/dist/{base-orchestrator-5yH3l39s.d.mts → base-orchestrator-BilsQNW1.d.mts} +0 -0
- /package/dist/{capability-service-BzKBK0n2.mjs → capability-service-BqiLlRGA.mjs} +0 -0
- /package/dist/{client-DYEHDiJN.d.mts → client-B--e2qcU.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-C12PvQmz.d.mts → client-binary-version-verifier-CgjM_vGF.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-Dv7TGFxh.mjs → client-binary-version-verifier-taewmKTY.mjs} +0 -0
- /package/dist/{clients-namespace-DcFmhtLv.d.mts → clients-namespace-DfxjG2ZP.d.mts} +0 -0
- /package/dist/{config-namespace-DmP7NVju.d.mts → config-namespace-BCqvufbD.d.mts} +0 -0
- /package/dist/{create-static-mount-BLbqGmva.mjs → create-static-mount-bbQhTt6W.mjs} +0 -0
- /package/dist/{cross-spawn-BXxQUsPS.mjs → cross-spawn-B57KZuns.mjs} +0 -0
- /package/dist/{cursor-storage-DCj4uUxr.mjs → cursor-storage-DIFK_9hg.mjs} +0 -0
- /package/dist/{definition-BEvV7tbD.d.mts → definition-gnKgXU91.d.mts} +0 -0
- /package/dist/{definitions-C1pgx0Nq.mjs → definitions-xrrY0wgz.mjs} +0 -0
- /package/dist/{descriptor-to-package-VfB8lK5w.mjs → descriptor-to-package-DvF08krT.mjs} +0 -0
- /package/dist/{drizzle-oCH9H53q.mjs → drizzle-z_0SiGY8.mjs} +0 -0
- /package/dist/{esm-ClQELElL.mjs → esm-CltRnX8_.mjs} +0 -0
- /package/dist/{event-BOLVCfhH.mjs → event-CmVjR6Ib.mjs} +0 -0
- /package/dist/{extension-discovery-B6p3iZaV.d.mts → extension-discovery-CQRdbVQ6.d.mts} +0 -0
- /package/dist/{extension-namespace-vrh4ERXR.mjs → extension-namespace-Yu41YepM.mjs} +0 -0
- /package/dist/{facet-DqPBpqkl.mjs → facet-BCI00njh.mjs} +0 -0
- /package/dist/{filesystem-service-CGdboor3.d.mts → filesystem-service-CQ9yVkSz.d.mts} +0 -0
- /package/dist/{handler-GGOD_ofd.mjs → handler-Cbv9FqDO.mjs} +0 -0
- /package/dist/{hook-responses-Dg8wDvRo.d.mts → hook-responses-Dh1PWXqJ.d.mts} +0 -0
- /package/dist/{host-BfgdjlII.mjs → host-Caq6ZfSJ.mjs} +0 -0
- /package/dist/{identity-BmEHHoBw.mjs → identity-D6guMtmi.mjs} +0 -0
- /package/dist/{index-DEchpaya.d.mts → index-BIdsFcQs2.d.mts} +0 -0
- /package/dist/{index-DquI_1X5.d.mts → index-BVRQEpAg.d.mts} +0 -0
- /package/dist/{index-Brdc35b-.d.mts → index-BaZeoZoS.d.mts} +0 -0
- /package/dist/{index-BSmwpgkR.d.mts → index-ByKi34v5.d.mts} +0 -0
- /package/dist/{index-oYGf2zIe.d.mts → index-CGZQVTid.d.mts} +0 -0
- /package/dist/{index-Chy9aknK.d.mts → index-CMJZ2Z8m.d.mts} +0 -0
- /package/dist/{index-Bd1GC1kU2.d.mts → index-CjdRdsd0.d.mts} +0 -0
- /package/dist/{index-DYUxNOIX.d.mts → index-Cv-o5Krs.d.mts} +0 -0
- /package/dist/{index-DC0yVsYL.d.mts → index-DN4NOCqN2.d.mts} +0 -0
- /package/dist/{index-CcsJnJOD.d.mts → index-DR40QWlw.d.mts} +0 -0
- /package/dist/{index-BG9-vQHD.d.mts → index-DZunhZec.d.mts} +0 -0
- /package/dist/{index-BsBvs0aK.d.mts → index-DjgLchuQ.d.mts} +0 -0
- /package/dist/{index-pgYFJ5h6.d.mts → index-Dm1nUxCF.d.mts} +0 -0
- /package/dist/{index-C96LlS5m.d.mts → index-Ds5_rDEJ.d.mts} +0 -0
- /package/dist/{index-GYZs75UP.d.mts → index-dtsLKOID.d.mts} +0 -0
- /package/dist/{index-8fJ6dkzR.d.mts → index-gUhidukN.d.mts} +0 -0
- /package/dist/{index-BgpYhR2z.d.mts → index-jTaAHsul.d.mts} +0 -0
- /package/dist/{index-Ci3_i-WC2.d.mts → index-sS6KUlrx.d.mts} +0 -0
- /package/dist/{index-CFeY8lfU.d.mts → index-vA--0lOM.d.mts} +0 -0
- /package/dist/{index-BUYyZm5I.d.mts → index-vcSj12YQ.d.mts} +0 -0
- /package/dist/{index-CdEhEXlY.d.mts → index-ye0oklfU.d.mts} +0 -0
- /package/dist/{json-value-BwVdTylT.d.mts → json-value-Brslhqbm.d.mts} +0 -0
- /package/dist/{jsonl-transport-D8RBF0dK.mjs → jsonl-transport-bQl3JwIu.mjs} +0 -0
- /package/dist/{lib-3_xcE8J-.mjs → lib-DOBXZmYX.mjs} +0 -0
- /package/dist/{model-registry-CoegIvks.mjs → model-registry-CmgcPDH3.mjs} +0 -0
- /package/dist/{model-registry-BneK5SGo.mjs → model-registry-xyBKSye-.mjs} +0 -0
- /package/dist/{namespace-CDO4rY11.mjs → namespace-B8uKAzWJ.mjs} +0 -0
- /package/dist/{namespace-BsF9IxJ9.d.mts → namespace-BOkKoq34.d.mts} +0 -0
- /package/dist/{namespace-SQAGytmu.d.mts → namespace-Blp4c8GK.d.mts} +0 -0
- /package/dist/{namespace-BeED_Ojz.mjs → namespace-C-9si-fV.mjs} +0 -0
- /package/dist/{namespace-De9Mg3zv.d.mts → namespace-CErHuXtb.d.mts} +0 -0
- /package/dist/{namespace-BHj13hbA.mjs → namespace-CWGKCNZm.mjs} +0 -0
- /package/dist/{namespace-D7pE2QWv.mjs → namespace-CWUDFGOy.mjs} +0 -0
- /package/dist/{namespace-D9HNjIdc.d.mts → namespace-Cv1RFP7n.d.mts} +0 -0
- /package/dist/{namespace-CI313bRv.d.mts → namespace-Dkod-w11.d.mts} +0 -0
- /package/dist/{namespace-lWlqWTKu.d.mts → namespace-GPA7zots.d.mts} +0 -0
- /package/dist/{namespace-DWwWnLBu.mjs → namespace-HO2J9sO8.mjs} +0 -0
- /package/dist/{namespace-C238RqwB.mjs → namespace-YxU1xf-K.mjs} +0 -0
- /package/dist/{namespace-BetqZA7Z.d.mts → namespace-YytVKIgI.d.mts} +0 -0
- /package/dist/{namespace-B9CYb9Gh.d.mts → namespace-jDhZjw-i.d.mts} +0 -0
- /package/dist/{namespace-BSXHdCVh2.d.mts → namespace-tGRAod3o.d.mts} +0 -0
- /package/dist/{orchestrator-shared-BB6j8ezL.d.mts → orchestrator-shared-BHCv-l2O.d.mts} +0 -0
- /package/dist/{out-CFkI17mk.mjs → out-CvjtANXN.mjs} +0 -0
- /package/dist/{packages-DeIgn0Hn.d.mts → packages-BZ6pzFIq.d.mts} +0 -0
- /package/dist/{platform-CWhGFQFX.mjs → platform-Bv8llU9c.mjs} +0 -0
- /package/dist/{providers-CUnrif24.mjs → providers-Co5UszRH.mjs} +0 -0
- /package/dist/{providers-namespace-sPbGcZ6I.d.mts → providers-namespace-DjFkmvBR.d.mts} +0 -0
- /package/dist/{quick-lru-CTBjxfgD.mjs → quick-lru-CrOpWwrf.mjs} +0 -0
- /package/dist/{schema-cus0dJ81.mjs → schema-Db-y-09L.mjs} +0 -0
- /package/dist/{schema-introspection-BsWLmoFp.mjs → schema-introspection-DgWQCpwx.mjs} +0 -0
- /package/dist/{schemas-DYvvMd3c.d.mts → schemas-B1NWNASS.d.mts} +0 -0
- /package/dist/{schemas-CMyv7l7-.mjs → schemas-BGExwp3j.mjs} +0 -0
- /package/dist/{schemas-Dmij0PIc.d.mts → schemas-BO7uOum6.d.mts} +0 -0
- /package/dist/{schemas-BGS9RfqV.mjs → schemas-Bfxskx_2.mjs} +0 -0
- /package/dist/{schemas-BKKpQC4X2.d.mts → schemas-BtZqovRH.d.mts} +0 -0
- /package/dist/{schemas-BAvt2HDy.d.mts → schemas-CQyRBqD6.d.mts} +0 -0
- /package/dist/{schemas-D55eXBgl.d.mts → schemas-CR8hSqTy.d.mts} +0 -0
- /package/dist/{schemas-CWxf_Yut.mjs → schemas-CqRm0i9a.mjs} +0 -0
- /package/dist/{schemas-CiWCNQ9a2.d.mts → schemas-CwbYk_kZ.d.mts} +0 -0
- /package/dist/{schemas-CbMWN9-z.d.mts → schemas-DuIlOWR3.d.mts} +0 -0
- /package/dist/{schemas-B4FyOOJj.d.mts → schemas-miYxK_Z1.d.mts} +0 -0
- /package/dist/{semver-D3Y7uMEb.mjs → semver-DlM8znk4.mjs} +0 -0
- /package/dist/{server-lifecycle-C-3OgoKi.d.mts → server-lifecycle-Dsq56aqC.d.mts} +0 -0
- /package/dist/{server-lifecycle-DV6NMsgH.mjs → server-lifecycle-kmQ5PUDv.mjs} +0 -0
- /package/dist/{shared-schemas-BNCPgGYP.mjs → shared-schemas-DXwyMCwZ.mjs} +0 -0
- /package/dist/{src-ftBp6GpR.mjs → src-CCu8TwL6.mjs} +0 -0
- /package/dist/{storage-namespace-B1GI4elv.mjs → storage-namespace-BSrv0vXR.mjs} +0 -0
- /package/dist/{storage-namespace-definition-V8sc3drq.d.mts → storage-namespace-definition-BvlX0QV_.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-4UYuij1r.mjs → storage-namespace-definition-CkMKt7-I.mjs} +0 -0
- /package/dist/{storage-namespace-9N9R61pI.d.mts → storage-namespace-dfywhXR3.d.mts} +0 -0
- /package/dist/{supports-color-DwW9N6YC.mjs → supports-color-DUugCQsK.mjs} +0 -0
- /package/dist/{telemetry-B42EMbZt.mjs → telemetry-Pr3oP2rk.mjs} +0 -0
- /package/dist/{timeout-CvONPl0l.mjs → timeout-DWDhddRJ.mjs} +0 -0
- /package/dist/{tray-menu-service-Dgedanv-.mjs → tray-menu-service-BBLa-Rcv.mjs} +0 -0
- /package/dist/{types-DkFvBdIY.d.mts → types-BrcjaNPZ.d.mts} +0 -0
- /package/dist/{types-DVLq657Y.d.mts → types-DHmPneIO.d.mts} +0 -0
- /package/dist/{types-Bju4dmAg.d.mts → types-b54n1o57.d.mts} +0 -0
- /package/dist/{ui-config-B2L3Xgqo.mjs → ui-config-CyCdlns_.mjs} +0 -0
- /package/dist/{variant-ByI-RZua.mjs → variant-krjlTdJt.mjs} +0 -0
- /package/dist/{window-registry-Qcnvlhp7.d.mts → window-registry-BDnZLPVx.d.mts} +0 -0
- /package/dist/{window-registry-DsWnCc8z.mjs → window-registry-I-imZHV_.mjs} +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { IMakaioBus } from "@makaio/framework/bus";
|
|
3
|
+
import { TransitionActionFactory, TransitionActionInvocation, TransitionEvaluationContext, TransitionEventType, TransitionRuleDefinition, TransitionRuleDefinitionSchema } from "@makaio/framework/contracts";
|
|
4
|
+
import { BaseService } from "@makaio/framework/service-base";
|
|
5
|
+
import { Condition } from "@makaio/framework/rules";
|
|
6
|
+
import { ContributionProcessor } from "@makaio/framework/kernel";
|
|
7
|
+
|
|
8
|
+
//#region services/core/src/workflow-transitions/transition-action-registry.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Built-in action type identifier for starting a workflow via the bus.
|
|
11
|
+
*
|
|
12
|
+
* Input fields (all optional):
|
|
13
|
+
* - `workflowId` — required workflow ID
|
|
14
|
+
* - `input` — workflow input payload
|
|
15
|
+
* - `inputExpression` — jexl expression resolving workflow input from the transition context
|
|
16
|
+
* - `config` — workflow config overrides
|
|
17
|
+
* - `artifactRef` — explicit artifact binding target
|
|
18
|
+
* - `scope` — execution scope override
|
|
19
|
+
*/
|
|
20
|
+
declare const WORKFLOW_START_ACTION_TYPE = "workflow.start";
|
|
21
|
+
/**
|
|
22
|
+
* Registry for executable transition action factories.
|
|
23
|
+
*
|
|
24
|
+
* Manages built-in actions (seeded at construction) and extension-contributed
|
|
25
|
+
* actions. Duplicate action type keys hard-fail registration. Source keys
|
|
26
|
+
* support clean deregistration on extension stop.
|
|
27
|
+
*
|
|
28
|
+
* Unlike rules, actions are executable (factory-based), not static. Each
|
|
29
|
+
* dispatch call creates a fresh handler via the registered factory.
|
|
30
|
+
*/
|
|
31
|
+
declare class TransitionActionRegistry {
|
|
32
|
+
/** All factories indexed by action type string. */
|
|
33
|
+
private readonly factories;
|
|
34
|
+
/** Factories indexed by source key for deregistration. */
|
|
35
|
+
private readonly factoriesBySource;
|
|
36
|
+
/**
|
|
37
|
+
* @param bus - Bus instance forwarded to the built-in `workflow.start` factory.
|
|
38
|
+
*/
|
|
39
|
+
constructor(bus: IMakaioBus);
|
|
40
|
+
/**
|
|
41
|
+
* Register custom action factories from a source (extension name).
|
|
42
|
+
*
|
|
43
|
+
* Source keys and type keys are checked for collisions before any mutations.
|
|
44
|
+
* Built-in action types (`workflow.start`) may not be overridden.
|
|
45
|
+
* @param sourceKey - Stable source identifier (extension name).
|
|
46
|
+
* @param actions - Map of action type string to factory.
|
|
47
|
+
* @throws If the source or any action type collides with an existing registration.
|
|
48
|
+
*/
|
|
49
|
+
register(sourceKey: string, actions: Readonly<Record<string, TransitionActionFactory>>): void;
|
|
50
|
+
/**
|
|
51
|
+
* Deregister all action factories contributed by a source.
|
|
52
|
+
*
|
|
53
|
+
* Built-in actions (`__builtin__`) cannot be deregistered.
|
|
54
|
+
* No-op when the source has no registered factories.
|
|
55
|
+
* @param sourceKey - Source identifier previously passed to {@link register}.
|
|
56
|
+
*/
|
|
57
|
+
deregister(sourceKey: string): void;
|
|
58
|
+
/**
|
|
59
|
+
* Resolve and invoke the action handler for the given invocation.
|
|
60
|
+
*
|
|
61
|
+
* Creates a fresh handler via the registered factory, then delegates
|
|
62
|
+
* execution to the handler's `execute` method.
|
|
63
|
+
* @param invocation - Action invocation descriptor from the matched rule.
|
|
64
|
+
* @param context - Evaluation context from the triggering artifact event.
|
|
65
|
+
* @throws If no factory is registered for `invocation.type`.
|
|
66
|
+
*/
|
|
67
|
+
dispatch(invocation: TransitionActionInvocation, context: TransitionEvaluationContext): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Check whether an action type is registered.
|
|
70
|
+
* @param actionType - Action type identifier to check.
|
|
71
|
+
* @returns `true` when the type has a registered factory.
|
|
72
|
+
*/
|
|
73
|
+
has(actionType: string): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* List all registered action type strings.
|
|
76
|
+
* @returns Array of registered action type identifiers.
|
|
77
|
+
*/
|
|
78
|
+
listTypes(): string[];
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region services/core/src/workflow-transitions/transition-rule-registry.d.ts
|
|
82
|
+
type TransitionRuleDefinitionInput = z.input<typeof TransitionRuleDefinitionSchema>;
|
|
83
|
+
interface SourceSnapshot {
|
|
84
|
+
ruleIds: readonly string[];
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A {@link TransitionRuleDefinition} with its optional `when` condition
|
|
88
|
+
* pre-parsed at registration time so the pipeline avoids re-parsing on
|
|
89
|
+
* every incoming artifact event.
|
|
90
|
+
*/
|
|
91
|
+
interface PreparedTransitionRule {
|
|
92
|
+
/** The original serializable rule definition. */
|
|
93
|
+
readonly rule: TransitionRuleDefinition;
|
|
94
|
+
/**
|
|
95
|
+
* Pre-parsed condition produced by `ConditionSchema.parse(rule.when)`.
|
|
96
|
+
* `undefined` when the rule has no `when` clause — it always matches.
|
|
97
|
+
*/
|
|
98
|
+
readonly condition: Condition | undefined;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Registry for serializable transition rules contributed by workflow bundles
|
|
102
|
+
* and extensions.
|
|
103
|
+
*
|
|
104
|
+
* Rules are stored under a stable source key (bundle ID or extension name) and
|
|
105
|
+
* indexed by event type for fast pipeline evaluation. Duplicate rule IDs
|
|
106
|
+
* hard-fail registration across all sources. Source keys support clean
|
|
107
|
+
* deregistration.
|
|
108
|
+
*
|
|
109
|
+
* Rules are purely static and serializable — no functions.
|
|
110
|
+
*/
|
|
111
|
+
declare class TransitionRuleRegistry {
|
|
112
|
+
/** All rules indexed by source key. */
|
|
113
|
+
private readonly rulesBySource;
|
|
114
|
+
/** Index: event type → flat list of prepared rules across all sources. */
|
|
115
|
+
private readonly rulesByEventType;
|
|
116
|
+
/** All registered rule IDs for collision detection. */
|
|
117
|
+
private readonly ruleIdSet;
|
|
118
|
+
/**
|
|
119
|
+
* Register transition rules from a source (bundle or extension).
|
|
120
|
+
*
|
|
121
|
+
* The source key, rule definitions, rule IDs, and conditions are checked
|
|
122
|
+
* before any mutations are applied — registration is atomic: either all rules
|
|
123
|
+
* from the source are added or none are.
|
|
124
|
+
* @param sourceKey - Stable identifier for the contributing source (bundle ID or extension name).
|
|
125
|
+
* @param rules - Rule definitions to register. IDs must not collide with existing registrations.
|
|
126
|
+
* @throws If the source or any rule ID collides, or if any rule definition or condition is invalid.
|
|
127
|
+
*/
|
|
128
|
+
register(sourceKey: string, rules: readonly TransitionRuleDefinitionInput[]): void;
|
|
129
|
+
/**
|
|
130
|
+
* Deregister all rules contributed by a source.
|
|
131
|
+
*
|
|
132
|
+
* No-op when the source has no registered rules.
|
|
133
|
+
* @param sourceKey - Source identifier previously passed to {@link register}.
|
|
134
|
+
*/
|
|
135
|
+
deregister(sourceKey: string): void;
|
|
136
|
+
/**
|
|
137
|
+
* Return all enabled prepared rules matching the given event type.
|
|
138
|
+
*
|
|
139
|
+
* Returns a shallow copy of the internal bucket to prevent external mutation.
|
|
140
|
+
* Each entry carries the original rule definition alongside its pre-parsed
|
|
141
|
+
* condition so the pipeline avoids re-parsing per event.
|
|
142
|
+
* @param eventType - Artifact event type to query.
|
|
143
|
+
* @returns Enabled prepared rules registered for the event type.
|
|
144
|
+
*/
|
|
145
|
+
getRulesForEvent(eventType: TransitionEventType): PreparedTransitionRule[];
|
|
146
|
+
/**
|
|
147
|
+
* Snapshot the current rule IDs registered under a source.
|
|
148
|
+
*
|
|
149
|
+
* Used for diagnostics and deduplication checks.
|
|
150
|
+
* @param sourceKey - Source identifier.
|
|
151
|
+
* @returns Snapshot of registered rule IDs, or `undefined` if the source has no rules.
|
|
152
|
+
*/
|
|
153
|
+
snapshotSource(sourceKey: string): SourceSnapshot | undefined;
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region services/core/src/workflow-transitions/transition-pipeline-service.d.ts
|
|
157
|
+
/**
|
|
158
|
+
* Service that watches artifact bus events and fires transition rules.
|
|
159
|
+
*
|
|
160
|
+
* On initialization the service subscribes to the three artifact lifecycle
|
|
161
|
+
* events (`artifact.created`, `artifact.revised`, `artifact.status.changed`).
|
|
162
|
+
* For each incoming event it evaluates the registered rules for that event type
|
|
163
|
+
* using `@makaio/rules`, then dispatches the matching rule's action through the
|
|
164
|
+
* {@link TransitionActionRegistry}.
|
|
165
|
+
*
|
|
166
|
+
* Loop protection: the service maintains an in-memory depth counter keyed by
|
|
167
|
+
* `${kind}:${id}` for each artifact. Each time a `workflow.start` action is
|
|
168
|
+
* dispatched for an artifact the counter is incremented. Incoming events for an
|
|
169
|
+
* artifact whose counter has reached {@link MAX_TRANSITION_DEPTH} are silently
|
|
170
|
+
* dropped. Counters are pruned after {@link DEPTH_ENTRY_TTL_MS} to prevent
|
|
171
|
+
* unbounded growth.
|
|
172
|
+
*/
|
|
173
|
+
declare class TransitionPipelineService extends BaseService {
|
|
174
|
+
/** Registry of serializable transition rules. */
|
|
175
|
+
readonly ruleRegistry: TransitionRuleRegistry;
|
|
176
|
+
/** Registry of executable action factories. */
|
|
177
|
+
readonly actionRegistry: TransitionActionRegistry;
|
|
178
|
+
/**
|
|
179
|
+
* In-memory depth tracker keyed by `${kind}:${id}`.
|
|
180
|
+
*
|
|
181
|
+
* Counts how many `workflow.start` actions have been dispatched for each
|
|
182
|
+
* artifact in the current execution chain. Entries expire after
|
|
183
|
+
* {@link DEPTH_ENTRY_TTL_MS}.
|
|
184
|
+
*/
|
|
185
|
+
private readonly depthMap;
|
|
186
|
+
/**
|
|
187
|
+
* @param bus - Bus instance used for artifact event subscriptions and workflow.start dispatch.
|
|
188
|
+
*/
|
|
189
|
+
constructor(bus: IMakaioBus);
|
|
190
|
+
/**
|
|
191
|
+
* Subscribe to all three artifact lifecycle event types.
|
|
192
|
+
*/
|
|
193
|
+
protected onInit(): void;
|
|
194
|
+
/**
|
|
195
|
+
* Evaluate all enabled rules for the event type, then dispatch matching actions.
|
|
196
|
+
* @param eventType - The artifact event type that fired.
|
|
197
|
+
* @param contextBase - Partial evaluation context built from the event payload.
|
|
198
|
+
*/
|
|
199
|
+
private handleArtifactEvent;
|
|
200
|
+
/**
|
|
201
|
+
* Resolve a status-change artifact ref into the exact revision that emitted
|
|
202
|
+
* the event before rule evaluation.
|
|
203
|
+
* @param ref - Revisioned artifact reference from the status.changed event.
|
|
204
|
+
* @returns Full artifact revision, or `undefined` when the artifact store cannot provide it.
|
|
205
|
+
*/
|
|
206
|
+
private resolveStatusChangedArtifact;
|
|
207
|
+
/**
|
|
208
|
+
* Resolve the previous revision for an artifact.revised event.
|
|
209
|
+
*
|
|
210
|
+
* The original `previous` context value remains the event's artifact ref for
|
|
211
|
+
* compatibility; this helper adds a full `previousArtifact` snapshot when the
|
|
212
|
+
* artifact store can provide it so rules can compare before/after state.
|
|
213
|
+
* @param ref - Revisioned artifact reference from the revised event.
|
|
214
|
+
* @returns Full previous artifact revision, or `undefined` when unavailable.
|
|
215
|
+
*/
|
|
216
|
+
private resolvePreviousRevisedArtifact;
|
|
217
|
+
/**
|
|
218
|
+
* Evaluate a single prepared rule condition and dispatch its action if the condition matches.
|
|
219
|
+
*
|
|
220
|
+
* The condition is pre-parsed at registration time, so this method only evaluates it
|
|
221
|
+
* against the current event context — no schema parsing overhead per event.
|
|
222
|
+
*
|
|
223
|
+
* When dispatch succeeds and the action type is `workflow.start`, the in-memory
|
|
224
|
+
* depth counter for the artifact is incremented so subsequent events in the same
|
|
225
|
+
* execution chain are correctly depth-checked.
|
|
226
|
+
* @param entry - The prepared rule (definition + pre-parsed condition) to evaluate.
|
|
227
|
+
* @param eventType - The artifact event type.
|
|
228
|
+
* @param contextBase - Partial evaluation context from the event payload.
|
|
229
|
+
* @param artifactKey - Composite `${kind}:${id}` key for depth tracking.
|
|
230
|
+
* @param incomingDepth - Current loop-protection depth for this artifact.
|
|
231
|
+
*/
|
|
232
|
+
private evaluateAndDispatch;
|
|
233
|
+
/**
|
|
234
|
+
* Derive the composite artifact key used for depth tracking.
|
|
235
|
+
* @param artifact - Artifact ref or revision from the event payload.
|
|
236
|
+
* @returns A `${kind}:${id}` string, falling back to `'unknown:unknown'` when
|
|
237
|
+
* the artifact lacks these fields.
|
|
238
|
+
*/
|
|
239
|
+
private artifactKey;
|
|
240
|
+
/**
|
|
241
|
+
* Read the current dispatch depth for the given artifact key.
|
|
242
|
+
*
|
|
243
|
+
* Prunes stale entries lazily on each read so the map does not grow
|
|
244
|
+
* unboundedly when artifacts are no longer active.
|
|
245
|
+
* @param key - Composite `${kind}:${id}` key.
|
|
246
|
+
* @returns Current dispatch count, or `0` when absent or expired.
|
|
247
|
+
*/
|
|
248
|
+
private readDepth;
|
|
249
|
+
/**
|
|
250
|
+
* Increment the dispatch depth counter for the given artifact key and reset its TTL.
|
|
251
|
+
* @param key - Composite `${kind}:${id}` key.
|
|
252
|
+
*/
|
|
253
|
+
private incrementDepth;
|
|
254
|
+
}
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region services/core/src/workflow-transitions/transition-contribution-processor.d.ts
|
|
257
|
+
/**
|
|
258
|
+
* Processes transition rule and action contributions from extensions.
|
|
259
|
+
*
|
|
260
|
+
* During activation: validates namespace prefixes, then registers rules and
|
|
261
|
+
* actions with the {@link TransitionPipelineService}. On stop: deregisters
|
|
262
|
+
* all contributions from that extension.
|
|
263
|
+
* @returns Contribution processor for transition pipeline registration.
|
|
264
|
+
*/
|
|
265
|
+
declare function createTransitionContributionProcessor(): ContributionProcessor;
|
|
266
|
+
//#endregion
|
|
267
|
+
export { WORKFLOW_START_ACTION_TYPE as a, TransitionActionRegistry as i, TransitionPipelineService as n, TransitionRuleRegistry as r, createTransitionContributionProcessor as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as ClientDefinition, U as ClientDefinitionInput } from "./hook-responses-
|
|
1
|
+
import { H as ClientDefinition, U as ClientDefinitionInput } from "./hook-responses-Dh1PWXqJ.mjs";
|
|
2
2
|
import * as _$zod from "zod";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
@@ -506,9 +506,9 @@ declare const ClientSchemas: {
|
|
|
506
506
|
cwd: z.ZodOptional<z.ZodString>;
|
|
507
507
|
machineId: z.ZodOptional<z.ZodString>;
|
|
508
508
|
startMode: z.ZodOptional<z.ZodEnum<{
|
|
509
|
+
fork: "fork";
|
|
509
510
|
fresh: "fresh";
|
|
510
511
|
resume: "resume";
|
|
511
|
-
fork: "fork";
|
|
512
512
|
clear: "clear";
|
|
513
513
|
compact: "compact";
|
|
514
514
|
}>>;
|
|
@@ -688,8 +688,8 @@ declare const ClientSchemas: {
|
|
|
688
688
|
reason: z.ZodEnum<{
|
|
689
689
|
update: "update";
|
|
690
690
|
install: "install";
|
|
691
|
-
uninstall: "uninstall";
|
|
692
691
|
"set-active": "set-active";
|
|
692
|
+
uninstall: "uninstall";
|
|
693
693
|
}>;
|
|
694
694
|
}, z.core.$strip>;
|
|
695
695
|
resolveBinary: {
|
|
@@ -1246,8 +1246,8 @@ declare const ClientVersionChangedSchema: z.ZodObject<{
|
|
|
1246
1246
|
reason: z.ZodEnum<{
|
|
1247
1247
|
update: "update";
|
|
1248
1248
|
install: "install";
|
|
1249
|
-
uninstall: "uninstall";
|
|
1250
1249
|
"set-active": "set-active";
|
|
1250
|
+
uninstall: "uninstall";
|
|
1251
1251
|
}>;
|
|
1252
1252
|
}, z.core.$strip>;
|
|
1253
1253
|
type ClientVersionChanged = z.infer<typeof ClientVersionChangedSchema>;
|
|
@@ -1486,9 +1486,9 @@ type ClientSessionObservedBase = z.infer<typeof ClientSessionObservedBaseSchema>
|
|
|
1486
1486
|
declare const CLIENT_SESSION_START_MODES: readonly ["fresh", "fork", "resume", "clear", "compact"];
|
|
1487
1487
|
/** Zod schema for the client-reported session start mode. */
|
|
1488
1488
|
declare const ClientSessionStartModeSchema: z.ZodEnum<{
|
|
1489
|
+
fork: "fork";
|
|
1489
1490
|
fresh: "fresh";
|
|
1490
1491
|
resume: "resume";
|
|
1491
|
-
fork: "fork";
|
|
1492
1492
|
clear: "clear";
|
|
1493
1493
|
compact: "compact";
|
|
1494
1494
|
}>;
|
|
@@ -1505,9 +1505,9 @@ declare const ClientSessionStartedSchema: z.ZodObject<{
|
|
|
1505
1505
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1506
1506
|
machineId: z.ZodOptional<z.ZodString>;
|
|
1507
1507
|
startMode: z.ZodOptional<z.ZodEnum<{
|
|
1508
|
+
fork: "fork";
|
|
1508
1509
|
fresh: "fresh";
|
|
1509
1510
|
resume: "resume";
|
|
1510
|
-
fork: "fork";
|
|
1511
1511
|
clear: "clear";
|
|
1512
1512
|
compact: "compact";
|
|
1513
1513
|
}>>;
|
|
@@ -2076,9 +2076,9 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
2076
2076
|
cwd: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2077
2077
|
machineId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2078
2078
|
startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2079
|
+
fork: "fork";
|
|
2079
2080
|
fresh: "fresh";
|
|
2080
2081
|
resume: "resume";
|
|
2081
|
-
fork: "fork";
|
|
2082
2082
|
clear: "clear";
|
|
2083
2083
|
compact: "compact";
|
|
2084
2084
|
}>>;
|
|
@@ -2258,8 +2258,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
2258
2258
|
reason: _$zod.ZodEnum<{
|
|
2259
2259
|
update: "update";
|
|
2260
2260
|
install: "install";
|
|
2261
|
-
uninstall: "uninstall";
|
|
2262
2261
|
"set-active": "set-active";
|
|
2262
|
+
uninstall: "uninstall";
|
|
2263
2263
|
}>;
|
|
2264
2264
|
}, _$zod_v4_core0.$strip>;
|
|
2265
2265
|
resolveBinary: {
|
|
@@ -2716,9 +2716,9 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
2716
2716
|
cwd: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2717
2717
|
machineId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2718
2718
|
startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2719
|
+
fork: "fork";
|
|
2719
2720
|
fresh: "fresh";
|
|
2720
2721
|
resume: "resume";
|
|
2721
|
-
fork: "fork";
|
|
2722
2722
|
clear: "clear";
|
|
2723
2723
|
compact: "compact";
|
|
2724
2724
|
}>>;
|
|
@@ -2898,8 +2898,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
2898
2898
|
reason: _$zod.ZodEnum<{
|
|
2899
2899
|
update: "update";
|
|
2900
2900
|
install: "install";
|
|
2901
|
-
uninstall: "uninstall";
|
|
2902
2901
|
"set-active": "set-active";
|
|
2902
|
+
uninstall: "uninstall";
|
|
2903
2903
|
}>;
|
|
2904
2904
|
}, _$zod_v4_core0.$strip>;
|
|
2905
2905
|
resolveBinary: {
|