@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
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* - 仅服务 agent 执行生命周期,不覆盖手动 `chat send`。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
10
|
import type { ChatReplyDispatchInput, ChatReplyEffectInput } from "@/chat/types/ChatPlugin.js";
|
|
11
|
-
import type { JsonValue } from "@downcity/agent
|
|
11
|
+
import type { JsonValue } from "@downcity/agent";
|
|
12
12
|
import type { ChatDispatchChannel } from "@/chat/types/ChatDispatcher.js";
|
|
13
13
|
import { CHAT_PLUGIN_POINTS } from "@/chat/runtime/PluginPoints.js";
|
|
14
14
|
import { resolveDispatchTargetByChatKey } from "@/chat/runtime/ChatkeySend.js";
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* - 统一从 request context + ChatMetaStore 读取当前 chat 元信息。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { getSessionRunContext } from "@downcity/agent
|
|
11
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import { getSessionRunContext } from "@downcity/agent";
|
|
11
|
+
import type { AgentContext } from "@downcity/agent";
|
|
12
12
|
import type { ChatEnvironmentPromptInput } from "@/chat/types/ChatPromptContext.js";
|
|
13
13
|
import { readChatMetaBySessionId } from "@/chat/runtime/ChatMetaStore.js";
|
|
14
14
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - 支持入站(inbound)与出站(outbound)事件,便于完整回放对话链路。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { JsonObject } from "@downcity/agent
|
|
9
|
+
import type { JsonObject } from "@downcity/agent";
|
|
10
10
|
import type { ChatDispatchChannel } from "@/chat/types/ChatDispatcher.js";
|
|
11
11
|
|
|
12
12
|
export type ChatHistoryIngressKind = "audit" | "exec";
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* - 这样 ChatPlugin 不再理解 Telegram、Feishu、QQ 的具体配置字段。
|
|
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 { ChatQueueWorkerConfig } from "@/chat/types/ChatQueueWorker.js";
|
|
14
14
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import type {
|
|
10
10
|
ChatMessageFileTag,
|
|
11
11
|
ChatMessageFileType,
|
|
12
|
-
} from "@downcity/agent
|
|
12
|
+
} from "@downcity/agent";
|
|
13
13
|
|
|
14
14
|
export type DirectFileType = ChatMessageFileType;
|
|
15
15
|
export type DirectFileTagPayload = ChatMessageFileTag;
|
package/src/contact/Action.ts
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* - 业务动作通过 handlers 注入,保持 `ContactPlugin` 类本身更薄。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
-
import type { JsonObject, JsonValue } from "@downcity/agent
|
|
11
|
-
import type { PluginActions } from "@downcity/agent
|
|
12
|
-
import { createAction } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
|
+
import type { JsonObject, JsonValue } 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
|
ContactApproveCommandPayload,
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* - `share` 分享文本、链接、文件和目录,并进入对方 inbox。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
11
|
-
import type { JsonValue } from "@downcity/agent
|
|
12
|
-
import type { PluginActions } from "@downcity/agent
|
|
13
|
-
import { BasePlugin } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
|
+
import type { JsonValue } from "@downcity/agent";
|
|
12
|
+
import type { PluginActions } from "@downcity/agent";
|
|
13
|
+
import { BasePlugin } from "@downcity/agent";
|
|
14
14
|
import type {
|
|
15
15
|
ContactApproveCommandPayload,
|
|
16
16
|
ContactChatCommandPayload,
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* - 远端收到 chat 后运行本地 agent session,并返回 assistant 文本。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
10
|
import type { ContactChatResponse } from "@/contact/types/ContactChat.js";
|
|
11
|
-
import type { SessionRecordV1 } from "@downcity/agent
|
|
11
|
+
import type { SessionRecordV1 } from "@downcity/agent";
|
|
12
12
|
import {
|
|
13
13
|
appendContactMessage,
|
|
14
14
|
findContactByInboundToken,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import crypto from "node:crypto";
|
|
10
10
|
import fs from "fs-extra";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import type { AgentContext } from "@downcity/agent
|
|
12
|
+
import type { AgentContext } from "@downcity/agent";
|
|
13
13
|
import type {
|
|
14
14
|
ContactInboxShareFileInput,
|
|
15
15
|
ContactInboxShareMeta,
|
package/src/image/ImagePlugin.ts
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import { z } from "zod";
|
|
13
|
-
import { createAction } from "@downcity/agent
|
|
14
|
-
import { BasePlugin } from "@downcity/agent
|
|
15
|
-
import type { AgentContext } from "@downcity/agent
|
|
13
|
+
import { createAction } from "@downcity/agent";
|
|
14
|
+
import { BasePlugin } from "@downcity/agent";
|
|
15
|
+
import type { AgentContext } from "@downcity/agent";
|
|
16
16
|
import type {
|
|
17
17
|
JsonObject,
|
|
18
18
|
JsonValue,
|
|
19
|
-
} from "@downcity/agent
|
|
19
|
+
} from "@downcity/agent";
|
|
20
20
|
import type {
|
|
21
21
|
ImagePluginInput,
|
|
22
22
|
ImagePluginJobCreateResult,
|
|
@@ -711,12 +711,12 @@ export class ImagePlugin extends BasePlugin {
|
|
|
711
711
|
},
|
|
712
712
|
},
|
|
713
713
|
],
|
|
714
|
-
execute: async ({ context,
|
|
714
|
+
execute: async ({ context, input }: { context: AgentContext; input: JsonValue }) => {
|
|
715
715
|
try {
|
|
716
|
-
const
|
|
716
|
+
const normalized_payload = normalize_image_payload(input);
|
|
717
717
|
const normalized_input = await apply_default_image_model(
|
|
718
718
|
context,
|
|
719
|
-
await normalize_image_create_input(context,
|
|
719
|
+
await normalize_image_create_input(context, normalized_payload),
|
|
720
720
|
this.default_model,
|
|
721
721
|
);
|
|
722
722
|
const created = await this.image_create(normalized_input);
|
|
@@ -782,15 +782,15 @@ export class ImagePlugin extends BasePlugin {
|
|
|
782
782
|
},
|
|
783
783
|
},
|
|
784
784
|
],
|
|
785
|
-
execute: async ({
|
|
785
|
+
execute: async ({ input }: { input: JsonValue }) => {
|
|
786
786
|
try {
|
|
787
|
-
const
|
|
788
|
-
const current = await this.read_image_result(
|
|
787
|
+
const normalized_input = normalize_image_result_payload(input);
|
|
788
|
+
const current = await this.read_image_result(normalized_input);
|
|
789
789
|
if (current.status === "failed") {
|
|
790
790
|
return {
|
|
791
791
|
success: false,
|
|
792
792
|
data: current as unknown as JsonObject,
|
|
793
|
-
error: current.error ?? current.message ??
|
|
793
|
+
error: current.error ?? current.message ?? normalized_input.job_id,
|
|
794
794
|
message: current.error ?? current.message ?? "image job failed",
|
|
795
795
|
};
|
|
796
796
|
}
|
|
@@ -11,8 +11,8 @@ import type { UIMessage } from "ai";
|
|
|
11
11
|
import type {
|
|
12
12
|
JsonObject,
|
|
13
13
|
JsonValue,
|
|
14
|
-
} from "@downcity/agent
|
|
15
|
-
import type { AgentContext } from "@downcity/agent
|
|
14
|
+
} from "@downcity/agent";
|
|
15
|
+
import type { AgentContext } from "@downcity/agent";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* 图片生成文本内容片段。
|
package/src/memory/Action.ts
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
import type { UIDataTypes, UIMessagePart, UITools } from "ai";
|
|
11
11
|
import { isTextUIPart } from "ai";
|
|
12
|
-
import type { PluginActionResult } from "@downcity/agent
|
|
13
|
-
import type { AgentContext } from "@downcity/agent
|
|
14
|
-
import type { JsonValue } from "@downcity/agent
|
|
12
|
+
import type { PluginActionResult } from "@downcity/agent";
|
|
13
|
+
import type { AgentContext } from "@downcity/agent";
|
|
14
|
+
import type { JsonValue } from "@downcity/agent";
|
|
15
15
|
import type {
|
|
16
16
|
MemoryDigestPayload,
|
|
17
17
|
MemoryDigestResponse,
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import type { Command } from "commander";
|
|
11
|
-
import type { JsonObject, JsonValue } from "@downcity/agent
|
|
12
|
-
import type { AgentContext } from "@downcity/agent
|
|
13
|
-
import type { PluginActions } from "@downcity/agent
|
|
14
|
-
import { BasePlugin } from "@downcity/agent
|
|
15
|
-
import { createAction } from "@downcity/agent
|
|
11
|
+
import type { JsonObject, JsonValue } from "@downcity/agent";
|
|
12
|
+
import type { AgentContext } from "@downcity/agent";
|
|
13
|
+
import type { PluginActions } from "@downcity/agent";
|
|
14
|
+
import { BasePlugin } from "@downcity/agent";
|
|
15
|
+
import { createAction } from "@downcity/agent";
|
|
16
16
|
import { z } from "zod";
|
|
17
17
|
import {
|
|
18
18
|
digestMemoryAction,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
11
|
import type {
|
|
12
12
|
MemorySearchPayload,
|
|
13
13
|
MemorySearchResponse,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import type { Dirent } from "node:fs";
|
|
11
11
|
import fsp from "node:fs/promises";
|
|
12
12
|
import path from "node:path";
|
|
13
|
-
import type { AgentContext } from "@downcity/agent
|
|
13
|
+
import type { AgentContext } from "@downcity/agent";
|
|
14
14
|
import type {
|
|
15
15
|
MemoryDefaults,
|
|
16
16
|
MemorySourceType,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import type { AgentContext } from "@downcity/agent
|
|
12
|
+
import type { AgentContext } from "@downcity/agent";
|
|
13
13
|
|
|
14
14
|
const MAX_SYSTEM_MEMORY_ITEMS = 6;
|
|
15
15
|
const MAX_SYSTEM_MEMORY_ITEM_CHARS = 260;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import type { AgentContext } from "@downcity/agent
|
|
12
|
+
import type { AgentContext } from "@downcity/agent";
|
|
13
13
|
import type {
|
|
14
14
|
MemoryReadPayload,
|
|
15
15
|
MemoryReadResponse,
|
package/src/skill/Action.ts
CHANGED
|
@@ -10,7 +10,7 @@ import fs from "fs-extra";
|
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { discoverSkillsSync } from "@/skill/runtime/Discovery.js";
|
|
12
12
|
import type { SkillDefinition } from "@/skill/types/SkillDefinition.js";
|
|
13
|
-
import type { JsonValue } from "@downcity/agent
|
|
13
|
+
import type { JsonValue } from "@downcity/agent";
|
|
14
14
|
import type {
|
|
15
15
|
SkillListResponse,
|
|
16
16
|
SkillLookupRequest,
|
package/src/skill/Plugin.ts
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* - skills overview 文本通过 `plugin.system` 注入,不再依赖 plugin.system。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { BasePlugin } from "@downcity/agent
|
|
11
|
-
import { createAction } from "@downcity/agent
|
|
10
|
+
import { BasePlugin } from "@downcity/agent";
|
|
11
|
+
import { createAction } from "@downcity/agent";
|
|
12
12
|
import { z } from "zod";
|
|
13
|
-
import type { Plugin } from "@downcity/agent
|
|
14
|
-
import type { JsonObject, JsonValue } from "@downcity/agent
|
|
15
|
-
import type { PluginActionResult } from "@downcity/agent
|
|
13
|
+
import type { Plugin } from "@downcity/agent";
|
|
14
|
+
import type { JsonObject, JsonValue } from "@downcity/agent";
|
|
15
|
+
import type { PluginActionResult } from "@downcity/agent";
|
|
16
16
|
import type {
|
|
17
17
|
SkillPluginFindPayload,
|
|
18
18
|
SkillPluginInstallPayload,
|
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
SkillPluginIgnoreRule,
|
|
19
19
|
SkillPluginOptions,
|
|
20
20
|
} from "@/skill/types/SkillPlugin.js";
|
|
21
|
-
import type { JsonObject, JsonValue } from "@downcity/agent
|
|
21
|
+
import type { JsonObject, JsonValue } from "@downcity/agent";
|
|
22
22
|
|
|
23
23
|
function matchesIgnoreRule(
|
|
24
24
|
skill: SkillDefinition,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - `lookup` 行为为无状态:由 action 读取 SKILL.md 后通过协议注入 user message
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { getSessionRunContext } from "@downcity/agent
|
|
10
|
+
import { getSessionRunContext } from "@downcity/agent";
|
|
11
11
|
import { discoverSkillsSync } from "./Discovery.js";
|
|
12
12
|
import { renderSkillsPromptSection } from "./Prompt.js";
|
|
13
13
|
import { setSessionAvailableSkills } from "./Store.js";
|
package/src/task/Action.ts
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import type { ShipTaskStatus } from "./types/Task.js";
|
|
11
|
-
import type { AgentContext } from "@downcity/agent
|
|
12
|
-
import type { JsonValue } from "@downcity/agent
|
|
11
|
+
import type { AgentContext } from "@downcity/agent";
|
|
12
|
+
import type { JsonValue } from "@downcity/agent";
|
|
13
13
|
import {
|
|
14
14
|
deriveTaskIdFromTitle,
|
|
15
15
|
normalizeTaskId,
|
package/src/task/Scheduler.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - cron 调度执行器由宿主注入,task runtime 不依赖具体实现。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
10
|
import {
|
|
11
11
|
isTaskWhenManual,
|
|
12
12
|
resolveTaskWhenCronExpression,
|
package/src/task/TaskPlugin.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* - 当前文件只保留实例骨架与 lifecycle,不再依赖旧的模块级单例。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { BasePlugin } from "@downcity/agent
|
|
11
|
-
import type { PluginActions } from "@downcity/agent
|
|
12
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import { BasePlugin } from "@downcity/agent";
|
|
11
|
+
import type { PluginActions } from "@downcity/agent";
|
|
12
|
+
import type { AgentContext } from "@downcity/agent";
|
|
13
13
|
import type {
|
|
14
14
|
TaskCronRegisterResult,
|
|
15
15
|
TaskSchedulerReloadResult,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
reloadTaskSchedulerAfterMutation,
|
|
25
25
|
} from "@/task/runtime/TaskActionExecution.js";
|
|
26
26
|
import { TASK_PLUGIN_PROMPT } from "@/task/runtime/TaskPluginSystem.js";
|
|
27
|
-
import { resolveRuntimeTimezone } from "@downcity/agent
|
|
27
|
+
import { resolveRuntimeTimezone } from "@downcity/agent";
|
|
28
28
|
|
|
29
29
|
const TASK_LOG_PREFIX = "[TASK]";
|
|
30
30
|
|
|
@@ -17,7 +17,7 @@ import type {
|
|
|
17
17
|
ShipTaskKind,
|
|
18
18
|
ShipTaskStatus,
|
|
19
19
|
} from "@/task/types/Task.js";
|
|
20
|
-
import type { JsonObject, JsonValue } from "@downcity/agent
|
|
20
|
+
import type { JsonObject, JsonValue } from "@downcity/agent";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* 必填 frontmatter 字段清单。
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - 把最终产物写入 run 目录的具体格式委托给 `TaskRunArtifacts.ts`。
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type { AgentContext } from "@downcity/agent
|
|
11
|
+
import type { AgentContext } from "@downcity/agent";
|
|
12
12
|
import type {
|
|
13
13
|
DialogueRoundRecord,
|
|
14
14
|
UserSimulatorDecision,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - task 定义变更后的 scheduler reload 通过回调注入,避免执行层依赖具体 service 实现。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
10
|
import type {
|
|
11
11
|
TaskCronRegisterResult,
|
|
12
12
|
TaskListActionPayload,
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* - 参数校验尽量前置到输入层,避免进入执行层后才发现字段非法。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { resolveSessionId } from "@downcity/agent
|
|
10
|
-
import type { JsonValue } from "@downcity/agent
|
|
11
|
-
import type { PluginActionCommandInput } from "@downcity/agent
|
|
9
|
+
import { resolveSessionId } from "@downcity/agent";
|
|
10
|
+
import type { JsonValue } from "@downcity/agent";
|
|
11
|
+
import type { PluginActionCommandInput } from "@downcity/agent";
|
|
12
12
|
import type { ShipTaskKind, ShipTaskStatus } from "@/task/types/Task.js";
|
|
13
13
|
import type {
|
|
14
14
|
TaskCreateRequest,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import type { Command } from "commander";
|
|
10
|
-
import type { PluginActions } from "@downcity/agent
|
|
11
|
-
import { createAction } from "@downcity/agent
|
|
10
|
+
import type { PluginActions } from "@downcity/agent";
|
|
11
|
+
import { createAction } from "@downcity/agent";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import type { TaskListActionPayload } from "@/task/types/TaskPluginTypes.js";
|
|
14
14
|
import type {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - 回发失败只记录日志,不影响 task run 自身状态。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { AgentContext } from "@downcity/agent
|
|
10
|
+
import type { AgentContext } from "@downcity/agent";
|
|
11
11
|
import type { ShipTaskDefinitionV1 } from "@/task/types/Task.js";
|
|
12
12
|
|
|
13
13
|
function resolveTaskFinalText(params: {
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs from "fs-extra";
|
|
11
|
-
import type { AgentContext } from "@downcity/agent
|
|
11
|
+
import type { AgentContext } from "@downcity/agent";
|
|
12
12
|
import { runSandboxCommand } from "@downcity/shell/sandbox/SandboxRunner.js";
|
|
13
13
|
import type { ShellHostContext } from "@downcity/shell/types/ShellHostContext.js";
|
|
14
14
|
import { withShellRunScope } from "@downcity/shell";
|
|
15
|
-
import type { SessionRunResult } from "@downcity/agent
|
|
16
|
-
import type { SessionRunContext } from "@downcity/agent
|
|
17
|
-
import type { JsonObject } from "@downcity/agent
|
|
15
|
+
import type { SessionRunResult } from "@downcity/agent";
|
|
16
|
+
import type { SessionRunContext } from "@downcity/agent";
|
|
17
|
+
import type { JsonObject } from "@downcity/agent";
|
|
18
18
|
import type {
|
|
19
19
|
ChatSendOutputPick,
|
|
20
20
|
ScriptExecutionResult,
|
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
TaskSessionRuntimePort,
|
|
23
23
|
UserSimulatorDecision,
|
|
24
24
|
} from "@/task/runtime/TaskRunnerTypes.js";
|
|
25
|
-
import { withSessionRunScope } from "@downcity/agent
|
|
25
|
+
import { withSessionRunScope } from "@downcity/agent";
|
|
26
26
|
import { appendTaskRoundUserMessage } from "./TaskRunnerSession.js";
|
|
27
27
|
|
|
28
28
|
function stripTaskSecretEnv(env: NodeJS.ProcessEnv): void {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - 这里集中处理 script 执行、结果校验与进度更新,Runner 主链只消费归一化结果。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentContext } from "@downcity/agent
|
|
9
|
+
import type { AgentContext } from "@downcity/agent";
|
|
10
10
|
import type {
|
|
11
11
|
ShipTaskRunExecutionStatusV1,
|
|
12
12
|
ShipTaskRunResultStatusV1,
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import type { LanguageModel, Tool } from "ai";
|
|
13
|
-
import type { AgentContext } from "@downcity/agent
|
|
14
|
-
import { Executor } from "@downcity/agent
|
|
15
|
-
import type { SessionRunResult } from "@downcity/agent
|
|
13
|
+
import type { AgentContext } from "@downcity/agent";
|
|
14
|
+
import { Executor } from "@downcity/agent";
|
|
15
|
+
import type { SessionRunResult } from "@downcity/agent";
|
|
16
16
|
import type { TaskSessionRuntimePort } from "@/task/runtime/TaskRunnerTypes.js";
|
|
17
|
-
import { drainDeferredPersistedUserMessages } from "@downcity/agent
|
|
18
|
-
import { JsonlSessionHistoryComposer } from "@downcity/agent
|
|
19
|
-
import { JsonlSessionHistoryStore } from "@downcity/agent
|
|
20
|
-
import { JsonlSessionCompactionComposer } from "@downcity/agent
|
|
21
|
-
import { LocalSessionContextComposer } from "@downcity/agent
|
|
22
|
-
import { DefaultSessionSystemComposer } from "@downcity/agent
|
|
17
|
+
import { drainDeferredPersistedUserMessages } from "@downcity/agent";
|
|
18
|
+
import { JsonlSessionHistoryComposer } from "@downcity/agent";
|
|
19
|
+
import { JsonlSessionHistoryStore } from "@downcity/agent";
|
|
20
|
+
import { JsonlSessionCompactionComposer } from "@downcity/agent";
|
|
21
|
+
import { LocalSessionContextComposer } from "@downcity/agent";
|
|
22
|
+
import { DefaultSessionSystemComposer } from "@downcity/agent";
|
|
23
23
|
import { Shell } from "@downcity/shell";
|
|
24
|
-
import type { SessionExecutor } from "@downcity/agent
|
|
24
|
+
import type { SessionExecutor } from "@downcity/agent";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* 把 task round 的 user query 落盘到对应 run context。
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* - 这些类型服务于 task 运行链路,统一归档到 `src/types/task/`。
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { JsonlSessionHistoryStore } from "@downcity/agent
|
|
10
|
-
import type { SessionExecutor } from "@downcity/agent
|
|
9
|
+
import type { JsonlSessionHistoryStore } from "@downcity/agent";
|
|
10
|
+
import type { SessionExecutor } from "@downcity/agent";
|
|
11
11
|
import type {
|
|
12
12
|
ShipTaskRunExecutionStatusV1,
|
|
13
13
|
ShipTaskRunProgressPhaseV1,
|
package/src/tts/Plugin.ts
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* - action 返回 AI SDK UIMessage,音频 file part 会由 plugin tool bridge 统一落盘到资源目录。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { BasePlugin } from "@downcity/agent
|
|
11
|
-
import { createAction } from "@downcity/agent
|
|
10
|
+
import { BasePlugin } from "@downcity/agent";
|
|
11
|
+
import { createAction } from "@downcity/agent";
|
|
12
12
|
import { z } from "zod";
|
|
13
|
-
import type { AgentContext } from "@downcity/agent
|
|
13
|
+
import type { AgentContext } from "@downcity/agent";
|
|
14
14
|
import type {
|
|
15
15
|
JsonObject,
|
|
16
16
|
JsonValue,
|
|
17
|
-
} from "@downcity/agent
|
|
17
|
+
} from "@downcity/agent";
|
|
18
18
|
import type {
|
|
19
19
|
TtsPluginInput,
|
|
20
20
|
TtsPluginOptions,
|