@makaio/framework 1.0.0-dev-1779051654000 → 1.0.0-dev-1781023871421
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/LICENSE +1 -1
- package/dist/.makaio-build.json +5 -0
- package/dist/account-identity-DT5NOtFi.mjs +1 -0
- package/dist/adapter-C1eI-fGV.mjs +1 -0
- package/dist/adapters/acp-client/index.d.mts +6013 -14
- package/dist/adapters/acp-client/index.mjs +3 -1
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +47 -20
- package/dist/adapters/index.mjs +13 -6
- package/dist/adapters/node.d.mts +4 -4
- package/dist/adapters/node.mjs +4 -4
- package/dist/adapters/stream-session/index.d.mts +30 -0
- package/dist/adapters/stream-session/index.mjs +1 -1
- package/dist/artifact-B3npq1cy.mjs +1 -0
- package/dist/bus/index.d.mts +866 -203
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-Caz3Jpbc.mjs +1 -0
- package/dist/bus-Hb-LGzgb.mjs +2 -0
- package/dist/chunk-DTipWd-i.mjs +1 -0
- package/dist/client-bx74gm4R.mjs +1 -0
- package/dist/clients/index.d.mts +113 -35
- package/dist/clients/index.mjs +2 -2
- package/dist/{clients-namespace-UHj5wt-l.d.mts → clients-namespace-GmSJpBUV.d.mts} +8 -8
- package/dist/{config-namespace-ChZOpi1W.d.mts → config-namespace-CPY9YsR8.d.mts} +4 -4
- package/dist/contracts/adapter/index.d.mts +3 -3
- 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 -0
- package/dist/contracts/artifact/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 +8 -8
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +4 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.d.mts +2 -0
- package/dist/contracts/facet/index.mjs +1 -0
- 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 +12370 -1990
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +4 -0
- package/dist/contracts/materialization/index.mjs +1 -0
- 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 +3 -3
- 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 +2 -0
- package/dist/contracts/telemetry/index.mjs +1 -0
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/timeout/index.mjs +1 -1
- package/dist/contracts/toast/index.d.mts +2 -2
- 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/core/index.d.mts +296 -34
- package/dist/core/index.mjs +1 -1
- package/dist/{credential-ref-DLCsoKVZ.mjs → credential-ref-YWQQENEo.mjs} +1 -1
- package/dist/cursor-storage-CtVJ3JzB.mjs +1 -0
- package/dist/{definition-DB7bbFSa.d.mts → definition-BLCdXGzh.d.mts} +17 -3
- package/dist/definition-CrgHIpTK.d.mts +60 -0
- package/dist/{definition-DkYy1PZz.mjs → definition-DZMXOnjX.mjs} +1 -1
- package/dist/{definition-DtUNiGom.d.mts → definition-pkJ6szUl.d.mts} +1 -1
- package/dist/drizzle-Eq8W1EbD.mjs +1 -0
- package/dist/event-Ca2yUf5i.mjs +1 -0
- package/dist/execution-target-CRPTfZlc.mjs +1 -0
- package/dist/extension-C-4BHMRI.mjs +1 -0
- package/dist/extension-CpIUgBKI.mjs +1 -0
- package/dist/facet-BuwhrThl.mjs +1 -0
- package/dist/filesystem-service-B8rhBRgB.mjs +1 -0
- package/dist/filesystem-service-p_iJVHd4.d.mts +66 -0
- package/dist/git/index.d.mts +210 -0
- package/dist/git/index.mjs +18 -0
- package/dist/globby-rtWVaFHv.mjs +41 -0
- package/dist/{handlers-DR_4_rAT.mjs → handlers-CkTsQLra.mjs} +3 -3
- package/dist/{harness-B6lGP9rm.mjs → harness-BRCMcvQN.mjs} +1 -1
- package/dist/{host-CvEht5RT.mjs → host-Br9VuOyr.mjs} +1 -1
- package/dist/{index-WKjrpcA_.d.mts → index-472sOmsW.d.mts} +6 -6
- package/dist/index-8SZkg7s6.d.mts +353 -0
- package/dist/index-B3PK4FIn.d.mts +5116 -0
- package/dist/{index-D2jejYlV.d.mts → index-B80L4YqA.d.mts} +3 -3
- package/dist/index-BFg9BUpx.d.mts +355 -0
- package/dist/index-BGfWS6GE.d.mts +483 -0
- package/dist/{index-DQRsGXb5.d.mts → index-BVgfS-AJ.d.mts} +2 -2
- package/dist/{index-CnmPtjnA.d.mts → index-B_zQC98V.d.mts} +16 -16
- package/dist/{index-DaEp4UWW.d.mts → index-Bh_Ne7LF.d.mts} +54 -42
- package/dist/{index-yvN8UcEH.d.mts → index-Bvb2mMH6.d.mts} +109 -109
- package/dist/{index-tKvu34DJ2.d.mts → index-CCGVh9BF2.d.mts} +242 -28
- package/dist/{index-C-myW_aK.d.mts → index-CGmcS0Ma.d.mts} +2 -2
- package/dist/{index-DEw90pa2.d.mts → index-CLpjm52M.d.mts} +3 -3
- package/dist/{index-DQWMu5fS.d.mts → index-Caig6TeF.d.mts} +85 -99
- package/dist/{index-DwCA1HWa.d.mts → index-CelJCBjk.d.mts} +15 -15
- package/dist/{index-ESSDWIB7.d.mts → index-ChunCFu4.d.mts} +1 -1
- package/dist/{index-e5C62_M3.d.mts → index-Cm0dUkWL.d.mts} +819 -85
- package/dist/{index-N5K1NOYs.d.mts → index-CokQYGVP.d.mts} +4 -4
- package/dist/{index-Bigx81Kr.d.mts → index-Cs0kZXIz2.d.mts} +1 -1
- package/dist/{index-6lyShOoU.d.mts → index-D5d5HeWI2.d.mts} +34 -0
- package/dist/{index-sBob9D25.d.mts → index-D90OmGmV.d.mts} +3 -3
- package/dist/{index-D1T-PPqF.d.mts → index-D9MwJ2Q8.d.mts} +3 -3
- package/dist/{index-BePI0ckL.d.mts → index-DANINzMu.d.mts} +1 -1
- package/dist/{index-BnSQE7z7.d.mts → index-DBw-89vC2.d.mts} +129 -1332
- package/dist/{index-C_kS2aqV2.d.mts → index-DGBu6bHi2.d.mts} +14 -14
- package/dist/index-DKC62dY5.d.mts +146 -0
- package/dist/{index-7sXlairn2.d.mts → index-DKia0MX1.d.mts} +1 -1
- package/dist/{index-E8d_RwaF.d.mts → index-DMKnON5s.d.mts} +1 -1
- package/dist/{index-Cq8B7cwK.d.mts → index-DUaw0Dw8.d.mts} +1524 -369
- package/dist/{index-Dd5s4MSm.d.mts → index-De3kPhlN.d.mts} +2 -2
- package/dist/{index-DGTFJB_8.d.mts → index-L4GjJDKb.d.mts} +116 -23
- package/dist/{index-iID2R9G1.d.mts → index-U-A8eyGT.d.mts} +7 -7
- package/dist/{index-D7T8XCku.d.mts → index-eemAKwsB.d.mts} +23 -2
- package/dist/{index-BXP9GK5q.d.mts → index-mNec7V-9.d.mts} +27 -27
- package/dist/{index-CnZOKNjU.d.mts → index-soFznFCy2.d.mts} +2 -2
- package/dist/{index-Ch3ph52M2.d.mts → index-vtXJuwrz.d.mts} +2 -2
- package/dist/{index-BnNqbx2I.d.mts → index-x_lVDp_J.d.mts} +2 -2
- package/dist/json-value-CmhSGMLv.mjs +1 -0
- package/dist/kernel/cli/index.d.mts +4 -2
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/schemas.d.mts +1 -0
- 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 +5 -5
- 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/materialization-CuUBu4XI.mjs +1 -0
- package/dist/{namespace-BpIE-jQW.d.mts → namespace-5QQqbF-B.d.mts} +1018 -111
- package/dist/{namespace-DwCyOaZn2.d.mts → namespace-BM7Djng9.d.mts} +3 -3
- package/dist/namespace-BwzZJqTV.mjs +1 -0
- package/dist/{namespace-DZcuLwEA.d.mts → namespace-CTm3nEvh.d.mts} +1 -1
- package/dist/{namespace-BK2erxpV.d.mts → namespace-CaaNnKcR.d.mts} +3 -3
- package/dist/{namespace-GLGGcWPH.d.mts → namespace-CaoZ3S78.d.mts} +1 -1
- package/dist/{namespace-DXnMk3U8.d.mts → namespace-CxhsoFUP.d.mts} +27 -31
- package/dist/{namespace-B1E57soL.d.mts → namespace-DD8Oiqo7.d.mts} +23 -23
- package/dist/{namespace-BCRNwPnw.d.mts → namespace-DLovh2Ws.d.mts} +21 -21
- package/dist/{namespace-Ysg1N6rR.d.mts → namespace-DgqkaOVu.d.mts} +26 -25
- package/dist/{namespace-B5ZCshBw.d.mts → namespace-Dr8K0MCp.d.mts} +82 -81
- package/dist/{namespace-DGMO2E8f.mjs → namespace-DuXK5AYN.mjs} +1 -1
- package/dist/{namespace-ZbthBQVt.d.mts → namespace-EQniz-Aw.d.mts} +14 -14
- package/dist/{namespace-C54Oj025.d.mts → namespace-IV1QK__V.d.mts} +1 -1
- package/dist/{namespace-BKrV_2gZ.d.mts → namespace-TyiTsLFv.d.mts} +46 -45
- package/dist/{namespace-OwAf1Brw.mjs → namespace-xcmbQlxh.mjs} +1 -1
- package/dist/{native-session-supervisor-zPt624Tp.mjs → native-session-supervisor-B1TnaPUF.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/machine-identity/index.mjs +2 -2
- package/dist/node/transports/index.d.mts +200 -7
- package/dist/node/transports/index.mjs +2 -2
- package/dist/{orchestrator-shared-D2txLAUs.mjs → orchestrator-shared-CIDiFJMD.mjs} +1 -1
- package/dist/{orchestrator-shared-DrjtTXYh.d.mts → orchestrator-shared-Dfa7FMyw.d.mts} +5 -5
- package/dist/package-DKVlsMP3.mjs +1 -0
- package/dist/{profile-Cq4A7kQa.mjs → profile-6ynCD5k3.mjs} +1 -1
- package/dist/{provider-context-BB4eD8ON.mjs → provider-context-CK6B4X_8.mjs} +1 -1
- package/dist/providers/index.mjs +1 -1
- package/dist/{providers-namespace-CDwxY_DV.d.mts → providers-namespace-DSEpli4A.d.mts} +1 -1
- package/dist/{schema-B295yplx.d.mts → schema-M5YTvSAG.d.mts} +114 -2
- package/dist/{schema-C4iznV0q.mjs → schema-e0wU_lcV.mjs} +1 -1
- package/dist/{schema-introspection-DCYC47_d.mjs → schema-introspection-Dn1jWQs1.mjs} +1 -1
- package/dist/{schemas-C5xtVqdb.d.mts → schemas-Bd0OjRQf.d.mts} +1 -1
- package/dist/{schemas-Ra8pz5M-.d.mts → schemas-C46QfKzv.d.mts} +24 -28
- package/dist/{schemas-sshQEF3l.d.mts → schemas-CDBSjg7o.d.mts} +1 -1
- package/dist/schemas-CR1Rripy.mjs +1 -0
- package/dist/schemas-CVvwIfG4.mjs +1 -0
- package/dist/schemas-CaLhkkLn.mjs +1 -0
- package/dist/{schemas-DYqKRNju.d.mts → schemas-ClOOT1W6.d.mts} +4 -4
- package/dist/{schemas-BfMZAwff.d.mts → schemas-DATniTHb.d.mts} +8 -8
- package/dist/{schemas-BWvuaL0w.d.mts → schemas-DVF1A4DF.d.mts} +4 -4
- package/dist/{schemas-Di0XnnMX.d.mts → schemas-DaRSfYLf.d.mts} +1 -1
- package/dist/{schemas-C31qbb0s.d.mts → schemas-DiYVzG6e.d.mts} +51 -48
- package/dist/{schemas-KMA1efQg.d.mts → schemas-j7ivZ2HI.d.mts} +3 -3
- package/dist/schemas-wg_6PAdV.d.mts +153 -0
- package/dist/scoped-bus-04pwo1uM.mjs +1 -0
- package/dist/service-base/index.d.mts +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 +2 -2
- 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/cli-detection/namespace.d.mts +1 -1
- package/dist/services/codebase/index.d.mts +2 -2
- package/dist/services/codebase/namespace.d.mts +1 -1
- package/dist/services/codebase/schemas.d.mts +1 -1
- package/dist/services/compression/index.d.mts +2 -2
- package/dist/services/compression/namespace.d.mts +1 -1
- package/dist/services/compression/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +4 -4
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/credential-change/index.d.mts +1 -1
- package/dist/services/definition/namespace.d.mts +1 -1
- package/dist/services/definition/schemas.d.mts +1 -1
- package/dist/services/dialog/namespace.d.mts +1 -1
- package/dist/services/dialog/schemas.d.mts +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/schemas.d.mts +1 -1
- package/dist/services/execution-target/schemas.mjs +1 -1
- package/dist/services/filesystem/index.d.mts +3 -0
- package/dist/services/filesystem/index.mjs +1 -0
- package/dist/services/filesystem/namespace.d.mts +7 -7
- package/dist/services/filesystem/schemas.d.mts +4 -4
- package/dist/services/git/namespace.d.mts +1163 -0
- package/dist/services/git/namespace.mjs +1 -0
- package/dist/services/git/schemas.d.mts +932 -0
- package/dist/services/git/schemas.mjs +1 -0
- package/dist/services/harness/index.d.mts +35 -35
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/harness/storage/schema.d.mts +5 -5
- package/dist/services/index.d.mts +1411 -928
- package/dist/services/index.mjs +1 -1
- package/dist/services/local-notification/index.d.mts +1 -1
- package/dist/services/local-notification/namespace.d.mts +1 -1
- package/dist/services/local-notification/schemas.d.mts +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +23 -24
- package/dist/services/log-import/index.mjs +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 +1 -1
- 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/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.d.mts +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 +10 -10
- 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/storage/schema.mjs +1 -1
- package/dist/services/session/testing/index.d.mts +2 -2
- package/dist/services/session/testing/index.mjs +16 -3
- 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 +3 -3
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.d.mts +4 -4
- package/dist/services/settings/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +19 -18
- 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 +4 -4
- 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 +2 -0
- package/dist/services/subagent/index.mjs +1 -0
- package/dist/services/subagent-template/index.d.mts +3 -0
- package/dist/services/subagent-template/index.mjs +1 -0
- package/dist/services/subagent-template/namespace.d.mts +2 -0
- package/dist/services/subagent-template/namespace.mjs +1 -0
- package/dist/services/subagent-template/schemas.d.mts +2 -0
- package/dist/services/subagent-template/schemas.mjs +1 -0
- 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/turn/schemas.d.mts +12 -12
- package/dist/session-BoldSdNZ2.mjs +134 -0
- package/dist/session-DuVOYctZ.mjs +1 -0
- package/dist/{session-lineage-B0cpHfuc.d.mts → session-lineage-CRsc9g1x.d.mts} +1 -1
- package/dist/shared-DpOEfD8F.mjs +1 -0
- package/dist/{skill-20_SBXaI.mjs → skill-CQO4mDqK.mjs} +1 -1
- package/dist/storage/drizzle/client.d.mts +2 -2
- package/dist/storage/drizzle/client.mjs +1 -1
- package/dist/storage/drizzle/index.d.mts +49 -10
- 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 +2 -2
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/storage/index.d.mts +4 -4
- package/dist/{storage-namespace-DoH-Wkjp.d.mts → storage-namespace-BXkoh5Sy.d.mts} +11 -11
- package/dist/storage-namespace-DWsYLAXa.mjs +1 -0
- package/dist/{storage-namespace-definition-CJgqyXH1.d.mts → storage-namespace-definition-Bkx5rSto.d.mts} +1 -1
- package/dist/style.css +540 -540
- package/dist/telemetry-CvdLBWuk.mjs +1 -0
- package/dist/testing/drizzle-harness.mjs +1 -1
- package/dist/testing/index.mjs +1 -1
- package/dist/tool-approval-service-BvZWhYZp.mjs +1 -0
- package/dist/tools/index.d.mts +20 -10
- package/dist/tools/index.mjs +1 -1
- package/dist/tools/testing/index.d.mts +1 -1
- package/dist/tools-D-luYcDw.mjs +1431 -0
- package/dist/{types-C11LvekX.d.mts → types-BCMUtBj1.d.mts} +117 -20
- package/dist/{types-vNpkAe4Y.d.mts → types-C2Ob9zz_.d.mts} +1 -1
- package/dist/{types-t295YC6T.d.mts → types-CCdqjeuH.d.mts} +2 -2
- package/dist/{types-Cvrj2ogm.d.mts → types-DZHvOc_Q.d.mts} +4 -4
- package/dist/{types--nrtGZ1V.d.mts → types-Dy3YTcTF.d.mts} +255 -97
- package/dist/{types-DYF5LxZY.d.mts → types-MfJZ67e9.d.mts} +91 -9
- package/dist/{types-6WxLfoM3.d.mts → types-dyP-bXXE.d.mts} +1 -1
- package/dist/ui-components/index.mjs +2 -2
- package/dist/ui-hooks/index.d.mts +111 -1
- package/dist/ui-hooks/index.mjs +1 -1
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/ui-views/index.mjs +2 -2
- package/dist/utils/index.d.mts +36 -1
- package/dist/utils/index.mjs +2 -2
- package/dist/utils/project-manifest.d.mts +130 -0
- package/dist/utils/project-manifest.mjs +1 -0
- package/dist/utils/scope-paths.d.mts +33 -0
- package/dist/utils/scope-paths.mjs +1 -0
- package/dist/utils/workspace-packages.d.mts +59 -0
- package/dist/utils/workspace-packages.mjs +1 -0
- package/dist/utils/workspace-root.d.mts +6 -9
- package/dist/utils/workspace-root.mjs +1 -1
- package/dist/{version-D8S4O22A.mjs → version-BeT3ASEe.mjs} +1 -1
- package/package.json +55 -2
- package/dist/account-identity-Bg_vKkcs.mjs +0 -1
- package/dist/adapter-CpF2aK_-.mjs +0 -1
- package/dist/bus-B1seC4M_.mjs +0 -2
- package/dist/chunk-Dc06z0qk.mjs +0 -1
- package/dist/client-DMWXCWhM.mjs +0 -1
- package/dist/cursor-storage-BoNI7OAR.mjs +0 -1
- package/dist/drizzle-Bn2GtW8c.mjs +0 -1
- package/dist/execution-target-D6MgthYs.mjs +0 -1
- package/dist/extension-53GerdGg.mjs +0 -1
- package/dist/extension-fJmv8Yri.mjs +0 -1
- package/dist/namespace-C_h7scWx2.mjs +0 -1
- package/dist/schemas-Bn8aqDIE.mjs +0 -1
- package/dist/services/worker/index.d.mts +0 -3
- package/dist/services/worker/index.mjs +0 -1
- package/dist/services/worker/namespace.d.mts +0 -2
- package/dist/services/worker/namespace.mjs +0 -1
- package/dist/services/worker/schemas.d.mts +0 -2
- package/dist/services/worker/schemas.mjs +0 -1
- package/dist/session-BCSf-Fgj.mjs +0 -1
- package/dist/session-BNo_cIiz.mjs +0 -123
- package/dist/shared-BhuSHZXH.mjs +0 -1
- package/dist/storage-namespace-BIDs9LPb.mjs +0 -1
- package/dist/tool-approval-service-CZCPfvVy.mjs +0 -1
- package/dist/tools-Cid9D99F.mjs +0 -1
- /package/dist/{base-orchestrator-BOAPgqF7.d.mts → base-orchestrator-wyumsn3b.d.mts} +0 -0
- /package/dist/{capability-service-DV32ecwR.mjs → capability-service-CJbmhfv9.mjs} +0 -0
- /package/dist/{cleanEnvForAdapter-hTPNvPU5.mjs → cleanEnvForAdapter-KkYzQa1f.mjs} +0 -0
- /package/dist/{config-namespace-wJ2CakDB.mjs → config-namespace-ncYg2ct_.mjs} +0 -0
- /package/dist/{extension-namespace-CTd9kOtt.mjs → extension-namespace-cMh_mMiL.mjs} +0 -0
- /package/dist/{identity-DBST3-XO.mjs → identity-Cz2IeEtm.mjs} +0 -0
- /package/dist/{index-SzSiyG61.d.mts → index-CHQ1SqT0.d.mts} +0 -0
- /package/dist/{model-registry-xINyxQUT.mjs → model-registry-CfXytvzx.mjs} +0 -0
- /package/dist/{model-registry-Dzpssh9j.mjs → model-registry-Scn_MC2d.mjs} +0 -0
- /package/dist/{namespace-DBw9BYr8.mjs → namespace-BoD94mrN.mjs} +0 -0
- /package/dist/{namespace-DUVgMfTR.mjs → namespace-CFLAmQfh.mjs} +0 -0
- /package/dist/{namespace-aALq9tnE.mjs → namespace-DkRgbZYn.mjs} +0 -0
- /package/dist/{namespace-yxIxUsjo.mjs → namespace-LViZ-EQk.mjs} +0 -0
- /package/dist/{namespace-Zb8HAbyF.mjs → namespace-Yna5-Pws.mjs} +0 -0
- /package/dist/{platform-BMFUpmTA.mjs → platform-DZ7z-wXD.mjs} +0 -0
- /package/dist/{providers-DhiW_fx4.mjs → providers-u8i15co9.mjs} +0 -0
- /package/dist/{schema-D3ZG13h9.mjs → schema-CoyE6mPt.mjs} +0 -0
- /package/dist/{schemas-CEBe89yE.mjs → schemas-DE-GNmSD.mjs} +0 -0
- /package/dist/{schemas-COnLJnt_.mjs → schemas-hSrzflwZ.mjs} +0 -0
- /package/dist/{schemas-CrnlCRep.mjs → schemas-jFe1AuI-.mjs} +0 -0
- /package/dist/{server-lifecycle-Dx5WgfoS.mjs → server-lifecycle-FXTPW39-.mjs} +0 -0
- /package/dist/{server-lifecycle-BC6FRn86.d.mts → server-lifecycle-YoSGFGnU.d.mts} +0 -0
- /package/dist/{shared-schemas-Byah36lG.mjs → shared-schemas-CPShiLNp.mjs} +0 -0
- /package/dist/{storage-namespace-definition-BjK9nZAN.mjs → storage-namespace-definition-CqSdsuCC.mjs} +0 -0
- /package/dist/{timeout-D33CUZ0M.mjs → timeout-XsYIOKrc.mjs} +0 -0
- /package/dist/{tray-menu-service-BAYtLdAg.mjs → tray-menu-service-DuXq5k22.mjs} +0 -0
- /package/dist/{ui-config-zawaoEfB.mjs → ui-config-9bDRwFZr.mjs} +0 -0
- /package/dist/{variant-BZWfmS0q.mjs → variant-CT6XBP6T.mjs} +0 -0
- /package/dist/{visibility-CZu8ooOA.mjs → visibility-Cb62p9bv.mjs} +0 -0
- /package/dist/{window-registry-C_IJmY8_.d.mts → window-registry-CBcrGTv4.d.mts} +0 -0
- /package/dist/{window-registry-B_-hBEcV.mjs → window-registry-DW-dKRjQ.mjs} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r as ExecutionTarget } from "./schemas-
|
|
2
|
-
import { d as Turn$1 } from "./index-
|
|
3
|
-
import { a as PipelineStep, o as SessionEditorAction, t as ActionCategory } from "./types-
|
|
4
|
-
import { a as agents, o as sessions } from "./schema-
|
|
1
|
+
import { r as ExecutionTarget } from "./schemas-C46QfKzv.mjs";
|
|
2
|
+
import { d as Turn$1 } from "./index-DGBu6bHi2.mjs";
|
|
3
|
+
import { a as PipelineStep, o as SessionEditorAction, t as ActionCategory } from "./types-C2Ob9zz_.mjs";
|
|
4
|
+
import { a as agents, o as sessions } from "./schema-M5YTvSAG.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
7
7
|
import { ExtractSubjectPayload, SubjectDefinition } from "@makaio/framework/core";
|
|
8
8
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
9
|
-
import { AIReasoningLevel, AdapterRuntimeOptions,
|
|
9
|
+
import { AIReasoningLevel, AdapterRuntimeOptions, BranchKind, ContextWindowState, ExtensionContext, ForkOptions, ForkTransforms, IMakaioSession, MakaioSessionAgent, MakaioSessionEvent, Message, MessageBlock, MessageInput, ReasoningLevelMap, SessionContext, SessionExtensionContext, SessionLineage, SessionLineageKind, SessionMessage, SessionMessageBlock, TurnInitiator } from "@makaio/framework/contracts";
|
|
10
10
|
import { BaseService } from "@makaio/framework/service-base";
|
|
11
11
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
12
12
|
import * as _$_makaio_storage_core0 from "@makaio/framework/storage";
|
|
13
13
|
import { MakaioDatabase } from "@makaio/framework/storage/drizzle";
|
|
14
14
|
|
|
15
|
-
//#region
|
|
15
|
+
//#region services/core/src/session/session-service.d.ts
|
|
16
16
|
/**
|
|
17
17
|
* Framework-core session service for managing makaio sessions.
|
|
18
18
|
*
|
|
@@ -89,7 +89,7 @@ declare class MakaioSessionService extends BaseService {
|
|
|
89
89
|
private reconcileOrphanedTurns;
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
|
-
//#region
|
|
92
|
+
//#region services/core/src/session/session-service-handlers-core.d.ts
|
|
93
93
|
/**
|
|
94
94
|
* Dependencies required to register the framework-core session service handlers.
|
|
95
95
|
*
|
|
@@ -119,7 +119,7 @@ interface CoreSessionServiceHandlerDeps {
|
|
|
119
119
|
*/
|
|
120
120
|
declare function registerCoreSessionServiceHandlers(deps: CoreSessionServiceHandlerDeps): Array<() => void>;
|
|
121
121
|
//#endregion
|
|
122
|
-
//#region
|
|
122
|
+
//#region services/core/src/session/session-orchestrator.d.ts
|
|
123
123
|
/**
|
|
124
124
|
* Minimum public contract for a session orchestrator service.
|
|
125
125
|
*
|
|
@@ -242,7 +242,7 @@ declare class SessionOrchestrator implements ISessionOrchestrator {
|
|
|
242
242
|
private resolveCanonicalModelSelection;
|
|
243
243
|
}
|
|
244
244
|
//#endregion
|
|
245
|
-
//#region
|
|
245
|
+
//#region services/core/src/session/adapter-registry.d.ts
|
|
246
246
|
/**
|
|
247
247
|
* Resolves adapterName → adapterId mappings for the framework session
|
|
248
248
|
* orchestrator.
|
|
@@ -290,7 +290,7 @@ declare class AdapterRegistry {
|
|
|
290
290
|
destroy(): void;
|
|
291
291
|
}
|
|
292
292
|
//#endregion
|
|
293
|
-
//#region
|
|
293
|
+
//#region services/core/src/session/turn-context-enricher.d.ts
|
|
294
294
|
/**
|
|
295
295
|
* Enriches messageHistory with turn-so-far messages for immediate delivery.
|
|
296
296
|
*
|
|
@@ -326,7 +326,7 @@ declare class TurnContextEnricher {
|
|
|
326
326
|
private convertSessionMessagesToMessages;
|
|
327
327
|
}
|
|
328
328
|
//#endregion
|
|
329
|
-
//#region
|
|
329
|
+
//#region services/core/src/session/utils/message-utils.d.ts
|
|
330
330
|
/**
|
|
331
331
|
* Extract plain text content from a MessageInput for FTS indexing.
|
|
332
332
|
* @param message - The message input (string or structured)
|
|
@@ -341,7 +341,7 @@ declare function extractTextContent(message: MessageInput): string;
|
|
|
341
341
|
*/
|
|
342
342
|
declare function normalizeToBlocks(message: MessageInput): SessionMessageBlock[];
|
|
343
343
|
//#endregion
|
|
344
|
-
//#region
|
|
344
|
+
//#region services/core/src/session/utils/session-utils.d.ts
|
|
345
345
|
/**
|
|
346
346
|
* Get existing session or create a new one.
|
|
347
347
|
* @param bus - Makaio bus instance
|
|
@@ -369,7 +369,7 @@ declare function resolveTargetAgents(session: IMakaioSession, targetSpec: string
|
|
|
369
369
|
*/
|
|
370
370
|
declare function findTurnByAgent(activeTurns: Map<string, Turn$1>, agentId: string): Turn$1 | undefined;
|
|
371
371
|
//#endregion
|
|
372
|
-
//#region
|
|
372
|
+
//#region services/core/src/session/utils/resolution.d.ts
|
|
373
373
|
/**
|
|
374
374
|
* Resolve adapterName → adapterId for bus routing.
|
|
375
375
|
* Queries the adapters table for a local enabled instance.
|
|
@@ -396,18 +396,16 @@ declare function resolveModelCapabilities(bus: IMakaioBus, providerConfigId: str
|
|
|
396
396
|
} | undefined>;
|
|
397
397
|
/**
|
|
398
398
|
* Resolves the effective execution target for a session.
|
|
399
|
-
* Priority: explicit executionTargetId →
|
|
399
|
+
* Priority: explicit executionTargetId → system default (local).
|
|
400
400
|
* @param bus - Makaio bus instance
|
|
401
401
|
* @param params - Resolution parameters from session context
|
|
402
402
|
* @returns Resolved execution target
|
|
403
403
|
*/
|
|
404
404
|
declare function resolveExecutionTarget(bus: IMakaioBus, params: {
|
|
405
405
|
executionTargetId?: string;
|
|
406
|
-
workstreamId?: string;
|
|
407
|
-
projectId?: string;
|
|
408
406
|
}): Promise<ExecutionTarget>;
|
|
409
407
|
//#endregion
|
|
410
|
-
//#region
|
|
408
|
+
//#region services/core/src/session/utils/recovery-context.d.ts
|
|
411
409
|
/**
|
|
412
410
|
* Build sessionContext with messageHistory for a recovered agent.
|
|
413
411
|
* Uses getFullConversation() to assemble history from stored messages.
|
|
@@ -420,7 +418,7 @@ declare function resolveExecutionTarget(bus: IMakaioBus, params: {
|
|
|
420
418
|
*/
|
|
421
419
|
declare function buildRecoveryContext(bus: IMakaioBus, session: IMakaioSession): Promise<SessionContext>;
|
|
422
420
|
//#endregion
|
|
423
|
-
//#region
|
|
421
|
+
//#region services/core/src/session/utils/agent-recovery.d.ts
|
|
424
422
|
/**
|
|
425
423
|
* Configuration for recovering dead agents during liveness verification.
|
|
426
424
|
*/
|
|
@@ -507,7 +505,7 @@ declare function buildRecoveryContextWithPipeline(bus: IMakaioBus, session: IMak
|
|
|
507
505
|
*/
|
|
508
506
|
declare function recoverAgent(bus: IMakaioBus, deadAgent: MakaioSessionAgent, recoveryConfig: RecoveryConfig): Promise<MakaioSessionAgent>;
|
|
509
507
|
//#endregion
|
|
510
|
-
//#region
|
|
508
|
+
//#region services/core/src/session/utils/turn-initiator.d.ts
|
|
511
509
|
/**
|
|
512
510
|
* Builds turn initiator metadata from `sendMessage` source fields.
|
|
513
511
|
*
|
|
@@ -520,7 +518,7 @@ declare function recoverAgent(bus: IMakaioBus, deadAgent: MakaioSessionAgent, re
|
|
|
520
518
|
*/
|
|
521
519
|
declare function buildTurnInitiator(source: 'extension' | 'user' | 'system' | undefined, extensionId: string | undefined): TurnInitiator;
|
|
522
520
|
//#endregion
|
|
523
|
-
//#region
|
|
521
|
+
//#region services/core/src/session/context-window/types.d.ts
|
|
524
522
|
/**
|
|
525
523
|
* Context window tracking types for per-session aggregation.
|
|
526
524
|
*
|
|
@@ -571,7 +569,7 @@ interface ContextWindowTrackerConfig {
|
|
|
571
569
|
staleThresholdMs?: number;
|
|
572
570
|
}
|
|
573
571
|
//#endregion
|
|
574
|
-
//#region
|
|
572
|
+
//#region services/core/src/session/context-window/context-window-tracker.d.ts
|
|
575
573
|
/**
|
|
576
574
|
* Tracks context window state per session, aggregating across agents.
|
|
577
575
|
*
|
|
@@ -640,7 +638,7 @@ declare class ContextWindowTracker {
|
|
|
640
638
|
private recomputeSessionState;
|
|
641
639
|
}
|
|
642
640
|
//#endregion
|
|
643
|
-
//#region
|
|
641
|
+
//#region services/core/src/session/handlers/lifecycle-handlers.d.ts
|
|
644
642
|
/**
|
|
645
643
|
* Dependencies for session lifecycle handlers.
|
|
646
644
|
*/
|
|
@@ -661,7 +659,7 @@ declare function registerGetStatusCountsHandler(deps: SessionLifecycleDeps): ()
|
|
|
661
659
|
*/
|
|
662
660
|
declare function registerResumeHandler(deps: SessionLifecycleDeps): () => void;
|
|
663
661
|
//#endregion
|
|
664
|
-
//#region
|
|
662
|
+
//#region services/core/src/session/session-editor/action-registry.d.ts
|
|
665
663
|
/**
|
|
666
664
|
* Registry for pipeline actions.
|
|
667
665
|
* Actions are registered at startup and looked up during pipeline execution.
|
|
@@ -699,7 +697,7 @@ declare class ActionRegistry {
|
|
|
699
697
|
/** Global action registry instance */
|
|
700
698
|
declare const actionRegistry: ActionRegistry;
|
|
701
699
|
//#endregion
|
|
702
|
-
//#region
|
|
700
|
+
//#region services/core/src/session/session-editor/actions/index.d.ts
|
|
703
701
|
/**
|
|
704
702
|
* Register all built-in actions.
|
|
705
703
|
* Call this at service startup. Safe to call multiple times.
|
|
@@ -719,7 +717,7 @@ declare function registerBuiltInActions(bus?: IMakaioBus): void;
|
|
|
719
717
|
*/
|
|
720
718
|
declare function resetBuiltInActionsRegistration(): void;
|
|
721
719
|
//#endregion
|
|
722
|
-
//#region
|
|
720
|
+
//#region services/core/src/session/session-editor/handlers.d.ts
|
|
723
721
|
/**
|
|
724
722
|
* Register handler for session-editor.listActions.
|
|
725
723
|
*
|
|
@@ -730,7 +728,7 @@ declare function resetBuiltInActionsRegistration(): void;
|
|
|
730
728
|
*/
|
|
731
729
|
declare function registerListActionsHandler(bus: IMakaioBus): () => void;
|
|
732
730
|
//#endregion
|
|
733
|
-
//#region
|
|
731
|
+
//#region services/core/src/session/selection-utils.d.ts
|
|
734
732
|
/**
|
|
735
733
|
* Normalize a selection string field by trimming whitespace and coercing
|
|
736
734
|
* blank strings to `undefined`.
|
|
@@ -758,11 +756,11 @@ declare function normalizeSelectionString(value: string | undefined): string | u
|
|
|
758
756
|
*/
|
|
759
757
|
declare function resolveAdapterNameById(bus: IMakaioBus, adapterId: string, explicitAdapterName: string | undefined, errorPrefix: string): Promise<string>;
|
|
760
758
|
//#endregion
|
|
761
|
-
//#region
|
|
759
|
+
//#region services/core/src/session/constants.d.ts
|
|
762
760
|
/** Default transform pipeline for connector-swap history injection. */
|
|
763
761
|
declare const CONNECTOR_SWAP_DEFAULT_PIPELINE: PipelineStep[];
|
|
764
762
|
//#endregion
|
|
765
|
-
//#region
|
|
763
|
+
//#region services/core/src/session/fallback-runtime-options.d.ts
|
|
766
764
|
/**
|
|
767
765
|
* Runtime options preserved across a VirtualModel fallback hop.
|
|
768
766
|
*
|
|
@@ -789,7 +787,7 @@ type FallbackRuntimeOptions = Pick<AdapterRuntimeOptions, 'cwd' | 'systemPrompt'
|
|
|
789
787
|
*/
|
|
790
788
|
declare function pickFallbackRuntimeOptions(payload: Partial<Pick<AdapterRuntimeOptions, 'cwd' | 'systemPrompt' | 'allowedTools' | 'disallowedTools'>>): FallbackRuntimeOptions;
|
|
791
789
|
//#endregion
|
|
792
|
-
//#region
|
|
790
|
+
//#region services/core/src/session/context/assemble-fork-context.d.ts
|
|
793
791
|
/**
|
|
794
792
|
* Assemble fork context for a session's first turn.
|
|
795
793
|
*
|
|
@@ -810,88 +808,7 @@ declare function pickFallbackRuntimeOptions(payload: Partial<Pick<AdapterRuntime
|
|
|
810
808
|
*/
|
|
811
809
|
declare function assembleForkContext(bus: IMakaioBus, session: IMakaioSession, sessionId: string, originalContext?: SessionContext, isNewTurn?: boolean): Promise<SessionContext | undefined>;
|
|
812
810
|
//#endregion
|
|
813
|
-
//#region
|
|
814
|
-
/**
|
|
815
|
-
* Minimal descriptor for a session-scoped attachment artifact.
|
|
816
|
-
*
|
|
817
|
-
* Defined here so the framework core remains independent of any host plugin.
|
|
818
|
-
* The host (host layer) owns the full storage schema; this type covers only
|
|
819
|
-
* the fields that `createAttachmentArtifacts` needs to populate.
|
|
820
|
-
*/
|
|
821
|
-
/** Metadata linking an attachment artifact back to its originating message. */
|
|
822
|
-
interface AttachmentArtifactMetadata extends Record<string, unknown> {
|
|
823
|
-
/** Message that contained the attachment. */
|
|
824
|
-
messageId: string;
|
|
825
|
-
/** Position of the attachment block within the message's blocks array. */
|
|
826
|
-
blockIndex: number;
|
|
827
|
-
/** Original file name of the attachment. */
|
|
828
|
-
fileName?: string;
|
|
829
|
-
}
|
|
830
|
-
interface AttachmentArtifactInput {
|
|
831
|
-
/** Unique artifact identifier. */
|
|
832
|
-
id: string;
|
|
833
|
-
/** Always 'session' for attachment artifacts created from message blocks. */
|
|
834
|
-
scope: 'session';
|
|
835
|
-
/** Session the artifact belongs to. */
|
|
836
|
-
sessionId: string;
|
|
837
|
-
/** Always 'user-upload' for attachment artifacts. */
|
|
838
|
-
type: 'user-upload';
|
|
839
|
-
/** MIME type of the attached file. */
|
|
840
|
-
mimeType: string;
|
|
841
|
-
/** Absolute file path on disk, when available. */
|
|
842
|
-
filePath?: string;
|
|
843
|
-
/** Base64-encoded content, when the source was base64 data. */
|
|
844
|
-
content?: string;
|
|
845
|
-
/** Structured metadata linking the artifact back to its origin. */
|
|
846
|
-
metadata: AttachmentArtifactMetadata;
|
|
847
|
-
}
|
|
848
|
-
/**
|
|
849
|
-
* Result of a single artifact store attempt.
|
|
850
|
-
*
|
|
851
|
-
* Mirrors the optional-result discriminated-union shape returned by
|
|
852
|
-
* `IMakaioBus.requestOptional` so the host can signal whether the artifacts
|
|
853
|
-
* plugin was available without coupling the framework to the bus API.
|
|
854
|
-
*/
|
|
855
|
-
type StoreArtifactResult = {
|
|
856
|
-
handled: true;
|
|
857
|
-
data: {
|
|
858
|
-
id: string;
|
|
859
|
-
};
|
|
860
|
-
} | {
|
|
861
|
-
handled: false;
|
|
862
|
-
};
|
|
863
|
-
/**
|
|
864
|
-
* Host-provided callback that persists one attachment artifact.
|
|
865
|
-
*
|
|
866
|
-
* Injected by the host layer so that `createAttachmentArtifacts` stays
|
|
867
|
-
* free of host plugin imports. Returning `{ handled: false }` signals
|
|
868
|
-
* that the artifacts plugin is not loaded; the caller logs a warning but
|
|
869
|
-
* never fails the parent request.
|
|
870
|
-
* @param artifact - The artifact descriptor to store.
|
|
871
|
-
* @returns A promise resolving to a {@link StoreArtifactResult}.
|
|
872
|
-
*/
|
|
873
|
-
type StoreArtifactFn = (artifact: AttachmentArtifactInput) => Promise<StoreArtifactResult>;
|
|
874
|
-
/**
|
|
875
|
-
* Creates session-scoped artifacts for attachment blocks in a user message.
|
|
876
|
-
*
|
|
877
|
-
* Called after message storage. Delegates persistence to `storeArtifact` so
|
|
878
|
-
* this function remains free of host plugin dependencies — the host
|
|
879
|
-
* (host layer) owns the storage subject and wires the bus call.
|
|
880
|
-
*
|
|
881
|
-
* Breaking change: previously accepted `IMakaioBus` and relied on the
|
|
882
|
-
* artifacts storage subject from `@makaio/contracts`. The callback signature
|
|
883
|
-
* decouples the framework from that bus + subject wiring.
|
|
884
|
-
*
|
|
885
|
-
* Each attachment block becomes a `user-upload` artifact in the session scope,
|
|
886
|
-
* with metadata linking it back to the originating message.
|
|
887
|
-
* @param storeArtifact - Host-provided callback to persist one artifact
|
|
888
|
-
* @param sessionId - Session containing the message
|
|
889
|
-
* @param messageId - Message containing the attachments
|
|
890
|
-
* @param blocks - Normalized message blocks (already stored)
|
|
891
|
-
*/
|
|
892
|
-
declare function createAttachmentArtifacts(storeArtifact: StoreArtifactFn, sessionId: string, messageId: string, blocks: SessionMessageBlock[]): Promise<void>;
|
|
893
|
-
//#endregion
|
|
894
|
-
//#region packages/services/core/src/session/session-bridge.d.ts
|
|
811
|
+
//#region services/core/src/session/session-bridge.d.ts
|
|
895
812
|
declare class SessionBridge {
|
|
896
813
|
private readonly bus;
|
|
897
814
|
private readonly agentToSession;
|
|
@@ -919,6 +836,7 @@ declare class SessionBridge {
|
|
|
919
836
|
* @param agentId - ID of the agent that produced the message
|
|
920
837
|
* @param adapterSessionId - Optional adapter session ID
|
|
921
838
|
* @param error - Optional error message if agent failed
|
|
839
|
+
* @param messageOverride - Optional validated terminal message to store instead of accumulated provider blocks
|
|
922
840
|
*/
|
|
923
841
|
private storeAssistantMessage;
|
|
924
842
|
/**
|
|
@@ -927,7 +845,7 @@ declare class SessionBridge {
|
|
|
927
845
|
destroy(): void;
|
|
928
846
|
}
|
|
929
847
|
//#endregion
|
|
930
|
-
//#region
|
|
848
|
+
//#region services/core/src/session/extension-context.d.ts
|
|
931
849
|
/**
|
|
932
850
|
* Implementation of SessionExtensionContext.
|
|
933
851
|
* Routes all actions through bus subjects.
|
|
@@ -971,7 +889,7 @@ declare class SessionExtensionContextImpl implements SessionExtensionContext {
|
|
|
971
889
|
*/
|
|
972
890
|
declare function createSessionExtensionContext(bus: IMakaioBus, sessionId: string, extensionId: string, turnId?: string, parentSessionId?: string, contextTracker?: ContextWindowTracker): SessionExtensionContextImpl;
|
|
973
891
|
//#endregion
|
|
974
|
-
//#region
|
|
892
|
+
//#region services/core/src/session/storage/agent-namespace.d.ts
|
|
975
893
|
/**
|
|
976
894
|
* Agent storage namespace.
|
|
977
895
|
*
|
|
@@ -1821,7 +1739,7 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
|
|
|
1821
1739
|
};
|
|
1822
1740
|
}>, "storage:agent">;
|
|
1823
1741
|
//#endregion
|
|
1824
|
-
//#region
|
|
1742
|
+
//#region services/core/src/session/storage/memory-handler.d.ts
|
|
1825
1743
|
/**
|
|
1826
1744
|
* Register in-memory session storage handlers.
|
|
1827
1745
|
*
|
|
@@ -1841,7 +1759,7 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
|
|
|
1841
1759
|
*/
|
|
1842
1760
|
declare function registerMemorySessionStorage(bus: IMakaioBus): () => void;
|
|
1843
1761
|
//#endregion
|
|
1844
|
-
//#region
|
|
1762
|
+
//#region services/core/src/session/storage/drizzle-handler.d.ts
|
|
1845
1763
|
/**
|
|
1846
1764
|
* Register Drizzle-based session storage handlers.
|
|
1847
1765
|
*
|
|
@@ -1874,7 +1792,7 @@ declare function registerMemorySessionStorage(bus: IMakaioBus): () => void;
|
|
|
1874
1792
|
*/
|
|
1875
1793
|
declare function registerDrizzleSessionStorage(bus: IMakaioBus, db: MakaioDatabase, _ctx: ExtensionContext): () => void;
|
|
1876
1794
|
//#endregion
|
|
1877
|
-
//#region
|
|
1795
|
+
//#region services/core/src/session/storage/agent-memory-handler.d.ts
|
|
1878
1796
|
/**
|
|
1879
1797
|
* Register in-memory agent storage handlers.
|
|
1880
1798
|
*
|
|
@@ -1884,7 +1802,7 @@ declare function registerDrizzleSessionStorage(bus: IMakaioBus, db: MakaioDataba
|
|
|
1884
1802
|
*/
|
|
1885
1803
|
declare function registerMemoryAgentStorage(bus: IMakaioBus): () => void;
|
|
1886
1804
|
//#endregion
|
|
1887
|
-
//#region
|
|
1805
|
+
//#region services/core/src/session/storage/agent-drizzle-handler.d.ts
|
|
1888
1806
|
/**
|
|
1889
1807
|
* Register Drizzle-based agent storage handlers.
|
|
1890
1808
|
*
|
|
@@ -1910,7 +1828,7 @@ declare function registerMemoryAgentStorage(bus: IMakaioBus): () => void;
|
|
|
1910
1828
|
*/
|
|
1911
1829
|
declare function registerDrizzleAgentStorage(bus: IMakaioBus, db: MakaioDatabase, _ctx: ExtensionContext): () => void;
|
|
1912
1830
|
//#endregion
|
|
1913
|
-
//#region
|
|
1831
|
+
//#region services/core/src/session/storage/fts-search-handler.d.ts
|
|
1914
1832
|
/**
|
|
1915
1833
|
* Registers FTS-backed `storage:session.search` handler.
|
|
1916
1834
|
* @param bus - Bus instance used for handler registration
|
|
@@ -1919,7 +1837,7 @@ declare function registerDrizzleAgentStorage(bus: IMakaioBus, db: MakaioDatabase
|
|
|
1919
1837
|
*/
|
|
1920
1838
|
declare function registerFtsSearchHandler(bus: IMakaioBus, db: MakaioDatabase): () => void;
|
|
1921
1839
|
//#endregion
|
|
1922
|
-
//#region
|
|
1840
|
+
//#region services/core/src/session/storage/fts-search-utils.d.ts
|
|
1923
1841
|
/**
|
|
1924
1842
|
* Row shape returned by FTS session search queries.
|
|
1925
1843
|
*
|
|
@@ -2006,7 +1924,7 @@ declare function mapRowToSession(row: SearchSessionRow, sessionAgents: Array<typ
|
|
|
2006
1924
|
};
|
|
2007
1925
|
};
|
|
2008
1926
|
//#endregion
|
|
2009
|
-
//#region
|
|
1927
|
+
//#region services/core/src/session/storage/drizzle-utils.d.ts
|
|
2010
1928
|
type SessionRow = typeof sessions.$inferSelect;
|
|
2011
1929
|
type AgentRow = typeof agents.$inferSelect;
|
|
2012
1930
|
/**
|
|
@@ -2044,7 +1962,7 @@ declare function mapAgentsBySession(agentRows: AgentRow[]): Map<string, AgentRow
|
|
|
2044
1962
|
*/
|
|
2045
1963
|
declare function fetchSessionPreviewMaps(db: MakaioDatabase, sessionIds: string[], includePreview: boolean): Promise<SessionPreviewMaps>;
|
|
2046
1964
|
//#endregion
|
|
2047
|
-
//#region
|
|
1965
|
+
//#region services/core/src/session/session-events/schema.d.ts
|
|
2048
1966
|
/**
|
|
2049
1967
|
* Session events table schema.
|
|
2050
1968
|
*
|
|
@@ -2305,7 +2223,7 @@ type InsertSessionEvent = typeof sessionEvents.$inferInsert;
|
|
|
2305
2223
|
*/
|
|
2306
2224
|
type SelectSessionEvent = typeof sessionEvents.$inferSelect;
|
|
2307
2225
|
//#endregion
|
|
2308
|
-
//#region
|
|
2226
|
+
//#region services/core/src/session/session-events/memory-handler.d.ts
|
|
2309
2227
|
/**
|
|
2310
2228
|
* Register in-memory session event storage handlers.
|
|
2311
2229
|
*
|
|
@@ -2333,7 +2251,7 @@ type SelectSessionEvent = typeof sessionEvents.$inferSelect;
|
|
|
2333
2251
|
*/
|
|
2334
2252
|
declare function registerMemorySessionEventStorage(bus: IMakaioBus): () => void;
|
|
2335
2253
|
//#endregion
|
|
2336
|
-
//#region
|
|
2254
|
+
//#region services/core/src/session/session-events/drizzle-handler.d.ts
|
|
2337
2255
|
/**
|
|
2338
2256
|
* Register Drizzle-based session event storage handlers.
|
|
2339
2257
|
*
|
|
@@ -2359,7 +2277,7 @@ declare function registerMemorySessionEventStorage(bus: IMakaioBus): () => void;
|
|
|
2359
2277
|
*/
|
|
2360
2278
|
declare function registerDrizzleSessionEventStorage(bus: IMakaioBus, db: MakaioDatabase, _ctx: ExtensionContext): () => void;
|
|
2361
2279
|
//#endregion
|
|
2362
|
-
//#region
|
|
2280
|
+
//#region services/core/src/session/session-logger.d.ts
|
|
2363
2281
|
/**
|
|
2364
2282
|
* Transform function for event payloads before storage emission.
|
|
2365
2283
|
* Use for redaction, PII filtering, or payload normalization.
|
|
@@ -2458,7 +2376,7 @@ declare class SessionLogger {
|
|
|
2458
2376
|
destroy(): void;
|
|
2459
2377
|
}
|
|
2460
2378
|
//#endregion
|
|
2461
|
-
//#region
|
|
2379
|
+
//#region services/core/src/session/import-cursors/schema.d.ts
|
|
2462
2380
|
/**
|
|
2463
2381
|
* Import cursors table schema.
|
|
2464
2382
|
*
|
|
@@ -2545,7 +2463,7 @@ declare const importCursors: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
|
|
|
2545
2463
|
dialect: "sqlite";
|
|
2546
2464
|
}>;
|
|
2547
2465
|
//#endregion
|
|
2548
|
-
//#region
|
|
2466
|
+
//#region services/core/src/session/import-cursors/drizzle-handler.d.ts
|
|
2549
2467
|
/**
|
|
2550
2468
|
* Register Drizzle-backed import cursor storage handlers.
|
|
2551
2469
|
*
|
|
@@ -2567,7 +2485,7 @@ declare const importCursors: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
|
|
|
2567
2485
|
*/
|
|
2568
2486
|
declare function registerDrizzleImportCursorStorage(bus: IMakaioBus, db: MakaioDatabase, _ctx: ExtensionContext): () => void;
|
|
2569
2487
|
//#endregion
|
|
2570
|
-
//#region
|
|
2488
|
+
//#region services/core/src/session/turns/drizzle-handler.d.ts
|
|
2571
2489
|
/**
|
|
2572
2490
|
* Register Drizzle-based turn storage handlers.
|
|
2573
2491
|
*
|
|
@@ -2586,7 +2504,7 @@ declare function registerDrizzleImportCursorStorage(bus: IMakaioBus, db: MakaioD
|
|
|
2586
2504
|
*/
|
|
2587
2505
|
declare function registerDrizzleTurnStorage(bus: IMakaioBus, db: MakaioDatabase, _ctx: ExtensionContext): () => void;
|
|
2588
2506
|
//#endregion
|
|
2589
|
-
//#region
|
|
2507
|
+
//#region services/core/src/session/turns/memory-handler.d.ts
|
|
2590
2508
|
/**
|
|
2591
2509
|
* Register in-memory turn storage handlers.
|
|
2592
2510
|
*
|
|
@@ -2596,7 +2514,7 @@ declare function registerDrizzleTurnStorage(bus: IMakaioBus, db: MakaioDatabase,
|
|
|
2596
2514
|
*/
|
|
2597
2515
|
declare function registerMemoryTurnStorage(bus: IMakaioBus): () => void;
|
|
2598
2516
|
//#endregion
|
|
2599
|
-
//#region
|
|
2517
|
+
//#region services/core/src/session/turns/schema.d.ts
|
|
2600
2518
|
/**
|
|
2601
2519
|
* Turns table schema.
|
|
2602
2520
|
*
|
|
@@ -2706,7 +2624,7 @@ declare const turns: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
|
|
|
2706
2624
|
tableName: "turns";
|
|
2707
2625
|
dataType: "string";
|
|
2708
2626
|
columnType: "SQLiteText";
|
|
2709
|
-
data: "
|
|
2627
|
+
data: "error" | "active" | "completed";
|
|
2710
2628
|
driverParam: string;
|
|
2711
2629
|
notNull: true;
|
|
2712
2630
|
hasDefault: false;
|
|
@@ -2770,7 +2688,7 @@ type InsertTurn = typeof turns.$inferInsert;
|
|
|
2770
2688
|
*/
|
|
2771
2689
|
type SelectTurn = typeof turns.$inferSelect;
|
|
2772
2690
|
//#endregion
|
|
2773
|
-
//#region
|
|
2691
|
+
//#region services/core/src/session/messages/drizzle-handler.d.ts
|
|
2774
2692
|
/**
|
|
2775
2693
|
* Register Drizzle-based message storage handlers.
|
|
2776
2694
|
*
|
|
@@ -2782,7 +2700,7 @@ type SelectTurn = typeof turns.$inferSelect;
|
|
|
2782
2700
|
*/
|
|
2783
2701
|
declare function registerDrizzleMessageStorage(bus: IMakaioBus, db: MakaioDatabase, _ctx: ExtensionContext): () => void;
|
|
2784
2702
|
//#endregion
|
|
2785
|
-
//#region
|
|
2703
|
+
//#region services/core/src/session/messages/memory-handler.d.ts
|
|
2786
2704
|
/**
|
|
2787
2705
|
* Register in-memory message storage handlers.
|
|
2788
2706
|
*
|
|
@@ -2793,7 +2711,7 @@ declare function registerDrizzleMessageStorage(bus: IMakaioBus, db: MakaioDataba
|
|
|
2793
2711
|
*/
|
|
2794
2712
|
declare function registerMemoryMessageStorage(bus: IMakaioBus): () => void;
|
|
2795
2713
|
//#endregion
|
|
2796
|
-
//#region
|
|
2714
|
+
//#region services/core/src/session/messages/schema.d.ts
|
|
2797
2715
|
/**
|
|
2798
2716
|
* Messages table schema.
|
|
2799
2717
|
*
|
|
@@ -3049,7 +2967,7 @@ type InsertMessage = typeof messages.$inferInsert;
|
|
|
3049
2967
|
*/
|
|
3050
2968
|
type SelectMessage = typeof messages.$inferSelect;
|
|
3051
2969
|
//#endregion
|
|
3052
|
-
//#region
|
|
2970
|
+
//#region services/core/src/session/message-routing/namespace.d.ts
|
|
3053
2971
|
/**
|
|
3054
2972
|
* Message routing storage namespace.
|
|
3055
2973
|
*
|
|
@@ -3321,7 +3239,7 @@ declare const MessageRoutingSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
3321
3239
|
};
|
|
3322
3240
|
}>, "storage:messageRouting">;
|
|
3323
3241
|
//#endregion
|
|
3324
|
-
//#region
|
|
3242
|
+
//#region services/core/src/session/message-routing/drizzle-handler.d.ts
|
|
3325
3243
|
/**
|
|
3326
3244
|
* Register Drizzle-based message routing storage handlers.
|
|
3327
3245
|
*
|
|
@@ -3333,7 +3251,7 @@ declare const MessageRoutingSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
3333
3251
|
*/
|
|
3334
3252
|
declare function registerDrizzleMessageRoutingStorage(bus: IMakaioBus, db: MakaioDatabase, _ctx: ExtensionContext): () => void;
|
|
3335
3253
|
//#endregion
|
|
3336
|
-
//#region
|
|
3254
|
+
//#region services/core/src/session/message-routing/schema.d.ts
|
|
3337
3255
|
/**
|
|
3338
3256
|
* Message routing table schema.
|
|
3339
3257
|
*
|
|
@@ -3456,7 +3374,7 @@ type InsertMessageRouting = typeof messageRouting.$inferInsert;
|
|
|
3456
3374
|
*/
|
|
3457
3375
|
type SelectMessageRouting = typeof messageRouting.$inferSelect;
|
|
3458
3376
|
//#endregion
|
|
3459
|
-
//#region
|
|
3377
|
+
//#region services/core/src/session/entities/makaio-session.d.ts
|
|
3460
3378
|
/**
|
|
3461
3379
|
* Configuration for creating a MakaioSession.
|
|
3462
3380
|
*/
|
|
@@ -3539,1205 +3457,49 @@ declare class MakaioSession {
|
|
|
3539
3457
|
protected emit<S extends SubjectDefinition>(subject: S, payload: Omit<ExtractSubjectPayload<S>, 'sessionId'>): Promise<void>;
|
|
3540
3458
|
}
|
|
3541
3459
|
//#endregion
|
|
3542
|
-
//#region
|
|
3460
|
+
//#region services/core/src/session/import/parent-resolver.d.ts
|
|
3543
3461
|
/**
|
|
3544
|
-
*
|
|
3462
|
+
* Register handler to resolve parent relationships when sessions are imported.
|
|
3545
3463
|
*
|
|
3546
|
-
*
|
|
3547
|
-
*
|
|
3548
|
-
*
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
isAutoincrement: false;
|
|
3565
|
-
hasRuntimeDefault: false;
|
|
3566
|
-
enumValues: [string, ...string[]];
|
|
3567
|
-
baseColumn: never;
|
|
3568
|
-
identity: undefined;
|
|
3569
|
-
generated: undefined;
|
|
3570
|
-
}, {}, {
|
|
3571
|
-
length: number | undefined;
|
|
3572
|
-
}>;
|
|
3573
|
-
adapterName: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3574
|
-
name: "adapter_name";
|
|
3575
|
-
tableName: "adapter_sessions";
|
|
3576
|
-
dataType: "string";
|
|
3577
|
-
columnType: "SQLiteText";
|
|
3578
|
-
data: string;
|
|
3579
|
-
driverParam: string;
|
|
3580
|
-
notNull: true;
|
|
3581
|
-
hasDefault: false;
|
|
3582
|
-
isPrimaryKey: false;
|
|
3583
|
-
isAutoincrement: false;
|
|
3584
|
-
hasRuntimeDefault: false;
|
|
3585
|
-
enumValues: [string, ...string[]];
|
|
3586
|
-
baseColumn: never;
|
|
3587
|
-
identity: undefined;
|
|
3588
|
-
generated: undefined;
|
|
3589
|
-
}, {}, {
|
|
3590
|
-
length: number | undefined;
|
|
3591
|
-
}>;
|
|
3592
|
-
parentAdapterSessionId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3593
|
-
name: "parent_adapter_session_id";
|
|
3594
|
-
tableName: "adapter_sessions";
|
|
3595
|
-
dataType: "string";
|
|
3596
|
-
columnType: "SQLiteText";
|
|
3597
|
-
data: string;
|
|
3598
|
-
driverParam: string;
|
|
3599
|
-
notNull: false;
|
|
3600
|
-
hasDefault: false;
|
|
3601
|
-
isPrimaryKey: false;
|
|
3602
|
-
isAutoincrement: false;
|
|
3603
|
-
hasRuntimeDefault: false;
|
|
3604
|
-
enumValues: [string, ...string[]];
|
|
3605
|
-
baseColumn: never;
|
|
3606
|
-
identity: undefined;
|
|
3607
|
-
generated: undefined;
|
|
3608
|
-
}, {}, {
|
|
3609
|
-
length: number | undefined;
|
|
3610
|
-
}>;
|
|
3611
|
-
forkPointMessageId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3612
|
-
name: "fork_point_message_id";
|
|
3613
|
-
tableName: "adapter_sessions";
|
|
3614
|
-
dataType: "string";
|
|
3615
|
-
columnType: "SQLiteText";
|
|
3616
|
-
data: string;
|
|
3617
|
-
driverParam: string;
|
|
3618
|
-
notNull: false;
|
|
3619
|
-
hasDefault: false;
|
|
3620
|
-
isPrimaryKey: false;
|
|
3621
|
-
isAutoincrement: false;
|
|
3622
|
-
hasRuntimeDefault: false;
|
|
3623
|
-
enumValues: [string, ...string[]];
|
|
3624
|
-
baseColumn: never;
|
|
3625
|
-
identity: undefined;
|
|
3626
|
-
generated: undefined;
|
|
3627
|
-
}, {}, {
|
|
3628
|
-
length: number | undefined;
|
|
3629
|
-
}>;
|
|
3630
|
-
sessionId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3631
|
-
name: "session_id";
|
|
3632
|
-
tableName: "adapter_sessions";
|
|
3633
|
-
dataType: "string";
|
|
3634
|
-
columnType: "SQLiteText";
|
|
3635
|
-
data: string;
|
|
3636
|
-
driverParam: string;
|
|
3637
|
-
notNull: false;
|
|
3638
|
-
hasDefault: false;
|
|
3639
|
-
isPrimaryKey: false;
|
|
3640
|
-
isAutoincrement: false;
|
|
3641
|
-
hasRuntimeDefault: false;
|
|
3642
|
-
enumValues: [string, ...string[]];
|
|
3643
|
-
baseColumn: never;
|
|
3644
|
-
identity: undefined;
|
|
3645
|
-
generated: undefined;
|
|
3646
|
-
}, {}, {
|
|
3647
|
-
length: number | undefined;
|
|
3648
|
-
}>;
|
|
3649
|
-
model: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3650
|
-
name: "model";
|
|
3651
|
-
tableName: "adapter_sessions";
|
|
3652
|
-
dataType: "string";
|
|
3653
|
-
columnType: "SQLiteText";
|
|
3654
|
-
data: string;
|
|
3655
|
-
driverParam: string;
|
|
3656
|
-
notNull: false;
|
|
3657
|
-
hasDefault: false;
|
|
3658
|
-
isPrimaryKey: false;
|
|
3659
|
-
isAutoincrement: false;
|
|
3660
|
-
hasRuntimeDefault: false;
|
|
3661
|
-
enumValues: [string, ...string[]];
|
|
3662
|
-
baseColumn: never;
|
|
3663
|
-
identity: undefined;
|
|
3664
|
-
generated: undefined;
|
|
3665
|
-
}, {}, {
|
|
3666
|
-
length: number | undefined;
|
|
3667
|
-
}>;
|
|
3668
|
-
cwd: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3669
|
-
name: "cwd";
|
|
3670
|
-
tableName: "adapter_sessions";
|
|
3671
|
-
dataType: "string";
|
|
3672
|
-
columnType: "SQLiteText";
|
|
3673
|
-
data: string;
|
|
3674
|
-
driverParam: string;
|
|
3675
|
-
notNull: false;
|
|
3676
|
-
hasDefault: false;
|
|
3677
|
-
isPrimaryKey: false;
|
|
3678
|
-
isAutoincrement: false;
|
|
3679
|
-
hasRuntimeDefault: false;
|
|
3680
|
-
enumValues: [string, ...string[]];
|
|
3681
|
-
baseColumn: never;
|
|
3682
|
-
identity: undefined;
|
|
3683
|
-
generated: undefined;
|
|
3684
|
-
}, {}, {
|
|
3685
|
-
length: number | undefined;
|
|
3686
|
-
}>;
|
|
3687
|
-
logFilePath: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3688
|
-
name: "log_file_path";
|
|
3689
|
-
tableName: "adapter_sessions";
|
|
3690
|
-
dataType: "string";
|
|
3691
|
-
columnType: "SQLiteText";
|
|
3692
|
-
data: string;
|
|
3693
|
-
driverParam: string;
|
|
3694
|
-
notNull: false;
|
|
3695
|
-
hasDefault: false;
|
|
3696
|
-
isPrimaryKey: false;
|
|
3697
|
-
isAutoincrement: false;
|
|
3698
|
-
hasRuntimeDefault: false;
|
|
3699
|
-
enumValues: [string, ...string[]];
|
|
3700
|
-
baseColumn: never;
|
|
3701
|
-
identity: undefined;
|
|
3702
|
-
generated: undefined;
|
|
3703
|
-
}, {}, {
|
|
3704
|
-
length: number | undefined;
|
|
3705
|
-
}>;
|
|
3706
|
-
kind: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3707
|
-
name: "kind";
|
|
3708
|
-
tableName: "adapter_sessions";
|
|
3709
|
-
dataType: "string";
|
|
3710
|
-
columnType: "SQLiteText";
|
|
3711
|
-
data: "root" | "fork" | "subagent" | "compress";
|
|
3712
|
-
driverParam: string;
|
|
3713
|
-
notNull: true;
|
|
3714
|
-
hasDefault: true;
|
|
3715
|
-
isPrimaryKey: false;
|
|
3716
|
-
isAutoincrement: false;
|
|
3717
|
-
hasRuntimeDefault: false;
|
|
3718
|
-
enumValues: ["root", "fork", "subagent", "compress"];
|
|
3719
|
-
baseColumn: never;
|
|
3720
|
-
identity: undefined;
|
|
3721
|
-
generated: undefined;
|
|
3722
|
-
}, {}, {
|
|
3723
|
-
length: number | undefined;
|
|
3724
|
-
}>;
|
|
3725
|
-
discoveredAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3726
|
-
name: "discovered_at";
|
|
3727
|
-
tableName: "adapter_sessions";
|
|
3728
|
-
dataType: "number";
|
|
3729
|
-
columnType: "SQLiteInteger";
|
|
3730
|
-
data: number;
|
|
3731
|
-
driverParam: number;
|
|
3732
|
-
notNull: true;
|
|
3733
|
-
hasDefault: false;
|
|
3734
|
-
isPrimaryKey: false;
|
|
3735
|
-
isAutoincrement: false;
|
|
3736
|
-
hasRuntimeDefault: false;
|
|
3737
|
-
enumValues: undefined;
|
|
3738
|
-
baseColumn: never;
|
|
3739
|
-
identity: undefined;
|
|
3740
|
-
generated: undefined;
|
|
3741
|
-
}, {}, {}>;
|
|
3742
|
-
startedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3743
|
-
name: "started_at";
|
|
3744
|
-
tableName: "adapter_sessions";
|
|
3745
|
-
dataType: "number";
|
|
3746
|
-
columnType: "SQLiteInteger";
|
|
3747
|
-
data: number;
|
|
3748
|
-
driverParam: number;
|
|
3749
|
-
notNull: true;
|
|
3750
|
-
hasDefault: false;
|
|
3751
|
-
isPrimaryKey: false;
|
|
3752
|
-
isAutoincrement: false;
|
|
3753
|
-
hasRuntimeDefault: false;
|
|
3754
|
-
enumValues: undefined;
|
|
3755
|
-
baseColumn: never;
|
|
3756
|
-
identity: undefined;
|
|
3757
|
-
generated: undefined;
|
|
3758
|
-
}, {}, {}>;
|
|
3759
|
-
status: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3760
|
-
name: "status";
|
|
3761
|
-
tableName: "adapter_sessions";
|
|
3762
|
-
dataType: "string";
|
|
3763
|
-
columnType: "SQLiteText";
|
|
3764
|
-
data: "imported" | "discovered" | "live" | "tracking";
|
|
3765
|
-
driverParam: string;
|
|
3766
|
-
notNull: true;
|
|
3767
|
-
hasDefault: true;
|
|
3768
|
-
isPrimaryKey: false;
|
|
3769
|
-
isAutoincrement: false;
|
|
3770
|
-
hasRuntimeDefault: false;
|
|
3771
|
-
enumValues: ["discovered", "imported", "live", "tracking"];
|
|
3772
|
-
baseColumn: never;
|
|
3773
|
-
identity: undefined;
|
|
3774
|
-
generated: undefined;
|
|
3775
|
-
}, {}, {
|
|
3776
|
-
length: number | undefined;
|
|
3777
|
-
}>;
|
|
3778
|
-
};
|
|
3779
|
-
dialect: "sqlite";
|
|
3780
|
-
}>;
|
|
3781
|
-
/**
|
|
3782
|
-
* Type for inserting a new adapter session.
|
|
3783
|
-
*/
|
|
3784
|
-
type InsertAdapterSession = typeof adapterSessions.$inferInsert;
|
|
3785
|
-
/**
|
|
3786
|
-
* Type for a selected adapter session row.
|
|
3464
|
+
* When `session.import.completed` is emitted:
|
|
3465
|
+
* 1. Query sessions for children whose `parentExternalSessionId` matches
|
|
3466
|
+
* the just-imported session's `adapterSessionId` and whose `parentSessionId`
|
|
3467
|
+
* is still null (unresolved).
|
|
3468
|
+
* 2. For each unresolved child, update its `parentSessionId` and `rootSessionId`.
|
|
3469
|
+
* 3. Cascade `rootSessionId` down the tree to any already-resolved grandchildren.
|
|
3470
|
+
* @param bus - The bus instance to register handlers on
|
|
3471
|
+
* @param db - The Drizzle database instance for direct queries
|
|
3472
|
+
* @returns Cleanup function to unsubscribe the handler
|
|
3473
|
+
* @example
|
|
3474
|
+
* ```typescript
|
|
3475
|
+
* import { registerParentResolver } from '@makaio/framework/services/session';
|
|
3476
|
+
*
|
|
3477
|
+
* const cleanup = registerParentResolver(bus, db);
|
|
3478
|
+
*
|
|
3479
|
+
* // Later, when shutting down:
|
|
3480
|
+
* cleanup();
|
|
3481
|
+
* ```
|
|
3787
3482
|
*/
|
|
3788
|
-
|
|
3483
|
+
declare function registerParentResolver(bus: IMakaioBus, db: MakaioDatabase): () => void;
|
|
3789
3484
|
//#endregion
|
|
3790
|
-
//#region
|
|
3485
|
+
//#region services/core/src/session/import/compress-lineage-resolver.d.ts
|
|
3791
3486
|
/**
|
|
3792
|
-
*
|
|
3487
|
+
* Re-parents post-compaction subagents from the parent session to the compress child.
|
|
3793
3488
|
*
|
|
3794
|
-
*
|
|
3795
|
-
*/
|
|
3796
|
-
declare const AdapterSessionResponseSchema: z.ZodObject<{
|
|
3797
|
-
adapterSessionId: z.ZodString;
|
|
3798
|
-
adapterName: z.ZodString;
|
|
3799
|
-
parentAdapterSessionId: z.ZodNullable<z.ZodString>;
|
|
3800
|
-
forkPointMessageId: z.ZodNullable<z.ZodString>;
|
|
3801
|
-
sessionId: z.ZodNullable<z.ZodString>;
|
|
3802
|
-
model: z.ZodNullable<z.ZodString>;
|
|
3803
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
3804
|
-
logFilePath: z.ZodNullable<z.ZodString>;
|
|
3805
|
-
discoveredAt: z.ZodNumber;
|
|
3806
|
-
startedAt: z.ZodNumber;
|
|
3807
|
-
status: z.ZodEnum<{
|
|
3808
|
-
imported: "imported";
|
|
3809
|
-
discovered: "discovered";
|
|
3810
|
-
live: "live";
|
|
3811
|
-
tracking: "tracking";
|
|
3812
|
-
}>;
|
|
3813
|
-
kind: z.ZodEnum<{
|
|
3814
|
-
root: "root";
|
|
3815
|
-
fork: "fork";
|
|
3816
|
-
subagent: "subagent";
|
|
3817
|
-
compress: "compress";
|
|
3818
|
-
}>;
|
|
3819
|
-
}, z.core.$strip>;
|
|
3820
|
-
declare const CreateAndLinkMetadataSchema: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
3821
|
-
parentAdapterSessionId: z.ZodNull;
|
|
3822
|
-
forkPointMessageId: z.ZodNull;
|
|
3823
|
-
kind: z.ZodNull;
|
|
3824
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3825
|
-
kind: z.ZodLiteral<"fork">;
|
|
3826
|
-
parentAdapterSessionId: z.ZodString;
|
|
3827
|
-
forkPointMessageId: z.ZodString;
|
|
3828
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3829
|
-
kind: z.ZodLiteral<"subagent">;
|
|
3830
|
-
parentAdapterSessionId: z.ZodString;
|
|
3831
|
-
forkPointMessageId: z.ZodNull;
|
|
3832
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3833
|
-
kind: z.ZodLiteral<"compress">;
|
|
3834
|
-
parentAdapterSessionId: z.ZodString;
|
|
3835
|
-
forkPointMessageId: z.ZodNull;
|
|
3836
|
-
}, z.core.$strip>]>, z.ZodObject<{
|
|
3837
|
-
model: z.ZodNullable<z.ZodString>;
|
|
3838
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
3839
|
-
title: z.ZodNullable<z.ZodString>;
|
|
3840
|
-
}, z.core.$strip>>;
|
|
3841
|
-
/**
|
|
3842
|
-
* Inferred type for an adapter session record.
|
|
3489
|
+
* Handles two scenarios triggered by `session.import.completed`:
|
|
3843
3490
|
*
|
|
3844
|
-
*
|
|
3845
|
-
*
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
type AdapterSessionStatus = z.infer<typeof AdapterSessionStatusSchema>;
|
|
3849
|
-
type CreateAndLinkMetadata = z.infer<typeof CreateAndLinkMetadataSchema>;
|
|
3850
|
-
/**
|
|
3851
|
-
* Adapter session storage namespace.
|
|
3491
|
+
* **Path A — compress child imported first (batch import)**:
|
|
3492
|
+
* When a compress child import completes, subagents spawned after compaction are
|
|
3493
|
+
* already parented to the parent Makaio session (by the parent-resolver).
|
|
3494
|
+
* This path scans the compress child's messages and re-parents matching subagents.
|
|
3852
3495
|
*
|
|
3853
|
-
*
|
|
3854
|
-
*
|
|
3855
|
-
* (e.g., Claude Code) and maintain lineage information for fork detection.
|
|
3856
|
-
*/
|
|
3857
|
-
declare const AdapterSessionStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDefinition<"adapterSession", {
|
|
3858
|
-
/**
|
|
3859
|
-
* Upsert an adapter session record.
|
|
3860
|
-
*
|
|
3861
|
-
* If the record exists, updates mutable fields (parent, forkPoint, model, cwd).
|
|
3862
|
-
* If not, inserts with discoveredAt=Date.now() and status='discovered'.
|
|
3863
|
-
*
|
|
3864
|
-
* Subject: `storage:adapterSession.upsert`
|
|
3865
|
-
* Type: Request (RPC)
|
|
3866
|
-
*/
|
|
3867
|
-
upsert: {
|
|
3868
|
-
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3869
|
-
adapterSessionId: z.ZodString;
|
|
3870
|
-
adapterName: z.ZodString;
|
|
3871
|
-
model: z.ZodNullable<z.ZodString>;
|
|
3872
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
3873
|
-
logFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3874
|
-
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3875
|
-
kind: z.ZodLiteral<"root">;
|
|
3876
|
-
parentAdapterSessionId: z.ZodNull;
|
|
3877
|
-
forkPointMessageId: z.ZodNull;
|
|
3878
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3879
|
-
adapterSessionId: z.ZodString;
|
|
3880
|
-
adapterName: z.ZodString;
|
|
3881
|
-
model: z.ZodNullable<z.ZodString>;
|
|
3882
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
3883
|
-
logFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3884
|
-
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3885
|
-
kind: z.ZodLiteral<"fork">;
|
|
3886
|
-
parentAdapterSessionId: z.ZodString;
|
|
3887
|
-
forkPointMessageId: z.ZodString;
|
|
3888
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3889
|
-
adapterSessionId: z.ZodString;
|
|
3890
|
-
adapterName: z.ZodString;
|
|
3891
|
-
model: z.ZodNullable<z.ZodString>;
|
|
3892
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
3893
|
-
logFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3894
|
-
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3895
|
-
kind: z.ZodLiteral<"subagent">;
|
|
3896
|
-
parentAdapterSessionId: z.ZodString;
|
|
3897
|
-
forkPointMessageId: z.ZodNull;
|
|
3898
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3899
|
-
adapterSessionId: z.ZodString;
|
|
3900
|
-
adapterName: z.ZodString;
|
|
3901
|
-
model: z.ZodNullable<z.ZodString>;
|
|
3902
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
3903
|
-
logFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3904
|
-
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3905
|
-
kind: z.ZodLiteral<"compress">;
|
|
3906
|
-
parentAdapterSessionId: z.ZodString;
|
|
3907
|
-
forkPointMessageId: z.ZodNull;
|
|
3908
|
-
}, z.core.$strip>], "kind">;
|
|
3909
|
-
response: z.ZodObject<{
|
|
3910
|
-
adapterSessionId: z.ZodString;
|
|
3911
|
-
sessionId: z.ZodNullable<z.ZodString>;
|
|
3912
|
-
created: z.ZodBoolean;
|
|
3913
|
-
}, z.core.$strip>;
|
|
3914
|
-
};
|
|
3915
|
-
/**
|
|
3916
|
-
* Get an adapter session by ID.
|
|
3917
|
-
*
|
|
3918
|
-
* Subject: `storage:adapterSession.get`
|
|
3919
|
-
* Type: Request (RPC)
|
|
3920
|
-
*/
|
|
3921
|
-
get: {
|
|
3922
|
-
request: z.ZodObject<{
|
|
3923
|
-
adapterSessionId: z.ZodString;
|
|
3924
|
-
}, z.core.$strip>;
|
|
3925
|
-
response: z.ZodObject<{
|
|
3926
|
-
session: z.ZodNullable<z.ZodObject<{
|
|
3927
|
-
adapterSessionId: z.ZodString;
|
|
3928
|
-
adapterName: z.ZodString;
|
|
3929
|
-
parentAdapterSessionId: z.ZodNullable<z.ZodString>;
|
|
3930
|
-
forkPointMessageId: z.ZodNullable<z.ZodString>;
|
|
3931
|
-
sessionId: z.ZodNullable<z.ZodString>;
|
|
3932
|
-
model: z.ZodNullable<z.ZodString>;
|
|
3933
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
3934
|
-
logFilePath: z.ZodNullable<z.ZodString>;
|
|
3935
|
-
discoveredAt: z.ZodNumber;
|
|
3936
|
-
startedAt: z.ZodNumber;
|
|
3937
|
-
status: z.ZodEnum<{
|
|
3938
|
-
imported: "imported";
|
|
3939
|
-
discovered: "discovered";
|
|
3940
|
-
live: "live";
|
|
3941
|
-
tracking: "tracking";
|
|
3942
|
-
}>;
|
|
3943
|
-
kind: z.ZodEnum<{
|
|
3944
|
-
root: "root";
|
|
3945
|
-
fork: "fork";
|
|
3946
|
-
subagent: "subagent";
|
|
3947
|
-
compress: "compress";
|
|
3948
|
-
}>;
|
|
3949
|
-
}, z.core.$strip>>;
|
|
3950
|
-
}, z.core.$strip>;
|
|
3951
|
-
};
|
|
3952
|
-
/**
|
|
3953
|
-
* Update adapter session status.
|
|
3954
|
-
*
|
|
3955
|
-
* Subject: `storage:adapterSession.updateStatus`
|
|
3956
|
-
* Type: Request (RPC)
|
|
3957
|
-
*/
|
|
3958
|
-
updateStatus: {
|
|
3959
|
-
request: z.ZodObject<{
|
|
3960
|
-
adapterSessionId: z.ZodString;
|
|
3961
|
-
status: z.ZodEnum<{
|
|
3962
|
-
imported: "imported";
|
|
3963
|
-
discovered: "discovered";
|
|
3964
|
-
live: "live";
|
|
3965
|
-
tracking: "tracking";
|
|
3966
|
-
}>;
|
|
3967
|
-
}, z.core.$strip>;
|
|
3968
|
-
response: z.ZodObject<{
|
|
3969
|
-
success: z.ZodBoolean;
|
|
3970
|
-
}, z.core.$strip>;
|
|
3971
|
-
};
|
|
3972
|
-
/**
|
|
3973
|
-
* Link an adapter session to a Makaio session.
|
|
3974
|
-
*
|
|
3975
|
-
* Subject: `storage:adapterSession.linkSession`
|
|
3976
|
-
* Type: Request (RPC)
|
|
3977
|
-
*/
|
|
3978
|
-
linkSession: {
|
|
3979
|
-
request: z.ZodObject<{
|
|
3980
|
-
adapterSessionId: z.ZodString;
|
|
3981
|
-
sessionId: z.ZodString;
|
|
3982
|
-
}, z.core.$strip>;
|
|
3983
|
-
response: z.ZodObject<{
|
|
3984
|
-
success: z.ZodBoolean;
|
|
3985
|
-
}, z.core.$strip>;
|
|
3986
|
-
};
|
|
3987
|
-
/**
|
|
3988
|
-
* Get an adapter session by its source log file path.
|
|
3989
|
-
*
|
|
3990
|
-
* Subject: `storage:adapterSession.getByLogFilePath`
|
|
3991
|
-
* Type: Request (RPC)
|
|
3992
|
-
*/
|
|
3993
|
-
getByLogFilePath: {
|
|
3994
|
-
request: z.ZodObject<{
|
|
3995
|
-
logFilePath: z.ZodString;
|
|
3996
|
-
}, z.core.$strip>;
|
|
3997
|
-
response: z.ZodObject<{
|
|
3998
|
-
session: z.ZodNullable<z.ZodObject<{
|
|
3999
|
-
adapterSessionId: z.ZodString;
|
|
4000
|
-
adapterName: z.ZodString;
|
|
4001
|
-
parentAdapterSessionId: z.ZodNullable<z.ZodString>;
|
|
4002
|
-
forkPointMessageId: z.ZodNullable<z.ZodString>;
|
|
4003
|
-
sessionId: z.ZodNullable<z.ZodString>;
|
|
4004
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4005
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4006
|
-
logFilePath: z.ZodNullable<z.ZodString>;
|
|
4007
|
-
discoveredAt: z.ZodNumber;
|
|
4008
|
-
startedAt: z.ZodNumber;
|
|
4009
|
-
status: z.ZodEnum<{
|
|
4010
|
-
imported: "imported";
|
|
4011
|
-
discovered: "discovered";
|
|
4012
|
-
live: "live";
|
|
4013
|
-
tracking: "tracking";
|
|
4014
|
-
}>;
|
|
4015
|
-
kind: z.ZodEnum<{
|
|
4016
|
-
root: "root";
|
|
4017
|
-
fork: "fork";
|
|
4018
|
-
subagent: "subagent";
|
|
4019
|
-
compress: "compress";
|
|
4020
|
-
}>;
|
|
4021
|
-
}, z.core.$strip>>;
|
|
4022
|
-
}, z.core.$strip>;
|
|
4023
|
-
};
|
|
4024
|
-
/**
|
|
4025
|
-
* List all adapter sessions.
|
|
4026
|
-
*
|
|
4027
|
-
* Returns all adapter session records ordered by startedAt descending.
|
|
4028
|
-
* Used by the entity cache to populate the reactive `adapterSessions` collection.
|
|
4029
|
-
*
|
|
4030
|
-
* Subject: `storage:adapterSession.list`
|
|
4031
|
-
* Type: Request (RPC)
|
|
4032
|
-
*/
|
|
4033
|
-
list: {
|
|
4034
|
-
request: z.ZodObject<{}, z.core.$strip>;
|
|
4035
|
-
response: z.ZodObject<{
|
|
4036
|
-
sessions: z.ZodArray<z.ZodObject<{
|
|
4037
|
-
adapterSessionId: z.ZodString;
|
|
4038
|
-
adapterName: z.ZodString;
|
|
4039
|
-
parentAdapterSessionId: z.ZodNullable<z.ZodString>;
|
|
4040
|
-
forkPointMessageId: z.ZodNullable<z.ZodString>;
|
|
4041
|
-
sessionId: z.ZodNullable<z.ZodString>;
|
|
4042
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4043
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4044
|
-
logFilePath: z.ZodNullable<z.ZodString>;
|
|
4045
|
-
discoveredAt: z.ZodNumber;
|
|
4046
|
-
startedAt: z.ZodNumber;
|
|
4047
|
-
status: z.ZodEnum<{
|
|
4048
|
-
imported: "imported";
|
|
4049
|
-
discovered: "discovered";
|
|
4050
|
-
live: "live";
|
|
4051
|
-
tracking: "tracking";
|
|
4052
|
-
}>;
|
|
4053
|
-
kind: z.ZodEnum<{
|
|
4054
|
-
root: "root";
|
|
4055
|
-
fork: "fork";
|
|
4056
|
-
subagent: "subagent";
|
|
4057
|
-
compress: "compress";
|
|
4058
|
-
}>;
|
|
4059
|
-
}, z.core.$strip>>;
|
|
4060
|
-
}, z.core.$strip>;
|
|
4061
|
-
};
|
|
4062
|
-
/**
|
|
4063
|
-
* Count adapter sessions grouped by status.
|
|
4064
|
-
*
|
|
4065
|
-
* Subject: `storage:adapterSession.countByAdapter`
|
|
4066
|
-
* Type: Request (RPC)
|
|
4067
|
-
*/
|
|
4068
|
-
countByAdapter: {
|
|
4069
|
-
request: z.ZodObject<{
|
|
4070
|
-
adapterName: z.ZodString;
|
|
4071
|
-
}, z.core.$strip>;
|
|
4072
|
-
response: z.ZodObject<{
|
|
4073
|
-
total: z.ZodNumber;
|
|
4074
|
-
imported: z.ZodNumber;
|
|
4075
|
-
discovered: z.ZodNumber;
|
|
4076
|
-
}, z.core.$strip>;
|
|
4077
|
-
};
|
|
4078
|
-
/**
|
|
4079
|
-
* Create and link a Makaio session for an adapter session.
|
|
4080
|
-
*
|
|
4081
|
-
* Consolidates session creation, parent/scope resolution, linking,
|
|
4082
|
-
* and event emission into a single idempotent bus request.
|
|
4083
|
-
* The bus field is injected by the handler — callers must not pass it.
|
|
4084
|
-
*
|
|
4085
|
-
* Subject: `storage:adapterSession.createAndLink`
|
|
4086
|
-
* Type: Request (RPC)
|
|
4087
|
-
*/
|
|
4088
|
-
createAndLink: {
|
|
4089
|
-
request: z.ZodObject<{
|
|
4090
|
-
adapterSessionId: z.ZodString;
|
|
4091
|
-
adapterName: z.ZodString;
|
|
4092
|
-
adapterId: z.ZodString;
|
|
4093
|
-
metadata: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
4094
|
-
parentAdapterSessionId: z.ZodNull;
|
|
4095
|
-
forkPointMessageId: z.ZodNull;
|
|
4096
|
-
kind: z.ZodNull;
|
|
4097
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4098
|
-
kind: z.ZodLiteral<"fork">;
|
|
4099
|
-
parentAdapterSessionId: z.ZodString;
|
|
4100
|
-
forkPointMessageId: z.ZodString;
|
|
4101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4102
|
-
kind: z.ZodLiteral<"subagent">;
|
|
4103
|
-
parentAdapterSessionId: z.ZodString;
|
|
4104
|
-
forkPointMessageId: z.ZodNull;
|
|
4105
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4106
|
-
kind: z.ZodLiteral<"compress">;
|
|
4107
|
-
parentAdapterSessionId: z.ZodString;
|
|
4108
|
-
forkPointMessageId: z.ZodNull;
|
|
4109
|
-
}, z.core.$strip>]>, z.ZodObject<{
|
|
4110
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4111
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4112
|
-
title: z.ZodNullable<z.ZodString>;
|
|
4113
|
-
}, z.core.$strip>>;
|
|
4114
|
-
existingSessionId: z.ZodOptional<z.ZodString>;
|
|
4115
|
-
}, z.core.$strip>;
|
|
4116
|
-
response: z.ZodObject<{
|
|
4117
|
-
sessionId: z.ZodString;
|
|
4118
|
-
created: z.ZodBoolean;
|
|
4119
|
-
}, z.core.$strip>;
|
|
4120
|
-
};
|
|
4121
|
-
}, {
|
|
4122
|
-
drizzle: {
|
|
4123
|
-
adapterSessions: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
|
|
4124
|
-
name: "adapter_sessions";
|
|
4125
|
-
schema: undefined;
|
|
4126
|
-
columns: {
|
|
4127
|
-
adapterSessionId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4128
|
-
name: "adapter_session_id";
|
|
4129
|
-
tableName: "adapter_sessions";
|
|
4130
|
-
dataType: "string";
|
|
4131
|
-
columnType: "SQLiteText";
|
|
4132
|
-
data: string;
|
|
4133
|
-
driverParam: string;
|
|
4134
|
-
notNull: true;
|
|
4135
|
-
hasDefault: false;
|
|
4136
|
-
isPrimaryKey: true;
|
|
4137
|
-
isAutoincrement: false;
|
|
4138
|
-
hasRuntimeDefault: false;
|
|
4139
|
-
enumValues: [string, ...string[]];
|
|
4140
|
-
baseColumn: never;
|
|
4141
|
-
identity: undefined;
|
|
4142
|
-
generated: undefined;
|
|
4143
|
-
}, {}, {
|
|
4144
|
-
length: number | undefined;
|
|
4145
|
-
}>;
|
|
4146
|
-
adapterName: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4147
|
-
name: "adapter_name";
|
|
4148
|
-
tableName: "adapter_sessions";
|
|
4149
|
-
dataType: "string";
|
|
4150
|
-
columnType: "SQLiteText";
|
|
4151
|
-
data: string;
|
|
4152
|
-
driverParam: string;
|
|
4153
|
-
notNull: true;
|
|
4154
|
-
hasDefault: false;
|
|
4155
|
-
isPrimaryKey: false;
|
|
4156
|
-
isAutoincrement: false;
|
|
4157
|
-
hasRuntimeDefault: false;
|
|
4158
|
-
enumValues: [string, ...string[]];
|
|
4159
|
-
baseColumn: never;
|
|
4160
|
-
identity: undefined;
|
|
4161
|
-
generated: undefined;
|
|
4162
|
-
}, {}, {
|
|
4163
|
-
length: number | undefined;
|
|
4164
|
-
}>;
|
|
4165
|
-
parentAdapterSessionId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4166
|
-
name: "parent_adapter_session_id";
|
|
4167
|
-
tableName: "adapter_sessions";
|
|
4168
|
-
dataType: "string";
|
|
4169
|
-
columnType: "SQLiteText";
|
|
4170
|
-
data: string;
|
|
4171
|
-
driverParam: string;
|
|
4172
|
-
notNull: false;
|
|
4173
|
-
hasDefault: false;
|
|
4174
|
-
isPrimaryKey: false;
|
|
4175
|
-
isAutoincrement: false;
|
|
4176
|
-
hasRuntimeDefault: false;
|
|
4177
|
-
enumValues: [string, ...string[]];
|
|
4178
|
-
baseColumn: never;
|
|
4179
|
-
identity: undefined;
|
|
4180
|
-
generated: undefined;
|
|
4181
|
-
}, {}, {
|
|
4182
|
-
length: number | undefined;
|
|
4183
|
-
}>;
|
|
4184
|
-
forkPointMessageId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4185
|
-
name: "fork_point_message_id";
|
|
4186
|
-
tableName: "adapter_sessions";
|
|
4187
|
-
dataType: "string";
|
|
4188
|
-
columnType: "SQLiteText";
|
|
4189
|
-
data: string;
|
|
4190
|
-
driverParam: string;
|
|
4191
|
-
notNull: false;
|
|
4192
|
-
hasDefault: false;
|
|
4193
|
-
isPrimaryKey: false;
|
|
4194
|
-
isAutoincrement: false;
|
|
4195
|
-
hasRuntimeDefault: false;
|
|
4196
|
-
enumValues: [string, ...string[]];
|
|
4197
|
-
baseColumn: never;
|
|
4198
|
-
identity: undefined;
|
|
4199
|
-
generated: undefined;
|
|
4200
|
-
}, {}, {
|
|
4201
|
-
length: number | undefined;
|
|
4202
|
-
}>;
|
|
4203
|
-
sessionId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4204
|
-
name: "session_id";
|
|
4205
|
-
tableName: "adapter_sessions";
|
|
4206
|
-
dataType: "string";
|
|
4207
|
-
columnType: "SQLiteText";
|
|
4208
|
-
data: string;
|
|
4209
|
-
driverParam: string;
|
|
4210
|
-
notNull: false;
|
|
4211
|
-
hasDefault: false;
|
|
4212
|
-
isPrimaryKey: false;
|
|
4213
|
-
isAutoincrement: false;
|
|
4214
|
-
hasRuntimeDefault: false;
|
|
4215
|
-
enumValues: [string, ...string[]];
|
|
4216
|
-
baseColumn: never;
|
|
4217
|
-
identity: undefined;
|
|
4218
|
-
generated: undefined;
|
|
4219
|
-
}, {}, {
|
|
4220
|
-
length: number | undefined;
|
|
4221
|
-
}>;
|
|
4222
|
-
model: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4223
|
-
name: "model";
|
|
4224
|
-
tableName: "adapter_sessions";
|
|
4225
|
-
dataType: "string";
|
|
4226
|
-
columnType: "SQLiteText";
|
|
4227
|
-
data: string;
|
|
4228
|
-
driverParam: string;
|
|
4229
|
-
notNull: false;
|
|
4230
|
-
hasDefault: false;
|
|
4231
|
-
isPrimaryKey: false;
|
|
4232
|
-
isAutoincrement: false;
|
|
4233
|
-
hasRuntimeDefault: false;
|
|
4234
|
-
enumValues: [string, ...string[]];
|
|
4235
|
-
baseColumn: never;
|
|
4236
|
-
identity: undefined;
|
|
4237
|
-
generated: undefined;
|
|
4238
|
-
}, {}, {
|
|
4239
|
-
length: number | undefined;
|
|
4240
|
-
}>;
|
|
4241
|
-
cwd: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4242
|
-
name: "cwd";
|
|
4243
|
-
tableName: "adapter_sessions";
|
|
4244
|
-
dataType: "string";
|
|
4245
|
-
columnType: "SQLiteText";
|
|
4246
|
-
data: string;
|
|
4247
|
-
driverParam: string;
|
|
4248
|
-
notNull: false;
|
|
4249
|
-
hasDefault: false;
|
|
4250
|
-
isPrimaryKey: false;
|
|
4251
|
-
isAutoincrement: false;
|
|
4252
|
-
hasRuntimeDefault: false;
|
|
4253
|
-
enumValues: [string, ...string[]];
|
|
4254
|
-
baseColumn: never;
|
|
4255
|
-
identity: undefined;
|
|
4256
|
-
generated: undefined;
|
|
4257
|
-
}, {}, {
|
|
4258
|
-
length: number | undefined;
|
|
4259
|
-
}>;
|
|
4260
|
-
logFilePath: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4261
|
-
name: "log_file_path";
|
|
4262
|
-
tableName: "adapter_sessions";
|
|
4263
|
-
dataType: "string";
|
|
4264
|
-
columnType: "SQLiteText";
|
|
4265
|
-
data: string;
|
|
4266
|
-
driverParam: string;
|
|
4267
|
-
notNull: false;
|
|
4268
|
-
hasDefault: false;
|
|
4269
|
-
isPrimaryKey: false;
|
|
4270
|
-
isAutoincrement: false;
|
|
4271
|
-
hasRuntimeDefault: false;
|
|
4272
|
-
enumValues: [string, ...string[]];
|
|
4273
|
-
baseColumn: never;
|
|
4274
|
-
identity: undefined;
|
|
4275
|
-
generated: undefined;
|
|
4276
|
-
}, {}, {
|
|
4277
|
-
length: number | undefined;
|
|
4278
|
-
}>;
|
|
4279
|
-
kind: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4280
|
-
name: "kind";
|
|
4281
|
-
tableName: "adapter_sessions";
|
|
4282
|
-
dataType: "string";
|
|
4283
|
-
columnType: "SQLiteText";
|
|
4284
|
-
data: "root" | "fork" | "subagent" | "compress";
|
|
4285
|
-
driverParam: string;
|
|
4286
|
-
notNull: true;
|
|
4287
|
-
hasDefault: true;
|
|
4288
|
-
isPrimaryKey: false;
|
|
4289
|
-
isAutoincrement: false;
|
|
4290
|
-
hasRuntimeDefault: false;
|
|
4291
|
-
enumValues: ["root", "fork", "subagent", "compress"];
|
|
4292
|
-
baseColumn: never;
|
|
4293
|
-
identity: undefined;
|
|
4294
|
-
generated: undefined;
|
|
4295
|
-
}, {}, {
|
|
4296
|
-
length: number | undefined;
|
|
4297
|
-
}>;
|
|
4298
|
-
discoveredAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4299
|
-
name: "discovered_at";
|
|
4300
|
-
tableName: "adapter_sessions";
|
|
4301
|
-
dataType: "number";
|
|
4302
|
-
columnType: "SQLiteInteger";
|
|
4303
|
-
data: number;
|
|
4304
|
-
driverParam: number;
|
|
4305
|
-
notNull: true;
|
|
4306
|
-
hasDefault: false;
|
|
4307
|
-
isPrimaryKey: false;
|
|
4308
|
-
isAutoincrement: false;
|
|
4309
|
-
hasRuntimeDefault: false;
|
|
4310
|
-
enumValues: undefined;
|
|
4311
|
-
baseColumn: never;
|
|
4312
|
-
identity: undefined;
|
|
4313
|
-
generated: undefined;
|
|
4314
|
-
}, {}, {}>;
|
|
4315
|
-
startedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4316
|
-
name: "started_at";
|
|
4317
|
-
tableName: "adapter_sessions";
|
|
4318
|
-
dataType: "number";
|
|
4319
|
-
columnType: "SQLiteInteger";
|
|
4320
|
-
data: number;
|
|
4321
|
-
driverParam: number;
|
|
4322
|
-
notNull: true;
|
|
4323
|
-
hasDefault: false;
|
|
4324
|
-
isPrimaryKey: false;
|
|
4325
|
-
isAutoincrement: false;
|
|
4326
|
-
hasRuntimeDefault: false;
|
|
4327
|
-
enumValues: undefined;
|
|
4328
|
-
baseColumn: never;
|
|
4329
|
-
identity: undefined;
|
|
4330
|
-
generated: undefined;
|
|
4331
|
-
}, {}, {}>;
|
|
4332
|
-
status: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4333
|
-
name: "status";
|
|
4334
|
-
tableName: "adapter_sessions";
|
|
4335
|
-
dataType: "string";
|
|
4336
|
-
columnType: "SQLiteText";
|
|
4337
|
-
data: "imported" | "discovered" | "live" | "tracking";
|
|
4338
|
-
driverParam: string;
|
|
4339
|
-
notNull: true;
|
|
4340
|
-
hasDefault: true;
|
|
4341
|
-
isPrimaryKey: false;
|
|
4342
|
-
isAutoincrement: false;
|
|
4343
|
-
hasRuntimeDefault: false;
|
|
4344
|
-
enumValues: ["discovered", "imported", "live", "tracking"];
|
|
4345
|
-
baseColumn: never;
|
|
4346
|
-
identity: undefined;
|
|
4347
|
-
generated: undefined;
|
|
4348
|
-
}, {}, {
|
|
4349
|
-
length: number | undefined;
|
|
4350
|
-
}>;
|
|
4351
|
-
};
|
|
4352
|
-
dialect: "sqlite";
|
|
4353
|
-
}>;
|
|
4354
|
-
};
|
|
4355
|
-
}>;
|
|
4356
|
-
/**
|
|
4357
|
-
* Typed subjects for adapter session storage operations.
|
|
4358
|
-
*/
|
|
4359
|
-
declare const AdapterSessionStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"storage:adapterSession", {
|
|
4360
|
-
/**
|
|
4361
|
-
* Upsert an adapter session record.
|
|
4362
|
-
*
|
|
4363
|
-
* If the record exists, updates mutable fields (parent, forkPoint, model, cwd).
|
|
4364
|
-
* If not, inserts with discoveredAt=Date.now() and status='discovered'.
|
|
4365
|
-
*
|
|
4366
|
-
* Subject: `storage:adapterSession.upsert`
|
|
4367
|
-
* Type: Request (RPC)
|
|
4368
|
-
*/
|
|
4369
|
-
upsert: {
|
|
4370
|
-
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4371
|
-
adapterSessionId: z.ZodString;
|
|
4372
|
-
adapterName: z.ZodString;
|
|
4373
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4374
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4375
|
-
logFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4376
|
-
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
4377
|
-
kind: z.ZodLiteral<"root">;
|
|
4378
|
-
parentAdapterSessionId: z.ZodNull;
|
|
4379
|
-
forkPointMessageId: z.ZodNull;
|
|
4380
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4381
|
-
adapterSessionId: z.ZodString;
|
|
4382
|
-
adapterName: z.ZodString;
|
|
4383
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4384
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4385
|
-
logFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4386
|
-
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
4387
|
-
kind: z.ZodLiteral<"fork">;
|
|
4388
|
-
parentAdapterSessionId: z.ZodString;
|
|
4389
|
-
forkPointMessageId: z.ZodString;
|
|
4390
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4391
|
-
adapterSessionId: z.ZodString;
|
|
4392
|
-
adapterName: z.ZodString;
|
|
4393
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4394
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4395
|
-
logFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4396
|
-
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
4397
|
-
kind: z.ZodLiteral<"subagent">;
|
|
4398
|
-
parentAdapterSessionId: z.ZodString;
|
|
4399
|
-
forkPointMessageId: z.ZodNull;
|
|
4400
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4401
|
-
adapterSessionId: z.ZodString;
|
|
4402
|
-
adapterName: z.ZodString;
|
|
4403
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4404
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4405
|
-
logFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4406
|
-
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
4407
|
-
kind: z.ZodLiteral<"compress">;
|
|
4408
|
-
parentAdapterSessionId: z.ZodString;
|
|
4409
|
-
forkPointMessageId: z.ZodNull;
|
|
4410
|
-
}, z.core.$strip>], "kind">;
|
|
4411
|
-
response: z.ZodObject<{
|
|
4412
|
-
adapterSessionId: z.ZodString;
|
|
4413
|
-
sessionId: z.ZodNullable<z.ZodString>;
|
|
4414
|
-
created: z.ZodBoolean;
|
|
4415
|
-
}, z.core.$strip>;
|
|
4416
|
-
};
|
|
4417
|
-
/**
|
|
4418
|
-
* Get an adapter session by ID.
|
|
4419
|
-
*
|
|
4420
|
-
* Subject: `storage:adapterSession.get`
|
|
4421
|
-
* Type: Request (RPC)
|
|
4422
|
-
*/
|
|
4423
|
-
get: {
|
|
4424
|
-
request: z.ZodObject<{
|
|
4425
|
-
adapterSessionId: z.ZodString;
|
|
4426
|
-
}, z.core.$strip>;
|
|
4427
|
-
response: z.ZodObject<{
|
|
4428
|
-
session: z.ZodNullable<z.ZodObject<{
|
|
4429
|
-
adapterSessionId: z.ZodString;
|
|
4430
|
-
adapterName: z.ZodString;
|
|
4431
|
-
parentAdapterSessionId: z.ZodNullable<z.ZodString>;
|
|
4432
|
-
forkPointMessageId: z.ZodNullable<z.ZodString>;
|
|
4433
|
-
sessionId: z.ZodNullable<z.ZodString>;
|
|
4434
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4435
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4436
|
-
logFilePath: z.ZodNullable<z.ZodString>;
|
|
4437
|
-
discoveredAt: z.ZodNumber;
|
|
4438
|
-
startedAt: z.ZodNumber;
|
|
4439
|
-
status: z.ZodEnum<{
|
|
4440
|
-
imported: "imported";
|
|
4441
|
-
discovered: "discovered";
|
|
4442
|
-
live: "live";
|
|
4443
|
-
tracking: "tracking";
|
|
4444
|
-
}>;
|
|
4445
|
-
kind: z.ZodEnum<{
|
|
4446
|
-
root: "root";
|
|
4447
|
-
fork: "fork";
|
|
4448
|
-
subagent: "subagent";
|
|
4449
|
-
compress: "compress";
|
|
4450
|
-
}>;
|
|
4451
|
-
}, z.core.$strip>>;
|
|
4452
|
-
}, z.core.$strip>;
|
|
4453
|
-
};
|
|
4454
|
-
/**
|
|
4455
|
-
* Update adapter session status.
|
|
4456
|
-
*
|
|
4457
|
-
* Subject: `storage:adapterSession.updateStatus`
|
|
4458
|
-
* Type: Request (RPC)
|
|
4459
|
-
*/
|
|
4460
|
-
updateStatus: {
|
|
4461
|
-
request: z.ZodObject<{
|
|
4462
|
-
adapterSessionId: z.ZodString;
|
|
4463
|
-
status: z.ZodEnum<{
|
|
4464
|
-
imported: "imported";
|
|
4465
|
-
discovered: "discovered";
|
|
4466
|
-
live: "live";
|
|
4467
|
-
tracking: "tracking";
|
|
4468
|
-
}>;
|
|
4469
|
-
}, z.core.$strip>;
|
|
4470
|
-
response: z.ZodObject<{
|
|
4471
|
-
success: z.ZodBoolean;
|
|
4472
|
-
}, z.core.$strip>;
|
|
4473
|
-
};
|
|
4474
|
-
/**
|
|
4475
|
-
* Link an adapter session to a Makaio session.
|
|
4476
|
-
*
|
|
4477
|
-
* Subject: `storage:adapterSession.linkSession`
|
|
4478
|
-
* Type: Request (RPC)
|
|
4479
|
-
*/
|
|
4480
|
-
linkSession: {
|
|
4481
|
-
request: z.ZodObject<{
|
|
4482
|
-
adapterSessionId: z.ZodString;
|
|
4483
|
-
sessionId: z.ZodString;
|
|
4484
|
-
}, z.core.$strip>;
|
|
4485
|
-
response: z.ZodObject<{
|
|
4486
|
-
success: z.ZodBoolean;
|
|
4487
|
-
}, z.core.$strip>;
|
|
4488
|
-
};
|
|
4489
|
-
/**
|
|
4490
|
-
* Get an adapter session by its source log file path.
|
|
4491
|
-
*
|
|
4492
|
-
* Subject: `storage:adapterSession.getByLogFilePath`
|
|
4493
|
-
* Type: Request (RPC)
|
|
4494
|
-
*/
|
|
4495
|
-
getByLogFilePath: {
|
|
4496
|
-
request: z.ZodObject<{
|
|
4497
|
-
logFilePath: z.ZodString;
|
|
4498
|
-
}, z.core.$strip>;
|
|
4499
|
-
response: z.ZodObject<{
|
|
4500
|
-
session: z.ZodNullable<z.ZodObject<{
|
|
4501
|
-
adapterSessionId: z.ZodString;
|
|
4502
|
-
adapterName: z.ZodString;
|
|
4503
|
-
parentAdapterSessionId: z.ZodNullable<z.ZodString>;
|
|
4504
|
-
forkPointMessageId: z.ZodNullable<z.ZodString>;
|
|
4505
|
-
sessionId: z.ZodNullable<z.ZodString>;
|
|
4506
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4507
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4508
|
-
logFilePath: z.ZodNullable<z.ZodString>;
|
|
4509
|
-
discoveredAt: z.ZodNumber;
|
|
4510
|
-
startedAt: z.ZodNumber;
|
|
4511
|
-
status: z.ZodEnum<{
|
|
4512
|
-
imported: "imported";
|
|
4513
|
-
discovered: "discovered";
|
|
4514
|
-
live: "live";
|
|
4515
|
-
tracking: "tracking";
|
|
4516
|
-
}>;
|
|
4517
|
-
kind: z.ZodEnum<{
|
|
4518
|
-
root: "root";
|
|
4519
|
-
fork: "fork";
|
|
4520
|
-
subagent: "subagent";
|
|
4521
|
-
compress: "compress";
|
|
4522
|
-
}>;
|
|
4523
|
-
}, z.core.$strip>>;
|
|
4524
|
-
}, z.core.$strip>;
|
|
4525
|
-
};
|
|
4526
|
-
/**
|
|
4527
|
-
* List all adapter sessions.
|
|
4528
|
-
*
|
|
4529
|
-
* Returns all adapter session records ordered by startedAt descending.
|
|
4530
|
-
* Used by the entity cache to populate the reactive `adapterSessions` collection.
|
|
4531
|
-
*
|
|
4532
|
-
* Subject: `storage:adapterSession.list`
|
|
4533
|
-
* Type: Request (RPC)
|
|
4534
|
-
*/
|
|
4535
|
-
list: {
|
|
4536
|
-
request: z.ZodObject<{}, z.core.$strip>;
|
|
4537
|
-
response: z.ZodObject<{
|
|
4538
|
-
sessions: z.ZodArray<z.ZodObject<{
|
|
4539
|
-
adapterSessionId: z.ZodString;
|
|
4540
|
-
adapterName: z.ZodString;
|
|
4541
|
-
parentAdapterSessionId: z.ZodNullable<z.ZodString>;
|
|
4542
|
-
forkPointMessageId: z.ZodNullable<z.ZodString>;
|
|
4543
|
-
sessionId: z.ZodNullable<z.ZodString>;
|
|
4544
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4545
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4546
|
-
logFilePath: z.ZodNullable<z.ZodString>;
|
|
4547
|
-
discoveredAt: z.ZodNumber;
|
|
4548
|
-
startedAt: z.ZodNumber;
|
|
4549
|
-
status: z.ZodEnum<{
|
|
4550
|
-
imported: "imported";
|
|
4551
|
-
discovered: "discovered";
|
|
4552
|
-
live: "live";
|
|
4553
|
-
tracking: "tracking";
|
|
4554
|
-
}>;
|
|
4555
|
-
kind: z.ZodEnum<{
|
|
4556
|
-
root: "root";
|
|
4557
|
-
fork: "fork";
|
|
4558
|
-
subagent: "subagent";
|
|
4559
|
-
compress: "compress";
|
|
4560
|
-
}>;
|
|
4561
|
-
}, z.core.$strip>>;
|
|
4562
|
-
}, z.core.$strip>;
|
|
4563
|
-
};
|
|
4564
|
-
/**
|
|
4565
|
-
* Count adapter sessions grouped by status.
|
|
4566
|
-
*
|
|
4567
|
-
* Subject: `storage:adapterSession.countByAdapter`
|
|
4568
|
-
* Type: Request (RPC)
|
|
4569
|
-
*/
|
|
4570
|
-
countByAdapter: {
|
|
4571
|
-
request: z.ZodObject<{
|
|
4572
|
-
adapterName: z.ZodString;
|
|
4573
|
-
}, z.core.$strip>;
|
|
4574
|
-
response: z.ZodObject<{
|
|
4575
|
-
total: z.ZodNumber;
|
|
4576
|
-
imported: z.ZodNumber;
|
|
4577
|
-
discovered: z.ZodNumber;
|
|
4578
|
-
}, z.core.$strip>;
|
|
4579
|
-
};
|
|
4580
|
-
/**
|
|
4581
|
-
* Create and link a Makaio session for an adapter session.
|
|
4582
|
-
*
|
|
4583
|
-
* Consolidates session creation, parent/scope resolution, linking,
|
|
4584
|
-
* and event emission into a single idempotent bus request.
|
|
4585
|
-
* The bus field is injected by the handler — callers must not pass it.
|
|
4586
|
-
*
|
|
4587
|
-
* Subject: `storage:adapterSession.createAndLink`
|
|
4588
|
-
* Type: Request (RPC)
|
|
4589
|
-
*/
|
|
4590
|
-
createAndLink: {
|
|
4591
|
-
request: z.ZodObject<{
|
|
4592
|
-
adapterSessionId: z.ZodString;
|
|
4593
|
-
adapterName: z.ZodString;
|
|
4594
|
-
adapterId: z.ZodString;
|
|
4595
|
-
metadata: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
4596
|
-
parentAdapterSessionId: z.ZodNull;
|
|
4597
|
-
forkPointMessageId: z.ZodNull;
|
|
4598
|
-
kind: z.ZodNull;
|
|
4599
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4600
|
-
kind: z.ZodLiteral<"fork">;
|
|
4601
|
-
parentAdapterSessionId: z.ZodString;
|
|
4602
|
-
forkPointMessageId: z.ZodString;
|
|
4603
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4604
|
-
kind: z.ZodLiteral<"subagent">;
|
|
4605
|
-
parentAdapterSessionId: z.ZodString;
|
|
4606
|
-
forkPointMessageId: z.ZodNull;
|
|
4607
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4608
|
-
kind: z.ZodLiteral<"compress">;
|
|
4609
|
-
parentAdapterSessionId: z.ZodString;
|
|
4610
|
-
forkPointMessageId: z.ZodNull;
|
|
4611
|
-
}, z.core.$strip>]>, z.ZodObject<{
|
|
4612
|
-
model: z.ZodNullable<z.ZodString>;
|
|
4613
|
-
cwd: z.ZodNullable<z.ZodString>;
|
|
4614
|
-
title: z.ZodNullable<z.ZodString>;
|
|
4615
|
-
}, z.core.$strip>>;
|
|
4616
|
-
existingSessionId: z.ZodOptional<z.ZodString>;
|
|
4617
|
-
}, z.core.$strip>;
|
|
4618
|
-
response: z.ZodObject<{
|
|
4619
|
-
sessionId: z.ZodString;
|
|
4620
|
-
created: z.ZodBoolean;
|
|
4621
|
-
}, z.core.$strip>;
|
|
4622
|
-
};
|
|
4623
|
-
}>, "storage:adapterSession">;
|
|
4624
|
-
//#endregion
|
|
4625
|
-
//#region packages/services/core/src/session/adapter-sessions/drizzle-handler.d.ts
|
|
4626
|
-
/**
|
|
4627
|
-
* Register Drizzle-based adapter session storage handlers.
|
|
4628
|
-
*
|
|
4629
|
-
* Manages adapter session persistence in SQLite/libSQL via Drizzle ORM.
|
|
4630
|
-
* Adapter sessions track sessions discovered from external adapter logs
|
|
4631
|
-
* and maintain lineage information for fork detection.
|
|
4632
|
-
* @param bus - The bus instance to register handlers on
|
|
4633
|
-
* @param db - The Drizzle database instance
|
|
4634
|
-
* @param _ctx - Extension context (unused; reserved for future use)
|
|
4635
|
-
* @returns Cleanup function to unsubscribe all handlers
|
|
4636
|
-
*/
|
|
4637
|
-
declare function registerDrizzleAdapterSessionStorage(bus: IMakaioBus, db: MakaioDatabase, _ctx: ExtensionContext): () => void;
|
|
4638
|
-
//#endregion
|
|
4639
|
-
//#region packages/services/core/src/session/adapter-sessions/handlers.d.ts
|
|
4640
|
-
/**
|
|
4641
|
-
* Parameters for the unified session creation and linking helper.
|
|
4642
|
-
*/
|
|
4643
|
-
interface CreateAndLinkParams {
|
|
4644
|
-
/** Bus instance for storage writes and lifecycle emissions. */
|
|
4645
|
-
bus: IMakaioBus;
|
|
4646
|
-
/** Adapter-specific session identifier. */
|
|
4647
|
-
adapterSessionId: string;
|
|
4648
|
-
/** Adapter type name (e.g., 'claude-code'). */
|
|
4649
|
-
adapterName: string;
|
|
4650
|
-
/** Adapter instance ID (machine/installation specific). */
|
|
4651
|
-
adapterId: string;
|
|
4652
|
-
/** Session metadata from the adapter. */
|
|
4653
|
-
metadata: CreateAndLinkMetadata;
|
|
4654
|
-
/** Existing Makaio sessionId to reuse (e.g., from discovery stub). */
|
|
4655
|
-
existingSessionId?: string;
|
|
4656
|
-
}
|
|
4657
|
-
/**
|
|
4658
|
-
* Result returned from {@link createAndLinkImportedSession}.
|
|
4659
|
-
*/
|
|
4660
|
-
interface CreateAndLinkResult {
|
|
4661
|
-
/** The Makaio session ID (either newly created or pre-existing). */
|
|
4662
|
-
sessionId: string;
|
|
4663
|
-
/** Whether a new session record was created during this call. */
|
|
4664
|
-
created: boolean;
|
|
4665
|
-
}
|
|
4666
|
-
/**
|
|
4667
|
-
* Unified helper that creates and links a Makaio session for an adapter session.
|
|
4668
|
-
*
|
|
4669
|
-
* Consolidates both the discovery path (`registerSessionDiscoveredHandler`) and the
|
|
4670
|
-
* import path into a single authoritative flow:
|
|
4671
|
-
*
|
|
4672
|
-
* 1. Early-exit if the adapter session is already linked (idempotent).
|
|
4673
|
-
* 2. Eagerly resolve `parentSessionId`/`rootSessionId` via `resolveLineage`.
|
|
4674
|
-
* 3. Create the Makaio session record via `SessionStorageSubjects.set` with `ifAbsent`.
|
|
4675
|
-
* 4. Link, emit `SessionSubjects.created`, and clean up on failure via `linkAndEmit`.
|
|
4676
|
-
* @param params - Parameters for the unified session creation/linking flow.
|
|
4677
|
-
* @returns The session ID and whether a new record was created.
|
|
4678
|
-
*/
|
|
4679
|
-
declare function createAndLinkImportedSession(params: CreateAndLinkParams): Promise<CreateAndLinkResult>;
|
|
4680
|
-
/**
|
|
4681
|
-
* Register a bus handler for the `createAndLink` subject.
|
|
4682
|
-
*
|
|
4683
|
-
* Exposes {@link createAndLinkImportedSession} as a bus RPC so cross-package
|
|
4684
|
-
* callers (e.g., `@makaio/services-log-import`) can invoke it without a
|
|
4685
|
-
* direct import dependency on `@makaio/services-core/session`.
|
|
4686
|
-
* @param bus - The bus instance to register the handler on
|
|
4687
|
-
* @returns Cleanup function to unsubscribe the handler
|
|
4688
|
-
*/
|
|
4689
|
-
declare function registerCreateAndLinkHandler(bus: IMakaioBus): () => void;
|
|
4690
|
-
/**
|
|
4691
|
-
* Register handler for adapter.session.discovered events.
|
|
4692
|
-
*
|
|
4693
|
-
* When a session is discovered from log import:
|
|
4694
|
-
* 1. Upsert adapter_sessions record with lineage info and log file path
|
|
4695
|
-
* 2. Create and link a Makaio session with all available metadata via the unified helper
|
|
4696
|
-
* @param bus - The bus instance to register handlers on
|
|
4697
|
-
* @returns Cleanup function to unsubscribe the handler
|
|
4698
|
-
*/
|
|
4699
|
-
declare function registerSessionDiscoveredHandler(bus: IMakaioBus): () => void;
|
|
4700
|
-
//#endregion
|
|
4701
|
-
//#region packages/services/core/src/session/adapter-sessions/parent-resolver.d.ts
|
|
4702
|
-
/**
|
|
4703
|
-
* Register handler to resolve parent relationships when sessions are linked.
|
|
4704
|
-
*
|
|
4705
|
-
* When `adapter.session.linked` is emitted:
|
|
4706
|
-
* 1. Query adapter_sessions for children referencing this adapterSessionId as parent
|
|
4707
|
-
* 2. For each child with a linked sessionId, update the child's Makaio session parentSessionId
|
|
4708
|
-
* @param bus - The bus instance to register handlers on
|
|
4709
|
-
* @param db - The Drizzle database instance for direct queries
|
|
4710
|
-
* @returns Cleanup function to unsubscribe the handler
|
|
4711
|
-
* @example
|
|
4712
|
-
* ```typescript
|
|
4713
|
-
* import { registerParentResolver } from '@makaio/framework/services/session';
|
|
4714
|
-
*
|
|
4715
|
-
* const cleanup = registerParentResolver(bus, db);
|
|
4716
|
-
*
|
|
4717
|
-
* // Later, when shutting down:
|
|
4718
|
-
* cleanup();
|
|
4719
|
-
* ```
|
|
4720
|
-
*/
|
|
4721
|
-
declare function registerParentResolver(bus: IMakaioBus, db: MakaioDatabase): () => void;
|
|
4722
|
-
//#endregion
|
|
4723
|
-
//#region packages/services/core/src/session/adapter-sessions/compress-lineage-resolver.d.ts
|
|
4724
|
-
/**
|
|
4725
|
-
* Re-parents post-compaction subagents from the parent session to the compress child.
|
|
4726
|
-
*
|
|
4727
|
-
* Handles two scenarios triggered by `adapter.session.linked`:
|
|
4728
|
-
*
|
|
4729
|
-
* **Path A — compress child linked first (batch import)**:
|
|
4730
|
-
* When a compress child is linked, subagents spawned after compaction are
|
|
4731
|
-
* already parented to the parent Makaio session (by the parent-resolver).
|
|
4732
|
-
* This path scans the compress child's messages and re-parents matching subagents.
|
|
4733
|
-
*
|
|
4734
|
-
* **Path B — subagent linked after compress child (incremental / separate files)**:
|
|
4735
|
-
* When a subagent is linked and its parent has compress children, the compress
|
|
3496
|
+
* **Path B — subagent imported after compress child (incremental / separate files)**:
|
|
3497
|
+
* When a subagent import completes and its parent has compress children, the compress
|
|
4736
3498
|
* children and their messages already exist. This path scans those compress
|
|
4737
3499
|
* children for the subagent's spawning tool_call and re-parents when found.
|
|
4738
3500
|
*
|
|
4739
3501
|
* Must be registered BEFORE registerSpawningToolCallResolver so it runs
|
|
4740
|
-
* first on `
|
|
3502
|
+
* first on `session.import.completed` (bus handlers fire in registration order).
|
|
4741
3503
|
* @param bus - The bus instance to register handlers on
|
|
4742
3504
|
* @returns Cleanup function to unsubscribe the handler
|
|
4743
3505
|
* @example
|
|
@@ -4752,12 +3514,12 @@ declare function registerParentResolver(bus: IMakaioBus, db: MakaioDatabase): ()
|
|
|
4752
3514
|
*/
|
|
4753
3515
|
declare function registerCompressLineageResolver(bus: IMakaioBus): () => void;
|
|
4754
3516
|
//#endregion
|
|
4755
|
-
//#region
|
|
3517
|
+
//#region services/core/src/session/import/spawning-tool-call-resolver.d.ts
|
|
4756
3518
|
/**
|
|
4757
3519
|
* Register handler to backfill `spawningToolCallId` for imported subagent sessions.
|
|
4758
3520
|
*
|
|
4759
|
-
* When `
|
|
4760
|
-
* 1. Fetch children of the newly
|
|
3521
|
+
* When `session.import.completed` is emitted:
|
|
3522
|
+
* 1. Fetch children of the newly imported parent session.
|
|
4761
3523
|
* 2. Filter to subagent children with no `spawningToolCallId`.
|
|
4762
3524
|
* 3. Fetch parent session messages and scan for Agent/spawn_subagent tool_call blocks.
|
|
4763
3525
|
* 4. Match each unmatched child to a tool_call by tool_output content reference
|
|
@@ -4777,7 +3539,32 @@ declare function registerCompressLineageResolver(bus: IMakaioBus): () => void;
|
|
|
4777
3539
|
*/
|
|
4778
3540
|
declare function registerSpawningToolCallResolver(bus: IMakaioBus): () => void;
|
|
4779
3541
|
//#endregion
|
|
4780
|
-
//#region
|
|
3542
|
+
//#region services/core/src/session/import/session-discovered-handler.d.ts
|
|
3543
|
+
/**
|
|
3544
|
+
* Register a bus handler for `adapter.session.discovered` events.
|
|
3545
|
+
*
|
|
3546
|
+
* When a session is discovered from a log watcher:
|
|
3547
|
+
* 1. Validates the payload with `SessionDiscoveredSchema` (fail-fast on schema violations).
|
|
3548
|
+
* 2. Calls `storage:session.importUpsert` to create or enrich the session record atomically.
|
|
3549
|
+
* - On first discovery: inserts a stub session with `importStatus='discovered'` and
|
|
3550
|
+
* eagerly resolves `parentSessionId` / `rootSessionId` when the parent is already imported.
|
|
3551
|
+
* - On re-discovery: COALESCE-merges enrichment fields (title, cwd, logFilePath)
|
|
3552
|
+
* so subsequent scans can supply previously-unknown values without overwriting existing data.
|
|
3553
|
+
* @param bus - The bus instance to register the handler on
|
|
3554
|
+
* @returns Cleanup function to unsubscribe the handler
|
|
3555
|
+
* @example
|
|
3556
|
+
* ```typescript
|
|
3557
|
+
* import { registerSessionDiscoveredHandler } from '@makaio/framework/services/session';
|
|
3558
|
+
*
|
|
3559
|
+
* const cleanup = registerSessionDiscoveredHandler(bus);
|
|
3560
|
+
*
|
|
3561
|
+
* // Later, when shutting down:
|
|
3562
|
+
* cleanup();
|
|
3563
|
+
* ```
|
|
3564
|
+
*/
|
|
3565
|
+
declare function registerSessionDiscoveredHandler(bus: IMakaioBus): () => void;
|
|
3566
|
+
//#endregion
|
|
3567
|
+
//#region services/core/src/session/import/lineage-utils.d.ts
|
|
4781
3568
|
/**
|
|
4782
3569
|
* Maps adapter-level session lineage kind to Makaio session branch kind.
|
|
4783
3570
|
* Root sessions have no branch kind (undefined).
|
|
@@ -4785,8 +3572,18 @@ declare function registerSpawningToolCallResolver(bus: IMakaioBus): () => void;
|
|
|
4785
3572
|
* @returns The corresponding BranchKind, or undefined for root sessions
|
|
4786
3573
|
*/
|
|
4787
3574
|
declare function kindToBranchKind(kind: SessionLineageKind): BranchKind | undefined;
|
|
3575
|
+
/**
|
|
3576
|
+
* Convert lineage metadata to a canonical `SessionLineage` discriminated union.
|
|
3577
|
+
* @param metadata - Object with kind, parentAdapterSessionId, and forkPointMessageId
|
|
3578
|
+
* @returns Canonical lineage object matching session contracts
|
|
3579
|
+
*/
|
|
3580
|
+
declare function toSessionLineage(metadata: {
|
|
3581
|
+
kind: SessionLineageKind;
|
|
3582
|
+
parentAdapterSessionId: string | null;
|
|
3583
|
+
forkPointMessageId: string | null;
|
|
3584
|
+
}): SessionLineage;
|
|
4788
3585
|
//#endregion
|
|
4789
|
-
//#region
|
|
3586
|
+
//#region services/core/src/session/context/types.d.ts
|
|
4790
3587
|
/**
|
|
4791
3588
|
* Options for building session context.
|
|
4792
3589
|
*/
|
|
@@ -4812,7 +3609,7 @@ interface ContextAssemblyResult {
|
|
|
4812
3609
|
incomplete: boolean;
|
|
4813
3610
|
}
|
|
4814
3611
|
//#endregion
|
|
4815
|
-
//#region
|
|
3612
|
+
//#region services/core/src/session/context/build-context.d.ts
|
|
4816
3613
|
/**
|
|
4817
3614
|
* Build context for a single session by walking session_events.
|
|
4818
3615
|
*
|
|
@@ -4825,7 +3622,7 @@ interface ContextAssemblyResult {
|
|
|
4825
3622
|
*/
|
|
4826
3623
|
declare function buildSessionContext(bus: IMakaioBus, options: BuildContextOptions): Promise<ContextAssemblyResult>;
|
|
4827
3624
|
//#endregion
|
|
4828
|
-
//#region
|
|
3625
|
+
//#region services/core/src/session/context/get-full-conversation.d.ts
|
|
4829
3626
|
/**
|
|
4830
3627
|
* Get full conversation for a session, traversing parent chain.
|
|
4831
3628
|
*
|
|
@@ -4840,4 +3637,4 @@ declare function buildSessionContext(bus: IMakaioBus, options: BuildContextOptio
|
|
|
4840
3637
|
*/
|
|
4841
3638
|
declare function getFullConversation(bus: IMakaioBus, sessionId: string): Promise<ContextAssemblyResult>;
|
|
4842
3639
|
//#endregion
|
|
4843
|
-
export {
|
|
3640
|
+
export { registerMemoryAgentStorage as $, registerDrizzleImportCursorStorage as A, buildRecoveryContext as At, SessionPreviewMaps as B, AdapterRegistry as Bt, registerMemoryMessageStorage as C, buildTurnInitiator as Ct, turns as D, ensureAgentModel as Dt, SelectTurn as E, ensureAgentCwd as Et, registerDrizzleSessionEventStorage as F, getOrCreateSession as Ft, SearchSessionRow as G, mapAgentsBySession as H, SessionOrchestrator as Ht, registerMemorySessionEventStorage as I, resolveTargetAgents as It, fetchPreviewBySession as J, fetchAgentsBySession as K, InsertSessionEvent as L, extractTextContent as Lt, EventTransform as M, resolveExecutionTarget as Mt, SessionLogger as N, resolveModelCapabilities as Nt, registerMemoryTurnStorage as O, recoverAgent as Ot, SessionLoggerOptions as P, findTurnByAgent as Pt, registerDrizzleAgentStorage as Q, SelectSessionEvent as R, normalizeToBlocks as Rt, messages as S, SessionContextWindowState as St, InsertTurn as T, buildRecoveryContextWithPipeline as Tt, mapToSession as U, registerCoreSessionServiceHandlers as Ut, fetchSessionPreviewMaps as V, ISessionOrchestrator as Vt, SearchFilters as W, MakaioSessionService as Wt, parseForkTransforms as X, mapRowToSession as Y, registerFtsSearchHandler as Z, registerDrizzleMessageRoutingStorage as _, registerGetStatusCountsHandler as _t, kindToBranchKind as a, createSessionExtensionContext as at, InsertMessage as b, AgentContextState as bt, registerSpawningToolCallResolver as c, FallbackRuntimeOptions as ct, MakaioSession as d, normalizeSelectionString as dt, registerDrizzleSessionStorage as et, MakaioSessionConfig as f, resolveAdapterNameById as ft, messageRouting as g, actionRegistry as gt, SelectMessageRouting as h, resetBuiltInActionsRegistration as ht, ContextAssemblyResult as i, SessionExtensionContextImpl as it, importCursors as j, resolveAdapterId as jt, registerDrizzleTurnStorage as k, verifyAndRecoverAgents as kt, registerCompressLineageResolver as l, pickFallbackRuntimeOptions as lt, InsertMessageRouting as m, registerBuiltInActions as mt, buildSessionContext as n, AgentStorageNamespace as nt, toSessionLineage as o, SessionBridge as ot, StartTurnOptions as p, registerListActionsHandler as pt, fetchMessageCountsBySession as q, BuildContextOptions as r, AgentStorageSubjects as rt, registerSessionDiscoveredHandler as s, assembleForkContext as st, getFullConversation as t, registerMemorySessionStorage as tt, registerParentResolver as u, CONNECTOR_SWAP_DEFAULT_PIPELINE as ut, MessageRoutingNamespace as v, registerResumeHandler as vt, registerDrizzleMessageStorage as w, RecoveryConfig as wt, SelectMessage as x, ContextWindowTrackerConfig as xt, MessageRoutingSubjects as y, ContextWindowTracker as yt, sessionEvents as z, TurnContextEnricher as zt };
|