@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,729 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region packages/contracts/src/shared/json-value.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* JSON-safe value type shared by storage and runtime context contracts.
|
|
6
|
+
*
|
|
7
|
+
* Restricting persisted values to JSON keeps the storage contracts aligned
|
|
8
|
+
* with the actual serialization boundary instead of accepting runtime-only
|
|
9
|
+
* values such as functions, Maps, or `undefined`.
|
|
10
|
+
*
|
|
11
|
+
* The object branch intentionally stays broad (`object`) instead of requiring
|
|
12
|
+
* an index signature. The runtime Zod schema remains the source of truth for
|
|
13
|
+
* JSON validation, while the broader TypeScript type keeps regular DTOs and
|
|
14
|
+
* typed fixtures assignable without forcing every interface in the codebase to
|
|
15
|
+
* declare `[key: string]: ...`.
|
|
16
|
+
*/
|
|
17
|
+
type JsonValue = string | number | boolean | null | JsonValue[] | object;
|
|
18
|
+
/**
|
|
19
|
+
* Recursive JSON-safe value schema.
|
|
20
|
+
*
|
|
21
|
+
* Uses `z.lazy()` so arrays and objects can reference the same schema without
|
|
22
|
+
* widening the contract to arbitrary `unknown`.
|
|
23
|
+
*/
|
|
24
|
+
declare const JsonValueSchema: z.ZodType<JsonValue>;
|
|
25
|
+
/**
|
|
26
|
+
* JSON object helper for map-like persisted configuration records.
|
|
27
|
+
*
|
|
28
|
+
* The runtime validation stays strict, while the public TypeScript surface
|
|
29
|
+
* remains `Record<string, unknown>` so opaque config bags do not force callers
|
|
30
|
+
* to thread `JsonValue` through every intermediate type.
|
|
31
|
+
*/
|
|
32
|
+
declare const JsonObjectSchema: z.ZodType<Record<string, unknown>>;
|
|
33
|
+
/**
|
|
34
|
+
* Contract-friendly JSON object schema for opaque config bags.
|
|
35
|
+
*
|
|
36
|
+
* Uses the strict runtime validator above but preserves the public inferred
|
|
37
|
+
* type as `Record<string, unknown>` for storage/API boundaries.
|
|
38
|
+
*/
|
|
39
|
+
declare const JsonObjectContractSchema: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region packages/contracts/src/shared/ui-config.d.ts
|
|
42
|
+
/**
|
|
43
|
+
* Builtin widget types provided by the UI components package
|
|
44
|
+
* - tags: Comma-separated input that converts to array
|
|
45
|
+
* - textarea-array: Multi-line textarea that converts to array
|
|
46
|
+
* - password: Password input field
|
|
47
|
+
* - slider: Numeric slider input
|
|
48
|
+
* - capability-picker: Grouped three-state capability selector with raw tool overrides
|
|
49
|
+
* - prompt-editor: Multi-line textarea with `{{prompt:name}}` template reference highlighting
|
|
50
|
+
*/
|
|
51
|
+
type BuiltinWidget = 'tags' | 'textarea-array' | 'password' | 'slider' | 'capability-picker' | 'prompt-editor';
|
|
52
|
+
/**
|
|
53
|
+
* Plugin widget registry - augment to add custom widgets.
|
|
54
|
+
* @example Augmenting from a plugin
|
|
55
|
+
* ```typescript
|
|
56
|
+
* // extensions/loop/src/types.ts
|
|
57
|
+
* declare module '@makaio/framework/contracts' {
|
|
58
|
+
* interface PluginWidgetRegistry {
|
|
59
|
+
* 'success-criteria': true;
|
|
60
|
+
* }
|
|
61
|
+
* }
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
interface PluginWidgetRegistry {}
|
|
65
|
+
/**
|
|
66
|
+
* All available widget types (builtin + plugin-registered)
|
|
67
|
+
*/
|
|
68
|
+
type FieldWidget = BuiltinWidget | keyof PluginWidgetRegistry;
|
|
69
|
+
/**
|
|
70
|
+
* Option for select-type fields.
|
|
71
|
+
*
|
|
72
|
+
* Each option represents a selectable choice in dropdown/select fields.
|
|
73
|
+
*/
|
|
74
|
+
declare const FieldOptionSchema: z.ZodObject<{
|
|
75
|
+
value: z.ZodString;
|
|
76
|
+
label: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
/**
|
|
79
|
+
* Option for select-type fields.
|
|
80
|
+
*
|
|
81
|
+
* Each option represents a selectable choice in dropdown/select fields.
|
|
82
|
+
*/
|
|
83
|
+
type FieldOption = z.infer<typeof FieldOptionSchema>;
|
|
84
|
+
/**
|
|
85
|
+
* Zod schema for field override (runtime validation - accepts any string for widget)
|
|
86
|
+
*/
|
|
87
|
+
declare const FieldOverrideSchema: z.ZodObject<{
|
|
88
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
89
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
90
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
91
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
92
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
|
+
value: z.ZodString;
|
|
97
|
+
label: z.ZodString;
|
|
98
|
+
}, z.core.$strip>>>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
/**
|
|
101
|
+
* Field override type - inferred from schema
|
|
102
|
+
* Note: widget is string at runtime, use FieldWidget type for type-safe code
|
|
103
|
+
*/
|
|
104
|
+
type FieldOverride = z.infer<typeof FieldOverrideSchema>;
|
|
105
|
+
/**
|
|
106
|
+
* UI configuration for entity forms
|
|
107
|
+
* Defines how the entity should be displayed and edited in the UI
|
|
108
|
+
*/
|
|
109
|
+
declare const EntityUIConfigSchema: z.ZodObject<{
|
|
110
|
+
editMode: z.ZodDefault<z.ZodEnum<{
|
|
111
|
+
inline: "inline";
|
|
112
|
+
slidePanel: "slidePanel";
|
|
113
|
+
fullPage: "fullPage";
|
|
114
|
+
}>>;
|
|
115
|
+
hiddenFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
116
|
+
readOnlyInEditMode: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
fieldOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
118
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
119
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
120
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
121
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
122
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
126
|
+
value: z.ZodString;
|
|
127
|
+
label: z.ZodString;
|
|
128
|
+
}, z.core.$strip>>>;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
+
id: z.ZodString;
|
|
132
|
+
title: z.ZodString;
|
|
133
|
+
description: z.ZodOptional<z.ZodString>;
|
|
134
|
+
fields: z.ZodArray<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>>>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
/**
|
|
138
|
+
* Entity UI configuration type - inferred from schema
|
|
139
|
+
* Note: widget values are string at runtime, use FieldWidget type for type-safe widget handling
|
|
140
|
+
*/
|
|
141
|
+
type EntityUIConfig = z.infer<typeof EntityUIConfigSchema>;
|
|
142
|
+
/**
|
|
143
|
+
* Field type options for form inputs.
|
|
144
|
+
*
|
|
145
|
+
* These types correspond to standard HTML input types and provide
|
|
146
|
+
* type-safe rendering of different form field variants. Slider-style numeric
|
|
147
|
+
* controls continue to use `type: 'number'` with `widget: 'slider'`.
|
|
148
|
+
*
|
|
149
|
+
* Use `'custom'` when field rendering is fully delegated to the widget
|
|
150
|
+
* specified in `widget` — SchemaForm will route the field to the registered
|
|
151
|
+
* widget and ignore the type for rendering purposes.
|
|
152
|
+
*/
|
|
153
|
+
type FieldType = 'text' | 'password' | 'number' | 'boolean' | 'select' | 'array' | 'custom';
|
|
154
|
+
/**
|
|
155
|
+
* Shared properties for all form field definitions.
|
|
156
|
+
*
|
|
157
|
+
* This interface provides the seam for extensible form generation.
|
|
158
|
+
* Fields can be generated from JSON Schema, hardcoded registries,
|
|
159
|
+
* or any other source that can produce this structure.
|
|
160
|
+
*/
|
|
161
|
+
interface BaseFieldDefinition {
|
|
162
|
+
/** Unique key for the field (used as form field name). */
|
|
163
|
+
key: string;
|
|
164
|
+
/** Display label for the field. */
|
|
165
|
+
label: string;
|
|
166
|
+
/** Delimiter for array-type fields (default varies by widget). */
|
|
167
|
+
delimiter?: string;
|
|
168
|
+
/** Minimum numeric value (for numeric fields, including the slider widget). */
|
|
169
|
+
min?: number;
|
|
170
|
+
/** Maximum numeric value (for numeric fields, including the slider widget). */
|
|
171
|
+
max?: number;
|
|
172
|
+
/** Step increment for numeric fields, including the slider widget. */
|
|
173
|
+
step?: number;
|
|
174
|
+
/** Placeholder text for text-based inputs. */
|
|
175
|
+
placeholder?: string;
|
|
176
|
+
/** Help text/description shown below the input, including mapped override help text. */
|
|
177
|
+
description?: string;
|
|
178
|
+
/** Whether the field is required. */
|
|
179
|
+
required?: boolean;
|
|
180
|
+
/** Options for select-type fields. */
|
|
181
|
+
options?: FieldOption[];
|
|
182
|
+
/** Default value for the field. */
|
|
183
|
+
defaultValue?: unknown;
|
|
184
|
+
/** Whether the field is disabled. */
|
|
185
|
+
disabled?: boolean;
|
|
186
|
+
}
|
|
187
|
+
/** Field definition for builtin field types. */
|
|
188
|
+
interface StandardFieldDefinition extends BaseFieldDefinition {
|
|
189
|
+
/** Type of input to render. */
|
|
190
|
+
type: Exclude<FieldType, 'custom'>;
|
|
191
|
+
/** Custom widget for specialized rendering (e.g., tags for arrays). */
|
|
192
|
+
widget?: FieldWidget;
|
|
193
|
+
}
|
|
194
|
+
/** Field definition for widgets that render through the custom field path. */
|
|
195
|
+
interface CustomFieldDefinition extends BaseFieldDefinition {
|
|
196
|
+
/** Custom fields always render through an explicit widget. */
|
|
197
|
+
type: 'custom';
|
|
198
|
+
/** Builtin or plugin-registered widget used to render the custom field. */
|
|
199
|
+
widget: FieldWidget;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Definition for a form field.
|
|
203
|
+
*
|
|
204
|
+
* Builtin field types may omit `widget` and fall back to their type renderer.
|
|
205
|
+
* Custom field types must provide a registered widget so render-time lookup
|
|
206
|
+
* never falls back to the literal `'custom'` type.
|
|
207
|
+
*/
|
|
208
|
+
type FieldDefinition = StandardFieldDefinition | CustomFieldDefinition;
|
|
209
|
+
/**
|
|
210
|
+
* Props for form field components.
|
|
211
|
+
*
|
|
212
|
+
* Defines the contract between the form rendering infrastructure and
|
|
213
|
+
* individual field components. Both framework extensions and host UI
|
|
214
|
+
* implement components that accept this interface.
|
|
215
|
+
* @param field - Field definition describing what to render
|
|
216
|
+
* @param value - Current value of the field
|
|
217
|
+
* @param onChange - Callback when the field value changes
|
|
218
|
+
* @param className - Optional additional CSS class
|
|
219
|
+
* @param idPrefix - Optional id prefix (defaults to 'field')
|
|
220
|
+
* @param error - Error state message (when present, field shows error styling)
|
|
221
|
+
*/
|
|
222
|
+
interface FormFieldProps {
|
|
223
|
+
/** Field definition describing what to render. */
|
|
224
|
+
field: FieldDefinition;
|
|
225
|
+
/** Current value of the field. */
|
|
226
|
+
value: unknown;
|
|
227
|
+
/** Callback when the field value changes. */
|
|
228
|
+
onChange: (value: unknown) => void;
|
|
229
|
+
/** Optional additional CSS class. */
|
|
230
|
+
className?: string;
|
|
231
|
+
/** Optional id prefix (defaults to 'field'). */
|
|
232
|
+
idPrefix?: string;
|
|
233
|
+
/** Error message (when present, field shows error styling). */
|
|
234
|
+
error?: string;
|
|
235
|
+
}
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region packages/contracts/src/shared/index.d.ts
|
|
238
|
+
/**
|
|
239
|
+
* Content source for binary data or external resources.
|
|
240
|
+
* Supports either base64-encoded data or URL-based content.
|
|
241
|
+
*
|
|
242
|
+
* Invariant: the `base64` branch requires a known MIME type. Staging utilities
|
|
243
|
+
* always populate `mimeType` before a source reaches the message bus, so callers
|
|
244
|
+
* that construct a `base64` source must always provide it.
|
|
245
|
+
* The `url` branch leaves `mimeType` optional because remote URLs may not have
|
|
246
|
+
* a known content type upfront.
|
|
247
|
+
*/
|
|
248
|
+
declare const ContentSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
249
|
+
type: z.ZodLiteral<"base64">;
|
|
250
|
+
data: z.ZodString;
|
|
251
|
+
mimeType: z.ZodString;
|
|
252
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
253
|
+
type: z.ZodLiteral<"url">;
|
|
254
|
+
url: z.ZodString;
|
|
255
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
256
|
+
}, z.core.$strip>], "type">;
|
|
257
|
+
/**
|
|
258
|
+
* Message block representing different types of content.
|
|
259
|
+
* Supports text, images, documents, file attachments, reasoning, tool calls, and tool outputs.
|
|
260
|
+
*/
|
|
261
|
+
declare const MessageBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
262
|
+
type: z.ZodLiteral<"text">;
|
|
263
|
+
content: z.ZodString;
|
|
264
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
+
type: z.ZodLiteral<"image">;
|
|
266
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
267
|
+
type: z.ZodLiteral<"base64">;
|
|
268
|
+
data: z.ZodString;
|
|
269
|
+
mimeType: z.ZodString;
|
|
270
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
271
|
+
type: z.ZodLiteral<"url">;
|
|
272
|
+
url: z.ZodString;
|
|
273
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
274
|
+
}, z.core.$strip>], "type">;
|
|
275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
276
|
+
type: z.ZodLiteral<"document">;
|
|
277
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
278
|
+
type: z.ZodLiteral<"base64">;
|
|
279
|
+
data: z.ZodString;
|
|
280
|
+
mimeType: z.ZodString;
|
|
281
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
282
|
+
type: z.ZodLiteral<"url">;
|
|
283
|
+
url: z.ZodString;
|
|
284
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strip>], "type">;
|
|
286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
type: z.ZodLiteral<"attachment">;
|
|
288
|
+
fileName: z.ZodString;
|
|
289
|
+
filePath: z.ZodString;
|
|
290
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
291
|
+
type: z.ZodLiteral<"base64">;
|
|
292
|
+
data: z.ZodString;
|
|
293
|
+
mimeType: z.ZodString;
|
|
294
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
295
|
+
type: z.ZodLiteral<"url">;
|
|
296
|
+
url: z.ZodString;
|
|
297
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>], "type">;
|
|
299
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
300
|
+
attachmentType: z.ZodEnum<{
|
|
301
|
+
file: "file";
|
|
302
|
+
directory: "directory";
|
|
303
|
+
}>;
|
|
304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
type: z.ZodLiteral<"reasoning">;
|
|
306
|
+
content: z.ZodString;
|
|
307
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
308
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
309
|
+
type: z.ZodLiteral<"tool_call">;
|
|
310
|
+
toolCallId: z.ZodString;
|
|
311
|
+
name: z.ZodString;
|
|
312
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
313
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
314
|
+
type: z.ZodLiteral<"tool_output">;
|
|
315
|
+
toolCallId: z.ZodString;
|
|
316
|
+
output: z.ZodString;
|
|
317
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
}, z.core.$strip>], "type">;
|
|
319
|
+
/**
|
|
320
|
+
* Structured message with role and content blocks.
|
|
321
|
+
* Blocks can be a single block or an array of blocks.
|
|
322
|
+
*/
|
|
323
|
+
declare const MessageSchema: z.ZodObject<{
|
|
324
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
325
|
+
user: "user";
|
|
326
|
+
assistant: "assistant";
|
|
327
|
+
system: "system";
|
|
328
|
+
}>>;
|
|
329
|
+
blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
330
|
+
type: z.ZodLiteral<"text">;
|
|
331
|
+
content: z.ZodString;
|
|
332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
+
type: z.ZodLiteral<"image">;
|
|
334
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
335
|
+
type: z.ZodLiteral<"base64">;
|
|
336
|
+
data: z.ZodString;
|
|
337
|
+
mimeType: z.ZodString;
|
|
338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
339
|
+
type: z.ZodLiteral<"url">;
|
|
340
|
+
url: z.ZodString;
|
|
341
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
342
|
+
}, z.core.$strip>], "type">;
|
|
343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
344
|
+
type: z.ZodLiteral<"document">;
|
|
345
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
346
|
+
type: z.ZodLiteral<"base64">;
|
|
347
|
+
data: z.ZodString;
|
|
348
|
+
mimeType: z.ZodString;
|
|
349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
+
type: z.ZodLiteral<"url">;
|
|
351
|
+
url: z.ZodString;
|
|
352
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
353
|
+
}, z.core.$strip>], "type">;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
type: z.ZodLiteral<"attachment">;
|
|
356
|
+
fileName: z.ZodString;
|
|
357
|
+
filePath: z.ZodString;
|
|
358
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
359
|
+
type: z.ZodLiteral<"base64">;
|
|
360
|
+
data: z.ZodString;
|
|
361
|
+
mimeType: z.ZodString;
|
|
362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
+
type: z.ZodLiteral<"url">;
|
|
364
|
+
url: z.ZodString;
|
|
365
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
366
|
+
}, z.core.$strip>], "type">;
|
|
367
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
368
|
+
attachmentType: z.ZodEnum<{
|
|
369
|
+
file: "file";
|
|
370
|
+
directory: "directory";
|
|
371
|
+
}>;
|
|
372
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
373
|
+
type: z.ZodLiteral<"reasoning">;
|
|
374
|
+
content: z.ZodString;
|
|
375
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
377
|
+
type: z.ZodLiteral<"tool_call">;
|
|
378
|
+
toolCallId: z.ZodString;
|
|
379
|
+
name: z.ZodString;
|
|
380
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
381
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
382
|
+
type: z.ZodLiteral<"tool_output">;
|
|
383
|
+
toolCallId: z.ZodString;
|
|
384
|
+
output: z.ZodString;
|
|
385
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
386
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
387
|
+
type: z.ZodLiteral<"text">;
|
|
388
|
+
content: z.ZodString;
|
|
389
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
390
|
+
type: z.ZodLiteral<"image">;
|
|
391
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
392
|
+
type: z.ZodLiteral<"base64">;
|
|
393
|
+
data: z.ZodString;
|
|
394
|
+
mimeType: z.ZodString;
|
|
395
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
396
|
+
type: z.ZodLiteral<"url">;
|
|
397
|
+
url: z.ZodString;
|
|
398
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
399
|
+
}, z.core.$strip>], "type">;
|
|
400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
+
type: z.ZodLiteral<"document">;
|
|
402
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
403
|
+
type: z.ZodLiteral<"base64">;
|
|
404
|
+
data: z.ZodString;
|
|
405
|
+
mimeType: z.ZodString;
|
|
406
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
407
|
+
type: z.ZodLiteral<"url">;
|
|
408
|
+
url: z.ZodString;
|
|
409
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
410
|
+
}, z.core.$strip>], "type">;
|
|
411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
412
|
+
type: z.ZodLiteral<"attachment">;
|
|
413
|
+
fileName: z.ZodString;
|
|
414
|
+
filePath: z.ZodString;
|
|
415
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
416
|
+
type: z.ZodLiteral<"base64">;
|
|
417
|
+
data: z.ZodString;
|
|
418
|
+
mimeType: z.ZodString;
|
|
419
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
420
|
+
type: z.ZodLiteral<"url">;
|
|
421
|
+
url: z.ZodString;
|
|
422
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
423
|
+
}, z.core.$strip>], "type">;
|
|
424
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
425
|
+
attachmentType: z.ZodEnum<{
|
|
426
|
+
file: "file";
|
|
427
|
+
directory: "directory";
|
|
428
|
+
}>;
|
|
429
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
430
|
+
type: z.ZodLiteral<"reasoning">;
|
|
431
|
+
content: z.ZodString;
|
|
432
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
+
type: z.ZodLiteral<"tool_call">;
|
|
435
|
+
toolCallId: z.ZodString;
|
|
436
|
+
name: z.ZodString;
|
|
437
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
438
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
439
|
+
type: z.ZodLiteral<"tool_output">;
|
|
440
|
+
toolCallId: z.ZodString;
|
|
441
|
+
output: z.ZodString;
|
|
442
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
+
}, z.core.$strip>], "type">>]>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
/**
|
|
446
|
+
* Message input type.
|
|
447
|
+
* Accepts either a simple string or a structured Message object.
|
|
448
|
+
*/
|
|
449
|
+
declare const MessageInputSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
450
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
451
|
+
user: "user";
|
|
452
|
+
assistant: "assistant";
|
|
453
|
+
system: "system";
|
|
454
|
+
}>>;
|
|
455
|
+
blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
456
|
+
type: z.ZodLiteral<"text">;
|
|
457
|
+
content: z.ZodString;
|
|
458
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
459
|
+
type: z.ZodLiteral<"image">;
|
|
460
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
461
|
+
type: z.ZodLiteral<"base64">;
|
|
462
|
+
data: z.ZodString;
|
|
463
|
+
mimeType: z.ZodString;
|
|
464
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
465
|
+
type: z.ZodLiteral<"url">;
|
|
466
|
+
url: z.ZodString;
|
|
467
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, z.core.$strip>], "type">;
|
|
469
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
470
|
+
type: z.ZodLiteral<"document">;
|
|
471
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
472
|
+
type: z.ZodLiteral<"base64">;
|
|
473
|
+
data: z.ZodString;
|
|
474
|
+
mimeType: z.ZodString;
|
|
475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
476
|
+
type: z.ZodLiteral<"url">;
|
|
477
|
+
url: z.ZodString;
|
|
478
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
479
|
+
}, z.core.$strip>], "type">;
|
|
480
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
481
|
+
type: z.ZodLiteral<"attachment">;
|
|
482
|
+
fileName: z.ZodString;
|
|
483
|
+
filePath: z.ZodString;
|
|
484
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
485
|
+
type: z.ZodLiteral<"base64">;
|
|
486
|
+
data: z.ZodString;
|
|
487
|
+
mimeType: z.ZodString;
|
|
488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
489
|
+
type: z.ZodLiteral<"url">;
|
|
490
|
+
url: z.ZodString;
|
|
491
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>], "type">;
|
|
493
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
494
|
+
attachmentType: z.ZodEnum<{
|
|
495
|
+
file: "file";
|
|
496
|
+
directory: "directory";
|
|
497
|
+
}>;
|
|
498
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
499
|
+
type: z.ZodLiteral<"reasoning">;
|
|
500
|
+
content: z.ZodString;
|
|
501
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
502
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
503
|
+
type: z.ZodLiteral<"tool_call">;
|
|
504
|
+
toolCallId: z.ZodString;
|
|
505
|
+
name: z.ZodString;
|
|
506
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
508
|
+
type: z.ZodLiteral<"tool_output">;
|
|
509
|
+
toolCallId: z.ZodString;
|
|
510
|
+
output: z.ZodString;
|
|
511
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
513
|
+
type: z.ZodLiteral<"text">;
|
|
514
|
+
content: z.ZodString;
|
|
515
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
516
|
+
type: z.ZodLiteral<"image">;
|
|
517
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
518
|
+
type: z.ZodLiteral<"base64">;
|
|
519
|
+
data: z.ZodString;
|
|
520
|
+
mimeType: z.ZodString;
|
|
521
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
522
|
+
type: z.ZodLiteral<"url">;
|
|
523
|
+
url: z.ZodString;
|
|
524
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
525
|
+
}, z.core.$strip>], "type">;
|
|
526
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
527
|
+
type: z.ZodLiteral<"document">;
|
|
528
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
529
|
+
type: z.ZodLiteral<"base64">;
|
|
530
|
+
data: z.ZodString;
|
|
531
|
+
mimeType: z.ZodString;
|
|
532
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
533
|
+
type: z.ZodLiteral<"url">;
|
|
534
|
+
url: z.ZodString;
|
|
535
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
536
|
+
}, z.core.$strip>], "type">;
|
|
537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
538
|
+
type: z.ZodLiteral<"attachment">;
|
|
539
|
+
fileName: z.ZodString;
|
|
540
|
+
filePath: z.ZodString;
|
|
541
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
542
|
+
type: z.ZodLiteral<"base64">;
|
|
543
|
+
data: z.ZodString;
|
|
544
|
+
mimeType: z.ZodString;
|
|
545
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
546
|
+
type: z.ZodLiteral<"url">;
|
|
547
|
+
url: z.ZodString;
|
|
548
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
549
|
+
}, z.core.$strip>], "type">;
|
|
550
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
551
|
+
attachmentType: z.ZodEnum<{
|
|
552
|
+
file: "file";
|
|
553
|
+
directory: "directory";
|
|
554
|
+
}>;
|
|
555
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
556
|
+
type: z.ZodLiteral<"reasoning">;
|
|
557
|
+
content: z.ZodString;
|
|
558
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
559
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
560
|
+
type: z.ZodLiteral<"tool_call">;
|
|
561
|
+
toolCallId: z.ZodString;
|
|
562
|
+
name: z.ZodString;
|
|
563
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
564
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
565
|
+
type: z.ZodLiteral<"tool_output">;
|
|
566
|
+
toolCallId: z.ZodString;
|
|
567
|
+
output: z.ZodString;
|
|
568
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
569
|
+
}, z.core.$strip>], "type">>]>;
|
|
570
|
+
}, z.core.$strip>]>;
|
|
571
|
+
declare const SendMessageResultInnerResultSchema: z.ZodObject<{
|
|
572
|
+
message: z.ZodOptional<z.ZodString>;
|
|
573
|
+
}, z.core.$strip>;
|
|
574
|
+
/**
|
|
575
|
+
* Possible outcomes for a user message lifecycle.
|
|
576
|
+
*/
|
|
577
|
+
declare const MessageOutcomeSchema: z.ZodEnum<{
|
|
578
|
+
error: "error";
|
|
579
|
+
completed: "completed";
|
|
580
|
+
superseded: "superseded";
|
|
581
|
+
merged: "merged";
|
|
582
|
+
cancelled: "cancelled";
|
|
583
|
+
rejected: "rejected";
|
|
584
|
+
}>;
|
|
585
|
+
declare const SendMessageResultSchema: z.ZodObject<{
|
|
586
|
+
messageId: z.ZodString;
|
|
587
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
588
|
+
message: z.ZodOptional<z.ZodString>;
|
|
589
|
+
}, z.core.$strip>>;
|
|
590
|
+
error: z.ZodOptional<z.ZodString>;
|
|
591
|
+
outcome: z.ZodEnum<{
|
|
592
|
+
error: "error";
|
|
593
|
+
completed: "completed";
|
|
594
|
+
superseded: "superseded";
|
|
595
|
+
merged: "merged";
|
|
596
|
+
cancelled: "cancelled";
|
|
597
|
+
rejected: "rejected";
|
|
598
|
+
}>;
|
|
599
|
+
}, z.core.$strip>;
|
|
600
|
+
declare const MessageDeliveryModeSchema: z.ZodEnum<{
|
|
601
|
+
replace: "replace";
|
|
602
|
+
enqueue: "enqueue";
|
|
603
|
+
immediate: "immediate";
|
|
604
|
+
}>;
|
|
605
|
+
/**
|
|
606
|
+
* System prompt configuration for agent sessions.
|
|
607
|
+
*
|
|
608
|
+
* Supports two modes:
|
|
609
|
+
* - `string`: Replace/set the entire system prompt
|
|
610
|
+
* - `{ mode: 'append', content: string }`: Append to adapter's default system prompt
|
|
611
|
+
*
|
|
612
|
+
* The append mode is useful for adding context-specific instructions (e.g., messageHistory
|
|
613
|
+
* interpretation) without overriding the adapter's base configuration.
|
|
614
|
+
* @example
|
|
615
|
+
* ```typescript
|
|
616
|
+
* // Replace entirely
|
|
617
|
+
* systemPrompt: 'You are a helpful assistant.'
|
|
618
|
+
*
|
|
619
|
+
* // Append to existing
|
|
620
|
+
* systemPrompt: {
|
|
621
|
+
* mode: 'append',
|
|
622
|
+
* content: 'You are naturally continuing a conversation with user.',
|
|
623
|
+
* }
|
|
624
|
+
* ```
|
|
625
|
+
*/
|
|
626
|
+
declare const SystemPromptSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
627
|
+
mode: z.ZodLiteral<"append">;
|
|
628
|
+
content: z.ZodString;
|
|
629
|
+
}, z.core.$strip>]>;
|
|
630
|
+
/**
|
|
631
|
+
* Schema for normalized message input.
|
|
632
|
+
* Used for user messages with full structure including role and content blocks.
|
|
633
|
+
*/
|
|
634
|
+
declare const NormalizedMessageInputSchema: z.ZodObject<{
|
|
635
|
+
role: z.ZodEnum<{
|
|
636
|
+
user: "user";
|
|
637
|
+
assistant: "assistant";
|
|
638
|
+
system: "system";
|
|
639
|
+
}>;
|
|
640
|
+
blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
641
|
+
type: z.ZodLiteral<"text">;
|
|
642
|
+
content: z.ZodString;
|
|
643
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
644
|
+
type: z.ZodLiteral<"image">;
|
|
645
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
646
|
+
type: z.ZodLiteral<"base64">;
|
|
647
|
+
data: z.ZodString;
|
|
648
|
+
mimeType: z.ZodString;
|
|
649
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
650
|
+
type: z.ZodLiteral<"url">;
|
|
651
|
+
url: z.ZodString;
|
|
652
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
653
|
+
}, z.core.$strip>], "type">;
|
|
654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
+
type: z.ZodLiteral<"document">;
|
|
656
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
657
|
+
type: z.ZodLiteral<"base64">;
|
|
658
|
+
data: z.ZodString;
|
|
659
|
+
mimeType: z.ZodString;
|
|
660
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
661
|
+
type: z.ZodLiteral<"url">;
|
|
662
|
+
url: z.ZodString;
|
|
663
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
664
|
+
}, z.core.$strip>], "type">;
|
|
665
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
666
|
+
type: z.ZodLiteral<"attachment">;
|
|
667
|
+
fileName: z.ZodString;
|
|
668
|
+
filePath: z.ZodString;
|
|
669
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
670
|
+
type: z.ZodLiteral<"base64">;
|
|
671
|
+
data: z.ZodString;
|
|
672
|
+
mimeType: z.ZodString;
|
|
673
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
674
|
+
type: z.ZodLiteral<"url">;
|
|
675
|
+
url: z.ZodString;
|
|
676
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
677
|
+
}, z.core.$strip>], "type">;
|
|
678
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
679
|
+
attachmentType: z.ZodEnum<{
|
|
680
|
+
file: "file";
|
|
681
|
+
directory: "directory";
|
|
682
|
+
}>;
|
|
683
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
684
|
+
type: z.ZodLiteral<"reasoning">;
|
|
685
|
+
content: z.ZodString;
|
|
686
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
687
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
688
|
+
type: z.ZodLiteral<"tool_call">;
|
|
689
|
+
toolCallId: z.ZodString;
|
|
690
|
+
name: z.ZodString;
|
|
691
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
693
|
+
type: z.ZodLiteral<"tool_output">;
|
|
694
|
+
toolCallId: z.ZodString;
|
|
695
|
+
output: z.ZodString;
|
|
696
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
697
|
+
}, z.core.$strip>], "type">>;
|
|
698
|
+
message: z.ZodOptional<z.ZodString>;
|
|
699
|
+
}, z.core.$strip>;
|
|
700
|
+
type NormalizedMessageInput = z.infer<typeof NormalizedMessageInputSchema>;
|
|
701
|
+
/**
|
|
702
|
+
* Inferred TypeScript types from schemas.
|
|
703
|
+
*/
|
|
704
|
+
type ContentSource = z.infer<typeof ContentSourceSchema>;
|
|
705
|
+
type MessageBlock = z.infer<typeof MessageBlockSchema>;
|
|
706
|
+
type Message = z.infer<typeof MessageSchema>;
|
|
707
|
+
type MessageInput = z.infer<typeof MessageInputSchema>;
|
|
708
|
+
type SendMessageResult = z.infer<typeof SendMessageResultSchema>;
|
|
709
|
+
type SendMessageResultInnerResult = z.infer<typeof SendMessageResultInnerResultSchema>;
|
|
710
|
+
type MessageOutcome = z.infer<typeof MessageOutcomeSchema>;
|
|
711
|
+
type MessageDeliveryMode = z.infer<typeof MessageDeliveryModeSchema>;
|
|
712
|
+
type SystemPrompt = z.infer<typeof SystemPromptSchema>;
|
|
713
|
+
/**
|
|
714
|
+
* Runtime error categories for adapter failures.
|
|
715
|
+
* Used to classify errors during agent execution for fallback/retry logic.
|
|
716
|
+
*
|
|
717
|
+
* Note: The 'all' category exists in VirtualModelErrorCategorySchema but is excluded here
|
|
718
|
+
* as it's only used for fallback configuration, not runtime error classification.
|
|
719
|
+
*/
|
|
720
|
+
declare const ERROR_CATEGORIES: readonly ["rate_limit", "auth", "model_unavailable", "quota_exceeded"];
|
|
721
|
+
declare const ErrorCategorySchema: z.ZodEnum<{
|
|
722
|
+
rate_limit: "rate_limit";
|
|
723
|
+
auth: "auth";
|
|
724
|
+
model_unavailable: "model_unavailable";
|
|
725
|
+
quota_exceeded: "quota_exceeded";
|
|
726
|
+
}>;
|
|
727
|
+
type ErrorCategory = z.infer<typeof ErrorCategorySchema>;
|
|
728
|
+
//#endregion
|
|
729
|
+
export { FieldOption as A, JsonObjectSchema as B, SystemPromptSchema as C, EntityUIConfig as D, CustomFieldDefinition as E, FieldWidget as F, JsonValueSchema as H, FormFieldProps as I, PluginWidgetRegistry as L, FieldOverride as M, FieldOverrideSchema as N, EntityUIConfigSchema as O, FieldType as P, StandardFieldDefinition as R, SystemPrompt as S, BuiltinWidget as T, JsonValue as V, NormalizedMessageInputSchema as _, ErrorCategorySchema as a, SendMessageResultInnerResultSchema as b, MessageBlockSchema as c, MessageInput as d, MessageInputSchema as f, NormalizedMessageInput as g, MessageSchema as h, ErrorCategory as i, FieldOptionSchema as j, FieldDefinition as k, MessageDeliveryMode as l, MessageOutcomeSchema as m, ContentSourceSchema as n, Message as o, MessageOutcome as p, ERROR_CATEGORIES as r, MessageBlock as s, ContentSource as t, MessageDeliveryModeSchema as u, SendMessageResult as v, BaseFieldDefinition as w, SendMessageResultSchema as x, SendMessageResultInnerResult as y, JsonObjectContractSchema as z };
|