@downcity/agent 1.1.1 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +226 -0
- package/bin/agent/AgentContext.d.ts +2 -2
- package/bin/agent/AgentContext.d.ts.map +1 -1
- package/bin/agent/AgentContext.js +4 -4
- package/bin/agent/AgentContext.js.map +1 -1
- package/bin/agent/AgentContextTypes.d.ts +345 -0
- package/bin/agent/AgentContextTypes.d.ts.map +1 -0
- package/bin/agent/AgentContextTypes.js +10 -0
- package/bin/agent/AgentContextTypes.js.map +1 -0
- package/bin/agent/AgentRuntime.js +7 -7
- package/bin/agent/AgentRuntime.js.map +1 -1
- package/bin/agent/AgentRuntimeState.d.ts +2 -2
- package/bin/agent/AgentRuntimeState.d.ts.map +1 -1
- package/bin/agent/AgentRuntimeTypes.d.ts +81 -0
- package/bin/agent/AgentRuntimeTypes.d.ts.map +1 -0
- package/bin/agent/AgentRuntimeTypes.js +10 -0
- package/bin/agent/AgentRuntimeTypes.js.map +1 -0
- package/bin/agent/project/AgentInitializer.d.ts +4 -4
- package/bin/agent/project/AgentInitializer.d.ts.map +1 -1
- package/bin/agent/project/AgentInitializer.js +9 -9
- package/bin/agent/project/AgentInitializer.js.map +1 -1
- package/bin/config/Config.d.ts +2 -2
- package/bin/config/Config.js +7 -7
- package/bin/config/Config.js.map +1 -1
- package/bin/host/daemon/Api.d.ts +60 -0
- package/bin/host/daemon/Api.d.ts.map +1 -0
- package/bin/host/daemon/Api.js.map +1 -0
- package/bin/host/daemon/Client.d.ts.map +1 -0
- package/bin/host/daemon/Client.js +158 -0
- package/bin/host/daemon/Client.js.map +1 -0
- package/bin/host/daemon/Manager.d.ts +92 -0
- package/bin/host/daemon/Manager.d.ts.map +1 -0
- package/bin/host/daemon/Manager.js +287 -0
- package/bin/host/daemon/Manager.js.map +1 -0
- package/bin/host/daemon/ProjectSetup.d.ts.map +1 -0
- package/bin/host/daemon/ProjectSetup.js +101 -0
- package/bin/host/daemon/ProjectSetup.js.map +1 -0
- package/bin/host/rpc/Client.d.ts +13 -0
- package/bin/host/rpc/Client.d.ts.map +1 -0
- package/bin/host/rpc/Client.js.map +1 -0
- package/bin/host/rpc/Paths.d.ts.map +1 -0
- package/bin/host/rpc/Paths.js +36 -0
- package/bin/host/rpc/Paths.js.map +1 -0
- package/bin/host/rpc/Server.d.ts +18 -0
- package/bin/host/rpc/Server.d.ts.map +1 -0
- package/bin/host/rpc/Server.js +307 -0
- package/bin/host/rpc/Server.js.map +1 -0
- package/bin/host/rpc/Transport.d.ts +21 -0
- package/bin/host/rpc/Transport.d.ts.map +1 -0
- package/bin/host/rpc/Transport.js +30 -0
- package/bin/host/rpc/Transport.js.map +1 -0
- package/bin/host/runtime/AgentHostRuntime.d.ts +10 -0
- package/bin/host/runtime/AgentHostRuntime.d.ts.map +1 -0
- package/bin/host/runtime/AgentHostRuntime.js +47 -0
- package/bin/host/runtime/AgentHostRuntime.js.map +1 -0
- package/bin/host/runtime/CityPaths.d.ts +53 -0
- package/bin/host/runtime/CityPaths.d.ts.map +1 -0
- package/bin/host/runtime/CityPaths.js +78 -0
- package/bin/host/runtime/CityPaths.js.map +1 -0
- package/bin/host/runtime/CityRegistry.d.ts +51 -0
- package/bin/host/runtime/CityRegistry.d.ts.map +1 -0
- package/bin/host/runtime/CityRegistry.js +217 -0
- package/bin/host/runtime/CityRegistry.js.map +1 -0
- package/bin/host/runtime/CityRuntime.d.ts +21 -0
- package/bin/host/runtime/CityRuntime.d.ts.map +1 -0
- package/bin/host/runtime/CityRuntime.js +45 -0
- package/bin/host/runtime/CityRuntime.js.map +1 -0
- package/bin/host/runtime/PluginRuntime.d.ts +24 -0
- package/bin/host/runtime/PluginRuntime.d.ts.map +1 -0
- package/bin/host/runtime/PluginRuntime.js.map +1 -0
- package/bin/host/runtime/ProcessSweep.d.ts +76 -0
- package/bin/host/runtime/ProcessSweep.d.ts.map +1 -0
- package/bin/host/runtime/ProcessSweep.js +188 -0
- package/bin/host/runtime/ProcessSweep.js.map +1 -0
- package/bin/host/sdk/Agent.d.ts +55 -0
- package/bin/host/sdk/Agent.d.ts.map +1 -0
- package/bin/host/sdk/Agent.js +288 -0
- package/bin/host/sdk/Agent.js.map +1 -0
- package/bin/host/sdk/AgentSdkTypes.d.ts +247 -0
- package/bin/host/sdk/AgentSdkTypes.d.ts.map +1 -0
- package/bin/host/sdk/AgentSdkTypes.js +10 -0
- package/bin/host/sdk/AgentSdkTypes.js.map +1 -0
- package/bin/host/sdk/AsyncQueue.d.ts +26 -0
- package/bin/host/sdk/AsyncQueue.d.ts.map +1 -0
- package/bin/host/sdk/AsyncQueue.js +75 -0
- package/bin/host/sdk/AsyncQueue.js.map +1 -0
- package/bin/host/sdk/HttpServer.d.ts +40 -0
- package/bin/host/sdk/HttpServer.d.ts.map +1 -0
- package/bin/host/sdk/HttpServer.js +181 -0
- package/bin/host/sdk/HttpServer.js.map +1 -0
- package/bin/host/sdk/Paths.d.ts +48 -0
- package/bin/host/sdk/Paths.d.ts.map +1 -0
- package/bin/host/sdk/Paths.js +69 -0
- package/bin/host/sdk/Paths.js.map +1 -0
- package/bin/host/sdk/RemoteAgent.d.ts +54 -0
- package/bin/host/sdk/RemoteAgent.d.ts.map +1 -0
- package/bin/host/sdk/RemoteAgent.js +153 -0
- package/bin/host/sdk/RemoteAgent.js.map +1 -0
- package/bin/host/sdk/RpcServer.d.ts +31 -0
- package/bin/host/sdk/RpcServer.d.ts.map +1 -0
- package/bin/host/sdk/RpcServer.js +193 -0
- package/bin/host/sdk/RpcServer.js.map +1 -0
- package/bin/host/sdk/SdkSessionSystemComposer.d.ts +34 -0
- package/bin/host/sdk/SdkSessionSystemComposer.d.ts.map +1 -0
- package/bin/host/sdk/SdkSessionSystemComposer.js +54 -0
- package/bin/host/sdk/SdkSessionSystemComposer.js.map +1 -0
- package/bin/host/sdk/Session.d.ts +130 -0
- package/bin/host/sdk/Session.d.ts.map +1 -0
- package/bin/host/sdk/Session.js +451 -0
- package/bin/host/sdk/Session.js.map +1 -0
- package/bin/host/sdk/SessionMetadata.d.ts +51 -0
- package/bin/host/sdk/SessionMetadata.d.ts.map +1 -0
- package/bin/host/sdk/SessionMetadata.js +124 -0
- package/bin/host/sdk/SessionMetadata.js.map +1 -0
- package/bin/host/sdk/StreamEvents.d.ts +14 -0
- package/bin/host/sdk/StreamEvents.d.ts.map +1 -0
- package/bin/host/sdk/StreamEvents.js +89 -0
- package/bin/host/sdk/StreamEvents.js.map +1 -0
- package/bin/http/Server.js +2 -2
- package/bin/http/Server.js.map +1 -1
- package/bin/http/auth/AuthStore.d.ts +1 -1
- package/bin/http/auth/AuthStore.d.ts.map +1 -1
- package/bin/http/auth/AuthStore.js +5 -5
- package/bin/http/auth/AuthStore.js.map +1 -1
- package/bin/http/auth/RoutePolicy.d.ts +2 -2
- package/bin/http/auth/RoutePolicy.d.ts.map +1 -1
- package/bin/http/auth/RoutePolicy.js +6 -6
- package/bin/http/auth/RoutePolicy.js.map +1 -1
- package/bin/http/control/AuthControlService.d.ts +30 -0
- package/bin/http/control/AuthControlService.d.ts.map +1 -0
- package/bin/http/control/AuthControlService.js +120 -0
- package/bin/http/control/AuthControlService.js.map +1 -0
- package/bin/http/control/CommonHelpers.d.ts +36 -0
- package/bin/http/control/CommonHelpers.d.ts.map +1 -0
- package/bin/http/control/CommonHelpers.js +63 -0
- package/bin/http/control/CommonHelpers.js.map +1 -0
- package/bin/http/control/ControlApiRoutes.d.ts +14 -0
- package/bin/http/control/ControlApiRoutes.d.ts.map +1 -0
- package/bin/http/control/ControlApiRoutes.js +27 -0
- package/bin/http/control/ControlApiRoutes.js.map +1 -0
- package/bin/http/control/ControlAuthorizationRoutes.d.ts +17 -0
- package/bin/http/control/ControlAuthorizationRoutes.d.ts.map +1 -0
- package/bin/http/control/ControlAuthorizationRoutes.js +85 -0
- package/bin/http/control/ControlAuthorizationRoutes.js.map +1 -0
- package/bin/http/control/ControlRouter.d.ts +19 -0
- package/bin/http/control/ControlRouter.d.ts.map +1 -0
- package/bin/http/control/ControlRouter.js +26 -0
- package/bin/http/control/ControlRouter.js.map +1 -0
- package/bin/http/control/ExecuteBySession.d.ts +39 -0
- package/bin/http/control/ExecuteBySession.d.ts.map +1 -0
- package/bin/http/control/ExecuteBySession.js +128 -0
- package/bin/http/control/ExecuteBySession.js.map +1 -0
- package/bin/http/control/ExecuteInput.d.ts +18 -0
- package/bin/http/control/ExecuteInput.d.ts.map +1 -0
- package/bin/http/control/ExecuteInput.js +201 -0
- package/bin/http/control/ExecuteInput.js.map +1 -0
- package/bin/http/control/Helpers.d.ts +13 -0
- package/bin/http/control/Helpers.d.ts.map +1 -0
- package/bin/http/control/Helpers.js +13 -0
- package/bin/http/control/Helpers.js.map +1 -0
- package/bin/http/control/MessageTimeline.d.ts +22 -0
- package/bin/http/control/MessageTimeline.d.ts.map +1 -0
- package/bin/http/control/MessageTimeline.js +226 -0
- package/bin/http/control/MessageTimeline.js.map +1 -0
- package/bin/http/control/ModelRoutes.d.ts +13 -0
- package/bin/http/control/ModelRoutes.d.ts.map +1 -0
- package/bin/http/control/ModelRoutes.js +92 -0
- package/bin/http/control/ModelRoutes.js.map +1 -0
- package/bin/http/control/OverviewRoutes.d.ts +13 -0
- package/bin/http/control/OverviewRoutes.d.ts.map +1 -0
- package/bin/http/control/OverviewRoutes.js +93 -0
- package/bin/http/control/OverviewRoutes.js.map +1 -0
- package/bin/http/control/SessionRoutes.d.ts +14 -0
- package/bin/http/control/SessionRoutes.d.ts.map +1 -0
- package/bin/http/control/SessionRoutes.js +333 -0
- package/bin/http/control/SessionRoutes.js.map +1 -0
- package/bin/http/control/SessionSummaryStore.d.ts +19 -0
- package/bin/http/control/SessionSummaryStore.d.ts.map +1 -0
- package/bin/http/control/SessionSummaryStore.js +62 -0
- package/bin/http/control/SessionSummaryStore.js.map +1 -0
- package/bin/http/control/TaskRoutes.d.ts +13 -0
- package/bin/http/control/TaskRoutes.d.ts.map +1 -0
- package/bin/http/control/TaskRoutes.js +335 -0
- package/bin/http/control/TaskRoutes.js.map +1 -0
- package/bin/http/control/TaskStore.d.ts +33 -0
- package/bin/http/control/TaskStore.d.ts.map +1 -0
- package/bin/http/control/TaskStore.js +157 -0
- package/bin/http/control/TaskStore.js.map +1 -0
- package/bin/http/execute/execute.js +1 -1
- package/bin/http/execute/execute.js.map +1 -1
- package/bin/http/services/services.js +1 -1
- package/bin/http/services/services.js.map +1 -1
- package/bin/index.d.ts +85 -6
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +82 -5
- package/bin/index.js.map +1 -1
- package/bin/model/CreateModel.d.ts +4 -4
- package/bin/model/CreateModel.d.ts.map +1 -1
- package/bin/model/CreateModel.js +23 -8
- package/bin/model/CreateModel.js.map +1 -1
- package/bin/plugin/HookRegistry.d.ts +1 -1
- package/bin/plugin/HookRegistry.d.ts.map +1 -1
- package/bin/plugin/HttpRoutes.d.ts +1 -1
- package/bin/plugin/HttpRoutes.d.ts.map +1 -1
- package/bin/plugin/Lifecycle.d.ts +1 -1
- package/bin/plugin/Lifecycle.js +4 -4
- package/bin/plugin/Lifecycle.js.map +1 -1
- package/bin/plugin/LocalExecution.js +1 -1
- package/bin/plugin/LocalExecution.js.map +1 -1
- package/bin/plugin/PluginManager.js +1 -1
- package/bin/plugin/PluginManager.js.map +1 -1
- package/bin/plugin/PluginRegistry.d.ts +1 -1
- package/bin/plugin/PluginRegistry.d.ts.map +1 -1
- package/bin/plugin/ProjectConfigStore.d.ts +1 -1
- package/bin/plugin/ProjectConfigStore.js +1 -1
- package/bin/plugins/asr/Plugin.js +1 -1
- package/bin/plugins/asr/Plugin.js.map +1 -1
- package/bin/plugins/auth/Plugin.js +1 -1
- package/bin/plugins/auth/Plugin.js.map +1 -1
- package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts +1 -1
- package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts.map +1 -1
- package/bin/plugins/auth/runtime/AuthorizationConfig.js +3 -3
- package/bin/plugins/auth/runtime/AuthorizationConfig.js.map +1 -1
- package/bin/plugins/auth/runtime/AuthorizationStore.d.ts +2 -2
- package/bin/plugins/auth/runtime/AuthorizationStore.d.ts.map +1 -1
- package/bin/plugins/tts/runtime/Synthesizer.js +1 -1
- package/bin/plugins/tts/runtime/Synthesizer.js.map +1 -1
- package/bin/plugins/voice/Plugin.js +1 -1
- package/bin/plugins/voice/Plugin.js.map +1 -1
- package/bin/plugins/workboard/runtime/Collector.d.ts +1 -1
- package/bin/plugins/workboard/runtime/Collector.d.ts.map +1 -1
- package/bin/plugins/workboard/runtime/Collector.js +4 -4
- package/bin/plugins/workboard/runtime/Collector.js.map +1 -1
- package/bin/plugins/workboard/runtime/Normalizer.d.ts +5 -5
- package/bin/plugins/workboard/runtime/Normalizer.d.ts.map +1 -1
- package/bin/plugins/workboard/runtime/Normalizer.js.map +1 -1
- package/bin/plugins/workboard/runtime/Store.d.ts +1 -1
- package/bin/plugins/workboard/runtime/Store.d.ts.map +1 -1
- package/bin/sandbox/SandboxConfigResolver.d.ts +1 -1
- package/bin/sandbox/SandboxConfigResolver.d.ts.map +1 -1
- package/bin/sandbox/SandboxRunner.d.ts +1 -1
- package/bin/sandbox/SandboxRunner.d.ts.map +1 -1
- package/bin/service/builtins/BaseService.d.ts +70 -0
- package/bin/service/builtins/BaseService.d.ts.map +1 -0
- package/bin/service/builtins/BaseService.js +67 -0
- package/bin/service/builtins/BaseService.js.map +1 -0
- package/bin/service/builtins/chat/Action.d.ts +125 -0
- package/bin/service/builtins/chat/Action.d.ts.map +1 -0
- package/bin/service/builtins/chat/Action.js +376 -0
- package/bin/service/builtins/chat/Action.js.map +1 -0
- package/bin/service/builtins/chat/ChatService.d.ts +89 -0
- package/bin/service/builtins/chat/ChatService.d.ts.map +1 -0
- package/bin/service/builtins/chat/ChatService.js +212 -0
- package/bin/service/builtins/chat/ChatService.js.map +1 -0
- package/bin/service/builtins/chat/ChatServiceTypes.d.ts +159 -0
- package/bin/service/builtins/chat/ChatServiceTypes.d.ts.map +1 -0
- package/bin/service/builtins/chat/ChatServiceTypes.js +10 -0
- package/bin/service/builtins/chat/ChatServiceTypes.js.map +1 -0
- package/bin/service/builtins/chat/Index.d.ts.map +1 -0
- package/bin/service/builtins/chat/Index.js.map +1 -0
- package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts +60 -0
- package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts.map +1 -0
- package/bin/service/builtins/chat/accounts/ChannelAccountService.js +285 -0
- package/bin/service/builtins/chat/accounts/ChannelAccountService.js.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts +201 -0
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannel.js +294 -0
- package/bin/service/builtins/chat/channels/BaseChatChannel.js.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts +73 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.js +238 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.js.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts +189 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.js +141 -0
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.js.map +1 -0
- package/bin/service/builtins/chat/channels/BotInfoProvider.d.ts +18 -0
- package/bin/service/builtins/chat/channels/BotInfoProvider.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/BotInfoProvider.js +32 -0
- package/bin/service/builtins/chat/channels/BotInfoProvider.js.map +1 -0
- package/bin/service/builtins/chat/channels/Configuration.d.ts +27 -0
- package/bin/service/builtins/chat/channels/Configuration.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/Configuration.js.map +1 -0
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.d.ts +18 -0
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.js +31 -0
- package/bin/service/builtins/chat/channels/ConfigurationRegistry.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/BotInfo.d.ts +20 -0
- package/bin/service/builtins/chat/channels/feishu/BotInfo.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/BotInfo.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Configuration.d.ts +17 -0
- package/bin/service/builtins/chat/channels/feishu/Configuration.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Configuration.js +59 -0
- package/bin/service/builtins/chat/channels/feishu/Configuration.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts +116 -0
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Feishu.js +458 -0
- package/bin/service/builtins/chat/channels/feishu/Feishu.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts +21 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +130 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts +102 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts +49 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/InboundAttachment.d.ts +31 -0
- package/bin/service/builtins/chat/channels/feishu/InboundAttachment.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/InboundAttachment.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/PostMessage.d.ts +48 -0
- package/bin/service/builtins/chat/channels/feishu/PostMessage.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/PostMessage.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/ReplyContext.d.ts +18 -0
- package/bin/service/builtins/chat/channels/feishu/ReplyContext.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/ReplyContext.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Shared.d.ts +21 -0
- package/bin/service/builtins/chat/channels/feishu/Shared.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/Shared.js +69 -0
- package/bin/service/builtins/chat/channels/feishu/Shared.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/BotInfo.d.ts +19 -0
- package/bin/service/builtins/chat/channels/qq/BotInfo.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/BotInfo.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/Configuration.d.ts +17 -0
- package/bin/service/builtins/chat/channels/qq/Configuration.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/Configuration.js +59 -0
- package/bin/service/builtins/chat/channels/qq/Configuration.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQ.d.ts +92 -0
- package/bin/service/builtins/chat/channels/qq/QQ.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQ.js +485 -0
- package/bin/service/builtins/chat/channels/qq/QQ.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts +22 -0
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts +119 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts +179 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js +540 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts +84 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts +39 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts +47 -0
- package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQInbound.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts +48 -0
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQSendSupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQSendSupport.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts +102 -0
- package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQSupport.js +172 -0
- package/bin/service/builtins/chat/channels/qq/QQSupport.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/VoiceInput.d.ts +64 -0
- package/bin/service/builtins/chat/channels/qq/VoiceInput.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/VoiceInput.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts +99 -0
- package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/ApiClient.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Bot.d.ts +97 -0
- package/bin/service/builtins/chat/channels/telegram/Bot.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Bot.js +504 -0
- package/bin/service/builtins/chat/channels/telegram/Bot.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/BotInfo.d.ts +19 -0
- package/bin/service/builtins/chat/channels/telegram/BotInfo.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/BotInfo.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Configuration.d.ts +17 -0
- package/bin/service/builtins/chat/channels/telegram/Configuration.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Configuration.js +59 -0
- package/bin/service/builtins/chat/channels/telegram/Configuration.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts +42 -0
- package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Handlers.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/ReplyContext.d.ts +14 -0
- package/bin/service/builtins/chat/channels/telegram/ReplyContext.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/ReplyContext.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Shared.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/Shared.js +171 -0
- package/bin/service/builtins/chat/channels/telegram/Shared.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/StateStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/StateStore.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramInbound.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramInbound.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts +161 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts +78 -0
- package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChannelContextStore.js +336 -0
- package/bin/service/builtins/chat/runtime/ChannelContextStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts +145 -0
- package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatActionExecution.js +287 -0
- package/bin/service/builtins/chat/runtime/ChatActionExecution.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts +63 -0
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatActionInput.js +458 -0
- package/bin/service/builtins/chat/runtime/ChatActionInput.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts +122 -0
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelActions.js +237 -0
- package/bin/service/builtins/chat/runtime/ChatChannelActions.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts +61 -0
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.js +260 -0
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts +45 -0
- package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelCore.js +114 -0
- package/bin/service/builtins/chat/runtime/ChatChannelCore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelFacade.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelFacade.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts +28 -0
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.js +132 -0
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts +72 -0
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.js +219 -0
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts +52 -0
- package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatIngressStore.js +65 -0
- package/bin/service/builtins/chat/runtime/ChatIngressStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatMessageMarkup.d.ts +54 -0
- package/bin/service/builtins/chat/runtime/ChatMessageMarkup.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatMessageMarkup.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts +68 -0
- package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatMetaStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueue.d.ts +40 -0
- package/bin/service/builtins/chat/runtime/ChatQueue.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueue.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts +31 -0
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts +55 -0
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.js +98 -0
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts +85 -0
- package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueStore.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts +88 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts +36 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSendMetadata.d.ts +20 -0
- package/bin/service/builtins/chat/runtime/ChatSendMetadata.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSendMetadata.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSendRegistry.d.ts +27 -0
- package/bin/service/builtins/chat/runtime/ChatSendRegistry.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSendRegistry.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts +17 -0
- package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatServiceActions.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts +22 -0
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.js +87 -0
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSession.d.ts +73 -0
- package/bin/service/builtins/chat/runtime/ChatSession.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSession.js +78 -0
- package/bin/service/builtins/chat/runtime/ChatSession.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.d.ts +29 -0
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.js +76 -0
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.d.ts +45 -0
- package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.js +60 -0
- package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts +30 -0
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.js +9 -0
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatkeySend.d.ts +67 -0
- package/bin/service/builtins/chat/runtime/ChatkeySend.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatkeySend.js.map +1 -0
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.d.ts +22 -0
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.js +133 -0
- package/bin/service/builtins/chat/runtime/DirectDispatchParser.js.map +1 -0
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts +24 -0
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.js +28 -0
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.js.map +1 -0
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts +21 -0
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/InboundAugment.js +50 -0
- package/bin/service/builtins/chat/runtime/InboundAugment.js.map +1 -0
- package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts +43 -0
- package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/PluginDispatch.js +57 -0
- package/bin/service/builtins/chat/runtime/PluginDispatch.js.map +1 -0
- package/bin/service/builtins/chat/runtime/PluginPoints.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/PluginPoints.js.map +1 -0
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts +20 -0
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts +29 -0
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts +36 -0
- package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ReplyDispatch.js +51 -0
- package/bin/service/builtins/chat/runtime/ReplyDispatch.js.map +1 -0
- package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts +26 -0
- package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/SystemPrompt.js +70 -0
- package/bin/service/builtins/chat/runtime/SystemPrompt.js.map +1 -0
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts +24 -0
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.js.map +1 -0
- package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts +34 -0
- package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/UserVisibleText.js.map +1 -0
- package/bin/service/builtins/chat/types/BotInfo.d.ts +97 -0
- package/bin/service/builtins/chat/types/BotInfo.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/BotInfo.js.map +1 -0
- package/bin/service/builtins/chat/types/ChannelAccount.d.ts +226 -0
- package/bin/service/builtins/chat/types/ChannelAccount.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChannelAccount.js +9 -0
- package/bin/service/builtins/chat/types/ChannelAccount.js.map +1 -0
- package/bin/service/builtins/chat/types/ChannelConfiguration.d.ts +146 -0
- package/bin/service/builtins/chat/types/ChannelConfiguration.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChannelConfiguration.js.map +1 -0
- package/bin/service/builtins/chat/types/ChannelContext.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChannelContext.js.map +1 -0
- package/bin/service/builtins/chat/types/ChannelStatus.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChannelStatus.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatCommand.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatCommand.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatDispatcher.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatDispatcher.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatHistory.d.ts +36 -0
- package/bin/service/builtins/chat/types/ChatHistory.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatHistory.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatMessageMarkup.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatMessageMarkup.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatMeta.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatMeta.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatQueue.d.ts +44 -0
- package/bin/service/builtins/chat/types/ChatQueue.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatQueue.js.map +1 -0
- package/bin/service/builtins/chat/types/DirectDispatch.d.ts +115 -0
- package/bin/service/builtins/chat/types/DirectDispatch.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/DirectDispatch.js.map +1 -0
- package/bin/service/builtins/chat/types/FeishuAttachment.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/FeishuAttachment.js.map +1 -0
- package/bin/service/builtins/chat/types/FeishuInboundAttachment.d.ts +114 -0
- package/bin/service/builtins/chat/types/FeishuInboundAttachment.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/FeishuInboundAttachment.js.map +1 -0
- package/bin/service/builtins/chat/types/FeishuPost.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/FeishuPost.js.map +1 -0
- package/bin/service/builtins/chat/types/QqInboundDedupe.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/QqInboundDedupe.js.map +1 -0
- package/bin/service/builtins/chat/types/QqVoice.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/QqVoice.js.map +1 -0
- package/bin/service/builtins/chat/types/ReplyContext.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ReplyContext.js.map +1 -0
- package/bin/service/builtins/contact/Action.d.ts.map +1 -0
- package/bin/service/builtins/contact/Action.js.map +1 -0
- package/bin/service/builtins/contact/ContactService.d.ts +39 -0
- package/bin/service/builtins/contact/ContactService.d.ts.map +1 -0
- package/bin/service/builtins/contact/ContactService.js +683 -0
- package/bin/service/builtins/contact/ContactService.js.map +1 -0
- package/bin/service/builtins/contact/Index.d.ts.map +1 -0
- package/bin/service/builtins/contact/Index.js.map +1 -0
- package/bin/service/builtins/contact/runtime/ApproveCallback.d.ts +23 -0
- package/bin/service/builtins/contact/runtime/ApproveCallback.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ApproveCallback.js.map +1 -0
- package/bin/service/builtins/contact/runtime/ChatRuntime.d.ts +27 -0
- package/bin/service/builtins/contact/runtime/ChatRuntime.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ChatRuntime.js.map +1 -0
- package/bin/service/builtins/contact/runtime/ContactStore.d.ts +49 -0
- package/bin/service/builtins/contact/runtime/ContactStore.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ContactStore.js.map +1 -0
- package/bin/service/builtins/contact/runtime/EndpointNotice.d.ts +39 -0
- package/bin/service/builtins/contact/runtime/EndpointNotice.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/EndpointNotice.js.map +1 -0
- package/bin/service/builtins/contact/runtime/EndpointResolver.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/EndpointResolver.js.map +1 -0
- package/bin/service/builtins/contact/runtime/InboxStore.d.ts +33 -0
- package/bin/service/builtins/contact/runtime/InboxStore.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/InboxStore.js.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkApproval.d.ts +20 -0
- package/bin/service/builtins/contact/runtime/LinkApproval.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkApproval.js.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkCode.d.ts +21 -0
- package/bin/service/builtins/contact/runtime/LinkCode.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkCode.js.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkStore.d.ts +17 -0
- package/bin/service/builtins/contact/runtime/LinkStore.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/LinkStore.js.map +1 -0
- package/bin/service/builtins/contact/runtime/Paths.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/Paths.js.map +1 -0
- package/bin/service/builtins/contact/runtime/RemoteClient.d.ts +46 -0
- package/bin/service/builtins/contact/runtime/RemoteClient.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/RemoteClient.js.map +1 -0
- package/bin/service/builtins/contact/runtime/ShareBundle.d.ts +65 -0
- package/bin/service/builtins/contact/runtime/ShareBundle.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ShareBundle.js.map +1 -0
- package/bin/service/builtins/contact/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/SystemProvider.js.map +1 -0
- package/bin/service/builtins/contact/runtime/Token.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/Token.js.map +1 -0
- package/bin/service/builtins/contact/types/Contact.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/Contact.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactApproval.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactApproval.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactChat.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactChat.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactCheck.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactCheck.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactCommand.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactCommand.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactEndpoint.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactEndpoint.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactLink.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactLink.js.map +1 -0
- package/bin/service/builtins/contact/types/ContactShare.d.ts.map +1 -0
- package/bin/service/builtins/contact/types/ContactShare.js.map +1 -0
- package/bin/service/builtins/memory/Action.d.ts +41 -0
- package/bin/service/builtins/memory/Action.d.ts.map +1 -0
- package/bin/service/builtins/memory/Action.js.map +1 -0
- package/bin/service/builtins/memory/Index.d.ts.map +1 -0
- package/bin/service/builtins/memory/Index.js.map +1 -0
- package/bin/service/builtins/memory/MemoryService.d.ts +45 -0
- package/bin/service/builtins/memory/MemoryService.d.ts.map +1 -0
- package/bin/service/builtins/memory/MemoryService.js +299 -0
- package/bin/service/builtins/memory/MemoryService.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Flush.d.ts +15 -0
- package/bin/service/builtins/memory/runtime/Flush.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Flush.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Indexer.d.ts +71 -0
- package/bin/service/builtins/memory/runtime/Indexer.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Indexer.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Search.d.ts +15 -0
- package/bin/service/builtins/memory/runtime/Search.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Search.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Store.d.ts +106 -0
- package/bin/service/builtins/memory/runtime/Store.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Store.js.map +1 -0
- package/bin/service/builtins/memory/runtime/SystemProvider.d.ts +22 -0
- package/bin/service/builtins/memory/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/SystemProvider.js.map +1 -0
- package/bin/service/builtins/memory/runtime/Writer.d.ts +23 -0
- package/bin/service/builtins/memory/runtime/Writer.d.ts.map +1 -0
- package/bin/service/builtins/memory/runtime/Writer.js.map +1 -0
- package/bin/service/builtins/memory/types/Memory.d.ts +318 -0
- package/bin/service/builtins/memory/types/Memory.d.ts.map +1 -0
- package/bin/service/builtins/memory/types/Memory.js.map +1 -0
- package/bin/service/builtins/shell/Index.d.ts.map +1 -0
- package/bin/service/builtins/shell/Index.js.map +1 -0
- package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts +91 -0
- package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts.map +1 -0
- package/bin/service/builtins/shell/ShellRuntimeTypes.js +10 -0
- package/bin/service/builtins/shell/ShellRuntimeTypes.js.map +1 -0
- package/bin/service/builtins/shell/ShellService.d.ts +65 -0
- package/bin/service/builtins/shell/ShellService.d.ts.map +1 -0
- package/bin/service/builtins/shell/ShellService.js +138 -0
- package/bin/service/builtins/shell/ShellService.js.map +1 -0
- package/bin/service/builtins/shell/runtime/Paths.d.ts.map +1 -0
- package/bin/service/builtins/shell/runtime/Paths.js.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts +49 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js +463 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts +107 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js +452 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +1 -0
- package/bin/service/builtins/shell/types/ShellService.d.ts.map +1 -0
- package/bin/service/builtins/shell/types/ShellService.js.map +1 -0
- package/bin/service/builtins/task/Action.d.ts +36 -0
- package/bin/service/builtins/task/Action.d.ts.map +1 -0
- package/bin/service/builtins/task/Action.js.map +1 -0
- package/bin/service/builtins/task/Index.d.ts.map +1 -0
- package/bin/service/builtins/task/Index.js.map +1 -0
- package/bin/service/builtins/task/Scheduler.d.ts +17 -0
- package/bin/service/builtins/task/Scheduler.d.ts.map +1 -0
- package/bin/service/builtins/task/Scheduler.js +231 -0
- package/bin/service/builtins/task/Scheduler.js.map +1 -0
- package/bin/service/builtins/task/TaskService.d.ts +57 -0
- package/bin/service/builtins/task/TaskService.d.ts.map +1 -0
- package/bin/service/builtins/task/TaskService.js +126 -0
- package/bin/service/builtins/task/TaskService.js.map +1 -0
- package/bin/service/builtins/task/runtime/CronRuntime.d.ts +34 -0
- package/bin/service/builtins/task/runtime/CronRuntime.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/CronRuntime.js +59 -0
- package/bin/service/builtins/task/runtime/CronRuntime.js.map +1 -0
- package/bin/service/builtins/task/runtime/CronTrigger.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/CronTrigger.js.map +1 -0
- package/bin/service/builtins/task/runtime/Frontmatter.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Frontmatter.js.map +1 -0
- package/bin/service/builtins/task/runtime/Model.d.ts +73 -0
- package/bin/service/builtins/task/runtime/Model.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Model.js.map +1 -0
- package/bin/service/builtins/task/runtime/Paths.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Paths.js.map +1 -0
- package/bin/service/builtins/task/runtime/Runner.d.ts +43 -0
- package/bin/service/builtins/task/runtime/Runner.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Runner.js.map +1 -0
- package/bin/service/builtins/task/runtime/Store.d.ts +89 -0
- package/bin/service/builtins/task/runtime/Store.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/Store.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts +160 -0
- package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskActionExecution.js +192 -0
- package/bin/service/builtins/task/runtime/TaskActionExecution.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskActionInput.d.ts +48 -0
- package/bin/service/builtins/task/runtime/TaskActionInput.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskActionInput.js +357 -0
- package/bin/service/builtins/task/runtime/TaskActionInput.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunArtifacts.d.ts +189 -0
- package/bin/service/builtins/task/runtime/TaskRunArtifacts.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunArtifacts.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.d.ts +22 -0
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerProgress.d.ts +35 -0
- package/bin/service/builtins/task/runtime/TaskRunnerProgress.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerProgress.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts +80 -0
- package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerRound.js +272 -0
- package/bin/service/builtins/task/runtime/TaskRunnerRound.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts +45 -0
- package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerSession.js +138 -0
- package/bin/service/builtins/task/runtime/TaskRunnerSession.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts +186 -0
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.js +9 -0
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts +16 -0
- package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskServiceActions.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskServiceSystem.js.map +1 -0
- package/bin/service/builtins/task/types/Cron.d.ts.map +1 -0
- package/bin/service/builtins/task/types/Cron.js.map +1 -0
- package/bin/service/builtins/task/types/Task.d.ts.map +1 -0
- package/bin/service/builtins/task/types/Task.js.map +1 -0
- package/bin/service/builtins/task/types/TaskCommand.d.ts.map +1 -0
- package/bin/service/builtins/task/types/TaskCommand.js.map +1 -0
- package/bin/service/core/Manager.d.ts +13 -0
- package/bin/service/core/Manager.d.ts.map +1 -0
- package/bin/service/core/Manager.js.map +1 -0
- package/bin/service/core/ServiceActionApi.d.ts +15 -0
- package/bin/service/core/ServiceActionApi.d.ts.map +1 -0
- package/bin/service/core/ServiceActionApi.js +234 -0
- package/bin/service/core/ServiceActionApi.js.map +1 -0
- package/bin/service/core/ServiceActionRunner.d.ts +44 -0
- package/bin/service/core/ServiceActionRunner.d.ts.map +1 -0
- package/bin/service/core/ServiceActionRunner.js +211 -0
- package/bin/service/core/ServiceActionRunner.js.map +1 -0
- package/bin/service/core/ServiceClassRegistry.d.ts +40 -0
- package/bin/service/core/ServiceClassRegistry.d.ts.map +1 -0
- package/bin/service/core/ServiceClassRegistry.js +64 -0
- package/bin/service/core/ServiceClassRegistry.js.map +1 -0
- package/bin/service/core/ServiceManager.d.ts +9 -0
- package/bin/service/core/ServiceManager.d.ts.map +1 -0
- package/bin/service/core/ServiceManager.js.map +1 -0
- package/bin/service/core/ServiceStateController.d.ts +79 -0
- package/bin/service/core/ServiceStateController.d.ts.map +1 -0
- package/bin/service/core/ServiceStateController.js +245 -0
- package/bin/service/core/ServiceStateController.js.map +1 -0
- package/bin/service/core/ServiceSystemProviders.d.ts +27 -0
- package/bin/service/core/ServiceSystemProviders.d.ts.map +1 -0
- package/bin/service/core/ServiceSystemProviders.js +34 -0
- package/bin/service/core/ServiceSystemProviders.js.map +1 -0
- package/bin/service/core/Services.d.ts +18 -0
- package/bin/service/core/Services.d.ts.map +1 -0
- package/bin/service/core/Services.js +23 -0
- package/bin/service/core/Services.js.map +1 -0
- package/bin/service/schedule/Executor.d.ts +1 -1
- package/bin/service/schedule/Executor.d.ts.map +1 -1
- package/bin/service/schedule/Executor.js +1 -1
- package/bin/service/schedule/Executor.js.map +1 -1
- package/bin/service/schedule/Runtime.d.ts +1 -1
- package/bin/service/schedule/Runtime.d.ts.map +1 -1
- package/bin/session/Session.d.ts +1 -0
- package/bin/session/Session.d.ts.map +1 -1
- package/bin/session/Session.js +3 -0
- package/bin/session/Session.js.map +1 -1
- package/bin/session/SessionRunScope.d.ts +9 -1
- package/bin/session/SessionRunScope.d.ts.map +1 -1
- package/bin/session/SessionRunScope.js.map +1 -1
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +1 -0
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts.map +1 -1
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js +30 -0
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +1 -1
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts +1 -1
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts.map +1 -1
- package/bin/session/composer/system/default/SystemDomain.d.ts +1 -1
- package/bin/session/composer/system/default/SystemDomain.d.ts.map +1 -1
- package/bin/session/composer/system/default/SystemDomain.js +1 -1
- package/bin/session/composer/system/default/SystemDomain.js.map +1 -1
- package/bin/session/executors/local/LocalSessionCore.d.ts.map +1 -1
- package/bin/session/executors/local/LocalSessionCore.js +37 -5
- package/bin/session/executors/local/LocalSessionCore.js.map +1 -1
- package/bin/session/messages/SessionAttachmentMapper.js +1 -1
- package/bin/session/messages/SessionAttachmentMapper.js.map +1 -1
- package/bin/session/tools/shell/ShellToolBridge.d.ts +2 -2
- package/bin/session/tools/shell/ShellToolBridge.d.ts.map +1 -1
- package/bin/session/tools/shell/ShellToolDefinition.d.ts +2 -2
- package/bin/session/tools/shell/ShellToolSchemas.d.ts +3 -3
- package/bin/shared/constants/DowncitySchema.js +1 -1
- package/bin/shared/constants/DowncitySchema.js.map +1 -1
- package/bin/shared/types/AgentProject.d.ts +2 -2
- package/bin/shared/types/AgentProject.js +1 -1
- package/bin/shared/types/AuthControl.d.ts +30 -0
- package/bin/shared/types/AuthControl.d.ts.map +1 -0
- package/bin/shared/types/AuthControl.js +9 -0
- package/bin/shared/types/AuthControl.js.map +1 -0
- package/bin/shared/types/AuthPlugin.d.ts +1 -1
- package/bin/shared/types/AuthPlugin.d.ts.map +1 -1
- package/bin/shared/types/AuthPlugin.js +1 -1
- package/bin/shared/types/AuthPlugin.js.map +1 -1
- package/bin/shared/types/ChatPlugin.d.ts +1 -1
- package/bin/shared/types/ChatPlugin.d.ts.map +1 -1
- package/bin/shared/types/ChatPromptContext.d.ts +1 -1
- package/bin/shared/types/ChatPromptContext.d.ts.map +1 -1
- package/bin/shared/types/ChatRuntime.d.ts +3 -3
- package/bin/shared/types/ChatRuntime.d.ts.map +1 -1
- package/bin/shared/types/ChatService.d.ts +2 -2
- package/bin/shared/types/ChatService.d.ts.map +1 -1
- package/bin/shared/types/ControlRoutes.d.ts +28 -0
- package/bin/shared/types/ControlRoutes.d.ts.map +1 -0
- package/bin/shared/types/ControlRoutes.js +9 -0
- package/bin/shared/types/ControlRoutes.js.map +1 -0
- package/bin/shared/types/ControlSessionExecute.d.ts +85 -0
- package/bin/shared/types/ControlSessionExecute.d.ts.map +1 -0
- package/bin/shared/types/ControlSessionExecute.js +9 -0
- package/bin/shared/types/ControlSessionExecute.js.map +1 -0
- package/bin/shared/types/ControlViewData.d.ts +320 -0
- package/bin/shared/types/ControlViewData.d.ts.map +1 -0
- package/bin/shared/types/ControlViewData.js +9 -0
- package/bin/shared/types/ControlViewData.js.map +1 -0
- package/bin/shared/types/DowncityConfig.d.ts +6 -6
- package/bin/shared/types/ExecutionBinding.d.ts +2 -2
- package/bin/shared/types/ExecutionBinding.js +1 -1
- package/bin/shared/types/InlineInstant.d.ts +7 -7
- package/bin/shared/types/InlineInstant.d.ts.map +1 -1
- package/bin/shared/types/LlmConfig.d.ts +1 -1
- package/bin/shared/types/LlmConfig.js +1 -1
- package/bin/shared/types/LocalRpc.d.ts +1 -1
- package/bin/shared/types/LocalRpc.d.ts.map +1 -1
- package/bin/shared/types/ModelBinding.d.ts +2 -2
- package/bin/shared/types/Platform.d.ts +370 -0
- package/bin/shared/types/Platform.d.ts.map +1 -0
- package/bin/shared/types/Platform.js +10 -0
- package/bin/shared/types/Platform.js.map +1 -0
- package/bin/shared/types/PlatformGateway.d.ts +174 -0
- package/bin/shared/types/PlatformGateway.d.ts.map +1 -0
- package/bin/shared/types/PlatformGateway.js +9 -0
- package/bin/shared/types/PlatformGateway.js.map +1 -0
- package/bin/shared/types/Plugin.d.ts +2 -2
- package/bin/shared/types/Plugin.d.ts.map +1 -1
- package/bin/shared/types/PluginApi.d.ts +1 -1
- package/bin/shared/types/Service.d.ts +1 -1
- package/bin/shared/types/Service.d.ts.map +1 -1
- package/bin/shared/types/Services.d.ts +1 -1
- package/bin/shared/types/Store.d.ts +24 -3
- package/bin/shared/types/Store.d.ts.map +1 -1
- package/bin/shared/types/TaskService.d.ts +1 -1
- package/bin/shared/types/TaskService.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts +8 -8
- package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreChannelAccountRepository.js +1 -1
- package/bin/shared/utils/store/StoreChannelAccountRepository.js.map +1 -1
- package/bin/shared/utils/store/StoreEnvRepository.d.ts +21 -21
- package/bin/shared/utils/store/StoreEnvRepository.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreEnvRepository.js +1 -1
- package/bin/shared/utils/store/StoreEnvRepository.js.map +1 -1
- package/bin/shared/utils/store/StoreModelRepository.d.ts +19 -15
- package/bin/shared/utils/store/StoreModelRepository.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreModelRepository.js +13 -2
- package/bin/shared/utils/store/StoreModelRepository.js.map +1 -1
- package/bin/shared/utils/store/StoreSchema.d.ts +5 -5
- package/bin/shared/utils/store/StoreSchema.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreSchema.js +7 -7
- package/bin/shared/utils/store/StoreSchema.js.map +1 -1
- package/bin/shared/utils/store/StoreSecureSettings.d.ts +9 -9
- package/bin/shared/utils/store/StoreSecureSettings.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreSecureSettings.js +8 -8
- package/bin/shared/utils/store/StoreSecureSettings.js.map +1 -1
- package/bin/shared/utils/store/StoreShared.d.ts +6 -6
- package/bin/shared/utils/store/StoreShared.d.ts.map +1 -1
- package/bin/shared/utils/store/StoreShared.js +2 -2
- package/bin/shared/utils/store/crypto.js +2 -2
- package/bin/shared/utils/store/crypto.js.map +1 -1
- package/bin/shared/utils/store/index.d.ts +13 -9
- package/bin/shared/utils/store/index.d.ts.map +1 -1
- package/bin/shared/utils/store/index.js +24 -17
- package/bin/shared/utils/store/index.js.map +1 -1
- package/bin/shared/utils/store/schema.d.ts +1 -1
- package/bin/shared/utils/store/schema.js +1 -1
- package/bin/types/session/SessionHistoryMeta.d.ts +17 -0
- package/bin/types/session/SessionHistoryMeta.d.ts.map +1 -1
- package/bin/types/session/SessionMessages.d.ts +1 -1
- package/bin/types/session/SessionMessages.js +1 -1
- package/bin/types/session/SessionRun.d.ts +13 -1
- package/bin/types/session/SessionRun.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agent/AgentContext.ts +6 -6
- package/src/agent/AgentContextTypes.ts +380 -0
- package/src/agent/AgentRuntime.ts +7 -8
- package/src/agent/AgentRuntimeState.ts +2 -2
- package/src/agent/AgentRuntimeTypes.ts +86 -0
- package/src/agent/project/AgentInitializer.ts +12 -12
- package/src/config/Config.ts +7 -7
- package/src/host/daemon/Client.ts +182 -0
- package/src/host/daemon/Manager.ts +344 -0
- package/src/host/daemon/ProjectSetup.ts +126 -0
- package/src/host/rpc/Client.ts +113 -0
- package/src/host/rpc/Paths.ts +43 -0
- package/src/host/rpc/Server.ts +395 -0
- package/src/host/rpc/Transport.ts +43 -0
- package/src/host/runtime/CityPaths.ts +87 -0
- package/src/host/runtime/CityRegistry.ts +256 -0
- package/src/host/runtime/CityRuntime.ts +45 -0
- package/src/host/runtime/PluginRuntime.ts +42 -0
- package/src/host/runtime/ProcessSweep.ts +239 -0
- package/src/host/sdk/Agent.ts +316 -0
- package/src/host/sdk/AgentSdkTypes.ts +275 -0
- package/src/host/sdk/AsyncQueue.ts +92 -0
- package/src/host/sdk/HttpServer.ts +222 -0
- package/src/host/sdk/Paths.ts +126 -0
- package/src/host/sdk/RemoteAgent.ts +205 -0
- package/src/host/sdk/RpcServer.ts +226 -0
- package/src/host/sdk/SdkSessionSystemComposer.ts +76 -0
- package/src/host/sdk/Session.ts +564 -0
- package/src/host/sdk/SessionMetadata.ts +178 -0
- package/src/host/sdk/StreamEvents.ts +95 -0
- package/src/http/Server.ts +2 -2
- package/src/http/auth/AuthStore.ts +7 -7
- package/src/http/auth/RoutePolicy.ts +6 -6
- package/src/http/control/AuthControlService.ts +161 -0
- package/src/http/control/CommonHelpers.ts +69 -0
- package/src/http/control/ControlApiRoutes.ts +31 -0
- package/src/http/control/ControlAuthorizationRoutes.ts +108 -0
- package/src/http/control/ControlRouter.ts +31 -0
- package/src/http/control/ExecuteBySession.ts +151 -0
- package/src/http/control/ExecuteInput.ts +236 -0
- package/src/http/control/Helpers.ts +22 -0
- package/src/http/control/MessageTimeline.ts +269 -0
- package/src/http/control/ModelRoutes.ts +107 -0
- package/src/http/control/OverviewRoutes.ts +106 -0
- package/src/http/control/SessionRoutes.ts +414 -0
- package/src/http/control/SessionSummaryStore.ts +76 -0
- package/src/http/control/TaskRoutes.ts +391 -0
- package/src/http/control/TaskStore.ts +222 -0
- package/src/http/execute/execute.ts +1 -1
- package/src/http/services/services.ts +2 -2
- package/src/index.ts +202 -6
- package/src/model/CreateModel.ts +25 -9
- package/src/plugin/HookRegistry.ts +1 -1
- package/src/plugin/HttpRoutes.ts +1 -1
- package/src/plugin/Lifecycle.ts +4 -4
- package/src/plugin/LocalExecution.ts +1 -1
- package/src/plugin/PluginManager.ts +1 -1
- package/src/plugin/PluginRegistry.ts +1 -1
- package/src/plugin/ProjectConfigStore.ts +1 -1
- package/src/plugins/asr/Plugin.ts +1 -1
- package/src/plugins/auth/Plugin.ts +2 -2
- package/src/plugins/auth/runtime/AuthorizationConfig.ts +4 -4
- package/src/plugins/auth/runtime/AuthorizationStore.ts +2 -2
- package/src/plugins/tts/runtime/Synthesizer.ts +1 -1
- package/src/plugins/voice/Plugin.ts +1 -1
- package/src/plugins/workboard/runtime/Collector.ts +5 -5
- package/src/plugins/workboard/runtime/Normalizer.ts +7 -7
- package/src/plugins/workboard/runtime/Store.ts +1 -1
- package/src/sandbox/SandboxConfigResolver.ts +1 -1
- package/src/sandbox/SandboxRunner.ts +1 -1
- package/src/service/builtins/BaseService.ts +97 -0
- package/src/service/builtins/chat/Action.ts +477 -0
- package/src/service/builtins/chat/ChatService.ts +255 -0
- package/src/service/builtins/chat/ChatServiceTypes.ts +164 -0
- package/src/service/builtins/chat/accounts/ChannelAccountService.ts +317 -0
- package/src/service/builtins/chat/channels/BaseChatChannel.ts +450 -0
- package/src/service/builtins/chat/channels/BaseChatChannelQueue.ts +321 -0
- package/src/service/builtins/chat/channels/BaseChatChannelSupport.ts +321 -0
- package/src/service/builtins/chat/channels/BotInfoProvider.ts +49 -0
- package/src/service/builtins/chat/channels/Configuration.ts +35 -0
- package/src/service/builtins/chat/channels/ConfigurationRegistry.ts +43 -0
- package/src/service/builtins/chat/channels/feishu/BotInfo.ts +199 -0
- package/src/service/builtins/chat/channels/feishu/Configuration.ts +65 -0
- package/src/service/builtins/chat/channels/feishu/Feishu.ts +634 -0
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformClient.ts +421 -0
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformLookup.ts +523 -0
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts +219 -0
- package/src/service/builtins/chat/channels/feishu/InboundAttachment.ts +261 -0
- package/src/service/builtins/chat/channels/feishu/PostMessage.ts +492 -0
- package/src/service/builtins/chat/channels/feishu/ReplyContext.ts +68 -0
- package/src/service/builtins/chat/channels/feishu/Shared.ts +94 -0
- package/src/service/builtins/chat/channels/qq/BotInfo.ts +137 -0
- package/src/service/builtins/chat/channels/qq/Configuration.ts +64 -0
- package/src/service/builtins/chat/channels/qq/QQ.ts +633 -0
- package/src/service/builtins/chat/channels/qq/QQGatewayAuth.ts +318 -0
- package/src/service/builtins/chat/channels/qq/QQInbound.ts +262 -0
- package/src/service/builtins/chat/channels/qq/QQInboundDedupe.ts +126 -0
- package/src/service/builtins/chat/channels/qq/QQSupport.ts +263 -0
- package/src/service/builtins/chat/channels/qq/VoiceInput.ts +381 -0
- package/src/service/builtins/chat/channels/telegram/Bot.ts +652 -0
- package/src/service/builtins/chat/channels/telegram/BotInfo.ts +92 -0
- package/src/service/builtins/chat/channels/telegram/Configuration.ts +65 -0
- package/src/service/builtins/chat/channels/telegram/ReplyContext.ts +76 -0
- package/src/service/builtins/chat/channels/telegram/Shared.ts +404 -0
- package/src/service/builtins/chat/channels/telegram/TelegramPlatformClient.ts +482 -0
- package/src/service/builtins/chat/runtime/ChannelContextStore.ts +395 -0
- package/src/service/builtins/chat/runtime/ChatActionExecution.ts +362 -0
- package/src/service/builtins/chat/runtime/ChatActionInput.ts +590 -0
- package/src/service/builtins/chat/runtime/ChatChannelActions.ts +313 -0
- package/src/service/builtins/chat/runtime/ChatChannelConfig.ts +330 -0
- package/src/service/builtins/chat/runtime/ChatChannelCore.ts +150 -0
- package/src/service/builtins/chat/runtime/ChatChannelLifecycle.ts +169 -0
- package/src/service/builtins/chat/runtime/ChatHistoryStore.ts +289 -0
- package/src/service/builtins/chat/runtime/ChatIngressStore.ts +88 -0
- package/src/service/builtins/chat/runtime/ChatMessageMarkup.ts +263 -0
- package/src/service/builtins/chat/runtime/ChatMetaStore.ts +186 -0
- package/src/service/builtins/chat/runtime/ChatQueue.ts +77 -0
- package/src/service/builtins/chat/runtime/ChatQueueReplyDispatch.ts +191 -0
- package/src/service/builtins/chat/runtime/ChatQueueSessionBridge.ts +122 -0
- package/src/service/builtins/chat/runtime/ChatQueueStore.ts +185 -0
- package/src/service/builtins/chat/runtime/ChatQueueWorker.ts +504 -0
- package/src/service/builtins/chat/runtime/ChatQueueWorkerSupport.ts +137 -0
- package/src/service/builtins/chat/runtime/ChatSendMetadata.ts +170 -0
- package/src/service/builtins/chat/runtime/ChatSendRegistry.ts +43 -0
- package/src/service/builtins/chat/runtime/ChatServiceSystem.ts +119 -0
- package/src/service/builtins/chat/runtime/ChatSession.ts +125 -0
- package/src/service/builtins/chat/runtime/ChatSessionDelete.ts +95 -0
- package/src/service/builtins/chat/runtime/ChatSessionExecutionComposer.ts +106 -0
- package/src/service/builtins/chat/runtime/ChatkeySend.ts +187 -0
- package/src/service/builtins/chat/runtime/DirectDispatchParser.ts +158 -0
- package/src/service/builtins/chat/runtime/EnqueueDispatch.ts +49 -0
- package/src/service/builtins/chat/runtime/InboundAugment.ts +63 -0
- package/src/service/builtins/chat/runtime/PluginDispatch.ts +89 -0
- package/src/service/builtins/chat/runtime/ReplyContextFormatter.ts +85 -0
- package/src/service/builtins/chat/runtime/ReplyDispatch.ts +78 -0
- package/src/service/builtins/chat/runtime/SystemPrompt.ts +84 -0
- package/src/service/builtins/chat/types/BotInfo.ts +101 -0
- package/src/service/builtins/chat/types/ChannelAccount.ts +232 -0
- package/src/service/builtins/chat/types/ChannelConfiguration.ts +161 -0
- package/src/service/builtins/chat/types/ChatHistory.ts +42 -0
- package/src/service/builtins/chat/types/DirectDispatch.ts +133 -0
- package/src/service/builtins/chat/types/FeishuInboundAttachment.ts +138 -0
- package/src/service/builtins/contact/ContactService.ts +799 -0
- package/src/service/builtins/contact/runtime/ApproveCallback.ts +97 -0
- package/src/service/builtins/contact/runtime/ChatRuntime.ts +82 -0
- package/src/service/builtins/contact/runtime/ContactStore.ts +299 -0
- package/src/service/builtins/contact/runtime/EndpointNotice.ts +125 -0
- package/src/service/builtins/contact/runtime/InboxStore.ts +178 -0
- package/src/service/builtins/contact/runtime/LinkApproval.ts +387 -0
- package/src/service/builtins/contact/runtime/LinkCode.ts +70 -0
- package/src/service/builtins/contact/runtime/LinkStore.ts +50 -0
- package/src/service/builtins/contact/runtime/ShareBundle.ts +286 -0
- package/src/service/builtins/memory/Action.ts +188 -0
- package/src/service/builtins/memory/MemoryService.ts +329 -0
- package/src/service/builtins/memory/runtime/Flush.ts +83 -0
- package/src/service/builtins/memory/runtime/Indexer.ts +466 -0
- package/src/service/builtins/memory/runtime/Search.ts +90 -0
- package/src/service/builtins/memory/runtime/Store.ts +370 -0
- package/src/service/builtins/memory/runtime/SystemProvider.ts +145 -0
- package/src/service/builtins/memory/runtime/Writer.ts +174 -0
- package/src/service/builtins/shell/ShellRuntimeTypes.ts +94 -0
- package/src/service/builtins/shell/ShellService.ts +199 -0
- package/src/service/builtins/shell/runtime/ShellActionRuntime.ts +579 -0
- package/src/service/builtins/shell/runtime/ShellActionRuntimeSupport.ts +552 -0
- package/src/service/builtins/task/Action.ts +491 -0
- package/src/service/builtins/task/Scheduler.ts +245 -0
- package/src/service/builtins/task/TaskService.ts +167 -0
- package/src/service/builtins/task/runtime/CronRuntime.ts +73 -0
- package/src/service/builtins/task/runtime/Model.ts +347 -0
- package/src/service/builtins/task/runtime/Runner.ts +558 -0
- package/src/service/builtins/task/runtime/Store.ts +253 -0
- package/src/service/builtins/task/runtime/TaskActionExecution.ts +276 -0
- package/src/service/builtins/task/runtime/TaskActionInput.ts +463 -0
- package/src/service/builtins/task/runtime/TaskRunArtifacts.ts +493 -0
- package/src/service/builtins/task/runtime/TaskRunChatDispatch.ts +81 -0
- package/src/service/builtins/task/runtime/TaskRunnerProgress.ts +112 -0
- package/src/service/builtins/task/runtime/TaskRunnerRound.ts +337 -0
- package/src/service/builtins/task/runtime/TaskRunnerSession.ts +167 -0
- package/src/service/builtins/task/runtime/TaskRunnerTypes.ts +199 -0
- package/src/service/builtins/task/runtime/TaskServiceActions.ts +248 -0
- package/src/service/core/ServiceActionApi.ts +304 -0
- package/src/service/core/ServiceActionRunner.ts +272 -0
- package/src/service/core/ServiceClassRegistry.ts +77 -0
- package/src/service/core/ServiceStateController.ts +316 -0
- package/src/service/core/ServiceSystemProviders.ts +50 -0
- package/src/service/core/Services.ts +33 -0
- package/src/service/schedule/Executor.ts +2 -2
- package/src/service/schedule/Runtime.ts +1 -1
- package/src/session/Session.ts +4 -0
- package/src/session/SessionRunScope.ts +13 -1
- package/src/session/composer/history/jsonl/JsonlSessionHistoryComposer.ts +33 -0
- package/src/session/composer/system/default/DefaultSessionSystemComposer.ts +1 -1
- package/src/session/composer/system/default/SystemDomain.ts +2 -2
- package/src/session/executors/local/LocalSessionCore.ts +40 -5
- package/src/session/messages/SessionAttachmentMapper.ts +1 -1
- package/src/session/tools/shell/ShellToolBridge.ts +2 -2
- package/src/shared/constants/DowncitySchema.ts +1 -1
- package/src/shared/types/AgentProject.ts +2 -2
- package/src/shared/types/AuthControl.ts +38 -0
- package/src/shared/types/AuthPlugin.ts +2 -2
- package/src/shared/types/ChatPlugin.ts +1 -1
- package/src/shared/types/ChatPromptContext.ts +1 -1
- package/src/shared/types/ChatRuntime.ts +3 -3
- package/src/shared/types/ChatService.ts +2 -2
- package/src/shared/types/ControlRoutes.ts +31 -0
- package/src/shared/types/ControlSessionExecute.ts +99 -0
- package/src/shared/types/ControlViewData.ts +392 -0
- package/src/shared/types/DowncityConfig.ts +6 -6
- package/src/shared/types/ExecutionBinding.ts +2 -2
- package/src/shared/types/InlineInstant.ts +8 -8
- package/src/shared/types/LlmConfig.ts +1 -1
- package/src/shared/types/LocalRpc.ts +1 -1
- package/src/shared/types/ModelBinding.ts +2 -2
- package/src/shared/types/Platform.ts +442 -0
- package/src/shared/types/PlatformGateway.ts +196 -0
- package/src/shared/types/Plugin.ts +2 -2
- package/src/shared/types/PluginApi.ts +1 -1
- package/src/shared/types/README.md +8 -5
- package/src/shared/types/Service.ts +1 -1
- package/src/shared/types/Services.ts +1 -1
- package/src/shared/types/Store.ts +25 -3
- package/src/shared/types/TaskService.ts +1 -1
- package/src/shared/utils/README.md +3 -3
- package/src/shared/utils/store/StoreChannelAccountRepository.ts +8 -8
- package/src/shared/utils/store/StoreEnvRepository.ts +21 -21
- package/src/shared/utils/store/StoreModelRepository.ts +29 -14
- package/src/shared/utils/store/StoreSchema.ts +12 -12
- package/src/shared/utils/store/StoreSecureSettings.ts +14 -14
- package/src/shared/utils/store/StoreShared.ts +6 -6
- package/src/shared/utils/store/crypto.ts +2 -2
- package/src/shared/utils/store/index.ts +30 -20
- package/src/shared/utils/store/schema.ts +1 -1
- package/src/types/session/SessionHistoryMeta.ts +18 -0
- package/src/types/session/SessionMessages.ts +1 -1
- package/src/types/session/SessionRun.ts +17 -1
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/bin/daemon/Api.d.ts +0 -60
- package/bin/daemon/Api.d.ts.map +0 -1
- package/bin/daemon/Api.js.map +0 -1
- package/bin/daemon/Client.d.ts.map +0 -1
- package/bin/daemon/Client.js +0 -158
- package/bin/daemon/Client.js.map +0 -1
- package/bin/daemon/Manager.d.ts +0 -92
- package/bin/daemon/Manager.d.ts.map +0 -1
- package/bin/daemon/Manager.js +0 -287
- package/bin/daemon/Manager.js.map +0 -1
- package/bin/daemon/ProjectSetup.d.ts.map +0 -1
- package/bin/daemon/ProjectSetup.js +0 -101
- package/bin/daemon/ProjectSetup.js.map +0 -1
- package/bin/http/dashboard/AuthDashboardService.d.ts +0 -30
- package/bin/http/dashboard/AuthDashboardService.d.ts.map +0 -1
- package/bin/http/dashboard/AuthDashboardService.js +0 -120
- package/bin/http/dashboard/AuthDashboardService.js.map +0 -1
- package/bin/http/dashboard/CommonHelpers.d.ts +0 -24
- package/bin/http/dashboard/CommonHelpers.d.ts.map +0 -1
- package/bin/http/dashboard/CommonHelpers.js +0 -46
- package/bin/http/dashboard/CommonHelpers.js.map +0 -1
- package/bin/http/dashboard/DashboardApiRoutes.d.ts +0 -13
- package/bin/http/dashboard/DashboardApiRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/DashboardApiRoutes.js +0 -26
- package/bin/http/dashboard/DashboardApiRoutes.js.map +0 -1
- package/bin/http/dashboard/DashboardAuthorizationRoutes.d.ts +0 -17
- package/bin/http/dashboard/DashboardAuthorizationRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/DashboardAuthorizationRoutes.js +0 -78
- package/bin/http/dashboard/DashboardAuthorizationRoutes.js.map +0 -1
- package/bin/http/dashboard/ExecuteBySession.d.ts +0 -39
- package/bin/http/dashboard/ExecuteBySession.d.ts.map +0 -1
- package/bin/http/dashboard/ExecuteBySession.js +0 -128
- package/bin/http/dashboard/ExecuteBySession.js.map +0 -1
- package/bin/http/dashboard/ExecuteInput.d.ts +0 -18
- package/bin/http/dashboard/ExecuteInput.d.ts.map +0 -1
- package/bin/http/dashboard/ExecuteInput.js +0 -201
- package/bin/http/dashboard/ExecuteInput.js.map +0 -1
- package/bin/http/dashboard/Helpers.d.ts +0 -13
- package/bin/http/dashboard/Helpers.d.ts.map +0 -1
- package/bin/http/dashboard/Helpers.js +0 -13
- package/bin/http/dashboard/Helpers.js.map +0 -1
- package/bin/http/dashboard/MessageTimeline.d.ts +0 -22
- package/bin/http/dashboard/MessageTimeline.d.ts.map +0 -1
- package/bin/http/dashboard/MessageTimeline.js +0 -226
- package/bin/http/dashboard/MessageTimeline.js.map +0 -1
- package/bin/http/dashboard/ModelRoutes.d.ts +0 -13
- package/bin/http/dashboard/ModelRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/ModelRoutes.js +0 -87
- package/bin/http/dashboard/ModelRoutes.js.map +0 -1
- package/bin/http/dashboard/OverviewRoutes.d.ts +0 -13
- package/bin/http/dashboard/OverviewRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/OverviewRoutes.js +0 -88
- package/bin/http/dashboard/OverviewRoutes.js.map +0 -1
- package/bin/http/dashboard/Router.d.ts +0 -14
- package/bin/http/dashboard/Router.d.ts.map +0 -1
- package/bin/http/dashboard/Router.js +0 -21
- package/bin/http/dashboard/Router.js.map +0 -1
- package/bin/http/dashboard/SessionRoutes.d.ts +0 -13
- package/bin/http/dashboard/SessionRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/SessionRoutes.js +0 -315
- package/bin/http/dashboard/SessionRoutes.js.map +0 -1
- package/bin/http/dashboard/SessionSummaryStore.d.ts +0 -19
- package/bin/http/dashboard/SessionSummaryStore.d.ts.map +0 -1
- package/bin/http/dashboard/SessionSummaryStore.js +0 -62
- package/bin/http/dashboard/SessionSummaryStore.js.map +0 -1
- package/bin/http/dashboard/TaskRoutes.d.ts +0 -13
- package/bin/http/dashboard/TaskRoutes.d.ts.map +0 -1
- package/bin/http/dashboard/TaskRoutes.js +0 -318
- package/bin/http/dashboard/TaskRoutes.js.map +0 -1
- package/bin/http/dashboard/TaskStore.d.ts +0 -33
- package/bin/http/dashboard/TaskStore.d.ts.map +0 -1
- package/bin/http/dashboard/TaskStore.js +0 -157
- package/bin/http/dashboard/TaskStore.js.map +0 -1
- package/bin/rpc/Client.d.ts +0 -13
- package/bin/rpc/Client.d.ts.map +0 -1
- package/bin/rpc/Client.js.map +0 -1
- package/bin/rpc/Paths.d.ts.map +0 -1
- package/bin/rpc/Paths.js +0 -36
- package/bin/rpc/Paths.js.map +0 -1
- package/bin/rpc/Server.d.ts +0 -18
- package/bin/rpc/Server.d.ts.map +0 -1
- package/bin/rpc/Server.js +0 -307
- package/bin/rpc/Server.js.map +0 -1
- package/bin/rpc/Transport.d.ts +0 -21
- package/bin/rpc/Transport.d.ts.map +0 -1
- package/bin/rpc/Transport.js +0 -30
- package/bin/rpc/Transport.js.map +0 -1
- package/bin/runtime/AgentHostRuntime.d.ts +0 -10
- package/bin/runtime/AgentHostRuntime.d.ts.map +0 -1
- package/bin/runtime/AgentHostRuntime.js +0 -47
- package/bin/runtime/AgentHostRuntime.js.map +0 -1
- package/bin/runtime/CityPaths.d.ts +0 -61
- package/bin/runtime/CityPaths.d.ts.map +0 -1
- package/bin/runtime/CityPaths.js +0 -90
- package/bin/runtime/CityPaths.js.map +0 -1
- package/bin/runtime/CityRegistry.d.ts +0 -51
- package/bin/runtime/CityRegistry.d.ts.map +0 -1
- package/bin/runtime/CityRegistry.js +0 -217
- package/bin/runtime/CityRegistry.js.map +0 -1
- package/bin/runtime/CityRuntime.d.ts +0 -21
- package/bin/runtime/CityRuntime.d.ts.map +0 -1
- package/bin/runtime/CityRuntime.js +0 -45
- package/bin/runtime/CityRuntime.js.map +0 -1
- package/bin/runtime/PluginRuntime.d.ts +0 -24
- package/bin/runtime/PluginRuntime.d.ts.map +0 -1
- package/bin/runtime/PluginRuntime.js.map +0 -1
- package/bin/runtime/ProcessSweep.d.ts +0 -76
- package/bin/runtime/ProcessSweep.d.ts.map +0 -1
- package/bin/runtime/ProcessSweep.js +0 -188
- package/bin/runtime/ProcessSweep.js.map +0 -1
- package/bin/service/Manager.d.ts +0 -13
- package/bin/service/Manager.d.ts.map +0 -1
- package/bin/service/Manager.js.map +0 -1
- package/bin/service/ServiceActionApi.d.ts +0 -15
- package/bin/service/ServiceActionApi.d.ts.map +0 -1
- package/bin/service/ServiceActionApi.js +0 -234
- package/bin/service/ServiceActionApi.js.map +0 -1
- package/bin/service/ServiceActionRunner.d.ts +0 -44
- package/bin/service/ServiceActionRunner.d.ts.map +0 -1
- package/bin/service/ServiceActionRunner.js +0 -211
- package/bin/service/ServiceActionRunner.js.map +0 -1
- package/bin/service/ServiceClassRegistry.d.ts +0 -40
- package/bin/service/ServiceClassRegistry.d.ts.map +0 -1
- package/bin/service/ServiceClassRegistry.js +0 -64
- package/bin/service/ServiceClassRegistry.js.map +0 -1
- package/bin/service/ServiceManager.d.ts +0 -9
- package/bin/service/ServiceManager.d.ts.map +0 -1
- package/bin/service/ServiceManager.js.map +0 -1
- package/bin/service/ServiceStateController.d.ts +0 -79
- package/bin/service/ServiceStateController.d.ts.map +0 -1
- package/bin/service/ServiceStateController.js +0 -245
- package/bin/service/ServiceStateController.js.map +0 -1
- package/bin/service/ServiceSystemProviders.d.ts +0 -27
- package/bin/service/ServiceSystemProviders.d.ts.map +0 -1
- package/bin/service/ServiceSystemProviders.js +0 -34
- package/bin/service/ServiceSystemProviders.js.map +0 -1
- package/bin/service/Services.d.ts +0 -18
- package/bin/service/Services.d.ts.map +0 -1
- package/bin/service/Services.js +0 -23
- package/bin/service/Services.js.map +0 -1
- package/bin/services/BaseService.d.ts +0 -62
- package/bin/services/BaseService.d.ts.map +0 -1
- package/bin/services/BaseService.js +0 -56
- package/bin/services/BaseService.js.map +0 -1
- package/bin/services/chat/Action.d.ts +0 -125
- package/bin/services/chat/Action.d.ts.map +0 -1
- package/bin/services/chat/Action.js +0 -376
- package/bin/services/chat/Action.js.map +0 -1
- package/bin/services/chat/ChatService.d.ts +0 -63
- package/bin/services/chat/ChatService.d.ts.map +0 -1
- package/bin/services/chat/ChatService.js +0 -96
- package/bin/services/chat/ChatService.js.map +0 -1
- package/bin/services/chat/Index.d.ts.map +0 -1
- package/bin/services/chat/Index.js.map +0 -1
- package/bin/services/chat/channels/BaseChatChannel.d.ts +0 -197
- package/bin/services/chat/channels/BaseChatChannel.d.ts.map +0 -1
- package/bin/services/chat/channels/BaseChatChannel.js +0 -278
- package/bin/services/chat/channels/BaseChatChannel.js.map +0 -1
- package/bin/services/chat/channels/BaseChatChannelQueue.d.ts +0 -73
- package/bin/services/chat/channels/BaseChatChannelQueue.d.ts.map +0 -1
- package/bin/services/chat/channels/BaseChatChannelQueue.js +0 -238
- package/bin/services/chat/channels/BaseChatChannelQueue.js.map +0 -1
- package/bin/services/chat/channels/BaseChatChannelSupport.d.ts +0 -189
- package/bin/services/chat/channels/BaseChatChannelSupport.d.ts.map +0 -1
- package/bin/services/chat/channels/BaseChatChannelSupport.js +0 -141
- package/bin/services/chat/channels/BaseChatChannelSupport.js.map +0 -1
- package/bin/services/chat/channels/BotInfoProvider.d.ts +0 -18
- package/bin/services/chat/channels/BotInfoProvider.d.ts.map +0 -1
- package/bin/services/chat/channels/BotInfoProvider.js +0 -32
- package/bin/services/chat/channels/BotInfoProvider.js.map +0 -1
- package/bin/services/chat/channels/Configuration.d.ts +0 -27
- package/bin/services/chat/channels/Configuration.d.ts.map +0 -1
- package/bin/services/chat/channels/Configuration.js.map +0 -1
- package/bin/services/chat/channels/ConfigurationRegistry.d.ts +0 -18
- package/bin/services/chat/channels/ConfigurationRegistry.d.ts.map +0 -1
- package/bin/services/chat/channels/ConfigurationRegistry.js +0 -31
- package/bin/services/chat/channels/ConfigurationRegistry.js.map +0 -1
- package/bin/services/chat/channels/feishu/BotInfo.d.ts +0 -20
- package/bin/services/chat/channels/feishu/BotInfo.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/BotInfo.js.map +0 -1
- package/bin/services/chat/channels/feishu/Configuration.d.ts +0 -17
- package/bin/services/chat/channels/feishu/Configuration.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/Configuration.js +0 -59
- package/bin/services/chat/channels/feishu/Configuration.js.map +0 -1
- package/bin/services/chat/channels/feishu/Feishu.d.ts +0 -116
- package/bin/services/chat/channels/feishu/Feishu.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/Feishu.js +0 -454
- package/bin/services/chat/channels/feishu/Feishu.js.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuInbound.d.ts +0 -21
- package/bin/services/chat/channels/feishu/FeishuInbound.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuInbound.js.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformClient.d.ts +0 -130
- package/bin/services/chat/channels/feishu/FeishuPlatformClient.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformClient.js.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformLookup.d.ts +0 -102
- package/bin/services/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformLookup.js.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.d.ts +0 -49
- package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.js.map +0 -1
- package/bin/services/chat/channels/feishu/InboundAttachment.d.ts +0 -31
- package/bin/services/chat/channels/feishu/InboundAttachment.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/InboundAttachment.js.map +0 -1
- package/bin/services/chat/channels/feishu/PostMessage.d.ts +0 -48
- package/bin/services/chat/channels/feishu/PostMessage.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/PostMessage.js.map +0 -1
- package/bin/services/chat/channels/feishu/ReplyContext.d.ts +0 -18
- package/bin/services/chat/channels/feishu/ReplyContext.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/ReplyContext.js.map +0 -1
- package/bin/services/chat/channels/feishu/Shared.d.ts +0 -21
- package/bin/services/chat/channels/feishu/Shared.d.ts.map +0 -1
- package/bin/services/chat/channels/feishu/Shared.js +0 -69
- package/bin/services/chat/channels/feishu/Shared.js.map +0 -1
- package/bin/services/chat/channels/qq/BotInfo.d.ts +0 -19
- package/bin/services/chat/channels/qq/BotInfo.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/BotInfo.js.map +0 -1
- package/bin/services/chat/channels/qq/Configuration.d.ts +0 -17
- package/bin/services/chat/channels/qq/Configuration.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/Configuration.js +0 -59
- package/bin/services/chat/channels/qq/Configuration.js.map +0 -1
- package/bin/services/chat/channels/qq/QQ.d.ts +0 -92
- package/bin/services/chat/channels/qq/QQ.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQ.js +0 -481
- package/bin/services/chat/channels/qq/QQ.js.map +0 -1
- package/bin/services/chat/channels/qq/QQEventCapture.d.ts +0 -22
- package/bin/services/chat/channels/qq/QQEventCapture.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQEventCapture.js.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewayAuth.d.ts +0 -119
- package/bin/services/chat/channels/qq/QQGatewayAuth.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewayAuth.js.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewayClient.d.ts +0 -179
- package/bin/services/chat/channels/qq/QQGatewayClient.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewayClient.js +0 -540
- package/bin/services/chat/channels/qq/QQGatewayClient.js.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewaySend.d.ts +0 -84
- package/bin/services/chat/channels/qq/QQGatewaySend.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewaySend.js.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewaySupport.d.ts +0 -39
- package/bin/services/chat/channels/qq/QQGatewaySupport.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQGatewaySupport.js.map +0 -1
- package/bin/services/chat/channels/qq/QQInbound.d.ts +0 -47
- package/bin/services/chat/channels/qq/QQInbound.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQInbound.js.map +0 -1
- package/bin/services/chat/channels/qq/QQInboundDedupe.d.ts +0 -48
- package/bin/services/chat/channels/qq/QQInboundDedupe.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQInboundDedupe.js.map +0 -1
- package/bin/services/chat/channels/qq/QQSendSupport.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQSendSupport.js.map +0 -1
- package/bin/services/chat/channels/qq/QQSupport.d.ts +0 -102
- package/bin/services/chat/channels/qq/QQSupport.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQSupport.js +0 -172
- package/bin/services/chat/channels/qq/QQSupport.js.map +0 -1
- package/bin/services/chat/channels/qq/VoiceInput.d.ts +0 -64
- package/bin/services/chat/channels/qq/VoiceInput.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/VoiceInput.js.map +0 -1
- package/bin/services/chat/channels/telegram/ApiClient.d.ts +0 -99
- package/bin/services/chat/channels/telegram/ApiClient.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/ApiClient.js.map +0 -1
- package/bin/services/chat/channels/telegram/Bot.d.ts +0 -97
- package/bin/services/chat/channels/telegram/Bot.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/Bot.js +0 -500
- package/bin/services/chat/channels/telegram/Bot.js.map +0 -1
- package/bin/services/chat/channels/telegram/BotInfo.d.ts +0 -19
- package/bin/services/chat/channels/telegram/BotInfo.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/BotInfo.js.map +0 -1
- package/bin/services/chat/channels/telegram/Configuration.d.ts +0 -17
- package/bin/services/chat/channels/telegram/Configuration.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/Configuration.js +0 -59
- package/bin/services/chat/channels/telegram/Configuration.js.map +0 -1
- package/bin/services/chat/channels/telegram/Handlers.d.ts +0 -42
- package/bin/services/chat/channels/telegram/Handlers.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/Handlers.js.map +0 -1
- package/bin/services/chat/channels/telegram/ReplyContext.d.ts +0 -14
- package/bin/services/chat/channels/telegram/ReplyContext.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/ReplyContext.js.map +0 -1
- package/bin/services/chat/channels/telegram/Shared.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/Shared.js +0 -171
- package/bin/services/chat/channels/telegram/Shared.js.map +0 -1
- package/bin/services/chat/channels/telegram/StateStore.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/StateStore.js.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramInbound.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramInbound.js.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramPlatformClient.d.ts +0 -161
- package/bin/services/chat/channels/telegram/TelegramPlatformClient.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramPlatformClient.js.map +0 -1
- package/bin/services/chat/runtime/ChannelContextStore.d.ts +0 -78
- package/bin/services/chat/runtime/ChannelContextStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChannelContextStore.js +0 -336
- package/bin/services/chat/runtime/ChannelContextStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatActionExecution.d.ts +0 -145
- package/bin/services/chat/runtime/ChatActionExecution.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatActionExecution.js +0 -287
- package/bin/services/chat/runtime/ChatActionExecution.js.map +0 -1
- package/bin/services/chat/runtime/ChatActionInput.d.ts +0 -63
- package/bin/services/chat/runtime/ChatActionInput.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatActionInput.js +0 -458
- package/bin/services/chat/runtime/ChatActionInput.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelActions.d.ts +0 -122
- package/bin/services/chat/runtime/ChatChannelActions.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelActions.js +0 -237
- package/bin/services/chat/runtime/ChatChannelActions.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelConfig.d.ts +0 -61
- package/bin/services/chat/runtime/ChatChannelConfig.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelConfig.js +0 -265
- package/bin/services/chat/runtime/ChatChannelConfig.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelCore.d.ts +0 -41
- package/bin/services/chat/runtime/ChatChannelCore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelCore.js +0 -92
- package/bin/services/chat/runtime/ChatChannelCore.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelFacade.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelFacade.js.map +0 -1
- package/bin/services/chat/runtime/ChatChannelLifecycle.d.ts +0 -28
- package/bin/services/chat/runtime/ChatChannelLifecycle.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelLifecycle.js +0 -132
- package/bin/services/chat/runtime/ChatChannelLifecycle.js.map +0 -1
- package/bin/services/chat/runtime/ChatHistoryStore.d.ts +0 -72
- package/bin/services/chat/runtime/ChatHistoryStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatHistoryStore.js +0 -219
- package/bin/services/chat/runtime/ChatHistoryStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatIngressStore.d.ts +0 -52
- package/bin/services/chat/runtime/ChatIngressStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatIngressStore.js +0 -65
- package/bin/services/chat/runtime/ChatIngressStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatMessageMarkup.d.ts +0 -54
- package/bin/services/chat/runtime/ChatMessageMarkup.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatMessageMarkup.js.map +0 -1
- package/bin/services/chat/runtime/ChatMetaStore.d.ts +0 -68
- package/bin/services/chat/runtime/ChatMetaStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatMetaStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueue.d.ts +0 -40
- package/bin/services/chat/runtime/ChatQueue.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueue.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueReplyDispatch.d.ts +0 -31
- package/bin/services/chat/runtime/ChatQueueReplyDispatch.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueReplyDispatch.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueSessionBridge.d.ts +0 -55
- package/bin/services/chat/runtime/ChatQueueSessionBridge.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueSessionBridge.js +0 -98
- package/bin/services/chat/runtime/ChatQueueSessionBridge.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueStore.d.ts +0 -85
- package/bin/services/chat/runtime/ChatQueueStore.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueStore.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueWorker.d.ts +0 -88
- package/bin/services/chat/runtime/ChatQueueWorker.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueWorker.js.map +0 -1
- package/bin/services/chat/runtime/ChatQueueWorkerSupport.d.ts +0 -36
- package/bin/services/chat/runtime/ChatQueueWorkerSupport.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatQueueWorkerSupport.js.map +0 -1
- package/bin/services/chat/runtime/ChatSendMetadata.d.ts +0 -20
- package/bin/services/chat/runtime/ChatSendMetadata.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSendMetadata.js.map +0 -1
- package/bin/services/chat/runtime/ChatSendRegistry.d.ts +0 -27
- package/bin/services/chat/runtime/ChatSendRegistry.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSendRegistry.js.map +0 -1
- package/bin/services/chat/runtime/ChatServiceActions.d.ts +0 -17
- package/bin/services/chat/runtime/ChatServiceActions.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatServiceActions.js.map +0 -1
- package/bin/services/chat/runtime/ChatServiceSystem.d.ts +0 -22
- package/bin/services/chat/runtime/ChatServiceSystem.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatServiceSystem.js +0 -87
- package/bin/services/chat/runtime/ChatServiceSystem.js.map +0 -1
- package/bin/services/chat/runtime/ChatSession.d.ts +0 -73
- package/bin/services/chat/runtime/ChatSession.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSession.js +0 -78
- package/bin/services/chat/runtime/ChatSession.js.map +0 -1
- package/bin/services/chat/runtime/ChatSessionDelete.d.ts +0 -29
- package/bin/services/chat/runtime/ChatSessionDelete.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSessionDelete.js +0 -76
- package/bin/services/chat/runtime/ChatSessionDelete.js.map +0 -1
- package/bin/services/chat/runtime/ChatSessionExecutionComposer.d.ts +0 -45
- package/bin/services/chat/runtime/ChatSessionExecutionComposer.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatSessionExecutionComposer.js +0 -60
- package/bin/services/chat/runtime/ChatSessionExecutionComposer.js.map +0 -1
- package/bin/services/chat/runtime/ChatkeySend.d.ts +0 -67
- package/bin/services/chat/runtime/ChatkeySend.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatkeySend.js.map +0 -1
- package/bin/services/chat/runtime/DirectDispatchParser.d.ts +0 -22
- package/bin/services/chat/runtime/DirectDispatchParser.d.ts.map +0 -1
- package/bin/services/chat/runtime/DirectDispatchParser.js +0 -133
- package/bin/services/chat/runtime/DirectDispatchParser.js.map +0 -1
- package/bin/services/chat/runtime/EnqueueDispatch.d.ts +0 -24
- package/bin/services/chat/runtime/EnqueueDispatch.d.ts.map +0 -1
- package/bin/services/chat/runtime/EnqueueDispatch.js +0 -28
- package/bin/services/chat/runtime/EnqueueDispatch.js.map +0 -1
- package/bin/services/chat/runtime/InboundAugment.d.ts +0 -21
- package/bin/services/chat/runtime/InboundAugment.d.ts.map +0 -1
- package/bin/services/chat/runtime/InboundAugment.js +0 -50
- package/bin/services/chat/runtime/InboundAugment.js.map +0 -1
- package/bin/services/chat/runtime/PluginDispatch.d.ts +0 -43
- package/bin/services/chat/runtime/PluginDispatch.d.ts.map +0 -1
- package/bin/services/chat/runtime/PluginDispatch.js +0 -57
- package/bin/services/chat/runtime/PluginDispatch.js.map +0 -1
- package/bin/services/chat/runtime/PluginPoints.d.ts.map +0 -1
- package/bin/services/chat/runtime/PluginPoints.js.map +0 -1
- package/bin/services/chat/runtime/QueuedUserMessage.d.ts +0 -20
- package/bin/services/chat/runtime/QueuedUserMessage.d.ts.map +0 -1
- package/bin/services/chat/runtime/QueuedUserMessage.js.map +0 -1
- package/bin/services/chat/runtime/ReplyContextFormatter.d.ts +0 -29
- package/bin/services/chat/runtime/ReplyContextFormatter.d.ts.map +0 -1
- package/bin/services/chat/runtime/ReplyContextFormatter.js.map +0 -1
- package/bin/services/chat/runtime/ReplyDispatch.d.ts +0 -36
- package/bin/services/chat/runtime/ReplyDispatch.d.ts.map +0 -1
- package/bin/services/chat/runtime/ReplyDispatch.js +0 -51
- package/bin/services/chat/runtime/ReplyDispatch.js.map +0 -1
- package/bin/services/chat/runtime/SystemPrompt.d.ts +0 -26
- package/bin/services/chat/runtime/SystemPrompt.d.ts.map +0 -1
- package/bin/services/chat/runtime/SystemPrompt.js +0 -70
- package/bin/services/chat/runtime/SystemPrompt.js.map +0 -1
- package/bin/services/chat/runtime/UIMessageTransformer.d.ts +0 -24
- package/bin/services/chat/runtime/UIMessageTransformer.d.ts.map +0 -1
- package/bin/services/chat/runtime/UIMessageTransformer.js.map +0 -1
- package/bin/services/chat/runtime/UserVisibleText.d.ts +0 -34
- package/bin/services/chat/runtime/UserVisibleText.d.ts.map +0 -1
- package/bin/services/chat/runtime/UserVisibleText.js.map +0 -1
- package/bin/services/chat/types/BotInfo.d.ts +0 -97
- package/bin/services/chat/types/BotInfo.d.ts.map +0 -1
- package/bin/services/chat/types/BotInfo.js.map +0 -1
- package/bin/services/chat/types/ChannelConfiguration.d.ts +0 -146
- package/bin/services/chat/types/ChannelConfiguration.d.ts.map +0 -1
- package/bin/services/chat/types/ChannelConfiguration.js.map +0 -1
- package/bin/services/chat/types/ChannelContext.d.ts.map +0 -1
- package/bin/services/chat/types/ChannelContext.js.map +0 -1
- package/bin/services/chat/types/ChannelStatus.d.ts.map +0 -1
- package/bin/services/chat/types/ChannelStatus.js.map +0 -1
- package/bin/services/chat/types/ChatCommand.d.ts.map +0 -1
- package/bin/services/chat/types/ChatCommand.js.map +0 -1
- package/bin/services/chat/types/ChatDispatcher.d.ts.map +0 -1
- package/bin/services/chat/types/ChatDispatcher.js.map +0 -1
- package/bin/services/chat/types/ChatHistory.d.ts +0 -36
- package/bin/services/chat/types/ChatHistory.d.ts.map +0 -1
- package/bin/services/chat/types/ChatHistory.js.map +0 -1
- package/bin/services/chat/types/ChatMessageMarkup.d.ts.map +0 -1
- package/bin/services/chat/types/ChatMessageMarkup.js.map +0 -1
- package/bin/services/chat/types/ChatMeta.d.ts.map +0 -1
- package/bin/services/chat/types/ChatMeta.js.map +0 -1
- package/bin/services/chat/types/ChatQueue.d.ts +0 -44
- package/bin/services/chat/types/ChatQueue.d.ts.map +0 -1
- package/bin/services/chat/types/ChatQueue.js.map +0 -1
- package/bin/services/chat/types/DirectDispatch.d.ts +0 -115
- package/bin/services/chat/types/DirectDispatch.d.ts.map +0 -1
- package/bin/services/chat/types/DirectDispatch.js.map +0 -1
- package/bin/services/chat/types/FeishuAttachment.d.ts.map +0 -1
- package/bin/services/chat/types/FeishuAttachment.js.map +0 -1
- package/bin/services/chat/types/FeishuInboundAttachment.d.ts +0 -114
- package/bin/services/chat/types/FeishuInboundAttachment.d.ts.map +0 -1
- package/bin/services/chat/types/FeishuInboundAttachment.js.map +0 -1
- package/bin/services/chat/types/FeishuPost.d.ts.map +0 -1
- package/bin/services/chat/types/FeishuPost.js.map +0 -1
- package/bin/services/chat/types/QqInboundDedupe.d.ts.map +0 -1
- package/bin/services/chat/types/QqInboundDedupe.js.map +0 -1
- package/bin/services/chat/types/QqVoice.d.ts.map +0 -1
- package/bin/services/chat/types/QqVoice.js.map +0 -1
- package/bin/services/chat/types/ReplyContext.d.ts.map +0 -1
- package/bin/services/chat/types/ReplyContext.js.map +0 -1
- package/bin/services/contact/Action.d.ts.map +0 -1
- package/bin/services/contact/Action.js.map +0 -1
- package/bin/services/contact/ContactService.d.ts +0 -39
- package/bin/services/contact/ContactService.d.ts.map +0 -1
- package/bin/services/contact/ContactService.js +0 -683
- package/bin/services/contact/ContactService.js.map +0 -1
- package/bin/services/contact/Index.d.ts.map +0 -1
- package/bin/services/contact/Index.js.map +0 -1
- package/bin/services/contact/runtime/ApproveCallback.d.ts +0 -23
- package/bin/services/contact/runtime/ApproveCallback.d.ts.map +0 -1
- package/bin/services/contact/runtime/ApproveCallback.js.map +0 -1
- package/bin/services/contact/runtime/ChatRuntime.d.ts +0 -27
- package/bin/services/contact/runtime/ChatRuntime.d.ts.map +0 -1
- package/bin/services/contact/runtime/ChatRuntime.js.map +0 -1
- package/bin/services/contact/runtime/ContactStore.d.ts +0 -49
- package/bin/services/contact/runtime/ContactStore.d.ts.map +0 -1
- package/bin/services/contact/runtime/ContactStore.js.map +0 -1
- package/bin/services/contact/runtime/EndpointNotice.d.ts +0 -39
- package/bin/services/contact/runtime/EndpointNotice.d.ts.map +0 -1
- package/bin/services/contact/runtime/EndpointNotice.js.map +0 -1
- package/bin/services/contact/runtime/EndpointResolver.d.ts.map +0 -1
- package/bin/services/contact/runtime/EndpointResolver.js.map +0 -1
- package/bin/services/contact/runtime/InboxStore.d.ts +0 -33
- package/bin/services/contact/runtime/InboxStore.d.ts.map +0 -1
- package/bin/services/contact/runtime/InboxStore.js.map +0 -1
- package/bin/services/contact/runtime/LinkApproval.d.ts +0 -20
- package/bin/services/contact/runtime/LinkApproval.d.ts.map +0 -1
- package/bin/services/contact/runtime/LinkApproval.js.map +0 -1
- package/bin/services/contact/runtime/LinkCode.d.ts +0 -21
- package/bin/services/contact/runtime/LinkCode.d.ts.map +0 -1
- package/bin/services/contact/runtime/LinkCode.js.map +0 -1
- package/bin/services/contact/runtime/LinkStore.d.ts +0 -17
- package/bin/services/contact/runtime/LinkStore.d.ts.map +0 -1
- package/bin/services/contact/runtime/LinkStore.js.map +0 -1
- package/bin/services/contact/runtime/Paths.d.ts.map +0 -1
- package/bin/services/contact/runtime/Paths.js.map +0 -1
- package/bin/services/contact/runtime/RemoteClient.d.ts +0 -46
- package/bin/services/contact/runtime/RemoteClient.d.ts.map +0 -1
- package/bin/services/contact/runtime/RemoteClient.js.map +0 -1
- package/bin/services/contact/runtime/ShareBundle.d.ts +0 -65
- package/bin/services/contact/runtime/ShareBundle.d.ts.map +0 -1
- package/bin/services/contact/runtime/ShareBundle.js.map +0 -1
- package/bin/services/contact/runtime/SystemProvider.d.ts.map +0 -1
- package/bin/services/contact/runtime/SystemProvider.js.map +0 -1
- package/bin/services/contact/runtime/Token.d.ts.map +0 -1
- package/bin/services/contact/runtime/Token.js.map +0 -1
- package/bin/services/memory/Action.d.ts +0 -41
- package/bin/services/memory/Action.d.ts.map +0 -1
- package/bin/services/memory/Action.js.map +0 -1
- package/bin/services/memory/Index.d.ts.map +0 -1
- package/bin/services/memory/Index.js.map +0 -1
- package/bin/services/memory/MemoryService.d.ts +0 -45
- package/bin/services/memory/MemoryService.d.ts.map +0 -1
- package/bin/services/memory/MemoryService.js +0 -299
- package/bin/services/memory/MemoryService.js.map +0 -1
- package/bin/services/memory/runtime/Flush.d.ts +0 -15
- package/bin/services/memory/runtime/Flush.d.ts.map +0 -1
- package/bin/services/memory/runtime/Flush.js.map +0 -1
- package/bin/services/memory/runtime/Indexer.d.ts +0 -71
- package/bin/services/memory/runtime/Indexer.d.ts.map +0 -1
- package/bin/services/memory/runtime/Indexer.js.map +0 -1
- package/bin/services/memory/runtime/Search.d.ts +0 -15
- package/bin/services/memory/runtime/Search.d.ts.map +0 -1
- package/bin/services/memory/runtime/Search.js.map +0 -1
- package/bin/services/memory/runtime/Store.d.ts +0 -106
- package/bin/services/memory/runtime/Store.d.ts.map +0 -1
- package/bin/services/memory/runtime/Store.js.map +0 -1
- package/bin/services/memory/runtime/SystemProvider.d.ts +0 -22
- package/bin/services/memory/runtime/SystemProvider.d.ts.map +0 -1
- package/bin/services/memory/runtime/SystemProvider.js.map +0 -1
- package/bin/services/memory/runtime/Writer.d.ts +0 -23
- package/bin/services/memory/runtime/Writer.d.ts.map +0 -1
- package/bin/services/memory/runtime/Writer.js.map +0 -1
- package/bin/services/memory/types/Memory.d.ts +0 -318
- package/bin/services/memory/types/Memory.d.ts.map +0 -1
- package/bin/services/memory/types/Memory.js.map +0 -1
- package/bin/services/shell/Index.d.ts.map +0 -1
- package/bin/services/shell/Index.js.map +0 -1
- package/bin/services/shell/ShellService.d.ts +0 -65
- package/bin/services/shell/ShellService.d.ts.map +0 -1
- package/bin/services/shell/ShellService.js +0 -138
- package/bin/services/shell/ShellService.js.map +0 -1
- package/bin/services/shell/runtime/Paths.d.ts.map +0 -1
- package/bin/services/shell/runtime/Paths.js.map +0 -1
- package/bin/services/shell/runtime/ShellActionRuntime.d.ts +0 -49
- package/bin/services/shell/runtime/ShellActionRuntime.d.ts.map +0 -1
- package/bin/services/shell/runtime/ShellActionRuntime.js +0 -463
- package/bin/services/shell/runtime/ShellActionRuntime.js.map +0 -1
- package/bin/services/shell/runtime/ShellActionRuntimeSupport.d.ts +0 -107
- package/bin/services/shell/runtime/ShellActionRuntimeSupport.d.ts.map +0 -1
- package/bin/services/shell/runtime/ShellActionRuntimeSupport.js +0 -452
- package/bin/services/shell/runtime/ShellActionRuntimeSupport.js.map +0 -1
- package/bin/services/shell/types/ShellService.d.ts.map +0 -1
- package/bin/services/shell/types/ShellService.js.map +0 -1
- package/bin/services/task/Action.d.ts +0 -36
- package/bin/services/task/Action.d.ts.map +0 -1
- package/bin/services/task/Action.js.map +0 -1
- package/bin/services/task/Index.d.ts.map +0 -1
- package/bin/services/task/Index.js.map +0 -1
- package/bin/services/task/Scheduler.d.ts +0 -17
- package/bin/services/task/Scheduler.d.ts.map +0 -1
- package/bin/services/task/Scheduler.js +0 -231
- package/bin/services/task/Scheduler.js.map +0 -1
- package/bin/services/task/TaskService.d.ts +0 -57
- package/bin/services/task/TaskService.d.ts.map +0 -1
- package/bin/services/task/TaskService.js +0 -126
- package/bin/services/task/TaskService.js.map +0 -1
- package/bin/services/task/runtime/CronRuntime.d.ts +0 -34
- package/bin/services/task/runtime/CronRuntime.d.ts.map +0 -1
- package/bin/services/task/runtime/CronRuntime.js +0 -59
- package/bin/services/task/runtime/CronRuntime.js.map +0 -1
- package/bin/services/task/runtime/CronTrigger.d.ts.map +0 -1
- package/bin/services/task/runtime/CronTrigger.js.map +0 -1
- package/bin/services/task/runtime/Frontmatter.d.ts.map +0 -1
- package/bin/services/task/runtime/Frontmatter.js.map +0 -1
- package/bin/services/task/runtime/Model.d.ts +0 -73
- package/bin/services/task/runtime/Model.d.ts.map +0 -1
- package/bin/services/task/runtime/Model.js.map +0 -1
- package/bin/services/task/runtime/Paths.d.ts.map +0 -1
- package/bin/services/task/runtime/Paths.js.map +0 -1
- package/bin/services/task/runtime/Runner.d.ts +0 -43
- package/bin/services/task/runtime/Runner.d.ts.map +0 -1
- package/bin/services/task/runtime/Runner.js.map +0 -1
- package/bin/services/task/runtime/Store.d.ts +0 -89
- package/bin/services/task/runtime/Store.d.ts.map +0 -1
- package/bin/services/task/runtime/Store.js.map +0 -1
- package/bin/services/task/runtime/TaskActionExecution.d.ts +0 -160
- package/bin/services/task/runtime/TaskActionExecution.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskActionExecution.js +0 -192
- package/bin/services/task/runtime/TaskActionExecution.js.map +0 -1
- package/bin/services/task/runtime/TaskActionInput.d.ts +0 -48
- package/bin/services/task/runtime/TaskActionInput.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskActionInput.js +0 -357
- package/bin/services/task/runtime/TaskActionInput.js.map +0 -1
- package/bin/services/task/runtime/TaskRunArtifacts.d.ts +0 -189
- package/bin/services/task/runtime/TaskRunArtifacts.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunArtifacts.js.map +0 -1
- package/bin/services/task/runtime/TaskRunChatDispatch.d.ts +0 -22
- package/bin/services/task/runtime/TaskRunChatDispatch.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunChatDispatch.js.map +0 -1
- package/bin/services/task/runtime/TaskRunnerProgress.d.ts +0 -35
- package/bin/services/task/runtime/TaskRunnerProgress.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunnerProgress.js.map +0 -1
- package/bin/services/task/runtime/TaskRunnerRound.d.ts +0 -80
- package/bin/services/task/runtime/TaskRunnerRound.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunnerRound.js +0 -272
- package/bin/services/task/runtime/TaskRunnerRound.js.map +0 -1
- package/bin/services/task/runtime/TaskRunnerSession.d.ts +0 -45
- package/bin/services/task/runtime/TaskRunnerSession.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskRunnerSession.js +0 -138
- package/bin/services/task/runtime/TaskRunnerSession.js.map +0 -1
- package/bin/services/task/runtime/TaskServiceActions.d.ts +0 -16
- package/bin/services/task/runtime/TaskServiceActions.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskServiceActions.js.map +0 -1
- package/bin/services/task/runtime/TaskServiceSystem.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskServiceSystem.js.map +0 -1
- package/bin/services/task/types/Cron.d.ts.map +0 -1
- package/bin/services/task/types/Cron.js.map +0 -1
- package/bin/services/task/types/Task.d.ts.map +0 -1
- package/bin/services/task/types/Task.js.map +0 -1
- package/bin/services/task/types/TaskCommand.d.ts.map +0 -1
- package/bin/services/task/types/TaskCommand.js.map +0 -1
- package/bin/shared/types/AuthDashboard.d.ts +0 -30
- package/bin/shared/types/AuthDashboard.d.ts.map +0 -1
- package/bin/shared/types/AuthDashboard.js +0 -9
- package/bin/shared/types/AuthDashboard.js.map +0 -1
- package/bin/shared/types/Console.d.ts +0 -373
- package/bin/shared/types/Console.d.ts.map +0 -1
- package/bin/shared/types/Console.js +0 -9
- package/bin/shared/types/Console.js.map +0 -1
- package/bin/shared/types/ConsoleGateway.d.ts +0 -174
- package/bin/shared/types/ConsoleGateway.d.ts.map +0 -1
- package/bin/shared/types/ConsoleGateway.js +0 -9
- package/bin/shared/types/ConsoleGateway.js.map +0 -1
- package/bin/shared/types/DashboardData.d.ts +0 -320
- package/bin/shared/types/DashboardData.d.ts.map +0 -1
- package/bin/shared/types/DashboardData.js +0 -9
- package/bin/shared/types/DashboardData.js.map +0 -1
- package/bin/shared/types/DashboardRoutes.d.ts +0 -28
- package/bin/shared/types/DashboardRoutes.d.ts.map +0 -1
- package/bin/shared/types/DashboardRoutes.js +0 -9
- package/bin/shared/types/DashboardRoutes.js.map +0 -1
- package/bin/shared/types/DashboardSessionExecute.d.ts +0 -85
- package/bin/shared/types/DashboardSessionExecute.d.ts.map +0 -1
- package/bin/shared/types/DashboardSessionExecute.js +0 -9
- package/bin/shared/types/DashboardSessionExecute.js.map +0 -1
- package/bin/types/agent/AgentContext.d.ts +0 -345
- package/bin/types/agent/AgentContext.d.ts.map +0 -1
- package/bin/types/agent/AgentContext.js +0 -10
- package/bin/types/agent/AgentContext.js.map +0 -1
- package/bin/types/agent/AgentRuntime.d.ts +0 -81
- package/bin/types/agent/AgentRuntime.d.ts.map +0 -1
- package/bin/types/agent/AgentRuntime.js +0 -10
- package/bin/types/agent/AgentRuntime.js.map +0 -1
- package/bin/types/chat/ChatSession.d.ts +0 -30
- package/bin/types/chat/ChatSession.d.ts.map +0 -1
- package/bin/types/chat/ChatSession.js +0 -9
- package/bin/types/chat/ChatSession.js.map +0 -1
- package/bin/types/city/PublicHostEnv.d.ts +0 -72
- package/bin/types/city/PublicHostEnv.d.ts.map +0 -1
- package/bin/types/city/PublicHostEnv.js +0 -9
- package/bin/types/city/PublicHostEnv.js.map +0 -1
- package/bin/types/cli/AgentChat.d.ts +0 -147
- package/bin/types/cli/AgentChat.d.ts.map +0 -1
- package/bin/types/cli/AgentChat.js +0 -12
- package/bin/types/cli/AgentChat.js.map +0 -1
- package/bin/types/cli/AgentSelection.d.ts +0 -146
- package/bin/types/cli/AgentSelection.d.ts.map +0 -1
- package/bin/types/cli/AgentSelection.js +0 -9
- package/bin/types/cli/AgentSelection.js.map +0 -1
- package/bin/types/cli/CliReporter.d.ts +0 -157
- package/bin/types/cli/CliReporter.d.ts.map +0 -1
- package/bin/types/cli/CliReporter.js +0 -10
- package/bin/types/cli/CliReporter.js.map +0 -1
- package/bin/types/cli/ModelManager.d.ts +0 -127
- package/bin/types/cli/ModelManager.d.ts.map +0 -1
- package/bin/types/cli/ModelManager.js +0 -9
- package/bin/types/cli/ModelManager.js.map +0 -1
- package/bin/types/contact/Contact.d.ts.map +0 -1
- package/bin/types/contact/Contact.js.map +0 -1
- package/bin/types/contact/ContactApproval.d.ts.map +0 -1
- package/bin/types/contact/ContactApproval.js.map +0 -1
- package/bin/types/contact/ContactChat.d.ts.map +0 -1
- package/bin/types/contact/ContactChat.js.map +0 -1
- package/bin/types/contact/ContactCheck.d.ts.map +0 -1
- package/bin/types/contact/ContactCheck.js.map +0 -1
- package/bin/types/contact/ContactCommand.d.ts.map +0 -1
- package/bin/types/contact/ContactCommand.js.map +0 -1
- package/bin/types/contact/ContactEndpoint.d.ts.map +0 -1
- package/bin/types/contact/ContactEndpoint.js.map +0 -1
- package/bin/types/contact/ContactLink.d.ts.map +0 -1
- package/bin/types/contact/ContactLink.js.map +0 -1
- package/bin/types/contact/ContactShare.d.ts.map +0 -1
- package/bin/types/contact/ContactShare.js.map +0 -1
- package/bin/types/shell/ShellRuntime.d.ts +0 -91
- package/bin/types/shell/ShellRuntime.d.ts.map +0 -1
- package/bin/types/shell/ShellRuntime.js +0 -10
- package/bin/types/shell/ShellRuntime.js.map +0 -1
- package/bin/types/task/TaskRunner.d.ts +0 -186
- package/bin/types/task/TaskRunner.d.ts.map +0 -1
- package/bin/types/task/TaskRunner.js +0 -9
- package/bin/types/task/TaskRunner.js.map +0 -1
- package/src/daemon/Client.ts +0 -182
- package/src/daemon/Manager.ts +0 -344
- package/src/daemon/ProjectSetup.ts +0 -126
- package/src/http/dashboard/AuthDashboardService.ts +0 -161
- package/src/http/dashboard/CommonHelpers.ts +0 -50
- package/src/http/dashboard/DashboardApiRoutes.ts +0 -30
- package/src/http/dashboard/DashboardAuthorizationRoutes.ts +0 -101
- package/src/http/dashboard/ExecuteBySession.ts +0 -151
- package/src/http/dashboard/ExecuteInput.ts +0 -236
- package/src/http/dashboard/Helpers.ts +0 -22
- package/src/http/dashboard/MessageTimeline.ts +0 -269
- package/src/http/dashboard/ModelRoutes.ts +0 -102
- package/src/http/dashboard/OverviewRoutes.ts +0 -101
- package/src/http/dashboard/Router.ts +0 -26
- package/src/http/dashboard/SessionRoutes.ts +0 -394
- package/src/http/dashboard/SessionSummaryStore.ts +0 -76
- package/src/http/dashboard/TaskRoutes.ts +0 -372
- package/src/http/dashboard/TaskStore.ts +0 -222
- package/src/rpc/Client.ts +0 -110
- package/src/rpc/Paths.ts +0 -43
- package/src/rpc/Server.ts +0 -395
- package/src/rpc/Transport.ts +0 -40
- package/src/runtime/CityPaths.ts +0 -101
- package/src/runtime/CityRegistry.ts +0 -256
- package/src/runtime/CityRuntime.ts +0 -45
- package/src/runtime/PluginRuntime.ts +0 -42
- package/src/runtime/ProcessSweep.ts +0 -239
- package/src/service/ServiceActionApi.ts +0 -304
- package/src/service/ServiceActionRunner.ts +0 -272
- package/src/service/ServiceClassRegistry.ts +0 -77
- package/src/service/ServiceStateController.ts +0 -316
- package/src/service/ServiceSystemProviders.ts +0 -50
- package/src/service/Services.ts +0 -33
- package/src/services/BaseService.ts +0 -85
- package/src/services/chat/Action.ts +0 -477
- package/src/services/chat/ChatService.ts +0 -111
- package/src/services/chat/channels/BaseChatChannel.ts +0 -425
- package/src/services/chat/channels/BaseChatChannelQueue.ts +0 -321
- package/src/services/chat/channels/BaseChatChannelSupport.ts +0 -321
- package/src/services/chat/channels/BotInfoProvider.ts +0 -49
- package/src/services/chat/channels/Configuration.ts +0 -35
- package/src/services/chat/channels/ConfigurationRegistry.ts +0 -43
- package/src/services/chat/channels/feishu/BotInfo.ts +0 -199
- package/src/services/chat/channels/feishu/Configuration.ts +0 -65
- package/src/services/chat/channels/feishu/Feishu.ts +0 -630
- package/src/services/chat/channels/feishu/FeishuPlatformClient.ts +0 -421
- package/src/services/chat/channels/feishu/FeishuPlatformLookup.ts +0 -523
- package/src/services/chat/channels/feishu/FeishuPlatformMessaging.ts +0 -219
- package/src/services/chat/channels/feishu/InboundAttachment.ts +0 -261
- package/src/services/chat/channels/feishu/PostMessage.ts +0 -492
- package/src/services/chat/channels/feishu/ReplyContext.ts +0 -68
- package/src/services/chat/channels/feishu/Shared.ts +0 -94
- package/src/services/chat/channels/qq/BotInfo.ts +0 -137
- package/src/services/chat/channels/qq/Configuration.ts +0 -64
- package/src/services/chat/channels/qq/QQ.ts +0 -629
- package/src/services/chat/channels/qq/QQGatewayAuth.ts +0 -318
- package/src/services/chat/channels/qq/QQInbound.ts +0 -262
- package/src/services/chat/channels/qq/QQInboundDedupe.ts +0 -126
- package/src/services/chat/channels/qq/QQSupport.ts +0 -263
- package/src/services/chat/channels/qq/VoiceInput.ts +0 -381
- package/src/services/chat/channels/telegram/Bot.ts +0 -648
- package/src/services/chat/channels/telegram/BotInfo.ts +0 -92
- package/src/services/chat/channels/telegram/Configuration.ts +0 -65
- package/src/services/chat/channels/telegram/ReplyContext.ts +0 -76
- package/src/services/chat/channels/telegram/Shared.ts +0 -404
- package/src/services/chat/channels/telegram/TelegramPlatformClient.ts +0 -482
- package/src/services/chat/runtime/ChannelContextStore.ts +0 -395
- package/src/services/chat/runtime/ChatActionExecution.ts +0 -362
- package/src/services/chat/runtime/ChatActionInput.ts +0 -590
- package/src/services/chat/runtime/ChatChannelActions.ts +0 -313
- package/src/services/chat/runtime/ChatChannelConfig.ts +0 -334
- package/src/services/chat/runtime/ChatChannelCore.ts +0 -112
- package/src/services/chat/runtime/ChatChannelLifecycle.ts +0 -165
- package/src/services/chat/runtime/ChatHistoryStore.ts +0 -289
- package/src/services/chat/runtime/ChatIngressStore.ts +0 -88
- package/src/services/chat/runtime/ChatMessageMarkup.ts +0 -263
- package/src/services/chat/runtime/ChatMetaStore.ts +0 -186
- package/src/services/chat/runtime/ChatQueue.ts +0 -77
- package/src/services/chat/runtime/ChatQueueReplyDispatch.ts +0 -191
- package/src/services/chat/runtime/ChatQueueSessionBridge.ts +0 -122
- package/src/services/chat/runtime/ChatQueueStore.ts +0 -185
- package/src/services/chat/runtime/ChatQueueWorker.ts +0 -504
- package/src/services/chat/runtime/ChatQueueWorkerSupport.ts +0 -137
- package/src/services/chat/runtime/ChatSendMetadata.ts +0 -170
- package/src/services/chat/runtime/ChatSendRegistry.ts +0 -43
- package/src/services/chat/runtime/ChatServiceSystem.ts +0 -119
- package/src/services/chat/runtime/ChatSession.ts +0 -125
- package/src/services/chat/runtime/ChatSessionDelete.ts +0 -95
- package/src/services/chat/runtime/ChatSessionExecutionComposer.ts +0 -106
- package/src/services/chat/runtime/ChatkeySend.ts +0 -187
- package/src/services/chat/runtime/DirectDispatchParser.ts +0 -158
- package/src/services/chat/runtime/EnqueueDispatch.ts +0 -49
- package/src/services/chat/runtime/InboundAugment.ts +0 -63
- package/src/services/chat/runtime/PluginDispatch.ts +0 -89
- package/src/services/chat/runtime/ReplyContextFormatter.ts +0 -85
- package/src/services/chat/runtime/ReplyDispatch.ts +0 -78
- package/src/services/chat/runtime/SystemPrompt.ts +0 -84
- package/src/services/chat/types/BotInfo.ts +0 -101
- package/src/services/chat/types/ChannelConfiguration.ts +0 -161
- package/src/services/chat/types/ChatHistory.ts +0 -42
- package/src/services/chat/types/DirectDispatch.ts +0 -133
- package/src/services/chat/types/FeishuInboundAttachment.ts +0 -138
- package/src/services/contact/ContactService.ts +0 -799
- package/src/services/contact/runtime/ApproveCallback.ts +0 -97
- package/src/services/contact/runtime/ChatRuntime.ts +0 -82
- package/src/services/contact/runtime/ContactStore.ts +0 -299
- package/src/services/contact/runtime/EndpointNotice.ts +0 -125
- package/src/services/contact/runtime/InboxStore.ts +0 -178
- package/src/services/contact/runtime/LinkApproval.ts +0 -387
- package/src/services/contact/runtime/LinkCode.ts +0 -70
- package/src/services/contact/runtime/LinkStore.ts +0 -50
- package/src/services/contact/runtime/ShareBundle.ts +0 -286
- package/src/services/memory/Action.ts +0 -188
- package/src/services/memory/MemoryService.ts +0 -329
- package/src/services/memory/runtime/Flush.ts +0 -83
- package/src/services/memory/runtime/Indexer.ts +0 -466
- package/src/services/memory/runtime/Search.ts +0 -90
- package/src/services/memory/runtime/Store.ts +0 -370
- package/src/services/memory/runtime/SystemProvider.ts +0 -145
- package/src/services/memory/runtime/Writer.ts +0 -174
- package/src/services/shell/ShellService.ts +0 -199
- package/src/services/shell/runtime/ShellActionRuntime.ts +0 -579
- package/src/services/shell/runtime/ShellActionRuntimeSupport.ts +0 -552
- package/src/services/task/Action.ts +0 -491
- package/src/services/task/Scheduler.ts +0 -245
- package/src/services/task/TaskService.ts +0 -167
- package/src/services/task/runtime/CronRuntime.ts +0 -73
- package/src/services/task/runtime/Model.ts +0 -347
- package/src/services/task/runtime/Runner.ts +0 -558
- package/src/services/task/runtime/Store.ts +0 -253
- package/src/services/task/runtime/TaskActionExecution.ts +0 -276
- package/src/services/task/runtime/TaskActionInput.ts +0 -463
- package/src/services/task/runtime/TaskRunArtifacts.ts +0 -493
- package/src/services/task/runtime/TaskRunChatDispatch.ts +0 -81
- package/src/services/task/runtime/TaskRunnerProgress.ts +0 -112
- package/src/services/task/runtime/TaskRunnerRound.ts +0 -337
- package/src/services/task/runtime/TaskRunnerSession.ts +0 -167
- package/src/services/task/runtime/TaskServiceActions.ts +0 -248
- package/src/shared/types/AuthDashboard.ts +0 -38
- package/src/shared/types/Console.ts +0 -448
- package/src/shared/types/ConsoleGateway.ts +0 -196
- package/src/shared/types/DashboardData.ts +0 -392
- package/src/shared/types/DashboardRoutes.ts +0 -31
- package/src/shared/types/DashboardSessionExecute.ts +0 -99
- package/src/types/agent/AgentContext.ts +0 -380
- package/src/types/agent/AgentRuntime.ts +0 -86
- package/src/types/city/PublicHostEnv.ts +0 -76
- package/src/types/cli/AgentChat.ts +0 -172
- package/src/types/cli/AgentSelection.ts +0 -162
- package/src/types/cli/CliReporter.ts +0 -167
- package/src/types/cli/ModelManager.ts +0 -139
- package/src/types/shell/ShellRuntime.ts +0 -94
- package/src/types/task/TaskRunner.ts +0 -199
- /package/bin/{daemon → host/daemon}/Api.js +0 -0
- /package/bin/{daemon → host/daemon}/Client.d.ts +0 -0
- /package/bin/{daemon → host/daemon}/ProjectSetup.d.ts +0 -0
- /package/bin/{rpc → host/rpc}/Client.js +0 -0
- /package/bin/{rpc → host/rpc}/Paths.d.ts +0 -0
- /package/bin/{runtime → host/runtime}/PluginRuntime.js +0 -0
- /package/bin/{services → service/builtins}/chat/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/Index.js +0 -0
- /package/bin/{services → service/builtins}/chat/PROMPT.direct.txt +0 -0
- /package/bin/{services → service/builtins}/chat/channels/Configuration.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/BotInfo.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/FeishuInbound.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/FeishuPlatformClient.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/FeishuPlatformLookup.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/FeishuPlatformMessaging.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/InboundAttachment.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/PROMPT.direct.txt +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/PostMessage.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/feishu/ReplyContext.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/BotInfo.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/PROMPT.direct.txt +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQEventCapture.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQGatewayAuth.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQGatewaySend.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQGatewaySupport.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQInbound.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQInboundDedupe.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQSendSupport.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/QQSendSupport.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/qq/VoiceInput.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/ApiClient.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/BotInfo.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/Handlers.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/PROMPT.direct.txt +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/ReplyContext.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/Shared.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/StateStore.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/StateStore.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/TelegramInbound.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/TelegramInbound.js +0 -0
- /package/bin/{services → service/builtins}/chat/channels/telegram/TelegramPlatformClient.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatChannelFacade.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatChannelFacade.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatMessageMarkup.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatMetaStore.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueue.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueueReplyDispatch.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueueStore.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueueWorker.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatQueueWorkerSupport.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatSendMetadata.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatSendRegistry.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatServiceActions.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ChatkeySend.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/PluginPoints.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/PluginPoints.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/QueuedUserMessage.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/ReplyContextFormatter.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/UIMessageTransformer.js +0 -0
- /package/bin/{services → service/builtins}/chat/runtime/UserVisibleText.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/BotInfo.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelConfiguration.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelContext.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelContext.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelStatus.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChannelStatus.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatCommand.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatCommand.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatDispatcher.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatDispatcher.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatHistory.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatMessageMarkup.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatMessageMarkup.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatMeta.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatMeta.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ChatQueue.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/DirectDispatch.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuAttachment.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuAttachment.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuInboundAttachment.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuPost.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/FeishuPost.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/QqInboundDedupe.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/QqInboundDedupe.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/QqVoice.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/QqVoice.js +0 -0
- /package/bin/{services → service/builtins}/chat/types/ReplyContext.d.ts +0 -0
- /package/bin/{services → service/builtins}/chat/types/ReplyContext.js +0 -0
- /package/bin/{services → service/builtins}/contact/Action.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/Action.js +0 -0
- /package/bin/{services → service/builtins}/contact/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/Index.js +0 -0
- /package/bin/{services → service/builtins}/contact/PROMPT.txt +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/ApproveCallback.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/ChatRuntime.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/ContactStore.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/EndpointNotice.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/EndpointResolver.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/EndpointResolver.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/InboxStore.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/LinkApproval.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/LinkCode.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/LinkStore.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/Paths.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/Paths.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/RemoteClient.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/ShareBundle.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/SystemProvider.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/SystemProvider.js +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/Token.d.ts +0 -0
- /package/bin/{services → service/builtins}/contact/runtime/Token.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/Contact.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/Contact.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactApproval.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactApproval.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactChat.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactChat.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactCheck.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactCheck.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactCommand.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactCommand.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactEndpoint.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactEndpoint.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactLink.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactLink.js +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactShare.d.ts +0 -0
- /package/bin/{types/contact → service/builtins/contact/types}/ContactShare.js +0 -0
- /package/bin/{services → service/builtins}/memory/Action.js +0 -0
- /package/bin/{services → service/builtins}/memory/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/memory/Index.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Flush.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Indexer.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Search.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Store.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/SystemProvider.js +0 -0
- /package/bin/{services → service/builtins}/memory/runtime/Writer.js +0 -0
- /package/bin/{services → service/builtins}/memory/types/Memory.js +0 -0
- /package/bin/{services → service/builtins}/shell/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/shell/Index.js +0 -0
- /package/bin/{services → service/builtins}/shell/runtime/Paths.d.ts +0 -0
- /package/bin/{services → service/builtins}/shell/runtime/Paths.js +0 -0
- /package/bin/{services → service/builtins}/shell/types/ShellService.d.ts +0 -0
- /package/bin/{services → service/builtins}/shell/types/ShellService.js +0 -0
- /package/bin/{services → service/builtins}/task/Action.js +0 -0
- /package/bin/{services → service/builtins}/task/Index.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/Index.js +0 -0
- /package/bin/{services → service/builtins}/task/PROMPT.txt +0 -0
- /package/bin/{services → service/builtins}/task/runtime/CronTrigger.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/runtime/CronTrigger.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Frontmatter.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Frontmatter.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Model.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Paths.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Paths.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Runner.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/Store.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskRunArtifacts.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskRunChatDispatch.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskRunnerProgress.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskServiceActions.js +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskServiceSystem.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/runtime/TaskServiceSystem.js +0 -0
- /package/bin/{services → service/builtins}/task/types/Cron.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/types/Cron.js +0 -0
- /package/bin/{services → service/builtins}/task/types/Task.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/types/Task.js +0 -0
- /package/bin/{services → service/builtins}/task/types/TaskCommand.d.ts +0 -0
- /package/bin/{services → service/builtins}/task/types/TaskCommand.js +0 -0
- /package/bin/service/{Manager.js → core/Manager.js} +0 -0
- /package/bin/service/{ServiceManager.js → core/ServiceManager.js} +0 -0
- /package/src/{daemon → host/daemon}/Api.ts +0 -0
- /package/src/{runtime → host/runtime}/AgentHostRuntime.ts +0 -0
- /package/src/{services → service/builtins}/README.md +0 -0
- /package/src/{services → service/builtins}/chat/Index.ts +0 -0
- /package/src/{services → service/builtins}/chat/PROMPT.direct.txt +0 -0
- /package/src/{services → service/builtins}/chat/channels/feishu/FeishuInbound.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/feishu/PROMPT.direct.txt +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/PROMPT.direct.txt +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQEventCapture.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQGatewayClient.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQGatewaySend.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQGatewaySupport.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/qq/QQSendSupport.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/ApiClient.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/Handlers.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/PROMPT.direct.txt +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/StateStore.ts +0 -0
- /package/src/{services → service/builtins}/chat/channels/telegram/TelegramInbound.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/ChatChannelFacade.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/ChatServiceActions.ts +0 -0
- /package/src/{types/chat/ChatSession.ts → service/builtins/chat/runtime/ChatSessionTypes.ts} +0 -0
- /package/src/{services → service/builtins}/chat/runtime/PluginPoints.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/QueuedUserMessage.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/UIMessageTransformer.ts +0 -0
- /package/src/{services → service/builtins}/chat/runtime/UserVisibleText.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChannelContext.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChannelStatus.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatCommand.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatDispatcher.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatMessageMarkup.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatMeta.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ChatQueue.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/FeishuAttachment.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/FeishuPost.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/QqInboundDedupe.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/QqVoice.ts +0 -0
- /package/src/{services → service/builtins}/chat/types/ReplyContext.ts +0 -0
- /package/src/{services → service/builtins}/contact/Action.ts +0 -0
- /package/src/{services → service/builtins}/contact/Index.ts +0 -0
- /package/src/{services → service/builtins}/contact/PROMPT.txt +0 -0
- /package/src/{services → service/builtins}/contact/runtime/EndpointResolver.ts +0 -0
- /package/src/{services → service/builtins}/contact/runtime/Paths.ts +0 -0
- /package/src/{services → service/builtins}/contact/runtime/RemoteClient.ts +0 -0
- /package/src/{services → service/builtins}/contact/runtime/SystemProvider.ts +0 -0
- /package/src/{services → service/builtins}/contact/runtime/Token.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/Contact.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactApproval.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactChat.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactCheck.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactCommand.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactEndpoint.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactLink.ts +0 -0
- /package/src/{types/contact → service/builtins/contact/types}/ContactShare.ts +0 -0
- /package/src/{services → service/builtins}/memory/Index.ts +0 -0
- /package/src/{services → service/builtins}/memory/types/Memory.ts +0 -0
- /package/src/{services → service/builtins}/shell/Index.ts +0 -0
- /package/src/{services → service/builtins}/shell/runtime/Paths.ts +0 -0
- /package/src/{services → service/builtins}/shell/types/ShellService.ts +0 -0
- /package/src/{services → service/builtins}/task/Index.ts +0 -0
- /package/src/{services → service/builtins}/task/PROMPT.txt +0 -0
- /package/src/{services → service/builtins}/task/runtime/CronTrigger.ts +0 -0
- /package/src/{services → service/builtins}/task/runtime/Frontmatter.ts +0 -0
- /package/src/{services → service/builtins}/task/runtime/Paths.ts +0 -0
- /package/src/{services → service/builtins}/task/runtime/TaskServiceSystem.ts +0 -0
- /package/src/{services → service/builtins}/task/types/Cron.ts +0 -0
- /package/src/{services → service/builtins}/task/types/Task.ts +0 -0
- /package/src/{services → service/builtins}/task/types/TaskCommand.ts +0 -0
- /package/src/service/{Manager.ts → core/Manager.ts} +0 -0
- /package/src/service/{ServiceManager.ts → core/ServiceManager.ts} +0 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SDK HTTP Server。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 面向 `RemoteAgent` 暴露最小 session 能力集合。
|
|
6
|
+
* - v1 先聚焦 session 创建、列表、history、run、stream、fork。
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import http from "node:http";
|
|
10
|
+
import { Hono } from "hono";
|
|
11
|
+
import { cors } from "hono/cors";
|
|
12
|
+
import type { Agent } from "@/host/sdk/Agent.js";
|
|
13
|
+
|
|
14
|
+
type SdkHttpStartOptions = {
|
|
15
|
+
/**
|
|
16
|
+
* 监听主机。
|
|
17
|
+
*/
|
|
18
|
+
host?: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 监听端口。
|
|
22
|
+
*/
|
|
23
|
+
port?: number;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* SDK HTTP Server 管理器。
|
|
28
|
+
*/
|
|
29
|
+
export class SdkAgentHttpServer {
|
|
30
|
+
private readonly agent: Agent;
|
|
31
|
+
private server: http.Server | null = null;
|
|
32
|
+
private baseUrlValue: string | null = null;
|
|
33
|
+
|
|
34
|
+
constructor(agent: Agent) {
|
|
35
|
+
this.agent = agent;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 启动 HTTP Server。
|
|
40
|
+
*/
|
|
41
|
+
async start(options?: SdkHttpStartOptions): Promise<{ baseUrl: string }> {
|
|
42
|
+
if (this.server && this.baseUrlValue) {
|
|
43
|
+
return { baseUrl: this.baseUrlValue };
|
|
44
|
+
}
|
|
45
|
+
await this.agent.ensureServicesStarted();
|
|
46
|
+
const host = String(options?.host || "127.0.0.1").trim() || "127.0.0.1";
|
|
47
|
+
const port =
|
|
48
|
+
typeof options?.port === "number" && Number.isInteger(options.port)
|
|
49
|
+
? options.port
|
|
50
|
+
: 15314;
|
|
51
|
+
|
|
52
|
+
const app = new Hono();
|
|
53
|
+
app.use(
|
|
54
|
+
"*",
|
|
55
|
+
cors({
|
|
56
|
+
origin: "*",
|
|
57
|
+
allowMethods: ["GET", "POST", "OPTIONS"],
|
|
58
|
+
allowHeaders: ["Content-Type"],
|
|
59
|
+
}),
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
app.get("/api/sdk/sessions", async (c) => {
|
|
63
|
+
return c.json({
|
|
64
|
+
success: true,
|
|
65
|
+
sessions: await this.agent.sessions(),
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
app.post("/api/sdk/sessions", async (c) => {
|
|
70
|
+
const body = await c.req.json().catch(() => ({}));
|
|
71
|
+
const session = await this.agent.session(
|
|
72
|
+
typeof body?.sessionId === "string" ? body.sessionId : undefined,
|
|
73
|
+
);
|
|
74
|
+
return c.json({
|
|
75
|
+
success: true,
|
|
76
|
+
session: await session.toMetadata(),
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
app.get("/api/sdk/sessions/:sessionId/messages", async (c) => {
|
|
81
|
+
const session = await this.agent.session(String(c.req.param("sessionId") || ""));
|
|
82
|
+
return c.json({
|
|
83
|
+
success: true,
|
|
84
|
+
sessionId: session.id,
|
|
85
|
+
messages: await session.history(),
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
app.post("/api/sdk/sessions/:sessionId/run", async (c) => {
|
|
90
|
+
const session = await this.agent.session(String(c.req.param("sessionId") || ""));
|
|
91
|
+
const body = await c.req.json().catch(() => ({}));
|
|
92
|
+
const query = String(body?.query || "").trim();
|
|
93
|
+
if (!query) {
|
|
94
|
+
return c.json({ success: false, error: "query is required" }, 400);
|
|
95
|
+
}
|
|
96
|
+
const result = await session.run({ query });
|
|
97
|
+
return c.json({
|
|
98
|
+
success: true,
|
|
99
|
+
sessionId: session.id,
|
|
100
|
+
result,
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
app.post("/api/sdk/sessions/:sessionId/fork", async (c) => {
|
|
105
|
+
const session = await this.agent.session(String(c.req.param("sessionId") || ""));
|
|
106
|
+
const body = await c.req.json().catch(() => ({}));
|
|
107
|
+
const forked = await session.fork(
|
|
108
|
+
typeof body?.messageId === "string" ? body.messageId : undefined,
|
|
109
|
+
);
|
|
110
|
+
return c.json({
|
|
111
|
+
success: true,
|
|
112
|
+
session: await forked.toMetadata(),
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
app.post("/api/sdk/sessions/:sessionId/stream", async (c) => {
|
|
117
|
+
const session = await this.agent.session(String(c.req.param("sessionId") || ""));
|
|
118
|
+
const body = await c.req.json().catch(() => ({}));
|
|
119
|
+
const query = String(body?.query || "").trim();
|
|
120
|
+
if (!query) {
|
|
121
|
+
return c.json({ success: false, error: "query is required" }, 400);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const encoder = new TextEncoder();
|
|
125
|
+
const stream = new ReadableStream<Uint8Array>({
|
|
126
|
+
start: async (controller) => {
|
|
127
|
+
try {
|
|
128
|
+
for await (const event of session.stream({ query })) {
|
|
129
|
+
controller.enqueue(
|
|
130
|
+
encoder.encode(`${JSON.stringify(event)}\n`),
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
controller.close();
|
|
134
|
+
} catch (error) {
|
|
135
|
+
controller.enqueue(
|
|
136
|
+
encoder.encode(
|
|
137
|
+
`${JSON.stringify({
|
|
138
|
+
type: "error",
|
|
139
|
+
error: error instanceof Error ? error.message : String(error),
|
|
140
|
+
})}\n`,
|
|
141
|
+
),
|
|
142
|
+
);
|
|
143
|
+
controller.close();
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
return new Response(stream, {
|
|
149
|
+
headers: {
|
|
150
|
+
"Content-Type": "application/x-ndjson; charset=utf-8",
|
|
151
|
+
"Cache-Control": "no-cache, no-transform",
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
const server = http.createServer(async (req, res) => {
|
|
157
|
+
try {
|
|
158
|
+
const url = new URL(req.url || "/", `http://${host}:${port}`);
|
|
159
|
+
const method = req.method || "GET";
|
|
160
|
+
const bodyBuffer = await this.readRequestBody(req);
|
|
161
|
+
const request = new Request(url.toString(), {
|
|
162
|
+
method,
|
|
163
|
+
headers: new Headers(req.headers as Record<string, string>),
|
|
164
|
+
body: bodyBuffer.length > 0 ? bodyBuffer : undefined,
|
|
165
|
+
});
|
|
166
|
+
const response = await app.fetch(request);
|
|
167
|
+
res.statusCode = response.status;
|
|
168
|
+
response.headers.forEach((value, key) => {
|
|
169
|
+
res.setHeader(key, value);
|
|
170
|
+
});
|
|
171
|
+
if (!response.body) {
|
|
172
|
+
res.end();
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
const reader = response.body.getReader();
|
|
176
|
+
while (true) {
|
|
177
|
+
const { done, value } = await reader.read();
|
|
178
|
+
if (done) break;
|
|
179
|
+
if (value) res.write(Buffer.from(value));
|
|
180
|
+
}
|
|
181
|
+
res.end();
|
|
182
|
+
} catch (error) {
|
|
183
|
+
res.statusCode = 500;
|
|
184
|
+
res.end(String(error));
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
await new Promise<void>((resolve) => {
|
|
189
|
+
server.listen(port, host, () => resolve());
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
this.server = server;
|
|
193
|
+
this.baseUrlValue = `http://${host}:${port}`;
|
|
194
|
+
return {
|
|
195
|
+
baseUrl: this.baseUrlValue,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* 停止 HTTP Server。
|
|
201
|
+
*/
|
|
202
|
+
async stop(): Promise<void> {
|
|
203
|
+
if (!this.server) return;
|
|
204
|
+
const current = this.server;
|
|
205
|
+
this.server = null;
|
|
206
|
+
this.baseUrlValue = null;
|
|
207
|
+
await new Promise<void>((resolve) => {
|
|
208
|
+
current.close(() => resolve());
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
private async readRequestBody(
|
|
213
|
+
req: http.IncomingMessage,
|
|
214
|
+
): Promise<Buffer> {
|
|
215
|
+
return await new Promise<Buffer>((resolve, reject) => {
|
|
216
|
+
const chunks: Buffer[] = [];
|
|
217
|
+
req.on("data", (chunk) => chunks.push(Buffer.from(chunk)));
|
|
218
|
+
req.on("end", () => resolve(Buffer.concat(chunks)));
|
|
219
|
+
req.on("error", reject);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SDK Session 落盘路径规则。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 与旧 `.downcity/session/<sessionId>` 路径分开,避免不同 agent 在同一项目目录下互相污染。
|
|
6
|
+
* - 新 SDK 统一落盘到 `.downcity/agents/<agentId>/sessions/<sessionId>/...`。
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import path from "node:path";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* `.downcity` 根目录路径。
|
|
13
|
+
*/
|
|
14
|
+
export function getSdkDowncityDirPath(projectRoot: string): string {
|
|
15
|
+
return path.join(projectRoot, ".downcity");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* SDK agents 根目录路径。
|
|
20
|
+
*/
|
|
21
|
+
export function getSdkAgentsRootDirPath(projectRoot: string): string {
|
|
22
|
+
return path.join(getSdkDowncityDirPath(projectRoot), "agents");
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 单个 agent 根目录路径。
|
|
27
|
+
*/
|
|
28
|
+
export function getSdkAgentDirPath(
|
|
29
|
+
projectRoot: string,
|
|
30
|
+
agentId: string,
|
|
31
|
+
): string {
|
|
32
|
+
return path.join(
|
|
33
|
+
getSdkAgentsRootDirPath(projectRoot),
|
|
34
|
+
encodeURIComponent(String(agentId || "").trim()),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 单个 agent 的 sessions 根目录路径。
|
|
40
|
+
*/
|
|
41
|
+
export function getSdkAgentSessionsRootDirPath(
|
|
42
|
+
projectRoot: string,
|
|
43
|
+
agentId: string,
|
|
44
|
+
): string {
|
|
45
|
+
return path.join(getSdkAgentDirPath(projectRoot, agentId), "sessions");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 单个 session 根目录路径。
|
|
50
|
+
*/
|
|
51
|
+
export function getSdkAgentSessionDirPath(
|
|
52
|
+
projectRoot: string,
|
|
53
|
+
agentId: string,
|
|
54
|
+
sessionId: string,
|
|
55
|
+
): string {
|
|
56
|
+
return path.join(
|
|
57
|
+
getSdkAgentSessionsRootDirPath(projectRoot, agentId),
|
|
58
|
+
encodeURIComponent(String(sessionId || "").trim()),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 单个 session 的消息目录路径。
|
|
64
|
+
*/
|
|
65
|
+
export function getSdkAgentSessionMessagesDirPath(
|
|
66
|
+
projectRoot: string,
|
|
67
|
+
agentId: string,
|
|
68
|
+
sessionId: string,
|
|
69
|
+
): string {
|
|
70
|
+
return path.join(
|
|
71
|
+
getSdkAgentSessionDirPath(projectRoot, agentId, sessionId),
|
|
72
|
+
"messages",
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 单个 session 的消息 JSONL 文件路径。
|
|
78
|
+
*/
|
|
79
|
+
export function getSdkAgentSessionMessagesPath(
|
|
80
|
+
projectRoot: string,
|
|
81
|
+
agentId: string,
|
|
82
|
+
sessionId: string,
|
|
83
|
+
): string {
|
|
84
|
+
return path.join(
|
|
85
|
+
getSdkAgentSessionMessagesDirPath(projectRoot, agentId, sessionId),
|
|
86
|
+
"messages.jsonl",
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 单个 session 的 meta.json 路径。
|
|
92
|
+
*/
|
|
93
|
+
export function getSdkAgentSessionMetaPath(
|
|
94
|
+
projectRoot: string,
|
|
95
|
+
agentId: string,
|
|
96
|
+
sessionId: string,
|
|
97
|
+
): string {
|
|
98
|
+
return path.join(
|
|
99
|
+
getSdkAgentSessionMessagesDirPath(projectRoot, agentId, sessionId),
|
|
100
|
+
"meta.json",
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* 单个 session 的 archive 目录路径。
|
|
106
|
+
*/
|
|
107
|
+
export function getSdkAgentSessionArchiveDirPath(
|
|
108
|
+
projectRoot: string,
|
|
109
|
+
agentId: string,
|
|
110
|
+
sessionId: string,
|
|
111
|
+
): string {
|
|
112
|
+
return path.join(
|
|
113
|
+
getSdkAgentSessionMessagesDirPath(projectRoot, agentId, sessionId),
|
|
114
|
+
"archive",
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* 单个 agent 的本地 RPC socket 路径。
|
|
120
|
+
*/
|
|
121
|
+
export function getSdkAgentRpcEndpointPath(
|
|
122
|
+
projectRoot: string,
|
|
123
|
+
agentId: string,
|
|
124
|
+
): string {
|
|
125
|
+
return path.join(getSdkAgentDirPath(projectRoot, agentId), "agent.rpc.sock");
|
|
126
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RemoteAgent:远程 SDK 客户端。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 面向已启动 `agent.http.start()` 的远程/本地 HTTP 服务。
|
|
6
|
+
* - 与本地 `Agent` 尽量保持同一套 session 使用面。
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type {
|
|
10
|
+
AgentSessionMetadata,
|
|
11
|
+
AgentSessionRunInput,
|
|
12
|
+
AgentSessionRunResult,
|
|
13
|
+
AgentSessionSetInput,
|
|
14
|
+
AgentSessionStreamEvent,
|
|
15
|
+
RemoteAgentOptions,
|
|
16
|
+
} from "@/host/sdk/AgentSdkTypes.js";
|
|
17
|
+
import type { SessionMessageV1 } from "@/types/session/SessionMessages.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 远程 Session 客户端。
|
|
21
|
+
*/
|
|
22
|
+
class RemoteSession {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
private readonly baseUrl: string;
|
|
25
|
+
|
|
26
|
+
constructor(baseUrl: string, sessionId: string) {
|
|
27
|
+
this.baseUrl = baseUrl;
|
|
28
|
+
this.id = sessionId;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 远程 session 当前不支持直接注入本地模型实例。
|
|
33
|
+
*/
|
|
34
|
+
async set(_input: AgentSessionSetInput): Promise<void> {
|
|
35
|
+
throw new Error(
|
|
36
|
+
"Remote session.set({ model }) is not supported in v1. Configure the model on the server-side local Agent session instead.",
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 执行一轮非流式请求。
|
|
42
|
+
*/
|
|
43
|
+
async run(input: AgentSessionRunInput): Promise<AgentSessionRunResult> {
|
|
44
|
+
const response = await fetch(`${this.baseUrl}/api/sdk/sessions/${encodeURIComponent(this.id)}/run`, {
|
|
45
|
+
method: "POST",
|
|
46
|
+
headers: {
|
|
47
|
+
"Content-Type": "application/json",
|
|
48
|
+
},
|
|
49
|
+
body: JSON.stringify(input),
|
|
50
|
+
});
|
|
51
|
+
const payload = (await response.json()) as {
|
|
52
|
+
success?: boolean;
|
|
53
|
+
error?: string;
|
|
54
|
+
result?: AgentSessionRunResult;
|
|
55
|
+
};
|
|
56
|
+
if (!response.ok || !payload.success || !payload.result) {
|
|
57
|
+
throw new Error(String(payload.error || "Remote session run failed"));
|
|
58
|
+
}
|
|
59
|
+
return payload.result;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 读取远程消息历史。
|
|
64
|
+
*/
|
|
65
|
+
async history(): Promise<SessionMessageV1[]> {
|
|
66
|
+
const response = await fetch(
|
|
67
|
+
`${this.baseUrl}/api/sdk/sessions/${encodeURIComponent(this.id)}/messages`,
|
|
68
|
+
);
|
|
69
|
+
const payload = (await response.json()) as {
|
|
70
|
+
success?: boolean;
|
|
71
|
+
error?: string;
|
|
72
|
+
messages?: SessionMessageV1[];
|
|
73
|
+
};
|
|
74
|
+
if (!response.ok || !payload.success || !Array.isArray(payload.messages)) {
|
|
75
|
+
throw new Error(String(payload.error || "Remote session history failed"));
|
|
76
|
+
}
|
|
77
|
+
return payload.messages;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 分叉远程 session。
|
|
82
|
+
*/
|
|
83
|
+
async fork(messageId?: string): Promise<RemoteSession> {
|
|
84
|
+
const response = await fetch(
|
|
85
|
+
`${this.baseUrl}/api/sdk/sessions/${encodeURIComponent(this.id)}/fork`,
|
|
86
|
+
{
|
|
87
|
+
method: "POST",
|
|
88
|
+
headers: {
|
|
89
|
+
"Content-Type": "application/json",
|
|
90
|
+
},
|
|
91
|
+
body: JSON.stringify({
|
|
92
|
+
...(messageId ? { messageId } : {}),
|
|
93
|
+
}),
|
|
94
|
+
},
|
|
95
|
+
);
|
|
96
|
+
const payload = (await response.json()) as {
|
|
97
|
+
success?: boolean;
|
|
98
|
+
error?: string;
|
|
99
|
+
session?: AgentSessionMetadata;
|
|
100
|
+
};
|
|
101
|
+
if (!response.ok || !payload.success || !payload.session?.sessionId) {
|
|
102
|
+
throw new Error(String(payload.error || "Remote session fork failed"));
|
|
103
|
+
}
|
|
104
|
+
return new RemoteSession(this.baseUrl, payload.session.sessionId);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* 执行一轮流式请求。
|
|
109
|
+
*/
|
|
110
|
+
async *stream(
|
|
111
|
+
input: AgentSessionRunInput,
|
|
112
|
+
): AsyncIterable<AgentSessionStreamEvent> {
|
|
113
|
+
const response = await fetch(
|
|
114
|
+
`${this.baseUrl}/api/sdk/sessions/${encodeURIComponent(this.id)}/stream`,
|
|
115
|
+
{
|
|
116
|
+
method: "POST",
|
|
117
|
+
headers: {
|
|
118
|
+
"Content-Type": "application/json",
|
|
119
|
+
},
|
|
120
|
+
body: JSON.stringify(input),
|
|
121
|
+
},
|
|
122
|
+
);
|
|
123
|
+
if (!response.ok || !response.body) {
|
|
124
|
+
const text = await response.text().catch(() => "");
|
|
125
|
+
throw new Error(text || `Remote session stream failed (${response.status})`);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const decoder = new TextDecoder();
|
|
129
|
+
const reader = response.body.getReader();
|
|
130
|
+
let buffered = "";
|
|
131
|
+
while (true) {
|
|
132
|
+
const { done, value } = await reader.read();
|
|
133
|
+
if (done) break;
|
|
134
|
+
buffered += decoder.decode(value, { stream: true });
|
|
135
|
+
let newlineIndex = buffered.indexOf("\n");
|
|
136
|
+
while (newlineIndex >= 0) {
|
|
137
|
+
const line = buffered.slice(0, newlineIndex).trim();
|
|
138
|
+
buffered = buffered.slice(newlineIndex + 1);
|
|
139
|
+
if (line) {
|
|
140
|
+
yield JSON.parse(line) as AgentSessionStreamEvent;
|
|
141
|
+
}
|
|
142
|
+
newlineIndex = buffered.indexOf("\n");
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const tail = buffered.trim();
|
|
146
|
+
if (tail) {
|
|
147
|
+
yield JSON.parse(tail) as AgentSessionStreamEvent;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* RemoteAgent:远程 Agent 客户端。
|
|
154
|
+
*/
|
|
155
|
+
export class RemoteAgent {
|
|
156
|
+
private readonly baseUrl: string;
|
|
157
|
+
|
|
158
|
+
constructor(options: RemoteAgentOptions) {
|
|
159
|
+
const baseUrl = String(options.baseUrl || "").trim().replace(/\/+$/, "");
|
|
160
|
+
if (!baseUrl) {
|
|
161
|
+
throw new Error("RemoteAgent requires a non-empty baseUrl");
|
|
162
|
+
}
|
|
163
|
+
this.baseUrl = baseUrl;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* 获取或创建一个远程 session。
|
|
168
|
+
*/
|
|
169
|
+
async session(sessionId?: string): Promise<RemoteSession> {
|
|
170
|
+
const response = await fetch(`${this.baseUrl}/api/sdk/sessions`, {
|
|
171
|
+
method: "POST",
|
|
172
|
+
headers: {
|
|
173
|
+
"Content-Type": "application/json",
|
|
174
|
+
},
|
|
175
|
+
body: JSON.stringify({
|
|
176
|
+
...(sessionId ? { sessionId } : {}),
|
|
177
|
+
}),
|
|
178
|
+
});
|
|
179
|
+
const payload = (await response.json()) as {
|
|
180
|
+
success?: boolean;
|
|
181
|
+
error?: string;
|
|
182
|
+
session?: AgentSessionMetadata;
|
|
183
|
+
};
|
|
184
|
+
if (!response.ok || !payload.success || !payload.session?.sessionId) {
|
|
185
|
+
throw new Error(String(payload.error || "Remote session load failed"));
|
|
186
|
+
}
|
|
187
|
+
return new RemoteSession(this.baseUrl, payload.session.sessionId);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* 列出远程 agent 的全部 session 元数据。
|
|
192
|
+
*/
|
|
193
|
+
async sessions(): Promise<AgentSessionMetadata[]> {
|
|
194
|
+
const response = await fetch(`${this.baseUrl}/api/sdk/sessions`);
|
|
195
|
+
const payload = (await response.json()) as {
|
|
196
|
+
success?: boolean;
|
|
197
|
+
error?: string;
|
|
198
|
+
sessions?: AgentSessionMetadata[];
|
|
199
|
+
};
|
|
200
|
+
if (!response.ok || !payload.success || !Array.isArray(payload.sessions)) {
|
|
201
|
+
throw new Error(String(payload.error || "Remote sessions list failed"));
|
|
202
|
+
}
|
|
203
|
+
return payload.sessions;
|
|
204
|
+
}
|
|
205
|
+
}
|