@downcity/plugins 1.0.149 → 1.0.152
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 +1 -1
- package/bin/BuiltinPlugins.d.ts.map +1 -1
- package/bin/asr/Plugin.d.ts +4 -4
- package/bin/asr/Plugin.d.ts.map +1 -1
- package/bin/asr/Plugin.js +2 -2
- package/bin/asr/Plugin.js.map +1 -1
- package/bin/asr/types/AsrPlugin.d.ts +1 -1
- package/bin/asr/types/AsrPlugin.d.ts.map +1 -1
- package/bin/auth/runtime/AuthorizationConfig.d.ts +1 -1
- package/bin/auth/runtime/AuthorizationConfig.d.ts.map +1 -1
- package/bin/auth/runtime/AuthorizationPolicy.d.ts +1 -1
- package/bin/auth/runtime/AuthorizationPolicy.d.ts.map +1 -1
- package/bin/auth/runtime/AuthorizationStore.d.ts +1 -1
- package/bin/auth/runtime/AuthorizationStore.d.ts.map +1 -1
- package/bin/chat/Action.d.ts +1 -1
- package/bin/chat/Action.d.ts.map +1 -1
- package/bin/chat/Action.js +1 -1
- package/bin/chat/Action.js.map +1 -1
- package/bin/chat/ChatPlugin.d.ts +4 -4
- package/bin/chat/ChatPlugin.d.ts.map +1 -1
- package/bin/chat/ChatPlugin.js +1 -1
- package/bin/chat/ChatPlugin.js.map +1 -1
- package/bin/chat/accounts/Crypto.js +1 -1
- package/bin/chat/accounts/Crypto.js.map +1 -1
- package/bin/chat/accounts/Store.d.ts +1 -1
- package/bin/chat/accounts/Store.d.ts.map +1 -1
- package/bin/chat/accounts/Store.js +1 -1
- package/bin/chat/accounts/Store.js.map +1 -1
- package/bin/chat/channels/BaseChatChannel.d.ts +2 -2
- package/bin/chat/channels/BaseChatChannel.d.ts.map +1 -1
- package/bin/chat/channels/BaseChatChannelQueue.d.ts +1 -1
- package/bin/chat/channels/BaseChatChannelQueue.d.ts.map +1 -1
- package/bin/chat/channels/BaseChatChannelSupport.d.ts +3 -3
- package/bin/chat/channels/BaseChatChannelSupport.d.ts.map +1 -1
- package/bin/chat/channels/RuntimeChannel.d.ts +2 -2
- package/bin/chat/channels/RuntimeChannel.d.ts.map +1 -1
- package/bin/chat/channels/feishu/Feishu.d.ts +1 -1
- package/bin/chat/channels/feishu/Feishu.d.ts.map +1 -1
- package/bin/chat/channels/feishu/FeishuMessageHandler.d.ts +3 -3
- package/bin/chat/channels/feishu/FeishuMessageHandler.d.ts.map +1 -1
- package/bin/chat/channels/feishu/FeishuMessageHandler.js +1 -1
- package/bin/chat/channels/feishu/FeishuMessageHandler.js.map +1 -1
- package/bin/chat/channels/feishu/FeishuPlatformClient.d.ts +1 -1
- package/bin/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -1
- package/bin/chat/channels/feishu/FeishuPlatformLookup.d.ts +1 -1
- package/bin/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -1
- package/bin/chat/channels/feishu/Shared.js +1 -1
- package/bin/chat/channels/feishu/Shared.js.map +1 -1
- package/bin/chat/channels/qq/QQ.d.ts +1 -1
- package/bin/chat/channels/qq/QQ.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQ.js +1 -1
- package/bin/chat/channels/qq/QQ.js.map +1 -1
- package/bin/chat/channels/qq/QQEventCapture.d.ts +1 -1
- package/bin/chat/channels/qq/QQEventCapture.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQGatewayAuth.d.ts +1 -1
- package/bin/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQGatewayClient.d.ts +1 -1
- package/bin/chat/channels/qq/QQGatewayClient.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQGatewayConnection.d.ts +1 -1
- package/bin/chat/channels/qq/QQGatewayConnection.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQGatewayHeartbeat.d.ts +1 -1
- package/bin/chat/channels/qq/QQGatewayHeartbeat.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQGatewayProtocol.d.ts +1 -1
- package/bin/chat/channels/qq/QQGatewayProtocol.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQGatewaySend.d.ts +1 -1
- package/bin/chat/channels/qq/QQGatewaySend.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQInboundDedupe.d.ts +1 -1
- package/bin/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQMessageHandler.d.ts +2 -2
- package/bin/chat/channels/qq/QQMessageHandler.d.ts.map +1 -1
- package/bin/chat/channels/qq/QQSupport.d.ts +2 -2
- package/bin/chat/channels/qq/QQSupport.d.ts.map +1 -1
- package/bin/chat/channels/qq/types/QqChannel.d.ts +1 -1
- package/bin/chat/channels/qq/types/QqChannel.d.ts.map +1 -1
- package/bin/chat/channels/telegram/ApiClient.d.ts +1 -1
- package/bin/chat/channels/telegram/ApiClient.d.ts.map +1 -1
- package/bin/chat/channels/telegram/Bot.d.ts +1 -1
- package/bin/chat/channels/telegram/Bot.d.ts.map +1 -1
- package/bin/chat/channels/telegram/Handlers.d.ts +1 -1
- package/bin/chat/channels/telegram/Handlers.d.ts.map +1 -1
- package/bin/chat/channels/telegram/Shared.js +1 -1
- package/bin/chat/channels/telegram/Shared.js.map +1 -1
- package/bin/chat/channels/telegram/TelegramMessageHandler.d.ts +3 -3
- package/bin/chat/channels/telegram/TelegramMessageHandler.d.ts.map +1 -1
- package/bin/chat/channels/telegram/TelegramMessageHandler.js +1 -1
- package/bin/chat/channels/telegram/TelegramMessageHandler.js.map +1 -1
- package/bin/chat/channels/telegram/TelegramPendingUpdates.d.ts +1 -1
- package/bin/chat/channels/telegram/TelegramPendingUpdates.d.ts.map +1 -1
- package/bin/chat/channels/telegram/TelegramPlatformClient.d.ts +1 -1
- package/bin/chat/channels/telegram/TelegramPlatformClient.d.ts.map +1 -1
- package/bin/chat/runtime/ChannelContextStore.d.ts +1 -1
- package/bin/chat/runtime/ChannelContextStore.d.ts.map +1 -1
- package/bin/chat/runtime/ChannelContextStore.js +1 -1
- package/bin/chat/runtime/ChannelContextStore.js.map +1 -1
- package/bin/chat/runtime/ChatActionExecution.d.ts +2 -2
- package/bin/chat/runtime/ChatActionExecution.d.ts.map +1 -1
- package/bin/chat/runtime/ChatActionInput.d.ts +1 -1
- package/bin/chat/runtime/ChatActionInput.d.ts.map +1 -1
- package/bin/chat/runtime/ChatActionInputSupport.d.ts +1 -1
- package/bin/chat/runtime/ChatActionInputSupport.d.ts.map +1 -1
- package/bin/chat/runtime/ChatAuthorizationRuntime.d.ts +1 -1
- package/bin/chat/runtime/ChatAuthorizationRuntime.d.ts.map +1 -1
- package/bin/chat/runtime/ChatAuthorizationRuntime.js +1 -1
- package/bin/chat/runtime/ChatAuthorizationRuntime.js.map +1 -1
- package/bin/chat/runtime/ChatChannelActions.d.ts +3 -3
- package/bin/chat/runtime/ChatChannelActions.d.ts.map +1 -1
- package/bin/chat/runtime/ChatChannelConfig.d.ts +3 -3
- package/bin/chat/runtime/ChatChannelConfig.d.ts.map +1 -1
- package/bin/chat/runtime/ChatChannelCore.d.ts +2 -2
- package/bin/chat/runtime/ChatChannelCore.d.ts.map +1 -1
- package/bin/chat/runtime/ChatChannelLifecycle.d.ts +1 -1
- package/bin/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -1
- package/bin/chat/runtime/ChatHistoryStore.d.ts +2 -2
- package/bin/chat/runtime/ChatHistoryStore.d.ts.map +1 -1
- package/bin/chat/runtime/ChatHistoryStore.js +1 -1
- package/bin/chat/runtime/ChatHistoryStore.js.map +1 -1
- package/bin/chat/runtime/ChatIngressStore.d.ts +2 -2
- package/bin/chat/runtime/ChatIngressStore.d.ts.map +1 -1
- package/bin/chat/runtime/ChatMetaStore.d.ts +1 -1
- package/bin/chat/runtime/ChatMetaStore.d.ts.map +1 -1
- package/bin/chat/runtime/ChatPluginActionRegistry.d.ts +1 -1
- package/bin/chat/runtime/ChatPluginActionRegistry.d.ts.map +1 -1
- package/bin/chat/runtime/ChatPluginActionRegistry.js +1 -1
- package/bin/chat/runtime/ChatPluginActionRegistry.js.map +1 -1
- package/bin/chat/runtime/ChatPluginSystem.d.ts +1 -1
- package/bin/chat/runtime/ChatPluginSystem.d.ts.map +1 -1
- package/bin/chat/runtime/ChatQueueReplyDispatch.d.ts +2 -2
- package/bin/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -1
- package/bin/chat/runtime/ChatQueueStore.d.ts +1 -1
- package/bin/chat/runtime/ChatQueueStore.d.ts.map +1 -1
- package/bin/chat/runtime/ChatQueueWorker.d.ts +2 -2
- package/bin/chat/runtime/ChatQueueWorker.d.ts.map +1 -1
- package/bin/chat/runtime/ChatQueueWorker.js +1 -3
- package/bin/chat/runtime/ChatQueueWorker.js.map +1 -1
- package/bin/chat/runtime/ChatSendActionInput.d.ts +2 -2
- package/bin/chat/runtime/ChatSendActionInput.d.ts.map +1 -1
- package/bin/chat/runtime/ChatSendActionInput.js +1 -1
- package/bin/chat/runtime/ChatSendActionInput.js.map +1 -1
- package/bin/chat/runtime/ChatSendMetadata.d.ts +1 -1
- package/bin/chat/runtime/ChatSendMetadata.d.ts.map +1 -1
- package/bin/chat/runtime/ChatSession.d.ts +7 -11
- package/bin/chat/runtime/ChatSession.d.ts.map +1 -1
- package/bin/chat/runtime/ChatSession.js +1 -4
- package/bin/chat/runtime/ChatSession.js.map +1 -1
- package/bin/chat/runtime/ChatSessionContextComposer.d.ts +3 -3
- package/bin/chat/runtime/ChatSessionContextComposer.d.ts.map +1 -1
- package/bin/chat/runtime/ChatSessionContextComposer.js +2 -2
- package/bin/chat/runtime/ChatSessionContextComposer.js.map +1 -1
- package/bin/chat/runtime/ChatSessionDelete.d.ts +1 -1
- package/bin/chat/runtime/ChatSessionDelete.d.ts.map +1 -1
- package/bin/chat/runtime/ChatSessionDelete.js +0 -1
- package/bin/chat/runtime/ChatSessionDelete.js.map +1 -1
- package/bin/chat/runtime/ChatSessionTypes.d.ts +2 -2
- package/bin/chat/runtime/ChatSessionTypes.d.ts.map +1 -1
- package/bin/chat/runtime/ChatkeySend.d.ts +1 -1
- package/bin/chat/runtime/ChatkeySend.d.ts.map +1 -1
- package/bin/chat/runtime/DirectDispatchParser.js +1 -1
- package/bin/chat/runtime/DirectDispatchParser.js.map +1 -1
- package/bin/chat/runtime/EnqueueDispatch.d.ts +1 -1
- package/bin/chat/runtime/EnqueueDispatch.d.ts.map +1 -1
- package/bin/chat/runtime/InboundAugment.d.ts +1 -1
- package/bin/chat/runtime/InboundAugment.d.ts.map +1 -1
- package/bin/chat/runtime/PluginDispatch.d.ts +1 -1
- package/bin/chat/runtime/PluginDispatch.d.ts.map +1 -1
- package/bin/chat/runtime/QueuedUserMessage.js +1 -1
- package/bin/chat/runtime/QueuedUserMessage.js.map +1 -1
- package/bin/chat/runtime/ReplyContextFormatter.d.ts +1 -1
- package/bin/chat/runtime/ReplyContextFormatter.d.ts.map +1 -1
- package/bin/chat/runtime/ReplyDispatch.d.ts +1 -1
- package/bin/chat/runtime/ReplyDispatch.d.ts.map +1 -1
- package/bin/chat/runtime/SystemPrompt.d.ts +1 -1
- package/bin/chat/runtime/SystemPrompt.d.ts.map +1 -1
- package/bin/chat/runtime/SystemPrompt.js +1 -1
- package/bin/chat/runtime/SystemPrompt.js.map +1 -1
- package/bin/chat/types/ChannelAccount.d.ts +1 -1
- package/bin/chat/types/ChannelAccount.d.ts.map +1 -1
- package/bin/chat/types/ChatHistory.d.ts +1 -1
- package/bin/chat/types/ChatHistory.d.ts.map +1 -1
- package/bin/chat/types/ChatPluginActionPayload.d.ts +1 -1
- package/bin/chat/types/ChatPluginActionPayload.d.ts.map +1 -1
- package/bin/chat/types/ChatPluginOptions.d.ts +2 -2
- package/bin/chat/types/ChatPluginOptions.d.ts.map +1 -1
- package/bin/chat/types/ChatQueue.d.ts +1 -1
- package/bin/chat/types/ChatQueue.d.ts.map +1 -1
- package/bin/chat/types/DirectDispatch.d.ts +1 -1
- package/bin/chat/types/DirectDispatch.d.ts.map +1 -1
- package/bin/contact/Action.d.ts +3 -3
- package/bin/contact/Action.d.ts.map +1 -1
- package/bin/contact/Action.js +1 -1
- package/bin/contact/Action.js.map +1 -1
- package/bin/contact/ContactPlugin.d.ts +2 -2
- package/bin/contact/ContactPlugin.d.ts.map +1 -1
- package/bin/contact/ContactPlugin.js +1 -1
- package/bin/contact/ContactPlugin.js.map +1 -1
- package/bin/contact/runtime/ChatRuntime.d.ts +1 -1
- package/bin/contact/runtime/ChatRuntime.d.ts.map +1 -1
- package/bin/contact/runtime/ContactPayload.d.ts +1 -1
- package/bin/contact/runtime/ContactPayload.d.ts.map +1 -1
- package/bin/contact/runtime/RemoteClient.d.ts +1 -1
- package/bin/contact/runtime/RemoteClient.d.ts.map +1 -1
- package/bin/contact/runtime/ShareBundle.d.ts +1 -1
- package/bin/contact/runtime/ShareBundle.d.ts.map +1 -1
- package/bin/image/ImagePlugin.d.ts +6 -6
- package/bin/image/ImagePlugin.d.ts.map +1 -1
- package/bin/image/ImagePlugin.js +9 -9
- package/bin/image/ImagePlugin.js.map +1 -1
- package/bin/image/types/ImagePlugin.d.ts +2 -2
- package/bin/image/types/ImagePlugin.d.ts.map +1 -1
- package/bin/memory/Action.d.ts +3 -3
- package/bin/memory/Action.d.ts.map +1 -1
- package/bin/memory/MemoryPlugin.d.ts +3 -3
- package/bin/memory/MemoryPlugin.d.ts.map +1 -1
- package/bin/memory/MemoryPlugin.js +2 -2
- package/bin/memory/MemoryPlugin.js.map +1 -1
- package/bin/memory/runtime/Search.d.ts +1 -1
- package/bin/memory/runtime/Search.d.ts.map +1 -1
- package/bin/memory/runtime/Store.d.ts +1 -1
- package/bin/memory/runtime/Store.d.ts.map +1 -1
- package/bin/memory/runtime/SystemProvider.d.ts +1 -1
- package/bin/memory/runtime/SystemProvider.d.ts.map +1 -1
- package/bin/memory/runtime/Writer.d.ts +1 -1
- package/bin/memory/runtime/Writer.d.ts.map +1 -1
- package/bin/memory/types/Memory.d.ts +1 -1
- package/bin/memory/types/Memory.d.ts.map +1 -1
- package/bin/skill/Plugin.d.ts +1 -1
- package/bin/skill/Plugin.d.ts.map +1 -1
- package/bin/skill/Plugin.js +2 -2
- package/bin/skill/Plugin.js.map +1 -1
- package/bin/skill/runtime/SystemProvider.js +1 -1
- package/bin/skill/runtime/SystemProvider.js.map +1 -1
- package/bin/skill/types/SkillDefinition.d.ts +1 -1
- package/bin/skill/types/SkillDefinition.d.ts.map +1 -1
- package/bin/task/Action.d.ts +1 -1
- package/bin/task/Action.d.ts.map +1 -1
- package/bin/task/Scheduler.d.ts +1 -1
- package/bin/task/Scheduler.d.ts.map +1 -1
- package/bin/task/TaskPlugin.d.ts +3 -3
- package/bin/task/TaskPlugin.d.ts.map +1 -1
- package/bin/task/TaskPlugin.js +2 -2
- package/bin/task/TaskPlugin.js.map +1 -1
- package/bin/task/runtime/Model.d.ts +1 -1
- package/bin/task/runtime/Model.d.ts.map +1 -1
- package/bin/task/runtime/Runner.d.ts +1 -1
- package/bin/task/runtime/Runner.d.ts.map +1 -1
- package/bin/task/runtime/TaskActionExecution.d.ts +1 -1
- package/bin/task/runtime/TaskActionExecution.d.ts.map +1 -1
- package/bin/task/runtime/TaskActionInput.d.ts +1 -1
- package/bin/task/runtime/TaskActionInput.d.ts.map +1 -1
- package/bin/task/runtime/TaskActionInput.js +1 -1
- package/bin/task/runtime/TaskActionInput.js.map +1 -1
- package/bin/task/runtime/TaskPluginActionRegistry.d.ts +1 -1
- package/bin/task/runtime/TaskPluginActionRegistry.d.ts.map +1 -1
- package/bin/task/runtime/TaskPluginActionRegistry.js +1 -1
- package/bin/task/runtime/TaskPluginActionRegistry.js.map +1 -1
- package/bin/task/runtime/TaskRunChatDispatch.d.ts +1 -1
- package/bin/task/runtime/TaskRunChatDispatch.d.ts.map +1 -1
- package/bin/task/runtime/TaskRunnerRound.d.ts +3 -3
- package/bin/task/runtime/TaskRunnerRound.d.ts.map +1 -1
- package/bin/task/runtime/TaskRunnerRound.js +1 -1
- package/bin/task/runtime/TaskRunnerRound.js.map +1 -1
- package/bin/task/runtime/TaskRunnerScript.d.ts +1 -1
- package/bin/task/runtime/TaskRunnerScript.d.ts.map +1 -1
- package/bin/task/runtime/TaskRunnerSession.d.ts +2 -2
- package/bin/task/runtime/TaskRunnerSession.d.ts.map +1 -1
- package/bin/task/runtime/TaskRunnerSession.js +7 -7
- package/bin/task/runtime/TaskRunnerSession.js.map +1 -1
- package/bin/task/runtime/TaskRunnerTypes.d.ts +2 -2
- package/bin/task/runtime/TaskRunnerTypes.d.ts.map +1 -1
- package/bin/tts/Plugin.d.ts +4 -4
- package/bin/tts/Plugin.d.ts.map +1 -1
- package/bin/tts/Plugin.js +2 -2
- package/bin/tts/Plugin.js.map +1 -1
- package/bin/tts/types/TtsPlugin.d.ts +1 -1
- package/bin/tts/types/TtsPlugin.d.ts.map +1 -1
- package/bin/web/Plugin.d.ts +4 -4
- package/bin/web/Plugin.d.ts.map +1 -1
- package/bin/web/Plugin.js +2 -3
- package/bin/web/Plugin.js.map +1 -1
- package/bin/web/runtime/Install.d.ts +2 -2
- package/bin/web/runtime/Install.d.ts.map +1 -1
- package/bin/web/types/WebPlugin.d.ts +1 -1
- package/bin/web/types/WebPlugin.d.ts.map +1 -1
- package/bin/workboard/Plugin.d.ts +2 -2
- package/bin/workboard/Plugin.d.ts.map +1 -1
- package/bin/workboard/Plugin.js +2 -2
- package/bin/workboard/Plugin.js.map +1 -1
- package/bin/workboard/runtime/Collector.d.ts +1 -1
- package/bin/workboard/runtime/Collector.d.ts.map +1 -1
- package/bin/workboard/runtime/Collector.js +2 -2
- package/bin/workboard/runtime/Collector.js.map +1 -1
- package/bin/workboard/runtime/Normalizer.d.ts +3 -3
- package/bin/workboard/runtime/Normalizer.d.ts.map +1 -1
- package/bin/workboard/runtime/Normalizer.js +1 -1
- package/bin/workboard/runtime/Normalizer.js.map +1 -1
- package/bin/workboard/runtime/SessionSummary.d.ts +1 -1
- package/bin/workboard/runtime/SessionSummary.d.ts.map +1 -1
- package/bin/workboard/runtime/Store.d.ts +1 -1
- package/bin/workboard/runtime/Store.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/BuiltinPlugins.ts +1 -1
- package/src/asr/Plugin.ts +4 -4
- package/src/asr/types/AsrPlugin.ts +1 -1
- package/src/auth/runtime/AuthorizationConfig.ts +1 -1
- package/src/auth/runtime/AuthorizationPolicy.ts +1 -1
- package/src/auth/runtime/AuthorizationStore.ts +1 -1
- package/src/chat/Action.ts +2 -2
- package/src/chat/ChatPlugin.ts +3 -3
- package/src/chat/accounts/ChannelAccountManager.ts +2 -2
- package/src/chat/accounts/Crypto.ts +1 -1
- package/src/chat/accounts/Store.ts +2 -2
- package/src/chat/channels/BaseChatChannel.ts +2 -2
- package/src/chat/channels/BaseChatChannelQueue.ts +2 -2
- package/src/chat/channels/BaseChatChannelSupport.ts +3 -3
- package/src/chat/channels/RuntimeChannel.ts +2 -2
- package/src/chat/channels/feishu/Feishu.ts +2 -2
- package/src/chat/channels/feishu/FeishuMessageHandler.ts +4 -4
- package/src/chat/channels/feishu/FeishuPlatformClient.ts +1 -1
- package/src/chat/channels/feishu/FeishuPlatformLookup.ts +1 -1
- package/src/chat/channels/feishu/Shared.ts +1 -1
- package/src/chat/channels/qq/QQ.ts +3 -3
- package/src/chat/channels/qq/QQEventCapture.ts +1 -1
- package/src/chat/channels/qq/QQGatewayAuth.ts +1 -1
- package/src/chat/channels/qq/QQGatewayClient.ts +2 -2
- package/src/chat/channels/qq/QQGatewayConnection.ts +1 -1
- package/src/chat/channels/qq/QQGatewayHeartbeat.ts +1 -1
- package/src/chat/channels/qq/QQGatewayProtocol.ts +1 -1
- package/src/chat/channels/qq/QQGatewaySend.ts +1 -1
- package/src/chat/channels/qq/QQGatewaySupport.ts +1 -1
- package/src/chat/channels/qq/QQInbound.ts +1 -1
- package/src/chat/channels/qq/QQInboundDedupe.ts +1 -1
- package/src/chat/channels/qq/QQMessageHandler.ts +2 -2
- package/src/chat/channels/qq/QQSendSupport.ts +1 -1
- package/src/chat/channels/qq/QQSupport.ts +2 -2
- package/src/chat/channels/qq/VoiceInput.ts +1 -1
- package/src/chat/channels/qq/types/QqChannel.ts +1 -1
- package/src/chat/channels/telegram/ApiClient.ts +1 -1
- package/src/chat/channels/telegram/Bot.ts +2 -2
- package/src/chat/channels/telegram/Handlers.ts +1 -1
- package/src/chat/channels/telegram/Shared.ts +1 -1
- package/src/chat/channels/telegram/StateStore.ts +1 -1
- package/src/chat/channels/telegram/TelegramMessageHandler.ts +4 -4
- package/src/chat/channels/telegram/TelegramPendingUpdates.ts +1 -1
- package/src/chat/channels/telegram/TelegramPlatformClient.ts +1 -1
- package/src/chat/runtime/ChannelContextStore.ts +2 -2
- package/src/chat/runtime/ChatActionExecution.ts +2 -2
- package/src/chat/runtime/ChatActionInput.ts +2 -2
- package/src/chat/runtime/ChatActionInputSupport.ts +1 -1
- package/src/chat/runtime/ChatAuthorizationRuntime.ts +3 -3
- package/src/chat/runtime/ChatChannelActions.ts +1 -1
- package/src/chat/runtime/ChatChannelConfig.ts +3 -3
- package/src/chat/runtime/ChatChannelCore.ts +2 -2
- package/src/chat/runtime/ChatChannelLifecycle.ts +1 -1
- package/src/chat/runtime/ChatHistoryStore.ts +3 -3
- package/src/chat/runtime/ChatIngressStore.ts +2 -2
- package/src/chat/runtime/ChatMetaStore.ts +1 -1
- package/src/chat/runtime/ChatPluginActionRegistry.ts +2 -2
- package/src/chat/runtime/ChatPluginSystem.ts +1 -1
- package/src/chat/runtime/ChatQueueReplyDispatch.ts +2 -2
- package/src/chat/runtime/ChatQueueStore.ts +1 -1
- package/src/chat/runtime/ChatQueueWorker.ts +5 -7
- package/src/chat/runtime/ChatSendActionInput.ts +3 -3
- package/src/chat/runtime/ChatSendMetadata.ts +1 -1
- package/src/chat/runtime/ChatSession.ts +9 -13
- package/src/chat/runtime/ChatSessionContextComposer.ts +4 -4
- package/src/chat/runtime/ChatSessionDelete.ts +1 -2
- package/src/chat/runtime/ChatSessionTypes.ts +2 -2
- package/src/chat/runtime/ChatkeySend.ts +1 -1
- package/src/chat/runtime/DirectDispatchParser.ts +2 -2
- package/src/chat/runtime/EnqueueDispatch.ts +2 -2
- package/src/chat/runtime/InboundAugment.ts +2 -2
- package/src/chat/runtime/PluginDispatch.ts +2 -2
- package/src/chat/runtime/QueuedUserMessage.ts +1 -1
- package/src/chat/runtime/ReplyContextFormatter.ts +1 -1
- package/src/chat/runtime/ReplyDispatch.ts +2 -2
- package/src/chat/runtime/SystemPrompt.ts +2 -2
- package/src/chat/types/ChannelAccount.ts +1 -1
- package/src/chat/types/ChatHistory.ts +1 -1
- package/src/chat/types/ChatPluginActionPayload.ts +1 -1
- package/src/chat/types/ChatPluginOptions.ts +2 -2
- package/src/chat/types/ChatQueue.ts +1 -1
- package/src/chat/types/DirectDispatch.ts +1 -1
- package/src/contact/Action.ts +4 -4
- package/src/contact/ContactPlugin.ts +4 -4
- package/src/contact/runtime/ChatRuntime.ts +2 -2
- package/src/contact/runtime/ContactPayload.ts +1 -1
- package/src/contact/runtime/RemoteClient.ts +1 -1
- package/src/contact/runtime/ShareBundle.ts +1 -1
- package/src/image/ImagePlugin.ts +11 -11
- package/src/image/types/ImagePlugin.ts +2 -2
- package/src/memory/Action.ts +3 -3
- package/src/memory/MemoryPlugin.ts +5 -5
- package/src/memory/runtime/Search.ts +1 -1
- package/src/memory/runtime/Store.ts +1 -1
- package/src/memory/runtime/SystemProvider.ts +1 -1
- package/src/memory/runtime/Writer.ts +1 -1
- package/src/memory/types/Memory.ts +1 -1
- package/src/skill/Action.ts +1 -1
- package/src/skill/Plugin.ts +5 -5
- package/src/skill/runtime/Discovery.ts +1 -1
- package/src/skill/runtime/SystemProvider.ts +1 -1
- package/src/skill/types/SkillDefinition.ts +1 -1
- package/src/task/Action.ts +2 -2
- package/src/task/Scheduler.ts +1 -1
- package/src/task/TaskPlugin.ts +4 -4
- package/src/task/runtime/Model.ts +1 -1
- package/src/task/runtime/Runner.ts +1 -1
- package/src/task/runtime/TaskActionExecution.ts +1 -1
- package/src/task/runtime/TaskActionInput.ts +3 -3
- package/src/task/runtime/TaskPluginActionRegistry.ts +2 -2
- package/src/task/runtime/TaskRunChatDispatch.ts +1 -1
- package/src/task/runtime/TaskRunnerRound.ts +5 -5
- package/src/task/runtime/TaskRunnerScript.ts +1 -1
- package/src/task/runtime/TaskRunnerSession.ts +10 -10
- package/src/task/runtime/TaskRunnerTypes.ts +2 -2
- package/src/tts/Plugin.ts +4 -4
- package/src/tts/types/TtsPlugin.ts +1 -1
- package/src/web/Plugin.ts +4 -5
- package/src/web/runtime/Install.ts +2 -2
- package/src/web/types/WebPlugin.ts +1 -1
- package/src/workboard/Plugin.ts +5 -5
- package/src/workboard/runtime/Collector.ts +3 -3
- package/src/workboard/runtime/Normalizer.ts +4 -4
- package/src/workboard/runtime/SessionSummary.ts +1 -1
- package/src/workboard/runtime/Store.ts +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import type { RawData } from "ws";
|
|
10
|
-
import type { JsonObject, JsonValue } from "@downcity/agent
|
|
10
|
+
import type { JsonObject, JsonValue } from "@downcity/agent";
|
|
11
11
|
import type { QQGatewayPayload, QqGatewayRuntimeStatus } from "@/chat/channels/qq/types/QqChannel.js";
|
|
12
12
|
import type {
|
|
13
13
|
QqGatewayHeartbeatState,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - 具体“授权、入队、执行、回发”仍由 QQBot 负责编排。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { JsonObject } from "@downcity/agent
|
|
10
|
+
import type { JsonObject } from "@downcity/agent";
|
|
11
11
|
import type { QqIncomingAttachment } from "@/chat/types/QqVoice.js";
|
|
12
12
|
import type { QqActorIdentity, QQAuthor, QQMessageData } from "@/chat/channels/qq/types/QqChannel.js";
|
|
13
13
|
import { extractQqIncomingAttachments } from "./VoiceInput.js";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import fs from "fs-extra";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import type { Logger } from "@downcity/agent
|
|
12
|
+
import type { Logger } from "@downcity/agent";
|
|
13
13
|
import type { QqInboundDedupeSnapshotV1 } from "@/chat/types/QqInboundDedupe.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* - `QQBot` 因此只保留渠道生命周期、dispatch 分流、发送与命令处理。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { Logger } from "@downcity/agent
|
|
11
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import type { Logger } from "@downcity/agent";
|
|
11
|
+
import type { AgentContext } from "@downcity/agent";
|
|
12
12
|
import type {
|
|
13
13
|
ChannelChatKeyParams,
|
|
14
14
|
IncomingAuthorizationParams,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { buildChatInboundText, augmentChatInboundInput } from "@/chat/runtime/InboundAugment.js";
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
11
|
-
import type { JsonObject } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
|
+
import type { JsonObject } from "@downcity/agent";
|
|
12
12
|
import type { QQMessageData, QQReadyUser } from "@/chat/channels/qq/types/QqChannel.js";
|
|
13
13
|
import type { QqIncomingAttachment } from "@/chat/types/QqVoice.js";
|
|
14
14
|
import { resolveQqAttachmentLocalPath } from "./VoiceInput.js";
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
type TelegramUpdate,
|
|
23
23
|
type TelegramUser,
|
|
24
24
|
} from "./Shared.js";
|
|
25
|
-
import type { AgentContext } from "@downcity/agent
|
|
26
|
-
import type { JsonObject } from "@downcity/agent
|
|
25
|
+
import type { AgentContext } from "@downcity/agent";
|
|
26
|
+
import type { JsonObject } from "@downcity/agent";
|
|
27
27
|
import type { ChatChannelTestResult } from "@/chat/types/ChannelStatus.js";
|
|
28
28
|
import {
|
|
29
29
|
buildTelegramChatKey,
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import path from "path";
|
|
11
|
-
import type { Logger } from "@downcity/agent
|
|
12
|
-
import type { AgentContext } from "@downcity/agent
|
|
13
|
-
import type { JsonObject } from "@downcity/agent
|
|
11
|
+
import type { Logger } from "@downcity/agent";
|
|
12
|
+
import type { AgentContext } from "@downcity/agent";
|
|
13
|
+
import type { JsonObject } from "@downcity/agent";
|
|
14
14
|
import type {
|
|
15
15
|
IncomingAuthorizationParams,
|
|
16
16
|
IncomingAuthorizationResult,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
augmentChatInboundInput,
|
|
25
25
|
buildChatInboundText,
|
|
26
26
|
} from "@/chat/runtime/InboundAugment.js";
|
|
27
|
-
import { renderChatMessageFileTag } from "@downcity/agent
|
|
27
|
+
import { renderChatMessageFileTag } from "@downcity/agent";
|
|
28
28
|
import { extractTelegramReplyContext } from "./ReplyContext.js";
|
|
29
29
|
import {
|
|
30
30
|
getActorName,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - `TelegramBot` 只传入平台能力与队列写入能力,保持门面轻量。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { Logger } from "@downcity/agent
|
|
10
|
+
import type { Logger } from "@downcity/agent";
|
|
11
11
|
import type { ChannelUserMessageMeta } from "@/chat/channels/BaseChatChannelSupport.js";
|
|
12
12
|
import {
|
|
13
13
|
getTelegramChatTitle,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - `TelegramBot` 只保留入站授权、命令分发、消息入队等业务编排。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
11
|
import type { ChatChannelTestResult } from "@/chat/types/ChannelStatus.js";
|
|
12
12
|
import { TelegramApiClient } from "./ApiClient.js";
|
|
13
13
|
import { TelegramStateStore } from "./StateStore.js";
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import fs from "fs-extra";
|
|
11
|
-
import { generateId } from "@downcity/agent
|
|
12
|
-
import type { AgentContext } from "@downcity/agent
|
|
11
|
+
import { generateId } from "@downcity/agent";
|
|
12
|
+
import type { AgentContext } from "@downcity/agent";
|
|
13
13
|
import type {
|
|
14
14
|
ChannelContextMetaFileV1,
|
|
15
15
|
ChannelContextRouteV1,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import type { JsonObject } from "@downcity/agent
|
|
12
|
-
import type { AgentContext } from "@downcity/agent
|
|
11
|
+
import type { JsonObject } from "@downcity/agent";
|
|
12
|
+
import type { AgentContext } from "@downcity/agent";
|
|
13
13
|
import type {
|
|
14
14
|
ChatDeleteActionPayload,
|
|
15
15
|
ChatHistoryActionPayload,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* - `chat send` 的 frontmatter / <file> 协议也在这里完成标准化解析。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { JsonObject, JsonValue } from "@downcity/agent
|
|
11
|
-
import type { PluginActionCommandInput } from "@downcity/agent
|
|
10
|
+
import type { JsonObject, JsonValue } from "@downcity/agent";
|
|
11
|
+
import type { PluginActionCommandInput } from "@downcity/agent";
|
|
12
12
|
import type {
|
|
13
13
|
ChatConfigureActionPayload,
|
|
14
14
|
ChatDeleteActionPayload,
|
|
@@ -11,10 +11,10 @@ import type {
|
|
|
11
11
|
PluginActions,
|
|
12
12
|
PluginHooks,
|
|
13
13
|
PluginResolves,
|
|
14
|
-
} from "@downcity/agent
|
|
15
|
-
import { createAction } from "@downcity/agent
|
|
14
|
+
} from "@downcity/agent";
|
|
15
|
+
import { createAction } from "@downcity/agent";
|
|
16
16
|
import { z } from "zod";
|
|
17
|
-
import type { JsonValue } from "@downcity/agent
|
|
17
|
+
import type { JsonValue } from "@downcity/agent";
|
|
18
18
|
import { CHAT_PLUGIN_POINTS } from "@/chat/runtime/PluginPoints.js";
|
|
19
19
|
import type { ChatDispatchChannel } from "@/chat/types/ChatDispatcher.js";
|
|
20
20
|
import {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - 对外只暴露 action 级入口,供 ChatPluginActions 装配使用。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
11
|
import type { ChatChannelState } from "@/chat/types/ChatRuntime.js";
|
|
12
12
|
import { getStoredChannelAccountSync } from "@/chat/accounts/Store.js";
|
|
13
13
|
import type {
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* - 该模块不直接负责 action 流程控制,只提供可复用的底层能力。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { JsonObject, JsonValue } from "@downcity/agent
|
|
11
|
-
import type { AgentContext } from "@downcity/agent
|
|
12
|
-
import type { StoredChannelAccount } from "@downcity/agent
|
|
10
|
+
import type { JsonObject, JsonValue } from "@downcity/agent";
|
|
11
|
+
import type { AgentContext } from "@downcity/agent";
|
|
12
|
+
import type { StoredChannelAccount } from "@downcity/agent";
|
|
13
13
|
import type {
|
|
14
14
|
ChatChannelName,
|
|
15
15
|
ChatChannelStateSnapshot,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* - 目标是让 chat platform 子模块共享同一套最小公共基元。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
11
|
-
import type { StoredChannelAccount } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
|
+
import type { StoredChannelAccount } from "@downcity/agent";
|
|
12
12
|
import type { ChatChannelName } from "@/chat/types/ChannelStatus.js";
|
|
13
13
|
import type { ChatChannelState } from "@/chat/types/ChatRuntime.js";
|
|
14
14
|
import { getStoredChannelAccountSync } from "@/chat/accounts/Store.js";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - 本模块不处理 downcity.json 写入,也不负责 action 输入输出包装。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
11
|
import type { ChatChannelState } from "@/chat/types/ChatRuntime.js";
|
|
12
12
|
import type { ChatChannelName } from "@/chat/types/ChannelStatus.js";
|
|
13
13
|
import { createTelegramBot } from "@/chat/channels/telegram/Bot.js";
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
import fs from "fs-extra";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import { generateId } from "@downcity/agent
|
|
13
|
-
import type { AgentContext } from "@downcity/agent
|
|
14
|
-
import type { JsonObject } from "@downcity/agent
|
|
12
|
+
import { generateId } from "@downcity/agent";
|
|
13
|
+
import type { AgentContext } from "@downcity/agent";
|
|
14
|
+
import type { JsonObject } from "@downcity/agent";
|
|
15
15
|
import type { ChatDispatchChannel } from "@/chat/types/ChatDispatcher.js";
|
|
16
16
|
import type {
|
|
17
17
|
ChatHistoryDirection,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* - 只有极少数非 turn 场景才允许显式补写 `session messages`
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
11
|
-
import type { JsonObject } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
|
+
import type { JsonObject } from "@downcity/agent";
|
|
12
12
|
import type { ChatDispatchChannel } from "@/chat/types/ChatDispatcher.js";
|
|
13
13
|
import { appendInboundChatHistory } from "./ChatHistoryStore.js";
|
|
14
14
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - 底层数据落在 `.downcity/channel/meta.json`,由 ChannelContextStore 统一维护
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
11
|
import type { ChatMetaV1 } from "@/chat/types/ChatMeta.js";
|
|
12
12
|
import type { ChatDispatchChannel } from "@/chat/types/ChatDispatcher.js";
|
|
13
13
|
import {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import type { Command } from "commander";
|
|
11
|
-
import type { PluginActions } from "@downcity/agent
|
|
12
|
-
import { createAction } from "@downcity/agent
|
|
11
|
+
import type { PluginActions } from "@downcity/agent";
|
|
12
|
+
import { createAction } from "@downcity/agent";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
import type {
|
|
15
15
|
ChatCloseActionPayload,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - 当前请求只注入当前 chat platform 的 prompt,避免平台规则串味。
|
|
7
7
|
* - 该模块只负责 prompt 解析与拼装,不承担运行态控制职责。
|
|
8
8
|
*/
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
10
|
import {
|
|
11
11
|
buildCurrentChatEnvironmentPrompt,
|
|
12
12
|
resolveCurrentChatEnvironmentPromptInput,
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* - ChatQueueWorker 主类只保留“何时分发”的决策,不再承载具体发消息细节。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { Logger } from "@downcity/agent
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
9
|
+
import type { Logger } from "@downcity/agent";
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
11
|
import { parseDirectDispatchAssistantText } from "./DirectDispatchParser.js";
|
|
12
12
|
import { sendActionByChatKey } from "./ChatkeySend.js";
|
|
13
13
|
import { sendChatTextByChatKey } from "../Action.js";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - 旧的 `ChatQueue.ts` 会保留共享门面,逐步迁移到显式实例注入。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
11
|
import type {
|
|
12
12
|
ChatQueueEnqueueParams,
|
|
13
13
|
ChatQueueEnqueueResult,
|
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
* - turn 并入策略、history 落盘、assistant 收敛统一交给 Session
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { Logger } from "@downcity/agent
|
|
11
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import type { Logger } from "@downcity/agent";
|
|
11
|
+
import type { AgentContext } from "@downcity/agent";
|
|
12
12
|
import type { ChatQueueWorkerConfig } from "@/chat/types/ChatQueueWorker.js";
|
|
13
13
|
import type { ChatQueueItem } from "@/chat/types/ChatQueue.js";
|
|
14
|
-
import type { AgentSessionEvent } from "@downcity/agent
|
|
15
|
-
import type { AgentSessionTurnResult } from "@downcity/agent
|
|
14
|
+
import type { AgentSessionEvent } from "@downcity/agent";
|
|
15
|
+
import type { AgentSessionTurnResult } from "@downcity/agent";
|
|
16
16
|
import {
|
|
17
17
|
getSharedChatQueueStore,
|
|
18
18
|
} from "./ChatQueue.js";
|
|
19
19
|
import { getChatSender } from "./ChatSendRegistry.js";
|
|
20
20
|
import {
|
|
21
21
|
pickLastSuccessfulChatSendText,
|
|
22
|
-
} from "@downcity/agent
|
|
22
|
+
} from "@downcity/agent";
|
|
23
23
|
import {
|
|
24
24
|
buildChannelErrorText,
|
|
25
25
|
collectInitialBurstItems,
|
|
@@ -185,7 +185,6 @@ export class ChatQueueWorker {
|
|
|
185
185
|
const control = item.control;
|
|
186
186
|
if (!control) return false;
|
|
187
187
|
if (control.type === "clear") {
|
|
188
|
-
this.requireContext(item.sessionId).clearExecutor();
|
|
189
188
|
this.queueStore.clear(item.sessionId);
|
|
190
189
|
return true;
|
|
191
190
|
}
|
|
@@ -314,7 +313,6 @@ export class ChatQueueWorker {
|
|
|
314
313
|
}
|
|
315
314
|
|
|
316
315
|
if (clearRequested) {
|
|
317
|
-
serviceContext.clearExecutor();
|
|
318
316
|
this.queueStore.clear(first.sessionId);
|
|
319
317
|
}
|
|
320
318
|
}
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import type { JsonObject, JsonValue } from "@downcity/agent
|
|
12
|
-
import type { PluginActionCommandInput } from "@downcity/agent
|
|
11
|
+
import type { JsonObject, JsonValue } from "@downcity/agent";
|
|
12
|
+
import type { PluginActionCommandInput } from "@downcity/agent";
|
|
13
13
|
import type { ChatSendActionPayload } from "@/chat/types/ChatPluginActionPayload.js";
|
|
14
14
|
import {
|
|
15
15
|
buildChatMessageText,
|
|
16
16
|
parseChatMessageMarkup,
|
|
17
|
-
} from "@downcity/agent
|
|
17
|
+
} from "@downcity/agent";
|
|
18
18
|
import { parseChatSendOptionsFromMetadata } from "@/chat/runtime/ChatSendMetadata.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeChatSendText,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - direct 模式也复用同一解析逻辑,避免 metadata 协议分叉。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { ChatMessageSendOptions } from "@downcity/agent
|
|
9
|
+
import type { ChatMessageSendOptions } from "@downcity/agent";
|
|
10
10
|
|
|
11
11
|
function normalizeText(value: unknown): string {
|
|
12
12
|
return String(value ?? "").trim();
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import type { LanguageModel, Tool } from "ai";
|
|
11
|
-
import { Executor } from "@downcity/agent
|
|
12
|
-
import type { SessionHistoryComposer } from "@downcity/agent
|
|
13
|
-
import type { SessionHistoryStore } from "@downcity/agent
|
|
14
|
-
import type { SessionCompactionComposer } from "@downcity/agent
|
|
15
|
-
import type { SessionSystemComposer } from "@downcity/agent
|
|
11
|
+
import { Executor } from "@downcity/agent";
|
|
12
|
+
import type { SessionHistoryComposer } from "@downcity/agent";
|
|
13
|
+
import type { SessionHistoryStore } from "@downcity/agent";
|
|
14
|
+
import type { SessionCompactionComposer } from "@downcity/agent";
|
|
15
|
+
import type { SessionSystemComposer } from "@downcity/agent";
|
|
16
16
|
import type { ChatSessionContextComposer } from "@/chat/runtime/ChatSessionContextComposer.js";
|
|
17
|
-
import type { Logger } from "@downcity/agent
|
|
18
|
-
import type { SessionAssistantStepCallback } from "@downcity/agent
|
|
19
|
-
import type { SessionRunResult } from "@downcity/agent
|
|
20
|
-
import type { SessionRunContext } from "@downcity/agent
|
|
17
|
+
import type { Logger } from "@downcity/agent";
|
|
18
|
+
import type { SessionAssistantStepCallback } from "@downcity/agent";
|
|
19
|
+
import type { SessionRunResult } from "@downcity/agent";
|
|
20
|
+
import type { SessionRunContext } from "@downcity/agent";
|
|
21
21
|
import type { ChatSessionTurnState } from "@/chat/runtime/ChatSessionTypes.js";
|
|
22
22
|
|
|
23
23
|
type ChatSessionOptions = {
|
|
@@ -69,7 +69,6 @@ type ChatSessionOptions = {
|
|
|
69
69
|
/**
|
|
70
70
|
* session 更新后的异步回调。
|
|
71
71
|
*/
|
|
72
|
-
runAfterSessionUpdated?: (sessionId: string) => Promise<void>;
|
|
73
72
|
};
|
|
74
73
|
|
|
75
74
|
/**
|
|
@@ -95,9 +94,6 @@ export class ChatSession extends Executor {
|
|
|
95
94
|
systemComposer: options.systemComposer,
|
|
96
95
|
getTools: options.getTools,
|
|
97
96
|
contextComposer,
|
|
98
|
-
...(options.runAfterSessionUpdated
|
|
99
|
-
? { runAfterSessionUpdated: options.runAfterSessionUpdated }
|
|
100
|
-
: {}),
|
|
101
97
|
});
|
|
102
98
|
this.contextComposer = contextComposer;
|
|
103
99
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import type { ModelMessage, Tool } from "ai";
|
|
11
|
-
import { drainInjectedUserMessages } from "@downcity/agent
|
|
12
|
-
import { LocalSessionContextComposer } from "@downcity/agent
|
|
13
|
-
import type { SessionRecordV1 } from "@downcity/agent
|
|
14
|
-
import type { SessionSystemMessage } from "@downcity/agent
|
|
11
|
+
import { drainInjectedUserMessages } from "@downcity/agent";
|
|
12
|
+
import { LocalSessionContextComposer } from "@downcity/agent";
|
|
13
|
+
import type { SessionRecordV1 } from "@downcity/agent";
|
|
14
|
+
import type { SessionSystemMessage } from "@downcity/agent";
|
|
15
15
|
import type { ChatSessionTurnState } from "@/chat/runtime/ChatSessionTypes.js";
|
|
16
16
|
|
|
17
17
|
type ChatSessionContextComposerOptions = {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import fs from "fs-extra";
|
|
12
12
|
import path from "node:path";
|
|
13
|
-
import type { AgentContext } from "@downcity/agent
|
|
13
|
+
import type { AgentContext } from "@downcity/agent";
|
|
14
14
|
import { resolveChatQueueStore } from "@/chat/runtime/ChatQueue.js";
|
|
15
15
|
import { removeChatMetaBySessionId } from "@/chat/runtime/ChatMetaStore.js";
|
|
16
16
|
|
|
@@ -51,7 +51,6 @@ export async function deleteChatSessionById(params: {
|
|
|
51
51
|
|
|
52
52
|
try {
|
|
53
53
|
// 关键点(中文):先停执行,再删文件,避免删除过程中仍有任务写入。
|
|
54
|
-
params.context.session.get(sessionId).clearExecutor();
|
|
55
54
|
resolveChatQueueStore(params.context).clear(sessionId);
|
|
56
55
|
|
|
57
56
|
const removedMetaResult = await removeChatMetaBySessionId({
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* - 普通 Session 仍可复用基础 `run / append*` 能力,不强耦合 chat 语义。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { SessionUserMessageV1 } from "@downcity/agent
|
|
10
|
-
import type { SessionAssistantStepCallback } from "@downcity/agent
|
|
9
|
+
import type { SessionUserMessageV1 } from "@downcity/agent";
|
|
10
|
+
import type { SessionAssistantStepCallback } from "@downcity/agent";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* ChatSession 单次 turn 绑定的运行态。
|
|
@@ -14,7 +14,7 @@ import type {
|
|
|
14
14
|
ChatDispatchAction,
|
|
15
15
|
ChatDispatchChannel,
|
|
16
16
|
} from "@/chat/types/ChatDispatcher.js";
|
|
17
|
-
import type { AgentContext } from "@downcity/agent
|
|
17
|
+
import type { AgentContext } from "@downcity/agent";
|
|
18
18
|
import { readChatMetaBySessionId } from "./ChatMetaStore.js";
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -16,9 +16,9 @@ import type {
|
|
|
16
16
|
import {
|
|
17
17
|
buildChatMessageText,
|
|
18
18
|
parseChatMessageMarkup,
|
|
19
|
-
} from "@downcity/agent
|
|
19
|
+
} from "@downcity/agent";
|
|
20
20
|
import { parseChatSendOptionsFromMetadata } from "@/chat/runtime/ChatSendMetadata.js";
|
|
21
|
-
import type { ChatMessageSegment } from "@downcity/agent
|
|
21
|
+
import type { ChatMessageSegment } from "@downcity/agent";
|
|
22
22
|
|
|
23
23
|
function normalizeText(value: unknown): string {
|
|
24
24
|
return String(value ?? "").trim();
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* - service 通过这里暴露 queue 生命周期,不直接散落调用细节。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
10
|
import type {
|
|
11
11
|
ChatEnqueueEffectInput,
|
|
12
12
|
ChatEnqueuePipelineInput,
|
|
13
13
|
} from "@/chat/types/ChatPlugin.js";
|
|
14
|
-
import type { JsonValue } from "@downcity/agent
|
|
14
|
+
import type { JsonValue } from "@downcity/agent";
|
|
15
15
|
import { CHAT_PLUGIN_POINTS } from "@/chat/runtime/PluginPoints.js";
|
|
16
16
|
|
|
17
17
|
function normalizeText(value: string): string {
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* - 最终拼装顺序固定为:attachmentText -> pluginSections -> bodyText。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
10
|
import type { ChatInboundAugmentInput } from "@/chat/types/ChatPlugin.js";
|
|
11
|
-
import type { JsonValue } from "@downcity/agent
|
|
11
|
+
import type { JsonValue } from "@downcity/agent";
|
|
12
12
|
import { CHAT_PLUGIN_POINTS } from "@/chat/runtime/PluginPoints.js";
|
|
13
13
|
|
|
14
14
|
function normalizeText(value: string | undefined): string | undefined {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* - 这里封装 chat 领域的 plugin 点调用语义,保持 service 边界稳定。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
-
import type { JsonObject } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
|
+
import type { JsonObject } from "@downcity/agent";
|
|
11
11
|
import type {
|
|
12
12
|
ChatAuthorizationObservePrincipalPayload,
|
|
13
13
|
ChatAuthorizationEvaluateInput,
|
|
@@ -11,7 +11,7 @@ import type { QueuedUserInfoInput } from "@/chat/types/ChatPromptContext.js";
|
|
|
11
11
|
import {
|
|
12
12
|
formatDateTimeInTimezone,
|
|
13
13
|
resolveRuntimeTimezone,
|
|
14
|
-
} from "@downcity/agent
|
|
14
|
+
} from "@downcity/agent";
|
|
15
15
|
|
|
16
16
|
function normalizeInfoValue(value: unknown): string {
|
|
17
17
|
const text = String(value ?? "").replace(/\r?\n/g, " ").trim();
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - 同时提供额外 metadata,便于 history / 调试链路查看。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { JsonObject } from "@downcity/agent
|
|
9
|
+
import type { JsonObject } from "@downcity/agent";
|
|
10
10
|
import type { InboundReplyContext } from "@/chat/types/ReplyContext.js";
|
|
11
11
|
|
|
12
12
|
function normalizeReplyValue(value: string | undefined): string | undefined {
|