@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
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MemoryService:memory service 的类实现。
|
|
3
|
-
*
|
|
4
|
-
* 关键点(中文)
|
|
5
|
-
* - memory service state 现在归属于 service 实例。
|
|
6
|
-
* - agent 持有 MemoryService 实例,从而天然形成 per-agent 状态边界。
|
|
7
|
-
* - 运行态只在实例内部缓存,不再放到模块级 Map。
|
|
8
|
-
*/
|
|
9
|
-
import { BaseService } from "../../../service/builtins/BaseService.js";
|
|
10
|
-
import { flushMemoryAction, getMemoryAction, searchMemoryAction, statusMemoryAction, storeMemoryAction, } from "./Action.js";
|
|
11
|
-
import { createMemoryRuntimeState, isMemoryEnabled, startMemoryRuntime, stopMemoryRuntime, } from "./runtime/Store.js";
|
|
12
|
-
import { buildMemoryServiceSystemText } from "./runtime/SystemProvider.js";
|
|
13
|
-
import { ensureMemoryDirectories } from "./runtime/Writer.js";
|
|
14
|
-
function parsePositiveInteger(value) {
|
|
15
|
-
const text = String(value || "").trim();
|
|
16
|
-
if (!/^\d+$/.test(text)) {
|
|
17
|
-
throw new Error(`Invalid positive integer: ${value}`);
|
|
18
|
-
}
|
|
19
|
-
const num = Number(text);
|
|
20
|
-
if (!Number.isFinite(num) || num < 1) {
|
|
21
|
-
throw new Error(`Invalid positive integer: ${value}`);
|
|
22
|
-
}
|
|
23
|
-
return num;
|
|
24
|
-
}
|
|
25
|
-
function parseNumber(value) {
|
|
26
|
-
const text = String(value || "").trim();
|
|
27
|
-
if (!text) {
|
|
28
|
-
throw new Error("number is required");
|
|
29
|
-
}
|
|
30
|
-
const num = Number(text);
|
|
31
|
-
if (!Number.isFinite(num)) {
|
|
32
|
-
throw new Error(`Invalid number: ${value}`);
|
|
33
|
-
}
|
|
34
|
-
return num;
|
|
35
|
-
}
|
|
36
|
-
function readBodyObject(rawBody) {
|
|
37
|
-
if (!rawBody || typeof rawBody !== "object" || Array.isArray(rawBody)) {
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
40
|
-
return rawBody;
|
|
41
|
-
}
|
|
42
|
-
function readString(body, key) {
|
|
43
|
-
const value = body[key];
|
|
44
|
-
return typeof value === "string" ? value : "";
|
|
45
|
-
}
|
|
46
|
-
function readOptionalString(body, key) {
|
|
47
|
-
const value = body[key];
|
|
48
|
-
return typeof value === "string" ? value : undefined;
|
|
49
|
-
}
|
|
50
|
-
function readOptionalNumber(body, key) {
|
|
51
|
-
const value = body[key];
|
|
52
|
-
return typeof value === "number" ? value : undefined;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Memory service 类实现。
|
|
56
|
-
*/
|
|
57
|
-
export class MemoryService extends BaseService {
|
|
58
|
-
/**
|
|
59
|
-
* service 名称。
|
|
60
|
-
*/
|
|
61
|
-
name = "memory";
|
|
62
|
-
/**
|
|
63
|
-
* 当前实例持有的 memory service state。
|
|
64
|
-
*/
|
|
65
|
-
runtimeState = null;
|
|
66
|
-
/**
|
|
67
|
-
* 当前 service 的 system 文本提供器。
|
|
68
|
-
*/
|
|
69
|
-
async system(context) {
|
|
70
|
-
return await buildMemoryServiceSystemText(context);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* 当前 service 生命周期。
|
|
74
|
-
*/
|
|
75
|
-
lifecycle = {
|
|
76
|
-
start: async (context) => {
|
|
77
|
-
await ensureMemoryDirectories(context.rootPath);
|
|
78
|
-
const state = this.getOrCreateRuntimeState(context);
|
|
79
|
-
await startMemoryRuntime(context, state);
|
|
80
|
-
},
|
|
81
|
-
stop: async () => {
|
|
82
|
-
if (!this.runtimeState)
|
|
83
|
-
return;
|
|
84
|
-
await stopMemoryRuntime(this.runtimeState);
|
|
85
|
-
this.runtimeState = null;
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* 当前 service action 定义表。
|
|
90
|
-
*/
|
|
91
|
-
actions = {
|
|
92
|
-
status: {
|
|
93
|
-
command: {
|
|
94
|
-
description: "查看 memory 状态(backend/files/chunks)",
|
|
95
|
-
mapInput() {
|
|
96
|
-
return {};
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
execute: async (params) => {
|
|
100
|
-
const state = this.getOrCreateRuntimeState(params.context);
|
|
101
|
-
return await statusMemoryAction(params.context, state);
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
search: {
|
|
105
|
-
command: {
|
|
106
|
-
description: "检索记忆片段",
|
|
107
|
-
configure(command) {
|
|
108
|
-
command
|
|
109
|
-
.argument("<query>")
|
|
110
|
-
.option("--max-results <number>", "返回条数上限", parsePositiveInteger)
|
|
111
|
-
.option("--min-score <number>", "最小相关分数", parseNumber);
|
|
112
|
-
},
|
|
113
|
-
mapInput({ args, opts }) {
|
|
114
|
-
const payload = {
|
|
115
|
-
query: String(args[0] || ""),
|
|
116
|
-
};
|
|
117
|
-
if (typeof opts.maxResults === "number") {
|
|
118
|
-
payload.maxResults = opts.maxResults;
|
|
119
|
-
}
|
|
120
|
-
if (typeof opts.minScore === "number") {
|
|
121
|
-
payload.minScore = opts.minScore;
|
|
122
|
-
}
|
|
123
|
-
return payload;
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
execute: async (params) => {
|
|
127
|
-
const body = readBodyObject(params.payload);
|
|
128
|
-
const state = this.getOrCreateRuntimeState(params.context);
|
|
129
|
-
return await searchMemoryAction(params.context, state, {
|
|
130
|
-
query: readString(body, "query"),
|
|
131
|
-
maxResults: readOptionalNumber(body, "maxResults"),
|
|
132
|
-
minScore: readOptionalNumber(body, "minScore"),
|
|
133
|
-
});
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
get: {
|
|
137
|
-
command: {
|
|
138
|
-
description: "读取记忆文件片段",
|
|
139
|
-
configure(command) {
|
|
140
|
-
command
|
|
141
|
-
.argument("<memoryPath>", "记忆文件路径(相对项目根目录)")
|
|
142
|
-
.option("--from <number>", "起始行(1-based)", parsePositiveInteger)
|
|
143
|
-
.option("--lines <number>", "读取行数", parsePositiveInteger);
|
|
144
|
-
},
|
|
145
|
-
mapInput({ args, opts }) {
|
|
146
|
-
const payload = {
|
|
147
|
-
path: String(args[0] || ""),
|
|
148
|
-
};
|
|
149
|
-
if (typeof opts.from === "number") {
|
|
150
|
-
payload.from = opts.from;
|
|
151
|
-
}
|
|
152
|
-
if (typeof opts.lines === "number") {
|
|
153
|
-
payload.lines = opts.lines;
|
|
154
|
-
}
|
|
155
|
-
return payload;
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
execute: async (params) => {
|
|
159
|
-
const body = readBodyObject(params.payload);
|
|
160
|
-
return await getMemoryAction(params.context, {
|
|
161
|
-
path: readString(body, "path"),
|
|
162
|
-
from: readOptionalNumber(body, "from"),
|
|
163
|
-
lines: readOptionalNumber(body, "lines"),
|
|
164
|
-
});
|
|
165
|
-
},
|
|
166
|
-
},
|
|
167
|
-
store: {
|
|
168
|
-
command: {
|
|
169
|
-
description: "显式写入 memory(longterm/daily/working)",
|
|
170
|
-
configure(command) {
|
|
171
|
-
command
|
|
172
|
-
.requiredOption("--content <text>", "写入内容")
|
|
173
|
-
.option("--target <target>", "写入层(longterm|daily|working)")
|
|
174
|
-
.option("--session-id <sessionId>", "working 目标必填");
|
|
175
|
-
},
|
|
176
|
-
mapInput({ opts }) {
|
|
177
|
-
const payload = {
|
|
178
|
-
content: String(opts.content || ""),
|
|
179
|
-
};
|
|
180
|
-
if (typeof opts.target === "string") {
|
|
181
|
-
payload.target = String(opts.target).trim();
|
|
182
|
-
}
|
|
183
|
-
if (typeof opts.sessionId === "string") {
|
|
184
|
-
payload.sessionId = String(opts.sessionId).trim();
|
|
185
|
-
}
|
|
186
|
-
return payload;
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
execute: async (params) => {
|
|
190
|
-
const body = readBodyObject(params.payload);
|
|
191
|
-
const target = readOptionalString(body, "target");
|
|
192
|
-
const state = this.getOrCreateRuntimeState(params.context);
|
|
193
|
-
return await storeMemoryAction(params.context, state, {
|
|
194
|
-
content: readString(body, "content"),
|
|
195
|
-
target: target === "longterm" || target === "daily" || target === "working"
|
|
196
|
-
? target
|
|
197
|
-
: undefined,
|
|
198
|
-
sessionId: readOptionalString(body, "sessionId"),
|
|
199
|
-
});
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
flush: {
|
|
203
|
-
command: {
|
|
204
|
-
description: "将当前会话最近消息刷写到 daily memory",
|
|
205
|
-
configure(command) {
|
|
206
|
-
command
|
|
207
|
-
.requiredOption("--session-id <sessionId>", "会话 ID")
|
|
208
|
-
.option("--max-messages <number>", "提取消息窗口", parsePositiveInteger);
|
|
209
|
-
},
|
|
210
|
-
mapInput({ opts }) {
|
|
211
|
-
const payload = {
|
|
212
|
-
sessionId: String(opts.sessionId || ""),
|
|
213
|
-
};
|
|
214
|
-
if (typeof opts.maxMessages === "number") {
|
|
215
|
-
payload.maxMessages = opts.maxMessages;
|
|
216
|
-
}
|
|
217
|
-
return payload;
|
|
218
|
-
},
|
|
219
|
-
},
|
|
220
|
-
execute: async (params) => {
|
|
221
|
-
const body = readBodyObject(params.payload);
|
|
222
|
-
const state = this.getOrCreateRuntimeState(params.context);
|
|
223
|
-
return await flushMemoryAction(params.context, state, {
|
|
224
|
-
sessionId: readString(body, "sessionId"),
|
|
225
|
-
maxMessages: readOptionalNumber(body, "maxMessages"),
|
|
226
|
-
});
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* 获取或创建当前实例绑定的 memory service state。
|
|
232
|
-
*/
|
|
233
|
-
getOrCreateRuntimeState(context) {
|
|
234
|
-
if (!this.runtimeState) {
|
|
235
|
-
this.runtimeState = createMemoryRuntimeState(context);
|
|
236
|
-
return this.runtimeState;
|
|
237
|
-
}
|
|
238
|
-
this.runtimeState.enabled = isMemoryEnabled(context);
|
|
239
|
-
return this.runtimeState;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
//# sourceMappingURL=MemoryService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MemoryService.js","sourceRoot":"","sources":["../../../../src/service/builtins/memory/MemoryService.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAElB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,SAAS,oBAAoB,CAAC,KAAa;IACzC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,6BAA6B,KAAK,EAAE,CAAC,CAAC;IACxD,CAAC;IACD,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IACzB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,KAAK,CAAC,6BAA6B,KAAK,EAAE,CAAC,CAAC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AO,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Memory Flush(手动刷写)。
|
|
3
|
-
*
|
|
4
|
-
* 关键点(中文)
|
|
5
|
-
* - 首版使用确定性规则,不依赖额外模型调用。
|
|
6
|
-
* - 仅提取最近消息的可读文本并落盘到 daily 记忆。
|
|
7
|
-
*/
|
|
8
|
-
import type { AgentContext } from "../../../../core/AgentContextTypes.js";
|
|
9
|
-
import type { MemoryFlushPayload, MemoryFlushResponse } from "../../../../service/builtins/memory/types/Memory.js";
|
|
10
|
-
import type { MemoryRuntimeState } from "./Store.js";
|
|
11
|
-
/**
|
|
12
|
-
* 把当前会话最近消息刷写到 daily 记忆。
|
|
13
|
-
*/
|
|
14
|
-
export declare function flushMemory(context: AgentContext, state: MemoryRuntimeState, payload: MemoryFlushPayload): Promise<MemoryFlushResponse>;
|
|
15
|
-
//# sourceMappingURL=Flush.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Flush.d.ts","sourceRoot":"","sources":["../../../../../src/service/builtins/memory/runtime/Flush.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AA0BrD;;GAEG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CAkC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Flush.js","sourceRoot":"","sources":["../../../../../src/service/builtins/memory/runtime/Flush.ts"],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CAAC,MAAM;QAC1B,YAAY,EAAE,KAAK,CAAC,YAAY;KACjC,CAAC;AACJ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Memory Search 运行时。
|
|
3
|
-
*
|
|
4
|
-
* 关键点(中文)
|
|
5
|
-
* - 直接扫描 Markdown 文件,不依赖额外索引库。
|
|
6
|
-
* - 统一收敛检索、分块、打分与状态统计逻辑。
|
|
7
|
-
*/
|
|
8
|
-
import type { AgentContext } from "../../../../core/AgentContextTypes.js";
|
|
9
|
-
import type { MemorySearchPayload, MemorySearchResponse, MemoryStatusResponse } from "../../../../service/builtins/memory/types/Memory.js";
|
|
10
|
-
import { type MemoryRuntimeState } from "./Store.js";
|
|
11
|
-
/**
|
|
12
|
-
* 收集当前 memory Markdown 状态。
|
|
13
|
-
*/
|
|
14
|
-
export declare function collectMemoryStatus(context: AgentContext, state: MemoryRuntimeState): Promise<MemoryStatusResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* 执行检索。
|
|
17
|
-
*/
|
|
18
|
-
export declare function searchMemory(context: AgentContext, state: MemoryRuntimeState, payload: MemorySearchPayload): Promise<MemorySearchResponse>;
|
|
19
|
-
//# sourceMappingURL=Search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../../../src/service/builtins/memory/runtime/Search.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EAGpB,oBAAoB,EACrB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,YAAY,CAAC;AA8JpB;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,oBAAoB,CAAC,CA8B/B;AAED;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAyG/B"}
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Memory Search 运行时。
|
|
3
|
-
*
|
|
4
|
-
* 关键点(中文)
|
|
5
|
-
* - 直接扫描 Markdown 文件,不依赖额外索引库。
|
|
6
|
-
* - 统一收敛检索、分块、打分与状态统计逻辑。
|
|
7
|
-
*/
|
|
8
|
-
import fs from "node:fs/promises";
|
|
9
|
-
import { listMemorySourceFiles, MEMORY_DEFAULTS, } from "./Store.js";
|
|
10
|
-
const SNIPPET_MAX_CHARS = 700;
|
|
11
|
-
const CHUNK_MAX_CHARS = 1600;
|
|
12
|
-
const CHUNK_OVERLAP_CHARS = 240;
|
|
13
|
-
function clampNumber(value, min, max) {
|
|
14
|
-
if (!Number.isFinite(value))
|
|
15
|
-
return min;
|
|
16
|
-
return Math.max(min, Math.min(max, value));
|
|
17
|
-
}
|
|
18
|
-
function normalizeText(input) {
|
|
19
|
-
return String(input || "").replace(/\r\n/g, "\n");
|
|
20
|
-
}
|
|
21
|
-
function truncateText(value, maxChars) {
|
|
22
|
-
if (value.length <= maxChars) {
|
|
23
|
-
return value;
|
|
24
|
-
}
|
|
25
|
-
return value.slice(0, maxChars);
|
|
26
|
-
}
|
|
27
|
-
function tokenizeQuery(raw) {
|
|
28
|
-
return String(raw || "")
|
|
29
|
-
.toLowerCase()
|
|
30
|
-
.replace(/[^\p{L}\p{N}_-]+/gu, " ")
|
|
31
|
-
.split(/\s+/)
|
|
32
|
-
.map((item) => item.trim())
|
|
33
|
-
.filter(Boolean)
|
|
34
|
-
.slice(0, 12);
|
|
35
|
-
}
|
|
36
|
-
function countTokenOccurrences(text, token) {
|
|
37
|
-
if (!token)
|
|
38
|
-
return 0;
|
|
39
|
-
let hits = 0;
|
|
40
|
-
let start = 0;
|
|
41
|
-
while (start < text.length) {
|
|
42
|
-
const index = text.indexOf(token, start);
|
|
43
|
-
if (index < 0)
|
|
44
|
-
break;
|
|
45
|
-
hits += 1;
|
|
46
|
-
start = index + token.length;
|
|
47
|
-
}
|
|
48
|
-
return hits;
|
|
49
|
-
}
|
|
50
|
-
function buildSnippetScore(text, tokens) {
|
|
51
|
-
if (tokens.length === 0)
|
|
52
|
-
return 0;
|
|
53
|
-
const normalized = normalizeText(text).toLowerCase();
|
|
54
|
-
let matchedTokens = 0;
|
|
55
|
-
let totalHits = 0;
|
|
56
|
-
for (const token of tokens) {
|
|
57
|
-
const hits = countTokenOccurrences(normalized, token);
|
|
58
|
-
if (hits > 0) {
|
|
59
|
-
matchedTokens += 1;
|
|
60
|
-
totalHits += Math.min(hits, 4);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (matchedTokens === 0) {
|
|
64
|
-
return 0;
|
|
65
|
-
}
|
|
66
|
-
const coverageScore = matchedTokens / tokens.length;
|
|
67
|
-
const densityScore = Math.min(totalHits, tokens.length * 3) / (tokens.length * 3);
|
|
68
|
-
return Number((coverageScore * 0.75 + densityScore * 0.25).toFixed(4));
|
|
69
|
-
}
|
|
70
|
-
function chunkMarkdown(content) {
|
|
71
|
-
const lines = normalizeText(content).split("\n");
|
|
72
|
-
if (lines.length === 0) {
|
|
73
|
-
return [];
|
|
74
|
-
}
|
|
75
|
-
const out = [];
|
|
76
|
-
let bucket = [];
|
|
77
|
-
let chars = 0;
|
|
78
|
-
const flush = () => {
|
|
79
|
-
if (bucket.length === 0)
|
|
80
|
-
return;
|
|
81
|
-
const startLine = bucket[0]?.lineNo ?? 1;
|
|
82
|
-
const endLine = bucket[bucket.length - 1]?.lineNo ?? startLine;
|
|
83
|
-
const text = bucket.map((item) => item.line).join("\n").trim();
|
|
84
|
-
if (!text)
|
|
85
|
-
return;
|
|
86
|
-
out.push({
|
|
87
|
-
startLine,
|
|
88
|
-
endLine,
|
|
89
|
-
text,
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
const carryOverlap = () => {
|
|
93
|
-
if (bucket.length === 0 || CHUNK_OVERLAP_CHARS <= 0) {
|
|
94
|
-
bucket = [];
|
|
95
|
-
chars = 0;
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
let acc = 0;
|
|
99
|
-
const next = [];
|
|
100
|
-
for (let i = bucket.length - 1; i >= 0; i -= 1) {
|
|
101
|
-
const row = bucket[i];
|
|
102
|
-
if (!row)
|
|
103
|
-
continue;
|
|
104
|
-
acc += row.line.length + 1;
|
|
105
|
-
next.unshift(row);
|
|
106
|
-
if (acc >= CHUNK_OVERLAP_CHARS)
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
bucket = next;
|
|
110
|
-
chars = bucket.reduce((sum, item) => sum + item.line.length + 1, 0);
|
|
111
|
-
};
|
|
112
|
-
for (let i = 0; i < lines.length; i += 1) {
|
|
113
|
-
const line = lines[i] ?? "";
|
|
114
|
-
const rowSize = line.length + 1;
|
|
115
|
-
if (bucket.length > 0 && chars + rowSize > CHUNK_MAX_CHARS) {
|
|
116
|
-
flush();
|
|
117
|
-
carryOverlap();
|
|
118
|
-
}
|
|
119
|
-
bucket.push({ line, lineNo: i + 1 });
|
|
120
|
-
chars += rowSize;
|
|
121
|
-
}
|
|
122
|
-
flush();
|
|
123
|
-
return out;
|
|
124
|
-
}
|
|
125
|
-
async function readMemoryChunks(context) {
|
|
126
|
-
const files = await listMemorySourceFiles(context.rootPath);
|
|
127
|
-
const out = [];
|
|
128
|
-
for (const file of files) {
|
|
129
|
-
const content = String(await fs.readFile(file.absPath, "utf-8"));
|
|
130
|
-
for (const chunk of chunkMarkdown(content)) {
|
|
131
|
-
out.push({
|
|
132
|
-
path: file.relPath,
|
|
133
|
-
source: file.source,
|
|
134
|
-
startLine: chunk.startLine,
|
|
135
|
-
endLine: chunk.endLine,
|
|
136
|
-
text: chunk.text,
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return out;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* 收集当前 memory Markdown 状态。
|
|
144
|
-
*/
|
|
145
|
-
export async function collectMemoryStatus(context, state) {
|
|
146
|
-
const files = await listMemorySourceFiles(context.rootPath);
|
|
147
|
-
const sourceCounts = [
|
|
148
|
-
{ source: "longterm", files: 0, chunks: 0 },
|
|
149
|
-
{ source: "daily", files: 0, chunks: 0 },
|
|
150
|
-
{ source: "working", files: 0, chunks: 0 },
|
|
151
|
-
];
|
|
152
|
-
let totalChunks = 0;
|
|
153
|
-
for (const file of files) {
|
|
154
|
-
const bucket = sourceCounts.find((item) => item.source === file.source);
|
|
155
|
-
if (bucket) {
|
|
156
|
-
bucket.files += 1;
|
|
157
|
-
}
|
|
158
|
-
const content = String(await fs.readFile(file.absPath, "utf-8"));
|
|
159
|
-
const chunks = chunkMarkdown(content).length;
|
|
160
|
-
totalChunks += chunks;
|
|
161
|
-
if (bucket) {
|
|
162
|
-
bucket.chunks += chunks;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return {
|
|
166
|
-
enabled: state.enabled,
|
|
167
|
-
backend: "builtin",
|
|
168
|
-
mode: "scan",
|
|
169
|
-
files: files.length,
|
|
170
|
-
chunks: totalChunks,
|
|
171
|
-
sourceCounts,
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* 执行检索。
|
|
176
|
-
*/
|
|
177
|
-
export async function searchMemory(context, state, payload) {
|
|
178
|
-
if (!state.enabled) {
|
|
179
|
-
return {
|
|
180
|
-
backend: "builtin",
|
|
181
|
-
mode: "scan",
|
|
182
|
-
results: [],
|
|
183
|
-
disabled: true,
|
|
184
|
-
error: "memory service disabled",
|
|
185
|
-
action: "Set context.memory.enabled=true or remove the config override.",
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
const query = String(payload.query || "").trim();
|
|
189
|
-
if (!query) {
|
|
190
|
-
return {
|
|
191
|
-
backend: "builtin",
|
|
192
|
-
mode: "scan",
|
|
193
|
-
results: [],
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
const tokens = tokenizeQuery(query);
|
|
197
|
-
if (tokens.length === 0) {
|
|
198
|
-
return {
|
|
199
|
-
backend: "builtin",
|
|
200
|
-
mode: "scan",
|
|
201
|
-
results: [],
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
const maxResults = Math.floor(clampNumber(Number(payload.maxResults ?? MEMORY_DEFAULTS.maxResults), 1, 20));
|
|
205
|
-
const minScore = clampNumber(Number(payload.minScore ?? MEMORY_DEFAULTS.minScore), 0, 1);
|
|
206
|
-
try {
|
|
207
|
-
const results = (await readMemoryChunks(context))
|
|
208
|
-
.map((chunk) => {
|
|
209
|
-
const score = buildSnippetScore(chunk.text, tokens);
|
|
210
|
-
const citation = chunk.startLine === chunk.endLine
|
|
211
|
-
? `${chunk.path}#L${chunk.startLine}`
|
|
212
|
-
: `${chunk.path}#L${chunk.startLine}-L${chunk.endLine}`;
|
|
213
|
-
return {
|
|
214
|
-
path: chunk.path,
|
|
215
|
-
source: chunk.source,
|
|
216
|
-
startLine: chunk.startLine,
|
|
217
|
-
endLine: chunk.endLine,
|
|
218
|
-
score,
|
|
219
|
-
snippet: truncateText(chunk.text, SNIPPET_MAX_CHARS),
|
|
220
|
-
citation,
|
|
221
|
-
};
|
|
222
|
-
})
|
|
223
|
-
.filter((item) => item.score >= minScore)
|
|
224
|
-
.sort((left, right) => {
|
|
225
|
-
if (right.score !== left.score) {
|
|
226
|
-
return right.score - left.score;
|
|
227
|
-
}
|
|
228
|
-
if (left.path !== right.path) {
|
|
229
|
-
return left.path.localeCompare(right.path);
|
|
230
|
-
}
|
|
231
|
-
return left.startLine - right.startLine;
|
|
232
|
-
})
|
|
233
|
-
.slice(0, maxResults * 3);
|
|
234
|
-
let remain = Math.max(0, MEMORY_DEFAULTS.maxInjectedChars);
|
|
235
|
-
const clamped = [];
|
|
236
|
-
for (const item of results) {
|
|
237
|
-
if (remain <= 0 || clamped.length >= maxResults)
|
|
238
|
-
break;
|
|
239
|
-
if (item.snippet.length <= remain) {
|
|
240
|
-
clamped.push(item);
|
|
241
|
-
remain -= item.snippet.length;
|
|
242
|
-
continue;
|
|
243
|
-
}
|
|
244
|
-
clamped.push({
|
|
245
|
-
...item,
|
|
246
|
-
snippet: item.snippet.slice(0, remain),
|
|
247
|
-
});
|
|
248
|
-
break;
|
|
249
|
-
}
|
|
250
|
-
return {
|
|
251
|
-
backend: "builtin",
|
|
252
|
-
mode: "scan",
|
|
253
|
-
results: clamped,
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
catch (error) {
|
|
257
|
-
const message = String(error);
|
|
258
|
-
return {
|
|
259
|
-
backend: "builtin",
|
|
260
|
-
mode: "scan",
|
|
261
|
-
results: [],
|
|
262
|
-
disabled: true,
|
|
263
|
-
error: message,
|
|
264
|
-
action: "Check the Markdown memory files under `.downcity/memory/`.",
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
//# sourceMappingURL=Search.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../../../src/service/builtins/memory/runtime/Search.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,kBAAkB,CAAC;AASlC,OAAO,EACL,qBAAqB,EACrB,eAAe,GAEhB,MAAM,YAAY,CAAC;AAEpB,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAC9B,MAAM,eAAe,GAAG,IAAI,CAAC;AAC7B,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEhC,SAAS,WAAW,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW;IAC1D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC;IACxC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,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
|
-
* Memory Store(文件与运行态管理)。
|
|
3
|
-
*
|
|
4
|
-
* 关键点(中文)
|
|
5
|
-
* - 管理 Memory service 的最小运行时状态。
|
|
6
|
-
* - 统一管理 memory 源文件枚举。
|
|
7
|
-
* - 不承载检索算法,检索在 Search 模块。
|
|
8
|
-
* - 新版本不再使用 module-global state,状态归属 MemoryService 实例。
|
|
9
|
-
*/
|
|
10
|
-
import type { AgentContext } from "../../../../core/AgentContextTypes.js";
|
|
11
|
-
import type { MemoryDefaults, MemorySourceType } from "../../../../service/builtins/memory/types/Memory.js";
|
|
12
|
-
export declare const MEMORY_DEFAULTS: MemoryDefaults;
|
|
13
|
-
export type MemorySourceFile = {
|
|
14
|
-
/**
|
|
15
|
-
* 来源分类。
|
|
16
|
-
*/
|
|
17
|
-
source: MemorySourceType;
|
|
18
|
-
/**
|
|
19
|
-
* 绝对路径。
|
|
20
|
-
*/
|
|
21
|
-
absPath: string;
|
|
22
|
-
/**
|
|
23
|
-
* 相对项目根目录路径。
|
|
24
|
-
*/
|
|
25
|
-
relPath: string;
|
|
26
|
-
};
|
|
27
|
-
export type MemoryRuntimeState = {
|
|
28
|
-
/**
|
|
29
|
-
* 项目根目录。
|
|
30
|
-
*/
|
|
31
|
-
rootPath: string;
|
|
32
|
-
/**
|
|
33
|
-
* Memory 是否启用。
|
|
34
|
-
*/
|
|
35
|
-
enabled: boolean;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* 枚举 memory 源文件。
|
|
39
|
-
*/
|
|
40
|
-
export declare function listMemorySourceFiles(rootPath: string): Promise<MemorySourceFile[]>;
|
|
41
|
-
/**
|
|
42
|
-
* 判断 Memory 功能是否启用(默认 true)。
|
|
43
|
-
*/
|
|
44
|
-
export declare function isMemoryEnabled(context: AgentContext): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* 创建一个新的 memory service state。
|
|
47
|
-
*
|
|
48
|
-
* 关键点(中文)
|
|
49
|
-
* - 每个 MemoryService 实例都持有自己的 state。
|
|
50
|
-
* - 不再按 rootPath 落到模块级 Map,避免 service 实例之间共享状态。
|
|
51
|
-
*/
|
|
52
|
-
export declare function createMemoryRuntimeState(context: AgentContext): MemoryRuntimeState;
|
|
53
|
-
/**
|
|
54
|
-
* 启动 memory 运行时。
|
|
55
|
-
*
|
|
56
|
-
* 关键点(中文)
|
|
57
|
-
* - Markdown-only 方案下不再维护后台索引同步。
|
|
58
|
-
* - 这里只负责根据配置刷新 enabled 状态。
|
|
59
|
-
*/
|
|
60
|
-
export declare function startMemoryRuntime(context: AgentContext, state: MemoryRuntimeState): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
* 停止 memory 运行时。
|
|
63
|
-
*/
|
|
64
|
-
export declare function stopMemoryRuntime(_state: MemoryRuntimeState): Promise<void>;
|
|
65
|
-
//# sourceMappingURL=Store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../../../../src/service/builtins/memory/runtime/Store.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,2CAA2C,CAAC;AAEnD,eAAO,MAAM,eAAe,EAAE,cAI7B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IACzB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AA4CF;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAgD7B;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAG9D;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,YAAY,GACpB,kBAAkB,CAKpB;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,IAAI,CAAC,CAMf;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,IAAI,CAAC,CAEf"}
|