@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,799 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ContactService:agent 点对点关系与分享服务。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - `link/approve` 建立可信 contact,支持 outbound/inbound/bidirectional 三种可达方向。
|
|
6
|
+
* - 每个 contact 固定一条长期 chat history。
|
|
7
|
+
* - `share` 分享文本、链接、文件和目录,并进入对方 inbox。
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import type { Command } from "commander";
|
|
11
|
+
import type { AgentRuntime } from "@/agent/AgentRuntimeTypes.js";
|
|
12
|
+
import type { AgentContext } from "@/agent/AgentContextTypes.js";
|
|
13
|
+
import type { JsonObject, JsonValue } from "@/shared/types/Json.js";
|
|
14
|
+
import type { ServiceActions } from "@/shared/types/Service.js";
|
|
15
|
+
import { BaseService } from "@/service/builtins/BaseService.js";
|
|
16
|
+
import type {
|
|
17
|
+
ContactApproveCommandPayload,
|
|
18
|
+
ContactChatCommandPayload,
|
|
19
|
+
ContactCheckCommandPayload,
|
|
20
|
+
ContactLinkCommandPayload,
|
|
21
|
+
ContactReceiveCommandPayload,
|
|
22
|
+
ContactShareCommandPayload,
|
|
23
|
+
} from "@/service/builtins/contact/types/ContactCommand.js";
|
|
24
|
+
import type {
|
|
25
|
+
ContactApproveLinkRequest,
|
|
26
|
+
ContactApproveLinkResponse,
|
|
27
|
+
} from "@/service/builtins/contact/types/ContactLink.js";
|
|
28
|
+
import type {
|
|
29
|
+
ContactConfirmRequest,
|
|
30
|
+
ContactConfirmResponse,
|
|
31
|
+
} from "@/service/builtins/contact/types/ContactApproval.js";
|
|
32
|
+
import type { ContactPingResponse } from "@/service/builtins/contact/types/ContactCheck.js";
|
|
33
|
+
import type { ContactChatResponse } from "@/service/builtins/contact/types/ContactChat.js";
|
|
34
|
+
import type { AgentContact } from "@/service/builtins/contact/types/Contact.js";
|
|
35
|
+
import type { SaveContactInboxShareInput } from "@/service/builtins/contact/types/ContactShare.js";
|
|
36
|
+
import {
|
|
37
|
+
appendContactMessage,
|
|
38
|
+
createStableContactId,
|
|
39
|
+
findContact,
|
|
40
|
+
findContactByInboundToken,
|
|
41
|
+
listContacts,
|
|
42
|
+
normalizeContactEndpoint,
|
|
43
|
+
readContactMessages,
|
|
44
|
+
saveContact,
|
|
45
|
+
touchContactSeen,
|
|
46
|
+
} from "./runtime/ContactStore.js";
|
|
47
|
+
import {
|
|
48
|
+
createContactLinkCode,
|
|
49
|
+
parseContactLinkCode,
|
|
50
|
+
} from "./runtime/LinkCode.js";
|
|
51
|
+
import {
|
|
52
|
+
saveContactLinkRecord,
|
|
53
|
+
} from "./runtime/LinkStore.js";
|
|
54
|
+
import {
|
|
55
|
+
createContactId,
|
|
56
|
+
createContactToken,
|
|
57
|
+
hashContactToken,
|
|
58
|
+
} from "./runtime/Token.js";
|
|
59
|
+
import {
|
|
60
|
+
callContactApprove,
|
|
61
|
+
callContactChat,
|
|
62
|
+
callContactConfirm,
|
|
63
|
+
callContactPing,
|
|
64
|
+
callContactShare,
|
|
65
|
+
} from "./runtime/RemoteClient.js";
|
|
66
|
+
import {
|
|
67
|
+
listContactInboxShares,
|
|
68
|
+
saveContactInboxShare,
|
|
69
|
+
} from "./runtime/InboxStore.js";
|
|
70
|
+
import {
|
|
71
|
+
createShareInput,
|
|
72
|
+
receiveShare,
|
|
73
|
+
} from "./runtime/ShareBundle.js";
|
|
74
|
+
import { receiveContactChatMessage } from "./runtime/ChatRuntime.js";
|
|
75
|
+
import { buildContactServiceSystemText } from "./runtime/SystemProvider.js";
|
|
76
|
+
import { resolveContactSelfEndpoint } from "./runtime/EndpointResolver.js";
|
|
77
|
+
import {
|
|
78
|
+
buildContactApproveNotes,
|
|
79
|
+
buildContactLinkNotes,
|
|
80
|
+
classifyContactEndpoint,
|
|
81
|
+
} from "./runtime/EndpointNotice.js";
|
|
82
|
+
import {
|
|
83
|
+
approveContactLinkRequest,
|
|
84
|
+
confirmContactLinkRequest,
|
|
85
|
+
} from "./runtime/LinkApproval.js";
|
|
86
|
+
import { buildContactApproveCallbackDecision } from "./runtime/ApproveCallback.js";
|
|
87
|
+
|
|
88
|
+
function readObject(value: JsonValue): JsonObject {
|
|
89
|
+
return value && typeof value === "object" && !Array.isArray(value)
|
|
90
|
+
? (value as JsonObject)
|
|
91
|
+
: {};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function readString(body: JsonObject, key: string): string {
|
|
95
|
+
const value = body[key];
|
|
96
|
+
return typeof value === "string" ? value.trim() : "";
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function readNumber(body: JsonObject, key: string): number | undefined {
|
|
100
|
+
const value = body[key];
|
|
101
|
+
if (typeof value !== "number") return undefined;
|
|
102
|
+
return Number.isFinite(value) ? value : undefined;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function readBoolean(body: JsonObject, key: string): boolean | undefined {
|
|
106
|
+
const value = body[key];
|
|
107
|
+
return typeof value === "boolean" ? value : undefined;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function getHeaderToken(params: { headers?: Headers; body?: JsonObject }): string {
|
|
111
|
+
const fromHeader = String(params.headers?.get("x-downcity-contact-token") || "").trim();
|
|
112
|
+
if (fromHeader) return fromHeader;
|
|
113
|
+
return params.body ? readString(params.body, "token") : "";
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
async function resolveSelfEndpoint(
|
|
117
|
+
context: AgentContext,
|
|
118
|
+
endpointOverride?: string,
|
|
119
|
+
): Promise<string> {
|
|
120
|
+
const explicit = String(endpointOverride || "").trim();
|
|
121
|
+
if (explicit) return normalizeContactEndpoint(explicit);
|
|
122
|
+
const start = context.config.start || {};
|
|
123
|
+
const env = {
|
|
124
|
+
...process.env,
|
|
125
|
+
...context.globalEnv,
|
|
126
|
+
...context.env,
|
|
127
|
+
};
|
|
128
|
+
const runtimePort = Number(process.env.DC_SERVER_PORT || env.DC_SERVER_PORT || "");
|
|
129
|
+
// 关键点(中文):link code 必须写入当前 runtime 的真实监听端口,不能使用可能已经过期的配置端口。
|
|
130
|
+
const port = Number.isFinite(runtimePort) && runtimePort > 0 ? runtimePort : start.port;
|
|
131
|
+
const runtimeHost = String(process.env.DC_SERVER_HOST || env.DC_SERVER_HOST || "").trim();
|
|
132
|
+
return normalizeContactEndpoint(
|
|
133
|
+
await resolveContactSelfEndpoint({
|
|
134
|
+
host: runtimeHost || start.host,
|
|
135
|
+
port,
|
|
136
|
+
env,
|
|
137
|
+
}),
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function hasRuntimePublicEndpointEnv(context: AgentContext): boolean {
|
|
142
|
+
const env = {
|
|
143
|
+
...context.globalEnv,
|
|
144
|
+
...context.env,
|
|
145
|
+
...process.env,
|
|
146
|
+
};
|
|
147
|
+
return Boolean(
|
|
148
|
+
String(env.DOWNCITY_PUBLIC_URL || "").trim() ||
|
|
149
|
+
String(env.DOWNCITY_PUBLIC_HOST || "").trim(),
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function getAgentName(context: AgentContext): string {
|
|
154
|
+
return String(context.config.name || "downcity-agent").trim() || "downcity-agent";
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function requireOutboundContact(contact: AgentContact): {
|
|
158
|
+
endpoint: string;
|
|
159
|
+
token: string;
|
|
160
|
+
} {
|
|
161
|
+
if (!contact.endpoint || !contact.outboundToken) {
|
|
162
|
+
throw new Error(`Contact is inbound-only and cannot be called directly: ${contact.name}`);
|
|
163
|
+
}
|
|
164
|
+
return {
|
|
165
|
+
endpoint: contact.endpoint,
|
|
166
|
+
token: contact.outboundToken,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Contact service 类实现。
|
|
172
|
+
*/
|
|
173
|
+
export class ContactService extends BaseService {
|
|
174
|
+
/**
|
|
175
|
+
* service 名称。
|
|
176
|
+
*/
|
|
177
|
+
readonly name = "contact";
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* 当前 service action 定义表。
|
|
181
|
+
*/
|
|
182
|
+
readonly actions: ServiceActions;
|
|
183
|
+
|
|
184
|
+
constructor(agent: AgentRuntime | null) {
|
|
185
|
+
super(agent);
|
|
186
|
+
this.actions = {
|
|
187
|
+
link: {
|
|
188
|
+
command: {
|
|
189
|
+
description: "生成一次性 contact link code,交给另一个 agent approve",
|
|
190
|
+
configure(command: Command) {
|
|
191
|
+
command.option("--ttl-seconds <seconds>", "link 过期秒数,默认 600", Number);
|
|
192
|
+
},
|
|
193
|
+
mapInput({ opts }) {
|
|
194
|
+
const payload: JsonObject = {};
|
|
195
|
+
if (typeof opts.ttlSeconds === "number") payload.ttlSeconds = opts.ttlSeconds;
|
|
196
|
+
return payload;
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
execute: async (params) => ({
|
|
200
|
+
success: true,
|
|
201
|
+
data: (await this.link(
|
|
202
|
+
params.context,
|
|
203
|
+
params.payload as ContactLinkCommandPayload,
|
|
204
|
+
)) as unknown as JsonValue,
|
|
205
|
+
}),
|
|
206
|
+
},
|
|
207
|
+
approve: {
|
|
208
|
+
command: {
|
|
209
|
+
description: "使用 contact link code 建立点对点联系",
|
|
210
|
+
configure(command: Command) {
|
|
211
|
+
command
|
|
212
|
+
.argument("<code>")
|
|
213
|
+
.option("--name <alias>", "本地 contact 别名");
|
|
214
|
+
},
|
|
215
|
+
mapInput({ args, opts }) {
|
|
216
|
+
const code = String(args[0] || "").trim();
|
|
217
|
+
if (!code) throw new Error("Missing link code");
|
|
218
|
+
const payload: JsonObject = { code };
|
|
219
|
+
if (typeof opts.name === "string") payload.name = opts.name;
|
|
220
|
+
return payload;
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
execute: async (params) => ({
|
|
224
|
+
success: true,
|
|
225
|
+
data: (await this.approve(
|
|
226
|
+
params.context,
|
|
227
|
+
params.payload as unknown as ContactApproveCommandPayload,
|
|
228
|
+
)) as unknown as JsonValue,
|
|
229
|
+
}),
|
|
230
|
+
},
|
|
231
|
+
list: {
|
|
232
|
+
command: {
|
|
233
|
+
description: "列出已建立的 contact",
|
|
234
|
+
mapInput() {
|
|
235
|
+
return {};
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
execute: async (params) => ({
|
|
239
|
+
success: true,
|
|
240
|
+
data: {
|
|
241
|
+
contacts: await listContacts(params.context.rootPath),
|
|
242
|
+
} as unknown as JsonValue,
|
|
243
|
+
}),
|
|
244
|
+
},
|
|
245
|
+
check: {
|
|
246
|
+
command: {
|
|
247
|
+
description: "检查 contact 或 endpoint 当前是否在线可用",
|
|
248
|
+
configure(command: Command) {
|
|
249
|
+
command
|
|
250
|
+
.argument("[target]")
|
|
251
|
+
.option("--to <endpoint>", "直接检查未保存的 endpoint");
|
|
252
|
+
},
|
|
253
|
+
mapInput({ args, opts }) {
|
|
254
|
+
const payload: JsonObject = {};
|
|
255
|
+
const target = String(args[0] || "").trim();
|
|
256
|
+
if (target) payload.target = target;
|
|
257
|
+
if (typeof opts.to === "string") payload.endpoint = opts.to;
|
|
258
|
+
return payload;
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
execute: async (params) => ({
|
|
262
|
+
success: true,
|
|
263
|
+
data: (await this.check(
|
|
264
|
+
params.context,
|
|
265
|
+
params.payload as ContactCheckCommandPayload,
|
|
266
|
+
)) as unknown as JsonValue,
|
|
267
|
+
}),
|
|
268
|
+
},
|
|
269
|
+
chat: {
|
|
270
|
+
command: {
|
|
271
|
+
description: "和某个 contact 的长期对话线聊天",
|
|
272
|
+
configure(command: Command) {
|
|
273
|
+
command.requiredOption("--to <contact>", "目标 contact").argument("[message...]");
|
|
274
|
+
},
|
|
275
|
+
mapInput({ args, opts }) {
|
|
276
|
+
const payload: JsonObject = {
|
|
277
|
+
to: String(opts.to || "").trim(),
|
|
278
|
+
};
|
|
279
|
+
const message = args.join(" ").trim();
|
|
280
|
+
if (message) payload.message = message;
|
|
281
|
+
return payload;
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
execute: async (params) => ({
|
|
285
|
+
success: true,
|
|
286
|
+
data: (await this.chat(
|
|
287
|
+
params.context,
|
|
288
|
+
params.payload as unknown as ContactChatCommandPayload,
|
|
289
|
+
)) as unknown as JsonValue,
|
|
290
|
+
}),
|
|
291
|
+
},
|
|
292
|
+
share: {
|
|
293
|
+
command: {
|
|
294
|
+
description: "向 contact 分享文本、链接、文件或目录",
|
|
295
|
+
configure(command: Command) {
|
|
296
|
+
command
|
|
297
|
+
.requiredOption("--to <contact>", "目标 contact")
|
|
298
|
+
.option("--text <text>", "分享文本")
|
|
299
|
+
.option("--link <url...>", "分享链接")
|
|
300
|
+
.argument("[paths...]");
|
|
301
|
+
},
|
|
302
|
+
mapInput({ args, opts }) {
|
|
303
|
+
const links = Array.isArray(opts.link)
|
|
304
|
+
? opts.link.map((item) => String(item || "").trim()).filter(Boolean)
|
|
305
|
+
: typeof opts.link === "string"
|
|
306
|
+
? [opts.link]
|
|
307
|
+
: [];
|
|
308
|
+
return {
|
|
309
|
+
to: String(opts.to || "").trim(),
|
|
310
|
+
...(typeof opts.text === "string" ? { text: opts.text } : {}),
|
|
311
|
+
...(links.length > 0 ? { links } : {}),
|
|
312
|
+
paths: args.map((item) => String(item || "").trim()).filter(Boolean),
|
|
313
|
+
};
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
execute: async (params) => ({
|
|
317
|
+
success: true,
|
|
318
|
+
data: (await this.share(
|
|
319
|
+
params.context,
|
|
320
|
+
params.payload as unknown as ContactShareCommandPayload,
|
|
321
|
+
)) as unknown as JsonValue,
|
|
322
|
+
}),
|
|
323
|
+
},
|
|
324
|
+
inbox: {
|
|
325
|
+
command: {
|
|
326
|
+
description: "查看 contact inbox",
|
|
327
|
+
mapInput() {
|
|
328
|
+
return {};
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
execute: async (params) => ({
|
|
332
|
+
success: true,
|
|
333
|
+
data: {
|
|
334
|
+
shares: await listContactInboxShares(params.context.rootPath),
|
|
335
|
+
} as unknown as JsonValue,
|
|
336
|
+
}),
|
|
337
|
+
},
|
|
338
|
+
receive: {
|
|
339
|
+
command: {
|
|
340
|
+
description: "接收 inbox 中的 share",
|
|
341
|
+
configure(command: Command) {
|
|
342
|
+
command.argument("<shareId>");
|
|
343
|
+
},
|
|
344
|
+
mapInput({ args, opts }) {
|
|
345
|
+
const shareId = String(args[0] || "").trim();
|
|
346
|
+
if (!shareId) throw new Error("Missing shareId");
|
|
347
|
+
return {
|
|
348
|
+
shareId,
|
|
349
|
+
};
|
|
350
|
+
},
|
|
351
|
+
},
|
|
352
|
+
execute: async (params) => ({
|
|
353
|
+
success: true,
|
|
354
|
+
data: (await receiveShare({
|
|
355
|
+
projectRoot: params.context.rootPath,
|
|
356
|
+
shareId: (params.payload as unknown as ContactReceiveCommandPayload).shareId,
|
|
357
|
+
})) as unknown as JsonValue,
|
|
358
|
+
}),
|
|
359
|
+
},
|
|
360
|
+
remoteping: {
|
|
361
|
+
api: {
|
|
362
|
+
method: "POST",
|
|
363
|
+
path: "/api/contact/ping",
|
|
364
|
+
async mapInput(ctx) {
|
|
365
|
+
const body = (await ctx.req.json().catch(() => ({}))) as JsonValue;
|
|
366
|
+
return {
|
|
367
|
+
body,
|
|
368
|
+
token: getHeaderToken({
|
|
369
|
+
headers: ctx.req.raw.headers,
|
|
370
|
+
body: readObject(body),
|
|
371
|
+
}),
|
|
372
|
+
} as unknown as JsonValue;
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
execute: async (params) => ({
|
|
376
|
+
success: true,
|
|
377
|
+
data: (await this.remotePing(
|
|
378
|
+
params.context,
|
|
379
|
+
params.payload as unknown as { token?: string },
|
|
380
|
+
)) as unknown as JsonValue,
|
|
381
|
+
}),
|
|
382
|
+
},
|
|
383
|
+
remoteapprove: {
|
|
384
|
+
api: {
|
|
385
|
+
method: "POST",
|
|
386
|
+
path: "/api/contact/approve",
|
|
387
|
+
async mapInput(ctx) {
|
|
388
|
+
return (await ctx.req.json()) as JsonValue;
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
execute: async (params) => ({
|
|
392
|
+
success: true,
|
|
393
|
+
data: (await this.remoteApprove(
|
|
394
|
+
params.context,
|
|
395
|
+
readObject(params.payload) as unknown as ContactApproveLinkRequest,
|
|
396
|
+
)) as unknown as JsonValue,
|
|
397
|
+
}),
|
|
398
|
+
},
|
|
399
|
+
remoteconfirm: {
|
|
400
|
+
api: {
|
|
401
|
+
method: "POST",
|
|
402
|
+
path: "/api/contact/confirm",
|
|
403
|
+
async mapInput(ctx) {
|
|
404
|
+
return (await ctx.req.json()) as JsonValue;
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
execute: async (params) => ({
|
|
408
|
+
success: true,
|
|
409
|
+
data: (await this.remoteConfirm(
|
|
410
|
+
params.context,
|
|
411
|
+
readObject(params.payload) as unknown as ContactConfirmRequest,
|
|
412
|
+
)) as unknown as JsonValue,
|
|
413
|
+
}),
|
|
414
|
+
},
|
|
415
|
+
remotechat: {
|
|
416
|
+
api: {
|
|
417
|
+
method: "POST",
|
|
418
|
+
path: "/api/contact/chat",
|
|
419
|
+
async mapInput(ctx) {
|
|
420
|
+
const body = (await ctx.req.json()) as JsonValue;
|
|
421
|
+
return {
|
|
422
|
+
body,
|
|
423
|
+
token: getHeaderToken({
|
|
424
|
+
headers: ctx.req.raw.headers,
|
|
425
|
+
body: readObject(body),
|
|
426
|
+
}),
|
|
427
|
+
} as unknown as JsonValue;
|
|
428
|
+
},
|
|
429
|
+
},
|
|
430
|
+
execute: async (params) => {
|
|
431
|
+
const payload = readObject(params.payload);
|
|
432
|
+
const body = readObject(payload.body);
|
|
433
|
+
return {
|
|
434
|
+
success: true,
|
|
435
|
+
data: (await receiveContactChatMessage({
|
|
436
|
+
context: params.context,
|
|
437
|
+
token: readString(payload, "token"),
|
|
438
|
+
message: readString(body, "message"),
|
|
439
|
+
})) as unknown as JsonValue,
|
|
440
|
+
};
|
|
441
|
+
},
|
|
442
|
+
},
|
|
443
|
+
remoteshare: {
|
|
444
|
+
api: {
|
|
445
|
+
method: "POST",
|
|
446
|
+
path: "/api/contact/share",
|
|
447
|
+
async mapInput(ctx) {
|
|
448
|
+
const body = (await ctx.req.json()) as JsonValue;
|
|
449
|
+
return {
|
|
450
|
+
body,
|
|
451
|
+
token: getHeaderToken({
|
|
452
|
+
headers: ctx.req.raw.headers,
|
|
453
|
+
body: readObject(body),
|
|
454
|
+
}),
|
|
455
|
+
} as unknown as JsonValue;
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
execute: async (params) => ({
|
|
459
|
+
success: true,
|
|
460
|
+
data: (await this.remoteShare(params.context, params.payload)) as unknown as JsonValue,
|
|
461
|
+
}),
|
|
462
|
+
},
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
this.lifecycle = {
|
|
466
|
+
start: () => undefined,
|
|
467
|
+
stop: () => undefined,
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* contact system 文本。
|
|
473
|
+
*/
|
|
474
|
+
system(): string {
|
|
475
|
+
return buildContactServiceSystemText();
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
private async link(context: AgentContext, payload: ContactLinkCommandPayload) {
|
|
479
|
+
const now = Date.now();
|
|
480
|
+
const ttlSeconds = Math.max(60, Number(payload.ttlSeconds || 600));
|
|
481
|
+
const linkId = createContactId("link");
|
|
482
|
+
const secret = createContactToken();
|
|
483
|
+
const endpoint = await resolveSelfEndpoint(context, payload.endpoint);
|
|
484
|
+
const agentName = getAgentName(context);
|
|
485
|
+
|
|
486
|
+
await saveContactLinkRecord(context.rootPath, {
|
|
487
|
+
id: linkId,
|
|
488
|
+
agentName,
|
|
489
|
+
endpoint,
|
|
490
|
+
secretHash: hashContactToken(secret),
|
|
491
|
+
createdAt: now,
|
|
492
|
+
expiresAt: now + ttlSeconds * 1000,
|
|
493
|
+
usedAt: null,
|
|
494
|
+
});
|
|
495
|
+
|
|
496
|
+
const code = createContactLinkCode({
|
|
497
|
+
version: 1,
|
|
498
|
+
linkId,
|
|
499
|
+
agentName,
|
|
500
|
+
endpoint,
|
|
501
|
+
secret,
|
|
502
|
+
createdAt: now,
|
|
503
|
+
expiresAt: now + ttlSeconds * 1000,
|
|
504
|
+
});
|
|
505
|
+
return {
|
|
506
|
+
code,
|
|
507
|
+
linkId,
|
|
508
|
+
agentName,
|
|
509
|
+
endpoint,
|
|
510
|
+
endpointReachability: classifyContactEndpoint(endpoint),
|
|
511
|
+
notes: buildContactLinkNotes({ endpoint }),
|
|
512
|
+
expiresAt: now + ttlSeconds * 1000,
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
private async approve(context: AgentContext, payload: ContactApproveCommandPayload) {
|
|
517
|
+
const parsed = parseContactLinkCode(payload.code);
|
|
518
|
+
// 关键点(中文):approve 端不使用本机时钟预判过期,避免两台机器时钟不一致时把本来可用的 link 提前拦截。
|
|
519
|
+
// 是否过期统一交给 link 持有方在远端按本地记录判断。
|
|
520
|
+
|
|
521
|
+
const targetReachability = classifyContactEndpoint(parsed.endpoint);
|
|
522
|
+
const shouldResolveRequesterEndpoint =
|
|
523
|
+
payload.endpoint ||
|
|
524
|
+
hasRuntimePublicEndpointEnv(context) ||
|
|
525
|
+
targetReachability === "loopback" ||
|
|
526
|
+
targetReachability === "private";
|
|
527
|
+
const requesterEndpointCandidate = shouldResolveRequesterEndpoint
|
|
528
|
+
? await resolveSelfEndpoint(context, payload.endpoint)
|
|
529
|
+
: undefined;
|
|
530
|
+
const callbackDecision = buildContactApproveCallbackDecision({
|
|
531
|
+
targetEndpoint: parsed.endpoint,
|
|
532
|
+
requesterEndpoint: requesterEndpointCandidate,
|
|
533
|
+
});
|
|
534
|
+
const requesterEndpoint = callbackDecision.callbackOffered
|
|
535
|
+
? callbackDecision.endpoint
|
|
536
|
+
: undefined;
|
|
537
|
+
const tokenForRequester = requesterEndpoint ? createContactToken() : undefined;
|
|
538
|
+
const approveNotes = buildContactApproveNotes({
|
|
539
|
+
targetEndpoint: parsed.endpoint,
|
|
540
|
+
});
|
|
541
|
+
let response: ContactApproveLinkResponse;
|
|
542
|
+
try {
|
|
543
|
+
response = await callContactApprove<ContactApproveLinkResponse>({
|
|
544
|
+
endpoint: parsed.endpoint,
|
|
545
|
+
body: {
|
|
546
|
+
linkId: parsed.linkId,
|
|
547
|
+
secret: parsed.secret,
|
|
548
|
+
agentName: getAgentName(context),
|
|
549
|
+
callbackOffered: callbackDecision.callbackOffered,
|
|
550
|
+
callbackReason: callbackDecision.reason,
|
|
551
|
+
...(requesterEndpoint ? { endpoint: requesterEndpoint } : {}),
|
|
552
|
+
...(tokenForRequester ? { tokenForRequester } : {}),
|
|
553
|
+
} as unknown as JsonValue,
|
|
554
|
+
});
|
|
555
|
+
} catch (error) {
|
|
556
|
+
throw new Error(`${String(error)}\n${approveNotes.join("\n")}`);
|
|
557
|
+
}
|
|
558
|
+
if (!response.success) throw new Error(response.error || "Contact approve failed");
|
|
559
|
+
|
|
560
|
+
const name = String(payload.name || response.agentName || parsed.agentName).trim();
|
|
561
|
+
const contact = await saveContact(context.rootPath, {
|
|
562
|
+
id: createStableContactId(name),
|
|
563
|
+
name,
|
|
564
|
+
endpoint: response.endpoint || parsed.endpoint,
|
|
565
|
+
reachability: "outbound",
|
|
566
|
+
status: "trusted",
|
|
567
|
+
outboundToken: response.tokenForOwner,
|
|
568
|
+
inboundTokenHash: tokenForRequester ? hashContactToken(tokenForRequester) : null,
|
|
569
|
+
createdAt: Date.now(),
|
|
570
|
+
lastSeenAt: Date.now(),
|
|
571
|
+
});
|
|
572
|
+
let confirmed = false;
|
|
573
|
+
let confirmError: string | undefined;
|
|
574
|
+
if (requesterEndpoint && tokenForRequester) {
|
|
575
|
+
try {
|
|
576
|
+
const confirm = await callContactConfirm<ContactConfirmResponse>({
|
|
577
|
+
endpoint: parsed.endpoint,
|
|
578
|
+
body: {
|
|
579
|
+
linkId: parsed.linkId,
|
|
580
|
+
secret: parsed.secret,
|
|
581
|
+
agentName: getAgentName(context),
|
|
582
|
+
endpoint: requesterEndpoint,
|
|
583
|
+
tokenForRequester,
|
|
584
|
+
} as unknown as JsonValue,
|
|
585
|
+
});
|
|
586
|
+
confirmed = Boolean(confirm.success && confirm.confirmed);
|
|
587
|
+
if (!confirmed && confirm.error) confirmError = confirm.error;
|
|
588
|
+
} catch (error) {
|
|
589
|
+
// 关键点(中文):confirm 只决定是否升级双向;approve 已成功时仍保留 outbound contact。
|
|
590
|
+
confirmError = String(error);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
const finalContact = confirmed
|
|
594
|
+
? await saveContact(context.rootPath, {
|
|
595
|
+
...contact,
|
|
596
|
+
reachability: "bidirectional",
|
|
597
|
+
inboundTokenHash: tokenForRequester ? hashContactToken(tokenForRequester) : null,
|
|
598
|
+
lastSeenAt: Date.now(),
|
|
599
|
+
})
|
|
600
|
+
: contact;
|
|
601
|
+
const finalNotes = buildContactApproveNotes({
|
|
602
|
+
targetEndpoint: parsed.endpoint,
|
|
603
|
+
requesterEndpoint,
|
|
604
|
+
callbackConfirmed: confirmed,
|
|
605
|
+
});
|
|
606
|
+
return {
|
|
607
|
+
contact: finalContact,
|
|
608
|
+
reachability: finalContact.reachability,
|
|
609
|
+
targetEndpointReachability: classifyContactEndpoint(parsed.endpoint),
|
|
610
|
+
callbackOffered: callbackDecision.callbackOffered,
|
|
611
|
+
callbackConfirmed: confirmed,
|
|
612
|
+
callbackReason: callbackDecision.reason,
|
|
613
|
+
...(requesterEndpoint ? { requesterEndpoint } : {}),
|
|
614
|
+
...(confirmError ? { confirmError } : {}),
|
|
615
|
+
notes: finalNotes,
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
private async check(context: AgentContext, payload: ContactCheckCommandPayload) {
|
|
620
|
+
const startedAt = Date.now();
|
|
621
|
+
const endpointInput = String(payload.endpoint || "").trim();
|
|
622
|
+
const contact = endpointInput
|
|
623
|
+
? null
|
|
624
|
+
: await findContact(context.rootPath, String(payload.target || "").trim());
|
|
625
|
+
const endpoint = endpointInput || contact?.endpoint || "";
|
|
626
|
+
if (!endpoint) throw new Error("contact target or --to endpoint is required");
|
|
627
|
+
if (contact && !contact.outboundToken) {
|
|
628
|
+
throw new Error(`Contact is inbound-only and cannot be checked directly: ${contact.name}`);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
try {
|
|
632
|
+
const pong = await callContactPing<ContactPingResponse>({
|
|
633
|
+
endpoint,
|
|
634
|
+
token: contact?.outboundToken || undefined,
|
|
635
|
+
});
|
|
636
|
+
if (contact && pong.success) {
|
|
637
|
+
await touchContactSeen(context.rootPath, contact.id);
|
|
638
|
+
}
|
|
639
|
+
return {
|
|
640
|
+
target: contact?.name || endpoint,
|
|
641
|
+
endpoint: normalizeContactEndpoint(endpoint),
|
|
642
|
+
reachable: Boolean(pong.success),
|
|
643
|
+
authenticated: pong.authenticated,
|
|
644
|
+
latencyMs: Date.now() - startedAt,
|
|
645
|
+
agentName: pong.agentName,
|
|
646
|
+
...(pong.error ? { error: pong.error } : {}),
|
|
647
|
+
};
|
|
648
|
+
} catch (error) {
|
|
649
|
+
return {
|
|
650
|
+
target: contact?.name || endpoint,
|
|
651
|
+
endpoint: normalizeContactEndpoint(endpoint),
|
|
652
|
+
reachable: false,
|
|
653
|
+
latencyMs: Date.now() - startedAt,
|
|
654
|
+
error: String(error),
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
private async chat(context: AgentContext, payload: ContactChatCommandPayload) {
|
|
660
|
+
const contact = await findContact(context.rootPath, payload.to);
|
|
661
|
+
if (!contact) throw new Error(`Contact not found: ${payload.to}`);
|
|
662
|
+
const message = String(payload.message || "").trim();
|
|
663
|
+
if (!message) {
|
|
664
|
+
return {
|
|
665
|
+
contact,
|
|
666
|
+
messages: await readContactMessages(context.rootPath, contact.id),
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
await appendContactMessage(context.rootPath, contact.id, {
|
|
671
|
+
role: "local",
|
|
672
|
+
text: message,
|
|
673
|
+
createdAt: Date.now(),
|
|
674
|
+
});
|
|
675
|
+
const outbound = requireOutboundContact(contact);
|
|
676
|
+
const response = await callContactChat<ContactChatResponse>({
|
|
677
|
+
endpoint: outbound.endpoint,
|
|
678
|
+
token: outbound.token,
|
|
679
|
+
body: {
|
|
680
|
+
senderContactId: contact.id,
|
|
681
|
+
message,
|
|
682
|
+
createdAt: Date.now(),
|
|
683
|
+
} as unknown as JsonValue,
|
|
684
|
+
});
|
|
685
|
+
if (!response.success) throw new Error(response.error || "Contact chat failed");
|
|
686
|
+
await appendContactMessage(context.rootPath, contact.id, {
|
|
687
|
+
role: "remote",
|
|
688
|
+
text: response.reply,
|
|
689
|
+
createdAt: Date.now(),
|
|
690
|
+
});
|
|
691
|
+
return response;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
private async share(context: AgentContext, payload: ContactShareCommandPayload) {
|
|
695
|
+
const contact = await findContact(context.rootPath, payload.to);
|
|
696
|
+
if (!contact) throw new Error(`Contact not found: ${payload.to}`);
|
|
697
|
+
const outbound = requireOutboundContact(contact);
|
|
698
|
+
const share = await createShareInput({
|
|
699
|
+
context,
|
|
700
|
+
fromContactId: contact.id,
|
|
701
|
+
fromAgentName: getAgentName(context),
|
|
702
|
+
text: payload.text,
|
|
703
|
+
links: payload.links,
|
|
704
|
+
paths: payload.paths,
|
|
705
|
+
});
|
|
706
|
+
const response = await callContactShare<{ success: boolean; shareId?: string; error?: string }>({
|
|
707
|
+
endpoint: outbound.endpoint,
|
|
708
|
+
token: outbound.token,
|
|
709
|
+
body: share as unknown as JsonValue,
|
|
710
|
+
});
|
|
711
|
+
if (!response.success) throw new Error(response.error || "Contact share failed");
|
|
712
|
+
return {
|
|
713
|
+
shareId: response.shareId || share.meta.id,
|
|
714
|
+
to: contact.name,
|
|
715
|
+
items: share.payload.items.map((item) => ({
|
|
716
|
+
type: item.type,
|
|
717
|
+
title: item.title,
|
|
718
|
+
})),
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
private async remotePing(
|
|
723
|
+
context: AgentContext,
|
|
724
|
+
payload: { token?: string },
|
|
725
|
+
): Promise<ContactPingResponse> {
|
|
726
|
+
const token = String(payload.token || "").trim();
|
|
727
|
+
if (!token) {
|
|
728
|
+
return {
|
|
729
|
+
success: true,
|
|
730
|
+
agentName: getAgentName(context),
|
|
731
|
+
service: "contact",
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
const contact = await findContactByInboundToken(context.rootPath, token);
|
|
735
|
+
return {
|
|
736
|
+
success: true,
|
|
737
|
+
agentName: getAgentName(context),
|
|
738
|
+
service: "contact",
|
|
739
|
+
authenticated: Boolean(contact && contact.status === "trusted"),
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
private async remoteApprove(
|
|
744
|
+
context: AgentContext,
|
|
745
|
+
request: ContactApproveLinkRequest,
|
|
746
|
+
): Promise<ContactApproveLinkResponse> {
|
|
747
|
+
return await approveContactLinkRequest({
|
|
748
|
+
projectRoot: context.rootPath,
|
|
749
|
+
ownerAgentName: getAgentName(context),
|
|
750
|
+
ownerEndpoint: await resolveSelfEndpoint(context),
|
|
751
|
+
request,
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
private async remoteConfirm(
|
|
756
|
+
context: AgentContext,
|
|
757
|
+
request: ContactConfirmRequest,
|
|
758
|
+
): Promise<ContactConfirmResponse> {
|
|
759
|
+
return await confirmContactLinkRequest({
|
|
760
|
+
projectRoot: context.rootPath,
|
|
761
|
+
ownerAgentName: getAgentName(context),
|
|
762
|
+
request,
|
|
763
|
+
verifyCallback: async ({ endpoint, token }) => {
|
|
764
|
+
const pong = await callContactPing<ContactPingResponse>({
|
|
765
|
+
endpoint,
|
|
766
|
+
token,
|
|
767
|
+
});
|
|
768
|
+
return Boolean(pong.success && pong.authenticated);
|
|
769
|
+
},
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
private async remoteShare(context: AgentContext, rawPayload: JsonValue) {
|
|
774
|
+
const payload = readObject(rawPayload);
|
|
775
|
+
const token = readString(payload, "token");
|
|
776
|
+
const body = readObject(payload.body);
|
|
777
|
+
const contact = await findContactByInboundToken(context.rootPath, token);
|
|
778
|
+
if (!contact || contact.status !== "trusted") {
|
|
779
|
+
throw new Error("Invalid contact token");
|
|
780
|
+
}
|
|
781
|
+
const share = body as unknown as SaveContactInboxShareInput;
|
|
782
|
+
const meta = {
|
|
783
|
+
...share.meta,
|
|
784
|
+
fromContactId: contact.id,
|
|
785
|
+
fromAgentName: contact.name,
|
|
786
|
+
receivedAt: Date.now(),
|
|
787
|
+
status: "pending" as const,
|
|
788
|
+
};
|
|
789
|
+
await saveContactInboxShare(context.rootPath, {
|
|
790
|
+
meta,
|
|
791
|
+
payload: share.payload,
|
|
792
|
+
files: Array.isArray(share.files) ? share.files : [],
|
|
793
|
+
});
|
|
794
|
+
return {
|
|
795
|
+
success: true,
|
|
796
|
+
shareId: meta.id,
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
}
|