@downcity/agent 1.1.1 → 1.1.5
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 +226 -0
- package/bin/agent/AgentContext.d.ts +2 -2
- package/bin/agent/AgentContext.d.ts.map +1 -1
- package/bin/agent/AgentContext.js +4 -4
- package/bin/agent/AgentContext.js.map +1 -1
- package/bin/agent/AgentContextTypes.d.ts +345 -0
- package/bin/agent/AgentContextTypes.d.ts.map +1 -0
- package/bin/agent/AgentContextTypes.js +10 -0
- package/bin/agent/AgentContextTypes.js.map +1 -0
- package/bin/agent/AgentRuntime.js +7 -7
- package/bin/agent/AgentRuntime.js.map +1 -1
- package/bin/agent/AgentRuntimeState.d.ts +2 -2
- package/bin/agent/AgentRuntimeState.d.ts.map +1 -1
- package/bin/agent/AgentRuntimeTypes.d.ts +81 -0
- package/bin/agent/AgentRuntimeTypes.d.ts.map +1 -0
- package/bin/agent/AgentRuntimeTypes.js +10 -0
- package/bin/agent/AgentRuntimeTypes.js.map +1 -0
- package/bin/agent/project/AgentInitializer.d.ts +4 -4
- package/bin/agent/project/AgentInitializer.d.ts.map +1 -1
- package/bin/agent/project/AgentInitializer.js +9 -9
- package/bin/agent/project/AgentInitializer.js.map +1 -1
- package/bin/config/Config.d.ts +2 -2
- package/bin/config/Config.js +7 -7
- package/bin/config/Config.js.map +1 -1
- package/bin/host/daemon/Api.d.ts +60 -0
- package/bin/host/daemon/Api.d.ts.map +1 -0
- package/bin/host/daemon/Api.js.map +1 -0
- package/bin/host/daemon/Client.d.ts.map +1 -0
- package/bin/host/daemon/Client.js +158 -0
- package/bin/host/daemon/Client.js.map +1 -0
- package/bin/host/daemon/Manager.d.ts +92 -0
- package/bin/host/daemon/Manager.d.ts.map +1 -0
- package/bin/host/daemon/Manager.js +287 -0
- package/bin/host/daemon/Manager.js.map +1 -0
- package/bin/host/daemon/ProjectSetup.d.ts.map +1 -0
- package/bin/host/daemon/ProjectSetup.js +101 -0
- package/bin/host/daemon/ProjectSetup.js.map +1 -0
- package/bin/host/rpc/Client.d.ts +13 -0
- package/bin/host/rpc/Client.d.ts.map +1 -0
- package/bin/host/rpc/Client.js.map +1 -0
- package/bin/host/rpc/Paths.d.ts.map +1 -0
- package/bin/host/rpc/Paths.js +36 -0
- package/bin/host/rpc/Paths.js.map +1 -0
- package/bin/host/rpc/Server.d.ts +18 -0
- package/bin/host/rpc/Server.d.ts.map +1 -0
- package/bin/host/rpc/Server.js +307 -0
- package/bin/host/rpc/Server.js.map +1 -0
- package/bin/host/rpc/Transport.d.ts +21 -0
- package/bin/host/rpc/Transport.d.ts.map +1 -0
- package/bin/host/rpc/Transport.js +30 -0
- package/bin/host/rpc/Transport.js.map +1 -0
- package/bin/host/runtime/AgentHostRuntime.d.ts +10 -0
- package/bin/host/runtime/AgentHostRuntime.d.ts.map +1 -0
- package/bin/host/runtime/AgentHostRuntime.js +47 -0
- package/bin/host/runtime/AgentHostRuntime.js.map +1 -0
- package/bin/host/runtime/CityPaths.d.ts +53 -0
- package/bin/host/runtime/CityPaths.d.ts.map +1 -0
- package/bin/host/runtime/CityPaths.js +78 -0
- package/bin/host/runtime/CityPaths.js.map +1 -0
- package/bin/host/runtime/CityRegistry.d.ts +51 -0
- package/bin/host/runtime/CityRegistry.d.ts.map +1 -0
- package/bin/host/runtime/CityRegistry.js +217 -0
- package/bin/host/runtime/CityRegistry.js.map +1 -0
- package/bin/host/runtime/CityRuntime.d.ts +21 -0
- package/bin/host/runtime/CityRuntime.d.ts.map +1 -0
- package/bin/host/runtime/CityRuntime.js +45 -0
- package/bin/host/runtime/CityRuntime.js.map +1 -0
- package/bin/host/runtime/PluginRuntime.d.ts +24 -0
- package/bin/host/runtime/PluginRuntime.d.ts.map +1 -0
- package/bin/host/runtime/PluginRuntime.js.map +1 -0
- package/bin/host/runtime/ProcessSweep.d.ts +76 -0
- package/bin/host/runtime/ProcessSweep.d.ts.map +1 -0
- package/bin/host/runtime/ProcessSweep.js +188 -0
- package/bin/host/runtime/ProcessSweep.js.map +1 -0
- package/bin/host/sdk/Agent.d.ts +55 -0
- package/bin/host/sdk/Agent.d.ts.map +1 -0
- package/bin/host/sdk/Agent.js +288 -0
- package/bin/host/sdk/Agent.js.map +1 -0
- package/bin/host/sdk/AgentSdkTypes.d.ts +247 -0
- package/bin/host/sdk/AgentSdkTypes.d.ts.map +1 -0
- package/bin/host/sdk/AgentSdkTypes.js +10 -0
- package/bin/host/sdk/AgentSdkTypes.js.map +1 -0
- package/bin/host/sdk/AsyncQueue.d.ts +26 -0
- package/bin/host/sdk/AsyncQueue.d.ts.map +1 -0
- package/bin/host/sdk/AsyncQueue.js +75 -0
- package/bin/host/sdk/AsyncQueue.js.map +1 -0
- package/bin/host/sdk/HttpServer.d.ts +40 -0
- package/bin/host/sdk/HttpServer.d.ts.map +1 -0
- package/bin/host/sdk/HttpServer.js +181 -0
- package/bin/host/sdk/HttpServer.js.map +1 -0
- package/bin/host/sdk/Paths.d.ts +48 -0
- package/bin/host/sdk/Paths.d.ts.map +1 -0
- package/bin/host/sdk/Paths.js +69 -0
- package/bin/host/sdk/Paths.js.map +1 -0
- package/bin/host/sdk/RemoteAgent.d.ts +54 -0
- package/bin/host/sdk/RemoteAgent.d.ts.map +1 -0
- package/bin/host/sdk/RemoteAgent.js +153 -0
- package/bin/host/sdk/RemoteAgent.js.map +1 -0
- package/bin/host/sdk/RpcServer.d.ts +31 -0
- package/bin/host/sdk/RpcServer.d.ts.map +1 -0
- package/bin/host/sdk/RpcServer.js +193 -0
- package/bin/host/sdk/RpcServer.js.map +1 -0
- package/bin/host/sdk/SdkSessionSystemComposer.d.ts +34 -0
- package/bin/host/sdk/SdkSessionSystemComposer.d.ts.map +1 -0
- package/bin/host/sdk/SdkSessionSystemComposer.js +54 -0
- package/bin/host/sdk/SdkSessionSystemComposer.js.map +1 -0
- package/bin/host/sdk/Session.d.ts +130 -0
- package/bin/host/sdk/Session.d.ts.map +1 -0
- package/bin/host/sdk/Session.js +451 -0
- package/bin/host/sdk/Session.js.map +1 -0
- package/bin/host/sdk/SessionMetadata.d.ts +51 -0
- package/bin/host/sdk/SessionMetadata.d.ts.map +1 -0
- package/bin/host/sdk/SessionMetadata.js +124 -0
- package/bin/host/sdk/SessionMetadata.js.map +1 -0
- package/bin/host/sdk/StreamEvents.d.ts +14 -0
- package/bin/host/sdk/StreamEvents.d.ts.map +1 -0
- package/bin/host/sdk/StreamEvents.js +89 -0
- package/bin/host/sdk/StreamEvents.js.map +1 -0
- package/bin/http/Server.js +2 -2
- package/bin/http/Server.js.map +1 -1
- package/bin/http/auth/AuthStore.d.ts +1 -1
- package/bin/http/auth/AuthStore.d.ts.map +1 -1
- package/bin/http/auth/AuthStore.js +5 -5
- package/bin/http/auth/AuthStore.js.map +1 -1
- package/bin/http/auth/RoutePolicy.d.ts +2 -2
- package/bin/http/auth/RoutePolicy.d.ts.map +1 -1
- package/bin/http/auth/RoutePolicy.js +6 -6
- package/bin/http/auth/RoutePolicy.js.map +1 -1
- package/bin/http/control/AuthControlService.d.ts +30 -0
- package/bin/http/control/AuthControlService.d.ts.map +1 -0
- package/bin/http/control/AuthControlService.js +120 -0
- package/bin/http/control/AuthControlService.js.map +1 -0
- package/bin/http/control/CommonHelpers.d.ts +36 -0
- package/bin/http/control/CommonHelpers.d.ts.map +1 -0
- package/bin/http/control/CommonHelpers.js +63 -0
- package/bin/http/control/CommonHelpers.js.map +1 -0
- package/bin/http/control/ControlApiRoutes.d.ts +14 -0
- package/bin/http/control/ControlApiRoutes.d.ts.map +1 -0
- package/bin/http/control/ControlApiRoutes.js +27 -0
- package/bin/http/control/ControlApiRoutes.js.map +1 -0
- package/bin/http/control/ControlAuthorizationRoutes.d.ts +17 -0
- package/bin/http/control/ControlAuthorizationRoutes.d.ts.map +1 -0
- package/bin/http/control/ControlAuthorizationRoutes.js +85 -0
- package/bin/http/control/ControlAuthorizationRoutes.js.map +1 -0
- package/bin/http/control/ControlRouter.d.ts +19 -0
- package/bin/http/control/ControlRouter.d.ts.map +1 -0
- package/bin/http/control/ControlRouter.js +26 -0
- package/bin/http/control/ControlRouter.js.map +1 -0
- package/bin/http/control/ExecuteBySession.d.ts +39 -0
- package/bin/http/control/ExecuteBySession.d.ts.map +1 -0
- package/bin/http/control/ExecuteBySession.js +128 -0
- package/bin/http/control/ExecuteBySession.js.map +1 -0
- package/bin/http/control/ExecuteInput.d.ts +18 -0
- package/bin/http/control/ExecuteInput.d.ts.map +1 -0
- package/bin/http/control/ExecuteInput.js +201 -0
- package/bin/http/control/ExecuteInput.js.map +1 -0
- package/bin/http/control/Helpers.d.ts +13 -0
- package/bin/http/control/Helpers.d.ts.map +1 -0
- package/bin/http/control/Helpers.js +13 -0
- package/bin/http/control/Helpers.js.map +1 -0
- package/bin/http/control/MessageTimeline.d.ts +22 -0
- package/bin/http/control/MessageTimeline.d.ts.map +1 -0
- package/bin/http/control/MessageTimeline.js +226 -0
- package/bin/http/control/MessageTimeline.js.map +1 -0
- package/bin/http/control/ModelRoutes.d.ts +13 -0
- package/bin/http/control/ModelRoutes.d.ts.map +1 -0
- package/bin/http/control/ModelRoutes.js +92 -0
- package/bin/http/control/ModelRoutes.js.map +1 -0
- package/bin/http/control/OverviewRoutes.d.ts +13 -0
- package/bin/http/control/OverviewRoutes.d.ts.map +1 -0
- package/bin/http/control/OverviewRoutes.js +93 -0
- package/bin/http/control/OverviewRoutes.js.map +1 -0
- package/bin/http/control/SessionRoutes.d.ts +14 -0
- package/bin/http/control/SessionRoutes.d.ts.map +1 -0
- package/bin/http/control/SessionRoutes.js +333 -0
- package/bin/http/control/SessionRoutes.js.map +1 -0
- package/bin/http/control/SessionSummaryStore.d.ts +19 -0
- package/bin/http/control/SessionSummaryStore.d.ts.map +1 -0
- package/bin/http/control/SessionSummaryStore.js +62 -0
- package/bin/http/control/SessionSummaryStore.js.map +1 -0
- package/bin/http/control/TaskRoutes.d.ts +13 -0
- package/bin/http/control/TaskRoutes.d.ts.map +1 -0
- package/bin/http/control/TaskRoutes.js +335 -0
- package/bin/http/control/TaskRoutes.js.map +1 -0
- package/bin/http/control/TaskStore.d.ts +33 -0
- package/bin/http/control/TaskStore.d.ts.map +1 -0
- package/bin/http/control/TaskStore.js +157 -0
- package/bin/http/control/TaskStore.js.map +1 -0
- package/bin/http/execute/execute.js +1 -1
- package/bin/http/execute/execute.js.map +1 -1
- package/bin/http/services/services.js +1 -1
- package/bin/http/services/services.js.map +1 -1
- package/bin/index.d.ts +85 -6
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +82 -5
- package/bin/index.js.map +1 -1
- package/bin/model/CreateModel.d.ts +4 -4
- package/bin/model/CreateModel.d.ts.map +1 -1
- package/bin/model/CreateModel.js +23 -8
- package/bin/model/CreateModel.js.map +1 -1
- package/bin/plugin/HookRegistry.d.ts +1 -1
- package/bin/plugin/HookRegistry.d.ts.map +1 -1
- package/bin/plugin/HttpRoutes.d.ts +1 -1
- package/bin/plugin/HttpRoutes.d.ts.map +1 -1
- package/bin/plugin/Lifecycle.d.ts +1 -1
- package/bin/plugin/Lifecycle.js +4 -4
- package/bin/plugin/Lifecycle.js.map +1 -1
- package/bin/plugin/LocalExecution.js +1 -1
- package/bin/plugin/LocalExecution.js.map +1 -1
- package/bin/plugin/PluginManager.js +1 -1
- package/bin/plugin/PluginManager.js.map +1 -1
- package/bin/plugin/PluginRegistry.d.ts +1 -1
- package/bin/plugin/PluginRegistry.d.ts.map +1 -1
- package/bin/plugin/ProjectConfigStore.d.ts +1 -1
- package/bin/plugin/ProjectConfigStore.js +1 -1
- package/bin/plugins/asr/Plugin.js +1 -1
- package/bin/plugins/asr/Plugin.js.map +1 -1
- package/bin/plugins/auth/Plugin.js +1 -1
- package/bin/plugins/auth/Plugin.js.map +1 -1
- package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts +1 -1
- package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts.map +1 -1
- package/bin/plugins/auth/runtime/AuthorizationConfig.js +3 -3
- package/bin/plugins/auth/runtime/AuthorizationConfig.js.map +1 -1
- package/bin/plugins/auth/runtime/AuthorizationStore.d.ts +2 -2
- package/bin/plugins/auth/runtime/AuthorizationStore.d.ts.map +1 -1
- package/bin/plugins/tts/runtime/Synthesizer.js +1 -1
- package/bin/plugins/tts/runtime/Synthesizer.js.map +1 -1
- package/bin/plugins/voice/Plugin.js +1 -1
- package/bin/plugins/voice/Plugin.js.map +1 -1
- package/bin/plugins/workboard/runtime/Collector.d.ts +1 -1
- package/bin/plugins/workboard/runtime/Collector.d.ts.map +1 -1
- package/bin/plugins/workboard/runtime/Collector.js +4 -4
- package/bin/plugins/workboard/runtime/Collector.js.map +1 -1
- package/bin/plugins/workboard/runtime/Normalizer.d.ts +5 -5
- package/bin/plugins/workboard/runtime/Normalizer.d.ts.map +1 -1
- package/bin/plugins/workboard/runtime/Normalizer.js.map +1 -1
- package/bin/plugins/workboard/runtime/Store.d.ts +1 -1
- package/bin/plugins/workboard/runtime/Store.d.ts.map +1 -1
- package/bin/sandbox/SandboxConfigResolver.d.ts +1 -1
- package/bin/sandbox/SandboxConfigResolver.d.ts.map +1 -1
- package/bin/sandbox/SandboxRunner.d.ts +1 -1
- package/bin/sandbox/SandboxRunner.d.ts.map +1 -1
- package/bin/service/builtins/BaseService.d.ts +70 -0
- package/bin/service/builtins/BaseService.d.ts.map +1 -0
- package/bin/service/builtins/BaseService.js +67 -0
- package/bin/service/builtins/BaseService.js.map +1 -0
- package/bin/service/builtins/chat/Action.d.ts +125 -0
- package/bin/service/builtins/chat/Action.d.ts.map +1 -0
- package/bin/service/builtins/chat/Action.js +376 -0
- package/bin/service/builtins/chat/Action.js.map +1 -0
- package/bin/service/builtins/chat/ChatService.d.ts +89 -0
- package/bin/service/builtins/chat/ChatService.d.ts.map +1 -0
- package/bin/service/builtins/chat/ChatService.js +212 -0
- package/bin/service/builtins/chat/ChatService.js.map +1 -0
- package/bin/service/builtins/chat/ChatServiceTypes.d.ts +159 -0
- package/bin/service/builtins/chat/ChatServiceTypes.d.ts.map +1 -0
- package/bin/service/builtins/chat/ChatServiceTypes.js +10 -0
- package/bin/service/builtins/chat/ChatServiceTypes.js.map +1 -0
- package/bin/service/builtins/chat/Index.d.ts.map +1 -0
- package/bin/service/builtins/chat/Index.js.map +1 -0
- package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts +60 -0
- package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts.map +1 -0
- package/bin/service/builtins/chat/accounts/ChannelAccountService.js +285 -0
- package/bin/service/builtins/chat/accounts/ChannelAccountService.js.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts +201 -0
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannel.js +294 -0
- package/bin/service/builtins/chat/channels/BaseChatChannel.js.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts +73 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.js +238 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.js.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts +189 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.js +141 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.js.map +1 -0
- package/bin/service/builtins/chat/channels/BotInfoProvider.d.ts +18 -0
- package/bin/service/builtins/chat/channels/BotInfoProvider.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/BotInfoProvider.js +32 -0
- package/bin/service/builtins/chat/channels/BotInfoProvider.js.map +1 -0
- package/bin/service/builtins/chat/channels/Configuration.d.ts +27 -0
- package/bin/service/builtins/chat/channels/Configuration.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/Configuration.js.map +1 -0
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.d.ts +18 -0
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.js +31 -0
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/BotInfo.d.ts +20 -0
- package/bin/service/builtins/chat/channels/feishu/BotInfo.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/BotInfo.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Configuration.d.ts +17 -0
- package/bin/service/builtins/chat/channels/feishu/Configuration.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Configuration.js +59 -0
- package/bin/service/builtins/chat/channels/feishu/Configuration.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts +116 -0
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Feishu.js +458 -0
- package/bin/service/builtins/chat/channels/feishu/Feishu.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts +21 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +130 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts +102 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts +49 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/InboundAttachment.d.ts +31 -0
- package/bin/service/builtins/chat/channels/feishu/InboundAttachment.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/InboundAttachment.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/PostMessage.d.ts +48 -0
- package/bin/service/builtins/chat/channels/feishu/PostMessage.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/PostMessage.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/ReplyContext.d.ts +18 -0
- package/bin/service/builtins/chat/channels/feishu/ReplyContext.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/ReplyContext.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Shared.d.ts +21 -0
- package/bin/service/builtins/chat/channels/feishu/Shared.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Shared.js +69 -0
- package/bin/service/builtins/chat/channels/feishu/Shared.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/BotInfo.d.ts +19 -0
- package/bin/service/builtins/chat/channels/qq/BotInfo.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/BotInfo.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/Configuration.d.ts +17 -0
- package/bin/service/builtins/chat/channels/qq/Configuration.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/Configuration.js +59 -0
- package/bin/service/builtins/chat/channels/qq/Configuration.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQ.d.ts +92 -0
- package/bin/service/builtins/chat/channels/qq/QQ.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQ.js +485 -0
- package/bin/service/builtins/chat/channels/qq/QQ.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts +22 -0
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts +119 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts +179 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js +540 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts +84 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts +39 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts +47 -0
- package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQInbound.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts +48 -0
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQSendSupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQSendSupport.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts +102 -0
- package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQSupport.js +172 -0
- package/bin/service/builtins/chat/channels/qq/QQSupport.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/VoiceInput.d.ts +64 -0
- package/bin/service/builtins/chat/channels/qq/VoiceInput.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/VoiceInput.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts +99 -0
- package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/ApiClient.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Bot.d.ts +97 -0
- package/bin/service/builtins/chat/channels/telegram/Bot.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Bot.js +504 -0
- package/bin/service/builtins/chat/channels/telegram/Bot.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/BotInfo.d.ts +19 -0
- package/bin/service/builtins/chat/channels/telegram/BotInfo.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/BotInfo.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Configuration.d.ts +17 -0
- package/bin/service/builtins/chat/channels/telegram/Configuration.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Configuration.js +59 -0
- package/bin/service/builtins/chat/channels/telegram/Configuration.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts +42 -0
- package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Handlers.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/ReplyContext.d.ts +14 -0
- package/bin/service/builtins/chat/channels/telegram/ReplyContext.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/ReplyContext.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Shared.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Shared.js +171 -0
- package/bin/service/builtins/chat/channels/telegram/Shared.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/StateStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/StateStore.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramInbound.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramInbound.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts +161 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts +78 -0
- package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChannelContextStore.js +336 -0
- package/bin/service/builtins/chat/runtime/ChannelContextStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts +145 -0
- package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatActionExecution.js +287 -0
- package/bin/service/builtins/chat/runtime/ChatActionExecution.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts +63 -0
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatActionInput.js +458 -0
- package/bin/service/builtins/chat/runtime/ChatActionInput.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts +122 -0
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelActions.js +237 -0
- package/bin/service/builtins/chat/runtime/ChatChannelActions.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts +61 -0
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.js +260 -0
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts +45 -0
- package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelCore.js +114 -0
- package/bin/service/builtins/chat/runtime/ChatChannelCore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelFacade.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelFacade.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts +28 -0
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.js +132 -0
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts +72 -0
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.js +219 -0
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts +52 -0
- package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatIngressStore.js +65 -0
- package/bin/service/builtins/chat/runtime/ChatIngressStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatMessageMarkup.d.ts +54 -0
- package/bin/service/builtins/chat/runtime/ChatMessageMarkup.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatMessageMarkup.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts +68 -0
- package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatMetaStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueue.d.ts +40 -0
- package/bin/service/builtins/chat/runtime/ChatQueue.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueue.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts +31 -0
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts +55 -0
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.js +98 -0
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts +85 -0
- package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts +88 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts +36 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSendMetadata.d.ts +20 -0
- package/bin/service/builtins/chat/runtime/ChatSendMetadata.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSendMetadata.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSendRegistry.d.ts +27 -0
- package/bin/service/builtins/chat/runtime/ChatSendRegistry.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSendRegistry.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts +17 -0
- package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatServiceActions.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts +22 -0
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.js +87 -0
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSession.d.ts +73 -0
- package/bin/service/builtins/chat/runtime/ChatSession.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSession.js +78 -0
- package/bin/service/builtins/chat/runtime/ChatSession.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.d.ts +29 -0
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.js +76 -0
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.d.ts +45 -0
- package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.js +60 -0
- package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts +30 -0
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.js +9 -0
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatkeySend.d.ts +67 -0
- package/bin/service/builtins/chat/runtime/ChatkeySend.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatkeySend.js.map +1 -0
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.d.ts +22 -0
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.js +133 -0
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.js.map +1 -0
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts +24 -0
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.js +28 -0
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.js.map +1 -0
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts +21 -0
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/InboundAugment.js +50 -0
- package/bin/service/builtins/chat/runtime/InboundAugment.js.map +1 -0
- package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts +43 -0
- package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/PluginDispatch.js +57 -0
- package/bin/service/builtins/chat/runtime/PluginDispatch.js.map +1 -0
- package/bin/service/builtins/chat/runtime/PluginPoints.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/PluginPoints.js.map +1 -0
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts +20 -0
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts +29 -0
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts +36 -0
- package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ReplyDispatch.js +51 -0
- package/bin/service/builtins/chat/runtime/ReplyDispatch.js.map +1 -0
- package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts +26 -0
- package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/SystemPrompt.js +70 -0
- package/bin/service/builtins/chat/runtime/SystemPrompt.js.map +1 -0
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts +24 -0
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.js.map +1 -0
- package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts +34 -0
- package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/UserVisibleText.js.map +1 -0
- package/bin/service/builtins/chat/types/BotInfo.d.ts +97 -0
- package/bin/service/builtins/chat/types/BotInfo.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/BotInfo.js.map +1 -0
- package/bin/service/builtins/chat/types/ChannelAccount.d.ts +226 -0
- package/bin/service/builtins/chat/types/ChannelAccount.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChannelAccount.js +9 -0
- package/bin/service/builtins/chat/types/ChannelAccount.js.map +1 -0
- package/bin/service/builtins/chat/types/ChannelConfiguration.d.ts +146 -0
- package/bin/service/builtins/chat/types/ChannelConfiguration.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChannelConfiguration.js.map +1 -0
- package/bin/service/builtins/chat/types/ChannelContext.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChannelContext.js.map +1 -0
- package/bin/service/builtins/chat/types/ChannelStatus.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChannelStatus.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatCommand.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatCommand.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatDispatcher.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatDispatcher.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatHistory.d.ts +36 -0
- package/bin/service/builtins/chat/types/ChatHistory.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatHistory.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatMessageMarkup.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatMessageMarkup.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatMeta.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatMeta.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatQueue.d.ts +44 -0
- package/bin/service/builtins/chat/types/ChatQueue.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatQueue.js.map +1 -0
- package/bin/service/builtins/chat/types/DirectDispatch.d.ts +115 -0
- package/bin/service/builtins/chat/types/DirectDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/DirectDispatch.js.map +1 -0
- package/bin/service/builtins/chat/types/FeishuAttachment.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/FeishuAttachment.js.map +1 -0
- package/bin/service/builtins/chat/types/FeishuInboundAttachment.d.ts +114 -0
- package/bin/service/builtins/chat/types/FeishuInboundAttachment.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/FeishuInboundAttachment.js.map +1 -0
- package/bin/service/builtins/chat/types/FeishuPost.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/FeishuPost.js.map +1 -0
- package/bin/service/builtins/chat/types/QqInboundDedupe.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/QqInboundDedupe.js.map +1 -0
- package/bin/service/builtins/chat/types/QqVoice.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/QqVoice.js.map +1 -0
- package/bin/service/builtins/chat/types/ReplyContext.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ReplyContext.js.map +1 -0
- package/bin/service/builtins/contact/Action.d.ts.map +1 -0
- package/bin/service/builtins/contact/Action.js.map +1 -0
- package/bin/service/builtins/contact/ContactService.d.ts +39 -0
- package/bin/service/builtins/contact/ContactService.d.ts.map +1 -0
- package/bin/service/builtins/contact/ContactService.js +683 -0
- package/bin/service/builtins/contact/ContactService.js.map +1 -0
- package/bin/service/builtins/contact/Index.d.ts.map +1 -0
- package/bin/service/builtins/contact/Index.js.map +1 -0
- package/bin/service/builtins/contact/runtime/ApproveCallback.d.ts +23 -0
- package/bin/service/builtins/contact/runtime/ApproveCallback.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ApproveCallback.js.map +1 -0
- package/bin/service/builtins/contact/runtime/ChatRuntime.d.ts +27 -0
- package/bin/service/builtins/contact/runtime/ChatRuntime.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ChatRuntime.js.map +1 -0
- package/bin/service/builtins/contact/runtime/ContactStore.d.ts +49 -0
- package/bin/service/builtins/contact/runtime/ContactStore.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ContactStore.js.map +1 -0
- package/bin/service/builtins/contact/runtime/EndpointNotice.d.ts +39 -0
- package/bin/service/builtins/contact/runtime/EndpointNotice.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/EndpointNotice.js.map +1 -0
- package/bin/service/builtins/contact/runtime/EndpointResolver.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/EndpointResolver.js.map +1 -0
- package/bin/service/builtins/contact/runtime/InboxStore.d.ts +33 -0
- package/bin/service/builtins/contact/runtime/InboxStore.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/InboxStore.js.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkApproval.d.ts +20 -0
- package/bin/service/builtins/contact/runtime/LinkApproval.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkApproval.js.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkCode.d.ts +21 -0
- package/bin/service/builtins/contact/runtime/LinkCode.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkCode.js.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkStore.d.ts +17 -0
- package/bin/service/builtins/contact/runtime/LinkStore.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkStore.js.map +1 -0
- package/bin/service/builtins/contact/runtime/Paths.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/Paths.js.map +1 -0
- package/bin/service/builtins/contact/runtime/RemoteClient.d.ts +46 -0
- package/bin/service/builtins/contact/runtime/RemoteClient.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/RemoteClient.js.map +1 -0
- package/bin/service/builtins/contact/runtime/ShareBundle.d.ts +65 -0
- package/bin/service/builtins/contact/runtime/ShareBundle.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ShareBundle.js.map +1 -0
- package/bin/service/builtins/contact/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/SystemProvider.js.map +1 -0
- package/bin/service/builtins/contact/runtime/Token.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/Token.js.map +1 -0
- package/bin/service/builtins/contact/types/Contact.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/Contact.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactApproval.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactApproval.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactChat.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactChat.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactCheck.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactCheck.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactCommand.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactCommand.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactEndpoint.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactEndpoint.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactLink.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactLink.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactShare.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactShare.js.map +1 -0
- package/bin/service/builtins/memory/Action.d.ts +41 -0
- package/bin/service/builtins/memory/Action.d.ts.map +1 -0
- package/bin/service/builtins/memory/Action.js.map +1 -0
- package/bin/service/builtins/memory/Index.d.ts.map +1 -0
- package/bin/service/builtins/memory/Index.js.map +1 -0
- package/bin/service/builtins/memory/MemoryService.d.ts +45 -0
- package/bin/service/builtins/memory/MemoryService.d.ts.map +1 -0
- package/bin/service/builtins/memory/MemoryService.js +299 -0
- package/bin/service/builtins/memory/MemoryService.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Flush.d.ts +15 -0
- package/bin/service/builtins/memory/runtime/Flush.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Flush.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Indexer.d.ts +71 -0
- package/bin/service/builtins/memory/runtime/Indexer.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Indexer.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Search.d.ts +15 -0
- package/bin/service/builtins/memory/runtime/Search.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Search.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Store.d.ts +106 -0
- package/bin/service/builtins/memory/runtime/Store.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Store.js.map +1 -0
- package/bin/service/builtins/memory/runtime/SystemProvider.d.ts +22 -0
- package/bin/service/builtins/memory/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/SystemProvider.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Writer.d.ts +23 -0
- package/bin/service/builtins/memory/runtime/Writer.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Writer.js.map +1 -0
- package/bin/service/builtins/memory/types/Memory.d.ts +318 -0
- package/bin/service/builtins/memory/types/Memory.d.ts.map +1 -0
- package/bin/service/builtins/memory/types/Memory.js.map +1 -0
- package/bin/service/builtins/shell/Index.d.ts.map +1 -0
- package/bin/service/builtins/shell/Index.js.map +1 -0
- package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts +91 -0
- package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts.map +1 -0
- package/bin/service/builtins/shell/ShellRuntimeTypes.js +10 -0
- package/bin/service/builtins/shell/ShellRuntimeTypes.js.map +1 -0
- package/bin/service/builtins/shell/ShellService.d.ts +65 -0
- package/bin/service/builtins/shell/ShellService.d.ts.map +1 -0
- package/bin/service/builtins/shell/ShellService.js +138 -0
- package/bin/service/builtins/shell/ShellService.js.map +1 -0
- package/bin/service/builtins/shell/runtime/Paths.d.ts.map +1 -0
- package/bin/service/builtins/shell/runtime/Paths.js.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts +49 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js +463 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts +107 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js +452 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +1 -0
- package/bin/service/builtins/shell/types/ShellService.d.ts.map +1 -0
- package/bin/service/builtins/shell/types/ShellService.js.map +1 -0
- package/bin/service/builtins/task/Action.d.ts +36 -0
- package/bin/service/builtins/task/Action.d.ts.map +1 -0
- package/bin/service/builtins/task/Action.js.map +1 -0
- package/bin/service/builtins/task/Index.d.ts.map +1 -0
- package/bin/service/builtins/task/Index.js.map +1 -0
- package/bin/service/builtins/task/Scheduler.d.ts +17 -0
- package/bin/service/builtins/task/Scheduler.d.ts.map +1 -0
- package/bin/service/builtins/task/Scheduler.js +231 -0
- package/bin/service/builtins/task/Scheduler.js.map +1 -0
- package/bin/service/builtins/task/TaskService.d.ts +57 -0
- package/bin/service/builtins/task/TaskService.d.ts.map +1 -0
- package/bin/service/builtins/task/TaskService.js +126 -0
- package/bin/service/builtins/task/TaskService.js.map +1 -0
- package/bin/service/builtins/task/runtime/CronRuntime.d.ts +34 -0
- package/bin/service/builtins/task/runtime/CronRuntime.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/CronRuntime.js +59 -0
- package/bin/service/builtins/task/runtime/CronRuntime.js.map +1 -0
- package/bin/service/builtins/task/runtime/CronTrigger.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/CronTrigger.js.map +1 -0
- package/bin/service/builtins/task/runtime/Frontmatter.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Frontmatter.js.map +1 -0
- package/bin/service/builtins/task/runtime/Model.d.ts +73 -0
- package/bin/service/builtins/task/runtime/Model.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Model.js.map +1 -0
- package/bin/service/builtins/task/runtime/Paths.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Paths.js.map +1 -0
- package/bin/service/builtins/task/runtime/Runner.d.ts +43 -0
- package/bin/service/builtins/task/runtime/Runner.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Runner.js.map +1 -0
- package/bin/service/builtins/task/runtime/Store.d.ts +89 -0
- package/bin/service/builtins/task/runtime/Store.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Store.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts +160 -0
- package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskActionExecution.js +192 -0
- package/bin/service/builtins/task/runtime/TaskActionExecution.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskActionInput.d.ts +48 -0
- package/bin/service/builtins/task/runtime/TaskActionInput.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskActionInput.js +357 -0
- package/bin/service/builtins/task/runtime/TaskActionInput.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunArtifacts.d.ts +189 -0
- package/bin/service/builtins/task/runtime/TaskRunArtifacts.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunArtifacts.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.d.ts +22 -0
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerProgress.d.ts +35 -0
- package/bin/service/builtins/task/runtime/TaskRunnerProgress.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerProgress.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts +80 -0
- package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerRound.js +272 -0
- package/bin/service/builtins/task/runtime/TaskRunnerRound.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts +45 -0
- package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerSession.js +138 -0
- package/bin/service/builtins/task/runtime/TaskRunnerSession.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts +186 -0
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.js +9 -0
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts +16 -0
- package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskServiceActions.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskServiceSystem.js.map +1 -0
- package/bin/service/builtins/task/types/Cron.d.ts.map +1 -0
- package/bin/service/builtins/task/types/Cron.js.map +1 -0
- package/bin/service/builtins/task/types/Task.d.ts.map +1 -0
- package/bin/service/builtins/task/types/Task.js.map +1 -0
- package/bin/service/builtins/task/types/TaskCommand.d.ts.map +1 -0
- package/bin/service/builtins/task/types/TaskCommand.js.map +1 -0
- package/bin/service/core/Manager.d.ts +13 -0
- package/bin/service/core/Manager.d.ts.map +1 -0
- package/bin/service/core/Manager.js.map +1 -0
- package/bin/service/core/ServiceActionApi.d.ts +15 -0
- package/bin/service/core/ServiceActionApi.d.ts.map +1 -0
- package/bin/service/core/ServiceActionApi.js +234 -0
- package/bin/service/core/ServiceActionApi.js.map +1 -0
- package/bin/service/core/ServiceActionRunner.d.ts +44 -0
- package/bin/service/core/ServiceActionRunner.d.ts.map +1 -0
- package/bin/service/core/ServiceActionRunner.js +211 -0
- package/bin/service/core/ServiceActionRunner.js.map +1 -0
- package/bin/service/core/ServiceClassRegistry.d.ts +40 -0
- package/bin/service/core/ServiceClassRegistry.d.ts.map +1 -0
- package/bin/service/core/ServiceClassRegistry.js +64 -0
- package/bin/service/core/ServiceClassRegistry.js.map +1 -0
- package/bin/service/core/ServiceManager.d.ts +9 -0
- package/bin/service/core/ServiceManager.d.ts.map +1 -0
- package/bin/service/core/ServiceManager.js.map +1 -0
- package/bin/service/core/ServiceStateController.d.ts +79 -0
- package/bin/service/core/ServiceStateController.d.ts.map +1 -0
- package/bin/service/core/ServiceStateController.js +245 -0
- package/bin/service/core/ServiceStateController.js.map +1 -0
- package/bin/service/core/ServiceSystemProviders.d.ts +27 -0
- package/bin/service/core/ServiceSystemProviders.d.ts.map +1 -0
- package/bin/service/core/ServiceSystemProviders.js +34 -0
- package/bin/service/core/ServiceSystemProviders.js.map +1 -0
- package/bin/service/core/Services.d.ts +18 -0
- package/bin/service/core/Services.d.ts.map +1 -0
- package/bin/service/core/Services.js +23 -0
- package/bin/service/core/Services.js.map +1 -0
- package/bin/service/schedule/Executor.d.ts +1 -1
- package/bin/service/schedule/Executor.d.ts.map +1 -1
- package/bin/service/schedule/Executor.js +1 -1
- package/bin/service/schedule/Executor.js.map +1 -1
- package/bin/service/schedule/Runtime.d.ts +1 -1
- package/bin/service/schedule/Runtime.d.ts.map +1 -1
- package/bin/session/Session.d.ts +1 -0
- package/bin/session/Session.d.ts.map +1 -1
- package/bin/session/Session.js +3 -0
- package/bin/session/Session.js.map +1 -1
- package/bin/session/SessionRunScope.d.ts +9 -1
- package/bin/session/SessionRunScope.d.ts.map +1 -1
- package/bin/session/SessionRunScope.js.map +1 -1
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +1 -0
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts.map +1 -1
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js +30 -0
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +1 -1
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts +1 -1
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts.map +1 -1
- package/bin/session/composer/system/default/SystemDomain.d.ts +1 -1
- package/bin/session/composer/system/default/SystemDomain.d.ts.map +1 -1
- package/bin/session/composer/system/default/SystemDomain.js +1 -1
- package/bin/session/composer/system/default/SystemDomain.js.map +1 -1
- package/bin/session/executors/local/LocalSessionCore.d.ts.map +1 -1
- package/bin/session/executors/local/LocalSessionCore.js +37 -5
- package/bin/session/executors/local/LocalSessionCore.js.map +1 -1
- package/bin/session/messages/SessionAttachmentMapper.js +1 -1
- package/bin/session/messages/SessionAttachmentMapper.js.map +1 -1
- package/bin/session/tools/shell/ShellToolBridge.d.ts +2 -2
- package/bin/session/tools/shell/ShellToolBridge.d.ts.map +1 -1
- package/bin/session/tools/shell/ShellToolDefinition.d.ts +2 -2
- package/bin/session/tools/shell/ShellToolSchemas.d.ts +3 -3
- package/bin/shared/constants/DowncitySchema.js +1 -1
- package/bin/shared/constants/DowncitySchema.js.map +1 -1
- package/bin/shared/types/AgentProject.d.ts +2 -2
- package/bin/shared/types/AgentProject.js +1 -1
- package/bin/shared/types/AuthControl.d.ts +30 -0
- package/bin/shared/types/AuthControl.d.ts.map +1 -0
- package/bin/shared/types/AuthControl.js +9 -0
- package/bin/shared/types/AuthControl.js.map +1 -0
- package/bin/shared/types/AuthPlugin.d.ts +1 -1
- package/bin/shared/types/AuthPlugin.d.ts.map +1 -1
- package/bin/shared/types/AuthPlugin.js +1 -1
- package/bin/shared/types/AuthPlugin.js.map +1 -1
- package/bin/shared/types/ChatPlugin.d.ts +1 -1
- package/bin/shared/types/ChatPlugin.d.ts.map +1 -1
- package/bin/shared/types/ChatPromptContext.d.ts +1 -1
- package/bin/shared/types/ChatPromptContext.d.ts.map +1 -1
- package/bin/shared/types/ChatRuntime.d.ts +3 -3
- package/bin/shared/types/ChatRuntime.d.ts.map +1 -1
- package/bin/shared/types/ChatService.d.ts +2 -2
- package/bin/shared/types/ChatService.d.ts.map +1 -1
- package/bin/shared/types/ControlRoutes.d.ts +28 -0
- package/bin/shared/types/ControlRoutes.d.ts.map +1 -0
- package/bin/shared/types/ControlRoutes.js +9 -0
- package/bin/shared/types/ControlRoutes.js.map +1 -0
- package/bin/shared/types/ControlSessionExecute.d.ts +85 -0
- package/bin/shared/types/ControlSessionExecute.d.ts.map +1 -0
- package/bin/shared/types/ControlSessionExecute.js +9 -0
- package/bin/shared/types/ControlSessionExecute.js.map +1 -0
- package/bin/shared/types/ControlViewData.d.ts +320 -0
- package/bin/shared/types/ControlViewData.d.ts.map +1 -0
- package/bin/shared/types/ControlViewData.js +9 -0
- package/bin/shared/types/ControlViewData.js.map +1 -0
- package/bin/shared/types/DowncityConfig.d.ts +6 -6
- package/bin/shared/types/ExecutionBinding.d.ts +2 -2
- package/bin/shared/types/ExecutionBinding.js +1 -1
- package/bin/shared/types/InlineInstant.d.ts +7 -7
- package/bin/shared/types/InlineInstant.d.ts.map +1 -1
- package/bin/shared/types/LlmConfig.d.ts +1 -1
- package/bin/shared/types/LlmConfig.js +1 -1
- package/bin/shared/types/LocalRpc.d.ts +1 -1
- package/bin/shared/types/LocalRpc.d.ts.map +1 -1
- package/bin/shared/types/ModelBinding.d.ts +2 -2
- package/bin/shared/types/Platform.d.ts +370 -0
- package/bin/shared/types/Platform.d.ts.map +1 -0
- package/bin/shared/types/Platform.js +10 -0
- package/bin/shared/types/Platform.js.map +1 -0
- package/bin/shared/types/PlatformGateway.d.ts +174 -0
- package/bin/shared/types/PlatformGateway.d.ts.map +1 -0
- package/bin/shared/types/PlatformGateway.js +9 -0
- package/bin/shared/types/PlatformGateway.js.map +1 -0
- package/bin/shared/types/Plugin.d.ts +2 -2
- package/bin/shared/types/Plugin.d.ts.map +1 -1
- package/bin/shared/types/PluginApi.d.ts +1 -1
- package/bin/shared/types/Service.d.ts +1 -1
- package/bin/shared/types/Service.d.ts.map +1 -1
- package/bin/shared/types/Services.d.ts +1 -1
- package/bin/shared/types/Store.d.ts +24 -3
- package/bin/shared/types/Store.d.ts.map +1 -1
- package/bin/shared/types/TaskService.d.ts +1 -1
- package/bin/shared/types/TaskService.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts +8 -8
- package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreChannelAccountRepository.js +1 -1
- package/bin/shared/utils/store/StoreChannelAccountRepository.js.map +1 -1
- package/bin/shared/utils/store/StoreEnvRepository.d.ts +21 -21
- package/bin/shared/utils/store/StoreEnvRepository.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreEnvRepository.js +1 -1
- package/bin/shared/utils/store/StoreEnvRepository.js.map +1 -1
- package/bin/shared/utils/store/StoreModelRepository.d.ts +19 -15
- package/bin/shared/utils/store/StoreModelRepository.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreModelRepository.js +13 -2
- package/bin/shared/utils/store/StoreModelRepository.js.map +1 -1
- package/bin/shared/utils/store/StoreSchema.d.ts +5 -5
- package/bin/shared/utils/store/StoreSchema.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreSchema.js +7 -7
- package/bin/shared/utils/store/StoreSchema.js.map +1 -1
- package/bin/shared/utils/store/StoreSecureSettings.d.ts +9 -9
- package/bin/shared/utils/store/StoreSecureSettings.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreSecureSettings.js +8 -8
- package/bin/shared/utils/store/StoreSecureSettings.js.map +1 -1
- package/bin/shared/utils/store/StoreShared.d.ts +6 -6
- package/bin/shared/utils/store/StoreShared.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreShared.js +2 -2
- package/bin/shared/utils/store/crypto.js +2 -2
- package/bin/shared/utils/store/crypto.js.map +1 -1
- package/bin/shared/utils/store/index.d.ts +13 -9
- package/bin/shared/utils/store/index.d.ts.map +1 -1
- package/bin/shared/utils/store/index.js +24 -17
- package/bin/shared/utils/store/index.js.map +1 -1
- package/bin/shared/utils/store/schema.d.ts +1 -1
- package/bin/shared/utils/store/schema.js +1 -1
- package/bin/types/session/SessionHistoryMeta.d.ts +17 -0
- package/bin/types/session/SessionHistoryMeta.d.ts.map +1 -1
- package/bin/types/session/SessionMessages.d.ts +1 -1
- package/bin/types/session/SessionMessages.js +1 -1
- package/bin/types/session/SessionRun.d.ts +13 -1
- package/bin/types/session/SessionRun.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agent/AgentContext.ts +6 -6
- package/src/agent/AgentContextTypes.ts +380 -0
- package/src/agent/AgentRuntime.ts +7 -8
- package/src/agent/AgentRuntimeState.ts +2 -2
- package/src/agent/AgentRuntimeTypes.ts +86 -0
- package/src/agent/project/AgentInitializer.ts +12 -12
- package/src/config/Config.ts +7 -7
- package/src/host/daemon/Client.ts +182 -0
- package/src/host/daemon/Manager.ts +344 -0
- package/src/host/daemon/ProjectSetup.ts +126 -0
- package/src/host/rpc/Client.ts +113 -0
- package/src/host/rpc/Paths.ts +43 -0
- package/src/host/rpc/Server.ts +395 -0
- package/src/host/rpc/Transport.ts +43 -0
- package/src/host/runtime/CityPaths.ts +87 -0
- package/src/host/runtime/CityRegistry.ts +256 -0
- package/src/host/runtime/CityRuntime.ts +45 -0
- package/src/host/runtime/PluginRuntime.ts +42 -0
- package/src/host/runtime/ProcessSweep.ts +239 -0
- package/src/host/sdk/Agent.ts +316 -0
- package/src/host/sdk/AgentSdkTypes.ts +275 -0
- package/src/host/sdk/AsyncQueue.ts +92 -0
- package/src/host/sdk/HttpServer.ts +222 -0
- package/src/host/sdk/Paths.ts +126 -0
- package/src/host/sdk/RemoteAgent.ts +205 -0
- package/src/host/sdk/RpcServer.ts +226 -0
- package/src/host/sdk/SdkSessionSystemComposer.ts +76 -0
- package/src/host/sdk/Session.ts +564 -0
- package/src/host/sdk/SessionMetadata.ts +178 -0
- package/src/host/sdk/StreamEvents.ts +95 -0
- package/src/http/Server.ts +2 -2
- package/src/http/auth/AuthStore.ts +7 -7
- package/src/http/auth/RoutePolicy.ts +6 -6
- package/src/http/control/AuthControlService.ts +161 -0
- package/src/http/control/CommonHelpers.ts +69 -0
- package/src/http/control/ControlApiRoutes.ts +31 -0
- package/src/http/control/ControlAuthorizationRoutes.ts +108 -0
- package/src/http/control/ControlRouter.ts +31 -0
- package/src/http/control/ExecuteBySession.ts +151 -0
- package/src/http/control/ExecuteInput.ts +236 -0
- package/src/http/control/Helpers.ts +22 -0
- package/src/http/control/MessageTimeline.ts +269 -0
- package/src/http/control/ModelRoutes.ts +107 -0
- package/src/http/control/OverviewRoutes.ts +106 -0
- package/src/http/control/SessionRoutes.ts +414 -0
- package/src/http/control/SessionSummaryStore.ts +76 -0
- package/src/http/control/TaskRoutes.ts +391 -0
- package/src/http/control/TaskStore.ts +222 -0
- package/src/http/execute/execute.ts +1 -1
- package/src/http/services/services.ts +2 -2
- package/src/index.ts +202 -6
- package/src/model/CreateModel.ts +25 -9
- package/src/plugin/HookRegistry.ts +1 -1
- package/src/plugin/HttpRoutes.ts +1 -1
- package/src/plugin/Lifecycle.ts +4 -4
- package/src/plugin/LocalExecution.ts +1 -1
- package/src/plugin/PluginManager.ts +1 -1
- package/src/plugin/PluginRegistry.ts +1 -1
- package/src/plugin/ProjectConfigStore.ts +1 -1
- package/src/plugins/asr/Plugin.ts +1 -1
- package/src/plugins/auth/Plugin.ts +2 -2
- package/src/plugins/auth/runtime/AuthorizationConfig.ts +4 -4
- package/src/plugins/auth/runtime/AuthorizationStore.ts +2 -2
- package/src/plugins/tts/runtime/Synthesizer.ts +1 -1
- package/src/plugins/voice/Plugin.ts +1 -1
- package/src/plugins/workboard/runtime/Collector.ts +5 -5
- package/src/plugins/workboard/runtime/Normalizer.ts +7 -7
- package/src/plugins/workboard/runtime/Store.ts +1 -1
- package/src/sandbox/SandboxConfigResolver.ts +1 -1
- package/src/sandbox/SandboxRunner.ts +1 -1
- package/src/service/builtins/BaseService.ts +97 -0
- package/src/service/builtins/chat/Action.ts +477 -0
- package/src/service/builtins/chat/ChatService.ts +255 -0
- package/src/service/builtins/chat/ChatServiceTypes.ts +164 -0
- package/src/service/builtins/chat/accounts/ChannelAccountService.ts +317 -0
- package/src/service/builtins/chat/channels/BaseChatChannel.ts +450 -0
- package/src/service/builtins/chat/channels/BaseChatChannelQueue.ts +321 -0
- package/src/service/builtins/chat/channels/BaseChatChannelSupport.ts +321 -0
- package/src/service/builtins/chat/channels/BotInfoProvider.ts +49 -0
- package/src/service/builtins/chat/channels/Configuration.ts +35 -0
- package/src/service/builtins/chat/channels/ConfigurationRegistry.ts +43 -0
- package/src/service/builtins/chat/channels/feishu/BotInfo.ts +199 -0
- package/src/service/builtins/chat/channels/feishu/Configuration.ts +65 -0
- package/src/service/builtins/chat/channels/feishu/Feishu.ts +634 -0
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformClient.ts +421 -0
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformLookup.ts +523 -0
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts +219 -0
- package/src/service/builtins/chat/channels/feishu/InboundAttachment.ts +261 -0
- package/src/service/builtins/chat/channels/feishu/PostMessage.ts +492 -0
- package/src/service/builtins/chat/channels/feishu/ReplyContext.ts +68 -0
- package/src/service/builtins/chat/channels/feishu/Shared.ts +94 -0
- package/src/service/builtins/chat/channels/qq/BotInfo.ts +137 -0
- package/src/service/builtins/chat/channels/qq/Configuration.ts +64 -0
- package/src/service/builtins/chat/channels/qq/QQ.ts +633 -0
- package/src/service/builtins/chat/channels/qq/QQGatewayAuth.ts +318 -0
- package/src/service/builtins/chat/channels/qq/QQInbound.ts +262 -0
- package/src/service/builtins/chat/channels/qq/QQInboundDedupe.ts +126 -0
- package/src/service/builtins/chat/channels/qq/QQSupport.ts +263 -0
- package/src/service/builtins/chat/channels/qq/VoiceInput.ts +381 -0
- package/src/service/builtins/chat/channels/telegram/Bot.ts +652 -0
- package/src/service/builtins/chat/channels/telegram/BotInfo.ts +92 -0
- package/src/service/builtins/chat/channels/telegram/Configuration.ts +65 -0
- package/src/service/builtins/chat/channels/telegram/ReplyContext.ts +76 -0
- package/src/service/builtins/chat/channels/telegram/Shared.ts +404 -0
- package/src/service/builtins/chat/channels/telegram/TelegramPlatformClient.ts +482 -0
- package/src/service/builtins/chat/runtime/ChannelContextStore.ts +395 -0
- package/src/service/builtins/chat/runtime/ChatActionExecution.ts +362 -0
- package/src/service/builtins/chat/runtime/ChatActionInput.ts +590 -0
- package/src/service/builtins/chat/runtime/ChatChannelActions.ts +313 -0
- package/src/service/builtins/chat/runtime/ChatChannelConfig.ts +330 -0
- package/src/service/builtins/chat/runtime/ChatChannelCore.ts +150 -0
- package/src/service/builtins/chat/runtime/ChatChannelLifecycle.ts +169 -0
- package/src/service/builtins/chat/runtime/ChatHistoryStore.ts +289 -0
- package/src/service/builtins/chat/runtime/ChatIngressStore.ts +88 -0
- package/src/service/builtins/chat/runtime/ChatMessageMarkup.ts +263 -0
- package/src/service/builtins/chat/runtime/ChatMetaStore.ts +186 -0
- package/src/service/builtins/chat/runtime/ChatQueue.ts +77 -0
- package/src/service/builtins/chat/runtime/ChatQueueReplyDispatch.ts +191 -0
- package/src/service/builtins/chat/runtime/ChatQueueSessionBridge.ts +122 -0
- package/src/service/builtins/chat/runtime/ChatQueueStore.ts +185 -0
- package/src/service/builtins/chat/runtime/ChatQueueWorker.ts +504 -0
- package/src/service/builtins/chat/runtime/ChatQueueWorkerSupport.ts +137 -0
- package/src/service/builtins/chat/runtime/ChatSendMetadata.ts +170 -0
- package/src/service/builtins/chat/runtime/ChatSendRegistry.ts +43 -0
- package/src/service/builtins/chat/runtime/ChatServiceSystem.ts +119 -0
- package/src/service/builtins/chat/runtime/ChatSession.ts +125 -0
- package/src/service/builtins/chat/runtime/ChatSessionDelete.ts +95 -0
- package/src/service/builtins/chat/runtime/ChatSessionExecutionComposer.ts +106 -0
- package/src/service/builtins/chat/runtime/ChatkeySend.ts +187 -0
- package/src/service/builtins/chat/runtime/DirectDispatchParser.ts +158 -0
- package/src/service/builtins/chat/runtime/EnqueueDispatch.ts +49 -0
- package/src/service/builtins/chat/runtime/InboundAugment.ts +63 -0
- package/src/service/builtins/chat/runtime/PluginDispatch.ts +89 -0
- package/src/service/builtins/chat/runtime/ReplyContextFormatter.ts +85 -0
- package/src/service/builtins/chat/runtime/ReplyDispatch.ts +78 -0
- package/src/service/builtins/chat/runtime/SystemPrompt.ts +84 -0
- package/src/service/builtins/chat/types/BotInfo.ts +101 -0
- package/src/service/builtins/chat/types/ChannelAccount.ts +232 -0
- package/src/service/builtins/chat/types/ChannelConfiguration.ts +161 -0
- package/src/service/builtins/chat/types/ChatHistory.ts +42 -0
- package/src/service/builtins/chat/types/DirectDispatch.ts +133 -0
- package/src/service/builtins/chat/types/FeishuInboundAttachment.ts +138 -0
- package/src/service/builtins/contact/ContactService.ts +799 -0
- package/src/service/builtins/contact/runtime/ApproveCallback.ts +97 -0
- package/src/service/builtins/contact/runtime/ChatRuntime.ts +82 -0
- package/src/service/builtins/contact/runtime/ContactStore.ts +299 -0
- package/src/service/builtins/contact/runtime/EndpointNotice.ts +125 -0
- package/src/service/builtins/contact/runtime/InboxStore.ts +178 -0
- package/src/service/builtins/contact/runtime/LinkApproval.ts +387 -0
- package/src/service/builtins/contact/runtime/LinkCode.ts +70 -0
- package/src/service/builtins/contact/runtime/LinkStore.ts +50 -0
- package/src/service/builtins/contact/runtime/ShareBundle.ts +286 -0
- package/src/service/builtins/memory/Action.ts +188 -0
- package/src/service/builtins/memory/MemoryService.ts +329 -0
- package/src/service/builtins/memory/runtime/Flush.ts +83 -0
- package/src/service/builtins/memory/runtime/Indexer.ts +466 -0
- package/src/service/builtins/memory/runtime/Search.ts +90 -0
- package/src/service/builtins/memory/runtime/Store.ts +370 -0
- package/src/service/builtins/memory/runtime/SystemProvider.ts +145 -0
- package/src/service/builtins/memory/runtime/Writer.ts +174 -0
- package/src/service/builtins/shell/ShellRuntimeTypes.ts +94 -0
- package/src/service/builtins/shell/ShellService.ts +199 -0
- package/src/service/builtins/shell/runtime/ShellActionRuntime.ts +579 -0
- package/src/service/builtins/shell/runtime/ShellActionRuntimeSupport.ts +552 -0
- package/src/service/builtins/task/Action.ts +491 -0
- package/src/service/builtins/task/Scheduler.ts +245 -0
- package/src/service/builtins/task/TaskService.ts +167 -0
- package/src/service/builtins/task/runtime/CronRuntime.ts +73 -0
- package/src/service/builtins/task/runtime/Model.ts +347 -0
- package/src/service/builtins/task/runtime/Runner.ts +558 -0
- package/src/service/builtins/task/runtime/Store.ts +253 -0
- package/src/service/builtins/task/runtime/TaskActionExecution.ts +276 -0
- package/src/service/builtins/task/runtime/TaskActionInput.ts +463 -0
- package/src/service/builtins/task/runtime/TaskRunArtifacts.ts +493 -0
- package/src/service/builtins/task/runtime/TaskRunChatDispatch.ts +81 -0
- package/src/service/builtins/task/runtime/TaskRunnerProgress.ts +112 -0
- package/src/service/builtins/task/runtime/TaskRunnerRound.ts +337 -0
- package/src/service/builtins/task/runtime/TaskRunnerSession.ts +167 -0
- package/src/service/builtins/task/runtime/TaskRunnerTypes.ts +199 -0
- package/src/service/builtins/task/runtime/TaskServiceActions.ts +248 -0
- package/src/service/core/ServiceActionApi.ts +304 -0
- package/src/service/core/ServiceActionRunner.ts +272 -0
- package/src/service/core/ServiceClassRegistry.ts +77 -0
- package/src/service/core/ServiceStateController.ts +316 -0
- package/src/service/core/ServiceSystemProviders.ts +50 -0
- package/src/service/core/Services.ts +33 -0
- package/src/service/schedule/Executor.ts +2 -2
- package/src/service/schedule/Runtime.ts +1 -1
- package/src/session/Session.ts +4 -0
- package/src/session/SessionRunScope.ts +13 -1
- package/src/session/composer/history/jsonl/JsonlSessionHistoryComposer.ts +33 -0
- package/src/session/composer/system/default/DefaultSessionSystemComposer.ts +1 -1
- package/src/session/composer/system/default/SystemDomain.ts +2 -2
- package/src/session/executors/local/LocalSessionCore.ts +40 -5
- package/src/session/messages/SessionAttachmentMapper.ts +1 -1
- package/src/session/tools/shell/ShellToolBridge.ts +2 -2
- package/src/shared/constants/DowncitySchema.ts +1 -1
- package/src/shared/types/AgentProject.ts +2 -2
- package/src/shared/types/AuthControl.ts +38 -0
- package/src/shared/types/AuthPlugin.ts +2 -2
- package/src/shared/types/ChatPlugin.ts +1 -1
- package/src/shared/types/ChatPromptContext.ts +1 -1
- package/src/shared/types/ChatRuntime.ts +3 -3
- package/src/shared/types/ChatService.ts +2 -2
- package/src/shared/types/ControlRoutes.ts +31 -0
- package/src/shared/types/ControlSessionExecute.ts +99 -0
- package/src/shared/types/ControlViewData.ts +392 -0
- package/src/shared/types/DowncityConfig.ts +6 -6
- package/src/shared/types/ExecutionBinding.ts +2 -2
- package/src/shared/types/InlineInstant.ts +8 -8
- package/src/shared/types/LlmConfig.ts +1 -1
- package/src/shared/types/LocalRpc.ts +1 -1
- package/src/shared/types/ModelBinding.ts +2 -2
- package/src/shared/types/Platform.ts +442 -0
- package/src/shared/types/PlatformGateway.ts +196 -0
- package/src/shared/types/Plugin.ts +2 -2
- package/src/shared/types/PluginApi.ts +1 -1
- package/src/shared/types/README.md +8 -5
- package/src/shared/types/Service.ts +1 -1
- package/src/shared/types/Services.ts +1 -1
- package/src/shared/types/Store.ts +25 -3
- package/src/shared/types/TaskService.ts +1 -1
- package/src/shared/utils/README.md +3 -3
- package/src/shared/utils/store/StoreChannelAccountRepository.ts +8 -8
- package/src/shared/utils/store/StoreEnvRepository.ts +21 -21
- package/src/shared/utils/store/StoreModelRepository.ts +29 -14
- package/src/shared/utils/store/StoreSchema.ts +12 -12
- package/src/shared/utils/store/StoreSecureSettings.ts +14 -14
- package/src/shared/utils/store/StoreShared.ts +6 -6
- package/src/shared/utils/store/crypto.ts +2 -2
- package/src/shared/utils/store/index.ts +30 -20
- package/src/shared/utils/store/schema.ts +1 -1
- package/src/types/session/SessionHistoryMeta.ts +18 -0
- package/src/types/session/SessionMessages.ts +1 -1
- package/src/types/session/SessionRun.ts +17 -1
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/bin/daemon/Api.d.ts +0 -60
- package/bin/daemon/Api.d.ts.map +0 -1
- package/bin/daemon/Api.js.map +0 -1
- package/bin/daemon/Client.d.ts.map +0 -1
- package/bin/daemon/Client.js +0 -158
- package/bin/daemon/Client.js.map +0 -1
- package/bin/daemon/Manager.d.ts +0 -92
- package/bin/daemon/Manager.d.ts.map +0 -1
- package/bin/daemon/Manager.js +0 -287
- package/bin/daemon/Manager.js.map +0 -1
- package/bin/daemon/ProjectSetup.d.ts.map +0 -1
- package/bin/daemon/ProjectSetup.js +0 -101
- package/bin/daemon/ProjectSetup.js.map +0 -1
- package/bin/http/dashboard/AuthDashboardService.d.ts +0 -30
- package/bin/http/dashboard/AuthDashboardService.d.ts.map +0 -1
- package/bin/http/dashboard/AuthDashboardService.js +0 -120
- package/bin/http/dashboard/AuthDashboardService.js.map +0 -1
- package/bin/http/dashboard/CommonHelpers.d.ts +0 -24
- package/bin/http/dashboard/CommonHelpers.d.ts.map +0 -1
- package/bin/http/dashboard/CommonHelpers.js +0 -46
- package/bin/http/dashboard/CommonHelpers.js.map +0 -1
- package/bin/http/dashboard/DashboardApiRoutes.d.ts +0 -13
- package/bin/http/dashboard/DashboardApiRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/DashboardApiRoutes.js +0 -26
- package/bin/http/dashboard/DashboardApiRoutes.js.map +0 -1
- package/bin/http/dashboard/DashboardAuthorizationRoutes.d.ts +0 -17
- package/bin/http/dashboard/DashboardAuthorizationRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/DashboardAuthorizationRoutes.js +0 -78
- package/bin/http/dashboard/DashboardAuthorizationRoutes.js.map +0 -1
- package/bin/http/dashboard/ExecuteBySession.d.ts +0 -39
- package/bin/http/dashboard/ExecuteBySession.d.ts.map +0 -1
- package/bin/http/dashboard/ExecuteBySession.js +0 -128
- package/bin/http/dashboard/ExecuteBySession.js.map +0 -1
- package/bin/http/dashboard/ExecuteInput.d.ts +0 -18
- package/bin/http/dashboard/ExecuteInput.d.ts.map +0 -1
- package/bin/http/dashboard/ExecuteInput.js +0 -201
- package/bin/http/dashboard/ExecuteInput.js.map +0 -1
- package/bin/http/dashboard/Helpers.d.ts +0 -13
- package/bin/http/dashboard/Helpers.d.ts.map +0 -1
- package/bin/http/dashboard/Helpers.js +0 -13
- package/bin/http/dashboard/Helpers.js.map +0 -1
- package/bin/http/dashboard/MessageTimeline.d.ts +0 -22
- package/bin/http/dashboard/MessageTimeline.d.ts.map +0 -1
- package/bin/http/dashboard/MessageTimeline.js +0 -226
- package/bin/http/dashboard/MessageTimeline.js.map +0 -1
- package/bin/http/dashboard/ModelRoutes.d.ts +0 -13
- package/bin/http/dashboard/ModelRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/ModelRoutes.js +0 -87
- package/bin/http/dashboard/ModelRoutes.js.map +0 -1
- package/bin/http/dashboard/OverviewRoutes.d.ts +0 -13
- package/bin/http/dashboard/OverviewRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/OverviewRoutes.js +0 -88
- package/bin/http/dashboard/OverviewRoutes.js.map +0 -1
- package/bin/http/dashboard/Router.d.ts +0 -14
- package/bin/http/dashboard/Router.d.ts.map +0 -1
- package/bin/http/dashboard/Router.js +0 -21
- package/bin/http/dashboard/Router.js.map +0 -1
- package/bin/http/dashboard/SessionRoutes.d.ts +0 -13
- package/bin/http/dashboard/SessionRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/SessionRoutes.js +0 -315
- package/bin/http/dashboard/SessionRoutes.js.map +0 -1
- package/bin/http/dashboard/SessionSummaryStore.d.ts +0 -19
- package/bin/http/dashboard/SessionSummaryStore.d.ts.map +0 -1
- package/bin/http/dashboard/SessionSummaryStore.js +0 -62
- package/bin/http/dashboard/SessionSummaryStore.js.map +0 -1
- package/bin/http/dashboard/TaskRoutes.d.ts +0 -13
- package/bin/http/dashboard/TaskRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/TaskRoutes.js +0 -318
- package/bin/http/dashboard/TaskRoutes.js.map +0 -1
- package/bin/http/dashboard/TaskStore.d.ts +0 -33
- package/bin/http/dashboard/TaskStore.d.ts.map +0 -1
- package/bin/http/dashboard/TaskStore.js +0 -157
- package/bin/http/dashboard/TaskStore.js.map +0 -1
- package/bin/rpc/Client.d.ts +0 -13
- package/bin/rpc/Client.d.ts.map +0 -1
- package/bin/rpc/Client.js.map +0 -1
- package/bin/rpc/Paths.d.ts.map +0 -1
- package/bin/rpc/Paths.js +0 -36
- package/bin/rpc/Paths.js.map +0 -1
- package/bin/rpc/Server.d.ts +0 -18
- package/bin/rpc/Server.d.ts.map +0 -1
- package/bin/rpc/Server.js +0 -307
- package/bin/rpc/Server.js.map +0 -1
- package/bin/rpc/Transport.d.ts +0 -21
- package/bin/rpc/Transport.d.ts.map +0 -1
- package/bin/rpc/Transport.js +0 -30
- package/bin/rpc/Transport.js.map +0 -1
- package/bin/runtime/AgentHostRuntime.d.ts +0 -10
- package/bin/runtime/AgentHostRuntime.d.ts.map +0 -1
- package/bin/runtime/AgentHostRuntime.js +0 -47
- package/bin/runtime/AgentHostRuntime.js.map +0 -1
- package/bin/runtime/CityPaths.d.ts +0 -61
- package/bin/runtime/CityPaths.d.ts.map +0 -1
- package/bin/runtime/CityPaths.js +0 -90
- package/bin/runtime/CityPaths.js.map +0 -1
- package/bin/runtime/CityRegistry.d.ts +0 -51
- package/bin/runtime/CityRegistry.d.ts.map +0 -1
- package/bin/runtime/CityRegistry.js +0 -217
- package/bin/runtime/CityRegistry.js.map +0 -1
- package/bin/runtime/CityRuntime.d.ts +0 -21
- package/bin/runtime/CityRuntime.d.ts.map +0 -1
- package/bin/runtime/CityRuntime.js +0 -45
- package/bin/runtime/CityRuntime.js.map +0 -1
- package/bin/runtime/PluginRuntime.d.ts +0 -24
- package/bin/runtime/PluginRuntime.d.ts.map +0 -1
- package/bin/runtime/PluginRuntime.js.map +0 -1
- package/bin/runtime/ProcessSweep.d.ts +0 -76
- package/bin/runtime/ProcessSweep.d.ts.map +0 -1
- package/bin/runtime/ProcessSweep.js +0 -188
- package/bin/runtime/ProcessSweep.js.map +0 -1
- package/bin/service/Manager.d.ts +0 -13
- package/bin/service/Manager.d.ts.map +0 -1
- package/bin/service/Manager.js.map +0 -1
- package/bin/service/ServiceActionApi.d.ts +0 -15
- package/bin/service/ServiceActionApi.d.ts.map +0 -1
- package/bin/service/ServiceActionApi.js +0 -234
- package/bin/service/ServiceActionApi.js.map +0 -1
- package/bin/service/ServiceActionRunner.d.ts +0 -44
- package/bin/service/ServiceActionRunner.d.ts.map +0 -1
- package/bin/service/ServiceActionRunner.js +0 -211
- package/bin/service/ServiceActionRunner.js.map +0 -1
- package/bin/service/ServiceClassRegistry.d.ts +0 -40
- package/bin/service/ServiceClassRegistry.d.ts.map +0 -1
- package/bin/service/ServiceClassRegistry.js +0 -64
- package/bin/service/ServiceClassRegistry.js.map +0 -1
- package/bin/service/ServiceManager.d.ts +0 -9
- package/bin/service/ServiceManager.d.ts.map +0 -1
- package/bin/service/ServiceManager.js.map +0 -1
- package/bin/service/ServiceStateController.d.ts +0 -79
- package/bin/service/ServiceStateController.d.ts.map +0 -1
- package/bin/service/ServiceStateController.js +0 -245
- package/bin/service/ServiceStateController.js.map +0 -1
- package/bin/service/ServiceSystemProviders.d.ts +0 -27
- package/bin/service/ServiceSystemProviders.d.ts.map +0 -1
- package/bin/service/ServiceSystemProviders.js +0 -34
- package/bin/service/ServiceSystemProviders.js.map +0 -1
- package/bin/service/Services.d.ts +0 -18
- package/bin/service/Services.d.ts.map +0 -1
- package/bin/service/Services.js +0 -23
- package/bin/service/Services.js.map +0 -1
- package/bin/services/BaseService.d.ts +0 -62
- package/bin/services/BaseService.d.ts.map +0 -1
- package/bin/services/BaseService.js +0 -56
- package/bin/services/BaseService.js.map +0 -1
- package/bin/services/chat/Action.d.ts +0 -125
- package/bin/services/chat/Action.d.ts.map +0 -1
- package/bin/services/chat/Action.js +0 -376
- package/bin/services/chat/Action.js.map +0 -1
- package/bin/services/chat/ChatService.d.ts +0 -63
- package/bin/services/chat/ChatService.d.ts.map +0 -1
- package/bin/services/chat/ChatService.js +0 -96
- package/bin/services/chat/ChatService.js.map +0 -1
- package/bin/services/chat/Index.d.ts.map +0 -1
- package/bin/services/chat/Index.js.map +0 -1
- package/bin/services/chat/channels/BaseChatChannel.d.ts +0 -197
- package/bin/services/chat/channels/BaseChatChannel.d.ts.map +0 -1
- package/bin/services/chat/channels/BaseChatChannel.js +0 -278
- package/bin/services/chat/channels/BaseChatChannel.js.map +0 -1
- package/bin/services/chat/channels/BaseChatChannelQueue.d.ts +0 -73
- package/bin/services/chat/channels/BaseChatChannelQueue.d.ts.map +0 -1
- package/bin/services/chat/channels/BaseChatChannelQueue.js +0 -238
- package/bin/services/chat/channels/BaseChatChannelQueue.js.map +0 -1
- package/bin/services/chat/channels/BaseChatChannelSupport.d.ts +0 -189
- package/bin/services/chat/channels/BaseChatChannelSupport.d.ts.map +0 -1
- package/bin/services/chat/channels/BaseChatChannelSupport.js +0 -141
- package/bin/services/chat/channels/BaseChatChannelSupport.js.map +0 -1
- package/bin/services/chat/channels/BotInfoProvider.d.ts +0 -18
- package/bin/services/chat/channels/BotInfoProvider.d.ts.map +0 -1
- package/bin/services/chat/channels/BotInfoProvider.js +0 -32
- package/bin/services/chat/channels/BotInfoProvider.js.map +0 -1
- package/bin/services/chat/channels/Configuration.d.ts +0 -27
- package/bin/services/chat/channels/Configuration.d.ts.map +0 -1
- package/bin/services/chat/channels/Configuration.js.map +0 -1
- package/bin/services/chat/channels/ConfigurationRegistry.d.ts +0 -18
- package/bin/services/chat/channels/ConfigurationRegistry.d.ts.map +0 -1
- package/bin/services/chat/channels/ConfigurationRegistry.js +0 -31
- package/bin/services/chat/channels/ConfigurationRegistry.js.map +0 -1
- package/bin/services/chat/channels/feishu/BotInfo.d.ts +0 -20
- package/bin/services/chat/channels/feishu/BotInfo.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/BotInfo.js.map +0 -1
- package/bin/services/chat/channels/feishu/Configuration.d.ts +0 -17
- package/bin/services/chat/channels/feishu/Configuration.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/Configuration.js +0 -59
- package/bin/services/chat/channels/feishu/Configuration.js.map +0 -1
- package/bin/services/chat/channels/feishu/Feishu.d.ts +0 -116
- package/bin/services/chat/channels/feishu/Feishu.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/Feishu.js +0 -454
- package/bin/services/chat/channels/feishu/Feishu.js.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuInbound.d.ts +0 -21
- package/bin/services/chat/channels/feishu/FeishuInbound.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuInbound.js.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformClient.d.ts +0 -130
- package/bin/services/chat/channels/feishu/FeishuPlatformClient.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformClient.js.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformLookup.d.ts +0 -102
- package/bin/services/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformLookup.js.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.d.ts +0 -49
- package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.js.map +0 -1
- package/bin/services/chat/channels/feishu/InboundAttachment.d.ts +0 -31
- package/bin/services/chat/channels/feishu/InboundAttachment.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/InboundAttachment.js.map +0 -1
- package/bin/services/chat/channels/feishu/PostMessage.d.ts +0 -48
- package/bin/services/chat/channels/feishu/PostMessage.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/PostMessage.js.map +0 -1
- package/bin/services/chat/channels/feishu/ReplyContext.d.ts +0 -18
- package/bin/services/chat/channels/feishu/ReplyContext.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/ReplyContext.js.map +0 -1
- package/bin/services/chat/channels/feishu/Shared.d.ts +0 -21
- package/bin/services/chat/channels/feishu/Shared.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/Shared.js +0 -69
- package/bin/services/chat/channels/feishu/Shared.js.map +0 -1
- package/bin/services/chat/channels/qq/BotInfo.d.ts +0 -19
- package/bin/services/chat/channels/qq/BotInfo.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/BotInfo.js.map +0 -1
- package/bin/services/chat/channels/qq/Configuration.d.ts +0 -17
- package/bin/services/chat/channels/qq/Configuration.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/Configuration.js +0 -59
- package/bin/services/chat/channels/qq/Configuration.js.map +0 -1
- package/bin/services/chat/channels/qq/QQ.d.ts +0 -92
- package/bin/services/chat/channels/qq/QQ.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQ.js +0 -481
- package/bin/services/chat/channels/qq/QQ.js.map +0 -1
- package/bin/services/chat/channels/qq/QQEventCapture.d.ts +0 -22
- package/bin/services/chat/channels/qq/QQEventCapture.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQEventCapture.js.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewayAuth.d.ts +0 -119
- package/bin/services/chat/channels/qq/QQGatewayAuth.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewayAuth.js.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewayClient.d.ts +0 -179
- package/bin/services/chat/channels/qq/QQGatewayClient.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewayClient.js +0 -540
- package/bin/services/chat/channels/qq/QQGatewayClient.js.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewaySend.d.ts +0 -84
- package/bin/services/chat/channels/qq/QQGatewaySend.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewaySend.js.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewaySupport.d.ts +0 -39
- package/bin/services/chat/channels/qq/QQGatewaySupport.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewaySupport.js.map +0 -1
- package/bin/services/chat/channels/qq/QQInbound.d.ts +0 -47
- package/bin/services/chat/channels/qq/QQInbound.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQInbound.js.map +0 -1
- package/bin/services/chat/channels/qq/QQInboundDedupe.d.ts +0 -48
- package/bin/services/chat/channels/qq/QQInboundDedupe.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQInboundDedupe.js.map +0 -1
- package/bin/services/chat/channels/qq/QQSendSupport.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQSendSupport.js.map +0 -1
- package/bin/services/chat/channels/qq/QQSupport.d.ts +0 -102
- package/bin/services/chat/channels/qq/QQSupport.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQSupport.js +0 -172
- package/bin/services/chat/channels/qq/QQSupport.js.map +0 -1
- package/bin/services/chat/channels/qq/VoiceInput.d.ts +0 -64
- package/bin/services/chat/channels/qq/VoiceInput.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/VoiceInput.js.map +0 -1
- package/bin/services/chat/channels/telegram/ApiClient.d.ts +0 -99
- package/bin/services/chat/channels/telegram/ApiClient.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/ApiClient.js.map +0 -1
- package/bin/services/chat/channels/telegram/Bot.d.ts +0 -97
- package/bin/services/chat/channels/telegram/Bot.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/Bot.js +0 -500
- package/bin/services/chat/channels/telegram/Bot.js.map +0 -1
- package/bin/services/chat/channels/telegram/BotInfo.d.ts +0 -19
- package/bin/services/chat/channels/telegram/BotInfo.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/BotInfo.js.map +0 -1
- package/bin/services/chat/channels/telegram/Configuration.d.ts +0 -17
- package/bin/services/chat/channels/telegram/Configuration.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/Configuration.js +0 -59
- package/bin/services/chat/channels/telegram/Configuration.js.map +0 -1
- package/bin/services/chat/channels/telegram/Handlers.d.ts +0 -42
- package/bin/services/chat/channels/telegram/Handlers.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/Handlers.js.map +0 -1
- package/bin/services/chat/channels/telegram/ReplyContext.d.ts +0 -14
- package/bin/services/chat/channels/telegram/ReplyContext.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/ReplyContext.js.map +0 -1
- package/bin/services/chat/channels/telegram/Shared.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/Shared.js +0 -171
- package/bin/services/chat/channels/telegram/Shared.js.map +0 -1
- package/bin/services/chat/channels/telegram/StateStore.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/StateStore.js.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramInbound.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramInbound.js.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramPlatformClient.d.ts +0 -161
- package/bin/services/chat/channels/telegram/TelegramPlatformClient.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramPlatformClient.js.map +0 -1
- package/bin/services/chat/runtime/ChannelContextStore.d.ts +0 -78
- package/bin/services/chat/runtime/ChannelContextStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChannelContextStore.js +0 -336
- package/bin/services/chat/runtime/ChannelContextStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatActionExecution.d.ts +0 -145
- package/bin/services/chat/runtime/ChatActionExecution.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatActionExecution.js +0 -287
- package/bin/services/chat/runtime/ChatActionExecution.js.map +0 -1
- package/bin/services/chat/runtime/ChatActionInput.d.ts +0 -63
- package/bin/services/chat/runtime/ChatActionInput.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatActionInput.js +0 -458
- package/bin/services/chat/runtime/ChatActionInput.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelActions.d.ts +0 -122
- package/bin/services/chat/runtime/ChatChannelActions.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelActions.js +0 -237
- package/bin/services/chat/runtime/ChatChannelActions.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelConfig.d.ts +0 -61
- package/bin/services/chat/runtime/ChatChannelConfig.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelConfig.js +0 -265
- package/bin/services/chat/runtime/ChatChannelConfig.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelCore.d.ts +0 -41
- package/bin/services/chat/runtime/ChatChannelCore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelCore.js +0 -92
- package/bin/services/chat/runtime/ChatChannelCore.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelFacade.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelFacade.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelLifecycle.d.ts +0 -28
- package/bin/services/chat/runtime/ChatChannelLifecycle.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelLifecycle.js +0 -132
- package/bin/services/chat/runtime/ChatChannelLifecycle.js.map +0 -1
- package/bin/services/chat/runtime/ChatHistoryStore.d.ts +0 -72
- package/bin/services/chat/runtime/ChatHistoryStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatHistoryStore.js +0 -219
- package/bin/services/chat/runtime/ChatHistoryStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatIngressStore.d.ts +0 -52
- package/bin/services/chat/runtime/ChatIngressStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatIngressStore.js +0 -65
- package/bin/services/chat/runtime/ChatIngressStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatMessageMarkup.d.ts +0 -54
- package/bin/services/chat/runtime/ChatMessageMarkup.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatMessageMarkup.js.map +0 -1
- package/bin/services/chat/runtime/ChatMetaStore.d.ts +0 -68
- package/bin/services/chat/runtime/ChatMetaStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatMetaStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueue.d.ts +0 -40
- package/bin/services/chat/runtime/ChatQueue.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueue.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueReplyDispatch.d.ts +0 -31
- package/bin/services/chat/runtime/ChatQueueReplyDispatch.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueReplyDispatch.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueSessionBridge.d.ts +0 -55
- package/bin/services/chat/runtime/ChatQueueSessionBridge.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueSessionBridge.js +0 -98
- package/bin/services/chat/runtime/ChatQueueSessionBridge.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueStore.d.ts +0 -85
- package/bin/services/chat/runtime/ChatQueueStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueWorker.d.ts +0 -88
- package/bin/services/chat/runtime/ChatQueueWorker.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueWorker.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueWorkerSupport.d.ts +0 -36
- package/bin/services/chat/runtime/ChatQueueWorkerSupport.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueWorkerSupport.js.map +0 -1
- package/bin/services/chat/runtime/ChatSendMetadata.d.ts +0 -20
- package/bin/services/chat/runtime/ChatSendMetadata.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSendMetadata.js.map +0 -1
- package/bin/services/chat/runtime/ChatSendRegistry.d.ts +0 -27
- package/bin/services/chat/runtime/ChatSendRegistry.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSendRegistry.js.map +0 -1
- package/bin/services/chat/runtime/ChatServiceActions.d.ts +0 -17
- package/bin/services/chat/runtime/ChatServiceActions.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatServiceActions.js.map +0 -1
- package/bin/services/chat/runtime/ChatServiceSystem.d.ts +0 -22
- package/bin/services/chat/runtime/ChatServiceSystem.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatServiceSystem.js +0 -87
- package/bin/services/chat/runtime/ChatServiceSystem.js.map +0 -1
- package/bin/services/chat/runtime/ChatSession.d.ts +0 -73
- package/bin/services/chat/runtime/ChatSession.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSession.js +0 -78
- package/bin/services/chat/runtime/ChatSession.js.map +0 -1
- package/bin/services/chat/runtime/ChatSessionDelete.d.ts +0 -29
- package/bin/services/chat/runtime/ChatSessionDelete.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSessionDelete.js +0 -76
- package/bin/services/chat/runtime/ChatSessionDelete.js.map +0 -1
- package/bin/services/chat/runtime/ChatSessionExecutionComposer.d.ts +0 -45
- package/bin/services/chat/runtime/ChatSessionExecutionComposer.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSessionExecutionComposer.js +0 -60
- package/bin/services/chat/runtime/ChatSessionExecutionComposer.js.map +0 -1
- package/bin/services/chat/runtime/ChatkeySend.d.ts +0 -67
- package/bin/services/chat/runtime/ChatkeySend.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatkeySend.js.map +0 -1
- package/bin/services/chat/runtime/DirectDispatchParser.d.ts +0 -22
- package/bin/services/chat/runtime/DirectDispatchParser.d.ts.map +0 -1
- package/bin/services/chat/runtime/DirectDispatchParser.js +0 -133
- package/bin/services/chat/runtime/DirectDispatchParser.js.map +0 -1
- package/bin/services/chat/runtime/EnqueueDispatch.d.ts +0 -24
- package/bin/services/chat/runtime/EnqueueDispatch.d.ts.map +0 -1
- package/bin/services/chat/runtime/EnqueueDispatch.js +0 -28
- package/bin/services/chat/runtime/EnqueueDispatch.js.map +0 -1
- package/bin/services/chat/runtime/InboundAugment.d.ts +0 -21
- package/bin/services/chat/runtime/InboundAugment.d.ts.map +0 -1
- package/bin/services/chat/runtime/InboundAugment.js +0 -50
- package/bin/services/chat/runtime/InboundAugment.js.map +0 -1
- package/bin/services/chat/runtime/PluginDispatch.d.ts +0 -43
- package/bin/services/chat/runtime/PluginDispatch.d.ts.map +0 -1
- package/bin/services/chat/runtime/PluginDispatch.js +0 -57
- package/bin/services/chat/runtime/PluginDispatch.js.map +0 -1
- package/bin/services/chat/runtime/PluginPoints.d.ts.map +0 -1
- package/bin/services/chat/runtime/PluginPoints.js.map +0 -1
- package/bin/services/chat/runtime/QueuedUserMessage.d.ts +0 -20
- package/bin/services/chat/runtime/QueuedUserMessage.d.ts.map +0 -1
- package/bin/services/chat/runtime/QueuedUserMessage.js.map +0 -1
- package/bin/services/chat/runtime/ReplyContextFormatter.d.ts +0 -29
- package/bin/services/chat/runtime/ReplyContextFormatter.d.ts.map +0 -1
- package/bin/services/chat/runtime/ReplyContextFormatter.js.map +0 -1
- package/bin/services/chat/runtime/ReplyDispatch.d.ts +0 -36
- package/bin/services/chat/runtime/ReplyDispatch.d.ts.map +0 -1
- package/bin/services/chat/runtime/ReplyDispatch.js +0 -51
- package/bin/services/chat/runtime/ReplyDispatch.js.map +0 -1
- package/bin/services/chat/runtime/SystemPrompt.d.ts +0 -26
- package/bin/services/chat/runtime/SystemPrompt.d.ts.map +0 -1
- package/bin/services/chat/runtime/SystemPrompt.js +0 -70
- package/bin/services/chat/runtime/SystemPrompt.js.map +0 -1
- package/bin/services/chat/runtime/UIMessageTransformer.d.ts +0 -24
- package/bin/services/chat/runtime/UIMessageTransformer.d.ts.map +0 -1
- package/bin/services/chat/runtime/UIMessageTransformer.js.map +0 -1
- package/bin/services/chat/runtime/UserVisibleText.d.ts +0 -34
- package/bin/services/chat/runtime/UserVisibleText.d.ts.map +0 -1
- package/bin/services/chat/runtime/UserVisibleText.js.map +0 -1
- package/bin/services/chat/types/BotInfo.d.ts +0 -97
- package/bin/services/chat/types/BotInfo.d.ts.map +0 -1
- package/bin/services/chat/types/BotInfo.js.map +0 -1
- package/bin/services/chat/types/ChannelConfiguration.d.ts +0 -146
- package/bin/services/chat/types/ChannelConfiguration.d.ts.map +0 -1
- package/bin/services/chat/types/ChannelConfiguration.js.map +0 -1
- package/bin/services/chat/types/ChannelContext.d.ts.map +0 -1
- package/bin/services/chat/types/ChannelContext.js.map +0 -1
- package/bin/services/chat/types/ChannelStatus.d.ts.map +0 -1
- package/bin/services/chat/types/ChannelStatus.js.map +0 -1
- package/bin/services/chat/types/ChatCommand.d.ts.map +0 -1
- package/bin/services/chat/types/ChatCommand.js.map +0 -1
- package/bin/services/chat/types/ChatDispatcher.d.ts.map +0 -1
- package/bin/services/chat/types/ChatDispatcher.js.map +0 -1
- package/bin/services/chat/types/ChatHistory.d.ts +0 -36
- package/bin/services/chat/types/ChatHistory.d.ts.map +0 -1
- package/bin/services/chat/types/ChatHistory.js.map +0 -1
- package/bin/services/chat/types/ChatMessageMarkup.d.ts.map +0 -1
- package/bin/services/chat/types/ChatMessageMarkup.js.map +0 -1
- package/bin/services/chat/types/ChatMeta.d.ts.map +0 -1
- package/bin/services/chat/types/ChatMeta.js.map +0 -1
- package/bin/services/chat/types/ChatQueue.d.ts +0 -44
- package/bin/services/chat/types/ChatQueue.d.ts.map +0 -1
- package/bin/services/chat/types/ChatQueue.js.map +0 -1
- package/bin/services/chat/types/DirectDispatch.d.ts +0 -115
- package/bin/services/chat/types/DirectDispatch.d.ts.map +0 -1
- package/bin/services/chat/types/DirectDispatch.js.map +0 -1
- package/bin/services/chat/types/FeishuAttachment.d.ts.map +0 -1
- package/bin/services/chat/types/FeishuAttachment.js.map +0 -1
- package/bin/services/chat/types/FeishuInboundAttachment.d.ts +0 -114
- package/bin/services/chat/types/FeishuInboundAttachment.d.ts.map +0 -1
- package/bin/services/chat/types/FeishuInboundAttachment.js.map +0 -1
- package/bin/services/chat/types/FeishuPost.d.ts.map +0 -1
- package/bin/services/chat/types/FeishuPost.js.map +0 -1
- package/bin/services/chat/types/QqInboundDedupe.d.ts.map +0 -1
- package/bin/services/chat/types/QqInboundDedupe.js.map +0 -1
- package/bin/services/chat/types/QqVoice.d.ts.map +0 -1
- package/bin/services/chat/types/QqVoice.js.map +0 -1
- package/bin/services/chat/types/ReplyContext.d.ts.map +0 -1
- package/bin/services/chat/types/ReplyContext.js.map +0 -1
- package/bin/services/contact/Action.d.ts.map +0 -1
- package/bin/services/contact/Action.js.map +0 -1
- package/bin/services/contact/ContactService.d.ts +0 -39
- package/bin/services/contact/ContactService.d.ts.map +0 -1
- package/bin/services/contact/ContactService.js +0 -683
- package/bin/services/contact/ContactService.js.map +0 -1
- package/bin/services/contact/Index.d.ts.map +0 -1
- package/bin/services/contact/Index.js.map +0 -1
- package/bin/services/contact/runtime/ApproveCallback.d.ts +0 -23
- package/bin/services/contact/runtime/ApproveCallback.d.ts.map +0 -1
- package/bin/services/contact/runtime/ApproveCallback.js.map +0 -1
- package/bin/services/contact/runtime/ChatRuntime.d.ts +0 -27
- package/bin/services/contact/runtime/ChatRuntime.d.ts.map +0 -1
- package/bin/services/contact/runtime/ChatRuntime.js.map +0 -1
- package/bin/services/contact/runtime/ContactStore.d.ts +0 -49
- package/bin/services/contact/runtime/ContactStore.d.ts.map +0 -1
- package/bin/services/contact/runtime/ContactStore.js.map +0 -1
- package/bin/services/contact/runtime/EndpointNotice.d.ts +0 -39
- package/bin/services/contact/runtime/EndpointNotice.d.ts.map +0 -1
- package/bin/services/contact/runtime/EndpointNotice.js.map +0 -1
- package/bin/services/contact/runtime/EndpointResolver.d.ts.map +0 -1
- package/bin/services/contact/runtime/EndpointResolver.js.map +0 -1
- package/bin/services/contact/runtime/InboxStore.d.ts +0 -33
- package/bin/services/contact/runtime/InboxStore.d.ts.map +0 -1
- package/bin/services/contact/runtime/InboxStore.js.map +0 -1
- package/bin/services/contact/runtime/LinkApproval.d.ts +0 -20
- package/bin/services/contact/runtime/LinkApproval.d.ts.map +0 -1
- package/bin/services/contact/runtime/LinkApproval.js.map +0 -1
- package/bin/services/contact/runtime/LinkCode.d.ts +0 -21
- package/bin/services/contact/runtime/LinkCode.d.ts.map +0 -1
- package/bin/services/contact/runtime/LinkCode.js.map +0 -1
- package/bin/services/contact/runtime/LinkStore.d.ts +0 -17
- package/bin/services/contact/runtime/LinkStore.d.ts.map +0 -1
- package/bin/services/contact/runtime/LinkStore.js.map +0 -1
- package/bin/services/contact/runtime/Paths.d.ts.map +0 -1
- package/bin/services/contact/runtime/Paths.js.map +0 -1
- package/bin/services/contact/runtime/RemoteClient.d.ts +0 -46
- package/bin/services/contact/runtime/RemoteClient.d.ts.map +0 -1
- package/bin/services/contact/runtime/RemoteClient.js.map +0 -1
- package/bin/services/contact/runtime/ShareBundle.d.ts +0 -65
- package/bin/services/contact/runtime/ShareBundle.d.ts.map +0 -1
- package/bin/services/contact/runtime/ShareBundle.js.map +0 -1
- package/bin/services/contact/runtime/SystemProvider.d.ts.map +0 -1
- package/bin/services/contact/runtime/SystemProvider.js.map +0 -1
- package/bin/services/contact/runtime/Token.d.ts.map +0 -1
- package/bin/services/contact/runtime/Token.js.map +0 -1
- package/bin/services/memory/Action.d.ts +0 -41
- package/bin/services/memory/Action.d.ts.map +0 -1
- package/bin/services/memory/Action.js.map +0 -1
- package/bin/services/memory/Index.d.ts.map +0 -1
- package/bin/services/memory/Index.js.map +0 -1
- package/bin/services/memory/MemoryService.d.ts +0 -45
- package/bin/services/memory/MemoryService.d.ts.map +0 -1
- package/bin/services/memory/MemoryService.js +0 -299
- package/bin/services/memory/MemoryService.js.map +0 -1
- package/bin/services/memory/runtime/Flush.d.ts +0 -15
- package/bin/services/memory/runtime/Flush.d.ts.map +0 -1
- package/bin/services/memory/runtime/Flush.js.map +0 -1
- package/bin/services/memory/runtime/Indexer.d.ts +0 -71
- package/bin/services/memory/runtime/Indexer.d.ts.map +0 -1
- package/bin/services/memory/runtime/Indexer.js.map +0 -1
- package/bin/services/memory/runtime/Search.d.ts +0 -15
- package/bin/services/memory/runtime/Search.d.ts.map +0 -1
- package/bin/services/memory/runtime/Search.js.map +0 -1
- package/bin/services/memory/runtime/Store.d.ts +0 -106
- package/bin/services/memory/runtime/Store.d.ts.map +0 -1
- package/bin/services/memory/runtime/Store.js.map +0 -1
- package/bin/services/memory/runtime/SystemProvider.d.ts +0 -22
- package/bin/services/memory/runtime/SystemProvider.d.ts.map +0 -1
- package/bin/services/memory/runtime/SystemProvider.js.map +0 -1
- package/bin/services/memory/runtime/Writer.d.ts +0 -23
- package/bin/services/memory/runtime/Writer.d.ts.map +0 -1
- package/bin/services/memory/runtime/Writer.js.map +0 -1
- package/bin/services/memory/types/Memory.d.ts +0 -318
- package/bin/services/memory/types/Memory.d.ts.map +0 -1
- package/bin/services/memory/types/Memory.js.map +0 -1
- package/bin/services/shell/Index.d.ts.map +0 -1
- package/bin/services/shell/Index.js.map +0 -1
- package/bin/services/shell/ShellService.d.ts +0 -65
- package/bin/services/shell/ShellService.d.ts.map +0 -1
- package/bin/services/shell/ShellService.js +0 -138
- package/bin/services/shell/ShellService.js.map +0 -1
- package/bin/services/shell/runtime/Paths.d.ts.map +0 -1
- package/bin/services/shell/runtime/Paths.js.map +0 -1
- package/bin/services/shell/runtime/ShellActionRuntime.d.ts +0 -49
- package/bin/services/shell/runtime/ShellActionRuntime.d.ts.map +0 -1
- package/bin/services/shell/runtime/ShellActionRuntime.js +0 -463
- package/bin/services/shell/runtime/ShellActionRuntime.js.map +0 -1
- package/bin/services/shell/runtime/ShellActionRuntimeSupport.d.ts +0 -107
- package/bin/services/shell/runtime/ShellActionRuntimeSupport.d.ts.map +0 -1
- package/bin/services/shell/runtime/ShellActionRuntimeSupport.js +0 -452
- package/bin/services/shell/runtime/ShellActionRuntimeSupport.js.map +0 -1
- package/bin/services/shell/types/ShellService.d.ts.map +0 -1
- package/bin/services/shell/types/ShellService.js.map +0 -1
- package/bin/services/task/Action.d.ts +0 -36
- package/bin/services/task/Action.d.ts.map +0 -1
- package/bin/services/task/Action.js.map +0 -1
- package/bin/services/task/Index.d.ts.map +0 -1
- package/bin/services/task/Index.js.map +0 -1
- package/bin/services/task/Scheduler.d.ts +0 -17
- package/bin/services/task/Scheduler.d.ts.map +0 -1
- package/bin/services/task/Scheduler.js +0 -231
- package/bin/services/task/Scheduler.js.map +0 -1
- package/bin/services/task/TaskService.d.ts +0 -57
- package/bin/services/task/TaskService.d.ts.map +0 -1
- package/bin/services/task/TaskService.js +0 -126
- package/bin/services/task/TaskService.js.map +0 -1
- package/bin/services/task/runtime/CronRuntime.d.ts +0 -34
- package/bin/services/task/runtime/CronRuntime.d.ts.map +0 -1
- package/bin/services/task/runtime/CronRuntime.js +0 -59
- package/bin/services/task/runtime/CronRuntime.js.map +0 -1
- package/bin/services/task/runtime/CronTrigger.d.ts.map +0 -1
- package/bin/services/task/runtime/CronTrigger.js.map +0 -1
- package/bin/services/task/runtime/Frontmatter.d.ts.map +0 -1
- package/bin/services/task/runtime/Frontmatter.js.map +0 -1
- package/bin/services/task/runtime/Model.d.ts +0 -73
- package/bin/services/task/runtime/Model.d.ts.map +0 -1
- package/bin/services/task/runtime/Model.js.map +0 -1
- package/bin/services/task/runtime/Paths.d.ts.map +0 -1
- package/bin/services/task/runtime/Paths.js.map +0 -1
- package/bin/services/task/runtime/Runner.d.ts +0 -43
- package/bin/services/task/runtime/Runner.d.ts.map +0 -1
- package/bin/services/task/runtime/Runner.js.map +0 -1
- package/bin/services/task/runtime/Store.d.ts +0 -89
- package/bin/services/task/runtime/Store.d.ts.map +0 -1
- package/bin/services/task/runtime/Store.js.map +0 -1
- package/bin/services/task/runtime/TaskActionExecution.d.ts +0 -160
- package/bin/services/task/runtime/TaskActionExecution.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskActionExecution.js +0 -192
- package/bin/services/task/runtime/TaskActionExecution.js.map +0 -1
- package/bin/services/task/runtime/TaskActionInput.d.ts +0 -48
- package/bin/services/task/runtime/TaskActionInput.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskActionInput.js +0 -357
- package/bin/services/task/runtime/TaskActionInput.js.map +0 -1
- package/bin/services/task/runtime/TaskRunArtifacts.d.ts +0 -189
- package/bin/services/task/runtime/TaskRunArtifacts.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunArtifacts.js.map +0 -1
- package/bin/services/task/runtime/TaskRunChatDispatch.d.ts +0 -22
- package/bin/services/task/runtime/TaskRunChatDispatch.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunChatDispatch.js.map +0 -1
- package/bin/services/task/runtime/TaskRunnerProgress.d.ts +0 -35
- package/bin/services/task/runtime/TaskRunnerProgress.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunnerProgress.js.map +0 -1
- package/bin/services/task/runtime/TaskRunnerRound.d.ts +0 -80
- package/bin/services/task/runtime/TaskRunnerRound.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunnerRound.js +0 -272
- package/bin/services/task/runtime/TaskRunnerRound.js.map +0 -1
- package/bin/services/task/runtime/TaskRunnerSession.d.ts +0 -45
- package/bin/services/task/runtime/TaskRunnerSession.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunnerSession.js +0 -138
- package/bin/services/task/runtime/TaskRunnerSession.js.map +0 -1
- package/bin/services/task/runtime/TaskServiceActions.d.ts +0 -16
- package/bin/services/task/runtime/TaskServiceActions.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskServiceActions.js.map +0 -1
- package/bin/services/task/runtime/TaskServiceSystem.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskServiceSystem.js.map +0 -1
- package/bin/services/task/types/Cron.d.ts.map +0 -1
- package/bin/services/task/types/Cron.js.map +0 -1
- package/bin/services/task/types/Task.d.ts.map +0 -1
- package/bin/services/task/types/Task.js.map +0 -1
- package/bin/services/task/types/TaskCommand.d.ts.map +0 -1
- package/bin/services/task/types/TaskCommand.js.map +0 -1
- package/bin/shared/types/AuthDashboard.d.ts +0 -30
- package/bin/shared/types/AuthDashboard.d.ts.map +0 -1
- package/bin/shared/types/AuthDashboard.js +0 -9
- package/bin/shared/types/AuthDashboard.js.map +0 -1
- package/bin/shared/types/Console.d.ts +0 -373
- package/bin/shared/types/Console.d.ts.map +0 -1
- package/bin/shared/types/Console.js +0 -9
- package/bin/shared/types/Console.js.map +0 -1
- package/bin/shared/types/ConsoleGateway.d.ts +0 -174
- package/bin/shared/types/ConsoleGateway.d.ts.map +0 -1
- package/bin/shared/types/ConsoleGateway.js +0 -9
- package/bin/shared/types/ConsoleGateway.js.map +0 -1
- package/bin/shared/types/DashboardData.d.ts +0 -320
- package/bin/shared/types/DashboardData.d.ts.map +0 -1
- package/bin/shared/types/DashboardData.js +0 -9
- package/bin/shared/types/DashboardData.js.map +0 -1
- package/bin/shared/types/DashboardRoutes.d.ts +0 -28
- package/bin/shared/types/DashboardRoutes.d.ts.map +0 -1
- package/bin/shared/types/DashboardRoutes.js +0 -9
- package/bin/shared/types/DashboardRoutes.js.map +0 -1
- package/bin/shared/types/DashboardSessionExecute.d.ts +0 -85
- package/bin/shared/types/DashboardSessionExecute.d.ts.map +0 -1
- package/bin/shared/types/DashboardSessionExecute.js +0 -9
- package/bin/shared/types/DashboardSessionExecute.js.map +0 -1
- package/bin/types/agent/AgentContext.d.ts +0 -345
- package/bin/types/agent/AgentContext.d.ts.map +0 -1
- package/bin/types/agent/AgentContext.js +0 -10
- package/bin/types/agent/AgentContext.js.map +0 -1
- package/bin/types/agent/AgentRuntime.d.ts +0 -81
- package/bin/types/agent/AgentRuntime.d.ts.map +0 -1
- package/bin/types/agent/AgentRuntime.js +0 -10
- package/bin/types/agent/AgentRuntime.js.map +0 -1
- package/bin/types/chat/ChatSession.d.ts +0 -30
- package/bin/types/chat/ChatSession.d.ts.map +0 -1
- package/bin/types/chat/ChatSession.js +0 -9
- package/bin/types/chat/ChatSession.js.map +0 -1
- package/bin/types/city/PublicHostEnv.d.ts +0 -72
- package/bin/types/city/PublicHostEnv.d.ts.map +0 -1
- package/bin/types/city/PublicHostEnv.js +0 -9
- package/bin/types/city/PublicHostEnv.js.map +0 -1
- package/bin/types/cli/AgentChat.d.ts +0 -147
- package/bin/types/cli/AgentChat.d.ts.map +0 -1
- package/bin/types/cli/AgentChat.js +0 -12
- package/bin/types/cli/AgentChat.js.map +0 -1
- package/bin/types/cli/AgentSelection.d.ts +0 -146
- package/bin/types/cli/AgentSelection.d.ts.map +0 -1
- package/bin/types/cli/AgentSelection.js +0 -9
- package/bin/types/cli/AgentSelection.js.map +0 -1
- package/bin/types/cli/CliReporter.d.ts +0 -157
- package/bin/types/cli/CliReporter.d.ts.map +0 -1
- package/bin/types/cli/CliReporter.js +0 -10
- package/bin/types/cli/CliReporter.js.map +0 -1
- package/bin/types/cli/ModelManager.d.ts +0 -127
- package/bin/types/cli/ModelManager.d.ts.map +0 -1
- package/bin/types/cli/ModelManager.js +0 -9
- package/bin/types/cli/ModelManager.js.map +0 -1
- package/bin/types/contact/Contact.d.ts.map +0 -1
- package/bin/types/contact/Contact.js.map +0 -1
- package/bin/types/contact/ContactApproval.d.ts.map +0 -1
- package/bin/types/contact/ContactApproval.js.map +0 -1
- package/bin/types/contact/ContactChat.d.ts.map +0 -1
- package/bin/types/contact/ContactChat.js.map +0 -1
- package/bin/types/contact/ContactCheck.d.ts.map +0 -1
- package/bin/types/contact/ContactCheck.js.map +0 -1
- package/bin/types/contact/ContactCommand.d.ts.map +0 -1
- package/bin/types/contact/ContactCommand.js.map +0 -1
- package/bin/types/contact/ContactEndpoint.d.ts.map +0 -1
- package/bin/types/contact/ContactEndpoint.js.map +0 -1
- package/bin/types/contact/ContactLink.d.ts.map +0 -1
- package/bin/types/contact/ContactLink.js.map +0 -1
- package/bin/types/contact/ContactShare.d.ts.map +0 -1
- package/bin/types/contact/ContactShare.js.map +0 -1
- package/bin/types/shell/ShellRuntime.d.ts +0 -91
- package/bin/types/shell/ShellRuntime.d.ts.map +0 -1
- package/bin/types/shell/ShellRuntime.js +0 -10
- package/bin/types/shell/ShellRuntime.js.map +0 -1
- package/bin/types/task/TaskRunner.d.ts +0 -186
- package/bin/types/task/TaskRunner.d.ts.map +0 -1
- package/bin/types/task/TaskRunner.js +0 -9
- package/bin/types/task/TaskRunner.js.map +0 -1
- package/src/daemon/Client.ts +0 -182
- package/src/daemon/Manager.ts +0 -344
- package/src/daemon/ProjectSetup.ts +0 -126
- package/src/http/dashboard/AuthDashboardService.ts +0 -161
- package/src/http/dashboard/CommonHelpers.ts +0 -50
- package/src/http/dashboard/DashboardApiRoutes.ts +0 -30
- package/src/http/dashboard/DashboardAuthorizationRoutes.ts +0 -101
- package/src/http/dashboard/ExecuteBySession.ts +0 -151
- package/src/http/dashboard/ExecuteInput.ts +0 -236
- package/src/http/dashboard/Helpers.ts +0 -22
- package/src/http/dashboard/MessageTimeline.ts +0 -269
- package/src/http/dashboard/ModelRoutes.ts +0 -102
- package/src/http/dashboard/OverviewRoutes.ts +0 -101
- package/src/http/dashboard/Router.ts +0 -26
- package/src/http/dashboard/SessionRoutes.ts +0 -394
- package/src/http/dashboard/SessionSummaryStore.ts +0 -76
- package/src/http/dashboard/TaskRoutes.ts +0 -372
- package/src/http/dashboard/TaskStore.ts +0 -222
- package/src/rpc/Client.ts +0 -110
- package/src/rpc/Paths.ts +0 -43
- package/src/rpc/Server.ts +0 -395
- package/src/rpc/Transport.ts +0 -40
- package/src/runtime/CityPaths.ts +0 -101
- package/src/runtime/CityRegistry.ts +0 -256
- package/src/runtime/CityRuntime.ts +0 -45
- package/src/runtime/PluginRuntime.ts +0 -42
- package/src/runtime/ProcessSweep.ts +0 -239
- package/src/service/ServiceActionApi.ts +0 -304
- package/src/service/ServiceActionRunner.ts +0 -272
- package/src/service/ServiceClassRegistry.ts +0 -77
- package/src/service/ServiceStateController.ts +0 -316
- package/src/service/ServiceSystemProviders.ts +0 -50
- package/src/service/Services.ts +0 -33
- package/src/services/BaseService.ts +0 -85
- package/src/services/chat/Action.ts +0 -477
- package/src/services/chat/ChatService.ts +0 -111
- package/src/services/chat/channels/BaseChatChannel.ts +0 -425
- package/src/services/chat/channels/BaseChatChannelQueue.ts +0 -321
- package/src/services/chat/channels/BaseChatChannelSupport.ts +0 -321
- package/src/services/chat/channels/BotInfoProvider.ts +0 -49
- package/src/services/chat/channels/Configuration.ts +0 -35
- package/src/services/chat/channels/ConfigurationRegistry.ts +0 -43
- package/src/services/chat/channels/feishu/BotInfo.ts +0 -199
- package/src/services/chat/channels/feishu/Configuration.ts +0 -65
- package/src/services/chat/channels/feishu/Feishu.ts +0 -630
- package/src/services/chat/channels/feishu/FeishuPlatformClient.ts +0 -421
- package/src/services/chat/channels/feishu/FeishuPlatformLookup.ts +0 -523
- package/src/services/chat/channels/feishu/FeishuPlatformMessaging.ts +0 -219
- package/src/services/chat/channels/feishu/InboundAttachment.ts +0 -261
- package/src/services/chat/channels/feishu/PostMessage.ts +0 -492
- package/src/services/chat/channels/feishu/ReplyContext.ts +0 -68
- package/src/services/chat/channels/feishu/Shared.ts +0 -94
- package/src/services/chat/channels/qq/BotInfo.ts +0 -137
- package/src/services/chat/channels/qq/Configuration.ts +0 -64
- package/src/services/chat/channels/qq/QQ.ts +0 -629
- package/src/services/chat/channels/qq/QQGatewayAuth.ts +0 -318
- package/src/services/chat/channels/qq/QQInbound.ts +0 -262
- package/src/services/chat/channels/qq/QQInboundDedupe.ts +0 -126
- package/src/services/chat/channels/qq/QQSupport.ts +0 -263
- package/src/services/chat/channels/qq/VoiceInput.ts +0 -381
- package/src/services/chat/channels/telegram/Bot.ts +0 -648
- package/src/services/chat/channels/telegram/BotInfo.ts +0 -92
- package/src/services/chat/channels/telegram/Configuration.ts +0 -65
- package/src/services/chat/channels/telegram/ReplyContext.ts +0 -76
- package/src/services/chat/channels/telegram/Shared.ts +0 -404
- package/src/services/chat/channels/telegram/TelegramPlatformClient.ts +0 -482
- package/src/services/chat/runtime/ChannelContextStore.ts +0 -395
- package/src/services/chat/runtime/ChatActionExecution.ts +0 -362
- package/src/services/chat/runtime/ChatActionInput.ts +0 -590
- package/src/services/chat/runtime/ChatChannelActions.ts +0 -313
- package/src/services/chat/runtime/ChatChannelConfig.ts +0 -334
- package/src/services/chat/runtime/ChatChannelCore.ts +0 -112
- package/src/services/chat/runtime/ChatChannelLifecycle.ts +0 -165
- package/src/services/chat/runtime/ChatHistoryStore.ts +0 -289
- package/src/services/chat/runtime/ChatIngressStore.ts +0 -88
- package/src/services/chat/runtime/ChatMessageMarkup.ts +0 -263
- package/src/services/chat/runtime/ChatMetaStore.ts +0 -186
- package/src/services/chat/runtime/ChatQueue.ts +0 -77
- package/src/services/chat/runtime/ChatQueueReplyDispatch.ts +0 -191
- package/src/services/chat/runtime/ChatQueueSessionBridge.ts +0 -122
- package/src/services/chat/runtime/ChatQueueStore.ts +0 -185
- package/src/services/chat/runtime/ChatQueueWorker.ts +0 -504
- package/src/services/chat/runtime/ChatQueueWorkerSupport.ts +0 -137
- package/src/services/chat/runtime/ChatSendMetadata.ts +0 -170
- package/src/services/chat/runtime/ChatSendRegistry.ts +0 -43
- package/src/services/chat/runtime/ChatServiceSystem.ts +0 -119
- package/src/services/chat/runtime/ChatSession.ts +0 -125
- package/src/services/chat/runtime/ChatSessionDelete.ts +0 -95
- package/src/services/chat/runtime/ChatSessionExecutionComposer.ts +0 -106
- package/src/services/chat/runtime/ChatkeySend.ts +0 -187
- package/src/services/chat/runtime/DirectDispatchParser.ts +0 -158
- package/src/services/chat/runtime/EnqueueDispatch.ts +0 -49
- package/src/services/chat/runtime/InboundAugment.ts +0 -63
- package/src/services/chat/runtime/PluginDispatch.ts +0 -89
- package/src/services/chat/runtime/ReplyContextFormatter.ts +0 -85
- package/src/services/chat/runtime/ReplyDispatch.ts +0 -78
- package/src/services/chat/runtime/SystemPrompt.ts +0 -84
- package/src/services/chat/types/BotInfo.ts +0 -101
- package/src/services/chat/types/ChannelConfiguration.ts +0 -161
- package/src/services/chat/types/ChatHistory.ts +0 -42
- package/src/services/chat/types/DirectDispatch.ts +0 -133
- package/src/services/chat/types/FeishuInboundAttachment.ts +0 -138
- package/src/services/contact/ContactService.ts +0 -799
- package/src/services/contact/runtime/ApproveCallback.ts +0 -97
- package/src/services/contact/runtime/ChatRuntime.ts +0 -82
- package/src/services/contact/runtime/ContactStore.ts +0 -299
- package/src/services/contact/runtime/EndpointNotice.ts +0 -125
- package/src/services/contact/runtime/InboxStore.ts +0 -178
- package/src/services/contact/runtime/LinkApproval.ts +0 -387
- package/src/services/contact/runtime/LinkCode.ts +0 -70
- package/src/services/contact/runtime/LinkStore.ts +0 -50
- package/src/services/contact/runtime/ShareBundle.ts +0 -286
- package/src/services/memory/Action.ts +0 -188
- package/src/services/memory/MemoryService.ts +0 -329
- package/src/services/memory/runtime/Flush.ts +0 -83
- package/src/services/memory/runtime/Indexer.ts +0 -466
- package/src/services/memory/runtime/Search.ts +0 -90
- package/src/services/memory/runtime/Store.ts +0 -370
- package/src/services/memory/runtime/SystemProvider.ts +0 -145
- package/src/services/memory/runtime/Writer.ts +0 -174
- package/src/services/shell/ShellService.ts +0 -199
- package/src/services/shell/runtime/ShellActionRuntime.ts +0 -579
- package/src/services/shell/runtime/ShellActionRuntimeSupport.ts +0 -552
- package/src/services/task/Action.ts +0 -491
- package/src/services/task/Scheduler.ts +0 -245
- package/src/services/task/TaskService.ts +0 -167
- package/src/services/task/runtime/CronRuntime.ts +0 -73
- package/src/services/task/runtime/Model.ts +0 -347
- package/src/services/task/runtime/Runner.ts +0 -558
- package/src/services/task/runtime/Store.ts +0 -253
- package/src/services/task/runtime/TaskActionExecution.ts +0 -276
- package/src/services/task/runtime/TaskActionInput.ts +0 -463
- package/src/services/task/runtime/TaskRunArtifacts.ts +0 -493
- package/src/services/task/runtime/TaskRunChatDispatch.ts +0 -81
- package/src/services/task/runtime/TaskRunnerProgress.ts +0 -112
- package/src/services/task/runtime/TaskRunnerRound.ts +0 -337
- package/src/services/task/runtime/TaskRunnerSession.ts +0 -167
- package/src/services/task/runtime/TaskServiceActions.ts +0 -248
- package/src/shared/types/AuthDashboard.ts +0 -38
- package/src/shared/types/Console.ts +0 -448
- package/src/shared/types/ConsoleGateway.ts +0 -196
- package/src/shared/types/DashboardData.ts +0 -392
- package/src/shared/types/DashboardRoutes.ts +0 -31
- package/src/shared/types/DashboardSessionExecute.ts +0 -99
- package/src/types/agent/AgentContext.ts +0 -380
- package/src/types/agent/AgentRuntime.ts +0 -86
- package/src/types/city/PublicHostEnv.ts +0 -76
- package/src/types/cli/AgentChat.ts +0 -172
- package/src/types/cli/AgentSelection.ts +0 -162
- package/src/types/cli/CliReporter.ts +0 -167
- package/src/types/cli/ModelManager.ts +0 -139
- package/src/types/shell/ShellRuntime.ts +0 -94
- package/src/types/task/TaskRunner.ts +0 -199
- /package/bin/{daemon → host/daemon}/Api.js +0 -0
- /package/bin/{daemon → host/daemon}/Client.d.ts +0 -0
- /package/bin/{daemon → host/daemon}/ProjectSetup.d.ts +0 -0
- /package/bin/{rpc → host/rpc}/Client.js +0 -0
- /package/bin/{rpc → host/rpc}/Paths.d.ts +0 -0
- /package/bin/{runtime → host/runtime}/PluginRuntime.js +0 -0
- /package/bin/{services → service/builtins}/chat/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/Index.js +0 -0
- /package/bin/{services → service/builtins}/chat/PROMPT.direct.txt +0 -0
- /package/bin/{services → service/builtins}/chat/channels/Configuration.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/BotInfo.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/FeishuInbound.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/FeishuPlatformClient.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/FeishuPlatformLookup.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/FeishuPlatformMessaging.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/InboundAttachment.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/PROMPT.direct.txt +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/PostMessage.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/ReplyContext.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/BotInfo.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/PROMPT.direct.txt +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQEventCapture.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQGatewayAuth.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQGatewaySend.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQGatewaySupport.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQInbound.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQInboundDedupe.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQSendSupport.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQSendSupport.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/VoiceInput.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/ApiClient.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/BotInfo.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/Handlers.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/PROMPT.direct.txt +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/ReplyContext.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/Shared.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/StateStore.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/StateStore.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/TelegramInbound.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/TelegramInbound.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/TelegramPlatformClient.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatChannelFacade.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatChannelFacade.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatMessageMarkup.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatMetaStore.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueue.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueueReplyDispatch.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueueStore.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueueWorker.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueueWorkerSupport.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatSendMetadata.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatSendRegistry.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatServiceActions.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatkeySend.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/PluginPoints.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/PluginPoints.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/QueuedUserMessage.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ReplyContextFormatter.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/UIMessageTransformer.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/UserVisibleText.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/BotInfo.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelConfiguration.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelContext.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelContext.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelStatus.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelStatus.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatCommand.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatCommand.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatDispatcher.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatDispatcher.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatHistory.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatMessageMarkup.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatMessageMarkup.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatMeta.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatMeta.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatQueue.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/DirectDispatch.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuAttachment.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuAttachment.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuInboundAttachment.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuPost.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuPost.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/QqInboundDedupe.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/QqInboundDedupe.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/QqVoice.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/QqVoice.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ReplyContext.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ReplyContext.js +0 -0
- /package/bin/{services → service/builtins}/contact/Action.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/Action.js +0 -0
- /package/bin/{services → service/builtins}/contact/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/Index.js +0 -0
- /package/bin/{services → service/builtins}/contact/PROMPT.txt +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/ApproveCallback.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/ChatRuntime.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/ContactStore.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/EndpointNotice.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/EndpointResolver.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/EndpointResolver.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/InboxStore.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/LinkApproval.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/LinkCode.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/LinkStore.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/Paths.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/Paths.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/RemoteClient.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/ShareBundle.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/SystemProvider.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/SystemProvider.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/Token.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/Token.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/Contact.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/Contact.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactApproval.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactApproval.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactChat.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactChat.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactCheck.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactCheck.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactCommand.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactCommand.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactEndpoint.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactEndpoint.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactLink.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactLink.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactShare.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactShare.js +0 -0
- /package/bin/{services → service/builtins}/memory/Action.js +0 -0
- /package/bin/{services → service/builtins}/memory/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/memory/Index.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Flush.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Indexer.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Search.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Store.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/SystemProvider.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Writer.js +0 -0
- /package/bin/{services → service/builtins}/memory/types/Memory.js +0 -0
- /package/bin/{services → service/builtins}/shell/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/shell/Index.js +0 -0
- /package/bin/{services → service/builtins}/shell/runtime/Paths.d.ts +0 -0
- /package/bin/{services → service/builtins}/shell/runtime/Paths.js +0 -0
- /package/bin/{services → service/builtins}/shell/types/ShellService.d.ts +0 -0
- /package/bin/{services → service/builtins}/shell/types/ShellService.js +0 -0
- /package/bin/{services → service/builtins}/task/Action.js +0 -0
- /package/bin/{services → service/builtins}/task/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/Index.js +0 -0
- /package/bin/{services → service/builtins}/task/PROMPT.txt +0 -0
- /package/bin/{services → service/builtins}/task/runtime/CronTrigger.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/runtime/CronTrigger.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Frontmatter.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Frontmatter.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Model.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Paths.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Paths.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Runner.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Store.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskRunArtifacts.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskRunChatDispatch.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskRunnerProgress.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskServiceActions.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskServiceSystem.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskServiceSystem.js +0 -0
- /package/bin/{services → service/builtins}/task/types/Cron.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/types/Cron.js +0 -0
- /package/bin/{services → service/builtins}/task/types/Task.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/types/Task.js +0 -0
- /package/bin/{services → service/builtins}/task/types/TaskCommand.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/types/TaskCommand.js +0 -0
- /package/bin/service/{Manager.js → core/Manager.js} +0 -0
- /package/bin/service/{ServiceManager.js → core/ServiceManager.js} +0 -0
- /package/src/{daemon → host/daemon}/Api.ts +0 -0
- /package/src/{runtime → host/runtime}/AgentHostRuntime.ts +0 -0
- /package/src/{services → service/builtins}/README.md +0 -0
- /package/src/{services → service/builtins}/chat/Index.ts +0 -0
- /package/src/{services → service/builtins}/chat/PROMPT.direct.txt +0 -0
- /package/src/{services → service/builtins}/chat/channels/feishu/FeishuInbound.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/feishu/PROMPT.direct.txt +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/PROMPT.direct.txt +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQEventCapture.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQGatewayClient.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQGatewaySend.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQGatewaySupport.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQSendSupport.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/ApiClient.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/Handlers.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/PROMPT.direct.txt +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/StateStore.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/TelegramInbound.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/ChatChannelFacade.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/ChatServiceActions.ts +0 -0
- /package/src/{types/chat/ChatSession.ts → service/builtins/chat/runtime/ChatSessionTypes.ts} +0 -0
- /package/src/{services → service/builtins}/chat/runtime/PluginPoints.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/QueuedUserMessage.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/UIMessageTransformer.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/UserVisibleText.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChannelContext.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChannelStatus.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatCommand.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatDispatcher.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatMessageMarkup.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatMeta.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatQueue.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/FeishuAttachment.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/FeishuPost.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/QqInboundDedupe.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/QqVoice.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ReplyContext.ts +0 -0
- /package/src/{services → service/builtins}/contact/Action.ts +0 -0
- /package/src/{services → service/builtins}/contact/Index.ts +0 -0
- /package/src/{services → service/builtins}/contact/PROMPT.txt +0 -0
- /package/src/{services → service/builtins}/contact/runtime/EndpointResolver.ts +0 -0
- /package/src/{services → service/builtins}/contact/runtime/Paths.ts +0 -0
- /package/src/{services → service/builtins}/contact/runtime/RemoteClient.ts +0 -0
- /package/src/{services → service/builtins}/contact/runtime/SystemProvider.ts +0 -0
- /package/src/{services → service/builtins}/contact/runtime/Token.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/Contact.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactApproval.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactChat.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactCheck.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactCommand.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactEndpoint.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactLink.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactShare.ts +0 -0
- /package/src/{services → service/builtins}/memory/Index.ts +0 -0
- /package/src/{services → service/builtins}/memory/types/Memory.ts +0 -0
- /package/src/{services → service/builtins}/shell/Index.ts +0 -0
- /package/src/{services → service/builtins}/shell/runtime/Paths.ts +0 -0
- /package/src/{services → service/builtins}/shell/types/ShellService.ts +0 -0
- /package/src/{services → service/builtins}/task/Index.ts +0 -0
- /package/src/{services → service/builtins}/task/PROMPT.txt +0 -0
- /package/src/{services → service/builtins}/task/runtime/CronTrigger.ts +0 -0
- /package/src/{services → service/builtins}/task/runtime/Frontmatter.ts +0 -0
- /package/src/{services → service/builtins}/task/runtime/Paths.ts +0 -0
- /package/src/{services → service/builtins}/task/runtime/TaskServiceSystem.ts +0 -0
- /package/src/{services → service/builtins}/task/types/Cron.ts +0 -0
- /package/src/{services → service/builtins}/task/types/Task.ts +0 -0
- /package/src/{services → service/builtins}/task/types/TaskCommand.ts +0 -0
- /package/src/service/{Manager.ts → core/Manager.ts} +0 -0
- /package/src/service/{ServiceManager.ts → core/ServiceManager.ts} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Control Authorization 路由。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 单独承接 `/api/control/authorization*`。
|
|
6
|
+
* - 授权页面的数据统一通过 auth plugin API 读取与写入。
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { Hono } from "hono";
|
|
10
|
+
import type { AgentContext } from "@/agent/AgentContextTypes.js";
|
|
11
|
+
import {
|
|
12
|
+
readAuthControlPayload,
|
|
13
|
+
setAuthControlUserRole,
|
|
14
|
+
writeAuthControlConfig,
|
|
15
|
+
} from "@/http/control/AuthControlService.js";
|
|
16
|
+
import {
|
|
17
|
+
isChatAuthorizationChannel,
|
|
18
|
+
type AuthSetUserRolePayload,
|
|
19
|
+
type ChatAuthorizationConfig,
|
|
20
|
+
} from "@/shared/types/AuthPlugin.js";
|
|
21
|
+
import type { ChatAuthorizationChannel } from "@/shared/types/AuthPlugin.js";
|
|
22
|
+
import { buildControlRouteAliases } from "@/http/control/CommonHelpers.js";
|
|
23
|
+
|
|
24
|
+
function normalizeChatChannel(value: unknown): ChatAuthorizationChannel | null {
|
|
25
|
+
const text = String(value || "").trim().toLowerCase();
|
|
26
|
+
if (isChatAuthorizationChannel(text)) return text;
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 注册 authorization 相关路由。
|
|
32
|
+
*/
|
|
33
|
+
export function registerControlAuthorizationRoutes(params: {
|
|
34
|
+
app: Hono;
|
|
35
|
+
getAgentContext: () => AgentContext;
|
|
36
|
+
}): void {
|
|
37
|
+
const { app, getAgentContext } = params;
|
|
38
|
+
|
|
39
|
+
for (const routePath of buildControlRouteAliases("/authorization")) {
|
|
40
|
+
app.get(routePath, async (c) => {
|
|
41
|
+
try {
|
|
42
|
+
const payload = await readAuthControlPayload(getAgentContext());
|
|
43
|
+
return c.json({
|
|
44
|
+
success: true,
|
|
45
|
+
...payload,
|
|
46
|
+
});
|
|
47
|
+
} catch (error) {
|
|
48
|
+
return c.json({ success: false, error: String(error) }, 500);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
for (const routePath of buildControlRouteAliases("/authorization/config")) {
|
|
54
|
+
app.post(routePath, async (c) => {
|
|
55
|
+
try {
|
|
56
|
+
const body = (await c.req.json().catch(() => ({}))) as {
|
|
57
|
+
config?: ChatAuthorizationConfig;
|
|
58
|
+
};
|
|
59
|
+
const payload = await writeAuthControlConfig({
|
|
60
|
+
context: getAgentContext(),
|
|
61
|
+
config: body.config && typeof body.config === "object" ? body.config : {},
|
|
62
|
+
});
|
|
63
|
+
return c.json({
|
|
64
|
+
success: true,
|
|
65
|
+
...payload,
|
|
66
|
+
});
|
|
67
|
+
} catch (error) {
|
|
68
|
+
return c.json({ success: false, error: String(error) }, 500);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
for (const routePath of buildControlRouteAliases("/authorization/action")) {
|
|
74
|
+
app.post(routePath, async (c) => {
|
|
75
|
+
try {
|
|
76
|
+
const body = (await c.req.json().catch(() => ({}))) as {
|
|
77
|
+
action?: string;
|
|
78
|
+
channel?: string;
|
|
79
|
+
userId?: string;
|
|
80
|
+
roleId?: string;
|
|
81
|
+
};
|
|
82
|
+
const action = String(body.action || "").trim();
|
|
83
|
+
const channel = normalizeChatChannel(body.channel);
|
|
84
|
+
if (!action || !channel) {
|
|
85
|
+
return c.json({ success: false, error: "Missing action/channel" }, 400);
|
|
86
|
+
}
|
|
87
|
+
if (action !== "setUserRole") {
|
|
88
|
+
return c.json({ success: false, error: `Unsupported action: ${action}` }, 400);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const payload = await setAuthControlUserRole({
|
|
92
|
+
context: getAgentContext(),
|
|
93
|
+
input: {
|
|
94
|
+
channel,
|
|
95
|
+
userId: String(body.userId || "").trim(),
|
|
96
|
+
roleId: String(body.roleId || "").trim(),
|
|
97
|
+
} as AuthSetUserRolePayload,
|
|
98
|
+
});
|
|
99
|
+
return c.json({
|
|
100
|
+
success: true,
|
|
101
|
+
...payload,
|
|
102
|
+
});
|
|
103
|
+
} catch (error) {
|
|
104
|
+
return c.json({ success: false, error: String(error) }, 500);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Control API 路由入口模块。
|
|
3
|
+
*
|
|
4
|
+
* 职责说明:
|
|
5
|
+
* 1. 为单 agent control API 暴露独立 router。
|
|
6
|
+
* 2. 将控制域的 API 装配收敛在 `http/control/` 下。
|
|
7
|
+
* 3. server 只负责挂载该 router,不再持有控制面细节。
|
|
8
|
+
*
|
|
9
|
+
* 命名说明(中文)
|
|
10
|
+
* - 这里的 control 指“单 agent 控制域”。
|
|
11
|
+
* - 它不是 city 的 gateway / control plane。
|
|
12
|
+
* - 当前公开路径统一使用 `/api/control/*`。
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { Hono } from "hono";
|
|
16
|
+
import {
|
|
17
|
+
getAgentRuntime,
|
|
18
|
+
getAgentContext,
|
|
19
|
+
} from "@/agent/AgentRuntime.js";
|
|
20
|
+
import { registerControlApiRoutes } from "@/http/control/ControlApiRoutes.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 单 agent control API 专用路由。
|
|
24
|
+
*/
|
|
25
|
+
export const controlRouter = new Hono();
|
|
26
|
+
|
|
27
|
+
registerControlApiRoutes({
|
|
28
|
+
app: controlRouter,
|
|
29
|
+
getAgentRuntime: getAgentRuntime,
|
|
30
|
+
getAgentContext: getAgentContext,
|
|
31
|
+
});
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Control execute by session helper。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - chatKey session 优先复用 chat 平台队列链路(与平台入站执行一致)。
|
|
6
|
+
* - 非 chat session 保留原有直接执行语义。
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { AgentRuntime } from "@/agent/AgentRuntime.js";
|
|
10
|
+
import type { AgentContext } from "@/agent/AgentContextTypes.js";
|
|
11
|
+
import type { JsonObject } from "@/shared/types/Json.js";
|
|
12
|
+
import type { ControlSessionExecuteAttachmentInput } from "@/shared/types/ControlSessionExecute.js";
|
|
13
|
+
import { drainDeferredPersistedUserMessages } from "@session/SessionRunScope.js";
|
|
14
|
+
import { resolveChatQueueStore } from "@/service/builtins/chat/runtime/ChatQueue.js";
|
|
15
|
+
import { resolveDispatchTargetByChatKey } from "@/service/builtins/chat/runtime/ChatkeySend.js";
|
|
16
|
+
import { appendExecIngress } from "@/service/builtins/chat/runtime/ChatIngressStore.js";
|
|
17
|
+
import { buildQueuedUserMessageWithInfo } from "@/service/builtins/chat/runtime/QueuedUserMessage.js";
|
|
18
|
+
import {
|
|
19
|
+
pickLastSuccessfulChatSendText,
|
|
20
|
+
resolveAssistantMessageForPersistence,
|
|
21
|
+
} from "@/service/builtins/chat/runtime/UserVisibleText.js";
|
|
22
|
+
import { buildExecuteInputText } from "./Helpers.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 在指定 session 中执行一轮请求。
|
|
26
|
+
*
|
|
27
|
+
* 说明(中文)
|
|
28
|
+
* - 若 `sessionId` 能解析为 chat 分发目标,则改为入 chat queue。
|
|
29
|
+
* - 否则按普通 session 同步执行。
|
|
30
|
+
*/
|
|
31
|
+
export async function executeBySessionId(params: {
|
|
32
|
+
agentState: AgentRuntime;
|
|
33
|
+
executionContext: AgentContext;
|
|
34
|
+
sessionId: string;
|
|
35
|
+
instructions: string;
|
|
36
|
+
attachments?: ControlSessionExecuteAttachmentInput[];
|
|
37
|
+
}) {
|
|
38
|
+
const sessionId = String(params.sessionId || "").trim();
|
|
39
|
+
const instructions = String(params.instructions || "").trim();
|
|
40
|
+
if (!sessionId) throw new Error("Missing sessionId");
|
|
41
|
+
if (!instructions) throw new Error("Missing instructions");
|
|
42
|
+
|
|
43
|
+
const executeInput = await buildExecuteInputText({
|
|
44
|
+
projectRoot: params.agentState.rootPath,
|
|
45
|
+
sessionId,
|
|
46
|
+
instructions,
|
|
47
|
+
attachments: params.attachments,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
const dispatchTarget = await resolveDispatchTargetByChatKey({
|
|
51
|
+
context: params.executionContext,
|
|
52
|
+
chatKey: sessionId,
|
|
53
|
+
});
|
|
54
|
+
if (dispatchTarget) {
|
|
55
|
+
const queuedText = buildQueuedUserMessageWithInfo({
|
|
56
|
+
messageId: dispatchTarget.messageId,
|
|
57
|
+
text: executeInput,
|
|
58
|
+
});
|
|
59
|
+
const ingressExtra: JsonObject = {
|
|
60
|
+
source: "tui_session_execute",
|
|
61
|
+
ingressKind: "exec",
|
|
62
|
+
trigger: "api_execute",
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
try {
|
|
66
|
+
await appendExecIngress({
|
|
67
|
+
context: params.executionContext,
|
|
68
|
+
sessionId,
|
|
69
|
+
channel: dispatchTarget.channel,
|
|
70
|
+
chatId: dispatchTarget.chatId,
|
|
71
|
+
text: queuedText,
|
|
72
|
+
...(dispatchTarget.chatType ? { targetType: dispatchTarget.chatType } : {}),
|
|
73
|
+
...(typeof dispatchTarget.messageThreadId === "number"
|
|
74
|
+
? { threadId: dispatchTarget.messageThreadId }
|
|
75
|
+
: {}),
|
|
76
|
+
...(dispatchTarget.messageId ? { messageId: dispatchTarget.messageId } : {}),
|
|
77
|
+
extra: ingressExtra,
|
|
78
|
+
});
|
|
79
|
+
} catch (error) {
|
|
80
|
+
params.agentState.logger.warn("Control execute ingress append failed", {
|
|
81
|
+
sessionId,
|
|
82
|
+
error: String(error),
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const enqueueResult = resolveChatQueueStore(params.executionContext).enqueue({
|
|
87
|
+
kind: "exec",
|
|
88
|
+
channel: dispatchTarget.channel,
|
|
89
|
+
targetId: dispatchTarget.chatId,
|
|
90
|
+
sessionId,
|
|
91
|
+
text: queuedText,
|
|
92
|
+
...(dispatchTarget.chatType ? { targetType: dispatchTarget.chatType } : {}),
|
|
93
|
+
...(typeof dispatchTarget.messageThreadId === "number"
|
|
94
|
+
? { threadId: dispatchTarget.messageThreadId }
|
|
95
|
+
: {}),
|
|
96
|
+
...(dispatchTarget.messageId ? { messageId: dispatchTarget.messageId } : {}),
|
|
97
|
+
sessionPersisted: true,
|
|
98
|
+
extra: ingressExtra,
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
success: true,
|
|
103
|
+
queued: true,
|
|
104
|
+
queueItemId: enqueueResult.itemId,
|
|
105
|
+
queuePosition: enqueueResult.lanePosition,
|
|
106
|
+
userVisible: "",
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const session = params.agentState.getSession(sessionId);
|
|
111
|
+
await session.appendUserMessage({
|
|
112
|
+
text: executeInput,
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
const result = await session.run({
|
|
116
|
+
query: executeInput,
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
const userVisible = pickLastSuccessfulChatSendText(result.assistantMessage).trim();
|
|
120
|
+
try {
|
|
121
|
+
const messageForPersistence = resolveAssistantMessageForPersistence(
|
|
122
|
+
result.assistantMessage,
|
|
123
|
+
);
|
|
124
|
+
if (messageForPersistence) {
|
|
125
|
+
await session.appendAssistantMessage({
|
|
126
|
+
message: messageForPersistence,
|
|
127
|
+
fallbackText: userVisible,
|
|
128
|
+
extra: {
|
|
129
|
+
via: "tui_session_execute",
|
|
130
|
+
note: "assistant_message_missing",
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
const deferredInjectedMessages = drainDeferredPersistedUserMessages(
|
|
135
|
+
sessionId,
|
|
136
|
+
);
|
|
137
|
+
for (const message of deferredInjectedMessages) {
|
|
138
|
+
await session.appendUserMessage({
|
|
139
|
+
message,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
} catch {
|
|
143
|
+
// ignore
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
...result,
|
|
148
|
+
userVisible,
|
|
149
|
+
queued: false,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Control execute 输入拼装 helper。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 负责把 API 传入的附件规范化并落盘。
|
|
6
|
+
* - 最终统一转成 `<file>` 标签注入到 user message。
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import fs from "fs-extra";
|
|
10
|
+
import path from "node:path";
|
|
11
|
+
import { getCacheDirPath } from "@/config/Paths.js";
|
|
12
|
+
import { renderChatMessageFileTag } from "@/service/builtins/chat/runtime/ChatMessageMarkup.js";
|
|
13
|
+
import type {
|
|
14
|
+
ControlSessionExecuteAttachmentInput,
|
|
15
|
+
ControlSessionExecuteAttachmentType,
|
|
16
|
+
} from "@/shared/types/ControlSessionExecute.js";
|
|
17
|
+
|
|
18
|
+
const EXECUTE_ATTACHMENT_MAX_COUNT = 8;
|
|
19
|
+
const EXECUTE_ATTACHMENT_MAX_BYTES = 2 * 1024 * 1024;
|
|
20
|
+
const EXECUTE_ATTACHMENT_CONTENT_MAX_CHARS = 1_500_000;
|
|
21
|
+
const EXECUTE_ATTACHMENT_FALLBACK_TEXT = "请查看以上附件并按用户要求处理。";
|
|
22
|
+
|
|
23
|
+
function normalizeExecuteAttachmentType(
|
|
24
|
+
value: unknown,
|
|
25
|
+
): ControlSessionExecuteAttachmentType {
|
|
26
|
+
const raw = String(value || "")
|
|
27
|
+
.trim()
|
|
28
|
+
.toLowerCase();
|
|
29
|
+
if (
|
|
30
|
+
raw === "photo" ||
|
|
31
|
+
raw === "voice" ||
|
|
32
|
+
raw === "audio" ||
|
|
33
|
+
raw === "video"
|
|
34
|
+
) {
|
|
35
|
+
return raw;
|
|
36
|
+
}
|
|
37
|
+
return "document";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function normalizeAttachmentCaption(value: unknown): string | undefined {
|
|
41
|
+
const text = String(value || "")
|
|
42
|
+
.replace(/\r?\n+/g, " ")
|
|
43
|
+
.replace(/\s+/g, " ")
|
|
44
|
+
.replace(/\|/g, "/")
|
|
45
|
+
.trim();
|
|
46
|
+
if (!text) return undefined;
|
|
47
|
+
return text.slice(0, 180);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function toProjectRelativePath(projectRoot: string, absPath: string): string | null {
|
|
51
|
+
const relative = path.relative(projectRoot, absPath);
|
|
52
|
+
if (!relative) return null;
|
|
53
|
+
if (relative.startsWith("..")) return null;
|
|
54
|
+
if (path.isAbsolute(relative)) return null;
|
|
55
|
+
return relative.split(path.sep).join("/");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function normalizeAttachmentFileName(params: {
|
|
59
|
+
fileName?: string;
|
|
60
|
+
fallbackExt: string;
|
|
61
|
+
}): string {
|
|
62
|
+
const raw = String(params.fileName || "").trim();
|
|
63
|
+
const base = (raw || "attachment")
|
|
64
|
+
.replace(/[\\/:*?"<>|]/g, "-")
|
|
65
|
+
.replace(/\s+/g, "-")
|
|
66
|
+
.replace(/-+/g, "-")
|
|
67
|
+
.replace(/^\.+/, "")
|
|
68
|
+
.replace(/^-+|-+$/g, "")
|
|
69
|
+
.slice(0, 72);
|
|
70
|
+
const safeBase = base || "attachment";
|
|
71
|
+
const fallbackExt = params.fallbackExt.startsWith(".")
|
|
72
|
+
? params.fallbackExt
|
|
73
|
+
: `.${params.fallbackExt}`;
|
|
74
|
+
const hasExt = /\.[A-Za-z0-9]+$/.test(safeBase);
|
|
75
|
+
return hasExt ? safeBase : `${safeBase}${fallbackExt}`;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function inferAttachmentExt(params: {
|
|
79
|
+
type: ControlSessionExecuteAttachmentType;
|
|
80
|
+
fileName?: string;
|
|
81
|
+
contentType?: string;
|
|
82
|
+
}): string {
|
|
83
|
+
const fromFileName = path.extname(String(params.fileName || "").trim())
|
|
84
|
+
.toLowerCase()
|
|
85
|
+
.trim();
|
|
86
|
+
if (fromFileName) return fromFileName;
|
|
87
|
+
const contentType = String(params.contentType || "").toLowerCase();
|
|
88
|
+
if (contentType.includes("markdown")) return ".md";
|
|
89
|
+
if (contentType.includes("json")) return ".json";
|
|
90
|
+
if (contentType.includes("html")) return ".html";
|
|
91
|
+
if (contentType.includes("plain")) return ".txt";
|
|
92
|
+
if (params.type === "photo") return ".jpg";
|
|
93
|
+
if (params.type === "voice" || params.type === "audio") return ".mp3";
|
|
94
|
+
if (params.type === "video") return ".mp4";
|
|
95
|
+
return ".md";
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
async function resolveAttachmentPathFromInput(params: {
|
|
99
|
+
projectRoot: string;
|
|
100
|
+
attachment: ControlSessionExecuteAttachmentInput;
|
|
101
|
+
}): Promise<string | null> {
|
|
102
|
+
const rawPath = String(params.attachment.path || "").trim();
|
|
103
|
+
if (!rawPath) return null;
|
|
104
|
+
const abs = path.isAbsolute(rawPath)
|
|
105
|
+
? path.normalize(rawPath)
|
|
106
|
+
: path.resolve(params.projectRoot, rawPath);
|
|
107
|
+
const relative = toProjectRelativePath(params.projectRoot, abs);
|
|
108
|
+
if (!relative) return null;
|
|
109
|
+
const stat = await fs
|
|
110
|
+
.stat(abs)
|
|
111
|
+
.then((value) => value)
|
|
112
|
+
.catch(() => null);
|
|
113
|
+
if (!stat?.isFile()) return null;
|
|
114
|
+
return relative;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function resolveAttachmentBytes(
|
|
118
|
+
attachment: ControlSessionExecuteAttachmentInput,
|
|
119
|
+
): Buffer | null {
|
|
120
|
+
const textContent =
|
|
121
|
+
typeof attachment.content === "string" ? attachment.content : "";
|
|
122
|
+
if (textContent) {
|
|
123
|
+
const clipped = textContent.slice(0, EXECUTE_ATTACHMENT_CONTENT_MAX_CHARS);
|
|
124
|
+
return Buffer.from(clipped, "utf8");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const base64 = String(attachment.contentBase64 || "").trim();
|
|
128
|
+
if (!base64) return null;
|
|
129
|
+
try {
|
|
130
|
+
return Buffer.from(base64, "base64");
|
|
131
|
+
} catch {
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
async function materializeAttachmentContent(params: {
|
|
137
|
+
projectRoot: string;
|
|
138
|
+
sessionId: string;
|
|
139
|
+
attachment: ControlSessionExecuteAttachmentInput;
|
|
140
|
+
index: number;
|
|
141
|
+
}): Promise<string | null> {
|
|
142
|
+
const bytes = resolveAttachmentBytes(params.attachment);
|
|
143
|
+
if (!bytes || bytes.length <= 0) return null;
|
|
144
|
+
if (bytes.length > EXECUTE_ATTACHMENT_MAX_BYTES) {
|
|
145
|
+
throw new Error(
|
|
146
|
+
`Attachment too large (>${EXECUTE_ATTACHMENT_MAX_BYTES} bytes)`,
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const type = normalizeExecuteAttachmentType(params.attachment.type);
|
|
151
|
+
const ext = inferAttachmentExt({
|
|
152
|
+
type,
|
|
153
|
+
fileName: params.attachment.fileName,
|
|
154
|
+
contentType: params.attachment.contentType,
|
|
155
|
+
});
|
|
156
|
+
const safeName = normalizeAttachmentFileName({
|
|
157
|
+
fileName: params.attachment.fileName,
|
|
158
|
+
fallbackExt: ext,
|
|
159
|
+
});
|
|
160
|
+
const safeContext = String(params.sessionId || "session")
|
|
161
|
+
.replace(/[^A-Za-z0-9_-]+/g, "-")
|
|
162
|
+
.replace(/-+/g, "-")
|
|
163
|
+
.replace(/^-+|-+$/g, "")
|
|
164
|
+
.slice(0, 32);
|
|
165
|
+
const prefix = safeContext || "context";
|
|
166
|
+
const fileName = `${Date.now()}-${prefix}-${String(params.index + 1).padStart(2, "0")}-${safeName}`;
|
|
167
|
+
const cacheDir = path.join(getCacheDirPath(params.projectRoot), "chrome-extension");
|
|
168
|
+
await fs.ensureDir(cacheDir);
|
|
169
|
+
const absPath = path.join(cacheDir, fileName);
|
|
170
|
+
await fs.writeFile(absPath, bytes);
|
|
171
|
+
return toProjectRelativePath(params.projectRoot, absPath);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function toAttachmentLine(params: {
|
|
175
|
+
type: ControlSessionExecuteAttachmentType;
|
|
176
|
+
relativePath: string;
|
|
177
|
+
caption?: string;
|
|
178
|
+
}): string {
|
|
179
|
+
return renderChatMessageFileTag({
|
|
180
|
+
type: params.type,
|
|
181
|
+
path: params.relativePath,
|
|
182
|
+
...(params.caption ? { caption: params.caption } : {}),
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* 构造 execute 入站文本。
|
|
188
|
+
*/
|
|
189
|
+
export async function buildExecuteInputText(params: {
|
|
190
|
+
projectRoot: string;
|
|
191
|
+
sessionId: string;
|
|
192
|
+
instructions: string;
|
|
193
|
+
attachments?: ControlSessionExecuteAttachmentInput[];
|
|
194
|
+
}): Promise<string> {
|
|
195
|
+
const instructions = String(params.instructions || "").trim();
|
|
196
|
+
const inputAttachments = Array.isArray(params.attachments)
|
|
197
|
+
? params.attachments.slice(0, EXECUTE_ATTACHMENT_MAX_COUNT)
|
|
198
|
+
: [];
|
|
199
|
+
if (inputAttachments.length === 0) return instructions;
|
|
200
|
+
|
|
201
|
+
const lines: string[] = [];
|
|
202
|
+
for (let index = 0; index < inputAttachments.length; index += 1) {
|
|
203
|
+
const attachment = inputAttachments[index];
|
|
204
|
+
if (!attachment || typeof attachment !== "object") continue;
|
|
205
|
+
const type = normalizeExecuteAttachmentType(attachment.type);
|
|
206
|
+
const caption = normalizeAttachmentCaption(attachment.caption);
|
|
207
|
+
|
|
208
|
+
const reusePath = await resolveAttachmentPathFromInput({
|
|
209
|
+
projectRoot: params.projectRoot,
|
|
210
|
+
attachment,
|
|
211
|
+
});
|
|
212
|
+
const relativePath =
|
|
213
|
+
reusePath ||
|
|
214
|
+
(await materializeAttachmentContent({
|
|
215
|
+
projectRoot: params.projectRoot,
|
|
216
|
+
sessionId: params.sessionId,
|
|
217
|
+
attachment,
|
|
218
|
+
index,
|
|
219
|
+
}));
|
|
220
|
+
if (!relativePath) continue;
|
|
221
|
+
|
|
222
|
+
lines.push(
|
|
223
|
+
toAttachmentLine({
|
|
224
|
+
type,
|
|
225
|
+
relativePath,
|
|
226
|
+
...(caption ? { caption } : {}),
|
|
227
|
+
}),
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (lines.length === 0) return instructions;
|
|
232
|
+
return [lines.join("\n"), instructions || EXECUTE_ATTACHMENT_FALLBACK_TEXT]
|
|
233
|
+
.filter(Boolean)
|
|
234
|
+
.join("\n\n")
|
|
235
|
+
.trim();
|
|
236
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Control helper 聚合出口。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 兼容控制面路由层的统一 import 路径。
|
|
6
|
+
* - 具体实现已拆分到独立子模块,避免单文件继续膨胀。
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { toLimit, toOptionalString, decodeMaybe } from "./CommonHelpers.js";
|
|
10
|
+
export { buildExecuteInputText } from "./ExecuteInput.js";
|
|
11
|
+
export {
|
|
12
|
+
loadSessionMessagesFromFile,
|
|
13
|
+
resolveUiMessagePreview,
|
|
14
|
+
toUiMessageTimeline,
|
|
15
|
+
} from "./MessageTimeline.js";
|
|
16
|
+
export { listControlSessionSummaries } from "./SessionSummaryStore.js";
|
|
17
|
+
export {
|
|
18
|
+
TASK_RUN_DIR_REGEX,
|
|
19
|
+
listTaskRuns,
|
|
20
|
+
readRecentLogs,
|
|
21
|
+
readTaskRunDetail,
|
|
22
|
+
} from "./TaskStore.js";
|