@makaio/framework 1.0.0-dev-1788721567504 → 1.0.0-dev-1788832451167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/node.d.mts +1 -1
- package/dist/{artifact-Btbuib48.mjs → artifact-ClvHqL3w.mjs} +1 -1
- package/dist/attempt-fixtures-CnrnF5_4.mjs +1 -0
- package/dist/attempt-record-codec-B32Whx75.mjs +1 -0
- package/dist/authority-state-bootstrap-7Cgb9TR2.mjs +1 -0
- package/dist/bootstrap-start-client-DrvofWwi.mjs +1 -0
- package/dist/bus/index.d.mts +46 -28
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-CobBUqjo.mjs +2 -0
- package/dist/bus-Uy9C3TBM.mjs +1 -0
- package/dist/clients/index.d.mts +1 -1
- package/dist/clients/managed-install.d.mts +1 -1
- package/dist/code-execution/worker-entry.d.mts +1 -1
- package/dist/{context-resolution-CoKFKIqz.d.mts → context-resolution-BrtoXnez.d.mts} +97 -18
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/automation-trigger/index.d.mts +3 -3
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.d.mts +2 -2
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/code-execution/index.d.mts +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +5 -5
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +901 -183
- 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/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- package/dist/contracts/reaction/index.d.mts +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/shared/index.d.mts +2 -2
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/telemetry/index.d.mts +1 -1
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +2 -2
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{contribution-CUHLVLsT.d.mts → contribution-Crm-mctl.d.mts} +2 -2
- package/dist/{definition-DyGImhyi.d.mts → definition-u_5rYQtc.d.mts} +1 -1
- package/dist/{detached-extension-handle-D0aI0pJA.mjs → detached-extension-handle-DAXKQT9c.mjs} +1 -1
- package/dist/{execution-attempt-repository-CRdrgou3.d.mts → execution-attempt-repository-CgB7uiYD.d.mts} +242 -9
- package/dist/execution-attempt-repository-D0cCU7dI.mjs +1 -0
- package/dist/{execution-target-H0RWV7Py.mjs → execution-target-BcoF_oDB.mjs} +1 -1
- package/dist/{hook-responses-9Ywsqzzq.d.mts → hook-responses-DcapjzLb.d.mts} +1 -1
- package/dist/{index-D1wTWSLR.d.mts → index-BADuMxcP.d.mts} +458 -458
- package/dist/{index-8NdPPzUh2.d.mts → index-BDAfOYSw2.d.mts} +12 -12
- package/dist/{index-DHnSLGP4.d.mts → index-BDzqNCXs.d.mts} +1 -1
- package/dist/{index-CxwqnZpT.d.mts → index-BakMNLkB.d.mts} +175 -80
- package/dist/{index-B0VO0rAl.d.mts → index-Bo3LRb2u.d.mts} +1 -1
- package/dist/{index-CVcG4Q3X.d.mts → index-Bsr4rZl0.d.mts} +13 -13
- package/dist/{index-B_8bA2JW.d.mts → index-BvgLFm-U.d.mts} +1 -1
- package/dist/{index-Dg11JxKZ.d.mts → index-BwccWakG.d.mts} +1 -1
- package/dist/{index-BJdkVFX9.d.mts → index-BxOFB25y.d.mts} +335 -78
- package/dist/{index-37_b--BH.d.mts → index-C1PfDEIV.d.mts} +52 -47
- package/dist/{index-CPRQ4dWX.d.mts → index-CBixkF0n.d.mts} +12 -0
- package/dist/{index-CyWGSxrs.d.mts → index-CGJgZGqN.d.mts} +292 -292
- package/dist/{index--Ws52sWV2.d.mts → index-COOM1j_L2.d.mts} +4 -4
- package/dist/{index-BmevAPME2.d.mts → index-Cbv_3Xi12.d.mts} +1 -1
- package/dist/{index-DWBkiiXH.d.mts → index-CfJKwWJa.d.mts} +1 -1
- package/dist/{index-DV38-klA2.d.mts → index-CiKzWCW02.d.mts} +273 -26
- package/dist/{index-AdcDBUnc.d.mts → index-D6RMsZko.d.mts} +95 -95
- package/dist/{index-CIEycZrt.d.mts → index-DIhkK4Y0.d.mts} +1 -1
- package/dist/{index-BKIxdzIw.d.mts → index-DZXpKlyB.d.mts} +21 -21
- package/dist/{index-DBD_oFEt2.d.mts → index-DZnb56vt2.d.mts} +1 -1
- package/dist/{index-Cny5RvjO.d.mts → index-J-kv32zv.d.mts} +2 -2
- package/dist/{index-BNzUyVwV.d.mts → index-LOh6AEqx.d.mts} +10 -10
- package/dist/{index-CYjgoYeX.d.mts → index-LryUXslm.d.mts} +3 -3
- package/dist/{index-CFI6FxC7.d.mts → index-QJW9g1mG.d.mts} +2 -2
- package/dist/{index-B0yMCJW8.d.mts → index-rygpcDBV.d.mts} +1 -1
- package/dist/{index-I5a37JCm.d.mts → index-vXmPEZ5O.d.mts} +382 -82
- package/dist/kernel/cli/index.d.mts +2 -2
- package/dist/kernel/cli/register.d.mts +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +5 -5
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/{lib-Cm-uEoC1.mjs → lib-271rPR7A.mjs} +1 -1
- package/dist/{lib-BpGvHZye.mjs → lib-RFpLjUda.mjs} +1 -1
- package/dist/{load-extensions-BQoXaHhR.d.mts → load-extensions-CY8ELnCp.d.mts} +1 -1
- package/dist/{load-extensions-DG5LvPyM.mjs → load-extensions-D9inWcDy.mjs} +1 -1
- package/dist/{materialization-lVd9_-jr.mjs → materialization-B_LA9pfy.mjs} +1 -1
- package/dist/{namespace-DOezqDti.d.mts → namespace-BymM0nl_.d.mts} +27 -27
- package/dist/{namespace-Bo94cenp.d.mts → namespace-Cs-cOyrn.d.mts} +136 -136
- package/dist/{namespace-BdAK0lD8.d.mts → namespace-DdqVQSyc.d.mts} +2 -2
- package/dist/{namespace-BRuHzhPo.d.mts → namespace-DlrX8feY.d.mts} +45 -45
- package/dist/{namespace-CsnrP8AD.d.mts → namespace-Dw5H_KCF.d.mts} +1 -1
- package/dist/{namespace-CstawJgN.d.mts → namespace-DykqxEyX.d.mts} +2 -2
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/node/transports/index.d.mts +56 -16
- package/dist/node/transports/index.mjs +2 -2
- package/dist/package-CzKoZ1k0.mjs +7 -0
- package/dist/{package-DkZmsdCd.d.mts → package-DkpF17X_.d.mts} +458 -17
- package/dist/package.json +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-bun/index.mjs +1 -1
- package/dist/runtime-node/code-execution/index.d.mts +2 -2
- 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 +6 -6
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- 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 +22 -2
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-B3Pf7JP7.d.mts → schema-C9PauHXt.d.mts} +2 -2
- package/dist/{schemas-CJKHYluy.d.mts → schemas-B2UbGJpJ.d.mts} +15 -15
- package/dist/{schemas-B50oWBuj.d.mts → schemas-BDZFd3Wb.d.mts} +2 -2
- package/dist/schemas-CNkUEbIr.mjs +1 -0
- package/dist/schemas-CeHU889f.mjs +1 -0
- package/dist/{schemas-DTJtS14K.d.mts → schemas-ClGDFa44.d.mts} +136 -136
- package/dist/scoped-bus-DwVrmi_1.mjs +1 -0
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +3 -3
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/capability/index.d.mts +2 -2
- package/dist/services/code-execution/index.d.mts +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 +4 -4
- 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/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/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +124 -122
- 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/materialization/index.d.mts +1 -1
- package/dist/services/model-registry/index.d.mts +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/session/handlers/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/index.d.mts +3 -3
- package/dist/services/settings/namespace.d.mts +12 -12
- package/dist/services/settings/storage/clients-namespace.d.mts +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/providers-namespace.d.mts +1 -1
- package/dist/services/subagent/index.d.mts +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/tools/index.d.mts +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- 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 +1 -1
- package/dist/{src-BmSQ3rlz.mjs → src-DEgV239R.mjs} +1 -1
- 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/index.d.mts +1 -1
- package/dist/{transition-DxsrTsn4.d.mts → transition-DFA_ckdP.d.mts} +2 -2
- package/dist/{types-Czdm5op1.d.mts → types-DkfDRSTr.d.mts} +356 -356
- package/dist/{types-CtDGkyLx2.d.mts → types-p55qvq922.d.mts} +1 -1
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{view-builder-D-Wz_l_B.d.mts → view-builder-CYW_9n4A.d.mts} +1 -1
- package/dist/worker-B4nD_Erm.mjs +1 -0
- package/dist/{workflow-BomH9DBB.mjs → workflow-H8hsEikC.mjs} +1 -1
- package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -2
- package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
- package/dist/workflow-engine/index.d.mts +300 -216
- 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 +1 -1
- package/dist/workflow-engine/testing/conformance.d.mts +85 -0
- package/dist/workflow-engine/testing/conformance.mjs +1 -0
- package/dist/workflow-engine/testing/index.d.mts +12 -5
- package/dist/workflow-engine/testing/index.mjs +1 -1
- package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
- package/dist/workflow-engine/testing/sqlite.mjs +75 -46
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/workflow-worker-CmIkKnpF.mjs +2 -0
- package/package.json +13 -1
- package/dist/attempt-record-codec-BORASgzn.mjs +0 -1
- package/dist/authority-state-bootstrap-eitx6Ukn.mjs +0 -1
- package/dist/bus-D6NoBhIV.mjs +0 -2
- package/dist/bus-UgFdHybD.mjs +0 -1
- package/dist/package-UemD2NWn.mjs +0 -7
- package/dist/runtime-registration-client-BTtFpt_k.mjs +0 -1
- package/dist/schemas-C3kyQWGf.mjs +0 -1
- package/dist/schemas-TK29KWx-.mjs +0 -1
- package/dist/scoped-bus-DoPmCJeM.mjs +0 -1
- package/dist/worker-DlRdLf2d.mjs +0 -1
- package/dist/workflow-worker-DjUfKshi.mjs +0 -1
- /package/dist/{adapter-binding-CATvmGuz.d.mts → adapter-binding-D68U_Hmh.d.mts} +0 -0
- /package/dist/{base-orchestrator-B4YW6z_Q.d.mts → base-orchestrator-DA95InJU.d.mts} +0 -0
- /package/dist/{capability-service-BW1-teFU.d.mts → capability-service-s4ZYSEWc.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-lcv83Hq3.d.mts → client-binary-version-verifier-kd9LP9AQ.d.mts} +0 -0
- /package/dist/{client-BG0WX5Vz.d.mts → client-f5A-6La5.d.mts} +0 -0
- /package/dist/{clients-namespace-DLAjOTTb.d.mts → clients-namespace-q4PqU1cA.d.mts} +0 -0
- /package/dist/{config-namespace-CH7sJZ4f.d.mts → config-namespace-Cp71zTT0.d.mts} +0 -0
- /package/dist/{create-static-mount-DxuixuLZ.mjs → create-static-mount-CmQgA0jq.mjs} +0 -0
- /package/dist/{definition-BrgzUuFk.d.mts → definition-BHSzhrUf.d.mts} +0 -0
- /package/dist/{extension-context-QmFuHdq5.d.mts → extension-context-BmU5XKjI.d.mts} +0 -0
- /package/dist/{extension-discovery-Dhu3WplO.d.mts → extension-discovery-DnO7bINK.d.mts} +0 -0
- /package/dist/{filesystem-service-ZJ43SbBi.d.mts → filesystem-service-BBArEDPL.d.mts} +0 -0
- /package/dist/{index-BC-6qNeo.d.mts → index-B-zl-O-Y.d.mts} +0 -0
- /package/dist/{index-BfV8U4XX.d.mts → index-BB0HypzC.d.mts} +0 -0
- /package/dist/{index-8y4hT9WL.d.mts → index-Bf2MgOni.d.mts} +0 -0
- /package/dist/{index-B4svZC6L.d.mts → index-C9xVZ-gt.d.mts} +0 -0
- /package/dist/{index-kzIjbrS02.d.mts → index-CDLf3Fka2.d.mts} +0 -0
- /package/dist/{index-BuMsrli0.d.mts → index-CPWBGotQ.d.mts} +0 -0
- /package/dist/{index-pvX-BIpr2.d.mts → index-CcrXttC02.d.mts} +0 -0
- /package/dist/{index-B5dP8rj6.d.mts → index-CkpR5sIH.d.mts} +0 -0
- /package/dist/{index-CmbkCxj-.d.mts → index-Co1da7YK.d.mts} +0 -0
- /package/dist/{index-VzLAV0Yt.d.mts → index-CrcfeFOo.d.mts} +0 -0
- /package/dist/{index-BM56936c.d.mts → index-CsFN2nv7.d.mts} +0 -0
- /package/dist/{index-CVpaGijY.d.mts → index-D-JbTXIH.d.mts} +0 -0
- /package/dist/{index-l01zsChf.d.mts → index-D94yE5Dr.d.mts} +0 -0
- /package/dist/{index-D037TVsm.d.mts → index-DQD2-jcL.d.mts} +0 -0
- /package/dist/{index-D8D-yibS2.d.mts → index-DSLTgc7h2.d.mts} +0 -0
- /package/dist/{index-CL0Jo1b92.d.mts → index-DSN2t48K.d.mts} +0 -0
- /package/dist/{index-DQ8o3JGi.d.mts → index-DW4SE_sH.d.mts} +0 -0
- /package/dist/{index-DgspOUa72.d.mts → index-DYHxzwok2.d.mts} +0 -0
- /package/dist/{index-BMRB9yhF.d.mts → index-D_sMzTvv.d.mts} +0 -0
- /package/dist/{index-BFWvT0NG.d.mts → index-Df1c_2PF.d.mts} +0 -0
- /package/dist/{index-B2Y1Wvbh.d.mts → index-Dn_SGTgp.d.mts} +0 -0
- /package/dist/{index-C4V8Pmi4.d.mts → index-KAAnSRZt.d.mts} +0 -0
- /package/dist/{index-Ek4y8M9J2.d.mts → index-NhW2h2wH2.d.mts} +0 -0
- /package/dist/{index-CqdMbYmR.d.mts → index-mK-rgiit.d.mts} +0 -0
- /package/dist/{index-BTEJfzjE.d.mts → index-xaBSwHxJ.d.mts} +0 -0
- /package/dist/{json-value-DPqb-SJ8.d.mts → json-value-pX6xnLGw.d.mts} +0 -0
- /package/dist/{jsonl-transport-Cyyh5Wje.mjs → jsonl-transport-DQIlRX_y.mjs} +0 -0
- /package/dist/{lib-BqV8hYtk.mjs → lib-6eNAiNK7.mjs} +0 -0
- /package/dist/{namespace-DBO1OzYB.d.mts → namespace-9ychTEk_.d.mts} +0 -0
- /package/dist/{namespace-CVFaZv8x.d.mts → namespace-BGDq7HmW.d.mts} +0 -0
- /package/dist/{namespace-K23m4b0n.d.mts → namespace-BMG3RCdr.d.mts} +0 -0
- /package/dist/{namespace-CPm9dhi2.d.mts → namespace-BoyqQiW9.d.mts} +0 -0
- /package/dist/{namespace-BUYDmd0r.d.mts → namespace-CPR2xem0.d.mts} +0 -0
- /package/dist/{namespace-CPG6u60N.d.mts → namespace-CQEYu8az.d.mts} +0 -0
- /package/dist/{namespace-DqZweTbX.d.mts → namespace-CVg_cpkh.d.mts} +0 -0
- /package/dist/{namespace-B0ftHlK3.d.mts → namespace-DG0hjPcx.d.mts} +0 -0
- /package/dist/{orchestrator-shared-CNHSImNY.d.mts → orchestrator-shared-BzqqcY2z.d.mts} +0 -0
- /package/dist/{packages-CxPMEg8D.d.mts → packages-Cx-BwSZr.d.mts} +0 -0
- /package/dist/{provider-operation-DbdyFwNm.d.mts → provider-operation-B2wQST6N.d.mts} +0 -0
- /package/dist/{providers-namespace-CfZKp-C0.d.mts → providers-namespace-DsKTnuO1.d.mts} +0 -0
- /package/dist/{schemas-ChmQldVH.d.mts → schemas--LAbwXvw.d.mts} +0 -0
- /package/dist/{schemas-CF8QwRqt.d.mts → schemas-Bk50UoMA.d.mts} +0 -0
- /package/dist/{schemas-BCXvEWyF.d.mts → schemas-CBpjAhut.d.mts} +0 -0
- /package/dist/{schemas-bfZNpl0B.d.mts → schemas-CHRuwe18.d.mts} +0 -0
- /package/dist/{schemas-BGvkTiCx.d.mts → schemas-CzGN0eqW.d.mts} +0 -0
- /package/dist/{schemas-Pe892GgN.d.mts → schemas-DmULJ7Jk.d.mts} +0 -0
- /package/dist/{schemas-B6Q-qdmn.d.mts → schemas-Dxvjq-Bi.d.mts} +0 -0
- /package/dist/{schemas-CenET9Cq.d.mts → schemas-Wqo3_F6-.d.mts} +0 -0
- /package/dist/{server-lifecycle-L8zja8t8.d.mts → server-lifecycle-WFZcCMwF.d.mts} +0 -0
- /package/dist/{session-lineage-bUkd3fqx.d.mts → session-lineage-C9kppcCa.d.mts} +0 -0
- /package/dist/{src-BacfeiI4.mjs → src-DIyWekjW.mjs} +0 -0
- /package/dist/{storage-namespace-YmE8XCCL.d.mts → storage-namespace-BWU-8rvj.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-BsnYAPot.d.mts → storage-namespace-definition-B-8JKvzm.d.mts} +0 -0
- /package/dist/{types-DdpSEmTO.d.mts → types-8rMNe3AS.d.mts} +0 -0
- /package/dist/{types-DnK6Wa_Y.d.mts → types-BFeWU3WM.d.mts} +0 -0
- /package/dist/{types-tyv0B605.d.mts → types-BnPJa-C_.d.mts} +0 -0
- /package/dist/{types-OKJCOjme.d.mts → types-DQTCNM2i.d.mts} +0 -0
- /package/dist/{types-BlB23n4f.d.mts → types-DxHeL0pF.d.mts} +0 -0
- /package/dist/{window-registry-Pcf35cac.d.mts → window-registry-DQP5P2_0.d.mts} +0 -0
|
@@ -1,6 +1,94 @@
|
|
|
1
|
-
import { a as ProviderOperationClaim, i as ProcessBoundProvisionerLossProof, l as ProviderOperationOwnershipRecord, o as ProviderOperationClaimDecision, s as ProviderOperationMutationDecision } from "./provider-operation-
|
|
2
|
-
import { BoundedRecoveryEvidence, ExecutionAttemptOperationKind, ProviderAllocationRef, WorkerAllocationLifetime } from "@makaio/framework/contracts";
|
|
1
|
+
import { a as ProviderOperationClaim, i as ProcessBoundProvisionerLossProof, l as ProviderOperationOwnershipRecord, o as ProviderOperationClaimDecision, s as ProviderOperationMutationDecision } from "./provider-operation-B2wQST6N.mjs";
|
|
2
|
+
import { BoundedRecoveryEvidence, ExecutionAttemptInstruction, ExecutionAttemptOperationKind, ExecutionAttemptOperationReportRequest, ExecutionAttemptOperationReportResponse, ExecutionAttemptPreparationResult, ExecutionAttemptWorkspaceBinding, ProviderAllocationRef, WorkerAllocationLifetime } from "@makaio/framework/contracts";
|
|
3
3
|
|
|
4
|
+
//#region subsystems/workflow-engine/src/execution-attempt-decisions.d.ts
|
|
5
|
+
/** Facts read coherently by a realization before decoding runtime control state. */
|
|
6
|
+
interface AttemptReachability {
|
|
7
|
+
/** Whether the requested attempt exists and belongs to the requested owner. */
|
|
8
|
+
readonly matchesExecution: boolean;
|
|
9
|
+
/** Whether the attempt has a terminal settlement. */
|
|
10
|
+
readonly settled: boolean;
|
|
11
|
+
/** Whether this is still the owner's active attempt. */
|
|
12
|
+
readonly active: boolean;
|
|
13
|
+
/** Whether an allocation exists and is not durably terminated. */
|
|
14
|
+
readonly allocated: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Refusals shared by registration, admission, and readiness, before control decoding. */
|
|
17
|
+
type AttemptReachabilityDecision = Extract<RuntimeRegistrationDecision, {
|
|
18
|
+
readonly kind: 'not-found' | 'resolved' | 'fenced' | 'not-allocated';
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Evaluate the common reachability precedence without reading or mutating storage.
|
|
22
|
+
* A null result only permits further evaluation; it never authorizes an unguarded write.
|
|
23
|
+
* @param facts - Coherent lifecycle, owner, and allocation facts supplied by the realization.
|
|
24
|
+
* @returns The first refusal, or null when runtime control may be decoded and evaluated.
|
|
25
|
+
*/
|
|
26
|
+
declare function evaluateAttemptReachability(facts: AttemptReachability): AttemptReachabilityDecision | null;
|
|
27
|
+
/**
|
|
28
|
+
* Evaluate process-loss applicability after evidence parsing and claim authorization.
|
|
29
|
+
* Owner, lifetime, and incarnation refusals precede a recorded allocation.
|
|
30
|
+
* A null result permits only the realization's existing guarded settlement.
|
|
31
|
+
* @param attempt - Coherently read immutable provider binding and allocation facts.
|
|
32
|
+
* @param input - Owner identity and process-loss proof whose evidence the realization already parsed.
|
|
33
|
+
* @returns The first applicability refusal, or null to attempt the guarded write.
|
|
34
|
+
*/
|
|
35
|
+
declare function evaluateProvisionerIncarnationLoss(attempt: Pick<ExecutionAttemptRecord, 'executionId' | 'allocationLifetime' | 'provisionerIncarnationId' | 'allocationRef'>, input: Pick<RecordProvisionerIncarnationLostInput, 'executionId' | 'proof'>): Extract<ProvisionerIncarnationLossDecision, {
|
|
36
|
+
readonly kind: 'not-found' | 'not-process-bound' | 'incarnation-mismatch' | 'allocated';
|
|
37
|
+
}> | null;
|
|
38
|
+
/**
|
|
39
|
+
* Evaluate registration after reachability, preserving replay before busy refusal.
|
|
40
|
+
* An orphaned runtime probe may be reclaimed; a workload operation may not.
|
|
41
|
+
* @param control - Current decoded control state, not modified by this function.
|
|
42
|
+
* @param input - Runtime registration being considered.
|
|
43
|
+
* @returns A non-write decision, or null to attempt the realization's guarded registration.
|
|
44
|
+
*/
|
|
45
|
+
declare function evaluateRuntimeRegistration(control: AttemptControlState, input: RegisterRuntimeInput): Exclude<RuntimeRegistrationDecision, {
|
|
46
|
+
readonly kind: 'registered';
|
|
47
|
+
}> | null;
|
|
48
|
+
/**
|
|
49
|
+
* Evaluate admission after reachability: replay, busy, gate, readiness, generation, then Preparation.
|
|
50
|
+
* Probe operations are admitted before readiness because they establish that proof.
|
|
51
|
+
* @param control - Current decoded control state, not modified by this function.
|
|
52
|
+
* @param input - Operation admission being considered.
|
|
53
|
+
* @param fallbackAdmittedAt - Realization-supplied instant for a duplicate missing its stored instant.
|
|
54
|
+
* @param execution - Frozen assignment and Preparation receipts read with the control state.
|
|
55
|
+
* @returns A non-write decision, or null to attempt the realization's guarded admission.
|
|
56
|
+
*/
|
|
57
|
+
declare function evaluateOperationAdmission(control: AttemptControlState, input: AdmitOperationInput, fallbackAdmittedAt: string, execution: AttemptExecutionState): Exclude<OperationAdmissionDecision, {
|
|
58
|
+
readonly kind: 'admitted';
|
|
59
|
+
}> | null;
|
|
60
|
+
/**
|
|
61
|
+
* Evaluate successful Preparation, retaining historical replay before current-runtime fences.
|
|
62
|
+
* A null decision permits only a guarded write that saves the receipt and frees the slot together.
|
|
63
|
+
* @param reachability - Coherent owner, allocation and lifecycle facts.
|
|
64
|
+
* @param control - Current operation and runtime state.
|
|
65
|
+
* @param execution - Frozen instruction and retained Preparation history.
|
|
66
|
+
* @param input - Owner-scoped successful Preparation report.
|
|
67
|
+
* @returns A historical duplicate or refusal, or null to atomically accept the result.
|
|
68
|
+
*/
|
|
69
|
+
declare function evaluatePreparationReport(reachability: AttemptReachability, control: AttemptControlState, execution: AttemptExecutionState, input: ReportOperationInput): Exclude<OperationReportDecision, {
|
|
70
|
+
readonly kind: 'accepted';
|
|
71
|
+
}> | null;
|
|
72
|
+
/**
|
|
73
|
+
* Evaluate completion after presence and settlement checks, without owner or allocation fences.
|
|
74
|
+
* A replay is recognized even after its active slot has been cleared or reused.
|
|
75
|
+
* @param control - Current decoded control state, not modified by this function.
|
|
76
|
+
* @param input - Operation completion being considered.
|
|
77
|
+
* @returns A non-write decision, or null to attempt the realization's guarded completion.
|
|
78
|
+
*/
|
|
79
|
+
declare function evaluateOperationCompletion(control: AttemptControlState, input: CompleteOperationInput): Exclude<OperationCompletionDecision, {
|
|
80
|
+
readonly kind: 'completed';
|
|
81
|
+
}> | null;
|
|
82
|
+
/**
|
|
83
|
+
* Evaluate readiness after reachability: generation fence, replay, then busy refusal.
|
|
84
|
+
* @param control - Current decoded control state, not modified by this function.
|
|
85
|
+
* @param input - Runtime readiness report being considered.
|
|
86
|
+
* @returns A non-write decision, or null to attempt the realization's guarded readiness write.
|
|
87
|
+
*/
|
|
88
|
+
declare function evaluateRuntimeReadiness(control: AttemptControlState, input: MarkRuntimeReadyInput): Exclude<RuntimeReadinessDecision, {
|
|
89
|
+
readonly kind: 'ready';
|
|
90
|
+
}> | null;
|
|
91
|
+
//#endregion
|
|
4
92
|
//#region subsystems/workflow-engine/src/execution-attempt-repository.d.ts
|
|
5
93
|
/**
|
|
6
94
|
* Ordered constant array of every execution attempt lifecycle status.
|
|
@@ -59,6 +147,28 @@ declare const ATTEMPT_OPERATION_START_GATES: readonly ["open", "closed"];
|
|
|
59
147
|
* begin — when a newer attempt supersedes it, and when it settles.
|
|
60
148
|
*/
|
|
61
149
|
type AttemptOperationStartGate = (typeof ATTEMPT_OPERATION_START_GATES)[number];
|
|
150
|
+
/** Coherent durable facts required before an attempt may enter runtime registration. */
|
|
151
|
+
interface BootstrapStartState {
|
|
152
|
+
/** A terminal outcome or infrastructure settlement has been recorded. */
|
|
153
|
+
readonly settled: boolean;
|
|
154
|
+
/** The owner's active pointer still names this attempt, independently of settlement. */
|
|
155
|
+
readonly active: boolean;
|
|
156
|
+
/** An allocation reference is recorded, independently of its termination. */
|
|
157
|
+
readonly allocated: boolean;
|
|
158
|
+
/** Provider-operation state durably confirms allocation termination. */
|
|
159
|
+
readonly allocationTerminated: boolean;
|
|
160
|
+
/** One-way durable gate controlling whether new work may start. */
|
|
161
|
+
readonly operationStartGate: AttemptOperationStartGate;
|
|
162
|
+
/** Immutable ISO deadline, or null for legacy attempts that cannot newly bootstrap. */
|
|
163
|
+
readonly bootstrapDeadlineAt: string | null;
|
|
164
|
+
}
|
|
165
|
+
/** Trusted owner and attempt identity for the narrow bootstrap observation. */
|
|
166
|
+
interface ReadBootstrapStartStateInput {
|
|
167
|
+
/** Authenticated durable owner of the attempt. */
|
|
168
|
+
readonly executionId: ExecutionOwnerId;
|
|
169
|
+
/** Attempt whose durable start facts are observed. */
|
|
170
|
+
readonly executionAttemptId: string;
|
|
171
|
+
}
|
|
62
172
|
/**
|
|
63
173
|
* Compare two provider allocation references as values.
|
|
64
174
|
*
|
|
@@ -407,7 +517,7 @@ interface AttemptControlState {
|
|
|
407
517
|
* is what makes that omission a type error at the place the record is built,
|
|
408
518
|
* rather than a default silently resolved at each place it is read.
|
|
409
519
|
*/
|
|
410
|
-
interface ExecutionAttemptRecord extends AttemptControlState {
|
|
520
|
+
interface ExecutionAttemptRecord extends AttemptControlState, AttemptExecutionState {
|
|
411
521
|
/** Authority-created attempt identifier. */
|
|
412
522
|
readonly executionAttemptId: string;
|
|
413
523
|
/** Owner identifier of the aggregate this attempt belongs to. */
|
|
@@ -418,6 +528,8 @@ interface ExecutionAttemptRecord extends AttemptControlState {
|
|
|
418
528
|
readonly allocationRef: ProviderAllocationRef | null;
|
|
419
529
|
/** ISO-8601 timestamp when the attempt was created. */
|
|
420
530
|
readonly createdAt: string;
|
|
531
|
+
/** Immutable creation-time bootstrap deadline; null only for legacy records. */
|
|
532
|
+
readonly bootstrapDeadlineAt: string | null;
|
|
421
533
|
/**
|
|
422
534
|
* Provider bound to this attempt, or `null` before provisioning began.
|
|
423
535
|
*
|
|
@@ -514,7 +626,50 @@ interface ExecutionAttemptCreate {
|
|
|
514
626
|
readonly executionAttemptId: string;
|
|
515
627
|
/** Owner identifier the attempt belongs to. */
|
|
516
628
|
readonly executionId: ExecutionOwnerId;
|
|
629
|
+
/** Portable assignment snapshotted before this attempt becomes dispatchable. */
|
|
630
|
+
readonly instruction: ExecutionAttemptInstruction;
|
|
631
|
+
/** Explicit positive safe-integer bootstrap budget in milliseconds, frozen at creation. */
|
|
632
|
+
readonly bootstrapTimeoutMs: number;
|
|
633
|
+
}
|
|
634
|
+
/** Durable acceptance of one successful Preparation operation. */
|
|
635
|
+
interface PreparationReceipt {
|
|
636
|
+
/** Identity of the completed Preparation operation. */
|
|
637
|
+
readonly operationId: string;
|
|
638
|
+
/** Runtime realization to which the binding belongs. */
|
|
639
|
+
readonly runtimeGeneration: number;
|
|
640
|
+
/** Original semantic result, retained for replay comparison and diagnostics. */
|
|
641
|
+
readonly result: ExecutionAttemptPreparationResult;
|
|
642
|
+
}
|
|
643
|
+
/** Immutable assignment and accepted Preparation facts read with control state. */
|
|
644
|
+
interface AttemptExecutionState {
|
|
645
|
+
/** The attempt's original assignment, never the owner's latest configuration. */
|
|
646
|
+
readonly instruction: ExecutionAttemptInstruction;
|
|
647
|
+
/** Accepted historical results; only the current generation permits Invocation. */
|
|
648
|
+
readonly preparationReceipts: readonly PreparationReceipt[];
|
|
649
|
+
}
|
|
650
|
+
/** Owner-scoped query for the immutable assignment of one attempt. */
|
|
651
|
+
interface GetInstructionInput {
|
|
652
|
+
/** Owning aggregate, supplied by the authenticated host boundary. */
|
|
653
|
+
readonly executionId: ExecutionOwnerId;
|
|
654
|
+
/** Attempt whose stored assignment is requested. */
|
|
655
|
+
readonly executionAttemptId: string;
|
|
517
656
|
}
|
|
657
|
+
/** Successful Preparation report plus its trusted owner identity. */
|
|
658
|
+
type ReportOperationInput = ExecutionAttemptOperationReportRequest & {
|
|
659
|
+
/** Owning aggregate, supplied by the authenticated host boundary. */readonly executionId: ExecutionOwnerId;
|
|
660
|
+
};
|
|
661
|
+
/** Semantic acceptance or refusal of a Preparation result. */
|
|
662
|
+
type OperationReportDecision = {
|
|
663
|
+
readonly kind: 'accepted';
|
|
664
|
+
readonly binding: ExecutionAttemptWorkspaceBinding;
|
|
665
|
+
} | {
|
|
666
|
+
readonly kind: 'duplicate';
|
|
667
|
+
readonly binding: ExecutionAttemptWorkspaceBinding;
|
|
668
|
+
} | {
|
|
669
|
+
readonly kind: Extract<ExecutionAttemptOperationReportResponse, {
|
|
670
|
+
decision: 'refused';
|
|
671
|
+
}>['refusalReason'];
|
|
672
|
+
};
|
|
518
673
|
/**
|
|
519
674
|
* Input for claiming the provisioning phase of an attempt.
|
|
520
675
|
*
|
|
@@ -562,7 +717,29 @@ interface ExecutionAttemptOutcomeCommit<TOutcome> {
|
|
|
562
717
|
* submission once and never reads its own object again.
|
|
563
718
|
*/
|
|
564
719
|
readonly result: DurableOutcome<TOutcome>;
|
|
720
|
+
/** Runtime correlation checked atomically for a fresh commit; owner-only paths may omit it. */
|
|
721
|
+
readonly runtimeFence?: RuntimeOutcomeFence;
|
|
722
|
+
}
|
|
723
|
+
/** Runtime and operation expected to remain current when an outcome becomes durable. */
|
|
724
|
+
interface RuntimeOutcomeFence {
|
|
725
|
+
/** Registered runtime generation that produced the result. */
|
|
726
|
+
readonly runtimeGeneration: number;
|
|
727
|
+
/** Admitted operation, or null for a startup failure before any operation. */
|
|
728
|
+
readonly operationId: string | null;
|
|
565
729
|
}
|
|
730
|
+
/** A runtime result lost its execution slot before commit; the attempt remains available to its current runtime. */
|
|
731
|
+
declare class RuntimeOutcomeFenceMismatchError extends Error {
|
|
732
|
+
constructor();
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* Require a fresh runtime outcome to belong to the coherently read execution slot.
|
|
736
|
+
* Repositories call this after canonical replay/settlement decisions and repeat its
|
|
737
|
+
* predicates in the committing write. A mismatch must not settle the attempt's waiter.
|
|
738
|
+
* @param control - Current runtime and operation facts.
|
|
739
|
+
* @param fence - Expected runtime slot, absent for owner-only outcome submission.
|
|
740
|
+
* @throws RuntimeOutcomeFenceMismatchError when the originating runtime slot changed.
|
|
741
|
+
*/
|
|
742
|
+
declare function assertRuntimeOutcomeFence(control: AttemptControlState, fence: RuntimeOutcomeFence | undefined): void;
|
|
566
743
|
/** Input for extending the lease of a currently held provider operation. */
|
|
567
744
|
interface RenewProviderOperationClaimInput {
|
|
568
745
|
/** Claim the caller currently believes it holds. */
|
|
@@ -1122,6 +1299,11 @@ type RuntimeRegistrationDecision = {
|
|
|
1122
1299
|
* - `stale-generation`: the caller fenced against a generation the attempt has
|
|
1123
1300
|
* moved past. The current generation is reported so the caller can re-fence
|
|
1124
1301
|
* rather than re-read.
|
|
1302
|
+
* - `preparation-required`: Invocation requires a Workspace but no Preparation
|
|
1303
|
+
* receipt belongs to the current runtime generation.
|
|
1304
|
+
* - `preparation-not-required`: the assignment does not request a Workspace.
|
|
1305
|
+
* - `preparation-already-completed`: Preparation succeeded for this generation;
|
|
1306
|
+
* a fresh admission key must not run setup again.
|
|
1125
1307
|
*/
|
|
1126
1308
|
type OperationAdmissionDecision = {
|
|
1127
1309
|
readonly kind: 'admitted';
|
|
@@ -1148,6 +1330,12 @@ type OperationAdmissionDecision = {
|
|
|
1148
1330
|
readonly kind: 'gate-closed';
|
|
1149
1331
|
} | {
|
|
1150
1332
|
readonly kind: 'not-ready';
|
|
1333
|
+
} | {
|
|
1334
|
+
readonly kind: 'preparation-required';
|
|
1335
|
+
} | {
|
|
1336
|
+
readonly kind: 'preparation-not-required';
|
|
1337
|
+
} | {
|
|
1338
|
+
readonly kind: 'preparation-already-completed';
|
|
1151
1339
|
} | {
|
|
1152
1340
|
readonly kind: 'stale-generation';
|
|
1153
1341
|
readonly runtimeGeneration: number;
|
|
@@ -1160,6 +1348,8 @@ type OperationAdmissionDecision = {
|
|
|
1160
1348
|
* - `duplicate`: this operation was already completed. A replay, answered from
|
|
1161
1349
|
* {@link AttemptControlState.lastCompletedOperationId} rather than from an
|
|
1162
1350
|
* active operation that is by then gone.
|
|
1351
|
+
* - `result-required`: Preparation must submit its semantic report, and generic
|
|
1352
|
+
* Invocation must submit its terminal outcome, instead of merely freeing the slot.
|
|
1163
1353
|
* - `mismatch`: a different operation occupies the attempt. The active one is
|
|
1164
1354
|
* reported, because the caller's next move depends on which it is.
|
|
1165
1355
|
* - `not-active`: no operation occupies the attempt and this one is not the
|
|
@@ -1175,6 +1365,8 @@ type OperationCompletionDecision = {
|
|
|
1175
1365
|
readonly kind: 'completed';
|
|
1176
1366
|
} | {
|
|
1177
1367
|
readonly kind: 'duplicate';
|
|
1368
|
+
} | {
|
|
1369
|
+
readonly kind: 'result-required';
|
|
1178
1370
|
} | {
|
|
1179
1371
|
readonly kind: 'mismatch';
|
|
1180
1372
|
readonly activeOperationId: string;
|
|
@@ -1235,9 +1427,12 @@ type RuntimeReadinessDecision = {
|
|
|
1235
1427
|
/**
|
|
1236
1428
|
* Passive injected port for durable execution attempt persistence.
|
|
1237
1429
|
*
|
|
1238
|
-
* The
|
|
1239
|
-
*
|
|
1240
|
-
*
|
|
1430
|
+
* The port owns decision semantics, including refusal and replay precedence;
|
|
1431
|
+
* the consuming host owns their atomic realization. The shared pure runtime
|
|
1432
|
+
* evaluators report non-write decisions or null to attempt a guarded write.
|
|
1433
|
+
* They never replace transactional reads, conditional writes, affected-row
|
|
1434
|
+
* checks, or re-evaluation after contention. The Authority service calls
|
|
1435
|
+
* through this port but never owns the underlying tables or storage.
|
|
1241
1436
|
*
|
|
1242
1437
|
* The port owns two related records per attempt: canonical attempt state, and
|
|
1243
1438
|
* the fenced provider operation that tracks who may act on the attempt's
|
|
@@ -1390,6 +1585,12 @@ interface ExecutionAttemptRepository<TOutcome> {
|
|
|
1390
1585
|
* Called by the Authority before dispatch. The Authority owns
|
|
1391
1586
|
* `executionAttemptId` generation; the repository only persists. The new
|
|
1392
1587
|
* attempt atomically becomes the active attempt for its execution.
|
|
1588
|
+
* The instruction is validated and snapshotted before any write. It remains
|
|
1589
|
+
* immutable for the attempt's lifetime; no owner-context lookup may replace it.
|
|
1590
|
+
* The explicit bootstrap budget must be a positive safe integer whose sum with
|
|
1591
|
+
* the single creation instant is a representable Date. Validate it before any
|
|
1592
|
+
* mutation, and persist createdAt and bootstrapDeadlineAt from that same instant.
|
|
1593
|
+
* Later host policy changes never extend an existing attempt's deadline.
|
|
1393
1594
|
*
|
|
1394
1595
|
* The new attempt starts with its {@link AttemptControlState} at rest:
|
|
1395
1596
|
* generation `0`, no incarnation, no readiness, no active operation, and
|
|
@@ -1417,11 +1618,38 @@ interface ExecutionAttemptRepository<TOutcome> {
|
|
|
1417
1618
|
* writers — but a realization that lets the driver's own error escape would
|
|
1418
1619
|
* make the same caller bug indistinguishable from a storage fault, and
|
|
1419
1620
|
* distinguishable only by message text between one realization and another.
|
|
1420
|
-
* @param input - Attempt identity to persist.
|
|
1621
|
+
* @param input - Attempt identity and immutable assignment to persist.
|
|
1421
1622
|
* @returns The created attempt record.
|
|
1422
1623
|
* @throws A {@link DuplicateExecutionAttemptError} when an attempt with the same `executionAttemptId` already exists.
|
|
1423
1624
|
*/
|
|
1424
1625
|
createAttempt(input: ExecutionAttemptCreate): Promise<ExecutionAttemptRecord>;
|
|
1626
|
+
/**
|
|
1627
|
+
* Read owner matching, settlement, active pointer, allocation, terminal provider
|
|
1628
|
+
* state, start gate and immutable deadline in one coherent observation. This is
|
|
1629
|
+
* a required bootstrap port, not a recovery capability. It must not decode the
|
|
1630
|
+
* instruction, Preparation receipts or outcome to answer the narrow lookup.
|
|
1631
|
+
* Legacy records without a deadline remain readable with a null deadline; only
|
|
1632
|
+
* fresh bootstrap is refused, never unrelated reads or already-running work.
|
|
1633
|
+
* @param input - Trusted owner and attempt identity.
|
|
1634
|
+
* @returns The coherent state, or null for a missing attempt or mismatched owner.
|
|
1635
|
+
*/
|
|
1636
|
+
readBootstrapStartState(input: ReadBootstrapStartStateInput): Promise<BootstrapStartState | null>;
|
|
1637
|
+
/**
|
|
1638
|
+
* Read the frozen instruction of an owner-matching attempt, including historical attempts.
|
|
1639
|
+
* The returned snapshot must not allow mutation of the persisted assignment.
|
|
1640
|
+
* @param input - Attempt and owner identity.
|
|
1641
|
+
* @returns The original assignment, or null when the attempt does not belong to the owner.
|
|
1642
|
+
*/
|
|
1643
|
+
getInstruction(input: GetInstructionInput): Promise<ExecutionAttemptInstruction | null>;
|
|
1644
|
+
/**
|
|
1645
|
+
* Accept Preparation and release its active slot in one durable transition.
|
|
1646
|
+
* Historical identical reports return their original binding without restoring readiness.
|
|
1647
|
+
* Conflicting reports preserve the first accepted result. Neither success nor replay
|
|
1648
|
+
* settles the attempt; terminal failures use the canonical outcome boundary.
|
|
1649
|
+
* @param input - Successful Preparation report and trusted owner identity.
|
|
1650
|
+
* @returns Durable acceptance, historical duplicate, or refusal.
|
|
1651
|
+
*/
|
|
1652
|
+
reportOperation(input: ReportOperationInput): Promise<OperationReportDecision>;
|
|
1425
1653
|
/**
|
|
1426
1654
|
* Claim the durable provisioning phase immediately before a provider call.
|
|
1427
1655
|
*
|
|
@@ -1738,7 +1966,12 @@ interface ExecutionAttemptRepository<TOutcome> {
|
|
|
1738
1966
|
* {@link recordProvisionerIncarnationLost}. That transition won the
|
|
1739
1967
|
* terminal CAS, so a late outcome may neither overwrite its
|
|
1740
1968
|
* `settlementKind` nor reopen the attempt.
|
|
1741
|
-
* 4. `
|
|
1969
|
+
* 4. When supplied, `runtimeFence` must still match the current runtime
|
|
1970
|
+
* generation and operation (including its generation). A mismatch throws
|
|
1971
|
+
* {@link RuntimeOutcomeFenceMismatchError} without changing the attempt.
|
|
1972
|
+
* Checking this in the same write prevents owner decoding/validation awaits
|
|
1973
|
+
* from committing a startup failure against a replacement runtime.
|
|
1974
|
+
* 5. `accepted` — the outcome becomes canonical, the attempt settles as
|
|
1742
1975
|
* `outcome`, and its operation closes.
|
|
1743
1976
|
*
|
|
1744
1977
|
* The submission arrives already rendered, as the {@link DurableOutcome} the
|
|
@@ -1864,4 +2097,4 @@ interface ExecutionAttemptRecoveryOperations {
|
|
|
1864
2097
|
getRecoverableAttempts(executionId: ExecutionOwnerId): Promise<readonly RecoverableAttemptRecord[]>;
|
|
1865
2098
|
}
|
|
1866
2099
|
//#endregion
|
|
1867
|
-
export {
|
|
2100
|
+
export { RuntimeReadinessDecision as $, MarkRuntimeReadyInput as A, ReadBootstrapStartStateInput as B, ExecutionAttemptRepository as C, GetInstructionInput as D, ExecutionOwnerId as E, PendingAttemptAbandonmentDecision as F, RecordProvisionerIncarnationLostInput as G, RecordAllocationTerminatedInput as H, PreparationReceipt as I, RegisterRuntimeInput as J, RecordProvisioningAbsentInput as K, ProvisionerIncarnationLossDecision as L, OperationCompletionDecision as M, OperationReportDecision as N, HandoffProviderOperationInput as O, OutcomeCodec as P, RuntimeOutcomeFenceMismatchError as Q, ProvisioningAbsenceDecision as R, ExecutionAttemptRecoveryOperations as S, ExecutionAttemptStatus as T, RecordInfrastructureFailureInput as U, RecordAllocationInput as V, RecordProviderOperationUncertaintyInput as W, ReportOperationInput as X, RenewProviderOperationClaimInput as Y, RuntimeOutcomeFence as Z, EXECUTION_ATTEMPT_STATUSES as _, AllocationRefEvolutionDecision as a, sameAllocationRef as at, ExecutionAttemptOutcomeDecision as b, AttemptExecutionState as c, AttemptReachabilityDecision as ct, BootstrapStartState as d, evaluateOperationCompletion as dt, RuntimeRegistrationDecision as et, CompleteOperationInput as f, evaluatePreparationReport as ft, EXECUTION_ATTEMPT_SETTLEMENT_KINDS as g, DurableOutcome as h, evaluateRuntimeRegistration as ht, AllocationRefEvolution as i, durableOutcome as it, OperationAdmissionDecision as j, InfrastructureFailureDecision as k, AttemptOperationStartGate as l, evaluateAttemptReachability as lt, DuplicateExecutionAttemptError as m, evaluateRuntimeReadiness as mt, AdmitOperationInput as n, assertRuntimeOutcomeFence as nt, AllocationTerminationDecision as o, sameDurableOutcome as ot, DiscoveredAllocationDecision as p, evaluateProvisionerIncarnationLoss as pt, RecoverableAttemptRecord as q, AllocationRecordingDecision as r, decodeDurableOutcome as rt, AttemptControlState as s, AttemptReachability as st, ATTEMPT_OPERATION_START_GATES as t, TakeOverProviderOperationInput as tt, BeginProvisioningInput as u, evaluateOperationAdmission as ut, ExecutionAttemptCreate as v, ExecutionAttemptSettlementKind as w, ExecutionAttemptRecord as x, ExecutionAttemptOutcomeCommit as y, ProvisioningClaimDecision as z };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{canonicalStringify as e}from"@makaio/framework/utils";function t(e){return e.matchesExecution?e.settled?{kind:`resolved`}:e.active?e.allocated?null:{kind:`not-allocated`}:{kind:`fenced`}:{kind:`not-found`}}function n(e,t){return e.executionId===t.executionId?e.allocationLifetime===`provisioner-process-bound`?e.provisionerIncarnationId===null||e.provisionerIncarnationId!==t.proof.provisionerIncarnationId?{kind:`incarnation-mismatch`,provisionerIncarnationId:e.provisionerIncarnationId}:e.allocationRef===null?null:{kind:`allocated`,allocationRef:e.allocationRef}:{kind:`not-process-bound`,allocationLifetime:e.allocationLifetime}:{kind:`not-found`}}function r(e,t){return e.runtimeIncarnationId===t.runtimeIncarnationId?{kind:`duplicate`,runtimeGeneration:e.runtimeGeneration,runtimeReadyAt:e.runtimeReadyAt}:e.activeOperationId!==null&&e.activeOperationKind!==`runtime-probe`?{kind:`operation-active`,operationId:e.activeOperationId}:null}function i(e,t,n,r){if(e.activeOperationId!==null)return e.activeOperationKey===t.admissionKey?{kind:`duplicate`,operationId:e.activeOperationId,runtimeGeneration:e.activeOperationGeneration??e.runtimeGeneration,admittedAt:e.activeOperationAdmittedAt??n}:{kind:`operation-active`,operationId:e.activeOperationId};if(e.operationStartGate===`closed`)return{kind:`gate-closed`};if(t.operationKind!==`runtime-probe`&&e.runtimeReadyAt===null)return{kind:`not-ready`};if(e.runtimeGeneration!==t.runtimeGeneration)return{kind:`stale-generation`,runtimeGeneration:e.runtimeGeneration};let i=r.instruction.workspace!==void 0,a=r.preparationReceipts.some(t=>t.runtimeGeneration===e.runtimeGeneration);if(t.operationKind===`workspace-preparation`){if(!i)return{kind:`preparation-not-required`};if(a)return{kind:`preparation-already-completed`}}return(t.operationKind===`workload-invocation`||t.operationKind===`workflow-run`)&&i&&!a?{kind:`preparation-required`}:null}function a(n,r,i,a){if(!n.matchesExecution)return{kind:`not-found`};let o=i.preparationReceipts.find(e=>e.operationId===a.operationId);if(o!==void 0)return o.runtimeGeneration===a.runtimeGeneration&&e(o.result)===e(a.result)?{kind:`duplicate`,binding:o.result.binding}:{kind:`conflict`};let s=t(n);if(s!==null)return s;if(r.runtimeGeneration!==a.runtimeGeneration)return{kind:`stale-generation`};if(r.activeOperationId===null)return{kind:`no-active-operation`};if(r.activeOperationId!==a.operationId||r.activeOperationKind!==`workspace-preparation`)return{kind:`operation-mismatch`};if(r.activeOperationGeneration!==a.runtimeGeneration)return{kind:`stale-generation`};let c=i.instruction.workspace;if(c===void 0)return{kind:`preparation-not-required`};let l=c.sourceRoots.map(e=>e.id).sort(),u=a.result.binding.sourceRoots.map(e=>e.id).sort();return e(l)===e(u)?null:{kind:`binding-mismatch`}}function o(e,t){return e.lastCompletedOperationId===t.operationId?{kind:`duplicate`}:e.activeOperationId===null?{kind:`not-active`}:e.activeOperationId===t.operationId?e.activeOperationGeneration===t.runtimeGeneration?e.activeOperationKind===`workspace-preparation`||e.activeOperationKind===`workload-invocation`?{kind:`result-required`}:null:{kind:`stale-generation`}:{kind:`mismatch`,activeOperationId:e.activeOperationId}}function s(e,t){return e.runtimeGeneration===t.runtimeGeneration?e.runtimeReadyAt===null?e.activeOperationId===null?null:{kind:`operation-active`,operationId:e.activeOperationId}:{kind:`duplicate`,acceptedAt:e.runtimeReadyAt}:{kind:`stale-generation`}}const c=[`pending`,`provisioning`,`allocated`,`settled`],l=[`outcome`,`abandoned`,`infrastructure-failure`],u=[`open`,`closed`];function d(t,n){return e(t)===e(n)}function f(t,n){return e(JSON.parse(t))===e(JSON.parse(n))}function p(e,t){let n=e.serialize(e.parse(t));return{text:n,outcome:m(e,n)}}function m(e,t){return e.parse(JSON.parse(t))}var h=class extends Error{executionAttemptId;constructor(e,t){super(`Execution attempt '${e}' already exists`,t),this.name=`DuplicateExecutionAttemptError`,this.executionAttemptId=e}},g=class extends Error{constructor(){super(`Runtime outcome no longer matches the current generation and operation`),this.name=`RuntimeOutcomeFenceMismatchError`}};function _(e,t){if(t!==void 0&&(e.runtimeGeneration!==t.runtimeGeneration||e.activeOperationId!==t.operationId||t.operationId!==null&&e.activeOperationGeneration!==t.runtimeGeneration))throw new g}export{r as _,g as a,p as c,t as d,i as f,s as g,n as h,c as i,d as l,a as m,h as n,_ as o,o as p,l as r,m as s,u as t,f as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,E as t,M as n,N as r,O as i,_ as a,j as o,k as s,m as c,v as l,w as u}from"./schemas-
|
|
1
|
+
import{A as e,E as t,M as n,N as r,O as i,_ as a,j as o,k as s,m as c,v as l,w as u}from"./schemas-CeHU889f.mjs";import"./services/execution-target/namespace.mjs";import{z as d}from"zod";import{channelSubject as f,createBusNamespace as p,localSubject as m}from"@makaio/framework/core";const h=`docker-bootstrap`,g=p(`docker`,{"container.spawn":{request:i,response:s},"bootstrap.spawn":f({request:c,response:s}),"bootstrap.getChannelToken":m({request:d.object({}),response:d.object({token:d.string().min(1)})}),"container.stop":{request:n,response:r},"container.status":{request:e,response:o},"container.created":a,"container.started":u,"container.stopped":t,"container.destroyed":l}),_=g.subjects,v=g,y=_;export{_ as a,g as i,y as n,h as r,v as t};
|