@downcity/agent 1.1.7 → 1.1.10
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/agent/AgentContext.d.ts.map +1 -1
- package/bin/agent/AgentContext.js +2 -1
- package/bin/agent/AgentContext.js.map +1 -1
- package/bin/agent/AgentContextTypes.d.ts +11 -7
- package/bin/agent/AgentContextTypes.d.ts.map +1 -1
- package/bin/agent/AgentRuntime.d.ts +6 -1
- package/bin/agent/AgentRuntime.d.ts.map +1 -1
- package/bin/agent/AgentRuntime.js +24 -5
- package/bin/agent/AgentRuntime.js.map +1 -1
- package/bin/agent/AgentRuntimeState.d.ts +1 -1
- package/bin/agent/AgentRuntimeState.d.ts.map +1 -1
- package/bin/agent/AgentRuntimeState.js +58 -2
- package/bin/agent/AgentRuntimeState.js.map +1 -1
- package/bin/agent/AgentRuntimeTypes.d.ts +7 -3
- package/bin/agent/AgentRuntimeTypes.d.ts.map +1 -1
- package/bin/agent/project/AgentInitializer.d.ts +4 -3
- package/bin/agent/project/AgentInitializer.d.ts.map +1 -1
- package/bin/agent/project/AgentInitializer.js +79 -48
- package/bin/agent/project/AgentInitializer.js.map +1 -1
- package/bin/agent/project/ProjectExecutionBinding.d.ts +2 -2
- package/bin/agent/project/types/AgentProject.d.ts +80 -0
- package/bin/agent/project/types/AgentProject.d.ts.map +1 -0
- package/bin/agent/project/types/AgentProject.js.map +1 -0
- package/bin/config/Config.d.ts +1 -1
- package/bin/config/Config.d.ts.map +1 -1
- package/bin/config/Config.js +2 -21
- package/bin/config/Config.js.map +1 -1
- package/bin/config/DowncityDefault.d.ts +3 -0
- package/bin/config/DowncityDefault.d.ts.map +1 -0
- package/bin/config/DowncityDefault.js.map +1 -0
- package/bin/config/DowncitySchema.d.ts +3 -0
- package/bin/config/DowncitySchema.d.ts.map +1 -0
- package/bin/config/DowncitySchema.js.map +1 -0
- package/bin/config/Paths.d.ts +1 -5
- package/bin/config/Paths.d.ts.map +1 -1
- package/bin/config/Paths.js +2 -8
- package/bin/config/Paths.js.map +1 -1
- package/bin/config/types/DowncityConfig.d.ts +214 -0
- package/bin/config/types/DowncityConfig.d.ts.map +1 -0
- package/bin/config/types/DowncityConfig.js.map +1 -0
- package/bin/config/types/ExecutionBinding.d.ts.map +1 -0
- package/bin/config/types/ExecutionBinding.js.map +1 -0
- package/bin/config/types/LlmConfig.d.ts.map +1 -0
- package/bin/config/types/LlmConfig.js.map +1 -0
- package/bin/config/types/ModelBinding.d.ts.map +1 -0
- package/bin/config/types/ModelBinding.js.map +1 -0
- package/bin/config/types/Start.d.ts.map +1 -0
- package/bin/config/types/Start.js.map +1 -0
- package/bin/host/daemon/Api.d.ts +1 -1
- package/bin/host/daemon/Api.d.ts.map +1 -1
- package/bin/host/daemon/Client.js +1 -1
- package/bin/host/daemon/Client.js.map +1 -1
- package/bin/host/daemon/Manager.d.ts +1 -1
- package/bin/host/daemon/Manager.d.ts.map +1 -1
- package/bin/host/daemon/Manager.js +1 -1
- package/bin/host/daemon/Manager.js.map +1 -1
- package/bin/host/daemon/ProjectSetup.d.ts +2 -1
- package/bin/host/daemon/ProjectSetup.d.ts.map +1 -1
- package/bin/host/daemon/ProjectSetup.js +14 -21
- package/bin/host/daemon/ProjectSetup.js.map +1 -1
- package/bin/host/daemon/types/Daemon.d.ts.map +1 -0
- package/bin/host/daemon/types/Daemon.js.map +1 -0
- package/bin/host/http/Server.d.ts.map +1 -0
- package/bin/host/http/Server.js +112 -0
- package/bin/host/http/Server.js.map +1 -0
- package/bin/host/http/auth/AuthEnv.d.ts +36 -0
- package/bin/host/http/auth/AuthEnv.d.ts.map +1 -0
- package/bin/host/http/auth/AuthEnv.js +54 -0
- package/bin/host/http/auth/AuthEnv.js.map +1 -0
- package/bin/host/http/auth/AuthError.d.ts.map +1 -0
- package/bin/host/http/auth/AuthError.js.map +1 -0
- package/bin/host/http/auth/CliAuthStateStore.d.ts +29 -0
- package/bin/host/http/auth/CliAuthStateStore.d.ts.map +1 -0
- package/bin/host/http/auth/CliAuthStateStore.js +26 -0
- package/bin/host/http/auth/CliAuthStateStore.js.map +1 -0
- package/bin/host/http/auth/PasswordHasher.d.ts.map +1 -0
- package/bin/host/http/auth/PasswordHasher.js.map +1 -0
- package/bin/host/http/auth/TokenService.d.ts.map +1 -0
- package/bin/host/http/auth/TokenService.js.map +1 -0
- package/bin/host/http/auth/types/AuthPermission.d.ts.map +1 -0
- package/bin/host/http/auth/types/AuthPermission.js.map +1 -0
- package/bin/host/http/auth/types/AuthRoute.d.ts.map +1 -0
- package/bin/host/http/auth/types/AuthRoute.js.map +1 -0
- package/bin/host/http/auth/types/AuthToken.d.ts.map +1 -0
- package/bin/host/http/auth/types/AuthToken.js.map +1 -0
- package/bin/host/http/auth/types/AuthTypes.d.ts.map +1 -0
- package/bin/host/http/auth/types/AuthTypes.js.map +1 -0
- package/bin/host/http/control/AuthControlService.d.ts +30 -0
- package/bin/host/http/control/AuthControlService.d.ts.map +1 -0
- package/bin/host/http/control/AuthControlService.js +120 -0
- package/bin/host/http/control/AuthControlService.js.map +1 -0
- package/bin/host/http/control/CommonHelpers.d.ts.map +1 -0
- package/bin/host/http/control/CommonHelpers.js.map +1 -0
- package/bin/host/http/control/ControlApiRoutes.d.ts +14 -0
- package/bin/host/http/control/ControlApiRoutes.d.ts.map +1 -0
- package/bin/host/http/control/ControlApiRoutes.js +27 -0
- package/bin/host/http/control/ControlApiRoutes.js.map +1 -0
- package/bin/host/http/control/ControlAuthorizationRoutes.d.ts +17 -0
- package/bin/host/http/control/ControlAuthorizationRoutes.d.ts.map +1 -0
- package/bin/host/http/control/ControlAuthorizationRoutes.js +85 -0
- package/bin/host/http/control/ControlAuthorizationRoutes.js.map +1 -0
- package/bin/host/http/control/ControlRouter.d.ts +19 -0
- package/bin/host/http/control/ControlRouter.d.ts.map +1 -0
- package/bin/host/http/control/ControlRouter.js +26 -0
- package/bin/host/http/control/ControlRouter.js.map +1 -0
- package/bin/host/http/control/ExecuteBySession.d.ts +39 -0
- package/bin/host/http/control/ExecuteBySession.d.ts.map +1 -0
- package/bin/host/http/control/ExecuteBySession.js +128 -0
- package/bin/host/http/control/ExecuteBySession.js.map +1 -0
- package/bin/host/http/control/ExecuteInput.d.ts +18 -0
- package/bin/host/http/control/ExecuteInput.d.ts.map +1 -0
- package/bin/host/http/control/ExecuteInput.js +201 -0
- package/bin/host/http/control/ExecuteInput.js.map +1 -0
- package/bin/host/http/control/Helpers.d.ts.map +1 -0
- package/bin/host/http/control/Helpers.js.map +1 -0
- package/bin/host/http/control/MessageTimeline.d.ts +22 -0
- package/bin/host/http/control/MessageTimeline.d.ts.map +1 -0
- package/bin/host/http/control/MessageTimeline.js +226 -0
- package/bin/host/http/control/MessageTimeline.js.map +1 -0
- package/bin/host/http/control/ModelRoutes.d.ts +13 -0
- package/bin/host/http/control/ModelRoutes.d.ts.map +1 -0
- package/bin/host/http/control/ModelRoutes.js +87 -0
- package/bin/host/http/control/ModelRoutes.js.map +1 -0
- package/bin/host/http/control/OverviewRoutes.d.ts +13 -0
- package/bin/host/http/control/OverviewRoutes.d.ts.map +1 -0
- package/bin/host/http/control/OverviewRoutes.js +93 -0
- package/bin/host/http/control/OverviewRoutes.js.map +1 -0
- package/bin/host/http/control/SessionRoutes.d.ts +14 -0
- package/bin/host/http/control/SessionRoutes.d.ts.map +1 -0
- package/bin/host/http/control/SessionRoutes.js +333 -0
- package/bin/host/http/control/SessionRoutes.js.map +1 -0
- package/bin/host/http/control/SessionSummaryStore.d.ts +19 -0
- package/bin/host/http/control/SessionSummaryStore.d.ts.map +1 -0
- package/bin/host/http/control/SessionSummaryStore.js +62 -0
- package/bin/host/http/control/SessionSummaryStore.js.map +1 -0
- package/bin/host/http/control/TaskRoutes.d.ts +13 -0
- package/bin/host/http/control/TaskRoutes.d.ts.map +1 -0
- package/bin/host/http/control/TaskRoutes.js +335 -0
- package/bin/host/http/control/TaskRoutes.js.map +1 -0
- package/bin/host/http/control/TaskStore.d.ts +33 -0
- package/bin/host/http/control/TaskStore.d.ts.map +1 -0
- package/bin/host/http/control/TaskStore.js +157 -0
- package/bin/host/http/control/TaskStore.js.map +1 -0
- package/bin/host/http/control/types/AuthControl.d.ts +30 -0
- package/bin/host/http/control/types/AuthControl.d.ts.map +1 -0
- package/bin/host/http/control/types/AuthControl.js.map +1 -0
- package/bin/host/http/control/types/ControlRoutes.d.ts +28 -0
- package/bin/host/http/control/types/ControlRoutes.d.ts.map +1 -0
- package/bin/host/http/control/types/ControlRoutes.js.map +1 -0
- package/bin/host/http/control/types/ControlSessionExecute.d.ts.map +1 -0
- package/bin/host/http/control/types/ControlSessionExecute.js.map +1 -0
- package/bin/host/http/control/types/ControlViewData.d.ts +320 -0
- package/bin/host/http/control/types/ControlViewData.d.ts.map +1 -0
- package/bin/host/http/control/types/ControlViewData.js.map +1 -0
- package/bin/host/http/execute/execute.d.ts.map +1 -0
- package/bin/host/http/execute/execute.js +90 -0
- package/bin/host/http/execute/execute.js.map +1 -0
- package/bin/host/http/execute/types/InlineInstant.d.ts.map +1 -0
- package/bin/host/http/execute/types/InlineInstant.js.map +1 -0
- package/bin/host/http/health/health.d.ts.map +1 -0
- package/bin/host/http/health/health.js.map +1 -0
- package/bin/host/http/plugins/plugins.d.ts.map +1 -0
- package/bin/host/http/plugins/plugins.js +55 -0
- package/bin/host/http/plugins/plugins.js.map +1 -0
- package/bin/host/http/services/services.d.ts.map +1 -0
- package/bin/host/http/services/services.js +79 -0
- package/bin/host/http/services/services.js.map +1 -0
- package/bin/host/http/static/static.d.ts.map +1 -0
- package/bin/host/http/static/static.js +97 -0
- package/bin/host/http/static/static.js.map +1 -0
- package/bin/host/rpc/Server.d.ts +1 -1
- package/bin/host/rpc/Server.d.ts.map +1 -1
- package/bin/host/rpc/Server.js +1 -1
- package/bin/host/rpc/Server.js.map +1 -1
- package/bin/host/rpc/types/LocalRpc.d.ts +69 -0
- package/bin/host/rpc/types/LocalRpc.d.ts.map +1 -0
- package/bin/host/rpc/types/LocalRpc.js.map +1 -0
- package/bin/host/runtime/AgentHostRuntime.d.ts +1 -1
- package/bin/host/runtime/AgentHostRuntime.d.ts.map +1 -1
- package/bin/host/runtime/AgentHostRuntime.js +2 -3
- package/bin/host/runtime/AgentHostRuntime.js.map +1 -1
- package/bin/host/runtime/CityPaths.d.ts +0 -3
- package/bin/host/runtime/CityPaths.d.ts.map +1 -1
- package/bin/host/runtime/CityPaths.js +0 -3
- package/bin/host/runtime/CityPaths.js.map +1 -1
- package/bin/host/runtime/CityRegistry.d.ts +1 -1
- package/bin/host/runtime/CityRegistry.d.ts.map +1 -1
- package/bin/host/runtime/types/Platform.d.ts.map +1 -0
- package/bin/host/runtime/types/Platform.js.map +1 -0
- package/bin/host/runtime/types/PlatformGateway.d.ts.map +1 -0
- package/bin/host/runtime/types/PlatformGateway.js.map +1 -0
- package/bin/host/sdk/Agent.d.ts +2 -1
- package/bin/host/sdk/Agent.d.ts.map +1 -1
- package/bin/host/sdk/Agent.js +28 -6
- package/bin/host/sdk/Agent.js.map +1 -1
- package/bin/host/sdk/AgentSdkTypes.d.ts +12 -3
- package/bin/host/sdk/AgentSdkTypes.d.ts.map +1 -1
- package/bin/host/sdk/RemoteAgent.d.ts +1 -1
- package/bin/host/sdk/Session.d.ts +1 -1
- package/bin/host/sdk/SessionMetadata.d.ts +1 -1
- package/bin/host/types/AgentHost.d.ts +188 -0
- package/bin/host/types/AgentHost.d.ts.map +1 -0
- package/bin/host/types/AgentHost.js.map +1 -0
- package/bin/host/types/Store.d.ts +408 -0
- package/bin/host/types/Store.d.ts.map +1 -0
- package/bin/host/types/Store.js.map +1 -0
- package/bin/index.d.ts +54 -58
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +52 -56
- package/bin/index.js.map +1 -1
- package/bin/model/CreateModel.d.ts +3 -3
- package/bin/model/CreateModel.d.ts.map +1 -1
- package/bin/model/CreateModel.js +15 -14
- package/bin/model/CreateModel.js.map +1 -1
- package/bin/model/ModelManager.d.ts +1 -1
- package/bin/plugin/builtins/asr/Dependency.d.ts +77 -0
- package/bin/plugin/builtins/asr/Dependency.d.ts.map +1 -0
- package/bin/plugin/builtins/asr/Dependency.js +238 -0
- package/bin/plugin/builtins/asr/Dependency.js.map +1 -0
- package/bin/plugin/builtins/asr/ModelCatalog.d.ts.map +1 -0
- package/bin/plugin/builtins/asr/ModelCatalog.js +25 -0
- package/bin/plugin/builtins/asr/ModelCatalog.js.map +1 -0
- package/bin/plugin/builtins/asr/Plugin.d.ts +14 -0
- package/bin/plugin/builtins/asr/Plugin.d.ts.map +1 -0
- package/bin/plugin/builtins/asr/Plugin.js +585 -0
- package/bin/plugin/builtins/asr/Plugin.js.map +1 -0
- package/bin/plugin/builtins/auth/Plugin.d.ts +14 -0
- package/bin/plugin/builtins/auth/Plugin.d.ts.map +1 -0
- package/bin/plugin/builtins/auth/Plugin.js +181 -0
- package/bin/plugin/builtins/auth/Plugin.js.map +1 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.d.ts +41 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.d.ts.map +1 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.js +187 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.js.map +1 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.d.ts +30 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.d.ts.map +1 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.js +123 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.js.map +1 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts +29 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts.map +1 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationStore.js +178 -0
- package/bin/plugin/builtins/auth/runtime/AuthorizationStore.js.map +1 -0
- package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts +407 -0
- package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/auth/types/AuthPlugin.js +115 -0
- package/bin/plugin/builtins/auth/types/AuthPlugin.js.map +1 -0
- package/bin/plugin/builtins/skill/Action.d.ts +34 -0
- package/bin/plugin/builtins/skill/Action.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/Action.js +122 -0
- package/bin/plugin/builtins/skill/Action.js.map +1 -0
- package/bin/plugin/builtins/skill/Command.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/Command.js +70 -0
- package/bin/plugin/builtins/skill/Command.js.map +1 -0
- package/bin/plugin/builtins/skill/Config.d.ts +18 -0
- package/bin/plugin/builtins/skill/Config.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/Config.js.map +1 -0
- package/bin/plugin/builtins/skill/PROMPT.d.ts +7 -0
- package/bin/plugin/builtins/skill/PROMPT.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/PROMPT.js +8 -0
- package/bin/plugin/builtins/skill/PROMPT.js.map +1 -0
- package/bin/plugin/builtins/skill/Plugin.d.ts +14 -0
- package/bin/plugin/builtins/skill/Plugin.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/Plugin.js +301 -0
- package/bin/plugin/builtins/skill/Plugin.js.map +1 -0
- package/bin/plugin/builtins/skill/SkillPromptAssets.d.ts +12 -0
- package/bin/plugin/builtins/skill/SkillPromptAssets.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/SkillPromptAssets.js +13 -0
- package/bin/plugin/builtins/skill/SkillPromptAssets.js.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Discovery.d.ts +25 -0
- package/bin/plugin/builtins/skill/runtime/Discovery.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Discovery.js.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Frontmatter.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Frontmatter.js.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Paths.d.ts +16 -0
- package/bin/plugin/builtins/skill/runtime/Paths.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Paths.js.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Prompt.d.ts +19 -0
- package/bin/plugin/builtins/skill/runtime/Prompt.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Prompt.js +54 -0
- package/bin/plugin/builtins/skill/runtime/Prompt.js.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Store.d.ts +25 -0
- package/bin/plugin/builtins/skill/runtime/Store.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Store.js.map +1 -0
- package/bin/plugin/builtins/skill/runtime/SystemProvider.d.ts +24 -0
- package/bin/plugin/builtins/skill/runtime/SystemProvider.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/runtime/SystemProvider.js +33 -0
- package/bin/plugin/builtins/skill/runtime/SystemProvider.js.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Types.d.ts +21 -0
- package/bin/plugin/builtins/skill/runtime/Types.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Types.js.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Utils.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/runtime/Utils.js.map +1 -0
- package/bin/plugin/builtins/skill/types/ClaudeSkill.d.ts +63 -0
- package/bin/plugin/builtins/skill/types/ClaudeSkill.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/types/ClaudeSkill.js.map +1 -0
- package/bin/plugin/builtins/skill/types/SkillCommand.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/types/SkillCommand.js.map +1 -0
- package/bin/plugin/builtins/skill/types/SkillPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/types/SkillPlugin.js.map +1 -0
- package/bin/plugin/builtins/skill/types/SkillRoot.d.ts.map +1 -0
- package/bin/plugin/builtins/skill/types/SkillRoot.js.map +1 -0
- package/bin/plugin/builtins/tts/Dependency.d.ts +90 -0
- package/bin/plugin/builtins/tts/Dependency.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/Dependency.js +344 -0
- package/bin/plugin/builtins/tts/Dependency.js.map +1 -0
- package/bin/plugin/builtins/tts/Plugin.d.ts +13 -0
- package/bin/plugin/builtins/tts/Plugin.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/Plugin.js +523 -0
- package/bin/plugin/builtins/tts/Plugin.js.map +1 -0
- package/bin/plugin/builtins/tts/runtime/Catalog.d.ts +21 -0
- package/bin/plugin/builtins/tts/runtime/Catalog.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/runtime/Catalog.js.map +1 -0
- package/bin/plugin/builtins/tts/runtime/DependencyInstaller.d.ts +143 -0
- package/bin/plugin/builtins/tts/runtime/DependencyInstaller.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/runtime/DependencyInstaller.js.map +1 -0
- package/bin/plugin/builtins/tts/runtime/Installer.d.ts +89 -0
- package/bin/plugin/builtins/tts/runtime/Installer.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/runtime/Installer.js.map +1 -0
- package/bin/plugin/builtins/tts/runtime/Paths.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/runtime/Paths.js.map +1 -0
- package/bin/plugin/builtins/tts/runtime/Synthesizer.d.ts +44 -0
- package/bin/plugin/builtins/tts/runtime/Synthesizer.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/runtime/Synthesizer.js +363 -0
- package/bin/plugin/builtins/tts/runtime/Synthesizer.js.map +1 -0
- package/bin/plugin/builtins/tts/types/Tts.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/types/Tts.js.map +1 -0
- package/bin/plugin/builtins/tts/types/TtsPlugin.d.ts +161 -0
- package/bin/plugin/builtins/tts/types/TtsPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/types/TtsPlugin.js.map +1 -0
- package/bin/plugin/builtins/voice/Dependency.d.ts +77 -0
- package/bin/plugin/builtins/voice/Dependency.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/Dependency.js +237 -0
- package/bin/plugin/builtins/voice/Dependency.js.map +1 -0
- package/bin/plugin/builtins/voice/ModelCatalog.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/ModelCatalog.js +25 -0
- package/bin/plugin/builtins/voice/ModelCatalog.js.map +1 -0
- package/bin/plugin/builtins/voice/Plugin.d.ts +14 -0
- package/bin/plugin/builtins/voice/Plugin.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/Plugin.js +546 -0
- package/bin/plugin/builtins/voice/Plugin.js.map +1 -0
- package/bin/plugin/builtins/voice/runtime/Catalog.d.ts +18 -0
- package/bin/plugin/builtins/voice/runtime/Catalog.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/runtime/Catalog.js.map +1 -0
- package/bin/plugin/builtins/voice/runtime/DependencyInstaller.d.ts +145 -0
- package/bin/plugin/builtins/voice/runtime/DependencyInstaller.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/runtime/DependencyInstaller.js.map +1 -0
- package/bin/plugin/builtins/voice/runtime/Installer.d.ts +94 -0
- package/bin/plugin/builtins/voice/runtime/Installer.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/runtime/Installer.js.map +1 -0
- package/bin/plugin/builtins/voice/runtime/Paths.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/runtime/Paths.js.map +1 -0
- package/bin/plugin/builtins/voice/runtime/Transcriber.d.ts +57 -0
- package/bin/plugin/builtins/voice/runtime/Transcriber.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/runtime/Transcriber.js.map +1 -0
- package/bin/plugin/builtins/voice/types/Voice.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/types/Voice.js.map +1 -0
- package/bin/plugin/builtins/voice/types/VoicePlugin.d.ts +190 -0
- package/bin/plugin/builtins/voice/types/VoicePlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/types/VoicePlugin.js.map +1 -0
- package/bin/plugin/builtins/web/Dependency.d.ts +10 -0
- package/bin/plugin/builtins/web/Dependency.d.ts.map +1 -0
- package/bin/plugin/builtins/web/Dependency.js +10 -0
- package/bin/plugin/builtins/web/Dependency.js.map +1 -0
- package/bin/plugin/builtins/web/PROMPT.agent-browser.d.ts +7 -0
- package/bin/plugin/builtins/web/PROMPT.agent-browser.d.ts.map +1 -0
- package/bin/plugin/builtins/web/PROMPT.agent-browser.js +8 -0
- package/bin/plugin/builtins/web/PROMPT.agent-browser.js.map +1 -0
- package/bin/plugin/builtins/web/PROMPT.d.ts +7 -0
- package/bin/plugin/builtins/web/PROMPT.d.ts.map +1 -0
- package/bin/plugin/builtins/web/PROMPT.js +8 -0
- package/bin/plugin/builtins/web/PROMPT.js.map +1 -0
- package/bin/plugin/builtins/web/PROMPT.web-access.d.ts +7 -0
- package/bin/plugin/builtins/web/PROMPT.web-access.d.ts.map +1 -0
- package/bin/plugin/builtins/web/PROMPT.web-access.js +8 -0
- package/bin/plugin/builtins/web/PROMPT.web-access.js.map +1 -0
- package/bin/plugin/builtins/web/Plugin.d.ts +13 -0
- package/bin/plugin/builtins/web/Plugin.d.ts.map +1 -0
- package/bin/plugin/builtins/web/Plugin.js +459 -0
- package/bin/plugin/builtins/web/Plugin.js.map +1 -0
- package/bin/plugin/builtins/web/WebPromptAssets.d.ts +20 -0
- package/bin/plugin/builtins/web/WebPromptAssets.d.ts.map +1 -0
- package/bin/plugin/builtins/web/WebPromptAssets.js +23 -0
- package/bin/plugin/builtins/web/WebPromptAssets.js.map +1 -0
- package/bin/plugin/builtins/web/runtime/Config.d.ts +21 -0
- package/bin/plugin/builtins/web/runtime/Config.d.ts.map +1 -0
- package/bin/plugin/builtins/web/runtime/Config.js +79 -0
- package/bin/plugin/builtins/web/runtime/Config.js.map +1 -0
- package/bin/plugin/builtins/web/runtime/Source.d.ts +29 -0
- package/bin/plugin/builtins/web/runtime/Source.d.ts.map +1 -0
- package/bin/plugin/builtins/web/runtime/Source.js +209 -0
- package/bin/plugin/builtins/web/runtime/Source.js.map +1 -0
- package/bin/plugin/builtins/web/types/WebPlugin.d.ts +133 -0
- package/bin/plugin/builtins/web/types/WebPlugin.d.ts.map +1 -0
- package/bin/plugin/builtins/web/types/WebPlugin.js.map +1 -0
- package/bin/plugin/builtins/workboard/Plugin.d.ts +13 -0
- package/bin/plugin/builtins/workboard/Plugin.d.ts.map +1 -0
- package/bin/plugin/builtins/workboard/Plugin.js +71 -0
- package/bin/plugin/builtins/workboard/Plugin.js.map +1 -0
- package/bin/plugin/builtins/workboard/runtime/Collector.d.ts +14 -0
- package/bin/plugin/builtins/workboard/runtime/Collector.d.ts.map +1 -0
- package/bin/plugin/builtins/workboard/runtime/Collector.js +62 -0
- package/bin/plugin/builtins/workboard/runtime/Collector.js.map +1 -0
- package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts +61 -0
- package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts.map +1 -0
- package/bin/plugin/builtins/workboard/runtime/Normalizer.js.map +1 -0
- package/bin/plugin/builtins/workboard/runtime/Store.d.ts +48 -0
- package/bin/plugin/builtins/workboard/runtime/Store.d.ts.map +1 -0
- package/bin/plugin/builtins/workboard/runtime/Store.js +84 -0
- package/bin/plugin/builtins/workboard/runtime/Store.js.map +1 -0
- package/bin/plugin/builtins/workboard/types/Workboard.d.ts.map +1 -0
- package/bin/plugin/builtins/workboard/types/Workboard.js.map +1 -0
- package/bin/plugin/core/Activation.d.ts +19 -0
- package/bin/plugin/core/Activation.d.ts.map +1 -0
- package/bin/plugin/core/Activation.js +20 -0
- package/bin/plugin/core/Activation.js.map +1 -0
- package/bin/plugin/core/Catalog.d.ts +42 -0
- package/bin/plugin/core/Catalog.d.ts.map +1 -0
- package/bin/plugin/core/Catalog.js +92 -0
- package/bin/plugin/core/Catalog.js.map +1 -0
- package/bin/plugin/core/HookRegistry.d.ts +68 -0
- package/bin/plugin/core/HookRegistry.d.ts.map +1 -0
- package/bin/plugin/core/HookRegistry.js.map +1 -0
- package/bin/plugin/core/HttpRoutes.d.ts +22 -0
- package/bin/plugin/core/HttpRoutes.d.ts.map +1 -0
- package/bin/plugin/core/HttpRoutes.js +37 -0
- package/bin/plugin/core/HttpRoutes.js.map +1 -0
- package/bin/plugin/core/LocalExecution.d.ts +32 -0
- package/bin/plugin/core/LocalExecution.d.ts.map +1 -0
- package/bin/plugin/core/LocalExecution.js +148 -0
- package/bin/plugin/core/LocalExecution.js.map +1 -0
- package/bin/plugin/core/PluginCommand.d.ts.map +1 -0
- package/bin/plugin/core/PluginCommand.js +188 -0
- package/bin/plugin/core/PluginCommand.js.map +1 -0
- package/bin/plugin/core/PluginManager.d.ts +24 -0
- package/bin/plugin/core/PluginManager.d.ts.map +1 -0
- package/bin/plugin/core/PluginManager.js +62 -0
- package/bin/plugin/core/PluginManager.js.map +1 -0
- package/bin/plugin/core/PluginRegistry.d.ts +66 -0
- package/bin/plugin/core/PluginRegistry.d.ts.map +1 -0
- package/bin/plugin/core/PluginRegistry.js +184 -0
- package/bin/plugin/core/PluginRegistry.js.map +1 -0
- package/bin/plugin/core/Plugins.d.ts +20 -0
- package/bin/plugin/core/Plugins.d.ts.map +1 -0
- package/bin/plugin/core/Plugins.js +33 -0
- package/bin/plugin/core/Plugins.js.map +1 -0
- package/bin/plugin/core/ProjectConfigStore.d.ts +30 -0
- package/bin/plugin/core/ProjectConfigStore.d.ts.map +1 -0
- package/bin/plugin/core/ProjectConfigStore.js.map +1 -0
- package/bin/plugin/types/Plugin.d.ts +697 -0
- package/bin/plugin/types/Plugin.d.ts.map +1 -0
- package/bin/plugin/types/Plugin.js.map +1 -0
- package/bin/plugin/types/PluginApi.d.ts +155 -0
- package/bin/plugin/types/PluginApi.d.ts.map +1 -0
- package/bin/plugin/types/PluginApi.js.map +1 -0
- package/bin/plugin/types/PluginLifecycle.d.ts.map +1 -0
- package/bin/plugin/types/PluginLifecycle.js.map +1 -0
- package/bin/sandbox/MacOsSeatbeltSandbox.d.ts +1 -1
- package/bin/sandbox/SandboxConfigResolver.d.ts +1 -1
- package/bin/sandbox/SandboxRunner.d.ts +1 -1
- package/bin/sandbox/types/Sandbox.d.ts +130 -0
- package/bin/sandbox/types/Sandbox.d.ts.map +1 -0
- package/bin/sandbox/types/Sandbox.js +10 -0
- package/bin/sandbox/types/Sandbox.js.map +1 -0
- package/bin/sandbox/types/SandboxRuntime.d.ts +318 -0
- package/bin/sandbox/types/SandboxRuntime.d.ts.map +1 -0
- package/bin/sandbox/types/SandboxRuntime.js.map +1 -0
- package/bin/service/builtins/BaseService.d.ts +2 -2
- package/bin/service/builtins/BaseService.d.ts.map +1 -1
- package/bin/service/builtins/chat/ChatService.d.ts +4 -4
- package/bin/service/builtins/chat/ChatService.d.ts.map +1 -1
- package/bin/service/builtins/chat/ChatServiceTypes.d.ts +2 -2
- package/bin/service/builtins/chat/ChatServiceTypes.d.ts.map +1 -1
- package/bin/service/builtins/chat/PROMPT.direct.d.ts +7 -0
- package/bin/service/builtins/chat/PROMPT.direct.d.ts.map +1 -0
- package/bin/service/builtins/chat/PROMPT.direct.js +8 -0
- package/bin/service/builtins/chat/PROMPT.direct.js.map +1 -0
- package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts +4 -1
- package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts.map +1 -1
- package/bin/service/builtins/chat/accounts/ChannelAccountService.js +64 -91
- package/bin/service/builtins/chat/accounts/ChannelAccountService.js.map +1 -1
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts +1 -1
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts +2 -2
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts +1 -1
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts +1 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +1 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts +2 -2
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts +1 -1
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.d.ts +7 -0
- package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js +8 -0
- package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts +7 -0
- package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js +8 -0
- package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQ.d.ts +1 -1
- package/bin/service/builtins/chat/channels/qq/QQ.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQ.js +1 -1
- package/bin/service/builtins/chat/channels/qq/QQ.js.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts +2 -2
- package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts +2 -2
- package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts +2 -2
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js +1 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts +2 -2
- package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts +2 -2
- package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts +1 -1
- package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts +1 -1
- package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts +2 -2
- package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts +485 -0
- package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/types/QqChannel.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts +1 -1
- package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts +1 -1
- package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.d.ts +7 -0
- package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js +8 -0
- package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChannelContextStore.js +1 -1
- package/bin/service/builtins/chat/runtime/ChannelContextStore.js.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts +3 -3
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatChannelActions.js +11 -18
- package/bin/service/builtins/chat/runtime/ChatChannelActions.js.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts +3 -3
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts +3 -3
- package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatChannelCore.js +9 -17
- package/bin/service/builtins/chat/runtime/ChatChannelCore.js.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.js +1 -1
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.js.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts +24 -0
- package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatPromptAssets.js +28 -0
- package/bin/service/builtins/chat/runtime/ChatPromptAssets.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts +3 -3
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.js +4 -47
- package/bin/service/builtins/chat/runtime/ChatServiceSystem.js.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatSession.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts +1 -1
- package/bin/service/builtins/chat/types/ChannelAccount.d.ts +1 -1
- package/bin/service/builtins/chat/types/ChannelAccount.d.ts.map +1 -1
- package/bin/service/builtins/chat/types/ChatHistory.d.ts +1 -1
- package/bin/service/builtins/chat/types/ChatHistory.d.ts.map +1 -1
- package/bin/service/builtins/chat/types/ChatPlugin.d.ts +238 -0
- package/bin/service/builtins/chat/types/ChatPlugin.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatPlugin.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatPromptContext.d.ts +125 -0
- package/bin/service/builtins/chat/types/ChatPromptContext.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatPromptContext.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatQueue.d.ts +1 -1
- package/bin/service/builtins/chat/types/ChatQueue.d.ts.map +1 -1
- package/bin/service/builtins/chat/types/ChatQueueWorker.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatQueueWorker.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatRuntime.d.ts +32 -0
- package/bin/service/builtins/chat/types/ChatRuntime.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatRuntime.js.map +1 -0
- package/bin/service/builtins/chat/types/ChatService.d.ts +145 -0
- package/bin/service/builtins/chat/types/ChatService.d.ts.map +1 -0
- package/bin/service/builtins/chat/types/ChatService.js.map +1 -0
- package/bin/service/builtins/contact/ContactService.d.ts +1 -1
- package/bin/service/builtins/contact/ContactService.d.ts.map +1 -1
- package/bin/service/builtins/contact/PROMPT.d.ts +7 -0
- package/bin/service/builtins/contact/PROMPT.d.ts.map +1 -0
- package/bin/service/builtins/contact/PROMPT.js +8 -0
- package/bin/service/builtins/contact/PROMPT.js.map +1 -0
- package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts +12 -0
- package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ContactPromptAssets.js +13 -0
- package/bin/service/builtins/contact/runtime/ContactPromptAssets.js.map +1 -0
- package/bin/service/builtins/contact/runtime/RemoteClient.d.ts +1 -1
- package/bin/service/builtins/contact/runtime/RemoteClient.d.ts.map +1 -1
- package/bin/service/builtins/contact/runtime/SystemProvider.d.ts +0 -7
- package/bin/service/builtins/contact/runtime/SystemProvider.d.ts.map +1 -1
- package/bin/service/builtins/contact/runtime/SystemProvider.js +3 -9
- package/bin/service/builtins/contact/runtime/SystemProvider.js.map +1 -1
- package/bin/service/builtins/memory/Action.d.ts +3 -7
- package/bin/service/builtins/memory/Action.d.ts.map +1 -1
- package/bin/service/builtins/memory/Action.js +4 -42
- package/bin/service/builtins/memory/Action.js.map +1 -1
- package/bin/service/builtins/memory/MemoryService.d.ts +1 -1
- package/bin/service/builtins/memory/MemoryService.d.ts.map +1 -1
- package/bin/service/builtins/memory/MemoryService.js +2 -32
- package/bin/service/builtins/memory/MemoryService.js.map +1 -1
- package/bin/service/builtins/memory/runtime/Search.d.ts +7 -3
- package/bin/service/builtins/memory/runtime/Search.d.ts.map +1 -1
- package/bin/service/builtins/memory/runtime/Search.js +220 -16
- package/bin/service/builtins/memory/runtime/Search.js.map +1 -1
- package/bin/service/builtins/memory/runtime/Store.d.ts +9 -50
- package/bin/service/builtins/memory/runtime/Store.d.ts.map +1 -1
- package/bin/service/builtins/memory/runtime/Store.js +10 -130
- package/bin/service/builtins/memory/runtime/Store.js.map +1 -1
- package/bin/service/builtins/memory/runtime/Writer.d.ts.map +1 -1
- package/bin/service/builtins/memory/runtime/Writer.js +1 -2
- package/bin/service/builtins/memory/runtime/Writer.js.map +1 -1
- package/bin/service/builtins/memory/types/Memory.d.ts +4 -58
- package/bin/service/builtins/memory/types/Memory.d.ts.map +1 -1
- package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts +1 -1
- package/bin/service/builtins/shell/ShellRuntimeTypes.js +1 -1
- package/bin/service/builtins/shell/ShellService.d.ts +1 -1
- package/bin/service/builtins/shell/ShellService.d.ts.map +1 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js +1 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js.map +1 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js +1 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +1 -1
- package/bin/service/builtins/shell/types/Shell.d.ts.map +1 -0
- package/bin/service/builtins/shell/types/Shell.js.map +1 -0
- package/bin/service/builtins/task/PROMPT.d.ts +7 -0
- package/bin/service/builtins/task/PROMPT.d.ts.map +1 -0
- package/bin/service/builtins/task/PROMPT.js +8 -0
- package/bin/service/builtins/task/PROMPT.js.map +1 -0
- package/bin/service/builtins/task/Scheduler.js +1 -1
- package/bin/service/builtins/task/Scheduler.js.map +1 -1
- package/bin/service/builtins/task/TaskService.d.ts +2 -2
- package/bin/service/builtins/task/TaskService.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/Model.d.ts +1 -1
- package/bin/service/builtins/task/runtime/Model.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts +2 -2
- package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/TaskActionInput.d.ts +3 -3
- package/bin/service/builtins/task/runtime/TaskActionInput.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts +12 -0
- package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskPromptAssets.js +13 -0
- package/bin/service/builtins/task/runtime/TaskPromptAssets.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts +2 -2
- package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/TaskRunnerRound.js +1 -1
- package/bin/service/builtins/task/runtime/TaskRunnerRound.js.map +1 -1
- package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts +1 -1
- package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts +1 -1
- package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts +1 -1
- package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts +2 -5
- package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/TaskServiceSystem.js +2 -19
- package/bin/service/builtins/task/runtime/TaskServiceSystem.js.map +1 -1
- package/bin/service/builtins/task/types/TaskService.d.ts +52 -0
- package/bin/service/builtins/task/types/TaskService.d.ts.map +1 -0
- package/bin/service/builtins/task/types/TaskService.js +9 -0
- package/bin/service/builtins/task/types/TaskService.js.map +1 -0
- package/bin/service/core/Manager.d.ts +1 -1
- package/bin/service/core/Manager.d.ts.map +1 -1
- package/bin/service/core/ServiceActionRunner.d.ts +4 -4
- package/bin/service/core/ServiceActionRunner.d.ts.map +1 -1
- package/bin/service/core/ServiceClassRegistry.d.ts +1 -1
- package/bin/service/core/ServiceClassRegistry.d.ts.map +1 -1
- package/bin/service/core/ServiceManager.d.ts +1 -1
- package/bin/service/core/ServiceManager.d.ts.map +1 -1
- package/bin/service/core/ServiceStateController.d.ts +2 -2
- package/bin/service/core/ServiceStateController.d.ts.map +1 -1
- package/bin/service/schedule/Store.d.ts +23 -26
- package/bin/service/schedule/Store.d.ts.map +1 -1
- package/bin/service/schedule/Store.js +173 -155
- package/bin/service/schedule/Store.js.map +1 -1
- package/bin/service/types/Service.d.ts +205 -0
- package/bin/service/types/Service.d.ts.map +1 -0
- package/bin/service/types/Service.js +10 -0
- package/bin/service/types/Service.js.map +1 -0
- package/bin/service/types/ServiceSchedule.d.ts +114 -0
- package/bin/service/types/ServiceSchedule.d.ts.map +1 -0
- package/bin/service/types/ServiceSchedule.js.map +1 -0
- package/bin/service/types/ServiceState.d.ts +104 -0
- package/bin/service/types/ServiceState.d.ts.map +1 -0
- package/bin/service/types/ServiceState.js.map +1 -0
- package/bin/service/types/Services.d.ts +94 -0
- package/bin/service/types/Services.d.ts.map +1 -0
- package/bin/service/types/Services.js.map +1 -0
- package/bin/session/Session.d.ts +4 -4
- package/bin/session/Session.d.ts.map +1 -1
- package/bin/session/SessionRunScope.d.ts +2 -2
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts +2 -2
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js +2 -2
- package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js.map +1 -1
- package/bin/session/composer/execution/LocalSessionExecutionComposer.d.ts +2 -2
- package/bin/session/composer/execution/LocalSessionExecutionComposer.js +1 -1
- package/bin/session/composer/execution/LocalSessionExecutionComposer.js.map +1 -1
- package/bin/session/composer/execution/SessionExecutionComposer.d.ts +2 -2
- package/bin/session/composer/history/SessionHistoryComposer.d.ts +2 -2
- package/bin/session/composer/history/SessionHistoryWriter.d.ts +2 -2
- package/bin/session/composer/history/SessionHistoryWriter.d.ts.map +1 -1
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +2 -2
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js +2 -2
- package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +1 -1
- package/bin/session/composer/system/default/InitPromptAssets.d.ts +16 -0
- package/bin/session/composer/system/default/InitPromptAssets.d.ts.map +1 -0
- package/bin/session/composer/system/default/InitPromptAssets.js +18 -0
- package/bin/session/composer/system/default/InitPromptAssets.js.map +1 -0
- package/bin/session/composer/system/default/InitPrompts.d.ts +2 -9
- package/bin/session/composer/system/default/InitPrompts.d.ts.map +1 -1
- package/bin/session/composer/system/default/InitPrompts.js +2 -28
- package/bin/session/composer/system/default/InitPrompts.js.map +1 -1
- package/bin/session/composer/system/default/StaticPromptCatalog.d.ts +1 -1
- package/bin/session/composer/system/default/StaticPromptCatalog.d.ts.map +1 -1
- package/bin/session/composer/system/default/SystemDomain.d.ts.map +1 -1
- package/bin/session/composer/system/default/SystemDomain.js +6 -21
- package/bin/session/composer/system/default/SystemDomain.js.map +1 -1
- package/bin/session/composer/system/default/SystemPromptAssets.d.ts +20 -0
- package/bin/session/composer/system/default/SystemPromptAssets.d.ts.map +1 -0
- package/bin/session/composer/system/default/SystemPromptAssets.js +23 -0
- package/bin/session/composer/system/default/SystemPromptAssets.js.map +1 -0
- package/bin/session/composer/system/default/assets/core.prompt.d.ts +7 -0
- package/bin/session/composer/system/default/assets/core.prompt.d.ts.map +1 -0
- package/bin/session/composer/system/default/assets/core.prompt.js +8 -0
- package/bin/session/composer/system/default/assets/core.prompt.js.map +1 -0
- package/bin/session/composer/system/default/assets/init/PROFILE.md.d.ts +7 -0
- package/bin/session/composer/system/default/assets/init/PROFILE.md.d.ts.map +1 -0
- package/bin/session/composer/system/default/assets/init/PROFILE.md.js +8 -0
- package/bin/session/composer/system/default/assets/init/PROFILE.md.js.map +1 -0
- package/bin/session/composer/system/default/assets/init/SOUL.md.d.ts +7 -0
- package/bin/session/composer/system/default/assets/init/SOUL.md.d.ts.map +1 -0
- package/bin/session/composer/system/default/assets/init/SOUL.md.js +8 -0
- package/bin/session/composer/system/default/assets/init/SOUL.md.js.map +1 -0
- package/bin/session/composer/system/default/assets/service.prompt.d.ts +7 -0
- package/bin/session/composer/system/default/assets/service.prompt.d.ts.map +1 -0
- package/bin/session/composer/system/default/assets/service.prompt.js +8 -0
- package/bin/session/composer/system/default/assets/service.prompt.js.map +1 -0
- package/bin/session/composer/system/default/assets/task.prompt.d.ts +7 -0
- package/bin/session/composer/system/default/assets/task.prompt.d.ts.map +1 -0
- package/bin/session/composer/system/default/assets/task.prompt.js +8 -0
- package/bin/session/composer/system/default/assets/task.prompt.js.map +1 -0
- package/bin/session/composer/system/default/variables/VariableReplacer.js +2 -2
- package/bin/session/composer/system/default/variables/VariableReplacer.js.map +1 -1
- package/bin/session/executors/local/LocalSessionCore.d.ts +2 -2
- package/bin/session/executors/local/LocalSessionCore.d.ts.map +1 -1
- package/bin/session/executors/local/LocalSessionExecutor.d.ts +2 -2
- package/bin/session/executors/local/LocalSessionExecutor.d.ts.map +1 -1
- package/bin/session/executors/local/SessionLoopDecision.d.ts +1 -1
- package/bin/session/executors/local/SessionSignals.d.ts +2 -2
- package/bin/session/executors/local/SessionSignals.d.ts.map +1 -1
- package/bin/session/messages/SessionAttachmentMapper.d.ts +1 -1
- package/bin/session/messages/SessionMessageCodec.d.ts +1 -1
- package/bin/session/messages/SessionMessageLog.d.ts +2 -2
- package/bin/session/messages/SessionMessageLog.d.ts.map +1 -1
- package/bin/session/messages/SessionStepEventMapper.d.ts +1 -1
- package/bin/session/messages/SessionStepEventMapper.js +1 -1
- package/bin/session/messages/SessionStepEventMapper.js.map +1 -1
- package/bin/session/tools/shell/ShellToolBridge.d.ts +1 -1
- package/bin/session/tools/shell/ShellToolBridge.d.ts.map +1 -1
- package/bin/session/tools/shell/ShellToolBridge.js +1 -1
- package/bin/session/tools/shell/ShellToolBridge.js.map +1 -1
- package/bin/session/tools/shell/ShellToolDefinition.d.ts +2 -2
- package/bin/session/tools/shell/ShellToolDefinition.d.ts.map +1 -1
- package/bin/session/tools/shell/ShellToolFormatting.js +1 -1
- package/bin/session/tools/shell/ShellToolFormatting.js.map +1 -1
- package/bin/session/types/SessionExecutor.d.ts +18 -0
- package/bin/session/types/SessionExecutor.d.ts.map +1 -0
- package/bin/session/types/SessionExecutor.js.map +1 -0
- package/bin/session/types/SessionHistoryMeta.d.ts.map +1 -0
- package/bin/session/types/SessionHistoryMeta.js.map +1 -0
- package/bin/session/types/SessionHistoryPaths.d.ts.map +1 -0
- package/bin/session/types/SessionHistoryPaths.js.map +1 -0
- package/bin/session/types/SessionLoop.d.ts.map +1 -0
- package/bin/session/types/SessionLoop.js.map +1 -0
- package/bin/session/types/SessionMessages.d.ts +83 -0
- package/bin/session/types/SessionMessages.d.ts.map +1 -0
- package/bin/session/types/SessionMessages.js.map +1 -0
- package/bin/session/types/SessionPrompts.d.ts.map +1 -0
- package/bin/session/types/SessionPrompts.js.map +1 -0
- package/bin/session/types/SessionRun.d.ts +112 -0
- package/bin/session/types/SessionRun.d.ts.map +1 -0
- package/bin/session/types/SessionRun.js.map +1 -0
- package/bin/utils/Id.d.ts.map +1 -0
- package/bin/utils/Id.js.map +1 -0
- package/bin/utils/Template.d.ts +17 -0
- package/bin/utils/Template.d.ts.map +1 -0
- package/bin/utils/Template.js.map +1 -0
- package/bin/utils/Time.d.ts.map +1 -0
- package/bin/utils/Time.js.map +1 -0
- package/bin/utils/cli/Checker.d.ts.map +1 -0
- package/bin/utils/cli/Checker.js.map +1 -0
- package/bin/utils/cli/CliOutput.d.ts.map +1 -0
- package/bin/utils/cli/CliOutput.js +98 -0
- package/bin/utils/cli/CliOutput.js.map +1 -0
- package/bin/utils/cli/PrettyStatus.d.ts.map +1 -0
- package/bin/utils/cli/PrettyStatus.js.map +1 -0
- package/bin/utils/logger/Fetch.d.ts +14 -0
- package/bin/utils/logger/Fetch.d.ts.map +1 -0
- package/bin/utils/logger/Fetch.js.map +1 -0
- package/bin/utils/logger/Format.d.ts.map +1 -0
- package/bin/utils/logger/Format.js.map +1 -0
- package/bin/utils/logger/FormatRequest.d.ts +29 -0
- package/bin/utils/logger/FormatRequest.d.ts.map +1 -0
- package/bin/utils/logger/FormatRequest.js.map +1 -0
- package/bin/utils/logger/FormatResponse.d.ts +46 -0
- package/bin/utils/logger/FormatResponse.d.ts.map +1 -0
- package/bin/utils/logger/FormatResponse.js.map +1 -0
- package/bin/utils/logger/FormatShared.d.ts +33 -0
- package/bin/utils/logger/FormatShared.d.ts.map +1 -0
- package/bin/utils/logger/FormatShared.js.map +1 -0
- package/bin/utils/logger/Logger.d.ts +101 -0
- package/bin/utils/logger/Logger.d.ts.map +1 -0
- package/bin/utils/logger/Logger.js +308 -0
- package/bin/utils/logger/Logger.js.map +1 -0
- package/bin/utils/storage/index.d.ts +5 -0
- package/bin/utils/storage/index.d.ts.map +1 -0
- package/bin/utils/storage/index.js.map +1 -0
- package/bin/utils/types/Json.d.ts.map +1 -0
- package/bin/utils/types/Json.js.map +1 -0
- package/bin/utils/types/Template.d.ts.map +1 -0
- package/bin/utils/types/Template.js.map +1 -0
- package/package.json +4 -7
- package/scripts/agent-compiler.mjs +253 -0
- package/src/agent/AgentContext.ts +4 -3
- package/src/agent/AgentContextTypes.ts +12 -7
- package/src/agent/AgentRuntime.ts +34 -5
- package/src/agent/AgentRuntimeState.ts +68 -4
- package/src/agent/AgentRuntimeTypes.ts +8 -3
- package/src/agent/project/AgentInitializer.ts +93 -48
- package/src/agent/project/ProjectExecutionBinding.ts +2 -2
- package/src/agent/project/types/AgentProject.ts +92 -0
- package/src/config/Config.ts +4 -19
- package/src/config/DowncityDefault.ts +38 -0
- package/src/config/DowncitySchema.ts +377 -0
- package/src/config/Paths.ts +2 -9
- package/src/config/types/DowncityConfig.ts +215 -0
- package/src/host/daemon/Api.ts +1 -1
- package/src/host/daemon/Client.ts +2 -2
- package/src/host/daemon/Manager.ts +1 -1
- package/src/host/daemon/ProjectSetup.ts +19 -21
- package/src/host/http/Server.ts +157 -0
- package/src/host/http/auth/AuthEnv.ts +62 -0
- package/src/host/http/auth/CliAuthStateStore.ts +46 -0
- package/src/host/http/control/AuthControlService.ts +161 -0
- package/src/host/http/control/ControlApiRoutes.ts +31 -0
- package/src/host/http/control/ControlAuthorizationRoutes.ts +108 -0
- package/src/host/http/control/ControlRouter.ts +31 -0
- package/src/host/http/control/ExecuteBySession.ts +151 -0
- package/src/host/http/control/ExecuteInput.ts +236 -0
- package/src/host/http/control/MessageTimeline.ts +269 -0
- package/src/host/http/control/ModelRoutes.ts +101 -0
- package/src/host/http/control/OverviewRoutes.ts +106 -0
- package/src/host/http/control/SessionRoutes.ts +414 -0
- package/src/host/http/control/SessionSummaryStore.ts +76 -0
- package/src/host/http/control/TaskRoutes.ts +391 -0
- package/src/host/http/control/TaskStore.ts +222 -0
- package/src/host/http/control/types/AuthControl.ts +38 -0
- package/src/host/http/control/types/ControlViewData.ts +392 -0
- package/src/host/rpc/Client.ts +1 -1
- package/src/host/rpc/Server.ts +6 -6
- package/src/host/rpc/types/LocalRpc.ts +72 -0
- package/src/host/runtime/AgentHostRuntime.ts +3 -5
- package/src/host/runtime/CityPaths.ts +0 -3
- package/src/host/runtime/CityRegistry.ts +1 -1
- package/src/host/sdk/Agent.ts +33 -9
- package/src/host/sdk/AgentSdkTypes.ts +13 -3
- package/src/host/sdk/RemoteAgent.ts +1 -1
- package/src/host/sdk/RpcServer.ts +1 -1
- package/src/host/sdk/Session.ts +2 -2
- package/src/host/sdk/SessionMetadata.ts +1 -1
- package/src/host/sdk/StreamEvents.ts +1 -1
- package/src/host/types/AgentHost.ts +208 -0
- package/src/host/types/Store.ts +422 -0
- package/src/index.ts +54 -64
- package/src/model/CreateModel.ts +19 -17
- package/src/model/ModelManager.ts +1 -1
- package/src/plugin/builtins/asr/Dependency.ts +336 -0
- package/src/plugin/builtins/asr/ModelCatalog.ts +43 -0
- package/src/plugin/builtins/asr/Plugin.ts +639 -0
- package/src/plugin/builtins/auth/Plugin.ts +209 -0
- package/src/plugin/builtins/auth/runtime/AuthorizationConfig.ts +265 -0
- package/src/plugin/builtins/auth/runtime/AuthorizationPolicy.ts +168 -0
- package/src/plugin/builtins/auth/runtime/AuthorizationStore.ts +219 -0
- package/src/plugin/builtins/skill/Action.ts +159 -0
- package/src/plugin/builtins/skill/Command.ts +98 -0
- package/src/plugin/builtins/skill/Config.ts +51 -0
- package/src/plugin/builtins/skill/PROMPT.ts +9 -0
- package/src/plugin/builtins/skill/Plugin.ts +334 -0
- package/src/plugin/builtins/skill/SkillPromptAssets.ts +14 -0
- package/src/plugin/builtins/skill/runtime/Discovery.ts +141 -0
- package/src/plugin/builtins/skill/runtime/Paths.ts +130 -0
- package/src/plugin/builtins/skill/runtime/Prompt.ts +67 -0
- package/src/plugin/builtins/skill/runtime/Store.ts +95 -0
- package/src/plugin/builtins/skill/runtime/SystemProvider.ts +52 -0
- package/src/plugin/builtins/skill/runtime/Types.ts +22 -0
- package/src/plugin/builtins/skill/types/ClaudeSkill.ts +64 -0
- package/src/plugin/builtins/tts/Dependency.ts +473 -0
- package/src/plugin/builtins/tts/Plugin.ts +553 -0
- package/src/plugin/builtins/tts/runtime/Catalog.ts +97 -0
- package/src/plugin/builtins/tts/runtime/DependencyInstaller.ts +436 -0
- package/src/plugin/builtins/tts/runtime/Installer.ts +297 -0
- package/src/plugin/builtins/tts/runtime/Synthesizer.ts +480 -0
- package/src/plugin/builtins/tts/types/TtsPlugin.ts +164 -0
- package/src/plugin/builtins/voice/Dependency.ts +329 -0
- package/src/plugin/builtins/voice/ModelCatalog.ts +43 -0
- package/src/plugin/builtins/voice/Plugin.ts +599 -0
- package/src/plugin/builtins/voice/runtime/Catalog.ts +68 -0
- package/src/plugin/builtins/voice/runtime/DependencyInstaller.ts +505 -0
- package/src/plugin/builtins/voice/runtime/Installer.ts +324 -0
- package/src/plugin/builtins/voice/runtime/Transcriber.ts +467 -0
- package/src/plugin/builtins/voice/types/VoicePlugin.ts +194 -0
- package/src/plugin/builtins/web/Dependency.ts +17 -0
- package/src/plugin/builtins/web/PROMPT.agent-browser.ts +9 -0
- package/src/plugin/builtins/web/PROMPT.ts +9 -0
- package/src/plugin/builtins/web/PROMPT.web-access.ts +9 -0
- package/src/plugin/builtins/web/Plugin.ts +501 -0
- package/src/plugin/builtins/web/WebPromptAssets.ts +26 -0
- package/src/plugin/builtins/web/runtime/Config.ts +105 -0
- package/src/plugin/builtins/web/runtime/Source.ts +257 -0
- package/src/plugin/builtins/web/types/WebPlugin.ts +141 -0
- package/src/plugin/builtins/workboard/Plugin.ts +81 -0
- package/src/plugin/builtins/workboard/runtime/Collector.ts +78 -0
- package/src/plugin/builtins/workboard/runtime/Normalizer.ts +213 -0
- package/src/plugin/builtins/workboard/runtime/Store.ts +110 -0
- package/src/plugin/core/Activation.ts +26 -0
- package/src/plugin/core/Catalog.ts +118 -0
- package/src/plugin/core/HookRegistry.ts +249 -0
- package/src/plugin/core/HttpRoutes.ts +50 -0
- package/src/plugin/core/LocalExecution.ts +179 -0
- package/src/plugin/core/PluginCommand.ts +219 -0
- package/src/plugin/core/PluginManager.ts +66 -0
- package/src/plugin/core/PluginRegistry.ts +244 -0
- package/src/plugin/core/Plugins.ts +39 -0
- package/src/plugin/core/ProjectConfigStore.ts +58 -0
- package/src/plugin/types/Plugin.ts +748 -0
- package/src/plugin/types/PluginApi.ts +161 -0
- package/src/sandbox/MacOsSeatbeltSandbox.ts +1 -1
- package/src/sandbox/SandboxConfigResolver.ts +1 -1
- package/src/sandbox/SandboxRunner.ts +1 -1
- package/src/sandbox/types/Sandbox.ts +144 -0
- package/src/sandbox/types/SandboxRuntime.ts +377 -0
- package/src/service/builtins/BaseService.ts +2 -2
- package/src/service/builtins/chat/ChatService.ts +4 -4
- package/src/service/builtins/chat/ChatServiceTypes.ts +2 -2
- package/src/service/builtins/chat/PROMPT.direct.ts +9 -0
- package/src/service/builtins/chat/accounts/ChannelAccountService.ts +43 -63
- package/src/service/builtins/chat/channels/BaseChatChannel.ts +1 -1
- package/src/service/builtins/chat/channels/BaseChatChannelQueue.ts +1 -1
- package/src/service/builtins/chat/channels/BaseChatChannelSupport.ts +2 -2
- package/src/service/builtins/chat/channels/feishu/Feishu.ts +2 -2
- package/src/service/builtins/chat/channels/feishu/FeishuInbound.ts +1 -1
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformClient.ts +1 -1
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformLookup.ts +2 -2
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts +1 -1
- package/src/service/builtins/chat/channels/feishu/PROMPT.direct.ts +9 -0
- package/src/service/builtins/chat/channels/qq/PROMPT.direct.ts +9 -0
- package/src/service/builtins/chat/channels/qq/QQ.ts +3 -3
- package/src/service/builtins/chat/channels/qq/QQEventCapture.ts +2 -2
- package/src/service/builtins/chat/channels/qq/QQGatewayAuth.ts +2 -2
- package/src/service/builtins/chat/channels/qq/QQGatewayClient.ts +4 -4
- package/src/service/builtins/chat/channels/qq/QQGatewaySend.ts +2 -2
- package/src/service/builtins/chat/channels/qq/QQGatewaySupport.ts +3 -3
- package/src/service/builtins/chat/channels/qq/QQInbound.ts +2 -2
- package/src/service/builtins/chat/channels/qq/QQInboundDedupe.ts +1 -1
- package/src/service/builtins/chat/channels/qq/QQSendSupport.ts +1 -1
- package/src/service/builtins/chat/channels/qq/QQSupport.ts +2 -2
- package/src/service/builtins/chat/channels/qq/VoiceInput.ts +1 -1
- package/src/service/builtins/chat/channels/qq/types/QqChannel.ts +501 -0
- package/src/service/builtins/chat/channels/telegram/ApiClient.ts +1 -1
- package/src/service/builtins/chat/channels/telegram/Bot.ts +1 -1
- package/src/service/builtins/chat/channels/telegram/Handlers.ts +1 -1
- package/src/service/builtins/chat/channels/telegram/PROMPT.direct.ts +9 -0
- package/src/service/builtins/chat/channels/telegram/PROMPT.direct.ts.txt +2 -0
- package/src/service/builtins/chat/channels/telegram/StateStore.ts +1 -1
- package/src/service/builtins/chat/runtime/ChannelContextStore.ts +1 -1
- package/src/service/builtins/chat/runtime/ChatActionExecution.ts +2 -2
- package/src/service/builtins/chat/runtime/ChatActionInput.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatChannelActions.ts +14 -20
- package/src/service/builtins/chat/runtime/ChatChannelConfig.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatChannelCore.ts +11 -16
- package/src/service/builtins/chat/runtime/ChatChannelLifecycle.ts +1 -1
- package/src/service/builtins/chat/runtime/ChatHistoryStore.ts +2 -2
- package/src/service/builtins/chat/runtime/ChatIngressStore.ts +1 -1
- package/src/service/builtins/chat/runtime/ChatPromptAssets.ts +32 -0
- package/src/service/builtins/chat/runtime/ChatQueueReplyDispatch.ts +1 -1
- package/src/service/builtins/chat/runtime/ChatQueueSessionBridge.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatQueueWorker.ts +5 -5
- package/src/service/builtins/chat/runtime/ChatQueueWorkerSupport.ts +1 -1
- package/src/service/builtins/chat/runtime/ChatServiceActions.ts +4 -4
- package/src/service/builtins/chat/runtime/ChatServiceSystem.ts +9 -58
- package/src/service/builtins/chat/runtime/ChatSession.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatSessionExecutionComposer.ts +2 -2
- package/src/service/builtins/chat/runtime/ChatSessionTypes.ts +2 -2
- package/src/service/builtins/chat/runtime/EnqueueDispatch.ts +2 -2
- package/src/service/builtins/chat/runtime/InboundAugment.ts +2 -2
- package/src/service/builtins/chat/runtime/PluginDispatch.ts +2 -2
- package/src/service/builtins/chat/runtime/QueuedUserMessage.ts +1 -1
- package/src/service/builtins/chat/runtime/ReplyContextFormatter.ts +1 -1
- package/src/service/builtins/chat/runtime/ReplyDispatch.ts +2 -2
- package/src/service/builtins/chat/runtime/SystemPrompt.ts +1 -1
- package/src/service/builtins/chat/runtime/UIMessageTransformer.ts +2 -2
- package/src/service/builtins/chat/runtime/UserVisibleText.ts +1 -1
- package/src/service/builtins/chat/types/ChannelAccount.ts +1 -1
- package/src/service/builtins/chat/types/ChatHistory.ts +1 -1
- package/src/service/builtins/chat/types/ChatPromptContext.ts +139 -0
- package/src/service/builtins/chat/types/ChatQueue.ts +1 -1
- package/src/service/builtins/chat/types/ChatService.ts +165 -0
- package/src/service/builtins/contact/ContactService.ts +2 -2
- package/src/service/builtins/contact/PROMPT.ts +9 -0
- package/src/service/builtins/contact/runtime/ChatRuntime.ts +1 -1
- package/src/service/builtins/contact/runtime/ContactPromptAssets.ts +14 -0
- package/src/service/builtins/contact/runtime/RemoteClient.ts +1 -1
- package/src/service/builtins/contact/runtime/SystemProvider.ts +3 -10
- package/src/service/builtins/memory/Action.ts +8 -49
- package/src/service/builtins/memory/MemoryService.ts +3 -35
- package/src/service/builtins/memory/runtime/Search.ts +256 -16
- package/src/service/builtins/memory/runtime/Store.ts +13 -185
- package/src/service/builtins/memory/runtime/Writer.ts +1 -2
- package/src/service/builtins/memory/types/Memory.ts +3 -60
- package/src/service/builtins/shell/ShellRuntimeTypes.ts +1 -1
- package/src/service/builtins/shell/ShellService.ts +1 -1
- package/src/service/builtins/shell/runtime/ShellActionRuntime.ts +1 -1
- package/src/service/builtins/shell/runtime/ShellActionRuntimeSupport.ts +1 -1
- package/src/service/builtins/task/Action.ts +1 -1
- package/src/service/builtins/task/PROMPT.ts +9 -0
- package/src/service/builtins/task/Scheduler.ts +1 -1
- package/src/service/builtins/task/TaskService.ts +2 -2
- package/src/service/builtins/task/runtime/Model.ts +1 -1
- package/src/service/builtins/task/runtime/TaskActionExecution.ts +2 -2
- package/src/service/builtins/task/runtime/TaskActionInput.ts +3 -3
- package/src/service/builtins/task/runtime/TaskPromptAssets.ts +14 -0
- package/src/service/builtins/task/runtime/TaskRunnerRound.ts +3 -3
- package/src/service/builtins/task/runtime/TaskRunnerSession.ts +2 -2
- package/src/service/builtins/task/runtime/TaskRunnerTypes.ts +1 -1
- package/src/service/builtins/task/runtime/TaskServiceActions.ts +2 -2
- package/src/service/builtins/task/runtime/TaskServiceSystem.ts +2 -24
- package/src/service/builtins/task/types/TaskService.ts +55 -0
- package/src/service/core/Manager.ts +1 -1
- package/src/service/core/ServiceActionApi.ts +3 -3
- package/src/service/core/ServiceActionRunner.ts +4 -4
- package/src/service/core/ServiceClassRegistry.ts +1 -1
- package/src/service/core/ServiceManager.ts +1 -1
- package/src/service/core/ServiceStateController.ts +2 -2
- package/src/service/schedule/Store.ts +218 -178
- package/src/service/types/Service.ts +223 -0
- package/src/service/types/ServiceSchedule.ts +134 -0
- package/src/service/types/ServiceState.ts +112 -0
- package/src/service/types/Services.ts +100 -0
- package/src/session/Session.ts +4 -4
- package/src/session/SessionRunScope.ts +2 -2
- package/src/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.ts +4 -4
- package/src/session/composer/execution/LocalSessionExecutionComposer.ts +3 -3
- package/src/session/composer/execution/SessionExecutionComposer.ts +2 -2
- package/src/session/composer/history/SessionHistoryComposer.ts +2 -2
- package/src/session/composer/history/SessionHistoryWriter.ts +2 -2
- package/src/session/composer/history/jsonl/JsonlSessionHistoryComposer.ts +6 -6
- package/src/session/composer/system/default/InitPromptAssets.ts +20 -0
- package/src/session/composer/system/default/InitPrompts.ts +5 -46
- package/src/session/composer/system/default/StaticPromptCatalog.ts +1 -1
- package/src/session/composer/system/default/SystemDomain.ts +11 -43
- package/src/session/composer/system/default/SystemPromptAssets.ts +26 -0
- package/src/session/composer/system/default/assets/core.prompt.ts +9 -0
- package/src/session/composer/system/default/assets/init/PROFILE.md.ts +9 -0
- package/src/session/composer/system/default/assets/init/PROFILE.md.ts.txt +18 -0
- package/src/session/composer/system/default/assets/init/SOUL.md.ts +9 -0
- package/src/session/composer/system/default/assets/init/SOUL.md.ts.txt +89 -0
- package/src/session/composer/system/default/assets/service.prompt.ts +9 -0
- package/src/session/composer/system/default/assets/task.prompt.ts +9 -0
- package/src/session/composer/system/default/variables/VariableReplacer.ts +2 -2
- package/src/session/executors/local/LocalSessionCore.ts +4 -4
- package/src/session/executors/local/LocalSessionExecutor.ts +2 -2
- package/src/session/executors/local/SessionLoopDecision.ts +1 -1
- package/src/session/executors/local/SessionSignals.ts +2 -2
- package/src/session/messages/SessionAttachmentMapper.ts +1 -1
- package/src/session/messages/SessionMessageCodec.ts +1 -1
- package/src/session/messages/SessionMessageLog.ts +2 -2
- package/src/session/messages/SessionStepEventMapper.ts +3 -3
- package/src/session/tools/shell/ShellToolBridge.ts +2 -2
- package/src/session/tools/shell/ShellToolDefinition.ts +2 -2
- package/src/session/tools/shell/ShellToolFormatting.ts +1 -1
- package/src/session/types/SessionExecutor.ts +33 -0
- package/src/session/types/SessionMessages.ts +90 -0
- package/src/session/types/SessionRun.ts +132 -0
- package/src/utils/Template.ts +28 -0
- package/src/utils/cli/CliOutput.ts +128 -0
- package/src/utils/logger/Fetch.ts +93 -0
- package/src/utils/logger/FormatRequest.ts +455 -0
- package/src/utils/logger/FormatResponse.ts +265 -0
- package/src/utils/logger/FormatShared.ts +258 -0
- package/src/utils/logger/Logger.ts +372 -0
- package/src/utils/storage/index.ts +26 -0
- package/tsconfig.json +1 -2
- package/tsconfig.tsbuildinfo +1 -1
- 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/auth/AuthEnv.d.ts +0 -45
- package/bin/http/auth/AuthEnv.d.ts.map +0 -1
- package/bin/http/auth/AuthEnv.js +0 -63
- package/bin/http/auth/AuthEnv.js.map +0 -1
- package/bin/http/auth/AuthError.d.ts.map +0 -1
- package/bin/http/auth/AuthError.js.map +0 -1
- package/bin/http/auth/AuthMiddleware.d.ts +0 -36
- package/bin/http/auth/AuthMiddleware.d.ts.map +0 -1
- package/bin/http/auth/AuthMiddleware.js +0 -37
- package/bin/http/auth/AuthMiddleware.js.map +0 -1
- package/bin/http/auth/AuthRoutes.d.ts +0 -17
- package/bin/http/auth/AuthRoutes.d.ts.map +0 -1
- package/bin/http/auth/AuthRoutes.js +0 -78
- package/bin/http/auth/AuthRoutes.js.map +0 -1
- package/bin/http/auth/AuthService.d.ts +0 -119
- package/bin/http/auth/AuthService.d.ts.map +0 -1
- package/bin/http/auth/AuthService.js +0 -307
- package/bin/http/auth/AuthService.js.map +0 -1
- package/bin/http/auth/AuthStore.d.ts +0 -165
- package/bin/http/auth/AuthStore.d.ts.map +0 -1
- package/bin/http/auth/AuthStore.js +0 -442
- package/bin/http/auth/AuthStore.js.map +0 -1
- package/bin/http/auth/CliAuthStateStore.d.ts +0 -33
- package/bin/http/auth/CliAuthStateStore.d.ts.map +0 -1
- package/bin/http/auth/CliAuthStateStore.js +0 -30
- package/bin/http/auth/CliAuthStateStore.js.map +0 -1
- package/bin/http/auth/PasswordHasher.d.ts.map +0 -1
- package/bin/http/auth/PasswordHasher.js.map +0 -1
- package/bin/http/auth/RoutePolicy.d.ts +0 -30
- package/bin/http/auth/RoutePolicy.d.ts.map +0 -1
- package/bin/http/auth/RoutePolicy.js +0 -229
- package/bin/http/auth/RoutePolicy.js.map +0 -1
- package/bin/http/auth/TokenService.d.ts.map +0 -1
- package/bin/http/auth/TokenService.js.map +0 -1
- package/bin/http/control/AuthControlService.d.ts +0 -30
- package/bin/http/control/AuthControlService.d.ts.map +0 -1
- package/bin/http/control/AuthControlService.js +0 -120
- package/bin/http/control/AuthControlService.js.map +0 -1
- package/bin/http/control/CommonHelpers.d.ts.map +0 -1
- package/bin/http/control/CommonHelpers.js.map +0 -1
- package/bin/http/control/ControlApiRoutes.d.ts +0 -14
- package/bin/http/control/ControlApiRoutes.d.ts.map +0 -1
- package/bin/http/control/ControlApiRoutes.js +0 -27
- package/bin/http/control/ControlApiRoutes.js.map +0 -1
- package/bin/http/control/ControlAuthorizationRoutes.d.ts +0 -17
- package/bin/http/control/ControlAuthorizationRoutes.d.ts.map +0 -1
- package/bin/http/control/ControlAuthorizationRoutes.js +0 -85
- package/bin/http/control/ControlAuthorizationRoutes.js.map +0 -1
- package/bin/http/control/ControlRouter.d.ts +0 -19
- package/bin/http/control/ControlRouter.d.ts.map +0 -1
- package/bin/http/control/ControlRouter.js +0 -26
- package/bin/http/control/ControlRouter.js.map +0 -1
- package/bin/http/control/ExecuteBySession.d.ts +0 -39
- package/bin/http/control/ExecuteBySession.d.ts.map +0 -1
- package/bin/http/control/ExecuteBySession.js +0 -128
- package/bin/http/control/ExecuteBySession.js.map +0 -1
- package/bin/http/control/ExecuteInput.d.ts +0 -18
- package/bin/http/control/ExecuteInput.d.ts.map +0 -1
- package/bin/http/control/ExecuteInput.js +0 -201
- package/bin/http/control/ExecuteInput.js.map +0 -1
- package/bin/http/control/Helpers.d.ts.map +0 -1
- package/bin/http/control/Helpers.js.map +0 -1
- package/bin/http/control/MessageTimeline.d.ts +0 -22
- package/bin/http/control/MessageTimeline.d.ts.map +0 -1
- package/bin/http/control/MessageTimeline.js +0 -226
- package/bin/http/control/MessageTimeline.js.map +0 -1
- package/bin/http/control/ModelRoutes.d.ts +0 -13
- package/bin/http/control/ModelRoutes.d.ts.map +0 -1
- package/bin/http/control/ModelRoutes.js +0 -92
- package/bin/http/control/ModelRoutes.js.map +0 -1
- package/bin/http/control/OverviewRoutes.d.ts +0 -13
- package/bin/http/control/OverviewRoutes.d.ts.map +0 -1
- package/bin/http/control/OverviewRoutes.js +0 -93
- package/bin/http/control/OverviewRoutes.js.map +0 -1
- package/bin/http/control/SessionRoutes.d.ts +0 -14
- package/bin/http/control/SessionRoutes.d.ts.map +0 -1
- package/bin/http/control/SessionRoutes.js +0 -333
- package/bin/http/control/SessionRoutes.js.map +0 -1
- package/bin/http/control/SessionSummaryStore.d.ts +0 -19
- package/bin/http/control/SessionSummaryStore.d.ts.map +0 -1
- package/bin/http/control/SessionSummaryStore.js +0 -62
- package/bin/http/control/SessionSummaryStore.js.map +0 -1
- package/bin/http/control/TaskRoutes.d.ts +0 -13
- package/bin/http/control/TaskRoutes.d.ts.map +0 -1
- package/bin/http/control/TaskRoutes.js +0 -335
- package/bin/http/control/TaskRoutes.js.map +0 -1
- package/bin/http/control/TaskStore.d.ts +0 -33
- package/bin/http/control/TaskStore.d.ts.map +0 -1
- package/bin/http/control/TaskStore.js +0 -157
- package/bin/http/control/TaskStore.js.map +0 -1
- 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.map +0 -1
- package/bin/http/health/health.js.map +0 -1
- 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.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.map +0 -1
- package/bin/http/static/static.js +0 -97
- package/bin/http/static/static.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.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.map +0 -1
- package/bin/plugin/PluginCommand.js +0 -188
- 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.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.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 -41
- package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationConfig.js +0 -185
- package/bin/plugins/auth/runtime/AuthorizationConfig.js.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts +0 -28
- 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.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.map +0 -1
- 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.map +0 -1
- package/bin/plugins/skill/runtime/Frontmatter.d.ts.map +0 -1
- 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.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.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.map +0 -1
- package/bin/plugins/skill/runtime/Utils.d.ts.map +0 -1
- 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.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.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.map +0 -1
- package/bin/plugins/tts/runtime/Paths.d.ts.map +0 -1
- 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.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.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.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.map +0 -1
- package/bin/plugins/voice/runtime/Paths.d.ts.map +0 -1
- 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.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/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.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.map +0 -1
- package/bin/plugins/workboard/types/Workboard.js.map +0 -1
- package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.txt +0 -1
- package/bin/service/builtins/memory/runtime/Indexer.d.ts +0 -71
- package/bin/service/builtins/memory/runtime/Indexer.d.ts.map +0 -1
- package/bin/service/builtins/memory/runtime/Indexer.js +0 -345
- package/bin/service/builtins/memory/runtime/Indexer.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/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/shared/constants/DowncityDefault.d.ts +0 -3
- package/bin/shared/constants/DowncityDefault.d.ts.map +0 -1
- 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.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.map +0 -1
- package/bin/shared/types/AuthControl.d.ts +0 -30
- package/bin/shared/types/AuthControl.d.ts.map +0 -1
- package/bin/shared/types/AuthControl.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.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.map +0 -1
- package/bin/shared/types/ChatQueueWorker.d.ts.map +0 -1
- 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.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.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.map +0 -1
- package/bin/shared/types/ControlRoutes.d.ts +0 -28
- package/bin/shared/types/ControlRoutes.d.ts.map +0 -1
- package/bin/shared/types/ControlRoutes.js.map +0 -1
- package/bin/shared/types/ControlSessionExecute.d.ts.map +0 -1
- package/bin/shared/types/ControlSessionExecute.js.map +0 -1
- package/bin/shared/types/ControlViewData.d.ts +0 -320
- package/bin/shared/types/ControlViewData.d.ts.map +0 -1
- package/bin/shared/types/ControlViewData.js.map +0 -1
- package/bin/shared/types/Daemon.d.ts.map +0 -1
- package/bin/shared/types/Daemon.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.map +0 -1
- package/bin/shared/types/ExecutionBinding.d.ts.map +0 -1
- package/bin/shared/types/ExecutionBinding.js.map +0 -1
- package/bin/shared/types/FeishuChannel.d.ts.map +0 -1
- package/bin/shared/types/FeishuChannel.js.map +0 -1
- package/bin/shared/types/InlineInstant.d.ts.map +0 -1
- package/bin/shared/types/InlineInstant.js.map +0 -1
- package/bin/shared/types/Json.d.ts.map +0 -1
- package/bin/shared/types/Json.js.map +0 -1
- package/bin/shared/types/LlmConfig.d.ts.map +0 -1
- 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.map +0 -1
- package/bin/shared/types/ModelBinding.d.ts.map +0 -1
- package/bin/shared/types/ModelBinding.js.map +0 -1
- package/bin/shared/types/Platform.d.ts.map +0 -1
- package/bin/shared/types/Platform.js.map +0 -1
- package/bin/shared/types/PlatformGateway.d.ts.map +0 -1
- package/bin/shared/types/PlatformGateway.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.map +0 -1
- package/bin/shared/types/PluginApi.d.ts +0 -155
- package/bin/shared/types/PluginApi.d.ts.map +0 -1
- package/bin/shared/types/PluginApi.js.map +0 -1
- package/bin/shared/types/PluginLifecycle.d.ts.map +0 -1
- 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.map +0 -1
- package/bin/shared/types/QqGatewaySupport.d.ts.map +0 -1
- 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.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.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.map +0 -1
- package/bin/shared/types/Shell.d.ts.map +0 -1
- package/bin/shared/types/Shell.js.map +0 -1
- package/bin/shared/types/SkillCommand.d.ts.map +0 -1
- package/bin/shared/types/SkillCommand.js.map +0 -1
- package/bin/shared/types/SkillPlugin.d.ts.map +0 -1
- package/bin/shared/types/SkillPlugin.js.map +0 -1
- package/bin/shared/types/SkillRoot.d.ts.map +0 -1
- package/bin/shared/types/SkillRoot.js.map +0 -1
- package/bin/shared/types/Start.d.ts.map +0 -1
- package/bin/shared/types/Start.js.map +0 -1
- package/bin/shared/types/Store.d.ts +0 -408
- package/bin/shared/types/Store.d.ts.map +0 -1
- 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.map +0 -1
- package/bin/shared/types/Template.js.map +0 -1
- package/bin/shared/types/Tts.d.ts.map +0 -1
- 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.map +0 -1
- package/bin/shared/types/Voice.d.ts.map +0 -1
- 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.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.map +0 -1
- package/bin/shared/types/auth/AuthPermission.d.ts.map +0 -1
- package/bin/shared/types/auth/AuthPermission.js.map +0 -1
- package/bin/shared/types/auth/AuthRoute.d.ts.map +0 -1
- package/bin/shared/types/auth/AuthRoute.js.map +0 -1
- package/bin/shared/types/auth/AuthToken.d.ts.map +0 -1
- package/bin/shared/types/auth/AuthToken.js.map +0 -1
- package/bin/shared/types/auth/AuthTypes.d.ts.map +0 -1
- 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.map +0 -1
- package/bin/shared/utils/Time.d.ts.map +0 -1
- package/bin/shared/utils/Time.js.map +0 -1
- package/bin/shared/utils/cli/Checker.d.ts.map +0 -1
- package/bin/shared/utils/cli/Checker.js.map +0 -1
- package/bin/shared/utils/cli/CliOutput.d.ts.map +0 -1
- package/bin/shared/utils/cli/CliOutput.js +0 -98
- package/bin/shared/utils/cli/CliOutput.js.map +0 -1
- package/bin/shared/utils/cli/PrettyStatus.d.ts.map +0 -1
- package/bin/shared/utils/cli/PrettyStatus.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.map +0 -1
- package/bin/shared/utils/logger/Format.d.ts.map +0 -1
- 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.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.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.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 +0 -5
- 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 +0 -34
- package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreChannelAccountRepository.js +0 -198
- package/bin/shared/utils/store/StoreChannelAccountRepository.js.map +0 -1
- package/bin/shared/utils/store/StoreEnvRepository.d.ts +0 -98
- package/bin/shared/utils/store/StoreEnvRepository.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreEnvRepository.js +0 -334
- package/bin/shared/utils/store/StoreEnvRepository.js.map +0 -1
- package/bin/shared/utils/store/StoreModelRepository.d.ts +0 -61
- package/bin/shared/utils/store/StoreModelRepository.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreModelRepository.js +0 -278
- package/bin/shared/utils/store/StoreModelRepository.js.map +0 -1
- package/bin/shared/utils/store/StoreSchema.d.ts +0 -13
- package/bin/shared/utils/store/StoreSchema.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreSchema.js +0 -319
- package/bin/shared/utils/store/StoreSchema.js.map +0 -1
- package/bin/shared/utils/store/StoreSecureSettings.d.ts +0 -33
- package/bin/shared/utils/store/StoreSecureSettings.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreSecureSettings.js +0 -91
- package/bin/shared/utils/store/StoreSecureSettings.js.map +0 -1
- package/bin/shared/utils/store/StoreShared.d.ts +0 -44
- package/bin/shared/utils/store/StoreShared.d.ts.map +0 -1
- package/bin/shared/utils/store/StoreShared.js +0 -40
- package/bin/shared/utils/store/StoreShared.js.map +0 -1
- package/bin/shared/utils/store/crypto.d.ts +0 -24
- package/bin/shared/utils/store/crypto.d.ts.map +0 -1
- package/bin/shared/utils/store/crypto.js +0 -101
- package/bin/shared/utils/store/crypto.js.map +0 -1
- package/bin/shared/utils/store/index.d.ts +0 -230
- package/bin/shared/utils/store/index.d.ts.map +0 -1
- package/bin/shared/utils/store/index.js +0 -360
- package/bin/shared/utils/store/index.js.map +0 -1
- package/bin/shared/utils/store/schema.d.ts +0 -690
- package/bin/shared/utils/store/schema.d.ts.map +0 -1
- package/bin/shared/utils/store/schema.js +0 -81
- package/bin/shared/utils/store/schema.js.map +0 -1
- package/bin/types/sandbox/SandboxRuntime.d.ts +0 -318
- package/bin/types/sandbox/SandboxRuntime.d.ts.map +0 -1
- package/bin/types/sandbox/SandboxRuntime.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.map +0 -1
- package/bin/types/session/SessionHistoryMeta.d.ts.map +0 -1
- package/bin/types/session/SessionHistoryMeta.js.map +0 -1
- package/bin/types/session/SessionHistoryPaths.d.ts.map +0 -1
- package/bin/types/session/SessionHistoryPaths.js.map +0 -1
- package/bin/types/session/SessionLoop.d.ts.map +0 -1
- 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.map +0 -1
- package/bin/types/session/SessionPrompts.d.ts.map +0 -1
- package/bin/types/session/SessionPrompts.js.map +0 -1
- package/bin/types/session/SessionRun.d.ts +0 -112
- package/bin/types/session/SessionRun.d.ts.map +0 -1
- package/bin/types/session/SessionRun.js.map +0 -1
- package/scripts/copy-prompt-assets.mjs +0 -72
- package/src/http/Server.ts +0 -170
- package/src/http/auth/AuthEnv.ts +0 -71
- package/src/http/auth/AuthMiddleware.ts +0 -61
- package/src/http/auth/AuthRoutes.ts +0 -100
- package/src/http/auth/AuthService.ts +0 -367
- package/src/http/auth/AuthStore.ts +0 -572
- package/src/http/auth/CliAuthStateStore.ts +0 -50
- package/src/http/auth/RoutePolicy.ts +0 -255
- package/src/http/control/AuthControlService.ts +0 -161
- package/src/http/control/ControlApiRoutes.ts +0 -31
- package/src/http/control/ControlAuthorizationRoutes.ts +0 -108
- package/src/http/control/ControlRouter.ts +0 -31
- package/src/http/control/ExecuteBySession.ts +0 -151
- package/src/http/control/ExecuteInput.ts +0 -236
- package/src/http/control/MessageTimeline.ts +0 -269
- package/src/http/control/ModelRoutes.ts +0 -107
- package/src/http/control/OverviewRoutes.ts +0 -106
- package/src/http/control/SessionRoutes.ts +0 -414
- package/src/http/control/SessionSummaryStore.ts +0 -76
- package/src/http/control/TaskRoutes.ts +0 -391
- package/src/http/control/TaskStore.ts +0 -222
- 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 -219
- 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 -255
- package/src/plugins/auth/runtime/AuthorizationPolicy.ts +0 -165
- 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/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/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/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/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/service/builtins/chat/PROMPT.direct.txt +0 -55
- package/src/service/builtins/chat/channels/feishu/PROMPT.direct.txt +0 -5
- package/src/service/builtins/chat/channels/qq/PROMPT.direct.txt +0 -11
- package/src/service/builtins/chat/channels/telegram/PROMPT.direct.txt +0 -1
- package/src/service/builtins/contact/PROMPT.txt +0 -25
- package/src/service/builtins/memory/runtime/Indexer.ts +0 -466
- package/src/service/builtins/task/PROMPT.txt +0 -237
- package/src/service/schedule/Schema.ts +0 -34
- 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/shared/constants/DowncityDefault.ts +0 -38
- package/src/shared/constants/DowncitySchema.ts +0 -377
- package/src/shared/types/AgentHost.ts +0 -74
- package/src/shared/types/AgentProject.ts +0 -92
- package/src/shared/types/AuthControl.ts +0 -38
- package/src/shared/types/ChatPromptContext.ts +0 -139
- package/src/shared/types/ChatService.ts +0 -165
- package/src/shared/types/ClaudeSkill.ts +0 -64
- package/src/shared/types/ControlViewData.ts +0 -392
- package/src/shared/types/DowncityConfig.ts +0 -215
- package/src/shared/types/LocalRpc.ts +0 -72
- package/src/shared/types/Plugin.ts +0 -743
- package/src/shared/types/PluginApi.ts +0 -161
- package/src/shared/types/QqChannel.ts +0 -501
- package/src/shared/types/README.md +0 -56
- 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/Store.ts +0 -422
- package/src/shared/types/TaskService.ts +0 -55
- package/src/shared/types/TtsPlugin.ts +0 -164
- package/src/shared/types/VoicePlugin.ts +0 -194
- package/src/shared/types/WebPlugin.ts +0 -141
- package/src/shared/utils/README.md +0 -49
- package/src/shared/utils/Template.ts +0 -28
- package/src/shared/utils/cli/CliOutput.ts +0 -128
- package/src/shared/utils/logger/Fetch.ts +0 -93
- 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/storage/index.ts +0 -26
- package/src/shared/utils/store/StoreChannelAccountRepository.ts +0 -269
- package/src/shared/utils/store/StoreEnvRepository.ts +0 -452
- package/src/shared/utils/store/StoreModelRepository.ts +0 -324
- package/src/shared/utils/store/StoreSchema.ts +0 -344
- package/src/shared/utils/store/StoreSecureSettings.ts +0 -126
- package/src/shared/utils/store/StoreShared.ts +0 -67
- package/src/shared/utils/store/crypto.ts +0 -112
- package/src/shared/utils/store/index.ts +0 -497
- package/src/shared/utils/store/schema.ts +0 -103
- package/src/types/sandbox/SandboxRuntime.ts +0 -377
- package/src/types/session/SessionExecutor.ts +0 -33
- package/src/types/session/SessionMessages.ts +0 -90
- package/src/types/session/SessionRun.ts +0 -132
- /package/bin/{shared → agent/project}/types/AgentProject.js +0 -0
- /package/bin/{shared/constants → config}/DowncityDefault.js +0 -0
- /package/bin/{shared/constants → config}/DowncitySchema.js +0 -0
- /package/bin/{shared → config}/types/DowncityConfig.js +0 -0
- /package/bin/{shared → config}/types/ExecutionBinding.d.ts +0 -0
- /package/bin/{shared → config}/types/ExecutionBinding.js +0 -0
- /package/bin/{shared → config}/types/LlmConfig.d.ts +0 -0
- /package/bin/{shared → config}/types/LlmConfig.js +0 -0
- /package/bin/{shared → config}/types/ModelBinding.d.ts +0 -0
- /package/bin/{shared → config}/types/ModelBinding.js +0 -0
- /package/bin/{shared → config}/types/Start.d.ts +0 -0
- /package/bin/{shared → config}/types/Start.js +0 -0
- /package/bin/{shared → host/daemon}/types/Daemon.d.ts +0 -0
- /package/bin/{shared → host/daemon}/types/Daemon.js +0 -0
- /package/bin/{http → host/http}/Server.d.ts +0 -0
- /package/bin/{http → host/http}/auth/AuthError.d.ts +0 -0
- /package/bin/{http → host/http}/auth/AuthError.js +0 -0
- /package/bin/{http → host/http}/auth/PasswordHasher.d.ts +0 -0
- /package/bin/{http → host/http}/auth/PasswordHasher.js +0 -0
- /package/bin/{http → host/http}/auth/TokenService.d.ts +0 -0
- /package/bin/{http → host/http}/auth/TokenService.js +0 -0
- /package/bin/{shared/types/auth → host/http/auth/types}/AuthPermission.d.ts +0 -0
- /package/bin/{shared/types/auth → host/http/auth/types}/AuthPermission.js +0 -0
- /package/bin/{shared/types/auth → host/http/auth/types}/AuthRoute.d.ts +0 -0
- /package/bin/{shared/types/auth → host/http/auth/types}/AuthRoute.js +0 -0
- /package/bin/{shared/types/auth → host/http/auth/types}/AuthToken.d.ts +0 -0
- /package/bin/{shared/types/auth → host/http/auth/types}/AuthToken.js +0 -0
- /package/bin/{shared/types/auth → host/http/auth/types}/AuthTypes.d.ts +0 -0
- /package/bin/{shared/types/auth → host/http/auth/types}/AuthTypes.js +0 -0
- /package/bin/{http → host/http}/control/CommonHelpers.d.ts +0 -0
- /package/bin/{http → host/http}/control/CommonHelpers.js +0 -0
- /package/bin/{http → host/http}/control/Helpers.d.ts +0 -0
- /package/bin/{http → host/http}/control/Helpers.js +0 -0
- /package/bin/{shared → host/http/control}/types/AuthControl.js +0 -0
- /package/bin/{shared → host/http/control}/types/ControlRoutes.js +0 -0
- /package/bin/{shared → host/http/control}/types/ControlSessionExecute.d.ts +0 -0
- /package/bin/{shared → host/http/control}/types/ControlSessionExecute.js +0 -0
- /package/bin/{shared → host/http/control}/types/ControlViewData.js +0 -0
- /package/bin/{http → host/http}/execute/execute.d.ts +0 -0
- /package/bin/{shared → host/http/execute}/types/InlineInstant.d.ts +0 -0
- /package/bin/{shared → host/http/execute}/types/InlineInstant.js +0 -0
- /package/bin/{http → host/http}/health/health.d.ts +0 -0
- /package/bin/{http → host/http}/health/health.js +0 -0
- /package/bin/{http → host/http}/plugins/plugins.d.ts +0 -0
- /package/bin/{http → host/http}/services/services.d.ts +0 -0
- /package/bin/{http → host/http}/static/static.d.ts +0 -0
- /package/bin/{shared → host/rpc}/types/LocalRpc.js +0 -0
- /package/bin/{shared → host/runtime}/types/Platform.d.ts +0 -0
- /package/bin/{shared → host/runtime}/types/Platform.js +0 -0
- /package/bin/{shared → host/runtime}/types/PlatformGateway.d.ts +0 -0
- /package/bin/{shared → host/runtime}/types/PlatformGateway.js +0 -0
- /package/bin/{shared → host}/types/AgentHost.js +0 -0
- /package/bin/{shared → host}/types/Store.js +0 -0
- /package/bin/{plugins → plugin/builtins}/asr/ModelCatalog.d.ts +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/Command.d.ts +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/Config.js +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/runtime/Discovery.js +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/runtime/Frontmatter.d.ts +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/runtime/Frontmatter.js +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/runtime/Paths.js +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/runtime/Store.js +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/runtime/Types.js +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/runtime/Utils.d.ts +0 -0
- /package/bin/{plugins → plugin/builtins}/skill/runtime/Utils.js +0 -0
- /package/bin/{shared → plugin/builtins/skill}/types/ClaudeSkill.js +0 -0
- /package/bin/{shared → plugin/builtins/skill}/types/SkillCommand.d.ts +0 -0
- /package/bin/{shared → plugin/builtins/skill}/types/SkillCommand.js +0 -0
- /package/bin/{shared → plugin/builtins/skill}/types/SkillPlugin.d.ts +0 -0
- /package/bin/{shared → plugin/builtins/skill}/types/SkillPlugin.js +0 -0
- /package/bin/{shared → plugin/builtins/skill}/types/SkillRoot.d.ts +0 -0
- /package/bin/{shared → plugin/builtins/skill}/types/SkillRoot.js +0 -0
- /package/bin/{plugins → plugin/builtins}/tts/runtime/Catalog.js +0 -0
- /package/bin/{plugins → plugin/builtins}/tts/runtime/DependencyInstaller.js +0 -0
- /package/bin/{plugins → plugin/builtins}/tts/runtime/Installer.js +0 -0
- /package/bin/{plugins → plugin/builtins}/tts/runtime/Paths.d.ts +0 -0
- /package/bin/{plugins → plugin/builtins}/tts/runtime/Paths.js +0 -0
- /package/bin/{shared → plugin/builtins/tts}/types/Tts.d.ts +0 -0
- /package/bin/{shared → plugin/builtins/tts}/types/Tts.js +0 -0
- /package/bin/{shared → plugin/builtins/tts}/types/TtsPlugin.js +0 -0
- /package/bin/{plugins → plugin/builtins}/voice/ModelCatalog.d.ts +0 -0
- /package/bin/{plugins → plugin/builtins}/voice/runtime/Catalog.js +0 -0
- /package/bin/{plugins → plugin/builtins}/voice/runtime/DependencyInstaller.js +0 -0
- /package/bin/{plugins → plugin/builtins}/voice/runtime/Installer.js +0 -0
- /package/bin/{plugins → plugin/builtins}/voice/runtime/Paths.d.ts +0 -0
- /package/bin/{plugins → plugin/builtins}/voice/runtime/Paths.js +0 -0
- /package/bin/{plugins → plugin/builtins}/voice/runtime/Transcriber.js +0 -0
- /package/bin/{shared → plugin/builtins/voice}/types/Voice.d.ts +0 -0
- /package/bin/{shared → plugin/builtins/voice}/types/Voice.js +0 -0
- /package/bin/{shared → plugin/builtins/voice}/types/VoicePlugin.js +0 -0
- /package/bin/{shared → plugin/builtins/web}/types/WebPlugin.js +0 -0
- /package/bin/{plugins → plugin/builtins}/workboard/runtime/Normalizer.js +0 -0
- /package/bin/{plugins → plugin/builtins}/workboard/types/Workboard.d.ts +0 -0
- /package/bin/{plugins → plugin/builtins}/workboard/types/Workboard.js +0 -0
- /package/bin/plugin/{HookRegistry.js → core/HookRegistry.js} +0 -0
- /package/bin/plugin/{PluginCommand.d.ts → core/PluginCommand.d.ts} +0 -0
- /package/bin/plugin/{ProjectConfigStore.js → core/ProjectConfigStore.js} +0 -0
- /package/bin/{shared → plugin}/types/Plugin.js +0 -0
- /package/bin/{shared → plugin}/types/PluginApi.js +0 -0
- /package/bin/{shared → plugin}/types/PluginLifecycle.d.ts +0 -0
- /package/bin/{shared → plugin}/types/PluginLifecycle.js +0 -0
- /package/bin/{types/sandbox → sandbox/types}/SandboxRuntime.js +0 -0
- /package/bin/{shared → service/builtins/chat/channels/feishu}/types/FeishuChannel.d.ts +0 -0
- /package/bin/{shared → service/builtins/chat/channels/feishu}/types/FeishuChannel.js +0 -0
- /package/bin/{shared → service/builtins/chat/channels/qq}/types/QqChannel.js +0 -0
- /package/bin/{shared → service/builtins/chat/channels/qq}/types/QqGatewaySupport.d.ts +0 -0
- /package/bin/{shared → service/builtins/chat/channels/qq}/types/QqGatewaySupport.js +0 -0
- /package/bin/{shared → service/builtins/chat}/types/ChatPlugin.js +0 -0
- /package/bin/{shared → service/builtins/chat}/types/ChatPromptContext.js +0 -0
- /package/bin/{shared → service/builtins/chat}/types/ChatQueueWorker.d.ts +0 -0
- /package/bin/{shared → service/builtins/chat}/types/ChatQueueWorker.js +0 -0
- /package/bin/{shared → service/builtins/chat}/types/ChatRuntime.js +0 -0
- /package/bin/{shared → service/builtins/chat}/types/ChatService.js +0 -0
- /package/bin/{shared → service/builtins/shell}/types/Shell.d.ts +0 -0
- /package/bin/{shared → service/builtins/shell}/types/Shell.js +0 -0
- /package/bin/{shared → service}/types/ServiceSchedule.js +0 -0
- /package/bin/{shared → service}/types/ServiceState.js +0 -0
- /package/bin/{shared → service}/types/Services.js +0 -0
- /package/bin/{types/session → session/types}/SessionExecutor.js +0 -0
- /package/bin/{types/session → session/types}/SessionHistoryMeta.d.ts +0 -0
- /package/bin/{types/session → session/types}/SessionHistoryMeta.js +0 -0
- /package/bin/{types/session → session/types}/SessionHistoryPaths.d.ts +0 -0
- /package/bin/{types/session → session/types}/SessionHistoryPaths.js +0 -0
- /package/bin/{types/session → session/types}/SessionLoop.d.ts +0 -0
- /package/bin/{types/session → session/types}/SessionLoop.js +0 -0
- /package/bin/{types/session → session/types}/SessionMessages.js +0 -0
- /package/bin/{types/session → session/types}/SessionPrompts.d.ts +0 -0
- /package/bin/{types/session → session/types}/SessionPrompts.js +0 -0
- /package/bin/{types/session → session/types}/SessionRun.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}/Template.js +0 -0
- /package/bin/{shared/utils → utils}/Time.d.ts +0 -0
- /package/bin/{shared/utils → utils}/Time.js +0 -0
- /package/bin/{shared/utils → utils}/cli/Checker.d.ts +0 -0
- /package/bin/{shared/utils → utils}/cli/Checker.js +0 -0
- /package/bin/{shared/utils → utils}/cli/CliOutput.d.ts +0 -0
- /package/bin/{shared/utils → utils}/cli/PrettyStatus.d.ts +0 -0
- /package/bin/{shared/utils → utils}/cli/PrettyStatus.js +0 -0
- /package/bin/{shared/utils → utils}/logger/Fetch.js +0 -0
- /package/bin/{shared/utils → utils}/logger/Format.d.ts +0 -0
- /package/bin/{shared/utils → utils}/logger/Format.js +0 -0
- /package/bin/{shared/utils → utils}/logger/FormatRequest.js +0 -0
- /package/bin/{shared/utils → utils}/logger/FormatResponse.js +0 -0
- /package/bin/{shared/utils → utils}/logger/FormatShared.js +0 -0
- /package/bin/{shared/utils → utils}/storage/index.js +0 -0
- /package/bin/{shared → utils}/types/Json.d.ts +0 -0
- /package/bin/{shared → utils}/types/Json.js +0 -0
- /package/bin/{shared → utils}/types/Template.d.ts +0 -0
- /package/bin/{shared → utils}/types/Template.js +0 -0
- /package/src/{shared → config}/types/ExecutionBinding.ts +0 -0
- /package/src/{shared → config}/types/LlmConfig.ts +0 -0
- /package/src/{shared → config}/types/ModelBinding.ts +0 -0
- /package/src/{shared → config}/types/Start.ts +0 -0
- /package/src/{shared → host/daemon}/types/Daemon.ts +0 -0
- /package/src/{http → host/http}/auth/AuthError.ts +0 -0
- /package/src/{http → host/http}/auth/PasswordHasher.ts +0 -0
- /package/src/{http → host/http}/auth/TokenService.ts +0 -0
- /package/src/{shared/types/auth → host/http/auth/types}/AuthPermission.ts +0 -0
- /package/src/{shared/types/auth → host/http/auth/types}/AuthRoute.ts +0 -0
- /package/src/{shared/types/auth → host/http/auth/types}/AuthToken.ts +0 -0
- /package/src/{shared/types/auth → host/http/auth/types}/AuthTypes.ts +0 -0
- /package/src/{http → host/http}/control/CommonHelpers.ts +0 -0
- /package/src/{http → host/http}/control/Helpers.ts +0 -0
- /package/src/{shared → host/http/control}/types/ControlRoutes.ts +0 -0
- /package/src/{shared → host/http/control}/types/ControlSessionExecute.ts +0 -0
- /package/src/{http → host/http}/execute/execute.ts +0 -0
- /package/src/{shared → host/http/execute}/types/InlineInstant.ts +0 -0
- /package/src/{http → host/http}/health/health.ts +0 -0
- /package/src/{http → host/http}/plugins/plugins.ts +0 -0
- /package/src/{http → host/http}/services/services.ts +0 -0
- /package/src/{http → host/http}/static/static.ts +0 -0
- /package/src/{shared → host/runtime}/types/Platform.ts +0 -0
- /package/src/{shared → host/runtime}/types/PlatformGateway.ts +0 -0
- /package/src/{shared → plugin/builtins/auth}/types/AuthPlugin.ts +0 -0
- /package/{bin/plugins/skill/PROMPT.txt → src/plugin/builtins/skill/PROMPT.ts.txt} +0 -0
- /package/src/{plugins → plugin/builtins}/skill/runtime/Frontmatter.ts +0 -0
- /package/src/{plugins → plugin/builtins}/skill/runtime/Utils.ts +0 -0
- /package/src/{shared → plugin/builtins/skill}/types/SkillCommand.ts +0 -0
- /package/src/{shared → plugin/builtins/skill}/types/SkillPlugin.ts +0 -0
- /package/src/{shared → plugin/builtins/skill}/types/SkillRoot.ts +0 -0
- /package/src/{plugins → plugin/builtins}/tts/runtime/Paths.ts +0 -0
- /package/src/{shared → plugin/builtins/tts}/types/Tts.ts +0 -0
- /package/src/{plugins → plugin/builtins}/voice/runtime/Paths.ts +0 -0
- /package/src/{shared → plugin/builtins/voice}/types/Voice.ts +0 -0
- /package/{bin/plugins/web/PROMPT.agent-browser.txt → src/plugin/builtins/web/PROMPT.agent-browser.ts.txt} +0 -0
- /package/{bin/plugins/web/PROMPT.txt → src/plugin/builtins/web/PROMPT.ts.txt} +0 -0
- /package/{bin/plugins/web/PROMPT.web-access.txt → src/plugin/builtins/web/PROMPT.web-access.ts.txt} +0 -0
- /package/src/{plugins → plugin/builtins}/workboard/types/Workboard.ts +0 -0
- /package/src/{shared → plugin}/types/PluginLifecycle.ts +0 -0
- /package/{bin/service/builtins/chat/PROMPT.direct.txt → src/service/builtins/chat/PROMPT.direct.ts.txt} +0 -0
- /package/{bin/service/builtins/chat/channels/feishu/PROMPT.direct.txt → src/service/builtins/chat/channels/feishu/PROMPT.direct.ts.txt} +0 -0
- /package/src/{shared → service/builtins/chat/channels/feishu}/types/FeishuChannel.ts +0 -0
- /package/{bin/service/builtins/chat/channels/qq/PROMPT.direct.txt → src/service/builtins/chat/channels/qq/PROMPT.direct.ts.txt} +0 -0
- /package/src/{shared → service/builtins/chat/channels/qq}/types/QqGatewaySupport.ts +0 -0
- /package/src/{shared → service/builtins/chat}/types/ChatPlugin.ts +0 -0
- /package/src/{shared → service/builtins/chat}/types/ChatQueueWorker.ts +0 -0
- /package/src/{shared → service/builtins/chat}/types/ChatRuntime.ts +0 -0
- /package/{bin/service/builtins/contact/PROMPT.txt → src/service/builtins/contact/PROMPT.ts.txt} +0 -0
- /package/src/{shared → service/builtins/shell}/types/Shell.ts +0 -0
- /package/{bin/service/builtins/task/PROMPT.txt → src/service/builtins/task/PROMPT.ts.txt} +0 -0
- /package/{bin/session/composer/system/default/assets/core.prompt.txt → src/session/composer/system/default/assets/core.prompt.ts.txt} +0 -0
- /package/{bin/session/composer/system/default/assets/service.prompt.txt → src/session/composer/system/default/assets/service.prompt.ts.txt} +0 -0
- /package/{bin/session/composer/system/default/assets/task.prompt.txt → src/session/composer/system/default/assets/task.prompt.ts.txt} +0 -0
- /package/src/{types/session → session/types}/SessionHistoryMeta.ts +0 -0
- /package/src/{types/session → session/types}/SessionHistoryPaths.ts +0 -0
- /package/src/{types/session → session/types}/SessionLoop.ts +0 -0
- /package/src/{types/session → session/types}/SessionPrompts.ts +0 -0
- /package/src/{shared/utils → utils}/Id.ts +0 -0
- /package/src/{shared/utils → utils}/Time.ts +0 -0
- /package/src/{shared/utils → utils}/cli/Checker.ts +0 -0
- /package/src/{shared/utils → utils}/cli/PrettyStatus.ts +0 -0
- /package/src/{shared/utils → utils}/logger/Format.ts +0 -0
- /package/src/{shared → utils}/types/Json.ts +0 -0
- /package/src/{shared → utils}/types/Template.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentContext.d.ts","sourceRoot":"","sources":["../../src/agent/AgentContext.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAEV,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AA6HjE;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"AgentContext.d.ts","sourceRoot":"","sources":["../../src/agent/AgentContext.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAEV,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AA6HjE;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAoBpE;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED;;;GAGG"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - 该模块把 service invoke、plugin port、chat runtime port 收敛成稳定端口集合。
|
|
8
8
|
*/
|
|
9
9
|
import { runServiceCommand } from "../service/core/Manager.js";
|
|
10
|
-
import { getPluginManager } from "../plugin/PluginManager.js";
|
|
10
|
+
import { getPluginManager } from "../plugin/core/PluginManager.js";
|
|
11
11
|
import { getAgentRuntime } from "../agent/AgentRuntimeState.js";
|
|
12
12
|
import { appendExecSessionMessage } from "../service/builtins/chat/runtime/ChatIngressStore.js";
|
|
13
13
|
import { readChatMetaBySessionId } from "../service/builtins/chat/runtime/ChatMetaStore.js";
|
|
@@ -128,6 +128,7 @@ export function createAgentContext(input) {
|
|
|
128
128
|
systems: input.systems,
|
|
129
129
|
paths: input.paths,
|
|
130
130
|
pluginConfig: input.pluginConfig,
|
|
131
|
+
platform: input.platform,
|
|
131
132
|
session: buildSessionPort(input),
|
|
132
133
|
invoke: serviceInvokePort,
|
|
133
134
|
chat: buildChatPort(() => context),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentContext.js","sourceRoot":"","sources":["../../src/agent/AgentContext.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAeH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AgentContext.js","sourceRoot":"","sources":["../../src/agent/AgentContext.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAeH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACl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C,MAAM,EAAE,iBAAiB;QACzB,IAAI,EAAE,aAAa,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC;QAClC,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC;KAChC,CAAC;IACF,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,kBAAkB,CAAC,eAAe,EAAE,CAAC,CAAC;AAC/C,CAAC;AAED;;;GAGG"}
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
* - `AgentRuntime` 才负责保存长期状态;`AgentContext` 只负责把这些状态暴露成执行接口。
|
|
8
8
|
*/
|
|
9
9
|
import type { LanguageModel } from "ai";
|
|
10
|
-
import type { Logger } from "../
|
|
10
|
+
import type { Logger } from "../utils/logger/Logger.js";
|
|
11
11
|
import type { AgentRuntime } from "../agent/AgentRuntimeTypes.js";
|
|
12
|
-
import type { AgentPathRuntime, AgentPluginConfigRuntime } from "../
|
|
13
|
-
import type { DowncityConfig } from "../
|
|
14
|
-
import type { JsonObject, JsonValue } from "../
|
|
15
|
-
import type { PluginPort } from "../
|
|
12
|
+
import type { AgentPathRuntime, AgentPlatformRuntime, AgentPluginConfigRuntime } from "../host/types/AgentHost.js";
|
|
13
|
+
import type { DowncityConfig } from "../config/types/DowncityConfig.js";
|
|
14
|
+
import type { JsonObject, JsonValue } from "../utils/types/Json.js";
|
|
15
|
+
import type { PluginPort } from "../plugin/types/Plugin.js";
|
|
16
16
|
import type { ChatMetaV1 } from "../service/builtins/chat/types/ChatMeta.js";
|
|
17
17
|
import type { ChatQueueEnqueueParams, ChatQueueEnqueueResult } from "../service/builtins/chat/types/ChatQueue.js";
|
|
18
|
-
import type { SessionMetadataV1, SessionMessageV1, SessionUserMessageV1 } from "../types/
|
|
19
|
-
import type { SessionAssistantStepCallback, SessionRunInput, SessionRunResult } from "../types/
|
|
18
|
+
import type { SessionMetadataV1, SessionMessageV1, SessionUserMessageV1 } from "../session/types/SessionMessages.js";
|
|
19
|
+
import type { SessionAssistantStepCallback, SessionRunInput, SessionRunResult } from "../session/types/SessionRun.js";
|
|
20
20
|
/**
|
|
21
21
|
* 跨 service 调用参数。
|
|
22
22
|
*/
|
|
@@ -315,6 +315,10 @@ export interface AgentContext {
|
|
|
315
315
|
* 当前可见的 plugin 配置持久化能力集合。
|
|
316
316
|
*/
|
|
317
317
|
pluginConfig: AgentPluginConfigRuntime;
|
|
318
|
+
/**
|
|
319
|
+
* 当前可见的平台能力集合。
|
|
320
|
+
*/
|
|
321
|
+
platform: AgentPlatformRuntime;
|
|
318
322
|
/**
|
|
319
323
|
* Session 能力入口。
|
|
320
324
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentContextTypes.d.ts","sourceRoot":"","sources":["../../src/agent/AgentContextTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AgentContextTypes.d.ts","sourceRoot":"","sources":["../../src/agent/AgentContextTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2C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AC;QAClB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,KAAK,CAAC,EAAE,UAAU,CAAC;KACpB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,sBAAsB,CAAC;CACjE;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,YAAY,EAAE,wBAAwB,CAAC;IACvC;;OAEG;IACH,QAAQ,EAAE,oBAAoB,CAAC;IAC/B;;;;;;OAMG;IACH,OAAO,EAAE,qBAAqB,CAAC;IAC/B;;OAEG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAC1B;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,UAAU,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;CACtC,CAAC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* - 该模块同时负责热重载提示词系统与导出统一的 `getAgentContext()` 入口。
|
|
8
8
|
* - 当前只有 `api` 执行模式:从 console 模型池取模型,走 LocalSessionCore。
|
|
9
9
|
*/
|
|
10
|
+
import type { AgentPlatformRuntime } from "../host/types/AgentHost.js";
|
|
10
11
|
export type { AgentRuntimeBase, AgentRuntime } from "../agent/AgentRuntimeState.js";
|
|
11
12
|
export { getAgentRuntime, getAgentRuntimeBase, setAgentRuntime, setAgentRuntimeBase, requireAgentModel, } from "../agent/AgentRuntimeState.js";
|
|
12
13
|
export { getAgentContext } from "../agent/AgentContext.js";
|
|
@@ -28,5 +29,9 @@ export declare function refreshAgentProjectConfig(): boolean;
|
|
|
28
29
|
* 关键点(中文)
|
|
29
30
|
* - 只有 api 执行模式:从 console 模型池创建模型 → LocalSessionExecutor → LocalSessionCore。
|
|
30
31
|
*/
|
|
31
|
-
export declare function initAgentRuntime(cwd: string
|
|
32
|
+
export declare function initAgentRuntime(cwd: string, options?: {
|
|
33
|
+
platform?: AgentPlatformRuntime;
|
|
34
|
+
globalEnv?: Record<string, string>;
|
|
35
|
+
projectEnv?: Record<string, string>;
|
|
36
|
+
}): Promise<void>;
|
|
32
37
|
//# sourceMappingURL=AgentRuntime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRuntime.d.ts","sourceRoot":"","sources":["../../src/agent/AgentRuntime.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"AgentRuntime.d.ts","sourceRoot":"","sources":["../../src/agent/AgentRuntime.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoDH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AA4C1D;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAUzC;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,IAAI,OAAO,CAanD;AAyED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC,GACA,OAAO,CAAC,IAAI,CAAC,CA4If"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import path from "path";
|
|
11
11
|
import fs from "fs";
|
|
12
|
-
import { logger as defaultLogger } from "../
|
|
12
|
+
import { logger as defaultLogger } from "../utils/logger/Logger.js";
|
|
13
13
|
import { LocalSessionExecutor } from "../session/executors/local/LocalSessionExecutor.js";
|
|
14
14
|
import { ensureRuntimeProjectReady } from "../host/daemon/ProjectSetup.js";
|
|
15
15
|
import { createModel } from "../model/CreateModel.js";
|
|
@@ -28,7 +28,7 @@ import { getAgentContext, } from "../agent/AgentContext.js";
|
|
|
28
28
|
import { getAgentRuntime, getAgentRuntimeBase, setAgentRuntime, setAgentRuntimeBase, } from "../agent/AgentRuntimeState.js";
|
|
29
29
|
import { createRegisteredServiceInstances } from "../service/core/ServiceClassRegistry.js";
|
|
30
30
|
import { readProjectPrimaryModelId } from "../agent/project/ProjectExecutionBinding.js";
|
|
31
|
-
import { initializePluginManager, resetPluginManager } from "../plugin/PluginManager.js";
|
|
31
|
+
import { initializePluginManager, resetPluginManager } from "../plugin/core/PluginManager.js";
|
|
32
32
|
import { clearPluginRuntimeContextResolver, setPluginRuntimeContextResolver, } from "../host/runtime/PluginRuntime.js";
|
|
33
33
|
import { createAgentPathRuntime, createAgentPluginConfigRuntime, } from "../host/runtime/AgentHostRuntime.js";
|
|
34
34
|
import { updateAgentRuntimeConfig } from "../agent/AgentRuntimeState.js";
|
|
@@ -36,6 +36,18 @@ export { getAgentRuntime, getAgentRuntimeBase, setAgentRuntime, setAgentRuntimeB
|
|
|
36
36
|
export { getAgentContext } from "../agent/AgentContext.js";
|
|
37
37
|
let staticPromptCatalog = null;
|
|
38
38
|
let configWatchPath = null;
|
|
39
|
+
const EMPTY_RUNTIME_PLATFORM = {
|
|
40
|
+
getGlobalEnv: () => ({}),
|
|
41
|
+
getAgentEnv: () => ({}),
|
|
42
|
+
listModels: () => [],
|
|
43
|
+
listProviders: async () => [],
|
|
44
|
+
getModel: () => null,
|
|
45
|
+
getChannelAccount: () => null,
|
|
46
|
+
readChatAuthorizationConfig: () => ({ roles: {}, channels: {} }),
|
|
47
|
+
writeChatAuthorizationConfig: async (_projectRoot, nextConfig) => nextConfig,
|
|
48
|
+
setChatAuthorizationUserRole: async () => ({ roles: {}, channels: {} }),
|
|
49
|
+
isPluginEnabled: (pluginName) => pluginName === "auth",
|
|
50
|
+
};
|
|
39
51
|
/**
|
|
40
52
|
* 原子更新 AgentRuntime.systems(同时覆盖 base + ready)。
|
|
41
53
|
*/
|
|
@@ -159,15 +171,18 @@ function createSessionHistoryComposer(rootPath, sessionId) {
|
|
|
159
171
|
* 关键点(中文)
|
|
160
172
|
* - 只有 api 执行模式:从 console 模型池创建模型 → LocalSessionExecutor → LocalSessionCore。
|
|
161
173
|
*/
|
|
162
|
-
export async function initAgentRuntime(cwd) {
|
|
174
|
+
export async function initAgentRuntime(cwd, options) {
|
|
163
175
|
stopAgentHotReload();
|
|
164
176
|
resetPluginManager();
|
|
165
177
|
const resolvedCwd = String(cwd || "").trim() || ".";
|
|
166
178
|
const rootPath = path.resolve(resolvedCwd);
|
|
167
179
|
defaultLogger.bindProjectRoot(rootPath);
|
|
168
180
|
ensureRuntimeProjectReady(rootPath);
|
|
169
|
-
const
|
|
170
|
-
const
|
|
181
|
+
const platform = options?.platform || EMPTY_RUNTIME_PLATFORM;
|
|
182
|
+
const globalEnv = options?.globalEnv || platform?.getGlobalEnv() || loadGlobalEnvFromStore();
|
|
183
|
+
const projectEnv = options?.projectEnv ||
|
|
184
|
+
platform?.getAgentEnv(rootPath) ||
|
|
185
|
+
loadAgentEnvSnapshot(rootPath);
|
|
171
186
|
const config = loadDowncityConfig(rootPath, {
|
|
172
187
|
projectEnv,
|
|
173
188
|
globalEnv,
|
|
@@ -184,6 +199,7 @@ export async function initAgentRuntime(cwd) {
|
|
|
184
199
|
systems: [],
|
|
185
200
|
paths: createAgentPathRuntime(rootPath),
|
|
186
201
|
pluginConfig: createAgentPluginConfigRuntime(rootPath),
|
|
202
|
+
platform: platform,
|
|
187
203
|
});
|
|
188
204
|
const systems = loadStaticSystemPrompts(rootPath);
|
|
189
205
|
setAgentRuntimeBase({
|
|
@@ -196,12 +212,14 @@ export async function initAgentRuntime(cwd) {
|
|
|
196
212
|
systems,
|
|
197
213
|
paths: createAgentPathRuntime(rootPath),
|
|
198
214
|
pluginConfig: createAgentPluginConfigRuntime(rootPath),
|
|
215
|
+
platform: platform,
|
|
199
216
|
});
|
|
200
217
|
const primaryModelId = readProjectPrimaryModelId(config);
|
|
201
218
|
const model = await createModel({
|
|
202
219
|
config,
|
|
203
220
|
getSessionRunScope: getSessionRunScope,
|
|
204
221
|
projectRoot: rootPath,
|
|
222
|
+
platform,
|
|
205
223
|
});
|
|
206
224
|
const compactionComposer = new JsonlSessionCompactionComposer({
|
|
207
225
|
keepLastMessages: config.context?.messages?.keepLastMessages,
|
|
@@ -258,6 +276,7 @@ export async function initAgentRuntime(cwd) {
|
|
|
258
276
|
systems,
|
|
259
277
|
paths: createAgentPathRuntime(rootPath),
|
|
260
278
|
pluginConfig: createAgentPluginConfigRuntime(rootPath),
|
|
279
|
+
platform: platform,
|
|
261
280
|
model,
|
|
262
281
|
getSession,
|
|
263
282
|
listExecutingSessionIds: () => [...sessionsById.entries()]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRuntime.js","sourceRoot":"","sources":["../../src/agent/AgentRuntime.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AgentRuntime.js","sourceRoot":"","sources":["../../src/agent/AgentRuntime.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACL,aAAa,EACb,qBAAqB,GACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAE,8BAA8B,EAAE,MAAM,sEAAsE,CAAC;AACtH,OAAO,EAAE,4BAA4B,EAAE,MAAM,kEAAkE,CAAC;AAEhH,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAO,EACL,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,yDAAyD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AO,CAAC,WAAW,EAAE,CAAC;aAClE,MAAM;QACX,QAAQ,EAAE,IAAI,GAAG,EAAE;KACpB,CAAC;IACF,UAAU,CAAC,QAAQ,GAAG,gCAAgC,CAAC,UAAU,CAAC,CAAC;IAEnE,eAAe,CAAC,UAAU,CAAC,CAAC;IAC5B,+BAA+B,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,CAAC;IACzD,uBAAuB,EAAE,CAAC;IAC1B,mBAAmB,CAAC,eAAe,EAAE,CAAC,MAAM,CAAC,CAAC;IAC9C,mBAAmB,EAAE,CAAC;AACxB,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { LanguageModel } from "ai";
|
|
10
10
|
import type { AgentRuntime, AgentRuntimeBase } from "../agent/AgentRuntimeTypes.js";
|
|
11
|
-
import type { DowncityConfig } from "../
|
|
11
|
+
import type { DowncityConfig } from "../config/types/DowncityConfig.js";
|
|
12
12
|
export type { AgentRuntime, AgentRuntimeBase } from "../agent/AgentRuntimeTypes.js";
|
|
13
13
|
/**
|
|
14
14
|
* 设置 agent 基础状态。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRuntimeState.d.ts","sourceRoot":"","sources":["../../src/agent/AgentRuntimeState.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"AgentRuntimeState.d.ts","sourceRoot":"","sources":["../../src/agent/AgentRuntimeState.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAOvE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAiHnF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAGhE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAIxD;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI,CAkBzE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,gBAAgB,CAKtD;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAU9C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,CAKjD"}
|
|
@@ -15,7 +15,6 @@ const EMPTY_PATHS = {
|
|
|
15
15
|
getDowncityChannelDirPath: () => ".downcity/channel",
|
|
16
16
|
getDowncityChannelMetaPath: () => ".downcity/channel/meta.json",
|
|
17
17
|
getDowncityChatHistoryPath: (sessionId) => `.downcity/chat/${sessionId}/history.jsonl`,
|
|
18
|
-
getDowncityMemoryIndexPath: () => ".downcity/memory/index.sqlite",
|
|
19
18
|
getDowncityMemoryLongTermPath: () => ".downcity/memory/MEMORY.md",
|
|
20
19
|
getDowncityMemoryDailyDirPath: () => ".downcity/memory/daily",
|
|
21
20
|
getDowncityMemoryDailyPath: (date) => `.downcity/memory/daily/${date}.md`,
|
|
@@ -27,6 +26,48 @@ const EMPTY_PLUGIN_CONFIG = {
|
|
|
27
26
|
return "";
|
|
28
27
|
},
|
|
29
28
|
};
|
|
29
|
+
const EMPTY_PLATFORM = {
|
|
30
|
+
getGlobalEnv: () => ({}),
|
|
31
|
+
getAgentEnv: () => ({}),
|
|
32
|
+
listModels: () => [],
|
|
33
|
+
listProviders: async () => [],
|
|
34
|
+
getModel: () => null,
|
|
35
|
+
getChannelAccount: () => null,
|
|
36
|
+
listChannelAccounts: async () => [],
|
|
37
|
+
probeChannelAccount: async () => {
|
|
38
|
+
throw new Error("Channel account probing is not available in this runtime");
|
|
39
|
+
},
|
|
40
|
+
createChannelAccount: async () => {
|
|
41
|
+
throw new Error("Channel account creation is not available in this runtime");
|
|
42
|
+
},
|
|
43
|
+
updateChannelAccount: async () => {
|
|
44
|
+
throw new Error("Channel account update is not available in this runtime");
|
|
45
|
+
},
|
|
46
|
+
removeChannelAccount: async () => {
|
|
47
|
+
throw new Error("Channel account removal is not available in this runtime");
|
|
48
|
+
},
|
|
49
|
+
resolveChannelAccount: (_params) => null,
|
|
50
|
+
readChatAuthorizationConfig: () => ({
|
|
51
|
+
roles: {},
|
|
52
|
+
channels: {},
|
|
53
|
+
}),
|
|
54
|
+
writeChatAuthorizationConfig: async (_projectRoot, nextConfig) => nextConfig,
|
|
55
|
+
setChatAuthorizationUserRole: async () => ({
|
|
56
|
+
roles: {},
|
|
57
|
+
channels: {},
|
|
58
|
+
}),
|
|
59
|
+
isPluginEnabled: (pluginName) => pluginName === "auth",
|
|
60
|
+
setPluginEnabled: () => {
|
|
61
|
+
throw new Error("Plugin lifecycle management is not available in this runtime");
|
|
62
|
+
},
|
|
63
|
+
listPlatformModelChoices: async () => [],
|
|
64
|
+
initializeAgentProject: async () => {
|
|
65
|
+
throw new Error("Agent project initialization is not available in this runtime");
|
|
66
|
+
},
|
|
67
|
+
ensureRuntimeExecutionBindingReady: () => {
|
|
68
|
+
throw new Error("Execution binding validation is not available in this runtime");
|
|
69
|
+
},
|
|
70
|
+
};
|
|
30
71
|
function normalizeReadyState(input) {
|
|
31
72
|
if (typeof input.getSession !== "function") {
|
|
32
73
|
throw new Error("AgentRuntime requires getSession");
|
|
@@ -41,6 +82,7 @@ function normalizeReadyState(input) {
|
|
|
41
82
|
systems: input.systems,
|
|
42
83
|
paths: input.paths || EMPTY_PATHS,
|
|
43
84
|
pluginConfig: input.pluginConfig || EMPTY_PLUGIN_CONFIG,
|
|
85
|
+
platform: input.platform || EMPTY_PLATFORM,
|
|
44
86
|
model: input.model,
|
|
45
87
|
getSession: input.getSession,
|
|
46
88
|
listExecutingSessionIds: input.listExecutingSessionIds || (() => []),
|
|
@@ -48,11 +90,25 @@ function normalizeReadyState(input) {
|
|
|
48
90
|
services: input.services || new Map(),
|
|
49
91
|
};
|
|
50
92
|
}
|
|
93
|
+
function normalizeBaseState(input) {
|
|
94
|
+
return {
|
|
95
|
+
cwd: input.cwd,
|
|
96
|
+
rootPath: input.rootPath,
|
|
97
|
+
logger: input.logger,
|
|
98
|
+
config: input.config,
|
|
99
|
+
env: input.env,
|
|
100
|
+
globalEnv: input.globalEnv,
|
|
101
|
+
systems: input.systems,
|
|
102
|
+
paths: input.paths || EMPTY_PATHS,
|
|
103
|
+
pluginConfig: input.pluginConfig || EMPTY_PLUGIN_CONFIG,
|
|
104
|
+
platform: input.platform || EMPTY_PLATFORM,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
51
107
|
/**
|
|
52
108
|
* 设置 agent 基础状态。
|
|
53
109
|
*/
|
|
54
110
|
export function setAgentRuntimeBase(next) {
|
|
55
|
-
baseState = next;
|
|
111
|
+
baseState = normalizeBaseState(next);
|
|
56
112
|
readyState = null;
|
|
57
113
|
}
|
|
58
114
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRuntimeState.js","sourceRoot":"","sources":["../../src/agent/AgentRuntimeState.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"AgentRuntimeState.js","sourceRoot":"","sources":["../../src/agent/AgentRuntimeState.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgBH,IAAI,SAAS,GAA4B,IAAI,CAAC;AAC9C,IAAI,UAAU,GAAwB,IAAI,CAAC;AAE3C,MAAM,WAAW,GAAqB;IACpC,WAAW,EAAE,GAAG;IAChB,kBAAkB,EAAE,GAAG,EAA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M,UAAU,eAAe,CAAC,IAAkB;IAChD,MAAM,UAAU,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC7C,SAAS,GAAG,UAAU,CAAC;IACvB,UAAU,GAAG,UAAU,CAAC;AAC1B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CAAC,UAA0B;IACjE,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;IACJ,CAAC;IAED,SAAS,GAAG;QACV,GAAG,SAAS;QACZ,MAAM,EAAE,UAAU;KACnB,CAAC;IAEF,IAAI,UAAU,EAAE,CAAC;QACf,UAAU,GAAG;YACX,GAAG,UAAU;YACb,MAAM,EAAE,UAAU;SACnB,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,IAAI,SAAS;QAAE,OAAO,SAAS,CAAC;IAChC,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe;IAC7B,IAAI,UAAU;QAAE,OAAO,UAAU,CAAC;IAClC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,KAAK,CACb,4EAA4E,CAC7E,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,IAAI,UAAU,EAAE,KAAK;QAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IAC/C,MAAM,IAAI,KAAK,CACb,mFAAmF,CACpF,CAAC;AACJ,CAAC"}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* - Session / Service / Plugin 这些长期对象都应从这里挂出。
|
|
8
8
|
*/
|
|
9
9
|
import type { LanguageModel } from "ai";
|
|
10
|
-
import type { Logger } from "../
|
|
11
|
-
import type { DowncityConfig } from "../
|
|
12
|
-
import type { AgentPathRuntime, AgentPluginConfigRuntime } from "../
|
|
10
|
+
import type { Logger } from "../utils/logger/Logger.js";
|
|
11
|
+
import type { DowncityConfig } from "../config/types/DowncityConfig.js";
|
|
12
|
+
import type { AgentPathRuntime, AgentPlatformRuntime, AgentPluginConfigRuntime } from "../host/types/AgentHost.js";
|
|
13
13
|
import type { BaseService } from "../service/builtins/BaseService.js";
|
|
14
14
|
import type { Session } from "../session/Session.js";
|
|
15
15
|
/**
|
|
@@ -52,6 +52,10 @@ export interface AgentRuntimeBase {
|
|
|
52
52
|
* 当前 agent 可见的 plugin 配置持久化能力集合。
|
|
53
53
|
*/
|
|
54
54
|
pluginConfig: AgentPluginConfigRuntime;
|
|
55
|
+
/**
|
|
56
|
+
* 当前 agent 可见的平台能力集合。
|
|
57
|
+
*/
|
|
58
|
+
platform: AgentPlatformRuntime;
|
|
55
59
|
}
|
|
56
60
|
/**
|
|
57
61
|
* Agent 进程完整运行状态。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRuntimeTypes.d.ts","sourceRoot":"","sources":["../../src/agent/AgentRuntimeTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AgentRuntimeTypes.d.ts","sourceRoot":"","sources":["../../src/agent/AgentRuntimeTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,YAAY,EAAE,wBAAwB,CAAC;IACvC;;OAEG;IACH,QAAQ,EAAE,oBAAoB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IACvC;;OAEG;IACH,uBAAuB,IAAI,MAAM,EAAE,CAAC;IACpC;;OAEG;IACH,wBAAwB,IAAI,MAAM,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACpC"}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* - CLI `city agent create` 与 Console 共用同一套初始化逻辑,避免模板与目录结构分叉。
|
|
6
6
|
* - 只负责项目骨架与配置文件,不处理 daemon 启停。
|
|
7
7
|
*/
|
|
8
|
-
import type { AgentProjectInitializationInput, AgentProjectInitializationResult } from "../../
|
|
8
|
+
import type { AgentProjectInitializationInput, AgentProjectInitializationResult } from "../../agent/project/types/AgentProject.js";
|
|
9
|
+
import type { AgentPlatformRuntime } from "../../host/types/AgentHost.js";
|
|
9
10
|
/**
|
|
10
11
|
* 平台模型选项。
|
|
11
12
|
*/
|
|
@@ -26,7 +27,7 @@ export declare function normalizeDefaultAgentName(input: string): string;
|
|
|
26
27
|
/**
|
|
27
28
|
* 读取平台全局模型选项。
|
|
28
29
|
*/
|
|
29
|
-
export declare function listPlatformModelChoices(): Promise<PlatformModelChoice[]>;
|
|
30
|
+
export declare function listPlatformModelChoices(platform: Pick<AgentPlatformRuntime, "listModels" | "listProviders">): Promise<PlatformModelChoice[]>;
|
|
30
31
|
/**
|
|
31
32
|
* 判断项目是否已经具备最小初始化文件。
|
|
32
33
|
*/
|
|
@@ -34,5 +35,5 @@ export declare function isAgentProjectInitialized(projectRoot: string): Promise<
|
|
|
34
35
|
/**
|
|
35
36
|
* 初始化 agent 项目骨架。
|
|
36
37
|
*/
|
|
37
|
-
export declare function initializeAgentProject(input: AgentProjectInitializationInput): Promise<AgentProjectInitializationResult>;
|
|
38
|
+
export declare function initializeAgentProject(input: AgentProjectInitializationInput, platform?: Pick<AgentPlatformRuntime, "listModels" | "listProviders" | "getModel">): Promise<AgentProjectInitializationResult>;
|
|
38
39
|
//# sourceMappingURL=AgentInitializer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentInitializer.d.ts","sourceRoot":"","sources":["../../../src/agent/project/AgentInitializer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"AgentInitializer.d.ts","sourceRoot":"","sources":["../../../src/agent/project/AgentInitializer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+BH,OAAO,KAAK,EAEV,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,uCAAuC,CAAC;AAG/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AA4CD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED;;GAEG;AACH,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,IAAI,CAAC,oBAAoB,EAAE,YAAY,GAAG,eAAe,CAAC,GACnE,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAqBhC;AA0GD;;GAEG;AACH,wBAAsB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAKrF;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,+BAA+B,EACtC,QAAQ,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,YAAY,GAAG,eAAe,GAAG,UAAU,CAAC,GACjF,OAAO,CAAC,gCAAgC,CAAC,CAoK3C"}
|