@makaio/framework 1.0.0-dev-1781023871421 → 1.0.0-dev-1781034508425
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/{account-identity-DT5NOtFi.mjs → account-identity-CgzOqnVm.mjs} +1 -1
- package/dist/{adapter-C1eI-fGV.mjs → adapter-Dt2FDMs4.mjs} +1 -1
- package/dist/adapters/acp-client/index.d.mts +4 -4
- 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 +6 -13
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/ajv-B-geJci9.mjs +8 -0
- package/dist/await-trigger-CmK_k2oe.mjs +1 -0
- package/dist/bus/index.d.mts +2 -2
- package/dist/{client-bx74gm4R.mjs → client-BBJf1mVA.mjs} +1 -1
- package/dist/{clients-namespace-GmSJpBUV.d.mts → clients-namespace-DOr4mmmr.d.mts} +7 -7
- 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 +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +1 -1
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/facet/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +192 -192
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/model-registry/index.d.mts +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/skill/index.mjs +1 -1
- package/dist/contracts/telemetry/index.d.mts +1 -1
- package/dist/contracts/telemetry/index.mjs +1 -1
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/toast/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/variant/index.mjs +1 -1
- package/dist/create-static-mount-Btee48F5.mjs +1 -0
- package/dist/cross-spawn-CTptpCy4.mjs +1 -0
- package/dist/{cursor-storage-CtVJ3JzB.mjs → cursor-storage-BOsCO4oj.mjs} +1 -1
- package/dist/{definition-CrgHIpTK.d.mts → definition-BidQ9_x8.d.mts} +1 -1
- package/dist/{definition-BLCdXGzh.d.mts → definition-CWCNiH-q.d.mts} +1 -1
- package/dist/descriptor-to-package-CY8oc2gl.mjs +1 -0
- package/dist/detached-extension-handle-Bo5Q06_g.mjs +1 -0
- package/dist/esm-BdLRFEUy.mjs +3 -0
- package/dist/expression/index.d.mts +120 -0
- package/dist/expression/index.mjs +1431 -0
- package/dist/{extension-C-4BHMRI.mjs → extension-CbCanyuh.mjs} +1 -1
- package/dist/{extension-CpIUgBKI.mjs → extension-DFIZ3FCJ.mjs} +1 -1
- package/dist/extension-discovery-CffOPDvn.d.mts +163 -0
- package/dist/fast-uri-DARKlakU.mjs +1 -0
- package/dist/{filesystem-service-B8rhBRgB.mjs → filesystem-service-B9RbT-n-.mjs} +1 -1
- package/dist/git/index.mjs +17 -17
- package/dist/globby-DPHEhf86.mjs +1 -0
- package/dist/{handlers-CkTsQLra.mjs → handlers-Bl2Af8zt.mjs} +1 -1
- package/dist/{index-CCGVh9BF2.d.mts → index-B-_F8N_E.d.mts} +12 -12
- package/dist/{index-Caig6TeF.d.mts → index-B5lijQs7.d.mts} +93 -17
- package/dist/{index-Bh_Ne7LF.d.mts → index-BF8DYsOC.d.mts} +30 -30
- package/dist/{index-472sOmsW.d.mts → index-BLmI8xDN.d.mts} +4 -4
- package/dist/index-BM7lYmmQ.d.mts +1133 -0
- package/dist/{index-Cm0dUkWL.d.mts → index-BXip2Nlo.d.mts} +18 -18
- package/dist/{index-CelJCBjk.d.mts → index-Brlbx33t.d.mts} +15 -15
- package/dist/{index-B3PK4FIn.d.mts → index-Bs5H4PFm.d.mts} +92 -92
- package/dist/{index-B_zQC98V.d.mts → index-Dnd_-839.d.mts} +8 -8
- package/dist/{index-DUaw0Dw8.d.mts → index-DuIPU8sG.d.mts} +139 -139
- package/dist/{index-Bvb2mMH6.d.mts → index-LbBWaNnT.d.mts} +98 -98
- package/dist/{index-DBw-89vC2.d.mts → index-WZX3cU1L.d.mts} +5 -5
- package/dist/{index-mNec7V-9.d.mts → index-ayGCeZ8t.d.mts} +24 -24
- package/dist/{index-D90OmGmV.d.mts → index-k7SK-A0P.d.mts} +3 -3
- package/dist/{index-soFznFCy2.d.mts → index-o9__SHM7.d.mts} +1 -1
- package/dist/jsonl-transport-DN1zyi6w.mjs +3 -0
- package/dist/kernel/cli/index.d.mts +1 -1
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/schemas.mjs +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/extension/index.mjs +1 -1
- package/dist/kernel/index.d.mts +5 -5
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/namespace/index.mjs +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/providers/index.mjs +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/kernel/window/index.mjs +1 -1
- package/dist/lib--v_LnhHr.mjs +5 -0
- package/dist/lib-DtXofYKC.mjs +4 -0
- package/dist/lib-X80cqNZ5.mjs +155 -0
- package/dist/load-extensions-CESuhxma.mjs +1 -0
- package/dist/load-extensions-t2rtaz1C.d.mts +117 -0
- package/dist/mcp-http-server/index.d.mts +561 -0
- package/dist/mcp-http-server/index.mjs +11 -0
- package/dist/{namespace-Dr8K0MCp.d.mts → namespace-B0l_lsLW.d.mts} +12 -12
- package/dist/{namespace-BM7Djng9.d.mts → namespace-BFM1kQbS.d.mts} +2 -2
- package/dist/{namespace-DgqkaOVu.d.mts → namespace-BnVlQiRv.d.mts} +22 -22
- package/dist/{namespace-CaaNnKcR.d.mts → namespace-BsmSZbub.d.mts} +2 -2
- package/dist/{namespace-DD8Oiqo7.d.mts → namespace-CfqAh9gM.d.mts} +20 -20
- package/dist/{namespace-TyiTsLFv.d.mts → namespace-DldKDPMI.d.mts} +28 -28
- package/dist/{namespace-5QQqbF-B.d.mts → namespace-SD7Y-_iY.d.mts} +36 -36
- package/dist/{namespace-DLovh2Ws.d.mts → namespace-YsOUkmgE.d.mts} +12 -12
- package/dist/{namespace-DuXK5AYN.mjs → namespace-eOeUjGPB.mjs} +1 -1
- package/dist/{namespace-EQniz-Aw.d.mts → namespace-l8A5zTPU2.d.mts} +2 -2
- package/dist/{namespace-CxhsoFUP.d.mts → namespace-sd3QrSzo.d.mts} +20 -20
- package/dist/{native-session-supervisor-B1TnaPUF.mjs → native-session-supervisor-DeKpxhWO.mjs} +1 -1
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/index.mjs +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.mjs +1 -1
- package/dist/{orchestrator-shared-CIDiFJMD.mjs → orchestrator-shared-DaPATFz1.mjs} +1 -1
- package/dist/out-Rp-RSvc2.mjs +41 -0
- package/dist/{profile-6ynCD5k3.mjs → profile-D39-Zy_W.mjs} +1 -1
- package/dist/{provider-context-CK6B4X_8.mjs → provider-context-ClL5nCQg.mjs} +1 -1
- package/dist/quick-lru-8GhFeKMZ.mjs +1 -0
- package/dist/rules/index.d.mts +27 -0
- package/dist/rules/index.mjs +1 -0
- package/dist/rules/schemas.d.mts +2 -0
- package/dist/rules/schemas.mjs +1 -0
- package/dist/runtime-bun/index.d.mts +385 -0
- package/dist/runtime-bun/index.mjs +1 -0
- package/dist/runtime-node/bus/runtime/namespace.d.mts +61 -0
- package/dist/runtime-node/bus/runtime/namespace.mjs +1 -0
- package/dist/runtime-node/bus/runtime/schemas.d.mts +54 -0
- package/dist/runtime-node/bus/runtime/schemas.mjs +1 -0
- package/dist/runtime-node/extension-discovery.d.mts +2 -0
- package/dist/runtime-node/extension-discovery.mjs +1 -0
- package/dist/runtime-node/extension-validation.d.mts +2 -0
- package/dist/runtime-node/extension-validation.mjs +1 -0
- package/dist/runtime-node/index.d.mts +745 -0
- package/dist/runtime-node/index.mjs +148 -0
- package/dist/runtime-node/makaio-config.d.mts +153 -0
- package/dist/runtime-node/makaio-config.mjs +1 -0
- package/dist/runtime-node/workflow-worker/index.d.mts +2 -0
- package/dist/runtime-node/workflow-worker/index.mjs +1 -0
- package/dist/runtime-node/workflow-worker/worker-entry.d.mts +39 -0
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -0
- package/dist/{schema-M5YTvSAG.d.mts → schema-BycLqlQI.d.mts} +2 -2
- package/dist/{schema-e0wU_lcV.mjs → schema-DxHkeT-G.mjs} +1 -1
- package/dist/schema-introspection-A6FnQ1qg.mjs +1 -0
- package/dist/{schemas-C46QfKzv.d.mts → schemas-BI4gqRlW.d.mts} +17 -17
- package/dist/{schemas-DATniTHb.d.mts → schemas-BkeedMoC.d.mts} +7 -7
- package/dist/{schemas-DVF1A4DF.d.mts → schemas-C3wZhEAc.d.mts} +4 -4
- package/dist/{schemas-ClOOT1W6.d.mts → schemas-C4u2d8jR.d.mts} +3 -3
- package/dist/{schemas-CaLhkkLn.mjs → schemas-CSUwpaNm.mjs} +1 -1
- package/dist/{schemas-DiYVzG6e.d.mts → schemas-CaeiaR4r2.d.mts} +15 -15
- package/dist/{schemas-j7ivZ2HI.d.mts → schemas-D7wxjmif.d.mts} +2 -2
- package/dist/schemas-WJ9OOsOF.d.mts +171 -0
- package/dist/{schemas-wg_6PAdV.d.mts → schemas-mD6cFIJs.d.mts} +1 -1
- package/dist/semver-DhHJv6Dt.mjs +1 -0
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/adapter-subsystem/namespace.mjs +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/capability/index.d.mts +1 -1
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/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 +1 -1
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/filesystem/index.mjs +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/harness/index.d.mts +31 -31
- package/dist/services/harness/storage/schema.d.mts +4 -4
- package/dist/services/index.d.mts +99 -98
- 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/model-registry/index.d.mts +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/provider-runtime/index.mjs +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.d.mts +3 -3
- package/dist/services/settings/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +12 -12
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/settings/storage/index.d.mts +3 -3
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/subagent/index.d.mts +1 -1
- package/dist/services/subagent-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 +10 -10
- package/dist/{session-DuVOYctZ.mjs → session-C1Cami7U.mjs} +1 -1
- package/dist/{session-BoldSdNZ2.mjs → session-DOGx_Qrm2.mjs} +1 -1
- package/dist/{skill-CQO4mDqK.mjs → skill-BNQnWVIG.mjs} +1 -1
- package/dist/src-BdKH_3mM.mjs +1 -0
- package/dist/src-CUlokMRL.mjs +21 -0
- package/dist/storage/drizzle/client.d.mts +1 -1
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/index.d.mts +1 -1
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/storage-namespace-DecBVTzH.mjs +1 -0
- package/dist/{storage-namespace-BXkoh5Sy.d.mts → storage-namespace-DyOwnbQO.d.mts} +10 -10
- package/dist/style.css +540 -540
- package/dist/supports-color-CcNsYzyh.mjs +1 -0
- package/dist/{tool-approval-service-BvZWhYZp.mjs → tool-approval-service-DRe1lqy-.mjs} +1 -1
- package/dist/tools-BXEIs_Ur.mjs +1 -0
- package/dist/{types-Dy3YTcTF.d.mts → types-BQB_1_Tv.d.mts} +55 -55
- package/dist/{types-BCMUtBj1.d.mts → types-CLojY5bP.d.mts} +1 -1
- package/dist/{types-CCdqjeuH.d.mts → types-DVAi-qkD.d.mts} +2 -81
- package/dist/{types-DZHvOc_Q.d.mts → types-igF72H-P.d.mts} +1 -1
- package/dist/ui-components/index.d.mts +1 -1
- package/dist/ui-components/index.mjs +2 -2
- package/dist/ui-hooks/index.d.mts +6 -6
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/ui-views/index.mjs +2 -2
- package/dist/version-B4NO_fID.mjs +1 -0
- package/dist/workflow-worker-BWoY_2ue.mjs +1 -0
- package/package.json +53 -1
- package/dist/globby-rtWVaFHv.mjs +0 -41
- package/dist/schema-introspection-Dn1jWQs1.mjs +0 -1
- package/dist/schemas-CVvwIfG4.mjs +0 -1
- package/dist/storage-namespace-DWsYLAXa.mjs +0 -1
- package/dist/tools-D-luYcDw.mjs +0 -1431
- package/dist/version-BeT3ASEe.mjs +0 -1
- /package/dist/{base-orchestrator-wyumsn3b.d.mts → base-orchestrator-D9E-Y8Kr.d.mts} +0 -0
- /package/dist/{capability-service-CJbmhfv9.mjs → capability-service-C2RapAHW.mjs} +0 -0
- /package/dist/{cleanEnvForAdapter-KkYzQa1f.mjs → cleanEnvForAdapter-GVzUk_oB.mjs} +0 -0
- /package/dist/{config-namespace-CPY9YsR8.d.mts → config-namespace-B5fFJwQj.d.mts} +0 -0
- /package/dist/{config-namespace-ncYg2ct_.mjs → config-namespace-DydHz9so.mjs} +0 -0
- /package/dist/{definition-pkJ6szUl.d.mts → definition-C4DLI1SC.d.mts} +0 -0
- /package/dist/{drizzle-Eq8W1EbD.mjs → drizzle-YUDNFNbV.mjs} +0 -0
- /package/dist/{extension-namespace-cMh_mMiL.mjs → extension-namespace-BBgYOttA.mjs} +0 -0
- /package/dist/{facet-BuwhrThl.mjs → facet-DMrryX_0.mjs} +0 -0
- /package/dist/{filesystem-service-p_iJVHd4.d.mts → filesystem-service-Cw4_S1bm.d.mts} +0 -0
- /package/dist/{harness-BRCMcvQN.mjs → harness-B8E_wRwa.mjs} +0 -0
- /package/dist/{host-Br9VuOyr.mjs → host-DbMiI5wQ.mjs} +0 -0
- /package/dist/{index-D9MwJ2Q8.d.mts → index-2mvEGCcP.d.mts} +0 -0
- /package/dist/{index-D5d5HeWI2.d.mts → index-8AU9itst2.d.mts} +0 -0
- /package/dist/{index-DKC62dY5.d.mts → index-AJDF86bD2.d.mts} +0 -0
- /package/dist/{index-L4GjJDKb.d.mts → index-B0bwOIpr.d.mts} +0 -0
- /package/dist/{index-CokQYGVP.d.mts → index-B3SbibGM.d.mts} +0 -0
- /package/dist/{index-CHQ1SqT0.d.mts → index-BKqJTm2-.d.mts} +0 -0
- /package/dist/{index-DMKnON5s.d.mts → index-BPn5ODFL.d.mts} +0 -0
- /package/dist/{index-CLpjm52M.d.mts → index-BWA-Bf0T.d.mts} +0 -0
- /package/dist/{index-x_lVDp_J.d.mts → index-BZmLqP2a.d.mts} +0 -0
- /package/dist/{index-DGBu6bHi2.d.mts → index-BkKMwRJj.d.mts} +0 -0
- /package/dist/{index-BFg9BUpx.d.mts → index-Bo6dMW5B.d.mts} +0 -0
- /package/dist/{index-DANINzMu.d.mts → index-CBW3XX7b.d.mts} +0 -0
- /package/dist/{index-eemAKwsB.d.mts → index-CE2F0_8r.d.mts} +0 -0
- /package/dist/{index-U-A8eyGT.d.mts → index-CJt_4GQu.d.mts} +0 -0
- /package/dist/{index-BGfWS6GE.d.mts → index-ChpYWZGc.d.mts} +0 -0
- /package/dist/{index-DKia0MX1.d.mts → index-DOAUskuB.d.mts} +0 -0
- /package/dist/{index-CGmcS0Ma.d.mts → index-DOfnh3xf.d.mts} +0 -0
- /package/dist/{index-De3kPhlN.d.mts → index-DYLb4v5z.d.mts} +0 -0
- /package/dist/{index-B80L4YqA.d.mts → index-DpKxkrU8.d.mts} +0 -0
- /package/dist/{index-Cs0kZXIz2.d.mts → index-FjZOM4M0.d.mts} +0 -0
- /package/dist/{index-BVgfS-AJ.d.mts → index-Ksoed-mL.d.mts} +0 -0
- /package/dist/{index-8SZkg7s6.d.mts → index-j7hM0JEz.d.mts} +0 -0
- /package/dist/{index-vtXJuwrz.d.mts → index-rQU8B-JX.d.mts} +0 -0
- /package/dist/{index-ChunCFu4.d.mts → index-sQ-7cpgm2.d.mts} +0 -0
- /package/dist/{materialization-CuUBu4XI.mjs → materialization-3QUnQLbC.mjs} +0 -0
- /package/dist/{model-registry-Scn_MC2d.mjs → model-registry-DdZrE4sa.mjs} +0 -0
- /package/dist/{model-registry-CfXytvzx.mjs → model-registry-j-rCKcik.mjs} +0 -0
- /package/dist/{namespace-DkRgbZYn.mjs → namespace-BGGiHXkz.mjs} +0 -0
- /package/dist/{namespace-CFLAmQfh.mjs → namespace-BbjCyZC9.mjs} +0 -0
- /package/dist/{namespace-CTm3nEvh.d.mts → namespace-Buecxx19.d.mts} +0 -0
- /package/dist/{namespace-LViZ-EQk.mjs → namespace-CCfEHbi9.mjs} +0 -0
- /package/dist/{namespace-BoD94mrN.mjs → namespace-DzS4SSkr2.mjs} +0 -0
- /package/dist/{namespace-xcmbQlxh.mjs → namespace-FT8igkn4.mjs} +0 -0
- /package/dist/{namespace-CaoZ3S78.d.mts → namespace-oS2v7viW.d.mts} +0 -0
- /package/dist/{namespace-IV1QK__V.d.mts → namespace-wYMkOtE0.d.mts} +0 -0
- /package/dist/{orchestrator-shared-Dfa7FMyw.d.mts → orchestrator-shared-DXAvgseP.d.mts} +0 -0
- /package/dist/{platform-DZ7z-wXD.mjs → platform-Dhv22LiX.mjs} +0 -0
- /package/dist/{providers-u8i15co9.mjs → providers-B1p0P-vB.mjs} +0 -0
- /package/dist/{providers-namespace-DSEpli4A.d.mts → providers-namespace-BITpk8sN.d.mts} +0 -0
- /package/dist/{schema-CoyE6mPt.mjs → schema-DdMn1KCD.mjs} +0 -0
- /package/dist/{schemas-DaRSfYLf.d.mts → schemas-7y9O8b0X.d.mts} +0 -0
- /package/dist/{schemas-DE-GNmSD.mjs → schemas-B-Z4U9FN.mjs} +0 -0
- /package/dist/{schemas-jFe1AuI-.mjs → schemas-BCIuTWRl2.mjs} +0 -0
- /package/dist/{schemas-Bd0OjRQf.d.mts → schemas-CMyv6Mkq.d.mts} +0 -0
- /package/dist/{schemas-CDBSjg7o.d.mts → schemas-PmHLOkr-.d.mts} +0 -0
- /package/dist/{server-lifecycle-FXTPW39-.mjs → server-lifecycle-JTFuSJhg.mjs} +0 -0
- /package/dist/{server-lifecycle-YoSGFGnU.d.mts → server-lifecycle-JX0MpLfX.d.mts} +0 -0
- /package/dist/{session-lineage-CRsc9g1x.d.mts → session-lineage-PY_8PUTH.d.mts} +0 -0
- /package/dist/{shared-schemas-CPShiLNp.mjs → shared-schemas-CbbcM1GQ.mjs} +0 -0
- /package/dist/{storage-namespace-definition-Bkx5rSto.d.mts → storage-namespace-definition-QTqbbw5b.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-CqSdsuCC.mjs → storage-namespace-definition-RvjfFysN.mjs} +0 -0
- /package/dist/{telemetry-CvdLBWuk.mjs → telemetry-O0394b7p.mjs} +0 -0
- /package/dist/{tray-menu-service-DuXq5k22.mjs → tray-menu-service-CsaXURTf.mjs} +0 -0
- /package/dist/{types-dyP-bXXE.d.mts → types-Bnf1bRcq.d.mts} +0 -0
- /package/dist/{types-MfJZ67e9.d.mts → types-C6R2eyMZ.d.mts} +0 -0
- /package/dist/{types-C2Ob9zz_.d.mts → types-CycWG-_j.d.mts} +0 -0
- /package/dist/{variant-CT6XBP6T.mjs → variant-COVbYmMs.mjs} +0 -0
- /package/dist/{window-registry-DW-dKRjQ.mjs → window-registry-XjOExitT.mjs} +0 -0
- /package/dist/{window-registry-CBcrGTv4.d.mts → window-registry-r3VFP-_d.d.mts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./descriptor-to-package-CY8oc2gl.mjs";import{pathToFileURL as t}from"node:url";import*as n from"node:path";import*as r from"node:fs";import{versionSatisfies as i}from"@makaio/framework/contracts";async function a(e,t){let{frameworkVersion:n,importModule:r=S}=t,i=[],a=new Map,s;for(let t of e){let{descriptor:e,extensionPath:c}=t,l=`[extensions] ${e.name}@${e.version}`;if(!u(t,n))continue;if(e.execution===`detached`){let t;try{s??=(await import(`./detached-extension-handle-Bo5Q06_g.mjs`)).createDetachedExtensionPackage,t=s(e,c)}catch(e){console.warn(`${l}: failed to synthesize detached extension package:`,e instanceof Error?e.message:e);continue}i.push(t),e.config?.defaults&&a.set(e.name,e.config.defaults);continue}if(!e.entrypoints.server){!e.entrypoints.browser&&!e.entrypoints.cli&&console.warn(`${l}: no executable entrypoint declared, skipping`);continue}let d;if(t.preloadedModule)d=t.preloadedModule;else try{let t=_(`server`,e.entrypoints.server,c);if(!t){console.warn(`${l}: server entrypoint could not be resolved within extension directory, skipping`);continue}d=await r(t)}catch(e){console.warn(`${l}: failed to import server entry:`,e instanceof Error?e.message:e);continue}let f=o(d.default,e.name,l);f&&(i.push(...f),e.config?.defaults&&a.set(e.name,e.config.defaults))}return{packages:i,configDefaults:a}}function o(e,t,n){if(Array.isArray(e)){let r=[],i=new Set;for(let t of e){if(!f(t)){console.warn(`${n}: default export array contains an invalid MakaioExtension, skipping`);return}if(i.has(t.name)){console.warn(`${n}: default export array contains duplicate package name '${t.name}', skipping`);return}i.add(t.name),r.push(t)}if(!r.some(e=>e.name===t)){console.warn(`${n}: default export array must include a package named '${t}' to match descriptor identity, skipping`);return}if(r.some(e=>e.name!==t&&!e.name.startsWith(`${t}.`))){console.warn(`${n}: default export array contains package names outside descriptor namespace '${t}', skipping`);return}return r}if(!f(e)){console.warn(`${n}: default export is not a valid MakaioExtension or MakaioExtension[], skipping`);return}if(e.name!==t){console.warn(`${n}: imported package name '${e.name}' does not match descriptor name '${t}', skipping`);return}return[e]}async function s(e,t,n){let{importModule:r=S,frameworkVersion:i}=n,a=new Map(t.map(e=>[e.name,e])),o=new Map;for(let t of e){let e=c(t,i);if(!e)continue;let n=`[extensions] ${t.descriptor.name}@${t.descriptor.version}`,s=a.get(t.descriptor.name);if(s?.cli)continue;let u=await d(t,e,n,r);if(!u)continue;if(!p(u.default)){console.warn(`${n}: default export is not a valid CliContribution, skipping`);continue}let f=t.descriptor.cli?.name??t.descriptor.name;if(u.default.name!==f){console.warn(`${n}: imported CLI contribution name '${u.default.name}' does not match descriptor CLI name '${f}', skipping`);continue}if(s){a.set(t.descriptor.name,{...s,cli:u.default});continue}if(t.descriptor.entrypoints?.server||t.descriptor.entrypoints?.browser){console.warn(`${n}: server or browser entry is present but no package was loaded, skipping CLI-only synthesis`);continue}a.set(t.descriptor.name,l(t,u.default)),t.descriptor.config?.defaults&&o.set(t.descriptor.name,t.descriptor.config.defaults)}return{packages:[...a.values()],configDefaults:o}}function c(e,t){if(u(e,t)&&e.descriptor.execution!==`detached`)return e.descriptor.entrypoints?.cli}function l(t,n){return{...e(t.descriptor),cli:n}}function u(e,t){let{descriptor:n}=e,r=`[extensions] ${n.name}@${n.version}`;try{return i(t,n.makaio.framework)?!0:(console.warn(`${r}: requires framework ${n.makaio.framework}, current is ${t}, skipping`),!1)}catch(e){return console.warn(`${r}: invalid version metadata (framework=${t}, range=${n.makaio.framework}), skipping:`,e instanceof Error?e.message:e),!1}}async function d(e,t,n,r){try{let i=_(`cli`,t,e.extensionPath);if(!i){console.warn(`${n}: cli entrypoint has no resolvable candidate within extension directory, skipping`);return}return await r(i)}catch(e){console.warn(`${n}: failed to import cli entry:`,e instanceof Error?e.message:e);return}}function f(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`&&typeof t.displayName==`string`&&typeof t.version==`string`}function p(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name!=`string`||typeof t.description!=`string`||!Array.isArray(t.subcommands)||`interactive`in t&&t.interactive!==void 0&&typeof t.interactive!=`function`?!1:t.subcommands.length===0?typeof t.interactive==`function`:t.subcommands.every(m)}function m(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`&&typeof t.description==`string`&&h(t.schema)&&typeof t.handler==`function`}function h(e){return typeof e==`object`&&!!e&&typeof e.safeParse==`function`}function g(e,t){return t===!0?e:t}function _(e,t,r){if(!n.isAbsolute(r))return;let i=g(e,t),a=x(r),o=n.resolve(r,`src`,`${i}.ts`);if(y(o,a))return o;let s=n.resolve(r,`dist`,`${i}.mjs`);if(y(s,a))return s}function v(e,t){let n=x(t);return b(x(e),n)}function y(e,t){try{return b(r.realpathSync(e),t)}catch{return!1}}function b(e,t){return e.startsWith(t+n.sep)}function x(e){let t=n.resolve(e);try{return r.realpathSync(t)}catch{return t}}async function S(e){return await import(t(e).href)}export{f as a,_ as c,u as i,g as n,v as o,p as r,a as s,s as t};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { t as DiscoveredExtension } from "./extension-discovery-CffOPDvn.mjs";
|
|
2
|
+
import { KernelMakaioExtension } from "@makaio/framework/kernel";
|
|
3
|
+
import { CliContribution } from "@makaio/framework/kernel/cli";
|
|
4
|
+
|
|
5
|
+
//#region runtimes/node/src/load-extensions.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Options for {@link loadExtensions}.
|
|
8
|
+
*/
|
|
9
|
+
interface LoadExtensionsOptions {
|
|
10
|
+
/** Current framework version for framework range gating. */
|
|
11
|
+
readonly frameworkVersion: string;
|
|
12
|
+
/**
|
|
13
|
+
* Override for filesystem-based dynamic import — used in tests and dev hosts.
|
|
14
|
+
* @param entryPath - Absolute path to the extension entry module.
|
|
15
|
+
* @returns Module with a default export.
|
|
16
|
+
*/
|
|
17
|
+
readonly importModule?: (entryPath: string) => Promise<{
|
|
18
|
+
default: unknown;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Result returned by {@link loadExtensions}.
|
|
23
|
+
*/
|
|
24
|
+
interface ExtensionLoadResult {
|
|
25
|
+
/** Successfully loaded packages ready for `coordinator.load()`. */
|
|
26
|
+
readonly packages: KernelMakaioExtension[];
|
|
27
|
+
/**
|
|
28
|
+
* Config defaults from descriptors, keyed by extension name.
|
|
29
|
+
*
|
|
30
|
+
* Populated from `descriptor.config.defaults` for each successfully loaded
|
|
31
|
+
* extension. Passed to `coordinator.load()` as the `configDefaults` argument
|
|
32
|
+
* so the coordinator can merge them with stored config at startup.
|
|
33
|
+
*/
|
|
34
|
+
readonly configDefaults: ReadonlyMap<string, Readonly<Record<string, unknown>>>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Packages emitted by one descriptor, ordered by caller-defined source priority.
|
|
38
|
+
*/
|
|
39
|
+
interface DescriptorSourcePackageGroup {
|
|
40
|
+
/** Descriptor name whose executable package surface this group represents. */
|
|
41
|
+
readonly descriptorName: string;
|
|
42
|
+
/** Stable source label for diagnostics, such as `workspace-descriptors`. */
|
|
43
|
+
readonly descriptorSource: string;
|
|
44
|
+
/** Packages produced from this descriptor. */
|
|
45
|
+
readonly packages: ReadonlyArray<KernelMakaioExtension>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Load extensions by importing their server entry points.
|
|
49
|
+
*
|
|
50
|
+
* For each discovered extension:
|
|
51
|
+
* 1. Check `makaio.framework` range against the current framework version
|
|
52
|
+
* 2. If `execution` is `'detached'`, synthesize a managed {@link MakaioExtension}
|
|
53
|
+
* via {@link createDetachedExtensionPackage} and continue.
|
|
54
|
+
* 3. Resolve `entrypoints.server` to an absolute path
|
|
55
|
+
* 4. Dynamic `import()` the module
|
|
56
|
+
* 5. Validate the default export looks like a {@link MakaioExtension} or
|
|
57
|
+
* {@link MakaioExtension} array
|
|
58
|
+
* 6. Verify the imported package identity is anchored to the descriptor name
|
|
59
|
+
*
|
|
60
|
+
* Extensions that fail any step are skipped with a warning. This function
|
|
61
|
+
* never throws — boot continues even if all extensions fail.
|
|
62
|
+
* @param discovered - Extensions found by a {@link ExtensionDiscovery}.
|
|
63
|
+
* @param options - Framework version and optional import override.
|
|
64
|
+
* @returns Successfully loaded packages and their config defaults.
|
|
65
|
+
*/
|
|
66
|
+
declare function loadExtensions(discovered: ReadonlyArray<DiscoveredExtension>, options: LoadExtensionsOptions): Promise<ExtensionLoadResult>;
|
|
67
|
+
/**
|
|
68
|
+
* Minimal structural check for a MakaioExtension-like default export.
|
|
69
|
+
* Does not use Zod — just validates the minimum required fields exist.
|
|
70
|
+
* @param value - The default export to check.
|
|
71
|
+
* @returns Whether the value is a valid {@link MakaioExtension} shape.
|
|
72
|
+
*/
|
|
73
|
+
declare function isMakaioExtensionLike(value: unknown): value is KernelMakaioExtension;
|
|
74
|
+
/**
|
|
75
|
+
* Minimal structural check for a {@link CliContribution}-like default export.
|
|
76
|
+
*
|
|
77
|
+
* An extension CLI contribution is only useful when it exposes executable
|
|
78
|
+
* behavior, so the validator requires at least one of:
|
|
79
|
+
* - an `interactive` handler, or
|
|
80
|
+
* - one or more executable subcommand entries.
|
|
81
|
+
* @param value - The default export to check.
|
|
82
|
+
* @returns Whether the value is a valid executable CLI contribution shape.
|
|
83
|
+
*/
|
|
84
|
+
declare function isCliContributionLike(value: unknown): value is CliContribution;
|
|
85
|
+
/**
|
|
86
|
+
* Derive the stem string from a descriptor entrypoint declaration.
|
|
87
|
+
* `true` resolves to the surface name; a string value is already the stem.
|
|
88
|
+
* @param surface - Runtime surface name.
|
|
89
|
+
* @param entrypointValue - Descriptor entrypoint declaration (`true` or a stem string).
|
|
90
|
+
* @returns Resolved stem string.
|
|
91
|
+
*/
|
|
92
|
+
declare function entrypointStem(surface: string, entrypointValue: true | string): string;
|
|
93
|
+
/**
|
|
94
|
+
* Resolve a descriptor entrypoint using the convention: try `src/{stem}.ts`
|
|
95
|
+
* (dev) then `dist/{stem}.mjs` (production). The first candidate that exists
|
|
96
|
+
* and passes the extension-root containment check is returned.
|
|
97
|
+
*
|
|
98
|
+
* `true` means use the surface name as the stem. A string value is a custom
|
|
99
|
+
* stem (e.g. `"cli/index"` → `src/cli/index.ts` or `dist/cli/index.mjs`).
|
|
100
|
+
* @param surface - Runtime surface name (`"server"`, `"browser"`, or `"cli"`).
|
|
101
|
+
* @param entrypointValue - Descriptor entrypoint declaration (`true` or a stem string).
|
|
102
|
+
* @param extensionPath - Absolute extension root path.
|
|
103
|
+
* @returns Absolute resolved path when a valid candidate exists, otherwise `undefined`.
|
|
104
|
+
*/
|
|
105
|
+
declare function resolveConventionEntrypoint(surface: string, entrypointValue: true | string, extensionPath: string): string | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Check that a resolved path stays within a base directory.
|
|
108
|
+
*
|
|
109
|
+
* Prevents path traversal attacks in descriptor.json entrypoints by rejecting
|
|
110
|
+
* absolute paths, `../` sequences, or symlinks that escape the extension root.
|
|
111
|
+
* @param resolved - The fully resolved absolute path.
|
|
112
|
+
* @param baseDir - The directory the path must stay within.
|
|
113
|
+
* @returns Whether `resolved` is a descendant of `baseDir`.
|
|
114
|
+
*/
|
|
115
|
+
declare function isWithinDirectory(resolved: string, baseDir: string): boolean;
|
|
116
|
+
//#endregion
|
|
117
|
+
export { isMakaioExtensionLike as a, resolveConventionEntrypoint as c, isCliContributionLike as i, LoadExtensionsOptions as n, isWithinDirectory as o, entrypointStem as r, loadExtensions as s, DescriptorSourcePackageGroup as t };
|