@downcity/agent 1.1.1

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 (2102) hide show
  1. package/bin/agent/AgentContext.d.ts +23 -0
  2. package/bin/agent/AgentContext.d.ts.map +1 -0
  3. package/bin/agent/AgentContext.js +148 -0
  4. package/bin/agent/AgentContext.js.map +1 -0
  5. package/bin/agent/AgentRuntime.d.ts +32 -0
  6. package/bin/agent/AgentRuntime.d.ts.map +1 -0
  7. package/bin/agent/AgentRuntime.js +277 -0
  8. package/bin/agent/AgentRuntime.js.map +1 -0
  9. package/bin/agent/AgentRuntimeState.d.ts +42 -0
  10. package/bin/agent/AgentRuntimeState.d.ts.map +1 -0
  11. package/bin/agent/AgentRuntimeState.js +116 -0
  12. package/bin/agent/AgentRuntimeState.js.map +1 -0
  13. package/bin/agent/project/AgentInitializer.d.ts +38 -0
  14. package/bin/agent/project/AgentInitializer.d.ts.map +1 -0
  15. package/bin/agent/project/AgentInitializer.js +308 -0
  16. package/bin/agent/project/AgentInitializer.js.map +1 -0
  17. package/bin/agent/project/ProjectExecutionBinding.d.ts +27 -0
  18. package/bin/agent/project/ProjectExecutionBinding.d.ts.map +1 -0
  19. package/bin/agent/project/ProjectExecutionBinding.js +47 -0
  20. package/bin/agent/project/ProjectExecutionBinding.js.map +1 -0
  21. package/bin/config/Config.d.ts +32 -0
  22. package/bin/config/Config.d.ts.map +1 -0
  23. package/bin/config/Config.js +217 -0
  24. package/bin/config/Config.js.map +1 -0
  25. package/bin/config/Paths.d.ts +119 -0
  26. package/bin/config/Paths.d.ts.map +1 -0
  27. package/bin/config/Paths.js +203 -0
  28. package/bin/config/Paths.js.map +1 -0
  29. package/bin/daemon/Api.d.ts +60 -0
  30. package/bin/daemon/Api.d.ts.map +1 -0
  31. package/bin/daemon/Api.js +10 -0
  32. package/bin/daemon/Api.js.map +1 -0
  33. package/bin/daemon/Client.d.ts +17 -0
  34. package/bin/daemon/Client.d.ts.map +1 -0
  35. package/bin/daemon/Client.js +158 -0
  36. package/bin/daemon/Client.js.map +1 -0
  37. package/bin/daemon/Manager.d.ts +92 -0
  38. package/bin/daemon/Manager.d.ts.map +1 -0
  39. package/bin/daemon/Manager.js +287 -0
  40. package/bin/daemon/Manager.js.map +1 -0
  41. package/bin/daemon/ProjectSetup.d.ts +22 -0
  42. package/bin/daemon/ProjectSetup.d.ts.map +1 -0
  43. package/bin/daemon/ProjectSetup.js +101 -0
  44. package/bin/daemon/ProjectSetup.js.map +1 -0
  45. package/bin/http/Server.d.ts +39 -0
  46. package/bin/http/Server.d.ts.map +1 -0
  47. package/bin/http/Server.js +122 -0
  48. package/bin/http/Server.js.map +1 -0
  49. package/bin/http/auth/AuthEnv.d.ts +45 -0
  50. package/bin/http/auth/AuthEnv.d.ts.map +1 -0
  51. package/bin/http/auth/AuthEnv.js +63 -0
  52. package/bin/http/auth/AuthEnv.js.map +1 -0
  53. package/bin/http/auth/AuthError.d.ts +22 -0
  54. package/bin/http/auth/AuthError.d.ts.map +1 -0
  55. package/bin/http/auth/AuthError.js +28 -0
  56. package/bin/http/auth/AuthError.js.map +1 -0
  57. package/bin/http/auth/AuthMiddleware.d.ts +36 -0
  58. package/bin/http/auth/AuthMiddleware.d.ts.map +1 -0
  59. package/bin/http/auth/AuthMiddleware.js +37 -0
  60. package/bin/http/auth/AuthMiddleware.js.map +1 -0
  61. package/bin/http/auth/AuthRoutes.d.ts +17 -0
  62. package/bin/http/auth/AuthRoutes.d.ts.map +1 -0
  63. package/bin/http/auth/AuthRoutes.js +78 -0
  64. package/bin/http/auth/AuthRoutes.js.map +1 -0
  65. package/bin/http/auth/AuthService.d.ts +119 -0
  66. package/bin/http/auth/AuthService.d.ts.map +1 -0
  67. package/bin/http/auth/AuthService.js +307 -0
  68. package/bin/http/auth/AuthService.js.map +1 -0
  69. package/bin/http/auth/AuthStore.d.ts +165 -0
  70. package/bin/http/auth/AuthStore.d.ts.map +1 -0
  71. package/bin/http/auth/AuthStore.js +442 -0
  72. package/bin/http/auth/AuthStore.js.map +1 -0
  73. package/bin/http/auth/CliAuthStateStore.d.ts +33 -0
  74. package/bin/http/auth/CliAuthStateStore.d.ts.map +1 -0
  75. package/bin/http/auth/CliAuthStateStore.js +30 -0
  76. package/bin/http/auth/CliAuthStateStore.js.map +1 -0
  77. package/bin/http/auth/PasswordHasher.d.ts +16 -0
  78. package/bin/http/auth/PasswordHasher.d.ts.map +1 -0
  79. package/bin/http/auth/PasswordHasher.js +37 -0
  80. package/bin/http/auth/PasswordHasher.js.map +1 -0
  81. package/bin/http/auth/RoutePolicy.d.ts +30 -0
  82. package/bin/http/auth/RoutePolicy.d.ts.map +1 -0
  83. package/bin/http/auth/RoutePolicy.js +229 -0
  84. package/bin/http/auth/RoutePolicy.js.map +1 -0
  85. package/bin/http/auth/TokenService.d.ts +20 -0
  86. package/bin/http/auth/TokenService.d.ts.map +1 -0
  87. package/bin/http/auth/TokenService.js +34 -0
  88. package/bin/http/auth/TokenService.js.map +1 -0
  89. package/bin/http/dashboard/AuthDashboardService.d.ts +30 -0
  90. package/bin/http/dashboard/AuthDashboardService.d.ts.map +1 -0
  91. package/bin/http/dashboard/AuthDashboardService.js +120 -0
  92. package/bin/http/dashboard/AuthDashboardService.js.map +1 -0
  93. package/bin/http/dashboard/CommonHelpers.d.ts +24 -0
  94. package/bin/http/dashboard/CommonHelpers.d.ts.map +1 -0
  95. package/bin/http/dashboard/CommonHelpers.js +46 -0
  96. package/bin/http/dashboard/CommonHelpers.js.map +1 -0
  97. package/bin/http/dashboard/DashboardApiRoutes.d.ts +13 -0
  98. package/bin/http/dashboard/DashboardApiRoutes.d.ts.map +1 -0
  99. package/bin/http/dashboard/DashboardApiRoutes.js +26 -0
  100. package/bin/http/dashboard/DashboardApiRoutes.js.map +1 -0
  101. package/bin/http/dashboard/DashboardAuthorizationRoutes.d.ts +17 -0
  102. package/bin/http/dashboard/DashboardAuthorizationRoutes.d.ts.map +1 -0
  103. package/bin/http/dashboard/DashboardAuthorizationRoutes.js +78 -0
  104. package/bin/http/dashboard/DashboardAuthorizationRoutes.js.map +1 -0
  105. package/bin/http/dashboard/ExecuteBySession.d.ts +39 -0
  106. package/bin/http/dashboard/ExecuteBySession.d.ts.map +1 -0
  107. package/bin/http/dashboard/ExecuteBySession.js +128 -0
  108. package/bin/http/dashboard/ExecuteBySession.js.map +1 -0
  109. package/bin/http/dashboard/ExecuteInput.d.ts +18 -0
  110. package/bin/http/dashboard/ExecuteInput.d.ts.map +1 -0
  111. package/bin/http/dashboard/ExecuteInput.js +201 -0
  112. package/bin/http/dashboard/ExecuteInput.js.map +1 -0
  113. package/bin/http/dashboard/Helpers.d.ts +13 -0
  114. package/bin/http/dashboard/Helpers.d.ts.map +1 -0
  115. package/bin/http/dashboard/Helpers.js +13 -0
  116. package/bin/http/dashboard/Helpers.js.map +1 -0
  117. package/bin/http/dashboard/MessageTimeline.d.ts +22 -0
  118. package/bin/http/dashboard/MessageTimeline.d.ts.map +1 -0
  119. package/bin/http/dashboard/MessageTimeline.js +226 -0
  120. package/bin/http/dashboard/MessageTimeline.js.map +1 -0
  121. package/bin/http/dashboard/ModelRoutes.d.ts +13 -0
  122. package/bin/http/dashboard/ModelRoutes.d.ts.map +1 -0
  123. package/bin/http/dashboard/ModelRoutes.js +87 -0
  124. package/bin/http/dashboard/ModelRoutes.js.map +1 -0
  125. package/bin/http/dashboard/OverviewRoutes.d.ts +13 -0
  126. package/bin/http/dashboard/OverviewRoutes.d.ts.map +1 -0
  127. package/bin/http/dashboard/OverviewRoutes.js +88 -0
  128. package/bin/http/dashboard/OverviewRoutes.js.map +1 -0
  129. package/bin/http/dashboard/Router.d.ts +14 -0
  130. package/bin/http/dashboard/Router.d.ts.map +1 -0
  131. package/bin/http/dashboard/Router.js +21 -0
  132. package/bin/http/dashboard/Router.js.map +1 -0
  133. package/bin/http/dashboard/SessionRoutes.d.ts +13 -0
  134. package/bin/http/dashboard/SessionRoutes.d.ts.map +1 -0
  135. package/bin/http/dashboard/SessionRoutes.js +315 -0
  136. package/bin/http/dashboard/SessionRoutes.js.map +1 -0
  137. package/bin/http/dashboard/SessionSummaryStore.d.ts +19 -0
  138. package/bin/http/dashboard/SessionSummaryStore.d.ts.map +1 -0
  139. package/bin/http/dashboard/SessionSummaryStore.js +62 -0
  140. package/bin/http/dashboard/SessionSummaryStore.js.map +1 -0
  141. package/bin/http/dashboard/TaskRoutes.d.ts +13 -0
  142. package/bin/http/dashboard/TaskRoutes.d.ts.map +1 -0
  143. package/bin/http/dashboard/TaskRoutes.js +318 -0
  144. package/bin/http/dashboard/TaskRoutes.js.map +1 -0
  145. package/bin/http/dashboard/TaskStore.d.ts +33 -0
  146. package/bin/http/dashboard/TaskStore.d.ts.map +1 -0
  147. package/bin/http/dashboard/TaskStore.js +157 -0
  148. package/bin/http/dashboard/TaskStore.js.map +1 -0
  149. package/bin/http/execute/execute.d.ts +14 -0
  150. package/bin/http/execute/execute.d.ts.map +1 -0
  151. package/bin/http/execute/execute.js +90 -0
  152. package/bin/http/execute/execute.js.map +1 -0
  153. package/bin/http/health/health.d.ts +14 -0
  154. package/bin/http/health/health.d.ts.map +1 -0
  155. package/bin/http/health/health.js +24 -0
  156. package/bin/http/health/health.js.map +1 -0
  157. package/bin/http/plugins/plugins.d.ts +14 -0
  158. package/bin/http/plugins/plugins.d.ts.map +1 -0
  159. package/bin/http/plugins/plugins.js +55 -0
  160. package/bin/http/plugins/plugins.js.map +1 -0
  161. package/bin/http/services/services.d.ts +21 -0
  162. package/bin/http/services/services.d.ts.map +1 -0
  163. package/bin/http/services/services.js +79 -0
  164. package/bin/http/services/services.js.map +1 -0
  165. package/bin/http/static/static.d.ts +14 -0
  166. package/bin/http/static/static.d.ts.map +1 -0
  167. package/bin/http/static/static.js +97 -0
  168. package/bin/http/static/static.js.map +1 -0
  169. package/bin/index.d.ts +20 -0
  170. package/bin/index.d.ts.map +1 -0
  171. package/bin/index.js +26 -0
  172. package/bin/index.js.map +1 -0
  173. package/bin/model/CreateModel.d.ts +30 -0
  174. package/bin/model/CreateModel.d.ts.map +1 -0
  175. package/bin/model/CreateModel.js +295 -0
  176. package/bin/model/CreateModel.js.map +1 -0
  177. package/bin/model/ModelManager.d.ts +71 -0
  178. package/bin/model/ModelManager.d.ts.map +1 -0
  179. package/bin/model/ModelManager.js +187 -0
  180. package/bin/model/ModelManager.js.map +1 -0
  181. package/bin/plugin/Activation.d.ts +15 -0
  182. package/bin/plugin/Activation.d.ts.map +1 -0
  183. package/bin/plugin/Activation.js +20 -0
  184. package/bin/plugin/Activation.js.map +1 -0
  185. package/bin/plugin/Catalog.d.ts +42 -0
  186. package/bin/plugin/Catalog.d.ts.map +1 -0
  187. package/bin/plugin/Catalog.js +92 -0
  188. package/bin/plugin/Catalog.js.map +1 -0
  189. package/bin/plugin/HookRegistry.d.ts +68 -0
  190. package/bin/plugin/HookRegistry.d.ts.map +1 -0
  191. package/bin/plugin/HookRegistry.js +186 -0
  192. package/bin/plugin/HookRegistry.js.map +1 -0
  193. package/bin/plugin/HttpRoutes.d.ts +22 -0
  194. package/bin/plugin/HttpRoutes.d.ts.map +1 -0
  195. package/bin/plugin/HttpRoutes.js +37 -0
  196. package/bin/plugin/HttpRoutes.js.map +1 -0
  197. package/bin/plugin/Lifecycle.d.ts +33 -0
  198. package/bin/plugin/Lifecycle.d.ts.map +1 -0
  199. package/bin/plugin/Lifecycle.js +102 -0
  200. package/bin/plugin/Lifecycle.js.map +1 -0
  201. package/bin/plugin/LocalExecution.d.ts +32 -0
  202. package/bin/plugin/LocalExecution.d.ts.map +1 -0
  203. package/bin/plugin/LocalExecution.js +127 -0
  204. package/bin/plugin/LocalExecution.js.map +1 -0
  205. package/bin/plugin/PluginCommand.d.ts +13 -0
  206. package/bin/plugin/PluginCommand.d.ts.map +1 -0
  207. package/bin/plugin/PluginCommand.js +188 -0
  208. package/bin/plugin/PluginCommand.js.map +1 -0
  209. package/bin/plugin/PluginManager.d.ts +24 -0
  210. package/bin/plugin/PluginManager.d.ts.map +1 -0
  211. package/bin/plugin/PluginManager.js +62 -0
  212. package/bin/plugin/PluginManager.js.map +1 -0
  213. package/bin/plugin/PluginRegistry.d.ts +66 -0
  214. package/bin/plugin/PluginRegistry.d.ts.map +1 -0
  215. package/bin/plugin/PluginRegistry.js +184 -0
  216. package/bin/plugin/PluginRegistry.js.map +1 -0
  217. package/bin/plugin/Plugins.d.ts +20 -0
  218. package/bin/plugin/Plugins.d.ts.map +1 -0
  219. package/bin/plugin/Plugins.js +33 -0
  220. package/bin/plugin/Plugins.js.map +1 -0
  221. package/bin/plugin/ProjectConfigStore.d.ts +30 -0
  222. package/bin/plugin/ProjectConfigStore.d.ts.map +1 -0
  223. package/bin/plugin/ProjectConfigStore.js +38 -0
  224. package/bin/plugin/ProjectConfigStore.js.map +1 -0
  225. package/bin/plugins/asr/Dependency.d.ts +77 -0
  226. package/bin/plugins/asr/Dependency.d.ts.map +1 -0
  227. package/bin/plugins/asr/Dependency.js +238 -0
  228. package/bin/plugins/asr/Dependency.js.map +1 -0
  229. package/bin/plugins/asr/ModelCatalog.d.ts +29 -0
  230. package/bin/plugins/asr/ModelCatalog.d.ts.map +1 -0
  231. package/bin/plugins/asr/ModelCatalog.js +25 -0
  232. package/bin/plugins/asr/ModelCatalog.js.map +1 -0
  233. package/bin/plugins/asr/Plugin.d.ts +14 -0
  234. package/bin/plugins/asr/Plugin.d.ts.map +1 -0
  235. package/bin/plugins/asr/Plugin.js +586 -0
  236. package/bin/plugins/asr/Plugin.js.map +1 -0
  237. package/bin/plugins/auth/Plugin.d.ts +14 -0
  238. package/bin/plugins/auth/Plugin.d.ts.map +1 -0
  239. package/bin/plugins/auth/Plugin.js +180 -0
  240. package/bin/plugins/auth/Plugin.js.map +1 -0
  241. package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts +41 -0
  242. package/bin/plugins/auth/runtime/AuthorizationConfig.d.ts.map +1 -0
  243. package/bin/plugins/auth/runtime/AuthorizationConfig.js +185 -0
  244. package/bin/plugins/auth/runtime/AuthorizationConfig.js.map +1 -0
  245. package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts +28 -0
  246. package/bin/plugins/auth/runtime/AuthorizationPolicy.d.ts.map +1 -0
  247. package/bin/plugins/auth/runtime/AuthorizationPolicy.js +122 -0
  248. package/bin/plugins/auth/runtime/AuthorizationPolicy.js.map +1 -0
  249. package/bin/plugins/auth/runtime/AuthorizationStore.d.ts +29 -0
  250. package/bin/plugins/auth/runtime/AuthorizationStore.d.ts.map +1 -0
  251. package/bin/plugins/auth/runtime/AuthorizationStore.js +179 -0
  252. package/bin/plugins/auth/runtime/AuthorizationStore.js.map +1 -0
  253. package/bin/plugins/skill/Action.d.ts +34 -0
  254. package/bin/plugins/skill/Action.d.ts.map +1 -0
  255. package/bin/plugins/skill/Action.js +122 -0
  256. package/bin/plugins/skill/Action.js.map +1 -0
  257. package/bin/plugins/skill/Command.d.ts +37 -0
  258. package/bin/plugins/skill/Command.d.ts.map +1 -0
  259. package/bin/plugins/skill/Command.js +70 -0
  260. package/bin/plugins/skill/Command.js.map +1 -0
  261. package/bin/plugins/skill/Config.d.ts +18 -0
  262. package/bin/plugins/skill/Config.d.ts.map +1 -0
  263. package/bin/plugins/skill/Config.js +37 -0
  264. package/bin/plugins/skill/Config.js.map +1 -0
  265. package/bin/plugins/skill/PROMPT.txt +10 -0
  266. package/bin/plugins/skill/Plugin.d.ts +14 -0
  267. package/bin/plugins/skill/Plugin.d.ts.map +1 -0
  268. package/bin/plugins/skill/Plugin.js +315 -0
  269. package/bin/plugins/skill/Plugin.js.map +1 -0
  270. package/bin/plugins/skill/runtime/Discovery.d.ts +25 -0
  271. package/bin/plugins/skill/runtime/Discovery.d.ts.map +1 -0
  272. package/bin/plugins/skill/runtime/Discovery.js +130 -0
  273. package/bin/plugins/skill/runtime/Discovery.js.map +1 -0
  274. package/bin/plugins/skill/runtime/Frontmatter.d.ts +6 -0
  275. package/bin/plugins/skill/runtime/Frontmatter.d.ts.map +1 -0
  276. package/bin/plugins/skill/runtime/Frontmatter.js +12 -0
  277. package/bin/plugins/skill/runtime/Frontmatter.js.map +1 -0
  278. package/bin/plugins/skill/runtime/Paths.d.ts +16 -0
  279. package/bin/plugins/skill/runtime/Paths.d.ts.map +1 -0
  280. package/bin/plugins/skill/runtime/Paths.js +111 -0
  281. package/bin/plugins/skill/runtime/Paths.js.map +1 -0
  282. package/bin/plugins/skill/runtime/Prompt.d.ts +19 -0
  283. package/bin/plugins/skill/runtime/Prompt.d.ts.map +1 -0
  284. package/bin/plugins/skill/runtime/Prompt.js +54 -0
  285. package/bin/plugins/skill/runtime/Prompt.js.map +1 -0
  286. package/bin/plugins/skill/runtime/Store.d.ts +25 -0
  287. package/bin/plugins/skill/runtime/Store.d.ts.map +1 -0
  288. package/bin/plugins/skill/runtime/Store.js +81 -0
  289. package/bin/plugins/skill/runtime/Store.js.map +1 -0
  290. package/bin/plugins/skill/runtime/SystemProvider.d.ts +24 -0
  291. package/bin/plugins/skill/runtime/SystemProvider.d.ts.map +1 -0
  292. package/bin/plugins/skill/runtime/SystemProvider.js +33 -0
  293. package/bin/plugins/skill/runtime/SystemProvider.js.map +1 -0
  294. package/bin/plugins/skill/runtime/Types.d.ts +21 -0
  295. package/bin/plugins/skill/runtime/Types.d.ts.map +1 -0
  296. package/bin/plugins/skill/runtime/Types.js +2 -0
  297. package/bin/plugins/skill/runtime/Types.js.map +1 -0
  298. package/bin/plugins/skill/runtime/Utils.d.ts +4 -0
  299. package/bin/plugins/skill/runtime/Utils.d.ts.map +1 -0
  300. package/bin/plugins/skill/runtime/Utils.js +29 -0
  301. package/bin/plugins/skill/runtime/Utils.js.map +1 -0
  302. package/bin/plugins/tts/Dependency.d.ts +90 -0
  303. package/bin/plugins/tts/Dependency.d.ts.map +1 -0
  304. package/bin/plugins/tts/Dependency.js +344 -0
  305. package/bin/plugins/tts/Dependency.js.map +1 -0
  306. package/bin/plugins/tts/Plugin.d.ts +13 -0
  307. package/bin/plugins/tts/Plugin.d.ts.map +1 -0
  308. package/bin/plugins/tts/Plugin.js +524 -0
  309. package/bin/plugins/tts/Plugin.js.map +1 -0
  310. package/bin/plugins/tts/runtime/Catalog.d.ts +21 -0
  311. package/bin/plugins/tts/runtime/Catalog.d.ts.map +1 -0
  312. package/bin/plugins/tts/runtime/Catalog.js +90 -0
  313. package/bin/plugins/tts/runtime/Catalog.js.map +1 -0
  314. package/bin/plugins/tts/runtime/DependencyInstaller.d.ts +143 -0
  315. package/bin/plugins/tts/runtime/DependencyInstaller.d.ts.map +1 -0
  316. package/bin/plugins/tts/runtime/DependencyInstaller.js +261 -0
  317. package/bin/plugins/tts/runtime/DependencyInstaller.js.map +1 -0
  318. package/bin/plugins/tts/runtime/Installer.d.ts +89 -0
  319. package/bin/plugins/tts/runtime/Installer.d.ts.map +1 -0
  320. package/bin/plugins/tts/runtime/Installer.js +188 -0
  321. package/bin/plugins/tts/runtime/Installer.js.map +1 -0
  322. package/bin/plugins/tts/runtime/Paths.d.ts +20 -0
  323. package/bin/plugins/tts/runtime/Paths.d.ts.map +1 -0
  324. package/bin/plugins/tts/runtime/Paths.js +32 -0
  325. package/bin/plugins/tts/runtime/Paths.js.map +1 -0
  326. package/bin/plugins/tts/runtime/Synthesizer.d.ts +44 -0
  327. package/bin/plugins/tts/runtime/Synthesizer.d.ts.map +1 -0
  328. package/bin/plugins/tts/runtime/Synthesizer.js +363 -0
  329. package/bin/plugins/tts/runtime/Synthesizer.js.map +1 -0
  330. package/bin/plugins/voice/Dependency.d.ts +77 -0
  331. package/bin/plugins/voice/Dependency.d.ts.map +1 -0
  332. package/bin/plugins/voice/Dependency.js +237 -0
  333. package/bin/plugins/voice/Dependency.js.map +1 -0
  334. package/bin/plugins/voice/ModelCatalog.d.ts +29 -0
  335. package/bin/plugins/voice/ModelCatalog.d.ts.map +1 -0
  336. package/bin/plugins/voice/ModelCatalog.js +25 -0
  337. package/bin/plugins/voice/ModelCatalog.js.map +1 -0
  338. package/bin/plugins/voice/Plugin.d.ts +14 -0
  339. package/bin/plugins/voice/Plugin.d.ts.map +1 -0
  340. package/bin/plugins/voice/Plugin.js +546 -0
  341. package/bin/plugins/voice/Plugin.js.map +1 -0
  342. package/bin/plugins/voice/runtime/Catalog.d.ts +18 -0
  343. package/bin/plugins/voice/runtime/Catalog.d.ts.map +1 -0
  344. package/bin/plugins/voice/runtime/Catalog.js +61 -0
  345. package/bin/plugins/voice/runtime/Catalog.js.map +1 -0
  346. package/bin/plugins/voice/runtime/DependencyInstaller.d.ts +145 -0
  347. package/bin/plugins/voice/runtime/DependencyInstaller.d.ts.map +1 -0
  348. package/bin/plugins/voice/runtime/DependencyInstaller.js +309 -0
  349. package/bin/plugins/voice/runtime/DependencyInstaller.js.map +1 -0
  350. package/bin/plugins/voice/runtime/Installer.d.ts +94 -0
  351. package/bin/plugins/voice/runtime/Installer.d.ts.map +1 -0
  352. package/bin/plugins/voice/runtime/Installer.js +200 -0
  353. package/bin/plugins/voice/runtime/Installer.js.map +1 -0
  354. package/bin/plugins/voice/runtime/Paths.d.ts +8 -0
  355. package/bin/plugins/voice/runtime/Paths.d.ts.map +1 -0
  356. package/bin/plugins/voice/runtime/Paths.js +26 -0
  357. package/bin/plugins/voice/runtime/Paths.js.map +1 -0
  358. package/bin/plugins/voice/runtime/Transcriber.d.ts +57 -0
  359. package/bin/plugins/voice/runtime/Transcriber.d.ts.map +1 -0
  360. package/bin/plugins/voice/runtime/Transcriber.js +329 -0
  361. package/bin/plugins/voice/runtime/Transcriber.js.map +1 -0
  362. package/bin/plugins/web/Dependency.d.ts +10 -0
  363. package/bin/plugins/web/Dependency.d.ts.map +1 -0
  364. package/bin/plugins/web/Dependency.js +10 -0
  365. package/bin/plugins/web/Dependency.js.map +1 -0
  366. package/bin/plugins/web/PROMPT.agent-browser.txt +17 -0
  367. package/bin/plugins/web/PROMPT.txt +33 -0
  368. package/bin/plugins/web/PROMPT.web-access.txt +13 -0
  369. package/bin/plugins/web/Plugin.d.ts +13 -0
  370. package/bin/plugins/web/Plugin.d.ts.map +1 -0
  371. package/bin/plugins/web/Plugin.js +482 -0
  372. package/bin/plugins/web/Plugin.js.map +1 -0
  373. package/bin/plugins/web/runtime/Config.d.ts +21 -0
  374. package/bin/plugins/web/runtime/Config.d.ts.map +1 -0
  375. package/bin/plugins/web/runtime/Config.js +79 -0
  376. package/bin/plugins/web/runtime/Config.js.map +1 -0
  377. package/bin/plugins/web/runtime/Source.d.ts +29 -0
  378. package/bin/plugins/web/runtime/Source.d.ts.map +1 -0
  379. package/bin/plugins/web/runtime/Source.js +215 -0
  380. package/bin/plugins/web/runtime/Source.js.map +1 -0
  381. package/bin/plugins/workboard/Plugin.d.ts +13 -0
  382. package/bin/plugins/workboard/Plugin.d.ts.map +1 -0
  383. package/bin/plugins/workboard/Plugin.js +71 -0
  384. package/bin/plugins/workboard/Plugin.js.map +1 -0
  385. package/bin/plugins/workboard/runtime/Collector.d.ts +14 -0
  386. package/bin/plugins/workboard/runtime/Collector.d.ts.map +1 -0
  387. package/bin/plugins/workboard/runtime/Collector.js +62 -0
  388. package/bin/plugins/workboard/runtime/Collector.js.map +1 -0
  389. package/bin/plugins/workboard/runtime/Normalizer.d.ts +61 -0
  390. package/bin/plugins/workboard/runtime/Normalizer.d.ts.map +1 -0
  391. package/bin/plugins/workboard/runtime/Normalizer.js +172 -0
  392. package/bin/plugins/workboard/runtime/Normalizer.js.map +1 -0
  393. package/bin/plugins/workboard/runtime/Store.d.ts +48 -0
  394. package/bin/plugins/workboard/runtime/Store.d.ts.map +1 -0
  395. package/bin/plugins/workboard/runtime/Store.js +84 -0
  396. package/bin/plugins/workboard/runtime/Store.js.map +1 -0
  397. package/bin/plugins/workboard/types/Workboard.d.ts +150 -0
  398. package/bin/plugins/workboard/types/Workboard.d.ts.map +1 -0
  399. package/bin/plugins/workboard/types/Workboard.js +9 -0
  400. package/bin/plugins/workboard/types/Workboard.js.map +1 -0
  401. package/bin/rpc/Client.d.ts +13 -0
  402. package/bin/rpc/Client.d.ts.map +1 -0
  403. package/bin/rpc/Client.js +98 -0
  404. package/bin/rpc/Client.js.map +1 -0
  405. package/bin/rpc/Paths.d.ts +14 -0
  406. package/bin/rpc/Paths.d.ts.map +1 -0
  407. package/bin/rpc/Paths.js +36 -0
  408. package/bin/rpc/Paths.js.map +1 -0
  409. package/bin/rpc/Server.d.ts +18 -0
  410. package/bin/rpc/Server.d.ts.map +1 -0
  411. package/bin/rpc/Server.js +307 -0
  412. package/bin/rpc/Server.js.map +1 -0
  413. package/bin/rpc/Transport.d.ts +21 -0
  414. package/bin/rpc/Transport.d.ts.map +1 -0
  415. package/bin/rpc/Transport.js +30 -0
  416. package/bin/rpc/Transport.js.map +1 -0
  417. package/bin/runtime/AgentHostRuntime.d.ts +10 -0
  418. package/bin/runtime/AgentHostRuntime.d.ts.map +1 -0
  419. package/bin/runtime/AgentHostRuntime.js +47 -0
  420. package/bin/runtime/AgentHostRuntime.js.map +1 -0
  421. package/bin/runtime/CityPaths.d.ts +61 -0
  422. package/bin/runtime/CityPaths.d.ts.map +1 -0
  423. package/bin/runtime/CityPaths.js +90 -0
  424. package/bin/runtime/CityPaths.js.map +1 -0
  425. package/bin/runtime/CityRegistry.d.ts +51 -0
  426. package/bin/runtime/CityRegistry.d.ts.map +1 -0
  427. package/bin/runtime/CityRegistry.js +217 -0
  428. package/bin/runtime/CityRegistry.js.map +1 -0
  429. package/bin/runtime/CityRuntime.d.ts +21 -0
  430. package/bin/runtime/CityRuntime.d.ts.map +1 -0
  431. package/bin/runtime/CityRuntime.js +45 -0
  432. package/bin/runtime/CityRuntime.js.map +1 -0
  433. package/bin/runtime/PluginRuntime.d.ts +24 -0
  434. package/bin/runtime/PluginRuntime.d.ts.map +1 -0
  435. package/bin/runtime/PluginRuntime.js +31 -0
  436. package/bin/runtime/PluginRuntime.js.map +1 -0
  437. package/bin/runtime/ProcessSweep.d.ts +76 -0
  438. package/bin/runtime/ProcessSweep.d.ts.map +1 -0
  439. package/bin/runtime/ProcessSweep.js +188 -0
  440. package/bin/runtime/ProcessSweep.js.map +1 -0
  441. package/bin/sandbox/MacOsSeatbeltSandbox.d.ts +16 -0
  442. package/bin/sandbox/MacOsSeatbeltSandbox.d.ts.map +1 -0
  443. package/bin/sandbox/MacOsSeatbeltSandbox.js +152 -0
  444. package/bin/sandbox/MacOsSeatbeltSandbox.js.map +1 -0
  445. package/bin/sandbox/SandboxConfigResolver.d.ts +31 -0
  446. package/bin/sandbox/SandboxConfigResolver.d.ts.map +1 -0
  447. package/bin/sandbox/SandboxConfigResolver.js +113 -0
  448. package/bin/sandbox/SandboxConfigResolver.js.map +1 -0
  449. package/bin/sandbox/SandboxRunner.d.ts +46 -0
  450. package/bin/sandbox/SandboxRunner.d.ts.map +1 -0
  451. package/bin/sandbox/SandboxRunner.js +70 -0
  452. package/bin/sandbox/SandboxRunner.js.map +1 -0
  453. package/bin/service/Manager.d.ts +13 -0
  454. package/bin/service/Manager.d.ts.map +1 -0
  455. package/bin/service/Manager.js +12 -0
  456. package/bin/service/Manager.js.map +1 -0
  457. package/bin/service/ServiceActionApi.d.ts +15 -0
  458. package/bin/service/ServiceActionApi.d.ts.map +1 -0
  459. package/bin/service/ServiceActionApi.js +234 -0
  460. package/bin/service/ServiceActionApi.js.map +1 -0
  461. package/bin/service/ServiceActionRunner.d.ts +44 -0
  462. package/bin/service/ServiceActionRunner.d.ts.map +1 -0
  463. package/bin/service/ServiceActionRunner.js +211 -0
  464. package/bin/service/ServiceActionRunner.js.map +1 -0
  465. package/bin/service/ServiceClassRegistry.d.ts +40 -0
  466. package/bin/service/ServiceClassRegistry.d.ts.map +1 -0
  467. package/bin/service/ServiceClassRegistry.js +64 -0
  468. package/bin/service/ServiceClassRegistry.js.map +1 -0
  469. package/bin/service/ServiceManager.d.ts +9 -0
  470. package/bin/service/ServiceManager.d.ts.map +1 -0
  471. package/bin/service/ServiceManager.js +9 -0
  472. package/bin/service/ServiceManager.js.map +1 -0
  473. package/bin/service/ServiceStateController.d.ts +79 -0
  474. package/bin/service/ServiceStateController.d.ts.map +1 -0
  475. package/bin/service/ServiceStateController.js +245 -0
  476. package/bin/service/ServiceStateController.js.map +1 -0
  477. package/bin/service/ServiceSystemProviders.d.ts +27 -0
  478. package/bin/service/ServiceSystemProviders.d.ts.map +1 -0
  479. package/bin/service/ServiceSystemProviders.js +34 -0
  480. package/bin/service/ServiceSystemProviders.js.map +1 -0
  481. package/bin/service/Services.d.ts +18 -0
  482. package/bin/service/Services.d.ts.map +1 -0
  483. package/bin/service/Services.js +23 -0
  484. package/bin/service/Services.js.map +1 -0
  485. package/bin/service/schedule/Executor.d.ts +17 -0
  486. package/bin/service/schedule/Executor.d.ts.map +1 -0
  487. package/bin/service/schedule/Executor.js +48 -0
  488. package/bin/service/schedule/Executor.js.map +1 -0
  489. package/bin/service/schedule/Runtime.d.ts +17 -0
  490. package/bin/service/schedule/Runtime.d.ts.map +1 -0
  491. package/bin/service/schedule/Runtime.js +64 -0
  492. package/bin/service/schedule/Runtime.js.map +1 -0
  493. package/bin/service/schedule/Schema.d.ts +171 -0
  494. package/bin/service/schedule/Schema.d.ts.map +1 -0
  495. package/bin/service/schedule/Schema.js +26 -0
  496. package/bin/service/schedule/Schema.js.map +1 -0
  497. package/bin/service/schedule/Store.d.ts +94 -0
  498. package/bin/service/schedule/Store.d.ts.map +1 -0
  499. package/bin/service/schedule/Store.js +266 -0
  500. package/bin/service/schedule/Store.js.map +1 -0
  501. package/bin/service/schedule/Time.d.ts +31 -0
  502. package/bin/service/schedule/Time.d.ts.map +1 -0
  503. package/bin/service/schedule/Time.js +107 -0
  504. package/bin/service/schedule/Time.js.map +1 -0
  505. package/bin/services/BaseService.d.ts +62 -0
  506. package/bin/services/BaseService.d.ts.map +1 -0
  507. package/bin/services/BaseService.js +56 -0
  508. package/bin/services/BaseService.js.map +1 -0
  509. package/bin/services/chat/Action.d.ts +125 -0
  510. package/bin/services/chat/Action.d.ts.map +1 -0
  511. package/bin/services/chat/Action.js +376 -0
  512. package/bin/services/chat/Action.js.map +1 -0
  513. package/bin/services/chat/ChatService.d.ts +63 -0
  514. package/bin/services/chat/ChatService.d.ts.map +1 -0
  515. package/bin/services/chat/ChatService.js +96 -0
  516. package/bin/services/chat/ChatService.js.map +1 -0
  517. package/bin/services/chat/Index.d.ts +9 -0
  518. package/bin/services/chat/Index.d.ts.map +1 -0
  519. package/bin/services/chat/Index.js +9 -0
  520. package/bin/services/chat/Index.js.map +1 -0
  521. package/bin/services/chat/PROMPT.direct.txt +55 -0
  522. package/bin/services/chat/channels/BaseChatChannel.d.ts +197 -0
  523. package/bin/services/chat/channels/BaseChatChannel.d.ts.map +1 -0
  524. package/bin/services/chat/channels/BaseChatChannel.js +278 -0
  525. package/bin/services/chat/channels/BaseChatChannel.js.map +1 -0
  526. package/bin/services/chat/channels/BaseChatChannelQueue.d.ts +73 -0
  527. package/bin/services/chat/channels/BaseChatChannelQueue.d.ts.map +1 -0
  528. package/bin/services/chat/channels/BaseChatChannelQueue.js +238 -0
  529. package/bin/services/chat/channels/BaseChatChannelQueue.js.map +1 -0
  530. package/bin/services/chat/channels/BaseChatChannelSupport.d.ts +189 -0
  531. package/bin/services/chat/channels/BaseChatChannelSupport.d.ts.map +1 -0
  532. package/bin/services/chat/channels/BaseChatChannelSupport.js +141 -0
  533. package/bin/services/chat/channels/BaseChatChannelSupport.js.map +1 -0
  534. package/bin/services/chat/channels/BotInfoProvider.d.ts +18 -0
  535. package/bin/services/chat/channels/BotInfoProvider.d.ts.map +1 -0
  536. package/bin/services/chat/channels/BotInfoProvider.js +32 -0
  537. package/bin/services/chat/channels/BotInfoProvider.js.map +1 -0
  538. package/bin/services/chat/channels/Configuration.d.ts +27 -0
  539. package/bin/services/chat/channels/Configuration.d.ts.map +1 -0
  540. package/bin/services/chat/channels/Configuration.js +19 -0
  541. package/bin/services/chat/channels/Configuration.js.map +1 -0
  542. package/bin/services/chat/channels/ConfigurationRegistry.d.ts +18 -0
  543. package/bin/services/chat/channels/ConfigurationRegistry.d.ts.map +1 -0
  544. package/bin/services/chat/channels/ConfigurationRegistry.js +31 -0
  545. package/bin/services/chat/channels/ConfigurationRegistry.js.map +1 -0
  546. package/bin/services/chat/channels/feishu/BotInfo.d.ts +20 -0
  547. package/bin/services/chat/channels/feishu/BotInfo.d.ts.map +1 -0
  548. package/bin/services/chat/channels/feishu/BotInfo.js +147 -0
  549. package/bin/services/chat/channels/feishu/BotInfo.js.map +1 -0
  550. package/bin/services/chat/channels/feishu/Configuration.d.ts +17 -0
  551. package/bin/services/chat/channels/feishu/Configuration.d.ts.map +1 -0
  552. package/bin/services/chat/channels/feishu/Configuration.js +59 -0
  553. package/bin/services/chat/channels/feishu/Configuration.js.map +1 -0
  554. package/bin/services/chat/channels/feishu/Feishu.d.ts +116 -0
  555. package/bin/services/chat/channels/feishu/Feishu.d.ts.map +1 -0
  556. package/bin/services/chat/channels/feishu/Feishu.js +454 -0
  557. package/bin/services/chat/channels/feishu/Feishu.js.map +1 -0
  558. package/bin/services/chat/channels/feishu/FeishuInbound.d.ts +21 -0
  559. package/bin/services/chat/channels/feishu/FeishuInbound.d.ts.map +1 -0
  560. package/bin/services/chat/channels/feishu/FeishuInbound.js +43 -0
  561. package/bin/services/chat/channels/feishu/FeishuInbound.js.map +1 -0
  562. package/bin/services/chat/channels/feishu/FeishuPlatformClient.d.ts +130 -0
  563. package/bin/services/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -0
  564. package/bin/services/chat/channels/feishu/FeishuPlatformClient.js +316 -0
  565. package/bin/services/chat/channels/feishu/FeishuPlatformClient.js.map +1 -0
  566. package/bin/services/chat/channels/feishu/FeishuPlatformLookup.d.ts +102 -0
  567. package/bin/services/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -0
  568. package/bin/services/chat/channels/feishu/FeishuPlatformLookup.js +299 -0
  569. package/bin/services/chat/channels/feishu/FeishuPlatformLookup.js.map +1 -0
  570. package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.d.ts +49 -0
  571. package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +1 -0
  572. package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.js +139 -0
  573. package/bin/services/chat/channels/feishu/FeishuPlatformMessaging.js.map +1 -0
  574. package/bin/services/chat/channels/feishu/InboundAttachment.d.ts +31 -0
  575. package/bin/services/chat/channels/feishu/InboundAttachment.d.ts.map +1 -0
  576. package/bin/services/chat/channels/feishu/InboundAttachment.js +222 -0
  577. package/bin/services/chat/channels/feishu/InboundAttachment.js.map +1 -0
  578. package/bin/services/chat/channels/feishu/PROMPT.direct.txt +5 -0
  579. package/bin/services/chat/channels/feishu/PostMessage.d.ts +48 -0
  580. package/bin/services/chat/channels/feishu/PostMessage.d.ts.map +1 -0
  581. package/bin/services/chat/channels/feishu/PostMessage.js +413 -0
  582. package/bin/services/chat/channels/feishu/PostMessage.js.map +1 -0
  583. package/bin/services/chat/channels/feishu/ReplyContext.d.ts +18 -0
  584. package/bin/services/chat/channels/feishu/ReplyContext.d.ts.map +1 -0
  585. package/bin/services/chat/channels/feishu/ReplyContext.js +56 -0
  586. package/bin/services/chat/channels/feishu/ReplyContext.js.map +1 -0
  587. package/bin/services/chat/channels/feishu/Shared.d.ts +21 -0
  588. package/bin/services/chat/channels/feishu/Shared.d.ts.map +1 -0
  589. package/bin/services/chat/channels/feishu/Shared.js +69 -0
  590. package/bin/services/chat/channels/feishu/Shared.js.map +1 -0
  591. package/bin/services/chat/channels/qq/BotInfo.d.ts +19 -0
  592. package/bin/services/chat/channels/qq/BotInfo.d.ts.map +1 -0
  593. package/bin/services/chat/channels/qq/BotInfo.js +112 -0
  594. package/bin/services/chat/channels/qq/BotInfo.js.map +1 -0
  595. package/bin/services/chat/channels/qq/Configuration.d.ts +17 -0
  596. package/bin/services/chat/channels/qq/Configuration.d.ts.map +1 -0
  597. package/bin/services/chat/channels/qq/Configuration.js +59 -0
  598. package/bin/services/chat/channels/qq/Configuration.js.map +1 -0
  599. package/bin/services/chat/channels/qq/PROMPT.direct.txt +11 -0
  600. package/bin/services/chat/channels/qq/QQ.d.ts +92 -0
  601. package/bin/services/chat/channels/qq/QQ.d.ts.map +1 -0
  602. package/bin/services/chat/channels/qq/QQ.js +481 -0
  603. package/bin/services/chat/channels/qq/QQ.js.map +1 -0
  604. package/bin/services/chat/channels/qq/QQEventCapture.d.ts +22 -0
  605. package/bin/services/chat/channels/qq/QQEventCapture.d.ts.map +1 -0
  606. package/bin/services/chat/channels/qq/QQEventCapture.js +67 -0
  607. package/bin/services/chat/channels/qq/QQEventCapture.js.map +1 -0
  608. package/bin/services/chat/channels/qq/QQGatewayAuth.d.ts +119 -0
  609. package/bin/services/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -0
  610. package/bin/services/chat/channels/qq/QQGatewayAuth.js +186 -0
  611. package/bin/services/chat/channels/qq/QQGatewayAuth.js.map +1 -0
  612. package/bin/services/chat/channels/qq/QQGatewayClient.d.ts +179 -0
  613. package/bin/services/chat/channels/qq/QQGatewayClient.d.ts.map +1 -0
  614. package/bin/services/chat/channels/qq/QQGatewayClient.js +540 -0
  615. package/bin/services/chat/channels/qq/QQGatewayClient.js.map +1 -0
  616. package/bin/services/chat/channels/qq/QQGatewaySend.d.ts +84 -0
  617. package/bin/services/chat/channels/qq/QQGatewaySend.d.ts.map +1 -0
  618. package/bin/services/chat/channels/qq/QQGatewaySend.js +120 -0
  619. package/bin/services/chat/channels/qq/QQGatewaySend.js.map +1 -0
  620. package/bin/services/chat/channels/qq/QQGatewaySupport.d.ts +39 -0
  621. package/bin/services/chat/channels/qq/QQGatewaySupport.d.ts.map +1 -0
  622. package/bin/services/chat/channels/qq/QQGatewaySupport.js +137 -0
  623. package/bin/services/chat/channels/qq/QQGatewaySupport.js.map +1 -0
  624. package/bin/services/chat/channels/qq/QQInbound.d.ts +47 -0
  625. package/bin/services/chat/channels/qq/QQInbound.d.ts.map +1 -0
  626. package/bin/services/chat/channels/qq/QQInbound.js +235 -0
  627. package/bin/services/chat/channels/qq/QQInbound.js.map +1 -0
  628. package/bin/services/chat/channels/qq/QQInboundDedupe.d.ts +48 -0
  629. package/bin/services/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -0
  630. package/bin/services/chat/channels/qq/QQInboundDedupe.js +108 -0
  631. package/bin/services/chat/channels/qq/QQInboundDedupe.js.map +1 -0
  632. package/bin/services/chat/channels/qq/QQSendSupport.d.ts +20 -0
  633. package/bin/services/chat/channels/qq/QQSendSupport.d.ts.map +1 -0
  634. package/bin/services/chat/channels/qq/QQSendSupport.js +86 -0
  635. package/bin/services/chat/channels/qq/QQSendSupport.js.map +1 -0
  636. package/bin/services/chat/channels/qq/QQSupport.d.ts +102 -0
  637. package/bin/services/chat/channels/qq/QQSupport.d.ts.map +1 -0
  638. package/bin/services/chat/channels/qq/QQSupport.js +172 -0
  639. package/bin/services/chat/channels/qq/QQSupport.js.map +1 -0
  640. package/bin/services/chat/channels/qq/VoiceInput.d.ts +64 -0
  641. package/bin/services/chat/channels/qq/VoiceInput.d.ts.map +1 -0
  642. package/bin/services/chat/channels/qq/VoiceInput.js +299 -0
  643. package/bin/services/chat/channels/qq/VoiceInput.js.map +1 -0
  644. package/bin/services/chat/channels/telegram/ApiClient.d.ts +99 -0
  645. package/bin/services/chat/channels/telegram/ApiClient.d.ts.map +1 -0
  646. package/bin/services/chat/channels/telegram/ApiClient.js +306 -0
  647. package/bin/services/chat/channels/telegram/ApiClient.js.map +1 -0
  648. package/bin/services/chat/channels/telegram/Bot.d.ts +97 -0
  649. package/bin/services/chat/channels/telegram/Bot.d.ts.map +1 -0
  650. package/bin/services/chat/channels/telegram/Bot.js +500 -0
  651. package/bin/services/chat/channels/telegram/Bot.js.map +1 -0
  652. package/bin/services/chat/channels/telegram/BotInfo.d.ts +19 -0
  653. package/bin/services/chat/channels/telegram/BotInfo.d.ts.map +1 -0
  654. package/bin/services/chat/channels/telegram/BotInfo.js +71 -0
  655. package/bin/services/chat/channels/telegram/BotInfo.js.map +1 -0
  656. package/bin/services/chat/channels/telegram/Configuration.d.ts +17 -0
  657. package/bin/services/chat/channels/telegram/Configuration.d.ts.map +1 -0
  658. package/bin/services/chat/channels/telegram/Configuration.js +59 -0
  659. package/bin/services/chat/channels/telegram/Configuration.js.map +1 -0
  660. package/bin/services/chat/channels/telegram/Handlers.d.ts +42 -0
  661. package/bin/services/chat/channels/telegram/Handlers.d.ts.map +1 -0
  662. package/bin/services/chat/channels/telegram/Handlers.js +45 -0
  663. package/bin/services/chat/channels/telegram/Handlers.js.map +1 -0
  664. package/bin/services/chat/channels/telegram/PROMPT.direct.txt +1 -0
  665. package/bin/services/chat/channels/telegram/ReplyContext.d.ts +14 -0
  666. package/bin/services/chat/channels/telegram/ReplyContext.d.ts.map +1 -0
  667. package/bin/services/chat/channels/telegram/ReplyContext.js +57 -0
  668. package/bin/services/chat/channels/telegram/ReplyContext.js.map +1 -0
  669. package/bin/services/chat/channels/telegram/Shared.d.ts +221 -0
  670. package/bin/services/chat/channels/telegram/Shared.d.ts.map +1 -0
  671. package/bin/services/chat/channels/telegram/Shared.js +171 -0
  672. package/bin/services/chat/channels/telegram/Shared.js.map +1 -0
  673. package/bin/services/chat/channels/telegram/StateStore.d.ts +27 -0
  674. package/bin/services/chat/channels/telegram/StateStore.d.ts.map +1 -0
  675. package/bin/services/chat/channels/telegram/StateStore.js +53 -0
  676. package/bin/services/chat/channels/telegram/StateStore.js.map +1 -0
  677. package/bin/services/chat/channels/telegram/TelegramInbound.d.ts +46 -0
  678. package/bin/services/chat/channels/telegram/TelegramInbound.d.ts.map +1 -0
  679. package/bin/services/chat/channels/telegram/TelegramInbound.js +148 -0
  680. package/bin/services/chat/channels/telegram/TelegramInbound.js.map +1 -0
  681. package/bin/services/chat/channels/telegram/TelegramPlatformClient.d.ts +161 -0
  682. package/bin/services/chat/channels/telegram/TelegramPlatformClient.d.ts.map +1 -0
  683. package/bin/services/chat/channels/telegram/TelegramPlatformClient.js +366 -0
  684. package/bin/services/chat/channels/telegram/TelegramPlatformClient.js.map +1 -0
  685. package/bin/services/chat/runtime/ChannelContextStore.d.ts +78 -0
  686. package/bin/services/chat/runtime/ChannelContextStore.d.ts.map +1 -0
  687. package/bin/services/chat/runtime/ChannelContextStore.js +336 -0
  688. package/bin/services/chat/runtime/ChannelContextStore.js.map +1 -0
  689. package/bin/services/chat/runtime/ChatActionExecution.d.ts +145 -0
  690. package/bin/services/chat/runtime/ChatActionExecution.d.ts.map +1 -0
  691. package/bin/services/chat/runtime/ChatActionExecution.js +287 -0
  692. package/bin/services/chat/runtime/ChatActionExecution.js.map +1 -0
  693. package/bin/services/chat/runtime/ChatActionInput.d.ts +63 -0
  694. package/bin/services/chat/runtime/ChatActionInput.d.ts.map +1 -0
  695. package/bin/services/chat/runtime/ChatActionInput.js +458 -0
  696. package/bin/services/chat/runtime/ChatActionInput.js.map +1 -0
  697. package/bin/services/chat/runtime/ChatChannelActions.d.ts +122 -0
  698. package/bin/services/chat/runtime/ChatChannelActions.d.ts.map +1 -0
  699. package/bin/services/chat/runtime/ChatChannelActions.js +237 -0
  700. package/bin/services/chat/runtime/ChatChannelActions.js.map +1 -0
  701. package/bin/services/chat/runtime/ChatChannelConfig.d.ts +61 -0
  702. package/bin/services/chat/runtime/ChatChannelConfig.d.ts.map +1 -0
  703. package/bin/services/chat/runtime/ChatChannelConfig.js +265 -0
  704. package/bin/services/chat/runtime/ChatChannelConfig.js.map +1 -0
  705. package/bin/services/chat/runtime/ChatChannelCore.d.ts +41 -0
  706. package/bin/services/chat/runtime/ChatChannelCore.d.ts.map +1 -0
  707. package/bin/services/chat/runtime/ChatChannelCore.js +92 -0
  708. package/bin/services/chat/runtime/ChatChannelCore.js.map +1 -0
  709. package/bin/services/chat/runtime/ChatChannelFacade.d.ts +12 -0
  710. package/bin/services/chat/runtime/ChatChannelFacade.d.ts.map +1 -0
  711. package/bin/services/chat/runtime/ChatChannelFacade.js +12 -0
  712. package/bin/services/chat/runtime/ChatChannelFacade.js.map +1 -0
  713. package/bin/services/chat/runtime/ChatChannelLifecycle.d.ts +28 -0
  714. package/bin/services/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -0
  715. package/bin/services/chat/runtime/ChatChannelLifecycle.js +132 -0
  716. package/bin/services/chat/runtime/ChatChannelLifecycle.js.map +1 -0
  717. package/bin/services/chat/runtime/ChatHistoryStore.d.ts +72 -0
  718. package/bin/services/chat/runtime/ChatHistoryStore.d.ts.map +1 -0
  719. package/bin/services/chat/runtime/ChatHistoryStore.js +219 -0
  720. package/bin/services/chat/runtime/ChatHistoryStore.js.map +1 -0
  721. package/bin/services/chat/runtime/ChatIngressStore.d.ts +52 -0
  722. package/bin/services/chat/runtime/ChatIngressStore.d.ts.map +1 -0
  723. package/bin/services/chat/runtime/ChatIngressStore.js +65 -0
  724. package/bin/services/chat/runtime/ChatIngressStore.js.map +1 -0
  725. package/bin/services/chat/runtime/ChatMessageMarkup.d.ts +54 -0
  726. package/bin/services/chat/runtime/ChatMessageMarkup.d.ts.map +1 -0
  727. package/bin/services/chat/runtime/ChatMessageMarkup.js +233 -0
  728. package/bin/services/chat/runtime/ChatMessageMarkup.js.map +1 -0
  729. package/bin/services/chat/runtime/ChatMetaStore.d.ts +68 -0
  730. package/bin/services/chat/runtime/ChatMetaStore.d.ts.map +1 -0
  731. package/bin/services/chat/runtime/ChatMetaStore.js +143 -0
  732. package/bin/services/chat/runtime/ChatMetaStore.js.map +1 -0
  733. package/bin/services/chat/runtime/ChatQueue.d.ts +40 -0
  734. package/bin/services/chat/runtime/ChatQueue.d.ts.map +1 -0
  735. package/bin/services/chat/runtime/ChatQueue.js +52 -0
  736. package/bin/services/chat/runtime/ChatQueue.js.map +1 -0
  737. package/bin/services/chat/runtime/ChatQueueReplyDispatch.d.ts +31 -0
  738. package/bin/services/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -0
  739. package/bin/services/chat/runtime/ChatQueueReplyDispatch.js +168 -0
  740. package/bin/services/chat/runtime/ChatQueueReplyDispatch.js.map +1 -0
  741. package/bin/services/chat/runtime/ChatQueueSessionBridge.d.ts +55 -0
  742. package/bin/services/chat/runtime/ChatQueueSessionBridge.d.ts.map +1 -0
  743. package/bin/services/chat/runtime/ChatQueueSessionBridge.js +98 -0
  744. package/bin/services/chat/runtime/ChatQueueSessionBridge.js.map +1 -0
  745. package/bin/services/chat/runtime/ChatQueueStore.d.ts +85 -0
  746. package/bin/services/chat/runtime/ChatQueueStore.d.ts.map +1 -0
  747. package/bin/services/chat/runtime/ChatQueueStore.js +130 -0
  748. package/bin/services/chat/runtime/ChatQueueStore.js.map +1 -0
  749. package/bin/services/chat/runtime/ChatQueueWorker.d.ts +88 -0
  750. package/bin/services/chat/runtime/ChatQueueWorker.d.ts.map +1 -0
  751. package/bin/services/chat/runtime/ChatQueueWorker.js +435 -0
  752. package/bin/services/chat/runtime/ChatQueueWorker.js.map +1 -0
  753. package/bin/services/chat/runtime/ChatQueueWorkerSupport.d.ts +36 -0
  754. package/bin/services/chat/runtime/ChatQueueWorkerSupport.d.ts.map +1 -0
  755. package/bin/services/chat/runtime/ChatQueueWorkerSupport.js +101 -0
  756. package/bin/services/chat/runtime/ChatQueueWorkerSupport.js.map +1 -0
  757. package/bin/services/chat/runtime/ChatSendMetadata.d.ts +20 -0
  758. package/bin/services/chat/runtime/ChatSendMetadata.d.ts.map +1 -0
  759. package/bin/services/chat/runtime/ChatSendMetadata.js +130 -0
  760. package/bin/services/chat/runtime/ChatSendMetadata.js.map +1 -0
  761. package/bin/services/chat/runtime/ChatSendRegistry.d.ts +27 -0
  762. package/bin/services/chat/runtime/ChatSendRegistry.d.ts.map +1 -0
  763. package/bin/services/chat/runtime/ChatSendRegistry.js +26 -0
  764. package/bin/services/chat/runtime/ChatSendRegistry.js.map +1 -0
  765. package/bin/services/chat/runtime/ChatServiceActions.d.ts +17 -0
  766. package/bin/services/chat/runtime/ChatServiceActions.d.ts.map +1 -0
  767. package/bin/services/chat/runtime/ChatServiceActions.js +411 -0
  768. package/bin/services/chat/runtime/ChatServiceActions.js.map +1 -0
  769. package/bin/services/chat/runtime/ChatServiceSystem.d.ts +22 -0
  770. package/bin/services/chat/runtime/ChatServiceSystem.d.ts.map +1 -0
  771. package/bin/services/chat/runtime/ChatServiceSystem.js +87 -0
  772. package/bin/services/chat/runtime/ChatServiceSystem.js.map +1 -0
  773. package/bin/services/chat/runtime/ChatSession.d.ts +73 -0
  774. package/bin/services/chat/runtime/ChatSession.d.ts.map +1 -0
  775. package/bin/services/chat/runtime/ChatSession.js +78 -0
  776. package/bin/services/chat/runtime/ChatSession.js.map +1 -0
  777. package/bin/services/chat/runtime/ChatSessionDelete.d.ts +29 -0
  778. package/bin/services/chat/runtime/ChatSessionDelete.d.ts.map +1 -0
  779. package/bin/services/chat/runtime/ChatSessionDelete.js +76 -0
  780. package/bin/services/chat/runtime/ChatSessionDelete.js.map +1 -0
  781. package/bin/services/chat/runtime/ChatSessionExecutionComposer.d.ts +45 -0
  782. package/bin/services/chat/runtime/ChatSessionExecutionComposer.d.ts.map +1 -0
  783. package/bin/services/chat/runtime/ChatSessionExecutionComposer.js +60 -0
  784. package/bin/services/chat/runtime/ChatSessionExecutionComposer.js.map +1 -0
  785. package/bin/services/chat/runtime/ChatkeySend.d.ts +67 -0
  786. package/bin/services/chat/runtime/ChatkeySend.d.ts.map +1 -0
  787. package/bin/services/chat/runtime/ChatkeySend.js +147 -0
  788. package/bin/services/chat/runtime/ChatkeySend.js.map +1 -0
  789. package/bin/services/chat/runtime/DirectDispatchParser.d.ts +22 -0
  790. package/bin/services/chat/runtime/DirectDispatchParser.d.ts.map +1 -0
  791. package/bin/services/chat/runtime/DirectDispatchParser.js +133 -0
  792. package/bin/services/chat/runtime/DirectDispatchParser.js.map +1 -0
  793. package/bin/services/chat/runtime/EnqueueDispatch.d.ts +24 -0
  794. package/bin/services/chat/runtime/EnqueueDispatch.d.ts.map +1 -0
  795. package/bin/services/chat/runtime/EnqueueDispatch.js +28 -0
  796. package/bin/services/chat/runtime/EnqueueDispatch.js.map +1 -0
  797. package/bin/services/chat/runtime/InboundAugment.d.ts +21 -0
  798. package/bin/services/chat/runtime/InboundAugment.d.ts.map +1 -0
  799. package/bin/services/chat/runtime/InboundAugment.js +50 -0
  800. package/bin/services/chat/runtime/InboundAugment.js.map +1 -0
  801. package/bin/services/chat/runtime/PluginDispatch.d.ts +43 -0
  802. package/bin/services/chat/runtime/PluginDispatch.d.ts.map +1 -0
  803. package/bin/services/chat/runtime/PluginDispatch.js +57 -0
  804. package/bin/services/chat/runtime/PluginDispatch.js.map +1 -0
  805. package/bin/services/chat/runtime/PluginPoints.d.ts +78 -0
  806. package/bin/services/chat/runtime/PluginPoints.d.ts.map +1 -0
  807. package/bin/services/chat/runtime/PluginPoints.js +78 -0
  808. package/bin/services/chat/runtime/PluginPoints.js.map +1 -0
  809. package/bin/services/chat/runtime/QueuedUserMessage.d.ts +20 -0
  810. package/bin/services/chat/runtime/QueuedUserMessage.d.ts.map +1 -0
  811. package/bin/services/chat/runtime/QueuedUserMessage.js +40 -0
  812. package/bin/services/chat/runtime/QueuedUserMessage.js.map +1 -0
  813. package/bin/services/chat/runtime/ReplyContextFormatter.d.ts +29 -0
  814. package/bin/services/chat/runtime/ReplyContextFormatter.d.ts.map +1 -0
  815. package/bin/services/chat/runtime/ReplyContextFormatter.js +74 -0
  816. package/bin/services/chat/runtime/ReplyContextFormatter.js.map +1 -0
  817. package/bin/services/chat/runtime/ReplyDispatch.d.ts +36 -0
  818. package/bin/services/chat/runtime/ReplyDispatch.d.ts.map +1 -0
  819. package/bin/services/chat/runtime/ReplyDispatch.js +51 -0
  820. package/bin/services/chat/runtime/ReplyDispatch.js.map +1 -0
  821. package/bin/services/chat/runtime/SystemPrompt.d.ts +26 -0
  822. package/bin/services/chat/runtime/SystemPrompt.d.ts.map +1 -0
  823. package/bin/services/chat/runtime/SystemPrompt.js +70 -0
  824. package/bin/services/chat/runtime/SystemPrompt.js.map +1 -0
  825. package/bin/services/chat/runtime/UIMessageTransformer.d.ts +24 -0
  826. package/bin/services/chat/runtime/UIMessageTransformer.d.ts.map +1 -0
  827. package/bin/services/chat/runtime/UIMessageTransformer.js +102 -0
  828. package/bin/services/chat/runtime/UIMessageTransformer.js.map +1 -0
  829. package/bin/services/chat/runtime/UserVisibleText.d.ts +34 -0
  830. package/bin/services/chat/runtime/UserVisibleText.d.ts.map +1 -0
  831. package/bin/services/chat/runtime/UserVisibleText.js +73 -0
  832. package/bin/services/chat/runtime/UserVisibleText.js.map +1 -0
  833. package/bin/services/chat/types/BotInfo.d.ts +97 -0
  834. package/bin/services/chat/types/BotInfo.d.ts.map +1 -0
  835. package/bin/services/chat/types/BotInfo.js +9 -0
  836. package/bin/services/chat/types/BotInfo.js.map +1 -0
  837. package/bin/services/chat/types/ChannelConfiguration.d.ts +146 -0
  838. package/bin/services/chat/types/ChannelConfiguration.d.ts.map +1 -0
  839. package/bin/services/chat/types/ChannelConfiguration.js +9 -0
  840. package/bin/services/chat/types/ChannelConfiguration.js.map +1 -0
  841. package/bin/services/chat/types/ChannelContext.d.ts +107 -0
  842. package/bin/services/chat/types/ChannelContext.d.ts.map +1 -0
  843. package/bin/services/chat/types/ChannelContext.js +9 -0
  844. package/bin/services/chat/types/ChannelContext.js.map +1 -0
  845. package/bin/services/chat/types/ChannelStatus.d.ts +88 -0
  846. package/bin/services/chat/types/ChannelStatus.d.ts.map +1 -0
  847. package/bin/services/chat/types/ChannelStatus.js +9 -0
  848. package/bin/services/chat/types/ChannelStatus.js.map +1 -0
  849. package/bin/services/chat/types/ChatCommand.d.ts +163 -0
  850. package/bin/services/chat/types/ChatCommand.d.ts.map +1 -0
  851. package/bin/services/chat/types/ChatCommand.js +9 -0
  852. package/bin/services/chat/types/ChatCommand.js.map +1 -0
  853. package/bin/services/chat/types/ChatDispatcher.d.ts +37 -0
  854. package/bin/services/chat/types/ChatDispatcher.d.ts.map +1 -0
  855. package/bin/services/chat/types/ChatDispatcher.js +9 -0
  856. package/bin/services/chat/types/ChatDispatcher.js.map +1 -0
  857. package/bin/services/chat/types/ChatHistory.d.ts +36 -0
  858. package/bin/services/chat/types/ChatHistory.d.ts.map +1 -0
  859. package/bin/services/chat/types/ChatHistory.js +9 -0
  860. package/bin/services/chat/types/ChatHistory.js.map +1 -0
  861. package/bin/services/chat/types/ChatMessageMarkup.d.ts +144 -0
  862. package/bin/services/chat/types/ChatMessageMarkup.d.ts.map +1 -0
  863. package/bin/services/chat/types/ChatMessageMarkup.js +9 -0
  864. package/bin/services/chat/types/ChatMessageMarkup.js.map +1 -0
  865. package/bin/services/chat/types/ChatMeta.d.ts +34 -0
  866. package/bin/services/chat/types/ChatMeta.d.ts.map +1 -0
  867. package/bin/services/chat/types/ChatMeta.js +10 -0
  868. package/bin/services/chat/types/ChatMeta.js.map +1 -0
  869. package/bin/services/chat/types/ChatQueue.d.ts +44 -0
  870. package/bin/services/chat/types/ChatQueue.d.ts.map +1 -0
  871. package/bin/services/chat/types/ChatQueue.js +9 -0
  872. package/bin/services/chat/types/ChatQueue.js.map +1 -0
  873. package/bin/services/chat/types/DirectDispatch.d.ts +115 -0
  874. package/bin/services/chat/types/DirectDispatch.d.ts.map +1 -0
  875. package/bin/services/chat/types/DirectDispatch.js +9 -0
  876. package/bin/services/chat/types/DirectDispatch.js.map +1 -0
  877. package/bin/services/chat/types/FeishuAttachment.d.ts +42 -0
  878. package/bin/services/chat/types/FeishuAttachment.d.ts.map +1 -0
  879. package/bin/services/chat/types/FeishuAttachment.js +9 -0
  880. package/bin/services/chat/types/FeishuAttachment.js.map +1 -0
  881. package/bin/services/chat/types/FeishuInboundAttachment.d.ts +114 -0
  882. package/bin/services/chat/types/FeishuInboundAttachment.d.ts.map +1 -0
  883. package/bin/services/chat/types/FeishuInboundAttachment.js +9 -0
  884. package/bin/services/chat/types/FeishuInboundAttachment.js.map +1 -0
  885. package/bin/services/chat/types/FeishuPost.d.ts +287 -0
  886. package/bin/services/chat/types/FeishuPost.d.ts.map +1 -0
  887. package/bin/services/chat/types/FeishuPost.js +9 -0
  888. package/bin/services/chat/types/FeishuPost.js.map +1 -0
  889. package/bin/services/chat/types/QqInboundDedupe.d.ts +12 -0
  890. package/bin/services/chat/types/QqInboundDedupe.d.ts.map +1 -0
  891. package/bin/services/chat/types/QqInboundDedupe.js +2 -0
  892. package/bin/services/chat/types/QqInboundDedupe.js.map +1 -0
  893. package/bin/services/chat/types/QqVoice.d.ts +118 -0
  894. package/bin/services/chat/types/QqVoice.d.ts.map +1 -0
  895. package/bin/services/chat/types/QqVoice.js +9 -0
  896. package/bin/services/chat/types/QqVoice.js.map +1 -0
  897. package/bin/services/chat/types/ReplyContext.d.ts +46 -0
  898. package/bin/services/chat/types/ReplyContext.d.ts.map +1 -0
  899. package/bin/services/chat/types/ReplyContext.js +10 -0
  900. package/bin/services/chat/types/ReplyContext.js.map +1 -0
  901. package/bin/services/contact/Action.d.ts +9 -0
  902. package/bin/services/contact/Action.d.ts.map +1 -0
  903. package/bin/services/contact/Action.js +9 -0
  904. package/bin/services/contact/Action.js.map +1 -0
  905. package/bin/services/contact/ContactService.d.ts +39 -0
  906. package/bin/services/contact/ContactService.d.ts.map +1 -0
  907. package/bin/services/contact/ContactService.js +683 -0
  908. package/bin/services/contact/ContactService.js.map +1 -0
  909. package/bin/services/contact/Index.d.ts +8 -0
  910. package/bin/services/contact/Index.d.ts.map +1 -0
  911. package/bin/services/contact/Index.js +8 -0
  912. package/bin/services/contact/Index.js.map +1 -0
  913. package/bin/services/contact/PROMPT.txt +25 -0
  914. package/bin/services/contact/runtime/ApproveCallback.d.ts +23 -0
  915. package/bin/services/contact/runtime/ApproveCallback.d.ts.map +1 -0
  916. package/bin/services/contact/runtime/ApproveCallback.js +83 -0
  917. package/bin/services/contact/runtime/ApproveCallback.js.map +1 -0
  918. package/bin/services/contact/runtime/ChatRuntime.d.ts +27 -0
  919. package/bin/services/contact/runtime/ChatRuntime.d.ts.map +1 -0
  920. package/bin/services/contact/runtime/ChatRuntime.js +59 -0
  921. package/bin/services/contact/runtime/ChatRuntime.js.map +1 -0
  922. package/bin/services/contact/runtime/ContactStore.d.ts +49 -0
  923. package/bin/services/contact/runtime/ContactStore.d.ts.map +1 -0
  924. package/bin/services/contact/runtime/ContactStore.js +255 -0
  925. package/bin/services/contact/runtime/ContactStore.js.map +1 -0
  926. package/bin/services/contact/runtime/EndpointNotice.d.ts +39 -0
  927. package/bin/services/contact/runtime/EndpointNotice.d.ts.map +1 -0
  928. package/bin/services/contact/runtime/EndpointNotice.js +98 -0
  929. package/bin/services/contact/runtime/EndpointNotice.js.map +1 -0
  930. package/bin/services/contact/runtime/EndpointResolver.d.ts +36 -0
  931. package/bin/services/contact/runtime/EndpointResolver.d.ts.map +1 -0
  932. package/bin/services/contact/runtime/EndpointResolver.js +113 -0
  933. package/bin/services/contact/runtime/EndpointResolver.js.map +1 -0
  934. package/bin/services/contact/runtime/InboxStore.d.ts +33 -0
  935. package/bin/services/contact/runtime/InboxStore.d.ts.map +1 -0
  936. package/bin/services/contact/runtime/InboxStore.js +142 -0
  937. package/bin/services/contact/runtime/InboxStore.js.map +1 -0
  938. package/bin/services/contact/runtime/LinkApproval.d.ts +20 -0
  939. package/bin/services/contact/runtime/LinkApproval.d.ts.map +1 -0
  940. package/bin/services/contact/runtime/LinkApproval.js +317 -0
  941. package/bin/services/contact/runtime/LinkApproval.js.map +1 -0
  942. package/bin/services/contact/runtime/LinkCode.d.ts +21 -0
  943. package/bin/services/contact/runtime/LinkCode.d.ts.map +1 -0
  944. package/bin/services/contact/runtime/LinkCode.js +61 -0
  945. package/bin/services/contact/runtime/LinkCode.js.map +1 -0
  946. package/bin/services/contact/runtime/LinkStore.d.ts +17 -0
  947. package/bin/services/contact/runtime/LinkStore.d.ts.map +1 -0
  948. package/bin/services/contact/runtime/LinkStore.js +39 -0
  949. package/bin/services/contact/runtime/LinkStore.js.map +1 -0
  950. package/bin/services/contact/runtime/Paths.d.ts +64 -0
  951. package/bin/services/contact/runtime/Paths.d.ts.map +1 -0
  952. package/bin/services/contact/runtime/Paths.js +103 -0
  953. package/bin/services/contact/runtime/Paths.js.map +1 -0
  954. package/bin/services/contact/runtime/RemoteClient.d.ts +46 -0
  955. package/bin/services/contact/runtime/RemoteClient.d.ts.map +1 -0
  956. package/bin/services/contact/runtime/RemoteClient.js +102 -0
  957. package/bin/services/contact/runtime/RemoteClient.js.map +1 -0
  958. package/bin/services/contact/runtime/ShareBundle.d.ts +65 -0
  959. package/bin/services/contact/runtime/ShareBundle.d.ts.map +1 -0
  960. package/bin/services/contact/runtime/ShareBundle.js +185 -0
  961. package/bin/services/contact/runtime/ShareBundle.js.map +1 -0
  962. package/bin/services/contact/runtime/SystemProvider.d.ts +12 -0
  963. package/bin/services/contact/runtime/SystemProvider.d.ts.map +1 -0
  964. package/bin/services/contact/runtime/SystemProvider.js +21 -0
  965. package/bin/services/contact/runtime/SystemProvider.js.map +1 -0
  966. package/bin/services/contact/runtime/Token.d.ts +24 -0
  967. package/bin/services/contact/runtime/Token.d.ts.map +1 -0
  968. package/bin/services/contact/runtime/Token.js +36 -0
  969. package/bin/services/contact/runtime/Token.js.map +1 -0
  970. package/bin/services/memory/Action.d.ts +41 -0
  971. package/bin/services/memory/Action.d.ts.map +1 -0
  972. package/bin/services/memory/Action.js +149 -0
  973. package/bin/services/memory/Action.js.map +1 -0
  974. package/bin/services/memory/Index.d.ts +9 -0
  975. package/bin/services/memory/Index.d.ts.map +1 -0
  976. package/bin/services/memory/Index.js +9 -0
  977. package/bin/services/memory/Index.js.map +1 -0
  978. package/bin/services/memory/MemoryService.d.ts +45 -0
  979. package/bin/services/memory/MemoryService.d.ts.map +1 -0
  980. package/bin/services/memory/MemoryService.js +299 -0
  981. package/bin/services/memory/MemoryService.js.map +1 -0
  982. package/bin/services/memory/runtime/Flush.d.ts +15 -0
  983. package/bin/services/memory/runtime/Flush.d.ts.map +1 -0
  984. package/bin/services/memory/runtime/Flush.js +63 -0
  985. package/bin/services/memory/runtime/Flush.js.map +1 -0
  986. package/bin/services/memory/runtime/Indexer.d.ts +71 -0
  987. package/bin/services/memory/runtime/Indexer.d.ts.map +1 -0
  988. package/bin/services/memory/runtime/Indexer.js +345 -0
  989. package/bin/services/memory/runtime/Indexer.js.map +1 -0
  990. package/bin/services/memory/runtime/Search.d.ts +15 -0
  991. package/bin/services/memory/runtime/Search.d.ts.map +1 -0
  992. package/bin/services/memory/runtime/Search.js +64 -0
  993. package/bin/services/memory/runtime/Search.js.map +1 -0
  994. package/bin/services/memory/runtime/Store.d.ts +106 -0
  995. package/bin/services/memory/runtime/Store.d.ts.map +1 -0
  996. package/bin/services/memory/runtime/Store.js +262 -0
  997. package/bin/services/memory/runtime/Store.js.map +1 -0
  998. package/bin/services/memory/runtime/SystemProvider.d.ts +22 -0
  999. package/bin/services/memory/runtime/SystemProvider.d.ts.map +1 -0
  1000. package/bin/services/memory/runtime/SystemProvider.js +126 -0
  1001. package/bin/services/memory/runtime/SystemProvider.js.map +1 -0
  1002. package/bin/services/memory/runtime/Writer.d.ts +23 -0
  1003. package/bin/services/memory/runtime/Writer.d.ts.map +1 -0
  1004. package/bin/services/memory/runtime/Writer.js +140 -0
  1005. package/bin/services/memory/runtime/Writer.js.map +1 -0
  1006. package/bin/services/memory/types/Memory.d.ts +318 -0
  1007. package/bin/services/memory/types/Memory.d.ts.map +1 -0
  1008. package/bin/services/memory/types/Memory.js +9 -0
  1009. package/bin/services/memory/types/Memory.js.map +1 -0
  1010. package/bin/services/shell/Index.d.ts +9 -0
  1011. package/bin/services/shell/Index.d.ts.map +1 -0
  1012. package/bin/services/shell/Index.js +9 -0
  1013. package/bin/services/shell/Index.js.map +1 -0
  1014. package/bin/services/shell/ShellService.d.ts +65 -0
  1015. package/bin/services/shell/ShellService.d.ts.map +1 -0
  1016. package/bin/services/shell/ShellService.js +138 -0
  1017. package/bin/services/shell/ShellService.js.map +1 -0
  1018. package/bin/services/shell/runtime/Paths.d.ts +12 -0
  1019. package/bin/services/shell/runtime/Paths.d.ts.map +1 -0
  1020. package/bin/services/shell/runtime/Paths.js +21 -0
  1021. package/bin/services/shell/runtime/Paths.js.map +1 -0
  1022. package/bin/services/shell/runtime/ShellActionRuntime.d.ts +49 -0
  1023. package/bin/services/shell/runtime/ShellActionRuntime.d.ts.map +1 -0
  1024. package/bin/services/shell/runtime/ShellActionRuntime.js +463 -0
  1025. package/bin/services/shell/runtime/ShellActionRuntime.js.map +1 -0
  1026. package/bin/services/shell/runtime/ShellActionRuntimeSupport.d.ts +107 -0
  1027. package/bin/services/shell/runtime/ShellActionRuntimeSupport.d.ts.map +1 -0
  1028. package/bin/services/shell/runtime/ShellActionRuntimeSupport.js +452 -0
  1029. package/bin/services/shell/runtime/ShellActionRuntimeSupport.js.map +1 -0
  1030. package/bin/services/shell/types/ShellService.d.ts +216 -0
  1031. package/bin/services/shell/types/ShellService.d.ts.map +1 -0
  1032. package/bin/services/shell/types/ShellService.js +9 -0
  1033. package/bin/services/shell/types/ShellService.js.map +1 -0
  1034. package/bin/services/task/Action.d.ts +36 -0
  1035. package/bin/services/task/Action.d.ts.map +1 -0
  1036. package/bin/services/task/Action.js +407 -0
  1037. package/bin/services/task/Action.js.map +1 -0
  1038. package/bin/services/task/Index.d.ts +9 -0
  1039. package/bin/services/task/Index.d.ts.map +1 -0
  1040. package/bin/services/task/Index.js +9 -0
  1041. package/bin/services/task/Index.js.map +1 -0
  1042. package/bin/services/task/PROMPT.txt +237 -0
  1043. package/bin/services/task/Scheduler.d.ts +17 -0
  1044. package/bin/services/task/Scheduler.d.ts.map +1 -0
  1045. package/bin/services/task/Scheduler.js +231 -0
  1046. package/bin/services/task/Scheduler.js.map +1 -0
  1047. package/bin/services/task/TaskService.d.ts +57 -0
  1048. package/bin/services/task/TaskService.d.ts.map +1 -0
  1049. package/bin/services/task/TaskService.js +126 -0
  1050. package/bin/services/task/TaskService.js.map +1 -0
  1051. package/bin/services/task/runtime/CronRuntime.d.ts +34 -0
  1052. package/bin/services/task/runtime/CronRuntime.d.ts.map +1 -0
  1053. package/bin/services/task/runtime/CronRuntime.js +59 -0
  1054. package/bin/services/task/runtime/CronRuntime.js.map +1 -0
  1055. package/bin/services/task/runtime/CronTrigger.d.ts +19 -0
  1056. package/bin/services/task/runtime/CronTrigger.d.ts.map +1 -0
  1057. package/bin/services/task/runtime/CronTrigger.js +93 -0
  1058. package/bin/services/task/runtime/CronTrigger.js.map +1 -0
  1059. package/bin/services/task/runtime/Frontmatter.d.ts +13 -0
  1060. package/bin/services/task/runtime/Frontmatter.d.ts.map +1 -0
  1061. package/bin/services/task/runtime/Frontmatter.js +19 -0
  1062. package/bin/services/task/runtime/Frontmatter.js.map +1 -0
  1063. package/bin/services/task/runtime/Model.d.ts +73 -0
  1064. package/bin/services/task/runtime/Model.d.ts.map +1 -0
  1065. package/bin/services/task/runtime/Model.js +312 -0
  1066. package/bin/services/task/runtime/Model.js.map +1 -0
  1067. package/bin/services/task/runtime/Paths.d.ts +32 -0
  1068. package/bin/services/task/runtime/Paths.d.ts.map +1 -0
  1069. package/bin/services/task/runtime/Paths.js +103 -0
  1070. package/bin/services/task/runtime/Paths.js.map +1 -0
  1071. package/bin/services/task/runtime/Runner.d.ts +43 -0
  1072. package/bin/services/task/runtime/Runner.d.ts.map +1 -0
  1073. package/bin/services/task/runtime/Runner.js +482 -0
  1074. package/bin/services/task/runtime/Runner.js.map +1 -0
  1075. package/bin/services/task/runtime/Store.d.ts +89 -0
  1076. package/bin/services/task/runtime/Store.d.ts.map +1 -0
  1077. package/bin/services/task/runtime/Store.js +206 -0
  1078. package/bin/services/task/runtime/Store.js.map +1 -0
  1079. package/bin/services/task/runtime/TaskActionExecution.d.ts +160 -0
  1080. package/bin/services/task/runtime/TaskActionExecution.d.ts.map +1 -0
  1081. package/bin/services/task/runtime/TaskActionExecution.js +192 -0
  1082. package/bin/services/task/runtime/TaskActionExecution.js.map +1 -0
  1083. package/bin/services/task/runtime/TaskActionInput.d.ts +48 -0
  1084. package/bin/services/task/runtime/TaskActionInput.d.ts.map +1 -0
  1085. package/bin/services/task/runtime/TaskActionInput.js +357 -0
  1086. package/bin/services/task/runtime/TaskActionInput.js.map +1 -0
  1087. package/bin/services/task/runtime/TaskRunArtifacts.d.ts +189 -0
  1088. package/bin/services/task/runtime/TaskRunArtifacts.d.ts.map +1 -0
  1089. package/bin/services/task/runtime/TaskRunArtifacts.js +271 -0
  1090. package/bin/services/task/runtime/TaskRunArtifacts.js.map +1 -0
  1091. package/bin/services/task/runtime/TaskRunChatDispatch.d.ts +22 -0
  1092. package/bin/services/task/runtime/TaskRunChatDispatch.d.ts.map +1 -0
  1093. package/bin/services/task/runtime/TaskRunChatDispatch.js +66 -0
  1094. package/bin/services/task/runtime/TaskRunChatDispatch.js.map +1 -0
  1095. package/bin/services/task/runtime/TaskRunnerProgress.d.ts +35 -0
  1096. package/bin/services/task/runtime/TaskRunnerProgress.d.ts.map +1 -0
  1097. package/bin/services/task/runtime/TaskRunnerProgress.js +95 -0
  1098. package/bin/services/task/runtime/TaskRunnerProgress.js.map +1 -0
  1099. package/bin/services/task/runtime/TaskRunnerRound.d.ts +80 -0
  1100. package/bin/services/task/runtime/TaskRunnerRound.d.ts.map +1 -0
  1101. package/bin/services/task/runtime/TaskRunnerRound.js +272 -0
  1102. package/bin/services/task/runtime/TaskRunnerRound.js.map +1 -0
  1103. package/bin/services/task/runtime/TaskRunnerSession.d.ts +45 -0
  1104. package/bin/services/task/runtime/TaskRunnerSession.d.ts.map +1 -0
  1105. package/bin/services/task/runtime/TaskRunnerSession.js +138 -0
  1106. package/bin/services/task/runtime/TaskRunnerSession.js.map +1 -0
  1107. package/bin/services/task/runtime/TaskServiceActions.d.ts +16 -0
  1108. package/bin/services/task/runtime/TaskServiceActions.d.ts.map +1 -0
  1109. package/bin/services/task/runtime/TaskServiceActions.js +195 -0
  1110. package/bin/services/task/runtime/TaskServiceActions.js.map +1 -0
  1111. package/bin/services/task/runtime/TaskServiceSystem.d.ts +12 -0
  1112. package/bin/services/task/runtime/TaskServiceSystem.d.ts.map +1 -0
  1113. package/bin/services/task/runtime/TaskServiceSystem.js +26 -0
  1114. package/bin/services/task/runtime/TaskServiceSystem.js.map +1 -0
  1115. package/bin/services/task/types/Cron.d.ts +16 -0
  1116. package/bin/services/task/types/Cron.d.ts.map +1 -0
  1117. package/bin/services/task/types/Cron.js +2 -0
  1118. package/bin/services/task/types/Cron.js.map +1 -0
  1119. package/bin/services/task/types/Task.d.ts +146 -0
  1120. package/bin/services/task/types/Task.d.ts.map +1 -0
  1121. package/bin/services/task/types/Task.js +9 -0
  1122. package/bin/services/task/types/Task.js.map +1 -0
  1123. package/bin/services/task/types/TaskCommand.d.ts +147 -0
  1124. package/bin/services/task/types/TaskCommand.d.ts.map +1 -0
  1125. package/bin/services/task/types/TaskCommand.js +9 -0
  1126. package/bin/services/task/types/TaskCommand.js.map +1 -0
  1127. package/bin/session/Session.d.ts +101 -0
  1128. package/bin/session/Session.d.ts.map +1 -0
  1129. package/bin/session/Session.js +171 -0
  1130. package/bin/session/Session.js.map +1 -0
  1131. package/bin/session/SessionRunScope.d.ts +76 -0
  1132. package/bin/session/SessionRunScope.d.ts.map +1 -0
  1133. package/bin/session/SessionRunScope.js +82 -0
  1134. package/bin/session/SessionRunScope.js.map +1 -0
  1135. package/bin/session/composer/SessionComposer.d.ts +29 -0
  1136. package/bin/session/composer/SessionComposer.d.ts.map +1 -0
  1137. package/bin/session/composer/SessionComposer.js +29 -0
  1138. package/bin/session/composer/SessionComposer.js.map +1 -0
  1139. package/bin/session/composer/compaction/SessionCompactionComposer.d.ts +56 -0
  1140. package/bin/session/composer/compaction/SessionCompactionComposer.d.ts.map +1 -0
  1141. package/bin/session/composer/compaction/SessionCompactionComposer.js +14 -0
  1142. package/bin/session/composer/compaction/SessionCompactionComposer.js.map +1 -0
  1143. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts +38 -0
  1144. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts.map +1 -0
  1145. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.js +70 -0
  1146. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.js.map +1 -0
  1147. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts +46 -0
  1148. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts.map +1 -0
  1149. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js +199 -0
  1150. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js.map +1 -0
  1151. package/bin/session/composer/execution/LocalSessionExecutionComposer.d.ts +49 -0
  1152. package/bin/session/composer/execution/LocalSessionExecutionComposer.d.ts.map +1 -0
  1153. package/bin/session/composer/execution/LocalSessionExecutionComposer.js +117 -0
  1154. package/bin/session/composer/execution/LocalSessionExecutionComposer.js.map +1 -0
  1155. package/bin/session/composer/execution/SessionExecutionComposer.d.ts +63 -0
  1156. package/bin/session/composer/execution/SessionExecutionComposer.d.ts.map +1 -0
  1157. package/bin/session/composer/execution/SessionExecutionComposer.js +14 -0
  1158. package/bin/session/composer/execution/SessionExecutionComposer.js.map +1 -0
  1159. package/bin/session/composer/history/SessionHistoryComposer.d.ts +156 -0
  1160. package/bin/session/composer/history/SessionHistoryComposer.d.ts.map +1 -0
  1161. package/bin/session/composer/history/SessionHistoryComposer.js +14 -0
  1162. package/bin/session/composer/history/SessionHistoryComposer.js.map +1 -0
  1163. package/bin/session/composer/history/SessionHistoryWriter.d.ts +56 -0
  1164. package/bin/session/composer/history/SessionHistoryWriter.d.ts.map +1 -0
  1165. package/bin/session/composer/history/SessionHistoryWriter.js +95 -0
  1166. package/bin/session/composer/history/SessionHistoryWriter.js.map +1 -0
  1167. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +67 -0
  1168. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts.map +1 -0
  1169. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js +423 -0
  1170. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +1 -0
  1171. package/bin/session/composer/system/SessionSystemComposer.d.ts +23 -0
  1172. package/bin/session/composer/system/SessionSystemComposer.d.ts.map +1 -0
  1173. package/bin/session/composer/system/SessionSystemComposer.js +14 -0
  1174. package/bin/session/composer/system/SessionSystemComposer.js.map +1 -0
  1175. package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts +42 -0
  1176. package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts.map +1 -0
  1177. package/bin/session/composer/system/default/DefaultSessionSystemComposer.js +46 -0
  1178. package/bin/session/composer/system/default/DefaultSessionSystemComposer.js.map +1 -0
  1179. package/bin/session/composer/system/default/InitPrompts.d.ts +16 -0
  1180. package/bin/session/composer/system/default/InitPrompts.d.ts.map +1 -0
  1181. package/bin/session/composer/system/default/InitPrompts.js +35 -0
  1182. package/bin/session/composer/system/default/InitPrompts.js.map +1 -0
  1183. package/bin/session/composer/system/default/PromptRenderer.d.ts +35 -0
  1184. package/bin/session/composer/system/default/PromptRenderer.d.ts.map +1 -0
  1185. package/bin/session/composer/system/default/PromptRenderer.js +23 -0
  1186. package/bin/session/composer/system/default/PromptRenderer.js.map +1 -0
  1187. package/bin/session/composer/system/default/StaticPromptCatalog.d.ts +46 -0
  1188. package/bin/session/composer/system/default/StaticPromptCatalog.d.ts.map +1 -0
  1189. package/bin/session/composer/system/default/StaticPromptCatalog.js +223 -0
  1190. package/bin/session/composer/system/default/StaticPromptCatalog.js.map +1 -0
  1191. package/bin/session/composer/system/default/SystemDomain.d.ts +169 -0
  1192. package/bin/session/composer/system/default/SystemDomain.d.ts.map +1 -0
  1193. package/bin/session/composer/system/default/SystemDomain.js +232 -0
  1194. package/bin/session/composer/system/default/SystemDomain.js.map +1 -0
  1195. package/bin/session/composer/system/default/assets/core.prompt.txt +39 -0
  1196. package/bin/session/composer/system/default/assets/init/PROFILE.md.txt +17 -0
  1197. package/bin/session/composer/system/default/assets/init/SOUL.md.txt +88 -0
  1198. package/bin/session/composer/system/default/assets/service.prompt.txt +29 -0
  1199. package/bin/session/composer/system/default/assets/task.prompt.txt +33 -0
  1200. package/bin/session/composer/system/default/variables/GeoContext.d.ts +14 -0
  1201. package/bin/session/composer/system/default/variables/GeoContext.d.ts.map +1 -0
  1202. package/bin/session/composer/system/default/variables/GeoContext.js +150 -0
  1203. package/bin/session/composer/system/default/variables/GeoContext.js.map +1 -0
  1204. package/bin/session/composer/system/default/variables/PromptTypes.d.ts +36 -0
  1205. package/bin/session/composer/system/default/variables/PromptTypes.d.ts.map +1 -0
  1206. package/bin/session/composer/system/default/variables/PromptTypes.js +9 -0
  1207. package/bin/session/composer/system/default/variables/PromptTypes.js.map +1 -0
  1208. package/bin/session/composer/system/default/variables/VariableReplacer.d.ts +61 -0
  1209. package/bin/session/composer/system/default/variables/VariableReplacer.d.ts.map +1 -0
  1210. package/bin/session/composer/system/default/variables/VariableReplacer.js +93 -0
  1211. package/bin/session/composer/system/default/variables/VariableReplacer.js.map +1 -0
  1212. package/bin/session/executors/local/LocalSessionCore.d.ts +116 -0
  1213. package/bin/session/executors/local/LocalSessionCore.d.ts.map +1 -0
  1214. package/bin/session/executors/local/LocalSessionCore.js +571 -0
  1215. package/bin/session/executors/local/LocalSessionCore.js.map +1 -0
  1216. package/bin/session/executors/local/LocalSessionExecutor.d.ts +61 -0
  1217. package/bin/session/executors/local/LocalSessionExecutor.d.ts.map +1 -0
  1218. package/bin/session/executors/local/LocalSessionExecutor.js +36 -0
  1219. package/bin/session/executors/local/LocalSessionExecutor.js.map +1 -0
  1220. package/bin/session/executors/local/SessionLoopDecision.d.ts +27 -0
  1221. package/bin/session/executors/local/SessionLoopDecision.d.ts.map +1 -0
  1222. package/bin/session/executors/local/SessionLoopDecision.js +62 -0
  1223. package/bin/session/executors/local/SessionLoopDecision.js.map +1 -0
  1224. package/bin/session/executors/local/SessionSignals.d.ts +72 -0
  1225. package/bin/session/executors/local/SessionSignals.d.ts.map +1 -0
  1226. package/bin/session/executors/local/SessionSignals.js +357 -0
  1227. package/bin/session/executors/local/SessionSignals.js.map +1 -0
  1228. package/bin/session/ids/resolveSessionId.d.ts +11 -0
  1229. package/bin/session/ids/resolveSessionId.d.ts.map +1 -0
  1230. package/bin/session/ids/resolveSessionId.js +17 -0
  1231. package/bin/session/ids/resolveSessionId.js.map +1 -0
  1232. package/bin/session/messages/SessionAttachmentMapper.d.ts +14 -0
  1233. package/bin/session/messages/SessionAttachmentMapper.d.ts.map +1 -0
  1234. package/bin/session/messages/SessionAttachmentMapper.js +145 -0
  1235. package/bin/session/messages/SessionAttachmentMapper.js.map +1 -0
  1236. package/bin/session/messages/SessionMessageCodec.d.ts +41 -0
  1237. package/bin/session/messages/SessionMessageCodec.d.ts.map +1 -0
  1238. package/bin/session/messages/SessionMessageCodec.js +93 -0
  1239. package/bin/session/messages/SessionMessageCodec.js.map +1 -0
  1240. package/bin/session/messages/SessionMessageLog.d.ts +19 -0
  1241. package/bin/session/messages/SessionMessageLog.d.ts.map +1 -0
  1242. package/bin/session/messages/SessionMessageLog.js +34 -0
  1243. package/bin/session/messages/SessionMessageLog.js.map +1 -0
  1244. package/bin/session/messages/SessionStepEventMapper.d.ts +20 -0
  1245. package/bin/session/messages/SessionStepEventMapper.d.ts.map +1 -0
  1246. package/bin/session/messages/SessionStepEventMapper.js +208 -0
  1247. package/bin/session/messages/SessionStepEventMapper.js.map +1 -0
  1248. package/bin/session/tools/shell/ShellToolBridge.d.ts +79 -0
  1249. package/bin/session/tools/shell/ShellToolBridge.d.ts.map +1 -0
  1250. package/bin/session/tools/shell/ShellToolBridge.js +288 -0
  1251. package/bin/session/tools/shell/ShellToolBridge.js.map +1 -0
  1252. package/bin/session/tools/shell/ShellToolDefinition.d.ts +114 -0
  1253. package/bin/session/tools/shell/ShellToolDefinition.d.ts.map +1 -0
  1254. package/bin/session/tools/shell/ShellToolDefinition.js +359 -0
  1255. package/bin/session/tools/shell/ShellToolDefinition.js.map +1 -0
  1256. package/bin/session/tools/shell/ShellToolFormatting.d.ts +26 -0
  1257. package/bin/session/tools/shell/ShellToolFormatting.d.ts.map +1 -0
  1258. package/bin/session/tools/shell/ShellToolFormatting.js +74 -0
  1259. package/bin/session/tools/shell/ShellToolFormatting.js.map +1 -0
  1260. package/bin/session/tools/shell/ShellToolSchemas.d.ts +118 -0
  1261. package/bin/session/tools/shell/ShellToolSchemas.d.ts.map +1 -0
  1262. package/bin/session/tools/shell/ShellToolSchemas.js +113 -0
  1263. package/bin/session/tools/shell/ShellToolSchemas.js.map +1 -0
  1264. package/bin/shared/constants/DowncityDefault.d.ts +3 -0
  1265. package/bin/shared/constants/DowncityDefault.d.ts.map +1 -0
  1266. package/bin/shared/constants/DowncityDefault.js +37 -0
  1267. package/bin/shared/constants/DowncityDefault.js.map +1 -0
  1268. package/bin/shared/constants/DowncitySchema.d.ts +3 -0
  1269. package/bin/shared/constants/DowncitySchema.d.ts.map +1 -0
  1270. package/bin/shared/constants/DowncitySchema.js +367 -0
  1271. package/bin/shared/constants/DowncitySchema.js.map +1 -0
  1272. package/bin/shared/types/AgentHost.d.ts +72 -0
  1273. package/bin/shared/types/AgentHost.d.ts.map +1 -0
  1274. package/bin/shared/types/AgentHost.js +10 -0
  1275. package/bin/shared/types/AgentHost.js.map +1 -0
  1276. package/bin/shared/types/AgentProject.d.ts +80 -0
  1277. package/bin/shared/types/AgentProject.d.ts.map +1 -0
  1278. package/bin/shared/types/AgentProject.js +9 -0
  1279. package/bin/shared/types/AgentProject.js.map +1 -0
  1280. package/bin/shared/types/AuthDashboard.d.ts +30 -0
  1281. package/bin/shared/types/AuthDashboard.d.ts.map +1 -0
  1282. package/bin/shared/types/AuthDashboard.js +9 -0
  1283. package/bin/shared/types/AuthDashboard.js.map +1 -0
  1284. package/bin/shared/types/AuthPlugin.d.ts +407 -0
  1285. package/bin/shared/types/AuthPlugin.d.ts.map +1 -0
  1286. package/bin/shared/types/AuthPlugin.js +115 -0
  1287. package/bin/shared/types/AuthPlugin.js.map +1 -0
  1288. package/bin/shared/types/ChatPlugin.d.ts +238 -0
  1289. package/bin/shared/types/ChatPlugin.d.ts.map +1 -0
  1290. package/bin/shared/types/ChatPlugin.js +10 -0
  1291. package/bin/shared/types/ChatPlugin.js.map +1 -0
  1292. package/bin/shared/types/ChatPromptContext.d.ts +125 -0
  1293. package/bin/shared/types/ChatPromptContext.d.ts.map +1 -0
  1294. package/bin/shared/types/ChatPromptContext.js +10 -0
  1295. package/bin/shared/types/ChatPromptContext.js.map +1 -0
  1296. package/bin/shared/types/ChatQueueWorker.d.ts +25 -0
  1297. package/bin/shared/types/ChatQueueWorker.d.ts.map +1 -0
  1298. package/bin/shared/types/ChatQueueWorker.js +9 -0
  1299. package/bin/shared/types/ChatQueueWorker.js.map +1 -0
  1300. package/bin/shared/types/ChatRuntime.d.ts +32 -0
  1301. package/bin/shared/types/ChatRuntime.d.ts.map +1 -0
  1302. package/bin/shared/types/ChatRuntime.js +9 -0
  1303. package/bin/shared/types/ChatRuntime.js.map +1 -0
  1304. package/bin/shared/types/ChatService.d.ts +145 -0
  1305. package/bin/shared/types/ChatService.d.ts.map +1 -0
  1306. package/bin/shared/types/ChatService.js +10 -0
  1307. package/bin/shared/types/ChatService.js.map +1 -0
  1308. package/bin/shared/types/ClaudeSkill.d.ts +63 -0
  1309. package/bin/shared/types/ClaudeSkill.d.ts.map +1 -0
  1310. package/bin/shared/types/ClaudeSkill.js +10 -0
  1311. package/bin/shared/types/ClaudeSkill.js.map +1 -0
  1312. package/bin/shared/types/Console.d.ts +373 -0
  1313. package/bin/shared/types/Console.d.ts.map +1 -0
  1314. package/bin/shared/types/Console.js +9 -0
  1315. package/bin/shared/types/Console.js.map +1 -0
  1316. package/bin/shared/types/ConsoleGateway.d.ts +174 -0
  1317. package/bin/shared/types/ConsoleGateway.d.ts.map +1 -0
  1318. package/bin/shared/types/ConsoleGateway.js +9 -0
  1319. package/bin/shared/types/ConsoleGateway.js.map +1 -0
  1320. package/bin/shared/types/Daemon.d.ts +46 -0
  1321. package/bin/shared/types/Daemon.d.ts.map +1 -0
  1322. package/bin/shared/types/Daemon.js +14 -0
  1323. package/bin/shared/types/Daemon.js.map +1 -0
  1324. package/bin/shared/types/DashboardData.d.ts +320 -0
  1325. package/bin/shared/types/DashboardData.d.ts.map +1 -0
  1326. package/bin/shared/types/DashboardData.js +9 -0
  1327. package/bin/shared/types/DashboardData.js.map +1 -0
  1328. package/bin/shared/types/DashboardRoutes.d.ts +28 -0
  1329. package/bin/shared/types/DashboardRoutes.d.ts.map +1 -0
  1330. package/bin/shared/types/DashboardRoutes.js +9 -0
  1331. package/bin/shared/types/DashboardRoutes.js.map +1 -0
  1332. package/bin/shared/types/DashboardSessionExecute.d.ts +85 -0
  1333. package/bin/shared/types/DashboardSessionExecute.d.ts.map +1 -0
  1334. package/bin/shared/types/DashboardSessionExecute.js +9 -0
  1335. package/bin/shared/types/DashboardSessionExecute.js.map +1 -0
  1336. package/bin/shared/types/DowncityConfig.d.ts +214 -0
  1337. package/bin/shared/types/DowncityConfig.d.ts.map +1 -0
  1338. package/bin/shared/types/DowncityConfig.js +2 -0
  1339. package/bin/shared/types/DowncityConfig.js.map +1 -0
  1340. package/bin/shared/types/ExecutionBinding.d.ts +26 -0
  1341. package/bin/shared/types/ExecutionBinding.d.ts.map +1 -0
  1342. package/bin/shared/types/ExecutionBinding.js +10 -0
  1343. package/bin/shared/types/ExecutionBinding.js.map +1 -0
  1344. package/bin/shared/types/FeishuChannel.d.ts +127 -0
  1345. package/bin/shared/types/FeishuChannel.d.ts.map +1 -0
  1346. package/bin/shared/types/FeishuChannel.js +9 -0
  1347. package/bin/shared/types/FeishuChannel.js.map +1 -0
  1348. package/bin/shared/types/InlineInstant.d.ts +82 -0
  1349. package/bin/shared/types/InlineInstant.d.ts.map +1 -0
  1350. package/bin/shared/types/InlineInstant.js +10 -0
  1351. package/bin/shared/types/InlineInstant.js.map +1 -0
  1352. package/bin/shared/types/Json.d.ts +32 -0
  1353. package/bin/shared/types/Json.d.ts.map +1 -0
  1354. package/bin/shared/types/Json.js +9 -0
  1355. package/bin/shared/types/Json.js.map +1 -0
  1356. package/bin/shared/types/LlmConfig.d.ts +100 -0
  1357. package/bin/shared/types/LlmConfig.d.ts.map +1 -0
  1358. package/bin/shared/types/LlmConfig.js +10 -0
  1359. package/bin/shared/types/LlmConfig.js.map +1 -0
  1360. package/bin/shared/types/LocalRpc.d.ts +69 -0
  1361. package/bin/shared/types/LocalRpc.d.ts.map +1 -0
  1362. package/bin/shared/types/LocalRpc.js +9 -0
  1363. package/bin/shared/types/LocalRpc.js.map +1 -0
  1364. package/bin/shared/types/ModelBinding.d.ts +19 -0
  1365. package/bin/shared/types/ModelBinding.d.ts.map +1 -0
  1366. package/bin/shared/types/ModelBinding.js +2 -0
  1367. package/bin/shared/types/ModelBinding.js.map +1 -0
  1368. package/bin/shared/types/Plugin.d.ts +693 -0
  1369. package/bin/shared/types/Plugin.d.ts.map +1 -0
  1370. package/bin/shared/types/Plugin.js +10 -0
  1371. package/bin/shared/types/Plugin.js.map +1 -0
  1372. package/bin/shared/types/PluginApi.d.ts +155 -0
  1373. package/bin/shared/types/PluginApi.d.ts.map +1 -0
  1374. package/bin/shared/types/PluginApi.js +9 -0
  1375. package/bin/shared/types/PluginApi.js.map +1 -0
  1376. package/bin/shared/types/PluginLifecycle.d.ts +34 -0
  1377. package/bin/shared/types/PluginLifecycle.d.ts.map +1 -0
  1378. package/bin/shared/types/PluginLifecycle.js +9 -0
  1379. package/bin/shared/types/PluginLifecycle.js.map +1 -0
  1380. package/bin/shared/types/QqChannel.d.ts +485 -0
  1381. package/bin/shared/types/QqChannel.d.ts.map +1 -0
  1382. package/bin/shared/types/QqChannel.js +42 -0
  1383. package/bin/shared/types/QqChannel.js.map +1 -0
  1384. package/bin/shared/types/QqGatewaySupport.d.ts +82 -0
  1385. package/bin/shared/types/QqGatewaySupport.d.ts.map +1 -0
  1386. package/bin/shared/types/QqGatewaySupport.js +9 -0
  1387. package/bin/shared/types/QqGatewaySupport.js.map +1 -0
  1388. package/bin/shared/types/Sandbox.d.ts +130 -0
  1389. package/bin/shared/types/Sandbox.d.ts.map +1 -0
  1390. package/bin/shared/types/Sandbox.js +10 -0
  1391. package/bin/shared/types/Sandbox.js.map +1 -0
  1392. package/bin/shared/types/Service.d.ts +205 -0
  1393. package/bin/shared/types/Service.d.ts.map +1 -0
  1394. package/bin/shared/types/Service.js +10 -0
  1395. package/bin/shared/types/Service.js.map +1 -0
  1396. package/bin/shared/types/ServiceSchedule.d.ts +114 -0
  1397. package/bin/shared/types/ServiceSchedule.d.ts.map +1 -0
  1398. package/bin/shared/types/ServiceSchedule.js +9 -0
  1399. package/bin/shared/types/ServiceSchedule.js.map +1 -0
  1400. package/bin/shared/types/ServiceState.d.ts +104 -0
  1401. package/bin/shared/types/ServiceState.d.ts.map +1 -0
  1402. package/bin/shared/types/ServiceState.js +9 -0
  1403. package/bin/shared/types/ServiceState.js.map +1 -0
  1404. package/bin/shared/types/Services.d.ts +94 -0
  1405. package/bin/shared/types/Services.d.ts.map +1 -0
  1406. package/bin/shared/types/Services.js +9 -0
  1407. package/bin/shared/types/Services.js.map +1 -0
  1408. package/bin/shared/types/Shell.d.ts +97 -0
  1409. package/bin/shared/types/Shell.d.ts.map +1 -0
  1410. package/bin/shared/types/Shell.js +9 -0
  1411. package/bin/shared/types/Shell.js.map +1 -0
  1412. package/bin/shared/types/SkillCommand.d.ts +87 -0
  1413. package/bin/shared/types/SkillCommand.d.ts.map +1 -0
  1414. package/bin/shared/types/SkillCommand.js +9 -0
  1415. package/bin/shared/types/SkillCommand.js.map +1 -0
  1416. package/bin/shared/types/SkillPlugin.d.ts +102 -0
  1417. package/bin/shared/types/SkillPlugin.d.ts.map +1 -0
  1418. package/bin/shared/types/SkillPlugin.js +29 -0
  1419. package/bin/shared/types/SkillPlugin.js.map +1 -0
  1420. package/bin/shared/types/SkillRoot.d.ts +48 -0
  1421. package/bin/shared/types/SkillRoot.d.ts.map +1 -0
  1422. package/bin/shared/types/SkillRoot.js +9 -0
  1423. package/bin/shared/types/SkillRoot.js.map +1 -0
  1424. package/bin/shared/types/Start.d.ts +16 -0
  1425. package/bin/shared/types/Start.d.ts.map +1 -0
  1426. package/bin/shared/types/Start.js +11 -0
  1427. package/bin/shared/types/Start.js.map +1 -0
  1428. package/bin/shared/types/Store.d.ts +387 -0
  1429. package/bin/shared/types/Store.d.ts.map +1 -0
  1430. package/bin/shared/types/Store.js +2 -0
  1431. package/bin/shared/types/Store.js.map +1 -0
  1432. package/bin/shared/types/TaskService.d.ts +52 -0
  1433. package/bin/shared/types/TaskService.d.ts.map +1 -0
  1434. package/bin/shared/types/TaskService.js +9 -0
  1435. package/bin/shared/types/TaskService.js.map +1 -0
  1436. package/bin/shared/types/Template.d.ts +9 -0
  1437. package/bin/shared/types/Template.d.ts.map +1 -0
  1438. package/bin/shared/types/Template.js +9 -0
  1439. package/bin/shared/types/Template.js.map +1 -0
  1440. package/bin/shared/types/Tts.d.ts +91 -0
  1441. package/bin/shared/types/Tts.d.ts.map +1 -0
  1442. package/bin/shared/types/Tts.js +9 -0
  1443. package/bin/shared/types/Tts.js.map +1 -0
  1444. package/bin/shared/types/TtsPlugin.d.ts +161 -0
  1445. package/bin/shared/types/TtsPlugin.d.ts.map +1 -0
  1446. package/bin/shared/types/TtsPlugin.js +9 -0
  1447. package/bin/shared/types/TtsPlugin.js.map +1 -0
  1448. package/bin/shared/types/Voice.d.ts +58 -0
  1449. package/bin/shared/types/Voice.d.ts.map +1 -0
  1450. package/bin/shared/types/Voice.js +9 -0
  1451. package/bin/shared/types/Voice.js.map +1 -0
  1452. package/bin/shared/types/VoicePlugin.d.ts +190 -0
  1453. package/bin/shared/types/VoicePlugin.d.ts.map +1 -0
  1454. package/bin/shared/types/VoicePlugin.js +9 -0
  1455. package/bin/shared/types/VoicePlugin.js.map +1 -0
  1456. package/bin/shared/types/WebPlugin.d.ts +133 -0
  1457. package/bin/shared/types/WebPlugin.d.ts.map +1 -0
  1458. package/bin/shared/types/WebPlugin.js +12 -0
  1459. package/bin/shared/types/WebPlugin.js.map +1 -0
  1460. package/bin/shared/types/auth/AuthPermission.d.ts +49 -0
  1461. package/bin/shared/types/auth/AuthPermission.d.ts.map +1 -0
  1462. package/bin/shared/types/auth/AuthPermission.js +92 -0
  1463. package/bin/shared/types/auth/AuthPermission.js.map +1 -0
  1464. package/bin/shared/types/auth/AuthRoute.d.ts +29 -0
  1465. package/bin/shared/types/auth/AuthRoute.d.ts.map +1 -0
  1466. package/bin/shared/types/auth/AuthRoute.js +8 -0
  1467. package/bin/shared/types/auth/AuthRoute.js.map +1 -0
  1468. package/bin/shared/types/auth/AuthToken.d.ts +46 -0
  1469. package/bin/shared/types/auth/AuthToken.d.ts.map +1 -0
  1470. package/bin/shared/types/auth/AuthToken.js +9 -0
  1471. package/bin/shared/types/auth/AuthToken.js.map +1 -0
  1472. package/bin/shared/types/auth/AuthTypes.d.ts +227 -0
  1473. package/bin/shared/types/auth/AuthTypes.d.ts.map +1 -0
  1474. package/bin/shared/types/auth/AuthTypes.js +9 -0
  1475. package/bin/shared/types/auth/AuthTypes.js.map +1 -0
  1476. package/bin/shared/utils/Id.d.ts +9 -0
  1477. package/bin/shared/utils/Id.d.ts.map +1 -0
  1478. package/bin/shared/utils/Id.js +12 -0
  1479. package/bin/shared/utils/Id.js.map +1 -0
  1480. package/bin/shared/utils/Template.d.ts +17 -0
  1481. package/bin/shared/utils/Template.d.ts.map +1 -0
  1482. package/bin/shared/utils/Template.js +24 -0
  1483. package/bin/shared/utils/Template.js.map +1 -0
  1484. package/bin/shared/utils/Time.d.ts +15 -0
  1485. package/bin/shared/utils/Time.d.ts.map +1 -0
  1486. package/bin/shared/utils/Time.js +69 -0
  1487. package/bin/shared/utils/Time.js.map +1 -0
  1488. package/bin/shared/utils/cli/Checker.d.ts +8 -0
  1489. package/bin/shared/utils/cli/Checker.d.ts.map +1 -0
  1490. package/bin/shared/utils/cli/Checker.js +18 -0
  1491. package/bin/shared/utils/cli/Checker.js.map +1 -0
  1492. package/bin/shared/utils/cli/CliOutput.d.ts +14 -0
  1493. package/bin/shared/utils/cli/CliOutput.d.ts.map +1 -0
  1494. package/bin/shared/utils/cli/CliOutput.js +98 -0
  1495. package/bin/shared/utils/cli/CliOutput.js.map +1 -0
  1496. package/bin/shared/utils/cli/PrettyStatus.d.ts +25 -0
  1497. package/bin/shared/utils/cli/PrettyStatus.d.ts.map +1 -0
  1498. package/bin/shared/utils/cli/PrettyStatus.js +77 -0
  1499. package/bin/shared/utils/cli/PrettyStatus.js.map +1 -0
  1500. package/bin/shared/utils/logger/Fetch.d.ts +14 -0
  1501. package/bin/shared/utils/logger/Fetch.d.ts.map +1 -0
  1502. package/bin/shared/utils/logger/Fetch.js +68 -0
  1503. package/bin/shared/utils/logger/Fetch.js.map +1 -0
  1504. package/bin/shared/utils/logger/Format.d.ts +11 -0
  1505. package/bin/shared/utils/logger/Format.d.ts.map +1 -0
  1506. package/bin/shared/utils/logger/Format.js +10 -0
  1507. package/bin/shared/utils/logger/Format.js.map +1 -0
  1508. package/bin/shared/utils/logger/FormatRequest.d.ts +29 -0
  1509. package/bin/shared/utils/logger/FormatRequest.d.ts.map +1 -0
  1510. package/bin/shared/utils/logger/FormatRequest.js +309 -0
  1511. package/bin/shared/utils/logger/FormatRequest.js.map +1 -0
  1512. package/bin/shared/utils/logger/FormatResponse.d.ts +46 -0
  1513. package/bin/shared/utils/logger/FormatResponse.d.ts.map +1 -0
  1514. package/bin/shared/utils/logger/FormatResponse.js +186 -0
  1515. package/bin/shared/utils/logger/FormatResponse.js.map +1 -0
  1516. package/bin/shared/utils/logger/FormatShared.d.ts +33 -0
  1517. package/bin/shared/utils/logger/FormatShared.d.ts.map +1 -0
  1518. package/bin/shared/utils/logger/FormatShared.js +215 -0
  1519. package/bin/shared/utils/logger/FormatShared.js.map +1 -0
  1520. package/bin/shared/utils/logger/Logger.d.ts +101 -0
  1521. package/bin/shared/utils/logger/Logger.d.ts.map +1 -0
  1522. package/bin/shared/utils/logger/Logger.js +308 -0
  1523. package/bin/shared/utils/logger/Logger.js.map +1 -0
  1524. package/bin/shared/utils/storage/index.d.ts +5 -0
  1525. package/bin/shared/utils/storage/index.d.ts.map +1 -0
  1526. package/bin/shared/utils/storage/index.js +23 -0
  1527. package/bin/shared/utils/storage/index.js.map +1 -0
  1528. package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts +34 -0
  1529. package/bin/shared/utils/store/StoreChannelAccountRepository.d.ts.map +1 -0
  1530. package/bin/shared/utils/store/StoreChannelAccountRepository.js +198 -0
  1531. package/bin/shared/utils/store/StoreChannelAccountRepository.js.map +1 -0
  1532. package/bin/shared/utils/store/StoreEnvRepository.d.ts +98 -0
  1533. package/bin/shared/utils/store/StoreEnvRepository.d.ts.map +1 -0
  1534. package/bin/shared/utils/store/StoreEnvRepository.js +334 -0
  1535. package/bin/shared/utils/store/StoreEnvRepository.js.map +1 -0
  1536. package/bin/shared/utils/store/StoreModelRepository.d.ts +57 -0
  1537. package/bin/shared/utils/store/StoreModelRepository.d.ts.map +1 -0
  1538. package/bin/shared/utils/store/StoreModelRepository.js +267 -0
  1539. package/bin/shared/utils/store/StoreModelRepository.js.map +1 -0
  1540. package/bin/shared/utils/store/StoreSchema.d.ts +13 -0
  1541. package/bin/shared/utils/store/StoreSchema.d.ts.map +1 -0
  1542. package/bin/shared/utils/store/StoreSchema.js +319 -0
  1543. package/bin/shared/utils/store/StoreSchema.js.map +1 -0
  1544. package/bin/shared/utils/store/StoreSecureSettings.d.ts +33 -0
  1545. package/bin/shared/utils/store/StoreSecureSettings.d.ts.map +1 -0
  1546. package/bin/shared/utils/store/StoreSecureSettings.js +91 -0
  1547. package/bin/shared/utils/store/StoreSecureSettings.js.map +1 -0
  1548. package/bin/shared/utils/store/StoreShared.d.ts +44 -0
  1549. package/bin/shared/utils/store/StoreShared.d.ts.map +1 -0
  1550. package/bin/shared/utils/store/StoreShared.js +40 -0
  1551. package/bin/shared/utils/store/StoreShared.js.map +1 -0
  1552. package/bin/shared/utils/store/crypto.d.ts +24 -0
  1553. package/bin/shared/utils/store/crypto.d.ts.map +1 -0
  1554. package/bin/shared/utils/store/crypto.js +101 -0
  1555. package/bin/shared/utils/store/crypto.js.map +1 -0
  1556. package/bin/shared/utils/store/index.d.ts +226 -0
  1557. package/bin/shared/utils/store/index.d.ts.map +1 -0
  1558. package/bin/shared/utils/store/index.js +353 -0
  1559. package/bin/shared/utils/store/index.js.map +1 -0
  1560. package/bin/shared/utils/store/schema.d.ts +690 -0
  1561. package/bin/shared/utils/store/schema.d.ts.map +1 -0
  1562. package/bin/shared/utils/store/schema.js +81 -0
  1563. package/bin/shared/utils/store/schema.js.map +1 -0
  1564. package/bin/types/agent/AgentContext.d.ts +345 -0
  1565. package/bin/types/agent/AgentContext.d.ts.map +1 -0
  1566. package/bin/types/agent/AgentContext.js +10 -0
  1567. package/bin/types/agent/AgentContext.js.map +1 -0
  1568. package/bin/types/agent/AgentRuntime.d.ts +81 -0
  1569. package/bin/types/agent/AgentRuntime.d.ts.map +1 -0
  1570. package/bin/types/agent/AgentRuntime.js +10 -0
  1571. package/bin/types/agent/AgentRuntime.js.map +1 -0
  1572. package/bin/types/chat/ChatSession.d.ts +30 -0
  1573. package/bin/types/chat/ChatSession.d.ts.map +1 -0
  1574. package/bin/types/chat/ChatSession.js +9 -0
  1575. package/bin/types/chat/ChatSession.js.map +1 -0
  1576. package/bin/types/city/PublicHostEnv.d.ts +72 -0
  1577. package/bin/types/city/PublicHostEnv.d.ts.map +1 -0
  1578. package/bin/types/city/PublicHostEnv.js +9 -0
  1579. package/bin/types/city/PublicHostEnv.js.map +1 -0
  1580. package/bin/types/cli/AgentChat.d.ts +147 -0
  1581. package/bin/types/cli/AgentChat.d.ts.map +1 -0
  1582. package/bin/types/cli/AgentChat.js +12 -0
  1583. package/bin/types/cli/AgentChat.js.map +1 -0
  1584. package/bin/types/cli/AgentSelection.d.ts +146 -0
  1585. package/bin/types/cli/AgentSelection.d.ts.map +1 -0
  1586. package/bin/types/cli/AgentSelection.js +9 -0
  1587. package/bin/types/cli/AgentSelection.js.map +1 -0
  1588. package/bin/types/cli/CliReporter.d.ts +157 -0
  1589. package/bin/types/cli/CliReporter.d.ts.map +1 -0
  1590. package/bin/types/cli/CliReporter.js +10 -0
  1591. package/bin/types/cli/CliReporter.js.map +1 -0
  1592. package/bin/types/cli/ModelManager.d.ts +127 -0
  1593. package/bin/types/cli/ModelManager.d.ts.map +1 -0
  1594. package/bin/types/cli/ModelManager.js +9 -0
  1595. package/bin/types/cli/ModelManager.js.map +1 -0
  1596. package/bin/types/contact/Contact.d.ts +78 -0
  1597. package/bin/types/contact/Contact.d.ts.map +1 -0
  1598. package/bin/types/contact/Contact.js +9 -0
  1599. package/bin/types/contact/Contact.js.map +1 -0
  1600. package/bin/types/contact/ContactApproval.d.ts +145 -0
  1601. package/bin/types/contact/ContactApproval.d.ts.map +1 -0
  1602. package/bin/types/contact/ContactApproval.js +9 -0
  1603. package/bin/types/contact/ContactApproval.js.map +1 -0
  1604. package/bin/types/contact/ContactChat.d.ts +46 -0
  1605. package/bin/types/contact/ContactChat.d.ts.map +1 -0
  1606. package/bin/types/contact/ContactChat.js +9 -0
  1607. package/bin/types/contact/ContactChat.js.map +1 -0
  1608. package/bin/types/contact/ContactCheck.d.ts +66 -0
  1609. package/bin/types/contact/ContactCheck.d.ts.map +1 -0
  1610. package/bin/types/contact/ContactCheck.js +9 -0
  1611. package/bin/types/contact/ContactCheck.js.map +1 -0
  1612. package/bin/types/contact/ContactCommand.d.ts +93 -0
  1613. package/bin/types/contact/ContactCommand.d.ts.map +1 -0
  1614. package/bin/types/contact/ContactCommand.js +8 -0
  1615. package/bin/types/contact/ContactCommand.js.map +1 -0
  1616. package/bin/types/contact/ContactEndpoint.d.ts +12 -0
  1617. package/bin/types/contact/ContactEndpoint.d.ts.map +1 -0
  1618. package/bin/types/contact/ContactEndpoint.js +9 -0
  1619. package/bin/types/contact/ContactEndpoint.js.map +1 -0
  1620. package/bin/types/contact/ContactLink.d.ts +160 -0
  1621. package/bin/types/contact/ContactLink.d.ts.map +1 -0
  1622. package/bin/types/contact/ContactLink.js +9 -0
  1623. package/bin/types/contact/ContactLink.js.map +1 -0
  1624. package/bin/types/contact/ContactShare.d.ts +163 -0
  1625. package/bin/types/contact/ContactShare.d.ts.map +1 -0
  1626. package/bin/types/contact/ContactShare.js +9 -0
  1627. package/bin/types/contact/ContactShare.js.map +1 -0
  1628. package/bin/types/sandbox/SandboxRuntime.d.ts +318 -0
  1629. package/bin/types/sandbox/SandboxRuntime.d.ts.map +1 -0
  1630. package/bin/types/sandbox/SandboxRuntime.js +10 -0
  1631. package/bin/types/sandbox/SandboxRuntime.js.map +1 -0
  1632. package/bin/types/session/SessionExecutor.d.ts +18 -0
  1633. package/bin/types/session/SessionExecutor.d.ts.map +1 -0
  1634. package/bin/types/session/SessionExecutor.js +9 -0
  1635. package/bin/types/session/SessionExecutor.js.map +1 -0
  1636. package/bin/types/session/SessionHistoryMeta.d.ts +26 -0
  1637. package/bin/types/session/SessionHistoryMeta.d.ts.map +1 -0
  1638. package/bin/types/session/SessionHistoryMeta.js +9 -0
  1639. package/bin/types/session/SessionHistoryMeta.js.map +1 -0
  1640. package/bin/types/session/SessionHistoryPaths.d.ts +30 -0
  1641. package/bin/types/session/SessionHistoryPaths.d.ts.map +1 -0
  1642. package/bin/types/session/SessionHistoryPaths.js +2 -0
  1643. package/bin/types/session/SessionHistoryPaths.js.map +1 -0
  1644. package/bin/types/session/SessionLoop.d.ts +79 -0
  1645. package/bin/types/session/SessionLoop.d.ts.map +1 -0
  1646. package/bin/types/session/SessionLoop.js +9 -0
  1647. package/bin/types/session/SessionLoop.js.map +1 -0
  1648. package/bin/types/session/SessionMessages.d.ts +83 -0
  1649. package/bin/types/session/SessionMessages.d.ts.map +1 -0
  1650. package/bin/types/session/SessionMessages.js +10 -0
  1651. package/bin/types/session/SessionMessages.js.map +1 -0
  1652. package/bin/types/session/SessionPrompts.d.ts +13 -0
  1653. package/bin/types/session/SessionPrompts.d.ts.map +1 -0
  1654. package/bin/types/session/SessionPrompts.js +9 -0
  1655. package/bin/types/session/SessionPrompts.js.map +1 -0
  1656. package/bin/types/session/SessionRun.d.ts +100 -0
  1657. package/bin/types/session/SessionRun.d.ts.map +1 -0
  1658. package/bin/types/session/SessionRun.js +10 -0
  1659. package/bin/types/session/SessionRun.js.map +1 -0
  1660. package/bin/types/shell/ShellRuntime.d.ts +91 -0
  1661. package/bin/types/shell/ShellRuntime.d.ts.map +1 -0
  1662. package/bin/types/shell/ShellRuntime.js +10 -0
  1663. package/bin/types/shell/ShellRuntime.js.map +1 -0
  1664. package/bin/types/task/TaskRunner.d.ts +186 -0
  1665. package/bin/types/task/TaskRunner.d.ts.map +1 -0
  1666. package/bin/types/task/TaskRunner.js +9 -0
  1667. package/bin/types/task/TaskRunner.js.map +1 -0
  1668. package/package.json +53 -0
  1669. package/scripts/copy-prompt-assets.mjs +72 -0
  1670. package/src/agent/AgentContext.ts +181 -0
  1671. package/src/agent/AgentRuntime.ts +348 -0
  1672. package/src/agent/AgentRuntimeState.ts +149 -0
  1673. package/src/agent/project/AgentInitializer.ts +382 -0
  1674. package/src/agent/project/ProjectExecutionBinding.ts +53 -0
  1675. package/src/config/Config.ts +251 -0
  1676. package/src/config/Paths.ts +260 -0
  1677. package/src/daemon/Api.ts +64 -0
  1678. package/src/daemon/Client.ts +182 -0
  1679. package/src/daemon/Manager.ts +344 -0
  1680. package/src/daemon/ProjectSetup.ts +126 -0
  1681. package/src/http/Server.ts +170 -0
  1682. package/src/http/auth/AuthEnv.ts +71 -0
  1683. package/src/http/auth/AuthError.ts +31 -0
  1684. package/src/http/auth/AuthMiddleware.ts +61 -0
  1685. package/src/http/auth/AuthRoutes.ts +100 -0
  1686. package/src/http/auth/AuthService.ts +367 -0
  1687. package/src/http/auth/AuthStore.ts +572 -0
  1688. package/src/http/auth/CliAuthStateStore.ts +50 -0
  1689. package/src/http/auth/PasswordHasher.ts +37 -0
  1690. package/src/http/auth/RoutePolicy.ts +255 -0
  1691. package/src/http/auth/TokenService.ts +36 -0
  1692. package/src/http/dashboard/AuthDashboardService.ts +161 -0
  1693. package/src/http/dashboard/CommonHelpers.ts +50 -0
  1694. package/src/http/dashboard/DashboardApiRoutes.ts +30 -0
  1695. package/src/http/dashboard/DashboardAuthorizationRoutes.ts +101 -0
  1696. package/src/http/dashboard/ExecuteBySession.ts +151 -0
  1697. package/src/http/dashboard/ExecuteInput.ts +236 -0
  1698. package/src/http/dashboard/Helpers.ts +22 -0
  1699. package/src/http/dashboard/MessageTimeline.ts +269 -0
  1700. package/src/http/dashboard/ModelRoutes.ts +102 -0
  1701. package/src/http/dashboard/OverviewRoutes.ts +101 -0
  1702. package/src/http/dashboard/Router.ts +26 -0
  1703. package/src/http/dashboard/SessionRoutes.ts +394 -0
  1704. package/src/http/dashboard/SessionSummaryStore.ts +76 -0
  1705. package/src/http/dashboard/TaskRoutes.ts +372 -0
  1706. package/src/http/dashboard/TaskStore.ts +222 -0
  1707. package/src/http/execute/execute.ts +120 -0
  1708. package/src/http/health/health.ts +27 -0
  1709. package/src/http/plugins/plugins.ts +67 -0
  1710. package/src/http/services/services.ts +94 -0
  1711. package/src/http/static/static.ts +104 -0
  1712. package/src/index.ts +37 -0
  1713. package/src/model/CreateModel.ts +332 -0
  1714. package/src/model/ModelManager.ts +242 -0
  1715. package/src/plugin/Activation.ts +22 -0
  1716. package/src/plugin/Catalog.ts +118 -0
  1717. package/src/plugin/HookRegistry.ts +249 -0
  1718. package/src/plugin/HttpRoutes.ts +50 -0
  1719. package/src/plugin/Lifecycle.ts +116 -0
  1720. package/src/plugin/LocalExecution.ts +157 -0
  1721. package/src/plugin/PluginCommand.ts +219 -0
  1722. package/src/plugin/PluginManager.ts +66 -0
  1723. package/src/plugin/PluginRegistry.ts +244 -0
  1724. package/src/plugin/Plugins.ts +39 -0
  1725. package/src/plugin/ProjectConfigStore.ts +58 -0
  1726. package/src/plugins/asr/Dependency.ts +336 -0
  1727. package/src/plugins/asr/ModelCatalog.ts +43 -0
  1728. package/src/plugins/asr/Plugin.ts +640 -0
  1729. package/src/plugins/auth/Plugin.ts +208 -0
  1730. package/src/plugins/auth/runtime/AuthorizationConfig.ts +255 -0
  1731. package/src/plugins/auth/runtime/AuthorizationPolicy.ts +165 -0
  1732. package/src/plugins/auth/runtime/AuthorizationStore.ts +218 -0
  1733. package/src/plugins/skill/Action.ts +159 -0
  1734. package/src/plugins/skill/Command.ts +98 -0
  1735. package/src/plugins/skill/Config.ts +51 -0
  1736. package/src/plugins/skill/PROMPT.txt +10 -0
  1737. package/src/plugins/skill/Plugin.ts +355 -0
  1738. package/src/plugins/skill/runtime/Discovery.ts +141 -0
  1739. package/src/plugins/skill/runtime/Frontmatter.ts +17 -0
  1740. package/src/plugins/skill/runtime/Paths.ts +130 -0
  1741. package/src/plugins/skill/runtime/Prompt.ts +67 -0
  1742. package/src/plugins/skill/runtime/Store.ts +95 -0
  1743. package/src/plugins/skill/runtime/SystemProvider.ts +52 -0
  1744. package/src/plugins/skill/runtime/Types.ts +22 -0
  1745. package/src/plugins/skill/runtime/Utils.ts +28 -0
  1746. package/src/plugins/tts/Dependency.ts +473 -0
  1747. package/src/plugins/tts/Plugin.ts +554 -0
  1748. package/src/plugins/tts/runtime/Catalog.ts +97 -0
  1749. package/src/plugins/tts/runtime/DependencyInstaller.ts +436 -0
  1750. package/src/plugins/tts/runtime/Installer.ts +297 -0
  1751. package/src/plugins/tts/runtime/Paths.ts +39 -0
  1752. package/src/plugins/tts/runtime/Synthesizer.ts +480 -0
  1753. package/src/plugins/voice/Dependency.ts +329 -0
  1754. package/src/plugins/voice/ModelCatalog.ts +43 -0
  1755. package/src/plugins/voice/Plugin.ts +599 -0
  1756. package/src/plugins/voice/runtime/Catalog.ts +68 -0
  1757. package/src/plugins/voice/runtime/DependencyInstaller.ts +505 -0
  1758. package/src/plugins/voice/runtime/Installer.ts +324 -0
  1759. package/src/plugins/voice/runtime/Paths.ts +26 -0
  1760. package/src/plugins/voice/runtime/Transcriber.ts +467 -0
  1761. package/src/plugins/web/Dependency.ts +17 -0
  1762. package/src/plugins/web/PROMPT.agent-browser.txt +17 -0
  1763. package/src/plugins/web/PROMPT.txt +33 -0
  1764. package/src/plugins/web/PROMPT.web-access.txt +13 -0
  1765. package/src/plugins/web/Plugin.ts +516 -0
  1766. package/src/plugins/web/runtime/Config.ts +105 -0
  1767. package/src/plugins/web/runtime/Source.ts +263 -0
  1768. package/src/plugins/workboard/Plugin.ts +81 -0
  1769. package/src/plugins/workboard/runtime/Collector.ts +78 -0
  1770. package/src/plugins/workboard/runtime/Normalizer.ts +213 -0
  1771. package/src/plugins/workboard/runtime/Store.ts +110 -0
  1772. package/src/plugins/workboard/types/Workboard.ts +158 -0
  1773. package/src/rpc/Client.ts +110 -0
  1774. package/src/rpc/Paths.ts +43 -0
  1775. package/src/rpc/Server.ts +395 -0
  1776. package/src/rpc/Transport.ts +40 -0
  1777. package/src/runtime/AgentHostRuntime.ts +65 -0
  1778. package/src/runtime/CityPaths.ts +101 -0
  1779. package/src/runtime/CityRegistry.ts +256 -0
  1780. package/src/runtime/CityRuntime.ts +45 -0
  1781. package/src/runtime/PluginRuntime.ts +42 -0
  1782. package/src/runtime/ProcessSweep.ts +239 -0
  1783. package/src/sandbox/MacOsSeatbeltSandbox.ts +196 -0
  1784. package/src/sandbox/SandboxConfigResolver.ts +134 -0
  1785. package/src/sandbox/SandboxRunner.ts +101 -0
  1786. package/src/service/Manager.ts +25 -0
  1787. package/src/service/ServiceActionApi.ts +304 -0
  1788. package/src/service/ServiceActionRunner.ts +272 -0
  1789. package/src/service/ServiceClassRegistry.ts +77 -0
  1790. package/src/service/ServiceManager.ts +20 -0
  1791. package/src/service/ServiceStateController.ts +316 -0
  1792. package/src/service/ServiceSystemProviders.ts +50 -0
  1793. package/src/service/Services.ts +33 -0
  1794. package/src/service/schedule/Executor.ts +54 -0
  1795. package/src/service/schedule/Runtime.ts +78 -0
  1796. package/src/service/schedule/Schema.ts +34 -0
  1797. package/src/service/schedule/Store.ts +316 -0
  1798. package/src/service/schedule/Time.ts +131 -0
  1799. package/src/services/BaseService.ts +85 -0
  1800. package/src/services/README.md +100 -0
  1801. package/src/services/chat/Action.ts +477 -0
  1802. package/src/services/chat/ChatService.ts +111 -0
  1803. package/src/services/chat/Index.ts +9 -0
  1804. package/src/services/chat/PROMPT.direct.txt +55 -0
  1805. package/src/services/chat/channels/BaseChatChannel.ts +425 -0
  1806. package/src/services/chat/channels/BaseChatChannelQueue.ts +321 -0
  1807. package/src/services/chat/channels/BaseChatChannelSupport.ts +321 -0
  1808. package/src/services/chat/channels/BotInfoProvider.ts +49 -0
  1809. package/src/services/chat/channels/Configuration.ts +35 -0
  1810. package/src/services/chat/channels/ConfigurationRegistry.ts +43 -0
  1811. package/src/services/chat/channels/feishu/BotInfo.ts +199 -0
  1812. package/src/services/chat/channels/feishu/Configuration.ts +65 -0
  1813. package/src/services/chat/channels/feishu/Feishu.ts +630 -0
  1814. package/src/services/chat/channels/feishu/FeishuInbound.ts +51 -0
  1815. package/src/services/chat/channels/feishu/FeishuPlatformClient.ts +421 -0
  1816. package/src/services/chat/channels/feishu/FeishuPlatformLookup.ts +523 -0
  1817. package/src/services/chat/channels/feishu/FeishuPlatformMessaging.ts +219 -0
  1818. package/src/services/chat/channels/feishu/InboundAttachment.ts +261 -0
  1819. package/src/services/chat/channels/feishu/PROMPT.direct.txt +5 -0
  1820. package/src/services/chat/channels/feishu/PostMessage.ts +492 -0
  1821. package/src/services/chat/channels/feishu/ReplyContext.ts +68 -0
  1822. package/src/services/chat/channels/feishu/Shared.ts +94 -0
  1823. package/src/services/chat/channels/qq/BotInfo.ts +137 -0
  1824. package/src/services/chat/channels/qq/Configuration.ts +64 -0
  1825. package/src/services/chat/channels/qq/PROMPT.direct.txt +11 -0
  1826. package/src/services/chat/channels/qq/QQ.ts +629 -0
  1827. package/src/services/chat/channels/qq/QQEventCapture.ts +88 -0
  1828. package/src/services/chat/channels/qq/QQGatewayAuth.ts +318 -0
  1829. package/src/services/chat/channels/qq/QQGatewayClient.ts +641 -0
  1830. package/src/services/chat/channels/qq/QQGatewaySend.ts +258 -0
  1831. package/src/services/chat/channels/qq/QQGatewaySupport.ts +159 -0
  1832. package/src/services/chat/channels/qq/QQInbound.ts +262 -0
  1833. package/src/services/chat/channels/qq/QQInboundDedupe.ts +126 -0
  1834. package/src/services/chat/channels/qq/QQSendSupport.ts +91 -0
  1835. package/src/services/chat/channels/qq/QQSupport.ts +263 -0
  1836. package/src/services/chat/channels/qq/VoiceInput.ts +381 -0
  1837. package/src/services/chat/channels/telegram/ApiClient.ts +373 -0
  1838. package/src/services/chat/channels/telegram/Bot.ts +648 -0
  1839. package/src/services/chat/channels/telegram/BotInfo.ts +92 -0
  1840. package/src/services/chat/channels/telegram/Configuration.ts +65 -0
  1841. package/src/services/chat/channels/telegram/Handlers.ts +91 -0
  1842. package/src/services/chat/channels/telegram/PROMPT.direct.txt +1 -0
  1843. package/src/services/chat/channels/telegram/ReplyContext.ts +76 -0
  1844. package/src/services/chat/channels/telegram/Shared.ts +404 -0
  1845. package/src/services/chat/channels/telegram/StateStore.ts +58 -0
  1846. package/src/services/chat/channels/telegram/TelegramInbound.ts +186 -0
  1847. package/src/services/chat/channels/telegram/TelegramPlatformClient.ts +482 -0
  1848. package/src/services/chat/runtime/ChannelContextStore.ts +395 -0
  1849. package/src/services/chat/runtime/ChatActionExecution.ts +362 -0
  1850. package/src/services/chat/runtime/ChatActionInput.ts +590 -0
  1851. package/src/services/chat/runtime/ChatChannelActions.ts +313 -0
  1852. package/src/services/chat/runtime/ChatChannelConfig.ts +334 -0
  1853. package/src/services/chat/runtime/ChatChannelCore.ts +112 -0
  1854. package/src/services/chat/runtime/ChatChannelFacade.ts +23 -0
  1855. package/src/services/chat/runtime/ChatChannelLifecycle.ts +165 -0
  1856. package/src/services/chat/runtime/ChatHistoryStore.ts +289 -0
  1857. package/src/services/chat/runtime/ChatIngressStore.ts +88 -0
  1858. package/src/services/chat/runtime/ChatMessageMarkup.ts +263 -0
  1859. package/src/services/chat/runtime/ChatMetaStore.ts +186 -0
  1860. package/src/services/chat/runtime/ChatQueue.ts +77 -0
  1861. package/src/services/chat/runtime/ChatQueueReplyDispatch.ts +191 -0
  1862. package/src/services/chat/runtime/ChatQueueSessionBridge.ts +122 -0
  1863. package/src/services/chat/runtime/ChatQueueStore.ts +185 -0
  1864. package/src/services/chat/runtime/ChatQueueWorker.ts +504 -0
  1865. package/src/services/chat/runtime/ChatQueueWorkerSupport.ts +137 -0
  1866. package/src/services/chat/runtime/ChatSendMetadata.ts +170 -0
  1867. package/src/services/chat/runtime/ChatSendRegistry.ts +43 -0
  1868. package/src/services/chat/runtime/ChatServiceActions.ts +484 -0
  1869. package/src/services/chat/runtime/ChatServiceSystem.ts +119 -0
  1870. package/src/services/chat/runtime/ChatSession.ts +125 -0
  1871. package/src/services/chat/runtime/ChatSessionDelete.ts +95 -0
  1872. package/src/services/chat/runtime/ChatSessionExecutionComposer.ts +106 -0
  1873. package/src/services/chat/runtime/ChatkeySend.ts +187 -0
  1874. package/src/services/chat/runtime/DirectDispatchParser.ts +158 -0
  1875. package/src/services/chat/runtime/EnqueueDispatch.ts +49 -0
  1876. package/src/services/chat/runtime/InboundAugment.ts +63 -0
  1877. package/src/services/chat/runtime/PluginDispatch.ts +89 -0
  1878. package/src/services/chat/runtime/PluginPoints.ts +78 -0
  1879. package/src/services/chat/runtime/QueuedUserMessage.ts +43 -0
  1880. package/src/services/chat/runtime/ReplyContextFormatter.ts +85 -0
  1881. package/src/services/chat/runtime/ReplyDispatch.ts +78 -0
  1882. package/src/services/chat/runtime/SystemPrompt.ts +84 -0
  1883. package/src/services/chat/runtime/UIMessageTransformer.ts +141 -0
  1884. package/src/services/chat/runtime/UserVisibleText.ts +84 -0
  1885. package/src/services/chat/types/BotInfo.ts +101 -0
  1886. package/src/services/chat/types/ChannelConfiguration.ts +161 -0
  1887. package/src/services/chat/types/ChannelContext.ts +110 -0
  1888. package/src/services/chat/types/ChannelStatus.ts +98 -0
  1889. package/src/services/chat/types/ChatCommand.ts +174 -0
  1890. package/src/services/chat/types/ChatDispatcher.ts +42 -0
  1891. package/src/services/chat/types/ChatHistory.ts +42 -0
  1892. package/src/services/chat/types/ChatMessageMarkup.ts +168 -0
  1893. package/src/services/chat/types/ChatMeta.ts +35 -0
  1894. package/src/services/chat/types/ChatQueue.ts +49 -0
  1895. package/src/services/chat/types/DirectDispatch.ts +133 -0
  1896. package/src/services/chat/types/FeishuAttachment.ts +50 -0
  1897. package/src/services/chat/types/FeishuInboundAttachment.ts +138 -0
  1898. package/src/services/chat/types/FeishuPost.ts +338 -0
  1899. package/src/services/chat/types/QqInboundDedupe.ts +12 -0
  1900. package/src/services/chat/types/QqVoice.ts +126 -0
  1901. package/src/services/chat/types/ReplyContext.ts +49 -0
  1902. package/src/services/contact/Action.ts +9 -0
  1903. package/src/services/contact/ContactService.ts +799 -0
  1904. package/src/services/contact/Index.ts +8 -0
  1905. package/src/services/contact/PROMPT.txt +25 -0
  1906. package/src/services/contact/runtime/ApproveCallback.ts +97 -0
  1907. package/src/services/contact/runtime/ChatRuntime.ts +82 -0
  1908. package/src/services/contact/runtime/ContactStore.ts +299 -0
  1909. package/src/services/contact/runtime/EndpointNotice.ts +125 -0
  1910. package/src/services/contact/runtime/EndpointResolver.ts +146 -0
  1911. package/src/services/contact/runtime/InboxStore.ts +178 -0
  1912. package/src/services/contact/runtime/LinkApproval.ts +387 -0
  1913. package/src/services/contact/runtime/LinkCode.ts +70 -0
  1914. package/src/services/contact/runtime/LinkStore.ts +50 -0
  1915. package/src/services/contact/runtime/Paths.ts +139 -0
  1916. package/src/services/contact/runtime/RemoteClient.ts +137 -0
  1917. package/src/services/contact/runtime/ShareBundle.ts +286 -0
  1918. package/src/services/contact/runtime/SystemProvider.ts +22 -0
  1919. package/src/services/contact/runtime/Token.ts +40 -0
  1920. package/src/services/memory/Action.ts +188 -0
  1921. package/src/services/memory/Index.ts +9 -0
  1922. package/src/services/memory/MemoryService.ts +329 -0
  1923. package/src/services/memory/runtime/Flush.ts +83 -0
  1924. package/src/services/memory/runtime/Indexer.ts +466 -0
  1925. package/src/services/memory/runtime/Search.ts +90 -0
  1926. package/src/services/memory/runtime/Store.ts +370 -0
  1927. package/src/services/memory/runtime/SystemProvider.ts +145 -0
  1928. package/src/services/memory/runtime/Writer.ts +174 -0
  1929. package/src/services/memory/types/Memory.ts +341 -0
  1930. package/src/services/shell/Index.ts +9 -0
  1931. package/src/services/shell/ShellService.ts +199 -0
  1932. package/src/services/shell/runtime/Paths.ts +28 -0
  1933. package/src/services/shell/runtime/ShellActionRuntime.ts +579 -0
  1934. package/src/services/shell/runtime/ShellActionRuntimeSupport.ts +552 -0
  1935. package/src/services/shell/types/ShellService.ts +233 -0
  1936. package/src/services/task/Action.ts +491 -0
  1937. package/src/services/task/Index.ts +9 -0
  1938. package/src/services/task/PROMPT.txt +237 -0
  1939. package/src/services/task/Scheduler.ts +245 -0
  1940. package/src/services/task/TaskService.ts +167 -0
  1941. package/src/services/task/runtime/CronRuntime.ts +73 -0
  1942. package/src/services/task/runtime/CronTrigger.ts +110 -0
  1943. package/src/services/task/runtime/Frontmatter.ts +24 -0
  1944. package/src/services/task/runtime/Model.ts +347 -0
  1945. package/src/services/task/runtime/Paths.ts +116 -0
  1946. package/src/services/task/runtime/Runner.ts +558 -0
  1947. package/src/services/task/runtime/Store.ts +253 -0
  1948. package/src/services/task/runtime/TaskActionExecution.ts +276 -0
  1949. package/src/services/task/runtime/TaskActionInput.ts +463 -0
  1950. package/src/services/task/runtime/TaskRunArtifacts.ts +493 -0
  1951. package/src/services/task/runtime/TaskRunChatDispatch.ts +81 -0
  1952. package/src/services/task/runtime/TaskRunnerProgress.ts +112 -0
  1953. package/src/services/task/runtime/TaskRunnerRound.ts +337 -0
  1954. package/src/services/task/runtime/TaskRunnerSession.ts +167 -0
  1955. package/src/services/task/runtime/TaskServiceActions.ts +248 -0
  1956. package/src/services/task/runtime/TaskServiceSystem.ts +30 -0
  1957. package/src/services/task/types/Cron.ts +16 -0
  1958. package/src/services/task/types/Task.ts +157 -0
  1959. package/src/services/task/types/TaskCommand.ts +165 -0
  1960. package/src/session/Session.ts +237 -0
  1961. package/src/session/SessionRunScope.ts +134 -0
  1962. package/src/session/composer/SessionComposer.ts +34 -0
  1963. package/src/session/composer/compaction/SessionCompactionComposer.ts +68 -0
  1964. package/src/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.ts +100 -0
  1965. package/src/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.ts +261 -0
  1966. package/src/session/composer/execution/LocalSessionExecutionComposer.ts +169 -0
  1967. package/src/session/composer/execution/SessionExecutionComposer.ts +71 -0
  1968. package/src/session/composer/history/SessionHistoryComposer.ts +194 -0
  1969. package/src/session/composer/history/SessionHistoryWriter.ts +131 -0
  1970. package/src/session/composer/history/jsonl/JsonlSessionHistoryComposer.ts +508 -0
  1971. package/src/session/composer/system/SessionSystemComposer.ts +25 -0
  1972. package/src/session/composer/system/default/DefaultSessionSystemComposer.ts +78 -0
  1973. package/src/session/composer/system/default/InitPrompts.ts +52 -0
  1974. package/src/session/composer/system/default/PromptRenderer.ts +52 -0
  1975. package/src/session/composer/system/default/StaticPromptCatalog.ts +287 -0
  1976. package/src/session/composer/system/default/SystemDomain.ts +405 -0
  1977. package/src/session/composer/system/default/assets/core.prompt.txt +39 -0
  1978. package/src/session/composer/system/default/assets/init/PROFILE.md.txt +17 -0
  1979. package/src/session/composer/system/default/assets/init/SOUL.md.txt +88 -0
  1980. package/src/session/composer/system/default/assets/service.prompt.txt +29 -0
  1981. package/src/session/composer/system/default/assets/task.prompt.txt +33 -0
  1982. package/src/session/composer/system/default/variables/GeoContext.ts +180 -0
  1983. package/src/session/composer/system/default/variables/PromptTypes.ts +37 -0
  1984. package/src/session/composer/system/default/variables/VariableReplacer.ts +154 -0
  1985. package/src/session/executors/local/LocalSessionCore.ts +750 -0
  1986. package/src/session/executors/local/LocalSessionExecutor.ts +89 -0
  1987. package/src/session/executors/local/SessionLoopDecision.ts +80 -0
  1988. package/src/session/executors/local/SessionSignals.ts +416 -0
  1989. package/src/session/ids/resolveSessionId.ts +18 -0
  1990. package/src/session/messages/SessionAttachmentMapper.ts +155 -0
  1991. package/src/session/messages/SessionMessageCodec.ts +116 -0
  1992. package/src/session/messages/SessionMessageLog.ts +39 -0
  1993. package/src/session/messages/SessionStepEventMapper.ts +233 -0
  1994. package/src/session/tools/shell/ShellToolBridge.ts +378 -0
  1995. package/src/session/tools/shell/ShellToolDefinition.ts +509 -0
  1996. package/src/session/tools/shell/ShellToolFormatting.ts +83 -0
  1997. package/src/session/tools/shell/ShellToolSchemas.ts +120 -0
  1998. package/src/shared/constants/DowncityDefault.ts +38 -0
  1999. package/src/shared/constants/DowncitySchema.ts +377 -0
  2000. package/src/shared/types/AgentHost.ts +74 -0
  2001. package/src/shared/types/AgentProject.ts +92 -0
  2002. package/src/shared/types/AuthDashboard.ts +38 -0
  2003. package/src/shared/types/AuthPlugin.ts +545 -0
  2004. package/src/shared/types/ChatPlugin.ts +251 -0
  2005. package/src/shared/types/ChatPromptContext.ts +139 -0
  2006. package/src/shared/types/ChatQueueWorker.ts +25 -0
  2007. package/src/shared/types/ChatRuntime.ts +33 -0
  2008. package/src/shared/types/ChatService.ts +165 -0
  2009. package/src/shared/types/ClaudeSkill.ts +64 -0
  2010. package/src/shared/types/Console.ts +448 -0
  2011. package/src/shared/types/ConsoleGateway.ts +196 -0
  2012. package/src/shared/types/Daemon.ts +53 -0
  2013. package/src/shared/types/DashboardData.ts +392 -0
  2014. package/src/shared/types/DashboardRoutes.ts +31 -0
  2015. package/src/shared/types/DashboardSessionExecute.ts +99 -0
  2016. package/src/shared/types/DowncityConfig.ts +215 -0
  2017. package/src/shared/types/ExecutionBinding.ts +27 -0
  2018. package/src/shared/types/FeishuChannel.ts +131 -0
  2019. package/src/shared/types/InlineInstant.ts +96 -0
  2020. package/src/shared/types/Json.ts +34 -0
  2021. package/src/shared/types/LlmConfig.ts +115 -0
  2022. package/src/shared/types/LocalRpc.ts +72 -0
  2023. package/src/shared/types/ModelBinding.ts +18 -0
  2024. package/src/shared/types/Plugin.ts +743 -0
  2025. package/src/shared/types/PluginApi.ts +161 -0
  2026. package/src/shared/types/PluginLifecycle.ts +35 -0
  2027. package/src/shared/types/QqChannel.ts +501 -0
  2028. package/src/shared/types/QqGatewaySupport.ts +97 -0
  2029. package/src/shared/types/README.md +53 -0
  2030. package/src/shared/types/Sandbox.ts +144 -0
  2031. package/src/shared/types/Service.ts +223 -0
  2032. package/src/shared/types/ServiceSchedule.ts +134 -0
  2033. package/src/shared/types/ServiceState.ts +112 -0
  2034. package/src/shared/types/Services.ts +100 -0
  2035. package/src/shared/types/Shell.ts +103 -0
  2036. package/src/shared/types/SkillCommand.ts +90 -0
  2037. package/src/shared/types/SkillPlugin.ts +107 -0
  2038. package/src/shared/types/SkillRoot.ts +49 -0
  2039. package/src/shared/types/Start.ts +16 -0
  2040. package/src/shared/types/Store.ts +400 -0
  2041. package/src/shared/types/TaskService.ts +55 -0
  2042. package/src/shared/types/Template.ts +9 -0
  2043. package/src/shared/types/Tts.ts +99 -0
  2044. package/src/shared/types/TtsPlugin.ts +164 -0
  2045. package/src/shared/types/Voice.ts +68 -0
  2046. package/src/shared/types/VoicePlugin.ts +194 -0
  2047. package/src/shared/types/WebPlugin.ts +141 -0
  2048. package/src/shared/types/auth/AuthPermission.ts +126 -0
  2049. package/src/shared/types/auth/AuthRoute.ts +31 -0
  2050. package/src/shared/types/auth/AuthToken.ts +47 -0
  2051. package/src/shared/types/auth/AuthTypes.ts +235 -0
  2052. package/src/shared/utils/Id.ts +13 -0
  2053. package/src/shared/utils/README.md +49 -0
  2054. package/src/shared/utils/Template.ts +28 -0
  2055. package/src/shared/utils/Time.ts +77 -0
  2056. package/src/shared/utils/cli/Checker.ts +19 -0
  2057. package/src/shared/utils/cli/CliOutput.ts +128 -0
  2058. package/src/shared/utils/cli/PrettyStatus.ts +94 -0
  2059. package/src/shared/utils/logger/Fetch.ts +93 -0
  2060. package/src/shared/utils/logger/Format.ts +15 -0
  2061. package/src/shared/utils/logger/FormatRequest.ts +455 -0
  2062. package/src/shared/utils/logger/FormatResponse.ts +265 -0
  2063. package/src/shared/utils/logger/FormatShared.ts +258 -0
  2064. package/src/shared/utils/logger/Logger.ts +372 -0
  2065. package/src/shared/utils/storage/index.ts +26 -0
  2066. package/src/shared/utils/store/StoreChannelAccountRepository.ts +269 -0
  2067. package/src/shared/utils/store/StoreEnvRepository.ts +452 -0
  2068. package/src/shared/utils/store/StoreModelRepository.ts +309 -0
  2069. package/src/shared/utils/store/StoreSchema.ts +344 -0
  2070. package/src/shared/utils/store/StoreSecureSettings.ts +126 -0
  2071. package/src/shared/utils/store/StoreShared.ts +67 -0
  2072. package/src/shared/utils/store/crypto.ts +112 -0
  2073. package/src/shared/utils/store/index.ts +487 -0
  2074. package/src/shared/utils/store/schema.ts +103 -0
  2075. package/src/types/agent/AgentContext.ts +380 -0
  2076. package/src/types/agent/AgentRuntime.ts +86 -0
  2077. package/src/types/chat/ChatSession.ts +32 -0
  2078. package/src/types/city/PublicHostEnv.ts +76 -0
  2079. package/src/types/cli/AgentChat.ts +172 -0
  2080. package/src/types/cli/AgentSelection.ts +162 -0
  2081. package/src/types/cli/CliReporter.ts +167 -0
  2082. package/src/types/cli/ModelManager.ts +139 -0
  2083. package/src/types/contact/Contact.ts +82 -0
  2084. package/src/types/contact/ContactApproval.ts +150 -0
  2085. package/src/types/contact/ContactChat.ts +47 -0
  2086. package/src/types/contact/ContactCheck.ts +67 -0
  2087. package/src/types/contact/ContactCommand.ts +98 -0
  2088. package/src/types/contact/ContactEndpoint.ts +16 -0
  2089. package/src/types/contact/ContactLink.ts +169 -0
  2090. package/src/types/contact/ContactShare.ts +172 -0
  2091. package/src/types/sandbox/SandboxRuntime.ts +377 -0
  2092. package/src/types/session/SessionExecutor.ts +33 -0
  2093. package/src/types/session/SessionHistoryMeta.ts +26 -0
  2094. package/src/types/session/SessionHistoryPaths.ts +33 -0
  2095. package/src/types/session/SessionLoop.ts +95 -0
  2096. package/src/types/session/SessionMessages.ts +90 -0
  2097. package/src/types/session/SessionPrompts.ts +14 -0
  2098. package/src/types/session/SessionRun.ts +116 -0
  2099. package/src/types/shell/ShellRuntime.ts +94 -0
  2100. package/src/types/task/TaskRunner.ts +199 -0
  2101. package/tsconfig.json +28 -0
  2102. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,504 @@
