@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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 统一日志实现(控制台 + JSONL 落盘)。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 支持按项目根目录动态绑定日志目录。
|
|
6
|
+
* - 结构化字段写入 JSONL,便于后续检索与审计。
|
|
7
|
+
*/
|
|
8
|
+
import type { JsonObject } from "../../types/common/Json.js";
|
|
9
|
+
type LogDetails = {
|
|
10
|
+
[key: string]: JsonObject[keyof JsonObject] | undefined;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Unified runtime logger for Downcity.
|
|
14
|
+
*
|
|
15
|
+
* Design goals:
|
|
16
|
+
* - Provide a single logger interface usable by both:
|
|
17
|
+
* - system/runtime components (server, scheduler, tool executor, etc.)
|
|
18
|
+
* - agent/LLM execution (LLM request/response logging expects `logger.log(...)`)
|
|
19
|
+
* - Persist logs as JSONL to `.downcity/logs/<YYYY-MM-DD>.jsonl` (one line per entry).
|
|
20
|
+
* - Keep console output human-friendly, but make disk logs machine-friendly.
|
|
21
|
+
*
|
|
22
|
+
* Notes:
|
|
23
|
+
* - `log(level, ...)` is async because it may write to disk.
|
|
24
|
+
* - Convenience methods (`info/warn/...`) are sync and fire-and-forget.
|
|
25
|
+
* - A small in-memory ring buffer is kept for debugging, but persistence is append-only.
|
|
26
|
+
*/
|
|
27
|
+
export interface LogEntry {
|
|
28
|
+
id: string;
|
|
29
|
+
timestamp: string;
|
|
30
|
+
type: "info" | "warn" | "error" | "debug" | "action";
|
|
31
|
+
message: string;
|
|
32
|
+
details?: JsonObject;
|
|
33
|
+
duration?: number;
|
|
34
|
+
/** Back-compat: kept for older code that expects a `level` field. */
|
|
35
|
+
level?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Logger:项目级日志器。
|
|
39
|
+
*
|
|
40
|
+
* 关键职责(中文)
|
|
41
|
+
* - 控制台可读输出(开发期)
|
|
42
|
+
* - JSONL 持久化输出(排障 / 审计)
|
|
43
|
+
*/
|
|
44
|
+
export declare class Logger {
|
|
45
|
+
private logs;
|
|
46
|
+
private logLevel;
|
|
47
|
+
private writeChain;
|
|
48
|
+
private readonly maxInMemoryEntries;
|
|
49
|
+
private projectRoot;
|
|
50
|
+
constructor(logLevel?: string);
|
|
51
|
+
/**
|
|
52
|
+
* 绑定进程级 projectRoot。
|
|
53
|
+
*
|
|
54
|
+
* 关键点(中文)
|
|
55
|
+
* - 我们约束“一个进程只服务一个 projectRoot”。
|
|
56
|
+
* - Logger 作为单例存在,但落盘目录必须在启动入口初始化后才能确定。
|
|
57
|
+
* - 未绑定 projectRoot 时,只打印到 console,不写入 `.downcity/logs/*`。
|
|
58
|
+
*/
|
|
59
|
+
bindProjectRoot(projectRoot: string): void;
|
|
60
|
+
/**
|
|
61
|
+
* Generic async logger used by agent / LLM logging.
|
|
62
|
+
* Accepts `info|warn|error|debug|action` (case-insensitive).
|
|
63
|
+
*/
|
|
64
|
+
log(level: string, message: string, details?: LogDetails): Promise<void>;
|
|
65
|
+
info(message: string, details?: LogDetails): void;
|
|
66
|
+
warn(message: string, details?: LogDetails): void;
|
|
67
|
+
error(message: string, details?: LogDetails): void;
|
|
68
|
+
debug(message: string, details?: LogDetails): void;
|
|
69
|
+
action(message: string, details?: LogDetails): void;
|
|
70
|
+
private normalizeType;
|
|
71
|
+
/**
|
|
72
|
+
* 写入策略(中文)
|
|
73
|
+
* - 先写内存与控制台,再串行追加到 JSONL,避免并发写乱序。
|
|
74
|
+
*/
|
|
75
|
+
private emit;
|
|
76
|
+
private printLog;
|
|
77
|
+
/**
|
|
78
|
+
* 落盘算法(中文)
|
|
79
|
+
* - 日志按自然日分片:`.downcity/logs/YYYY-MM-DD.jsonl`。
|
|
80
|
+
* - 每条日志一行 JSON,便于 grep / 流式消费。
|
|
81
|
+
*/
|
|
82
|
+
private saveToFile;
|
|
83
|
+
private generateId;
|
|
84
|
+
saveAllLogs(): Promise<void>;
|
|
85
|
+
getLogs(): LogEntry[];
|
|
86
|
+
getLogsByType(type: LogEntry["type"]): LogEntry[];
|
|
87
|
+
getRecentLogs(count?: number): LogEntry[];
|
|
88
|
+
clearLogs(): void;
|
|
89
|
+
}
|
|
90
|
+
export declare const logger: Logger;
|
|
91
|
+
/**
|
|
92
|
+
* 获取统一 logger。
|
|
93
|
+
*
|
|
94
|
+
* 说明(中文)
|
|
95
|
+
* - 当前实现是“进程级单例 logger”(落盘路径依赖 runtime root)。
|
|
96
|
+
* - 参数保留是为了兼容上层调用习惯:有些代码会传入 projectRoot / logLevel。
|
|
97
|
+
* - 若未来需要“多实例 logger”,可以在这里集中改,不影响调用方。
|
|
98
|
+
*/
|
|
99
|
+
export declare function getLogger(_projectRoot?: string, _logLevel?: string): Logger;
|
|
100
|
+
export {};
|
|
101
|
+
//# sourceMappingURL=Logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger/Logger.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,KAAK,UAAU,GAAG;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,UAAU,CAAC,GAAG,SAAS,CAAC;CACzD,CAAC;AA+IF;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,qBAAa,MAAM;IACjB,OAAO,CAAC,IAAI,CAAkB;IAC9B,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,UAAU,CAAoC;IACtD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAQ;IAC3C,OAAO,CAAC,WAAW,CAAuB;gBAE9B,QAAQ,GAAE,MAAe;IAIrC;;;;;;;OAOG;IACH,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAK1C;;;OAGG;IACG,GAAG,CACP,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,UAAU,GACnB,OAAO,CAAC,IAAI,CAAC;IAKhB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI;IAIjD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI;IAIjD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI;IAIlD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI;IAIlD,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI;IAInD,OAAO,CAAC,aAAa;IAWrB;;;OAGG;YACW,IAAI;IA2BlB,OAAO,CAAC,QAAQ;IA2BhB;;;;OAIG;YACW,UAAU;IAWxB,OAAO,CAAC,UAAU;IAIZ,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAIlC,OAAO,IAAI,QAAQ,EAAE;IAIrB,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,QAAQ,EAAE;IAIjD,aAAa,CAAC,KAAK,GAAE,MAAW,GAAG,QAAQ,EAAE;IAI7C,SAAS,IAAI,IAAI;CAGlB;AAED,eAAO,MAAM,MAAM,QAAe,CAAC;AAEnC;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3E"}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 统一日志实现(控制台 + JSONL 落盘)。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 支持按项目根目录动态绑定日志目录。
|
|
6
|
+
* - 结构化字段写入 JSONL,便于后续检索与审计。
|
|
7
|
+
*/
|
|
8
|
+
import fs from "fs-extra";
|
|
9
|
+
import path from "path";
|
|
10
|
+
import { getLogsDirPath } from "../../config/Paths.js";
|
|
11
|
+
import { getTimestamp } from "../../utils/Time.js";
|
|
12
|
+
const ANSI_RESET = "\x1b[0m";
|
|
13
|
+
const ANSI_BOLD = "\x1b[1m";
|
|
14
|
+
const TASK_BRACKET_COLOR = "\x1b[95m"; // bright magenta
|
|
15
|
+
const ALLOWED_MESSAGE_LABELS = new Set([
|
|
16
|
+
"main",
|
|
17
|
+
"system",
|
|
18
|
+
"user",
|
|
19
|
+
"assistant",
|
|
20
|
+
"tool",
|
|
21
|
+
"tool_result",
|
|
22
|
+
"agent",
|
|
23
|
+
]);
|
|
24
|
+
const FIXED_BRACKET_COLORS = {
|
|
25
|
+
INFO: "\x1b[36m", // cyan
|
|
26
|
+
WARN: "\x1b[33m", // yellow
|
|
27
|
+
ERROR: "\x1b[31m", // red
|
|
28
|
+
DEBUG: "\x1b[90m", // gray
|
|
29
|
+
ACTION: "\x1b[96m", // bright cyan
|
|
30
|
+
SYSTEM: "\x1b[90m", // gray
|
|
31
|
+
USER: "\x1b[33m", // yellow
|
|
32
|
+
ASSISTANT: "\x1b[32m", // green
|
|
33
|
+
TOOL: "\x1b[95m", // bright magenta
|
|
34
|
+
TOOL_RESULT: "\x1b[34m", // blue
|
|
35
|
+
AGENT: "\x1b[36m", // cyan
|
|
36
|
+
MAIN: "\x1b[90m", // gray
|
|
37
|
+
};
|
|
38
|
+
const BRACKET_COLOR_PALETTE = [
|
|
39
|
+
"\x1b[36m", // cyan
|
|
40
|
+
"\x1b[32m", // green
|
|
41
|
+
"\x1b[35m", // magenta
|
|
42
|
+
"\x1b[34m", // blue
|
|
43
|
+
"\x1b[33m", // yellow
|
|
44
|
+
"\x1b[96m", // bright cyan
|
|
45
|
+
];
|
|
46
|
+
function normalizeLogDetails(details) {
|
|
47
|
+
if (!details)
|
|
48
|
+
return undefined;
|
|
49
|
+
const normalized = {};
|
|
50
|
+
for (const [key, value] of Object.entries(details)) {
|
|
51
|
+
if (value !== undefined) {
|
|
52
|
+
normalized[key] = value;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return Object.keys(normalized).length > 0 ? normalized : undefined;
|
|
56
|
+
}
|
|
57
|
+
function hashText(input) {
|
|
58
|
+
let hash = 0;
|
|
59
|
+
for (let index = 0; index < input.length; index += 1) {
|
|
60
|
+
hash = (hash * 31 + input.charCodeAt(index)) >>> 0;
|
|
61
|
+
}
|
|
62
|
+
return hash;
|
|
63
|
+
}
|
|
64
|
+
function colorizeBracketedPrefix(label) {
|
|
65
|
+
const normalized = String(label || "").trim().toUpperCase();
|
|
66
|
+
const baseLabel = normalized.split(/[.\s]+/)[0].replace(/[^A-Z0-9_]/g, "");
|
|
67
|
+
// 关键点(中文):task 日志标签使用固定高可见色,避免随机色导致辨识度不稳定。
|
|
68
|
+
if (normalized === "TASK") {
|
|
69
|
+
return `${TASK_BRACKET_COLOR}[${label}]${ANSI_RESET}`;
|
|
70
|
+
}
|
|
71
|
+
const fixedColor = FIXED_BRACKET_COLORS[normalized] || FIXED_BRACKET_COLORS[baseLabel];
|
|
72
|
+
if (fixedColor) {
|
|
73
|
+
return `${fixedColor}[${label}]${ANSI_RESET}`;
|
|
74
|
+
}
|
|
75
|
+
const color = BRACKET_COLOR_PALETTE[hashText(label) % BRACKET_COLOR_PALETTE.length];
|
|
76
|
+
return `${color}[${label}]${ANSI_RESET}`;
|
|
77
|
+
}
|
|
78
|
+
function colorizeMessageBracketPrefixes(message) {
|
|
79
|
+
// 关键点(中文):紧凑单行展示时,给消息中的标签 token 着色,正文保持原样。
|
|
80
|
+
return String(message || "").replace(/\[([^\]\n]+)\]/g, (full, label) => {
|
|
81
|
+
const normalized = String(label || "").trim();
|
|
82
|
+
const base = normalized
|
|
83
|
+
.toUpperCase()
|
|
84
|
+
.split(/[.\s:]+/)[0]
|
|
85
|
+
.replace(/[^A-Z0-9_]/g, "");
|
|
86
|
+
if (!base || !/[A-Z]/.test(base))
|
|
87
|
+
return full;
|
|
88
|
+
return colorizeBracketedPrefix(normalized);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* 压缩日志为“可分段的紧凑展示”。
|
|
93
|
+
*
|
|
94
|
+
* 关键点(中文)
|
|
95
|
+
* - 段内换行转义为字面量 `\n`,避免一条消息占多行。
|
|
96
|
+
* - 段与段之间保留真实换行,确保不同 message 可清晰区分。
|
|
97
|
+
*/
|
|
98
|
+
function compactMessageForConsole(message) {
|
|
99
|
+
const normalized = String(message || "").replace(/\r\n/g, "\n");
|
|
100
|
+
const blocks = normalized
|
|
101
|
+
.split(/\n{2,}/)
|
|
102
|
+
.map((block) => String(block || "").replace(/\n/g, "\\n").trim())
|
|
103
|
+
.filter(Boolean);
|
|
104
|
+
if (blocks.length === 0)
|
|
105
|
+
return "";
|
|
106
|
+
return blocks.join("\n");
|
|
107
|
+
}
|
|
108
|
+
function normalizeToAllowedMessageLabels(message) {
|
|
109
|
+
const normalizedLines = [];
|
|
110
|
+
let activeLabel = null;
|
|
111
|
+
for (const rawLine of String(message || "").split("\n")) {
|
|
112
|
+
const line = String(rawLine || "");
|
|
113
|
+
const trimmed = line.trim();
|
|
114
|
+
if (!trimmed) {
|
|
115
|
+
normalizedLines.push("");
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
const matched = trimmed.match(/^\[([^\]]+)\]\s*:?\s*(.*)$/);
|
|
119
|
+
if (matched) {
|
|
120
|
+
const rawLabel = String(matched[1] || "").trim();
|
|
121
|
+
const lowerLabel = rawLabel.toLowerCase();
|
|
122
|
+
const labelToken = lowerLabel.split(/\s+/)[0] || "";
|
|
123
|
+
const baseLabel = labelToken.split(".")[0];
|
|
124
|
+
const content = String(matched[2] || "").trim();
|
|
125
|
+
if (ALLOWED_MESSAGE_LABELS.has(baseLabel)) {
|
|
126
|
+
activeLabel = baseLabel;
|
|
127
|
+
const attrsRaw = rawLabel.slice(labelToken.length).trim();
|
|
128
|
+
const normalizedLabel = attrsRaw ? `${baseLabel} ${attrsRaw}` : baseLabel;
|
|
129
|
+
normalizedLines.push(`[${normalizedLabel}]${content ? ` ${content}` : ""}`);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
activeLabel = "main";
|
|
133
|
+
normalizedLines.push(`[main] ${content || trimmed}`);
|
|
134
|
+
}
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
if (activeLabel) {
|
|
138
|
+
// 关键点(中文):同一消息块的续行不重复打标签。
|
|
139
|
+
normalizedLines.push(line);
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
normalizedLines.push(`[main] ${trimmed}`);
|
|
143
|
+
}
|
|
144
|
+
if (normalizedLines.length === 0)
|
|
145
|
+
return "[main] -";
|
|
146
|
+
return normalizedLines.join("\n");
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Logger:项目级日志器。
|
|
150
|
+
*
|
|
151
|
+
* 关键职责(中文)
|
|
152
|
+
* - 控制台可读输出(开发期)
|
|
153
|
+
* - JSONL 持久化输出(排障 / 审计)
|
|
154
|
+
*/
|
|
155
|
+
export class Logger {
|
|
156
|
+
logs = [];
|
|
157
|
+
logLevel = "info";
|
|
158
|
+
writeChain = Promise.resolve();
|
|
159
|
+
maxInMemoryEntries = 2000;
|
|
160
|
+
projectRoot = null;
|
|
161
|
+
constructor(logLevel = "info") {
|
|
162
|
+
this.logLevel = logLevel;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* 绑定进程级 projectRoot。
|
|
166
|
+
*
|
|
167
|
+
* 关键点(中文)
|
|
168
|
+
* - 我们约束“一个进程只服务一个 projectRoot”。
|
|
169
|
+
* - Logger 作为单例存在,但落盘目录必须在启动入口初始化后才能确定。
|
|
170
|
+
* - 未绑定 projectRoot 时,只打印到 console,不写入 `.downcity/logs/*`。
|
|
171
|
+
*/
|
|
172
|
+
bindProjectRoot(projectRoot) {
|
|
173
|
+
const root = String(projectRoot || "").trim();
|
|
174
|
+
this.projectRoot = root || null;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Generic async logger used by agent / LLM logging.
|
|
178
|
+
* Accepts `info|warn|error|debug|action` (case-insensitive).
|
|
179
|
+
*/
|
|
180
|
+
async log(level, message, details) {
|
|
181
|
+
const type = this.normalizeType(level);
|
|
182
|
+
await this.emit(type, message, details);
|
|
183
|
+
}
|
|
184
|
+
info(message, details) {
|
|
185
|
+
void this.emit("info", message, details);
|
|
186
|
+
}
|
|
187
|
+
warn(message, details) {
|
|
188
|
+
void this.emit("warn", message, details);
|
|
189
|
+
}
|
|
190
|
+
error(message, details) {
|
|
191
|
+
void this.emit("error", message, details);
|
|
192
|
+
}
|
|
193
|
+
debug(message, details) {
|
|
194
|
+
void this.emit("debug", message, details);
|
|
195
|
+
}
|
|
196
|
+
action(message, details) {
|
|
197
|
+
void this.emit("action", message, details);
|
|
198
|
+
}
|
|
199
|
+
normalizeType(level) {
|
|
200
|
+
const s = String(level || "")
|
|
201
|
+
.trim()
|
|
202
|
+
.toLowerCase();
|
|
203
|
+
if (s === "warn" || s === "warning")
|
|
204
|
+
return "warn";
|
|
205
|
+
if (s === "error" || s === "err")
|
|
206
|
+
return "error";
|
|
207
|
+
if (s === "debug" || s === "trace")
|
|
208
|
+
return "debug";
|
|
209
|
+
if (s === "action")
|
|
210
|
+
return "action";
|
|
211
|
+
return "info";
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* 写入策略(中文)
|
|
215
|
+
* - 先写内存与控制台,再串行追加到 JSONL,避免并发写乱序。
|
|
216
|
+
*/
|
|
217
|
+
async emit(type, message, details) {
|
|
218
|
+
const entry = {
|
|
219
|
+
id: this.generateId(),
|
|
220
|
+
timestamp: getTimestamp(),
|
|
221
|
+
type,
|
|
222
|
+
message: normalizeToAllowedMessageLabels(message),
|
|
223
|
+
details: normalizeLogDetails(details),
|
|
224
|
+
level: type,
|
|
225
|
+
};
|
|
226
|
+
this.logs.push(entry);
|
|
227
|
+
if (this.logs.length > this.maxInMemoryEntries) {
|
|
228
|
+
this.logs.splice(0, this.logs.length - this.maxInMemoryEntries);
|
|
229
|
+
}
|
|
230
|
+
this.printLog(entry);
|
|
231
|
+
this.writeChain = this.writeChain
|
|
232
|
+
.catch(() => { })
|
|
233
|
+
.then(() => this.saveToFile(entry))
|
|
234
|
+
.catch(() => { });
|
|
235
|
+
await this.writeChain;
|
|
236
|
+
}
|
|
237
|
+
printLog(entry) {
|
|
238
|
+
// 关键点(中文):控制台输出不展示前置时间戳,减少聊天链路日志噪音。
|
|
239
|
+
// 时间信息仍保存在 JSONL 落盘字段 `timestamp` 中。
|
|
240
|
+
const compactBody = compactMessageForConsole(entry.message);
|
|
241
|
+
const body = colorizeMessageBracketPrefixes(compactBody);
|
|
242
|
+
const message = body;
|
|
243
|
+
switch (entry.type) {
|
|
244
|
+
case "error":
|
|
245
|
+
console.error(message);
|
|
246
|
+
break;
|
|
247
|
+
case "warn":
|
|
248
|
+
console.warn(message);
|
|
249
|
+
break;
|
|
250
|
+
case "debug":
|
|
251
|
+
if (this.logLevel === "debug") {
|
|
252
|
+
console.log(message);
|
|
253
|
+
}
|
|
254
|
+
break;
|
|
255
|
+
case "action":
|
|
256
|
+
console.log(message);
|
|
257
|
+
break;
|
|
258
|
+
default:
|
|
259
|
+
console.log(message);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* 落盘算法(中文)
|
|
264
|
+
* - 日志按自然日分片:`.downcity/logs/YYYY-MM-DD.jsonl`。
|
|
265
|
+
* - 每条日志一行 JSON,便于 grep / 流式消费。
|
|
266
|
+
*/
|
|
267
|
+
async saveToFile(entry) {
|
|
268
|
+
if (!this.projectRoot)
|
|
269
|
+
return;
|
|
270
|
+
const logsDir = getLogsDirPath(this.projectRoot);
|
|
271
|
+
const date = String(entry.timestamp || "").slice(0, 10) || new Date().toISOString().slice(0, 10);
|
|
272
|
+
const logFile = path.join(logsDir, `${date}.jsonl`);
|
|
273
|
+
const logLine = JSON.stringify(entry) + "\n";
|
|
274
|
+
await fs.ensureDir(logsDir);
|
|
275
|
+
await fs.appendFile(logFile, logLine);
|
|
276
|
+
}
|
|
277
|
+
generateId() {
|
|
278
|
+
return Date.now().toString(36) + Math.random().toString(36).slice(2, 8);
|
|
279
|
+
}
|
|
280
|
+
async saveAllLogs() {
|
|
281
|
+
await this.writeChain.catch(() => { });
|
|
282
|
+
}
|
|
283
|
+
getLogs() {
|
|
284
|
+
return this.logs;
|
|
285
|
+
}
|
|
286
|
+
getLogsByType(type) {
|
|
287
|
+
return this.logs.filter((log) => log.type === type);
|
|
288
|
+
}
|
|
289
|
+
getRecentLogs(count = 10) {
|
|
290
|
+
return this.logs.slice(-count);
|
|
291
|
+
}
|
|
292
|
+
clearLogs() {
|
|
293
|
+
this.logs = [];
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
export const logger = new Logger();
|
|
297
|
+
/**
|
|
298
|
+
* 获取统一 logger。
|
|
299
|
+
*
|
|
300
|
+
* 说明(中文)
|
|
301
|
+
* - 当前实现是“进程级单例 logger”(落盘路径依赖 runtime root)。
|
|
302
|
+
* - 参数保留是为了兼容上层调用习惯:有些代码会传入 projectRoot / logLevel。
|
|
303
|
+
* - 若未来需要“多实例 logger”,可以在这里集中改,不影响调用方。
|
|
304
|
+
*/
|
|
305
|
+
export function getLogger(_projectRoot, _logLevel) {
|
|
306
|
+
return logger;
|
|
307
|
+
}
|
|
308
|
+
//# sourceMappingURL=Logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../src/utils/logger/Logger.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { JsonValue } from "../../types/common/Json.js";
|
|
2
|
+
export declare function ensureDir(dir: string): Promise<void>;
|
|
3
|
+
export declare function saveJson(filePath: string, data: JsonValue | object): Promise<void>;
|
|
4
|
+
export declare function loadJson<T>(filePath: string): Promise<T | null>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/storage/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI1D;AAED,wBAAsB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAExF;AAED,wBAAsB,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAKrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/storage/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,MAAM,UAAU,CAAC;AAG1B,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,GAAW;IACzC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,QAAgB,EAAE,IAAwB;IACvE,MAAM,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAI,QAAgB;IAChD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAe,CAAC;AAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@downcity/agent",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Downcity Agent 运行时 — 执行壳,通过 RPC/HTTP 调用 City 的能力",
|
|
6
6
|
"main": "./bin/index.js",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"typescript": "^5.7.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
|
-
"build": "
|
|
47
|
-
"dev": "
|
|
48
|
-
"typecheck": "
|
|
46
|
+
"build": "node scripts/agent-compiler.mjs build",
|
|
47
|
+
"dev": "node scripts/agent-compiler.mjs dev",
|
|
48
|
+
"typecheck": "node scripts/agent-compiler.mjs typecheck"
|
|
49
49
|
}
|
|
50
50
|
}
|