@downcity/agent 1.1.1 → 1.1.6
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 +60 -0
- package/bin/host/sdk/Agent.d.ts.map +1 -0
- package/bin/host/sdk/Agent.js +308 -0
- package/bin/host/sdk/Agent.js.map +1 -0
- package/bin/host/sdk/AgentSdkTypes.d.ts +257 -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 +92 -6
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +89 -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 +354 -0
- package/src/host/sdk/AgentSdkTypes.ts +286 -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 +209 -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,579 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shell action 运行时编排入口。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 这里只负责编排 shell service 的公开动作:start/status/read/write/wait/close/exec。
|
|
6
|
+
* - 持久化、输出裁剪、waiter 协调、session 查找等共享细节拆到 `ShellActionRuntimeSupport.ts`。
|
|
7
|
+
* - 新版本所有状态都通过 ShellServiceState 显式传入,不再使用模块级单例。
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import fs from "fs-extra";
|
|
11
|
+
import type { AgentContext } from "@/agent/AgentContextTypes.js";
|
|
12
|
+
import { spawnShellProcess } from "@/sandbox/SandboxRunner.js";
|
|
13
|
+
import type {
|
|
14
|
+
ShellServiceState,
|
|
15
|
+
ShellSessionRuntimeState,
|
|
16
|
+
ShellSessionWaiter,
|
|
17
|
+
} from "@/service/builtins/shell/ShellRuntimeTypes.js";
|
|
18
|
+
import { generateId } from "@shared/utils/Id.js";
|
|
19
|
+
import type {
|
|
20
|
+
ShellActionResponse,
|
|
21
|
+
ShellCloseRequest,
|
|
22
|
+
ShellExecRequest,
|
|
23
|
+
ShellQueryRequest,
|
|
24
|
+
ShellReadRequest,
|
|
25
|
+
ShellStartRequest,
|
|
26
|
+
ShellWaitRequest,
|
|
27
|
+
ShellWriteRequest,
|
|
28
|
+
} from "@/service/builtins/shell/types/ShellService.js";
|
|
29
|
+
import { getShellDir, getShellOutputPath, getShellSnapshotPath } from "./Paths.js";
|
|
30
|
+
import {
|
|
31
|
+
appendSessionOutput,
|
|
32
|
+
buildActionResponse,
|
|
33
|
+
buildShellEnv,
|
|
34
|
+
clampWaitMs,
|
|
35
|
+
createOutputChunk,
|
|
36
|
+
createShellServiceState,
|
|
37
|
+
DEFAULT_EXEC_TIMEOUT_MS,
|
|
38
|
+
DEFAULT_INLINE_WAIT_MS,
|
|
39
|
+
DEFAULT_WAIT_TIMEOUT_MS,
|
|
40
|
+
ensureCapacity,
|
|
41
|
+
finalizeExit,
|
|
42
|
+
isInMemorySession,
|
|
43
|
+
isTerminalStatus,
|
|
44
|
+
nowMs,
|
|
45
|
+
persistSnapshot,
|
|
46
|
+
resolveOwnerContextId,
|
|
47
|
+
resolveSession,
|
|
48
|
+
resolveShellCwd,
|
|
49
|
+
scheduleCleanup,
|
|
50
|
+
updateSessionSnapshot,
|
|
51
|
+
} from "./ShellActionRuntimeSupport.js";
|
|
52
|
+
|
|
53
|
+
export { createShellServiceState } from "./ShellActionRuntimeSupport.js";
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 绑定当前 shell service 实例的 execution runtime。
|
|
57
|
+
*/
|
|
58
|
+
export function bindShellRuntime(
|
|
59
|
+
state: ShellServiceState,
|
|
60
|
+
context: AgentContext,
|
|
61
|
+
): void {
|
|
62
|
+
state.boundRuntime = context;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 关闭当前实例持有的所有活动 shell。
|
|
67
|
+
*/
|
|
68
|
+
export async function closeAllShellSessions(
|
|
69
|
+
state: ShellServiceState,
|
|
70
|
+
force = false,
|
|
71
|
+
): Promise<void> {
|
|
72
|
+
const closing = Array.from(state.sessions.values()).map(async (session) => {
|
|
73
|
+
if (
|
|
74
|
+
session.snapshot.status !== "running" &&
|
|
75
|
+
session.snapshot.status !== "starting"
|
|
76
|
+
) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
try {
|
|
80
|
+
session.child.kill(force ? "SIGKILL" : "SIGTERM");
|
|
81
|
+
} catch {
|
|
82
|
+
// ignore
|
|
83
|
+
}
|
|
84
|
+
await updateSessionSnapshot(session, (snapshot) => {
|
|
85
|
+
snapshot.status = force ? "killed" : "failed";
|
|
86
|
+
snapshot.exitCode = force ? -9 : -15;
|
|
87
|
+
snapshot.endedAt = nowMs();
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
await Promise.all(closing);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
async function finalizeExitAfterOutputDrain(
|
|
94
|
+
state: ShellServiceState,
|
|
95
|
+
session: ShellSessionRuntimeState,
|
|
96
|
+
exitCode: number,
|
|
97
|
+
): Promise<void> {
|
|
98
|
+
// 关键点(中文)
|
|
99
|
+
// - `close` 事件到达时,stdout / stderr 的异步 append 链可能刚刚开始收尾。
|
|
100
|
+
// - 这里先让出一个事件循环 tick,再等待当前 writeChain,可显著降低“终态已到但尾部输出尚未可读”的竞态。
|
|
101
|
+
await new Promise<void>((resolve) => {
|
|
102
|
+
const timer = setImmediate(resolve);
|
|
103
|
+
if (typeof timer.unref === "function") timer.unref();
|
|
104
|
+
});
|
|
105
|
+
await session.writeChain.catch(() => undefined);
|
|
106
|
+
await finalizeExit(state, session, exitCode);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* 启动一个 shell session。
|
|
111
|
+
*/
|
|
112
|
+
export async function startShellSession(
|
|
113
|
+
state: ShellServiceState,
|
|
114
|
+
context: AgentContext,
|
|
115
|
+
request: ShellStartRequest,
|
|
116
|
+
): Promise<ShellActionResponse> {
|
|
117
|
+
const cmd = String(request.cmd || "").trim();
|
|
118
|
+
if (!cmd) throw new Error("shell.start requires a non-empty cmd");
|
|
119
|
+
ensureCapacity(state);
|
|
120
|
+
bindShellRuntime(state, context);
|
|
121
|
+
|
|
122
|
+
const shellId = `sh_${generateId()}`;
|
|
123
|
+
const cwd = resolveShellCwd(context, request.cwd);
|
|
124
|
+
const shellPath =
|
|
125
|
+
String(request.shell || process.env.SHELL || "/bin/zsh").trim() || "/bin/zsh";
|
|
126
|
+
const login = request.login !== false;
|
|
127
|
+
const ownerContextId = resolveOwnerContextId(request.ownerContextId);
|
|
128
|
+
const canAutoNotifyByContext = ownerContextId
|
|
129
|
+
? Boolean(
|
|
130
|
+
await context.chat.readMetaBySessionId(ownerContextId),
|
|
131
|
+
)
|
|
132
|
+
: false;
|
|
133
|
+
const shellDir = getShellDir(context.rootPath, shellId);
|
|
134
|
+
const snapshotFilePath = getShellSnapshotPath(context.rootPath, shellId);
|
|
135
|
+
const outputFilePath = getShellOutputPath(context.rootPath, shellId);
|
|
136
|
+
|
|
137
|
+
await fs.ensureDir(shellDir);
|
|
138
|
+
await fs.writeFile(outputFilePath, "", "utf-8");
|
|
139
|
+
|
|
140
|
+
const spawnResult = await spawnShellProcess({
|
|
141
|
+
context,
|
|
142
|
+
shellId,
|
|
143
|
+
shellDir,
|
|
144
|
+
cmd,
|
|
145
|
+
cwd,
|
|
146
|
+
shellPath,
|
|
147
|
+
login,
|
|
148
|
+
baseEnv: buildShellEnv(context),
|
|
149
|
+
});
|
|
150
|
+
const child = spawnResult.child;
|
|
151
|
+
const actualCwd = spawnResult.cwd;
|
|
152
|
+
|
|
153
|
+
const startedAt = nowMs();
|
|
154
|
+
let resolveCompletion: () => void = () => {};
|
|
155
|
+
const completionPromise = new Promise<void>((resolve) => {
|
|
156
|
+
resolveCompletion = resolve;
|
|
157
|
+
});
|
|
158
|
+
const session: ShellSessionRuntimeState = {
|
|
159
|
+
snapshot: {
|
|
160
|
+
shellId,
|
|
161
|
+
...(ownerContextId ? { ownerContextId } : {}),
|
|
162
|
+
cmd,
|
|
163
|
+
cwd: actualCwd,
|
|
164
|
+
shellPath,
|
|
165
|
+
sandboxed: spawnResult.sandboxed,
|
|
166
|
+
sandboxBackend: spawnResult.backend,
|
|
167
|
+
sandboxNetworkMode: spawnResult.networkMode,
|
|
168
|
+
status: "running",
|
|
169
|
+
...(typeof child.pid === "number" ? { pid: child.pid } : {}),
|
|
170
|
+
startedAt,
|
|
171
|
+
updatedAt: startedAt,
|
|
172
|
+
outputChars: 0,
|
|
173
|
+
droppedChars: 0,
|
|
174
|
+
version: 1,
|
|
175
|
+
autoNotifyOnExit: request.autoNotifyOnExit === true,
|
|
176
|
+
notificationSent: false,
|
|
177
|
+
externalRefs: [],
|
|
178
|
+
},
|
|
179
|
+
child,
|
|
180
|
+
outputText: "",
|
|
181
|
+
outputFilePath,
|
|
182
|
+
snapshotFilePath,
|
|
183
|
+
writeChain: Promise.resolve(),
|
|
184
|
+
cleanupTimer: null,
|
|
185
|
+
waiters: new Set<ShellSessionWaiter>(),
|
|
186
|
+
completionPromise,
|
|
187
|
+
resolveCompletion,
|
|
188
|
+
};
|
|
189
|
+
state.sessions.set(shellId, session);
|
|
190
|
+
|
|
191
|
+
// 关键点(中文)
|
|
192
|
+
// - 监听器必须在任何 `await` 之前挂上。
|
|
193
|
+
// - 对于 `printf` 这类瞬时命令,进程可能在持久化 snapshot 期间就已经退出。
|
|
194
|
+
// - 如果先 `await persistSnapshot()` 再注册 `close`,会错过退出事件,导致 session 永远停在 running。
|
|
195
|
+
child.stdout.on("data", (chunk: string | Buffer) => {
|
|
196
|
+
void appendSessionOutput(session, String(chunk ?? "")).catch(() => undefined);
|
|
197
|
+
});
|
|
198
|
+
child.stderr.on("data", (chunk: string | Buffer) => {
|
|
199
|
+
void appendSessionOutput(session, String(chunk ?? "")).catch(() => undefined);
|
|
200
|
+
});
|
|
201
|
+
child.on("error", (error: Error) => {
|
|
202
|
+
void appendSessionOutput(session, `\n[process error] ${String(error)}\n`).catch(
|
|
203
|
+
() => undefined,
|
|
204
|
+
);
|
|
205
|
+
void finalizeExitAfterOutputDrain(state, session, -1).catch(() => undefined);
|
|
206
|
+
});
|
|
207
|
+
child.on("close", (code: number | null) => {
|
|
208
|
+
void finalizeExitAfterOutputDrain(
|
|
209
|
+
state,
|
|
210
|
+
session,
|
|
211
|
+
typeof code === "number" ? code : -1,
|
|
212
|
+
).catch(() => undefined);
|
|
213
|
+
});
|
|
214
|
+
await persistSnapshot(session);
|
|
215
|
+
|
|
216
|
+
const inlineWaitMs = clampWaitMs(request.inlineWaitMs, DEFAULT_INLINE_WAIT_MS);
|
|
217
|
+
await waitShellSession(state, context, {
|
|
218
|
+
shellId,
|
|
219
|
+
afterVersion: 1,
|
|
220
|
+
fromCursor: 0,
|
|
221
|
+
timeoutMs: inlineWaitMs,
|
|
222
|
+
maxOutputTokens: request.maxOutputTokens,
|
|
223
|
+
}).catch(() => undefined);
|
|
224
|
+
|
|
225
|
+
const latest = await resolveSession(state, context, { shellId, includeCompleted: true });
|
|
226
|
+
if (!latest) {
|
|
227
|
+
throw new Error(`shell session disappeared unexpectedly: ${shellId}`);
|
|
228
|
+
}
|
|
229
|
+
if (
|
|
230
|
+
isInMemorySession(latest) &&
|
|
231
|
+
latest.snapshot.status === "running" &&
|
|
232
|
+
latest.snapshot.autoNotifyOnExit === false &&
|
|
233
|
+
request.autoNotifyOnExit !== false &&
|
|
234
|
+
canAutoNotifyByContext
|
|
235
|
+
) {
|
|
236
|
+
latest.snapshot.autoNotifyOnExit = true;
|
|
237
|
+
await persistSnapshot(latest);
|
|
238
|
+
}
|
|
239
|
+
const chunk = createOutputChunk({
|
|
240
|
+
shellId,
|
|
241
|
+
outputText: latest.outputText,
|
|
242
|
+
fromCursor: 0,
|
|
243
|
+
context,
|
|
244
|
+
maxOutputTokens: request.maxOutputTokens,
|
|
245
|
+
});
|
|
246
|
+
return buildActionResponse({
|
|
247
|
+
shell: latest.snapshot,
|
|
248
|
+
chunk,
|
|
249
|
+
note:
|
|
250
|
+
latest.snapshot.status === "running"
|
|
251
|
+
? "shell started and is still running"
|
|
252
|
+
: "shell finished during inline wait",
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* 查询 shell session 状态。
|
|
258
|
+
*/
|
|
259
|
+
export async function getShellSessionStatus(
|
|
260
|
+
state: ShellServiceState,
|
|
261
|
+
context: AgentContext,
|
|
262
|
+
request: ShellQueryRequest,
|
|
263
|
+
): Promise<ShellActionResponse> {
|
|
264
|
+
const session = await resolveSession(state, context, {
|
|
265
|
+
...request,
|
|
266
|
+
includeCompleted: request.includeCompleted !== false,
|
|
267
|
+
});
|
|
268
|
+
if (!session) {
|
|
269
|
+
throw new Error("shell session not found");
|
|
270
|
+
}
|
|
271
|
+
return buildActionResponse({
|
|
272
|
+
shell: session.snapshot,
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* 读取 shell session 输出。
|
|
278
|
+
*/
|
|
279
|
+
export async function readShellSession(
|
|
280
|
+
state: ShellServiceState,
|
|
281
|
+
context: AgentContext,
|
|
282
|
+
request: ShellReadRequest,
|
|
283
|
+
): Promise<ShellActionResponse> {
|
|
284
|
+
const session = await resolveSession(state, context, {
|
|
285
|
+
...request,
|
|
286
|
+
includeCompleted: request.includeCompleted !== false,
|
|
287
|
+
});
|
|
288
|
+
if (!session) {
|
|
289
|
+
throw new Error("shell session not found");
|
|
290
|
+
}
|
|
291
|
+
const chunk = createOutputChunk({
|
|
292
|
+
shellId: session.snapshot.shellId,
|
|
293
|
+
outputText: session.outputText,
|
|
294
|
+
fromCursor: request.fromCursor,
|
|
295
|
+
context,
|
|
296
|
+
maxOutputTokens: request.maxOutputTokens,
|
|
297
|
+
});
|
|
298
|
+
return buildActionResponse({
|
|
299
|
+
shell: session.snapshot,
|
|
300
|
+
chunk,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* 向 shell session 写入 stdin。
|
|
306
|
+
*/
|
|
307
|
+
export async function writeShellSession(
|
|
308
|
+
state: ShellServiceState,
|
|
309
|
+
context: AgentContext,
|
|
310
|
+
request: ShellWriteRequest,
|
|
311
|
+
): Promise<ShellActionResponse> {
|
|
312
|
+
const shellId = String(request.shellId || "").trim();
|
|
313
|
+
const chars = String(request.chars ?? "");
|
|
314
|
+
if (!shellId) throw new Error("shell.write requires shellId");
|
|
315
|
+
const session = await resolveSession(state, context, {
|
|
316
|
+
shellId,
|
|
317
|
+
includeCompleted: true,
|
|
318
|
+
});
|
|
319
|
+
if (!session || !isInMemorySession(session)) {
|
|
320
|
+
throw new Error("shell session is not active in memory");
|
|
321
|
+
}
|
|
322
|
+
if (session.snapshot.status !== "running" && session.snapshot.status !== "starting") {
|
|
323
|
+
throw new Error(`shell session ${shellId} is not running`);
|
|
324
|
+
}
|
|
325
|
+
if (!session.child.stdin.writable) {
|
|
326
|
+
throw new Error(`shell session ${shellId} stdin is closed`);
|
|
327
|
+
}
|
|
328
|
+
await new Promise<void>((resolve, reject) => {
|
|
329
|
+
session.child.stdin.write(chars, (error) => {
|
|
330
|
+
if (error) {
|
|
331
|
+
reject(error);
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
resolve();
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
return buildActionResponse({
|
|
338
|
+
shell: session.snapshot,
|
|
339
|
+
note: chars ? "stdin written" : "no chars written",
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* 等待 shell session 状态变化。
|
|
345
|
+
*/
|
|
346
|
+
export async function waitShellSession(
|
|
347
|
+
state: ShellServiceState,
|
|
348
|
+
context: AgentContext,
|
|
349
|
+
request: ShellWaitRequest,
|
|
350
|
+
): Promise<ShellActionResponse> {
|
|
351
|
+
const shellId = String(request.shellId || "").trim();
|
|
352
|
+
if (!shellId) throw new Error("shell.wait requires shellId");
|
|
353
|
+
const session = await resolveSession(state, context, {
|
|
354
|
+
shellId,
|
|
355
|
+
includeCompleted: true,
|
|
356
|
+
});
|
|
357
|
+
if (!session) throw new Error("shell session not found");
|
|
358
|
+
|
|
359
|
+
if (
|
|
360
|
+
isInMemorySession(session) &&
|
|
361
|
+
typeof request.afterVersion === "number" &&
|
|
362
|
+
session.snapshot.version <= request.afterVersion &&
|
|
363
|
+
(session.snapshot.status === "running" || session.snapshot.status === "starting")
|
|
364
|
+
) {
|
|
365
|
+
const afterVersion = request.afterVersion;
|
|
366
|
+
await new Promise<void>((resolve) => {
|
|
367
|
+
let settled = false;
|
|
368
|
+
let waiter: ShellSessionWaiter;
|
|
369
|
+
const finish = (): void => {
|
|
370
|
+
if (settled) return;
|
|
371
|
+
settled = true;
|
|
372
|
+
clearTimeout(waiter.timer);
|
|
373
|
+
session.waiters.delete(waiter);
|
|
374
|
+
resolve();
|
|
375
|
+
};
|
|
376
|
+
const timer = setTimeout(() => {
|
|
377
|
+
finish();
|
|
378
|
+
}, clampWaitMs(request.timeoutMs, DEFAULT_WAIT_TIMEOUT_MS));
|
|
379
|
+
waiter = {
|
|
380
|
+
resolve: finish,
|
|
381
|
+
timer,
|
|
382
|
+
};
|
|
383
|
+
session.waiters.add(waiter);
|
|
384
|
+
|
|
385
|
+
// 关键点(中文)
|
|
386
|
+
// - 这里必须在注册 waiter 之后立刻复查一次状态。
|
|
387
|
+
// - 否则如果 shell 恰好在“进入 if 判断”与“waiter 真正挂入集合”之间完成,
|
|
388
|
+
// notifyWaiters 会被错过,导致当前 wait 一直睡到 timeout。
|
|
389
|
+
if (
|
|
390
|
+
session.snapshot.version > afterVersion ||
|
|
391
|
+
isTerminalStatus(session.snapshot.status)
|
|
392
|
+
) {
|
|
393
|
+
finish();
|
|
394
|
+
}
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
const refreshed = await resolveSession(state, context, {
|
|
399
|
+
shellId,
|
|
400
|
+
includeCompleted: true,
|
|
401
|
+
});
|
|
402
|
+
if (!refreshed) throw new Error("shell session not found after wait");
|
|
403
|
+
const chunk = createOutputChunk({
|
|
404
|
+
shellId,
|
|
405
|
+
outputText: refreshed.outputText,
|
|
406
|
+
fromCursor: request.fromCursor,
|
|
407
|
+
context,
|
|
408
|
+
maxOutputTokens: request.maxOutputTokens,
|
|
409
|
+
});
|
|
410
|
+
return buildActionResponse({
|
|
411
|
+
shell: refreshed.snapshot,
|
|
412
|
+
chunk,
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* 关闭 shell session。
|
|
418
|
+
*/
|
|
419
|
+
export async function closeShellSession(
|
|
420
|
+
state: ShellServiceState,
|
|
421
|
+
context: AgentContext,
|
|
422
|
+
request: ShellCloseRequest,
|
|
423
|
+
): Promise<ShellActionResponse> {
|
|
424
|
+
const shellId = String(request.shellId || "").trim();
|
|
425
|
+
if (!shellId) throw new Error("shell.close requires shellId");
|
|
426
|
+
const session = await resolveSession(state, context, {
|
|
427
|
+
shellId,
|
|
428
|
+
includeCompleted: true,
|
|
429
|
+
});
|
|
430
|
+
if (!session) throw new Error("shell session not found");
|
|
431
|
+
|
|
432
|
+
if (!isInMemorySession(session)) {
|
|
433
|
+
return buildActionResponse({
|
|
434
|
+
shell: session.snapshot,
|
|
435
|
+
note: "shell already completed and only persisted snapshot remains",
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (session.cleanupTimer) {
|
|
440
|
+
clearTimeout(session.cleanupTimer);
|
|
441
|
+
session.cleanupTimer = null;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if (session.snapshot.status === "running" || session.snapshot.status === "starting") {
|
|
445
|
+
try {
|
|
446
|
+
session.child.kill(request.force === true ? "SIGKILL" : "SIGTERM");
|
|
447
|
+
} catch {
|
|
448
|
+
// ignore
|
|
449
|
+
}
|
|
450
|
+
await updateSessionSnapshot(session, (snapshot) => {
|
|
451
|
+
snapshot.status = request.force === true ? "killed" : "failed";
|
|
452
|
+
snapshot.exitCode = request.force === true ? -9 : -15;
|
|
453
|
+
snapshot.endedAt = nowMs();
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
scheduleCleanup(state, shellId);
|
|
458
|
+
return buildActionResponse({
|
|
459
|
+
shell: session.snapshot,
|
|
460
|
+
note: "shell close requested",
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* 以 one-shot 模式执行 shell command。
|
|
466
|
+
*/
|
|
467
|
+
export async function execShellCommand(
|
|
468
|
+
state: ShellServiceState,
|
|
469
|
+
context: AgentContext,
|
|
470
|
+
request: ShellExecRequest,
|
|
471
|
+
): Promise<ShellActionResponse> {
|
|
472
|
+
const timeoutMs = clampWaitMs(request.timeoutMs, DEFAULT_EXEC_TIMEOUT_MS);
|
|
473
|
+
const started = await startShellSession(state, context, {
|
|
474
|
+
cmd: request.cmd,
|
|
475
|
+
...(request.cwd ? { cwd: request.cwd } : {}),
|
|
476
|
+
...(request.shell ? { shell: request.shell } : {}),
|
|
477
|
+
login: request.login,
|
|
478
|
+
inlineWaitMs: Math.min(DEFAULT_INLINE_WAIT_MS, timeoutMs),
|
|
479
|
+
maxOutputTokens: request.maxOutputTokens,
|
|
480
|
+
autoNotifyOnExit: false,
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
let current = started;
|
|
484
|
+
let fromCursor = current.chunk?.endCursor ?? 0;
|
|
485
|
+
const outputParts: string[] = [];
|
|
486
|
+
if (current.chunk?.output) {
|
|
487
|
+
outputParts.push(current.chunk.output);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
const deadline = nowMs() + timeoutMs;
|
|
491
|
+
const sleep = async (ms: number): Promise<void> => {
|
|
492
|
+
await new Promise<void>((resolve) => {
|
|
493
|
+
const timer = setTimeout(resolve, ms);
|
|
494
|
+
if (typeof timer.unref === "function") timer.unref();
|
|
495
|
+
});
|
|
496
|
+
};
|
|
497
|
+
while (!isTerminalStatus(current.shell.status)) {
|
|
498
|
+
const remaining = deadline - nowMs();
|
|
499
|
+
if (remaining <= 0) {
|
|
500
|
+
await closeShellSession(state, context, {
|
|
501
|
+
shellId: current.shell.shellId,
|
|
502
|
+
force: true,
|
|
503
|
+
});
|
|
504
|
+
throw new Error(
|
|
505
|
+
`shell.exec timed out after ${timeoutMs}ms. Use shell_start for long-running commands.`,
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
const inMemory = state.sessions.get(current.shell.shellId);
|
|
510
|
+
if (
|
|
511
|
+
inMemory &&
|
|
512
|
+
(inMemory.snapshot.status === "running" ||
|
|
513
|
+
inMemory.snapshot.status === "starting")
|
|
514
|
+
) {
|
|
515
|
+
await Promise.race([
|
|
516
|
+
inMemory.completionPromise,
|
|
517
|
+
sleep(Math.min(remaining, 250)),
|
|
518
|
+
]);
|
|
519
|
+
} else {
|
|
520
|
+
await sleep(Math.min(remaining, 250));
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
const refreshed = await resolveSession(state, context, {
|
|
524
|
+
shellId: current.shell.shellId,
|
|
525
|
+
includeCompleted: true,
|
|
526
|
+
});
|
|
527
|
+
if (!refreshed) {
|
|
528
|
+
throw new Error(`shell session disappeared unexpectedly: ${current.shell.shellId}`);
|
|
529
|
+
}
|
|
530
|
+
const chunk = createOutputChunk({
|
|
531
|
+
shellId: current.shell.shellId,
|
|
532
|
+
outputText: refreshed.outputText,
|
|
533
|
+
fromCursor,
|
|
534
|
+
context,
|
|
535
|
+
maxOutputTokens: request.maxOutputTokens,
|
|
536
|
+
});
|
|
537
|
+
current = buildActionResponse({
|
|
538
|
+
shell: refreshed.snapshot,
|
|
539
|
+
chunk,
|
|
540
|
+
});
|
|
541
|
+
if (chunk.output) {
|
|
542
|
+
outputParts.push(chunk.output);
|
|
543
|
+
}
|
|
544
|
+
if (typeof chunk.endCursor === "number") {
|
|
545
|
+
fromCursor = chunk.endCursor;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
const finalSession = state.sessions.get(current.shell.shellId);
|
|
550
|
+
if (finalSession) {
|
|
551
|
+
await finalSession.completionPromise;
|
|
552
|
+
await finalSession.writeChain.catch(() => undefined);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
await closeShellSession(state, context, {
|
|
556
|
+
shellId: current.shell.shellId,
|
|
557
|
+
force: false,
|
|
558
|
+
}).catch(() => undefined);
|
|
559
|
+
|
|
560
|
+
const completed = await resolveSession(state, context, {
|
|
561
|
+
shellId: current.shell.shellId,
|
|
562
|
+
includeCompleted: true,
|
|
563
|
+
});
|
|
564
|
+
const fullOutput = completed?.outputText ?? outputParts.join("");
|
|
565
|
+
const originalLines = fullOutput ? fullOutput.split("\n").length : 0;
|
|
566
|
+
return buildActionResponse({
|
|
567
|
+
shell: current.shell,
|
|
568
|
+
chunk: {
|
|
569
|
+
shellId: current.shell.shellId,
|
|
570
|
+
output: fullOutput,
|
|
571
|
+
startCursor: 0,
|
|
572
|
+
endCursor: fullOutput.length,
|
|
573
|
+
originalChars: fullOutput.length,
|
|
574
|
+
originalLines,
|
|
575
|
+
hasMoreOutput: false,
|
|
576
|
+
},
|
|
577
|
+
note: "shell exec completed in one-shot mode",
|
|
578
|
+
});
|
|
579
|
+
}
|