1
+ /**
2
+ * ChatQueueWorker:chat service 侧队列执行器。
3
+ *
4
+ * 关键点(中文)
5
+ * - 消费 services / chat 的队列模块
6
+ * - 通过 SessionRunScope(ALS)透传 sessionId
7
+ * - 支持 step 边界合并(同 lane 新消息可插入当前 run)
8
+ */
9
+
10
+ import type { Logger } from "@shared/utils/logger/Logger.js";
11
+ import type { SessionRunResult } from "@/types/session/SessionRun.js";
12
+ import type {
13
+ SessionUserMessageV1,
14
+ } from "@/types/session/SessionMessages.js";
15
+ import type { AgentContext } from "@/types/agent/AgentContext.js";
16
+ import type { ChatQueueWorkerConfig } from "@/shared/types/ChatQueueWorker.js";
17
+ import type { JsonObject } from "@/shared/types/Json.js";
18
+ import type { ChatQueueItem } from "@services/chat/types/ChatQueue.js";
19
+ import {
20
+ getSharedChatQueueStore,
21
+ } from "./ChatQueue.js";
22
+ import { getChatSender } from "./ChatSendRegistry.js";
23
+ import {
24
+ appendChatIngressMessageIfNeeded,
25
+ appendChatRunErrorMessage,
26
+ buildChatIngressExtra,
27
+ persistChatRunResult,
28
+ shouldAppendChatIngressMessage,
29
+ toMergedStepUserMessage,
30
+ } from "./ChatQueueSessionBridge.js";
31
+ import {
32
+ hasPersistedAssistantSteps,
33
+ pickLastSuccessfulChatSendText,
34
+ } from "./UserVisibleText.js";
35
+ import {
36
+ buildChannelErrorText,
37
+ collectInitialBurstItems,
38
+ normalizeChatQueueWorkerConfig,
39
+ } from "./ChatQueueWorkerSupport.js";
40
+ import type { ChatQueueStorePort } from "./ChatQueueStore.js";
41
+ import {
42
+ dispatchAssistantTextDirect,
43
+ dispatchTextToChannel,
44
+ } from "./ChatQueueReplyDispatch.js";
45
+
46
+ const TYPING_ACTION_INTERVAL_MS = 4_000;
47
+
48
+ type LaneState = {
49
+ key: string;
50
+ running: boolean;
51
+ };
52
+
53
+ export class ChatQueueWorker {
54
+ private readonly logger: Logger;
55
+ private readonly context: AgentContext;
56
+ private readonly config: ChatQueueWorkerConfig;
57
+ private readonly queueStore: ChatQueueStorePort;
58
+
59
+ private readonly lanes: Map<string, LaneState> = new Map();
60
+ private readonly runnable: string[] = [];
61
+ private readonly runnableSet: Set<string> = new Set();
62
+ private runningTotal: number = 0;
63
+ private unsubscribe?: () => void;
64
+ private stopped = false;
65
+
66
+ constructor(params: {
67
+ logger: Logger;
68
+ context: AgentContext;
69
+ queueStore?: ChatQueueStorePort;
70
+ config?: Partial<ChatQueueWorkerConfig>;
71
+ }) {
72
+ this.logger = params.logger;
73
+ this.context = params.context;
74
+ this.config = normalizeChatQueueWorkerConfig(params.config);
75
+ this.queueStore = params.queueStore || getSharedChatQueueStore();
76
+ }
77
+
78
+ /**
79
+ * 启动 worker。
80
+ */
81
+ start(): void {
82
+ if (this.unsubscribe) return;
83
+ this.stopped = false;
84
+ this.unsubscribe = this.queueStore.onEnqueue((laneKey) => {
85
+ this.markRunnable(laneKey);
86
+ void this.requestTurnCancelIfSupported(laneKey);
87
+ void this.kick();
88
+ });
89
+
90
+ // 初始化已有 lanes
91
+ for (const laneKey of this.queueStore.listLanes()) {
92
+ this.markRunnable(laneKey);
93
+ }
94
+ void this.kick();
95
+ }
96
+
97
+ /**
98
+ * 停止 worker(不清队列)。
99
+ */
100
+ stop(): void {
101
+ this.stopped = true;
102
+ if (this.unsubscribe) this.unsubscribe();
103
+ this.unsubscribe = undefined;
104
+ }
105
+
106
+ private getOrCreateLane(key: string): LaneState {
107
+ const existing = this.lanes.get(key);
108
+ if (existing) return existing;
109
+ const lane: LaneState = { key, running: false };
110
+ this.lanes.set(key, lane);
111
+ return lane;
112
+ }
113
+
114
+ private markRunnable(key: string): void {
115
+ if (this.runnableSet.has(key)) return;
116
+ this.runnableSet.add(key);
117
+ this.runnable.push(key);
118
+ }
119
+
120
+ private pickNextRunnableLane(): LaneState | null {
121
+ while (this.runnable.length > 0) {
122
+ const key = this.runnable.shift()!;
123
+ this.runnableSet.delete(key);
124
+ const lane = this.getOrCreateLane(key);
125
+ if (lane.running) continue;
126
+ if (this.queueStore.getLaneSize(key) === 0) continue;
127
+ return lane;
128
+ }
129
+ return null;
130
+ }
131
+
132
+ private async kick(): Promise<void> {
133
+ if (this.stopped) return;
134
+ while (this.runningTotal < this.config.maxConcurrency) {
135
+ const lane = this.pickNextRunnableLane();
136
+ if (!lane) return;
137
+
138
+ lane.running = true;
139
+ this.runningTotal += 1;
140
+ void this.runLaneOnce(lane)
141
+ .catch((err) => {
142
+ this.logger.error(`ChatQueueWorker lane failed: ${String(err)}`);
143
+ })
144
+ .finally(() => {
145
+ lane.running = false;
146
+ this.runningTotal -= 1;
147
+ if (!this.stopped) {
148
+ if (this.queueStore.getLaneSize(lane.key) > 0) {
149
+ this.markRunnable(lane.key);
150
+ }
151
+ void this.kick();
152
+ }
153
+ });
154
+ }
155
+ }
156
+
157
+ private async runLaneOnce(lane: LaneState): Promise<void> {
158
+ const first = this.queueStore.shift(lane.key);
159
+ if (!first) return;
160
+ await this.processOne(lane.key, first);
161
+ }
162
+
163
+ /**
164
+ * 若底层 runtime 支持取消当前 turn,则在新消息入队时立刻触发。
165
+ *
166
+ * 关键点(中文)
167
+ * - 只对支持显式取消的 runtime 生效(主要是 ACP)。
168
+ * - 失败不影响正常排队;worker 仍会走串行兜底。
169
+ */
170
+ private async requestTurnCancelIfSupported(sessionId: string): Promise<void> {
171
+ const sessionKey = String(sessionId || "").trim();
172
+ if (!sessionKey) return;
173
+ try {
174
+ // ACP executor removed; cancel is no longer supported through session executor port.
175
+ } catch {
176
+ // ignore
177
+
178
+ return;
179
+ // ignore
180
+ }
181
+ }
182
+
183
+ private shouldAppendSessionMessage(item: ChatQueueItem): boolean {
184
+ return shouldAppendChatIngressMessage(item);
185
+ }
186
+
187
+ /**
188
+ * 统一补齐入站消息分类标记。
189
+ *
190
+ * 关键点(中文)
191
+ * - 当前 message history 仅写入 `exec`,所以固定写 `ingressKind=exec`。
192
+ */
193
+ private buildIngressExtra(item: ChatQueueItem): JsonObject {
194
+ return buildChatIngressExtra(item);
195
+ }
196
+
197
+ private async appendSessionMessageIfNeeded(item: ChatQueueItem): Promise<void> {
198
+ if (!this.shouldAppendSessionMessage(item)) return;
199
+ await appendChatIngressMessageIfNeeded({
200
+ session: this.requireContext(item.sessionId),
201
+ item,
202
+ });
203
+ }
204
+
205
+ private handleControl(item: ChatQueueItem): boolean {
206
+ const control = item.control;
207
+ if (!control) return false;
208
+ if (control.type === "clear") {
209
+ this.requireContext(item.sessionId).clearExecutor();
210
+ this.queueStore.clear(item.sessionId);
211
+ return true;
212
+ }
213
+ return false;
214
+ }
215
+
216
+ /**
217
+ * 在单次执行期间维持“正在输入”心跳。
218
+ *
219
+ * 关键点(中文)
220
+ * - 通过 services / chat 的 dispatcher 发送动作(不经过 main bindings)
221
+ * - 先发送一次,再按固定间隔续发
222
+ * - 发送失败不影响主执行流程(best-effort)
223
+ */
224
+ private startTypingHeartbeat(item: ChatQueueItem): { stop: () => void } {
225
+ const chatId = String(item.targetId || "").trim();
226
+ if (!chatId) return { stop: () => {} };
227
+
228
+ const dispatcher = getChatSender(item.channel);
229
+ const sendAction = dispatcher?.sendAction;
230
+ if (typeof sendAction !== "function") {
231
+ return { stop: () => {} };
232
+ }
233
+
234
+ const sendOnce = async () => {
235
+ try {
236
+ await sendAction({
237
+ chatId,
238
+ action: "typing",
239
+ ...(typeof item.threadId === "number"
240
+ ? { messageThreadId: item.threadId }
241
+ : {}),
242
+ ...(typeof item.targetType === "string" && item.targetType
243
+ ? { chatType: item.targetType }
244
+ : {}),
245
+ ...(typeof item.messageId === "string" && item.messageId
246
+ ? { messageId: item.messageId }
247
+ : {}),
248
+ });
249
+ } catch {
250
+ // ignore
251
+ }
252
+ };
253
+
254
+ void sendOnce();
255
+ const timer = setInterval(() => {
256
+ void sendOnce();
257
+ }, TYPING_ACTION_INTERVAL_MS);
258
+ if (typeof timer.unref === "function") timer.unref();
259
+
260
+ return {
261
+ stop: () => clearInterval(timer),
262
+ };
263
+ }
264
+
265
+ /**
266
+ * 发送 step 文本到 chat。
267
+ *
268
+ * 关键点(中文)
269
+ * - step 必须在当前回调阶段真正送达,不能依赖 run 结束后的 final 兜底。
270
+ * - 先尝试 direct 路径,保留 frontmatter / reaction 等语义。
271
+ * - 若 direct 未送达,则立刻回退到普通 channel 文本发送。
272
+ */
273
+ private async dispatchAssistantStepMessage(params: {
274
+ sessionId: string;
275
+ text: string;
276
+ messageId?: string;
277
+ }): Promise<boolean> {
278
+ const stepText = String(params.text || "").trim();
279
+ if (!stepText) return false;
280
+
281
+ const dispatchedDirectly = await dispatchAssistantTextDirect({
282
+ logger: this.logger,
283
+ context: this.context,
284
+ sessionId: params.sessionId,
285
+ assistantText: stepText,
286
+ phase: "step",
287
+ });
288
+ if (dispatchedDirectly) {
289
+ return true;
290
+ }
291
+
292
+ return await dispatchTextToChannel({
293
+ logger: this.logger,
294
+ context: this.context,
295
+ sessionId: params.sessionId,
296
+ text: stepText,
297
+ messageId: params.messageId,
298
+ phase: "step",
299
+ });
300
+ }
301
+
302
+ private async processOne(laneKey: string, first: ChatQueueItem): Promise<void> {
303
+ if (first.kind === "control") {
304
+ this.handleControl(first);
305
+ return;
306
+ }
307
+
308
+ if (first.kind === "audit") {
309
+ await this.appendSessionMessageIfNeeded(first);
310
+ return;
311
+ }
312
+
313
+ const serviceContext = this.requireContext(first.sessionId);
314
+ let runItem = first;
315
+
316
+ let clearRequested = false;
317
+ const initialBurstItems = await collectInitialBurstItems({
318
+ laneKey,
319
+ first,
320
+ config: this.config,
321
+ queueStore: this.queueStore,
322
+ });
323
+ for (const item of initialBurstItems) {
324
+ if (item.kind === "control") {
325
+ if (item.control?.type === "clear") clearRequested = true;
326
+ continue;
327
+ }
328
+ await this.appendSessionMessageIfNeeded(item);
329
+ if (item.kind === "exec") {
330
+ runItem = item;
331
+ }
332
+ }
333
+
334
+ const onStepCallback = async (): Promise<SessionUserMessageV1[]> => {
335
+ const drainedItems = this.queueStore.drain(laneKey);
336
+ if (drainedItems.length === 0) return [];
337
+ const mergedExecMessages: SessionUserMessageV1[] = [];
338
+ for (const item of drainedItems) {
339
+ if (item.kind === "control") {
340
+ if (item.control?.type === "clear") clearRequested = true;
341
+ continue;
342
+ }
343
+
344
+ await this.appendSessionMessageIfNeeded(item);
345
+ if (item.kind === "exec") {
346
+ const mergedMessage = toMergedStepUserMessage(item);
347
+ if (mergedMessage) mergedExecMessages.push(mergedMessage);
348
+ }
349
+ }
350
+ return mergedExecMessages;
351
+ };
352
+ let assistantStepDispatched = false;
353
+ const onAssistantStepCallback = async (params: {
354
+ text: string;
355
+ stepIndex: number;
356
+ visibility?: "visible" | "internal";
357
+ }): Promise<void> => {
358
+ if (params.visibility === "internal") return;
359
+ const stepText = String(params.text || "").trim();
360
+ if (!stepText) return;
361
+ const dispatched = await this.dispatchAssistantStepMessage({
362
+ sessionId: runItem.sessionId,
363
+ text: stepText,
364
+ messageId: runItem.messageId,
365
+ });
366
+ if (dispatched) {
367
+ assistantStepDispatched = true;
368
+ }
369
+ };
370
+
371
+ const typing = this.startTypingHeartbeat(runItem);
372
+ let result: SessionRunResult;
373
+ try {
374
+ result = await serviceContext.run({
375
+ query: runItem.text,
376
+ onStepCallback,
377
+ onAssistantStepCallback,
378
+ });
379
+ } catch (error) {
380
+ const channelErrorText = buildChannelErrorText(error);
381
+ this.logger.error("ChatQueueWorker execution failed", {
382
+ sessionId: runItem.sessionId,
383
+ error: String(error),
384
+ });
385
+
386
+ try {
387
+ await appendChatRunErrorMessage({
388
+ session: serviceContext,
389
+ text: channelErrorText,
390
+ });
391
+ } catch {
392
+ // ignore
393
+ }
394
+
395
+ await dispatchTextToChannel({
396
+ logger: this.logger,
397
+ context: this.context,
398
+ sessionId: runItem.sessionId,
399
+ text: channelErrorText,
400
+ messageId: runItem.messageId,
401
+ phase: "error",
402
+ });
403
+ return;
404
+ } finally {
405
+ typing.stop();
406
+ }
407
+
408
+ if (clearRequested) {
409
+ serviceContext.clearExecutor();
410
+ this.queueStore.clear(runItem.sessionId);
411
+ }
412
+
413
+ const stopReason = String(
414
+ result.assistantMessage?.metadata?.extra?.stopReason || "",
415
+ ).trim();
416
+ if (stopReason === "cancelled") {
417
+ return;
418
+ }
419
+
420
+ if (!result.success) {
421
+ const resultErrorText =
422
+ pickLastSuccessfulChatSendText(result.assistantMessage) ||
423
+ result.error ||
424
+ "Execution failed";
425
+ const channelErrorText = buildChannelErrorText(resultErrorText);
426
+ this.logger.error("ChatQueueWorker execution returned failure", {
427
+ sessionId: runItem.sessionId,
428
+ error: result.error || resultErrorText,
429
+ });
430
+
431
+ try {
432
+ await appendChatRunErrorMessage({
433
+ session: serviceContext,
434
+ text: channelErrorText,
435
+ });
436
+ } catch {
437
+ // ignore
438
+ }
439
+
440
+ await dispatchTextToChannel({
441
+ logger: this.logger,
442
+ context: this.context,
443
+ sessionId: runItem.sessionId,
444
+ text: channelErrorText,
445
+ messageId: runItem.messageId,
446
+ phase: "error",
447
+ });
448
+ return;
449
+ }
450
+
451
+ try {
452
+ await persistChatRunResult({
453
+ session: serviceContext,
454
+ sessionId: runItem.sessionId,
455
+ result,
456
+ });
457
+ } catch {
458
+ // ignore
459
+ }
460
+
461
+ // 关键点(中文):
462
+ // - 若 step 文本已经单独回发,则保持当前行为,不再重复发送最终 merged assistant。
463
+ // - 若本轮没有任何 step 回发,则必须把最终 assistant 文本补发到 chat channel,
464
+ // 否则会出现“context message 已写入,但 chat history / 实际渠道没有回复”的断链。
465
+ if (assistantStepDispatched || hasPersistedAssistantSteps(result.assistantMessage)) {
466
+ return;
467
+ }
468
+
469
+ const finalAssistantText = pickLastSuccessfulChatSendText(result.assistantMessage);
470
+ if (!finalAssistantText) {
471
+ return;
472
+ }
473
+
474
+ const dispatchedDirectly = await dispatchAssistantTextDirect({
475
+ logger: this.logger,
476
+ context: this.context,
477
+ sessionId: runItem.sessionId,
478
+ assistantText: finalAssistantText,
479
+ phase: "final",
480
+ });
481
+ if (dispatchedDirectly) {
482
+ return;
483
+ }
484
+
485
+ await dispatchTextToChannel({
486
+ logger: this.logger,
487
+ context: this.context,
488
+ sessionId: runItem.sessionId,
489
+ text: finalAssistantText,
490
+ messageId: runItem.messageId,
491
+ phase: "final",
492
+ });
493
+ }
494
+
495
+ /**
496
+ * 读取 session 端口。
497
+ *
498
+ * 关键点(中文)
499
+ * - 在使用点显式校验,避免隐藏依赖来源。
500
+ */
501
+ private requireContext(sessionId: string) {
502
+ return this.context.session.get(sessionId);
503
+ }
504
+ }
@@ -0,0 +1,137 @@
1
+ /**
2
+ * ChatQueueWorkerSupport:chat queue worker 的通用辅助模块。
3
+ *
4
+ * 关键点(中文)
5
+ * - 收敛 burst merge、错误文本构造、worker 配置归一化等辅助逻辑。
6
+ * - 这些逻辑与 lane 调度主流程正交,拆出后让 ChatQueueWorker 更聚焦。
7
+ */
8
+
9
+ import type { ChatQueueWorkerConfig } from "@/shared/types/ChatQueueWorker.js";
10
+ import type { ChatQueueItem } from "@services/chat/types/ChatQueue.js";
11
+ import type { ChatQueueStorePort } from "./ChatQueueStore.js";
12
+
13
+ const CHANNEL_ERROR_TEXT_MAX_LENGTH = 480;
14
+ const DEFAULT_MERGE_DEBOUNCE_MS = 600;
15
+ const DEFAULT_MERGE_MAX_WAIT_MS = 2_000;
16
+ const BURST_MERGE_POLL_INTERVAL_MS = 20;
17
+
18
+ /**
19
+ * 归一化 worker 配置。
20
+ */
21
+ export function normalizeChatQueueWorkerConfig(
22
+ input?: Partial<ChatQueueWorkerConfig>,
23
+ ): ChatQueueWorkerConfig {
24
+ const maxConcurrency =
25
+ typeof input?.maxConcurrency === "number" && Number.isFinite(input.maxConcurrency)
26
+ ? Math.max(1, Math.min(32, Math.floor(input.maxConcurrency)))
27
+ : 2;
28
+
29
+ const mergeDebounceMs =
30
+ typeof input?.mergeDebounceMs === "number" &&
31
+ Number.isFinite(input.mergeDebounceMs)
32
+ ? Math.max(0, Math.min(60_000, Math.floor(input.mergeDebounceMs)))
33
+ : DEFAULT_MERGE_DEBOUNCE_MS;
34
+
35
+ const mergeMaxWaitMs =
36
+ typeof input?.mergeMaxWaitMs === "number" &&
37
+ Number.isFinite(input.mergeMaxWaitMs)
38
+ ? Math.max(0, Math.min(120_000, Math.floor(input.mergeMaxWaitMs)))
39
+ : DEFAULT_MERGE_MAX_WAIT_MS;
40
+
41
+ return { maxConcurrency, mergeDebounceMs, mergeMaxWaitMs };
42
+ }
43
+
44
+ /**
45
+ * 判断是否启用“启动前消息合并”。
46
+ */
47
+ export function isBurstMergeEnabled(config: ChatQueueWorkerConfig): boolean {
48
+ return config.mergeDebounceMs > 0 && config.mergeMaxWaitMs > 0;
49
+ }
50
+
51
+ /**
52
+ * 判断是否为上游模型服务临时不可用。
53
+ */
54
+ export function isTemporaryModelServiceUnavailable(error: unknown): boolean {
55
+ const msg = String(error ?? "");
56
+ return (
57
+ /Service temporarily unavailable/i.test(msg) ||
58
+ /AI_RetryError/i.test(msg) ||
59
+ /AI_APICallError/i.test(msg) ||
60
+ /maxRetriesExceeded/i.test(msg) ||
61
+ /\b503\b/.test(msg)
62
+ );
63
+ }
64
+
65
+ /**
66
+ * 构造回发到 channel 的失败文本。
67
+ */
68
+ export function buildChannelErrorText(error: unknown): string {
69
+ if (isTemporaryModelServiceUnavailable(error)) {
70
+ return "⚠️ 模型服务暂时不可用(503),系统已自动重试但仍失败,请稍后再试。";
71
+ }
72
+
73
+ const normalized = String(error ?? "").replace(/\s+/g, " ").trim();
74
+ if (/AI_NoOutputGeneratedError|No output generated/i.test(normalized)) {
75
+ return "❌ 模型本轮没有生成可发送内容。系统已记录底层 stream 错误,请稍后重试。";
76
+ }
77
+
78
+ if (!normalized) {
79
+ return "❌ 执行失败,请稍后重试。";
80
+ }
81
+
82
+ const clipped =
83
+ normalized.length > CHANNEL_ERROR_TEXT_MAX_LENGTH
84
+ ? `${normalized.slice(0, CHANNEL_ERROR_TEXT_MAX_LENGTH)}…`
85
+ : normalized;
86
+ return `❌ 执行失败:${clipped}`;
87
+ }
88
+
89
+ /**
90
+ * 等待一小段时间,让同 lane 的连续消息尽量在一次 run 前合并。
91
+ */
92
+ export async function collectInitialBurstItems(params: {
93
+ laneKey: string;
94
+ first: ChatQueueItem;
95
+ config: ChatQueueWorkerConfig;
96
+ queueStore: ChatQueueStorePort;
97
+ }): Promise<ChatQueueItem[]> {
98
+ if (params.first.kind !== "exec") return [params.first];
99
+ if (!isBurstMergeEnabled(params.config)) return [params.first];
100
+
101
+ const startedAt = Date.now();
102
+ let lastInboundAt = startedAt;
103
+ let knownLaneSize = params.queueStore.getLaneSize(params.laneKey);
104
+
105
+ while (true) {
106
+ const now = Date.now();
107
+ const idleMs = now - lastInboundAt;
108
+ const elapsedMs = now - startedAt;
109
+ if (idleMs >= params.config.mergeDebounceMs) break;
110
+ if (elapsedMs >= params.config.mergeMaxWaitMs) break;
111
+
112
+ const remainingDebounceMs = params.config.mergeDebounceMs - idleMs;
113
+ const remainingMaxWaitMs = params.config.mergeMaxWaitMs - elapsedMs;
114
+ const sleepMs = Math.max(
115
+ 1,
116
+ Math.min(
117
+ BURST_MERGE_POLL_INTERVAL_MS,
118
+ remainingDebounceMs,
119
+ remainingMaxWaitMs,
120
+ ),
121
+ );
122
+
123
+ await new Promise<void>((resolve) => {
124
+ const timer = setTimeout(resolve, sleepMs);
125
+ if (typeof timer.unref === "function") timer.unref();
126
+ });
127
+
128
+ const laneSize = params.queueStore.getLaneSize(params.laneKey);
129
+ if (laneSize > knownLaneSize) {
130
+ knownLaneSize = laneSize;
131
+ lastInboundAt = Date.now();
132
+ }
133
+ }
134
+
135
+ const drained = params.queueStore.drain(params.laneKey);
136
+ return drained.length > 0 ? [params.first, ...drained] : [params.first];
137
+ }