@downcity/agent 1.1.25 → 1.1.35
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/README.md +26 -84
- package/bin/config/Defaults.js +1 -1
- package/bin/config/Defaults.js.map +1 -1
- package/bin/config/DowncitySchema.d.ts.map +1 -1
- package/bin/config/DowncitySchema.js +2 -8
- package/bin/config/DowncitySchema.js.map +1 -1
- package/bin/config/Paths.d.ts +12 -10
- package/bin/config/Paths.d.ts.map +1 -1
- package/bin/config/Paths.js +23 -17
- package/bin/config/Paths.js.map +1 -1
- package/bin/config/project/AgentInitializer.d.ts.map +1 -1
- package/bin/config/project/AgentInitializer.js +4 -4
- package/bin/config/project/AgentInitializer.js.map +1 -1
- package/bin/core/AgentContextTypes.d.ts +21 -55
- package/bin/core/AgentContextTypes.d.ts.map +1 -1
- package/bin/core/AgentContextTypes.js +1 -1
- package/bin/core/AgentCore.d.ts +17 -16
- package/bin/core/AgentCore.d.ts.map +1 -1
- package/bin/core/AgentCore.js +90 -126
- package/bin/core/AgentCore.js.map +1 -1
- package/bin/core/AgentCoreTypes.d.ts +5 -5
- package/bin/core/AgentCoreTypes.d.ts.map +1 -1
- package/bin/core/AgentCoreTypes.js +1 -1
- package/bin/executor/Executor.d.ts +172 -0
- package/bin/executor/Executor.d.ts.map +1 -0
- package/bin/executor/Executor.js.map +1 -0
- package/bin/executor/SessionRunScope.d.ts +84 -0
- package/bin/executor/SessionRunScope.d.ts.map +1 -0
- package/bin/executor/SessionRunScope.js +82 -0
- package/bin/executor/SessionRunScope.js.map +1 -0
- package/bin/executor/composer/compaction/SessionCompactionComposer.d.ts +55 -0
- package/bin/executor/composer/compaction/SessionCompactionComposer.d.ts.map +1 -0
- package/bin/executor/composer/compaction/SessionCompactionComposer.js.map +1 -0
- package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts.map +1 -0
- package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionComposer.js.map +1 -0
- package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts +46 -0
- package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts.map +1 -0
- package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js.map +1 -0
- package/bin/executor/composer/context/LocalSessionContextComposer.d.ts +48 -0
- package/bin/executor/composer/context/LocalSessionContextComposer.d.ts.map +1 -0
- package/bin/executor/composer/context/LocalSessionContextComposer.js.map +1 -0
- package/bin/executor/composer/context/SessionContextComposer.d.ts +62 -0
- package/bin/executor/composer/context/SessionContextComposer.d.ts.map +1 -0
- package/bin/executor/composer/context/SessionContextComposer.js.map +1 -0
- package/bin/executor/composer/history/SessionHistoryComposer.d.ts +54 -0
- package/bin/executor/composer/history/SessionHistoryComposer.d.ts.map +1 -0
- package/bin/executor/composer/history/SessionHistoryComposer.js.map +1 -0
- package/bin/executor/composer/history/SessionHistoryWriter.d.ts +56 -0
- package/bin/executor/composer/history/SessionHistoryWriter.d.ts.map +1 -0
- package/bin/executor/composer/history/SessionHistoryWriter.js.map +1 -0
- package/bin/executor/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +35 -0
- package/bin/executor/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts.map +1 -0
- package/bin/executor/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +1 -0
- package/bin/executor/composer/system/SessionSystemComposer.d.ts.map +1 -0
- package/bin/executor/composer/system/SessionSystemComposer.js.map +1 -0
- package/bin/executor/composer/system/default/DefaultSessionSystemComposer.d.ts +42 -0
- package/bin/executor/composer/system/default/DefaultSessionSystemComposer.d.ts.map +1 -0
- package/bin/executor/composer/system/default/DefaultSessionSystemComposer.js.map +1 -0
- package/bin/executor/composer/system/default/InitPromptAssets.d.ts.map +1 -0
- package/bin/executor/composer/system/default/InitPromptAssets.js.map +1 -0
- package/bin/executor/composer/system/default/InitPrompts.d.ts.map +1 -0
- package/bin/executor/composer/system/default/InitPrompts.js.map +1 -0
- package/bin/executor/composer/system/default/PromptRenderer.d.ts.map +1 -0
- package/bin/executor/composer/system/default/PromptRenderer.js.map +1 -0
- package/bin/executor/composer/system/default/StaticPromptCatalog.d.ts.map +1 -0
- package/bin/executor/composer/system/default/StaticPromptCatalog.js.map +1 -0
- package/bin/executor/composer/system/default/SystemDomain.d.ts +169 -0
- package/bin/executor/composer/system/default/SystemDomain.d.ts.map +1 -0
- package/bin/executor/composer/system/default/SystemDomain.js +221 -0
- package/bin/executor/composer/system/default/SystemDomain.js.map +1 -0
- package/bin/executor/composer/system/default/SystemPromptAssets.d.ts +20 -0
- package/bin/executor/composer/system/default/SystemPromptAssets.d.ts.map +1 -0
- package/bin/executor/composer/system/default/SystemPromptAssets.js +23 -0
- package/bin/executor/composer/system/default/SystemPromptAssets.js.map +1 -0
- package/bin/executor/composer/system/default/assets/core.prompt.d.ts +7 -0
- package/bin/executor/composer/system/default/assets/core.prompt.d.ts.map +1 -0
- package/bin/executor/composer/system/default/assets/core.prompt.js +8 -0
- package/bin/executor/composer/system/default/assets/core.prompt.js.map +1 -0
- package/bin/executor/composer/system/default/assets/init/PROFILE.md.d.ts.map +1 -0
- package/bin/executor/composer/system/default/assets/init/PROFILE.md.js +8 -0
- package/bin/executor/composer/system/default/assets/init/PROFILE.md.js.map +1 -0
- package/bin/executor/composer/system/default/assets/init/SOUL.md.d.ts.map +1 -0
- package/bin/executor/composer/system/default/assets/init/SOUL.md.js +8 -0
- package/bin/executor/composer/system/default/assets/init/SOUL.md.js.map +1 -0
- package/bin/executor/composer/system/default/assets/plugin.prompt.d.ts +7 -0
- package/bin/executor/composer/system/default/assets/plugin.prompt.d.ts.map +1 -0
- package/bin/executor/composer/system/default/assets/plugin.prompt.js +8 -0
- package/bin/executor/composer/system/default/assets/plugin.prompt.js.map +1 -0
- package/bin/executor/composer/system/default/assets/task.prompt.d.ts.map +1 -0
- package/bin/executor/composer/system/default/assets/task.prompt.js +8 -0
- package/bin/executor/composer/system/default/assets/task.prompt.js.map +1 -0
- package/bin/executor/composer/system/default/variables/GeoContext.d.ts.map +1 -0
- package/bin/executor/composer/system/default/variables/GeoContext.js.map +1 -0
- package/bin/executor/composer/system/default/variables/PromptTypes.d.ts.map +1 -0
- package/bin/executor/composer/system/default/variables/PromptTypes.js.map +1 -0
- package/bin/executor/composer/system/default/variables/VariableReplacer.d.ts.map +1 -0
- package/bin/executor/composer/system/default/variables/VariableReplacer.js.map +1 -0
- package/bin/executor/core-engine/CoreEngineError.d.ts.map +1 -0
- package/bin/executor/core-engine/CoreEngineError.js.map +1 -0
- package/bin/executor/core-engine/CoreEngineLoopDecision.d.ts +27 -0
- package/bin/executor/core-engine/CoreEngineLoopDecision.d.ts.map +1 -0
- package/bin/executor/core-engine/CoreEngineLoopDecision.js.map +1 -0
- package/bin/executor/core-engine/CoreEngineMessageState.d.ts +63 -0
- package/bin/executor/core-engine/CoreEngineMessageState.d.ts.map +1 -0
- package/bin/executor/core-engine/CoreEngineMessageState.js.map +1 -0
- package/bin/executor/core-engine/CoreEngineSignals.d.ts +72 -0
- package/bin/executor/core-engine/CoreEngineSignals.d.ts.map +1 -0
- package/bin/executor/core-engine/CoreEngineSignals.js.map +1 -0
- package/bin/executor/core-engine/CoreEngineUiStreamCollector.d.ts +33 -0
- package/bin/executor/core-engine/CoreEngineUiStreamCollector.d.ts.map +1 -0
- package/bin/executor/core-engine/CoreEngineUiStreamCollector.js.map +1 -0
- package/bin/executor/ids/resolveSessionId.d.ts.map +1 -0
- package/bin/executor/ids/resolveSessionId.js.map +1 -0
- package/bin/executor/messages/AssistantResultPersistence.d.ts +66 -0
- package/bin/executor/messages/AssistantResultPersistence.d.ts.map +1 -0
- package/bin/executor/messages/AssistantResultPersistence.js +48 -0
- package/bin/executor/messages/AssistantResultPersistence.js.map +1 -0
- package/bin/executor/messages/SessionAttachmentMapper.d.ts +14 -0
- package/bin/executor/messages/SessionAttachmentMapper.d.ts.map +1 -0
- package/bin/executor/messages/SessionAttachmentMapper.js +145 -0
- package/bin/executor/messages/SessionAttachmentMapper.js.map +1 -0
- package/bin/executor/messages/SessionMessageCodec.d.ts +41 -0
- package/bin/executor/messages/SessionMessageCodec.d.ts.map +1 -0
- package/bin/executor/messages/SessionMessageCodec.js.map +1 -0
- package/bin/executor/messages/SessionMessageLog.d.ts +19 -0
- package/bin/executor/messages/SessionMessageLog.d.ts.map +1 -0
- package/bin/executor/messages/SessionMessageLog.js.map +1 -0
- package/bin/executor/messages/SessionStepEventMapper.d.ts +20 -0
- package/bin/executor/messages/SessionStepEventMapper.d.ts.map +1 -0
- package/bin/executor/messages/SessionStepEventMapper.js.map +1 -0
- package/bin/executor/store/history/SessionHistoryStore.d.ts +119 -0
- package/bin/executor/store/history/SessionHistoryStore.d.ts.map +1 -0
- package/bin/executor/store/history/SessionHistoryStore.js.map +1 -0
- package/bin/executor/store/history/jsonl/JsonlSessionHistoryStore.d.ts +85 -0
- package/bin/executor/store/history/jsonl/JsonlSessionHistoryStore.d.ts.map +1 -0
- package/bin/executor/store/history/jsonl/JsonlSessionHistoryStore.js +382 -0
- package/bin/executor/store/history/jsonl/JsonlSessionHistoryStore.js.map +1 -0
- package/bin/executor/tools/shell/ShellToolBridge.d.ts +79 -0
- package/bin/executor/tools/shell/ShellToolBridge.d.ts.map +1 -0
- package/bin/executor/tools/shell/ShellToolBridge.js +288 -0
- package/bin/executor/tools/shell/ShellToolBridge.js.map +1 -0
- package/bin/executor/tools/shell/ShellToolDefinition.d.ts +114 -0
- package/bin/executor/tools/shell/ShellToolDefinition.d.ts.map +1 -0
- package/bin/executor/tools/shell/ShellToolDefinition.js +359 -0
- package/bin/executor/tools/shell/ShellToolDefinition.js.map +1 -0
- package/bin/executor/tools/shell/ShellToolFormatting.d.ts +26 -0
- package/bin/executor/tools/shell/ShellToolFormatting.d.ts.map +1 -0
- package/bin/executor/tools/shell/ShellToolFormatting.js +74 -0
- package/bin/executor/tools/shell/ShellToolFormatting.js.map +1 -0
- package/bin/executor/tools/shell/ShellToolSchemas.d.ts.map +1 -0
- package/bin/executor/tools/shell/ShellToolSchemas.js +113 -0
- package/bin/executor/tools/shell/ShellToolSchemas.js.map +1 -0
- package/bin/executor/types/SessionExecutor.d.ts +18 -0
- package/bin/executor/types/SessionExecutor.d.ts.map +1 -0
- package/bin/executor/types/SessionExecutor.js.map +1 -0
- package/bin/executor/types/SessionHistoryMeta.d.ts +45 -0
- package/bin/executor/types/SessionHistoryMeta.d.ts.map +1 -0
- package/bin/executor/types/SessionHistoryMeta.js +9 -0
- package/bin/executor/types/SessionHistoryMeta.js.map +1 -0
- package/bin/executor/types/SessionHistoryPaths.d.ts +30 -0
- package/bin/executor/types/SessionHistoryPaths.d.ts.map +1 -0
- package/bin/executor/types/SessionHistoryPaths.js.map +1 -0
- package/bin/executor/types/SessionLoop.d.ts.map +1 -0
- package/bin/executor/types/SessionLoop.js.map +1 -0
- package/bin/executor/types/SessionMessages.d.ts +83 -0
- package/bin/executor/types/SessionMessages.d.ts.map +1 -0
- package/bin/executor/types/SessionMessages.js.map +1 -0
- package/bin/executor/types/SessionPrompts.d.ts.map +1 -0
- package/bin/executor/types/SessionPrompts.js.map +1 -0
- package/bin/executor/types/SessionRun.d.ts +112 -0
- package/bin/executor/types/SessionRun.d.ts.map +1 -0
- package/bin/executor/types/SessionRun.js.map +1 -0
- package/bin/index.d.ts +40 -40
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +29 -29
- package/bin/index.js.map +1 -1
- package/bin/plugin/builtins/asr/Plugin.d.ts +7 -3
- package/bin/plugin/builtins/asr/Plugin.d.ts.map +1 -1
- package/bin/plugin/builtins/asr/Plugin.js +405 -395
- package/bin/plugin/builtins/asr/Plugin.js.map +1 -1
- package/bin/plugin/builtins/auth/Plugin.d.ts +7 -3
- package/bin/plugin/builtins/auth/Plugin.d.ts.map +1 -1
- package/bin/plugin/builtins/auth/Plugin.js +134 -124
- package/bin/plugin/builtins/auth/Plugin.js.map +1 -1
- package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts +1 -1
- package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts.map +1 -1
- package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts +1 -1
- package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts.map +1 -1
- package/bin/plugin/builtins/auth/types/AuthPlugin.js +1 -1
- package/bin/plugin/builtins/auth/types/AuthPlugin.js.map +1 -1
- package/bin/plugin/builtins/chat/Action.d.ts +125 -0
- package/bin/plugin/builtins/chat/Action.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/Action.js +376 -0
- package/bin/plugin/builtins/chat/Action.js.map +1 -0
- package/bin/plugin/builtins/chat/ChatPlugin.d.ts +89 -0
- package/bin/plugin/builtins/chat/ChatPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/ChatPlugin.js +212 -0
- package/bin/plugin/builtins/chat/ChatPlugin.js.map +1 -0
- package/bin/plugin/builtins/chat/ChatPluginTypes.d.ts +159 -0
- package/bin/plugin/builtins/chat/ChatPluginTypes.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/ChatPluginTypes.js +10 -0
- package/bin/plugin/builtins/chat/ChatPluginTypes.js.map +1 -0
- package/bin/plugin/builtins/chat/Index.d.ts +9 -0
- package/bin/plugin/builtins/chat/Index.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/Index.js +9 -0
- package/bin/plugin/builtins/chat/Index.js.map +1 -0
- package/bin/plugin/builtins/chat/PROMPT.direct.d.ts +7 -0
- package/bin/plugin/builtins/chat/PROMPT.direct.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/PROMPT.direct.js +8 -0
- package/bin/plugin/builtins/chat/PROMPT.direct.js.map +1 -0
- package/bin/plugin/builtins/chat/accounts/ChannelAccountManager.d.ts +63 -0
- package/bin/plugin/builtins/chat/accounts/ChannelAccountManager.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/accounts/ChannelAccountManager.js +258 -0
- package/bin/plugin/builtins/chat/accounts/ChannelAccountManager.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannel.d.ts +201 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannel.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannel.js +294 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannel.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannelQueue.d.ts +73 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannelQueue.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannelQueue.js +237 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannelQueue.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannelSupport.d.ts +189 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannelSupport.js +141 -0
- package/bin/plugin/builtins/chat/channels/BaseChatChannelSupport.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/BotInfoProvider.d.ts +18 -0
- package/bin/plugin/builtins/chat/channels/BotInfoProvider.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/BotInfoProvider.js +32 -0
- package/bin/plugin/builtins/chat/channels/BotInfoProvider.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/Configuration.d.ts +27 -0
- package/bin/plugin/builtins/chat/channels/Configuration.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/Configuration.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/ConfigurationRegistry.d.ts +18 -0
- package/bin/plugin/builtins/chat/channels/ConfigurationRegistry.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/ConfigurationRegistry.js +31 -0
- package/bin/plugin/builtins/chat/channels/ConfigurationRegistry.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/BotInfo.d.ts +20 -0
- package/bin/plugin/builtins/chat/channels/feishu/BotInfo.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/BotInfo.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/Configuration.d.ts +17 -0
- package/bin/plugin/builtins/chat/channels/feishu/Configuration.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/Configuration.js +59 -0
- package/bin/plugin/builtins/chat/channels/feishu/Configuration.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/Feishu.d.ts +116 -0
- package/bin/plugin/builtins/chat/channels/feishu/Feishu.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/Feishu.js +326 -0
- package/bin/plugin/builtins/chat/channels/feishu/Feishu.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuInbound.d.ts +21 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuInbound.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuInbound.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.d.ts +155 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.js +247 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +130 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts +102 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts +49 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/InboundAttachment.d.ts +31 -0
- package/bin/plugin/builtins/chat/channels/feishu/InboundAttachment.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/InboundAttachment.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/PROMPT.direct.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/PROMPT.direct.js +8 -0
- package/bin/plugin/builtins/chat/channels/feishu/PROMPT.direct.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/PostMessage.d.ts +48 -0
- package/bin/plugin/builtins/chat/channels/feishu/PostMessage.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/PostMessage.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/ReplyContext.d.ts +18 -0
- package/bin/plugin/builtins/chat/channels/feishu/ReplyContext.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/ReplyContext.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/Shared.d.ts +21 -0
- package/bin/plugin/builtins/chat/channels/feishu/Shared.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/Shared.js +69 -0
- package/bin/plugin/builtins/chat/channels/feishu/Shared.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/types/FeishuChannel.d.ts +127 -0
- package/bin/plugin/builtins/chat/channels/feishu/types/FeishuChannel.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/feishu/types/FeishuChannel.js +9 -0
- package/bin/plugin/builtins/chat/channels/feishu/types/FeishuChannel.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/BotInfo.d.ts +19 -0
- package/bin/plugin/builtins/chat/channels/qq/BotInfo.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/BotInfo.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/Configuration.d.ts +17 -0
- package/bin/plugin/builtins/chat/channels/qq/Configuration.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/Configuration.js +59 -0
- package/bin/plugin/builtins/chat/channels/qq/Configuration.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/PROMPT.direct.d.ts +7 -0
- package/bin/plugin/builtins/chat/channels/qq/PROMPT.direct.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/PROMPT.direct.js +8 -0
- package/bin/plugin/builtins/chat/channels/qq/PROMPT.direct.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQ.d.ts +92 -0
- package/bin/plugin/builtins/chat/channels/qq/QQ.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQ.js +287 -0
- package/bin/plugin/builtins/chat/channels/qq/QQ.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQEventCapture.d.ts +22 -0
- package/bin/plugin/builtins/chat/channels/qq/QQEventCapture.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQEventCapture.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayAuth.d.ts +119 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayAuth.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayClient.d.ts +155 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayClient.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayConnection.d.ts +65 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayConnection.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayConnection.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayHeartbeat.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayHeartbeat.js +58 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayHeartbeat.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayProtocol.d.ts +86 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayProtocol.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayProtocol.js +93 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewayProtocol.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewaySend.d.ts +84 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewaySend.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewaySend.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewaySupport.d.ts +39 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewaySupport.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQGatewaySupport.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQInbound.d.ts +47 -0
- package/bin/plugin/builtins/chat/channels/qq/QQInbound.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQInbound.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQInboundDedupe.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQMessageHandler.d.ts +129 -0
- package/bin/plugin/builtins/chat/channels/qq/QQMessageHandler.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQMessageHandler.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQSendSupport.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQSendSupport.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQSupport.d.ts +102 -0
- package/bin/plugin/builtins/chat/channels/qq/QQSupport.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/QQSupport.js +172 -0
- package/bin/plugin/builtins/chat/channels/qq/QQSupport.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/VoiceInput.d.ts +64 -0
- package/bin/plugin/builtins/chat/channels/qq/VoiceInput.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/VoiceInput.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/types/QqChannel.d.ts +485 -0
- package/bin/plugin/builtins/chat/channels/qq/types/QqChannel.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/types/QqChannel.js +42 -0
- package/bin/plugin/builtins/chat/channels/qq/types/QqChannel.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/types/QqGatewaySupport.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/qq/types/QqGatewaySupport.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/ApiClient.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/ApiClient.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/Bot.d.ts +97 -0
- package/bin/plugin/builtins/chat/channels/telegram/Bot.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/Bot.js +246 -0
- package/bin/plugin/builtins/chat/channels/telegram/Bot.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/BotInfo.d.ts +19 -0
- package/bin/plugin/builtins/chat/channels/telegram/BotInfo.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/BotInfo.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/Configuration.d.ts +17 -0
- package/bin/plugin/builtins/chat/channels/telegram/Configuration.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/Configuration.js +59 -0
- package/bin/plugin/builtins/chat/channels/telegram/Configuration.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/Handlers.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/Handlers.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/PROMPT.direct.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/PROMPT.direct.js +8 -0
- package/bin/plugin/builtins/chat/channels/telegram/PROMPT.direct.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/ReplyContext.d.ts +14 -0
- package/bin/plugin/builtins/chat/channels/telegram/ReplyContext.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/ReplyContext.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/Shared.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/Shared.js +171 -0
- package/bin/plugin/builtins/chat/channels/telegram/Shared.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/StateStore.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/StateStore.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramInbound.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramInbound.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.d.ts +142 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.js +267 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts +55 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramPendingUpdates.js.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts +161 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/channels/telegram/TelegramPlatformClient.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChannelContextStore.d.ts +78 -0
- package/bin/plugin/builtins/chat/runtime/ChannelContextStore.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChannelContextStore.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionExecution.d.ts +145 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionExecution.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionExecution.js +287 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionExecution.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionInput.d.ts +22 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionInput.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionInput.js +114 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionInput.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionInputSupport.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatActionInputSupport.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelActions.d.ts +122 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelActions.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelActions.js +230 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelActions.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelConfig.d.ts +61 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelConfig.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelConfig.js +260 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelConfig.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelCore.d.ts +45 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelCore.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelCore.js +106 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelCore.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelFacade.d.ts +12 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelFacade.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelFacade.js +12 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelFacade.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelLifecycle.d.ts +28 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelLifecycle.js +132 -0
- package/bin/plugin/builtins/chat/runtime/ChatChannelLifecycle.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatHistoryStore.d.ts +72 -0
- package/bin/plugin/builtins/chat/runtime/ChatHistoryStore.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatHistoryStore.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatIngressStore.d.ts +44 -0
- package/bin/plugin/builtins/chat/runtime/ChatIngressStore.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatIngressStore.js +51 -0
- package/bin/plugin/builtins/chat/runtime/ChatIngressStore.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatMessageMarkup.d.ts +54 -0
- package/bin/plugin/builtins/chat/runtime/ChatMessageMarkup.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatMessageMarkup.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatMetaStore.d.ts +68 -0
- package/bin/plugin/builtins/chat/runtime/ChatMetaStore.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatMetaStore.js +143 -0
- package/bin/plugin/builtins/chat/runtime/ChatMetaStore.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginActionRegistry.d.ts +17 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginActionRegistry.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginActionRegistry.js +304 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginActionRegistry.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginActions.d.ts +5 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginActions.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginActions.js +5 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginActions.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginSystem.d.ts +22 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginSystem.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginSystem.js +44 -0
- package/bin/plugin/builtins/chat/runtime/ChatPluginSystem.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatPromptAssets.d.ts +24 -0
- package/bin/plugin/builtins/chat/runtime/ChatPromptAssets.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatPromptAssets.js +28 -0
- package/bin/plugin/builtins/chat/runtime/ChatPromptAssets.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueue.d.ts +40 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueue.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueue.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueReplyDispatch.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueStore.d.ts +85 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueStore.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueStore.js +130 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueStore.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueWorker.d.ts +83 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueWorker.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueWorker.js +406 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueWorker.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts +36 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatQueueWorkerSupport.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendActionInput.d.ts +23 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendActionInput.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendActionInput.js +205 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendActionInput.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendMetadata.d.ts +20 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendMetadata.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendMetadata.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendRegistry.d.ts +27 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendRegistry.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSendRegistry.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSession.d.ts +97 -0
- package/bin/plugin/builtins/chat/runtime/ChatSession.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSession.js +84 -0
- package/bin/plugin/builtins/chat/runtime/ChatSession.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionContextComposer.d.ts +45 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionContextComposer.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionContextComposer.js +60 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionContextComposer.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionDelete.d.ts +29 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionDelete.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionDelete.js +76 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionDelete.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionTypes.d.ts +30 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionTypes.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatSessionTypes.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatkeySend.d.ts +67 -0
- package/bin/plugin/builtins/chat/runtime/ChatkeySend.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ChatkeySend.js +147 -0
- package/bin/plugin/builtins/chat/runtime/ChatkeySend.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/DirectDispatchParser.d.ts +22 -0
- package/bin/plugin/builtins/chat/runtime/DirectDispatchParser.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/DirectDispatchParser.js +133 -0
- package/bin/plugin/builtins/chat/runtime/DirectDispatchParser.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/EnqueueDispatch.d.ts +24 -0
- package/bin/plugin/builtins/chat/runtime/EnqueueDispatch.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/EnqueueDispatch.js +28 -0
- package/bin/plugin/builtins/chat/runtime/EnqueueDispatch.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/InboundAugment.d.ts +21 -0
- package/bin/plugin/builtins/chat/runtime/InboundAugment.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/InboundAugment.js +50 -0
- package/bin/plugin/builtins/chat/runtime/InboundAugment.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/PluginDispatch.d.ts +43 -0
- package/bin/plugin/builtins/chat/runtime/PluginDispatch.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/PluginDispatch.js +57 -0
- package/bin/plugin/builtins/chat/runtime/PluginDispatch.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/PluginPoints.d.ts +78 -0
- package/bin/plugin/builtins/chat/runtime/PluginPoints.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/PluginPoints.js +78 -0
- package/bin/plugin/builtins/chat/runtime/PluginPoints.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/QueuedUserMessage.d.ts +20 -0
- package/bin/plugin/builtins/chat/runtime/QueuedUserMessage.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/QueuedUserMessage.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ReplyContextFormatter.d.ts +29 -0
- package/bin/plugin/builtins/chat/runtime/ReplyContextFormatter.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ReplyContextFormatter.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ReplyDispatch.d.ts +36 -0
- package/bin/plugin/builtins/chat/runtime/ReplyDispatch.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/ReplyDispatch.js +51 -0
- package/bin/plugin/builtins/chat/runtime/ReplyDispatch.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/SystemPrompt.d.ts +26 -0
- package/bin/plugin/builtins/chat/runtime/SystemPrompt.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/SystemPrompt.js +70 -0
- package/bin/plugin/builtins/chat/runtime/SystemPrompt.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/UIMessageTransformer.d.ts +24 -0
- package/bin/plugin/builtins/chat/runtime/UIMessageTransformer.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/UIMessageTransformer.js.map +1 -0
- package/bin/plugin/builtins/chat/runtime/UserVisibleText.d.ts +34 -0
- package/bin/plugin/builtins/chat/runtime/UserVisibleText.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/runtime/UserVisibleText.js.map +1 -0
- package/bin/plugin/builtins/chat/types/BotInfo.d.ts +97 -0
- package/bin/plugin/builtins/chat/types/BotInfo.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/BotInfo.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChannelAccount.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChannelAccount.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChannelConfiguration.d.ts +146 -0
- package/bin/plugin/builtins/chat/types/ChannelConfiguration.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChannelConfiguration.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChannelContext.d.ts +107 -0
- package/bin/plugin/builtins/chat/types/ChannelContext.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChannelContext.js +9 -0
- package/bin/plugin/builtins/chat/types/ChannelContext.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChannelStatus.d.ts +88 -0
- package/bin/plugin/builtins/chat/types/ChannelStatus.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChannelStatus.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatCommand.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatCommand.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatDispatcher.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatDispatcher.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatHistory.d.ts +36 -0
- package/bin/plugin/builtins/chat/types/ChatHistory.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatHistory.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatMessageMarkup.d.ts +144 -0
- package/bin/plugin/builtins/chat/types/ChatMessageMarkup.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatMessageMarkup.js +9 -0
- package/bin/plugin/builtins/chat/types/ChatMessageMarkup.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatMeta.d.ts +34 -0
- package/bin/plugin/builtins/chat/types/ChatMeta.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatMeta.js +10 -0
- package/bin/plugin/builtins/chat/types/ChatMeta.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatPlugin.d.ts +238 -0
- package/bin/plugin/builtins/chat/types/ChatPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatPlugin.js +10 -0
- package/bin/plugin/builtins/chat/types/ChatPlugin.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatPluginActionPayload.d.ts +145 -0
- package/bin/plugin/builtins/chat/types/ChatPluginActionPayload.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatPluginActionPayload.js +10 -0
- package/bin/plugin/builtins/chat/types/ChatPluginActionPayload.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatPromptContext.d.ts +125 -0
- package/bin/plugin/builtins/chat/types/ChatPromptContext.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatPromptContext.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatQueue.d.ts +36 -0
- package/bin/plugin/builtins/chat/types/ChatQueue.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatQueue.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatQueueWorker.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatQueueWorker.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatRuntime.d.ts +32 -0
- package/bin/plugin/builtins/chat/types/ChatRuntime.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ChatRuntime.js +9 -0
- package/bin/plugin/builtins/chat/types/ChatRuntime.js.map +1 -0
- package/bin/plugin/builtins/chat/types/DirectDispatch.d.ts +115 -0
- package/bin/plugin/builtins/chat/types/DirectDispatch.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/DirectDispatch.js.map +1 -0
- package/bin/plugin/builtins/chat/types/FeishuAttachment.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/FeishuAttachment.js.map +1 -0
- package/bin/plugin/builtins/chat/types/FeishuInboundAttachment.d.ts +114 -0
- package/bin/plugin/builtins/chat/types/FeishuInboundAttachment.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/FeishuInboundAttachment.js.map +1 -0
- package/bin/plugin/builtins/chat/types/FeishuPost.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/FeishuPost.js.map +1 -0
- package/bin/plugin/builtins/chat/types/QqInboundDedupe.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/QqInboundDedupe.js.map +1 -0
- package/bin/plugin/builtins/chat/types/QqVoice.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/QqVoice.js.map +1 -0
- package/bin/plugin/builtins/chat/types/ReplyContext.d.ts.map +1 -0
- package/bin/plugin/builtins/chat/types/ReplyContext.js.map +1 -0
- package/bin/plugin/builtins/contact/Action.d.ts +62 -0
- package/bin/plugin/builtins/contact/Action.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/Action.js +221 -0
- package/bin/plugin/builtins/contact/Action.js.map +1 -0
- package/bin/plugin/builtins/contact/ContactPlugin.d.ts +39 -0
- package/bin/plugin/builtins/contact/ContactPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/ContactPlugin.js +409 -0
- package/bin/plugin/builtins/contact/ContactPlugin.js.map +1 -0
- package/bin/plugin/builtins/contact/Index.d.ts +8 -0
- package/bin/plugin/builtins/contact/Index.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/Index.js +8 -0
- package/bin/plugin/builtins/contact/Index.js.map +1 -0
- package/bin/plugin/builtins/contact/PROMPT.d.ts +7 -0
- package/bin/plugin/builtins/contact/PROMPT.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/PROMPT.js +8 -0
- package/bin/plugin/builtins/contact/PROMPT.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ApproveCallback.d.ts +23 -0
- package/bin/plugin/builtins/contact/runtime/ApproveCallback.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ApproveCallback.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ChatRuntime.d.ts +27 -0
- package/bin/plugin/builtins/contact/runtime/ChatRuntime.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ChatRuntime.js +60 -0
- package/bin/plugin/builtins/contact/runtime/ChatRuntime.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ContactPayload.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ContactPayload.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ContactPromptAssets.d.ts +12 -0
- package/bin/plugin/builtins/contact/runtime/ContactPromptAssets.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ContactPromptAssets.js +13 -0
- package/bin/plugin/builtins/contact/runtime/ContactPromptAssets.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ContactStore.d.ts +49 -0
- package/bin/plugin/builtins/contact/runtime/ContactStore.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ContactStore.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/EndpointNotice.d.ts +39 -0
- package/bin/plugin/builtins/contact/runtime/EndpointNotice.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/EndpointNotice.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/EndpointResolver.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/EndpointResolver.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/InboxStore.d.ts +33 -0
- package/bin/plugin/builtins/contact/runtime/InboxStore.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/InboxStore.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/LinkApproval.d.ts +20 -0
- package/bin/plugin/builtins/contact/runtime/LinkApproval.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/LinkApproval.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/LinkCode.d.ts +21 -0
- package/bin/plugin/builtins/contact/runtime/LinkCode.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/LinkCode.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/LinkStore.d.ts +17 -0
- package/bin/plugin/builtins/contact/runtime/LinkStore.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/LinkStore.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/Paths.d.ts +64 -0
- package/bin/plugin/builtins/contact/runtime/Paths.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/Paths.js +103 -0
- package/bin/plugin/builtins/contact/runtime/Paths.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/RemoteClient.d.ts +46 -0
- package/bin/plugin/builtins/contact/runtime/RemoteClient.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/RemoteClient.js +120 -0
- package/bin/plugin/builtins/contact/runtime/RemoteClient.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ShareBundle.d.ts +65 -0
- package/bin/plugin/builtins/contact/runtime/ShareBundle.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/ShareBundle.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/SystemProvider.d.ts +5 -0
- package/bin/plugin/builtins/contact/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/SystemProvider.js +15 -0
- package/bin/plugin/builtins/contact/runtime/SystemProvider.js.map +1 -0
- package/bin/plugin/builtins/contact/runtime/Token.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/runtime/Token.js.map +1 -0
- package/bin/plugin/builtins/contact/types/Contact.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/types/Contact.js.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactApproval.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactApproval.js.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactChat.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactChat.js.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactCheck.d.ts +66 -0
- package/bin/plugin/builtins/contact/types/ContactCheck.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactCheck.js.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactCommand.d.ts +93 -0
- package/bin/plugin/builtins/contact/types/ContactCommand.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactCommand.js +8 -0
- package/bin/plugin/builtins/contact/types/ContactCommand.js.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactEndpoint.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactEndpoint.js.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactLink.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactLink.js.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactShare.d.ts.map +1 -0
- package/bin/plugin/builtins/contact/types/ContactShare.js.map +1 -0
- package/bin/plugin/builtins/memory/Action.d.ts +37 -0
- package/bin/plugin/builtins/memory/Action.d.ts.map +1 -0
- package/bin/plugin/builtins/memory/Action.js.map +1 -0
- package/bin/plugin/builtins/memory/Index.d.ts +9 -0
- package/bin/plugin/builtins/memory/Index.d.ts.map +1 -0
- package/bin/plugin/builtins/memory/Index.js +9 -0
- package/bin/plugin/builtins/memory/Index.js.map +1 -0
- package/bin/plugin/builtins/memory/MemoryPlugin.d.ts +45 -0
- package/bin/plugin/builtins/memory/MemoryPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/memory/MemoryPlugin.js +242 -0
- package/bin/plugin/builtins/memory/MemoryPlugin.js.map +1 -0
- package/bin/plugin/builtins/memory/runtime/Flush.d.ts +15 -0
- package/bin/plugin/builtins/memory/runtime/Flush.d.ts.map +1 -0
- package/bin/plugin/builtins/memory/runtime/Flush.js.map +1 -0
- package/bin/plugin/builtins/memory/runtime/Search.d.ts +19 -0
- package/bin/plugin/builtins/memory/runtime/Search.d.ts.map +1 -0
- package/bin/plugin/builtins/memory/runtime/Search.js +268 -0
- package/bin/plugin/builtins/memory/runtime/Search.js.map +1 -0
- package/bin/plugin/builtins/memory/runtime/Store.d.ts +65 -0
- package/bin/plugin/builtins/memory/runtime/Store.d.ts.map +1 -0
- package/bin/plugin/builtins/memory/runtime/Store.js +142 -0
- package/bin/plugin/builtins/memory/runtime/Store.js.map +1 -0
- package/bin/plugin/builtins/memory/runtime/SystemProvider.d.ts +22 -0
- package/bin/plugin/builtins/memory/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/plugin/builtins/memory/runtime/SystemProvider.js +126 -0
- package/bin/plugin/builtins/memory/runtime/SystemProvider.js.map +1 -0
- package/bin/plugin/builtins/memory/runtime/Writer.d.ts +23 -0
- package/bin/plugin/builtins/memory/runtime/Writer.d.ts.map +1 -0
- package/bin/plugin/builtins/memory/runtime/Writer.js +139 -0
- package/bin/plugin/builtins/memory/runtime/Writer.js.map +1 -0
- package/bin/plugin/builtins/memory/types/Memory.d.ts.map +1 -0
- package/bin/plugin/builtins/memory/types/Memory.js.map +1 -0
- package/bin/plugin/builtins/schedule/SchedulePlugin.d.ts +39 -0
- package/bin/plugin/builtins/schedule/SchedulePlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/schedule/SchedulePlugin.js +106 -0
- package/bin/plugin/builtins/schedule/SchedulePlugin.js.map +1 -0
- package/bin/plugin/builtins/shell/Index.d.ts +9 -0
- package/bin/plugin/builtins/shell/Index.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/Index.js +9 -0
- package/bin/plugin/builtins/shell/Index.js.map +1 -0
- package/bin/plugin/builtins/shell/ShellPlugin.d.ts +65 -0
- package/bin/plugin/builtins/shell/ShellPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/ShellPlugin.js +138 -0
- package/bin/plugin/builtins/shell/ShellPlugin.js.map +1 -0
- package/bin/plugin/builtins/shell/ShellRuntimeTypes.d.ts +91 -0
- package/bin/plugin/builtins/shell/ShellRuntimeTypes.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/ShellRuntimeTypes.js +10 -0
- package/bin/plugin/builtins/shell/ShellRuntimeTypes.js.map +1 -0
- package/bin/plugin/builtins/shell/runtime/Paths.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/runtime/Paths.js.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionResponse.d.ts +52 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionResponse.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionResponse.js.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionRuntime.d.ts +49 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionRuntime.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionRuntime.js +440 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionRuntime.js.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts +79 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.js +312 -0
- package/bin/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellProcessEvents.d.ts +22 -0
- package/bin/plugin/builtins/shell/runtime/ShellProcessEvents.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellProcessEvents.js.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellRuntimeEnvironment.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/runtime/ShellRuntimeEnvironment.js +75 -0
- package/bin/plugin/builtins/shell/runtime/ShellRuntimeEnvironment.js.map +1 -0
- package/bin/plugin/builtins/shell/types/Shell.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/types/Shell.js.map +1 -0
- package/bin/plugin/builtins/shell/types/ShellPlugin.d.ts +216 -0
- package/bin/plugin/builtins/shell/types/ShellPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/shell/types/ShellPlugin.js +9 -0
- package/bin/plugin/builtins/shell/types/ShellPlugin.js.map +1 -0
- package/bin/plugin/builtins/skill/Plugin.d.ts +8 -4
- package/bin/plugin/builtins/skill/Plugin.d.ts.map +1 -1
- package/bin/plugin/builtins/skill/Plugin.js +215 -205
- package/bin/plugin/builtins/skill/Plugin.js.map +1 -1
- package/bin/plugin/builtins/skill/runtime/SystemProvider.js +1 -1
- package/bin/plugin/builtins/skill/runtime/SystemProvider.js.map +1 -1
- package/bin/plugin/builtins/task/Action.d.ts.map +1 -0
- package/bin/plugin/builtins/task/Action.js.map +1 -0
- package/bin/plugin/builtins/task/Index.d.ts +9 -0
- package/bin/plugin/builtins/task/Index.d.ts.map +1 -0
- package/bin/plugin/builtins/task/Index.js +9 -0
- package/bin/plugin/builtins/task/Index.js.map +1 -0
- package/bin/plugin/builtins/task/PROMPT.d.ts +7 -0
- package/bin/plugin/builtins/task/PROMPT.d.ts.map +1 -0
- package/bin/plugin/builtins/task/PROMPT.js +8 -0
- package/bin/plugin/builtins/task/PROMPT.js.map +1 -0
- package/bin/plugin/builtins/task/Scheduler.d.ts +17 -0
- package/bin/plugin/builtins/task/Scheduler.d.ts.map +1 -0
- package/bin/plugin/builtins/task/Scheduler.js +231 -0
- package/bin/plugin/builtins/task/Scheduler.js.map +1 -0
- package/bin/plugin/builtins/task/TaskPlugin.d.ts +57 -0
- package/bin/plugin/builtins/task/TaskPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/task/TaskPlugin.js +126 -0
- package/bin/plugin/builtins/task/TaskPlugin.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/CronTrigger.d.ts +19 -0
- package/bin/plugin/builtins/task/runtime/CronTrigger.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/CronTrigger.js +93 -0
- package/bin/plugin/builtins/task/runtime/CronTrigger.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/Frontmatter.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/Frontmatter.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/Model.d.ts +73 -0
- package/bin/plugin/builtins/task/runtime/Model.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/Model.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/Paths.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/Paths.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/Runner.d.ts +43 -0
- package/bin/plugin/builtins/task/runtime/Runner.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/Runner.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/Store.d.ts +89 -0
- package/bin/plugin/builtins/task/runtime/Store.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/Store.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskActionExecution.d.ts +160 -0
- package/bin/plugin/builtins/task/runtime/TaskActionExecution.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskActionExecution.js +192 -0
- package/bin/plugin/builtins/task/runtime/TaskActionExecution.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskActionInput.d.ts +19 -0
- package/bin/plugin/builtins/task/runtime/TaskActionInput.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskActionInput.js +218 -0
- package/bin/plugin/builtins/task/runtime/TaskActionInput.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginActionRegistry.d.ts +16 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginActionRegistry.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginActionRegistry.js +167 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginActionRegistry.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginActions.d.ts +5 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginActions.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginActions.js +5 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginActions.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginSystem.d.ts +9 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginSystem.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginSystem.js +9 -0
- package/bin/plugin/builtins/task/runtime/TaskPluginSystem.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskPromptAssets.d.ts +12 -0
- package/bin/plugin/builtins/task/runtime/TaskPromptAssets.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskPromptAssets.js +13 -0
- package/bin/plugin/builtins/task/runtime/TaskPromptAssets.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunArtifacts.d.ts +189 -0
- package/bin/plugin/builtins/task/runtime/TaskRunArtifacts.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunArtifacts.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunChatDispatch.d.ts +22 -0
- package/bin/plugin/builtins/task/runtime/TaskRunChatDispatch.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunChatDispatch.js +66 -0
- package/bin/plugin/builtins/task/runtime/TaskRunChatDispatch.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerProgress.d.ts +35 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerProgress.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerProgress.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerRound.d.ts +80 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerRound.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerRound.js +272 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerRound.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerScript.d.ts +81 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerScript.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerScript.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerSession.d.ts +48 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerSession.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerSession.js +153 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerSession.js.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerTypes.d.ts +186 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerTypes.d.ts.map +1 -0
- package/bin/plugin/builtins/task/runtime/TaskRunnerTypes.js.map +1 -0
- package/bin/plugin/builtins/task/types/Cron.d.ts +16 -0
- package/bin/plugin/builtins/task/types/Cron.d.ts.map +1 -0
- package/bin/plugin/builtins/task/types/Cron.js.map +1 -0
- package/bin/plugin/builtins/task/types/Task.d.ts.map +1 -0
- package/bin/plugin/builtins/task/types/Task.js.map +1 -0
- package/bin/plugin/builtins/task/types/TaskCommand.d.ts.map +1 -0
- package/bin/plugin/builtins/task/types/TaskCommand.js.map +1 -0
- package/bin/plugin/builtins/task/types/TaskPluginTypes.d.ts +52 -0
- package/bin/plugin/builtins/task/types/TaskPluginTypes.d.ts.map +1 -0
- package/bin/plugin/builtins/task/types/TaskPluginTypes.js +9 -0
- package/bin/plugin/builtins/task/types/TaskPluginTypes.js.map +1 -0
- package/bin/plugin/builtins/tts/Plugin.d.ts +7 -3
- package/bin/plugin/builtins/tts/Plugin.d.ts.map +1 -1
- package/bin/plugin/builtins/tts/Plugin.js +419 -409
- package/bin/plugin/builtins/tts/Plugin.js.map +1 -1
- package/bin/plugin/builtins/tts/runtime/Synthesizer.js +1 -1
- package/bin/plugin/builtins/tts/runtime/Synthesizer.js.map +1 -1
- package/bin/plugin/builtins/web/Plugin.d.ts +7 -3
- package/bin/plugin/builtins/web/Plugin.d.ts.map +1 -1
- package/bin/plugin/builtins/web/Plugin.js +380 -370
- package/bin/plugin/builtins/web/Plugin.js.map +1 -1
- package/bin/plugin/builtins/workboard/Plugin.d.ts +7 -3
- package/bin/plugin/builtins/workboard/Plugin.d.ts.map +1 -1
- package/bin/plugin/builtins/workboard/Plugin.js +64 -54
- package/bin/plugin/builtins/workboard/Plugin.js.map +1 -1
- package/bin/plugin/builtins/workboard/runtime/Collector.d.ts +1 -1
- package/bin/plugin/builtins/workboard/runtime/Collector.d.ts.map +1 -1
- package/bin/plugin/builtins/workboard/runtime/Collector.js +7 -6
- package/bin/plugin/builtins/workboard/runtime/Collector.js.map +1 -1
- package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts +3 -3
- package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts.map +1 -1
- package/bin/plugin/builtins/workboard/runtime/Normalizer.js +1 -1
- package/bin/plugin/builtins/workboard/runtime/Normalizer.js.map +1 -1
- package/bin/plugin/core/BasePlugin.d.ts +87 -0
- package/bin/plugin/core/BasePlugin.d.ts.map +1 -0
- package/bin/plugin/core/BasePlugin.js +84 -0
- package/bin/plugin/core/BasePlugin.js.map +1 -0
- package/bin/plugin/core/BuiltinPluginClasses.d.ts +19 -0
- package/bin/plugin/core/BuiltinPluginClasses.d.ts.map +1 -0
- package/bin/plugin/core/BuiltinPluginClasses.js +38 -0
- package/bin/plugin/core/BuiltinPluginClasses.js.map +1 -0
- package/bin/plugin/core/Catalog.d.ts +4 -3
- package/bin/plugin/core/Catalog.d.ts.map +1 -1
- package/bin/plugin/core/Catalog.js +3 -3
- package/bin/plugin/core/Catalog.js.map +1 -1
- package/bin/plugin/core/HttpRoutes.d.ts +2 -2
- package/bin/plugin/core/HttpRoutes.d.ts.map +1 -1
- package/bin/plugin/core/HttpRoutes.js +6 -6
- package/bin/plugin/core/HttpRoutes.js.map +1 -1
- package/bin/plugin/core/LocalExecution.d.ts.map +1 -1
- package/bin/plugin/core/LocalExecution.js +17 -2
- package/bin/plugin/core/LocalExecution.js.map +1 -1
- package/bin/plugin/core/Manager.d.ts +7 -0
- package/bin/plugin/core/Manager.d.ts.map +1 -0
- package/bin/plugin/core/Manager.js +6 -0
- package/bin/plugin/core/Manager.js.map +1 -0
- package/bin/plugin/core/PluginActionRunner.d.ts +34 -0
- package/bin/plugin/core/PluginActionRunner.d.ts.map +1 -0
- package/bin/plugin/core/PluginActionRunner.js +207 -0
- package/bin/plugin/core/PluginActionRunner.js.map +1 -0
- package/bin/plugin/core/PluginClassRegistry.d.ts +42 -0
- package/bin/plugin/core/PluginClassRegistry.d.ts.map +1 -0
- package/bin/plugin/core/PluginClassRegistry.js +73 -0
- package/bin/plugin/core/PluginClassRegistry.js.map +1 -0
- package/bin/plugin/core/PluginCommand.d.ts +2 -2
- package/bin/plugin/core/PluginCommand.js +4 -4
- package/bin/plugin/core/PluginCommand.js.map +1 -1
- package/bin/plugin/core/PluginCommandRequest.d.ts +36 -0
- package/bin/plugin/core/PluginCommandRequest.d.ts.map +1 -0
- package/bin/plugin/core/PluginCommandRequest.js +53 -0
- package/bin/plugin/core/PluginCommandRequest.js.map +1 -0
- package/bin/plugin/core/PluginStateController.d.ts +82 -0
- package/bin/plugin/core/PluginStateController.d.ts.map +1 -0
- package/bin/plugin/core/PluginStateController.js +240 -0
- package/bin/plugin/core/PluginStateController.js.map +1 -0
- package/bin/plugin/core/PluginSystemProviders.d.ts +27 -0
- package/bin/plugin/core/PluginSystemProviders.d.ts.map +1 -0
- package/bin/plugin/core/PluginSystemProviders.js +34 -0
- package/bin/plugin/core/PluginSystemProviders.js.map +1 -0
- package/bin/plugin/core/schedule/Executor.d.ts +17 -0
- package/bin/plugin/core/schedule/Executor.d.ts.map +1 -0
- package/bin/plugin/core/schedule/Executor.js +48 -0
- package/bin/plugin/core/schedule/Executor.js.map +1 -0
- package/bin/plugin/core/schedule/Store.d.ts +91 -0
- package/bin/plugin/core/schedule/Store.d.ts.map +1 -0
- package/bin/plugin/core/schedule/Store.js +284 -0
- package/bin/plugin/core/schedule/Store.js.map +1 -0
- package/bin/plugin/core/schedule/Time.d.ts +31 -0
- package/bin/plugin/core/schedule/Time.d.ts.map +1 -0
- package/bin/plugin/core/schedule/Time.js +107 -0
- package/bin/plugin/core/schedule/Time.js.map +1 -0
- package/bin/plugin/types/Plugin.d.ts +171 -17
- package/bin/plugin/types/Plugin.d.ts.map +1 -1
- package/bin/plugin/types/PluginApi.d.ts +3 -3
- package/bin/plugin/types/PluginApi.d.ts.map +1 -1
- package/bin/plugin/types/PluginApi.js +1 -1
- package/bin/plugin/types/PluginSchedule.d.ts +80 -0
- package/bin/plugin/types/PluginSchedule.d.ts.map +1 -0
- package/bin/plugin/types/PluginSchedule.js +5 -0
- package/bin/plugin/types/PluginSchedule.js.map +1 -0
- package/bin/plugin/types/PluginState.d.ts +5 -0
- package/bin/plugin/types/PluginState.d.ts.map +1 -0
- package/bin/plugin/types/PluginState.js +5 -0
- package/bin/plugin/types/PluginState.js.map +1 -0
- package/bin/plugin/types/Plugins.d.ts +61 -0
- package/bin/plugin/types/Plugins.d.ts.map +1 -0
- package/bin/plugin/types/Plugins.js +5 -0
- package/bin/plugin/types/Plugins.js.map +1 -0
- package/bin/runtime/host/AgentHostRuntime.d.ts +1 -1
- package/bin/runtime/host/AgentHostRuntime.d.ts.map +1 -1
- package/bin/runtime/host/AgentHostRuntime.js +6 -4
- package/bin/runtime/host/AgentHostRuntime.js.map +1 -1
- package/bin/runtime/host/daemon/Api.d.ts +2 -2
- package/bin/runtime/host/daemon/Api.js +1 -1
- package/bin/runtime/host/daemon/ProjectSetup.js +2 -2
- package/bin/runtime/host/daemon/ProjectSetup.js.map +1 -1
- package/bin/runtime/sandbox/types/SandboxRuntime.d.ts +1 -1
- package/bin/runtime/sandbox/types/SandboxRuntime.js +1 -1
- package/bin/runtime/server/http/Server.d.ts +8 -8
- package/bin/runtime/server/http/Server.d.ts.map +1 -1
- package/bin/runtime/server/http/Server.js +8 -30
- package/bin/runtime/server/http/Server.js.map +1 -1
- package/bin/runtime/server/http/control/ExecuteBySession.d.ts +2 -2
- package/bin/runtime/server/http/control/ExecuteBySession.d.ts.map +1 -1
- package/bin/runtime/server/http/control/ExecuteBySession.js +10 -36
- package/bin/runtime/server/http/control/ExecuteBySession.js.map +1 -1
- package/bin/runtime/server/http/control/ExecuteInput.js +1 -1
- package/bin/runtime/server/http/control/ExecuteInput.js.map +1 -1
- package/bin/runtime/server/http/control/MessageTimeline.d.ts +1 -1
- package/bin/runtime/server/http/control/MessageTimeline.d.ts.map +1 -1
- package/bin/runtime/server/http/control/MessageTimeline.js +2 -2
- package/bin/runtime/server/http/control/MessageTimeline.js.map +1 -1
- package/bin/runtime/server/http/control/OverviewRoutes.d.ts +2 -2
- package/bin/runtime/server/http/control/OverviewRoutes.d.ts.map +1 -1
- package/bin/runtime/server/http/control/OverviewRoutes.js +9 -8
- package/bin/runtime/server/http/control/OverviewRoutes.js.map +1 -1
- package/bin/runtime/server/http/control/SessionRoutes.d.ts.map +1 -1
- package/bin/runtime/server/http/control/SessionRoutes.js +7 -6
- package/bin/runtime/server/http/control/SessionRoutes.js.map +1 -1
- package/bin/runtime/server/http/control/SessionSummaryStore.d.ts +1 -0
- package/bin/runtime/server/http/control/SessionSummaryStore.d.ts.map +1 -1
- package/bin/runtime/server/http/control/SessionSummaryStore.js +3 -3
- package/bin/runtime/server/http/control/SessionSummaryStore.js.map +1 -1
- package/bin/runtime/server/http/control/TaskRoutes.d.ts +1 -1
- package/bin/runtime/server/http/control/TaskRoutes.js +10 -10
- package/bin/runtime/server/http/control/TaskRoutes.js.map +1 -1
- package/bin/runtime/server/http/control/TaskStore.js +1 -1
- package/bin/runtime/server/http/control/TaskStore.js.map +1 -1
- package/bin/runtime/server/http/execute/execute.d.ts.map +1 -1
- package/bin/runtime/server/http/execute/execute.js +7 -36
- package/bin/runtime/server/http/execute/execute.js.map +1 -1
- package/bin/runtime/server/http/plugins/plugins.d.ts +3 -3
- package/bin/runtime/server/http/plugins/plugins.d.ts.map +1 -1
- package/bin/runtime/server/http/plugins/plugins.js +61 -4
- package/bin/runtime/server/http/plugins/plugins.js.map +1 -1
- package/bin/runtime/server/http/sdk/Router.d.ts +2 -2
- package/bin/runtime/server/http/sdk/Router.d.ts.map +1 -1
- package/bin/runtime/server/http/sdk/Router.js +2 -2
- package/bin/runtime/server/http/sdk/Router.js.map +1 -1
- package/bin/runtime/server/http/sdk/SessionRoutes.d.ts +2 -2
- package/bin/runtime/server/http/sdk/SessionRoutes.d.ts.map +1 -1
- package/bin/runtime/server/http/sdk/SessionRoutes.js +72 -13
- package/bin/runtime/server/http/sdk/SessionRoutes.js.map +1 -1
- package/bin/runtime/server/rpc/Server.d.ts +2 -4
- package/bin/runtime/server/rpc/Server.d.ts.map +1 -1
- package/bin/runtime/server/rpc/Server.js +31 -33
- package/bin/runtime/server/rpc/Server.js.map +1 -1
- package/bin/sdk/Agent.d.ts +21 -20
- package/bin/sdk/Agent.d.ts.map +1 -1
- package/bin/sdk/Agent.js +47 -34
- package/bin/sdk/Agent.js.map +1 -1
- package/bin/sdk/AgentSdkTypes.d.ts +313 -41
- package/bin/sdk/AgentSdkTypes.d.ts.map +1 -1
- package/bin/sdk/AgentSdkTypes.js +1 -1
- package/bin/sdk/RemoteAgent.d.ts +9 -57
- package/bin/sdk/RemoteAgent.d.ts.map +1 -1
- package/bin/sdk/RemoteAgent.js +63 -14
- package/bin/sdk/RemoteAgent.js.map +1 -1
- package/bin/sdk/Session.d.ts +18 -23
- package/bin/sdk/Session.d.ts.map +1 -1
- package/bin/sdk/Session.js +85 -100
- package/bin/sdk/Session.js.map +1 -1
- package/bin/sdk/SessionSystemBuilder.d.ts +8 -8
- package/bin/sdk/SessionSystemBuilder.d.ts.map +1 -1
- package/bin/sdk/SessionSystemBuilder.js +6 -7
- package/bin/sdk/SessionSystemBuilder.js.map +1 -1
- package/bin/sdk/session/Browse.d.ts +76 -0
- package/bin/sdk/session/Browse.d.ts.map +1 -0
- package/bin/sdk/session/Browse.js +418 -0
- package/bin/sdk/session/Browse.js.map +1 -0
- package/bin/sdk/session/Metadata.d.ts +1 -1
- package/bin/sdk/session/Metadata.d.ts.map +1 -1
- package/bin/sdk/session/Paths.d.ts +2 -2
- package/bin/sdk/session/Paths.js +2 -2
- package/bin/sdk/session/Persistence.d.ts +1 -1
- package/bin/sdk/session/Persistence.d.ts.map +1 -1
- package/bin/sdk/session/Persistence.js +5 -5
- package/bin/sdk/session/Persistence.js.map +1 -1
- package/bin/sdk/session/RuntimeSessionPort.d.ts +70 -0
- package/bin/sdk/session/RuntimeSessionPort.d.ts.map +1 -0
- package/bin/sdk/session/RuntimeSessionPort.js +40 -0
- package/bin/sdk/session/RuntimeSessionPort.js.map +1 -0
- package/bin/sdk/session/index.d.ts +3 -2
- package/bin/sdk/session/index.d.ts.map +1 -1
- package/bin/sdk/session/index.js +3 -2
- package/bin/sdk/session/index.js.map +1 -1
- package/bin/sdk/session/runtime/SessionPromptRuntime.d.ts +7 -4
- package/bin/sdk/session/runtime/SessionPromptRuntime.d.ts.map +1 -1
- package/bin/sdk/session/runtime/SessionPromptRuntime.js +29 -5
- package/bin/sdk/session/runtime/SessionPromptRuntime.js.map +1 -1
- package/bin/types/config/DowncityConfig.d.ts +133 -97
- package/bin/types/config/DowncityConfig.d.ts.map +1 -1
- package/bin/types/runtime/auth/AuthPermission.d.ts +1 -1
- package/bin/types/runtime/auth/AuthPermission.d.ts.map +1 -1
- package/bin/types/runtime/auth/AuthPermission.js +0 -5
- package/bin/types/runtime/auth/AuthPermission.js.map +1 -1
- package/bin/types/runtime/host/AgentHost.d.ts +9 -5
- package/bin/types/runtime/host/AgentHost.d.ts.map +1 -1
- package/bin/types/runtime/host/AgentHost.js +1 -1
- package/bin/types/runtime/http/InlineInstant.d.ts +2 -2
- package/bin/types/runtime/http/InlineInstant.d.ts.map +1 -1
- package/bin/types/runtime/platform/PlatformGateway.d.ts +10 -10
- package/bin/types/runtime/platform/PlatformGateway.d.ts.map +1 -1
- package/bin/types/sdk/AgentSessionEvent.d.ts +27 -1
- package/bin/types/sdk/AgentSessionEvent.d.ts.map +1 -1
- package/bin/types/sdk/AgentSessionTurn.d.ts +9 -0
- package/bin/types/sdk/AgentSessionTurn.d.ts.map +1 -1
- package/package.json +3 -11
- package/scripts/session-prompt-runtime.test.mjs +30 -10
- package/src/config/Defaults.ts +1 -1
- package/src/config/DowncitySchema.ts +2 -8
- package/src/config/Paths.ts +55 -14
- package/src/config/project/AgentInitializer.ts +6 -7
- package/src/core/AgentContextTypes.ts +20 -56
- package/src/core/AgentCore.ts +115 -131
- package/src/core/AgentCoreTypes.ts +5 -5
- package/src/executor/Executor.ts +732 -0
- package/src/executor/README.md +108 -0
- package/src/executor/SessionRunScope.ts +146 -0
- package/src/executor/composer/compaction/SessionCompactionComposer.ts +62 -0
- package/src/executor/composer/compaction/jsonl/JsonlSessionCompactionComposer.ts +101 -0
- package/src/executor/composer/compaction/jsonl/JsonlSessionCompactionExecutor.ts +261 -0
- package/src/executor/composer/context/LocalSessionContextComposer.ts +168 -0
- package/src/executor/composer/context/SessionContextComposer.ts +70 -0
- package/src/executor/composer/history/SessionHistoryComposer.ts +62 -0
- package/src/executor/composer/history/SessionHistoryWriter.ts +131 -0
- package/src/executor/composer/history/jsonl/JsonlSessionHistoryComposer.ts +126 -0
- package/src/executor/composer/system/default/DefaultSessionSystemComposer.ts +77 -0
- package/src/executor/composer/system/default/InitPromptAssets.ts +20 -0
- package/src/executor/composer/system/default/InitPrompts.ts +11 -0
- package/src/executor/composer/system/default/PromptRenderer.ts +52 -0
- package/src/executor/composer/system/default/StaticPromptCatalog.ts +287 -0
- package/src/executor/composer/system/default/SystemDomain.ts +377 -0
- package/src/executor/composer/system/default/SystemPromptAssets.ts +26 -0
- package/src/executor/composer/system/default/assets/core.prompt.ts +9 -0
- package/src/executor/composer/system/default/assets/core.prompt.ts.txt +39 -0
- package/src/executor/composer/system/default/assets/init/PROFILE.md.ts +9 -0
- package/src/executor/composer/system/default/assets/init/SOUL.md.ts +9 -0
- package/src/executor/composer/system/default/assets/plugin.prompt.ts +9 -0
- package/src/executor/composer/system/default/assets/plugin.prompt.ts.txt +28 -0
- package/src/executor/composer/system/default/assets/task.prompt.ts +9 -0
- package/src/executor/composer/system/default/variables/GeoContext.ts +180 -0
- package/src/executor/composer/system/default/variables/VariableReplacer.ts +154 -0
- package/src/executor/core-engine/CoreEngineLoopDecision.ts +80 -0
- package/src/executor/core-engine/CoreEngineMessageState.ts +133 -0
- package/src/executor/core-engine/CoreEngineSignals.ts +416 -0
- package/src/executor/core-engine/CoreEngineUiStreamCollector.ts +96 -0
- package/src/executor/messages/AssistantResultPersistence.ts +111 -0
- package/src/executor/messages/SessionAttachmentMapper.ts +155 -0
- package/src/executor/messages/SessionMessageCodec.ts +116 -0
- package/src/executor/messages/SessionMessageLog.ts +39 -0
- package/src/executor/messages/SessionStepEventMapper.ts +233 -0
- package/src/executor/store/history/SessionHistoryStore.ts +145 -0
- package/src/executor/store/history/jsonl/JsonlSessionHistoryStore.ts +500 -0
- package/src/executor/tools/shell/ShellToolBridge.ts +378 -0
- package/src/executor/tools/shell/ShellToolDefinition.ts +509 -0
- package/src/executor/tools/shell/ShellToolFormatting.ts +83 -0
- package/src/executor/tools/shell/ShellToolSchemas.ts +120 -0
- package/src/executor/types/SessionExecutor.ts +33 -0
- package/src/executor/types/SessionHistoryMeta.ts +46 -0
- package/src/executor/types/SessionHistoryPaths.ts +33 -0
- package/src/executor/types/SessionMessages.ts +90 -0
- package/src/executor/types/SessionRun.ts +132 -0
- package/src/index.ts +80 -73
- package/src/plugin/builtins/asr/InboundAugment.ts +1 -1
- package/src/plugin/builtins/asr/Plugin.ts +25 -12
- package/src/plugin/builtins/auth/Plugin.ts +21 -8
- package/src/plugin/builtins/auth/runtime/AuthorizationStore.ts +1 -1
- package/src/plugin/builtins/auth/types/AuthPlugin.ts +2 -2
- package/src/plugin/builtins/chat/Action.ts +477 -0
- package/src/plugin/builtins/chat/ChatPlugin.ts +255 -0
- package/src/plugin/builtins/chat/ChatPluginTypes.ts +164 -0
- package/src/plugin/builtins/chat/Index.ts +8 -0
- package/src/plugin/builtins/chat/PROMPT.direct.ts +9 -0
- package/src/plugin/builtins/chat/PROMPT.direct.ts.txt +55 -0
- package/src/plugin/builtins/chat/accounts/ChannelAccountManager.ts +297 -0
- package/src/plugin/builtins/chat/channels/BaseChatChannel.ts +450 -0
- package/src/plugin/builtins/chat/channels/BaseChatChannelQueue.ts +320 -0
- package/src/plugin/builtins/chat/channels/BaseChatChannelSupport.ts +321 -0
- package/src/plugin/builtins/chat/channels/BotInfoProvider.ts +49 -0
- package/src/plugin/builtins/chat/channels/Configuration.ts +35 -0
- package/src/plugin/builtins/chat/channels/ConfigurationRegistry.ts +43 -0
- package/src/plugin/builtins/chat/channels/feishu/BotInfo.ts +199 -0
- package/src/plugin/builtins/chat/channels/feishu/Configuration.ts +65 -0
- package/src/plugin/builtins/chat/channels/feishu/Feishu.ts +467 -0
- package/src/plugin/builtins/chat/channels/feishu/FeishuInbound.ts +51 -0
- package/src/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.ts +483 -0
- package/src/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.ts +421 -0
- package/src/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.ts +523 -0
- package/src/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts +219 -0
- package/src/plugin/builtins/chat/channels/feishu/InboundAttachment.ts +261 -0
- package/src/plugin/builtins/chat/channels/feishu/PROMPT.direct.ts +9 -0
- package/src/plugin/builtins/chat/channels/feishu/PostMessage.ts +492 -0
- package/src/plugin/builtins/chat/channels/feishu/ReplyContext.ts +68 -0
- package/src/plugin/builtins/chat/channels/feishu/Shared.ts +94 -0
- package/src/plugin/builtins/chat/channels/feishu/types/FeishuChannel.ts +131 -0
- package/src/plugin/builtins/chat/channels/qq/BotInfo.ts +137 -0
- package/src/plugin/builtins/chat/channels/qq/Configuration.ts +64 -0
- package/src/plugin/builtins/chat/channels/qq/PROMPT.direct.ts +9 -0
- package/src/plugin/builtins/chat/channels/qq/PROMPT.direct.ts.txt +11 -0
- package/src/plugin/builtins/chat/channels/qq/QQ.ts +398 -0
- package/src/plugin/builtins/chat/channels/qq/QQEventCapture.ts +88 -0
- package/src/plugin/builtins/chat/channels/qq/QQGatewayAuth.ts +318 -0
- package/src/plugin/builtins/chat/channels/qq/QQGatewayClient.ts +467 -0
- package/src/plugin/builtins/chat/channels/qq/QQGatewayConnection.ts +175 -0
- package/src/plugin/builtins/chat/channels/qq/QQGatewayHeartbeat.ts +114 -0
- package/src/plugin/builtins/chat/channels/qq/QQGatewayProtocol.ts +176 -0
- package/src/plugin/builtins/chat/channels/qq/QQGatewaySend.ts +258 -0
- package/src/plugin/builtins/chat/channels/qq/QQGatewaySupport.ts +159 -0
- package/src/plugin/builtins/chat/channels/qq/QQInbound.ts +262 -0
- package/src/plugin/builtins/chat/channels/qq/QQInboundDedupe.ts +126 -0
- package/src/plugin/builtins/chat/channels/qq/QQMessageHandler.ts +465 -0
- package/src/plugin/builtins/chat/channels/qq/QQSupport.ts +263 -0
- package/src/plugin/builtins/chat/channels/qq/VoiceInput.ts +381 -0
- package/src/plugin/builtins/chat/channels/qq/types/QqChannel.ts +501 -0
- package/src/plugin/builtins/chat/channels/telegram/Bot.ts +357 -0
- package/src/plugin/builtins/chat/channels/telegram/BotInfo.ts +92 -0
- package/src/plugin/builtins/chat/channels/telegram/Configuration.ts +65 -0
- package/src/plugin/builtins/chat/channels/telegram/PROMPT.direct.ts +9 -0
- package/src/plugin/builtins/chat/channels/telegram/ReplyContext.ts +76 -0
- package/src/plugin/builtins/chat/channels/telegram/Shared.ts +404 -0
- package/src/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.ts +485 -0
- package/src/plugin/builtins/chat/channels/telegram/TelegramPendingUpdates.ts +204 -0
- package/src/plugin/builtins/chat/channels/telegram/TelegramPlatformClient.ts +482 -0
- package/src/plugin/builtins/chat/runtime/ChannelContextStore.ts +395 -0
- package/src/plugin/builtins/chat/runtime/ChatActionExecution.ts +362 -0
- package/src/plugin/builtins/chat/runtime/ChatActionInput.ts +167 -0
- package/src/plugin/builtins/chat/runtime/ChatChannelActions.ts +307 -0
- package/src/plugin/builtins/chat/runtime/ChatChannelConfig.ts +330 -0
- package/src/plugin/builtins/chat/runtime/ChatChannelCore.ts +145 -0
- package/src/plugin/builtins/chat/runtime/ChatChannelFacade.ts +23 -0
- package/src/plugin/builtins/chat/runtime/ChatChannelLifecycle.ts +169 -0
- package/src/plugin/builtins/chat/runtime/ChatHistoryStore.ts +289 -0
- package/src/plugin/builtins/chat/runtime/ChatIngressStore.ts +68 -0
- package/src/plugin/builtins/chat/runtime/ChatMessageMarkup.ts +263 -0
- package/src/plugin/builtins/chat/runtime/ChatMetaStore.ts +186 -0
- package/src/plugin/builtins/chat/runtime/ChatPluginActionRegistry.ts +367 -0
- package/src/plugin/builtins/chat/runtime/ChatPluginActions.ts +5 -0
- package/src/plugin/builtins/chat/runtime/ChatPluginSystem.ts +70 -0
- package/src/plugin/builtins/chat/runtime/ChatPromptAssets.ts +32 -0
- package/src/plugin/builtins/chat/runtime/ChatQueue.ts +77 -0
- package/src/plugin/builtins/chat/runtime/ChatQueueStore.ts +185 -0
- package/src/plugin/builtins/chat/runtime/ChatQueueWorker.ts +485 -0
- package/src/plugin/builtins/chat/runtime/ChatQueueWorkerSupport.ts +137 -0
- package/src/plugin/builtins/chat/runtime/ChatSendActionInput.ts +255 -0
- package/src/plugin/builtins/chat/runtime/ChatSendMetadata.ts +170 -0
- package/src/plugin/builtins/chat/runtime/ChatSendRegistry.ts +43 -0
- package/src/plugin/builtins/chat/runtime/ChatSession.ts +156 -0
- package/src/plugin/builtins/chat/runtime/ChatSessionContextComposer.ts +106 -0
- package/src/plugin/builtins/chat/runtime/ChatSessionDelete.ts +95 -0
- package/src/plugin/builtins/chat/runtime/ChatSessionTypes.ts +32 -0
- package/src/plugin/builtins/chat/runtime/ChatkeySend.ts +187 -0
- package/src/plugin/builtins/chat/runtime/DirectDispatchParser.ts +158 -0
- package/src/plugin/builtins/chat/runtime/EnqueueDispatch.ts +49 -0
- package/src/plugin/builtins/chat/runtime/InboundAugment.ts +63 -0
- package/src/plugin/builtins/chat/runtime/PluginDispatch.ts +89 -0
- package/src/plugin/builtins/chat/runtime/PluginPoints.ts +78 -0
- package/src/plugin/builtins/chat/runtime/QueuedUserMessage.ts +43 -0
- package/src/plugin/builtins/chat/runtime/ReplyContextFormatter.ts +85 -0
- package/src/plugin/builtins/chat/runtime/ReplyDispatch.ts +78 -0
- package/src/plugin/builtins/chat/runtime/SystemPrompt.ts +84 -0
- package/src/plugin/builtins/chat/runtime/UIMessageTransformer.ts +141 -0
- package/src/plugin/builtins/chat/runtime/UserVisibleText.ts +84 -0
- package/src/plugin/builtins/chat/types/BotInfo.ts +101 -0
- package/src/plugin/builtins/chat/types/ChannelConfiguration.ts +161 -0
- package/src/plugin/builtins/chat/types/ChannelContext.ts +110 -0
- package/src/plugin/builtins/chat/types/ChannelStatus.ts +98 -0
- package/src/plugin/builtins/chat/types/ChatHistory.ts +42 -0
- package/src/plugin/builtins/chat/types/ChatMessageMarkup.ts +168 -0
- package/src/plugin/builtins/chat/types/ChatMeta.ts +35 -0
- package/src/plugin/builtins/chat/types/ChatPlugin.ts +251 -0
- package/src/plugin/builtins/chat/types/ChatPluginActionPayload.ts +165 -0
- package/src/plugin/builtins/chat/types/ChatPromptContext.ts +139 -0
- package/src/plugin/builtins/chat/types/ChatQueue.ts +41 -0
- package/src/plugin/builtins/chat/types/ChatRuntime.ts +33 -0
- package/src/plugin/builtins/chat/types/DirectDispatch.ts +133 -0
- package/src/plugin/builtins/chat/types/FeishuInboundAttachment.ts +138 -0
- package/src/plugin/builtins/contact/Action.ts +316 -0
- package/src/plugin/builtins/contact/ContactPlugin.ts +505 -0
- package/src/plugin/builtins/contact/Index.ts +8 -0
- package/src/plugin/builtins/contact/PROMPT.ts +9 -0
- package/src/plugin/builtins/contact/PROMPT.ts.txt +25 -0
- package/src/plugin/builtins/contact/runtime/ApproveCallback.ts +97 -0
- package/src/plugin/builtins/contact/runtime/ChatRuntime.ts +83 -0
- package/src/plugin/builtins/contact/runtime/ContactPromptAssets.ts +14 -0
- package/src/plugin/builtins/contact/runtime/ContactStore.ts +299 -0
- package/src/plugin/builtins/contact/runtime/EndpointNotice.ts +125 -0
- package/src/plugin/builtins/contact/runtime/InboxStore.ts +178 -0
- package/src/plugin/builtins/contact/runtime/LinkApproval.ts +387 -0
- package/src/plugin/builtins/contact/runtime/LinkCode.ts +70 -0
- package/src/plugin/builtins/contact/runtime/LinkStore.ts +50 -0
- package/src/plugin/builtins/contact/runtime/Paths.ts +139 -0
- package/src/plugin/builtins/contact/runtime/RemoteClient.ts +158 -0
- package/src/plugin/builtins/contact/runtime/ShareBundle.ts +286 -0
- package/src/plugin/builtins/contact/runtime/SystemProvider.ts +15 -0
- package/src/plugin/builtins/contact/types/ContactCheck.ts +67 -0
- package/src/plugin/builtins/contact/types/ContactCommand.ts +98 -0
- package/src/plugin/builtins/memory/Action.ts +147 -0
- package/src/plugin/builtins/memory/Index.ts +9 -0
- package/src/plugin/builtins/memory/MemoryPlugin.ts +270 -0
- package/src/plugin/builtins/memory/runtime/Flush.ts +83 -0
- package/src/plugin/builtins/memory/runtime/Search.ts +330 -0
- package/src/plugin/builtins/memory/runtime/Store.ts +198 -0
- package/src/plugin/builtins/memory/runtime/SystemProvider.ts +145 -0
- package/src/plugin/builtins/memory/runtime/Writer.ts +173 -0
- package/src/plugin/builtins/schedule/SchedulePlugin.ts +131 -0
- package/src/plugin/builtins/shell/Index.ts +9 -0
- package/src/plugin/builtins/shell/ShellPlugin.ts +199 -0
- package/src/plugin/builtins/shell/ShellRuntimeTypes.ts +94 -0
- package/src/plugin/builtins/shell/runtime/ShellActionResponse.ts +135 -0
- package/src/plugin/builtins/shell/runtime/ShellActionRuntime.ts +544 -0
- package/src/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.ts +384 -0
- package/src/plugin/builtins/shell/runtime/ShellProcessEvents.ts +65 -0
- package/src/plugin/builtins/shell/runtime/ShellRuntimeEnvironment.ts +75 -0
- package/src/plugin/builtins/shell/types/ShellPlugin.ts +233 -0
- package/src/plugin/builtins/skill/Plugin.ts +21 -8
- package/src/plugin/builtins/skill/runtime/SystemProvider.ts +1 -1
- package/src/plugin/builtins/task/Index.ts +8 -0
- package/src/plugin/builtins/task/PROMPT.ts +9 -0
- package/src/plugin/builtins/task/PROMPT.ts.txt +237 -0
- package/src/plugin/builtins/task/Scheduler.ts +245 -0
- package/src/plugin/builtins/task/TaskPlugin.ts +167 -0
- package/src/plugin/builtins/task/runtime/CronTrigger.ts +110 -0
- package/src/plugin/builtins/task/runtime/Model.ts +347 -0
- package/src/plugin/builtins/task/runtime/Runner.ts +519 -0
- package/src/plugin/builtins/task/runtime/Store.ts +253 -0
- package/src/plugin/builtins/task/runtime/TaskActionExecution.ts +276 -0
- package/src/plugin/builtins/task/runtime/TaskActionInput.ts +281 -0
- package/src/plugin/builtins/task/runtime/TaskPluginActionRegistry.ts +214 -0
- package/src/plugin/builtins/task/runtime/TaskPluginActions.ts +5 -0
- package/src/plugin/builtins/task/runtime/TaskPluginSystem.ts +8 -0
- package/src/plugin/builtins/task/runtime/TaskPromptAssets.ts +14 -0
- package/src/plugin/builtins/task/runtime/TaskRunArtifacts.ts +493 -0
- package/src/plugin/builtins/task/runtime/TaskRunChatDispatch.ts +81 -0
- package/src/plugin/builtins/task/runtime/TaskRunnerProgress.ts +112 -0
- package/src/plugin/builtins/task/runtime/TaskRunnerRound.ts +337 -0
- package/src/plugin/builtins/task/runtime/TaskRunnerScript.ts +175 -0
- package/src/plugin/builtins/task/runtime/TaskRunnerSession.ts +190 -0
- package/src/plugin/builtins/task/runtime/TaskRunnerTypes.ts +199 -0
- package/src/plugin/builtins/task/types/Cron.ts +16 -0
- package/src/plugin/builtins/task/types/TaskPluginTypes.ts +55 -0
- package/src/plugin/builtins/tts/Plugin.ts +23 -10
- package/src/plugin/builtins/tts/runtime/Synthesizer.ts +1 -1
- package/src/plugin/builtins/voice/InboundAugment.ts +1 -1
- package/src/plugin/builtins/web/Plugin.ts +23 -10
- package/src/plugin/builtins/workboard/Plugin.ts +71 -58
- package/src/plugin/builtins/workboard/runtime/Collector.ts +7 -6
- package/src/plugin/builtins/workboard/runtime/Normalizer.ts +4 -4
- package/src/plugin/core/BasePlugin.ts +134 -0
- package/src/plugin/core/BuiltinPluginClasses.ts +48 -0
- package/src/plugin/core/Catalog.ts +6 -5
- package/src/plugin/core/HttpRoutes.ts +6 -6
- package/src/plugin/core/LocalExecution.ts +21 -2
- package/src/plugin/core/Manager.ts +21 -0
- package/src/plugin/core/PluginActionRunner.ts +267 -0
- package/src/plugin/core/PluginClassRegistry.ts +88 -0
- package/src/plugin/core/PluginCommand.ts +4 -4
- package/src/plugin/core/PluginCommandRequest.ts +93 -0
- package/src/plugin/core/PluginStateController.ts +328 -0
- package/src/plugin/core/PluginSystemProviders.ts +50 -0
- package/src/plugin/core/schedule/Executor.ts +54 -0
- package/src/plugin/core/schedule/Store.ts +358 -0
- package/src/plugin/core/schedule/Time.ts +131 -0
- package/src/plugin/types/Plugin.ts +191 -18
- package/src/plugin/types/PluginApi.ts +3 -3
- package/src/plugin/types/PluginSchedule.ts +89 -0
- package/src/plugin/types/PluginState.ts +11 -0
- package/src/plugin/types/Plugins.ts +67 -0
- package/src/runtime/host/AgentHostRuntime.ts +10 -4
- package/src/runtime/host/daemon/Api.ts +2 -2
- package/src/runtime/host/daemon/ProjectSetup.ts +2 -2
- package/src/runtime/sandbox/types/SandboxRuntime.ts +1 -1
- package/src/runtime/server/http/Server.ts +19 -51
- package/src/runtime/server/http/control/ExecuteBySession.ts +10 -44
- package/src/runtime/server/http/control/ExecuteInput.ts +1 -1
- package/src/runtime/server/http/control/MessageTimeline.ts +3 -3
- package/src/runtime/server/http/control/OverviewRoutes.ts +9 -8
- package/src/runtime/server/http/control/SessionRoutes.ts +15 -3
- package/src/runtime/server/http/control/SessionSummaryStore.ts +11 -3
- package/src/runtime/server/http/control/TaskRoutes.ts +10 -10
- package/src/runtime/server/http/control/TaskStore.ts +1 -1
- package/src/runtime/server/http/execute/execute.ts +7 -46
- package/src/runtime/server/http/plugins/plugins.ts +71 -4
- package/src/runtime/server/http/sdk/Router.ts +3 -3
- package/src/runtime/server/http/sdk/SessionRoutes.ts +82 -14
- package/src/runtime/server/rpc/Server.ts +50 -48
- package/src/sdk/Agent.ts +59 -41
- package/src/sdk/AgentSdkTypes.ts +360 -43
- package/src/sdk/RemoteAgent.ts +94 -21
- package/src/sdk/Session.ts +101 -126
- package/src/sdk/SessionSystemBuilder.ts +12 -13
- package/src/sdk/session/Browse.ts +519 -0
- package/src/sdk/session/Metadata.ts +1 -1
- package/src/sdk/session/Paths.ts +2 -2
- package/src/sdk/session/Persistence.ts +7 -7
- package/src/sdk/session/RuntimeSessionPort.ts +107 -0
- package/src/sdk/session/index.ts +12 -3
- package/src/sdk/session/runtime/SessionPromptRuntime.ts +48 -15
- package/src/types/config/DowncityConfig.ts +144 -97
- package/src/types/runtime/auth/AuthPermission.ts +0 -6
- package/src/types/runtime/host/AgentHost.ts +9 -5
- package/src/types/runtime/http/InlineInstant.ts +2 -2
- package/src/types/runtime/platform/PlatformGateway.ts +10 -10
- package/src/types/sdk/AgentSessionEvent.ts +32 -0
- package/src/types/sdk/AgentSessionTurn.ts +11 -0
- package/tsconfig.json +1 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/bin/plugin/builtins/voice/Plugin.d.ts +0 -14
- package/bin/plugin/builtins/voice/Plugin.d.ts.map +0 -1
- package/bin/plugin/builtins/voice/Plugin.js +0 -426
- package/bin/plugin/builtins/voice/Plugin.js.map +0 -1
- package/bin/plugin/core/PluginManager.d.ts +0 -24
- package/bin/plugin/core/PluginManager.d.ts.map +0 -1
- package/bin/plugin/core/PluginManager.js +0 -62
- package/bin/plugin/core/PluginManager.js.map +0 -1
- package/bin/plugin/core/Plugins.d.ts +0 -20
- package/bin/plugin/core/Plugins.d.ts.map +0 -1
- package/bin/plugin/core/Plugins.js +0 -33
- package/bin/plugin/core/Plugins.js.map +0 -1
- package/bin/runtime/host/PluginRuntime.d.ts +0 -24
- package/bin/runtime/host/PluginRuntime.d.ts.map +0 -1
- package/bin/runtime/host/PluginRuntime.js +0 -31
- package/bin/runtime/host/PluginRuntime.js.map +0 -1
- package/bin/runtime/server/http/auth/AuthError.d.ts +0 -22
- package/bin/runtime/server/http/auth/AuthError.d.ts.map +0 -1
- package/bin/runtime/server/http/auth/AuthError.js +0 -28
- package/bin/runtime/server/http/auth/AuthError.js.map +0 -1
- package/bin/runtime/server/http/auth/PasswordHasher.d.ts +0 -16
- package/bin/runtime/server/http/auth/PasswordHasher.d.ts.map +0 -1
- package/bin/runtime/server/http/auth/PasswordHasher.js +0 -37
- package/bin/runtime/server/http/auth/PasswordHasher.js.map +0 -1
- package/bin/runtime/server/http/auth/TokenService.d.ts +0 -20
- package/bin/runtime/server/http/auth/TokenService.d.ts.map +0 -1
- package/bin/runtime/server/http/auth/TokenService.js +0 -34
- package/bin/runtime/server/http/auth/TokenService.js.map +0 -1
- package/bin/runtime/server/http/services/services.d.ts +0 -25
- package/bin/runtime/server/http/services/services.d.ts.map +0 -1
- package/bin/runtime/server/http/services/services.js +0 -72
- package/bin/runtime/server/http/services/services.js.map +0 -1
- package/bin/sdk/session/ServicePort.d.ts +0 -86
- package/bin/sdk/session/ServicePort.d.ts.map +0 -1
- package/bin/sdk/session/ServicePort.js +0 -44
- package/bin/sdk/session/ServicePort.js.map +0 -1
- package/bin/service/builtins/BaseService.d.ts +0 -70
- package/bin/service/builtins/BaseService.d.ts.map +0 -1
- package/bin/service/builtins/BaseService.js +0 -67
- package/bin/service/builtins/BaseService.js.map +0 -1
- package/bin/service/builtins/chat/Action.d.ts +0 -125
- package/bin/service/builtins/chat/Action.d.ts.map +0 -1
- package/bin/service/builtins/chat/Action.js +0 -376
- package/bin/service/builtins/chat/Action.js.map +0 -1
- package/bin/service/builtins/chat/ChatService.d.ts +0 -89
- package/bin/service/builtins/chat/ChatService.d.ts.map +0 -1
- package/bin/service/builtins/chat/ChatService.js +0 -212
- package/bin/service/builtins/chat/ChatService.js.map +0 -1
- package/bin/service/builtins/chat/ChatServiceTypes.d.ts +0 -159
- package/bin/service/builtins/chat/ChatServiceTypes.d.ts.map +0 -1
- package/bin/service/builtins/chat/ChatServiceTypes.js +0 -10
- package/bin/service/builtins/chat/ChatServiceTypes.js.map +0 -1
- package/bin/service/builtins/chat/Index.d.ts +0 -9
- package/bin/service/builtins/chat/Index.d.ts.map +0 -1
- package/bin/service/builtins/chat/Index.js +0 -9
- package/bin/service/builtins/chat/Index.js.map +0 -1
- package/bin/service/builtins/chat/PROMPT.direct.d.ts +0 -7
- package/bin/service/builtins/chat/PROMPT.direct.d.ts.map +0 -1
- package/bin/service/builtins/chat/PROMPT.direct.js +0 -8
- package/bin/service/builtins/chat/PROMPT.direct.js.map +0 -1
- package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts +0 -63
- package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts.map +0 -1
- package/bin/service/builtins/chat/accounts/ChannelAccountService.js +0 -258
- package/bin/service/builtins/chat/accounts/ChannelAccountService.js.map +0 -1
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts +0 -201
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/BaseChatChannel.js +0 -294
- package/bin/service/builtins/chat/channels/BaseChatChannel.js.map +0 -1
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts +0 -73
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.js +0 -238
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.js.map +0 -1
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts +0 -189
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.js +0 -141
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.js.map +0 -1
- package/bin/service/builtins/chat/channels/BotInfoProvider.d.ts +0 -18
- package/bin/service/builtins/chat/channels/BotInfoProvider.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/BotInfoProvider.js +0 -32
- package/bin/service/builtins/chat/channels/BotInfoProvider.js.map +0 -1
- package/bin/service/builtins/chat/channels/Configuration.d.ts +0 -27
- package/bin/service/builtins/chat/channels/Configuration.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/Configuration.js.map +0 -1
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.d.ts +0 -18
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.js +0 -31
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/BotInfo.d.ts +0 -20
- package/bin/service/builtins/chat/channels/feishu/BotInfo.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/BotInfo.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/Configuration.d.ts +0 -17
- package/bin/service/builtins/chat/channels/feishu/Configuration.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/Configuration.js +0 -59
- package/bin/service/builtins/chat/channels/feishu/Configuration.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts +0 -116
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/Feishu.js +0 -326
- package/bin/service/builtins/chat/channels/feishu/Feishu.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts +0 -21
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.d.ts +0 -155
- package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.js +0 -247
- package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +0 -130
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts +0 -102
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts +0 -49
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/InboundAttachment.d.ts +0 -31
- package/bin/service/builtins/chat/channels/feishu/InboundAttachment.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/InboundAttachment.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js +0 -8
- package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/PostMessage.d.ts +0 -48
- package/bin/service/builtins/chat/channels/feishu/PostMessage.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/PostMessage.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/ReplyContext.d.ts +0 -18
- package/bin/service/builtins/chat/channels/feishu/ReplyContext.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/ReplyContext.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/Shared.d.ts +0 -21
- package/bin/service/builtins/chat/channels/feishu/Shared.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/Shared.js +0 -69
- package/bin/service/builtins/chat/channels/feishu/Shared.js.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.d.ts +0 -127
- package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.js +0 -9
- package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/BotInfo.d.ts +0 -19
- package/bin/service/builtins/chat/channels/qq/BotInfo.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/BotInfo.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/Configuration.d.ts +0 -17
- package/bin/service/builtins/chat/channels/qq/Configuration.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/Configuration.js +0 -59
- package/bin/service/builtins/chat/channels/qq/Configuration.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts +0 -7
- package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js +0 -8
- package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQ.d.ts +0 -92
- package/bin/service/builtins/chat/channels/qq/QQ.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQ.js +0 -287
- package/bin/service/builtins/chat/channels/qq/QQ.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts +0 -22
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts +0 -119
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts +0 -155
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.d.ts +0 -65
- package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.js +0 -58
- package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.d.ts +0 -86
- package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.js +0 -93
- package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts +0 -84
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts +0 -39
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts +0 -47
- package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQInbound.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQMessageHandler.d.ts +0 -129
- package/bin/service/builtins/chat/channels/qq/QQMessageHandler.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQMessageHandler.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQSendSupport.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQSendSupport.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts +0 -102
- package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/QQSupport.js +0 -172
- package/bin/service/builtins/chat/channels/qq/QQSupport.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/VoiceInput.d.ts +0 -64
- package/bin/service/builtins/chat/channels/qq/VoiceInput.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/VoiceInput.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts +0 -485
- package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/types/QqChannel.js +0 -42
- package/bin/service/builtins/chat/channels/qq/types/QqChannel.js.map +0 -1
- package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/ApiClient.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/Bot.d.ts +0 -97
- package/bin/service/builtins/chat/channels/telegram/Bot.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/Bot.js +0 -246
- package/bin/service/builtins/chat/channels/telegram/Bot.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/BotInfo.d.ts +0 -19
- package/bin/service/builtins/chat/channels/telegram/BotInfo.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/BotInfo.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/Configuration.d.ts +0 -17
- package/bin/service/builtins/chat/channels/telegram/Configuration.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/Configuration.js +0 -59
- package/bin/service/builtins/chat/channels/telegram/Configuration.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/Handlers.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js +0 -8
- package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/ReplyContext.d.ts +0 -14
- package/bin/service/builtins/chat/channels/telegram/ReplyContext.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/ReplyContext.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/Shared.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/Shared.js +0 -171
- package/bin/service/builtins/chat/channels/telegram/Shared.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/StateStore.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/StateStore.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/TelegramInbound.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/TelegramInbound.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.d.ts +0 -142
- package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.js +0 -267
- package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts +0 -55
- package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts +0 -161
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts +0 -78
- package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChannelContextStore.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts +0 -145
- package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatActionExecution.js +0 -287
- package/bin/service/builtins/chat/runtime/ChatActionExecution.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts +0 -22
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatActionInput.js +0 -114
- package/bin/service/builtins/chat/runtime/ChatActionInput.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatActionInputSupport.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatActionInputSupport.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts +0 -122
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelActions.js +0 -230
- package/bin/service/builtins/chat/runtime/ChatChannelActions.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts +0 -61
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.js +0 -260
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts +0 -45
- package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelCore.js +0 -106
- package/bin/service/builtins/chat/runtime/ChatChannelCore.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelFacade.d.ts +0 -12
- package/bin/service/builtins/chat/runtime/ChatChannelFacade.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelFacade.js +0 -12
- package/bin/service/builtins/chat/runtime/ChatChannelFacade.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts +0 -28
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.js +0 -132
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts +0 -72
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts +0 -52
- package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatIngressStore.js +0 -65
- package/bin/service/builtins/chat/runtime/ChatIngressStore.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatMessageMarkup.d.ts +0 -54
- package/bin/service/builtins/chat/runtime/ChatMessageMarkup.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatMessageMarkup.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts +0 -68
- package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatMetaStore.js +0 -143
- package/bin/service/builtins/chat/runtime/ChatMetaStore.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts +0 -24
- package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatPromptAssets.js +0 -28
- package/bin/service/builtins/chat/runtime/ChatPromptAssets.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueue.d.ts +0 -40
- package/bin/service/builtins/chat/runtime/ChatQueue.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueue.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts +0 -55
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.js +0 -98
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts +0 -85
- package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueStore.js +0 -130
- package/bin/service/builtins/chat/runtime/ChatQueueStore.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts +0 -88
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.js +0 -435
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts +0 -36
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSendActionInput.d.ts +0 -23
- package/bin/service/builtins/chat/runtime/ChatSendActionInput.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSendActionInput.js +0 -205
- package/bin/service/builtins/chat/runtime/ChatSendActionInput.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSendMetadata.d.ts +0 -20
- package/bin/service/builtins/chat/runtime/ChatSendMetadata.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSendMetadata.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSendRegistry.d.ts +0 -27
- package/bin/service/builtins/chat/runtime/ChatSendRegistry.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSendRegistry.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts +0 -17
- package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatServiceActions.js +0 -304
- package/bin/service/builtins/chat/runtime/ChatServiceActions.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts +0 -22
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.js +0 -44
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSession.d.ts +0 -97
- package/bin/service/builtins/chat/runtime/ChatSession.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSession.js +0 -84
- package/bin/service/builtins/chat/runtime/ChatSession.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSessionContextComposer.d.ts +0 -45
- package/bin/service/builtins/chat/runtime/ChatSessionContextComposer.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSessionContextComposer.js +0 -60
- package/bin/service/builtins/chat/runtime/ChatSessionContextComposer.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.d.ts +0 -29
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.js +0 -76
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts +0 -30
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatkeySend.d.ts +0 -67
- package/bin/service/builtins/chat/runtime/ChatkeySend.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ChatkeySend.js +0 -147
- package/bin/service/builtins/chat/runtime/ChatkeySend.js.map +0 -1
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.d.ts +0 -22
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.js +0 -133
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.js.map +0 -1
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts +0 -24
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.js +0 -28
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.js.map +0 -1
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts +0 -21
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/InboundAugment.js +0 -50
- package/bin/service/builtins/chat/runtime/InboundAugment.js.map +0 -1
- package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts +0 -43
- package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/PluginDispatch.js +0 -57
- package/bin/service/builtins/chat/runtime/PluginDispatch.js.map +0 -1
- package/bin/service/builtins/chat/runtime/PluginPoints.d.ts +0 -78
- package/bin/service/builtins/chat/runtime/PluginPoints.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/PluginPoints.js +0 -78
- package/bin/service/builtins/chat/runtime/PluginPoints.js.map +0 -1
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts +0 -20
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts +0 -29
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.js.map +0 -1
- package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts +0 -36
- package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/ReplyDispatch.js +0 -51
- package/bin/service/builtins/chat/runtime/ReplyDispatch.js.map +0 -1
- package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts +0 -26
- package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/SystemPrompt.js +0 -70
- package/bin/service/builtins/chat/runtime/SystemPrompt.js.map +0 -1
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts +0 -24
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.js.map +0 -1
- package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts +0 -34
- package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts.map +0 -1
- package/bin/service/builtins/chat/runtime/UserVisibleText.js.map +0 -1
- package/bin/service/builtins/chat/types/BotInfo.d.ts +0 -97
- package/bin/service/builtins/chat/types/BotInfo.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/BotInfo.js.map +0 -1
- package/bin/service/builtins/chat/types/ChannelAccount.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChannelAccount.js.map +0 -1
- package/bin/service/builtins/chat/types/ChannelConfiguration.d.ts +0 -146
- package/bin/service/builtins/chat/types/ChannelConfiguration.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChannelConfiguration.js.map +0 -1
- package/bin/service/builtins/chat/types/ChannelContext.d.ts +0 -107
- package/bin/service/builtins/chat/types/ChannelContext.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChannelContext.js +0 -9
- package/bin/service/builtins/chat/types/ChannelContext.js.map +0 -1
- package/bin/service/builtins/chat/types/ChannelStatus.d.ts +0 -88
- package/bin/service/builtins/chat/types/ChannelStatus.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChannelStatus.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatCommand.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatCommand.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatDispatcher.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatDispatcher.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatHistory.d.ts +0 -36
- package/bin/service/builtins/chat/types/ChatHistory.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatHistory.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatMessageMarkup.d.ts +0 -144
- package/bin/service/builtins/chat/types/ChatMessageMarkup.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatMessageMarkup.js +0 -9
- package/bin/service/builtins/chat/types/ChatMessageMarkup.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatMeta.d.ts +0 -34
- package/bin/service/builtins/chat/types/ChatMeta.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatMeta.js +0 -10
- package/bin/service/builtins/chat/types/ChatMeta.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatPlugin.d.ts +0 -238
- package/bin/service/builtins/chat/types/ChatPlugin.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatPlugin.js +0 -10
- package/bin/service/builtins/chat/types/ChatPlugin.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatPromptContext.d.ts +0 -125
- package/bin/service/builtins/chat/types/ChatPromptContext.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatPromptContext.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatQueue.d.ts +0 -44
- package/bin/service/builtins/chat/types/ChatQueue.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatQueue.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatQueueWorker.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatQueueWorker.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatRuntime.d.ts +0 -32
- package/bin/service/builtins/chat/types/ChatRuntime.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatRuntime.js +0 -9
- package/bin/service/builtins/chat/types/ChatRuntime.js.map +0 -1
- package/bin/service/builtins/chat/types/ChatService.d.ts +0 -145
- package/bin/service/builtins/chat/types/ChatService.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ChatService.js +0 -10
- package/bin/service/builtins/chat/types/ChatService.js.map +0 -1
- package/bin/service/builtins/chat/types/DirectDispatch.d.ts +0 -115
- package/bin/service/builtins/chat/types/DirectDispatch.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/DirectDispatch.js.map +0 -1
- package/bin/service/builtins/chat/types/FeishuAttachment.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/FeishuAttachment.js.map +0 -1
- package/bin/service/builtins/chat/types/FeishuInboundAttachment.d.ts +0 -114
- package/bin/service/builtins/chat/types/FeishuInboundAttachment.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/FeishuInboundAttachment.js.map +0 -1
- package/bin/service/builtins/chat/types/FeishuPost.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/FeishuPost.js.map +0 -1
- package/bin/service/builtins/chat/types/QqInboundDedupe.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/QqInboundDedupe.js.map +0 -1
- package/bin/service/builtins/chat/types/QqVoice.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/QqVoice.js.map +0 -1
- package/bin/service/builtins/chat/types/ReplyContext.d.ts.map +0 -1
- package/bin/service/builtins/chat/types/ReplyContext.js.map +0 -1
- package/bin/service/builtins/contact/Action.d.ts +0 -62
- package/bin/service/builtins/contact/Action.d.ts.map +0 -1
- package/bin/service/builtins/contact/Action.js +0 -221
- package/bin/service/builtins/contact/Action.js.map +0 -1
- package/bin/service/builtins/contact/ContactService.d.ts +0 -39
- package/bin/service/builtins/contact/ContactService.d.ts.map +0 -1
- package/bin/service/builtins/contact/ContactService.js +0 -409
- package/bin/service/builtins/contact/ContactService.js.map +0 -1
- package/bin/service/builtins/contact/Index.d.ts +0 -8
- package/bin/service/builtins/contact/Index.d.ts.map +0 -1
- package/bin/service/builtins/contact/Index.js +0 -8
- package/bin/service/builtins/contact/Index.js.map +0 -1
- package/bin/service/builtins/contact/PROMPT.d.ts +0 -7
- package/bin/service/builtins/contact/PROMPT.d.ts.map +0 -1
- package/bin/service/builtins/contact/PROMPT.js +0 -8
- package/bin/service/builtins/contact/PROMPT.js.map +0 -1
- package/bin/service/builtins/contact/runtime/ApproveCallback.d.ts +0 -23
- package/bin/service/builtins/contact/runtime/ApproveCallback.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/ApproveCallback.js.map +0 -1
- package/bin/service/builtins/contact/runtime/ChatRuntime.d.ts +0 -27
- package/bin/service/builtins/contact/runtime/ChatRuntime.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/ChatRuntime.js +0 -59
- package/bin/service/builtins/contact/runtime/ChatRuntime.js.map +0 -1
- package/bin/service/builtins/contact/runtime/ContactPayload.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/ContactPayload.js.map +0 -1
- package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts +0 -12
- package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/ContactPromptAssets.js +0 -13
- package/bin/service/builtins/contact/runtime/ContactPromptAssets.js.map +0 -1
- package/bin/service/builtins/contact/runtime/ContactStore.d.ts +0 -49
- package/bin/service/builtins/contact/runtime/ContactStore.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/ContactStore.js.map +0 -1
- package/bin/service/builtins/contact/runtime/EndpointNotice.d.ts +0 -39
- package/bin/service/builtins/contact/runtime/EndpointNotice.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/EndpointNotice.js.map +0 -1
- package/bin/service/builtins/contact/runtime/EndpointResolver.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/EndpointResolver.js.map +0 -1
- package/bin/service/builtins/contact/runtime/InboxStore.d.ts +0 -33
- package/bin/service/builtins/contact/runtime/InboxStore.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/InboxStore.js.map +0 -1
- package/bin/service/builtins/contact/runtime/LinkApproval.d.ts +0 -20
- package/bin/service/builtins/contact/runtime/LinkApproval.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/LinkApproval.js.map +0 -1
- package/bin/service/builtins/contact/runtime/LinkCode.d.ts +0 -21
- package/bin/service/builtins/contact/runtime/LinkCode.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/LinkCode.js.map +0 -1
- package/bin/service/builtins/contact/runtime/LinkStore.d.ts +0 -17
- package/bin/service/builtins/contact/runtime/LinkStore.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/LinkStore.js.map +0 -1
- package/bin/service/builtins/contact/runtime/Paths.d.ts +0 -64
- package/bin/service/builtins/contact/runtime/Paths.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/Paths.js +0 -103
- package/bin/service/builtins/contact/runtime/Paths.js.map +0 -1
- package/bin/service/builtins/contact/runtime/RemoteClient.d.ts +0 -46
- package/bin/service/builtins/contact/runtime/RemoteClient.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/RemoteClient.js +0 -120
- package/bin/service/builtins/contact/runtime/RemoteClient.js.map +0 -1
- package/bin/service/builtins/contact/runtime/ShareBundle.d.ts +0 -65
- package/bin/service/builtins/contact/runtime/ShareBundle.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/ShareBundle.js.map +0 -1
- package/bin/service/builtins/contact/runtime/SystemProvider.d.ts +0 -5
- package/bin/service/builtins/contact/runtime/SystemProvider.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/SystemProvider.js +0 -15
- package/bin/service/builtins/contact/runtime/SystemProvider.js.map +0 -1
- package/bin/service/builtins/contact/runtime/Token.d.ts.map +0 -1
- package/bin/service/builtins/contact/runtime/Token.js.map +0 -1
- package/bin/service/builtins/contact/types/Contact.d.ts.map +0 -1
- package/bin/service/builtins/contact/types/Contact.js.map +0 -1
- package/bin/service/builtins/contact/types/ContactApproval.d.ts.map +0 -1
- package/bin/service/builtins/contact/types/ContactApproval.js.map +0 -1
- package/bin/service/builtins/contact/types/ContactChat.d.ts.map +0 -1
- package/bin/service/builtins/contact/types/ContactChat.js.map +0 -1
- package/bin/service/builtins/contact/types/ContactCheck.d.ts +0 -66
- package/bin/service/builtins/contact/types/ContactCheck.d.ts.map +0 -1
- package/bin/service/builtins/contact/types/ContactCheck.js.map +0 -1
- package/bin/service/builtins/contact/types/ContactCommand.d.ts +0 -93
- package/bin/service/builtins/contact/types/ContactCommand.d.ts.map +0 -1
- package/bin/service/builtins/contact/types/ContactCommand.js +0 -8
- package/bin/service/builtins/contact/types/ContactCommand.js.map +0 -1
- package/bin/service/builtins/contact/types/ContactEndpoint.d.ts.map +0 -1
- package/bin/service/builtins/contact/types/ContactEndpoint.js.map +0 -1
- package/bin/service/builtins/contact/types/ContactLink.d.ts.map +0 -1
- package/bin/service/builtins/contact/types/ContactLink.js.map +0 -1
- package/bin/service/builtins/contact/types/ContactShare.d.ts.map +0 -1
- package/bin/service/builtins/contact/types/ContactShare.js.map +0 -1
- package/bin/service/builtins/memory/Action.d.ts +0 -37
- package/bin/service/builtins/memory/Action.d.ts.map +0 -1
- package/bin/service/builtins/memory/Action.js.map +0 -1
- package/bin/service/builtins/memory/Index.d.ts +0 -9
- package/bin/service/builtins/memory/Index.d.ts.map +0 -1
- package/bin/service/builtins/memory/Index.js +0 -9
- package/bin/service/builtins/memory/Index.js.map +0 -1
- package/bin/service/builtins/memory/MemoryService.d.ts +0 -45
- package/bin/service/builtins/memory/MemoryService.d.ts.map +0 -1
- package/bin/service/builtins/memory/MemoryService.js +0 -242
- package/bin/service/builtins/memory/MemoryService.js.map +0 -1
- package/bin/service/builtins/memory/runtime/Flush.d.ts +0 -15
- package/bin/service/builtins/memory/runtime/Flush.d.ts.map +0 -1
- package/bin/service/builtins/memory/runtime/Flush.js.map +0 -1
- package/bin/service/builtins/memory/runtime/Search.d.ts +0 -19
- package/bin/service/builtins/memory/runtime/Search.d.ts.map +0 -1
- package/bin/service/builtins/memory/runtime/Search.js +0 -268
- package/bin/service/builtins/memory/runtime/Search.js.map +0 -1
- package/bin/service/builtins/memory/runtime/Store.d.ts +0 -65
- package/bin/service/builtins/memory/runtime/Store.d.ts.map +0 -1
- package/bin/service/builtins/memory/runtime/Store.js +0 -142
- package/bin/service/builtins/memory/runtime/Store.js.map +0 -1
- package/bin/service/builtins/memory/runtime/SystemProvider.d.ts +0 -22
- package/bin/service/builtins/memory/runtime/SystemProvider.d.ts.map +0 -1
- package/bin/service/builtins/memory/runtime/SystemProvider.js +0 -126
- package/bin/service/builtins/memory/runtime/SystemProvider.js.map +0 -1
- package/bin/service/builtins/memory/runtime/Writer.d.ts +0 -23
- package/bin/service/builtins/memory/runtime/Writer.d.ts.map +0 -1
- package/bin/service/builtins/memory/runtime/Writer.js +0 -139
- package/bin/service/builtins/memory/runtime/Writer.js.map +0 -1
- package/bin/service/builtins/memory/types/Memory.d.ts.map +0 -1
- package/bin/service/builtins/memory/types/Memory.js.map +0 -1
- package/bin/service/builtins/schedule/ScheduleService.d.ts +0 -39
- package/bin/service/builtins/schedule/ScheduleService.d.ts.map +0 -1
- package/bin/service/builtins/schedule/ScheduleService.js +0 -106
- package/bin/service/builtins/schedule/ScheduleService.js.map +0 -1
- package/bin/service/builtins/shell/Index.d.ts +0 -9
- package/bin/service/builtins/shell/Index.d.ts.map +0 -1
- package/bin/service/builtins/shell/Index.js +0 -9
- package/bin/service/builtins/shell/Index.js.map +0 -1
- package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts +0 -91
- package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts.map +0 -1
- package/bin/service/builtins/shell/ShellRuntimeTypes.js +0 -10
- package/bin/service/builtins/shell/ShellRuntimeTypes.js.map +0 -1
- package/bin/service/builtins/shell/ShellService.d.ts +0 -65
- package/bin/service/builtins/shell/ShellService.d.ts.map +0 -1
- package/bin/service/builtins/shell/ShellService.js +0 -138
- package/bin/service/builtins/shell/ShellService.js.map +0 -1
- package/bin/service/builtins/shell/runtime/Paths.d.ts.map +0 -1
- package/bin/service/builtins/shell/runtime/Paths.js.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellActionResponse.d.ts +0 -52
- package/bin/service/builtins/shell/runtime/ShellActionResponse.d.ts.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellActionResponse.js.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts +0 -49
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js +0 -440
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts +0 -79
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js +0 -324
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellProcessEvents.d.ts +0 -22
- package/bin/service/builtins/shell/runtime/ShellProcessEvents.d.ts.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellProcessEvents.js.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.d.ts.map +0 -1
- package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.js +0 -75
- package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.js.map +0 -1
- package/bin/service/builtins/shell/types/Shell.d.ts.map +0 -1
- package/bin/service/builtins/shell/types/Shell.js.map +0 -1
- package/bin/service/builtins/shell/types/ShellService.d.ts +0 -216
- package/bin/service/builtins/shell/types/ShellService.d.ts.map +0 -1
- package/bin/service/builtins/shell/types/ShellService.js +0 -9
- package/bin/service/builtins/shell/types/ShellService.js.map +0 -1
- package/bin/service/builtins/task/Action.d.ts.map +0 -1
- package/bin/service/builtins/task/Action.js.map +0 -1
- package/bin/service/builtins/task/Index.d.ts +0 -9
- package/bin/service/builtins/task/Index.d.ts.map +0 -1
- package/bin/service/builtins/task/Index.js +0 -9
- package/bin/service/builtins/task/Index.js.map +0 -1
- package/bin/service/builtins/task/PROMPT.d.ts +0 -7
- package/bin/service/builtins/task/PROMPT.d.ts.map +0 -1
- package/bin/service/builtins/task/PROMPT.js +0 -8
- package/bin/service/builtins/task/PROMPT.js.map +0 -1
- package/bin/service/builtins/task/Scheduler.d.ts +0 -17
- package/bin/service/builtins/task/Scheduler.d.ts.map +0 -1
- package/bin/service/builtins/task/Scheduler.js +0 -231
- package/bin/service/builtins/task/Scheduler.js.map +0 -1
- package/bin/service/builtins/task/TaskService.d.ts +0 -57
- package/bin/service/builtins/task/TaskService.d.ts.map +0 -1
- package/bin/service/builtins/task/TaskService.js +0 -126
- package/bin/service/builtins/task/TaskService.js.map +0 -1
- package/bin/service/builtins/task/runtime/CronRuntime.d.ts +0 -34
- package/bin/service/builtins/task/runtime/CronRuntime.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/CronRuntime.js +0 -59
- package/bin/service/builtins/task/runtime/CronRuntime.js.map +0 -1
- package/bin/service/builtins/task/runtime/CronTrigger.d.ts +0 -19
- package/bin/service/builtins/task/runtime/CronTrigger.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/CronTrigger.js +0 -93
- package/bin/service/builtins/task/runtime/CronTrigger.js.map +0 -1
- package/bin/service/builtins/task/runtime/Frontmatter.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/Frontmatter.js.map +0 -1
- package/bin/service/builtins/task/runtime/Model.d.ts +0 -73
- package/bin/service/builtins/task/runtime/Model.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/Model.js.map +0 -1
- package/bin/service/builtins/task/runtime/Paths.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/Paths.js.map +0 -1
- package/bin/service/builtins/task/runtime/Runner.d.ts +0 -43
- package/bin/service/builtins/task/runtime/Runner.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/Runner.js.map +0 -1
- package/bin/service/builtins/task/runtime/Store.d.ts +0 -89
- package/bin/service/builtins/task/runtime/Store.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/Store.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts +0 -160
- package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskActionExecution.js +0 -192
- package/bin/service/builtins/task/runtime/TaskActionExecution.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskActionInput.d.ts +0 -19
- package/bin/service/builtins/task/runtime/TaskActionInput.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskActionInput.js +0 -218
- package/bin/service/builtins/task/runtime/TaskActionInput.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts +0 -12
- package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskPromptAssets.js +0 -13
- package/bin/service/builtins/task/runtime/TaskPromptAssets.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunArtifacts.d.ts +0 -189
- package/bin/service/builtins/task/runtime/TaskRunArtifacts.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunArtifacts.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.d.ts +0 -22
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.js +0 -66
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerProgress.d.ts +0 -35
- package/bin/service/builtins/task/runtime/TaskRunnerProgress.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerProgress.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts +0 -80
- package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerRound.js +0 -272
- package/bin/service/builtins/task/runtime/TaskRunnerRound.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerScript.d.ts +0 -81
- package/bin/service/builtins/task/runtime/TaskRunnerScript.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerScript.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts +0 -48
- package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerSession.js +0 -153
- package/bin/service/builtins/task/runtime/TaskRunnerSession.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts +0 -186
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts +0 -16
- package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskServiceActions.js +0 -167
- package/bin/service/builtins/task/runtime/TaskServiceActions.js.map +0 -1
- package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts +0 -9
- package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts.map +0 -1
- package/bin/service/builtins/task/runtime/TaskServiceSystem.js +0 -9
- package/bin/service/builtins/task/runtime/TaskServiceSystem.js.map +0 -1
- package/bin/service/builtins/task/types/Cron.d.ts +0 -16
- package/bin/service/builtins/task/types/Cron.d.ts.map +0 -1
- package/bin/service/builtins/task/types/Cron.js.map +0 -1
- package/bin/service/builtins/task/types/Task.d.ts.map +0 -1
- package/bin/service/builtins/task/types/Task.js.map +0 -1
- package/bin/service/builtins/task/types/TaskCommand.d.ts.map +0 -1
- package/bin/service/builtins/task/types/TaskCommand.js.map +0 -1
- package/bin/service/builtins/task/types/TaskService.d.ts +0 -52
- package/bin/service/builtins/task/types/TaskService.d.ts.map +0 -1
- package/bin/service/builtins/task/types/TaskService.js +0 -9
- package/bin/service/builtins/task/types/TaskService.js.map +0 -1
- package/bin/service/core/Manager.d.ts +0 -12
- package/bin/service/core/Manager.d.ts.map +0 -1
- package/bin/service/core/Manager.js +0 -11
- package/bin/service/core/Manager.js.map +0 -1
- package/bin/service/core/ServiceActionRunner.d.ts +0 -44
- package/bin/service/core/ServiceActionRunner.d.ts.map +0 -1
- package/bin/service/core/ServiceActionRunner.js +0 -213
- package/bin/service/core/ServiceActionRunner.js.map +0 -1
- package/bin/service/core/ServiceClassRegistry.d.ts +0 -40
- package/bin/service/core/ServiceClassRegistry.d.ts.map +0 -1
- package/bin/service/core/ServiceClassRegistry.js +0 -64
- package/bin/service/core/ServiceClassRegistry.js.map +0 -1
- package/bin/service/core/ServiceCommandRequest.d.ts +0 -36
- package/bin/service/core/ServiceCommandRequest.d.ts.map +0 -1
- package/bin/service/core/ServiceCommandRequest.js +0 -53
- package/bin/service/core/ServiceCommandRequest.js.map +0 -1
- package/bin/service/core/ServiceStateController.d.ts +0 -92
- package/bin/service/core/ServiceStateController.d.ts.map +0 -1
- package/bin/service/core/ServiceStateController.js +0 -248
- package/bin/service/core/ServiceStateController.js.map +0 -1
- package/bin/service/core/ServiceSystemProviders.d.ts +0 -27
- package/bin/service/core/ServiceSystemProviders.d.ts.map +0 -1
- package/bin/service/core/ServiceSystemProviders.js +0 -34
- package/bin/service/core/ServiceSystemProviders.js.map +0 -1
- package/bin/service/core/Services.d.ts +0 -18
- package/bin/service/core/Services.d.ts.map +0 -1
- package/bin/service/core/Services.js +0 -25
- package/bin/service/core/Services.js.map +0 -1
- package/bin/service/core/schedule/Executor.d.ts +0 -17
- package/bin/service/core/schedule/Executor.d.ts.map +0 -1
- package/bin/service/core/schedule/Executor.js +0 -48
- package/bin/service/core/schedule/Executor.js.map +0 -1
- package/bin/service/core/schedule/Store.d.ts +0 -91
- package/bin/service/core/schedule/Store.d.ts.map +0 -1
- package/bin/service/core/schedule/Store.js +0 -284
- package/bin/service/core/schedule/Store.js.map +0 -1
- package/bin/service/core/schedule/Time.d.ts +0 -31
- package/bin/service/core/schedule/Time.d.ts.map +0 -1
- package/bin/service/core/schedule/Time.js +0 -107
- package/bin/service/core/schedule/Time.js.map +0 -1
- package/bin/service/types/Service.d.ts +0 -183
- package/bin/service/types/Service.d.ts.map +0 -1
- package/bin/service/types/Service.js +0 -10
- package/bin/service/types/Service.js.map +0 -1
- package/bin/service/types/ServiceSchedule.d.ts +0 -114
- package/bin/service/types/ServiceSchedule.d.ts.map +0 -1
- package/bin/service/types/ServiceSchedule.js +0 -9
- package/bin/service/types/ServiceSchedule.js.map +0 -1
- package/bin/service/types/ServiceState.d.ts +0 -104
- package/bin/service/types/ServiceState.d.ts.map +0 -1
- package/bin/service/types/ServiceState.js +0 -9
- package/bin/service/types/ServiceState.js.map +0 -1
- package/bin/service/types/Services.d.ts +0 -94
- package/bin/service/types/Services.d.ts.map +0 -1
- package/bin/service/types/Services.js +0 -9
- package/bin/service/types/Services.js.map +0 -1
- package/bin/session/Executor.d.ts +0 -172
- package/bin/session/Executor.d.ts.map +0 -1
- package/bin/session/Executor.js.map +0 -1
- package/bin/session/SessionRunScope.d.ts +0 -84
- package/bin/session/SessionRunScope.d.ts.map +0 -1
- package/bin/session/SessionRunScope.js +0 -82
- package/bin/session/SessionRunScope.js.map +0 -1
- package/bin/session/composer/compaction/SessionCompactionComposer.d.ts +0 -55
- package/bin/session/composer/compaction/SessionCompactionComposer.d.ts.map +0 -1
- package/bin/session/composer/compaction/SessionCompactionComposer.js.map +0 -1
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts.map +0 -1
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.js.map +0 -1
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts +0 -46
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts.map +0 -1
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js.map +0 -1
- package/bin/session/composer/context/LocalSessionContextComposer.d.ts +0 -48
- package/bin/session/composer/context/LocalSessionContextComposer.d.ts.map +0 -1
- package/bin/session/composer/context/LocalSessionContextComposer.js.map +0 -1
- package/bin/session/composer/context/SessionContextComposer.d.ts +0 -62
- package/bin/session/composer/context/SessionContextComposer.d.ts.map +0 -1
- package/bin/session/composer/context/SessionContextComposer.js.map +0 -1
- package/bin/session/composer/history/SessionHistoryComposer.d.ts +0 -54
- package/bin/session/composer/history/SessionHistoryComposer.d.ts.map +0 -1
- package/bin/session/composer/history/SessionHistoryComposer.js.map +0 -1
- package/bin/session/composer/history/SessionHistoryWriter.d.ts +0 -56
- package/bin/session/composer/history/SessionHistoryWriter.d.ts.map +0 -1
- package/bin/session/composer/history/SessionHistoryWriter.js.map +0 -1
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +0 -35
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts.map +0 -1
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +0 -1
- package/bin/session/composer/system/SessionSystemComposer.d.ts.map +0 -1
- package/bin/session/composer/system/SessionSystemComposer.js.map +0 -1
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts +0 -42
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts.map +0 -1
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.js.map +0 -1
- package/bin/session/composer/system/default/InitPromptAssets.d.ts.map +0 -1
- package/bin/session/composer/system/default/InitPromptAssets.js.map +0 -1
- package/bin/session/composer/system/default/InitPrompts.d.ts.map +0 -1
- package/bin/session/composer/system/default/InitPrompts.js.map +0 -1
- package/bin/session/composer/system/default/PromptRenderer.d.ts.map +0 -1
- package/bin/session/composer/system/default/PromptRenderer.js.map +0 -1
- package/bin/session/composer/system/default/StaticPromptCatalog.d.ts.map +0 -1
- package/bin/session/composer/system/default/StaticPromptCatalog.js.map +0 -1
- package/bin/session/composer/system/default/SystemDomain.d.ts +0 -169
- package/bin/session/composer/system/default/SystemDomain.d.ts.map +0 -1
- package/bin/session/composer/system/default/SystemDomain.js +0 -217
- package/bin/session/composer/system/default/SystemDomain.js.map +0 -1
- package/bin/session/composer/system/default/SystemPromptAssets.d.ts +0 -20
- package/bin/session/composer/system/default/SystemPromptAssets.d.ts.map +0 -1
- package/bin/session/composer/system/default/SystemPromptAssets.js +0 -23
- package/bin/session/composer/system/default/SystemPromptAssets.js.map +0 -1
- package/bin/session/composer/system/default/assets/core.prompt.d.ts +0 -7
- package/bin/session/composer/system/default/assets/core.prompt.d.ts.map +0 -1
- package/bin/session/composer/system/default/assets/core.prompt.js +0 -8
- package/bin/session/composer/system/default/assets/core.prompt.js.map +0 -1
- package/bin/session/composer/system/default/assets/init/PROFILE.md.d.ts.map +0 -1
- package/bin/session/composer/system/default/assets/init/PROFILE.md.js +0 -8
- package/bin/session/composer/system/default/assets/init/PROFILE.md.js.map +0 -1
- package/bin/session/composer/system/default/assets/init/SOUL.md.d.ts.map +0 -1
- package/bin/session/composer/system/default/assets/init/SOUL.md.js +0 -8
- package/bin/session/composer/system/default/assets/init/SOUL.md.js.map +0 -1
- package/bin/session/composer/system/default/assets/service.prompt.d.ts +0 -7
- package/bin/session/composer/system/default/assets/service.prompt.d.ts.map +0 -1
- package/bin/session/composer/system/default/assets/service.prompt.js +0 -8
- package/bin/session/composer/system/default/assets/service.prompt.js.map +0 -1
- package/bin/session/composer/system/default/assets/task.prompt.d.ts.map +0 -1
- package/bin/session/composer/system/default/assets/task.prompt.js +0 -8
- package/bin/session/composer/system/default/assets/task.prompt.js.map +0 -1
- package/bin/session/composer/system/default/variables/GeoContext.d.ts.map +0 -1
- package/bin/session/composer/system/default/variables/GeoContext.js.map +0 -1
- package/bin/session/composer/system/default/variables/PromptTypes.d.ts.map +0 -1
- package/bin/session/composer/system/default/variables/PromptTypes.js.map +0 -1
- package/bin/session/composer/system/default/variables/VariableReplacer.d.ts.map +0 -1
- package/bin/session/composer/system/default/variables/VariableReplacer.js.map +0 -1
- package/bin/session/core-engine/CoreEngineError.d.ts.map +0 -1
- package/bin/session/core-engine/CoreEngineError.js.map +0 -1
- package/bin/session/core-engine/CoreEngineLoopDecision.d.ts +0 -27
- package/bin/session/core-engine/CoreEngineLoopDecision.d.ts.map +0 -1
- package/bin/session/core-engine/CoreEngineLoopDecision.js.map +0 -1
- package/bin/session/core-engine/CoreEngineMessageState.d.ts +0 -63
- package/bin/session/core-engine/CoreEngineMessageState.d.ts.map +0 -1
- package/bin/session/core-engine/CoreEngineMessageState.js.map +0 -1
- package/bin/session/core-engine/CoreEngineSignals.d.ts +0 -72
- package/bin/session/core-engine/CoreEngineSignals.d.ts.map +0 -1
- package/bin/session/core-engine/CoreEngineSignals.js.map +0 -1
- package/bin/session/core-engine/CoreEngineUiStreamCollector.d.ts +0 -33
- package/bin/session/core-engine/CoreEngineUiStreamCollector.d.ts.map +0 -1
- package/bin/session/core-engine/CoreEngineUiStreamCollector.js.map +0 -1
- package/bin/session/ids/resolveSessionId.d.ts.map +0 -1
- package/bin/session/ids/resolveSessionId.js.map +0 -1
- package/bin/session/messages/SessionAttachmentMapper.d.ts +0 -14
- package/bin/session/messages/SessionAttachmentMapper.d.ts.map +0 -1
- package/bin/session/messages/SessionAttachmentMapper.js +0 -145
- package/bin/session/messages/SessionAttachmentMapper.js.map +0 -1
- package/bin/session/messages/SessionMessageCodec.d.ts +0 -41
- package/bin/session/messages/SessionMessageCodec.d.ts.map +0 -1
- package/bin/session/messages/SessionMessageCodec.js.map +0 -1
- package/bin/session/messages/SessionMessageLog.d.ts +0 -19
- package/bin/session/messages/SessionMessageLog.d.ts.map +0 -1
- package/bin/session/messages/SessionMessageLog.js.map +0 -1
- package/bin/session/messages/SessionStepEventMapper.d.ts +0 -20
- package/bin/session/messages/SessionStepEventMapper.d.ts.map +0 -1
- package/bin/session/messages/SessionStepEventMapper.js.map +0 -1
- package/bin/session/store/history/SessionHistoryStore.d.ts +0 -119
- package/bin/session/store/history/SessionHistoryStore.d.ts.map +0 -1
- package/bin/session/store/history/SessionHistoryStore.js.map +0 -1
- package/bin/session/store/history/jsonl/JsonlSessionHistoryStore.d.ts +0 -76
- package/bin/session/store/history/jsonl/JsonlSessionHistoryStore.d.ts.map +0 -1
- package/bin/session/store/history/jsonl/JsonlSessionHistoryStore.js +0 -374
- package/bin/session/store/history/jsonl/JsonlSessionHistoryStore.js.map +0 -1
- package/bin/session/tools/shell/ShellToolBridge.d.ts +0 -79
- package/bin/session/tools/shell/ShellToolBridge.d.ts.map +0 -1
- package/bin/session/tools/shell/ShellToolBridge.js +0 -288
- package/bin/session/tools/shell/ShellToolBridge.js.map +0 -1
- package/bin/session/tools/shell/ShellToolDefinition.d.ts +0 -114
- package/bin/session/tools/shell/ShellToolDefinition.d.ts.map +0 -1
- package/bin/session/tools/shell/ShellToolDefinition.js +0 -359
- package/bin/session/tools/shell/ShellToolDefinition.js.map +0 -1
- package/bin/session/tools/shell/ShellToolFormatting.d.ts +0 -26
- package/bin/session/tools/shell/ShellToolFormatting.d.ts.map +0 -1
- package/bin/session/tools/shell/ShellToolFormatting.js +0 -74
- package/bin/session/tools/shell/ShellToolFormatting.js.map +0 -1
- package/bin/session/tools/shell/ShellToolSchemas.d.ts.map +0 -1
- package/bin/session/tools/shell/ShellToolSchemas.js +0 -113
- package/bin/session/tools/shell/ShellToolSchemas.js.map +0 -1
- package/bin/session/types/SessionExecutor.d.ts +0 -18
- package/bin/session/types/SessionExecutor.d.ts.map +0 -1
- package/bin/session/types/SessionExecutor.js.map +0 -1
- package/bin/session/types/SessionHistoryMeta.d.ts +0 -45
- package/bin/session/types/SessionHistoryMeta.d.ts.map +0 -1
- package/bin/session/types/SessionHistoryMeta.js +0 -9
- package/bin/session/types/SessionHistoryMeta.js.map +0 -1
- package/bin/session/types/SessionHistoryPaths.d.ts +0 -30
- package/bin/session/types/SessionHistoryPaths.d.ts.map +0 -1
- package/bin/session/types/SessionHistoryPaths.js.map +0 -1
- package/bin/session/types/SessionLoop.d.ts.map +0 -1
- package/bin/session/types/SessionLoop.js.map +0 -1
- package/bin/session/types/SessionMessages.d.ts +0 -83
- package/bin/session/types/SessionMessages.d.ts.map +0 -1
- package/bin/session/types/SessionMessages.js.map +0 -1
- package/bin/session/types/SessionPrompts.d.ts.map +0 -1
- package/bin/session/types/SessionPrompts.js.map +0 -1
- package/bin/session/types/SessionRun.d.ts +0 -112
- package/bin/session/types/SessionRun.d.ts.map +0 -1
- package/bin/session/types/SessionRun.js.map +0 -1
- package/bin/types/config/ModelBinding.d.ts +0 -19
- package/bin/types/config/ModelBinding.d.ts.map +0 -1
- package/bin/types/config/ModelBinding.js +0 -2
- package/bin/types/config/ModelBinding.js.map +0 -1
- package/bin/utils/cli/Checker.d.ts +0 -8
- package/bin/utils/cli/Checker.d.ts.map +0 -1
- package/bin/utils/cli/Checker.js +0 -18
- package/bin/utils/cli/Checker.js.map +0 -1
- package/bin/utils/logger/Fetch.d.ts +0 -14
- package/bin/utils/logger/Fetch.d.ts.map +0 -1
- package/bin/utils/logger/Fetch.js +0 -68
- package/bin/utils/logger/Fetch.js.map +0 -1
- package/src/plugin/builtins/voice/Plugin.ts +0 -450
- package/src/plugin/core/PluginManager.ts +0 -66
- package/src/plugin/core/Plugins.ts +0 -39
- package/src/runtime/host/PluginRuntime.ts +0 -42
- package/src/runtime/server/http/auth/AuthError.ts +0 -31
- package/src/runtime/server/http/auth/PasswordHasher.ts +0 -37
- package/src/runtime/server/http/auth/TokenService.ts +0 -36
- package/src/runtime/server/http/services/services.ts +0 -98
- package/src/sdk/session/ServicePort.ts +0 -130
- package/src/service/builtins/BaseService.ts +0 -97
- package/src/service/builtins/README.md +0 -121
- package/src/service/builtins/chat/Action.ts +0 -477
- package/src/service/builtins/chat/ChatService.ts +0 -255
- package/src/service/builtins/chat/ChatServiceTypes.ts +0 -164
- package/src/service/builtins/chat/Index.ts +0 -9
- package/src/service/builtins/chat/PROMPT.direct.ts +0 -9
- package/src/service/builtins/chat/PROMPT.direct.ts.txt +0 -55
- package/src/service/builtins/chat/accounts/ChannelAccountService.ts +0 -297
- package/src/service/builtins/chat/channels/BaseChatChannel.ts +0 -450
- package/src/service/builtins/chat/channels/BaseChatChannelQueue.ts +0 -321
- package/src/service/builtins/chat/channels/BaseChatChannelSupport.ts +0 -321
- package/src/service/builtins/chat/channels/BotInfoProvider.ts +0 -49
- package/src/service/builtins/chat/channels/Configuration.ts +0 -35
- package/src/service/builtins/chat/channels/ConfigurationRegistry.ts +0 -43
- package/src/service/builtins/chat/channels/feishu/BotInfo.ts +0 -199
- package/src/service/builtins/chat/channels/feishu/Configuration.ts +0 -65
- package/src/service/builtins/chat/channels/feishu/Feishu.ts +0 -467
- package/src/service/builtins/chat/channels/feishu/FeishuInbound.ts +0 -51
- package/src/service/builtins/chat/channels/feishu/FeishuMessageHandler.ts +0 -483
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformClient.ts +0 -421
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformLookup.ts +0 -523
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts +0 -219
- package/src/service/builtins/chat/channels/feishu/InboundAttachment.ts +0 -261
- package/src/service/builtins/chat/channels/feishu/PROMPT.direct.ts +0 -9
- package/src/service/builtins/chat/channels/feishu/PostMessage.ts +0 -492
- package/src/service/builtins/chat/channels/feishu/ReplyContext.ts +0 -68
- package/src/service/builtins/chat/channels/feishu/Shared.ts +0 -94
- package/src/service/builtins/chat/channels/feishu/types/FeishuChannel.ts +0 -131
- package/src/service/builtins/chat/channels/qq/BotInfo.ts +0 -137
- package/src/service/builtins/chat/channels/qq/Configuration.ts +0 -64
- package/src/service/builtins/chat/channels/qq/PROMPT.direct.ts +0 -9
- package/src/service/builtins/chat/channels/qq/PROMPT.direct.ts.txt +0 -11
- package/src/service/builtins/chat/channels/qq/QQ.ts +0 -398
- package/src/service/builtins/chat/channels/qq/QQEventCapture.ts +0 -88
- package/src/service/builtins/chat/channels/qq/QQGatewayAuth.ts +0 -318
- package/src/service/builtins/chat/channels/qq/QQGatewayClient.ts +0 -467
- package/src/service/builtins/chat/channels/qq/QQGatewayConnection.ts +0 -175
- package/src/service/builtins/chat/channels/qq/QQGatewayHeartbeat.ts +0 -114
- package/src/service/builtins/chat/channels/qq/QQGatewayProtocol.ts +0 -176
- package/src/service/builtins/chat/channels/qq/QQGatewaySend.ts +0 -258
- package/src/service/builtins/chat/channels/qq/QQGatewaySupport.ts +0 -159
- package/src/service/builtins/chat/channels/qq/QQInbound.ts +0 -262
- package/src/service/builtins/chat/channels/qq/QQInboundDedupe.ts +0 -126
- package/src/service/builtins/chat/channels/qq/QQMessageHandler.ts +0 -465
- package/src/service/builtins/chat/channels/qq/QQSupport.ts +0 -263
- package/src/service/builtins/chat/channels/qq/VoiceInput.ts +0 -381
- package/src/service/builtins/chat/channels/qq/types/QqChannel.ts +0 -501
- package/src/service/builtins/chat/channels/telegram/Bot.ts +0 -357
- package/src/service/builtins/chat/channels/telegram/BotInfo.ts +0 -92
- package/src/service/builtins/chat/channels/telegram/Configuration.ts +0 -65
- package/src/service/builtins/chat/channels/telegram/PROMPT.direct.ts +0 -9
- package/src/service/builtins/chat/channels/telegram/ReplyContext.ts +0 -76
- package/src/service/builtins/chat/channels/telegram/Shared.ts +0 -404
- package/src/service/builtins/chat/channels/telegram/TelegramMessageHandler.ts +0 -485
- package/src/service/builtins/chat/channels/telegram/TelegramPendingUpdates.ts +0 -204
- package/src/service/builtins/chat/channels/telegram/TelegramPlatformClient.ts +0 -482
- package/src/service/builtins/chat/runtime/ChannelContextStore.ts +0 -395
- package/src/service/builtins/chat/runtime/ChatActionExecution.ts +0 -362
- package/src/service/builtins/chat/runtime/ChatActionInput.ts +0 -167
- package/src/service/builtins/chat/runtime/ChatChannelActions.ts +0 -307
- package/src/service/builtins/chat/runtime/ChatChannelConfig.ts +0 -330
- package/src/service/builtins/chat/runtime/ChatChannelCore.ts +0 -145
- package/src/service/builtins/chat/runtime/ChatChannelFacade.ts +0 -23
- package/src/service/builtins/chat/runtime/ChatChannelLifecycle.ts +0 -169
- package/src/service/builtins/chat/runtime/ChatHistoryStore.ts +0 -289
- package/src/service/builtins/chat/runtime/ChatIngressStore.ts +0 -88
- package/src/service/builtins/chat/runtime/ChatMessageMarkup.ts +0 -263
- package/src/service/builtins/chat/runtime/ChatMetaStore.ts +0 -186
- package/src/service/builtins/chat/runtime/ChatPromptAssets.ts +0 -32
- package/src/service/builtins/chat/runtime/ChatQueue.ts +0 -77
- package/src/service/builtins/chat/runtime/ChatQueueSessionBridge.ts +0 -122
- package/src/service/builtins/chat/runtime/ChatQueueStore.ts +0 -185
- package/src/service/builtins/chat/runtime/ChatQueueWorker.ts +0 -504
- package/src/service/builtins/chat/runtime/ChatQueueWorkerSupport.ts +0 -137
- package/src/service/builtins/chat/runtime/ChatSendActionInput.ts +0 -255
- package/src/service/builtins/chat/runtime/ChatSendMetadata.ts +0 -170
- package/src/service/builtins/chat/runtime/ChatSendRegistry.ts +0 -43
- package/src/service/builtins/chat/runtime/ChatServiceActions.ts +0 -367
- package/src/service/builtins/chat/runtime/ChatServiceSystem.ts +0 -70
- package/src/service/builtins/chat/runtime/ChatSession.ts +0 -156
- package/src/service/builtins/chat/runtime/ChatSessionContextComposer.ts +0 -106
- package/src/service/builtins/chat/runtime/ChatSessionDelete.ts +0 -95
- package/src/service/builtins/chat/runtime/ChatSessionTypes.ts +0 -32
- package/src/service/builtins/chat/runtime/ChatkeySend.ts +0 -187
- package/src/service/builtins/chat/runtime/DirectDispatchParser.ts +0 -158
- package/src/service/builtins/chat/runtime/EnqueueDispatch.ts +0 -49
- package/src/service/builtins/chat/runtime/InboundAugment.ts +0 -63
- package/src/service/builtins/chat/runtime/PluginDispatch.ts +0 -89
- package/src/service/builtins/chat/runtime/PluginPoints.ts +0 -78
- package/src/service/builtins/chat/runtime/QueuedUserMessage.ts +0 -43
- package/src/service/builtins/chat/runtime/ReplyContextFormatter.ts +0 -85
- package/src/service/builtins/chat/runtime/ReplyDispatch.ts +0 -78
- package/src/service/builtins/chat/runtime/SystemPrompt.ts +0 -84
- package/src/service/builtins/chat/runtime/UIMessageTransformer.ts +0 -141
- package/src/service/builtins/chat/runtime/UserVisibleText.ts +0 -84
- package/src/service/builtins/chat/types/BotInfo.ts +0 -101
- package/src/service/builtins/chat/types/ChannelConfiguration.ts +0 -161
- package/src/service/builtins/chat/types/ChannelContext.ts +0 -110
- package/src/service/builtins/chat/types/ChannelStatus.ts +0 -98
- package/src/service/builtins/chat/types/ChatHistory.ts +0 -42
- package/src/service/builtins/chat/types/ChatMessageMarkup.ts +0 -168
- package/src/service/builtins/chat/types/ChatMeta.ts +0 -35
- package/src/service/builtins/chat/types/ChatPlugin.ts +0 -251
- package/src/service/builtins/chat/types/ChatPromptContext.ts +0 -139
- package/src/service/builtins/chat/types/ChatQueue.ts +0 -49
- package/src/service/builtins/chat/types/ChatRuntime.ts +0 -33
- package/src/service/builtins/chat/types/ChatService.ts +0 -165
- package/src/service/builtins/chat/types/DirectDispatch.ts +0 -133
- package/src/service/builtins/chat/types/FeishuInboundAttachment.ts +0 -138
- package/src/service/builtins/contact/Action.ts +0 -316
- package/src/service/builtins/contact/ContactService.ts +0 -505
- package/src/service/builtins/contact/Index.ts +0 -8
- package/src/service/builtins/contact/PROMPT.ts +0 -9
- package/src/service/builtins/contact/PROMPT.ts.txt +0 -25
- package/src/service/builtins/contact/runtime/ApproveCallback.ts +0 -97
- package/src/service/builtins/contact/runtime/ChatRuntime.ts +0 -82
- package/src/service/builtins/contact/runtime/ContactPromptAssets.ts +0 -14
- package/src/service/builtins/contact/runtime/ContactStore.ts +0 -299
- package/src/service/builtins/contact/runtime/EndpointNotice.ts +0 -125
- package/src/service/builtins/contact/runtime/InboxStore.ts +0 -178
- package/src/service/builtins/contact/runtime/LinkApproval.ts +0 -387
- package/src/service/builtins/contact/runtime/LinkCode.ts +0 -70
- package/src/service/builtins/contact/runtime/LinkStore.ts +0 -50
- package/src/service/builtins/contact/runtime/Paths.ts +0 -139
- package/src/service/builtins/contact/runtime/RemoteClient.ts +0 -158
- package/src/service/builtins/contact/runtime/ShareBundle.ts +0 -286
- package/src/service/builtins/contact/runtime/SystemProvider.ts +0 -15
- package/src/service/builtins/contact/types/ContactCheck.ts +0 -67
- package/src/service/builtins/contact/types/ContactCommand.ts +0 -98
- package/src/service/builtins/memory/Action.ts +0 -147
- package/src/service/builtins/memory/Index.ts +0 -9
- package/src/service/builtins/memory/MemoryService.ts +0 -270
- package/src/service/builtins/memory/runtime/Flush.ts +0 -83
- package/src/service/builtins/memory/runtime/Search.ts +0 -330
- package/src/service/builtins/memory/runtime/Store.ts +0 -198
- package/src/service/builtins/memory/runtime/SystemProvider.ts +0 -145
- package/src/service/builtins/memory/runtime/Writer.ts +0 -173
- package/src/service/builtins/schedule/ScheduleService.ts +0 -131
- package/src/service/builtins/shell/Index.ts +0 -9
- package/src/service/builtins/shell/ShellRuntimeTypes.ts +0 -94
- package/src/service/builtins/shell/ShellService.ts +0 -199
- package/src/service/builtins/shell/runtime/ShellActionResponse.ts +0 -135
- package/src/service/builtins/shell/runtime/ShellActionRuntime.ts +0 -544
- package/src/service/builtins/shell/runtime/ShellActionRuntimeSupport.ts +0 -398
- package/src/service/builtins/shell/runtime/ShellProcessEvents.ts +0 -65
- package/src/service/builtins/shell/runtime/ShellRuntimeEnvironment.ts +0 -75
- package/src/service/builtins/shell/types/ShellService.ts +0 -233
- package/src/service/builtins/task/Index.ts +0 -9
- package/src/service/builtins/task/PROMPT.ts +0 -9
- package/src/service/builtins/task/PROMPT.ts.txt +0 -237
- package/src/service/builtins/task/Scheduler.ts +0 -245
- package/src/service/builtins/task/TaskService.ts +0 -167
- package/src/service/builtins/task/runtime/CronRuntime.ts +0 -73
- package/src/service/builtins/task/runtime/CronTrigger.ts +0 -110
- package/src/service/builtins/task/runtime/Model.ts +0 -347
- package/src/service/builtins/task/runtime/Runner.ts +0 -519
- package/src/service/builtins/task/runtime/Store.ts +0 -253
- package/src/service/builtins/task/runtime/TaskActionExecution.ts +0 -276
- package/src/service/builtins/task/runtime/TaskActionInput.ts +0 -281
- package/src/service/builtins/task/runtime/TaskPromptAssets.ts +0 -14
- package/src/service/builtins/task/runtime/TaskRunArtifacts.ts +0 -493
- package/src/service/builtins/task/runtime/TaskRunChatDispatch.ts +0 -81
- package/src/service/builtins/task/runtime/TaskRunnerProgress.ts +0 -112
- package/src/service/builtins/task/runtime/TaskRunnerRound.ts +0 -337
- package/src/service/builtins/task/runtime/TaskRunnerScript.ts +0 -175
- package/src/service/builtins/task/runtime/TaskRunnerSession.ts +0 -190
- package/src/service/builtins/task/runtime/TaskRunnerTypes.ts +0 -199
- package/src/service/builtins/task/runtime/TaskServiceActions.ts +0 -214
- package/src/service/builtins/task/runtime/TaskServiceSystem.ts +0 -8
- package/src/service/builtins/task/types/Cron.ts +0 -16
- package/src/service/builtins/task/types/TaskService.ts +0 -55
- package/src/service/core/Manager.ts +0 -24
- package/src/service/core/ServiceActionRunner.ts +0 -274
- package/src/service/core/ServiceClassRegistry.ts +0 -77
- package/src/service/core/ServiceCommandRequest.ts +0 -93
- package/src/service/core/ServiceStateController.ts +0 -341
- package/src/service/core/ServiceSystemProviders.ts +0 -50
- package/src/service/core/Services.ts +0 -35
- package/src/service/core/schedule/Executor.ts +0 -54
- package/src/service/core/schedule/Store.ts +0 -358
- package/src/service/core/schedule/Time.ts +0 -131
- package/src/service/types/Service.ts +0 -200
- package/src/service/types/ServiceSchedule.ts +0 -134
- package/src/service/types/ServiceState.ts +0 -112
- package/src/service/types/Services.ts +0 -100
- package/src/session/Executor.ts +0 -732
- package/src/session/README.md +0 -108
- package/src/session/SessionRunScope.ts +0 -146
- package/src/session/composer/compaction/SessionCompactionComposer.ts +0 -62
- package/src/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.ts +0 -101
- package/src/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.ts +0 -261
- package/src/session/composer/context/LocalSessionContextComposer.ts +0 -168
- package/src/session/composer/context/SessionContextComposer.ts +0 -70
- package/src/session/composer/history/SessionHistoryComposer.ts +0 -62
- package/src/session/composer/history/SessionHistoryWriter.ts +0 -131
- package/src/session/composer/history/jsonl/JsonlSessionHistoryComposer.ts +0 -126
- package/src/session/composer/system/default/DefaultSessionSystemComposer.ts +0 -77
- package/src/session/composer/system/default/InitPromptAssets.ts +0 -20
- package/src/session/composer/system/default/InitPrompts.ts +0 -11
- package/src/session/composer/system/default/PromptRenderer.ts +0 -52
- package/src/session/composer/system/default/StaticPromptCatalog.ts +0 -287
- package/src/session/composer/system/default/SystemDomain.ts +0 -373
- package/src/session/composer/system/default/SystemPromptAssets.ts +0 -26
- package/src/session/composer/system/default/assets/core.prompt.ts +0 -9
- package/src/session/composer/system/default/assets/core.prompt.ts.txt +0 -39
- package/src/session/composer/system/default/assets/init/PROFILE.md.ts +0 -9
- package/src/session/composer/system/default/assets/init/SOUL.md.ts +0 -9
- package/src/session/composer/system/default/assets/service.prompt.ts +0 -9
- package/src/session/composer/system/default/assets/service.prompt.ts.txt +0 -29
- package/src/session/composer/system/default/assets/task.prompt.ts +0 -9
- package/src/session/composer/system/default/variables/GeoContext.ts +0 -180
- package/src/session/composer/system/default/variables/VariableReplacer.ts +0 -154
- package/src/session/core-engine/CoreEngineLoopDecision.ts +0 -80
- package/src/session/core-engine/CoreEngineMessageState.ts +0 -133
- package/src/session/core-engine/CoreEngineSignals.ts +0 -416
- package/src/session/core-engine/CoreEngineUiStreamCollector.ts +0 -96
- package/src/session/messages/SessionAttachmentMapper.ts +0 -155
- package/src/session/messages/SessionMessageCodec.ts +0 -116
- package/src/session/messages/SessionMessageLog.ts +0 -39
- package/src/session/messages/SessionStepEventMapper.ts +0 -233
- package/src/session/store/history/SessionHistoryStore.ts +0 -145
- package/src/session/store/history/jsonl/JsonlSessionHistoryStore.ts +0 -465
- package/src/session/tools/shell/ShellToolBridge.ts +0 -378
- package/src/session/tools/shell/ShellToolDefinition.ts +0 -509
- package/src/session/tools/shell/ShellToolFormatting.ts +0 -83
- package/src/session/tools/shell/ShellToolSchemas.ts +0 -120
- package/src/session/types/SessionExecutor.ts +0 -33
- package/src/session/types/SessionHistoryMeta.ts +0 -46
- package/src/session/types/SessionHistoryPaths.ts +0 -33
- package/src/session/types/SessionMessages.ts +0 -90
- package/src/session/types/SessionRun.ts +0 -132
- package/src/types/config/ModelBinding.ts +0 -18
- package/src/utils/cli/Checker.ts +0 -19
- package/src/utils/logger/Fetch.ts +0 -93
- /package/bin/{session → executor}/Executor.js +0 -0
- /package/bin/{session → executor}/composer/compaction/SessionCompactionComposer.js +0 -0
- /package/bin/{session → executor}/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts +0 -0
- /package/bin/{session → executor}/composer/compaction/jsonl/JsonlSessionCompactionComposer.js +0 -0
- /package/bin/{session → executor}/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js +0 -0
- /package/bin/{session → executor}/composer/context/LocalSessionContextComposer.js +0 -0
- /package/bin/{session → executor}/composer/context/SessionContextComposer.js +0 -0
- /package/bin/{session → executor}/composer/history/SessionHistoryComposer.js +0 -0
- /package/bin/{session → executor}/composer/history/SessionHistoryWriter.js +0 -0
- /package/bin/{session → executor}/composer/history/jsonl/JsonlSessionHistoryComposer.js +0 -0
- /package/bin/{session → executor}/composer/system/SessionSystemComposer.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/SessionSystemComposer.js +0 -0
- /package/bin/{session → executor}/composer/system/default/DefaultSessionSystemComposer.js +0 -0
- /package/bin/{session → executor}/composer/system/default/InitPromptAssets.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/InitPromptAssets.js +0 -0
- /package/bin/{session → executor}/composer/system/default/InitPrompts.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/InitPrompts.js +0 -0
- /package/bin/{session → executor}/composer/system/default/PromptRenderer.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/PromptRenderer.js +0 -0
- /package/bin/{session → executor}/composer/system/default/StaticPromptCatalog.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/StaticPromptCatalog.js +0 -0
- /package/bin/{session → executor}/composer/system/default/assets/init/PROFILE.md.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/assets/init/SOUL.md.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/assets/task.prompt.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/variables/GeoContext.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/variables/GeoContext.js +0 -0
- /package/bin/{session → executor}/composer/system/default/variables/PromptTypes.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/variables/PromptTypes.js +0 -0
- /package/bin/{session → executor}/composer/system/default/variables/VariableReplacer.d.ts +0 -0
- /package/bin/{session → executor}/composer/system/default/variables/VariableReplacer.js +0 -0
- /package/bin/{session → executor}/core-engine/CoreEngineError.d.ts +0 -0
- /package/bin/{session → executor}/core-engine/CoreEngineError.js +0 -0
- /package/bin/{session → executor}/core-engine/CoreEngineLoopDecision.js +0 -0
- /package/bin/{session → executor}/core-engine/CoreEngineMessageState.js +0 -0
- /package/bin/{session → executor}/core-engine/CoreEngineSignals.js +0 -0
- /package/bin/{session → executor}/core-engine/CoreEngineUiStreamCollector.js +0 -0
- /package/bin/{session → executor}/ids/resolveSessionId.d.ts +0 -0
- /package/bin/{session → executor}/ids/resolveSessionId.js +0 -0
- /package/bin/{session → executor}/messages/SessionMessageCodec.js +0 -0
- /package/bin/{session → executor}/messages/SessionMessageLog.js +0 -0
- /package/bin/{session → executor}/messages/SessionStepEventMapper.js +0 -0
- /package/bin/{session → executor}/store/history/SessionHistoryStore.js +0 -0
- /package/bin/{session → executor}/tools/shell/ShellToolSchemas.d.ts +0 -0
- /package/bin/{session → executor}/types/SessionExecutor.js +0 -0
- /package/bin/{session → executor}/types/SessionHistoryPaths.js +0 -0
- /package/bin/{session → executor}/types/SessionLoop.d.ts +0 -0
- /package/bin/{session → executor}/types/SessionLoop.js +0 -0
- /package/bin/{session → executor}/types/SessionMessages.js +0 -0
- /package/bin/{session → executor}/types/SessionPrompts.d.ts +0 -0
- /package/bin/{session → executor}/types/SessionPrompts.js +0 -0
- /package/bin/{session → executor}/types/SessionRun.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/Configuration.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/feishu/BotInfo.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/feishu/FeishuInbound.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/feishu/FeishuPlatformClient.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/feishu/FeishuPlatformLookup.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/feishu/FeishuPlatformMessaging.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/feishu/InboundAttachment.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/feishu/PROMPT.direct.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/feishu/PostMessage.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/feishu/ReplyContext.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/BotInfo.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQEventCapture.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewayAuth.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewayClient.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewayConnection.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewayHeartbeat.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewaySend.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewaySupport.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQInbound.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQInboundDedupe.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQInboundDedupe.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQMessageHandler.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQSendSupport.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/QQSendSupport.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/VoiceInput.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/types/QqGatewaySupport.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/qq/types/QqGatewaySupport.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/ApiClient.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/ApiClient.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/BotInfo.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/Handlers.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/Handlers.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/PROMPT.direct.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/ReplyContext.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/Shared.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/StateStore.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/StateStore.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/TelegramInbound.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/TelegramInbound.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/TelegramPendingUpdates.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/channels/telegram/TelegramPlatformClient.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChannelContextStore.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatActionInputSupport.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatActionInputSupport.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatHistoryStore.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatMessageMarkup.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatQueue.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatQueueReplyDispatch.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatQueueWorkerSupport.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatSendMetadata.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatSendRegistry.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ChatSessionTypes.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/QueuedUserMessage.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/ReplyContextFormatter.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/UIMessageTransformer.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/runtime/UserVisibleText.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/BotInfo.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChannelAccount.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChannelAccount.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChannelConfiguration.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChannelStatus.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChatCommand.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChatCommand.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChatDispatcher.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChatDispatcher.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChatHistory.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChatPromptContext.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChatQueue.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChatQueueWorker.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ChatQueueWorker.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/DirectDispatch.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/FeishuAttachment.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/FeishuAttachment.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/FeishuInboundAttachment.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/FeishuPost.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/FeishuPost.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/QqInboundDedupe.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/QqInboundDedupe.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/QqVoice.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/QqVoice.js +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ReplyContext.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/chat/types/ReplyContext.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/ApproveCallback.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/ContactPayload.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/ContactPayload.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/ContactStore.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/EndpointNotice.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/EndpointResolver.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/EndpointResolver.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/InboxStore.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/LinkApproval.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/LinkCode.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/LinkStore.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/ShareBundle.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/Token.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/contact/runtime/Token.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/Contact.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/Contact.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactApproval.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactApproval.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactChat.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactChat.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactCheck.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactEndpoint.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactEndpoint.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactLink.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactLink.js +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactShare.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/contact/types/ContactShare.js +0 -0
- /package/bin/{service → plugin}/builtins/memory/Action.js +0 -0
- /package/bin/{service → plugin}/builtins/memory/runtime/Flush.js +0 -0
- /package/bin/{service → plugin}/builtins/memory/types/Memory.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/memory/types/Memory.js +0 -0
- /package/bin/{service → plugin}/builtins/shell/runtime/Paths.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/shell/runtime/Paths.js +0 -0
- /package/bin/{service → plugin}/builtins/shell/runtime/ShellActionResponse.js +0 -0
- /package/bin/{service → plugin}/builtins/shell/runtime/ShellProcessEvents.js +0 -0
- /package/bin/{service → plugin}/builtins/shell/runtime/ShellRuntimeEnvironment.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/shell/types/Shell.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/shell/types/Shell.js +0 -0
- /package/bin/{service → plugin}/builtins/task/Action.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/task/Action.js +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/Frontmatter.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/Frontmatter.js +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/Model.js +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/Paths.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/Paths.js +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/Runner.js +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/Store.js +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/TaskRunArtifacts.js +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/TaskRunnerProgress.js +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/TaskRunnerScript.js +0 -0
- /package/bin/{service → plugin}/builtins/task/runtime/TaskRunnerTypes.js +0 -0
- /package/bin/{service → plugin}/builtins/task/types/Cron.js +0 -0
- /package/bin/{service → plugin}/builtins/task/types/Task.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/task/types/Task.js +0 -0
- /package/bin/{service → plugin}/builtins/task/types/TaskCommand.d.ts +0 -0
- /package/bin/{service → plugin}/builtins/task/types/TaskCommand.js +0 -0
- /package/src/{session → executor}/composer/system/SessionSystemComposer.ts +0 -0
- /package/src/{session → executor}/composer/system/default/assets/init/PROFILE.md.ts.txt +0 -0
- /package/src/{session → executor}/composer/system/default/assets/init/SOUL.md.ts.txt +0 -0
- /package/src/{session → executor}/composer/system/default/assets/task.prompt.ts.txt +0 -0
- /package/src/{session → executor}/composer/system/default/variables/PromptTypes.ts +0 -0
- /package/src/{session → executor}/core-engine/CoreEngineError.ts +0 -0
- /package/src/{session → executor}/ids/resolveSessionId.ts +0 -0
- /package/src/{session → executor}/types/SessionLoop.ts +0 -0
- /package/src/{session → executor}/types/SessionPrompts.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/channels/feishu/PROMPT.direct.ts.txt +0 -0
- /package/src/{service → plugin}/builtins/chat/channels/qq/QQSendSupport.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/channels/qq/types/QqGatewaySupport.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/channels/telegram/ApiClient.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/channels/telegram/Handlers.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/channels/telegram/PROMPT.direct.ts.txt +0 -0
- /package/src/{service → plugin}/builtins/chat/channels/telegram/StateStore.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/channels/telegram/TelegramInbound.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/runtime/ChatActionInputSupport.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/runtime/ChatQueueReplyDispatch.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/types/ChannelAccount.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/types/ChatCommand.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/types/ChatDispatcher.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/types/ChatQueueWorker.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/types/FeishuAttachment.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/types/FeishuPost.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/types/QqInboundDedupe.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/types/QqVoice.ts +0 -0
- /package/src/{service → plugin}/builtins/chat/types/ReplyContext.ts +0 -0
- /package/src/{service → plugin}/builtins/contact/runtime/ContactPayload.ts +0 -0
- /package/src/{service → plugin}/builtins/contact/runtime/EndpointResolver.ts +0 -0
- /package/src/{service → plugin}/builtins/contact/runtime/Token.ts +0 -0
- /package/src/{service → plugin}/builtins/contact/types/Contact.ts +0 -0
- /package/src/{service → plugin}/builtins/contact/types/ContactApproval.ts +0 -0
- /package/src/{service → plugin}/builtins/contact/types/ContactChat.ts +0 -0
- /package/src/{service → plugin}/builtins/contact/types/ContactEndpoint.ts +0 -0
- /package/src/{service → plugin}/builtins/contact/types/ContactLink.ts +0 -0
- /package/src/{service → plugin}/builtins/contact/types/ContactShare.ts +0 -0
- /package/src/{service → plugin}/builtins/memory/types/Memory.ts +0 -0
- /package/src/{service → plugin}/builtins/shell/runtime/Paths.ts +0 -0
- /package/src/{service → plugin}/builtins/shell/types/Shell.ts +0 -0
- /package/src/{service → plugin}/builtins/task/Action.ts +0 -0
- /package/src/{service → plugin}/builtins/task/runtime/Frontmatter.ts +0 -0
- /package/src/{service → plugin}/builtins/task/runtime/Paths.ts +0 -0
- /package/src/{service → plugin}/builtins/task/types/Task.ts +0 -0
- /package/src/{service → plugin}/builtins/task/types/TaskCommand.ts +0 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feishu 入站消息处理器。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 负责单条飞书消息的去重、解析、授权、附件保存与执行入队。
|
|
6
|
+
* - 不持有 `FeishuBot` 实例;所有副作用通过显式依赖注入。
|
|
7
|
+
* - 解析失败/执行失败通过渠道门面提供的发送函数回写错误消息。
|
|
8
|
+
*/
|
|
9
|
+
import path from "path";
|
|
10
|
+
import { buildReplyContextExtra, buildReplyContextInstruction, } from "../../../../../plugin/builtins/chat/runtime/ReplyContextFormatter.js";
|
|
11
|
+
import { augmentChatInboundInput, buildChatInboundText, } from "../../../../../plugin/builtins/chat/runtime/InboundAugment.js";
|
|
12
|
+
import { renderChatMessageFileTag } from "../../../../../plugin/builtins/chat/runtime/ChatMessageMarkup.js";
|
|
13
|
+
import { parseFeishuInboundMessage } from "./InboundAttachment.js";
|
|
14
|
+
import { extractFeishuSenderIdentity, isFeishuGroupChat, stripFeishuAtMentions, } from "./FeishuInbound.js";
|
|
15
|
+
/**
|
|
16
|
+
* 处理 Feishu 入站消息。
|
|
17
|
+
*/
|
|
18
|
+
export async function handleFeishuMessage(options, data) {
|
|
19
|
+
try {
|
|
20
|
+
if (!data?.message)
|
|
21
|
+
return;
|
|
22
|
+
const { message: { chat_id, content, message_type, chat_type, message_id, parent_id, }, } = data;
|
|
23
|
+
const threadId = options.buildChatKey(chat_id);
|
|
24
|
+
const senderIdentity = extractFeishuSenderIdentity(data);
|
|
25
|
+
const actorId = senderIdentity.senderId;
|
|
26
|
+
const normalizedMessageId = String(message_id || "").trim();
|
|
27
|
+
if (!normalizedMessageId)
|
|
28
|
+
return;
|
|
29
|
+
if (!actorId) {
|
|
30
|
+
options.logger.warn("飞书消息缺少发送者 userId/open_id,已忽略", {
|
|
31
|
+
chatId: chat_id,
|
|
32
|
+
chatType: chat_type,
|
|
33
|
+
messageId: normalizedMessageId,
|
|
34
|
+
});
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (options.processedMessages.has(normalizedMessageId)) {
|
|
38
|
+
options.logger.debug(`Message already processed, skipping: ${normalizedMessageId}`);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const persisted = await options.loadDedupeSet(threadId);
|
|
42
|
+
if (persisted.has(normalizedMessageId)) {
|
|
43
|
+
options.logger.debug(`Message already processed (persisted), skipping: ${normalizedMessageId}`);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (options.processingMessages.has(normalizedMessageId)) {
|
|
47
|
+
options.logger.debug(`Message is already being processed, skipping duplicate delivery: ${normalizedMessageId}`);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
options.processingMessages.add(normalizedMessageId);
|
|
51
|
+
let handled = false;
|
|
52
|
+
try {
|
|
53
|
+
let parsedInput;
|
|
54
|
+
try {
|
|
55
|
+
parsedInput = await parseIncomingMessage({
|
|
56
|
+
options,
|
|
57
|
+
chatId: chat_id,
|
|
58
|
+
chatType: chat_type,
|
|
59
|
+
messageId: message_id,
|
|
60
|
+
messageType: message_type,
|
|
61
|
+
content,
|
|
62
|
+
parentMessageId: parent_id,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
await options.sendErrorMessage({
|
|
67
|
+
chatId: chat_id,
|
|
68
|
+
chatType: chat_type,
|
|
69
|
+
messageId: message_id,
|
|
70
|
+
errorText: `Failed to parse message: ${String(error)}`,
|
|
71
|
+
});
|
|
72
|
+
handled = true;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (parsedInput.alreadyHandled) {
|
|
76
|
+
handled = true;
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const handledByAuth = await handleAuthorizedMessage({
|
|
80
|
+
options,
|
|
81
|
+
data,
|
|
82
|
+
threadId,
|
|
83
|
+
senderIdentity,
|
|
84
|
+
actorId,
|
|
85
|
+
chatId: chat_id,
|
|
86
|
+
chatType: chat_type,
|
|
87
|
+
messageId: message_id,
|
|
88
|
+
...parsedInput,
|
|
89
|
+
});
|
|
90
|
+
handled = handledByAuth;
|
|
91
|
+
}
|
|
92
|
+
finally {
|
|
93
|
+
options.processingMessages.delete(normalizedMessageId);
|
|
94
|
+
if (handled) {
|
|
95
|
+
options.processedMessages.add(normalizedMessageId);
|
|
96
|
+
persisted.add(normalizedMessageId);
|
|
97
|
+
await options.persistDedupeSet(threadId, persisted);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
options.logger.error("Failed to process Feishu message", {
|
|
103
|
+
error: String(error),
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 解析入站消息文本、附件和 reply 上下文。
|
|
109
|
+
*/
|
|
110
|
+
async function parseIncomingMessage(params) {
|
|
111
|
+
const parsed = parseFeishuInboundMessage({
|
|
112
|
+
messageType: params.messageType,
|
|
113
|
+
content: params.content,
|
|
114
|
+
});
|
|
115
|
+
if (parsed.unsupportedType) {
|
|
116
|
+
await params.options.sendErrorMessage({
|
|
117
|
+
chatId: params.chatId,
|
|
118
|
+
chatType: params.chatType,
|
|
119
|
+
messageId: params.messageId,
|
|
120
|
+
errorText: `Unsupported Feishu message type: ${parsed.unsupportedType}`,
|
|
121
|
+
});
|
|
122
|
+
return {
|
|
123
|
+
userMessage: "",
|
|
124
|
+
incomingAttachments: [],
|
|
125
|
+
alreadyHandled: true,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
userMessage: parsed.text,
|
|
130
|
+
incomingAttachments: await params.options.downloadIncomingAttachments({
|
|
131
|
+
messageId: params.messageId,
|
|
132
|
+
attachments: parsed.attachments,
|
|
133
|
+
}),
|
|
134
|
+
replyContext: await params.options.resolveReplyContext({
|
|
135
|
+
parentMessageId: params.parentMessageId,
|
|
136
|
+
}),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* 授权后处理消息内容。
|
|
141
|
+
*/
|
|
142
|
+
async function handleAuthorizedMessage(params) {
|
|
143
|
+
const { options, threadId, senderIdentity, actorId, chatId, chatType, messageId, incomingAttachments, replyContext, } = params;
|
|
144
|
+
let userMessage = params.userMessage;
|
|
145
|
+
options.logger.info(`Received Feishu message: ${userMessage || "[attachment]"}`);
|
|
146
|
+
const actorName = (await options.resolveSenderName({
|
|
147
|
+
...senderIdentity,
|
|
148
|
+
chatId,
|
|
149
|
+
})) || undefined;
|
|
150
|
+
const resolvedChatTitle = await options.resolveChatTitle(chatId);
|
|
151
|
+
const chatTitle = resolvedChatTitle || (chatType === "p2p" ? actorName : undefined);
|
|
152
|
+
await options.observeIncomingAuthorization({
|
|
153
|
+
chatId,
|
|
154
|
+
chatType,
|
|
155
|
+
chatTitle,
|
|
156
|
+
userId: actorId,
|
|
157
|
+
username: actorName,
|
|
158
|
+
});
|
|
159
|
+
const authResult = await options.evaluateIncomingAuthorization({
|
|
160
|
+
chatId,
|
|
161
|
+
chatType,
|
|
162
|
+
chatTitle,
|
|
163
|
+
userId: actorId,
|
|
164
|
+
username: actorName,
|
|
165
|
+
});
|
|
166
|
+
if (authResult.decision !== "allow") {
|
|
167
|
+
if (chatType === "p2p") {
|
|
168
|
+
await options.sendAuthorizationText({
|
|
169
|
+
chatId,
|
|
170
|
+
chatType,
|
|
171
|
+
text: options.buildUnauthorizedBlockedText({
|
|
172
|
+
chatId,
|
|
173
|
+
chatType,
|
|
174
|
+
userId: actorId,
|
|
175
|
+
}),
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
return true;
|
|
179
|
+
}
|
|
180
|
+
options.rememberChat(threadId, {
|
|
181
|
+
chatId,
|
|
182
|
+
chatType,
|
|
183
|
+
...(chatTitle ? { chatTitle } : {}),
|
|
184
|
+
});
|
|
185
|
+
await options.sendInboundAckReaction({ messageId });
|
|
186
|
+
await options.runInChat(threadId, async () => {
|
|
187
|
+
if (userMessage.startsWith("/") && incomingAttachments.length === 0) {
|
|
188
|
+
await options.handleCommand({
|
|
189
|
+
chatId,
|
|
190
|
+
chatType,
|
|
191
|
+
messageId,
|
|
192
|
+
command: userMessage,
|
|
193
|
+
});
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
const attachmentLines = incomingAttachments.map((attachment) => {
|
|
197
|
+
const rel = path.relative(options.rootPath, attachment.path);
|
|
198
|
+
return renderChatMessageFileTag({
|
|
199
|
+
type: attachment.type,
|
|
200
|
+
path: rel,
|
|
201
|
+
...(attachment.desc ? { caption: attachment.desc } : {}),
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
if (isFeishuGroupChat(chatType)) {
|
|
205
|
+
userMessage = stripFeishuAtMentions(userMessage);
|
|
206
|
+
}
|
|
207
|
+
const instructions = buildReplyContextInstruction({
|
|
208
|
+
text: buildChatInboundText(await augmentChatInboundInput({
|
|
209
|
+
context: options.context,
|
|
210
|
+
input: {
|
|
211
|
+
channel: "feishu",
|
|
212
|
+
chatId,
|
|
213
|
+
chatType,
|
|
214
|
+
chatKey: threadId,
|
|
215
|
+
messageId,
|
|
216
|
+
rootPath: options.rootPath,
|
|
217
|
+
attachmentText: attachmentLines.length > 0 ? attachmentLines.join("\n") : undefined,
|
|
218
|
+
bodyText: userMessage ? userMessage.trim() : undefined,
|
|
219
|
+
attachments: incomingAttachments.map((attachment) => ({
|
|
220
|
+
channel: "feishu",
|
|
221
|
+
kind: attachment.type,
|
|
222
|
+
path: attachment.path,
|
|
223
|
+
desc: attachment.desc,
|
|
224
|
+
})),
|
|
225
|
+
},
|
|
226
|
+
})) ||
|
|
227
|
+
(attachmentLines.length > 0
|
|
228
|
+
? `${attachmentLines.join("\n")}\n\n请查看以上附件。`
|
|
229
|
+
: ""),
|
|
230
|
+
replyContext,
|
|
231
|
+
});
|
|
232
|
+
if (!instructions)
|
|
233
|
+
return;
|
|
234
|
+
await options.executeAndReply({
|
|
235
|
+
chatId,
|
|
236
|
+
chatType,
|
|
237
|
+
messageId,
|
|
238
|
+
instructions,
|
|
239
|
+
actorId,
|
|
240
|
+
actorName,
|
|
241
|
+
chatTitle,
|
|
242
|
+
extra: buildReplyContextExtra(replyContext),
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
return true;
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=FeishuMessageHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeishuMessageHandler.js","sourceRoot":"","sources":["../../../../../../src/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AASxB,OAAO,EACL,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAgJ5B;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAoC,EACpC,IAAwB;IAExB,IAAI,CAAC;QACH,IAAI,CAAC,IAAI,EAAE,OAAO;YAAE,OAAO;QAC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E,QAAQ;oBACjB,MAAM;oBACN,QAAQ;oBACR,OAAO,EAAE,QAAQ;oBACjB,SAAS;oBACT,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,cAAc,EACZ,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;oBACrE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS;oBACtD,WAAW,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;wBACpD,OAAO,EAAE,QAAiB;wBAC1B,IAAI,EAAE,UAAU,CAAC,IAAI;wBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;wBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;qBACtB,CAAC,CAAC;iBACJ;aACF,CAAC,CACH;gBACD,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC;oBACzB,CAAC,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc;oBAC7C,CAAC,CAAC,EAAE,CAAC;YACT,YAAY;SACb,CAAC,CAAC;QAEH,IAAI,CAAC,YAAY;YAAE,OAAO;QAE1B,MAAM,OAAO,CAAC,eAAe,CAAC;YAC5B,MAAM;YACN,QAAQ;YACR,SAAS;YACT,YAAY;YACZ,OAAO;YACP,SAAS;YACT,SAAS;YACT,KAAK,EAAE,sBAAsB,CAAC,YAAY,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FeishuPlatformClient:飞书平台连接与消息能力封装。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 负责 SDK client / WS client、token 缓存、启动停止与 runtime 状态。
|
|
6
|
+
* - 查询类能力与发送类能力已经拆到旁路模块,当前文件只保留平台宿主职责。
|
|
7
|
+
* - `FeishuBot` 只调用这里暴露的平台能力,不再直接持有底层 Feishu 连接细节。
|
|
8
|
+
*/
|
|
9
|
+
import type { AgentContext } from "../../../../../core/AgentContextTypes.js";
|
|
10
|
+
import type { FeishuConfig, FeishuDownloadedAttachment, FeishuMessageEvent, FeishuMessagePayloadType } from "../../../../../plugin/builtins/chat/channels/feishu/types/FeishuChannel.js";
|
|
11
|
+
import type { ChatChannelTestResult } from "../../../../../plugin/builtins/chat/types/ChannelStatus.js";
|
|
12
|
+
import type { ParsedFeishuAttachmentCommand } from "../../../../../plugin/builtins/chat/types/FeishuAttachment.js";
|
|
13
|
+
import type { FeishuIncomingAttachmentDescriptor } from "../../../../../plugin/builtins/chat/types/FeishuInboundAttachment.js";
|
|
14
|
+
import type { InboundReplyContext } from "../../../../../plugin/builtins/chat/types/ReplyContext.js";
|
|
15
|
+
/**
|
|
16
|
+
* Feishu 平台 client 构造参数。
|
|
17
|
+
*/
|
|
18
|
+
export interface FeishuPlatformClientOptions {
|
|
19
|
+
/**
|
|
20
|
+
* 当前执行上下文。
|
|
21
|
+
*/
|
|
22
|
+
context: AgentContext;
|
|
23
|
+
/**
|
|
24
|
+
* 飞书渠道配置。
|
|
25
|
+
*/
|
|
26
|
+
config: Pick<FeishuConfig, "appId" | "appSecret" | "domain">;
|
|
27
|
+
/**
|
|
28
|
+
* 入站消息回调。
|
|
29
|
+
*/
|
|
30
|
+
onMessage: (data: FeishuMessageEvent) => Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 飞书平台 client。
|
|
34
|
+
*/
|
|
35
|
+
export declare class FeishuPlatformClient {
|
|
36
|
+
private readonly context;
|
|
37
|
+
private readonly rootPath;
|
|
38
|
+
private readonly logger;
|
|
39
|
+
private readonly appId;
|
|
40
|
+
private readonly appSecret;
|
|
41
|
+
private readonly domain?;
|
|
42
|
+
private readonly onMessage;
|
|
43
|
+
private client;
|
|
44
|
+
private wsClient;
|
|
45
|
+
private isRunning;
|
|
46
|
+
private messageCleanupInterval;
|
|
47
|
+
private appAccessToken;
|
|
48
|
+
private appAccessTokenExpiresAtMs;
|
|
49
|
+
private readonly chatTitleByChatId;
|
|
50
|
+
private readonly senderNameBySenderKey;
|
|
51
|
+
private readonly lookupWarnings;
|
|
52
|
+
constructor(options: FeishuPlatformClientOptions);
|
|
53
|
+
/**
|
|
54
|
+
* 获取 runtime 快照。
|
|
55
|
+
*/
|
|
56
|
+
getExecutorStatus(): {
|
|
57
|
+
running: boolean;
|
|
58
|
+
linkState: "connected" | "disconnected" | "unknown";
|
|
59
|
+
statusText: string;
|
|
60
|
+
detail: Record<string, string | number | boolean | null>;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* 连通性测试。
|
|
64
|
+
*/
|
|
65
|
+
testConnection(): Promise<ChatChannelTestResult>;
|
|
66
|
+
/**
|
|
67
|
+
* 启动平台连接。
|
|
68
|
+
*/
|
|
69
|
+
start(processedMessages: Set<string>): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* 停止平台连接。
|
|
72
|
+
*/
|
|
73
|
+
stop(): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* 给入站消息补一个轻量 ack reaction。
|
|
76
|
+
*/
|
|
77
|
+
sendInboundAckReaction(params: {
|
|
78
|
+
messageId?: string;
|
|
79
|
+
}): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* 解析发送者姓名。
|
|
82
|
+
*/
|
|
83
|
+
resolveSenderName(params: {
|
|
84
|
+
senderId?: string;
|
|
85
|
+
idType?: "open_id" | "user_id" | "union_id";
|
|
86
|
+
chatId?: string;
|
|
87
|
+
}): Promise<string | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* 解析群聊/会话标题。
|
|
90
|
+
*/
|
|
91
|
+
resolveChatTitle(chatId: string): Promise<string | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* 查询 reply 的父消息上下文。
|
|
94
|
+
*/
|
|
95
|
+
resolveReplyContext(params: {
|
|
96
|
+
parentMessageId?: string;
|
|
97
|
+
}): Promise<InboundReplyContext | undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* 下载入站附件。
|
|
100
|
+
*/
|
|
101
|
+
downloadIncomingAttachments(params: {
|
|
102
|
+
messageId: string;
|
|
103
|
+
attachments: FeishuIncomingAttachmentDescriptor[];
|
|
104
|
+
}): Promise<FeishuDownloadedAttachment[]>;
|
|
105
|
+
/**
|
|
106
|
+
* 发送附件。
|
|
107
|
+
*/
|
|
108
|
+
sendAttachment(chatId: string, chatType: string, messageId: string | undefined, attachment: ParsedFeishuAttachmentCommand): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* 发送平台消息。
|
|
111
|
+
*/
|
|
112
|
+
sendPlatformMessage(chatId: string, chatType: string, messageId: string | undefined, msgType: FeishuMessagePayloadType, content: Record<string, unknown> | string): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* 获取 tenant_access_token。
|
|
115
|
+
*/
|
|
116
|
+
private getAppAccessToken;
|
|
117
|
+
/**
|
|
118
|
+
* 为 lookup helper 构造依赖集合。
|
|
119
|
+
*/
|
|
120
|
+
private getLookupDeps;
|
|
121
|
+
/**
|
|
122
|
+
* 为 messaging helper 构造依赖集合。
|
|
123
|
+
*/
|
|
124
|
+
private getMessagingDeps;
|
|
125
|
+
/**
|
|
126
|
+
* 归一化 domain。
|
|
127
|
+
*/
|
|
128
|
+
private getNormalizedDomain;
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=FeishuPlatformClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeishuPlatformClient.d.ts","sourceRoot":"","sources":["../../../../../../src/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,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C,EAAE,CAAC;KACnD,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAIzC;;OAEG;IACG,cAAc,CAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAAC,IAAI,CAAC;IAIhB;;OAEG;IACG,mBAAmB,CACvB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GACxC,OAAO,CAAC,IAAI,CAAC;IAWhB;;OAEG;YACW,iBAAiB;IAoD/B;;OAEG;IACH,OAAO,CAAC,aAAa;IAarB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAUxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAG5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeishuPlatformClient.js","sourceRoot":"","sources":["../../../../../../src/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAYhD,OAAO,EACL,iCAAiC,EACjC,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,gCAAgC,GAAG,IAAI,CAAC;AAoB9C;;GAEG;AACH,MAAM,OAAO,oBAAoB;IACd,OAAO,CAAe;IACtB,QAAQ,CAAS;IACjB,MAAM,CAAyB;IAC/B,KAAK,CAAS;IACd,SAAS,CAAS;IAClB,MAAM,CAAU;IAChB,SAAS,CAA8C;IAEhE,MAAM,GAAuB,IAAI,CAAC;IAClC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题、reply 上下文、附件下载都属于“读取型平台能力”。
|
|
6
|
+
* - `FeishuPlatformClient` 只保留运行时状态与 token 管理,这里负责具体 OpenAPI 查询细节。
|
|
7
|
+
*/
|
|
8
|
+
import * as Lark from "@larksuiteoapi/node-sdk";
|
|
9
|
+
import type { JsonObject } from "../../../../../types/common/Json.js";
|
|
10
|
+
import type { FeishuDownloadedAttachment } from "../../../../../plugin/builtins/chat/channels/feishu/types/FeishuChannel.js";
|
|
11
|
+
import type { FeishuIncomingAttachmentDescriptor } from "../../../../../plugin/builtins/chat/types/FeishuInboundAttachment.js";
|
|
12
|
+
import type { InboundReplyContext } from "../../../../../plugin/builtins/chat/types/ReplyContext.js";
|
|
13
|
+
/**
|
|
14
|
+
* Feishu 查询类依赖。
|
|
15
|
+
*/
|
|
16
|
+
export interface FeishuLookupDeps {
|
|
17
|
+
/**
|
|
18
|
+
* 项目根目录。
|
|
19
|
+
*/
|
|
20
|
+
rootPath: string;
|
|
21
|
+
/**
|
|
22
|
+
* 日志器。
|
|
23
|
+
*/
|
|
24
|
+
logger: {
|
|
25
|
+
/**
|
|
26
|
+
* 记录 warn 日志。
|
|
27
|
+
*/
|
|
28
|
+
warn(message: string, data?: JsonObject): void;
|
|
29
|
+
/**
|
|
30
|
+
* 记录 debug 日志。
|
|
31
|
+
*/
|
|
32
|
+
debug(message: string, data?: JsonObject): void;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Feishu SDK client。
|
|
36
|
+
*/
|
|
37
|
+
client: Lark.Client | null;
|
|
38
|
+
/**
|
|
39
|
+
* 获取 tenant_access_token 的回调。
|
|
40
|
+
*/
|
|
41
|
+
getAppAccessToken: () => Promise<string | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* 归一化 domain 的回调。
|
|
44
|
+
*/
|
|
45
|
+
getNormalizedDomain: () => string;
|
|
46
|
+
/**
|
|
47
|
+
* 发送者姓名缓存。
|
|
48
|
+
*/
|
|
49
|
+
senderNameBySenderKey: Map<string, string>;
|
|
50
|
+
/**
|
|
51
|
+
* 群标题缓存。
|
|
52
|
+
*/
|
|
53
|
+
chatTitleByChatId: Map<string, string>;
|
|
54
|
+
/**
|
|
55
|
+
* once warning 去重集合。
|
|
56
|
+
*/
|
|
57
|
+
lookupWarnings: Set<string>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* 解析发送者姓名。
|
|
61
|
+
*/
|
|
62
|
+
export declare function resolveFeishuSenderName(deps: FeishuLookupDeps, params: {
|
|
63
|
+
/**
|
|
64
|
+
* 发送者 ID。
|
|
65
|
+
*/
|
|
66
|
+
senderId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* ID 类型。
|
|
69
|
+
*/
|
|
70
|
+
idType?: "open_id" | "user_id" | "union_id";
|
|
71
|
+
/**
|
|
72
|
+
* 可选 chatId,用于成员列表兜底查询。
|
|
73
|
+
*/
|
|
74
|
+
chatId?: string;
|
|
75
|
+
}): Promise<string | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* 解析群聊/会话标题。
|
|
78
|
+
*/
|
|
79
|
+
export declare function resolveFeishuChatTitle(deps: FeishuLookupDeps, chatId: string): Promise<string | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* 查询 reply 的父消息上下文。
|
|
82
|
+
*/
|
|
83
|
+
export declare function resolveFeishuReplyContext(deps: FeishuLookupDeps, params: {
|
|
84
|
+
/**
|
|
85
|
+
* 父消息 ID。
|
|
86
|
+
*/
|
|
87
|
+
parentMessageId?: string;
|
|
88
|
+
}): Promise<InboundReplyContext | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* 下载入站附件。
|
|
91
|
+
*/
|
|
92
|
+
export declare function downloadFeishuIncomingAttachments(deps: FeishuLookupDeps, params: {
|
|
93
|
+
/**
|
|
94
|
+
* 当前消息 ID。
|
|
95
|
+
*/
|
|
96
|
+
messageId: string;
|
|
97
|
+
/**
|
|
98
|
+
* 待下载附件列表。
|
|
99
|
+
*/
|
|
100
|
+
attachments: FeishuIncomingAttachmentDescriptor[];
|
|
101
|
+
}): Promise<FeishuDownloadedAttachment[]>;
|
|
102
|
+
//# sourceMappingURL=FeishuPlatformLookup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeishuPlatformLookup.d.ts","sourceRoot":"","sources":["../../../../../../src/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAGhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACV,0BAA0B,EAC3B,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yDAAyD,CAAC;AAClH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAIxF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE;QACN;;WAEG;QACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;QAC/C;;WAEG;QACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;KACjD,CAAC;IACF;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,iBAAiB,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,mBAAmB,EAAE,MAAM,MAAM,CAAC;IAClC;;OAEG;IACH,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C;;OAEG;IACH,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC7B;AAwHD;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE;IACN;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACA,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA4G7B;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAiE7B;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE;IACN;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GACA,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAiE1C;AAED;;GAEG;AACH,wBAAsB,iCAAiC,CACrD,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE;IACN;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,kCAAkC,EAAE,CAAC;CACnD,GACA,OAAO,CAAC,0BAA0B,EAAE,CAAC,CA0CvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeishuPlatformLookup.js","sourceRoot":"","sources":["../../../../../../src/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM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AI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;YACzC,MAAM,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAClC,GAAG,CAAC,IAAI,CAAC;gBACP,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,OAAO;gBACb,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACpE,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+CAA+C,EAAE;gBAChE,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,WAAW,EAAE,UAAU,CAAC,WAAW;gBACnC,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;aACrB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feishu 平台发送与附件上传辅助函数。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 发送消息、上传图片/文件、解析本地附件路径属于“写入型平台能力”。
|
|
6
|
+
* - `FeishuPlatformClient` 只保留统一入口和状态,不再直接承载全部细节。
|
|
7
|
+
*/
|
|
8
|
+
import * as Lark from "@larksuiteoapi/node-sdk";
|
|
9
|
+
import type { FeishuMessagePayloadType } from "../../../../../plugin/builtins/chat/channels/feishu/types/FeishuChannel.js";
|
|
10
|
+
import type { ParsedFeishuAttachmentCommand } from "../../../../../plugin/builtins/chat/types/FeishuAttachment.js";
|
|
11
|
+
/**
|
|
12
|
+
* Feishu 发送类依赖。
|
|
13
|
+
*/
|
|
14
|
+
export interface FeishuMessagingDeps {
|
|
15
|
+
/**
|
|
16
|
+
* 项目根目录。
|
|
17
|
+
*/
|
|
18
|
+
rootPath: string;
|
|
19
|
+
/**
|
|
20
|
+
* 日志器。
|
|
21
|
+
*/
|
|
22
|
+
logger: {
|
|
23
|
+
/**
|
|
24
|
+
* 记录 error 日志。
|
|
25
|
+
*/
|
|
26
|
+
error(message: string, data?: Record<string, unknown>): void;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Feishu SDK client。
|
|
30
|
+
*/
|
|
31
|
+
client: Lark.Client | null;
|
|
32
|
+
/**
|
|
33
|
+
* 获取 tenant_access_token 的回调。
|
|
34
|
+
*/
|
|
35
|
+
getAppAccessToken: () => Promise<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* 归一化 domain 的回调。
|
|
38
|
+
*/
|
|
39
|
+
getNormalizedDomain: () => string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 发送平台消息。
|
|
43
|
+
*/
|
|
44
|
+
export declare function sendFeishuPlatformMessage(deps: FeishuMessagingDeps, chatId: string, chatType: string, messageId: string | undefined, msgType: FeishuMessagePayloadType, content: Record<string, unknown> | string): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* 发送附件,并在需要时补发 caption 文本。
|
|
47
|
+
*/
|
|
48
|
+
export declare function sendFeishuAttachment(deps: FeishuMessagingDeps, chatId: string, chatType: string, messageId: string | undefined, attachment: ParsedFeishuAttachmentCommand): Promise<void>;
|
|
49
|
+
//# sourceMappingURL=FeishuPlatformMessaging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeishuPlatformMessaging.d.ts","sourceRoot":"","sources":["../../../../../../src/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAGhD,OAAO,KAAK,EACV,wBAAwB,EACzB,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAEtG;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE;QACN;;WAEG;QACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;KAC9D,CAAC;IACF;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,iBAAiB,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,mBAAmB,EAAE,MAAM,MAAM,CAAC;CACnC;AA4FD;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GACxC,OAAO,CAAC,IAAI,CAAC,CAwCf;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAAC,IAAI,CAAC,CAoBf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeishuPlatformMessaging.js","sourceRoot":"","sources":["../../../../../../src/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAqCxB,KAAK,UAA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,CAAC,CAAC;QAC1D,MAAM,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE;YACzE,QAAQ,EAAE,OAAO;SAClB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACxD,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE;YACzE,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { FeishuIncomingAttachmentDescriptor } from "../../../../../plugin/builtins/chat/types/FeishuInboundAttachment.js";
|
|
2
|
+
/**
|
|
3
|
+
* 解析飞书入站消息。
|
|
4
|
+
*
|
|
5
|
+
* 说明(中文)
|
|
6
|
+
* - 文本消息返回正文。
|
|
7
|
+
* - `post` 消息会降级成“纯文本 + 附件占位”。
|
|
8
|
+
* - 附件消息返回归一化附件描述;正文通常为空。
|
|
9
|
+
* - 不支持的 `message_type` 会返回 `unsupportedType`,由上层决定是否提示用户。
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseFeishuInboundMessage(params: {
|
|
12
|
+
messageType: string;
|
|
13
|
+
content: string;
|
|
14
|
+
}): {
|
|
15
|
+
text: string;
|
|
16
|
+
attachments: FeishuIncomingAttachmentDescriptor[];
|
|
17
|
+
unsupportedType?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 生成飞书入站附件的本地缓存文件名。
|
|
21
|
+
*
|
|
22
|
+
* 关键点(中文)
|
|
23
|
+
* - 优先使用服务端返回的 `Content-Disposition` 文件名。
|
|
24
|
+
* - 若无文件名,则回退到附件原始文件名,再根据 MIME 或类型补扩展名。
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildFeishuInboundCacheFileName(params: {
|
|
27
|
+
attachment: FeishuIncomingAttachmentDescriptor;
|
|
28
|
+
messageId: string;
|
|
29
|
+
headers?: Record<string, unknown>;
|
|
30
|
+
}): string;
|
|
31
|
+
//# sourceMappingURL=InboundAttachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InboundAttachment.d.ts","sourceRoot":"","sources":["../../../../../../src/plugin/builtins/chat/channels/feishu/InboundAttachment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,kCAAkC,EACnC,MAAM,yDAAyD,CAAC;AAsLjE;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG;IACF,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CA2BA;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE;IACtD,UAAU,EAAE,kCAAkC,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,GAAG,MAAM,CAiBT"}
|