@makaio/framework 1.0.0-dev-1789642522820 → 1.0.0-dev-1790087128488
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-subsystem/index.d.mts +15 -7
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/claude/index.d.mts +44 -44
- 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 +140 -28
- 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 +27 -1
- 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/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 +174 -174
- 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-DHJJARJP.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/0041_session_principal_owner.sql +1 -0
- package/dist/drizzle/meta/_journal.json +7 -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-C2qColIL.d.mts} +47 -4
- 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-BNFG51Td.mjs → framework-packages-U4Xhouxe.mjs} +1 -1
- package/dist/{hook-responses-CQ2q0aPE.d.mts → hook-responses-CN5r7i3k.d.mts} +1 -1
- package/dist/{index-Dm3d490n.d.mts → index-B2bxgKiK.d.mts} +1 -1
- package/dist/{index-B8v1-2-V2.d.mts → index-BMPU9fkA.d.mts} +5 -5
- package/dist/{index-CdWxSwhQ2.d.mts → index-Bcq3UKLQ2.d.mts} +7 -7
- package/dist/{index-Bh57xARQ.d.mts → index-BwaFXFd2.d.mts} +85 -85
- 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-D17f9C3Y.d.mts +869 -0
- package/dist/{index-KdlZRuTp.d.mts → index-D7dbR7Pu2.d.mts} +8 -8
- package/dist/{index-zEkS2L862.d.mts → index-D9ExWo6a2.d.mts} +441 -47
- package/dist/{index-B-u0Tu8X.d.mts → index-DDff0Q_Y.d.mts} +48 -48
- package/dist/{index-Dn23R_ck.d.mts → index-DH55jJaM.d.mts} +531 -26
- package/dist/{index-BS-Fhlux.d.mts → index-DJxg7U2X.d.mts} +29 -8
- package/dist/{index-C87P0WpY2.d.mts → index-DNdHuoy6.d.mts} +1 -1
- package/dist/{index-B6WkHnCQ.d.mts → index-DQU8ZoJr.d.mts} +1 -1
- package/dist/{index-U--ajOHy.d.mts → index-DUYjTfHD.d.mts} +1 -1
- package/dist/{index-CztxEJrG2.d.mts → index-DauaMtPH2.d.mts} +882 -390
- 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-DjmCOTLM.d.mts} +288 -288
- package/dist/{index-CXpgL3gz2.d.mts → index-Dk_f8Cyz2.d.mts} +3 -3
- package/dist/{index-De_oh9M-2.d.mts → index-DvtVX-Rj.d.mts} +88 -11
- 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-xsaaa85T.d.mts → index-Xnn0gJhU.d.mts} +359 -359
- package/dist/{index-p1l00SGS.d.mts → index-f31ex0nG.d.mts} +96 -27
- package/dist/{index-zmDRR8gv2.d.mts → index-m5ZQFglW2.d.mts} +1 -1
- package/dist/{index-DmX9W3xH2.d.mts → index-qH2Jhegj2.d.mts} +1 -1
- package/dist/{index-CjDQn6lw.d.mts → index-vA46dx7q.d.mts} +100 -100
- 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.d.mts +7 -2
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/{namespace-UFcDEBJB.d.mts → namespace-B2L_hlJ0.d.mts} +154 -154
- package/dist/{namespace-rJ3ycPMg.d.mts → namespace-CHc7YF0S.d.mts} +2 -2
- package/dist/{namespace-BMdYJN_t.mjs → namespace-CqJhR19O.mjs} +1 -1
- package/dist/{namespace-BR03HE8G.d.mts → namespace-DudchWPb.d.mts} +415 -0
- package/dist/{namespace-Phxf0Lep.d.mts → namespace-MW-Eg_yB.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-CxO1lfpP.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-Bz938q5F.d.mts} +2 -2
- package/dist/{package-DYScYC0D.mjs → package-kkPGlxMm.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-bun/index.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-DqKCg5Ec.d.mts → schema-FY0EakKe.d.mts} +26 -0
- package/dist/{schemas-CFciElld.d.mts → schemas-C_0aO9S1.d.mts} +15 -15
- package/dist/{schemas-2_D4iVbb.d.mts → schemas-DiXL8NfA.d.mts} +1 -1
- package/dist/{schemas-Cq1d5tid.d.mts → schemas-Dqro7M1d.d.mts} +154 -154
- 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/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +134 -129
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/namespace.d.mts +2 -2
- package/dist/services/log-import/schemas.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 +3 -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 +242 -13
- 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/{session-lineage-C3myyt5x.d.mts → session-lineage-CjE3qppC.d.mts} +1 -1
- 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/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/{tool-approval-service-CXTklh3T.mjs → tool-approval-service-CRo3fZRF.mjs} +1 -1
- package/dist/{tools-hiFv-jJn.mjs → tools-CKaxi3Mb.mjs} +1 -1
- package/dist/{transition-D-Lgbp1j.d.mts → transition-BVB-sXKI.d.mts} +2 -2
- package/dist/{types-D5kqrOad.d.mts → types-CVOL6fAm.d.mts} +334 -334
- package/dist/{types-CjYcHDPo2.d.mts → types-Cues-R7O2.d.mts} +1 -1
- 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-CbZtzUZI.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 +55 -55
- 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-BalNKTtE.mjs → workflow-transitions-t0ORS1F5.mjs} +1 -1
- package/dist/workflow-worker-DXCXb3g-.mjs +3 -0
- package/package.json +9 -1
- package/dist/bus-BOGcnhgA.mjs +0 -9
- package/dist/client-DqfP7BeX.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-Hnsy6XhM.d.mts +0 -435
- package/dist/load-extensions-BVgxTj_y.mjs +0 -1
- package/dist/ownership-memory-handler-BOhmmlJj.mjs +0 -1
- package/dist/session-BP5aq2kt.mjs +0 -95
- package/dist/session-BcArFp9M.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-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-Htfr-K5U2.d.mts → index-Cm3HuwMC2.d.mts} +6 -6
- 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-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-F7cVpFJ9.d.mts → index-DTvYp2GT.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-D6liU_KS.d.mts → index-fxh7TB0q.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-BqfzcRkL.d.mts → namespace-BdsOXWPU.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-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-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-JjyFxrC0.d.mts → schemas-CU_52YMQ.d.mts} +8 -8
- /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/{server-lifecycle-DUKp1Fbf.d.mts → server-lifecycle-CTJvpdeL.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
|
@@ -717,6 +717,25 @@ declare const SessionStorageNamespace$1: {
|
|
|
717
717
|
}, {}, {
|
|
718
718
|
length: number | undefined;
|
|
719
719
|
}>;
|
|
720
|
+
ownerPrincipalId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
721
|
+
name: "owner_principal_id";
|
|
722
|
+
tableName: "sessions";
|
|
723
|
+
dataType: "string";
|
|
724
|
+
columnType: "SQLiteText";
|
|
725
|
+
data: string;
|
|
726
|
+
driverParam: string;
|
|
727
|
+
notNull: false;
|
|
728
|
+
hasDefault: false;
|
|
729
|
+
isPrimaryKey: false;
|
|
730
|
+
isAutoincrement: false;
|
|
731
|
+
hasRuntimeDefault: false;
|
|
732
|
+
enumValues: [string, ...string[]];
|
|
733
|
+
baseColumn: never;
|
|
734
|
+
identity: undefined;
|
|
735
|
+
generated: undefined;
|
|
736
|
+
}, {}, {
|
|
737
|
+
length: number | undefined;
|
|
738
|
+
}>;
|
|
720
739
|
};
|
|
721
740
|
dialect: "sqlite";
|
|
722
741
|
}>;
|
|
@@ -2197,6 +2216,156 @@ declare const SessionStorageNamespace$1: {
|
|
|
2197
2216
|
created: _$zod.ZodBoolean;
|
|
2198
2217
|
}, _$zod_v4_core0.$strip>;
|
|
2199
2218
|
};
|
|
2219
|
+
registerOwnedImport: {
|
|
2220
|
+
request: _$zod.ZodObject<{
|
|
2221
|
+
ownerPrincipalId: _$zod.ZodString;
|
|
2222
|
+
import: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2223
|
+
externalSessionId: _$zod.ZodString;
|
|
2224
|
+
source: _$zod.ZodString;
|
|
2225
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2226
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2227
|
+
cwd: _$zod.ZodNullable<_$zod.ZodString>;
|
|
2228
|
+
logFilePath: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2229
|
+
startedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2230
|
+
title: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2231
|
+
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
2232
|
+
lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2233
|
+
clientId: _$zod.ZodString;
|
|
2234
|
+
source: _$zod.ZodString;
|
|
2235
|
+
kind: _$zod.ZodString;
|
|
2236
|
+
observedAt: _$zod.ZodNumber;
|
|
2237
|
+
payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2238
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2239
|
+
importStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2240
|
+
discovered: "discovered";
|
|
2241
|
+
tracking: "tracking";
|
|
2242
|
+
}>>;
|
|
2243
|
+
activation: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2244
|
+
live: "live";
|
|
2245
|
+
}>>;
|
|
2246
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2247
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2248
|
+
kind: _$zod.ZodLiteral<"root">;
|
|
2249
|
+
parentAdapterSessionId: _$zod.ZodNull;
|
|
2250
|
+
forkPointMessageId: _$zod.ZodNull;
|
|
2251
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2252
|
+
externalSessionId: _$zod.ZodString;
|
|
2253
|
+
source: _$zod.ZodString;
|
|
2254
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2255
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2256
|
+
cwd: _$zod.ZodNullable<_$zod.ZodString>;
|
|
2257
|
+
logFilePath: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2258
|
+
startedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2259
|
+
title: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2260
|
+
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
2261
|
+
lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2262
|
+
clientId: _$zod.ZodString;
|
|
2263
|
+
source: _$zod.ZodString;
|
|
2264
|
+
kind: _$zod.ZodString;
|
|
2265
|
+
observedAt: _$zod.ZodNumber;
|
|
2266
|
+
payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2267
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2268
|
+
importStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2269
|
+
discovered: "discovered";
|
|
2270
|
+
tracking: "tracking";
|
|
2271
|
+
}>>;
|
|
2272
|
+
activation: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2273
|
+
live: "live";
|
|
2274
|
+
}>>;
|
|
2275
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2276
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2277
|
+
kind: _$zod.ZodLiteral<"fork">;
|
|
2278
|
+
parentAdapterSessionId: _$zod.ZodString;
|
|
2279
|
+
forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
2280
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2281
|
+
externalSessionId: _$zod.ZodString;
|
|
2282
|
+
source: _$zod.ZodString;
|
|
2283
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2284
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2285
|
+
cwd: _$zod.ZodNullable<_$zod.ZodString>;
|
|
2286
|
+
logFilePath: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2287
|
+
startedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2288
|
+
title: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2289
|
+
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
2290
|
+
lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2291
|
+
clientId: _$zod.ZodString;
|
|
2292
|
+
source: _$zod.ZodString;
|
|
2293
|
+
kind: _$zod.ZodString;
|
|
2294
|
+
observedAt: _$zod.ZodNumber;
|
|
2295
|
+
payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2296
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2297
|
+
importStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2298
|
+
discovered: "discovered";
|
|
2299
|
+
tracking: "tracking";
|
|
2300
|
+
}>>;
|
|
2301
|
+
activation: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2302
|
+
live: "live";
|
|
2303
|
+
}>>;
|
|
2304
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2305
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2306
|
+
kind: _$zod.ZodLiteral<"subagent">;
|
|
2307
|
+
parentAdapterSessionId: _$zod.ZodString;
|
|
2308
|
+
forkPointMessageId: _$zod.ZodNull;
|
|
2309
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2310
|
+
externalSessionId: _$zod.ZodString;
|
|
2311
|
+
source: _$zod.ZodString;
|
|
2312
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2313
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2314
|
+
cwd: _$zod.ZodNullable<_$zod.ZodString>;
|
|
2315
|
+
logFilePath: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2316
|
+
startedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2317
|
+
title: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2318
|
+
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
2319
|
+
lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2320
|
+
clientId: _$zod.ZodString;
|
|
2321
|
+
source: _$zod.ZodString;
|
|
2322
|
+
kind: _$zod.ZodString;
|
|
2323
|
+
observedAt: _$zod.ZodNumber;
|
|
2324
|
+
payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2325
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2326
|
+
importStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2327
|
+
discovered: "discovered";
|
|
2328
|
+
tracking: "tracking";
|
|
2329
|
+
}>>;
|
|
2330
|
+
activation: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2331
|
+
live: "live";
|
|
2332
|
+
}>>;
|
|
2333
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2334
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
2335
|
+
kind: _$zod.ZodLiteral<"compress">;
|
|
2336
|
+
parentAdapterSessionId: _$zod.ZodString;
|
|
2337
|
+
forkPointMessageId: _$zod.ZodNull;
|
|
2338
|
+
}, _$zod_v4_core0.$strip>], "kind">;
|
|
2339
|
+
}, _$zod_v4_core0.$strip>;
|
|
2340
|
+
response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2341
|
+
outcome: _$zod.ZodLiteral<"created">;
|
|
2342
|
+
sessionId: _$zod.ZodString;
|
|
2343
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2344
|
+
outcome: _$zod.ZodLiteral<"owned">;
|
|
2345
|
+
sessionId: _$zod.ZodString;
|
|
2346
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2347
|
+
outcome: _$zod.ZodLiteral<"unowned">;
|
|
2348
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2349
|
+
outcome: _$zod.ZodLiteral<"foreign">;
|
|
2350
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2351
|
+
outcome: _$zod.ZodLiteral<"missing">;
|
|
2352
|
+
}, _$zod_v4_core0.$strip>], "outcome">;
|
|
2353
|
+
};
|
|
2354
|
+
verifyOwner: {
|
|
2355
|
+
request: _$zod.ZodObject<{
|
|
2356
|
+
sessionId: _$zod.ZodString;
|
|
2357
|
+
ownerPrincipalId: _$zod.ZodString;
|
|
2358
|
+
}, _$zod_v4_core0.$strip>;
|
|
2359
|
+
response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2360
|
+
outcome: _$zod.ZodLiteral<"owned">;
|
|
2361
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2362
|
+
outcome: _$zod.ZodLiteral<"unowned">;
|
|
2363
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2364
|
+
outcome: _$zod.ZodLiteral<"foreign">;
|
|
2365
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2366
|
+
outcome: _$zod.ZodLiteral<"missing">;
|
|
2367
|
+
}, _$zod_v4_core0.$strip>], "outcome">;
|
|
2368
|
+
};
|
|
2200
2369
|
rebindObserved: {
|
|
2201
2370
|
request: _$zod.ZodObject<{
|
|
2202
2371
|
externalSessionId: _$zod.ZodString;
|
|
@@ -3535,6 +3704,156 @@ declare const SessionStorageNamespace$1: {
|
|
|
3535
3704
|
created: _$zod.ZodBoolean;
|
|
3536
3705
|
}, _$zod_v4_core0.$strip>;
|
|
3537
3706
|
};
|
|
3707
|
+
registerOwnedImport: {
|
|
3708
|
+
request: _$zod.ZodObject<{
|
|
3709
|
+
ownerPrincipalId: _$zod.ZodString;
|
|
3710
|
+
import: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
3711
|
+
externalSessionId: _$zod.ZodString;
|
|
3712
|
+
source: _$zod.ZodString;
|
|
3713
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3714
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3715
|
+
cwd: _$zod.ZodNullable<_$zod.ZodString>;
|
|
3716
|
+
logFilePath: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3717
|
+
startedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
3718
|
+
title: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3719
|
+
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
3720
|
+
lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
3721
|
+
clientId: _$zod.ZodString;
|
|
3722
|
+
source: _$zod.ZodString;
|
|
3723
|
+
kind: _$zod.ZodString;
|
|
3724
|
+
observedAt: _$zod.ZodNumber;
|
|
3725
|
+
payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
3726
|
+
}, _$zod_v4_core0.$strip>>;
|
|
3727
|
+
importStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3728
|
+
discovered: "discovered";
|
|
3729
|
+
tracking: "tracking";
|
|
3730
|
+
}>>;
|
|
3731
|
+
activation: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3732
|
+
live: "live";
|
|
3733
|
+
}>>;
|
|
3734
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
3735
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3736
|
+
kind: _$zod.ZodLiteral<"root">;
|
|
3737
|
+
parentAdapterSessionId: _$zod.ZodNull;
|
|
3738
|
+
forkPointMessageId: _$zod.ZodNull;
|
|
3739
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3740
|
+
externalSessionId: _$zod.ZodString;
|
|
3741
|
+
source: _$zod.ZodString;
|
|
3742
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3743
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3744
|
+
cwd: _$zod.ZodNullable<_$zod.ZodString>;
|
|
3745
|
+
logFilePath: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3746
|
+
startedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
3747
|
+
title: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3748
|
+
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
3749
|
+
lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
3750
|
+
clientId: _$zod.ZodString;
|
|
3751
|
+
source: _$zod.ZodString;
|
|
3752
|
+
kind: _$zod.ZodString;
|
|
3753
|
+
observedAt: _$zod.ZodNumber;
|
|
3754
|
+
payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
3755
|
+
}, _$zod_v4_core0.$strip>>;
|
|
3756
|
+
importStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3757
|
+
discovered: "discovered";
|
|
3758
|
+
tracking: "tracking";
|
|
3759
|
+
}>>;
|
|
3760
|
+
activation: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3761
|
+
live: "live";
|
|
3762
|
+
}>>;
|
|
3763
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
3764
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3765
|
+
kind: _$zod.ZodLiteral<"fork">;
|
|
3766
|
+
parentAdapterSessionId: _$zod.ZodString;
|
|
3767
|
+
forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
3768
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3769
|
+
externalSessionId: _$zod.ZodString;
|
|
3770
|
+
source: _$zod.ZodString;
|
|
3771
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3772
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3773
|
+
cwd: _$zod.ZodNullable<_$zod.ZodString>;
|
|
3774
|
+
logFilePath: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3775
|
+
startedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
3776
|
+
title: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3777
|
+
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
3778
|
+
lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
3779
|
+
clientId: _$zod.ZodString;
|
|
3780
|
+
source: _$zod.ZodString;
|
|
3781
|
+
kind: _$zod.ZodString;
|
|
3782
|
+
observedAt: _$zod.ZodNumber;
|
|
3783
|
+
payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
3784
|
+
}, _$zod_v4_core0.$strip>>;
|
|
3785
|
+
importStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3786
|
+
discovered: "discovered";
|
|
3787
|
+
tracking: "tracking";
|
|
3788
|
+
}>>;
|
|
3789
|
+
activation: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3790
|
+
live: "live";
|
|
3791
|
+
}>>;
|
|
3792
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
3793
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3794
|
+
kind: _$zod.ZodLiteral<"subagent">;
|
|
3795
|
+
parentAdapterSessionId: _$zod.ZodString;
|
|
3796
|
+
forkPointMessageId: _$zod.ZodNull;
|
|
3797
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3798
|
+
externalSessionId: _$zod.ZodString;
|
|
3799
|
+
source: _$zod.ZodString;
|
|
3800
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3801
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3802
|
+
cwd: _$zod.ZodNullable<_$zod.ZodString>;
|
|
3803
|
+
logFilePath: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3804
|
+
startedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
3805
|
+
title: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3806
|
+
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
3807
|
+
lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
3808
|
+
clientId: _$zod.ZodString;
|
|
3809
|
+
source: _$zod.ZodString;
|
|
3810
|
+
kind: _$zod.ZodString;
|
|
3811
|
+
observedAt: _$zod.ZodNumber;
|
|
3812
|
+
payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
3813
|
+
}, _$zod_v4_core0.$strip>>;
|
|
3814
|
+
importStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3815
|
+
discovered: "discovered";
|
|
3816
|
+
tracking: "tracking";
|
|
3817
|
+
}>>;
|
|
3818
|
+
activation: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3819
|
+
live: "live";
|
|
3820
|
+
}>>;
|
|
3821
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
3822
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
3823
|
+
kind: _$zod.ZodLiteral<"compress">;
|
|
3824
|
+
parentAdapterSessionId: _$zod.ZodString;
|
|
3825
|
+
forkPointMessageId: _$zod.ZodNull;
|
|
3826
|
+
}, _$zod_v4_core0.$strip>], "kind">;
|
|
3827
|
+
}, _$zod_v4_core0.$strip>;
|
|
3828
|
+
response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
3829
|
+
outcome: _$zod.ZodLiteral<"created">;
|
|
3830
|
+
sessionId: _$zod.ZodString;
|
|
3831
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3832
|
+
outcome: _$zod.ZodLiteral<"owned">;
|
|
3833
|
+
sessionId: _$zod.ZodString;
|
|
3834
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3835
|
+
outcome: _$zod.ZodLiteral<"unowned">;
|
|
3836
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3837
|
+
outcome: _$zod.ZodLiteral<"foreign">;
|
|
3838
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3839
|
+
outcome: _$zod.ZodLiteral<"missing">;
|
|
3840
|
+
}, _$zod_v4_core0.$strip>], "outcome">;
|
|
3841
|
+
};
|
|
3842
|
+
verifyOwner: {
|
|
3843
|
+
request: _$zod.ZodObject<{
|
|
3844
|
+
sessionId: _$zod.ZodString;
|
|
3845
|
+
ownerPrincipalId: _$zod.ZodString;
|
|
3846
|
+
}, _$zod_v4_core0.$strip>;
|
|
3847
|
+
response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
3848
|
+
outcome: _$zod.ZodLiteral<"owned">;
|
|
3849
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3850
|
+
outcome: _$zod.ZodLiteral<"unowned">;
|
|
3851
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3852
|
+
outcome: _$zod.ZodLiteral<"foreign">;
|
|
3853
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3854
|
+
outcome: _$zod.ZodLiteral<"missing">;
|
|
3855
|
+
}, _$zod_v4_core0.$strip>], "outcome">;
|
|
3856
|
+
};
|
|
3538
3857
|
rebindObserved: {
|
|
3539
3858
|
request: _$zod.ZodObject<{
|
|
3540
3859
|
externalSessionId: _$zod.ZodString;
|
|
@@ -3971,6 +4290,102 @@ declare const SessionStorageNamespace$1: {
|
|
|
3971
4290
|
importStatus?: "discovered" | "imported" | "tracking" | undefined;
|
|
3972
4291
|
isSidechain?: boolean | undefined;
|
|
3973
4292
|
machineId?: string | null | undefined;
|
|
4293
|
+
} | {
|
|
4294
|
+
externalSessionId: string;
|
|
4295
|
+
source: string;
|
|
4296
|
+
cwd: string | null;
|
|
4297
|
+
kind: "root";
|
|
4298
|
+
parentAdapterSessionId: null;
|
|
4299
|
+
forkPointMessageId: null;
|
|
4300
|
+
clientId?: string | undefined;
|
|
4301
|
+
adapterId?: string | undefined;
|
|
4302
|
+
logFilePath?: string | null | undefined;
|
|
4303
|
+
startedAt?: number | undefined;
|
|
4304
|
+
title?: string | null | undefined;
|
|
4305
|
+
metadata?: Record<string, _$_makaio_contracts0.JsonValue> | undefined;
|
|
4306
|
+
lastClientIdentityObservation?: {
|
|
4307
|
+
clientId: string;
|
|
4308
|
+
source: string;
|
|
4309
|
+
kind: string;
|
|
4310
|
+
observedAt: number;
|
|
4311
|
+
payload: Record<string, unknown>;
|
|
4312
|
+
} | undefined;
|
|
4313
|
+
importStatus?: "discovered" | "tracking" | undefined;
|
|
4314
|
+
activation?: "live" | undefined;
|
|
4315
|
+
isSidechain?: boolean | undefined;
|
|
4316
|
+
machineId?: string | null | undefined;
|
|
4317
|
+
} | {
|
|
4318
|
+
externalSessionId: string;
|
|
4319
|
+
source: string;
|
|
4320
|
+
cwd: string | null;
|
|
4321
|
+
kind: "fork";
|
|
4322
|
+
parentAdapterSessionId: string;
|
|
4323
|
+
forkPointMessageId: string | null;
|
|
4324
|
+
clientId?: string | undefined;
|
|
4325
|
+
adapterId?: string | undefined;
|
|
4326
|
+
logFilePath?: string | null | undefined;
|
|
4327
|
+
startedAt?: number | undefined;
|
|
4328
|
+
title?: string | null | undefined;
|
|
4329
|
+
metadata?: Record<string, _$_makaio_contracts0.JsonValue> | undefined;
|
|
4330
|
+
lastClientIdentityObservation?: {
|
|
4331
|
+
clientId: string;
|
|
4332
|
+
source: string;
|
|
4333
|
+
kind: string;
|
|
4334
|
+
observedAt: number;
|
|
4335
|
+
payload: Record<string, unknown>;
|
|
4336
|
+
} | undefined;
|
|
4337
|
+
importStatus?: "discovered" | "tracking" | undefined;
|
|
4338
|
+
activation?: "live" | undefined;
|
|
4339
|
+
isSidechain?: boolean | undefined;
|
|
4340
|
+
machineId?: string | null | undefined;
|
|
4341
|
+
} | {
|
|
4342
|
+
externalSessionId: string;
|
|
4343
|
+
source: string;
|
|
4344
|
+
cwd: string | null;
|
|
4345
|
+
kind: "subagent";
|
|
4346
|
+
parentAdapterSessionId: string;
|
|
4347
|
+
forkPointMessageId: null;
|
|
4348
|
+
clientId?: string | undefined;
|
|
4349
|
+
adapterId?: string | undefined;
|
|
4350
|
+
logFilePath?: string | null | undefined;
|
|
4351
|
+
startedAt?: number | undefined;
|
|
4352
|
+
title?: string | null | undefined;
|
|
4353
|
+
metadata?: Record<string, _$_makaio_contracts0.JsonValue> | undefined;
|
|
4354
|
+
lastClientIdentityObservation?: {
|
|
4355
|
+
clientId: string;
|
|
4356
|
+
source: string;
|
|
4357
|
+
kind: string;
|
|
4358
|
+
observedAt: number;
|
|
4359
|
+
payload: Record<string, unknown>;
|
|
4360
|
+
} | undefined;
|
|
4361
|
+
importStatus?: "discovered" | "tracking" | undefined;
|
|
4362
|
+
activation?: "live" | undefined;
|
|
4363
|
+
isSidechain?: boolean | undefined;
|
|
4364
|
+
machineId?: string | null | undefined;
|
|
4365
|
+
} | {
|
|
4366
|
+
externalSessionId: string;
|
|
4367
|
+
source: string;
|
|
4368
|
+
cwd: string | null;
|
|
4369
|
+
kind: "compress";
|
|
4370
|
+
parentAdapterSessionId: string;
|
|
4371
|
+
forkPointMessageId: null;
|
|
4372
|
+
clientId?: string | undefined;
|
|
4373
|
+
adapterId?: string | undefined;
|
|
4374
|
+
logFilePath?: string | null | undefined;
|
|
4375
|
+
startedAt?: number | undefined;
|
|
4376
|
+
title?: string | null | undefined;
|
|
4377
|
+
metadata?: Record<string, _$_makaio_contracts0.JsonValue> | undefined;
|
|
4378
|
+
lastClientIdentityObservation?: {
|
|
4379
|
+
clientId: string;
|
|
4380
|
+
source: string;
|
|
4381
|
+
kind: string;
|
|
4382
|
+
observedAt: number;
|
|
4383
|
+
payload: Record<string, unknown>;
|
|
4384
|
+
} | undefined;
|
|
4385
|
+
importStatus?: "discovered" | "tracking" | undefined;
|
|
4386
|
+
activation?: "live" | undefined;
|
|
4387
|
+
isSidechain?: boolean | undefined;
|
|
4388
|
+
machineId?: string | null | undefined;
|
|
3974
4389
|
} | {
|
|
3975
4390
|
adapterName: string;
|
|
3976
4391
|
adapterId: string;
|
|
@@ -47,8 +47,8 @@ declare const AdapterRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"a
|
|
|
47
47
|
teardownCompleted: _$zod.ZodObject<{
|
|
48
48
|
evidence: _$zod.ZodEnum<{
|
|
49
49
|
unknown: "unknown";
|
|
50
|
-
exited: "exited";
|
|
51
50
|
closed: "closed";
|
|
51
|
+
exited: "exited";
|
|
52
52
|
released: "released";
|
|
53
53
|
detached: "detached";
|
|
54
54
|
}>;
|
|
@@ -100,8 +100,8 @@ declare const AdapterRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
100
100
|
teardownCompleted: _$zod.ZodObject<{
|
|
101
101
|
evidence: _$zod.ZodEnum<{
|
|
102
102
|
unknown: "unknown";
|
|
103
|
-
exited: "exited";
|
|
104
103
|
closed: "closed";
|
|
104
|
+
exited: "exited";
|
|
105
105
|
released: "released";
|
|
106
106
|
detached: "detached";
|
|
107
107
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as BusServerConfig, n as startBusServer, r as BusServer, t as StartBusServerOptions } from "../../server-lifecycle-
|
|
1
|
+
import { i as BusServerConfig, n as startBusServer, r as BusServer, t as StartBusServerOptions } from "../../server-lifecycle-CTJvpdeL.mjs";
|
|
2
2
|
import { BusBroadcastMessage, BusMessage, BusRequestMessage, BusTransport, BusTransportError } from "@makaio/framework/bus";
|
|
3
3
|
import { TransportAuth, WebSocketLike, WebSocketServerLike, WebSocketServerLike as WebSocketServerLike$1 } from "@makaio/framework/node/transports";
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as startBusServer, t as StartBusServerOptions } from "../../server-lifecycle-
|
|
1
|
+
import { n as startBusServer, t as StartBusServerOptions } from "../../server-lifecycle-CTJvpdeL.mjs";
|
|
2
2
|
export { StartBusServerOptions, startBusServer };
|
|
@@ -1036,6 +1036,27 @@ type WebSocketTransportOptions = WebSocketClientTransportOptions$1 | WebSocketSe
|
|
|
1036
1036
|
* codec and fall back to a plain JSON codec when none is provided.
|
|
1037
1037
|
*/
|
|
1038
1038
|
interface ClientTransportCodec {
|
|
1039
|
+
/**
|
|
1040
|
+
* Report whether this codec can encode the given outbound bus message right now.
|
|
1041
|
+
*
|
|
1042
|
+
* When absent the codec is treated as able to encode any message. Return
|
|
1043
|
+
* `false` when a prerequisite is not yet satisfied for this specific message —
|
|
1044
|
+
* for example, when an end-to-end encryption session has not been established
|
|
1045
|
+
* and the message is not one of the control-plane frames that travel in
|
|
1046
|
+
* plaintext before the session exists.
|
|
1047
|
+
*
|
|
1048
|
+
* Unlike a global readiness gate, `canEncode` is message-selective: a relay
|
|
1049
|
+
* codec may return `true` for control-plane frames that travel in plaintext
|
|
1050
|
+
* while returning `false` for application-level messages that require an
|
|
1051
|
+
* established session key.
|
|
1052
|
+
*
|
|
1053
|
+
* Side effects must not occur inside `canEncode`. In particular, tracked
|
|
1054
|
+
* correlation IDs must only be consumed (deleted) inside `encode`, never
|
|
1055
|
+
* during a `canEncode` check.
|
|
1056
|
+
* @param message - Outbound bus message to test
|
|
1057
|
+
* @returns `true` when this codec can encode the message; `false` otherwise
|
|
1058
|
+
*/
|
|
1059
|
+
canEncode?(message: BusMessage): boolean;
|
|
1039
1060
|
/**
|
|
1040
1061
|
* Encode a bus message for transmission.
|
|
1041
1062
|
* @param message - Bus message to encode
|
|
@@ -1117,6 +1138,22 @@ interface WebSocketClientTransportHeartbeatOptions {
|
|
|
1117
1138
|
*/
|
|
1118
1139
|
timeoutMs?: number;
|
|
1119
1140
|
}
|
|
1141
|
+
/**
|
|
1142
|
+
* What "ready" means for a `WebSocketClientTransport`.
|
|
1143
|
+
*
|
|
1144
|
+
* The bus gates request dispatch on a transport's `ready` promise, so the mode
|
|
1145
|
+
* must describe a milestone the peer can actually deliver.
|
|
1146
|
+
*
|
|
1147
|
+
* - `'peer-sync'` — ready once the peer's `subscribe-sync-complete` handshake
|
|
1148
|
+
* arrives, meaning its remote handler routes have been advertised to this
|
|
1149
|
+
* node. Only a Makaio bus server answers that handshake.
|
|
1150
|
+
* - `'session-established'` — ready once this transport's own session is up:
|
|
1151
|
+
* socket open, authentication complete and buffered subscriptions replayed.
|
|
1152
|
+
* For a relay-backed peer that forwards frames without participating in bus
|
|
1153
|
+
* routing, this is the strongest promise the connection can honestly make;
|
|
1154
|
+
* declaring `'peer-sync'` there would leave `ready` pending forever.
|
|
1155
|
+
*/
|
|
1156
|
+
type WebSocketClientTransportReadinessMode = 'peer-sync' | 'session-established';
|
|
1120
1157
|
/**
|
|
1121
1158
|
* Configuration options for `WebSocketClientTransport`.
|
|
1122
1159
|
*/
|
|
@@ -1138,6 +1175,16 @@ interface WebSocketClientTransportOptions {
|
|
|
1138
1175
|
* Authentication strategy for HMAC or E2E handshakes.
|
|
1139
1176
|
*/
|
|
1140
1177
|
auth?: TransportAuth;
|
|
1178
|
+
/**
|
|
1179
|
+
* Milestone at which this transport's `ready` promise resolves.
|
|
1180
|
+
*
|
|
1181
|
+
* Leave at the default when connecting to a Makaio bus server. Set
|
|
1182
|
+
* `'session-established'` when the peer relays frames without answering the
|
|
1183
|
+
* `subscribe-sync-complete` handshake, so `ready` reports the session this
|
|
1184
|
+
* connection actually establishes instead of one the peer never confirms.
|
|
1185
|
+
* @defaultValue 'peer-sync'
|
|
1186
|
+
*/
|
|
1187
|
+
readiness?: WebSocketClientTransportReadinessMode;
|
|
1141
1188
|
/**
|
|
1142
1189
|
* Wire codec for encryption or custom framing.
|
|
1143
1190
|
*
|
|
@@ -1243,6 +1290,7 @@ declare class WebSocketClientTransport implements BusTransport {
|
|
|
1243
1290
|
private readonly autoReconnectConfig;
|
|
1244
1291
|
private readonly heartbeatConfig;
|
|
1245
1292
|
private readonly connectTimeoutMs;
|
|
1293
|
+
private readonly readiness;
|
|
1246
1294
|
private readonly wsFactory;
|
|
1247
1295
|
private readonly debug;
|
|
1248
1296
|
private readonly onConnectedCallback;
|
|
@@ -1277,7 +1325,13 @@ declare class WebSocketClientTransport implements BusTransport {
|
|
|
1277
1325
|
private reconnectLoopRunning;
|
|
1278
1326
|
/** Resolver for the current ready promise; `null` once resolved. */
|
|
1279
1327
|
private readyResolve;
|
|
1280
|
-
/**
|
|
1328
|
+
/**
|
|
1329
|
+
* Resolves at the milestone selected by the `readiness` option; reset on each reconnect.
|
|
1330
|
+
*
|
|
1331
|
+
* Under `'peer-sync'` (the default) that is the inbound `subscribe-sync-complete`
|
|
1332
|
+
* handshake; under `'session-established'` it is this side's own session coming up.
|
|
1333
|
+
* Also resolved on disconnect so a dropped connection never gates bus dispatch.
|
|
1334
|
+
*/
|
|
1281
1335
|
ready: Promise<void>;
|
|
1282
1336
|
/** Set by the transport registry to track each session's ready promise for dispatch gating. */
|
|
1283
1337
|
onNewReadySession: ((promise: Promise<void>) => void) | undefined;
|
|
@@ -1352,11 +1406,42 @@ declare class WebSocketClientTransport implements BusTransport {
|
|
|
1352
1406
|
* @param error - Optional cancellation error
|
|
1353
1407
|
*/
|
|
1354
1408
|
cancelRequest(correlationId: string, error?: Error): void;
|
|
1409
|
+
/**
|
|
1410
|
+
* Whether the wire session is live: an owned socket is open and auth completed.
|
|
1411
|
+
*
|
|
1412
|
+
* Codec encoding eligibility (`canEncode`) is deliberately excluded — it gates
|
|
1413
|
+
* per-message outbound routing, not the session lifecycle. The transport lifecycle
|
|
1414
|
+
* (connected/disconnected) is driven by wire-session state so that `onDisconnected`
|
|
1415
|
+
* is always preceded by `onConnected` regardless of codec state.
|
|
1416
|
+
*
|
|
1417
|
+
* `hasLiveWireSession` is the internal predicate shared across the lifecycle and
|
|
1418
|
+
* reconnect logic. `isReady()` is the `BusTransport`-contract surface that delegates
|
|
1419
|
+
* to it; the two exist separately so lifecycle code can call the predicate without
|
|
1420
|
+
* going through the public method.
|
|
1421
|
+
* @returns `true` when the socket is open and authenticated
|
|
1422
|
+
*/
|
|
1423
|
+
private hasLiveWireSession;
|
|
1355
1424
|
/**
|
|
1356
1425
|
* Returns `true` when the socket is open (`readyState === 1`) and auth has completed.
|
|
1357
|
-
*
|
|
1426
|
+
*
|
|
1427
|
+
* Wire-session state only — codec encoding eligibility is deliberately excluded.
|
|
1428
|
+
* Use `canSend(message)` to check whether a specific outbound message can be
|
|
1429
|
+
* dispatched through this transport.
|
|
1430
|
+
* @returns `true` when the wire session is live
|
|
1358
1431
|
*/
|
|
1359
1432
|
isReady(): boolean;
|
|
1433
|
+
/**
|
|
1434
|
+
* Returns `true` when the wire session is live and the codec can encode the given
|
|
1435
|
+
* outbound bus message.
|
|
1436
|
+
*
|
|
1437
|
+
* Combines `hasLiveWireSession()` with the codec's message-selective `canEncode`
|
|
1438
|
+
* gate. A relay codec may return `true` for control-plane frames that travel in
|
|
1439
|
+
* plaintext before the E2E session key is established, while returning `false`
|
|
1440
|
+
* for application-level messages.
|
|
1441
|
+
* @param message - Outbound bus message to test
|
|
1442
|
+
* @returns `true` when the wire session is live and the codec can encode the message
|
|
1443
|
+
*/
|
|
1444
|
+
canSend(message: BusMessage): boolean;
|
|
1360
1445
|
/**
|
|
1361
1446
|
* Trigger an immediate reconnection attempt.
|
|
1362
1447
|
*
|
|
@@ -1754,7 +1839,14 @@ interface E2ERelayClientTransportOptions extends Omit<WebSocketClientTransportOp
|
|
|
1754
1839
|
* session when the codec is reused across reconnections.
|
|
1755
1840
|
*/
|
|
1756
1841
|
interface E2ERelayCodecHandle {
|
|
1757
|
-
/**
|
|
1842
|
+
/**
|
|
1843
|
+
* Wire codec for E2E relay encryption.
|
|
1844
|
+
*
|
|
1845
|
+
* Implements `canEncode` with message-selective logic: relay-control frames,
|
|
1846
|
+
* tracked relay-control responses, and subscription-control frames return `true`
|
|
1847
|
+
* before any E2E session exists; all other messages require a session key
|
|
1848
|
+
* (`e2eAuth.getSessionKey()` non-null).
|
|
1849
|
+
*/
|
|
1758
1850
|
codec: ClientTransportCodec;
|
|
1759
1851
|
/**
|
|
1760
1852
|
* Clear all relay-control correlation IDs.
|
|
@@ -1772,6 +1864,12 @@ interface E2ERelayCodecHandle {
|
|
|
1772
1864
|
* routing. Use this when constructing a `WebSocketClientTransport` with E2E
|
|
1773
1865
|
* relay encryption instead of the lower-level `createE2ERelayClientTransport`.
|
|
1774
1866
|
*
|
|
1867
|
+
* The returned codec implements `canEncode` with message-selective logic: relay-control
|
|
1868
|
+
* frames, tracked relay-control responses, and subscription-control frames are allowed
|
|
1869
|
+
* before any E2E session exists; all other messages require a session key. Use
|
|
1870
|
+
* `WebSocketClientTransport.canSend(message)` to gate outbound bus traffic correctly
|
|
1871
|
+
* per message.
|
|
1872
|
+
*
|
|
1775
1873
|
* The returned `reset()` method **must** be called at the start of each new
|
|
1776
1874
|
* connection attempt when the codec is reused across reconnections. Failing to
|
|
1777
1875
|
* reset allows relay-control correlation IDs from a previous session to
|
|
@@ -2153,4 +2251,4 @@ declare module '@makaio/framework/bus' {
|
|
|
2153
2251
|
}
|
|
2154
2252
|
}
|
|
2155
2253
|
//#endregion
|
|
2156
|
-
export { type ClientTransportCodec, DispatchingAuth, E2EAuth, E2ERelayAuth, type E2ERelayAuthOptions, HmacAuth, type HmacIdentitySecretRegistrationOptions, type HmacIdentitySecretRotationOptions, type RelayControlBusMessage, type RelayControlEnvelopeMessage, type RelayControlHelpers, type RelayControlRegistry, ServerTransport, type TransportAuth, WebSocketClientTransport, type WebSocketClientTransportHeartbeatOptions, type WebSocketClientTransportOptions, type WebSocketClientTransportReconnectOptions, type WebSocketCloseEvent, WebSocketConnectionError, type WebSocketConnectionErrorCode, type WebSocketLike, type WebSocketServerLike, captureHmacIdentitySecretCleanup, clearHmacIdentitySecretsForTesting, createE2EClientTransport, createE2ERelayClientTransport, createE2ERelayCodec, createRelayControlHelpers, createRelayControlRegistry, createWebSocketCloseEvent, createWebSocketTransport, index_d_exports as crypto, extractSocketErrorMessage, registerHmacIdentitySecret, resolveHmacIdentityAllowedMessageSubjects, resolveHmacIdentityAllowedSubscriptionSubjects, resolveHmacIdentityPeer, resolveHmacIdentitySecret, rotateHmacIdentitySecret };
|
|
2254
|
+
export { type ClientTransportCodec, DispatchingAuth, E2EAuth, E2ERelayAuth, type E2ERelayAuthOptions, HmacAuth, type HmacIdentitySecretRegistrationOptions, type HmacIdentitySecretRotationOptions, type RelayControlBusMessage, type RelayControlEnvelopeMessage, type RelayControlHelpers, type RelayControlRegistry, ServerTransport, type TransportAuth, WebSocketClientTransport, type WebSocketClientTransportHeartbeatOptions, type WebSocketClientTransportOptions, type WebSocketClientTransportReadinessMode, type WebSocketClientTransportReconnectOptions, type WebSocketCloseEvent, WebSocketConnectionError, type WebSocketConnectionErrorCode, type WebSocketLike, type WebSocketServerLike, captureHmacIdentitySecretCleanup, clearHmacIdentitySecretsForTesting, createE2EClientTransport, createE2ERelayClientTransport, createE2ERelayCodec, createRelayControlHelpers, createRelayControlRegistry, createWebSocketCloseEvent, createWebSocketTransport, index_d_exports as crypto, extractSocketErrorMessage, registerHmacIdentitySecret, resolveHmacIdentityAllowedMessageSubjects, resolveHmacIdentityAllowedSubscriptionSubjects, resolveHmacIdentityPeer, resolveHmacIdentitySecret, rotateHmacIdentitySecret };
|