@makaio/framework 1.0.0-dev-1781022866275 → 1.0.0-dev-1781023871421
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +5 -0
- package/dist/account-identity-DT5NOtFi.mjs +1 -0
- package/dist/adapter-C1eI-fGV.mjs +1 -0
- package/dist/adapters/acp-client/index.d.mts +6208 -0
- package/dist/adapters/acp-client/index.mjs +3 -0
- package/dist/adapters/config/index.d.mts +429 -0
- package/dist/adapters/config/index.mjs +1 -0
- package/dist/adapters/index.d.mts +4202 -0
- package/dist/adapters/index.mjs +18 -0
- package/dist/adapters/node.d.mts +263 -0
- package/dist/adapters/node.mjs +4 -0
- package/dist/adapters/stream-session/index.d.mts +1414 -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/artifact-B3npq1cy.mjs +1 -0
- package/dist/base-orchestrator-wyumsn3b.d.mts +772 -0
- package/dist/bus/index.d.mts +3994 -0
- package/dist/bus/index.mjs +1 -0
- package/dist/bus-Caz3Jpbc.mjs +1 -0
- package/dist/bus-Hb-LGzgb.mjs +2 -0
- package/dist/capability-service-CJbmhfv9.mjs +1 -0
- package/dist/chunk-DTipWd-i.mjs +1 -0
- package/dist/chunk-cpUYaJdV.mjs +1 -0
- package/dist/cleanEnvForAdapter-KkYzQa1f.mjs +1 -0
- package/dist/client-bx74gm4R.mjs +1 -0
- package/dist/clients/index.d.mts +2639 -0
- package/dist/clients/index.mjs +2 -0
- package/dist/clients-namespace-GmSJpBUV.d.mts +332 -0
- package/dist/config-namespace-CPY9YsR8.d.mts +638 -0
- package/dist/config-namespace-ncYg2ct_.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/artifact/index.d.mts +2 -0
- package/dist/contracts/artifact/index.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 +4 -0
- package/dist/contracts/extension/index.mjs +1 -0
- package/dist/contracts/facet/index.d.mts +2 -0
- package/dist/contracts/facet/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 +23046 -0
- package/dist/contracts/index.mjs +1 -0
- package/dist/contracts/materialization/index.d.mts +4 -0
- package/dist/contracts/materialization/index.mjs +1 -0
- package/dist/contracts/model-registry/index.d.mts +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/telemetry/index.d.mts +2 -0
- package/dist/contracts/telemetry/index.mjs +1 -0
- package/dist/contracts/timeout/index.d.mts +2 -0
- package/dist/contracts/timeout/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 +1263 -0
- package/dist/core/index.mjs +1 -0
- package/dist/credential-ref-YWQQENEo.mjs +1 -0
- package/dist/cursor-storage-CtVJ3JzB.mjs +1 -0
- package/dist/definition-BLCdXGzh.d.mts +383 -0
- package/dist/definition-CrgHIpTK.d.mts +60 -0
- package/dist/definition-DZMXOnjX.mjs +1 -0
- package/dist/definition-pkJ6szUl.d.mts +158 -0
- package/dist/drizzle-Eq8W1EbD.mjs +1 -0
- package/dist/event-Ca2yUf5i.mjs +1 -0
- package/dist/execution-target-CRPTfZlc.mjs +1 -0
- package/dist/extension-C-4BHMRI.mjs +1 -0
- package/dist/extension-CpIUgBKI.mjs +1 -0
- package/dist/extension-namespace-cMh_mMiL.mjs +1 -0
- package/dist/facet-BuwhrThl.mjs +1 -0
- package/dist/filesystem-service-B8rhBRgB.mjs +1 -0
- package/dist/filesystem-service-p_iJVHd4.d.mts +66 -0
- package/dist/git/index.d.mts +210 -0
- package/dist/git/index.mjs +18 -0
- package/dist/globby-rtWVaFHv.mjs +41 -0
- package/dist/handlers-CkTsQLra.mjs +41 -0
- package/dist/harness-BRCMcvQN.mjs +1 -0
- package/dist/hooks/index.d.mts +423 -0
- package/dist/hooks/index.mjs +1 -0
- package/dist/host-Br9VuOyr.mjs +1 -0
- package/dist/identity-Cz2IeEtm.mjs +1 -0
- package/dist/index-472sOmsW.d.mts +218 -0
- package/dist/index-8SZkg7s6.d.mts +353 -0
- package/dist/index-B3PK4FIn.d.mts +5116 -0
- package/dist/index-B80L4YqA.d.mts +180 -0
- package/dist/index-BFg9BUpx.d.mts +355 -0
- package/dist/index-BGfWS6GE.d.mts +483 -0
- package/dist/index-BVgfS-AJ.d.mts +109 -0
- package/dist/index-B_zQC98V.d.mts +995 -0
- package/dist/index-Bh_Ne7LF.d.mts +1008 -0
- package/dist/index-Bvb2mMH6.d.mts +1730 -0
- package/dist/index-CCGVh9BF2.d.mts +749 -0
- package/dist/index-CGmcS0Ma.d.mts +412 -0
- package/dist/index-CHQ1SqT0.d.mts +117 -0
- package/dist/index-CLpjm52M.d.mts +183 -0
- package/dist/index-Caig6TeF.d.mts +6746 -0
- package/dist/index-CelJCBjk.d.mts +2992 -0
- package/dist/index-ChunCFu4.d.mts +11 -0
- package/dist/index-Cm0dUkWL.d.mts +4651 -0
- package/dist/index-CokQYGVP.d.mts +184 -0
- package/dist/index-Cs0kZXIz2.d.mts +37 -0
- package/dist/index-D5d5HeWI2.d.mts +259 -0
- package/dist/index-D90OmGmV.d.mts +389 -0
- package/dist/index-D9MwJ2Q8.d.mts +67 -0
- package/dist/index-DANINzMu.d.mts +40 -0
- package/dist/index-DBw-89vC2.d.mts +3640 -0
- package/dist/index-DGBu6bHi2.d.mts +438 -0
- package/dist/index-DKC62dY5.d.mts +146 -0
- package/dist/index-DKia0MX1.d.mts +43 -0
- package/dist/index-DMKnON5s.d.mts +28 -0
- package/dist/index-DUaw0Dw8.d.mts +14747 -0
- package/dist/index-De3kPhlN.d.mts +72 -0
- package/dist/index-L4GjJDKb.d.mts +822 -0
- package/dist/index-U-A8eyGT.d.mts +1490 -0
- package/dist/index-eemAKwsB.d.mts +362 -0
- package/dist/index-mNec7V-9.d.mts +1075 -0
- package/dist/index-soFznFCy2.d.mts +89 -0
- package/dist/index-vtXJuwrz.d.mts +40 -0
- package/dist/index-x_lVDp_J.d.mts +134 -0
- package/dist/json-value-CmhSGMLv.mjs +1 -0
- package/dist/kernel/cli/index.d.mts +143 -0
- package/dist/kernel/cli/index.mjs +1 -0
- package/dist/kernel/cli/schemas.d.mts +64 -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/materialization-CuUBu4XI.mjs +1 -0
- package/dist/model-registry-CfXytvzx.mjs +1 -0
- package/dist/model-registry-Scn_MC2d.mjs +1 -0
- package/dist/namespace-5QQqbF-B.d.mts +3133 -0
- package/dist/namespace-BM7Djng9.d.mts +189 -0
- package/dist/namespace-BoD94mrN.mjs +1 -0
- package/dist/namespace-BwzZJqTV.mjs +1 -0
- package/dist/namespace-CFLAmQfh.mjs +1 -0
- package/dist/namespace-CTm3nEvh.d.mts +51 -0
- package/dist/namespace-CaaNnKcR.d.mts +921 -0
- package/dist/namespace-CaoZ3S78.d.mts +43 -0
- package/dist/namespace-CxhsoFUP.d.mts +607 -0
- package/dist/namespace-DD8Oiqo7.d.mts +580 -0
- package/dist/namespace-DLovh2Ws.d.mts +1313 -0
- package/dist/namespace-DgqkaOVu.d.mts +768 -0
- package/dist/namespace-DkRgbZYn.mjs +1 -0
- package/dist/namespace-Dr8K0MCp.d.mts +2047 -0
- package/dist/namespace-DuXK5AYN.mjs +1 -0
- package/dist/namespace-EQniz-Aw.d.mts +142 -0
- package/dist/namespace-IV1QK__V.d.mts +159 -0
- package/dist/namespace-LViZ-EQk.mjs +1 -0
- package/dist/namespace-TyiTsLFv.d.mts +3020 -0
- package/dist/namespace-Yna5-Pws.mjs +1 -0
- package/dist/namespace-xcmbQlxh.mjs +1 -0
- package/dist/native-session-supervisor-B1TnaPUF.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 +1945 -0
- package/dist/node/transports/index.mjs +2 -0
- package/dist/orchestrator-shared-CIDiFJMD.mjs +1 -0
- package/dist/orchestrator-shared-Dfa7FMyw.d.mts +249 -0
- package/dist/package-DKVlsMP3.mjs +1 -0
- package/dist/platform-DZ7z-wXD.mjs +1 -0
- package/dist/profile-6ynCD5k3.mjs +1 -0
- package/dist/provider-context-CK6B4X_8.mjs +1 -0
- package/dist/providers/index.d.mts +135 -0
- package/dist/providers/index.mjs +1 -0
- package/dist/providers-namespace-DSEpli4A.d.mts +583 -0
- package/dist/providers-u8i15co9.mjs +1 -0
- package/dist/schema-CoyE6mPt.mjs +1 -0
- package/dist/schema-M5YTvSAG.d.mts +949 -0
- package/dist/schema-e0wU_lcV.mjs +1 -0
- package/dist/schema-introspection-Dn1jWQs1.mjs +1 -0
- package/dist/schemas-Bd0OjRQf.d.mts +46 -0
- package/dist/schemas-C46QfKzv.d.mts +459 -0
- package/dist/schemas-CDBSjg7o.d.mts +237 -0
- package/dist/schemas-CR1Rripy.mjs +1 -0
- package/dist/schemas-CVvwIfG4.mjs +1 -0
- package/dist/schemas-CaLhkkLn.mjs +1 -0
- package/dist/schemas-ClOOT1W6.d.mts +174 -0
- package/dist/schemas-DATniTHb.d.mts +182 -0
- package/dist/schemas-DE-GNmSD.mjs +1 -0
- package/dist/schemas-DVF1A4DF.d.mts +160 -0
- package/dist/schemas-DaRSfYLf.d.mts +73 -0
- package/dist/schemas-DiYVzG6e.d.mts +315 -0
- package/dist/schemas-hSrzflwZ.mjs +1 -0
- package/dist/schemas-j7ivZ2HI.d.mts +944 -0
- package/dist/schemas-jFe1AuI-.mjs +1 -0
- package/dist/schemas-wg_6PAdV.d.mts +153 -0
- package/dist/scoped-bus-04pwo1uM.mjs +1 -0
- package/dist/server-lifecycle-FXTPW39-.mjs +1 -0
- package/dist/server-lifecycle-YoSGFGnU.d.mts +160 -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/index.d.mts +3 -0
- package/dist/services/filesystem/index.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/git/namespace.d.mts +1163 -0
- package/dist/services/git/namespace.mjs +1 -0
- package/dist/services/git/schemas.d.mts +932 -0
- package/dist/services/git/schemas.mjs +1 -0
- package/dist/services/harness/index.d.mts +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 +6185 -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 +274 -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 +65 -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 +663 -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/subagent/index.d.mts +2 -0
- package/dist/services/subagent/index.mjs +1 -0
- package/dist/services/subagent-template/index.d.mts +3 -0
- package/dist/services/subagent-template/index.mjs +1 -0
- package/dist/services/subagent-template/namespace.d.mts +2 -0
- package/dist/services/subagent-template/namespace.mjs +1 -0
- package/dist/services/subagent-template/schemas.d.mts +2 -0
- package/dist/services/subagent-template/schemas.mjs +1 -0
- package/dist/services/tool-approval/index.d.mts +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/session-BoldSdNZ2.mjs +134 -0
- package/dist/session-DuVOYctZ.mjs +1 -0
- package/dist/session-lineage-CRsc9g1x.d.mts +65 -0
- package/dist/shared-DpOEfD8F.mjs +1 -0
- package/dist/shared-schemas-CPShiLNp.mjs +1 -0
- package/dist/skill-CQO4mDqK.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 +137 -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-BXkoh5Sy.d.mts +221 -0
- package/dist/storage-namespace-DWsYLAXa.mjs +1 -0
- package/dist/storage-namespace-definition-Bkx5rSto.d.mts +17 -0
- package/dist/storage-namespace-definition-CqSdsuCC.mjs +1 -0
- package/dist/style.css +3782 -0
- package/dist/telemetry-CvdLBWuk.mjs +1 -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/timeout-XsYIOKrc.mjs +1 -0
- package/dist/tool-approval-service-BvZWhYZp.mjs +1 -0
- package/dist/tools/index.d.mts +835 -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-D-luYcDw.mjs +1431 -0
- package/dist/tray-menu-service-DuXq5k22.mjs +1 -0
- package/dist/types-BCMUtBj1.d.mts +1106 -0
- package/dist/types-C2Ob9zz_.d.mts +128 -0
- package/dist/types-CCdqjeuH.d.mts +262 -0
- package/dist/types-DZHvOc_Q.d.mts +305 -0
- package/dist/types-Dy3YTcTF.d.mts +6777 -0
- package/dist/types-MfJZ67e9.d.mts +315 -0
- package/dist/types-dyP-bXXE.d.mts +31 -0
- package/dist/ui-components/index.d.mts +2342 -0
- package/dist/ui-components/index.mjs +8 -0
- package/dist/ui-config-9bDRwFZr.mjs +1 -0
- package/dist/ui-hooks/index.d.mts +1915 -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 +262 -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/project-manifest.d.mts +130 -0
- package/dist/utils/project-manifest.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/scope-paths.d.mts +33 -0
- package/dist/utils/scope-paths.mjs +1 -0
- package/dist/utils/workspace-packages.d.mts +59 -0
- package/dist/utils/workspace-packages.mjs +1 -0
- package/dist/utils/workspace-root.d.mts +24 -0
- package/dist/utils/workspace-root.mjs +2 -0
- package/dist/variant-CT6XBP6T.mjs +1 -0
- package/dist/version-BeT3ASEe.mjs +1 -0
- package/dist/visibility-Cb62p9bv.mjs +1 -0
- package/dist/window-registry-CBcrGTv4.d.mts +130 -0
- package/dist/window-registry-DW-dKRjQ.mjs +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,822 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
3
|
+
|
|
4
|
+
//#region core/contracts/src/shared/json-value.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* JSON-safe value type shared by storage and runtime context contracts.
|
|
7
|
+
*
|
|
8
|
+
* Restricting persisted values to JSON keeps the storage contracts aligned
|
|
9
|
+
* with the actual serialization boundary instead of accepting runtime-only
|
|
10
|
+
* values such as functions, Maps, or `undefined`.
|
|
11
|
+
*
|
|
12
|
+
* The object branch intentionally stays broad (`object`) instead of requiring
|
|
13
|
+
* an index signature. The runtime Zod schema remains the source of truth for
|
|
14
|
+
* JSON validation, while the broader TypeScript type keeps regular DTOs and
|
|
15
|
+
* typed fixtures assignable without forcing every interface in the codebase to
|
|
16
|
+
* declare `[key: string]: ...`.
|
|
17
|
+
*/
|
|
18
|
+
type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
|
|
19
|
+
/**
|
|
20
|
+
* Recursive JSON-safe value schema.
|
|
21
|
+
*
|
|
22
|
+
* Uses `z.lazy()` so arrays and objects can reference the same schema without
|
|
23
|
+
* widening the contract to arbitrary `unknown`.
|
|
24
|
+
*/
|
|
25
|
+
declare const JsonValueSchema$1: z.ZodType<JsonValue$1>;
|
|
26
|
+
/**
|
|
27
|
+
* JSON object helper for map-like persisted configuration records.
|
|
28
|
+
*
|
|
29
|
+
* The runtime validation stays strict, while the public TypeScript surface
|
|
30
|
+
* remains `Record<string, unknown>` so opaque config bags do not force callers
|
|
31
|
+
* to thread `JsonValue` through every intermediate type.
|
|
32
|
+
*/
|
|
33
|
+
declare const JsonObjectSchema: z.ZodType<Record<string, unknown>>;
|
|
34
|
+
/**
|
|
35
|
+
* Contract-friendly JSON object schema for opaque config bags.
|
|
36
|
+
*
|
|
37
|
+
* Uses the strict runtime validator above and only narrows the public Zod
|
|
38
|
+
* type. Keeping the underlying schema as `z.record()` is important for
|
|
39
|
+
* protocol exports: `z.custom()` validates correctly at runtime but cannot be
|
|
40
|
+
* represented as JSON Schema.
|
|
41
|
+
*/
|
|
42
|
+
declare const JsonObjectContractSchema: z.ZodType<Record<string, unknown>, Record<string, unknown>>;
|
|
43
|
+
/**
|
|
44
|
+
* Serializable JSON Schema record used for `inputSchema`, `outputSchema`, and
|
|
45
|
+
* `configSchema` fields on persisted workflow definitions and node primitives.
|
|
46
|
+
*
|
|
47
|
+
* A JSON Schema document is itself a JSON object, so this is a
|
|
48
|
+
* `Record<string, JsonValue>` — identical at runtime to {@link JsonObjectContractSchema}
|
|
49
|
+
* but carries a semantically narrower name to distinguish "a JSON Schema document"
|
|
50
|
+
* from "an arbitrary JSON payload".
|
|
51
|
+
*
|
|
52
|
+
* The underlying `z.record(z.string(), JsonValueSchema)` validator rejects
|
|
53
|
+
* functions, `undefined`, and other non-serializable values, keeping persisted
|
|
54
|
+
* workflow definitions purely JSON-safe.
|
|
55
|
+
*/
|
|
56
|
+
declare const JsonSchemaRecordSchema: z.ZodType<Record<string, JsonValue$1>, Record<string, JsonValue$1>>;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region core/contracts/src/shared/response-schema.d.ts
|
|
59
|
+
/**
|
|
60
|
+
* Validates that a provider schema name is safe for use with all supported providers.
|
|
61
|
+
*
|
|
62
|
+
* OpenAI requires names that match `[a-zA-Z0-9_-]` and are at most 64 characters.
|
|
63
|
+
* Adapters must derive a conforming name when none is supplied.
|
|
64
|
+
*/
|
|
65
|
+
declare const ResponseSchemaNameSchema: z.ZodString;
|
|
66
|
+
/**
|
|
67
|
+
* Descriptor for a JSON Schema document that constrains an agent's structured response.
|
|
68
|
+
*
|
|
69
|
+
* Passed through the session bus so adapters can forward native structured-output
|
|
70
|
+
* constraints to their underlying provider (e.g. OpenAI `response_format`, Anthropic
|
|
71
|
+
* tool-schema trick). Fields are intentionally narrow to stay JSON-safe and
|
|
72
|
+
* round-trippable over the wire.
|
|
73
|
+
*/
|
|
74
|
+
declare const ResponseSchemaDescriptorSchema: z.ZodObject<{
|
|
75
|
+
schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
76
|
+
name: z.ZodOptional<z.ZodString>;
|
|
77
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
/**
|
|
80
|
+
* Normalized representation of a single structured-output validation error.
|
|
81
|
+
*
|
|
82
|
+
* Mirrors the AJV error shape so validation results from different validators
|
|
83
|
+
* can be mapped to a common format without pulling AJV into every consumer.
|
|
84
|
+
*/
|
|
85
|
+
declare const StructuredOutputValidationErrorSchema: z.ZodObject<{
|
|
86
|
+
message: z.ZodString;
|
|
87
|
+
instancePath: z.ZodString;
|
|
88
|
+
schemaPath: z.ZodString;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
/**
|
|
91
|
+
* Lifecycle status of a structured-output validation pass.
|
|
92
|
+
*
|
|
93
|
+
* - `passed` – The response conforms to the declared schema.
|
|
94
|
+
* - `failed` – Validation errors were found; `errors` will be populated.
|
|
95
|
+
* - `enforced` – A structured-output enforcement handler produced conformant output.
|
|
96
|
+
*/
|
|
97
|
+
declare const StructuredOutputValidationStatusSchema: z.ZodEnum<{
|
|
98
|
+
failed: "failed";
|
|
99
|
+
passed: "passed";
|
|
100
|
+
enforced: "enforced";
|
|
101
|
+
}>;
|
|
102
|
+
/**
|
|
103
|
+
* Full validation result emitted after a turn completes when a
|
|
104
|
+
* {@link ResponseSchemaDescriptor} was active.
|
|
105
|
+
*
|
|
106
|
+
* When `status` is `failed`, `errors` contains at least one entry describing
|
|
107
|
+
* what the agent's response violated. The discriminated union enforces that
|
|
108
|
+
* `errors` is absent for `passed`/`enforced` and required (non-empty) for
|
|
109
|
+
* `failed`.
|
|
110
|
+
*/
|
|
111
|
+
declare const StructuredOutputValidationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
112
|
+
status: z.ZodLiteral<"passed">;
|
|
113
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
114
|
+
status: z.ZodLiteral<"enforced">;
|
|
115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
+
status: z.ZodLiteral<"failed">;
|
|
117
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
118
|
+
message: z.ZodString;
|
|
119
|
+
instancePath: z.ZodString;
|
|
120
|
+
schemaPath: z.ZodString;
|
|
121
|
+
}, z.core.$strict>>;
|
|
122
|
+
}, z.core.$strict>], "status">;
|
|
123
|
+
/** @see {@link ResponseSchemaNameSchema} */
|
|
124
|
+
type ResponseSchemaName = z.infer<typeof ResponseSchemaNameSchema>;
|
|
125
|
+
/** @see {@link ResponseSchemaDescriptorSchema} */
|
|
126
|
+
type ResponseSchemaDescriptor$1 = z.infer<typeof ResponseSchemaDescriptorSchema>;
|
|
127
|
+
/** @see {@link StructuredOutputValidationSchema} */
|
|
128
|
+
type StructuredOutputValidation$1 = z.infer<typeof StructuredOutputValidationSchema>;
|
|
129
|
+
/** @see {@link StructuredOutputValidationErrorSchema} */
|
|
130
|
+
type StructuredOutputValidationError = z.infer<typeof StructuredOutputValidationErrorSchema>;
|
|
131
|
+
/** @see {@link StructuredOutputValidationStatusSchema} */
|
|
132
|
+
type StructuredOutputValidationStatus = z.infer<typeof StructuredOutputValidationStatusSchema>;
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region core/contracts/src/shared/ui-config.d.ts
|
|
135
|
+
/**
|
|
136
|
+
* Builtin widget types provided by the UI components package
|
|
137
|
+
* - tags: Comma-separated input that converts to array
|
|
138
|
+
* - textarea-array: Multi-line textarea that converts to array
|
|
139
|
+
* - password: Password input field
|
|
140
|
+
* - slider: Numeric slider input
|
|
141
|
+
* - capability-picker: Grouped three-state capability selector with raw tool overrides
|
|
142
|
+
* - prompt-editor: Multi-line textarea with `{{prompt:name}}` template reference highlighting
|
|
143
|
+
*/
|
|
144
|
+
type BuiltinWidget = 'tags' | 'textarea-array' | 'password' | 'slider' | 'capability-picker' | 'prompt-editor';
|
|
145
|
+
/**
|
|
146
|
+
* Plugin widget registry - augment to add custom widgets.
|
|
147
|
+
* @example Augmenting from a plugin
|
|
148
|
+
* ```typescript
|
|
149
|
+
* // extensions/loop/src/types.ts
|
|
150
|
+
* declare module '@makaio/framework/contracts' {
|
|
151
|
+
* interface PluginWidgetRegistry {
|
|
152
|
+
* 'success-criteria': true;
|
|
153
|
+
* }
|
|
154
|
+
* }
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
interface PluginWidgetRegistry {}
|
|
158
|
+
/**
|
|
159
|
+
* All available widget types (builtin + plugin-registered)
|
|
160
|
+
*/
|
|
161
|
+
type FieldWidget = BuiltinWidget | keyof PluginWidgetRegistry;
|
|
162
|
+
/**
|
|
163
|
+
* Option for select-type fields.
|
|
164
|
+
*
|
|
165
|
+
* Each option represents a selectable choice in dropdown/select fields.
|
|
166
|
+
*/
|
|
167
|
+
declare const FieldOptionSchema: z.ZodObject<{
|
|
168
|
+
value: z.ZodString;
|
|
169
|
+
label: z.ZodString;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
/**
|
|
172
|
+
* Option for select-type fields.
|
|
173
|
+
*
|
|
174
|
+
* Each option represents a selectable choice in dropdown/select fields.
|
|
175
|
+
*/
|
|
176
|
+
type FieldOption = z.infer<typeof FieldOptionSchema>;
|
|
177
|
+
/**
|
|
178
|
+
* Zod schema for field override (runtime validation - accepts any string for widget)
|
|
179
|
+
*/
|
|
180
|
+
declare const FieldOverrideSchema: z.ZodObject<{
|
|
181
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
182
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
183
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
184
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
185
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
|
+
value: z.ZodString;
|
|
190
|
+
label: z.ZodString;
|
|
191
|
+
}, z.core.$strip>>>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
/**
|
|
194
|
+
* Field override type - inferred from schema
|
|
195
|
+
* Note: widget is string at runtime, use FieldWidget type for type-safe code
|
|
196
|
+
*/
|
|
197
|
+
type FieldOverride = z.infer<typeof FieldOverrideSchema>;
|
|
198
|
+
/**
|
|
199
|
+
* UI configuration for entity forms
|
|
200
|
+
* Defines how the entity should be displayed and edited in the UI
|
|
201
|
+
*/
|
|
202
|
+
declare const EntityUIConfigSchema$1: z.ZodObject<{
|
|
203
|
+
editMode: z.ZodDefault<z.ZodEnum<{
|
|
204
|
+
inline: "inline";
|
|
205
|
+
slidePanel: "slidePanel";
|
|
206
|
+
fullPage: "fullPage";
|
|
207
|
+
}>>;
|
|
208
|
+
hiddenFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
209
|
+
readOnlyInEditMode: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
|
+
fieldOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
211
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
212
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
213
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
214
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
215
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
218
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
219
|
+
value: z.ZodString;
|
|
220
|
+
label: z.ZodString;
|
|
221
|
+
}, z.core.$strip>>>;
|
|
222
|
+
}, z.core.$strip>>>;
|
|
223
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
title: z.ZodString;
|
|
226
|
+
description: z.ZodOptional<z.ZodString>;
|
|
227
|
+
fields: z.ZodArray<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>>>;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
/**
|
|
231
|
+
* Entity UI configuration type - inferred from schema
|
|
232
|
+
* Note: widget values are string at runtime, use FieldWidget type for type-safe widget handling
|
|
233
|
+
*/
|
|
234
|
+
type EntityUIConfig = z.infer<typeof EntityUIConfigSchema$1>;
|
|
235
|
+
/**
|
|
236
|
+
* Field type options for form inputs.
|
|
237
|
+
*
|
|
238
|
+
* These types correspond to standard HTML input types and provide
|
|
239
|
+
* type-safe rendering of different form field variants. Slider-style numeric
|
|
240
|
+
* controls continue to use `type: 'number'` with `widget: 'slider'`.
|
|
241
|
+
*
|
|
242
|
+
* Use `'custom'` when field rendering is fully delegated to the widget
|
|
243
|
+
* specified in `widget` — SchemaForm will route the field to the registered
|
|
244
|
+
* widget and ignore the type for rendering purposes.
|
|
245
|
+
*/
|
|
246
|
+
type FieldType = 'text' | 'password' | 'number' | 'boolean' | 'select' | 'array' | 'custom';
|
|
247
|
+
/**
|
|
248
|
+
* Shared properties for all form field definitions.
|
|
249
|
+
*
|
|
250
|
+
* This interface provides the seam for extensible form generation.
|
|
251
|
+
* Fields can be generated from JSON Schema, hardcoded registries,
|
|
252
|
+
* or any other source that can produce this structure.
|
|
253
|
+
*/
|
|
254
|
+
interface BaseFieldDefinition {
|
|
255
|
+
/** Unique key for the field (used as form field name). */
|
|
256
|
+
key: string;
|
|
257
|
+
/** Display label for the field. */
|
|
258
|
+
label: string;
|
|
259
|
+
/** Delimiter for array-type fields (default varies by widget). */
|
|
260
|
+
delimiter?: string;
|
|
261
|
+
/** Minimum numeric value (for numeric fields, including the slider widget). */
|
|
262
|
+
min?: number;
|
|
263
|
+
/** Maximum numeric value (for numeric fields, including the slider widget). */
|
|
264
|
+
max?: number;
|
|
265
|
+
/** Step increment for numeric fields, including the slider widget. */
|
|
266
|
+
step?: number;
|
|
267
|
+
/** Placeholder text for text-based inputs. */
|
|
268
|
+
placeholder?: string;
|
|
269
|
+
/** Help text/description shown below the input, including mapped override help text. */
|
|
270
|
+
description?: string;
|
|
271
|
+
/** Whether the field is required. */
|
|
272
|
+
required?: boolean;
|
|
273
|
+
/** Options for select-type fields. */
|
|
274
|
+
options?: FieldOption[];
|
|
275
|
+
/** Default value for the field. */
|
|
276
|
+
defaultValue?: unknown;
|
|
277
|
+
/** Whether the field is disabled. */
|
|
278
|
+
disabled?: boolean;
|
|
279
|
+
}
|
|
280
|
+
/** Field definition for builtin field types. */
|
|
281
|
+
interface StandardFieldDefinition extends BaseFieldDefinition {
|
|
282
|
+
/** Type of input to render. */
|
|
283
|
+
type: Exclude<FieldType, 'custom'>;
|
|
284
|
+
/** Custom widget for specialized rendering (e.g., tags for arrays). */
|
|
285
|
+
widget?: FieldWidget;
|
|
286
|
+
}
|
|
287
|
+
/** Field definition for widgets that render through the custom field path. */
|
|
288
|
+
interface CustomFieldDefinition extends BaseFieldDefinition {
|
|
289
|
+
/** Custom fields always render through an explicit widget. */
|
|
290
|
+
type: 'custom';
|
|
291
|
+
/** Builtin or plugin-registered widget used to render the custom field. */
|
|
292
|
+
widget: FieldWidget;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Definition for a form field.
|
|
296
|
+
*
|
|
297
|
+
* Builtin field types may omit `widget` and fall back to their type renderer.
|
|
298
|
+
* Custom field types must provide a registered widget so render-time lookup
|
|
299
|
+
* never falls back to the literal `'custom'` type.
|
|
300
|
+
*/
|
|
301
|
+
type FieldDefinition = StandardFieldDefinition | CustomFieldDefinition;
|
|
302
|
+
/**
|
|
303
|
+
* Props for form field components.
|
|
304
|
+
*
|
|
305
|
+
* Defines the contract between the form rendering infrastructure and
|
|
306
|
+
* individual field components. Both framework extensions and host UI
|
|
307
|
+
* implement components that accept this interface.
|
|
308
|
+
* @param field - Field definition describing what to render
|
|
309
|
+
* @param value - Current value of the field
|
|
310
|
+
* @param onChange - Callback when the field value changes
|
|
311
|
+
* @param className - Optional additional CSS class
|
|
312
|
+
* @param idPrefix - Optional id prefix (defaults to 'field')
|
|
313
|
+
* @param error - Error state message (when present, field shows error styling)
|
|
314
|
+
*/
|
|
315
|
+
interface FormFieldProps {
|
|
316
|
+
/** Field definition describing what to render. */
|
|
317
|
+
field: FieldDefinition;
|
|
318
|
+
/** Current value of the field. */
|
|
319
|
+
value: unknown;
|
|
320
|
+
/** Callback when the field value changes. */
|
|
321
|
+
onChange: (value: unknown) => void;
|
|
322
|
+
/** Optional additional CSS class. */
|
|
323
|
+
className?: string;
|
|
324
|
+
/** Optional id prefix (defaults to 'field'). */
|
|
325
|
+
idPrefix?: string;
|
|
326
|
+
/** Error message (when present, field shows error styling). */
|
|
327
|
+
error?: string;
|
|
328
|
+
}
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region core/contracts/src/shared/index.d.ts
|
|
331
|
+
/**
|
|
332
|
+
* Content source for binary data or external resources.
|
|
333
|
+
* Supports either base64-encoded data or URL-based content.
|
|
334
|
+
*
|
|
335
|
+
* Invariant: the `base64` branch requires a known MIME type. Staging utilities
|
|
336
|
+
* always populate `mimeType` before a source reaches the message bus, so callers
|
|
337
|
+
* that construct a `base64` source must always provide it.
|
|
338
|
+
* The `url` branch leaves `mimeType` optional because remote URLs may not have
|
|
339
|
+
* a known content type upfront.
|
|
340
|
+
*/
|
|
341
|
+
declare const ContentSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
|
+
type: z.ZodLiteral<"base64">;
|
|
343
|
+
data: z.ZodString;
|
|
344
|
+
mimeType: z.ZodString;
|
|
345
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
346
|
+
type: z.ZodLiteral<"url">;
|
|
347
|
+
url: z.ZodString;
|
|
348
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
349
|
+
}, z.core.$strip>], "type">;
|
|
350
|
+
/**
|
|
351
|
+
* Message block representing different types of content.
|
|
352
|
+
* Supports text, images, documents, file attachments, reasoning, tool calls, and tool outputs.
|
|
353
|
+
*/
|
|
354
|
+
declare const MessageBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
355
|
+
type: z.ZodLiteral<"text">;
|
|
356
|
+
content: z.ZodString;
|
|
357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
358
|
+
type: z.ZodLiteral<"image">;
|
|
359
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
360
|
+
type: z.ZodLiteral<"base64">;
|
|
361
|
+
data: z.ZodString;
|
|
362
|
+
mimeType: z.ZodString;
|
|
363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
type: z.ZodLiteral<"url">;
|
|
365
|
+
url: z.ZodString;
|
|
366
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
367
|
+
}, z.core.$strip>], "type">;
|
|
368
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
369
|
+
type: z.ZodLiteral<"document">;
|
|
370
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
371
|
+
type: z.ZodLiteral<"base64">;
|
|
372
|
+
data: z.ZodString;
|
|
373
|
+
mimeType: z.ZodString;
|
|
374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
type: z.ZodLiteral<"url">;
|
|
376
|
+
url: z.ZodString;
|
|
377
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
378
|
+
}, z.core.$strip>], "type">;
|
|
379
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
380
|
+
type: z.ZodLiteral<"attachment">;
|
|
381
|
+
fileName: z.ZodString;
|
|
382
|
+
filePath: z.ZodString;
|
|
383
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
384
|
+
type: z.ZodLiteral<"base64">;
|
|
385
|
+
data: z.ZodString;
|
|
386
|
+
mimeType: z.ZodString;
|
|
387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
388
|
+
type: z.ZodLiteral<"url">;
|
|
389
|
+
url: z.ZodString;
|
|
390
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
391
|
+
}, z.core.$strip>], "type">;
|
|
392
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
393
|
+
attachmentType: z.ZodEnum<{
|
|
394
|
+
file: "file";
|
|
395
|
+
directory: "directory";
|
|
396
|
+
}>;
|
|
397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
398
|
+
type: z.ZodLiteral<"reasoning">;
|
|
399
|
+
content: z.ZodString;
|
|
400
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
402
|
+
type: z.ZodLiteral<"tool_call">;
|
|
403
|
+
toolCallId: z.ZodString;
|
|
404
|
+
name: z.ZodString;
|
|
405
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
406
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
407
|
+
type: z.ZodLiteral<"tool_output">;
|
|
408
|
+
toolCallId: z.ZodString;
|
|
409
|
+
output: z.ZodString;
|
|
410
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
}, z.core.$strip>], "type">;
|
|
412
|
+
/**
|
|
413
|
+
* Structured message with role and content blocks.
|
|
414
|
+
* Blocks can be a single block or an array of blocks.
|
|
415
|
+
*/
|
|
416
|
+
declare const MessageSchema: z.ZodObject<{
|
|
417
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
418
|
+
user: "user";
|
|
419
|
+
assistant: "assistant";
|
|
420
|
+
system: "system";
|
|
421
|
+
}>>;
|
|
422
|
+
blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
423
|
+
type: z.ZodLiteral<"text">;
|
|
424
|
+
content: z.ZodString;
|
|
425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
426
|
+
type: z.ZodLiteral<"image">;
|
|
427
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
428
|
+
type: z.ZodLiteral<"base64">;
|
|
429
|
+
data: z.ZodString;
|
|
430
|
+
mimeType: z.ZodString;
|
|
431
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
432
|
+
type: z.ZodLiteral<"url">;
|
|
433
|
+
url: z.ZodString;
|
|
434
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$strip>], "type">;
|
|
436
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
437
|
+
type: z.ZodLiteral<"document">;
|
|
438
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
439
|
+
type: z.ZodLiteral<"base64">;
|
|
440
|
+
data: z.ZodString;
|
|
441
|
+
mimeType: z.ZodString;
|
|
442
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
443
|
+
type: z.ZodLiteral<"url">;
|
|
444
|
+
url: z.ZodString;
|
|
445
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
446
|
+
}, z.core.$strip>], "type">;
|
|
447
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
448
|
+
type: z.ZodLiteral<"attachment">;
|
|
449
|
+
fileName: z.ZodString;
|
|
450
|
+
filePath: z.ZodString;
|
|
451
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
452
|
+
type: z.ZodLiteral<"base64">;
|
|
453
|
+
data: z.ZodString;
|
|
454
|
+
mimeType: z.ZodString;
|
|
455
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
456
|
+
type: z.ZodLiteral<"url">;
|
|
457
|
+
url: z.ZodString;
|
|
458
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
459
|
+
}, z.core.$strip>], "type">;
|
|
460
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
461
|
+
attachmentType: z.ZodEnum<{
|
|
462
|
+
file: "file";
|
|
463
|
+
directory: "directory";
|
|
464
|
+
}>;
|
|
465
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
466
|
+
type: z.ZodLiteral<"reasoning">;
|
|
467
|
+
content: z.ZodString;
|
|
468
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
469
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
470
|
+
type: z.ZodLiteral<"tool_call">;
|
|
471
|
+
toolCallId: z.ZodString;
|
|
472
|
+
name: z.ZodString;
|
|
473
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
475
|
+
type: z.ZodLiteral<"tool_output">;
|
|
476
|
+
toolCallId: z.ZodString;
|
|
477
|
+
output: z.ZodString;
|
|
478
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
479
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
480
|
+
type: z.ZodLiteral<"text">;
|
|
481
|
+
content: z.ZodString;
|
|
482
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
483
|
+
type: z.ZodLiteral<"image">;
|
|
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
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
494
|
+
type: z.ZodLiteral<"document">;
|
|
495
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
496
|
+
type: z.ZodLiteral<"base64">;
|
|
497
|
+
data: z.ZodString;
|
|
498
|
+
mimeType: z.ZodString;
|
|
499
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
500
|
+
type: z.ZodLiteral<"url">;
|
|
501
|
+
url: z.ZodString;
|
|
502
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
503
|
+
}, z.core.$strip>], "type">;
|
|
504
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
505
|
+
type: z.ZodLiteral<"attachment">;
|
|
506
|
+
fileName: z.ZodString;
|
|
507
|
+
filePath: z.ZodString;
|
|
508
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
509
|
+
type: z.ZodLiteral<"base64">;
|
|
510
|
+
data: z.ZodString;
|
|
511
|
+
mimeType: z.ZodString;
|
|
512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
513
|
+
type: z.ZodLiteral<"url">;
|
|
514
|
+
url: z.ZodString;
|
|
515
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
516
|
+
}, z.core.$strip>], "type">;
|
|
517
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
518
|
+
attachmentType: z.ZodEnum<{
|
|
519
|
+
file: "file";
|
|
520
|
+
directory: "directory";
|
|
521
|
+
}>;
|
|
522
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
523
|
+
type: z.ZodLiteral<"reasoning">;
|
|
524
|
+
content: z.ZodString;
|
|
525
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
526
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
527
|
+
type: z.ZodLiteral<"tool_call">;
|
|
528
|
+
toolCallId: z.ZodString;
|
|
529
|
+
name: z.ZodString;
|
|
530
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
531
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
532
|
+
type: z.ZodLiteral<"tool_output">;
|
|
533
|
+
toolCallId: z.ZodString;
|
|
534
|
+
output: z.ZodString;
|
|
535
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
536
|
+
}, z.core.$strip>], "type">>]>;
|
|
537
|
+
}, z.core.$strip>;
|
|
538
|
+
/**
|
|
539
|
+
* Message input type.
|
|
540
|
+
* Accepts either a simple string or a structured Message object.
|
|
541
|
+
*/
|
|
542
|
+
declare const MessageInputSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
543
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
544
|
+
user: "user";
|
|
545
|
+
assistant: "assistant";
|
|
546
|
+
system: "system";
|
|
547
|
+
}>>;
|
|
548
|
+
blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
549
|
+
type: z.ZodLiteral<"text">;
|
|
550
|
+
content: z.ZodString;
|
|
551
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
552
|
+
type: z.ZodLiteral<"image">;
|
|
553
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
554
|
+
type: z.ZodLiteral<"base64">;
|
|
555
|
+
data: z.ZodString;
|
|
556
|
+
mimeType: z.ZodString;
|
|
557
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
558
|
+
type: z.ZodLiteral<"url">;
|
|
559
|
+
url: z.ZodString;
|
|
560
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
561
|
+
}, z.core.$strip>], "type">;
|
|
562
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
563
|
+
type: z.ZodLiteral<"document">;
|
|
564
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
565
|
+
type: z.ZodLiteral<"base64">;
|
|
566
|
+
data: z.ZodString;
|
|
567
|
+
mimeType: z.ZodString;
|
|
568
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
569
|
+
type: z.ZodLiteral<"url">;
|
|
570
|
+
url: z.ZodString;
|
|
571
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
572
|
+
}, z.core.$strip>], "type">;
|
|
573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
574
|
+
type: z.ZodLiteral<"attachment">;
|
|
575
|
+
fileName: z.ZodString;
|
|
576
|
+
filePath: z.ZodString;
|
|
577
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
578
|
+
type: z.ZodLiteral<"base64">;
|
|
579
|
+
data: z.ZodString;
|
|
580
|
+
mimeType: z.ZodString;
|
|
581
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
582
|
+
type: z.ZodLiteral<"url">;
|
|
583
|
+
url: z.ZodString;
|
|
584
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
585
|
+
}, z.core.$strip>], "type">;
|
|
586
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
587
|
+
attachmentType: z.ZodEnum<{
|
|
588
|
+
file: "file";
|
|
589
|
+
directory: "directory";
|
|
590
|
+
}>;
|
|
591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
+
type: z.ZodLiteral<"reasoning">;
|
|
593
|
+
content: z.ZodString;
|
|
594
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
596
|
+
type: z.ZodLiteral<"tool_call">;
|
|
597
|
+
toolCallId: z.ZodString;
|
|
598
|
+
name: z.ZodString;
|
|
599
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
600
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
601
|
+
type: z.ZodLiteral<"tool_output">;
|
|
602
|
+
toolCallId: z.ZodString;
|
|
603
|
+
output: z.ZodString;
|
|
604
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
605
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
606
|
+
type: z.ZodLiteral<"text">;
|
|
607
|
+
content: z.ZodString;
|
|
608
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
609
|
+
type: z.ZodLiteral<"image">;
|
|
610
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
611
|
+
type: z.ZodLiteral<"base64">;
|
|
612
|
+
data: z.ZodString;
|
|
613
|
+
mimeType: z.ZodString;
|
|
614
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
615
|
+
type: z.ZodLiteral<"url">;
|
|
616
|
+
url: z.ZodString;
|
|
617
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
618
|
+
}, z.core.$strip>], "type">;
|
|
619
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
620
|
+
type: z.ZodLiteral<"document">;
|
|
621
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
622
|
+
type: z.ZodLiteral<"base64">;
|
|
623
|
+
data: z.ZodString;
|
|
624
|
+
mimeType: z.ZodString;
|
|
625
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
626
|
+
type: z.ZodLiteral<"url">;
|
|
627
|
+
url: z.ZodString;
|
|
628
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
629
|
+
}, z.core.$strip>], "type">;
|
|
630
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
631
|
+
type: z.ZodLiteral<"attachment">;
|
|
632
|
+
fileName: z.ZodString;
|
|
633
|
+
filePath: z.ZodString;
|
|
634
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
635
|
+
type: z.ZodLiteral<"base64">;
|
|
636
|
+
data: z.ZodString;
|
|
637
|
+
mimeType: z.ZodString;
|
|
638
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
639
|
+
type: z.ZodLiteral<"url">;
|
|
640
|
+
url: z.ZodString;
|
|
641
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
642
|
+
}, z.core.$strip>], "type">;
|
|
643
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
644
|
+
attachmentType: z.ZodEnum<{
|
|
645
|
+
file: "file";
|
|
646
|
+
directory: "directory";
|
|
647
|
+
}>;
|
|
648
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
649
|
+
type: z.ZodLiteral<"reasoning">;
|
|
650
|
+
content: z.ZodString;
|
|
651
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
652
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
653
|
+
type: z.ZodLiteral<"tool_call">;
|
|
654
|
+
toolCallId: z.ZodString;
|
|
655
|
+
name: z.ZodString;
|
|
656
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
657
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
658
|
+
type: z.ZodLiteral<"tool_output">;
|
|
659
|
+
toolCallId: z.ZodString;
|
|
660
|
+
output: z.ZodString;
|
|
661
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
662
|
+
}, z.core.$strip>], "type">>]>;
|
|
663
|
+
}, z.core.$strip>]>;
|
|
664
|
+
declare const SendMessageResultInnerResultSchema: z.ZodObject<{
|
|
665
|
+
message: z.ZodOptional<z.ZodString>;
|
|
666
|
+
}, z.core.$strip>;
|
|
667
|
+
/**
|
|
668
|
+
* Possible outcomes for a user message lifecycle.
|
|
669
|
+
*/
|
|
670
|
+
declare const MessageOutcomeSchema: z.ZodEnum<{
|
|
671
|
+
error: "error";
|
|
672
|
+
completed: "completed";
|
|
673
|
+
cancelled: "cancelled";
|
|
674
|
+
superseded: "superseded";
|
|
675
|
+
merged: "merged";
|
|
676
|
+
rejected: "rejected";
|
|
677
|
+
}>;
|
|
678
|
+
declare const SendMessageResultSchema: z.ZodObject<{
|
|
679
|
+
messageId: z.ZodString;
|
|
680
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
681
|
+
message: z.ZodOptional<z.ZodString>;
|
|
682
|
+
}, z.core.$strip>>;
|
|
683
|
+
error: z.ZodOptional<z.ZodString>;
|
|
684
|
+
outcome: z.ZodEnum<{
|
|
685
|
+
error: "error";
|
|
686
|
+
completed: "completed";
|
|
687
|
+
cancelled: "cancelled";
|
|
688
|
+
superseded: "superseded";
|
|
689
|
+
merged: "merged";
|
|
690
|
+
rejected: "rejected";
|
|
691
|
+
}>;
|
|
692
|
+
}, z.core.$strip>;
|
|
693
|
+
declare const MessageDeliveryModeSchema: z.ZodEnum<{
|
|
694
|
+
replace: "replace";
|
|
695
|
+
enqueue: "enqueue";
|
|
696
|
+
immediate: "immediate";
|
|
697
|
+
}>;
|
|
698
|
+
/**
|
|
699
|
+
* System prompt configuration for agent sessions.
|
|
700
|
+
*
|
|
701
|
+
* Supports two modes:
|
|
702
|
+
* - `string`: Replace/set the entire system prompt
|
|
703
|
+
* - `{ mode: 'append', content: string }`: Append to adapter's default system prompt
|
|
704
|
+
*
|
|
705
|
+
* The append mode is useful for adding context-specific instructions (e.g., messageHistory
|
|
706
|
+
* interpretation) without overriding the adapter's base configuration.
|
|
707
|
+
* @example
|
|
708
|
+
* ```typescript
|
|
709
|
+
* // Replace entirely
|
|
710
|
+
* systemPrompt: 'You are a helpful assistant.'
|
|
711
|
+
*
|
|
712
|
+
* // Append to existing
|
|
713
|
+
* systemPrompt: {
|
|
714
|
+
* mode: 'append',
|
|
715
|
+
* content: 'You are naturally continuing a conversation with user.',
|
|
716
|
+
* }
|
|
717
|
+
* ```
|
|
718
|
+
*/
|
|
719
|
+
declare const SystemPromptSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
720
|
+
mode: z.ZodLiteral<"append">;
|
|
721
|
+
content: z.ZodString;
|
|
722
|
+
}, z.core.$strip>]>;
|
|
723
|
+
/**
|
|
724
|
+
* Schema for normalized message input.
|
|
725
|
+
* Used for user messages with full structure including role and content blocks.
|
|
726
|
+
*/
|
|
727
|
+
declare const NormalizedMessageInputSchema: z.ZodObject<{
|
|
728
|
+
role: z.ZodEnum<{
|
|
729
|
+
user: "user";
|
|
730
|
+
assistant: "assistant";
|
|
731
|
+
system: "system";
|
|
732
|
+
}>;
|
|
733
|
+
blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
734
|
+
type: z.ZodLiteral<"text">;
|
|
735
|
+
content: z.ZodString;
|
|
736
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
737
|
+
type: z.ZodLiteral<"image">;
|
|
738
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
739
|
+
type: z.ZodLiteral<"base64">;
|
|
740
|
+
data: z.ZodString;
|
|
741
|
+
mimeType: z.ZodString;
|
|
742
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
743
|
+
type: z.ZodLiteral<"url">;
|
|
744
|
+
url: z.ZodString;
|
|
745
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
746
|
+
}, z.core.$strip>], "type">;
|
|
747
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
748
|
+
type: z.ZodLiteral<"document">;
|
|
749
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
750
|
+
type: z.ZodLiteral<"base64">;
|
|
751
|
+
data: z.ZodString;
|
|
752
|
+
mimeType: z.ZodString;
|
|
753
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
754
|
+
type: z.ZodLiteral<"url">;
|
|
755
|
+
url: z.ZodString;
|
|
756
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
757
|
+
}, z.core.$strip>], "type">;
|
|
758
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
759
|
+
type: z.ZodLiteral<"attachment">;
|
|
760
|
+
fileName: z.ZodString;
|
|
761
|
+
filePath: z.ZodString;
|
|
762
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
763
|
+
type: z.ZodLiteral<"base64">;
|
|
764
|
+
data: z.ZodString;
|
|
765
|
+
mimeType: z.ZodString;
|
|
766
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
767
|
+
type: z.ZodLiteral<"url">;
|
|
768
|
+
url: z.ZodString;
|
|
769
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
770
|
+
}, z.core.$strip>], "type">;
|
|
771
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
772
|
+
attachmentType: z.ZodEnum<{
|
|
773
|
+
file: "file";
|
|
774
|
+
directory: "directory";
|
|
775
|
+
}>;
|
|
776
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
777
|
+
type: z.ZodLiteral<"reasoning">;
|
|
778
|
+
content: z.ZodString;
|
|
779
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
780
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
781
|
+
type: z.ZodLiteral<"tool_call">;
|
|
782
|
+
toolCallId: z.ZodString;
|
|
783
|
+
name: z.ZodString;
|
|
784
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
785
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
786
|
+
type: z.ZodLiteral<"tool_output">;
|
|
787
|
+
toolCallId: z.ZodString;
|
|
788
|
+
output: z.ZodString;
|
|
789
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
790
|
+
}, z.core.$strip>], "type">>;
|
|
791
|
+
message: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$strip>;
|
|
793
|
+
type NormalizedMessageInput = z.infer<typeof NormalizedMessageInputSchema>;
|
|
794
|
+
/**
|
|
795
|
+
* Inferred TypeScript types from schemas.
|
|
796
|
+
*/
|
|
797
|
+
type ContentSource = z.infer<typeof ContentSourceSchema>;
|
|
798
|
+
type MessageBlock$1 = z.infer<typeof MessageBlockSchema>;
|
|
799
|
+
type Message$1 = z.infer<typeof MessageSchema>;
|
|
800
|
+
type MessageInput$1 = z.infer<typeof MessageInputSchema>;
|
|
801
|
+
type SendMessageResult = z.infer<typeof SendMessageResultSchema>;
|
|
802
|
+
type SendMessageResultInnerResult$1 = z.infer<typeof SendMessageResultInnerResultSchema>;
|
|
803
|
+
type MessageOutcome$1 = z.infer<typeof MessageOutcomeSchema>;
|
|
804
|
+
type MessageDeliveryMode$1 = z.infer<typeof MessageDeliveryModeSchema>;
|
|
805
|
+
type SystemPrompt$1 = z.infer<typeof SystemPromptSchema>;
|
|
806
|
+
/**
|
|
807
|
+
* Runtime error categories for adapter failures.
|
|
808
|
+
* Used to classify errors during agent execution for fallback/retry logic.
|
|
809
|
+
*
|
|
810
|
+
* Note: The 'all' category exists in VirtualModelErrorCategorySchema but is excluded here
|
|
811
|
+
* as it's only used for fallback configuration, not runtime error classification.
|
|
812
|
+
*/
|
|
813
|
+
declare const ERROR_CATEGORIES: readonly ["rate_limit", "auth", "model_unavailable", "quota_exceeded"];
|
|
814
|
+
declare const ErrorCategorySchema: z.ZodEnum<{
|
|
815
|
+
rate_limit: "rate_limit";
|
|
816
|
+
auth: "auth";
|
|
817
|
+
model_unavailable: "model_unavailable";
|
|
818
|
+
quota_exceeded: "quota_exceeded";
|
|
819
|
+
}>;
|
|
820
|
+
type ErrorCategory = z.infer<typeof ErrorCategorySchema>;
|
|
821
|
+
//#endregion
|
|
822
|
+
export { JsonValueSchema$1 as $, FieldOption as A, ResponseSchemaDescriptorSchema as B, SystemPromptSchema as C, EntityUIConfig as D, CustomFieldDefinition as E, FieldWidget as F, StructuredOutputValidationErrorSchema as G, ResponseSchemaNameSchema as H, FormFieldProps as I, StructuredOutputValidationStatusSchema as J, StructuredOutputValidationSchema as K, PluginWidgetRegistry as L, FieldOverride as M, FieldOverrideSchema as N, EntityUIConfigSchema$1 as O, FieldType as P, JsonValue$1 as Q, StandardFieldDefinition as R, SystemPrompt$1 as S, BuiltinWidget as T, StructuredOutputValidation$1 as U, ResponseSchemaName as V, StructuredOutputValidationError as W, JsonObjectSchema as X, JsonObjectContractSchema as Y, JsonSchemaRecordSchema as Z, NormalizedMessageInputSchema as _, ErrorCategorySchema as a, SendMessageResultInnerResultSchema as b, MessageBlockSchema as c, MessageInput$1 as d, MessageInputSchema as f, NormalizedMessageInput as g, MessageSchema as h, ErrorCategory as i, FieldOptionSchema as j, FieldDefinition as k, MessageDeliveryMode$1 as l, MessageOutcomeSchema as m, ContentSourceSchema as n, Message$1 as o, MessageOutcome$1 as p, StructuredOutputValidationStatus as q, ERROR_CATEGORIES as r, MessageBlock$1 as s, ContentSource as t, MessageDeliveryModeSchema as u, SendMessageResult as v, BaseFieldDefinition as w, SendMessageResultSchema as x, SendMessageResultInnerResult$1 as y, ResponseSchemaDescriptor$1 as z };
|