@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,8 +1,8 @@
|
|
|
1
|
-
import { r as ExtensionDiscovery } from "./extension-discovery-
|
|
1
|
+
import { r as ExtensionDiscovery } from "./extension-discovery-DnO7bINK.mjs";
|
|
2
2
|
import { RegistrableBusNamespaceDefinition } from "@makaio/framework/core";
|
|
3
3
|
import { BusTransport, IMakaioBus, SubjectTelemetryProjectorRegistry } from "@makaio/framework/bus";
|
|
4
|
-
import { ExecutionAttemptOperationAdmitRefusalReason, ExecutionAttemptOperationDelivery, ExecutionAttemptOperationKind, ExecutionAttemptOperationReceipt, ExecutionAttemptRuntimeRegisterRefusalReason, ExtensionConfigProvider, IWorkerProvider, IWorkflowRunner, IWorkflowRunner as IWorkflowRunner$1, LoopGateHandler, MakaioNodeExtension, NormalizedWorkerCapabilities, OutcomeAckDecision, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, TrayManifest, WorkerAllocatedOutcome,
|
|
5
|
-
import { DispatchingAuth, TransportAuth } from "@makaio/framework/node/transports";
|
|
4
|
+
import { ExecutionAttemptBootstrapStartRefusalReason, ExecutionAttemptInstruction, ExecutionAttemptOperationAdmitRefusalReason, ExecutionAttemptOperationDelivery, ExecutionAttemptOperationKind, ExecutionAttemptOperationReceipt, ExecutionAttemptOutcome, ExecutionAttemptRuntimeRegisterRefusalReason, ExecutionAttemptWorkspaceBinding, ExtensionConfigProvider, IWorkerProvider, IWorkflowRunner, IWorkflowRunner as IWorkflowRunner$1, JsonValue, LoopGateHandler, MakaioNodeExtension, NormalizedWorkerCapabilities, OutcomeAckDecision, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, TrayManifest, WorkerAllocatedOutcome, WorkerBootstrapCredentials, WorkerCapabilities, WorkerContributionManifest, WorkerContributionRef, WorkerDispatch, WorkerMaterializationSpec, WorkerProvisionRequest, WorkerRequirements, WorkerRuntimeContext, WorkflowDefinition, WorkflowRunContext, WorkflowRunResult, WorkflowRunResult as WorkflowRunResult$1, WorkflowRunnerCompletion, WorkflowRunnerCompletion as WorkflowRunnerCompletion$1, WorkflowRunnerRunOptions, WorkflowWorkerConfig, WorkflowWorkerSource, WorkflowZodSchemas, WorkspaceRequirement } from "@makaio/framework/contracts";
|
|
5
|
+
import { DispatchingAuth, HmacAuth, TransportAuth } from "@makaio/framework/node/transports";
|
|
6
6
|
import { ContributionProcessor, ExtensionCoordinator, ExtensionRuntimeSurface, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, TransportProvider, WindowRegistry } from "@makaio/framework/kernel";
|
|
7
7
|
import { StorageEngine } from "@makaio/framework/storage/drizzle";
|
|
8
8
|
import { Toolset } from "@makaio/framework/tools";
|
|
@@ -13,7 +13,7 @@ import { IAdapterConfigRepository as IAdapterConfigRepository$1, PlatformDefault
|
|
|
13
13
|
import { PersistedMachineIdentity } from "@makaio/framework/node/machine-identity";
|
|
14
14
|
import { Hono } from "hono";
|
|
15
15
|
import { ConfigProvider } from "@makaio/framework/providers";
|
|
16
|
-
import { ExecutionAttemptAuthority, ExecutionAttemptRepository, WorkflowMaterializationSpecResolver } from "@makaio/framework/workflow-engine";
|
|
16
|
+
import { ExecutionAttemptAuthority, ExecutionAttemptRepository, WorkflowAttemptOutcome, WorkflowMaterializationSpecResolver } from "@makaio/framework/workflow-engine";
|
|
17
17
|
import { Server } from "node:http";
|
|
18
18
|
|
|
19
19
|
//#region runtimes/node/src/compose-adapter-runtime.d.ts
|
|
@@ -1065,7 +1065,9 @@ interface CoreBootOptions {
|
|
|
1065
1065
|
* without attempt tracking. Worker mode fails fast at boot when this
|
|
1066
1066
|
* is not provided.
|
|
1067
1067
|
*/
|
|
1068
|
-
readonly executionAttemptRepository?: ExecutionAttemptRepository<
|
|
1068
|
+
readonly executionAttemptRepository?: ExecutionAttemptRepository<WorkflowAttemptOutcome>;
|
|
1069
|
+
/** Required when constructing an attempt Authority: creation-time bootstrap budget in milliseconds. */
|
|
1070
|
+
readonly executionAttemptBootstrapTimeoutMs?: number;
|
|
1069
1071
|
/**
|
|
1070
1072
|
* Runtime data home for config, database, machine identity, and installed
|
|
1071
1073
|
* extensions. Defaults to the `MAKAIO_HOME` environment override when set,
|
|
@@ -1325,12 +1327,14 @@ interface WorkflowWorkerReadyMessage {
|
|
|
1325
1327
|
interface ThinWorkflowPiscinaAttemptBinding {
|
|
1326
1328
|
/** Authority-created attempt the dispatched thread registers against. */
|
|
1327
1329
|
readonly executionAttemptId: string;
|
|
1330
|
+
/** Persisted absolute deadline of this Attempt. */
|
|
1331
|
+
readonly bootstrapDeadlineAt: string;
|
|
1328
1332
|
}
|
|
1329
1333
|
/** Result and readiness promises for one workflow worker dispatch. */
|
|
1330
1334
|
interface ThinWorkflowPiscinaRunWithReadiness {
|
|
1331
1335
|
/** Terminal workflow result returned by the worker. */
|
|
1332
1336
|
readonly result: Promise<WorkflowRunResult$1>;
|
|
1333
|
-
/** Resolves
|
|
1337
|
+
/** Resolves after the Authority accepts this Runtime and admits its workflow run. */
|
|
1334
1338
|
readonly ready: Promise<WorkflowWorkerReadyMessage>;
|
|
1335
1339
|
}
|
|
1336
1340
|
/**
|
|
@@ -1403,6 +1407,66 @@ declare class ThinWorkflowPiscinaRunner implements IWorkflowRunner$1 {
|
|
|
1403
1407
|
private materializeTask;
|
|
1404
1408
|
}
|
|
1405
1409
|
//#endregion
|
|
1410
|
+
//#region runtimes/node/src/workflow-worker/worker-bus-auth.d.ts
|
|
1411
|
+
/**
|
|
1412
|
+
* Build transport authentication without interpreting credentials as grants.
|
|
1413
|
+
* @param secret - HMAC secret; undefined means no HMAC authentication.
|
|
1414
|
+
* @param identityId - Optional identity for the server's trusted-peer resolver.
|
|
1415
|
+
* @returns HMAC authenticator when a secret is supplied.
|
|
1416
|
+
*/
|
|
1417
|
+
declare function createWorkerBusAuth(secret: string | undefined, identityId?: string): HmacAuth | undefined;
|
|
1418
|
+
//#endregion
|
|
1419
|
+
//#region runtimes/node/src/workflow-worker/worker-bootstrap-budget.d.ts
|
|
1420
|
+
/** The immutable Attempt bootstrap budget has elapsed. */
|
|
1421
|
+
declare class BootstrapDeadlineExceededError extends Error {
|
|
1422
|
+
readonly code = "WORKER_BOOTSTRAP_DEADLINE_EXCEEDED";
|
|
1423
|
+
constructor();
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* Bound a bootstrap callback without adding reconnect or retry semantics.
|
|
1427
|
+
* @param bootstrapDeadlineAt - The Attempt's immutable absolute ISO deadline.
|
|
1428
|
+
* @param signal - Caller cancellation.
|
|
1429
|
+
* @param operation - Callback receiving cancellation bounded by that deadline.
|
|
1430
|
+
* @returns The timely callback result.
|
|
1431
|
+
*/
|
|
1432
|
+
declare function withWorkerBootstrapDeadline<T>(bootstrapDeadlineAt: string, signal: AbortSignal, operation: (signal: AbortSignal) => Promise<T>): Promise<T>;
|
|
1433
|
+
//#endregion
|
|
1434
|
+
//#region runtimes/node/src/workflow-worker/worker-bootstrap-exchange.d.ts
|
|
1435
|
+
/** Valid, schema-parsed protocol response; refusal is a nonretryable adapter error. */
|
|
1436
|
+
type BootstrapExchangeResult<TValue> = {
|
|
1437
|
+
readonly status: 'pending';
|
|
1438
|
+
} | {
|
|
1439
|
+
readonly status: 'complete';
|
|
1440
|
+
readonly value: TValue;
|
|
1441
|
+
};
|
|
1442
|
+
/** Adapters keep credential and start-authorization protocols outside the session loop. */
|
|
1443
|
+
interface WorkerBootstrapExchangeOptions<TSession, TValue> {
|
|
1444
|
+
readonly bootstrapDeadlineAt: string;
|
|
1445
|
+
readonly signal: AbortSignal;
|
|
1446
|
+
/** Acquire a handle synchronously, before any asynchronous connection work. */
|
|
1447
|
+
readonly createSession: () => TSession;
|
|
1448
|
+
/** Include authentication and subscription readiness; disable transport auto-reconnect. */
|
|
1449
|
+
readonly connect: (session: TSession, signal: AbortSignal) => Promise<void>;
|
|
1450
|
+
/** Parse protocol responses before returning; throw typed refusal errors. */
|
|
1451
|
+
readonly exchange: (session: TSession, options: {
|
|
1452
|
+
readonly signal: AbortSignal;
|
|
1453
|
+
readonly timeoutMs: number;
|
|
1454
|
+
}) => Promise<BootstrapExchangeResult<TValue>>;
|
|
1455
|
+
/** Revoke the handle, including pending connect, so late completion cannot revive it. */
|
|
1456
|
+
readonly dispose: (session: TSession) => void | Promise<void>;
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Connect and repeat a pre-registration exchange within one durable bootstrap budget.
|
|
1460
|
+
* Failed sessions are disposed before reconnecting. A successful session transfers
|
|
1461
|
+
* to the caller; no timer survives to affect registration or workload execution.
|
|
1462
|
+
* @param options - Protocol adapters and the Attempt's immutable deadline.
|
|
1463
|
+
* @returns Surviving session and the timely, parsed completion value.
|
|
1464
|
+
*/
|
|
1465
|
+
declare function runWorkerBootstrapExchange<TSession, TValue>(options: WorkerBootstrapExchangeOptions<TSession, TValue>): Promise<{
|
|
1466
|
+
readonly session: TSession;
|
|
1467
|
+
readonly value: TValue;
|
|
1468
|
+
}>;
|
|
1469
|
+
//#endregion
|
|
1406
1470
|
//#region runtimes/node/src/workflow-worker/node-workflow-runner-factory.d.ts
|
|
1407
1471
|
/** Parameters for composing workflow engine runner package options. */
|
|
1408
1472
|
interface CreateNodeWorkflowRunnerPackageOptionsParams {
|
|
@@ -1421,7 +1485,8 @@ interface CreateNodeWorkflowRunnerPackageOptionsParams {
|
|
|
1421
1485
|
*
|
|
1422
1486
|
* Required when `workflowRunner.mode` is `'in-process'` or omitted on an
|
|
1423
1487
|
* explicit runner object. Also used by Worker mode when no explicit
|
|
1424
|
-
* dispatch function is supplied
|
|
1488
|
+
* dispatch function is supplied, and reads portable owner context for
|
|
1489
|
+
* path-backed Worker executions. Ignored for Piscina mode.
|
|
1425
1490
|
*/
|
|
1426
1491
|
readonly bus?: IMakaioBus;
|
|
1427
1492
|
/**
|
|
@@ -1431,7 +1496,9 @@ interface CreateNodeWorkflowRunnerPackageOptionsParams {
|
|
|
1431
1496
|
* through to the workflow engine service options so the Authority
|
|
1432
1497
|
* service can delegate durable decisions.
|
|
1433
1498
|
*/
|
|
1434
|
-
readonly executionAttemptRepository?: ExecutionAttemptRepository<
|
|
1499
|
+
readonly executionAttemptRepository?: ExecutionAttemptRepository<WorkflowAttemptOutcome>;
|
|
1500
|
+
/** Explicit creation-time bootstrap budget, required whenever a repository is injected. */
|
|
1501
|
+
readonly executionAttemptBootstrapTimeoutMs?: number;
|
|
1435
1502
|
/** Host-owned resolvers for portable path-backed workflow starts. */
|
|
1436
1503
|
readonly workflowMaterializationSpecResolvers?: readonly WorkflowMaterializationSpecResolver[];
|
|
1437
1504
|
}
|
|
@@ -1453,18 +1520,17 @@ interface NodeWorkflowRunnerPackageOptions {
|
|
|
1453
1520
|
/**
|
|
1454
1521
|
* Injected execution attempt persistence port.
|
|
1455
1522
|
*
|
|
1456
|
-
*
|
|
1457
|
-
* Forwarded to the workflow engine service for Authority construction.
|
|
1523
|
+
* Forwarded whenever the host supplies it, independently of runner mode.
|
|
1458
1524
|
*/
|
|
1459
|
-
readonly executionAttemptRepository?: ExecutionAttemptRepository<
|
|
1525
|
+
readonly executionAttemptRepository?: ExecutionAttemptRepository<WorkflowAttemptOutcome>;
|
|
1460
1526
|
/**
|
|
1461
1527
|
* Execution attempt Authority constructed from the injected repository.
|
|
1462
1528
|
*
|
|
1463
|
-
* Present
|
|
1464
|
-
* Shared between
|
|
1529
|
+
* Present whenever the host supplies a repository and bootstrap budget.
|
|
1530
|
+
* Shared between an Authority-backed runner (for attempt creation before dispatch) and
|
|
1465
1531
|
* the workflow engine service (for outcome commitment).
|
|
1466
1532
|
*/
|
|
1467
|
-
readonly executionAttemptAuthority?: ExecutionAttemptAuthority<
|
|
1533
|
+
readonly executionAttemptAuthority?: ExecutionAttemptAuthority<WorkflowAttemptOutcome>;
|
|
1468
1534
|
/** Host-owned resolvers forwarded to the workflow engine service. */
|
|
1469
1535
|
readonly workflowMaterializationSpecResolvers?: readonly WorkflowMaterializationSpecResolver[];
|
|
1470
1536
|
}
|
|
@@ -1490,7 +1556,8 @@ interface CreateNodeWorkflowRunnerParams {
|
|
|
1490
1556
|
*
|
|
1491
1557
|
* Required when `runner` is present and its `mode` is `'in-process'` or
|
|
1492
1558
|
* omitted. Also required for `'worker'` mode when no explicit dispatch
|
|
1493
|
-
* function is supplied
|
|
1559
|
+
* function is supplied, and for reading portable owner context before
|
|
1560
|
+
* path-backed Worker dispatch. Ignored for Piscina mode.
|
|
1494
1561
|
*/
|
|
1495
1562
|
readonly bus?: IMakaioBus;
|
|
1496
1563
|
/**
|
|
@@ -1499,7 +1566,7 @@ interface CreateNodeWorkflowRunnerParams {
|
|
|
1499
1566
|
* Required when `runner.mode` is `'worker'`. The runner uses this
|
|
1500
1567
|
* to create attempts before dispatch and wait for committed outcomes.
|
|
1501
1568
|
*/
|
|
1502
|
-
readonly authority?: ExecutionAttemptAuthority<
|
|
1569
|
+
readonly authority?: ExecutionAttemptAuthority<WorkflowAttemptOutcome>;
|
|
1503
1570
|
}
|
|
1504
1571
|
/**
|
|
1505
1572
|
* Create a workflow-level runner based on the Node runtime configuration.
|
|
@@ -1531,7 +1598,15 @@ interface WorkerRunnerOptions {
|
|
|
1531
1598
|
* Required for authority-committed completions. When absent, the runner
|
|
1532
1599
|
* cannot create attempts or wait for durable outcomes.
|
|
1533
1600
|
*/
|
|
1534
|
-
readonly authority: ExecutionAttemptAuthority<
|
|
1601
|
+
readonly authority: ExecutionAttemptAuthority<WorkflowAttemptOutcome>;
|
|
1602
|
+
/**
|
|
1603
|
+
* Read portable owner input before creating a path-backed Attempt.
|
|
1604
|
+
* Self-contained source and definition configs need no storage lookup.
|
|
1605
|
+
* @param executionId - Workflow execution whose executable source is being frozen.
|
|
1606
|
+
* @param signal - Cancellation signal for the owner-context read.
|
|
1607
|
+
* @returns The portable owner context, or null when none was persisted.
|
|
1608
|
+
*/
|
|
1609
|
+
readonly readRunContext?: (executionId: string, signal: AbortSignal) => Promise<WorkflowRunContext | null>;
|
|
1535
1610
|
/**
|
|
1536
1611
|
* Extension contribution manifest forwarded to dispatched workers.
|
|
1537
1612
|
*
|
|
@@ -1561,6 +1636,8 @@ interface WorkerRunnerOptions {
|
|
|
1561
1636
|
*/
|
|
1562
1637
|
declare class WorkerRunner implements IWorkflowRunner {
|
|
1563
1638
|
private readonly options;
|
|
1639
|
+
/** The Attempt owner commits and converges results before runner completion. */
|
|
1640
|
+
readonly terminalAuthority = "authority";
|
|
1564
1641
|
/**
|
|
1565
1642
|
* @param options - Dispatch seam, authority, optional manifest, and optional requirements.
|
|
1566
1643
|
*/
|
|
@@ -1627,6 +1704,17 @@ interface OutcomeSubmitPayload {
|
|
|
1627
1704
|
readonly executionId: string;
|
|
1628
1705
|
readonly result: WorkflowRunResult;
|
|
1629
1706
|
}
|
|
1707
|
+
/** Payload for the generic terminal Attempt outcome ingress. */
|
|
1708
|
+
interface AttemptOutcomeSubmitPayload {
|
|
1709
|
+
/** Authority-created Attempt identity. */
|
|
1710
|
+
readonly executionAttemptId: string;
|
|
1711
|
+
/** Runtime generation accepted during registration. */
|
|
1712
|
+
readonly runtimeGeneration: number;
|
|
1713
|
+
/** Admitted operation for non-startup outcomes. */
|
|
1714
|
+
readonly operationId?: string;
|
|
1715
|
+
/** Technical failure or opaque workload result. */
|
|
1716
|
+
readonly outcome: ExecutionAttemptOutcome;
|
|
1717
|
+
}
|
|
1630
1718
|
/**
|
|
1631
1719
|
* Outcome ACK decisions that confirm durable delivery.
|
|
1632
1720
|
*
|
|
@@ -1654,6 +1742,26 @@ declare class OutcomeDeliveryError extends Error {
|
|
|
1654
1742
|
*/
|
|
1655
1743
|
constructor(decision: OutcomeAckDecision | 'deadline-exceeded', result: WorkflowRunResult, reason?: OutcomeDeliveryFailureReason);
|
|
1656
1744
|
}
|
|
1745
|
+
/** Error from delivery through the generic Attempt outcome ingress. */
|
|
1746
|
+
declare class AttemptOutcomeDeliveryError extends Error {
|
|
1747
|
+
readonly decision: OutcomeAckDecision | 'deadline-exceeded';
|
|
1748
|
+
readonly payload: AttemptOutcomeSubmitPayload;
|
|
1749
|
+
readonly reason: OutcomeDeliveryFailureReason;
|
|
1750
|
+
/**
|
|
1751
|
+
* @param decision - Authority rejection decision or deadline marker.
|
|
1752
|
+
* @param payload - Immutable Attempt outcome that could not be acknowledged.
|
|
1753
|
+
* @param reason - Stable delivery failure classification.
|
|
1754
|
+
*/
|
|
1755
|
+
constructor(decision: OutcomeAckDecision | 'deadline-exceeded', payload: AttemptOutcomeSubmitPayload, reason?: OutcomeDeliveryFailureReason);
|
|
1756
|
+
}
|
|
1757
|
+
/** Deadline failure for a non-terminal Authority request retried by the Runtime. */
|
|
1758
|
+
declare class AuthorityRequestDeliveryError extends Error {
|
|
1759
|
+
readonly reason: 'deadline-exceeded';
|
|
1760
|
+
/**
|
|
1761
|
+
* @param reason - Stable reason the request could not complete.
|
|
1762
|
+
*/
|
|
1763
|
+
constructor(reason?: 'deadline-exceeded');
|
|
1764
|
+
}
|
|
1657
1765
|
/**
|
|
1658
1766
|
* Optional reconnect callback invoked before each retry when the
|
|
1659
1767
|
* previous attempt failed with a transport-level error.
|
|
@@ -1664,6 +1772,11 @@ declare class OutcomeDeliveryError extends Error {
|
|
|
1664
1772
|
* will naturally fail again if the transport is still down.
|
|
1665
1773
|
*/
|
|
1666
1774
|
type OutcomeReconnect = () => Promise<void>;
|
|
1775
|
+
/** Common retry options for either legacy workflow or generic Attempt outcome delivery. */
|
|
1776
|
+
interface OutcomeSubmitOptions {
|
|
1777
|
+
readonly retry?: OutcomeSubmitRetryConfig;
|
|
1778
|
+
readonly reconnect?: OutcomeReconnect;
|
|
1779
|
+
}
|
|
1667
1780
|
/**
|
|
1668
1781
|
* Submit a workflow outcome for durable acknowledgement with
|
|
1669
1782
|
* decision-aware, reconnect-capable retry.
|
|
@@ -1688,10 +1801,16 @@ type OutcomeReconnect = () => Promise<void>;
|
|
|
1688
1801
|
* @returns Durable ACK decision (`accepted` or `duplicate`).
|
|
1689
1802
|
* @throws {@link OutcomeDeliveryError} On non-transient rejection or deadline expiry.
|
|
1690
1803
|
*/
|
|
1691
|
-
declare function submitOutcomeWithAck(bus: IMakaioBus, payload: OutcomeSubmitPayload, options?:
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1804
|
+
declare function submitOutcomeWithAck(bus: IMakaioBus, payload: OutcomeSubmitPayload, options?: OutcomeSubmitOptions): Promise<OutcomeAckDecision>;
|
|
1805
|
+
/**
|
|
1806
|
+
* Submit a generic Attempt terminal outcome with the same bounded retry policy
|
|
1807
|
+
* as legacy workflow results.
|
|
1808
|
+
* @param bus - Runtime bus authenticated as the Attempt peer.
|
|
1809
|
+
* @param payload - Fenced Attempt result and optional admitted operation.
|
|
1810
|
+
* @param options - Retry and reconnect behavior.
|
|
1811
|
+
* @returns Durable Authority acknowledgement.
|
|
1812
|
+
*/
|
|
1813
|
+
declare function submitAttemptOutcomeWithAck(bus: IMakaioBus, payload: AttemptOutcomeSubmitPayload, options?: OutcomeSubmitOptions): Promise<OutcomeAckDecision>;
|
|
1695
1814
|
//#endregion
|
|
1696
1815
|
//#region runtimes/node/src/workflow-worker/piscina-thin-workflow-provider.d.ts
|
|
1697
1816
|
/**
|
|
@@ -1998,7 +2117,7 @@ declare function createIsolatedWorkflowRuntime(options: CreateIsolatedWorkflowRu
|
|
|
1998
2117
|
* The harness receives these credentials after a successful bootstrap claim
|
|
1999
2118
|
* and uses them to establish the authenticated bus connection.
|
|
2000
2119
|
*/
|
|
2001
|
-
type HeadlessWorkerBootstrapCredentials =
|
|
2120
|
+
type HeadlessWorkerBootstrapCredentials = WorkerBootstrapCredentials;
|
|
2002
2121
|
/**
|
|
2003
2122
|
* Bootstrap the worker by claiming execution-scoped bus credentials.
|
|
2004
2123
|
*
|
|
@@ -2020,21 +2139,18 @@ type HeadlessWorkerBootstrap = (signal: AbortSignal) => Promise<HeadlessWorkerBo
|
|
|
2020
2139
|
*/
|
|
2021
2140
|
type HeadlessWorkerBusConnector = (bus: IMakaioBus, credentials: HeadlessWorkerBootstrapCredentials, signal: AbortSignal) => Promise<void>;
|
|
2022
2141
|
/**
|
|
2023
|
-
*
|
|
2142
|
+
* Workflow executable and contribution paths acquired inside Invocation.
|
|
2024
2143
|
*
|
|
2025
|
-
*
|
|
2026
|
-
*
|
|
2027
|
-
*
|
|
2028
|
-
* handles) should provide a cleanup callback to release them.
|
|
2144
|
+
* This legacy name does not declare a project Workspace. Cleanup is permitted
|
|
2145
|
+
* only after an acknowledged workload result without preservation obligations. A root
|
|
2146
|
+
* shared with the prepared project Workspace has that Workspace's cleanup owner.
|
|
2029
2147
|
*/
|
|
2030
2148
|
interface MaterializedWorkspace {
|
|
2031
2149
|
/** Materialized worker-local runtime context with absolute paths. */
|
|
2032
2150
|
readonly context: WorkerRuntimeContext;
|
|
2033
2151
|
/**
|
|
2034
|
-
* Optional
|
|
2035
|
-
*
|
|
2036
|
-
* Must be idempotent — the harness may call it multiple times or
|
|
2037
|
-
* after partial initialization. Rejections are swallowed.
|
|
2152
|
+
* Optional idempotent executable-root cleanup, after acknowledged execution.
|
|
2153
|
+
* Never called for technical failure, cancellation, unacknowledged outcomes or roots overlapping a project Workspace.
|
|
2038
2154
|
*/
|
|
2039
2155
|
readonly cleanup?: () => Promise<void>;
|
|
2040
2156
|
}
|
|
@@ -2044,7 +2160,7 @@ interface MaterializedWorkspace {
|
|
|
2044
2160
|
* The implementation resolves workspace snapshots or local directories,
|
|
2045
2161
|
* verifies contribution integrity, and returns a {@link MaterializedWorkspace}
|
|
2046
2162
|
* with absolute worker-local paths and an optional cleanup callback.
|
|
2047
|
-
* @param runContext -
|
|
2163
|
+
* @param runContext - Local DTO reconstructed from frozen input and selected Runtime inputs.
|
|
2048
2164
|
* @param signal - Cancellation signal.
|
|
2049
2165
|
* @returns Materialized workspace with runtime context and optional cleanup.
|
|
2050
2166
|
*/
|
|
@@ -2064,7 +2180,7 @@ type HeadlessWorkerContributionLoader = (runtimeContext: WorkerRuntimeContext, s
|
|
|
2064
2180
|
* The implementation loads the workflow from the run context and drives it
|
|
2065
2181
|
* through the orchestrator. The returned result is immutable.
|
|
2066
2182
|
* @param bus - Connected worker-local bus.
|
|
2067
|
-
* @param runContext -
|
|
2183
|
+
* @param runContext - Local DTO reconstructed from frozen input and selected Runtime inputs.
|
|
2068
2184
|
* @param runtimeContext - Materialized worker-local runtime context.
|
|
2069
2185
|
* @param signal - Effective cancellation signal (combines caller + bus cancel).
|
|
2070
2186
|
* @returns Immutable terminal workflow run result.
|
|
@@ -2092,11 +2208,19 @@ interface HeadlessWorkflowWorkerDeps {
|
|
|
2092
2208
|
readonly executionId: string;
|
|
2093
2209
|
/** Authority-created attempt identifier. */
|
|
2094
2210
|
readonly executionAttemptId: string;
|
|
2211
|
+
/** Immutable absolute deadline created with the Attempt, shared by every bootstrap phase. */
|
|
2212
|
+
readonly bootstrapDeadlineAt: string;
|
|
2213
|
+
/** Explicit host-delivered workflow environment; never inferred from ambient process state. */
|
|
2214
|
+
readonly workflowEnv: Readonly<Record<string, string>>;
|
|
2215
|
+
/** Private setup-process environment, supplied separately from workflowEnv and never persisted. */
|
|
2216
|
+
readonly setupEnv?: Readonly<NodeJS.ProcessEnv>;
|
|
2095
2217
|
/** Claim execution-scoped bus credentials. */
|
|
2096
2218
|
readonly bootstrap: HeadlessWorkerBootstrap;
|
|
2097
2219
|
/** Establish the authenticated bus connection. */
|
|
2098
2220
|
readonly connectBus: HeadlessWorkerBusConnector;
|
|
2099
|
-
/**
|
|
2221
|
+
/** Explicit project Workspace path; required only by an instruction requesting one. */
|
|
2222
|
+
readonly workspaceRoot?: string;
|
|
2223
|
+
/** Materialize executable and contribution paths inside admitted Invocation. */
|
|
2100
2224
|
readonly materialize: HeadlessWorkerMaterializer;
|
|
2101
2225
|
/** Load contribution packages from materialized entrypoints. */
|
|
2102
2226
|
readonly loadContributions: HeadlessWorkerContributionLoader;
|
|
@@ -2122,34 +2246,146 @@ interface HeadlessWorkflowWorkerDeps {
|
|
|
2122
2246
|
/**
|
|
2123
2247
|
* Terminal result of a headless worker execution.
|
|
2124
2248
|
*
|
|
2125
|
-
*
|
|
2126
|
-
*
|
|
2249
|
+
* Preserves technical failure, cancellation and actual workflow results, together with
|
|
2250
|
+
* the Authority's durable acknowledgement.
|
|
2127
2251
|
*/
|
|
2128
2252
|
interface HeadlessWorkflowWorkerResult {
|
|
2129
|
-
/**
|
|
2130
|
-
readonly
|
|
2253
|
+
/** Canonical technical failure, cancellation or the workflow's actual returned result. */
|
|
2254
|
+
readonly outcome: ExecutionAttemptOutcome;
|
|
2131
2255
|
/** Durable ACK decision from the Authority. */
|
|
2132
2256
|
readonly decision: OutcomeAckDecision;
|
|
2133
2257
|
}
|
|
2134
2258
|
/**
|
|
2135
|
-
*
|
|
2259
|
+
* Register one Runtime, then run optional Workspace Preparation and Invocation.
|
|
2136
2260
|
*
|
|
2137
|
-
* The
|
|
2138
|
-
*
|
|
2139
|
-
*
|
|
2140
|
-
*
|
|
2141
|
-
*
|
|
2142
|
-
*
|
|
2143
|
-
* @param deps - Injected provider and product dependencies.
|
|
2144
|
-
* @param signal - Cancellation signal from the process/caller.
|
|
2145
|
-
* @returns Terminal result and durable ACK decision.
|
|
2146
|
-
* @throws {@link OutcomeDeliveryError} When the Authority rejects the outcome.
|
|
2147
|
-
* @throws {@link RuntimeRegistrationRefusedError} When the Authority refuses this runtime.
|
|
2148
|
-
* @throws {@link OperationAdmissionRefusedError} When the Authority refuses the run.
|
|
2149
|
-
* @throws When bootstrap, connection, materialization, or runtime composition fails.
|
|
2261
|
+
* The authenticated control bus stays connected through the canonical outcome
|
|
2262
|
+
* acknowledgement. Workflow code acquisition and runtime composition happen
|
|
2263
|
+
* only inside the installed workflow adapter's admitted Invocation.
|
|
2264
|
+
* @param deps - Provider and installed workflow adapter dependencies.
|
|
2265
|
+
* @param signal - Cancellation signal from the process or caller.
|
|
2266
|
+
* @returns Canonical outcome and durable acknowledgement.
|
|
2150
2267
|
*/
|
|
2151
2268
|
declare function runHeadlessWorkflowWorker(deps: HeadlessWorkflowWorkerDeps, signal: AbortSignal): Promise<HeadlessWorkflowWorkerResult>;
|
|
2152
2269
|
//#endregion
|
|
2270
|
+
//#region runtimes/node/src/workspace-preparation/setup-command.d.ts
|
|
2271
|
+
/** Result of one bounded setup command, after its owned process group has stopped. */
|
|
2272
|
+
interface SetupCommandResult {
|
|
2273
|
+
readonly status: 'completed' | 'failed' | 'cancelled' | 'timed-out' | 'spawn-failed' | 'stop-failed';
|
|
2274
|
+
readonly exitCode: number | null;
|
|
2275
|
+
/** Generic diagnostics deliberately exclude command arguments and environment values. */
|
|
2276
|
+
readonly message?: string;
|
|
2277
|
+
}
|
|
2278
|
+
//#endregion
|
|
2279
|
+
//#region runtimes/node/src/workspace-preparation/workspace-preparation.d.ts
|
|
2280
|
+
/** First failed setup command, or successful completion of the complete frozen recipe. */
|
|
2281
|
+
interface WorkspaceSetupResult extends SetupCommandResult {
|
|
2282
|
+
readonly commandIndex?: number;
|
|
2283
|
+
}
|
|
2284
|
+
/** Setup inputs supplied by the host, not stored in the portable workspace requirement. */
|
|
2285
|
+
interface WorkspaceSetupOptions {
|
|
2286
|
+
readonly signal?: AbortSignal;
|
|
2287
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
2288
|
+
}
|
|
2289
|
+
/** A local realization whose release remains an explicit caller decision. */
|
|
2290
|
+
interface LocalWorkspaceHandle {
|
|
2291
|
+
readonly binding: ExecutionAttemptWorkspaceBinding;
|
|
2292
|
+
/** Execute the already-authorized recipe; failures retain the handle and files. */
|
|
2293
|
+
runSetup(options?: WorkspaceSetupOptions): Promise<WorkspaceSetupResult>;
|
|
2294
|
+
/** Call only after preservation policy permits release. External roots are never deleted. */
|
|
2295
|
+
release(): Promise<void>;
|
|
2296
|
+
}
|
|
2297
|
+
//#endregion
|
|
2298
|
+
//#region runtimes/node/src/workflow-worker/workload-invocation.d.ts
|
|
2299
|
+
/** One installed, versioned local executor for an opaque workload instruction. */
|
|
2300
|
+
interface InstalledWorkloadAdapter {
|
|
2301
|
+
/** Workload kind this adapter accepts. */
|
|
2302
|
+
readonly kind: string;
|
|
2303
|
+
/** Exact frozen input version this adapter accepts. */
|
|
2304
|
+
readonly version: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* Bind workload-local control before any mutating operation is admitted.
|
|
2307
|
+
*
|
|
2308
|
+
* The returned signal may combine caller cancellation with workload-specific
|
|
2309
|
+
* control. Its release stays live through terminal acknowledgement so a
|
|
2310
|
+
* cancellation cannot race a locally detached subscription.
|
|
2311
|
+
* @param input - Frozen instruction and outer Runtime cancellation signal.
|
|
2312
|
+
* @returns Effective work signal and a release operation for local control state.
|
|
2313
|
+
*/
|
|
2314
|
+
bindControl?(input: {
|
|
2315
|
+
readonly instruction: ExecutionAttemptInstruction;
|
|
2316
|
+
readonly signal?: AbortSignal;
|
|
2317
|
+
}): Promise<WorkloadControlBinding>;
|
|
2318
|
+
/**
|
|
2319
|
+
* Execute only after Invocation admission.
|
|
2320
|
+
*
|
|
2321
|
+
* An adapter may acquire and load its own executable artifact here. That is
|
|
2322
|
+
* workload execution, not Workspace Preparation.
|
|
2323
|
+
* @param input - Frozen instruction, accepted optional Workspace binding and cancellation.
|
|
2324
|
+
* @returns Opaque JSON result interpreted by the owner-side adapter.
|
|
2325
|
+
*/
|
|
2326
|
+
invoke(input: {
|
|
2327
|
+
readonly instruction: ExecutionAttemptInstruction;
|
|
2328
|
+
readonly workspace?: ExecutionAttemptWorkspaceBinding;
|
|
2329
|
+
readonly signal?: AbortSignal;
|
|
2330
|
+
}): Promise<JsonValue>;
|
|
2331
|
+
}
|
|
2332
|
+
/** Workload-local control subscription retained through the terminal outcome acknowledgement. */
|
|
2333
|
+
interface WorkloadControlBinding {
|
|
2334
|
+
/** Effective signal for local setup and workload execution. */
|
|
2335
|
+
readonly signal: AbortSignal;
|
|
2336
|
+
/** Detach local control state after the terminal outcome is acknowledged. */
|
|
2337
|
+
release(): void;
|
|
2338
|
+
}
|
|
2339
|
+
/** Runtime-local dependencies for realizing one optional Workspace requirement. */
|
|
2340
|
+
interface WorkloadInvocationPreparation {
|
|
2341
|
+
/** Bind/create and retain one local Workspace until explicit release. */
|
|
2342
|
+
prepare(input: {
|
|
2343
|
+
readonly requirement: WorkspaceRequirement;
|
|
2344
|
+
readonly workspaceRoot: string;
|
|
2345
|
+
readonly signal?: AbortSignal;
|
|
2346
|
+
}): Promise<LocalWorkspaceHandle>;
|
|
2347
|
+
}
|
|
2348
|
+
/** Inputs for the fixed Preparation → Invocation sequence of an already registered Runtime. */
|
|
2349
|
+
interface RunWorkloadInvocationOptions {
|
|
2350
|
+
/** Authority-created Attempt identity. */
|
|
2351
|
+
readonly executionAttemptId: string;
|
|
2352
|
+
/** Generation accepted during Runtime registration. */
|
|
2353
|
+
readonly runtimeGeneration: number;
|
|
2354
|
+
/** Explicit host-selected local root, required only by a declared Workspace. */
|
|
2355
|
+
readonly workspaceRoot?: string;
|
|
2356
|
+
/** Private host environment for setup subprocesses; never included in the portable instruction or receipts. */
|
|
2357
|
+
readonly setupEnv?: Readonly<NodeJS.ProcessEnv>;
|
|
2358
|
+
/** Installed workload adapters available in this Runtime. */
|
|
2359
|
+
readonly adapters: readonly InstalledWorkloadAdapter[];
|
|
2360
|
+
/** Cancellation signal forwarded to source preparation, setup and workload execution. */
|
|
2361
|
+
readonly signal?: AbortSignal;
|
|
2362
|
+
/** Reconnect hook reused for terminal outcome acknowledgement. */
|
|
2363
|
+
readonly reconnect?: OutcomeReconnect;
|
|
2364
|
+
/** Bounded retry policy reused for terminal outcome acknowledgement. */
|
|
2365
|
+
readonly retry?: OutcomeSubmitRetryConfig;
|
|
2366
|
+
/** Local Workspace realization seam; defaults to the Node bind/create helper. */
|
|
2367
|
+
readonly preparation?: WorkloadInvocationPreparation;
|
|
2368
|
+
}
|
|
2369
|
+
/** Durable result visible after generic terminal-outcome acknowledgement. */
|
|
2370
|
+
interface WorkloadInvocationResult {
|
|
2371
|
+
/** Exact technical failure or opaque workload result committed by the Authority. */
|
|
2372
|
+
readonly outcome: ExecutionAttemptOutcome;
|
|
2373
|
+
/** Authority acknowledgement after canonical owner convergence. */
|
|
2374
|
+
readonly decision: OutcomeAckDecision;
|
|
2375
|
+
}
|
|
2376
|
+
/**
|
|
2377
|
+
* Execute the fixed generic workload sequence for an already registered Runtime.
|
|
2378
|
+
*
|
|
2379
|
+
* No Workspace is synthesized for workspace-less instructions. The default
|
|
2380
|
+
* Preparation installs no source strategy; an injected Preparation can supply
|
|
2381
|
+
* one. Executable acquisition stays inside the admitted adapter invocation.
|
|
2382
|
+
* @param bus - Runtime bus authenticated as this Attempt.
|
|
2383
|
+
* @param options - Registered Attempt, installed adapters and optional local Workspace locator.
|
|
2384
|
+
* @returns The terminal outcome after canonical Authority acknowledgement.
|
|
2385
|
+
* @throws AuthorityRequestDeliveryError When admission or Preparation acknowledgement exceeds its delivery deadline.
|
|
2386
|
+
*/
|
|
2387
|
+
declare function runWorkloadInvocation(bus: IMakaioBus, options: RunWorkloadInvocationOptions): Promise<WorkloadInvocationResult>;
|
|
2388
|
+
//#endregion
|
|
2153
2389
|
//#region runtimes/node/src/workflow-worker/workflow-loader.d.ts
|
|
2154
2390
|
/**
|
|
2155
2391
|
* Resolve a {@link RuntimeLoadedWorkflow} from the parsed worker config.
|
|
@@ -2292,9 +2528,10 @@ interface OperationDeliveryEndpoint {
|
|
|
2292
2528
|
* @param bus - Connected runtime bus the endpoint is installed on.
|
|
2293
2529
|
* @param identity - Attempt and incarnation this runtime is; the delivery filter.
|
|
2294
2530
|
* @param handlers - Handlers for the operation kinds this runtime can execute.
|
|
2531
|
+
* @param signal - Optional cancellation while the endpoint becomes visible.
|
|
2295
2532
|
* @returns The installed endpoint: a generation binder and its cleanup.
|
|
2296
2533
|
*/
|
|
2297
|
-
declare function installOperationDeliveryEndpoint(bus: IMakaioBus, identity: OperationDeliveryEndpointIdentity, handlers: OperationDeliveryHandlers): Promise<OperationDeliveryEndpoint>;
|
|
2534
|
+
declare function installOperationDeliveryEndpoint(bus: IMakaioBus, identity: OperationDeliveryEndpointIdentity, handlers: OperationDeliveryHandlers, signal?: AbortSignal): Promise<OperationDeliveryEndpoint>;
|
|
2298
2535
|
/**
|
|
2299
2536
|
* Error thrown when the authority refuses a runtime registration.
|
|
2300
2537
|
*
|
|
@@ -2327,20 +2564,6 @@ declare class OperationAdmissionRefusedError extends Error {
|
|
|
2327
2564
|
*/
|
|
2328
2565
|
constructor(executionAttemptId: string, admissionKey: string, refusalReason: ExecutionAttemptOperationAdmitRefusalReason | undefined);
|
|
2329
2566
|
}
|
|
2330
|
-
/**
|
|
2331
|
-
* How long a registration keeps retrying a `not-allocated` refusal.
|
|
2332
|
-
*
|
|
2333
|
-
* The allocation-visibility window: a provider that runs its runtime in
|
|
2334
|
-
* process starts it inside `provision()`, and the pool records the returned
|
|
2335
|
-
* allocation only afterwards. Until that record is durable the authority
|
|
2336
|
-
* answers `not-allocated`, which is a fact about timing, not about this
|
|
2337
|
-
* runtime. Same value and same reasoning as `BOOTSTRAP_CONNECT_TIMEOUT_MS` in
|
|
2338
|
-
* the container entrypoint's bootstrap claim, which retries the equivalent
|
|
2339
|
-
* `attempt-pending` rejection. The window exists because no provider has an
|
|
2340
|
-
* activation step the pool drives after the record is durable; until such a
|
|
2341
|
-
* barrier exists, the retry is the runtime's only way to wait for the record.
|
|
2342
|
-
*/
|
|
2343
|
-
declare const ALLOCATION_VISIBILITY_DEADLINE_MS = 10000;
|
|
2344
2567
|
/** Parameters for registering this runtime incarnation with the authority. */
|
|
2345
2568
|
interface RegisterWorkerRuntimeOptions {
|
|
2346
2569
|
/** Authority-created attempt identifier this runtime claims. */
|
|
@@ -2349,13 +2572,6 @@ interface RegisterWorkerRuntimeOptions {
|
|
|
2349
2572
|
readonly runtimeIncarnationId: string;
|
|
2350
2573
|
/** Cancellation signal for the registration request. */
|
|
2351
2574
|
readonly signal?: AbortSignal;
|
|
2352
|
-
/**
|
|
2353
|
-
* How long to keep retrying a `not-allocated` refusal, in milliseconds.
|
|
2354
|
-
*
|
|
2355
|
-
* Defaults to {@link ALLOCATION_VISIBILITY_DEADLINE_MS}. Exists so a test can
|
|
2356
|
-
* pin the deadline without waiting ten seconds for it.
|
|
2357
|
-
*/
|
|
2358
|
-
readonly allocationVisibilityDeadlineMs?: number;
|
|
2359
2575
|
}
|
|
2360
2576
|
/**
|
|
2361
2577
|
* Register this runtime incarnation as the endpoint of its ExecutionAttempt.
|
|
@@ -2364,9 +2580,8 @@ interface RegisterWorkerRuntimeOptions {
|
|
|
2364
2580
|
* it allocates the generation, admits and delivers the bounded probe to the
|
|
2365
2581
|
* endpoint installed by {@link installOperationDeliveryEndpoint}, persists the
|
|
2366
2582
|
* completion, and publishes `execution-attempt.runtime.ready`. The reply is
|
|
2367
|
-
* the complete answer
|
|
2368
|
-
*
|
|
2369
|
-
* {@link ALLOCATION_VISIBILITY_DEADLINE_MS}.
|
|
2583
|
+
* the complete answer. Allocation visibility is awaited by the separate
|
|
2584
|
+
* bootstrap start barrier; registration itself never retries a refusal.
|
|
2370
2585
|
*
|
|
2371
2586
|
* A `duplicate` decision is readiness: the authority answers it only for an
|
|
2372
2587
|
* incarnation that already holds a readiness instant, and it carries the same
|
|
@@ -2438,4 +2653,46 @@ interface AdmittedWorkflowRun {
|
|
|
2438
2653
|
*/
|
|
2439
2654
|
declare function registerAndAdmitWorkflowRun(bus: IMakaioBus, options: RegisterAndAdmitWorkflowRunOptions): Promise<AdmittedWorkflowRun>;
|
|
2440
2655
|
//#endregion
|
|
2441
|
-
|
|
2656
|
+
//#region runtimes/node/src/workflow-worker/bootstrap-start-client.d.ts
|
|
2657
|
+
/** Synchronously acquired connection ownership, including an unfinished connect. */
|
|
2658
|
+
interface BootstrapRuntimeConnection {
|
|
2659
|
+
/** Fresh isolated bus, owned until close or successful transfer. */
|
|
2660
|
+
readonly bus: IMakaioBus;
|
|
2661
|
+
/**
|
|
2662
|
+
* Connect authentication and subscription readiness.
|
|
2663
|
+
* @param signal - Cancellation of this pre-registration connection phase.
|
|
2664
|
+
*/
|
|
2665
|
+
connect(signal: AbortSignal): Promise<void>;
|
|
2666
|
+
/** Revoke this session, including an unfinished connection. */
|
|
2667
|
+
close(): void | Promise<void>;
|
|
2668
|
+
}
|
|
2669
|
+
/** One surviving authenticated connection whose start permission was granted. */
|
|
2670
|
+
interface StartedWorkerRuntime {
|
|
2671
|
+
readonly connection: BootstrapRuntimeConnection;
|
|
2672
|
+
readonly endpoint: OperationDeliveryEndpoint;
|
|
2673
|
+
}
|
|
2674
|
+
/** Durable Attempt identity and provider-specific connection acquisition. */
|
|
2675
|
+
interface BootstrapWorkerRuntimeOptions {
|
|
2676
|
+
readonly executionAttemptId: string;
|
|
2677
|
+
readonly runtimeIncarnationId: string;
|
|
2678
|
+
readonly bootstrapDeadlineAt: string;
|
|
2679
|
+
readonly signal: AbortSignal;
|
|
2680
|
+
readonly createConnection: () => BootstrapRuntimeConnection;
|
|
2681
|
+
}
|
|
2682
|
+
/** Explicit Authority refusal: reconnecting cannot turn it into permission. */
|
|
2683
|
+
declare class BootstrapStartRefusedError extends Error {
|
|
2684
|
+
readonly refusalReason: ExecutionAttemptBootstrapStartRefusalReason;
|
|
2685
|
+
/**
|
|
2686
|
+
* @param refusalReason - Non-secret refusal from the authoritative start gate.
|
|
2687
|
+
*/
|
|
2688
|
+
constructor(refusalReason: ExecutionAttemptBootstrapStartRefusalReason);
|
|
2689
|
+
}
|
|
2690
|
+
/**
|
|
2691
|
+
* Install the endpoint and await durable allocation permission before registration.
|
|
2692
|
+
* A failed connection and its endpoint are revoked before a fresh session starts.
|
|
2693
|
+
* @param options - Attempt budget, identity and synchronous connection factory.
|
|
2694
|
+
* @returns The surviving control connection and installed operation endpoint.
|
|
2695
|
+
*/
|
|
2696
|
+
declare function bootstrapWorkerRuntime(options: BootstrapWorkerRuntimeOptions): Promise<StartedWorkerRuntime>;
|
|
2697
|
+
//#endregion
|
|
2698
|
+
export { AuthorityRequestDeliveryError as $, selectFrameworkCorePackages as $t, HeadlessWorkerBootstrap as A, UpstreamTelemetryBootOptions as At, runHeadlessWorkflowWorker as B, computeFileDigest as Bt, loadWorkflowFromConfig as C, WorkflowRunResult$1 as Ct, WorkloadInvocationPreparation as D, MakaioRuntime as Dt, WorkloadControlBinding as E, CoreBootOptions as Et, HeadlessWorkerMaterializer as F, WorkspaceRootResolver as Ft, WorkflowRuntimeContributionLoader as G, WorkflowWorkerEntryResolverOptions as Gt, IsolatedWorkflowRuntime as H, parseSriIntegrity as Ht, HeadlessWorkerPostCommitObserver as I, assertContainedIn as It, InProcessWorkflowRunnerOptions as J, InitializeNodeDatabaseOptions as Jt, createIsolatedWorkflowRuntime as K, resolveWorkflowWorkerEntry as Kt, HeadlessWorkflowWorkerDeps as L, assertNoSymlinkEscape as Lt, HeadlessWorkerBusConnector as M, LocalDirectoryMaterializerOptions as Mt, HeadlessWorkerContributionLoader as N, MaterializationError as Nt, WorkloadInvocationResult as O, ServerTransportProvider as Ot, HeadlessWorkerExecutor as P, ParsedSriIntegrity as Pt, AttemptOutcomeSubmitPayload as Q, normalizeNodeHostCapabilities as Qt, HeadlessWorkflowWorkerResult as R, computeContributionPackageDigest as Rt, loadWorkflowModules as S, ThinWorkflowPiscinaRunnerOptions as St, RunWorkloadInvocationOptions as T, BootMakaioRuntimeOptions as Tt, IsolatedWorkflowRuntimeContext as U, verifyContribution as Ut, CreateIsolatedWorkflowRuntimeOptions as V, materializeLocalDirectory as Vt, WorkflowRuntimeAuthorityConnector as W, WorkflowWorkerEntryMode as Wt, PiscinaThinWorkflowProviderOptions as X, initializeNodeDatabase as Xt, PiscinaThinWorkflowProvider as Y, InitializeNodeDatabaseResult as Yt, AttemptOutcomeDeliveryError as Z, HostCapabilityDeclaration as Zt, admitWorkflowRunOperation as _, activateAdapterRuntimeIdentity as _n, withWorkerBootstrapDeadline as _t, bootstrapWorkerRuntime as a, resolveFrameworkSpecifier as an, submitAttemptOutcomeWithAck as at, registerWorkerRuntime as b, IWorkflowRunner$1 as bt, DeliverableOperationKind as c, HttpContributionPhase as cn, WorkerRunnerOptions as ct, OperationDeliveryEndpointIdentity as d, HonoRouteGraphOptions as dn, createNodeWorkflowRunner as dt, ShutdownStep as en, DELIVERED_DECISIONS as et, OperationDeliveryHandler as f, createHonoRouteGraph as fn, createNodeWorkflowRunnerPackageOptions as ft, RuntimeRegistrationRefusedError as g, PreparedAdapterRuntime as gn, BootstrapDeadlineExceededError as gt, RegisterWorkerRuntimeOptions as h, PrepareAdapterRuntimeInput as hn, runWorkerBootstrapExchange as ht, StartedWorkerRuntime as i, NoopFrameworkModuleResolver as in, OutcomeSubmitRetryConfig as it, HeadlessWorkerBootstrapCredentials as j, WorkflowRunnerBootOptions as jt, runWorkloadInvocation as k, TransportReadyInfo as kt, OperationAdmissionRefusedError as l, HttpRouteContribution as ln, CreateNodeWorkflowRunnerPackageOptionsParams as lt, RegisterAndAdmitWorkflowRunOptions as m, ActivatedAdapterRuntimeIdentity as mn, WorkerBootstrapExchangeOptions as mt, BootstrapStartRefusedError as n, FrameworkModuleResolver as nn, OutcomeReconnect as nt, AdmitWorkflowRunOperationOptions as o, HttpRouteGraphBuilder as on, submitOutcomeWithAck as ot, OperationDeliveryHandlers as p, ActivateAdapterRuntimeIdentityInput as pn, BootstrapExchangeResult as pt, InProcessWorkflowRunner as q, DatabaseBootOptions as qt, BootstrapWorkerRuntimeOptions as r, NodeFrameworkModuleResolver as rn, OutcomeSubmitPayload as rt, AdmittedWorkflowRun as s, createHttpRouteGraphBuilder as sn, WorkerRunner as st, BootstrapRuntimeConnection as t, BridgeBrowserOptions as tn, OutcomeDeliveryError as tt, OperationDeliveryEndpoint as u, HonoRouteGraph as un, NodeWorkflowRunnerPackageOptions as ut, installOperationDeliveryEndpoint as v, prepareAdapterRuntime as vn, createWorkerBusAuth as vt, InstalledWorkloadAdapter as w, BootCoordinatorSetupContext as wt, loadWorkflowModule as x, RuntimeLoadedWorkflow as xt, registerAndAdmitWorkflowRun as y, ThinWorkflowPiscinaRunner as yt, MaterializedWorkspace as z, computeDirectoryDigest as zt };
|