@makaio/framework 1.0.0-dev-1789609124644 → 1.0.0-dev-1790066089222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/{adapter-C4v_gNTI.mjs → adapter-DSRgsh2d.mjs} +1 -1
- package/dist/adapter-subsystem/index.d.mts +15 -7
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/claude/index.mjs +3 -3
- 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/{attempt-record-codec-DaQ3WHUs.mjs → attempt-record-codec-DXpdMgyI.mjs} +1 -1
- package/dist/bus/index.d.mts +120 -8
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-ceMF9rsq.mjs +9 -0
- package/dist/client-DWSwtFyI.mjs +1 -0
- package/dist/clients/index.d.mts +179 -12
- package/dist/clients/index.mjs +1 -1
- package/dist/clients/managed-install.d.mts +1 -1
- package/dist/code-execution/worker-entry.d.mts +1 -1
- package/dist/code-execution/worker-entry.mjs +1 -1
- package/dist/{code-execution-pUF4IO462.mjs → code-execution-DWSux6k1.mjs} +1 -1
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -2
- 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 +1 -1
- package/dist/contracts/client/index.d.mts +3 -3
- package/dist/contracts/client/index.mjs +1 -1
- 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 +2 -47
- package/dist/contracts/context-projection/index.d.mts +232 -0
- package/dist/contracts/context-projection/index.mjs +1 -0
- package/dist/contracts/extension/index.d.mts +6 -6
- package/dist/contracts/extension/index.mjs +1 -1
- 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 +43 -43
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +2 -2
- 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 +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- 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/workflow/index.d.mts +2 -2
- package/dist/{contribution-DDbHzCPF.d.mts → contribution-1GL7Rjaq.d.mts} +2 -2
- package/dist/credential-ref-w4ZYpYW0.d.mts +49 -0
- package/dist/{definition-CuaBQyde.d.mts → definition-DeIGoROj.d.mts} +1 -1
- package/dist/{descriptor-to-package-Dw8dnl5E.mjs → descriptor-to-package-BPIArq6N.mjs} +1 -1
- package/dist/{detached-extension-handle-DN3aqLyq.mjs → detached-extension-handle-W5_yfCyE.mjs} +1 -1
- package/dist/drizzle/0040_session_generation.sql +1 -0
- package/dist/drizzle/0041_session_principal_owner.sql +1 -0
- package/dist/drizzle/meta/_journal.json +14 -0
- package/dist/{execution-attempt-owner-recovery-CE_rvHKE.mjs → execution-attempt-owner-recovery-BZOEVYFH.mjs} +1 -1
- package/dist/extension-C6ANjR33.mjs +1 -0
- package/dist/{extension-context-BH31eOMv.d.mts → extension-context-pQ7Uio_s.d.mts} +44 -1
- package/dist/{extension-discovery-CA2IhDRo.d.mts → extension-discovery-Rup-gANp.d.mts} +114 -15
- package/dist/extension-kOwzAMud.mjs +1 -0
- package/dist/extension-namespace-CeRpt6C8.mjs +1 -0
- package/dist/{framework-packages-Bg4edkkM.mjs → framework-packages-U4Xhouxe.mjs} +1 -1
- package/dist/{hook-responses-Dq16X3Cb.d.mts → hook-responses-B882RcQc.d.mts} +48 -5
- package/dist/{index-Dm3d490n.d.mts → index-B2bxgKiK.d.mts} +1 -1
- package/dist/{index-7CVumCjj.d.mts → index-BTpkpHIS.d.mts} +65 -9
- package/dist/{index-Bh57xARQ.d.mts → index-BUv9gfRT.d.mts} +3 -3
- package/dist/{index-C6e9cwAl2.d.mts → index-BjQtqMxP2.d.mts} +4 -4
- package/dist/{index-B-u0Tu8X.d.mts → index-Bqi44ODz.d.mts} +37 -37
- package/dist/{index-CIzvBH8O.d.mts → index-C8two8wz.d.mts} +1 -1
- package/dist/{index-oxZt93RL.d.mts → index-CESqYf8a.d.mts} +2 -2
- package/dist/{index-C87P0WpY2.d.mts → index-CmCLAMNs.d.mts} +1 -1
- package/dist/index-CyEE1RI5.d.mts +869 -0
- package/dist/{index-De_oh9M-2.d.mts → index-D6Uq1btG.d.mts} +87 -10
- package/dist/{index-CRZ1jrxp.d.mts → index-DDSt0uS2.d.mts} +160 -12
- package/dist/{index-B6WkHnCQ.d.mts → index-DRxgmrad.d.mts} +1 -1
- package/dist/{index-U--ajOHy.d.mts → index-DUYjTfHD.d.mts} +1 -1
- package/dist/{index-HJkz7i4E.d.mts → index-DdJKsdya.d.mts} +188 -10
- package/dist/{index-B4pPwpKk.d.mts → index-DfREUyAk.d.mts} +1 -1
- package/dist/{index-ClKwF6LE.d.mts → index-Di-R1gmo.d.mts} +2 -2
- package/dist/{index-DWANFpTG.d.mts → index-Jdju2W3y.d.mts} +1 -1
- package/dist/{index-DQKVQPUS.d.mts → index-L6mssyeZ.d.mts} +1 -1
- package/dist/{index-B8v1-2-V2.d.mts → index-anIxF_eT.d.mts} +1 -1
- package/dist/{index-iVisrVdC2.d.mts → index-bYBnDBl32.d.mts} +539 -4
- package/dist/{index-Bg3WVL8n.d.mts → index-gNdH1F6r.d.mts} +531 -26
- package/dist/{index-zmDRR8gv2.d.mts → index-m5ZQFglW2.d.mts} +1 -1
- package/dist/{index-mTaFX2HH2.d.mts → index-uk8icWON2.d.mts} +419 -19
- 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 +3 -2
- package/dist/kernel/extension/index.mjs +1 -1
- package/dist/kernel/index.d.mts +6 -6
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/observability/index.d.mts +2 -2
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/{lib-BF5XBSfw.mjs → lib-BdyGVjpO.mjs} +1 -1
- package/dist/{lib-Dljw2Cqh.mjs → lib-DxP3tPm9.mjs} +1 -1
- package/dist/load-extensions-BGfSWW_R.mjs +1 -0
- package/dist/{load-extensions-DGstT4_p.d.mts → load-extensions-Be_lOjm_.d.mts} +27 -14
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/{namespace-BMdYJN_t.mjs → namespace-CqJhR19O.mjs} +1 -1
- package/dist/{namespace-Cmu-5_P9.d.mts → namespace-DudchWPb.d.mts} +457 -0
- package/dist/{namespace-BEbQb19g.d.mts → namespace-Eir1wQ_r.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 +102 -4
- package/dist/node/transports/index.mjs +2 -2
- package/dist/{orchestrator-shared-CtPB6PAr.mjs → orchestrator-shared-CF-jPH91.mjs} +1 -1
- package/dist/ownership-memory-handler-C-y9zQf8.mjs +1 -0
- package/dist/package-AlsbnlSt.mjs +159 -0
- package/dist/{package-CDj3F-L3.d.mts → package-CwyC-Krg.d.mts} +1 -1
- package/dist/{package-DYScYC0D.mjs → package-kkPGlxMm.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/{registry-DNMjJ-Oj.mjs → registry-DtaRGU8i.mjs} +1 -0
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-bun/index.d.mts +2 -2
- package/dist/runtime-bun/index.mjs +1 -1
- package/dist/runtime-node/boot-config.d.mts +45 -0
- package/dist/runtime-node/boot-config.mjs +1 -0
- package/dist/runtime-node/code-execution/index.d.mts +2 -2
- package/dist/runtime-node/code-execution/index.mjs +1 -1
- package/dist/runtime-node/extension-discovery.d.mts +2 -2
- package/dist/runtime-node/extension-discovery.mjs +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 +345 -27
- package/dist/runtime-node/index.mjs +21 -24
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/makaio-config.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-BA1cHBbc.d.mts → schema-FY0EakKe.d.mts} +56 -0
- package/dist/schemas-CkxAK13D.mjs +1 -0
- package/dist/{schemas-CaYEFzK_.d.mts → schemas-FgVQek-j.d.mts} +2 -2
- 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/automation-trigger/index.d.mts +19 -0
- 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-projection/index.d.mts +94 -0
- package/dist/services/context-projection/index.mjs +1 -0
- package/dist/services/context-rules/index.d.mts +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/index.d.mts +45 -40
- 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/index.mjs +1 -1
- 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/orchestrator-testing/index.mjs +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/storage/schema.mjs +1 -1
- package/dist/services/session/testing/index.mjs +4 -2
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/index.d.mts +3 -3
- package/dist/services/settings/namespace.d.mts +232 -3
- package/dist/services/settings/namespace.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- 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/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- package/dist/services/tray-menu/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/services/workflow-transitions/index.mjs +1 -1
- package/dist/session-BNiMZnfF.mjs +1 -0
- package/dist/session-CMbztxNO.mjs +95 -0
- package/dist/src-BZdw54VU.mjs +1 -0
- package/dist/{src-CbAw9kjJ.mjs → src-C0sw_Vs_.mjs} +1 -1
- package/dist/{src-Xn6SS74f.mjs → src-CqQSqLQI.mjs} +1 -1
- package/dist/storage/drizzle/client.d.mts +1 -1
- package/dist/storage/drizzle/client.mjs +1 -1
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/index.d.mts +1 -1
- package/dist/{tool-approval-service-pbkGcAV8.mjs → tool-approval-service-CRo3fZRF.mjs} +1 -1
- package/dist/{tools-C5Gy0IQG.mjs → tools-CKaxi3Mb.mjs} +1 -1
- package/dist/{transition-D-Lgbp1j.d.mts → transition-DMv8cgEd.d.mts} +2 -2
- package/dist/{types-CjYcHDPo2.d.mts → types-7L3BrU9m2.d.mts} +1 -1
- package/dist/{types-DhbllltK.d.mts → types-DNYO_Rxj.d.mts} +12 -3
- package/dist/ui-hooks/index.d.mts +17 -24
- package/dist/ui-hooks/index.mjs +1 -1
- package/dist/ui-kernel/index.d.mts +11 -2
- package/dist/ui-kernel/index.mjs +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/ui-views/index.mjs +1 -1
- package/dist/utils/index.d.mts +31 -1
- package/dist/utils/index.mjs +2 -2
- package/dist/{view-builder-CHUTXJDl.d.mts → view-builder-DJGz9I-u.d.mts} +2 -2
- package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
- package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
- package/dist/workflow-engine/index.d.mts +2 -2
- 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 +1 -1
- package/dist/workflow-engine/testing/conformance.mjs +1 -1
- package/dist/workflow-engine/testing/index.d.mts +1 -1
- 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 +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-transitions-C0sg3kar.mjs → workflow-transitions-t0ORS1F5.mjs} +1 -1
- package/dist/workflow-worker-DXCXb3g-.mjs +3 -0
- package/package.json +9 -1
- package/dist/bus-BQ64i3DN.mjs +0 -9
- package/dist/client-Bg3_IdaF.mjs +0 -1
- package/dist/extension-CfrTp3rC.mjs +0 -1
- package/dist/extension-CnNcY1hR.mjs +0 -1
- package/dist/extension-namespace-Ct9L6SKr.mjs +0 -1
- package/dist/index-D_j_T3nS.d.mts +0 -435
- package/dist/load-extensions-BVgxTj_y.mjs +0 -1
- package/dist/ownership-memory-handler-xex7sLiX.mjs +0 -1
- package/dist/schemas-ClkcU_N5.mjs +0 -1
- package/dist/session-6UG5udTX.mjs +0 -95
- package/dist/session-BB0s7c2B.mjs +0 -1
- package/dist/workflow-worker-ChrMIcKm.mjs +0 -2
- /package/dist/{adapter-binding-BxjUfkOn.d.mts → adapter-binding-CaYBrIkL.d.mts} +0 -0
- /package/dist/{attempt-control-evidence-7lwRG73Y.mjs → attempt-control-evidence-CHBnJoqN.mjs} +0 -0
- /package/dist/{attempt-fixtures-DHdYmr3o.mjs → attempt-fixtures-D3IsP0KH.mjs} +0 -0
- /package/dist/{authority-state-bootstrap-CvuWPywM.mjs → authority-state-bootstrap-4F5Wc_6l.mjs} +0 -0
- /package/dist/{base-orchestrator-CrXiMJzf.d.mts → base-orchestrator-1ofFsqUz.d.mts} +0 -0
- /package/dist/{bootstrap-start-client-C1ZHbv6e.mjs → bootstrap-start-client-9nOdeDYl.mjs} +0 -0
- /package/dist/{capability-service-CQ1aw_p-.d.mts → capability-service-CUN0MIS7.d.mts} +0 -0
- /package/dist/{client-ByjHcS78.d.mts → client-BY3sBW2L.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-C4fEAUdo.d.mts → client-binary-version-verifier-BeO4Eptw.d.mts} +0 -0
- /package/dist/{clients-namespace-D4BxF2Nw.d.mts → clients-namespace-D92YsbKI.d.mts} +0 -0
- /package/dist/{config-namespace-B1zyOYwH.d.mts → config-namespace-OEckUfVE.d.mts} +0 -0
- /package/dist/{create-static-mount-Dgxgi4W3.mjs → create-static-mount-4B-mNtx1.mjs} +0 -0
- /package/dist/{cross-spawn-BMCAyqrN.mjs → cross-spawn-DGqEuNyT.mjs} +0 -0
- /package/dist/{definition-ClWxAKQ2.d.mts → definition-DLJg-P4G.d.mts} +0 -0
- /package/dist/{esm-Ccx-3z8E.mjs → esm-DwiWcwH0.mjs} +0 -0
- /package/dist/{execution-attempt-repository-aabFKcXN.mjs → execution-attempt-repository-CY289HlC.mjs} +0 -0
- /package/dist/{execution-attempt-repository-BUah8hma.d.mts → execution-attempt-repository-DOb5V4N2.d.mts} +0 -0
- /package/dist/{extension-package-provenance-C7oO5JAE.mjs → extension-package-provenance-ClpN3GHp.mjs} +0 -0
- /package/dist/{filesystem-service-CDYoiwWY.d.mts → filesystem-service-BmavE-uO.d.mts} +0 -0
- /package/dist/{index-BbkcbY6d.d.mts → index--gbsE1W0.d.mts} +0 -0
- /package/dist/{index-DdVpWkaI.d.mts → index-B36rL4gp.d.mts} +0 -0
- /package/dist/{index-DM72_93s.d.mts → index-BD1SbHpP.d.mts} +0 -0
- /package/dist/{index-KdlZRuTp.d.mts → index-BDcK7jqJ2.d.mts} +0 -0
- /package/dist/{index-DAaQ--ki.d.mts → index-BQYGOXY5.d.mts} +0 -0
- /package/dist/{index-gAyARaKS.d.mts → index-BneZFJ7x.d.mts} +0 -0
- /package/dist/{index-D8ELwT5y.d.mts → index-BujgCaKt.d.mts} +0 -0
- /package/dist/{index-DfU8s_xP.d.mts → index-C2StVLk4.d.mts} +0 -0
- /package/dist/{index-BGnQ0EyD.d.mts → index-CCTzitBA.d.mts} +0 -0
- /package/dist/{index-CVRT01082.d.mts → index-Cj_V1aRL.d.mts} +0 -0
- /package/dist/{index-nkix3hP7.d.mts → index-CpN2C9jq.d.mts} +0 -0
- /package/dist/{index-D6p17KPs.d.mts → index-CsRPJ9FV.d.mts} +0 -0
- /package/dist/{index-BPNfYEA22.d.mts → index-CvdvuhTL2.d.mts} +0 -0
- /package/dist/{index-DmX9W3xH2.d.mts → index-D3peNmHN2.d.mts} +0 -0
- /package/dist/{index-DiZ4LmyE.d.mts → index-D7smT-YD.d.mts} +0 -0
- /package/dist/{index-B78CRVi9.d.mts → index-DEx4ZFkz.d.mts} +0 -0
- /package/dist/{index-CjDQn6lw.d.mts → index-DGoJayJg.d.mts} +0 -0
- /package/dist/{index-F7cVpFJ9.d.mts → index-DTvYp2GT.d.mts} +0 -0
- /package/dist/{index-Htfr-K5U2.d.mts → index-DqliLe_D2.d.mts} +0 -0
- /package/dist/{index-BCU5oByg.d.mts → index-DubyRZD9.d.mts} +0 -0
- /package/dist/{index-DjSUOMlr.d.mts → index-DwOpaQAE.d.mts} +0 -0
- /package/dist/{index-BZoOYV-y.d.mts → index-DxkSkszz.d.mts} +0 -0
- /package/dist/{index-tbjIqwa3.d.mts → index-TBJ1kIGA.d.mts} +0 -0
- /package/dist/{index-DXQTkwLB.d.mts → index-YOXWpZAS.d.mts} +0 -0
- /package/dist/{index-CXpgL3gz2.d.mts → index-aIJ7A4DC2.d.mts} +0 -0
- /package/dist/{index-D6liU_KS.d.mts → index-fxh7TB0q.d.mts} +0 -0
- /package/dist/{index-xsaaa85T.d.mts → index-qczb9Yx3.d.mts} +0 -0
- /package/dist/{index-C_kOkO3E.d.mts → index-zqo2mX_Z.d.mts} +0 -0
- /package/dist/{json-value-Ymw2f8i_.d.mts → json-value-Bjl8jzom.d.mts} +0 -0
- /package/dist/{jsonl-transport-Bg033Ng0.mjs → jsonl-transport-Ct1RWs0h.mjs} +0 -0
- /package/dist/{lib-BizqbepU.mjs → lib-DomKag_k.mjs} +0 -0
- /package/dist/{namespace-rJ3ycPMg.d.mts → namespace-Bhx72V7S.d.mts} +0 -0
- /package/dist/{namespace-BCVKdu-U.d.mts → namespace-CxEQv9iZ.d.mts} +0 -0
- /package/dist/{namespace-COHHDh2I.d.mts → namespace-D09uQ231.d.mts} +0 -0
- /package/dist/{namespace-UFcDEBJB.d.mts → namespace-D5DkpaaN.d.mts} +0 -0
- /package/dist/{namespace-CvK86QFk.d.mts → namespace-DHLwz4o3.d.mts} +0 -0
- /package/dist/{namespace-B5IFLQc-.d.mts → namespace-DHbrNQYD.d.mts} +0 -0
- /package/dist/{namespace-s0e215xO.d.mts → namespace-DyD06b5-.d.mts} +0 -0
- /package/dist/{namespace-C1pPZKtI.d.mts → namespace-Dz5_Hrz7.d.mts} +0 -0
- /package/dist/{namespace-Phxf0Lep.d.mts → namespace-Lkv2nyzb.d.mts} +0 -0
- /package/dist/{namespace-DM5vykb7.d.mts → namespace-hlhPqSsw.d.mts} +0 -0
- /package/dist/{namespace-DlOQmhgX.d.mts → namespace-x-gk5SmK.d.mts} +0 -0
- /package/dist/{namespace-f6Kz5cwX.d.mts → namespace-zusFEJPh.d.mts} +0 -0
- /package/dist/{orchestrator-shared--srEeSaY.d.mts → orchestrator-shared-ChU5qRSe.d.mts} +0 -0
- /package/dist/{packages-B98-WETs.d.mts → packages-D2s51nGU.d.mts} +0 -0
- /package/dist/{providers-namespace-DRcl03bo.d.mts → providers-namespace-BLVt8OyP.d.mts} +0 -0
- /package/dist/{runtime-inputs-DBtVIy9h.d.mts → runtime-inputs-BU_kBrP7.d.mts} +0 -0
- /package/dist/{schemas-CEJe8O6P.d.mts → schemas-3KTmPuZg.d.mts} +0 -0
- /package/dist/{schemas-D_-iXLQ9.d.mts → schemas-B-5_Dp4_.d.mts} +0 -0
- /package/dist/{schemas-CeItAAQM.d.mts → schemas-BLxdGZkr.d.mts} +0 -0
- /package/dist/{schemas-Cj6Gbqch.d.mts → schemas-BegArpU_.d.mts} +0 -0
- /package/dist/{schemas-Ca5RILd-2.d.mts → schemas-BzB6z9oX2.d.mts} +0 -0
- /package/dist/{schemas-CtzZDp29.d.mts → schemas-CBBzvIh0.d.mts} +0 -0
- /package/dist/{schemas-Cq1d5tid.d.mts → schemas-CD3Mq-jC.d.mts} +0 -0
- /package/dist/{schemas-LiiyNNpr.d.mts → schemas-Cl7fPlRv.d.mts} +0 -0
- /package/dist/{schemas-DJ2vMsgm.d.mts → schemas-CqawCYTY.d.mts} +0 -0
- /package/dist/{schemas-2_D4iVbb.d.mts → schemas-DEg6R9ph.d.mts} +0 -0
- /package/dist/{schemas-JjyFxrC0.d.mts → schemas-rMUsvzeJ.d.mts} +0 -0
- /package/dist/{server-lifecycle-DUKp1Fbf.d.mts → server-lifecycle-CTJvpdeL.d.mts} +0 -0
- /package/dist/{session-lineage-C3myyt5x.d.mts → session-lineage-BuGN3RZs.d.mts} +0 -0
- /package/dist/{storage-namespace-IvLOIP7j.d.mts → storage-namespace-B5r_ScUz.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-Cv0XiTXb.d.mts → storage-namespace-definition-DiYr8UNl.d.mts} +0 -0
- /package/dist/{types-hkExapGH.d.mts → types-BSx8YYlc.d.mts} +0 -0
- /package/dist/{types-BYEybzjX.d.mts → types-CpEoQapk.d.mts} +0 -0
- /package/dist/{types-QRSc2AUU.d.mts → types-Cuhnt15L.d.mts} +0 -0
- /package/dist/{types-QsyX4H21.d.mts → types-DEGuc-fn.d.mts} +0 -0
- /package/dist/{types-BRM1AZaP.d.mts → types-DciLiPMd.d.mts} +0 -0
- /package/dist/{types-CsmvIK25.mjs → types-wwuw7RkB.mjs} +0 -0
- /package/dist/{window-registry-DeG37kt8.d.mts → window-registry-C3W2wtlX.d.mts} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, c as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, d as PiscinaCodeExecutionProviderOptions, i as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, n as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, o as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, r as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, s as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, t as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS } from "../../types-
|
|
2
|
-
import { t as PiscinaCodeExecutionProvider } from "../../index-
|
|
1
|
+
import { a as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, c as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, d as PiscinaCodeExecutionProviderOptions, i as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, n as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, o as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, r as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, s as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, t as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS } from "../../types-BSx8YYlc.mjs";
|
|
2
|
+
import { t as PiscinaCodeExecutionProvider } from "../../index-L6mssyeZ.mjs";
|
|
3
3
|
export { CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS, CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, PiscinaCodeExecutionProvider, PiscinaCodeExecutionProviderOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../../types-
|
|
1
|
+
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../../types-wwuw7RkB.mjs";import{t as c}from"../../code-execution-DWSux6k1.mjs";export{s as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS,r as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES,a as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY,n as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER,e as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES,i as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS,o as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES,t as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES,c as PiscinaCodeExecutionProvider};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { DiscoveredExtension, ExplicitDescriptorDiscovery, ExtensionDiscovery, ExtensionEntrypointModule, FilesystemDescriptorDiscovery, FilesystemDescriptorDiscoveryOptions, MergedDescriptorDiscovery, enumerateDescriptorPaths };
|
|
1
|
+
import { a as ExtensionNameCollisionError, c as MergedDescriptorDiscovery, d as discoverExtensionTiers, f as enumerateDescriptorPaths, i as ExtensionEntrypointModule, l as deduplicateByDescriptorName, n as ExplicitDescriptorDiscovery, o as FilesystemDescriptorDiscovery, r as ExtensionDiscovery, s as FilesystemDescriptorDiscoveryOptions, t as DiscoveredExtension, u as describeSameTierNameCollision } from "../extension-discovery-Rup-gANp.mjs";
|
|
2
|
+
export { DiscoveredExtension, ExplicitDescriptorDiscovery, ExtensionDiscovery, ExtensionEntrypointModule, ExtensionNameCollisionError, FilesystemDescriptorDiscovery, FilesystemDescriptorDiscoveryOptions, MergedDescriptorDiscovery, deduplicateByDescriptorName, describeSameTierNameCollision, discoverExtensionTiers, enumerateDescriptorPaths };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"node:fs/promises";import*as t from"node:path";import{glob as n}from"glob";import{parseExtensionDescriptor as r}from"@makaio/framework/contracts";const
|
|
1
|
+
import*as e from"node:fs/promises";import*as t from"node:path";import{glob as n}from"glob";import{parseExtensionDescriptor as r}from"@makaio/framework/contracts";async function i(e){return e.discoverTiers?e.discoverTiers():[await e.discover()]}const a=`descriptor.json`,o=[`**/node_modules/**`,`**/dist/**`,`**/.git/**`];async function s(r){let i=await e.stat(r).catch(()=>void 0);if(i===void 0)return[];if(i.isFile())return t.basename(r)===a?[r]:[];if(!i.isDirectory())return[];let s=t.join(r,a);if(await h(s))return[s];let c=t.basename(r)===`node_modules`,l=c?[`*/descriptor.json`,`@*/*/descriptor.json`]:[`**/${a}`];return(await Promise.all(l.map(e=>n(e,{absolute:!0,cwd:r,...c?{}:{follow:!0,ignore:[...o]},windowsPathsNoEscape:!0})))).flat()}var c=class{localNodeModulesDir;extensionsDir;nodeModulesDir;constructor(e,n){this.localNodeModulesDir=n?.localNodeModulesDir??t.join(e??process.cwd(),`node_modules`),this.extensionsDir=n?.extensionsDir??!1,this.nodeModulesDir=n?.nodeModulesDir??!1}async discover(){return p(await this.discoverTiers())}async discoverTiers(){return Promise.all([this.scanLocal(),this.scanInstalled(),this.scanGlobalNpm()])}async scanLocal(){if(this.localNodeModulesDir===!1)return[];let e=[t.join(this.localNodeModulesDir,`*/descriptor.json`),t.join(this.localNodeModulesDir,`@*/*/descriptor.json`)];return this.scanPatterns(e,`local`)}async scanInstalled(){if(this.extensionsDir===!1)return[];let e=[t.join(this.extensionsDir,`*/descriptor.json`),t.join(this.extensionsDir,`@*/*/descriptor.json`)];return this.scanPatterns(e,`installed`)}async scanGlobalNpm(){if(this.nodeModulesDir===!1)return[];let e=[t.join(this.nodeModulesDir,`*/descriptor.json`),t.join(this.nodeModulesDir,`@*/*/descriptor.json`)];return this.scanPatterns(e,`global-npm`)}async scanPatterns(i,a){let o=[];for(let s of i){let i=s.split(t.sep).join(`/`),c;try{c=await n(i,{nodir:!0,windowsPathsNoEscape:!0})}catch(e){console.warn(`[extensions] Skipping scan for pattern ${i}:`,e instanceof Error?e.message:e);continue}for(let n of c)try{let i=await e.readFile(n,`utf-8`),s=r(JSON.parse(i)),c=t.dirname(n);o.push({descriptor:s,extensionPath:c,source:a})}catch(e){console.warn(`[extensions] Skipping invalid descriptor at ${n}:`,e instanceof Error?e.message:e)}}return o}},l=class{extensions;constructor(e){this.extensions=e}async discover(){return this.extensions}async discoverTiers(){return[[...this.extensions]]}},u=class extends Error{descriptorName;constructor(e,t,n){super(d(e,t,n)),this.descriptorName=e,this.name=`ExtensionNameCollisionError`}};function d(e,t,n){return`Extension name collision: "${e}" is declared by two packages in the same discovery tier (${m(t)} and ${m(n)}). A descriptor name is an extension identity and cannot be shared, and packages within one tier have no precedence over each other. Remove or rename one of them.`}var f=class{discoveries;constructor(e){this.discoveries=e}async discover(){return p(await this.discoverTiers())}async discoverTiers(){return(await Promise.all(this.discoveries.map(e=>i(e)))).flat()}};function p(e){let t=new Map;for(let n of e){let e=new Map;for(let r of n){let n=r.descriptor.name,i=e.get(n);if(i!==void 0)throw new u(n,i,r);e.set(n,r);let a=t.get(n);if(a!==void 0){console.warn(`[extensions] Extension "${n}" is installed more than once: ${m(a)} takes precedence over ${m(r)}, which is shadowed and will not be loaded.`);continue}t.set(n,r)}}return[...t.values()]}function m(e){return`${e.source} at ${e.extensionPath}`}async function h(t){return e.stat(t).then(e=>e.isFile()).catch(()=>!1)}export{l as ExplicitDescriptorDiscovery,u as ExtensionNameCollisionError,c as FilesystemDescriptorDiscovery,f as MergedDescriptorDiscovery,p as deduplicateByDescriptorName,d as describeSameTierNameCollision,i as discoverExtensionTiers,s as enumerateDescriptorPaths};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as isWithinDirectory, c as resolveConventionEntrypoint, i as isMakaioExtensionLike, n as entrypointStem, r as isCliContributionLike } from "../load-extensions-Be_lOjm_.mjs";
|
|
2
2
|
export { entrypointStem, isCliContributionLike, isMakaioExtensionLike, isWithinDirectory, resolveConventionEntrypoint };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,
|
|
1
|
+
import{i as e,o as t,r as n,s as r,u as i}from"../load-extensions-BGfSWW_R.mjs";export{n as entrypointStem,e as isCliContributionLike,t as isMakaioExtensionLike,r as isWithinDirectory,i as resolveConventionEntrypoint};
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
+
import { filterConfigDefaultsForLoadedPackages, mergePackageConfigDefaults } from "./boot-config.mjs";
|
|
1
2
|
import { RuntimeSubjects } from "./bus/runtime/namespace.mjs";
|
|
2
3
|
import { NodeClientBinaryStrategyDependencyOptions, createNodeClientBinaryStrategyDependencies } from "./client-binary-strategy-dependencies.mjs";
|
|
3
|
-
import { a as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, c as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, d as PiscinaCodeExecutionProviderOptions, i as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, n as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, o as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, r as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, s as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, t as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS } from "../types-
|
|
4
|
-
import { t as PiscinaCodeExecutionProvider } from "../index-
|
|
5
|
-
import { a as
|
|
6
|
-
import { a as
|
|
7
|
-
import { $ as CreateIsolatedWorkflowRuntimeOptions, A as createLocalGitWorkspacePreparation, An as
|
|
4
|
+
import { a as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, c as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, d as PiscinaCodeExecutionProviderOptions, i as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, n as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, o as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, r as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, s as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, t as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS } from "../types-BSx8YYlc.mjs";
|
|
5
|
+
import { t as PiscinaCodeExecutionProvider } from "../index-L6mssyeZ.mjs";
|
|
6
|
+
import { a as ExtensionNameCollisionError, c as MergedDescriptorDiscovery, n as ExplicitDescriptorDiscovery, o as FilesystemDescriptorDiscovery, r as ExtensionDiscovery, s as FilesystemDescriptorDiscoveryOptions, t as DiscoveredExtension } from "../extension-discovery-Rup-gANp.mjs";
|
|
7
|
+
import { a as isWithinDirectory, c as resolveConventionEntrypoint, i as isMakaioExtensionLike, n as entrypointStem, o as loadExtensions, r as isCliContributionLike, s as normalizePackageExport, t as LoadExtensionsOptions } from "../load-extensions-Be_lOjm_.mjs";
|
|
8
|
+
import { $ as CreateIsolatedWorkflowRuntimeOptions, A as createLocalGitWorkspacePreparation, An as HttpRouteGraphBuilder, B as HeadlessWorkerMaterializer, Bn as PreparedAdapterRuntime, Bt as BootMakaioRuntimeOptions, C as admitWorkflowRunOperation, Cn as selectFrameworkCorePackages, Dn as NodeFrameworkModuleResolver, E as registerWorkerRuntime, En as FrameworkModuleResolver, F as HeadlessWorkerBootstrap, Fn as HonoRouteGraphOptions, Ft as IWorkflowRunner, G as runHeadlessWorkflowWorker, Gt as UpstreamTelemetryBootOptions, H as HeadlessWorkflowWorkerDeps, Hn as prepareAdapterRuntime, Ht as MakaioRuntime, I as HeadlessWorkerBootstrapCredentials, In as createHonoRouteGraph, J as WorkloadControlBinding, K as InstalledWorkloadAdapter, Kt as WorkflowRunnerBootOptions, L as HeadlessWorkerBusConnector, Ln as ActivateAdapterRuntimeIdentityInput, Lt as ThinWorkflowPiscinaRunnerOptions, M as HeadlessWorkerDeps, Mn as HttpContributionPhase, N as HeadlessWorkerResult, Nn as HttpRouteContribution, On as NoopFrameworkModuleResolver, P as runHeadlessWorker, Pn as HonoRouteGraph, Pt as ThinWorkflowPiscinaRunner, Q as SetupProcessGroupObservation, R as HeadlessWorkerContributionLoader, Rn as ActivatedAdapterRuntimeIdentity, Rt as WorkflowRunResult, S as RuntimeRegistrationRefusedError, Sn as normalizeNodeHostCapabilities, T as registerAndAdmitWorkflowRun, Tn as BridgeBrowserOptions, U as HeadlessWorkflowWorkerResult, Ut as ServerTransportProvider, V as HeadlessWorkerPostCommitObserver, Vn as activateAdapterRuntimeIdentity, Vt as CoreBootOptions, Wt as TransportReadyInfo, X as WorkloadInvocationResult, Y as WorkloadInvocationPreparation, Z as runWorkloadInvocation, _ as OperationDeliveryEndpointIdentity, _n as DatabaseBootOptions, a as InstalledAttemptControlEndpoint, an as WorkflowWorkerEntryMode, at as InProcessWorkflowRunner, b as RegisterAndAdmitWorkflowRunOptions, bn as initializeNodeDatabase, bt as submitAttemptOutcomeWithAck, c as BootstrapStartRefusedError, cn as ExtensionOperatorConfigConsumer, d as bootstrapWorkerRuntime, dn as MAX_OPERATOR_CONFIG_BYTES, et as IsolatedWorkflowRuntime, f as AdmitWorkflowRunOperationOptions, fn as createExtensionOperatorConfigSnapshot, ft as AttemptOutcomeDeliveryError, g as OperationDeliveryEndpoint, gn as warnOnUnappliedExtensionOperatorConfig, gt as OutcomeDeliveryError, h as OperationAdmissionRefusedError, hn as warnOnUnaddressableExtensionOperatorConfigNames, i as AttemptControlReportOptions, it as createIsolatedWorkflowRuntime, j as LocalGitSourceOptions, jn as createHttpRouteGraphBuilder, kn as resolveFrameworkSpecifier, l as BootstrapWorkerRuntimeOptions, ln as ExtensionOperatorConfigSnapshot, m as DeliverableOperationKind, mn as resolveExtensionOperatorConfigDir, mt as AuthorityRequestDeliveryError, n as AttemptControlEndpointIdentity, nt as WorkflowRuntimeAuthorityConnector, o as installAttemptControlEndpoint, on as WorkflowWorkerEntryResolverOptions, ot as InProcessWorkflowRunnerOptions, p as AdmittedWorkflowRun, pn as loadExtensionOperatorConfig, q as RunWorkloadInvocationOptions, r as AttemptControlLastReport, rt as WorkflowRuntimeContributionLoader, s as BootstrapRuntimeConnection, sn as resolveWorkflowWorkerEntry, t as AttemptControlEndpointDeps, tt as IsolatedWorkflowRuntimeContext, u as StartedWorkerRuntime, un as LoadExtensionOperatorConfigOptions, v as OperationDeliveryHandler, vn as InitializeNodeDatabaseOptions, w as installOperationDeliveryEndpoint, wn as ShutdownStep, x as RegisterWorkerRuntimeOptions, xn as HostCapabilityDeclaration, y as OperationDeliveryHandlers, yn as InitializeNodeDatabaseResult, z as HeadlessWorkerExecutor, zn as PrepareAdapterRuntimeInput, zt as BootCoordinatorSetupContext } from "../index-DdJKsdya.mjs";
|
|
8
9
|
import { ConfiguredRuntimeOptions, LoadMakaioConfigOptions, LoadedMakaioConfig, MAKAIO_CONFIG_FILE_ENV, MAKAIO_HOME_ENV, MakaioConfig, ParseMakaioConfigOptions, ParsedMakaioConfig, WorkflowRunnerConfig, buildConfiguredRuntimeOptions, createMakaioConfigDiscovery, defineMakaioConfig, loadMakaioConfig, parseMakaioConfig, resolveMakaioConfigPath, resolveMakaioHome, shouldIncludeExtension } from "./makaio-config.mjs";
|
|
9
10
|
import { RotateWorkflowExecutionBusSecretParams, captureWorkflowExecutionBusSecretCleanup } from "./workflow-execution-bus-access.mjs";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
import { IConfigStorage } from "@makaio/framework/core";
|
|
12
|
-
import { Config, EntityUIConfig, ProtocolId } from "@makaio/framework/contracts";
|
|
13
|
+
import { Config, EntityUIConfig, ExtensionConfigProvider, ExtensionDescriptor, ExtensionOperatorConfigEntry, MakaioNodeExtension, ProtocolId } from "@makaio/framework/contracts";
|
|
13
14
|
import { BusTransport, IMakaioBus } from "@makaio/framework/bus";
|
|
14
15
|
import { DispatchingAuth } from "@makaio/framework/node/transports";
|
|
15
|
-
import {
|
|
16
|
+
import { CredentialResolver } from "@makaio/framework/contracts/extension";
|
|
17
|
+
import { ExtensionConfigResolution, InstalledExtensionCatalogSource, InstalledExtensionRecord, KernelMakaioExtension, TransportProvider } from "@makaio/framework/kernel";
|
|
18
|
+
import { BaseService } from "@makaio/framework/service-base";
|
|
16
19
|
import { MakaioDatabase, StorageDialect as StorageDialect$1 } from "@makaio/framework/storage/drizzle";
|
|
17
20
|
import { CredentialRef } from "@makaio/framework/contracts/config";
|
|
18
21
|
import { IModelRegistryCache, ModelRegistry } from "@makaio/framework/services/model-registry";
|
|
19
22
|
import { AdapterInstance, LoadedAdapter } from "@makaio/framework/adapter-subsystem";
|
|
20
23
|
import { MachineKeyStatus, MachineKeyValidation, PersistedMachineIdentity, loadOrCreateMachineIdentity, machineKeysExist, validateMachineKeys } from "@makaio/framework/node/machine-identity";
|
|
21
24
|
import { TransportAuth as TransportAuth$1 } from "@makaio/framework/node/bus-server";
|
|
22
|
-
import { ConfigProvider } from "@makaio/framework/providers";
|
|
23
25
|
import { Server } from "node:http";
|
|
24
|
-
|
|
25
26
|
//#region runtimes/node/src/register-adapter-name-resolver.d.ts
|
|
26
27
|
/**
|
|
27
28
|
* Register middleware to resolve `adapterName` to `adapterId` for `getCapabilities` requests.
|
|
@@ -49,12 +50,23 @@ declare function runRuntimeHandlerCleanups(cleanups: Array<() => void>): void;
|
|
|
49
50
|
* @param getLoadedAdapters - Getter for current loaded adapter definitions.
|
|
50
51
|
* @param getAdapterInstances - Getter for current adapter instances.
|
|
51
52
|
* @param getExtension - Coordinator lookup for extension config schemas.
|
|
53
|
+
* @param getExtensionOperatorConfig - Accessor for the operator config entry for a
|
|
54
|
+
* given extension. It supplies the set of operator-owned keys; their values
|
|
55
|
+
* come from `getResolvedExtensionConfig`. Extensions without a `configSchema`
|
|
56
|
+
* never receive provenance (kernel drops the operator layer in that case).
|
|
57
|
+
* @param getResolvedExtensionConfig - Accessor returning the extension's config
|
|
58
|
+
* resolution, independent of its lifecycle state. Its config is what the
|
|
59
|
+
* config schema response reports for operator-owned keys, so every schema
|
|
60
|
+
* transform (e.g. `.trim()`) is reflected. When it is omitted, yields no
|
|
61
|
+
* record, or reports that resolution fell back to schema defaults,
|
|
62
|
+
* `operatorConfig` still reports the owned keys but carries no `values`
|
|
63
|
+
* rather than values the extension never received.
|
|
52
64
|
* @returns Cleanup function that unregisters all runtime handlers.
|
|
53
65
|
*/
|
|
54
66
|
declare function registerRuntimeHandlers(bus: IMakaioBus, getLoadedAdapters: () => readonly LoadedAdapter[], getAdapterInstances: () => ReadonlyMap<string, AdapterInstance>, getExtension?: (name: string) => {
|
|
55
67
|
configSchema?: z.ZodType;
|
|
56
68
|
uiConfig?: EntityUIConfig;
|
|
57
|
-
} | undefined): () => void;
|
|
69
|
+
} | undefined, getExtensionOperatorConfig?: (extensionName: string) => ExtensionOperatorConfigEntry | undefined, getResolvedExtensionConfig?: (name: string) => ExtensionConfigResolution | undefined): () => void;
|
|
58
70
|
//#endregion
|
|
59
71
|
//#region runtimes/node/src/db-migrations.d.ts
|
|
60
72
|
/** Options for applying framework central migrations. */
|
|
@@ -193,6 +205,127 @@ declare function bootMakaioRuntimeCore(transport: ServerTransportProvider, bound
|
|
|
193
205
|
*/
|
|
194
206
|
declare function bootMakaioRuntime(options: BootMakaioRuntimeOptions): Promise<MakaioRuntime>;
|
|
195
207
|
//#endregion
|
|
208
|
+
//#region runtimes/node/src/extension-enablement-store.d.ts
|
|
209
|
+
/**
|
|
210
|
+
* Largest enablement file the loader will read into memory.
|
|
211
|
+
*
|
|
212
|
+
* The file holds extension names — strings that are at most a few dozen bytes
|
|
213
|
+
* each. A megabyte gives room for thousands of names before the guard fires,
|
|
214
|
+
* which is far beyond any realistic extension registry. The bound exists
|
|
215
|
+
* because the loader runs on the boot path and reads whatever is in the
|
|
216
|
+
* location; a stray large file must not block startup.
|
|
217
|
+
*/
|
|
218
|
+
declare const MAX_ENABLEMENT_FILE_BYTES: number;
|
|
219
|
+
/**
|
|
220
|
+
* Wire shape of the enablement JSON file.
|
|
221
|
+
*
|
|
222
|
+
* The file stores only disabled names. Absent name → enabled (default).
|
|
223
|
+
* `true` entries are never written: the file is self-cleaning.
|
|
224
|
+
*/
|
|
225
|
+
interface ExtensionEnablementFileData {
|
|
226
|
+
/** Names of extensions that have been explicitly disabled. */
|
|
227
|
+
readonly disabled: readonly string[];
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Typed result surface for a failed enablement file read.
|
|
231
|
+
*
|
|
232
|
+
* Recorded as metadata so the caller can log or surface it without coupling
|
|
233
|
+
* to the error shape the reader uses internally.
|
|
234
|
+
*/
|
|
235
|
+
type ExtensionEnablementReadFailureReason = 'too-large' | 'not-json' | 'not-object' | 'invalid-disabled-field' | 'unreadable';
|
|
236
|
+
/** Failure detail returned when the file exists but cannot be used. */
|
|
237
|
+
interface ExtensionEnablementReadFailure {
|
|
238
|
+
readonly reason: ExtensionEnablementReadFailureReason;
|
|
239
|
+
readonly diagnostic: string;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Read-write store for persisted extension enablement.
|
|
243
|
+
*
|
|
244
|
+
* Extends the read-only subset of {@link ExtensionConfigProvider} so the
|
|
245
|
+
* runtime can pass the same object where only `loadEnabled` is needed, and
|
|
246
|
+
* so the coordinator can call `persistEnabled` directly.
|
|
247
|
+
*/
|
|
248
|
+
interface ExtensionEnablementStore extends Required<Pick<ExtensionConfigProvider, 'loadEnabled' | 'persistEnabled'>> {
|
|
249
|
+
/**
|
|
250
|
+
* Load failure recorded during initialization, if any.
|
|
251
|
+
*
|
|
252
|
+
* `undefined` when the file was absent (treated as all-enabled) or parsed
|
|
253
|
+
* successfully. Present when the file existed but could not be used, so the
|
|
254
|
+
* caller can log the diagnostic before forwarding the store.
|
|
255
|
+
*/
|
|
256
|
+
readonly readFailure: ExtensionEnablementReadFailure | undefined;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Minimal package view required by {@link isExtensionEnabled} to apply the
|
|
260
|
+
* critical-override rule.
|
|
261
|
+
*/
|
|
262
|
+
interface ExtensionCriticalView {
|
|
263
|
+
/** When `true`, the extension must start even when the store marks it disabled. */
|
|
264
|
+
readonly critical?: boolean;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Check whether a named extension is effectively enabled.
|
|
268
|
+
*
|
|
269
|
+
* Centralises the `loadEnabled(name) !== false` pattern used at every
|
|
270
|
+
* enablement-gate site so callers do not repeat the three-valued logic
|
|
271
|
+
* (`true` = enabled, `false` = disabled, `undefined` = enabled by default).
|
|
272
|
+
*
|
|
273
|
+
* The critical override is part of the answer, not an optional refinement: a
|
|
274
|
+
* `critical: true` extension is treated as enabled regardless of what the
|
|
275
|
+
* store says, mirroring the coordinator's `load()` logic exactly. `pkg` is
|
|
276
|
+
* therefore required — a caller that cannot supply it is asking a different
|
|
277
|
+
* question and would silently drop the override. This ensures that every gate
|
|
278
|
+
* (clients, runtimeBoot, scheduler policy, the CLI listing) honours the same
|
|
279
|
+
* invariant as the coordinator: a critical extension that the operator
|
|
280
|
+
* hand-disabled still contributes to the running runtime.
|
|
281
|
+
* @param store - Enablement store (or any object with an optional `loadEnabled`).
|
|
282
|
+
* @param name - Extension package name to check.
|
|
283
|
+
* @param pkg - Package view carrying the `critical` flag; `critical: true` overrides a disabled store entry.
|
|
284
|
+
* @returns `true` when the extension is enabled, has no persisted preference, or is critical.
|
|
285
|
+
*/
|
|
286
|
+
declare function isExtensionEnabled(store: {
|
|
287
|
+
readonly loadEnabled?: (name: string) => boolean | undefined;
|
|
288
|
+
}, name: string, pkg: ExtensionCriticalView): boolean;
|
|
289
|
+
/**
|
|
290
|
+
* Check whether the store records an explicit disable for a name.
|
|
291
|
+
*
|
|
292
|
+
* This is the raw persisted preference, deliberately without the critical
|
|
293
|
+
* override that {@link isExtensionEnabled} applies: it answers "did someone
|
|
294
|
+
* turn this off in the enablement file?", not "will it run?". Use it only
|
|
295
|
+
* where the persisted preference itself is the subject — for example when
|
|
296
|
+
* reporting back whether a requested preference survived a rejected live
|
|
297
|
+
* toggle. Every runtime gate must use {@link isExtensionEnabled} instead.
|
|
298
|
+
* @param store - Enablement store (or any object with an optional `loadEnabled`).
|
|
299
|
+
* @param name - Extension package name to check.
|
|
300
|
+
* @returns `true` when the store explicitly disables the name.
|
|
301
|
+
*/
|
|
302
|
+
declare function isExtensionDisabledInStore(store: {
|
|
303
|
+
readonly loadEnabled?: (name: string) => boolean | undefined;
|
|
304
|
+
}, name: string): boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Resolve the absolute path of the enablement file for a given Makaio home.
|
|
307
|
+
* @param makaioHome - Absolute Makaio data-home path.
|
|
308
|
+
* @returns Absolute path to the enablement file. The file may not exist yet.
|
|
309
|
+
*/
|
|
310
|
+
declare function resolveExtensionEnablementFile(makaioHome: string): string;
|
|
311
|
+
/**
|
|
312
|
+
* Load an {@link ExtensionEnablementStore} backed by the file at
|
|
313
|
+
* `<makaioHome>/config/extensions.json`.
|
|
314
|
+
*
|
|
315
|
+
* A missing file is silently treated as all-extensions-enabled. A file that
|
|
316
|
+
* exists but cannot be used (too large, invalid JSON, wrong shape) records a
|
|
317
|
+
* failure on the returned store and defaults to all-extensions-enabled, so a
|
|
318
|
+
* corrupt file never bricks the runtime. The failure is exposed so the
|
|
319
|
+
* composition root can emit a warning.
|
|
320
|
+
*
|
|
321
|
+
* The store's `persistEnabled` is always safe to call regardless of whether
|
|
322
|
+
* the file existed at load time. It creates the config directory on first
|
|
323
|
+
* write.
|
|
324
|
+
* @param makaioHome - Absolute Makaio data-home path.
|
|
325
|
+
* @returns Resolved enablement store, ready for use as a coordinator callback.
|
|
326
|
+
*/
|
|
327
|
+
declare function loadExtensionEnablementStore(makaioHome: string): Promise<ExtensionEnablementStore>;
|
|
328
|
+
//#endregion
|
|
196
329
|
//#region runtimes/node/src/upstream-telemetry.d.ts
|
|
197
330
|
/**
|
|
198
331
|
* Returned by {@link attachUpstreamTelemetry} after the projected transport is connected
|
|
@@ -453,18 +586,13 @@ declare class BusServerTransportProvider implements TransportProvider {
|
|
|
453
586
|
//#endregion
|
|
454
587
|
//#region runtimes/node/src/credential-provider.d.ts
|
|
455
588
|
/**
|
|
456
|
-
* Credential provider
|
|
589
|
+
* Credential provider for resolving credential references.
|
|
457
590
|
*
|
|
458
|
-
*
|
|
591
|
+
* Alias of {@link CredentialResolver} from `@makaio/contracts/extension` — the
|
|
592
|
+
* contracts interface is the authoritative shape; this alias keeps existing
|
|
593
|
+
* consumers that import from the runtime package working without duplication.
|
|
459
594
|
*/
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Resolve a credential reference to its runtime value.
|
|
463
|
-
* @param ref - Credential reference string
|
|
464
|
-
* @returns Resolved value, or null if unavailable
|
|
465
|
-
*/
|
|
466
|
-
resolve(ref: CredentialRef): Promise<string | null>;
|
|
467
|
-
}
|
|
595
|
+
type CredentialProvider = CredentialResolver;
|
|
468
596
|
/**
|
|
469
597
|
* Node.js credential provider.
|
|
470
598
|
*
|
|
@@ -473,6 +601,10 @@ interface CredentialProvider {
|
|
|
473
601
|
declare class NodeCredentialProvider implements CredentialProvider {
|
|
474
602
|
/**
|
|
475
603
|
* Resolve a credential reference to its plaintext value.
|
|
604
|
+
*
|
|
605
|
+
* Returns null (never throws) for `stored:` refs — those require a
|
|
606
|
+
* credential service handler registered on the bus. Returns null (never
|
|
607
|
+
* throws) for `file:` refs that are missing or unreadable.
|
|
476
608
|
* @param ref - Credential reference (`env:`, `file:`, or `keychain:`)
|
|
477
609
|
* @returns Resolved credential value, or null when unavailable
|
|
478
610
|
*/
|
|
@@ -488,7 +620,14 @@ declare class NodeCredentialProvider implements CredentialProvider {
|
|
|
488
620
|
declare class StoredCredentialProvider implements CredentialProvider {
|
|
489
621
|
private readonly bus;
|
|
490
622
|
private readonly fallbackProvider;
|
|
491
|
-
/**
|
|
623
|
+
/**
|
|
624
|
+
* Lazily-opened channel to the credentials endpoint.
|
|
625
|
+
*
|
|
626
|
+
* Only set when a channel is successfully open. Cleared when the service is
|
|
627
|
+
* absent (null return), on open failures, and on `ChannelClosedError` so
|
|
628
|
+
* every subsequent call re-checks the bus via `requestOptional`.
|
|
629
|
+
* Call {@link close} during host shutdown to release the channel explicitly.
|
|
630
|
+
*/
|
|
492
631
|
private channelPromise?;
|
|
493
632
|
/**
|
|
494
633
|
* Create a new stored credential provider.
|
|
@@ -505,18 +644,30 @@ declare class StoredCredentialProvider implements CredentialProvider {
|
|
|
505
644
|
* @returns Resolved credential value, or null when unavailable
|
|
506
645
|
*/
|
|
507
646
|
resolve(ref: CredentialRef): Promise<string | null>;
|
|
647
|
+
/**
|
|
648
|
+
* Close and discard the cached channel. Safe to call multiple times (idempotent).
|
|
649
|
+
*
|
|
650
|
+
* Call during host shutdown before the bus/transport is torn down so the
|
|
651
|
+
* channel is released cleanly rather than abandoned.
|
|
652
|
+
*/
|
|
653
|
+
close(): void;
|
|
508
654
|
/**
|
|
509
655
|
* Lazily open (and cache) the encrypted channel to the credentials endpoint.
|
|
510
656
|
*
|
|
511
|
-
*
|
|
512
|
-
*
|
|
513
|
-
* re-
|
|
514
|
-
*
|
|
657
|
+
* Only a successfully opened channel is cached. When the service is absent
|
|
658
|
+
* (`openCredentialChannel` returns `null`), the promise is cleared so the
|
|
659
|
+
* next call re-checks via `requestOptional` — the service may have registered
|
|
660
|
+
* since this call. Open failures are also cleared so the next call retries
|
|
661
|
+
* rather than re-using a permanently-rejected promise.
|
|
662
|
+
* @returns The open DirectChannel, or null when no handler is registered
|
|
515
663
|
*/
|
|
516
664
|
private getChannel;
|
|
517
665
|
/**
|
|
518
666
|
* Open a fresh encrypted channel to the credentials endpoint.
|
|
519
|
-
*
|
|
667
|
+
*
|
|
668
|
+
* Returns null when no `getChannelToken` handler is registered on the bus
|
|
669
|
+
* (optional service — the credential service is not always present).
|
|
670
|
+
* @returns Newly opened DirectChannel, or null when the service is absent
|
|
520
671
|
*/
|
|
521
672
|
private openCredentialChannel;
|
|
522
673
|
}
|
|
@@ -633,6 +784,173 @@ declare function buildExtensionBrowserRuntimeEntrypoint(extensionName: string, b
|
|
|
633
784
|
*/
|
|
634
785
|
declare function bridgeExtensionBrowserEntries(discovered: ReadonlyArray<DiscoveredExtension>, packages: ReadonlyArray<KernelMakaioExtension>, options?: BridgeBrowserOptions): KernelMakaioExtension[];
|
|
635
786
|
//#endregion
|
|
787
|
+
//#region services/package-manager/src/exported-package-critical.d.ts
|
|
788
|
+
/**
|
|
789
|
+
* One executable package a server entrypoint exports, as reported by
|
|
790
|
+
* {@link resolveExportedPackages}.
|
|
791
|
+
*/
|
|
792
|
+
interface ExportedPackageInfo {
|
|
793
|
+
/** Executable package identity — the descriptor name, or one of its dot-prefixed children. */
|
|
794
|
+
readonly name: string;
|
|
795
|
+
/** Version the exported package declares. */
|
|
796
|
+
readonly version: string;
|
|
797
|
+
/**
|
|
798
|
+
* Whether the exported package declares itself critical.
|
|
799
|
+
*
|
|
800
|
+
* Omitted both when nothing declares the flag and when the declared value
|
|
801
|
+
* failed {@link isValidExportedCriticalFlag}; those two cases are told apart
|
|
802
|
+
* by {@link ExportedPackageListing.invalidCriticalNames}.
|
|
803
|
+
*/
|
|
804
|
+
readonly critical?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Single runtime surface the exported package restricts itself to, when it
|
|
807
|
+
* declares exactly one. Absent means "loads on every surface" — see
|
|
808
|
+
* {@link toRestrictedSurface}.
|
|
809
|
+
*/
|
|
810
|
+
readonly surface?: 'interactive' | 'headless';
|
|
811
|
+
}
|
|
812
|
+
/** Result of {@link resolveExportedPackages}: every accepted package, plus the ones whose `critical` was unusable. */
|
|
813
|
+
interface ExportedPackageListing {
|
|
814
|
+
/** Every package the server entry exports, with any invalid `critical` value stripped. */
|
|
815
|
+
readonly packages: readonly ExportedPackageInfo[];
|
|
816
|
+
/**
|
|
817
|
+
* Names of exported packages whose `critical` field was present but not a
|
|
818
|
+
* `boolean`. Criticality is unresolved for these, not legitimately absent,
|
|
819
|
+
* so a caller that gates a decision on it must refuse rather than read the
|
|
820
|
+
* omitted flag as `false`.
|
|
821
|
+
*/
|
|
822
|
+
readonly invalidCriticalNames: ReadonlySet<string>;
|
|
823
|
+
}
|
|
824
|
+
//#endregion
|
|
825
|
+
//#region runtimes/node/src/installed-extension-readers.d.ts
|
|
826
|
+
/** The one installed package a reader is asked to inspect. */
|
|
827
|
+
interface ExportedPackagesTarget {
|
|
828
|
+
/** Absolute, already-resolved import path for the descriptor's server entrypoint. */
|
|
829
|
+
readonly serverImportPath: string;
|
|
830
|
+
/**
|
|
831
|
+
* Descriptor identity the export is anchored against: one exported package
|
|
832
|
+
* must carry it, every other must be dot-prefixed under it. Never the npm
|
|
833
|
+
* dependency identifier.
|
|
834
|
+
*/
|
|
835
|
+
readonly descriptorName: string;
|
|
836
|
+
/** Log prefix identifying the caller and extension for warnings. */
|
|
837
|
+
readonly label: string;
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Enumerate the executable packages one installed extension exports.
|
|
841
|
+
*
|
|
842
|
+
* Resolves to `undefined` — never to an empty listing — when the export could
|
|
843
|
+
* not be read at all: a missing or unreadable entrypoint, a failed import, or
|
|
844
|
+
* an export that violates the runtime's identity contract. Callers rely on
|
|
845
|
+
* that distinction to tell "this descriptor has no exported package" apart
|
|
846
|
+
* from "this descriptor's package could not be inspected", which decides
|
|
847
|
+
* whether an absent `critical` flag means "not critical" or "unknown". A
|
|
848
|
+
* broken extension must never abort the surrounding scan.
|
|
849
|
+
*/
|
|
850
|
+
type ExportedPackagesReader = (target: ExportedPackagesTarget) => Promise<ExportedPackageListing | undefined>;
|
|
851
|
+
/**
|
|
852
|
+
* Build a reader that imports each server entry inside an isolated worker
|
|
853
|
+
* thread, for a long-lived process that must not serve a module-cached answer.
|
|
854
|
+
* @param frameworkDistPath - Absolute path to the assembled `@makaio/framework`
|
|
855
|
+
* dist when this host resolves `@makaio/framework/*` through a module
|
|
856
|
+
* resolver hook. The worker owns a separate loader context, so it mirrors
|
|
857
|
+
* that hook itself; omit it for hosts that resolve those specifiers
|
|
858
|
+
* natively.
|
|
859
|
+
* @returns A reader backed by the isolated import worker.
|
|
860
|
+
*/
|
|
861
|
+
declare function createWorkerExportedPackagesReader(frameworkDistPath?: string): ExportedPackagesReader;
|
|
862
|
+
//#endregion
|
|
863
|
+
//#region runtimes/node/src/installed-extension-scan.d.ts
|
|
864
|
+
/** Inputs for one installed-extension scan. */
|
|
865
|
+
interface InstalledExtensionScanOptions {
|
|
866
|
+
/**
|
|
867
|
+
* The discovery strategy whose view this scan describes — the same instance
|
|
868
|
+
* the host boots with.
|
|
869
|
+
*
|
|
870
|
+
* Required rather than defaulted: the answer is only meaningful relative to
|
|
871
|
+
* one concrete set of roots and filters, and a scan that silently assembled
|
|
872
|
+
* its own would report packages the host's runtime never sees, and omit
|
|
873
|
+
* packages it does.
|
|
874
|
+
*/
|
|
875
|
+
readonly discovery: ExtensionDiscovery;
|
|
876
|
+
/**
|
|
877
|
+
* Reader used to enumerate each descriptor's exported packages. Defaults to
|
|
878
|
+
* the in-process import, which is correct for a short-lived process; a
|
|
879
|
+
* long-lived runtime must supply the worker-backed reader instead (see
|
|
880
|
+
* {@link ExportedPackagesReader}).
|
|
881
|
+
*/
|
|
882
|
+
readonly exportedPackages?: ExportedPackagesReader;
|
|
883
|
+
/**
|
|
884
|
+
* Module resolver for `@makaio/framework/*` subpath imports, as selected by
|
|
885
|
+
* the host owning this scan.
|
|
886
|
+
*
|
|
887
|
+
* Only meaningful with the default in-process reader, which imports each
|
|
888
|
+
* server entrypoint on this process's own module registry: an extension
|
|
889
|
+
* installed from a local path lives outside that module tree, so its
|
|
890
|
+
* `@makaio/framework/*` imports only resolve while the host's resolver hook
|
|
891
|
+
* is installed. Without it, such an extension's export is unreadable and its
|
|
892
|
+
* criticality is reported unknown — which fails closed, refusing a disable
|
|
893
|
+
* the runtime itself would have allowed.
|
|
894
|
+
*
|
|
895
|
+
* Installed for the duration of one scan and uninstalled afterwards: the
|
|
896
|
+
* hook is process-wide loader state, so the scan owns it only while it is
|
|
897
|
+
* importing extension code. Omitted by hosts that resolve
|
|
898
|
+
* `@makaio/framework/*` natively, and by the worker-backed reader, which
|
|
899
|
+
* mirrors the hook inside its own loader context instead.
|
|
900
|
+
*/
|
|
901
|
+
readonly frameworkModuleResolver?: FrameworkModuleResolver;
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* List every discoverable installed extension, expanded with the executable
|
|
905
|
+
* child packages each descriptor's server entrypoint exports.
|
|
906
|
+
*
|
|
907
|
+
* Tier precedence is the supplied discovery's own, which is the point:
|
|
908
|
+
* whichever of two same-named installs the next boot would load is the one
|
|
909
|
+
* reported as loadable here. What the discovery *refuses* to resolve — and the
|
|
910
|
+
* one contest it cannot even express, because it works on descriptors and not
|
|
911
|
+
* on executable packages — is reported rather than thrown; see
|
|
912
|
+
* {@link mergeDiscoveredTiers}.
|
|
913
|
+
* @param options - Scan inputs; see {@link InstalledExtensionScanOptions}.
|
|
914
|
+
* @returns Records in discovery-tier order; each descriptor's own record is
|
|
915
|
+
* immediately followed by the records for the child packages it exports, and
|
|
916
|
+
* a shadowed record follows the winner that shadows it.
|
|
917
|
+
*/
|
|
918
|
+
declare function scanInstalledExtensions(options: InstalledExtensionScanOptions): Promise<readonly InstalledExtensionRecord[]>;
|
|
919
|
+
//#endregion
|
|
920
|
+
//#region runtimes/node/src/installed-extension-catalog-source.d.ts
|
|
921
|
+
/** Inputs for {@link createInstalledExtensionCatalogSource}. */
|
|
922
|
+
interface InstalledExtensionCatalogSourceOptions {
|
|
923
|
+
/**
|
|
924
|
+
* The discovery strategy this host boots with.
|
|
925
|
+
*
|
|
926
|
+
* The catalog must describe the same view the next boot would see — its
|
|
927
|
+
* configured roots, its tier precedence and its descriptor filters — or it
|
|
928
|
+
* would refuse a name the runtime can load and offer names the runtime would
|
|
929
|
+
* never discover. Passing the resolved strategy itself, rather than a
|
|
930
|
+
* reconstruction of its inputs, is what makes that equality structural.
|
|
931
|
+
*/
|
|
932
|
+
readonly discovery: ExtensionDiscovery;
|
|
933
|
+
/**
|
|
934
|
+
* Absolute path to the assembled `@makaio/framework` dist when this host
|
|
935
|
+
* resolves `@makaio/framework/*` through a module resolver hook; omitted for
|
|
936
|
+
* hosts that resolve those specifiers natively.
|
|
937
|
+
*/
|
|
938
|
+
readonly frameworkDistPath?: string;
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* Build the catalog source for a long-lived runtime.
|
|
942
|
+
*
|
|
943
|
+
* Always reads through the isolated import worker: this process can be asked
|
|
944
|
+
* again after an extension is reinstalled in place, and an import on its own
|
|
945
|
+
* module registry would keep answering from the pre-update module. Each call
|
|
946
|
+
* re-scans rather than caching, for the same reason — the point of the catalog
|
|
947
|
+
* is to describe what the *next* boot would load, which changes underneath a
|
|
948
|
+
* running process every time an extension is installed or removed.
|
|
949
|
+
* @param options - Discovery view and framework resolution for this host.
|
|
950
|
+
* @returns A catalog source suitable for `ExtensionCoordinatorOptions.installedCatalog`.
|
|
951
|
+
*/
|
|
952
|
+
declare function createInstalledExtensionCatalogSource(options: InstalledExtensionCatalogSourceOptions): InstalledExtensionCatalogSource;
|
|
953
|
+
//#endregion
|
|
636
954
|
//#region runtimes/node/src/find-workspace-root.d.ts
|
|
637
955
|
/**
|
|
638
956
|
* Error raised when no workspace root exists above the supplied start
|
|
@@ -674,4 +992,4 @@ declare function findWorkspaceRoot(startDir: string): string;
|
|
|
674
992
|
*/
|
|
675
993
|
declare function findWorkspaceRootInfo(startDir: string): WorkspaceRootInfo;
|
|
676
994
|
//#endregion
|
|
677
|
-
export { type ActivateAdapterRuntimeIdentityInput, type ActivatedAdapterRuntimeIdentity, type AdmitWorkflowRunOperationOptions, type AdmittedWorkflowRun, type AttachedUpstreamTelemetry, type AttemptControlEndpointDeps, type AttemptControlEndpointIdentity, type AttemptControlLastReport, type AttemptControlReportOptions, AttemptOutcomeDeliveryError, AuthorityRequestDeliveryError, type BootCoordinatorSetupContext, type BootMakaioRuntimeOptions, type BootstrapRuntimeConnection, BootstrapStartRefusedError, type BootstrapWorkerRuntimeOptions, type BridgeBrowserOptions, type BundledMigrationsProbes, type BusServerTransportOptions, BusServerTransportProvider, CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS, CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, type ConfiguredRuntimeOptions, type CoreBootOptions, type CreateIsolatedWorkflowRuntimeOptions, type CredentialProvider, type DatabaseBootOptions, type DeliverableOperationKind, type
|
|
995
|
+
export { type ActivateAdapterRuntimeIdentityInput, type ActivatedAdapterRuntimeIdentity, type AdmitWorkflowRunOperationOptions, type AdmittedWorkflowRun, type AttachedUpstreamTelemetry, type AttemptControlEndpointDeps, type AttemptControlEndpointIdentity, type AttemptControlLastReport, type AttemptControlReportOptions, AttemptOutcomeDeliveryError, AuthorityRequestDeliveryError, type BootCoordinatorSetupContext, type BootMakaioRuntimeOptions, type BootstrapRuntimeConnection, BootstrapStartRefusedError, type BootstrapWorkerRuntimeOptions, type BridgeBrowserOptions, type BundledMigrationsProbes, type BusServerTransportOptions, BusServerTransportProvider, CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS, CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, type ConfiguredRuntimeOptions, type CoreBootOptions, type CreateIsolatedWorkflowRuntimeOptions, type CredentialProvider, type DatabaseBootOptions, type DeliverableOperationKind, type DiscoveredExtension, ExplicitDescriptorDiscovery, type ExportedPackageListing, type ExportedPackagesReader, type ExportedPackagesTarget, type ExtensionCriticalView, type ExtensionDiscovery, type ExtensionEnablementFileData, type ExtensionEnablementReadFailure, type ExtensionEnablementReadFailureReason, type ExtensionEnablementStore, ExtensionNameCollisionError, type ExtensionOperatorConfigConsumer, type ExtensionOperatorConfigSnapshot, FileConfigStorage, FileRegistryCache, FilesystemDescriptorDiscovery, type FilesystemDescriptorDiscoveryOptions, type FrameworkModuleResolver, type HeadlessWorkerBootstrap, type HeadlessWorkerBootstrapCredentials, type HeadlessWorkerBusConnector, type HeadlessWorkerContributionLoader, type HeadlessWorkerDeps, type HeadlessWorkerExecutor, type HeadlessWorkerMaterializer, type HeadlessWorkerPostCommitObserver, type HeadlessWorkerResult, type HeadlessWorkflowWorkerDeps, type HeadlessWorkflowWorkerResult, type HonoRouteGraph, type HonoRouteGraphOptions, type HttpContributionPhase, type HttpRouteContribution, type HttpRouteGraphBuilder, type IWorkflowRunner, InProcessWorkflowRunner, type InProcessWorkflowRunnerOptions, type InitializeNodeDatabaseOptions, type InitializeNodeDatabaseResult, type InstalledAttemptControlEndpoint, type InstalledExtensionCatalogSourceOptions, type InstalledExtensionRecord, type InstalledExtensionScanOptions, type InstalledWorkloadAdapter, type IsolatedWorkflowRuntime, type IsolatedWorkflowRuntimeContext, type LoadExtensionOperatorConfigOptions, type LoadExtensionsOptions, type LoadMakaioConfigOptions, type LoadedMakaioConfig, type LocalGitSourceOptions, MAKAIO_CONFIG_FILE_ENV, MAKAIO_HOME_ENV, MAKAIO_UPSTREAM_SECRET_ENV, MAKAIO_UPSTREAM_URL_ENV, MAX_ENABLEMENT_FILE_BYTES, MAX_OPERATOR_CONFIG_BYTES, type MachineKeyStatus, type MachineKeyValidation, type MakaioConfig, type MakaioRuntime, MergedDescriptorDiscovery, type NodeClientBinaryStrategyDependencyOptions, NodeCredentialProvider, NodeFrameworkModuleResolver, type NodeRuntimeOptions, NoopFrameworkModuleResolver, OperationAdmissionRefusedError, type OperationDeliveryEndpoint, type OperationDeliveryEndpointIdentity, type OperationDeliveryHandler, type OperationDeliveryHandlers, OutcomeDeliveryError, type ParseMakaioConfigOptions, type ParsedMakaioConfig, type PersistedMachineIdentity, PiscinaCodeExecutionProvider, type PiscinaCodeExecutionProviderOptions, type PrepareAdapterRuntimeInput, type PreparedAdapterRuntime, type RegisterAndAdmitWorkflowRunOptions, type RegisterWorkerRuntimeOptions, type ResolveUpstreamTelemetryBootOptionsFromEnvOptions, type RotateWorkflowExecutionBusSecretParams, type RunWorkloadInvocationOptions, RuntimeRegistrationRefusedError, RuntimeSubjects, type ServerTransportProvider, type SetupProcessGroupObservation, type StartedWorkerRuntime, StoredCredentialProvider, ThinWorkflowPiscinaRunner, type ThinWorkflowPiscinaRunnerOptions, type TransportReadyInfo, type UpstreamTelemetryBootOptions, type UpstreamTelemetryEnv, type UpstreamTelemetryTransportConfig, type WorkflowRunResult, type WorkflowRunnerBootOptions, type WorkflowRunnerConfig, type WorkflowRuntimeAuthorityConnector, type WorkflowRuntimeContributionLoader, type WorkflowWorkerEntryMode, type WorkflowWorkerEntryResolverOptions, type WorkloadControlBinding, type WorkloadInvocationPreparation, type WorkloadInvocationResult, type WorkspaceRootInfo, WorkspaceRootNotFoundError, activateAdapterRuntimeIdentity, admitWorkflowRunOperation, attachUpstreamTelemetry, bootMakaioRuntime, bootMakaioRuntimeCore, bootstrapWorkerRuntime, bridgeExtensionBrowserEntries, buildConfiguredRuntimeOptions, buildExtensionBrowserRollupInputName, buildExtensionBrowserRuntimeEntrypoint, buildNodeRuntimeOptions, captureWorkflowExecutionBusSecretCleanup, createExtensionOperatorConfigSnapshot, createHonoRouteGraph, createHttpRouteGraphBuilder, createInstalledExtensionCatalogSource, createIsolatedWorkflowRuntime, createLocalGitWorkspacePreparation, createMakaioConfigDiscovery, createNodeClientBinaryStrategyDependencies, createUpstreamTelemetryTransport, createWorkerExportedPackagesReader, defineMakaioConfig, entrypointStem, filterConfigDefaultsForLoadedPackages, findWorkspaceRoot, findWorkspaceRootInfo, getRuntimeDatabase, initializeNodeDatabase, installAttemptControlEndpoint, installOperationDeliveryEndpoint, isCliContributionLike, isExtensionDisabledInStore, isExtensionEnabled, isMakaioExtensionLike, isMissingOptionalRuntimePackage, isWithinDirectory, loadExtensionEnablementStore, loadExtensionOperatorConfig, loadExtensions, loadMakaioConfig, loadOrCreateMachineIdentity, machineKeysExist, mergePackageConfigDefaults, normalizeNodeHostCapabilities, normalizePackageExport, parseMakaioConfig, prepareAdapterRuntime, readFrameworkVersion, registerAdapterNameResolver, registerAndAdmitWorkflowRun, registerRuntimeHandlers, registerWorkerRuntime, resolveBundledMigrationsDir, resolveConventionEntrypoint, resolveExtensionEnablementFile, resolveExtensionOperatorConfigDir, resolveFrameworkSpecifier, resolveListeningPort, resolveMakaioConfigPath, resolveMakaioHome, resolveStaticModelRegistryPath, resolveUpstreamTelemetryBootOptionsFromEnv, resolveWorkflowWorkerEntry, runHeadlessWorker, runHeadlessWorkflowWorker, runMigrations, runRuntimeHandlerCleanups, runWorkloadInvocation, scanInstalledExtensions, selectFrameworkCorePackages, shouldIncludeExtension, submitAttemptOutcomeWithAck, tryImport, validateMachineKeys, waitForServerListening, warnOnUnaddressableExtensionOperatorConfigNames, warnOnUnappliedExtensionOperatorConfig };
|