@makaio/framework 1.0.0-dev-1779051654000 → 1.0.0-dev-1781023871421
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/.makaio-build.json +5 -0
- package/dist/account-identity-DT5NOtFi.mjs +1 -0
- package/dist/adapter-C1eI-fGV.mjs +1 -0
- package/dist/adapters/acp-client/index.d.mts +6013 -14
- package/dist/adapters/acp-client/index.mjs +3 -1
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +47 -20
- package/dist/adapters/index.mjs +13 -6
- package/dist/adapters/node.d.mts +4 -4
- package/dist/adapters/node.mjs +4 -4
- package/dist/adapters/stream-session/index.d.mts +30 -0
- package/dist/adapters/stream-session/index.mjs +1 -1
- package/dist/artifact-B3npq1cy.mjs +1 -0
- package/dist/bus/index.d.mts +866 -203
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-Caz3Jpbc.mjs +1 -0
- package/dist/bus-Hb-LGzgb.mjs +2 -0
- package/dist/chunk-DTipWd-i.mjs +1 -0
- package/dist/client-bx74gm4R.mjs +1 -0
- package/dist/clients/index.d.mts +113 -35
- package/dist/clients/index.mjs +2 -2
- package/dist/{clients-namespace-UHj5wt-l.d.mts → clients-namespace-GmSJpBUV.d.mts} +8 -8
- package/dist/{config-namespace-ChZOpi1W.d.mts → config-namespace-CPY9YsR8.d.mts} +4 -4
- package/dist/contracts/adapter/index.d.mts +3 -3
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -0
- package/dist/contracts/artifact/index.mjs +1 -0
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +8 -8
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +4 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.d.mts +2 -0
- package/dist/contracts/facet/index.mjs +1 -0
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +12370 -1990
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +4 -0
- package/dist/contracts/materialization/index.mjs +1 -0
- package/dist/contracts/model-registry/index.d.mts +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- package/dist/contracts/provider/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +2 -2
- package/dist/contracts/shared/index.mjs +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/skill/index.mjs +1 -1
- package/dist/contracts/telemetry/index.d.mts +2 -0
- package/dist/contracts/telemetry/index.mjs +1 -0
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/timeout/index.mjs +1 -1
- package/dist/contracts/toast/index.d.mts +2 -2
- package/dist/contracts/toast/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/variant/index.mjs +1 -1
- package/dist/core/index.d.mts +296 -34
- package/dist/core/index.mjs +1 -1
- package/dist/{credential-ref-DLCsoKVZ.mjs → credential-ref-YWQQENEo.mjs} +1 -1
- package/dist/cursor-storage-CtVJ3JzB.mjs +1 -0
- package/dist/{definition-DB7bbFSa.d.mts → definition-BLCdXGzh.d.mts} +17 -3
- package/dist/definition-CrgHIpTK.d.mts +60 -0
- package/dist/{definition-DkYy1PZz.mjs → definition-DZMXOnjX.mjs} +1 -1
- package/dist/{definition-DtUNiGom.d.mts → definition-pkJ6szUl.d.mts} +1 -1
- package/dist/drizzle-Eq8W1EbD.mjs +1 -0
- package/dist/event-Ca2yUf5i.mjs +1 -0
- package/dist/execution-target-CRPTfZlc.mjs +1 -0
- package/dist/extension-C-4BHMRI.mjs +1 -0
- package/dist/extension-CpIUgBKI.mjs +1 -0
- package/dist/facet-BuwhrThl.mjs +1 -0
- package/dist/filesystem-service-B8rhBRgB.mjs +1 -0
- package/dist/filesystem-service-p_iJVHd4.d.mts +66 -0
- package/dist/git/index.d.mts +210 -0
- package/dist/git/index.mjs +18 -0
- package/dist/globby-rtWVaFHv.mjs +41 -0
- package/dist/{handlers-DR_4_rAT.mjs → handlers-CkTsQLra.mjs} +3 -3
- package/dist/{harness-B6lGP9rm.mjs → harness-BRCMcvQN.mjs} +1 -1
- package/dist/{host-CvEht5RT.mjs → host-Br9VuOyr.mjs} +1 -1
- package/dist/{index-WKjrpcA_.d.mts → index-472sOmsW.d.mts} +6 -6
- package/dist/index-8SZkg7s6.d.mts +353 -0
- package/dist/index-B3PK4FIn.d.mts +5116 -0
- package/dist/{index-D2jejYlV.d.mts → index-B80L4YqA.d.mts} +3 -3
- package/dist/index-BFg9BUpx.d.mts +355 -0
- package/dist/index-BGfWS6GE.d.mts +483 -0
- package/dist/{index-DQRsGXb5.d.mts → index-BVgfS-AJ.d.mts} +2 -2
- package/dist/{index-CnmPtjnA.d.mts → index-B_zQC98V.d.mts} +16 -16
- package/dist/{index-DaEp4UWW.d.mts → index-Bh_Ne7LF.d.mts} +54 -42
- package/dist/{index-yvN8UcEH.d.mts → index-Bvb2mMH6.d.mts} +109 -109
- package/dist/{index-tKvu34DJ2.d.mts → index-CCGVh9BF2.d.mts} +242 -28
- package/dist/{index-C-myW_aK.d.mts → index-CGmcS0Ma.d.mts} +2 -2
- package/dist/{index-DEw90pa2.d.mts → index-CLpjm52M.d.mts} +3 -3
- package/dist/{index-DQWMu5fS.d.mts → index-Caig6TeF.d.mts} +85 -99
- package/dist/{index-DwCA1HWa.d.mts → index-CelJCBjk.d.mts} +15 -15
- package/dist/{index-ESSDWIB7.d.mts → index-ChunCFu4.d.mts} +1 -1
- package/dist/{index-e5C62_M3.d.mts → index-Cm0dUkWL.d.mts} +819 -85
- package/dist/{index-N5K1NOYs.d.mts → index-CokQYGVP.d.mts} +4 -4
- package/dist/{index-Bigx81Kr.d.mts → index-Cs0kZXIz2.d.mts} +1 -1
- package/dist/{index-6lyShOoU.d.mts → index-D5d5HeWI2.d.mts} +34 -0
- package/dist/{index-sBob9D25.d.mts → index-D90OmGmV.d.mts} +3 -3
- package/dist/{index-D1T-PPqF.d.mts → index-D9MwJ2Q8.d.mts} +3 -3
- package/dist/{index-BePI0ckL.d.mts → index-DANINzMu.d.mts} +1 -1
- package/dist/{index-BnSQE7z7.d.mts → index-DBw-89vC2.d.mts} +129 -1332
- package/dist/{index-C_kS2aqV2.d.mts → index-DGBu6bHi2.d.mts} +14 -14
- package/dist/index-DKC62dY5.d.mts +146 -0
- package/dist/{index-7sXlairn2.d.mts → index-DKia0MX1.d.mts} +1 -1
- package/dist/{index-E8d_RwaF.d.mts → index-DMKnON5s.d.mts} +1 -1
- package/dist/{index-Cq8B7cwK.d.mts → index-DUaw0Dw8.d.mts} +1524 -369
- package/dist/{index-Dd5s4MSm.d.mts → index-De3kPhlN.d.mts} +2 -2
- package/dist/{index-DGTFJB_8.d.mts → index-L4GjJDKb.d.mts} +116 -23
- package/dist/{index-iID2R9G1.d.mts → index-U-A8eyGT.d.mts} +7 -7
- package/dist/{index-D7T8XCku.d.mts → index-eemAKwsB.d.mts} +23 -2
- package/dist/{index-BXP9GK5q.d.mts → index-mNec7V-9.d.mts} +27 -27
- package/dist/{index-CnZOKNjU.d.mts → index-soFznFCy2.d.mts} +2 -2
- package/dist/{index-Ch3ph52M2.d.mts → index-vtXJuwrz.d.mts} +2 -2
- package/dist/{index-BnNqbx2I.d.mts → index-x_lVDp_J.d.mts} +2 -2
- package/dist/json-value-CmhSGMLv.mjs +1 -0
- package/dist/kernel/cli/index.d.mts +4 -2
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/schemas.d.mts +1 -0
- package/dist/kernel/cli/schemas.mjs +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/extension/index.mjs +1 -1
- package/dist/kernel/index.d.mts +5 -5
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/namespace/index.mjs +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/providers/index.mjs +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/kernel/window/index.mjs +1 -1
- package/dist/materialization-CuUBu4XI.mjs +1 -0
- package/dist/{namespace-BpIE-jQW.d.mts → namespace-5QQqbF-B.d.mts} +1018 -111
- package/dist/{namespace-DwCyOaZn2.d.mts → namespace-BM7Djng9.d.mts} +3 -3
- package/dist/namespace-BwzZJqTV.mjs +1 -0
- package/dist/{namespace-DZcuLwEA.d.mts → namespace-CTm3nEvh.d.mts} +1 -1
- package/dist/{namespace-BK2erxpV.d.mts → namespace-CaaNnKcR.d.mts} +3 -3
- package/dist/{namespace-GLGGcWPH.d.mts → namespace-CaoZ3S78.d.mts} +1 -1
- package/dist/{namespace-DXnMk3U8.d.mts → namespace-CxhsoFUP.d.mts} +27 -31
- package/dist/{namespace-B1E57soL.d.mts → namespace-DD8Oiqo7.d.mts} +23 -23
- package/dist/{namespace-BCRNwPnw.d.mts → namespace-DLovh2Ws.d.mts} +21 -21
- package/dist/{namespace-Ysg1N6rR.d.mts → namespace-DgqkaOVu.d.mts} +26 -25
- package/dist/{namespace-B5ZCshBw.d.mts → namespace-Dr8K0MCp.d.mts} +82 -81
- package/dist/{namespace-DGMO2E8f.mjs → namespace-DuXK5AYN.mjs} +1 -1
- package/dist/{namespace-ZbthBQVt.d.mts → namespace-EQniz-Aw.d.mts} +14 -14
- package/dist/{namespace-C54Oj025.d.mts → namespace-IV1QK__V.d.mts} +1 -1
- package/dist/{namespace-BKrV_2gZ.d.mts → namespace-TyiTsLFv.d.mts} +46 -45
- package/dist/{namespace-OwAf1Brw.mjs → namespace-xcmbQlxh.mjs} +1 -1
- package/dist/{native-session-supervisor-zPt624Tp.mjs → native-session-supervisor-B1TnaPUF.mjs} +1 -1
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/index.mjs +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.mjs +1 -1
- package/dist/node/machine-identity/index.mjs +2 -2
- package/dist/node/transports/index.d.mts +200 -7
- package/dist/node/transports/index.mjs +2 -2
- package/dist/{orchestrator-shared-D2txLAUs.mjs → orchestrator-shared-CIDiFJMD.mjs} +1 -1
- package/dist/{orchestrator-shared-DrjtTXYh.d.mts → orchestrator-shared-Dfa7FMyw.d.mts} +5 -5
- package/dist/package-DKVlsMP3.mjs +1 -0
- package/dist/{profile-Cq4A7kQa.mjs → profile-6ynCD5k3.mjs} +1 -1
- package/dist/{provider-context-BB4eD8ON.mjs → provider-context-CK6B4X_8.mjs} +1 -1
- package/dist/providers/index.mjs +1 -1
- package/dist/{providers-namespace-CDwxY_DV.d.mts → providers-namespace-DSEpli4A.d.mts} +1 -1
- package/dist/{schema-B295yplx.d.mts → schema-M5YTvSAG.d.mts} +114 -2
- package/dist/{schema-C4iznV0q.mjs → schema-e0wU_lcV.mjs} +1 -1
- package/dist/{schema-introspection-DCYC47_d.mjs → schema-introspection-Dn1jWQs1.mjs} +1 -1
- package/dist/{schemas-C5xtVqdb.d.mts → schemas-Bd0OjRQf.d.mts} +1 -1
- package/dist/{schemas-Ra8pz5M-.d.mts → schemas-C46QfKzv.d.mts} +24 -28
- package/dist/{schemas-sshQEF3l.d.mts → schemas-CDBSjg7o.d.mts} +1 -1
- package/dist/schemas-CR1Rripy.mjs +1 -0
- package/dist/schemas-CVvwIfG4.mjs +1 -0
- package/dist/schemas-CaLhkkLn.mjs +1 -0
- package/dist/{schemas-DYqKRNju.d.mts → schemas-ClOOT1W6.d.mts} +4 -4
- package/dist/{schemas-BfMZAwff.d.mts → schemas-DATniTHb.d.mts} +8 -8
- package/dist/{schemas-BWvuaL0w.d.mts → schemas-DVF1A4DF.d.mts} +4 -4
- package/dist/{schemas-Di0XnnMX.d.mts → schemas-DaRSfYLf.d.mts} +1 -1
- package/dist/{schemas-C31qbb0s.d.mts → schemas-DiYVzG6e.d.mts} +51 -48
- package/dist/{schemas-KMA1efQg.d.mts → schemas-j7ivZ2HI.d.mts} +3 -3
- package/dist/schemas-wg_6PAdV.d.mts +153 -0
- package/dist/scoped-bus-04pwo1uM.mjs +1 -0
- package/dist/service-base/index.d.mts +1 -1
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/adapter-subsystem/namespace.mjs +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/capability/index.d.mts +1 -1
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/cli-detection/namespace.d.mts +1 -1
- package/dist/services/codebase/index.d.mts +2 -2
- package/dist/services/codebase/namespace.d.mts +1 -1
- package/dist/services/codebase/schemas.d.mts +1 -1
- package/dist/services/compression/index.d.mts +2 -2
- package/dist/services/compression/namespace.d.mts +1 -1
- package/dist/services/compression/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +4 -4
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/credential-change/index.d.mts +1 -1
- package/dist/services/definition/namespace.d.mts +1 -1
- package/dist/services/definition/schemas.d.mts +1 -1
- package/dist/services/dialog/namespace.d.mts +1 -1
- package/dist/services/dialog/schemas.d.mts +1 -1
- package/dist/services/execution-target/index.d.mts +4 -4
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/execution-target/schemas.mjs +1 -1
- package/dist/services/filesystem/index.d.mts +3 -0
- package/dist/services/filesystem/index.mjs +1 -0
- package/dist/services/filesystem/namespace.d.mts +7 -7
- package/dist/services/filesystem/schemas.d.mts +4 -4
- package/dist/services/git/namespace.d.mts +1163 -0
- package/dist/services/git/namespace.mjs +1 -0
- package/dist/services/git/schemas.d.mts +932 -0
- package/dist/services/git/schemas.mjs +1 -0
- package/dist/services/harness/index.d.mts +35 -35
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/harness/storage/schema.d.mts +5 -5
- package/dist/services/index.d.mts +1411 -928
- package/dist/services/index.mjs +1 -1
- package/dist/services/local-notification/index.d.mts +1 -1
- package/dist/services/local-notification/namespace.d.mts +1 -1
- package/dist/services/local-notification/schemas.d.mts +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +23 -24
- package/dist/services/log-import/index.mjs +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.d.mts +1 -1
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.d.mts +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/model-registry/index.d.mts +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/provider-runtime/index.d.mts +1 -1
- package/dist/services/provider-runtime/index.mjs +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +10 -10
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/storage/schema.mjs +1 -1
- package/dist/services/session/testing/index.d.mts +2 -2
- package/dist/services/session/testing/index.mjs +16 -3
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +3 -3
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.d.mts +4 -4
- package/dist/services/settings/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +19 -18
- package/dist/services/settings/namespace.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +4 -4
- package/dist/services/settings/storage/index.d.mts +3 -3
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/subagent/index.d.mts +2 -0
- package/dist/services/subagent/index.mjs +1 -0
- package/dist/services/subagent-template/index.d.mts +3 -0
- package/dist/services/subagent-template/index.mjs +1 -0
- package/dist/services/subagent-template/namespace.d.mts +2 -0
- package/dist/services/subagent-template/namespace.mjs +1 -0
- package/dist/services/subagent-template/schemas.d.mts +2 -0
- package/dist/services/subagent-template/schemas.mjs +1 -0
- package/dist/services/tool-approval/index.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- package/dist/services/tray-menu/index.mjs +1 -1
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/services/turn/schemas.d.mts +12 -12
- package/dist/session-BoldSdNZ2.mjs +134 -0
- package/dist/session-DuVOYctZ.mjs +1 -0
- package/dist/{session-lineage-B0cpHfuc.d.mts → session-lineage-CRsc9g1x.d.mts} +1 -1
- package/dist/shared-DpOEfD8F.mjs +1 -0
- package/dist/{skill-20_SBXaI.mjs → skill-CQO4mDqK.mjs} +1 -1
- package/dist/storage/drizzle/client.d.mts +2 -2
- package/dist/storage/drizzle/client.mjs +1 -1
- package/dist/storage/drizzle/index.d.mts +49 -10
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/index.d.mts +2 -2
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/storage/index.d.mts +4 -4
- package/dist/{storage-namespace-DoH-Wkjp.d.mts → storage-namespace-BXkoh5Sy.d.mts} +11 -11
- package/dist/storage-namespace-DWsYLAXa.mjs +1 -0
- package/dist/{storage-namespace-definition-CJgqyXH1.d.mts → storage-namespace-definition-Bkx5rSto.d.mts} +1 -1
- package/dist/style.css +540 -540
- package/dist/telemetry-CvdLBWuk.mjs +1 -0
- package/dist/testing/drizzle-harness.mjs +1 -1
- package/dist/testing/index.mjs +1 -1
- package/dist/tool-approval-service-BvZWhYZp.mjs +1 -0
- package/dist/tools/index.d.mts +20 -10
- package/dist/tools/index.mjs +1 -1
- package/dist/tools/testing/index.d.mts +1 -1
- package/dist/tools-D-luYcDw.mjs +1431 -0
- package/dist/{types-C11LvekX.d.mts → types-BCMUtBj1.d.mts} +117 -20
- package/dist/{types-vNpkAe4Y.d.mts → types-C2Ob9zz_.d.mts} +1 -1
- package/dist/{types-t295YC6T.d.mts → types-CCdqjeuH.d.mts} +2 -2
- package/dist/{types-Cvrj2ogm.d.mts → types-DZHvOc_Q.d.mts} +4 -4
- package/dist/{types--nrtGZ1V.d.mts → types-Dy3YTcTF.d.mts} +255 -97
- package/dist/{types-DYF5LxZY.d.mts → types-MfJZ67e9.d.mts} +91 -9
- package/dist/{types-6WxLfoM3.d.mts → types-dyP-bXXE.d.mts} +1 -1
- package/dist/ui-components/index.mjs +2 -2
- package/dist/ui-hooks/index.d.mts +111 -1
- package/dist/ui-hooks/index.mjs +1 -1
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/ui-views/index.mjs +2 -2
- package/dist/utils/index.d.mts +36 -1
- package/dist/utils/index.mjs +2 -2
- package/dist/utils/project-manifest.d.mts +130 -0
- package/dist/utils/project-manifest.mjs +1 -0
- package/dist/utils/scope-paths.d.mts +33 -0
- package/dist/utils/scope-paths.mjs +1 -0
- package/dist/utils/workspace-packages.d.mts +59 -0
- package/dist/utils/workspace-packages.mjs +1 -0
- package/dist/utils/workspace-root.d.mts +6 -9
- package/dist/utils/workspace-root.mjs +1 -1
- package/dist/{version-D8S4O22A.mjs → version-BeT3ASEe.mjs} +1 -1
- package/package.json +55 -2
- package/dist/account-identity-Bg_vKkcs.mjs +0 -1
- package/dist/adapter-CpF2aK_-.mjs +0 -1
- package/dist/bus-B1seC4M_.mjs +0 -2
- package/dist/chunk-Dc06z0qk.mjs +0 -1
- package/dist/client-DMWXCWhM.mjs +0 -1
- package/dist/cursor-storage-BoNI7OAR.mjs +0 -1
- package/dist/drizzle-Bn2GtW8c.mjs +0 -1
- package/dist/execution-target-D6MgthYs.mjs +0 -1
- package/dist/extension-53GerdGg.mjs +0 -1
- package/dist/extension-fJmv8Yri.mjs +0 -1
- package/dist/namespace-C_h7scWx2.mjs +0 -1
- package/dist/schemas-Bn8aqDIE.mjs +0 -1
- package/dist/services/worker/index.d.mts +0 -3
- package/dist/services/worker/index.mjs +0 -1
- package/dist/services/worker/namespace.d.mts +0 -2
- package/dist/services/worker/namespace.mjs +0 -1
- package/dist/services/worker/schemas.d.mts +0 -2
- package/dist/services/worker/schemas.mjs +0 -1
- package/dist/session-BCSf-Fgj.mjs +0 -1
- package/dist/session-BNo_cIiz.mjs +0 -123
- package/dist/shared-BhuSHZXH.mjs +0 -1
- package/dist/storage-namespace-BIDs9LPb.mjs +0 -1
- package/dist/tool-approval-service-CZCPfvVy.mjs +0 -1
- package/dist/tools-Cid9D99F.mjs +0 -1
- /package/dist/{base-orchestrator-BOAPgqF7.d.mts → base-orchestrator-wyumsn3b.d.mts} +0 -0
- /package/dist/{capability-service-DV32ecwR.mjs → capability-service-CJbmhfv9.mjs} +0 -0
- /package/dist/{cleanEnvForAdapter-hTPNvPU5.mjs → cleanEnvForAdapter-KkYzQa1f.mjs} +0 -0
- /package/dist/{config-namespace-wJ2CakDB.mjs → config-namespace-ncYg2ct_.mjs} +0 -0
- /package/dist/{extension-namespace-CTd9kOtt.mjs → extension-namespace-cMh_mMiL.mjs} +0 -0
- /package/dist/{identity-DBST3-XO.mjs → identity-Cz2IeEtm.mjs} +0 -0
- /package/dist/{index-SzSiyG61.d.mts → index-CHQ1SqT0.d.mts} +0 -0
- /package/dist/{model-registry-xINyxQUT.mjs → model-registry-CfXytvzx.mjs} +0 -0
- /package/dist/{model-registry-Dzpssh9j.mjs → model-registry-Scn_MC2d.mjs} +0 -0
- /package/dist/{namespace-DBw9BYr8.mjs → namespace-BoD94mrN.mjs} +0 -0
- /package/dist/{namespace-DUVgMfTR.mjs → namespace-CFLAmQfh.mjs} +0 -0
- /package/dist/{namespace-aALq9tnE.mjs → namespace-DkRgbZYn.mjs} +0 -0
- /package/dist/{namespace-yxIxUsjo.mjs → namespace-LViZ-EQk.mjs} +0 -0
- /package/dist/{namespace-Zb8HAbyF.mjs → namespace-Yna5-Pws.mjs} +0 -0
- /package/dist/{platform-BMFUpmTA.mjs → platform-DZ7z-wXD.mjs} +0 -0
- /package/dist/{providers-DhiW_fx4.mjs → providers-u8i15co9.mjs} +0 -0
- /package/dist/{schema-D3ZG13h9.mjs → schema-CoyE6mPt.mjs} +0 -0
- /package/dist/{schemas-CEBe89yE.mjs → schemas-DE-GNmSD.mjs} +0 -0
- /package/dist/{schemas-COnLJnt_.mjs → schemas-hSrzflwZ.mjs} +0 -0
- /package/dist/{schemas-CrnlCRep.mjs → schemas-jFe1AuI-.mjs} +0 -0
- /package/dist/{server-lifecycle-Dx5WgfoS.mjs → server-lifecycle-FXTPW39-.mjs} +0 -0
- /package/dist/{server-lifecycle-BC6FRn86.d.mts → server-lifecycle-YoSGFGnU.d.mts} +0 -0
- /package/dist/{shared-schemas-Byah36lG.mjs → shared-schemas-CPShiLNp.mjs} +0 -0
- /package/dist/{storage-namespace-definition-BjK9nZAN.mjs → storage-namespace-definition-CqSdsuCC.mjs} +0 -0
- /package/dist/{timeout-D33CUZ0M.mjs → timeout-XsYIOKrc.mjs} +0 -0
- /package/dist/{tray-menu-service-BAYtLdAg.mjs → tray-menu-service-DuXq5k22.mjs} +0 -0
- /package/dist/{ui-config-zawaoEfB.mjs → ui-config-9bDRwFZr.mjs} +0 -0
- /package/dist/{variant-BZWfmS0q.mjs → variant-CT6XBP6T.mjs} +0 -0
- /package/dist/{visibility-CZu8ooOA.mjs → visibility-Cb62p9bv.mjs} +0 -0
- /package/dist/{window-registry-C_IJmY8_.d.mts → window-registry-CBcrGTv4.d.mts} +0 -0
- /package/dist/{window-registry-B_-hBEcV.mjs → window-registry-DW-dKRjQ.mjs} +0 -0
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { F as ArtifactLifecycleHookRegistration$1, P as ArtifactLifecycleHookEvent, T as AnyArtifactKindDefinition, mt as ArtifactRevision$1 } from "./index-B3PK4FIn.mjs";
|
|
2
|
+
import { A as VersionRange, O as VersionLiteral$1, r as ClientDefinition$1 } from "./definition-BLCdXGzh.mjs";
|
|
3
|
+
import { o as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-pkJ6szUl.mjs";
|
|
4
|
+
import { t as RequiredTimeoutConfig } from "./index-DMKnON5s.mjs";
|
|
5
|
+
import { B as SESSION_EVENT_TYPES, i as MakaioSessionEvent$1, p as SessionMessage$1 } from "./types-Dy3YTcTF.mjs";
|
|
6
|
+
import { D as EntityUIConfig, I as FormFieldProps, Q as JsonValue$1 } from "./index-L4GjJDKb.mjs";
|
|
7
|
+
import { l as FacetNamespaceDefinition } from "./index-8SZkg7s6.mjs";
|
|
8
|
+
import { t as SurfaceBindingDefinition } from "./definition-CrgHIpTK.mjs";
|
|
6
9
|
import { z } from "zod";
|
|
7
10
|
import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
|
|
11
|
+
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
8
12
|
import { Toolset } from "@makaio/framework/tools";
|
|
9
13
|
import { ComponentType } from "react";
|
|
10
14
|
|
|
11
|
-
//#region
|
|
15
|
+
//#region core/contracts/src/extension/browser-entrypoint.d.ts
|
|
12
16
|
/**
|
|
13
17
|
* Browser entrypoint metadata declared by a package manifest.
|
|
14
18
|
*
|
|
15
19
|
* The renderer uses this URL path to load a package's browser bundle.
|
|
16
20
|
*/
|
|
17
|
-
declare const BrowserEntrypointSchema: z.ZodObject<{
|
|
21
|
+
declare const BrowserEntrypointSchema$1: z.ZodObject<{
|
|
18
22
|
entrypoint: z.ZodString;
|
|
19
23
|
}, z.core.$strip>;
|
|
20
24
|
/** Inferred type for browser entrypoint manifest metadata. */
|
|
21
|
-
type BrowserEntrypoint = z.infer<typeof BrowserEntrypointSchema>;
|
|
25
|
+
type BrowserEntrypoint = z.infer<typeof BrowserEntrypointSchema$1>;
|
|
22
26
|
//#endregion
|
|
23
|
-
//#region
|
|
27
|
+
//#region core/contracts/src/extension/contribution-manifest.d.ts
|
|
24
28
|
/**
|
|
25
29
|
* Protocol-specific configuration for an adapter contribution.
|
|
26
30
|
*
|
|
@@ -52,7 +56,7 @@ declare const ProtocolConfigSchema: z.ZodObject<{
|
|
|
52
56
|
* "protocols": [{ "anthropic": { "endpoint": "https://custom.host/v1" } }]
|
|
53
57
|
* ```
|
|
54
58
|
*/
|
|
55
|
-
type ProtocolRef = ProtocolId | { readonly [K in ProtocolId]?: ProtocolConfig };
|
|
59
|
+
type ProtocolRef = ProtocolId$1 | { readonly [K in ProtocolId$1]?: ProtocolConfig };
|
|
56
60
|
/** Zod schema for {@link ProtocolRef}. */
|
|
57
61
|
declare const ProtocolRefSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
58
62
|
anthropic: "anthropic";
|
|
@@ -76,7 +80,7 @@ declare const ProtocolRefSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
76
80
|
* @example `{ id: 'claude-code', version: '^1.5.0' }`
|
|
77
81
|
* @example `{ id: 'claude-code', version: '^1.5.0', binaryVersion: '>=1.0.0 <1.2.0' }`
|
|
78
82
|
*/
|
|
79
|
-
interface AdapterClientRef {
|
|
83
|
+
interface AdapterClientRef$1 {
|
|
80
84
|
/** Stable client identifier matching {@link ClientManifest.id}. */
|
|
81
85
|
readonly id: string;
|
|
82
86
|
/**
|
|
@@ -131,7 +135,7 @@ interface AdapterManifest {
|
|
|
131
135
|
* adapter processors verify that referenced clients are installed and
|
|
132
136
|
* compatible before activating the adapter.
|
|
133
137
|
*/
|
|
134
|
-
readonly clients?: readonly AdapterClientRef[];
|
|
138
|
+
readonly clients?: readonly AdapterClientRef$1[];
|
|
135
139
|
/**
|
|
136
140
|
* Wire protocol(s) this adapter implements.
|
|
137
141
|
*
|
|
@@ -213,7 +217,7 @@ interface ClientManifest {
|
|
|
213
217
|
* Exact semver version of the binary to install and activate.
|
|
214
218
|
* Required when `managed` is `true`.
|
|
215
219
|
*/
|
|
216
|
-
readonly version?: VersionLiteral;
|
|
220
|
+
readonly version?: VersionLiteral$1;
|
|
217
221
|
};
|
|
218
222
|
}
|
|
219
223
|
/** Zod schema for {@link ClientManifest}. */
|
|
@@ -379,6 +383,63 @@ declare const SessionEventActionManifestSchema: z.ZodObject<{
|
|
|
379
383
|
assistant: "assistant";
|
|
380
384
|
}>>>>;
|
|
381
385
|
}, z.core.$strip>;
|
|
386
|
+
/** Zod schema for {@link ArtifactLifecycleHookEvent}. */
|
|
387
|
+
declare const ArtifactLifecycleHookEventSchema: z.ZodEnum<{
|
|
388
|
+
beforeCreate: "beforeCreate";
|
|
389
|
+
beforeRevise: "beforeRevise";
|
|
390
|
+
afterCreate: "afterCreate";
|
|
391
|
+
afterRevise: "afterRevise";
|
|
392
|
+
afterStatusChanged: "afterStatusChanged";
|
|
393
|
+
afterObservationAdded: "afterObservationAdded";
|
|
394
|
+
}>;
|
|
395
|
+
/**
|
|
396
|
+
* Describes a single artifact lifecycle hook entry declared by an extension.
|
|
397
|
+
*
|
|
398
|
+
* This is serializable discovery-time metadata only — it does NOT carry the
|
|
399
|
+
* hook handler function. The executable runtime source is
|
|
400
|
+
* `MakaioExtension.artifactLifecycleHooks.createHooks()`; descriptor
|
|
401
|
+
* contributions are not a registration fallback.
|
|
402
|
+
*
|
|
403
|
+
* When `kind` is omitted, the hook applies to all registered artifact kinds.
|
|
404
|
+
* When `schemaVersion` is omitted, the hook applies to all schema versions of
|
|
405
|
+
* the targeted kind.
|
|
406
|
+
*/
|
|
407
|
+
interface ArtifactLifecycleHookManifest {
|
|
408
|
+
/**
|
|
409
|
+
* Stable identifier for this hook entry within the declaring extension.
|
|
410
|
+
*
|
|
411
|
+
* Must be unique within the extension's `artifactLifecycleHooks` array.
|
|
412
|
+
*/
|
|
413
|
+
readonly id: string;
|
|
414
|
+
/** Artifact lifecycle event this hook responds to. */
|
|
415
|
+
readonly event: ArtifactLifecycleHookEvent;
|
|
416
|
+
/**
|
|
417
|
+
* Artifact kind discriminator this hook targets.
|
|
418
|
+
*
|
|
419
|
+
* When omitted, the hook applies across all registered kinds.
|
|
420
|
+
*/
|
|
421
|
+
readonly kind?: string;
|
|
422
|
+
/**
|
|
423
|
+
* Schema version constraint for the targeted kind.
|
|
424
|
+
*
|
|
425
|
+
* When omitted, the hook applies to all schema versions of the targeted kind.
|
|
426
|
+
*/
|
|
427
|
+
readonly schemaVersion?: string;
|
|
428
|
+
}
|
|
429
|
+
/** Zod schema for {@link ArtifactLifecycleHookManifest}. */
|
|
430
|
+
declare const ArtifactLifecycleHookManifestSchema: z.ZodObject<{
|
|
431
|
+
id: z.ZodString;
|
|
432
|
+
event: z.ZodEnum<{
|
|
433
|
+
beforeCreate: "beforeCreate";
|
|
434
|
+
beforeRevise: "beforeRevise";
|
|
435
|
+
afterCreate: "afterCreate";
|
|
436
|
+
afterRevise: "afterRevise";
|
|
437
|
+
afterStatusChanged: "afterStatusChanged";
|
|
438
|
+
afterObservationAdded: "afterObservationAdded";
|
|
439
|
+
}>;
|
|
440
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
441
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
442
|
+
}, z.core.$strip>;
|
|
382
443
|
/**
|
|
383
444
|
* Discovery-time flags for browser UI contribution surfaces.
|
|
384
445
|
*
|
|
@@ -462,6 +523,14 @@ interface ContributionManifest {
|
|
|
462
523
|
readonly logImporters?: readonly LogImporterManifest[];
|
|
463
524
|
/** Session event action contributions declared by this extension. */
|
|
464
525
|
readonly sessionEventActions?: readonly SessionEventActionManifest[];
|
|
526
|
+
/**
|
|
527
|
+
* Artifact lifecycle hook entries declared by this extension.
|
|
528
|
+
*
|
|
529
|
+
* Each entry is serializable discovery-time metadata. The executable runtime
|
|
530
|
+
* source is `MakaioExtension.artifactLifecycleHooks.createHooks()`; this
|
|
531
|
+
* field is for pre-load introspection only.
|
|
532
|
+
*/
|
|
533
|
+
readonly artifactLifecycleHooks?: readonly ArtifactLifecycleHookManifest[];
|
|
465
534
|
/** Extension provides a service factory ({@link MakaioExtension.create}). */
|
|
466
535
|
readonly create?: boolean;
|
|
467
536
|
/** Extension contributes one or more toolsets ({@link MakaioExtension.tools}). */
|
|
@@ -544,6 +613,19 @@ declare const ContributionManifestSchema: z.ZodObject<{
|
|
|
544
613
|
assistant: "assistant";
|
|
545
614
|
}>>>>;
|
|
546
615
|
}, z.core.$strip>>>>;
|
|
616
|
+
artifactLifecycleHooks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
617
|
+
id: z.ZodString;
|
|
618
|
+
event: z.ZodEnum<{
|
|
619
|
+
beforeCreate: "beforeCreate";
|
|
620
|
+
beforeRevise: "beforeRevise";
|
|
621
|
+
afterCreate: "afterCreate";
|
|
622
|
+
afterRevise: "afterRevise";
|
|
623
|
+
afterStatusChanged: "afterStatusChanged";
|
|
624
|
+
afterObservationAdded: "afterObservationAdded";
|
|
625
|
+
}>;
|
|
626
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
627
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>>>>;
|
|
547
629
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
548
630
|
tools: z.ZodOptional<z.ZodBoolean>;
|
|
549
631
|
bootstrap: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -558,7 +640,7 @@ declare const ContributionManifestSchema: z.ZodObject<{
|
|
|
558
640
|
}, z.core.$strip>>;
|
|
559
641
|
}, z.core.$strip>;
|
|
560
642
|
//#endregion
|
|
561
|
-
//#region
|
|
643
|
+
//#region core/contracts/src/extension/capability-token.d.ts
|
|
562
644
|
/**
|
|
563
645
|
* Declaration-mergeable registry for extension capability tokens.
|
|
564
646
|
*
|
|
@@ -585,7 +667,7 @@ type CapabilityToken = Extract<keyof CapabilityTokenMap, string>;
|
|
|
585
667
|
*/
|
|
586
668
|
declare const CapabilityTokenSchema: z.ZodType<CapabilityToken>;
|
|
587
669
|
//#endregion
|
|
588
|
-
//#region
|
|
670
|
+
//#region core/contracts/src/extension/manifest.d.ts
|
|
589
671
|
/**
|
|
590
672
|
* Visual presentation style for an extension window.
|
|
591
673
|
*
|
|
@@ -662,7 +744,7 @@ declare const WindowManifestSchema: z.ZodObject<{
|
|
|
662
744
|
* {@link opensWindow} or {@link action} should be set; if both are present
|
|
663
745
|
* the shell prefers {@link opensWindow}.
|
|
664
746
|
*/
|
|
665
|
-
interface TrayManifest {
|
|
747
|
+
interface TrayManifest$1 {
|
|
666
748
|
/** Human-readable label shown in the tray menu. */
|
|
667
749
|
readonly label: string;
|
|
668
750
|
/**
|
|
@@ -798,6 +880,20 @@ interface CliManifest {
|
|
|
798
880
|
* the function implementation rather than a boolean flag.
|
|
799
881
|
*/
|
|
800
882
|
readonly hasInteractive?: boolean;
|
|
883
|
+
/**
|
|
884
|
+
* Pre-connection routing hint indicating that this extension can embed and
|
|
885
|
+
* provide its own bus instance.
|
|
886
|
+
*
|
|
887
|
+
* When `true`, the CLI router may skip desktop auto-launch for a matching
|
|
888
|
+
* local command after probing for an already-running external daemon. The
|
|
889
|
+
* executable contribution can then bootstrap a self-contained bus for
|
|
890
|
+
* standalone or embedded execution if no external bus connected.
|
|
891
|
+
*
|
|
892
|
+
* This is a serializable declaration only — it carries no executable startup
|
|
893
|
+
* logic. The actual bus provisioning is performed by the executable
|
|
894
|
+
* `CliContribution.provideBus` handler.
|
|
895
|
+
*/
|
|
896
|
+
readonly canProvideBus?: boolean;
|
|
801
897
|
}
|
|
802
898
|
/** Zod schema for {@link CliManifest}. */
|
|
803
899
|
declare const CliManifestSchema: z.ZodObject<{
|
|
@@ -820,6 +916,7 @@ declare const CliManifestSchema: z.ZodObject<{
|
|
|
820
916
|
}, z.core.$strip>>>>;
|
|
821
917
|
}, z.core.$strip>>>>;
|
|
822
918
|
hasInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
919
|
+
canProvideBus: z.ZodOptional<z.ZodBoolean>;
|
|
823
920
|
}, z.core.$strip>;
|
|
824
921
|
/**
|
|
825
922
|
* Describes the storage requirements of an extension.
|
|
@@ -906,7 +1003,7 @@ declare const ExtensionDependencySchema: z.ZodObject<{
|
|
|
906
1003
|
* @example
|
|
907
1004
|
* dependencies: [dep('provider-anthropic'), dep('makaio.clients-core')]
|
|
908
1005
|
*/
|
|
909
|
-
declare function dep(name: string, version?: VersionRange, optional?: boolean): ExtensionDependency;
|
|
1006
|
+
declare function dep$1(name: string, version?: VersionRange, optional?: boolean): ExtensionDependency;
|
|
910
1007
|
/**
|
|
911
1008
|
* A typed runtime-environment gate that an extension declares it needs before
|
|
912
1009
|
* the kernel will activate it.
|
|
@@ -966,7 +1063,7 @@ interface ExtensionManifest {
|
|
|
966
1063
|
* code-defined executable packages declare the same field directly on their
|
|
967
1064
|
* package object.
|
|
968
1065
|
*/
|
|
969
|
-
readonly version: VersionLiteral;
|
|
1066
|
+
readonly version: VersionLiteral$1;
|
|
970
1067
|
/**
|
|
971
1068
|
* Execution surface the extension targets.
|
|
972
1069
|
*
|
|
@@ -1006,7 +1103,7 @@ interface ExtensionManifest {
|
|
|
1006
1103
|
/** Windows this extension can open, keyed by {@link WindowManifest.id}. */
|
|
1007
1104
|
readonly windows?: readonly WindowManifest[];
|
|
1008
1105
|
/** System tray entry for this extension. */
|
|
1009
|
-
readonly tray?: TrayManifest;
|
|
1106
|
+
readonly tray?: TrayManifest$1;
|
|
1010
1107
|
/**
|
|
1011
1108
|
* CLI command contributed by this extension.
|
|
1012
1109
|
*
|
|
@@ -1103,6 +1200,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1103
1200
|
}, z.core.$strip>>>>;
|
|
1104
1201
|
}, z.core.$strip>>>>;
|
|
1105
1202
|
hasInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
1203
|
+
canProvideBus: z.ZodOptional<z.ZodBoolean>;
|
|
1106
1204
|
}, z.core.$strip>>;
|
|
1107
1205
|
storage: z.ZodOptional<z.ZodObject<{
|
|
1108
1206
|
migrations: z.ZodOptional<z.ZodString>;
|
|
@@ -1177,6 +1275,19 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1177
1275
|
assistant: "assistant";
|
|
1178
1276
|
}>>>>;
|
|
1179
1277
|
}, z.core.$strip>>>>;
|
|
1278
|
+
artifactLifecycleHooks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1279
|
+
id: z.ZodString;
|
|
1280
|
+
event: z.ZodEnum<{
|
|
1281
|
+
beforeCreate: "beforeCreate";
|
|
1282
|
+
beforeRevise: "beforeRevise";
|
|
1283
|
+
afterCreate: "afterCreate";
|
|
1284
|
+
afterRevise: "afterRevise";
|
|
1285
|
+
afterStatusChanged: "afterStatusChanged";
|
|
1286
|
+
afterObservationAdded: "afterObservationAdded";
|
|
1287
|
+
}>;
|
|
1288
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
}, z.core.$strip>>>>;
|
|
1180
1291
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
1181
1292
|
tools: z.ZodOptional<z.ZodBoolean>;
|
|
1182
1293
|
bootstrap: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1192,7 +1303,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1192
1303
|
}, z.core.$strip>>;
|
|
1193
1304
|
}, z.core.$strip>;
|
|
1194
1305
|
//#endregion
|
|
1195
|
-
//#region
|
|
1306
|
+
//#region core/contracts/src/extension/extension-token.d.ts
|
|
1196
1307
|
/**
|
|
1197
1308
|
* Typed extension service tokens.
|
|
1198
1309
|
*
|
|
@@ -1207,7 +1318,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1207
1318
|
* while TypeScript carries the expected service type through `getService`.
|
|
1208
1319
|
* @typeParam T - Service type exposed by the extension.
|
|
1209
1320
|
*/
|
|
1210
|
-
interface ExtensionToken<T = unknown> {
|
|
1321
|
+
interface ExtensionToken$1<T = unknown> {
|
|
1211
1322
|
/** Extension name registered with the runtime coordinator. */
|
|
1212
1323
|
readonly name: string;
|
|
1213
1324
|
/** Phantom marker for the token's service type. */
|
|
@@ -1218,9 +1329,9 @@ interface ExtensionToken<T = unknown> {
|
|
|
1218
1329
|
* @param name - Extension name registered with the runtime coordinator.
|
|
1219
1330
|
* @returns Frozen token carrying the extension name and service type.
|
|
1220
1331
|
*/
|
|
1221
|
-
declare function extensionToken<T>(name: string): ExtensionToken<T>;
|
|
1332
|
+
declare function extensionToken$1<T>(name: string): ExtensionToken$1<T>;
|
|
1222
1333
|
//#endregion
|
|
1223
|
-
//#region
|
|
1334
|
+
//#region core/contracts/src/extension/adapter-definition.d.ts
|
|
1224
1335
|
/**
|
|
1225
1336
|
* Adapter-side declaration of a supported provider.
|
|
1226
1337
|
*
|
|
@@ -1252,7 +1363,7 @@ interface AdapterProviderRef {
|
|
|
1252
1363
|
* Both `ai-adapters-core/src/types/provider-definition.ts` and
|
|
1253
1364
|
* `adapter-subsystem/src/adapter-runtime-types.ts` extend or alias this type.
|
|
1254
1365
|
*/
|
|
1255
|
-
interface AdapterProviderDefinitionContract {
|
|
1366
|
+
interface AdapterProviderDefinitionContract$1 {
|
|
1256
1367
|
/**
|
|
1257
1368
|
* Provider identity, model catalog, and endpoint declarations.
|
|
1258
1369
|
*
|
|
@@ -1261,7 +1372,7 @@ interface AdapterProviderDefinitionContract {
|
|
|
1261
1372
|
* the registry service populates at boot time). The runtime-resolved type
|
|
1262
1373
|
* narrows after the adapter subsystem merges the registry data.
|
|
1263
1374
|
*/
|
|
1264
|
-
readonly definition: ProviderDefinitionInput;
|
|
1375
|
+
readonly definition: ProviderDefinitionInput$1;
|
|
1265
1376
|
/**
|
|
1266
1377
|
* Zod schema for provider-specific configuration fields.
|
|
1267
1378
|
*
|
|
@@ -1299,7 +1410,7 @@ interface AdapterProviderDefinitionContract {
|
|
|
1299
1410
|
* Specialised adapter interfaces (e.g. `AIAdapterDefinition`) pass a narrower
|
|
1300
1411
|
* options type here to gain compile-time safety in their factory signatures.
|
|
1301
1412
|
*/
|
|
1302
|
-
interface AdapterDefinitionContract<TAdapter = unknown, TOptions = never> {
|
|
1413
|
+
interface AdapterDefinitionContract$1<TAdapter = unknown, TOptions = never> {
|
|
1303
1414
|
/**
|
|
1304
1415
|
* Stable machine identifier for this adapter (e.g., `'claude-code'`).
|
|
1305
1416
|
*
|
|
@@ -1386,7 +1497,7 @@ interface AdapterDefinitionContract<TAdapter = unknown, TOptions = never> {
|
|
|
1386
1497
|
* to route requests. The serializable counterpart (`AdapterManifest.protocols`)
|
|
1387
1498
|
* may declare additional protocols for discovery-time use.
|
|
1388
1499
|
*/
|
|
1389
|
-
readonly protocol?: ProtocolId;
|
|
1500
|
+
readonly protocol?: ProtocolId$1;
|
|
1390
1501
|
/**
|
|
1391
1502
|
* Factory that creates the adapter instance.
|
|
1392
1503
|
*
|
|
@@ -1399,7 +1510,7 @@ interface AdapterDefinitionContract<TAdapter = unknown, TOptions = never> {
|
|
|
1399
1510
|
readonly createAdapter: (options?: TOptions) => Promise<TAdapter>;
|
|
1400
1511
|
}
|
|
1401
1512
|
//#endregion
|
|
1402
|
-
//#region
|
|
1513
|
+
//#region core/contracts/src/extension/extension-warning.d.ts
|
|
1403
1514
|
/**
|
|
1404
1515
|
* Discriminated union of actionable responses to an extension warning.
|
|
1405
1516
|
*
|
|
@@ -1433,9 +1544,9 @@ declare const ExtensionWarningActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1433
1544
|
* - `'degraded'` — the extension is operating in a degraded fallback mode.
|
|
1434
1545
|
*/
|
|
1435
1546
|
declare const ExtensionWarningSeveritySchema: z.ZodEnum<{
|
|
1547
|
+
degraded: "degraded";
|
|
1436
1548
|
info: "info";
|
|
1437
1549
|
recommended: "recommended";
|
|
1438
|
-
degraded: "degraded";
|
|
1439
1550
|
}>;
|
|
1440
1551
|
/**
|
|
1441
1552
|
* A single health warning emitted by a package's `checkHealth` hook.
|
|
@@ -1445,9 +1556,9 @@ declare const ExtensionWarningSeveritySchema: z.ZodEnum<{
|
|
|
1445
1556
|
*/
|
|
1446
1557
|
declare const ExtensionWarningSchema: z.ZodObject<{
|
|
1447
1558
|
severity: z.ZodEnum<{
|
|
1559
|
+
degraded: "degraded";
|
|
1448
1560
|
info: "info";
|
|
1449
1561
|
recommended: "recommended";
|
|
1450
|
-
degraded: "degraded";
|
|
1451
1562
|
}>;
|
|
1452
1563
|
title: z.ZodString;
|
|
1453
1564
|
message: z.ZodString;
|
|
@@ -1492,9 +1603,9 @@ declare const ExtensionWarningEntrySchema: z.ZodObject<{
|
|
|
1492
1603
|
extensionName: z.ZodString;
|
|
1493
1604
|
warnings: z.ZodArray<z.ZodObject<{
|
|
1494
1605
|
severity: z.ZodEnum<{
|
|
1606
|
+
degraded: "degraded";
|
|
1495
1607
|
info: "info";
|
|
1496
1608
|
recommended: "recommended";
|
|
1497
|
-
degraded: "degraded";
|
|
1498
1609
|
}>;
|
|
1499
1610
|
title: z.ZodString;
|
|
1500
1611
|
message: z.ZodString;
|
|
@@ -1517,7 +1628,7 @@ declare const ExtensionWarningEntrySchema: z.ZodObject<{
|
|
|
1517
1628
|
/** Inferred TypeScript type for {@link ExtensionWarningEntrySchema}. */
|
|
1518
1629
|
type ExtensionWarningEntry = z.infer<typeof ExtensionWarningEntrySchema>;
|
|
1519
1630
|
//#endregion
|
|
1520
|
-
//#region
|
|
1631
|
+
//#region core/contracts/src/extension/extension-lifecycle.d.ts
|
|
1521
1632
|
declare const extensionIdentityBrand: unique symbol;
|
|
1522
1633
|
/**
|
|
1523
1634
|
* Opaque extension identity minted by the runtime coordinator.
|
|
@@ -1539,7 +1650,7 @@ interface ExtensionIdentity {
|
|
|
1539
1650
|
* BaseService satisfies this interface, but plain service classes can also
|
|
1540
1651
|
* participate in extension startup when they expose the same lifecycle.
|
|
1541
1652
|
*/
|
|
1542
|
-
interface ExtensionServiceLifecycle {
|
|
1653
|
+
interface ExtensionServiceLifecycle$1 {
|
|
1543
1654
|
/** Initialize the service when startup work is not constructor-owned. */
|
|
1544
1655
|
init?(): Promise<void> | void;
|
|
1545
1656
|
/** Destroy the service and release resources when teardown is required. */
|
|
@@ -1560,9 +1671,9 @@ interface ExtensionServiceLifecycle {
|
|
|
1560
1671
|
* Any class that extends `BaseService` satisfies this interface structurally
|
|
1561
1672
|
* because `BaseService` exposes the same lifecycle methods.
|
|
1562
1673
|
*/
|
|
1563
|
-
type ExtensionService = ExtensionServiceLifecycle;
|
|
1674
|
+
type ExtensionService$1 = ExtensionServiceLifecycle$1;
|
|
1564
1675
|
//#endregion
|
|
1565
|
-
//#region
|
|
1676
|
+
//#region core/contracts/src/extension/extension-context.d.ts
|
|
1566
1677
|
/**
|
|
1567
1678
|
* Generic context provided by a host runtime when creating an extension's service.
|
|
1568
1679
|
*
|
|
@@ -1571,7 +1682,7 @@ type ExtensionService = ExtensionServiceLifecycle;
|
|
|
1571
1682
|
* lifecycle controls. Host-specific environment details belong on explicit
|
|
1572
1683
|
* context extensions such as {@link NodeExtensionContext}.
|
|
1573
1684
|
*/
|
|
1574
|
-
interface ExtensionContext<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
1685
|
+
interface ExtensionContext$1<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
1575
1686
|
/** Bus instance for registering handlers and emitting events. */
|
|
1576
1687
|
readonly bus: TBus;
|
|
1577
1688
|
/** Coordinator-minted identity for the extension being created. */
|
|
@@ -1606,7 +1717,7 @@ interface ExtensionContext<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
|
1606
1717
|
* @param token - Extension-owned token identifying the desired service.
|
|
1607
1718
|
* @returns The active service instance, or `undefined` when unavailable.
|
|
1608
1719
|
*/
|
|
1609
|
-
getService<T>(token: ExtensionToken<T>): T | undefined;
|
|
1720
|
+
getService<T>(token: ExtensionToken$1<T>): T | undefined;
|
|
1610
1721
|
/**
|
|
1611
1722
|
* Attempt a dynamic import, returning `null` when the package is not installed.
|
|
1612
1723
|
*
|
|
@@ -1642,7 +1753,7 @@ interface ExtensionContext<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
|
1642
1753
|
* Extensions that need these fields should opt into this context explicitly;
|
|
1643
1754
|
* host-agnostic extensions can type themselves against {@link ExtensionContext}.
|
|
1644
1755
|
*/
|
|
1645
|
-
interface NodeExtensionContext<TBus extends MakaioBusLike = MakaioBusLike> extends ExtensionContext<TBus> {
|
|
1756
|
+
interface NodeExtensionContext$1<TBus extends MakaioBusLike = MakaioBusLike> extends ExtensionContext$1<TBus> {
|
|
1646
1757
|
/** Current platform identifier (e.g., `'darwin'`, `'linux'`, `'win32'`). */
|
|
1647
1758
|
readonly platform: NodeJS.Platform;
|
|
1648
1759
|
/** User's home directory path. */
|
|
@@ -1660,7 +1771,7 @@ interface NodeExtensionContext<TBus extends MakaioBusLike = MakaioBusLike> exten
|
|
|
1660
1771
|
readonly busUrl?: string;
|
|
1661
1772
|
}
|
|
1662
1773
|
//#endregion
|
|
1663
|
-
//#region
|
|
1774
|
+
//#region core/contracts/src/extension/extension-cli.d.ts
|
|
1664
1775
|
/**
|
|
1665
1776
|
* Type-erased output channel used by extension-local CLI handlers.
|
|
1666
1777
|
*
|
|
@@ -1708,6 +1819,8 @@ interface ExtensionCliInteractiveContext<TBus extends MakaioBusLike = MakaioBusL
|
|
|
1708
1819
|
* hook opted into bus-optional execution.
|
|
1709
1820
|
*/
|
|
1710
1821
|
readonly bus: TBus | null;
|
|
1822
|
+
/** Abort signal triggered when the interactive invocation is cancelled. */
|
|
1823
|
+
readonly signal: AbortSignal;
|
|
1711
1824
|
}
|
|
1712
1825
|
/**
|
|
1713
1826
|
* Type-erased CLI subcommand entry for collection storage.
|
|
@@ -1769,7 +1882,7 @@ interface ExtensionCliContribution<TBus extends MakaioBusLike = MakaioBusLike> e
|
|
|
1769
1882
|
readonly beforeRun?: (context: ExtensionCliBeforeRunContext<TBus>) => ExtensionCliBeforeRunResult | Promise<ExtensionCliBeforeRunResult>;
|
|
1770
1883
|
}
|
|
1771
1884
|
//#endregion
|
|
1772
|
-
//#region
|
|
1885
|
+
//#region core/contracts/src/extension/extension-runtime-boot.d.ts
|
|
1773
1886
|
/**
|
|
1774
1887
|
* Runtime subsystems with exactly one executable owner per boot.
|
|
1775
1888
|
*
|
|
@@ -1783,7 +1896,7 @@ interface ExtensionRuntimeOwnership {
|
|
|
1783
1896
|
readonly sessionOrchestrator?: boolean;
|
|
1784
1897
|
}
|
|
1785
1898
|
//#endregion
|
|
1786
|
-
//#region
|
|
1899
|
+
//#region core/contracts/src/extension/contributions/session-event-action-types.d.ts
|
|
1787
1900
|
/** Keyboard modifier flags for an action shortcut. */
|
|
1788
1901
|
interface ActionShortcutModifiers {
|
|
1789
1902
|
/** Meta/Command key. */
|
|
@@ -1875,7 +1988,7 @@ interface SessionEventActionContext<TBus extends MakaioBusLike = MakaioBusLike>
|
|
|
1875
1988
|
*/
|
|
1876
1989
|
interface WhenContext<TRoles extends MessageRole[] = MessageRole[], TBus extends MakaioBusLike = MakaioBusLike> {
|
|
1877
1990
|
/** The message event that triggered the predicate check. */
|
|
1878
|
-
message: SessionMessage & {
|
|
1991
|
+
message: SessionMessage$1 & {
|
|
1879
1992
|
role: TRoles[number];
|
|
1880
1993
|
};
|
|
1881
1994
|
/** Active session identifier. */
|
|
@@ -1892,7 +2005,7 @@ interface PickerOpenContext<TRoles extends MessageRole[] = MessageRole[], TBus e
|
|
|
1892
2005
|
/** Entrypoint information for the action. */
|
|
1893
2006
|
entrypoint: {
|
|
1894
2007
|
/** The message that was actioned. */messageId: string; /** Full message object. */
|
|
1895
|
-
message: SessionMessage & {
|
|
2008
|
+
message: SessionMessage$1 & {
|
|
1896
2009
|
role: TRoles[number];
|
|
1897
2010
|
};
|
|
1898
2011
|
};
|
|
@@ -1918,11 +2031,11 @@ interface PickerConfig {
|
|
|
1918
2031
|
*/
|
|
1919
2032
|
interface SelectionChangeContext<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
1920
2033
|
/** Currently selected session events. */
|
|
1921
|
-
selectedEvents: MakaioSessionEvent[];
|
|
2034
|
+
selectedEvents: MakaioSessionEvent$1[];
|
|
1922
2035
|
/** Entrypoint information for the action. */
|
|
1923
2036
|
entrypoint: {
|
|
1924
2037
|
/** The message that was actioned. */messageId: string; /** Full message object. */
|
|
1925
|
-
message: SessionMessage;
|
|
2038
|
+
message: SessionMessage$1;
|
|
1926
2039
|
};
|
|
1927
2040
|
/** Active session identifier. */
|
|
1928
2041
|
sessionId: string;
|
|
@@ -1943,12 +2056,12 @@ interface ExecuteContext<TMode extends 'single' | 'multi' = 'single' | 'multi',
|
|
|
1943
2056
|
/** Entrypoint information for the action. */
|
|
1944
2057
|
entrypoint: {
|
|
1945
2058
|
/** The message that was actioned. */messageId: string; /** Full message object. */
|
|
1946
|
-
message: SessionMessage & {
|
|
2059
|
+
message: SessionMessage$1 & {
|
|
1947
2060
|
role: TRoles[number];
|
|
1948
2061
|
};
|
|
1949
2062
|
};
|
|
1950
2063
|
/** Selected events when in multi-selection mode, otherwise `undefined`. */
|
|
1951
|
-
selectedEvents: TMode extends 'multi' ? MakaioSessionEvent[] : undefined;
|
|
2064
|
+
selectedEvents: TMode extends 'multi' ? MakaioSessionEvent$1[] : undefined;
|
|
1952
2065
|
/** Active session identifier. */
|
|
1953
2066
|
sessionId: string;
|
|
1954
2067
|
/** Active project identifier. */
|
|
@@ -2048,7 +2161,7 @@ interface CreateSessionEventActionResult {
|
|
|
2048
2161
|
unregister: () => void;
|
|
2049
2162
|
}
|
|
2050
2163
|
//#endregion
|
|
2051
|
-
//#region
|
|
2164
|
+
//#region core/contracts/src/extension/contributions/hash-trigger-types.d.ts
|
|
2052
2165
|
/** Pipeline stage a hash trigger participates in. */
|
|
2053
2166
|
type HashTriggerStage = 'gather' | 'transform' | 'action';
|
|
2054
2167
|
/** Single suggestion entry returned by a hash trigger's suggest call. */
|
|
@@ -2153,7 +2266,7 @@ interface HashTrigger<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
|
2153
2266
|
execute?(value: string, context: HashTriggerContext<TBus>): Promise<string>;
|
|
2154
2267
|
}
|
|
2155
2268
|
//#endregion
|
|
2156
|
-
//#region
|
|
2269
|
+
//#region core/contracts/src/extension/contributions/ui-context-types.d.ts
|
|
2157
2270
|
/**
|
|
2158
2271
|
* Extension point for UI scope identifiers.
|
|
2159
2272
|
*
|
|
@@ -2167,7 +2280,7 @@ interface UiScopeMap {
|
|
|
2167
2280
|
any: true;
|
|
2168
2281
|
}
|
|
2169
2282
|
/** UI scope identifier, extensible via {@link UiScopeMap}. */
|
|
2170
|
-
type UiScope = keyof UiScopeMap & string;
|
|
2283
|
+
type UiScope$1 = keyof UiScopeMap & string;
|
|
2171
2284
|
/**
|
|
2172
2285
|
* Extension point for UI navigation levels.
|
|
2173
2286
|
*
|
|
@@ -2180,7 +2293,7 @@ interface UiNavigationLevelMap {
|
|
|
2180
2293
|
any: true;
|
|
2181
2294
|
}
|
|
2182
2295
|
/** UI navigation level, extensible via {@link UiNavigationLevelMap}. */
|
|
2183
|
-
type UiNavigationLevel = keyof UiNavigationLevelMap & string;
|
|
2296
|
+
type UiNavigationLevel$1 = keyof UiNavigationLevelMap & string;
|
|
2184
2297
|
/**
|
|
2185
2298
|
* Runtime UI navigation level.
|
|
2186
2299
|
*
|
|
@@ -2188,7 +2301,7 @@ type UiNavigationLevel = keyof UiNavigationLevelMap & string;
|
|
|
2188
2301
|
* level is reserved for definition matching and is never an active navigation
|
|
2189
2302
|
* level.
|
|
2190
2303
|
*/
|
|
2191
|
-
type UiRuntimeNavigationLevel = Exclude<UiNavigationLevel, 'any'>;
|
|
2304
|
+
type UiRuntimeNavigationLevel = Exclude<UiNavigationLevel$1, 'any'>;
|
|
2192
2305
|
/**
|
|
2193
2306
|
* Extension point for typed UI context values.
|
|
2194
2307
|
*
|
|
@@ -2202,14 +2315,14 @@ interface UiContextValueMap {
|
|
|
2202
2315
|
/** UI context dimension identifier, extensible via {@link UiContextValueMap}. */
|
|
2203
2316
|
type UiContextDimension = keyof UiContextValueMap & string;
|
|
2204
2317
|
/** Snapshot of host UI context passed to contributed UI. */
|
|
2205
|
-
interface UiContextSnapshot {
|
|
2318
|
+
interface UiContextSnapshot$1 {
|
|
2206
2319
|
/** Active navigation level for the renderer surface. */
|
|
2207
2320
|
readonly level: UiRuntimeNavigationLevel;
|
|
2208
2321
|
/** Active context values keyed by registered context dimension. */
|
|
2209
2322
|
readonly values: Partial<{ readonly [K in UiContextDimension]: UiContextValueMap[K] | null }>;
|
|
2210
2323
|
}
|
|
2211
2324
|
//#endregion
|
|
2212
|
-
//#region
|
|
2325
|
+
//#region core/contracts/src/extension/contributions/tile-types.d.ts
|
|
2213
2326
|
/** Optional feature flags a tile can declare. */
|
|
2214
2327
|
interface TileCapabilities {
|
|
2215
2328
|
/** Whether this tile supports fullscreen mode. */
|
|
@@ -2319,7 +2432,7 @@ interface TileDeclaration {
|
|
|
2319
2432
|
*
|
|
2320
2433
|
* Defaults to `'any'` when not specified.
|
|
2321
2434
|
*/
|
|
2322
|
-
scope?: UiScope;
|
|
2435
|
+
scope?: UiScope$1;
|
|
2323
2436
|
/**
|
|
2324
2437
|
* Icon loader for the tile.
|
|
2325
2438
|
*
|
|
@@ -2351,7 +2464,7 @@ interface TileDeclaration {
|
|
|
2351
2464
|
renderers: TileRenderers;
|
|
2352
2465
|
}
|
|
2353
2466
|
//#endregion
|
|
2354
|
-
//#region
|
|
2467
|
+
//#region core/contracts/src/extension/contributions/widget-types.d.ts
|
|
2355
2468
|
/**
|
|
2356
2469
|
* Widget size variants.
|
|
2357
2470
|
*
|
|
@@ -2408,7 +2521,7 @@ interface WidgetProps<TData = unknown> {
|
|
|
2408
2521
|
/** Data from the widget's data source (when `dataSource` is defined). */
|
|
2409
2522
|
data?: TData;
|
|
2410
2523
|
/** Active host UI context for this widget surface. */
|
|
2411
|
-
uiContext: UiContextSnapshot;
|
|
2524
|
+
uiContext: UiContextSnapshot$1;
|
|
2412
2525
|
}
|
|
2413
2526
|
/**
|
|
2414
2527
|
* Framework-agnostic UI component shape for lazy widget modules.
|
|
@@ -2501,7 +2614,7 @@ interface WidgetDeclaration {
|
|
|
2501
2614
|
*
|
|
2502
2615
|
* Defaults to `'global'` when not specified.
|
|
2503
2616
|
*/
|
|
2504
|
-
scope?: UiScope;
|
|
2617
|
+
scope?: UiScope$1;
|
|
2505
2618
|
/**
|
|
2506
2619
|
* Serializable widget definition.
|
|
2507
2620
|
*
|
|
@@ -2518,7 +2631,7 @@ interface WidgetDeclaration {
|
|
|
2518
2631
|
renderers: WidgetRenderers;
|
|
2519
2632
|
}
|
|
2520
2633
|
//#endregion
|
|
2521
|
-
//#region
|
|
2634
|
+
//#region core/contracts/src/extension/contributions/page-types.d.ts
|
|
2522
2635
|
/**
|
|
2523
2636
|
* Widget size values used for slot declarations in page layouts.
|
|
2524
2637
|
*/
|
|
@@ -2634,7 +2747,7 @@ interface PageDeclaration {
|
|
|
2634
2747
|
*/
|
|
2635
2748
|
route?: string;
|
|
2636
2749
|
/** UI scope for this page context. */
|
|
2637
|
-
scope: UiScope;
|
|
2750
|
+
scope: UiScope$1;
|
|
2638
2751
|
/** Slot definitions for this page's layout. */
|
|
2639
2752
|
slots: SlotDeclaration[];
|
|
2640
2753
|
/** Default content per slot. */
|
|
@@ -2662,7 +2775,7 @@ interface PageDeclaration {
|
|
|
2662
2775
|
*
|
|
2663
2776
|
* Required when `mode` is provided.
|
|
2664
2777
|
*/
|
|
2665
|
-
level?: UiNavigationLevel;
|
|
2778
|
+
level?: UiNavigationLevel$1;
|
|
2666
2779
|
/**
|
|
2667
2780
|
* Lazy-loaded page component for sidebar navigation.
|
|
2668
2781
|
*
|
|
@@ -2684,7 +2797,7 @@ interface PageDeclaration {
|
|
|
2684
2797
|
order?: number;
|
|
2685
2798
|
}
|
|
2686
2799
|
//#endregion
|
|
2687
|
-
//#region
|
|
2800
|
+
//#region core/contracts/src/extension/contributions/tool-formatter-types.d.ts
|
|
2688
2801
|
/** Discriminated content types for formatted tool call output. */
|
|
2689
2802
|
type PluginTransformedContentType = 'markdown';
|
|
2690
2803
|
/** Formatted content block for tool call display. */
|
|
@@ -2752,7 +2865,7 @@ interface ToolCallFormatterDeclaration {
|
|
|
2752
2865
|
format: (input: PluginToolCallFormatterInput) => PluginFormattedToolCallOutput | undefined;
|
|
2753
2866
|
}
|
|
2754
2867
|
//#endregion
|
|
2755
|
-
//#region
|
|
2868
|
+
//#region core/contracts/src/extension/contributions/web-ui-types.d.ts
|
|
2756
2869
|
/**
|
|
2757
2870
|
* Request context passed to a WebUI loader function.
|
|
2758
2871
|
*
|
|
@@ -2768,7 +2881,7 @@ interface LoaderContext {
|
|
|
2768
2881
|
*/
|
|
2769
2882
|
sessionId?: string;
|
|
2770
2883
|
/** Active host UI context for the matched route. */
|
|
2771
|
-
uiContext: UiContextSnapshot;
|
|
2884
|
+
uiContext: UiContextSnapshot$1;
|
|
2772
2885
|
/**
|
|
2773
2886
|
* URL parameters from the matched route, including path segments and query
|
|
2774
2887
|
* strings.
|
|
@@ -2890,7 +3003,232 @@ type ExtensionConfigComponentLoader<TConfig = unknown> = () => Promise<{
|
|
|
2890
3003
|
default: ComponentType<ExtensionConfigComponentProps<TConfig>>;
|
|
2891
3004
|
}>;
|
|
2892
3005
|
//#endregion
|
|
2893
|
-
//#region
|
|
3006
|
+
//#region core/contracts/src/workflow/blocks.d.ts
|
|
3007
|
+
/**
|
|
3008
|
+
* JSON Schema document used for `outputSchema` fields on step block run mappings.
|
|
3009
|
+
*
|
|
3010
|
+
* A JSON Schema document is a JSON object (`Record<string, JsonValue>`). Using
|
|
3011
|
+
* the inferred type from {@link JsonSchemaRecordSchema} keeps this type consistent
|
|
3012
|
+
* with the schema validator used in persisted workflow node definitions.
|
|
3013
|
+
*/
|
|
3014
|
+
type JsonSchemaRecord = Record<string, JsonValue$1>;
|
|
3015
|
+
/**
|
|
3016
|
+
* Step block run mapping that compiles into a `station` primitive node.
|
|
3017
|
+
*
|
|
3018
|
+
* A station node is an atomic work unit executed by an AI agent or registered
|
|
3019
|
+
* runtime handler. The `prompt` is a template evaluated against the builder
|
|
3020
|
+
* form values; the optional `role` selects the executor role.
|
|
3021
|
+
*/
|
|
3022
|
+
interface StationNodeBlockRun {
|
|
3023
|
+
/** Run mapping discriminant. */
|
|
3024
|
+
readonly type: 'station';
|
|
3025
|
+
/**
|
|
3026
|
+
* Task prompt template compiled into the station node.
|
|
3027
|
+
* Supports `{{ config.<field> }}` and `{{ input.<field> }}` interpolation.
|
|
3028
|
+
*/
|
|
3029
|
+
readonly prompt: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* Named role reference forwarded to the compiled station node.
|
|
3032
|
+
* Resolved via the bus `resolveRole` RPC before execution.
|
|
3033
|
+
*/
|
|
3034
|
+
readonly role?: string;
|
|
3035
|
+
/**
|
|
3036
|
+
* JSON Schema for the expected station output.
|
|
3037
|
+
* Forwarded verbatim to the compiled station node's `outputSchema` field.
|
|
3038
|
+
*/
|
|
3039
|
+
readonly outputSchema?: JsonSchemaRecord;
|
|
3040
|
+
/**
|
|
3041
|
+
* Positive timeout in milliseconds forwarded to the compiled station node.
|
|
3042
|
+
* Defaults to 300 000 ms at execution time when omitted.
|
|
3043
|
+
*/
|
|
3044
|
+
readonly timeoutMs?: number;
|
|
3045
|
+
}
|
|
3046
|
+
/**
|
|
3047
|
+
* Step block run mapping that compiles into a `delegate-agent` primitive node.
|
|
3048
|
+
*
|
|
3049
|
+
* The `agentId` references a registered agent definition. The block builder
|
|
3050
|
+
* resolves `inputExpression` against the configured form values when compiling
|
|
3051
|
+
* the node.
|
|
3052
|
+
*/
|
|
3053
|
+
interface DelegateAgentNodeBlockRun {
|
|
3054
|
+
/** Run mapping discriminant. */
|
|
3055
|
+
readonly type: 'delegate-agent';
|
|
3056
|
+
/**
|
|
3057
|
+
* Identifier of the registered agent definition to invoke.
|
|
3058
|
+
*/
|
|
3059
|
+
readonly agentId: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* jexl expression template resolving to the agent input payload.
|
|
3062
|
+
* Supports `{{ config.<field> }}` and `{{ input.<field> }}` interpolation
|
|
3063
|
+
* that the builder resolves when compiling into a concrete node.
|
|
3064
|
+
*/
|
|
3065
|
+
readonly inputExpression?: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* JSON Schema for the expected agent output.
|
|
3068
|
+
* Forwarded verbatim to the compiled node's `outputSchema` field.
|
|
3069
|
+
*/
|
|
3070
|
+
readonly outputSchema?: JsonSchemaRecord;
|
|
3071
|
+
}
|
|
3072
|
+
/**
|
|
3073
|
+
* Step block run mapping that compiles into a `delegate-role` primitive node.
|
|
3074
|
+
*
|
|
3075
|
+
* The `role` is a product-resolved named executor. The `prompt` template is
|
|
3076
|
+
* evaluated against the builder form values when compiling the node.
|
|
3077
|
+
*/
|
|
3078
|
+
interface DelegateRoleNodeBlockRun {
|
|
3079
|
+
/** Run mapping discriminant. */
|
|
3080
|
+
readonly type: 'delegate-role';
|
|
3081
|
+
/**
|
|
3082
|
+
* Named role reference resolved via the bus `resolveRole` RPC at execution time.
|
|
3083
|
+
*/
|
|
3084
|
+
readonly role: string;
|
|
3085
|
+
/**
|
|
3086
|
+
* Task prompt template forwarded to the compiled node.
|
|
3087
|
+
* Supports `{{ config.<field> }}` and `{{ input.<field> }}` interpolation.
|
|
3088
|
+
*/
|
|
3089
|
+
readonly prompt: string;
|
|
3090
|
+
/**
|
|
3091
|
+
* JSON Schema for the expected delegation output.
|
|
3092
|
+
* Forwarded verbatim to the compiled node's `outputSchema` field.
|
|
3093
|
+
*/
|
|
3094
|
+
readonly outputSchema?: JsonSchemaRecord;
|
|
3095
|
+
/**
|
|
3096
|
+
* Positive timeout in milliseconds forwarded to the compiled node.
|
|
3097
|
+
* Defaults to 300 000 ms at execution time when omitted.
|
|
3098
|
+
*/
|
|
3099
|
+
readonly timeoutMs?: number;
|
|
3100
|
+
}
|
|
3101
|
+
/**
|
|
3102
|
+
* Discriminated union of all supported workflow step block run mappings.
|
|
3103
|
+
*
|
|
3104
|
+
* Each variant maps a declared step block to a concrete primitive node type.
|
|
3105
|
+
* The builder compiles the selected variant into the workflow definition as the
|
|
3106
|
+
* corresponding {@link WorkflowNode} subtype when the block is placed in the canvas.
|
|
3107
|
+
*
|
|
3108
|
+
* Extend this union when new primitive node types require builder support.
|
|
3109
|
+
*/
|
|
3110
|
+
type WorkflowStepBlockRun = StationNodeBlockRun | DelegateAgentNodeBlockRun | DelegateRoleNodeBlockRun;
|
|
3111
|
+
/**
|
|
3112
|
+
* Metadata shared by all workflow blocks.
|
|
3113
|
+
*/
|
|
3114
|
+
interface WorkflowBlockMetadata {
|
|
3115
|
+
/** Stable identifier, namespaced by extension (e.g., 'coderabbit.review-posted'). */
|
|
3116
|
+
name: string;
|
|
3117
|
+
/** Human-readable label for the builder UI. */
|
|
3118
|
+
label: string;
|
|
3119
|
+
/** Short description for tooltips and catalog. */
|
|
3120
|
+
description: string;
|
|
3121
|
+
/** Grouping tags for the builder palette. Uncategorized blocks appear in "Other". */
|
|
3122
|
+
categories?: string[];
|
|
3123
|
+
}
|
|
3124
|
+
/**
|
|
3125
|
+
* A trigger block declaration — determines WHEN a workflow starts.
|
|
3126
|
+
* @typeParam TConfig - Zod shape for the builder configuration form.
|
|
3127
|
+
* @typeParam TOutput - Zod type for the payload passed into the workflow as input.
|
|
3128
|
+
*/
|
|
3129
|
+
interface WorkflowTriggerBlock<TConfig extends z.ZodRawShape = z.ZodRawShape, TOutput extends z.ZodType = z.ZodType> {
|
|
3130
|
+
/** Shared metadata used in the builder palette and catalog. */
|
|
3131
|
+
metadata: WorkflowBlockMetadata;
|
|
3132
|
+
/** Drives the configuration form in the builder UI. */
|
|
3133
|
+
configSchema: z.ZodObject<TConfig>;
|
|
3134
|
+
/** The payload shape passed into the workflow when this trigger fires. */
|
|
3135
|
+
outputSchema: TOutput;
|
|
3136
|
+
}
|
|
3137
|
+
/**
|
|
3138
|
+
* A step block declaration — determines WHAT happens inside a workflow.
|
|
3139
|
+
*
|
|
3140
|
+
* The `runs` field specifies which primitive node type this block compiles to
|
|
3141
|
+
* when placed in the workflow canvas. The builder reads `runs` to construct a
|
|
3142
|
+
* concrete {@link WorkflowNode} (station, delegate-agent, or delegate-role) for
|
|
3143
|
+
* the persisted workflow definition.
|
|
3144
|
+
* @typeParam TConfig - Zod shape for the builder configuration form.
|
|
3145
|
+
* @typeParam TInput - Zod type for what this step expects from upstream.
|
|
3146
|
+
* @typeParam TOutput - Zod type for what downstream steps can reference.
|
|
3147
|
+
*/
|
|
3148
|
+
interface WorkflowStepBlock<TConfig extends z.ZodRawShape = z.ZodRawShape, TInput extends z.ZodType = z.ZodType, TOutput extends z.ZodType = z.ZodType> {
|
|
3149
|
+
/** Shared metadata used in the builder palette and catalog. */
|
|
3150
|
+
metadata: WorkflowBlockMetadata;
|
|
3151
|
+
/** Drives the configuration form in the builder UI. */
|
|
3152
|
+
configSchema: z.ZodObject<TConfig>;
|
|
3153
|
+
/** What this step expects from upstream (expressions/config). */
|
|
3154
|
+
inputSchema: TInput;
|
|
3155
|
+
/** What downstream steps can reference via steps.<id>.result. */
|
|
3156
|
+
outputSchema: TOutput;
|
|
3157
|
+
/**
|
|
3158
|
+
* Primitive node compilation target for this step block.
|
|
3159
|
+
*
|
|
3160
|
+
* The builder reads this field and constructs the corresponding primitive
|
|
3161
|
+
* node ({@link WorkflowStationNode}, {@link WorkflowDelegateAgentNode}, or
|
|
3162
|
+
* {@link WorkflowDelegateRoleNode}) when the block is placed on the canvas.
|
|
3163
|
+
*/
|
|
3164
|
+
runs: WorkflowStepBlockRun;
|
|
3165
|
+
}
|
|
3166
|
+
/**
|
|
3167
|
+
* Collection of workflow blocks contributed by an extension.
|
|
3168
|
+
*/
|
|
3169
|
+
interface WorkflowBlockCollection$1 {
|
|
3170
|
+
/** Trigger block declarations — each determines WHEN a workflow starts. */
|
|
3171
|
+
readonly triggers?: readonly WorkflowTriggerBlock[];
|
|
3172
|
+
/** Step block declarations — each determines WHAT happens inside a workflow. */
|
|
3173
|
+
readonly steps?: readonly WorkflowStepBlock[];
|
|
3174
|
+
}
|
|
3175
|
+
/**
|
|
3176
|
+
* Serialized trigger block as stored in the registry and served via bus.
|
|
3177
|
+
*
|
|
3178
|
+
* Schema fields are stored as JSON Schema objects for transport and builder
|
|
3179
|
+
* catalog rendering.
|
|
3180
|
+
*/
|
|
3181
|
+
interface RegisteredTriggerBlock$1 {
|
|
3182
|
+
/** Trigger metadata combined with the owning extension name. */
|
|
3183
|
+
metadata: WorkflowBlockMetadata & {
|
|
3184
|
+
extensionName: string;
|
|
3185
|
+
};
|
|
3186
|
+
/** JSON Schema representation of the builder configuration form. */
|
|
3187
|
+
configSchema: Record<string, unknown>;
|
|
3188
|
+
/** JSON Schema representation of the trigger output payload. */
|
|
3189
|
+
outputSchema: Record<string, unknown>;
|
|
3190
|
+
}
|
|
3191
|
+
/**
|
|
3192
|
+
* Serialized step block as stored in the registry and served via bus.
|
|
3193
|
+
*
|
|
3194
|
+
* Schema fields are stored as JSON Schema objects for transport and builder
|
|
3195
|
+
* catalog rendering. The `runs` field is preserved verbatim from the block
|
|
3196
|
+
* declaration so the builder can construct the target primitive node directly.
|
|
3197
|
+
*/
|
|
3198
|
+
interface RegisteredStepBlock$1 {
|
|
3199
|
+
/** Step metadata combined with the owning extension name. */
|
|
3200
|
+
metadata: WorkflowBlockMetadata & {
|
|
3201
|
+
extensionName: string;
|
|
3202
|
+
};
|
|
3203
|
+
/** JSON Schema representation of the builder configuration form. */
|
|
3204
|
+
configSchema: Record<string, unknown>;
|
|
3205
|
+
/** JSON Schema representation of the expected upstream input. */
|
|
3206
|
+
inputSchema: Record<string, unknown>;
|
|
3207
|
+
/** JSON Schema representation of what downstream steps can reference. */
|
|
3208
|
+
outputSchema: Record<string, unknown>;
|
|
3209
|
+
/**
|
|
3210
|
+
* Primitive node compilation target preserved verbatim from the block declaration.
|
|
3211
|
+
* The builder uses this to construct the appropriate primitive node when
|
|
3212
|
+
* placing the block on the canvas.
|
|
3213
|
+
*/
|
|
3214
|
+
runs: WorkflowStepBlockRun;
|
|
3215
|
+
}
|
|
3216
|
+
//#endregion
|
|
3217
|
+
//#region core/contracts/src/extension/contributions/workflow-block-types.d.ts
|
|
3218
|
+
/**
|
|
3219
|
+
* Workflow block contribution — triggers and steps for the workflow builder.
|
|
3220
|
+
*
|
|
3221
|
+
* Unlike other contribution surfaces, blocks are purely declarative (no runtime
|
|
3222
|
+
* context needed), so this is a static property rather than a factory. The
|
|
3223
|
+
* workflow block registry processor reads `blocks` during extension activation
|
|
3224
|
+
* and serialises each block to JSON Schema for catalog storage.
|
|
3225
|
+
*/
|
|
3226
|
+
interface ExtensionWorkflowBlocksContribution {
|
|
3227
|
+
/** Trigger and step block declarations contributed by this extension. */
|
|
3228
|
+
readonly blocks: WorkflowBlockCollection$1;
|
|
3229
|
+
}
|
|
3230
|
+
//#endregion
|
|
3231
|
+
//#region core/contracts/src/extension/extension-contributions.d.ts
|
|
2894
3232
|
/**
|
|
2895
3233
|
* Typed adapter contribution declared by an extension.
|
|
2896
3234
|
*
|
|
@@ -2911,7 +3249,7 @@ interface AdapterContribution<TAdapter = unknown> {
|
|
|
2911
3249
|
* consumes this directly. The generic parameter allows higher-level types
|
|
2912
3250
|
* (e.g., `AIAdapterDefinition`) to narrow the factory return type.
|
|
2913
3251
|
*/
|
|
2914
|
-
readonly definition: AdapterDefinitionContract<TAdapter>;
|
|
3252
|
+
readonly definition: AdapterDefinitionContract$1<TAdapter>;
|
|
2915
3253
|
}
|
|
2916
3254
|
/**
|
|
2917
3255
|
* Opaque log import contribution declared by an extension.
|
|
@@ -2929,7 +3267,7 @@ interface LogImportContribution {
|
|
|
2929
3267
|
readonly config: unknown;
|
|
2930
3268
|
}
|
|
2931
3269
|
/** Tool contribution surface declared by an extension. */
|
|
2932
|
-
interface ExtensionToolsContribution<THostContext extends ExtensionContext = NodeExtensionContext> {
|
|
3270
|
+
interface ExtensionToolsContribution<THostContext extends ExtensionContext$1 = NodeExtensionContext$1> {
|
|
2933
3271
|
/**
|
|
2934
3272
|
* Create toolsets for this extension.
|
|
2935
3273
|
* @param ctx - Runtime context with bus, host details, and machine identity.
|
|
@@ -3035,7 +3373,7 @@ interface ExtensionUiContribution {
|
|
|
3035
3373
|
readonly configComponent?: ExtensionConfigComponentLoader;
|
|
3036
3374
|
}
|
|
3037
3375
|
//#endregion
|
|
3038
|
-
//#region
|
|
3376
|
+
//#region core/contracts/src/extension/contributions/bootstrap-types.d.ts
|
|
3039
3377
|
/**
|
|
3040
3378
|
* Context passed to bootstrap discovery and export operations.
|
|
3041
3379
|
* @typeParam TBus - Host bus shape supplied by the runtime.
|
|
@@ -3153,7 +3491,244 @@ interface ExtensionBootstrap<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
|
3153
3491
|
import: (ctx: BootstrapImportContext<TBus>, asset: BootstrapAsset, content: string, action: 'replace' | 'skip') => Promise<BootstrapImportResult>;
|
|
3154
3492
|
}
|
|
3155
3493
|
//#endregion
|
|
3156
|
-
//#region
|
|
3494
|
+
//#region core/contracts/src/workflow/transition.d.ts
|
|
3495
|
+
/**
|
|
3496
|
+
* The set of artifact bus events that can trigger a transition rule.
|
|
3497
|
+
*
|
|
3498
|
+
* - `artifact.created` — fires when a new artifact is created
|
|
3499
|
+
* - `artifact.revised` — fires when an existing artifact receives a new revision
|
|
3500
|
+
* - `artifact.status.changed` — fires when a tracked status field changes
|
|
3501
|
+
*/
|
|
3502
|
+
declare const TransitionEventTypeSchema: z.ZodEnum<{
|
|
3503
|
+
"artifact.created": "artifact.created";
|
|
3504
|
+
"artifact.revised": "artifact.revised";
|
|
3505
|
+
"artifact.status.changed": "artifact.status.changed";
|
|
3506
|
+
}>;
|
|
3507
|
+
type TransitionEventType$1 = z.infer<typeof TransitionEventTypeSchema>;
|
|
3508
|
+
/**
|
|
3509
|
+
* Serializable condition evaluated against an artifact event payload.
|
|
3510
|
+
*
|
|
3511
|
+
* Stored as an opaque JSON record in the contracts layer. The pipeline
|
|
3512
|
+
* service interprets this using `@makaio/rules` at evaluation time,
|
|
3513
|
+
* supporting field comparisons, `$and`/`$or`/`$not` combinators, and
|
|
3514
|
+
* `$expr` jexl expression strings.
|
|
3515
|
+
*
|
|
3516
|
+
* Evaluation context shape:
|
|
3517
|
+
* - `artifact` — the `ArtifactRevision` involved in the event
|
|
3518
|
+
* - `previous` — the previous `ArtifactRef` for `artifact.revised` events
|
|
3519
|
+
* - `previousArtifact` — the resolved previous `ArtifactRevision` for
|
|
3520
|
+
* `artifact.revised` events when the artifact store can provide it
|
|
3521
|
+
* - `path` — the status path for `artifact.status.changed` events
|
|
3522
|
+
* - `current` — the new status value for `artifact.status.changed` events
|
|
3523
|
+
*/
|
|
3524
|
+
declare const TransitionConditionSchema: z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
3525
|
+
type TransitionCondition = z.infer<typeof TransitionConditionSchema>;
|
|
3526
|
+
/**
|
|
3527
|
+
* Invocation descriptor for the action to execute when a transition rule fires.
|
|
3528
|
+
*
|
|
3529
|
+
* `type` selects the registered action handler; `input` supplies the
|
|
3530
|
+
* action-specific payload; `executionHints` threads optional infrastructure
|
|
3531
|
+
* hints to the execution host.
|
|
3532
|
+
*
|
|
3533
|
+
* Built-in action type:
|
|
3534
|
+
* - `'workflow.start'` — start a workflow execution via the bus
|
|
3535
|
+
*/
|
|
3536
|
+
declare const TransitionActionInvocationSchema: z.ZodObject<{
|
|
3537
|
+
type: z.ZodString;
|
|
3538
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
|
|
3539
|
+
executionHints: z.ZodOptional<z.ZodObject<{
|
|
3540
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3541
|
+
kind: z.ZodLiteral<"path">;
|
|
3542
|
+
path: z.ZodString;
|
|
3543
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3544
|
+
kind: z.ZodLiteral<"source">;
|
|
3545
|
+
filename: z.ZodString;
|
|
3546
|
+
source: z.ZodString;
|
|
3547
|
+
}, z.core.$strict>], "kind">>;
|
|
3548
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
3549
|
+
isolation: z.ZodOptional<z.ZodEnum<{
|
|
3550
|
+
local: "local";
|
|
3551
|
+
remote: "remote";
|
|
3552
|
+
container: "container";
|
|
3553
|
+
}>>;
|
|
3554
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3555
|
+
}, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
|
|
3556
|
+
providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
|
|
3557
|
+
}, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
|
|
3558
|
+
}, z.core.$strip>;
|
|
3559
|
+
type TransitionActionInvocation$1 = z.infer<typeof TransitionActionInvocationSchema>;
|
|
3560
|
+
/**
|
|
3561
|
+
* Declarative rule that watches artifact events and triggers workflow actions.
|
|
3562
|
+
*
|
|
3563
|
+
* Transition rules are purely serializable — no functions. The pipeline service
|
|
3564
|
+
* evaluates the `when` condition against the incoming artifact event payload and
|
|
3565
|
+
* dispatches the `action` through the `TransitionActionRegistry` when the
|
|
3566
|
+
* condition matches.
|
|
3567
|
+
*
|
|
3568
|
+
* ID namespacing:
|
|
3569
|
+
* - Bundle-contributed rules: `'<bundleId>.<localId>'`
|
|
3570
|
+
* - Extension-contributed rules: `'<extensionName>.<localId>'`
|
|
3571
|
+
*
|
|
3572
|
+
* Duplicate IDs across all sources hard-fail activation.
|
|
3573
|
+
*/
|
|
3574
|
+
declare const TransitionRuleDefinitionSchema$1: z.ZodObject<{
|
|
3575
|
+
id: z.ZodString;
|
|
3576
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3577
|
+
on: z.ZodEnum<{
|
|
3578
|
+
"artifact.created": "artifact.created";
|
|
3579
|
+
"artifact.revised": "artifact.revised";
|
|
3580
|
+
"artifact.status.changed": "artifact.status.changed";
|
|
3581
|
+
}>;
|
|
3582
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
|
|
3583
|
+
action: z.ZodObject<{
|
|
3584
|
+
type: z.ZodString;
|
|
3585
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
|
|
3586
|
+
executionHints: z.ZodOptional<z.ZodObject<{
|
|
3587
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3588
|
+
kind: z.ZodLiteral<"path">;
|
|
3589
|
+
path: z.ZodString;
|
|
3590
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3591
|
+
kind: z.ZodLiteral<"source">;
|
|
3592
|
+
filename: z.ZodString;
|
|
3593
|
+
source: z.ZodString;
|
|
3594
|
+
}, z.core.$strict>], "kind">>;
|
|
3595
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
3596
|
+
isolation: z.ZodOptional<z.ZodEnum<{
|
|
3597
|
+
local: "local";
|
|
3598
|
+
remote: "remote";
|
|
3599
|
+
container: "container";
|
|
3600
|
+
}>>;
|
|
3601
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3602
|
+
}, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
|
|
3603
|
+
providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
|
|
3604
|
+
}, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
|
|
3605
|
+
}, z.core.$strip>;
|
|
3606
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3607
|
+
}, z.core.$strip>;
|
|
3608
|
+
type TransitionRuleDefinition$1 = z.infer<typeof TransitionRuleDefinitionSchema$1>;
|
|
3609
|
+
/**
|
|
3610
|
+
* Transition rule contribution surface for extension packages.
|
|
3611
|
+
*
|
|
3612
|
+
* Declarative static rules contributed by an extension. Processed by
|
|
3613
|
+
* `TransitionContributionProcessor` during extension activation.
|
|
3614
|
+
*/
|
|
3615
|
+
interface ExtensionTransitionRulesContribution {
|
|
3616
|
+
/**
|
|
3617
|
+
* Transition rule definitions contributed by this extension.
|
|
3618
|
+
*
|
|
3619
|
+
* All IDs must be prefixed with `'<extensionName>.'` (enforced by the
|
|
3620
|
+
* contribution processor). Duplicate IDs hard-fail activation.
|
|
3621
|
+
*/
|
|
3622
|
+
readonly rules: readonly TransitionRuleDefinition$1[];
|
|
3623
|
+
}
|
|
3624
|
+
/**
|
|
3625
|
+
* Callable transition action handler.
|
|
3626
|
+
*
|
|
3627
|
+
* Invoked by the pipeline when a matching rule fires. Receives the resolved
|
|
3628
|
+
* invocation and the artifact event context so it can read artifact data when
|
|
3629
|
+
* building downstream bus requests.
|
|
3630
|
+
*/
|
|
3631
|
+
interface TransitionActionHandler {
|
|
3632
|
+
/**
|
|
3633
|
+
* Execute the action.
|
|
3634
|
+
* @param invocation - Resolved action invocation descriptor.
|
|
3635
|
+
* @param context - Evaluation context built from the triggering artifact event.
|
|
3636
|
+
* @returns Promise that resolves when the action dispatch completes.
|
|
3637
|
+
*/
|
|
3638
|
+
readonly execute: (invocation: TransitionActionInvocation$1, context: TransitionEvaluationContext$1) => Promise<void>;
|
|
3639
|
+
}
|
|
3640
|
+
/**
|
|
3641
|
+
* Factory that creates a {@link TransitionActionHandler} for a given action type.
|
|
3642
|
+
*
|
|
3643
|
+
* Factories are registered at contribution time and instantiated lazily by the
|
|
3644
|
+
* pipeline service.
|
|
3645
|
+
*/
|
|
3646
|
+
type TransitionActionFactory$1 = () => TransitionActionHandler;
|
|
3647
|
+
/**
|
|
3648
|
+
* Transition action factory contribution surface for extension packages.
|
|
3649
|
+
*
|
|
3650
|
+
* Extensions that need custom action semantics beyond the built-in
|
|
3651
|
+
* `workflow.start` action register their handler factories here.
|
|
3652
|
+
*/
|
|
3653
|
+
interface ExtensionTransitionActionsContribution {
|
|
3654
|
+
/**
|
|
3655
|
+
* Map of action type strings to action handler factories.
|
|
3656
|
+
*
|
|
3657
|
+
* Each key is a registered action `type` string as declared in
|
|
3658
|
+
* {@link TransitionActionInvocationSchema}. Values are factories
|
|
3659
|
+
* called once per rule dispatch to produce a fresh handler.
|
|
3660
|
+
*
|
|
3661
|
+
* All keys must be prefixed with `'<extensionName>.'`.
|
|
3662
|
+
*/
|
|
3663
|
+
readonly actions: Readonly<Record<string, TransitionActionFactory$1>>;
|
|
3664
|
+
}
|
|
3665
|
+
/**
|
|
3666
|
+
* Context object passed to condition evaluation and action dispatch.
|
|
3667
|
+
*
|
|
3668
|
+
* The pipeline builds this from the incoming artifact event payload so
|
|
3669
|
+
* that rules can reference `artifact`, `previous`, `path`, and `current`
|
|
3670
|
+
* fields using dot-notation in their `when` conditions.
|
|
3671
|
+
*/
|
|
3672
|
+
interface TransitionEvaluationContext$1 {
|
|
3673
|
+
/**
|
|
3674
|
+
* The artifact revision involved in the event.
|
|
3675
|
+
*
|
|
3676
|
+
* The transition pipeline resolves ref-oriented artifact events, such as
|
|
3677
|
+
* `artifact.status.changed`, before evaluating rules so authoring sees a
|
|
3678
|
+
* consistent full-revision context.
|
|
3679
|
+
*/
|
|
3680
|
+
readonly artifact: ArtifactRevision$1;
|
|
3681
|
+
/**
|
|
3682
|
+
* Previous value from the artifact event. For `artifact.revised` this is the
|
|
3683
|
+
* previous artifact ref; for `artifact.status.changed` this is the previous
|
|
3684
|
+
* status value.
|
|
3685
|
+
*/
|
|
3686
|
+
readonly previous?: unknown;
|
|
3687
|
+
/**
|
|
3688
|
+
* Resolved previous artifact revision for `artifact.revised` events.
|
|
3689
|
+
*
|
|
3690
|
+
* This preserves `previous` as the original event value while giving rules a
|
|
3691
|
+
* full before/after snapshot when they need to detect semantic deltas.
|
|
3692
|
+
*/
|
|
3693
|
+
readonly previousArtifact?: ArtifactRevision$1;
|
|
3694
|
+
/**
|
|
3695
|
+
* JSON Pointer path to the status field that changed.
|
|
3696
|
+
* Present only for `artifact.status.changed` events.
|
|
3697
|
+
*/
|
|
3698
|
+
readonly path?: string;
|
|
3699
|
+
/**
|
|
3700
|
+
* Current status value after the change.
|
|
3701
|
+
* Present only for `artifact.status.changed` events.
|
|
3702
|
+
*/
|
|
3703
|
+
readonly current?: unknown;
|
|
3704
|
+
/**
|
|
3705
|
+
* Loop-protection metadata injected by the pipeline.
|
|
3706
|
+
*
|
|
3707
|
+
* Downstream actions can inspect this to detect and break
|
|
3708
|
+
* artifact-triggered → workflow → artifact cycles.
|
|
3709
|
+
*/
|
|
3710
|
+
readonly _transition: {
|
|
3711
|
+
/**
|
|
3712
|
+
* The transition rule ID that fired this action.
|
|
3713
|
+
*/
|
|
3714
|
+
readonly ruleId: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* The artifact event type that matched the rule.
|
|
3717
|
+
*/
|
|
3718
|
+
readonly eventType: TransitionEventType$1;
|
|
3719
|
+
/**
|
|
3720
|
+
* Depth counter tracking recursive transition invocations.
|
|
3721
|
+
*
|
|
3722
|
+
* The pipeline increments this on each nested trigger level.
|
|
3723
|
+
* Action handlers that re-emit artifact events must propagate this
|
|
3724
|
+
* metadata so the pipeline can reject invocations that exceed the
|
|
3725
|
+
* configured maximum depth.
|
|
3726
|
+
*/
|
|
3727
|
+
readonly depth: number;
|
|
3728
|
+
};
|
|
3729
|
+
}
|
|
3730
|
+
//#endregion
|
|
3731
|
+
//#region core/contracts/src/extension/makaio-extension.d.ts
|
|
3157
3732
|
/**
|
|
3158
3733
|
* Awaited contribution processor registered with the runtime coordinator.
|
|
3159
3734
|
*
|
|
@@ -3162,20 +3737,20 @@ interface ExtensionBootstrap<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
|
3162
3737
|
* by inspecting the executable {@link MakaioExtension} manifest.
|
|
3163
3738
|
* @typeParam THostContext - Host context supplied to active extensions.
|
|
3164
3739
|
*/
|
|
3165
|
-
interface ExtensionContributionProcessor<THostContext extends ExtensionContext = NodeExtensionContext> {
|
|
3740
|
+
interface ExtensionContributionProcessor$1<THostContext extends ExtensionContext$1 = NodeExtensionContext$1> {
|
|
3166
3741
|
/**
|
|
3167
3742
|
* Optional activation filter.
|
|
3168
3743
|
* @param pkg - Extension manifest to evaluate.
|
|
3169
3744
|
* @returns `true` when this processor should handle the extension.
|
|
3170
3745
|
*/
|
|
3171
|
-
readonly filter?: (pkg: MakaioExtension<THostContext>) => boolean;
|
|
3746
|
+
readonly filter?: (pkg: MakaioExtension$1<THostContext>) => boolean;
|
|
3172
3747
|
/**
|
|
3173
3748
|
* Called when an extension is being activated.
|
|
3174
3749
|
* @param name - Extension package name.
|
|
3175
3750
|
* @param pkg - Extension manifest.
|
|
3176
3751
|
* @param ctx - Per-extension runtime context.
|
|
3177
3752
|
*/
|
|
3178
|
-
readonly processActivated: (name: string, pkg: MakaioExtension<THostContext>, ctx: THostContext) => Promise<void>;
|
|
3753
|
+
readonly processActivated: (name: string, pkg: MakaioExtension$1<THostContext>, ctx: THostContext) => Promise<void>;
|
|
3179
3754
|
/**
|
|
3180
3755
|
* Called when an extension is stopped or disabled.
|
|
3181
3756
|
* @param name - Extension package name.
|
|
@@ -3190,19 +3765,19 @@ interface ExtensionContributionProcessor<THostContext extends ExtensionContext =
|
|
|
3190
3765
|
* extension surfaces they own.
|
|
3191
3766
|
* @typeParam THostContext - Host context supplied to contribution processors.
|
|
3192
3767
|
*/
|
|
3193
|
-
interface ExtensionRuntimeBootContext<THostContext extends ExtensionContext = NodeExtensionContext> {
|
|
3768
|
+
interface ExtensionRuntimeBootContext<THostContext extends ExtensionContext$1 = NodeExtensionContext$1> {
|
|
3194
3769
|
/** Runtime bus. */
|
|
3195
3770
|
readonly bus: THostContext['bus'];
|
|
3196
3771
|
/**
|
|
3197
3772
|
* Register a contribution processor before package startup.
|
|
3198
3773
|
* @param processor - Processor to add to the coordinator.
|
|
3199
3774
|
*/
|
|
3200
|
-
readonly registerContributionProcessor: (processor: ExtensionContributionProcessor<THostContext>) => void;
|
|
3775
|
+
readonly registerContributionProcessor: (processor: ExtensionContributionProcessor$1<THostContext>) => void;
|
|
3201
3776
|
/**
|
|
3202
3777
|
* Enumerate active extensions lazily after startup.
|
|
3203
3778
|
* @param callback - Called for each active extension with its context.
|
|
3204
3779
|
*/
|
|
3205
|
-
readonly forEachActiveExtension: (callback: (name: string, pkg: MakaioExtension<THostContext>, ctx: THostContext) => void) => void;
|
|
3780
|
+
readonly forEachActiveExtension: (callback: (name: string, pkg: MakaioExtension$1<THostContext>, ctx: THostContext) => void) => void;
|
|
3206
3781
|
}
|
|
3207
3782
|
/**
|
|
3208
3783
|
* Executable boot contribution declared by an extension package.
|
|
@@ -3212,7 +3787,7 @@ interface ExtensionRuntimeBootContext<THostContext extends ExtensionContext = No
|
|
|
3212
3787
|
* processors for extension-owned contribution surfaces.
|
|
3213
3788
|
* @typeParam THostContext - Host context supplied by the runtime.
|
|
3214
3789
|
*/
|
|
3215
|
-
interface ExtensionRuntimeBootContribution<THostContext extends ExtensionContext = NodeExtensionContext> {
|
|
3790
|
+
interface ExtensionRuntimeBootContribution<THostContext extends ExtensionContext$1 = NodeExtensionContext$1> {
|
|
3216
3791
|
/**
|
|
3217
3792
|
* Configure the runtime coordinator before package startup.
|
|
3218
3793
|
* @param context - Minimal boot context supplied by the host runtime.
|
|
@@ -3220,6 +3795,64 @@ interface ExtensionRuntimeBootContribution<THostContext extends ExtensionContext
|
|
|
3220
3795
|
*/
|
|
3221
3796
|
readonly configure: (context: ExtensionRuntimeBootContext<THostContext>) => void | (() => void) | readonly (() => void)[];
|
|
3222
3797
|
}
|
|
3798
|
+
/**
|
|
3799
|
+
* Executable artifact kind contribution declared by an extension package.
|
|
3800
|
+
*/
|
|
3801
|
+
interface ExtensionArtifactKindsContribution {
|
|
3802
|
+
/**
|
|
3803
|
+
* Artifact kind definitions to register during extension activation.
|
|
3804
|
+
*/
|
|
3805
|
+
readonly kinds?: readonly AnyArtifactKindDefinition[];
|
|
3806
|
+
}
|
|
3807
|
+
/**
|
|
3808
|
+
* Executable facet namespace contribution declared by an extension package.
|
|
3809
|
+
*/
|
|
3810
|
+
interface ExtensionFacetNamespacesContribution {
|
|
3811
|
+
/**
|
|
3812
|
+
* Facet namespace definitions to register during extension activation.
|
|
3813
|
+
*/
|
|
3814
|
+
readonly namespaces?: readonly FacetNamespaceDefinition[];
|
|
3815
|
+
}
|
|
3816
|
+
/**
|
|
3817
|
+
* Executable surface bindings contribution declared by an extension package.
|
|
3818
|
+
*/
|
|
3819
|
+
interface ExtensionSurfaceBindingsContribution {
|
|
3820
|
+
/**
|
|
3821
|
+
* Surface binding definitions to register during extension activation.
|
|
3822
|
+
*/
|
|
3823
|
+
readonly bindings?: readonly SurfaceBindingDefinition[];
|
|
3824
|
+
}
|
|
3825
|
+
/**
|
|
3826
|
+
* Context supplied to the `createHooks` factory of an
|
|
3827
|
+
* {@link ExtensionArtifactLifecycleHooksContribution}.
|
|
3828
|
+
* @typeParam TBus - Concrete bus type supplied by the host runtime.
|
|
3829
|
+
*/
|
|
3830
|
+
interface ArtifactLifecycleHooksContributionContext<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
3831
|
+
/** Runtime bus available during hook factory invocation. */
|
|
3832
|
+
readonly bus: TBus;
|
|
3833
|
+
/** Name of the owning extension, used for hook ID namespacing. */
|
|
3834
|
+
readonly extensionName: string;
|
|
3835
|
+
}
|
|
3836
|
+
/**
|
|
3837
|
+
* Executable artifact lifecycle hooks contribution declared by an extension package.
|
|
3838
|
+
*
|
|
3839
|
+
* The `createHooks` factory is called during extension activation with the
|
|
3840
|
+
* runtime context and must return the set of hook registrations to install.
|
|
3841
|
+
* Returning a `Promise` allows async resource acquisition (e.g. lazy loading).
|
|
3842
|
+
* @typeParam TBus - Concrete bus type supplied by the host runtime.
|
|
3843
|
+
*/
|
|
3844
|
+
interface ExtensionArtifactLifecycleHooksContribution<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
3845
|
+
/**
|
|
3846
|
+
* Factory that produces the hook registrations for this extension.
|
|
3847
|
+
*
|
|
3848
|
+
* Called once during extension activation. The returned hooks are registered
|
|
3849
|
+
* with the artifact lifecycle hook registry and unregistered when the
|
|
3850
|
+
* extension stops.
|
|
3851
|
+
* @param ctx - Activation context supplying the bus and extension name.
|
|
3852
|
+
* @returns Hook registrations or a promise that resolves to them.
|
|
3853
|
+
*/
|
|
3854
|
+
readonly createHooks: (ctx: ArtifactLifecycleHooksContributionContext<TBus>) => readonly ArtifactLifecycleHookRegistration$1<TBus>[] | Promise<readonly ArtifactLifecycleHookRegistration$1<TBus>[]>;
|
|
3855
|
+
}
|
|
3223
3856
|
/**
|
|
3224
3857
|
* Executable Makaio extension manifest.
|
|
3225
3858
|
*
|
|
@@ -3247,7 +3880,7 @@ interface ExtensionRuntimeBootContribution<THostContext extends ExtensionContext
|
|
|
3247
3880
|
* };
|
|
3248
3881
|
* ```
|
|
3249
3882
|
*/
|
|
3250
|
-
interface MakaioExtension<THostContext extends ExtensionContext = NodeExtensionContext> extends ExtensionManifest {
|
|
3883
|
+
interface MakaioExtension$1<THostContext extends ExtensionContext$1 = NodeExtensionContext$1> extends ExtensionManifest {
|
|
3251
3884
|
/**
|
|
3252
3885
|
* Bus namespace definitions owned by this extension.
|
|
3253
3886
|
*
|
|
@@ -3268,7 +3901,7 @@ interface MakaioExtension<THostContext extends ExtensionContext = NodeExtensionC
|
|
|
3268
3901
|
* @param ctx - Runtime context with bus, host details, and machine identity.
|
|
3269
3902
|
* @returns The extension's service instance (not yet initialized — host calls `init`).
|
|
3270
3903
|
*/
|
|
3271
|
-
readonly create?: (ctx: THostContext) => ExtensionService | Promise<ExtensionService>;
|
|
3904
|
+
readonly create?: (ctx: THostContext) => ExtensionService$1 | Promise<ExtensionService$1>;
|
|
3272
3905
|
/**
|
|
3273
3906
|
* Executable ownership declarations for runtime responsibilities that must
|
|
3274
3907
|
* have exactly one owner in a booted runtime.
|
|
@@ -3373,7 +4006,7 @@ interface MakaioExtension<THostContext extends ExtensionContext = NodeExtensionC
|
|
|
3373
4006
|
* runtime source of truth for client wiring; descriptor `contributions.clients`
|
|
3374
4007
|
* is discovery metadata only.
|
|
3375
4008
|
*/
|
|
3376
|
-
readonly clients?: readonly ClientDefinition[];
|
|
4009
|
+
readonly clients?: readonly ClientDefinition$1[];
|
|
3377
4010
|
/**
|
|
3378
4011
|
* Provider definitions contributed by this extension.
|
|
3379
4012
|
*
|
|
@@ -3385,7 +4018,7 @@ interface MakaioExtension<THostContext extends ExtensionContext = NodeExtensionC
|
|
|
3385
4018
|
* `contributions.providers` may mirror provider identity metadata for
|
|
3386
4019
|
* pre-load discovery, but is not a registration fallback.
|
|
3387
4020
|
*/
|
|
3388
|
-
readonly providers?: readonly ProviderDefinitionInput[];
|
|
4021
|
+
readonly providers?: readonly ProviderDefinitionInput$1[];
|
|
3389
4022
|
/**
|
|
3390
4023
|
* Adapter runtime definitions contributed by this extension.
|
|
3391
4024
|
*
|
|
@@ -3439,6 +4072,93 @@ interface MakaioExtension<THostContext extends ExtensionContext = NodeExtensionC
|
|
|
3439
4072
|
* - Project import: extension data can be restored from `.makaio/bootstrap/`
|
|
3440
4073
|
*/
|
|
3441
4074
|
readonly bootstrap?: ExtensionBootstrap<THostContext['bus']>;
|
|
4075
|
+
/**
|
|
4076
|
+
* Workflow trigger and step block declarations for the workflow builder.
|
|
4077
|
+
*
|
|
4078
|
+
* When present, the runtime reads `blocks` during extension activation and
|
|
4079
|
+
* registers each block with the workflow block registry. Blocks are purely
|
|
4080
|
+
* declarative — no runtime context is required. Use {@link WorkflowTriggerBlock}
|
|
4081
|
+
* and {@link WorkflowStepBlock} to define blocks with typed Zod schemas.
|
|
4082
|
+
*/
|
|
4083
|
+
readonly workflowBlocks?: ExtensionWorkflowBlocksContribution;
|
|
4084
|
+
/**
|
|
4085
|
+
* Artifact kind definitions contributed by this extension.
|
|
4086
|
+
*
|
|
4087
|
+
* Each entry is an executable {@link AnyArtifactKindDefinition} produced by
|
|
4088
|
+
* {@link defineArtifactKind}. The artifact kind contribution processor reads
|
|
4089
|
+
* this field during extension activation and registers each kind with the
|
|
4090
|
+
* {@link ArtifactSchemaRegistry} via the `artifact.kind.register` bus RPC.
|
|
4091
|
+
*
|
|
4092
|
+
* This is runtime registration data, not descriptor metadata. The
|
|
4093
|
+
* `ArtifactSchemaRegistry` package must be started before any extension that
|
|
4094
|
+
* declares artifact kinds.
|
|
4095
|
+
*/
|
|
4096
|
+
readonly artifactKinds?: ExtensionArtifactKindsContribution;
|
|
4097
|
+
/**
|
|
4098
|
+
* Artifact lifecycle hook factory contributed by this extension.
|
|
4099
|
+
*
|
|
4100
|
+
* When present, the runtime calls `createHooks(ctx)` during extension
|
|
4101
|
+
* activation and registers the returned hooks with the artifact lifecycle
|
|
4102
|
+
* hook registry. Hooks are unregistered when the extension stops.
|
|
4103
|
+
*
|
|
4104
|
+
* Hooks are live-only and must not be included in serializable registration
|
|
4105
|
+
* payloads. The `ArtifactLifecycleHookRegistry` package must be started
|
|
4106
|
+
* before any extension that declares lifecycle hooks.
|
|
4107
|
+
*/
|
|
4108
|
+
readonly artifactLifecycleHooks?: ExtensionArtifactLifecycleHooksContribution<THostContext['bus']>;
|
|
4109
|
+
/**
|
|
4110
|
+
* Facet namespace definitions contributed by this extension.
|
|
4111
|
+
*
|
|
4112
|
+
* Each entry is an executable {@link FacetNamespaceDefinition} produced by
|
|
4113
|
+
* {@link defineFacetNamespace}. The facet namespace contribution processor reads
|
|
4114
|
+
* this field during extension activation and registers each namespace directly
|
|
4115
|
+
* with the {@link FacetNamespaceRegistry} service.
|
|
4116
|
+
*
|
|
4117
|
+
* Facet namespace registrations are permanent — there is no deregister
|
|
4118
|
+
* operation. This is runtime registration data, not descriptor metadata. The
|
|
4119
|
+
* `FacetNamespaceRegistry` package must be started before any extension that
|
|
4120
|
+
* declares facet namespaces.
|
|
4121
|
+
*/
|
|
4122
|
+
readonly facetNamespaces?: ExtensionFacetNamespacesContribution;
|
|
4123
|
+
/**
|
|
4124
|
+
* Surface binding definitions contributed by this extension.
|
|
4125
|
+
*
|
|
4126
|
+
* Each entry is an executable {@link SurfaceBindingDefinition} produced by
|
|
4127
|
+
* {@link defineSurfaceBinding}. The surface binding contribution processor reads
|
|
4128
|
+
* this field during extension activation and registers each binding directly
|
|
4129
|
+
* with the {@link SurfaceBindingRegistry} service.
|
|
4130
|
+
*
|
|
4131
|
+
* Surface binding registrations are permanent — there is no deregister
|
|
4132
|
+
* operation. This is runtime registration data, not descriptor metadata. The
|
|
4133
|
+
* `SurfaceBindingRegistry` package must be started before any extension that
|
|
4134
|
+
* declares surface bindings.
|
|
4135
|
+
*/
|
|
4136
|
+
readonly surfaceBindings?: ExtensionSurfaceBindingsContribution;
|
|
4137
|
+
/**
|
|
4138
|
+
* Declarative transition rules contributed by this extension.
|
|
4139
|
+
*
|
|
4140
|
+
* Rules are purely serializable — no functions. The transition contribution
|
|
4141
|
+
* processor reads `transitionRules.rules` during extension activation and
|
|
4142
|
+
* registers each rule with {@link TransitionRuleRegistry}.
|
|
4143
|
+
*
|
|
4144
|
+
* All rule IDs must be prefixed with `'<extensionName>.'`. Duplicate IDs
|
|
4145
|
+
* across all sources hard-fail activation.
|
|
4146
|
+
*
|
|
4147
|
+
* The `transition-pipeline` service must be started before any extension
|
|
4148
|
+
* that declares transition rules.
|
|
4149
|
+
*/
|
|
4150
|
+
readonly transitionRules?: ExtensionTransitionRulesContribution;
|
|
4151
|
+
/**
|
|
4152
|
+
* Executable transition action factories contributed by this extension.
|
|
4153
|
+
*
|
|
4154
|
+
* Factories provide custom action semantics beyond the built-in
|
|
4155
|
+
* `workflow.start` action. The transition contribution processor registers
|
|
4156
|
+
* each factory with {@link TransitionActionRegistry} during extension activation.
|
|
4157
|
+
*
|
|
4158
|
+
* All action type keys must be prefixed with `'<extensionName>.'`. Duplicate
|
|
4159
|
+
* type keys across all sources hard-fail activation.
|
|
4160
|
+
*/
|
|
4161
|
+
readonly transitionActions?: ExtensionTransitionActionsContribution;
|
|
3442
4162
|
/**
|
|
3443
4163
|
* Bus namespace introspection for this extension.
|
|
3444
4164
|
*
|
|
@@ -3464,9 +4184,9 @@ interface MakaioExtension<THostContext extends ExtensionContext = NodeExtensionC
|
|
|
3464
4184
|
* `@makaio/bus-core`) when they need the full typed bus authoring surface.
|
|
3465
4185
|
* @typeParam TBus - Concrete bus type supplied by the Node host.
|
|
3466
4186
|
*/
|
|
3467
|
-
type MakaioNodeExtension<TBus extends MakaioBusLike> = MakaioExtension<NodeExtensionContext<TBus>>;
|
|
4187
|
+
type MakaioNodeExtension$1<TBus extends MakaioBusLike> = MakaioExtension$1<NodeExtensionContext$1<TBus>>;
|
|
3468
4188
|
//#endregion
|
|
3469
|
-
//#region
|
|
4189
|
+
//#region core/contracts/src/extension/extension-descriptor.d.ts
|
|
3470
4190
|
/**
|
|
3471
4191
|
* Discriminated union of supported transports for detached extensions.
|
|
3472
4192
|
*
|
|
@@ -3699,6 +4419,7 @@ declare const ExtensionDescriptorSchema: z.ZodObject<{
|
|
|
3699
4419
|
}, z.core.$strip>>>>;
|
|
3700
4420
|
}, z.core.$strip>>>>;
|
|
3701
4421
|
hasInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
4422
|
+
canProvideBus: z.ZodOptional<z.ZodBoolean>;
|
|
3702
4423
|
}, z.core.$strip>>;
|
|
3703
4424
|
storage: z.ZodOptional<z.ZodObject<{
|
|
3704
4425
|
migrations: z.ZodOptional<z.ZodString>;
|
|
@@ -3773,6 +4494,19 @@ declare const ExtensionDescriptorSchema: z.ZodObject<{
|
|
|
3773
4494
|
assistant: "assistant";
|
|
3774
4495
|
}>>>>;
|
|
3775
4496
|
}, z.core.$strip>>>>;
|
|
4497
|
+
artifactLifecycleHooks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
4498
|
+
id: z.ZodString;
|
|
4499
|
+
event: z.ZodEnum<{
|
|
4500
|
+
beforeCreate: "beforeCreate";
|
|
4501
|
+
beforeRevise: "beforeRevise";
|
|
4502
|
+
afterCreate: "afterCreate";
|
|
4503
|
+
afterRevise: "afterRevise";
|
|
4504
|
+
afterStatusChanged: "afterStatusChanged";
|
|
4505
|
+
afterObservationAdded: "afterObservationAdded";
|
|
4506
|
+
}>;
|
|
4507
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
4508
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
4509
|
+
}, z.core.$strip>>>>;
|
|
3776
4510
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
3777
4511
|
tools: z.ZodOptional<z.ZodBoolean>;
|
|
3778
4512
|
bootstrap: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3865,7 +4599,7 @@ type ExtensionDescriptorParseResult = {
|
|
|
3865
4599
|
*/
|
|
3866
4600
|
declare function safeParseExtensionDescriptor(input: unknown): ExtensionDescriptorParseResult;
|
|
3867
4601
|
//#endregion
|
|
3868
|
-
//#region
|
|
4602
|
+
//#region core/contracts/src/extension/parse-extension-config.d.ts
|
|
3869
4603
|
/**
|
|
3870
4604
|
* Parse raw extension config with a Zod schema, applying schema defaults.
|
|
3871
4605
|
*
|
|
@@ -3886,7 +4620,7 @@ declare function safeParseExtensionDescriptor(input: unknown): ExtensionDescript
|
|
|
3886
4620
|
*/
|
|
3887
4621
|
declare function parseExtensionConfig<T extends z.ZodType>(schema: T, rawConfig: unknown): z.infer<T>;
|
|
3888
4622
|
//#endregion
|
|
3889
|
-
//#region
|
|
4623
|
+
//#region core/contracts/src/extension/extension-config-provider.d.ts
|
|
3890
4624
|
/**
|
|
3891
4625
|
* Provider for persisted extension configuration and enablement state.
|
|
3892
4626
|
*
|
|
@@ -3914,4 +4648,4 @@ interface ExtensionConfigProvider {
|
|
|
3914
4648
|
loadEnabled(name: string): boolean | undefined;
|
|
3915
4649
|
}
|
|
3916
4650
|
//#endregion
|
|
3917
|
-
export {
|
|
4651
|
+
export { LogImportContribution as $, CliArgManifest as $n, GatheredEntry as $t, TransitionConditionSchema as A, ExtensionCliHandlerContext as An, ArtifactLifecycleHookManifestSchema as Ar, SlotDeclaration as At, BootstrapExportContext as B, ExtensionWarningAction as Bn, ProtocolRefSchema as Br, TileDeclaration as Bt, ExtensionTransitionActionsContribution as C, SessionEventActionOptions as Cn, CapabilityTokenSchema as Cr, PluginTransformedContent as Ct, TransitionActionInvocation$1 as D, ExtensionCliBeforeRunContext as Dn, AdapterManifestSchema as Dr, PageDeclaration as Dt, TransitionActionHandler as E, ExtensionRuntimeOwnership as En, AdapterManifest as Er, PageComponentProps as Et, TransitionRuleDefinitionSchema$1 as F, NodeExtensionContext$1 as Fn, LogImporterManifest as Fr, WidgetDefinition as Ft, ExtensionBootstrap as G, ExtensionWarningSeverity as Gn, TriggerManifest as Gr, UiContextSnapshot$1 as Gt, BootstrapImportContext as H, ExtensionWarningEntry as Hn, ProviderManifestSchema as Hr, TileProps as Ht, BootstrapAsset as I, ExtensionIdentity as In, LogImporterManifestSchema as Ir, WidgetProps as It, ExtensionNamespaceContribution as J, AdapterDefinitionContract$1 as Jn, UiSurfaceFlags as Jr, UiNavigationLevelMap as Jt, getBootstrapAssetKey as K, ExtensionWarningSeveritySchema as Kn, TriggerManifestSchema as Kr, UiContextValueMap as Kt, BootstrapAssetKey as L, ExtensionService$1 as Ln, ProtocolConfig as Lr, WidgetRenderers as Lt, TransitionEventType$1 as M, ExtensionCliOutputWriter as Mn, ClientManifestSchema as Mr, SlotPlacementDeclaration as Mt, TransitionEventTypeSchema as N, ExtensionCliSubcommandEntry as Nn, ContributionManifest as Nr, WidgetSize as Nt, TransitionActionInvocationSchema as O, ExtensionCliBeforeRunResult as On, ArtifactLifecycleHookEventSchema as Or, PageMode as Ot, TransitionRuleDefinition$1 as P, ExtensionContext$1 as Pn, ContributionManifestSchema as Pr, WidgetDeclaration as Pt, ExtensionUiContribution as Q, extensionToken$1 as Qn, GatheredContext as Qt, BootstrapChoice as R, ExtensionServiceLifecycle$1 as Rn, ProtocolConfigSchema as Rr, WidgetSize$1 as Rt, MakaioNodeExtension$1 as S, SessionEventActionDeclaration as Sn, CapabilityTokenMap as Sr, PluginToolCallFormatterInput as St, TransitionActionFactory$1 as T, WhenContext as Tn, AdapterClientRefSchema as Tr, ToolCallFormatterDeclaration as Tt, BootstrapImportResult as U, ExtensionWarningEntrySchema as Un, SessionEventActionManifest as Ur, TileRenderers as Ut, BootstrapExportResult as V, ExtensionWarningActionSchema as Vn, ProviderManifest as Vr, TileIconLoader as Vt, BootstrapResult as W, ExtensionWarningSchema as Wn, SessionEventActionManifestSchema as Wr, UiContextDimension as Wt, ExtensionToolsContribution as X, AdapterProviderRef as Xn, BrowserEntrypoint as Xr, UiScope$1 as Xt, ExtensionSessionEventActionsContribution as Y, AdapterProviderDefinitionContract$1 as Yn, UiSurfaceFlagsSchema as Yr, UiRuntimeNavigationLevel as Yt, ExtensionTriggersContribution as Z, ExtensionToken$1 as Zn, BrowserEntrypointSchema$1 as Zr, UiScopeMap as Zt, ExtensionArtifactLifecycleHooksContribution as _, PickerConfig as _n, WindowParamSpec as _r, MakaioWebUiComponentProps as _t, DetachedTransportSchema as a, HashTriggerSuggestResult as an, ExtensionDependency as ar, StationNodeBlockRun as at, ExtensionRuntimeBootContribution as b, SelectionFeedback as bn, dep$1 as br, PromisifiedActions as bt, ExtensionDescriptorBase as c, ActionShortcut as cn, ExtensionManifestSchema as cr, WorkflowStepBlock as ct, ExtensionEntrypoints as d, EntrypointConfig as dn, StorageManifest as dr, ExtensionConfigComponentLoader as dt, HashSuggestion as en, CliArgManifestSchema as er, ExtensionWorkflowBlocksContribution as et, ExtensionEntrypointsSchema as f, EventFilter as fn, StorageManifestSchema as fr, ExtensionConfigComponentProps as ft, ArtifactLifecycleHooksContributionContext as g, MessageRole as gn, WindowManifestSchema as gr, MakaioWebUiActions as gt, safeParseExtensionDescriptor as h, MessageEventFilter as hn, WindowManifest as hr, MakaioWebUiAction as ht, DetachedTransportConfig as i, HashTriggerStage as in, CliSubcommandManifestSchema as ir, RegisteredTriggerBlock$1 as it, TransitionEvaluationContext$1 as j, ExtensionCliInteractiveContext as jn, ClientManifest as jr, SlotId as jt, TransitionCondition as k, ExtensionCliContribution as kn, ArtifactLifecycleHookManifest as kr, SlotContentDeclaration as kt, ExtensionDescriptorParseResult as l, ActionShortcutModifiers as ln, RuntimeRequirement as lr, WorkflowStepBlockRun as lt, parseExtensionDescriptor as m, ExecuteResult as mn, TrayManifestSchema as mr, LoaderContext as mt, parseExtensionConfig as n, HashTriggerContext as nn, CliManifestSchema as nr, DelegateRoleNodeBlockRun as nt, EmbeddedDescriptor as o, ActionCategory as on, ExtensionDependencySchema as or, WorkflowBlockCollection$1 as ot, isDetachedDescriptor as p, ExecuteContext as pn, TrayManifest$1 as pr, ExtensionFieldTypeLoader as pt, AdapterContribution as q, getExtensionWarningActionLabel as qn, TriggerStage as qr, UiNavigationLevel$1 as qt, DetachedDescriptor as r, HashTriggerMetadata as rn, CliSubcommandManifest as rr, RegisteredStepBlock$1 as rt, ExtensionDescriptor as s, ActionCategoryMap as sn, ExtensionManifest as sr, WorkflowBlockMetadata as st, ExtensionConfigProvider as t, HashTrigger as tn, CliManifest as tr, DelegateAgentNodeBlockRun as tt, ExtensionDescriptorSchema as u, CreateSessionEventActionResult as un, RuntimeRequirementSchema as ur, WorkflowTriggerBlock as ut, ExtensionContributionProcessor$1 as v, PickerOpenContext as vn, WindowParamSpecSchema as vr, MakaioWebUiLoader as vt, ExtensionTransitionRulesContribution as w, StructuralEventFilter as wn, AdapterClientRef$1 as wr, PluginTransformedContentType as wt, MakaioExtension$1 as x, SessionEventActionContext as xn, CapabilityToken as xr, PluginFormattedToolCallOutput as xt, ExtensionRuntimeBootContext as y, SelectionChangeContext as yn, WindowStyle as yr, MakaioWebUiRoute as yt, BootstrapDiscoverContext as z, ExtensionWarning as zn, ProtocolRef as zr, TileCapabilities as zt };
|