@makaio/framework 1.0.0-dev-1781022866275 → 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/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 +6208 -0
- package/dist/adapters/acp-client/index.mjs +3 -0
- package/dist/adapters/config/index.d.mts +429 -0
- package/dist/adapters/config/index.mjs +1 -0
- package/dist/adapters/index.d.mts +4202 -0
- package/dist/adapters/index.mjs +18 -0
- package/dist/adapters/node.d.mts +263 -0
- package/dist/adapters/node.mjs +4 -0
- package/dist/adapters/stream-session/index.d.mts +1414 -0
- package/dist/adapters/stream-session/index.mjs +1 -0
- package/dist/adapters/stream-session/testing/index.d.mts +29 -0
- package/dist/adapters/stream-session/testing/index.mjs +1 -0
- package/dist/artifact-B3npq1cy.mjs +1 -0
- package/dist/base-orchestrator-wyumsn3b.d.mts +772 -0
- package/dist/bus/index.d.mts +3994 -0
- package/dist/bus/index.mjs +1 -0
- package/dist/bus-Caz3Jpbc.mjs +1 -0
- package/dist/bus-Hb-LGzgb.mjs +2 -0
- package/dist/capability-service-CJbmhfv9.mjs +1 -0
- package/dist/chunk-DTipWd-i.mjs +1 -0
- package/dist/chunk-cpUYaJdV.mjs +1 -0
- package/dist/cleanEnvForAdapter-KkYzQa1f.mjs +1 -0
- package/dist/client-bx74gm4R.mjs +1 -0
- package/dist/clients/index.d.mts +2639 -0
- package/dist/clients/index.mjs +2 -0
- package/dist/clients-namespace-GmSJpBUV.d.mts +332 -0
- package/dist/config-namespace-CPY9YsR8.d.mts +638 -0
- package/dist/config-namespace-ncYg2ct_.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +3 -0
- package/dist/contracts/adapter/index.mjs +1 -0
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +2 -0
- package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -0
- package/dist/contracts/artifact/index.d.mts +2 -0
- package/dist/contracts/artifact/index.mjs +1 -0
- package/dist/contracts/client/index.d.mts +3 -0
- package/dist/contracts/client/index.mjs +1 -0
- package/dist/contracts/common/index.d.mts +2 -0
- package/dist/contracts/common/index.mjs +1 -0
- package/dist/contracts/config/index.d.mts +455 -0
- package/dist/contracts/config/index.mjs +1 -0
- package/dist/contracts/extension/index.d.mts +4 -0
- package/dist/contracts/extension/index.mjs +1 -0
- package/dist/contracts/facet/index.d.mts +2 -0
- package/dist/contracts/facet/index.mjs +1 -0
- package/dist/contracts/harness/index.d.mts +2 -0
- package/dist/contracts/harness/index.mjs +1 -0
- package/dist/contracts/host/index.d.mts +2 -0
- package/dist/contracts/host/index.mjs +1 -0
- package/dist/contracts/index.d.mts +23046 -0
- package/dist/contracts/index.mjs +1 -0
- 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 +2 -0
- package/dist/contracts/model-registry/index.mjs +1 -0
- package/dist/contracts/native-session-supervisor/index.d.mts +2 -0
- package/dist/contracts/native-session-supervisor/index.mjs +1 -0
- package/dist/contracts/platform/index.d.mts +2 -0
- package/dist/contracts/platform/index.mjs +1 -0
- package/dist/contracts/provider/index.d.mts +3 -0
- package/dist/contracts/provider/index.mjs +1 -0
- package/dist/contracts/session/index.d.mts +3 -0
- package/dist/contracts/session/index.mjs +1 -0
- package/dist/contracts/shared/index.d.mts +2 -0
- package/dist/contracts/shared/index.mjs +1 -0
- package/dist/contracts/skill/index.d.mts +2 -0
- package/dist/contracts/skill/index.mjs +1 -0
- package/dist/contracts/telemetry/index.d.mts +2 -0
- package/dist/contracts/telemetry/index.mjs +1 -0
- package/dist/contracts/timeout/index.d.mts +2 -0
- package/dist/contracts/timeout/index.mjs +1 -0
- package/dist/contracts/toast/index.d.mts +198 -0
- package/dist/contracts/toast/index.mjs +1 -0
- package/dist/contracts/variant/index.d.mts +2 -0
- package/dist/contracts/variant/index.mjs +1 -0
- package/dist/core/index.d.mts +1263 -0
- package/dist/core/index.mjs +1 -0
- package/dist/credential-ref-YWQQENEo.mjs +1 -0
- package/dist/cursor-storage-CtVJ3JzB.mjs +1 -0
- package/dist/definition-BLCdXGzh.d.mts +383 -0
- package/dist/definition-CrgHIpTK.d.mts +60 -0
- package/dist/definition-DZMXOnjX.mjs +1 -0
- package/dist/definition-pkJ6szUl.d.mts +158 -0
- 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/extension-namespace-cMh_mMiL.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-CkTsQLra.mjs +41 -0
- package/dist/harness-BRCMcvQN.mjs +1 -0
- package/dist/hooks/index.d.mts +423 -0
- package/dist/hooks/index.mjs +1 -0
- package/dist/host-Br9VuOyr.mjs +1 -0
- package/dist/identity-Cz2IeEtm.mjs +1 -0
- package/dist/index-472sOmsW.d.mts +218 -0
- package/dist/index-8SZkg7s6.d.mts +353 -0
- package/dist/index-B3PK4FIn.d.mts +5116 -0
- package/dist/index-B80L4YqA.d.mts +180 -0
- package/dist/index-BFg9BUpx.d.mts +355 -0
- package/dist/index-BGfWS6GE.d.mts +483 -0
- package/dist/index-BVgfS-AJ.d.mts +109 -0
- package/dist/index-B_zQC98V.d.mts +995 -0
- package/dist/index-Bh_Ne7LF.d.mts +1008 -0
- package/dist/index-Bvb2mMH6.d.mts +1730 -0
- package/dist/index-CCGVh9BF2.d.mts +749 -0
- package/dist/index-CGmcS0Ma.d.mts +412 -0
- package/dist/index-CHQ1SqT0.d.mts +117 -0
- package/dist/index-CLpjm52M.d.mts +183 -0
- package/dist/index-Caig6TeF.d.mts +6746 -0
- package/dist/index-CelJCBjk.d.mts +2992 -0
- package/dist/index-ChunCFu4.d.mts +11 -0
- package/dist/index-Cm0dUkWL.d.mts +4651 -0
- package/dist/index-CokQYGVP.d.mts +184 -0
- package/dist/index-Cs0kZXIz2.d.mts +37 -0
- package/dist/index-D5d5HeWI2.d.mts +259 -0
- package/dist/index-D90OmGmV.d.mts +389 -0
- package/dist/index-D9MwJ2Q8.d.mts +67 -0
- package/dist/index-DANINzMu.d.mts +40 -0
- package/dist/index-DBw-89vC2.d.mts +3640 -0
- package/dist/index-DGBu6bHi2.d.mts +438 -0
- package/dist/index-DKC62dY5.d.mts +146 -0
- package/dist/index-DKia0MX1.d.mts +43 -0
- package/dist/index-DMKnON5s.d.mts +28 -0
- package/dist/index-DUaw0Dw8.d.mts +14747 -0
- package/dist/index-De3kPhlN.d.mts +72 -0
- package/dist/index-L4GjJDKb.d.mts +822 -0
- package/dist/index-U-A8eyGT.d.mts +1490 -0
- package/dist/index-eemAKwsB.d.mts +362 -0
- package/dist/index-mNec7V-9.d.mts +1075 -0
- package/dist/index-soFznFCy2.d.mts +89 -0
- package/dist/index-vtXJuwrz.d.mts +40 -0
- package/dist/index-x_lVDp_J.d.mts +134 -0
- package/dist/json-value-CmhSGMLv.mjs +1 -0
- package/dist/kernel/cli/index.d.mts +143 -0
- package/dist/kernel/cli/index.mjs +1 -0
- package/dist/kernel/cli/schemas.d.mts +64 -0
- package/dist/kernel/cli/schemas.mjs +1 -0
- package/dist/kernel/extension/index.d.mts +2 -0
- package/dist/kernel/extension/index.mjs +1 -0
- package/dist/kernel/index.d.mts +296 -0
- package/dist/kernel/index.mjs +1 -0
- package/dist/kernel/namespace/index.d.mts +2 -0
- package/dist/kernel/namespace/index.mjs +1 -0
- package/dist/kernel/observability/index.d.mts +2 -0
- package/dist/kernel/observability/index.mjs +1 -0
- package/dist/kernel/providers/index.d.mts +2 -0
- package/dist/kernel/providers/index.mjs +1 -0
- package/dist/kernel/window/index.d.mts +2 -0
- package/dist/kernel/window/index.mjs +1 -0
- package/dist/materialization-CuUBu4XI.mjs +1 -0
- package/dist/model-registry-CfXytvzx.mjs +1 -0
- package/dist/model-registry-Scn_MC2d.mjs +1 -0
- package/dist/namespace-5QQqbF-B.d.mts +3133 -0
- package/dist/namespace-BM7Djng9.d.mts +189 -0
- package/dist/namespace-BoD94mrN.mjs +1 -0
- package/dist/namespace-BwzZJqTV.mjs +1 -0
- package/dist/namespace-CFLAmQfh.mjs +1 -0
- package/dist/namespace-CTm3nEvh.d.mts +51 -0
- package/dist/namespace-CaaNnKcR.d.mts +921 -0
- package/dist/namespace-CaoZ3S78.d.mts +43 -0
- package/dist/namespace-CxhsoFUP.d.mts +607 -0
- package/dist/namespace-DD8Oiqo7.d.mts +580 -0
- package/dist/namespace-DLovh2Ws.d.mts +1313 -0
- package/dist/namespace-DgqkaOVu.d.mts +768 -0
- package/dist/namespace-DkRgbZYn.mjs +1 -0
- package/dist/namespace-Dr8K0MCp.d.mts +2047 -0
- package/dist/namespace-DuXK5AYN.mjs +1 -0
- package/dist/namespace-EQniz-Aw.d.mts +142 -0
- package/dist/namespace-IV1QK__V.d.mts +159 -0
- package/dist/namespace-LViZ-EQk.mjs +1 -0
- package/dist/namespace-TyiTsLFv.d.mts +3020 -0
- package/dist/namespace-Yna5-Pws.mjs +1 -0
- package/dist/namespace-xcmbQlxh.mjs +1 -0
- package/dist/native-session-supervisor-B1TnaPUF.mjs +1 -0
- package/dist/node/bus-server/index.d.mts +178 -0
- package/dist/node/bus-server/index.mjs +1 -0
- package/dist/node/bus-server/server-lifecycle.d.mts +2 -0
- package/dist/node/bus-server/server-lifecycle.mjs +1 -0
- package/dist/node/machine-identity/index.d.mts +85 -0
- package/dist/node/machine-identity/index.mjs +3 -0
- package/dist/node/transports/index.d.mts +1945 -0
- package/dist/node/transports/index.mjs +2 -0
- package/dist/orchestrator-shared-CIDiFJMD.mjs +1 -0
- package/dist/orchestrator-shared-Dfa7FMyw.d.mts +249 -0
- package/dist/package-DKVlsMP3.mjs +1 -0
- package/dist/platform-DZ7z-wXD.mjs +1 -0
- package/dist/profile-6ynCD5k3.mjs +1 -0
- package/dist/provider-context-CK6B4X_8.mjs +1 -0
- package/dist/providers/index.d.mts +135 -0
- package/dist/providers/index.mjs +1 -0
- package/dist/providers-namespace-DSEpli4A.d.mts +583 -0
- package/dist/providers-u8i15co9.mjs +1 -0
- package/dist/schema-CoyE6mPt.mjs +1 -0
- package/dist/schema-M5YTvSAG.d.mts +949 -0
- package/dist/schema-e0wU_lcV.mjs +1 -0
- package/dist/schema-introspection-Dn1jWQs1.mjs +1 -0
- package/dist/schemas-Bd0OjRQf.d.mts +46 -0
- package/dist/schemas-C46QfKzv.d.mts +459 -0
- package/dist/schemas-CDBSjg7o.d.mts +237 -0
- package/dist/schemas-CR1Rripy.mjs +1 -0
- package/dist/schemas-CVvwIfG4.mjs +1 -0
- package/dist/schemas-CaLhkkLn.mjs +1 -0
- package/dist/schemas-ClOOT1W6.d.mts +174 -0
- package/dist/schemas-DATniTHb.d.mts +182 -0
- package/dist/schemas-DE-GNmSD.mjs +1 -0
- package/dist/schemas-DVF1A4DF.d.mts +160 -0
- package/dist/schemas-DaRSfYLf.d.mts +73 -0
- package/dist/schemas-DiYVzG6e.d.mts +315 -0
- package/dist/schemas-hSrzflwZ.mjs +1 -0
- package/dist/schemas-j7ivZ2HI.d.mts +944 -0
- package/dist/schemas-jFe1AuI-.mjs +1 -0
- package/dist/schemas-wg_6PAdV.d.mts +153 -0
- package/dist/scoped-bus-04pwo1uM.mjs +1 -0
- package/dist/server-lifecycle-FXTPW39-.mjs +1 -0
- package/dist/server-lifecycle-YoSGFGnU.d.mts +160 -0
- package/dist/service-base/index.d.mts +98 -0
- package/dist/service-base/index.mjs +1 -0
- package/dist/services/adapter-runtime/index.d.mts +4 -0
- package/dist/services/adapter-runtime/index.mjs +1 -0
- package/dist/services/adapter-runtime/namespace.d.mts +2 -0
- package/dist/services/adapter-runtime/namespace.mjs +1 -0
- package/dist/services/adapter-runtime/schemas.d.mts +2 -0
- package/dist/services/adapter-runtime/schemas.mjs +1 -0
- package/dist/services/adapter-subsystem/index.d.mts +3 -0
- package/dist/services/adapter-subsystem/index.mjs +1 -0
- package/dist/services/adapter-subsystem/namespace.d.mts +2 -0
- package/dist/services/adapter-subsystem/namespace.mjs +1 -0
- package/dist/services/agent-runtime/index.d.mts +3 -0
- package/dist/services/agent-runtime/index.mjs +1 -0
- package/dist/services/agent-runtime/namespace.d.mts +2 -0
- package/dist/services/agent-runtime/namespace.mjs +1 -0
- package/dist/services/agent-runtime/schemas.d.mts +2 -0
- package/dist/services/agent-runtime/schemas.mjs +1 -0
- package/dist/services/capability/index.d.mts +2 -0
- package/dist/services/capability/index.mjs +1 -0
- package/dist/services/cli-detection/namespace.d.mts +56 -0
- package/dist/services/cli-detection/namespace.mjs +1 -0
- package/dist/services/codebase/index.d.mts +3 -0
- package/dist/services/codebase/index.mjs +1 -0
- package/dist/services/codebase/namespace.d.mts +2 -0
- package/dist/services/codebase/namespace.mjs +1 -0
- package/dist/services/codebase/schemas.d.mts +2 -0
- package/dist/services/codebase/schemas.mjs +1 -0
- package/dist/services/compression/index.d.mts +3 -0
- package/dist/services/compression/index.mjs +1 -0
- package/dist/services/compression/namespace.d.mts +2 -0
- package/dist/services/compression/namespace.mjs +1 -0
- package/dist/services/compression/schemas.d.mts +2 -0
- package/dist/services/compression/schemas.mjs +1 -0
- package/dist/services/context-rules/index.d.mts +412 -0
- package/dist/services/context-rules/index.mjs +1 -0
- package/dist/services/credential-change/index.d.mts +17 -0
- package/dist/services/credential-change/index.mjs +1 -0
- package/dist/services/definition/index.d.mts +2 -0
- package/dist/services/definition/index.mjs +1 -0
- package/dist/services/definition/namespace.d.mts +71 -0
- package/dist/services/definition/namespace.mjs +1 -0
- package/dist/services/definition/schemas.d.mts +38 -0
- package/dist/services/definition/schemas.mjs +1 -0
- package/dist/services/dialog/namespace.d.mts +105 -0
- package/dist/services/dialog/namespace.mjs +1 -0
- package/dist/services/dialog/schemas.d.mts +109 -0
- package/dist/services/dialog/schemas.mjs +1 -0
- package/dist/services/execution-target/index.d.mts +4 -0
- package/dist/services/execution-target/index.mjs +1 -0
- package/dist/services/execution-target/namespace.d.mts +2 -0
- package/dist/services/execution-target/namespace.mjs +1 -0
- package/dist/services/execution-target/schemas.d.mts +2 -0
- package/dist/services/execution-target/schemas.mjs +1 -0
- package/dist/services/filesystem/index.d.mts +3 -0
- package/dist/services/filesystem/index.mjs +1 -0
- package/dist/services/filesystem/namespace.d.mts +432 -0
- package/dist/services/filesystem/namespace.mjs +1 -0
- package/dist/services/filesystem/schemas.d.mts +240 -0
- package/dist/services/filesystem/schemas.mjs +1 -0
- 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 +861 -0
- package/dist/services/harness/index.mjs +1 -0
- package/dist/services/harness/storage/schema.d.mts +424 -0
- package/dist/services/harness/storage/schema.mjs +1 -0
- package/dist/services/index.d.mts +6185 -0
- package/dist/services/index.mjs +1 -0
- package/dist/services/local-notification/index.d.mts +25 -0
- package/dist/services/local-notification/index.mjs +1 -0
- package/dist/services/local-notification/namespace.d.mts +73 -0
- package/dist/services/local-notification/namespace.mjs +1 -0
- package/dist/services/local-notification/schemas.d.mts +88 -0
- package/dist/services/local-notification/schemas.mjs +1 -0
- package/dist/services/log-import/browser.d.mts +3 -0
- package/dist/services/log-import/browser.mjs +1 -0
- package/dist/services/log-import/index.d.mts +274 -0
- package/dist/services/log-import/index.mjs +2 -0
- package/dist/services/log-import/log-import.d.mts +3 -0
- package/dist/services/log-import/log-import.mjs +1 -0
- package/dist/services/log-import/namespace.d.mts +327 -0
- package/dist/services/log-import/namespace.mjs +1 -0
- package/dist/services/log-import/schemas.d.mts +217 -0
- package/dist/services/log-import/schemas.mjs +1 -0
- package/dist/services/model-registry/index.d.mts +2 -0
- package/dist/services/model-registry/index.mjs +1 -0
- package/dist/services/preferences/index.d.mts +3 -0
- package/dist/services/preferences/index.mjs +1 -0
- package/dist/services/preferences/schemas.d.mts +2 -0
- package/dist/services/preferences/schemas.mjs +1 -0
- package/dist/services/preferences/storage-namespace.d.mts +3 -0
- package/dist/services/preferences/storage-namespace.mjs +1 -0
- package/dist/services/provider-context/index.d.mts +2 -0
- package/dist/services/provider-context/index.mjs +1 -0
- package/dist/services/provider-runtime/index.d.mts +136 -0
- package/dist/services/provider-runtime/index.mjs +1 -0
- package/dist/services/session/handlers/index.d.mts +2 -0
- package/dist/services/session/handlers/index.mjs +1 -0
- package/dist/services/session/index.d.mts +10 -0
- package/dist/services/session/index.mjs +1 -0
- package/dist/services/session/messages/namespace.d.mts +2 -0
- package/dist/services/session/messages/namespace.mjs +1 -0
- package/dist/services/session/orchestrator-testing/index.d.mts +2 -0
- package/dist/services/session/orchestrator-testing/index.mjs +1 -0
- package/dist/services/session/session-events/namespace.d.mts +2 -0
- package/dist/services/session/session-events/namespace.mjs +1 -0
- package/dist/services/session/storage/namespace.d.mts +2 -0
- package/dist/services/session/storage/namespace.mjs +1 -0
- package/dist/services/session/storage/schema.d.mts +2 -0
- package/dist/services/session/storage/schema.mjs +1 -0
- package/dist/services/session/testing/index.d.mts +35 -0
- package/dist/services/session/testing/index.mjs +65 -0
- package/dist/services/session/testing/orchestrator-shared.d.mts +2 -0
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -0
- package/dist/services/session/turns/namespace.d.mts +2 -0
- package/dist/services/session/turns/namespace.mjs +1 -0
- package/dist/services/session-editor/index.d.mts +119 -0
- package/dist/services/session-editor/index.mjs +1 -0
- package/dist/services/settings/index.d.mts +47 -0
- package/dist/services/settings/index.mjs +1 -0
- package/dist/services/settings/namespace.d.mts +663 -0
- package/dist/services/settings/namespace.mjs +1 -0
- package/dist/services/settings/storage/clients-namespace.d.mts +2 -0
- package/dist/services/settings/storage/clients-namespace.mjs +1 -0
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +184 -0
- package/dist/services/settings/storage/extension-configs/namespace.mjs +1 -0
- package/dist/services/settings/storage/index.d.mts +4 -0
- package/dist/services/settings/storage/index.mjs +1 -0
- package/dist/services/settings/storage/providers-namespace.d.mts +2 -0
- package/dist/services/settings/storage/providers-namespace.mjs +1 -0
- 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 +2 -0
- package/dist/services/tool-approval/index.mjs +1 -0
- package/dist/services/tools/index.d.mts +2 -0
- package/dist/services/tools/index.mjs +1 -0
- package/dist/services/tray-menu/index.d.mts +4 -0
- package/dist/services/tray-menu/index.mjs +1 -0
- package/dist/services/tray-menu/namespace.d.mts +2 -0
- package/dist/services/tray-menu/namespace.mjs +1 -0
- package/dist/services/tray-menu/schemas.d.mts +2 -0
- package/dist/services/tray-menu/schemas.mjs +1 -0
- package/dist/services/turn/index.d.mts +2 -0
- package/dist/services/turn/index.mjs +1 -0
- package/dist/services/turn/namespace.d.mts +2 -0
- package/dist/services/turn/namespace.mjs +1 -0
- package/dist/services/turn/schemas.d.mts +335 -0
- package/dist/services/turn/schemas.mjs +1 -0
- package/dist/session-BoldSdNZ2.mjs +134 -0
- package/dist/session-DuVOYctZ.mjs +1 -0
- package/dist/session-lineage-CRsc9g1x.d.mts +65 -0
- package/dist/shared-DpOEfD8F.mjs +1 -0
- package/dist/shared-schemas-CPShiLNp.mjs +1 -0
- package/dist/skill-CQO4mDqK.mjs +1 -0
- package/dist/storage/drizzle/client.d.mts +78 -0
- package/dist/storage/drizzle/client.mjs +1 -0
- package/dist/storage/drizzle/index.d.mts +137 -0
- package/dist/storage/drizzle/index.mjs +1 -0
- package/dist/storage/handlers/drizzle/index.d.mts +2 -0
- package/dist/storage/handlers/drizzle/index.mjs +1 -0
- package/dist/storage/handlers/index.d.mts +33 -0
- package/dist/storage/handlers/index.mjs +1 -0
- package/dist/storage/index.d.mts +192 -0
- package/dist/storage/index.mjs +1 -0
- package/dist/storage-namespace-BXkoh5Sy.d.mts +221 -0
- package/dist/storage-namespace-DWsYLAXa.mjs +1 -0
- package/dist/storage-namespace-definition-Bkx5rSto.d.mts +17 -0
- package/dist/storage-namespace-definition-CqSdsuCC.mjs +1 -0
- package/dist/style.css +3782 -0
- package/dist/telemetry-CvdLBWuk.mjs +1 -0
- package/dist/testing/drizzle-harness.d.mts +130 -0
- package/dist/testing/drizzle-harness.mjs +1 -0
- package/dist/testing/index.d.mts +106 -0
- package/dist/testing/index.mjs +1 -0
- package/dist/timeout-XsYIOKrc.mjs +1 -0
- package/dist/tool-approval-service-BvZWhYZp.mjs +1 -0
- package/dist/tools/index.d.mts +835 -0
- package/dist/tools/index.mjs +1 -0
- package/dist/tools/testing/index.d.mts +53 -0
- package/dist/tools/testing/index.mjs +1 -0
- package/dist/tools-D-luYcDw.mjs +1431 -0
- package/dist/tray-menu-service-DuXq5k22.mjs +1 -0
- package/dist/types-BCMUtBj1.d.mts +1106 -0
- package/dist/types-C2Ob9zz_.d.mts +128 -0
- package/dist/types-CCdqjeuH.d.mts +262 -0
- package/dist/types-DZHvOc_Q.d.mts +305 -0
- package/dist/types-Dy3YTcTF.d.mts +6777 -0
- package/dist/types-MfJZ67e9.d.mts +315 -0
- package/dist/types-dyP-bXXE.d.mts +31 -0
- package/dist/ui-components/index.d.mts +2342 -0
- package/dist/ui-components/index.mjs +8 -0
- package/dist/ui-config-9bDRwFZr.mjs +1 -0
- package/dist/ui-hooks/index.d.mts +1915 -0
- package/dist/ui-hooks/index.mjs +1 -0
- package/dist/ui-kernel/index.d.mts +2793 -0
- package/dist/ui-kernel/index.mjs +1 -0
- package/dist/ui-kernel/pages/namespace.d.mts +88 -0
- package/dist/ui-kernel/pages/namespace.mjs +1 -0
- package/dist/ui-kernel/pages/schemas.d.mts +2 -0
- package/dist/ui-kernel/pages/schemas.mjs +1 -0
- package/dist/ui-views/index.d.mts +487 -0
- package/dist/ui-views/index.mjs +30 -0
- package/dist/utils/health-probe.d.mts +26 -0
- package/dist/utils/health-probe.mjs +1 -0
- package/dist/utils/index.d.mts +262 -0
- package/dist/utils/index.mjs +2 -0
- package/dist/utils/keychain.d.mts +31 -0
- package/dist/utils/keychain.mjs +1 -0
- package/dist/utils/project-manifest.d.mts +130 -0
- package/dist/utils/project-manifest.mjs +1 -0
- package/dist/utils/resolve-package-root.d.mts +12 -0
- package/dist/utils/resolve-package-root.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 +24 -0
- package/dist/utils/workspace-root.mjs +2 -0
- package/dist/variant-CT6XBP6T.mjs +1 -0
- package/dist/version-BeT3ASEe.mjs +1 -0
- package/dist/visibility-Cb62p9bv.mjs +1 -0
- package/dist/window-registry-CBcrGTv4.d.mts +130 -0
- package/dist/window-registry-DW-dKRjQ.mjs +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import { IMakaioBus } from "@makaio/framework/bus";
|
|
2
|
+
import { IMakaioSession, MakaioSessionAgent, Message, MessageInput, ResponseSchemaDescriptor, SessionContext, TurnInitiator } from "@makaio/framework/contracts";
|
|
3
|
+
|
|
4
|
+
//#region services/core/src/session/entities/turn.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Result of a completed turn.
|
|
7
|
+
*/
|
|
8
|
+
interface TurnResult {
|
|
9
|
+
/** Whether all agents completed successfully */
|
|
10
|
+
success: boolean;
|
|
11
|
+
/** Error messages from agents that failed */
|
|
12
|
+
errors: string[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* State change returned by Turn mutation methods.
|
|
16
|
+
* Orchestrator uses this to decide whether to emit turn.completed.
|
|
17
|
+
*/
|
|
18
|
+
type TurnStateChange = {
|
|
19
|
+
turnComplete: false;
|
|
20
|
+
} | {
|
|
21
|
+
turnComplete: true;
|
|
22
|
+
result: TurnResult;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Context for dispatching messages to agents.
|
|
26
|
+
* Passed to agent.sendMessage for context propagation.
|
|
27
|
+
*/
|
|
28
|
+
interface TurnContext {
|
|
29
|
+
/** Turn identifier */
|
|
30
|
+
turnId: string;
|
|
31
|
+
/** Current/latest message ID in this turn */
|
|
32
|
+
messageId: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Configuration for creating a Turn.
|
|
36
|
+
*/
|
|
37
|
+
interface TurnConfig {
|
|
38
|
+
/** Session this turn belongs to */
|
|
39
|
+
sessionId: string;
|
|
40
|
+
/** Agents participating in this turn */
|
|
41
|
+
agentIds: string[];
|
|
42
|
+
/** Monotonic per-session ordinal (1-based), assigned by turn storage. */
|
|
43
|
+
turnNumber: number;
|
|
44
|
+
/** Optional turn ID (generated if not provided) */
|
|
45
|
+
turnId?: string;
|
|
46
|
+
/** Optional start timestamp (defaults to Date.now()) */
|
|
47
|
+
startedAt?: number;
|
|
48
|
+
/** Origin of this turn (for loop prevention and audit). Defaults to user-initiated. */
|
|
49
|
+
initiator?: TurnInitiator;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Represents a single turn in a session.
|
|
53
|
+
*
|
|
54
|
+
* A turn is a semantic bracket: user message(s) → agent response(s).
|
|
55
|
+
* Turn encapsulates state and logic, while SessionOrchestrator handles
|
|
56
|
+
* bus events and emissions.
|
|
57
|
+
*
|
|
58
|
+
* Design:
|
|
59
|
+
* - Immutable identity (turnId, sessionId, agentIds set at creation)
|
|
60
|
+
* - Mutable state (messages, completion tracking)
|
|
61
|
+
* - State changes return results for orchestrator to act on
|
|
62
|
+
* - No bus dependency (testable in isolation)
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* const turn = new Turn({ sessionId: 'sess1', agentIds: ['agent1', 'agent2'] });
|
|
66
|
+
* turn.addMessage('msg1');
|
|
67
|
+
*
|
|
68
|
+
* const change = turn.markAgentCompleted('agent1');
|
|
69
|
+
* // change.turnComplete === false (agent2 still pending)
|
|
70
|
+
*
|
|
71
|
+
* const change2 = turn.markAgentCompleted('agent2');
|
|
72
|
+
* // change2.turnComplete === true, change2.result.success === true
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
declare class Turn$1 {
|
|
76
|
+
/** Unique turn identifier */
|
|
77
|
+
readonly turnId: string;
|
|
78
|
+
/** Session this turn belongs to */
|
|
79
|
+
readonly sessionId: string;
|
|
80
|
+
/** Monotonic per-session ordinal (1-based). */
|
|
81
|
+
readonly turnNumber: number;
|
|
82
|
+
/** Timestamp when turn was created */
|
|
83
|
+
readonly startedAt: number;
|
|
84
|
+
/** Origin of this turn, used for loop prevention and audit. */
|
|
85
|
+
private readonly _initiator;
|
|
86
|
+
/** Agents participating in this turn (immutable after creation) */
|
|
87
|
+
private readonly _agentIds;
|
|
88
|
+
/** Messages sent during this turn */
|
|
89
|
+
private readonly _messageIds;
|
|
90
|
+
/** Agents that have completed successfully */
|
|
91
|
+
private readonly _completedAgents;
|
|
92
|
+
/** Agents that errored (agentId → error message) */
|
|
93
|
+
private readonly _erroredAgents;
|
|
94
|
+
constructor(config: TurnConfig);
|
|
95
|
+
/**
|
|
96
|
+
* Agents participating in this turn.
|
|
97
|
+
* @returns Immutable array of agent IDs
|
|
98
|
+
*/
|
|
99
|
+
get agentIds(): readonly string[];
|
|
100
|
+
/**
|
|
101
|
+
* Origin of this turn for loop prevention and audit.
|
|
102
|
+
* Returned as a defensive copy to avoid external mutation of internal state.
|
|
103
|
+
* @returns Defensive copy of turn initiator metadata
|
|
104
|
+
*/
|
|
105
|
+
get initiator(): TurnInitiator;
|
|
106
|
+
/**
|
|
107
|
+
* Messages sent during this turn.
|
|
108
|
+
* @returns Immutable array of message IDs
|
|
109
|
+
*/
|
|
110
|
+
get messageIds(): readonly string[];
|
|
111
|
+
/**
|
|
112
|
+
* Agents that have completed successfully.
|
|
113
|
+
* @returns Read-only set of completed agent IDs
|
|
114
|
+
*/
|
|
115
|
+
get completedAgents(): ReadonlySet<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Agents that errored.
|
|
118
|
+
* @returns Read-only map of agent ID to error message
|
|
119
|
+
*/
|
|
120
|
+
get erroredAgents(): ReadonlyMap<string, string>;
|
|
121
|
+
/**
|
|
122
|
+
* Add a message to this turn.
|
|
123
|
+
* @param messageId - The message ID to add
|
|
124
|
+
*/
|
|
125
|
+
addMessage(messageId: string): void;
|
|
126
|
+
/**
|
|
127
|
+
* Mark an agent as completed successfully.
|
|
128
|
+
* @param agentId - The agent that completed
|
|
129
|
+
* @returns State change indicating if turn is now complete
|
|
130
|
+
*/
|
|
131
|
+
markAgentCompleted(agentId: string): TurnStateChange;
|
|
132
|
+
/**
|
|
133
|
+
* Mark an agent as errored.
|
|
134
|
+
* @param agentId - The agent that errored
|
|
135
|
+
* @param error - Error message
|
|
136
|
+
* @returns State change indicating if turn is now complete
|
|
137
|
+
*/
|
|
138
|
+
markAgentErrored(agentId: string, error: string): TurnStateChange;
|
|
139
|
+
/**
|
|
140
|
+
* Check if an agent is part of this turn.
|
|
141
|
+
* @param agentId - The agent ID to check
|
|
142
|
+
* @returns True if agent is participating in this turn
|
|
143
|
+
*/
|
|
144
|
+
hasAgent(agentId: string): boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Check if the turn is complete (all agents finished).
|
|
147
|
+
* @returns True if all agents have completed or errored
|
|
148
|
+
*/
|
|
149
|
+
isComplete(): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Get the turn result (only meaningful when turn is complete).
|
|
152
|
+
* @returns Turn result with success status and any errors
|
|
153
|
+
*/
|
|
154
|
+
getResult(): TurnResult;
|
|
155
|
+
/**
|
|
156
|
+
* Get context for agent dispatch.
|
|
157
|
+
* Used when sending messages to agents for context propagation.
|
|
158
|
+
* @returns Turn context with turnId and current messageId
|
|
159
|
+
* @throws Error if no messages have been added yet
|
|
160
|
+
*/
|
|
161
|
+
getContext(): TurnContext;
|
|
162
|
+
/**
|
|
163
|
+
* Get context for a specific message (for events emitted per-message).
|
|
164
|
+
* @param messageId - The message ID to get context for
|
|
165
|
+
* @returns Turn context with turnId and the specified messageId
|
|
166
|
+
*/
|
|
167
|
+
getContextForMessage(messageId: string): TurnContext;
|
|
168
|
+
/**
|
|
169
|
+
* Check if turn should complete and return appropriate state change.
|
|
170
|
+
* @returns State change indicating completion status and result if complete
|
|
171
|
+
*/
|
|
172
|
+
private checkCompletion;
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region services/core/src/session/session-turn-manager.d.ts
|
|
176
|
+
/**
|
|
177
|
+
* Result of a completed turn.
|
|
178
|
+
*/
|
|
179
|
+
interface TurnCompletionResult {
|
|
180
|
+
/** Whether all agents completed successfully. */
|
|
181
|
+
success: boolean;
|
|
182
|
+
/** Error messages from agents that failed. */
|
|
183
|
+
errors: string[];
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Callback invoked when a turn completes (all agents finished).
|
|
187
|
+
* @param turn - The completed turn
|
|
188
|
+
* @param result - Success/error status with error messages
|
|
189
|
+
*/
|
|
190
|
+
type TurnCompleteCallback = (turn: Turn$1, result: TurnCompletionResult) => Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* Composable turn lifecycle manager.
|
|
193
|
+
*
|
|
194
|
+
* Owns all stateful turn tracking: active turns, usage accumulation,
|
|
195
|
+
* completion guards, and buffered-usage-during-completion. Both the
|
|
196
|
+
* framework `SessionOrchestrator` and host-provided orchestrators create their
|
|
197
|
+
* own instance.
|
|
198
|
+
*
|
|
199
|
+
* Storage calls use `bus.requestOptional` so the manager degrades
|
|
200
|
+
* gracefully in ephemeral mode (no storage handlers registered). When
|
|
201
|
+
* `TurnStorageSubjects.create` is unhandled, synthetic IDs are generated
|
|
202
|
+
* locally. When `TurnStorageSubjects.complete` is unhandled, the turn is
|
|
203
|
+
* still cleared from memory and `session.turn.completed` is emitted.
|
|
204
|
+
*/
|
|
205
|
+
declare class SessionTurnManager {
|
|
206
|
+
private readonly bus;
|
|
207
|
+
/** Active turns keyed by sessionId (one turn per session). */
|
|
208
|
+
private readonly activeTurns;
|
|
209
|
+
/** Per-session usage accumulators, parallel to activeTurns. */
|
|
210
|
+
private readonly usageAccumulators;
|
|
211
|
+
/** Sessions currently persisting turn completion (prevents concurrent writes). */
|
|
212
|
+
private readonly completingSessions;
|
|
213
|
+
/** Usage events received while completion persistence is in-flight. */
|
|
214
|
+
private readonly bufferedUsageDuringCompletion;
|
|
215
|
+
/**
|
|
216
|
+
* Synthetic turn number counters for ephemeral mode (no storage handlers).
|
|
217
|
+
* Keyed by sessionId, incremented on each turn creation.
|
|
218
|
+
*
|
|
219
|
+
* Intentionally never pruned: turn numbers must be monotonically increasing
|
|
220
|
+
* across all turns in a session. Pruning after a turn completes would reset
|
|
221
|
+
* the counter and cause duplicate turn numbers if the session continues.
|
|
222
|
+
*/
|
|
223
|
+
private readonly syntheticTurnCounters;
|
|
224
|
+
/** Bus subscription cleanup functions. */
|
|
225
|
+
private readonly cleanups;
|
|
226
|
+
/**
|
|
227
|
+
* @param bus - Event bus used for storage RPCs and event emission
|
|
228
|
+
*/
|
|
229
|
+
constructor(bus: IMakaioBus);
|
|
230
|
+
/**
|
|
231
|
+
* Create a new turn, tracking it as active.
|
|
232
|
+
*
|
|
233
|
+
* Calls `TurnStorageSubjects.create` via `requestOptional`. If no storage
|
|
234
|
+
* handler is registered (ephemeral mode), generates a synthetic UUID turn ID
|
|
235
|
+
* and a per-session incrementing turn number.
|
|
236
|
+
* @param sessionId - Session the turn belongs to
|
|
237
|
+
* @param agentIds - Agents participating in this turn
|
|
238
|
+
* @param initiator - Turn origin metadata (user, plugin, system)
|
|
239
|
+
* @param turnId - Optional pre-assigned turn ID (passed through to storage)
|
|
240
|
+
* @returns The newly created and activated Turn entity
|
|
241
|
+
*/
|
|
242
|
+
createTurn(sessionId: string, agentIds: string[], initiator?: TurnInitiator, turnId?: string): Promise<Turn$1>;
|
|
243
|
+
/**
|
|
244
|
+
* Register bus listeners for `agent.usage` and `agent.complete` events.
|
|
245
|
+
*
|
|
246
|
+
* Must be called once during initialisation. The `onTurnComplete` callback
|
|
247
|
+
* is invoked when all agents in a turn have finished (success or error);
|
|
248
|
+
* typically the orchestrator passes its own `completeTurn` method.
|
|
249
|
+
* @param onTurnComplete - Callback invoked when all agents in a turn finish
|
|
250
|
+
*/
|
|
251
|
+
registerCompletionHandlers(onTurnComplete: TurnCompleteCallback): void;
|
|
252
|
+
/**
|
|
253
|
+
* Complete a turn: persist via storage, emit `session.turn.completed`, clear state.
|
|
254
|
+
*
|
|
255
|
+
* A concurrent-completion guard prevents duplicate writes when two agent
|
|
256
|
+
* completions race. The second call is a no-op.
|
|
257
|
+
*
|
|
258
|
+
* Usage is snapshotted before the storage call. Any usage events that arrive
|
|
259
|
+
* while persistence is in-flight are buffered and merged into a second
|
|
260
|
+
* `TurnStorageSubjects.complete` call. State is cleared only after durable
|
|
261
|
+
* persistence succeeds; if persistence fails, the state remains intact so
|
|
262
|
+
* completion can be retried.
|
|
263
|
+
* @param turn - The turn to complete
|
|
264
|
+
* @param result - Turn result (success status and error messages)
|
|
265
|
+
*/
|
|
266
|
+
completeTurn(turn: Turn$1, result: TurnCompletionResult): Promise<void>;
|
|
267
|
+
/**
|
|
268
|
+
* Get the active turn for a session, if any.
|
|
269
|
+
* @param sessionId - Session identifier
|
|
270
|
+
* @returns Active turn, or `undefined` if no turn is in progress
|
|
271
|
+
*/
|
|
272
|
+
getActiveTurn(sessionId: string): Turn$1 | undefined;
|
|
273
|
+
/**
|
|
274
|
+
* Expose the active turns map for handlers that need direct access.
|
|
275
|
+
*
|
|
276
|
+
* Used by `registerAttachHandler` which tracks turns started via
|
|
277
|
+
* `session.agent.attach` (with an `initialMessage`) in the shared map so
|
|
278
|
+
* that the completion handler can detect when the attached turn finishes.
|
|
279
|
+
* @returns Reference to the internal active turns map
|
|
280
|
+
*/
|
|
281
|
+
getActiveTurnsMap(): Map<string, Turn$1>;
|
|
282
|
+
/**
|
|
283
|
+
* Find an active turn by turn ID (scans all sessions).
|
|
284
|
+
*
|
|
285
|
+
* Used to correlate `agent.usage` events that carry a `turnId` rather
|
|
286
|
+
* than a `sessionId`.
|
|
287
|
+
* @param turnId - Turn identifier from an agent event payload
|
|
288
|
+
* @returns Matching active turn, or `undefined` if not found
|
|
289
|
+
*/
|
|
290
|
+
findActiveTurnByTurnId(turnId: string): Turn$1 | undefined;
|
|
291
|
+
/**
|
|
292
|
+
* Cancel all bus subscriptions and clear all in-memory state.
|
|
293
|
+
*
|
|
294
|
+
* Call when the owning orchestrator is destroyed.
|
|
295
|
+
*/
|
|
296
|
+
destroy(): void;
|
|
297
|
+
/**
|
|
298
|
+
* Handle an agent completing (success or error).
|
|
299
|
+
*
|
|
300
|
+
* Marks the agent on the turn, emits `user_message.completed` for each
|
|
301
|
+
* message in the turn, then calls `onTurnComplete` when all agents are done.
|
|
302
|
+
* @param agentId - The agent that completed
|
|
303
|
+
* @param success - Whether the agent completed successfully
|
|
304
|
+
* @param error - Error message if the agent failed
|
|
305
|
+
* @param onTurnComplete - Callback to invoke when the turn is complete
|
|
306
|
+
*/
|
|
307
|
+
private handleAgentCompletion;
|
|
308
|
+
/**
|
|
309
|
+
* Buffer a usage event that arrived while turn completion persistence is in-flight.
|
|
310
|
+
* @param sessionId - Session whose turn is currently completing
|
|
311
|
+
* @param usageEvent - Usage event to defer until after persistence
|
|
312
|
+
*/
|
|
313
|
+
private bufferUsageDuringCompletion;
|
|
314
|
+
}
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region services/core/src/session/handlers/abandon-handler.d.ts
|
|
317
|
+
/**
|
|
318
|
+
* Registers the session.abandon RPC handler.
|
|
319
|
+
*
|
|
320
|
+
* Abandons a child session without merging (no handoff).
|
|
321
|
+
* @param bus - Bus instance for communication
|
|
322
|
+
* @returns Cleanup function to unsubscribe
|
|
323
|
+
*/
|
|
324
|
+
declare function registerAbandonHandler(bus: IMakaioBus): () => void;
|
|
325
|
+
//#endregion
|
|
326
|
+
//#region services/core/src/session/handlers/attach-handler.d.ts
|
|
327
|
+
/**
|
|
328
|
+
* Registers the session.agent.attach RPC handler.
|
|
329
|
+
*
|
|
330
|
+
* Explicitly attaches a fresh agent to a session with full control over:
|
|
331
|
+
* - Role assignment (lead vs member)
|
|
332
|
+
* - Optional initial message
|
|
333
|
+
*
|
|
334
|
+
* For branching conversations (fork), use session.fork to create a new session
|
|
335
|
+
* with copied history, then attach agents to the new session.
|
|
336
|
+
* @param bus - Bus instance for communication
|
|
337
|
+
* @param activeTurns - Shared turn state map
|
|
338
|
+
* @param machineId - Optional machine ID for deterministic adapter resolution
|
|
339
|
+
* @returns Cleanup function to unsubscribe
|
|
340
|
+
*/
|
|
341
|
+
declare function registerAttachHandler(bus: IMakaioBus, activeTurns: Map<string, Turn$1>, machineId?: string): () => void;
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region services/core/src/session/handlers/compress-handler.d.ts
|
|
344
|
+
/**
|
|
345
|
+
* Registers the session.compress RPC handler.
|
|
346
|
+
*
|
|
347
|
+
* Executes a pipeline on session messages and inserts a squash event.
|
|
348
|
+
* The squash event marks a context boundary - messages before it
|
|
349
|
+
* are summarized by the context JSON.
|
|
350
|
+
* @param bus - Bus instance
|
|
351
|
+
* @returns Cleanup function
|
|
352
|
+
*/
|
|
353
|
+
declare function registerCompressHandler(bus: IMakaioBus): () => void;
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region services/core/src/session/handlers/fork-handler.d.ts
|
|
356
|
+
/**
|
|
357
|
+
* Registers the session.fork RPC handler.
|
|
358
|
+
*
|
|
359
|
+
* Creates a new session with parent reference. The forked session starts
|
|
360
|
+
* empty - its full conversation is assembled by traversing the parent chain.
|
|
361
|
+
* @param bus - Bus instance for communication
|
|
362
|
+
* @returns Cleanup function to unsubscribe
|
|
363
|
+
*/
|
|
364
|
+
declare function registerForkHandler(bus: IMakaioBus): () => void;
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region services/core/src/session/handlers/merge-handler.d.ts
|
|
367
|
+
/**
|
|
368
|
+
* Registers the session.merge RPC handler.
|
|
369
|
+
*
|
|
370
|
+
* Merges a child session's work back into parent with a handoff summary.
|
|
371
|
+
* @param bus - Bus instance for communication
|
|
372
|
+
* @returns Cleanup function to unsubscribe
|
|
373
|
+
*/
|
|
374
|
+
declare function registerMergeHandler(bus: IMakaioBus): () => void;
|
|
375
|
+
//#endregion
|
|
376
|
+
//#region services/core/src/session/handlers/route-to-agents.d.ts
|
|
377
|
+
/**
|
|
378
|
+
* Interface for turn context enrichment.
|
|
379
|
+
* Implemented by TurnContextEnricher in orchestration package.
|
|
380
|
+
*/
|
|
381
|
+
interface ITurnContextEnricher {
|
|
382
|
+
enrichForDeliveryMode(originalHistory: Message[] | undefined, turnId: string, deliveryMode: 'enqueue' | 'immediate' | 'replace' | undefined): Promise<Message[] | undefined>;
|
|
383
|
+
}
|
|
384
|
+
interface CwdSwapMeta {
|
|
385
|
+
previousCwd: string;
|
|
386
|
+
newCwd: string;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Route a message to target agents via agent.sendMessage.
|
|
390
|
+
*
|
|
391
|
+
* Fans out to all agents in parallel. On routing failure, marks agent as errored
|
|
392
|
+
* and checks for turn completion.
|
|
393
|
+
*
|
|
394
|
+
* For fork sessions on their first turn, assembles projected context from parent chain.
|
|
395
|
+
* @param bus - Bus instance for communication
|
|
396
|
+
* @param session - Session metadata (for fork detection)
|
|
397
|
+
* @param agents - Target agents to route to
|
|
398
|
+
* @param message - Message content to send
|
|
399
|
+
* @param messageId - Message identifier
|
|
400
|
+
* @param turn - Turn tracking object
|
|
401
|
+
* @param deliveryMode - How to deliver the message
|
|
402
|
+
* @param onTurnComplete - Callback when turn completes (all agents done)
|
|
403
|
+
* @param sessionContext - Session context with curated messageHistory and decision signals
|
|
404
|
+
* @param turnContextEnricher - Optional enricher for immediate message context
|
|
405
|
+
* @param isNewTurn - Whether this is the first message in a new turn
|
|
406
|
+
* @param recoveryContext - Context enriched with messageHistory for agents that were just recovered
|
|
407
|
+
* @param recoveredAgentIds - Set of agent IDs that were recovered in this handler invocation
|
|
408
|
+
* @param swappedAgentIds - Set of agent IDs that swapped connector due to cwd mismatch
|
|
409
|
+
* @param swappedAgentCwd - Previous/new cwd metadata keyed by agent ID
|
|
410
|
+
* @param freshMessageHistory - Curated history for agents forced into fresh mode
|
|
411
|
+
* @param responseSchema - Optional structured output descriptor for the turn
|
|
412
|
+
*/
|
|
413
|
+
declare function routeToAgents(bus: IMakaioBus, session: IMakaioSession, agents: MakaioSessionAgent[], message: MessageInput, messageId: string, turn: Turn$1, deliveryMode: 'enqueue' | 'immediate' | undefined, onTurnComplete: (turn: Turn$1, result: {
|
|
414
|
+
success: boolean;
|
|
415
|
+
errors: string[];
|
|
416
|
+
}) => Promise<void>, sessionContext?: SessionContext, turnContextEnricher?: ITurnContextEnricher, isNewTurn?: boolean, recoveryContext?: SessionContext, recoveredAgentIds?: ReadonlySet<string>, swappedAgentIds?: ReadonlySet<string>, swappedAgentCwd?: ReadonlyMap<string, CwdSwapMeta>, freshMessageHistory?: Message[], responseSchema?: ResponseSchemaDescriptor): Promise<void>;
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region services/core/src/session/handlers/route-to-agents-core.d.ts
|
|
419
|
+
/**
|
|
420
|
+
* Route a message to target agents using a single shared session context.
|
|
421
|
+
*
|
|
422
|
+
* Fans out to all agents in parallel. On routing failure, marks the agent
|
|
423
|
+
* as errored and checks for turn completion. On `HookAbortError`, marks
|
|
424
|
+
* the agent as completed with `cancelled` outcome.
|
|
425
|
+
* @param bus - Bus instance for communication
|
|
426
|
+
* @param session - Session metadata (for session ID)
|
|
427
|
+
* @param agents - Target agents to route to
|
|
428
|
+
* @param message - Message content to send
|
|
429
|
+
* @param messageId - Message identifier
|
|
430
|
+
* @param turn - Turn tracking object
|
|
431
|
+
* @param deliveryMode - How to deliver the message to the agent
|
|
432
|
+
* @param onTurnComplete - Callback invoked when the turn completes (all agents done)
|
|
433
|
+
* @param sessionContext - Optional shared session context forwarded to all agents
|
|
434
|
+
* @param responseSchema - Optional structured output descriptor for the turn
|
|
435
|
+
*/
|
|
436
|
+
declare function routeToAgentsCore(bus: IMakaioBus, session: IMakaioSession, agents: MakaioSessionAgent[], message: MessageInput, messageId: string, turn: Turn$1, deliveryMode: 'enqueue' | 'immediate' | undefined, onTurnComplete: TurnCompleteCallback, sessionContext?: SessionContext, responseSchema?: ResponseSchemaDescriptor): Promise<void>;
|
|
437
|
+
//#endregion
|
|
438
|
+
export { registerCompressHandler as a, SessionTurnManager as c, Turn$1 as d, TurnConfig as f, TurnStateChange as h, registerForkHandler as i, TurnCompleteCallback as l, TurnResult as m, routeToAgents as n, registerAttachHandler as o, TurnContext as p, registerMergeHandler as r, registerAbandonHandler as s, routeToAgentsCore as t, TurnCompletionResult as u };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import * as _$zod from "zod";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
4
|
+
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
5
|
+
|
|
6
|
+
//#region core/contracts/src/telemetry/namespace.d.ts
|
|
7
|
+
/** Framework contract namespace for sanitized bus subject telemetry facts. */
|
|
8
|
+
declare const SubjectTelemetryNamespace: _$_makaio_core0.BusNamespaceDefinition<"subject-telemetry", {
|
|
9
|
+
fact: _$_makaio_core0.CollectorOnlySubjectSchema<_$zod.ZodObject<{
|
|
10
|
+
factId: _$zod.ZodString;
|
|
11
|
+
observedAt: _$zod.ZodNumber;
|
|
12
|
+
machineId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
13
|
+
namespace: _$zod.ZodString;
|
|
14
|
+
subject: _$zod.ZodString;
|
|
15
|
+
messageType: _$zod.ZodEnum<{
|
|
16
|
+
request: "request";
|
|
17
|
+
event: "event";
|
|
18
|
+
broadcast: "broadcast";
|
|
19
|
+
}>;
|
|
20
|
+
direction: _$zod.ZodEnum<{
|
|
21
|
+
local: "local";
|
|
22
|
+
outbound: "outbound";
|
|
23
|
+
inbound: "inbound";
|
|
24
|
+
}>;
|
|
25
|
+
messageId: _$zod.ZodString;
|
|
26
|
+
correlationId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
27
|
+
attributes: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodNull, _$zod.ZodArray<_$zod.ZodString>, _$zod.ZodArray<_$zod.ZodNumber>, _$zod.ZodArray<_$zod.ZodBoolean>, _$zod.ZodArray<_$zod.ZodNull>]>>;
|
|
28
|
+
}, _$zod_v4_core0.$strict>>;
|
|
29
|
+
}>;
|
|
30
|
+
/** Typed subjects for sanitized bus subject telemetry facts. */
|
|
31
|
+
declare const SubjectTelemetrySubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"subject-telemetry", {
|
|
32
|
+
fact: _$_makaio_core0.CollectorOnlySubjectSchema<_$zod.ZodObject<{
|
|
33
|
+
factId: _$zod.ZodString;
|
|
34
|
+
observedAt: _$zod.ZodNumber;
|
|
35
|
+
machineId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
36
|
+
namespace: _$zod.ZodString;
|
|
37
|
+
subject: _$zod.ZodString;
|
|
38
|
+
messageType: _$zod.ZodEnum<{
|
|
39
|
+
request: "request";
|
|
40
|
+
event: "event";
|
|
41
|
+
broadcast: "broadcast";
|
|
42
|
+
}>;
|
|
43
|
+
direction: _$zod.ZodEnum<{
|
|
44
|
+
local: "local";
|
|
45
|
+
outbound: "outbound";
|
|
46
|
+
inbound: "inbound";
|
|
47
|
+
}>;
|
|
48
|
+
messageId: _$zod.ZodString;
|
|
49
|
+
correlationId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
50
|
+
attributes: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodNull, _$zod.ZodArray<_$zod.ZodString>, _$zod.ZodArray<_$zod.ZodNumber>, _$zod.ZodArray<_$zod.ZodBoolean>, _$zod.ZodArray<_$zod.ZodNull>]>>;
|
|
51
|
+
}, _$zod_v4_core0.$strict>>;
|
|
52
|
+
}>, "subject-telemetry">;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region core/contracts/src/telemetry/schemas.d.ts
|
|
55
|
+
/**
|
|
56
|
+
* Scalar attribute value allowed in a telemetry fact.
|
|
57
|
+
*
|
|
58
|
+
* Restricted to primitives and homogeneous primitive arrays so that the
|
|
59
|
+
* telemetry sink can safely serialize without inspecting arbitrary objects.
|
|
60
|
+
*/
|
|
61
|
+
declare const SubjectTelemetryAttributeValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodNull>]>;
|
|
62
|
+
/** Inferred TypeScript type for a sanitized attribute value. */
|
|
63
|
+
type SubjectTelemetryAttributeValue = z.infer<typeof SubjectTelemetryAttributeValueSchema>;
|
|
64
|
+
/**
|
|
65
|
+
* Bus message kind projected into a telemetry fact.
|
|
66
|
+
* Covers local bus API entrypoints observed by this MVP.
|
|
67
|
+
*/
|
|
68
|
+
declare const SubjectTelemetryMessageTypeSchema: z.ZodEnum<{
|
|
69
|
+
request: "request";
|
|
70
|
+
event: "event";
|
|
71
|
+
broadcast: "broadcast";
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Flow direction of the observed message at the source runtime.
|
|
75
|
+
*
|
|
76
|
+
* - `local` — originated and consumed within the same runtime.
|
|
77
|
+
* - `outbound` — dispatched to a remote peer.
|
|
78
|
+
* - `inbound` — received from a remote peer.
|
|
79
|
+
*/
|
|
80
|
+
declare const SubjectTelemetryDirectionSchema: z.ZodEnum<{
|
|
81
|
+
local: "local";
|
|
82
|
+
outbound: "outbound";
|
|
83
|
+
inbound: "inbound";
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Sanitized bus subject telemetry fact schema.
|
|
87
|
+
*
|
|
88
|
+
* A fact captures the observable, non-sensitive metadata of a single bus
|
|
89
|
+
* message. All payload content is excluded; only correlation handles and
|
|
90
|
+
* namespace-approved scalar attributes are present.
|
|
91
|
+
*/
|
|
92
|
+
declare const SubjectTelemetryFactSchema: z.ZodObject<{
|
|
93
|
+
factId: z.ZodString;
|
|
94
|
+
observedAt: z.ZodNumber;
|
|
95
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
96
|
+
namespace: z.ZodString;
|
|
97
|
+
subject: z.ZodString;
|
|
98
|
+
messageType: z.ZodEnum<{
|
|
99
|
+
request: "request";
|
|
100
|
+
event: "event";
|
|
101
|
+
broadcast: "broadcast";
|
|
102
|
+
}>;
|
|
103
|
+
direction: z.ZodEnum<{
|
|
104
|
+
local: "local";
|
|
105
|
+
outbound: "outbound";
|
|
106
|
+
inbound: "inbound";
|
|
107
|
+
}>;
|
|
108
|
+
messageId: z.ZodString;
|
|
109
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodNull>]>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
/** Inferred TypeScript type for a sanitized bus subject telemetry fact. */
|
|
113
|
+
type SubjectTelemetryFact = z.infer<typeof SubjectTelemetryFactSchema>;
|
|
114
|
+
/**
|
|
115
|
+
* Subject telemetry domain bus schemas aggregate.
|
|
116
|
+
*
|
|
117
|
+
* Each key becomes a subject identifier as `subject-telemetry.<key>`.
|
|
118
|
+
*/
|
|
119
|
+
declare const SubjectTelemetrySchemas: {
|
|
120
|
+
/**
|
|
121
|
+
* A single sanitized telemetry fact emitted by the projection layer.
|
|
122
|
+
* Event: transport-ingestable by collectors, never laterally relayed.
|
|
123
|
+
*/
|
|
124
|
+
fact: _$_makaio_core0.CollectorOnlySubjectSchema<z.ZodObject<{
|
|
125
|
+
factId: z.ZodString;
|
|
126
|
+
observedAt: z.ZodNumber;
|
|
127
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
128
|
+
namespace: z.ZodString;
|
|
129
|
+
subject: z.ZodString;
|
|
130
|
+
messageType: z.ZodEnum<{
|
|
131
|
+
request: "request";
|
|
132
|
+
event: "event";
|
|
133
|
+
broadcast: "broadcast";
|
|
134
|
+
}>;
|
|
135
|
+
direction: z.ZodEnum<{
|
|
136
|
+
local: "local";
|
|
137
|
+
outbound: "outbound";
|
|
138
|
+
inbound: "inbound";
|
|
139
|
+
}>;
|
|
140
|
+
messageId: z.ZodString;
|
|
141
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
142
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodNull>]>>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
144
|
+
};
|
|
145
|
+
//#endregion
|
|
146
|
+
export { SubjectTelemetryFactSchema as a, SubjectTelemetryNamespace as c, SubjectTelemetryFact as i, SubjectTelemetrySubjects as l, SubjectTelemetryAttributeValueSchema as n, SubjectTelemetryMessageTypeSchema as o, SubjectTelemetryDirectionSchema as r, SubjectTelemetrySchemas as s, SubjectTelemetryAttributeValue as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IMakaioBus } from "@makaio/framework/bus";
|
|
2
|
+
import { BaseService } from "@makaio/framework/service-base";
|
|
3
|
+
|
|
4
|
+
//#region services/core/src/tray-menu/tray-menu-service.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* In-memory registry for package-contributed tray menu entries.
|
|
7
|
+
*
|
|
8
|
+
* Registrations are idempotent and keyed by owning package. The service owns
|
|
9
|
+
* tray menu state for every host surface; renderers consume it through the
|
|
10
|
+
* `host:tray.list` RPC and observe mutations through `host:tray.changed`.
|
|
11
|
+
*/
|
|
12
|
+
declare class TrayMenuService extends BaseService {
|
|
13
|
+
/** Dependency tokens required before this service. */
|
|
14
|
+
static readonly needs: readonly [];
|
|
15
|
+
static readonly critical: true;
|
|
16
|
+
/**
|
|
17
|
+
* Factory for DI container startup.
|
|
18
|
+
* @param ctx - Start context providing the bus
|
|
19
|
+
* @returns Initialized TrayMenuService instance
|
|
20
|
+
*/
|
|
21
|
+
static create(ctx: {
|
|
22
|
+
bus: IMakaioBus;
|
|
23
|
+
}): Promise<TrayMenuService>;
|
|
24
|
+
private readonly entries;
|
|
25
|
+
private readonly groups;
|
|
26
|
+
private readonly groupEntryIds;
|
|
27
|
+
/**
|
|
28
|
+
* Create a tray menu service.
|
|
29
|
+
* @param bus - Bus instance used for tray menu subjects
|
|
30
|
+
*/
|
|
31
|
+
constructor(bus: IMakaioBus);
|
|
32
|
+
protected onInit(): void;
|
|
33
|
+
protected onDestroy(): void;
|
|
34
|
+
private listEntries;
|
|
35
|
+
private assertEntryCanRegister;
|
|
36
|
+
private assertGroupCanRegister;
|
|
37
|
+
private collectGroupEntryIds;
|
|
38
|
+
private emitChanged;
|
|
39
|
+
private entryKey;
|
|
40
|
+
private groupKey;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { TrayMenuService as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region core/contracts/src/timeout/schemas.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Categories of timeouts in the adapter lifecycle.
|
|
6
|
+
*/
|
|
7
|
+
type TimeoutCategory = 'initialization' | 'acknowledgement' | 'completion' | 'toolApproval' | 'eventWait';
|
|
8
|
+
/**
|
|
9
|
+
* Complete timeout configuration where all categories are required.
|
|
10
|
+
*/
|
|
11
|
+
type RequiredTimeoutConfig = Record<TimeoutCategory, number>;
|
|
12
|
+
/**
|
|
13
|
+
* Partial timeout configuration for user overrides.
|
|
14
|
+
*/
|
|
15
|
+
type TimeoutConfig = Partial<RequiredTimeoutConfig>;
|
|
16
|
+
/**
|
|
17
|
+
* Zod schema for timeout configuration validation.
|
|
18
|
+
*
|
|
19
|
+
* Each field represents a distinct phase in the adapter lifecycle
|
|
20
|
+
* with different performance characteristics and failure modes.
|
|
21
|
+
* All values are in milliseconds.
|
|
22
|
+
*
|
|
23
|
+
* Contracts owns this public shape so downstream consumers do not need utility
|
|
24
|
+
* implementation packages to resolve generated declarations.
|
|
25
|
+
*/
|
|
26
|
+
declare const TimeoutConfigSchema: z.ZodType<TimeoutConfig>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { TimeoutConfigSchema as i, TimeoutCategory as n, TimeoutConfig as r, RequiredTimeoutConfig as t };
|