@pixelzx/genesis 2026.7.8 → 2026.7.9
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/CHANGELOG.md +6 -0
- package/dist/.buildstamp +1 -1
- package/dist/abort-Cp36iDXn.js +201 -0
- package/dist/abort.runtime-BqMH4Ch0.js +2 -0
- package/dist/abort.runtime.js +1 -1
- package/dist/accounts-Cj71Cowh.js +107 -0
- package/dist/accounts-QWkosmHS.js +104 -0
- package/dist/accounts-WfCxilPE.js +2 -0
- package/dist/acp-cli-DR-AhXGk.js +2217 -0
- package/dist/acp-spawn--QIKNFAi.js +2 -0
- package/dist/acp-spawn-C6RL4_5_.js +1042 -0
- package/dist/acp-stateful-target-driver-Dhv06vdx.js +89 -0
- package/dist/action-agents-CIt7iEZU.js +67 -0
- package/dist/action-focus-opQp57IZ.js +132 -0
- package/dist/action-help-_OV2kuH9.js +7 -0
- package/dist/action-info-aoU6FqoU.js +101 -0
- package/dist/action-kill-DFlW_b4o.js +33 -0
- package/dist/action-list-CAYQg5qC.js +21 -0
- package/dist/action-log-COWtMTRe.js +30 -0
- package/dist/action-send-CzGaLKxg.js +39 -0
- package/dist/action-spawn-D0HNlqJQ.js +47 -0
- package/dist/action-unfocus-BA2c_9o-.js +29 -0
- package/dist/actions.runtime-C-MtRkM5.js +18 -0
- package/dist/actions.runtime-_O63acg1.js +5 -0
- package/dist/actions.runtime.js +1 -1
- package/dist/agent-D7gQ7Xo9.js +2 -0
- package/dist/agent-command-ByKQHVY7.js +874 -0
- package/dist/agent-harness-runtime-BMjFYW9y.js +144 -0
- package/dist/agent-runner-utils-DJds4BS5.js +239 -0
- package/dist/agent-runner.runtime-DIZ31zSD.js +3443 -0
- package/dist/agent-runner.runtime.js +1 -1
- package/dist/agent-runtime-CBfPv0EK.js +18 -0
- package/dist/agents-CV4vTeP8.js +5 -0
- package/dist/agents-imogqXBP.js +954 -0
- package/dist/aliases-BTJj8BqV.js +2 -0
- package/dist/aliases-Bx--0eZ4.js +96 -0
- package/dist/api-B2wEDg4s.js +139 -0
- package/dist/api-Bd2qlRZB.js +3 -0
- package/dist/api-C_BLyG0v.js +5 -0
- package/dist/approval-gateway-resolver-L5mCgEE8.js +29 -0
- package/dist/approval-gateway-runtime-CzzYNVSz.js +2 -0
- package/dist/approval-handler-runtime-DGphch5Y.js +439 -0
- package/dist/approval-native-runtime-DiA39Qd-.js +729 -0
- package/dist/attempt-execution.runtime-BR_1bcQh.js +509 -0
- package/dist/attempt-execution.runtime.js +1 -1
- package/dist/attempt.prompt-helpers-BcjLCIQW.js +206 -0
- package/dist/attempt.tool-run-context-CCbj8Rx9.js +933 -0
- package/dist/audit-gZVWGq5L.js +939 -0
- package/dist/audit.runtime-C24h5tOz.js +7 -0
- package/dist/audit.runtime.js +1 -1
- package/dist/auth-CVlSRgzI.js +2 -0
- package/dist/auth-MA9UN5hQ.js +550 -0
- package/dist/auth-order-BTnSGQgv.js +139 -0
- package/dist/auth-order-BdoWVq-E.js +2 -0
- package/dist/bash-tools-ByIhi7m1.js +3 -0
- package/dist/bash-tools-CyEIAadh.js +2853 -0
- package/dist/binding-routing-ZcY40RZ4.js +85 -0
- package/dist/binding-targets-CNRFfBh-.js +121 -0
- package/dist/bridge-server-C7dKRq-V.js +113 -0
- package/dist/browser-control-auth-BWH3BUNZ.js +2 -0
- package/dist/browser-node-runtime-QLZUFybf.js +12 -0
- package/dist/browser-profiles-BBpvhLrT.js +2 -0
- package/dist/browser-runtime-DhpIPNIt.js +387 -0
- package/dist/browser-setup-tools-DHwGt1YE.js +13 -0
- package/dist/build-BGXvMkW_.js +550 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/call-CoL9QpLf.js +330 -0
- package/dist/call-DUTlBMzC.js +3 -0
- package/dist/call.runtime-CwonrfG0.js +2 -0
- package/dist/call.runtime.js +1 -1
- package/dist/capability-cli-n36Okw1e.js +1401 -0
- package/dist/catchup-DKwaJXrj.js +300 -0
- package/dist/channel-BUjWV80s.js +491 -0
- package/dist/channel-Bqqe4ogf.js +1174 -0
- package/dist/channel-CUWOSF7I.js +1100 -0
- package/dist/channel-DO73puJq.js +840 -0
- package/dist/channel-DQb3yAT-.js +595 -0
- package/dist/channel-DonHeltj.js +1802 -0
- package/dist/channel-Dr3phGJH.js +350 -0
- package/dist/channel-OFr1VaIT.js +297 -0
- package/dist/channel-Q67N7Qga.js +453 -0
- package/dist/channel-QEIrCXvY.js +1320 -0
- package/dist/channel-TwbdYiU4.js +226 -0
- package/dist/channel-core-DpS9ac5M.js +5 -0
- package/dist/channel-inbound-BN7-W5Mp.js +31 -0
- package/dist/channel-plugin-runtime-Bpu2ATcW.js +771 -0
- package/dist/channel-runtime-DW0jiVp9.js +425 -0
- package/dist/channel.runtime-BIqZ_VoM.js +2364 -0
- package/dist/channel.runtime-BbeuZu_w.js +4 -0
- package/dist/channel.runtime-CUNubKGY.js +576 -0
- package/dist/channel.runtime-DVr4sNnj.js +42398 -0
- package/dist/channel.runtime-DuoIAiw0.js +89 -0
- package/dist/channel.runtime-FHKyPUs2.js +430 -0
- package/dist/channel.runtime.js +1 -1
- package/dist/channel.setup-DYQ46vWl.js +10 -0
- package/dist/channel2.runtime-45gwMiMC.js +109 -0
- package/dist/channel2.runtime.js +1 -1
- package/dist/channels-Cx87p2Mc.js +733 -0
- package/dist/channels-cli-Ch81ruvl.js +268 -0
- package/dist/chat-BvSWsydx.js +2830 -0
- package/dist/clawbot-cli-jsnS_FnN.js +9 -0
- package/dist/cli/daemon-cli.js +3 -3
- package/dist/cli-BWZ_fxIG.js +72 -0
- package/dist/cli-CyvueCG9.js +219 -0
- package/dist/cli-DRZG-g_Y.js +2 -0
- package/dist/cli-DqxnA2Tb.js +2 -0
- package/dist/cli-runner-DPw2qsP4.js +286 -0
- package/dist/cli-runner.runtime-B93gCaXR.js +4 -0
- package/dist/cli-runner.runtime-D3uL1Tqw.js +3 -0
- package/dist/cli-runner.runtime.js +1 -1
- package/dist/cli-startup-metadata.json +2 -2
- package/dist/cli.runtime-CJ-0cVHG.js +1261 -0
- package/dist/cli.runtime.js +1 -1
- package/dist/client-DZ9fRoos.js +723 -0
- package/dist/client-DaDWtov7.js +138 -0
- package/dist/command-auth-BNlTWl8C.js +76 -0
- package/dist/command-config-resolution-C5mMj3s6.js +2 -0
- package/dist/command-config-resolution-D_HiK2Df.js +23 -0
- package/dist/command-config-resolution.runtime-r_wK8SAB.js +2 -0
- package/dist/command-config-resolution.runtime.js +1 -1
- package/dist/command-registry-BwJMoAw8.js +9 -0
- package/dist/command-registry-CcPwbywf.js +4 -0
- package/dist/command-registry-core-BO-Zu0fZ.js +106 -0
- package/dist/command-secret-gateway-BOotrpN5.js +528 -0
- package/dist/command-status.runtime-Cnj5_5ga.js +87 -0
- package/dist/command-status.runtime.js +1 -1
- package/dist/commands-acp-Bp2GjOx3.js +77 -0
- package/dist/commands-compact.runtime-C3pOotHP.js +10 -0
- package/dist/commands-compact.runtime.js +1 -1
- package/dist/commands-handlers.runtime-vaz_uwzA.js +4599 -0
- package/dist/commands-handlers.runtime.js +1 -1
- package/dist/commands-status-Vd07pidW.js +16 -0
- package/dist/commands-status.runtime-BEKT_jrn.js +3 -0
- package/dist/commands-status.runtime.js +1 -1
- package/dist/commands-subagents-control.runtime-B8iWwqJX.js +3 -0
- package/dist/commands-subagents-control.runtime-Rsy5Lnz2.js +2 -0
- package/dist/commands-subagents-control.runtime.js +1 -1
- package/dist/commands-system-prompt-Bq6ojpCi.js +157 -0
- package/dist/commands-system-prompt-C7C6i6nq.js +2 -0
- package/dist/commands.runtime-B7f6s9df.js +167 -0
- package/dist/commands.runtime.js +1 -1
- package/dist/compact-wrJq7Lu7.js +1096 -0
- package/dist/compact.runtime-LNHoeWuF.js +12 -0
- package/dist/compact.runtime.js +1 -1
- package/dist/completion-cli-CD7DN6ny.js +328 -0
- package/dist/config-cli-Dp5K4ftz.js +1078 -0
- package/dist/config-y_0ApyNl.js +252 -0
- package/dist/configure-D3mU878p.js +1252 -0
- package/dist/configure-wyGVTr5h.js +2 -0
- package/dist/connect-options-1DmmZpSB.js +699 -0
- package/dist/control-auth-BpLXdP_i.js +125 -0
- package/dist/control-service-Bsdg53R4.js +156 -0
- package/dist/conversation-id-BO0qFsIe.js +38 -0
- package/dist/conversation-id-KB5kfzff.js +235 -0
- package/dist/conversation-runtime-9HKKmLHt.js +31 -0
- package/dist/core-OPQr8UZ9.js +275 -0
- package/dist/cron-cli-BvlxWG-0.js +713 -0
- package/dist/daemon-cli-C4rj1fY_.js +12 -0
- package/dist/dashboard-B_D8FKSf.js +2 -0
- package/dist/dashboard-DHcTfjq_.js +81 -0
- package/dist/delegate-D5OjBi3s.js +64 -0
- package/dist/detached-task-runtime-DzyjU1m1.js +73 -0
- package/dist/devices-cli-DvMb9Y1g.js +498 -0
- package/dist/diagnostics-B6OHDp0s.js +154 -0
- package/dist/direct-dm-D6l72pHR.js +64 -0
- package/dist/dispatch-MnxNMsTX.js +1131 -0
- package/dist/dispatch-acp-CkcF0OCD.js +981 -0
- package/dist/dispatch-acp-manager.runtime-C1nWu1uE.js +3 -0
- package/dist/dispatch-acp-manager.runtime.js +1 -1
- package/dist/dispatch-acp.runtime-CWcJoK7v.js +19 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/doctor-device-pairing-Ccd9bfi0.js +307 -0
- package/dist/doctor-gateway-daemon-flow-vXXN636C.js +250 -0
- package/dist/doctor-gateway-health-to-oUHeN.js +63 -0
- package/dist/doctor-health-C3ZtwUoH.js +59 -0
- package/dist/doctor-health-contributions-C6IlokOG.js +493 -0
- package/dist/doctor-prompter-DtNoFi2a.js +56 -0
- package/dist/doctor-workspace-status-CQB7xbnW.js +75 -0
- package/dist/dreaming-BbN5wJdM.js +1582 -0
- package/dist/dreaming-narrative-Dra5GiQh.js +596 -0
- package/dist/embedded-gateway-stub.runtime-B9NXS2Vr.js +9 -0
- package/dist/embedded-gateway-stub.runtime.js +1 -1
- package/dist/entry.js +2 -2
- package/dist/exec-approvals-cli-BMIvTLCd.js +498 -0
- package/dist/extensionAPI.js +1 -1
- package/dist/extensions/active-memory/index.js +1 -1
- package/dist/extensions/bluebubbles/api.js +3 -3
- package/dist/extensions/bluebubbles/channel-plugin-api.js +1 -1
- package/dist/extensions/browser/browser-bridge.js +1 -1
- package/dist/extensions/browser/browser-config.js +4 -4
- package/dist/extensions/browser/browser-control-auth.js +2 -2
- package/dist/extensions/browser/browser-doctor.js +2 -2
- package/dist/extensions/browser/browser-maintenance.js +2 -2
- package/dist/extensions/browser/browser-profiles.js +2 -2
- package/dist/extensions/browser/browser-runtime-api.js +10 -10
- package/dist/extensions/browser/index.js +1 -1
- package/dist/extensions/browser/plugin-registration.js +1 -1
- package/dist/extensions/browser/register.runtime.js +3 -3
- package/dist/extensions/browser/runtime-api.js +11 -11
- package/dist/extensions/browser/test-support.js +1 -1
- package/dist/extensions/device-pair/api.js +1 -1
- package/dist/extensions/device-pair/index.js +3 -3
- package/dist/extensions/device-pair/notify.js +1 -1
- package/dist/extensions/device-pair/pair-command-approve.js +1 -1
- package/dist/extensions/google-meet/index.js +2 -2
- package/dist/extensions/imessage/api.js +3 -3
- package/dist/extensions/imessage/channel-plugin-api.js +1 -1
- package/dist/extensions/imessage/runtime-api.js +3 -3
- package/dist/extensions/irc/api.js +2 -2
- package/dist/extensions/irc/channel-plugin-api.js +1 -1
- package/dist/extensions/line/api.js +2 -2
- package/dist/extensions/line/channel-plugin-api.js +1 -1
- package/dist/extensions/line/contract-api.js +1 -1
- package/dist/extensions/line/runtime-api.js +4 -4
- package/dist/extensions/line/setup-api.js +1 -1
- package/dist/extensions/llm-task/index.js +2 -2
- package/dist/extensions/lobster/index.js +3 -3
- package/dist/extensions/lobster/runtime-api.js +1 -1
- package/dist/extensions/mattermost/api.js +1 -1
- package/dist/extensions/mattermost/channel-plugin-api.js +1 -1
- package/dist/extensions/mattermost/channel-plugin-runtime.js +1 -1
- package/dist/extensions/mattermost/policy-api.js +1 -1
- package/dist/extensions/mattermost/runtime-api.js +4 -4
- package/dist/extensions/mattermost/slash-route-api.js +1 -1
- package/dist/extensions/memory-core/api.js +1 -1
- package/dist/extensions/memory-core/cli-metadata.js +2 -2
- package/dist/extensions/memory-core/index.js +3 -3
- package/dist/extensions/memory-lancedb/cli-metadata.js +1 -1
- package/dist/extensions/msteams/api.js +1 -1
- package/dist/extensions/msteams/channel-plugin-api.js +1 -1
- package/dist/extensions/msteams/runtime-api.js +3 -3
- package/dist/extensions/msteams/test-api.js +1 -1
- package/dist/extensions/nextcloud-talk/api.js +1 -1
- package/dist/extensions/nextcloud-talk/channel-plugin-api.js +1 -1
- package/dist/extensions/nextcloud-talk/runtime-api.js +2 -2
- package/dist/extensions/openshell/index.js +2 -2
- package/dist/extensions/signal/api.js +6 -6
- package/dist/extensions/signal/channel-plugin-api.js +1 -1
- package/dist/extensions/signal/reaction-runtime-api.js +1 -1
- package/dist/extensions/signal/runtime-api.js +7 -7
- package/dist/extensions/skill-workshop/api.js +1 -1
- package/dist/extensions/skill-workshop/index.js +1 -1
- package/dist/extensions/synology-chat/api.js +1 -1
- package/dist/extensions/synology-chat/channel-plugin-api.js +1 -1
- package/dist/extensions/tlon/api.js +2 -2
- package/dist/extensions/tlon/channel-plugin-api.js +1 -1
- package/dist/extensions/tlon/runtime-api.js +1 -1
- package/dist/extensions/tlon/test-api.js +1 -1
- package/dist/extensions/twitch/api.js +1 -1
- package/dist/extensions/twitch/channel-plugin-api.js +1 -1
- package/dist/extensions/twitch/setup-plugin-api.js +1 -1
- package/dist/extensions/zalo/api.js +3 -3
- package/dist/extensions/zalo/channel-plugin-api.js +1 -1
- package/dist/extensions/zalo/runtime-api.js +2 -2
- package/dist/extensions/zalo/setup-api.js +2 -2
- package/dist/extensions/zalouser/api.js +3 -3
- package/dist/extensions/zalouser/channel-plugin-api.js +1 -1
- package/dist/extensions/zalouser/runtime-api.js +6 -6
- package/dist/extensions/zalouser/setup-plugin-api.js +1 -1
- package/dist/extensions/zalouser/test-api.js +1 -1
- package/dist/fallbacks-CNYcJGsI.js +31 -0
- package/dist/fallbacks-CpvN52vL.js +2 -0
- package/dist/fallbacks-shared-BMRmctbx.js +111 -0
- package/dist/gateway-_SCycjaN.js +115 -0
- package/dist/gateway-cli-CqpPxleQ.js +1283 -0
- package/dist/gateway-rpc-BsLYIv5w.js +14 -0
- package/dist/gateway-rpc.runtime-CyZZSmG_.js +23 -0
- package/dist/gateway-rpc.runtime.js +1 -1
- package/dist/gateway-runtime-BHDtRng9.js +15 -0
- package/dist/gateway-status-CZIozTnz.js +584 -0
- package/dist/genesis-tools-C0nPYE5t.js +9435 -0
- package/dist/genesis-tools.runtime-CY_LbvH7.js +2 -0
- package/dist/genesis-tools.runtime.js +1 -1
- package/dist/get-reply-from-config.runtime-BT7Vqesa.js +2 -0
- package/dist/get-reply-from-config.runtime.js +1 -1
- package/dist/get-reply-tZVDzC6p.js +3946 -0
- package/dist/graph-users-CeLSqImM.js +1337 -0
- package/dist/health-BWIRYEwF.js +3 -0
- package/dist/health-QMMhy2Dz.js +420 -0
- package/dist/health-route--sJRGxK7.js +41 -0
- package/dist/health-route-Nshh2-05.js +2 -0
- package/dist/hooks-cli-qlVfZ69O.js +433 -0
- package/dist/image-fallbacks-DqJubFFl.js +2 -0
- package/dist/image-fallbacks-Dw2qDUfx.js +31 -0
- package/dist/inbound-reply-dispatch-CACe9Tz8.js +73 -0
- package/dist/index.js +2 -2
- package/dist/infra-runtime-fiXnmsj0.js +38 -0
- package/dist/init-Biz2hP6-.js +59 -0
- package/dist/library-B1Qi-7is.js +45 -0
- package/dist/lifecycle-CwTeSNb3.js +571 -0
- package/dist/lifecycle-DTuqSjDi.js +229 -0
- package/dist/lifecycle.runtime-L87U4LxS.js +2 -0
- package/dist/lifecycle.runtime.js +1 -1
- package/dist/list-C9_Rnbic.js +131 -0
- package/dist/list-DhQ19wW5.js +2 -0
- package/dist/list-GcjeBBI7.js +2 -0
- package/dist/list-O4TnoMHO.js +1212 -0
- package/dist/list.probe-DYyzi71E.js +419 -0
- package/dist/llm-slug-generator-yBet6xOg.js +79 -0
- package/dist/llm-slug-generator.js +1 -1
- package/dist/load-config-Cp-DUOb2.js +35 -0
- package/dist/local-dispatch.runtime-RVsdeP5H.js +8 -0
- package/dist/local-dispatch.runtime.js +1 -1
- package/dist/logs-cli-D9A-A-9o.js +265 -0
- package/dist/logs-cli.runtime-IDuSVdCP.js +2 -0
- package/dist/logs-cli.runtime.js +1 -1
- package/dist/main-session-restart-recovery-Ck4FVNm4.js +206 -0
- package/dist/managed-image-attachments-C5QQL-vS.js +2 -0
- package/dist/managed-image-attachments-XoAQCwbd.js +635 -0
- package/dist/manager-CSBGjyBv.js +2057 -0
- package/dist/manager-wkR4Iytv.js +2 -0
- package/dist/markdown-to-line-BTkqph9t.js +790 -0
- package/dist/mcp/plugin-tools-serve.js +1 -1
- package/dist/mcp-cli-BYatxokX.js +725 -0
- package/dist/mcp-http-D5Jg_G_4.js +529 -0
- package/dist/memory-core-host-runtime-cli-D5FBfgB5.js +9 -0
- package/dist/message-DYkh5sOP.js +232 -0
- package/dist/message-action-runner-CJGAC14u.js +1407 -0
- package/dist/message-action-runner-DEc3L86w.js +2 -0
- package/dist/message-actions-Dh0dkVuL.js +143 -0
- package/dist/message.gateway.runtime-C66L1TQ8.js +2 -0
- package/dist/message.gateway.runtime.js +1 -1
- package/dist/models-auth-status-hLHyMRg4.js +217 -0
- package/dist/models-cli-A3K5ngLW.js +271 -0
- package/dist/monitor-BGPc6S-l.js +788 -0
- package/dist/monitor-C8edroDo.js +671 -0
- package/dist/monitor-CFsyjwnu.js +1661 -0
- package/dist/monitor-Dl0w1_43.js +1237 -0
- package/dist/monitor-DlxT-Knr.js +2 -0
- package/dist/monitor-auth-ke97RkAT.js +207 -0
- package/dist/monitor-c-H6NZB1.js +1459 -0
- package/dist/monitor-processing-B39UHhPl.js +1974 -0
- package/dist/monitor.runtime-bk4_-UQP.js +2 -0
- package/dist/monitor.runtime.js +1 -1
- package/dist/monitor.webhook-h5bgSJwm.js +180 -0
- package/dist/msteams-ISVbP_K_.js +35 -0
- package/dist/native-hook-relay-Bc5mlw9g.js +519 -0
- package/dist/nextcloud-talk-CbYNP-yd.js +17 -0
- package/dist/node-cli-0u8AZQyg.js +2276 -0
- package/dist/nodes-cli-CQMWvWMg.js +1046 -0
- package/dist/nodes-utils-DOQtMWOk.js +84 -0
- package/dist/nodes.helpers-C4kSQFC6.js +34 -0
- package/dist/notify-nTgfrNiE.js +315 -0
- package/dist/onboard-C3joem4P.js +2 -0
- package/dist/onboard-CLxVG_dm.js +70 -0
- package/dist/onboard-helpers-CzWgl6b5.js +204 -0
- package/dist/onboard-helpers-DN7Wm9fW.js +6 -0
- package/dist/onboard-interactive-BGd6aTeV.js +24 -0
- package/dist/onboard-non-interactive-CtThtPt1.js +635 -0
- package/dist/onboard-remote-C-N2VHxH.js +2 -0
- package/dist/onboard-remote-C8Pd_O6i.js +193 -0
- package/dist/onboard-skills-CVLAHKbc.js +2 -0
- package/dist/onboard-skills-Dfyg3uoq.js +134 -0
- package/dist/openai-http-BEKA7a56.js +500 -0
- package/dist/openresponses-http-CXR1xS4b.js +1128 -0
- package/dist/operator-approvals-client-Cbb5L4kC.js +68 -0
- package/dist/outbound.runtime-BfwyPtqz.js +2 -0
- package/dist/outbound.runtime.js +1 -1
- package/dist/pair-command-approve-DxGuoQgs.js +44 -0
- package/dist/persistent-bindings.lifecycle-Cm2JgJ1m.js +2 -0
- package/dist/persistent-bindings.lifecycle-G6-GKVJ-.js +85 -0
- package/dist/pi-embedded-BhegMC8S.js +4 -0
- package/dist/pi-embedded-DSK_Kmte.js +2905 -0
- package/dist/pi-embedded.runtime-De_h6P_Z.js +4 -0
- package/dist/pi-embedded.runtime.js +1 -1
- package/dist/pi-tool-definition-adapter-NXBjo73N.js +229 -0
- package/dist/pi-tools-DZSC_w6D.js +1118 -0
- package/dist/pi-tools.before-tool-call-BwU95vEl.js +433 -0
- package/dist/pi-tools.before-tool-call-D_7nYeEk.js +2 -0
- package/dist/plugin-Buwbxy6j.js +12195 -0
- package/dist/plugin-enabled-K5XYrDLJ.js +140 -0
- package/dist/plugin-registration-BCJ8Erq-.js +23 -0
- package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
- package/dist/plugin-sdk/acp-binding-runtime.js +1 -1
- package/dist/plugin-sdk/acp-runtime.js +2 -2
- package/dist/plugin-sdk/agent-harness-runtime.js +5 -5
- package/dist/plugin-sdk/agent-harness.js +6 -6
- package/dist/plugin-sdk/agent-runtime.js +2 -2
- package/dist/plugin-sdk/approval-gateway-runtime.js +2 -2
- package/dist/plugin-sdk/approval-handler-runtime.js +3 -3
- package/dist/plugin-sdk/approval-runtime.js +1 -1
- package/dist/plugin-sdk/browser-node-runtime.js +4 -4
- package/dist/plugin-sdk/browser-setup-tools.js +3 -3
- package/dist/plugin-sdk/browser-support.js +7 -7
- package/dist/plugin-sdk/channel-core.js +2 -2
- package/dist/plugin-sdk/channel-inbound.js +2 -2
- package/dist/plugin-sdk/command-auth.js +1 -1
- package/dist/plugin-sdk/command-status-runtime.js +1 -1
- package/dist/plugin-sdk/compat.js +1 -1
- package/dist/plugin-sdk/conversation-binding-runtime.js +1 -1
- package/dist/plugin-sdk/conversation-runtime.js +3 -3
- package/dist/plugin-sdk/core.js +2 -2
- package/dist/plugin-sdk/direct-dm.js +1 -1
- package/dist/plugin-sdk/gateway-runtime.js +3 -3
- package/dist/plugin-sdk/inbound-reply-dispatch.js +1 -1
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/infra-runtime.js +2 -2
- package/dist/plugin-sdk/irc.js +2 -2
- package/dist/plugin-sdk/matrix.js +1 -1
- package/dist/plugin-sdk/memory-core-host-runtime-cli.js +2 -2
- package/dist/plugin-sdk/memory-core.js +2 -2
- package/dist/plugin-sdk/msteams.js +2 -2
- package/dist/plugin-sdk/nextcloud-talk.js +2 -2
- package/dist/plugin-sdk/nostr.js +1 -1
- package/dist/plugin-sdk/reply-dispatch-runtime.js +1 -1
- package/dist/plugin-sdk/reply-runtime.js +4 -4
- package/dist/plugin-sdk/runtime-secret-resolution.js +1 -1
- package/dist/plugin-sdk/runtime.js +2 -2
- package/dist/plugin-sdk/session-visibility.js +1 -1
- package/dist/plugin-sdk/testing.js +4 -4
- package/dist/plugin-sdk/tlon.js +1 -1
- package/dist/plugin-sdk/zalo.js +1 -1
- package/dist/plugin-sdk/zalouser.js +1 -1
- package/dist/plugin-service-O0Nka2ql.js +2893 -0
- package/dist/plugins/runtime/index.js +1 -1
- package/dist/policy-BcEBQrBb.js +328 -0
- package/dist/postinstall-inventory.json +411 -411
- package/dist/prepare.runtime-4-4zFPyi.js +807 -0
- package/dist/prepare.runtime.js +1 -1
- package/dist/probe-Bj5TYODu.js +2 -0
- package/dist/probe-CM64ZU4h.js +2205 -0
- package/dist/probe-D-WslSkr.js +1443 -0
- package/dist/probe-DDW3LKLY.js +240 -0
- package/dist/probe-DIojWUct.js +45 -0
- package/dist/probe-DUvHddgr.js +2 -0
- package/dist/probe-DcVkQ45O.js +74 -0
- package/dist/program-C2WMGRGS.js +111 -0
- package/dist/prompt-select-styled-DyuhVmKx.js +20 -0
- package/dist/protocol-D-HTtPao.js +2586 -0
- package/dist/provider-dispatcher-B9Bi64PF.js +2 -0
- package/dist/provider-dispatcher-W0BQ6JBa.js +22 -0
- package/dist/qr-cli-CuHAMWri.js +349 -0
- package/dist/qr-cli-XFbmt6Yy.js +2 -0
- package/dist/reaction-runtime-api-BVLM-96j.js +116 -0
- package/dist/reactions-C1FEqLK1.js +998 -0
- package/dist/register-service-commands-BfHk7oaS.js +71 -0
- package/dist/register.agent-DXzxIclN.js +248 -0
- package/dist/register.configure-CXufs_DG.js +15 -0
- package/dist/register.maintenance-WJgi56ww.js +363 -0
- package/dist/register.message-D644NowA.js +329 -0
- package/dist/register.onboard-Dts_81Kq.js +88 -0
- package/dist/register.runtime-BGFNAs1W.js +81 -0
- package/dist/register.runtime.js +1 -1
- package/dist/register.setup-xdxtWT9Z.js +150 -0
- package/dist/register.status-health-sessions-cA5f30SV.js +1215 -0
- package/dist/register.subclis-BC8Xib58.js +29 -0
- package/dist/register.subclis-DMX7WW9_.js +3 -0
- package/dist/register.subclis-core-BQwVVxk1.js +249 -0
- package/dist/reply-dispatch-runtime-B8XDaURF.js +13 -0
- package/dist/reply-runtime-NyMLCW3E.js +10 -0
- package/dist/reply.runtime-edT3K6N7.js +2 -0
- package/dist/reply.runtime.js +1 -1
- package/dist/restart-health-1UMkTis9.js +202 -0
- package/dist/restart-health-DOVEX2Dr.js +2 -0
- package/dist/root-help-DOab9o7V.js +44 -0
- package/dist/routes-C6KcWOET.js +3341 -0
- package/dist/routes-YiOyu7uC.js +2 -0
- package/dist/rpc-D58sqWd5.js +61 -0
- package/dist/rpc.runtime-B7TMomww.js +21 -0
- package/dist/rpc.runtime.js +1 -1
- package/dist/run-delivery.runtime-unYfe21X.js +530 -0
- package/dist/run-delivery.runtime.js +1 -1
- package/dist/run-embedded.runtime-zHl2AfPi.js +4 -0
- package/dist/run-embedded.runtime.js +1 -1
- package/dist/run-execution-cli.runtime-Dz1dsRHM.js +4 -0
- package/dist/run-execution-cli.runtime.js +1 -1
- package/dist/run-executor.runtime-KX7eaa3W.js +277 -0
- package/dist/run-executor.runtime.js +1 -1
- package/dist/run-main-DDIezO6z.js +567 -0
- package/dist/run-subagent-registry.runtime-DJC3g4ZR.js +2 -0
- package/dist/run-subagent-registry.runtime.js +1 -1
- package/dist/run-wait-CpiyL2yQ.js +135 -0
- package/dist/runtime-DFsWYp04.js +961 -0
- package/dist/runtime-api-B-Rvnz8K.js +9 -0
- package/dist/runtime-api-BGjsjeDs.js +4 -0
- package/dist/runtime-api-BLmoQDr9.js +9 -0
- package/dist/runtime-api-C7sFkqAw.js +14 -0
- package/dist/runtime-cvZCV2Ia.js +9 -0
- package/dist/runtime-embedded-pi.runtime-DhHN3TPm.js +2 -0
- package/dist/runtime-embedded-pi.runtime.js +1 -1
- package/dist/runtime-internal-BgtZ9qQE.js +2 -0
- package/dist/runtime-options-DP77Ol0F.js +275 -0
- package/dist/runtime-schema-UykYqADC.js +28599 -0
- package/dist/scan-DFZp_kSW.js +523 -0
- package/dist/scan-DGA0ZzcA.js +2 -0
- package/dist/secrets-cli-ea7rK5BG.js +2101 -0
- package/dist/security-cli-ho4WnkD2.js +486 -0
- package/dist/selection-9k1d9_Da.js +7743 -0
- package/dist/selection-Cp3CrNux.js +2 -0
- package/dist/send-CBwqDOfQ.js +156 -0
- package/dist/send-DpYdCf3A.js +102 -0
- package/dist/send.runtime-DPgv2Lc5.js +2 -0
- package/dist/send.runtime.js +1 -1
- package/dist/server-D7iFLwV2.js +13 -0
- package/dist/server-context-B8N_gqtd.js +2 -0
- package/dist/server-context-LNf4RJwd.js +847 -0
- package/dist/server-node-events-B0Jy5ges.js +474 -0
- package/dist/server-plugin-bootstrap-C50m7eyR.js +2 -0
- package/dist/server-plugin-bootstrap-CLJHt826.js +13703 -0
- package/dist/server-restart-sentinel--uTnlfGF.js +684 -0
- package/dist/server-yVgPsLY3.js +77 -0
- package/dist/server.impl-BlCJe-26.js +12804 -0
- package/dist/session-kill-http-CGcsBC5N.js +110 -0
- package/dist/session-reset-service-BdvoF6l9.js +497 -0
- package/dist/session-route-C6YYamP7.js +93 -0
- package/dist/session-status.runtime-DpxWfh54.js +2 -0
- package/dist/session-status.runtime.js +1 -1
- package/dist/session-subagent-reactivation.runtime-Ddt2B8nq.js +2 -0
- package/dist/session-subagent-reactivation.runtime.js +1 -1
- package/dist/session-tab-registry-Bwj7OJds.js +581 -0
- package/dist/session-visibility-CMeipx_x.js +147 -0
- package/dist/sessions-helpers-Crbc2V-c.js +305 -0
- package/dist/sessions-history-http-B1jARJH5.js +371 -0
- package/dist/sessions-patch-C1oxNf4r.js +309 -0
- package/dist/sessions-resolve-D8eCbDqe.js +174 -0
- package/dist/sessions.runtime-Dh0ghDyO.js +2 -0
- package/dist/sessions.runtime.js +1 -1
- package/dist/setup-DoOZ7cOr.js +636 -0
- package/dist/setup-api-COR0Hcnk.js +29 -0
- package/dist/setup-core-C5-HYDHu.js +176 -0
- package/dist/setup-core-Q7Gtw1Ov.js +171 -0
- package/dist/setup-surface-CBScP5vZ.js +219 -0
- package/dist/setup-surface-CPW1hR9X.js +286 -0
- package/dist/setup-surface-w8AJYpAw.js +403 -0
- package/dist/setup.finalize-CFQ5dk9P.js +547 -0
- package/dist/setup.gateway-config-CevZkqsU.js +250 -0
- package/dist/shared-BJOo71CE.js +121 -0
- package/dist/shared-C9DEgBKO.js +76 -0
- package/dist/shared-DWeIx7H_.js +198 -0
- package/dist/slash-state-DfyIhVQa.js +1911 -0
- package/dist/src-D_pOANWx.js +3974 -0
- package/dist/startup-context-u6H-cGD5.js +312 -0
- package/dist/status-Bax-CYIA.js +2 -0
- package/dist/status-Bm_lDIZA.js +2 -0
- package/dist/status-C41OfbgU.js +209 -0
- package/dist/status-CJA5y0Ot.js +190 -0
- package/dist/status-JI5DGJgd.js +395 -0
- package/dist/status-all-CyMiAz9D.js +498 -0
- package/dist/status-json-command-D3gfSQpJ.js +82 -0
- package/dist/status-json-wAtoMvEU.js +14 -0
- package/dist/status-liaGeQBF.js +3 -0
- package/dist/status-runtime-shared-BHVKTX8F.js +241 -0
- package/dist/status-subagents.runtime-Dqn8rGt3.js +18 -0
- package/dist/status-subagents.runtime.js +1 -1
- package/dist/status-text-XpgxLRUx.js +237 -0
- package/dist/status.gateway-connection.runtime-CAujaH_M.js +2 -0
- package/dist/status.gateway-connection.runtime.js +1 -1
- package/dist/status.gather-DABnWYhg.js +2 -0
- package/dist/status.gather-DvP7veWJ.js +292 -0
- package/dist/status.runtime-BNG-ykFb.js +2 -0
- package/dist/status.scan-CPCLfxhs.js +65 -0
- package/dist/status.scan-overview-cd-sFbN_.js +379 -0
- package/dist/status.scan.fast-json-BlK1NH9B.js +2 -0
- package/dist/status.scan.fast-json-RzD6XYyb.js +132 -0
- package/dist/status.summary-BzdECSg9.js +200 -0
- package/dist/status.summary-D5HGi7Bf.js +2 -0
- package/dist/subagent-announce-Cs_FbejL.js +351 -0
- package/dist/subagent-announce-delivery-DMwYIqZg.js +726 -0
- package/dist/subagent-announce-output-B9tl5MCY.js +364 -0
- package/dist/subagent-control-CJBFHJGn.js +506 -0
- package/dist/subagent-followup.runtime-Bn5iFlY5.js +68 -0
- package/dist/subagent-followup.runtime.js +1 -1
- package/dist/subagent-orphan-recovery-Bd_lhKXg.js +305 -0
- package/dist/subagent-registry-ChyubSrS.js +3 -0
- package/dist/subagent-registry-gH5jdXLj.js +1753 -0
- package/dist/subagent-registry.runtime.js +1 -1
- package/dist/subagent-spawn-CGEv7PUE.js +1005 -0
- package/dist/system-cli-BXWEki_N.js +43 -0
- package/dist/targets-Df5NUAMJ.js +67 -0
- package/dist/task-executor-CNDdWsuX.js +360 -0
- package/dist/task-owner-access-DxjrTxvr.js +74 -0
- package/dist/task-registry-CdNs7r4r.js +2357 -0
- package/dist/task-registry-delivery-runtime-BDu6uG2H.js +3 -0
- package/dist/task-registry-delivery-runtime-DOWKFjeQ.js +2 -0
- package/dist/task-registry.maintenance-DASywxLv.js +416 -0
- package/dist/task-registry.maintenance-NbdyYsF6.js +2 -0
- package/dist/telegram/token.js +1 -1
- package/dist/testing-DSzznIMh.js +575 -0
- package/dist/text-report-C5TiNkIC.js +549 -0
- package/dist/tool-resolution-BpN_yXJT.js +90 -0
- package/dist/tools-effective-inventory-DzZfmONO.js +152 -0
- package/dist/tools-invoke-http-Cc5lWdVY.js +206 -0
- package/dist/trash-gujb8L0g.js +24 -0
- package/dist/tui-cli-5Sm6YmJ7.js +4585 -0
- package/dist/update-cli-BcUEQuiM.js +1759 -0
- package/dist/upgrade-uEpCTUNv.js +1226 -0
- package/dist/video-generation-task-status-Ch4hR1ge.js +163 -0
- package/dist/wait-for-idle-before-flush-D9yKEs2F.js +6025 -0
- package/dist/wizard-models-DQ9CKzTp.js +334 -0
- package/package.json +4 -1
- package/dist/abort-xF_zj8_u.js +0 -201
- package/dist/abort.runtime-JUukGuW3.js +0 -2
- package/dist/accounts-C0jW92It.js +0 -104
- package/dist/accounts-C2ZexWg6.js +0 -107
- package/dist/accounts-tEPx6Fnd.js +0 -2
- package/dist/acp-cli-De2oyz3e.js +0 -2217
- package/dist/acp-spawn-7VB8ie8I.js +0 -1042
- package/dist/acp-spawn-C6VfLE4o.js +0 -2
- package/dist/acp-stateful-target-driver-ctUymwnI.js +0 -89
- package/dist/action-agents-Dy45TQ9X.js +0 -67
- package/dist/action-focus-hzygEAz5.js +0 -132
- package/dist/action-help-D1h2Czko.js +0 -7
- package/dist/action-info-EDBi7fre.js +0 -101
- package/dist/action-kill-CBNgmCsz.js +0 -33
- package/dist/action-list-C6KC8Ulv.js +0 -21
- package/dist/action-log-C0R9AwnB.js +0 -30
- package/dist/action-send-DZw27QoS.js +0 -39
- package/dist/action-spawn-BXEOYBEH.js +0 -47
- package/dist/action-unfocus-DWFUpr-g.js +0 -29
- package/dist/actions.runtime-1HHNbwPa.js +0 -5
- package/dist/actions.runtime-GFSX3jST.js +0 -18
- package/dist/agent-CU42dfye.js +0 -2
- package/dist/agent-command-Baehh2jJ.js +0 -874
- package/dist/agent-harness-runtime-Bmln4mlS.js +0 -144
- package/dist/agent-runner-utils-xPwHxFwc.js +0 -239
- package/dist/agent-runner.runtime-BBx0eqAs.js +0 -3443
- package/dist/agent-runtime-mKUGZmYk.js +0 -18
- package/dist/agents-C_kp6PcN.js +0 -954
- package/dist/agents-D7-4l9xG.js +0 -5
- package/dist/aliases-BR-85AbT.js +0 -96
- package/dist/aliases-DH4MEghL.js +0 -2
- package/dist/api-8dcgPyEO.js +0 -139
- package/dist/api-C6Dl-nsC.js +0 -3
- package/dist/api-CeoOTFsR.js +0 -5
- package/dist/approval-gateway-resolver-B5iZVyl3.js +0 -29
- package/dist/approval-gateway-runtime-DJMhFL8_.js +0 -2
- package/dist/approval-handler-runtime-CvlNyTSd.js +0 -439
- package/dist/approval-native-runtime-DIP1UVwF.js +0 -729
- package/dist/attempt-execution.runtime-Dnj7Dunz.js +0 -509
- package/dist/attempt.prompt-helpers-yXlkhGj_.js +0 -206
- package/dist/attempt.tool-run-context-DplnP36r.js +0 -933
- package/dist/audit-CP153cHC.js +0 -939
- package/dist/audit.runtime-BPEAdYYt.js +0 -7
- package/dist/auth-CGB_0fnH.js +0 -550
- package/dist/auth-_41Zyvnc.js +0 -2
- package/dist/auth-order-Cnl7fD4m.js +0 -2
- package/dist/auth-order-DTEvHo9G.js +0 -139
- package/dist/bash-tools-E5RKIMX4.js +0 -2853
- package/dist/bash-tools-n2uf-L6x.js +0 -3
- package/dist/binding-routing-MxZZJi7B.js +0 -85
- package/dist/binding-targets-DOjf91v9.js +0 -121
- package/dist/bridge-server-C9sdVkxe.js +0 -113
- package/dist/browser-control-auth-Ds_CXo7-.js +0 -2
- package/dist/browser-node-runtime-CrrZhgmT.js +0 -12
- package/dist/browser-profiles-DSq_VuWU.js +0 -2
- package/dist/browser-runtime-D3bUe2ki.js +0 -387
- package/dist/browser-setup-tools-BzBeI9sr.js +0 -13
- package/dist/build-BQ7uMjfi.js +0 -550
- package/dist/call-C5EHc2Ve.js +0 -3
- package/dist/call-DgFhP0IB.js +0 -330
- package/dist/call.runtime-CBWpY5ek.js +0 -2
- package/dist/capability-cli-CF-5WxGW.js +0 -1401
- package/dist/catchup-DEgTzUZf.js +0 -300
- package/dist/channel-B9Z1yOBL.js +0 -1100
- package/dist/channel-BQalh8q5.js +0 -1320
- package/dist/channel-B_D0qB8f.js +0 -297
- package/dist/channel-CveiiHEq.js +0 -226
- package/dist/channel-DPRWC_X5.js +0 -1802
- package/dist/channel-DTNwXKB7.js +0 -350
- package/dist/channel-DsWHOdeO.js +0 -840
- package/dist/channel-IYn5sG7l.js +0 -453
- package/dist/channel-MwEUOERy.js +0 -1174
- package/dist/channel-core-C3RFVpjy.js +0 -5
- package/dist/channel-geAqqK_e.js +0 -491
- package/dist/channel-inbound-BRCAVWH1.js +0 -31
- package/dist/channel-plugin-runtime-B7guFbbq.js +0 -771
- package/dist/channel-runtime-B2HmUto-.js +0 -425
- package/dist/channel-zfFLswBu.js +0 -595
- package/dist/channel.runtime-60XStiek.js +0 -2364
- package/dist/channel.runtime-BK8atBx7.js +0 -430
- package/dist/channel.runtime-CjfgGDJR.js +0 -576
- package/dist/channel.runtime-Cuc72hD3.js +0 -89
- package/dist/channel.runtime-D4i6q9PJ.js +0 -4
- package/dist/channel.runtime-mLdKu3mE.js +0 -42398
- package/dist/channel.setup-BxdBjfQG.js +0 -10
- package/dist/channel2.runtime-DhBM75gc.js +0 -109
- package/dist/channels-YP0r9T7z.js +0 -733
- package/dist/channels-cli-BA8x-0ie.js +0 -268
- package/dist/chat-C-K_PnVS.js +0 -2830
- package/dist/clawbot-cli-CcTWZznd.js +0 -9
- package/dist/cli-B9pz-wec.js +0 -2
- package/dist/cli-BDqmMCNa.js +0 -219
- package/dist/cli-CFANcv9h.js +0 -2
- package/dist/cli-oSszUBF4.js +0 -72
- package/dist/cli-runner-ziqCSXFY.js +0 -286
- package/dist/cli-runner.runtime-B-P8SxLi.js +0 -4
- package/dist/cli-runner.runtime-BmqwbMTX.js +0 -3
- package/dist/cli.runtime-4isBQRbc.js +0 -1261
- package/dist/client-CcimlPth.js +0 -138
- package/dist/client-DQsu_IXu.js +0 -723
- package/dist/command-auth-BWQO7kca.js +0 -76
- package/dist/command-config-resolution-ClTknI2S.js +0 -2
- package/dist/command-config-resolution-CrkcVij4.js +0 -23
- package/dist/command-config-resolution.runtime-D6B4s-Uv.js +0 -2
- package/dist/command-registry-B_U-oRjT.js +0 -4
- package/dist/command-registry-CJ8y08cJ.js +0 -9
- package/dist/command-registry-core-CjYDA5Hb.js +0 -106
- package/dist/command-secret-gateway-BN5JN_4V.js +0 -528
- package/dist/command-status.runtime-BwGSaGwK.js +0 -87
- package/dist/commands-acp-Di5EZJSo.js +0 -77
- package/dist/commands-compact.runtime-Dm1rBnbf.js +0 -10
- package/dist/commands-handlers.runtime-C8uzW3Za.js +0 -4599
- package/dist/commands-status-D_wsDlQe.js +0 -16
- package/dist/commands-status.runtime-BYT0Y8Xk.js +0 -3
- package/dist/commands-subagents-control.runtime-BozyiWar.js +0 -3
- package/dist/commands-subagents-control.runtime-DDCzt8Ub.js +0 -2
- package/dist/commands-system-prompt-ClkTGvNr.js +0 -157
- package/dist/commands-system-prompt-qRoqhQKL.js +0 -2
- package/dist/commands.runtime-DdZErCma.js +0 -167
- package/dist/compact-BCs9ORLb.js +0 -1096
- package/dist/compact.runtime-DvG7GWYV.js +0 -12
- package/dist/completion-cli-C4J7V5YR.js +0 -328
- package/dist/config-B0uPLzV0.js +0 -252
- package/dist/config-cli-Bt8euI41.js +0 -1078
- package/dist/configure-BIB6QKXD.js +0 -2
- package/dist/configure-DuXRvaw-.js +0 -1252
- package/dist/connect-options-DdLRs3mC.js +0 -699
- package/dist/control-auth-BboB6-Q9.js +0 -125
- package/dist/control-service-zISWiuJ_.js +0 -156
- package/dist/conversation-id-BzYtax7n.js +0 -235
- package/dist/conversation-id-HBz3v6j3.js +0 -38
- package/dist/conversation-runtime-CkcxSb_S.js +0 -31
- package/dist/core-DxVEjt5f.js +0 -275
- package/dist/cron-cli-CAkqablA.js +0 -713
- package/dist/daemon-cli-CCC_5IkN.js +0 -12
- package/dist/dashboard-Bqpn6xD_.js +0 -81
- package/dist/dashboard-Cd6TkhpW.js +0 -2
- package/dist/delegate-D7D8iTtT.js +0 -64
- package/dist/detached-task-runtime-D2jixP5C.js +0 -73
- package/dist/devices-cli-CMnaKl01.js +0 -498
- package/dist/diagnostics-B8Z9UWlG.js +0 -154
- package/dist/direct-dm-c4Qb2Nzg.js +0 -64
- package/dist/dispatch-acp-BL2QahHP.js +0 -981
- package/dist/dispatch-acp-manager.runtime-CynWPlJS.js +0 -3
- package/dist/dispatch-acp.runtime-OwR8G8Qt.js +0 -19
- package/dist/dispatch-r6Uv7puk.js +0 -1131
- package/dist/doctor-device-pairing-GsLelCah.js +0 -307
- package/dist/doctor-gateway-daemon-flow-Bj6Y5WoB.js +0 -250
- package/dist/doctor-gateway-health-D7WY6zgb.js +0 -63
- package/dist/doctor-health-C9GRQaPA.js +0 -59
- package/dist/doctor-health-contributions-Dk9ho6TO.js +0 -493
- package/dist/doctor-prompter-Ct6Jv52M.js +0 -56
- package/dist/doctor-workspace-status-CJCfWEI6.js +0 -75
- package/dist/dreaming-_hTKF5lN.js +0 -1582
- package/dist/dreaming-narrative-D5XTDttN.js +0 -596
- package/dist/embedded-gateway-stub.runtime-CEmoodA9.js +0 -9
- package/dist/exec-approvals-cli-ClDMlOmM.js +0 -498
- package/dist/fallbacks-7zSQjTV3.js +0 -31
- package/dist/fallbacks-CZiqVR5O.js +0 -2
- package/dist/fallbacks-shared-ChkX-wC9.js +0 -111
- package/dist/gateway-CHyZ16Py.js +0 -115
- package/dist/gateway-cli-Ddf-bjxV.js +0 -1283
- package/dist/gateway-rpc-DksPpMA7.js +0 -14
- package/dist/gateway-rpc.runtime-BKaQsdOu.js +0 -23
- package/dist/gateway-runtime-Ca4l5F_e.js +0 -15
- package/dist/gateway-status-CTPWttLS.js +0 -584
- package/dist/genesis-tools-Bkxp7zlI.js +0 -9435
- package/dist/genesis-tools.runtime-BCkQJQBx.js +0 -2
- package/dist/get-reply-HzKdsGO7.js +0 -3946
- package/dist/get-reply-from-config.runtime-C5ISSvQ1.js +0 -2
- package/dist/graph-users-BVVUU02O.js +0 -1337
- package/dist/health-3Ot3RyLe.js +0 -420
- package/dist/health-B1Ww7M60.js +0 -3
- package/dist/health-route--L24U5vY.js +0 -2
- package/dist/health-route-DQ3RbNHQ.js +0 -41
- package/dist/hooks-cli-CsJbTM0O.js +0 -433
- package/dist/image-fallbacks--ElXneWp.js +0 -31
- package/dist/image-fallbacks-D3vJILOu.js +0 -2
- package/dist/inbound-reply-dispatch-B7wRXjgc.js +0 -73
- package/dist/infra-runtime-CBfd1WMP.js +0 -38
- package/dist/init-D0hOJH3x.js +0 -59
- package/dist/library-oLeJ7WB2.js +0 -45
- package/dist/lifecycle-CeE5vcbI.js +0 -571
- package/dist/lifecycle-CqOQyQkN.js +0 -229
- package/dist/lifecycle.runtime-3bkEDR0o.js +0 -2
- package/dist/list-C3cLeCpB.js +0 -2
- package/dist/list-CcZ_ONLT.js +0 -2
- package/dist/list-DUXsFAZJ.js +0 -1212
- package/dist/list-gnrIqPtd.js +0 -131
- package/dist/list.probe-BwRgShwM.js +0 -419
- package/dist/llm-slug-generator-BkDTThCe.js +0 -79
- package/dist/load-config-CfZQrUUz.js +0 -35
- package/dist/local-dispatch.runtime-CtXGZ70F.js +0 -8
- package/dist/logs-cli-zd_9yCKn.js +0 -265
- package/dist/logs-cli.runtime-BWvHh5zg.js +0 -2
- package/dist/main-session-restart-recovery-Bnvjo9E1.js +0 -206
- package/dist/managed-image-attachments-Cib67JTY.js +0 -2
- package/dist/managed-image-attachments-Pl-_Wh-s.js +0 -635
- package/dist/manager-CfFNGdWA.js +0 -2057
- package/dist/manager-TXSNaq3B.js +0 -2
- package/dist/markdown-to-line-C83mDLjZ.js +0 -790
- package/dist/mcp-cli-CNy5N1fa.js +0 -725
- package/dist/mcp-http-Cp3nlyRC.js +0 -529
- package/dist/memory-core-host-runtime-cli-BegfMQ60.js +0 -9
- package/dist/message-BEIYueeC.js +0 -232
- package/dist/message-action-runner-BMAw7gfU.js +0 -2
- package/dist/message-action-runner-DbqkVVXA.js +0 -1407
- package/dist/message-actions-CagfUya_.js +0 -143
- package/dist/message.gateway.runtime-8N00rzUd.js +0 -2
- package/dist/models-auth-status-dUVFT_f1.js +0 -217
- package/dist/models-cli-VqeddndJ.js +0 -271
- package/dist/monitor-BgwZHXAs.js +0 -2
- package/dist/monitor-BrGXztev.js +0 -1661
- package/dist/monitor-DXqHkIkY.js +0 -788
- package/dist/monitor-DoS0pnRS.js +0 -671
- package/dist/monitor-SUo0OdqH.js +0 -1459
- package/dist/monitor-auth-BjLpAGxu.js +0 -207
- package/dist/monitor-hVTP1bQv.js +0 -1237
- package/dist/monitor-processing-CIokCAUz.js +0 -1974
- package/dist/monitor.runtime-BU4RKNXx.js +0 -2
- package/dist/monitor.webhook-DaTTjWrL.js +0 -180
- package/dist/msteams-CmdWCuQl.js +0 -35
- package/dist/native-hook-relay-Crk4McKb.js +0 -519
- package/dist/nextcloud-talk-D23cNPfx.js +0 -17
- package/dist/node-cli-DQ2FAUD5.js +0 -2276
- package/dist/nodes-cli-rSfhRw3_.js +0 -1046
- package/dist/nodes-utils-DlayGjaD.js +0 -84
- package/dist/nodes.helpers-DDUs18Tb.js +0 -34
- package/dist/notify-BSOvLWmd.js +0 -315
- package/dist/onboard-CpNpQ0N8.js +0 -70
- package/dist/onboard-helpers-BSqq4yEX.js +0 -204
- package/dist/onboard-helpers-Cw8cHMwk.js +0 -6
- package/dist/onboard-interactive-CIJMPUNi.js +0 -24
- package/dist/onboard-non-interactive-CCGFunM1.js +0 -635
- package/dist/onboard-remote-BIFjzB0v.js +0 -193
- package/dist/onboard-remote-DdfKS44K.js +0 -2
- package/dist/onboard-skills-C9Oz7pMM.js +0 -134
- package/dist/onboard-skills-DFZIuIBM.js +0 -2
- package/dist/onboard-ygfHgwjs.js +0 -2
- package/dist/openai-http-V8-EZ-Tx.js +0 -500
- package/dist/openresponses-http-B2Z5eD7p.js +0 -1128
- package/dist/operator-approvals-client-DcLaJSYz.js +0 -68
- package/dist/outbound.runtime-BioZr0Xk.js +0 -2
- package/dist/pair-command-approve-CKQ5PFPa.js +0 -44
- package/dist/persistent-bindings.lifecycle-Cc3nJyXl.js +0 -2
- package/dist/persistent-bindings.lifecycle-DMUm3wFX.js +0 -85
- package/dist/pi-embedded-DLQZrdL6.js +0 -2905
- package/dist/pi-embedded-kfFiSGXN.js +0 -4
- package/dist/pi-embedded.runtime-DXAilonb.js +0 -4
- package/dist/pi-tool-definition-adapter-D5M4iVmd.js +0 -229
- package/dist/pi-tools-CymfaKhy.js +0 -1118
- package/dist/pi-tools.before-tool-call-CBjigYgQ.js +0 -2
- package/dist/pi-tools.before-tool-call-CrhLIm2q.js +0 -433
- package/dist/plugin-DJ_g-ddv.js +0 -12195
- package/dist/plugin-enabled-CqvTLQjg.js +0 -140
- package/dist/plugin-registration-awDDNZjN.js +0 -23
- package/dist/plugin-service-Bcg-shsL.js +0 -2893
- package/dist/policy-DIf26_n6.js +0 -328
- package/dist/prepare.runtime-DCLXK1uq.js +0 -807
- package/dist/probe-0w9S79sF.js +0 -45
- package/dist/probe-BQT29JH7.js +0 -74
- package/dist/probe-CB6KR9ri.js +0 -240
- package/dist/probe-CWtFr2jl.js +0 -2
- package/dist/probe-CcBuLmYT.js +0 -2205
- package/dist/probe-DYqlJBSk.js +0 -2
- package/dist/probe-_IUalbC8.js +0 -1443
- package/dist/program-sXJs6Lyj.js +0 -111
- package/dist/prompt-select-styled-jucMgA5f.js +0 -20
- package/dist/protocol-DgMCJAA_.js +0 -2586
- package/dist/provider-dispatcher-9z9Dw59_.js +0 -2
- package/dist/provider-dispatcher-DyQNST2Z.js +0 -22
- package/dist/qr-cli-Dwc3sjiV.js +0 -2
- package/dist/qr-cli-hTiyQbbK.js +0 -349
- package/dist/reaction-runtime-api-Q9NHKbpw.js +0 -116
- package/dist/reactions-DGczAFsd.js +0 -998
- package/dist/register-service-commands-Dxwl01rR.js +0 -71
- package/dist/register.agent-Drovpr_f.js +0 -248
- package/dist/register.configure-BzQtmjqp.js +0 -15
- package/dist/register.maintenance-PRykY6qq.js +0 -363
- package/dist/register.message-Dw6OLnap.js +0 -329
- package/dist/register.onboard-CB7aqo8I.js +0 -88
- package/dist/register.runtime-5QpZP1PI.js +0 -81
- package/dist/register.setup-GLc__3H1.js +0 -150
- package/dist/register.status-health-sessions-DuQnS6V7.js +0 -1215
- package/dist/register.subclis-Bupq6ckp.js +0 -3
- package/dist/register.subclis-Df0YvsXg.js +0 -29
- package/dist/register.subclis-core-CK63Nor4.js +0 -249
- package/dist/reply-dispatch-runtime-D63ANCTQ.js +0 -13
- package/dist/reply-runtime-CLq8xugv.js +0 -10
- package/dist/reply.runtime-FitoWYiX.js +0 -2
- package/dist/restart-health-CNE6ENF8.js +0 -202
- package/dist/restart-health-DriNCEEo.js +0 -2
- package/dist/root-help-BsG62TUK.js +0 -44
- package/dist/routes-B8SmZM_C.js +0 -3341
- package/dist/routes-CVtIuQaj.js +0 -2
- package/dist/rpc-AJw8-VEF.js +0 -61
- package/dist/rpc.runtime-NzXXr3IH.js +0 -21
- package/dist/run-delivery.runtime-DDc5pTuc.js +0 -530
- package/dist/run-embedded.runtime-BlLE0DKl.js +0 -4
- package/dist/run-execution-cli.runtime-Dx9bn2nL.js +0 -4
- package/dist/run-executor.runtime-Bx0-xr66.js +0 -277
- package/dist/run-main-Q7WXDun9.js +0 -567
- package/dist/run-subagent-registry.runtime-DN441nGA.js +0 -2
- package/dist/run-wait-DOOBZLr5.js +0 -135
- package/dist/runtime-B56xKFjA.js +0 -9
- package/dist/runtime-D--xK0Me.js +0 -961
- package/dist/runtime-api-BGOAhjcp.js +0 -9
- package/dist/runtime-api-CcUMXjjy.js +0 -14
- package/dist/runtime-api-L9lB-rDz.js +0 -4
- package/dist/runtime-api-ap0gPIKQ.js +0 -9
- package/dist/runtime-embedded-pi.runtime-CQ5TsVlh.js +0 -2
- package/dist/runtime-internal-DwAoh64o.js +0 -2
- package/dist/runtime-options-CtF_gotz.js +0 -275
- package/dist/runtime-schema-7aqYdEly.js +0 -28599
- package/dist/scan-BmfJ_GUd.js +0 -2
- package/dist/scan-BwUXPVa4.js +0 -523
- package/dist/secrets-cli-Byrmt5p3.js +0 -2101
- package/dist/security-cli-Cb_qzWSU.js +0 -486
- package/dist/selection-BaZ-7Sz6.js +0 -2
- package/dist/selection-C8rwxPqg.js +0 -7743
- package/dist/send-C3Ht9Buu.js +0 -102
- package/dist/send-NpRBz3rn.js +0 -156
- package/dist/send.runtime-Buvd_P2p.js +0 -2
- package/dist/server-B8tim7RO.js +0 -13
- package/dist/server-ClAvfJJm.js +0 -77
- package/dist/server-context-Dl7OQ56d.js +0 -2
- package/dist/server-context-F2Jh0JBO.js +0 -847
- package/dist/server-node-events-Db8SbNO0.js +0 -474
- package/dist/server-plugin-bootstrap-DxpFA7AU.js +0 -13703
- package/dist/server-plugin-bootstrap-t6Z_tN0J.js +0 -2
- package/dist/server-restart-sentinel-VLhFJOy5.js +0 -684
- package/dist/server.impl-BNDZK6Lv.js +0 -12804
- package/dist/session-kill-http-C35_XMK_.js +0 -110
- package/dist/session-reset-service-Cs7o8vTZ.js +0 -497
- package/dist/session-route-DwjrtcvV.js +0 -93
- package/dist/session-status.runtime-Cp9hECfs.js +0 -2
- package/dist/session-subagent-reactivation.runtime-3hC6cwVh.js +0 -2
- package/dist/session-tab-registry-BHn1P3lZ.js +0 -581
- package/dist/session-visibility-C5yhLdDZ.js +0 -147
- package/dist/sessions-helpers-C_xGZAo7.js +0 -305
- package/dist/sessions-history-http-CQ-Ga5H3.js +0 -371
- package/dist/sessions-patch-XzBTc4fY.js +0 -309
- package/dist/sessions-resolve-CF4QOXiX.js +0 -174
- package/dist/sessions.runtime-CEV3VtEH.js +0 -2
- package/dist/setup-D218KRK6.js +0 -636
- package/dist/setup-api-BvHlVezg.js +0 -29
- package/dist/setup-core-BjceveVY.js +0 -171
- package/dist/setup-core-CxDIk2Qq.js +0 -176
- package/dist/setup-surface-6hnrFGJ3.js +0 -286
- package/dist/setup-surface-BBDyg26_.js +0 -219
- package/dist/setup-surface-HREO9zEo.js +0 -403
- package/dist/setup.finalize-CAJxf_Mm.js +0 -547
- package/dist/setup.gateway-config-g6JfCjT4.js +0 -250
- package/dist/shared-CJ2_38Ar.js +0 -198
- package/dist/shared-CecRnN5i.js +0 -76
- package/dist/shared-Zan1S92i.js +0 -121
- package/dist/slash-state-EXy1B2EX.js +0 -1911
- package/dist/src-Dda8Fvmo.js +0 -3974
- package/dist/startup-context-BLtyYbKu.js +0 -312
- package/dist/status-B1RXiDvc.js +0 -3
- package/dist/status-B4tnoXkV.js +0 -2
- package/dist/status-BWXZC-dF.js +0 -2
- package/dist/status-DNnTegVL.js +0 -395
- package/dist/status-G3Z29Cb_.js +0 -190
- package/dist/status-all-pjolmMGB.js +0 -498
- package/dist/status-json-BKR5uVlE.js +0 -14
- package/dist/status-json-command-DuIQ8dNz.js +0 -82
- package/dist/status-n2SrcSeP.js +0 -209
- package/dist/status-runtime-shared-9akPh3OB.js +0 -241
- package/dist/status-subagents.runtime-C-2-94r7.js +0 -18
- package/dist/status-text-DY-AMW7D.js +0 -237
- package/dist/status.gateway-connection.runtime-CGwlyVSQ.js +0 -2
- package/dist/status.gather-C17tVkff.js +0 -2
- package/dist/status.gather-CGXwFKnq.js +0 -292
- package/dist/status.runtime-DdcRs0mC.js +0 -2
- package/dist/status.scan-BSIqJF_S.js +0 -65
- package/dist/status.scan-overview-CbwLYoIT.js +0 -379
- package/dist/status.scan.fast-json-BnpfFSN8.js +0 -2
- package/dist/status.scan.fast-json-W54JDFUy.js +0 -132
- package/dist/status.summary-CeaTG93y.js +0 -2
- package/dist/status.summary-LPaYBiqB.js +0 -200
- package/dist/subagent-announce-Dn5xl49E.js +0 -351
- package/dist/subagent-announce-delivery-CpVHT0KZ.js +0 -726
- package/dist/subagent-announce-output-Ba8GDqQZ.js +0 -364
- package/dist/subagent-control-Clm3gsra.js +0 -506
- package/dist/subagent-followup.runtime-OlILj5hg.js +0 -68
- package/dist/subagent-orphan-recovery-Dqi7ktSy.js +0 -305
- package/dist/subagent-registry-BfT1dA_H.js +0 -3
- package/dist/subagent-registry-DsOeyo6i.js +0 -1753
- package/dist/subagent-spawn-IMKDJ_Ai.js +0 -1005
- package/dist/system-cli-QcbUPgUP.js +0 -43
- package/dist/targets-rJXMe19f.js +0 -67
- package/dist/task-executor-CT_QfGPJ.js +0 -360
- package/dist/task-owner-access-Bm14vxJa.js +0 -74
- package/dist/task-registry-D6gK7iIt.js +0 -2357
- package/dist/task-registry-delivery-runtime-CDAeASdU.js +0 -2
- package/dist/task-registry-delivery-runtime-CeWw5kdc.js +0 -3
- package/dist/task-registry.maintenance-B5hpULqB.js +0 -416
- package/dist/task-registry.maintenance-DZFQCCjc.js +0 -2
- package/dist/testing-B2Y0vJ76.js +0 -575
- package/dist/text-report-0Q8c04if.js +0 -549
- package/dist/tool-resolution-CHcj9HdC.js +0 -90
- package/dist/tools-effective-inventory-Giuks2Dt.js +0 -152
- package/dist/tools-invoke-http-FlaWbmCS.js +0 -206
- package/dist/trash-BzlpkaUi.js +0 -24
- package/dist/tui-cli-B9Emgd5Q.js +0 -4585
- package/dist/update-cli-ln47pDmA.js +0 -1759
- package/dist/upgrade-Ctu4zfU3.js +0 -1226
- package/dist/video-generation-task-status-AzBxxMK4.js +0 -163
- package/dist/wait-for-idle-before-flush-D4a3dGVX.js +0 -6025
- package/dist/wizard-models-DpLispoG.js +0 -334
|
@@ -1,2586 +0,0 @@
|
|
|
1
|
-
import { n as ENV_SECRET_REF_ID_RE } from "./types.secrets-BbgGt42I.js";
|
|
2
|
-
import { n as FILE_SECRET_REF_ID_PATTERN, r as SECRET_PROVIDER_ALIAS_PATTERN, t as EXEC_SECRET_REF_ID_JSON_SCHEMA_PATTERN } from "./ref-contract-D_WmZ91C.js";
|
|
3
|
-
import { n as GATEWAY_CLIENT_IDS, r as GATEWAY_CLIENT_MODES } from "./client-info-CjxzJxIU.js";
|
|
4
|
-
import { t as INPUT_PROVENANCE_KIND_VALUES } from "./input-provenance-CWzB1lY3.js";
|
|
5
|
-
import { n as MAX_PLUGIN_APPROVAL_TIMEOUT_MS } from "./plugin-approvals-D2nSmWGQ.js";
|
|
6
|
-
import AjvPkg from "ajv";
|
|
7
|
-
import { Type } from "typebox";
|
|
8
|
-
//#region src/agents/internal-event-contract.ts
|
|
9
|
-
const AGENT_INTERNAL_EVENT_TYPE_TASK_COMPLETION = "task_completion";
|
|
10
|
-
const AGENT_INTERNAL_EVENT_SOURCES = [
|
|
11
|
-
"subagent",
|
|
12
|
-
"cron",
|
|
13
|
-
"video_generation",
|
|
14
|
-
"music_generation"
|
|
15
|
-
];
|
|
16
|
-
const AGENT_INTERNAL_EVENT_STATUSES = [
|
|
17
|
-
"ok",
|
|
18
|
-
"timeout",
|
|
19
|
-
"error",
|
|
20
|
-
"unknown"
|
|
21
|
-
];
|
|
22
|
-
function parseSessionLabel(raw) {
|
|
23
|
-
if (typeof raw !== "string") return {
|
|
24
|
-
ok: false,
|
|
25
|
-
error: "invalid label: must be a string"
|
|
26
|
-
};
|
|
27
|
-
const trimmed = raw.trim();
|
|
28
|
-
if (!trimmed) return {
|
|
29
|
-
ok: false,
|
|
30
|
-
error: "invalid label: empty"
|
|
31
|
-
};
|
|
32
|
-
if (trimmed.length > 512) return {
|
|
33
|
-
ok: false,
|
|
34
|
-
error: `invalid label: too long (max 512)`
|
|
35
|
-
};
|
|
36
|
-
return {
|
|
37
|
-
ok: true,
|
|
38
|
-
label: trimmed
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/gateway/protocol/schema/primitives.ts
|
|
43
|
-
const NonEmptyString = Type.String({ minLength: 1 });
|
|
44
|
-
const ChatSendSessionKeyString = Type.String({
|
|
45
|
-
minLength: 1,
|
|
46
|
-
maxLength: 512
|
|
47
|
-
});
|
|
48
|
-
const SessionLabelString = Type.String({
|
|
49
|
-
minLength: 1,
|
|
50
|
-
maxLength: 512
|
|
51
|
-
});
|
|
52
|
-
const InputProvenanceSchema = Type.Object({
|
|
53
|
-
kind: Type.String({ enum: [...INPUT_PROVENANCE_KIND_VALUES] }),
|
|
54
|
-
originSessionId: Type.Optional(Type.String()),
|
|
55
|
-
sourceSessionKey: Type.Optional(Type.String()),
|
|
56
|
-
sourceChannel: Type.Optional(Type.String()),
|
|
57
|
-
sourceTool: Type.Optional(Type.String())
|
|
58
|
-
}, { additionalProperties: false });
|
|
59
|
-
const GatewayClientIdSchema = Type.Enum(GATEWAY_CLIENT_IDS);
|
|
60
|
-
const GatewayClientModeSchema = Type.Enum(GATEWAY_CLIENT_MODES);
|
|
61
|
-
Type.Union([
|
|
62
|
-
Type.Literal("env"),
|
|
63
|
-
Type.Literal("file"),
|
|
64
|
-
Type.Literal("exec")
|
|
65
|
-
]);
|
|
66
|
-
const SecretProviderAliasString = Type.String({ pattern: SECRET_PROVIDER_ALIAS_PATTERN.source });
|
|
67
|
-
const EnvSecretRefSchema = Type.Object({
|
|
68
|
-
source: Type.Literal("env"),
|
|
69
|
-
provider: SecretProviderAliasString,
|
|
70
|
-
id: Type.String({ pattern: ENV_SECRET_REF_ID_RE.source })
|
|
71
|
-
}, { additionalProperties: false });
|
|
72
|
-
const FileSecretRefSchema = Type.Object({
|
|
73
|
-
source: Type.Literal("file"),
|
|
74
|
-
provider: SecretProviderAliasString,
|
|
75
|
-
id: Type.String({ pattern: FILE_SECRET_REF_ID_PATTERN.source })
|
|
76
|
-
}, { additionalProperties: false });
|
|
77
|
-
const ExecSecretRefSchema = Type.Object({
|
|
78
|
-
source: Type.Literal("exec"),
|
|
79
|
-
provider: SecretProviderAliasString,
|
|
80
|
-
id: Type.String({ pattern: EXEC_SECRET_REF_ID_JSON_SCHEMA_PATTERN })
|
|
81
|
-
}, { additionalProperties: false });
|
|
82
|
-
const SecretRefSchema = Type.Union([
|
|
83
|
-
EnvSecretRefSchema,
|
|
84
|
-
FileSecretRefSchema,
|
|
85
|
-
ExecSecretRefSchema
|
|
86
|
-
]);
|
|
87
|
-
const SecretInputSchema = Type.Union([Type.String(), SecretRefSchema]);
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region src/gateway/protocol/schema/agent.ts
|
|
90
|
-
const AgentInternalEventSchema = Type.Object({
|
|
91
|
-
type: Type.Literal(AGENT_INTERNAL_EVENT_TYPE_TASK_COMPLETION),
|
|
92
|
-
source: Type.String({ enum: [...AGENT_INTERNAL_EVENT_SOURCES] }),
|
|
93
|
-
childSessionKey: Type.String(),
|
|
94
|
-
childSessionId: Type.Optional(Type.String()),
|
|
95
|
-
announceType: Type.String(),
|
|
96
|
-
taskLabel: Type.String(),
|
|
97
|
-
status: Type.String({ enum: [...AGENT_INTERNAL_EVENT_STATUSES] }),
|
|
98
|
-
statusLabel: Type.String(),
|
|
99
|
-
result: Type.String(),
|
|
100
|
-
mediaUrls: Type.Optional(Type.Array(Type.String())),
|
|
101
|
-
statsLine: Type.Optional(Type.String()),
|
|
102
|
-
replyInstruction: Type.String()
|
|
103
|
-
}, { additionalProperties: false });
|
|
104
|
-
Type.Object({
|
|
105
|
-
runId: NonEmptyString,
|
|
106
|
-
seq: Type.Integer({ minimum: 0 }),
|
|
107
|
-
stream: NonEmptyString,
|
|
108
|
-
ts: Type.Integer({ minimum: 0 }),
|
|
109
|
-
data: Type.Record(Type.String(), Type.Unknown())
|
|
110
|
-
}, { additionalProperties: false });
|
|
111
|
-
const MessageActionToolContextSchema = Type.Object({
|
|
112
|
-
currentChannelId: Type.Optional(Type.String()),
|
|
113
|
-
currentGraphChannelId: Type.Optional(Type.String()),
|
|
114
|
-
currentChannelProvider: Type.Optional(Type.String()),
|
|
115
|
-
currentThreadTs: Type.Optional(Type.String()),
|
|
116
|
-
currentMessageId: Type.Optional(Type.Union([Type.String(), Type.Number()])),
|
|
117
|
-
replyToMode: Type.Optional(Type.Union([
|
|
118
|
-
Type.Literal("off"),
|
|
119
|
-
Type.Literal("first"),
|
|
120
|
-
Type.Literal("all"),
|
|
121
|
-
Type.Literal("batched")
|
|
122
|
-
])),
|
|
123
|
-
hasRepliedRef: Type.Optional(Type.Object({ value: Type.Boolean() }, { additionalProperties: false })),
|
|
124
|
-
skipCrossContextDecoration: Type.Optional(Type.Boolean())
|
|
125
|
-
}, { additionalProperties: false });
|
|
126
|
-
const MessageActionParamsSchema = Type.Object({
|
|
127
|
-
channel: NonEmptyString,
|
|
128
|
-
action: NonEmptyString,
|
|
129
|
-
params: Type.Record(Type.String(), Type.Unknown()),
|
|
130
|
-
accountId: Type.Optional(Type.String()),
|
|
131
|
-
requesterSenderId: Type.Optional(Type.String()),
|
|
132
|
-
senderIsOwner: Type.Optional(Type.Boolean()),
|
|
133
|
-
sessionKey: Type.Optional(Type.String()),
|
|
134
|
-
sessionId: Type.Optional(Type.String()),
|
|
135
|
-
agentId: Type.Optional(Type.String()),
|
|
136
|
-
toolContext: Type.Optional(MessageActionToolContextSchema),
|
|
137
|
-
idempotencyKey: NonEmptyString
|
|
138
|
-
}, { additionalProperties: false });
|
|
139
|
-
const SendParamsSchema = Type.Object({
|
|
140
|
-
to: NonEmptyString,
|
|
141
|
-
message: Type.Optional(Type.String()),
|
|
142
|
-
mediaUrl: Type.Optional(Type.String()),
|
|
143
|
-
mediaUrls: Type.Optional(Type.Array(Type.String())),
|
|
144
|
-
gifPlayback: Type.Optional(Type.Boolean()),
|
|
145
|
-
channel: Type.Optional(Type.String()),
|
|
146
|
-
accountId: Type.Optional(Type.String()),
|
|
147
|
-
agentId: Type.Optional(Type.String()),
|
|
148
|
-
replyToId: Type.Optional(Type.String()),
|
|
149
|
-
threadId: Type.Optional(Type.String()),
|
|
150
|
-
sessionKey: Type.Optional(Type.String()),
|
|
151
|
-
idempotencyKey: NonEmptyString
|
|
152
|
-
}, { additionalProperties: false });
|
|
153
|
-
const PollParamsSchema = Type.Object({
|
|
154
|
-
to: NonEmptyString,
|
|
155
|
-
question: NonEmptyString,
|
|
156
|
-
options: Type.Array(NonEmptyString, {
|
|
157
|
-
minItems: 2,
|
|
158
|
-
maxItems: 12
|
|
159
|
-
}),
|
|
160
|
-
maxSelections: Type.Optional(Type.Integer({
|
|
161
|
-
minimum: 1,
|
|
162
|
-
maximum: 12
|
|
163
|
-
})),
|
|
164
|
-
durationSeconds: Type.Optional(Type.Integer({
|
|
165
|
-
minimum: 1,
|
|
166
|
-
maximum: 604800
|
|
167
|
-
})),
|
|
168
|
-
durationHours: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
169
|
-
silent: Type.Optional(Type.Boolean()),
|
|
170
|
-
isAnonymous: Type.Optional(Type.Boolean()),
|
|
171
|
-
threadId: Type.Optional(Type.String()),
|
|
172
|
-
channel: Type.Optional(Type.String()),
|
|
173
|
-
accountId: Type.Optional(Type.String()),
|
|
174
|
-
idempotencyKey: NonEmptyString
|
|
175
|
-
}, { additionalProperties: false });
|
|
176
|
-
const AgentParamsSchema = Type.Object({
|
|
177
|
-
message: NonEmptyString,
|
|
178
|
-
agentId: Type.Optional(NonEmptyString),
|
|
179
|
-
provider: Type.Optional(Type.String()),
|
|
180
|
-
model: Type.Optional(Type.String()),
|
|
181
|
-
to: Type.Optional(Type.String()),
|
|
182
|
-
replyTo: Type.Optional(Type.String()),
|
|
183
|
-
sessionId: Type.Optional(Type.String()),
|
|
184
|
-
sessionKey: Type.Optional(Type.String()),
|
|
185
|
-
thinking: Type.Optional(Type.String()),
|
|
186
|
-
deliver: Type.Optional(Type.Boolean()),
|
|
187
|
-
attachments: Type.Optional(Type.Array(Type.Unknown())),
|
|
188
|
-
channel: Type.Optional(Type.String()),
|
|
189
|
-
replyChannel: Type.Optional(Type.String()),
|
|
190
|
-
accountId: Type.Optional(Type.String()),
|
|
191
|
-
replyAccountId: Type.Optional(Type.String()),
|
|
192
|
-
threadId: Type.Optional(Type.String()),
|
|
193
|
-
groupId: Type.Optional(Type.String()),
|
|
194
|
-
groupChannel: Type.Optional(Type.String()),
|
|
195
|
-
groupSpace: Type.Optional(Type.String()),
|
|
196
|
-
timeout: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
197
|
-
bestEffortDeliver: Type.Optional(Type.Boolean()),
|
|
198
|
-
lane: Type.Optional(Type.String()),
|
|
199
|
-
cleanupBundleMcpOnRunEnd: Type.Optional(Type.Boolean()),
|
|
200
|
-
extraSystemPrompt: Type.Optional(Type.String()),
|
|
201
|
-
bootstrapContextMode: Type.Optional(Type.Union([Type.Literal("full"), Type.Literal("lightweight")])),
|
|
202
|
-
bootstrapContextRunKind: Type.Optional(Type.Union([Type.Literal("default"), Type.Literal("cron")])),
|
|
203
|
-
internalEvents: Type.Optional(Type.Array(AgentInternalEventSchema)),
|
|
204
|
-
inputProvenance: Type.Optional(InputProvenanceSchema),
|
|
205
|
-
idempotencyKey: NonEmptyString,
|
|
206
|
-
label: Type.Optional(SessionLabelString)
|
|
207
|
-
}, { additionalProperties: false });
|
|
208
|
-
const AgentIdentityParamsSchema = Type.Object({
|
|
209
|
-
agentId: Type.Optional(NonEmptyString),
|
|
210
|
-
sessionKey: Type.Optional(Type.String())
|
|
211
|
-
}, { additionalProperties: false });
|
|
212
|
-
Type.Object({
|
|
213
|
-
agentId: NonEmptyString,
|
|
214
|
-
name: Type.Optional(NonEmptyString),
|
|
215
|
-
avatar: Type.Optional(NonEmptyString),
|
|
216
|
-
emoji: Type.Optional(NonEmptyString)
|
|
217
|
-
}, { additionalProperties: false });
|
|
218
|
-
const AgentWaitParamsSchema = Type.Object({
|
|
219
|
-
runId: NonEmptyString,
|
|
220
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
221
|
-
}, { additionalProperties: false });
|
|
222
|
-
const WakeParamsSchema = Type.Object({
|
|
223
|
-
mode: Type.Union([Type.Literal("now"), Type.Literal("next-heartbeat")]),
|
|
224
|
-
text: NonEmptyString
|
|
225
|
-
}, { additionalProperties: true });
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region src/gateway/protocol/schema/agents-models-skills.ts
|
|
228
|
-
const ModelChoiceSchema = Type.Object({
|
|
229
|
-
id: NonEmptyString,
|
|
230
|
-
name: NonEmptyString,
|
|
231
|
-
provider: NonEmptyString,
|
|
232
|
-
alias: Type.Optional(NonEmptyString),
|
|
233
|
-
contextWindow: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
234
|
-
reasoning: Type.Optional(Type.Boolean())
|
|
235
|
-
}, { additionalProperties: false });
|
|
236
|
-
const AgentSummarySchema = Type.Object({
|
|
237
|
-
id: NonEmptyString,
|
|
238
|
-
name: Type.Optional(NonEmptyString),
|
|
239
|
-
identity: Type.Optional(Type.Object({
|
|
240
|
-
name: Type.Optional(NonEmptyString),
|
|
241
|
-
theme: Type.Optional(NonEmptyString),
|
|
242
|
-
emoji: Type.Optional(NonEmptyString),
|
|
243
|
-
avatar: Type.Optional(NonEmptyString),
|
|
244
|
-
avatarUrl: Type.Optional(NonEmptyString)
|
|
245
|
-
}, { additionalProperties: false })),
|
|
246
|
-
workspace: Type.Optional(NonEmptyString),
|
|
247
|
-
model: Type.Optional(Type.Object({
|
|
248
|
-
primary: Type.Optional(NonEmptyString),
|
|
249
|
-
fallbacks: Type.Optional(Type.Array(NonEmptyString))
|
|
250
|
-
}, { additionalProperties: false }))
|
|
251
|
-
}, { additionalProperties: false });
|
|
252
|
-
const AgentsListParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
253
|
-
Type.Object({
|
|
254
|
-
defaultId: NonEmptyString,
|
|
255
|
-
mainKey: NonEmptyString,
|
|
256
|
-
scope: Type.Union([Type.Literal("per-sender"), Type.Literal("global")]),
|
|
257
|
-
agents: Type.Array(AgentSummarySchema)
|
|
258
|
-
}, { additionalProperties: false });
|
|
259
|
-
const AgentsCreateParamsSchema = Type.Object({
|
|
260
|
-
name: NonEmptyString,
|
|
261
|
-
workspace: NonEmptyString,
|
|
262
|
-
model: Type.Optional(NonEmptyString),
|
|
263
|
-
emoji: Type.Optional(Type.String()),
|
|
264
|
-
avatar: Type.Optional(Type.String())
|
|
265
|
-
}, { additionalProperties: false });
|
|
266
|
-
Type.Object({
|
|
267
|
-
ok: Type.Literal(true),
|
|
268
|
-
agentId: NonEmptyString,
|
|
269
|
-
name: NonEmptyString,
|
|
270
|
-
workspace: NonEmptyString,
|
|
271
|
-
model: Type.Optional(NonEmptyString)
|
|
272
|
-
}, { additionalProperties: false });
|
|
273
|
-
const AgentsUpdateParamsSchema = Type.Object({
|
|
274
|
-
agentId: NonEmptyString,
|
|
275
|
-
name: Type.Optional(NonEmptyString),
|
|
276
|
-
workspace: Type.Optional(NonEmptyString),
|
|
277
|
-
model: Type.Optional(NonEmptyString),
|
|
278
|
-
emoji: Type.Optional(Type.String()),
|
|
279
|
-
avatar: Type.Optional(Type.String())
|
|
280
|
-
}, { additionalProperties: false });
|
|
281
|
-
Type.Object({
|
|
282
|
-
ok: Type.Literal(true),
|
|
283
|
-
agentId: NonEmptyString
|
|
284
|
-
}, { additionalProperties: false });
|
|
285
|
-
const AgentsDeleteParamsSchema = Type.Object({
|
|
286
|
-
agentId: NonEmptyString,
|
|
287
|
-
deleteFiles: Type.Optional(Type.Boolean())
|
|
288
|
-
}, { additionalProperties: false });
|
|
289
|
-
Type.Object({
|
|
290
|
-
ok: Type.Literal(true),
|
|
291
|
-
agentId: NonEmptyString,
|
|
292
|
-
removedBindings: Type.Integer({ minimum: 0 })
|
|
293
|
-
}, { additionalProperties: false });
|
|
294
|
-
const AgentsFileEntrySchema = Type.Object({
|
|
295
|
-
name: NonEmptyString,
|
|
296
|
-
path: NonEmptyString,
|
|
297
|
-
missing: Type.Boolean(),
|
|
298
|
-
size: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
299
|
-
updatedAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
300
|
-
content: Type.Optional(Type.String())
|
|
301
|
-
}, { additionalProperties: false });
|
|
302
|
-
const AgentsFilesListParamsSchema = Type.Object({ agentId: NonEmptyString }, { additionalProperties: false });
|
|
303
|
-
Type.Object({
|
|
304
|
-
agentId: NonEmptyString,
|
|
305
|
-
workspace: NonEmptyString,
|
|
306
|
-
files: Type.Array(AgentsFileEntrySchema)
|
|
307
|
-
}, { additionalProperties: false });
|
|
308
|
-
const AgentsFilesGetParamsSchema = Type.Object({
|
|
309
|
-
agentId: NonEmptyString,
|
|
310
|
-
name: NonEmptyString
|
|
311
|
-
}, { additionalProperties: false });
|
|
312
|
-
Type.Object({
|
|
313
|
-
agentId: NonEmptyString,
|
|
314
|
-
workspace: NonEmptyString,
|
|
315
|
-
file: AgentsFileEntrySchema
|
|
316
|
-
}, { additionalProperties: false });
|
|
317
|
-
const AgentsFilesSetParamsSchema = Type.Object({
|
|
318
|
-
agentId: NonEmptyString,
|
|
319
|
-
name: NonEmptyString,
|
|
320
|
-
content: Type.String()
|
|
321
|
-
}, { additionalProperties: false });
|
|
322
|
-
Type.Object({
|
|
323
|
-
ok: Type.Literal(true),
|
|
324
|
-
agentId: NonEmptyString,
|
|
325
|
-
workspace: NonEmptyString,
|
|
326
|
-
file: AgentsFileEntrySchema
|
|
327
|
-
}, { additionalProperties: false });
|
|
328
|
-
const AgentsMemoryGraphParamsSchema = Type.Object({ agentId: NonEmptyString }, { additionalProperties: false });
|
|
329
|
-
const ContactMessengerIdSchema = Type.Object({
|
|
330
|
-
channel: NonEmptyString,
|
|
331
|
-
id: NonEmptyString,
|
|
332
|
-
username: Type.Optional(Type.String())
|
|
333
|
-
}, { additionalProperties: false });
|
|
334
|
-
const ContactEntrySchema = Type.Object({
|
|
335
|
-
id: NonEmptyString,
|
|
336
|
-
name: Type.String(),
|
|
337
|
-
age: Type.Optional(Type.Number()),
|
|
338
|
-
education: Type.Optional(Type.String()),
|
|
339
|
-
traits: Type.Optional(Type.Array(Type.String())),
|
|
340
|
-
notes: Type.Optional(Type.String()),
|
|
341
|
-
messengerIds: Type.Array(ContactMessengerIdSchema),
|
|
342
|
-
createdAt: Type.Number(),
|
|
343
|
-
updatedAt: Type.Number()
|
|
344
|
-
}, { additionalProperties: false });
|
|
345
|
-
const ContactsListParamsSchema = Type.Object({ agentId: NonEmptyString }, { additionalProperties: false });
|
|
346
|
-
Type.Object({
|
|
347
|
-
agentId: NonEmptyString,
|
|
348
|
-
contacts: Type.Array(ContactEntrySchema)
|
|
349
|
-
}, { additionalProperties: false });
|
|
350
|
-
const ContactsSaveParamsSchema = Type.Object({
|
|
351
|
-
agentId: NonEmptyString,
|
|
352
|
-
id: Type.Optional(Type.String()),
|
|
353
|
-
name: Type.Optional(Type.String()),
|
|
354
|
-
age: Type.Optional(Type.Number()),
|
|
355
|
-
education: Type.Optional(Type.String()),
|
|
356
|
-
traits: Type.Optional(Type.Array(Type.String())),
|
|
357
|
-
notes: Type.Optional(Type.String()),
|
|
358
|
-
messengers: Type.Optional(Type.Array(ContactMessengerIdSchema))
|
|
359
|
-
}, { additionalProperties: false });
|
|
360
|
-
const ContactsDeleteParamsSchema = Type.Object({
|
|
361
|
-
agentId: NonEmptyString,
|
|
362
|
-
id: NonEmptyString
|
|
363
|
-
}, { additionalProperties: false });
|
|
364
|
-
const ModelsListParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
365
|
-
Type.Object({ models: Type.Array(ModelChoiceSchema) }, { additionalProperties: false });
|
|
366
|
-
const SkillsStatusParamsSchema = Type.Object({ agentId: Type.Optional(NonEmptyString) }, { additionalProperties: false });
|
|
367
|
-
const SkillsBinsParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
368
|
-
Type.Object({ bins: Type.Array(NonEmptyString) }, { additionalProperties: false });
|
|
369
|
-
const SkillsInstallParamsSchema = Type.Union([Type.Object({
|
|
370
|
-
name: NonEmptyString,
|
|
371
|
-
installId: NonEmptyString,
|
|
372
|
-
dangerouslyForceUnsafeInstall: Type.Optional(Type.Boolean()),
|
|
373
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 1e3 }))
|
|
374
|
-
}, { additionalProperties: false }), Type.Object({
|
|
375
|
-
source: Type.Literal("clawhub"),
|
|
376
|
-
slug: NonEmptyString,
|
|
377
|
-
version: Type.Optional(NonEmptyString),
|
|
378
|
-
force: Type.Optional(Type.Boolean()),
|
|
379
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 1e3 }))
|
|
380
|
-
}, { additionalProperties: false })]);
|
|
381
|
-
const SkillsUpdateParamsSchema = Type.Union([Type.Object({
|
|
382
|
-
skillKey: NonEmptyString,
|
|
383
|
-
enabled: Type.Optional(Type.Boolean()),
|
|
384
|
-
apiKey: Type.Optional(Type.String()),
|
|
385
|
-
env: Type.Optional(Type.Record(NonEmptyString, Type.String()))
|
|
386
|
-
}, { additionalProperties: false }), Type.Object({
|
|
387
|
-
source: Type.Literal("clawhub"),
|
|
388
|
-
slug: Type.Optional(NonEmptyString),
|
|
389
|
-
all: Type.Optional(Type.Boolean())
|
|
390
|
-
}, { additionalProperties: false })]);
|
|
391
|
-
const SkillsSearchParamsSchema = Type.Object({
|
|
392
|
-
query: Type.Optional(NonEmptyString),
|
|
393
|
-
limit: Type.Optional(Type.Integer({
|
|
394
|
-
minimum: 1,
|
|
395
|
-
maximum: 100
|
|
396
|
-
}))
|
|
397
|
-
}, { additionalProperties: false });
|
|
398
|
-
Type.Object({ results: Type.Array(Type.Object({
|
|
399
|
-
score: Type.Number(),
|
|
400
|
-
slug: NonEmptyString,
|
|
401
|
-
displayName: NonEmptyString,
|
|
402
|
-
summary: Type.Optional(Type.String()),
|
|
403
|
-
version: Type.Optional(NonEmptyString),
|
|
404
|
-
updatedAt: Type.Optional(Type.Integer())
|
|
405
|
-
}, { additionalProperties: false })) }, { additionalProperties: false });
|
|
406
|
-
const SkillsDetailParamsSchema = Type.Object({ slug: NonEmptyString }, { additionalProperties: false });
|
|
407
|
-
Type.Object({
|
|
408
|
-
skill: Type.Union([Type.Object({
|
|
409
|
-
slug: NonEmptyString,
|
|
410
|
-
displayName: NonEmptyString,
|
|
411
|
-
summary: Type.Optional(Type.String()),
|
|
412
|
-
tags: Type.Optional(Type.Record(NonEmptyString, Type.String())),
|
|
413
|
-
createdAt: Type.Integer(),
|
|
414
|
-
updatedAt: Type.Integer()
|
|
415
|
-
}, { additionalProperties: false }), Type.Null()]),
|
|
416
|
-
latestVersion: Type.Optional(Type.Union([Type.Object({
|
|
417
|
-
version: NonEmptyString,
|
|
418
|
-
createdAt: Type.Integer(),
|
|
419
|
-
changelog: Type.Optional(Type.String())
|
|
420
|
-
}, { additionalProperties: false }), Type.Null()])),
|
|
421
|
-
metadata: Type.Optional(Type.Union([Type.Object({
|
|
422
|
-
os: Type.Optional(Type.Union([Type.Array(Type.String()), Type.Null()])),
|
|
423
|
-
systems: Type.Optional(Type.Union([Type.Array(Type.String()), Type.Null()]))
|
|
424
|
-
}, { additionalProperties: false }), Type.Null()])),
|
|
425
|
-
owner: Type.Optional(Type.Union([Type.Object({
|
|
426
|
-
handle: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
427
|
-
displayName: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
428
|
-
image: Type.Optional(Type.Union([Type.String(), Type.Null()]))
|
|
429
|
-
}, { additionalProperties: false }), Type.Null()]))
|
|
430
|
-
}, { additionalProperties: false });
|
|
431
|
-
const ToolsCatalogParamsSchema = Type.Object({
|
|
432
|
-
agentId: Type.Optional(NonEmptyString),
|
|
433
|
-
includePlugins: Type.Optional(Type.Boolean())
|
|
434
|
-
}, { additionalProperties: false });
|
|
435
|
-
const ToolsEffectiveParamsSchema = Type.Object({
|
|
436
|
-
agentId: Type.Optional(NonEmptyString),
|
|
437
|
-
sessionKey: NonEmptyString
|
|
438
|
-
}, { additionalProperties: false });
|
|
439
|
-
const ToolCatalogProfileSchema = Type.Object({
|
|
440
|
-
id: Type.Union([
|
|
441
|
-
Type.Literal("minimal"),
|
|
442
|
-
Type.Literal("coding"),
|
|
443
|
-
Type.Literal("messaging"),
|
|
444
|
-
Type.Literal("full")
|
|
445
|
-
]),
|
|
446
|
-
label: NonEmptyString
|
|
447
|
-
}, { additionalProperties: false });
|
|
448
|
-
const ToolCatalogEntrySchema = Type.Object({
|
|
449
|
-
id: NonEmptyString,
|
|
450
|
-
label: NonEmptyString,
|
|
451
|
-
description: Type.String(),
|
|
452
|
-
source: Type.Union([Type.Literal("core"), Type.Literal("plugin")]),
|
|
453
|
-
pluginId: Type.Optional(NonEmptyString),
|
|
454
|
-
optional: Type.Optional(Type.Boolean()),
|
|
455
|
-
defaultProfiles: Type.Array(Type.Union([
|
|
456
|
-
Type.Literal("minimal"),
|
|
457
|
-
Type.Literal("coding"),
|
|
458
|
-
Type.Literal("messaging"),
|
|
459
|
-
Type.Literal("full")
|
|
460
|
-
]))
|
|
461
|
-
}, { additionalProperties: false });
|
|
462
|
-
const ToolCatalogGroupSchema = Type.Object({
|
|
463
|
-
id: NonEmptyString,
|
|
464
|
-
label: NonEmptyString,
|
|
465
|
-
source: Type.Union([Type.Literal("core"), Type.Literal("plugin")]),
|
|
466
|
-
pluginId: Type.Optional(NonEmptyString),
|
|
467
|
-
tools: Type.Array(ToolCatalogEntrySchema)
|
|
468
|
-
}, { additionalProperties: false });
|
|
469
|
-
Type.Object({
|
|
470
|
-
agentId: NonEmptyString,
|
|
471
|
-
profiles: Type.Array(ToolCatalogProfileSchema),
|
|
472
|
-
groups: Type.Array(ToolCatalogGroupSchema)
|
|
473
|
-
}, { additionalProperties: false });
|
|
474
|
-
const ToolsEffectiveEntrySchema = Type.Object({
|
|
475
|
-
id: NonEmptyString,
|
|
476
|
-
label: NonEmptyString,
|
|
477
|
-
description: Type.String(),
|
|
478
|
-
rawDescription: Type.String(),
|
|
479
|
-
source: Type.Union([
|
|
480
|
-
Type.Literal("core"),
|
|
481
|
-
Type.Literal("plugin"),
|
|
482
|
-
Type.Literal("channel")
|
|
483
|
-
]),
|
|
484
|
-
pluginId: Type.Optional(NonEmptyString),
|
|
485
|
-
channelId: Type.Optional(NonEmptyString)
|
|
486
|
-
}, { additionalProperties: false });
|
|
487
|
-
const ToolsEffectiveGroupSchema = Type.Object({
|
|
488
|
-
id: Type.Union([
|
|
489
|
-
Type.Literal("core"),
|
|
490
|
-
Type.Literal("plugin"),
|
|
491
|
-
Type.Literal("channel")
|
|
492
|
-
]),
|
|
493
|
-
label: NonEmptyString,
|
|
494
|
-
source: Type.Union([
|
|
495
|
-
Type.Literal("core"),
|
|
496
|
-
Type.Literal("plugin"),
|
|
497
|
-
Type.Literal("channel")
|
|
498
|
-
]),
|
|
499
|
-
tools: Type.Array(ToolsEffectiveEntrySchema)
|
|
500
|
-
}, { additionalProperties: false });
|
|
501
|
-
Type.Object({
|
|
502
|
-
agentId: NonEmptyString,
|
|
503
|
-
profile: NonEmptyString,
|
|
504
|
-
groups: Type.Array(ToolsEffectiveGroupSchema)
|
|
505
|
-
}, { additionalProperties: false });
|
|
506
|
-
//#endregion
|
|
507
|
-
//#region src/gateway/protocol/schema/canvas.ts
|
|
508
|
-
const CanvasDocumentKindSchema = Type.String({ enum: [
|
|
509
|
-
"html_bundle",
|
|
510
|
-
"url_embed",
|
|
511
|
-
"document",
|
|
512
|
-
"image",
|
|
513
|
-
"video_asset",
|
|
514
|
-
"presentation_asset",
|
|
515
|
-
"model_3d",
|
|
516
|
-
"vector_image"
|
|
517
|
-
] });
|
|
518
|
-
const CanvasDocumentSurfaceSchema = Type.String({ enum: [
|
|
519
|
-
"assistant_message",
|
|
520
|
-
"tool_card",
|
|
521
|
-
"sidebar"
|
|
522
|
-
] });
|
|
523
|
-
const CanvasDocumentAssetSchema = Type.Object({
|
|
524
|
-
logicalPath: NonEmptyString,
|
|
525
|
-
sourcePath: NonEmptyString,
|
|
526
|
-
contentType: Type.Optional(NonEmptyString),
|
|
527
|
-
role: Type.Optional(Type.String({ enum: [
|
|
528
|
-
"source",
|
|
529
|
-
"sidecar",
|
|
530
|
-
"texture"
|
|
531
|
-
] }))
|
|
532
|
-
}, { additionalProperties: false });
|
|
533
|
-
const CanvasDocumentMutationProperties = {
|
|
534
|
-
kind: Type.Optional(CanvasDocumentKindSchema),
|
|
535
|
-
title: Type.Optional(NonEmptyString),
|
|
536
|
-
preferredHeight: Type.Optional(Type.Number()),
|
|
537
|
-
surface: Type.Optional(CanvasDocumentSurfaceSchema),
|
|
538
|
-
html: Type.Optional(Type.String({ minLength: 1 })),
|
|
539
|
-
path: Type.Optional(NonEmptyString),
|
|
540
|
-
url: Type.Optional(NonEmptyString),
|
|
541
|
-
workspaceDir: Type.Optional(NonEmptyString),
|
|
542
|
-
assets: Type.Optional(Type.Array(CanvasDocumentAssetSchema)),
|
|
543
|
-
sourceMime: Type.Optional(NonEmptyString),
|
|
544
|
-
sourceFileName: Type.Optional(NonEmptyString),
|
|
545
|
-
viewerOptions: Type.Optional(Type.Record(Type.String(), Type.Unknown()))
|
|
546
|
-
};
|
|
547
|
-
const CanvasDocumentCreateParamsSchema = Type.Object({
|
|
548
|
-
id: Type.Optional(NonEmptyString),
|
|
549
|
-
...CanvasDocumentMutationProperties
|
|
550
|
-
}, { additionalProperties: false });
|
|
551
|
-
const CanvasDocumentUpdateParamsSchema = Type.Object({
|
|
552
|
-
id: NonEmptyString,
|
|
553
|
-
...CanvasDocumentMutationProperties
|
|
554
|
-
}, { additionalProperties: false });
|
|
555
|
-
const CanvasDocumentManifestAssetSchema = Type.Object({
|
|
556
|
-
logicalPath: NonEmptyString,
|
|
557
|
-
contentType: Type.Optional(NonEmptyString),
|
|
558
|
-
sourceFileName: Type.Optional(NonEmptyString),
|
|
559
|
-
sizeBytes: Type.Optional(Type.Number()),
|
|
560
|
-
role: Type.Optional(Type.String({ enum: [
|
|
561
|
-
"source",
|
|
562
|
-
"sidecar",
|
|
563
|
-
"texture"
|
|
564
|
-
] }))
|
|
565
|
-
}, { additionalProperties: false });
|
|
566
|
-
const CanvasDocumentManifestSchema = Type.Object({
|
|
567
|
-
id: NonEmptyString,
|
|
568
|
-
kind: CanvasDocumentKindSchema,
|
|
569
|
-
title: Type.Optional(NonEmptyString),
|
|
570
|
-
preferredHeight: Type.Optional(Type.Number()),
|
|
571
|
-
createdAt: NonEmptyString,
|
|
572
|
-
updatedAt: Type.Optional(NonEmptyString),
|
|
573
|
-
revision: Type.Number(),
|
|
574
|
-
entryUrl: NonEmptyString,
|
|
575
|
-
localEntrypoint: Type.Optional(NonEmptyString),
|
|
576
|
-
externalUrl: Type.Optional(NonEmptyString),
|
|
577
|
-
sourceMime: Type.Optional(NonEmptyString),
|
|
578
|
-
sourceFileName: Type.Optional(NonEmptyString),
|
|
579
|
-
viewer: Type.Optional(Type.String({ enum: [
|
|
580
|
-
"html",
|
|
581
|
-
"url",
|
|
582
|
-
"pdf",
|
|
583
|
-
"image",
|
|
584
|
-
"video",
|
|
585
|
-
"pptx",
|
|
586
|
-
"ppt_fallback",
|
|
587
|
-
"threejs",
|
|
588
|
-
"svg",
|
|
589
|
-
"download"
|
|
590
|
-
] })),
|
|
591
|
-
viewerOptions: Type.Optional(Type.Record(Type.String(), Type.Unknown())),
|
|
592
|
-
surface: Type.Optional(CanvasDocumentSurfaceSchema),
|
|
593
|
-
assets: Type.Array(CanvasDocumentManifestAssetSchema)
|
|
594
|
-
}, { additionalProperties: false });
|
|
595
|
-
const CanvasDocumentCreateResultSchema = CanvasDocumentManifestSchema;
|
|
596
|
-
const CanvasDocumentListParamsSchema = Type.Object({ limit: Type.Optional(Type.Integer({
|
|
597
|
-
minimum: 1,
|
|
598
|
-
maximum: 100
|
|
599
|
-
})) }, { additionalProperties: false });
|
|
600
|
-
const CanvasDocumentListResultSchema = Type.Object({ documents: Type.Array(CanvasDocumentManifestSchema) }, { additionalProperties: false });
|
|
601
|
-
//#endregion
|
|
602
|
-
//#region src/gateway/protocol/schema/channels.ts
|
|
603
|
-
const TalkModeParamsSchema = Type.Object({
|
|
604
|
-
enabled: Type.Boolean(),
|
|
605
|
-
phase: Type.Optional(Type.String())
|
|
606
|
-
}, { additionalProperties: false });
|
|
607
|
-
const TalkConfigParamsSchema = Type.Object({ includeSecrets: Type.Optional(Type.Boolean()) }, { additionalProperties: false });
|
|
608
|
-
const TalkSpeakParamsSchema = Type.Object({
|
|
609
|
-
text: NonEmptyString,
|
|
610
|
-
voiceId: Type.Optional(Type.String()),
|
|
611
|
-
modelId: Type.Optional(Type.String()),
|
|
612
|
-
outputFormat: Type.Optional(Type.String()),
|
|
613
|
-
speed: Type.Optional(Type.Number()),
|
|
614
|
-
rateWpm: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
615
|
-
stability: Type.Optional(Type.Number()),
|
|
616
|
-
similarity: Type.Optional(Type.Number()),
|
|
617
|
-
style: Type.Optional(Type.Number()),
|
|
618
|
-
speakerBoost: Type.Optional(Type.Boolean()),
|
|
619
|
-
seed: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
620
|
-
normalize: Type.Optional(Type.String()),
|
|
621
|
-
language: Type.Optional(Type.String()),
|
|
622
|
-
latencyTier: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
623
|
-
}, { additionalProperties: false });
|
|
624
|
-
const TalkRealtimeSessionParamsSchema = Type.Object({
|
|
625
|
-
sessionKey: Type.Optional(Type.String()),
|
|
626
|
-
provider: Type.Optional(Type.String()),
|
|
627
|
-
model: Type.Optional(Type.String()),
|
|
628
|
-
voice: Type.Optional(Type.String())
|
|
629
|
-
}, { additionalProperties: false });
|
|
630
|
-
const TalkRealtimeSessionResultSchema = Type.Object({
|
|
631
|
-
provider: NonEmptyString,
|
|
632
|
-
clientSecret: NonEmptyString,
|
|
633
|
-
model: Type.Optional(Type.String()),
|
|
634
|
-
voice: Type.Optional(Type.String()),
|
|
635
|
-
expiresAt: Type.Optional(Type.Number())
|
|
636
|
-
}, { additionalProperties: false });
|
|
637
|
-
const talkProviderFieldSchemas = { apiKey: Type.Optional(SecretInputSchema) };
|
|
638
|
-
const TalkProviderConfigSchema = Type.Object(talkProviderFieldSchemas, { additionalProperties: true });
|
|
639
|
-
const ResolvedTalkConfigSchema = Type.Object({
|
|
640
|
-
provider: Type.String(),
|
|
641
|
-
config: TalkProviderConfigSchema
|
|
642
|
-
}, { additionalProperties: false });
|
|
643
|
-
const TalkConfigSchema = Type.Object({
|
|
644
|
-
provider: Type.Optional(Type.String()),
|
|
645
|
-
providers: Type.Optional(Type.Record(Type.String(), TalkProviderConfigSchema)),
|
|
646
|
-
resolved: ResolvedTalkConfigSchema,
|
|
647
|
-
interruptOnSpeech: Type.Optional(Type.Boolean()),
|
|
648
|
-
silenceTimeoutMs: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
649
|
-
}, { additionalProperties: false });
|
|
650
|
-
const TalkConfigResultSchema = Type.Object({ config: Type.Object({
|
|
651
|
-
talk: Type.Optional(TalkConfigSchema),
|
|
652
|
-
session: Type.Optional(Type.Object({ mainKey: Type.Optional(Type.String()) }, { additionalProperties: false })),
|
|
653
|
-
ui: Type.Optional(Type.Object({ seamColor: Type.Optional(Type.String()) }, { additionalProperties: false }))
|
|
654
|
-
}, { additionalProperties: false }) }, { additionalProperties: false });
|
|
655
|
-
const TalkSpeakResultSchema = Type.Object({
|
|
656
|
-
audioBase64: NonEmptyString,
|
|
657
|
-
provider: NonEmptyString,
|
|
658
|
-
outputFormat: Type.Optional(Type.String()),
|
|
659
|
-
voiceCompatible: Type.Optional(Type.Boolean()),
|
|
660
|
-
mimeType: Type.Optional(Type.String()),
|
|
661
|
-
fileExtension: Type.Optional(Type.String())
|
|
662
|
-
}, { additionalProperties: false });
|
|
663
|
-
const ChannelsStatusParamsSchema = Type.Object({
|
|
664
|
-
probe: Type.Optional(Type.Boolean()),
|
|
665
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
666
|
-
}, { additionalProperties: false });
|
|
667
|
-
const ChannelAccountSnapshotSchema = Type.Object({
|
|
668
|
-
accountId: NonEmptyString,
|
|
669
|
-
name: Type.Optional(Type.String()),
|
|
670
|
-
enabled: Type.Optional(Type.Boolean()),
|
|
671
|
-
configured: Type.Optional(Type.Boolean()),
|
|
672
|
-
linked: Type.Optional(Type.Boolean()),
|
|
673
|
-
running: Type.Optional(Type.Boolean()),
|
|
674
|
-
connected: Type.Optional(Type.Boolean()),
|
|
675
|
-
reconnectAttempts: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
676
|
-
lastConnectedAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
677
|
-
lastError: Type.Optional(Type.String()),
|
|
678
|
-
healthState: Type.Optional(Type.String()),
|
|
679
|
-
lastStartAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
680
|
-
lastStopAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
681
|
-
lastInboundAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
682
|
-
lastOutboundAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
683
|
-
lastTransportActivityAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
684
|
-
busy: Type.Optional(Type.Boolean()),
|
|
685
|
-
activeRuns: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
686
|
-
lastRunActivityAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
687
|
-
lastProbeAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
688
|
-
mode: Type.Optional(Type.String()),
|
|
689
|
-
dmPolicy: Type.Optional(Type.String()),
|
|
690
|
-
allowFrom: Type.Optional(Type.Array(Type.String())),
|
|
691
|
-
tokenSource: Type.Optional(Type.String()),
|
|
692
|
-
botTokenSource: Type.Optional(Type.String()),
|
|
693
|
-
appTokenSource: Type.Optional(Type.String()),
|
|
694
|
-
baseUrl: Type.Optional(Type.String()),
|
|
695
|
-
allowUnmentionedGroups: Type.Optional(Type.Boolean()),
|
|
696
|
-
cliPath: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
697
|
-
dbPath: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
698
|
-
port: Type.Optional(Type.Union([Type.Integer({ minimum: 0 }), Type.Null()])),
|
|
699
|
-
probe: Type.Optional(Type.Unknown()),
|
|
700
|
-
audit: Type.Optional(Type.Unknown()),
|
|
701
|
-
application: Type.Optional(Type.Unknown())
|
|
702
|
-
}, { additionalProperties: true });
|
|
703
|
-
const ChannelUiMetaSchema = Type.Object({
|
|
704
|
-
id: NonEmptyString,
|
|
705
|
-
label: NonEmptyString,
|
|
706
|
-
detailLabel: NonEmptyString,
|
|
707
|
-
systemImage: Type.Optional(Type.String())
|
|
708
|
-
}, { additionalProperties: false });
|
|
709
|
-
Type.Object({
|
|
710
|
-
ts: Type.Integer({ minimum: 0 }),
|
|
711
|
-
channelOrder: Type.Array(NonEmptyString),
|
|
712
|
-
channelLabels: Type.Record(NonEmptyString, NonEmptyString),
|
|
713
|
-
channelDetailLabels: Type.Optional(Type.Record(NonEmptyString, NonEmptyString)),
|
|
714
|
-
channelSystemImages: Type.Optional(Type.Record(NonEmptyString, NonEmptyString)),
|
|
715
|
-
channelMeta: Type.Optional(Type.Array(ChannelUiMetaSchema)),
|
|
716
|
-
channels: Type.Record(NonEmptyString, Type.Unknown()),
|
|
717
|
-
channelAccounts: Type.Record(NonEmptyString, Type.Array(ChannelAccountSnapshotSchema)),
|
|
718
|
-
channelDefaultAccountId: Type.Record(NonEmptyString, NonEmptyString)
|
|
719
|
-
}, { additionalProperties: false });
|
|
720
|
-
const ChannelsLogoutParamsSchema = Type.Object({
|
|
721
|
-
channel: NonEmptyString,
|
|
722
|
-
accountId: Type.Optional(Type.String())
|
|
723
|
-
}, { additionalProperties: false });
|
|
724
|
-
const ChannelsStartParamsSchema = Type.Object({
|
|
725
|
-
channel: NonEmptyString,
|
|
726
|
-
accountId: Type.Optional(Type.String())
|
|
727
|
-
}, { additionalProperties: false });
|
|
728
|
-
const WebLoginStartParamsSchema = Type.Object({
|
|
729
|
-
force: Type.Optional(Type.Boolean()),
|
|
730
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
731
|
-
verbose: Type.Optional(Type.Boolean()),
|
|
732
|
-
accountId: Type.Optional(Type.String())
|
|
733
|
-
}, { additionalProperties: false });
|
|
734
|
-
const QrDataUrlSchema = Type.String({
|
|
735
|
-
maxLength: 16384,
|
|
736
|
-
pattern: "^data:image/png;base64,"
|
|
737
|
-
});
|
|
738
|
-
const WebLoginWaitParamsSchema = Type.Object({
|
|
739
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
740
|
-
accountId: Type.Optional(Type.String()),
|
|
741
|
-
currentQrDataUrl: Type.Optional(QrDataUrlSchema)
|
|
742
|
-
}, { additionalProperties: false });
|
|
743
|
-
const COMMAND_DESCRIPTION_MAX_LENGTH = 2e3;
|
|
744
|
-
const BoundedNonEmptyString = (maxLength) => Type.String({
|
|
745
|
-
minLength: 1,
|
|
746
|
-
maxLength
|
|
747
|
-
});
|
|
748
|
-
const CommandSourceSchema = Type.Union([
|
|
749
|
-
Type.Literal("native"),
|
|
750
|
-
Type.Literal("skill"),
|
|
751
|
-
Type.Literal("plugin")
|
|
752
|
-
]);
|
|
753
|
-
const CommandScopeSchema = Type.Union([
|
|
754
|
-
Type.Literal("text"),
|
|
755
|
-
Type.Literal("native"),
|
|
756
|
-
Type.Literal("both")
|
|
757
|
-
]);
|
|
758
|
-
const CommandCategorySchema = Type.Union([
|
|
759
|
-
Type.Literal("session"),
|
|
760
|
-
Type.Literal("options"),
|
|
761
|
-
Type.Literal("status"),
|
|
762
|
-
Type.Literal("management"),
|
|
763
|
-
Type.Literal("media"),
|
|
764
|
-
Type.Literal("tools"),
|
|
765
|
-
Type.Literal("docks")
|
|
766
|
-
]);
|
|
767
|
-
const CommandArgChoiceSchema = Type.Object({
|
|
768
|
-
value: Type.String({ maxLength: 200 }),
|
|
769
|
-
label: Type.String({ maxLength: 200 })
|
|
770
|
-
}, { additionalProperties: false });
|
|
771
|
-
const CommandArgSchema = Type.Object({
|
|
772
|
-
name: BoundedNonEmptyString(200),
|
|
773
|
-
description: Type.String({ maxLength: 500 }),
|
|
774
|
-
type: Type.Union([
|
|
775
|
-
Type.Literal("string"),
|
|
776
|
-
Type.Literal("number"),
|
|
777
|
-
Type.Literal("boolean")
|
|
778
|
-
]),
|
|
779
|
-
required: Type.Optional(Type.Boolean()),
|
|
780
|
-
choices: Type.Optional(Type.Array(CommandArgChoiceSchema, { maxItems: 50 })),
|
|
781
|
-
dynamic: Type.Optional(Type.Boolean())
|
|
782
|
-
}, { additionalProperties: false });
|
|
783
|
-
const CommandEntrySchema = Type.Object({
|
|
784
|
-
name: BoundedNonEmptyString(200),
|
|
785
|
-
nativeName: Type.Optional(BoundedNonEmptyString(200)),
|
|
786
|
-
textAliases: Type.Optional(Type.Array(BoundedNonEmptyString(200), { maxItems: 20 })),
|
|
787
|
-
description: Type.String({ maxLength: COMMAND_DESCRIPTION_MAX_LENGTH }),
|
|
788
|
-
category: Type.Optional(CommandCategorySchema),
|
|
789
|
-
source: CommandSourceSchema,
|
|
790
|
-
scope: CommandScopeSchema,
|
|
791
|
-
acceptsArgs: Type.Boolean(),
|
|
792
|
-
args: Type.Optional(Type.Array(CommandArgSchema, { maxItems: 20 }))
|
|
793
|
-
}, { additionalProperties: false });
|
|
794
|
-
const CommandsListParamsSchema = Type.Object({
|
|
795
|
-
agentId: Type.Optional(NonEmptyString),
|
|
796
|
-
provider: Type.Optional(NonEmptyString),
|
|
797
|
-
scope: Type.Optional(CommandScopeSchema),
|
|
798
|
-
includeArgs: Type.Optional(Type.Boolean())
|
|
799
|
-
}, { additionalProperties: false });
|
|
800
|
-
Type.Object({ commands: Type.Array(CommandEntrySchema, { maxItems: 500 }) }, { additionalProperties: false });
|
|
801
|
-
//#endregion
|
|
802
|
-
//#region src/gateway/protocol/schema/config.ts
|
|
803
|
-
const ConfigSchemaLookupPathString = Type.String({
|
|
804
|
-
minLength: 1,
|
|
805
|
-
maxLength: 1024,
|
|
806
|
-
pattern: "^[A-Za-z0-9_./\\[\\]\\-*]+$"
|
|
807
|
-
});
|
|
808
|
-
const ConfigDeliveryContextSchema = Type.Object({
|
|
809
|
-
channel: Type.Optional(Type.String()),
|
|
810
|
-
to: Type.Optional(Type.String()),
|
|
811
|
-
accountId: Type.Optional(Type.String()),
|
|
812
|
-
threadId: Type.Optional(Type.Union([Type.String(), Type.Number()]))
|
|
813
|
-
}, { additionalProperties: false });
|
|
814
|
-
const ConfigGetParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
815
|
-
const ConfigSetParamsSchema = Type.Object({
|
|
816
|
-
raw: NonEmptyString,
|
|
817
|
-
baseHash: Type.Optional(NonEmptyString)
|
|
818
|
-
}, { additionalProperties: false });
|
|
819
|
-
const ConfigApplyLikeParamsSchema = Type.Object({
|
|
820
|
-
raw: NonEmptyString,
|
|
821
|
-
baseHash: Type.Optional(NonEmptyString),
|
|
822
|
-
sessionKey: Type.Optional(Type.String()),
|
|
823
|
-
deliveryContext: Type.Optional(ConfigDeliveryContextSchema),
|
|
824
|
-
note: Type.Optional(Type.String()),
|
|
825
|
-
restartDelayMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
826
|
-
}, { additionalProperties: false });
|
|
827
|
-
const ConfigApplyParamsSchema = ConfigApplyLikeParamsSchema;
|
|
828
|
-
const ConfigPatchParamsSchema = ConfigApplyLikeParamsSchema;
|
|
829
|
-
const ConfigSchemaParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
830
|
-
const ConfigSchemaLookupParamsSchema = Type.Object({ path: ConfigSchemaLookupPathString }, { additionalProperties: false });
|
|
831
|
-
const UpdateRunParamsSchema = Type.Object({
|
|
832
|
-
sessionKey: Type.Optional(Type.String()),
|
|
833
|
-
deliveryContext: Type.Optional(ConfigDeliveryContextSchema),
|
|
834
|
-
note: Type.Optional(Type.String()),
|
|
835
|
-
restartDelayMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
836
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
837
|
-
}, { additionalProperties: false });
|
|
838
|
-
const ConfigUiHintSchema = Type.Object({
|
|
839
|
-
label: Type.Optional(Type.String()),
|
|
840
|
-
help: Type.Optional(Type.String()),
|
|
841
|
-
tags: Type.Optional(Type.Array(Type.String())),
|
|
842
|
-
group: Type.Optional(Type.String()),
|
|
843
|
-
order: Type.Optional(Type.Integer()),
|
|
844
|
-
advanced: Type.Optional(Type.Boolean()),
|
|
845
|
-
sensitive: Type.Optional(Type.Boolean()),
|
|
846
|
-
placeholder: Type.Optional(Type.String()),
|
|
847
|
-
itemTemplate: Type.Optional(Type.Unknown())
|
|
848
|
-
}, { additionalProperties: false });
|
|
849
|
-
Type.Object({
|
|
850
|
-
schema: Type.Unknown(),
|
|
851
|
-
uiHints: Type.Record(Type.String(), ConfigUiHintSchema),
|
|
852
|
-
version: NonEmptyString,
|
|
853
|
-
generatedAt: NonEmptyString
|
|
854
|
-
}, { additionalProperties: false });
|
|
855
|
-
const ConfigSchemaLookupChildSchema = Type.Object({
|
|
856
|
-
key: NonEmptyString,
|
|
857
|
-
path: NonEmptyString,
|
|
858
|
-
type: Type.Optional(Type.Union([Type.String(), Type.Array(Type.String())])),
|
|
859
|
-
required: Type.Boolean(),
|
|
860
|
-
hasChildren: Type.Boolean(),
|
|
861
|
-
hint: Type.Optional(ConfigUiHintSchema),
|
|
862
|
-
hintPath: Type.Optional(Type.String())
|
|
863
|
-
}, { additionalProperties: false });
|
|
864
|
-
const ConfigSchemaLookupResultSchema = Type.Object({
|
|
865
|
-
path: NonEmptyString,
|
|
866
|
-
schema: Type.Unknown(),
|
|
867
|
-
hint: Type.Optional(ConfigUiHintSchema),
|
|
868
|
-
hintPath: Type.Optional(Type.String()),
|
|
869
|
-
children: Type.Array(ConfigSchemaLookupChildSchema)
|
|
870
|
-
}, { additionalProperties: false });
|
|
871
|
-
//#endregion
|
|
872
|
-
//#region src/gateway/protocol/schema/cron.ts
|
|
873
|
-
function cronAgentTurnPayloadSchema(params) {
|
|
874
|
-
return Type.Object({
|
|
875
|
-
kind: Type.Literal("agentTurn"),
|
|
876
|
-
message: params.message,
|
|
877
|
-
model: Type.Optional(Type.String()),
|
|
878
|
-
fallbacks: Type.Optional(Type.Array(Type.String())),
|
|
879
|
-
thinking: Type.Optional(Type.String()),
|
|
880
|
-
timeoutSeconds: Type.Optional(Type.Number({ minimum: 0 })),
|
|
881
|
-
allowUnsafeExternalContent: Type.Optional(Type.Boolean()),
|
|
882
|
-
lightContext: Type.Optional(Type.Boolean()),
|
|
883
|
-
toolsAllow: Type.Optional(params.toolsAllow)
|
|
884
|
-
}, { additionalProperties: false });
|
|
885
|
-
}
|
|
886
|
-
const CronSessionTargetSchema = Type.Union([
|
|
887
|
-
Type.Literal("main"),
|
|
888
|
-
Type.Literal("isolated"),
|
|
889
|
-
Type.Literal("current"),
|
|
890
|
-
Type.String({ pattern: "^session:.+" })
|
|
891
|
-
]);
|
|
892
|
-
const CronWakeModeSchema = Type.Union([Type.Literal("next-heartbeat"), Type.Literal("now")]);
|
|
893
|
-
const CronRunStatusSchema = Type.Union([
|
|
894
|
-
Type.Literal("ok"),
|
|
895
|
-
Type.Literal("error"),
|
|
896
|
-
Type.Literal("skipped")
|
|
897
|
-
]);
|
|
898
|
-
const CronSortDirSchema = Type.Union([Type.Literal("asc"), Type.Literal("desc")]);
|
|
899
|
-
const CronJobsEnabledFilterSchema = Type.Union([
|
|
900
|
-
Type.Literal("all"),
|
|
901
|
-
Type.Literal("enabled"),
|
|
902
|
-
Type.Literal("disabled")
|
|
903
|
-
]);
|
|
904
|
-
const CronJobsSortBySchema = Type.Union([
|
|
905
|
-
Type.Literal("nextRunAtMs"),
|
|
906
|
-
Type.Literal("updatedAtMs"),
|
|
907
|
-
Type.Literal("name")
|
|
908
|
-
]);
|
|
909
|
-
const CronRunsStatusFilterSchema = Type.Union([
|
|
910
|
-
Type.Literal("all"),
|
|
911
|
-
Type.Literal("ok"),
|
|
912
|
-
Type.Literal("error"),
|
|
913
|
-
Type.Literal("skipped")
|
|
914
|
-
]);
|
|
915
|
-
const CronRunsStatusValueSchema = Type.Union([
|
|
916
|
-
Type.Literal("ok"),
|
|
917
|
-
Type.Literal("error"),
|
|
918
|
-
Type.Literal("skipped")
|
|
919
|
-
]);
|
|
920
|
-
const CronDeliveryStatusSchema = Type.Union([
|
|
921
|
-
Type.Literal("delivered"),
|
|
922
|
-
Type.Literal("not-delivered"),
|
|
923
|
-
Type.Literal("unknown"),
|
|
924
|
-
Type.Literal("not-requested")
|
|
925
|
-
]);
|
|
926
|
-
const CronFailoverReasonSchema = Type.Union([
|
|
927
|
-
Type.Literal("auth"),
|
|
928
|
-
Type.Literal("format"),
|
|
929
|
-
Type.Literal("rate_limit"),
|
|
930
|
-
Type.Literal("billing"),
|
|
931
|
-
Type.Literal("timeout"),
|
|
932
|
-
Type.Literal("model_not_found"),
|
|
933
|
-
Type.Literal("unknown")
|
|
934
|
-
]);
|
|
935
|
-
const CronCommonOptionalFields = {
|
|
936
|
-
agentId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
937
|
-
sessionKey: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
938
|
-
description: Type.Optional(Type.String()),
|
|
939
|
-
enabled: Type.Optional(Type.Boolean()),
|
|
940
|
-
deleteAfterRun: Type.Optional(Type.Boolean())
|
|
941
|
-
};
|
|
942
|
-
function cronIdOrJobIdParams(extraFields) {
|
|
943
|
-
return Type.Union([Type.Object({
|
|
944
|
-
id: NonEmptyString,
|
|
945
|
-
...extraFields
|
|
946
|
-
}, { additionalProperties: false }), Type.Object({
|
|
947
|
-
jobId: NonEmptyString,
|
|
948
|
-
...extraFields
|
|
949
|
-
}, { additionalProperties: false })]);
|
|
950
|
-
}
|
|
951
|
-
const CronRunLogJobIdSchema = Type.String({
|
|
952
|
-
minLength: 1,
|
|
953
|
-
pattern: "^[^/\\\\]+$"
|
|
954
|
-
});
|
|
955
|
-
const CronScheduleSchema = Type.Union([
|
|
956
|
-
Type.Object({
|
|
957
|
-
kind: Type.Literal("at"),
|
|
958
|
-
at: NonEmptyString
|
|
959
|
-
}, { additionalProperties: false }),
|
|
960
|
-
Type.Object({
|
|
961
|
-
kind: Type.Literal("every"),
|
|
962
|
-
everyMs: Type.Integer({ minimum: 1 }),
|
|
963
|
-
anchorMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
964
|
-
}, { additionalProperties: false }),
|
|
965
|
-
Type.Object({
|
|
966
|
-
kind: Type.Literal("cron"),
|
|
967
|
-
expr: NonEmptyString,
|
|
968
|
-
tz: Type.Optional(Type.String()),
|
|
969
|
-
staggerMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
970
|
-
}, { additionalProperties: false })
|
|
971
|
-
]);
|
|
972
|
-
const CronPayloadSchema = Type.Union([Type.Object({
|
|
973
|
-
kind: Type.Literal("systemEvent"),
|
|
974
|
-
text: NonEmptyString
|
|
975
|
-
}, { additionalProperties: false }), cronAgentTurnPayloadSchema({
|
|
976
|
-
message: NonEmptyString,
|
|
977
|
-
toolsAllow: Type.Array(Type.String())
|
|
978
|
-
})]);
|
|
979
|
-
const CronPayloadPatchSchema = Type.Union([Type.Object({
|
|
980
|
-
kind: Type.Literal("systemEvent"),
|
|
981
|
-
text: Type.Optional(NonEmptyString)
|
|
982
|
-
}, { additionalProperties: false }), cronAgentTurnPayloadSchema({
|
|
983
|
-
message: Type.Optional(NonEmptyString),
|
|
984
|
-
toolsAllow: Type.Union([Type.Array(Type.String()), Type.Null()])
|
|
985
|
-
})]);
|
|
986
|
-
const CronFailureAlertSchema = Type.Object({
|
|
987
|
-
after: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
988
|
-
channel: Type.Optional(Type.Union([Type.Literal("last"), NonEmptyString])),
|
|
989
|
-
to: Type.Optional(Type.String()),
|
|
990
|
-
cooldownMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
991
|
-
mode: Type.Optional(Type.Union([Type.Literal("announce"), Type.Literal("webhook")])),
|
|
992
|
-
accountId: Type.Optional(NonEmptyString)
|
|
993
|
-
}, { additionalProperties: false });
|
|
994
|
-
const CronFailureDestinationSchema = Type.Object({
|
|
995
|
-
channel: Type.Optional(Type.Union([Type.Literal("last"), NonEmptyString])),
|
|
996
|
-
to: Type.Optional(Type.String()),
|
|
997
|
-
accountId: Type.Optional(NonEmptyString),
|
|
998
|
-
mode: Type.Optional(Type.Union([Type.Literal("announce"), Type.Literal("webhook")]))
|
|
999
|
-
}, { additionalProperties: false });
|
|
1000
|
-
const CronDeliverySharedProperties = {
|
|
1001
|
-
channel: Type.Optional(Type.Union([Type.Literal("last"), NonEmptyString])),
|
|
1002
|
-
accountId: Type.Optional(NonEmptyString),
|
|
1003
|
-
bestEffort: Type.Optional(Type.Boolean()),
|
|
1004
|
-
failureDestination: Type.Optional(CronFailureDestinationSchema)
|
|
1005
|
-
};
|
|
1006
|
-
const CronDeliveryNoopSchema = Type.Object({
|
|
1007
|
-
mode: Type.Literal("none"),
|
|
1008
|
-
...CronDeliverySharedProperties,
|
|
1009
|
-
to: Type.Optional(Type.String())
|
|
1010
|
-
}, { additionalProperties: false });
|
|
1011
|
-
const CronDeliveryAnnounceSchema = Type.Object({
|
|
1012
|
-
mode: Type.Literal("announce"),
|
|
1013
|
-
...CronDeliverySharedProperties,
|
|
1014
|
-
to: Type.Optional(Type.String())
|
|
1015
|
-
}, { additionalProperties: false });
|
|
1016
|
-
const CronDeliveryWebhookSchema = Type.Object({
|
|
1017
|
-
mode: Type.Literal("webhook"),
|
|
1018
|
-
...CronDeliverySharedProperties,
|
|
1019
|
-
to: NonEmptyString
|
|
1020
|
-
}, { additionalProperties: false });
|
|
1021
|
-
const CronDeliverySchema = Type.Union([
|
|
1022
|
-
CronDeliveryNoopSchema,
|
|
1023
|
-
CronDeliveryAnnounceSchema,
|
|
1024
|
-
CronDeliveryWebhookSchema
|
|
1025
|
-
]);
|
|
1026
|
-
const CronDeliveryPatchSchema = Type.Object({
|
|
1027
|
-
mode: Type.Optional(Type.Union([
|
|
1028
|
-
Type.Literal("none"),
|
|
1029
|
-
Type.Literal("announce"),
|
|
1030
|
-
Type.Literal("webhook")
|
|
1031
|
-
])),
|
|
1032
|
-
...CronDeliverySharedProperties,
|
|
1033
|
-
to: Type.Optional(Type.String())
|
|
1034
|
-
}, { additionalProperties: false });
|
|
1035
|
-
const CronJobStateSchema = Type.Object({
|
|
1036
|
-
nextRunAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1037
|
-
runningAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1038
|
-
lastRunAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1039
|
-
lastRunStatus: Type.Optional(CronRunStatusSchema),
|
|
1040
|
-
lastStatus: Type.Optional(CronRunStatusSchema),
|
|
1041
|
-
lastError: Type.Optional(Type.String()),
|
|
1042
|
-
lastErrorReason: Type.Optional(CronFailoverReasonSchema),
|
|
1043
|
-
lastDurationMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1044
|
-
consecutiveErrors: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1045
|
-
lastDelivered: Type.Optional(Type.Boolean()),
|
|
1046
|
-
lastDeliveryStatus: Type.Optional(CronDeliveryStatusSchema),
|
|
1047
|
-
lastDeliveryError: Type.Optional(Type.String()),
|
|
1048
|
-
lastFailureAlertAtMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
1049
|
-
}, { additionalProperties: false });
|
|
1050
|
-
Type.Object({
|
|
1051
|
-
id: NonEmptyString,
|
|
1052
|
-
agentId: Type.Optional(NonEmptyString),
|
|
1053
|
-
sessionKey: Type.Optional(NonEmptyString),
|
|
1054
|
-
name: NonEmptyString,
|
|
1055
|
-
description: Type.Optional(Type.String()),
|
|
1056
|
-
enabled: Type.Boolean(),
|
|
1057
|
-
deleteAfterRun: Type.Optional(Type.Boolean()),
|
|
1058
|
-
createdAtMs: Type.Integer({ minimum: 0 }),
|
|
1059
|
-
updatedAtMs: Type.Integer({ minimum: 0 }),
|
|
1060
|
-
schedule: CronScheduleSchema,
|
|
1061
|
-
sessionTarget: CronSessionTargetSchema,
|
|
1062
|
-
wakeMode: CronWakeModeSchema,
|
|
1063
|
-
payload: CronPayloadSchema,
|
|
1064
|
-
delivery: Type.Optional(CronDeliverySchema),
|
|
1065
|
-
failureAlert: Type.Optional(Type.Union([Type.Literal(false), CronFailureAlertSchema])),
|
|
1066
|
-
state: CronJobStateSchema
|
|
1067
|
-
}, { additionalProperties: false });
|
|
1068
|
-
const CronListParamsSchema = Type.Object({
|
|
1069
|
-
includeDisabled: Type.Optional(Type.Boolean()),
|
|
1070
|
-
limit: Type.Optional(Type.Integer({
|
|
1071
|
-
minimum: 1,
|
|
1072
|
-
maximum: 200
|
|
1073
|
-
})),
|
|
1074
|
-
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1075
|
-
query: Type.Optional(Type.String()),
|
|
1076
|
-
enabled: Type.Optional(CronJobsEnabledFilterSchema),
|
|
1077
|
-
sortBy: Type.Optional(CronJobsSortBySchema),
|
|
1078
|
-
sortDir: Type.Optional(CronSortDirSchema)
|
|
1079
|
-
}, { additionalProperties: false });
|
|
1080
|
-
const CronStatusParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1081
|
-
const CronAddParamsSchema = Type.Object({
|
|
1082
|
-
name: NonEmptyString,
|
|
1083
|
-
...CronCommonOptionalFields,
|
|
1084
|
-
schedule: CronScheduleSchema,
|
|
1085
|
-
sessionTarget: CronSessionTargetSchema,
|
|
1086
|
-
wakeMode: CronWakeModeSchema,
|
|
1087
|
-
payload: CronPayloadSchema,
|
|
1088
|
-
delivery: Type.Optional(CronDeliverySchema),
|
|
1089
|
-
failureAlert: Type.Optional(Type.Union([Type.Literal(false), CronFailureAlertSchema]))
|
|
1090
|
-
}, { additionalProperties: false });
|
|
1091
|
-
const CronUpdateParamsSchema = cronIdOrJobIdParams({ patch: Type.Object({
|
|
1092
|
-
name: Type.Optional(NonEmptyString),
|
|
1093
|
-
...CronCommonOptionalFields,
|
|
1094
|
-
schedule: Type.Optional(CronScheduleSchema),
|
|
1095
|
-
sessionTarget: Type.Optional(CronSessionTargetSchema),
|
|
1096
|
-
wakeMode: Type.Optional(CronWakeModeSchema),
|
|
1097
|
-
payload: Type.Optional(CronPayloadPatchSchema),
|
|
1098
|
-
delivery: Type.Optional(CronDeliveryPatchSchema),
|
|
1099
|
-
failureAlert: Type.Optional(Type.Union([Type.Literal(false), CronFailureAlertSchema])),
|
|
1100
|
-
state: Type.Optional(Type.Partial(CronJobStateSchema))
|
|
1101
|
-
}, { additionalProperties: false }) });
|
|
1102
|
-
const CronRemoveParamsSchema = cronIdOrJobIdParams({});
|
|
1103
|
-
const CronRunParamsSchema = cronIdOrJobIdParams({ mode: Type.Optional(Type.Union([Type.Literal("due"), Type.Literal("force")])) });
|
|
1104
|
-
const CronRunsParamsSchema = Type.Object({
|
|
1105
|
-
scope: Type.Optional(Type.Union([Type.Literal("job"), Type.Literal("all")])),
|
|
1106
|
-
id: Type.Optional(CronRunLogJobIdSchema),
|
|
1107
|
-
jobId: Type.Optional(CronRunLogJobIdSchema),
|
|
1108
|
-
limit: Type.Optional(Type.Integer({
|
|
1109
|
-
minimum: 1,
|
|
1110
|
-
maximum: 200
|
|
1111
|
-
})),
|
|
1112
|
-
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1113
|
-
statuses: Type.Optional(Type.Array(CronRunsStatusValueSchema, {
|
|
1114
|
-
minItems: 1,
|
|
1115
|
-
maxItems: 3
|
|
1116
|
-
})),
|
|
1117
|
-
status: Type.Optional(CronRunsStatusFilterSchema),
|
|
1118
|
-
deliveryStatuses: Type.Optional(Type.Array(CronDeliveryStatusSchema, {
|
|
1119
|
-
minItems: 1,
|
|
1120
|
-
maxItems: 4
|
|
1121
|
-
})),
|
|
1122
|
-
deliveryStatus: Type.Optional(CronDeliveryStatusSchema),
|
|
1123
|
-
query: Type.Optional(Type.String()),
|
|
1124
|
-
sortDir: Type.Optional(CronSortDirSchema)
|
|
1125
|
-
}, { additionalProperties: false });
|
|
1126
|
-
Type.Object({
|
|
1127
|
-
ts: Type.Integer({ minimum: 0 }),
|
|
1128
|
-
jobId: NonEmptyString,
|
|
1129
|
-
action: Type.Literal("finished"),
|
|
1130
|
-
status: Type.Optional(CronRunStatusSchema),
|
|
1131
|
-
error: Type.Optional(Type.String()),
|
|
1132
|
-
summary: Type.Optional(Type.String()),
|
|
1133
|
-
delivered: Type.Optional(Type.Boolean()),
|
|
1134
|
-
deliveryStatus: Type.Optional(CronDeliveryStatusSchema),
|
|
1135
|
-
deliveryError: Type.Optional(Type.String()),
|
|
1136
|
-
sessionId: Type.Optional(NonEmptyString),
|
|
1137
|
-
sessionKey: Type.Optional(NonEmptyString),
|
|
1138
|
-
runAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1139
|
-
durationMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1140
|
-
nextRunAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1141
|
-
model: Type.Optional(Type.String()),
|
|
1142
|
-
provider: Type.Optional(Type.String()),
|
|
1143
|
-
usage: Type.Optional(Type.Object({
|
|
1144
|
-
input_tokens: Type.Optional(Type.Number()),
|
|
1145
|
-
output_tokens: Type.Optional(Type.Number()),
|
|
1146
|
-
total_tokens: Type.Optional(Type.Number()),
|
|
1147
|
-
cache_read_tokens: Type.Optional(Type.Number()),
|
|
1148
|
-
cache_write_tokens: Type.Optional(Type.Number())
|
|
1149
|
-
}, { additionalProperties: false })),
|
|
1150
|
-
jobName: Type.Optional(Type.String())
|
|
1151
|
-
}, { additionalProperties: false });
|
|
1152
|
-
//#endregion
|
|
1153
|
-
//#region src/gateway/protocol/schema/error-codes.ts
|
|
1154
|
-
const ErrorCodes = {
|
|
1155
|
-
NOT_LINKED: "NOT_LINKED",
|
|
1156
|
-
NOT_PAIRED: "NOT_PAIRED",
|
|
1157
|
-
AGENT_TIMEOUT: "AGENT_TIMEOUT",
|
|
1158
|
-
INVALID_REQUEST: "INVALID_REQUEST",
|
|
1159
|
-
APPROVAL_NOT_FOUND: "APPROVAL_NOT_FOUND",
|
|
1160
|
-
UNAVAILABLE: "UNAVAILABLE"
|
|
1161
|
-
};
|
|
1162
|
-
function errorShape(code, message, opts) {
|
|
1163
|
-
return {
|
|
1164
|
-
code,
|
|
1165
|
-
message,
|
|
1166
|
-
...opts
|
|
1167
|
-
};
|
|
1168
|
-
}
|
|
1169
|
-
//#endregion
|
|
1170
|
-
//#region src/gateway/protocol/schema/exec-approvals.ts
|
|
1171
|
-
const ExecApprovalsAllowlistEntrySchema = Type.Object({
|
|
1172
|
-
id: Type.Optional(NonEmptyString),
|
|
1173
|
-
pattern: Type.String(),
|
|
1174
|
-
argPattern: Type.Optional(Type.String()),
|
|
1175
|
-
lastUsedAt: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1176
|
-
lastUsedCommand: Type.Optional(Type.String()),
|
|
1177
|
-
lastResolvedPath: Type.Optional(Type.String())
|
|
1178
|
-
}, { additionalProperties: false });
|
|
1179
|
-
const ExecApprovalsPolicyFields = {
|
|
1180
|
-
security: Type.Optional(Type.String()),
|
|
1181
|
-
ask: Type.Optional(Type.String()),
|
|
1182
|
-
askFallback: Type.Optional(Type.String()),
|
|
1183
|
-
autoAllowSkills: Type.Optional(Type.Boolean())
|
|
1184
|
-
};
|
|
1185
|
-
const ExecApprovalsDefaultsSchema = Type.Object(ExecApprovalsPolicyFields, { additionalProperties: false });
|
|
1186
|
-
const ExecApprovalsAgentSchema = Type.Object({
|
|
1187
|
-
...ExecApprovalsPolicyFields,
|
|
1188
|
-
allowlist: Type.Optional(Type.Array(ExecApprovalsAllowlistEntrySchema))
|
|
1189
|
-
}, { additionalProperties: false });
|
|
1190
|
-
const ExecApprovalsFileSchema = Type.Object({
|
|
1191
|
-
version: Type.Literal(1),
|
|
1192
|
-
socket: Type.Optional(Type.Object({
|
|
1193
|
-
path: Type.Optional(Type.String()),
|
|
1194
|
-
token: Type.Optional(Type.String())
|
|
1195
|
-
}, { additionalProperties: false })),
|
|
1196
|
-
defaults: Type.Optional(ExecApprovalsDefaultsSchema),
|
|
1197
|
-
agents: Type.Optional(Type.Record(Type.String(), ExecApprovalsAgentSchema))
|
|
1198
|
-
}, { additionalProperties: false });
|
|
1199
|
-
Type.Object({
|
|
1200
|
-
path: NonEmptyString,
|
|
1201
|
-
exists: Type.Boolean(),
|
|
1202
|
-
hash: NonEmptyString,
|
|
1203
|
-
file: ExecApprovalsFileSchema
|
|
1204
|
-
}, { additionalProperties: false });
|
|
1205
|
-
const ExecApprovalsGetParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1206
|
-
const ExecApprovalsSetParamsSchema = Type.Object({
|
|
1207
|
-
file: ExecApprovalsFileSchema,
|
|
1208
|
-
baseHash: Type.Optional(NonEmptyString)
|
|
1209
|
-
}, { additionalProperties: false });
|
|
1210
|
-
const ExecApprovalsNodeGetParamsSchema = Type.Object({ nodeId: NonEmptyString }, { additionalProperties: false });
|
|
1211
|
-
const ExecApprovalsNodeSetParamsSchema = Type.Object({
|
|
1212
|
-
nodeId: NonEmptyString,
|
|
1213
|
-
file: ExecApprovalsFileSchema,
|
|
1214
|
-
baseHash: Type.Optional(NonEmptyString)
|
|
1215
|
-
}, { additionalProperties: false });
|
|
1216
|
-
const ExecApprovalGetParamsSchema = Type.Object({ id: NonEmptyString }, { additionalProperties: false });
|
|
1217
|
-
const ExecApprovalRequestParamsSchema = Type.Object({
|
|
1218
|
-
id: Type.Optional(NonEmptyString),
|
|
1219
|
-
command: Type.Optional(NonEmptyString),
|
|
1220
|
-
commandArgv: Type.Optional(Type.Array(Type.String())),
|
|
1221
|
-
systemRunPlan: Type.Optional(Type.Object({
|
|
1222
|
-
argv: Type.Array(Type.String()),
|
|
1223
|
-
cwd: Type.Union([Type.String(), Type.Null()]),
|
|
1224
|
-
commandText: Type.String(),
|
|
1225
|
-
commandPreview: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1226
|
-
agentId: Type.Union([Type.String(), Type.Null()]),
|
|
1227
|
-
sessionKey: Type.Union([Type.String(), Type.Null()]),
|
|
1228
|
-
mutableFileOperand: Type.Optional(Type.Union([Type.Object({
|
|
1229
|
-
argvIndex: Type.Integer({ minimum: 0 }),
|
|
1230
|
-
path: Type.String(),
|
|
1231
|
-
sha256: Type.String()
|
|
1232
|
-
}, { additionalProperties: false }), Type.Null()]))
|
|
1233
|
-
}, { additionalProperties: false })),
|
|
1234
|
-
env: Type.Optional(Type.Record(NonEmptyString, Type.String())),
|
|
1235
|
-
cwd: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1236
|
-
nodeId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1237
|
-
host: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1238
|
-
security: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1239
|
-
ask: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1240
|
-
agentId: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1241
|
-
resolvedPath: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1242
|
-
sessionKey: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1243
|
-
turnSourceChannel: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1244
|
-
turnSourceTo: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1245
|
-
turnSourceAccountId: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
1246
|
-
turnSourceThreadId: Type.Optional(Type.Union([
|
|
1247
|
-
Type.String(),
|
|
1248
|
-
Type.Number(),
|
|
1249
|
-
Type.Null()
|
|
1250
|
-
])),
|
|
1251
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
1252
|
-
twoPhase: Type.Optional(Type.Boolean())
|
|
1253
|
-
}, { additionalProperties: false });
|
|
1254
|
-
const ExecApprovalResolveParamsSchema = Type.Object({
|
|
1255
|
-
id: NonEmptyString,
|
|
1256
|
-
decision: NonEmptyString
|
|
1257
|
-
}, { additionalProperties: false });
|
|
1258
|
-
//#endregion
|
|
1259
|
-
//#region src/gateway/protocol/schema/devices.ts
|
|
1260
|
-
const DevicePairListParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1261
|
-
const DevicePairApproveParamsSchema = Type.Object({ requestId: NonEmptyString }, { additionalProperties: false });
|
|
1262
|
-
const DevicePairRejectParamsSchema = Type.Object({ requestId: NonEmptyString }, { additionalProperties: false });
|
|
1263
|
-
const DevicePairRemoveParamsSchema = Type.Object({ deviceId: NonEmptyString }, { additionalProperties: false });
|
|
1264
|
-
const DeviceTokenRotateParamsSchema = Type.Object({
|
|
1265
|
-
deviceId: NonEmptyString,
|
|
1266
|
-
role: NonEmptyString,
|
|
1267
|
-
scopes: Type.Optional(Type.Array(NonEmptyString))
|
|
1268
|
-
}, { additionalProperties: false });
|
|
1269
|
-
const DeviceTokenRevokeParamsSchema = Type.Object({
|
|
1270
|
-
deviceId: NonEmptyString,
|
|
1271
|
-
role: NonEmptyString
|
|
1272
|
-
}, { additionalProperties: false });
|
|
1273
|
-
Type.Object({
|
|
1274
|
-
requestId: NonEmptyString,
|
|
1275
|
-
deviceId: NonEmptyString,
|
|
1276
|
-
publicKey: NonEmptyString,
|
|
1277
|
-
displayName: Type.Optional(NonEmptyString),
|
|
1278
|
-
platform: Type.Optional(NonEmptyString),
|
|
1279
|
-
deviceFamily: Type.Optional(NonEmptyString),
|
|
1280
|
-
clientId: Type.Optional(NonEmptyString),
|
|
1281
|
-
clientMode: Type.Optional(NonEmptyString),
|
|
1282
|
-
role: Type.Optional(NonEmptyString),
|
|
1283
|
-
roles: Type.Optional(Type.Array(NonEmptyString)),
|
|
1284
|
-
scopes: Type.Optional(Type.Array(NonEmptyString)),
|
|
1285
|
-
remoteIp: Type.Optional(NonEmptyString),
|
|
1286
|
-
silent: Type.Optional(Type.Boolean()),
|
|
1287
|
-
isRepair: Type.Optional(Type.Boolean()),
|
|
1288
|
-
ts: Type.Integer({ minimum: 0 })
|
|
1289
|
-
}, { additionalProperties: false });
|
|
1290
|
-
Type.Object({
|
|
1291
|
-
requestId: NonEmptyString,
|
|
1292
|
-
deviceId: NonEmptyString,
|
|
1293
|
-
decision: NonEmptyString,
|
|
1294
|
-
ts: Type.Integer({ minimum: 0 })
|
|
1295
|
-
}, { additionalProperties: false });
|
|
1296
|
-
//#endregion
|
|
1297
|
-
//#region src/gateway/protocol/schema/snapshot.ts
|
|
1298
|
-
const PresenceEntrySchema = Type.Object({
|
|
1299
|
-
host: Type.Optional(NonEmptyString),
|
|
1300
|
-
ip: Type.Optional(NonEmptyString),
|
|
1301
|
-
version: Type.Optional(NonEmptyString),
|
|
1302
|
-
platform: Type.Optional(NonEmptyString),
|
|
1303
|
-
deviceFamily: Type.Optional(NonEmptyString),
|
|
1304
|
-
modelIdentifier: Type.Optional(NonEmptyString),
|
|
1305
|
-
mode: Type.Optional(NonEmptyString),
|
|
1306
|
-
lastInputSeconds: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1307
|
-
reason: Type.Optional(NonEmptyString),
|
|
1308
|
-
tags: Type.Optional(Type.Array(NonEmptyString)),
|
|
1309
|
-
text: Type.Optional(Type.String()),
|
|
1310
|
-
ts: Type.Integer({ minimum: 0 }),
|
|
1311
|
-
deviceId: Type.Optional(NonEmptyString),
|
|
1312
|
-
roles: Type.Optional(Type.Array(NonEmptyString)),
|
|
1313
|
-
scopes: Type.Optional(Type.Array(NonEmptyString)),
|
|
1314
|
-
instanceId: Type.Optional(NonEmptyString)
|
|
1315
|
-
}, { additionalProperties: false });
|
|
1316
|
-
const HealthSnapshotSchema = Type.Any();
|
|
1317
|
-
const SessionDefaultsSchema = Type.Object({
|
|
1318
|
-
defaultAgentId: NonEmptyString,
|
|
1319
|
-
mainKey: NonEmptyString,
|
|
1320
|
-
mainSessionKey: NonEmptyString,
|
|
1321
|
-
scope: Type.Optional(NonEmptyString)
|
|
1322
|
-
}, { additionalProperties: false });
|
|
1323
|
-
const StateVersionSchema = Type.Object({
|
|
1324
|
-
presence: Type.Integer({ minimum: 0 }),
|
|
1325
|
-
health: Type.Integer({ minimum: 0 })
|
|
1326
|
-
}, { additionalProperties: false });
|
|
1327
|
-
const SnapshotSchema = Type.Object({
|
|
1328
|
-
presence: Type.Array(PresenceEntrySchema),
|
|
1329
|
-
health: HealthSnapshotSchema,
|
|
1330
|
-
stateVersion: StateVersionSchema,
|
|
1331
|
-
uptimeMs: Type.Integer({ minimum: 0 }),
|
|
1332
|
-
configPath: Type.Optional(NonEmptyString),
|
|
1333
|
-
stateDir: Type.Optional(NonEmptyString),
|
|
1334
|
-
sessionDefaults: Type.Optional(SessionDefaultsSchema),
|
|
1335
|
-
authMode: Type.Optional(Type.Union([
|
|
1336
|
-
Type.Literal("none"),
|
|
1337
|
-
Type.Literal("token"),
|
|
1338
|
-
Type.Literal("password"),
|
|
1339
|
-
Type.Literal("trusted-proxy")
|
|
1340
|
-
])),
|
|
1341
|
-
updateAvailable: Type.Optional(Type.Object({
|
|
1342
|
-
currentVersion: NonEmptyString,
|
|
1343
|
-
latestVersion: NonEmptyString,
|
|
1344
|
-
channel: NonEmptyString
|
|
1345
|
-
}))
|
|
1346
|
-
}, { additionalProperties: false });
|
|
1347
|
-
Type.Object({ ts: Type.Integer({ minimum: 0 }) }, { additionalProperties: false });
|
|
1348
|
-
Type.Object({
|
|
1349
|
-
reason: NonEmptyString,
|
|
1350
|
-
restartExpectedMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
1351
|
-
}, { additionalProperties: false });
|
|
1352
|
-
const ConnectParamsSchema = Type.Object({
|
|
1353
|
-
minProtocol: Type.Integer({ minimum: 1 }),
|
|
1354
|
-
maxProtocol: Type.Integer({ minimum: 1 }),
|
|
1355
|
-
client: Type.Object({
|
|
1356
|
-
id: GatewayClientIdSchema,
|
|
1357
|
-
displayName: Type.Optional(NonEmptyString),
|
|
1358
|
-
version: NonEmptyString,
|
|
1359
|
-
platform: NonEmptyString,
|
|
1360
|
-
deviceFamily: Type.Optional(NonEmptyString),
|
|
1361
|
-
modelIdentifier: Type.Optional(NonEmptyString),
|
|
1362
|
-
mode: GatewayClientModeSchema,
|
|
1363
|
-
instanceId: Type.Optional(NonEmptyString)
|
|
1364
|
-
}, { additionalProperties: false }),
|
|
1365
|
-
caps: Type.Optional(Type.Array(NonEmptyString, { default: [] })),
|
|
1366
|
-
commands: Type.Optional(Type.Array(NonEmptyString)),
|
|
1367
|
-
permissions: Type.Optional(Type.Record(NonEmptyString, Type.Boolean())),
|
|
1368
|
-
pathEnv: Type.Optional(Type.String()),
|
|
1369
|
-
role: Type.Optional(NonEmptyString),
|
|
1370
|
-
scopes: Type.Optional(Type.Array(NonEmptyString)),
|
|
1371
|
-
device: Type.Optional(Type.Object({
|
|
1372
|
-
id: NonEmptyString,
|
|
1373
|
-
publicKey: NonEmptyString,
|
|
1374
|
-
signature: NonEmptyString,
|
|
1375
|
-
signedAt: Type.Integer({ minimum: 0 }),
|
|
1376
|
-
nonce: NonEmptyString
|
|
1377
|
-
}, { additionalProperties: false })),
|
|
1378
|
-
auth: Type.Optional(Type.Object({
|
|
1379
|
-
token: Type.Optional(Type.String()),
|
|
1380
|
-
bootstrapToken: Type.Optional(Type.String()),
|
|
1381
|
-
deviceToken: Type.Optional(Type.String()),
|
|
1382
|
-
password: Type.Optional(Type.String())
|
|
1383
|
-
}, { additionalProperties: false })),
|
|
1384
|
-
locale: Type.Optional(Type.String()),
|
|
1385
|
-
userAgent: Type.Optional(Type.String())
|
|
1386
|
-
}, { additionalProperties: false });
|
|
1387
|
-
Type.Object({
|
|
1388
|
-
type: Type.Literal("hello-ok"),
|
|
1389
|
-
protocol: Type.Integer({ minimum: 1 }),
|
|
1390
|
-
server: Type.Object({
|
|
1391
|
-
version: NonEmptyString,
|
|
1392
|
-
connId: NonEmptyString
|
|
1393
|
-
}, { additionalProperties: false }),
|
|
1394
|
-
features: Type.Object({
|
|
1395
|
-
methods: Type.Array(NonEmptyString),
|
|
1396
|
-
events: Type.Array(NonEmptyString)
|
|
1397
|
-
}, { additionalProperties: false }),
|
|
1398
|
-
snapshot: SnapshotSchema,
|
|
1399
|
-
canvasHostUrl: Type.Optional(NonEmptyString),
|
|
1400
|
-
auth: Type.Optional(Type.Object({
|
|
1401
|
-
deviceToken: Type.Optional(NonEmptyString),
|
|
1402
|
-
role: NonEmptyString,
|
|
1403
|
-
scopes: Type.Array(NonEmptyString),
|
|
1404
|
-
issuedAtMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1405
|
-
deviceTokens: Type.Optional(Type.Array(Type.Object({
|
|
1406
|
-
deviceToken: NonEmptyString,
|
|
1407
|
-
role: NonEmptyString,
|
|
1408
|
-
scopes: Type.Array(NonEmptyString),
|
|
1409
|
-
issuedAtMs: Type.Integer({ minimum: 0 })
|
|
1410
|
-
}, { additionalProperties: false })))
|
|
1411
|
-
}, { additionalProperties: false })),
|
|
1412
|
-
policy: Type.Object({
|
|
1413
|
-
maxPayload: Type.Integer({ minimum: 1 }),
|
|
1414
|
-
maxBufferedBytes: Type.Integer({ minimum: 1 }),
|
|
1415
|
-
tickIntervalMs: Type.Integer({ minimum: 1 })
|
|
1416
|
-
}, { additionalProperties: false })
|
|
1417
|
-
}, { additionalProperties: false });
|
|
1418
|
-
const ErrorShapeSchema = Type.Object({
|
|
1419
|
-
code: NonEmptyString,
|
|
1420
|
-
message: NonEmptyString,
|
|
1421
|
-
details: Type.Optional(Type.Unknown()),
|
|
1422
|
-
retryable: Type.Optional(Type.Boolean()),
|
|
1423
|
-
retryAfterMs: Type.Optional(Type.Integer({ minimum: 0 }))
|
|
1424
|
-
}, { additionalProperties: false });
|
|
1425
|
-
const RequestFrameSchema = Type.Object({
|
|
1426
|
-
type: Type.Literal("req"),
|
|
1427
|
-
id: NonEmptyString,
|
|
1428
|
-
method: NonEmptyString,
|
|
1429
|
-
params: Type.Optional(Type.Unknown())
|
|
1430
|
-
}, { additionalProperties: false });
|
|
1431
|
-
const ResponseFrameSchema = Type.Object({
|
|
1432
|
-
type: Type.Literal("res"),
|
|
1433
|
-
id: NonEmptyString,
|
|
1434
|
-
ok: Type.Boolean(),
|
|
1435
|
-
payload: Type.Optional(Type.Unknown()),
|
|
1436
|
-
error: Type.Optional(ErrorShapeSchema)
|
|
1437
|
-
}, { additionalProperties: false });
|
|
1438
|
-
const EventFrameSchema = Type.Object({
|
|
1439
|
-
type: Type.Literal("event"),
|
|
1440
|
-
event: NonEmptyString,
|
|
1441
|
-
payload: Type.Optional(Type.Unknown()),
|
|
1442
|
-
seq: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1443
|
-
stateVersion: Type.Optional(StateVersionSchema)
|
|
1444
|
-
}, { additionalProperties: false });
|
|
1445
|
-
Type.Union([
|
|
1446
|
-
RequestFrameSchema,
|
|
1447
|
-
ResponseFrameSchema,
|
|
1448
|
-
EventFrameSchema
|
|
1449
|
-
], { discriminator: "type" });
|
|
1450
|
-
//#endregion
|
|
1451
|
-
//#region src/gateway/protocol/schema/logs-chat.ts
|
|
1452
|
-
const LogsTailParamsSchema = Type.Object({
|
|
1453
|
-
cursor: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1454
|
-
limit: Type.Optional(Type.Integer({
|
|
1455
|
-
minimum: 1,
|
|
1456
|
-
maximum: 5e3
|
|
1457
|
-
})),
|
|
1458
|
-
maxBytes: Type.Optional(Type.Integer({
|
|
1459
|
-
minimum: 1,
|
|
1460
|
-
maximum: 1e6
|
|
1461
|
-
}))
|
|
1462
|
-
}, { additionalProperties: false });
|
|
1463
|
-
Type.Object({
|
|
1464
|
-
file: NonEmptyString,
|
|
1465
|
-
cursor: Type.Integer({ minimum: 0 }),
|
|
1466
|
-
size: Type.Integer({ minimum: 0 }),
|
|
1467
|
-
lines: Type.Array(Type.String()),
|
|
1468
|
-
truncated: Type.Optional(Type.Boolean()),
|
|
1469
|
-
reset: Type.Optional(Type.Boolean())
|
|
1470
|
-
}, { additionalProperties: false });
|
|
1471
|
-
const ChatHistoryParamsSchema = Type.Object({
|
|
1472
|
-
sessionKey: NonEmptyString,
|
|
1473
|
-
limit: Type.Optional(Type.Integer({
|
|
1474
|
-
minimum: 1,
|
|
1475
|
-
maximum: 1e3
|
|
1476
|
-
})),
|
|
1477
|
-
maxChars: Type.Optional(Type.Integer({
|
|
1478
|
-
minimum: 1,
|
|
1479
|
-
maximum: 5e5
|
|
1480
|
-
}))
|
|
1481
|
-
}, { additionalProperties: false });
|
|
1482
|
-
const ChatSendParamsSchema = Type.Object({
|
|
1483
|
-
sessionKey: ChatSendSessionKeyString,
|
|
1484
|
-
message: Type.String(),
|
|
1485
|
-
thinking: Type.Optional(Type.String()),
|
|
1486
|
-
deliver: Type.Optional(Type.Boolean()),
|
|
1487
|
-
originatingChannel: Type.Optional(Type.String()),
|
|
1488
|
-
originatingTo: Type.Optional(Type.String()),
|
|
1489
|
-
originatingAccountId: Type.Optional(Type.String()),
|
|
1490
|
-
originatingThreadId: Type.Optional(Type.String()),
|
|
1491
|
-
attachments: Type.Optional(Type.Array(Type.Unknown())),
|
|
1492
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1493
|
-
systemInputProvenance: Type.Optional(InputProvenanceSchema),
|
|
1494
|
-
systemProvenanceReceipt: Type.Optional(Type.String()),
|
|
1495
|
-
idempotencyKey: NonEmptyString
|
|
1496
|
-
}, { additionalProperties: false });
|
|
1497
|
-
const ChatAbortParamsSchema = Type.Object({
|
|
1498
|
-
sessionKey: NonEmptyString,
|
|
1499
|
-
runId: Type.Optional(NonEmptyString)
|
|
1500
|
-
}, { additionalProperties: false });
|
|
1501
|
-
const ChatInjectParamsSchema = Type.Object({
|
|
1502
|
-
sessionKey: NonEmptyString,
|
|
1503
|
-
message: NonEmptyString,
|
|
1504
|
-
label: Type.Optional(Type.String({ maxLength: 100 }))
|
|
1505
|
-
}, { additionalProperties: false });
|
|
1506
|
-
const ChatEventSchema = Type.Object({
|
|
1507
|
-
runId: NonEmptyString,
|
|
1508
|
-
sessionKey: NonEmptyString,
|
|
1509
|
-
seq: Type.Integer({ minimum: 0 }),
|
|
1510
|
-
state: Type.Union([
|
|
1511
|
-
Type.Literal("delta"),
|
|
1512
|
-
Type.Literal("final"),
|
|
1513
|
-
Type.Literal("aborted"),
|
|
1514
|
-
Type.Literal("error")
|
|
1515
|
-
]),
|
|
1516
|
-
message: Type.Optional(Type.Unknown()),
|
|
1517
|
-
appendText: Type.Optional(Type.String()),
|
|
1518
|
-
reset: Type.Optional(Type.Boolean()),
|
|
1519
|
-
errorMessage: Type.Optional(Type.String()),
|
|
1520
|
-
errorKind: Type.Optional(Type.Union([
|
|
1521
|
-
Type.Literal("refusal"),
|
|
1522
|
-
Type.Literal("timeout"),
|
|
1523
|
-
Type.Literal("rate_limit"),
|
|
1524
|
-
Type.Literal("context_length"),
|
|
1525
|
-
Type.Literal("unknown")
|
|
1526
|
-
])),
|
|
1527
|
-
usage: Type.Optional(Type.Unknown()),
|
|
1528
|
-
stopReason: Type.Optional(Type.String())
|
|
1529
|
-
}, { additionalProperties: false });
|
|
1530
|
-
//#endregion
|
|
1531
|
-
//#region src/gateway/protocol/schema/mcp.ts
|
|
1532
|
-
/**
|
|
1533
|
-
* A single MCP server definition. The transport-specific shape lives in
|
|
1534
|
-
* `src/config/types.mcp.ts` (`McpServerConfig`); the protocol passes it through
|
|
1535
|
-
* as an open object so new transport keys do not require a wire-contract bump.
|
|
1536
|
-
*/
|
|
1537
|
-
const McpServerConfigSchema = Type.Object({}, { additionalProperties: true });
|
|
1538
|
-
const McpServersListParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1539
|
-
const McpServerSetParamsSchema = Type.Object({
|
|
1540
|
-
name: NonEmptyString,
|
|
1541
|
-
server: McpServerConfigSchema
|
|
1542
|
-
}, { additionalProperties: false });
|
|
1543
|
-
const McpServerUnsetParamsSchema = Type.Object({ name: NonEmptyString }, { additionalProperties: false });
|
|
1544
|
-
Type.Object({
|
|
1545
|
-
path: Type.String(),
|
|
1546
|
-
servers: Type.Record(Type.String(), McpServerConfigSchema),
|
|
1547
|
-
removed: Type.Optional(Type.Boolean())
|
|
1548
|
-
}, { additionalProperties: false });
|
|
1549
|
-
/**
|
|
1550
|
-
* `mcp.servers.metadata` — fetch metadata for a remote MCP server by URL.
|
|
1551
|
-
* Used by the Control UI's "Add by link" flow to discover transport, name,
|
|
1552
|
-
* and OAuth metadata before saving a server config.
|
|
1553
|
-
*/
|
|
1554
|
-
const McpServerMetadataParamsSchema = Type.Object({ url: NonEmptyString }, { additionalProperties: false });
|
|
1555
|
-
Type.Object({
|
|
1556
|
-
name: NonEmptyString,
|
|
1557
|
-
url: NonEmptyString,
|
|
1558
|
-
transport: Type.Union([Type.Literal("streamable-http"), Type.Literal("sse")]),
|
|
1559
|
-
serverName: Type.Optional(Type.String()),
|
|
1560
|
-
serverVersion: Type.Optional(Type.String()),
|
|
1561
|
-
protocolVersion: Type.Optional(Type.String()),
|
|
1562
|
-
capabilities: Type.Optional(Type.Object({
|
|
1563
|
-
tools: Type.Optional(Type.Array(Type.String())),
|
|
1564
|
-
prompts: Type.Optional(Type.Array(Type.String())),
|
|
1565
|
-
resources: Type.Optional(Type.Array(Type.String()))
|
|
1566
|
-
}, { additionalProperties: false })),
|
|
1567
|
-
oauth: Type.Boolean(),
|
|
1568
|
-
oauthIssuer: Type.Optional(Type.String()),
|
|
1569
|
-
oauthAuthorizeUrl: Type.Optional(Type.String()),
|
|
1570
|
-
oauthTokenUrl: Type.Optional(Type.String()),
|
|
1571
|
-
oauthScopes: Type.Optional(Type.Array(Type.String()))
|
|
1572
|
-
}, { additionalProperties: false });
|
|
1573
|
-
/**
|
|
1574
|
-
* `mcp.servers.test` — probe a configured server to confirm reachability and
|
|
1575
|
-
* that the saved credentials (headers or OAuth) are accepted.
|
|
1576
|
-
*/
|
|
1577
|
-
const McpServerTestParamsSchema = Type.Object({ name: NonEmptyString }, { additionalProperties: false });
|
|
1578
|
-
Type.Object({
|
|
1579
|
-
ok: Type.Boolean(),
|
|
1580
|
-
message: Type.String()
|
|
1581
|
-
}, { additionalProperties: false });
|
|
1582
|
-
/**
|
|
1583
|
-
* OAuth flow methods. Genesis acts as a confidential client and stores
|
|
1584
|
-
* encrypted tokens in `~/.genesis/mcp-tokens.json`.
|
|
1585
|
-
*/
|
|
1586
|
-
const McpOAuthStartParamsSchema = Type.Object({
|
|
1587
|
-
name: NonEmptyString,
|
|
1588
|
-
scopes: Type.Optional(Type.Array(Type.String()))
|
|
1589
|
-
}, { additionalProperties: false });
|
|
1590
|
-
Type.Object({
|
|
1591
|
-
state: NonEmptyString,
|
|
1592
|
-
authorizeUrl: NonEmptyString,
|
|
1593
|
-
providerName: Type.Optional(Type.String())
|
|
1594
|
-
}, { additionalProperties: false });
|
|
1595
|
-
const McpOAuthCallbackParamsSchema = Type.Object({
|
|
1596
|
-
name: NonEmptyString,
|
|
1597
|
-
state: NonEmptyString,
|
|
1598
|
-
code: NonEmptyString
|
|
1599
|
-
}, { additionalProperties: false });
|
|
1600
|
-
Type.Object({
|
|
1601
|
-
ok: Type.Boolean(),
|
|
1602
|
-
message: Type.Optional(Type.String()),
|
|
1603
|
-
providerName: Type.Optional(Type.String()),
|
|
1604
|
-
expiresAtMs: Type.Optional(Type.Union([Type.Null(), Type.Integer()]))
|
|
1605
|
-
}, { additionalProperties: false });
|
|
1606
|
-
const McpOAuthStatusParamsSchema = Type.Object({ name: NonEmptyString }, { additionalProperties: false });
|
|
1607
|
-
Type.Object({
|
|
1608
|
-
connected: Type.Boolean(),
|
|
1609
|
-
expiresAtMs: Type.Optional(Type.Union([Type.Null(), Type.Integer()])),
|
|
1610
|
-
providerName: Type.Optional(Type.String()),
|
|
1611
|
-
requiresAuth: Type.Boolean()
|
|
1612
|
-
}, { additionalProperties: false });
|
|
1613
|
-
const McpOAuthDisconnectParamsSchema = McpOAuthStatusParamsSchema;
|
|
1614
|
-
/**
|
|
1615
|
-
* `mcp.oauth.refresh` — force a refresh-token exchange for a server's stored
|
|
1616
|
-
* access token. Admin-scoped, mirrors disconnect.
|
|
1617
|
-
*/
|
|
1618
|
-
const McpOAuthRefreshParamsSchema = McpOAuthStatusParamsSchema;
|
|
1619
|
-
Type.Object({
|
|
1620
|
-
ok: Type.Boolean(),
|
|
1621
|
-
expiresAtMs: Type.Optional(Type.Union([Type.Null(), Type.Integer()])),
|
|
1622
|
-
message: Type.Optional(Type.String())
|
|
1623
|
-
}, { additionalProperties: false });
|
|
1624
|
-
/**
|
|
1625
|
-
* Embedded OAuth: the gateway drives a server-side headless browser and streams
|
|
1626
|
-
* screenshots to the Control UI, which relays pointer/keyboard input. Reuses the
|
|
1627
|
-
* same PKCE state and `completeMcpOAuthFlow` token exchange as the popup flow.
|
|
1628
|
-
* MVP transport is polling (`mcp.oauth.embedded.poll`) rather than events.
|
|
1629
|
-
*/
|
|
1630
|
-
const McpOAuthEmbeddedViewportSchema = Type.Object({
|
|
1631
|
-
w: Type.Integer(),
|
|
1632
|
-
h: Type.Integer()
|
|
1633
|
-
}, { additionalProperties: false });
|
|
1634
|
-
const McpOAuthEmbeddedStartParamsSchema = Type.Object({
|
|
1635
|
-
name: NonEmptyString,
|
|
1636
|
-
scopes: Type.Optional(Type.Array(Type.String())),
|
|
1637
|
-
viewport: Type.Optional(McpOAuthEmbeddedViewportSchema)
|
|
1638
|
-
}, { additionalProperties: false });
|
|
1639
|
-
Type.Object({
|
|
1640
|
-
sessionId: NonEmptyString,
|
|
1641
|
-
viewport: McpOAuthEmbeddedViewportSchema,
|
|
1642
|
-
providerName: Type.Optional(Type.String())
|
|
1643
|
-
}, { additionalProperties: false });
|
|
1644
|
-
const McpOAuthEmbeddedPollParamsSchema = Type.Object({ sessionId: NonEmptyString }, { additionalProperties: false });
|
|
1645
|
-
Type.Object({
|
|
1646
|
-
phase: Type.Union([
|
|
1647
|
-
Type.Literal("loading"),
|
|
1648
|
-
Type.Literal("interactive"),
|
|
1649
|
-
Type.Literal("done"),
|
|
1650
|
-
Type.Literal("error")
|
|
1651
|
-
]),
|
|
1652
|
-
seq: Type.Integer(),
|
|
1653
|
-
frame: Type.Optional(Type.Object({
|
|
1654
|
-
dataBase64: Type.String(),
|
|
1655
|
-
w: Type.Integer(),
|
|
1656
|
-
h: Type.Integer()
|
|
1657
|
-
}, { additionalProperties: false })),
|
|
1658
|
-
message: Type.Optional(Type.String()),
|
|
1659
|
-
providerName: Type.Optional(Type.String()),
|
|
1660
|
-
expiresAtMs: Type.Optional(Type.Union([Type.Null(), Type.Integer()]))
|
|
1661
|
-
}, { additionalProperties: false });
|
|
1662
|
-
const McpOAuthEmbeddedInputParamsSchema = Type.Object({
|
|
1663
|
-
sessionId: NonEmptyString,
|
|
1664
|
-
kind: Type.Union([
|
|
1665
|
-
Type.Literal("mouse"),
|
|
1666
|
-
Type.Literal("wheel"),
|
|
1667
|
-
Type.Literal("key")
|
|
1668
|
-
]),
|
|
1669
|
-
action: Type.Optional(Type.Union([
|
|
1670
|
-
Type.Literal("move"),
|
|
1671
|
-
Type.Literal("down"),
|
|
1672
|
-
Type.Literal("up"),
|
|
1673
|
-
Type.Literal("click"),
|
|
1674
|
-
Type.Literal("press"),
|
|
1675
|
-
Type.Literal("type")
|
|
1676
|
-
])),
|
|
1677
|
-
x: Type.Optional(Type.Number()),
|
|
1678
|
-
y: Type.Optional(Type.Number()),
|
|
1679
|
-
button: Type.Optional(Type.Union([
|
|
1680
|
-
Type.Literal("left"),
|
|
1681
|
-
Type.Literal("right"),
|
|
1682
|
-
Type.Literal("middle")
|
|
1683
|
-
])),
|
|
1684
|
-
deltaX: Type.Optional(Type.Number()),
|
|
1685
|
-
deltaY: Type.Optional(Type.Number()),
|
|
1686
|
-
text: Type.Optional(Type.String()),
|
|
1687
|
-
key: Type.Optional(Type.String())
|
|
1688
|
-
}, { additionalProperties: false });
|
|
1689
|
-
Type.Object({ ok: Type.Boolean() }, { additionalProperties: false });
|
|
1690
|
-
const McpOAuthEmbeddedCancelParamsSchema = McpOAuthEmbeddedPollParamsSchema;
|
|
1691
|
-
//#endregion
|
|
1692
|
-
//#region src/gateway/protocol/schema/nodes.ts
|
|
1693
|
-
const NodePendingWorkTypeSchema = Type.String({ enum: ["status.request", "location.request"] });
|
|
1694
|
-
const NodePendingWorkPrioritySchema = Type.String({ enum: ["normal", "high"] });
|
|
1695
|
-
const NodePairRequestParamsSchema = Type.Object({
|
|
1696
|
-
nodeId: NonEmptyString,
|
|
1697
|
-
displayName: Type.Optional(NonEmptyString),
|
|
1698
|
-
platform: Type.Optional(NonEmptyString),
|
|
1699
|
-
version: Type.Optional(NonEmptyString),
|
|
1700
|
-
coreVersion: Type.Optional(NonEmptyString),
|
|
1701
|
-
uiVersion: Type.Optional(NonEmptyString),
|
|
1702
|
-
deviceFamily: Type.Optional(NonEmptyString),
|
|
1703
|
-
modelIdentifier: Type.Optional(NonEmptyString),
|
|
1704
|
-
caps: Type.Optional(Type.Array(NonEmptyString)),
|
|
1705
|
-
commands: Type.Optional(Type.Array(NonEmptyString)),
|
|
1706
|
-
remoteIp: Type.Optional(NonEmptyString),
|
|
1707
|
-
silent: Type.Optional(Type.Boolean())
|
|
1708
|
-
}, { additionalProperties: false });
|
|
1709
|
-
const NodePairListParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1710
|
-
const NodePairApproveParamsSchema = Type.Object({ requestId: NonEmptyString }, { additionalProperties: false });
|
|
1711
|
-
const NodePairRejectParamsSchema = Type.Object({ requestId: NonEmptyString }, { additionalProperties: false });
|
|
1712
|
-
const NodePairVerifyParamsSchema = Type.Object({
|
|
1713
|
-
nodeId: NonEmptyString,
|
|
1714
|
-
token: NonEmptyString
|
|
1715
|
-
}, { additionalProperties: false });
|
|
1716
|
-
const NodeRenameParamsSchema = Type.Object({
|
|
1717
|
-
nodeId: NonEmptyString,
|
|
1718
|
-
displayName: NonEmptyString
|
|
1719
|
-
}, { additionalProperties: false });
|
|
1720
|
-
const NodeListParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1721
|
-
const NodePendingAckParamsSchema = Type.Object({ ids: Type.Array(NonEmptyString, { minItems: 1 }) }, { additionalProperties: false });
|
|
1722
|
-
const NodeDescribeParamsSchema = Type.Object({ nodeId: NonEmptyString }, { additionalProperties: false });
|
|
1723
|
-
const NodeInvokeParamsSchema = Type.Object({
|
|
1724
|
-
nodeId: NonEmptyString,
|
|
1725
|
-
command: NonEmptyString,
|
|
1726
|
-
params: Type.Optional(Type.Unknown()),
|
|
1727
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1728
|
-
idempotencyKey: NonEmptyString
|
|
1729
|
-
}, { additionalProperties: false });
|
|
1730
|
-
const NodeInvokeResultParamsSchema = Type.Object({
|
|
1731
|
-
id: NonEmptyString,
|
|
1732
|
-
nodeId: NonEmptyString,
|
|
1733
|
-
ok: Type.Boolean(),
|
|
1734
|
-
payload: Type.Optional(Type.Unknown()),
|
|
1735
|
-
payloadJSON: Type.Optional(Type.String()),
|
|
1736
|
-
error: Type.Optional(Type.Object({
|
|
1737
|
-
code: Type.Optional(NonEmptyString),
|
|
1738
|
-
message: Type.Optional(NonEmptyString)
|
|
1739
|
-
}, { additionalProperties: false }))
|
|
1740
|
-
}, { additionalProperties: false });
|
|
1741
|
-
const NodeEventParamsSchema = Type.Object({
|
|
1742
|
-
event: NonEmptyString,
|
|
1743
|
-
payload: Type.Optional(Type.Unknown()),
|
|
1744
|
-
payloadJSON: Type.Optional(Type.String())
|
|
1745
|
-
}, { additionalProperties: false });
|
|
1746
|
-
const NodePendingDrainParamsSchema = Type.Object({ maxItems: Type.Optional(Type.Integer({
|
|
1747
|
-
minimum: 1,
|
|
1748
|
-
maximum: 10
|
|
1749
|
-
})) }, { additionalProperties: false });
|
|
1750
|
-
const NodePendingDrainItemSchema = Type.Object({
|
|
1751
|
-
id: NonEmptyString,
|
|
1752
|
-
type: NodePendingWorkTypeSchema,
|
|
1753
|
-
priority: Type.String({ enum: [
|
|
1754
|
-
"default",
|
|
1755
|
-
"normal",
|
|
1756
|
-
"high"
|
|
1757
|
-
] }),
|
|
1758
|
-
createdAtMs: Type.Integer({ minimum: 0 }),
|
|
1759
|
-
expiresAtMs: Type.Optional(Type.Union([Type.Integer({ minimum: 0 }), Type.Null()])),
|
|
1760
|
-
payload: Type.Optional(Type.Record(Type.String(), Type.Unknown()))
|
|
1761
|
-
}, { additionalProperties: false });
|
|
1762
|
-
Type.Object({
|
|
1763
|
-
nodeId: NonEmptyString,
|
|
1764
|
-
revision: Type.Integer({ minimum: 0 }),
|
|
1765
|
-
items: Type.Array(NodePendingDrainItemSchema),
|
|
1766
|
-
hasMore: Type.Boolean()
|
|
1767
|
-
}, { additionalProperties: false });
|
|
1768
|
-
const NodePendingEnqueueParamsSchema = Type.Object({
|
|
1769
|
-
nodeId: NonEmptyString,
|
|
1770
|
-
type: NodePendingWorkTypeSchema,
|
|
1771
|
-
priority: Type.Optional(NodePendingWorkPrioritySchema),
|
|
1772
|
-
expiresInMs: Type.Optional(Type.Integer({
|
|
1773
|
-
minimum: 1e3,
|
|
1774
|
-
maximum: 864e5
|
|
1775
|
-
})),
|
|
1776
|
-
wake: Type.Optional(Type.Boolean())
|
|
1777
|
-
}, { additionalProperties: false });
|
|
1778
|
-
Type.Object({
|
|
1779
|
-
nodeId: NonEmptyString,
|
|
1780
|
-
revision: Type.Integer({ minimum: 0 }),
|
|
1781
|
-
queued: NodePendingDrainItemSchema,
|
|
1782
|
-
wakeTriggered: Type.Boolean()
|
|
1783
|
-
}, { additionalProperties: false });
|
|
1784
|
-
Type.Object({
|
|
1785
|
-
id: NonEmptyString,
|
|
1786
|
-
nodeId: NonEmptyString,
|
|
1787
|
-
command: NonEmptyString,
|
|
1788
|
-
paramsJSON: Type.Optional(Type.String()),
|
|
1789
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1790
|
-
idempotencyKey: Type.Optional(NonEmptyString)
|
|
1791
|
-
}, { additionalProperties: false });
|
|
1792
|
-
//#endregion
|
|
1793
|
-
//#region src/gateway/protocol/schema/plugin-approvals.ts
|
|
1794
|
-
const PluginApprovalRequestParamsSchema = Type.Object({
|
|
1795
|
-
pluginId: Type.Optional(NonEmptyString),
|
|
1796
|
-
title: Type.String({
|
|
1797
|
-
minLength: 1,
|
|
1798
|
-
maxLength: 80
|
|
1799
|
-
}),
|
|
1800
|
-
description: Type.String({
|
|
1801
|
-
minLength: 1,
|
|
1802
|
-
maxLength: 256
|
|
1803
|
-
}),
|
|
1804
|
-
severity: Type.Optional(Type.String({ enum: [
|
|
1805
|
-
"info",
|
|
1806
|
-
"warning",
|
|
1807
|
-
"critical"
|
|
1808
|
-
] })),
|
|
1809
|
-
toolName: Type.Optional(Type.String()),
|
|
1810
|
-
toolCallId: Type.Optional(Type.String()),
|
|
1811
|
-
agentId: Type.Optional(Type.String()),
|
|
1812
|
-
sessionKey: Type.Optional(Type.String()),
|
|
1813
|
-
turnSourceChannel: Type.Optional(Type.String()),
|
|
1814
|
-
turnSourceTo: Type.Optional(Type.String()),
|
|
1815
|
-
turnSourceAccountId: Type.Optional(Type.String()),
|
|
1816
|
-
turnSourceThreadId: Type.Optional(Type.Union([Type.String(), Type.Number()])),
|
|
1817
|
-
timeoutMs: Type.Optional(Type.Integer({
|
|
1818
|
-
minimum: 1,
|
|
1819
|
-
maximum: MAX_PLUGIN_APPROVAL_TIMEOUT_MS
|
|
1820
|
-
})),
|
|
1821
|
-
twoPhase: Type.Optional(Type.Boolean())
|
|
1822
|
-
}, { additionalProperties: false });
|
|
1823
|
-
const PluginApprovalResolveParamsSchema = Type.Object({
|
|
1824
|
-
id: NonEmptyString,
|
|
1825
|
-
decision: NonEmptyString
|
|
1826
|
-
}, { additionalProperties: false });
|
|
1827
|
-
//#endregion
|
|
1828
|
-
//#region src/gateway/protocol/schema/plugins.ts
|
|
1829
|
-
const NullableStringSchema = Type.Union([Type.String(), Type.Null()]);
|
|
1830
|
-
const PluginPackageFamilySchema = Type.Union([Type.Literal("code-plugin"), Type.Literal("bundle-plugin")]);
|
|
1831
|
-
const PluginPackageChannelSchema = Type.Union([
|
|
1832
|
-
Type.Literal("official"),
|
|
1833
|
-
Type.Literal("community"),
|
|
1834
|
-
Type.Literal("private")
|
|
1835
|
-
]);
|
|
1836
|
-
const PluginInstallRecordSchema = Type.Object({
|
|
1837
|
-
source: NonEmptyString,
|
|
1838
|
-
spec: Type.Optional(Type.String()),
|
|
1839
|
-
sourcePath: Type.Optional(Type.String()),
|
|
1840
|
-
installPath: Type.Optional(Type.String()),
|
|
1841
|
-
version: Type.Optional(Type.String()),
|
|
1842
|
-
resolvedName: Type.Optional(Type.String()),
|
|
1843
|
-
resolvedVersion: Type.Optional(Type.String()),
|
|
1844
|
-
resolvedSpec: Type.Optional(Type.String()),
|
|
1845
|
-
marketplaceName: Type.Optional(Type.String()),
|
|
1846
|
-
marketplaceSource: Type.Optional(Type.String()),
|
|
1847
|
-
marketplacePlugin: Type.Optional(Type.String()),
|
|
1848
|
-
clawhubUrl: Type.Optional(Type.String()),
|
|
1849
|
-
clawhubPackage: Type.Optional(Type.String()),
|
|
1850
|
-
clawhubFamily: Type.Optional(Type.String()),
|
|
1851
|
-
clawhubChannel: Type.Optional(Type.String()),
|
|
1852
|
-
installedAt: Type.Optional(Type.String()),
|
|
1853
|
-
resolvedAt: Type.Optional(Type.String())
|
|
1854
|
-
}, { additionalProperties: false });
|
|
1855
|
-
const PluginStatusEntrySchema = Type.Object({
|
|
1856
|
-
id: NonEmptyString,
|
|
1857
|
-
name: NonEmptyString,
|
|
1858
|
-
status: Type.Union([
|
|
1859
|
-
Type.Literal("loaded"),
|
|
1860
|
-
Type.Literal("disabled"),
|
|
1861
|
-
Type.Literal("error")
|
|
1862
|
-
]),
|
|
1863
|
-
source: Type.String(),
|
|
1864
|
-
origin: Type.String(),
|
|
1865
|
-
enabled: Type.Boolean(),
|
|
1866
|
-
explicitlyEnabled: Type.Optional(Type.Boolean()),
|
|
1867
|
-
imported: Type.Optional(Type.Boolean()),
|
|
1868
|
-
description: Type.Optional(Type.String()),
|
|
1869
|
-
version: Type.Optional(Type.String()),
|
|
1870
|
-
format: Type.Optional(Type.String()),
|
|
1871
|
-
bundleFormat: Type.Optional(Type.String()),
|
|
1872
|
-
kind: Type.Optional(Type.Union([Type.String(), Type.Array(Type.String())])),
|
|
1873
|
-
rootDir: Type.Optional(Type.String()),
|
|
1874
|
-
activationReason: Type.Optional(Type.String()),
|
|
1875
|
-
error: Type.Optional(Type.String()),
|
|
1876
|
-
configSchema: Type.Boolean(),
|
|
1877
|
-
install: Type.Optional(PluginInstallRecordSchema),
|
|
1878
|
-
toolNames: Type.Array(Type.String()),
|
|
1879
|
-
channelIds: Type.Array(Type.String()),
|
|
1880
|
-
providerIds: Type.Array(Type.String()),
|
|
1881
|
-
speechProviderIds: Type.Array(Type.String()),
|
|
1882
|
-
webSearchProviderIds: Type.Array(Type.String()),
|
|
1883
|
-
webFetchProviderIds: Type.Array(Type.String()),
|
|
1884
|
-
agentHarnessIds: Type.Array(Type.String()),
|
|
1885
|
-
commands: Type.Array(Type.String()),
|
|
1886
|
-
gatewayMethods: Type.Array(Type.String()),
|
|
1887
|
-
services: Type.Array(Type.String()),
|
|
1888
|
-
httpRoutes: Type.Integer({ minimum: 0 })
|
|
1889
|
-
}, { additionalProperties: false });
|
|
1890
|
-
const PluginsStatusParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1891
|
-
Type.Object({
|
|
1892
|
-
workspaceDir: Type.Optional(Type.String()),
|
|
1893
|
-
plugins: Type.Array(PluginStatusEntrySchema),
|
|
1894
|
-
diagnostics: Type.Array(Type.Object({
|
|
1895
|
-
level: Type.String(),
|
|
1896
|
-
message: Type.String(),
|
|
1897
|
-
pluginId: Type.Optional(Type.String())
|
|
1898
|
-
}, { additionalProperties: false }))
|
|
1899
|
-
}, { additionalProperties: false });
|
|
1900
|
-
const ClawHubPackageListItemSchema = Type.Object({
|
|
1901
|
-
name: NonEmptyString,
|
|
1902
|
-
displayName: NonEmptyString,
|
|
1903
|
-
family: PluginPackageFamilySchema,
|
|
1904
|
-
runtimeId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1905
|
-
channel: PluginPackageChannelSchema,
|
|
1906
|
-
isOfficial: Type.Boolean(),
|
|
1907
|
-
summary: Type.Optional(NullableStringSchema),
|
|
1908
|
-
ownerHandle: Type.Optional(NullableStringSchema),
|
|
1909
|
-
createdAt: Type.Integer(),
|
|
1910
|
-
updatedAt: Type.Integer(),
|
|
1911
|
-
latestVersion: Type.Optional(NullableStringSchema),
|
|
1912
|
-
capabilityTags: Type.Optional(Type.Array(Type.String())),
|
|
1913
|
-
executesCode: Type.Optional(Type.Boolean()),
|
|
1914
|
-
verificationTier: Type.Optional(NullableStringSchema)
|
|
1915
|
-
}, { additionalProperties: false });
|
|
1916
|
-
const PluginsSearchParamsSchema = Type.Object({
|
|
1917
|
-
query: NonEmptyString,
|
|
1918
|
-
limit: Type.Optional(Type.Integer({
|
|
1919
|
-
minimum: 1,
|
|
1920
|
-
maximum: 100
|
|
1921
|
-
}))
|
|
1922
|
-
}, { additionalProperties: false });
|
|
1923
|
-
Type.Object({ results: Type.Array(Type.Object({
|
|
1924
|
-
score: Type.Number(),
|
|
1925
|
-
package: ClawHubPackageListItemSchema
|
|
1926
|
-
}, { additionalProperties: false })) }, { additionalProperties: false });
|
|
1927
|
-
const PluginsDetailParamsSchema = Type.Object({ name: NonEmptyString }, { additionalProperties: false });
|
|
1928
|
-
Type.Object({
|
|
1929
|
-
package: Type.Union([Type.Object({
|
|
1930
|
-
name: NonEmptyString,
|
|
1931
|
-
displayName: NonEmptyString,
|
|
1932
|
-
family: PluginPackageFamilySchema,
|
|
1933
|
-
runtimeId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1934
|
-
channel: PluginPackageChannelSchema,
|
|
1935
|
-
isOfficial: Type.Boolean(),
|
|
1936
|
-
summary: Type.Optional(NullableStringSchema),
|
|
1937
|
-
ownerHandle: Type.Optional(NullableStringSchema),
|
|
1938
|
-
createdAt: Type.Integer(),
|
|
1939
|
-
updatedAt: Type.Integer(),
|
|
1940
|
-
latestVersion: Type.Optional(NullableStringSchema),
|
|
1941
|
-
capabilityTags: Type.Optional(Type.Array(Type.String())),
|
|
1942
|
-
executesCode: Type.Optional(Type.Boolean()),
|
|
1943
|
-
verificationTier: Type.Optional(NullableStringSchema),
|
|
1944
|
-
tags: Type.Optional(Type.Record(NonEmptyString, Type.String())),
|
|
1945
|
-
compatibility: Type.Optional(Type.Union([Type.Object({
|
|
1946
|
-
pluginApiRange: Type.Optional(Type.String()),
|
|
1947
|
-
builtWithGenesisVersion: Type.Optional(Type.String()),
|
|
1948
|
-
pluginSdkVersion: Type.Optional(Type.String()),
|
|
1949
|
-
minGatewayVersion: Type.Optional(Type.String())
|
|
1950
|
-
}, { additionalProperties: false }), Type.Null()])),
|
|
1951
|
-
capabilities: Type.Optional(Type.Union([Type.Object({
|
|
1952
|
-
executesCode: Type.Optional(Type.Boolean()),
|
|
1953
|
-
runtimeId: Type.Optional(Type.String()),
|
|
1954
|
-
capabilityTags: Type.Optional(Type.Array(Type.String())),
|
|
1955
|
-
bundleFormat: Type.Optional(Type.String()),
|
|
1956
|
-
hostTargets: Type.Optional(Type.Array(Type.String())),
|
|
1957
|
-
pluginKind: Type.Optional(Type.String()),
|
|
1958
|
-
channels: Type.Optional(Type.Array(Type.String())),
|
|
1959
|
-
providers: Type.Optional(Type.Array(Type.String())),
|
|
1960
|
-
hooks: Type.Optional(Type.Array(Type.String())),
|
|
1961
|
-
bundledSkills: Type.Optional(Type.Array(Type.String()))
|
|
1962
|
-
}, { additionalProperties: false }), Type.Null()])),
|
|
1963
|
-
verification: Type.Optional(Type.Union([Type.Object({
|
|
1964
|
-
tier: Type.Optional(Type.String()),
|
|
1965
|
-
scope: Type.Optional(Type.String()),
|
|
1966
|
-
summary: Type.Optional(Type.String()),
|
|
1967
|
-
sourceRepo: Type.Optional(Type.String()),
|
|
1968
|
-
sourceCommit: Type.Optional(Type.String()),
|
|
1969
|
-
hasProvenance: Type.Optional(Type.Boolean()),
|
|
1970
|
-
scanStatus: Type.Optional(Type.String())
|
|
1971
|
-
}, { additionalProperties: false }), Type.Null()]))
|
|
1972
|
-
}, { additionalProperties: false }), Type.Null()]),
|
|
1973
|
-
owner: Type.Optional(Type.Union([Type.Object({
|
|
1974
|
-
handle: Type.Optional(NullableStringSchema),
|
|
1975
|
-
displayName: Type.Optional(NullableStringSchema),
|
|
1976
|
-
image: Type.Optional(NullableStringSchema)
|
|
1977
|
-
}, { additionalProperties: false }), Type.Null()]))
|
|
1978
|
-
}, { additionalProperties: false });
|
|
1979
|
-
const PluginsInstallParamsSchema = Type.Object({
|
|
1980
|
-
source: Type.Literal("clawhub"),
|
|
1981
|
-
name: NonEmptyString,
|
|
1982
|
-
version: Type.Optional(NonEmptyString),
|
|
1983
|
-
force: Type.Optional(Type.Boolean()),
|
|
1984
|
-
dangerouslyForceUnsafeInstall: Type.Optional(Type.Boolean())
|
|
1985
|
-
}, { additionalProperties: false });
|
|
1986
|
-
Type.Object({
|
|
1987
|
-
ok: Type.Literal(true),
|
|
1988
|
-
message: NonEmptyString,
|
|
1989
|
-
pluginId: NonEmptyString,
|
|
1990
|
-
version: Type.Optional(Type.String()),
|
|
1991
|
-
installPath: Type.Optional(Type.String()),
|
|
1992
|
-
warnings: Type.Array(Type.String())
|
|
1993
|
-
}, { additionalProperties: false });
|
|
1994
|
-
const PluginsUpdateParamsSchema = Type.Object({
|
|
1995
|
-
pluginId: NonEmptyString,
|
|
1996
|
-
enabled: Type.Boolean()
|
|
1997
|
-
}, { additionalProperties: false });
|
|
1998
|
-
Type.Object({
|
|
1999
|
-
ok: Type.Literal(true),
|
|
2000
|
-
pluginId: NonEmptyString,
|
|
2001
|
-
enabled: Type.Boolean(),
|
|
2002
|
-
message: NonEmptyString,
|
|
2003
|
-
warnings: Type.Array(Type.String())
|
|
2004
|
-
}, { additionalProperties: false });
|
|
2005
|
-
const PluginsUninstallParamsSchema = Type.Object({
|
|
2006
|
-
pluginId: NonEmptyString,
|
|
2007
|
-
keepFiles: Type.Optional(Type.Boolean())
|
|
2008
|
-
}, { additionalProperties: false });
|
|
2009
|
-
Type.Object({
|
|
2010
|
-
ok: Type.Literal(true),
|
|
2011
|
-
pluginId: NonEmptyString,
|
|
2012
|
-
removed: Type.Array(Type.String()),
|
|
2013
|
-
warnings: Type.Array(Type.String()),
|
|
2014
|
-
message: NonEmptyString
|
|
2015
|
-
}, { additionalProperties: false });
|
|
2016
|
-
//#endregion
|
|
2017
|
-
//#region src/gateway/protocol/schema/push.ts
|
|
2018
|
-
const ApnsEnvironmentSchema = Type.String({ enum: ["sandbox", "production"] });
|
|
2019
|
-
const PushTestParamsSchema = Type.Object({
|
|
2020
|
-
nodeId: NonEmptyString,
|
|
2021
|
-
title: Type.Optional(Type.String()),
|
|
2022
|
-
body: Type.Optional(Type.String()),
|
|
2023
|
-
environment: Type.Optional(ApnsEnvironmentSchema)
|
|
2024
|
-
}, { additionalProperties: false });
|
|
2025
|
-
Type.Object({
|
|
2026
|
-
ok: Type.Boolean(),
|
|
2027
|
-
status: Type.Integer(),
|
|
2028
|
-
apnsId: Type.Optional(Type.String()),
|
|
2029
|
-
reason: Type.Optional(Type.String()),
|
|
2030
|
-
tokenSuffix: Type.String(),
|
|
2031
|
-
topic: Type.String(),
|
|
2032
|
-
environment: ApnsEnvironmentSchema,
|
|
2033
|
-
transport: Type.String({ enum: ["direct", "relay"] })
|
|
2034
|
-
}, { additionalProperties: false });
|
|
2035
|
-
Type.Object({}, { additionalProperties: false });
|
|
2036
|
-
const SecretsResolveParamsSchema = Type.Object({
|
|
2037
|
-
commandName: NonEmptyString,
|
|
2038
|
-
targetIds: Type.Array(NonEmptyString)
|
|
2039
|
-
}, { additionalProperties: false });
|
|
2040
|
-
const SecretsResolveAssignmentSchema = Type.Object({
|
|
2041
|
-
path: Type.Optional(NonEmptyString),
|
|
2042
|
-
pathSegments: Type.Array(NonEmptyString),
|
|
2043
|
-
value: Type.Unknown()
|
|
2044
|
-
}, { additionalProperties: false });
|
|
2045
|
-
const SecretsResolveResultSchema = Type.Object({
|
|
2046
|
-
ok: Type.Optional(Type.Boolean()),
|
|
2047
|
-
assignments: Type.Optional(Type.Array(SecretsResolveAssignmentSchema)),
|
|
2048
|
-
diagnostics: Type.Optional(Type.Array(NonEmptyString)),
|
|
2049
|
-
inactiveRefPaths: Type.Optional(Type.Array(NonEmptyString))
|
|
2050
|
-
}, { additionalProperties: false });
|
|
2051
|
-
//#endregion
|
|
2052
|
-
//#region src/gateway/protocol/schema/sessions.ts
|
|
2053
|
-
const SessionCompactionCheckpointReasonSchema = Type.Union([
|
|
2054
|
-
Type.Literal("manual"),
|
|
2055
|
-
Type.Literal("auto-threshold"),
|
|
2056
|
-
Type.Literal("overflow-retry"),
|
|
2057
|
-
Type.Literal("timeout-retry")
|
|
2058
|
-
]);
|
|
2059
|
-
const SessionCompactionTranscriptReferenceSchema = Type.Object({
|
|
2060
|
-
sessionId: NonEmptyString,
|
|
2061
|
-
sessionFile: Type.Optional(NonEmptyString),
|
|
2062
|
-
leafId: Type.Optional(NonEmptyString),
|
|
2063
|
-
entryId: Type.Optional(NonEmptyString)
|
|
2064
|
-
}, { additionalProperties: false });
|
|
2065
|
-
const SessionCompactionCheckpointSchema = Type.Object({
|
|
2066
|
-
checkpointId: NonEmptyString,
|
|
2067
|
-
sessionKey: NonEmptyString,
|
|
2068
|
-
sessionId: NonEmptyString,
|
|
2069
|
-
createdAt: Type.Integer({ minimum: 0 }),
|
|
2070
|
-
reason: SessionCompactionCheckpointReasonSchema,
|
|
2071
|
-
tokensBefore: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
2072
|
-
tokensAfter: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
2073
|
-
summary: Type.Optional(Type.String()),
|
|
2074
|
-
firstKeptEntryId: Type.Optional(NonEmptyString),
|
|
2075
|
-
preCompaction: SessionCompactionTranscriptReferenceSchema,
|
|
2076
|
-
postCompaction: SessionCompactionTranscriptReferenceSchema
|
|
2077
|
-
}, { additionalProperties: false });
|
|
2078
|
-
const SessionsListParamsSchema = Type.Object({
|
|
2079
|
-
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
2080
|
-
activeMinutes: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
2081
|
-
includeGlobal: Type.Optional(Type.Boolean()),
|
|
2082
|
-
includeUnknown: Type.Optional(Type.Boolean()),
|
|
2083
|
-
includeDerivedTitles: Type.Optional(Type.Boolean()),
|
|
2084
|
-
includeLastMessage: Type.Optional(Type.Boolean()),
|
|
2085
|
-
includeTranscriptUsage: Type.Optional(Type.Boolean()),
|
|
2086
|
-
label: Type.Optional(SessionLabelString),
|
|
2087
|
-
spawnedBy: Type.Optional(NonEmptyString),
|
|
2088
|
-
agentId: Type.Optional(NonEmptyString),
|
|
2089
|
-
search: Type.Optional(Type.String())
|
|
2090
|
-
}, { additionalProperties: false });
|
|
2091
|
-
const SessionsPreviewParamsSchema = Type.Object({
|
|
2092
|
-
keys: Type.Array(NonEmptyString, { minItems: 1 }),
|
|
2093
|
-
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
2094
|
-
maxChars: Type.Optional(Type.Integer({ minimum: 20 }))
|
|
2095
|
-
}, { additionalProperties: false });
|
|
2096
|
-
const SessionsResolveParamsSchema = Type.Object({
|
|
2097
|
-
key: Type.Optional(NonEmptyString),
|
|
2098
|
-
sessionId: Type.Optional(NonEmptyString),
|
|
2099
|
-
label: Type.Optional(SessionLabelString),
|
|
2100
|
-
agentId: Type.Optional(NonEmptyString),
|
|
2101
|
-
spawnedBy: Type.Optional(NonEmptyString),
|
|
2102
|
-
includeGlobal: Type.Optional(Type.Boolean()),
|
|
2103
|
-
includeUnknown: Type.Optional(Type.Boolean())
|
|
2104
|
-
}, { additionalProperties: false });
|
|
2105
|
-
const SessionsCreateParamsSchema = Type.Object({
|
|
2106
|
-
key: Type.Optional(NonEmptyString),
|
|
2107
|
-
agentId: Type.Optional(NonEmptyString),
|
|
2108
|
-
label: Type.Optional(SessionLabelString),
|
|
2109
|
-
model: Type.Optional(NonEmptyString),
|
|
2110
|
-
parentSessionKey: Type.Optional(NonEmptyString),
|
|
2111
|
-
task: Type.Optional(Type.String()),
|
|
2112
|
-
message: Type.Optional(Type.String())
|
|
2113
|
-
}, { additionalProperties: false });
|
|
2114
|
-
const SessionsSendParamsSchema = Type.Object({
|
|
2115
|
-
key: NonEmptyString,
|
|
2116
|
-
message: Type.String(),
|
|
2117
|
-
thinking: Type.Optional(Type.String()),
|
|
2118
|
-
attachments: Type.Optional(Type.Array(Type.Unknown())),
|
|
2119
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
2120
|
-
idempotencyKey: Type.Optional(NonEmptyString)
|
|
2121
|
-
}, { additionalProperties: false });
|
|
2122
|
-
const SessionsMessagesSubscribeParamsSchema = Type.Object({ key: NonEmptyString }, { additionalProperties: false });
|
|
2123
|
-
const SessionsMessagesUnsubscribeParamsSchema = Type.Object({ key: NonEmptyString }, { additionalProperties: false });
|
|
2124
|
-
const SessionsAbortParamsSchema = Type.Object({
|
|
2125
|
-
key: NonEmptyString,
|
|
2126
|
-
runId: Type.Optional(NonEmptyString)
|
|
2127
|
-
}, { additionalProperties: false });
|
|
2128
|
-
const SessionsPatchParamsSchema = Type.Object({
|
|
2129
|
-
key: NonEmptyString,
|
|
2130
|
-
label: Type.Optional(Type.Union([SessionLabelString, Type.Null()])),
|
|
2131
|
-
thinkingLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2132
|
-
fastMode: Type.Optional(Type.Union([Type.Boolean(), Type.Null()])),
|
|
2133
|
-
verboseLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2134
|
-
traceLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2135
|
-
reasoningLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2136
|
-
responseUsage: Type.Optional(Type.Union([
|
|
2137
|
-
Type.Literal("off"),
|
|
2138
|
-
Type.Literal("tokens"),
|
|
2139
|
-
Type.Literal("full"),
|
|
2140
|
-
Type.Literal("on"),
|
|
2141
|
-
Type.Null()
|
|
2142
|
-
])),
|
|
2143
|
-
elevatedLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2144
|
-
execHost: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2145
|
-
execSecurity: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2146
|
-
execAsk: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2147
|
-
execNode: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2148
|
-
model: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2149
|
-
spawnedBy: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2150
|
-
spawnedWorkspaceDir: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2151
|
-
spawnDepth: Type.Optional(Type.Union([Type.Integer({ minimum: 0 }), Type.Null()])),
|
|
2152
|
-
subagentRole: Type.Optional(Type.Union([
|
|
2153
|
-
Type.Literal("orchestrator"),
|
|
2154
|
-
Type.Literal("leaf"),
|
|
2155
|
-
Type.Null()
|
|
2156
|
-
])),
|
|
2157
|
-
subagentControlScope: Type.Optional(Type.Union([
|
|
2158
|
-
Type.Literal("children"),
|
|
2159
|
-
Type.Literal("none"),
|
|
2160
|
-
Type.Null()
|
|
2161
|
-
])),
|
|
2162
|
-
sendPolicy: Type.Optional(Type.Union([
|
|
2163
|
-
Type.Literal("allow"),
|
|
2164
|
-
Type.Literal("deny"),
|
|
2165
|
-
Type.Null()
|
|
2166
|
-
])),
|
|
2167
|
-
groupActivation: Type.Optional(Type.Union([
|
|
2168
|
-
Type.Literal("mention"),
|
|
2169
|
-
Type.Literal("always"),
|
|
2170
|
-
Type.Null()
|
|
2171
|
-
]))
|
|
2172
|
-
}, { additionalProperties: false });
|
|
2173
|
-
const SessionsResetParamsSchema = Type.Object({
|
|
2174
|
-
key: NonEmptyString,
|
|
2175
|
-
reason: Type.Optional(Type.Union([Type.Literal("new"), Type.Literal("reset")]))
|
|
2176
|
-
}, { additionalProperties: false });
|
|
2177
|
-
const SessionsDeleteParamsSchema = Type.Object({
|
|
2178
|
-
key: NonEmptyString,
|
|
2179
|
-
deleteTranscript: Type.Optional(Type.Boolean()),
|
|
2180
|
-
emitLifecycleHooks: Type.Optional(Type.Boolean())
|
|
2181
|
-
}, { additionalProperties: false });
|
|
2182
|
-
const SessionsCompactParamsSchema = Type.Object({
|
|
2183
|
-
key: NonEmptyString,
|
|
2184
|
-
maxLines: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
2185
|
-
}, { additionalProperties: false });
|
|
2186
|
-
const SessionsCompactionListParamsSchema = Type.Object({ key: NonEmptyString }, { additionalProperties: false });
|
|
2187
|
-
const SessionsCompactionGetParamsSchema = Type.Object({
|
|
2188
|
-
key: NonEmptyString,
|
|
2189
|
-
checkpointId: NonEmptyString
|
|
2190
|
-
}, { additionalProperties: false });
|
|
2191
|
-
const SessionsCompactionBranchParamsSchema = Type.Object({
|
|
2192
|
-
key: NonEmptyString,
|
|
2193
|
-
checkpointId: NonEmptyString
|
|
2194
|
-
}, { additionalProperties: false });
|
|
2195
|
-
const SessionsCompactionRestoreParamsSchema = Type.Object({
|
|
2196
|
-
key: NonEmptyString,
|
|
2197
|
-
checkpointId: NonEmptyString
|
|
2198
|
-
}, { additionalProperties: false });
|
|
2199
|
-
Type.Object({
|
|
2200
|
-
ok: Type.Literal(true),
|
|
2201
|
-
key: NonEmptyString,
|
|
2202
|
-
checkpoints: Type.Array(SessionCompactionCheckpointSchema)
|
|
2203
|
-
}, { additionalProperties: false });
|
|
2204
|
-
Type.Object({
|
|
2205
|
-
ok: Type.Literal(true),
|
|
2206
|
-
key: NonEmptyString,
|
|
2207
|
-
checkpoint: SessionCompactionCheckpointSchema
|
|
2208
|
-
}, { additionalProperties: false });
|
|
2209
|
-
Type.Object({
|
|
2210
|
-
ok: Type.Literal(true),
|
|
2211
|
-
sourceKey: NonEmptyString,
|
|
2212
|
-
key: NonEmptyString,
|
|
2213
|
-
sessionId: NonEmptyString,
|
|
2214
|
-
checkpoint: SessionCompactionCheckpointSchema,
|
|
2215
|
-
entry: Type.Object({
|
|
2216
|
-
sessionId: NonEmptyString,
|
|
2217
|
-
updatedAt: Type.Integer({ minimum: 0 })
|
|
2218
|
-
}, { additionalProperties: true })
|
|
2219
|
-
}, { additionalProperties: false });
|
|
2220
|
-
Type.Object({
|
|
2221
|
-
ok: Type.Literal(true),
|
|
2222
|
-
key: NonEmptyString,
|
|
2223
|
-
sessionId: NonEmptyString,
|
|
2224
|
-
checkpoint: SessionCompactionCheckpointSchema,
|
|
2225
|
-
entry: Type.Object({
|
|
2226
|
-
sessionId: NonEmptyString,
|
|
2227
|
-
updatedAt: Type.Integer({ minimum: 0 })
|
|
2228
|
-
}, { additionalProperties: true })
|
|
2229
|
-
}, { additionalProperties: false });
|
|
2230
|
-
const SessionsUsageParamsSchema = Type.Object({
|
|
2231
|
-
key: Type.Optional(NonEmptyString),
|
|
2232
|
-
startDate: Type.Optional(Type.String({ pattern: "^\\d{4}-\\d{2}-\\d{2}$" })),
|
|
2233
|
-
endDate: Type.Optional(Type.String({ pattern: "^\\d{4}-\\d{2}-\\d{2}$" })),
|
|
2234
|
-
mode: Type.Optional(Type.Union([
|
|
2235
|
-
Type.Literal("utc"),
|
|
2236
|
-
Type.Literal("gateway"),
|
|
2237
|
-
Type.Literal("specific")
|
|
2238
|
-
])),
|
|
2239
|
-
utcOffset: Type.Optional(Type.String({ pattern: "^UTC[+-]\\d{1,2}(?::[0-5]\\d)?$" })),
|
|
2240
|
-
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
2241
|
-
includeContextWeight: Type.Optional(Type.Boolean())
|
|
2242
|
-
}, { additionalProperties: false });
|
|
2243
|
-
//#endregion
|
|
2244
|
-
//#region src/gateway/protocol/schema/wallet.ts
|
|
2245
|
-
const WalletChainSchema = Type.Union([
|
|
2246
|
-
Type.Literal("btc"),
|
|
2247
|
-
Type.Literal("evm"),
|
|
2248
|
-
Type.Literal("sol"),
|
|
2249
|
-
Type.Literal("trx"),
|
|
2250
|
-
Type.Literal("xmr"),
|
|
2251
|
-
Type.Literal("lndhub")
|
|
2252
|
-
]);
|
|
2253
|
-
const WalletSummaryParamsSchema = Type.Object({
|
|
2254
|
-
includeBalances: Type.Optional(Type.Boolean()),
|
|
2255
|
-
includeTokens: Type.Optional(Type.Boolean()),
|
|
2256
|
-
includeNfts: Type.Optional(Type.Boolean())
|
|
2257
|
-
}, { additionalProperties: false });
|
|
2258
|
-
const WalletRecoveryPhraseModeSchema = Type.Union([Type.Literal("generate"), Type.Literal("import")]);
|
|
2259
|
-
const WalletRecoveryPhraseSetParamsSchema = Type.Object({
|
|
2260
|
-
mode: WalletRecoveryPhraseModeSchema,
|
|
2261
|
-
passphrase: Type.Optional(Type.String({ maxLength: 16 * 1024 })),
|
|
2262
|
-
mnemonic: Type.Optional(Type.String({
|
|
2263
|
-
minLength: 1,
|
|
2264
|
-
maxLength: 64 * 1024
|
|
2265
|
-
})),
|
|
2266
|
-
overwrite: Type.Optional(Type.Boolean())
|
|
2267
|
-
}, { additionalProperties: false });
|
|
2268
|
-
const WalletPublicAccountSchema = Type.Object({
|
|
2269
|
-
id: Type.String({ minLength: 1 }),
|
|
2270
|
-
chain: WalletChainSchema,
|
|
2271
|
-
address: Type.String({ minLength: 1 }),
|
|
2272
|
-
label: Type.Optional(Type.String()),
|
|
2273
|
-
network: Type.Optional(Type.String()),
|
|
2274
|
-
derivationPath: Type.Optional(Type.String()),
|
|
2275
|
-
createdAt: Type.String(),
|
|
2276
|
-
updatedAt: Type.String()
|
|
2277
|
-
}, { additionalProperties: false });
|
|
2278
|
-
const WalletBalanceSchema = Type.Object({
|
|
2279
|
-
chain: WalletChainSchema,
|
|
2280
|
-
accountId: Type.String({ minLength: 1 }),
|
|
2281
|
-
address: Type.String({ minLength: 1 }),
|
|
2282
|
-
network: Type.Optional(Type.String()),
|
|
2283
|
-
asset: Type.String({ minLength: 1 }),
|
|
2284
|
-
amountAtomic: Type.String(),
|
|
2285
|
-
amount: Type.String(),
|
|
2286
|
-
confirmedAmountAtomic: Type.Optional(Type.String()),
|
|
2287
|
-
pendingAmountAtomic: Type.Optional(Type.String())
|
|
2288
|
-
}, { additionalProperties: false });
|
|
2289
|
-
const WalletTokenBalanceSchema = Type.Object({
|
|
2290
|
-
chain: Type.Literal("evm"),
|
|
2291
|
-
accountId: Type.String({ minLength: 1 }),
|
|
2292
|
-
address: Type.String({ minLength: 1 }),
|
|
2293
|
-
network: Type.Optional(Type.String()),
|
|
2294
|
-
tokenId: Type.String({ minLength: 1 }),
|
|
2295
|
-
contractAddress: Type.String({ minLength: 1 }),
|
|
2296
|
-
asset: Type.String({ minLength: 1 }),
|
|
2297
|
-
name: Type.Optional(Type.String()),
|
|
2298
|
-
decimals: Type.Number(),
|
|
2299
|
-
amountAtomic: Type.String(),
|
|
2300
|
-
amount: Type.String()
|
|
2301
|
-
}, { additionalProperties: false });
|
|
2302
|
-
const WalletNftTokenSchema = Type.Object({
|
|
2303
|
-
tokenId: Type.String({ minLength: 1 }),
|
|
2304
|
-
amount: Type.Optional(Type.String()),
|
|
2305
|
-
tokenUri: Type.Optional(Type.String())
|
|
2306
|
-
}, { additionalProperties: false });
|
|
2307
|
-
const WalletNftCollectionSchema = Type.Object({
|
|
2308
|
-
chain: Type.Literal("evm"),
|
|
2309
|
-
accountId: Type.String({ minLength: 1 }),
|
|
2310
|
-
address: Type.String({ minLength: 1 }),
|
|
2311
|
-
network: Type.Optional(Type.String()),
|
|
2312
|
-
collectionId: Type.String({ minLength: 1 }),
|
|
2313
|
-
contractAddress: Type.String({ minLength: 1 }),
|
|
2314
|
-
standard: Type.Union([Type.Literal("erc721"), Type.Literal("erc1155")]),
|
|
2315
|
-
name: Type.Optional(Type.String()),
|
|
2316
|
-
symbol: Type.Optional(Type.String()),
|
|
2317
|
-
balance: Type.Optional(Type.String()),
|
|
2318
|
-
tokens: Type.Array(WalletNftTokenSchema)
|
|
2319
|
-
}, { additionalProperties: false });
|
|
2320
|
-
const WalletSummaryResultSchema = Type.Object({
|
|
2321
|
-
enabled: Type.Boolean(),
|
|
2322
|
-
keystore: Type.Object({
|
|
2323
|
-
exists: Type.Boolean(),
|
|
2324
|
-
locked: Type.Boolean()
|
|
2325
|
-
}, { additionalProperties: false }),
|
|
2326
|
-
primaryAccount: Type.Optional(Type.String()),
|
|
2327
|
-
accounts: Type.Array(WalletPublicAccountSchema),
|
|
2328
|
-
balances: Type.Optional(Type.Array(WalletBalanceSchema)),
|
|
2329
|
-
tokens: Type.Optional(Type.Array(WalletTokenBalanceSchema)),
|
|
2330
|
-
nfts: Type.Optional(Type.Array(WalletNftCollectionSchema)),
|
|
2331
|
-
warnings: Type.Array(Type.String())
|
|
2332
|
-
}, { additionalProperties: false });
|
|
2333
|
-
const WalletRecoveryPhraseSetResultSchema = Type.Object({
|
|
2334
|
-
mnemonicGenerated: Type.Boolean(),
|
|
2335
|
-
mnemonic: Type.Optional(Type.String({ minLength: 1 })),
|
|
2336
|
-
summary: WalletSummaryResultSchema
|
|
2337
|
-
}, { additionalProperties: false });
|
|
2338
|
-
//#endregion
|
|
2339
|
-
//#region src/gateway/protocol/schema/wizard.ts
|
|
2340
|
-
const WizardRunStatusSchema = Type.Union([
|
|
2341
|
-
Type.Literal("running"),
|
|
2342
|
-
Type.Literal("done"),
|
|
2343
|
-
Type.Literal("cancelled"),
|
|
2344
|
-
Type.Literal("error")
|
|
2345
|
-
]);
|
|
2346
|
-
const WizardStartParamsSchema = Type.Object({
|
|
2347
|
-
target: Type.Optional(Type.Union([
|
|
2348
|
-
Type.Literal("setup"),
|
|
2349
|
-
Type.Literal("channels"),
|
|
2350
|
-
Type.Literal("models")
|
|
2351
|
-
])),
|
|
2352
|
-
mode: Type.Optional(Type.Union([Type.Literal("local"), Type.Literal("remote")])),
|
|
2353
|
-
workspace: Type.Optional(Type.String()),
|
|
2354
|
-
channel: Type.Optional(Type.String()),
|
|
2355
|
-
provider: Type.Optional(Type.String()),
|
|
2356
|
-
authMethod: Type.Optional(Type.String()),
|
|
2357
|
-
setDefault: Type.Optional(Type.Boolean())
|
|
2358
|
-
}, { additionalProperties: false });
|
|
2359
|
-
const WizardAnswerSchema = Type.Object({
|
|
2360
|
-
stepId: NonEmptyString,
|
|
2361
|
-
value: Type.Optional(Type.Unknown())
|
|
2362
|
-
}, { additionalProperties: false });
|
|
2363
|
-
const WizardNextParamsSchema = Type.Object({
|
|
2364
|
-
sessionId: NonEmptyString,
|
|
2365
|
-
answer: Type.Optional(WizardAnswerSchema)
|
|
2366
|
-
}, { additionalProperties: false });
|
|
2367
|
-
const WizardSessionIdParamsSchema = Type.Object({ sessionId: NonEmptyString }, { additionalProperties: false });
|
|
2368
|
-
const WizardCancelParamsSchema = WizardSessionIdParamsSchema;
|
|
2369
|
-
const WizardStatusParamsSchema = WizardSessionIdParamsSchema;
|
|
2370
|
-
const WizardStepOptionSchema = Type.Object({
|
|
2371
|
-
value: Type.Unknown(),
|
|
2372
|
-
label: NonEmptyString,
|
|
2373
|
-
hint: Type.Optional(Type.String())
|
|
2374
|
-
}, { additionalProperties: false });
|
|
2375
|
-
const WizardStepSchema = Type.Object({
|
|
2376
|
-
id: NonEmptyString,
|
|
2377
|
-
type: Type.Union([
|
|
2378
|
-
Type.Literal("note"),
|
|
2379
|
-
Type.Literal("select"),
|
|
2380
|
-
Type.Literal("text"),
|
|
2381
|
-
Type.Literal("confirm"),
|
|
2382
|
-
Type.Literal("multiselect"),
|
|
2383
|
-
Type.Literal("progress"),
|
|
2384
|
-
Type.Literal("action")
|
|
2385
|
-
]),
|
|
2386
|
-
title: Type.Optional(Type.String()),
|
|
2387
|
-
message: Type.Optional(Type.String()),
|
|
2388
|
-
options: Type.Optional(Type.Array(WizardStepOptionSchema)),
|
|
2389
|
-
initialValue: Type.Optional(Type.Unknown()),
|
|
2390
|
-
placeholder: Type.Optional(Type.String()),
|
|
2391
|
-
sensitive: Type.Optional(Type.Boolean()),
|
|
2392
|
-
executor: Type.Optional(Type.Union([Type.Literal("gateway"), Type.Literal("client")]))
|
|
2393
|
-
}, { additionalProperties: false });
|
|
2394
|
-
const WizardResultFields = {
|
|
2395
|
-
done: Type.Boolean(),
|
|
2396
|
-
step: Type.Optional(WizardStepSchema),
|
|
2397
|
-
status: Type.Optional(WizardRunStatusSchema),
|
|
2398
|
-
error: Type.Optional(Type.String())
|
|
2399
|
-
};
|
|
2400
|
-
Type.Object(WizardResultFields, { additionalProperties: false });
|
|
2401
|
-
Type.Object({
|
|
2402
|
-
sessionId: NonEmptyString,
|
|
2403
|
-
...WizardResultFields
|
|
2404
|
-
}, { additionalProperties: false });
|
|
2405
|
-
Type.Object({
|
|
2406
|
-
status: WizardRunStatusSchema,
|
|
2407
|
-
error: Type.Optional(Type.String())
|
|
2408
|
-
}, { additionalProperties: false });
|
|
2409
|
-
//#endregion
|
|
2410
|
-
//#region src/gateway/protocol/index.ts
|
|
2411
|
-
const ajv = new AjvPkg({
|
|
2412
|
-
allErrors: true,
|
|
2413
|
-
strict: false,
|
|
2414
|
-
removeAdditional: false
|
|
2415
|
-
});
|
|
2416
|
-
const validateCommandsListParams = ajv.compile(CommandsListParamsSchema);
|
|
2417
|
-
const validateConnectParams = ajv.compile(ConnectParamsSchema);
|
|
2418
|
-
const validateRequestFrame = ajv.compile(RequestFrameSchema);
|
|
2419
|
-
const validateResponseFrame = ajv.compile(ResponseFrameSchema);
|
|
2420
|
-
const validateEventFrame = ajv.compile(EventFrameSchema);
|
|
2421
|
-
const validateMessageActionParams = ajv.compile(MessageActionParamsSchema);
|
|
2422
|
-
const validateSendParams = ajv.compile(SendParamsSchema);
|
|
2423
|
-
const validatePollParams = ajv.compile(PollParamsSchema);
|
|
2424
|
-
const validateAgentParams = ajv.compile(AgentParamsSchema);
|
|
2425
|
-
const validateAgentIdentityParams = ajv.compile(AgentIdentityParamsSchema);
|
|
2426
|
-
const validateAgentWaitParams = ajv.compile(AgentWaitParamsSchema);
|
|
2427
|
-
const validateWakeParams = ajv.compile(WakeParamsSchema);
|
|
2428
|
-
const validateAgentsListParams = ajv.compile(AgentsListParamsSchema);
|
|
2429
|
-
const validateAgentsCreateParams = ajv.compile(AgentsCreateParamsSchema);
|
|
2430
|
-
const validateAgentsUpdateParams = ajv.compile(AgentsUpdateParamsSchema);
|
|
2431
|
-
const validateAgentsDeleteParams = ajv.compile(AgentsDeleteParamsSchema);
|
|
2432
|
-
const validateAgentsFilesListParams = ajv.compile(AgentsFilesListParamsSchema);
|
|
2433
|
-
const validateAgentsFilesGetParams = ajv.compile(AgentsFilesGetParamsSchema);
|
|
2434
|
-
const validateAgentsFilesSetParams = ajv.compile(AgentsFilesSetParamsSchema);
|
|
2435
|
-
const validateAgentsMemoryGraphParams = ajv.compile(AgentsMemoryGraphParamsSchema);
|
|
2436
|
-
const validateContactsListParams = ajv.compile(ContactsListParamsSchema);
|
|
2437
|
-
const validateContactsSaveParams = ajv.compile(ContactsSaveParamsSchema);
|
|
2438
|
-
const validateContactsDeleteParams = ajv.compile(ContactsDeleteParamsSchema);
|
|
2439
|
-
const validateNodePairRequestParams = ajv.compile(NodePairRequestParamsSchema);
|
|
2440
|
-
const validateNodePairListParams = ajv.compile(NodePairListParamsSchema);
|
|
2441
|
-
const validateNodePairApproveParams = ajv.compile(NodePairApproveParamsSchema);
|
|
2442
|
-
const validateNodePairRejectParams = ajv.compile(NodePairRejectParamsSchema);
|
|
2443
|
-
const validateNodePairVerifyParams = ajv.compile(NodePairVerifyParamsSchema);
|
|
2444
|
-
const validateNodeRenameParams = ajv.compile(NodeRenameParamsSchema);
|
|
2445
|
-
const validateNodeListParams = ajv.compile(NodeListParamsSchema);
|
|
2446
|
-
const validateNodePendingAckParams = ajv.compile(NodePendingAckParamsSchema);
|
|
2447
|
-
const validateNodeDescribeParams = ajv.compile(NodeDescribeParamsSchema);
|
|
2448
|
-
const validateNodeInvokeParams = ajv.compile(NodeInvokeParamsSchema);
|
|
2449
|
-
const validateNodeInvokeResultParams = ajv.compile(NodeInvokeResultParamsSchema);
|
|
2450
|
-
const validateNodeEventParams = ajv.compile(NodeEventParamsSchema);
|
|
2451
|
-
const validateNodePendingDrainParams = ajv.compile(NodePendingDrainParamsSchema);
|
|
2452
|
-
const validateNodePendingEnqueueParams = ajv.compile(NodePendingEnqueueParamsSchema);
|
|
2453
|
-
const validateCanvasDocumentCreateParams = ajv.compile(CanvasDocumentCreateParamsSchema);
|
|
2454
|
-
const validateCanvasDocumentUpdateParams = ajv.compile(CanvasDocumentUpdateParamsSchema);
|
|
2455
|
-
ajv.compile(CanvasDocumentCreateResultSchema);
|
|
2456
|
-
const validateCanvasDocumentListParams = ajv.compile(CanvasDocumentListParamsSchema);
|
|
2457
|
-
ajv.compile(CanvasDocumentListResultSchema);
|
|
2458
|
-
const validatePushTestParams = ajv.compile(PushTestParamsSchema);
|
|
2459
|
-
const validateSecretsResolveParams = ajv.compile(SecretsResolveParamsSchema);
|
|
2460
|
-
const validateSecretsResolveResult = ajv.compile(SecretsResolveResultSchema);
|
|
2461
|
-
const validateSessionsListParams = ajv.compile(SessionsListParamsSchema);
|
|
2462
|
-
const validateSessionsPreviewParams = ajv.compile(SessionsPreviewParamsSchema);
|
|
2463
|
-
const validateSessionsResolveParams = ajv.compile(SessionsResolveParamsSchema);
|
|
2464
|
-
const validateSessionsCreateParams = ajv.compile(SessionsCreateParamsSchema);
|
|
2465
|
-
const validateSessionsSendParams = ajv.compile(SessionsSendParamsSchema);
|
|
2466
|
-
const validateSessionsMessagesSubscribeParams = ajv.compile(SessionsMessagesSubscribeParamsSchema);
|
|
2467
|
-
const validateSessionsMessagesUnsubscribeParams = ajv.compile(SessionsMessagesUnsubscribeParamsSchema);
|
|
2468
|
-
const validateSessionsAbortParams = ajv.compile(SessionsAbortParamsSchema);
|
|
2469
|
-
const validateSessionsPatchParams = ajv.compile(SessionsPatchParamsSchema);
|
|
2470
|
-
const validateSessionsResetParams = ajv.compile(SessionsResetParamsSchema);
|
|
2471
|
-
const validateSessionsDeleteParams = ajv.compile(SessionsDeleteParamsSchema);
|
|
2472
|
-
const validateSessionsCompactParams = ajv.compile(SessionsCompactParamsSchema);
|
|
2473
|
-
const validateSessionsCompactionListParams = ajv.compile(SessionsCompactionListParamsSchema);
|
|
2474
|
-
const validateSessionsCompactionGetParams = ajv.compile(SessionsCompactionGetParamsSchema);
|
|
2475
|
-
const validateSessionsCompactionBranchParams = ajv.compile(SessionsCompactionBranchParamsSchema);
|
|
2476
|
-
const validateSessionsCompactionRestoreParams = ajv.compile(SessionsCompactionRestoreParamsSchema);
|
|
2477
|
-
const validateSessionsUsageParams = ajv.compile(SessionsUsageParamsSchema);
|
|
2478
|
-
const validateConfigGetParams = ajv.compile(ConfigGetParamsSchema);
|
|
2479
|
-
const validateConfigSetParams = ajv.compile(ConfigSetParamsSchema);
|
|
2480
|
-
const validateConfigApplyParams = ajv.compile(ConfigApplyParamsSchema);
|
|
2481
|
-
const validateConfigPatchParams = ajv.compile(ConfigPatchParamsSchema);
|
|
2482
|
-
const validateConfigSchemaParams = ajv.compile(ConfigSchemaParamsSchema);
|
|
2483
|
-
const validateConfigSchemaLookupParams = ajv.compile(ConfigSchemaLookupParamsSchema);
|
|
2484
|
-
const validateConfigSchemaLookupResult = ajv.compile(ConfigSchemaLookupResultSchema);
|
|
2485
|
-
const validateWizardStartParams = ajv.compile(WizardStartParamsSchema);
|
|
2486
|
-
const validateWizardNextParams = ajv.compile(WizardNextParamsSchema);
|
|
2487
|
-
const validateWizardCancelParams = ajv.compile(WizardCancelParamsSchema);
|
|
2488
|
-
const validateWizardStatusParams = ajv.compile(WizardStatusParamsSchema);
|
|
2489
|
-
const validateTalkModeParams = ajv.compile(TalkModeParamsSchema);
|
|
2490
|
-
const validateTalkConfigParams = ajv.compile(TalkConfigParamsSchema);
|
|
2491
|
-
ajv.compile(TalkConfigResultSchema);
|
|
2492
|
-
const validateTalkRealtimeSessionParams = ajv.compile(TalkRealtimeSessionParamsSchema);
|
|
2493
|
-
ajv.compile(TalkRealtimeSessionResultSchema);
|
|
2494
|
-
const validateTalkSpeakParams = ajv.compile(TalkSpeakParamsSchema);
|
|
2495
|
-
ajv.compile(TalkSpeakResultSchema);
|
|
2496
|
-
const validateChannelsStatusParams = ajv.compile(ChannelsStatusParamsSchema);
|
|
2497
|
-
const validateChannelsStartParams = ajv.compile(ChannelsStartParamsSchema);
|
|
2498
|
-
const validateChannelsLogoutParams = ajv.compile(ChannelsLogoutParamsSchema);
|
|
2499
|
-
const validateModelsListParams = ajv.compile(ModelsListParamsSchema);
|
|
2500
|
-
const validateSkillsStatusParams = ajv.compile(SkillsStatusParamsSchema);
|
|
2501
|
-
const validateToolsCatalogParams = ajv.compile(ToolsCatalogParamsSchema);
|
|
2502
|
-
const validateMcpServersListParams = ajv.compile(McpServersListParamsSchema);
|
|
2503
|
-
const validateMcpServerSetParams = ajv.compile(McpServerSetParamsSchema);
|
|
2504
|
-
const validateMcpServerUnsetParams = ajv.compile(McpServerUnsetParamsSchema);
|
|
2505
|
-
const validateMcpServerMetadataParams = ajv.compile(McpServerMetadataParamsSchema);
|
|
2506
|
-
const validateMcpServerTestParams = ajv.compile(McpServerTestParamsSchema);
|
|
2507
|
-
const validateMcpOAuthStartParams = ajv.compile(McpOAuthStartParamsSchema);
|
|
2508
|
-
const validateMcpOAuthCallbackParams = ajv.compile(McpOAuthCallbackParamsSchema);
|
|
2509
|
-
const validateMcpOAuthStatusParams = ajv.compile(McpOAuthStatusParamsSchema);
|
|
2510
|
-
const validateMcpOAuthDisconnectParams = ajv.compile(McpOAuthDisconnectParamsSchema);
|
|
2511
|
-
const validateMcpOAuthRefreshParams = ajv.compile(McpOAuthRefreshParamsSchema);
|
|
2512
|
-
const validateMcpOAuthEmbeddedStartParams = ajv.compile(McpOAuthEmbeddedStartParamsSchema);
|
|
2513
|
-
const validateMcpOAuthEmbeddedPollParams = ajv.compile(McpOAuthEmbeddedPollParamsSchema);
|
|
2514
|
-
const validateMcpOAuthEmbeddedInputParams = ajv.compile(McpOAuthEmbeddedInputParamsSchema);
|
|
2515
|
-
const validateMcpOAuthEmbeddedCancelParams = ajv.compile(McpOAuthEmbeddedCancelParamsSchema);
|
|
2516
|
-
const validateToolsEffectiveParams = ajv.compile(ToolsEffectiveParamsSchema);
|
|
2517
|
-
const validateSkillsBinsParams = ajv.compile(SkillsBinsParamsSchema);
|
|
2518
|
-
const validateSkillsInstallParams = ajv.compile(SkillsInstallParamsSchema);
|
|
2519
|
-
const validateSkillsUpdateParams = ajv.compile(SkillsUpdateParamsSchema);
|
|
2520
|
-
const validateSkillsSearchParams = ajv.compile(SkillsSearchParamsSchema);
|
|
2521
|
-
const validateSkillsDetailParams = ajv.compile(SkillsDetailParamsSchema);
|
|
2522
|
-
const validateCronListParams = ajv.compile(CronListParamsSchema);
|
|
2523
|
-
const validateCronStatusParams = ajv.compile(CronStatusParamsSchema);
|
|
2524
|
-
const validateCronAddParams = ajv.compile(CronAddParamsSchema);
|
|
2525
|
-
const validateCronUpdateParams = ajv.compile(CronUpdateParamsSchema);
|
|
2526
|
-
const validateCronRemoveParams = ajv.compile(CronRemoveParamsSchema);
|
|
2527
|
-
const validateCronRunParams = ajv.compile(CronRunParamsSchema);
|
|
2528
|
-
const validateCronRunsParams = ajv.compile(CronRunsParamsSchema);
|
|
2529
|
-
const validateDevicePairListParams = ajv.compile(DevicePairListParamsSchema);
|
|
2530
|
-
const validateDevicePairApproveParams = ajv.compile(DevicePairApproveParamsSchema);
|
|
2531
|
-
const validateDevicePairRejectParams = ajv.compile(DevicePairRejectParamsSchema);
|
|
2532
|
-
const validateDevicePairRemoveParams = ajv.compile(DevicePairRemoveParamsSchema);
|
|
2533
|
-
const validateDeviceTokenRotateParams = ajv.compile(DeviceTokenRotateParamsSchema);
|
|
2534
|
-
const validateDeviceTokenRevokeParams = ajv.compile(DeviceTokenRevokeParamsSchema);
|
|
2535
|
-
const validateExecApprovalsGetParams = ajv.compile(ExecApprovalsGetParamsSchema);
|
|
2536
|
-
const validateExecApprovalsSetParams = ajv.compile(ExecApprovalsSetParamsSchema);
|
|
2537
|
-
const validateExecApprovalGetParams = ajv.compile(ExecApprovalGetParamsSchema);
|
|
2538
|
-
const validateExecApprovalRequestParams = ajv.compile(ExecApprovalRequestParamsSchema);
|
|
2539
|
-
const validateExecApprovalResolveParams = ajv.compile(ExecApprovalResolveParamsSchema);
|
|
2540
|
-
const validatePluginApprovalRequestParams = ajv.compile(PluginApprovalRequestParamsSchema);
|
|
2541
|
-
const validatePluginApprovalResolveParams = ajv.compile(PluginApprovalResolveParamsSchema);
|
|
2542
|
-
const validatePluginsStatusParams = ajv.compile(PluginsStatusParamsSchema);
|
|
2543
|
-
const validatePluginsSearchParams = ajv.compile(PluginsSearchParamsSchema);
|
|
2544
|
-
const validatePluginsDetailParams = ajv.compile(PluginsDetailParamsSchema);
|
|
2545
|
-
const validatePluginsInstallParams = ajv.compile(PluginsInstallParamsSchema);
|
|
2546
|
-
const validatePluginsUpdateParams = ajv.compile(PluginsUpdateParamsSchema);
|
|
2547
|
-
const validatePluginsUninstallParams = ajv.compile(PluginsUninstallParamsSchema);
|
|
2548
|
-
const validateExecApprovalsNodeGetParams = ajv.compile(ExecApprovalsNodeGetParamsSchema);
|
|
2549
|
-
const validateExecApprovalsNodeSetParams = ajv.compile(ExecApprovalsNodeSetParamsSchema);
|
|
2550
|
-
const validateLogsTailParams = ajv.compile(LogsTailParamsSchema);
|
|
2551
|
-
const validateChatHistoryParams = ajv.compile(ChatHistoryParamsSchema);
|
|
2552
|
-
const validateChatSendParams = ajv.compile(ChatSendParamsSchema);
|
|
2553
|
-
const validateChatAbortParams = ajv.compile(ChatAbortParamsSchema);
|
|
2554
|
-
const validateChatInjectParams = ajv.compile(ChatInjectParamsSchema);
|
|
2555
|
-
ajv.compile(ChatEventSchema);
|
|
2556
|
-
const validateUpdateRunParams = ajv.compile(UpdateRunParamsSchema);
|
|
2557
|
-
const validateWebLoginStartParams = ajv.compile(WebLoginStartParamsSchema);
|
|
2558
|
-
const validateWebLoginWaitParams = ajv.compile(WebLoginWaitParamsSchema);
|
|
2559
|
-
const validateWalletSummaryParams = ajv.compile(WalletSummaryParamsSchema);
|
|
2560
|
-
ajv.compile(WalletSummaryResultSchema);
|
|
2561
|
-
const validateWalletRecoveryPhraseSetParams = ajv.compile(WalletRecoveryPhraseSetParamsSchema);
|
|
2562
|
-
ajv.compile(WalletRecoveryPhraseSetResultSchema);
|
|
2563
|
-
function formatValidationErrors(errors) {
|
|
2564
|
-
if (!errors?.length) return "unknown validation error";
|
|
2565
|
-
const parts = [];
|
|
2566
|
-
for (const err of errors) {
|
|
2567
|
-
const keyword = typeof err?.keyword === "string" ? err.keyword : "";
|
|
2568
|
-
const instancePath = typeof err?.instancePath === "string" ? err.instancePath : "";
|
|
2569
|
-
if (keyword === "additionalProperties") {
|
|
2570
|
-
const additionalProperty = (err?.params)?.additionalProperty;
|
|
2571
|
-
if (typeof additionalProperty === "string" && additionalProperty.trim()) {
|
|
2572
|
-
const where = instancePath ? `at ${instancePath}` : "at root";
|
|
2573
|
-
parts.push(`${where}: unexpected property '${additionalProperty}'`);
|
|
2574
|
-
continue;
|
|
2575
|
-
}
|
|
2576
|
-
}
|
|
2577
|
-
const message = typeof err?.message === "string" && err.message.trim() ? err.message : "validation error";
|
|
2578
|
-
const where = instancePath ? `at ${instancePath}: ` : "";
|
|
2579
|
-
parts.push(`${where}${message}`);
|
|
2580
|
-
}
|
|
2581
|
-
const unique = Array.from(new Set(parts.filter((part) => part.trim())));
|
|
2582
|
-
if (!unique.length) return ajv.errorsText(errors, { separator: "; " }) || "unknown validation error";
|
|
2583
|
-
return unique.join("; ");
|
|
2584
|
-
}
|
|
2585
|
-
//#endregion
|
|
2586
|
-
export { validateExecApprovalsNodeGetParams as $, validateSessionsCompactionRestoreParams as $t, validateConfigSetParams as A, validateWizardNextParams as An, validateNodePendingDrainParams as At, validateCronStatusParams as B, validatePluginsUpdateParams as Bt, validateCommandsListParams as C, validateUpdateRunParams as Cn, validateNodeListParams as Ct, validateConfigSchemaLookupParams as D, validateWebLoginStartParams as Dn, validateNodePairRequestParams as Dt, validateConfigPatchParams as E, validateWalletSummaryParams as En, validateNodePairRejectParams as Et, validateCronAddParams as F, COMMAND_DESCRIPTION_MAX_LENGTH as Fn, validatePluginsDetailParams as Ft, validateDevicePairRemoveParams as G, validateSecretsResolveParams as Gt, validateDevicePairApproveParams as H, validatePushTestParams as Ht, validateCronListParams as I, parseSessionLabel as In, validatePluginsInstallParams as It, validateEventFrame as J, validateSessionsAbortParams as Jt, validateDeviceTokenRevokeParams as K, validateSecretsResolveResult as Kt, validateCronRemoveParams as L, validatePluginsSearchParams as Lt, validateContactsDeleteParams as M, validateWizardStatusParams as Mn, validateNodeRenameParams as Mt, validateContactsListParams as N, ErrorCodes as Nn, validatePluginApprovalRequestParams as Nt, validateConfigSchemaLookupResult as O, validateWebLoginWaitParams as On, validateNodePairVerifyParams as Ot, validateContactsSaveParams as P, errorShape as Pn, validatePluginApprovalResolveParams as Pt, validateExecApprovalsGetParams as Q, validateSessionsCompactionListParams as Qt, validateCronRunParams as R, validatePluginsStatusParams as Rt, validateChatSendParams as S, validateToolsEffectiveParams as Sn, validateNodeInvokeResultParams as St, validateConfigGetParams as T, validateWalletRecoveryPhraseSetParams as Tn, validateNodePairListParams as Tt, validateDevicePairListParams as U, validateRequestFrame as Ut, validateCronUpdateParams as V, validatePollParams as Vt, validateDevicePairRejectParams as W, validateResponseFrame as Wt, validateExecApprovalRequestParams as X, validateSessionsCompactionBranchParams as Xt, validateExecApprovalGetParams as Y, validateSessionsCompactParams as Yt, validateExecApprovalResolveParams as Z, validateSessionsCompactionGetParams as Zt, validateChannelsStartParams as _, validateTalkConfigParams as _n, validateMessageActionParams as _t, validateAgentsCreateParams as a, validateSessionsPatchParams as an, validateMcpOAuthEmbeddedCancelParams as at, validateChatHistoryParams as b, validateTalkSpeakParams as bn, validateNodeEventParams as bt, validateAgentsFilesListParams as c, validateSessionsResolveParams as cn, validateMcpOAuthEmbeddedStartParams as ct, validateAgentsMemoryGraphParams as d, validateSkillsBinsParams as dn, validateMcpOAuthStatusParams as dt, validateSessionsCreateParams as en, validateExecApprovalsNodeSetParams as et, validateAgentsUpdateParams as f, validateSkillsDetailParams as fn, validateMcpServerMetadataParams as ft, validateChannelsLogoutParams as g, validateSkillsUpdateParams as gn, validateMcpServersListParams as gt, validateCanvasDocumentUpdateParams as h, validateSkillsStatusParams as hn, validateMcpServerUnsetParams as ht, validateAgentWaitParams as i, validateSessionsMessagesUnsubscribeParams as in, validateMcpOAuthDisconnectParams as it, validateConnectParams as j, validateWizardStartParams as jn, validateNodePendingEnqueueParams as jt, validateConfigSchemaParams as k, validateWizardCancelParams as kn, validateNodePendingAckParams as kt, validateAgentsFilesSetParams as l, validateSessionsSendParams as ln, validateMcpOAuthRefreshParams as lt, validateCanvasDocumentListParams as m, validateSkillsSearchParams as mn, validateMcpServerTestParams as mt, validateAgentIdentityParams as n, validateSessionsListParams as nn, validateLogsTailParams as nt, validateAgentsDeleteParams as o, validateSessionsPreviewParams as on, validateMcpOAuthEmbeddedInputParams as ot, validateCanvasDocumentCreateParams as p, validateSkillsInstallParams as pn, validateMcpServerSetParams as pt, validateDeviceTokenRotateParams as q, validateSendParams as qt, validateAgentParams as r, validateSessionsMessagesSubscribeParams as rn, validateMcpOAuthCallbackParams as rt, validateAgentsFilesGetParams as s, validateSessionsResetParams as sn, validateMcpOAuthEmbeddedPollParams as st, formatValidationErrors as t, validateSessionsDeleteParams as tn, validateExecApprovalsSetParams as tt, validateAgentsListParams as u, validateSessionsUsageParams as un, validateMcpOAuthStartParams as ut, validateChannelsStatusParams as v, validateTalkModeParams as vn, validateModelsListParams as vt, validateConfigApplyParams as w, validateWakeParams as wn, validateNodePairApproveParams as wt, validateChatInjectParams as x, validateToolsCatalogParams as xn, validateNodeInvokeParams as xt, validateChatAbortParams as y, validateTalkRealtimeSessionParams as yn, validateNodeDescribeParams as yt, validateCronRunsParams as z, validatePluginsUninstallParams as zt };
|