@makaio/framework 1.0.0-dev-1784889676396 → 1.0.0-dev-1785344643235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +3 -2
- package/dist/{account-identity-CP4DC0DL.mjs → account-identity-DFx8pwKL.mjs} +1 -1
- package/dist/{adapter-CYobxqN_.mjs → adapter-D5c5LrPN.mjs} +1 -1
- package/dist/adapters/claude/index.d.mts +204 -27
- package/dist/adapters/claude/index.mjs +3 -3
- package/dist/adapters/config/index.d.mts +2 -2
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +49 -4
- package/dist/adapters/index.mjs +3 -3
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/{artifact-DCkizHkS.mjs → artifact-DGiXqb11.mjs} +1 -1
- package/dist/attempt-record-codec-CqO1_XnE.mjs +1 -0
- package/dist/{auth-C3NOWqTU.mjs → auth-DGEdiHF6.mjs} +1 -1
- package/dist/authority-state-bootstrap-GPL_tqaT.mjs +1 -0
- package/dist/bus/index.mjs +1 -1
- package/dist/{canonical-model-EMRYCVjX.mjs → canonical-model-BAytQ4NV.mjs} +1 -1
- package/dist/capabilities-BQEp34ir.mjs +1 -0
- package/dist/{client-OYk0Ttck.mjs → client-DbS847wW.mjs} +1 -1
- package/dist/clients/index.d.mts +5 -3
- package/dist/clients/index.mjs +1 -1
- package/dist/clients/managed-install.d.mts +1 -1
- package/dist/clients/managed-install.mjs +1 -1
- package/dist/{compression-CZ_6fYq8.mjs → compression-74fFeBha.mjs} +1 -1
- package/dist/{config-namespace-DTA6EQL8.mjs → config-namespace-TVX-hG4I.mjs} +1 -1
- package/dist/{context-resolution-B9ANWbG0.d.mts → context-resolution-BQBk4Ish.d.mts} +6 -4
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -2
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/auth/index.mjs +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +2 -0
- package/dist/contracts/capabilities/index.mjs +1 -0
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +24 -2
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +4 -4
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/facet/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +1682 -9431
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/model-registry/index.d.mts +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- package/dist/contracts/provider/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +2 -2
- package/dist/contracts/shared/index.mjs +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/skill/index.mjs +1 -1
- package/dist/contracts/telemetry/index.d.mts +1 -1
- package/dist/contracts/telemetry/index.mjs +1 -1
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/timeout/index.mjs +1 -1
- package/dist/contracts/toast/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/variant/index.mjs +1 -1
- package/dist/contracts/worker-node/index.d.mts +2 -0
- package/dist/contracts/worker-node/index.mjs +1 -0
- package/dist/contracts/workflow/index.d.mts +3 -3
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-K3m51lgO.mjs → definition-CJfiv8xm.mjs} +1 -1
- package/dist/{detached-extension-handle-BsywhHfk.mjs → detached-extension-handle-Ddfquy5_.mjs} +1 -1
- package/dist/drizzle/0030_remote-worker-execution.sql +6 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/execution-attempt-repository-DWXKY41_.d.mts +1056 -0
- package/dist/execution-target-Cf645pDj.mjs +1 -0
- package/dist/{extension-Cgg45Xk1.mjs → extension-DCA4pYrY.mjs} +1 -1
- package/dist/extension-hjOPs10e.mjs +1 -0
- package/dist/{filesystem-service-Cupz_Z7S.mjs → filesystem-service-DlP2HfDg.mjs} +1 -1
- package/dist/framework-packages-C3RWfJDk.mjs +1 -0
- package/dist/git/index.mjs +1 -1
- package/dist/{globby-DWp7V-P2.mjs → globby-1yCVCk8s.mjs} +1 -1
- package/dist/{handlers-cMBmexF4.mjs → handlers-CfnLyLfE.mjs} +1 -1
- package/dist/{harness-DflvHAGV.mjs → harness-DpwsFsE7.mjs} +1 -1
- package/dist/{index-BhXCCgJV2.d.mts → index-4fE_hUP02.d.mts} +1 -1
- package/dist/{index-BMx59xb7.d.mts → index-8gKx-OVP.d.mts} +13 -7
- package/dist/index-B0Kf_OWi.d.mts +267 -0
- package/dist/{index-DRiTICBU.d.mts → index-BAXkicoQ.d.mts} +1 -1
- package/dist/{index-CnXXq6sW.d.mts → index-BC79QrGC.d.mts} +10 -10
- package/dist/{index-CvmWRumB.d.mts → index-BQLUVXIB.d.mts} +1024 -888
- package/dist/{index-CKO9S6oo.d.mts → index-BXD3kEs_.d.mts} +28 -10
- package/dist/{index-DUf47Jn_.d.mts → index-BskPjMet.d.mts} +8 -8
- package/dist/{index-CjyfQ_vQ.d.mts → index-CL-0NeQW.d.mts} +8 -5
- package/dist/{index-Cw7_69gV.d.mts → index-CRvpVIqA.d.mts} +1 -1
- package/dist/{index-7FjcxGlK.d.mts → index-CUvNKYkV.d.mts} +1 -1
- package/dist/{index-CtUTCAJ6.d.mts → index-CVaRZoiu.d.mts} +4 -4
- package/dist/{index-Cw84_Dqi.d.mts → index-CnMu8BQl.d.mts} +4 -4
- package/dist/{index-DaMfTvfz.d.mts → index-DA9g2A5P.d.mts} +1 -1
- package/dist/{index-Bi5jFT9S.d.mts → index-DJAmSnuh.d.mts} +12 -12
- package/dist/{index-pjATMrvJ.d.mts → index-DkiTJM5p.d.mts} +693 -31
- package/dist/{index-jbgHR5J2.d.mts → index-GHASUiem.d.mts} +1 -1
- package/dist/{index-BDDbcWNI.d.mts → index-HsTxm-R3.d.mts} +3 -3
- package/dist/{index-Bs3CXR232.d.mts → index-I5YG-qrb2.d.mts} +6 -6
- package/dist/{index-0Ju2i8gV.d.mts → index-SsBHjUqA.d.mts} +204 -165
- package/dist/index-XZyMxxnU.d.mts +1602 -0
- package/dist/{index-dkvGHN10.d.mts → index-brqfk9JQ.d.mts} +6 -6
- package/dist/{index-D43lQCHs.d.mts → index-q0Tiqems.d.mts} +131 -131
- package/dist/index-w_FmghjT.d.mts +7295 -0
- package/dist/kernel/cli/index.d.mts +2 -2
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/register.d.mts +1 -1
- package/dist/kernel/cli/register.mjs +1 -1
- package/dist/kernel/cli/schemas.mjs +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/extension/index.mjs +1 -1
- package/dist/kernel/index.d.mts +14 -8
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/namespace/index.mjs +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/providers/index.mjs +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/kernel/window/index.mjs +1 -1
- package/dist/{lib-BeMM738r.mjs → lib-C7-s68uf.mjs} +1 -1
- package/dist/{lib-B7TpTzkG.mjs → lib-DErgth_E.mjs} +2 -2
- package/dist/{load-extensions-BLdG90Zi.d.mts → load-extensions-BxsDB87B.d.mts} +1 -1
- package/dist/{load-extensions-CUmFCcYi.mjs → load-extensions-D0DfjYLC.mjs} +1 -1
- package/dist/{materialization-s8eR1eQ4.mjs → materialization-Jd198K3y.mjs} +1 -1
- package/dist/mcp-http-server/index.d.mts +305 -79
- package/dist/mcp-http-server/index.mjs +4 -4
- package/dist/model-BGgVmRnN.mjs +1 -0
- package/dist/modes-BheyN7SS.mjs +1 -0
- package/dist/{namespace-DwQtzlY-.mjs → namespace-BqxtpNAn.mjs} +1 -1
- package/dist/{namespace-BHliaabz.d.mts → namespace-DBm9K23m.d.mts} +6 -6
- package/dist/{namespace-zOfq1Uhn.d.mts → namespace-DI4Yx_xu.d.mts} +27 -27
- package/dist/namespace-DJfUADSV.mjs +1 -0
- package/dist/{namespace-BphMM6S82.d.mts → namespace-DPgxPa8m2.d.mts} +1 -1
- package/dist/{namespace-Bd49QmzS.d.mts → namespace-DWCEo-9M.d.mts} +0 -60
- package/dist/{namespace-CriPb5wY.d.mts → namespace-jPUGV-b2.d.mts} +42 -42
- package/dist/{native-session-supervisor-Bgz-Q1WH.mjs → native-session-supervisor-DRx0MX-d.mjs} +1 -1
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/index.mjs +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.mjs +1 -1
- package/dist/node/transports/index.d.mts +81 -9
- package/dist/node/transports/index.mjs +2 -2
- package/dist/{orchestrator-shared-CY7Tu7kZ.mjs → orchestrator-shared-BxmHCPvx.mjs} +1 -1
- package/dist/package-CNUPPcU1.mjs +7 -0
- package/dist/package-DWMxGfzK.d.mts +827 -0
- package/dist/{package-DKnzOvoR.mjs → package-Dft_RItb.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/{packages-zDnokBpl.mjs → packages-DtEEP0Vt.mjs} +1 -1
- package/dist/{profile-BRi6K6am.mjs → profile-BTAI31Nt.mjs} +1 -1
- package/dist/{provider-context-DOsjOjiR.mjs → provider-context-Dq53Cgzz.mjs} +1 -1
- package/dist/{provider-context-BYkMl--1.mjs → provider-context-PZIQWcqQ.mjs} +1 -1
- package/dist/provider-operation-Cxoe2SUr.d.mts +207 -0
- package/dist/providers/index.mjs +1 -1
- package/dist/{registry-Dw6l7k3e.mjs → registry-wfF2uTty.mjs} +29 -29
- package/dist/{resolved-O2XXjTeu.mjs → resolved-DZgqql2Z.mjs} +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-bun/index.mjs +1 -1
- package/dist/runtime-node/extension-discovery.d.mts +1 -1
- package/dist/runtime-node/extension-validation.d.mts +1 -1
- package/dist/runtime-node/extension-validation.mjs +1 -1
- package/dist/runtime-node/index.d.mts +4 -4
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/makaio-config.mjs +1 -1
- package/dist/runtime-node/static/model-registry.yaml +348 -0
- package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.d.mts +7 -4
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-BO9TgmOs.d.mts → schema-Bwr_NrOS.d.mts} +2 -2
- package/dist/{schema-BI0aCHvV.mjs → schema-Dd-e89MO.mjs} +1 -1
- package/dist/{schemas-B5tMYfhC.d.mts → schemas-C4yUXs4G.d.mts} +4 -4
- package/dist/schemas-CRB2O5zo.mjs +1 -0
- package/dist/{schemas-Dgj3WaOI.mjs → schemas-Cm09dXL4.mjs} +1 -1
- package/dist/{schemas-BJ8VMXhO.mjs → schemas-DaHQzpgm.mjs} +1 -1
- package/dist/{schemas-BDC2Nqj1.d.mts → schemas-ENwK6jmV.d.mts} +14 -14
- package/dist/{schemas-ChF2z4RB.d.mts → schemas-N6x2z7Lf.d.mts} +0 -45
- package/dist/schemas-tDf_WiC8.mjs +1 -0
- package/dist/selection-BNwTKEVT.mjs +1 -0
- package/dist/service-base/index.d.mts +47 -2
- package/dist/service-base/index.mjs +1 -1
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +3 -3
- package/dist/services/adapter-subsystem/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/adapter-subsystem/namespace.mjs +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/capability/index.d.mts +1 -1
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/codebase/index.d.mts +2 -2
- package/dist/services/codebase/namespace.d.mts +1 -1
- package/dist/services/codebase/schemas.d.mts +1 -1
- package/dist/services/compression/index.d.mts +2 -2
- package/dist/services/compression/namespace.d.mts +1 -1
- package/dist/services/compression/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +7 -7
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +4 -4
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/namespace.mjs +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/execution-target/schemas.mjs +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/filesystem/index.mjs +1 -1
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.d.mts +2 -2
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +86 -371
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.d.mts +2 -2
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.d.mts +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/materialization/index.d.mts +1 -1
- package/dist/services/materialization/index.mjs +1 -1
- package/dist/services/model-registry/index.d.mts +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/provider-runtime/index.mjs +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.d.mts +3 -3
- package/dist/services/settings/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +14 -14
- package/dist/services/settings/namespace.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/settings/storage/index.d.mts +3 -3
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/subagent/index.d.mts +1 -1
- package/dist/services/subagent/index.mjs +1 -1
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- package/dist/services/tray-menu/index.mjs +1 -1
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/services/workflow-transitions/index.d.mts +2 -0
- package/dist/services/workflow-transitions/index.mjs +1 -0
- package/dist/{session-Carng3Yk.mjs → session-BOGCd18q.mjs} +1 -1
- package/dist/{session-idI1jk5X.mjs → session-BTFiDoGz.mjs} +1 -1
- package/dist/{session-lineage-Cte63dGx.d.mts → session-lineage-B_JW5LpF.d.mts} +1 -1
- package/dist/{shared-RP_KARKF.mjs → shared-BQ0CHIVy.mjs} +1 -1
- package/dist/{skill-CpNjWFuE.mjs → skill-BR6rkfLe.mjs} +1 -1
- package/dist/{src-XihJcAQS.mjs → src-DD0v-nIj.mjs} +1 -1
- package/dist/storage/drizzle/client.d.mts +1 -1
- package/dist/storage/drizzle/client.mjs +1 -1
- package/dist/storage/drizzle/index.d.mts +50 -2
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/index.d.mts +1 -1
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/testing/drizzle-harness.d.mts +44 -3
- package/dist/testing/drizzle-harness.mjs +1 -1
- package/dist/{tool-approval-service-fIZ9x0kL.mjs → tool-approval-service-kBA0fRzm.mjs} +1 -1
- package/dist/tools-PdG9fO1M.mjs +1 -0
- package/dist/{transition-BodgGLZx.d.mts → transition-DuVzKt8-.d.mts} +3 -42
- package/dist/{types-LspCUW09.d.mts → types-B1MNcwgH.d.mts} +1 -1
- package/dist/{types-Bzxo7ATi.d.mts → types-BqVAOzJP.d.mts} +48 -48
- package/dist/{types-DBb5jY4Z.d.mts → types-CJ_QZ1yW.d.mts} +47 -3
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/index.mjs +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/utils/index.d.mts +18 -4
- package/dist/utils/index.mjs +1 -1
- package/dist/{version-BbWrAPld.mjs → version-CoCeMxDT.mjs} +1 -1
- package/dist/{view-builder-tU7iaxrk.d.mts → view-builder-CvoSL2oL.d.mts} +2 -1
- package/dist/visibility-qhGWmpSJ.mjs +1 -0
- package/dist/worker-node-Bl9_vqYi.mjs +1 -0
- package/dist/worker-node-DZTuT1DS.mjs +1 -0
- package/dist/workflow-BfDbgtIQ.mjs +1 -0
- package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -0
- package/dist/workflow-engine/execution-attempt-repository.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +619 -685
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/provider-operation.d.mts +2 -0
- package/dist/workflow-engine/provider-operation.mjs +1 -0
- package/dist/workflow-engine/testing/index.d.mts +146 -0
- package/dist/workflow-engine/testing/index.mjs +1 -0
- package/dist/workflow-engine/testing/sqlite.d.mts +22 -0
- package/dist/workflow-engine/testing/sqlite.mjs +130 -0
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/workflow-transitions-DSc45ixc.mjs +1 -0
- package/dist/workflow-worker-BN9XPxQO.mjs +1 -0
- package/package.json +20 -3
- package/dist/authority-state-bootstrap-C_-F_dtq.mjs +0 -1
- package/dist/execution-target-CsZXIvli.mjs +0 -1
- package/dist/extension-CjTu6mzW.mjs +0 -1
- package/dist/model-uE5IyUFJ.mjs +0 -1
- package/dist/namespace-C05pkLbN.mjs +0 -1
- package/dist/package-BSG1681x.d.mts +0 -427
- package/dist/package-DW1Upu8E.mjs +0 -7
- package/dist/schemas-BRxU_oqL.mjs +0 -1
- package/dist/schemas-C-J4W1ID.mjs +0 -1
- package/dist/selection-YRuVSdck.mjs +0 -1
- package/dist/tools-Cs2DwjCC.mjs +0 -1
- package/dist/visibility-Cb62p9bv.mjs +0 -1
- package/dist/workflow-BX-FxDb0.mjs +0 -1
- package/dist/workflow-worker-DR9qYOFc.mjs +0 -1
- /package/dist/{adapter-auth-runtime-DFBLXD5K.mjs → adapter-auth-runtime-DO-FVTXg.mjs} +0 -0
- /package/dist/{adapter-binding-Dfk_g-lP.d.mts → adapter-binding-DQchUtrK.d.mts} +0 -0
- /package/dist/{ajv-C8r45sFs.mjs → ajv-DD3SIL2i.mjs} +0 -0
- /package/dist/{attach-error-DCnzW-Yz.mjs → attach-error-C3tngg6J.mjs} +0 -0
- /package/dist/{await-trigger-UceeyCyi.mjs → await-trigger-I3lrepb8.mjs} +0 -0
- /package/dist/{base-orchestrator-5yH3l39s.d.mts → base-orchestrator-BilsQNW1.d.mts} +0 -0
- /package/dist/{capability-service-BzKBK0n2.mjs → capability-service-BqiLlRGA.mjs} +0 -0
- /package/dist/{client-DYEHDiJN.d.mts → client-B--e2qcU.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-C12PvQmz.d.mts → client-binary-version-verifier-CgjM_vGF.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-Dv7TGFxh.mjs → client-binary-version-verifier-taewmKTY.mjs} +0 -0
- /package/dist/{clients-namespace-DcFmhtLv.d.mts → clients-namespace-DfxjG2ZP.d.mts} +0 -0
- /package/dist/{config-namespace-DmP7NVju.d.mts → config-namespace-BCqvufbD.d.mts} +0 -0
- /package/dist/{create-static-mount-BLbqGmva.mjs → create-static-mount-bbQhTt6W.mjs} +0 -0
- /package/dist/{cross-spawn-BXxQUsPS.mjs → cross-spawn-B57KZuns.mjs} +0 -0
- /package/dist/{cursor-storage-DCj4uUxr.mjs → cursor-storage-DIFK_9hg.mjs} +0 -0
- /package/dist/{definition-BEvV7tbD.d.mts → definition-gnKgXU91.d.mts} +0 -0
- /package/dist/{definitions-C1pgx0Nq.mjs → definitions-xrrY0wgz.mjs} +0 -0
- /package/dist/{descriptor-to-package-VfB8lK5w.mjs → descriptor-to-package-DvF08krT.mjs} +0 -0
- /package/dist/{drizzle-oCH9H53q.mjs → drizzle-z_0SiGY8.mjs} +0 -0
- /package/dist/{esm-ClQELElL.mjs → esm-CltRnX8_.mjs} +0 -0
- /package/dist/{event-BOLVCfhH.mjs → event-CmVjR6Ib.mjs} +0 -0
- /package/dist/{extension-discovery-B6p3iZaV.d.mts → extension-discovery-CQRdbVQ6.d.mts} +0 -0
- /package/dist/{extension-namespace-vrh4ERXR.mjs → extension-namespace-Yu41YepM.mjs} +0 -0
- /package/dist/{facet-DqPBpqkl.mjs → facet-BCI00njh.mjs} +0 -0
- /package/dist/{filesystem-service-CGdboor3.d.mts → filesystem-service-CQ9yVkSz.d.mts} +0 -0
- /package/dist/{handler-GGOD_ofd.mjs → handler-Cbv9FqDO.mjs} +0 -0
- /package/dist/{hook-responses-Dg8wDvRo.d.mts → hook-responses-Dh1PWXqJ.d.mts} +0 -0
- /package/dist/{host-BfgdjlII.mjs → host-Caq6ZfSJ.mjs} +0 -0
- /package/dist/{identity-BmEHHoBw.mjs → identity-D6guMtmi.mjs} +0 -0
- /package/dist/{index-DEchpaya.d.mts → index-BIdsFcQs2.d.mts} +0 -0
- /package/dist/{index-DquI_1X5.d.mts → index-BVRQEpAg.d.mts} +0 -0
- /package/dist/{index-Brdc35b-.d.mts → index-BaZeoZoS.d.mts} +0 -0
- /package/dist/{index-BSmwpgkR.d.mts → index-ByKi34v5.d.mts} +0 -0
- /package/dist/{index-oYGf2zIe.d.mts → index-CGZQVTid.d.mts} +0 -0
- /package/dist/{index-Chy9aknK.d.mts → index-CMJZ2Z8m.d.mts} +0 -0
- /package/dist/{index-Bd1GC1kU2.d.mts → index-CjdRdsd0.d.mts} +0 -0
- /package/dist/{index-DYUxNOIX.d.mts → index-Cv-o5Krs.d.mts} +0 -0
- /package/dist/{index-DC0yVsYL.d.mts → index-DN4NOCqN2.d.mts} +0 -0
- /package/dist/{index-CcsJnJOD.d.mts → index-DR40QWlw.d.mts} +0 -0
- /package/dist/{index-BG9-vQHD.d.mts → index-DZunhZec.d.mts} +0 -0
- /package/dist/{index-BsBvs0aK.d.mts → index-DjgLchuQ.d.mts} +0 -0
- /package/dist/{index-pgYFJ5h6.d.mts → index-Dm1nUxCF.d.mts} +0 -0
- /package/dist/{index-C96LlS5m.d.mts → index-Ds5_rDEJ.d.mts} +0 -0
- /package/dist/{index-GYZs75UP.d.mts → index-dtsLKOID.d.mts} +0 -0
- /package/dist/{index-8fJ6dkzR.d.mts → index-gUhidukN.d.mts} +0 -0
- /package/dist/{index-BgpYhR2z.d.mts → index-jTaAHsul.d.mts} +0 -0
- /package/dist/{index-Ci3_i-WC2.d.mts → index-sS6KUlrx.d.mts} +0 -0
- /package/dist/{index-CFeY8lfU.d.mts → index-vA--0lOM.d.mts} +0 -0
- /package/dist/{index-BUYyZm5I.d.mts → index-vcSj12YQ.d.mts} +0 -0
- /package/dist/{index-CdEhEXlY.d.mts → index-ye0oklfU.d.mts} +0 -0
- /package/dist/{json-value-BwVdTylT.d.mts → json-value-Brslhqbm.d.mts} +0 -0
- /package/dist/{jsonl-transport-D8RBF0dK.mjs → jsonl-transport-bQl3JwIu.mjs} +0 -0
- /package/dist/{lib-3_xcE8J-.mjs → lib-DOBXZmYX.mjs} +0 -0
- /package/dist/{model-registry-CoegIvks.mjs → model-registry-CmgcPDH3.mjs} +0 -0
- /package/dist/{model-registry-BneK5SGo.mjs → model-registry-xyBKSye-.mjs} +0 -0
- /package/dist/{namespace-CDO4rY11.mjs → namespace-B8uKAzWJ.mjs} +0 -0
- /package/dist/{namespace-BsF9IxJ9.d.mts → namespace-BOkKoq34.d.mts} +0 -0
- /package/dist/{namespace-SQAGytmu.d.mts → namespace-Blp4c8GK.d.mts} +0 -0
- /package/dist/{namespace-BeED_Ojz.mjs → namespace-C-9si-fV.mjs} +0 -0
- /package/dist/{namespace-De9Mg3zv.d.mts → namespace-CErHuXtb.d.mts} +0 -0
- /package/dist/{namespace-BHj13hbA.mjs → namespace-CWGKCNZm.mjs} +0 -0
- /package/dist/{namespace-D7pE2QWv.mjs → namespace-CWUDFGOy.mjs} +0 -0
- /package/dist/{namespace-D9HNjIdc.d.mts → namespace-Cv1RFP7n.d.mts} +0 -0
- /package/dist/{namespace-CI313bRv.d.mts → namespace-Dkod-w11.d.mts} +0 -0
- /package/dist/{namespace-lWlqWTKu.d.mts → namespace-GPA7zots.d.mts} +0 -0
- /package/dist/{namespace-DWwWnLBu.mjs → namespace-HO2J9sO8.mjs} +0 -0
- /package/dist/{namespace-C238RqwB.mjs → namespace-YxU1xf-K.mjs} +0 -0
- /package/dist/{namespace-BetqZA7Z.d.mts → namespace-YytVKIgI.d.mts} +0 -0
- /package/dist/{namespace-B9CYb9Gh.d.mts → namespace-jDhZjw-i.d.mts} +0 -0
- /package/dist/{namespace-BSXHdCVh2.d.mts → namespace-tGRAod3o.d.mts} +0 -0
- /package/dist/{orchestrator-shared-BB6j8ezL.d.mts → orchestrator-shared-BHCv-l2O.d.mts} +0 -0
- /package/dist/{out-CFkI17mk.mjs → out-CvjtANXN.mjs} +0 -0
- /package/dist/{packages-DeIgn0Hn.d.mts → packages-BZ6pzFIq.d.mts} +0 -0
- /package/dist/{platform-CWhGFQFX.mjs → platform-Bv8llU9c.mjs} +0 -0
- /package/dist/{providers-CUnrif24.mjs → providers-Co5UszRH.mjs} +0 -0
- /package/dist/{providers-namespace-sPbGcZ6I.d.mts → providers-namespace-DjFkmvBR.d.mts} +0 -0
- /package/dist/{quick-lru-CTBjxfgD.mjs → quick-lru-CrOpWwrf.mjs} +0 -0
- /package/dist/{schema-cus0dJ81.mjs → schema-Db-y-09L.mjs} +0 -0
- /package/dist/{schema-introspection-BsWLmoFp.mjs → schema-introspection-DgWQCpwx.mjs} +0 -0
- /package/dist/{schemas-DYvvMd3c.d.mts → schemas-B1NWNASS.d.mts} +0 -0
- /package/dist/{schemas-CMyv7l7-.mjs → schemas-BGExwp3j.mjs} +0 -0
- /package/dist/{schemas-Dmij0PIc.d.mts → schemas-BO7uOum6.d.mts} +0 -0
- /package/dist/{schemas-BGS9RfqV.mjs → schemas-Bfxskx_2.mjs} +0 -0
- /package/dist/{schemas-BKKpQC4X2.d.mts → schemas-BtZqovRH.d.mts} +0 -0
- /package/dist/{schemas-BAvt2HDy.d.mts → schemas-CQyRBqD6.d.mts} +0 -0
- /package/dist/{schemas-D55eXBgl.d.mts → schemas-CR8hSqTy.d.mts} +0 -0
- /package/dist/{schemas-CWxf_Yut.mjs → schemas-CqRm0i9a.mjs} +0 -0
- /package/dist/{schemas-CiWCNQ9a2.d.mts → schemas-CwbYk_kZ.d.mts} +0 -0
- /package/dist/{schemas-CbMWN9-z.d.mts → schemas-DuIlOWR3.d.mts} +0 -0
- /package/dist/{schemas-B4FyOOJj.d.mts → schemas-miYxK_Z1.d.mts} +0 -0
- /package/dist/{semver-D3Y7uMEb.mjs → semver-DlM8znk4.mjs} +0 -0
- /package/dist/{server-lifecycle-C-3OgoKi.d.mts → server-lifecycle-Dsq56aqC.d.mts} +0 -0
- /package/dist/{server-lifecycle-DV6NMsgH.mjs → server-lifecycle-kmQ5PUDv.mjs} +0 -0
- /package/dist/{shared-schemas-BNCPgGYP.mjs → shared-schemas-DXwyMCwZ.mjs} +0 -0
- /package/dist/{src-ftBp6GpR.mjs → src-CCu8TwL6.mjs} +0 -0
- /package/dist/{storage-namespace-B1GI4elv.mjs → storage-namespace-BSrv0vXR.mjs} +0 -0
- /package/dist/{storage-namespace-definition-V8sc3drq.d.mts → storage-namespace-definition-BvlX0QV_.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-4UYuij1r.mjs → storage-namespace-definition-CkMKt7-I.mjs} +0 -0
- /package/dist/{storage-namespace-9N9R61pI.d.mts → storage-namespace-dfywhXR3.d.mts} +0 -0
- /package/dist/{supports-color-DwW9N6YC.mjs → supports-color-DUugCQsK.mjs} +0 -0
- /package/dist/{telemetry-B42EMbZt.mjs → telemetry-Pr3oP2rk.mjs} +0 -0
- /package/dist/{timeout-CvONPl0l.mjs → timeout-DWDhddRJ.mjs} +0 -0
- /package/dist/{tray-menu-service-Dgedanv-.mjs → tray-menu-service-BBLa-Rcv.mjs} +0 -0
- /package/dist/{types-DkFvBdIY.d.mts → types-BrcjaNPZ.d.mts} +0 -0
- /package/dist/{types-DVLq657Y.d.mts → types-DHmPneIO.d.mts} +0 -0
- /package/dist/{types-Bju4dmAg.d.mts → types-b54n1o57.d.mts} +0 -0
- /package/dist/{ui-config-B2L3Xgqo.mjs → ui-config-CyCdlns_.mjs} +0 -0
- /package/dist/{variant-ByI-RZua.mjs → variant-krjlTdJt.mjs} +0 -0
- /package/dist/{window-registry-Qcnvlhp7.d.mts → window-registry-BDnZLPVx.d.mts} +0 -0
- /package/dist/{window-registry-DsWnCc8z.mjs → window-registry-I-imZHV_.mjs} +0 -0
|
@@ -88,7 +88,7 @@ declare const SessionStorageNamespace$1: {
|
|
|
88
88
|
tableName: "sessions";
|
|
89
89
|
dataType: "string";
|
|
90
90
|
columnType: "SQLiteText";
|
|
91
|
-
data: "
|
|
91
|
+
data: "discovered" | "closed" | "active" | "archived";
|
|
92
92
|
driverParam: string;
|
|
93
93
|
notNull: true;
|
|
94
94
|
hasDefault: false;
|
|
@@ -202,7 +202,7 @@ declare const SessionStorageNamespace$1: {
|
|
|
202
202
|
tableName: "sessions";
|
|
203
203
|
dataType: "string";
|
|
204
204
|
columnType: "SQLiteText";
|
|
205
|
-
data: "fork" | "
|
|
205
|
+
data: "fork" | "branch" | "subagent" | "compress" | "rewrite" | "coordinator" | "aside";
|
|
206
206
|
driverParam: string;
|
|
207
207
|
notNull: false;
|
|
208
208
|
hasDefault: false;
|
|
@@ -1057,8 +1057,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1057
1057
|
lastActivityAt: _$zod.ZodNumber;
|
|
1058
1058
|
}, _$zod_v4_core0.$strip>>;
|
|
1059
1059
|
status: _$zod.ZodEnum<{
|
|
1060
|
-
closed: "closed";
|
|
1061
1060
|
discovered: "discovered";
|
|
1061
|
+
closed: "closed";
|
|
1062
1062
|
active: "active";
|
|
1063
1063
|
archived: "archived";
|
|
1064
1064
|
}>;
|
|
@@ -1072,8 +1072,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1072
1072
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1073
1073
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1074
1074
|
fork: "fork";
|
|
1075
|
-
subagent: "subagent";
|
|
1076
1075
|
branch: "branch";
|
|
1076
|
+
subagent: "subagent";
|
|
1077
1077
|
compress: "compress";
|
|
1078
1078
|
rewrite: "rewrite";
|
|
1079
1079
|
coordinator: "coordinator";
|
|
@@ -1179,8 +1179,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1179
1179
|
lastActivityAt: _$zod.ZodNumber;
|
|
1180
1180
|
}, _$zod_v4_core0.$strip>>;
|
|
1181
1181
|
status: _$zod.ZodEnum<{
|
|
1182
|
-
closed: "closed";
|
|
1183
1182
|
discovered: "discovered";
|
|
1183
|
+
closed: "closed";
|
|
1184
1184
|
active: "active";
|
|
1185
1185
|
archived: "archived";
|
|
1186
1186
|
}>;
|
|
@@ -1194,8 +1194,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1194
1194
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1195
1195
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1196
1196
|
fork: "fork";
|
|
1197
|
-
subagent: "subagent";
|
|
1198
1197
|
branch: "branch";
|
|
1198
|
+
subagent: "subagent";
|
|
1199
1199
|
compress: "compress";
|
|
1200
1200
|
rewrite: "rewrite";
|
|
1201
1201
|
coordinator: "coordinator";
|
|
@@ -1278,8 +1278,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1278
1278
|
request: _$zod.ZodObject<{
|
|
1279
1279
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1280
1280
|
all: "all";
|
|
1281
|
-
closed: "closed";
|
|
1282
1281
|
discovered: "discovered";
|
|
1282
|
+
closed: "closed";
|
|
1283
1283
|
active: "active";
|
|
1284
1284
|
archived: "archived";
|
|
1285
1285
|
}>>;
|
|
@@ -1326,8 +1326,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1326
1326
|
lastActivityAt: _$zod.ZodNumber;
|
|
1327
1327
|
}, _$zod_v4_core0.$strip>>;
|
|
1328
1328
|
status: _$zod.ZodEnum<{
|
|
1329
|
-
closed: "closed";
|
|
1330
1329
|
discovered: "discovered";
|
|
1330
|
+
closed: "closed";
|
|
1331
1331
|
active: "active";
|
|
1332
1332
|
archived: "archived";
|
|
1333
1333
|
}>;
|
|
@@ -1341,8 +1341,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1341
1341
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1342
1342
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1343
1343
|
fork: "fork";
|
|
1344
|
-
subagent: "subagent";
|
|
1345
1344
|
branch: "branch";
|
|
1345
|
+
subagent: "subagent";
|
|
1346
1346
|
compress: "compress";
|
|
1347
1347
|
rewrite: "rewrite";
|
|
1348
1348
|
coordinator: "coordinator";
|
|
@@ -1424,8 +1424,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1424
1424
|
forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
1425
1425
|
branchKind: _$zod.ZodNullable<_$zod.ZodEnum<{
|
|
1426
1426
|
fork: "fork";
|
|
1427
|
-
subagent: "subagent";
|
|
1428
1427
|
branch: "branch";
|
|
1428
|
+
subagent: "subagent";
|
|
1429
1429
|
compress: "compress";
|
|
1430
1430
|
rewrite: "rewrite";
|
|
1431
1431
|
coordinator: "coordinator";
|
|
@@ -1443,8 +1443,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1443
1443
|
limit: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1444
1444
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1445
1445
|
all: "all";
|
|
1446
|
-
closed: "closed";
|
|
1447
1446
|
discovered: "discovered";
|
|
1447
|
+
closed: "closed";
|
|
1448
1448
|
active: "active";
|
|
1449
1449
|
archived: "archived";
|
|
1450
1450
|
}>>;
|
|
@@ -1488,8 +1488,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1488
1488
|
lastActivityAt: _$zod.ZodNumber;
|
|
1489
1489
|
}, _$zod_v4_core0.$strip>>;
|
|
1490
1490
|
status: _$zod.ZodEnum<{
|
|
1491
|
-
closed: "closed";
|
|
1492
1491
|
discovered: "discovered";
|
|
1492
|
+
closed: "closed";
|
|
1493
1493
|
active: "active";
|
|
1494
1494
|
archived: "archived";
|
|
1495
1495
|
}>;
|
|
@@ -1503,8 +1503,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1503
1503
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1504
1504
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1505
1505
|
fork: "fork";
|
|
1506
|
-
subagent: "subagent";
|
|
1507
1506
|
branch: "branch";
|
|
1507
|
+
subagent: "subagent";
|
|
1508
1508
|
compress: "compress";
|
|
1509
1509
|
rewrite: "rewrite";
|
|
1510
1510
|
coordinator: "coordinator";
|
|
@@ -1579,8 +1579,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1579
1579
|
request: _$zod.ZodObject<{
|
|
1580
1580
|
sessionId: _$zod.ZodString;
|
|
1581
1581
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1582
|
-
closed: "closed";
|
|
1583
1582
|
discovered: "discovered";
|
|
1583
|
+
closed: "closed";
|
|
1584
1584
|
active: "active";
|
|
1585
1585
|
archived: "archived";
|
|
1586
1586
|
}>>;
|
|
@@ -1593,8 +1593,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1593
1593
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1594
1594
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1595
1595
|
fork: "fork";
|
|
1596
|
-
subagent: "subagent";
|
|
1597
1596
|
branch: "branch";
|
|
1597
|
+
subagent: "subagent";
|
|
1598
1598
|
compress: "compress";
|
|
1599
1599
|
rewrite: "rewrite";
|
|
1600
1600
|
coordinator: "coordinator";
|
|
@@ -1673,8 +1673,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1673
1673
|
lastActivityAt: _$zod.ZodNumber;
|
|
1674
1674
|
}, _$zod_v4_core0.$strip>>;
|
|
1675
1675
|
status: _$zod.ZodEnum<{
|
|
1676
|
-
closed: "closed";
|
|
1677
1676
|
discovered: "discovered";
|
|
1677
|
+
closed: "closed";
|
|
1678
1678
|
active: "active";
|
|
1679
1679
|
archived: "archived";
|
|
1680
1680
|
}>;
|
|
@@ -1688,8 +1688,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1688
1688
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1689
1689
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1690
1690
|
fork: "fork";
|
|
1691
|
-
subagent: "subagent";
|
|
1692
1691
|
branch: "branch";
|
|
1692
|
+
subagent: "subagent";
|
|
1693
1693
|
compress: "compress";
|
|
1694
1694
|
rewrite: "rewrite";
|
|
1695
1695
|
coordinator: "coordinator";
|
|
@@ -1930,8 +1930,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1930
1930
|
lastActivityAt: _$zod.ZodNumber;
|
|
1931
1931
|
}, _$zod_v4_core0.$strip>>;
|
|
1932
1932
|
status: _$zod.ZodEnum<{
|
|
1933
|
-
closed: "closed";
|
|
1934
1933
|
discovered: "discovered";
|
|
1934
|
+
closed: "closed";
|
|
1935
1935
|
active: "active";
|
|
1936
1936
|
archived: "archived";
|
|
1937
1937
|
}>;
|
|
@@ -1945,8 +1945,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
1945
1945
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1946
1946
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1947
1947
|
fork: "fork";
|
|
1948
|
-
subagent: "subagent";
|
|
1949
1948
|
branch: "branch";
|
|
1949
|
+
subagent: "subagent";
|
|
1950
1950
|
compress: "compress";
|
|
1951
1951
|
rewrite: "rewrite";
|
|
1952
1952
|
coordinator: "coordinator";
|
|
@@ -2059,8 +2059,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2059
2059
|
lastActivityAt: _$zod.ZodNumber;
|
|
2060
2060
|
}, _$zod_v4_core0.$strip>>;
|
|
2061
2061
|
status: _$zod.ZodEnum<{
|
|
2062
|
-
closed: "closed";
|
|
2063
2062
|
discovered: "discovered";
|
|
2063
|
+
closed: "closed";
|
|
2064
2064
|
active: "active";
|
|
2065
2065
|
archived: "archived";
|
|
2066
2066
|
}>;
|
|
@@ -2074,8 +2074,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2074
2074
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2075
2075
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2076
2076
|
fork: "fork";
|
|
2077
|
-
subagent: "subagent";
|
|
2078
2077
|
branch: "branch";
|
|
2078
|
+
subagent: "subagent";
|
|
2079
2079
|
compress: "compress";
|
|
2080
2080
|
rewrite: "rewrite";
|
|
2081
2081
|
coordinator: "coordinator";
|
|
@@ -2209,8 +2209,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2209
2209
|
lastActivityAt: _$zod.ZodNumber;
|
|
2210
2210
|
}, _$zod_v4_core0.$strip>>;
|
|
2211
2211
|
status: _$zod.ZodEnum<{
|
|
2212
|
-
closed: "closed";
|
|
2213
2212
|
discovered: "discovered";
|
|
2213
|
+
closed: "closed";
|
|
2214
2214
|
active: "active";
|
|
2215
2215
|
archived: "archived";
|
|
2216
2216
|
}>;
|
|
@@ -2224,8 +2224,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2224
2224
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2225
2225
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2226
2226
|
fork: "fork";
|
|
2227
|
-
subagent: "subagent";
|
|
2228
2227
|
branch: "branch";
|
|
2228
|
+
subagent: "subagent";
|
|
2229
2229
|
compress: "compress";
|
|
2230
2230
|
rewrite: "rewrite";
|
|
2231
2231
|
coordinator: "coordinator";
|
|
@@ -2331,8 +2331,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2331
2331
|
lastActivityAt: _$zod.ZodNumber;
|
|
2332
2332
|
}, _$zod_v4_core0.$strip>>;
|
|
2333
2333
|
status: _$zod.ZodEnum<{
|
|
2334
|
-
closed: "closed";
|
|
2335
2334
|
discovered: "discovered";
|
|
2335
|
+
closed: "closed";
|
|
2336
2336
|
active: "active";
|
|
2337
2337
|
archived: "archived";
|
|
2338
2338
|
}>;
|
|
@@ -2346,8 +2346,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2346
2346
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2347
2347
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2348
2348
|
fork: "fork";
|
|
2349
|
-
subagent: "subagent";
|
|
2350
2349
|
branch: "branch";
|
|
2350
|
+
subagent: "subagent";
|
|
2351
2351
|
compress: "compress";
|
|
2352
2352
|
rewrite: "rewrite";
|
|
2353
2353
|
coordinator: "coordinator";
|
|
@@ -2430,8 +2430,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2430
2430
|
request: _$zod.ZodObject<{
|
|
2431
2431
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2432
2432
|
all: "all";
|
|
2433
|
-
closed: "closed";
|
|
2434
2433
|
discovered: "discovered";
|
|
2434
|
+
closed: "closed";
|
|
2435
2435
|
active: "active";
|
|
2436
2436
|
archived: "archived";
|
|
2437
2437
|
}>>;
|
|
@@ -2478,8 +2478,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2478
2478
|
lastActivityAt: _$zod.ZodNumber;
|
|
2479
2479
|
}, _$zod_v4_core0.$strip>>;
|
|
2480
2480
|
status: _$zod.ZodEnum<{
|
|
2481
|
-
closed: "closed";
|
|
2482
2481
|
discovered: "discovered";
|
|
2482
|
+
closed: "closed";
|
|
2483
2483
|
active: "active";
|
|
2484
2484
|
archived: "archived";
|
|
2485
2485
|
}>;
|
|
@@ -2493,8 +2493,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2493
2493
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2494
2494
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2495
2495
|
fork: "fork";
|
|
2496
|
-
subagent: "subagent";
|
|
2497
2496
|
branch: "branch";
|
|
2497
|
+
subagent: "subagent";
|
|
2498
2498
|
compress: "compress";
|
|
2499
2499
|
rewrite: "rewrite";
|
|
2500
2500
|
coordinator: "coordinator";
|
|
@@ -2576,8 +2576,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2576
2576
|
forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
2577
2577
|
branchKind: _$zod.ZodNullable<_$zod.ZodEnum<{
|
|
2578
2578
|
fork: "fork";
|
|
2579
|
-
subagent: "subagent";
|
|
2580
2579
|
branch: "branch";
|
|
2580
|
+
subagent: "subagent";
|
|
2581
2581
|
compress: "compress";
|
|
2582
2582
|
rewrite: "rewrite";
|
|
2583
2583
|
coordinator: "coordinator";
|
|
@@ -2595,8 +2595,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2595
2595
|
limit: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2596
2596
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2597
2597
|
all: "all";
|
|
2598
|
-
closed: "closed";
|
|
2599
2598
|
discovered: "discovered";
|
|
2599
|
+
closed: "closed";
|
|
2600
2600
|
active: "active";
|
|
2601
2601
|
archived: "archived";
|
|
2602
2602
|
}>>;
|
|
@@ -2640,8 +2640,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2640
2640
|
lastActivityAt: _$zod.ZodNumber;
|
|
2641
2641
|
}, _$zod_v4_core0.$strip>>;
|
|
2642
2642
|
status: _$zod.ZodEnum<{
|
|
2643
|
-
closed: "closed";
|
|
2644
2643
|
discovered: "discovered";
|
|
2644
|
+
closed: "closed";
|
|
2645
2645
|
active: "active";
|
|
2646
2646
|
archived: "archived";
|
|
2647
2647
|
}>;
|
|
@@ -2655,8 +2655,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2655
2655
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2656
2656
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2657
2657
|
fork: "fork";
|
|
2658
|
-
subagent: "subagent";
|
|
2659
2658
|
branch: "branch";
|
|
2659
|
+
subagent: "subagent";
|
|
2660
2660
|
compress: "compress";
|
|
2661
2661
|
rewrite: "rewrite";
|
|
2662
2662
|
coordinator: "coordinator";
|
|
@@ -2731,8 +2731,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2731
2731
|
request: _$zod.ZodObject<{
|
|
2732
2732
|
sessionId: _$zod.ZodString;
|
|
2733
2733
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2734
|
-
closed: "closed";
|
|
2735
2734
|
discovered: "discovered";
|
|
2735
|
+
closed: "closed";
|
|
2736
2736
|
active: "active";
|
|
2737
2737
|
archived: "archived";
|
|
2738
2738
|
}>>;
|
|
@@ -2745,8 +2745,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2745
2745
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2746
2746
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2747
2747
|
fork: "fork";
|
|
2748
|
-
subagent: "subagent";
|
|
2749
2748
|
branch: "branch";
|
|
2749
|
+
subagent: "subagent";
|
|
2750
2750
|
compress: "compress";
|
|
2751
2751
|
rewrite: "rewrite";
|
|
2752
2752
|
coordinator: "coordinator";
|
|
@@ -2825,8 +2825,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2825
2825
|
lastActivityAt: _$zod.ZodNumber;
|
|
2826
2826
|
}, _$zod_v4_core0.$strip>>;
|
|
2827
2827
|
status: _$zod.ZodEnum<{
|
|
2828
|
-
closed: "closed";
|
|
2829
2828
|
discovered: "discovered";
|
|
2829
|
+
closed: "closed";
|
|
2830
2830
|
active: "active";
|
|
2831
2831
|
archived: "archived";
|
|
2832
2832
|
}>;
|
|
@@ -2840,8 +2840,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
2840
2840
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2841
2841
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2842
2842
|
fork: "fork";
|
|
2843
|
-
subagent: "subagent";
|
|
2844
2843
|
branch: "branch";
|
|
2844
|
+
subagent: "subagent";
|
|
2845
2845
|
compress: "compress";
|
|
2846
2846
|
rewrite: "rewrite";
|
|
2847
2847
|
coordinator: "coordinator";
|
|
@@ -3082,8 +3082,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
3082
3082
|
lastActivityAt: _$zod.ZodNumber;
|
|
3083
3083
|
}, _$zod_v4_core0.$strip>>;
|
|
3084
3084
|
status: _$zod.ZodEnum<{
|
|
3085
|
-
closed: "closed";
|
|
3086
3085
|
discovered: "discovered";
|
|
3086
|
+
closed: "closed";
|
|
3087
3087
|
active: "active";
|
|
3088
3088
|
archived: "archived";
|
|
3089
3089
|
}>;
|
|
@@ -3097,8 +3097,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
3097
3097
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3098
3098
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3099
3099
|
fork: "fork";
|
|
3100
|
-
subagent: "subagent";
|
|
3101
3100
|
branch: "branch";
|
|
3101
|
+
subagent: "subagent";
|
|
3102
3102
|
compress: "compress";
|
|
3103
3103
|
rewrite: "rewrite";
|
|
3104
3104
|
coordinator: "coordinator";
|
|
@@ -3211,8 +3211,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
3211
3211
|
lastActivityAt: _$zod.ZodNumber;
|
|
3212
3212
|
}, _$zod_v4_core0.$strip>>;
|
|
3213
3213
|
status: _$zod.ZodEnum<{
|
|
3214
|
-
closed: "closed";
|
|
3215
3214
|
discovered: "discovered";
|
|
3215
|
+
closed: "closed";
|
|
3216
3216
|
active: "active";
|
|
3217
3217
|
archived: "archived";
|
|
3218
3218
|
}>;
|
|
@@ -3226,8 +3226,8 @@ declare const SessionStorageNamespace$1: {
|
|
|
3226
3226
|
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3227
3227
|
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3228
3228
|
fork: "fork";
|
|
3229
|
-
subagent: "subagent";
|
|
3230
3229
|
branch: "branch";
|
|
3230
|
+
subagent: "subagent";
|
|
3231
3231
|
compress: "compress";
|
|
3232
3232
|
rewrite: "rewrite";
|
|
3233
3233
|
coordinator: "coordinator";
|
|
@@ -3351,13 +3351,13 @@ declare const SessionStorageNamespace$1: {
|
|
|
3351
3351
|
clientId?: string | undefined;
|
|
3352
3352
|
compressionMode?: "auto" | "manual" | "off" | undefined;
|
|
3353
3353
|
}[];
|
|
3354
|
-
status: "
|
|
3354
|
+
status: "discovered" | "closed" | "active" | "archived";
|
|
3355
3355
|
leadAgentId?: string | undefined;
|
|
3356
3356
|
parentSessionId?: string | undefined;
|
|
3357
3357
|
contextInheritance?: "none" | "parent-history" | undefined;
|
|
3358
3358
|
rootSessionId?: string | undefined;
|
|
3359
3359
|
forkPointMessageId?: string | undefined;
|
|
3360
|
-
branchKind?: "fork" | "
|
|
3360
|
+
branchKind?: "fork" | "branch" | "subagent" | "compress" | "rewrite" | "coordinator" | "aside" | undefined;
|
|
3361
3361
|
adapterName?: string | undefined;
|
|
3362
3362
|
adapterSessionId?: string | undefined;
|
|
3363
3363
|
adapterId?: string | undefined;
|
package/dist/{native-session-supervisor-Bgz-Q1WH.mjs → native-session-supervisor-DRx0MX-d.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./profile-
|
|
1
|
+
import{r as e}from"./profile-BTAI31Nt.mjs";import{z as t}from"zod";import{createBusNamespace as n}from"@makaio/framework/core";const r=t.enum([`running`,`stopped`,`exited`,`unknown`]),i={request:t.object({clientId:t.string(),cwd:t.string(),command:t.string(),args:t.array(t.string()),env:t.record(t.string(),t.string()).optional(),sessionId:t.string().optional(),clientProfileName:e.optional(),adapterSessionId:t.string().optional(),metadata:t.record(t.string(),t.unknown()).optional()}),response:t.object({supervisorSessionId:t.string(),pid:t.number().int().positive()})},a={request:t.union([t.object({supervisorSessionId:t.string()}).strict(),t.object({sessionId:t.string()}).strict(),t.object({adapterSessionId:t.string()}).strict()]),response:t.object({success:t.boolean(),supervisorSessionId:t.string().optional(),pid:t.number().int().positive().optional(),terminalAttachment:t.object({canAttach:t.boolean()}).optional()})},o={request:t.object({supervisorSessionId:t.string(),signal:t.string().optional()}),response:t.object({success:t.boolean()})},s=t.object({supervisorSessionId:t.string(),clientId:t.string(),pid:t.number().int().positive().nullable(),status:r,cwd:t.string(),sessionId:t.string().optional(),adapterSessionId:t.string().optional(),startedAt:t.number().int().nonnegative(),stoppedAt:t.number().int().nonnegative().optional()}),c={request:t.union([t.object({}).strict(),t.object({supervisorSessionId:t.string()}).strict(),t.object({sessionId:t.string()}).strict(),t.object({adapterSessionId:t.string()}).strict()]),response:t.object({runtimes:t.array(s)})},l={launch:i,attach:a,stop:o,status:c},u=n(`native-session-supervisor`,l),d=u.subjects;export{i as a,s as c,a as i,r as l,d as n,c as o,l as r,o as s,u as t};
|
|
@@ -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-Dsq56aqC.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 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"../../server-lifecycle-
|
|
1
|
+
import{n as e,r as t,t as n}from"../../server-lifecycle-kmQ5PUDv.mjs";var r=class{connectionListeners=new Set;on(e,t){e===`connection`&&this.connectionListeners.add(t)}off(e,t){e===`connection`&&this.connectionListeners.delete(t)}close(e){this.connectionListeners.clear(),e?.()}accept(e){for(let t of this.connectionListeners)t(e)}};export{r as HonoWebSocketBridge,t as LoopbackTransport,e as createBusServer,n as startBusServer};
|
|
@@ -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-Dsq56aqC.mjs";
|
|
2
2
|
export { StartBusServerOptions, startBusServer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../server-lifecycle-
|
|
1
|
+
import{t as e}from"../../server-lifecycle-kmQ5PUDv.mjs";export{e as startBusServer};
|
|
@@ -135,9 +135,10 @@ interface HmacAuthOptions {
|
|
|
135
135
|
/**
|
|
136
136
|
* Server-side peer context resolver for identity-bound mode.
|
|
137
137
|
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
138
|
+
* Authenticated identities are exposed to bus handlers only through this
|
|
139
|
+
* trusted resolver. Omitting it authenticates the socket without inventing
|
|
140
|
+
* authorization semantics from the caller-controlled identity ID. Return
|
|
141
|
+
* `null` when no peer context should be exposed.
|
|
141
142
|
* @param claimedId - The authenticated `identityId`.
|
|
142
143
|
* @returns Trusted peer context for the authenticated identity, or `null`.
|
|
143
144
|
*/
|
|
@@ -179,6 +180,14 @@ declare class HmacAuth implements TransportAuth {
|
|
|
179
180
|
* Cleaned up in `cleanupSocket()` when the socket disconnects.
|
|
180
181
|
*/
|
|
181
182
|
private serverAuthenticatedPeers;
|
|
183
|
+
/**
|
|
184
|
+
* Maps each identity-bound socket to the secret it authenticated with.
|
|
185
|
+
*
|
|
186
|
+
* Used by {@link isSocketAuthenticated} to detect secret rotation: when the
|
|
187
|
+
* registry now holds a different secret for the same identity, the socket is
|
|
188
|
+
* fenced because its handshake credential is stale.
|
|
189
|
+
*/
|
|
190
|
+
private serverAuthenticatedSecrets;
|
|
182
191
|
constructor(options: HmacAuthOptions);
|
|
183
192
|
/**
|
|
184
193
|
* Server-side authentication flow.
|
|
@@ -328,11 +337,25 @@ declare class HmacAuth implements TransportAuth {
|
|
|
328
337
|
interface HmacIdentitySecretRegistrationOptions {
|
|
329
338
|
/**
|
|
330
339
|
* Trusted peer kind exposed after this identity authenticates.
|
|
340
|
+
*/
|
|
341
|
+
readonly peerKind: string;
|
|
342
|
+
/**
|
|
343
|
+
* Opaque claims attached to the authenticated peer context.
|
|
331
344
|
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
345
|
+
* Bus handlers can read `ctx.transport.peer.claims` to access these values
|
|
346
|
+
* without parsing the identity ID itself.
|
|
334
347
|
*/
|
|
335
|
-
readonly
|
|
348
|
+
readonly claims?: Readonly<Record<string, unknown>>;
|
|
349
|
+
/**
|
|
350
|
+
* Optional subject restriction list for this identity.
|
|
351
|
+
*
|
|
352
|
+
* When provided, the server message handler rejects any inbound request,
|
|
353
|
+
* event, or broadcast whose full subject (`namespace.subject`) is not in
|
|
354
|
+
* this list. Identities without this field are unrestricted.
|
|
355
|
+
*
|
|
356
|
+
* Exact string match only; no wildcard support.
|
|
357
|
+
*/
|
|
358
|
+
readonly allowedSubjects?: readonly string[];
|
|
336
359
|
}
|
|
337
360
|
/**
|
|
338
361
|
* Register an HMAC secret for a transport identity.
|
|
@@ -342,10 +365,40 @@ interface HmacIdentitySecretRegistrationOptions {
|
|
|
342
365
|
* accidentally undone by an older cleanup handle.
|
|
343
366
|
* @param identityId - Transport identity that may authenticate with the secret.
|
|
344
367
|
* @param secret - HMAC secret expected for the identity.
|
|
345
|
-
* @param options -
|
|
368
|
+
* @param options - Trusted peer metadata for this identity.
|
|
346
369
|
* @returns Cleanup function that unregisters this exact secret.
|
|
347
370
|
*/
|
|
348
|
-
declare function registerHmacIdentitySecret(identityId: string, secret: string, options
|
|
371
|
+
declare function registerHmacIdentitySecret(identityId: string, secret: string, options: HmacIdentitySecretRegistrationOptions): () => void;
|
|
372
|
+
/** Options for rotating an existing HMAC identity secret. */
|
|
373
|
+
interface HmacIdentitySecretRotationOptions {
|
|
374
|
+
/**
|
|
375
|
+
* Override opaque claims attached to the authenticated peer context.
|
|
376
|
+
*
|
|
377
|
+
* When omitted the existing claims from the current registration are
|
|
378
|
+
* preserved. Provide explicitly to change claims during rotation.
|
|
379
|
+
*/
|
|
380
|
+
readonly claims?: Readonly<Record<string, unknown>>;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Rotate the HMAC secret for an already-registered transport identity.
|
|
384
|
+
*
|
|
385
|
+
* This is an explicit, intentional operation — it requires an existing
|
|
386
|
+
* registration for `identityId` and replaces the secret atomically. Per-message
|
|
387
|
+
* revalidation in {@link HmacAuth.isSocketAuthenticated} detects the new
|
|
388
|
+
* registration object and fences any socket that authenticated under the
|
|
389
|
+
* previous secret.
|
|
390
|
+
*
|
|
391
|
+
* The returned cleanup removes the entry only when it still points at the
|
|
392
|
+
* rotated registration object, so a stale cleanup from a prior registration
|
|
393
|
+
* cannot accidentally revoke the rotated secret.
|
|
394
|
+
* @param identityId - Transport identity whose secret should be rotated.
|
|
395
|
+
* @param newSecret - Replacement HMAC secret.
|
|
396
|
+
* @param options - Optional claim overrides for the rotated registration.
|
|
397
|
+
* @returns Cleanup function that unregisters this exact rotated secret.
|
|
398
|
+
* @throws Error when no registration exists for `identityId`.
|
|
399
|
+
* @throws Error when `newSecret` is empty.
|
|
400
|
+
*/
|
|
401
|
+
declare function rotateHmacIdentitySecret(identityId: string, newSecret: string, options?: HmacIdentitySecretRotationOptions): () => void;
|
|
349
402
|
/**
|
|
350
403
|
* Resolve an HMAC secret for an identity claim.
|
|
351
404
|
* @param identityId - Claimed transport identity.
|
|
@@ -358,6 +411,25 @@ declare function resolveHmacIdentitySecret(identityId: string): string | null;
|
|
|
358
411
|
* @returns Registered peer context, or null when the identity is unknown.
|
|
359
412
|
*/
|
|
360
413
|
declare function resolveHmacIdentityPeer(identityId: string): TransportPeerContext | null;
|
|
414
|
+
/**
|
|
415
|
+
* Resolve the subject restriction set for an identity claim.
|
|
416
|
+
*
|
|
417
|
+
* Returns the allowed subjects set when the identity has a subject
|
|
418
|
+
* restriction, or `null` when the identity is unrestricted or unknown.
|
|
419
|
+
* @param identityId - Claimed transport identity.
|
|
420
|
+
* @returns Allowed subjects set, or null when unrestricted/unknown.
|
|
421
|
+
*/
|
|
422
|
+
declare function resolveHmacIdentityAllowedSubjects(identityId: string): ReadonlySet<string> | null;
|
|
423
|
+
/**
|
|
424
|
+
* Add exact subjects to an existing restricted HMAC identity without rotating
|
|
425
|
+
* its secret or replacing its peer metadata.
|
|
426
|
+
*
|
|
427
|
+
* The stored set is resolved for every inbound message, so an already
|
|
428
|
+
* authenticated WebSocket observes this update without reconnecting.
|
|
429
|
+
* @param identityId - Registered transport identity to update.
|
|
430
|
+
* @param subjects - Exact full subjects to add to the existing restriction.
|
|
431
|
+
* @throws When the identity is unknown or unrestricted.
|
|
432
|
+
*/
|
|
361
433
|
/**
|
|
362
434
|
* Clear all registered identity secrets.
|
|
363
435
|
*
|
|
@@ -2009,4 +2081,4 @@ declare module '@makaio/framework/bus' {
|
|
|
2009
2081
|
}
|
|
2010
2082
|
}
|
|
2011
2083
|
//#endregion
|
|
2012
|
-
export { type ClientTransportCodec, DispatchingAuth, E2EAuth, E2ERelayAuth, type E2ERelayAuthOptions, HmacAuth, type HmacIdentitySecretRegistrationOptions, type RelayControlBusMessage, type RelayControlEnvelopeMessage, type RelayControlHelpers, type RelayControlRegistry, ServerTransport, type TransportAuth, WebSocketClientTransport, type WebSocketClientTransportHeartbeatOptions, type WebSocketClientTransportOptions, type WebSocketClientTransportReconnectOptions, type WebSocketCloseEvent, type WebSocketLike, type WebSocketServerLike, clearHmacIdentitySecretsForTesting, createE2EClientTransport, createE2ERelayClientTransport, createE2ERelayCodec, createRelayControlHelpers, createRelayControlRegistry, createWebSocketCloseEvent, createWebSocketTransport, index_d_exports as crypto, extractSocketErrorMessage, registerHmacIdentitySecret, resolveHmacIdentityPeer, resolveHmacIdentitySecret };
|
|
2084
|
+
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, type WebSocketLike, type WebSocketServerLike, clearHmacIdentitySecretsForTesting, createE2EClientTransport, createE2ERelayClientTransport, createE2ERelayCodec, createRelayControlHelpers, createRelayControlRegistry, createWebSocketCloseEvent, createWebSocketTransport, index_d_exports as crypto, extractSocketErrorMessage, registerHmacIdentitySecret, resolveHmacIdentityAllowedSubjects, resolveHmacIdentityPeer, resolveHmacIdentitySecret, rotateHmacIdentitySecret };
|