@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,412 @@
|
|
|
1
|
+
import { _ as ManagedInstructionFileTarget, a as ContextRuleInput, b as TurnContextRuleAction, c as ContextRuleScope, d as ContextSnapshot, f as ContextSnapshotBase, g as MANAGED_INSTRUCTION_FILE_TARGETS, h as FileContextRuleAction, i as ContextRuleCondition, l as ContextRuleScopeFields, m as DEFAULT_CONTEXT_RULE_TURN_CONTEXT_KEY, n as ContextRuleAction, o as ContextRuleListQuery, p as ContextSnapshotExtensions, r as ContextRuleChangedEvent, s as ContextRuleResolutionRequest, t as ContextRule, u as ContextRuleScopeIdentity, v as ResolvedContextRule, y as ResolvedContextRules } from "../../types-t295YC6T.mjs";
|
|
2
|
+
import * as _$zod from "zod";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
5
|
+
import * as _$_makaio_storage_core0 from "@makaio/framework/storage";
|
|
6
|
+
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
7
|
+
|
|
8
|
+
//#region packages/services/core/src/context-rules/schemas.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Base runtime facts accepted by the resolution service.
|
|
11
|
+
*/
|
|
12
|
+
declare const ContextSnapshotBaseSchema: z.ZodObject<{
|
|
13
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
14
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
/**
|
|
19
|
+
* Snapshot schema used in service responses.
|
|
20
|
+
*
|
|
21
|
+
* Host-owned snapshot extensions are preserved as unknown extra fields.
|
|
22
|
+
*/
|
|
23
|
+
declare const ContextSnapshotSchema: z.ZodObject<{
|
|
24
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
25
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
29
|
+
/**
|
|
30
|
+
* Allowlisted managed instruction file targets.
|
|
31
|
+
*/
|
|
32
|
+
declare const ManagedInstructionFileTargetSchema: z.ZodEnum<{
|
|
33
|
+
"AGENTS.md": "AGENTS.md";
|
|
34
|
+
"CLAUDE.md": "CLAUDE.md";
|
|
35
|
+
"GEMINI.md": "GEMINI.md";
|
|
36
|
+
"COPILOT.md": "COPILOT.md";
|
|
37
|
+
"CURSOR.md": "CURSOR.md";
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Action schema for turn-context delivery.
|
|
41
|
+
*/
|
|
42
|
+
declare const TurnContextRuleActionSchema: z.ZodObject<{
|
|
43
|
+
channel: z.ZodLiteral<"turnContext">;
|
|
44
|
+
content: z.ZodString;
|
|
45
|
+
turnContextKey: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
/**
|
|
48
|
+
* Action schema for managed-file delivery.
|
|
49
|
+
*/
|
|
50
|
+
declare const FileContextRuleActionSchema: z.ZodObject<{
|
|
51
|
+
channel: z.ZodLiteral<"file">;
|
|
52
|
+
content: z.ZodString;
|
|
53
|
+
fileTarget: z.ZodEnum<{
|
|
54
|
+
"AGENTS.md": "AGENTS.md";
|
|
55
|
+
"CLAUDE.md": "CLAUDE.md";
|
|
56
|
+
"GEMINI.md": "GEMINI.md";
|
|
57
|
+
"COPILOT.md": "COPILOT.md";
|
|
58
|
+
"CURSOR.md": "CURSOR.md";
|
|
59
|
+
}>;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
/**
|
|
62
|
+
* Discriminated action schema for persisted context rules.
|
|
63
|
+
*/
|
|
64
|
+
declare const ContextRuleActionSchema: z.ZodType<ContextRuleAction, ContextRuleAction>;
|
|
65
|
+
/**
|
|
66
|
+
* Persisted context-rule scope levels.
|
|
67
|
+
*/
|
|
68
|
+
declare const ContextRuleScopeSchema: z.ZodEnum<{
|
|
69
|
+
session: "session";
|
|
70
|
+
global: "global";
|
|
71
|
+
project: "project";
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Validate scope invariants for a context rule input.
|
|
75
|
+
*
|
|
76
|
+
* Invariants:
|
|
77
|
+
* - `global`: no `projectId`, no `sessionId`
|
|
78
|
+
* - `project`: requires `projectId`, no `sessionId`
|
|
79
|
+
* - `session`: requires `sessionId`, `projectId` optional
|
|
80
|
+
* @param rule - Rule-like object carrying scope fields
|
|
81
|
+
* @throws Error when the scope invariants are violated
|
|
82
|
+
*/
|
|
83
|
+
declare function validateContextRuleScope(rule: Pick<ContextRuleScopeFields, 'scope' | 'projectId' | 'sessionId'>): void;
|
|
84
|
+
/**
|
|
85
|
+
* Context-rule upsert payload schema.
|
|
86
|
+
*/
|
|
87
|
+
declare const ContextRuleInputSchema: z.ZodType<ContextRuleInput, ContextRuleInput>;
|
|
88
|
+
/**
|
|
89
|
+
* Persisted context-rule record schema.
|
|
90
|
+
*/
|
|
91
|
+
declare const ContextRuleSchema: z.ZodType<ContextRule, ContextRule>;
|
|
92
|
+
/**
|
|
93
|
+
* Storage-tier candidate query for scope-based listing.
|
|
94
|
+
*/
|
|
95
|
+
declare const ContextRuleListQuerySchema: z.ZodObject<{
|
|
96
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
97
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
/**
|
|
100
|
+
* Normalized scope identity used for invalidation events.
|
|
101
|
+
*/
|
|
102
|
+
declare const ContextRuleScopeIdentitySchema: z.ZodObject<{
|
|
103
|
+
scope: z.ZodEnum<{
|
|
104
|
+
session: "session";
|
|
105
|
+
global: "global";
|
|
106
|
+
project: "project";
|
|
107
|
+
}>;
|
|
108
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
109
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
/**
|
|
112
|
+
* Service request schema for resolving rules against runtime facts.
|
|
113
|
+
*/
|
|
114
|
+
declare const ContextRuleResolutionRequestSchema: z.ZodObject<{
|
|
115
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
116
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$strict>;
|
|
120
|
+
/**
|
|
121
|
+
* Matched rule output after template rendering.
|
|
122
|
+
*/
|
|
123
|
+
declare const ResolvedContextRuleSchema: z.ZodObject<{
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
priority: z.ZodNumber;
|
|
127
|
+
action: z.ZodType<ContextRuleAction, ContextRuleAction, z.core.$ZodTypeInternals<ContextRuleAction, ContextRuleAction>>;
|
|
128
|
+
renderedContent: z.ZodString;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
/**
|
|
131
|
+
* Service response schema for grouped resolved rules.
|
|
132
|
+
*/
|
|
133
|
+
declare const ResolvedContextRulesSchema: z.ZodObject<{
|
|
134
|
+
snapshot: z.ZodObject<{
|
|
135
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
136
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
137
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
140
|
+
turnContext: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
name: z.ZodString;
|
|
143
|
+
priority: z.ZodNumber;
|
|
144
|
+
action: z.ZodType<ContextRuleAction, ContextRuleAction, z.core.$ZodTypeInternals<ContextRuleAction, ContextRuleAction>>;
|
|
145
|
+
renderedContent: z.ZodString;
|
|
146
|
+
}, z.core.$strict>>>;
|
|
147
|
+
files: z.ZodObject<{
|
|
148
|
+
[x: string]: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
name: z.ZodString;
|
|
151
|
+
priority: z.ZodNumber;
|
|
152
|
+
action: z.ZodType<ContextRuleAction, ContextRuleAction, z.core.$ZodTypeInternals<ContextRuleAction, ContextRuleAction>>;
|
|
153
|
+
renderedContent: z.ZodString;
|
|
154
|
+
}, z.core.$strict>>>;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
/**
|
|
158
|
+
* Lifecycle change event type for persisted context rules.
|
|
159
|
+
*/
|
|
160
|
+
declare const ContextRuleChangedEventSchema: z.ZodObject<{
|
|
161
|
+
ruleId: z.ZodString;
|
|
162
|
+
changeType: z.ZodEnum<{
|
|
163
|
+
deleted: "deleted";
|
|
164
|
+
created: "created";
|
|
165
|
+
updated: "updated";
|
|
166
|
+
}>;
|
|
167
|
+
previous: z.ZodNullable<z.ZodObject<{
|
|
168
|
+
scope: z.ZodEnum<{
|
|
169
|
+
session: "session";
|
|
170
|
+
global: "global";
|
|
171
|
+
project: "project";
|
|
172
|
+
}>;
|
|
173
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
174
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
175
|
+
}, z.core.$strict>>;
|
|
176
|
+
current: z.ZodNullable<z.ZodObject<{
|
|
177
|
+
scope: z.ZodEnum<{
|
|
178
|
+
session: "session";
|
|
179
|
+
global: "global";
|
|
180
|
+
project: "project";
|
|
181
|
+
}>;
|
|
182
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
183
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
184
|
+
}, z.core.$strict>>;
|
|
185
|
+
timestamp: z.ZodNumber;
|
|
186
|
+
}, z.core.$strict>;
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region packages/services/core/src/context-rules/storage-namespace.d.ts
|
|
189
|
+
/**
|
|
190
|
+
* Storage namespace for persisted context rules.
|
|
191
|
+
*
|
|
192
|
+
* Storage owns CRUD and scope-based candidate listing only. Effective rule
|
|
193
|
+
* resolution, sorting, evaluation, rendering, and grouping belong to the
|
|
194
|
+
* service layer.
|
|
195
|
+
*/
|
|
196
|
+
declare const ContextRulesStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDefinition<"contextRules", {
|
|
197
|
+
get: {
|
|
198
|
+
request: z.ZodObject<{
|
|
199
|
+
id: z.ZodString;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
response: z.ZodObject<{
|
|
202
|
+
rule: z.ZodNullable<z.ZodType<ContextRule, ContextRule, z.core.$ZodTypeInternals<ContextRule, ContextRule>>>;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
};
|
|
205
|
+
set: {
|
|
206
|
+
request: z.ZodObject<{
|
|
207
|
+
rule: z.ZodType<ContextRuleInput, ContextRuleInput, z.core.$ZodTypeInternals<ContextRuleInput, ContextRuleInput>>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
response: z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
};
|
|
213
|
+
delete: {
|
|
214
|
+
request: z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
response: z.ZodObject<{
|
|
218
|
+
deleted: z.ZodBoolean;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
};
|
|
221
|
+
list: {
|
|
222
|
+
request: z.ZodObject<{
|
|
223
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
224
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strict>;
|
|
226
|
+
response: z.ZodObject<{
|
|
227
|
+
rules: z.ZodArray<z.ZodType<ContextRule, ContextRule, z.core.$ZodTypeInternals<ContextRule, ContextRule>>>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
};
|
|
230
|
+
}, _$_makaio_storage_core0.StorageNamespaceExtensions>;
|
|
231
|
+
/**
|
|
232
|
+
* Typed subjects for context-rule storage operations.
|
|
233
|
+
*/
|
|
234
|
+
declare const ContextRulesStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"storage:contextRules", {
|
|
235
|
+
get: {
|
|
236
|
+
request: z.ZodObject<{
|
|
237
|
+
id: z.ZodString;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
response: z.ZodObject<{
|
|
240
|
+
rule: z.ZodNullable<z.ZodType<ContextRule, ContextRule, z.core.$ZodTypeInternals<ContextRule, ContextRule>>>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
};
|
|
243
|
+
set: {
|
|
244
|
+
request: z.ZodObject<{
|
|
245
|
+
rule: z.ZodType<ContextRuleInput, ContextRuleInput, z.core.$ZodTypeInternals<ContextRuleInput, ContextRuleInput>>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
response: z.ZodObject<{
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
};
|
|
251
|
+
delete: {
|
|
252
|
+
request: z.ZodObject<{
|
|
253
|
+
id: z.ZodString;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
response: z.ZodObject<{
|
|
256
|
+
deleted: z.ZodBoolean;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
};
|
|
259
|
+
list: {
|
|
260
|
+
request: z.ZodObject<{
|
|
261
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
262
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
response: z.ZodObject<{
|
|
265
|
+
rules: z.ZodArray<z.ZodType<ContextRule, ContextRule, z.core.$ZodTypeInternals<ContextRule, ContextRule>>>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
};
|
|
268
|
+
}>, "storage:contextRules">;
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region packages/services/core/src/context-rules/service-namespace.d.ts
|
|
271
|
+
/**
|
|
272
|
+
* Registered service namespace for context-rule resolution and invalidation.
|
|
273
|
+
*/
|
|
274
|
+
declare const ContextRulesServiceNamespace: _$_makaio_core0.BusNamespaceDefinition<"contextRules", {
|
|
275
|
+
/**
|
|
276
|
+
* Resolve matching context rules for the current runtime snapshot.
|
|
277
|
+
*/
|
|
278
|
+
resolve: {
|
|
279
|
+
request: _$zod.ZodObject<{
|
|
280
|
+
cwd: _$zod.ZodOptional<_$zod.ZodString>;
|
|
281
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
282
|
+
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
283
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
284
|
+
}, _$zod_v4_core0.$strict>;
|
|
285
|
+
response: _$zod.ZodObject<{
|
|
286
|
+
snapshot: _$zod.ZodObject<{
|
|
287
|
+
cwd: _$zod.ZodOptional<_$zod.ZodString>;
|
|
288
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
289
|
+
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
290
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
291
|
+
}, _$zod_v4_core0.$catchall<_$zod.ZodUnknown>>;
|
|
292
|
+
turnContext: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodObject<{
|
|
293
|
+
id: _$zod.ZodString;
|
|
294
|
+
name: _$zod.ZodString;
|
|
295
|
+
priority: _$zod.ZodNumber;
|
|
296
|
+
action: _$zod.ZodType<ContextRuleAction, ContextRuleAction, _$zod_v4_core0.$ZodTypeInternals<ContextRuleAction, ContextRuleAction>>;
|
|
297
|
+
renderedContent: _$zod.ZodString;
|
|
298
|
+
}, _$zod_v4_core0.$strict>>>;
|
|
299
|
+
files: _$zod.ZodObject<{
|
|
300
|
+
[x: string]: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
301
|
+
id: _$zod.ZodString;
|
|
302
|
+
name: _$zod.ZodString;
|
|
303
|
+
priority: _$zod.ZodNumber;
|
|
304
|
+
action: _$zod.ZodType<ContextRuleAction, ContextRuleAction, _$zod_v4_core0.$ZodTypeInternals<ContextRuleAction, ContextRuleAction>>;
|
|
305
|
+
renderedContent: _$zod.ZodString;
|
|
306
|
+
}, _$zod_v4_core0.$strict>>>;
|
|
307
|
+
}, _$zod_v4_core0.$strict>;
|
|
308
|
+
}, _$zod_v4_core0.$strict>;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* Lifecycle event emitted whenever persisted context rules change.
|
|
312
|
+
*/
|
|
313
|
+
changed: _$zod.ZodObject<{
|
|
314
|
+
ruleId: _$zod.ZodString;
|
|
315
|
+
changeType: _$zod.ZodEnum<{
|
|
316
|
+
deleted: "deleted";
|
|
317
|
+
created: "created";
|
|
318
|
+
updated: "updated";
|
|
319
|
+
}>;
|
|
320
|
+
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
321
|
+
scope: _$zod.ZodEnum<{
|
|
322
|
+
session: "session";
|
|
323
|
+
global: "global";
|
|
324
|
+
project: "project";
|
|
325
|
+
}>;
|
|
326
|
+
projectId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
327
|
+
sessionId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
328
|
+
}, _$zod_v4_core0.$strict>>;
|
|
329
|
+
current: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
330
|
+
scope: _$zod.ZodEnum<{
|
|
331
|
+
session: "session";
|
|
332
|
+
global: "global";
|
|
333
|
+
project: "project";
|
|
334
|
+
}>;
|
|
335
|
+
projectId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
336
|
+
sessionId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
337
|
+
}, _$zod_v4_core0.$strict>>;
|
|
338
|
+
timestamp: _$zod.ZodNumber;
|
|
339
|
+
}, _$zod_v4_core0.$strict>;
|
|
340
|
+
}>;
|
|
341
|
+
/**
|
|
342
|
+
* Typed subjects for the context-rules service namespace.
|
|
343
|
+
*/
|
|
344
|
+
declare const ContextRulesServiceSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"contextRules", {
|
|
345
|
+
/**
|
|
346
|
+
* Resolve matching context rules for the current runtime snapshot.
|
|
347
|
+
*/
|
|
348
|
+
resolve: {
|
|
349
|
+
request: _$zod.ZodObject<{
|
|
350
|
+
cwd: _$zod.ZodOptional<_$zod.ZodString>;
|
|
351
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
352
|
+
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
353
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
354
|
+
}, _$zod_v4_core0.$strict>;
|
|
355
|
+
response: _$zod.ZodObject<{
|
|
356
|
+
snapshot: _$zod.ZodObject<{
|
|
357
|
+
cwd: _$zod.ZodOptional<_$zod.ZodString>;
|
|
358
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
359
|
+
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
360
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
361
|
+
}, _$zod_v4_core0.$catchall<_$zod.ZodUnknown>>;
|
|
362
|
+
turnContext: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodArray<_$zod.ZodObject<{
|
|
363
|
+
id: _$zod.ZodString;
|
|
364
|
+
name: _$zod.ZodString;
|
|
365
|
+
priority: _$zod.ZodNumber;
|
|
366
|
+
action: _$zod.ZodType<ContextRuleAction, ContextRuleAction, _$zod_v4_core0.$ZodTypeInternals<ContextRuleAction, ContextRuleAction>>;
|
|
367
|
+
renderedContent: _$zod.ZodString;
|
|
368
|
+
}, _$zod_v4_core0.$strict>>>;
|
|
369
|
+
files: _$zod.ZodObject<{
|
|
370
|
+
[x: string]: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
371
|
+
id: _$zod.ZodString;
|
|
372
|
+
name: _$zod.ZodString;
|
|
373
|
+
priority: _$zod.ZodNumber;
|
|
374
|
+
action: _$zod.ZodType<ContextRuleAction, ContextRuleAction, _$zod_v4_core0.$ZodTypeInternals<ContextRuleAction, ContextRuleAction>>;
|
|
375
|
+
renderedContent: _$zod.ZodString;
|
|
376
|
+
}, _$zod_v4_core0.$strict>>>;
|
|
377
|
+
}, _$zod_v4_core0.$strict>;
|
|
378
|
+
}, _$zod_v4_core0.$strict>;
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Lifecycle event emitted whenever persisted context rules change.
|
|
382
|
+
*/
|
|
383
|
+
changed: _$zod.ZodObject<{
|
|
384
|
+
ruleId: _$zod.ZodString;
|
|
385
|
+
changeType: _$zod.ZodEnum<{
|
|
386
|
+
deleted: "deleted";
|
|
387
|
+
created: "created";
|
|
388
|
+
updated: "updated";
|
|
389
|
+
}>;
|
|
390
|
+
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
391
|
+
scope: _$zod.ZodEnum<{
|
|
392
|
+
session: "session";
|
|
393
|
+
global: "global";
|
|
394
|
+
project: "project";
|
|
395
|
+
}>;
|
|
396
|
+
projectId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
397
|
+
sessionId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
398
|
+
}, _$zod_v4_core0.$strict>>;
|
|
399
|
+
current: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
400
|
+
scope: _$zod.ZodEnum<{
|
|
401
|
+
session: "session";
|
|
402
|
+
global: "global";
|
|
403
|
+
project: "project";
|
|
404
|
+
}>;
|
|
405
|
+
projectId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
406
|
+
sessionId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
407
|
+
}, _$zod_v4_core0.$strict>>;
|
|
408
|
+
timestamp: _$zod.ZodNumber;
|
|
409
|
+
}, _$zod_v4_core0.$strict>;
|
|
410
|
+
}>, "contextRules">;
|
|
411
|
+
//#endregion
|
|
412
|
+
export { type ContextRule, type ContextRuleAction, ContextRuleActionSchema, type ContextRuleChangedEvent, ContextRuleChangedEventSchema, type ContextRuleCondition, type ContextRuleInput, ContextRuleInputSchema, type ContextRuleListQuery, ContextRuleListQuerySchema, type ContextRuleResolutionRequest, ContextRuleResolutionRequestSchema, ContextRuleSchema, type ContextRuleScope, type ContextRuleScopeFields, type ContextRuleScopeIdentity, ContextRuleScopeIdentitySchema, ContextRuleScopeSchema, ContextRulesServiceNamespace, ContextRulesServiceSubjects, ContextRulesStorageNamespace, ContextRulesStorageSubjects, type ContextSnapshot, type ContextSnapshotBase, ContextSnapshotBaseSchema, type ContextSnapshotExtensions, ContextSnapshotSchema, DEFAULT_CONTEXT_RULE_TURN_CONTEXT_KEY, type FileContextRuleAction, FileContextRuleActionSchema, MANAGED_INSTRUCTION_FILE_TARGETS, type ManagedInstructionFileTarget, ManagedInstructionFileTargetSchema, type ResolvedContextRule, ResolvedContextRuleSchema, type ResolvedContextRules, ResolvedContextRulesSchema, type TurnContextRuleAction, TurnContextRuleActionSchema, validateContextRuleScope };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as e,_ as t,a as n,b as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,x as b,y as x}from"../../storage-namespace-ADwyijoe.mjs";export{n as ContextRuleActionSchema,p as ContextRuleChangedEventSchema,g as ContextRuleInputSchema,i as ContextRuleListQuerySchema,u as ContextRuleResolutionRequestSchema,v as ContextRuleSchema,a as ContextRuleScopeIdentitySchema,o as ContextRuleScopeSchema,h as ContextRulesServiceNamespace,l as ContextRulesServiceSubjects,_ as ContextRulesStorageNamespace,f as ContextRulesStorageSubjects,m as ContextSnapshotBaseSchema,d as ContextSnapshotSchema,b as DEFAULT_CONTEXT_RULE_TURN_CONTEXT_KEY,c as FileContextRuleActionSchema,e as MANAGED_INSTRUCTION_FILE_TARGETS,s as ManagedInstructionFileTargetSchema,t as ResolvedContextRuleSchema,y as ResolvedContextRulesSchema,x as TurnContextRuleActionSchema,r as validateContextRuleScope};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IMakaioBus } from "@makaio/framework/bus";
|
|
2
|
+
|
|
3
|
+
//#region packages/services/core/src/credential-change/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Allocate the next monotonic credential-change sequence for one provider config on one bus instance.
|
|
6
|
+
* @param bus - Bus whose runtime owns the sequence space
|
|
7
|
+
* @param providerConfigId - Provider config whose sequence should advance
|
|
8
|
+
* @returns Next strictly increasing sequence number for the provider config
|
|
9
|
+
*/
|
|
10
|
+
declare function nextCredentialChangeSequence(bus: IMakaioBus, providerConfigId: string): number;
|
|
11
|
+
/**
|
|
12
|
+
* Reset credential-change sequence tracking for tests or teardown.
|
|
13
|
+
* @param bus - Optional bus to clear; omit to clear all tracked buses
|
|
14
|
+
*/
|
|
15
|
+
declare function resetCredentialChangeSequences(bus?: IMakaioBus): void;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { nextCredentialChangeSequence, resetCredentialChangeSequences };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=new Map;function t(t){let n=e.get(t);if(n)return n;let r=new Map;return e.set(t,r),r}function n(e,n){let r=t(e),i=(r.get(n)??0)+1;return r.set(n,i),i}function r(t){if(t){e.delete(t);return}e.clear()}export{n as nextCredentialChangeSequence,r as resetCredentialChangeSequences};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DefinitionNamespace as e,DefinitionSubjects as t}from"./namespace.mjs";export{e as DefinitionNamespace,t as DefinitionSubjects};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as _$zod from "zod";
|
|
2
|
+
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
3
|
+
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
4
|
+
|
|
5
|
+
//#region packages/services/core/src/definition/namespace.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Definition namespace definition.
|
|
8
|
+
*
|
|
9
|
+
* Provides bus subjects for querying JSON Schema descriptions of a
|
|
10
|
+
* provider definition's config and credential fields. The definition ID
|
|
11
|
+
* (`definitionId`) is the stable string identifier contributed by each
|
|
12
|
+
* provider adapter package (e.g. `'openai'`).
|
|
13
|
+
*
|
|
14
|
+
* Prefix: `definition.`
|
|
15
|
+
*
|
|
16
|
+
* Import `./schemas` when only pure Zod schemas are needed. Composition roots
|
|
17
|
+
* register this namespace explicitly.
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* // Get the config JSON Schema for a definition
|
|
21
|
+
* const { hasSchema, schema } = await bus.request(
|
|
22
|
+
* DefinitionSubjects.getConfigSchema,
|
|
23
|
+
* { definitionId: 'openai' },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
* @packageDocumentation
|
|
27
|
+
*/
|
|
28
|
+
/** Provider definition introspection namespace under the `definition` prefix. */
|
|
29
|
+
declare const DefinitionNamespace: _$_makaio_core0.BusNamespaceDefinition<"definition", {
|
|
30
|
+
getConfigSchema: {
|
|
31
|
+
request: _$zod.ZodObject<{
|
|
32
|
+
definitionId: _$zod.ZodString;
|
|
33
|
+
}, _$zod_v4_core0.$strip>;
|
|
34
|
+
response: _$zod.ZodObject<{
|
|
35
|
+
hasSchema: _$zod.ZodBoolean;
|
|
36
|
+
schema: _$zod.ZodNullable<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
37
|
+
}, _$zod_v4_core0.$strip>;
|
|
38
|
+
};
|
|
39
|
+
getCredentialSchema: {
|
|
40
|
+
request: _$zod.ZodObject<{
|
|
41
|
+
definitionId: _$zod.ZodString;
|
|
42
|
+
}, _$zod_v4_core0.$strip>;
|
|
43
|
+
response: _$zod.ZodObject<{
|
|
44
|
+
hasSchema: _$zod.ZodBoolean;
|
|
45
|
+
schema: _$zod.ZodNullable<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
46
|
+
}, _$zod_v4_core0.$strip>;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
/** Pre-extracted definition bus subjects for direct import. */
|
|
50
|
+
declare const DefinitionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"definition", {
|
|
51
|
+
getConfigSchema: {
|
|
52
|
+
request: _$zod.ZodObject<{
|
|
53
|
+
definitionId: _$zod.ZodString;
|
|
54
|
+
}, _$zod_v4_core0.$strip>;
|
|
55
|
+
response: _$zod.ZodObject<{
|
|
56
|
+
hasSchema: _$zod.ZodBoolean;
|
|
57
|
+
schema: _$zod.ZodNullable<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
58
|
+
}, _$zod_v4_core0.$strip>;
|
|
59
|
+
};
|
|
60
|
+
getCredentialSchema: {
|
|
61
|
+
request: _$zod.ZodObject<{
|
|
62
|
+
definitionId: _$zod.ZodString;
|
|
63
|
+
}, _$zod_v4_core0.$strip>;
|
|
64
|
+
response: _$zod.ZodObject<{
|
|
65
|
+
hasSchema: _$zod.ZodBoolean;
|
|
66
|
+
schema: _$zod.ZodNullable<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
67
|
+
}, _$zod_v4_core0.$strip>;
|
|
68
|
+
};
|
|
69
|
+
}>, "definition">;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { DefinitionNamespace, DefinitionSubjects };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DefinitionSchemas as e}from"./schemas.mjs";import{createBusNamespace as t}from"@makaio/framework/core";const n=t(`definition`,e),r=n.subjects;export{n as DefinitionNamespace,r as DefinitionSubjects};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region packages/services/core/src/definition/schemas.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Permissive JSON Schema type.
|
|
6
|
+
*
|
|
7
|
+
* Matches the `PersonaSchemas.getSchema` pattern — a nullable record of
|
|
8
|
+
* string keys to unknown values, mirroring the shape produced by Zod's
|
|
9
|
+
* `toJsonSchema` helper.
|
|
10
|
+
*/
|
|
11
|
+
declare const JsonSchemaSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
/**
|
|
13
|
+
* Zod schemas for all definition bus subjects.
|
|
14
|
+
*
|
|
15
|
+
* Each entry becomes a subject identifier as `definition.<key>`.
|
|
16
|
+
*/
|
|
17
|
+
declare const DefinitionSchemas: {
|
|
18
|
+
/** Get the JSON Schema for a provider definition's config fields. */getConfigSchema: {
|
|
19
|
+
request: z.ZodObject<{
|
|
20
|
+
definitionId: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
response: z.ZodObject<{
|
|
23
|
+
hasSchema: z.ZodBoolean;
|
|
24
|
+
schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
}; /** Get the JSON Schema for a provider definition's credential fields. */
|
|
27
|
+
getCredentialSchema: {
|
|
28
|
+
request: z.ZodObject<{
|
|
29
|
+
definitionId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
response: z.ZodObject<{
|
|
32
|
+
hasSchema: z.ZodBoolean;
|
|
33
|
+
schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { DefinitionSchemas, JsonSchemaSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as e}from"zod";const t=e.record(e.string(),e.unknown()).nullable(),n={getConfigSchema:{request:e.object({definitionId:e.string()}),response:e.object({hasSchema:e.boolean(),schema:t})},getCredentialSchema:{request:e.object({definitionId:e.string()}),response:e.object({hasSchema:e.boolean(),schema:t})}};export{n as DefinitionSchemas,t as JsonSchemaSchema};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as _$zod from "zod";
|
|
2
|
+
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
3
|
+
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
4
|
+
|
|
5
|
+
//#region packages/services/core/src/dialog/namespace.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Dialog namespace definition.
|
|
8
|
+
*
|
|
9
|
+
* Provides type-safe subjects for UI dialog operations (confirmation and
|
|
10
|
+
* text-input prompts). The UI handler must keep each request open until
|
|
11
|
+
* the user responds; set bus timeouts accordingly.
|
|
12
|
+
*/
|
|
13
|
+
declare const DialogNamespace: _$_makaio_core0.BusNamespaceDefinition<"dialog", {
|
|
14
|
+
confirm: {
|
|
15
|
+
request: _$zod.ZodObject<{
|
|
16
|
+
title: _$zod.ZodString;
|
|
17
|
+
message: _$zod.ZodString;
|
|
18
|
+
options: _$zod.ZodArray<_$zod.ZodObject<{
|
|
19
|
+
id: _$zod.ZodString;
|
|
20
|
+
label: _$zod.ZodString;
|
|
21
|
+
variant: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
22
|
+
primary: "primary";
|
|
23
|
+
secondary: "secondary";
|
|
24
|
+
danger: "danger";
|
|
25
|
+
}>>;
|
|
26
|
+
}, _$zod_v4_core0.$strip>>;
|
|
27
|
+
details: _$zod.ZodOptional<_$zod.ZodString>;
|
|
28
|
+
showDontAskAgain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
29
|
+
position: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
30
|
+
center: "center";
|
|
31
|
+
"top-center": "top-center";
|
|
32
|
+
"bottom-center": "bottom-center";
|
|
33
|
+
}>>;
|
|
34
|
+
}, _$zod_v4_core0.$strip>;
|
|
35
|
+
response: _$zod.ZodObject<{
|
|
36
|
+
selectedOptionId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
37
|
+
dontAskAgain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
38
|
+
}, _$zod_v4_core0.$strip>;
|
|
39
|
+
};
|
|
40
|
+
prompt: {
|
|
41
|
+
request: _$zod.ZodObject<{
|
|
42
|
+
title: _$zod.ZodString;
|
|
43
|
+
message: _$zod.ZodString;
|
|
44
|
+
placeholder: _$zod.ZodOptional<_$zod.ZodString>;
|
|
45
|
+
defaultValue: _$zod.ZodOptional<_$zod.ZodString>;
|
|
46
|
+
multiline: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
47
|
+
submitLabel: _$zod.ZodOptional<_$zod.ZodString>;
|
|
48
|
+
cancelLabel: _$zod.ZodOptional<_$zod.ZodString>;
|
|
49
|
+
}, _$zod_v4_core0.$strip>;
|
|
50
|
+
response: _$zod.ZodObject<{
|
|
51
|
+
value: _$zod.ZodNullable<_$zod.ZodString>;
|
|
52
|
+
}, _$zod_v4_core0.$strip>;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* Typed subjects for dialog operations.
|
|
57
|
+
*
|
|
58
|
+
* Subjects available:
|
|
59
|
+
* - `DialogSubjects.confirm` — Request user confirmation (RPC)
|
|
60
|
+
* - `DialogSubjects.prompt` — Request text input (RPC)
|
|
61
|
+
*/
|
|
62
|
+
declare const DialogSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"dialog", {
|
|
63
|
+
confirm: {
|
|
64
|
+
request: _$zod.ZodObject<{
|
|
65
|
+
title: _$zod.ZodString;
|
|
66
|
+
message: _$zod.ZodString;
|
|
67
|
+
options: _$zod.ZodArray<_$zod.ZodObject<{
|
|
68
|
+
id: _$zod.ZodString;
|
|
69
|
+
label: _$zod.ZodString;
|
|
70
|
+
variant: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
71
|
+
primary: "primary";
|
|
72
|
+
secondary: "secondary";
|
|
73
|
+
danger: "danger";
|
|
74
|
+
}>>;
|
|
75
|
+
}, _$zod_v4_core0.$strip>>;
|
|
76
|
+
details: _$zod.ZodOptional<_$zod.ZodString>;
|
|
77
|
+
showDontAskAgain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
78
|
+
position: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
79
|
+
center: "center";
|
|
80
|
+
"top-center": "top-center";
|
|
81
|
+
"bottom-center": "bottom-center";
|
|
82
|
+
}>>;
|
|
83
|
+
}, _$zod_v4_core0.$strip>;
|
|
84
|
+
response: _$zod.ZodObject<{
|
|
85
|
+
selectedOptionId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
86
|
+
dontAskAgain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
87
|
+
}, _$zod_v4_core0.$strip>;
|
|
88
|
+
};
|
|
89
|
+
prompt: {
|
|
90
|
+
request: _$zod.ZodObject<{
|
|
91
|
+
title: _$zod.ZodString;
|
|
92
|
+
message: _$zod.ZodString;
|
|
93
|
+
placeholder: _$zod.ZodOptional<_$zod.ZodString>;
|
|
94
|
+
defaultValue: _$zod.ZodOptional<_$zod.ZodString>;
|
|
95
|
+
multiline: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
96
|
+
submitLabel: _$zod.ZodOptional<_$zod.ZodString>;
|
|
97
|
+
cancelLabel: _$zod.ZodOptional<_$zod.ZodString>;
|
|
98
|
+
}, _$zod_v4_core0.$strip>;
|
|
99
|
+
response: _$zod.ZodObject<{
|
|
100
|
+
value: _$zod.ZodNullable<_$zod.ZodString>;
|
|
101
|
+
}, _$zod_v4_core0.$strip>;
|
|
102
|
+
};
|
|
103
|
+
}>, "dialog">;
|
|
104
|
+
//#endregion
|
|
105
|
+
export { DialogNamespace, DialogSubjects };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DialogSchemas as e}from"./schemas.mjs";import{createBusNamespace as t}from"@makaio/framework/core";const n=t(`dialog`,e),r=n.subjects;export{n as DialogNamespace,r as DialogSubjects};
|