@downcity/agent 1.1.7 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2016) hide show
  1. package/bin/agent/AgentContext.d.ts.map +1 -1
  2. package/bin/agent/AgentContext.js +2 -1
  3. package/bin/agent/AgentContext.js.map +1 -1
  4. package/bin/agent/AgentContextTypes.d.ts +11 -7
  5. package/bin/agent/AgentContextTypes.d.ts.map +1 -1
  6. package/bin/agent/AgentRuntime.d.ts +6 -1
  7. package/bin/agent/AgentRuntime.d.ts.map +1 -1
  8. package/bin/agent/AgentRuntime.js +24 -5
  9. package/bin/agent/AgentRuntime.js.map +1 -1
  10. package/bin/agent/AgentRuntimeState.d.ts +1 -1
  11. package/bin/agent/AgentRuntimeState.d.ts.map +1 -1
  12. package/bin/agent/AgentRuntimeState.js +58 -2
  13. package/bin/agent/AgentRuntimeState.js.map +1 -1
  14. package/bin/agent/AgentRuntimeTypes.d.ts +7 -3
  15. package/bin/agent/AgentRuntimeTypes.d.ts.map +1 -1
  16. package/bin/agent/project/AgentInitializer.d.ts +4 -3
  17. package/bin/agent/project/AgentInitializer.d.ts.map +1 -1
  18. package/bin/agent/project/AgentInitializer.js +79 -48
  19. package/bin/agent/project/AgentInitializer.js.map +1 -1
  20. package/bin/agent/project/ProjectExecutionBinding.d.ts +2 -2
  21. package/bin/agent/project/types/AgentProject.d.ts +80 -0
  22. package/bin/agent/project/types/AgentProject.d.ts.map +1 -0
  23. package/bin/agent/project/types/AgentProject.js.map +1 -0
  24. package/bin/config/Config.d.ts +1 -1
  25. package/bin/config/Config.d.ts.map +1 -1
  26. package/bin/config/Config.js +2 -21
  27. package/bin/config/Config.js.map +1 -1
  28. package/bin/config/DowncityDefault.d.ts +3 -0
  29. package/bin/config/DowncityDefault.d.ts.map +1 -0
  30. package/bin/config/DowncityDefault.js.map +1 -0
  31. package/bin/config/DowncitySchema.d.ts +3 -0
  32. package/bin/config/DowncitySchema.d.ts.map +1 -0
  33. package/bin/config/DowncitySchema.js.map +1 -0
  34. package/bin/config/Paths.d.ts +1 -5
  35. package/bin/config/Paths.d.ts.map +1 -1
  36. package/bin/config/Paths.js +2 -8
  37. package/bin/config/Paths.js.map +1 -1
  38. package/bin/config/types/DowncityConfig.d.ts +214 -0
  39. package/bin/config/types/DowncityConfig.d.ts.map +1 -0
  40. package/bin/config/types/DowncityConfig.js.map +1 -0
  41. package/bin/config/types/ExecutionBinding.d.ts.map +1 -0
  42. package/bin/config/types/ExecutionBinding.js.map +1 -0
  43. package/bin/config/types/LlmConfig.d.ts.map +1 -0
  44. package/bin/config/types/LlmConfig.js.map +1 -0
  45. package/bin/config/types/ModelBinding.d.ts.map +1 -0
  46. package/bin/config/types/ModelBinding.js.map +1 -0
  47. package/bin/config/types/Start.d.ts.map +1 -0
  48. package/bin/config/types/Start.js.map +1 -0
  49. package/bin/host/daemon/Api.d.ts +1 -1
  50. package/bin/host/daemon/Api.d.ts.map +1 -1
  51. package/bin/host/daemon/Client.js +1 -1
  52. package/bin/host/daemon/Client.js.map +1 -1
  53. package/bin/host/daemon/Manager.d.ts +1 -1
  54. package/bin/host/daemon/Manager.d.ts.map +1 -1
  55. package/bin/host/daemon/Manager.js +1 -1
  56. package/bin/host/daemon/Manager.js.map +1 -1
  57. package/bin/host/daemon/ProjectSetup.d.ts +2 -1
  58. package/bin/host/daemon/ProjectSetup.d.ts.map +1 -1
  59. package/bin/host/daemon/ProjectSetup.js +14 -21
  60. package/bin/host/daemon/ProjectSetup.js.map +1 -1
  61. package/bin/host/daemon/types/Daemon.d.ts.map +1 -0
  62. package/bin/host/daemon/types/Daemon.js.map +1 -0
  63. package/bin/host/http/Server.d.ts.map +1 -0
  64. package/bin/host/http/Server.js +112 -0
  65. package/bin/host/http/Server.js.map +1 -0
  66. package/bin/host/http/auth/AuthEnv.d.ts +36 -0
  67. package/bin/host/http/auth/AuthEnv.d.ts.map +1 -0
  68. package/bin/host/http/auth/AuthEnv.js +54 -0
  69. package/bin/host/http/auth/AuthEnv.js.map +1 -0
  70. package/bin/host/http/auth/AuthError.d.ts.map +1 -0
  71. package/bin/host/http/auth/AuthError.js.map +1 -0
  72. package/bin/host/http/auth/CliAuthStateStore.d.ts +29 -0
  73. package/bin/host/http/auth/CliAuthStateStore.d.ts.map +1 -0
  74. package/bin/host/http/auth/CliAuthStateStore.js +26 -0
  75. package/bin/host/http/auth/CliAuthStateStore.js.map +1 -0
  76. package/bin/host/http/auth/PasswordHasher.d.ts.map +1 -0
  77. package/bin/host/http/auth/PasswordHasher.js.map +1 -0
  78. package/bin/host/http/auth/TokenService.d.ts.map +1 -0
  79. package/bin/host/http/auth/TokenService.js.map +1 -0
  80. package/bin/host/http/auth/types/AuthPermission.d.ts.map +1 -0
  81. package/bin/host/http/auth/types/AuthPermission.js.map +1 -0
  82. package/bin/host/http/auth/types/AuthRoute.d.ts.map +1 -0
  83. package/bin/host/http/auth/types/AuthRoute.js.map +1 -0
  84. package/bin/host/http/auth/types/AuthToken.d.ts.map +1 -0
  85. package/bin/host/http/auth/types/AuthToken.js.map +1 -0
  86. package/bin/host/http/auth/types/AuthTypes.d.ts.map +1 -0
  87. package/bin/host/http/auth/types/AuthTypes.js.map +1 -0
  88. package/bin/host/http/control/AuthControlService.d.ts +30 -0
  89. package/bin/host/http/control/AuthControlService.d.ts.map +1 -0
  90. package/bin/host/http/control/AuthControlService.js +120 -0
  91. package/bin/host/http/control/AuthControlService.js.map +1 -0
  92. package/bin/host/http/control/CommonHelpers.d.ts.map +1 -0
  93. package/bin/host/http/control/CommonHelpers.js.map +1 -0
  94. package/bin/host/http/control/ControlApiRoutes.d.ts +14 -0
  95. package/bin/host/http/control/ControlApiRoutes.d.ts.map +1 -0
  96. package/bin/host/http/control/ControlApiRoutes.js +27 -0
  97. package/bin/host/http/control/ControlApiRoutes.js.map +1 -0
  98. package/bin/host/http/control/ControlAuthorizationRoutes.d.ts +17 -0
  99. package/bin/host/http/control/ControlAuthorizationRoutes.d.ts.map +1 -0
  100. package/bin/host/http/control/ControlAuthorizationRoutes.js +85 -0
  101. package/bin/host/http/control/ControlAuthorizationRoutes.js.map +1 -0
  102. package/bin/host/http/control/ControlRouter.d.ts +19 -0
  103. package/bin/host/http/control/ControlRouter.d.ts.map +1 -0
  104. package/bin/host/http/control/ControlRouter.js +26 -0
  105. package/bin/host/http/control/ControlRouter.js.map +1 -0
  106. package/bin/host/http/control/ExecuteBySession.d.ts +39 -0
  107. package/bin/host/http/control/ExecuteBySession.d.ts.map +1 -0
  108. package/bin/host/http/control/ExecuteBySession.js +128 -0
  109. package/bin/host/http/control/ExecuteBySession.js.map +1 -0
  110. package/bin/host/http/control/ExecuteInput.d.ts +18 -0
  111. package/bin/host/http/control/ExecuteInput.d.ts.map +1 -0
  112. package/bin/host/http/control/ExecuteInput.js +201 -0
  113. package/bin/host/http/control/ExecuteInput.js.map +1 -0
  114. package/bin/host/http/control/Helpers.d.ts.map +1 -0
  115. package/bin/host/http/control/Helpers.js.map +1 -0
  116. package/bin/host/http/control/MessageTimeline.d.ts +22 -0
  117. package/bin/host/http/control/MessageTimeline.d.ts.map +1 -0
  118. package/bin/host/http/control/MessageTimeline.js +226 -0
  119. package/bin/host/http/control/MessageTimeline.js.map +1 -0
  120. package/bin/host/http/control/ModelRoutes.d.ts +13 -0
  121. package/bin/host/http/control/ModelRoutes.d.ts.map +1 -0
  122. package/bin/host/http/control/ModelRoutes.js +87 -0
  123. package/bin/host/http/control/ModelRoutes.js.map +1 -0
  124. package/bin/host/http/control/OverviewRoutes.d.ts +13 -0
  125. package/bin/host/http/control/OverviewRoutes.d.ts.map +1 -0
  126. package/bin/host/http/control/OverviewRoutes.js +93 -0
  127. package/bin/host/http/control/OverviewRoutes.js.map +1 -0
  128. package/bin/host/http/control/SessionRoutes.d.ts +14 -0
  129. package/bin/host/http/control/SessionRoutes.d.ts.map +1 -0
  130. package/bin/host/http/control/SessionRoutes.js +333 -0
  131. package/bin/host/http/control/SessionRoutes.js.map +1 -0
  132. package/bin/host/http/control/SessionSummaryStore.d.ts +19 -0
  133. package/bin/host/http/control/SessionSummaryStore.d.ts.map +1 -0
  134. package/bin/host/http/control/SessionSummaryStore.js +62 -0
  135. package/bin/host/http/control/SessionSummaryStore.js.map +1 -0
  136. package/bin/host/http/control/TaskRoutes.d.ts +13 -0
  137. package/bin/host/http/control/TaskRoutes.d.ts.map +1 -0
  138. package/bin/host/http/control/TaskRoutes.js +335 -0
  139. package/bin/host/http/control/TaskRoutes.js.map +1 -0
  140. package/bin/host/http/control/TaskStore.d.ts +33 -0
  141. package/bin/host/http/control/TaskStore.d.ts.map +1 -0
  142. package/bin/host/http/control/TaskStore.js +157 -0
  143. package/bin/host/http/control/TaskStore.js.map +1 -0
  144. package/bin/host/http/control/types/AuthControl.d.ts +30 -0
  145. package/bin/host/http/control/types/AuthControl.d.ts.map +1 -0
  146. package/bin/host/http/control/types/AuthControl.js.map +1 -0
  147. package/bin/host/http/control/types/ControlRoutes.d.ts +28 -0
  148. package/bin/host/http/control/types/ControlRoutes.d.ts.map +1 -0
  149. package/bin/host/http/control/types/ControlRoutes.js.map +1 -0
  150. package/bin/host/http/control/types/ControlSessionExecute.d.ts.map +1 -0
  151. package/bin/host/http/control/types/ControlSessionExecute.js.map +1 -0
  152. package/bin/host/http/control/types/ControlViewData.d.ts +320 -0
  153. package/bin/host/http/control/types/ControlViewData.d.ts.map +1 -0
  154. package/bin/host/http/control/types/ControlViewData.js.map +1 -0
  155. package/bin/host/http/execute/execute.d.ts.map +1 -0
  156. package/bin/host/http/execute/execute.js +90 -0
  157. package/bin/host/http/execute/execute.js.map +1 -0
  158. package/bin/host/http/execute/types/InlineInstant.d.ts.map +1 -0
  159. package/bin/host/http/execute/types/InlineInstant.js.map +1 -0
  160. package/bin/host/http/health/health.d.ts.map +1 -0
  161. package/bin/host/http/health/health.js.map +1 -0
  162. package/bin/host/http/plugins/plugins.d.ts.map +1 -0
  163. package/bin/host/http/plugins/plugins.js +55 -0
  164. package/bin/host/http/plugins/plugins.js.map +1 -0
  165. package/bin/host/http/services/services.d.ts.map +1 -0
  166. package/bin/host/http/services/services.js +79 -0
  167. package/bin/host/http/services/services.js.map +1 -0
  168. package/bin/host/http/static/static.d.ts.map +1 -0
  169. package/bin/host/http/static/static.js +97 -0
  170. package/bin/host/http/static/static.js.map +1 -0
  171. package/bin/host/rpc/Server.d.ts +1 -1
  172. package/bin/host/rpc/Server.d.ts.map +1 -1
  173. package/bin/host/rpc/Server.js +1 -1
  174. package/bin/host/rpc/Server.js.map +1 -1
  175. package/bin/host/rpc/types/LocalRpc.d.ts +69 -0
  176. package/bin/host/rpc/types/LocalRpc.d.ts.map +1 -0
  177. package/bin/host/rpc/types/LocalRpc.js.map +1 -0
  178. package/bin/host/runtime/AgentHostRuntime.d.ts +1 -1
  179. package/bin/host/runtime/AgentHostRuntime.d.ts.map +1 -1
  180. package/bin/host/runtime/AgentHostRuntime.js +2 -3
  181. package/bin/host/runtime/AgentHostRuntime.js.map +1 -1
  182. package/bin/host/runtime/CityPaths.d.ts +0 -3
  183. package/bin/host/runtime/CityPaths.d.ts.map +1 -1
  184. package/bin/host/runtime/CityPaths.js +0 -3
  185. package/bin/host/runtime/CityPaths.js.map +1 -1
  186. package/bin/host/runtime/CityRegistry.d.ts +1 -1
  187. package/bin/host/runtime/CityRegistry.d.ts.map +1 -1
  188. package/bin/host/runtime/types/Platform.d.ts.map +1 -0
  189. package/bin/host/runtime/types/Platform.js.map +1 -0
  190. package/bin/host/runtime/types/PlatformGateway.d.ts.map +1 -0
  191. package/bin/host/runtime/types/PlatformGateway.js.map +1 -0
  192. package/bin/host/sdk/Agent.d.ts +2 -1
  193. package/bin/host/sdk/Agent.d.ts.map +1 -1
  194. package/bin/host/sdk/Agent.js +28 -6
  195. package/bin/host/sdk/Agent.js.map +1 -1
  196. package/bin/host/sdk/AgentSdkTypes.d.ts +12 -3
  197. package/bin/host/sdk/AgentSdkTypes.d.ts.map +1 -1
  198. package/bin/host/sdk/RemoteAgent.d.ts +1 -1
  199. package/bin/host/sdk/Session.d.ts +1 -1
  200. package/bin/host/sdk/SessionMetadata.d.ts +1 -1
  201. package/bin/host/types/AgentHost.d.ts +188 -0
  202. package/bin/host/types/AgentHost.d.ts.map +1 -0
  203. package/bin/host/types/AgentHost.js.map +1 -0
  204. package/bin/host/types/Store.d.ts +408 -0
  205. package/bin/host/types/Store.d.ts.map +1 -0
  206. package/bin/host/types/Store.js.map +1 -0
  207. package/bin/index.d.ts +54 -58
  208. package/bin/index.d.ts.map +1 -1
  209. package/bin/index.js +52 -56
  210. package/bin/index.js.map +1 -1
  211. package/bin/model/CreateModel.d.ts +3 -3
  212. package/bin/model/CreateModel.d.ts.map +1 -1
  213. package/bin/model/CreateModel.js +15 -14
  214. package/bin/model/CreateModel.js.map +1 -1
  215. package/bin/model/ModelManager.d.ts +1 -1
  216. package/bin/plugin/builtins/asr/Dependency.d.ts +77 -0
  217. package/bin/plugin/builtins/asr/Dependency.d.ts.map +1 -0
  218. package/bin/plugin/builtins/asr/Dependency.js +238 -0
  219. package/bin/plugin/builtins/asr/Dependency.js.map +1 -0
  220. package/bin/plugin/builtins/asr/ModelCatalog.d.ts.map +1 -0
  221. package/bin/plugin/builtins/asr/ModelCatalog.js +25 -0
  222. package/bin/plugin/builtins/asr/ModelCatalog.js.map +1 -0
  223. package/bin/plugin/builtins/asr/Plugin.d.ts +14 -0
  224. package/bin/plugin/builtins/asr/Plugin.d.ts.map +1 -0
  225. package/bin/plugin/builtins/asr/Plugin.js +585 -0
  226. package/bin/plugin/builtins/asr/Plugin.js.map +1 -0
  227. package/bin/plugin/builtins/auth/Plugin.d.ts +14 -0
  228. package/bin/plugin/builtins/auth/Plugin.d.ts.map +1 -0
  229. package/bin/plugin/builtins/auth/Plugin.js +181 -0
  230. package/bin/plugin/builtins/auth/Plugin.js.map +1 -0
  231. package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.d.ts +41 -0
  232. package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.d.ts.map +1 -0
  233. package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.js +187 -0
  234. package/bin/plugin/builtins/auth/runtime/AuthorizationConfig.js.map +1 -0
  235. package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.d.ts +30 -0
  236. package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.d.ts.map +1 -0
  237. package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.js +123 -0
  238. package/bin/plugin/builtins/auth/runtime/AuthorizationPolicy.js.map +1 -0
  239. package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts +29 -0
  240. package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts.map +1 -0
  241. package/bin/plugin/builtins/auth/runtime/AuthorizationStore.js +178 -0
  242. package/bin/plugin/builtins/auth/runtime/AuthorizationStore.js.map +1 -0
  243. package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts +407 -0
  244. package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts.map +1 -0
  245. package/bin/plugin/builtins/auth/types/AuthPlugin.js +115 -0
  246. package/bin/plugin/builtins/auth/types/AuthPlugin.js.map +1 -0
  247. package/bin/plugin/builtins/skill/Action.d.ts +34 -0
  248. package/bin/plugin/builtins/skill/Action.d.ts.map +1 -0
  249. package/bin/plugin/builtins/skill/Action.js +122 -0
  250. package/bin/plugin/builtins/skill/Action.js.map +1 -0
  251. package/bin/plugin/builtins/skill/Command.d.ts.map +1 -0
  252. package/bin/plugin/builtins/skill/Command.js +70 -0
  253. package/bin/plugin/builtins/skill/Command.js.map +1 -0
  254. package/bin/plugin/builtins/skill/Config.d.ts +18 -0
  255. package/bin/plugin/builtins/skill/Config.d.ts.map +1 -0
  256. package/bin/plugin/builtins/skill/Config.js.map +1 -0
  257. package/bin/plugin/builtins/skill/PROMPT.d.ts +7 -0
  258. package/bin/plugin/builtins/skill/PROMPT.d.ts.map +1 -0
  259. package/bin/plugin/builtins/skill/PROMPT.js +8 -0
  260. package/bin/plugin/builtins/skill/PROMPT.js.map +1 -0
  261. package/bin/plugin/builtins/skill/Plugin.d.ts +14 -0
  262. package/bin/plugin/builtins/skill/Plugin.d.ts.map +1 -0
  263. package/bin/plugin/builtins/skill/Plugin.js +301 -0
  264. package/bin/plugin/builtins/skill/Plugin.js.map +1 -0
  265. package/bin/plugin/builtins/skill/SkillPromptAssets.d.ts +12 -0
  266. package/bin/plugin/builtins/skill/SkillPromptAssets.d.ts.map +1 -0
  267. package/bin/plugin/builtins/skill/SkillPromptAssets.js +13 -0
  268. package/bin/plugin/builtins/skill/SkillPromptAssets.js.map +1 -0
  269. package/bin/plugin/builtins/skill/runtime/Discovery.d.ts +25 -0
  270. package/bin/plugin/builtins/skill/runtime/Discovery.d.ts.map +1 -0
  271. package/bin/plugin/builtins/skill/runtime/Discovery.js.map +1 -0
  272. package/bin/plugin/builtins/skill/runtime/Frontmatter.d.ts.map +1 -0
  273. package/bin/plugin/builtins/skill/runtime/Frontmatter.js.map +1 -0
  274. package/bin/plugin/builtins/skill/runtime/Paths.d.ts +16 -0
  275. package/bin/plugin/builtins/skill/runtime/Paths.d.ts.map +1 -0
  276. package/bin/plugin/builtins/skill/runtime/Paths.js.map +1 -0
  277. package/bin/plugin/builtins/skill/runtime/Prompt.d.ts +19 -0
  278. package/bin/plugin/builtins/skill/runtime/Prompt.d.ts.map +1 -0
  279. package/bin/plugin/builtins/skill/runtime/Prompt.js +54 -0
  280. package/bin/plugin/builtins/skill/runtime/Prompt.js.map +1 -0
  281. package/bin/plugin/builtins/skill/runtime/Store.d.ts +25 -0
  282. package/bin/plugin/builtins/skill/runtime/Store.d.ts.map +1 -0
  283. package/bin/plugin/builtins/skill/runtime/Store.js.map +1 -0
  284. package/bin/plugin/builtins/skill/runtime/SystemProvider.d.ts +24 -0
  285. package/bin/plugin/builtins/skill/runtime/SystemProvider.d.ts.map +1 -0
  286. package/bin/plugin/builtins/skill/runtime/SystemProvider.js +33 -0
  287. package/bin/plugin/builtins/skill/runtime/SystemProvider.js.map +1 -0
  288. package/bin/plugin/builtins/skill/runtime/Types.d.ts +21 -0
  289. package/bin/plugin/builtins/skill/runtime/Types.d.ts.map +1 -0
  290. package/bin/plugin/builtins/skill/runtime/Types.js.map +1 -0
  291. package/bin/plugin/builtins/skill/runtime/Utils.d.ts.map +1 -0
  292. package/bin/plugin/builtins/skill/runtime/Utils.js.map +1 -0
  293. package/bin/plugin/builtins/skill/types/ClaudeSkill.d.ts +63 -0
  294. package/bin/plugin/builtins/skill/types/ClaudeSkill.d.ts.map +1 -0
  295. package/bin/plugin/builtins/skill/types/ClaudeSkill.js.map +1 -0
  296. package/bin/plugin/builtins/skill/types/SkillCommand.d.ts.map +1 -0
  297. package/bin/plugin/builtins/skill/types/SkillCommand.js.map +1 -0
  298. package/bin/plugin/builtins/skill/types/SkillPlugin.d.ts.map +1 -0
  299. package/bin/plugin/builtins/skill/types/SkillPlugin.js.map +1 -0
  300. package/bin/plugin/builtins/skill/types/SkillRoot.d.ts.map +1 -0
  301. package/bin/plugin/builtins/skill/types/SkillRoot.js.map +1 -0
  302. package/bin/plugin/builtins/tts/Dependency.d.ts +90 -0
  303. package/bin/plugin/builtins/tts/Dependency.d.ts.map +1 -0
  304. package/bin/plugin/builtins/tts/Dependency.js +344 -0
  305. package/bin/plugin/builtins/tts/Dependency.js.map +1 -0
  306. package/bin/plugin/builtins/tts/Plugin.d.ts +13 -0
  307. package/bin/plugin/builtins/tts/Plugin.d.ts.map +1 -0
  308. package/bin/plugin/builtins/tts/Plugin.js +523 -0
  309. package/bin/plugin/builtins/tts/Plugin.js.map +1 -0
  310. package/bin/plugin/builtins/tts/runtime/Catalog.d.ts +21 -0
  311. package/bin/plugin/builtins/tts/runtime/Catalog.d.ts.map +1 -0
  312. package/bin/plugin/builtins/tts/runtime/Catalog.js.map +1 -0
  313. package/bin/plugin/builtins/tts/runtime/DependencyInstaller.d.ts +143 -0
  314. package/bin/plugin/builtins/tts/runtime/DependencyInstaller.d.ts.map +1 -0
  315. package/bin/plugin/builtins/tts/runtime/DependencyInstaller.js.map +1 -0
  316. package/bin/plugin/builtins/tts/runtime/Installer.d.ts +89 -0
  317. package/bin/plugin/builtins/tts/runtime/Installer.d.ts.map +1 -0
  318. package/bin/plugin/builtins/tts/runtime/Installer.js.map +1 -0
  319. package/bin/plugin/builtins/tts/runtime/Paths.d.ts.map +1 -0
  320. package/bin/plugin/builtins/tts/runtime/Paths.js.map +1 -0
  321. package/bin/plugin/builtins/tts/runtime/Synthesizer.d.ts +44 -0
  322. package/bin/plugin/builtins/tts/runtime/Synthesizer.d.ts.map +1 -0
  323. package/bin/plugin/builtins/tts/runtime/Synthesizer.js +363 -0
  324. package/bin/plugin/builtins/tts/runtime/Synthesizer.js.map +1 -0
  325. package/bin/plugin/builtins/tts/types/Tts.d.ts.map +1 -0
  326. package/bin/plugin/builtins/tts/types/Tts.js.map +1 -0
  327. package/bin/plugin/builtins/tts/types/TtsPlugin.d.ts +161 -0
  328. package/bin/plugin/builtins/tts/types/TtsPlugin.d.ts.map +1 -0
  329. package/bin/plugin/builtins/tts/types/TtsPlugin.js.map +1 -0
  330. package/bin/plugin/builtins/voice/Dependency.d.ts +77 -0
  331. package/bin/plugin/builtins/voice/Dependency.d.ts.map +1 -0
  332. package/bin/plugin/builtins/voice/Dependency.js +237 -0
  333. package/bin/plugin/builtins/voice/Dependency.js.map +1 -0
  334. package/bin/plugin/builtins/voice/ModelCatalog.d.ts.map +1 -0
  335. package/bin/plugin/builtins/voice/ModelCatalog.js +25 -0
  336. package/bin/plugin/builtins/voice/ModelCatalog.js.map +1 -0
  337. package/bin/plugin/builtins/voice/Plugin.d.ts +14 -0
  338. package/bin/plugin/builtins/voice/Plugin.d.ts.map +1 -0
  339. package/bin/plugin/builtins/voice/Plugin.js +546 -0
  340. package/bin/plugin/builtins/voice/Plugin.js.map +1 -0
  341. package/bin/plugin/builtins/voice/runtime/Catalog.d.ts +18 -0
  342. package/bin/plugin/builtins/voice/runtime/Catalog.d.ts.map +1 -0
  343. package/bin/plugin/builtins/voice/runtime/Catalog.js.map +1 -0
  344. package/bin/plugin/builtins/voice/runtime/DependencyInstaller.d.ts +145 -0
  345. package/bin/plugin/builtins/voice/runtime/DependencyInstaller.d.ts.map +1 -0
  346. package/bin/plugin/builtins/voice/runtime/DependencyInstaller.js.map +1 -0
  347. package/bin/plugin/builtins/voice/runtime/Installer.d.ts +94 -0
  348. package/bin/plugin/builtins/voice/runtime/Installer.d.ts.map +1 -0
  349. package/bin/plugin/builtins/voice/runtime/Installer.js.map +1 -0
  350. package/bin/plugin/builtins/voice/runtime/Paths.d.ts.map +1 -0
  351. package/bin/plugin/builtins/voice/runtime/Paths.js.map +1 -0
  352. package/bin/plugin/builtins/voice/runtime/Transcriber.d.ts +57 -0
  353. package/bin/plugin/builtins/voice/runtime/Transcriber.d.ts.map +1 -0
  354. package/bin/plugin/builtins/voice/runtime/Transcriber.js.map +1 -0
  355. package/bin/plugin/builtins/voice/types/Voice.d.ts.map +1 -0
  356. package/bin/plugin/builtins/voice/types/Voice.js.map +1 -0
  357. package/bin/plugin/builtins/voice/types/VoicePlugin.d.ts +190 -0
  358. package/bin/plugin/builtins/voice/types/VoicePlugin.d.ts.map +1 -0
  359. package/bin/plugin/builtins/voice/types/VoicePlugin.js.map +1 -0
  360. package/bin/plugin/builtins/web/Dependency.d.ts +10 -0
  361. package/bin/plugin/builtins/web/Dependency.d.ts.map +1 -0
  362. package/bin/plugin/builtins/web/Dependency.js +10 -0
  363. package/bin/plugin/builtins/web/Dependency.js.map +1 -0
  364. package/bin/plugin/builtins/web/PROMPT.agent-browser.d.ts +7 -0
  365. package/bin/plugin/builtins/web/PROMPT.agent-browser.d.ts.map +1 -0
  366. package/bin/plugin/builtins/web/PROMPT.agent-browser.js +8 -0
  367. package/bin/plugin/builtins/web/PROMPT.agent-browser.js.map +1 -0
  368. package/bin/plugin/builtins/web/PROMPT.d.ts +7 -0
  369. package/bin/plugin/builtins/web/PROMPT.d.ts.map +1 -0
  370. package/bin/plugin/builtins/web/PROMPT.js +8 -0
  371. package/bin/plugin/builtins/web/PROMPT.js.map +1 -0
  372. package/bin/plugin/builtins/web/PROMPT.web-access.d.ts +7 -0
  373. package/bin/plugin/builtins/web/PROMPT.web-access.d.ts.map +1 -0
  374. package/bin/plugin/builtins/web/PROMPT.web-access.js +8 -0
  375. package/bin/plugin/builtins/web/PROMPT.web-access.js.map +1 -0
  376. package/bin/plugin/builtins/web/Plugin.d.ts +13 -0
  377. package/bin/plugin/builtins/web/Plugin.d.ts.map +1 -0
  378. package/bin/plugin/builtins/web/Plugin.js +459 -0
  379. package/bin/plugin/builtins/web/Plugin.js.map +1 -0
  380. package/bin/plugin/builtins/web/WebPromptAssets.d.ts +20 -0
  381. package/bin/plugin/builtins/web/WebPromptAssets.d.ts.map +1 -0
  382. package/bin/plugin/builtins/web/WebPromptAssets.js +23 -0
  383. package/bin/plugin/builtins/web/WebPromptAssets.js.map +1 -0
  384. package/bin/plugin/builtins/web/runtime/Config.d.ts +21 -0
  385. package/bin/plugin/builtins/web/runtime/Config.d.ts.map +1 -0
  386. package/bin/plugin/builtins/web/runtime/Config.js +79 -0
  387. package/bin/plugin/builtins/web/runtime/Config.js.map +1 -0
  388. package/bin/plugin/builtins/web/runtime/Source.d.ts +29 -0
  389. package/bin/plugin/builtins/web/runtime/Source.d.ts.map +1 -0
  390. package/bin/plugin/builtins/web/runtime/Source.js +209 -0
  391. package/bin/plugin/builtins/web/runtime/Source.js.map +1 -0
  392. package/bin/plugin/builtins/web/types/WebPlugin.d.ts +133 -0
  393. package/bin/plugin/builtins/web/types/WebPlugin.d.ts.map +1 -0
  394. package/bin/plugin/builtins/web/types/WebPlugin.js.map +1 -0
  395. package/bin/plugin/builtins/workboard/Plugin.d.ts +13 -0
  396. package/bin/plugin/builtins/workboard/Plugin.d.ts.map +1 -0
  397. package/bin/plugin/builtins/workboard/Plugin.js +71 -0
  398. package/bin/plugin/builtins/workboard/Plugin.js.map +1 -0
  399. package/bin/plugin/builtins/workboard/runtime/Collector.d.ts +14 -0
  400. package/bin/plugin/builtins/workboard/runtime/Collector.d.ts.map +1 -0
  401. package/bin/plugin/builtins/workboard/runtime/Collector.js +62 -0
  402. package/bin/plugin/builtins/workboard/runtime/Collector.js.map +1 -0
  403. package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts +61 -0
  404. package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts.map +1 -0
  405. package/bin/plugin/builtins/workboard/runtime/Normalizer.js.map +1 -0
  406. package/bin/plugin/builtins/workboard/runtime/Store.d.ts +48 -0
  407. package/bin/plugin/builtins/workboard/runtime/Store.d.ts.map +1 -0
  408. package/bin/plugin/builtins/workboard/runtime/Store.js +84 -0
  409. package/bin/plugin/builtins/workboard/runtime/Store.js.map +1 -0
  410. package/bin/plugin/builtins/workboard/types/Workboard.d.ts.map +1 -0
  411. package/bin/plugin/builtins/workboard/types/Workboard.js.map +1 -0
  412. package/bin/plugin/core/Activation.d.ts +19 -0
  413. package/bin/plugin/core/Activation.d.ts.map +1 -0
  414. package/bin/plugin/core/Activation.js +20 -0
  415. package/bin/plugin/core/Activation.js.map +1 -0
  416. package/bin/plugin/core/Catalog.d.ts +42 -0
  417. package/bin/plugin/core/Catalog.d.ts.map +1 -0
  418. package/bin/plugin/core/Catalog.js +92 -0
  419. package/bin/plugin/core/Catalog.js.map +1 -0
  420. package/bin/plugin/core/HookRegistry.d.ts +68 -0
  421. package/bin/plugin/core/HookRegistry.d.ts.map +1 -0
  422. package/bin/plugin/core/HookRegistry.js.map +1 -0
  423. package/bin/plugin/core/HttpRoutes.d.ts +22 -0
  424. package/bin/plugin/core/HttpRoutes.d.ts.map +1 -0
  425. package/bin/plugin/core/HttpRoutes.js +37 -0
  426. package/bin/plugin/core/HttpRoutes.js.map +1 -0
  427. package/bin/plugin/core/LocalExecution.d.ts +32 -0
  428. package/bin/plugin/core/LocalExecution.d.ts.map +1 -0
  429. package/bin/plugin/core/LocalExecution.js +148 -0
  430. package/bin/plugin/core/LocalExecution.js.map +1 -0
  431. package/bin/plugin/core/PluginCommand.d.ts.map +1 -0
  432. package/bin/plugin/core/PluginCommand.js +188 -0
  433. package/bin/plugin/core/PluginCommand.js.map +1 -0
  434. package/bin/plugin/core/PluginManager.d.ts +24 -0
  435. package/bin/plugin/core/PluginManager.d.ts.map +1 -0
  436. package/bin/plugin/core/PluginManager.js +62 -0
  437. package/bin/plugin/core/PluginManager.js.map +1 -0
  438. package/bin/plugin/core/PluginRegistry.d.ts +66 -0
  439. package/bin/plugin/core/PluginRegistry.d.ts.map +1 -0
  440. package/bin/plugin/core/PluginRegistry.js +184 -0
  441. package/bin/plugin/core/PluginRegistry.js.map +1 -0
  442. package/bin/plugin/core/Plugins.d.ts +20 -0
  443. package/bin/plugin/core/Plugins.d.ts.map +1 -0
  444. package/bin/plugin/core/Plugins.js +33 -0
  445. package/bin/plugin/core/Plugins.js.map +1 -0
  446. package/bin/plugin/core/ProjectConfigStore.d.ts +30 -0
  447. package/bin/plugin/core/ProjectConfigStore.d.ts.map +1 -0
  448. package/bin/plugin/core/ProjectConfigStore.js.map +1 -0
  449. package/bin/plugin/types/Plugin.d.ts +697 -0
  450. package/bin/plugin/types/Plugin.d.ts.map +1 -0
  451. package/bin/plugin/types/Plugin.js.map +1 -0
  452. package/bin/plugin/types/PluginApi.d.ts +155 -0
  453. package/bin/plugin/types/PluginApi.d.ts.map +1 -0
  454. package/bin/plugin/types/PluginApi.js.map +1 -0
  455. package/bin/plugin/types/PluginLifecycle.d.ts.map +1 -0
  456. package/bin/plugin/types/PluginLifecycle.js.map +1 -0
  457. package/bin/sandbox/MacOsSeatbeltSandbox.d.ts +1 -1
  458. package/bin/sandbox/SandboxConfigResolver.d.ts +1 -1
  459. package/bin/sandbox/SandboxRunner.d.ts +1 -1
  460. package/bin/sandbox/types/Sandbox.d.ts +130 -0
  461. package/bin/sandbox/types/Sandbox.d.ts.map +1 -0
  462. package/bin/sandbox/types/Sandbox.js +10 -0
  463. package/bin/sandbox/types/Sandbox.js.map +1 -0
  464. package/bin/sandbox/types/SandboxRuntime.d.ts +318 -0
  465. package/bin/sandbox/types/SandboxRuntime.d.ts.map +1 -0
  466. package/bin/sandbox/types/SandboxRuntime.js.map +1 -0
  467. package/bin/service/builtins/BaseService.d.ts +2 -2
  468. package/bin/service/builtins/BaseService.d.ts.map +1 -1
  469. package/bin/service/builtins/chat/ChatService.d.ts +4 -4
  470. package/bin/service/builtins/chat/ChatService.d.ts.map +1 -1
  471. package/bin/service/builtins/chat/ChatServiceTypes.d.ts +2 -2
  472. package/bin/service/builtins/chat/ChatServiceTypes.d.ts.map +1 -1
  473. package/bin/service/builtins/chat/PROMPT.direct.d.ts +7 -0
  474. package/bin/service/builtins/chat/PROMPT.direct.d.ts.map +1 -0
  475. package/bin/service/builtins/chat/PROMPT.direct.js +8 -0
  476. package/bin/service/builtins/chat/PROMPT.direct.js.map +1 -0
  477. package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts +4 -1
  478. package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts.map +1 -1
  479. package/bin/service/builtins/chat/accounts/ChannelAccountService.js +64 -91
  480. package/bin/service/builtins/chat/accounts/ChannelAccountService.js.map +1 -1
  481. package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts +1 -1
  482. package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts.map +1 -1
  483. package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts +2 -2
  484. package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +1 -1
  485. package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts +1 -1
  486. package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts.map +1 -1
  487. package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts +1 -1
  488. package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts.map +1 -1
  489. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +1 -1
  490. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -1
  491. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts +2 -2
  492. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -1
  493. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts +1 -1
  494. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +1 -1
  495. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.d.ts +7 -0
  496. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.d.ts.map +1 -0
  497. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js +8 -0
  498. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js.map +1 -0
  499. package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.d.ts.map +1 -0
  500. package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.js.map +1 -0
  501. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts +7 -0
  502. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts.map +1 -0
  503. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js +8 -0
  504. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js.map +1 -0
  505. package/bin/service/builtins/chat/channels/qq/QQ.d.ts +1 -1
  506. package/bin/service/builtins/chat/channels/qq/QQ.d.ts.map +1 -1
  507. package/bin/service/builtins/chat/channels/qq/QQ.js +1 -1
  508. package/bin/service/builtins/chat/channels/qq/QQ.js.map +1 -1
  509. package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts +2 -2
  510. package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts.map +1 -1
  511. package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts +2 -2
  512. package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -1
  513. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts +2 -2
  514. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +1 -1
  515. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js +1 -1
  516. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js.map +1 -1
  517. package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts +2 -2
  518. package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts.map +1 -1
  519. package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts +2 -2
  520. package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts.map +1 -1
  521. package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts +1 -1
  522. package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts.map +1 -1
  523. package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts +1 -1
  524. package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -1
  525. package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts +2 -2
  526. package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts.map +1 -1
  527. package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts +485 -0
  528. package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts.map +1 -0
  529. package/bin/service/builtins/chat/channels/qq/types/QqChannel.js.map +1 -0
  530. package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.d.ts.map +1 -0
  531. package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.js.map +1 -0
  532. package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts +1 -1
  533. package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts.map +1 -1
  534. package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts +1 -1
  535. package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts.map +1 -1
  536. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.d.ts +7 -0
  537. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.d.ts.map +1 -0
  538. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js +8 -0
  539. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js.map +1 -0
  540. package/bin/service/builtins/chat/runtime/ChannelContextStore.js +1 -1
  541. package/bin/service/builtins/chat/runtime/ChannelContextStore.js.map +1 -1
  542. package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts +2 -2
  543. package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts.map +1 -1
  544. package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts +3 -3
  545. package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts.map +1 -1
  546. package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts +2 -2
  547. package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts.map +1 -1
  548. package/bin/service/builtins/chat/runtime/ChatChannelActions.js +11 -18
  549. package/bin/service/builtins/chat/runtime/ChatChannelActions.js.map +1 -1
  550. package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts +3 -3
  551. package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts.map +1 -1
  552. package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts +3 -3
  553. package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts.map +1 -1
  554. package/bin/service/builtins/chat/runtime/ChatChannelCore.js +9 -17
  555. package/bin/service/builtins/chat/runtime/ChatChannelCore.js.map +1 -1
  556. package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts +1 -1
  557. package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -1
  558. package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts +1 -1
  559. package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts.map +1 -1
  560. package/bin/service/builtins/chat/runtime/ChatHistoryStore.js +1 -1
  561. package/bin/service/builtins/chat/runtime/ChatHistoryStore.js.map +1 -1
  562. package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts +1 -1
  563. package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts.map +1 -1
  564. package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts +24 -0
  565. package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts.map +1 -0
  566. package/bin/service/builtins/chat/runtime/ChatPromptAssets.js +28 -0
  567. package/bin/service/builtins/chat/runtime/ChatPromptAssets.js.map +1 -0
  568. package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts +1 -1
  569. package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -1
  570. package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts +3 -3
  571. package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts.map +1 -1
  572. package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts +2 -2
  573. package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts.map +1 -1
  574. package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts +1 -1
  575. package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts.map +1 -1
  576. package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts +2 -2
  577. package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts.map +1 -1
  578. package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts.map +1 -1
  579. package/bin/service/builtins/chat/runtime/ChatServiceSystem.js +4 -47
  580. package/bin/service/builtins/chat/runtime/ChatServiceSystem.js.map +1 -1
  581. package/bin/service/builtins/chat/runtime/ChatSession.d.ts +2 -2
  582. package/bin/service/builtins/chat/runtime/ChatSessionExecutionComposer.d.ts +2 -2
  583. package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts +2 -2
  584. package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts +1 -1
  585. package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts.map +1 -1
  586. package/bin/service/builtins/chat/runtime/InboundAugment.d.ts +1 -1
  587. package/bin/service/builtins/chat/runtime/InboundAugment.d.ts.map +1 -1
  588. package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts +1 -1
  589. package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts.map +1 -1
  590. package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts +1 -1
  591. package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts.map +1 -1
  592. package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts +1 -1
  593. package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts.map +1 -1
  594. package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts +1 -1
  595. package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts.map +1 -1
  596. package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts +1 -1
  597. package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts.map +1 -1
  598. package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts +2 -2
  599. package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts.map +1 -1
  600. package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts +1 -1
  601. package/bin/service/builtins/chat/types/ChannelAccount.d.ts +1 -1
  602. package/bin/service/builtins/chat/types/ChannelAccount.d.ts.map +1 -1
  603. package/bin/service/builtins/chat/types/ChatHistory.d.ts +1 -1
  604. package/bin/service/builtins/chat/types/ChatHistory.d.ts.map +1 -1
  605. package/bin/service/builtins/chat/types/ChatPlugin.d.ts +238 -0
  606. package/bin/service/builtins/chat/types/ChatPlugin.d.ts.map +1 -0
  607. package/bin/service/builtins/chat/types/ChatPlugin.js.map +1 -0
  608. package/bin/service/builtins/chat/types/ChatPromptContext.d.ts +125 -0
  609. package/bin/service/builtins/chat/types/ChatPromptContext.d.ts.map +1 -0
  610. package/bin/service/builtins/chat/types/ChatPromptContext.js.map +1 -0
  611. package/bin/service/builtins/chat/types/ChatQueue.d.ts +1 -1
  612. package/bin/service/builtins/chat/types/ChatQueue.d.ts.map +1 -1
  613. package/bin/service/builtins/chat/types/ChatQueueWorker.d.ts.map +1 -0
  614. package/bin/service/builtins/chat/types/ChatQueueWorker.js.map +1 -0
  615. package/bin/service/builtins/chat/types/ChatRuntime.d.ts +32 -0
  616. package/bin/service/builtins/chat/types/ChatRuntime.d.ts.map +1 -0
  617. package/bin/service/builtins/chat/types/ChatRuntime.js.map +1 -0
  618. package/bin/service/builtins/chat/types/ChatService.d.ts +145 -0
  619. package/bin/service/builtins/chat/types/ChatService.d.ts.map +1 -0
  620. package/bin/service/builtins/chat/types/ChatService.js.map +1 -0
  621. package/bin/service/builtins/contact/ContactService.d.ts +1 -1
  622. package/bin/service/builtins/contact/ContactService.d.ts.map +1 -1
  623. package/bin/service/builtins/contact/PROMPT.d.ts +7 -0
  624. package/bin/service/builtins/contact/PROMPT.d.ts.map +1 -0
  625. package/bin/service/builtins/contact/PROMPT.js +8 -0
  626. package/bin/service/builtins/contact/PROMPT.js.map +1 -0
  627. package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts +12 -0
  628. package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts.map +1 -0
  629. package/bin/service/builtins/contact/runtime/ContactPromptAssets.js +13 -0
  630. package/bin/service/builtins/contact/runtime/ContactPromptAssets.js.map +1 -0
  631. package/bin/service/builtins/contact/runtime/RemoteClient.d.ts +1 -1
  632. package/bin/service/builtins/contact/runtime/RemoteClient.d.ts.map +1 -1
  633. package/bin/service/builtins/contact/runtime/SystemProvider.d.ts +0 -7
  634. package/bin/service/builtins/contact/runtime/SystemProvider.d.ts.map +1 -1
  635. package/bin/service/builtins/contact/runtime/SystemProvider.js +3 -9
  636. package/bin/service/builtins/contact/runtime/SystemProvider.js.map +1 -1
  637. package/bin/service/builtins/memory/Action.d.ts +3 -7
  638. package/bin/service/builtins/memory/Action.d.ts.map +1 -1
  639. package/bin/service/builtins/memory/Action.js +4 -42
  640. package/bin/service/builtins/memory/Action.js.map +1 -1
  641. package/bin/service/builtins/memory/MemoryService.d.ts +1 -1
  642. package/bin/service/builtins/memory/MemoryService.d.ts.map +1 -1
  643. package/bin/service/builtins/memory/MemoryService.js +2 -32
  644. package/bin/service/builtins/memory/MemoryService.js.map +1 -1
  645. package/bin/service/builtins/memory/runtime/Search.d.ts +7 -3
  646. package/bin/service/builtins/memory/runtime/Search.d.ts.map +1 -1
  647. package/bin/service/builtins/memory/runtime/Search.js +220 -16
  648. package/bin/service/builtins/memory/runtime/Search.js.map +1 -1
  649. package/bin/service/builtins/memory/runtime/Store.d.ts +9 -50
  650. package/bin/service/builtins/memory/runtime/Store.d.ts.map +1 -1
  651. package/bin/service/builtins/memory/runtime/Store.js +10 -130
  652. package/bin/service/builtins/memory/runtime/Store.js.map +1 -1
  653. package/bin/service/builtins/memory/runtime/Writer.d.ts.map +1 -1
  654. package/bin/service/builtins/memory/runtime/Writer.js +1 -2
  655. package/bin/service/builtins/memory/runtime/Writer.js.map +1 -1
  656. package/bin/service/builtins/memory/types/Memory.d.ts +4 -58
  657. package/bin/service/builtins/memory/types/Memory.d.ts.map +1 -1
  658. package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts +1 -1
  659. package/bin/service/builtins/shell/ShellRuntimeTypes.js +1 -1
  660. package/bin/service/builtins/shell/ShellService.d.ts +1 -1
  661. package/bin/service/builtins/shell/ShellService.d.ts.map +1 -1
  662. package/bin/service/builtins/shell/runtime/ShellActionRuntime.js +1 -1
  663. package/bin/service/builtins/shell/runtime/ShellActionRuntime.js.map +1 -1
  664. package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js +1 -1
  665. package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +1 -1
  666. package/bin/service/builtins/shell/types/Shell.d.ts.map +1 -0
  667. package/bin/service/builtins/shell/types/Shell.js.map +1 -0
  668. package/bin/service/builtins/task/PROMPT.d.ts +7 -0
  669. package/bin/service/builtins/task/PROMPT.d.ts.map +1 -0
  670. package/bin/service/builtins/task/PROMPT.js +8 -0
  671. package/bin/service/builtins/task/PROMPT.js.map +1 -0
  672. package/bin/service/builtins/task/Scheduler.js +1 -1
  673. package/bin/service/builtins/task/Scheduler.js.map +1 -1
  674. package/bin/service/builtins/task/TaskService.d.ts +2 -2
  675. package/bin/service/builtins/task/TaskService.d.ts.map +1 -1
  676. package/bin/service/builtins/task/runtime/Model.d.ts +1 -1
  677. package/bin/service/builtins/task/runtime/Model.d.ts.map +1 -1
  678. package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts +2 -2
  679. package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts.map +1 -1
  680. package/bin/service/builtins/task/runtime/TaskActionInput.d.ts +3 -3
  681. package/bin/service/builtins/task/runtime/TaskActionInput.d.ts.map +1 -1
  682. package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts +12 -0
  683. package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts.map +1 -0
  684. package/bin/service/builtins/task/runtime/TaskPromptAssets.js +13 -0
  685. package/bin/service/builtins/task/runtime/TaskPromptAssets.js.map +1 -0
  686. package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts +2 -2
  687. package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts.map +1 -1
  688. package/bin/service/builtins/task/runtime/TaskRunnerRound.js +1 -1
  689. package/bin/service/builtins/task/runtime/TaskRunnerRound.js.map +1 -1
  690. package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts +1 -1
  691. package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts +1 -1
  692. package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts +1 -1
  693. package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts.map +1 -1
  694. package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts +2 -5
  695. package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts.map +1 -1
  696. package/bin/service/builtins/task/runtime/TaskServiceSystem.js +2 -19
  697. package/bin/service/builtins/task/runtime/TaskServiceSystem.js.map +1 -1
  698. package/bin/service/builtins/task/types/TaskService.d.ts +52 -0
  699. package/bin/service/builtins/task/types/TaskService.d.ts.map +1 -0
  700. package/bin/service/builtins/task/types/TaskService.js +9 -0
  701. package/bin/service/builtins/task/types/TaskService.js.map +1 -0
  702. package/bin/service/core/Manager.d.ts +1 -1
  703. package/bin/service/core/Manager.d.ts.map +1 -1
  704. package/bin/service/core/ServiceActionRunner.d.ts +4 -4
  705. package/bin/service/core/ServiceActionRunner.d.ts.map +1 -1
  706. package/bin/service/core/ServiceClassRegistry.d.ts +1 -1
  707. package/bin/service/core/ServiceClassRegistry.d.ts.map +1 -1
  708. package/bin/service/core/ServiceManager.d.ts +1 -1
  709. package/bin/service/core/ServiceManager.d.ts.map +1 -1
  710. package/bin/service/core/ServiceStateController.d.ts +2 -2
  711. package/bin/service/core/ServiceStateController.d.ts.map +1 -1
  712. package/bin/service/schedule/Store.d.ts +23 -26
  713. package/bin/service/schedule/Store.d.ts.map +1 -1
  714. package/bin/service/schedule/Store.js +173 -155
  715. package/bin/service/schedule/Store.js.map +1 -1
  716. package/bin/service/types/Service.d.ts +205 -0
  717. package/bin/service/types/Service.d.ts.map +1 -0
  718. package/bin/service/types/Service.js +10 -0
  719. package/bin/service/types/Service.js.map +1 -0
  720. package/bin/service/types/ServiceSchedule.d.ts +114 -0
  721. package/bin/service/types/ServiceSchedule.d.ts.map +1 -0
  722. package/bin/service/types/ServiceSchedule.js.map +1 -0
  723. package/bin/service/types/ServiceState.d.ts +104 -0
  724. package/bin/service/types/ServiceState.d.ts.map +1 -0
  725. package/bin/service/types/ServiceState.js.map +1 -0
  726. package/bin/service/types/Services.d.ts +94 -0
  727. package/bin/service/types/Services.d.ts.map +1 -0
  728. package/bin/service/types/Services.js.map +1 -0
  729. package/bin/session/Session.d.ts +4 -4
  730. package/bin/session/Session.d.ts.map +1 -1
  731. package/bin/session/SessionRunScope.d.ts +2 -2
  732. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts +2 -2
  733. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js +2 -2
  734. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js.map +1 -1
  735. package/bin/session/composer/execution/LocalSessionExecutionComposer.d.ts +2 -2
  736. package/bin/session/composer/execution/LocalSessionExecutionComposer.js +1 -1
  737. package/bin/session/composer/execution/LocalSessionExecutionComposer.js.map +1 -1
  738. package/bin/session/composer/execution/SessionExecutionComposer.d.ts +2 -2
  739. package/bin/session/composer/history/SessionHistoryComposer.d.ts +2 -2
  740. package/bin/session/composer/history/SessionHistoryWriter.d.ts +2 -2
  741. package/bin/session/composer/history/SessionHistoryWriter.d.ts.map +1 -1
  742. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +2 -2
  743. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js +2 -2
  744. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +1 -1
  745. package/bin/session/composer/system/default/InitPromptAssets.d.ts +16 -0
  746. package/bin/session/composer/system/default/InitPromptAssets.d.ts.map +1 -0
  747. package/bin/session/composer/system/default/InitPromptAssets.js +18 -0
  748. package/bin/session/composer/system/default/InitPromptAssets.js.map +1 -0
  749. package/bin/session/composer/system/default/InitPrompts.d.ts +2 -9
  750. package/bin/session/composer/system/default/InitPrompts.d.ts.map +1 -1
  751. package/bin/session/composer/system/default/InitPrompts.js +2 -28
  752. package/bin/session/composer/system/default/InitPrompts.js.map +1 -1
  753. package/bin/session/composer/system/default/StaticPromptCatalog.d.ts +1 -1
  754. package/bin/session/composer/system/default/StaticPromptCatalog.d.ts.map +1 -1
  755. package/bin/session/composer/system/default/SystemDomain.d.ts.map +1 -1
  756. package/bin/session/composer/system/default/SystemDomain.js +6 -21
  757. package/bin/session/composer/system/default/SystemDomain.js.map +1 -1
  758. package/bin/session/composer/system/default/SystemPromptAssets.d.ts +20 -0
  759. package/bin/session/composer/system/default/SystemPromptAssets.d.ts.map +1 -0
  760. package/bin/session/composer/system/default/SystemPromptAssets.js +23 -0
  761. package/bin/session/composer/system/default/SystemPromptAssets.js.map +1 -0
  762. package/bin/session/composer/system/default/assets/core.prompt.d.ts +7 -0
  763. package/bin/session/composer/system/default/assets/core.prompt.d.ts.map +1 -0
  764. package/bin/session/composer/system/default/assets/core.prompt.js +8 -0
  765. package/bin/session/composer/system/default/assets/core.prompt.js.map +1 -0
  766. package/bin/session/composer/system/default/assets/init/PROFILE.md.d.ts +7 -0
  767. package/bin/session/composer/system/default/assets/init/PROFILE.md.d.ts.map +1 -0
  768. package/bin/session/composer/system/default/assets/init/PROFILE.md.js +8 -0
  769. package/bin/session/composer/system/default/assets/init/PROFILE.md.js.map +1 -0
  770. package/bin/session/composer/system/default/assets/init/SOUL.md.d.ts +7 -0
  771. package/bin/session/composer/system/default/assets/init/SOUL.md.d.ts.map +1 -0
  772. package/bin/session/composer/system/default/assets/init/SOUL.md.js +8 -0
  773. package/bin/session/composer/system/default/assets/init/SOUL.md.js.map +1 -0
  774. package/bin/session/composer/system/default/assets/service.prompt.d.ts +7 -0
  775. package/bin/session/composer/system/default/assets/service.prompt.d.ts.map +1 -0
  776. package/bin/session/composer/system/default/assets/service.prompt.js +8 -0
  777. package/bin/session/composer/system/default/assets/service.prompt.js.map +1 -0
  778. package/bin/session/composer/system/default/assets/task.prompt.d.ts +7 -0
  779. package/bin/session/composer/system/default/assets/task.prompt.d.ts.map +1 -0
  780. package/bin/session/composer/system/default/assets/task.prompt.js +8 -0
  781. package/bin/session/composer/system/default/assets/task.prompt.js.map +1 -0
  782. package/bin/session/composer/system/default/variables/VariableReplacer.js +2 -2
  783. package/bin/session/composer/system/default/variables/VariableReplacer.js.map +1 -1
  784. package/bin/session/executors/local/LocalSessionCore.d.ts +2 -2
  785. package/bin/session/executors/local/LocalSessionCore.d.ts.map +1 -1
  786. package/bin/session/executors/local/LocalSessionExecutor.d.ts +2 -2
  787. package/bin/session/executors/local/LocalSessionExecutor.d.ts.map +1 -1
  788. package/bin/session/executors/local/SessionLoopDecision.d.ts +1 -1
  789. package/bin/session/executors/local/SessionSignals.d.ts +2 -2
  790. package/bin/session/executors/local/SessionSignals.d.ts.map +1 -1
  791. package/bin/session/messages/SessionAttachmentMapper.d.ts +1 -1
  792. package/bin/session/messages/SessionMessageCodec.d.ts +1 -1
  793. package/bin/session/messages/SessionMessageLog.d.ts +2 -2
  794. package/bin/session/messages/SessionMessageLog.d.ts.map +1 -1
  795. package/bin/session/messages/SessionStepEventMapper.d.ts +1 -1
  796. package/bin/session/messages/SessionStepEventMapper.js +1 -1
  797. package/bin/session/messages/SessionStepEventMapper.js.map +1 -1
  798. package/bin/session/tools/shell/ShellToolBridge.d.ts +1 -1
  799. package/bin/session/tools/shell/ShellToolBridge.d.ts.map +1 -1
  800. package/bin/session/tools/shell/ShellToolBridge.js +1 -1
  801. package/bin/session/tools/shell/ShellToolBridge.js.map +1 -1
  802. package/bin/session/tools/shell/ShellToolDefinition.d.ts +2 -2
  803. package/bin/session/tools/shell/ShellToolDefinition.d.ts.map +1 -1
  804. package/bin/session/tools/shell/ShellToolFormatting.js +1 -1
  805. package/bin/session/tools/shell/ShellToolFormatting.js.map +1 -1
  806. package/bin/session/types/SessionExecutor.d.ts +18 -0
  807. package/bin/session/types/SessionExecutor.d.ts.map +1 -0
  808. package/bin/session/types/SessionExecutor.js.map +1 -0
  809. package/bin/session/types/SessionHistoryMeta.d.ts.map +1 -0
  810. package/bin/session/types/SessionHistoryMeta.js.map +1 -0
  811. package/bin/session/types/SessionHistoryPaths.d.ts.map +1 -0
  812. package/bin/session/types/SessionHistoryPaths.js.map +1 -0
  813. package/bin/session/types/SessionLoop.d.ts.map +1 -0
  814. package/bin/session/types/SessionLoop.js.map +1 -0
  815. package/bin/session/types/SessionMessages.d.ts +83 -0
  816. package/bin/session/types/SessionMessages.d.ts.map +1 -0
  817. package/bin/session/types/SessionMessages.js.map +1 -0
  818. package/bin/session/types/SessionPrompts.d.ts.map +1 -0
  819. package/bin/session/types/SessionPrompts.js.map +1 -0
  820. package/bin/session/types/SessionRun.d.ts +112 -0
  821. package/bin/session/types/SessionRun.d.ts.map +1 -0
  822. package/bin/session/types/SessionRun.js.map +1 -0
  823. package/bin/utils/Id.d.ts.map +1 -0
  824. package/bin/utils/Id.js.map +1 -0
  825. package/bin/utils/Template.d.ts +17 -0
  826. package/bin/utils/Template.d.ts.map +1 -0
  827. package/bin/utils/Template.js.map +1 -0
  828. package/bin/utils/Time.d.ts.map +1 -0
  829. package/bin/utils/Time.js.map +1 -0
  830. package/bin/utils/cli/Checker.d.ts.map +1 -0
  831. package/bin/utils/cli/Checker.js.map +1 -0
  832. package/bin/utils/cli/CliOutput.d.ts.map +1 -0
  833. package/bin/utils/cli/CliOutput.js +98 -0
  834. package/bin/utils/cli/CliOutput.js.map +1 -0
  835. package/bin/utils/cli/PrettyStatus.d.ts.map +1 -0
  836. package/bin/utils/cli/PrettyStatus.js.map +1 -0
  837. package/bin/utils/logger/Fetch.d.ts +14 -0
  838. package/bin/utils/logger/Fetch.d.ts.map +1 -0
  839. package/bin/utils/logger/Fetch.js.map +1 -0
  840. package/bin/utils/logger/Format.d.ts.map +1 -0
  841. package/bin/utils/logger/Format.js.map +1 -0
  842. package/bin/utils/logger/FormatRequest.d.ts +29 -0
  843. package/bin/utils/logger/FormatRequest.d.ts.map +1 -0
  844. package/bin/utils/logger/FormatRequest.js.map +1 -0
  845. package/bin/utils/logger/FormatResponse.d.ts +46 -0
  846. package/bin/utils/logger/FormatResponse.d.ts.map +1 -0
  847. package/bin/utils/logger/FormatResponse.js.map +1 -0
  848. package/bin/utils/logger/FormatShared.d.ts +33 -0
  849. package/bin/utils/logger/FormatShared.d.ts.map +1 -0
  850. package/bin/utils/logger/FormatShared.js.map +1 -0
  851. package/bin/utils/logger/Logger.d.ts +101 -0
  852. package/bin/utils/logger/Logger.d.ts.map +1 -0
  853. package/bin/utils/logger/Logger.js +308 -0
  854. package/bin/utils/logger/Logger.js.map +1 -0
  855. package/bin/utils/storage/index.d.ts +5 -0
  856. package/bin/utils/storage/index.d.ts.map +1 -0
  857. package/bin/utils/storage/index.js.map +1 -0
  858. package/bin/utils/types/Json.d.ts.map +1 -0
  859. package/bin/utils/types/Json.js.map +1 -0
  860. package/bin/utils/types/Template.d.ts.map +1 -0
  861. package/bin/utils/types/Template.js.map +1 -0
  862. package/package.json +4 -7
  863. package/scripts/agent-compiler.mjs +253 -0
  864. package/src/agent/AgentContext.ts +4 -3
  865. package/src/agent/AgentContextTypes.ts +12 -7
  866. package/src/agent/AgentRuntime.ts +34 -5
  867. package/src/agent/AgentRuntimeState.ts +68 -4
  868. package/src/agent/AgentRuntimeTypes.ts +8 -3
  869. package/src/agent/project/AgentInitializer.ts +93 -48
  870. package/src/agent/project/ProjectExecutionBinding.ts +2 -2
  871. package/src/agent/project/types/AgentProject.ts +92 -0
  872. package/src/config/Config.ts +4 -19
  873. package/src/config/DowncityDefault.ts +38 -0
  874. package/src/config/DowncitySchema.ts +377 -0
  875. package/src/config/Paths.ts +2 -9
  876. package/src/config/types/DowncityConfig.ts +215 -0
  877. package/src/host/daemon/Api.ts +1 -1
  878. package/src/host/daemon/Client.ts +2 -2
  879. package/src/host/daemon/Manager.ts +1 -1
  880. package/src/host/daemon/ProjectSetup.ts +19 -21
  881. package/src/host/http/Server.ts +157 -0
  882. package/src/host/http/auth/AuthEnv.ts +62 -0
  883. package/src/host/http/auth/CliAuthStateStore.ts +46 -0
  884. package/src/host/http/control/AuthControlService.ts +161 -0
  885. package/src/host/http/control/ControlApiRoutes.ts +31 -0
  886. package/src/host/http/control/ControlAuthorizationRoutes.ts +108 -0
  887. package/src/host/http/control/ControlRouter.ts +31 -0
  888. package/src/host/http/control/ExecuteBySession.ts +151 -0
  889. package/src/host/http/control/ExecuteInput.ts +236 -0
  890. package/src/host/http/control/MessageTimeline.ts +269 -0
  891. package/src/host/http/control/ModelRoutes.ts +101 -0
  892. package/src/host/http/control/OverviewRoutes.ts +106 -0
  893. package/src/host/http/control/SessionRoutes.ts +414 -0
  894. package/src/host/http/control/SessionSummaryStore.ts +76 -0
  895. package/src/host/http/control/TaskRoutes.ts +391 -0
  896. package/src/host/http/control/TaskStore.ts +222 -0
  897. package/src/host/http/control/types/AuthControl.ts +38 -0
  898. package/src/host/http/control/types/ControlViewData.ts +392 -0
  899. package/src/host/rpc/Client.ts +1 -1
  900. package/src/host/rpc/Server.ts +6 -6
  901. package/src/host/rpc/types/LocalRpc.ts +72 -0
  902. package/src/host/runtime/AgentHostRuntime.ts +3 -5
  903. package/src/host/runtime/CityPaths.ts +0 -3
  904. package/src/host/runtime/CityRegistry.ts +1 -1
  905. package/src/host/sdk/Agent.ts +33 -9
  906. package/src/host/sdk/AgentSdkTypes.ts +13 -3
  907. package/src/host/sdk/RemoteAgent.ts +1 -1
  908. package/src/host/sdk/RpcServer.ts +1 -1
  909. package/src/host/sdk/Session.ts +2 -2
  910. package/src/host/sdk/SessionMetadata.ts +1 -1
  911. package/src/host/sdk/StreamEvents.ts +1 -1
  912. package/src/host/types/AgentHost.ts +208 -0
  913. package/src/host/types/Store.ts +422 -0
  914. package/src/index.ts +54 -64
  915. package/src/model/CreateModel.ts +19 -17
  916. package/src/model/ModelManager.ts +1 -1
  917. package/src/plugin/builtins/asr/Dependency.ts +336 -0
  918. package/src/plugin/builtins/asr/ModelCatalog.ts +43 -0
  919. package/src/plugin/builtins/asr/Plugin.ts +639 -0
  920. package/src/plugin/builtins/auth/Plugin.ts +209 -0
  921. package/src/plugin/builtins/auth/runtime/AuthorizationConfig.ts +265 -0
  922. package/src/plugin/builtins/auth/runtime/AuthorizationPolicy.ts +168 -0
  923. package/src/plugin/builtins/auth/runtime/AuthorizationStore.ts +219 -0
  924. package/src/plugin/builtins/skill/Action.ts +159 -0
  925. package/src/plugin/builtins/skill/Command.ts +98 -0
  926. package/src/plugin/builtins/skill/Config.ts +51 -0
  927. package/src/plugin/builtins/skill/PROMPT.ts +9 -0
  928. package/src/plugin/builtins/skill/Plugin.ts +334 -0
  929. package/src/plugin/builtins/skill/SkillPromptAssets.ts +14 -0
  930. package/src/plugin/builtins/skill/runtime/Discovery.ts +141 -0
  931. package/src/plugin/builtins/skill/runtime/Paths.ts +130 -0
  932. package/src/plugin/builtins/skill/runtime/Prompt.ts +67 -0
  933. package/src/plugin/builtins/skill/runtime/Store.ts +95 -0
  934. package/src/plugin/builtins/skill/runtime/SystemProvider.ts +52 -0
  935. package/src/plugin/builtins/skill/runtime/Types.ts +22 -0
  936. package/src/plugin/builtins/skill/types/ClaudeSkill.ts +64 -0
  937. package/src/plugin/builtins/tts/Dependency.ts +473 -0
  938. package/src/plugin/builtins/tts/Plugin.ts +553 -0
  939. package/src/plugin/builtins/tts/runtime/Catalog.ts +97 -0
  940. package/src/plugin/builtins/tts/runtime/DependencyInstaller.ts +436 -0
  941. package/src/plugin/builtins/tts/runtime/Installer.ts +297 -0
  942. package/src/plugin/builtins/tts/runtime/Synthesizer.ts +480 -0
  943. package/src/plugin/builtins/tts/types/TtsPlugin.ts +164 -0
  944. package/src/plugin/builtins/voice/Dependency.ts +329 -0
  945. package/src/plugin/builtins/voice/ModelCatalog.ts +43 -0
  946. package/src/plugin/builtins/voice/Plugin.ts +599 -0
  947. package/src/plugin/builtins/voice/runtime/Catalog.ts +68 -0
  948. package/src/plugin/builtins/voice/runtime/DependencyInstaller.ts +505 -0
  949. package/src/plugin/builtins/voice/runtime/Installer.ts +324 -0
  950. package/src/plugin/builtins/voice/runtime/Transcriber.ts +467 -0
  951. package/src/plugin/builtins/voice/types/VoicePlugin.ts +194 -0
  952. package/src/plugin/builtins/web/Dependency.ts +17 -0
  953. package/src/plugin/builtins/web/PROMPT.agent-browser.ts +9 -0
  954. package/src/plugin/builtins/web/PROMPT.ts +9 -0
  955. package/src/plugin/builtins/web/PROMPT.web-access.ts +9 -0
  956. package/src/plugin/builtins/web/Plugin.ts +501 -0
  957. package/src/plugin/builtins/web/WebPromptAssets.ts +26 -0
  958. package/src/plugin/builtins/web/runtime/Config.ts +105 -0
  959. package/src/plugin/builtins/web/runtime/Source.ts +257 -0
  960. package/src/plugin/builtins/web/types/WebPlugin.ts +141 -0
  961. package/src/plugin/builtins/workboard/Plugin.ts +81 -0
  962. package/src/plugin/builtins/workboard/runtime/Collector.ts +78 -0
  963. package/src/plugin/builtins/workboard/runtime/Normalizer.ts +213 -0
  964. package/src/plugin/builtins/workboard/runtime/Store.ts +110 -0
  965. package/src/plugin/core/Activation.ts +26 -0
  966. package/src/plugin/core/Catalog.ts +118 -0
  967. package/src/plugin/core/HookRegistry.ts +249 -0
  968. package/src/plugin/core/HttpRoutes.ts +50 -0
  969. package/src/plugin/core/LocalExecution.ts +179 -0
  970. package/src/plugin/core/PluginCommand.ts +219 -0
  971. package/src/plugin/core/PluginManager.ts +66 -0
  972. package/src/plugin/core/PluginRegistry.ts +244 -0
  973. package/src/plugin/core/Plugins.ts +39 -0
  974. package/src/plugin/core/ProjectConfigStore.ts +58 -0
  975. package/src/plugin/types/Plugin.ts +748 -0
  976. package/src/plugin/types/PluginApi.ts +161 -0
  977. package/src/sandbox/MacOsSeatbeltSandbox.ts +1 -1
  978. package/src/sandbox/SandboxConfigResolver.ts +1 -1
  979. package/src/sandbox/SandboxRunner.ts +1 -1
  980. package/src/sandbox/types/Sandbox.ts +144 -0
  981. package/src/sandbox/types/SandboxRuntime.ts +377 -0
  982. package/src/service/builtins/BaseService.ts +2 -2
  983. package/src/service/builtins/chat/ChatService.ts +4 -4
  984. package/src/service/builtins/chat/ChatServiceTypes.ts +2 -2
  985. package/src/service/builtins/chat/PROMPT.direct.ts +9 -0
  986. package/src/service/builtins/chat/accounts/ChannelAccountService.ts +43 -63
  987. package/src/service/builtins/chat/channels/BaseChatChannel.ts +1 -1
  988. package/src/service/builtins/chat/channels/BaseChatChannelQueue.ts +1 -1
  989. package/src/service/builtins/chat/channels/BaseChatChannelSupport.ts +2 -2
  990. package/src/service/builtins/chat/channels/feishu/Feishu.ts +2 -2
  991. package/src/service/builtins/chat/channels/feishu/FeishuInbound.ts +1 -1
  992. package/src/service/builtins/chat/channels/feishu/FeishuPlatformClient.ts +1 -1
  993. package/src/service/builtins/chat/channels/feishu/FeishuPlatformLookup.ts +2 -2
  994. package/src/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts +1 -1
  995. package/src/service/builtins/chat/channels/feishu/PROMPT.direct.ts +9 -0
  996. package/src/service/builtins/chat/channels/qq/PROMPT.direct.ts +9 -0
  997. package/src/service/builtins/chat/channels/qq/QQ.ts +3 -3
  998. package/src/service/builtins/chat/channels/qq/QQEventCapture.ts +2 -2
  999. package/src/service/builtins/chat/channels/qq/QQGatewayAuth.ts +2 -2
  1000. package/src/service/builtins/chat/channels/qq/QQGatewayClient.ts +4 -4
  1001. package/src/service/builtins/chat/channels/qq/QQGatewaySend.ts +2 -2
  1002. package/src/service/builtins/chat/channels/qq/QQGatewaySupport.ts +3 -3
  1003. package/src/service/builtins/chat/channels/qq/QQInbound.ts +2 -2
  1004. package/src/service/builtins/chat/channels/qq/QQInboundDedupe.ts +1 -1
  1005. package/src/service/builtins/chat/channels/qq/QQSendSupport.ts +1 -1
  1006. package/src/service/builtins/chat/channels/qq/QQSupport.ts +2 -2
  1007. package/src/service/builtins/chat/channels/qq/VoiceInput.ts +1 -1
  1008. package/src/service/builtins/chat/channels/qq/types/QqChannel.ts +501 -0
  1009. package/src/service/builtins/chat/channels/telegram/ApiClient.ts +1 -1
  1010. package/src/service/builtins/chat/channels/telegram/Bot.ts +1 -1
  1011. package/src/service/builtins/chat/channels/telegram/Handlers.ts +1 -1
  1012. package/src/service/builtins/chat/channels/telegram/PROMPT.direct.ts +9 -0
  1013. package/src/service/builtins/chat/channels/telegram/PROMPT.direct.ts.txt +2 -0
  1014. package/src/service/builtins/chat/channels/telegram/StateStore.ts +1 -1
  1015. package/src/service/builtins/chat/runtime/ChannelContextStore.ts +1 -1
  1016. package/src/service/builtins/chat/runtime/ChatActionExecution.ts +2 -2
  1017. package/src/service/builtins/chat/runtime/ChatActionInput.ts +3 -3
  1018. package/src/service/builtins/chat/runtime/ChatChannelActions.ts +14 -20
  1019. package/src/service/builtins/chat/runtime/ChatChannelConfig.ts +3 -3
  1020. package/src/service/builtins/chat/runtime/ChatChannelCore.ts +11 -16
  1021. package/src/service/builtins/chat/runtime/ChatChannelLifecycle.ts +1 -1
  1022. package/src/service/builtins/chat/runtime/ChatHistoryStore.ts +2 -2
  1023. package/src/service/builtins/chat/runtime/ChatIngressStore.ts +1 -1
  1024. package/src/service/builtins/chat/runtime/ChatPromptAssets.ts +32 -0
  1025. package/src/service/builtins/chat/runtime/ChatQueueReplyDispatch.ts +1 -1
  1026. package/src/service/builtins/chat/runtime/ChatQueueSessionBridge.ts +3 -3
  1027. package/src/service/builtins/chat/runtime/ChatQueueWorker.ts +5 -5
  1028. package/src/service/builtins/chat/runtime/ChatQueueWorkerSupport.ts +1 -1
  1029. package/src/service/builtins/chat/runtime/ChatServiceActions.ts +4 -4
  1030. package/src/service/builtins/chat/runtime/ChatServiceSystem.ts +9 -58
  1031. package/src/service/builtins/chat/runtime/ChatSession.ts +3 -3
  1032. package/src/service/builtins/chat/runtime/ChatSessionExecutionComposer.ts +2 -2
  1033. package/src/service/builtins/chat/runtime/ChatSessionTypes.ts +2 -2
  1034. package/src/service/builtins/chat/runtime/EnqueueDispatch.ts +2 -2
  1035. package/src/service/builtins/chat/runtime/InboundAugment.ts +2 -2
  1036. package/src/service/builtins/chat/runtime/PluginDispatch.ts +2 -2
  1037. package/src/service/builtins/chat/runtime/QueuedUserMessage.ts +1 -1
  1038. package/src/service/builtins/chat/runtime/ReplyContextFormatter.ts +1 -1
  1039. package/src/service/builtins/chat/runtime/ReplyDispatch.ts +2 -2
  1040. package/src/service/builtins/chat/runtime/SystemPrompt.ts +1 -1
  1041. package/src/service/builtins/chat/runtime/UIMessageTransformer.ts +2 -2
  1042. package/src/service/builtins/chat/runtime/UserVisibleText.ts +1 -1
  1043. package/src/service/builtins/chat/types/ChannelAccount.ts +1 -1
  1044. package/src/service/builtins/chat/types/ChatHistory.ts +1 -1
  1045. package/src/service/builtins/chat/types/ChatPromptContext.ts +139 -0
  1046. package/src/service/builtins/chat/types/ChatQueue.ts +1 -1
  1047. package/src/service/builtins/chat/types/ChatService.ts +165 -0
  1048. package/src/service/builtins/contact/ContactService.ts +2 -2
  1049. package/src/service/builtins/contact/PROMPT.ts +9 -0
  1050. package/src/service/builtins/contact/runtime/ChatRuntime.ts +1 -1
  1051. package/src/service/builtins/contact/runtime/ContactPromptAssets.ts +14 -0
  1052. package/src/service/builtins/contact/runtime/RemoteClient.ts +1 -1
  1053. package/src/service/builtins/contact/runtime/SystemProvider.ts +3 -10
  1054. package/src/service/builtins/memory/Action.ts +8 -49
  1055. package/src/service/builtins/memory/MemoryService.ts +3 -35
  1056. package/src/service/builtins/memory/runtime/Search.ts +256 -16
  1057. package/src/service/builtins/memory/runtime/Store.ts +13 -185
  1058. package/src/service/builtins/memory/runtime/Writer.ts +1 -2
  1059. package/src/service/builtins/memory/types/Memory.ts +3 -60
  1060. package/src/service/builtins/shell/ShellRuntimeTypes.ts +1 -1
  1061. package/src/service/builtins/shell/ShellService.ts +1 -1
  1062. package/src/service/builtins/shell/runtime/ShellActionRuntime.ts +1 -1
  1063. package/src/service/builtins/shell/runtime/ShellActionRuntimeSupport.ts +1 -1
  1064. package/src/service/builtins/task/Action.ts +1 -1
  1065. package/src/service/builtins/task/PROMPT.ts +9 -0
  1066. package/src/service/builtins/task/Scheduler.ts +1 -1
  1067. package/src/service/builtins/task/TaskService.ts +2 -2
  1068. package/src/service/builtins/task/runtime/Model.ts +1 -1
  1069. package/src/service/builtins/task/runtime/TaskActionExecution.ts +2 -2
  1070. package/src/service/builtins/task/runtime/TaskActionInput.ts +3 -3
  1071. package/src/service/builtins/task/runtime/TaskPromptAssets.ts +14 -0
  1072. package/src/service/builtins/task/runtime/TaskRunnerRound.ts +3 -3
  1073. package/src/service/builtins/task/runtime/TaskRunnerSession.ts +2 -2
  1074. package/src/service/builtins/task/runtime/TaskRunnerTypes.ts +1 -1
  1075. package/src/service/builtins/task/runtime/TaskServiceActions.ts +2 -2
  1076. package/src/service/builtins/task/runtime/TaskServiceSystem.ts +2 -24
  1077. package/src/service/builtins/task/types/TaskService.ts +55 -0
  1078. package/src/service/core/Manager.ts +1 -1
  1079. package/src/service/core/ServiceActionApi.ts +3 -3
  1080. package/src/service/core/ServiceActionRunner.ts +4 -4
  1081. package/src/service/core/ServiceClassRegistry.ts +1 -1
  1082. package/src/service/core/ServiceManager.ts +1 -1
  1083. package/src/service/core/ServiceStateController.ts +2 -2
  1084. package/src/service/schedule/Store.ts +218 -178
  1085. package/src/service/types/Service.ts +223 -0
  1086. package/src/service/types/ServiceSchedule.ts +134 -0
  1087. package/src/service/types/ServiceState.ts +112 -0
  1088. package/src/service/types/Services.ts +100 -0
  1089. package/src/session/Session.ts +4 -4
  1090. package/src/session/SessionRunScope.ts +2 -2
  1091. package/src/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.ts +4 -4
  1092. package/src/session/composer/execution/LocalSessionExecutionComposer.ts +3 -3
  1093. package/src/session/composer/execution/SessionExecutionComposer.ts +2 -2
  1094. package/src/session/composer/history/SessionHistoryComposer.ts +2 -2
  1095. package/src/session/composer/history/SessionHistoryWriter.ts +2 -2
  1096. package/src/session/composer/history/jsonl/JsonlSessionHistoryComposer.ts +6 -6
  1097. package/src/session/composer/system/default/InitPromptAssets.ts +20 -0
  1098. package/src/session/composer/system/default/InitPrompts.ts +5 -46
  1099. package/src/session/composer/system/default/StaticPromptCatalog.ts +1 -1
  1100. package/src/session/composer/system/default/SystemDomain.ts +11 -43
  1101. package/src/session/composer/system/default/SystemPromptAssets.ts +26 -0
  1102. package/src/session/composer/system/default/assets/core.prompt.ts +9 -0
  1103. package/src/session/composer/system/default/assets/init/PROFILE.md.ts +9 -0
  1104. package/src/session/composer/system/default/assets/init/PROFILE.md.ts.txt +18 -0
  1105. package/src/session/composer/system/default/assets/init/SOUL.md.ts +9 -0
  1106. package/src/session/composer/system/default/assets/init/SOUL.md.ts.txt +89 -0
  1107. package/src/session/composer/system/default/assets/service.prompt.ts +9 -0
  1108. package/src/session/composer/system/default/assets/task.prompt.ts +9 -0
  1109. package/src/session/composer/system/default/variables/VariableReplacer.ts +2 -2
  1110. package/src/session/executors/local/LocalSessionCore.ts +4 -4
  1111. package/src/session/executors/local/LocalSessionExecutor.ts +2 -2
  1112. package/src/session/executors/local/SessionLoopDecision.ts +1 -1
  1113. package/src/session/executors/local/SessionSignals.ts +2 -2
  1114. package/src/session/messages/SessionAttachmentMapper.ts +1 -1
  1115. package/src/session/messages/SessionMessageCodec.ts +1 -1
  1116. package/src/session/messages/SessionMessageLog.ts +2 -2
  1117. package/src/session/messages/SessionStepEventMapper.ts +3 -3
  1118. package/src/session/tools/shell/ShellToolBridge.ts +2 -2
  1119. package/src/session/tools/shell/ShellToolDefinition.ts +2 -2
  1120. package/src/session/tools/shell/ShellToolFormatting.ts +1 -1
  1121. package/src/session/types/SessionExecutor.ts +33 -0
  1122. package/src/session/types/SessionMessages.ts +90 -0
  1123. package/src/session/types/SessionRun.ts +132 -0
  1124. package/src/utils/Template.ts +28 -0
  1125. package/src/utils/cli/CliOutput.ts +128 -0
  1126. package/src/utils/logger/Fetch.ts +93 -0
  1127. package/src/utils/logger/FormatRequest.ts +455 -0
  1128. package/src/utils/logger/FormatResponse.ts +265 -0
  1129. package/src/utils/logger/FormatShared.ts +258 -0
  1130. package/src/utils/logger/Logger.ts +372 -0
  1131. package/src/utils/storage/index.ts +26 -0
  1132. package/tsconfig.json +1 -2
  1133. package/tsconfig.tsbuildinfo +1 -1
  1134. package/bin/http/Server.d.ts.map +0 -1
  1135. package/bin/http/Server.js +0 -122
  1136. package/bin/http/Server.js.map +0 -1
  1137. package/bin/http/auth/AuthEnv.d.ts +0 -45
  1138. package/bin/http/auth/AuthEnv.d.ts.map +0 -1
  1139. package/bin/http/auth/AuthEnv.js +0 -63
  1140. package/bin/http/auth/AuthEnv.js.map +0 -1
  1141. package/bin/http/auth/AuthError.d.ts.map +0 -1
  1142. package/bin/http/auth/AuthError.js.map +0 -1
  1143. package/bin/http/auth/AuthMiddleware.d.ts +0 -36
  1144. package/bin/http/auth/AuthMiddleware.d.ts.map +0 -1
  1145. package/bin/http/auth/AuthMiddleware.js +0 -37
  1146. package/bin/http/auth/AuthMiddleware.js.map +0 -1
  1147. package/bin/http/auth/AuthRoutes.d.ts +0 -17
  1148. package/bin/http/auth/AuthRoutes.d.ts.map +0 -1
  1149. package/bin/http/auth/AuthRoutes.js +0 -78
  1150. package/bin/http/auth/AuthRoutes.js.map +0 -1
  1151. package/bin/http/auth/AuthService.d.ts +0 -119
  1152. package/bin/http/auth/AuthService.d.ts.map +0 -1
  1153. package/bin/http/auth/AuthService.js +0 -307
  1154. package/bin/http/auth/AuthService.js.map +0 -1
  1155. package/bin/http/auth/AuthStore.d.ts +0 -165
  1156. package/bin/http/auth/AuthStore.d.ts.map +0 -1
  1157. package/bin/http/auth/AuthStore.js +0 -442
  1158. package/bin/http/auth/AuthStore.js.map +0 -1
  1159. package/bin/http/auth/CliAuthStateStore.d.ts +0 -33
  1160. package/bin/http/auth/CliAuthStateStore.d.ts.map +0 -1
  1161. package/bin/http/auth/CliAuthStateStore.js +0 -30
  1162. package/bin/http/auth/CliAuthStateStore.js.map +0 -1
  1163. package/bin/http/auth/PasswordHasher.d.ts.map +0 -1
  1164. package/bin/http/auth/PasswordHasher.js.map +0 -1
  1165. package/bin/http/auth/RoutePolicy.d.ts +0 -30
  1166. package/bin/http/auth/RoutePolicy.d.ts.map +0 -1
  1167. package/bin/http/auth/RoutePolicy.js +0 -229
  1168. package/bin/http/auth/RoutePolicy.js.map +0 -1
  1169. package/bin/http/auth/TokenService.d.ts.map +0 -1
  1170. package/bin/http/auth/TokenService.js.map +0 -1
  1171. package/bin/http/control/AuthControlService.d.ts +0 -30
  1172. package/bin/http/control/AuthControlService.d.ts.map +0 -1
  1173. package/bin/http/control/AuthControlService.js +0 -120
  1174. package/bin/http/control/AuthControlService.js.map +0 -1
  1175. package/bin/http/control/CommonHelpers.d.ts.map +0 -1
  1176. package/bin/http/control/CommonHelpers.js.map +0 -1
  1177. package/bin/http/control/ControlApiRoutes.d.ts +0 -14
  1178. package/bin/http/control/ControlApiRoutes.d.ts.map +0 -1
  1179. package/bin/http/control/ControlApiRoutes.js +0 -27
  1180. package/bin/http/control/ControlApiRoutes.js.map +0 -1
  1181. package/bin/http/control/ControlAuthorizationRoutes.d.ts +0 -17
  1182. package/bin/http/control/ControlAuthorizationRoutes.d.ts.map +0 -1
  1183. package/bin/http/control/ControlAuthorizationRoutes.js +0 -85
  1184. package/bin/http/control/ControlAuthorizationRoutes.js.map +0 -1
  1185. package/bin/http/control/ControlRouter.d.ts +0 -19
  1186. package/bin/http/control/ControlRouter.d.ts.map +0 -1
  1187. package/bin/http/control/ControlRouter.js +0 -26
  1188. package/bin/http/control/ControlRouter.js.map +0 -1
  1189. package/bin/http/control/ExecuteBySession.d.ts +0 -39
  1190. package/bin/http/control/ExecuteBySession.d.ts.map +0 -1
  1191. package/bin/http/control/ExecuteBySession.js +0 -128
  1192. package/bin/http/control/ExecuteBySession.js.map +0 -1
  1193. package/bin/http/control/ExecuteInput.d.ts +0 -18
  1194. package/bin/http/control/ExecuteInput.d.ts.map +0 -1
  1195. package/bin/http/control/ExecuteInput.js +0 -201
  1196. package/bin/http/control/ExecuteInput.js.map +0 -1
  1197. package/bin/http/control/Helpers.d.ts.map +0 -1
  1198. package/bin/http/control/Helpers.js.map +0 -1
  1199. package/bin/http/control/MessageTimeline.d.ts +0 -22
  1200. package/bin/http/control/MessageTimeline.d.ts.map +0 -1
  1201. package/bin/http/control/MessageTimeline.js +0 -226
  1202. package/bin/http/control/MessageTimeline.js.map +0 -1
  1203. package/bin/http/control/ModelRoutes.d.ts +0 -13
  1204. package/bin/http/control/ModelRoutes.d.ts.map +0 -1
  1205. package/bin/http/control/ModelRoutes.js +0 -92
  1206. package/bin/http/control/ModelRoutes.js.map +0 -1
  1207. package/bin/http/control/OverviewRoutes.d.ts +0 -13
  1208. package/bin/http/control/OverviewRoutes.d.ts.map +0 -1
  1209. package/bin/http/control/OverviewRoutes.js +0 -93
  1210. package/bin/http/control/OverviewRoutes.js.map +0 -1
  1211. package/bin/http/control/SessionRoutes.d.ts +0 -14
  1212. package/bin/http/control/SessionRoutes.d.ts.map +0 -1
  1213. package/bin/http/control/SessionRoutes.js +0 -333
  1214. package/bin/http/control/SessionRoutes.js.map +0 -1
  1215. package/bin/http/control/SessionSummaryStore.d.ts +0 -19
  1216. package/bin/http/control/SessionSummaryStore.d.ts.map +0 -1
  1217. package/bin/http/control/SessionSummaryStore.js +0 -62
  1218. package/bin/http/control/SessionSummaryStore.js.map +0 -1
  1219. package/bin/http/control/TaskRoutes.d.ts +0 -13
  1220. package/bin/http/control/TaskRoutes.d.ts.map +0 -1
  1221. package/bin/http/control/TaskRoutes.js +0 -335
  1222. package/bin/http/control/TaskRoutes.js.map +0 -1
  1223. package/bin/http/control/TaskStore.d.ts +0 -33
  1224. package/bin/http/control/TaskStore.d.ts.map +0 -1
  1225. package/bin/http/control/TaskStore.js +0 -157
  1226. package/bin/http/control/TaskStore.js.map +0 -1
  1227. package/bin/http/execute/execute.d.ts.map +0 -1
  1228. package/bin/http/execute/execute.js +0 -90
  1229. package/bin/http/execute/execute.js.map +0 -1
  1230. package/bin/http/health/health.d.ts.map +0 -1
  1231. package/bin/http/health/health.js.map +0 -1
  1232. package/bin/http/plugins/plugins.d.ts.map +0 -1
  1233. package/bin/http/plugins/plugins.js +0 -55
  1234. package/bin/http/plugins/plugins.js.map +0 -1
  1235. package/bin/http/services/services.d.ts.map +0 -1
  1236. package/bin/http/services/services.js +0 -79
  1237. package/bin/http/services/services.js.map +0 -1
  1238. package/bin/http/static/static.d.ts.map +0 -1
  1239. package/bin/http/static/static.js +0 -97
  1240. package/bin/http/static/static.js.map +0 -1
  1241. package/bin/plugin/Activation.d.ts +0 -15
  1242. package/bin/plugin/Activation.d.ts.map +0 -1
  1243. package/bin/plugin/Activation.js +0 -20
  1244. package/bin/plugin/Activation.js.map +0 -1
  1245. package/bin/plugin/Catalog.d.ts +0 -42
  1246. package/bin/plugin/Catalog.d.ts.map +0 -1
  1247. package/bin/plugin/Catalog.js +0 -92
  1248. package/bin/plugin/Catalog.js.map +0 -1
  1249. package/bin/plugin/HookRegistry.d.ts +0 -68
  1250. package/bin/plugin/HookRegistry.d.ts.map +0 -1
  1251. package/bin/plugin/HookRegistry.js.map +0 -1
  1252. package/bin/plugin/HttpRoutes.d.ts +0 -22
  1253. package/bin/plugin/HttpRoutes.d.ts.map +0 -1
  1254. package/bin/plugin/HttpRoutes.js +0 -37
  1255. package/bin/plugin/HttpRoutes.js.map +0 -1
  1256. package/bin/plugin/Lifecycle.d.ts +0 -33
  1257. package/bin/plugin/Lifecycle.d.ts.map +0 -1
  1258. package/bin/plugin/Lifecycle.js +0 -102
  1259. package/bin/plugin/Lifecycle.js.map +0 -1
  1260. package/bin/plugin/LocalExecution.d.ts +0 -32
  1261. package/bin/plugin/LocalExecution.d.ts.map +0 -1
  1262. package/bin/plugin/LocalExecution.js +0 -127
  1263. package/bin/plugin/LocalExecution.js.map +0 -1
  1264. package/bin/plugin/PluginCommand.d.ts.map +0 -1
  1265. package/bin/plugin/PluginCommand.js +0 -188
  1266. package/bin/plugin/PluginCommand.js.map +0 -1
  1267. package/bin/plugin/PluginManager.d.ts +0 -24
  1268. package/bin/plugin/PluginManager.d.ts.map +0 -1
  1269. package/bin/plugin/PluginManager.js +0 -62
  1270. package/bin/plugin/PluginManager.js.map +0 -1
  1271. package/bin/plugin/PluginRegistry.d.ts +0 -66
  1272. package/bin/plugin/PluginRegistry.d.ts.map +0 -1
  1273. package/bin/plugin/PluginRegistry.js +0 -184
  1274. package/bin/plugin/PluginRegistry.js.map +0 -1
  1275. package/bin/plugin/Plugins.d.ts +0 -20
  1276. package/bin/plugin/Plugins.d.ts.map +0 -1
  1277. package/bin/plugin/Plugins.js +0 -33
  1278. package/bin/plugin/Plugins.js.map +0 -1
  1279. package/bin/plugin/ProjectConfigStore.d.ts +0 -30
  1280. package/bin/plugin/ProjectConfigStore.d.ts.map +0 -1
  1281. package/bin/plugin/ProjectConfigStore.js.map +0 -1
  1282. package/bin/plugins/asr/Dependency.d.ts +0 -77
  1283. package/bin/plugins/asr/Dependency.d.ts.map +0 -1
  1284. package/bin/plugins/asr/Dependency.js +0 -238
  1285. package/bin/plugins/asr/Dependency.js.map +0 -1
  1286. package/bin/plugins/asr/ModelCatalog.d.ts.map +0 -1
  1287. package/bin/plugins/asr/ModelCatalog.js +0 -25
  1288. package/bin/plugins/asr/ModelCatalog.js.map +0 -1
  1289. package/bin/plugins/asr/Plugin.d.ts +0 -14
  1290. package/bin/plugins/asr/Plugin.d.ts.map +0 -1
  1291. package/bin/plugins/asr/Plugin.js +0 -586
  1292. package/bin/plugins/asr/Plugin.js.map +0 -1
  1293. package/bin/plugins/auth/Plugin.d.ts +0 -14
  1294. package/bin/plugins/auth/Plugin.d.ts.map +0 -1
  1295. package/bin/plugins/auth/Plugin.js +0 -180
  1296. package/bin/plugins/auth/Plugin.js.map +0 -1
  1297. package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts +0 -41
  1298. package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts.map +0 -1
  1299. package/bin/plugins/auth/runtime/AuthorizationConfig.js +0 -185
  1300. package/bin/plugins/auth/runtime/AuthorizationConfig.js.map +0 -1
  1301. package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts +0 -28
  1302. package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts.map +0 -1
  1303. package/bin/plugins/auth/runtime/AuthorizationPolicy.js +0 -122
  1304. package/bin/plugins/auth/runtime/AuthorizationPolicy.js.map +0 -1
  1305. package/bin/plugins/auth/runtime/AuthorizationStore.d.ts +0 -29
  1306. package/bin/plugins/auth/runtime/AuthorizationStore.d.ts.map +0 -1
  1307. package/bin/plugins/auth/runtime/AuthorizationStore.js +0 -179
  1308. package/bin/plugins/auth/runtime/AuthorizationStore.js.map +0 -1
  1309. package/bin/plugins/skill/Action.d.ts +0 -34
  1310. package/bin/plugins/skill/Action.d.ts.map +0 -1
  1311. package/bin/plugins/skill/Action.js +0 -122
  1312. package/bin/plugins/skill/Action.js.map +0 -1
  1313. package/bin/plugins/skill/Command.d.ts.map +0 -1
  1314. package/bin/plugins/skill/Command.js +0 -70
  1315. package/bin/plugins/skill/Command.js.map +0 -1
  1316. package/bin/plugins/skill/Config.d.ts +0 -18
  1317. package/bin/plugins/skill/Config.d.ts.map +0 -1
  1318. package/bin/plugins/skill/Config.js.map +0 -1
  1319. package/bin/plugins/skill/Plugin.d.ts +0 -14
  1320. package/bin/plugins/skill/Plugin.d.ts.map +0 -1
  1321. package/bin/plugins/skill/Plugin.js +0 -315
  1322. package/bin/plugins/skill/Plugin.js.map +0 -1
  1323. package/bin/plugins/skill/runtime/Discovery.d.ts +0 -25
  1324. package/bin/plugins/skill/runtime/Discovery.d.ts.map +0 -1
  1325. package/bin/plugins/skill/runtime/Discovery.js.map +0 -1
  1326. package/bin/plugins/skill/runtime/Frontmatter.d.ts.map +0 -1
  1327. package/bin/plugins/skill/runtime/Frontmatter.js.map +0 -1
  1328. package/bin/plugins/skill/runtime/Paths.d.ts +0 -16
  1329. package/bin/plugins/skill/runtime/Paths.d.ts.map +0 -1
  1330. package/bin/plugins/skill/runtime/Paths.js.map +0 -1
  1331. package/bin/plugins/skill/runtime/Prompt.d.ts +0 -19
  1332. package/bin/plugins/skill/runtime/Prompt.d.ts.map +0 -1
  1333. package/bin/plugins/skill/runtime/Prompt.js +0 -54
  1334. package/bin/plugins/skill/runtime/Prompt.js.map +0 -1
  1335. package/bin/plugins/skill/runtime/Store.d.ts +0 -25
  1336. package/bin/plugins/skill/runtime/Store.d.ts.map +0 -1
  1337. package/bin/plugins/skill/runtime/Store.js.map +0 -1
  1338. package/bin/plugins/skill/runtime/SystemProvider.d.ts +0 -24
  1339. package/bin/plugins/skill/runtime/SystemProvider.d.ts.map +0 -1
  1340. package/bin/plugins/skill/runtime/SystemProvider.js +0 -33
  1341. package/bin/plugins/skill/runtime/SystemProvider.js.map +0 -1
  1342. package/bin/plugins/skill/runtime/Types.d.ts +0 -21
  1343. package/bin/plugins/skill/runtime/Types.d.ts.map +0 -1
  1344. package/bin/plugins/skill/runtime/Types.js.map +0 -1
  1345. package/bin/plugins/skill/runtime/Utils.d.ts.map +0 -1
  1346. package/bin/plugins/skill/runtime/Utils.js.map +0 -1
  1347. package/bin/plugins/tts/Dependency.d.ts +0 -90
  1348. package/bin/plugins/tts/Dependency.d.ts.map +0 -1
  1349. package/bin/plugins/tts/Dependency.js +0 -344
  1350. package/bin/plugins/tts/Dependency.js.map +0 -1
  1351. package/bin/plugins/tts/Plugin.d.ts +0 -13
  1352. package/bin/plugins/tts/Plugin.d.ts.map +0 -1
  1353. package/bin/plugins/tts/Plugin.js +0 -524
  1354. package/bin/plugins/tts/Plugin.js.map +0 -1
  1355. package/bin/plugins/tts/runtime/Catalog.d.ts +0 -21
  1356. package/bin/plugins/tts/runtime/Catalog.d.ts.map +0 -1
  1357. package/bin/plugins/tts/runtime/Catalog.js.map +0 -1
  1358. package/bin/plugins/tts/runtime/DependencyInstaller.d.ts +0 -143
  1359. package/bin/plugins/tts/runtime/DependencyInstaller.d.ts.map +0 -1
  1360. package/bin/plugins/tts/runtime/DependencyInstaller.js.map +0 -1
  1361. package/bin/plugins/tts/runtime/Installer.d.ts +0 -89
  1362. package/bin/plugins/tts/runtime/Installer.d.ts.map +0 -1
  1363. package/bin/plugins/tts/runtime/Installer.js.map +0 -1
  1364. package/bin/plugins/tts/runtime/Paths.d.ts.map +0 -1
  1365. package/bin/plugins/tts/runtime/Paths.js.map +0 -1
  1366. package/bin/plugins/tts/runtime/Synthesizer.d.ts +0 -44
  1367. package/bin/plugins/tts/runtime/Synthesizer.d.ts.map +0 -1
  1368. package/bin/plugins/tts/runtime/Synthesizer.js +0 -363
  1369. package/bin/plugins/tts/runtime/Synthesizer.js.map +0 -1
  1370. package/bin/plugins/voice/Dependency.d.ts +0 -77
  1371. package/bin/plugins/voice/Dependency.d.ts.map +0 -1
  1372. package/bin/plugins/voice/Dependency.js +0 -237
  1373. package/bin/plugins/voice/Dependency.js.map +0 -1
  1374. package/bin/plugins/voice/ModelCatalog.d.ts.map +0 -1
  1375. package/bin/plugins/voice/ModelCatalog.js +0 -25
  1376. package/bin/plugins/voice/ModelCatalog.js.map +0 -1
  1377. package/bin/plugins/voice/Plugin.d.ts +0 -14
  1378. package/bin/plugins/voice/Plugin.d.ts.map +0 -1
  1379. package/bin/plugins/voice/Plugin.js +0 -546
  1380. package/bin/plugins/voice/Plugin.js.map +0 -1
  1381. package/bin/plugins/voice/runtime/Catalog.d.ts +0 -18
  1382. package/bin/plugins/voice/runtime/Catalog.d.ts.map +0 -1
  1383. package/bin/plugins/voice/runtime/Catalog.js.map +0 -1
  1384. package/bin/plugins/voice/runtime/DependencyInstaller.d.ts +0 -145
  1385. package/bin/plugins/voice/runtime/DependencyInstaller.d.ts.map +0 -1
  1386. package/bin/plugins/voice/runtime/DependencyInstaller.js.map +0 -1
  1387. package/bin/plugins/voice/runtime/Installer.d.ts +0 -94
  1388. package/bin/plugins/voice/runtime/Installer.d.ts.map +0 -1
  1389. package/bin/plugins/voice/runtime/Installer.js.map +0 -1
  1390. package/bin/plugins/voice/runtime/Paths.d.ts.map +0 -1
  1391. package/bin/plugins/voice/runtime/Paths.js.map +0 -1
  1392. package/bin/plugins/voice/runtime/Transcriber.d.ts +0 -57
  1393. package/bin/plugins/voice/runtime/Transcriber.d.ts.map +0 -1
  1394. package/bin/plugins/voice/runtime/Transcriber.js.map +0 -1
  1395. package/bin/plugins/web/Dependency.d.ts +0 -10
  1396. package/bin/plugins/web/Dependency.d.ts.map +0 -1
  1397. package/bin/plugins/web/Dependency.js +0 -10
  1398. package/bin/plugins/web/Dependency.js.map +0 -1
  1399. package/bin/plugins/web/Plugin.d.ts +0 -13
  1400. package/bin/plugins/web/Plugin.d.ts.map +0 -1
  1401. package/bin/plugins/web/Plugin.js +0 -482
  1402. package/bin/plugins/web/Plugin.js.map +0 -1
  1403. package/bin/plugins/web/runtime/Config.d.ts +0 -21
  1404. package/bin/plugins/web/runtime/Config.d.ts.map +0 -1
  1405. package/bin/plugins/web/runtime/Config.js +0 -79
  1406. package/bin/plugins/web/runtime/Config.js.map +0 -1
  1407. package/bin/plugins/web/runtime/Source.d.ts +0 -29
  1408. package/bin/plugins/web/runtime/Source.d.ts.map +0 -1
  1409. package/bin/plugins/web/runtime/Source.js +0 -215
  1410. package/bin/plugins/web/runtime/Source.js.map +0 -1
  1411. package/bin/plugins/workboard/Plugin.d.ts +0 -13
  1412. package/bin/plugins/workboard/Plugin.d.ts.map +0 -1
  1413. package/bin/plugins/workboard/Plugin.js +0 -71
  1414. package/bin/plugins/workboard/Plugin.js.map +0 -1
  1415. package/bin/plugins/workboard/runtime/Collector.d.ts +0 -14
  1416. package/bin/plugins/workboard/runtime/Collector.d.ts.map +0 -1
  1417. package/bin/plugins/workboard/runtime/Collector.js +0 -62
  1418. package/bin/plugins/workboard/runtime/Collector.js.map +0 -1
  1419. package/bin/plugins/workboard/runtime/Normalizer.d.ts +0 -61
  1420. package/bin/plugins/workboard/runtime/Normalizer.d.ts.map +0 -1
  1421. package/bin/plugins/workboard/runtime/Normalizer.js.map +0 -1
  1422. package/bin/plugins/workboard/runtime/Store.d.ts +0 -48
  1423. package/bin/plugins/workboard/runtime/Store.d.ts.map +0 -1
  1424. package/bin/plugins/workboard/runtime/Store.js +0 -84
  1425. package/bin/plugins/workboard/runtime/Store.js.map +0 -1
  1426. package/bin/plugins/workboard/types/Workboard.d.ts.map +0 -1
  1427. package/bin/plugins/workboard/types/Workboard.js.map +0 -1
  1428. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.txt +0 -1
  1429. package/bin/service/builtins/memory/runtime/Indexer.d.ts +0 -71
  1430. package/bin/service/builtins/memory/runtime/Indexer.d.ts.map +0 -1
  1431. package/bin/service/builtins/memory/runtime/Indexer.js +0 -345
  1432. package/bin/service/builtins/memory/runtime/Indexer.js.map +0 -1
  1433. package/bin/service/schedule/Schema.d.ts +0 -171
  1434. package/bin/service/schedule/Schema.d.ts.map +0 -1
  1435. package/bin/service/schedule/Schema.js +0 -26
  1436. package/bin/service/schedule/Schema.js.map +0 -1
  1437. package/bin/session/composer/system/default/assets/init/PROFILE.md.txt +0 -17
  1438. package/bin/session/composer/system/default/assets/init/SOUL.md.txt +0 -88
  1439. package/bin/shared/constants/DowncityDefault.d.ts +0 -3
  1440. package/bin/shared/constants/DowncityDefault.d.ts.map +0 -1
  1441. package/bin/shared/constants/DowncityDefault.js.map +0 -1
  1442. package/bin/shared/constants/DowncitySchema.d.ts +0 -3
  1443. package/bin/shared/constants/DowncitySchema.d.ts.map +0 -1
  1444. package/bin/shared/constants/DowncitySchema.js.map +0 -1
  1445. package/bin/shared/types/AgentHost.d.ts +0 -72
  1446. package/bin/shared/types/AgentHost.d.ts.map +0 -1
  1447. package/bin/shared/types/AgentHost.js.map +0 -1
  1448. package/bin/shared/types/AgentProject.d.ts +0 -80
  1449. package/bin/shared/types/AgentProject.d.ts.map +0 -1
  1450. package/bin/shared/types/AgentProject.js.map +0 -1
  1451. package/bin/shared/types/AuthControl.d.ts +0 -30
  1452. package/bin/shared/types/AuthControl.d.ts.map +0 -1
  1453. package/bin/shared/types/AuthControl.js.map +0 -1
  1454. package/bin/shared/types/AuthPlugin.d.ts +0 -407
  1455. package/bin/shared/types/AuthPlugin.d.ts.map +0 -1
  1456. package/bin/shared/types/AuthPlugin.js +0 -115
  1457. package/bin/shared/types/AuthPlugin.js.map +0 -1
  1458. package/bin/shared/types/ChatPlugin.d.ts +0 -238
  1459. package/bin/shared/types/ChatPlugin.d.ts.map +0 -1
  1460. package/bin/shared/types/ChatPlugin.js.map +0 -1
  1461. package/bin/shared/types/ChatPromptContext.d.ts +0 -125
  1462. package/bin/shared/types/ChatPromptContext.d.ts.map +0 -1
  1463. package/bin/shared/types/ChatPromptContext.js.map +0 -1
  1464. package/bin/shared/types/ChatQueueWorker.d.ts.map +0 -1
  1465. package/bin/shared/types/ChatQueueWorker.js.map +0 -1
  1466. package/bin/shared/types/ChatRuntime.d.ts +0 -32
  1467. package/bin/shared/types/ChatRuntime.d.ts.map +0 -1
  1468. package/bin/shared/types/ChatRuntime.js.map +0 -1
  1469. package/bin/shared/types/ChatService.d.ts +0 -145
  1470. package/bin/shared/types/ChatService.d.ts.map +0 -1
  1471. package/bin/shared/types/ChatService.js.map +0 -1
  1472. package/bin/shared/types/ClaudeSkill.d.ts +0 -63
  1473. package/bin/shared/types/ClaudeSkill.d.ts.map +0 -1
  1474. package/bin/shared/types/ClaudeSkill.js.map +0 -1
  1475. package/bin/shared/types/ControlRoutes.d.ts +0 -28
  1476. package/bin/shared/types/ControlRoutes.d.ts.map +0 -1
  1477. package/bin/shared/types/ControlRoutes.js.map +0 -1
  1478. package/bin/shared/types/ControlSessionExecute.d.ts.map +0 -1
  1479. package/bin/shared/types/ControlSessionExecute.js.map +0 -1
  1480. package/bin/shared/types/ControlViewData.d.ts +0 -320
  1481. package/bin/shared/types/ControlViewData.d.ts.map +0 -1
  1482. package/bin/shared/types/ControlViewData.js.map +0 -1
  1483. package/bin/shared/types/Daemon.d.ts.map +0 -1
  1484. package/bin/shared/types/Daemon.js.map +0 -1
  1485. package/bin/shared/types/DowncityConfig.d.ts +0 -214
  1486. package/bin/shared/types/DowncityConfig.d.ts.map +0 -1
  1487. package/bin/shared/types/DowncityConfig.js.map +0 -1
  1488. package/bin/shared/types/ExecutionBinding.d.ts.map +0 -1
  1489. package/bin/shared/types/ExecutionBinding.js.map +0 -1
  1490. package/bin/shared/types/FeishuChannel.d.ts.map +0 -1
  1491. package/bin/shared/types/FeishuChannel.js.map +0 -1
  1492. package/bin/shared/types/InlineInstant.d.ts.map +0 -1
  1493. package/bin/shared/types/InlineInstant.js.map +0 -1
  1494. package/bin/shared/types/Json.d.ts.map +0 -1
  1495. package/bin/shared/types/Json.js.map +0 -1
  1496. package/bin/shared/types/LlmConfig.d.ts.map +0 -1
  1497. package/bin/shared/types/LlmConfig.js.map +0 -1
  1498. package/bin/shared/types/LocalRpc.d.ts +0 -69
  1499. package/bin/shared/types/LocalRpc.d.ts.map +0 -1
  1500. package/bin/shared/types/LocalRpc.js.map +0 -1
  1501. package/bin/shared/types/ModelBinding.d.ts.map +0 -1
  1502. package/bin/shared/types/ModelBinding.js.map +0 -1
  1503. package/bin/shared/types/Platform.d.ts.map +0 -1
  1504. package/bin/shared/types/Platform.js.map +0 -1
  1505. package/bin/shared/types/PlatformGateway.d.ts.map +0 -1
  1506. package/bin/shared/types/PlatformGateway.js.map +0 -1
  1507. package/bin/shared/types/Plugin.d.ts +0 -693
  1508. package/bin/shared/types/Plugin.d.ts.map +0 -1
  1509. package/bin/shared/types/Plugin.js.map +0 -1
  1510. package/bin/shared/types/PluginApi.d.ts +0 -155
  1511. package/bin/shared/types/PluginApi.d.ts.map +0 -1
  1512. package/bin/shared/types/PluginApi.js.map +0 -1
  1513. package/bin/shared/types/PluginLifecycle.d.ts.map +0 -1
  1514. package/bin/shared/types/PluginLifecycle.js.map +0 -1
  1515. package/bin/shared/types/QqChannel.d.ts +0 -485
  1516. package/bin/shared/types/QqChannel.d.ts.map +0 -1
  1517. package/bin/shared/types/QqChannel.js.map +0 -1
  1518. package/bin/shared/types/QqGatewaySupport.d.ts.map +0 -1
  1519. package/bin/shared/types/QqGatewaySupport.js.map +0 -1
  1520. package/bin/shared/types/Sandbox.d.ts +0 -130
  1521. package/bin/shared/types/Sandbox.d.ts.map +0 -1
  1522. package/bin/shared/types/Sandbox.js +0 -10
  1523. package/bin/shared/types/Sandbox.js.map +0 -1
  1524. package/bin/shared/types/Service.d.ts +0 -205
  1525. package/bin/shared/types/Service.d.ts.map +0 -1
  1526. package/bin/shared/types/Service.js +0 -10
  1527. package/bin/shared/types/Service.js.map +0 -1
  1528. package/bin/shared/types/ServiceSchedule.d.ts +0 -114
  1529. package/bin/shared/types/ServiceSchedule.d.ts.map +0 -1
  1530. package/bin/shared/types/ServiceSchedule.js.map +0 -1
  1531. package/bin/shared/types/ServiceState.d.ts +0 -104
  1532. package/bin/shared/types/ServiceState.d.ts.map +0 -1
  1533. package/bin/shared/types/ServiceState.js.map +0 -1
  1534. package/bin/shared/types/Services.d.ts +0 -94
  1535. package/bin/shared/types/Services.d.ts.map +0 -1
  1536. package/bin/shared/types/Services.js.map +0 -1
  1537. package/bin/shared/types/Shell.d.ts.map +0 -1
  1538. package/bin/shared/types/Shell.js.map +0 -1
  1539. package/bin/shared/types/SkillCommand.d.ts.map +0 -1
  1540. package/bin/shared/types/SkillCommand.js.map +0 -1
  1541. package/bin/shared/types/SkillPlugin.d.ts.map +0 -1
  1542. package/bin/shared/types/SkillPlugin.js.map +0 -1
  1543. package/bin/shared/types/SkillRoot.d.ts.map +0 -1
  1544. package/bin/shared/types/SkillRoot.js.map +0 -1
  1545. package/bin/shared/types/Start.d.ts.map +0 -1
  1546. package/bin/shared/types/Start.js.map +0 -1
  1547. package/bin/shared/types/Store.d.ts +0 -408
  1548. package/bin/shared/types/Store.d.ts.map +0 -1
  1549. package/bin/shared/types/Store.js.map +0 -1
  1550. package/bin/shared/types/TaskService.d.ts +0 -52
  1551. package/bin/shared/types/TaskService.d.ts.map +0 -1
  1552. package/bin/shared/types/TaskService.js +0 -9
  1553. package/bin/shared/types/TaskService.js.map +0 -1
  1554. package/bin/shared/types/Template.d.ts.map +0 -1
  1555. package/bin/shared/types/Template.js.map +0 -1
  1556. package/bin/shared/types/Tts.d.ts.map +0 -1
  1557. package/bin/shared/types/Tts.js.map +0 -1
  1558. package/bin/shared/types/TtsPlugin.d.ts +0 -161
  1559. package/bin/shared/types/TtsPlugin.d.ts.map +0 -1
  1560. package/bin/shared/types/TtsPlugin.js.map +0 -1
  1561. package/bin/shared/types/Voice.d.ts.map +0 -1
  1562. package/bin/shared/types/Voice.js.map +0 -1
  1563. package/bin/shared/types/VoicePlugin.d.ts +0 -190
  1564. package/bin/shared/types/VoicePlugin.d.ts.map +0 -1
  1565. package/bin/shared/types/VoicePlugin.js.map +0 -1
  1566. package/bin/shared/types/WebPlugin.d.ts +0 -133
  1567. package/bin/shared/types/WebPlugin.d.ts.map +0 -1
  1568. package/bin/shared/types/WebPlugin.js.map +0 -1
  1569. package/bin/shared/types/auth/AuthPermission.d.ts.map +0 -1
  1570. package/bin/shared/types/auth/AuthPermission.js.map +0 -1
  1571. package/bin/shared/types/auth/AuthRoute.d.ts.map +0 -1
  1572. package/bin/shared/types/auth/AuthRoute.js.map +0 -1
  1573. package/bin/shared/types/auth/AuthToken.d.ts.map +0 -1
  1574. package/bin/shared/types/auth/AuthToken.js.map +0 -1
  1575. package/bin/shared/types/auth/AuthTypes.d.ts.map +0 -1
  1576. package/bin/shared/types/auth/AuthTypes.js.map +0 -1
  1577. package/bin/shared/utils/Id.d.ts.map +0 -1
  1578. package/bin/shared/utils/Id.js.map +0 -1
  1579. package/bin/shared/utils/Template.d.ts +0 -17
  1580. package/bin/shared/utils/Template.d.ts.map +0 -1
  1581. package/bin/shared/utils/Template.js.map +0 -1
  1582. package/bin/shared/utils/Time.d.ts.map +0 -1
  1583. package/bin/shared/utils/Time.js.map +0 -1
  1584. package/bin/shared/utils/cli/Checker.d.ts.map +0 -1
  1585. package/bin/shared/utils/cli/Checker.js.map +0 -1
  1586. package/bin/shared/utils/cli/CliOutput.d.ts.map +0 -1
  1587. package/bin/shared/utils/cli/CliOutput.js +0 -98
  1588. package/bin/shared/utils/cli/CliOutput.js.map +0 -1
  1589. package/bin/shared/utils/cli/PrettyStatus.d.ts.map +0 -1
  1590. package/bin/shared/utils/cli/PrettyStatus.js.map +0 -1
  1591. package/bin/shared/utils/logger/Fetch.d.ts +0 -14
  1592. package/bin/shared/utils/logger/Fetch.d.ts.map +0 -1
  1593. package/bin/shared/utils/logger/Fetch.js.map +0 -1
  1594. package/bin/shared/utils/logger/Format.d.ts.map +0 -1
  1595. package/bin/shared/utils/logger/Format.js.map +0 -1
  1596. package/bin/shared/utils/logger/FormatRequest.d.ts +0 -29
  1597. package/bin/shared/utils/logger/FormatRequest.d.ts.map +0 -1
  1598. package/bin/shared/utils/logger/FormatRequest.js.map +0 -1
  1599. package/bin/shared/utils/logger/FormatResponse.d.ts +0 -46
  1600. package/bin/shared/utils/logger/FormatResponse.d.ts.map +0 -1
  1601. package/bin/shared/utils/logger/FormatResponse.js.map +0 -1
  1602. package/bin/shared/utils/logger/FormatShared.d.ts +0 -33
  1603. package/bin/shared/utils/logger/FormatShared.d.ts.map +0 -1
  1604. package/bin/shared/utils/logger/FormatShared.js.map +0 -1
  1605. package/bin/shared/utils/logger/Logger.d.ts +0 -101
  1606. package/bin/shared/utils/logger/Logger.d.ts.map +0 -1
  1607. package/bin/shared/utils/logger/Logger.js +0 -308
  1608. package/bin/shared/utils/logger/Logger.js.map +0 -1
  1609. package/bin/shared/utils/storage/index.d.ts +0 -5
  1610. package/bin/shared/utils/storage/index.d.ts.map +0 -1
  1611. package/bin/shared/utils/storage/index.js.map +0 -1
  1612. package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts +0 -34
  1613. package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts.map +0 -1
  1614. package/bin/shared/utils/store/StoreChannelAccountRepository.js +0 -198
  1615. package/bin/shared/utils/store/StoreChannelAccountRepository.js.map +0 -1
  1616. package/bin/shared/utils/store/StoreEnvRepository.d.ts +0 -98
  1617. package/bin/shared/utils/store/StoreEnvRepository.d.ts.map +0 -1
  1618. package/bin/shared/utils/store/StoreEnvRepository.js +0 -334
  1619. package/bin/shared/utils/store/StoreEnvRepository.js.map +0 -1
  1620. package/bin/shared/utils/store/StoreModelRepository.d.ts +0 -61
  1621. package/bin/shared/utils/store/StoreModelRepository.d.ts.map +0 -1
  1622. package/bin/shared/utils/store/StoreModelRepository.js +0 -278
  1623. package/bin/shared/utils/store/StoreModelRepository.js.map +0 -1
  1624. package/bin/shared/utils/store/StoreSchema.d.ts +0 -13
  1625. package/bin/shared/utils/store/StoreSchema.d.ts.map +0 -1
  1626. package/bin/shared/utils/store/StoreSchema.js +0 -319
  1627. package/bin/shared/utils/store/StoreSchema.js.map +0 -1
  1628. package/bin/shared/utils/store/StoreSecureSettings.d.ts +0 -33
  1629. package/bin/shared/utils/store/StoreSecureSettings.d.ts.map +0 -1
  1630. package/bin/shared/utils/store/StoreSecureSettings.js +0 -91
  1631. package/bin/shared/utils/store/StoreSecureSettings.js.map +0 -1
  1632. package/bin/shared/utils/store/StoreShared.d.ts +0 -44
  1633. package/bin/shared/utils/store/StoreShared.d.ts.map +0 -1
  1634. package/bin/shared/utils/store/StoreShared.js +0 -40
  1635. package/bin/shared/utils/store/StoreShared.js.map +0 -1
  1636. package/bin/shared/utils/store/crypto.d.ts +0 -24
  1637. package/bin/shared/utils/store/crypto.d.ts.map +0 -1
  1638. package/bin/shared/utils/store/crypto.js +0 -101
  1639. package/bin/shared/utils/store/crypto.js.map +0 -1
  1640. package/bin/shared/utils/store/index.d.ts +0 -230
  1641. package/bin/shared/utils/store/index.d.ts.map +0 -1
  1642. package/bin/shared/utils/store/index.js +0 -360
  1643. package/bin/shared/utils/store/index.js.map +0 -1
  1644. package/bin/shared/utils/store/schema.d.ts +0 -690
  1645. package/bin/shared/utils/store/schema.d.ts.map +0 -1
  1646. package/bin/shared/utils/store/schema.js +0 -81
  1647. package/bin/shared/utils/store/schema.js.map +0 -1
  1648. package/bin/types/sandbox/SandboxRuntime.d.ts +0 -318
  1649. package/bin/types/sandbox/SandboxRuntime.d.ts.map +0 -1
  1650. package/bin/types/sandbox/SandboxRuntime.js.map +0 -1
  1651. package/bin/types/session/SessionExecutor.d.ts +0 -18
  1652. package/bin/types/session/SessionExecutor.d.ts.map +0 -1
  1653. package/bin/types/session/SessionExecutor.js.map +0 -1
  1654. package/bin/types/session/SessionHistoryMeta.d.ts.map +0 -1
  1655. package/bin/types/session/SessionHistoryMeta.js.map +0 -1
  1656. package/bin/types/session/SessionHistoryPaths.d.ts.map +0 -1
  1657. package/bin/types/session/SessionHistoryPaths.js.map +0 -1
  1658. package/bin/types/session/SessionLoop.d.ts.map +0 -1
  1659. package/bin/types/session/SessionLoop.js.map +0 -1
  1660. package/bin/types/session/SessionMessages.d.ts +0 -83
  1661. package/bin/types/session/SessionMessages.d.ts.map +0 -1
  1662. package/bin/types/session/SessionMessages.js.map +0 -1
  1663. package/bin/types/session/SessionPrompts.d.ts.map +0 -1
  1664. package/bin/types/session/SessionPrompts.js.map +0 -1
  1665. package/bin/types/session/SessionRun.d.ts +0 -112
  1666. package/bin/types/session/SessionRun.d.ts.map +0 -1
  1667. package/bin/types/session/SessionRun.js.map +0 -1
  1668. package/scripts/copy-prompt-assets.mjs +0 -72
  1669. package/src/http/Server.ts +0 -170
  1670. package/src/http/auth/AuthEnv.ts +0 -71
  1671. package/src/http/auth/AuthMiddleware.ts +0 -61
  1672. package/src/http/auth/AuthRoutes.ts +0 -100
  1673. package/src/http/auth/AuthService.ts +0 -367
  1674. package/src/http/auth/AuthStore.ts +0 -572
  1675. package/src/http/auth/CliAuthStateStore.ts +0 -50
  1676. package/src/http/auth/RoutePolicy.ts +0 -255
  1677. package/src/http/control/AuthControlService.ts +0 -161
  1678. package/src/http/control/ControlApiRoutes.ts +0 -31
  1679. package/src/http/control/ControlAuthorizationRoutes.ts +0 -108
  1680. package/src/http/control/ControlRouter.ts +0 -31
  1681. package/src/http/control/ExecuteBySession.ts +0 -151
  1682. package/src/http/control/ExecuteInput.ts +0 -236
  1683. package/src/http/control/MessageTimeline.ts +0 -269
  1684. package/src/http/control/ModelRoutes.ts +0 -107
  1685. package/src/http/control/OverviewRoutes.ts +0 -106
  1686. package/src/http/control/SessionRoutes.ts +0 -414
  1687. package/src/http/control/SessionSummaryStore.ts +0 -76
  1688. package/src/http/control/TaskRoutes.ts +0 -391
  1689. package/src/http/control/TaskStore.ts +0 -222
  1690. package/src/plugin/Activation.ts +0 -22
  1691. package/src/plugin/Catalog.ts +0 -118
  1692. package/src/plugin/HookRegistry.ts +0 -249
  1693. package/src/plugin/HttpRoutes.ts +0 -50
  1694. package/src/plugin/Lifecycle.ts +0 -116
  1695. package/src/plugin/LocalExecution.ts +0 -157
  1696. package/src/plugin/PluginCommand.ts +0 -219
  1697. package/src/plugin/PluginManager.ts +0 -66
  1698. package/src/plugin/PluginRegistry.ts +0 -244
  1699. package/src/plugin/Plugins.ts +0 -39
  1700. package/src/plugin/ProjectConfigStore.ts +0 -58
  1701. package/src/plugins/asr/Dependency.ts +0 -336
  1702. package/src/plugins/asr/ModelCatalog.ts +0 -43
  1703. package/src/plugins/asr/Plugin.ts +0 -640
  1704. package/src/plugins/auth/Plugin.ts +0 -208
  1705. package/src/plugins/auth/runtime/AuthorizationConfig.ts +0 -255
  1706. package/src/plugins/auth/runtime/AuthorizationPolicy.ts +0 -165
  1707. package/src/plugins/auth/runtime/AuthorizationStore.ts +0 -218
  1708. package/src/plugins/skill/Action.ts +0 -159
  1709. package/src/plugins/skill/Command.ts +0 -98
  1710. package/src/plugins/skill/Config.ts +0 -51
  1711. package/src/plugins/skill/PROMPT.txt +0 -10
  1712. package/src/plugins/skill/Plugin.ts +0 -355
  1713. package/src/plugins/skill/runtime/Discovery.ts +0 -141
  1714. package/src/plugins/skill/runtime/Paths.ts +0 -130
  1715. package/src/plugins/skill/runtime/Prompt.ts +0 -67
  1716. package/src/plugins/skill/runtime/Store.ts +0 -95
  1717. package/src/plugins/skill/runtime/SystemProvider.ts +0 -52
  1718. package/src/plugins/skill/runtime/Types.ts +0 -22
  1719. package/src/plugins/tts/Dependency.ts +0 -473
  1720. package/src/plugins/tts/Plugin.ts +0 -554
  1721. package/src/plugins/tts/runtime/Catalog.ts +0 -97
  1722. package/src/plugins/tts/runtime/DependencyInstaller.ts +0 -436
  1723. package/src/plugins/tts/runtime/Installer.ts +0 -297
  1724. package/src/plugins/tts/runtime/Synthesizer.ts +0 -480
  1725. package/src/plugins/voice/Dependency.ts +0 -329
  1726. package/src/plugins/voice/ModelCatalog.ts +0 -43
  1727. package/src/plugins/voice/Plugin.ts +0 -599
  1728. package/src/plugins/voice/runtime/Catalog.ts +0 -68
  1729. package/src/plugins/voice/runtime/DependencyInstaller.ts +0 -505
  1730. package/src/plugins/voice/runtime/Installer.ts +0 -324
  1731. package/src/plugins/voice/runtime/Transcriber.ts +0 -467
  1732. package/src/plugins/web/Dependency.ts +0 -17
  1733. package/src/plugins/web/PROMPT.agent-browser.txt +0 -17
  1734. package/src/plugins/web/PROMPT.txt +0 -33
  1735. package/src/plugins/web/PROMPT.web-access.txt +0 -13
  1736. package/src/plugins/web/Plugin.ts +0 -516
  1737. package/src/plugins/web/runtime/Config.ts +0 -105
  1738. package/src/plugins/web/runtime/Source.ts +0 -263
  1739. package/src/plugins/workboard/Plugin.ts +0 -81
  1740. package/src/plugins/workboard/runtime/Collector.ts +0 -78
  1741. package/src/plugins/workboard/runtime/Normalizer.ts +0 -213
  1742. package/src/plugins/workboard/runtime/Store.ts +0 -110
  1743. package/src/service/builtins/chat/PROMPT.direct.txt +0 -55
  1744. package/src/service/builtins/chat/channels/feishu/PROMPT.direct.txt +0 -5
  1745. package/src/service/builtins/chat/channels/qq/PROMPT.direct.txt +0 -11
  1746. package/src/service/builtins/chat/channels/telegram/PROMPT.direct.txt +0 -1
  1747. package/src/service/builtins/contact/PROMPT.txt +0 -25
  1748. package/src/service/builtins/memory/runtime/Indexer.ts +0 -466
  1749. package/src/service/builtins/task/PROMPT.txt +0 -237
  1750. package/src/service/schedule/Schema.ts +0 -34
  1751. package/src/session/composer/system/default/assets/core.prompt.txt +0 -39
  1752. package/src/session/composer/system/default/assets/init/PROFILE.md.txt +0 -17
  1753. package/src/session/composer/system/default/assets/init/SOUL.md.txt +0 -88
  1754. package/src/session/composer/system/default/assets/service.prompt.txt +0 -29
  1755. package/src/session/composer/system/default/assets/task.prompt.txt +0 -33
  1756. package/src/shared/constants/DowncityDefault.ts +0 -38
  1757. package/src/shared/constants/DowncitySchema.ts +0 -377
  1758. package/src/shared/types/AgentHost.ts +0 -74
  1759. package/src/shared/types/AgentProject.ts +0 -92
  1760. package/src/shared/types/AuthControl.ts +0 -38
  1761. package/src/shared/types/ChatPromptContext.ts +0 -139
  1762. package/src/shared/types/ChatService.ts +0 -165
  1763. package/src/shared/types/ClaudeSkill.ts +0 -64
  1764. package/src/shared/types/ControlViewData.ts +0 -392
  1765. package/src/shared/types/DowncityConfig.ts +0 -215
  1766. package/src/shared/types/LocalRpc.ts +0 -72
  1767. package/src/shared/types/Plugin.ts +0 -743
  1768. package/src/shared/types/PluginApi.ts +0 -161
  1769. package/src/shared/types/QqChannel.ts +0 -501
  1770. package/src/shared/types/README.md +0 -56
  1771. package/src/shared/types/Sandbox.ts +0 -144
  1772. package/src/shared/types/Service.ts +0 -223
  1773. package/src/shared/types/ServiceSchedule.ts +0 -134
  1774. package/src/shared/types/ServiceState.ts +0 -112
  1775. package/src/shared/types/Services.ts +0 -100
  1776. package/src/shared/types/Store.ts +0 -422
  1777. package/src/shared/types/TaskService.ts +0 -55
  1778. package/src/shared/types/TtsPlugin.ts +0 -164
  1779. package/src/shared/types/VoicePlugin.ts +0 -194
  1780. package/src/shared/types/WebPlugin.ts +0 -141
  1781. package/src/shared/utils/README.md +0 -49
  1782. package/src/shared/utils/Template.ts +0 -28
  1783. package/src/shared/utils/cli/CliOutput.ts +0 -128
  1784. package/src/shared/utils/logger/Fetch.ts +0 -93
  1785. package/src/shared/utils/logger/FormatRequest.ts +0 -455
  1786. package/src/shared/utils/logger/FormatResponse.ts +0 -265
  1787. package/src/shared/utils/logger/FormatShared.ts +0 -258
  1788. package/src/shared/utils/logger/Logger.ts +0 -372
  1789. package/src/shared/utils/storage/index.ts +0 -26
  1790. package/src/shared/utils/store/StoreChannelAccountRepository.ts +0 -269
  1791. package/src/shared/utils/store/StoreEnvRepository.ts +0 -452
  1792. package/src/shared/utils/store/StoreModelRepository.ts +0 -324
  1793. package/src/shared/utils/store/StoreSchema.ts +0 -344
  1794. package/src/shared/utils/store/StoreSecureSettings.ts +0 -126
  1795. package/src/shared/utils/store/StoreShared.ts +0 -67
  1796. package/src/shared/utils/store/crypto.ts +0 -112
  1797. package/src/shared/utils/store/index.ts +0 -497
  1798. package/src/shared/utils/store/schema.ts +0 -103
  1799. package/src/types/sandbox/SandboxRuntime.ts +0 -377
  1800. package/src/types/session/SessionExecutor.ts +0 -33
  1801. package/src/types/session/SessionMessages.ts +0 -90
  1802. package/src/types/session/SessionRun.ts +0 -132
  1803. /package/bin/{shared → agent/project}/types/AgentProject.js +0 -0
  1804. /package/bin/{shared/constants → config}/DowncityDefault.js +0 -0
  1805. /package/bin/{shared/constants → config}/DowncitySchema.js +0 -0
  1806. /package/bin/{shared → config}/types/DowncityConfig.js +0 -0
  1807. /package/bin/{shared → config}/types/ExecutionBinding.d.ts +0 -0
  1808. /package/bin/{shared → config}/types/ExecutionBinding.js +0 -0
  1809. /package/bin/{shared → config}/types/LlmConfig.d.ts +0 -0
  1810. /package/bin/{shared → config}/types/LlmConfig.js +0 -0
  1811. /package/bin/{shared → config}/types/ModelBinding.d.ts +0 -0
  1812. /package/bin/{shared → config}/types/ModelBinding.js +0 -0
  1813. /package/bin/{shared → config}/types/Start.d.ts +0 -0
  1814. /package/bin/{shared → config}/types/Start.js +0 -0
  1815. /package/bin/{shared → host/daemon}/types/Daemon.d.ts +0 -0
  1816. /package/bin/{shared → host/daemon}/types/Daemon.js +0 -0
  1817. /package/bin/{http → host/http}/Server.d.ts +0 -0
  1818. /package/bin/{http → host/http}/auth/AuthError.d.ts +0 -0
  1819. /package/bin/{http → host/http}/auth/AuthError.js +0 -0
  1820. /package/bin/{http → host/http}/auth/PasswordHasher.d.ts +0 -0
  1821. /package/bin/{http → host/http}/auth/PasswordHasher.js +0 -0
  1822. /package/bin/{http → host/http}/auth/TokenService.d.ts +0 -0
  1823. /package/bin/{http → host/http}/auth/TokenService.js +0 -0
  1824. /package/bin/{shared/types/auth → host/http/auth/types}/AuthPermission.d.ts +0 -0
  1825. /package/bin/{shared/types/auth → host/http/auth/types}/AuthPermission.js +0 -0
  1826. /package/bin/{shared/types/auth → host/http/auth/types}/AuthRoute.d.ts +0 -0
  1827. /package/bin/{shared/types/auth → host/http/auth/types}/AuthRoute.js +0 -0
  1828. /package/bin/{shared/types/auth → host/http/auth/types}/AuthToken.d.ts +0 -0
  1829. /package/bin/{shared/types/auth → host/http/auth/types}/AuthToken.js +0 -0
  1830. /package/bin/{shared/types/auth → host/http/auth/types}/AuthTypes.d.ts +0 -0
  1831. /package/bin/{shared/types/auth → host/http/auth/types}/AuthTypes.js +0 -0
  1832. /package/bin/{http → host/http}/control/CommonHelpers.d.ts +0 -0
  1833. /package/bin/{http → host/http}/control/CommonHelpers.js +0 -0
  1834. /package/bin/{http → host/http}/control/Helpers.d.ts +0 -0
  1835. /package/bin/{http → host/http}/control/Helpers.js +0 -0
  1836. /package/bin/{shared → host/http/control}/types/AuthControl.js +0 -0
  1837. /package/bin/{shared → host/http/control}/types/ControlRoutes.js +0 -0
  1838. /package/bin/{shared → host/http/control}/types/ControlSessionExecute.d.ts +0 -0
  1839. /package/bin/{shared → host/http/control}/types/ControlSessionExecute.js +0 -0
  1840. /package/bin/{shared → host/http/control}/types/ControlViewData.js +0 -0
  1841. /package/bin/{http → host/http}/execute/execute.d.ts +0 -0
  1842. /package/bin/{shared → host/http/execute}/types/InlineInstant.d.ts +0 -0
  1843. /package/bin/{shared → host/http/execute}/types/InlineInstant.js +0 -0
  1844. /package/bin/{http → host/http}/health/health.d.ts +0 -0
  1845. /package/bin/{http → host/http}/health/health.js +0 -0
  1846. /package/bin/{http → host/http}/plugins/plugins.d.ts +0 -0
  1847. /package/bin/{http → host/http}/services/services.d.ts +0 -0
  1848. /package/bin/{http → host/http}/static/static.d.ts +0 -0
  1849. /package/bin/{shared → host/rpc}/types/LocalRpc.js +0 -0
  1850. /package/bin/{shared → host/runtime}/types/Platform.d.ts +0 -0
  1851. /package/bin/{shared → host/runtime}/types/Platform.js +0 -0
  1852. /package/bin/{shared → host/runtime}/types/PlatformGateway.d.ts +0 -0
  1853. /package/bin/{shared → host/runtime}/types/PlatformGateway.js +0 -0
  1854. /package/bin/{shared → host}/types/AgentHost.js +0 -0
  1855. /package/bin/{shared → host}/types/Store.js +0 -0
  1856. /package/bin/{plugins → plugin/builtins}/asr/ModelCatalog.d.ts +0 -0
  1857. /package/bin/{plugins → plugin/builtins}/skill/Command.d.ts +0 -0
  1858. /package/bin/{plugins → plugin/builtins}/skill/Config.js +0 -0
  1859. /package/bin/{plugins → plugin/builtins}/skill/runtime/Discovery.js +0 -0
  1860. /package/bin/{plugins → plugin/builtins}/skill/runtime/Frontmatter.d.ts +0 -0
  1861. /package/bin/{plugins → plugin/builtins}/skill/runtime/Frontmatter.js +0 -0
  1862. /package/bin/{plugins → plugin/builtins}/skill/runtime/Paths.js +0 -0
  1863. /package/bin/{plugins → plugin/builtins}/skill/runtime/Store.js +0 -0
  1864. /package/bin/{plugins → plugin/builtins}/skill/runtime/Types.js +0 -0
  1865. /package/bin/{plugins → plugin/builtins}/skill/runtime/Utils.d.ts +0 -0
  1866. /package/bin/{plugins → plugin/builtins}/skill/runtime/Utils.js +0 -0
  1867. /package/bin/{shared → plugin/builtins/skill}/types/ClaudeSkill.js +0 -0
  1868. /package/bin/{shared → plugin/builtins/skill}/types/SkillCommand.d.ts +0 -0
  1869. /package/bin/{shared → plugin/builtins/skill}/types/SkillCommand.js +0 -0
  1870. /package/bin/{shared → plugin/builtins/skill}/types/SkillPlugin.d.ts +0 -0
  1871. /package/bin/{shared → plugin/builtins/skill}/types/SkillPlugin.js +0 -0
  1872. /package/bin/{shared → plugin/builtins/skill}/types/SkillRoot.d.ts +0 -0
  1873. /package/bin/{shared → plugin/builtins/skill}/types/SkillRoot.js +0 -0
  1874. /package/bin/{plugins → plugin/builtins}/tts/runtime/Catalog.js +0 -0
  1875. /package/bin/{plugins → plugin/builtins}/tts/runtime/DependencyInstaller.js +0 -0
  1876. /package/bin/{plugins → plugin/builtins}/tts/runtime/Installer.js +0 -0
  1877. /package/bin/{plugins → plugin/builtins}/tts/runtime/Paths.d.ts +0 -0
  1878. /package/bin/{plugins → plugin/builtins}/tts/runtime/Paths.js +0 -0
  1879. /package/bin/{shared → plugin/builtins/tts}/types/Tts.d.ts +0 -0
  1880. /package/bin/{shared → plugin/builtins/tts}/types/Tts.js +0 -0
  1881. /package/bin/{shared → plugin/builtins/tts}/types/TtsPlugin.js +0 -0
  1882. /package/bin/{plugins → plugin/builtins}/voice/ModelCatalog.d.ts +0 -0
  1883. /package/bin/{plugins → plugin/builtins}/voice/runtime/Catalog.js +0 -0
  1884. /package/bin/{plugins → plugin/builtins}/voice/runtime/DependencyInstaller.js +0 -0
  1885. /package/bin/{plugins → plugin/builtins}/voice/runtime/Installer.js +0 -0
  1886. /package/bin/{plugins → plugin/builtins}/voice/runtime/Paths.d.ts +0 -0
  1887. /package/bin/{plugins → plugin/builtins}/voice/runtime/Paths.js +0 -0
  1888. /package/bin/{plugins → plugin/builtins}/voice/runtime/Transcriber.js +0 -0
  1889. /package/bin/{shared → plugin/builtins/voice}/types/Voice.d.ts +0 -0
  1890. /package/bin/{shared → plugin/builtins/voice}/types/Voice.js +0 -0
  1891. /package/bin/{shared → plugin/builtins/voice}/types/VoicePlugin.js +0 -0
  1892. /package/bin/{shared → plugin/builtins/web}/types/WebPlugin.js +0 -0
  1893. /package/bin/{plugins → plugin/builtins}/workboard/runtime/Normalizer.js +0 -0
  1894. /package/bin/{plugins → plugin/builtins}/workboard/types/Workboard.d.ts +0 -0
  1895. /package/bin/{plugins → plugin/builtins}/workboard/types/Workboard.js +0 -0
  1896. /package/bin/plugin/{HookRegistry.js → core/HookRegistry.js} +0 -0
  1897. /package/bin/plugin/{PluginCommand.d.ts → core/PluginCommand.d.ts} +0 -0
  1898. /package/bin/plugin/{ProjectConfigStore.js → core/ProjectConfigStore.js} +0 -0
  1899. /package/bin/{shared → plugin}/types/Plugin.js +0 -0
  1900. /package/bin/{shared → plugin}/types/PluginApi.js +0 -0
  1901. /package/bin/{shared → plugin}/types/PluginLifecycle.d.ts +0 -0
  1902. /package/bin/{shared → plugin}/types/PluginLifecycle.js +0 -0
  1903. /package/bin/{types/sandbox → sandbox/types}/SandboxRuntime.js +0 -0
  1904. /package/bin/{shared → service/builtins/chat/channels/feishu}/types/FeishuChannel.d.ts +0 -0
  1905. /package/bin/{shared → service/builtins/chat/channels/feishu}/types/FeishuChannel.js +0 -0
  1906. /package/bin/{shared → service/builtins/chat/channels/qq}/types/QqChannel.js +0 -0
  1907. /package/bin/{shared → service/builtins/chat/channels/qq}/types/QqGatewaySupport.d.ts +0 -0
  1908. /package/bin/{shared → service/builtins/chat/channels/qq}/types/QqGatewaySupport.js +0 -0
  1909. /package/bin/{shared → service/builtins/chat}/types/ChatPlugin.js +0 -0
  1910. /package/bin/{shared → service/builtins/chat}/types/ChatPromptContext.js +0 -0
  1911. /package/bin/{shared → service/builtins/chat}/types/ChatQueueWorker.d.ts +0 -0
  1912. /package/bin/{shared → service/builtins/chat}/types/ChatQueueWorker.js +0 -0
  1913. /package/bin/{shared → service/builtins/chat}/types/ChatRuntime.js +0 -0
  1914. /package/bin/{shared → service/builtins/chat}/types/ChatService.js +0 -0
  1915. /package/bin/{shared → service/builtins/shell}/types/Shell.d.ts +0 -0
  1916. /package/bin/{shared → service/builtins/shell}/types/Shell.js +0 -0
  1917. /package/bin/{shared → service}/types/ServiceSchedule.js +0 -0
  1918. /package/bin/{shared → service}/types/ServiceState.js +0 -0
  1919. /package/bin/{shared → service}/types/Services.js +0 -0
  1920. /package/bin/{types/session → session/types}/SessionExecutor.js +0 -0
  1921. /package/bin/{types/session → session/types}/SessionHistoryMeta.d.ts +0 -0
  1922. /package/bin/{types/session → session/types}/SessionHistoryMeta.js +0 -0
  1923. /package/bin/{types/session → session/types}/SessionHistoryPaths.d.ts +0 -0
  1924. /package/bin/{types/session → session/types}/SessionHistoryPaths.js +0 -0
  1925. /package/bin/{types/session → session/types}/SessionLoop.d.ts +0 -0
  1926. /package/bin/{types/session → session/types}/SessionLoop.js +0 -0
  1927. /package/bin/{types/session → session/types}/SessionMessages.js +0 -0
  1928. /package/bin/{types/session → session/types}/SessionPrompts.d.ts +0 -0
  1929. /package/bin/{types/session → session/types}/SessionPrompts.js +0 -0
  1930. /package/bin/{types/session → session/types}/SessionRun.js +0 -0
  1931. /package/bin/{shared/utils → utils}/Id.d.ts +0 -0
  1932. /package/bin/{shared/utils → utils}/Id.js +0 -0
  1933. /package/bin/{shared/utils → utils}/Template.js +0 -0
  1934. /package/bin/{shared/utils → utils}/Time.d.ts +0 -0
  1935. /package/bin/{shared/utils → utils}/Time.js +0 -0
  1936. /package/bin/{shared/utils → utils}/cli/Checker.d.ts +0 -0
  1937. /package/bin/{shared/utils → utils}/cli/Checker.js +0 -0
  1938. /package/bin/{shared/utils → utils}/cli/CliOutput.d.ts +0 -0
  1939. /package/bin/{shared/utils → utils}/cli/PrettyStatus.d.ts +0 -0
  1940. /package/bin/{shared/utils → utils}/cli/PrettyStatus.js +0 -0
  1941. /package/bin/{shared/utils → utils}/logger/Fetch.js +0 -0
  1942. /package/bin/{shared/utils → utils}/logger/Format.d.ts +0 -0
  1943. /package/bin/{shared/utils → utils}/logger/Format.js +0 -0
  1944. /package/bin/{shared/utils → utils}/logger/FormatRequest.js +0 -0
  1945. /package/bin/{shared/utils → utils}/logger/FormatResponse.js +0 -0
  1946. /package/bin/{shared/utils → utils}/logger/FormatShared.js +0 -0
  1947. /package/bin/{shared/utils → utils}/storage/index.js +0 -0
  1948. /package/bin/{shared → utils}/types/Json.d.ts +0 -0
  1949. /package/bin/{shared → utils}/types/Json.js +0 -0
  1950. /package/bin/{shared → utils}/types/Template.d.ts +0 -0
  1951. /package/bin/{shared → utils}/types/Template.js +0 -0
  1952. /package/src/{shared → config}/types/ExecutionBinding.ts +0 -0
  1953. /package/src/{shared → config}/types/LlmConfig.ts +0 -0
  1954. /package/src/{shared → config}/types/ModelBinding.ts +0 -0
  1955. /package/src/{shared → config}/types/Start.ts +0 -0
  1956. /package/src/{shared → host/daemon}/types/Daemon.ts +0 -0
  1957. /package/src/{http → host/http}/auth/AuthError.ts +0 -0
  1958. /package/src/{http → host/http}/auth/PasswordHasher.ts +0 -0
  1959. /package/src/{http → host/http}/auth/TokenService.ts +0 -0
  1960. /package/src/{shared/types/auth → host/http/auth/types}/AuthPermission.ts +0 -0
  1961. /package/src/{shared/types/auth → host/http/auth/types}/AuthRoute.ts +0 -0
  1962. /package/src/{shared/types/auth → host/http/auth/types}/AuthToken.ts +0 -0
  1963. /package/src/{shared/types/auth → host/http/auth/types}/AuthTypes.ts +0 -0
  1964. /package/src/{http → host/http}/control/CommonHelpers.ts +0 -0
  1965. /package/src/{http → host/http}/control/Helpers.ts +0 -0
  1966. /package/src/{shared → host/http/control}/types/ControlRoutes.ts +0 -0
  1967. /package/src/{shared → host/http/control}/types/ControlSessionExecute.ts +0 -0
  1968. /package/src/{http → host/http}/execute/execute.ts +0 -0
  1969. /package/src/{shared → host/http/execute}/types/InlineInstant.ts +0 -0
  1970. /package/src/{http → host/http}/health/health.ts +0 -0
  1971. /package/src/{http → host/http}/plugins/plugins.ts +0 -0
  1972. /package/src/{http → host/http}/services/services.ts +0 -0
  1973. /package/src/{http → host/http}/static/static.ts +0 -0
  1974. /package/src/{shared → host/runtime}/types/Platform.ts +0 -0
  1975. /package/src/{shared → host/runtime}/types/PlatformGateway.ts +0 -0
  1976. /package/src/{shared → plugin/builtins/auth}/types/AuthPlugin.ts +0 -0
  1977. /package/{bin/plugins/skill/PROMPT.txt → src/plugin/builtins/skill/PROMPT.ts.txt} +0 -0
  1978. /package/src/{plugins → plugin/builtins}/skill/runtime/Frontmatter.ts +0 -0
  1979. /package/src/{plugins → plugin/builtins}/skill/runtime/Utils.ts +0 -0
  1980. /package/src/{shared → plugin/builtins/skill}/types/SkillCommand.ts +0 -0
  1981. /package/src/{shared → plugin/builtins/skill}/types/SkillPlugin.ts +0 -0
  1982. /package/src/{shared → plugin/builtins/skill}/types/SkillRoot.ts +0 -0
  1983. /package/src/{plugins → plugin/builtins}/tts/runtime/Paths.ts +0 -0
  1984. /package/src/{shared → plugin/builtins/tts}/types/Tts.ts +0 -0
  1985. /package/src/{plugins → plugin/builtins}/voice/runtime/Paths.ts +0 -0
  1986. /package/src/{shared → plugin/builtins/voice}/types/Voice.ts +0 -0
  1987. /package/{bin/plugins/web/PROMPT.agent-browser.txt → src/plugin/builtins/web/PROMPT.agent-browser.ts.txt} +0 -0
  1988. /package/{bin/plugins/web/PROMPT.txt → src/plugin/builtins/web/PROMPT.ts.txt} +0 -0
  1989. /package/{bin/plugins/web/PROMPT.web-access.txt → src/plugin/builtins/web/PROMPT.web-access.ts.txt} +0 -0
  1990. /package/src/{plugins → plugin/builtins}/workboard/types/Workboard.ts +0 -0
  1991. /package/src/{shared → plugin}/types/PluginLifecycle.ts +0 -0
  1992. /package/{bin/service/builtins/chat/PROMPT.direct.txt → src/service/builtins/chat/PROMPT.direct.ts.txt} +0 -0
  1993. /package/{bin/service/builtins/chat/channels/feishu/PROMPT.direct.txt → src/service/builtins/chat/channels/feishu/PROMPT.direct.ts.txt} +0 -0
  1994. /package/src/{shared → service/builtins/chat/channels/feishu}/types/FeishuChannel.ts +0 -0
  1995. /package/{bin/service/builtins/chat/channels/qq/PROMPT.direct.txt → src/service/builtins/chat/channels/qq/PROMPT.direct.ts.txt} +0 -0
  1996. /package/src/{shared → service/builtins/chat/channels/qq}/types/QqGatewaySupport.ts +0 -0
  1997. /package/src/{shared → service/builtins/chat}/types/ChatPlugin.ts +0 -0
  1998. /package/src/{shared → service/builtins/chat}/types/ChatQueueWorker.ts +0 -0
  1999. /package/src/{shared → service/builtins/chat}/types/ChatRuntime.ts +0 -0
  2000. /package/{bin/service/builtins/contact/PROMPT.txt → src/service/builtins/contact/PROMPT.ts.txt} +0 -0
  2001. /package/src/{shared → service/builtins/shell}/types/Shell.ts +0 -0
  2002. /package/{bin/service/builtins/task/PROMPT.txt → src/service/builtins/task/PROMPT.ts.txt} +0 -0
  2003. /package/{bin/session/composer/system/default/assets/core.prompt.txt → src/session/composer/system/default/assets/core.prompt.ts.txt} +0 -0
  2004. /package/{bin/session/composer/system/default/assets/service.prompt.txt → src/session/composer/system/default/assets/service.prompt.ts.txt} +0 -0
  2005. /package/{bin/session/composer/system/default/assets/task.prompt.txt → src/session/composer/system/default/assets/task.prompt.ts.txt} +0 -0
  2006. /package/src/{types/session → session/types}/SessionHistoryMeta.ts +0 -0
  2007. /package/src/{types/session → session/types}/SessionHistoryPaths.ts +0 -0
  2008. /package/src/{types/session → session/types}/SessionLoop.ts +0 -0
  2009. /package/src/{types/session → session/types}/SessionPrompts.ts +0 -0
  2010. /package/src/{shared/utils → utils}/Id.ts +0 -0
  2011. /package/src/{shared/utils → utils}/Time.ts +0 -0
  2012. /package/src/{shared/utils → utils}/cli/Checker.ts +0 -0
  2013. /package/src/{shared/utils → utils}/cli/PrettyStatus.ts +0 -0
  2014. /package/src/{shared/utils → utils}/logger/Format.ts +0 -0
  2015. /package/src/{shared → utils}/types/Json.ts +0 -0
  2016. /package/src/{shared → utils}/types/Template.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../src/http/Server.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,OAAO,IAAI,MAAM,WAAW,CAAC;AAuB7B;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,GAAG,EAAE,IAAI,CAAC;IACV,yBAAyB;IACzB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;IACpB,cAAc;IACd,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAoCtC;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,cAAc,CAAC,CAyBzB"}
