@downcity/agent 1.1.8 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +612 -139
- package/bin/config/Config.d.ts +1 -1
- package/bin/config/Config.d.ts.map +1 -1
- package/bin/config/Config.js +4 -5
- 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 -1
- package/bin/config/Paths.js +2 -2
- package/bin/host/daemon/Api.d.ts +2 -2
- package/bin/host/daemon/Api.js +1 -1
- package/bin/host/daemon/Client.js +2 -2
- package/bin/host/daemon/Client.js.map +1 -1
- package/bin/host/daemon/Paths.d.ts +20 -0
- package/bin/host/daemon/Paths.d.ts.map +1 -0
- package/bin/host/daemon/Paths.js +23 -0
- package/bin/host/daemon/Paths.js.map +1 -0
- package/bin/host/daemon/ProjectSetup.d.ts +1 -1
- package/bin/host/daemon/ProjectSetup.d.ts.map +1 -1
- package/bin/host/daemon/ProjectSetup.js +1 -1
- package/bin/host/daemon/ProjectSetup.js.map +1 -1
- 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 +3 -3
- package/bin/host/runtime/AgentHostRuntime.js.map +1 -1
- package/bin/host/runtime/PluginRuntime.d.ts +1 -1
- package/bin/host/runtime/PluginRuntime.d.ts.map +1 -1
- package/bin/index.d.ts +64 -82
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +47 -87
- package/bin/index.js.map +1 -1
- package/bin/model/CreateModel.d.ts +2 -2
- package/bin/model/CreateModel.d.ts.map +1 -1
- package/bin/model/CreateModel.js +3 -3
- package/bin/model/CreateModel.js.map +1 -1
- package/bin/model/ModelManager.d.ts +1 -1
- package/bin/plugin/builtins/asr/Config.d.ts +43 -0
- package/bin/plugin/builtins/asr/Config.d.ts.map +1 -0
- package/bin/plugin/builtins/asr/Config.js +107 -0
- package/bin/plugin/builtins/asr/Config.js.map +1 -0
- 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/InboundAugment.d.ts +17 -0
- package/bin/plugin/builtins/asr/InboundAugment.d.ts.map +1 -0
- package/bin/plugin/builtins/asr/InboundAugment.js +47 -0
- package/bin/plugin/builtins/asr/InboundAugment.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 +462 -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.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 +472 -0
- package/bin/plugin/builtins/tts/Plugin.js.map +1 -0
- package/bin/plugin/builtins/tts/PluginSupport.d.ts +25 -0
- package/bin/plugin/builtins/tts/PluginSupport.d.ts.map +1 -0
- package/bin/plugin/builtins/tts/PluginSupport.js +72 -0
- package/bin/plugin/builtins/tts/PluginSupport.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/Config.d.ts +43 -0
- package/bin/plugin/builtins/voice/Config.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/Config.js +104 -0
- package/bin/plugin/builtins/voice/Config.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/InboundAugment.d.ts +17 -0
- package/bin/plugin/builtins/voice/InboundAugment.d.ts.map +1 -0
- package/bin/plugin/builtins/voice/InboundAugment.js +47 -0
- package/bin/plugin/builtins/voice/InboundAugment.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 +426 -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.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/project/AgentInitializer.d.ts +39 -0
- package/bin/project/AgentInitializer.d.ts.map +1 -0
- package/bin/project/AgentInitializer.js +339 -0
- package/bin/project/AgentInitializer.js.map +1 -0
- package/bin/project/ProjectExecutionBinding.d.ts +27 -0
- package/bin/project/ProjectExecutionBinding.d.ts.map +1 -0
- package/bin/project/ProjectExecutionBinding.js.map +1 -0
- package/bin/project/types/AgentProject.d.ts +80 -0
- package/bin/project/types/AgentProject.d.ts.map +1 -0
- package/bin/project/types/AgentProject.js.map +1 -0
- package/bin/runtime/AgentContext.d.ts +23 -0
- package/bin/runtime/AgentContext.d.ts.map +1 -0
- package/bin/runtime/AgentContext.js +149 -0
- package/bin/runtime/AgentContext.js.map +1 -0
- package/bin/runtime/AgentContextTypes.d.ts +349 -0
- package/bin/runtime/AgentContextTypes.d.ts.map +1 -0
- package/bin/runtime/AgentContextTypes.js.map +1 -0
- package/bin/runtime/AgentRuntime.d.ts +37 -0
- package/bin/runtime/AgentRuntime.d.ts.map +1 -0
- package/bin/runtime/AgentRuntime.js +296 -0
- package/bin/runtime/AgentRuntime.js.map +1 -0
- package/bin/runtime/AgentRuntimeState.d.ts +42 -0
- package/bin/runtime/AgentRuntimeState.d.ts.map +1 -0
- package/bin/runtime/AgentRuntimeState.js.map +1 -0
- package/bin/runtime/AgentRuntimeTypes.d.ts +85 -0
- package/bin/runtime/AgentRuntimeTypes.d.ts.map +1 -0
- package/bin/runtime/AgentRuntimeTypes.js.map +1 -0
- package/bin/sandbox/MacOsSeatbeltSandbox.d.ts +1 -1
- package/bin/sandbox/SandboxConfigResolver.d.ts +2 -2
- package/bin/sandbox/SandboxConfigResolver.d.ts.map +1 -1
- package/bin/sandbox/SandboxRunner.d.ts +2 -2
- package/bin/sandbox/SandboxRunner.d.ts.map +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/sdk/Agent.d.ts +64 -0
- package/bin/sdk/Agent.d.ts.map +1 -0
- package/bin/sdk/Agent.js +377 -0
- package/bin/sdk/Agent.js.map +1 -0
- package/bin/sdk/AgentSdkTypes.d.ts +266 -0
- package/bin/sdk/AgentSdkTypes.d.ts.map +1 -0
- package/bin/sdk/AgentSdkTypes.js.map +1 -0
- package/bin/sdk/AsyncQueue.d.ts.map +1 -0
- package/bin/sdk/AsyncQueue.js.map +1 -0
- package/bin/sdk/HttpServer.d.ts +40 -0
- package/bin/sdk/HttpServer.d.ts.map +1 -0
- package/bin/sdk/HttpServer.js +189 -0
- package/bin/sdk/HttpServer.js.map +1 -0
- package/bin/sdk/Paths.d.ts.map +1 -0
- package/bin/sdk/Paths.js.map +1 -0
- package/bin/sdk/RemoteAgent.d.ts +58 -0
- package/bin/sdk/RemoteAgent.d.ts.map +1 -0
- package/bin/sdk/RemoteAgent.js +164 -0
- package/bin/sdk/RemoteAgent.js.map +1 -0
- package/bin/sdk/RpcServer.d.ts +31 -0
- package/bin/sdk/RpcServer.d.ts.map +1 -0
- package/bin/sdk/RpcServer.js +207 -0
- package/bin/sdk/RpcServer.js.map +1 -0
- package/bin/sdk/SdkSessionSystemComposer.d.ts +73 -0
- package/bin/sdk/SdkSessionSystemComposer.d.ts.map +1 -0
- package/bin/sdk/SdkSessionSystemComposer.js +96 -0
- package/bin/sdk/SdkSessionSystemComposer.js.map +1 -0
- package/bin/sdk/Session.d.ts +143 -0
- package/bin/sdk/Session.d.ts.map +1 -0
- package/bin/sdk/Session.js +358 -0
- package/bin/sdk/Session.js.map +1 -0
- package/bin/sdk/SessionMetadata.d.ts +51 -0
- package/bin/sdk/SessionMetadata.d.ts.map +1 -0
- package/bin/sdk/SessionMetadata.js +124 -0
- package/bin/sdk/SessionMetadata.js.map +1 -0
- package/bin/sdk/SessionPersistence.d.ts +63 -0
- package/bin/sdk/SessionPersistence.d.ts.map +1 -0
- package/bin/sdk/SessionPersistence.js +52 -0
- package/bin/sdk/SessionPersistence.js.map +1 -0
- package/bin/sdk/SessionServicePort.d.ts +34 -0
- package/bin/sdk/SessionServicePort.d.ts.map +1 -0
- package/bin/sdk/SessionServicePort.js +36 -0
- package/bin/sdk/SessionServicePort.js.map +1 -0
- package/bin/sdk/StreamEvents.d.ts +36 -0
- package/bin/sdk/StreamEvents.d.ts.map +1 -0
- package/bin/sdk/StreamEvents.js +116 -0
- package/bin/sdk/StreamEvents.js.map +1 -0
- package/bin/server/http/Server.d.ts.map +1 -0
- package/bin/server/http/Server.js +112 -0
- package/bin/server/http/Server.js.map +1 -0
- package/bin/server/http/auth/AuthEnv.d.ts.map +1 -0
- package/bin/server/http/auth/AuthEnv.js.map +1 -0
- package/bin/server/http/auth/AuthError.d.ts.map +1 -0
- package/bin/server/http/auth/AuthError.js.map +1 -0
- package/bin/server/http/auth/CliAuthStateStore.d.ts.map +1 -0
- package/bin/server/http/auth/CliAuthStateStore.js.map +1 -0
- package/bin/server/http/auth/PasswordHasher.d.ts.map +1 -0
- package/bin/server/http/auth/PasswordHasher.js.map +1 -0
- package/bin/server/http/auth/TokenService.d.ts.map +1 -0
- package/bin/server/http/auth/TokenService.js.map +1 -0
- package/bin/server/http/control/AuthControlService.d.ts +30 -0
- package/bin/server/http/control/AuthControlService.d.ts.map +1 -0
- package/bin/server/http/control/AuthControlService.js +120 -0
- package/bin/server/http/control/AuthControlService.js.map +1 -0
- package/bin/server/http/control/CommonHelpers.d.ts.map +1 -0
- package/bin/server/http/control/CommonHelpers.js.map +1 -0
- package/bin/server/http/control/ControlApiRoutes.d.ts +14 -0
- package/bin/server/http/control/ControlApiRoutes.d.ts.map +1 -0
- package/bin/server/http/control/ControlApiRoutes.js +27 -0
- package/bin/server/http/control/ControlApiRoutes.js.map +1 -0
- package/bin/server/http/control/ControlAuthorizationRoutes.d.ts +17 -0
- package/bin/server/http/control/ControlAuthorizationRoutes.d.ts.map +1 -0
- package/bin/server/http/control/ControlAuthorizationRoutes.js +85 -0
- package/bin/server/http/control/ControlAuthorizationRoutes.js.map +1 -0
- package/bin/server/http/control/ControlRouter.d.ts +19 -0
- package/bin/server/http/control/ControlRouter.d.ts.map +1 -0
- package/bin/server/http/control/ControlRouter.js +26 -0
- package/bin/server/http/control/ControlRouter.js.map +1 -0
- package/bin/server/http/control/ExecuteBySession.d.ts +39 -0
- package/bin/server/http/control/ExecuteBySession.d.ts.map +1 -0
- package/bin/server/http/control/ExecuteBySession.js +128 -0
- package/bin/server/http/control/ExecuteBySession.js.map +1 -0
- package/bin/server/http/control/ExecuteInput.d.ts +18 -0
- package/bin/server/http/control/ExecuteInput.d.ts.map +1 -0
- package/bin/server/http/control/ExecuteInput.js +201 -0
- package/bin/server/http/control/ExecuteInput.js.map +1 -0
- package/bin/server/http/control/Helpers.d.ts.map +1 -0
- package/bin/server/http/control/Helpers.js.map +1 -0
- package/bin/server/http/control/MessageTimeline.d.ts +22 -0
- package/bin/server/http/control/MessageTimeline.d.ts.map +1 -0
- package/bin/server/http/control/MessageTimeline.js +226 -0
- package/bin/server/http/control/MessageTimeline.js.map +1 -0
- package/bin/server/http/control/ModelRoutes.d.ts +13 -0
- package/bin/server/http/control/ModelRoutes.d.ts.map +1 -0
- package/bin/server/http/control/ModelRoutes.js +87 -0
- package/bin/server/http/control/ModelRoutes.js.map +1 -0
- package/bin/server/http/control/OverviewRoutes.d.ts +13 -0
- package/bin/server/http/control/OverviewRoutes.d.ts.map +1 -0
- package/bin/server/http/control/OverviewRoutes.js +93 -0
- package/bin/server/http/control/OverviewRoutes.js.map +1 -0
- package/bin/server/http/control/SessionRoutes.d.ts +14 -0
- package/bin/server/http/control/SessionRoutes.d.ts.map +1 -0
- package/bin/server/http/control/SessionRoutes.js +333 -0
- package/bin/server/http/control/SessionRoutes.js.map +1 -0
- package/bin/server/http/control/SessionSummaryStore.d.ts +19 -0
- package/bin/server/http/control/SessionSummaryStore.d.ts.map +1 -0
- package/bin/server/http/control/SessionSummaryStore.js +62 -0
- package/bin/server/http/control/SessionSummaryStore.js.map +1 -0
- package/bin/server/http/control/TaskRoutes.d.ts +13 -0
- package/bin/server/http/control/TaskRoutes.d.ts.map +1 -0
- package/bin/server/http/control/TaskRoutes.js +335 -0
- package/bin/server/http/control/TaskRoutes.js.map +1 -0
- package/bin/server/http/control/TaskStore.d.ts +33 -0
- package/bin/server/http/control/TaskStore.d.ts.map +1 -0
- package/bin/server/http/control/TaskStore.js +157 -0
- package/bin/server/http/control/TaskStore.js.map +1 -0
- package/bin/server/http/control/types/AuthControl.d.ts +30 -0
- package/bin/server/http/control/types/AuthControl.d.ts.map +1 -0
- package/bin/server/http/control/types/AuthControl.js.map +1 -0
- package/bin/server/http/control/types/ControlRoutes.d.ts +28 -0
- package/bin/server/http/control/types/ControlRoutes.d.ts.map +1 -0
- package/bin/server/http/control/types/ControlRoutes.js.map +1 -0
- package/bin/server/http/control/types/ControlSessionExecute.d.ts.map +1 -0
- package/bin/server/http/control/types/ControlSessionExecute.js.map +1 -0
- package/bin/server/http/control/types/ControlViewData.d.ts +320 -0
- package/bin/server/http/control/types/ControlViewData.d.ts.map +1 -0
- package/bin/server/http/control/types/ControlViewData.js.map +1 -0
- package/bin/server/http/execute/execute.d.ts.map +1 -0
- package/bin/server/http/execute/execute.js +90 -0
- package/bin/server/http/execute/execute.js.map +1 -0
- package/bin/server/http/health/health.d.ts.map +1 -0
- package/bin/server/http/health/health.js.map +1 -0
- package/bin/server/http/plugins/plugins.d.ts.map +1 -0
- package/bin/server/http/plugins/plugins.js +55 -0
- package/bin/server/http/plugins/plugins.js.map +1 -0
- package/bin/server/http/services/services.d.ts.map +1 -0
- package/bin/server/http/services/services.js +79 -0
- package/bin/server/http/services/services.js.map +1 -0
- package/bin/server/http/static/static.d.ts.map +1 -0
- package/bin/server/http/static/static.js +97 -0
- package/bin/server/http/static/static.js.map +1 -0
- package/bin/server/rpc/Server.d.ts +18 -0
- package/bin/server/rpc/Server.d.ts.map +1 -0
- package/bin/server/rpc/Server.js +307 -0
- package/bin/server/rpc/Server.js.map +1 -0
- package/bin/service/builtins/BaseService.d.ts +4 -4
- package/bin/service/builtins/BaseService.d.ts.map +1 -1
- package/bin/service/builtins/chat/Action.d.ts +1 -1
- package/bin/service/builtins/chat/Action.d.ts.map +1 -1
- package/bin/service/builtins/chat/ChatService.d.ts +6 -6
- package/bin/service/builtins/chat/ChatService.d.ts.map +1 -1
- package/bin/service/builtins/chat/ChatServiceTypes.d.ts +3 -3
- 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 +1 -1
- package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts +2 -2
- package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts +1 -1
- package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts +3 -3
- package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts +2 -2
- package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/feishu/Feishu.js +39 -171
- package/bin/service/builtins/chat/channels/feishu/Feishu.js.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/FeishuMessageHandler.d.ts +155 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.js +247 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.js.map +1 -0
- package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +2 -2
- 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 +127 -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 +9 -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 +6 -6
- package/bin/service/builtins/chat/channels/qq/QQ.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQ.js +34 -232
- 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 -26
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js +68 -227
- package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js.map +1 -1
- package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.d.ts +65 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.js +110 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.d.ts +59 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.js +58 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.d.ts +86 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.js +93 -0
- package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.js.map +1 -0
- 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/QQMessageHandler.d.ts +129 -0
- package/bin/service/builtins/chat/channels/qq/QQMessageHandler.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQMessageHandler.js +284 -0
- package/bin/service/builtins/chat/channels/qq/QQMessageHandler.js.map +1 -0
- package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts +3 -3
- 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 +42 -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/Bot.d.ts +1 -1
- package/bin/service/builtins/chat/channels/telegram/Bot.d.ts.map +1 -1
- package/bin/service/builtins/chat/channels/telegram/Bot.js +35 -293
- package/bin/service/builtins/chat/channels/telegram/Bot.js.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/channels/telegram/TelegramMessageHandler.d.ts +142 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.js +267 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts +55 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.js +125 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.js.map +1 -0
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts +1 -1
- package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts.map +1 -1
- 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 +3 -3
- package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts +4 -12
- package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatActionInput.js +3 -232
- package/bin/service/builtins/chat/runtime/ChatActionInput.js.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatActionInputSupport.d.ts +33 -0
- package/bin/service/builtins/chat/runtime/ChatActionInputSupport.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatActionInputSupport.js +66 -0
- package/bin/service/builtins/chat/runtime/ChatActionInputSupport.js.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts +3 -3
- package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts +4 -4
- 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/ChatChannelLifecycle.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts +2 -2
- 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 +2 -2
- package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts +3 -3
- package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatMetaStore.js +2 -2
- 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 +2 -2
- package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts +4 -4
- package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts +3 -3
- 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/ChatSendActionInput.d.ts +23 -0
- package/bin/service/builtins/chat/runtime/ChatSendActionInput.d.ts.map +1 -0
- package/bin/service/builtins/chat/runtime/ChatSendActionInput.js +205 -0
- package/bin/service/builtins/chat/runtime/ChatSendActionInput.js.map +1 -0
- 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 +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/ChatSessionDelete.d.ts +1 -1
- package/bin/service/builtins/chat/runtime/ChatSessionDelete.d.ts.map +1 -1
- 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/ChatkeySend.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/ChatkeySend.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/ChatkeySend.js +1 -1
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/InboundAugment.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts +2 -2
- 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/ReplyDispatch.d.ts +2 -2
- package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts.map +1 -1
- package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts +2 -2
- 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/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/ChatMeta.d.ts +1 -1
- package/bin/service/builtins/chat/types/ChatMeta.js +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/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/Action.d.ts +57 -4
- package/bin/service/builtins/contact/Action.d.ts.map +1 -1
- package/bin/service/builtins/contact/Action.js +272 -4
- package/bin/service/builtins/contact/Action.js.map +1 -1
- package/bin/service/builtins/contact/ContactService.d.ts +2 -2
- package/bin/service/builtins/contact/ContactService.d.ts.map +1 -1
- package/bin/service/builtins/contact/ContactService.js +19 -293
- package/bin/service/builtins/contact/ContactService.js.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/ChatRuntime.d.ts +1 -1
- package/bin/service/builtins/contact/runtime/ChatRuntime.d.ts.map +1 -1
- package/bin/service/builtins/contact/runtime/ContactPayload.d.ts +24 -0
- package/bin/service/builtins/contact/runtime/ContactPayload.d.ts.map +1 -0
- package/bin/service/builtins/contact/runtime/ContactPayload.js +32 -0
- package/bin/service/builtins/contact/runtime/ContactPayload.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/ShareBundle.d.ts +1 -1
- package/bin/service/builtins/contact/runtime/ShareBundle.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 -3
- package/bin/service/builtins/memory/Action.d.ts.map +1 -1
- package/bin/service/builtins/memory/MemoryService.d.ts +2 -2
- package/bin/service/builtins/memory/MemoryService.d.ts.map +1 -1
- package/bin/service/builtins/memory/runtime/Flush.d.ts +1 -1
- package/bin/service/builtins/memory/runtime/Flush.d.ts.map +1 -1
- package/bin/service/builtins/memory/runtime/Search.d.ts +1 -1
- package/bin/service/builtins/memory/runtime/Search.d.ts.map +1 -1
- package/bin/service/builtins/memory/runtime/Store.d.ts +1 -1
- package/bin/service/builtins/memory/runtime/Store.d.ts.map +1 -1
- package/bin/service/builtins/memory/runtime/SystemProvider.d.ts +1 -1
- package/bin/service/builtins/memory/runtime/SystemProvider.d.ts.map +1 -1
- package/bin/service/builtins/memory/runtime/Writer.d.ts +1 -1
- package/bin/service/builtins/memory/runtime/Writer.d.ts.map +1 -1
- package/bin/service/builtins/memory/types/Memory.d.ts +1 -1
- package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts +2 -2
- package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts.map +1 -1
- package/bin/service/builtins/shell/ShellRuntimeTypes.js +1 -1
- package/bin/service/builtins/shell/ShellService.d.ts +3 -3
- package/bin/service/builtins/shell/ShellService.d.ts.map +1 -1
- package/bin/service/builtins/shell/runtime/ShellActionResponse.d.ts +52 -0
- package/bin/service/builtins/shell/runtime/ShellActionResponse.d.ts.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionResponse.js +73 -0
- package/bin/service/builtins/shell/runtime/ShellActionResponse.js.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts +1 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts.map +1 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js +4 -27
- package/bin/service/builtins/shell/runtime/ShellActionRuntime.js.map +1 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts +4 -32
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts.map +1 -1
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js +3 -131
- package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +1 -1
- package/bin/service/builtins/shell/runtime/ShellProcessEvents.d.ts +22 -0
- package/bin/service/builtins/shell/runtime/ShellProcessEvents.d.ts.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellProcessEvents.js +41 -0
- package/bin/service/builtins/shell/runtime/ShellProcessEvents.js.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.d.ts +21 -0
- package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.d.ts.map +1 -0
- package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.js +75 -0
- package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.js.map +1 -0
- 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/Action.d.ts +1 -1
- package/bin/service/builtins/task/Action.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/bin/service/builtins/task/Scheduler.d.ts.map +1 -1
- 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 +4 -4
- package/bin/service/builtins/task/TaskService.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/CronRuntime.d.ts +1 -1
- package/bin/service/builtins/task/runtime/CronRuntime.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/Model.d.ts +1 -1
- package/bin/service/builtins/task/runtime/Paths.d.ts +1 -1
- package/bin/service/builtins/task/runtime/Paths.js +1 -1
- package/bin/service/builtins/task/runtime/Runner.d.ts +1 -1
- package/bin/service/builtins/task/runtime/Runner.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/Runner.js +17 -64
- package/bin/service/builtins/task/runtime/Runner.js.map +1 -1
- package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts +3 -3
- 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/TaskRunChatDispatch.d.ts +1 -1
- package/bin/service/builtins/task/runtime/TaskRunChatDispatch.d.ts.map +1 -1
- package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts +3 -3
- 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/TaskRunnerScript.d.ts +81 -0
- package/bin/service/builtins/task/runtime/TaskRunnerScript.d.ts.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerScript.js +96 -0
- package/bin/service/builtins/task/runtime/TaskRunnerScript.js.map +1 -0
- package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts +2 -2
- package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts.map +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 +4 -4
- package/bin/service/core/Manager.d.ts.map +1 -1
- package/bin/service/core/Manager.js +3 -3
- package/bin/service/core/ServiceActionApi.d.ts +1 -1
- package/bin/service/core/ServiceActionApi.d.ts.map +1 -1
- package/bin/service/core/ServiceActionRunner.d.ts +5 -5
- package/bin/service/core/ServiceActionRunner.d.ts.map +1 -1
- package/bin/service/core/ServiceClassRegistry.d.ts +2 -2
- package/bin/service/core/ServiceClassRegistry.d.ts.map +1 -1
- package/bin/service/core/ServiceManager.d.ts +3 -3
- package/bin/service/core/ServiceManager.d.ts.map +1 -1
- package/bin/service/core/ServiceManager.js +2 -2
- package/bin/service/core/ServiceStateController.d.ts +3 -3
- package/bin/service/core/ServiceStateController.d.ts.map +1 -1
- package/bin/service/core/ServiceStateController.js +1 -1
- package/bin/service/core/ServiceStateController.js.map +1 -1
- package/bin/service/core/ServiceSystemProviders.d.ts +1 -1
- package/bin/service/core/ServiceSystemProviders.d.ts.map +1 -1
- package/bin/service/core/Services.d.ts +1 -1
- package/bin/service/core/Services.d.ts.map +1 -1
- package/bin/service/schedule/Executor.d.ts +1 -1
- package/bin/service/schedule/Executor.d.ts.map +1 -1
- package/bin/service/schedule/Runtime.d.ts +1 -1
- package/bin/service/schedule/Runtime.d.ts.map +1 -1
- package/bin/service/schedule/Store.d.ts +1 -1
- package/bin/service/schedule/Store.d.ts.map +1 -1
- package/bin/service/schedule/Store.js +1 -1
- 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 +9 -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/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/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/DefaultSessionSystemComposer.d.ts +1 -1
- package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts.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 +1 -1
- package/bin/session/composer/system/default/SystemDomain.d.ts.map +1 -1
- package/bin/session/composer/system/default/SystemDomain.js +5 -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 +3 -11
- package/bin/session/executors/local/LocalSessionCore.d.ts.map +1 -1
- package/bin/session/executors/local/LocalSessionCore.js +8 -392
- package/bin/session/executors/local/LocalSessionCore.js.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/SessionExecutionError.d.ts +26 -0
- package/bin/session/executors/local/SessionExecutionError.d.ts.map +1 -0
- package/bin/session/executors/local/SessionExecutionError.js +34 -0
- package/bin/session/executors/local/SessionExecutionError.js.map +1 -0
- package/bin/session/executors/local/SessionLoopDecision.d.ts +1 -1
- package/bin/session/executors/local/SessionModelMessageState.d.ts +63 -0
- package/bin/session/executors/local/SessionModelMessageState.d.ts.map +1 -0
- package/bin/session/executors/local/SessionModelMessageState.js +90 -0
- package/bin/session/executors/local/SessionModelMessageState.js.map +1 -0
- package/bin/session/executors/local/SessionSignals.d.ts +2 -2
- package/bin/session/executors/local/SessionToolLoopRunner.d.ts +44 -0
- package/bin/session/executors/local/SessionToolLoopRunner.d.ts.map +1 -0
- package/bin/session/executors/local/SessionToolLoopRunner.js +261 -0
- package/bin/session/executors/local/SessionToolLoopRunner.js.map +1 -0
- package/bin/session/executors/local/SessionUiStreamCollector.d.ts +33 -0
- package/bin/session/executors/local/SessionUiStreamCollector.d.ts.map +1 -0
- package/bin/session/executors/local/SessionUiStreamCollector.js +64 -0
- package/bin/session/executors/local/SessionUiStreamCollector.js.map +1 -0
- 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 +2 -2
- 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/transport/rpc/Client.d.ts.map +1 -0
- package/bin/transport/rpc/Client.js.map +1 -0
- package/bin/transport/rpc/Paths.d.ts.map +1 -0
- package/bin/transport/rpc/Paths.js +55 -0
- package/bin/transport/rpc/Paths.js.map +1 -0
- package/bin/transport/rpc/Transport.d.ts.map +1 -0
- package/bin/transport/rpc/Transport.js.map +1 -0
- package/bin/types/auth/AuthPermission.d.ts.map +1 -0
- package/bin/types/auth/AuthPermission.js.map +1 -0
- package/bin/types/auth/AuthRoute.d.ts.map +1 -0
- package/bin/types/auth/AuthRoute.js.map +1 -0
- package/bin/types/auth/AuthToken.d.ts.map +1 -0
- package/bin/types/auth/AuthToken.js.map +1 -0
- package/bin/types/auth/AuthTypes.d.ts.map +1 -0
- package/bin/types/auth/AuthTypes.js.map +1 -0
- package/bin/types/common/Json.d.ts.map +1 -0
- package/bin/types/common/Json.js.map +1 -0
- package/bin/types/common/Template.d.ts.map +1 -0
- package/bin/types/common/Template.js.map +1 -0
- package/bin/types/config/DowncityConfig.d.ts +214 -0
- package/bin/types/config/DowncityConfig.d.ts.map +1 -0
- package/bin/types/config/DowncityConfig.js.map +1 -0
- package/bin/types/config/ExecutionBinding.d.ts.map +1 -0
- package/bin/types/config/ExecutionBinding.js.map +1 -0
- package/bin/types/config/LlmConfig.d.ts.map +1 -0
- package/bin/types/config/LlmConfig.js.map +1 -0
- package/bin/types/config/ModelBinding.d.ts.map +1 -0
- package/bin/types/config/ModelBinding.js.map +1 -0
- package/bin/types/config/Start.d.ts.map +1 -0
- package/bin/types/config/Start.js.map +1 -0
- package/bin/types/daemon/Daemon.d.ts +46 -0
- package/bin/types/daemon/Daemon.d.ts.map +1 -0
- package/bin/types/daemon/Daemon.js +14 -0
- package/bin/types/daemon/Daemon.js.map +1 -0
- package/bin/types/host/AgentHost.d.ts +188 -0
- package/bin/types/host/AgentHost.d.ts.map +1 -0
- package/bin/types/host/AgentHost.js +10 -0
- package/bin/types/host/AgentHost.js.map +1 -0
- package/bin/types/host/Store.d.ts +408 -0
- package/bin/types/host/Store.d.ts.map +1 -0
- package/bin/types/host/Store.js.map +1 -0
- package/bin/types/http/InlineInstant.d.ts.map +1 -0
- package/bin/types/http/InlineInstant.js.map +1 -0
- package/bin/types/platform/Platform.d.ts.map +1 -0
- package/bin/types/platform/Platform.js.map +1 -0
- package/bin/types/platform/PlatformGateway.d.ts.map +1 -0
- package/bin/types/platform/PlatformGateway.js.map +1 -0
- package/bin/types/rpc/LocalRpc.d.ts +69 -0
- package/bin/types/rpc/LocalRpc.d.ts.map +1 -0
- package/bin/types/rpc/LocalRpc.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 +309 -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/package.json +4 -4
- package/scripts/agent-compiler.mjs +253 -0
- package/src/config/Config.ts +6 -7
- package/src/config/DowncityDefault.ts +38 -0
- package/src/config/DowncitySchema.ts +377 -0
- package/src/config/Paths.ts +2 -2
- package/src/host/daemon/Api.ts +2 -2
- package/src/host/daemon/Client.ts +3 -3
- package/src/host/daemon/Paths.ts +33 -0
- package/src/host/daemon/ProjectSetup.ts +2 -2
- package/src/host/runtime/AgentHostRuntime.ts +5 -5
- package/src/host/runtime/PluginRuntime.ts +1 -1
- package/src/index.ts +283 -166
- package/src/model/CreateModel.ts +6 -6
- package/src/model/ModelManager.ts +1 -1
- package/src/plugin/builtins/asr/Config.ts +138 -0
- package/src/plugin/builtins/asr/Dependency.ts +336 -0
- package/src/plugin/builtins/asr/InboundAugment.ts +59 -0
- package/src/plugin/builtins/asr/ModelCatalog.ts +43 -0
- package/src/plugin/builtins/asr/Plugin.ts +488 -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 +496 -0
- package/src/plugin/builtins/tts/PluginSupport.ts +85 -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/Config.ts +135 -0
- package/src/plugin/builtins/voice/Dependency.ts +329 -0
- package/src/plugin/builtins/voice/InboundAugment.ts +59 -0
- package/src/plugin/builtins/voice/ModelCatalog.ts +43 -0
- package/src/plugin/builtins/voice/Plugin.ts +450 -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/project/AgentInitializer.ts +427 -0
- package/src/project/ProjectExecutionBinding.ts +53 -0
- package/src/project/types/AgentProject.ts +92 -0
- package/src/runtime/AgentContext.ts +182 -0
- package/src/runtime/AgentContextTypes.ts +385 -0
- package/src/runtime/AgentRuntime.ts +376 -0
- package/src/runtime/AgentRuntimeState.ts +213 -0
- package/src/runtime/AgentRuntimeTypes.ts +91 -0
- package/src/sandbox/MacOsSeatbeltSandbox.ts +1 -1
- package/src/sandbox/SandboxConfigResolver.ts +2 -2
- package/src/sandbox/SandboxRunner.ts +2 -2
- package/src/sandbox/types/Sandbox.ts +144 -0
- package/src/sandbox/types/SandboxRuntime.ts +377 -0
- package/src/sdk/Agent.ts +419 -0
- package/src/sdk/AgentSdkTypes.ts +296 -0
- package/src/sdk/HttpServer.ts +231 -0
- package/src/sdk/RemoteAgent.ts +223 -0
- package/src/sdk/RpcServer.ts +244 -0
- package/src/sdk/SdkSessionSystemComposer.ts +173 -0
- package/src/sdk/Session.ts +478 -0
- package/src/sdk/SessionMetadata.ts +178 -0
- package/src/sdk/SessionPersistence.ts +113 -0
- package/src/sdk/SessionServicePort.ts +62 -0
- package/src/sdk/StreamEvents.ts +138 -0
- package/src/server/http/Server.ts +157 -0
- package/src/server/http/control/AuthControlService.ts +161 -0
- package/src/server/http/control/ControlApiRoutes.ts +31 -0
- package/src/server/http/control/ControlAuthorizationRoutes.ts +108 -0
- package/src/server/http/control/ControlRouter.ts +31 -0
- package/src/server/http/control/ExecuteBySession.ts +151 -0
- package/src/server/http/control/ExecuteInput.ts +236 -0
- package/src/server/http/control/MessageTimeline.ts +269 -0
- package/src/server/http/control/ModelRoutes.ts +101 -0
- package/src/server/http/control/OverviewRoutes.ts +106 -0
- package/src/server/http/control/SessionRoutes.ts +414 -0
- package/src/server/http/control/SessionSummaryStore.ts +76 -0
- package/src/server/http/control/TaskRoutes.ts +391 -0
- package/src/server/http/control/TaskStore.ts +222 -0
- package/src/server/http/control/types/AuthControl.ts +38 -0
- package/src/server/http/control/types/ControlRoutes.ts +31 -0
- package/src/server/http/control/types/ControlViewData.ts +392 -0
- package/src/server/http/execute/execute.ts +120 -0
- package/src/server/http/plugins/plugins.ts +67 -0
- package/src/server/http/services/services.ts +94 -0
- package/src/server/http/static/static.ts +104 -0
- package/src/server/rpc/Server.ts +395 -0
- package/src/service/builtins/BaseService.ts +4 -4
- package/src/service/builtins/README.md +32 -11
- package/src/service/builtins/chat/Action.ts +1 -1
- package/src/service/builtins/chat/ChatService.ts +6 -6
- package/src/service/builtins/chat/ChatServiceTypes.ts +3 -3
- package/src/service/builtins/chat/PROMPT.direct.ts +9 -0
- package/src/service/builtins/chat/accounts/ChannelAccountService.ts +2 -2
- package/src/service/builtins/chat/channels/BaseChatChannel.ts +2 -2
- package/src/service/builtins/chat/channels/BaseChatChannelQueue.ts +2 -2
- package/src/service/builtins/chat/channels/BaseChatChannelSupport.ts +3 -3
- package/src/service/builtins/chat/channels/feishu/Feishu.ts +66 -233
- package/src/service/builtins/chat/channels/feishu/FeishuInbound.ts +1 -1
- package/src/service/builtins/chat/channels/feishu/FeishuMessageHandler.ts +483 -0
- package/src/service/builtins/chat/channels/feishu/FeishuPlatformClient.ts +2 -2
- 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/feishu/types/FeishuChannel.ts +131 -0
- package/src/service/builtins/chat/channels/qq/PROMPT.direct.ts +9 -0
- package/src/service/builtins/chat/channels/qq/QQ.ts +58 -293
- 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 +78 -252
- package/src/service/builtins/chat/channels/qq/QQGatewayConnection.ts +175 -0
- package/src/service/builtins/chat/channels/qq/QQGatewayHeartbeat.ts +114 -0
- package/src/service/builtins/chat/channels/qq/QQGatewayProtocol.ts +176 -0
- 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/QQMessageHandler.ts +465 -0
- package/src/service/builtins/chat/channels/qq/QQSendSupport.ts +1 -1
- package/src/service/builtins/chat/channels/qq/QQSupport.ts +3 -3
- 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 +57 -352
- 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/channels/telegram/TelegramMessageHandler.ts +485 -0
- package/src/service/builtins/chat/channels/telegram/TelegramPendingUpdates.ts +204 -0
- package/src/service/builtins/chat/channels/telegram/TelegramPlatformClient.ts +1 -1
- package/src/service/builtins/chat/runtime/ChannelContextStore.ts +2 -2
- package/src/service/builtins/chat/runtime/ChatActionExecution.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatActionInput.ts +16 -283
- package/src/service/builtins/chat/runtime/ChatActionInputSupport.ts +85 -0
- package/src/service/builtins/chat/runtime/ChatChannelActions.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatChannelConfig.ts +4 -4
- package/src/service/builtins/chat/runtime/ChatChannelCore.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatChannelLifecycle.ts +2 -2
- package/src/service/builtins/chat/runtime/ChatHistoryStore.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatIngressStore.ts +2 -2
- package/src/service/builtins/chat/runtime/ChatMetaStore.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatPromptAssets.ts +32 -0
- package/src/service/builtins/chat/runtime/ChatQueueReplyDispatch.ts +2 -2
- package/src/service/builtins/chat/runtime/ChatQueueSessionBridge.ts +4 -4
- package/src/service/builtins/chat/runtime/ChatQueueStore.ts +1 -1
- package/src/service/builtins/chat/runtime/ChatQueueWorker.ts +6 -6
- package/src/service/builtins/chat/runtime/ChatQueueWorkerSupport.ts +1 -1
- package/src/service/builtins/chat/runtime/ChatSendActionInput.ts +255 -0
- package/src/service/builtins/chat/runtime/ChatServiceActions.ts +4 -4
- package/src/service/builtins/chat/runtime/ChatServiceSystem.ts +10 -59
- package/src/service/builtins/chat/runtime/ChatSession.ts +3 -3
- package/src/service/builtins/chat/runtime/ChatSessionDelete.ts +1 -1
- 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/ChatkeySend.ts +2 -2
- package/src/service/builtins/chat/runtime/EnqueueDispatch.ts +3 -3
- package/src/service/builtins/chat/runtime/InboundAugment.ts +3 -3
- package/src/service/builtins/chat/runtime/PluginDispatch.ts +3 -3
- 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 +3 -3
- package/src/service/builtins/chat/runtime/SystemPrompt.ts +2 -2
- 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/ChatMeta.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/Action.ts +368 -4
- package/src/service/builtins/contact/ContactService.ts +31 -325
- package/src/service/builtins/contact/PROMPT.ts +9 -0
- package/src/service/builtins/contact/runtime/ChatRuntime.ts +2 -2
- package/src/service/builtins/contact/runtime/ContactPayload.ts +38 -0
- 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/ShareBundle.ts +1 -1
- package/src/service/builtins/contact/runtime/SystemProvider.ts +3 -10
- package/src/service/builtins/memory/Action.ts +3 -3
- package/src/service/builtins/memory/MemoryService.ts +3 -3
- package/src/service/builtins/memory/runtime/Flush.ts +1 -1
- package/src/service/builtins/memory/runtime/Search.ts +1 -1
- package/src/service/builtins/memory/runtime/Store.ts +1 -1
- package/src/service/builtins/memory/runtime/SystemProvider.ts +1 -1
- package/src/service/builtins/memory/runtime/Writer.ts +1 -1
- package/src/service/builtins/memory/types/Memory.ts +1 -1
- package/src/service/builtins/shell/ShellRuntimeTypes.ts +2 -2
- package/src/service/builtins/shell/ShellService.ts +3 -3
- package/src/service/builtins/shell/runtime/ShellActionResponse.ts +135 -0
- package/src/service/builtins/shell/runtime/ShellActionRuntime.ts +4 -39
- package/src/service/builtins/shell/runtime/ShellActionRuntimeSupport.ts +11 -165
- package/src/service/builtins/shell/runtime/ShellProcessEvents.ts +65 -0
- package/src/service/builtins/shell/runtime/ShellRuntimeEnvironment.ts +75 -0
- package/src/service/builtins/task/Action.ts +2 -2
- package/src/service/builtins/task/PROMPT.ts +9 -0
- package/src/service/builtins/task/Scheduler.ts +2 -2
- package/src/service/builtins/task/TaskService.ts +4 -4
- package/src/service/builtins/task/runtime/CronRuntime.ts +1 -1
- package/src/service/builtins/task/runtime/Model.ts +1 -1
- package/src/service/builtins/task/runtime/Paths.ts +1 -1
- package/src/service/builtins/task/runtime/Runner.ts +17 -63
- package/src/service/builtins/task/runtime/TaskActionExecution.ts +3 -3
- 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/TaskRunChatDispatch.ts +1 -1
- package/src/service/builtins/task/runtime/TaskRunnerRound.ts +4 -4
- package/src/service/builtins/task/runtime/TaskRunnerScript.ts +175 -0
- package/src/service/builtins/task/runtime/TaskRunnerSession.ts +3 -3
- 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 +4 -4
- package/src/service/core/ServiceActionApi.ts +4 -4
- package/src/service/core/ServiceActionRunner.ts +5 -5
- package/src/service/core/ServiceClassRegistry.ts +2 -2
- package/src/service/core/ServiceManager.ts +3 -3
- package/src/service/core/ServiceStateController.ts +4 -4
- package/src/service/core/ServiceSystemProviders.ts +1 -1
- package/src/service/core/Services.ts +1 -1
- package/src/service/schedule/Executor.ts +1 -1
- package/src/service/schedule/Runtime.ts +1 -1
- package/src/service/schedule/Store.ts +3 -3
- 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/DefaultSessionSystemComposer.ts +1 -1
- 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 -44
- 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 +12 -500
- package/src/session/executors/local/LocalSessionExecutor.ts +2 -2
- package/src/session/executors/local/SessionExecutionError.ts +47 -0
- package/src/session/executors/local/SessionLoopDecision.ts +1 -1
- package/src/session/executors/local/SessionModelMessageState.ts +133 -0
- package/src/session/executors/local/SessionSignals.ts +2 -2
- package/src/session/executors/local/SessionToolLoopRunner.ts +350 -0
- package/src/session/executors/local/SessionUiStreamCollector.ts +96 -0
- 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 +3 -3
- 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/transport/rpc/Client.ts +113 -0
- package/src/transport/rpc/Paths.ts +63 -0
- package/src/types/config/DowncityConfig.ts +215 -0
- package/src/types/daemon/Daemon.ts +53 -0
- package/src/types/host/AgentHost.ts +208 -0
- package/src/types/host/Store.ts +422 -0
- package/src/types/rpc/LocalRpc.ts +72 -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/agent/AgentContext.d.ts +0 -23
- package/bin/agent/AgentContext.d.ts.map +0 -1
- package/bin/agent/AgentContext.js +0 -149
- package/bin/agent/AgentContext.js.map +0 -1
- package/bin/agent/AgentContextTypes.d.ts +0 -349
- package/bin/agent/AgentContextTypes.d.ts.map +0 -1
- package/bin/agent/AgentContextTypes.js.map +0 -1
- package/bin/agent/AgentRuntime.d.ts +0 -37
- package/bin/agent/AgentRuntime.d.ts.map +0 -1
- package/bin/agent/AgentRuntime.js +0 -296
- package/bin/agent/AgentRuntime.js.map +0 -1
- package/bin/agent/AgentRuntimeState.d.ts +0 -42
- package/bin/agent/AgentRuntimeState.d.ts.map +0 -1
- package/bin/agent/AgentRuntimeState.js.map +0 -1
- package/bin/agent/AgentRuntimeTypes.d.ts +0 -85
- package/bin/agent/AgentRuntimeTypes.d.ts.map +0 -1
- package/bin/agent/AgentRuntimeTypes.js.map +0 -1
- package/bin/agent/project/AgentInitializer.d.ts +0 -39
- package/bin/agent/project/AgentInitializer.d.ts.map +0 -1
- package/bin/agent/project/AgentInitializer.js +0 -298
- package/bin/agent/project/AgentInitializer.js.map +0 -1
- package/bin/agent/project/ProjectExecutionBinding.d.ts +0 -27
- package/bin/agent/project/ProjectExecutionBinding.d.ts.map +0 -1
- package/bin/agent/project/ProjectExecutionBinding.js.map +0 -1
- package/bin/host/daemon/Manager.d.ts +0 -92
- package/bin/host/daemon/Manager.d.ts.map +0 -1
- package/bin/host/daemon/Manager.js +0 -287
- package/bin/host/daemon/Manager.js.map +0 -1
- package/bin/host/rpc/Client.d.ts.map +0 -1
- package/bin/host/rpc/Client.js.map +0 -1
- package/bin/host/rpc/Paths.d.ts.map +0 -1
- package/bin/host/rpc/Paths.js +0 -36
- package/bin/host/rpc/Paths.js.map +0 -1
- package/bin/host/rpc/Server.d.ts +0 -18
- package/bin/host/rpc/Server.d.ts.map +0 -1
- package/bin/host/rpc/Server.js +0 -307
- package/bin/host/rpc/Server.js.map +0 -1
- package/bin/host/rpc/Transport.d.ts.map +0 -1
- package/bin/host/rpc/Transport.js.map +0 -1
- package/bin/host/runtime/CityPaths.d.ts +0 -50
- package/bin/host/runtime/CityPaths.d.ts.map +0 -1
- package/bin/host/runtime/CityPaths.js +0 -75
- package/bin/host/runtime/CityPaths.js.map +0 -1
- package/bin/host/runtime/CityRegistry.d.ts +0 -51
- package/bin/host/runtime/CityRegistry.d.ts.map +0 -1
- package/bin/host/runtime/CityRegistry.js +0 -217
- package/bin/host/runtime/CityRegistry.js.map +0 -1
- package/bin/host/runtime/CityRuntime.d.ts +0 -21
- package/bin/host/runtime/CityRuntime.d.ts.map +0 -1
- package/bin/host/runtime/CityRuntime.js +0 -45
- package/bin/host/runtime/CityRuntime.js.map +0 -1
- package/bin/host/runtime/ProcessSweep.d.ts +0 -76
- package/bin/host/runtime/ProcessSweep.d.ts.map +0 -1
- package/bin/host/runtime/ProcessSweep.js +0 -188
- package/bin/host/runtime/ProcessSweep.js.map +0 -1
- package/bin/host/sdk/Agent.d.ts +0 -64
- package/bin/host/sdk/Agent.d.ts.map +0 -1
- package/bin/host/sdk/Agent.js +0 -377
- package/bin/host/sdk/Agent.js.map +0 -1
- package/bin/host/sdk/AgentSdkTypes.d.ts +0 -266
- package/bin/host/sdk/AgentSdkTypes.d.ts.map +0 -1
- package/bin/host/sdk/AgentSdkTypes.js.map +0 -1
- package/bin/host/sdk/AsyncQueue.d.ts.map +0 -1
- package/bin/host/sdk/AsyncQueue.js.map +0 -1
- package/bin/host/sdk/HttpServer.d.ts +0 -40
- package/bin/host/sdk/HttpServer.d.ts.map +0 -1
- package/bin/host/sdk/HttpServer.js +0 -181
- package/bin/host/sdk/HttpServer.js.map +0 -1
- package/bin/host/sdk/Paths.d.ts.map +0 -1
- package/bin/host/sdk/Paths.js.map +0 -1
- package/bin/host/sdk/RemoteAgent.d.ts +0 -54
- package/bin/host/sdk/RemoteAgent.d.ts.map +0 -1
- package/bin/host/sdk/RemoteAgent.js +0 -153
- package/bin/host/sdk/RemoteAgent.js.map +0 -1
- package/bin/host/sdk/RpcServer.d.ts +0 -31
- package/bin/host/sdk/RpcServer.d.ts.map +0 -1
- package/bin/host/sdk/RpcServer.js +0 -193
- package/bin/host/sdk/RpcServer.js.map +0 -1
- package/bin/host/sdk/SdkSessionSystemComposer.d.ts +0 -43
- package/bin/host/sdk/SdkSessionSystemComposer.d.ts.map +0 -1
- package/bin/host/sdk/SdkSessionSystemComposer.js +0 -71
- package/bin/host/sdk/SdkSessionSystemComposer.js.map +0 -1
- package/bin/host/sdk/Session.d.ts +0 -140
- package/bin/host/sdk/Session.d.ts.map +0 -1
- package/bin/host/sdk/Session.js +0 -459
- package/bin/host/sdk/Session.js.map +0 -1
- package/bin/host/sdk/SessionMetadata.d.ts +0 -51
- package/bin/host/sdk/SessionMetadata.d.ts.map +0 -1
- package/bin/host/sdk/SessionMetadata.js +0 -124
- package/bin/host/sdk/SessionMetadata.js.map +0 -1
- package/bin/host/sdk/StreamEvents.d.ts +0 -14
- package/bin/host/sdk/StreamEvents.d.ts.map +0 -1
- package/bin/host/sdk/StreamEvents.js +0 -89
- package/bin/host/sdk/StreamEvents.js.map +0 -1
- package/bin/http/Server.d.ts.map +0 -1
- package/bin/http/Server.js +0 -112
- package/bin/http/Server.js.map +0 -1
- package/bin/http/auth/AuthEnv.d.ts.map +0 -1
- 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/CliAuthStateStore.d.ts.map +0 -1
- 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/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 -87
- 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 -19
- package/bin/plugin/Activation.d.ts.map +0 -1
- 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/LocalExecution.d.ts +0 -32
- package/bin/plugin/LocalExecution.d.ts.map +0 -1
- package/bin/plugin/LocalExecution.js +0 -148
- 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 -585
- 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 -181
- 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 -187
- package/bin/plugins/auth/runtime/AuthorizationConfig.js.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts +0 -30
- package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts.map +0 -1
- package/bin/plugins/auth/runtime/AuthorizationPolicy.js +0 -123
- 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.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 -523
- 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 -481
- 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/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 -188
- package/bin/shared/types/AgentHost.d.ts.map +0 -1
- package/bin/shared/types/AgentHost.js +0 -10
- package/bin/shared/types/AgentHost.js.map +0 -1
- package/bin/shared/types/AgentProject.d.ts +0 -80
- package/bin/shared/types/AgentProject.d.ts.map +0 -1
- package/bin/shared/types/AgentProject.js.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 +0 -46
- package/bin/shared/types/Daemon.d.ts.map +0 -1
- package/bin/shared/types/Daemon.js +0 -14
- package/bin/shared/types/Daemon.js.map +0 -1
- package/bin/shared/types/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 +0 -127
- package/bin/shared/types/FeishuChannel.d.ts.map +0 -1
- package/bin/shared/types/FeishuChannel.js +0 -9
- package/bin/shared/types/FeishuChannel.js.map +0 -1
- package/bin/shared/types/InlineInstant.d.ts.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 -697
- 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 +0 -42
- 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 +0 -9
- package/bin/shared/types/ServiceState.js.map +0 -1
- package/bin/shared/types/Services.d.ts +0 -94
- package/bin/shared/types/Services.d.ts.map +0 -1
- package/bin/shared/types/Services.js.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 +0 -309
- package/bin/shared/utils/logger/FormatRequest.js.map +0 -1
- package/bin/shared/utils/logger/FormatResponse.d.ts +0 -46
- package/bin/shared/utils/logger/FormatResponse.d.ts.map +0 -1
- package/bin/shared/utils/logger/FormatResponse.js.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/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/agent/AgentContext.ts +0 -182
- package/src/agent/AgentContextTypes.ts +0 -385
- package/src/agent/AgentRuntime.ts +0 -376
- package/src/agent/AgentRuntimeState.ts +0 -213
- package/src/agent/AgentRuntimeTypes.ts +0 -91
- package/src/agent/project/AgentInitializer.ts +0 -380
- package/src/agent/project/ProjectExecutionBinding.ts +0 -53
- package/src/host/daemon/Manager.ts +0 -344
- package/src/host/rpc/Client.ts +0 -113
- package/src/host/rpc/Paths.ts +0 -43
- package/src/host/rpc/Server.ts +0 -395
- package/src/host/runtime/CityPaths.ts +0 -84
- package/src/host/runtime/CityRegistry.ts +0 -256
- package/src/host/runtime/CityRuntime.ts +0 -45
- package/src/host/runtime/ProcessSweep.ts +0 -239
- package/src/host/sdk/Agent.ts +0 -419
- package/src/host/sdk/AgentSdkTypes.ts +0 -296
- package/src/host/sdk/HttpServer.ts +0 -222
- package/src/host/sdk/RemoteAgent.ts +0 -205
- package/src/host/sdk/RpcServer.ts +0 -226
- package/src/host/sdk/SdkSessionSystemComposer.ts +0 -113
- package/src/host/sdk/Session.ts +0 -582
- package/src/host/sdk/SessionMetadata.ts +0 -178
- package/src/host/sdk/StreamEvents.ts +0 -95
- package/src/http/Server.ts +0 -157
- 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 -101
- 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/http/execute/execute.ts +0 -120
- package/src/http/plugins/plugins.ts +0 -67
- package/src/http/services/services.ts +0 -94
- package/src/http/static/static.ts +0 -104
- package/src/plugin/Activation.ts +0 -26
- package/src/plugin/Catalog.ts +0 -118
- package/src/plugin/HookRegistry.ts +0 -249
- package/src/plugin/HttpRoutes.ts +0 -50
- package/src/plugin/LocalExecution.ts +0 -179
- 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 -639
- package/src/plugins/auth/Plugin.ts +0 -209
- package/src/plugins/auth/runtime/AuthorizationConfig.ts +0 -265
- package/src/plugins/auth/runtime/AuthorizationPolicy.ts +0 -168
- package/src/plugins/auth/runtime/AuthorizationStore.ts +0 -219
- 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 -553
- 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 -515
- 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/task/PROMPT.txt +0 -237
- 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 -208
- 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/ControlRoutes.ts +0 -31
- package/src/shared/types/ControlViewData.ts +0 -392
- package/src/shared/types/Daemon.ts +0 -53
- package/src/shared/types/DowncityConfig.ts +0 -215
- package/src/shared/types/FeishuChannel.ts +0 -131
- package/src/shared/types/LocalRpc.ts +0 -72
- package/src/shared/types/Plugin.ts +0 -748
- 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/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/constants → config}/DowncityDefault.js +0 -0
- /package/bin/{shared/constants → config}/DowncitySchema.js +0 -0
- /package/bin/{plugins → plugin/builtins}/asr/ModelCatalog.d.ts +0 -0
- /package/bin/{plugins → plugin/builtins}/auth/runtime/AuthorizationStore.js +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/{Activation.js → core/Activation.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/{agent/project → project}/ProjectExecutionBinding.js +0 -0
- /package/bin/{shared → project}/types/AgentProject.js +0 -0
- /package/bin/{agent → runtime}/AgentContextTypes.js +0 -0
- /package/bin/{agent → runtime}/AgentRuntimeState.js +0 -0
- /package/bin/{agent → runtime}/AgentRuntimeTypes.js +0 -0
- /package/bin/{types/sandbox → sandbox/types}/SandboxRuntime.js +0 -0
- /package/bin/{host/sdk → sdk}/AgentSdkTypes.js +0 -0
- /package/bin/{host/sdk → sdk}/AsyncQueue.d.ts +0 -0
- /package/bin/{host/sdk → sdk}/AsyncQueue.js +0 -0
- /package/bin/{host/sdk → sdk}/Paths.d.ts +0 -0
- /package/bin/{host/sdk → sdk}/Paths.js +0 -0
- /package/bin/{http → server/http}/Server.d.ts +0 -0
- /package/bin/{http → server/http}/auth/AuthEnv.d.ts +0 -0
- /package/bin/{http → server/http}/auth/AuthEnv.js +0 -0
- /package/bin/{http → server/http}/auth/AuthError.d.ts +0 -0
- /package/bin/{http → server/http}/auth/AuthError.js +0 -0
- /package/bin/{http → server/http}/auth/CliAuthStateStore.d.ts +0 -0
- /package/bin/{http → server/http}/auth/CliAuthStateStore.js +0 -0
- /package/bin/{http → server/http}/auth/PasswordHasher.d.ts +0 -0
- /package/bin/{http → server/http}/auth/PasswordHasher.js +0 -0
- /package/bin/{http → server/http}/auth/TokenService.d.ts +0 -0
- /package/bin/{http → server/http}/auth/TokenService.js +0 -0
- /package/bin/{http → server/http}/control/CommonHelpers.d.ts +0 -0
- /package/bin/{http → server/http}/control/CommonHelpers.js +0 -0
- /package/bin/{http → server/http}/control/Helpers.d.ts +0 -0
- /package/bin/{http → server/http}/control/Helpers.js +0 -0
- /package/bin/{shared → server/http/control}/types/AuthControl.js +0 -0
- /package/bin/{shared → server/http/control}/types/ControlRoutes.js +0 -0
- /package/bin/{shared → server/http/control}/types/ControlSessionExecute.d.ts +0 -0
- /package/bin/{shared → server/http/control}/types/ControlSessionExecute.js +0 -0
- /package/bin/{shared → server/http/control}/types/ControlViewData.js +0 -0
- /package/bin/{http → server/http}/execute/execute.d.ts +0 -0
- /package/bin/{http → server/http}/health/health.d.ts +0 -0
- /package/bin/{http → server/http}/health/health.js +0 -0
- /package/bin/{http → server/http}/plugins/plugins.d.ts +0 -0
- /package/bin/{http → server/http}/services/services.d.ts +0 -0
- /package/bin/{http → server/http}/static/static.d.ts +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/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/{host → transport}/rpc/Client.d.ts +0 -0
- /package/bin/{host → transport}/rpc/Client.js +0 -0
- /package/bin/{host → transport}/rpc/Paths.d.ts +0 -0
- /package/bin/{host → transport}/rpc/Transport.d.ts +0 -0
- /package/bin/{host → transport}/rpc/Transport.js +0 -0
- /package/bin/{shared/types → types}/auth/AuthPermission.d.ts +0 -0
- /package/bin/{shared/types → types}/auth/AuthPermission.js +0 -0
- /package/bin/{shared/types → types}/auth/AuthRoute.d.ts +0 -0
- /package/bin/{shared/types → types}/auth/AuthRoute.js +0 -0
- /package/bin/{shared/types → types}/auth/AuthToken.d.ts +0 -0
- /package/bin/{shared/types → types}/auth/AuthToken.js +0 -0
- /package/bin/{shared/types → types}/auth/AuthTypes.d.ts +0 -0
- /package/bin/{shared/types → types}/auth/AuthTypes.js +0 -0
- /package/bin/{shared/types → types/common}/Json.d.ts +0 -0
- /package/bin/{shared/types → types/common}/Json.js +0 -0
- /package/bin/{shared/types → types/common}/Template.d.ts +0 -0
- /package/bin/{shared/types → types/common}/Template.js +0 -0
- /package/bin/{shared/types → types/config}/DowncityConfig.js +0 -0
- /package/bin/{shared/types → types/config}/ExecutionBinding.d.ts +0 -0
- /package/bin/{shared/types → types/config}/ExecutionBinding.js +0 -0
- /package/bin/{shared/types → types/config}/LlmConfig.d.ts +0 -0
- /package/bin/{shared/types → types/config}/LlmConfig.js +0 -0
- /package/bin/{shared/types → types/config}/ModelBinding.d.ts +0 -0
- /package/bin/{shared/types → types/config}/ModelBinding.js +0 -0
- /package/bin/{shared/types → types/config}/Start.d.ts +0 -0
- /package/bin/{shared/types → types/config}/Start.js +0 -0
- /package/bin/{shared/types → types/host}/Store.js +0 -0
- /package/bin/{shared/types → types/http}/InlineInstant.d.ts +0 -0
- /package/bin/{shared/types → types/http}/InlineInstant.js +0 -0
- /package/bin/{shared/types → types/platform}/Platform.d.ts +0 -0
- /package/bin/{shared/types → types/platform}/Platform.js +0 -0
- /package/bin/{shared/types → types/platform}/PlatformGateway.d.ts +0 -0
- /package/bin/{shared/types → types/platform}/PlatformGateway.js +0 -0
- /package/bin/{shared/types → types/rpc}/LocalRpc.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/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/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/src/{host/sdk → sdk}/AsyncQueue.ts +0 -0
- /package/src/{host/sdk → sdk}/Paths.ts +0 -0
- /package/src/{http → server/http}/auth/AuthEnv.ts +0 -0
- /package/src/{http → server/http}/auth/AuthError.ts +0 -0
- /package/src/{http → server/http}/auth/CliAuthStateStore.ts +0 -0
- /package/src/{http → server/http}/auth/PasswordHasher.ts +0 -0
- /package/src/{http → server/http}/auth/TokenService.ts +0 -0
- /package/src/{http → server/http}/control/CommonHelpers.ts +0 -0
- /package/src/{http → server/http}/control/Helpers.ts +0 -0
- /package/src/{shared → server/http/control}/types/ControlSessionExecute.ts +0 -0
- /package/src/{http → server/http}/health/health.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/{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/{host → transport}/rpc/Transport.ts +0 -0
- /package/src/{shared/types → types}/auth/AuthPermission.ts +0 -0
- /package/src/{shared/types → types}/auth/AuthRoute.ts +0 -0
- /package/src/{shared/types → types}/auth/AuthToken.ts +0 -0
- /package/src/{shared/types → types}/auth/AuthTypes.ts +0 -0
- /package/src/{shared/types → types/common}/Json.ts +0 -0
- /package/src/{shared/types → types/common}/Template.ts +0 -0
- /package/src/{shared/types → types/config}/ExecutionBinding.ts +0 -0
- /package/src/{shared/types → types/config}/LlmConfig.ts +0 -0
- /package/src/{shared/types → types/config}/ModelBinding.ts +0 -0
- /package/src/{shared/types → types/config}/Start.ts +0 -0
- /package/src/{shared/types → types/http}/InlineInstant.ts +0 -0
- /package/src/{shared/types → types/platform}/Platform.ts +0 -0
- /package/src/{shared/types → types/platform}/PlatformGateway.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/README.md
CHANGED
|
@@ -2,24 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
`@downcity/agent` 是 Downcity 的单 Agent 运行时包。
|
|
4
4
|
|
|
5
|
-
它负责把一个 agent 项目目录装配成可执行运行时,包括 session、service、plugin、HTTP
|
|
6
|
-
`@downcity/city` 负责多 Agent 管理、控制面网关、console/daemon;真正的单 Agent 执行内核在这个包里。
|
|
5
|
+
它负责把一个 agent 项目目录装配成可执行运行时,包括 session、service、plugin、HTTP/RPC、sandbox、SDK 与项目级宿主能力。`@downcity/city` 负责多 Agent 管理、控制面网关、console daemon 与平台级存储;单 Agent 执行内核放在这个包里。
|
|
7
6
|
|
|
8
7
|
## 包定位
|
|
9
8
|
|
|
10
|
-
- 面向单个 Agent
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
9
|
+
- 面向单个 Agent 项目的执行面。
|
|
10
|
+
- 对外通过 `@downcity/agent` 根入口暴露公共 API。
|
|
11
|
+
- 负责 session、service、plugin、sandbox、HTTP/RPC server、SDK 本地 Agent。
|
|
12
|
+
- 不负责多 Agent registry、control plane daemon、console UI 聚合和平台级编排。
|
|
14
13
|
|
|
15
14
|
## 与其他包的边界
|
|
16
15
|
|
|
17
16
|
- `@downcity/agent`
|
|
18
|
-
- 单 Agent
|
|
17
|
+
- 单 Agent runtime。
|
|
18
|
+
- 单 Agent HTTP/RPC server。
|
|
19
|
+
- session 执行、service 框架、plugin 框架、sandbox。
|
|
20
|
+
- 本地 SDK facade。
|
|
19
21
|
- `@downcity/city`
|
|
20
|
-
- 多 Agent registry
|
|
22
|
+
- 多 Agent registry。
|
|
23
|
+
- control plane / gateway。
|
|
24
|
+
- 平台 CLI、模型池、全局 env、channel account store。
|
|
25
|
+
- agent daemon 进程管理。
|
|
21
26
|
- `@downcity/ui`
|
|
22
|
-
- React UI
|
|
27
|
+
- React UI 组件与展示层。
|
|
23
28
|
|
|
24
29
|
## 根目录结构
|
|
25
30
|
|
|
@@ -29,198 +34,666 @@ packages/agent
|
|
|
29
34
|
├── scripts/ # 构建辅助脚本
|
|
30
35
|
├── src/ # 源码目录
|
|
31
36
|
├── package.json # 包信息、导出面、脚本
|
|
32
|
-
├── README.md #
|
|
37
|
+
├── README.md # 包结构说明
|
|
33
38
|
└── tsconfig.json # TypeScript 配置
|
|
34
39
|
```
|
|
35
40
|
|
|
36
|
-
##
|
|
41
|
+
## 当前源码结构
|
|
37
42
|
|
|
38
43
|
```text
|
|
39
|
-
src
|
|
40
|
-
├── index.ts
|
|
41
|
-
├──
|
|
42
|
-
├──
|
|
43
|
-
├──
|
|
44
|
-
│
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
│
|
|
48
|
-
├──
|
|
49
|
-
|
|
50
|
-
├──
|
|
51
|
-
|
|
52
|
-
├──
|
|
53
|
-
├──
|
|
54
|
-
│
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
├──
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
src/ # 单 Agent 执行内核源码根目录,承载 runtime、session、service、plugin、server、SDK 等模块
|
|
45
|
+
├── index.ts # 包公开入口,集中导出外部可依赖的 API 与协议类型
|
|
46
|
+
├── config/ # 项目配置模块,负责 downcity.json、默认配置、环境变量与项目路径解析
|
|
47
|
+
├── host/ # Agent 与宿主环境的端口模块,负责 daemon 协议与 runtime 注入边界
|
|
48
|
+
│ ├── daemon/ # Agent 侧 daemon 协议模块,负责 daemon API、client、项目准备与本地路径约定
|
|
49
|
+
│ └── runtime/ # 宿主 runtime 端口模块,负责 platform gateway、store、plugin runtime resolver 等注入能力
|
|
50
|
+
├── model/ # 模型运行模块,负责模型实例创建、模型管理与 provider 运行辅助
|
|
51
|
+
├── plugin/ # 插件系统模块,负责 plugin 注册、启用态、hook、action 与内建插件
|
|
52
|
+
│ ├── builtins/ # 内建插件模块,提供 auth、skill、web、asr、tts、voice、workboard 等默认能力
|
|
53
|
+
│ ├── core/ # 插件核心模块,负责注册表、hook 调度、本地 action、项目插件配置与 HTTP routes
|
|
54
|
+
│ └── types/ # 插件公共类型模块,定义 plugin、action、API、hook 等插件协议
|
|
55
|
+
├── project/ # Agent 项目模块,负责项目初始化、execution binding 与项目骨架准备
|
|
56
|
+
│ └── types/ # 项目私有类型模块,定义 agent project 初始化相关结构
|
|
57
|
+
├── runtime/ # 单 Agent runtime 模块,负责装配 AgentRuntime、AgentContext、状态与热重载
|
|
58
|
+
├── sandbox/ # 命令沙箱模块,负责 shell/task/tool 执行前的沙箱配置解析与受限运行
|
|
59
|
+
│ └── types/ # 沙箱私有类型模块,定义 sandbox 配置与执行相关协议
|
|
60
|
+
├── sdk/ # 本地 SDK 模块,提供 Agent、RemoteAgent、Session facade 与 HTTP/RPC wrapper
|
|
61
|
+
├── server/ # 单 Agent server 模块,负责 HTTP/RPC 服务端、路由与静态资源承载
|
|
62
|
+
│ ├── http/ # HTTP 服务模块,提供 control、execute、plugins、services、health、static 等路由
|
|
63
|
+
│ └── rpc/ # 本机 RPC 服务模块,提供 local RPC server 与 session/service 调用入口
|
|
64
|
+
├── service/ # Service 系统模块,负责内建服务、service 生命周期、action 调度与 schedule
|
|
65
|
+
│ ├── builtins/ # 内建 service 模块,提供 chat、contact、task、memory、shell 等用户可用服务
|
|
66
|
+
│ ├── core/ # Service 核心模块,负责 service 注册、实例管理、状态控制、action runner 与系统提示
|
|
67
|
+
│ ├── schedule/ # Service 调度模块,负责持久化 service action 的计划执行与 runtime store
|
|
68
|
+
│ └── types/ # Service 公共类型模块,定义 service、action、state、schedule 等协议
|
|
69
|
+
├── session/ # 会话执行模块,负责 Session 实例、模型输入组合、tool loop、history 与消息持久化
|
|
70
|
+
│ ├── composer/ # Session 组合模块,负责 history、system、execution、compaction 等上下文组合面
|
|
71
|
+
│ ├── executors/ # Session 执行器模块,负责 local executor、core runner、tool loop 与执行错误归一化
|
|
72
|
+
│ ├── ids/ # Session 标识模块,负责 session id / message id 等标识生成与解析
|
|
73
|
+
│ ├── messages/ # Session 消息模块,负责 UI/model/session 消息转换、附件映射与 step event 映射
|
|
74
|
+
│ ├── tools/ # Session 工具模块,负责 shell 等内置 tool 的定义、桥接与输出格式化
|
|
75
|
+
│ └── types/ # Session 公共类型模块,定义消息、执行输入、step event 等会话协议
|
|
76
|
+
├── transport/ # 调用端传输模块,负责 agent client 侧 transport 协议与连接选择
|
|
77
|
+
│ └── rpc/ # RPC transport 模块,提供 local RPC client、endpoint path 与 transport 实现
|
|
78
|
+
├── types/ # 跨模块共享类型模块,集中放置跨包、跨领域复用的稳定协议类型
|
|
79
|
+
│ ├── auth/ # 鉴权协议类型模块,定义 token、permission、route 与 auth control 共享结构
|
|
80
|
+
│ ├── common/ # 基础公共类型模块,定义 Json、Template 等无领域依赖的基础类型
|
|
81
|
+
│ ├── config/ # 配置协议类型模块,定义 DowncityConfig、LLM、model binding、start options 等结构
|
|
82
|
+
│ ├── daemon/ # Daemon 协议类型模块,定义 agent daemon API 与状态交换结构
|
|
83
|
+
│ ├── host/ # Host 协议类型模块,定义 AgentHost、store、plugin config runtime 等宿主能力
|
|
84
|
+
│ ├── http/ # HTTP 协议类型模块,定义 inline execute 等 HTTP API payload
|
|
85
|
+
│ ├── platform/ # 平台端口类型模块,定义 Platform、PlatformGateway 等 city/agent 注入协议
|
|
86
|
+
│ └── rpc/ # RPC 协议类型模块,定义 local RPC request/response 与 transport 载荷
|
|
87
|
+
└── utils/ # 包内通用工具模块,提供 CLI、日志、存储与模板等低层辅助能力
|
|
88
|
+
├── cli/ # CLI 辅助模块,负责命令行输出、交互与格式化工具
|
|
89
|
+
├── logger/ # 日志模块,负责结构化日志、请求/响应格式化与 fetch 日志封装
|
|
90
|
+
└── storage/ # 存储工具模块,负责本地 JSON/文件存储等通用落盘辅助
|
|
60
91
|
```
|
|
61
92
|
|
|
62
93
|
## 目录职责
|
|
63
94
|
|
|
64
95
|
- `src/index.ts`
|
|
65
96
|
- 包的唯一公开入口。
|
|
66
|
-
-
|
|
97
|
+
- `city` 和外部调用方应从这里导入公共能力,避免依赖内部子路径。
|
|
98
|
+
|
|
99
|
+
- `src/runtime/`
|
|
100
|
+
- 单 Agent runtime 装配层。
|
|
101
|
+
- `AgentRuntime.ts` 负责初始化 config、model、session factory、services、plugins、hot reload。
|
|
102
|
+
- `AgentContext.ts` 负责从 `AgentRuntime` 派生统一能力面。
|
|
67
103
|
|
|
68
|
-
- `src/
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
- `project/` 子目录负责项目初始化和 execution binding。
|
|
104
|
+
- `src/project/`
|
|
105
|
+
- 项目初始化与 execution binding。
|
|
106
|
+
- 负责 agent 项目骨架、默认文件、模型绑定与初始化结果类型。
|
|
72
107
|
|
|
73
108
|
- `src/config/`
|
|
74
|
-
-
|
|
75
|
-
-
|
|
109
|
+
- 项目配置与项目级路径解析。
|
|
110
|
+
- 负责 `downcity.json`、项目 env、`.downcity/*` 路径规则。
|
|
76
111
|
|
|
77
112
|
- `src/host/`
|
|
78
|
-
-
|
|
79
|
-
- `
|
|
80
|
-
- `
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
- `
|
|
87
|
-
- `
|
|
88
|
-
- `
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
- `
|
|
113
|
+
- Agent 运行时与宿主环境之间的端口层。
|
|
114
|
+
- `runtime/` 只保留注入到 `AgentRuntime` 的宿主端口、plugin 配置能力与 plugin runtime resolver。
|
|
115
|
+
- `daemon/` 只保留 agent 侧 daemon 协议、项目准备、HTTP client 与项目级 daemon meta 路径。
|
|
116
|
+
- daemon 进程启停、pid 清理、registry 同步等平台级管理职责属于 `@downcity/city`。
|
|
117
|
+
|
|
118
|
+
- `src/types/`
|
|
119
|
+
- 跨模块、跨包共享协议类型。
|
|
120
|
+
- `common/` 放 JSON、模板等基础类型。
|
|
121
|
+
- `config/` 放 `downcity.json`、execution binding、LLM、start options 等配置类型。
|
|
122
|
+
- `host/`、`platform/`、`daemon/`、`rpc/`、`auth/`、`http/` 放 city/agent 共享控制面协议。
|
|
123
|
+
- 领域内部类型仍保留在对应领域目录,例如 `service/types/`、`plugin/types/`、`session/types/`。
|
|
124
|
+
|
|
125
|
+
- `src/sdk/`
|
|
126
|
+
- 本地 SDK facade。
|
|
127
|
+
- 包括 `Agent`、`RemoteAgent`、`SdkSession`、SDK HTTP/RPC wrapper 与 session metadata。
|
|
128
|
+
- `Agent.ts` 负责本地 SDK agent facade,装配 service/plugin/runtime/session 集合。
|
|
129
|
+
- `RemoteAgent.ts` 负责远程 SDK facade,通过 transport 连接已有 agent server。
|
|
130
|
+
- `Session.ts` 负责单个 SDK session 的高层 API,例如 `set/run/stream/fork/history`。
|
|
131
|
+
- `SessionPersistence.ts` 负责 SDK session meta 刷新与 assistant 消息落盘。
|
|
132
|
+
- `SessionServicePort.ts` 负责把 SDK session 适配成 chat service 可消费的 `SessionPort`。
|
|
133
|
+
- `StreamEvents.ts` 负责把 AI SDK UI stream chunk 归一成 SDK 对外 stream event。
|
|
134
|
+
- `SessionMetadata.ts` 与 `Paths.ts` 负责 SDK session metadata 与 `.downcity` 路径约定。
|
|
135
|
+
|
|
136
|
+
- `src/server/`
|
|
137
|
+
- 单 Agent server 层。
|
|
138
|
+
- `http/` 是 HTTP server 与路由,包含 `control / execute / services / plugins / health / static`。
|
|
139
|
+
- `rpc/` 是本机 local RPC server。
|
|
140
|
+
|
|
141
|
+
- `src/transport/`
|
|
142
|
+
- agent 调用端 transport 协议。
|
|
143
|
+
- `rpc/` 放 local RPC client、endpoint path、transport 选择器与协议类型。
|
|
93
144
|
|
|
94
145
|
- `src/model/`
|
|
95
|
-
-
|
|
146
|
+
- 模型创建与模型运行辅助。
|
|
96
147
|
|
|
97
148
|
- `src/plugin/`
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
- `
|
|
102
|
-
- 内建插件实现。
|
|
103
|
-
- 当前包括 `auth`、`skill`、`web`、`asr`、`tts`、`voice`、`workboard` 等。
|
|
104
|
-
|
|
105
|
-
- `src/sandbox/`
|
|
106
|
-
- 命令执行沙箱实现。
|
|
107
|
-
- 负责 shell/task 等执行进入受限环境。
|
|
108
|
-
- 这是 agent 内部真实执行沙箱,不是 city 侧控制面概念。
|
|
149
|
+
- 插件框架与内建插件。
|
|
150
|
+
- `core/` 负责注册、启用态、hook 调度、本地 action。
|
|
151
|
+
- `builtins/` 放 `auth`、`skill`、`web`、`asr`、`tts`、`voice`、`workboard` 等内建插件。
|
|
152
|
+
- `types/` 放插件公共协议类型。
|
|
109
153
|
|
|
110
154
|
- `src/service/`
|
|
111
155
|
- 单 Agent service 域。
|
|
112
|
-
- `core
|
|
113
|
-
- `builtins
|
|
114
|
-
- `schedule
|
|
156
|
+
- `core/` 负责 service class 注册、状态控制、action 调度、HTTP route 注册。
|
|
157
|
+
- `builtins/` 放 `chat`、`contact`、`task`、`memory`、`shell` 等内建 service。
|
|
158
|
+
- `schedule/` 负责持久化 service action 调度。
|
|
159
|
+
- `types/` 放 service 公共协议类型。
|
|
115
160
|
|
|
116
161
|
- `src/session/`
|
|
117
162
|
- 会话执行内核。
|
|
118
|
-
-
|
|
163
|
+
- `Session.ts` 是单 session 实例外壳。
|
|
164
|
+
- `executors/local/LocalSessionExecutor.ts` 装配执行器。
|
|
165
|
+
- `executors/local/LocalSessionCore.ts` 执行模型/tool loop。
|
|
166
|
+
- `executors/local/SessionToolLoopRunner.ts` 承担 tool loop 的逐轮调度。
|
|
167
|
+
- `executors/local/SessionModelMessageState.ts` 维护 session/model 双消息基线。
|
|
168
|
+
- `executors/local/SessionUiStreamCollector.ts` 收敛 UI stream 最终 assistant 消息。
|
|
169
|
+
- `executors/local/SessionExecutionError.ts` 归一化 stream/provider 错误。
|
|
170
|
+
- `composer/` 负责 history、system、execution、compaction 的组合。
|
|
171
|
+
- `messages/` 负责消息编码、附件映射与 step event 映射。
|
|
172
|
+
- `tools/` 放 session 可用工具定义。
|
|
119
173
|
|
|
120
|
-
- `src/
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
- 这里的目录结构用于内部组织,不作为包外公开导入路径。
|
|
174
|
+
- `src/sandbox/`
|
|
175
|
+
- 命令执行沙箱。
|
|
176
|
+
- shell/task 等执行最终通过这里进入受限环境。
|
|
124
177
|
|
|
125
|
-
- `src/
|
|
126
|
-
-
|
|
127
|
-
- 主要剩余 `session/` 与 `sandbox/` 这类仍适合集中维护的底层类型。
|
|
128
|
-
- 其他领域类型应优先放回各自模块旁边,避免重新形成“大一统 types 目录”。
|
|
178
|
+
- `src/utils/`
|
|
179
|
+
- 包内通用工具、日志、CLI 输出、基础 JSON/Template 类型。
|
|
129
180
|
|
|
130
|
-
##
|
|
181
|
+
## 模块核心与调用逻辑
|
|
131
182
|
|
|
132
|
-
|
|
133
|
-
- `shared/types`、`host/*`、`service/*`、`session/*`、`plugin/*` 等目录只表达源码分层,不作为公开导入地址。
|
|
134
|
-
- 如果 `city` 或其他包需要新能力,应先补到 `src/index.ts`,而不是直接依赖内部文件路径。
|
|
183
|
+
### 核心分层
|
|
135
184
|
|
|
136
|
-
|
|
185
|
+
`@downcity/agent` 的核心不是某一个服务,而是一条单 Agent 执行链:
|
|
137
186
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
187
|
+
```text
|
|
188
|
+
入口协议 -> AgentRuntime -> AgentContext -> Session / Service / Plugin -> Model / Tool / Sandbox -> History / Reply
|
|
189
|
+
```
|
|
141
190
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
191
|
+
各模块的核心定位如下:
|
|
192
|
+
|
|
193
|
+
| 模块 | 核心 | 主要输入 | 主要输出 |
|
|
194
|
+
| --- | --- | --- | --- |
|
|
195
|
+
| `index.ts` | 公共 API 边界 | 包内稳定能力 | `@downcity/agent` 根入口导出 |
|
|
196
|
+
| `runtime/` | 单 Agent 装配中枢 | 项目路径、host 端口、config | `AgentRuntime`、`AgentContext`、session/service/plugin runtime |
|
|
197
|
+
| `project/` | 项目准备 | rootPath、execution binding | 项目骨架、默认配置、初始化结果 |
|
|
198
|
+
| `config/` | 项目配置解析 | `downcity.json`、env、默认值 | 标准化 config、项目路径能力 |
|
|
199
|
+
| `host/` | 宿主端口 | city/platform 注入能力 | platform gateway、store、plugin config runtime、daemon client |
|
|
200
|
+
| `server/` | 服务端入口 | HTTP/RPC 请求 | session/service/plugin/control 调用 |
|
|
201
|
+
| `transport/` | 调用端连接 | endpoint path、RPC 配置 | local RPC client / transport |
|
|
202
|
+
| `sdk/` | 用户侧 facade | 本地/远程 agent 目标 | `Agent`、`RemoteAgent`、`Session` API |
|
|
203
|
+
| `session/` | 对话执行内核 | 用户输入、system、history、tools | 模型响应、tool events、assistant history |
|
|
204
|
+
| `service/` | 长生命周期能力 | service action、schedule、外部事件 | chat/task/memory/contact/shell 等能力结果 |
|
|
205
|
+
| `plugin/` | 横切扩展点 | hooks、actions、project plugin config | system prompt、入站增强、工具/action 能力 |
|
|
206
|
+
| `model/` | 模型实例层 | model binding、provider config | AI SDK model / provider runtime |
|
|
207
|
+
| `sandbox/` | 命令执行隔离 | shell command、sandbox policy | 受限执行结果 |
|
|
208
|
+
| `types/` | 共享协议层 | 跨模块/跨包结构 | 稳定类型契约 |
|
|
209
|
+
| `utils/` | 基础工具层 | 日志、文件、CLI、模板输入 | 通用辅助能力 |
|
|
210
|
+
|
|
211
|
+
### 依赖方向图
|
|
212
|
+
|
|
213
|
+
```mermaid
|
|
214
|
+
flowchart TB
|
|
215
|
+
City["@downcity/city\n多 Agent 管理 / CLI / control plane"]
|
|
216
|
+
Public["@downcity/agent index.ts\n公共 API 边界"]
|
|
217
|
+
SDK["sdk/\n用户侧 facade"]
|
|
218
|
+
Server["server/\nHTTP / RPC server"]
|
|
219
|
+
Transport["transport/\nclient RPC transport"]
|
|
220
|
+
Runtime["runtime/\nAgentRuntime / AgentContext"]
|
|
221
|
+
Host["host/\n宿主端口 / daemon client"]
|
|
222
|
+
Project["project/\n项目初始化"]
|
|
223
|
+
Config["config/\n配置与路径"]
|
|
224
|
+
Session["session/\n会话执行内核"]
|
|
225
|
+
Service["service/\n内建服务与调度"]
|
|
226
|
+
Plugin["plugin/\n插件系统与 hooks"]
|
|
227
|
+
Model["model/\n模型创建与管理"]
|
|
228
|
+
Sandbox["sandbox/\n命令隔离执行"]
|
|
229
|
+
Types["types/\n共享协议类型"]
|
|
230
|
+
Utils["utils/\n日志 / 存储 / CLI"]
|
|
231
|
+
|
|
232
|
+
City --> Public
|
|
233
|
+
Public --> SDK
|
|
234
|
+
Public --> Runtime
|
|
235
|
+
Public --> Server
|
|
236
|
+
Public --> Types
|
|
237
|
+
|
|
238
|
+
SDK --> Transport
|
|
239
|
+
SDK --> Server
|
|
240
|
+
Transport --> Server
|
|
241
|
+
Server --> Runtime
|
|
242
|
+
|
|
243
|
+
Runtime --> Host
|
|
244
|
+
Runtime --> Project
|
|
245
|
+
Runtime --> Config
|
|
246
|
+
Runtime --> Session
|
|
247
|
+
Runtime --> Service
|
|
248
|
+
Runtime --> Plugin
|
|
249
|
+
Runtime --> Model
|
|
250
|
+
|
|
251
|
+
Session --> Model
|
|
252
|
+
Session --> Plugin
|
|
253
|
+
Session --> Sandbox
|
|
254
|
+
Service --> Session
|
|
255
|
+
Service --> Plugin
|
|
256
|
+
Service --> Sandbox
|
|
257
|
+
Plugin --> Service
|
|
258
|
+
|
|
259
|
+
Host --> Types
|
|
260
|
+
Server --> Types
|
|
261
|
+
Runtime --> Types
|
|
262
|
+
Session --> Types
|
|
263
|
+
Service --> Types
|
|
264
|
+
Plugin --> Types
|
|
265
|
+
|
|
266
|
+
Runtime --> Utils
|
|
267
|
+
Session --> Utils
|
|
268
|
+
Service --> Utils
|
|
269
|
+
Plugin --> Utils
|
|
270
|
+
```
|
|
145
271
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
272
|
+
方向约定:
|
|
273
|
+
|
|
274
|
+
- `city` 只能依赖 `@downcity/agent` 根入口,不直接导入 `src/*` 内部模块。
|
|
275
|
+
- `runtime` 是单 Agent 的装配中心,`server`、`sdk`、`service` 都通过它取得执行能力。
|
|
276
|
+
- `service` 是长生命周期业务能力,`plugin` 是横切扩展点,两者通过 `AgentContext` 协作。
|
|
277
|
+
- `session` 只关心一次会话执行,不直接承担 HTTP、daemon、registry、平台管理职责。
|
|
278
|
+
- `types` 只放跨模块共享协议;模块私有类型留在本模块 `types/` 下。
|
|
279
|
+
|
|
280
|
+
### Runtime 装配图
|
|
281
|
+
|
|
282
|
+
```mermaid
|
|
283
|
+
flowchart LR
|
|
284
|
+
Root["项目 rootPath"]
|
|
285
|
+
HostPorts["host ports\nplatform / store / plugin config"]
|
|
286
|
+
ConfigLoader["config/\nloadDowncityConfig"]
|
|
287
|
+
ProjectSetup["project/\nensureRuntimeProjectReady"]
|
|
288
|
+
ModelFactory["model/\ncreateModel"]
|
|
289
|
+
PluginManager["plugin/core\nPluginManager"]
|
|
290
|
+
ServiceManager["service/core\nServiceManager"]
|
|
291
|
+
SessionFactory["session/\nSession factory"]
|
|
292
|
+
Runtime["AgentRuntime"]
|
|
293
|
+
Context["AgentContext"]
|
|
294
|
+
|
|
295
|
+
Root --> ProjectSetup
|
|
296
|
+
Root --> ConfigLoader
|
|
297
|
+
HostPorts --> Runtime
|
|
298
|
+
ProjectSetup --> Runtime
|
|
299
|
+
ConfigLoader --> Runtime
|
|
300
|
+
ModelFactory --> Runtime
|
|
301
|
+
PluginManager --> Runtime
|
|
302
|
+
ServiceManager --> Runtime
|
|
303
|
+
SessionFactory --> Runtime
|
|
304
|
+
Runtime --> Context
|
|
305
|
+
|
|
306
|
+
Context -->|"invoke service"| ServiceManager
|
|
307
|
+
Context -->|"run plugin hooks"| PluginManager
|
|
308
|
+
Context -->|"get session"| SessionFactory
|
|
309
|
+
Context -->|"read config/model/rootPath"| Runtime
|
|
310
|
+
```
|
|
149
311
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
312
|
+
`AgentRuntime` 的核心是“装配与持有状态”,`AgentContext` 的核心是“给 session/service/plugin 提供统一能力面”。多数模块不直接互相 new 对方,而是通过 `AgentContext` 调用,避免形成隐式耦合。
|
|
313
|
+
|
|
314
|
+
### Agent 启动时序
|
|
315
|
+
|
|
316
|
+
```mermaid
|
|
317
|
+
sequenceDiagram
|
|
318
|
+
participant City as city CLI / daemon
|
|
319
|
+
participant Runtime as initAgentRuntime
|
|
320
|
+
participant Project as project/
|
|
321
|
+
participant Config as config/
|
|
322
|
+
participant Model as model/
|
|
323
|
+
participant Plugin as plugin/core
|
|
324
|
+
participant Service as service/core
|
|
325
|
+
participant Server as server/http + server/rpc
|
|
326
|
+
|
|
327
|
+
City->>Runtime: start agent(rootPath, host ports)
|
|
328
|
+
Runtime->>Project: ensureRuntimeProjectReady()
|
|
329
|
+
Project-->>Runtime: project ready
|
|
330
|
+
Runtime->>Config: loadDowncityConfig() + env
|
|
331
|
+
Config-->>Runtime: normalized config
|
|
332
|
+
Runtime->>Model: createModel()
|
|
333
|
+
Model-->>Runtime: model runtime
|
|
334
|
+
Runtime->>Plugin: initializePluginManager()
|
|
335
|
+
Plugin-->>Runtime: plugin hooks/actions ready
|
|
336
|
+
Runtime->>Service: createRegisteredServiceInstances()
|
|
337
|
+
Service-->>Runtime: service instances ready
|
|
338
|
+
Runtime->>Server: startServer() / startLocalRpcServer()
|
|
339
|
+
Server-->>City: HTTP/RPC endpoints ready
|
|
340
|
+
Runtime->>Service: startAllServices() + schedule runtime
|
|
341
|
+
```
|
|
154
342
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
343
|
+
### Session 执行时序
|
|
344
|
+
|
|
345
|
+
```mermaid
|
|
346
|
+
sequenceDiagram
|
|
347
|
+
participant Input as HTTP / RPC / SDK / Service
|
|
348
|
+
participant Runtime as AgentRuntime
|
|
349
|
+
participant Session as Session
|
|
350
|
+
participant Executor as LocalSessionExecutor
|
|
351
|
+
participant Core as LocalSessionCore
|
|
352
|
+
participant Composer as composer/
|
|
353
|
+
participant Runner as SessionToolLoopRunner
|
|
354
|
+
participant Model as model provider
|
|
355
|
+
participant Tools as session/tools + services
|
|
356
|
+
participant History as history writer
|
|
357
|
+
|
|
358
|
+
Input->>Runtime: getSession(sessionId)
|
|
359
|
+
Runtime-->>Input: Session
|
|
360
|
+
Input->>Session: run(user input)
|
|
361
|
+
Session->>Executor: execute()
|
|
362
|
+
Executor->>Core: run()
|
|
363
|
+
Core->>Composer: compose system/history/execution input
|
|
364
|
+
Composer-->>Core: model messages + tools + metadata
|
|
365
|
+
Core->>Runner: run tool loop
|
|
366
|
+
Runner->>Model: stream/generate response
|
|
367
|
+
Model-->>Runner: assistant text / tool calls / events
|
|
368
|
+
Runner->>Tools: execute tool calls
|
|
369
|
+
Tools-->>Runner: tool results
|
|
370
|
+
Runner->>Model: continue when needed
|
|
371
|
+
Runner-->>Core: final assistant message
|
|
372
|
+
Core->>History: append assistant step
|
|
373
|
+
History-->>Session: persisted
|
|
374
|
+
Session-->>Input: execution result / stream events
|
|
375
|
+
```
|
|
158
376
|
|
|
159
|
-
|
|
377
|
+
Session 这一层的核心拆分:
|
|
378
|
+
|
|
379
|
+
- `Session.ts`:单 session 外壳,负责并发保护、append assistant、executor 缓存。
|
|
380
|
+
- `LocalSessionExecutor.ts`:执行器装配,把 model/history/system/execution/compaction composer 接起来。
|
|
381
|
+
- `LocalSessionCore.ts`:一次 run 的协调层,负责准备输入、错误恢复、最终 assistant 收敛。
|
|
382
|
+
- `SessionToolLoopRunner.ts`:模型响应与 tool call 的循环执行。
|
|
383
|
+
- `SessionModelMessageState.ts`:维护 session 消息与 model 消息两份基线。
|
|
384
|
+
- `SessionUiStreamCollector.ts`:把 UI stream 中的 assistant 内容收敛为最终消息。
|
|
385
|
+
|
|
386
|
+
### Service 调用图
|
|
387
|
+
|
|
388
|
+
```mermaid
|
|
389
|
+
flowchart TB
|
|
390
|
+
Caller["调用方\nHTTP / RPC / Session tool / Plugin / SDK"]
|
|
391
|
+
Context["AgentContext.invoke"]
|
|
392
|
+
Runner["service/core/ServiceActionRunner"]
|
|
393
|
+
State["service/core/ServiceStateController"]
|
|
394
|
+
Manager["service/core/ServiceManager"]
|
|
395
|
+
Builtins["service/builtins/*\nchat / task / memory / contact / shell"]
|
|
396
|
+
Schedule["service/schedule\n持久化计划调度"]
|
|
397
|
+
Sandbox["sandbox/\n命令执行隔离"]
|
|
398
|
+
Session["session/\n需要 agent 回复时进入会话"]
|
|
399
|
+
|
|
400
|
+
Caller --> Context
|
|
401
|
+
Context --> Runner
|
|
402
|
+
Runner --> State
|
|
403
|
+
State --> Manager
|
|
404
|
+
Manager --> Builtins
|
|
405
|
+
Builtins --> Schedule
|
|
406
|
+
Builtins --> Sandbox
|
|
407
|
+
Builtins --> Session
|
|
408
|
+
```
|
|
160
409
|
|
|
161
|
-
|
|
410
|
+
Service 的核心是“长期存在的业务能力”。例如:
|
|
411
|
+
|
|
412
|
+
- `chat` 接 IM 渠道、入站队列、上下文映射与回复分发。
|
|
413
|
+
- `task` 接 cron / manual run,把任务执行转成 session 或 service action。
|
|
414
|
+
- `memory` 提供长期记忆读写。
|
|
415
|
+
- `shell` 提供命令执行 action,最终落到 `sandbox`。
|
|
416
|
+
- `contact` 提供联系人、分享与远程协作相关能力。
|
|
417
|
+
|
|
418
|
+
### Chat 入站执行图
|
|
419
|
+
|
|
420
|
+
```mermaid
|
|
421
|
+
flowchart TB
|
|
422
|
+
Channel["IM 平台\nTelegram / Feishu / QQ"]
|
|
423
|
+
Bot["channels/* 门面\n生命周期 / 发送 / 命令入口"]
|
|
424
|
+
Handler["*MessageHandler\n入站解析 / 授权 / 附件 / 入队"]
|
|
425
|
+
Base["BaseChatChannel\n授权 / audit / exec queue"]
|
|
426
|
+
Queue["chat/runtime queue\nlane / worker / store"]
|
|
427
|
+
Plugins["plugin hooks\n入站增强 / 权限 / system"]
|
|
428
|
+
Session["Session.run\nagent 执行"]
|
|
429
|
+
Reply["ReplyDispatch\n平台回复 / fallback"]
|
|
430
|
+
|
|
431
|
+
Channel --> Bot
|
|
432
|
+
Bot --> Handler
|
|
433
|
+
Handler --> Base
|
|
434
|
+
Base --> Queue
|
|
435
|
+
Queue --> Plugins
|
|
436
|
+
Queue --> Session
|
|
437
|
+
Session --> Reply
|
|
438
|
+
Reply --> Bot
|
|
439
|
+
Bot --> Channel
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
Chat 渠道的拆分原则:
|
|
443
|
+
|
|
444
|
+
- `Bot.ts` / `QQ.ts` / `Feishu.ts` 只做渠道门面:启动、停止、发送、命令入口、平台 client 装配。
|
|
445
|
+
- `*MessageHandler.ts` 做入站主流程:去重、授权、附件、reply context、执行入队。
|
|
446
|
+
- `*PlatformClient.ts` 做平台连接和 API:polling、WebSocket、token、上传下载、发送。
|
|
447
|
+
- `*Inbound.ts` / `*Support.ts` 做纯解析和归一化辅助。
|
|
448
|
+
|
|
449
|
+
### Plugin 调用图
|
|
450
|
+
|
|
451
|
+
```mermaid
|
|
452
|
+
flowchart LR
|
|
453
|
+
Runtime["AgentRuntime"]
|
|
454
|
+
Registry["plugin/core/PluginRegistry"]
|
|
455
|
+
Manager["plugin/core/PluginManager"]
|
|
456
|
+
Builtins["plugin/builtins/*"]
|
|
457
|
+
Hooks["hooks\nsystem / augmentInbound / auth / tool"]
|
|
458
|
+
Actions["actions\nCLI / HTTP / service action"]
|
|
459
|
+
Context["AgentContext.plugins"]
|
|
460
|
+
Session["session composer / execution"]
|
|
461
|
+
Service["service runtime"]
|
|
462
|
+
|
|
463
|
+
Runtime --> Registry
|
|
464
|
+
Registry --> Builtins
|
|
465
|
+
Runtime --> Manager
|
|
466
|
+
Manager --> Hooks
|
|
467
|
+
Manager --> Actions
|
|
468
|
+
Context --> Manager
|
|
469
|
+
Hooks --> Session
|
|
470
|
+
Hooks --> Service
|
|
471
|
+
Actions --> Service
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
Plugin 的核心是“横切扩展”。它不应该接管主流程,而是在稳定点位上增强:
|
|
475
|
+
|
|
476
|
+
- `system` hook:给 session system prompt 增加能力说明。
|
|
477
|
+
- `augmentInbound` hook:增强 chat 入站消息,例如 ASR 把音频转写成文本。
|
|
478
|
+
- auth / policy hook:参与权限判断。
|
|
479
|
+
- action:暴露给 CLI、HTTP 或 service 的可调用能力。
|
|
480
|
+
|
|
481
|
+
### Server / SDK / Transport 图
|
|
482
|
+
|
|
483
|
+
```mermaid
|
|
484
|
+
flowchart TB
|
|
485
|
+
User["用户代码 / CLI / city"]
|
|
486
|
+
SDK["sdk/\nAgent / RemoteAgent / Session"]
|
|
487
|
+
Transport["transport/rpc\nlocal RPC client"]
|
|
488
|
+
HTTP["server/http\nREST/control routes"]
|
|
489
|
+
RPC["server/rpc\nlocal RPC server"]
|
|
490
|
+
Runtime["AgentRuntime"]
|
|
491
|
+
Session["session"]
|
|
492
|
+
Service["service"]
|
|
493
|
+
Plugin["plugin"]
|
|
494
|
+
|
|
495
|
+
User --> SDK
|
|
496
|
+
User --> HTTP
|
|
497
|
+
SDK --> Transport
|
|
498
|
+
Transport --> RPC
|
|
499
|
+
HTTP --> Runtime
|
|
500
|
+
RPC --> Runtime
|
|
501
|
+
Runtime --> Session
|
|
502
|
+
Runtime --> Service
|
|
503
|
+
Runtime --> Plugin
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
这条链的边界是:
|
|
507
|
+
|
|
508
|
+
- SDK 是调用方友好的 facade,不承担 runtime 状态。
|
|
509
|
+
- transport 是 client 侧连接协议,不承担业务执行。
|
|
510
|
+
- server 是 agent 内部入口适配层,不直接放业务规则。
|
|
511
|
+
- 真正业务执行都回到 `AgentRuntime`、`Session`、`Service`、`Plugin`。
|
|
512
|
+
|
|
513
|
+
### SDK 本地 Session 图
|
|
514
|
+
|
|
515
|
+
```mermaid
|
|
516
|
+
flowchart TB
|
|
517
|
+
User["用户代码\nnew Agent().session()"]
|
|
518
|
+
Agent["sdk/Agent.ts\n本地 facade / runtime 装配"]
|
|
519
|
+
SdkSession["sdk/Session.ts\nset / run / stream / fork / history"]
|
|
520
|
+
Persistence["sdk/SessionPersistence.ts\nmeta / assistant 落盘"]
|
|
521
|
+
Stream["sdk/StreamEvents.ts\nUI chunk -> SDK event"]
|
|
522
|
+
ServicePort["sdk/SessionServicePort.ts\nSessionPort adapter"]
|
|
523
|
+
CoreSession["session/Session.ts\n核心 session 外壳"]
|
|
524
|
+
Executor["session/executors/local\nLocalSessionExecutor / Core"]
|
|
525
|
+
ChatService["service/builtins/chat\nqueue worker / channel reply"]
|
|
526
|
+
History["session/composer/history\nJSONL history"]
|
|
527
|
+
|
|
528
|
+
User --> Agent
|
|
529
|
+
Agent --> SdkSession
|
|
530
|
+
SdkSession --> CoreSession
|
|
531
|
+
CoreSession --> Executor
|
|
532
|
+
SdkSession --> Persistence
|
|
533
|
+
SdkSession --> Stream
|
|
534
|
+
SdkSession --> ServicePort
|
|
535
|
+
ServicePort --> ChatService
|
|
536
|
+
Persistence --> History
|
|
537
|
+
CoreSession --> History
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
本地 SDK 的核心是“对用户友好的 facade + 对内部 runtime 的轻量适配”:
|
|
541
|
+
|
|
542
|
+
- `Session.ts` 保持门面职责,负责参数校验、调用底层 session、产出 SDK 结果。
|
|
543
|
+
- `SessionPersistence.ts` 统一处理 meta 更新时间、模型标签与 assistant 最终消息持久化。
|
|
544
|
+
- `StreamEvents.ts` 统一处理 stream chunk 事件映射和 toolCallId 到 toolName 的短生命周期状态。
|
|
545
|
+
- `SessionServicePort.ts` 只做端口适配,让 chat service 复用底层 session 协议,不重复走 SDK `run()` 包装层。
|
|
546
|
+
|
|
547
|
+
### Sandbox 调用图
|
|
548
|
+
|
|
549
|
+
```mermaid
|
|
550
|
+
sequenceDiagram
|
|
551
|
+
participant Tool as shell tool / shell service / task
|
|
552
|
+
participant Resolver as SandboxConfigResolver
|
|
553
|
+
participant Runner as SandboxRunner
|
|
554
|
+
participant Seatbelt as MacOsSeatbeltSandbox
|
|
555
|
+
participant Process as child process
|
|
556
|
+
|
|
557
|
+
Tool->>Resolver: resolve sandbox policy
|
|
558
|
+
Resolver-->>Tool: command + cwd + env + restrictions
|
|
559
|
+
Tool->>Runner: run(command, policy)
|
|
560
|
+
Runner->>Seatbelt: wrap command when needed
|
|
561
|
+
Seatbelt-->>Runner: sandboxed command
|
|
562
|
+
Runner->>Process: spawn
|
|
563
|
+
Process-->>Runner: stdout / stderr / exit code
|
|
564
|
+
Runner-->>Tool: normalized result
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
Sandbox 的核心是“把执行策略和具体命令隔离”。上游模块只表达要执行什么,`sandbox` 负责决定如何执行、如何限制、如何收敛结果。
|
|
568
|
+
|
|
569
|
+
### 生命周期状态图
|
|
570
|
+
|
|
571
|
+
```mermaid
|
|
572
|
+
stateDiagram-v2
|
|
573
|
+
[*] --> ProjectReady: project/
|
|
574
|
+
ProjectReady --> ConfigLoaded: config/
|
|
575
|
+
ConfigLoaded --> RuntimeCreated: runtime/
|
|
576
|
+
RuntimeCreated --> PluginsReady: plugin/core
|
|
577
|
+
PluginsReady --> ServicesReady: service/core
|
|
578
|
+
ServicesReady --> ServersReady: server/http + server/rpc
|
|
579
|
+
ServersReady --> Running: start services + schedules
|
|
580
|
+
Running --> Running: session/service/plugin calls
|
|
581
|
+
Running --> Stopping: stop requested
|
|
582
|
+
Stopping --> [*]: stop services + close servers
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
## 当前运行主链
|
|
586
|
+
|
|
587
|
+
### Agent 启动
|
|
162
588
|
|
|
163
589
|
```text
|
|
164
|
-
|
|
165
|
-
->
|
|
166
|
-
->
|
|
167
|
-
->
|
|
168
|
-
->
|
|
169
|
-
->
|
|
170
|
-
->
|
|
590
|
+
city agent start
|
|
591
|
+
-> @downcity/city cli/agent/Run.ts
|
|
592
|
+
-> initAgentRuntime()
|
|
593
|
+
-> ensureRuntimeProjectReady()
|
|
594
|
+
-> loadDowncityConfig() / load env / load static prompts
|
|
595
|
+
-> createModel()
|
|
596
|
+
-> create session factory
|
|
597
|
+
-> createRegisteredServiceInstances()
|
|
598
|
+
-> initializePluginManager()
|
|
599
|
+
-> startServer() / startLocalRpcServer()
|
|
600
|
+
-> startAllServices() / startServiceScheduleRuntime()
|
|
171
601
|
```
|
|
172
602
|
|
|
173
603
|
关键入口:
|
|
174
604
|
|
|
175
|
-
- `src/
|
|
176
|
-
- `src/
|
|
605
|
+
- `src/runtime/AgentRuntime.ts`
|
|
606
|
+
- `src/runtime/AgentContext.ts`
|
|
607
|
+
- `src/server/http/Server.ts`
|
|
608
|
+
- `src/server/rpc/Server.ts`
|
|
177
609
|
|
|
178
|
-
###
|
|
610
|
+
### Session 执行
|
|
179
611
|
|
|
180
612
|
```text
|
|
181
|
-
|
|
182
|
-
->
|
|
183
|
-
->
|
|
184
|
-
-> Session
|
|
185
|
-
->
|
|
613
|
+
外部输入
|
|
614
|
+
-> HTTP / RPC / service / SDK
|
|
615
|
+
-> AgentRuntime.getSession(sessionId)
|
|
616
|
+
-> Session.run()
|
|
617
|
+
-> LocalSessionExecutor
|
|
618
|
+
-> LocalSessionCore
|
|
619
|
+
-> model / tools / system / history / compaction
|
|
620
|
+
-> assistant message 持久化与回调
|
|
186
621
|
```
|
|
187
622
|
|
|
188
|
-
|
|
623
|
+
关键入口:
|
|
624
|
+
|
|
625
|
+
- `src/session/Session.ts`
|
|
626
|
+
- `src/session/executors/local/LocalSessionExecutor.ts`
|
|
627
|
+
- `src/session/executors/local/LocalSessionCore.ts`
|
|
628
|
+
- `src/session/executors/local/SessionToolLoopRunner.ts`
|
|
629
|
+
|
|
630
|
+
### Service 调用
|
|
189
631
|
|
|
190
632
|
```text
|
|
191
633
|
AgentContext.invoke
|
|
192
|
-
->
|
|
193
|
-
->
|
|
194
|
-
->
|
|
634
|
+
-> service/core/ServiceActionRunner.ts
|
|
635
|
+
-> service/core/ServiceStateController.ts
|
|
636
|
+
-> service/builtins/* 具体 action
|
|
195
637
|
```
|
|
196
638
|
|
|
197
|
-
###
|
|
639
|
+
### Plugin 调用
|
|
198
640
|
|
|
199
641
|
```text
|
|
200
|
-
|
|
201
|
-
->
|
|
202
|
-
->
|
|
642
|
+
AgentContext.plugins
|
|
643
|
+
-> plugin/core/PluginManager.ts
|
|
644
|
+
-> plugin/core/PluginRegistry.ts
|
|
645
|
+
-> plugin/builtins/* 具体 plugin
|
|
203
646
|
```
|
|
204
647
|
|
|
205
|
-
|
|
648
|
+
### 沙箱执行
|
|
206
649
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
-
|
|
218
|
-
|
|
650
|
+
```text
|
|
651
|
+
shell tool / shell service / task service
|
|
652
|
+
-> sandbox/SandboxConfigResolver.ts
|
|
653
|
+
-> sandbox/SandboxRunner.ts
|
|
654
|
+
-> sandbox/MacOsSeatbeltSandbox.ts
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
## 公开导出约定
|
|
658
|
+
|
|
659
|
+
- 包外只从 `@downcity/agent` 根入口导入。
|
|
660
|
+
- `@downcity/agent/*` 子路径不是公共 API。
|
|
661
|
+
- `src/index.ts` 必须使用显式导出清单,不使用 `export *` 扩大公共面。
|
|
662
|
+
- 根入口只暴露 SDK、插件/服务作者 API、city 运行集成 API 与跨包协议类型。
|
|
663
|
+
- HTTP router、sandbox runner、内部 service runner 等实现细节不从根入口导出。
|
|
664
|
+
- 如果 `city` 需要新的 agent 能力,先补到 `src/index.ts`,再由 `city` 消费。
|
|
665
|
+
- `packages/city/scripts/lint-import-boundaries.mjs` 会检查 city 不直接依赖 agent 内部子路径。
|
|
666
|
+
|
|
667
|
+
## 后续整理方向
|
|
668
|
+
|
|
669
|
+
当前 `packages/agent/src` 已按单 Agent 执行内核拆分,根入口也已改成显式公共 API 清单。后续推荐继续把跨包共享的基础类型集中到 `types/`:
|
|
670
|
+
|
|
671
|
+
```text
|
|
672
|
+
src
|
|
673
|
+
├── runtime/ # AgentRuntime / AgentContext / runtime state
|
|
674
|
+
├── project/ # 初始化、execution binding、项目准备
|
|
675
|
+
├── server/ # http / rpc / auth / routes
|
|
676
|
+
├── transport/ # agent client transport 协议
|
|
677
|
+
├── sdk/ # SDK facade
|
|
678
|
+
├── session/
|
|
679
|
+
├── service/
|
|
680
|
+
├── plugin/
|
|
681
|
+
├── sandbox/
|
|
682
|
+
├── model/
|
|
683
|
+
├── config/
|
|
684
|
+
├── types/ # 跨模块共享类型
|
|
685
|
+
└── utils/
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
迁移优先级:
|
|
689
|
+
|
|
690
|
+
1. 将跨模块共享类型继续集中到 `src/types/`,模块私有类型保留在本模块 `types/` 下。
|
|
691
|
+
2. 大模块超过 800-1000 行时继续按职责拆分。
|
|
219
692
|
|
|
220
693
|
## 维护约定
|
|
221
694
|
|
|
222
695
|
- 不要把多 Agent 管理逻辑写进这个包。
|
|
223
|
-
- 不要在 `city` 中复制 agent
|
|
224
|
-
- 上层产品优先从 `@downcity/agent` 根入口获取能力。
|
|
696
|
+
- 不要在 `city` 中复制 agent 的 session/service/plugin/sandbox 执行内核。
|
|
225
697
|
- `service/core` 和 `service/builtins` 必须保持边界清晰。
|
|
698
|
+
- `plugin/core` 和 `plugin/builtins` 必须保持边界清晰。
|
|
226
699
|
- `bin/` 是构建产物,不直接修改。
|