@makaio/framework 1.0.0-dev-1784154668798 → 1.0.0-dev-1784706768858
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/{adapter-B9vVBwli.mjs → adapter-CYobxqN_.mjs} +1 -1
- package/dist/adapters/claude/index.mjs +2 -2
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.mjs +2 -2
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/artifact-DCkizHkS.mjs +1 -0
- package/dist/attach-error-DCnzW-Yz.mjs +1 -0
- package/dist/authority-state-bootstrap-C_-F_dtq.mjs +1 -0
- package/dist/bus/index.d.mts +99 -4
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-B6SAjgOC.mjs +2 -0
- package/dist/bus-C2l3K74u.mjs +1 -0
- package/dist/{canonical-model-C31NaBJs.mjs → canonical-model-EMRYCVjX.mjs} +1 -1
- package/dist/client-OYk0Ttck.mjs +1 -0
- package/dist/client-binary-version-verifier-Dv7TGFxh.mjs +2 -0
- package/dist/clients/index.d.mts +383 -13
- package/dist/clients/index.mjs +1 -1
- package/dist/clients/managed-install.d.mts +1 -1
- package/dist/clients/managed-install.mjs +1 -1
- package/dist/{context-resolution-D5jHK1w-.d.mts → context-resolution-DZSBOCKY.d.mts} +10 -10
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -2
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/client/index.d.mts +3 -3
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +5 -4
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +133 -94
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +4 -4
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/model-registry/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +2 -2
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/telemetry/index.d.mts +1 -1
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/core/index.d.mts +78 -3
- package/dist/core/index.mjs +1 -1
- package/dist/{detached-extension-handle-BVM-Ic-4.mjs → detached-extension-handle-BsywhHfk.mjs} +1 -1
- package/dist/{filesystem-service-qR9Zy5-r.mjs → filesystem-service-Cupz_Z7S.mjs} +1 -1
- package/dist/git/index.mjs +1 -1
- package/dist/{globby-DE358g5u.mjs → globby-DWp7V-P2.mjs} +1 -1
- package/dist/handlers-cMBmexF4.mjs +57 -0
- package/dist/hook-responses-mmqRa2Dq.d.mts +825 -0
- package/dist/{index-Du-AJm69.d.mts → index-0Ju2i8gV.d.mts} +20 -6
- package/dist/{index-DD9inq5h.d.mts → index-4NQLoI7R.d.mts} +1 -1
- package/dist/{index-DAVLhzkq.d.mts → index-8fJ6dkzR.d.mts} +2 -1
- package/dist/{index-BdsuBxEz.d.mts → index-BHQXXd-O.d.mts} +4 -4
- package/dist/{index-ZGPSCZdC.d.mts → index-BKeJ-Act.d.mts} +24 -10
- package/dist/{index-BPBSMsc8.d.mts → index-BWvTZJxe.d.mts} +20 -20
- package/dist/{index-BM7u_OTo.d.mts → index-B_aBwkE-.d.mts} +111 -94
- package/dist/{index-ChB3K_a12.d.mts → index-BhXCCgJV2.d.mts} +1 -1
- package/dist/{index-BcqWLD6J.d.mts → index-BsBvs0aK.d.mts} +117 -45
- package/dist/{index-D_lLZ2dU.d.mts → index-C81hMexK.d.mts} +129 -37
- package/dist/{index-DoJRv-c3.d.mts → index-CFqShlHD.d.mts} +85 -85
- package/dist/{index-DHejCnq8.d.mts → index-CHxWUmmA.d.mts} +3 -3
- package/dist/{index-BfNfKh4y.d.mts → index-CKccv4s2.d.mts} +20 -26
- package/dist/{index-TWs1TQ2-.d.mts → index-Cw7_69gV.d.mts} +1 -1
- package/dist/{index-DE29b4QM.d.mts → index-CzKLLQLw.d.mts} +8 -8
- package/dist/{index-CSyR9Fie2.d.mts → index-D73PTKXG2.d.mts} +3 -3
- package/dist/{index-DA5S_dj8.d.mts → index-DRiTICBU.d.mts} +1 -1
- package/dist/{index-XzetMf0e.d.mts → index-DitLUuR5.d.mts} +126 -42
- package/dist/{index-B_KmL_z8.d.mts → index-jbgHR5J2.d.mts} +1 -1
- package/dist/{index-B96HlWaM.d.mts → index-pjATMrvJ.d.mts} +10 -4
- package/dist/{index-CrbFA2kp.d.mts → index-t9fTvyq6.d.mts} +4 -4
- package/dist/kernel/cli/index.d.mts +2 -2
- package/dist/kernel/cli/register.d.mts +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +5 -5
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/{lib-DhbCgfYD.mjs → lib-B7TpTzkG.mjs} +3 -3
- package/dist/{lib-6P8_sBCe.mjs → lib-BeMM738r.mjs} +1 -1
- package/dist/{load-extensions-jGQgvw6Z.d.mts → load-extensions-BLdG90Zi.d.mts} +1 -1
- package/dist/{load-extensions-5VckHXuw.mjs → load-extensions-CUmFCcYi.mjs} +1 -1
- package/dist/materialization-s8eR1eQ4.mjs +1 -0
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/{namespace-C_phrzqu2.d.mts → namespace-BWsPZGiq2.d.mts} +5 -5
- package/dist/{namespace-CzZmsumy.d.mts → namespace-BeV7LST-.d.mts} +2 -2
- package/dist/{namespace-BTp6-zD8.d.mts → namespace-BsF9IxJ9.d.mts} +53 -5
- package/dist/{namespace-CpSZfHLv.d.mts → namespace-Db_PFX3v.d.mts} +36 -18
- package/dist/{namespace-Bldr5X64.d.mts → namespace-Dvo_7BQw.d.mts} +2 -2
- package/dist/{namespace-BwAiuQ2_.d.mts → namespace-lWlqWTKu.d.mts} +48 -4
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/index.mjs +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.mjs +1 -1
- package/dist/node/transports/index.d.mts +5 -3
- package/dist/node/transports/index.mjs +2 -2
- package/dist/package-DKnzOvoR.mjs +1 -0
- package/dist/{package-Brt4dhRC.mjs → package-DW1Upu8E.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/{packages-BBJsifai.d.mts → packages-DeIgn0Hn.d.mts} +2 -2
- package/dist/packages-zDnokBpl.mjs +1 -0
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-bun/index.mjs +1 -1
- package/dist/runtime-node/extension-discovery.d.mts +1 -1
- package/dist/runtime-node/extension-validation.d.mts +1 -1
- package/dist/runtime-node/extension-validation.mjs +1 -1
- package/dist/runtime-node/index.d.mts +3 -3
- package/dist/runtime-node/index.mjs +22 -22
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/makaio-config.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/schemas-BJ8VMXhO.mjs +1 -0
- package/dist/schemas-BRxU_oqL.mjs +1 -0
- package/dist/schemas-Dgj3WaOI.mjs +1 -0
- package/dist/{schemas-BLJ2k226.d.mts → schemas-SsGbBOZ-.d.mts} +2 -2
- package/dist/{schemas-Ca3BLPH5.d.mts → schemas-oTIqxZN_.d.mts} +17 -17
- package/dist/scoped-bus-C9BdNwfM.mjs +1 -0
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +3 -3
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/capability/index.d.mts +1 -1
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/codebase/index.d.mts +2 -2
- package/dist/services/codebase/namespace.d.mts +1 -1
- package/dist/services/codebase/schemas.d.mts +1 -1
- package/dist/services/compression/index.d.mts +2 -2
- package/dist/services/compression/namespace.d.mts +1 -1
- package/dist/services/compression/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +4 -4
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- 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/filesystem/index.d.mts +1 -1
- package/dist/services/filesystem/index.mjs +1 -1
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +73 -51
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/materialization/index.d.mts +5 -5
- package/dist/services/materialization/index.mjs +1 -1
- package/dist/services/model-registry/index.d.mts +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/provider-runtime/index.mjs +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +2 -2
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.d.mts +3 -3
- package/dist/services/settings/namespace.d.mts +14 -14
- package/dist/services/settings/namespace.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/settings/storage/index.d.mts +3 -3
- package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
- package/dist/services/subagent/index.d.mts +1 -1
- package/dist/services/subagent/index.mjs +1 -1
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- package/dist/services/tray-menu/index.mjs +1 -1
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/services/turn/schemas.d.mts +24 -2
- package/dist/services/turn/schemas.mjs +1 -1
- package/dist/{session-BxWogVkD.mjs → session-Carng3Yk.mjs} +1 -1
- package/dist/session-idI1jk5X.mjs +76 -0
- package/dist/{session-lineage-CWlcOKBZ.d.mts → session-lineage-Cte63dGx.d.mts} +1 -1
- package/dist/src-XihJcAQS.mjs +1 -0
- package/dist/storage/drizzle/client.d.mts +1 -1
- package/dist/storage/drizzle/client.mjs +1 -1
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/index.d.mts +1 -1
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/{tool-approval-service-BgSn_6NT.mjs → tool-approval-service-fIZ9x0kL.mjs} +1 -1
- package/dist/{tools-CWSuNk-M.mjs → tools-Cs2DwjCC.mjs} +1 -1
- package/dist/{transition-CukPcOG5.d.mts → transition-BMYk_IVK.d.mts} +2 -2
- package/dist/{types-DiZJnwN0.d.mts → types-CtSkJqzV.d.mts} +104 -14
- package/dist/{types-Be7wY1De.d.mts → types-LspCUW09.d.mts} +1 -1
- package/dist/ui-components/index.d.mts +4 -4
- package/dist/ui-components/index.mjs +2 -2
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{view-builder-DQiA4wDH.d.mts → view-builder-CpKzgyS2.d.mts} +77 -18
- package/dist/workflow-BX-FxDb0.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +76 -76
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/workflow-worker-DR9qYOFc.mjs +1 -0
- package/package.json +4 -4
- package/dist/artifact-Dnpy5ei_.mjs +0 -1
- package/dist/authority-state-bootstrap-BlbmQ9A5.mjs +0 -1
- package/dist/bus-D-ioC0DE.mjs +0 -1
- package/dist/bus-rgUFuO2a.mjs +0 -2
- package/dist/client-CzPCSeyE.mjs +0 -1
- package/dist/client-binary-version-verifier-CaFlNNjs.mjs +0 -2
- package/dist/definition-ClKlXenJ.d.mts +0 -413
- package/dist/handlers-RGs3eC9X.mjs +0 -57
- package/dist/materialization-BBxXhthv.mjs +0 -1
- package/dist/package-3cW8oIkI.mjs +0 -1
- package/dist/packages-I0D3JP9L.mjs +0 -1
- package/dist/schemas-6H-dlMrB.mjs +0 -1
- package/dist/schemas-DyJHJ8Pm.mjs +0 -1
- package/dist/schemas-th_nuC5t.mjs +0 -1
- package/dist/scoped-bus-CZId-Df8.mjs +0 -1
- package/dist/session-CAjudDuJ.mjs +0 -76
- package/dist/src-T5DtFSyU.mjs +0 -1
- package/dist/workflow-DPeE6-Ta.mjs +0 -1
- package/dist/workflow-worker-CPCh68Qf.mjs +0 -1
- /package/dist/{adapter-auth-runtime-CotG_6M4.mjs → adapter-auth-runtime-DFBLXD5K.mjs} +0 -0
- /package/dist/{adapter-binding-DQ1HrGcH.d.mts → adapter-binding-Dfk_g-lP.d.mts} +0 -0
- /package/dist/{ajv-WvFKnw8d.mjs → ajv-C8r45sFs.mjs} +0 -0
- /package/dist/{await-trigger-COHFNyNi.mjs → await-trigger-UceeyCyi.mjs} +0 -0
- /package/dist/{base-orchestrator-p3zIcnaJ.d.mts → base-orchestrator-5yH3l39s.d.mts} +0 -0
- /package/dist/{capability-service-TCOwWrLi.mjs → capability-service-BzKBK0n2.mjs} +0 -0
- /package/dist/{client-CGEyBWKl.d.mts → client-DYEHDiJN.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-WsNRplFB.d.mts → client-binary-version-verifier-C12PvQmz.d.mts} +0 -0
- /package/dist/{clients-namespace-ClKm1GLT.d.mts → clients-namespace-DcFmhtLv.d.mts} +0 -0
- /package/dist/{config-namespace-DOw8R5eb.d.mts → config-namespace-DmP7NVju.d.mts} +0 -0
- /package/dist/{create-static-mount-DM9qO98Q.mjs → create-static-mount-BLbqGmva.mjs} +0 -0
- /package/dist/{cross-spawn-CVfmnMVP.mjs → cross-spawn-BXxQUsPS.mjs} +0 -0
- /package/dist/{cursor-storage-BoFVjVGq.mjs → cursor-storage-DCj4uUxr.mjs} +0 -0
- /package/dist/{definition-BZrouYAq.d.mts → definition-BEvV7tbD.d.mts} +0 -0
- /package/dist/{descriptor-to-package-DCwvJoUE.mjs → descriptor-to-package-VfB8lK5w.mjs} +0 -0
- /package/dist/{drizzle-BQDvlDL2.mjs → drizzle-oCH9H53q.mjs} +0 -0
- /package/dist/{esm-1UzF2r1U.mjs → esm-ClQELElL.mjs} +0 -0
- /package/dist/{event-Ddxe4yp9.mjs → event-BOLVCfhH.mjs} +0 -0
- /package/dist/{execution-target-D6PoGaO8.mjs → execution-target-CsZXIvli.mjs} +0 -0
- /package/dist/{extension-discovery-Cce4FmRu.d.mts → extension-discovery-B6p3iZaV.d.mts} +0 -0
- /package/dist/{filesystem-service-CWBzOEAA.d.mts → filesystem-service-CGdboor3.d.mts} +0 -0
- /package/dist/{handler-Bxs0moLY.mjs → handler-GGOD_ofd.mjs} +0 -0
- /package/dist/{identity-D481xSkS.mjs → identity-BmEHHoBw.mjs} +0 -0
- /package/dist/{index-BoCL9IHT.d.mts → index-BDDbcWNI.d.mts} +0 -0
- /package/dist/{index-p1N3ZuqF.d.mts → index-BG9-vQHD.d.mts} +0 -0
- /package/dist/{index-C2PHX5Em.d.mts → index-BSmwpgkR.d.mts} +0 -0
- /package/dist/{index-M8rNEeH8.d.mts → index-BUYyZm5I.d.mts} +0 -0
- /package/dist/{index-Jec13bI-2.d.mts → index-Bd1GC1kU2.d.mts} +0 -0
- /package/dist/{index-D3cH5U0n.d.mts → index-BgpYhR2z.d.mts} +0 -0
- /package/dist/{index-BrvsExEF.d.mts → index-Brdc35b-.d.mts} +0 -0
- /package/dist/{index-4b-ig5Uf.d.mts → index-C96LlS5m.d.mts} +0 -0
- /package/dist/{index-RtP5Mi4D.d.mts → index-CFeY8lfU.d.mts} +0 -0
- /package/dist/{index-NZ-gfUOw.d.mts → index-CcsJnJOD.d.mts} +0 -0
- /package/dist/{index-XLGBNeu0.d.mts → index-CdEhEXlY.d.mts} +0 -0
- /package/dist/{index-DKCFz7dL.d.mts → index-Chy9aknK.d.mts} +0 -0
- /package/dist/{index-BRdPSBFH2.d.mts → index-Ci3_i-WC2.d.mts} +0 -0
- /package/dist/{index-ChsmMZmN.d.mts → index-DC0yVsYL.d.mts} +0 -0
- /package/dist/{index-DIAmg04s.d.mts → index-DEchpaya.d.mts} +0 -0
- /package/dist/{index-CNS1jyBU.d.mts → index-DYUxNOIX.d.mts} +0 -0
- /package/dist/{index-fFSPF7N0.d.mts → index-DaMfTvfz.d.mts} +0 -0
- /package/dist/{index-Dx6P-ajY.d.mts → index-DquI_1X5.d.mts} +0 -0
- /package/dist/{index-DbP0yaRw.d.mts → index-GYZs75UP.d.mts} +0 -0
- /package/dist/{index-CQco6KNL.d.mts → index-oYGf2zIe.d.mts} +0 -0
- /package/dist/{index-BOlzcjwS.d.mts → index-pgYFJ5h6.d.mts} +0 -0
- /package/dist/{json-value-BsWNQQbr.d.mts → json-value-BwVdTylT.d.mts} +0 -0
- /package/dist/{jsonl-transport-B70HQ9l1.mjs → jsonl-transport-D8RBF0dK.mjs} +0 -0
- /package/dist/{lib-C_apP_9s.mjs → lib-3_xcE8J-.mjs} +0 -0
- /package/dist/{model-registry-C3NX834K.mjs → model-registry-CoegIvks.mjs} +0 -0
- /package/dist/{namespace-Bogua97s.d.mts → namespace-8-GrdcbF.d.mts} +0 -0
- /package/dist/{namespace-DNgZ_rfi.d.mts → namespace-B9CYb9Gh.d.mts} +0 -0
- /package/dist/{namespace-DDx4NVJm.mjs → namespace-BHj13hbA.mjs} +0 -0
- /package/dist/{namespace-Dzbt8LqQ.d.mts → namespace-BHliaabz.d.mts} +0 -0
- /package/dist/{namespace-BqlDkdht2.d.mts → namespace-BSXHdCVh2.d.mts} +0 -0
- /package/dist/{namespace-CU1jSw6E.d.mts → namespace-Bd49QmzS.d.mts} +0 -0
- /package/dist/{namespace-kIjqar0Y.mjs → namespace-BeED_Ojz.mjs} +0 -0
- /package/dist/{namespace-SwgMs4rw.d.mts → namespace-D9HNjIdc.d.mts} +0 -0
- /package/dist/{namespace-B1_egU5J.mjs → namespace-DWwWnLBu.mjs} +0 -0
- /package/dist/{namespace-UCwUrFRx.d.mts → namespace-De9Mg3zv.d.mts} +0 -0
- /package/dist/{namespace-CddQuUvG.d.mts → namespace-SQAGytmu.d.mts} +0 -0
- /package/dist/{orchestrator-shared-DrEFeZYw.d.mts → orchestrator-shared-BB6j8ezL.d.mts} +0 -0
- /package/dist/{orchestrator-shared-jYk9mi5C.mjs → orchestrator-shared-CY7Tu7kZ.mjs} +0 -0
- /package/dist/{out-B6fO6go6.mjs → out-CFkI17mk.mjs} +0 -0
- /package/dist/{package-BVm1EakP.d.mts → package-BSG1681x.d.mts} +0 -0
- /package/dist/{providers-namespace-Bl3M8Ibo.d.mts → providers-namespace-sPbGcZ6I.d.mts} +0 -0
- /package/dist/{quick-lru-Coxb6GVa.mjs → quick-lru-CTBjxfgD.mjs} +0 -0
- /package/dist/{registry-ElIHcMM2.mjs → registry-Dw6l7k3e.mjs} +0 -0
- /package/dist/{schema-DOPEco97.d.mts → schema-CfMsufSb.d.mts} +0 -0
- /package/dist/{schemas-B3K1ekm7.d.mts → schemas-B4FyOOJj.d.mts} +0 -0
- /package/dist/{schemas-Dq_g7Giu.d.mts → schemas-B5tMYfhC.d.mts} +0 -0
- /package/dist/{schemas-D_H0ztxl.d.mts → schemas-BAvt2HDy.d.mts} +0 -0
- /package/dist/{schemas-FiDj_kLq.mjs → schemas-BGS9RfqV.mjs} +0 -0
- /package/dist/{schemas-BKgUDm_a2.d.mts → schemas-BKKpQC4X2.d.mts} +0 -0
- /package/dist/{schemas-CzT0LApM.d.mts → schemas-ChF2z4RB.d.mts} +0 -0
- /package/dist/{schemas-DfZ85CRF2.d.mts → schemas-CiWCNQ9a2.d.mts} +0 -0
- /package/dist/{schemas-pl0mzEtO.d.mts → schemas-D55eXBgl.d.mts} +0 -0
- /package/dist/{schemas-CVbfHPw-.d.mts → schemas-DYvvMd3c.d.mts} +0 -0
- /package/dist/{schemas-DPosZWw-.d.mts → schemas-Dmij0PIc.d.mts} +0 -0
- /package/dist/{server-lifecycle-DzO3rjKP.d.mts → server-lifecycle-C-3OgoKi.d.mts} +0 -0
- /package/dist/{server-lifecycle-DLdh0-4H.mjs → server-lifecycle-DV6NMsgH.mjs} +0 -0
- /package/dist/{src-Dqa1n_kI.mjs → src-ftBp6GpR.mjs} +0 -0
- /package/dist/{storage-namespace-D4yQ--Sp.d.mts → storage-namespace-9N9R61pI.d.mts} +0 -0
- /package/dist/{storage-namespace-B1_x8Ho2.mjs → storage-namespace-B1GI4elv.mjs} +0 -0
- /package/dist/{storage-namespace-definition-BzSaRLtZ.d.mts → storage-namespace-definition-V8sc3drq.d.mts} +0 -0
- /package/dist/{supports-color-CCdGjFUY.mjs → supports-color-DwW9N6YC.mjs} +0 -0
- /package/dist/{tray-menu-service-BJ9r7IY3.mjs → tray-menu-service-Dgedanv-.mjs} +0 -0
- /package/dist/{types-Diu9uAnB.d.mts → types-Bju4dmAg.d.mts} +0 -0
- /package/dist/{types-C8_OhAFv.d.mts → types-DBb5jY4Z.d.mts} +0 -0
- /package/dist/{types-Bgb8eQkd.d.mts → types-DVLq657Y.d.mts} +0 -0
- /package/dist/{types-B9QOZAZ5.d.mts → types-DkFvBdIY.d.mts} +0 -0
- /package/dist/{window-registry-CHv3cgSN.d.mts → window-registry-Qcnvlhp7.d.mts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-
|
|
1
|
+
import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-B5tMYfhC.mjs";
|
|
2
2
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
3
3
|
import { ProviderContext, ResolvedProviderContext } from "@makaio/framework/contracts";
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransportPeerContext } from "@makaio/framework/core";
|
|
2
2
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
3
3
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
4
|
-
import { AwaitSubagentResponse, CompletionMode, MakaioNodeExtension, PendingRequest, SubagentConfig, SubagentConstraints, SubagentStatus } from "@makaio/framework/contracts";
|
|
4
|
+
import { AwaitSubagentResponse, CompletionMode, MakaioNodeExtension, PendingRequest, SubagentConfig, SubagentConstraints, SubagentStatus, TurnUsage, UsageStats } from "@makaio/framework/contracts";
|
|
5
5
|
import { BaseService } from "@makaio/framework/service-base";
|
|
6
6
|
|
|
7
7
|
//#region services/core/src/subagent/spawn-delegation.d.ts
|
|
@@ -47,7 +47,6 @@ declare class SubagentFailureFinalizationError extends Error {
|
|
|
47
47
|
* - Cleanup on completion/cancellation
|
|
48
48
|
*/
|
|
49
49
|
declare class SubagentService extends BaseService {
|
|
50
|
-
private readonly machineId?;
|
|
51
50
|
private readonly delegationAllowSet;
|
|
52
51
|
private readonly requestHandlerPriority;
|
|
53
52
|
private readonly executionOwnerId;
|
|
@@ -59,7 +58,6 @@ declare class SubagentService extends BaseService {
|
|
|
59
58
|
* Creates a new SubagentService instance.
|
|
60
59
|
* @param bus - The event bus for inter-service communication
|
|
61
60
|
* @param constraints - Subagent execution constraints
|
|
62
|
-
* @param machineId - Optional machine ID for adapter resolution
|
|
63
61
|
* @param delegationAllowSet - Set of peer identities permitted to request
|
|
64
62
|
* spawn or execute on this node from a remote origin. Authenticated
|
|
65
63
|
* `workflow-execution` peers are allowed by identity; this set is for
|
|
@@ -67,7 +65,7 @@ declare class SubagentService extends BaseService {
|
|
|
67
65
|
* @param requestHandlerPriority - Priority for runtime-owned subagent lifecycle RPCs.
|
|
68
66
|
* @param executionOwnerId - Stable identity used to bind spawned execution to this service instance.
|
|
69
67
|
*/
|
|
70
|
-
constructor(bus?: IMakaioBus, constraints?: SubagentConstraints,
|
|
68
|
+
constructor(bus?: IMakaioBus, constraints?: SubagentConstraints, delegationAllowSet?: SpawnDelegationAllowSet, requestHandlerPriority?: number, executionOwnerId?: string);
|
|
71
69
|
/**
|
|
72
70
|
* Grant an authenticated peer permission to delegate spawn/execute requests.
|
|
73
71
|
*
|
|
@@ -117,6 +115,12 @@ declare class SubagentService extends BaseService {
|
|
|
117
115
|
* @returns Error message on failure, otherwise undefined.
|
|
118
116
|
*/
|
|
119
117
|
private executeSpawned;
|
|
118
|
+
/**
|
|
119
|
+
* Attach the child agent and atomically admit its initial task.
|
|
120
|
+
* @param params - Resolved startup inputs and cancellation authority.
|
|
121
|
+
* @returns Error message on failure, otherwise undefined.
|
|
122
|
+
*/
|
|
123
|
+
private attachSpawnedSubagent;
|
|
120
124
|
/**
|
|
121
125
|
* Creates the child session and updates tracked subagent state.
|
|
122
126
|
* @param subagentId - Subagent identifier
|
|
@@ -128,17 +132,6 @@ declare class SubagentService extends BaseService {
|
|
|
128
132
|
* @returns Created child session ID
|
|
129
133
|
*/
|
|
130
134
|
private createChildSessionForSpawn;
|
|
131
|
-
/**
|
|
132
|
-
* Starts the adapter agent in the newly created child session.
|
|
133
|
-
* @param adapterName - Adapter type name
|
|
134
|
-
* @param config - Parsed subagent config
|
|
135
|
-
* @param sessionId - Child session ID
|
|
136
|
-
* @param task - Initial task message
|
|
137
|
-
* @param targetWorkingDirectory - Parent-derived adapter working directory, when present.
|
|
138
|
-
* @returns Resolves when adapter start succeeds
|
|
139
|
-
* @throws Error when adapter startup fails
|
|
140
|
-
*/
|
|
141
|
-
private startAdapterForSubagent;
|
|
142
135
|
/**
|
|
143
136
|
* Marks subagent spawn as failed and emits the lifecycle failure event.
|
|
144
137
|
* @param subagentId - Subagent identifier
|
|
@@ -206,11 +199,11 @@ declare class SubagentService extends BaseService {
|
|
|
206
199
|
*/
|
|
207
200
|
private requestChildSessionClose;
|
|
208
201
|
/**
|
|
209
|
-
* Check whether
|
|
210
|
-
* @param status -
|
|
211
|
-
* @returns True when the subagent
|
|
202
|
+
* Check whether startup must stop for missing or terminal subagent state.
|
|
203
|
+
* @param status - Current tracked subagent status, when still retained.
|
|
204
|
+
* @returns True when the subagent must no longer receive startup work.
|
|
212
205
|
*/
|
|
213
|
-
private
|
|
206
|
+
private shouldAbortSpawn;
|
|
214
207
|
/**
|
|
215
208
|
* Handle adapter session close events to detect dead child processes.
|
|
216
209
|
*
|
|
@@ -220,32 +213,25 @@ declare class SubagentService extends BaseService {
|
|
|
220
213
|
*/
|
|
221
214
|
private handleAdapterSessionClosed;
|
|
222
215
|
/**
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
* Scans non-terminal subagents for one whose `childSessionId` matches the
|
|
226
|
-
* event's `sessionId`. If found and the subagent was spawned with
|
|
227
|
-
* `completion: 'turn'`, terminalizes it based on the turn outcome:
|
|
228
|
-
*
|
|
229
|
-
* - `'completed'` or absent (legacy emitters) → marks completed; result is
|
|
230
|
-
* `payload.message`.
|
|
231
|
-
* - `'error'` → marks failed with `payload.error`.
|
|
232
|
-
* - `'superseded'`, `'merged'`, `'cancelled'`, `'rejected'` → ignored; these
|
|
233
|
-
* are not the subagent's final result.
|
|
234
|
-
*
|
|
235
|
-
* Guards applied before transitioning:
|
|
236
|
-
* - Skips when `sessionId` is absent (malformed event from legacy emitter).
|
|
237
|
-
* - Skips when the subagent is currently in `waiting_input` — the completed
|
|
238
|
-
* turn is the question, not the result.
|
|
239
|
-
* - Skips when `manager.markCompleted` / `manager.markFailed` would throw
|
|
240
|
-
* (subagent already terminal — first-terminal-wins).
|
|
241
|
-
*
|
|
242
|
-
* Both terminal branches emit `subagent.completed` (with `success` set
|
|
243
|
-
* accordingly), the same announcement `completeTask` makes. That event is
|
|
244
|
-
* what drives child-session cleanup (`handleCompleted`) — terminalizing
|
|
245
|
-
* only the manager state would leak the child session and its adapter.
|
|
246
|
-
* @param payload - Payload from the `agent.complete` bus event
|
|
216
|
+
* Record turn-mode completion intent; canonical session completion owns terminalization.
|
|
217
|
+
* @param payload - Correlated agent completion event.
|
|
247
218
|
*/
|
|
248
219
|
private handleAgentComplete;
|
|
220
|
+
/**
|
|
221
|
+
* Reconcile canonical child turn completion with a matching completion intent.
|
|
222
|
+
* @param payload - Persisted session turn completion.
|
|
223
|
+
*/
|
|
224
|
+
private handleSessionTurnCompleted;
|
|
225
|
+
/**
|
|
226
|
+
* Project live child turns so completion RPCs bind to canonical session state.
|
|
227
|
+
* @param payload - Child session turn-start lifecycle event.
|
|
228
|
+
*/
|
|
229
|
+
private handleSessionTurnStarted;
|
|
230
|
+
/**
|
|
231
|
+
* Publish only the terminal snapshot frozen after both completion proofs exist.
|
|
232
|
+
* @param subagentId - Subagent whose proofs may now reconcile.
|
|
233
|
+
*/
|
|
234
|
+
private finalizeSubagentIfReady;
|
|
249
235
|
/**
|
|
250
236
|
* Return true when a handler may proceed.
|
|
251
237
|
*
|
|
@@ -335,6 +321,8 @@ interface TrackedSubagent {
|
|
|
335
321
|
parentSessionId: string;
|
|
336
322
|
/** Child session running this subagent. */
|
|
337
323
|
childSessionId?: string;
|
|
324
|
+
/** Currently active live turn in the managed child session. */
|
|
325
|
+
activeTurnId?: string;
|
|
338
326
|
/** Current status of the subagent. */
|
|
339
327
|
status: SubagentStatus;
|
|
340
328
|
/** Configuration used to spawn this subagent. */
|
|
@@ -358,6 +346,24 @@ interface TrackedSubagent {
|
|
|
358
346
|
* - `'turn'` — first completed agent turn was used as the result.
|
|
359
347
|
*/
|
|
360
348
|
completionSource?: CompletionMode;
|
|
349
|
+
/** Completion request correlated to one child turn until its canonical completion arrives. */
|
|
350
|
+
completionCandidate?: {
|
|
351
|
+
readonly turnId: string;
|
|
352
|
+
readonly result: string;
|
|
353
|
+
readonly summary?: string;
|
|
354
|
+
readonly source: CompletionMode;
|
|
355
|
+
};
|
|
356
|
+
/** Canonical persisted usage snapshots keyed by exact child turn. */
|
|
357
|
+
completedTurnUsage: Map<string, TurnUsage | undefined>;
|
|
358
|
+
/** Canonical terminal success verdict by child turn. */
|
|
359
|
+
completedTurnSuccess: Map<string, {
|
|
360
|
+
readonly success: boolean;
|
|
361
|
+
readonly error?: string;
|
|
362
|
+
}>;
|
|
363
|
+
/** Deduplicated child tool calls observed during execution. */
|
|
364
|
+
toolCallIds: Set<string>;
|
|
365
|
+
/** Immutable economics snapshot frozen at terminal completion. */
|
|
366
|
+
usage?: UsageStats;
|
|
361
367
|
/** Tool outcomes observed directly from the child session runtime. */
|
|
362
368
|
toolObservations: NonNullable<AwaitSubagentResponse['toolObservations']>;
|
|
363
369
|
/** Timestamp when the subagent was spawned. */
|
|
@@ -393,6 +399,8 @@ interface AwaitResult {
|
|
|
393
399
|
* - `'turn'` — first completed agent turn was used as the result.
|
|
394
400
|
*/
|
|
395
401
|
completionSource?: CompletionMode;
|
|
402
|
+
/** Immutable economics snapshot frozen at terminal completion. */
|
|
403
|
+
usage?: UsageStats;
|
|
396
404
|
toolObservations?: NonNullable<AwaitSubagentResponse['toolObservations']>;
|
|
397
405
|
}
|
|
398
406
|
//#endregion
|
|
@@ -439,18 +447,42 @@ declare class SubagentManager {
|
|
|
439
447
|
* @param childSessionId - Session ID created by session service
|
|
440
448
|
*/
|
|
441
449
|
setChildSessionId(subagentId: string, childSessionId: string): void;
|
|
450
|
+
/**
|
|
451
|
+
* Open child-message admission after atomic startup completes.
|
|
452
|
+
* @param subagentId - ID of the subagent whose initial turn is admitted.
|
|
453
|
+
*/
|
|
454
|
+
markStarted(subagentId: string): void;
|
|
442
455
|
/**
|
|
443
456
|
* Get tracked subagent by ID.
|
|
444
457
|
* @param subagentId - ID of the subagent
|
|
445
458
|
* @returns The tracked subagent, or undefined if not found
|
|
446
459
|
*/
|
|
447
460
|
get(subagentId: string): TrackedSubagent | undefined;
|
|
461
|
+
/**
|
|
462
|
+
* Resolve a tracked subagent from its managed child session.
|
|
463
|
+
* @param childSessionId - Managed child session identifier.
|
|
464
|
+
* @returns The owning tracked subagent, when present.
|
|
465
|
+
*/
|
|
466
|
+
getByChildSessionId(childSessionId: string): TrackedSubagent | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* Project a live child-session turn start into managed subagent state.
|
|
469
|
+
* @param childSessionId - Managed child session that started a turn.
|
|
470
|
+
* @param turnId - Canonical active child turn identifier.
|
|
471
|
+
*/
|
|
472
|
+
recordTurnStarted(childSessionId: string, turnId: string): void;
|
|
473
|
+
/**
|
|
474
|
+
* Project a child-session turn completion, clearing only its matching active turn.
|
|
475
|
+
* @param childSessionId - Managed child session that completed a turn.
|
|
476
|
+
* @param turnId - Canonically completed child turn identifier.
|
|
477
|
+
*/
|
|
478
|
+
recordTurnCompleted(childSessionId: string, turnId: string): void;
|
|
448
479
|
/**
|
|
449
480
|
* Record one authoritative child-session tool outcome for terminal handoff.
|
|
450
481
|
* @param childSessionId - Child session whose runtime emitted the outcome.
|
|
451
482
|
* @param observation - Validated outcome and optional authoritative Artifact identity.
|
|
483
|
+
* @param toolCallId - Stable tool-call identity used for replay deduplication.
|
|
452
484
|
*/
|
|
453
|
-
recordToolObservation(childSessionId: string, observation: TrackedSubagent['toolObservations'][number]): void;
|
|
485
|
+
recordToolObservation(childSessionId: string, observation: TrackedSubagent['toolObservations'][number], toolCallId?: string): void;
|
|
454
486
|
/**
|
|
455
487
|
* Return all non-terminal subagents as an array.
|
|
456
488
|
*
|
|
@@ -484,6 +516,12 @@ declare class SubagentManager {
|
|
|
484
516
|
* @param status - New status
|
|
485
517
|
*/
|
|
486
518
|
updateStatus(subagentId: string, status: SubagentStatus): void;
|
|
519
|
+
/**
|
|
520
|
+
* Apply one status transition and its shared terminal-state invariants.
|
|
521
|
+
* @param subagent - Tracked subagent receiving the status.
|
|
522
|
+
* @param status - New lifecycle status.
|
|
523
|
+
*/
|
|
524
|
+
private applyStatus;
|
|
487
525
|
/**
|
|
488
526
|
* Add a progress update to the subagent's ring buffer.
|
|
489
527
|
* @param subagentId - ID of the subagent
|
|
@@ -512,6 +550,36 @@ declare class SubagentManager {
|
|
|
512
550
|
* @throws SubagentError if subagent not found or already in terminal state
|
|
513
551
|
*/
|
|
514
552
|
markCompleted(subagentId: string, result: string, summary?: string, completionSource?: CompletionMode): void;
|
|
553
|
+
/**
|
|
554
|
+
* Record a completion intent for an exact child turn without terminalizing it.
|
|
555
|
+
* @param subagentId - Subagent receiving the completion intent.
|
|
556
|
+
* @param turnId - Exact child turn that must complete canonically.
|
|
557
|
+
* @param result - Candidate terminal result.
|
|
558
|
+
* @param summary - Optional candidate summary.
|
|
559
|
+
* @param source - Mechanism that produced the candidate.
|
|
560
|
+
*/
|
|
561
|
+
recordCompletionCandidate(subagentId: string, turnId: string, result: string, summary: string | undefined, source: CompletionMode): void;
|
|
562
|
+
/**
|
|
563
|
+
* Record the canonical persisted completion for one child turn.
|
|
564
|
+
* @param subagentId - Subagent whose child turn completed.
|
|
565
|
+
* @param turnId - Canonically completed turn identifier.
|
|
566
|
+
* @param usage - Persisted final usage snapshot, when measured.
|
|
567
|
+
* @param success - Canonical turn success verdict.
|
|
568
|
+
* @param error - Canonical failure detail.
|
|
569
|
+
*/
|
|
570
|
+
recordCompletedTurn(subagentId: string, turnId: string, usage: TurnUsage | undefined, success?: boolean, error?: string): void;
|
|
571
|
+
/**
|
|
572
|
+
* Freeze a completed subagent once matching intent and canonical turn proof exist.
|
|
573
|
+
* @param subagentId - Subagent to reconcile.
|
|
574
|
+
* @returns Whether the subagent transitioned to a terminal state.
|
|
575
|
+
*/
|
|
576
|
+
finalizeCompletionIfReady(subagentId: string): boolean;
|
|
577
|
+
/**
|
|
578
|
+
* Build the terminal secret-free economics snapshot.
|
|
579
|
+
* @param subagent - Subagent whose canonical turn usage and tools are frozen.
|
|
580
|
+
* @returns Frozen execution metrics.
|
|
581
|
+
*/
|
|
582
|
+
private freezeUsage;
|
|
515
583
|
/**
|
|
516
584
|
* Mark subagent as failed.
|
|
517
585
|
* Does nothing if subagent not found or already in a terminal state.
|
|
@@ -553,8 +621,12 @@ declare class SubagentManager {
|
|
|
553
621
|
/**
|
|
554
622
|
* Sweep for hung subagents that have had no state activity within the timeout window.
|
|
555
623
|
*
|
|
556
|
-
* Transitions
|
|
624
|
+
* Transitions inactive started, non-terminal subagents to `'hung'`.
|
|
625
|
+
* `spawning` subagents are skipped because atomic startup owns their timeout
|
|
626
|
+
* and child-message admission must remain closed until startup completes.
|
|
557
627
|
* `waiting_input` subagents are skipped — `request_input` owns their timeout.
|
|
628
|
+
* Completion candidates remain stored if `completing` transitions to `hung`, so a late
|
|
629
|
+
* canonical turn proof can still terminalize the exact candidate.
|
|
558
630
|
* Already-hung subagents are also skipped to avoid redundant transitions.
|
|
559
631
|
*
|
|
560
632
|
* The coordinator observes `'hung'` via `getStatus` and decides whether to kill
|