@pixelzx/genesis 2026.6.28 → 2026.6.29
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-CvJN6IMd.js +201 -0
- package/dist/abort.runtime-DAzGHIa2.js +2 -0
- package/dist/abort.runtime.js +1 -1
- package/dist/accounts-B3aTKIO4.js +104 -0
- package/dist/accounts-BwigO-9Q.js +2 -0
- package/dist/accounts-CdLNyXHa.js +107 -0
- package/dist/acp-cli-DQz79rl7.js +2217 -0
- package/dist/acp-spawn-Bbs_m3VF.js +2 -0
- package/dist/acp-spawn-CTMewMbn.js +1042 -0
- package/dist/acp-stateful-target-driver-D4VaoZPV.js +89 -0
- package/dist/action-agents-DFmhHVfJ.js +67 -0
- package/dist/action-focus-Dx08tcy-.js +132 -0
- package/dist/action-help-hQl_vyPP.js +7 -0
- package/dist/action-info-JmXoHEPD.js +101 -0
- package/dist/action-kill-BcGm94a1.js +33 -0
- package/dist/action-list-BtDTTljd.js +21 -0
- package/dist/action-log-CzNEUTkF.js +30 -0
- package/dist/action-send-BVjcdCrr.js +39 -0
- package/dist/action-spawn-Cn0JgaO1.js +47 -0
- package/dist/action-unfocus-c1Uu4T8u.js +29 -0
- package/dist/actions.runtime-Cmrr3s-z.js +5 -0
- package/dist/actions.runtime-XCeILsBA.js +18 -0
- package/dist/actions.runtime.js +1 -1
- package/dist/agent-CS1XdimC.js +2 -0
- package/dist/agent-command-BiLxDWtx.js +874 -0
- package/dist/agent-harness-runtime-bunUaGg7.js +144 -0
- package/dist/agent-runner-utils-BFkEZbb9.js +239 -0
- package/dist/agent-runner.runtime-DUtejeBt.js +3443 -0
- package/dist/agent-runner.runtime.js +1 -1
- package/dist/agent-runtime-CQG_IBlM.js +18 -0
- package/dist/agents-DArnaFQV.js +954 -0
- package/dist/agents-jSVdSQr5.js +5 -0
- package/dist/aliases-BrquU2aa.js +96 -0
- package/dist/aliases-OQzPD6Kz.js +2 -0
- package/dist/api-BXtBpymk.js +5 -0
- package/dist/api-CGMqDBcv.js +3 -0
- package/dist/api-CNr0UyHW.js +139 -0
- package/dist/approval-gateway-resolver-D2iqmJiq.js +29 -0
- package/dist/approval-gateway-runtime-C1pBe7Fx.js +2 -0
- package/dist/approval-handler-runtime-Zf1fCWk1.js +439 -0
- package/dist/approval-native-runtime-C0zvGwfB.js +729 -0
- package/dist/attempt-execution.runtime-Cu16wO9j.js +509 -0
- package/dist/attempt-execution.runtime.js +1 -1
- package/dist/attempt.prompt-helpers-C3qMNvxE.js +206 -0
- package/dist/attempt.tool-run-context-M11pca0b.js +933 -0
- package/dist/audit-DF-0hnr9.js +939 -0
- package/dist/audit.runtime-DYyjmKuk.js +7 -0
- package/dist/audit.runtime.js +1 -1
- package/dist/auth-DE-yY2QL.js +550 -0
- package/dist/auth-DLmN64Y_.js +2 -0
- package/dist/auth-order-CP3BJeex.js +2 -0
- package/dist/auth-order-DQHJAKY8.js +139 -0
- package/dist/bash-tools-DUxUia5q.js +3 -0
- package/dist/bash-tools-_AgECrXf.js +2853 -0
- package/dist/binding-routing-D7ruDbx0.js +85 -0
- package/dist/binding-targets-BZWuOcR0.js +121 -0
- package/dist/bridge-server-C4WpUTaE.js +113 -0
- package/dist/browser-control-auth-CmYxtkaH.js +2 -0
- package/dist/browser-node-runtime-BLHYH8YL.js +12 -0
- package/dist/browser-profiles-Cawo818z.js +2 -0
- package/dist/browser-runtime-LzhODwuG.js +387 -0
- package/dist/browser-setup-tools-CTgOb29b.js +13 -0
- package/dist/build-AqzTQK3J.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-J2wbwzLi.js +330 -0
- package/dist/call-S0AZ899k.js +3 -0
- package/dist/call.runtime-CyP2bdv0.js +2 -0
- package/dist/call.runtime.js +1 -1
- package/dist/capability-cli-6jHIuGQe.js +1401 -0
- package/dist/catchup-CN5lM9nn.js +300 -0
- package/dist/channel-4jggmldw.js +453 -0
- package/dist/channel-8osltyJD.js +840 -0
- package/dist/channel-B-P45jvy.js +595 -0
- package/dist/channel-BIV8BnjO.js +1802 -0
- package/dist/channel-CXUPhx7m.js +297 -0
- package/dist/channel-ChWfDzLg.js +226 -0
- package/dist/channel-DMCOcmaZ.js +491 -0
- package/dist/channel-DT5I65Xv.js +1174 -0
- package/dist/channel-_mt8OaDA.js +1320 -0
- package/dist/channel-cbqIqIvi.js +1100 -0
- package/dist/channel-core-CcHrOJQl.js +5 -0
- package/dist/channel-inbound-gJZ5fy8s.js +31 -0
- package/dist/channel-plugin-runtime-CFVplMXF.js +771 -0
- package/dist/channel-runtime-D2fhnXNT.js +425 -0
- package/dist/channel-twNI9g5j.js +350 -0
- package/dist/channel.runtime-B7RAHQNT.js +430 -0
- package/dist/channel.runtime-BIcoI6bq.js +2364 -0
- package/dist/channel.runtime-Ci_26egi.js +576 -0
- package/dist/channel.runtime-CzTNZfZz.js +89 -0
- package/dist/channel.runtime-D0qkeWVB.js +4 -0
- package/dist/channel.runtime-D_9taoyr.js +42398 -0
- package/dist/channel.runtime.js +1 -1
- package/dist/channel.setup-Ck6-6alN.js +10 -0
- package/dist/channel2.runtime-CzLs-yVz.js +109 -0
- package/dist/channel2.runtime.js +1 -1
- package/dist/channels-C3tEEndo.js +733 -0
- package/dist/channels-cli-1vvCRqai.js +268 -0
- package/dist/chat-9N_9QPkq.js +2830 -0
- package/dist/clawbot-cli-CySj7xP4.js +9 -0
- package/dist/cli/daemon-cli.js +3 -3
- package/dist/cli-BNYLM-n-.js +219 -0
- package/dist/cli-Bj3CMawx.js +2 -0
- package/dist/cli-dB2d6i0x.js +72 -0
- package/dist/cli-fZ6nZozk.js +2 -0
- package/dist/cli-runner-DkUWaw3u.js +286 -0
- package/dist/cli-runner.runtime-Bdu8GaIU.js +4 -0
- package/dist/cli-runner.runtime-D35_WwIC.js +3 -0
- package/dist/cli-runner.runtime.js +1 -1
- package/dist/cli-startup-metadata.json +2 -2
- package/dist/cli.runtime-D0ZdkRoZ.js +1261 -0
- package/dist/cli.runtime.js +1 -1
- package/dist/client-BLrVaUap.js +723 -0
- package/dist/client-JSnNx9t8.js +138 -0
- package/dist/command-auth-vH98jyU8.js +76 -0
- package/dist/command-config-resolution-B-U-WZy5.js +23 -0
- package/dist/command-config-resolution-ByjKlaVl.js +2 -0
- package/dist/command-config-resolution.runtime-Wv85AlQo.js +2 -0
- package/dist/command-config-resolution.runtime.js +1 -1
- package/dist/command-registry-Bu9yJGC5.js +4 -0
- package/dist/command-registry-CuME9hky.js +9 -0
- package/dist/command-registry-core-Bk9WAOxq.js +106 -0
- package/dist/command-secret-gateway-BWnLmfo1.js +528 -0
- package/dist/command-status.runtime-DHRozViO.js +87 -0
- package/dist/command-status.runtime.js +1 -1
- package/dist/commands-acp-CnxVcX4s.js +77 -0
- package/dist/commands-compact.runtime-DKZYaee9.js +10 -0
- package/dist/commands-compact.runtime.js +1 -1
- package/dist/commands-handlers.runtime-BFqsQ9UV.js +4599 -0
- package/dist/commands-handlers.runtime.js +1 -1
- package/dist/commands-status-DBC5I7yG.js +16 -0
- package/dist/commands-status.runtime-BgK6raz4.js +3 -0
- package/dist/commands-status.runtime.js +1 -1
- package/dist/commands-subagents-control.runtime-CY4xaq28.js +3 -0
- package/dist/commands-subagents-control.runtime-z9tchzCP.js +2 -0
- package/dist/commands-subagents-control.runtime.js +1 -1
- package/dist/commands-system-prompt-BNtFvxmr.js +157 -0
- package/dist/commands-system-prompt-CHVjFzQO.js +2 -0
- package/dist/commands.runtime-BAsTu7s5.js +167 -0
- package/dist/commands.runtime.js +1 -1
- package/dist/compact-Ddu8hZfc.js +1096 -0
- package/dist/compact.runtime-GpkxTJxx.js +12 -0
- package/dist/compact.runtime.js +1 -1
- package/dist/completion-cli-BNte3Dj6.js +328 -0
- package/dist/config-Cvu5tnrW.js +252 -0
- package/dist/config-cli-BlZB5tV-.js +1078 -0
- package/dist/configure-CiGtXggx.js +2 -0
- package/dist/configure-DDqC8LYD.js +1252 -0
- package/dist/connect-options-BbJfh_Oy.js +699 -0
- package/dist/control-auth-B2Jsq2zv.js +125 -0
- package/dist/control-service-B5OxTjPP.js +156 -0
- package/dist/control-ui/assets/agents-CfLnBH4t.js +1125 -0
- package/dist/control-ui/assets/canvas-pj-aGbeH.js +274 -0
- package/dist/control-ui/assets/channels-BelCW9hw.js +198 -0
- package/dist/control-ui/assets/contacts-B-2gb_ua.js +49 -0
- package/dist/control-ui/assets/cron-B6-26cyp.js +250 -0
- package/dist/control-ui/assets/debug-B5MO5d0M.js +94 -0
- package/dist/control-ui/assets/index-CmdvEIGH.js +5981 -0
- package/dist/control-ui/assets/instances-uygO1ZKq.js +57 -0
- package/dist/control-ui/assets/mcp-472P8M4F.js +380 -0
- package/dist/control-ui/assets/memory-Dvp5YUvN.js +50 -0
- package/dist/control-ui/assets/memory-graph-B27rN_e7.js +30 -0
- package/dist/control-ui/assets/models-C88CYx1F.js +86 -0
- package/dist/control-ui/assets/nodes-CUXTunGj.js +654 -0
- package/dist/control-ui/assets/plugins-D3upvVMU.js +259 -0
- package/dist/control-ui/assets/presenter-DSvbCagf.js +2 -0
- package/dist/control-ui/assets/sessions-BzVDlJpI.js +56 -0
- package/dist/control-ui/assets/skills-DQD9wvlO.js +294 -0
- package/dist/control-ui/assets/wallet-DWa9gqqg.js +302 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/conversation-id-BTqKksIo.js +38 -0
- package/dist/conversation-id-DzarUmXD.js +235 -0
- package/dist/conversation-runtime-DbbmwXgr.js +31 -0
- package/dist/core-CYiHLgHk.js +275 -0
- package/dist/cron-cli-Dyd_7f_N.js +713 -0
- package/dist/daemon-cli-DT5GXTxV.js +12 -0
- package/dist/dashboard-BtYlqUpN.js +2 -0
- package/dist/dashboard-DwroM17M.js +81 -0
- package/dist/delegate-CBLxnP3N.js +64 -0
- package/dist/detached-task-runtime-DWSrAiuI.js +73 -0
- package/dist/devices-cli-CrGc8ckS.js +498 -0
- package/dist/diagnostics-CzNM2oo3.js +154 -0
- package/dist/direct-dm-Cy7dY7RF.js +64 -0
- package/dist/dispatch-Dew5dCZ_.js +1131 -0
- package/dist/dispatch-acp-CvCVNtsu.js +981 -0
- package/dist/dispatch-acp-manager.runtime-DBTAUi2i.js +3 -0
- package/dist/dispatch-acp-manager.runtime.js +1 -1
- package/dist/dispatch-acp.runtime-Cw1tjQKP.js +19 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/doctor-device-pairing-C9OfTAUh.js +307 -0
- package/dist/doctor-gateway-daemon-flow-CS1gl0S3.js +250 -0
- package/dist/doctor-gateway-health-DzKV435y.js +63 -0
- package/dist/doctor-health-DNiEej9S.js +59 -0
- package/dist/doctor-health-contributions-BxgcjAL5.js +493 -0
- package/dist/doctor-prompter-T7JdMaQG.js +56 -0
- package/dist/doctor-workspace-status-C3jLUkHt.js +75 -0
- package/dist/dreaming-CiOm27X0.js +1582 -0
- package/dist/dreaming-narrative-C8m64g44.js +596 -0
- package/dist/embedded-gateway-stub.runtime-Di2s5bLl.js +9 -0
- package/dist/embedded-gateway-stub.runtime.js +1 -1
- package/dist/entry.js +2 -2
- package/dist/exec-approvals-cli-DiBWd6eL.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-Bjq0H75u.js +31 -0
- package/dist/fallbacks-C3dys5Ff.js +2 -0
- package/dist/fallbacks-shared-4iQjz5v5.js +111 -0
- package/dist/gateway-BxIfReRV.js +115 -0
- package/dist/gateway-cli-Czx2Ub57.js +1283 -0
- package/dist/gateway-rpc-CdXoDE6_.js +14 -0
- package/dist/gateway-rpc.runtime-DXFVTu-I.js +23 -0
- package/dist/gateway-rpc.runtime.js +1 -1
- package/dist/gateway-runtime-DoElJuBU.js +15 -0
- package/dist/gateway-status-DtdmlnK6.js +584 -0
- package/dist/genesis-tools-vU91jnMS.js +9435 -0
- package/dist/genesis-tools.runtime-Dfpi37K0.js +2 -0
- package/dist/genesis-tools.runtime.js +1 -1
- package/dist/get-reply-DTtxw9Xp.js +3946 -0
- package/dist/get-reply-from-config.runtime-CB9EeF1Q.js +2 -0
- package/dist/get-reply-from-config.runtime.js +1 -1
- package/dist/graph-users-CoF5XRS_.js +1337 -0
- package/dist/health-CLRWQEVB.js +3 -0
- package/dist/health-DvTtpVIw.js +420 -0
- package/dist/health-route-8H3Sy8RI.js +41 -0
- package/dist/health-route-CHLAMCYm.js +2 -0
- package/dist/hooks-cli-D2AeKlrf.js +433 -0
- package/dist/image-fallbacks-Cy-kcJR5.js +2 -0
- package/dist/image-fallbacks-DoQoUiR7.js +31 -0
- package/dist/inbound-reply-dispatch-jQhsUF0f.js +73 -0
- package/dist/index.js +2 -2
- package/dist/infra-runtime-DwRkDuXF.js +38 -0
- package/dist/init-DwpSUAfi.js +59 -0
- package/dist/library-mAKEzoAM.js +45 -0
- package/dist/lifecycle-BUTglQLK.js +229 -0
- package/dist/lifecycle-Csd_mbv2.js +571 -0
- package/dist/lifecycle.runtime-1wfzPGwQ.js +2 -0
- package/dist/lifecycle.runtime.js +1 -1
- package/dist/list-5rTtE3qu.js +2 -0
- package/dist/list-BCYNIOw6.js +2 -0
- package/dist/list-DyQGXU4h.js +1212 -0
- package/dist/list-DzN4dO0z.js +131 -0
- package/dist/list.probe-BQZZbfvC.js +419 -0
- package/dist/llm-slug-generator-BWH-YxyP.js +79 -0
- package/dist/llm-slug-generator.js +1 -1
- package/dist/load-config-CISXosI1.js +35 -0
- package/dist/local-dispatch.runtime-BdXedbsx.js +8 -0
- package/dist/local-dispatch.runtime.js +1 -1
- package/dist/logs-cli-YcX3NrQk.js +265 -0
- package/dist/logs-cli.runtime-4RNOEP9S.js +2 -0
- package/dist/logs-cli.runtime.js +1 -1
- package/dist/main-session-restart-recovery-DxOWdFCG.js +206 -0
- package/dist/managed-image-attachments-BjnlRyZi.js +2 -0
- package/dist/managed-image-attachments-CgE1Q1Bu.js +635 -0
- package/dist/manager-CvrwzOap.js +2 -0
- package/dist/manager-DIyzKDRT.js +2057 -0
- package/dist/markdown-to-line-BzCikJ_W.js +790 -0
- package/dist/mcp/plugin-tools-serve.js +1 -1
- package/dist/mcp-cli-HFkNRDTk.js +725 -0
- package/dist/mcp-http-BpymCnig.js +529 -0
- package/dist/memory-core-host-runtime-cli-D1OEhnrF.js +9 -0
- package/dist/message-action-runner-CMY-upve.js +1407 -0
- package/dist/message-action-runner-DySHa6EF.js +2 -0
- package/dist/message-actions-B9LTXVEy.js +143 -0
- package/dist/message-kmB-ZdwF.js +232 -0
- package/dist/message.gateway.runtime-CKp6wO2c.js +2 -0
- package/dist/message.gateway.runtime.js +1 -1
- package/dist/models-auth-status-CWD5blQY.js +217 -0
- package/dist/models-cli-qKl_DDX9.js +271 -0
- package/dist/monitor-Ba7ejkS8.js +671 -0
- package/dist/monitor-BaVaWrC7.js +2 -0
- package/dist/monitor-C35OWSe9.js +1661 -0
- package/dist/monitor-Cl9di7UV.js +788 -0
- package/dist/monitor-CyNHlr3x.js +1237 -0
- package/dist/monitor-DfSNLX9p.js +1459 -0
- package/dist/monitor-auth-Bar1iwPD.js +207 -0
- package/dist/monitor-processing-DOC1o7D2.js +1974 -0
- package/dist/monitor.runtime-CzFqZGY2.js +2 -0
- package/dist/monitor.runtime.js +1 -1
- package/dist/monitor.webhook-Bim0zewE.js +180 -0
- package/dist/msteams-BqQ_sRgm.js +35 -0
- package/dist/native-hook-relay-CiXmqOtV.js +519 -0
- package/dist/nextcloud-talk-ByistOQj.js +17 -0
- package/dist/node-cli-BWtbe5nd.js +2276 -0
- package/dist/nodes-cli-DuzsL0Gb.js +1046 -0
- package/dist/nodes-utils-oVtp9rVI.js +84 -0
- package/dist/nodes.helpers-DJ1lCjQx.js +34 -0
- package/dist/notify-Xz011HiU.js +315 -0
- package/dist/onboard-CJcg9WIT.js +2 -0
- package/dist/onboard-SSBg2BsM.js +70 -0
- package/dist/onboard-helpers-D-z22ggH.js +204 -0
- package/dist/onboard-helpers-DU-hRKeY.js +6 -0
- package/dist/onboard-interactive-C8tFz_EJ.js +24 -0
- package/dist/onboard-non-interactive-ZnR63QNa.js +635 -0
- package/dist/onboard-remote-B6KxBZY_.js +193 -0
- package/dist/onboard-remote-BrblbI6u.js +2 -0
- package/dist/onboard-skills-BaEg-lmj.js +2 -0
- package/dist/onboard-skills-BuFtX13Z.js +134 -0
- package/dist/openai-http-Wkidi3o4.js +500 -0
- package/dist/openresponses-http-BkPjGHMn.js +1128 -0
- package/dist/operator-approvals-client-xj8FFWPH.js +68 -0
- package/dist/outbound.runtime-riknu3Rg.js +2 -0
- package/dist/outbound.runtime.js +1 -1
- package/dist/pair-command-approve-CRig33Ea.js +44 -0
- package/dist/persistent-bindings.lifecycle-BhVLGVlI.js +2 -0
- package/dist/persistent-bindings.lifecycle-CVWzaSA9.js +85 -0
- package/dist/pi-embedded-Dh5naw-j.js +4 -0
- package/dist/pi-embedded-S0ld6lbd.js +2905 -0
- package/dist/pi-embedded.runtime-BeWYEwSt.js +4 -0
- package/dist/pi-embedded.runtime.js +1 -1
- package/dist/pi-tool-definition-adapter-MgnP-0c4.js +229 -0
- package/dist/pi-tools-DyVcSRei.js +1118 -0
- package/dist/pi-tools.before-tool-call-BZ1PLh46.js +433 -0
- package/dist/pi-tools.before-tool-call-DSgr_Sjd.js +2 -0
- package/dist/plugin-DoXrlTHe.js +12195 -0
- package/dist/plugin-enabled-CCAWKL0j.js +140 -0
- package/dist/plugin-registration-COZcclAr.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-Cu_nlZmO.js +2893 -0
- package/dist/plugins/runtime/index.js +1 -1
- package/dist/policy-CxwHwL56.js +328 -0
- package/dist/postinstall-inventory.json +429 -429
- package/dist/prepare.runtime-BhO3ot9P.js +807 -0
- package/dist/prepare.runtime.js +1 -1
- package/dist/probe-4IiQQG_7.js +2 -0
- package/dist/probe-89jd9VHi.js +1443 -0
- package/dist/probe-B2Uw_PN-.js +2205 -0
- package/dist/probe-B4ekJ-Xv.js +74 -0
- package/dist/probe-B9hiEFIU.js +2 -0
- package/dist/probe-CDrkDwhe.js +240 -0
- package/dist/probe-Ct62B_e4.js +45 -0
- package/dist/program-HFwaDGDa.js +111 -0
- package/dist/prompt-select-styled-BL_pKMTB.js +20 -0
- package/dist/protocol-C9LrRIRp.js +2515 -0
- package/dist/provider-dispatcher-C81eCA-H.js +22 -0
- package/dist/provider-dispatcher-puinwYaq.js +2 -0
- package/dist/qr-cli-BdX_FFlu.js +349 -0
- package/dist/qr-cli-C5253ud8.js +2 -0
- package/dist/reaction-runtime-api-95Ou_vSC.js +116 -0
- package/dist/reactions-DZizt8LI.js +998 -0
- package/dist/register-service-commands-DMNQ-id4.js +71 -0
- package/dist/register.agent-CQOBdXob.js +248 -0
- package/dist/register.configure-C8yC_SYa.js +15 -0
- package/dist/register.maintenance-CSIY47OO.js +363 -0
- package/dist/register.message-g5yjxPxU.js +329 -0
- package/dist/register.onboard-U3SrMpHb.js +88 -0
- package/dist/register.runtime-BMuRf7KD.js +81 -0
- package/dist/register.runtime.js +1 -1
- package/dist/register.setup-DOBsdUvr.js +150 -0
- package/dist/register.status-health-sessions-p_3FnJtp.js +1215 -0
- package/dist/register.subclis-CNkq2TdW.js +29 -0
- package/dist/register.subclis-P3ru4E6I.js +3 -0
- package/dist/register.subclis-core-D5N5ewgp.js +249 -0
- package/dist/reply-dispatch-runtime-B8TMhGSo.js +13 -0
- package/dist/reply-runtime-Ba_5YKEX.js +10 -0
- package/dist/reply.runtime-CvlE6uYh.js +2 -0
- package/dist/reply.runtime.js +1 -1
- package/dist/restart-health-CV-Nm1lw.js +202 -0
- package/dist/restart-health-DywY1594.js +2 -0
- package/dist/root-help-oR4nv8N9.js +44 -0
- package/dist/routes-ClkLAuU2.js +3341 -0
- package/dist/routes-cv4VrQu1.js +2 -0
- package/dist/rpc-05cw0vNh.js +61 -0
- package/dist/rpc.runtime-DhFlfCMB.js +21 -0
- package/dist/rpc.runtime.js +1 -1
- package/dist/run-delivery.runtime-B_9TxqQA.js +530 -0
- package/dist/run-delivery.runtime.js +1 -1
- package/dist/run-embedded.runtime-V68HvJT8.js +4 -0
- package/dist/run-embedded.runtime.js +1 -1
- package/dist/run-execution-cli.runtime-9NpwQ1uu.js +4 -0
- package/dist/run-execution-cli.runtime.js +1 -1
- package/dist/run-executor.runtime-CX2Emb4e.js +277 -0
- package/dist/run-executor.runtime.js +1 -1
- package/dist/run-main-xnrI4i-W.js +567 -0
- package/dist/run-subagent-registry.runtime-CEgCR8-w.js +2 -0
- package/dist/run-subagent-registry.runtime.js +1 -1
- package/dist/run-wait-By6jGhn0.js +135 -0
- package/dist/runtime-D0MD5Uyv.js +9 -0
- package/dist/runtime-D2DhV36f.js +961 -0
- package/dist/runtime-api-C_o5iE1W.js +9 -0
- package/dist/runtime-api-Cws6dHRG.js +14 -0
- package/dist/runtime-api-D8EKRzzw.js +4 -0
- package/dist/runtime-api-DUw04nys.js +9 -0
- package/dist/runtime-embedded-pi.runtime-Ckdld_Ij.js +2 -0
- package/dist/runtime-embedded-pi.runtime.js +1 -1
- package/dist/runtime-internal-Dga3dvsC.js +2 -0
- package/dist/runtime-options-DwYzxb7U.js +275 -0
- package/dist/runtime-schema-BDGFtL0_.js +28599 -0
- package/dist/scan-BWFQXm24.js +523 -0
- package/dist/scan-CrfOpA-h.js +2 -0
- package/dist/secrets-cli-TxHWzJzS.js +2101 -0
- package/dist/security-cli-DIvsGk3X.js +486 -0
- package/dist/selection-CHTqBz4F.js +2 -0
- package/dist/selection-D_K-9r-x.js +7743 -0
- package/dist/send-DE7hu875.js +156 -0
- package/dist/send-TkldUWcX.js +102 -0
- package/dist/send.runtime-CZI1JWw8.js +2 -0
- package/dist/send.runtime.js +1 -1
- package/dist/server-B8xhfNfn.js +77 -0
- package/dist/server-Cz40q0g2.js +13 -0
- package/dist/server-context-B7rWJ2gB.js +847 -0
- package/dist/server-context-yutVechl.js +2 -0
- package/dist/server-node-events-VPwgJoKG.js +474 -0
- package/dist/server-plugin-bootstrap-Dy78XA3J.js +2 -0
- package/dist/server-plugin-bootstrap-N59qJvH4.js +13355 -0
- package/dist/server-restart-sentinel-Zjl16hJh.js +684 -0
- package/dist/server.impl-DpFPnl5_.js +12798 -0
- package/dist/session-kill-http-o34Xk0D1.js +110 -0
- package/dist/session-reset-service-C0ScpWIE.js +497 -0
- package/dist/session-route-UusYWQ_M.js +93 -0
- package/dist/session-status.runtime-DJV2WJZM.js +2 -0
- package/dist/session-status.runtime.js +1 -1
- package/dist/session-subagent-reactivation.runtime-yyMT_MgO.js +2 -0
- package/dist/session-subagent-reactivation.runtime.js +1 -1
- package/dist/session-tab-registry-Bkd33PY1.js +581 -0
- package/dist/session-visibility-BOYOn-Gu.js +147 -0
- package/dist/sessions-helpers-DlsDzSXL.js +305 -0
- package/dist/sessions-history-http--8biogY1.js +371 -0
- package/dist/sessions-patch-BlUpBepz.js +309 -0
- package/dist/sessions-resolve-DPWviaDr.js +174 -0
- package/dist/sessions.runtime-CHJDx6Rg.js +2 -0
- package/dist/sessions.runtime.js +1 -1
- package/dist/setup-COcb42YZ.js +636 -0
- package/dist/setup-api-Ddfd033_.js +29 -0
- package/dist/setup-core-Bsasst9Y.js +176 -0
- package/dist/setup-core-CWmsLaJv.js +171 -0
- package/dist/setup-surface-CTZ5CnX4.js +219 -0
- package/dist/setup-surface-D2c6jlaM.js +403 -0
- package/dist/setup-surface-Dazv-gzK.js +286 -0
- package/dist/setup.finalize-DSSoTSsd.js +547 -0
- package/dist/setup.gateway-config-bJqXJA3E.js +250 -0
- package/dist/shared-DOOnkgfw.js +198 -0
- package/dist/shared-DfVOpp8r.js +121 -0
- package/dist/shared-nGZZHrFV.js +76 -0
- package/dist/slash-state-CwgTzmc8.js +1911 -0
- package/dist/src-CbfkGwGz.js +3974 -0
- package/dist/startup-context-acV-bzAJ.js +312 -0
- package/dist/status-0ozKjOYe.js +190 -0
- package/dist/status-BFMr1TH_.js +395 -0
- package/dist/status-C0tUFjWh.js +2 -0
- package/dist/status-DgyADd4G.js +209 -0
- package/dist/status-L2NtbOry.js +3 -0
- package/dist/status-all-DK98dFQa.js +498 -0
- package/dist/status-json-OEukc0cF.js +14 -0
- package/dist/status-json-command-BWv0zt8E.js +82 -0
- package/dist/status-runtime-shared-DBMTXWTZ.js +241 -0
- package/dist/status-subagents.runtime-VTEVgOJj.js +18 -0
- package/dist/status-subagents.runtime.js +1 -1
- package/dist/status-text-Cx0Esdj6.js +237 -0
- package/dist/status-xjF4vxou.js +2 -0
- package/dist/status.gateway-connection.runtime-BT6XfoLV.js +2 -0
- package/dist/status.gateway-connection.runtime.js +1 -1
- package/dist/status.gather-CF5qlFAG.js +292 -0
- package/dist/status.gather-L0QGMaC4.js +2 -0
- package/dist/status.runtime-DYi_nOHT.js +2 -0
- package/dist/status.runtime.js +1 -1
- package/dist/status.scan-CflamBc9.js +65 -0
- package/dist/status.scan-overview-pGpvYksm.js +379 -0
- package/dist/status.scan.fast-json-BbMvHncK.js +132 -0
- package/dist/status.scan.fast-json-D39u21tI.js +2 -0
- package/dist/status.summary-CKh5Legf.js +2 -0
- package/dist/status.summary-DVdS-4Fj.js +200 -0
- package/dist/subagent-announce-Df9ABEaq.js +351 -0
- package/dist/subagent-announce-delivery-B5xYlVwu.js +726 -0
- package/dist/subagent-announce-output-JQ-I1Kmk.js +364 -0
- package/dist/subagent-control-CMaKDVuG.js +506 -0
- package/dist/subagent-followup.runtime-Be2c3jkr.js +68 -0
- package/dist/subagent-followup.runtime.js +1 -1
- package/dist/subagent-orphan-recovery-B4jHKSis.js +305 -0
- package/dist/subagent-registry-CjLI6fcV.js +3 -0
- package/dist/subagent-registry-CruvknDh.js +1753 -0
- package/dist/subagent-registry.runtime.js +1 -1
- package/dist/subagent-spawn-C-9kmYik.js +1005 -0
- package/dist/system-cli-Cmv7YV3z.js +43 -0
- package/dist/targets-DGdlJYMl.js +67 -0
- package/dist/task-executor-DbusuL0w.js +360 -0
- package/dist/task-owner-access-DNC_BT5l.js +74 -0
- package/dist/task-registry-CKDRlfmp.js +2357 -0
- package/dist/task-registry-delivery-runtime-DX6tjuwQ.js +3 -0
- package/dist/task-registry-delivery-runtime-Ge4fS1Fa.js +2 -0
- package/dist/task-registry.maintenance-DhjCTf6L.js +416 -0
- package/dist/task-registry.maintenance-DyX6m_7s.js +2 -0
- package/dist/telegram/token.js +1 -1
- package/dist/testing-BecnXPE0.js +575 -0
- package/dist/text-report-BW3t_i75.js +549 -0
- package/dist/tool-resolution-BRHtzc7Q.js +90 -0
- package/dist/tools-effective-inventory-CLJ3nPbB.js +152 -0
- package/dist/tools-invoke-http-DWbJzMo3.js +206 -0
- package/dist/trash-CvOmDpdP.js +24 -0
- package/dist/tui-cli-BuQzKTYR.js +4585 -0
- package/dist/update-cli-DB-VQaie.js +1759 -0
- package/dist/upgrade-DPhvhHXF.js +1226 -0
- package/dist/video-generation-task-status-DWUrjc4T.js +163 -0
- package/dist/wait-for-idle-before-flush-BBwcUWtb.js +5985 -0
- package/dist/wizard-models-B5HIywox.js +334 -0
- package/package.json +1 -1
- package/dist/abort-DUTWX49H.js +0 -201
- package/dist/abort.runtime-B1CZPj3m.js +0 -2
- package/dist/accounts-DFJuQd32.js +0 -107
- package/dist/accounts-VbCry_MV.js +0 -104
- package/dist/accounts-ZduaK0fO.js +0 -2
- package/dist/acp-cli-Cyqn8a7z.js +0 -2217
- package/dist/acp-spawn-B1O0qwkN.js +0 -2
- package/dist/acp-spawn-C2eEj7wR.js +0 -1042
- package/dist/acp-stateful-target-driver-BKL2flGw.js +0 -89
- package/dist/action-agents-C9zs0A_N.js +0 -67
- package/dist/action-focus-Dj2trHbP.js +0 -132
- package/dist/action-help-ENFS-VRC.js +0 -7
- package/dist/action-info-IKxta-Me.js +0 -101
- package/dist/action-kill-CJGjsHX-.js +0 -33
- package/dist/action-list-ChLdMXon.js +0 -21
- package/dist/action-log-CdeugqCO.js +0 -30
- package/dist/action-send-BvUjnmVw.js +0 -39
- package/dist/action-spawn-Xq0DpbW7.js +0 -47
- package/dist/action-unfocus-DfcihOhT.js +0 -29
- package/dist/actions.runtime-CTjuTpQ1.js +0 -18
- package/dist/actions.runtime-Dp93aqpg.js +0 -5
- package/dist/agent-DQZeYp3u.js +0 -2
- package/dist/agent-command-CynPQd5_.js +0 -874
- package/dist/agent-harness-runtime-D9PrghSe.js +0 -144
- package/dist/agent-runner-utils-CwDT31Pp.js +0 -239
- package/dist/agent-runner.runtime-kH3GCoKg.js +0 -3443
- package/dist/agent-runtime-BSwK1sup.js +0 -18
- package/dist/agents-C9BmPj-C.js +0 -954
- package/dist/agents-CQQ7cNF9.js +0 -5
- package/dist/aliases-B92uAzO2.js +0 -2
- package/dist/aliases-BZsZGqVQ.js +0 -96
- package/dist/api-CU22wCTp.js +0 -139
- package/dist/api-DD_eTeli.js +0 -5
- package/dist/api-sngIL0OQ.js +0 -3
- package/dist/approval-gateway-resolver-KouhItZO.js +0 -29
- package/dist/approval-gateway-runtime-D7CzOIgq.js +0 -2
- package/dist/approval-handler-runtime-CFvI_pZS.js +0 -439
- package/dist/approval-native-runtime-rl6s6chH.js +0 -729
- package/dist/attempt-execution.runtime-Ba87IenS.js +0 -509
- package/dist/attempt.prompt-helpers-BbBNMjqU.js +0 -206
- package/dist/attempt.tool-run-context-CLlg_9Gq.js +0 -933
- package/dist/audit-CQJwJFWH.js +0 -939
- package/dist/audit.runtime-CW5CY88A.js +0 -7
- package/dist/auth-DFhah4e4.js +0 -2
- package/dist/auth-order-CMWxvLX4.js +0 -2
- package/dist/auth-order-D6mEMqD7.js +0 -139
- package/dist/auth-s-3q__5n.js +0 -550
- package/dist/bash-tools-BCSXSkhx.js +0 -2853
- package/dist/bash-tools-D2NO8-ph.js +0 -3
- package/dist/binding-routing-DROXsDQk.js +0 -85
- package/dist/binding-targets-D33MkugL.js +0 -121
- package/dist/bridge-server-3gO7JmL_.js +0 -113
- package/dist/browser-control-auth-DS3Wwm1z.js +0 -2
- package/dist/browser-node-runtime-DkVkb3tt.js +0 -12
- package/dist/browser-profiles-Bk9dcXzv.js +0 -2
- package/dist/browser-runtime-dGM3ZeLa.js +0 -387
- package/dist/browser-setup-tools-DSgChJEe.js +0 -13
- package/dist/build-CjLf_jQl.js +0 -550
- package/dist/call-BxIEVH5N.js +0 -3
- package/dist/call-Dwj7PrNe.js +0 -330
- package/dist/call.runtime-mZvFxL4G.js +0 -2
- package/dist/capability-cli-C-6omBAD.js +0 -1401
- package/dist/catchup-Dfw4DEMS.js +0 -300
- package/dist/channel-4YVnFcIj.js +0 -297
- package/dist/channel-BajDSspb.js +0 -1320
- package/dist/channel-BcS5ghfF.js +0 -840
- package/dist/channel-BlU_cVm0.js +0 -491
- package/dist/channel-BmZ19q9d.js +0 -453
- package/dist/channel-C4KfOdTm.js +0 -226
- package/dist/channel-C7LNJi1M.js +0 -595
- package/dist/channel-CFxTIjzU.js +0 -1174
- package/dist/channel-CYDnIh3Z.js +0 -350
- package/dist/channel-DBUj2Ysq.js +0 -1802
- package/dist/channel-DwWdEu7o.js +0 -1100
- package/dist/channel-core-VlXrdyfV.js +0 -5
- package/dist/channel-inbound-BzALE-tz.js +0 -31
- package/dist/channel-plugin-runtime-BMmEKuoC.js +0 -771
- package/dist/channel-runtime-BZXgyMUr.js +0 -425
- package/dist/channel.runtime-2Kw88P7w.js +0 -576
- package/dist/channel.runtime-Bwnky7Bn.js +0 -2364
- package/dist/channel.runtime-CDvvT7UR.js +0 -4
- package/dist/channel.runtime-CgP4n1an.js +0 -430
- package/dist/channel.runtime-MJe9DoSG.js +0 -89
- package/dist/channel.runtime-f0WEEj3o.js +0 -42398
- package/dist/channel.setup-DaZBK_2E.js +0 -10
- package/dist/channel2.runtime-CfVIjEhU.js +0 -109
- package/dist/channels-Bq1GXmZX.js +0 -733
- package/dist/channels-cli-DzbssQ5L.js +0 -268
- package/dist/chat-CNZDzOWR.js +0 -2830
- package/dist/clawbot-cli-UIo3UVaj.js +0 -9
- package/dist/cli-BVKDWfwH.js +0 -72
- package/dist/cli-Bp52OQjs.js +0 -219
- package/dist/cli-C_289Xdv.js +0 -2
- package/dist/cli-kOop_NSN.js +0 -2
- package/dist/cli-runner-CP51WTPf.js +0 -286
- package/dist/cli-runner.runtime-BtArNV63.js +0 -4
- package/dist/cli-runner.runtime-Dy1IJ7UX.js +0 -3
- package/dist/cli.runtime-2ilydgLb.js +0 -1261
- package/dist/client-BN8cDQr7.js +0 -723
- package/dist/client-Doc6u1up.js +0 -138
- package/dist/command-auth-oo_Iz0oe.js +0 -76
- package/dist/command-config-resolution-BNQbV_C6.js +0 -23
- package/dist/command-config-resolution-DIvkjwvj.js +0 -2
- package/dist/command-config-resolution.runtime-Dlk7LIJ8.js +0 -2
- package/dist/command-registry-Dm8ohcSP.js +0 -4
- package/dist/command-registry-core-BxyHXEQ3.js +0 -106
- package/dist/command-registry-xVmA85-_.js +0 -9
- package/dist/command-secret-gateway-Dej2E5rP.js +0 -528
- package/dist/command-status.runtime-CWgNMJi1.js +0 -87
- package/dist/commands-acp-Ca0l7esb.js +0 -77
- package/dist/commands-compact.runtime-DBN1EALw.js +0 -10
- package/dist/commands-handlers.runtime-BrCljWio.js +0 -4599
- package/dist/commands-status-C0WYf99K.js +0 -16
- package/dist/commands-status.runtime-Czim-9LY.js +0 -3
- package/dist/commands-subagents-control.runtime-CgiW2mpD.js +0 -3
- package/dist/commands-subagents-control.runtime-oCqEcwa7.js +0 -2
- package/dist/commands-system-prompt-BQHZNtSZ.js +0 -157
- package/dist/commands-system-prompt-ClJDN8rr.js +0 -2
- package/dist/commands.runtime-DwmtsbUc.js +0 -167
- package/dist/compact-DDf0xr2o.js +0 -1096
- package/dist/compact.runtime-C4BZuDjJ.js +0 -12
- package/dist/completion-cli-85iaysB7.js +0 -328
- package/dist/config-CHPRDFh1.js +0 -252
- package/dist/config-cli-DSZ7DNtq.js +0 -1078
- package/dist/configure-BR6m0uoi.js +0 -1252
- package/dist/configure-CC09fyLr.js +0 -2
- package/dist/connect-options-HotLjDKX.js +0 -699
- package/dist/control-auth-CBtOUnsz.js +0 -125
- package/dist/control-service-D2A1PyZC.js +0 -156
- package/dist/control-ui/assets/agents-7cSPVJV0.js +0 -1125
- package/dist/control-ui/assets/canvas-IIhBIoAa.js +0 -274
- package/dist/control-ui/assets/channels-B4MTYg8u.js +0 -198
- package/dist/control-ui/assets/contacts-CSch1ckf.js +0 -49
- package/dist/control-ui/assets/cron-B548qeSj.js +0 -250
- package/dist/control-ui/assets/debug-DERT6TQG.js +0 -94
- package/dist/control-ui/assets/index-C2CxJps0.js +0 -5981
- package/dist/control-ui/assets/instances-DwteyRRi.js +0 -57
- package/dist/control-ui/assets/mcp-z76x2vB5.js +0 -380
- package/dist/control-ui/assets/memory-CsTbP2T4.js +0 -50
- package/dist/control-ui/assets/memory-graph-DbZEkTHJ.js +0 -30
- package/dist/control-ui/assets/models-j_tXq7Pe.js +0 -86
- package/dist/control-ui/assets/nodes-cxO9Enln.js +0 -654
- package/dist/control-ui/assets/plugins-Rt--bQFn.js +0 -259
- package/dist/control-ui/assets/presenter-BiJsRhTg.js +0 -2
- package/dist/control-ui/assets/sessions-CP6r0JAQ.js +0 -56
- package/dist/control-ui/assets/skills-CMy2whFb.js +0 -294
- package/dist/control-ui/assets/wallet-geRdfgso.js +0 -302
- package/dist/conversation-id-BwNpVXFJ.js +0 -235
- package/dist/conversation-id-CTAeVE9E.js +0 -38
- package/dist/conversation-runtime-D6miDW4s.js +0 -31
- package/dist/core-CYaV0wrq.js +0 -275
- package/dist/cron-cli-BZacbTRu.js +0 -713
- package/dist/daemon-cli-BXtGpvAS.js +0 -12
- package/dist/dashboard-Ds7c6TJm.js +0 -2
- package/dist/dashboard-s1prqGuB.js +0 -81
- package/dist/delegate-nycMaKrd.js +0 -64
- package/dist/detached-task-runtime-DXFEjX_Y.js +0 -73
- package/dist/devices-cli-B2T4Rk-c.js +0 -498
- package/dist/diagnostics-669Ookpz.js +0 -154
- package/dist/direct-dm-Bwx0l0B5.js +0 -64
- package/dist/dispatch-CVFq_KHF.js +0 -1131
- package/dist/dispatch-acp-AeVrqG1P.js +0 -981
- package/dist/dispatch-acp-manager.runtime-t90xTijh.js +0 -3
- package/dist/dispatch-acp.runtime-CLS-txJr.js +0 -19
- package/dist/doctor-device-pairing-rAiSum7F.js +0 -307
- package/dist/doctor-gateway-daemon-flow-BYlbRkfE.js +0 -250
- package/dist/doctor-gateway-health-DGaad6OP.js +0 -63
- package/dist/doctor-health-contributions-CYangAn3.js +0 -493
- package/dist/doctor-health-woICf2XW.js +0 -59
- package/dist/doctor-prompter-oNxd62XO.js +0 -56
- package/dist/doctor-workspace-status-DrOqBwKh.js +0 -75
- package/dist/dreaming-narrative-SeHukrla.js +0 -596
- package/dist/dreaming-qiznoCiH.js +0 -1582
- package/dist/embedded-gateway-stub.runtime-BiCMn9tm.js +0 -9
- package/dist/exec-approvals-cli-BK9WM7tB.js +0 -498
- package/dist/fallbacks-BHahSac7.js +0 -31
- package/dist/fallbacks-CDP89dtv.js +0 -2
- package/dist/fallbacks-shared-h_ZN8Ugk.js +0 -111
- package/dist/gateway-ClYGJe6R.js +0 -115
- package/dist/gateway-cli-D5OEgdCv.js +0 -1283
- package/dist/gateway-rpc-Dk_z0RTG.js +0 -14
- package/dist/gateway-rpc.runtime-DcDI0Hq7.js +0 -23
- package/dist/gateway-runtime-BpOf_2ps.js +0 -15
- package/dist/gateway-status-BfT8gHrq.js +0 -584
- package/dist/genesis-tools-Dn3v15Cu.js +0 -9435
- package/dist/genesis-tools.runtime-BUKXOBx4.js +0 -2
- package/dist/get-reply-BOvlxgUu.js +0 -3946
- package/dist/get-reply-from-config.runtime-Cl8vSh_k.js +0 -2
- package/dist/graph-users-DvflifYV.js +0 -1337
- package/dist/health-B2xJjrkJ.js +0 -3
- package/dist/health-CWa-e_Y6.js +0 -420
- package/dist/health-route-CzxBmoPR.js +0 -41
- package/dist/health-route-Dhbg2HGJ.js +0 -2
- package/dist/hooks-cli-B08Wk2kj.js +0 -433
- package/dist/image-fallbacks-DPTpHhw_.js +0 -2
- package/dist/image-fallbacks-DrcfSUln.js +0 -31
- package/dist/inbound-reply-dispatch-D2K6Anyc.js +0 -73
- package/dist/infra-runtime-Pu3jXc5f.js +0 -38
- package/dist/init-B2qJ52Z_.js +0 -59
- package/dist/library-JmPoINsm.js +0 -45
- package/dist/lifecycle-BRey6jez.js +0 -229
- package/dist/lifecycle-CvJT6tH9.js +0 -571
- package/dist/lifecycle.runtime-DJuQgwAu.js +0 -2
- package/dist/list-0KYh_6xs.js +0 -131
- package/dist/list-B1iP8wTX.js +0 -2
- package/dist/list-CewinhHi.js +0 -1212
- package/dist/list-DPm9exQP.js +0 -2
- package/dist/list.probe-M4jUIgk8.js +0 -419
- package/dist/llm-slug-generator-CQiB4f0s.js +0 -79
- package/dist/load-config-oEWSSW5T.js +0 -35
- package/dist/local-dispatch.runtime-rI2L9gZz.js +0 -8
- package/dist/logs-cli-qUQbKPpd.js +0 -265
- package/dist/logs-cli.runtime-DZwxYUL2.js +0 -2
- package/dist/main-session-restart-recovery-Dw8zndAD.js +0 -206
- package/dist/managed-image-attachments-B_835Hjd.js +0 -635
- package/dist/managed-image-attachments-Dp_0diDL.js +0 -2
- package/dist/manager-CRmLomjS.js +0 -2
- package/dist/manager-yTOglQEH.js +0 -2057
- package/dist/markdown-to-line-D6Y5rN1y.js +0 -790
- package/dist/mcp-cli-DZi-FzRz.js +0 -725
- package/dist/mcp-http-DaXlqh6n.js +0 -529
- package/dist/memory-core-host-runtime-cli-K2SeZLMj.js +0 -9
- package/dist/message-Bk0q8DmN.js +0 -232
- package/dist/message-action-runner-BIi8DCoo.js +0 -2
- package/dist/message-action-runner-CmhjNg6K.js +0 -1407
- package/dist/message-actions-BDXFXc2E.js +0 -143
- package/dist/message.gateway.runtime-fPnMn6QV.js +0 -2
- package/dist/models-auth-status-0xcMbBhB.js +0 -217
- package/dist/models-cli-DuQZ09TC.js +0 -271
- package/dist/monitor-2KbmBvHU.js +0 -2
- package/dist/monitor-B2yQJkAh.js +0 -1459
- package/dist/monitor-CD4mrtqF.js +0 -1661
- package/dist/monitor-CJ6A4Ro2.js +0 -788
- package/dist/monitor-D19pDt5p.js +0 -1237
- package/dist/monitor-GQtwMpZn.js +0 -671
- package/dist/monitor-auth-DJ9S4EQV.js +0 -207
- package/dist/monitor-processing-BMv5voti.js +0 -1974
- package/dist/monitor.runtime-GizvASio.js +0 -2
- package/dist/monitor.webhook-DzvH3io8.js +0 -180
- package/dist/msteams-7Jx25GW4.js +0 -35
- package/dist/native-hook-relay-DwgVW-el.js +0 -519
- package/dist/nextcloud-talk-gXnN0EKl.js +0 -17
- package/dist/node-cli-Bd8iT-US.js +0 -2276
- package/dist/nodes-cli-xAd3vxyV.js +0 -1046
- package/dist/nodes-utils-qg-Bmmy5.js +0 -84
- package/dist/nodes.helpers-B42Vi8VW.js +0 -34
- package/dist/notify-DArpzHFF.js +0 -315
- package/dist/onboard-DKr9c-h5.js +0 -70
- package/dist/onboard-f_tqlGVL.js +0 -2
- package/dist/onboard-helpers-Begz93UO.js +0 -6
- package/dist/onboard-helpers-Di14BUn2.js +0 -204
- package/dist/onboard-interactive-DjJo_FLY.js +0 -24
- package/dist/onboard-non-interactive-CgxwxSiw.js +0 -635
- package/dist/onboard-remote-BhcRxYvn.js +0 -2
- package/dist/onboard-remote-CEeT7hEZ.js +0 -193
- package/dist/onboard-skills-CTTUg6pf.js +0 -134
- package/dist/onboard-skills-DWTbOfH1.js +0 -2
- package/dist/openai-http-C2-8VSih.js +0 -500
- package/dist/openresponses-http-DgsTPUc1.js +0 -1128
- package/dist/operator-approvals-client-D1R6aLFV.js +0 -68
- package/dist/outbound.runtime-DDAlqr2n.js +0 -2
- package/dist/pair-command-approve-BqXU_u3_.js +0 -44
- package/dist/persistent-bindings.lifecycle-0cee5HeB.js +0 -85
- package/dist/persistent-bindings.lifecycle-DTgwTu9k.js +0 -2
- package/dist/pi-embedded-BMKZLrrD.js +0 -2905
- package/dist/pi-embedded-C1_8L609.js +0 -4
- package/dist/pi-embedded.runtime-CEcUCfnu.js +0 -4
- package/dist/pi-tool-definition-adapter-B1q4cAB_.js +0 -229
- package/dist/pi-tools-CE3UX10v.js +0 -1118
- package/dist/pi-tools.before-tool-call-BsMfbO7W.js +0 -433
- package/dist/pi-tools.before-tool-call-DGY-rj-6.js +0 -2
- package/dist/plugin-dDMX1n9i.js +0 -12195
- package/dist/plugin-enabled-CCcxlblr.js +0 -140
- package/dist/plugin-registration-CTIg2xi-.js +0 -23
- package/dist/plugin-service-Byv2yfiX.js +0 -2893
- package/dist/policy-BK0iZFZM.js +0 -328
- package/dist/prepare.runtime-BMtgLZl1.js +0 -807
- package/dist/probe-Bj3sjcpc.js +0 -2205
- package/dist/probe-C6wNv6c4.js +0 -74
- package/dist/probe-CM5o3wKp.js +0 -240
- package/dist/probe-D3D0RoQl.js +0 -45
- package/dist/probe-DlY3dg7v.js +0 -2
- package/dist/probe-TN3P-dCa.js +0 -2
- package/dist/probe-pZ61Idl1.js +0 -1443
- package/dist/program-TZ54mZzH.js +0 -111
- package/dist/prompt-select-styled-DFXPq9zJ.js +0 -20
- package/dist/protocol-CWEBsZbG.js +0 -2515
- package/dist/provider-dispatcher-9FnI26kR.js +0 -2
- package/dist/provider-dispatcher-D30lsDyd.js +0 -22
- package/dist/qr-cli-CoEq74Fu.js +0 -2
- package/dist/qr-cli-DxaXK8T4.js +0 -349
- package/dist/reaction-runtime-api-CGWfmWqF.js +0 -116
- package/dist/reactions-D1tny1P_.js +0 -998
- package/dist/register-service-commands-D5181r0Q.js +0 -71
- package/dist/register.agent-DWwOD6q5.js +0 -248
- package/dist/register.configure-CZx6uXuU.js +0 -15
- package/dist/register.maintenance-1yV569VU.js +0 -363
- package/dist/register.message-DqosH9zI.js +0 -329
- package/dist/register.onboard-DBa5bh4F.js +0 -88
- package/dist/register.runtime-AUXvOvfy.js +0 -81
- package/dist/register.setup-1k0y27Bf.js +0 -150
- package/dist/register.status-health-sessions-3SuqckJe.js +0 -1215
- package/dist/register.subclis-1vwiREuy.js +0 -3
- package/dist/register.subclis-core-CoUcH7R2.js +0 -249
- package/dist/register.subclis-d6Uoake0.js +0 -29
- package/dist/reply-dispatch-runtime-B2jwG-ti.js +0 -13
- package/dist/reply-runtime-BvyACHP_.js +0 -10
- package/dist/reply.runtime-B76FIMUm.js +0 -2
- package/dist/restart-health-C1m4VgKE.js +0 -2
- package/dist/restart-health-CSxm-1Te.js +0 -202
- package/dist/root-help-Cw7ovqRO.js +0 -44
- package/dist/routes-B9j5MeTj.js +0 -2
- package/dist/routes-BCJWRxzD.js +0 -3341
- package/dist/rpc-_zAZRj2-.js +0 -61
- package/dist/rpc.runtime-C3rwvN8O.js +0 -21
- package/dist/run-delivery.runtime-CXmj98lV.js +0 -530
- package/dist/run-embedded.runtime-yli8ukW0.js +0 -4
- package/dist/run-execution-cli.runtime-CjDLajis.js +0 -4
- package/dist/run-executor.runtime-SwHBKuy1.js +0 -277
- package/dist/run-main-DPHpfv1y.js +0 -567
- package/dist/run-subagent-registry.runtime-CWv2s5wn.js +0 -2
- package/dist/run-wait-CpSEiESO.js +0 -135
- package/dist/runtime-CMHLmvAl.js +0 -961
- package/dist/runtime-api-CLkOuqkP.js +0 -4
- package/dist/runtime-api-DgKObkOQ.js +0 -9
- package/dist/runtime-api-bWUB21Eg.js +0 -9
- package/dist/runtime-api-rryD3LXE.js +0 -14
- package/dist/runtime-embedded-pi.runtime-DuHPAbVt.js +0 -2
- package/dist/runtime-fF-k_rB8.js +0 -9
- package/dist/runtime-internal-By95Az_F.js +0 -2
- package/dist/runtime-options-BsxnM5Yt.js +0 -275
- package/dist/runtime-schema-P9TAqWy1.js +0 -28599
- package/dist/scan-CKfozblZ.js +0 -2
- package/dist/scan-CVwpGz6x.js +0 -523
- package/dist/secrets-cli-pXjlA7bi.js +0 -2101
- package/dist/security-cli-ChIBksL4.js +0 -486
- package/dist/selection-CIX2NWC3.js +0 -7743
- package/dist/selection-FiKxtpP7.js +0 -2
- package/dist/send-13tmI7yl.js +0 -102
- package/dist/send-BudgB3Xv.js +0 -156
- package/dist/send.runtime-CWWkq3eQ.js +0 -2
- package/dist/server-CRbNiI2L.js +0 -13
- package/dist/server-DPwckotj.js +0 -77
- package/dist/server-context-DnmrGIHL.js +0 -847
- package/dist/server-context-GFvl1Fa1.js +0 -2
- package/dist/server-node-events-Boy823tY.js +0 -474
- package/dist/server-plugin-bootstrap-BEm4d2by.js +0 -2
- package/dist/server-plugin-bootstrap-BLp3Ri_D.js +0 -13355
- package/dist/server-restart-sentinel-D1dhBlz5.js +0 -684
- package/dist/server.impl-CuEQ_ANR.js +0 -12790
- package/dist/session-kill-http-CKkRPXTD.js +0 -110
- package/dist/session-reset-service-BI9uiJ1F.js +0 -497
- package/dist/session-route-Dy5b9CbY.js +0 -93
- package/dist/session-status.runtime-HByTPp-H.js +0 -2
- package/dist/session-subagent-reactivation.runtime-BOWBAfyc.js +0 -2
- package/dist/session-tab-registry-Ce31KjnI.js +0 -581
- package/dist/session-visibility-BB6i8ptT.js +0 -147
- package/dist/sessions-helpers-DYP9dapI.js +0 -305
- package/dist/sessions-history-http-j8ZxsBAn.js +0 -371
- package/dist/sessions-patch-D4ye8mVh.js +0 -309
- package/dist/sessions-resolve-Bi2bj6c-.js +0 -174
- package/dist/sessions.runtime-VkodyiYI.js +0 -2
- package/dist/setup-api-6GX_eeAs.js +0 -29
- package/dist/setup-core-BGUg4eV0.js +0 -171
- package/dist/setup-core-CpfGqHuS.js +0 -176
- package/dist/setup-hFAlSbTL.js +0 -636
- package/dist/setup-surface-DSvYQ0Mf.js +0 -219
- package/dist/setup-surface-DT8l0x7M.js +0 -403
- package/dist/setup-surface-gdmDKJFO.js +0 -286
- package/dist/setup.finalize-m_UzKyZ2.js +0 -547
- package/dist/setup.gateway-config-DHQ8eaxx.js +0 -250
- package/dist/shared-BY5yIWjE.js +0 -198
- package/dist/shared-BtY5n-4U.js +0 -76
- package/dist/shared-DPf8cDHL.js +0 -121
- package/dist/slash-state-j62N8ife.js +0 -1911
- package/dist/src-BYHA6DRU.js +0 -3974
- package/dist/startup-context-DZml_gZY.js +0 -312
- package/dist/status-BCr0D4CJ.js +0 -2
- package/dist/status-Bi8EbpXB.js +0 -395
- package/dist/status-CPAE20nX.js +0 -209
- package/dist/status-D-wIma3c.js +0 -3
- package/dist/status-DLmFJkIX.js +0 -2
- package/dist/status-DhpFLjkt.js +0 -190
- package/dist/status-all-AuiqtGQ-.js +0 -498
- package/dist/status-json-BUhA_seV.js +0 -14
- package/dist/status-json-command-Dk8RVvC9.js +0 -82
- package/dist/status-runtime-shared-BK7fklEl.js +0 -241
- package/dist/status-subagents.runtime-DkMpqnmP.js +0 -18
- package/dist/status-text-D71CoS-s.js +0 -237
- package/dist/status.gateway-connection.runtime-wWu8Kvt4.js +0 -2
- package/dist/status.gather-BlSA6D3i.js +0 -292
- package/dist/status.gather-akCtNgln.js +0 -2
- package/dist/status.runtime-tPHKyqSk.js +0 -2
- package/dist/status.scan-GF1UDZAB.js +0 -65
- package/dist/status.scan-overview-D1tTMWSi.js +0 -379
- package/dist/status.scan.fast-json-CoLBFhFk.js +0 -132
- package/dist/status.scan.fast-json-K69bqOGh.js +0 -2
- package/dist/status.summary-Bxh5WwsL.js +0 -200
- package/dist/status.summary-Cyr9PxeP.js +0 -2
- package/dist/subagent-announce-Dw7-i1-9.js +0 -351
- package/dist/subagent-announce-delivery-HYpoItCd.js +0 -726
- package/dist/subagent-announce-output-C7rcYYEc.js +0 -364
- package/dist/subagent-control-Ds2GYpWL.js +0 -506
- package/dist/subagent-followup.runtime-Cd8hCztp.js +0 -68
- package/dist/subagent-orphan-recovery-BgjubPqf.js +0 -305
- package/dist/subagent-registry-CgpGD3GV.js +0 -1753
- package/dist/subagent-registry-DxdVLcdG.js +0 -3
- package/dist/subagent-spawn-BWBNndsp.js +0 -1005
- package/dist/system-cli-DyBkQUQb.js +0 -43
- package/dist/targets-BadrXaG2.js +0 -67
- package/dist/task-executor-C7Wi33fD.js +0 -360
- package/dist/task-owner-access-yQv8xMco.js +0 -74
- package/dist/task-registry-W5mFPlZX.js +0 -2357
- package/dist/task-registry-delivery-runtime-cBNSvuGT.js +0 -3
- package/dist/task-registry-delivery-runtime-cJvq2BuY.js +0 -2
- package/dist/task-registry.maintenance-Buzo501v.js +0 -2
- package/dist/task-registry.maintenance-pJMW_7Am.js +0 -416
- package/dist/testing-Dw49ltmR.js +0 -575
- package/dist/text-report-CtyXY05r.js +0 -549
- package/dist/tool-resolution-BcUPtTtu.js +0 -90
- package/dist/tools-effective-inventory-CL0grjv4.js +0 -152
- package/dist/tools-invoke-http-BZ8xqe0f.js +0 -206
- package/dist/trash-B6l1GwX9.js +0 -24
- package/dist/tui-cli-BCn5UWwT.js +0 -4585
- package/dist/update-cli-D8bMov5W.js +0 -1759
- package/dist/upgrade-iRXz6ZP4.js +0 -1226
- package/dist/video-generation-task-status-ESf4kR6F.js +0 -163
- package/dist/wait-for-idle-before-flush-C-_kVutK.js +0 -5985
- package/dist/wizard-models-jPGu0o7K.js +0 -334
|
@@ -1,2515 +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
|
-
//#endregion
|
|
1625
|
-
//#region src/gateway/protocol/schema/nodes.ts
|
|
1626
|
-
const NodePendingWorkTypeSchema = Type.String({ enum: ["status.request", "location.request"] });
|
|
1627
|
-
const NodePendingWorkPrioritySchema = Type.String({ enum: ["normal", "high"] });
|
|
1628
|
-
const NodePairRequestParamsSchema = Type.Object({
|
|
1629
|
-
nodeId: NonEmptyString,
|
|
1630
|
-
displayName: Type.Optional(NonEmptyString),
|
|
1631
|
-
platform: Type.Optional(NonEmptyString),
|
|
1632
|
-
version: Type.Optional(NonEmptyString),
|
|
1633
|
-
coreVersion: Type.Optional(NonEmptyString),
|
|
1634
|
-
uiVersion: Type.Optional(NonEmptyString),
|
|
1635
|
-
deviceFamily: Type.Optional(NonEmptyString),
|
|
1636
|
-
modelIdentifier: Type.Optional(NonEmptyString),
|
|
1637
|
-
caps: Type.Optional(Type.Array(NonEmptyString)),
|
|
1638
|
-
commands: Type.Optional(Type.Array(NonEmptyString)),
|
|
1639
|
-
remoteIp: Type.Optional(NonEmptyString),
|
|
1640
|
-
silent: Type.Optional(Type.Boolean())
|
|
1641
|
-
}, { additionalProperties: false });
|
|
1642
|
-
const NodePairListParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1643
|
-
const NodePairApproveParamsSchema = Type.Object({ requestId: NonEmptyString }, { additionalProperties: false });
|
|
1644
|
-
const NodePairRejectParamsSchema = Type.Object({ requestId: NonEmptyString }, { additionalProperties: false });
|
|
1645
|
-
const NodePairVerifyParamsSchema = Type.Object({
|
|
1646
|
-
nodeId: NonEmptyString,
|
|
1647
|
-
token: NonEmptyString
|
|
1648
|
-
}, { additionalProperties: false });
|
|
1649
|
-
const NodeRenameParamsSchema = Type.Object({
|
|
1650
|
-
nodeId: NonEmptyString,
|
|
1651
|
-
displayName: NonEmptyString
|
|
1652
|
-
}, { additionalProperties: false });
|
|
1653
|
-
const NodeListParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1654
|
-
const NodePendingAckParamsSchema = Type.Object({ ids: Type.Array(NonEmptyString, { minItems: 1 }) }, { additionalProperties: false });
|
|
1655
|
-
const NodeDescribeParamsSchema = Type.Object({ nodeId: NonEmptyString }, { additionalProperties: false });
|
|
1656
|
-
const NodeInvokeParamsSchema = Type.Object({
|
|
1657
|
-
nodeId: NonEmptyString,
|
|
1658
|
-
command: NonEmptyString,
|
|
1659
|
-
params: Type.Optional(Type.Unknown()),
|
|
1660
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1661
|
-
idempotencyKey: NonEmptyString
|
|
1662
|
-
}, { additionalProperties: false });
|
|
1663
|
-
const NodeInvokeResultParamsSchema = Type.Object({
|
|
1664
|
-
id: NonEmptyString,
|
|
1665
|
-
nodeId: NonEmptyString,
|
|
1666
|
-
ok: Type.Boolean(),
|
|
1667
|
-
payload: Type.Optional(Type.Unknown()),
|
|
1668
|
-
payloadJSON: Type.Optional(Type.String()),
|
|
1669
|
-
error: Type.Optional(Type.Object({
|
|
1670
|
-
code: Type.Optional(NonEmptyString),
|
|
1671
|
-
message: Type.Optional(NonEmptyString)
|
|
1672
|
-
}, { additionalProperties: false }))
|
|
1673
|
-
}, { additionalProperties: false });
|
|
1674
|
-
const NodeEventParamsSchema = Type.Object({
|
|
1675
|
-
event: NonEmptyString,
|
|
1676
|
-
payload: Type.Optional(Type.Unknown()),
|
|
1677
|
-
payloadJSON: Type.Optional(Type.String())
|
|
1678
|
-
}, { additionalProperties: false });
|
|
1679
|
-
const NodePendingDrainParamsSchema = Type.Object({ maxItems: Type.Optional(Type.Integer({
|
|
1680
|
-
minimum: 1,
|
|
1681
|
-
maximum: 10
|
|
1682
|
-
})) }, { additionalProperties: false });
|
|
1683
|
-
const NodePendingDrainItemSchema = Type.Object({
|
|
1684
|
-
id: NonEmptyString,
|
|
1685
|
-
type: NodePendingWorkTypeSchema,
|
|
1686
|
-
priority: Type.String({ enum: [
|
|
1687
|
-
"default",
|
|
1688
|
-
"normal",
|
|
1689
|
-
"high"
|
|
1690
|
-
] }),
|
|
1691
|
-
createdAtMs: Type.Integer({ minimum: 0 }),
|
|
1692
|
-
expiresAtMs: Type.Optional(Type.Union([Type.Integer({ minimum: 0 }), Type.Null()])),
|
|
1693
|
-
payload: Type.Optional(Type.Record(Type.String(), Type.Unknown()))
|
|
1694
|
-
}, { additionalProperties: false });
|
|
1695
|
-
Type.Object({
|
|
1696
|
-
nodeId: NonEmptyString,
|
|
1697
|
-
revision: Type.Integer({ minimum: 0 }),
|
|
1698
|
-
items: Type.Array(NodePendingDrainItemSchema),
|
|
1699
|
-
hasMore: Type.Boolean()
|
|
1700
|
-
}, { additionalProperties: false });
|
|
1701
|
-
const NodePendingEnqueueParamsSchema = Type.Object({
|
|
1702
|
-
nodeId: NonEmptyString,
|
|
1703
|
-
type: NodePendingWorkTypeSchema,
|
|
1704
|
-
priority: Type.Optional(NodePendingWorkPrioritySchema),
|
|
1705
|
-
expiresInMs: Type.Optional(Type.Integer({
|
|
1706
|
-
minimum: 1e3,
|
|
1707
|
-
maximum: 864e5
|
|
1708
|
-
})),
|
|
1709
|
-
wake: Type.Optional(Type.Boolean())
|
|
1710
|
-
}, { additionalProperties: false });
|
|
1711
|
-
Type.Object({
|
|
1712
|
-
nodeId: NonEmptyString,
|
|
1713
|
-
revision: Type.Integer({ minimum: 0 }),
|
|
1714
|
-
queued: NodePendingDrainItemSchema,
|
|
1715
|
-
wakeTriggered: Type.Boolean()
|
|
1716
|
-
}, { additionalProperties: false });
|
|
1717
|
-
Type.Object({
|
|
1718
|
-
id: NonEmptyString,
|
|
1719
|
-
nodeId: NonEmptyString,
|
|
1720
|
-
command: NonEmptyString,
|
|
1721
|
-
paramsJSON: Type.Optional(Type.String()),
|
|
1722
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1723
|
-
idempotencyKey: Type.Optional(NonEmptyString)
|
|
1724
|
-
}, { additionalProperties: false });
|
|
1725
|
-
//#endregion
|
|
1726
|
-
//#region src/gateway/protocol/schema/plugin-approvals.ts
|
|
1727
|
-
const PluginApprovalRequestParamsSchema = Type.Object({
|
|
1728
|
-
pluginId: Type.Optional(NonEmptyString),
|
|
1729
|
-
title: Type.String({
|
|
1730
|
-
minLength: 1,
|
|
1731
|
-
maxLength: 80
|
|
1732
|
-
}),
|
|
1733
|
-
description: Type.String({
|
|
1734
|
-
minLength: 1,
|
|
1735
|
-
maxLength: 256
|
|
1736
|
-
}),
|
|
1737
|
-
severity: Type.Optional(Type.String({ enum: [
|
|
1738
|
-
"info",
|
|
1739
|
-
"warning",
|
|
1740
|
-
"critical"
|
|
1741
|
-
] })),
|
|
1742
|
-
toolName: Type.Optional(Type.String()),
|
|
1743
|
-
toolCallId: Type.Optional(Type.String()),
|
|
1744
|
-
agentId: Type.Optional(Type.String()),
|
|
1745
|
-
sessionKey: Type.Optional(Type.String()),
|
|
1746
|
-
turnSourceChannel: Type.Optional(Type.String()),
|
|
1747
|
-
turnSourceTo: Type.Optional(Type.String()),
|
|
1748
|
-
turnSourceAccountId: Type.Optional(Type.String()),
|
|
1749
|
-
turnSourceThreadId: Type.Optional(Type.Union([Type.String(), Type.Number()])),
|
|
1750
|
-
timeoutMs: Type.Optional(Type.Integer({
|
|
1751
|
-
minimum: 1,
|
|
1752
|
-
maximum: MAX_PLUGIN_APPROVAL_TIMEOUT_MS
|
|
1753
|
-
})),
|
|
1754
|
-
twoPhase: Type.Optional(Type.Boolean())
|
|
1755
|
-
}, { additionalProperties: false });
|
|
1756
|
-
const PluginApprovalResolveParamsSchema = Type.Object({
|
|
1757
|
-
id: NonEmptyString,
|
|
1758
|
-
decision: NonEmptyString
|
|
1759
|
-
}, { additionalProperties: false });
|
|
1760
|
-
//#endregion
|
|
1761
|
-
//#region src/gateway/protocol/schema/plugins.ts
|
|
1762
|
-
const NullableStringSchema = Type.Union([Type.String(), Type.Null()]);
|
|
1763
|
-
const PluginPackageFamilySchema = Type.Union([Type.Literal("code-plugin"), Type.Literal("bundle-plugin")]);
|
|
1764
|
-
const PluginPackageChannelSchema = Type.Union([
|
|
1765
|
-
Type.Literal("official"),
|
|
1766
|
-
Type.Literal("community"),
|
|
1767
|
-
Type.Literal("private")
|
|
1768
|
-
]);
|
|
1769
|
-
const PluginInstallRecordSchema = Type.Object({
|
|
1770
|
-
source: NonEmptyString,
|
|
1771
|
-
spec: Type.Optional(Type.String()),
|
|
1772
|
-
sourcePath: Type.Optional(Type.String()),
|
|
1773
|
-
installPath: Type.Optional(Type.String()),
|
|
1774
|
-
version: Type.Optional(Type.String()),
|
|
1775
|
-
resolvedName: Type.Optional(Type.String()),
|
|
1776
|
-
resolvedVersion: Type.Optional(Type.String()),
|
|
1777
|
-
resolvedSpec: Type.Optional(Type.String()),
|
|
1778
|
-
marketplaceName: Type.Optional(Type.String()),
|
|
1779
|
-
marketplaceSource: Type.Optional(Type.String()),
|
|
1780
|
-
marketplacePlugin: Type.Optional(Type.String()),
|
|
1781
|
-
clawhubUrl: Type.Optional(Type.String()),
|
|
1782
|
-
clawhubPackage: Type.Optional(Type.String()),
|
|
1783
|
-
clawhubFamily: Type.Optional(Type.String()),
|
|
1784
|
-
clawhubChannel: Type.Optional(Type.String()),
|
|
1785
|
-
installedAt: Type.Optional(Type.String()),
|
|
1786
|
-
resolvedAt: Type.Optional(Type.String())
|
|
1787
|
-
}, { additionalProperties: false });
|
|
1788
|
-
const PluginStatusEntrySchema = Type.Object({
|
|
1789
|
-
id: NonEmptyString,
|
|
1790
|
-
name: NonEmptyString,
|
|
1791
|
-
status: Type.Union([
|
|
1792
|
-
Type.Literal("loaded"),
|
|
1793
|
-
Type.Literal("disabled"),
|
|
1794
|
-
Type.Literal("error")
|
|
1795
|
-
]),
|
|
1796
|
-
source: Type.String(),
|
|
1797
|
-
origin: Type.String(),
|
|
1798
|
-
enabled: Type.Boolean(),
|
|
1799
|
-
explicitlyEnabled: Type.Optional(Type.Boolean()),
|
|
1800
|
-
imported: Type.Optional(Type.Boolean()),
|
|
1801
|
-
description: Type.Optional(Type.String()),
|
|
1802
|
-
version: Type.Optional(Type.String()),
|
|
1803
|
-
format: Type.Optional(Type.String()),
|
|
1804
|
-
bundleFormat: Type.Optional(Type.String()),
|
|
1805
|
-
kind: Type.Optional(Type.Union([Type.String(), Type.Array(Type.String())])),
|
|
1806
|
-
rootDir: Type.Optional(Type.String()),
|
|
1807
|
-
activationReason: Type.Optional(Type.String()),
|
|
1808
|
-
error: Type.Optional(Type.String()),
|
|
1809
|
-
configSchema: Type.Boolean(),
|
|
1810
|
-
install: Type.Optional(PluginInstallRecordSchema),
|
|
1811
|
-
toolNames: Type.Array(Type.String()),
|
|
1812
|
-
channelIds: Type.Array(Type.String()),
|
|
1813
|
-
providerIds: Type.Array(Type.String()),
|
|
1814
|
-
speechProviderIds: Type.Array(Type.String()),
|
|
1815
|
-
webSearchProviderIds: Type.Array(Type.String()),
|
|
1816
|
-
webFetchProviderIds: Type.Array(Type.String()),
|
|
1817
|
-
agentHarnessIds: Type.Array(Type.String()),
|
|
1818
|
-
commands: Type.Array(Type.String()),
|
|
1819
|
-
gatewayMethods: Type.Array(Type.String()),
|
|
1820
|
-
services: Type.Array(Type.String()),
|
|
1821
|
-
httpRoutes: Type.Integer({ minimum: 0 })
|
|
1822
|
-
}, { additionalProperties: false });
|
|
1823
|
-
const PluginsStatusParamsSchema = Type.Object({}, { additionalProperties: false });
|
|
1824
|
-
Type.Object({
|
|
1825
|
-
workspaceDir: Type.Optional(Type.String()),
|
|
1826
|
-
plugins: Type.Array(PluginStatusEntrySchema),
|
|
1827
|
-
diagnostics: Type.Array(Type.Object({
|
|
1828
|
-
level: Type.String(),
|
|
1829
|
-
message: Type.String(),
|
|
1830
|
-
pluginId: Type.Optional(Type.String())
|
|
1831
|
-
}, { additionalProperties: false }))
|
|
1832
|
-
}, { additionalProperties: false });
|
|
1833
|
-
const ClawHubPackageListItemSchema = Type.Object({
|
|
1834
|
-
name: NonEmptyString,
|
|
1835
|
-
displayName: NonEmptyString,
|
|
1836
|
-
family: PluginPackageFamilySchema,
|
|
1837
|
-
runtimeId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1838
|
-
channel: PluginPackageChannelSchema,
|
|
1839
|
-
isOfficial: Type.Boolean(),
|
|
1840
|
-
summary: Type.Optional(NullableStringSchema),
|
|
1841
|
-
ownerHandle: Type.Optional(NullableStringSchema),
|
|
1842
|
-
createdAt: Type.Integer(),
|
|
1843
|
-
updatedAt: Type.Integer(),
|
|
1844
|
-
latestVersion: Type.Optional(NullableStringSchema),
|
|
1845
|
-
capabilityTags: Type.Optional(Type.Array(Type.String())),
|
|
1846
|
-
executesCode: Type.Optional(Type.Boolean()),
|
|
1847
|
-
verificationTier: Type.Optional(NullableStringSchema)
|
|
1848
|
-
}, { additionalProperties: false });
|
|
1849
|
-
const PluginsSearchParamsSchema = Type.Object({
|
|
1850
|
-
query: NonEmptyString,
|
|
1851
|
-
limit: Type.Optional(Type.Integer({
|
|
1852
|
-
minimum: 1,
|
|
1853
|
-
maximum: 100
|
|
1854
|
-
}))
|
|
1855
|
-
}, { additionalProperties: false });
|
|
1856
|
-
Type.Object({ results: Type.Array(Type.Object({
|
|
1857
|
-
score: Type.Number(),
|
|
1858
|
-
package: ClawHubPackageListItemSchema
|
|
1859
|
-
}, { additionalProperties: false })) }, { additionalProperties: false });
|
|
1860
|
-
const PluginsDetailParamsSchema = Type.Object({ name: NonEmptyString }, { additionalProperties: false });
|
|
1861
|
-
Type.Object({
|
|
1862
|
-
package: Type.Union([Type.Object({
|
|
1863
|
-
name: NonEmptyString,
|
|
1864
|
-
displayName: NonEmptyString,
|
|
1865
|
-
family: PluginPackageFamilySchema,
|
|
1866
|
-
runtimeId: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
1867
|
-
channel: PluginPackageChannelSchema,
|
|
1868
|
-
isOfficial: Type.Boolean(),
|
|
1869
|
-
summary: Type.Optional(NullableStringSchema),
|
|
1870
|
-
ownerHandle: Type.Optional(NullableStringSchema),
|
|
1871
|
-
createdAt: Type.Integer(),
|
|
1872
|
-
updatedAt: Type.Integer(),
|
|
1873
|
-
latestVersion: Type.Optional(NullableStringSchema),
|
|
1874
|
-
capabilityTags: Type.Optional(Type.Array(Type.String())),
|
|
1875
|
-
executesCode: Type.Optional(Type.Boolean()),
|
|
1876
|
-
verificationTier: Type.Optional(NullableStringSchema),
|
|
1877
|
-
tags: Type.Optional(Type.Record(NonEmptyString, Type.String())),
|
|
1878
|
-
compatibility: Type.Optional(Type.Union([Type.Object({
|
|
1879
|
-
pluginApiRange: Type.Optional(Type.String()),
|
|
1880
|
-
builtWithGenesisVersion: Type.Optional(Type.String()),
|
|
1881
|
-
pluginSdkVersion: Type.Optional(Type.String()),
|
|
1882
|
-
minGatewayVersion: Type.Optional(Type.String())
|
|
1883
|
-
}, { additionalProperties: false }), Type.Null()])),
|
|
1884
|
-
capabilities: Type.Optional(Type.Union([Type.Object({
|
|
1885
|
-
executesCode: Type.Optional(Type.Boolean()),
|
|
1886
|
-
runtimeId: Type.Optional(Type.String()),
|
|
1887
|
-
capabilityTags: Type.Optional(Type.Array(Type.String())),
|
|
1888
|
-
bundleFormat: Type.Optional(Type.String()),
|
|
1889
|
-
hostTargets: Type.Optional(Type.Array(Type.String())),
|
|
1890
|
-
pluginKind: Type.Optional(Type.String()),
|
|
1891
|
-
channels: Type.Optional(Type.Array(Type.String())),
|
|
1892
|
-
providers: Type.Optional(Type.Array(Type.String())),
|
|
1893
|
-
hooks: Type.Optional(Type.Array(Type.String())),
|
|
1894
|
-
bundledSkills: Type.Optional(Type.Array(Type.String()))
|
|
1895
|
-
}, { additionalProperties: false }), Type.Null()])),
|
|
1896
|
-
verification: Type.Optional(Type.Union([Type.Object({
|
|
1897
|
-
tier: Type.Optional(Type.String()),
|
|
1898
|
-
scope: Type.Optional(Type.String()),
|
|
1899
|
-
summary: Type.Optional(Type.String()),
|
|
1900
|
-
sourceRepo: Type.Optional(Type.String()),
|
|
1901
|
-
sourceCommit: Type.Optional(Type.String()),
|
|
1902
|
-
hasProvenance: Type.Optional(Type.Boolean()),
|
|
1903
|
-
scanStatus: Type.Optional(Type.String())
|
|
1904
|
-
}, { additionalProperties: false }), Type.Null()]))
|
|
1905
|
-
}, { additionalProperties: false }), Type.Null()]),
|
|
1906
|
-
owner: Type.Optional(Type.Union([Type.Object({
|
|
1907
|
-
handle: Type.Optional(NullableStringSchema),
|
|
1908
|
-
displayName: Type.Optional(NullableStringSchema),
|
|
1909
|
-
image: Type.Optional(NullableStringSchema)
|
|
1910
|
-
}, { additionalProperties: false }), Type.Null()]))
|
|
1911
|
-
}, { additionalProperties: false });
|
|
1912
|
-
const PluginsInstallParamsSchema = Type.Object({
|
|
1913
|
-
source: Type.Literal("clawhub"),
|
|
1914
|
-
name: NonEmptyString,
|
|
1915
|
-
version: Type.Optional(NonEmptyString),
|
|
1916
|
-
force: Type.Optional(Type.Boolean()),
|
|
1917
|
-
dangerouslyForceUnsafeInstall: Type.Optional(Type.Boolean())
|
|
1918
|
-
}, { additionalProperties: false });
|
|
1919
|
-
Type.Object({
|
|
1920
|
-
ok: Type.Literal(true),
|
|
1921
|
-
message: NonEmptyString,
|
|
1922
|
-
pluginId: NonEmptyString,
|
|
1923
|
-
version: Type.Optional(Type.String()),
|
|
1924
|
-
installPath: Type.Optional(Type.String()),
|
|
1925
|
-
warnings: Type.Array(Type.String())
|
|
1926
|
-
}, { additionalProperties: false });
|
|
1927
|
-
const PluginsUpdateParamsSchema = Type.Object({
|
|
1928
|
-
pluginId: NonEmptyString,
|
|
1929
|
-
enabled: Type.Boolean()
|
|
1930
|
-
}, { additionalProperties: false });
|
|
1931
|
-
Type.Object({
|
|
1932
|
-
ok: Type.Literal(true),
|
|
1933
|
-
pluginId: NonEmptyString,
|
|
1934
|
-
enabled: Type.Boolean(),
|
|
1935
|
-
message: NonEmptyString,
|
|
1936
|
-
warnings: Type.Array(Type.String())
|
|
1937
|
-
}, { additionalProperties: false });
|
|
1938
|
-
const PluginsUninstallParamsSchema = Type.Object({
|
|
1939
|
-
pluginId: NonEmptyString,
|
|
1940
|
-
keepFiles: Type.Optional(Type.Boolean())
|
|
1941
|
-
}, { additionalProperties: false });
|
|
1942
|
-
Type.Object({
|
|
1943
|
-
ok: Type.Literal(true),
|
|
1944
|
-
pluginId: NonEmptyString,
|
|
1945
|
-
removed: Type.Array(Type.String()),
|
|
1946
|
-
warnings: Type.Array(Type.String()),
|
|
1947
|
-
message: NonEmptyString
|
|
1948
|
-
}, { additionalProperties: false });
|
|
1949
|
-
//#endregion
|
|
1950
|
-
//#region src/gateway/protocol/schema/push.ts
|
|
1951
|
-
const ApnsEnvironmentSchema = Type.String({ enum: ["sandbox", "production"] });
|
|
1952
|
-
const PushTestParamsSchema = Type.Object({
|
|
1953
|
-
nodeId: NonEmptyString,
|
|
1954
|
-
title: Type.Optional(Type.String()),
|
|
1955
|
-
body: Type.Optional(Type.String()),
|
|
1956
|
-
environment: Type.Optional(ApnsEnvironmentSchema)
|
|
1957
|
-
}, { additionalProperties: false });
|
|
1958
|
-
Type.Object({
|
|
1959
|
-
ok: Type.Boolean(),
|
|
1960
|
-
status: Type.Integer(),
|
|
1961
|
-
apnsId: Type.Optional(Type.String()),
|
|
1962
|
-
reason: Type.Optional(Type.String()),
|
|
1963
|
-
tokenSuffix: Type.String(),
|
|
1964
|
-
topic: Type.String(),
|
|
1965
|
-
environment: ApnsEnvironmentSchema,
|
|
1966
|
-
transport: Type.String({ enum: ["direct", "relay"] })
|
|
1967
|
-
}, { additionalProperties: false });
|
|
1968
|
-
Type.Object({}, { additionalProperties: false });
|
|
1969
|
-
const SecretsResolveParamsSchema = Type.Object({
|
|
1970
|
-
commandName: NonEmptyString,
|
|
1971
|
-
targetIds: Type.Array(NonEmptyString)
|
|
1972
|
-
}, { additionalProperties: false });
|
|
1973
|
-
const SecretsResolveAssignmentSchema = Type.Object({
|
|
1974
|
-
path: Type.Optional(NonEmptyString),
|
|
1975
|
-
pathSegments: Type.Array(NonEmptyString),
|
|
1976
|
-
value: Type.Unknown()
|
|
1977
|
-
}, { additionalProperties: false });
|
|
1978
|
-
const SecretsResolveResultSchema = Type.Object({
|
|
1979
|
-
ok: Type.Optional(Type.Boolean()),
|
|
1980
|
-
assignments: Type.Optional(Type.Array(SecretsResolveAssignmentSchema)),
|
|
1981
|
-
diagnostics: Type.Optional(Type.Array(NonEmptyString)),
|
|
1982
|
-
inactiveRefPaths: Type.Optional(Type.Array(NonEmptyString))
|
|
1983
|
-
}, { additionalProperties: false });
|
|
1984
|
-
//#endregion
|
|
1985
|
-
//#region src/gateway/protocol/schema/sessions.ts
|
|
1986
|
-
const SessionCompactionCheckpointReasonSchema = Type.Union([
|
|
1987
|
-
Type.Literal("manual"),
|
|
1988
|
-
Type.Literal("auto-threshold"),
|
|
1989
|
-
Type.Literal("overflow-retry"),
|
|
1990
|
-
Type.Literal("timeout-retry")
|
|
1991
|
-
]);
|
|
1992
|
-
const SessionCompactionTranscriptReferenceSchema = Type.Object({
|
|
1993
|
-
sessionId: NonEmptyString,
|
|
1994
|
-
sessionFile: Type.Optional(NonEmptyString),
|
|
1995
|
-
leafId: Type.Optional(NonEmptyString),
|
|
1996
|
-
entryId: Type.Optional(NonEmptyString)
|
|
1997
|
-
}, { additionalProperties: false });
|
|
1998
|
-
const SessionCompactionCheckpointSchema = Type.Object({
|
|
1999
|
-
checkpointId: NonEmptyString,
|
|
2000
|
-
sessionKey: NonEmptyString,
|
|
2001
|
-
sessionId: NonEmptyString,
|
|
2002
|
-
createdAt: Type.Integer({ minimum: 0 }),
|
|
2003
|
-
reason: SessionCompactionCheckpointReasonSchema,
|
|
2004
|
-
tokensBefore: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
2005
|
-
tokensAfter: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
2006
|
-
summary: Type.Optional(Type.String()),
|
|
2007
|
-
firstKeptEntryId: Type.Optional(NonEmptyString),
|
|
2008
|
-
preCompaction: SessionCompactionTranscriptReferenceSchema,
|
|
2009
|
-
postCompaction: SessionCompactionTranscriptReferenceSchema
|
|
2010
|
-
}, { additionalProperties: false });
|
|
2011
|
-
const SessionsListParamsSchema = Type.Object({
|
|
2012
|
-
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
2013
|
-
activeMinutes: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
2014
|
-
includeGlobal: Type.Optional(Type.Boolean()),
|
|
2015
|
-
includeUnknown: Type.Optional(Type.Boolean()),
|
|
2016
|
-
includeDerivedTitles: Type.Optional(Type.Boolean()),
|
|
2017
|
-
includeLastMessage: Type.Optional(Type.Boolean()),
|
|
2018
|
-
includeTranscriptUsage: Type.Optional(Type.Boolean()),
|
|
2019
|
-
label: Type.Optional(SessionLabelString),
|
|
2020
|
-
spawnedBy: Type.Optional(NonEmptyString),
|
|
2021
|
-
agentId: Type.Optional(NonEmptyString),
|
|
2022
|
-
search: Type.Optional(Type.String())
|
|
2023
|
-
}, { additionalProperties: false });
|
|
2024
|
-
const SessionsPreviewParamsSchema = Type.Object({
|
|
2025
|
-
keys: Type.Array(NonEmptyString, { minItems: 1 }),
|
|
2026
|
-
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
2027
|
-
maxChars: Type.Optional(Type.Integer({ minimum: 20 }))
|
|
2028
|
-
}, { additionalProperties: false });
|
|
2029
|
-
const SessionsResolveParamsSchema = Type.Object({
|
|
2030
|
-
key: Type.Optional(NonEmptyString),
|
|
2031
|
-
sessionId: Type.Optional(NonEmptyString),
|
|
2032
|
-
label: Type.Optional(SessionLabelString),
|
|
2033
|
-
agentId: Type.Optional(NonEmptyString),
|
|
2034
|
-
spawnedBy: Type.Optional(NonEmptyString),
|
|
2035
|
-
includeGlobal: Type.Optional(Type.Boolean()),
|
|
2036
|
-
includeUnknown: Type.Optional(Type.Boolean())
|
|
2037
|
-
}, { additionalProperties: false });
|
|
2038
|
-
const SessionsCreateParamsSchema = Type.Object({
|
|
2039
|
-
key: Type.Optional(NonEmptyString),
|
|
2040
|
-
agentId: Type.Optional(NonEmptyString),
|
|
2041
|
-
label: Type.Optional(SessionLabelString),
|
|
2042
|
-
model: Type.Optional(NonEmptyString),
|
|
2043
|
-
parentSessionKey: Type.Optional(NonEmptyString),
|
|
2044
|
-
task: Type.Optional(Type.String()),
|
|
2045
|
-
message: Type.Optional(Type.String())
|
|
2046
|
-
}, { additionalProperties: false });
|
|
2047
|
-
const SessionsSendParamsSchema = Type.Object({
|
|
2048
|
-
key: NonEmptyString,
|
|
2049
|
-
message: Type.String(),
|
|
2050
|
-
thinking: Type.Optional(Type.String()),
|
|
2051
|
-
attachments: Type.Optional(Type.Array(Type.Unknown())),
|
|
2052
|
-
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
2053
|
-
idempotencyKey: Type.Optional(NonEmptyString)
|
|
2054
|
-
}, { additionalProperties: false });
|
|
2055
|
-
const SessionsMessagesSubscribeParamsSchema = Type.Object({ key: NonEmptyString }, { additionalProperties: false });
|
|
2056
|
-
const SessionsMessagesUnsubscribeParamsSchema = Type.Object({ key: NonEmptyString }, { additionalProperties: false });
|
|
2057
|
-
const SessionsAbortParamsSchema = Type.Object({
|
|
2058
|
-
key: NonEmptyString,
|
|
2059
|
-
runId: Type.Optional(NonEmptyString)
|
|
2060
|
-
}, { additionalProperties: false });
|
|
2061
|
-
const SessionsPatchParamsSchema = Type.Object({
|
|
2062
|
-
key: NonEmptyString,
|
|
2063
|
-
label: Type.Optional(Type.Union([SessionLabelString, Type.Null()])),
|
|
2064
|
-
thinkingLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2065
|
-
fastMode: Type.Optional(Type.Union([Type.Boolean(), Type.Null()])),
|
|
2066
|
-
verboseLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2067
|
-
traceLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2068
|
-
reasoningLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2069
|
-
responseUsage: Type.Optional(Type.Union([
|
|
2070
|
-
Type.Literal("off"),
|
|
2071
|
-
Type.Literal("tokens"),
|
|
2072
|
-
Type.Literal("full"),
|
|
2073
|
-
Type.Literal("on"),
|
|
2074
|
-
Type.Null()
|
|
2075
|
-
])),
|
|
2076
|
-
elevatedLevel: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2077
|
-
execHost: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2078
|
-
execSecurity: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2079
|
-
execAsk: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2080
|
-
execNode: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2081
|
-
model: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2082
|
-
spawnedBy: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2083
|
-
spawnedWorkspaceDir: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),
|
|
2084
|
-
spawnDepth: Type.Optional(Type.Union([Type.Integer({ minimum: 0 }), Type.Null()])),
|
|
2085
|
-
subagentRole: Type.Optional(Type.Union([
|
|
2086
|
-
Type.Literal("orchestrator"),
|
|
2087
|
-
Type.Literal("leaf"),
|
|
2088
|
-
Type.Null()
|
|
2089
|
-
])),
|
|
2090
|
-
subagentControlScope: Type.Optional(Type.Union([
|
|
2091
|
-
Type.Literal("children"),
|
|
2092
|
-
Type.Literal("none"),
|
|
2093
|
-
Type.Null()
|
|
2094
|
-
])),
|
|
2095
|
-
sendPolicy: Type.Optional(Type.Union([
|
|
2096
|
-
Type.Literal("allow"),
|
|
2097
|
-
Type.Literal("deny"),
|
|
2098
|
-
Type.Null()
|
|
2099
|
-
])),
|
|
2100
|
-
groupActivation: Type.Optional(Type.Union([
|
|
2101
|
-
Type.Literal("mention"),
|
|
2102
|
-
Type.Literal("always"),
|
|
2103
|
-
Type.Null()
|
|
2104
|
-
]))
|
|
2105
|
-
}, { additionalProperties: false });
|
|
2106
|
-
const SessionsResetParamsSchema = Type.Object({
|
|
2107
|
-
key: NonEmptyString,
|
|
2108
|
-
reason: Type.Optional(Type.Union([Type.Literal("new"), Type.Literal("reset")]))
|
|
2109
|
-
}, { additionalProperties: false });
|
|
2110
|
-
const SessionsDeleteParamsSchema = Type.Object({
|
|
2111
|
-
key: NonEmptyString,
|
|
2112
|
-
deleteTranscript: Type.Optional(Type.Boolean()),
|
|
2113
|
-
emitLifecycleHooks: Type.Optional(Type.Boolean())
|
|
2114
|
-
}, { additionalProperties: false });
|
|
2115
|
-
const SessionsCompactParamsSchema = Type.Object({
|
|
2116
|
-
key: NonEmptyString,
|
|
2117
|
-
maxLines: Type.Optional(Type.Integer({ minimum: 1 }))
|
|
2118
|
-
}, { additionalProperties: false });
|
|
2119
|
-
const SessionsCompactionListParamsSchema = Type.Object({ key: NonEmptyString }, { additionalProperties: false });
|
|
2120
|
-
const SessionsCompactionGetParamsSchema = Type.Object({
|
|
2121
|
-
key: NonEmptyString,
|
|
2122
|
-
checkpointId: NonEmptyString
|
|
2123
|
-
}, { additionalProperties: false });
|
|
2124
|
-
const SessionsCompactionBranchParamsSchema = Type.Object({
|
|
2125
|
-
key: NonEmptyString,
|
|
2126
|
-
checkpointId: NonEmptyString
|
|
2127
|
-
}, { additionalProperties: false });
|
|
2128
|
-
const SessionsCompactionRestoreParamsSchema = Type.Object({
|
|
2129
|
-
key: NonEmptyString,
|
|
2130
|
-
checkpointId: NonEmptyString
|
|
2131
|
-
}, { additionalProperties: false });
|
|
2132
|
-
Type.Object({
|
|
2133
|
-
ok: Type.Literal(true),
|
|
2134
|
-
key: NonEmptyString,
|
|
2135
|
-
checkpoints: Type.Array(SessionCompactionCheckpointSchema)
|
|
2136
|
-
}, { additionalProperties: false });
|
|
2137
|
-
Type.Object({
|
|
2138
|
-
ok: Type.Literal(true),
|
|
2139
|
-
key: NonEmptyString,
|
|
2140
|
-
checkpoint: SessionCompactionCheckpointSchema
|
|
2141
|
-
}, { additionalProperties: false });
|
|
2142
|
-
Type.Object({
|
|
2143
|
-
ok: Type.Literal(true),
|
|
2144
|
-
sourceKey: NonEmptyString,
|
|
2145
|
-
key: NonEmptyString,
|
|
2146
|
-
sessionId: NonEmptyString,
|
|
2147
|
-
checkpoint: SessionCompactionCheckpointSchema,
|
|
2148
|
-
entry: Type.Object({
|
|
2149
|
-
sessionId: NonEmptyString,
|
|
2150
|
-
updatedAt: Type.Integer({ minimum: 0 })
|
|
2151
|
-
}, { additionalProperties: true })
|
|
2152
|
-
}, { additionalProperties: false });
|
|
2153
|
-
Type.Object({
|
|
2154
|
-
ok: Type.Literal(true),
|
|
2155
|
-
key: NonEmptyString,
|
|
2156
|
-
sessionId: NonEmptyString,
|
|
2157
|
-
checkpoint: SessionCompactionCheckpointSchema,
|
|
2158
|
-
entry: Type.Object({
|
|
2159
|
-
sessionId: NonEmptyString,
|
|
2160
|
-
updatedAt: Type.Integer({ minimum: 0 })
|
|
2161
|
-
}, { additionalProperties: true })
|
|
2162
|
-
}, { additionalProperties: false });
|
|
2163
|
-
const SessionsUsageParamsSchema = Type.Object({
|
|
2164
|
-
key: Type.Optional(NonEmptyString),
|
|
2165
|
-
startDate: Type.Optional(Type.String({ pattern: "^\\d{4}-\\d{2}-\\d{2}$" })),
|
|
2166
|
-
endDate: Type.Optional(Type.String({ pattern: "^\\d{4}-\\d{2}-\\d{2}$" })),
|
|
2167
|
-
mode: Type.Optional(Type.Union([
|
|
2168
|
-
Type.Literal("utc"),
|
|
2169
|
-
Type.Literal("gateway"),
|
|
2170
|
-
Type.Literal("specific")
|
|
2171
|
-
])),
|
|
2172
|
-
utcOffset: Type.Optional(Type.String({ pattern: "^UTC[+-]\\d{1,2}(?::[0-5]\\d)?$" })),
|
|
2173
|
-
limit: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
2174
|
-
includeContextWeight: Type.Optional(Type.Boolean())
|
|
2175
|
-
}, { additionalProperties: false });
|
|
2176
|
-
//#endregion
|
|
2177
|
-
//#region src/gateway/protocol/schema/wallet.ts
|
|
2178
|
-
const WalletChainSchema = Type.Union([
|
|
2179
|
-
Type.Literal("btc"),
|
|
2180
|
-
Type.Literal("evm"),
|
|
2181
|
-
Type.Literal("sol"),
|
|
2182
|
-
Type.Literal("trx"),
|
|
2183
|
-
Type.Literal("xmr"),
|
|
2184
|
-
Type.Literal("lndhub")
|
|
2185
|
-
]);
|
|
2186
|
-
const WalletSummaryParamsSchema = Type.Object({
|
|
2187
|
-
includeBalances: Type.Optional(Type.Boolean()),
|
|
2188
|
-
includeTokens: Type.Optional(Type.Boolean()),
|
|
2189
|
-
includeNfts: Type.Optional(Type.Boolean())
|
|
2190
|
-
}, { additionalProperties: false });
|
|
2191
|
-
const WalletRecoveryPhraseModeSchema = Type.Union([Type.Literal("generate"), Type.Literal("import")]);
|
|
2192
|
-
const WalletRecoveryPhraseSetParamsSchema = Type.Object({
|
|
2193
|
-
mode: WalletRecoveryPhraseModeSchema,
|
|
2194
|
-
passphrase: Type.Optional(Type.String({ maxLength: 16 * 1024 })),
|
|
2195
|
-
mnemonic: Type.Optional(Type.String({
|
|
2196
|
-
minLength: 1,
|
|
2197
|
-
maxLength: 64 * 1024
|
|
2198
|
-
})),
|
|
2199
|
-
overwrite: Type.Optional(Type.Boolean())
|
|
2200
|
-
}, { additionalProperties: false });
|
|
2201
|
-
const WalletPublicAccountSchema = Type.Object({
|
|
2202
|
-
id: Type.String({ minLength: 1 }),
|
|
2203
|
-
chain: WalletChainSchema,
|
|
2204
|
-
address: Type.String({ minLength: 1 }),
|
|
2205
|
-
label: Type.Optional(Type.String()),
|
|
2206
|
-
network: Type.Optional(Type.String()),
|
|
2207
|
-
derivationPath: Type.Optional(Type.String()),
|
|
2208
|
-
createdAt: Type.String(),
|
|
2209
|
-
updatedAt: Type.String()
|
|
2210
|
-
}, { additionalProperties: false });
|
|
2211
|
-
const WalletBalanceSchema = Type.Object({
|
|
2212
|
-
chain: WalletChainSchema,
|
|
2213
|
-
accountId: Type.String({ minLength: 1 }),
|
|
2214
|
-
address: Type.String({ minLength: 1 }),
|
|
2215
|
-
network: Type.Optional(Type.String()),
|
|
2216
|
-
asset: Type.String({ minLength: 1 }),
|
|
2217
|
-
amountAtomic: Type.String(),
|
|
2218
|
-
amount: Type.String(),
|
|
2219
|
-
confirmedAmountAtomic: Type.Optional(Type.String()),
|
|
2220
|
-
pendingAmountAtomic: Type.Optional(Type.String())
|
|
2221
|
-
}, { additionalProperties: false });
|
|
2222
|
-
const WalletTokenBalanceSchema = Type.Object({
|
|
2223
|
-
chain: Type.Literal("evm"),
|
|
2224
|
-
accountId: Type.String({ minLength: 1 }),
|
|
2225
|
-
address: Type.String({ minLength: 1 }),
|
|
2226
|
-
network: Type.Optional(Type.String()),
|
|
2227
|
-
tokenId: Type.String({ minLength: 1 }),
|
|
2228
|
-
contractAddress: Type.String({ minLength: 1 }),
|
|
2229
|
-
asset: Type.String({ minLength: 1 }),
|
|
2230
|
-
name: Type.Optional(Type.String()),
|
|
2231
|
-
decimals: Type.Number(),
|
|
2232
|
-
amountAtomic: Type.String(),
|
|
2233
|
-
amount: Type.String()
|
|
2234
|
-
}, { additionalProperties: false });
|
|
2235
|
-
const WalletNftTokenSchema = Type.Object({
|
|
2236
|
-
tokenId: Type.String({ minLength: 1 }),
|
|
2237
|
-
amount: Type.Optional(Type.String()),
|
|
2238
|
-
tokenUri: Type.Optional(Type.String())
|
|
2239
|
-
}, { additionalProperties: false });
|
|
2240
|
-
const WalletNftCollectionSchema = Type.Object({
|
|
2241
|
-
chain: Type.Literal("evm"),
|
|
2242
|
-
accountId: Type.String({ minLength: 1 }),
|
|
2243
|
-
address: Type.String({ minLength: 1 }),
|
|
2244
|
-
network: Type.Optional(Type.String()),
|
|
2245
|
-
collectionId: Type.String({ minLength: 1 }),
|
|
2246
|
-
contractAddress: Type.String({ minLength: 1 }),
|
|
2247
|
-
standard: Type.Union([Type.Literal("erc721"), Type.Literal("erc1155")]),
|
|
2248
|
-
name: Type.Optional(Type.String()),
|
|
2249
|
-
symbol: Type.Optional(Type.String()),
|
|
2250
|
-
balance: Type.Optional(Type.String()),
|
|
2251
|
-
tokens: Type.Array(WalletNftTokenSchema)
|
|
2252
|
-
}, { additionalProperties: false });
|
|
2253
|
-
const WalletSummaryResultSchema = Type.Object({
|
|
2254
|
-
enabled: Type.Boolean(),
|
|
2255
|
-
keystore: Type.Object({
|
|
2256
|
-
exists: Type.Boolean(),
|
|
2257
|
-
locked: Type.Boolean()
|
|
2258
|
-
}, { additionalProperties: false }),
|
|
2259
|
-
primaryAccount: Type.Optional(Type.String()),
|
|
2260
|
-
accounts: Type.Array(WalletPublicAccountSchema),
|
|
2261
|
-
balances: Type.Optional(Type.Array(WalletBalanceSchema)),
|
|
2262
|
-
tokens: Type.Optional(Type.Array(WalletTokenBalanceSchema)),
|
|
2263
|
-
nfts: Type.Optional(Type.Array(WalletNftCollectionSchema)),
|
|
2264
|
-
warnings: Type.Array(Type.String())
|
|
2265
|
-
}, { additionalProperties: false });
|
|
2266
|
-
const WalletRecoveryPhraseSetResultSchema = Type.Object({
|
|
2267
|
-
mnemonicGenerated: Type.Boolean(),
|
|
2268
|
-
mnemonic: Type.Optional(Type.String({ minLength: 1 })),
|
|
2269
|
-
summary: WalletSummaryResultSchema
|
|
2270
|
-
}, { additionalProperties: false });
|
|
2271
|
-
//#endregion
|
|
2272
|
-
//#region src/gateway/protocol/schema/wizard.ts
|
|
2273
|
-
const WizardRunStatusSchema = Type.Union([
|
|
2274
|
-
Type.Literal("running"),
|
|
2275
|
-
Type.Literal("done"),
|
|
2276
|
-
Type.Literal("cancelled"),
|
|
2277
|
-
Type.Literal("error")
|
|
2278
|
-
]);
|
|
2279
|
-
const WizardStartParamsSchema = Type.Object({
|
|
2280
|
-
target: Type.Optional(Type.Union([
|
|
2281
|
-
Type.Literal("setup"),
|
|
2282
|
-
Type.Literal("channels"),
|
|
2283
|
-
Type.Literal("models")
|
|
2284
|
-
])),
|
|
2285
|
-
mode: Type.Optional(Type.Union([Type.Literal("local"), Type.Literal("remote")])),
|
|
2286
|
-
workspace: Type.Optional(Type.String()),
|
|
2287
|
-
channel: Type.Optional(Type.String()),
|
|
2288
|
-
provider: Type.Optional(Type.String()),
|
|
2289
|
-
authMethod: Type.Optional(Type.String()),
|
|
2290
|
-
setDefault: Type.Optional(Type.Boolean())
|
|
2291
|
-
}, { additionalProperties: false });
|
|
2292
|
-
const WizardAnswerSchema = Type.Object({
|
|
2293
|
-
stepId: NonEmptyString,
|
|
2294
|
-
value: Type.Optional(Type.Unknown())
|
|
2295
|
-
}, { additionalProperties: false });
|
|
2296
|
-
const WizardNextParamsSchema = Type.Object({
|
|
2297
|
-
sessionId: NonEmptyString,
|
|
2298
|
-
answer: Type.Optional(WizardAnswerSchema)
|
|
2299
|
-
}, { additionalProperties: false });
|
|
2300
|
-
const WizardSessionIdParamsSchema = Type.Object({ sessionId: NonEmptyString }, { additionalProperties: false });
|
|
2301
|
-
const WizardCancelParamsSchema = WizardSessionIdParamsSchema;
|
|
2302
|
-
const WizardStatusParamsSchema = WizardSessionIdParamsSchema;
|
|
2303
|
-
const WizardStepOptionSchema = Type.Object({
|
|
2304
|
-
value: Type.Unknown(),
|
|
2305
|
-
label: NonEmptyString,
|
|
2306
|
-
hint: Type.Optional(Type.String())
|
|
2307
|
-
}, { additionalProperties: false });
|
|
2308
|
-
const WizardStepSchema = Type.Object({
|
|
2309
|
-
id: NonEmptyString,
|
|
2310
|
-
type: Type.Union([
|
|
2311
|
-
Type.Literal("note"),
|
|
2312
|
-
Type.Literal("select"),
|
|
2313
|
-
Type.Literal("text"),
|
|
2314
|
-
Type.Literal("confirm"),
|
|
2315
|
-
Type.Literal("multiselect"),
|
|
2316
|
-
Type.Literal("progress"),
|
|
2317
|
-
Type.Literal("action")
|
|
2318
|
-
]),
|
|
2319
|
-
title: Type.Optional(Type.String()),
|
|
2320
|
-
message: Type.Optional(Type.String()),
|
|
2321
|
-
options: Type.Optional(Type.Array(WizardStepOptionSchema)),
|
|
2322
|
-
initialValue: Type.Optional(Type.Unknown()),
|
|
2323
|
-
placeholder: Type.Optional(Type.String()),
|
|
2324
|
-
sensitive: Type.Optional(Type.Boolean()),
|
|
2325
|
-
executor: Type.Optional(Type.Union([Type.Literal("gateway"), Type.Literal("client")]))
|
|
2326
|
-
}, { additionalProperties: false });
|
|
2327
|
-
const WizardResultFields = {
|
|
2328
|
-
done: Type.Boolean(),
|
|
2329
|
-
step: Type.Optional(WizardStepSchema),
|
|
2330
|
-
status: Type.Optional(WizardRunStatusSchema),
|
|
2331
|
-
error: Type.Optional(Type.String())
|
|
2332
|
-
};
|
|
2333
|
-
Type.Object(WizardResultFields, { additionalProperties: false });
|
|
2334
|
-
Type.Object({
|
|
2335
|
-
sessionId: NonEmptyString,
|
|
2336
|
-
...WizardResultFields
|
|
2337
|
-
}, { additionalProperties: false });
|
|
2338
|
-
Type.Object({
|
|
2339
|
-
status: WizardRunStatusSchema,
|
|
2340
|
-
error: Type.Optional(Type.String())
|
|
2341
|
-
}, { additionalProperties: false });
|
|
2342
|
-
//#endregion
|
|
2343
|
-
//#region src/gateway/protocol/index.ts
|
|
2344
|
-
const ajv = new AjvPkg({
|
|
2345
|
-
allErrors: true,
|
|
2346
|
-
strict: false,
|
|
2347
|
-
removeAdditional: false
|
|
2348
|
-
});
|
|
2349
|
-
const validateCommandsListParams = ajv.compile(CommandsListParamsSchema);
|
|
2350
|
-
const validateConnectParams = ajv.compile(ConnectParamsSchema);
|
|
2351
|
-
const validateRequestFrame = ajv.compile(RequestFrameSchema);
|
|
2352
|
-
const validateResponseFrame = ajv.compile(ResponseFrameSchema);
|
|
2353
|
-
const validateEventFrame = ajv.compile(EventFrameSchema);
|
|
2354
|
-
const validateMessageActionParams = ajv.compile(MessageActionParamsSchema);
|
|
2355
|
-
const validateSendParams = ajv.compile(SendParamsSchema);
|
|
2356
|
-
const validatePollParams = ajv.compile(PollParamsSchema);
|
|
2357
|
-
const validateAgentParams = ajv.compile(AgentParamsSchema);
|
|
2358
|
-
const validateAgentIdentityParams = ajv.compile(AgentIdentityParamsSchema);
|
|
2359
|
-
const validateAgentWaitParams = ajv.compile(AgentWaitParamsSchema);
|
|
2360
|
-
const validateWakeParams = ajv.compile(WakeParamsSchema);
|
|
2361
|
-
const validateAgentsListParams = ajv.compile(AgentsListParamsSchema);
|
|
2362
|
-
const validateAgentsCreateParams = ajv.compile(AgentsCreateParamsSchema);
|
|
2363
|
-
const validateAgentsUpdateParams = ajv.compile(AgentsUpdateParamsSchema);
|
|
2364
|
-
const validateAgentsDeleteParams = ajv.compile(AgentsDeleteParamsSchema);
|
|
2365
|
-
const validateAgentsFilesListParams = ajv.compile(AgentsFilesListParamsSchema);
|
|
2366
|
-
const validateAgentsFilesGetParams = ajv.compile(AgentsFilesGetParamsSchema);
|
|
2367
|
-
const validateAgentsFilesSetParams = ajv.compile(AgentsFilesSetParamsSchema);
|
|
2368
|
-
const validateAgentsMemoryGraphParams = ajv.compile(AgentsMemoryGraphParamsSchema);
|
|
2369
|
-
const validateContactsListParams = ajv.compile(ContactsListParamsSchema);
|
|
2370
|
-
const validateContactsSaveParams = ajv.compile(ContactsSaveParamsSchema);
|
|
2371
|
-
const validateContactsDeleteParams = ajv.compile(ContactsDeleteParamsSchema);
|
|
2372
|
-
const validateNodePairRequestParams = ajv.compile(NodePairRequestParamsSchema);
|
|
2373
|
-
const validateNodePairListParams = ajv.compile(NodePairListParamsSchema);
|
|
2374
|
-
const validateNodePairApproveParams = ajv.compile(NodePairApproveParamsSchema);
|
|
2375
|
-
const validateNodePairRejectParams = ajv.compile(NodePairRejectParamsSchema);
|
|
2376
|
-
const validateNodePairVerifyParams = ajv.compile(NodePairVerifyParamsSchema);
|
|
2377
|
-
const validateNodeRenameParams = ajv.compile(NodeRenameParamsSchema);
|
|
2378
|
-
const validateNodeListParams = ajv.compile(NodeListParamsSchema);
|
|
2379
|
-
const validateNodePendingAckParams = ajv.compile(NodePendingAckParamsSchema);
|
|
2380
|
-
const validateNodeDescribeParams = ajv.compile(NodeDescribeParamsSchema);
|
|
2381
|
-
const validateNodeInvokeParams = ajv.compile(NodeInvokeParamsSchema);
|
|
2382
|
-
const validateNodeInvokeResultParams = ajv.compile(NodeInvokeResultParamsSchema);
|
|
2383
|
-
const validateNodeEventParams = ajv.compile(NodeEventParamsSchema);
|
|
2384
|
-
const validateNodePendingDrainParams = ajv.compile(NodePendingDrainParamsSchema);
|
|
2385
|
-
const validateNodePendingEnqueueParams = ajv.compile(NodePendingEnqueueParamsSchema);
|
|
2386
|
-
const validateCanvasDocumentCreateParams = ajv.compile(CanvasDocumentCreateParamsSchema);
|
|
2387
|
-
const validateCanvasDocumentUpdateParams = ajv.compile(CanvasDocumentUpdateParamsSchema);
|
|
2388
|
-
ajv.compile(CanvasDocumentCreateResultSchema);
|
|
2389
|
-
const validateCanvasDocumentListParams = ajv.compile(CanvasDocumentListParamsSchema);
|
|
2390
|
-
ajv.compile(CanvasDocumentListResultSchema);
|
|
2391
|
-
const validatePushTestParams = ajv.compile(PushTestParamsSchema);
|
|
2392
|
-
const validateSecretsResolveParams = ajv.compile(SecretsResolveParamsSchema);
|
|
2393
|
-
const validateSecretsResolveResult = ajv.compile(SecretsResolveResultSchema);
|
|
2394
|
-
const validateSessionsListParams = ajv.compile(SessionsListParamsSchema);
|
|
2395
|
-
const validateSessionsPreviewParams = ajv.compile(SessionsPreviewParamsSchema);
|
|
2396
|
-
const validateSessionsResolveParams = ajv.compile(SessionsResolveParamsSchema);
|
|
2397
|
-
const validateSessionsCreateParams = ajv.compile(SessionsCreateParamsSchema);
|
|
2398
|
-
const validateSessionsSendParams = ajv.compile(SessionsSendParamsSchema);
|
|
2399
|
-
const validateSessionsMessagesSubscribeParams = ajv.compile(SessionsMessagesSubscribeParamsSchema);
|
|
2400
|
-
const validateSessionsMessagesUnsubscribeParams = ajv.compile(SessionsMessagesUnsubscribeParamsSchema);
|
|
2401
|
-
const validateSessionsAbortParams = ajv.compile(SessionsAbortParamsSchema);
|
|
2402
|
-
const validateSessionsPatchParams = ajv.compile(SessionsPatchParamsSchema);
|
|
2403
|
-
const validateSessionsResetParams = ajv.compile(SessionsResetParamsSchema);
|
|
2404
|
-
const validateSessionsDeleteParams = ajv.compile(SessionsDeleteParamsSchema);
|
|
2405
|
-
const validateSessionsCompactParams = ajv.compile(SessionsCompactParamsSchema);
|
|
2406
|
-
const validateSessionsCompactionListParams = ajv.compile(SessionsCompactionListParamsSchema);
|
|
2407
|
-
const validateSessionsCompactionGetParams = ajv.compile(SessionsCompactionGetParamsSchema);
|
|
2408
|
-
const validateSessionsCompactionBranchParams = ajv.compile(SessionsCompactionBranchParamsSchema);
|
|
2409
|
-
const validateSessionsCompactionRestoreParams = ajv.compile(SessionsCompactionRestoreParamsSchema);
|
|
2410
|
-
const validateSessionsUsageParams = ajv.compile(SessionsUsageParamsSchema);
|
|
2411
|
-
const validateConfigGetParams = ajv.compile(ConfigGetParamsSchema);
|
|
2412
|
-
const validateConfigSetParams = ajv.compile(ConfigSetParamsSchema);
|
|
2413
|
-
const validateConfigApplyParams = ajv.compile(ConfigApplyParamsSchema);
|
|
2414
|
-
const validateConfigPatchParams = ajv.compile(ConfigPatchParamsSchema);
|
|
2415
|
-
const validateConfigSchemaParams = ajv.compile(ConfigSchemaParamsSchema);
|
|
2416
|
-
const validateConfigSchemaLookupParams = ajv.compile(ConfigSchemaLookupParamsSchema);
|
|
2417
|
-
const validateConfigSchemaLookupResult = ajv.compile(ConfigSchemaLookupResultSchema);
|
|
2418
|
-
const validateWizardStartParams = ajv.compile(WizardStartParamsSchema);
|
|
2419
|
-
const validateWizardNextParams = ajv.compile(WizardNextParamsSchema);
|
|
2420
|
-
const validateWizardCancelParams = ajv.compile(WizardCancelParamsSchema);
|
|
2421
|
-
const validateWizardStatusParams = ajv.compile(WizardStatusParamsSchema);
|
|
2422
|
-
const validateTalkModeParams = ajv.compile(TalkModeParamsSchema);
|
|
2423
|
-
const validateTalkConfigParams = ajv.compile(TalkConfigParamsSchema);
|
|
2424
|
-
ajv.compile(TalkConfigResultSchema);
|
|
2425
|
-
const validateTalkRealtimeSessionParams = ajv.compile(TalkRealtimeSessionParamsSchema);
|
|
2426
|
-
ajv.compile(TalkRealtimeSessionResultSchema);
|
|
2427
|
-
const validateTalkSpeakParams = ajv.compile(TalkSpeakParamsSchema);
|
|
2428
|
-
ajv.compile(TalkSpeakResultSchema);
|
|
2429
|
-
const validateChannelsStatusParams = ajv.compile(ChannelsStatusParamsSchema);
|
|
2430
|
-
const validateChannelsStartParams = ajv.compile(ChannelsStartParamsSchema);
|
|
2431
|
-
const validateChannelsLogoutParams = ajv.compile(ChannelsLogoutParamsSchema);
|
|
2432
|
-
const validateModelsListParams = ajv.compile(ModelsListParamsSchema);
|
|
2433
|
-
const validateSkillsStatusParams = ajv.compile(SkillsStatusParamsSchema);
|
|
2434
|
-
const validateToolsCatalogParams = ajv.compile(ToolsCatalogParamsSchema);
|
|
2435
|
-
const validateMcpServersListParams = ajv.compile(McpServersListParamsSchema);
|
|
2436
|
-
const validateMcpServerSetParams = ajv.compile(McpServerSetParamsSchema);
|
|
2437
|
-
const validateMcpServerUnsetParams = ajv.compile(McpServerUnsetParamsSchema);
|
|
2438
|
-
const validateMcpServerMetadataParams = ajv.compile(McpServerMetadataParamsSchema);
|
|
2439
|
-
const validateMcpServerTestParams = ajv.compile(McpServerTestParamsSchema);
|
|
2440
|
-
const validateMcpOAuthStartParams = ajv.compile(McpOAuthStartParamsSchema);
|
|
2441
|
-
const validateMcpOAuthCallbackParams = ajv.compile(McpOAuthCallbackParamsSchema);
|
|
2442
|
-
const validateMcpOAuthStatusParams = ajv.compile(McpOAuthStatusParamsSchema);
|
|
2443
|
-
const validateMcpOAuthDisconnectParams = ajv.compile(McpOAuthDisconnectParamsSchema);
|
|
2444
|
-
const validateMcpOAuthRefreshParams = ajv.compile(McpOAuthRefreshParamsSchema);
|
|
2445
|
-
const validateToolsEffectiveParams = ajv.compile(ToolsEffectiveParamsSchema);
|
|
2446
|
-
const validateSkillsBinsParams = ajv.compile(SkillsBinsParamsSchema);
|
|
2447
|
-
const validateSkillsInstallParams = ajv.compile(SkillsInstallParamsSchema);
|
|
2448
|
-
const validateSkillsUpdateParams = ajv.compile(SkillsUpdateParamsSchema);
|
|
2449
|
-
const validateSkillsSearchParams = ajv.compile(SkillsSearchParamsSchema);
|
|
2450
|
-
const validateSkillsDetailParams = ajv.compile(SkillsDetailParamsSchema);
|
|
2451
|
-
const validateCronListParams = ajv.compile(CronListParamsSchema);
|
|
2452
|
-
const validateCronStatusParams = ajv.compile(CronStatusParamsSchema);
|
|
2453
|
-
const validateCronAddParams = ajv.compile(CronAddParamsSchema);
|
|
2454
|
-
const validateCronUpdateParams = ajv.compile(CronUpdateParamsSchema);
|
|
2455
|
-
const validateCronRemoveParams = ajv.compile(CronRemoveParamsSchema);
|
|
2456
|
-
const validateCronRunParams = ajv.compile(CronRunParamsSchema);
|
|
2457
|
-
const validateCronRunsParams = ajv.compile(CronRunsParamsSchema);
|
|
2458
|
-
const validateDevicePairListParams = ajv.compile(DevicePairListParamsSchema);
|
|
2459
|
-
const validateDevicePairApproveParams = ajv.compile(DevicePairApproveParamsSchema);
|
|
2460
|
-
const validateDevicePairRejectParams = ajv.compile(DevicePairRejectParamsSchema);
|
|
2461
|
-
const validateDevicePairRemoveParams = ajv.compile(DevicePairRemoveParamsSchema);
|
|
2462
|
-
const validateDeviceTokenRotateParams = ajv.compile(DeviceTokenRotateParamsSchema);
|
|
2463
|
-
const validateDeviceTokenRevokeParams = ajv.compile(DeviceTokenRevokeParamsSchema);
|
|
2464
|
-
const validateExecApprovalsGetParams = ajv.compile(ExecApprovalsGetParamsSchema);
|
|
2465
|
-
const validateExecApprovalsSetParams = ajv.compile(ExecApprovalsSetParamsSchema);
|
|
2466
|
-
const validateExecApprovalGetParams = ajv.compile(ExecApprovalGetParamsSchema);
|
|
2467
|
-
const validateExecApprovalRequestParams = ajv.compile(ExecApprovalRequestParamsSchema);
|
|
2468
|
-
const validateExecApprovalResolveParams = ajv.compile(ExecApprovalResolveParamsSchema);
|
|
2469
|
-
const validatePluginApprovalRequestParams = ajv.compile(PluginApprovalRequestParamsSchema);
|
|
2470
|
-
const validatePluginApprovalResolveParams = ajv.compile(PluginApprovalResolveParamsSchema);
|
|
2471
|
-
const validatePluginsStatusParams = ajv.compile(PluginsStatusParamsSchema);
|
|
2472
|
-
const validatePluginsSearchParams = ajv.compile(PluginsSearchParamsSchema);
|
|
2473
|
-
const validatePluginsDetailParams = ajv.compile(PluginsDetailParamsSchema);
|
|
2474
|
-
const validatePluginsInstallParams = ajv.compile(PluginsInstallParamsSchema);
|
|
2475
|
-
const validatePluginsUpdateParams = ajv.compile(PluginsUpdateParamsSchema);
|
|
2476
|
-
const validatePluginsUninstallParams = ajv.compile(PluginsUninstallParamsSchema);
|
|
2477
|
-
const validateExecApprovalsNodeGetParams = ajv.compile(ExecApprovalsNodeGetParamsSchema);
|
|
2478
|
-
const validateExecApprovalsNodeSetParams = ajv.compile(ExecApprovalsNodeSetParamsSchema);
|
|
2479
|
-
const validateLogsTailParams = ajv.compile(LogsTailParamsSchema);
|
|
2480
|
-
const validateChatHistoryParams = ajv.compile(ChatHistoryParamsSchema);
|
|
2481
|
-
const validateChatSendParams = ajv.compile(ChatSendParamsSchema);
|
|
2482
|
-
const validateChatAbortParams = ajv.compile(ChatAbortParamsSchema);
|
|
2483
|
-
const validateChatInjectParams = ajv.compile(ChatInjectParamsSchema);
|
|
2484
|
-
ajv.compile(ChatEventSchema);
|
|
2485
|
-
const validateUpdateRunParams = ajv.compile(UpdateRunParamsSchema);
|
|
2486
|
-
const validateWebLoginStartParams = ajv.compile(WebLoginStartParamsSchema);
|
|
2487
|
-
const validateWebLoginWaitParams = ajv.compile(WebLoginWaitParamsSchema);
|
|
2488
|
-
const validateWalletSummaryParams = ajv.compile(WalletSummaryParamsSchema);
|
|
2489
|
-
ajv.compile(WalletSummaryResultSchema);
|
|
2490
|
-
const validateWalletRecoveryPhraseSetParams = ajv.compile(WalletRecoveryPhraseSetParamsSchema);
|
|
2491
|
-
ajv.compile(WalletRecoveryPhraseSetResultSchema);
|
|
2492
|
-
function formatValidationErrors(errors) {
|
|
2493
|
-
if (!errors?.length) return "unknown validation error";
|
|
2494
|
-
const parts = [];
|
|
2495
|
-
for (const err of errors) {
|
|
2496
|
-
const keyword = typeof err?.keyword === "string" ? err.keyword : "";
|
|
2497
|
-
const instancePath = typeof err?.instancePath === "string" ? err.instancePath : "";
|
|
2498
|
-
if (keyword === "additionalProperties") {
|
|
2499
|
-
const additionalProperty = (err?.params)?.additionalProperty;
|
|
2500
|
-
if (typeof additionalProperty === "string" && additionalProperty.trim()) {
|
|
2501
|
-
const where = instancePath ? `at ${instancePath}` : "at root";
|
|
2502
|
-
parts.push(`${where}: unexpected property '${additionalProperty}'`);
|
|
2503
|
-
continue;
|
|
2504
|
-
}
|
|
2505
|
-
}
|
|
2506
|
-
const message = typeof err?.message === "string" && err.message.trim() ? err.message : "validation error";
|
|
2507
|
-
const where = instancePath ? `at ${instancePath}: ` : "";
|
|
2508
|
-
parts.push(`${where}${message}`);
|
|
2509
|
-
}
|
|
2510
|
-
const unique = Array.from(new Set(parts.filter((part) => part.trim())));
|
|
2511
|
-
if (!unique.length) return ajv.errorsText(errors, { separator: "; " }) || "unknown validation error";
|
|
2512
|
-
return unique.join("; ");
|
|
2513
|
-
}
|
|
2514
|
-
//#endregion
|
|
2515
|
-
export { validateExecApprovalsNodeGetParams as $, validateSessionsMessagesSubscribeParams as $t, validateConfigSetParams as A, errorShape as An, validatePluginApprovalResolveParams as At, validateCronStatusParams as B, validateResponseFrame as Bt, validateCommandsListParams as C, validateWebLoginStartParams as Cn, validateNodePairRequestParams as Ct, validateConfigSchemaLookupParams as D, validateWizardStartParams as Dn, validateNodePendingEnqueueParams as Dt, validateConfigPatchParams as E, validateWizardNextParams as En, validateNodePendingDrainParams as Et, validateCronAddParams as F, validatePluginsUninstallParams as Ft, validateDevicePairRemoveParams as G, validateSessionsCompactParams as Gt, validateDevicePairApproveParams as H, validateSecretsResolveResult as Ht, validateCronListParams as I, validatePluginsUpdateParams as It, validateEventFrame as J, validateSessionsCompactionListParams as Jt, validateDeviceTokenRevokeParams as K, validateSessionsCompactionBranchParams as Kt, validateCronRemoveParams as L, validatePollParams as Lt, validateContactsDeleteParams as M, parseSessionLabel as Mn, validatePluginsInstallParams as Mt, validateContactsListParams as N, validatePluginsSearchParams as Nt, validateConfigSchemaLookupResult as O, validateWizardStatusParams as On, validateNodeRenameParams as Ot, validateContactsSaveParams as P, validatePluginsStatusParams as Pt, validateExecApprovalsGetParams as Q, validateSessionsListParams as Qt, validateCronRunParams as R, validatePushTestParams as Rt, validateChatSendParams as S, validateWalletSummaryParams as Sn, validateNodePairRejectParams as St, validateConfigGetParams as T, validateWizardCancelParams as Tn, validateNodePendingAckParams as Tt, validateDevicePairListParams as U, validateSendParams as Ut, validateCronUpdateParams as V, validateSecretsResolveParams as Vt, validateDevicePairRejectParams as W, validateSessionsAbortParams as Wt, validateExecApprovalRequestParams as X, validateSessionsCreateParams as Xt, validateExecApprovalGetParams as Y, validateSessionsCompactionRestoreParams as Yt, validateExecApprovalResolveParams as Z, validateSessionsDeleteParams as Zt, validateChannelsStartParams as _, validateToolsCatalogParams as _n, validateNodeInvokeParams as _t, validateAgentsCreateParams as a, validateSessionsSendParams as an, validateMcpOAuthRefreshParams as at, validateChatHistoryParams as b, validateWakeParams as bn, validateNodePairApproveParams as bt, validateAgentsFilesListParams as c, validateSkillsDetailParams as cn, validateMcpServerMetadataParams as ct, validateAgentsMemoryGraphParams as d, validateSkillsStatusParams as dn, validateMcpServerUnsetParams as dt, validateSessionsMessagesUnsubscribeParams as en, validateExecApprovalsNodeSetParams as et, validateAgentsUpdateParams as f, validateSkillsUpdateParams as fn, validateMcpServersListParams as ft, validateChannelsLogoutParams as g, validateTalkSpeakParams as gn, validateNodeEventParams as gt, validateCanvasDocumentUpdateParams as h, validateTalkRealtimeSessionParams as hn, validateNodeDescribeParams as ht, validateAgentWaitParams as i, validateSessionsResolveParams as in, validateMcpOAuthDisconnectParams as it, validateConnectParams as j, COMMAND_DESCRIPTION_MAX_LENGTH as jn, validatePluginsDetailParams as jt, validateConfigSchemaParams as k, ErrorCodes as kn, validatePluginApprovalRequestParams as kt, validateAgentsFilesSetParams as l, validateSkillsInstallParams as ln, validateMcpServerSetParams as lt, validateCanvasDocumentListParams as m, validateTalkModeParams as mn, validateModelsListParams as mt, validateAgentIdentityParams as n, validateSessionsPreviewParams as nn, validateLogsTailParams as nt, validateAgentsDeleteParams as o, validateSessionsUsageParams as on, validateMcpOAuthStartParams as ot, validateCanvasDocumentCreateParams as p, validateTalkConfigParams as pn, validateMessageActionParams as pt, validateDeviceTokenRotateParams as q, validateSessionsCompactionGetParams as qt, validateAgentParams as r, validateSessionsResetParams as rn, validateMcpOAuthCallbackParams as rt, validateAgentsFilesGetParams as s, validateSkillsBinsParams as sn, validateMcpOAuthStatusParams as st, formatValidationErrors as t, validateSessionsPatchParams as tn, validateExecApprovalsSetParams as tt, validateAgentsListParams as u, validateSkillsSearchParams as un, validateMcpServerTestParams as ut, validateChannelsStatusParams as v, validateToolsEffectiveParams as vn, validateNodeInvokeResultParams as vt, validateConfigApplyParams as w, validateWebLoginWaitParams as wn, validateNodePairVerifyParams as wt, validateChatInjectParams as x, validateWalletRecoveryPhraseSetParams as xn, validateNodePairListParams as xt, validateChatAbortParams as y, validateUpdateRunParams as yn, validateNodeListParams as yt, validateCronRunsParams as z, validateRequestFrame as zt };
|