@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,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QQ 渠道辅助逻辑。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 把 READY 身份解析、命令映射、入站增强组装等从 `QQ.ts` 抽离。
|
|
6
|
+
* - 这些逻辑尽量保持纯函数或最小依赖,便于单测与复用。
|
|
7
|
+
*/
|
|
8
|
+
import { buildChatInboundText, augmentChatInboundInput } from "../../../chat/runtime/InboundAugment.js";
|
|
9
|
+
import { resolveQqAttachmentLocalPath } from "./VoiceInput.js";
|
|
10
|
+
/**
|
|
11
|
+
* 解析 READY 事件中的机器人身份信息。
|
|
12
|
+
*/
|
|
13
|
+
export function extractQqReadyIdentity(data) {
|
|
14
|
+
const readyUser = data.user && typeof data.user === "object" && !Array.isArray(data.user)
|
|
15
|
+
? data.user
|
|
16
|
+
: undefined;
|
|
17
|
+
return {
|
|
18
|
+
wsContextId: typeof data.context_id === "string" ? data.context_id : "",
|
|
19
|
+
botDisplayName: [
|
|
20
|
+
readyUser?.username,
|
|
21
|
+
readyUser?.nickname,
|
|
22
|
+
readyUser?.name,
|
|
23
|
+
readyUser?.bot_name,
|
|
24
|
+
readyUser?.user?.username,
|
|
25
|
+
readyUser?.user?.nickname,
|
|
26
|
+
readyUser?.user?.name,
|
|
27
|
+
]
|
|
28
|
+
.map((value) => (typeof value === "string" ? value.trim() : ""))
|
|
29
|
+
.find(Boolean) || "",
|
|
30
|
+
botUserId: typeof readyUser?.id === "string"
|
|
31
|
+
? readyUser.id.trim()
|
|
32
|
+
: typeof readyUser?.user_id === "string"
|
|
33
|
+
? readyUser.user_id.trim()
|
|
34
|
+
: typeof readyUser?.user_openid === "string"
|
|
35
|
+
? readyUser.user_openid.trim()
|
|
36
|
+
: typeof readyUser?.openid === "string"
|
|
37
|
+
? readyUser.openid.trim()
|
|
38
|
+
: "",
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 解析 QQ 命令动作。
|
|
43
|
+
*/
|
|
44
|
+
export function resolveQqCommandAction(command) {
|
|
45
|
+
const normalized = String(command || "").toLowerCase().trim();
|
|
46
|
+
const head = normalized.split(" ")[0] || "";
|
|
47
|
+
switch (head) {
|
|
48
|
+
case "/help":
|
|
49
|
+
case "/帮助":
|
|
50
|
+
return {
|
|
51
|
+
action: "reply_only",
|
|
52
|
+
responseText: `🤖 Downcity Bot
|
|
53
|
+
|
|
54
|
+
可用命令:
|
|
55
|
+
- /help 或 /帮助 - 查看帮助信息
|
|
56
|
+
- /status 或 /状态 - 查看 Agent 状态
|
|
57
|
+
- /tasks 或 /任务 - 查看任务列表
|
|
58
|
+
- /clear 或 /清除 - 彻底删除当前对话
|
|
59
|
+
- <任意消息> - 执行指令`,
|
|
60
|
+
};
|
|
61
|
+
case "/status":
|
|
62
|
+
case "/状态":
|
|
63
|
+
return {
|
|
64
|
+
action: "reply_only",
|
|
65
|
+
responseText: "📊 Agent 状态: 运行中\n任务数: 0\n待审批: 0",
|
|
66
|
+
};
|
|
67
|
+
case "/tasks":
|
|
68
|
+
case "/任务":
|
|
69
|
+
return {
|
|
70
|
+
action: "reply_only",
|
|
71
|
+
responseText: "📋 任务列表\n暂无任务",
|
|
72
|
+
};
|
|
73
|
+
case "/clear":
|
|
74
|
+
case "/清除":
|
|
75
|
+
return {
|
|
76
|
+
action: "clear_chat",
|
|
77
|
+
responseText: "✅ 对话已彻底删除",
|
|
78
|
+
};
|
|
79
|
+
default:
|
|
80
|
+
return {
|
|
81
|
+
action: "reply_only",
|
|
82
|
+
responseText: `未知命令: ${command}\n输入 /help 查看可用命令`,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 解析 QQ 群消息的 chatId。
|
|
88
|
+
*/
|
|
89
|
+
export function resolveQqGroupChatId(data) {
|
|
90
|
+
return [
|
|
91
|
+
data.group_openid,
|
|
92
|
+
data.group_id,
|
|
93
|
+
data.group_code,
|
|
94
|
+
data.group_uin,
|
|
95
|
+
data.channel_id,
|
|
96
|
+
data.guild_id,
|
|
97
|
+
]
|
|
98
|
+
.map((value) => (typeof value === "string" ? value.trim() : ""))
|
|
99
|
+
.find(Boolean) || "";
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 解析 QQ C2C 消息的 chatId。
|
|
103
|
+
*/
|
|
104
|
+
export function resolveQqC2cChatId(params) {
|
|
105
|
+
const { data, actorUserId } = params;
|
|
106
|
+
return [
|
|
107
|
+
actorUserId,
|
|
108
|
+
data.user_openid,
|
|
109
|
+
data.openid,
|
|
110
|
+
data.author_id,
|
|
111
|
+
data.author?.user_openid,
|
|
112
|
+
data.author?.member_openid,
|
|
113
|
+
data.author?.openid,
|
|
114
|
+
data.author?.id,
|
|
115
|
+
data.author?.user_id,
|
|
116
|
+
data.author?.user?.user_openid,
|
|
117
|
+
data.author?.user?.openid,
|
|
118
|
+
data.author?.user?.id,
|
|
119
|
+
data.author?.user?.user_id,
|
|
120
|
+
]
|
|
121
|
+
.map((value) => (typeof value === "string" ? value.trim() : ""))
|
|
122
|
+
.find(Boolean) || "";
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* 构造 QQ 入站执行指令(文本 + 语音转写增强)。
|
|
126
|
+
*/
|
|
127
|
+
export async function buildQqInboundInstructions(params) {
|
|
128
|
+
const text = String(params.userMessage || "").trim();
|
|
129
|
+
const authToken = await params.getAuthToken();
|
|
130
|
+
const resolvedAttachments = await Promise.all(params.attachments.map(async (attachment) => {
|
|
131
|
+
const base = {
|
|
132
|
+
channel: "qq",
|
|
133
|
+
kind: attachment.kind,
|
|
134
|
+
...(attachment.fileName ? { fileName: attachment.fileName } : {}),
|
|
135
|
+
...(attachment.contentType ? { contentType: attachment.contentType } : {}),
|
|
136
|
+
...(attachment.attachmentId ? { attachmentId: attachment.attachmentId } : {}),
|
|
137
|
+
};
|
|
138
|
+
if (attachment.kind !== "voice" && attachment.kind !== "audio") {
|
|
139
|
+
return {
|
|
140
|
+
...base,
|
|
141
|
+
...(attachment.localPath ? { path: attachment.localPath } : {}),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
try {
|
|
145
|
+
const localPath = await resolveQqAttachmentLocalPath({
|
|
146
|
+
rootPath: params.rootPath,
|
|
147
|
+
attachment,
|
|
148
|
+
authToken,
|
|
149
|
+
});
|
|
150
|
+
return {
|
|
151
|
+
...base,
|
|
152
|
+
...(localPath ? { path: localPath } : {}),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
catch {
|
|
156
|
+
return base;
|
|
157
|
+
}
|
|
158
|
+
}));
|
|
159
|
+
return buildChatInboundText(await augmentChatInboundInput({
|
|
160
|
+
context: params.context,
|
|
161
|
+
input: {
|
|
162
|
+
channel: "qq",
|
|
163
|
+
chatId: params.chatId,
|
|
164
|
+
chatKey: params.chatKey,
|
|
165
|
+
messageId: params.messageId,
|
|
166
|
+
rootPath: params.rootPath,
|
|
167
|
+
bodyText: text || undefined,
|
|
168
|
+
attachments: resolvedAttachments,
|
|
169
|
+
},
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=QQSupport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QQSupport.js","sourceRoot":"","sources":["../../../../src/chat/channels/qq/QQSupport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAKjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAwE/D;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAgB;IACrD,MAAM,SAAS,GACb,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;QACrE,CAAC,CAAE,IAAI,CAAC,IAAoB;QAC5B,CAAC,CAAC,SAAS,CAAC;IAChB,OAAO;QACL,WAAW,EAAE,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;QACvE,cAAc,EACZ;YACE,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,IAAI;YACf,SAAS,EAAE,QAAQ;YACnB,SAAS,EAA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SAC9E,CAAC;QACF,IAAI,UAAU,CAAC,IAAI,KAAK,OAAO,IAAI,UAAU,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAC/D,OAAO;gBACL,GAAG,IAAI;gBACP,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAChE,CAAC;QACJ,CAAC;QACD,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,MAAM,4BAA4B,CAAC;gBACnD,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,UAAU;gBACV,SAAS;aACV,CAAC,CAAC;YACH,OAAO;gBACL,GAAG,IAAI;gBACP,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC1C,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC,CAAC,CACH,CAAC;IAEF,OAAO,oBAAoB,CACzB,MAAM,uBAAuB,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,KAAK,EAAE;YACL,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,QAAQ,EAAE,IAAI,IAAI,SAAS;YAC3B,WAAW,EAAE,mBAAmB;SACjC;KACF,CAAC,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { QqIncomingAttachment } from "../../../chat/types/QqVoice.js";
|
|
2
|
+
/**
|
|
3
|
+
* QQ 入站附件候选字段(宽松结构)。
|
|
4
|
+
*
|
|
5
|
+
* 关键点(中文)
|
|
6
|
+
* - QQ 在不同事件类型下字段命名可能不同,统一在这里做“候选位”收敛。
|
|
7
|
+
* - 字段值保持 `unknown`,由解析函数逐步归一化。
|
|
8
|
+
*/
|
|
9
|
+
type QqVoiceMessagePayload = {
|
|
10
|
+
/**
|
|
11
|
+
* 主附件数组字段。
|
|
12
|
+
*/
|
|
13
|
+
attachments?: unknown;
|
|
14
|
+
/**
|
|
15
|
+
* 备用文件数组字段。
|
|
16
|
+
*/
|
|
17
|
+
files?: unknown;
|
|
18
|
+
/**
|
|
19
|
+
* 单个或多个文件信息字段(可能是 JSON 字符串)。
|
|
20
|
+
*/
|
|
21
|
+
file_info?: unknown;
|
|
22
|
+
/**
|
|
23
|
+
* 备用文件信息数组字段。
|
|
24
|
+
*/
|
|
25
|
+
file_infos?: unknown;
|
|
26
|
+
/**
|
|
27
|
+
* 单个媒体字段。
|
|
28
|
+
*/
|
|
29
|
+
media?: unknown;
|
|
30
|
+
/**
|
|
31
|
+
* 媒体数组字段。
|
|
32
|
+
*/
|
|
33
|
+
medias?: unknown;
|
|
34
|
+
/**
|
|
35
|
+
* 单独音频字段。
|
|
36
|
+
*/
|
|
37
|
+
audio?: unknown;
|
|
38
|
+
/**
|
|
39
|
+
* 单独语音字段。
|
|
40
|
+
*/
|
|
41
|
+
voice?: unknown;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* 从 QQ 入站 payload 中提取附件集合(best-effort)。
|
|
45
|
+
*
|
|
46
|
+
* 关键点(中文)
|
|
47
|
+
* - 同时兼容数组字段、单对象字段、以及 JSON 字符串字段。
|
|
48
|
+
* - 返回值已做去重,可直接用于后续下载 / 转写流程。
|
|
49
|
+
*/
|
|
50
|
+
export declare function extractQqIncomingAttachments(payload: QqVoiceMessagePayload): QqIncomingAttachment[];
|
|
51
|
+
/**
|
|
52
|
+
* 解析 QQ 入站附件的本地路径。
|
|
53
|
+
*
|
|
54
|
+
* 关键点(中文)
|
|
55
|
+
* - 本地已有路径优先直接复用。
|
|
56
|
+
* - 远程 URL 会按需下载到 cache,再返回绝对路径。
|
|
57
|
+
*/
|
|
58
|
+
export declare function resolveQqAttachmentLocalPath(params: {
|
|
59
|
+
rootPath: string;
|
|
60
|
+
attachment: QqIncomingAttachment;
|
|
61
|
+
authToken?: string;
|
|
62
|
+
}): Promise<string>;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=VoiceInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceInput.d.ts","sourceRoot":"","sources":["../../../../src/chat/channels/qq/VoiceInput.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,yBAAyB,CAAC;AAGjC;;;;;;GAMG;AACH,KAAK,qBAAqB,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AA2LF;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,qBAAqB,GAC7B,oBAAoB,EAAE,CAmBxB;AA8FD;;;;;;GAMG;AACH,wBAAsB,4BAA4B,CAAC,MAAM,EAAE;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,oBAAoB,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,MAAM,CAAC,CAWlB"}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
function isRecord(value) {
|
|
4
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
5
|
+
}
|
|
6
|
+
function toStringOrEmpty(value) {
|
|
7
|
+
return typeof value === "string" ? value.trim() : "";
|
|
8
|
+
}
|
|
9
|
+
function toStringOrNumberText(value) {
|
|
10
|
+
if (typeof value === "string")
|
|
11
|
+
return value.trim();
|
|
12
|
+
if (typeof value === "number" && Number.isFinite(value))
|
|
13
|
+
return String(value);
|
|
14
|
+
if (typeof value === "bigint")
|
|
15
|
+
return String(value);
|
|
16
|
+
return "";
|
|
17
|
+
}
|
|
18
|
+
function pickFirstNonEmptyString(obj, keys) {
|
|
19
|
+
for (const key of keys) {
|
|
20
|
+
const text = toStringOrEmpty(obj[key]);
|
|
21
|
+
if (text)
|
|
22
|
+
return text;
|
|
23
|
+
}
|
|
24
|
+
return "";
|
|
25
|
+
}
|
|
26
|
+
function pickFirstNonEmptyText(obj, keys) {
|
|
27
|
+
for (const key of keys) {
|
|
28
|
+
const text = toStringOrNumberText(obj[key]);
|
|
29
|
+
if (text)
|
|
30
|
+
return text;
|
|
31
|
+
}
|
|
32
|
+
return "";
|
|
33
|
+
}
|
|
34
|
+
function parseMaybeJson(value) {
|
|
35
|
+
if (typeof value !== "string")
|
|
36
|
+
return value;
|
|
37
|
+
const text = value.trim();
|
|
38
|
+
if (!text)
|
|
39
|
+
return value;
|
|
40
|
+
if (!(text.startsWith("{") || text.startsWith("[")))
|
|
41
|
+
return value;
|
|
42
|
+
try {
|
|
43
|
+
return JSON.parse(text);
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function isLikelyRemoteUrl(text) {
|
|
50
|
+
return /^https?:\/\//i.test(text) || text.startsWith("//");
|
|
51
|
+
}
|
|
52
|
+
function isLikelyLocalPath(text) {
|
|
53
|
+
return text.startsWith("/") || text.startsWith("./") || text.startsWith("../");
|
|
54
|
+
}
|
|
55
|
+
function withKindHint(raw, kindHint) {
|
|
56
|
+
if (!kindHint)
|
|
57
|
+
return raw;
|
|
58
|
+
if (typeof raw.type === "string" && raw.type.trim())
|
|
59
|
+
return raw;
|
|
60
|
+
if (typeof raw.media_type === "string" && raw.media_type.trim())
|
|
61
|
+
return raw;
|
|
62
|
+
return {
|
|
63
|
+
...raw,
|
|
64
|
+
type: kindHint,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function asRawAttachmentArray(value, kindHint) {
|
|
68
|
+
const parsed = parseMaybeJson(value);
|
|
69
|
+
if (Array.isArray(parsed)) {
|
|
70
|
+
return parsed
|
|
71
|
+
.filter(isRecord)
|
|
72
|
+
.map((item) => withKindHint({ ...item }, kindHint));
|
|
73
|
+
}
|
|
74
|
+
if (isRecord(parsed)) {
|
|
75
|
+
return [withKindHint({ ...parsed }, kindHint)];
|
|
76
|
+
}
|
|
77
|
+
const text = toStringOrEmpty(parsed);
|
|
78
|
+
if (text && (isLikelyRemoteUrl(text) || isLikelyLocalPath(text))) {
|
|
79
|
+
// 关键点(中文):兼容 voice/audio 字段直接给字符串 URL/路径的场景。
|
|
80
|
+
const seeded = isLikelyRemoteUrl(text)
|
|
81
|
+
? { url: text }
|
|
82
|
+
: { local_path: text };
|
|
83
|
+
return [withKindHint(seeded, kindHint)];
|
|
84
|
+
}
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
function inferKindFromHints(hints) {
|
|
88
|
+
const text = hints.toLowerCase();
|
|
89
|
+
if (!text)
|
|
90
|
+
return "unknown";
|
|
91
|
+
if (/audio|voice|ogg|opus|mp3|wav|amr|m4a|aac|silk|speex|pcm|ptt|record/.test(text)) {
|
|
92
|
+
if (/voice|ogg|opus|amr|silk|speex|ptt|record/.test(text))
|
|
93
|
+
return "voice";
|
|
94
|
+
return "audio";
|
|
95
|
+
}
|
|
96
|
+
if (/image|photo|png|jpg|jpeg|webp|gif|bmp/.test(text))
|
|
97
|
+
return "photo";
|
|
98
|
+
if (/video|mp4|mov|webm|m4v|avi|mkv/.test(text))
|
|
99
|
+
return "video";
|
|
100
|
+
if (/pdf|doc|txt|csv|xls|ppt|zip|rar|file|document/.test(text)) {
|
|
101
|
+
return "document";
|
|
102
|
+
}
|
|
103
|
+
return "unknown";
|
|
104
|
+
}
|
|
105
|
+
function normalizeOneAttachment(raw) {
|
|
106
|
+
const rawObj = raw;
|
|
107
|
+
const attachmentId = pickFirstNonEmptyText(rawObj, ["id", "file_id", "media_id", "uuid"]) ||
|
|
108
|
+
undefined;
|
|
109
|
+
const fileName = pickFirstNonEmptyString(rawObj, ["filename", "file_name", "name", "title"]) ||
|
|
110
|
+
undefined;
|
|
111
|
+
const contentType = pickFirstNonEmptyString(rawObj, [
|
|
112
|
+
"content_type",
|
|
113
|
+
"mime_type",
|
|
114
|
+
"contentType",
|
|
115
|
+
"mimeType",
|
|
116
|
+
]) || undefined;
|
|
117
|
+
const url = pickFirstNonEmptyString(rawObj, [
|
|
118
|
+
"url",
|
|
119
|
+
"download_url",
|
|
120
|
+
"file_url",
|
|
121
|
+
"audio_url",
|
|
122
|
+
"voice_url",
|
|
123
|
+
"href",
|
|
124
|
+
"src",
|
|
125
|
+
]) || undefined;
|
|
126
|
+
const localPath = pickFirstNonEmptyString(rawObj, ["local_path", "path", "file_path"]) ||
|
|
127
|
+
undefined;
|
|
128
|
+
const hints = [
|
|
129
|
+
pickFirstNonEmptyText(rawObj, [
|
|
130
|
+
"type",
|
|
131
|
+
"media_type",
|
|
132
|
+
"file_type",
|
|
133
|
+
"msg_type",
|
|
134
|
+
]),
|
|
135
|
+
contentType || "",
|
|
136
|
+
fileName || "",
|
|
137
|
+
url || "",
|
|
138
|
+
]
|
|
139
|
+
.join(" ")
|
|
140
|
+
.trim();
|
|
141
|
+
return {
|
|
142
|
+
kind: inferKindFromHints(hints),
|
|
143
|
+
raw,
|
|
144
|
+
...(attachmentId ? { attachmentId } : {}),
|
|
145
|
+
...(fileName ? { fileName } : {}),
|
|
146
|
+
...(contentType ? { contentType } : {}),
|
|
147
|
+
...(url ? { url } : {}),
|
|
148
|
+
...(localPath ? { localPath } : {}),
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function dedupeAttachments(items) {
|
|
152
|
+
const seen = new Set();
|
|
153
|
+
const out = [];
|
|
154
|
+
for (const item of items) {
|
|
155
|
+
const key = [
|
|
156
|
+
item.attachmentId || "",
|
|
157
|
+
item.url || "",
|
|
158
|
+
item.localPath || "",
|
|
159
|
+
item.fileName || "",
|
|
160
|
+
].join("|");
|
|
161
|
+
if (seen.has(key))
|
|
162
|
+
continue;
|
|
163
|
+
seen.add(key);
|
|
164
|
+
out.push(item);
|
|
165
|
+
}
|
|
166
|
+
return out;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* 从 QQ 入站 payload 中提取附件集合(best-effort)。
|
|
170
|
+
*
|
|
171
|
+
* 关键点(中文)
|
|
172
|
+
* - 同时兼容数组字段、单对象字段、以及 JSON 字符串字段。
|
|
173
|
+
* - 返回值已做去重,可直接用于后续下载 / 转写流程。
|
|
174
|
+
*/
|
|
175
|
+
export function extractQqIncomingAttachments(payload) {
|
|
176
|
+
const sources = [
|
|
177
|
+
{ value: payload.attachments },
|
|
178
|
+
{ value: payload.files },
|
|
179
|
+
{ value: payload.file_info },
|
|
180
|
+
{ value: payload.file_infos },
|
|
181
|
+
{ value: payload.media },
|
|
182
|
+
{ value: payload.medias },
|
|
183
|
+
{ value: payload.audio, kindHint: "audio" },
|
|
184
|
+
{ value: payload.voice, kindHint: "voice" },
|
|
185
|
+
];
|
|
186
|
+
const rawItems = sources.flatMap((source) => asRawAttachmentArray(source.value, source.kindHint));
|
|
187
|
+
if (rawItems.length === 0)
|
|
188
|
+
return [];
|
|
189
|
+
const normalized = rawItems.map((raw) => normalizeOneAttachment(raw));
|
|
190
|
+
return dedupeAttachments(normalized);
|
|
191
|
+
}
|
|
192
|
+
function sanitizeFileName(name) {
|
|
193
|
+
const base = path.basename(name || "").trim();
|
|
194
|
+
if (!base)
|
|
195
|
+
return "";
|
|
196
|
+
return base.replace(/[^\w.\-()@\u4e00-\u9fff]+/g, "_").slice(0, 160);
|
|
197
|
+
}
|
|
198
|
+
function normalizeRemoteUrl(url) {
|
|
199
|
+
if (url.startsWith("//"))
|
|
200
|
+
return `https:${url}`;
|
|
201
|
+
return url;
|
|
202
|
+
}
|
|
203
|
+
function extFromContentType(contentType) {
|
|
204
|
+
const lower = contentType.toLowerCase();
|
|
205
|
+
if (lower.includes("audio/ogg"))
|
|
206
|
+
return ".ogg";
|
|
207
|
+
if (lower.includes("audio/opus"))
|
|
208
|
+
return ".opus";
|
|
209
|
+
if (lower.includes("audio/mpeg"))
|
|
210
|
+
return ".mp3";
|
|
211
|
+
if (lower.includes("audio/mp4"))
|
|
212
|
+
return ".m4a";
|
|
213
|
+
if (lower.includes("audio/wav") || lower.includes("audio/x-wav"))
|
|
214
|
+
return ".wav";
|
|
215
|
+
if (lower.includes("audio/amr"))
|
|
216
|
+
return ".amr";
|
|
217
|
+
if (lower.includes("video/mp4"))
|
|
218
|
+
return ".mp4";
|
|
219
|
+
if (lower.includes("image/jpeg"))
|
|
220
|
+
return ".jpg";
|
|
221
|
+
if (lower.includes("image/png"))
|
|
222
|
+
return ".png";
|
|
223
|
+
return "";
|
|
224
|
+
}
|
|
225
|
+
function defaultExtByKind(kind) {
|
|
226
|
+
if (kind === "voice")
|
|
227
|
+
return ".ogg";
|
|
228
|
+
if (kind === "audio")
|
|
229
|
+
return ".mp3";
|
|
230
|
+
if (kind === "photo")
|
|
231
|
+
return ".jpg";
|
|
232
|
+
if (kind === "video")
|
|
233
|
+
return ".mp4";
|
|
234
|
+
return ".bin";
|
|
235
|
+
}
|
|
236
|
+
async function downloadRemoteAttachment(params) {
|
|
237
|
+
const url = normalizeRemoteUrl(String(params.attachment.url || "").trim());
|
|
238
|
+
if (!url) {
|
|
239
|
+
throw new Error("QQ attachment missing download url");
|
|
240
|
+
}
|
|
241
|
+
const headers = typeof params.authToken === "string" && params.authToken.trim()
|
|
242
|
+
? { Authorization: params.authToken.trim() }
|
|
243
|
+
: undefined;
|
|
244
|
+
let response = await fetch(url, headers ? { headers } : undefined);
|
|
245
|
+
if (!response.ok && headers) {
|
|
246
|
+
// 关键点(中文):某些下载地址不接受 Authorization 头,失败后回退无头重试。
|
|
247
|
+
response = await fetch(url);
|
|
248
|
+
}
|
|
249
|
+
if (!response.ok) {
|
|
250
|
+
throw new Error(`QQ attachment download failed: HTTP ${response.status}`);
|
|
251
|
+
}
|
|
252
|
+
const buf = Buffer.from(await response.arrayBuffer());
|
|
253
|
+
const responseType = String(response.headers.get("content-type") || "").trim();
|
|
254
|
+
const nameFromUrl = (() => {
|
|
255
|
+
try {
|
|
256
|
+
const u = new URL(url);
|
|
257
|
+
return path.basename(u.pathname || "");
|
|
258
|
+
}
|
|
259
|
+
catch {
|
|
260
|
+
return "";
|
|
261
|
+
}
|
|
262
|
+
})();
|
|
263
|
+
const baseRaw = params.attachment.fileName ||
|
|
264
|
+
nameFromUrl ||
|
|
265
|
+
params.attachment.attachmentId ||
|
|
266
|
+
"qq-attachment";
|
|
267
|
+
const safeBase = sanitizeFileName(baseRaw) || "qq-attachment";
|
|
268
|
+
const ext = path.extname(safeBase) ||
|
|
269
|
+
extFromContentType(params.attachment.contentType || "") ||
|
|
270
|
+
extFromContentType(responseType) ||
|
|
271
|
+
defaultExtByKind(params.attachment.kind);
|
|
272
|
+
const dir = path.join(params.rootPath, ".downcity", ".cache", "qq");
|
|
273
|
+
await mkdir(dir, { recursive: true });
|
|
274
|
+
const stem = safeBase.replace(/\.[^.]+$/, "");
|
|
275
|
+
const uniq = `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
276
|
+
const outPath = path.join(dir, `${uniq}-${stem}${ext}`);
|
|
277
|
+
await writeFile(outPath, buf);
|
|
278
|
+
return outPath;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* 解析 QQ 入站附件的本地路径。
|
|
282
|
+
*
|
|
283
|
+
* 关键点(中文)
|
|
284
|
+
* - 本地已有路径优先直接复用。
|
|
285
|
+
* - 远程 URL 会按需下载到 cache,再返回绝对路径。
|
|
286
|
+
*/
|
|
287
|
+
export async function resolveQqAttachmentLocalPath(params) {
|
|
288
|
+
const rawLocal = toStringOrEmpty(params.attachment.localPath);
|
|
289
|
+
if (rawLocal) {
|
|
290
|
+
return path.isAbsolute(rawLocal)
|
|
291
|
+
? rawLocal
|
|
292
|
+
: path.resolve(params.rootPath, rawLocal);
|
|
293
|
+
}
|
|
294
|
+
if (params.attachment.url) {
|
|
295
|
+
return downloadRemoteAttachment(params);
|
|
296
|
+
}
|
|
297
|
+
return "";
|
|
298
|
+
}
|
|
299
|
+
//# sourceMappingURL=VoiceInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceInput.js","sourceRoot":"","sources":["../../../../src/chat/channels/qq/VoiceInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,IAAI,MAAM,WAAW,CAAC;AAkD7B,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC;AAED,SAAS,eAAe,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAc;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;IACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,C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