@downcity/plugins 1.0.4
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/bin/BuiltinPlugins.d.ts +23 -0
- package/bin/BuiltinPlugins.d.ts.map +1 -0
- package/bin/BuiltinPlugins.js +42 -0
- package/bin/BuiltinPlugins.js.map +1 -0
- package/bin/asr/Config.d.ts +43 -0
- package/bin/asr/Config.d.ts.map +1 -0
- package/bin/asr/Config.js +107 -0
- package/bin/asr/Config.js.map +1 -0
- package/bin/asr/Dependency.d.ts +77 -0
- package/bin/asr/Dependency.d.ts.map +1 -0
- package/bin/asr/Dependency.js +238 -0
- package/bin/asr/Dependency.js.map +1 -0
- package/bin/asr/InboundAugment.d.ts +17 -0
- package/bin/asr/InboundAugment.d.ts.map +1 -0
- package/bin/asr/InboundAugment.js +47 -0
- package/bin/asr/InboundAugment.js.map +1 -0
- package/bin/asr/ModelCatalog.d.ts +29 -0
- package/bin/asr/ModelCatalog.d.ts.map +1 -0
- package/bin/asr/ModelCatalog.js +25 -0
- package/bin/asr/ModelCatalog.js.map +1 -0
- package/bin/asr/Plugin.d.ts +18 -0
- package/bin/asr/Plugin.d.ts.map +1 -0
- package/bin/asr/Plugin.js +481 -0
- package/bin/asr/Plugin.js.map +1 -0
- package/bin/auth/Plugin.d.ts +18 -0
- package/bin/auth/Plugin.d.ts.map +1 -0
- package/bin/auth/Plugin.js +190 -0
- package/bin/auth/Plugin.js.map +1 -0
- package/bin/auth/runtime/AuthorizationConfig.d.ts +41 -0
- package/bin/auth/runtime/AuthorizationConfig.d.ts.map +1 -0
- package/bin/auth/runtime/AuthorizationConfig.js +185 -0
- package/bin/auth/runtime/AuthorizationConfig.js.map +1 -0
- package/bin/auth/runtime/AuthorizationPolicy.d.ts +28 -0
- package/bin/auth/runtime/AuthorizationPolicy.d.ts.map +1 -0
- package/bin/auth/runtime/AuthorizationPolicy.js +124 -0
- package/bin/auth/runtime/AuthorizationPolicy.js.map +1 -0
- package/bin/auth/runtime/AuthorizationStore.d.ts +29 -0
- package/bin/auth/runtime/AuthorizationStore.d.ts.map +1 -0
- package/bin/auth/runtime/AuthorizationStore.js +179 -0
- package/bin/auth/runtime/AuthorizationStore.js.map +1 -0
- package/bin/auth/types/AuthPlugin.d.ts +407 -0
- package/bin/auth/types/AuthPlugin.d.ts.map +1 -0
- package/bin/auth/types/AuthPlugin.js +115 -0
- package/bin/auth/types/AuthPlugin.js.map +1 -0
- package/bin/chat/Action.d.ts +125 -0
- package/bin/chat/Action.d.ts.map +1 -0
- package/bin/chat/Action.js +376 -0
- package/bin/chat/Action.js.map +1 -0
- package/bin/chat/ChatPlugin.d.ts +89 -0
- package/bin/chat/ChatPlugin.d.ts.map +1 -0
- package/bin/chat/ChatPlugin.js +208 -0
- package/bin/chat/ChatPlugin.js.map +1 -0
- package/bin/chat/ChatPluginTypes.d.ts +122 -0
- package/bin/chat/ChatPluginTypes.d.ts.map +1 -0
- package/bin/chat/ChatPluginTypes.js +10 -0
- package/bin/chat/ChatPluginTypes.js.map +1 -0
- package/bin/chat/Index.d.ts +9 -0
- package/bin/chat/Index.d.ts.map +1 -0
- package/bin/chat/Index.js +9 -0
- package/bin/chat/Index.js.map +1 -0
- package/bin/chat/PROMPT.direct.d.ts +7 -0
- package/bin/chat/PROMPT.direct.d.ts.map +1 -0
- package/bin/chat/PROMPT.direct.js +8 -0
- package/bin/chat/PROMPT.direct.js.map +1 -0
- package/bin/chat/accounts/ChannelAccountManager.d.ts +61 -0
- package/bin/chat/accounts/ChannelAccountManager.d.ts.map +1 -0
- package/bin/chat/accounts/ChannelAccountManager.js +264 -0
- package/bin/chat/accounts/ChannelAccountManager.js.map +1 -0
- package/bin/chat/accounts/Crypto.d.ts +20 -0
- package/bin/chat/accounts/Crypto.d.ts.map +1 -0
- package/bin/chat/accounts/Crypto.js +75 -0
- package/bin/chat/accounts/Crypto.js.map +1 -0
- package/bin/chat/accounts/Store.d.ts +38 -0
- package/bin/chat/accounts/Store.d.ts.map +1 -0
- package/bin/chat/accounts/Store.js +220 -0
- package/bin/chat/accounts/Store.js.map +1 -0
- package/bin/chat/channels/BaseChatChannel.d.ts +201 -0
- package/bin/chat/channels/BaseChatChannel.d.ts.map +1 -0
- package/bin/chat/channels/BaseChatChannel.js +294 -0
- package/bin/chat/channels/BaseChatChannel.js.map +1 -0
- package/bin/chat/channels/BaseChatChannelQueue.d.ts +73 -0
- package/bin/chat/channels/BaseChatChannelQueue.d.ts.map +1 -0
- package/bin/chat/channels/BaseChatChannelQueue.js +237 -0
- package/bin/chat/channels/BaseChatChannelQueue.js.map +1 -0
- package/bin/chat/channels/BaseChatChannelSupport.d.ts +189 -0
- package/bin/chat/channels/BaseChatChannelSupport.d.ts.map +1 -0
- package/bin/chat/channels/BaseChatChannelSupport.js +141 -0
- package/bin/chat/channels/BaseChatChannelSupport.js.map +1 -0
- package/bin/chat/channels/BotInfoProvider.d.ts +18 -0
- package/bin/chat/channels/BotInfoProvider.d.ts.map +1 -0
- package/bin/chat/channels/BotInfoProvider.js +32 -0
- package/bin/chat/channels/BotInfoProvider.js.map +1 -0
- package/bin/chat/channels/Configuration.d.ts +27 -0
- package/bin/chat/channels/Configuration.d.ts.map +1 -0
- package/bin/chat/channels/Configuration.js +19 -0
- package/bin/chat/channels/Configuration.js.map +1 -0
- package/bin/chat/channels/ConfigurationRegistry.d.ts +18 -0
- package/bin/chat/channels/ConfigurationRegistry.d.ts.map +1 -0
- package/bin/chat/channels/ConfigurationRegistry.js +31 -0
- package/bin/chat/channels/ConfigurationRegistry.js.map +1 -0
- package/bin/chat/channels/feishu/BotInfo.d.ts +20 -0
- package/bin/chat/channels/feishu/BotInfo.d.ts.map +1 -0
- package/bin/chat/channels/feishu/BotInfo.js +147 -0
- package/bin/chat/channels/feishu/BotInfo.js.map +1 -0
- package/bin/chat/channels/feishu/Configuration.d.ts +17 -0
- package/bin/chat/channels/feishu/Configuration.d.ts.map +1 -0
- package/bin/chat/channels/feishu/Configuration.js +59 -0
- package/bin/chat/channels/feishu/Configuration.js.map +1 -0
- package/bin/chat/channels/feishu/Feishu.d.ts +116 -0
- package/bin/chat/channels/feishu/Feishu.d.ts.map +1 -0
- package/bin/chat/channels/feishu/Feishu.js +326 -0
- package/bin/chat/channels/feishu/Feishu.js.map +1 -0
- package/bin/chat/channels/feishu/FeishuInbound.d.ts +21 -0
- package/bin/chat/channels/feishu/FeishuInbound.d.ts.map +1 -0
- package/bin/chat/channels/feishu/FeishuInbound.js +43 -0
- package/bin/chat/channels/feishu/FeishuInbound.js.map +1 -0
- package/bin/chat/channels/feishu/FeishuMessageHandler.d.ts +155 -0
- package/bin/chat/channels/feishu/FeishuMessageHandler.d.ts.map +1 -0
- package/bin/chat/channels/feishu/FeishuMessageHandler.js +247 -0
- package/bin/chat/channels/feishu/FeishuMessageHandler.js.map +1 -0
- package/bin/chat/channels/feishu/FeishuPlatformClient.d.ts +130 -0
- package/bin/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -0
- package/bin/chat/channels/feishu/FeishuPlatformClient.js +316 -0
- package/bin/chat/channels/feishu/FeishuPlatformClient.js.map +1 -0
- package/bin/chat/channels/feishu/FeishuPlatformLookup.d.ts +102 -0
- package/bin/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -0
- package/bin/chat/channels/feishu/FeishuPlatformLookup.js +299 -0
- package/bin/chat/channels/feishu/FeishuPlatformLookup.js.map +1 -0
- package/bin/chat/channels/feishu/FeishuPlatformMessaging.d.ts +49 -0
- package/bin/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +1 -0
- package/bin/chat/channels/feishu/FeishuPlatformMessaging.js +139 -0
- package/bin/chat/channels/feishu/FeishuPlatformMessaging.js.map +1 -0
- package/bin/chat/channels/feishu/InboundAttachment.d.ts +31 -0
- package/bin/chat/channels/feishu/InboundAttachment.d.ts.map +1 -0
- package/bin/chat/channels/feishu/InboundAttachment.js +222 -0
- package/bin/chat/channels/feishu/InboundAttachment.js.map +1 -0
- package/bin/chat/channels/feishu/PROMPT.direct.d.ts +7 -0
- package/bin/chat/channels/feishu/PROMPT.direct.d.ts.map +1 -0
- package/bin/chat/channels/feishu/PROMPT.direct.js +8 -0
- package/bin/chat/channels/feishu/PROMPT.direct.js.map +1 -0
- package/bin/chat/channels/feishu/PostMessage.d.ts +48 -0
- package/bin/chat/channels/feishu/PostMessage.d.ts.map +1 -0
- package/bin/chat/channels/feishu/PostMessage.js +413 -0
- package/bin/chat/channels/feishu/PostMessage.js.map +1 -0
- package/bin/chat/channels/feishu/ReplyContext.d.ts +18 -0
- package/bin/chat/channels/feishu/ReplyContext.d.ts.map +1 -0
- package/bin/chat/channels/feishu/ReplyContext.js +56 -0
- package/bin/chat/channels/feishu/ReplyContext.js.map +1 -0
- package/bin/chat/channels/feishu/Shared.d.ts +21 -0
- package/bin/chat/channels/feishu/Shared.d.ts.map +1 -0
- package/bin/chat/channels/feishu/Shared.js +69 -0
- package/bin/chat/channels/feishu/Shared.js.map +1 -0
- package/bin/chat/channels/feishu/types/FeishuChannel.d.ts +127 -0
- package/bin/chat/channels/feishu/types/FeishuChannel.d.ts.map +1 -0
- package/bin/chat/channels/feishu/types/FeishuChannel.js +9 -0
- package/bin/chat/channels/feishu/types/FeishuChannel.js.map +1 -0
- package/bin/chat/channels/qq/BotInfo.d.ts +19 -0
- package/bin/chat/channels/qq/BotInfo.d.ts.map +1 -0
- package/bin/chat/channels/qq/BotInfo.js +112 -0
- package/bin/chat/channels/qq/BotInfo.js.map +1 -0
- package/bin/chat/channels/qq/Configuration.d.ts +17 -0
- package/bin/chat/channels/qq/Configuration.d.ts.map +1 -0
- package/bin/chat/channels/qq/Configuration.js +59 -0
- package/bin/chat/channels/qq/Configuration.js.map +1 -0
- package/bin/chat/channels/qq/PROMPT.direct.d.ts +7 -0
- package/bin/chat/channels/qq/PROMPT.direct.d.ts.map +1 -0
- package/bin/chat/channels/qq/PROMPT.direct.js +8 -0
- package/bin/chat/channels/qq/PROMPT.direct.js.map +1 -0
- package/bin/chat/channels/qq/QQ.d.ts +92 -0
- package/bin/chat/channels/qq/QQ.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQ.js +287 -0
- package/bin/chat/channels/qq/QQ.js.map +1 -0
- package/bin/chat/channels/qq/QQEventCapture.d.ts +22 -0
- package/bin/chat/channels/qq/QQEventCapture.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQEventCapture.js +67 -0
- package/bin/chat/channels/qq/QQEventCapture.js.map +1 -0
- package/bin/chat/channels/qq/QQGatewayAuth.d.ts +119 -0
- package/bin/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQGatewayAuth.js +186 -0
- package/bin/chat/channels/qq/QQGatewayAuth.js.map +1 -0
- package/bin/chat/channels/qq/QQGatewayClient.d.ts +155 -0
- package/bin/chat/channels/qq/QQGatewayClient.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQGatewayClient.js +381 -0
- package/bin/chat/channels/qq/QQGatewayClient.js.map +1 -0
- package/bin/chat/channels/qq/QQGatewayConnection.d.ts +65 -0
- package/bin/chat/channels/qq/QQGatewayConnection.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQGatewayConnection.js +110 -0
- package/bin/chat/channels/qq/QQGatewayConnection.js.map +1 -0
- package/bin/chat/channels/qq/QQGatewayHeartbeat.d.ts +59 -0
- package/bin/chat/channels/qq/QQGatewayHeartbeat.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQGatewayHeartbeat.js +58 -0
- package/bin/chat/channels/qq/QQGatewayHeartbeat.js.map +1 -0
- package/bin/chat/channels/qq/QQGatewayProtocol.d.ts +86 -0
- package/bin/chat/channels/qq/QQGatewayProtocol.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQGatewayProtocol.js +93 -0
- package/bin/chat/channels/qq/QQGatewayProtocol.js.map +1 -0
- package/bin/chat/channels/qq/QQGatewaySend.d.ts +84 -0
- package/bin/chat/channels/qq/QQGatewaySend.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQGatewaySend.js +120 -0
- package/bin/chat/channels/qq/QQGatewaySend.js.map +1 -0
- package/bin/chat/channels/qq/QQGatewaySupport.d.ts +39 -0
- package/bin/chat/channels/qq/QQGatewaySupport.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQGatewaySupport.js +137 -0
- package/bin/chat/channels/qq/QQGatewaySupport.js.map +1 -0
- package/bin/chat/channels/qq/QQInbound.d.ts +47 -0
- package/bin/chat/channels/qq/QQInbound.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQInbound.js +235 -0
- package/bin/chat/channels/qq/QQInbound.js.map +1 -0
- package/bin/chat/channels/qq/QQInboundDedupe.d.ts +48 -0
- package/bin/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQInboundDedupe.js +108 -0
- package/bin/chat/channels/qq/QQInboundDedupe.js.map +1 -0
- package/bin/chat/channels/qq/QQMessageHandler.d.ts +129 -0
- package/bin/chat/channels/qq/QQMessageHandler.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQMessageHandler.js +284 -0
- package/bin/chat/channels/qq/QQMessageHandler.js.map +1 -0
- package/bin/chat/channels/qq/QQSendSupport.d.ts +20 -0
- package/bin/chat/channels/qq/QQSendSupport.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQSendSupport.js +86 -0
- package/bin/chat/channels/qq/QQSendSupport.js.map +1 -0
- package/bin/chat/channels/qq/QQSupport.d.ts +102 -0
- package/bin/chat/channels/qq/QQSupport.d.ts.map +1 -0
- package/bin/chat/channels/qq/QQSupport.js +172 -0
- package/bin/chat/channels/qq/QQSupport.js.map +1 -0
- package/bin/chat/channels/qq/VoiceInput.d.ts +64 -0
- package/bin/chat/channels/qq/VoiceInput.d.ts.map +1 -0
- package/bin/chat/channels/qq/VoiceInput.js +299 -0
- package/bin/chat/channels/qq/VoiceInput.js.map +1 -0
- package/bin/chat/channels/qq/types/QqChannel.d.ts +485 -0
- package/bin/chat/channels/qq/types/QqChannel.d.ts.map +1 -0
- package/bin/chat/channels/qq/types/QqChannel.js +42 -0
- package/bin/chat/channels/qq/types/QqChannel.js.map +1 -0
- package/bin/chat/channels/qq/types/QqGatewaySupport.d.ts +82 -0
- package/bin/chat/channels/qq/types/QqGatewaySupport.d.ts.map +1 -0
- package/bin/chat/channels/qq/types/QqGatewaySupport.js +9 -0
- package/bin/chat/channels/qq/types/QqGatewaySupport.js.map +1 -0
- package/bin/chat/channels/telegram/ApiClient.d.ts +99 -0
- package/bin/chat/channels/telegram/ApiClient.d.ts.map +1 -0
- package/bin/chat/channels/telegram/ApiClient.js +306 -0
- package/bin/chat/channels/telegram/ApiClient.js.map +1 -0
- package/bin/chat/channels/telegram/Bot.d.ts +97 -0
- package/bin/chat/channels/telegram/Bot.d.ts.map +1 -0
- package/bin/chat/channels/telegram/Bot.js +246 -0
- package/bin/chat/channels/telegram/Bot.js.map +1 -0
- package/bin/chat/channels/telegram/BotInfo.d.ts +19 -0
- package/bin/chat/channels/telegram/BotInfo.d.ts.map +1 -0
- package/bin/chat/channels/telegram/BotInfo.js +71 -0
- package/bin/chat/channels/telegram/BotInfo.js.map +1 -0
- package/bin/chat/channels/telegram/Configuration.d.ts +17 -0
- package/bin/chat/channels/telegram/Configuration.d.ts.map +1 -0
- package/bin/chat/channels/telegram/Configuration.js +59 -0
- package/bin/chat/channels/telegram/Configuration.js.map +1 -0
- package/bin/chat/channels/telegram/Handlers.d.ts +42 -0
- package/bin/chat/channels/telegram/Handlers.d.ts.map +1 -0
- package/bin/chat/channels/telegram/Handlers.js +45 -0
- package/bin/chat/channels/telegram/Handlers.js.map +1 -0
- package/bin/chat/channels/telegram/PROMPT.direct.d.ts +7 -0
- package/bin/chat/channels/telegram/PROMPT.direct.d.ts.map +1 -0
- package/bin/chat/channels/telegram/PROMPT.direct.js +8 -0
- package/bin/chat/channels/telegram/PROMPT.direct.js.map +1 -0
- package/bin/chat/channels/telegram/ReplyContext.d.ts +14 -0
- package/bin/chat/channels/telegram/ReplyContext.d.ts.map +1 -0
- package/bin/chat/channels/telegram/ReplyContext.js +57 -0
- package/bin/chat/channels/telegram/ReplyContext.js.map +1 -0
- package/bin/chat/channels/telegram/Shared.d.ts +221 -0
- package/bin/chat/channels/telegram/Shared.d.ts.map +1 -0
- package/bin/chat/channels/telegram/Shared.js +171 -0
- package/bin/chat/channels/telegram/Shared.js.map +1 -0
- package/bin/chat/channels/telegram/StateStore.d.ts +27 -0
- package/bin/chat/channels/telegram/StateStore.d.ts.map +1 -0
- package/bin/chat/channels/telegram/StateStore.js +53 -0
- package/bin/chat/channels/telegram/StateStore.js.map +1 -0
- package/bin/chat/channels/telegram/TelegramInbound.d.ts +46 -0
- package/bin/chat/channels/telegram/TelegramInbound.d.ts.map +1 -0
- package/bin/chat/channels/telegram/TelegramInbound.js +148 -0
- package/bin/chat/channels/telegram/TelegramInbound.js.map +1 -0
- package/bin/chat/channels/telegram/TelegramMessageHandler.d.ts +142 -0
- package/bin/chat/channels/telegram/TelegramMessageHandler.d.ts.map +1 -0
- package/bin/chat/channels/telegram/TelegramMessageHandler.js +267 -0
- package/bin/chat/channels/telegram/TelegramMessageHandler.js.map +1 -0
- package/bin/chat/channels/telegram/TelegramPendingUpdates.d.ts +55 -0
- package/bin/chat/channels/telegram/TelegramPendingUpdates.d.ts.map +1 -0
- package/bin/chat/channels/telegram/TelegramPendingUpdates.js +125 -0
- package/bin/chat/channels/telegram/TelegramPendingUpdates.js.map +1 -0
- package/bin/chat/channels/telegram/TelegramPlatformClient.d.ts +161 -0
- package/bin/chat/channels/telegram/TelegramPlatformClient.d.ts.map +1 -0
- package/bin/chat/channels/telegram/TelegramPlatformClient.js +366 -0
- package/bin/chat/channels/telegram/TelegramPlatformClient.js.map +1 -0
- package/bin/chat/runtime/ChannelContextStore.d.ts +78 -0
- package/bin/chat/runtime/ChannelContextStore.d.ts.map +1 -0
- package/bin/chat/runtime/ChannelContextStore.js +336 -0
- package/bin/chat/runtime/ChannelContextStore.js.map +1 -0
- package/bin/chat/runtime/ChatActionExecution.d.ts +145 -0
- package/bin/chat/runtime/ChatActionExecution.d.ts.map +1 -0
- package/bin/chat/runtime/ChatActionExecution.js +287 -0
- package/bin/chat/runtime/ChatActionExecution.js.map +1 -0
- package/bin/chat/runtime/ChatActionInput.d.ts +22 -0
- package/bin/chat/runtime/ChatActionInput.d.ts.map +1 -0
- package/bin/chat/runtime/ChatActionInput.js +114 -0
- package/bin/chat/runtime/ChatActionInput.js.map +1 -0
- package/bin/chat/runtime/ChatActionInputSupport.d.ts +33 -0
- package/bin/chat/runtime/ChatActionInputSupport.d.ts.map +1 -0
- package/bin/chat/runtime/ChatActionInputSupport.js +66 -0
- package/bin/chat/runtime/ChatActionInputSupport.js.map +1 -0
- package/bin/chat/runtime/ChatChannelActions.d.ts +122 -0
- package/bin/chat/runtime/ChatChannelActions.d.ts.map +1 -0
- package/bin/chat/runtime/ChatChannelActions.js +231 -0
- package/bin/chat/runtime/ChatChannelActions.js.map +1 -0
- package/bin/chat/runtime/ChatChannelConfig.d.ts +61 -0
- package/bin/chat/runtime/ChatChannelConfig.d.ts.map +1 -0
- package/bin/chat/runtime/ChatChannelConfig.js +260 -0
- package/bin/chat/runtime/ChatChannelConfig.js.map +1 -0
- package/bin/chat/runtime/ChatChannelCore.d.ts +49 -0
- package/bin/chat/runtime/ChatChannelCore.d.ts.map +1 -0
- package/bin/chat/runtime/ChatChannelCore.js +109 -0
- package/bin/chat/runtime/ChatChannelCore.js.map +1 -0
- package/bin/chat/runtime/ChatChannelFacade.d.ts +12 -0
- package/bin/chat/runtime/ChatChannelFacade.d.ts.map +1 -0
- package/bin/chat/runtime/ChatChannelFacade.js +12 -0
- package/bin/chat/runtime/ChatChannelFacade.js.map +1 -0
- package/bin/chat/runtime/ChatChannelLifecycle.d.ts +28 -0
- package/bin/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -0
- package/bin/chat/runtime/ChatChannelLifecycle.js +132 -0
- package/bin/chat/runtime/ChatChannelLifecycle.js.map +1 -0
- package/bin/chat/runtime/ChatHistoryStore.d.ts +72 -0
- package/bin/chat/runtime/ChatHistoryStore.d.ts.map +1 -0
- package/bin/chat/runtime/ChatHistoryStore.js +219 -0
- package/bin/chat/runtime/ChatHistoryStore.js.map +1 -0
- package/bin/chat/runtime/ChatIngressStore.d.ts +44 -0
- package/bin/chat/runtime/ChatIngressStore.d.ts.map +1 -0
- package/bin/chat/runtime/ChatIngressStore.js +51 -0
- package/bin/chat/runtime/ChatIngressStore.js.map +1 -0
- package/bin/chat/runtime/ChatMetaStore.d.ts +68 -0
- package/bin/chat/runtime/ChatMetaStore.d.ts.map +1 -0
- package/bin/chat/runtime/ChatMetaStore.js +143 -0
- package/bin/chat/runtime/ChatMetaStore.js.map +1 -0
- package/bin/chat/runtime/ChatPluginActionRegistry.d.ts +17 -0
- package/bin/chat/runtime/ChatPluginActionRegistry.d.ts.map +1 -0
- package/bin/chat/runtime/ChatPluginActionRegistry.js +304 -0
- package/bin/chat/runtime/ChatPluginActionRegistry.js.map +1 -0
- package/bin/chat/runtime/ChatPluginActions.d.ts +5 -0
- package/bin/chat/runtime/ChatPluginActions.d.ts.map +1 -0
- package/bin/chat/runtime/ChatPluginActions.js +5 -0
- package/bin/chat/runtime/ChatPluginActions.js.map +1 -0
- package/bin/chat/runtime/ChatPluginSystem.d.ts +22 -0
- package/bin/chat/runtime/ChatPluginSystem.d.ts.map +1 -0
- package/bin/chat/runtime/ChatPluginSystem.js +44 -0
- package/bin/chat/runtime/ChatPluginSystem.js.map +1 -0
- package/bin/chat/runtime/ChatPromptAssets.d.ts +24 -0
- package/bin/chat/runtime/ChatPromptAssets.d.ts.map +1 -0
- package/bin/chat/runtime/ChatPromptAssets.js +28 -0
- package/bin/chat/runtime/ChatPromptAssets.js.map +1 -0
- package/bin/chat/runtime/ChatQueue.d.ts +40 -0
- package/bin/chat/runtime/ChatQueue.d.ts.map +1 -0
- package/bin/chat/runtime/ChatQueue.js +52 -0
- package/bin/chat/runtime/ChatQueue.js.map +1 -0
- package/bin/chat/runtime/ChatQueueReplyDispatch.d.ts +31 -0
- package/bin/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -0
- package/bin/chat/runtime/ChatQueueReplyDispatch.js +168 -0
- package/bin/chat/runtime/ChatQueueReplyDispatch.js.map +1 -0
- package/bin/chat/runtime/ChatQueueStore.d.ts +85 -0
- package/bin/chat/runtime/ChatQueueStore.d.ts.map +1 -0
- package/bin/chat/runtime/ChatQueueStore.js +130 -0
- package/bin/chat/runtime/ChatQueueStore.js.map +1 -0
- package/bin/chat/runtime/ChatQueueWorker.d.ts +83 -0
- package/bin/chat/runtime/ChatQueueWorker.d.ts.map +1 -0
- package/bin/chat/runtime/ChatQueueWorker.js +406 -0
- package/bin/chat/runtime/ChatQueueWorker.js.map +1 -0
- package/bin/chat/runtime/ChatQueueWorkerSupport.d.ts +36 -0
- package/bin/chat/runtime/ChatQueueWorkerSupport.d.ts.map +1 -0
- package/bin/chat/runtime/ChatQueueWorkerSupport.js +101 -0
- package/bin/chat/runtime/ChatQueueWorkerSupport.js.map +1 -0
- package/bin/chat/runtime/ChatSendActionInput.d.ts +23 -0
- package/bin/chat/runtime/ChatSendActionInput.d.ts.map +1 -0
- package/bin/chat/runtime/ChatSendActionInput.js +205 -0
- package/bin/chat/runtime/ChatSendActionInput.js.map +1 -0
- package/bin/chat/runtime/ChatSendMetadata.d.ts +20 -0
- package/bin/chat/runtime/ChatSendMetadata.d.ts.map +1 -0
- package/bin/chat/runtime/ChatSendMetadata.js +130 -0
- package/bin/chat/runtime/ChatSendMetadata.js.map +1 -0
- package/bin/chat/runtime/ChatSendRegistry.d.ts +27 -0
- package/bin/chat/runtime/ChatSendRegistry.d.ts.map +1 -0
- package/bin/chat/runtime/ChatSendRegistry.js +26 -0
- package/bin/chat/runtime/ChatSendRegistry.js.map +1 -0
- package/bin/chat/runtime/ChatSession.d.ts +97 -0
- package/bin/chat/runtime/ChatSession.d.ts.map +1 -0
- package/bin/chat/runtime/ChatSession.js +84 -0
- package/bin/chat/runtime/ChatSession.js.map +1 -0
- package/bin/chat/runtime/ChatSessionContextComposer.d.ts +45 -0
- package/bin/chat/runtime/ChatSessionContextComposer.d.ts.map +1 -0
- package/bin/chat/runtime/ChatSessionContextComposer.js +60 -0
- package/bin/chat/runtime/ChatSessionContextComposer.js.map +1 -0
- package/bin/chat/runtime/ChatSessionDelete.d.ts +29 -0
- package/bin/chat/runtime/ChatSessionDelete.d.ts.map +1 -0
- package/bin/chat/runtime/ChatSessionDelete.js +76 -0
- package/bin/chat/runtime/ChatSessionDelete.js.map +1 -0
- package/bin/chat/runtime/ChatSessionTypes.d.ts +30 -0
- package/bin/chat/runtime/ChatSessionTypes.d.ts.map +1 -0
- package/bin/chat/runtime/ChatSessionTypes.js +9 -0
- package/bin/chat/runtime/ChatSessionTypes.js.map +1 -0
- package/bin/chat/runtime/ChatkeySend.d.ts +67 -0
- package/bin/chat/runtime/ChatkeySend.d.ts.map +1 -0
- package/bin/chat/runtime/ChatkeySend.js +147 -0
- package/bin/chat/runtime/ChatkeySend.js.map +1 -0
- package/bin/chat/runtime/DirectDispatchParser.d.ts +22 -0
- package/bin/chat/runtime/DirectDispatchParser.d.ts.map +1 -0
- package/bin/chat/runtime/DirectDispatchParser.js +133 -0
- package/bin/chat/runtime/DirectDispatchParser.js.map +1 -0
- package/bin/chat/runtime/EnqueueDispatch.d.ts +24 -0
- package/bin/chat/runtime/EnqueueDispatch.d.ts.map +1 -0
- package/bin/chat/runtime/EnqueueDispatch.js +28 -0
- package/bin/chat/runtime/EnqueueDispatch.js.map +1 -0
- package/bin/chat/runtime/InboundAugment.d.ts +21 -0
- package/bin/chat/runtime/InboundAugment.d.ts.map +1 -0
- package/bin/chat/runtime/InboundAugment.js +50 -0
- package/bin/chat/runtime/InboundAugment.js.map +1 -0
- package/bin/chat/runtime/PluginDispatch.d.ts +43 -0
- package/bin/chat/runtime/PluginDispatch.d.ts.map +1 -0
- package/bin/chat/runtime/PluginDispatch.js +57 -0
- package/bin/chat/runtime/PluginDispatch.js.map +1 -0
- package/bin/chat/runtime/PluginPoints.d.ts +78 -0
- package/bin/chat/runtime/PluginPoints.d.ts.map +1 -0
- package/bin/chat/runtime/PluginPoints.js +78 -0
- package/bin/chat/runtime/PluginPoints.js.map +1 -0
- package/bin/chat/runtime/QueuedUserMessage.d.ts +20 -0
- package/bin/chat/runtime/QueuedUserMessage.d.ts.map +1 -0
- package/bin/chat/runtime/QueuedUserMessage.js +40 -0
- package/bin/chat/runtime/QueuedUserMessage.js.map +1 -0
- package/bin/chat/runtime/ReplyContextFormatter.d.ts +29 -0
- package/bin/chat/runtime/ReplyContextFormatter.d.ts.map +1 -0
- package/bin/chat/runtime/ReplyContextFormatter.js +74 -0
- package/bin/chat/runtime/ReplyContextFormatter.js.map +1 -0
- package/bin/chat/runtime/ReplyDispatch.d.ts +36 -0
- package/bin/chat/runtime/ReplyDispatch.d.ts.map +1 -0
- package/bin/chat/runtime/ReplyDispatch.js +51 -0
- package/bin/chat/runtime/ReplyDispatch.js.map +1 -0
- package/bin/chat/runtime/SystemPrompt.d.ts +26 -0
- package/bin/chat/runtime/SystemPrompt.d.ts.map +1 -0
- package/bin/chat/runtime/SystemPrompt.js +70 -0
- package/bin/chat/runtime/SystemPrompt.js.map +1 -0
- package/bin/chat/types/BotInfo.d.ts +97 -0
- package/bin/chat/types/BotInfo.d.ts.map +1 -0
- package/bin/chat/types/BotInfo.js +9 -0
- package/bin/chat/types/BotInfo.js.map +1 -0
- package/bin/chat/types/ChannelAccount.d.ts +226 -0
- package/bin/chat/types/ChannelAccount.d.ts.map +1 -0
- package/bin/chat/types/ChannelAccount.js +9 -0
- package/bin/chat/types/ChannelAccount.js.map +1 -0
- package/bin/chat/types/ChannelConfiguration.d.ts +146 -0
- package/bin/chat/types/ChannelConfiguration.d.ts.map +1 -0
- package/bin/chat/types/ChannelConfiguration.js +9 -0
- package/bin/chat/types/ChannelConfiguration.js.map +1 -0
- package/bin/chat/types/ChannelContext.d.ts +107 -0
- package/bin/chat/types/ChannelContext.d.ts.map +1 -0
- package/bin/chat/types/ChannelContext.js +9 -0
- package/bin/chat/types/ChannelContext.js.map +1 -0
- package/bin/chat/types/ChannelStatus.d.ts +88 -0
- package/bin/chat/types/ChannelStatus.d.ts.map +1 -0
- package/bin/chat/types/ChannelStatus.js +9 -0
- package/bin/chat/types/ChannelStatus.js.map +1 -0
- package/bin/chat/types/ChatCommand.d.ts +163 -0
- package/bin/chat/types/ChatCommand.d.ts.map +1 -0
- package/bin/chat/types/ChatCommand.js +9 -0
- package/bin/chat/types/ChatCommand.js.map +1 -0
- package/bin/chat/types/ChatDispatcher.d.ts +37 -0
- package/bin/chat/types/ChatDispatcher.d.ts.map +1 -0
- package/bin/chat/types/ChatDispatcher.js +9 -0
- package/bin/chat/types/ChatDispatcher.js.map +1 -0
- package/bin/chat/types/ChatHistory.d.ts +36 -0
- package/bin/chat/types/ChatHistory.d.ts.map +1 -0
- package/bin/chat/types/ChatHistory.js +9 -0
- package/bin/chat/types/ChatHistory.js.map +1 -0
- package/bin/chat/types/ChatMeta.d.ts +34 -0
- package/bin/chat/types/ChatMeta.d.ts.map +1 -0
- package/bin/chat/types/ChatMeta.js +10 -0
- package/bin/chat/types/ChatMeta.js.map +1 -0
- package/bin/chat/types/ChatPlugin.d.ts +238 -0
- package/bin/chat/types/ChatPlugin.d.ts.map +1 -0
- package/bin/chat/types/ChatPlugin.js +10 -0
- package/bin/chat/types/ChatPlugin.js.map +1 -0
- package/bin/chat/types/ChatPluginActionPayload.d.ts +145 -0
- package/bin/chat/types/ChatPluginActionPayload.d.ts.map +1 -0
- package/bin/chat/types/ChatPluginActionPayload.js +10 -0
- package/bin/chat/types/ChatPluginActionPayload.js.map +1 -0
- package/bin/chat/types/ChatPromptContext.d.ts +125 -0
- package/bin/chat/types/ChatPromptContext.d.ts.map +1 -0
- package/bin/chat/types/ChatPromptContext.js +10 -0
- package/bin/chat/types/ChatPromptContext.js.map +1 -0
- package/bin/chat/types/ChatQueue.d.ts +36 -0
- package/bin/chat/types/ChatQueue.d.ts.map +1 -0
- package/bin/chat/types/ChatQueue.js +9 -0
- package/bin/chat/types/ChatQueue.js.map +1 -0
- package/bin/chat/types/ChatQueueWorker.d.ts +25 -0
- package/bin/chat/types/ChatQueueWorker.d.ts.map +1 -0
- package/bin/chat/types/ChatQueueWorker.js +9 -0
- package/bin/chat/types/ChatQueueWorker.js.map +1 -0
- package/bin/chat/types/ChatRuntime.d.ts +32 -0
- package/bin/chat/types/ChatRuntime.d.ts.map +1 -0
- package/bin/chat/types/ChatRuntime.js +9 -0
- package/bin/chat/types/ChatRuntime.js.map +1 -0
- package/bin/chat/types/DirectDispatch.d.ts +115 -0
- package/bin/chat/types/DirectDispatch.d.ts.map +1 -0
- package/bin/chat/types/DirectDispatch.js +9 -0
- package/bin/chat/types/DirectDispatch.js.map +1 -0
- package/bin/chat/types/FeishuAttachment.d.ts +42 -0
- package/bin/chat/types/FeishuAttachment.d.ts.map +1 -0
- package/bin/chat/types/FeishuAttachment.js +9 -0
- package/bin/chat/types/FeishuAttachment.js.map +1 -0
- package/bin/chat/types/FeishuInboundAttachment.d.ts +114 -0
- package/bin/chat/types/FeishuInboundAttachment.d.ts.map +1 -0
- package/bin/chat/types/FeishuInboundAttachment.js +9 -0
- package/bin/chat/types/FeishuInboundAttachment.js.map +1 -0
- package/bin/chat/types/FeishuPost.d.ts +287 -0
- package/bin/chat/types/FeishuPost.d.ts.map +1 -0
- package/bin/chat/types/FeishuPost.js +9 -0
- package/bin/chat/types/FeishuPost.js.map +1 -0
- package/bin/chat/types/QqInboundDedupe.d.ts +12 -0
- package/bin/chat/types/QqInboundDedupe.d.ts.map +1 -0
- package/bin/chat/types/QqInboundDedupe.js +2 -0
- package/bin/chat/types/QqInboundDedupe.js.map +1 -0
- package/bin/chat/types/QqVoice.d.ts +118 -0
- package/bin/chat/types/QqVoice.d.ts.map +1 -0
- package/bin/chat/types/QqVoice.js +9 -0
- package/bin/chat/types/QqVoice.js.map +1 -0
- package/bin/chat/types/ReplyContext.d.ts +46 -0
- package/bin/chat/types/ReplyContext.d.ts.map +1 -0
- package/bin/chat/types/ReplyContext.js +10 -0
- package/bin/chat/types/ReplyContext.js.map +1 -0
- package/bin/contact/Action.d.ts +62 -0
- package/bin/contact/Action.d.ts.map +1 -0
- package/bin/contact/Action.js +221 -0
- package/bin/contact/Action.js.map +1 -0
- package/bin/contact/ContactPlugin.d.ts +39 -0
- package/bin/contact/ContactPlugin.d.ts.map +1 -0
- package/bin/contact/ContactPlugin.js +407 -0
- package/bin/contact/ContactPlugin.js.map +1 -0
- package/bin/contact/Index.d.ts +8 -0
- package/bin/contact/Index.d.ts.map +1 -0
- package/bin/contact/Index.js +8 -0
- package/bin/contact/Index.js.map +1 -0
- package/bin/contact/PROMPT.d.ts +7 -0
- package/bin/contact/PROMPT.d.ts.map +1 -0
- package/bin/contact/PROMPT.js +8 -0
- package/bin/contact/PROMPT.js.map +1 -0
- package/bin/contact/runtime/ApproveCallback.d.ts +23 -0
- package/bin/contact/runtime/ApproveCallback.d.ts.map +1 -0
- package/bin/contact/runtime/ApproveCallback.js +83 -0
- package/bin/contact/runtime/ApproveCallback.js.map +1 -0
- package/bin/contact/runtime/ChatRuntime.d.ts +27 -0
- package/bin/contact/runtime/ChatRuntime.d.ts.map +1 -0
- package/bin/contact/runtime/ChatRuntime.js +60 -0
- package/bin/contact/runtime/ChatRuntime.js.map +1 -0
- package/bin/contact/runtime/ContactPayload.d.ts +17 -0
- package/bin/contact/runtime/ContactPayload.d.ts.map +1 -0
- package/bin/contact/runtime/ContactPayload.js +23 -0
- package/bin/contact/runtime/ContactPayload.js.map +1 -0
- package/bin/contact/runtime/ContactPromptAssets.d.ts +12 -0
- package/bin/contact/runtime/ContactPromptAssets.d.ts.map +1 -0
- package/bin/contact/runtime/ContactPromptAssets.js +13 -0
- package/bin/contact/runtime/ContactPromptAssets.js.map +1 -0
- package/bin/contact/runtime/ContactStore.d.ts +49 -0
- package/bin/contact/runtime/ContactStore.d.ts.map +1 -0
- package/bin/contact/runtime/ContactStore.js +255 -0
- package/bin/contact/runtime/ContactStore.js.map +1 -0
- package/bin/contact/runtime/EndpointNotice.d.ts +39 -0
- package/bin/contact/runtime/EndpointNotice.d.ts.map +1 -0
- package/bin/contact/runtime/EndpointNotice.js +98 -0
- package/bin/contact/runtime/EndpointNotice.js.map +1 -0
- package/bin/contact/runtime/EndpointResolver.d.ts +36 -0
- package/bin/contact/runtime/EndpointResolver.d.ts.map +1 -0
- package/bin/contact/runtime/EndpointResolver.js +113 -0
- package/bin/contact/runtime/EndpointResolver.js.map +1 -0
- package/bin/contact/runtime/InboxStore.d.ts +33 -0
- package/bin/contact/runtime/InboxStore.d.ts.map +1 -0
- package/bin/contact/runtime/InboxStore.js +142 -0
- package/bin/contact/runtime/InboxStore.js.map +1 -0
- package/bin/contact/runtime/LinkApproval.d.ts +20 -0
- package/bin/contact/runtime/LinkApproval.d.ts.map +1 -0
- package/bin/contact/runtime/LinkApproval.js +317 -0
- package/bin/contact/runtime/LinkApproval.js.map +1 -0
- package/bin/contact/runtime/LinkCode.d.ts +21 -0
- package/bin/contact/runtime/LinkCode.d.ts.map +1 -0
- package/bin/contact/runtime/LinkCode.js +61 -0
- package/bin/contact/runtime/LinkCode.js.map +1 -0
- package/bin/contact/runtime/LinkStore.d.ts +17 -0
- package/bin/contact/runtime/LinkStore.d.ts.map +1 -0
- package/bin/contact/runtime/LinkStore.js +39 -0
- package/bin/contact/runtime/LinkStore.js.map +1 -0
- package/bin/contact/runtime/Paths.d.ts +64 -0
- package/bin/contact/runtime/Paths.d.ts.map +1 -0
- package/bin/contact/runtime/Paths.js +103 -0
- package/bin/contact/runtime/Paths.js.map +1 -0
- package/bin/contact/runtime/RemoteClient.d.ts +46 -0
- package/bin/contact/runtime/RemoteClient.d.ts.map +1 -0
- package/bin/contact/runtime/RemoteClient.js +120 -0
- package/bin/contact/runtime/RemoteClient.js.map +1 -0
- package/bin/contact/runtime/ShareBundle.d.ts +65 -0
- package/bin/contact/runtime/ShareBundle.d.ts.map +1 -0
- package/bin/contact/runtime/ShareBundle.js +185 -0
- package/bin/contact/runtime/ShareBundle.js.map +1 -0
- package/bin/contact/runtime/SystemProvider.d.ts +5 -0
- package/bin/contact/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/contact/runtime/SystemProvider.js +15 -0
- package/bin/contact/runtime/SystemProvider.js.map +1 -0
- package/bin/contact/runtime/Token.d.ts +24 -0
- package/bin/contact/runtime/Token.d.ts.map +1 -0
- package/bin/contact/runtime/Token.js +36 -0
- package/bin/contact/runtime/Token.js.map +1 -0
- package/bin/contact/types/Contact.d.ts +78 -0
- package/bin/contact/types/Contact.d.ts.map +1 -0
- package/bin/contact/types/Contact.js +9 -0
- package/bin/contact/types/Contact.js.map +1 -0
- package/bin/contact/types/ContactApproval.d.ts +145 -0
- package/bin/contact/types/ContactApproval.d.ts.map +1 -0
- package/bin/contact/types/ContactApproval.js +9 -0
- package/bin/contact/types/ContactApproval.js.map +1 -0
- package/bin/contact/types/ContactChat.d.ts +46 -0
- package/bin/contact/types/ContactChat.d.ts.map +1 -0
- package/bin/contact/types/ContactChat.js +9 -0
- package/bin/contact/types/ContactChat.js.map +1 -0
- package/bin/contact/types/ContactCheck.d.ts +66 -0
- package/bin/contact/types/ContactCheck.d.ts.map +1 -0
- package/bin/contact/types/ContactCheck.js +9 -0
- package/bin/contact/types/ContactCheck.js.map +1 -0
- package/bin/contact/types/ContactCommand.d.ts +93 -0
- package/bin/contact/types/ContactCommand.d.ts.map +1 -0
- package/bin/contact/types/ContactCommand.js +8 -0
- package/bin/contact/types/ContactCommand.js.map +1 -0
- package/bin/contact/types/ContactEndpoint.d.ts +12 -0
- package/bin/contact/types/ContactEndpoint.d.ts.map +1 -0
- package/bin/contact/types/ContactEndpoint.js +9 -0
- package/bin/contact/types/ContactEndpoint.js.map +1 -0
- package/bin/contact/types/ContactLink.d.ts +160 -0
- package/bin/contact/types/ContactLink.d.ts.map +1 -0
- package/bin/contact/types/ContactLink.js +9 -0
- package/bin/contact/types/ContactLink.js.map +1 -0
- package/bin/contact/types/ContactShare.d.ts +163 -0
- package/bin/contact/types/ContactShare.d.ts.map +1 -0
- package/bin/contact/types/ContactShare.js +9 -0
- package/bin/contact/types/ContactShare.js.map +1 -0
- package/bin/index.d.ts +25 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +21 -0
- package/bin/index.js.map +1 -0
- package/bin/memory/Action.d.ts +37 -0
- package/bin/memory/Action.d.ts.map +1 -0
- package/bin/memory/Action.js +111 -0
- package/bin/memory/Action.js.map +1 -0
- package/bin/memory/Index.d.ts +9 -0
- package/bin/memory/Index.d.ts.map +1 -0
- package/bin/memory/Index.js +9 -0
- package/bin/memory/Index.js.map +1 -0
- package/bin/memory/MemoryPlugin.d.ts +45 -0
- package/bin/memory/MemoryPlugin.d.ts.map +1 -0
- package/bin/memory/MemoryPlugin.js +242 -0
- package/bin/memory/MemoryPlugin.js.map +1 -0
- package/bin/memory/runtime/Flush.d.ts +15 -0
- package/bin/memory/runtime/Flush.d.ts.map +1 -0
- package/bin/memory/runtime/Flush.js +63 -0
- package/bin/memory/runtime/Flush.js.map +1 -0
- package/bin/memory/runtime/Search.d.ts +19 -0
- package/bin/memory/runtime/Search.d.ts.map +1 -0
- package/bin/memory/runtime/Search.js +268 -0
- package/bin/memory/runtime/Search.js.map +1 -0
- package/bin/memory/runtime/Store.d.ts +65 -0
- package/bin/memory/runtime/Store.d.ts.map +1 -0
- package/bin/memory/runtime/Store.js +142 -0
- package/bin/memory/runtime/Store.js.map +1 -0
- package/bin/memory/runtime/SystemProvider.d.ts +22 -0
- package/bin/memory/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/memory/runtime/SystemProvider.js +126 -0
- package/bin/memory/runtime/SystemProvider.js.map +1 -0
- package/bin/memory/runtime/Writer.d.ts +23 -0
- package/bin/memory/runtime/Writer.d.ts.map +1 -0
- package/bin/memory/runtime/Writer.js +139 -0
- package/bin/memory/runtime/Writer.js.map +1 -0
- package/bin/memory/types/Memory.d.ts +264 -0
- package/bin/memory/types/Memory.d.ts.map +1 -0
- package/bin/memory/types/Memory.js +9 -0
- package/bin/memory/types/Memory.js.map +1 -0
- package/bin/shell/Index.d.ts +9 -0
- package/bin/shell/Index.d.ts.map +1 -0
- package/bin/shell/Index.js +9 -0
- package/bin/shell/Index.js.map +1 -0
- package/bin/shell/ShellPlugin.d.ts +65 -0
- package/bin/shell/ShellPlugin.d.ts.map +1 -0
- package/bin/shell/ShellPlugin.js +138 -0
- package/bin/shell/ShellPlugin.js.map +1 -0
- package/bin/shell/ShellRuntimeTypes.d.ts +91 -0
- package/bin/shell/ShellRuntimeTypes.d.ts.map +1 -0
- package/bin/shell/ShellRuntimeTypes.js +10 -0
- package/bin/shell/ShellRuntimeTypes.js.map +1 -0
- package/bin/shell/runtime/Paths.d.ts +12 -0
- package/bin/shell/runtime/Paths.d.ts.map +1 -0
- package/bin/shell/runtime/Paths.js +21 -0
- package/bin/shell/runtime/Paths.js.map +1 -0
- package/bin/shell/runtime/ShellActionResponse.d.ts +52 -0
- package/bin/shell/runtime/ShellActionResponse.d.ts.map +1 -0
- package/bin/shell/runtime/ShellActionResponse.js +73 -0
- package/bin/shell/runtime/ShellActionResponse.js.map +1 -0
- package/bin/shell/runtime/ShellActionRuntime.d.ts +49 -0
- package/bin/shell/runtime/ShellActionRuntime.d.ts.map +1 -0
- package/bin/shell/runtime/ShellActionRuntime.js +441 -0
- package/bin/shell/runtime/ShellActionRuntime.js.map +1 -0
- package/bin/shell/runtime/ShellActionRuntimeSupport.d.ts +79 -0
- package/bin/shell/runtime/ShellActionRuntimeSupport.d.ts.map +1 -0
- package/bin/shell/runtime/ShellActionRuntimeSupport.js +314 -0
- package/bin/shell/runtime/ShellActionRuntimeSupport.js.map +1 -0
- package/bin/shell/runtime/ShellProcessEvents.d.ts +22 -0
- package/bin/shell/runtime/ShellProcessEvents.d.ts.map +1 -0
- package/bin/shell/runtime/ShellProcessEvents.js +41 -0
- package/bin/shell/runtime/ShellProcessEvents.js.map +1 -0
- package/bin/shell/runtime/ShellRuntimeEnvironment.d.ts +21 -0
- package/bin/shell/runtime/ShellRuntimeEnvironment.d.ts.map +1 -0
- package/bin/shell/runtime/ShellRuntimeEnvironment.js +67 -0
- package/bin/shell/runtime/ShellRuntimeEnvironment.js.map +1 -0
- package/bin/skill/Action.d.ts +34 -0
- package/bin/skill/Action.d.ts.map +1 -0
- package/bin/skill/Action.js +122 -0
- package/bin/skill/Action.js.map +1 -0
- package/bin/skill/Command.d.ts +37 -0
- package/bin/skill/Command.d.ts.map +1 -0
- package/bin/skill/Command.js +70 -0
- package/bin/skill/Command.js.map +1 -0
- package/bin/skill/Config.d.ts +18 -0
- package/bin/skill/Config.d.ts.map +1 -0
- package/bin/skill/Config.js +37 -0
- package/bin/skill/Config.js.map +1 -0
- package/bin/skill/PROMPT.d.ts +7 -0
- package/bin/skill/PROMPT.d.ts.map +1 -0
- package/bin/skill/PROMPT.js +8 -0
- package/bin/skill/PROMPT.js.map +1 -0
- package/bin/skill/Plugin.d.ts +18 -0
- package/bin/skill/Plugin.d.ts.map +1 -0
- package/bin/skill/Plugin.js +311 -0
- package/bin/skill/Plugin.js.map +1 -0
- package/bin/skill/SkillPromptAssets.d.ts +12 -0
- package/bin/skill/SkillPromptAssets.d.ts.map +1 -0
- package/bin/skill/SkillPromptAssets.js +13 -0
- package/bin/skill/SkillPromptAssets.js.map +1 -0
- package/bin/skill/runtime/Discovery.d.ts +25 -0
- package/bin/skill/runtime/Discovery.d.ts.map +1 -0
- package/bin/skill/runtime/Discovery.js +130 -0
- package/bin/skill/runtime/Discovery.js.map +1 -0
- package/bin/skill/runtime/Frontmatter.d.ts +6 -0
- package/bin/skill/runtime/Frontmatter.d.ts.map +1 -0
- package/bin/skill/runtime/Frontmatter.js +12 -0
- package/bin/skill/runtime/Frontmatter.js.map +1 -0
- package/bin/skill/runtime/Paths.d.ts +16 -0
- package/bin/skill/runtime/Paths.d.ts.map +1 -0
- package/bin/skill/runtime/Paths.js +111 -0
- package/bin/skill/runtime/Paths.js.map +1 -0
- package/bin/skill/runtime/Prompt.d.ts +19 -0
- package/bin/skill/runtime/Prompt.d.ts.map +1 -0
- package/bin/skill/runtime/Prompt.js +54 -0
- package/bin/skill/runtime/Prompt.js.map +1 -0
- package/bin/skill/runtime/Store.d.ts +25 -0
- package/bin/skill/runtime/Store.d.ts.map +1 -0
- package/bin/skill/runtime/Store.js +81 -0
- package/bin/skill/runtime/Store.js.map +1 -0
- package/bin/skill/runtime/SystemProvider.d.ts +24 -0
- package/bin/skill/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/skill/runtime/SystemProvider.js +33 -0
- package/bin/skill/runtime/SystemProvider.js.map +1 -0
- package/bin/skill/runtime/Types.d.ts +21 -0
- package/bin/skill/runtime/Types.d.ts.map +1 -0
- package/bin/skill/runtime/Types.js +2 -0
- package/bin/skill/runtime/Types.js.map +1 -0
- package/bin/skill/runtime/Utils.d.ts +4 -0
- package/bin/skill/runtime/Utils.d.ts.map +1 -0
- package/bin/skill/runtime/Utils.js +29 -0
- package/bin/skill/runtime/Utils.js.map +1 -0
- package/bin/skill/types/ClaudeSkill.d.ts +63 -0
- package/bin/skill/types/ClaudeSkill.d.ts.map +1 -0
- package/bin/skill/types/ClaudeSkill.js +10 -0
- package/bin/skill/types/ClaudeSkill.js.map +1 -0
- package/bin/skill/types/SkillCommand.d.ts +87 -0
- package/bin/skill/types/SkillCommand.d.ts.map +1 -0
- package/bin/skill/types/SkillCommand.js +9 -0
- package/bin/skill/types/SkillCommand.js.map +1 -0
- package/bin/skill/types/SkillPlugin.d.ts +102 -0
- package/bin/skill/types/SkillPlugin.d.ts.map +1 -0
- package/bin/skill/types/SkillPlugin.js +29 -0
- package/bin/skill/types/SkillPlugin.js.map +1 -0
- package/bin/skill/types/SkillRoot.d.ts +48 -0
- package/bin/skill/types/SkillRoot.d.ts.map +1 -0
- package/bin/skill/types/SkillRoot.js +9 -0
- package/bin/skill/types/SkillRoot.js.map +1 -0
- package/bin/task/Action.d.ts +36 -0
- package/bin/task/Action.d.ts.map +1 -0
- package/bin/task/Action.js +407 -0
- package/bin/task/Action.js.map +1 -0
- package/bin/task/Index.d.ts +9 -0
- package/bin/task/Index.d.ts.map +1 -0
- package/bin/task/Index.js +9 -0
- package/bin/task/Index.js.map +1 -0
- package/bin/task/PROMPT.d.ts +7 -0
- package/bin/task/PROMPT.d.ts.map +1 -0
- package/bin/task/PROMPT.js +8 -0
- package/bin/task/PROMPT.js.map +1 -0
- package/bin/task/Scheduler.d.ts +17 -0
- package/bin/task/Scheduler.d.ts.map +1 -0
- package/bin/task/Scheduler.js +231 -0
- package/bin/task/Scheduler.js.map +1 -0
- package/bin/task/TaskPlugin.d.ts +57 -0
- package/bin/task/TaskPlugin.d.ts.map +1 -0
- package/bin/task/TaskPlugin.js +126 -0
- package/bin/task/TaskPlugin.js.map +1 -0
- package/bin/task/runtime/CronTrigger.d.ts +19 -0
- package/bin/task/runtime/CronTrigger.d.ts.map +1 -0
- package/bin/task/runtime/CronTrigger.js +93 -0
- package/bin/task/runtime/CronTrigger.js.map +1 -0
- package/bin/task/runtime/Frontmatter.d.ts +13 -0
- package/bin/task/runtime/Frontmatter.d.ts.map +1 -0
- package/bin/task/runtime/Frontmatter.js +19 -0
- package/bin/task/runtime/Frontmatter.js.map +1 -0
- package/bin/task/runtime/Model.d.ts +73 -0
- package/bin/task/runtime/Model.d.ts.map +1 -0
- package/bin/task/runtime/Model.js +312 -0
- package/bin/task/runtime/Model.js.map +1 -0
- package/bin/task/runtime/Paths.d.ts +32 -0
- package/bin/task/runtime/Paths.d.ts.map +1 -0
- package/bin/task/runtime/Paths.js +103 -0
- package/bin/task/runtime/Paths.js.map +1 -0
- package/bin/task/runtime/Runner.d.ts +43 -0
- package/bin/task/runtime/Runner.d.ts.map +1 -0
- package/bin/task/runtime/Runner.js +440 -0
- package/bin/task/runtime/Runner.js.map +1 -0
- package/bin/task/runtime/Store.d.ts +89 -0
- package/bin/task/runtime/Store.d.ts.map +1 -0
- package/bin/task/runtime/Store.js +206 -0
- package/bin/task/runtime/Store.js.map +1 -0
- package/bin/task/runtime/TaskActionExecution.d.ts +160 -0
- package/bin/task/runtime/TaskActionExecution.d.ts.map +1 -0
- package/bin/task/runtime/TaskActionExecution.js +192 -0
- package/bin/task/runtime/TaskActionExecution.js.map +1 -0
- package/bin/task/runtime/TaskActionInput.d.ts +19 -0
- package/bin/task/runtime/TaskActionInput.d.ts.map +1 -0
- package/bin/task/runtime/TaskActionInput.js +218 -0
- package/bin/task/runtime/TaskActionInput.js.map +1 -0
- package/bin/task/runtime/TaskPluginActionRegistry.d.ts +16 -0
- package/bin/task/runtime/TaskPluginActionRegistry.d.ts.map +1 -0
- package/bin/task/runtime/TaskPluginActionRegistry.js +167 -0
- package/bin/task/runtime/TaskPluginActionRegistry.js.map +1 -0
- package/bin/task/runtime/TaskPluginActions.d.ts +5 -0
- package/bin/task/runtime/TaskPluginActions.d.ts.map +1 -0
- package/bin/task/runtime/TaskPluginActions.js +5 -0
- package/bin/task/runtime/TaskPluginActions.js.map +1 -0
- package/bin/task/runtime/TaskPluginSystem.d.ts +9 -0
- package/bin/task/runtime/TaskPluginSystem.d.ts.map +1 -0
- package/bin/task/runtime/TaskPluginSystem.js +9 -0
- package/bin/task/runtime/TaskPluginSystem.js.map +1 -0
- package/bin/task/runtime/TaskPromptAssets.d.ts +12 -0
- package/bin/task/runtime/TaskPromptAssets.d.ts.map +1 -0
- package/bin/task/runtime/TaskPromptAssets.js +13 -0
- package/bin/task/runtime/TaskPromptAssets.js.map +1 -0
- package/bin/task/runtime/TaskRunArtifacts.d.ts +189 -0
- package/bin/task/runtime/TaskRunArtifacts.d.ts.map +1 -0
- package/bin/task/runtime/TaskRunArtifacts.js +271 -0
- package/bin/task/runtime/TaskRunArtifacts.js.map +1 -0
- package/bin/task/runtime/TaskRunChatDispatch.d.ts +22 -0
- package/bin/task/runtime/TaskRunChatDispatch.d.ts.map +1 -0
- package/bin/task/runtime/TaskRunChatDispatch.js +66 -0
- package/bin/task/runtime/TaskRunChatDispatch.js.map +1 -0
- package/bin/task/runtime/TaskRunnerProgress.d.ts +35 -0
- package/bin/task/runtime/TaskRunnerProgress.d.ts.map +1 -0
- package/bin/task/runtime/TaskRunnerProgress.js +95 -0
- package/bin/task/runtime/TaskRunnerProgress.js.map +1 -0
- package/bin/task/runtime/TaskRunnerRound.d.ts +80 -0
- package/bin/task/runtime/TaskRunnerRound.d.ts.map +1 -0
- package/bin/task/runtime/TaskRunnerRound.js +272 -0
- package/bin/task/runtime/TaskRunnerRound.js.map +1 -0
- package/bin/task/runtime/TaskRunnerScript.d.ts +81 -0
- package/bin/task/runtime/TaskRunnerScript.d.ts.map +1 -0
- package/bin/task/runtime/TaskRunnerScript.js +96 -0
- package/bin/task/runtime/TaskRunnerScript.js.map +1 -0
- package/bin/task/runtime/TaskRunnerSession.d.ts +48 -0
- package/bin/task/runtime/TaskRunnerSession.d.ts.map +1 -0
- package/bin/task/runtime/TaskRunnerSession.js +153 -0
- package/bin/task/runtime/TaskRunnerSession.js.map +1 -0
- package/bin/task/runtime/TaskRunnerTypes.d.ts +186 -0
- package/bin/task/runtime/TaskRunnerTypes.d.ts.map +1 -0
- package/bin/task/runtime/TaskRunnerTypes.js +9 -0
- package/bin/task/runtime/TaskRunnerTypes.js.map +1 -0
- package/bin/task/types/Cron.d.ts +16 -0
- package/bin/task/types/Cron.d.ts.map +1 -0
- package/bin/task/types/Cron.js +2 -0
- package/bin/task/types/Cron.js.map +1 -0
- package/bin/task/types/Task.d.ts +146 -0
- package/bin/task/types/Task.d.ts.map +1 -0
- package/bin/task/types/Task.js +9 -0
- package/bin/task/types/Task.js.map +1 -0
- package/bin/task/types/TaskCommand.d.ts +147 -0
- package/bin/task/types/TaskCommand.d.ts.map +1 -0
- package/bin/task/types/TaskCommand.js +9 -0
- package/bin/task/types/TaskCommand.js.map +1 -0
- package/bin/task/types/TaskPluginTypes.d.ts +52 -0
- package/bin/task/types/TaskPluginTypes.d.ts.map +1 -0
- package/bin/task/types/TaskPluginTypes.js +9 -0
- package/bin/task/types/TaskPluginTypes.js.map +1 -0
- package/bin/tts/Dependency.d.ts +90 -0
- package/bin/tts/Dependency.d.ts.map +1 -0
- package/bin/tts/Dependency.js +344 -0
- package/bin/tts/Dependency.js.map +1 -0
- package/bin/tts/Plugin.d.ts +17 -0
- package/bin/tts/Plugin.d.ts.map +1 -0
- package/bin/tts/Plugin.js +491 -0
- package/bin/tts/Plugin.js.map +1 -0
- package/bin/tts/PluginSupport.d.ts +25 -0
- package/bin/tts/PluginSupport.d.ts.map +1 -0
- package/bin/tts/PluginSupport.js +72 -0
- package/bin/tts/PluginSupport.js.map +1 -0
- package/bin/tts/runtime/Catalog.d.ts +21 -0
- package/bin/tts/runtime/Catalog.d.ts.map +1 -0
- package/bin/tts/runtime/Catalog.js +90 -0
- package/bin/tts/runtime/Catalog.js.map +1 -0
- package/bin/tts/runtime/DependencyInstaller.d.ts +143 -0
- package/bin/tts/runtime/DependencyInstaller.d.ts.map +1 -0
- package/bin/tts/runtime/DependencyInstaller.js +261 -0
- package/bin/tts/runtime/DependencyInstaller.js.map +1 -0
- package/bin/tts/runtime/Installer.d.ts +89 -0
- package/bin/tts/runtime/Installer.d.ts.map +1 -0
- package/bin/tts/runtime/Installer.js +188 -0
- package/bin/tts/runtime/Installer.js.map +1 -0
- package/bin/tts/runtime/Paths.d.ts +20 -0
- package/bin/tts/runtime/Paths.d.ts.map +1 -0
- package/bin/tts/runtime/Paths.js +32 -0
- package/bin/tts/runtime/Paths.js.map +1 -0
- package/bin/tts/runtime/Synthesizer.d.ts +44 -0
- package/bin/tts/runtime/Synthesizer.d.ts.map +1 -0
- package/bin/tts/runtime/Synthesizer.js +363 -0
- package/bin/tts/runtime/Synthesizer.js.map +1 -0
- package/bin/tts/types/Tts.d.ts +91 -0
- package/bin/tts/types/Tts.d.ts.map +1 -0
- package/bin/tts/types/Tts.js +9 -0
- package/bin/tts/types/Tts.js.map +1 -0
- package/bin/tts/types/TtsPlugin.d.ts +161 -0
- package/bin/tts/types/TtsPlugin.d.ts.map +1 -0
- package/bin/tts/types/TtsPlugin.js +9 -0
- package/bin/tts/types/TtsPlugin.js.map +1 -0
- package/bin/voice/Config.d.ts +43 -0
- package/bin/voice/Config.d.ts.map +1 -0
- package/bin/voice/Config.js +104 -0
- package/bin/voice/Config.js.map +1 -0
- package/bin/voice/Dependency.d.ts +77 -0
- package/bin/voice/Dependency.d.ts.map +1 -0
- package/bin/voice/Dependency.js +237 -0
- package/bin/voice/Dependency.js.map +1 -0
- package/bin/voice/InboundAugment.d.ts +17 -0
- package/bin/voice/InboundAugment.d.ts.map +1 -0
- package/bin/voice/InboundAugment.js +47 -0
- package/bin/voice/InboundAugment.js.map +1 -0
- package/bin/voice/ModelCatalog.d.ts +29 -0
- package/bin/voice/ModelCatalog.d.ts.map +1 -0
- package/bin/voice/ModelCatalog.js +25 -0
- package/bin/voice/ModelCatalog.js.map +1 -0
- package/bin/voice/runtime/Catalog.d.ts +18 -0
- package/bin/voice/runtime/Catalog.d.ts.map +1 -0
- package/bin/voice/runtime/Catalog.js +61 -0
- package/bin/voice/runtime/Catalog.js.map +1 -0
- package/bin/voice/runtime/DependencyInstaller.d.ts +145 -0
- package/bin/voice/runtime/DependencyInstaller.d.ts.map +1 -0
- package/bin/voice/runtime/DependencyInstaller.js +309 -0
- package/bin/voice/runtime/DependencyInstaller.js.map +1 -0
- package/bin/voice/runtime/Installer.d.ts +94 -0
- package/bin/voice/runtime/Installer.d.ts.map +1 -0
- package/bin/voice/runtime/Installer.js +200 -0
- package/bin/voice/runtime/Installer.js.map +1 -0
- package/bin/voice/runtime/Paths.d.ts +8 -0
- package/bin/voice/runtime/Paths.d.ts.map +1 -0
- package/bin/voice/runtime/Paths.js +26 -0
- package/bin/voice/runtime/Paths.js.map +1 -0
- package/bin/voice/runtime/Transcriber.d.ts +57 -0
- package/bin/voice/runtime/Transcriber.d.ts.map +1 -0
- package/bin/voice/runtime/Transcriber.js +329 -0
- package/bin/voice/runtime/Transcriber.js.map +1 -0
- package/bin/voice/types/Voice.d.ts +58 -0
- package/bin/voice/types/Voice.d.ts.map +1 -0
- package/bin/voice/types/Voice.js +9 -0
- package/bin/voice/types/Voice.js.map +1 -0
- package/bin/voice/types/VoicePlugin.d.ts +190 -0
- package/bin/voice/types/VoicePlugin.d.ts.map +1 -0
- package/bin/voice/types/VoicePlugin.js +9 -0
- package/bin/voice/types/VoicePlugin.js.map +1 -0
- package/bin/web/Dependency.d.ts +10 -0
- package/bin/web/Dependency.d.ts.map +1 -0
- package/bin/web/Dependency.js +10 -0
- package/bin/web/Dependency.js.map +1 -0
- package/bin/web/PROMPT.agent-browser.d.ts +7 -0
- package/bin/web/PROMPT.agent-browser.d.ts.map +1 -0
- package/bin/web/PROMPT.agent-browser.js +8 -0
- package/bin/web/PROMPT.agent-browser.js.map +1 -0
- package/bin/web/PROMPT.d.ts +7 -0
- package/bin/web/PROMPT.d.ts.map +1 -0
- package/bin/web/PROMPT.js +8 -0
- package/bin/web/PROMPT.js.map +1 -0
- package/bin/web/PROMPT.web-access.d.ts +7 -0
- package/bin/web/PROMPT.web-access.d.ts.map +1 -0
- package/bin/web/PROMPT.web-access.js +8 -0
- package/bin/web/PROMPT.web-access.js.map +1 -0
- package/bin/web/Plugin.d.ts +17 -0
- package/bin/web/Plugin.d.ts.map +1 -0
- package/bin/web/Plugin.js +478 -0
- package/bin/web/Plugin.js.map +1 -0
- package/bin/web/WebPromptAssets.d.ts +20 -0
- package/bin/web/WebPromptAssets.d.ts.map +1 -0
- package/bin/web/WebPromptAssets.js +23 -0
- package/bin/web/WebPromptAssets.js.map +1 -0
- package/bin/web/runtime/Config.d.ts +21 -0
- package/bin/web/runtime/Config.d.ts.map +1 -0
- package/bin/web/runtime/Config.js +79 -0
- package/bin/web/runtime/Config.js.map +1 -0
- package/bin/web/runtime/Source.d.ts +29 -0
- package/bin/web/runtime/Source.d.ts.map +1 -0
- package/bin/web/runtime/Source.js +209 -0
- package/bin/web/runtime/Source.js.map +1 -0
- package/bin/web/types/WebPlugin.d.ts +133 -0
- package/bin/web/types/WebPlugin.d.ts.map +1 -0
- package/bin/web/types/WebPlugin.js +12 -0
- package/bin/web/types/WebPlugin.js.map +1 -0
- package/bin/workboard/Plugin.d.ts +17 -0
- package/bin/workboard/Plugin.d.ts.map +1 -0
- package/bin/workboard/Plugin.js +81 -0
- package/bin/workboard/Plugin.js.map +1 -0
- package/bin/workboard/runtime/Collector.d.ts +14 -0
- package/bin/workboard/runtime/Collector.d.ts.map +1 -0
- package/bin/workboard/runtime/Collector.js +63 -0
- package/bin/workboard/runtime/Collector.js.map +1 -0
- package/bin/workboard/runtime/Normalizer.d.ts +61 -0
- package/bin/workboard/runtime/Normalizer.d.ts.map +1 -0
- package/bin/workboard/runtime/Normalizer.js +172 -0
- package/bin/workboard/runtime/Normalizer.js.map +1 -0
- package/bin/workboard/runtime/Store.d.ts +48 -0
- package/bin/workboard/runtime/Store.d.ts.map +1 -0
- package/bin/workboard/runtime/Store.js +84 -0
- package/bin/workboard/runtime/Store.js.map +1 -0
- package/bin/workboard/types/Workboard.d.ts +150 -0
- package/bin/workboard/types/Workboard.d.ts.map +1 -0
- package/bin/workboard/types/Workboard.js +9 -0
- package/bin/workboard/types/Workboard.js.map +1 -0
- package/package.json +42 -0
- package/src/BuiltinPlugins.ts +53 -0
- package/src/asr/Config.ts +138 -0
- package/src/asr/Dependency.ts +336 -0
- package/src/asr/InboundAugment.ts +59 -0
- package/src/asr/ModelCatalog.ts +43 -0
- package/src/asr/Plugin.ts +510 -0
- package/src/auth/Plugin.ts +221 -0
- package/src/auth/runtime/AuthorizationConfig.ts +247 -0
- package/src/auth/runtime/AuthorizationPolicy.ts +167 -0
- package/src/auth/runtime/AuthorizationStore.ts +220 -0
- package/src/auth/types/AuthPlugin.ts +545 -0
- package/src/chat/Action.ts +477 -0
- package/src/chat/ChatPlugin.ts +249 -0
- package/src/chat/ChatPluginTypes.ts +126 -0
- package/src/chat/Index.ts +8 -0
- package/src/chat/PROMPT.direct.ts +9 -0
- package/src/chat/PROMPT.direct.ts.txt +55 -0
- package/src/chat/accounts/ChannelAccountManager.ts +314 -0
- package/src/chat/accounts/Crypto.ts +83 -0
- package/src/chat/accounts/Store.ts +287 -0
- package/src/chat/channels/BaseChatChannel.ts +450 -0
- package/src/chat/channels/BaseChatChannelQueue.ts +320 -0
- package/src/chat/channels/BaseChatChannelSupport.ts +321 -0
- package/src/chat/channels/BotInfoProvider.ts +49 -0
- package/src/chat/channels/Configuration.ts +35 -0
- package/src/chat/channels/ConfigurationRegistry.ts +43 -0
- package/src/chat/channels/feishu/BotInfo.ts +199 -0
- package/src/chat/channels/feishu/Configuration.ts +65 -0
- package/src/chat/channels/feishu/Feishu.ts +467 -0
- package/src/chat/channels/feishu/FeishuInbound.ts +51 -0
- package/src/chat/channels/feishu/FeishuMessageHandler.ts +483 -0
- package/src/chat/channels/feishu/FeishuPlatformClient.ts +421 -0
- package/src/chat/channels/feishu/FeishuPlatformLookup.ts +523 -0
- package/src/chat/channels/feishu/FeishuPlatformMessaging.ts +219 -0
- package/src/chat/channels/feishu/InboundAttachment.ts +261 -0
- package/src/chat/channels/feishu/PROMPT.direct.ts +9 -0
- package/src/chat/channels/feishu/PROMPT.direct.ts.txt +5 -0
- package/src/chat/channels/feishu/PostMessage.ts +492 -0
- package/src/chat/channels/feishu/ReplyContext.ts +68 -0
- package/src/chat/channels/feishu/Shared.ts +94 -0
- package/src/chat/channels/feishu/types/FeishuChannel.ts +131 -0
- package/src/chat/channels/qq/BotInfo.ts +137 -0
- package/src/chat/channels/qq/Configuration.ts +64 -0
- package/src/chat/channels/qq/PROMPT.direct.ts +9 -0
- package/src/chat/channels/qq/PROMPT.direct.ts.txt +11 -0
- package/src/chat/channels/qq/QQ.ts +398 -0
- package/src/chat/channels/qq/QQEventCapture.ts +88 -0
- package/src/chat/channels/qq/QQGatewayAuth.ts +318 -0
- package/src/chat/channels/qq/QQGatewayClient.ts +467 -0
- package/src/chat/channels/qq/QQGatewayConnection.ts +175 -0
- package/src/chat/channels/qq/QQGatewayHeartbeat.ts +114 -0
- package/src/chat/channels/qq/QQGatewayProtocol.ts +176 -0
- package/src/chat/channels/qq/QQGatewaySend.ts +258 -0
- package/src/chat/channels/qq/QQGatewaySupport.ts +159 -0
- package/src/chat/channels/qq/QQInbound.ts +262 -0
- package/src/chat/channels/qq/QQInboundDedupe.ts +126 -0
- package/src/chat/channels/qq/QQMessageHandler.ts +465 -0
- package/src/chat/channels/qq/QQSendSupport.ts +91 -0
- package/src/chat/channels/qq/QQSupport.ts +263 -0
- package/src/chat/channels/qq/VoiceInput.ts +381 -0
- package/src/chat/channels/qq/types/QqChannel.ts +501 -0
- package/src/chat/channels/qq/types/QqGatewaySupport.ts +97 -0
- package/src/chat/channels/telegram/ApiClient.ts +373 -0
- package/src/chat/channels/telegram/Bot.ts +357 -0
- package/src/chat/channels/telegram/BotInfo.ts +92 -0
- package/src/chat/channels/telegram/Configuration.ts +65 -0
- package/src/chat/channels/telegram/Handlers.ts +91 -0
- package/src/chat/channels/telegram/PROMPT.direct.ts +9 -0
- package/src/chat/channels/telegram/PROMPT.direct.ts.txt +2 -0
- package/src/chat/channels/telegram/ReplyContext.ts +76 -0
- package/src/chat/channels/telegram/Shared.ts +404 -0
- package/src/chat/channels/telegram/StateStore.ts +58 -0
- package/src/chat/channels/telegram/TelegramInbound.ts +186 -0
- package/src/chat/channels/telegram/TelegramMessageHandler.ts +485 -0
- package/src/chat/channels/telegram/TelegramPendingUpdates.ts +204 -0
- package/src/chat/channels/telegram/TelegramPlatformClient.ts +482 -0
- package/src/chat/runtime/ChannelContextStore.ts +395 -0
- package/src/chat/runtime/ChatActionExecution.ts +362 -0
- package/src/chat/runtime/ChatActionInput.ts +167 -0
- package/src/chat/runtime/ChatActionInputSupport.ts +85 -0
- package/src/chat/runtime/ChatChannelActions.ts +308 -0
- package/src/chat/runtime/ChatChannelConfig.ts +330 -0
- package/src/chat/runtime/ChatChannelCore.ts +148 -0
- package/src/chat/runtime/ChatChannelFacade.ts +23 -0
- package/src/chat/runtime/ChatChannelLifecycle.ts +169 -0
- package/src/chat/runtime/ChatHistoryStore.ts +289 -0
- package/src/chat/runtime/ChatIngressStore.ts +68 -0
- package/src/chat/runtime/ChatMetaStore.ts +186 -0
- package/src/chat/runtime/ChatPluginActionRegistry.ts +367 -0
- package/src/chat/runtime/ChatPluginActions.ts +5 -0
- package/src/chat/runtime/ChatPluginSystem.ts +70 -0
- package/src/chat/runtime/ChatPromptAssets.ts +32 -0
- package/src/chat/runtime/ChatQueue.ts +77 -0
- package/src/chat/runtime/ChatQueueReplyDispatch.ts +191 -0
- package/src/chat/runtime/ChatQueueStore.ts +185 -0
- package/src/chat/runtime/ChatQueueWorker.ts +485 -0
- package/src/chat/runtime/ChatQueueWorkerSupport.ts +137 -0
- package/src/chat/runtime/ChatSendActionInput.ts +255 -0
- package/src/chat/runtime/ChatSendMetadata.ts +170 -0
- package/src/chat/runtime/ChatSendRegistry.ts +43 -0
- package/src/chat/runtime/ChatSession.ts +156 -0
- package/src/chat/runtime/ChatSessionContextComposer.ts +106 -0
- package/src/chat/runtime/ChatSessionDelete.ts +95 -0
- package/src/chat/runtime/ChatSessionTypes.ts +32 -0
- package/src/chat/runtime/ChatkeySend.ts +187 -0
- package/src/chat/runtime/DirectDispatchParser.ts +158 -0
- package/src/chat/runtime/EnqueueDispatch.ts +49 -0
- package/src/chat/runtime/InboundAugment.ts +63 -0
- package/src/chat/runtime/PluginDispatch.ts +89 -0
- package/src/chat/runtime/PluginPoints.ts +78 -0
- package/src/chat/runtime/QueuedUserMessage.ts +43 -0
- package/src/chat/runtime/ReplyContextFormatter.ts +85 -0
- package/src/chat/runtime/ReplyDispatch.ts +78 -0
- package/src/chat/runtime/SystemPrompt.ts +84 -0
- package/src/chat/types/BotInfo.ts +101 -0
- package/src/chat/types/ChannelAccount.ts +232 -0
- package/src/chat/types/ChannelConfiguration.ts +161 -0
- package/src/chat/types/ChannelContext.ts +110 -0
- package/src/chat/types/ChannelStatus.ts +98 -0
- package/src/chat/types/ChatCommand.ts +174 -0
- package/src/chat/types/ChatDispatcher.ts +42 -0
- package/src/chat/types/ChatHistory.ts +42 -0
- package/src/chat/types/ChatMeta.ts +35 -0
- package/src/chat/types/ChatPlugin.ts +251 -0
- package/src/chat/types/ChatPluginActionPayload.ts +165 -0
- package/src/chat/types/ChatPromptContext.ts +139 -0
- package/src/chat/types/ChatQueue.ts +41 -0
- package/src/chat/types/ChatQueueWorker.ts +25 -0
- package/src/chat/types/ChatRuntime.ts +33 -0
- package/src/chat/types/DirectDispatch.ts +133 -0
- package/src/chat/types/FeishuAttachment.ts +50 -0
- package/src/chat/types/FeishuInboundAttachment.ts +138 -0
- package/src/chat/types/FeishuPost.ts +338 -0
- package/src/chat/types/QqInboundDedupe.ts +12 -0
- package/src/chat/types/QqVoice.ts +126 -0
- package/src/chat/types/ReplyContext.ts +49 -0
- package/src/contact/Action.ts +316 -0
- package/src/contact/ContactPlugin.ts +503 -0
- package/src/contact/Index.ts +8 -0
- package/src/contact/PROMPT.ts +9 -0
- package/src/contact/PROMPT.ts.txt +25 -0
- package/src/contact/runtime/ApproveCallback.ts +97 -0
- package/src/contact/runtime/ChatRuntime.ts +83 -0
- package/src/contact/runtime/ContactPayload.ts +26 -0
- package/src/contact/runtime/ContactPromptAssets.ts +14 -0
- package/src/contact/runtime/ContactStore.ts +299 -0
- package/src/contact/runtime/EndpointNotice.ts +125 -0
- package/src/contact/runtime/EndpointResolver.ts +146 -0
- package/src/contact/runtime/InboxStore.ts +178 -0
- package/src/contact/runtime/LinkApproval.ts +387 -0
- package/src/contact/runtime/LinkCode.ts +70 -0
- package/src/contact/runtime/LinkStore.ts +50 -0
- package/src/contact/runtime/Paths.ts +139 -0
- package/src/contact/runtime/RemoteClient.ts +158 -0
- package/src/contact/runtime/ShareBundle.ts +286 -0
- package/src/contact/runtime/SystemProvider.ts +15 -0
- package/src/contact/runtime/Token.ts +40 -0
- package/src/contact/types/Contact.ts +82 -0
- package/src/contact/types/ContactApproval.ts +150 -0
- package/src/contact/types/ContactChat.ts +47 -0
- package/src/contact/types/ContactCheck.ts +67 -0
- package/src/contact/types/ContactCommand.ts +98 -0
- package/src/contact/types/ContactEndpoint.ts +16 -0
- package/src/contact/types/ContactLink.ts +169 -0
- package/src/contact/types/ContactShare.ts +172 -0
- package/src/index.ts +64 -0
- package/src/memory/Action.ts +147 -0
- package/src/memory/Index.ts +9 -0
- package/src/memory/MemoryPlugin.ts +270 -0
- package/src/memory/runtime/Flush.ts +83 -0
- package/src/memory/runtime/Search.ts +330 -0
- package/src/memory/runtime/Store.ts +198 -0
- package/src/memory/runtime/SystemProvider.ts +145 -0
- package/src/memory/runtime/Writer.ts +173 -0
- package/src/memory/types/Memory.ts +284 -0
- package/src/shell/Index.ts +9 -0
- package/src/shell/ShellPlugin.ts +199 -0
- package/src/shell/ShellRuntimeTypes.ts +94 -0
- package/src/shell/runtime/Paths.ts +28 -0
- package/src/shell/runtime/ShellActionResponse.ts +135 -0
- package/src/shell/runtime/ShellActionRuntime.ts +545 -0
- package/src/shell/runtime/ShellActionRuntimeSupport.ts +386 -0
- package/src/shell/runtime/ShellProcessEvents.ts +65 -0
- package/src/shell/runtime/ShellRuntimeEnvironment.ts +67 -0
- package/src/skill/Action.ts +159 -0
- package/src/skill/Command.ts +98 -0
- package/src/skill/Config.ts +51 -0
- package/src/skill/PROMPT.ts +9 -0
- package/src/skill/PROMPT.ts.txt +10 -0
- package/src/skill/Plugin.ts +347 -0
- package/src/skill/SkillPromptAssets.ts +14 -0
- package/src/skill/runtime/Discovery.ts +141 -0
- package/src/skill/runtime/Frontmatter.ts +17 -0
- package/src/skill/runtime/Paths.ts +130 -0
- package/src/skill/runtime/Prompt.ts +67 -0
- package/src/skill/runtime/Store.ts +95 -0
- package/src/skill/runtime/SystemProvider.ts +52 -0
- package/src/skill/runtime/Types.ts +22 -0
- package/src/skill/runtime/Utils.ts +28 -0
- package/src/skill/types/ClaudeSkill.ts +64 -0
- package/src/skill/types/SkillCommand.ts +90 -0
- package/src/skill/types/SkillPlugin.ts +107 -0
- package/src/skill/types/SkillRoot.ts +49 -0
- package/src/task/Action.ts +491 -0
- package/src/task/Index.ts +8 -0
- package/src/task/PROMPT.ts +9 -0
- package/src/task/PROMPT.ts.txt +237 -0
- package/src/task/Scheduler.ts +245 -0
- package/src/task/TaskPlugin.ts +167 -0
- package/src/task/runtime/CronTrigger.ts +110 -0
- package/src/task/runtime/Frontmatter.ts +24 -0
- package/src/task/runtime/Model.ts +347 -0
- package/src/task/runtime/Paths.ts +116 -0
- package/src/task/runtime/Runner.ts +519 -0
- package/src/task/runtime/Store.ts +253 -0
- package/src/task/runtime/TaskActionExecution.ts +276 -0
- package/src/task/runtime/TaskActionInput.ts +281 -0
- package/src/task/runtime/TaskPluginActionRegistry.ts +214 -0
- package/src/task/runtime/TaskPluginActions.ts +5 -0
- package/src/task/runtime/TaskPluginSystem.ts +8 -0
- package/src/task/runtime/TaskPromptAssets.ts +14 -0
- package/src/task/runtime/TaskRunArtifacts.ts +493 -0
- package/src/task/runtime/TaskRunChatDispatch.ts +81 -0
- package/src/task/runtime/TaskRunnerProgress.ts +112 -0
- package/src/task/runtime/TaskRunnerRound.ts +337 -0
- package/src/task/runtime/TaskRunnerScript.ts +175 -0
- package/src/task/runtime/TaskRunnerSession.ts +190 -0
- package/src/task/runtime/TaskRunnerTypes.ts +199 -0
- package/src/task/types/Cron.ts +16 -0
- package/src/task/types/Task.ts +157 -0
- package/src/task/types/TaskCommand.ts +165 -0
- package/src/task/types/TaskPluginTypes.ts +55 -0
- package/src/tts/Dependency.ts +473 -0
- package/src/tts/Plugin.ts +518 -0
- package/src/tts/PluginSupport.ts +85 -0
- package/src/tts/runtime/Catalog.ts +97 -0
- package/src/tts/runtime/DependencyInstaller.ts +436 -0
- package/src/tts/runtime/Installer.ts +297 -0
- package/src/tts/runtime/Paths.ts +39 -0
- package/src/tts/runtime/Synthesizer.ts +480 -0
- package/src/tts/types/Tts.ts +99 -0
- package/src/tts/types/TtsPlugin.ts +164 -0
- package/src/voice/Config.ts +135 -0
- package/src/voice/Dependency.ts +329 -0
- package/src/voice/InboundAugment.ts +59 -0
- package/src/voice/ModelCatalog.ts +43 -0
- package/src/voice/runtime/Catalog.ts +68 -0
- package/src/voice/runtime/DependencyInstaller.ts +505 -0
- package/src/voice/runtime/Installer.ts +324 -0
- package/src/voice/runtime/Paths.ts +26 -0
- package/src/voice/runtime/Transcriber.ts +467 -0
- package/src/voice/types/Voice.ts +68 -0
- package/src/voice/types/VoicePlugin.ts +194 -0
- package/src/web/Dependency.ts +17 -0
- package/src/web/PROMPT.agent-browser.ts +9 -0
- package/src/web/PROMPT.agent-browser.ts.txt +17 -0
- package/src/web/PROMPT.ts +9 -0
- package/src/web/PROMPT.ts.txt +33 -0
- package/src/web/PROMPT.web-access.ts +9 -0
- package/src/web/PROMPT.web-access.ts.txt +13 -0
- package/src/web/Plugin.ts +523 -0
- package/src/web/WebPromptAssets.ts +26 -0
- package/src/web/runtime/Config.ts +105 -0
- package/src/web/runtime/Source.ts +257 -0
- package/src/web/types/WebPlugin.ts +141 -0
- package/src/workboard/Plugin.ts +94 -0
- package/src/workboard/runtime/Collector.ts +79 -0
- package/src/workboard/runtime/Normalizer.ts +213 -0
- package/src/workboard/runtime/Store.ts +110 -0
- package/src/workboard/types/Workboard.ts +158 -0
- package/tsconfig.json +26 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QQ 渠道门面。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - `QQBot` 只保留渠道层编排职责:入站授权、命令处理、消息入队、回复调度。
|
|
6
|
+
* - Gateway 连接、自愈重连、消息回发已经下沉到 `QQGatewayClient`。
|
|
7
|
+
* - 文本清洗、作者识别、标题解析、附件宽松提取已经下沉到 `QQInbound`。
|
|
8
|
+
* - READY 身份解析、命令映射、入站增强组装已经下沉到 `QQSupport`。
|
|
9
|
+
*/
|
|
10
|
+
import { BaseChatChannel } from "../../../chat/channels/BaseChatChannel.js";
|
|
11
|
+
import { parseChatMessageMarkup } from "@downcity/agent/internal/executor/messages/ChatMessageMarkup.js";
|
|
12
|
+
import { QqInboundDedupeStore } from "./QQInboundDedupe.js";
|
|
13
|
+
import { getQqEventCaptureConfig } from "./QQEventCapture.js";
|
|
14
|
+
import { QQGatewayClient } from "./QQGatewayClient.js";
|
|
15
|
+
import { extractQqReadyIdentity, resolveQqCommandAction, } from "./QQSupport.js";
|
|
16
|
+
import { handleQqC2CMessage, handleQqChannelMessage, handleQqGroupMessage, } from "./QQMessageHandler.js";
|
|
17
|
+
import { EventType } from "../../../chat/channels/qq/types/QqChannel.js";
|
|
18
|
+
/**
|
|
19
|
+
* QQ 平台适配器。
|
|
20
|
+
*/
|
|
21
|
+
export class QQBot extends BaseChatChannel {
|
|
22
|
+
appId;
|
|
23
|
+
appSecret;
|
|
24
|
+
useSandbox;
|
|
25
|
+
gateway;
|
|
26
|
+
inboundDedupeStore;
|
|
27
|
+
msgSeqByMessageKey = new Map();
|
|
28
|
+
botUserId = "";
|
|
29
|
+
botDisplayName = "";
|
|
30
|
+
constructor(context, appId, appSecret, useSandbox = false) {
|
|
31
|
+
super({ channel: "qq", context });
|
|
32
|
+
this.appId = appId;
|
|
33
|
+
this.appSecret = appSecret;
|
|
34
|
+
this.useSandbox = useSandbox;
|
|
35
|
+
this.inboundDedupeStore = new QqInboundDedupeStore({
|
|
36
|
+
rootPath: this.rootPath,
|
|
37
|
+
logger: this.logger,
|
|
38
|
+
});
|
|
39
|
+
this.gateway = new QQGatewayClient({
|
|
40
|
+
rootPath: this.rootPath,
|
|
41
|
+
logger: this.logger,
|
|
42
|
+
appId: this.appId,
|
|
43
|
+
appSecret: this.appSecret,
|
|
44
|
+
useSandbox: this.useSandbox,
|
|
45
|
+
captureConfig: getQqEventCaptureConfig(this.rootPath),
|
|
46
|
+
onDispatch: async (params) => {
|
|
47
|
+
await this.handleDispatch(params.eventType, params.data);
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
getChatKey(params) {
|
|
52
|
+
const chatType = typeof params.chatType === "string" && params.chatType
|
|
53
|
+
? params.chatType
|
|
54
|
+
: "unknown";
|
|
55
|
+
return `qq-${chatType}-${params.chatId}`;
|
|
56
|
+
}
|
|
57
|
+
async sendTextToPlatform(params) {
|
|
58
|
+
const parsedMessage = parseChatMessageMarkup(String(params.text ?? ""));
|
|
59
|
+
if (parsedMessage.files.length > 0) {
|
|
60
|
+
throw new Error("QQ outbound attachment is not supported yet.");
|
|
61
|
+
}
|
|
62
|
+
const chatType = typeof params.chatType === "string" ? params.chatType : "";
|
|
63
|
+
const messageId = typeof params.messageId === "string" ? params.messageId : "";
|
|
64
|
+
if (!chatType || !messageId) {
|
|
65
|
+
throw new Error("QQ requires chatType + messageId to send a reply");
|
|
66
|
+
}
|
|
67
|
+
const key = `${chatType}:${params.chatId}:${messageId}`;
|
|
68
|
+
const nextSeq = (this.msgSeqByMessageKey.get(key) ?? 0) + 1;
|
|
69
|
+
this.msgSeqByMessageKey.set(key, nextSeq);
|
|
70
|
+
await this.gateway.sendMessage(params.chatId, chatType, messageId, parsedMessage.bodyText, nextSeq);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 读取 QQ 状态快照。
|
|
74
|
+
*/
|
|
75
|
+
getExecutorStatus() {
|
|
76
|
+
const runtime = this.gateway.getExecutorStatus();
|
|
77
|
+
return {
|
|
78
|
+
...runtime,
|
|
79
|
+
detail: {
|
|
80
|
+
...runtime.detail,
|
|
81
|
+
appId: this.appId || null,
|
|
82
|
+
botName: this.botDisplayName || null,
|
|
83
|
+
botUserId: this.botUserId || null,
|
|
84
|
+
sandbox: this.useSandbox,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* 执行 QQ 连通性测试。
|
|
90
|
+
*/
|
|
91
|
+
async testConnection() {
|
|
92
|
+
const result = await this.gateway.testConnection();
|
|
93
|
+
const detail = result.detail && typeof result.detail === "object" && !Array.isArray(result.detail)
|
|
94
|
+
? result.detail
|
|
95
|
+
: {};
|
|
96
|
+
return {
|
|
97
|
+
...result,
|
|
98
|
+
detail: {
|
|
99
|
+
...detail,
|
|
100
|
+
botName: this.botDisplayName || null,
|
|
101
|
+
botUserId: this.botUserId || null,
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* 启动机器人。
|
|
107
|
+
*/
|
|
108
|
+
async start() {
|
|
109
|
+
if (!this.appId || !this.appSecret) {
|
|
110
|
+
this.logger.warn("QQ 机器人配置不完整(需要 appId 和 appSecret),跳过启动");
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
this.logger.info("🤖 正在启动 QQ 机器人...");
|
|
114
|
+
this.logger.info(` AppID: ${this.appId}`);
|
|
115
|
+
this.logger.info(` 沙箱模式: ${this.useSandbox ? "是" : "否"}`);
|
|
116
|
+
try {
|
|
117
|
+
await this.inboundDedupeStore.load();
|
|
118
|
+
await this.gateway.start();
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
this.logger.error("启动 QQ Bot 失败", { error: String(error) });
|
|
122
|
+
await this.gateway.stop();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 停止机器人。
|
|
127
|
+
*/
|
|
128
|
+
async stop() {
|
|
129
|
+
await this.gateway.stop();
|
|
130
|
+
this.logger.info("QQ Bot 已停止");
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Dispatch 事件总入口。
|
|
134
|
+
*/
|
|
135
|
+
async handleDispatch(eventType, data) {
|
|
136
|
+
this.logger.info(`收到事件: ${eventType}`);
|
|
137
|
+
switch (eventType) {
|
|
138
|
+
case EventType.READY:
|
|
139
|
+
this.captureReadyIdentity(data);
|
|
140
|
+
break;
|
|
141
|
+
case EventType.RESUMED:
|
|
142
|
+
this.logger.info("连接已恢复");
|
|
143
|
+
break;
|
|
144
|
+
case EventType.GROUP_AT_MESSAGE_CREATE:
|
|
145
|
+
await this.handleGroupMessage({
|
|
146
|
+
eventType: EventType.GROUP_AT_MESSAGE_CREATE,
|
|
147
|
+
data: data,
|
|
148
|
+
});
|
|
149
|
+
break;
|
|
150
|
+
case EventType.GROUP_MESSAGE_CREATE:
|
|
151
|
+
await this.handleGroupMessage({
|
|
152
|
+
eventType: EventType.GROUP_MESSAGE_CREATE,
|
|
153
|
+
data: data,
|
|
154
|
+
});
|
|
155
|
+
break;
|
|
156
|
+
case EventType.C2C_MESSAGE_CREATE:
|
|
157
|
+
await this.handleC2CMessage(data);
|
|
158
|
+
break;
|
|
159
|
+
case EventType.AT_MESSAGE_CREATE:
|
|
160
|
+
await this.handleChannelMessage(data);
|
|
161
|
+
break;
|
|
162
|
+
default:
|
|
163
|
+
this.logger.debug(`未处理的事件类型: ${eventType}`);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* 捕获 READY 事件中的机器人身份信息。
|
|
168
|
+
*/
|
|
169
|
+
captureReadyIdentity(data) {
|
|
170
|
+
const identity = extractQqReadyIdentity(data);
|
|
171
|
+
this.botDisplayName = identity.botDisplayName;
|
|
172
|
+
this.botUserId = identity.botUserId;
|
|
173
|
+
this.logger.info(`QQ Bot 已就绪,WS Context ID: ${identity.wsContextId}`);
|
|
174
|
+
this.logger.info(`用户: ${this.botDisplayName || "N/A"}`);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 处理群聊消息。
|
|
178
|
+
*/
|
|
179
|
+
async handleGroupMessage(params) {
|
|
180
|
+
await handleQqGroupMessage(this.getMessageHandlerOptions(), params);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* 处理 C2C 私聊消息。
|
|
184
|
+
*/
|
|
185
|
+
async handleC2CMessage(data) {
|
|
186
|
+
await handleQqC2CMessage(this.getMessageHandlerOptions(), data);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* 处理频道消息。
|
|
190
|
+
*/
|
|
191
|
+
async handleChannelMessage(data) {
|
|
192
|
+
await handleQqChannelMessage(this.getMessageHandlerOptions(), data);
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* 构造 QQ 入站处理依赖。
|
|
196
|
+
*/
|
|
197
|
+
getMessageHandlerOptions() {
|
|
198
|
+
return {
|
|
199
|
+
context: this.context,
|
|
200
|
+
rootPath: this.rootPath,
|
|
201
|
+
logger: this.logger,
|
|
202
|
+
getBotUserId: () => this.botUserId,
|
|
203
|
+
getChatKey: (params) => this.getChatKey(params),
|
|
204
|
+
observeIncomingAuthorization: async (params) => {
|
|
205
|
+
await this.observeIncomingAuthorization(params);
|
|
206
|
+
},
|
|
207
|
+
evaluateIncomingAuthorization: async (params) => await this.evaluateIncomingAuthorization(params),
|
|
208
|
+
sendAuthorizationText: async (params) => {
|
|
209
|
+
await this.sendAuthorizationText(params);
|
|
210
|
+
},
|
|
211
|
+
buildUnauthorizedBlockedText: (params) => this.buildUnauthorizedBlockedText(params),
|
|
212
|
+
shouldSkipDuplicatedInboundMessage: async (eventType, messageId) => await this.shouldSkipDuplicatedInboundMessage(eventType, messageId),
|
|
213
|
+
enqueueAuditMessage: async (params) => {
|
|
214
|
+
await this.enqueueAuditMessage(params);
|
|
215
|
+
},
|
|
216
|
+
handleCommand: async (params) => {
|
|
217
|
+
await this.handleCommand(params.chatId, params.chatType, params.messageId, params.command);
|
|
218
|
+
},
|
|
219
|
+
executeAndReply: async (params) => {
|
|
220
|
+
await this.executeAndReply(params.chatId, params.chatType, params.messageId, params.instructions, params.actor, params.chatTitle);
|
|
221
|
+
},
|
|
222
|
+
getAuthToken: async () => await this.gateway.getAuthToken(),
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* 入站去重检查。
|
|
227
|
+
*/
|
|
228
|
+
async shouldSkipDuplicatedInboundMessage(eventType, messageId) {
|
|
229
|
+
const id = typeof messageId === "string" ? messageId.trim() : "";
|
|
230
|
+
if (!id)
|
|
231
|
+
return false;
|
|
232
|
+
const duplicated = await this.inboundDedupeStore.markAndCheckDuplicate({
|
|
233
|
+
eventType,
|
|
234
|
+
messageId: id,
|
|
235
|
+
});
|
|
236
|
+
if (!duplicated)
|
|
237
|
+
return false;
|
|
238
|
+
this.logger.info("忽略重复入站消息", {
|
|
239
|
+
eventType,
|
|
240
|
+
messageId: id,
|
|
241
|
+
});
|
|
242
|
+
return true;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* 处理命令消息。
|
|
246
|
+
*/
|
|
247
|
+
async handleCommand(chatId, chatType, messageId, command) {
|
|
248
|
+
this.logger.info(`收到命令: ${command}`);
|
|
249
|
+
const action = resolveQqCommandAction(command);
|
|
250
|
+
if (action.action === "clear_chat") {
|
|
251
|
+
await this.clearChatByTarget({
|
|
252
|
+
chatId,
|
|
253
|
+
chatType,
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
await this.gateway.sendMessage(chatId, chatType, messageId, action.responseText);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* 执行指令并回复。
|
|
260
|
+
*/
|
|
261
|
+
async executeAndReply(chatId, chatType, messageId, instructions, actor, chatTitle) {
|
|
262
|
+
try {
|
|
263
|
+
await this.enqueueMessage({
|
|
264
|
+
chatId,
|
|
265
|
+
text: instructions,
|
|
266
|
+
chatType,
|
|
267
|
+
messageId,
|
|
268
|
+
...(actor?.userId ? { userId: actor.userId } : {}),
|
|
269
|
+
...(actor?.username ? { username: actor.username } : {}),
|
|
270
|
+
...(chatTitle ? { chatTitle } : {}),
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
catch (error) {
|
|
274
|
+
await this.gateway.sendMessage(chatId, chatType, messageId, `❌ 执行错误: ${String(error)}`, 1);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* 创建 QQ 机器人实例。
|
|
280
|
+
*/
|
|
281
|
+
export async function createQQBot(config, context) {
|
|
282
|
+
if (!config.enabled || !config.appId || !config.appSecret) {
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
return new QQBot(context, config.appId, config.appSecret, config.sandbox || false);
|
|
286
|
+
}
|
|
287
|
+
//# sourceMappingURL=QQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QQ.js","sourceRoot":"","sources":["../../../../src/chat/channels/qq/QQ.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iEAAiE,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GAGrB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAElE;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,eAAe;IACvB,KAAK,CAAS;IACd,SAAS,CAAS;IAClB,UAAU,CAAU;IACpB,OAAO,CAAkB;IACzB,kBAAkB,CAAuB;IACzC,kBAAkB,GAAwB,IAAI,GAAG,EAAE,CAAC;IAC7D,SAAS,GAAG,EAAE,CAAC;IACf,cAAc,GAAG,EAAE,CAAC;IAE5B,YACE,OAAqB,EACrB,KAAa,EACb,SAAiB,EACjB,aAAsB,KAAK;QAE3B,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AE,YAAY;gBAClB,QAAQ;gBACR,SAAS;gBACT,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAClD,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACxD,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACpC,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAC5B,MAAM,EACN,QAAQ,EACR,SAAS,EACT,WAAW,MAAM,CAAC,KAAK,CAAC,EAAE,EAC1B,CAAC,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,MAAgB,EAChB,OAAqB;IAErB,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QAC1D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,KAAK,CACd,OAAO,EACP,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,OAAO,IAAI,KAAK,CACxB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QQEventCapture:QQ 原始网关事件落盘辅助。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 只负责“是否捕获”和“如何落盘”,不参与 QQ 主流程路由。
|
|
6
|
+
* - 开启后可帮助排查 QQ 字段缺失、事件结构差异、平台权限差异等问题。
|
|
7
|
+
*/
|
|
8
|
+
import type { Logger } from "@downcity/agent/internal/utils/logger/Logger.js";
|
|
9
|
+
import type { QQEventCaptureConfig, QQGatewayPayload } from "../../../chat/channels/qq/types/QqChannel.js";
|
|
10
|
+
/**
|
|
11
|
+
* 读取 QQ 原始事件捕获配置。
|
|
12
|
+
*/
|
|
13
|
+
export declare function getQqEventCaptureConfig(projectRoot: string): QQEventCaptureConfig;
|
|
14
|
+
/**
|
|
15
|
+
* 捕获一条 QQ WebSocket 原始载荷。
|
|
16
|
+
*/
|
|
17
|
+
export declare function captureQqWsPayload(params: {
|
|
18
|
+
config: QQEventCaptureConfig;
|
|
19
|
+
logger: Logger;
|
|
20
|
+
payload: QQGatewayPayload;
|
|
21
|
+
}): Promise<void>;
|
|
22
|
+
//# sourceMappingURL=QQEventCapture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QQEventCapture.d.ts","sourceRoot":"","sources":["../../../../src/chat/channels/qq/QQEventCapture.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAsB,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAExH;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,oBAAoB,CAyBjF;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE;IAC/C,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,gBAAgB,CAAC;CAC3B,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BhB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QQEventCapture:QQ 原始网关事件落盘辅助。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 只负责“是否捕获”和“如何落盘”,不参与 QQ 主流程路由。
|
|
6
|
+
* - 开启后可帮助排查 QQ 字段缺失、事件结构差异、平台权限差异等问题。
|
|
7
|
+
*/
|
|
8
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
9
|
+
import { join } from "node:path";
|
|
10
|
+
/**
|
|
11
|
+
* 读取 QQ 原始事件捕获配置。
|
|
12
|
+
*/
|
|
13
|
+
export function getQqEventCaptureConfig(projectRoot) {
|
|
14
|
+
const raw = String(process.env.SHIP_QQ_CAPTURE_EVENTS ?? "")
|
|
15
|
+
.trim()
|
|
16
|
+
.toLowerCase();
|
|
17
|
+
if (!raw || ["0", "false", "off", "no"].includes(raw)) {
|
|
18
|
+
return {
|
|
19
|
+
enabled: false,
|
|
20
|
+
mode: "dispatch",
|
|
21
|
+
dir: join(projectRoot, ".downcity", ".debug", "qq-events"),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const mode = raw === "all" ? "all" : raw === "dispatch" ? "dispatch" : "dispatch";
|
|
25
|
+
const dir = typeof process.env.SHIP_QQ_CAPTURE_DIR === "string" &&
|
|
26
|
+
process.env.SHIP_QQ_CAPTURE_DIR.trim()
|
|
27
|
+
? process.env.SHIP_QQ_CAPTURE_DIR.trim()
|
|
28
|
+
: join(projectRoot, ".downcity", ".debug", "qq-events");
|
|
29
|
+
return {
|
|
30
|
+
enabled: true,
|
|
31
|
+
mode,
|
|
32
|
+
dir,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 捕获一条 QQ WebSocket 原始载荷。
|
|
37
|
+
*/
|
|
38
|
+
export async function captureQqWsPayload(params) {
|
|
39
|
+
if (!params.config.enabled)
|
|
40
|
+
return;
|
|
41
|
+
if (params.config.mode === "dispatch" && params.payload.op !== 0) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
try {
|
|
45
|
+
const safeTag = sanitizeFileTag(`${String(params.payload.t ?? "N_A")}`);
|
|
46
|
+
const safeOp = sanitizeFileTag(`${String(params.payload.op ?? "unknown")}`);
|
|
47
|
+
const safeSeq = sanitizeFileTag(`${String(params.payload.s ?? "")}`);
|
|
48
|
+
const filename = `${Date.now()}_${safeOp}_${safeTag}${safeSeq ? `_${safeSeq}` : ""}.json`;
|
|
49
|
+
await mkdir(params.config.dir, { recursive: true });
|
|
50
|
+
await writeFile(join(params.config.dir, filename), JSON.stringify({
|
|
51
|
+
receivedAt: new Date().toISOString(),
|
|
52
|
+
payload: params.payload,
|
|
53
|
+
}, null, 2), "utf-8");
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
params.logger.debug("QQ event capture failed (ignored)", {
|
|
57
|
+
error: String(error),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 把任意文本清洗成文件名安全片段。
|
|
63
|
+
*/
|
|
64
|
+
function sanitizeFileTag(input) {
|
|
65
|
+
return input.replace(/[^a-zA-Z0-9._-]+/g, "_").slice(0, 80) || "N_A";
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=QQEventCapture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QQEventCapture.js","sourceRoot":"","sources":["../../../../src/chat/channels/qq/QQEventCapture.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,WAAmB;IACzD,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI,EAAE,CAAC;SACzD,IAAI,EAAE;SACN,WAAW,EAAE,CAAC;IACjB,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACtD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GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,MAAM,IAAI,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;QAE1F,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACpD,MAAM,SAAS,CACb,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,EACjC,IAAI,CAAC,SAAS,CACZ;YACE,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,EACD,IAAI,EACJ,CAAC,CACF,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE;YACvD,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;SACrB,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CAAC,KAAa;IACpC,OAAO,KAAK,CAAC,OAAO,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QQ Gateway 鉴权与探活辅助函数。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - Access Token、Gateway URL、HTTP 连通性测试都放在这里。
|
|
6
|
+
* - `QQGatewayClient` 只负责编排状态,不再直接内嵌所有 OpenAPI 请求细节。
|
|
7
|
+
*/
|
|
8
|
+
import type { Logger } from "@downcity/agent/internal/utils/logger/Logger.js";
|
|
9
|
+
import type { ChatChannelTestResult } from "../../../chat/types/ChannelStatus.js";
|
|
10
|
+
import type { QqGatewayRuntimeStatus } from "../../../chat/channels/qq/types/QqChannel.js";
|
|
11
|
+
/**
|
|
12
|
+
* Access Token 获取结果。
|
|
13
|
+
*/
|
|
14
|
+
export interface QqAccessTokenResult {
|
|
15
|
+
/**
|
|
16
|
+
* 最新 access token。
|
|
17
|
+
*/
|
|
18
|
+
accessToken: string;
|
|
19
|
+
/**
|
|
20
|
+
* token 过期时间戳(毫秒)。
|
|
21
|
+
*/
|
|
22
|
+
accessTokenExpiresAtMs: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 获取 QQ Access Token 所需参数。
|
|
26
|
+
*/
|
|
27
|
+
export interface FetchQqAccessTokenParams {
|
|
28
|
+
/**
|
|
29
|
+
* 日志器。
|
|
30
|
+
*/
|
|
31
|
+
logger: Logger;
|
|
32
|
+
/**
|
|
33
|
+
* 鉴权 API 基础地址。
|
|
34
|
+
*/
|
|
35
|
+
authApiBase: string;
|
|
36
|
+
/**
|
|
37
|
+
* QQ appId。
|
|
38
|
+
*/
|
|
39
|
+
appId: string;
|
|
40
|
+
/**
|
|
41
|
+
* QQ appSecret。
|
|
42
|
+
*/
|
|
43
|
+
appSecret: string;
|
|
44
|
+
/**
|
|
45
|
+
* 当前缓存 token。
|
|
46
|
+
*/
|
|
47
|
+
cachedAccessToken: string;
|
|
48
|
+
/**
|
|
49
|
+
* 当前缓存 token 过期时间。
|
|
50
|
+
*/
|
|
51
|
+
cachedAccessTokenExpiresAtMs: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 获取 Gateway URL 所需参数。
|
|
55
|
+
*/
|
|
56
|
+
export interface FetchQqGatewayUrlParams {
|
|
57
|
+
/**
|
|
58
|
+
* 日志器。
|
|
59
|
+
*/
|
|
60
|
+
logger: Logger;
|
|
61
|
+
/**
|
|
62
|
+
* OpenAPI 基础地址。
|
|
63
|
+
*/
|
|
64
|
+
apiBase: string;
|
|
65
|
+
/**
|
|
66
|
+
* Bearer 鉴权头。
|
|
67
|
+
*/
|
|
68
|
+
authToken: string;
|
|
69
|
+
/**
|
|
70
|
+
* 获取失败时使用的默认 ws 地址。
|
|
71
|
+
*/
|
|
72
|
+
fallbackWsGateway: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* QQ 连通性测试参数。
|
|
76
|
+
*/
|
|
77
|
+
export interface TestQqGatewayConnectionParams {
|
|
78
|
+
/**
|
|
79
|
+
* appId。
|
|
80
|
+
*/
|
|
81
|
+
appId: string;
|
|
82
|
+
/**
|
|
83
|
+
* appSecret。
|
|
84
|
+
*/
|
|
85
|
+
appSecret: string;
|
|
86
|
+
/**
|
|
87
|
+
* 是否沙箱环境。
|
|
88
|
+
*/
|
|
89
|
+
useSandbox: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* OpenAPI 基础地址。
|
|
92
|
+
*/
|
|
93
|
+
apiBase: string;
|
|
94
|
+
/**
|
|
95
|
+
* 获取鉴权 token 的回调。
|
|
96
|
+
*/
|
|
97
|
+
getAuthToken: () => Promise<string>;
|
|
98
|
+
/**
|
|
99
|
+
* 读取当前 runtime 状态的回调。
|
|
100
|
+
*/
|
|
101
|
+
getExecutorStatus: () => QqGatewayRuntimeStatus;
|
|
102
|
+
/**
|
|
103
|
+
* 当探活发现异常时触发重连的回调。
|
|
104
|
+
*/
|
|
105
|
+
requestReconnect: (reason: string, delayMs?: number) => void;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 获取并刷新 QQ Access Token。
|
|
109
|
+
*/
|
|
110
|
+
export declare function fetchQqAccessToken(params: FetchQqAccessTokenParams): Promise<QqAccessTokenResult>;
|
|
111
|
+
/**
|
|
112
|
+
* 获取 QQ Gateway 地址。
|
|
113
|
+
*/
|
|
114
|
+
export declare function fetchQqGatewayUrl(params: FetchQqGatewayUrlParams): Promise<string>;
|
|
115
|
+
/**
|
|
116
|
+
* 执行 QQ HTTP 连通性测试。
|
|
117
|
+
*/
|
|
118
|
+
export declare function testQqGatewayConnection(params: TestQqGatewayConnectionParams): Promise<ChatChannelTestResult>;
|
|
119
|
+
//# sourceMappingURL=QQGatewayAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QQGatewayAuth.d.ts","sourceRoot":"","sources":["../../../../src/chat/channels/qq/QQGatewayAuth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,4BAA4B,EAAE,MAAM,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,KAAK,EAAE,MAA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