@downcity/agent 1.1.8 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1879) hide show
  1. package/bin/agent/AgentContext.js +1 -1
  2. package/bin/agent/AgentContext.js.map +1 -1
  3. package/bin/agent/AgentContextTypes.d.ts +7 -7
  4. package/bin/agent/AgentContextTypes.d.ts.map +1 -1
  5. package/bin/agent/AgentRuntime.d.ts +1 -1
  6. package/bin/agent/AgentRuntime.d.ts.map +1 -1
  7. package/bin/agent/AgentRuntime.js +2 -2
  8. package/bin/agent/AgentRuntime.js.map +1 -1
  9. package/bin/agent/AgentRuntimeState.d.ts +1 -1
  10. package/bin/agent/AgentRuntimeTypes.d.ts +3 -3
  11. package/bin/agent/AgentRuntimeTypes.d.ts.map +1 -1
  12. package/bin/agent/project/AgentInitializer.d.ts +2 -2
  13. package/bin/agent/project/AgentInitializer.d.ts.map +1 -1
  14. package/bin/agent/project/AgentInitializer.js +45 -4
  15. package/bin/agent/project/AgentInitializer.js.map +1 -1
  16. package/bin/agent/project/ProjectExecutionBinding.d.ts +2 -2
  17. package/bin/agent/project/types/AgentProject.d.ts +80 -0
  18. package/bin/agent/project/types/AgentProject.d.ts.map +1 -0
  19. package/bin/agent/project/types/AgentProject.js.map +1 -0
  20. package/bin/config/Config.d.ts +1 -1
  21. package/bin/config/DowncityDefault.d.ts +3 -0
  22. package/bin/config/DowncityDefault.d.ts.map +1 -0
  23. package/bin/config/DowncityDefault.js.map +1 -0
  24. package/bin/config/DowncitySchema.d.ts +3 -0
  25. package/bin/config/DowncitySchema.d.ts.map +1 -0
  26. package/bin/config/DowncitySchema.js.map +1 -0
  27. package/bin/config/types/DowncityConfig.d.ts +214 -0
  28. package/bin/config/types/DowncityConfig.d.ts.map +1 -0
  29. package/bin/config/types/DowncityConfig.js.map +1 -0
  30. package/bin/config/types/ExecutionBinding.d.ts.map +1 -0
  31. package/bin/config/types/ExecutionBinding.js.map +1 -0
  32. package/bin/config/types/LlmConfig.d.ts.map +1 -0
  33. package/bin/config/types/LlmConfig.js.map +1 -0
  34. package/bin/config/types/ModelBinding.d.ts.map +1 -0
  35. package/bin/config/types/ModelBinding.js.map +1 -0
  36. package/bin/config/types/Start.d.ts.map +1 -0
  37. package/bin/config/types/Start.js.map +1 -0
  38. package/bin/host/daemon/Api.d.ts +1 -1
  39. package/bin/host/daemon/Api.d.ts.map +1 -1
  40. package/bin/host/daemon/Client.js +1 -1
  41. package/bin/host/daemon/Client.js.map +1 -1
  42. package/bin/host/daemon/Manager.d.ts +1 -1
  43. package/bin/host/daemon/Manager.d.ts.map +1 -1
  44. package/bin/host/daemon/Manager.js +1 -1
  45. package/bin/host/daemon/Manager.js.map +1 -1
  46. package/bin/host/daemon/ProjectSetup.d.ts +1 -1
  47. package/bin/host/daemon/ProjectSetup.d.ts.map +1 -1
  48. package/bin/host/daemon/types/Daemon.d.ts.map +1 -0
  49. package/bin/host/daemon/types/Daemon.js.map +1 -0
  50. package/bin/host/http/Server.d.ts.map +1 -0
  51. package/bin/host/http/Server.js +112 -0
  52. package/bin/host/http/Server.js.map +1 -0
  53. package/bin/host/http/auth/AuthEnv.d.ts.map +1 -0
  54. package/bin/host/http/auth/AuthEnv.js.map +1 -0
  55. package/bin/host/http/auth/AuthError.d.ts.map +1 -0
  56. package/bin/host/http/auth/AuthError.js.map +1 -0
  57. package/bin/host/http/auth/CliAuthStateStore.d.ts.map +1 -0
  58. package/bin/host/http/auth/CliAuthStateStore.js.map +1 -0
  59. package/bin/host/http/auth/PasswordHasher.d.ts.map +1 -0
  60. package/bin/host/http/auth/PasswordHasher.js.map +1 -0
  61. package/bin/host/http/auth/TokenService.d.ts.map +1 -0
  62. package/bin/host/http/auth/TokenService.js.map +1 -0
  63. package/bin/host/http/auth/types/AuthPermission.d.ts.map +1 -0
  64. package/bin/host/http/auth/types/AuthPermission.js.map +1 -0
  65. package/bin/host/http/auth/types/AuthRoute.d.ts.map +1 -0
  66. package/bin/host/http/auth/types/AuthRoute.js.map +1 -0
  67. package/bin/host/http/auth/types/AuthToken.d.ts.map +1 -0
  68. package/bin/host/http/auth/types/AuthToken.js.map +1 -0
  69. package/bin/host/http/auth/types/AuthTypes.d.ts.map +1 -0
  70. package/bin/host/http/auth/types/AuthTypes.js.map +1 -0
  71. package/bin/host/http/control/AuthControlService.d.ts +30 -0
  72. package/bin/host/http/control/AuthControlService.d.ts.map +1 -0
  73. package/bin/host/http/control/AuthControlService.js +120 -0
  74. package/bin/host/http/control/AuthControlService.js.map +1 -0
  75. package/bin/host/http/control/CommonHelpers.d.ts.map +1 -0
  76. package/bin/host/http/control/CommonHelpers.js.map +1 -0
  77. package/bin/host/http/control/ControlApiRoutes.d.ts +14 -0
  78. package/bin/host/http/control/ControlApiRoutes.d.ts.map +1 -0
  79. package/bin/host/http/control/ControlApiRoutes.js +27 -0
  80. package/bin/host/http/control/ControlApiRoutes.js.map +1 -0
  81. package/bin/host/http/control/ControlAuthorizationRoutes.d.ts +17 -0
  82. package/bin/host/http/control/ControlAuthorizationRoutes.d.ts.map +1 -0
  83. package/bin/host/http/control/ControlAuthorizationRoutes.js +85 -0
  84. package/bin/host/http/control/ControlAuthorizationRoutes.js.map +1 -0
  85. package/bin/host/http/control/ControlRouter.d.ts +19 -0
  86. package/bin/host/http/control/ControlRouter.d.ts.map +1 -0
  87. package/bin/host/http/control/ControlRouter.js +26 -0
  88. package/bin/host/http/control/ControlRouter.js.map +1 -0
  89. package/bin/host/http/control/ExecuteBySession.d.ts +39 -0
  90. package/bin/host/http/control/ExecuteBySession.d.ts.map +1 -0
  91. package/bin/host/http/control/ExecuteBySession.js +128 -0
  92. package/bin/host/http/control/ExecuteBySession.js.map +1 -0
  93. package/bin/host/http/control/ExecuteInput.d.ts +18 -0
  94. package/bin/host/http/control/ExecuteInput.d.ts.map +1 -0
  95. package/bin/host/http/control/ExecuteInput.js +201 -0
  96. package/bin/host/http/control/ExecuteInput.js.map +1 -0
  97. package/bin/host/http/control/Helpers.d.ts.map +1 -0
  98. package/bin/host/http/control/Helpers.js.map +1 -0
  99. package/bin/host/http/control/MessageTimeline.d.ts +22 -0
  100. package/bin/host/http/control/MessageTimeline.d.ts.map +1 -0
  101. package/bin/host/http/control/MessageTimeline.js +226 -0
  102. package/bin/host/http/control/MessageTimeline.js.map +1 -0
  103. package/bin/host/http/control/ModelRoutes.d.ts +13 -0
  104. package/bin/host/http/control/ModelRoutes.d.ts.map +1 -0
  105. package/bin/host/http/control/ModelRoutes.js +87 -0
  106. package/bin/host/http/control/ModelRoutes.js.map +1 -0
  107. package/bin/host/http/control/OverviewRoutes.d.ts +13 -0
  108. package/bin/host/http/control/OverviewRoutes.d.ts.map +1 -0
  109. package/bin/host/http/control/OverviewRoutes.js +93 -0
  110. package/bin/host/http/control/OverviewRoutes.js.map +1 -0
  111. package/bin/host/http/control/SessionRoutes.d.ts +14 -0
  112. package/bin/host/http/control/SessionRoutes.d.ts.map +1 -0
  113. package/bin/host/http/control/SessionRoutes.js +333 -0
  114. package/bin/host/http/control/SessionRoutes.js.map +1 -0
  115. package/bin/host/http/control/SessionSummaryStore.d.ts +19 -0
  116. package/bin/host/http/control/SessionSummaryStore.d.ts.map +1 -0
  117. package/bin/host/http/control/SessionSummaryStore.js +62 -0
  118. package/bin/host/http/control/SessionSummaryStore.js.map +1 -0
  119. package/bin/host/http/control/TaskRoutes.d.ts +13 -0
  120. package/bin/host/http/control/TaskRoutes.d.ts.map +1 -0
  121. package/bin/host/http/control/TaskRoutes.js +335 -0
  122. package/bin/host/http/control/TaskRoutes.js.map +1 -0
  123. package/bin/host/http/control/TaskStore.d.ts +33 -0
  124. package/bin/host/http/control/TaskStore.d.ts.map +1 -0
  125. package/bin/host/http/control/TaskStore.js +157 -0
  126. package/bin/host/http/control/TaskStore.js.map +1 -0
  127. package/bin/host/http/control/types/AuthControl.d.ts +30 -0
  128. package/bin/host/http/control/types/AuthControl.d.ts.map +1 -0
  129. package/bin/host/http/control/types/AuthControl.js.map +1 -0
  130. package/bin/host/http/control/types/ControlRoutes.d.ts +28 -0
  131. package/bin/host/http/control/types/ControlRoutes.d.ts.map +1 -0
  132. package/bin/host/http/control/types/ControlRoutes.js.map +1 -0
  133. package/bin/host/http/control/types/ControlSessionExecute.d.ts.map +1 -0
  134. package/bin/host/http/control/types/ControlSessionExecute.js.map +1 -0
  135. package/bin/host/http/control/types/ControlViewData.d.ts +320 -0
  136. package/bin/host/http/control/types/ControlViewData.d.ts.map +1 -0
  137. package/bin/host/http/control/types/ControlViewData.js.map +1 -0
  138. package/bin/host/http/execute/execute.d.ts.map +1 -0
  139. package/bin/host/http/execute/execute.js +90 -0
  140. package/bin/host/http/execute/execute.js.map +1 -0
  141. package/bin/host/http/execute/types/InlineInstant.d.ts.map +1 -0
  142. package/bin/host/http/execute/types/InlineInstant.js.map +1 -0
  143. package/bin/host/http/health/health.d.ts.map +1 -0
  144. package/bin/host/http/health/health.js.map +1 -0
  145. package/bin/host/http/plugins/plugins.d.ts.map +1 -0
  146. package/bin/host/http/plugins/plugins.js +55 -0
  147. package/bin/host/http/plugins/plugins.js.map +1 -0
  148. package/bin/host/http/services/services.d.ts.map +1 -0
  149. package/bin/host/http/services/services.js +79 -0
  150. package/bin/host/http/services/services.js.map +1 -0
  151. package/bin/host/http/static/static.d.ts.map +1 -0
  152. package/bin/host/http/static/static.js +97 -0
  153. package/bin/host/http/static/static.js.map +1 -0
  154. package/bin/host/rpc/Server.d.ts +1 -1
  155. package/bin/host/rpc/Server.d.ts.map +1 -1
  156. package/bin/host/rpc/Server.js +1 -1
  157. package/bin/host/rpc/Server.js.map +1 -1
  158. package/bin/host/rpc/types/LocalRpc.d.ts +69 -0
  159. package/bin/host/rpc/types/LocalRpc.d.ts.map +1 -0
  160. package/bin/host/rpc/types/LocalRpc.js.map +1 -0
  161. package/bin/host/runtime/AgentHostRuntime.d.ts +1 -1
  162. package/bin/host/runtime/AgentHostRuntime.d.ts.map +1 -1
  163. package/bin/host/runtime/AgentHostRuntime.js +1 -1
  164. package/bin/host/runtime/AgentHostRuntime.js.map +1 -1
  165. package/bin/host/runtime/CityRegistry.d.ts +1 -1
  166. package/bin/host/runtime/CityRegistry.d.ts.map +1 -1
  167. package/bin/host/runtime/types/Platform.d.ts.map +1 -0
  168. package/bin/host/runtime/types/Platform.js.map +1 -0
  169. package/bin/host/runtime/types/PlatformGateway.d.ts.map +1 -0
  170. package/bin/host/runtime/types/PlatformGateway.js.map +1 -0
  171. package/bin/host/sdk/Agent.d.ts +1 -1
  172. package/bin/host/sdk/Agent.js +4 -4
  173. package/bin/host/sdk/Agent.js.map +1 -1
  174. package/bin/host/sdk/AgentSdkTypes.d.ts +4 -4
  175. package/bin/host/sdk/AgentSdkTypes.d.ts.map +1 -1
  176. package/bin/host/sdk/RemoteAgent.d.ts +1 -1
  177. package/bin/host/sdk/Session.d.ts +1 -1
  178. package/bin/host/sdk/SessionMetadata.d.ts +1 -1
  179. package/bin/host/types/AgentHost.d.ts +188 -0
  180. package/bin/host/types/AgentHost.d.ts.map +1 -0
  181. package/bin/host/types/AgentHost.js.map +1 -0
  182. package/bin/host/types/Store.d.ts +408 -0
  183. package/bin/host/types/Store.d.ts.map +1 -0
  184. package/bin/host/types/Store.js.map +1 -0
  185. package/bin/index.d.ts +53 -53
  186. package/bin/index.d.ts.map +1 -1
  187. package/bin/index.js +51 -51
  188. package/bin/index.js.map +1 -1
  189. package/bin/model/CreateModel.d.ts +2 -2
  190. package/bin/model/CreateModel.d.ts.map +1 -1
  191. package/bin/model/CreateModel.js +2 -2
  192. package/bin/model/CreateModel.js.map +1 -1
  193. package/bin/model/ModelManager.d.ts +1 -1
  194. package/bin/plugin/builtins/asr/Dependency.d.ts +77 -0
  195. package/bin/plugin/builtins/asr/Dependency.d.ts.map +1 -0
  196. package/bin/plugin/builtins/asr/Dependency.js +238 -0
  197. package/bin/plugin/builtins/asr/Dependency.js.map +1 -0
  198. package/bin/plugin/builtins/asr/ModelCatalog.d.ts.map +1 -0
  199. package/bin/plugin/builtins/asr/ModelCatalog.js +25 -0
  200. package/bin/plugin/builtins/asr/ModelCatalog.js.map +1 -0
  201. package/bin/plugin/builtins/asr/Plugin.d.ts +14 -0
  202. package/bin/plugin/builtins/asr/Plugin.d.ts.map +1 -0
  203. package/bin/plugin/builtins/asr/Plugin.js +585 -0
  204. package/bin/plugin/builtins/asr/Plugin.js.map +1 -0
  205. package/bin/plugin/builtins/auth/Plugin.d.ts +14 -0
  206. package/bin/plugin/builtins/auth/Plugin.d.ts.map +1 -0
  207. package/bin/plugin/builtins/auth/Plugin.js +181 -0
  208. package/bin/plugin/builtins/auth/Plugin.js.map +1 -0
  209. package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.d.ts +41 -0
  210. package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.d.ts.map +1 -0
  211. package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.js +187 -0
  212. package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.js.map +1 -0
  213. package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.d.ts +30 -0
  214. package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.d.ts.map +1 -0
  215. package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.js +123 -0
  216. package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.js.map +1 -0
  217. package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts +29 -0
  218. package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts.map +1 -0
  219. package/bin/plugin/builtins/auth/runtime/AuthorizationStore.js.map +1 -0
  220. package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts +407 -0
  221. package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts.map +1 -0
  222. package/bin/plugin/builtins/auth/types/AuthPlugin.js +115 -0
  223. package/bin/plugin/builtins/auth/types/AuthPlugin.js.map +1 -0
  224. package/bin/plugin/builtins/skill/Action.d.ts +34 -0
  225. package/bin/plugin/builtins/skill/Action.d.ts.map +1 -0
  226. package/bin/plugin/builtins/skill/Action.js +122 -0
  227. package/bin/plugin/builtins/skill/Action.js.map +1 -0
  228. package/bin/plugin/builtins/skill/Command.d.ts.map +1 -0
  229. package/bin/plugin/builtins/skill/Command.js +70 -0
  230. package/bin/plugin/builtins/skill/Command.js.map +1 -0
  231. package/bin/plugin/builtins/skill/Config.d.ts +18 -0
  232. package/bin/plugin/builtins/skill/Config.d.ts.map +1 -0
  233. package/bin/plugin/builtins/skill/Config.js.map +1 -0
  234. package/bin/plugin/builtins/skill/PROMPT.d.ts +7 -0
  235. package/bin/plugin/builtins/skill/PROMPT.d.ts.map +1 -0
  236. package/bin/plugin/builtins/skill/PROMPT.js +8 -0
  237. package/bin/plugin/builtins/skill/PROMPT.js.map +1 -0
  238. package/bin/plugin/builtins/skill/Plugin.d.ts +14 -0
  239. package/bin/plugin/builtins/skill/Plugin.d.ts.map +1 -0
  240. package/bin/plugin/builtins/skill/Plugin.js +301 -0
  241. package/bin/plugin/builtins/skill/Plugin.js.map +1 -0
  242. package/bin/plugin/builtins/skill/SkillPromptAssets.d.ts +12 -0
  243. package/bin/plugin/builtins/skill/SkillPromptAssets.d.ts.map +1 -0
  244. package/bin/plugin/builtins/skill/SkillPromptAssets.js +13 -0
  245. package/bin/plugin/builtins/skill/SkillPromptAssets.js.map +1 -0
  246. package/bin/plugin/builtins/skill/runtime/Discovery.d.ts +25 -0
  247. package/bin/plugin/builtins/skill/runtime/Discovery.d.ts.map +1 -0
  248. package/bin/plugin/builtins/skill/runtime/Discovery.js.map +1 -0
  249. package/bin/plugin/builtins/skill/runtime/Frontmatter.d.ts.map +1 -0
  250. package/bin/plugin/builtins/skill/runtime/Frontmatter.js.map +1 -0
  251. package/bin/plugin/builtins/skill/runtime/Paths.d.ts +16 -0
  252. package/bin/plugin/builtins/skill/runtime/Paths.d.ts.map +1 -0
  253. package/bin/plugin/builtins/skill/runtime/Paths.js.map +1 -0
  254. package/bin/plugin/builtins/skill/runtime/Prompt.d.ts +19 -0
  255. package/bin/plugin/builtins/skill/runtime/Prompt.d.ts.map +1 -0
  256. package/bin/plugin/builtins/skill/runtime/Prompt.js +54 -0
  257. package/bin/plugin/builtins/skill/runtime/Prompt.js.map +1 -0
  258. package/bin/plugin/builtins/skill/runtime/Store.d.ts +25 -0
  259. package/bin/plugin/builtins/skill/runtime/Store.d.ts.map +1 -0
  260. package/bin/plugin/builtins/skill/runtime/Store.js.map +1 -0
  261. package/bin/plugin/builtins/skill/runtime/SystemProvider.d.ts +24 -0
  262. package/bin/plugin/builtins/skill/runtime/SystemProvider.d.ts.map +1 -0
  263. package/bin/plugin/builtins/skill/runtime/SystemProvider.js +33 -0
  264. package/bin/plugin/builtins/skill/runtime/SystemProvider.js.map +1 -0
  265. package/bin/plugin/builtins/skill/runtime/Types.d.ts +21 -0
  266. package/bin/plugin/builtins/skill/runtime/Types.d.ts.map +1 -0
  267. package/bin/plugin/builtins/skill/runtime/Types.js.map +1 -0
  268. package/bin/plugin/builtins/skill/runtime/Utils.d.ts.map +1 -0
  269. package/bin/plugin/builtins/skill/runtime/Utils.js.map +1 -0
  270. package/bin/plugin/builtins/skill/types/ClaudeSkill.d.ts +63 -0
  271. package/bin/plugin/builtins/skill/types/ClaudeSkill.d.ts.map +1 -0
  272. package/bin/plugin/builtins/skill/types/ClaudeSkill.js.map +1 -0
  273. package/bin/plugin/builtins/skill/types/SkillCommand.d.ts.map +1 -0
  274. package/bin/plugin/builtins/skill/types/SkillCommand.js.map +1 -0
  275. package/bin/plugin/builtins/skill/types/SkillPlugin.d.ts.map +1 -0
  276. package/bin/plugin/builtins/skill/types/SkillPlugin.js.map +1 -0
  277. package/bin/plugin/builtins/skill/types/SkillRoot.d.ts.map +1 -0
  278. package/bin/plugin/builtins/skill/types/SkillRoot.js.map +1 -0
  279. package/bin/plugin/builtins/tts/Dependency.d.ts +90 -0
  280. package/bin/plugin/builtins/tts/Dependency.d.ts.map +1 -0
  281. package/bin/plugin/builtins/tts/Dependency.js +344 -0
  282. package/bin/plugin/builtins/tts/Dependency.js.map +1 -0
  283. package/bin/plugin/builtins/tts/Plugin.d.ts +13 -0
  284. package/bin/plugin/builtins/tts/Plugin.d.ts.map +1 -0
  285. package/bin/plugin/builtins/tts/Plugin.js +523 -0
  286. package/bin/plugin/builtins/tts/Plugin.js.map +1 -0
  287. package/bin/plugin/builtins/tts/runtime/Catalog.d.ts +21 -0
  288. package/bin/plugin/builtins/tts/runtime/Catalog.d.ts.map +1 -0
  289. package/bin/plugin/builtins/tts/runtime/Catalog.js.map +1 -0
  290. package/bin/plugin/builtins/tts/runtime/DependencyInstaller.d.ts +143 -0
  291. package/bin/plugin/builtins/tts/runtime/DependencyInstaller.d.ts.map +1 -0
  292. package/bin/plugin/builtins/tts/runtime/DependencyInstaller.js.map +1 -0
  293. package/bin/plugin/builtins/tts/runtime/Installer.d.ts +89 -0
  294. package/bin/plugin/builtins/tts/runtime/Installer.d.ts.map +1 -0
  295. package/bin/plugin/builtins/tts/runtime/Installer.js.map +1 -0
  296. package/bin/plugin/builtins/tts/runtime/Paths.d.ts.map +1 -0
  297. package/bin/plugin/builtins/tts/runtime/Paths.js.map +1 -0
  298. package/bin/plugin/builtins/tts/runtime/Synthesizer.d.ts +44 -0
  299. package/bin/plugin/builtins/tts/runtime/Synthesizer.d.ts.map +1 -0
  300. package/bin/plugin/builtins/tts/runtime/Synthesizer.js +363 -0
  301. package/bin/plugin/builtins/tts/runtime/Synthesizer.js.map +1 -0
  302. package/bin/plugin/builtins/tts/types/Tts.d.ts.map +1 -0
  303. package/bin/plugin/builtins/tts/types/Tts.js.map +1 -0
  304. package/bin/plugin/builtins/tts/types/TtsPlugin.d.ts +161 -0
  305. package/bin/plugin/builtins/tts/types/TtsPlugin.d.ts.map +1 -0
  306. package/bin/plugin/builtins/tts/types/TtsPlugin.js.map +1 -0
  307. package/bin/plugin/builtins/voice/Dependency.d.ts +77 -0
  308. package/bin/plugin/builtins/voice/Dependency.d.ts.map +1 -0
  309. package/bin/plugin/builtins/voice/Dependency.js +237 -0
  310. package/bin/plugin/builtins/voice/Dependency.js.map +1 -0
  311. package/bin/plugin/builtins/voice/ModelCatalog.d.ts.map +1 -0
  312. package/bin/plugin/builtins/voice/ModelCatalog.js +25 -0
  313. package/bin/plugin/builtins/voice/ModelCatalog.js.map +1 -0
  314. package/bin/plugin/builtins/voice/Plugin.d.ts +14 -0
  315. package/bin/plugin/builtins/voice/Plugin.d.ts.map +1 -0
  316. package/bin/plugin/builtins/voice/Plugin.js +546 -0
  317. package/bin/plugin/builtins/voice/Plugin.js.map +1 -0
  318. package/bin/plugin/builtins/voice/runtime/Catalog.d.ts +18 -0
  319. package/bin/plugin/builtins/voice/runtime/Catalog.d.ts.map +1 -0
  320. package/bin/plugin/builtins/voice/runtime/Catalog.js.map +1 -0
  321. package/bin/plugin/builtins/voice/runtime/DependencyInstaller.d.ts +145 -0
  322. package/bin/plugin/builtins/voice/runtime/DependencyInstaller.d.ts.map +1 -0
  323. package/bin/plugin/builtins/voice/runtime/DependencyInstaller.js.map +1 -0
  324. package/bin/plugin/builtins/voice/runtime/Installer.d.ts +94 -0
  325. package/bin/plugin/builtins/voice/runtime/Installer.d.ts.map +1 -0
  326. package/bin/plugin/builtins/voice/runtime/Installer.js.map +1 -0
  327. package/bin/plugin/builtins/voice/runtime/Paths.d.ts.map +1 -0
  328. package/bin/plugin/builtins/voice/runtime/Paths.js.map +1 -0
  329. package/bin/plugin/builtins/voice/runtime/Transcriber.d.ts +57 -0
  330. package/bin/plugin/builtins/voice/runtime/Transcriber.d.ts.map +1 -0
  331. package/bin/plugin/builtins/voice/runtime/Transcriber.js.map +1 -0
  332. package/bin/plugin/builtins/voice/types/Voice.d.ts.map +1 -0
  333. package/bin/plugin/builtins/voice/types/Voice.js.map +1 -0
  334. package/bin/plugin/builtins/voice/types/VoicePlugin.d.ts +190 -0
  335. package/bin/plugin/builtins/voice/types/VoicePlugin.d.ts.map +1 -0
  336. package/bin/plugin/builtins/voice/types/VoicePlugin.js.map +1 -0
  337. package/bin/plugin/builtins/web/Dependency.d.ts +10 -0
  338. package/bin/plugin/builtins/web/Dependency.d.ts.map +1 -0
  339. package/bin/plugin/builtins/web/Dependency.js +10 -0
  340. package/bin/plugin/builtins/web/Dependency.js.map +1 -0
  341. package/bin/plugin/builtins/web/PROMPT.agent-browser.d.ts +7 -0
  342. package/bin/plugin/builtins/web/PROMPT.agent-browser.d.ts.map +1 -0
  343. package/bin/plugin/builtins/web/PROMPT.agent-browser.js +8 -0
  344. package/bin/plugin/builtins/web/PROMPT.agent-browser.js.map +1 -0
  345. package/bin/plugin/builtins/web/PROMPT.d.ts +7 -0
  346. package/bin/plugin/builtins/web/PROMPT.d.ts.map +1 -0
  347. package/bin/plugin/builtins/web/PROMPT.js +8 -0
  348. package/bin/plugin/builtins/web/PROMPT.js.map +1 -0
  349. package/bin/plugin/builtins/web/PROMPT.web-access.d.ts +7 -0
  350. package/bin/plugin/builtins/web/PROMPT.web-access.d.ts.map +1 -0
  351. package/bin/plugin/builtins/web/PROMPT.web-access.js +8 -0
  352. package/bin/plugin/builtins/web/PROMPT.web-access.js.map +1 -0
  353. package/bin/plugin/builtins/web/Plugin.d.ts +13 -0
  354. package/bin/plugin/builtins/web/Plugin.d.ts.map +1 -0
  355. package/bin/plugin/builtins/web/Plugin.js +459 -0
  356. package/bin/plugin/builtins/web/Plugin.js.map +1 -0
  357. package/bin/plugin/builtins/web/WebPromptAssets.d.ts +20 -0
  358. package/bin/plugin/builtins/web/WebPromptAssets.d.ts.map +1 -0
  359. package/bin/plugin/builtins/web/WebPromptAssets.js +23 -0
  360. package/bin/plugin/builtins/web/WebPromptAssets.js.map +1 -0
  361. package/bin/plugin/builtins/web/runtime/Config.d.ts +21 -0
  362. package/bin/plugin/builtins/web/runtime/Config.d.ts.map +1 -0
  363. package/bin/plugin/builtins/web/runtime/Config.js +79 -0
  364. package/bin/plugin/builtins/web/runtime/Config.js.map +1 -0
  365. package/bin/plugin/builtins/web/runtime/Source.d.ts +29 -0
  366. package/bin/plugin/builtins/web/runtime/Source.d.ts.map +1 -0
  367. package/bin/plugin/builtins/web/runtime/Source.js +209 -0
  368. package/bin/plugin/builtins/web/runtime/Source.js.map +1 -0
  369. package/bin/plugin/builtins/web/types/WebPlugin.d.ts +133 -0
  370. package/bin/plugin/builtins/web/types/WebPlugin.d.ts.map +1 -0
  371. package/bin/plugin/builtins/web/types/WebPlugin.js.map +1 -0
  372. package/bin/plugin/builtins/workboard/Plugin.d.ts +13 -0
  373. package/bin/plugin/builtins/workboard/Plugin.d.ts.map +1 -0
  374. package/bin/plugin/builtins/workboard/Plugin.js +71 -0
  375. package/bin/plugin/builtins/workboard/Plugin.js.map +1 -0
  376. package/bin/plugin/builtins/workboard/runtime/Collector.d.ts +14 -0
  377. package/bin/plugin/builtins/workboard/runtime/Collector.d.ts.map +1 -0
  378. package/bin/plugin/builtins/workboard/runtime/Collector.js +62 -0
  379. package/bin/plugin/builtins/workboard/runtime/Collector.js.map +1 -0
  380. package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts +61 -0
  381. package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts.map +1 -0
  382. package/bin/plugin/builtins/workboard/runtime/Normalizer.js.map +1 -0
  383. package/bin/plugin/builtins/workboard/runtime/Store.d.ts +48 -0
  384. package/bin/plugin/builtins/workboard/runtime/Store.d.ts.map +1 -0
  385. package/bin/plugin/builtins/workboard/runtime/Store.js +84 -0
  386. package/bin/plugin/builtins/workboard/runtime/Store.js.map +1 -0
  387. package/bin/plugin/builtins/workboard/types/Workboard.d.ts.map +1 -0
  388. package/bin/plugin/builtins/workboard/types/Workboard.js.map +1 -0
  389. package/bin/plugin/core/Activation.d.ts +19 -0
  390. package/bin/plugin/core/Activation.d.ts.map +1 -0
  391. package/bin/plugin/core/Activation.js.map +1 -0
  392. package/bin/plugin/core/Catalog.d.ts +42 -0
  393. package/bin/plugin/core/Catalog.d.ts.map +1 -0
  394. package/bin/plugin/core/Catalog.js +92 -0
  395. package/bin/plugin/core/Catalog.js.map +1 -0
  396. package/bin/plugin/core/HookRegistry.d.ts +68 -0
  397. package/bin/plugin/core/HookRegistry.d.ts.map +1 -0
  398. package/bin/plugin/core/HookRegistry.js.map +1 -0
  399. package/bin/plugin/core/HttpRoutes.d.ts +22 -0
  400. package/bin/plugin/core/HttpRoutes.d.ts.map +1 -0
  401. package/bin/plugin/core/HttpRoutes.js +37 -0
  402. package/bin/plugin/core/HttpRoutes.js.map +1 -0
  403. package/bin/plugin/core/LocalExecution.d.ts +32 -0
  404. package/bin/plugin/core/LocalExecution.d.ts.map +1 -0
  405. package/bin/plugin/core/LocalExecution.js +148 -0
  406. package/bin/plugin/core/LocalExecution.js.map +1 -0
  407. package/bin/plugin/core/PluginCommand.d.ts.map +1 -0
  408. package/bin/plugin/core/PluginCommand.js +188 -0
  409. package/bin/plugin/core/PluginCommand.js.map +1 -0
  410. package/bin/plugin/core/PluginManager.d.ts +24 -0
  411. package/bin/plugin/core/PluginManager.d.ts.map +1 -0
  412. package/bin/plugin/core/PluginManager.js +62 -0
  413. package/bin/plugin/core/PluginManager.js.map +1 -0
  414. package/bin/plugin/core/PluginRegistry.d.ts +66 -0
  415. package/bin/plugin/core/PluginRegistry.d.ts.map +1 -0
  416. package/bin/plugin/core/PluginRegistry.js +184 -0
  417. package/bin/plugin/core/PluginRegistry.js.map +1 -0
  418. package/bin/plugin/core/Plugins.d.ts +20 -0
  419. package/bin/plugin/core/Plugins.d.ts.map +1 -0
  420. package/bin/plugin/core/Plugins.js +33 -0
  421. package/bin/plugin/core/Plugins.js.map +1 -0
  422. package/bin/plugin/core/ProjectConfigStore.d.ts +30 -0
  423. package/bin/plugin/core/ProjectConfigStore.d.ts.map +1 -0
  424. package/bin/plugin/core/ProjectConfigStore.js.map +1 -0
  425. package/bin/plugin/types/Plugin.d.ts +697 -0
  426. package/bin/plugin/types/Plugin.d.ts.map +1 -0
  427. package/bin/plugin/types/Plugin.js.map +1 -0
  428. package/bin/plugin/types/PluginApi.d.ts +155 -0
  429. package/bin/plugin/types/PluginApi.d.ts.map +1 -0
  430. package/bin/plugin/types/PluginApi.js.map +1 -0
  431. package/bin/plugin/types/PluginLifecycle.d.ts.map +1 -0
  432. package/bin/plugin/types/PluginLifecycle.js.map +1 -0
  433. package/bin/sandbox/MacOsSeatbeltSandbox.d.ts +1 -1
  434. package/bin/sandbox/SandboxConfigResolver.d.ts +1 -1
  435. package/bin/sandbox/SandboxRunner.d.ts +1 -1
  436. package/bin/sandbox/types/Sandbox.d.ts +130 -0
  437. package/bin/sandbox/types/Sandbox.d.ts.map +1 -0
  438. package/bin/sandbox/types/Sandbox.js +10 -0
  439. package/bin/sandbox/types/Sandbox.js.map +1 -0
  440. package/bin/sandbox/types/SandboxRuntime.d.ts +318 -0
  441. package/bin/sandbox/types/SandboxRuntime.d.ts.map +1 -0
  442. package/bin/sandbox/types/SandboxRuntime.js.map +1 -0
  443. package/bin/service/builtins/BaseService.d.ts +2 -2
  444. package/bin/service/builtins/BaseService.d.ts.map +1 -1
  445. package/bin/service/builtins/chat/ChatService.d.ts +4 -4
  446. package/bin/service/builtins/chat/ChatService.d.ts.map +1 -1
  447. package/bin/service/builtins/chat/ChatServiceTypes.d.ts +2 -2
  448. package/bin/service/builtins/chat/ChatServiceTypes.d.ts.map +1 -1
  449. package/bin/service/builtins/chat/PROMPT.direct.d.ts +7 -0
  450. package/bin/service/builtins/chat/PROMPT.direct.d.ts.map +1 -0
  451. package/bin/service/builtins/chat/PROMPT.direct.js +8 -0
  452. package/bin/service/builtins/chat/PROMPT.direct.js.map +1 -0
  453. package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts +1 -1
  454. package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts.map +1 -1
  455. package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts +1 -1
  456. package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts.map +1 -1
  457. package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts +2 -2
  458. package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +1 -1
  459. package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts +1 -1
  460. package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts.map +1 -1
  461. package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts +1 -1
  462. package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts.map +1 -1
  463. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +1 -1
  464. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -1
  465. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts +2 -2
  466. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -1
  467. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts +1 -1
  468. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +1 -1
  469. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.d.ts +7 -0
  470. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.d.ts.map +1 -0
  471. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js +8 -0
  472. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js.map +1 -0
  473. package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.d.ts.map +1 -0
  474. package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.js.map +1 -0
  475. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts +7 -0
  476. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts.map +1 -0
  477. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js +8 -0
  478. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js.map +1 -0
  479. package/bin/service/builtins/chat/channels/qq/QQ.d.ts +1 -1
  480. package/bin/service/builtins/chat/channels/qq/QQ.d.ts.map +1 -1
  481. package/bin/service/builtins/chat/channels/qq/QQ.js +1 -1
  482. package/bin/service/builtins/chat/channels/qq/QQ.js.map +1 -1
  483. package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts +2 -2
  484. package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts.map +1 -1
  485. package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts +2 -2
  486. package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -1
  487. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts +2 -2
  488. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +1 -1
  489. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js +1 -1
  490. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js.map +1 -1
  491. package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts +2 -2
  492. package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts.map +1 -1
  493. package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts +2 -2
  494. package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts.map +1 -1
  495. package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts +1 -1
  496. package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts.map +1 -1
  497. package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts +1 -1
  498. package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -1
  499. package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts +2 -2
  500. package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts.map +1 -1
  501. package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts +485 -0
  502. package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts.map +1 -0
  503. package/bin/service/builtins/chat/channels/qq/types/QqChannel.js.map +1 -0
  504. package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.d.ts.map +1 -0
  505. package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.js.map +1 -0
  506. package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts +1 -1
  507. package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts.map +1 -1
  508. package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts +1 -1
  509. package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts.map +1 -1
  510. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.d.ts +7 -0
  511. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.d.ts.map +1 -0
  512. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js +8 -0
  513. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js.map +1 -0
  514. package/bin/service/builtins/chat/runtime/ChannelContextStore.js +1 -1
  515. package/bin/service/builtins/chat/runtime/ChannelContextStore.js.map +1 -1
  516. package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts +2 -2
  517. package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts.map +1 -1
  518. package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts +3 -3
  519. package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts.map +1 -1
  520. package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts +2 -2
  521. package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts.map +1 -1
  522. package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts +3 -3
  523. package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts.map +1 -1
  524. package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts +2 -2
  525. package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts.map +1 -1
  526. package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts +1 -1
  527. package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -1
  528. package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts +1 -1
  529. package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts.map +1 -1
  530. package/bin/service/builtins/chat/runtime/ChatHistoryStore.js +1 -1
  531. package/bin/service/builtins/chat/runtime/ChatHistoryStore.js.map +1 -1
  532. package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts +1 -1
  533. package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts.map +1 -1
  534. package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts +24 -0
  535. package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts.map +1 -0
  536. package/bin/service/builtins/chat/runtime/ChatPromptAssets.js +28 -0
  537. package/bin/service/builtins/chat/runtime/ChatPromptAssets.js.map +1 -0
  538. package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts +1 -1
  539. package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -1
  540. package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts +3 -3
  541. package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts.map +1 -1
  542. package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts +2 -2
  543. package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts.map +1 -1
  544. package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts +1 -1
  545. package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts.map +1 -1
  546. package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts +2 -2
  547. package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts.map +1 -1
  548. package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts.map +1 -1
  549. package/bin/service/builtins/chat/runtime/ChatServiceSystem.js +4 -47
  550. package/bin/service/builtins/chat/runtime/ChatServiceSystem.js.map +1 -1
  551. package/bin/service/builtins/chat/runtime/ChatSession.d.ts +2 -2
  552. package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.d.ts +2 -2
  553. package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts +2 -2
  554. package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts +1 -1
  555. package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts.map +1 -1
  556. package/bin/service/builtins/chat/runtime/InboundAugment.d.ts +1 -1
  557. package/bin/service/builtins/chat/runtime/InboundAugment.d.ts.map +1 -1
  558. package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts +1 -1
  559. package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts.map +1 -1
  560. package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts +1 -1
  561. package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts.map +1 -1
  562. package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts +1 -1
  563. package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts.map +1 -1
  564. package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts +1 -1
  565. package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts.map +1 -1
  566. package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts +1 -1
  567. package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts.map +1 -1
  568. package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts +2 -2
  569. package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts.map +1 -1
  570. package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts +1 -1
  571. package/bin/service/builtins/chat/types/ChannelAccount.d.ts +1 -1
  572. package/bin/service/builtins/chat/types/ChannelAccount.d.ts.map +1 -1
  573. package/bin/service/builtins/chat/types/ChatHistory.d.ts +1 -1
  574. package/bin/service/builtins/chat/types/ChatHistory.d.ts.map +1 -1
  575. package/bin/service/builtins/chat/types/ChatPlugin.d.ts +238 -0
  576. package/bin/service/builtins/chat/types/ChatPlugin.d.ts.map +1 -0
  577. package/bin/service/builtins/chat/types/ChatPlugin.js.map +1 -0
  578. package/bin/service/builtins/chat/types/ChatPromptContext.d.ts +125 -0
  579. package/bin/service/builtins/chat/types/ChatPromptContext.d.ts.map +1 -0
  580. package/bin/service/builtins/chat/types/ChatPromptContext.js.map +1 -0
  581. package/bin/service/builtins/chat/types/ChatQueue.d.ts +1 -1
  582. package/bin/service/builtins/chat/types/ChatQueue.d.ts.map +1 -1
  583. package/bin/service/builtins/chat/types/ChatQueueWorker.d.ts.map +1 -0
  584. package/bin/service/builtins/chat/types/ChatQueueWorker.js.map +1 -0
  585. package/bin/service/builtins/chat/types/ChatRuntime.d.ts +32 -0
  586. package/bin/service/builtins/chat/types/ChatRuntime.d.ts.map +1 -0
  587. package/bin/service/builtins/chat/types/ChatRuntime.js.map +1 -0
  588. package/bin/service/builtins/chat/types/ChatService.d.ts +145 -0
  589. package/bin/service/builtins/chat/types/ChatService.d.ts.map +1 -0
  590. package/bin/service/builtins/chat/types/ChatService.js.map +1 -0
  591. package/bin/service/builtins/contact/ContactService.d.ts +1 -1
  592. package/bin/service/builtins/contact/ContactService.d.ts.map +1 -1
  593. package/bin/service/builtins/contact/PROMPT.d.ts +7 -0
  594. package/bin/service/builtins/contact/PROMPT.d.ts.map +1 -0
  595. package/bin/service/builtins/contact/PROMPT.js +8 -0
  596. package/bin/service/builtins/contact/PROMPT.js.map +1 -0
  597. package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts +12 -0
  598. package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts.map +1 -0
  599. package/bin/service/builtins/contact/runtime/ContactPromptAssets.js +13 -0
  600. package/bin/service/builtins/contact/runtime/ContactPromptAssets.js.map +1 -0
  601. package/bin/service/builtins/contact/runtime/RemoteClient.d.ts +1 -1
  602. package/bin/service/builtins/contact/runtime/RemoteClient.d.ts.map +1 -1
  603. package/bin/service/builtins/contact/runtime/SystemProvider.d.ts +0 -7
  604. package/bin/service/builtins/contact/runtime/SystemProvider.d.ts.map +1 -1
  605. package/bin/service/builtins/contact/runtime/SystemProvider.js +3 -9
  606. package/bin/service/builtins/contact/runtime/SystemProvider.js.map +1 -1
  607. package/bin/service/builtins/memory/Action.d.ts +2 -2
  608. package/bin/service/builtins/memory/Action.d.ts.map +1 -1
  609. package/bin/service/builtins/memory/MemoryService.d.ts +1 -1
  610. package/bin/service/builtins/memory/MemoryService.d.ts.map +1 -1
  611. package/bin/service/builtins/memory/types/Memory.d.ts +1 -1
  612. package/bin/service/builtins/memory/types/Memory.d.ts.map +1 -1
  613. package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts +1 -1
  614. package/bin/service/builtins/shell/ShellRuntimeTypes.js +1 -1
  615. package/bin/service/builtins/shell/ShellService.d.ts +1 -1
  616. package/bin/service/builtins/shell/ShellService.d.ts.map +1 -1
  617. package/bin/service/builtins/shell/runtime/ShellActionRuntime.js +1 -1
  618. package/bin/service/builtins/shell/runtime/ShellActionRuntime.js.map +1 -1
  619. package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js +1 -1
  620. package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +1 -1
  621. package/bin/service/builtins/shell/types/Shell.d.ts.map +1 -0
  622. package/bin/service/builtins/shell/types/Shell.js.map +1 -0
  623. package/bin/service/builtins/task/PROMPT.d.ts +7 -0
  624. package/bin/service/builtins/task/PROMPT.d.ts.map +1 -0
  625. package/bin/service/builtins/task/PROMPT.js +8 -0
  626. package/bin/service/builtins/task/PROMPT.js.map +1 -0
  627. package/bin/service/builtins/task/Scheduler.js +1 -1
  628. package/bin/service/builtins/task/Scheduler.js.map +1 -1
  629. package/bin/service/builtins/task/TaskService.d.ts +2 -2
  630. package/bin/service/builtins/task/TaskService.d.ts.map +1 -1
  631. package/bin/service/builtins/task/runtime/Model.d.ts +1 -1
  632. package/bin/service/builtins/task/runtime/Model.d.ts.map +1 -1
  633. package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts +2 -2
  634. package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts.map +1 -1
  635. package/bin/service/builtins/task/runtime/TaskActionInput.d.ts +3 -3
  636. package/bin/service/builtins/task/runtime/TaskActionInput.d.ts.map +1 -1
  637. package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts +12 -0
  638. package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts.map +1 -0
  639. package/bin/service/builtins/task/runtime/TaskPromptAssets.js +13 -0
  640. package/bin/service/builtins/task/runtime/TaskPromptAssets.js.map +1 -0
  641. package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts +2 -2
  642. package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts.map +1 -1
  643. package/bin/service/builtins/task/runtime/TaskRunnerRound.js +1 -1
  644. package/bin/service/builtins/task/runtime/TaskRunnerRound.js.map +1 -1
  645. package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts +1 -1
  646. package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts +1 -1
  647. package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts +1 -1
  648. package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts.map +1 -1
  649. package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts +2 -5
  650. package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts.map +1 -1
  651. package/bin/service/builtins/task/runtime/TaskServiceSystem.js +2 -19
  652. package/bin/service/builtins/task/runtime/TaskServiceSystem.js.map +1 -1
  653. package/bin/service/builtins/task/types/TaskService.d.ts +52 -0
  654. package/bin/service/builtins/task/types/TaskService.d.ts.map +1 -0
  655. package/bin/service/builtins/task/types/TaskService.js +9 -0
  656. package/bin/service/builtins/task/types/TaskService.js.map +1 -0
  657. package/bin/service/core/Manager.d.ts +1 -1
  658. package/bin/service/core/Manager.d.ts.map +1 -1
  659. package/bin/service/core/ServiceActionRunner.d.ts +4 -4
  660. package/bin/service/core/ServiceActionRunner.d.ts.map +1 -1
  661. package/bin/service/core/ServiceClassRegistry.d.ts +1 -1
  662. package/bin/service/core/ServiceClassRegistry.d.ts.map +1 -1
  663. package/bin/service/core/ServiceManager.d.ts +1 -1
  664. package/bin/service/core/ServiceManager.d.ts.map +1 -1
  665. package/bin/service/core/ServiceStateController.d.ts +2 -2
  666. package/bin/service/core/ServiceStateController.d.ts.map +1 -1
  667. package/bin/service/schedule/Store.d.ts +1 -1
  668. package/bin/service/schedule/Store.d.ts.map +1 -1
  669. package/bin/service/schedule/Store.js +1 -1
  670. package/bin/service/schedule/Store.js.map +1 -1
  671. package/bin/service/types/Service.d.ts +205 -0
  672. package/bin/service/types/Service.d.ts.map +1 -0
  673. package/bin/service/types/Service.js +10 -0
  674. package/bin/service/types/Service.js.map +1 -0
  675. package/bin/service/types/ServiceSchedule.d.ts +114 -0
  676. package/bin/service/types/ServiceSchedule.d.ts.map +1 -0
  677. package/bin/service/types/ServiceSchedule.js.map +1 -0
  678. package/bin/service/types/ServiceState.d.ts +104 -0
  679. package/bin/service/types/ServiceState.d.ts.map +1 -0
  680. package/bin/service/types/ServiceState.js.map +1 -0
  681. package/bin/service/types/Services.d.ts +94 -0
  682. package/bin/service/types/Services.d.ts.map +1 -0
  683. package/bin/service/types/Services.js.map +1 -0
  684. package/bin/session/Session.d.ts +4 -4
  685. package/bin/session/Session.d.ts.map +1 -1
  686. package/bin/session/SessionRunScope.d.ts +2 -2
  687. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts +2 -2
  688. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js +2 -2
  689. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js.map +1 -1
  690. package/bin/session/composer/execution/LocalSessionExecutionComposer.d.ts +2 -2
  691. package/bin/session/composer/execution/LocalSessionExecutionComposer.js +1 -1
  692. package/bin/session/composer/execution/LocalSessionExecutionComposer.js.map +1 -1
  693. package/bin/session/composer/execution/SessionExecutionComposer.d.ts +2 -2
  694. package/bin/session/composer/history/SessionHistoryComposer.d.ts +2 -2
  695. package/bin/session/composer/history/SessionHistoryWriter.d.ts +2 -2
  696. package/bin/session/composer/history/SessionHistoryWriter.d.ts.map +1 -1
  697. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +2 -2
  698. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js +2 -2
  699. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +1 -1
  700. package/bin/session/composer/system/default/InitPromptAssets.d.ts +16 -0
  701. package/bin/session/composer/system/default/InitPromptAssets.d.ts.map +1 -0
  702. package/bin/session/composer/system/default/InitPromptAssets.js +18 -0
  703. package/bin/session/composer/system/default/InitPromptAssets.js.map +1 -0
  704. package/bin/session/composer/system/default/InitPrompts.d.ts +2 -9
  705. package/bin/session/composer/system/default/InitPrompts.d.ts.map +1 -1
  706. package/bin/session/composer/system/default/InitPrompts.js +2 -28
  707. package/bin/session/composer/system/default/InitPrompts.js.map +1 -1
  708. package/bin/session/composer/system/default/StaticPromptCatalog.d.ts +1 -1
  709. package/bin/session/composer/system/default/StaticPromptCatalog.d.ts.map +1 -1
  710. package/bin/session/composer/system/default/SystemDomain.d.ts.map +1 -1
  711. package/bin/session/composer/system/default/SystemDomain.js +5 -21
  712. package/bin/session/composer/system/default/SystemDomain.js.map +1 -1
  713. package/bin/session/composer/system/default/SystemPromptAssets.d.ts +20 -0
  714. package/bin/session/composer/system/default/SystemPromptAssets.d.ts.map +1 -0
  715. package/bin/session/composer/system/default/SystemPromptAssets.js +23 -0
  716. package/bin/session/composer/system/default/SystemPromptAssets.js.map +1 -0
  717. package/bin/session/composer/system/default/assets/core.prompt.d.ts +7 -0
  718. package/bin/session/composer/system/default/assets/core.prompt.d.ts.map +1 -0
  719. package/bin/session/composer/system/default/assets/core.prompt.js +8 -0
  720. package/bin/session/composer/system/default/assets/core.prompt.js.map +1 -0
  721. package/bin/session/composer/system/default/assets/init/PROFILE.md.d.ts +7 -0
  722. package/bin/session/composer/system/default/assets/init/PROFILE.md.d.ts.map +1 -0
  723. package/bin/session/composer/system/default/assets/init/PROFILE.md.js +8 -0
  724. package/bin/session/composer/system/default/assets/init/PROFILE.md.js.map +1 -0
  725. package/bin/session/composer/system/default/assets/init/SOUL.md.d.ts +7 -0
  726. package/bin/session/composer/system/default/assets/init/SOUL.md.d.ts.map +1 -0
  727. package/bin/session/composer/system/default/assets/init/SOUL.md.js +8 -0
  728. package/bin/session/composer/system/default/assets/init/SOUL.md.js.map +1 -0
  729. package/bin/session/composer/system/default/assets/service.prompt.d.ts +7 -0
  730. package/bin/session/composer/system/default/assets/service.prompt.d.ts.map +1 -0
  731. package/bin/session/composer/system/default/assets/service.prompt.js +8 -0
  732. package/bin/session/composer/system/default/assets/service.prompt.js.map +1 -0
  733. package/bin/session/composer/system/default/assets/task.prompt.d.ts +7 -0
  734. package/bin/session/composer/system/default/assets/task.prompt.d.ts.map +1 -0
  735. package/bin/session/composer/system/default/assets/task.prompt.js +8 -0
  736. package/bin/session/composer/system/default/assets/task.prompt.js.map +1 -0
  737. package/bin/session/composer/system/default/variables/VariableReplacer.js +2 -2
  738. package/bin/session/composer/system/default/variables/VariableReplacer.js.map +1 -1
  739. package/bin/session/executors/local/LocalSessionCore.d.ts +2 -2
  740. package/bin/session/executors/local/LocalSessionCore.d.ts.map +1 -1
  741. package/bin/session/executors/local/LocalSessionExecutor.d.ts +2 -2
  742. package/bin/session/executors/local/LocalSessionExecutor.d.ts.map +1 -1
  743. package/bin/session/executors/local/SessionLoopDecision.d.ts +1 -1
  744. package/bin/session/executors/local/SessionSignals.d.ts +2 -2
  745. package/bin/session/executors/local/SessionSignals.d.ts.map +1 -1
  746. package/bin/session/messages/SessionAttachmentMapper.d.ts +1 -1
  747. package/bin/session/messages/SessionMessageCodec.d.ts +1 -1
  748. package/bin/session/messages/SessionMessageLog.d.ts +2 -2
  749. package/bin/session/messages/SessionMessageLog.d.ts.map +1 -1
  750. package/bin/session/messages/SessionStepEventMapper.d.ts +1 -1
  751. package/bin/session/messages/SessionStepEventMapper.js +1 -1
  752. package/bin/session/messages/SessionStepEventMapper.js.map +1 -1
  753. package/bin/session/tools/shell/ShellToolBridge.d.ts +1 -1
  754. package/bin/session/tools/shell/ShellToolBridge.d.ts.map +1 -1
  755. package/bin/session/tools/shell/ShellToolBridge.js +1 -1
  756. package/bin/session/tools/shell/ShellToolBridge.js.map +1 -1
  757. package/bin/session/tools/shell/ShellToolDefinition.d.ts +2 -2
  758. package/bin/session/tools/shell/ShellToolDefinition.d.ts.map +1 -1
  759. package/bin/session/tools/shell/ShellToolFormatting.js +1 -1
  760. package/bin/session/tools/shell/ShellToolFormatting.js.map +1 -1
  761. package/bin/session/types/SessionExecutor.d.ts +18 -0
  762. package/bin/session/types/SessionExecutor.d.ts.map +1 -0
  763. package/bin/session/types/SessionExecutor.js.map +1 -0
  764. package/bin/session/types/SessionHistoryMeta.d.ts.map +1 -0
  765. package/bin/session/types/SessionHistoryMeta.js.map +1 -0
  766. package/bin/session/types/SessionHistoryPaths.d.ts.map +1 -0
  767. package/bin/session/types/SessionHistoryPaths.js.map +1 -0
  768. package/bin/session/types/SessionLoop.d.ts.map +1 -0
  769. package/bin/session/types/SessionLoop.js.map +1 -0
  770. package/bin/session/types/SessionMessages.d.ts +83 -0
  771. package/bin/session/types/SessionMessages.d.ts.map +1 -0
  772. package/bin/session/types/SessionMessages.js.map +1 -0
  773. package/bin/session/types/SessionPrompts.d.ts.map +1 -0
  774. package/bin/session/types/SessionPrompts.js.map +1 -0
  775. package/bin/session/types/SessionRun.d.ts +112 -0
  776. package/bin/session/types/SessionRun.d.ts.map +1 -0
  777. package/bin/session/types/SessionRun.js.map +1 -0
  778. package/bin/utils/Id.d.ts.map +1 -0
  779. package/bin/utils/Id.js.map +1 -0
  780. package/bin/utils/Template.d.ts +17 -0
  781. package/bin/utils/Template.d.ts.map +1 -0
  782. package/bin/utils/Template.js.map +1 -0
  783. package/bin/utils/Time.d.ts.map +1 -0
  784. package/bin/utils/Time.js.map +1 -0
  785. package/bin/utils/cli/Checker.d.ts.map +1 -0
  786. package/bin/utils/cli/Checker.js.map +1 -0
  787. package/bin/utils/cli/CliOutput.d.ts.map +1 -0
  788. package/bin/utils/cli/CliOutput.js +98 -0
  789. package/bin/utils/cli/CliOutput.js.map +1 -0
  790. package/bin/utils/cli/PrettyStatus.d.ts.map +1 -0
  791. package/bin/utils/cli/PrettyStatus.js.map +1 -0
  792. package/bin/utils/logger/Fetch.d.ts +14 -0
  793. package/bin/utils/logger/Fetch.d.ts.map +1 -0
  794. package/bin/utils/logger/Fetch.js.map +1 -0
  795. package/bin/utils/logger/Format.d.ts.map +1 -0
  796. package/bin/utils/logger/Format.js.map +1 -0
  797. package/bin/utils/logger/FormatRequest.d.ts +29 -0
  798. package/bin/utils/logger/FormatRequest.d.ts.map +1 -0
  799. package/bin/utils/logger/FormatRequest.js.map +1 -0
  800. package/bin/utils/logger/FormatResponse.d.ts +46 -0
  801. package/bin/utils/logger/FormatResponse.d.ts.map +1 -0
  802. package/bin/utils/logger/FormatResponse.js.map +1 -0
  803. package/bin/utils/logger/FormatShared.d.ts +33 -0
  804. package/bin/utils/logger/FormatShared.d.ts.map +1 -0
  805. package/bin/utils/logger/FormatShared.js.map +1 -0
  806. package/bin/utils/logger/Logger.d.ts +101 -0
  807. package/bin/utils/logger/Logger.d.ts.map +1 -0
  808. package/bin/utils/logger/Logger.js +308 -0
  809. package/bin/utils/logger/Logger.js.map +1 -0
  810. package/bin/utils/storage/index.d.ts +5 -0
  811. package/bin/utils/storage/index.d.ts.map +1 -0
  812. package/bin/utils/storage/index.js.map +1 -0
  813. package/bin/utils/types/Json.d.ts.map +1 -0
  814. package/bin/utils/types/Json.js.map +1 -0
  815. package/bin/utils/types/Template.d.ts.map +1 -0
  816. package/bin/utils/types/Template.js.map +1 -0
  817. package/package.json +4 -4
  818. package/scripts/agent-compiler.mjs +253 -0
  819. package/src/agent/AgentContext.ts +3 -3
  820. package/src/agent/AgentContextTypes.ts +7 -7
  821. package/src/agent/AgentRuntime.ts +3 -3
  822. package/src/agent/AgentRuntimeState.ts +2 -2
  823. package/src/agent/AgentRuntimeTypes.ts +3 -3
  824. package/src/agent/project/AgentInitializer.ts +54 -7
  825. package/src/agent/project/ProjectExecutionBinding.ts +2 -2
  826. package/src/agent/project/types/AgentProject.ts +92 -0
  827. package/src/config/Config.ts +2 -2
  828. package/src/config/DowncityDefault.ts +38 -0
  829. package/src/config/DowncitySchema.ts +377 -0
  830. package/src/config/types/DowncityConfig.ts +215 -0
  831. package/src/host/daemon/Api.ts +1 -1
  832. package/src/host/daemon/Client.ts +2 -2
  833. package/src/host/daemon/Manager.ts +1 -1
  834. package/src/host/daemon/ProjectSetup.ts +1 -1
  835. package/src/host/http/Server.ts +157 -0
  836. package/src/host/http/control/AuthControlService.ts +161 -0
  837. package/src/host/http/control/ControlApiRoutes.ts +31 -0
  838. package/src/host/http/control/ControlAuthorizationRoutes.ts +108 -0
  839. package/src/host/http/control/ControlRouter.ts +31 -0
  840. package/src/host/http/control/ExecuteBySession.ts +151 -0
  841. package/src/host/http/control/ExecuteInput.ts +236 -0
  842. package/src/host/http/control/MessageTimeline.ts +269 -0
  843. package/src/host/http/control/ModelRoutes.ts +101 -0
  844. package/src/host/http/control/OverviewRoutes.ts +106 -0
  845. package/src/host/http/control/SessionRoutes.ts +414 -0
  846. package/src/host/http/control/SessionSummaryStore.ts +76 -0
  847. package/src/host/http/control/TaskRoutes.ts +391 -0
  848. package/src/host/http/control/TaskStore.ts +222 -0
  849. package/src/host/http/control/types/AuthControl.ts +38 -0
  850. package/src/host/http/control/types/ControlViewData.ts +392 -0
  851. package/src/host/rpc/Client.ts +1 -1
  852. package/src/host/rpc/Server.ts +6 -6
  853. package/src/host/rpc/types/LocalRpc.ts +72 -0
  854. package/src/host/runtime/AgentHostRuntime.ts +3 -3
  855. package/src/host/runtime/CityRegistry.ts +1 -1
  856. package/src/host/sdk/Agent.ts +8 -8
  857. package/src/host/sdk/AgentSdkTypes.ts +4 -4
  858. package/src/host/sdk/RemoteAgent.ts +1 -1
  859. package/src/host/sdk/RpcServer.ts +1 -1
  860. package/src/host/sdk/Session.ts +2 -2
  861. package/src/host/sdk/SessionMetadata.ts +1 -1
  862. package/src/host/sdk/StreamEvents.ts +1 -1
  863. package/src/host/types/AgentHost.ts +208 -0
  864. package/src/host/types/Store.ts +422 -0
  865. package/src/index.ts +53 -53
  866. package/src/model/CreateModel.ts +5 -5
  867. package/src/model/ModelManager.ts +1 -1
  868. package/src/plugin/builtins/asr/Dependency.ts +336 -0
  869. package/src/plugin/builtins/asr/ModelCatalog.ts +43 -0
  870. package/src/plugin/builtins/asr/Plugin.ts +639 -0
  871. package/src/plugin/builtins/auth/Plugin.ts +209 -0
  872. package/src/plugin/builtins/auth/runtime/AuthorizationConfig.ts +265 -0
  873. package/src/plugin/builtins/auth/runtime/AuthorizationPolicy.ts +168 -0
  874. package/src/plugin/builtins/auth/runtime/AuthorizationStore.ts +219 -0
  875. package/src/plugin/builtins/skill/Action.ts +159 -0
  876. package/src/plugin/builtins/skill/Command.ts +98 -0
  877. package/src/plugin/builtins/skill/Config.ts +51 -0
  878. package/src/plugin/builtins/skill/PROMPT.ts +9 -0
  879. package/src/plugin/builtins/skill/Plugin.ts +334 -0
  880. package/src/plugin/builtins/skill/SkillPromptAssets.ts +14 -0
  881. package/src/plugin/builtins/skill/runtime/Discovery.ts +141 -0
  882. package/src/plugin/builtins/skill/runtime/Paths.ts +130 -0
  883. package/src/plugin/builtins/skill/runtime/Prompt.ts +67 -0
  884. package/src/plugin/builtins/skill/runtime/Store.ts +95 -0
  885. package/src/plugin/builtins/skill/runtime/SystemProvider.ts +52 -0
  886. package/src/plugin/builtins/skill/runtime/Types.ts +22 -0
  887. package/src/plugin/builtins/skill/types/ClaudeSkill.ts +64 -0
  888. package/src/plugin/builtins/tts/Dependency.ts +473 -0
  889. package/src/plugin/builtins/tts/Plugin.ts +553 -0
  890. package/src/plugin/builtins/tts/runtime/Catalog.ts +97 -0
  891. package/src/plugin/builtins/tts/runtime/DependencyInstaller.ts +436 -0
  892. package/src/plugin/builtins/tts/runtime/Installer.ts +297 -0
  893. package/src/plugin/builtins/tts/runtime/Synthesizer.ts +480 -0
  894. package/src/plugin/builtins/tts/types/TtsPlugin.ts +164 -0
  895. package/src/plugin/builtins/voice/Dependency.ts +329 -0
  896. package/src/plugin/builtins/voice/ModelCatalog.ts +43 -0
  897. package/src/plugin/builtins/voice/Plugin.ts +599 -0
  898. package/src/plugin/builtins/voice/runtime/Catalog.ts +68 -0
  899. package/src/plugin/builtins/voice/runtime/DependencyInstaller.ts +505 -0
  900. package/src/plugin/builtins/voice/runtime/Installer.ts +324 -0
  901. package/src/plugin/builtins/voice/runtime/Transcriber.ts +467 -0
  902. package/src/plugin/builtins/voice/types/VoicePlugin.ts +194 -0
  903. package/src/plugin/builtins/web/Dependency.ts +17 -0
  904. package/src/plugin/builtins/web/PROMPT.agent-browser.ts +9 -0
  905. package/src/plugin/builtins/web/PROMPT.ts +9 -0
  906. package/src/plugin/builtins/web/PROMPT.web-access.ts +9 -0
  907. package/src/plugin/builtins/web/Plugin.ts +501 -0
  908. package/src/plugin/builtins/web/WebPromptAssets.ts +26 -0
  909. package/src/plugin/builtins/web/runtime/Config.ts +105 -0
  910. package/src/plugin/builtins/web/runtime/Source.ts +257 -0
  911. package/src/plugin/builtins/web/types/WebPlugin.ts +141 -0
  912. package/src/plugin/builtins/workboard/Plugin.ts +81 -0
  913. package/src/plugin/builtins/workboard/runtime/Collector.ts +78 -0
  914. package/src/plugin/builtins/workboard/runtime/Normalizer.ts +213 -0
  915. package/src/plugin/builtins/workboard/runtime/Store.ts +110 -0
  916. package/src/plugin/core/Activation.ts +26 -0
  917. package/src/plugin/core/Catalog.ts +118 -0
  918. package/src/plugin/core/HookRegistry.ts +249 -0
  919. package/src/plugin/core/HttpRoutes.ts +50 -0
  920. package/src/plugin/core/LocalExecution.ts +179 -0
  921. package/src/plugin/core/PluginCommand.ts +219 -0
  922. package/src/plugin/core/PluginManager.ts +66 -0
  923. package/src/plugin/core/PluginRegistry.ts +244 -0
  924. package/src/plugin/core/Plugins.ts +39 -0
  925. package/src/plugin/core/ProjectConfigStore.ts +58 -0
  926. package/src/plugin/types/Plugin.ts +748 -0
  927. package/src/plugin/types/PluginApi.ts +161 -0
  928. package/src/sandbox/MacOsSeatbeltSandbox.ts +1 -1
  929. package/src/sandbox/SandboxConfigResolver.ts +1 -1
  930. package/src/sandbox/SandboxRunner.ts +1 -1
  931. package/src/sandbox/types/Sandbox.ts +144 -0
  932. package/src/sandbox/types/SandboxRuntime.ts +377 -0
  933. package/src/service/builtins/BaseService.ts +2 -2
  934. package/src/service/builtins/chat/ChatService.ts +4 -4
  935. package/src/service/builtins/chat/ChatServiceTypes.ts +2 -2
  936. package/src/service/builtins/chat/PROMPT.direct.ts +9 -0
  937. package/src/service/builtins/chat/accounts/ChannelAccountService.ts +2 -2
  938. package/src/service/builtins/chat/channels/BaseChatChannel.ts +1 -1
  939. package/src/service/builtins/chat/channels/BaseChatChannelQueue.ts +1 -1
  940. package/src/service/builtins/chat/channels/BaseChatChannelSupport.ts +2 -2
  941. package/src/service/builtins/chat/channels/feishu/Feishu.ts +2 -2
  942. package/src/service/builtins/chat/channels/feishu/FeishuInbound.ts +1 -1
  943. package/src/service/builtins/chat/channels/feishu/FeishuPlatformClient.ts +1 -1
  944. package/src/service/builtins/chat/channels/feishu/FeishuPlatformLookup.ts +2 -2
  945. package/src/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts +1 -1
  946. package/src/service/builtins/chat/channels/feishu/PROMPT.direct.ts +9 -0
  947. package/src/service/builtins/chat/channels/qq/PROMPT.direct.ts +9 -0
  948. package/src/service/builtins/chat/channels/qq/QQ.ts +3 -3
  949. package/src/service/builtins/chat/channels/qq/QQEventCapture.ts +2 -2
  950. package/src/service/builtins/chat/channels/qq/QQGatewayAuth.ts +2 -2
  951. package/src/service/builtins/chat/channels/qq/QQGatewayClient.ts +4 -4
  952. package/src/service/builtins/chat/channels/qq/QQGatewaySend.ts +2 -2
  953. package/src/service/builtins/chat/channels/qq/QQGatewaySupport.ts +3 -3
  954. package/src/service/builtins/chat/channels/qq/QQInbound.ts +2 -2
  955. package/src/service/builtins/chat/channels/qq/QQInboundDedupe.ts +1 -1
  956. package/src/service/builtins/chat/channels/qq/QQSendSupport.ts +1 -1
  957. package/src/service/builtins/chat/channels/qq/QQSupport.ts +2 -2
  958. package/src/service/builtins/chat/channels/qq/VoiceInput.ts +1 -1
  959. package/src/service/builtins/chat/channels/qq/types/QqChannel.ts +501 -0
  960. package/src/service/builtins/chat/channels/telegram/ApiClient.ts +1 -1
  961. package/src/service/builtins/chat/channels/telegram/Bot.ts +1 -1
  962. package/src/service/builtins/chat/channels/telegram/Handlers.ts +1 -1
  963. package/src/service/builtins/chat/channels/telegram/PROMPT.direct.ts +9 -0
  964. package/src/service/builtins/chat/channels/telegram/PROMPT.direct.ts.txt +2 -0
  965. package/src/service/builtins/chat/channels/telegram/StateStore.ts +1 -1
  966. package/src/service/builtins/chat/runtime/ChannelContextStore.ts +1 -1
  967. package/src/service/builtins/chat/runtime/ChatActionExecution.ts +2 -2
  968. package/src/service/builtins/chat/runtime/ChatActionInput.ts +3 -3
  969. package/src/service/builtins/chat/runtime/ChatChannelActions.ts +2 -2
  970. package/src/service/builtins/chat/runtime/ChatChannelConfig.ts +3 -3
  971. package/src/service/builtins/chat/runtime/ChatChannelCore.ts +2 -2
  972. package/src/service/builtins/chat/runtime/ChatChannelLifecycle.ts +1 -1
  973. package/src/service/builtins/chat/runtime/ChatHistoryStore.ts +2 -2
  974. package/src/service/builtins/chat/runtime/ChatIngressStore.ts +1 -1
  975. package/src/service/builtins/chat/runtime/ChatPromptAssets.ts +32 -0
  976. package/src/service/builtins/chat/runtime/ChatQueueReplyDispatch.ts +1 -1
  977. package/src/service/builtins/chat/runtime/ChatQueueSessionBridge.ts +3 -3
  978. package/src/service/builtins/chat/runtime/ChatQueueWorker.ts +5 -5
  979. package/src/service/builtins/chat/runtime/ChatQueueWorkerSupport.ts +1 -1
  980. package/src/service/builtins/chat/runtime/ChatServiceActions.ts +4 -4
  981. package/src/service/builtins/chat/runtime/ChatServiceSystem.ts +9 -58
  982. package/src/service/builtins/chat/runtime/ChatSession.ts +3 -3
  983. package/src/service/builtins/chat/runtime/ChatSessionExecutionComposer.ts +2 -2
  984. package/src/service/builtins/chat/runtime/ChatSessionTypes.ts +2 -2
  985. package/src/service/builtins/chat/runtime/EnqueueDispatch.ts +2 -2
  986. package/src/service/builtins/chat/runtime/InboundAugment.ts +2 -2
  987. package/src/service/builtins/chat/runtime/PluginDispatch.ts +2 -2
  988. package/src/service/builtins/chat/runtime/QueuedUserMessage.ts +1 -1
  989. package/src/service/builtins/chat/runtime/ReplyContextFormatter.ts +1 -1
  990. package/src/service/builtins/chat/runtime/ReplyDispatch.ts +2 -2
  991. package/src/service/builtins/chat/runtime/SystemPrompt.ts +1 -1
  992. package/src/service/builtins/chat/runtime/UIMessageTransformer.ts +2 -2
  993. package/src/service/builtins/chat/runtime/UserVisibleText.ts +1 -1
  994. package/src/service/builtins/chat/types/ChannelAccount.ts +1 -1
  995. package/src/service/builtins/chat/types/ChatHistory.ts +1 -1
  996. package/src/service/builtins/chat/types/ChatPromptContext.ts +139 -0
  997. package/src/service/builtins/chat/types/ChatQueue.ts +1 -1
  998. package/src/service/builtins/chat/types/ChatService.ts +165 -0
  999. package/src/service/builtins/contact/ContactService.ts +2 -2
  1000. package/src/service/builtins/contact/PROMPT.ts +9 -0
  1001. package/src/service/builtins/contact/runtime/ChatRuntime.ts +1 -1
  1002. package/src/service/builtins/contact/runtime/ContactPromptAssets.ts +14 -0
  1003. package/src/service/builtins/contact/runtime/RemoteClient.ts +1 -1
  1004. package/src/service/builtins/contact/runtime/SystemProvider.ts +3 -10
  1005. package/src/service/builtins/memory/Action.ts +2 -2
  1006. package/src/service/builtins/memory/MemoryService.ts +2 -2
  1007. package/src/service/builtins/memory/types/Memory.ts +1 -1
  1008. package/src/service/builtins/shell/ShellRuntimeTypes.ts +1 -1
  1009. package/src/service/builtins/shell/ShellService.ts +1 -1
  1010. package/src/service/builtins/shell/runtime/ShellActionRuntime.ts +1 -1
  1011. package/src/service/builtins/shell/runtime/ShellActionRuntimeSupport.ts +1 -1
  1012. package/src/service/builtins/task/Action.ts +1 -1
  1013. package/src/service/builtins/task/PROMPT.ts +9 -0
  1014. package/src/service/builtins/task/Scheduler.ts +1 -1
  1015. package/src/service/builtins/task/TaskService.ts +2 -2
  1016. package/src/service/builtins/task/runtime/Model.ts +1 -1
  1017. package/src/service/builtins/task/runtime/TaskActionExecution.ts +2 -2
  1018. package/src/service/builtins/task/runtime/TaskActionInput.ts +3 -3
  1019. package/src/service/builtins/task/runtime/TaskPromptAssets.ts +14 -0
  1020. package/src/service/builtins/task/runtime/TaskRunnerRound.ts +3 -3
  1021. package/src/service/builtins/task/runtime/TaskRunnerSession.ts +2 -2
  1022. package/src/service/builtins/task/runtime/TaskRunnerTypes.ts +1 -1
  1023. package/src/service/builtins/task/runtime/TaskServiceActions.ts +2 -2
  1024. package/src/service/builtins/task/runtime/TaskServiceSystem.ts +2 -24
  1025. package/src/service/builtins/task/types/TaskService.ts +55 -0
  1026. package/src/service/core/Manager.ts +1 -1
  1027. package/src/service/core/ServiceActionApi.ts +3 -3
  1028. package/src/service/core/ServiceActionRunner.ts +4 -4
  1029. package/src/service/core/ServiceClassRegistry.ts +1 -1
  1030. package/src/service/core/ServiceManager.ts +1 -1
  1031. package/src/service/core/ServiceStateController.ts +2 -2
  1032. package/src/service/schedule/Store.ts +3 -3
  1033. package/src/service/types/Service.ts +223 -0
  1034. package/src/service/types/ServiceSchedule.ts +134 -0
  1035. package/src/service/types/ServiceState.ts +112 -0
  1036. package/src/service/types/Services.ts +100 -0
  1037. package/src/session/Session.ts +4 -4
  1038. package/src/session/SessionRunScope.ts +2 -2
  1039. package/src/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.ts +4 -4
  1040. package/src/session/composer/execution/LocalSessionExecutionComposer.ts +3 -3
  1041. package/src/session/composer/execution/SessionExecutionComposer.ts +2 -2
  1042. package/src/session/composer/history/SessionHistoryComposer.ts +2 -2
  1043. package/src/session/composer/history/SessionHistoryWriter.ts +2 -2
  1044. package/src/session/composer/history/jsonl/JsonlSessionHistoryComposer.ts +6 -6
  1045. package/src/session/composer/system/default/InitPromptAssets.ts +20 -0
  1046. package/src/session/composer/system/default/InitPrompts.ts +5 -46
  1047. package/src/session/composer/system/default/StaticPromptCatalog.ts +1 -1
  1048. package/src/session/composer/system/default/SystemDomain.ts +10 -43
  1049. package/src/session/composer/system/default/SystemPromptAssets.ts +26 -0
  1050. package/src/session/composer/system/default/assets/core.prompt.ts +9 -0
  1051. package/src/session/composer/system/default/assets/init/PROFILE.md.ts +9 -0
  1052. package/src/session/composer/system/default/assets/init/PROFILE.md.ts.txt +18 -0
  1053. package/src/session/composer/system/default/assets/init/SOUL.md.ts +9 -0
  1054. package/src/session/composer/system/default/assets/init/SOUL.md.ts.txt +89 -0
  1055. package/src/session/composer/system/default/assets/service.prompt.ts +9 -0
  1056. package/src/session/composer/system/default/assets/task.prompt.ts +9 -0
  1057. package/src/session/composer/system/default/variables/VariableReplacer.ts +2 -2
  1058. package/src/session/executors/local/LocalSessionCore.ts +4 -4
  1059. package/src/session/executors/local/LocalSessionExecutor.ts +2 -2
  1060. package/src/session/executors/local/SessionLoopDecision.ts +1 -1
  1061. package/src/session/executors/local/SessionSignals.ts +2 -2
  1062. package/src/session/messages/SessionAttachmentMapper.ts +1 -1
  1063. package/src/session/messages/SessionMessageCodec.ts +1 -1
  1064. package/src/session/messages/SessionMessageLog.ts +2 -2
  1065. package/src/session/messages/SessionStepEventMapper.ts +3 -3
  1066. package/src/session/tools/shell/ShellToolBridge.ts +2 -2
  1067. package/src/session/tools/shell/ShellToolDefinition.ts +2 -2
  1068. package/src/session/tools/shell/ShellToolFormatting.ts +1 -1
  1069. package/src/session/types/SessionExecutor.ts +33 -0
  1070. package/src/session/types/SessionMessages.ts +90 -0
  1071. package/src/session/types/SessionRun.ts +132 -0
  1072. package/src/utils/Template.ts +28 -0
  1073. package/src/utils/cli/CliOutput.ts +128 -0
  1074. package/src/utils/logger/Fetch.ts +93 -0
  1075. package/src/utils/logger/FormatRequest.ts +455 -0
  1076. package/src/utils/logger/FormatResponse.ts +265 -0
  1077. package/src/utils/logger/FormatShared.ts +258 -0
  1078. package/src/utils/logger/Logger.ts +372 -0
  1079. package/src/utils/storage/index.ts +26 -0
  1080. package/tsconfig.json +1 -2
  1081. package/tsconfig.tsbuildinfo +1 -1
  1082. package/bin/http/Server.d.ts.map +0 -1
  1083. package/bin/http/Server.js +0 -112
  1084. package/bin/http/Server.js.map +0 -1
  1085. package/bin/http/auth/AuthEnv.d.ts.map +0 -1
  1086. package/bin/http/auth/AuthEnv.js.map +0 -1
  1087. package/bin/http/auth/AuthError.d.ts.map +0 -1
  1088. package/bin/http/auth/AuthError.js.map +0 -1
  1089. package/bin/http/auth/CliAuthStateStore.d.ts.map +0 -1
  1090. package/bin/http/auth/CliAuthStateStore.js.map +0 -1
  1091. package/bin/http/auth/PasswordHasher.d.ts.map +0 -1
  1092. package/bin/http/auth/PasswordHasher.js.map +0 -1
  1093. package/bin/http/auth/TokenService.d.ts.map +0 -1
  1094. package/bin/http/auth/TokenService.js.map +0 -1
  1095. package/bin/http/control/AuthControlService.d.ts +0 -30
  1096. package/bin/http/control/AuthControlService.d.ts.map +0 -1
  1097. package/bin/http/control/AuthControlService.js +0 -120
  1098. package/bin/http/control/AuthControlService.js.map +0 -1
  1099. package/bin/http/control/CommonHelpers.d.ts.map +0 -1
  1100. package/bin/http/control/CommonHelpers.js.map +0 -1
  1101. package/bin/http/control/ControlApiRoutes.d.ts +0 -14
  1102. package/bin/http/control/ControlApiRoutes.d.ts.map +0 -1
  1103. package/bin/http/control/ControlApiRoutes.js +0 -27
  1104. package/bin/http/control/ControlApiRoutes.js.map +0 -1
  1105. package/bin/http/control/ControlAuthorizationRoutes.d.ts +0 -17
  1106. package/bin/http/control/ControlAuthorizationRoutes.d.ts.map +0 -1
  1107. package/bin/http/control/ControlAuthorizationRoutes.js +0 -85
  1108. package/bin/http/control/ControlAuthorizationRoutes.js.map +0 -1
  1109. package/bin/http/control/ControlRouter.d.ts +0 -19
  1110. package/bin/http/control/ControlRouter.d.ts.map +0 -1
  1111. package/bin/http/control/ControlRouter.js +0 -26
  1112. package/bin/http/control/ControlRouter.js.map +0 -1
  1113. package/bin/http/control/ExecuteBySession.d.ts +0 -39
  1114. package/bin/http/control/ExecuteBySession.d.ts.map +0 -1
  1115. package/bin/http/control/ExecuteBySession.js +0 -128
  1116. package/bin/http/control/ExecuteBySession.js.map +0 -1
  1117. package/bin/http/control/ExecuteInput.d.ts +0 -18
  1118. package/bin/http/control/ExecuteInput.d.ts.map +0 -1
  1119. package/bin/http/control/ExecuteInput.js +0 -201
  1120. package/bin/http/control/ExecuteInput.js.map +0 -1
  1121. package/bin/http/control/Helpers.d.ts.map +0 -1
  1122. package/bin/http/control/Helpers.js.map +0 -1
  1123. package/bin/http/control/MessageTimeline.d.ts +0 -22
  1124. package/bin/http/control/MessageTimeline.d.ts.map +0 -1
  1125. package/bin/http/control/MessageTimeline.js +0 -226
  1126. package/bin/http/control/MessageTimeline.js.map +0 -1
  1127. package/bin/http/control/ModelRoutes.d.ts +0 -13
  1128. package/bin/http/control/ModelRoutes.d.ts.map +0 -1
  1129. package/bin/http/control/ModelRoutes.js +0 -87
  1130. package/bin/http/control/ModelRoutes.js.map +0 -1
  1131. package/bin/http/control/OverviewRoutes.d.ts +0 -13
  1132. package/bin/http/control/OverviewRoutes.d.ts.map +0 -1
  1133. package/bin/http/control/OverviewRoutes.js +0 -93
  1134. package/bin/http/control/OverviewRoutes.js.map +0 -1
  1135. package/bin/http/control/SessionRoutes.d.ts +0 -14
  1136. package/bin/http/control/SessionRoutes.d.ts.map +0 -1
  1137. package/bin/http/control/SessionRoutes.js +0 -333
  1138. package/bin/http/control/SessionRoutes.js.map +0 -1
  1139. package/bin/http/control/SessionSummaryStore.d.ts +0 -19
  1140. package/bin/http/control/SessionSummaryStore.d.ts.map +0 -1
  1141. package/bin/http/control/SessionSummaryStore.js +0 -62
  1142. package/bin/http/control/SessionSummaryStore.js.map +0 -1
  1143. package/bin/http/control/TaskRoutes.d.ts +0 -13
  1144. package/bin/http/control/TaskRoutes.d.ts.map +0 -1
  1145. package/bin/http/control/TaskRoutes.js +0 -335
  1146. package/bin/http/control/TaskRoutes.js.map +0 -1
  1147. package/bin/http/control/TaskStore.d.ts +0 -33
  1148. package/bin/http/control/TaskStore.d.ts.map +0 -1
  1149. package/bin/http/control/TaskStore.js +0 -157
  1150. package/bin/http/control/TaskStore.js.map +0 -1
  1151. package/bin/http/execute/execute.d.ts.map +0 -1
  1152. package/bin/http/execute/execute.js +0 -90
  1153. package/bin/http/execute/execute.js.map +0 -1
  1154. package/bin/http/health/health.d.ts.map +0 -1
  1155. package/bin/http/health/health.js.map +0 -1
  1156. package/bin/http/plugins/plugins.d.ts.map +0 -1
  1157. package/bin/http/plugins/plugins.js +0 -55
  1158. package/bin/http/plugins/plugins.js.map +0 -1
  1159. package/bin/http/services/services.d.ts.map +0 -1
  1160. package/bin/http/services/services.js +0 -79
  1161. package/bin/http/services/services.js.map +0 -1
  1162. package/bin/http/static/static.d.ts.map +0 -1
  1163. package/bin/http/static/static.js +0 -97
  1164. package/bin/http/static/static.js.map +0 -1
  1165. package/bin/plugin/Activation.d.ts +0 -19
  1166. package/bin/plugin/Activation.d.ts.map +0 -1
  1167. package/bin/plugin/Activation.js.map +0 -1
  1168. package/bin/plugin/Catalog.d.ts +0 -42
  1169. package/bin/plugin/Catalog.d.ts.map +0 -1
  1170. package/bin/plugin/Catalog.js +0 -92
  1171. package/bin/plugin/Catalog.js.map +0 -1
  1172. package/bin/plugin/HookRegistry.d.ts +0 -68
  1173. package/bin/plugin/HookRegistry.d.ts.map +0 -1
  1174. package/bin/plugin/HookRegistry.js.map +0 -1
  1175. package/bin/plugin/HttpRoutes.d.ts +0 -22
  1176. package/bin/plugin/HttpRoutes.d.ts.map +0 -1
  1177. package/bin/plugin/HttpRoutes.js +0 -37
  1178. package/bin/plugin/HttpRoutes.js.map +0 -1
  1179. package/bin/plugin/LocalExecution.d.ts +0 -32
  1180. package/bin/plugin/LocalExecution.d.ts.map +0 -1
  1181. package/bin/plugin/LocalExecution.js +0 -148
  1182. package/bin/plugin/LocalExecution.js.map +0 -1
  1183. package/bin/plugin/PluginCommand.d.ts.map +0 -1
  1184. package/bin/plugin/PluginCommand.js +0 -188
  1185. package/bin/plugin/PluginCommand.js.map +0 -1
  1186. package/bin/plugin/PluginManager.d.ts +0 -24
  1187. package/bin/plugin/PluginManager.d.ts.map +0 -1
  1188. package/bin/plugin/PluginManager.js +0 -62
  1189. package/bin/plugin/PluginManager.js.map +0 -1
  1190. package/bin/plugin/PluginRegistry.d.ts +0 -66
  1191. package/bin/plugin/PluginRegistry.d.ts.map +0 -1
  1192. package/bin/plugin/PluginRegistry.js +0 -184
  1193. package/bin/plugin/PluginRegistry.js.map +0 -1
  1194. package/bin/plugin/Plugins.d.ts +0 -20
  1195. package/bin/plugin/Plugins.d.ts.map +0 -1
  1196. package/bin/plugin/Plugins.js +0 -33
  1197. package/bin/plugin/Plugins.js.map +0 -1
  1198. package/bin/plugin/ProjectConfigStore.d.ts +0 -30
  1199. package/bin/plugin/ProjectConfigStore.d.ts.map +0 -1
  1200. package/bin/plugin/ProjectConfigStore.js.map +0 -1
  1201. package/bin/plugins/asr/Dependency.d.ts +0 -77
  1202. package/bin/plugins/asr/Dependency.d.ts.map +0 -1
  1203. package/bin/plugins/asr/Dependency.js +0 -238
  1204. package/bin/plugins/asr/Dependency.js.map +0 -1
  1205. package/bin/plugins/asr/ModelCatalog.d.ts.map +0 -1
  1206. package/bin/plugins/asr/ModelCatalog.js +0 -25
  1207. package/bin/plugins/asr/ModelCatalog.js.map +0 -1
  1208. package/bin/plugins/asr/Plugin.d.ts +0 -14
  1209. package/bin/plugins/asr/Plugin.d.ts.map +0 -1
  1210. package/bin/plugins/asr/Plugin.js +0 -585
  1211. package/bin/plugins/asr/Plugin.js.map +0 -1
  1212. package/bin/plugins/auth/Plugin.d.ts +0 -14
  1213. package/bin/plugins/auth/Plugin.d.ts.map +0 -1
  1214. package/bin/plugins/auth/Plugin.js +0 -181
  1215. package/bin/plugins/auth/Plugin.js.map +0 -1
  1216. package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts +0 -41
  1217. package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts.map +0 -1
  1218. package/bin/plugins/auth/runtime/AuthorizationConfig.js +0 -187
  1219. package/bin/plugins/auth/runtime/AuthorizationConfig.js.map +0 -1
  1220. package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts +0 -30
  1221. package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts.map +0 -1
  1222. package/bin/plugins/auth/runtime/AuthorizationPolicy.js +0 -123
  1223. package/bin/plugins/auth/runtime/AuthorizationPolicy.js.map +0 -1
  1224. package/bin/plugins/auth/runtime/AuthorizationStore.d.ts +0 -29
  1225. package/bin/plugins/auth/runtime/AuthorizationStore.d.ts.map +0 -1
  1226. package/bin/plugins/auth/runtime/AuthorizationStore.js.map +0 -1
  1227. package/bin/plugins/skill/Action.d.ts +0 -34
  1228. package/bin/plugins/skill/Action.d.ts.map +0 -1
  1229. package/bin/plugins/skill/Action.js +0 -122
  1230. package/bin/plugins/skill/Action.js.map +0 -1
  1231. package/bin/plugins/skill/Command.d.ts.map +0 -1
  1232. package/bin/plugins/skill/Command.js +0 -70
  1233. package/bin/plugins/skill/Command.js.map +0 -1
  1234. package/bin/plugins/skill/Config.d.ts +0 -18
  1235. package/bin/plugins/skill/Config.d.ts.map +0 -1
  1236. package/bin/plugins/skill/Config.js.map +0 -1
  1237. package/bin/plugins/skill/Plugin.d.ts +0 -14
  1238. package/bin/plugins/skill/Plugin.d.ts.map +0 -1
  1239. package/bin/plugins/skill/Plugin.js +0 -315
  1240. package/bin/plugins/skill/Plugin.js.map +0 -1
  1241. package/bin/plugins/skill/runtime/Discovery.d.ts +0 -25
  1242. package/bin/plugins/skill/runtime/Discovery.d.ts.map +0 -1
  1243. package/bin/plugins/skill/runtime/Discovery.js.map +0 -1
  1244. package/bin/plugins/skill/runtime/Frontmatter.d.ts.map +0 -1
  1245. package/bin/plugins/skill/runtime/Frontmatter.js.map +0 -1
  1246. package/bin/plugins/skill/runtime/Paths.d.ts +0 -16
  1247. package/bin/plugins/skill/runtime/Paths.d.ts.map +0 -1
  1248. package/bin/plugins/skill/runtime/Paths.js.map +0 -1
  1249. package/bin/plugins/skill/runtime/Prompt.d.ts +0 -19
  1250. package/bin/plugins/skill/runtime/Prompt.d.ts.map +0 -1
  1251. package/bin/plugins/skill/runtime/Prompt.js +0 -54
  1252. package/bin/plugins/skill/runtime/Prompt.js.map +0 -1
  1253. package/bin/plugins/skill/runtime/Store.d.ts +0 -25
  1254. package/bin/plugins/skill/runtime/Store.d.ts.map +0 -1
  1255. package/bin/plugins/skill/runtime/Store.js.map +0 -1
  1256. package/bin/plugins/skill/runtime/SystemProvider.d.ts +0 -24
  1257. package/bin/plugins/skill/runtime/SystemProvider.d.ts.map +0 -1
  1258. package/bin/plugins/skill/runtime/SystemProvider.js +0 -33
  1259. package/bin/plugins/skill/runtime/SystemProvider.js.map +0 -1
  1260. package/bin/plugins/skill/runtime/Types.d.ts +0 -21
  1261. package/bin/plugins/skill/runtime/Types.d.ts.map +0 -1
  1262. package/bin/plugins/skill/runtime/Types.js.map +0 -1
  1263. package/bin/plugins/skill/runtime/Utils.d.ts.map +0 -1
  1264. package/bin/plugins/skill/runtime/Utils.js.map +0 -1
  1265. package/bin/plugins/tts/Dependency.d.ts +0 -90
  1266. package/bin/plugins/tts/Dependency.d.ts.map +0 -1
  1267. package/bin/plugins/tts/Dependency.js +0 -344
  1268. package/bin/plugins/tts/Dependency.js.map +0 -1
  1269. package/bin/plugins/tts/Plugin.d.ts +0 -13
  1270. package/bin/plugins/tts/Plugin.d.ts.map +0 -1
  1271. package/bin/plugins/tts/Plugin.js +0 -523
  1272. package/bin/plugins/tts/Plugin.js.map +0 -1
  1273. package/bin/plugins/tts/runtime/Catalog.d.ts +0 -21
  1274. package/bin/plugins/tts/runtime/Catalog.d.ts.map +0 -1
  1275. package/bin/plugins/tts/runtime/Catalog.js.map +0 -1
  1276. package/bin/plugins/tts/runtime/DependencyInstaller.d.ts +0 -143
  1277. package/bin/plugins/tts/runtime/DependencyInstaller.d.ts.map +0 -1
  1278. package/bin/plugins/tts/runtime/DependencyInstaller.js.map +0 -1
  1279. package/bin/plugins/tts/runtime/Installer.d.ts +0 -89
  1280. package/bin/plugins/tts/runtime/Installer.d.ts.map +0 -1
  1281. package/bin/plugins/tts/runtime/Installer.js.map +0 -1
  1282. package/bin/plugins/tts/runtime/Paths.d.ts.map +0 -1
  1283. package/bin/plugins/tts/runtime/Paths.js.map +0 -1
  1284. package/bin/plugins/tts/runtime/Synthesizer.d.ts +0 -44
  1285. package/bin/plugins/tts/runtime/Synthesizer.d.ts.map +0 -1
  1286. package/bin/plugins/tts/runtime/Synthesizer.js +0 -363
  1287. package/bin/plugins/tts/runtime/Synthesizer.js.map +0 -1
  1288. package/bin/plugins/voice/Dependency.d.ts +0 -77
  1289. package/bin/plugins/voice/Dependency.d.ts.map +0 -1
  1290. package/bin/plugins/voice/Dependency.js +0 -237
  1291. package/bin/plugins/voice/Dependency.js.map +0 -1
  1292. package/bin/plugins/voice/ModelCatalog.d.ts.map +0 -1
  1293. package/bin/plugins/voice/ModelCatalog.js +0 -25
  1294. package/bin/plugins/voice/ModelCatalog.js.map +0 -1
  1295. package/bin/plugins/voice/Plugin.d.ts +0 -14
  1296. package/bin/plugins/voice/Plugin.d.ts.map +0 -1
  1297. package/bin/plugins/voice/Plugin.js +0 -546
  1298. package/bin/plugins/voice/Plugin.js.map +0 -1
  1299. package/bin/plugins/voice/runtime/Catalog.d.ts +0 -18
  1300. package/bin/plugins/voice/runtime/Catalog.d.ts.map +0 -1
  1301. package/bin/plugins/voice/runtime/Catalog.js.map +0 -1
  1302. package/bin/plugins/voice/runtime/DependencyInstaller.d.ts +0 -145
  1303. package/bin/plugins/voice/runtime/DependencyInstaller.d.ts.map +0 -1
  1304. package/bin/plugins/voice/runtime/DependencyInstaller.js.map +0 -1
  1305. package/bin/plugins/voice/runtime/Installer.d.ts +0 -94
  1306. package/bin/plugins/voice/runtime/Installer.d.ts.map +0 -1
  1307. package/bin/plugins/voice/runtime/Installer.js.map +0 -1
  1308. package/bin/plugins/voice/runtime/Paths.d.ts.map +0 -1
  1309. package/bin/plugins/voice/runtime/Paths.js.map +0 -1
  1310. package/bin/plugins/voice/runtime/Transcriber.d.ts +0 -57
  1311. package/bin/plugins/voice/runtime/Transcriber.d.ts.map +0 -1
  1312. package/bin/plugins/voice/runtime/Transcriber.js.map +0 -1
  1313. package/bin/plugins/web/Dependency.d.ts +0 -10
  1314. package/bin/plugins/web/Dependency.d.ts.map +0 -1
  1315. package/bin/plugins/web/Dependency.js +0 -10
  1316. package/bin/plugins/web/Dependency.js.map +0 -1
  1317. package/bin/plugins/web/Plugin.d.ts +0 -13
  1318. package/bin/plugins/web/Plugin.d.ts.map +0 -1
  1319. package/bin/plugins/web/Plugin.js +0 -481
  1320. package/bin/plugins/web/Plugin.js.map +0 -1
  1321. package/bin/plugins/web/runtime/Config.d.ts +0 -21
  1322. package/bin/plugins/web/runtime/Config.d.ts.map +0 -1
  1323. package/bin/plugins/web/runtime/Config.js +0 -79
  1324. package/bin/plugins/web/runtime/Config.js.map +0 -1
  1325. package/bin/plugins/web/runtime/Source.d.ts +0 -29
  1326. package/bin/plugins/web/runtime/Source.d.ts.map +0 -1
  1327. package/bin/plugins/web/runtime/Source.js +0 -215
  1328. package/bin/plugins/web/runtime/Source.js.map +0 -1
  1329. package/bin/plugins/workboard/Plugin.d.ts +0 -13
  1330. package/bin/plugins/workboard/Plugin.d.ts.map +0 -1
  1331. package/bin/plugins/workboard/Plugin.js +0 -71
  1332. package/bin/plugins/workboard/Plugin.js.map +0 -1
  1333. package/bin/plugins/workboard/runtime/Collector.d.ts +0 -14
  1334. package/bin/plugins/workboard/runtime/Collector.d.ts.map +0 -1
  1335. package/bin/plugins/workboard/runtime/Collector.js +0 -62
  1336. package/bin/plugins/workboard/runtime/Collector.js.map +0 -1
  1337. package/bin/plugins/workboard/runtime/Normalizer.d.ts +0 -61
  1338. package/bin/plugins/workboard/runtime/Normalizer.d.ts.map +0 -1
  1339. package/bin/plugins/workboard/runtime/Normalizer.js.map +0 -1
  1340. package/bin/plugins/workboard/runtime/Store.d.ts +0 -48
  1341. package/bin/plugins/workboard/runtime/Store.d.ts.map +0 -1
  1342. package/bin/plugins/workboard/runtime/Store.js +0 -84
  1343. package/bin/plugins/workboard/runtime/Store.js.map +0 -1
  1344. package/bin/plugins/workboard/types/Workboard.d.ts.map +0 -1
  1345. package/bin/plugins/workboard/types/Workboard.js.map +0 -1
  1346. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.txt +0 -1
  1347. package/bin/session/composer/system/default/assets/init/PROFILE.md.txt +0 -17
  1348. package/bin/session/composer/system/default/assets/init/SOUL.md.txt +0 -88
  1349. package/bin/shared/constants/DowncityDefault.d.ts +0 -3
  1350. package/bin/shared/constants/DowncityDefault.d.ts.map +0 -1
  1351. package/bin/shared/constants/DowncityDefault.js.map +0 -1
  1352. package/bin/shared/constants/DowncitySchema.d.ts +0 -3
  1353. package/bin/shared/constants/DowncitySchema.d.ts.map +0 -1
  1354. package/bin/shared/constants/DowncitySchema.js.map +0 -1
  1355. package/bin/shared/types/AgentHost.d.ts +0 -188
  1356. package/bin/shared/types/AgentHost.d.ts.map +0 -1
  1357. package/bin/shared/types/AgentHost.js.map +0 -1
  1358. package/bin/shared/types/AgentProject.d.ts +0 -80
  1359. package/bin/shared/types/AgentProject.d.ts.map +0 -1
  1360. package/bin/shared/types/AgentProject.js.map +0 -1
  1361. package/bin/shared/types/AuthControl.d.ts +0 -30
  1362. package/bin/shared/types/AuthControl.d.ts.map +0 -1
  1363. package/bin/shared/types/AuthControl.js.map +0 -1
  1364. package/bin/shared/types/AuthPlugin.d.ts +0 -407
  1365. package/bin/shared/types/AuthPlugin.d.ts.map +0 -1
  1366. package/bin/shared/types/AuthPlugin.js +0 -115
  1367. package/bin/shared/types/AuthPlugin.js.map +0 -1
  1368. package/bin/shared/types/ChatPlugin.d.ts +0 -238
  1369. package/bin/shared/types/ChatPlugin.d.ts.map +0 -1
  1370. package/bin/shared/types/ChatPlugin.js.map +0 -1
  1371. package/bin/shared/types/ChatPromptContext.d.ts +0 -125
  1372. package/bin/shared/types/ChatPromptContext.d.ts.map +0 -1
  1373. package/bin/shared/types/ChatPromptContext.js.map +0 -1
  1374. package/bin/shared/types/ChatQueueWorker.d.ts.map +0 -1
  1375. package/bin/shared/types/ChatQueueWorker.js.map +0 -1
  1376. package/bin/shared/types/ChatRuntime.d.ts +0 -32
  1377. package/bin/shared/types/ChatRuntime.d.ts.map +0 -1
  1378. package/bin/shared/types/ChatRuntime.js.map +0 -1
  1379. package/bin/shared/types/ChatService.d.ts +0 -145
  1380. package/bin/shared/types/ChatService.d.ts.map +0 -1
  1381. package/bin/shared/types/ChatService.js.map +0 -1
  1382. package/bin/shared/types/ClaudeSkill.d.ts +0 -63
  1383. package/bin/shared/types/ClaudeSkill.d.ts.map +0 -1
  1384. package/bin/shared/types/ClaudeSkill.js.map +0 -1
  1385. package/bin/shared/types/ControlRoutes.d.ts +0 -28
  1386. package/bin/shared/types/ControlRoutes.d.ts.map +0 -1
  1387. package/bin/shared/types/ControlRoutes.js.map +0 -1
  1388. package/bin/shared/types/ControlSessionExecute.d.ts.map +0 -1
  1389. package/bin/shared/types/ControlSessionExecute.js.map +0 -1
  1390. package/bin/shared/types/ControlViewData.d.ts +0 -320
  1391. package/bin/shared/types/ControlViewData.d.ts.map +0 -1
  1392. package/bin/shared/types/ControlViewData.js.map +0 -1
  1393. package/bin/shared/types/Daemon.d.ts.map +0 -1
  1394. package/bin/shared/types/Daemon.js.map +0 -1
  1395. package/bin/shared/types/DowncityConfig.d.ts +0 -214
  1396. package/bin/shared/types/DowncityConfig.d.ts.map +0 -1
  1397. package/bin/shared/types/DowncityConfig.js.map +0 -1
  1398. package/bin/shared/types/ExecutionBinding.d.ts.map +0 -1
  1399. package/bin/shared/types/ExecutionBinding.js.map +0 -1
  1400. package/bin/shared/types/FeishuChannel.d.ts.map +0 -1
  1401. package/bin/shared/types/FeishuChannel.js.map +0 -1
  1402. package/bin/shared/types/InlineInstant.d.ts.map +0 -1
  1403. package/bin/shared/types/InlineInstant.js.map +0 -1
  1404. package/bin/shared/types/Json.d.ts.map +0 -1
  1405. package/bin/shared/types/Json.js.map +0 -1
  1406. package/bin/shared/types/LlmConfig.d.ts.map +0 -1
  1407. package/bin/shared/types/LlmConfig.js.map +0 -1
  1408. package/bin/shared/types/LocalRpc.d.ts +0 -69
  1409. package/bin/shared/types/LocalRpc.d.ts.map +0 -1
  1410. package/bin/shared/types/LocalRpc.js.map +0 -1
  1411. package/bin/shared/types/ModelBinding.d.ts.map +0 -1
  1412. package/bin/shared/types/ModelBinding.js.map +0 -1
  1413. package/bin/shared/types/Platform.d.ts.map +0 -1
  1414. package/bin/shared/types/Platform.js.map +0 -1
  1415. package/bin/shared/types/PlatformGateway.d.ts.map +0 -1
  1416. package/bin/shared/types/PlatformGateway.js.map +0 -1
  1417. package/bin/shared/types/Plugin.d.ts +0 -697
  1418. package/bin/shared/types/Plugin.d.ts.map +0 -1
  1419. package/bin/shared/types/Plugin.js.map +0 -1
  1420. package/bin/shared/types/PluginApi.d.ts +0 -155
  1421. package/bin/shared/types/PluginApi.d.ts.map +0 -1
  1422. package/bin/shared/types/PluginApi.js.map +0 -1
  1423. package/bin/shared/types/PluginLifecycle.d.ts.map +0 -1
  1424. package/bin/shared/types/PluginLifecycle.js.map +0 -1
  1425. package/bin/shared/types/QqChannel.d.ts +0 -485
  1426. package/bin/shared/types/QqChannel.d.ts.map +0 -1
  1427. package/bin/shared/types/QqChannel.js.map +0 -1
  1428. package/bin/shared/types/QqGatewaySupport.d.ts.map +0 -1
  1429. package/bin/shared/types/QqGatewaySupport.js.map +0 -1
  1430. package/bin/shared/types/Sandbox.d.ts +0 -130
  1431. package/bin/shared/types/Sandbox.d.ts.map +0 -1
  1432. package/bin/shared/types/Sandbox.js +0 -10
  1433. package/bin/shared/types/Sandbox.js.map +0 -1
  1434. package/bin/shared/types/Service.d.ts +0 -205
  1435. package/bin/shared/types/Service.d.ts.map +0 -1
  1436. package/bin/shared/types/Service.js +0 -10
  1437. package/bin/shared/types/Service.js.map +0 -1
  1438. package/bin/shared/types/ServiceSchedule.d.ts +0 -114
  1439. package/bin/shared/types/ServiceSchedule.d.ts.map +0 -1
  1440. package/bin/shared/types/ServiceSchedule.js.map +0 -1
  1441. package/bin/shared/types/ServiceState.d.ts +0 -104
  1442. package/bin/shared/types/ServiceState.d.ts.map +0 -1
  1443. package/bin/shared/types/ServiceState.js.map +0 -1
  1444. package/bin/shared/types/Services.d.ts +0 -94
  1445. package/bin/shared/types/Services.d.ts.map +0 -1
  1446. package/bin/shared/types/Services.js.map +0 -1
  1447. package/bin/shared/types/Shell.d.ts.map +0 -1
  1448. package/bin/shared/types/Shell.js.map +0 -1
  1449. package/bin/shared/types/SkillCommand.d.ts.map +0 -1
  1450. package/bin/shared/types/SkillCommand.js.map +0 -1
  1451. package/bin/shared/types/SkillPlugin.d.ts.map +0 -1
  1452. package/bin/shared/types/SkillPlugin.js.map +0 -1
  1453. package/bin/shared/types/SkillRoot.d.ts.map +0 -1
  1454. package/bin/shared/types/SkillRoot.js.map +0 -1
  1455. package/bin/shared/types/Start.d.ts.map +0 -1
  1456. package/bin/shared/types/Start.js.map +0 -1
  1457. package/bin/shared/types/Store.d.ts +0 -408
  1458. package/bin/shared/types/Store.d.ts.map +0 -1
  1459. package/bin/shared/types/Store.js.map +0 -1
  1460. package/bin/shared/types/TaskService.d.ts +0 -52
  1461. package/bin/shared/types/TaskService.d.ts.map +0 -1
  1462. package/bin/shared/types/TaskService.js +0 -9
  1463. package/bin/shared/types/TaskService.js.map +0 -1
  1464. package/bin/shared/types/Template.d.ts.map +0 -1
  1465. package/bin/shared/types/Template.js.map +0 -1
  1466. package/bin/shared/types/Tts.d.ts.map +0 -1
  1467. package/bin/shared/types/Tts.js.map +0 -1
  1468. package/bin/shared/types/TtsPlugin.d.ts +0 -161
  1469. package/bin/shared/types/TtsPlugin.d.ts.map +0 -1
  1470. package/bin/shared/types/TtsPlugin.js.map +0 -1
  1471. package/bin/shared/types/Voice.d.ts.map +0 -1
  1472. package/bin/shared/types/Voice.js.map +0 -1
  1473. package/bin/shared/types/VoicePlugin.d.ts +0 -190
  1474. package/bin/shared/types/VoicePlugin.d.ts.map +0 -1
  1475. package/bin/shared/types/VoicePlugin.js.map +0 -1
  1476. package/bin/shared/types/WebPlugin.d.ts +0 -133
  1477. package/bin/shared/types/WebPlugin.d.ts.map +0 -1
  1478. package/bin/shared/types/WebPlugin.js.map +0 -1
  1479. package/bin/shared/types/auth/AuthPermission.d.ts.map +0 -1
  1480. package/bin/shared/types/auth/AuthPermission.js.map +0 -1
  1481. package/bin/shared/types/auth/AuthRoute.d.ts.map +0 -1
  1482. package/bin/shared/types/auth/AuthRoute.js.map +0 -1
  1483. package/bin/shared/types/auth/AuthToken.d.ts.map +0 -1
  1484. package/bin/shared/types/auth/AuthToken.js.map +0 -1
  1485. package/bin/shared/types/auth/AuthTypes.d.ts.map +0 -1
  1486. package/bin/shared/types/auth/AuthTypes.js.map +0 -1
  1487. package/bin/shared/utils/Id.d.ts.map +0 -1
  1488. package/bin/shared/utils/Id.js.map +0 -1
  1489. package/bin/shared/utils/Template.d.ts +0 -17
  1490. package/bin/shared/utils/Template.d.ts.map +0 -1
  1491. package/bin/shared/utils/Template.js.map +0 -1
  1492. package/bin/shared/utils/Time.d.ts.map +0 -1
  1493. package/bin/shared/utils/Time.js.map +0 -1
  1494. package/bin/shared/utils/cli/Checker.d.ts.map +0 -1
  1495. package/bin/shared/utils/cli/Checker.js.map +0 -1
  1496. package/bin/shared/utils/cli/CliOutput.d.ts.map +0 -1
  1497. package/bin/shared/utils/cli/CliOutput.js +0 -98
  1498. package/bin/shared/utils/cli/CliOutput.js.map +0 -1
  1499. package/bin/shared/utils/cli/PrettyStatus.d.ts.map +0 -1
  1500. package/bin/shared/utils/cli/PrettyStatus.js.map +0 -1
  1501. package/bin/shared/utils/logger/Fetch.d.ts +0 -14
  1502. package/bin/shared/utils/logger/Fetch.d.ts.map +0 -1
  1503. package/bin/shared/utils/logger/Fetch.js.map +0 -1
  1504. package/bin/shared/utils/logger/Format.d.ts.map +0 -1
  1505. package/bin/shared/utils/logger/Format.js.map +0 -1
  1506. package/bin/shared/utils/logger/FormatRequest.d.ts +0 -29
  1507. package/bin/shared/utils/logger/FormatRequest.d.ts.map +0 -1
  1508. package/bin/shared/utils/logger/FormatRequest.js.map +0 -1
  1509. package/bin/shared/utils/logger/FormatResponse.d.ts +0 -46
  1510. package/bin/shared/utils/logger/FormatResponse.d.ts.map +0 -1
  1511. package/bin/shared/utils/logger/FormatResponse.js.map +0 -1
  1512. package/bin/shared/utils/logger/FormatShared.d.ts +0 -33
  1513. package/bin/shared/utils/logger/FormatShared.d.ts.map +0 -1
  1514. package/bin/shared/utils/logger/FormatShared.js.map +0 -1
  1515. package/bin/shared/utils/logger/Logger.d.ts +0 -101
  1516. package/bin/shared/utils/logger/Logger.d.ts.map +0 -1
  1517. package/bin/shared/utils/logger/Logger.js +0 -308
  1518. package/bin/shared/utils/logger/Logger.js.map +0 -1
  1519. package/bin/shared/utils/storage/index.d.ts +0 -5
  1520. package/bin/shared/utils/storage/index.d.ts.map +0 -1
  1521. package/bin/shared/utils/storage/index.js.map +0 -1
  1522. package/bin/types/sandbox/SandboxRuntime.d.ts +0 -318
  1523. package/bin/types/sandbox/SandboxRuntime.d.ts.map +0 -1
  1524. package/bin/types/sandbox/SandboxRuntime.js.map +0 -1
  1525. package/bin/types/session/SessionExecutor.d.ts +0 -18
  1526. package/bin/types/session/SessionExecutor.d.ts.map +0 -1
  1527. package/bin/types/session/SessionExecutor.js.map +0 -1
  1528. package/bin/types/session/SessionHistoryMeta.d.ts.map +0 -1
  1529. package/bin/types/session/SessionHistoryMeta.js.map +0 -1
  1530. package/bin/types/session/SessionHistoryPaths.d.ts.map +0 -1
  1531. package/bin/types/session/SessionHistoryPaths.js.map +0 -1
  1532. package/bin/types/session/SessionLoop.d.ts.map +0 -1
  1533. package/bin/types/session/SessionLoop.js.map +0 -1
  1534. package/bin/types/session/SessionMessages.d.ts +0 -83
  1535. package/bin/types/session/SessionMessages.d.ts.map +0 -1
  1536. package/bin/types/session/SessionMessages.js.map +0 -1
  1537. package/bin/types/session/SessionPrompts.d.ts.map +0 -1
  1538. package/bin/types/session/SessionPrompts.js.map +0 -1
  1539. package/bin/types/session/SessionRun.d.ts +0 -112
  1540. package/bin/types/session/SessionRun.d.ts.map +0 -1
  1541. package/bin/types/session/SessionRun.js.map +0 -1
  1542. package/scripts/copy-prompt-assets.mjs +0 -72
  1543. package/src/http/Server.ts +0 -157
  1544. package/src/http/control/AuthControlService.ts +0 -161
  1545. package/src/http/control/ControlApiRoutes.ts +0 -31
  1546. package/src/http/control/ControlAuthorizationRoutes.ts +0 -108
  1547. package/src/http/control/ControlRouter.ts +0 -31
  1548. package/src/http/control/ExecuteBySession.ts +0 -151
  1549. package/src/http/control/ExecuteInput.ts +0 -236
  1550. package/src/http/control/MessageTimeline.ts +0 -269
  1551. package/src/http/control/ModelRoutes.ts +0 -101
  1552. package/src/http/control/OverviewRoutes.ts +0 -106
  1553. package/src/http/control/SessionRoutes.ts +0 -414
  1554. package/src/http/control/SessionSummaryStore.ts +0 -76
  1555. package/src/http/control/TaskRoutes.ts +0 -391
  1556. package/src/http/control/TaskStore.ts +0 -222
  1557. package/src/plugin/Activation.ts +0 -26
  1558. package/src/plugin/Catalog.ts +0 -118
  1559. package/src/plugin/HookRegistry.ts +0 -249
  1560. package/src/plugin/HttpRoutes.ts +0 -50
  1561. package/src/plugin/LocalExecution.ts +0 -179
  1562. package/src/plugin/PluginCommand.ts +0 -219
  1563. package/src/plugin/PluginManager.ts +0 -66
  1564. package/src/plugin/PluginRegistry.ts +0 -244
  1565. package/src/plugin/Plugins.ts +0 -39
  1566. package/src/plugin/ProjectConfigStore.ts +0 -58
  1567. package/src/plugins/asr/Dependency.ts +0 -336
  1568. package/src/plugins/asr/ModelCatalog.ts +0 -43
  1569. package/src/plugins/asr/Plugin.ts +0 -639
  1570. package/src/plugins/auth/Plugin.ts +0 -209
  1571. package/src/plugins/auth/runtime/AuthorizationConfig.ts +0 -265
  1572. package/src/plugins/auth/runtime/AuthorizationPolicy.ts +0 -168
  1573. package/src/plugins/auth/runtime/AuthorizationStore.ts +0 -219
  1574. package/src/plugins/skill/Action.ts +0 -159
  1575. package/src/plugins/skill/Command.ts +0 -98
  1576. package/src/plugins/skill/Config.ts +0 -51
  1577. package/src/plugins/skill/PROMPT.txt +0 -10
  1578. package/src/plugins/skill/Plugin.ts +0 -355
  1579. package/src/plugins/skill/runtime/Discovery.ts +0 -141
  1580. package/src/plugins/skill/runtime/Paths.ts +0 -130
  1581. package/src/plugins/skill/runtime/Prompt.ts +0 -67
  1582. package/src/plugins/skill/runtime/Store.ts +0 -95
  1583. package/src/plugins/skill/runtime/SystemProvider.ts +0 -52
  1584. package/src/plugins/skill/runtime/Types.ts +0 -22
  1585. package/src/plugins/tts/Dependency.ts +0 -473
  1586. package/src/plugins/tts/Plugin.ts +0 -553
  1587. package/src/plugins/tts/runtime/Catalog.ts +0 -97
  1588. package/src/plugins/tts/runtime/DependencyInstaller.ts +0 -436
  1589. package/src/plugins/tts/runtime/Installer.ts +0 -297
  1590. package/src/plugins/tts/runtime/Synthesizer.ts +0 -480
  1591. package/src/plugins/voice/Dependency.ts +0 -329
  1592. package/src/plugins/voice/ModelCatalog.ts +0 -43
  1593. package/src/plugins/voice/Plugin.ts +0 -599
  1594. package/src/plugins/voice/runtime/Catalog.ts +0 -68
  1595. package/src/plugins/voice/runtime/DependencyInstaller.ts +0 -505
  1596. package/src/plugins/voice/runtime/Installer.ts +0 -324
  1597. package/src/plugins/voice/runtime/Transcriber.ts +0 -467
  1598. package/src/plugins/web/Dependency.ts +0 -17
  1599. package/src/plugins/web/PROMPT.agent-browser.txt +0 -17
  1600. package/src/plugins/web/PROMPT.txt +0 -33
  1601. package/src/plugins/web/PROMPT.web-access.txt +0 -13
  1602. package/src/plugins/web/Plugin.ts +0 -515
  1603. package/src/plugins/web/runtime/Config.ts +0 -105
  1604. package/src/plugins/web/runtime/Source.ts +0 -263
  1605. package/src/plugins/workboard/Plugin.ts +0 -81
  1606. package/src/plugins/workboard/runtime/Collector.ts +0 -78
  1607. package/src/plugins/workboard/runtime/Normalizer.ts +0 -213
  1608. package/src/plugins/workboard/runtime/Store.ts +0 -110
  1609. package/src/service/builtins/chat/PROMPT.direct.txt +0 -55
  1610. package/src/service/builtins/chat/channels/feishu/PROMPT.direct.txt +0 -5
  1611. package/src/service/builtins/chat/channels/qq/PROMPT.direct.txt +0 -11
  1612. package/src/service/builtins/chat/channels/telegram/PROMPT.direct.txt +0 -1
  1613. package/src/service/builtins/contact/PROMPT.txt +0 -25
  1614. package/src/service/builtins/task/PROMPT.txt +0 -237
  1615. package/src/session/composer/system/default/assets/core.prompt.txt +0 -39
  1616. package/src/session/composer/system/default/assets/init/PROFILE.md.txt +0 -17
  1617. package/src/session/composer/system/default/assets/init/SOUL.md.txt +0 -88
  1618. package/src/session/composer/system/default/assets/service.prompt.txt +0 -29
  1619. package/src/session/composer/system/default/assets/task.prompt.txt +0 -33
  1620. package/src/shared/constants/DowncityDefault.ts +0 -38
  1621. package/src/shared/constants/DowncitySchema.ts +0 -377
  1622. package/src/shared/types/AgentHost.ts +0 -208
  1623. package/src/shared/types/AgentProject.ts +0 -92
  1624. package/src/shared/types/AuthControl.ts +0 -38
  1625. package/src/shared/types/ChatPromptContext.ts +0 -139
  1626. package/src/shared/types/ChatService.ts +0 -165
  1627. package/src/shared/types/ClaudeSkill.ts +0 -64
  1628. package/src/shared/types/ControlViewData.ts +0 -392
  1629. package/src/shared/types/DowncityConfig.ts +0 -215
  1630. package/src/shared/types/LocalRpc.ts +0 -72
  1631. package/src/shared/types/Plugin.ts +0 -748
  1632. package/src/shared/types/PluginApi.ts +0 -161
  1633. package/src/shared/types/QqChannel.ts +0 -501
  1634. package/src/shared/types/README.md +0 -56
  1635. package/src/shared/types/Sandbox.ts +0 -144
  1636. package/src/shared/types/Service.ts +0 -223
  1637. package/src/shared/types/ServiceSchedule.ts +0 -134
  1638. package/src/shared/types/ServiceState.ts +0 -112
  1639. package/src/shared/types/Services.ts +0 -100
  1640. package/src/shared/types/Store.ts +0 -422
  1641. package/src/shared/types/TaskService.ts +0 -55
  1642. package/src/shared/types/TtsPlugin.ts +0 -164
  1643. package/src/shared/types/VoicePlugin.ts +0 -194
  1644. package/src/shared/types/WebPlugin.ts +0 -141
  1645. package/src/shared/utils/README.md +0 -49
  1646. package/src/shared/utils/Template.ts +0 -28
  1647. package/src/shared/utils/cli/CliOutput.ts +0 -128
  1648. package/src/shared/utils/logger/Fetch.ts +0 -93
  1649. package/src/shared/utils/logger/FormatRequest.ts +0 -455
  1650. package/src/shared/utils/logger/FormatResponse.ts +0 -265
  1651. package/src/shared/utils/logger/FormatShared.ts +0 -258
  1652. package/src/shared/utils/logger/Logger.ts +0 -372
  1653. package/src/shared/utils/storage/index.ts +0 -26
  1654. package/src/types/sandbox/SandboxRuntime.ts +0 -377
  1655. package/src/types/session/SessionExecutor.ts +0 -33
  1656. package/src/types/session/SessionMessages.ts +0 -90
  1657. package/src/types/session/SessionRun.ts +0 -132
  1658. /package/bin/{shared → agent/project}/types/AgentProject.js +0 -0
  1659. /package/bin/{shared/constants → config}/DowncityDefault.js +0 -0
  1660. /package/bin/{shared/constants → config}/DowncitySchema.js +0 -0
  1661. /package/bin/{shared → config}/types/DowncityConfig.js +0 -0
  1662. /package/bin/{shared → config}/types/ExecutionBinding.d.ts +0 -0
  1663. /package/bin/{shared → config}/types/ExecutionBinding.js +0 -0
  1664. /package/bin/{shared → config}/types/LlmConfig.d.ts +0 -0
  1665. /package/bin/{shared → config}/types/LlmConfig.js +0 -0
  1666. /package/bin/{shared → config}/types/ModelBinding.d.ts +0 -0
  1667. /package/bin/{shared → config}/types/ModelBinding.js +0 -0
  1668. /package/bin/{shared → config}/types/Start.d.ts +0 -0
  1669. /package/bin/{shared → config}/types/Start.js +0 -0
  1670. /package/bin/{shared → host/daemon}/types/Daemon.d.ts +0 -0
  1671. /package/bin/{shared → host/daemon}/types/Daemon.js +0 -0
  1672. /package/bin/{http → host/http}/Server.d.ts +0 -0
  1673. /package/bin/{http → host/http}/auth/AuthEnv.d.ts +0 -0
  1674. /package/bin/{http → host/http}/auth/AuthEnv.js +0 -0
  1675. /package/bin/{http → host/http}/auth/AuthError.d.ts +0 -0
  1676. /package/bin/{http → host/http}/auth/AuthError.js +0 -0
  1677. /package/bin/{http → host/http}/auth/CliAuthStateStore.d.ts +0 -0
  1678. /package/bin/{http → host/http}/auth/CliAuthStateStore.js +0 -0
  1679. /package/bin/{http → host/http}/auth/PasswordHasher.d.ts +0 -0
  1680. /package/bin/{http → host/http}/auth/PasswordHasher.js +0 -0
  1681. /package/bin/{http → host/http}/auth/TokenService.d.ts +0 -0
  1682. /package/bin/{http → host/http}/auth/TokenService.js +0 -0
  1683. /package/bin/{shared/types/auth → host/http/auth/types}/AuthPermission.d.ts +0 -0
  1684. /package/bin/{shared/types/auth → host/http/auth/types}/AuthPermission.js +0 -0
  1685. /package/bin/{shared/types/auth → host/http/auth/types}/AuthRoute.d.ts +0 -0
  1686. /package/bin/{shared/types/auth → host/http/auth/types}/AuthRoute.js +0 -0
  1687. /package/bin/{shared/types/auth → host/http/auth/types}/AuthToken.d.ts +0 -0
  1688. /package/bin/{shared/types/auth → host/http/auth/types}/AuthToken.js +0 -0
  1689. /package/bin/{shared/types/auth → host/http/auth/types}/AuthTypes.d.ts +0 -0
  1690. /package/bin/{shared/types/auth → host/http/auth/types}/AuthTypes.js +0 -0
  1691. /package/bin/{http → host/http}/control/CommonHelpers.d.ts +0 -0
  1692. /package/bin/{http → host/http}/control/CommonHelpers.js +0 -0
  1693. /package/bin/{http → host/http}/control/Helpers.d.ts +0 -0
  1694. /package/bin/{http → host/http}/control/Helpers.js +0 -0
  1695. /package/bin/{shared → host/http/control}/types/AuthControl.js +0 -0
  1696. /package/bin/{shared → host/http/control}/types/ControlRoutes.js +0 -0
  1697. /package/bin/{shared → host/http/control}/types/ControlSessionExecute.d.ts +0 -0
  1698. /package/bin/{shared → host/http/control}/types/ControlSessionExecute.js +0 -0
  1699. /package/bin/{shared → host/http/control}/types/ControlViewData.js +0 -0
  1700. /package/bin/{http → host/http}/execute/execute.d.ts +0 -0
  1701. /package/bin/{shared → host/http/execute}/types/InlineInstant.d.ts +0 -0
  1702. /package/bin/{shared → host/http/execute}/types/InlineInstant.js +0 -0
  1703. /package/bin/{http → host/http}/health/health.d.ts +0 -0
  1704. /package/bin/{http → host/http}/health/health.js +0 -0
  1705. /package/bin/{http → host/http}/plugins/plugins.d.ts +0 -0
  1706. /package/bin/{http → host/http}/services/services.d.ts +0 -0
  1707. /package/bin/{http → host/http}/static/static.d.ts +0 -0
  1708. /package/bin/{shared → host/rpc}/types/LocalRpc.js +0 -0
  1709. /package/bin/{shared → host/runtime}/types/Platform.d.ts +0 -0
  1710. /package/bin/{shared → host/runtime}/types/Platform.js +0 -0
  1711. /package/bin/{shared → host/runtime}/types/PlatformGateway.d.ts +0 -0
  1712. /package/bin/{shared → host/runtime}/types/PlatformGateway.js +0 -0
  1713. /package/bin/{shared → host}/types/AgentHost.js +0 -0
  1714. /package/bin/{shared → host}/types/Store.js +0 -0
  1715. /package/bin/{plugins → plugin/builtins}/asr/ModelCatalog.d.ts +0 -0
  1716. /package/bin/{plugins → plugin/builtins}/auth/runtime/AuthorizationStore.js +0 -0
  1717. /package/bin/{plugins → plugin/builtins}/skill/Command.d.ts +0 -0
  1718. /package/bin/{plugins → plugin/builtins}/skill/Config.js +0 -0
  1719. /package/bin/{plugins → plugin/builtins}/skill/runtime/Discovery.js +0 -0
  1720. /package/bin/{plugins → plugin/builtins}/skill/runtime/Frontmatter.d.ts +0 -0
  1721. /package/bin/{plugins → plugin/builtins}/skill/runtime/Frontmatter.js +0 -0
  1722. /package/bin/{plugins → plugin/builtins}/skill/runtime/Paths.js +0 -0
  1723. /package/bin/{plugins → plugin/builtins}/skill/runtime/Store.js +0 -0
  1724. /package/bin/{plugins → plugin/builtins}/skill/runtime/Types.js +0 -0
  1725. /package/bin/{plugins → plugin/builtins}/skill/runtime/Utils.d.ts +0 -0
  1726. /package/bin/{plugins → plugin/builtins}/skill/runtime/Utils.js +0 -0
  1727. /package/bin/{shared → plugin/builtins/skill}/types/ClaudeSkill.js +0 -0
  1728. /package/bin/{shared → plugin/builtins/skill}/types/SkillCommand.d.ts +0 -0
  1729. /package/bin/{shared → plugin/builtins/skill}/types/SkillCommand.js +0 -0
  1730. /package/bin/{shared → plugin/builtins/skill}/types/SkillPlugin.d.ts +0 -0
  1731. /package/bin/{shared → plugin/builtins/skill}/types/SkillPlugin.js +0 -0
  1732. /package/bin/{shared → plugin/builtins/skill}/types/SkillRoot.d.ts +0 -0
  1733. /package/bin/{shared → plugin/builtins/skill}/types/SkillRoot.js +0 -0
  1734. /package/bin/{plugins → plugin/builtins}/tts/runtime/Catalog.js +0 -0
  1735. /package/bin/{plugins → plugin/builtins}/tts/runtime/DependencyInstaller.js +0 -0
  1736. /package/bin/{plugins → plugin/builtins}/tts/runtime/Installer.js +0 -0
  1737. /package/bin/{plugins → plugin/builtins}/tts/runtime/Paths.d.ts +0 -0
  1738. /package/bin/{plugins → plugin/builtins}/tts/runtime/Paths.js +0 -0
  1739. /package/bin/{shared → plugin/builtins/tts}/types/Tts.d.ts +0 -0
  1740. /package/bin/{shared → plugin/builtins/tts}/types/Tts.js +0 -0
  1741. /package/bin/{shared → plugin/builtins/tts}/types/TtsPlugin.js +0 -0
  1742. /package/bin/{plugins → plugin/builtins}/voice/ModelCatalog.d.ts +0 -0
  1743. /package/bin/{plugins → plugin/builtins}/voice/runtime/Catalog.js +0 -0
  1744. /package/bin/{plugins → plugin/builtins}/voice/runtime/DependencyInstaller.js +0 -0
  1745. /package/bin/{plugins → plugin/builtins}/voice/runtime/Installer.js +0 -0
  1746. /package/bin/{plugins → plugin/builtins}/voice/runtime/Paths.d.ts +0 -0
  1747. /package/bin/{plugins → plugin/builtins}/voice/runtime/Paths.js +0 -0
  1748. /package/bin/{plugins → plugin/builtins}/voice/runtime/Transcriber.js +0 -0
  1749. /package/bin/{shared → plugin/builtins/voice}/types/Voice.d.ts +0 -0
  1750. /package/bin/{shared → plugin/builtins/voice}/types/Voice.js +0 -0
  1751. /package/bin/{shared → plugin/builtins/voice}/types/VoicePlugin.js +0 -0
  1752. /package/bin/{shared → plugin/builtins/web}/types/WebPlugin.js +0 -0
  1753. /package/bin/{plugins → plugin/builtins}/workboard/runtime/Normalizer.js +0 -0
  1754. /package/bin/{plugins → plugin/builtins}/workboard/types/Workboard.d.ts +0 -0
  1755. /package/bin/{plugins → plugin/builtins}/workboard/types/Workboard.js +0 -0
  1756. /package/bin/plugin/{Activation.js → core/Activation.js} +0 -0
  1757. /package/bin/plugin/{HookRegistry.js → core/HookRegistry.js} +0 -0
  1758. /package/bin/plugin/{PluginCommand.d.ts → core/PluginCommand.d.ts} +0 -0
  1759. /package/bin/plugin/{ProjectConfigStore.js → core/ProjectConfigStore.js} +0 -0
  1760. /package/bin/{shared → plugin}/types/Plugin.js +0 -0
  1761. /package/bin/{shared → plugin}/types/PluginApi.js +0 -0
  1762. /package/bin/{shared → plugin}/types/PluginLifecycle.d.ts +0 -0
  1763. /package/bin/{shared → plugin}/types/PluginLifecycle.js +0 -0
  1764. /package/bin/{types/sandbox → sandbox/types}/SandboxRuntime.js +0 -0
  1765. /package/bin/{shared → service/builtins/chat/channels/feishu}/types/FeishuChannel.d.ts +0 -0
  1766. /package/bin/{shared → service/builtins/chat/channels/feishu}/types/FeishuChannel.js +0 -0
  1767. /package/bin/{shared → service/builtins/chat/channels/qq}/types/QqChannel.js +0 -0
  1768. /package/bin/{shared → service/builtins/chat/channels/qq}/types/QqGatewaySupport.d.ts +0 -0
  1769. /package/bin/{shared → service/builtins/chat/channels/qq}/types/QqGatewaySupport.js +0 -0
  1770. /package/bin/{shared → service/builtins/chat}/types/ChatPlugin.js +0 -0
  1771. /package/bin/{shared → service/builtins/chat}/types/ChatPromptContext.js +0 -0
  1772. /package/bin/{shared → service/builtins/chat}/types/ChatQueueWorker.d.ts +0 -0
  1773. /package/bin/{shared → service/builtins/chat}/types/ChatQueueWorker.js +0 -0
  1774. /package/bin/{shared → service/builtins/chat}/types/ChatRuntime.js +0 -0
  1775. /package/bin/{shared → service/builtins/chat}/types/ChatService.js +0 -0
  1776. /package/bin/{shared → service/builtins/shell}/types/Shell.d.ts +0 -0
  1777. /package/bin/{shared → service/builtins/shell}/types/Shell.js +0 -0
  1778. /package/bin/{shared → service}/types/ServiceSchedule.js +0 -0
  1779. /package/bin/{shared → service}/types/ServiceState.js +0 -0
  1780. /package/bin/{shared → service}/types/Services.js +0 -0
  1781. /package/bin/{types/session → session/types}/SessionExecutor.js +0 -0
  1782. /package/bin/{types/session → session/types}/SessionHistoryMeta.d.ts +0 -0
  1783. /package/bin/{types/session → session/types}/SessionHistoryMeta.js +0 -0
  1784. /package/bin/{types/session → session/types}/SessionHistoryPaths.d.ts +0 -0
  1785. /package/bin/{types/session → session/types}/SessionHistoryPaths.js +0 -0
  1786. /package/bin/{types/session → session/types}/SessionLoop.d.ts +0 -0
  1787. /package/bin/{types/session → session/types}/SessionLoop.js +0 -0
  1788. /package/bin/{types/session → session/types}/SessionMessages.js +0 -0
  1789. /package/bin/{types/session → session/types}/SessionPrompts.d.ts +0 -0
  1790. /package/bin/{types/session → session/types}/SessionPrompts.js +0 -0
  1791. /package/bin/{types/session → session/types}/SessionRun.js +0 -0
  1792. /package/bin/{shared/utils → utils}/Id.d.ts +0 -0
  1793. /package/bin/{shared/utils → utils}/Id.js +0 -0
  1794. /package/bin/{shared/utils → utils}/Template.js +0 -0
  1795. /package/bin/{shared/utils → utils}/Time.d.ts +0 -0
  1796. /package/bin/{shared/utils → utils}/Time.js +0 -0
  1797. /package/bin/{shared/utils → utils}/cli/Checker.d.ts +0 -0
  1798. /package/bin/{shared/utils → utils}/cli/Checker.js +0 -0
  1799. /package/bin/{shared/utils → utils}/cli/CliOutput.d.ts +0 -0
  1800. /package/bin/{shared/utils → utils}/cli/PrettyStatus.d.ts +0 -0
  1801. /package/bin/{shared/utils → utils}/cli/PrettyStatus.js +0 -0
  1802. /package/bin/{shared/utils → utils}/logger/Fetch.js +0 -0
  1803. /package/bin/{shared/utils → utils}/logger/Format.d.ts +0 -0
  1804. /package/bin/{shared/utils → utils}/logger/Format.js +0 -0
  1805. /package/bin/{shared/utils → utils}/logger/FormatRequest.js +0 -0
  1806. /package/bin/{shared/utils → utils}/logger/FormatResponse.js +0 -0
  1807. /package/bin/{shared/utils → utils}/logger/FormatShared.js +0 -0
  1808. /package/bin/{shared/utils → utils}/storage/index.js +0 -0
  1809. /package/bin/{shared → utils}/types/Json.d.ts +0 -0
  1810. /package/bin/{shared → utils}/types/Json.js +0 -0
  1811. /package/bin/{shared → utils}/types/Template.d.ts +0 -0
  1812. /package/bin/{shared → utils}/types/Template.js +0 -0
  1813. /package/src/{shared → config}/types/ExecutionBinding.ts +0 -0
  1814. /package/src/{shared → config}/types/LlmConfig.ts +0 -0
  1815. /package/src/{shared → config}/types/ModelBinding.ts +0 -0
  1816. /package/src/{shared → config}/types/Start.ts +0 -0
  1817. /package/src/{shared → host/daemon}/types/Daemon.ts +0 -0
  1818. /package/src/{http → host/http}/auth/AuthEnv.ts +0 -0
  1819. /package/src/{http → host/http}/auth/AuthError.ts +0 -0
  1820. /package/src/{http → host/http}/auth/CliAuthStateStore.ts +0 -0
  1821. /package/src/{http → host/http}/auth/PasswordHasher.ts +0 -0
  1822. /package/src/{http → host/http}/auth/TokenService.ts +0 -0
  1823. /package/src/{shared/types/auth → host/http/auth/types}/AuthPermission.ts +0 -0
  1824. /package/src/{shared/types/auth → host/http/auth/types}/AuthRoute.ts +0 -0
  1825. /package/src/{shared/types/auth → host/http/auth/types}/AuthToken.ts +0 -0
  1826. /package/src/{shared/types/auth → host/http/auth/types}/AuthTypes.ts +0 -0
  1827. /package/src/{http → host/http}/control/CommonHelpers.ts +0 -0
  1828. /package/src/{http → host/http}/control/Helpers.ts +0 -0
  1829. /package/src/{shared → host/http/control}/types/ControlRoutes.ts +0 -0
  1830. /package/src/{shared → host/http/control}/types/ControlSessionExecute.ts +0 -0
  1831. /package/src/{http → host/http}/execute/execute.ts +0 -0
  1832. /package/src/{shared → host/http/execute}/types/InlineInstant.ts +0 -0
  1833. /package/src/{http → host/http}/health/health.ts +0 -0
  1834. /package/src/{http → host/http}/plugins/plugins.ts +0 -0
  1835. /package/src/{http → host/http}/services/services.ts +0 -0
  1836. /package/src/{http → host/http}/static/static.ts +0 -0
  1837. /package/src/{shared → host/runtime}/types/Platform.ts +0 -0
  1838. /package/src/{shared → host/runtime}/types/PlatformGateway.ts +0 -0
  1839. /package/src/{shared → plugin/builtins/auth}/types/AuthPlugin.ts +0 -0
  1840. /package/{bin/plugins/skill/PROMPT.txt → src/plugin/builtins/skill/PROMPT.ts.txt} +0 -0
  1841. /package/src/{plugins → plugin/builtins}/skill/runtime/Frontmatter.ts +0 -0
  1842. /package/src/{plugins → plugin/builtins}/skill/runtime/Utils.ts +0 -0
  1843. /package/src/{shared → plugin/builtins/skill}/types/SkillCommand.ts +0 -0
  1844. /package/src/{shared → plugin/builtins/skill}/types/SkillPlugin.ts +0 -0
  1845. /package/src/{shared → plugin/builtins/skill}/types/SkillRoot.ts +0 -0
  1846. /package/src/{plugins → plugin/builtins}/tts/runtime/Paths.ts +0 -0
  1847. /package/src/{shared → plugin/builtins/tts}/types/Tts.ts +0 -0
  1848. /package/src/{plugins → plugin/builtins}/voice/runtime/Paths.ts +0 -0
  1849. /package/src/{shared → plugin/builtins/voice}/types/Voice.ts +0 -0
  1850. /package/{bin/plugins/web/PROMPT.agent-browser.txt → src/plugin/builtins/web/PROMPT.agent-browser.ts.txt} +0 -0
  1851. /package/{bin/plugins/web/PROMPT.txt → src/plugin/builtins/web/PROMPT.ts.txt} +0 -0
  1852. /package/{bin/plugins/web/PROMPT.web-access.txt → src/plugin/builtins/web/PROMPT.web-access.ts.txt} +0 -0
  1853. /package/src/{plugins → plugin/builtins}/workboard/types/Workboard.ts +0 -0
  1854. /package/src/{shared → plugin}/types/PluginLifecycle.ts +0 -0
  1855. /package/{bin/service/builtins/chat/PROMPT.direct.txt → src/service/builtins/chat/PROMPT.direct.ts.txt} +0 -0
  1856. /package/{bin/service/builtins/chat/channels/feishu/PROMPT.direct.txt → src/service/builtins/chat/channels/feishu/PROMPT.direct.ts.txt} +0 -0
  1857. /package/src/{shared → service/builtins/chat/channels/feishu}/types/FeishuChannel.ts +0 -0
  1858. /package/{bin/service/builtins/chat/channels/qq/PROMPT.direct.txt → src/service/builtins/chat/channels/qq/PROMPT.direct.ts.txt} +0 -0
  1859. /package/src/{shared → service/builtins/chat/channels/qq}/types/QqGatewaySupport.ts +0 -0
  1860. /package/src/{shared → service/builtins/chat}/types/ChatPlugin.ts +0 -0
  1861. /package/src/{shared → service/builtins/chat}/types/ChatQueueWorker.ts +0 -0
  1862. /package/src/{shared → service/builtins/chat}/types/ChatRuntime.ts +0 -0
  1863. /package/{bin/service/builtins/contact/PROMPT.txt → src/service/builtins/contact/PROMPT.ts.txt} +0 -0
  1864. /package/src/{shared → service/builtins/shell}/types/Shell.ts +0 -0
  1865. /package/{bin/service/builtins/task/PROMPT.txt → src/service/builtins/task/PROMPT.ts.txt} +0 -0
  1866. /package/{bin/session/composer/system/default/assets/core.prompt.txt → src/session/composer/system/default/assets/core.prompt.ts.txt} +0 -0
  1867. /package/{bin/session/composer/system/default/assets/service.prompt.txt → src/session/composer/system/default/assets/service.prompt.ts.txt} +0 -0
  1868. /package/{bin/session/composer/system/default/assets/task.prompt.txt → src/session/composer/system/default/assets/task.prompt.ts.txt} +0 -0
  1869. /package/src/{types/session → session/types}/SessionHistoryMeta.ts +0 -0
  1870. /package/src/{types/session → session/types}/SessionHistoryPaths.ts +0 -0
  1871. /package/src/{types/session → session/types}/SessionLoop.ts +0 -0
  1872. /package/src/{types/session → session/types}/SessionPrompts.ts +0 -0
  1873. /package/src/{shared/utils → utils}/Id.ts +0 -0
  1874. /package/src/{shared/utils → utils}/Time.ts +0 -0
  1875. /package/src/{shared/utils → utils}/cli/Checker.ts +0 -0
  1876. /package/src/{shared/utils → utils}/cli/PrettyStatus.ts +0 -0
  1877. /package/src/{shared/utils → utils}/logger/Format.ts +0 -0
  1878. /package/src/{shared → utils}/types/Json.ts +0 -0
  1879. /package/src/{shared → utils}/types/Template.ts +0 -0
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Control 概览路由。
3
+ *
4
+ * 关键点(中文)
5
+ * - 聚合 overview 与 services 两块轻量只读接口。
6
+ * - 只负责路由层拼装,不承载复杂业务状态机。
7
+ */
8
+ import fs from "fs-extra";
9
+ import { dirname, join } from "path";
10
+ import { fileURLToPath } from "url";
11
+ import { listServiceStates } from "../../../service/core/Manager.js";
12
+ import { listTaskDefinitions } from "../../../service/builtins/task/Action.js";
13
+ import { buildControlRouteAliases, toLimit } from "./CommonHelpers.js";
14
+ import { listControlSessionSummaries, readRecentLogs } from "./Helpers.js";
15
+ const __filename = fileURLToPath(import.meta.url);
16
+ const __dirname = dirname(__filename);
17
+ /**
18
+ * 当前 DC 版本号(用于 Overview 显示)。
19
+ */
20
+ const DC_VERSION = (() => {
21
+ try {
22
+ const pkg = fs.readJsonSync(join(__dirname, "../../../package.json"));
23
+ const version = String(pkg?.version || "").trim();
24
+ return version || "unknown";
25
+ }
26
+ catch {
27
+ return "unknown";
28
+ }
29
+ })();
30
+ /**
31
+ * 注册概览与服务路由。
32
+ */
33
+ export function registerControlOverviewRoutes(params) {
34
+ const { app } = params;
35
+ for (const routePath of buildControlRouteAliases("/overview")) {
36
+ app.get(routePath, async (c) => {
37
+ try {
38
+ const runtime = params.getAgentRuntime();
39
+ const sessionLimit = toLimit(c.req.query("sessionLimit") || c.req.query("contextLimit"), 20);
40
+ const sessions = await listControlSessionSummaries({
41
+ projectRoot: runtime.rootPath,
42
+ executionContext: params.getAgentContext(),
43
+ limit: sessionLimit,
44
+ });
45
+ const services = listServiceStates();
46
+ const taskResult = await listTaskDefinitions({
47
+ projectRoot: runtime.rootPath,
48
+ });
49
+ const tasks = Array.isArray(taskResult.tasks) ? taskResult.tasks : [];
50
+ const logs = await readRecentLogs({
51
+ projectRoot: runtime.rootPath,
52
+ limit: 50,
53
+ });
54
+ const statusCount = {
55
+ enabled: tasks.filter((x) => x.status === "enabled").length,
56
+ paused: tasks.filter((x) => x.status === "paused").length,
57
+ disabled: tasks.filter((x) => x.status === "disabled").length,
58
+ };
59
+ return c.json({
60
+ success: true,
61
+ cityVersion: DC_VERSION,
62
+ now: new Date().toISOString(),
63
+ agent: {
64
+ name: runtime.config.name,
65
+ status: "running",
66
+ },
67
+ sessions: {
68
+ total: sessions.length,
69
+ items: sessions,
70
+ },
71
+ services,
72
+ tasks: {
73
+ total: tasks.length,
74
+ statusCount,
75
+ },
76
+ logs,
77
+ });
78
+ }
79
+ catch (error) {
80
+ return c.json({ success: false, error: String(error) }, 500);
81
+ }
82
+ });
83
+ }
84
+ for (const routePath of buildControlRouteAliases("/services")) {
85
+ app.get(routePath, (c) => {
86
+ return c.json({
87
+ success: true,
88
+ services: listServiceStates(),
89
+ });
90
+ });
91
+ }
92
+ }
93
+ //# sourceMappingURL=OverviewRoutes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OverviewRoutes.js","sourceRoot":"","sources":["../../../../src/host/http/control/OverviewRoutes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2B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,EAAE;wBACR,KAAK,EAAE,QAAQ,CAAC,MAAM;wBACtB,KAAK,EAAE,QAAQ;qBAChB;oBACD,QAAQ;oBACR,KAAK,EAAE;wBACL,KAAK,EAAE,KAAK,CAAC,MAAM;wBACnB,WAAW;qBACZ;oBACD,IAAI;iBACL,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;YAC/D,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,MAAM,SAAS,IAAI,wBAAwB,CAAC,WAAW,CAAC,EAAE,CAAC;QAC9D,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;YACvB,OAAO,CAAC,CAAC,IAAI,CAAC;gBACZ,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,iBAAiB,EAAE;aAC9B,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 单 agent control API 会话路由。
3
+ *
4
+ * 关键点(中文)
5
+ * - 聚合控制面会话消息、归档、system prompt 与执行相关接口。
6
+ * - 仅负责编排请求与响应;消息读取、时间线映射、执行拼装复用 helper。
7
+ * - 会话控制接口统一暴露在 `/api/control/*` 下。
8
+ */
9
+ import type { ControlRouteRegistrationParams } from "../../../host/http/control/types/ControlRoutes.js";
10
+ /**
11
+ * 注册上下文相关路由。
12
+ */
13
+ export declare function registerControlSessionRoutes(params: ControlRouteRegistrationParams): void;
14
+ //# sourceMappingURL=SessionRoutes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionRoutes.d.ts","sourceRoot":"","sources":["../../../../src/host/http/control/SessionRoutes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAaH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAoEjG;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,8BAA8B,GACrC,IAAI,CAgUN"}
@@ -0,0 +1,333 @@
1
+ /**
2
+ * 单 agent control API 会话路由。
3
+ *
4
+ * 关键点(中文)
5
+ * - 聚合控制面会话消息、归档、system prompt 与执行相关接口。
6
+ * - 仅负责编排请求与响应;消息读取、时间线映射、执行拼装复用 helper。
7
+ * - 会话控制接口统一暴露在 `/api/control/*` 下。
8
+ */
9
+ import fs from "fs-extra";
10
+ import { dirname } from "path";
11
+ import { resolveSessionSystemMessages } from "../../../session/composer/system/default/SystemDomain.js";
12
+ import { getDowncityChatHistoryPath, getDowncitySessionMessagesArchiveDirPath, getDowncitySessionMessagesArchivePath, getDowncitySessionMessagesPath, } from "../../../config/Paths.js";
13
+ import { buildControlRouteAliases, decodeMaybe, toLimit, } from "./CommonHelpers.js";
14
+ import { listControlSessionSummaries, loadSessionMessagesFromFile, toUiMessageTimeline, } from "./Helpers.js";
15
+ import { executeBySessionId } from "./ExecuteBySession.js";
16
+ const CONSOLEUI_SESSION_ID = "consoleui-chat-main";
17
+ function normalizeSystemText(input) {
18
+ return String(input || "").trim();
19
+ }
20
+ function toSystemMessageText(message) {
21
+ const content = message.content;
22
+ if (typeof content === "string")
23
+ return normalizeSystemText(content);
24
+ if (!Array.isArray(content))
25
+ return "";
26
+ const parts = content;
27
+ const texts = [];
28
+ for (const part of parts) {
29
+ if (!part || typeof part !== "object")
30
+ continue;
31
+ const text = normalizeSystemText(String(part.text || ""));
32
+ if (!text)
33
+ continue;
34
+ texts.push(text);
35
+ }
36
+ return texts.join("\n").trim();
37
+ }
38
+ /**
39
+ * 把 system messages 转成 control UI 可渲染结构。
40
+ */
41
+ function toSystemPromptPayload(messages) {
42
+ const items = messages
43
+ .map((message, index) => ({
44
+ index: index + 1,
45
+ content: toSystemMessageText(message),
46
+ }))
47
+ .filter((item) => item.content);
48
+ const totalChars = items.reduce((acc, item) => acc + String(item.content || "").length, 0);
49
+ return {
50
+ sections: [
51
+ {
52
+ key: "resolved",
53
+ title: "Resolved System Messages",
54
+ items,
55
+ },
56
+ ],
57
+ totalMessages: items.length,
58
+ totalChars,
59
+ };
60
+ }
61
+ /**
62
+ * 注册上下文相关路由。
63
+ */
64
+ export function registerControlSessionRoutes(params) {
65
+ const { app } = params;
66
+ for (const routePath of buildControlRouteAliases("/sessions")) {
67
+ app.get(routePath, async (c) => {
68
+ try {
69
+ const runtime = params.getAgentRuntime();
70
+ const limit = toLimit(c.req.query("limit"));
71
+ const executingSessionIds = new Set(runtime.listExecutingSessionIds());
72
+ const sessions = await listControlSessionSummaries({
73
+ projectRoot: runtime.rootPath,
74
+ executionContext: params.getAgentContext(),
75
+ limit,
76
+ executingSessionIds,
77
+ });
78
+ const hasConsoleSession = sessions.some((item) => String(item.sessionId || "").trim() === CONSOLEUI_SESSION_ID);
79
+ const enrichedSessions = hasConsoleSession
80
+ ? sessions
81
+ : [
82
+ {
83
+ sessionId: CONSOLEUI_SESSION_ID,
84
+ messageCount: 0,
85
+ updatedAt: Date.now(),
86
+ lastRole: "system",
87
+ lastText: "consoleui channel",
88
+ channel: "consoleui",
89
+ ...(executingSessionIds.has(CONSOLEUI_SESSION_ID) ? { executing: true } : {}),
90
+ },
91
+ ...sessions,
92
+ ];
93
+ return c.json({
94
+ success: true,
95
+ sessions: enrichedSessions,
96
+ });
97
+ }
98
+ catch (error) {
99
+ return c.json({ success: false, error: String(error) }, 500);
100
+ }
101
+ });
102
+ }
103
+ for (const routePath of buildControlRouteAliases("/sessions/:sessionId/messages")) {
104
+ app.get(routePath, async (c) => {
105
+ try {
106
+ const runtime = params.getAgentRuntime();
107
+ const limit = toLimit(c.req.query("limit"), 200);
108
+ const sessionId = decodeMaybe(String(c.req.param("sessionId") || "").trim());
109
+ if (!sessionId) {
110
+ return c.json({ success: false, error: "Missing sessionId" }, 400);
111
+ }
112
+ const filePath = getDowncitySessionMessagesPath(runtime.rootPath, sessionId);
113
+ const messages = await loadSessionMessagesFromFile(filePath);
114
+ const sliced = messages
115
+ .slice(-limit)
116
+ .flatMap((message) => toUiMessageTimeline(message));
117
+ return c.json({
118
+ success: true,
119
+ sessionId,
120
+ total: sliced.length,
121
+ rawTotal: messages.length,
122
+ messages: sliced,
123
+ });
124
+ }
125
+ catch (error) {
126
+ return c.json({ success: false, error: String(error) }, 500);
127
+ }
128
+ });
129
+ }
130
+ for (const routePath of buildControlRouteAliases("/sessions/:sessionId/messages")) {
131
+ app.delete(routePath, async (c) => {
132
+ try {
133
+ const runtime = params.getAgentRuntime();
134
+ const sessionId = decodeMaybe(String(c.req.param("sessionId") || "").trim());
135
+ if (!sessionId) {
136
+ return c.json({ success: false, error: "Missing sessionId" }, 400);
137
+ }
138
+ const messagesPath = getDowncitySessionMessagesPath(runtime.rootPath, sessionId);
139
+ const messagesDirPath = dirname(messagesPath);
140
+ await fs.remove(messagesDirPath);
141
+ // 关键点(中文):清理消息文件后,同步清掉内存中的 session runtime,避免旧上下文继续运行。
142
+ runtime.getSession(sessionId).clearExecutor();
143
+ return c.json({
144
+ success: true,
145
+ sessionId,
146
+ cleared: true,
147
+ });
148
+ }
149
+ catch (error) {
150
+ return c.json({ success: false, error: String(error) }, 500);
151
+ }
152
+ });
153
+ }
154
+ for (const routePath of buildControlRouteAliases("/sessions/:sessionId/chat-history")) {
155
+ app.delete(routePath, async (c) => {
156
+ try {
157
+ const runtime = params.getAgentRuntime();
158
+ const sessionId = decodeMaybe(String(c.req.param("sessionId") || "").trim());
159
+ if (!sessionId) {
160
+ return c.json({ success: false, error: "Missing sessionId" }, 400);
161
+ }
162
+ const historyPath = getDowncityChatHistoryPath(runtime.rootPath, sessionId);
163
+ await fs.remove(historyPath);
164
+ return c.json({
165
+ success: true,
166
+ sessionId,
167
+ cleared: true,
168
+ });
169
+ }
170
+ catch (error) {
171
+ return c.json({ success: false, error: String(error) }, 500);
172
+ }
173
+ });
174
+ }
175
+ for (const routePath of buildControlRouteAliases("/sessions/:sessionId/archives")) {
176
+ app.get(routePath, async (c) => {
177
+ try {
178
+ const runtime = params.getAgentRuntime();
179
+ const limit = toLimit(c.req.query("limit"), 100);
180
+ const sessionId = decodeMaybe(String(c.req.param("sessionId") || "").trim());
181
+ if (!sessionId) {
182
+ return c.json({ success: false, error: "Missing sessionId" }, 400);
183
+ }
184
+ const archiveDirPath = getDowncitySessionMessagesArchiveDirPath(runtime.rootPath, sessionId);
185
+ if (!(await fs.pathExists(archiveDirPath))) {
186
+ return c.json({
187
+ success: true,
188
+ sessionId,
189
+ archives: [],
190
+ });
191
+ }
192
+ const entries = await fs.readdir(archiveDirPath, { withFileTypes: true });
193
+ const archives = [];
194
+ for (const entry of entries) {
195
+ if (!entry.isFile() || !entry.name.endsWith(".json"))
196
+ continue;
197
+ const archiveId = decodeMaybe(entry.name.slice(0, -5));
198
+ if (!archiveId)
199
+ continue;
200
+ const archivePath = getDowncitySessionMessagesArchivePath(runtime.rootPath, sessionId, archiveId);
201
+ const payload = (await fs.readJson(archivePath).catch(() => null));
202
+ const archivedAtFromPayload = typeof payload?.archivedAt === "number" &&
203
+ Number.isFinite(payload.archivedAt)
204
+ ? payload.archivedAt
205
+ : undefined;
206
+ const archivedAtFromStat = typeof archivedAtFromPayload === "number"
207
+ ? undefined
208
+ : await fs
209
+ .stat(archivePath)
210
+ .then((stat) => stat.mtimeMs)
211
+ .catch(() => undefined);
212
+ const messageCount = Array.isArray(payload?.messages)
213
+ ? payload.messages.length
214
+ : 0;
215
+ archives.push({
216
+ archiveId,
217
+ ...(typeof archivedAtFromPayload === "number"
218
+ ? { archivedAt: archivedAtFromPayload }
219
+ : typeof archivedAtFromStat === "number"
220
+ ? { archivedAt: archivedAtFromStat }
221
+ : {}),
222
+ messageCount,
223
+ });
224
+ }
225
+ archives.sort((a, b) => (b.archivedAt || 0) - (a.archivedAt || 0));
226
+ return c.json({
227
+ success: true,
228
+ sessionId,
229
+ archives: archives.slice(0, limit),
230
+ });
231
+ }
232
+ catch (error) {
233
+ return c.json({ success: false, error: String(error) }, 500);
234
+ }
235
+ });
236
+ }
237
+ for (const routePath of buildControlRouteAliases("/sessions/:sessionId/archives/:archiveId")) {
238
+ app.get(routePath, async (c) => {
239
+ try {
240
+ const runtime = params.getAgentRuntime();
241
+ const sessionId = decodeMaybe(String(c.req.param("sessionId") || "").trim());
242
+ const archiveId = decodeMaybe(String(c.req.param("archiveId") || "").trim());
243
+ if (!sessionId) {
244
+ return c.json({ success: false, error: "Missing sessionId" }, 400);
245
+ }
246
+ if (!archiveId) {
247
+ return c.json({ success: false, error: "Missing archiveId" }, 400);
248
+ }
249
+ const archivePath = getDowncitySessionMessagesArchivePath(runtime.rootPath, sessionId, archiveId);
250
+ if (!(await fs.pathExists(archivePath))) {
251
+ return c.json({ success: false, error: `Archive not found: ${archiveId}` }, 404);
252
+ }
253
+ const payload = (await fs.readJson(archivePath).catch(() => null));
254
+ const archivedAt = typeof payload?.archivedAt === "number" &&
255
+ Number.isFinite(payload.archivedAt)
256
+ ? payload.archivedAt
257
+ : undefined;
258
+ const archivedMessages = Array.isArray(payload?.messages)
259
+ ? payload.messages
260
+ : [];
261
+ const messages = archivedMessages.flatMap((message) => toUiMessageTimeline(message));
262
+ return c.json({
263
+ success: true,
264
+ sessionId,
265
+ archiveId,
266
+ ...(typeof archivedAt === "number" ? { archivedAt } : {}),
267
+ total: messages.length,
268
+ rawTotal: archivedMessages.length,
269
+ messages,
270
+ });
271
+ }
272
+ catch (error) {
273
+ return c.json({ success: false, error: String(error) }, 500);
274
+ }
275
+ });
276
+ }
277
+ for (const routePath of buildControlRouteAliases("/system-prompt")) {
278
+ app.get(routePath, async (c) => {
279
+ try {
280
+ const runtime = params.getAgentRuntime();
281
+ const sessionId = decodeMaybe(String(c.req.query("sessionId") || "").trim()) ||
282
+ CONSOLEUI_SESSION_ID;
283
+ const systemMessages = await resolveSessionSystemMessages({
284
+ projectRoot: runtime.rootPath,
285
+ sessionId,
286
+ profile: "chat",
287
+ staticSystemPrompts: runtime.systems,
288
+ context: params.getAgentContext(),
289
+ });
290
+ return c.json({
291
+ success: true,
292
+ sessionId,
293
+ ...toSystemPromptPayload(systemMessages),
294
+ });
295
+ }
296
+ catch (error) {
297
+ return c.json({ success: false, error: String(error) }, 500);
298
+ }
299
+ });
300
+ }
301
+ for (const routePath of buildControlRouteAliases("/sessions/:sessionId/execute")) {
302
+ app.post(routePath, async (c) => {
303
+ try {
304
+ const runtime = params.getAgentRuntime();
305
+ const sessionId = decodeMaybe(String(c.req.param("sessionId") || "").trim());
306
+ const body = (await c.req.json().catch(() => ({})));
307
+ const instructions = String(body.instructions || "").trim();
308
+ if (!sessionId) {
309
+ return c.json({ success: false, error: "Missing sessionId" }, 400);
310
+ }
311
+ if (!instructions) {
312
+ return c.json({ success: false, error: "Missing instructions" }, 400);
313
+ }
314
+ const result = await executeBySessionId({
315
+ agentState: runtime,
316
+ executionContext: params.getAgentContext(),
317
+ sessionId,
318
+ instructions,
319
+ attachments: Array.isArray(body.attachments) ? body.attachments : undefined,
320
+ });
321
+ return c.json({
322
+ success: true,
323
+ sessionId,
324
+ result,
325
+ });
326
+ }
327
+ catch (error) {
328
+ return c.json({ success: false, error: String(error) }, 500);
329
+ }
330
+ });
331
+ }
332
+ }
333
+ //# sourceMappingURL=SessionRoutes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionRoutes.js","sourceRoot":"","sources":["../../../../src/host/http/control/SessionRoutes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EACL,0BAA0B,EAC1B,wCAAwC,EACxC,qCAAqC,EACrC,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,wBA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AC;IACL,CAAC;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Control 会话摘要读取 helper。
3
+ *
4
+ * 关键点(中文)
5
+ * - 负责会话列表聚合。
6
+ * - 只返回控制面视图需要的摘要字段。
7
+ */
8
+ import type { AgentContext } from "../../../agent/AgentContextTypes.js";
9
+ import type { ControlSessionSummary } from "../../../host/http/control/types/ControlViewData.js";
10
+ /**
11
+ * 枚举控制面所需的 session 摘要。
12
+ */
13
+ export declare function listControlSessionSummaries(params: {
14
+ projectRoot: string;
15
+ executionContext?: AgentContext;
16
+ limit: number;
17
+ executingSessionIds?: Set<string>;
18
+ }): Promise<ControlSessionSummary[]>;
19
+ //# sourceMappingURL=SessionSummaryStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionSummaryStore.d.ts","sourceRoot":"","sources":["../../../../src/host/http/control/SessionSummaryStore.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAI1F;;GAEG;AACH,wBAAsB,2BAA2B,CAAC,MAAM,EAAE;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACnC,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAgDnC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Control 会话摘要读取 helper。
3
+ *
4
+ * 关键点(中文)
5
+ * - 负责会话列表聚合。
6
+ * - 只返回控制面视图需要的摘要字段。
7
+ */
8
+ import fs from "fs-extra";
9
+ import { getDowncitySessionMessagesPath, getDowncitySessionRootDirPath, } from "../../../config/Paths.js";
10
+ import { readChatMetaBySessionId } from "../../../service/builtins/chat/runtime/ChatMetaStore.js";
11
+ import { decodeMaybe, truncateText } from "./CommonHelpers.js";
12
+ import { loadSessionMessagesFromFile, resolveUiMessagePreview } from "./MessageTimeline.js";
13
+ /**
14
+ * 枚举控制面所需的 session 摘要。
15
+ */
16
+ export async function listControlSessionSummaries(params) {
17
+ const rootDir = getDowncitySessionRootDirPath(params.projectRoot);
18
+ if (!(await fs.pathExists(rootDir)))
19
+ return [];
20
+ const entries = await fs.readdir(rootDir, { withFileTypes: true });
21
+ const items = [];
22
+ for (const entry of entries) {
23
+ if (!entry.isDirectory())
24
+ continue;
25
+ const sessionId = decodeMaybe(entry.name);
26
+ if (!sessionId)
27
+ continue;
28
+ const filePath = getDowncitySessionMessagesPath(params.projectRoot, sessionId);
29
+ const messages = await loadSessionMessagesFromFile(filePath);
30
+ const last = messages.at(-1);
31
+ const lastTs = typeof last?.metadata?.ts === "number" ? last.metadata.ts : undefined;
32
+ const stat = await fs
33
+ .stat(filePath)
34
+ .then((s) => s)
35
+ .catch(() => null);
36
+ const updatedAt = lastTs || (stat ? stat.mtimeMs : undefined);
37
+ const chatMeta = params.executionContext
38
+ ? await readChatMetaBySessionId({
39
+ context: params.executionContext,
40
+ sessionId,
41
+ })
42
+ : null;
43
+ items.push({
44
+ sessionId,
45
+ messageCount: messages.length,
46
+ ...(typeof updatedAt === "number" ? { updatedAt } : {}),
47
+ ...(last?.role ? { lastRole: last.role } : {}),
48
+ ...(last
49
+ ? { lastText: truncateText(resolveUiMessagePreview(last), 180) }
50
+ : {}),
51
+ ...(typeof chatMeta?.channel === "string" ? { channel: chatMeta.channel } : {}),
52
+ ...(typeof chatMeta?.chatId === "string" ? { chatId: chatMeta.chatId } : {}),
53
+ ...(typeof chatMeta?.chatTitle === "string" ? { chatTitle: chatMeta.chatTitle } : {}),
54
+ ...(typeof chatMeta?.targetType === "string" ? { chatType: chatMeta.targetType } : {}),
55
+ ...(typeof chatMeta?.threadId === "number" ? { threadId: chatMeta.threadId } : {}),
56
+ ...(params.executingSessionIds?.has(sessionId) ? { executing: true } : {}),
57
+ });
58
+ }
59
+ items.sort((a, b) => (b.updatedAt || 0) - (a.updatedAt || 0));
60
+ return items.slice(0, params.limit);
61
+ }
62
+ //# sourceMappingURL=SessionSummaryStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionSummaryStore.js","sourceRoot":"","sources":["../../../../src/host/http/control/SessionSummaryStore.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1B,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAE3F,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE5F;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,MAKjD;IACC,MAAM,OAAO,GAAG,6BAA6B,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IAClE,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAAE,OAAO,EAAE,CAAC;IAE/C,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACnE,MAAM,KAAK,GAA4B,EAAE,CAAC;IAE1C,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;YAAE,SAAS;QACnC,MAAM,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,SAAS;YAAE,SAAS;QAEzB,MAAM,QAAQ,GAAG,8BAA8B,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC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+ /**
2
+ * Control 任务与日志路由。
3
+ *
4
+ * 关键点(中文)
5
+ * - 聚合 tasks/runs/logs 相关接口。
6
+ * - 任务动作统一复用 task service command,不在 UI 层重复实现业务语义。
7
+ */
8
+ import type { ControlRouteRegistrationParams } from "../../../host/http/control/types/ControlRoutes.js";
9
+ /**
10
+ * 注册任务与日志路由。
11
+ */
12
+ export declare function registerControlTaskRoutes(params: ControlRouteRegistrationParams): void;
13
+ //# sourceMappingURL=TaskRoutes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskRoutes.d.ts","sourceRoot":"","sources":["../../../../src/host/http/control/TaskRoutes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAgDjG;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,8BAA8B,GACrC,IAAI,CAmUN"}