UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 11.8 kB
import{n as createLazyPromise}from"./lazy-promise-CismJCQR.mjs";import{s as listCoreGatewayHandlerMethodNames}from"./core-method-policy-DeU1xgVA.mjs";import{o as gatewayClientUploadPolicyError}from"./upload-policy-QDNTqb_K.mjs";import{t as createLazyCoreHandlers}from"./lazy-core-handlers-Ccc4Kycu.mjs"; //!src/gateway/server-methods/core-handlers.ts const CORE_GATEWAY_HANDLER_MODULES={agent:()=>import(`./agent-Q_xaDJgm.mjs`).then(e=>e.agentHandlers),"agent-identity":()=>import(`./agent-identity-D2GTz3Xi.mjs`).then(e=>e.agentIdentityHandlers),agents:()=>import(`./agents-BAEm-O1g.mjs`).then(e=>e.agentsHandlers),templates:()=>import(`./templates-DCgLCZ-E.mjs`).then(e=>e.templatesHandlers),"templates-drafts":()=>import(`./templates-drafts-B49LIfOn.mjs`).then(e=>e.templatesDraftsHandlers),"templates-add":()=>import(`./templates-add-D1KOsbK-.mjs`).then(e=>e.templatesAddHandlers),"agents-workspace":()=>import(`./agents-workspace-Bz7nJhlO.mjs`).then(e=>e.agentsWorkspaceHandlers),artifacts:()=>import(`./artifacts-CHvn9BEJ.mjs`).then(e=>e.artifactsHandlers),board:()=>import(`./board-BQIARQns.mjs`).then(e=>e.boardHandlers),audit:()=>import(`./audit-SrwVSyYD.mjs`).then(e=>e.auditHandlers),users:()=>import(`./users-ii3YCreu.mjs`).then(e=>e.usersHandlers),"users-mentionable":()=>import(`./users-mentionable-Da2zbQ_H.mjs`).then(e=>e.usersMentionableHandlers),attach:()=>import(`./attach-C7LzZhJ1.mjs`).then(e=>e.attachHandlers),channels:()=>import(`./channels-C7NKyUh6.mjs`).then(e=>e.channelsHandlers),"channel-pairing":()=>import(`./channel-pairing-CqXMr5Sv.mjs`).then(e=>e.channelPairingHandlers),chat:()=>import(`./chat-CmDHHwSK.mjs`).then(e=>e.chatHandlers),"chat-send":()=>import(`./chat-send-external-entry-CG8sVSGQ.mjs`).then(e=>({"chat.send":e.handleDirectExternalChatSend})),"chat-abort":()=>import(`./chat-abort-handler-DnktGONA.mjs`).then(e=>({"chat.abort":e.handleChatAbortRequest})),commands:()=>import(`./commands-B9vqoqTH.mjs`).then(e=>e.commandsHandlers),computer:()=>import(`./computer-BsZkofy-.mjs`).then(e=>e.computerHandlers),config:()=>import(`./config-BYTzOwJL.mjs`).then(e=>e.configHandlers),conversations:()=>import(`./conversations-C_mGTpHj.mjs`).then(e=>e.conversationHandlers),connect:()=>import(`./connect-p8vBML0K.mjs`).then(e=>e.connectHandlers),"control-ui":()=>import(`./control-ui-BRDgQFWp.mjs`).then(e=>e.controlUiHandlers),"plugins-control-ui":()=>import(`./plugins-control-ui-BOTE9am1.mjs`).then(e=>e.pluginsControlUiHandlers),cron:()=>import(`./cron-Dfzr6xXo.mjs`).then(e=>e.cronHandlers),devices:()=>import(`./devices-Ir98s-oK.mjs`).then(e=>e.deviceHandlers),"device-pair-code":()=>import(`./device-pair-code-CoKuVZcA.mjs`).then(e=>e.devicePairCodeHandlers),"device-pair-setup":()=>import(`./device-pair-setup-CsDnrXMe.mjs`).then(e=>e.devicePairSetupHandlers),diagnostics:()=>import(`./diagnostics-D7ey2V8x.mjs`).then(e=>e.diagnosticsHandlers),"debug-proxy":()=>import(`./debug-proxy-BuzUxWxd.mjs`).then(e=>e.debugProxyHandlers),doctor:()=>import(`./doctor-BDliu1Rp.mjs`).then(e=>e.createDoctorHandlers()),environments:()=>import(`./environments-DLQ1Hkmp.mjs`).then(e=>e.environmentsHandlers),worktrees:()=>import(`./worktrees-BPDf8Ntg.mjs`).then(e=>e.worktreesHandlers),"exec-approvals":()=>import(`./exec-approvals-D_JhuDN6.mjs`).then(e=>e.execApprovalsHandlers),fs:()=>import(`./fs-bScKiGou.mjs`).then(e=>e.fsHandlers),health:()=>import(`./health-BTOY_nlB.mjs`).then(e=>e.healthHandlers),logs:()=>import(`./logs-O6cCCh3n.mjs`).then(e=>e.logsHandlers),"memory-search":()=>import(`./memory-search-Dblqp-u9.mjs`).then(e=>e.memorySearchHandlers),mentions:()=>import(`./mentions-95F6krDE.mjs`).then(e=>e.mentionHandlers),terminal:()=>import(`./terminal-C2j2dwwH.mjs`).then(e=>e.terminalHandlers),"openclaw-id":()=>import(`./openclaw-id-BjGw_cKe.mjs`).then(e=>e.openclawIdHandlers),transcripts:()=>import(`./transcripts-bLMi8oZd.mjs`).then(e=>e.transcriptsHandlers),"ui-command":()=>import(`./ui-command-CwnAw8D4.mjs`).then(e=>e.uiCommandHandlers),themes:()=>import(`./themes-fBCZpEjx.mjs`).then(e=>e.themeHandlers),"models-auth-status":()=>import(`./models-auth-status-Dz_bIRTg.mjs`).then(e=>e.modelsAuthStatusHandlers),"models-auth-login":()=>import(`./models-auth-login-DVYGHDYz.mjs`).then(e=>e.modelsAuthLoginHandlers),"mcp-events":()=>import(`./mcp-events-CsPh6C6H.mjs`).then(e=>e.mcpEventsHandlers),"mcp-auth-login":()=>import(`./mcp-auth-login-BxDwXp0I.mjs`).then(e=>e.mcpAuthLoginHandlers),"mcp-auth-logout":()=>import(`./mcp-auth-logout-CpOTPR3b.mjs`).then(e=>e.mcpAuthLogoutHandlers),"models-auth-order":()=>import(`./models-auth-order-CG_CVvpV.mjs`).then(e=>e.modelsAuthOrderHandlers),models:()=>import(`./models-XWtpUsO4.mjs`).then(e=>e.modelsHandlers),"models-probe":()=>import(`./models-probe-C8x8_91Z.mjs`).then(e=>e.modelsProbeHandlers),"web-search":()=>import(`./web-search-Be-G5Brc.mjs`).then(e=>e.webSearchHandlers),"native-hook-relay":()=>import(`./native-hook-relay-CO_Gk5F3.mjs`).then(e=>e.nativeHookRelayHandlers),"nodes-pending":()=>import(`./nodes.pending-work-DQezDaVZ.mjs`).then(e=>e.nodePendingWorkHandlers),nodes:()=>import(`./nodes-CLOtibGo.mjs`).then(e=>e.nodeHandlers),"plugin-host-hooks":()=>import(`./plugin-host-hooks-DVAhySJm.mjs`).then(e=>e.pluginHostHookHandlers),plugins:()=>import(`./plugins-CGsz1A46.mjs`).then(e=>e.pluginsHandlers),"plugins-mutations":()=>import(`./plugins-mutations-BugYpFfv.mjs`).then(e=>e.pluginMutationHandlers),projects:()=>import(`./projects-BGLpXQfD.mjs`).then(e=>e.projectsHandlers),portals:()=>import(`./portals-BOsNdqPB.mjs`).then(e=>e.portalHandlers),"progress-card":()=>import(`./progress-card-D6aTVL5A.mjs`).then(e=>e.progressCardHandlers),migrations:()=>import(`./migrations-C3MBbZEy.mjs`).then(e=>e.migrationsHandlers),backup:()=>import(`./backup-Cuk8mNdD.mjs`).then(e=>e.backupHandlers),storage:()=>import(`./storage-Cy5irD6X.mjs`).then(e=>e.storageHandlers),push:()=>import(`./push-BgDZubda.mjs`).then(e=>e.pushHandlers),restart:()=>import(`./restart-CWqD4dQ_.mjs`).then(e=>e.restartHandlers),suspend:()=>import(`./suspend-DCTxF-xs.mjs`).then(e=>e.suspendHandlers),send:()=>import(`./send-BD1F7mO4.mjs`).then(e=>e.sendHandlers),"sessions-files":()=>import(`./sessions-files-Bj1KnV9E.mjs`).then(e=>e.sessionsFilesHandlers),"factory-github-proof":()=>import(`./factory-github-proof-B6yuNWrN.mjs`).then(e=>e.factoryGitHubProofHandlers),"sessions-github":()=>import(`./sessions-github-BFPLfJNy.mjs`).then(e=>e.sessionsGitHubHandlers),"sessions-diff":()=>import(`./sessions-diff-GUtdri6Z.mjs`).then(e=>e.sessionsDiffHandlers),"sessions-abort":()=>import(`./sessions-abort-CVmKvWS2.mjs`).then(e=>e.sessionAbortHandlers),"sessions-compact":()=>import(`./sessions-compact-BDON4Ozu.mjs`).then(e=>e.sessionCompactHandlers),"sessions-create":()=>import(`./sessions-create-DLSiIsey.mjs`).then(e=>e.sessionCreateHandlers),"sessions-title":()=>import(`./sessions-title-Ba0vXwWL.mjs`).then(e=>e.sessionTitleHandlers),"sessions-delete":()=>import(`./sessions-delete-DtNInFRm.mjs`).then(e=>e.sessionDeleteHandlers),"sessions-dispatch":()=>import(`./sessions-dispatch-CtuqNpXQ.mjs`).then(e=>e.sessionDispatchHandlers),"sessions-groups":()=>import(`./sessions-groups-zJfDBouf.mjs`).then(e=>e.sessionGroupHandlers),"sessions-goal":()=>import(`./sessions-goal-BPWXL0o6.mjs`).then(e=>e.sessionGoalHandlers),"sessions-provider-review":()=>import(`./sessions-provider-review-CJ1c7hbC.mjs`).then(e=>e.sessionProviderReviewHandlers),"sessions-messaging":()=>import(`./sessions-messaging-KuWe4yNc.mjs`).then(e=>e.sessionMessagingHandlers),"sessions-mutations":()=>import(`./sessions-mutations-Bdq023j-.mjs`).then(e=>e.sessionMutationHandlers),"session-processes":()=>import(`./session-processes-eMyPIEBO.mjs`).then(e=>e.sessionProcessHandlers),"sessions-read":()=>import(`./sessions-read-C0y6xgoh.mjs`).then(e=>e.sessionReadHandlers),"sessions-rewind":()=>import(`./sessions-rewind-S9aDsy80.mjs`).then(e=>e.sessionRewindHandlers),"sessions-sharing":()=>import(`./sessions-sharing-BnHas2Sq.mjs`).then(e=>e.sessionSharingHandlers),"sessions-subscriptions":()=>import(`./sessions-subscriptions-BIQm3qSC.mjs`).then(e=>e.sessionSubscriptionHandlers),"sessions-suggestions":()=>import(`./sessions-suggestions-H9-uFxfS.mjs`).then(e=>e.sessionSuggestionHandlers),"sessions-reactions":()=>import(`./sessions-reactions-CPRL8Zq5.mjs`).then(e=>e.sessionReactionHandlers),"session-catalog":()=>import(`./session-catalog-CowNcO51.mjs`).then(e=>e.sessionCatalogHandlers),"session-discussion":()=>import(`./session-discussion-Cpynq_iU.mjs`).then(e=>e.sessionDiscussionHandlers),"session-activity-summary":()=>import(`./session-activity-summary-DyeMrRHM.mjs`).then(e=>e.sessionActivitySummaryHandlers),"session-observer-rpc":()=>import(`./session-observer-rpc-C0YKljok.mjs`).then(e=>e.sessionObserverHandlers),"session-companion-rpc":()=>import(`./session-companion-rpc-CUba45OC.mjs`).then(e=>e.sessionCompanionHandlers),"hooks-status":()=>import(`./hooks-status-C7Ai7YH-.mjs`).then(e=>e.hooksStatusHandlers),skills:()=>import(`./skills-Bhy8z-g_.mjs`).then(e=>e.skillsHandlers),system:()=>import(`./system-DOEnKba7.mjs`).then(e=>e.systemHandlers),presence:()=>import(`./presence-BdjJ3-22.mjs`).then(e=>e.presenceHandlers),talk:()=>import(`./handlers-faNxpMnv.mjs`).then(e=>e.talkHandlers),"talk-mode":()=>import(`./mode-DajW85P6.mjs`).then(e=>e.talkModeHandlers),"task-suggestions":()=>import(`./task-suggestions-DjQpiOXk.mjs`).then(e=>e.taskSuggestionsHandlers),"tool-usage":()=>import(`./tool-usage-yyi_lxev.mjs`).then(e=>e.toolUsageHandlers),"tools-catalog":()=>import(`./tools-catalog-C0-WmNg2.mjs`).then(e=>e.toolsCatalogHandlers),"tools-github":()=>import(`./tools-github-DDofAxaa.mjs`).then(e=>e.toolsGitHubHandlers),"tools-effective":()=>import(`./tools-effective-CyjSi8kX.mjs`).then(e=>e.toolsEffectiveHandlers),"tools-invoke":()=>import(`./tools-invoke-zZddXA5a.mjs`).then(e=>e.toolsInvokeHandlers),"mcp-app":()=>import(`./mcp-app-BA_WPPjS.mjs`).then(e=>e.mcpAppHandlers),"mcp-app-onboarding":()=>import(`./mcp-app-onboarding-BdzNWxe6.mjs`).then(e=>e.mcpAppOnboardingHandlers),"mcp-app-extensions":()=>import(`./mcp-app-extensions-trxiB8VQ.mjs`).then(e=>e.mcpAppExtensionHandlers),canvas:()=>import(`./canvas-DPVmRiyY.mjs`).then(e=>e.canvasHandlers),tts:()=>import(`./tts-DmOx7kSi.mjs`).then(e=>e.ttsHandlers),update:()=>import(`./update-DGjSi42d.mjs`).then(e=>e.updateHandlers),"update-handoff-sentinel":()=>import(`./update-handoff-sentinel-CHgSFFmL.mjs`).then(e=>e.updateHandoffSentinelHandlers),usage:()=>import(`./usage-D7TQDsIg.mjs`).then(e=>e.usageHandlers),"voicewake-routing":()=>import(`./voicewake-routing-jTAEsZoY.mjs`).then(e=>e.voicewakeRoutingHandlers),voicewake:()=>import(`./voicewake-CjWYtmK-.mjs`).then(e=>e.voicewakeHandlers),web:()=>import(`./web-DbYV2ldp.mjs`).then(e=>e.webHandlers),"system-agent":()=>import(`./system-agent-CbSMHlpT.mjs`).then(e=>e.systemAgentHandlers),"system-agent-approvals":()=>import(`./system-agent-approvals-BVJasN-3.mjs`).then(e=>e.systemAgentApprovalHandlers),"system-changes":()=>import(`./system-changes-BSMwz7uP.mjs`).then(e=>e.systemChangesHandlers),wizard:()=>import(`./wizard-CG-yL6YS.mjs`).then(e=>e.wizardHandlers)};const coreGatewayHandlers=Object.fromEntries(Array.from(listCoreGatewayHandlerMethodNames()).flatMap(([e,t])=>Object.entries(createLazyCoreHandlers({methods:t,loadHandlers:createLazyPromise(CORE_GATEWAY_HANDLER_MODULES[e],{cacheRejections:true})}))));function gatewayRouterUploadPolicyError(e,t){switch(e.method){case`agent`:case`chat.send`:case`sessions.send`:case`sessions.steer`:case`sessions.create`:case`send`:case`message.action`:if(t.getHandler(e.method)===coreGatewayHandlers[e.method])return null}return gatewayClientUploadPolicyError(e)}export{gatewayRouterUploadPolicyError as n,coreGatewayHandlers as t};