@@ -1,122 +0,0 @@
1
- /**
2
- * Agent HTTP Server 装配模块。
3
- *
4
- * 职责说明:
5
- * 1. 创建主 Hono 应用并挂载各路由模块。
6
- * 2. 管理 Node HTTP Server 的启动与停止。
7
- * 3. 保持 server 层只做协议装配,不混入具体路由实现。
8
- */
9
- import { Hono } from "hono";
10
- import { cors } from "hono/cors";
11
- import { logger } from "hono/logger";
12
- import http from "node:http";
13
- import { logger as serverLogger } from "../shared/utils/logger/Logger.js";
14
- import { executeRouter } from "../http/execute/execute.js";
15
- import { healthRouter } from "../http/health/health.js";
16
- import { ensureServiceActionRoutesRegistered, servicesRouter, } from "../http/services/services.js";
17
- import { pluginsRouter } from "../http/plugins/plugins.js";
18
- import { staticRouter } from "../http/static/static.js";
19
- import { controlRouter } from "../http/control/ControlRouter.js";
20
- import { registerAuthRoutes } from "../http/auth/AuthRoutes.js";
21
- import { AuthService } from "../http/auth/AuthService.js";
22
- import { createRouteAuthGuardMiddleware, SERVER_AUTH_ROUTE_POLICIES, } from "../http/auth/RoutePolicy.js";
23
- import { listBuiltinPluginRuntimeAuthPolicies, registerBuiltinPluginHttpRoutes, } from "../plugin/HttpRoutes.js";
24
- import { getAgentContext } from "../agent/AgentRuntime.js";
25
- /**
26
- * 创建主 Hono 应用。
27
- */
28
- export function createServerApp() {
29
- const app = new Hono();
30
- const authService = new AuthService();
31
- const authPolicies = [
32
- ...SERVER_AUTH_ROUTE_POLICIES,
33
- ...listBuiltinPluginRuntimeAuthPolicies(),
34
- ];
35
- app.use("*", logger());
36
- app.use("*", cors({
37
- origin: "*",
38
- allowMethods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
39
- allowHeaders: ["Content-Type", "Authorization"],
40
- }));
41
- app.use("*", createRouteAuthGuardMiddleware(authService, authPolicies));
42
- // 关键点(中文):service action 路由在 runtime ready 后再注册,避免命令级 import 副作用。
43
- ensureServiceActionRoutesRegistered();
44
- // 关键点(中文):按路由域挂载,server 模块只保留装配职责。
45
- app.route("/", staticRouter);
46
- app.route("/", healthRouter);
47
- app.route("/", servicesRouter);
48
- app.route("/", pluginsRouter);
49
- app.route("/", executeRouter);
50
- app.route("/", controlRouter);
51
- registerBuiltinPluginHttpRoutes({
52
- app,
53
- getContext: getAgentContext,
54
- });
55
- registerAuthRoutes({ app, authService });
56
- return app;
57
- }
58
- /**
59
- * 启动主 HTTP 服务。
60
- */
61
- export async function startServer(options) {
62
- const app = createServerApp();
63
- const server = createNodeServer(app, options);
64
- await new Promise((resolve) => {
65
- server.listen(options.port, options.host, () => {
66
- serverLogger.info(`🚀 Agent Server started: http://${options.host}:${options.port}`);
67
- serverLogger.info("Available APIs:");
68
- resolve();
69
- });
70
- });
71
- return {
72
- app,
73
- server,
74
- async stop() {
75
- await serverLogger.saveAllLogs();
76
- await new Promise((resolve) => {
77
- server.close(() => resolve());
78
- });
79
- serverLogger.info("Agent Server stopped");
80
- },
81
- };
82
- }
83
- /**
84
- * 创建 Node HTTP Server 适配层。
85
- */
86
- function createNodeServer(app, options) {
87
- return http.createServer(async (req, res) => {
88
- try {
89
- const url = new URL(req.url || "/", `http://${options.host}:${options.port}`);
90
- const method = req.method || "GET";
91
- const bodyBuffer = await readRequestBody(req);
92
- const request = new Request(url.toString(), {
93
- method,
94
- headers: new Headers(req.headers),
95
- body: bodyBuffer.length > 0 ? bodyBuffer : undefined,
96
- });
97
- const response = await app.fetch(request);
98
- res.statusCode = response.status;
99
- for (const [key, value] of response.headers.entries()) {
100
- res.setHeader(key, value);
101
- }
102
- const body = await response.text();
103
- res.end(body);
104
- }
105
- catch {
106
- res.statusCode = 500;
107
- res.end("Internal Server Error");
108
- }
109
- });
110
- }
111
- /**
112
- * 读取原生请求体。
113
- */
114
- async function readRequestBody(req) {
115
- return new Promise((resolve, reject) => {
116
- const chunks = [];
117
- req.on("data", (chunk) => chunks.push(chunk));
118
- req.on("end", () => resolve(Buffer.concat(chunks)));
119
- req.on("error", reject);
120
- });
121
- }
122
- //# sourceMappingURL=Server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Server.js","sourceRoot":"","sources":["../../src/http/Server.ts"],"names":[],"mappings":"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"}
@@ -1,45 +0,0 @@
1
- /**
2
- * AuthEnv:统一认证环境变量与 token 解析辅助模块。
3
- *
4
- * 关键点(中文)
5
- * - 收敛 `DC_AUTH_TOKEN` 的变量名与 Bearer 归一化逻辑。
6
- * - 通用子进程默认不继承任何 Bearer Token,避免隐式走本地 HTTP。
7
- */
8
- /**
9
- * 用户显式覆盖 Bearer Token 的环境变量名。
10
- */
11
- export declare const CLI_AUTH_TOKEN_ENV_KEY = "DC_AUTH_TOKEN";
12
- /**
13
- * 归一化 Bearer Token。
14
- *
15
- * 关键点(中文)
16
- * - 允许传入纯 token 或 `Bearer xxx`。
17
- * - 空字符串与无效值统一归一化为 `null`。
18
- */
19
- export declare function normalizeBearerToken(value: unknown): string | null;
20
- /**
21
- * 解析本次调用应使用的 token。
22
- *
23
- * 优先级(中文)
24
- * 1. 显式传入 token
25
- * 2. 用户显式覆盖环境变量 `DC_AUTH_TOKEN`
26
- * 3. 调用方传入的本地存储 token
27
- */
28
- export declare function resolveInvocationToken(params?: {
29
- explicitToken?: string;
30
- env?: NodeJS.ProcessEnv;
31
- storedToken?: string;
32
- }): string | undefined;
33
- /**
34
- * 从通用子进程环境中剥离 Bearer Token。
35
- *
36
- * 关键点(中文)
37
- * - shell / task script / ACP 等通用执行面不应默认继承任何 HTTP 鉴权信息。
38
- * - 这样可以强制这些链路优先走 RPC,而不是通过环境变量隐式改走本地 HTTP。
39
- */
40
- export declare function stripInvocationAuthEnv(targetEnv: NodeJS.ProcessEnv): void;
41
- /**
42
- * 生成标准 Authorization 头值。
43
- */
44
- export declare function formatBearerHeaderValue(tokenInput: string | undefined): string | undefined;
45
- //# sourceMappingURL=AuthEnv.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthEnv.d.ts","sourceRoot":"","sources":["../../../src/http/auth/AuthEnv.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AAEtD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAMlE;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,GAAE;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,GAAG,SAAS,CAU1B;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,CAAC,UAAU,GAAG,IAAI,CAGzE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAG1F"}
@@ -1,63 +0,0 @@
1
- /**
2
- * AuthEnv:统一认证环境变量与 token 解析辅助模块。
3
- *
4
- * 关键点(中文)
5
- * - 收敛 `DC_AUTH_TOKEN` 的变量名与 Bearer 归一化逻辑。
6
- * - 通用子进程默认不继承任何 Bearer Token,避免隐式走本地 HTTP。
7
- */
8
- /**
9
- * 用户显式覆盖 Bearer Token 的环境变量名。
10
- */
11
- export const CLI_AUTH_TOKEN_ENV_KEY = "DC_AUTH_TOKEN";
12
- /**
13
- * 归一化 Bearer Token。
14
- *
15
- * 关键点(中文)
16
- * - 允许传入纯 token 或 `Bearer xxx`。
17
- * - 空字符串与无效值统一归一化为 `null`。
18
- */
19
- export function normalizeBearerToken(value) {
20
- const raw = String(value || "").trim();
21
- if (!raw)
22
- return null;
23
- const bearerMatch = /^Bearer\s+(.+)$/i.exec(raw);
24
- const token = bearerMatch?.[1]?.trim() || raw;
25
- return token || null;
26
- }
27
- /**
28
- * 解析本次调用应使用的 token。
29
- *
30
- * 优先级(中文)
31
- * 1. 显式传入 token
32
- * 2. 用户显式覆盖环境变量 `DC_AUTH_TOKEN`
33
- * 3. 调用方传入的本地存储 token
34
- */
35
- export function resolveInvocationToken(params = {}) {
36
- const explicitToken = normalizeBearerToken(params.explicitToken);
37
- if (explicitToken)
38
- return explicitToken;
39
- const env = params.env || process.env;
40
- const envAuthToken = normalizeBearerToken(env[CLI_AUTH_TOKEN_ENV_KEY]);
41
- if (envAuthToken)
42
- return envAuthToken;
43
- return normalizeBearerToken(params.storedToken) || undefined;
44
- }
45
- /**
46
- * 从通用子进程环境中剥离 Bearer Token。
47
- *
48
- * 关键点(中文)
49
- * - shell / task script / ACP 等通用执行面不应默认继承任何 HTTP 鉴权信息。
50
- * - 这样可以强制这些链路优先走 RPC,而不是通过环境变量隐式改走本地 HTTP。
51
- */
52
- export function stripInvocationAuthEnv(targetEnv) {
53
- delete targetEnv[CLI_AUTH_TOKEN_ENV_KEY];
54
- delete targetEnv.DC_AGENT_TOKEN;
55
- }
56
- /**
57
- * 生成标准 Authorization 头值。
58
- */
59
- export function formatBearerHeaderValue(tokenInput) {
60
- const token = normalizeBearerToken(tokenInput);
61
- return token ? `Bearer ${token}` : undefined;
62
- }
63
- //# sourceMappingURL=AuthEnv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthEnv.js","sourceRoot":"","sources":["../../../src/http/auth/AuthEnv.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAc;IACjD,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACvC,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACtB,MAAM,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,CAAC;IAC9C,OAAO,KAAK,IAAI,IAAI,CAAC;AACvB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CAAC,SAInC,EAAE;IACJ,MAAM,aAAa,GAAG,oBAAoB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACjE,IAAI,aAAa;QAAE,OAAO,aAAa,CAAC;IAExC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;IAEtC,MAAM,YAAY,GAAG,oBAAoB,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACvE,IAAI,YAAY;QAAE,OAAO,YAAY,CAAC;IAEtC,OAAO,oBAAoB,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,SAAS,CAAC;AAC/D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,SAA4B;IACjE,OAAO,SAAS,CAAC,sBAAsB,CAAC,CAAC;IACzC,OAAO,SAAS,CAAC,cAAc,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,UAA8B;IACpE,MAAM,KAAK,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthError.d.ts","sourceRoot":"","sources":["../../../src/http/auth/AuthError.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAClC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEZ,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAK5C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthError.js","sourceRoot":"","sources":["../../../src/http/auth/AuthError.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC;;OAEG;IACM,MAAM,CAAS;IAExB,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,KAAK,YAAY,SAAS,CAAC;AACpC,CAAC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Auth 中间件。
3
- *
4
- * 关键点(中文)
5
- * - 当前先服务 `/api/auth/*` 的受保护子路由。
6
- * - 后续把更多控制面路由切到 Bearer 鉴权时,可直接复用这一层。
7
- */
8
- import type { Context, MiddlewareHandler } from "hono";
9
- import type { AuthPrincipal } from "../../shared/types/auth/AuthTypes.js";
10
- import type { AuthService } from "./AuthService.js";
11
- /**
12
- * Hono Context 中保存 principal 的 key。
13
- */
14
- export declare const AUTH_PRINCIPAL_CONTEXT_KEY = "authPrincipal";
15
- /**
16
- * Auth 中间件变量映射。
17
- */
18
- export interface AuthMiddlewareVariables {
19
- /**
20
- * 当前请求的认证主体。
21
- */
22
- authPrincipal: AuthPrincipal;
23
- }
24
- /**
25
- * 生成 Bearer 鉴权中间件。
26
- */
27
- export declare function createRequireAuthMiddleware(authService: AuthService): MiddlewareHandler<{
28
- Variables: AuthMiddlewareVariables;
29
- }>;
30
- /**
31
- * 从 Context 中读取 principal。
32
- */
33
- export declare function getAuthPrincipal(context: Context<{
34
- Variables: AuthMiddlewareVariables;
35
- }>): AuthPrincipal;
36
- //# sourceMappingURL=AuthMiddleware.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthMiddleware.d.ts","sourceRoot":"","sources":["../../../src/http/auth/AuthMiddleware.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,0BAA0B,kBAAkB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,WAAW,GACvB,iBAAiB,CAAC;IAAE,SAAS,EAAE,uBAAuB,CAAA;CAAE,CAAC,CAkB3D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,CAAC;IAAE,SAAS,EAAE,uBAAuB,CAAA;CAAE,CAAC,GACvD,aAAa,CAEf"}
@@ -1,37 +0,0 @@
1
- /**
2
- * Auth 中间件。
3
- *
4
- * 关键点(中文)
5
- * - 当前先服务 `/api/auth/*` 的受保护子路由。
6
- * - 后续把更多控制面路由切到 Bearer 鉴权时,可直接复用这一层。
7
- */
8
- import { isAuthError } from "./AuthError.js";
9
- /**
10
- * Hono Context 中保存 principal 的 key。
11
- */
12
- export const AUTH_PRINCIPAL_CONTEXT_KEY = "authPrincipal";
13
- /**
14
- * 生成 Bearer 鉴权中间件。
15
- */
16
- export function createRequireAuthMiddleware(authService) {
17
- return async (c, next) => {
18
- try {
19
- const principal = authService.authenticateBearerHeader(c.req.header("authorization"));
20
- c.set(AUTH_PRINCIPAL_CONTEXT_KEY, principal);
21
- await next();
22
- }
23
- catch (error) {
24
- if (isAuthError(error)) {
25
- return c.json({ success: false, error: error.message }, error.status);
26
- }
27
- return c.json({ success: false, error: String(error) }, 500);
28
- }
29
- };
30
- }
31
- /**
32
- * 从 Context 中读取 principal。
33
- */
34
- export function getAuthPrincipal(context) {
35
- return context.get(AUTH_PRINCIPAL_CONTEXT_KEY);
36
- }
37
- //# sourceMappingURL=AuthMiddleware.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthMiddleware.js","sourceRoot":"","sources":["../../../src/http/auth/AuthMiddleware.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,eAAe,CAAC;AAY1D;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACzC,WAAwB;IAExB,OAAO,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,WAAW,CAAC,wBAAwB,CACtD,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,CAC5B,CAAC;YACF,CAAC,CAAC,GAAG,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAC;YAC7C,MAAM,IAAI,EAAE,CAAC;QACf,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;gBACvB,OAAO,CAAC,CAAC,IAAI,CACX,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,EACxC,KAAK,CAAC,MAAa,CACpB,CAAC;YACJ,CAAC;YACD,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAC9B,OAAwD;IAExD,OAAO,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AACjD,CAAC"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Auth API 路由。
3
- *
4
- * 关键点(中文)
5
- * - 本模块只承接 Bearer Token 模型下的最小认证接口。
6
- * - 路由层不做领域判断,所有业务逻辑统一委托给 `AuthService`。
7
- */
8
- import { Hono } from "hono";
9
- import type { AuthService } from "./AuthService.js";
10
- /**
11
- * 注册 auth 路由。
12
- */
13
- export declare function registerAuthRoutes(params: {
14
- app: Hono;
15
- authService?: AuthService;
16
- }): void;
17
- //# sourceMappingURL=AuthRoutes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthRoutes.d.ts","sourceRoot":"","sources":["../../../src/http/auth/AuthRoutes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAgB,MAAM,MAAM,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AASpD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACzC,GAAG,EAAE,IAAI,CAAC;IACV,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GAAG,IAAI,CAiEP"}
@@ -1,78 +0,0 @@
1
- /**
2
- * Auth API 路由。
3
- *
4
- * 关键点(中文)
5
- * - 本模块只承接 Bearer Token 模型下的最小认证接口。
6
- * - 路由层不做领域判断,所有业务逻辑统一委托给 `AuthService`。
7
- */
8
- import { Hono } from "hono";
9
- import { AuthService as DefaultAuthService } from "./AuthService.js";
10
- import { isAuthError } from "./AuthError.js";
11
- import { createRequireAuthMiddleware, getAuthPrincipal, } from "./AuthMiddleware.js";
12
- /**
13
- * 注册 auth 路由。
14
- */
15
- export function registerAuthRoutes(params) {
16
- const authService = params.authService || new DefaultAuthService();
17
- const router = new Hono();
18
- const protectedRouter = new Hono();
19
- const requireAuth = createRequireAuthMiddleware(authService);
20
- router.get("/status", (c) => {
21
- const initialized = authService.hasLocalCliAccess();
22
- return c.json({
23
- success: true,
24
- initialized,
25
- requireToken: initialized,
26
- });
27
- });
28
- protectedRouter.get("/me", requireAuth, (c) => {
29
- const principal = getAuthPrincipal(c);
30
- return c.json({
31
- success: true,
32
- user: authService.getCurrentUser(principal),
33
- });
34
- });
35
- protectedRouter.get("/token/list", requireAuth, (c) => {
36
- const principal = getAuthPrincipal(c);
37
- return c.json({
38
- success: true,
39
- tokens: authService.listTokens(principal),
40
- });
41
- });
42
- protectedRouter.post("/token/create", requireAuth, async (c) => {
43
- try {
44
- const principal = getAuthPrincipal(c);
45
- const body = (await c.req.json().catch(() => ({})));
46
- return c.json({
47
- success: true,
48
- token: authService.createToken(principal, {
49
- name: String(body.name || ""),
50
- expiresAt: typeof body.expiresAt === "string" ? body.expiresAt : undefined,
51
- }),
52
- });
53
- }
54
- catch (error) {
55
- return toErrorResponse(c, error);
56
- }
57
- });
58
- protectedRouter.post("/token/delete", requireAuth, async (c) => {
59
- try {
60
- const principal = getAuthPrincipal(c);
61
- const body = (await c.req.json().catch(() => ({})));
62
- authService.deleteToken(principal, String(body.tokenId || ""));
63
- return c.json({ success: true });
64
- }
65
- catch (error) {
66
- return toErrorResponse(c, error);
67
- }
68
- });
69
- router.route("/", protectedRouter);
70
- params.app.route("/api/auth", router);
71
- }
72
- function toErrorResponse(c, error) {
73
- if (isAuthError(error)) {
74
- return c.json({ success: false, error: error.message }, error.status);
75
- }
76
- return c.json({ success: false, error: String(error) }, 500);
77
- }
78
- //# sourceMappingURL=AuthRoutes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthRoutes.js","sourceRoot":"","sources":["../../../src/http/auth/AuthRoutes.ts"],"names":[],"mappings":"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"}
@@ -1,119 +0,0 @@
1
- /**
2
- * 统一账户服务层。
3
- *
4
- * 关键点(中文)
5
- * - 该模块承接本机 token 初始化、token 校验与 token 管理等业务语义。
6
- * - 路由层只调用这里,不直接碰数据库与密码哈希细节。
7
- */
8
- import type { AuthIssuedToken, AuthTokenSummary } from "../../shared/types/auth/AuthToken.js";
9
- import type { AuthPrincipal } from "../../shared/types/auth/AuthTypes.js";
10
- import { AuthStore, type AuthStoreOptions } from "./AuthStore.js";
11
- /**
12
- * AuthService 构造参数。
13
- */
14
- export interface AuthServiceOptions extends AuthStoreOptions {
15
- /**
16
- * 复用外部传入的 store。
17
- */
18
- store?: AuthStore;
19
- }
20
- /**
21
- * 登录/初始化后返回的用户摘要。
22
- */
23
- export interface AuthCurrentUserPayload {
24
- /**
25
- * 用户 ID。
26
- */
27
- id: string;
28
- /**
29
- * 用户名。
30
- */
31
- username: string;
32
- /**
33
- * 展示名。
34
- */
35
- displayName?: string;
36
- /**
37
- * 角色列表。
38
- */
39
- roles: string[];
40
- /**
41
- * 权限列表。
42
- */
43
- permissions: string[];
44
- }
45
- /**
46
- * AuthService 门面。
47
- */
48
- export declare class AuthService {
49
- private readonly store;
50
- private readonly ownsStore;
51
- constructor(options?: AuthServiceOptions);
52
- /**
53
- * 关闭底层连接。
54
- */
55
- close(): void;
56
- /**
57
- * 判断当前是否已经存在可用的本机 CLI access token。
58
- */
59
- hasLocalCliAccess(): boolean;
60
- /**
61
- * 确保存在本机 CLI 主体,并为其签发新的 access token。
62
- */
63
- ensureLocalCliAccess(input: {
64
- tokenName: string;
65
- expiresAt?: string;
66
- }): {
67
- user: AuthCurrentUserPayload;
68
- token: AuthIssuedToken;
69
- };
70
- /**
71
- * 读取本机 CLI 主体的 token 列表。
72
- */
73
- listLocalCliTokens(): AuthTokenSummary[];
74
- /**
75
- * 为本机 CLI 主体签发新的 access token。
76
- */
77
- createLocalCliToken(input: {
78
- name: string;
79
- expiresAt?: string;
80
- }): AuthIssuedToken;
81
- /**
82
- * 删除本机 CLI 主体下的 token。
83
- */
84
- deleteLocalCliToken(tokenIdInput: string): void;
85
- /**
86
- * 解析 Authorization 头并返回 principal。
87
- */
88
- authenticateBearerHeader(headerValue: string | undefined): AuthPrincipal;
89
- /**
90
- * 返回当前用户信息。
91
- */
92
- getCurrentUser(principal: AuthPrincipal): AuthCurrentUserPayload;
93
- /**
94
- * 为当前 Bearer 调用主体创建新的 token。
95
- */
96
- createToken(principal: AuthPrincipal, input: {
97
- name: string;
98
- expiresAt?: string;
99
- }): AuthIssuedToken;
100
- /**
101
- * 读取当前用户 token 列表。
102
- */
103
- listTokens(principal: AuthPrincipal): AuthTokenSummary[];
104
- /**
105
- * 删除当前用户的 token。
106
- */
107
- deleteToken(principal: AuthPrincipal, tokenIdInput: string): void;
108
- private issueTokenForUser;
109
- private ensureUserActive;
110
- private isTokenActive;
111
- private ensureLocalCliUser;
112
- private requireTokenName;
113
- private requireUserId;
114
- private requireUser;
115
- private requireLocalCliUser;
116
- private requireLocalCliTokenRecord;
117
- private toUserPayload;
118
- }
119
- //# sourceMappingURL=AuthService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthService.d.ts","sourceRoot":"","sources":["../../../src/http/auth/AuthService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAA6B,MAAM,kCAAkC,CAAC;AAGjG,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAOlE;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAY;IAClC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAU;gBAExB,OAAO,GAAE,kBAAuB;IAU5C;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,iBAAiB,IAAI,OAAO;IAQ5B;;OAEG;IACH,oBAAoB,CAAC,KAAK,EAAE;QAC1B,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG;QAAE,IAAI,EAAE,sBAAsB,CAAC;QAAC,KAAK,EAAE,eAAe,CAAA;KAAE;IAY5D;;OAEG;IACH,kBAAkB,IAAI,gBAAgB,EAAE;IASxC;;OAEG;IACH,mBAAmB,CAAC,KAAK,EAAE;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,eAAe;IAqBnB;;OAEG;IACH,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAkB/C;;OAEG;IACH,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa;IAyBxE;;OAEG;IACH,cAAc,CAAC,SAAS,EAAE,aAAa,GAAG,sBAAsB;IAUhE;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE;QAC3C,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,eAAe;IAoBnB;;OAEG;IACH,UAAU,CAAC,SAAS,EAAE,aAAa,GAAG,gBAAgB,EAAE;IAOxD;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAoBjE,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,0BAA0B;IAalC,OAAO,CAAC,aAAa;CAStB"}