@downcity/city 1.1.1 → 1.1.4
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/bin/cli/AgentChat.js +3 -3
- package/bin/cli/AgentChat.js.map +1 -1
- package/bin/cli/AgentHistory.js +1 -1
- package/bin/cli/AgentHistory.js.map +1 -1
- package/bin/cli/AgentManager.js +1 -1
- package/bin/cli/AgentManager.js.map +1 -1
- package/bin/cli/AgentReset.js +1 -1
- package/bin/cli/AgentReset.js.map +1 -1
- package/bin/cli/AgentSelection.js +1 -1
- package/bin/cli/AgentSelection.js.map +1 -1
- package/bin/cli/ChatAuth.d.ts +5 -1
- package/bin/cli/ChatAuth.d.ts.map +1 -1
- package/bin/cli/ChatAuth.js +21 -9
- package/bin/cli/ChatAuth.js.map +1 -1
- package/bin/cli/ChatManager.js +1 -1
- package/bin/cli/ChatManager.js.map +1 -1
- package/bin/cli/Config.js +1 -1
- package/bin/cli/Config.js.map +1 -1
- package/bin/cli/Console.d.ts +1 -1
- package/bin/cli/Console.d.ts.map +1 -1
- package/bin/cli/ConsoleInit.js +3 -3
- package/bin/cli/ConsoleInit.js.map +1 -1
- package/bin/cli/Env.js +2 -2
- package/bin/cli/Env.js.map +1 -1
- package/bin/cli/Index.js +2 -2
- package/bin/cli/Index.js.map +1 -1
- package/bin/cli/IndexAgentCommand.js +1 -1
- package/bin/cli/IndexAgentCommand.js.map +1 -1
- package/bin/cli/IndexConsoleProcess.d.ts +2 -2
- package/bin/cli/IndexConsoleProcess.d.ts.map +1 -1
- package/bin/cli/IndexConsoleProcess.js +2 -2
- package/bin/cli/IndexConsoleProcess.js.map +1 -1
- package/bin/cli/IndexConsoleStatus.d.ts +1 -1
- package/bin/cli/IndexConsoleStatus.d.ts.map +1 -1
- package/bin/cli/Init.js +1 -1
- package/bin/cli/Init.js.map +1 -1
- package/bin/cli/ModelCommandShared.d.ts +2 -2
- package/bin/cli/ModelCommandShared.d.ts.map +1 -1
- package/bin/cli/ModelCommandShared.js +2 -2
- package/bin/cli/ModelCommandShared.js.map +1 -1
- package/bin/cli/ModelCreateCommand.js +2 -2
- package/bin/cli/ModelCreateCommand.js.map +1 -1
- package/bin/cli/ModelManageCommand.js +1 -1
- package/bin/cli/ModelManageCommand.js.map +1 -1
- package/bin/cli/ModelManager.js +2 -2
- package/bin/cli/ModelManager.js.map +1 -1
- package/bin/cli/ModelReadCommand.js +2 -2
- package/bin/cli/ModelReadCommand.js.map +1 -1
- package/bin/cli/ModelSupport.d.ts +1 -1
- package/bin/cli/ModelSupport.d.ts.map +1 -1
- package/bin/cli/Plugins.js +4 -4
- package/bin/cli/Plugins.js.map +1 -1
- package/bin/cli/PublicHostEnv.js +1 -1
- package/bin/cli/PublicHostEnv.js.map +1 -1
- package/bin/cli/Restart.d.ts +1 -1
- package/bin/cli/Restart.d.ts.map +1 -1
- package/bin/cli/Run.d.ts +1 -1
- package/bin/cli/Run.d.ts.map +1 -1
- package/bin/cli/Run.js +2 -6
- package/bin/cli/Run.js.map +1 -1
- package/bin/{service/ServiceCommand.d.ts → cli/ServiceActionCommands.d.ts} +2 -1
- package/bin/cli/ServiceActionCommands.d.ts.map +1 -0
- package/bin/{service/ServiceCommand.js → cli/ServiceActionCommands.js} +6 -5
- package/bin/cli/ServiceActionCommands.js.map +1 -0
- package/bin/cli/ServiceCommandRemote.d.ts +1 -1
- package/bin/cli/ServiceCommandRemote.d.ts.map +1 -1
- package/bin/cli/ServiceCommandRemote.js +2 -2
- package/bin/cli/ServiceCommandRemote.js.map +1 -1
- package/bin/cli/ServiceCommandSupport.d.ts +3 -3
- package/bin/cli/ServiceCommandSupport.d.ts.map +1 -1
- package/bin/cli/ServiceCommandSupport.js +1 -1
- package/bin/cli/ServiceCommandSupport.js.map +1 -1
- package/bin/cli/ServiceScheduleCommand.d.ts +1 -1
- package/bin/cli/ServiceScheduleCommand.d.ts.map +1 -1
- package/bin/cli/ServiceScheduleCommand.js +2 -2
- package/bin/cli/ServiceScheduleCommand.js.map +1 -1
- package/bin/cli/Services.js +2 -2
- package/bin/cli/Services.js.map +1 -1
- package/bin/cli/Start.d.ts +1 -1
- package/bin/cli/Start.d.ts.map +1 -1
- package/bin/cli/Token.js +1 -1
- package/bin/cli/Token.js.map +1 -1
- package/bin/cli/Update.js +1 -1
- package/bin/cli/Update.js.map +1 -1
- package/bin/console/AgentStatusApiRoutes.d.ts +1 -1
- package/bin/console/AgentStatusApiRoutes.d.ts.map +1 -1
- package/bin/console/ChannelAccountApiRoutes.js +2 -2
- package/bin/console/ChannelAccountApiRoutes.js.map +1 -1
- package/bin/console/ConsoleGateway.js +1 -1
- package/bin/console/ConsoleGateway.js.map +1 -1
- package/bin/console/ConsoleGatewayRoutes.d.ts +2 -2
- package/bin/console/ConsoleGatewayRoutes.d.ts.map +1 -1
- package/bin/console/EnvApiRoutes.js +1 -1
- package/bin/console/EnvApiRoutes.js.map +1 -1
- package/bin/console/InlineInstantRoutes.d.ts +2 -2
- package/bin/console/InlineInstantRoutes.d.ts.map +1 -1
- package/bin/console/InlineInstantSessionService.d.ts +3 -3
- package/bin/console/InlineInstantSessionService.d.ts.map +1 -1
- package/bin/console/InlineInstantSessionService.js +8 -8
- package/bin/console/InlineInstantSessionService.js.map +1 -1
- package/bin/console/InlineInstantSystemComposer.d.ts +1 -1
- package/bin/console/InlineInstantSystemComposer.d.ts.map +1 -1
- package/bin/console/InlineInstantSystemComposer.js +3 -3
- package/bin/console/InlineInstantSystemComposer.js.map +1 -1
- package/bin/console/ModelApiRoutes.d.ts +1 -1
- package/bin/console/ModelApiRoutes.d.ts.map +1 -1
- package/bin/console/ModelApiRoutes.js +1 -1
- package/bin/console/ModelApiRoutes.js.map +1 -1
- package/bin/console/ModelPoolService.js +2 -2
- package/bin/console/ModelPoolService.js.map +1 -1
- package/bin/console/PluginApiRoutes.d.ts +1 -1
- package/bin/console/PluginApiRoutes.d.ts.map +1 -1
- package/bin/console/PluginApiRoutes.js +4 -4
- package/bin/console/PluginApiRoutes.js.map +1 -1
- package/bin/console/gateway/AgentActions.d.ts +2 -2
- package/bin/console/gateway/AgentActions.d.ts.map +1 -1
- package/bin/console/gateway/AgentActions.js +1 -2
- package/bin/console/gateway/AgentActions.js.map +1 -1
- package/bin/console/gateway/AgentCatalog.d.ts +1 -1
- package/bin/console/gateway/AgentCatalog.d.ts.map +1 -1
- package/bin/console/gateway/AgentCatalog.js +2 -2
- package/bin/console/gateway/AgentCatalog.js.map +1 -1
- package/bin/constants/DowncitySchema.d.ts +3 -0
- package/bin/constants/DowncitySchema.d.ts.map +1 -0
- package/bin/constants/DowncitySchema.js.map +1 -0
- package/bin/daemon/Api.d.ts +1 -1
- package/bin/daemon/Api.d.ts.map +1 -1
- package/bin/daemon/CliArgs.d.ts +1 -1
- package/bin/daemon/CliArgs.d.ts.map +1 -1
- package/bin/daemon/Manager.d.ts +1 -1
- package/bin/daemon/Manager.d.ts.map +1 -1
- package/bin/daemon/Manager.js +1 -1
- package/bin/daemon/Manager.js.map +1 -1
- package/bin/http/auth/AuthMiddleware.d.ts +1 -1
- package/bin/http/auth/AuthMiddleware.d.ts.map +1 -1
- package/bin/http/auth/AuthService.d.ts +2 -2
- package/bin/http/auth/AuthService.d.ts.map +1 -1
- package/bin/http/auth/AuthService.js +1 -1
- package/bin/http/auth/AuthService.js.map +1 -1
- package/bin/http/auth/AuthStore.d.ts +3 -3
- package/bin/http/auth/AuthStore.d.ts.map +1 -1
- package/bin/http/auth/AuthStore.js +4 -4
- package/bin/http/auth/AuthStore.js.map +1 -1
- package/bin/http/auth/RoutePolicy.d.ts +1 -1
- package/bin/http/auth/RoutePolicy.d.ts.map +1 -1
- package/bin/http/dashboard/AuthDashboardService.d.ts +3 -3
- package/bin/http/dashboard/AuthDashboardService.d.ts.map +1 -1
- package/bin/http/dashboard/AuthDashboardService.js +1 -1
- package/bin/http/dashboard/AuthDashboardService.js.map +1 -1
- package/bin/http/dashboard/ExecuteInput.d.ts +1 -1
- package/bin/http/dashboard/ExecuteInput.d.ts.map +1 -1
- package/bin/http/dashboard/ExecuteInput.js +1 -1
- package/bin/http/dashboard/ExecuteInput.js.map +1 -1
- package/bin/http/dashboard/MessageTimeline.d.ts +2 -2
- package/bin/http/dashboard/MessageTimeline.d.ts.map +1 -1
- package/bin/http/dashboard/MessageTimeline.js +2 -2
- package/bin/http/dashboard/MessageTimeline.js.map +1 -1
- package/bin/http/dashboard/SessionSummaryStore.d.ts +2 -2
- package/bin/http/dashboard/SessionSummaryStore.d.ts.map +1 -1
- package/bin/http/dashboard/SessionSummaryStore.js +1 -1
- package/bin/http/dashboard/SessionSummaryStore.js.map +1 -1
- package/bin/http/dashboard/TaskStore.d.ts +1 -1
- package/bin/http/dashboard/TaskStore.d.ts.map +1 -1
- package/bin/http/dashboard/TaskStore.js +1 -1
- package/bin/http/dashboard/TaskStore.js.map +1 -1
- package/bin/model/ModelCommand.d.ts +1 -1
- package/bin/model/ModelCommand.d.ts.map +1 -1
- package/bin/model/ModelManager.d.ts +1 -1
- package/bin/model/ModelManager.d.ts.map +1 -1
- package/bin/registry/AgentHostRuntime.d.ts +1 -1
- package/bin/registry/AgentHostRuntime.d.ts.map +1 -1
- package/bin/registry/AgentHostRuntime.js +1 -1
- package/bin/registry/AgentHostRuntime.js.map +1 -1
- package/bin/registry/CityRegistry.d.ts +1 -1
- package/bin/registry/CityRegistry.d.ts.map +1 -1
- package/bin/registry/PluginRuntime.d.ts +1 -1
- package/bin/registry/PluginRuntime.d.ts.map +1 -1
- package/bin/rpc/Paths.js +1 -1
- package/bin/rpc/Paths.js.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/{shared/utils/store → store}/StoreChannelAccountRepository.d.ts +1 -1
- package/bin/store/StoreChannelAccountRepository.d.ts.map +1 -0
- package/bin/store/StoreChannelAccountRepository.js.map +1 -0
- package/bin/{shared/utils/store → store}/StoreEnvRepository.d.ts +1 -1
- package/bin/store/StoreEnvRepository.d.ts.map +1 -0
- package/bin/store/StoreEnvRepository.js.map +1 -0
- package/bin/{shared/utils/store → store}/StoreModelRepository.d.ts +1 -1
- package/bin/store/StoreModelRepository.d.ts.map +1 -0
- package/bin/store/StoreModelRepository.js.map +1 -0
- package/bin/store/StoreSchema.d.ts.map +1 -0
- package/bin/{shared/utils/store → store}/StoreSchema.js +0 -195
- package/bin/store/StoreSchema.js.map +1 -0
- package/bin/store/StoreSecureSettings.d.ts.map +1 -0
- package/bin/store/StoreSecureSettings.js.map +1 -0
- package/bin/{shared/utils/store → store}/StoreShared.d.ts +2 -2
- package/bin/store/StoreShared.d.ts.map +1 -0
- package/bin/{shared/utils/store → store}/StoreShared.js +1 -1
- package/bin/store/StoreShared.js.map +1 -0
- package/bin/store/crypto.d.ts.map +1 -0
- package/bin/{shared/utils/store → store}/crypto.js +1 -1
- package/bin/store/crypto.js.map +1 -0
- package/bin/{shared/utils/store → store}/index.d.ts +1 -17
- package/bin/store/index.d.ts.map +1 -0
- package/bin/{shared/utils/store → store}/index.js +2 -25
- package/bin/store/index.js.map +1 -0
- package/bin/store/schema.d.ts.map +1 -0
- package/bin/store/schema.js.map +1 -0
- package/bin/types/chat/ChatSession.d.ts +2 -2
- package/bin/types/chat/ChatSession.d.ts.map +1 -1
- package/bin/types/sandbox/SandboxRuntime.d.ts +2 -2
- package/bin/types/sandbox/SandboxRuntime.d.ts.map +1 -1
- package/bin/types/store/Store.d.ts +26 -0
- package/bin/types/store/Store.d.ts.map +1 -0
- package/bin/types/store/Store.js +9 -0
- package/bin/types/store/Store.js.map +1 -0
- package/bin/types/task/TaskRunner.d.ts +5 -5
- package/bin/types/task/TaskRunner.d.ts.map +1 -1
- package/bin/utils/Id.d.ts.map +1 -0
- package/bin/utils/Id.js.map +1 -0
- package/bin/{shared/utils → utils}/cli/CliOutput.d.ts +1 -1
- package/bin/utils/cli/CliOutput.d.ts.map +1 -0
- package/bin/{shared/utils → utils}/cli/CliOutput.js +1 -1
- package/bin/utils/cli/CliOutput.js.map +1 -0
- package/bin/utils/cli/Spinner.d.ts.map +1 -0
- package/bin/utils/cli/Spinner.js.map +1 -0
- package/bin/{shared/utils/storage/index.d.ts → utils/storage.d.ts} +2 -2
- package/bin/utils/storage.d.ts.map +1 -0
- package/bin/{shared/utils/storage/index.js → utils/storage.js} +1 -1
- package/bin/utils/storage.js.map +1 -0
- package/package.json +2 -2
- package/public/app.js +35 -35
- package/src/cli/AgentChat.ts +3 -3
- package/src/cli/AgentHistory.ts +1 -1
- package/src/cli/AgentManager.ts +4 -4
- package/src/cli/AgentReset.ts +1 -1
- package/src/cli/AgentSelection.ts +2 -2
- package/src/cli/ChatAuth.ts +26 -9
- package/src/cli/ChatManager.ts +3 -3
- package/src/cli/Config.ts +2 -2
- package/src/cli/Console.ts +1 -1
- package/src/cli/ConsoleInit.ts +3 -3
- package/src/cli/Env.ts +3 -3
- package/src/cli/Index.ts +2 -2
- package/src/cli/IndexAgentCommand.ts +2 -2
- package/src/cli/IndexConsoleProcess.ts +4 -4
- package/src/cli/IndexConsoleStatus.ts +1 -1
- package/src/cli/Init.ts +3 -3
- package/src/cli/ModelCommandShared.ts +3 -3
- package/src/cli/ModelCreateCommand.ts +2 -2
- package/src/cli/ModelManageCommand.ts +2 -2
- package/src/cli/ModelManager.ts +2 -2
- package/src/cli/ModelReadCommand.ts +2 -2
- package/src/cli/ModelSupport.ts +2 -2
- package/src/cli/Plugins.ts +6 -6
- package/src/cli/PublicHostEnv.ts +1 -1
- package/src/cli/Restart.ts +1 -1
- package/src/cli/Run.ts +7 -12
- package/src/{service/ServiceCommand.ts → cli/ServiceActionCommands.ts} +10 -9
- package/src/cli/ServiceCommandRemote.ts +3 -3
- package/src/cli/ServiceCommandSupport.ts +4 -4
- package/src/cli/ServiceScheduleCommand.ts +3 -3
- package/src/cli/Services.ts +4 -4
- package/src/cli/Start.ts +1 -1
- package/src/cli/Token.ts +2 -2
- package/src/cli/Update.ts +1 -1
- package/src/console/AgentStatusApiRoutes.ts +1 -1
- package/src/console/ChannelAccountApiRoutes.ts +2 -2
- package/src/console/ConsoleGateway.ts +3 -3
- package/src/console/ConsoleGatewayRoutes.ts +2 -2
- package/src/console/EnvApiRoutes.ts +1 -1
- package/src/console/InlineInstantRoutes.ts +2 -2
- package/src/console/InlineInstantSessionService.ts +14 -13
- package/src/console/InlineInstantSystemComposer.ts +3 -3
- package/src/console/ModelApiRoutes.ts +2 -2
- package/src/console/ModelPoolService.ts +3 -3
- package/src/console/PluginApiRoutes.ts +7 -7
- package/src/console/gateway/AgentActions.ts +5 -5
- package/src/console/gateway/AgentCatalog.ts +5 -5
- package/src/{shared/constants → constants}/DowncitySchema.ts +1 -1
- package/src/daemon/Api.ts +1 -1
- package/src/daemon/CliArgs.ts +1 -1
- package/src/daemon/Client.ts +1 -1
- package/src/daemon/Manager.ts +1 -1
- package/src/http/auth/AuthMiddleware.ts +1 -1
- package/src/http/auth/AuthService.ts +3 -3
- package/src/http/auth/AuthStore.ts +6 -6
- package/src/http/auth/RoutePolicy.ts +2 -2
- package/src/http/dashboard/AuthDashboardService.ts +5 -5
- package/src/http/dashboard/ExecuteInput.ts +2 -2
- package/src/http/dashboard/MessageTimeline.ts +4 -4
- package/src/http/dashboard/SessionSummaryStore.ts +5 -4
- package/src/http/dashboard/TaskStore.ts +2 -2
- package/src/model/ModelCommand.ts +1 -1
- package/src/model/ModelManager.ts +1 -1
- package/src/registry/AgentHostRuntime.ts +3 -3
- package/src/registry/CityRegistry.ts +1 -1
- package/src/registry/PluginRuntime.ts +1 -1
- package/src/rpc/Client.ts +1 -1
- package/src/rpc/Paths.ts +1 -1
- package/src/sandbox/SandboxConfigResolver.ts +1 -1
- package/src/sandbox/SandboxRunner.ts +1 -1
- package/src/{shared/utils/store → store}/StoreChannelAccountRepository.ts +1 -1
- package/src/{shared/utils/store → store}/StoreEnvRepository.ts +1 -1
- package/src/{shared/utils/store → store}/StoreModelRepository.ts +1 -1
- package/src/{shared/utils/store → store}/StoreSchema.ts +0 -223
- package/src/{shared/utils/store → store}/StoreShared.ts +2 -2
- package/src/{shared/utils/store → store}/crypto.ts +1 -1
- package/src/{shared/utils/store → store}/index.ts +3 -38
- package/src/types/chat/ChatSession.ts +2 -2
- package/src/types/sandbox/SandboxRuntime.ts +2 -2
- package/src/types/store/Store.ts +27 -0
- package/src/types/task/TaskRunner.ts +5 -5
- package/src/{shared/utils/storage/index.ts → utils/storage.ts} +1 -1
- package/tsconfig.json +1 -4
- package/bin/agent/AgentContext.d.ts +0 -23
- package/bin/agent/AgentContext.d.ts.map +0 -1
- package/bin/agent/AgentContext.js +0 -148
- package/bin/agent/AgentContext.js.map +0 -1
- package/bin/agent/AgentRuntime.d.ts +0 -32
- package/bin/agent/AgentRuntime.d.ts.map +0 -1
- package/bin/agent/AgentRuntime.js +0 -277
- package/bin/agent/AgentRuntime.js.map +0 -1
- package/bin/agent/AgentRuntimeState.d.ts +0 -42
- package/bin/agent/AgentRuntimeState.d.ts.map +0 -1
- package/bin/agent/AgentRuntimeState.js +0 -116
- package/bin/agent/AgentRuntimeState.js.map +0 -1
- package/bin/agent/project/AgentInitializer.d.ts +0 -38
- package/bin/agent/project/AgentInitializer.d.ts.map +0 -1
- package/bin/agent/project/AgentInitializer.js +0 -308
- package/bin/agent/project/AgentInitializer.js.map +0 -1
- package/bin/agent/project/ProjectExecutionBinding.d.ts +0 -27
- package/bin/agent/project/ProjectExecutionBinding.d.ts.map +0 -1
- package/bin/agent/project/ProjectExecutionBinding.js +0 -47
- package/bin/agent/project/ProjectExecutionBinding.js.map +0 -1
- package/bin/config/Config.d.ts +0 -32
- package/bin/config/Config.d.ts.map +0 -1
- package/bin/config/Config.js +0 -217
- package/bin/config/Config.js.map +0 -1
- package/bin/console/ChannelAccountService.d.ts +0 -9
- package/bin/console/ChannelAccountService.d.ts.map +0 -1
- package/bin/console/ChannelAccountService.js +0 -9
- package/bin/console/ChannelAccountService.js.map +0 -1
- package/bin/daemon/ProjectSetup.d.ts +0 -22
- 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/Server.d.ts +0 -39
- package/bin/http/Server.d.ts.map +0 -1
- package/bin/http/Server.js +0 -122
- package/bin/http/Server.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 -129
- package/bin/http/dashboard/ExecuteBySession.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/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 -323
- package/bin/http/dashboard/SessionRoutes.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/execute/execute.d.ts +0 -14
- package/bin/http/execute/execute.d.ts.map +0 -1
- package/bin/http/execute/execute.js +0 -90
- package/bin/http/execute/execute.js.map +0 -1
- package/bin/http/health/health.d.ts +0 -14
- package/bin/http/health/health.d.ts.map +0 -1
- package/bin/http/health/health.js +0 -24
- package/bin/http/health/health.js.map +0 -1
- package/bin/http/plugins/plugins.d.ts +0 -14
- package/bin/http/plugins/plugins.d.ts.map +0 -1
- package/bin/http/plugins/plugins.js +0 -55
- package/bin/http/plugins/plugins.js.map +0 -1
- package/bin/http/services/services.d.ts +0 -21
- package/bin/http/services/services.d.ts.map +0 -1
- package/bin/http/services/services.js +0 -79
- package/bin/http/services/services.js.map +0 -1
- package/bin/http/static/static.d.ts +0 -14
- package/bin/http/static/static.d.ts.map +0 -1
- package/bin/http/static/static.js +0 -97
- package/bin/http/static/static.js.map +0 -1
- package/bin/model/CreateModel.d.ts +0 -30
- package/bin/model/CreateModel.d.ts.map +0 -1
- package/bin/model/CreateModel.js +0 -305
- package/bin/model/CreateModel.js.map +0 -1
- package/bin/plugin/Activation.d.ts +0 -15
- package/bin/plugin/Activation.d.ts.map +0 -1
- package/bin/plugin/Activation.js +0 -20
- package/bin/plugin/Activation.js.map +0 -1
- package/bin/plugin/Catalog.d.ts +0 -42
- package/bin/plugin/Catalog.d.ts.map +0 -1
- package/bin/plugin/Catalog.js +0 -92
- package/bin/plugin/Catalog.js.map +0 -1
- package/bin/plugin/HookRegistry.d.ts +0 -68
- package/bin/plugin/HookRegistry.d.ts.map +0 -1
- package/bin/plugin/HookRegistry.js +0 -186
- package/bin/plugin/HookRegistry.js.map +0 -1
- package/bin/plugin/HttpRoutes.d.ts +0 -22
- package/bin/plugin/HttpRoutes.d.ts.map +0 -1
- package/bin/plugin/HttpRoutes.js +0 -37
- package/bin/plugin/HttpRoutes.js.map +0 -1
- package/bin/plugin/Lifecycle.d.ts +0 -33
- package/bin/plugin/Lifecycle.d.ts.map +0 -1
- package/bin/plugin/Lifecycle.js +0 -102
- package/bin/plugin/Lifecycle.js.map +0 -1
- package/bin/plugin/LocalExecution.d.ts +0 -32
- package/bin/plugin/LocalExecution.d.ts.map +0 -1
- package/bin/plugin/LocalExecution.js +0 -127
- package/bin/plugin/LocalExecution.js.map +0 -1
- package/bin/plugin/PluginCommand.d.ts +0 -13
- package/bin/plugin/PluginCommand.d.ts.map +0 -1
- package/bin/plugin/PluginCommand.js +0 -189
- package/bin/plugin/PluginCommand.js.map +0 -1
- package/bin/plugin/PluginManager.d.ts +0 -24
- package/bin/plugin/PluginManager.d.ts.map +0 -1
- package/bin/plugin/PluginManager.js +0 -62
- package/bin/plugin/PluginManager.js.map +0 -1
- package/bin/plugin/PluginRegistry.d.ts +0 -66
- package/bin/plugin/PluginRegistry.d.ts.map +0 -1
- package/bin/plugin/PluginRegistry.js +0 -184
- package/bin/plugin/PluginRegistry.js.map +0 -1
- package/bin/plugin/Plugins.d.ts +0 -20
- package/bin/plugin/Plugins.d.ts.map +0 -1
- package/bin/plugin/Plugins.js +0 -33
- package/bin/plugin/Plugins.js.map +0 -1
- package/bin/plugin/ProjectConfigStore.d.ts +0 -30
- package/bin/plugin/ProjectConfigStore.d.ts.map +0 -1
- package/bin/plugin/ProjectConfigStore.js +0 -38
- package/bin/plugin/ProjectConfigStore.js.map +0 -1
- package/bin/plugins/asr/Dependency.d.ts +0 -77
- package/bin/plugins/asr/Dependency.d.ts.map +0 -1
- package/bin/plugins/asr/Dependency.js +0 -238
- package/bin/plugins/asr/Dependency.js.map +0 -1
- package/bin/plugins/asr/ModelCatalog.d.ts +0 -29
- package/bin/plugins/asr/ModelCatalog.d.ts.map +0 -1
- package/bin/plugins/asr/ModelCatalog.js +0 -25
- package/bin/plugins/asr/ModelCatalog.js.map +0 -1
- package/bin/plugins/asr/Plugin.d.ts +0 -14
- package/bin/plugins/asr/Plugin.d.ts.map +0 -1
- package/bin/plugins/asr/Plugin.js +0 -586
- package/bin/plugins/asr/Plugin.js.map +0 -1
- package/bin/plugins/auth/Plugin.d.ts +0 -14
- package/bin/plugins/auth/Plugin.d.ts.map +0 -1
- package/bin/plugins/auth/Plugin.js +0 -180
- package/bin/plugins/auth/Plugin.js.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts +0 -42
- package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationConfig.js +0 -264
- package/bin/plugins/auth/runtime/AuthorizationConfig.js.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts +0 -31
- package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationPolicy.js +0 -122
- package/bin/plugins/auth/runtime/AuthorizationPolicy.js.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationStore.d.ts +0 -29
- package/bin/plugins/auth/runtime/AuthorizationStore.d.ts.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationStore.js +0 -179
- package/bin/plugins/auth/runtime/AuthorizationStore.js.map +0 -1
- package/bin/plugins/skill/Action.d.ts +0 -34
- package/bin/plugins/skill/Action.d.ts.map +0 -1
- package/bin/plugins/skill/Action.js +0 -122
- package/bin/plugins/skill/Action.js.map +0 -1
- package/bin/plugins/skill/Command.d.ts +0 -37
- package/bin/plugins/skill/Command.d.ts.map +0 -1
- package/bin/plugins/skill/Command.js +0 -70
- package/bin/plugins/skill/Command.js.map +0 -1
- package/bin/plugins/skill/Config.d.ts +0 -18
- package/bin/plugins/skill/Config.d.ts.map +0 -1
- package/bin/plugins/skill/Config.js +0 -37
- package/bin/plugins/skill/Config.js.map +0 -1
- package/bin/plugins/skill/PROMPT.txt +0 -10
- package/bin/plugins/skill/Plugin.d.ts +0 -14
- package/bin/plugins/skill/Plugin.d.ts.map +0 -1
- package/bin/plugins/skill/Plugin.js +0 -315
- package/bin/plugins/skill/Plugin.js.map +0 -1
- package/bin/plugins/skill/runtime/Discovery.d.ts +0 -25
- package/bin/plugins/skill/runtime/Discovery.d.ts.map +0 -1
- package/bin/plugins/skill/runtime/Discovery.js +0 -130
- package/bin/plugins/skill/runtime/Discovery.js.map +0 -1
- package/bin/plugins/skill/runtime/Frontmatter.d.ts +0 -6
- package/bin/plugins/skill/runtime/Frontmatter.d.ts.map +0 -1
- package/bin/plugins/skill/runtime/Frontmatter.js +0 -12
- package/bin/plugins/skill/runtime/Frontmatter.js.map +0 -1
- package/bin/plugins/skill/runtime/Paths.d.ts +0 -16
- package/bin/plugins/skill/runtime/Paths.d.ts.map +0 -1
- package/bin/plugins/skill/runtime/Paths.js +0 -111
- package/bin/plugins/skill/runtime/Paths.js.map +0 -1
- package/bin/plugins/skill/runtime/Prompt.d.ts +0 -19
- package/bin/plugins/skill/runtime/Prompt.d.ts.map +0 -1
- package/bin/plugins/skill/runtime/Prompt.js +0 -54
- package/bin/plugins/skill/runtime/Prompt.js.map +0 -1
- package/bin/plugins/skill/runtime/Store.d.ts +0 -25
- package/bin/plugins/skill/runtime/Store.d.ts.map +0 -1
- package/bin/plugins/skill/runtime/Store.js +0 -81
- package/bin/plugins/skill/runtime/Store.js.map +0 -1
- package/bin/plugins/skill/runtime/SystemProvider.d.ts +0 -24
- package/bin/plugins/skill/runtime/SystemProvider.d.ts.map +0 -1
- package/bin/plugins/skill/runtime/SystemProvider.js +0 -33
- package/bin/plugins/skill/runtime/SystemProvider.js.map +0 -1
- package/bin/plugins/skill/runtime/Types.d.ts +0 -21
- package/bin/plugins/skill/runtime/Types.d.ts.map +0 -1
- package/bin/plugins/skill/runtime/Types.js +0 -2
- package/bin/plugins/skill/runtime/Types.js.map +0 -1
- package/bin/plugins/skill/runtime/Utils.d.ts +0 -4
- package/bin/plugins/skill/runtime/Utils.d.ts.map +0 -1
- package/bin/plugins/skill/runtime/Utils.js +0 -29
- package/bin/plugins/skill/runtime/Utils.js.map +0 -1
- package/bin/plugins/tts/Dependency.d.ts +0 -90
- package/bin/plugins/tts/Dependency.d.ts.map +0 -1
- package/bin/plugins/tts/Dependency.js +0 -344
- package/bin/plugins/tts/Dependency.js.map +0 -1
- package/bin/plugins/tts/Plugin.d.ts +0 -13
- package/bin/plugins/tts/Plugin.d.ts.map +0 -1
- package/bin/plugins/tts/Plugin.js +0 -524
- package/bin/plugins/tts/Plugin.js.map +0 -1
- package/bin/plugins/tts/runtime/Catalog.d.ts +0 -21
- package/bin/plugins/tts/runtime/Catalog.d.ts.map +0 -1
- package/bin/plugins/tts/runtime/Catalog.js +0 -90
- package/bin/plugins/tts/runtime/Catalog.js.map +0 -1
- package/bin/plugins/tts/runtime/DependencyInstaller.d.ts +0 -143
- package/bin/plugins/tts/runtime/DependencyInstaller.d.ts.map +0 -1
- package/bin/plugins/tts/runtime/DependencyInstaller.js +0 -261
- package/bin/plugins/tts/runtime/DependencyInstaller.js.map +0 -1
- package/bin/plugins/tts/runtime/Installer.d.ts +0 -89
- package/bin/plugins/tts/runtime/Installer.d.ts.map +0 -1
- package/bin/plugins/tts/runtime/Installer.js +0 -188
- package/bin/plugins/tts/runtime/Installer.js.map +0 -1
- package/bin/plugins/tts/runtime/Paths.d.ts +0 -20
- package/bin/plugins/tts/runtime/Paths.d.ts.map +0 -1
- package/bin/plugins/tts/runtime/Paths.js +0 -32
- package/bin/plugins/tts/runtime/Paths.js.map +0 -1
- package/bin/plugins/tts/runtime/Synthesizer.d.ts +0 -44
- package/bin/plugins/tts/runtime/Synthesizer.d.ts.map +0 -1
- package/bin/plugins/tts/runtime/Synthesizer.js +0 -363
- package/bin/plugins/tts/runtime/Synthesizer.js.map +0 -1
- package/bin/plugins/voice/Dependency.d.ts +0 -77
- package/bin/plugins/voice/Dependency.d.ts.map +0 -1
- package/bin/plugins/voice/Dependency.js +0 -237
- package/bin/plugins/voice/Dependency.js.map +0 -1
- package/bin/plugins/voice/ModelCatalog.d.ts +0 -29
- package/bin/plugins/voice/ModelCatalog.d.ts.map +0 -1
- package/bin/plugins/voice/ModelCatalog.js +0 -25
- package/bin/plugins/voice/ModelCatalog.js.map +0 -1
- package/bin/plugins/voice/Plugin.d.ts +0 -14
- package/bin/plugins/voice/Plugin.d.ts.map +0 -1
- package/bin/plugins/voice/Plugin.js +0 -546
- package/bin/plugins/voice/Plugin.js.map +0 -1
- package/bin/plugins/voice/runtime/Catalog.d.ts +0 -18
- package/bin/plugins/voice/runtime/Catalog.d.ts.map +0 -1
- package/bin/plugins/voice/runtime/Catalog.js +0 -61
- package/bin/plugins/voice/runtime/Catalog.js.map +0 -1
- package/bin/plugins/voice/runtime/DependencyInstaller.d.ts +0 -145
- package/bin/plugins/voice/runtime/DependencyInstaller.d.ts.map +0 -1
- package/bin/plugins/voice/runtime/DependencyInstaller.js +0 -309
- package/bin/plugins/voice/runtime/DependencyInstaller.js.map +0 -1
- package/bin/plugins/voice/runtime/Installer.d.ts +0 -94
- package/bin/plugins/voice/runtime/Installer.d.ts.map +0 -1
- package/bin/plugins/voice/runtime/Installer.js +0 -200
- package/bin/plugins/voice/runtime/Installer.js.map +0 -1
- package/bin/plugins/voice/runtime/Paths.d.ts +0 -8
- package/bin/plugins/voice/runtime/Paths.d.ts.map +0 -1
- package/bin/plugins/voice/runtime/Paths.js +0 -26
- package/bin/plugins/voice/runtime/Paths.js.map +0 -1
- package/bin/plugins/voice/runtime/Transcriber.d.ts +0 -57
- package/bin/plugins/voice/runtime/Transcriber.d.ts.map +0 -1
- package/bin/plugins/voice/runtime/Transcriber.js +0 -329
- package/bin/plugins/voice/runtime/Transcriber.js.map +0 -1
- package/bin/plugins/web/Dependency.d.ts +0 -10
- package/bin/plugins/web/Dependency.d.ts.map +0 -1
- package/bin/plugins/web/Dependency.js +0 -10
- package/bin/plugins/web/Dependency.js.map +0 -1
- package/bin/plugins/web/PROMPT.agent-browser.txt +0 -17
- package/bin/plugins/web/PROMPT.txt +0 -33
- package/bin/plugins/web/PROMPT.web-access.txt +0 -13
- package/bin/plugins/web/Plugin.d.ts +0 -13
- package/bin/plugins/web/Plugin.d.ts.map +0 -1
- package/bin/plugins/web/Plugin.js +0 -482
- package/bin/plugins/web/Plugin.js.map +0 -1
- package/bin/plugins/web/runtime/Config.d.ts +0 -21
- package/bin/plugins/web/runtime/Config.d.ts.map +0 -1
- package/bin/plugins/web/runtime/Config.js +0 -79
- package/bin/plugins/web/runtime/Config.js.map +0 -1
- package/bin/plugins/web/runtime/Source.d.ts +0 -29
- package/bin/plugins/web/runtime/Source.d.ts.map +0 -1
- package/bin/plugins/web/runtime/Source.js +0 -215
- package/bin/plugins/web/runtime/Source.js.map +0 -1
- package/bin/plugins/workboard/Plugin.d.ts +0 -13
- package/bin/plugins/workboard/Plugin.d.ts.map +0 -1
- package/bin/plugins/workboard/Plugin.js +0 -71
- package/bin/plugins/workboard/Plugin.js.map +0 -1
- package/bin/plugins/workboard/runtime/Collector.d.ts +0 -14
- package/bin/plugins/workboard/runtime/Collector.d.ts.map +0 -1
- package/bin/plugins/workboard/runtime/Collector.js +0 -62
- package/bin/plugins/workboard/runtime/Collector.js.map +0 -1
- package/bin/plugins/workboard/runtime/Normalizer.d.ts +0 -61
- package/bin/plugins/workboard/runtime/Normalizer.d.ts.map +0 -1
- package/bin/plugins/workboard/runtime/Normalizer.js +0 -172
- package/bin/plugins/workboard/runtime/Normalizer.js.map +0 -1
- package/bin/plugins/workboard/runtime/Store.d.ts +0 -48
- package/bin/plugins/workboard/runtime/Store.d.ts.map +0 -1
- package/bin/plugins/workboard/runtime/Store.js +0 -84
- package/bin/plugins/workboard/runtime/Store.js.map +0 -1
- package/bin/plugins/workboard/types/Workboard.d.ts +0 -150
- package/bin/plugins/workboard/types/Workboard.d.ts.map +0 -1
- package/bin/plugins/workboard/types/Workboard.js +0 -9
- package/bin/plugins/workboard/types/Workboard.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 +0 -31
- 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 -202
- 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 +0 -12
- 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/ServiceCommand.d.ts.map +0 -1
- package/bin/service/ServiceCommand.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 +0 -9
- 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/service/schedule/Executor.d.ts +0 -17
- package/bin/service/schedule/Executor.d.ts.map +0 -1
- package/bin/service/schedule/Executor.js +0 -48
- package/bin/service/schedule/Executor.js.map +0 -1
- package/bin/service/schedule/Runtime.d.ts +0 -17
- package/bin/service/schedule/Runtime.d.ts.map +0 -1
- package/bin/service/schedule/Runtime.js +0 -64
- package/bin/service/schedule/Runtime.js.map +0 -1
- package/bin/service/schedule/Schema.d.ts +0 -171
- package/bin/service/schedule/Schema.d.ts.map +0 -1
- package/bin/service/schedule/Schema.js +0 -26
- package/bin/service/schedule/Schema.js.map +0 -1
- package/bin/service/schedule/Store.d.ts +0 -94
- package/bin/service/schedule/Store.d.ts.map +0 -1
- package/bin/service/schedule/Store.js +0 -266
- package/bin/service/schedule/Store.js.map +0 -1
- package/bin/service/schedule/Time.d.ts +0 -31
- package/bin/service/schedule/Time.d.ts.map +0 -1
- package/bin/service/schedule/Time.js +0 -107
- package/bin/service/schedule/Time.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 +0 -9
- package/bin/services/chat/Index.d.ts.map +0 -1
- package/bin/services/chat/Index.js +0 -9
- package/bin/services/chat/Index.js.map +0 -1
- package/bin/services/chat/PROMPT.direct.txt +0 -55
- package/bin/services/chat/accounts/ChannelAccountService.d.ts +0 -60
- package/bin/services/chat/accounts/ChannelAccountService.d.ts.map +0 -1
- package/bin/services/chat/accounts/ChannelAccountService.js +0 -285
- package/bin/services/chat/accounts/ChannelAccountService.js.map +0 -1
- package/bin/services/chat/channels/BaseChatChannel.d.ts +0 -201
- package/bin/services/chat/channels/BaseChatChannel.d.ts.map +0 -1
- package/bin/services/chat/channels/BaseChatChannel.js +0 -294
- 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 +0 -19
- 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 +0 -147
- 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 -458
- 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 +0 -43
- 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 +0 -316
- 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 +0 -299
- 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 +0 -139
- 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 +0 -222
- package/bin/services/chat/channels/feishu/InboundAttachment.js.map +0 -1
- package/bin/services/chat/channels/feishu/PROMPT.direct.txt +0 -5
- 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 +0 -413
- 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 +0 -56
- 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 +0 -112
- 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/PROMPT.direct.txt +0 -11
- 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 -485
- 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 +0 -67
- 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 +0 -186
- 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 +0 -120
- 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 +0 -137
- 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 +0 -235
- 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 +0 -108
- package/bin/services/chat/channels/qq/QQInboundDedupe.js.map +0 -1
- package/bin/services/chat/channels/qq/QQSendSupport.d.ts +0 -20
- package/bin/services/chat/channels/qq/QQSendSupport.d.ts.map +0 -1
- package/bin/services/chat/channels/qq/QQSendSupport.js +0 -86
- 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 +0 -299
- 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 +0 -306
- 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 -504
- 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 +0 -71
- 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 +0 -45
- package/bin/services/chat/channels/telegram/Handlers.js.map +0 -1
- package/bin/services/chat/channels/telegram/PROMPT.direct.txt +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 +0 -57
- package/bin/services/chat/channels/telegram/ReplyContext.js.map +0 -1
- package/bin/services/chat/channels/telegram/Shared.d.ts +0 -221
- 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 +0 -27
- package/bin/services/chat/channels/telegram/StateStore.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/StateStore.js +0 -53
- package/bin/services/chat/channels/telegram/StateStore.js.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramInbound.d.ts +0 -46
- package/bin/services/chat/channels/telegram/TelegramInbound.d.ts.map +0 -1
- package/bin/services/chat/channels/telegram/TelegramInbound.js +0 -148
- 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 +0 -366
- 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 +0 -12
- package/bin/services/chat/runtime/ChatChannelFacade.d.ts.map +0 -1
- package/bin/services/chat/runtime/ChatChannelFacade.js +0 -12
- 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 +0 -233
- 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 +0 -143
- 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 +0 -52
- 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 +0 -168
- 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 +0 -130
- 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 +0 -435
- 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 +0 -101
- 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 +0 -130
- 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 +0 -26
- 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 +0 -411
- 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 +0 -147
- 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 +0 -78
- package/bin/services/chat/runtime/PluginPoints.d.ts.map +0 -1
- package/bin/services/chat/runtime/PluginPoints.js +0 -78
- 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 +0 -40
- 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 +0 -74
- 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 +0 -102
- 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 +0 -73
- 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 +0 -9
- package/bin/services/chat/types/BotInfo.js.map +0 -1
- package/bin/services/chat/types/ChannelAccount.d.ts +0 -226
- package/bin/services/chat/types/ChannelAccount.d.ts.map +0 -1
- package/bin/services/chat/types/ChannelAccount.js +0 -9
- package/bin/services/chat/types/ChannelAccount.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 +0 -9
- package/bin/services/chat/types/ChannelConfiguration.js.map +0 -1
- package/bin/services/chat/types/ChannelContext.d.ts +0 -107
- package/bin/services/chat/types/ChannelContext.d.ts.map +0 -1
- package/bin/services/chat/types/ChannelContext.js +0 -9
- package/bin/services/chat/types/ChannelContext.js.map +0 -1
- package/bin/services/chat/types/ChannelStatus.d.ts +0 -88
- package/bin/services/chat/types/ChannelStatus.d.ts.map +0 -1
- package/bin/services/chat/types/ChannelStatus.js +0 -9
- package/bin/services/chat/types/ChannelStatus.js.map +0 -1
- package/bin/services/chat/types/ChatCommand.d.ts +0 -163
- package/bin/services/chat/types/ChatCommand.d.ts.map +0 -1
- package/bin/services/chat/types/ChatCommand.js +0 -9
- package/bin/services/chat/types/ChatCommand.js.map +0 -1
- package/bin/services/chat/types/ChatDispatcher.d.ts +0 -37
- package/bin/services/chat/types/ChatDispatcher.d.ts.map +0 -1
- package/bin/services/chat/types/ChatDispatcher.js +0 -9
- 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 +0 -9
- package/bin/services/chat/types/ChatHistory.js.map +0 -1
- package/bin/services/chat/types/ChatMessageMarkup.d.ts +0 -144
- package/bin/services/chat/types/ChatMessageMarkup.d.ts.map +0 -1
- package/bin/services/chat/types/ChatMessageMarkup.js +0 -9
- package/bin/services/chat/types/ChatMessageMarkup.js.map +0 -1
- package/bin/services/chat/types/ChatMeta.d.ts +0 -34
- package/bin/services/chat/types/ChatMeta.d.ts.map +0 -1
- package/bin/services/chat/types/ChatMeta.js +0 -10
- 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 +0 -9
- 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 +0 -9
- package/bin/services/chat/types/DirectDispatch.js.map +0 -1
- package/bin/services/chat/types/FeishuAttachment.d.ts +0 -42
- package/bin/services/chat/types/FeishuAttachment.d.ts.map +0 -1
- package/bin/services/chat/types/FeishuAttachment.js +0 -9
- 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 +0 -9
- package/bin/services/chat/types/FeishuInboundAttachment.js.map +0 -1
- package/bin/services/chat/types/FeishuPost.d.ts +0 -287
- package/bin/services/chat/types/FeishuPost.d.ts.map +0 -1
- package/bin/services/chat/types/FeishuPost.js +0 -9
- package/bin/services/chat/types/FeishuPost.js.map +0 -1
- package/bin/services/chat/types/QqInboundDedupe.d.ts +0 -12
- package/bin/services/chat/types/QqInboundDedupe.d.ts.map +0 -1
- package/bin/services/chat/types/QqInboundDedupe.js +0 -2
- package/bin/services/chat/types/QqInboundDedupe.js.map +0 -1
- package/bin/services/chat/types/QqVoice.d.ts +0 -118
- package/bin/services/chat/types/QqVoice.d.ts.map +0 -1
- package/bin/services/chat/types/QqVoice.js +0 -9
- package/bin/services/chat/types/QqVoice.js.map +0 -1
- package/bin/services/chat/types/ReplyContext.d.ts +0 -46
- package/bin/services/chat/types/ReplyContext.d.ts.map +0 -1
- package/bin/services/chat/types/ReplyContext.js +0 -10
- package/bin/services/chat/types/ReplyContext.js.map +0 -1
- package/bin/services/contact/Action.d.ts +0 -9
- package/bin/services/contact/Action.d.ts.map +0 -1
- package/bin/services/contact/Action.js +0 -9
- 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 +0 -8
- package/bin/services/contact/Index.d.ts.map +0 -1
- package/bin/services/contact/Index.js +0 -8
- package/bin/services/contact/Index.js.map +0 -1
- package/bin/services/contact/PROMPT.txt +0 -25
- 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 +0 -83
- 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 +0 -59
- 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 +0 -255
- 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 +0 -98
- package/bin/services/contact/runtime/EndpointNotice.js.map +0 -1
- package/bin/services/contact/runtime/EndpointResolver.d.ts +0 -36
- package/bin/services/contact/runtime/EndpointResolver.d.ts.map +0 -1
- package/bin/services/contact/runtime/EndpointResolver.js +0 -113
- 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 +0 -142
- 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 +0 -317
- 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 +0 -61
- 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 +0 -39
- package/bin/services/contact/runtime/LinkStore.js.map +0 -1
- package/bin/services/contact/runtime/Paths.d.ts +0 -64
- package/bin/services/contact/runtime/Paths.d.ts.map +0 -1
- package/bin/services/contact/runtime/Paths.js +0 -103
- 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 +0 -102
- 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 +0 -185
- package/bin/services/contact/runtime/ShareBundle.js.map +0 -1
- package/bin/services/contact/runtime/SystemProvider.d.ts +0 -12
- package/bin/services/contact/runtime/SystemProvider.d.ts.map +0 -1
- package/bin/services/contact/runtime/SystemProvider.js +0 -21
- package/bin/services/contact/runtime/SystemProvider.js.map +0 -1
- package/bin/services/contact/runtime/Token.d.ts +0 -24
- package/bin/services/contact/runtime/Token.d.ts.map +0 -1
- package/bin/services/contact/runtime/Token.js +0 -36
- 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 +0 -149
- package/bin/services/memory/Action.js.map +0 -1
- package/bin/services/memory/Index.d.ts +0 -9
- package/bin/services/memory/Index.d.ts.map +0 -1
- package/bin/services/memory/Index.js +0 -9
- 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 +0 -63
- 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 +0 -345
- 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 +0 -64
- 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 +0 -262
- 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 +0 -126
- 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 +0 -140
- 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 +0 -9
- package/bin/services/memory/types/Memory.js.map +0 -1
- package/bin/services/shell/Index.d.ts +0 -9
- package/bin/services/shell/Index.d.ts.map +0 -1
- package/bin/services/shell/Index.js +0 -9
- 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 +0 -12
- package/bin/services/shell/runtime/Paths.d.ts.map +0 -1
- package/bin/services/shell/runtime/Paths.js +0 -21
- 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 +0 -216
- package/bin/services/shell/types/ShellService.d.ts.map +0 -1
- package/bin/services/shell/types/ShellService.js +0 -9
- 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 +0 -407
- package/bin/services/task/Action.js.map +0 -1
- package/bin/services/task/Index.d.ts +0 -9
- package/bin/services/task/Index.d.ts.map +0 -1
- package/bin/services/task/Index.js +0 -9
- package/bin/services/task/Index.js.map +0 -1
- package/bin/services/task/PROMPT.txt +0 -237
- 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 +0 -19
- package/bin/services/task/runtime/CronTrigger.d.ts.map +0 -1
- package/bin/services/task/runtime/CronTrigger.js +0 -93
- package/bin/services/task/runtime/CronTrigger.js.map +0 -1
- package/bin/services/task/runtime/Frontmatter.d.ts +0 -13
- package/bin/services/task/runtime/Frontmatter.d.ts.map +0 -1
- package/bin/services/task/runtime/Frontmatter.js +0 -19
- 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 +0 -312
- package/bin/services/task/runtime/Model.js.map +0 -1
- package/bin/services/task/runtime/Paths.d.ts +0 -32
- package/bin/services/task/runtime/Paths.d.ts.map +0 -1
- package/bin/services/task/runtime/Paths.js +0 -103
- 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 +0 -482
- 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 +0 -206
- 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 +0 -271
- 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 +0 -66
- 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 +0 -95
- 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 +0 -195
- package/bin/services/task/runtime/TaskServiceActions.js.map +0 -1
- package/bin/services/task/runtime/TaskServiceSystem.d.ts +0 -12
- package/bin/services/task/runtime/TaskServiceSystem.d.ts.map +0 -1
- package/bin/services/task/runtime/TaskServiceSystem.js +0 -26
- package/bin/services/task/runtime/TaskServiceSystem.js.map +0 -1
- package/bin/services/task/types/Cron.d.ts +0 -16
- package/bin/services/task/types/Cron.d.ts.map +0 -1
- package/bin/services/task/types/Cron.js +0 -2
- package/bin/services/task/types/Cron.js.map +0 -1
- package/bin/services/task/types/Task.d.ts +0 -146
- package/bin/services/task/types/Task.d.ts.map +0 -1
- package/bin/services/task/types/Task.js +0 -9
- package/bin/services/task/types/Task.js.map +0 -1
- package/bin/services/task/types/TaskCommand.d.ts +0 -147
- package/bin/services/task/types/TaskCommand.d.ts.map +0 -1
- package/bin/services/task/types/TaskCommand.js +0 -9
- package/bin/services/task/types/TaskCommand.js.map +0 -1
- package/bin/session/Session.d.ts +0 -101
- package/bin/session/Session.d.ts.map +0 -1
- package/bin/session/Session.js +0 -171
- package/bin/session/Session.js.map +0 -1
- package/bin/session/SessionRunScope.d.ts +0 -76
- package/bin/session/SessionRunScope.d.ts.map +0 -1
- package/bin/session/SessionRunScope.js +0 -82
- package/bin/session/SessionRunScope.js.map +0 -1
- package/bin/session/composer/SessionComposer.d.ts +0 -29
- package/bin/session/composer/SessionComposer.d.ts.map +0 -1
- package/bin/session/composer/SessionComposer.js +0 -29
- package/bin/session/composer/SessionComposer.js.map +0 -1
- package/bin/session/composer/compaction/SessionCompactionComposer.d.ts +0 -56
- package/bin/session/composer/compaction/SessionCompactionComposer.d.ts.map +0 -1
- package/bin/session/composer/compaction/SessionCompactionComposer.js +0 -14
- package/bin/session/composer/compaction/SessionCompactionComposer.js.map +0 -1
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts +0 -38
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts.map +0 -1
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.js +0 -70
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.js.map +0 -1
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts +0 -46
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts.map +0 -1
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js +0 -199
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js.map +0 -1
- package/bin/session/composer/execution/LocalSessionExecutionComposer.d.ts +0 -49
- package/bin/session/composer/execution/LocalSessionExecutionComposer.d.ts.map +0 -1
- package/bin/session/composer/execution/LocalSessionExecutionComposer.js +0 -117
- package/bin/session/composer/execution/LocalSessionExecutionComposer.js.map +0 -1
- package/bin/session/composer/execution/SessionExecutionComposer.d.ts +0 -63
- package/bin/session/composer/execution/SessionExecutionComposer.d.ts.map +0 -1
- package/bin/session/composer/execution/SessionExecutionComposer.js +0 -14
- package/bin/session/composer/execution/SessionExecutionComposer.js.map +0 -1
- package/bin/session/composer/history/SessionHistoryComposer.d.ts +0 -156
- package/bin/session/composer/history/SessionHistoryComposer.d.ts.map +0 -1
- package/bin/session/composer/history/SessionHistoryComposer.js +0 -14
- package/bin/session/composer/history/SessionHistoryComposer.js.map +0 -1
- package/bin/session/composer/history/SessionHistoryWriter.d.ts +0 -56
- package/bin/session/composer/history/SessionHistoryWriter.d.ts.map +0 -1
- package/bin/session/composer/history/SessionHistoryWriter.js +0 -95
- package/bin/session/composer/history/SessionHistoryWriter.js.map +0 -1
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +0 -67
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts.map +0 -1
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js +0 -423
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +0 -1
- package/bin/session/composer/system/SessionSystemComposer.d.ts +0 -23
- package/bin/session/composer/system/SessionSystemComposer.d.ts.map +0 -1
- package/bin/session/composer/system/SessionSystemComposer.js +0 -14
- package/bin/session/composer/system/SessionSystemComposer.js.map +0 -1
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts +0 -42
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts.map +0 -1
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.js +0 -46
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.js.map +0 -1
- package/bin/session/composer/system/default/InitPrompts.d.ts +0 -16
- package/bin/session/composer/system/default/InitPrompts.d.ts.map +0 -1
- package/bin/session/composer/system/default/InitPrompts.js +0 -35
- package/bin/session/composer/system/default/InitPrompts.js.map +0 -1
- package/bin/session/composer/system/default/PromptRenderer.d.ts +0 -35
- package/bin/session/composer/system/default/PromptRenderer.d.ts.map +0 -1
- package/bin/session/composer/system/default/PromptRenderer.js +0 -23
- package/bin/session/composer/system/default/PromptRenderer.js.map +0 -1
- package/bin/session/composer/system/default/StaticPromptCatalog.d.ts +0 -46
- package/bin/session/composer/system/default/StaticPromptCatalog.d.ts.map +0 -1
- package/bin/session/composer/system/default/StaticPromptCatalog.js +0 -223
- package/bin/session/composer/system/default/StaticPromptCatalog.js.map +0 -1
- package/bin/session/composer/system/default/SystemDomain.d.ts +0 -169
- package/bin/session/composer/system/default/SystemDomain.d.ts.map +0 -1
- package/bin/session/composer/system/default/SystemDomain.js +0 -232
- package/bin/session/composer/system/default/SystemDomain.js.map +0 -1
- package/bin/session/composer/system/default/assets/core.prompt.txt +0 -39
- package/bin/session/composer/system/default/assets/init/PROFILE.md.txt +0 -17
- package/bin/session/composer/system/default/assets/init/SOUL.md.txt +0 -88
- package/bin/session/composer/system/default/assets/service.prompt.txt +0 -29
- package/bin/session/composer/system/default/assets/task.prompt.txt +0 -33
- package/bin/session/composer/system/default/variables/GeoContext.d.ts +0 -14
- package/bin/session/composer/system/default/variables/GeoContext.d.ts.map +0 -1
- package/bin/session/composer/system/default/variables/GeoContext.js +0 -150
- package/bin/session/composer/system/default/variables/GeoContext.js.map +0 -1
- package/bin/session/composer/system/default/variables/PromptTypes.d.ts +0 -36
- package/bin/session/composer/system/default/variables/PromptTypes.d.ts.map +0 -1
- package/bin/session/composer/system/default/variables/PromptTypes.js +0 -9
- package/bin/session/composer/system/default/variables/PromptTypes.js.map +0 -1
- package/bin/session/composer/system/default/variables/VariableReplacer.d.ts +0 -61
- package/bin/session/composer/system/default/variables/VariableReplacer.d.ts.map +0 -1
- package/bin/session/composer/system/default/variables/VariableReplacer.js +0 -93
- package/bin/session/composer/system/default/variables/VariableReplacer.js.map +0 -1
- package/bin/session/executors/local/LocalSessionCore.d.ts +0 -116
- package/bin/session/executors/local/LocalSessionCore.d.ts.map +0 -1
- package/bin/session/executors/local/LocalSessionCore.js +0 -574
- package/bin/session/executors/local/LocalSessionCore.js.map +0 -1
- package/bin/session/executors/local/LocalSessionExecutor.d.ts +0 -61
- package/bin/session/executors/local/LocalSessionExecutor.d.ts.map +0 -1
- package/bin/session/executors/local/LocalSessionExecutor.js +0 -36
- package/bin/session/executors/local/LocalSessionExecutor.js.map +0 -1
- package/bin/session/executors/local/SessionLoopDecision.d.ts +0 -27
- package/bin/session/executors/local/SessionLoopDecision.d.ts.map +0 -1
- package/bin/session/executors/local/SessionLoopDecision.js +0 -62
- package/bin/session/executors/local/SessionLoopDecision.js.map +0 -1
- package/bin/session/executors/local/SessionSignals.d.ts +0 -72
- package/bin/session/executors/local/SessionSignals.d.ts.map +0 -1
- package/bin/session/executors/local/SessionSignals.js +0 -357
- package/bin/session/executors/local/SessionSignals.js.map +0 -1
- package/bin/session/ids/resolveSessionId.d.ts +0 -11
- package/bin/session/ids/resolveSessionId.d.ts.map +0 -1
- package/bin/session/ids/resolveSessionId.js +0 -17
- package/bin/session/ids/resolveSessionId.js.map +0 -1
- package/bin/session/messages/SessionAttachmentMapper.d.ts +0 -14
- package/bin/session/messages/SessionAttachmentMapper.d.ts.map +0 -1
- package/bin/session/messages/SessionAttachmentMapper.js +0 -145
- package/bin/session/messages/SessionAttachmentMapper.js.map +0 -1
- package/bin/session/messages/SessionMessageCodec.d.ts +0 -41
- package/bin/session/messages/SessionMessageCodec.d.ts.map +0 -1
- package/bin/session/messages/SessionMessageCodec.js +0 -93
- package/bin/session/messages/SessionMessageCodec.js.map +0 -1
- package/bin/session/messages/SessionMessageLog.d.ts +0 -19
- package/bin/session/messages/SessionMessageLog.d.ts.map +0 -1
- package/bin/session/messages/SessionMessageLog.js +0 -34
- package/bin/session/messages/SessionMessageLog.js.map +0 -1
- package/bin/session/messages/SessionStepEventMapper.d.ts +0 -20
- package/bin/session/messages/SessionStepEventMapper.d.ts.map +0 -1
- package/bin/session/messages/SessionStepEventMapper.js +0 -208
- package/bin/session/messages/SessionStepEventMapper.js.map +0 -1
- package/bin/session/tools/shell/ShellToolBridge.d.ts +0 -79
- package/bin/session/tools/shell/ShellToolBridge.d.ts.map +0 -1
- package/bin/session/tools/shell/ShellToolBridge.js +0 -288
- package/bin/session/tools/shell/ShellToolBridge.js.map +0 -1
- package/bin/session/tools/shell/ShellToolDefinition.d.ts +0 -114
- package/bin/session/tools/shell/ShellToolDefinition.d.ts.map +0 -1
- package/bin/session/tools/shell/ShellToolDefinition.js +0 -359
- package/bin/session/tools/shell/ShellToolDefinition.js.map +0 -1
- package/bin/session/tools/shell/ShellToolFormatting.d.ts +0 -26
- package/bin/session/tools/shell/ShellToolFormatting.d.ts.map +0 -1
- package/bin/session/tools/shell/ShellToolFormatting.js +0 -74
- package/bin/session/tools/shell/ShellToolFormatting.js.map +0 -1
- package/bin/session/tools/shell/ShellToolSchemas.d.ts +0 -118
- package/bin/session/tools/shell/ShellToolSchemas.d.ts.map +0 -1
- package/bin/session/tools/shell/ShellToolSchemas.js +0 -113
- package/bin/session/tools/shell/ShellToolSchemas.js.map +0 -1
- package/bin/shared/constants/DowncityDefault.d.ts +0 -3
- package/bin/shared/constants/DowncityDefault.d.ts.map +0 -1
- package/bin/shared/constants/DowncityDefault.js +0 -37
- package/bin/shared/constants/DowncityDefault.js.map +0 -1
- package/bin/shared/constants/DowncitySchema.d.ts +0 -3
- package/bin/shared/constants/DowncitySchema.d.ts.map +0 -1
- package/bin/shared/constants/DowncitySchema.js.map +0 -1
- package/bin/shared/types/AgentHost.d.ts +0 -72
- package/bin/shared/types/AgentHost.d.ts.map +0 -1
- package/bin/shared/types/AgentHost.js +0 -10
- package/bin/shared/types/AgentHost.js.map +0 -1
- package/bin/shared/types/AgentProject.d.ts +0 -80
- package/bin/shared/types/AgentProject.d.ts.map +0 -1
- package/bin/shared/types/AgentProject.js +0 -9
- package/bin/shared/types/AgentProject.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/AuthPlugin.d.ts +0 -407
- package/bin/shared/types/AuthPlugin.d.ts.map +0 -1
- package/bin/shared/types/AuthPlugin.js +0 -115
- package/bin/shared/types/AuthPlugin.js.map +0 -1
- package/bin/shared/types/ChatPlugin.d.ts +0 -238
- package/bin/shared/types/ChatPlugin.d.ts.map +0 -1
- package/bin/shared/types/ChatPlugin.js +0 -10
- package/bin/shared/types/ChatPlugin.js.map +0 -1
- package/bin/shared/types/ChatPromptContext.d.ts +0 -125
- package/bin/shared/types/ChatPromptContext.d.ts.map +0 -1
- package/bin/shared/types/ChatPromptContext.js +0 -10
- package/bin/shared/types/ChatPromptContext.js.map +0 -1
- package/bin/shared/types/ChatQueueWorker.d.ts +0 -25
- package/bin/shared/types/ChatQueueWorker.d.ts.map +0 -1
- package/bin/shared/types/ChatQueueWorker.js +0 -9
- package/bin/shared/types/ChatQueueWorker.js.map +0 -1
- package/bin/shared/types/ChatRuntime.d.ts +0 -32
- package/bin/shared/types/ChatRuntime.d.ts.map +0 -1
- package/bin/shared/types/ChatRuntime.js +0 -9
- package/bin/shared/types/ChatRuntime.js.map +0 -1
- package/bin/shared/types/ChatService.d.ts +0 -145
- package/bin/shared/types/ChatService.d.ts.map +0 -1
- package/bin/shared/types/ChatService.js +0 -10
- package/bin/shared/types/ChatService.js.map +0 -1
- package/bin/shared/types/ClaudeSkill.d.ts +0 -63
- package/bin/shared/types/ClaudeSkill.d.ts.map +0 -1
- package/bin/shared/types/ClaudeSkill.js +0 -10
- package/bin/shared/types/ClaudeSkill.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/Daemon.d.ts +0 -46
- package/bin/shared/types/Daemon.d.ts.map +0 -1
- package/bin/shared/types/Daemon.js +0 -14
- package/bin/shared/types/Daemon.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/shared/types/DowncityConfig.d.ts +0 -214
- package/bin/shared/types/DowncityConfig.d.ts.map +0 -1
- package/bin/shared/types/DowncityConfig.js +0 -2
- package/bin/shared/types/DowncityConfig.js.map +0 -1
- package/bin/shared/types/ExecutionBinding.d.ts +0 -26
- package/bin/shared/types/ExecutionBinding.d.ts.map +0 -1
- package/bin/shared/types/ExecutionBinding.js +0 -10
- package/bin/shared/types/ExecutionBinding.js.map +0 -1
- package/bin/shared/types/FeishuChannel.d.ts +0 -127
- package/bin/shared/types/FeishuChannel.d.ts.map +0 -1
- package/bin/shared/types/FeishuChannel.js +0 -9
- package/bin/shared/types/FeishuChannel.js.map +0 -1
- package/bin/shared/types/InlineInstant.d.ts +0 -82
- package/bin/shared/types/InlineInstant.d.ts.map +0 -1
- package/bin/shared/types/InlineInstant.js +0 -10
- package/bin/shared/types/InlineInstant.js.map +0 -1
- package/bin/shared/types/Json.d.ts +0 -32
- package/bin/shared/types/Json.d.ts.map +0 -1
- package/bin/shared/types/Json.js +0 -9
- package/bin/shared/types/Json.js.map +0 -1
- package/bin/shared/types/LlmConfig.d.ts +0 -100
- package/bin/shared/types/LlmConfig.d.ts.map +0 -1
- package/bin/shared/types/LlmConfig.js +0 -10
- package/bin/shared/types/LlmConfig.js.map +0 -1
- package/bin/shared/types/LocalRpc.d.ts +0 -69
- package/bin/shared/types/LocalRpc.d.ts.map +0 -1
- package/bin/shared/types/LocalRpc.js +0 -9
- package/bin/shared/types/LocalRpc.js.map +0 -1
- package/bin/shared/types/ModelBinding.d.ts +0 -19
- package/bin/shared/types/ModelBinding.d.ts.map +0 -1
- package/bin/shared/types/ModelBinding.js +0 -2
- package/bin/shared/types/ModelBinding.js.map +0 -1
- package/bin/shared/types/Plugin.d.ts +0 -693
- package/bin/shared/types/Plugin.d.ts.map +0 -1
- package/bin/shared/types/Plugin.js +0 -10
- package/bin/shared/types/Plugin.js.map +0 -1
- package/bin/shared/types/PluginApi.d.ts +0 -151
- package/bin/shared/types/PluginApi.d.ts.map +0 -1
- package/bin/shared/types/PluginApi.js +0 -9
- package/bin/shared/types/PluginApi.js.map +0 -1
- package/bin/shared/types/PluginLifecycle.d.ts +0 -34
- package/bin/shared/types/PluginLifecycle.d.ts.map +0 -1
- package/bin/shared/types/PluginLifecycle.js +0 -9
- package/bin/shared/types/PluginLifecycle.js.map +0 -1
- package/bin/shared/types/QqChannel.d.ts +0 -485
- package/bin/shared/types/QqChannel.d.ts.map +0 -1
- package/bin/shared/types/QqChannel.js +0 -42
- package/bin/shared/types/QqChannel.js.map +0 -1
- package/bin/shared/types/QqGatewaySupport.d.ts +0 -82
- package/bin/shared/types/QqGatewaySupport.d.ts.map +0 -1
- package/bin/shared/types/QqGatewaySupport.js +0 -9
- package/bin/shared/types/QqGatewaySupport.js.map +0 -1
- package/bin/shared/types/Sandbox.d.ts +0 -130
- package/bin/shared/types/Sandbox.d.ts.map +0 -1
- package/bin/shared/types/Sandbox.js +0 -10
- package/bin/shared/types/Sandbox.js.map +0 -1
- package/bin/shared/types/Service.d.ts +0 -205
- package/bin/shared/types/Service.d.ts.map +0 -1
- package/bin/shared/types/Service.js +0 -10
- package/bin/shared/types/Service.js.map +0 -1
- package/bin/shared/types/ServiceSchedule.d.ts +0 -114
- package/bin/shared/types/ServiceSchedule.d.ts.map +0 -1
- package/bin/shared/types/ServiceSchedule.js +0 -9
- package/bin/shared/types/ServiceSchedule.js.map +0 -1
- package/bin/shared/types/ServiceState.d.ts +0 -104
- package/bin/shared/types/ServiceState.d.ts.map +0 -1
- package/bin/shared/types/ServiceState.js +0 -9
- package/bin/shared/types/ServiceState.js.map +0 -1
- package/bin/shared/types/Services.d.ts +0 -94
- package/bin/shared/types/Services.d.ts.map +0 -1
- package/bin/shared/types/Services.js +0 -9
- package/bin/shared/types/Services.js.map +0 -1
- package/bin/shared/types/Shell.d.ts +0 -97
- package/bin/shared/types/Shell.d.ts.map +0 -1
- package/bin/shared/types/Shell.js +0 -9
- package/bin/shared/types/Shell.js.map +0 -1
- package/bin/shared/types/SkillCommand.d.ts +0 -87
- package/bin/shared/types/SkillCommand.d.ts.map +0 -1
- package/bin/shared/types/SkillCommand.js +0 -9
- package/bin/shared/types/SkillCommand.js.map +0 -1
- package/bin/shared/types/SkillPlugin.d.ts +0 -102
- package/bin/shared/types/SkillPlugin.d.ts.map +0 -1
- package/bin/shared/types/SkillPlugin.js +0 -29
- package/bin/shared/types/SkillPlugin.js.map +0 -1
- package/bin/shared/types/SkillRoot.d.ts +0 -48
- package/bin/shared/types/SkillRoot.d.ts.map +0 -1
- package/bin/shared/types/SkillRoot.js +0 -9
- package/bin/shared/types/SkillRoot.js.map +0 -1
- package/bin/shared/types/Start.d.ts +0 -16
- package/bin/shared/types/Start.d.ts.map +0 -1
- package/bin/shared/types/Start.js +0 -11
- package/bin/shared/types/Start.js.map +0 -1
- package/bin/shared/types/Store.d.ts +0 -507
- package/bin/shared/types/Store.d.ts.map +0 -1
- package/bin/shared/types/Store.js +0 -2
- package/bin/shared/types/Store.js.map +0 -1
- package/bin/shared/types/TaskService.d.ts +0 -52
- package/bin/shared/types/TaskService.d.ts.map +0 -1
- package/bin/shared/types/TaskService.js +0 -9
- package/bin/shared/types/TaskService.js.map +0 -1
- package/bin/shared/types/Template.d.ts +0 -9
- package/bin/shared/types/Template.d.ts.map +0 -1
- package/bin/shared/types/Template.js +0 -9
- package/bin/shared/types/Template.js.map +0 -1
- package/bin/shared/types/Tts.d.ts +0 -91
- package/bin/shared/types/Tts.d.ts.map +0 -1
- package/bin/shared/types/Tts.js +0 -9
- package/bin/shared/types/Tts.js.map +0 -1
- package/bin/shared/types/TtsPlugin.d.ts +0 -161
- package/bin/shared/types/TtsPlugin.d.ts.map +0 -1
- package/bin/shared/types/TtsPlugin.js +0 -9
- package/bin/shared/types/TtsPlugin.js.map +0 -1
- package/bin/shared/types/Voice.d.ts +0 -58
- package/bin/shared/types/Voice.d.ts.map +0 -1
- package/bin/shared/types/Voice.js +0 -9
- package/bin/shared/types/Voice.js.map +0 -1
- package/bin/shared/types/VoicePlugin.d.ts +0 -190
- package/bin/shared/types/VoicePlugin.d.ts.map +0 -1
- package/bin/shared/types/VoicePlugin.js +0 -9
- package/bin/shared/types/VoicePlugin.js.map +0 -1
- package/bin/shared/types/WebPlugin.d.ts +0 -133
- package/bin/shared/types/WebPlugin.d.ts.map +0 -1
- package/bin/shared/types/WebPlugin.js +0 -12
- package/bin/shared/types/WebPlugin.js.map +0 -1
- package/bin/shared/types/auth/AuthPermission.d.ts +0 -49
- package/bin/shared/types/auth/AuthPermission.d.ts.map +0 -1
- package/bin/shared/types/auth/AuthPermission.js +0 -92
- package/bin/shared/types/auth/AuthPermission.js.map +0 -1
- package/bin/shared/types/auth/AuthRoute.d.ts +0 -29
- package/bin/shared/types/auth/AuthRoute.d.ts.map +0 -1
- package/bin/shared/types/auth/AuthRoute.js +0 -8
- package/bin/shared/types/auth/AuthRoute.js.map +0 -1
- package/bin/shared/types/auth/AuthToken.d.ts +0 -46
- package/bin/shared/types/auth/AuthToken.d.ts.map +0 -1
- package/bin/shared/types/auth/AuthToken.js +0 -9
- package/bin/shared/types/auth/AuthToken.js.map +0 -1
- package/bin/shared/types/auth/AuthTypes.d.ts +0 -227
- package/bin/shared/types/auth/AuthTypes.d.ts.map +0 -1
- package/bin/shared/types/auth/AuthTypes.js +0 -9
- package/bin/shared/types/auth/AuthTypes.js.map +0 -1
- package/bin/shared/utils/Id.d.ts.map +0 -1
- package/bin/shared/utils/Id.js.map +0 -1
- package/bin/shared/utils/Template.d.ts +0 -17
- package/bin/shared/utils/Template.d.ts.map +0 -1
- package/bin/shared/utils/Template.js +0 -24
- package/bin/shared/utils/Template.js.map +0 -1
- package/bin/shared/utils/Time.d.ts +0 -15
- package/bin/shared/utils/Time.d.ts.map +0 -1
- package/bin/shared/utils/Time.js +0 -69
- package/bin/shared/utils/Time.js.map +0 -1
- package/bin/shared/utils/cli/CliOutput.d.ts.map +0 -1
- package/bin/shared/utils/cli/CliOutput.js.map +0 -1
- package/bin/shared/utils/cli/Spinner.d.ts.map +0 -1
- package/bin/shared/utils/cli/Spinner.js.map +0 -1
- package/bin/shared/utils/logger/Fetch.d.ts +0 -14
- package/bin/shared/utils/logger/Fetch.d.ts.map +0 -1
- package/bin/shared/utils/logger/Fetch.js +0 -68
- package/bin/shared/utils/logger/Fetch.js.map +0 -1
- package/bin/shared/utils/logger/Format.d.ts +0 -11
- package/bin/shared/utils/logger/Format.d.ts.map +0 -1
- package/bin/shared/utils/logger/Format.js +0 -10
- package/bin/shared/utils/logger/Format.js.map +0 -1
- package/bin/shared/utils/logger/FormatRequest.d.ts +0 -29
- package/bin/shared/utils/logger/FormatRequest.d.ts.map +0 -1
- package/bin/shared/utils/logger/FormatRequest.js +0 -309
- package/bin/shared/utils/logger/FormatRequest.js.map +0 -1
- package/bin/shared/utils/logger/FormatResponse.d.ts +0 -46
- package/bin/shared/utils/logger/FormatResponse.d.ts.map +0 -1
- package/bin/shared/utils/logger/FormatResponse.js +0 -186
- package/bin/shared/utils/logger/FormatResponse.js.map +0 -1
- package/bin/shared/utils/logger/FormatShared.d.ts +0 -33
- package/bin/shared/utils/logger/FormatShared.d.ts.map +0 -1
- package/bin/shared/utils/logger/FormatShared.js +0 -215
- package/bin/shared/utils/logger/FormatShared.js.map +0 -1
- package/bin/shared/utils/logger/Logger.d.ts +0 -101
- package/bin/shared/utils/logger/Logger.d.ts.map +0 -1
- package/bin/shared/utils/logger/Logger.js +0 -308
- package/bin/shared/utils/logger/Logger.js.map +0 -1
- package/bin/shared/utils/storage/index.d.ts.map +0 -1
- package/bin/shared/utils/storage/index.js.map +0 -1
- package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreChannelAccountRepository.js.map +0 -1
- package/bin/shared/utils/store/StoreChatAuthRepository.d.ts +0 -26
- package/bin/shared/utils/store/StoreChatAuthRepository.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreChatAuthRepository.js +0 -145
- package/bin/shared/utils/store/StoreChatAuthRepository.js.map +0 -1
- package/bin/shared/utils/store/StoreEnvRepository.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreEnvRepository.js.map +0 -1
- package/bin/shared/utils/store/StoreModelRepository.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreModelRepository.js.map +0 -1
- package/bin/shared/utils/store/StoreSchema.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreSchema.js.map +0 -1
- package/bin/shared/utils/store/StoreSecureSettings.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreSecureSettings.js.map +0 -1
- package/bin/shared/utils/store/StoreShared.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreShared.js.map +0 -1
- package/bin/shared/utils/store/crypto.d.ts.map +0 -1
- package/bin/shared/utils/store/crypto.js.map +0 -1
- package/bin/shared/utils/store/index.d.ts.map +0 -1
- package/bin/shared/utils/store/index.js.map +0 -1
- package/bin/shared/utils/store/schema.d.ts.map +0 -1
- package/bin/shared/utils/store/schema.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/session/SessionExecutor.d.ts +0 -18
- package/bin/types/session/SessionExecutor.d.ts.map +0 -1
- package/bin/types/session/SessionExecutor.js +0 -9
- package/bin/types/session/SessionExecutor.js.map +0 -1
- package/bin/types/session/SessionHistoryMeta.d.ts +0 -26
- package/bin/types/session/SessionHistoryMeta.d.ts.map +0 -1
- package/bin/types/session/SessionHistoryMeta.js +0 -9
- package/bin/types/session/SessionHistoryMeta.js.map +0 -1
- package/bin/types/session/SessionHistoryPaths.d.ts +0 -30
- package/bin/types/session/SessionHistoryPaths.d.ts.map +0 -1
- package/bin/types/session/SessionHistoryPaths.js +0 -2
- package/bin/types/session/SessionHistoryPaths.js.map +0 -1
- package/bin/types/session/SessionLoop.d.ts +0 -79
- package/bin/types/session/SessionLoop.d.ts.map +0 -1
- package/bin/types/session/SessionLoop.js +0 -9
- package/bin/types/session/SessionLoop.js.map +0 -1
- package/bin/types/session/SessionMessages.d.ts +0 -83
- package/bin/types/session/SessionMessages.d.ts.map +0 -1
- package/bin/types/session/SessionMessages.js +0 -10
- package/bin/types/session/SessionMessages.js.map +0 -1
- package/bin/types/session/SessionPrompts.d.ts +0 -13
- package/bin/types/session/SessionPrompts.d.ts.map +0 -1
- package/bin/types/session/SessionPrompts.js +0 -9
- package/bin/types/session/SessionPrompts.js.map +0 -1
- package/bin/types/session/SessionRun.d.ts +0 -100
- package/bin/types/session/SessionRun.d.ts.map +0 -1
- package/bin/types/session/SessionRun.js +0 -10
- package/bin/types/session/SessionRun.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/src/agent/AgentContext.ts +0 -181
- package/src/agent/AgentRuntime.ts +0 -348
- package/src/agent/AgentRuntimeState.ts +0 -149
- package/src/agent/project/AgentInitializer.ts +0 -382
- package/src/agent/project/ProjectExecutionBinding.ts +0 -53
- package/src/config/Config.ts +0 -251
- package/src/console/ChannelAccountService.ts +0 -9
- package/src/daemon/ProjectSetup.ts +0 -126
- package/src/http/Server.ts +0 -170
- package/src/http/dashboard/DashboardApiRoutes.ts +0 -30
- package/src/http/dashboard/DashboardAuthorizationRoutes.ts +0 -101
- package/src/http/dashboard/ExecuteBySession.ts +0 -152
- package/src/http/dashboard/Helpers.ts +0 -22
- 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 -402
- package/src/http/dashboard/TaskRoutes.ts +0 -372
- package/src/http/execute/execute.ts +0 -120
- package/src/http/health/health.ts +0 -27
- package/src/http/plugins/plugins.ts +0 -67
- package/src/http/services/services.ts +0 -94
- package/src/http/static/static.ts +0 -104
- package/src/model/CreateModel.ts +0 -343
- package/src/plugin/Activation.ts +0 -22
- package/src/plugin/Catalog.ts +0 -118
- package/src/plugin/HookRegistry.ts +0 -249
- package/src/plugin/HttpRoutes.ts +0 -50
- package/src/plugin/Lifecycle.ts +0 -116
- package/src/plugin/LocalExecution.ts +0 -157
- package/src/plugin/PluginCommand.ts +0 -220
- package/src/plugin/PluginManager.ts +0 -66
- package/src/plugin/PluginRegistry.ts +0 -244
- package/src/plugin/Plugins.ts +0 -39
- package/src/plugin/ProjectConfigStore.ts +0 -58
- package/src/plugins/asr/Dependency.ts +0 -336
- package/src/plugins/asr/ModelCatalog.ts +0 -43
- package/src/plugins/asr/Plugin.ts +0 -640
- package/src/plugins/auth/Plugin.ts +0 -208
- package/src/plugins/auth/runtime/AuthorizationConfig.ts +0 -336
- package/src/plugins/auth/runtime/AuthorizationPolicy.ts +0 -168
- package/src/plugins/auth/runtime/AuthorizationStore.ts +0 -218
- package/src/plugins/skill/Action.ts +0 -159
- package/src/plugins/skill/Command.ts +0 -98
- package/src/plugins/skill/Config.ts +0 -51
- package/src/plugins/skill/PROMPT.txt +0 -10
- package/src/plugins/skill/Plugin.ts +0 -355
- package/src/plugins/skill/runtime/Discovery.ts +0 -141
- package/src/plugins/skill/runtime/Frontmatter.ts +0 -17
- package/src/plugins/skill/runtime/Paths.ts +0 -130
- package/src/plugins/skill/runtime/Prompt.ts +0 -67
- package/src/plugins/skill/runtime/Store.ts +0 -95
- package/src/plugins/skill/runtime/SystemProvider.ts +0 -52
- package/src/plugins/skill/runtime/Types.ts +0 -22
- package/src/plugins/skill/runtime/Utils.ts +0 -28
- package/src/plugins/tts/Dependency.ts +0 -473
- package/src/plugins/tts/Plugin.ts +0 -554
- package/src/plugins/tts/runtime/Catalog.ts +0 -97
- package/src/plugins/tts/runtime/DependencyInstaller.ts +0 -436
- package/src/plugins/tts/runtime/Installer.ts +0 -297
- package/src/plugins/tts/runtime/Paths.ts +0 -39
- package/src/plugins/tts/runtime/Synthesizer.ts +0 -480
- package/src/plugins/voice/Dependency.ts +0 -329
- package/src/plugins/voice/ModelCatalog.ts +0 -43
- package/src/plugins/voice/Plugin.ts +0 -599
- package/src/plugins/voice/runtime/Catalog.ts +0 -68
- package/src/plugins/voice/runtime/DependencyInstaller.ts +0 -505
- package/src/plugins/voice/runtime/Installer.ts +0 -324
- package/src/plugins/voice/runtime/Paths.ts +0 -26
- package/src/plugins/voice/runtime/Transcriber.ts +0 -467
- package/src/plugins/web/Dependency.ts +0 -17
- package/src/plugins/web/PROMPT.agent-browser.txt +0 -17
- package/src/plugins/web/PROMPT.txt +0 -33
- package/src/plugins/web/PROMPT.web-access.txt +0 -13
- package/src/plugins/web/Plugin.ts +0 -516
- package/src/plugins/web/runtime/Config.ts +0 -105
- package/src/plugins/web/runtime/Source.ts +0 -263
- package/src/plugins/workboard/Plugin.ts +0 -81
- package/src/plugins/workboard/runtime/Collector.ts +0 -78
- package/src/plugins/workboard/runtime/Normalizer.ts +0 -213
- package/src/plugins/workboard/runtime/Store.ts +0 -110
- package/src/plugins/workboard/types/Workboard.ts +0 -158
- package/src/rpc/Server.ts +0 -395
- package/src/rpc/Transport.ts +0 -40
- package/src/runtime/AgentHostRuntime.ts +0 -65
- 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 -256
- package/src/service/Manager.ts +0 -25
- package/src/service/ServiceActionApi.ts +0 -304
- package/src/service/ServiceActionRunner.ts +0 -272
- package/src/service/ServiceClassRegistry.ts +0 -77
- package/src/service/ServiceManager.ts +0 -20
- package/src/service/ServiceStateController.ts +0 -316
- package/src/service/ServiceSystemProviders.ts +0 -50
- package/src/service/Services.ts +0 -33
- package/src/service/schedule/Executor.ts +0 -54
- package/src/service/schedule/Runtime.ts +0 -78
- package/src/service/schedule/Schema.ts +0 -34
- package/src/service/schedule/Store.ts +0 -316
- package/src/service/schedule/Time.ts +0 -131
- package/src/services/BaseService.ts +0 -85
- package/src/services/README.md +0 -100
- package/src/services/chat/Action.ts +0 -477
- package/src/services/chat/ChatService.ts +0 -111
- package/src/services/chat/Index.ts +0 -9
- package/src/services/chat/PROMPT.direct.txt +0 -55
- package/src/services/chat/accounts/ChannelAccountService.ts +0 -317
- package/src/services/chat/channels/BaseChatChannel.ts +0 -450
- 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 -634
- package/src/services/chat/channels/feishu/FeishuInbound.ts +0 -51
- 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/PROMPT.direct.txt +0 -5
- 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/PROMPT.direct.txt +0 -11
- package/src/services/chat/channels/qq/QQ.ts +0 -633
- package/src/services/chat/channels/qq/QQEventCapture.ts +0 -88
- package/src/services/chat/channels/qq/QQGatewayAuth.ts +0 -318
- package/src/services/chat/channels/qq/QQGatewayClient.ts +0 -641
- package/src/services/chat/channels/qq/QQGatewaySend.ts +0 -258
- package/src/services/chat/channels/qq/QQGatewaySupport.ts +0 -159
- 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/QQSendSupport.ts +0 -91
- 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/ApiClient.ts +0 -373
- package/src/services/chat/channels/telegram/Bot.ts +0 -652
- 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/Handlers.ts +0 -91
- package/src/services/chat/channels/telegram/PROMPT.direct.txt +0 -1
- 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/StateStore.ts +0 -58
- package/src/services/chat/channels/telegram/TelegramInbound.ts +0 -186
- 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/ChatChannelFacade.ts +0 -23
- 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/ChatServiceActions.ts +0 -484
- 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/PluginPoints.ts +0 -78
- package/src/services/chat/runtime/QueuedUserMessage.ts +0 -43
- 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/runtime/UIMessageTransformer.ts +0 -141
- package/src/services/chat/runtime/UserVisibleText.ts +0 -84
- package/src/services/chat/types/BotInfo.ts +0 -101
- package/src/services/chat/types/ChannelAccount.ts +0 -232
- package/src/services/chat/types/ChannelConfiguration.ts +0 -161
- package/src/services/chat/types/ChannelContext.ts +0 -110
- package/src/services/chat/types/ChannelStatus.ts +0 -98
- package/src/services/chat/types/ChatCommand.ts +0 -174
- package/src/services/chat/types/ChatDispatcher.ts +0 -42
- package/src/services/chat/types/ChatHistory.ts +0 -42
- package/src/services/chat/types/ChatMessageMarkup.ts +0 -168
- package/src/services/chat/types/ChatMeta.ts +0 -35
- package/src/services/chat/types/ChatQueue.ts +0 -49
- package/src/services/chat/types/DirectDispatch.ts +0 -133
- package/src/services/chat/types/FeishuAttachment.ts +0 -50
- package/src/services/chat/types/FeishuInboundAttachment.ts +0 -138
- package/src/services/chat/types/FeishuPost.ts +0 -338
- package/src/services/chat/types/QqInboundDedupe.ts +0 -12
- package/src/services/chat/types/QqVoice.ts +0 -126
- package/src/services/chat/types/ReplyContext.ts +0 -49
- package/src/services/contact/Action.ts +0 -9
- package/src/services/contact/ContactService.ts +0 -799
- package/src/services/contact/Index.ts +0 -8
- package/src/services/contact/PROMPT.txt +0 -25
- 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/EndpointResolver.ts +0 -146
- 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/Paths.ts +0 -139
- package/src/services/contact/runtime/RemoteClient.ts +0 -137
- package/src/services/contact/runtime/ShareBundle.ts +0 -286
- package/src/services/contact/runtime/SystemProvider.ts +0 -22
- package/src/services/contact/runtime/Token.ts +0 -40
- package/src/services/memory/Action.ts +0 -188
- package/src/services/memory/Index.ts +0 -9
- 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/memory/types/Memory.ts +0 -341
- package/src/services/shell/Index.ts +0 -9
- package/src/services/shell/ShellService.ts +0 -199
- package/src/services/shell/runtime/Paths.ts +0 -28
- package/src/services/shell/runtime/ShellActionRuntime.ts +0 -579
- package/src/services/shell/runtime/ShellActionRuntimeSupport.ts +0 -552
- package/src/services/shell/types/ShellService.ts +0 -233
- package/src/services/task/Action.ts +0 -491
- package/src/services/task/Index.ts +0 -9
- package/src/services/task/PROMPT.txt +0 -237
- 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/CronTrigger.ts +0 -110
- package/src/services/task/runtime/Frontmatter.ts +0 -24
- package/src/services/task/runtime/Model.ts +0 -347
- package/src/services/task/runtime/Paths.ts +0 -116
- 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/services/task/runtime/TaskServiceSystem.ts +0 -30
- package/src/services/task/types/Cron.ts +0 -16
- package/src/services/task/types/Task.ts +0 -157
- package/src/services/task/types/TaskCommand.ts +0 -165
- package/src/session/Session.ts +0 -237
- package/src/session/SessionRunScope.ts +0 -134
- package/src/session/composer/SessionComposer.ts +0 -34
- package/src/session/composer/compaction/SessionCompactionComposer.ts +0 -68
- package/src/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.ts +0 -100
- package/src/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.ts +0 -261
- package/src/session/composer/execution/LocalSessionExecutionComposer.ts +0 -169
- package/src/session/composer/execution/SessionExecutionComposer.ts +0 -71
- package/src/session/composer/history/SessionHistoryComposer.ts +0 -194
- package/src/session/composer/history/SessionHistoryWriter.ts +0 -131
- package/src/session/composer/history/jsonl/JsonlSessionHistoryComposer.ts +0 -508
- package/src/session/composer/system/SessionSystemComposer.ts +0 -25
- package/src/session/composer/system/default/DefaultSessionSystemComposer.ts +0 -78
- package/src/session/composer/system/default/InitPrompts.ts +0 -52
- package/src/session/composer/system/default/PromptRenderer.ts +0 -52
- package/src/session/composer/system/default/StaticPromptCatalog.ts +0 -287
- package/src/session/composer/system/default/SystemDomain.ts +0 -405
- package/src/session/composer/system/default/assets/core.prompt.txt +0 -39
- package/src/session/composer/system/default/assets/init/PROFILE.md.txt +0 -17
- package/src/session/composer/system/default/assets/init/SOUL.md.txt +0 -88
- package/src/session/composer/system/default/assets/service.prompt.txt +0 -29
- package/src/session/composer/system/default/assets/task.prompt.txt +0 -33
- package/src/session/composer/system/default/variables/GeoContext.ts +0 -180
- package/src/session/composer/system/default/variables/PromptTypes.ts +0 -37
- package/src/session/composer/system/default/variables/VariableReplacer.ts +0 -154
- package/src/session/executors/local/LocalSessionCore.ts +0 -753
- package/src/session/executors/local/LocalSessionExecutor.ts +0 -89
- package/src/session/executors/local/SessionLoopDecision.ts +0 -80
- package/src/session/executors/local/SessionSignals.ts +0 -416
- package/src/session/ids/resolveSessionId.ts +0 -18
- package/src/session/messages/SessionAttachmentMapper.ts +0 -155
- package/src/session/messages/SessionMessageCodec.ts +0 -116
- package/src/session/messages/SessionMessageLog.ts +0 -39
- package/src/session/messages/SessionStepEventMapper.ts +0 -233
- package/src/session/tools/shell/ShellToolBridge.ts +0 -378
- package/src/session/tools/shell/ShellToolDefinition.ts +0 -509
- package/src/session/tools/shell/ShellToolFormatting.ts +0 -83
- package/src/session/tools/shell/ShellToolSchemas.ts +0 -120
- package/src/shared/constants/DowncityDefault.ts +0 -38
- package/src/shared/types/AgentHost.ts +0 -74
- package/src/shared/types/AgentProject.ts +0 -92
- package/src/shared/types/AuthDashboard.ts +0 -38
- package/src/shared/types/AuthPlugin.ts +0 -545
- package/src/shared/types/ChatPlugin.ts +0 -251
- package/src/shared/types/ChatPromptContext.ts +0 -139
- package/src/shared/types/ChatQueueWorker.ts +0 -25
- package/src/shared/types/ChatRuntime.ts +0 -33
- package/src/shared/types/ChatService.ts +0 -165
- package/src/shared/types/ClaudeSkill.ts +0 -64
- package/src/shared/types/Console.ts +0 -448
- package/src/shared/types/ConsoleGateway.ts +0 -196
- package/src/shared/types/Daemon.ts +0 -53
- 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/shared/types/DowncityConfig.ts +0 -215
- package/src/shared/types/ExecutionBinding.ts +0 -27
- package/src/shared/types/FeishuChannel.ts +0 -131
- package/src/shared/types/InlineInstant.ts +0 -96
- package/src/shared/types/Json.ts +0 -34
- package/src/shared/types/LlmConfig.ts +0 -115
- package/src/shared/types/LocalRpc.ts +0 -72
- package/src/shared/types/ModelBinding.ts +0 -18
- package/src/shared/types/Plugin.ts +0 -743
- package/src/shared/types/PluginApi.ts +0 -157
- package/src/shared/types/PluginLifecycle.ts +0 -35
- package/src/shared/types/QqChannel.ts +0 -501
- package/src/shared/types/QqGatewaySupport.ts +0 -97
- package/src/shared/types/README.md +0 -53
- package/src/shared/types/Sandbox.ts +0 -144
- package/src/shared/types/Service.ts +0 -223
- package/src/shared/types/ServiceSchedule.ts +0 -134
- package/src/shared/types/ServiceState.ts +0 -112
- package/src/shared/types/Services.ts +0 -100
- package/src/shared/types/Shell.ts +0 -103
- package/src/shared/types/SkillCommand.ts +0 -90
- package/src/shared/types/SkillPlugin.ts +0 -107
- package/src/shared/types/SkillRoot.ts +0 -49
- package/src/shared/types/Start.ts +0 -16
- package/src/shared/types/Store.ts +0 -526
- package/src/shared/types/TaskService.ts +0 -55
- package/src/shared/types/Template.ts +0 -9
- package/src/shared/types/Tts.ts +0 -99
- package/src/shared/types/TtsPlugin.ts +0 -164
- package/src/shared/types/Voice.ts +0 -68
- package/src/shared/types/VoicePlugin.ts +0 -194
- package/src/shared/types/WebPlugin.ts +0 -141
- package/src/shared/types/auth/AuthPermission.ts +0 -126
- package/src/shared/types/auth/AuthRoute.ts +0 -31
- package/src/shared/types/auth/AuthToken.ts +0 -47
- package/src/shared/types/auth/AuthTypes.ts +0 -235
- package/src/shared/utils/README.md +0 -49
- package/src/shared/utils/Template.ts +0 -28
- package/src/shared/utils/Time.ts +0 -77
- package/src/shared/utils/logger/Fetch.ts +0 -93
- package/src/shared/utils/logger/Format.ts +0 -15
- package/src/shared/utils/logger/FormatRequest.ts +0 -455
- package/src/shared/utils/logger/FormatResponse.ts +0 -265
- package/src/shared/utils/logger/FormatShared.ts +0 -258
- package/src/shared/utils/logger/Logger.ts +0 -372
- package/src/shared/utils/store/StoreChatAuthRepository.ts +0 -215
- package/src/types/agent/AgentContext.ts +0 -380
- package/src/types/agent/AgentRuntime.ts +0 -86
- package/src/types/session/SessionExecutor.ts +0 -33
- package/src/types/session/SessionHistoryMeta.ts +0 -26
- package/src/types/session/SessionHistoryPaths.ts +0 -33
- package/src/types/session/SessionLoop.ts +0 -95
- package/src/types/session/SessionMessages.ts +0 -90
- package/src/types/session/SessionPrompts.ts +0 -14
- package/src/types/session/SessionRun.ts +0 -116
- package/src/types/shell/ShellRuntime.ts +0 -94
- /package/bin/{shared/constants → constants}/DowncitySchema.js +0 -0
- /package/bin/{shared/utils/store → store}/StoreChannelAccountRepository.js +0 -0
- /package/bin/{shared/utils/store → store}/StoreEnvRepository.js +0 -0
- /package/bin/{shared/utils/store → store}/StoreModelRepository.js +0 -0
- /package/bin/{shared/utils/store → store}/StoreSchema.d.ts +0 -0
- /package/bin/{shared/utils/store → store}/StoreSecureSettings.d.ts +0 -0
- /package/bin/{shared/utils/store → store}/StoreSecureSettings.js +0 -0
- /package/bin/{shared/utils/store → store}/crypto.d.ts +0 -0
- /package/bin/{shared/utils/store → store}/schema.d.ts +0 -0
- /package/bin/{shared/utils/store → store}/schema.js +0 -0
- /package/bin/{shared/utils → utils}/Id.d.ts +0 -0
- /package/bin/{shared/utils → utils}/Id.js +0 -0
- /package/bin/{shared/utils → utils}/cli/Spinner.d.ts +0 -0
- /package/bin/{shared/utils → utils}/cli/Spinner.js +0 -0
- /package/src/{shared/utils/store → store}/StoreSecureSettings.ts +0 -0
- /package/src/{shared/utils/store → store}/schema.ts +0 -0
- /package/src/{shared/utils → utils}/Id.ts +0 -0
- /package/src/{shared/utils → utils}/cli/CliOutput.ts +0 -0
- /package/src/{shared/utils → utils}/cli/Spinner.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShellActionRuntime.d.ts","sourceRoot":"","sources":["../../../../src/services/shell/runtime/ShellActionRuntime.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EACV,iBAAiB,EAGlB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uCAAuC,CAAC;AAyB/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,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9B"}
|
|
@@ -1,463 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shell action 运行时编排入口。
|
|
3
|
-
*
|
|
4
|
-
* 关键点(中文)
|
|
5
|
-
* - 这里只负责编排 shell service 的公开动作:start/status/read/write/wait/close/exec。
|
|
6
|
-
* - 持久化、输出裁剪、waiter 协调、session 查找等共享细节拆到 `ShellActionRuntimeSupport.ts`。
|
|
7
|
-
* - 新版本所有状态都通过 ShellServiceState 显式传入,不再使用模块级单例。
|
|
8
|
-
*/
|
|
9
|
-
import fs from "fs-extra";
|
|
10
|
-
import { spawnShellProcess } from "../../../sandbox/SandboxRunner.js";
|
|
11
|
-
import { generateId } from "../../../shared/utils/Id.js";
|
|
12
|
-
import { getShellDir, getShellOutputPath, getShellSnapshotPath } from "./Paths.js";
|
|
13
|
-
import { appendSessionOutput, buildActionResponse, buildShellEnv, clampWaitMs, createOutputChunk, DEFAULT_EXEC_TIMEOUT_MS, DEFAULT_INLINE_WAIT_MS, DEFAULT_WAIT_TIMEOUT_MS, ensureCapacity, finalizeExit, isInMemorySession, isTerminalStatus, nowMs, persistSnapshot, resolveOwnerContextId, resolveSession, resolveShellCwd, scheduleCleanup, updateSessionSnapshot, } from "./ShellActionRuntimeSupport.js";
|
|
14
|
-
export { createShellServiceState } from "./ShellActionRuntimeSupport.js";
|
|
15
|
-
/**
|
|
16
|
-
* 绑定当前 shell service 实例的 execution runtime。
|
|
17
|
-
*/
|
|
18
|
-
export function bindShellRuntime(state, context) {
|
|
19
|
-
state.boundRuntime = context;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* 关闭当前实例持有的所有活动 shell。
|
|
23
|
-
*/
|
|
24
|
-
export async function closeAllShellSessions(state, force = false) {
|
|
25
|
-
const closing = Array.from(state.sessions.values()).map(async (session) => {
|
|
26
|
-
if (session.snapshot.status !== "running" &&
|
|
27
|
-
session.snapshot.status !== "starting") {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
try {
|
|
31
|
-
session.child.kill(force ? "SIGKILL" : "SIGTERM");
|
|
32
|
-
}
|
|
33
|
-
catch {
|
|
34
|
-
// ignore
|
|
35
|
-
}
|
|
36
|
-
await updateSessionSnapshot(session, (snapshot) => {
|
|
37
|
-
snapshot.status = force ? "killed" : "failed";
|
|
38
|
-
snapshot.exitCode = force ? -9 : -15;
|
|
39
|
-
snapshot.endedAt = nowMs();
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
await Promise.all(closing);
|
|
43
|
-
}
|
|
44
|
-
async function finalizeExitAfterOutputDrain(state, session, exitCode) {
|
|
45
|
-
// 关键点(中文)
|
|
46
|
-
// - `close` 事件到达时,stdout / stderr 的异步 append 链可能刚刚开始收尾。
|
|
47
|
-
// - 这里先让出一个事件循环 tick,再等待当前 writeChain,可显著降低“终态已到但尾部输出尚未可读”的竞态。
|
|
48
|
-
await new Promise((resolve) => {
|
|
49
|
-
const timer = setImmediate(resolve);
|
|
50
|
-
if (typeof timer.unref === "function")
|
|
51
|
-
timer.unref();
|
|
52
|
-
});
|
|
53
|
-
await session.writeChain.catch(() => undefined);
|
|
54
|
-
await finalizeExit(state, session, exitCode);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* 启动一个 shell session。
|
|
58
|
-
*/
|
|
59
|
-
export async function startShellSession(state, context, request) {
|
|
60
|
-
const cmd = String(request.cmd || "").trim();
|
|
61
|
-
if (!cmd)
|
|
62
|
-
throw new Error("shell.start requires a non-empty cmd");
|
|
63
|
-
ensureCapacity(state);
|
|
64
|
-
bindShellRuntime(state, context);
|
|
65
|
-
const shellId = `sh_${generateId()}`;
|
|
66
|
-
const cwd = resolveShellCwd(context, request.cwd);
|
|
67
|
-
const shellPath = String(request.shell || process.env.SHELL || "/bin/zsh").trim() || "/bin/zsh";
|
|
68
|
-
const login = request.login !== false;
|
|
69
|
-
const ownerContextId = resolveOwnerContextId(request.ownerContextId);
|
|
70
|
-
const canAutoNotifyByContext = ownerContextId
|
|
71
|
-
? Boolean(await context.chat.readMetaBySessionId(ownerContextId))
|
|
72
|
-
: false;
|
|
73
|
-
const shellDir = getShellDir(context.rootPath, shellId);
|
|
74
|
-
const snapshotFilePath = getShellSnapshotPath(context.rootPath, shellId);
|
|
75
|
-
const outputFilePath = getShellOutputPath(context.rootPath, shellId);
|
|
76
|
-
await fs.ensureDir(shellDir);
|
|
77
|
-
await fs.writeFile(outputFilePath, "", "utf-8");
|
|
78
|
-
const spawnResult = await spawnShellProcess({
|
|
79
|
-
context,
|
|
80
|
-
shellId,
|
|
81
|
-
shellDir,
|
|
82
|
-
cmd,
|
|
83
|
-
cwd,
|
|
84
|
-
shellPath,
|
|
85
|
-
login,
|
|
86
|
-
baseEnv: buildShellEnv(context),
|
|
87
|
-
});
|
|
88
|
-
const child = spawnResult.child;
|
|
89
|
-
const actualCwd = spawnResult.cwd;
|
|
90
|
-
const startedAt = nowMs();
|
|
91
|
-
let resolveCompletion = () => { };
|
|
92
|
-
const completionPromise = new Promise((resolve) => {
|
|
93
|
-
resolveCompletion = resolve;
|
|
94
|
-
});
|
|
95
|
-
const session = {
|
|
96
|
-
snapshot: {
|
|
97
|
-
shellId,
|
|
98
|
-
...(ownerContextId ? { ownerContextId } : {}),
|
|
99
|
-
cmd,
|
|
100
|
-
cwd: actualCwd,
|
|
101
|
-
shellPath,
|
|
102
|
-
sandboxed: spawnResult.sandboxed,
|
|
103
|
-
sandboxBackend: spawnResult.backend,
|
|
104
|
-
sandboxNetworkMode: spawnResult.networkMode,
|
|
105
|
-
status: "running",
|
|
106
|
-
...(typeof child.pid === "number" ? { pid: child.pid } : {}),
|
|
107
|
-
startedAt,
|
|
108
|
-
updatedAt: startedAt,
|
|
109
|
-
outputChars: 0,
|
|
110
|
-
droppedChars: 0,
|
|
111
|
-
version: 1,
|
|
112
|
-
autoNotifyOnExit: request.autoNotifyOnExit === true,
|
|
113
|
-
notificationSent: false,
|
|
114
|
-
externalRefs: [],
|
|
115
|
-
},
|
|
116
|
-
child,
|
|
117
|
-
outputText: "",
|
|
118
|
-
outputFilePath,
|
|
119
|
-
snapshotFilePath,
|
|
120
|
-
writeChain: Promise.resolve(),
|
|
121
|
-
cleanupTimer: null,
|
|
122
|
-
waiters: new Set(),
|
|
123
|
-
completionPromise,
|
|
124
|
-
resolveCompletion,
|
|
125
|
-
};
|
|
126
|
-
state.sessions.set(shellId, session);
|
|
127
|
-
// 关键点(中文)
|
|
128
|
-
// - 监听器必须在任何 `await` 之前挂上。
|
|
129
|
-
// - 对于 `printf` 这类瞬时命令,进程可能在持久化 snapshot 期间就已经退出。
|
|
130
|
-
// - 如果先 `await persistSnapshot()` 再注册 `close`,会错过退出事件,导致 session 永远停在 running。
|
|
131
|
-
child.stdout.on("data", (chunk) => {
|
|
132
|
-
void appendSessionOutput(session, String(chunk ?? "")).catch(() => undefined);
|
|
133
|
-
});
|
|
134
|
-
child.stderr.on("data", (chunk) => {
|
|
135
|
-
void appendSessionOutput(session, String(chunk ?? "")).catch(() => undefined);
|
|
136
|
-
});
|
|
137
|
-
child.on("error", (error) => {
|
|
138
|
-
void appendSessionOutput(session, `\n[process error] ${String(error)}\n`).catch(() => undefined);
|
|
139
|
-
void finalizeExitAfterOutputDrain(state, session, -1).catch(() => undefined);
|
|
140
|
-
});
|
|
141
|
-
child.on("close", (code) => {
|
|
142
|
-
void finalizeExitAfterOutputDrain(state, session, typeof code === "number" ? code : -1).catch(() => undefined);
|
|
143
|
-
});
|
|
144
|
-
await persistSnapshot(session);
|
|
145
|
-
const inlineWaitMs = clampWaitMs(request.inlineWaitMs, DEFAULT_INLINE_WAIT_MS);
|
|
146
|
-
await waitShellSession(state, context, {
|
|
147
|
-
shellId,
|
|
148
|
-
afterVersion: 1,
|
|
149
|
-
fromCursor: 0,
|
|
150
|
-
timeoutMs: inlineWaitMs,
|
|
151
|
-
maxOutputTokens: request.maxOutputTokens,
|
|
152
|
-
}).catch(() => undefined);
|
|
153
|
-
const latest = await resolveSession(state, context, { shellId, includeCompleted: true });
|
|
154
|
-
if (!latest) {
|
|
155
|
-
throw new Error(`shell session disappeared unexpectedly: ${shellId}`);
|
|
156
|
-
}
|
|
157
|
-
if (isInMemorySession(latest) &&
|
|
158
|
-
latest.snapshot.status === "running" &&
|
|
159
|
-
latest.snapshot.autoNotifyOnExit === false &&
|
|
160
|
-
request.autoNotifyOnExit !== false &&
|
|
161
|
-
canAutoNotifyByContext) {
|
|
162
|
-
latest.snapshot.autoNotifyOnExit = true;
|
|
163
|
-
await persistSnapshot(latest);
|
|
164
|
-
}
|
|
165
|
-
const chunk = createOutputChunk({
|
|
166
|
-
shellId,
|
|
167
|
-
outputText: latest.outputText,
|
|
168
|
-
fromCursor: 0,
|
|
169
|
-
context,
|
|
170
|
-
maxOutputTokens: request.maxOutputTokens,
|
|
171
|
-
});
|
|
172
|
-
return buildActionResponse({
|
|
173
|
-
shell: latest.snapshot,
|
|
174
|
-
chunk,
|
|
175
|
-
note: latest.snapshot.status === "running"
|
|
176
|
-
? "shell started and is still running"
|
|
177
|
-
: "shell finished during inline wait",
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* 查询 shell session 状态。
|
|
182
|
-
*/
|
|
183
|
-
export async function getShellSessionStatus(state, context, request) {
|
|
184
|
-
const session = await resolveSession(state, context, {
|
|
185
|
-
...request,
|
|
186
|
-
includeCompleted: request.includeCompleted !== false,
|
|
187
|
-
});
|
|
188
|
-
if (!session) {
|
|
189
|
-
throw new Error("shell session not found");
|
|
190
|
-
}
|
|
191
|
-
return buildActionResponse({
|
|
192
|
-
shell: session.snapshot,
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* 读取 shell session 输出。
|
|
197
|
-
*/
|
|
198
|
-
export async function readShellSession(state, context, request) {
|
|
199
|
-
const session = await resolveSession(state, context, {
|
|
200
|
-
...request,
|
|
201
|
-
includeCompleted: request.includeCompleted !== false,
|
|
202
|
-
});
|
|
203
|
-
if (!session) {
|
|
204
|
-
throw new Error("shell session not found");
|
|
205
|
-
}
|
|
206
|
-
const chunk = createOutputChunk({
|
|
207
|
-
shellId: session.snapshot.shellId,
|
|
208
|
-
outputText: session.outputText,
|
|
209
|
-
fromCursor: request.fromCursor,
|
|
210
|
-
context,
|
|
211
|
-
maxOutputTokens: request.maxOutputTokens,
|
|
212
|
-
});
|
|
213
|
-
return buildActionResponse({
|
|
214
|
-
shell: session.snapshot,
|
|
215
|
-
chunk,
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* 向 shell session 写入 stdin。
|
|
220
|
-
*/
|
|
221
|
-
export async function writeShellSession(state, context, request) {
|
|
222
|
-
const shellId = String(request.shellId || "").trim();
|
|
223
|
-
const chars = String(request.chars ?? "");
|
|
224
|
-
if (!shellId)
|
|
225
|
-
throw new Error("shell.write requires shellId");
|
|
226
|
-
const session = await resolveSession(state, context, {
|
|
227
|
-
shellId,
|
|
228
|
-
includeCompleted: true,
|
|
229
|
-
});
|
|
230
|
-
if (!session || !isInMemorySession(session)) {
|
|
231
|
-
throw new Error("shell session is not active in memory");
|
|
232
|
-
}
|
|
233
|
-
if (session.snapshot.status !== "running" && session.snapshot.status !== "starting") {
|
|
234
|
-
throw new Error(`shell session ${shellId} is not running`);
|
|
235
|
-
}
|
|
236
|
-
if (!session.child.stdin.writable) {
|
|
237
|
-
throw new Error(`shell session ${shellId} stdin is closed`);
|
|
238
|
-
}
|
|
239
|
-
await new Promise((resolve, reject) => {
|
|
240
|
-
session.child.stdin.write(chars, (error) => {
|
|
241
|
-
if (error) {
|
|
242
|
-
reject(error);
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
resolve();
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
return buildActionResponse({
|
|
249
|
-
shell: session.snapshot,
|
|
250
|
-
note: chars ? "stdin written" : "no chars written",
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* 等待 shell session 状态变化。
|
|
255
|
-
*/
|
|
256
|
-
export async function waitShellSession(state, context, request) {
|
|
257
|
-
const shellId = String(request.shellId || "").trim();
|
|
258
|
-
if (!shellId)
|
|
259
|
-
throw new Error("shell.wait requires shellId");
|
|
260
|
-
const session = await resolveSession(state, context, {
|
|
261
|
-
shellId,
|
|
262
|
-
includeCompleted: true,
|
|
263
|
-
});
|
|
264
|
-
if (!session)
|
|
265
|
-
throw new Error("shell session not found");
|
|
266
|
-
if (isInMemorySession(session) &&
|
|
267
|
-
typeof request.afterVersion === "number" &&
|
|
268
|
-
session.snapshot.version <= request.afterVersion &&
|
|
269
|
-
(session.snapshot.status === "running" || session.snapshot.status === "starting")) {
|
|
270
|
-
const afterVersion = request.afterVersion;
|
|
271
|
-
await new Promise((resolve) => {
|
|
272
|
-
let settled = false;
|
|
273
|
-
let waiter;
|
|
274
|
-
const finish = () => {
|
|
275
|
-
if (settled)
|
|
276
|
-
return;
|
|
277
|
-
settled = true;
|
|
278
|
-
clearTimeout(waiter.timer);
|
|
279
|
-
session.waiters.delete(waiter);
|
|
280
|
-
resolve();
|
|
281
|
-
};
|
|
282
|
-
const timer = setTimeout(() => {
|
|
283
|
-
finish();
|
|
284
|
-
}, clampWaitMs(request.timeoutMs, DEFAULT_WAIT_TIMEOUT_MS));
|
|
285
|
-
waiter = {
|
|
286
|
-
resolve: finish,
|
|
287
|
-
timer,
|
|
288
|
-
};
|
|
289
|
-
session.waiters.add(waiter);
|
|
290
|
-
// 关键点(中文)
|
|
291
|
-
// - 这里必须在注册 waiter 之后立刻复查一次状态。
|
|
292
|
-
// - 否则如果 shell 恰好在“进入 if 判断”与“waiter 真正挂入集合”之间完成,
|
|
293
|
-
// notifyWaiters 会被错过,导致当前 wait 一直睡到 timeout。
|
|
294
|
-
if (session.snapshot.version > afterVersion ||
|
|
295
|
-
isTerminalStatus(session.snapshot.status)) {
|
|
296
|
-
finish();
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
const refreshed = await resolveSession(state, context, {
|
|
301
|
-
shellId,
|
|
302
|
-
includeCompleted: true,
|
|
303
|
-
});
|
|
304
|
-
if (!refreshed)
|
|
305
|
-
throw new Error("shell session not found after wait");
|
|
306
|
-
const chunk = createOutputChunk({
|
|
307
|
-
shellId,
|
|
308
|
-
outputText: refreshed.outputText,
|
|
309
|
-
fromCursor: request.fromCursor,
|
|
310
|
-
context,
|
|
311
|
-
maxOutputTokens: request.maxOutputTokens,
|
|
312
|
-
});
|
|
313
|
-
return buildActionResponse({
|
|
314
|
-
shell: refreshed.snapshot,
|
|
315
|
-
chunk,
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* 关闭 shell session。
|
|
320
|
-
*/
|
|
321
|
-
export async function closeShellSession(state, context, request) {
|
|
322
|
-
const shellId = String(request.shellId || "").trim();
|
|
323
|
-
if (!shellId)
|
|
324
|
-
throw new Error("shell.close requires shellId");
|
|
325
|
-
const session = await resolveSession(state, context, {
|
|
326
|
-
shellId,
|
|
327
|
-
includeCompleted: true,
|
|
328
|
-
});
|
|
329
|
-
if (!session)
|
|
330
|
-
throw new Error("shell session not found");
|
|
331
|
-
if (!isInMemorySession(session)) {
|
|
332
|
-
return buildActionResponse({
|
|
333
|
-
shell: session.snapshot,
|
|
334
|
-
note: "shell already completed and only persisted snapshot remains",
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
if (session.cleanupTimer) {
|
|
338
|
-
clearTimeout(session.cleanupTimer);
|
|
339
|
-
session.cleanupTimer = null;
|
|
340
|
-
}
|
|
341
|
-
if (session.snapshot.status === "running" || session.snapshot.status === "starting") {
|
|
342
|
-
try {
|
|
343
|
-
session.child.kill(request.force === true ? "SIGKILL" : "SIGTERM");
|
|
344
|
-
}
|
|
345
|
-
catch {
|
|
346
|
-
// ignore
|
|
347
|
-
}
|
|
348
|
-
await updateSessionSnapshot(session, (snapshot) => {
|
|
349
|
-
snapshot.status = request.force === true ? "killed" : "failed";
|
|
350
|
-
snapshot.exitCode = request.force === true ? -9 : -15;
|
|
351
|
-
snapshot.endedAt = nowMs();
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
scheduleCleanup(state, shellId);
|
|
355
|
-
return buildActionResponse({
|
|
356
|
-
shell: session.snapshot,
|
|
357
|
-
note: "shell close requested",
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* 以 one-shot 模式执行 shell command。
|
|
362
|
-
*/
|
|
363
|
-
export async function execShellCommand(state, context, request) {
|
|
364
|
-
const timeoutMs = clampWaitMs(request.timeoutMs, DEFAULT_EXEC_TIMEOUT_MS);
|
|
365
|
-
const started = await startShellSession(state, context, {
|
|
366
|
-
cmd: request.cmd,
|
|
367
|
-
...(request.cwd ? { cwd: request.cwd } : {}),
|
|
368
|
-
...(request.shell ? { shell: request.shell } : {}),
|
|
369
|
-
login: request.login,
|
|
370
|
-
inlineWaitMs: Math.min(DEFAULT_INLINE_WAIT_MS, timeoutMs),
|
|
371
|
-
maxOutputTokens: request.maxOutputTokens,
|
|
372
|
-
autoNotifyOnExit: false,
|
|
373
|
-
});
|
|
374
|
-
let current = started;
|
|
375
|
-
let fromCursor = current.chunk?.endCursor ?? 0;
|
|
376
|
-
const outputParts = [];
|
|
377
|
-
if (current.chunk?.output) {
|
|
378
|
-
outputParts.push(current.chunk.output);
|
|
379
|
-
}
|
|
380
|
-
const deadline = nowMs() + timeoutMs;
|
|
381
|
-
const sleep = async (ms) => {
|
|
382
|
-
await new Promise((resolve) => {
|
|
383
|
-
const timer = setTimeout(resolve, ms);
|
|
384
|
-
if (typeof timer.unref === "function")
|
|
385
|
-
timer.unref();
|
|
386
|
-
});
|
|
387
|
-
};
|
|
388
|
-
while (!isTerminalStatus(current.shell.status)) {
|
|
389
|
-
const remaining = deadline - nowMs();
|
|
390
|
-
if (remaining <= 0) {
|
|
391
|
-
await closeShellSession(state, context, {
|
|
392
|
-
shellId: current.shell.shellId,
|
|
393
|
-
force: true,
|
|
394
|
-
});
|
|
395
|
-
throw new Error(`shell.exec timed out after ${timeoutMs}ms. Use shell_start for long-running commands.`);
|
|
396
|
-
}
|
|
397
|
-
const inMemory = state.sessions.get(current.shell.shellId);
|
|
398
|
-
if (inMemory &&
|
|
399
|
-
(inMemory.snapshot.status === "running" ||
|
|
400
|
-
inMemory.snapshot.status === "starting")) {
|
|
401
|
-
await Promise.race([
|
|
402
|
-
inMemory.completionPromise,
|
|
403
|
-
sleep(Math.min(remaining, 250)),
|
|
404
|
-
]);
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
await sleep(Math.min(remaining, 250));
|
|
408
|
-
}
|
|
409
|
-
const refreshed = await resolveSession(state, context, {
|
|
410
|
-
shellId: current.shell.shellId,
|
|
411
|
-
includeCompleted: true,
|
|
412
|
-
});
|
|
413
|
-
if (!refreshed) {
|
|
414
|
-
throw new Error(`shell session disappeared unexpectedly: ${current.shell.shellId}`);
|
|
415
|
-
}
|
|
416
|
-
const chunk = createOutputChunk({
|
|
417
|
-
shellId: current.shell.shellId,
|
|
418
|
-
outputText: refreshed.outputText,
|
|
419
|
-
fromCursor,
|
|
420
|
-
context,
|
|
421
|
-
maxOutputTokens: request.maxOutputTokens,
|
|
422
|
-
});
|
|
423
|
-
current = buildActionResponse({
|
|
424
|
-
shell: refreshed.snapshot,
|
|
425
|
-
chunk,
|
|
426
|
-
});
|
|
427
|
-
if (chunk.output) {
|
|
428
|
-
outputParts.push(chunk.output);
|
|
429
|
-
}
|
|
430
|
-
if (typeof chunk.endCursor === "number") {
|
|
431
|
-
fromCursor = chunk.endCursor;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
const finalSession = state.sessions.get(current.shell.shellId);
|
|
435
|
-
if (finalSession) {
|
|
436
|
-
await finalSession.completionPromise;
|
|
437
|
-
await finalSession.writeChain.catch(() => undefined);
|
|
438
|
-
}
|
|
439
|
-
await closeShellSession(state, context, {
|
|
440
|
-
shellId: current.shell.shellId,
|
|
441
|
-
force: false,
|
|
442
|
-
}).catch(() => undefined);
|
|
443
|
-
const completed = await resolveSession(state, context, {
|
|
444
|
-
shellId: current.shell.shellId,
|
|
445
|
-
includeCompleted: true,
|
|
446
|
-
});
|
|
447
|
-
const fullOutput = completed?.outputText ?? outputParts.join("");
|
|
448
|
-
const originalLines = fullOutput ? fullOutput.split("\n").length : 0;
|
|
449
|
-
return buildActionResponse({
|
|
450
|
-
shell: current.shell,
|
|
451
|
-
chunk: {
|
|
452
|
-
shellId: current.shell.shellId,
|
|
453
|
-
output: fullOutput,
|
|
454
|
-
startCursor: 0,
|
|
455
|
-
endCursor: fullOutput.length,
|
|
456
|
-
originalChars: fullOutput.length,
|
|
457
|
-
originalLines,
|
|
458
|
-
hasMoreOutput: false,
|
|
459
|
-
},
|
|
460
|
-
note: "shell exec completed in one-shot mode",
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
//# sourceMappingURL=ShellActionRuntime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShellActionRuntime.js","sourceRoot":"","sources":["../../../../src/services/shell/runtime/ShellActionRuntime.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAM/D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAWjD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACnF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,iBAAiB,EAEjB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,EACL,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,eAAe,EACf,qBAAqB,GACtB,MAAM,gCAAgC,C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,CAAC,OAAO;YAC9B,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,CAAC;YACd,SAAS,EAAE,UAAU,CAAC,MAAM;YAC5B,aAAa,EAAE,UAAU,CAAC,MAAM;YAChC,aAAa;YACb,aAAa,EAAE,KAAK;SACrB;QACD,IAAI,EAAE,uCAAuC;KAC9C,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shell action 运行时辅助能力。
|
|
3
|
-
*
|
|
4
|
-
* 关键点(中文)
|
|
5
|
-
* - 统一承载 ShellActionRuntime 的内部共享逻辑:环境组装、持久化、waiter 协调、session 查找。
|
|
6
|
-
* - 对外暴露给 ShellActionRuntime 的只有纯运行时辅助函数,不直接承担 service action 编排。
|
|
7
|
-
*/
|
|
8
|
-
import type { AgentContext } from "../../../types/agent/AgentContext.js";
|
|
9
|
-
import type { ShellServiceState, ShellSessionRuntimeState } from "../../../types/shell/ShellRuntime.js";
|
|
10
|
-
import type { ShellActionResponse, ShellOutputChunk, ShellQueryRequest, ShellSessionSnapshot, ShellSessionStatus } from "../../shell/types/ShellService.js";
|
|
11
|
-
/**
|
|
12
|
-
* shell.start 默认内联等待时间。
|
|
13
|
-
*/
|
|
14
|
-
export declare const DEFAULT_INLINE_WAIT_MS = 1200;
|
|
15
|
-
/**
|
|
16
|
-
* shell.wait 默认等待超时。
|
|
17
|
-
*/
|
|
18
|
-
export declare const DEFAULT_WAIT_TIMEOUT_MS = 10000;
|
|
19
|
-
/**
|
|
20
|
-
* shell.exec 默认总超时。
|
|
21
|
-
*/
|
|
22
|
-
export declare const DEFAULT_EXEC_TIMEOUT_MS = 60000;
|
|
23
|
-
/**
|
|
24
|
-
* 创建 shell service 初始状态。
|
|
25
|
-
*/
|
|
26
|
-
export declare function createShellServiceState(): ShellServiceState;
|
|
27
|
-
/**
|
|
28
|
-
* 返回当前毫秒时间戳。
|
|
29
|
-
*/
|
|
30
|
-
export declare function nowMs(): number;
|
|
31
|
-
/**
|
|
32
|
-
* 归一化 wait/timeout 参数。
|
|
33
|
-
*/
|
|
34
|
-
export declare function clampWaitMs(value: number | undefined, fallback: number): number;
|
|
35
|
-
/**
|
|
36
|
-
* 构造 shell 子进程环境变量。
|
|
37
|
-
*/
|
|
38
|
-
export declare function buildShellEnv(context: AgentContext): NodeJS.ProcessEnv;
|
|
39
|
-
/**
|
|
40
|
-
* 解析 shell 执行目录。
|
|
41
|
-
*/
|
|
42
|
-
export declare function resolveShellCwd(context: AgentContext, cwd?: string): string;
|
|
43
|
-
/**
|
|
44
|
-
* 推断 shell 所属的 owner context。
|
|
45
|
-
*/
|
|
46
|
-
export declare function resolveOwnerContextId(explicit?: string): string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* 判断 shell 是否已进入终态。
|
|
49
|
-
*/
|
|
50
|
-
export declare function isTerminalStatus(status: ShellSessionStatus): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* 持久化 shell snapshot。
|
|
53
|
-
*/
|
|
54
|
-
export declare function persistSnapshot(session: ShellSessionRuntimeState): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* 更新 session snapshot 并唤醒等待者。
|
|
57
|
-
*/
|
|
58
|
-
export declare function updateSessionSnapshot(session: ShellSessionRuntimeState, updater: (snapshot: ShellSessionSnapshot) => void | ShellSessionSnapshot): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* 追加 shell 输出并同步更新快照。
|
|
61
|
-
*/
|
|
62
|
-
export declare function appendSessionOutput(session: ShellSessionRuntimeState, raw: string): Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* 为终态 shell 安排延迟清理。
|
|
65
|
-
*/
|
|
66
|
-
export declare function scheduleCleanup(state: ShellServiceState, shellId: string): void;
|
|
67
|
-
/**
|
|
68
|
-
* 控制 in-memory shell session 容量。
|
|
69
|
-
*/
|
|
70
|
-
export declare function ensureCapacity(state: ShellServiceState): void;
|
|
71
|
-
/**
|
|
72
|
-
* 按 shellId 或 ownerContext 解析目标 session。
|
|
73
|
-
*/
|
|
74
|
-
export declare function resolveSession(state: ShellServiceState, context: AgentContext, query: ShellQueryRequest): Promise<ShellSessionRuntimeState | {
|
|
75
|
-
snapshot: ShellSessionSnapshot;
|
|
76
|
-
outputText: string;
|
|
77
|
-
} | null>;
|
|
78
|
-
/**
|
|
79
|
-
* 根据游标与 token 限制构造输出块。
|
|
80
|
-
*/
|
|
81
|
-
export declare function createOutputChunk(params: {
|
|
82
|
-
shellId: string;
|
|
83
|
-
outputText: string;
|
|
84
|
-
fromCursor?: number;
|
|
85
|
-
context: AgentContext;
|
|
86
|
-
maxOutputTokens?: number;
|
|
87
|
-
}): ShellOutputChunk;
|
|
88
|
-
/**
|
|
89
|
-
* 构造 shell action 标准返回。
|
|
90
|
-
*/
|
|
91
|
-
export declare function buildActionResponse(params: {
|
|
92
|
-
shell: ShellSessionSnapshot;
|
|
93
|
-
chunk?: ShellOutputChunk;
|
|
94
|
-
note?: string;
|
|
95
|
-
}): ShellActionResponse;
|
|
96
|
-
/**
|
|
97
|
-
* 判断解析出的 session 是否仍在内存中活动。
|
|
98
|
-
*/
|
|
99
|
-
export declare function isInMemorySession(value: ShellSessionRuntimeState | {
|
|
100
|
-
snapshot: ShellSessionSnapshot;
|
|
101
|
-
outputText: string;
|
|
102
|
-
}): value is ShellSessionRuntimeState;
|
|
103
|
-
/**
|
|
104
|
-
* 处理 shell 退出后的状态收口。
|
|
105
|
-
*/
|
|
106
|
-
export declare function finalizeExit(state: ShellServiceState, session: ShellSessionRuntimeState, exitCode: number): Promise<void>;
|
|
107
|
-
//# sourceMappingURL=ShellActionRuntimeSupport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShellActionRuntimeSupport.d.ts","sourceRoot":"","sources":["../../../../src/services/shell/runtime/ShellActionRuntimeSupport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA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