@makaio/framework 1.0.0-dev-1779046984397
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 +21 -0
- package/README.md +363 -0
- package/dist/account-identity-Ce1Bwrqi.mjs +1 -0
- package/dist/adapter-CbyjCE2d.mjs +1 -0
- package/dist/adapters/acp-client/index.d.mts +209 -0
- package/dist/adapters/acp-client/index.mjs +1 -0
- package/dist/adapters/config/index.d.mts +429 -0
- package/dist/adapters/config/index.mjs +1 -0
- package/dist/adapters/index.d.mts +4175 -0
- package/dist/adapters/index.mjs +11 -0
- package/dist/adapters/node.d.mts +263 -0
- package/dist/adapters/node.mjs +4 -0
- package/dist/adapters/stream-session/index.d.mts +1384 -0
- package/dist/adapters/stream-session/index.mjs +1 -0
- package/dist/adapters/stream-session/testing/index.d.mts +29 -0
- package/dist/adapters/stream-session/testing/index.mjs +1 -0
- package/dist/base-orchestrator-9z8TuA5a.d.mts +772 -0
- package/dist/bus/index.d.mts +3331 -0
- package/dist/bus/index.mjs +1 -0
- package/dist/bus-B1seC4M_.mjs +2 -0
- package/dist/capability-service-tnpR_TaB.mjs +1 -0
- package/dist/chunk-Dc06z0qk.mjs +1 -0
- package/dist/chunk-cpUYaJdV.mjs +1 -0
- package/dist/cleanEnvForAdapter-DvcIGXTG.mjs +1 -0
- package/dist/client-Dh4x4GQN.mjs +1 -0
- package/dist/clients/index.d.mts +2786 -0
- package/dist/clients/index.mjs +1 -0
- package/dist/clients-namespace-B0xAPZ6J.d.mts +332 -0
- package/dist/config-namespace-DLSs83zr.d.mts +638 -0
- package/dist/config-namespace-MJT8P0Ud.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +3 -0
- package/dist/contracts/adapter/index.mjs +1 -0
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +2 -0
- package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -0
- package/dist/contracts/client/index.d.mts +3 -0
- package/dist/contracts/client/index.mjs +1 -0
- package/dist/contracts/common/index.d.mts +2 -0
- package/dist/contracts/common/index.mjs +1 -0
- package/dist/contracts/config/index.d.mts +455 -0
- package/dist/contracts/config/index.mjs +1 -0
- package/dist/contracts/extension/index.d.mts +3 -0
- package/dist/contracts/extension/index.mjs +1 -0
- package/dist/contracts/harness/index.d.mts +2 -0
- package/dist/contracts/harness/index.mjs +1 -0
- package/dist/contracts/host/index.d.mts +2 -0
- package/dist/contracts/host/index.mjs +1 -0
- package/dist/contracts/index.d.mts +12665 -0
- package/dist/contracts/index.mjs +1 -0
- package/dist/contracts/model-registry/index.d.mts +2 -0
- package/dist/contracts/model-registry/index.mjs +1 -0
- package/dist/contracts/native-session-supervisor/index.d.mts +2 -0
- package/dist/contracts/native-session-supervisor/index.mjs +1 -0
- package/dist/contracts/platform/index.d.mts +2 -0
- package/dist/contracts/platform/index.mjs +1 -0
- package/dist/contracts/provider/index.d.mts +3 -0
- package/dist/contracts/provider/index.mjs +1 -0
- package/dist/contracts/session/index.d.mts +3 -0
- package/dist/contracts/session/index.mjs +1 -0
- package/dist/contracts/shared/index.d.mts +2 -0
- package/dist/contracts/shared/index.mjs +1 -0
- package/dist/contracts/skill/index.d.mts +2 -0
- package/dist/contracts/skill/index.mjs +1 -0
- package/dist/contracts/toast/index.d.mts +198 -0
- package/dist/contracts/toast/index.mjs +1 -0
- package/dist/contracts/variant/index.d.mts +2 -0
- package/dist/contracts/variant/index.mjs +1 -0
- package/dist/core/index.d.mts +1001 -0
- package/dist/core/index.mjs +1 -0
- package/dist/credential-ref-DLCsoKVZ.mjs +1 -0
- package/dist/cursor-storage-DOQdvo9j.mjs +1 -0
- package/dist/definition-DkYy1PZz.mjs +1 -0
- package/dist/definition-DtUNiGom.d.mts +158 -0
- package/dist/definition-DxvZ9e22.d.mts +376 -0
- package/dist/drizzle-CWVVw7Er.mjs +1 -0
- package/dist/execution-target-BW_uiBVe.mjs +1 -0
- package/dist/extension-COqwS-2Q.mjs +1 -0
- package/dist/extension-Cbrl4YGX.mjs +1 -0
- package/dist/extension-namespace-zaGKi6Qj.mjs +1 -0
- package/dist/handlers-iGKUJ380.mjs +41 -0
- package/dist/harness-CEq1Zkf9.mjs +1 -0
- package/dist/hooks/index.d.mts +423 -0
- package/dist/hooks/index.mjs +1 -0
- package/dist/host-CXAUGGN0.mjs +1 -0
- package/dist/identity-B_A0mE63.mjs +1 -0
- package/dist/index-6lyShOoU.d.mts +225 -0
- package/dist/index-7sXlairn2.d.mts +43 -0
- package/dist/index-BAKM2GMH2.d.mts +535 -0
- package/dist/index-BB419vv-.d.mts +3897 -0
- package/dist/index-BJOfdtbw.d.mts +729 -0
- package/dist/index-BXP9GK5q.d.mts +1075 -0
- package/dist/index-BdPwu6c0.d.mts +1730 -0
- package/dist/index-BePI0ckL.d.mts +40 -0
- package/dist/index-Bigx81Kr.d.mts +37 -0
- package/dist/index-BnNqbx2I.d.mts +134 -0
- package/dist/index-Bv15sNLn.d.mts +389 -0
- package/dist/index-C-myW_aK.d.mts +412 -0
- package/dist/index-C9F3Fc1A.d.mts +2938 -0
- package/dist/index-CNxS4Tlu.d.mts +1 -0
- package/dist/index-CVA0m1g9.d.mts +995 -0
- package/dist/index-C_kS2aqV2.d.mts +438 -0
- package/dist/index-Ch3ph52M2.d.mts +40 -0
- package/dist/index-CnZOKNjU.d.mts +89 -0
- package/dist/index-D1T-PPqF.d.mts +67 -0
- package/dist/index-D7T8XCku.d.mts +341 -0
- package/dist/index-DBQtpFLE.d.mts +4843 -0
- package/dist/index-DEw90pa2.d.mts +183 -0
- package/dist/index-DQRsGXb5.d.mts +109 -0
- package/dist/index-Dd5s4MSm.d.mts +72 -0
- package/dist/index-DubqLGH8.d.mts +1002 -0
- package/dist/index-ESSDWIB7.d.mts +11 -0
- package/dist/index-N5K1NOYs.d.mts +184 -0
- package/dist/index-PdUSmPT2.d.mts +180 -0
- package/dist/index-SzSiyG61.d.mts +117 -0
- package/dist/index-T0471kWA.d.mts +6760 -0
- package/dist/index-WKjrpcA_.d.mts +218 -0
- package/dist/index-hapw9_En.d.mts +13592 -0
- package/dist/index-iID2R9G1.d.mts +1490 -0
- package/dist/kernel/cli/index.d.mts +141 -0
- package/dist/kernel/cli/index.mjs +1 -0
- package/dist/kernel/cli/schemas.d.mts +63 -0
- package/dist/kernel/cli/schemas.mjs +1 -0
- package/dist/kernel/extension/index.d.mts +2 -0
- package/dist/kernel/extension/index.mjs +1 -0
- package/dist/kernel/index.d.mts +296 -0
- package/dist/kernel/index.mjs +1 -0
- package/dist/kernel/namespace/index.d.mts +2 -0
- package/dist/kernel/namespace/index.mjs +1 -0
- package/dist/kernel/observability/index.d.mts +2 -0
- package/dist/kernel/observability/index.mjs +1 -0
- package/dist/kernel/providers/index.d.mts +2 -0
- package/dist/kernel/providers/index.mjs +1 -0
- package/dist/kernel/window/index.d.mts +2 -0
- package/dist/kernel/window/index.mjs +1 -0
- package/dist/model-registry-BNzpR6TU.mjs +1 -0
- package/dist/model-registry-CIscwC52.mjs +1 -0
- package/dist/namespace-0yuzAKlr.mjs +1 -0
- package/dist/namespace-8cNguvIp.mjs +1 -0
- package/dist/namespace-BK2erxpV.d.mts +921 -0
- package/dist/namespace-Bmc7AW4J2.mjs +1 -0
- package/dist/namespace-C2ufjgaQ.d.mts +767 -0
- package/dist/namespace-C54Oj025.d.mts +159 -0
- package/dist/namespace-CCDEOwmW.d.mts +1313 -0
- package/dist/namespace-CfEWMXBx.mjs +1 -0
- package/dist/namespace-CkLUtc0g.d.mts +580 -0
- package/dist/namespace-D5Wrt7YU.mjs +1 -0
- package/dist/namespace-DZcuLwEA.d.mts +51 -0
- package/dist/namespace-Db-p67Rg.mjs +1 -0
- package/dist/namespace-FWx6HxaW.d.mts +611 -0
- package/dist/namespace-GLGGcWPH.d.mts +43 -0
- package/dist/namespace-N0dfwSg6.mjs +1 -0
- package/dist/namespace-O5SNY-LV.d.mts +2226 -0
- package/dist/namespace-ZbthBQVt.d.mts +142 -0
- package/dist/namespace-bq4Prtzn.d.mts +2046 -0
- package/dist/namespace-pNcSglBS.mjs +1 -0
- package/dist/namespace-ptv-pw_g.d.mts +3019 -0
- package/dist/namespace-xkvVw3hf2.d.mts +189 -0
- package/dist/native-session-supervisor-L-UIaEfd.mjs +1 -0
- package/dist/node/bus-server/index.d.mts +178 -0
- package/dist/node/bus-server/index.mjs +1 -0
- package/dist/node/bus-server/server-lifecycle.d.mts +2 -0
- package/dist/node/bus-server/server-lifecycle.mjs +1 -0
- package/dist/node/machine-identity/index.d.mts +85 -0
- package/dist/node/machine-identity/index.mjs +3 -0
- package/dist/node/transports/index.d.mts +1752 -0
- package/dist/node/transports/index.mjs +2 -0
- package/dist/orchestrator-shared-DrjtTXYh.d.mts +249 -0
- package/dist/orchestrator-shared-Wv1GI2mW.mjs +1 -0
- package/dist/platform-BbSLVg5b.mjs +1 -0
- package/dist/profile-4StaDQW0.mjs +1 -0
- package/dist/provider-context-CNRQ4d5m.mjs +1 -0
- package/dist/providers/index.d.mts +135 -0
- package/dist/providers/index.mjs +1 -0
- package/dist/providers-Cr4Za8a1.mjs +1 -0
- package/dist/providers-namespace-CDwxY_DV.d.mts +583 -0
- package/dist/schema-BwzXEtT2.d.mts +837 -0
- package/dist/schema-CAw_BqaG.mjs +1 -0
- package/dist/schema-introspection-D61TT_7b.mjs +1 -0
- package/dist/schema-uSGW-6oM.mjs +1 -0
- package/dist/schemas-BXstpWVp.mjs +1 -0
- package/dist/schemas-BdMU-gew.d.mts +160 -0
- package/dist/schemas-C40ZAJ33.mjs +1 -0
- package/dist/schemas-C5xtVqdb.d.mts +46 -0
- package/dist/schemas-CGZy_rU6.d.mts +13 -0
- package/dist/schemas-CLxtoKFy.mjs +1 -0
- package/dist/schemas-Co_sVhzz.mjs +1 -0
- package/dist/schemas-D9108Iv1.d.mts +182 -0
- package/dist/schemas-DENVYyds.d.mts +463 -0
- package/dist/schemas-DbWs_hj8.d.mts +174 -0
- package/dist/schemas-Di0XnnMX.d.mts +73 -0
- package/dist/schemas-KMA1efQg.d.mts +944 -0
- package/dist/schemas-qmn5SWPU.d.mts +312 -0
- package/dist/schemas-sshQEF3l.d.mts +237 -0
- package/dist/server-lifecycle-Cf_SZ27k.d.mts +160 -0
- package/dist/server-lifecycle-DbFwlrTW.mjs +1 -0
- package/dist/service-base/index.d.mts +98 -0
- package/dist/service-base/index.mjs +1 -0
- package/dist/services/adapter-runtime/index.d.mts +4 -0
- package/dist/services/adapter-runtime/index.mjs +1 -0
- package/dist/services/adapter-runtime/namespace.d.mts +2 -0
- package/dist/services/adapter-runtime/namespace.mjs +1 -0
- package/dist/services/adapter-runtime/schemas.d.mts +2 -0
- package/dist/services/adapter-runtime/schemas.mjs +1 -0
- package/dist/services/adapter-subsystem/index.d.mts +3 -0
- package/dist/services/adapter-subsystem/index.mjs +1 -0
- package/dist/services/adapter-subsystem/namespace.d.mts +2 -0
- package/dist/services/adapter-subsystem/namespace.mjs +1 -0
- package/dist/services/agent-runtime/index.d.mts +3 -0
- package/dist/services/agent-runtime/index.mjs +1 -0
- package/dist/services/agent-runtime/namespace.d.mts +2 -0
- package/dist/services/agent-runtime/namespace.mjs +1 -0
- package/dist/services/agent-runtime/schemas.d.mts +2 -0
- package/dist/services/agent-runtime/schemas.mjs +1 -0
- package/dist/services/capability/index.d.mts +2 -0
- package/dist/services/capability/index.mjs +1 -0
- package/dist/services/cli-detection/namespace.d.mts +56 -0
- package/dist/services/cli-detection/namespace.mjs +1 -0
- package/dist/services/codebase/index.d.mts +3 -0
- package/dist/services/codebase/index.mjs +1 -0
- package/dist/services/codebase/namespace.d.mts +2 -0
- package/dist/services/codebase/namespace.mjs +1 -0
- package/dist/services/codebase/schemas.d.mts +2 -0
- package/dist/services/codebase/schemas.mjs +1 -0
- package/dist/services/compression/index.d.mts +3 -0
- package/dist/services/compression/index.mjs +1 -0
- package/dist/services/compression/namespace.d.mts +2 -0
- package/dist/services/compression/namespace.mjs +1 -0
- package/dist/services/compression/schemas.d.mts +2 -0
- package/dist/services/compression/schemas.mjs +1 -0
- package/dist/services/context-rules/index.d.mts +412 -0
- package/dist/services/context-rules/index.mjs +1 -0
- package/dist/services/credential-change/index.d.mts +17 -0
- package/dist/services/credential-change/index.mjs +1 -0
- package/dist/services/definition/index.d.mts +2 -0
- package/dist/services/definition/index.mjs +1 -0
- package/dist/services/definition/namespace.d.mts +71 -0
- package/dist/services/definition/namespace.mjs +1 -0
- package/dist/services/definition/schemas.d.mts +38 -0
- package/dist/services/definition/schemas.mjs +1 -0
- package/dist/services/dialog/namespace.d.mts +105 -0
- package/dist/services/dialog/namespace.mjs +1 -0
- package/dist/services/dialog/schemas.d.mts +109 -0
- package/dist/services/dialog/schemas.mjs +1 -0
- package/dist/services/execution-target/index.d.mts +4 -0
- package/dist/services/execution-target/index.mjs +1 -0
- package/dist/services/execution-target/namespace.d.mts +2 -0
- package/dist/services/execution-target/namespace.mjs +1 -0
- package/dist/services/execution-target/schemas.d.mts +2 -0
- package/dist/services/execution-target/schemas.mjs +1 -0
- package/dist/services/filesystem/namespace.d.mts +432 -0
- package/dist/services/filesystem/namespace.mjs +1 -0
- package/dist/services/filesystem/schemas.d.mts +240 -0
- package/dist/services/filesystem/schemas.mjs +1 -0
- package/dist/services/harness/index.d.mts +861 -0
- package/dist/services/harness/index.mjs +1 -0
- package/dist/services/harness/storage/schema.d.mts +424 -0
- package/dist/services/harness/storage/schema.mjs +1 -0
- package/dist/services/index.d.mts +5703 -0
- package/dist/services/index.mjs +1 -0
- package/dist/services/local-notification/index.d.mts +25 -0
- package/dist/services/local-notification/index.mjs +1 -0
- package/dist/services/local-notification/namespace.d.mts +73 -0
- package/dist/services/local-notification/namespace.mjs +1 -0
- package/dist/services/local-notification/schemas.d.mts +88 -0
- package/dist/services/local-notification/schemas.mjs +1 -0
- package/dist/services/log-import/browser.d.mts +3 -0
- package/dist/services/log-import/browser.mjs +1 -0
- package/dist/services/log-import/index.d.mts +275 -0
- package/dist/services/log-import/index.mjs +2 -0
- package/dist/services/log-import/log-import.d.mts +3 -0
- package/dist/services/log-import/log-import.mjs +1 -0
- package/dist/services/log-import/namespace.d.mts +327 -0
- package/dist/services/log-import/namespace.mjs +1 -0
- package/dist/services/log-import/schemas.d.mts +217 -0
- package/dist/services/log-import/schemas.mjs +1 -0
- package/dist/services/model-registry/index.d.mts +2 -0
- package/dist/services/model-registry/index.mjs +1 -0
- package/dist/services/preferences/index.d.mts +3 -0
- package/dist/services/preferences/index.mjs +1 -0
- package/dist/services/preferences/schemas.d.mts +2 -0
- package/dist/services/preferences/schemas.mjs +1 -0
- package/dist/services/preferences/storage-namespace.d.mts +3 -0
- package/dist/services/preferences/storage-namespace.mjs +1 -0
- package/dist/services/provider-context/index.d.mts +2 -0
- package/dist/services/provider-context/index.mjs +1 -0
- package/dist/services/provider-runtime/index.d.mts +136 -0
- package/dist/services/provider-runtime/index.mjs +1 -0
- package/dist/services/session/handlers/index.d.mts +2 -0
- package/dist/services/session/handlers/index.mjs +1 -0
- package/dist/services/session/index.d.mts +10 -0
- package/dist/services/session/index.mjs +1 -0
- package/dist/services/session/messages/namespace.d.mts +2 -0
- package/dist/services/session/messages/namespace.mjs +1 -0
- package/dist/services/session/orchestrator-testing/index.d.mts +2 -0
- package/dist/services/session/orchestrator-testing/index.mjs +1 -0
- package/dist/services/session/session-events/namespace.d.mts +2 -0
- package/dist/services/session/session-events/namespace.mjs +1 -0
- package/dist/services/session/storage/namespace.d.mts +2 -0
- package/dist/services/session/storage/namespace.mjs +1 -0
- package/dist/services/session/storage/schema.d.mts +2 -0
- package/dist/services/session/storage/schema.mjs +1 -0
- package/dist/services/session/testing/index.d.mts +35 -0
- package/dist/services/session/testing/index.mjs +52 -0
- package/dist/services/session/testing/orchestrator-shared.d.mts +2 -0
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -0
- package/dist/services/session/turns/namespace.d.mts +2 -0
- package/dist/services/session/turns/namespace.mjs +1 -0
- package/dist/services/session-editor/index.d.mts +119 -0
- package/dist/services/session-editor/index.mjs +1 -0
- package/dist/services/settings/index.d.mts +47 -0
- package/dist/services/settings/index.mjs +1 -0
- package/dist/services/settings/namespace.d.mts +662 -0
- package/dist/services/settings/namespace.mjs +1 -0
- package/dist/services/settings/storage/clients-namespace.d.mts +2 -0
- package/dist/services/settings/storage/clients-namespace.mjs +1 -0
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +184 -0
- package/dist/services/settings/storage/extension-configs/namespace.mjs +1 -0
- package/dist/services/settings/storage/index.d.mts +4 -0
- package/dist/services/settings/storage/index.mjs +1 -0
- package/dist/services/settings/storage/providers-namespace.d.mts +2 -0
- package/dist/services/settings/storage/providers-namespace.mjs +1 -0
- package/dist/services/tool-approval/index.d.mts +2 -0
- package/dist/services/tool-approval/index.mjs +1 -0
- package/dist/services/tools/index.d.mts +2 -0
- package/dist/services/tools/index.mjs +1 -0
- package/dist/services/tray-menu/index.d.mts +4 -0
- package/dist/services/tray-menu/index.mjs +1 -0
- package/dist/services/tray-menu/namespace.d.mts +2 -0
- package/dist/services/tray-menu/namespace.mjs +1 -0
- package/dist/services/tray-menu/schemas.d.mts +2 -0
- package/dist/services/tray-menu/schemas.mjs +1 -0
- package/dist/services/turn/index.d.mts +2 -0
- package/dist/services/turn/index.mjs +1 -0
- package/dist/services/turn/namespace.d.mts +2 -0
- package/dist/services/turn/namespace.mjs +1 -0
- package/dist/services/turn/schemas.d.mts +335 -0
- package/dist/services/turn/schemas.mjs +1 -0
- package/dist/services/worker/index.d.mts +3 -0
- package/dist/services/worker/index.mjs +1 -0
- package/dist/services/worker/namespace.d.mts +2 -0
- package/dist/services/worker/namespace.mjs +1 -0
- package/dist/services/worker/schemas.d.mts +2 -0
- package/dist/services/worker/schemas.mjs +1 -0
- package/dist/session-Do6lDZM4.mjs +123 -0
- package/dist/session-lineage-Eev4uo4I.d.mts +65 -0
- package/dist/session-piI1R5rP.mjs +1 -0
- package/dist/shared-DxHLl9UP.mjs +1 -0
- package/dist/shared-schemas-BgQv_tnu.mjs +1 -0
- package/dist/skill-CB5h-ZFQ.mjs +1 -0
- package/dist/storage/drizzle/client.d.mts +78 -0
- package/dist/storage/drizzle/client.mjs +1 -0
- package/dist/storage/drizzle/index.d.mts +98 -0
- package/dist/storage/drizzle/index.mjs +1 -0
- package/dist/storage/handlers/drizzle/index.d.mts +2 -0
- package/dist/storage/handlers/drizzle/index.mjs +1 -0
- package/dist/storage/handlers/index.d.mts +33 -0
- package/dist/storage/handlers/index.mjs +1 -0
- package/dist/storage/index.d.mts +192 -0
- package/dist/storage/index.mjs +1 -0
- package/dist/storage-namespace-ADwyijoe.mjs +1 -0
- package/dist/storage-namespace-DAm8iWEj.d.mts +221 -0
- package/dist/storage-namespace-definition-CHu2k14q.mjs +1 -0
- package/dist/storage-namespace-definition-CJgqyXH1.d.mts +17 -0
- package/dist/style.css +3782 -0
- package/dist/testing/drizzle-harness.d.mts +130 -0
- package/dist/testing/drizzle-harness.mjs +1 -0
- package/dist/testing/index.d.mts +106 -0
- package/dist/testing/index.mjs +1 -0
- package/dist/tool-approval-service-BcBSUZCO.mjs +1 -0
- package/dist/tools/index.d.mts +825 -0
- package/dist/tools/index.mjs +1 -0
- package/dist/tools/testing/index.d.mts +53 -0
- package/dist/tools/testing/index.mjs +1 -0
- package/dist/tools-CDSgj0ee.mjs +1 -0
- package/dist/tray-menu-service-CTXC1Elg.mjs +1 -0
- package/dist/types-6WxLfoM3.d.mts +31 -0
- package/dist/types-BjToUrHp.d.mts +6619 -0
- package/dist/types-CD1LJwPc.d.mts +1009 -0
- package/dist/types-Cvrj2ogm.d.mts +305 -0
- package/dist/types-DYF5LxZY.d.mts +233 -0
- package/dist/types-t295YC6T.d.mts +262 -0
- package/dist/types-vNpkAe4Y.d.mts +128 -0
- package/dist/ui-components/index.d.mts +2342 -0
- package/dist/ui-components/index.mjs +8 -0
- package/dist/ui-config-CXmbsqZV.mjs +1 -0
- package/dist/ui-hooks/index.d.mts +1805 -0
- package/dist/ui-hooks/index.mjs +1 -0
- package/dist/ui-kernel/index.d.mts +2793 -0
- package/dist/ui-kernel/index.mjs +1 -0
- package/dist/ui-kernel/pages/namespace.d.mts +88 -0
- package/dist/ui-kernel/pages/namespace.mjs +1 -0
- package/dist/ui-kernel/pages/schemas.d.mts +2 -0
- package/dist/ui-kernel/pages/schemas.mjs +1 -0
- package/dist/ui-views/index.d.mts +487 -0
- package/dist/ui-views/index.mjs +30 -0
- package/dist/utils/health-probe.d.mts +26 -0
- package/dist/utils/health-probe.mjs +1 -0
- package/dist/utils/index.d.mts +227 -0
- package/dist/utils/index.mjs +2 -0
- package/dist/utils/keychain.d.mts +31 -0
- package/dist/utils/keychain.mjs +1 -0
- package/dist/utils/resolve-package-root.d.mts +12 -0
- package/dist/utils/resolve-package-root.mjs +1 -0
- package/dist/utils/workspace-root.d.mts +27 -0
- package/dist/utils/workspace-root.mjs +2 -0
- package/dist/variant-D5kSrL3m.mjs +1 -0
- package/dist/version-CjS20oXi.mjs +1 -0
- package/dist/visibility-CZu8ooOA.mjs +1 -0
- package/dist/window-registry-CUftmDr3.mjs +1 -0
- package/dist/window-registry-C_IJmY8_.d.mts +130 -0
- package/package.json +346 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region packages/services/core/src/settings/storage/shared-schemas.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Shared CRUD request shape for storage namespaces that address rows by ID.
|
|
6
|
+
*/
|
|
7
|
+
declare const StorageIdRequestSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { StorageIdRequestSchema as t };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { RequestMessagePayload, SubjectDefinition } from "@makaio/framework/core";
|
|
2
|
+
import { IMakaioBus } from "@makaio/framework/bus";
|
|
3
|
+
import { SQLiteColumn, SQLiteTable } from "drizzle-orm/sqlite-core";
|
|
4
|
+
import { Column, SQL } from "drizzle-orm";
|
|
5
|
+
import { MakaioDatabase } from "@makaio/framework/storage/drizzle";
|
|
6
|
+
|
|
7
|
+
//#region packages/storage/handlers/src/drizzle/types.d.ts
|
|
8
|
+
type RequestSubjectDefinition<Req extends Record<string, unknown>, Res extends Record<string, unknown>> = SubjectDefinition & {
|
|
9
|
+
$meta: {
|
|
10
|
+
payload: RequestMessagePayload<Req, Res>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type EventSubjectDefinition<Payload> = SubjectDefinition & {
|
|
14
|
+
$meta: {
|
|
15
|
+
payload: Payload;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type TableRow<TTable extends SQLiteTable> = TTable['$inferSelect'];
|
|
19
|
+
type TableInsert<TTable extends SQLiteTable> = TTable['$inferInsert'];
|
|
20
|
+
type ColumnKey<TTable extends SQLiteTable> = Extract<keyof TTable['_']['columns'], string>;
|
|
21
|
+
type TimestampedRow = {
|
|
22
|
+
createdAt: number;
|
|
23
|
+
updatedAt: number;
|
|
24
|
+
};
|
|
25
|
+
type TimestampedTable<TTable extends SQLiteTable> = TableRow<TTable> extends TimestampedRow ? TTable : never;
|
|
26
|
+
/**
|
|
27
|
+
* Lifecycle event subjects for CRUD operations.
|
|
28
|
+
* @typeParam TEntity - API entity type emitted for create/update events
|
|
29
|
+
*/
|
|
30
|
+
interface CrudLifecycleConfig<TEntity> {
|
|
31
|
+
/** Emitted when a new entity is inserted */
|
|
32
|
+
created: EventSubjectDefinition<TEntity>;
|
|
33
|
+
/** Emitted when an existing entity is updated */
|
|
34
|
+
updated: EventSubjectDefinition<TEntity>;
|
|
35
|
+
/** Emitted when an entity is deleted */
|
|
36
|
+
deleted: EventSubjectDefinition<{
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Configuration for creating standard CRUD handlers.
|
|
42
|
+
*
|
|
43
|
+
* Type safety is enforced at the call site and validated at runtime through Zod schemas.
|
|
44
|
+
* @typeParam TTable - Drizzle SQLite table type (unconstrained for flexibility)
|
|
45
|
+
* @typeParam ApiType - API response entity type
|
|
46
|
+
* @typeParam InputType - API input entity type (defaults to ApiType)
|
|
47
|
+
* @typeParam DbRow - Database row type (explicitly specified for type safety)
|
|
48
|
+
*/
|
|
49
|
+
interface DrizzleCrudConfig<TTable extends SQLiteTable, ApiType, TIdField extends ColumnKey<TTable> = ColumnKey<TTable>, InputType extends Record<TIdField, string> & Record<string, unknown> = (ApiType extends Record<TIdField, string> ? ApiType : Record<TIdField, string> & Record<string, unknown>), TSingularKey extends string = string> {
|
|
50
|
+
/** Drizzle table definition */
|
|
51
|
+
table: TimestampedTable<TTable>;
|
|
52
|
+
/** Storage subjects object with get, set, delete properties */
|
|
53
|
+
subjects: {
|
|
54
|
+
/** Subject for getting a single entity by ID */get: RequestSubjectDefinition<{
|
|
55
|
+
id: string;
|
|
56
|
+
}, Record<TSingularKey, ApiType | null>>; /** Subject for creating or updating an entity */
|
|
57
|
+
set: RequestSubjectDefinition<Record<TSingularKey, InputType>, {
|
|
58
|
+
id: string;
|
|
59
|
+
}>; /** Subject for deleting an entity by ID */
|
|
60
|
+
delete: RequestSubjectDefinition<{
|
|
61
|
+
id: string;
|
|
62
|
+
}, {
|
|
63
|
+
deleted: boolean;
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
66
|
+
/** Primary key field name on the table */
|
|
67
|
+
idField: TIdField;
|
|
68
|
+
/** Response key for single entity (e.g., 'profile') */
|
|
69
|
+
singularKey: TSingularKey;
|
|
70
|
+
/** Maps database row to API type */
|
|
71
|
+
mapper: (row: TableRow<TTable>) => ApiType;
|
|
72
|
+
/** Maps API input to database values for insert/update */
|
|
73
|
+
toDbValues: (input: InputType) => Partial<TableInsert<TTable>>;
|
|
74
|
+
/**
|
|
75
|
+
* Optional conflict target columns for upsert identity.
|
|
76
|
+
*
|
|
77
|
+
* Defaults to the primary key column ({@link idField}). Override this when
|
|
78
|
+
* the table has a natural-key unique index that should govern upsert identity
|
|
79
|
+
* instead of the synthetic PK. The callback receives the table so callers can
|
|
80
|
+
* reference column objects directly.
|
|
81
|
+
*
|
|
82
|
+
* **PK mutation:** When a conflict fires on the natural key and the incoming
|
|
83
|
+
* `id` differs from the stored PK, the handler updates the PK column to the
|
|
84
|
+
* incoming `id` (and returns it). Callers that enable this option must
|
|
85
|
+
* tolerate non-stable primary keys across upserts.
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* // extension_configs has uniqueIndex('uniq_extension_configs_name_scope')
|
|
89
|
+
* conflictTarget: (t) => [t.extensionName, t.scope],
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
conflictTarget?: (table: TTable) => (SQLiteColumn | SQL)[];
|
|
93
|
+
/**
|
|
94
|
+
* Optional lifecycle event configuration.
|
|
95
|
+
*
|
|
96
|
+
* When provided, the factory emits created/updated/deleted events after
|
|
97
|
+
* successful mutations via wrapper handlers.
|
|
98
|
+
*/
|
|
99
|
+
lifecycle?: CrudLifecycleConfig<ApiType>;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Configuration for creating a list handler.
|
|
103
|
+
*
|
|
104
|
+
* Type safety is enforced at the call site and validated at runtime through Zod schemas.
|
|
105
|
+
* @typeParam TTable - Drizzle SQLite table type (unconstrained for flexibility)
|
|
106
|
+
* @typeParam ApiType - API response entity type
|
|
107
|
+
* @typeParam QueryPayload - Query payload type
|
|
108
|
+
* @typeParam DbRow - Database row type (explicitly specified for type safety)
|
|
109
|
+
*/
|
|
110
|
+
interface DrizzleListConfig<TTable extends SQLiteTable, ApiType, QueryPayload extends Record<string, unknown> = Record<string, unknown>, TPluralKey extends string = string, TSubject extends RequestSubjectDefinition<QueryPayload, Record<TPluralKey, ApiType[]>> = RequestSubjectDefinition<QueryPayload, Record<TPluralKey, ApiType[]>>> {
|
|
111
|
+
/** Drizzle table definition */
|
|
112
|
+
table: TTable;
|
|
113
|
+
/** List subject from storage namespace */
|
|
114
|
+
subject: TSubject;
|
|
115
|
+
/** Response key for entity array (e.g., 'profiles') */
|
|
116
|
+
pluralKey: TPluralKey;
|
|
117
|
+
/** Maps database row to API type */
|
|
118
|
+
mapper: (row: TableRow<TTable>) => ApiType;
|
|
119
|
+
/** Builds query predicates from payload */
|
|
120
|
+
buildPredicates: (payload: QueryPayload, table: TTable) => SQL[];
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region packages/storage/handlers/src/drizzle/crud-handlers.d.ts
|
|
124
|
+
/**
|
|
125
|
+
* Creates standard get, set, delete handlers for a Drizzle table.
|
|
126
|
+
* @param config - CRUD handler configuration.
|
|
127
|
+
* @returns Function that registers handlers and returns cleanup.
|
|
128
|
+
*/
|
|
129
|
+
declare function createDrizzleCrudHandlers<TTable extends SQLiteTable, ApiType extends Record<string, unknown>, TIdField extends Extract<keyof TTable['_']['columns'], string> = Extract<keyof TTable['_']['columns'], string>, InputType extends Record<TIdField, string> & Record<string, unknown> = (ApiType extends Record<TIdField, string> ? ApiType : Record<TIdField, string> & Record<string, unknown>), TSingularKey extends string = string>(config: DrizzleCrudConfig<TTable, ApiType, TIdField, InputType, TSingularKey>): (bus: IMakaioBus, db: MakaioDatabase) => () => void;
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region packages/storage/handlers/src/drizzle/list-handler.d.ts
|
|
132
|
+
/**
|
|
133
|
+
* Creates a list handler with customizable query predicates.
|
|
134
|
+
*
|
|
135
|
+
* Type safety is maintained at the call site through DrizzleListConfig type
|
|
136
|
+
* parameters and runtime Zod schema validation.
|
|
137
|
+
* @param config - List handler configuration
|
|
138
|
+
* @returns Function that registers the handler and returns cleanup
|
|
139
|
+
* @example
|
|
140
|
+
* ```typescript
|
|
141
|
+
* const registerList = createDrizzleListHandler({
|
|
142
|
+
* table: profileDefinitions,
|
|
143
|
+
* subject: ProfileStorageSubjects.list,
|
|
144
|
+
* pluralKey: 'profiles',
|
|
145
|
+
* mapper: mapProfile,
|
|
146
|
+
* buildPredicates: (payload, table) => [
|
|
147
|
+
* ...buildScopePredicates(table, payload.projectId),
|
|
148
|
+
* ...(payload.name ? [eq(table.name, payload.name)] : []),
|
|
149
|
+
* ],
|
|
150
|
+
* });
|
|
151
|
+
*
|
|
152
|
+
* const cleanup = registerList(bus, db);
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
declare function createDrizzleListHandler<TTable extends SQLiteTable, ApiType, QueryPayload extends Record<string, unknown> = Record<string, unknown>, TPluralKey extends string = string>(config: DrizzleListConfig<TTable, ApiType, QueryPayload, TPluralKey>): (bus: IMakaioBus, db: MakaioDatabase) => () => void;
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region packages/storage/handlers/src/drizzle/scope-predicates.d.ts
|
|
158
|
+
/**
|
|
159
|
+
* Table with a scope column for two-tier scoping.
|
|
160
|
+
*/
|
|
161
|
+
interface ScopeTable {
|
|
162
|
+
/** Scope column for filtering (default or projectId) */
|
|
163
|
+
scope: Column;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Builds standard scope predicates for two-tier scoping (default | projectId).
|
|
167
|
+
*
|
|
168
|
+
* When projectId is provided: returns both default and project-scoped entities.
|
|
169
|
+
* When projectId is undefined: returns only default-scoped entities.
|
|
170
|
+
* @param table - Table with 'scope' column
|
|
171
|
+
* @param projectId - Optional project ID for scoping
|
|
172
|
+
* @returns Array of SQL predicates
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* const predicates = buildScopePredicates(profileDefinitions, 'proj-123');
|
|
176
|
+
* // Returns: [inArray(profileDefinitions.scope, ['default', 'proj-123'])]
|
|
177
|
+
*
|
|
178
|
+
* const predicates = buildScopePredicates(profileDefinitions, undefined);
|
|
179
|
+
* // Returns: [eq(profileDefinitions.scope, 'default')]
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
declare function buildScopePredicates<T extends ScopeTable>(table: T, projectId: string | undefined): SQL[];
|
|
183
|
+
//#endregion
|
|
184
|
+
export { DrizzleCrudConfig as a, CrudLifecycleConfig as i, createDrizzleListHandler as n, DrizzleListConfig as o, createDrizzleCrudHandlers as r, buildScopePredicates as t };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
//#region packages/contracts/src/common/focus-context.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Shared focus context type for navigation results.
|
|
4
|
+
*
|
|
5
|
+
* This type is used across multiple packages to define focus contexts
|
|
6
|
+
* for the web/app surface. It's centralized here to avoid duplication.
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Focus context types for navigation results.
|
|
11
|
+
*
|
|
12
|
+
* Represents the different focus areas available in the web/app interface.
|
|
13
|
+
* Used by slash commands, navigation results, and the focus store.
|
|
14
|
+
*
|
|
15
|
+
* The focus store implementation is in `@makaio/ui-hooks`.
|
|
16
|
+
*/
|
|
17
|
+
type FocusContext = 'chat' | 'git' | 'review' | 'planning' | 'settings';
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region packages/contracts/src/common/action-intent.d.ts
|
|
20
|
+
/**
|
|
21
|
+
* Describes a UI side effect that an action handler intends to produce.
|
|
22
|
+
*
|
|
23
|
+
* Action handlers return an `ActionIntent` rather than executing effects directly.
|
|
24
|
+
* The framework's intent executor interprets and dispatches each kind.
|
|
25
|
+
*
|
|
26
|
+
* SEAM: New intent kinds are added here. UI executors add the corresponding
|
|
27
|
+
* cases without leaking renderer dependencies into service packages.
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const intent: ActionIntent = { kind: 'clipboard', text: commit.hash };
|
|
31
|
+
* const compound: ActionIntent = {
|
|
32
|
+
* kind: 'compound',
|
|
33
|
+
* intents: [
|
|
34
|
+
* { kind: 'clipboard', text: commit.hash },
|
|
35
|
+
* { kind: 'feedback', message: 'Hash copied', variant: 'success' },
|
|
36
|
+
* ],
|
|
37
|
+
* };
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
type ActionIntent = {
|
|
41
|
+
readonly kind: 'noop';
|
|
42
|
+
} | {
|
|
43
|
+
readonly kind: 'clipboard';
|
|
44
|
+
readonly text: string;
|
|
45
|
+
readonly feedback?: string;
|
|
46
|
+
} | {
|
|
47
|
+
readonly kind: 'navigate';
|
|
48
|
+
readonly target: FocusContext;
|
|
49
|
+
} | {
|
|
50
|
+
readonly kind: 'openEditor';
|
|
51
|
+
readonly filePath: string;
|
|
52
|
+
readonly line?: number;
|
|
53
|
+
readonly column?: number;
|
|
54
|
+
} | {
|
|
55
|
+
readonly kind: 'openPage';
|
|
56
|
+
readonly pageId: string;
|
|
57
|
+
readonly internalRoute?: string;
|
|
58
|
+
} | {
|
|
59
|
+
readonly kind: 'busRequest';
|
|
60
|
+
readonly subject: string;
|
|
61
|
+
readonly payload?: Record<string, unknown>;
|
|
62
|
+
} | {
|
|
63
|
+
readonly kind: 'feedback';
|
|
64
|
+
readonly message: string;
|
|
65
|
+
readonly variant?: 'info' | 'success' | 'warning' | 'error';
|
|
66
|
+
} | {
|
|
67
|
+
readonly kind: 'confirm';
|
|
68
|
+
readonly title: string;
|
|
69
|
+
readonly message: string;
|
|
70
|
+
readonly onConfirmIntent: ActionIntent;
|
|
71
|
+
} | {
|
|
72
|
+
readonly kind: 'compound';
|
|
73
|
+
readonly intents: readonly ActionIntent[];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Open a diff view for a file.
|
|
77
|
+
*
|
|
78
|
+
* - `commitId` is `null` for working-tree diffs (right side is read from disk).
|
|
79
|
+
* - `status` is the git file status character (A/M/D/R/…) for commit contexts.
|
|
80
|
+
* - `parentCount` drives empty-tree handling for root commits.
|
|
81
|
+
* - `originalPath` carries the rename origin when the file was renamed.
|
|
82
|
+
* - `variant` is the working-tree section ('staged' | 'unstaged' | 'untracked' | 'conflicted').
|
|
83
|
+
*/
|
|
84
|
+
| {
|
|
85
|
+
readonly kind: 'viewDiff';
|
|
86
|
+
readonly filePath: string;
|
|
87
|
+
readonly commitId: string | null;
|
|
88
|
+
readonly status?: string;
|
|
89
|
+
readonly parentCount?: number;
|
|
90
|
+
readonly originalPath?: string;
|
|
91
|
+
readonly variant?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Show file content at a specific commit in the inline file viewer panel.
|
|
95
|
+
* Only valid for commit-context files.
|
|
96
|
+
*/
|
|
97
|
+
| {
|
|
98
|
+
readonly kind: 'viewAtCommit';
|
|
99
|
+
readonly filePath: string;
|
|
100
|
+
readonly commitId: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Show blame annotations for a file at a specific commit in the inline blame panel.
|
|
104
|
+
* Only valid for commit-context files.
|
|
105
|
+
*/
|
|
106
|
+
| {
|
|
107
|
+
readonly kind: 'viewBlame';
|
|
108
|
+
readonly filePath: string;
|
|
109
|
+
readonly commitId: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Compare a file across revisions using the diff viewer.
|
|
113
|
+
*
|
|
114
|
+
* Equivalent to `viewDiff` but with `useEmptyTreeForRoot = true` — root commits
|
|
115
|
+
* are shown as full-add diffs against the empty tree. For working-tree contexts,
|
|
116
|
+
* untracked files are silently skipped.
|
|
117
|
+
*
|
|
118
|
+
* - `commitId` is `null` for working-tree compare.
|
|
119
|
+
* - `status`, `parentCount`, `originalPath`, `variant` carry the same semantics as `viewDiff`.
|
|
120
|
+
*/
|
|
121
|
+
| {
|
|
122
|
+
readonly kind: 'compareVersions';
|
|
123
|
+
readonly filePath: string;
|
|
124
|
+
readonly commitId: string | null;
|
|
125
|
+
readonly status?: string;
|
|
126
|
+
readonly parentCount?: number;
|
|
127
|
+
readonly originalPath?: string;
|
|
128
|
+
readonly variant?: string;
|
|
129
|
+
};
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region packages/contracts/src/common/surface.d.ts
|
|
132
|
+
/**
|
|
133
|
+
* Surface type definitions shared across all packages.
|
|
134
|
+
*
|
|
135
|
+
* These are the canonical surface types used throughout the system.
|
|
136
|
+
* Both the contracts-level page metadata and the framework-level
|
|
137
|
+
* page definitions reference these types.
|
|
138
|
+
* @packageDocumentation
|
|
139
|
+
*/
|
|
140
|
+
/**
|
|
141
|
+
* Rendering surface identifiers.
|
|
142
|
+
*
|
|
143
|
+
* Each surface represents a distinct runtime environment:
|
|
144
|
+
* - 'web': Browser-based React DOM rendering
|
|
145
|
+
* - 'mobile': React Native rendering (iOS/Android)
|
|
146
|
+
* - 'electron': Desktop Electron rendering (superset of web)
|
|
147
|
+
* - 'electrobun': Desktop Electrobun rendering (Bun-native alternative to Electron)
|
|
148
|
+
* - 'tray': Lightweight tray popover canvas (subset of desktop)
|
|
149
|
+
*
|
|
150
|
+
* SEAM: New surfaces can be added here as the platform expands.
|
|
151
|
+
*/
|
|
152
|
+
type SurfaceType = 'web' | 'mobile' | 'electron' | 'electrobun' | 'tray';
|
|
153
|
+
/**
|
|
154
|
+
* Page surface visibility configuration.
|
|
155
|
+
*
|
|
156
|
+
* Controls which rendering surfaces a page appears on:
|
|
157
|
+
* - `'all'`: Available on every surface (default when omitted)
|
|
158
|
+
* - `SurfaceType[]`: Restricted to listed surfaces only
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* // Available everywhere
|
|
162
|
+
* surfaces: 'all'
|
|
163
|
+
*
|
|
164
|
+
* // Web and electron only
|
|
165
|
+
* surfaces: ['web', 'electron']
|
|
166
|
+
*
|
|
167
|
+
* // Mobile only
|
|
168
|
+
* surfaces: ['mobile']
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
type SurfaceVisibility = 'all' | SurfaceType[];
|
|
172
|
+
/**
|
|
173
|
+
* Check if a page is visible on a given surface.
|
|
174
|
+
* @param visibility - Page surface visibility configuration
|
|
175
|
+
* @param surface - Surface to check against
|
|
176
|
+
* @returns True if the page should be visible on the surface
|
|
177
|
+
*/
|
|
178
|
+
declare function isSurfaceVisible(visibility: SurfaceVisibility | undefined, surface: SurfaceType): boolean;
|
|
179
|
+
//#endregion
|
|
180
|
+
export { FocusContext as a, ActionIntent as i, SurfaceVisibility as n, isSurfaceVisible as r, SurfaceType as t };
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { IMakaioBus } from "@makaio/framework/bus";
|
|
2
|
+
|
|
3
|
+
//#region packages/kernel/src/providers/storage.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Cleanup handle returned by storage registration.
|
|
6
|
+
*/
|
|
7
|
+
interface StorageCleanup {
|
|
8
|
+
/** Unregister all storage handlers from the bus. */
|
|
9
|
+
cleanup: () => void;
|
|
10
|
+
/** Database handle, if this provider uses a database (e.g., Drizzle). */
|
|
11
|
+
db?: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Platform-specific storage backend.
|
|
15
|
+
* Registers bus handlers that respond to storage namespace subjects.
|
|
16
|
+
*/
|
|
17
|
+
interface StorageProvider {
|
|
18
|
+
/**
|
|
19
|
+
* Register storage handlers on the bus.
|
|
20
|
+
* Called before app.start() in the composition root.
|
|
21
|
+
* @param bus - Bus instance to register handlers on
|
|
22
|
+
* @param machineId - Machine identifier for storage scoping
|
|
23
|
+
*/
|
|
24
|
+
registerHandlers(bus: IMakaioBus, machineId: string): Promise<StorageCleanup>;
|
|
25
|
+
/** Release storage resources (close DB connections, etc.). */
|
|
26
|
+
dispose(): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region packages/kernel/src/providers/transport.d.ts
|
|
30
|
+
/**
|
|
31
|
+
* Platform-specific bus transport (WebSocket server, client, none).
|
|
32
|
+
*/
|
|
33
|
+
interface TransportProvider {
|
|
34
|
+
/**
|
|
35
|
+
* Attach transport to the bus.
|
|
36
|
+
*
|
|
37
|
+
* For server transports, the HTTP server and Hono app are passed via
|
|
38
|
+
* constructor options — the provider only wires the WebSocket upgrade
|
|
39
|
+
* handler onto them.
|
|
40
|
+
* @param bus - Bus instance to attach transport to.
|
|
41
|
+
* @param machineId - Machine identifier for transport identification.
|
|
42
|
+
*/
|
|
43
|
+
connect(bus: IMakaioBus, machineId: string): Promise<void>;
|
|
44
|
+
/** Disconnect and release transport resources. */
|
|
45
|
+
disconnect(): Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region packages/kernel/src/providers/identity.d.ts
|
|
49
|
+
/**
|
|
50
|
+
* Machine identity resolved by the platform.
|
|
51
|
+
*/
|
|
52
|
+
interface MachineIdentity {
|
|
53
|
+
/** Unique machine identifier. */
|
|
54
|
+
readonly machineId: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Platform-specific machine identity resolution.
|
|
58
|
+
* Node: persisted in ~/.makaio/keys/
|
|
59
|
+
* Container/Framework: ephemeral crypto.randomUUID()
|
|
60
|
+
*/
|
|
61
|
+
interface IdentityProvider {
|
|
62
|
+
/** Load or generate the machine identity. */
|
|
63
|
+
load(): Promise<MachineIdentity>;
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region packages/kernel/src/providers/memory-storage.d.ts
|
|
67
|
+
/**
|
|
68
|
+
* No-op storage provider.
|
|
69
|
+
*
|
|
70
|
+
* Satisfies the {@link StorageProvider} interface when no platform-specific storage
|
|
71
|
+
* (e.g., Drizzle) is needed.
|
|
72
|
+
*/
|
|
73
|
+
declare class MemoryStorageProvider implements StorageProvider {
|
|
74
|
+
/**
|
|
75
|
+
* Returns a no-op cleanup handle.
|
|
76
|
+
*
|
|
77
|
+
* In-memory bus handler registration is performed by individual service
|
|
78
|
+
* storage factories before service construction.
|
|
79
|
+
* @param _bus - Unused bus instance
|
|
80
|
+
* @param _machineId - Unused machine identifier
|
|
81
|
+
* @returns A no-op cleanup handle
|
|
82
|
+
*/
|
|
83
|
+
registerHandlers(_bus: IMakaioBus, _machineId: string): Promise<StorageCleanup>;
|
|
84
|
+
/** Nothing to dispose for in-memory storage. */
|
|
85
|
+
dispose(): Promise<void>;
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region packages/kernel/src/providers/no-transport.d.ts
|
|
89
|
+
/**
|
|
90
|
+
* No-op transport provider for in-process-only bus usage.
|
|
91
|
+
* Used by framework users who don't need cross-process communication.
|
|
92
|
+
*/
|
|
93
|
+
declare class NoTransportProvider implements TransportProvider {
|
|
94
|
+
/**
|
|
95
|
+
* No-op — no transport to connect.
|
|
96
|
+
* @param _bus - Unused bus instance.
|
|
97
|
+
* @param _machineId - Unused machine identifier.
|
|
98
|
+
*/
|
|
99
|
+
connect(_bus: IMakaioBus, _machineId: string): Promise<void>;
|
|
100
|
+
/** Nothing to disconnect. */
|
|
101
|
+
disconnect(): Promise<void>;
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region packages/kernel/src/providers/ephemeral-identity.d.ts
|
|
105
|
+
/**
|
|
106
|
+
* Ephemeral identity provider — generates a new random UUID on each load.
|
|
107
|
+
* Used by framework users and containers that don't persist machine identity.
|
|
108
|
+
*/
|
|
109
|
+
declare class EphemeralIdentityProvider implements IdentityProvider {
|
|
110
|
+
/**
|
|
111
|
+
* Generate a fresh random UUID as the machine identity.
|
|
112
|
+
* @returns A new ephemeral machine identity
|
|
113
|
+
*/
|
|
114
|
+
load(): Promise<MachineIdentity>;
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
export { MachineIdentity as a, StorageProvider as c, IdentityProvider as i, NoTransportProvider as n, TransportProvider as o, MemoryStorageProvider as r, StorageCleanup as s, EphemeralIdentityProvider as t };
|