@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,253 @@
1
+ /**
2
+ * Task storage (disk-backed).
3
+ *
4
+ * 关键点(中文)
5
+ * - Task 的“唯一来源”是 `./.downcity/task/<taskId>/task.md`
6
+ * - list/read/write 都只围绕 markdown 文件与目录结构,不引入数据库
7
+ * - 运行产物目录:`./.downcity/task/<taskId>/<timestamp>/...`
8
+ */
9
+
10
+ import fs from "fs-extra";
11
+ import path from "node:path";
12
+ import type { ShipTaskDefinitionV1, ShipTaskFrontmatterV1 } from "@services/task/types/Task.js";
13
+ import { parseTaskMarkdown, buildTaskMarkdown } from "./Model.js";
14
+ import {
15
+ deriveTaskIdFromTitle,
16
+ isValidTaskId,
17
+ getTaskDir,
18
+ getTaskMdPath,
19
+ getTaskRootDir,
20
+ getTaskRunDir,
21
+ normalizeTaskId,
22
+ } from "./Paths.js";
23
+
24
+ /**
25
+ * Task 列表项(面向 UI/CLI 展示)。
26
+ */
27
+ export type TaskListItem = {
28
+ taskId: string;
29
+ title: string;
30
+ description: string;
31
+ body?: string;
32
+ when: string;
33
+ status: string;
34
+ sessionId: string;
35
+ kind?: "agent" | "script";
36
+ review?: boolean;
37
+ taskMdPath: string;
38
+ lastRunTimestamp?: string;
39
+ };
40
+
41
+ /**
42
+ * 判断目录名是否为 run 时间戳格式。
43
+ */
44
+ function isDirectoryNameTimestamp(name: string): boolean {
45
+ const s = String(name || "").trim();
46
+ if (!s) return false;
47
+ // 例如 20260209-083000-123
48
+ return /^\d{8}-\d{6}-\d{3}$/.test(s);
49
+ }
50
+
51
+ /**
52
+ * 列出全部任务。
53
+ *
54
+ * 算法(中文)
55
+ * - 遍历 `.downcity/task/*` 目录并解析每个 `task.md`。
56
+ * - 通过子目录时间戳推断 `lastRunTimestamp`。
57
+ */
58
+ export async function listTasks(projectRoot: string): Promise<TaskListItem[]> {
59
+ const root = String(projectRoot || "").trim();
60
+ if (!root) return [];
61
+
62
+ const dir = getTaskRootDir(root);
63
+ await fs.ensureDir(dir);
64
+
65
+ let entries: Array<import("node:fs").Dirent> = [];
66
+ try {
67
+ entries = await fs.readdir(dir, { withFileTypes: true });
68
+ } catch {
69
+ entries = [];
70
+ }
71
+
72
+ const items: TaskListItem[] = [];
73
+ for (const entry of entries) {
74
+ if (!entry.isDirectory()) continue;
75
+ const taskId = String(entry.name || "").trim();
76
+ if (!taskId || taskId.startsWith(".")) continue;
77
+ if (!isValidTaskId(taskId)) continue;
78
+
79
+ const taskMdPath = getTaskMdPath(root, taskId);
80
+ let raw = "";
81
+ try {
82
+ raw = await fs.readFile(taskMdPath, "utf-8");
83
+ } catch {
84
+ continue;
85
+ }
86
+
87
+ const parsed = parseTaskMarkdown({
88
+ taskId,
89
+ markdown: raw,
90
+ taskMdPath,
91
+ projectRoot: root,
92
+ });
93
+ if (!parsed.ok) continue;
94
+
95
+ // last run: pick latest timestamp dir (lexicographic works for our timestamp format)
96
+ let lastRunTimestamp: string | undefined;
97
+ try {
98
+ const taskDir = getTaskDir(root, taskId);
99
+ const child = await fs.readdir(taskDir, { withFileTypes: true });
100
+ const ts = child
101
+ .filter((d) => d.isDirectory() && isDirectoryNameTimestamp(d.name))
102
+ .map((d) => d.name)
103
+ .sort()
104
+ .at(-1);
105
+ if (ts) lastRunTimestamp = ts;
106
+ } catch {
107
+ // ignore
108
+ }
109
+
110
+ items.push({
111
+ taskId,
112
+ title: parsed.task.frontmatter.title,
113
+ description: parsed.task.frontmatter.description,
114
+ ...(parsed.task.body ? { body: parsed.task.body } : {}),
115
+ when: parsed.task.frontmatter.when,
116
+ status: parsed.task.frontmatter.status,
117
+ sessionId: parsed.task.frontmatter.sessionId,
118
+ kind: parsed.task.frontmatter.kind || "agent",
119
+ ...(parsed.task.frontmatter.kind === "agent"
120
+ ? { review: Boolean(parsed.task.frontmatter.review) }
121
+ : {}),
122
+ taskMdPath: parsed.task.taskMdPath,
123
+ ...(lastRunTimestamp ? { lastRunTimestamp } : {}),
124
+ });
125
+ }
126
+
127
+ items.sort((a, b) => a.taskId.localeCompare(b.taskId));
128
+ return items;
129
+ }
130
+
131
+ /**
132
+ * 根据 title 解析 taskId。
133
+ *
134
+ * 关键点(中文)
135
+ * - 对外只暴露 title,因此运行/状态/删除链路需要先定位真实目录键。
136
+ * - 若磁盘中存在同 title 多定义,会拒绝并提示冲突。
137
+ */
138
+ export async function resolveTaskIdByTitle(params: {
139
+ projectRoot: string;
140
+ title: string;
141
+ }): Promise<string> {
142
+ const root = String(params.projectRoot || "").trim();
143
+ if (!root) throw new Error("projectRoot is required");
144
+ const title = String(params.title || "").trim();
145
+ if (!title) throw new Error("title is required");
146
+
147
+ const tasks = await listTasks(root);
148
+ const matched = tasks.filter((item) => String(item.title || "").trim() === title);
149
+ if (matched.length === 1) return matched[0].taskId;
150
+ if (matched.length > 1) {
151
+ throw new Error(`Duplicated task title found: "${title}". Please keep title unique.`);
152
+ }
153
+ return deriveTaskIdFromTitle(title);
154
+ }
155
+
156
+ /**
157
+ * 读取单个任务定义。
158
+ */
159
+ export async function readTask(params: { taskId: string; projectRoot: string }): Promise<ShipTaskDefinitionV1> {
160
+ const root = String(params.projectRoot || "").trim();
161
+ if (!root) throw new Error("projectRoot is required");
162
+ const taskId = normalizeTaskId(params.taskId);
163
+
164
+ const taskMdPath = getTaskMdPath(root, taskId);
165
+ const raw = await fs.readFile(taskMdPath, "utf-8");
166
+ const parsed = parseTaskMarkdown({
167
+ taskId,
168
+ markdown: raw,
169
+ taskMdPath,
170
+ projectRoot: root,
171
+ });
172
+ if (!parsed.ok) throw new Error(parsed.error);
173
+ return parsed.task;
174
+ }
175
+
176
+ /**
177
+ * 删除单个任务目录(包含 task.md 与历史 run 产物)。
178
+ */
179
+ export async function deleteTask(params: {
180
+ taskId: string;
181
+ projectRoot: string;
182
+ }): Promise<{ taskId: string; taskDirPath: string }> {
183
+ const root = String(params.projectRoot || "").trim();
184
+ if (!root) throw new Error("projectRoot is required");
185
+ const taskId = normalizeTaskId(params.taskId);
186
+
187
+ const taskMdPath = getTaskMdPath(root, taskId);
188
+ const exists = await fs.pathExists(taskMdPath);
189
+ if (!exists) {
190
+ throw new Error(`Task not found: ${taskId}`);
191
+ }
192
+
193
+ const taskDir = getTaskDir(root, taskId);
194
+ await fs.remove(taskDir);
195
+ return {
196
+ taskId,
197
+ taskDirPath: path.relative(root, taskDir).split(path.sep).join("/"),
198
+ };
199
+ }
200
+
201
+ /**
202
+ * 写入任务定义(创建或覆盖 task.md)。
203
+ *
204
+ * 关键点(中文)
205
+ * - 默认禁止覆盖,需显式 `overwrite=true`。
206
+ */
207
+ export async function writeTask(params: {
208
+ taskId: string;
209
+ frontmatter: ShipTaskFrontmatterV1;
210
+ body: string;
211
+ projectRoot: string;
212
+ overwrite?: boolean;
213
+ }): Promise<{ taskId: string; taskMdPath: string }> {
214
+ const root = String(params.projectRoot || "").trim();
215
+ if (!root) throw new Error("projectRoot is required");
216
+ const taskId = normalizeTaskId(params.taskId);
217
+
218
+ const dir = getTaskDir(root, taskId);
219
+ const mdPath = getTaskMdPath(root, taskId);
220
+ await fs.ensureDir(dir);
221
+
222
+ const exists = await fs.pathExists(mdPath);
223
+ if (exists && !params.overwrite) {
224
+ throw new Error(`task.md already exists: ${path.relative(root, mdPath)}`);
225
+ }
226
+
227
+ const content = buildTaskMarkdown({
228
+ frontmatter: params.frontmatter,
229
+ body: params.body,
230
+ });
231
+ await fs.writeFile(mdPath, content, "utf-8");
232
+
233
+ return { taskId, taskMdPath: path.relative(root, mdPath).split(path.sep).join("/") };
234
+ }
235
+
236
+ /**
237
+ * 确保 run 目录存在并返回绝对/相对路径。
238
+ */
239
+ export async function ensureRunDir(params: {
240
+ taskId: string;
241
+ timestamp: string;
242
+ projectRoot: string;
243
+ }): Promise<{ runDir: string; runDirRel: string }> {
244
+ const root = String(params.projectRoot || "").trim();
245
+ if (!root) throw new Error("projectRoot is required");
246
+ const taskId = normalizeTaskId(params.taskId);
247
+ const runDir = getTaskRunDir(root, taskId, params.timestamp);
248
+ await fs.ensureDir(runDir);
249
+ return {
250
+ runDir,
251
+ runDirRel: path.relative(root, runDir).split(path.sep).join("/"),
252
+ };
253
+ }
@@ -0,0 +1,276 @@
1
+ /**
2
+ * TaskActionExecution:task service 的业务执行模块。
3
+ *
4
+ * 关键点(中文)
5
+ * - 这里只放 task 的领域执行逻辑,不放 CLI/API 声明。
6
+ * - task 定义变更后的 scheduler reload 通过回调注入,避免执行层依赖具体 service 实现。
7
+ */
8
+
9
+ import type { AgentContext } from "@/types/agent/AgentContext.js";
10
+ import type {
11
+ TaskCronRegisterResult,
12
+ TaskListActionPayload,
13
+ TaskSchedulerReloadResult,
14
+ } from "@/shared/types/TaskService.js";
15
+ import type {
16
+ TaskCreateRequest,
17
+ TaskDeleteRequest,
18
+ TaskRunRequest,
19
+ TaskSetStatusRequest,
20
+ TaskUpdateRequest,
21
+ } from "@services/task/types/TaskCommand.js";
22
+ import {
23
+ createTaskDefinition,
24
+ deleteTaskDefinition,
25
+ listTaskDefinitions,
26
+ runTaskDefinition,
27
+ setTaskStatus,
28
+ updateTaskDefinition,
29
+ } from "@services/task/Action.js";
30
+
31
+ const TASK_LOG_PREFIX = "[TASK]";
32
+
33
+ function formatTaskLogMessage(message: string): string {
34
+ return `${TASK_LOG_PREFIX} ${message}`;
35
+ }
36
+
37
+ /**
38
+ * 任务定义变更后的 scheduler 重载端口。
39
+ */
40
+ export type TaskSchedulerReloadPort = (params: {
41
+ /**
42
+ * 当前执行上下文。
43
+ */
44
+ context: AgentContext;
45
+ /**
46
+ * 触发本次 reload 的变更动作。
47
+ */
48
+ action: "create" | "update" | "delete" | "status";
49
+ /**
50
+ * 当前操作的任务标题。
51
+ */
52
+ title: string;
53
+ }) => Promise<TaskSchedulerReloadResult>;
54
+
55
+ /**
56
+ * 启动后的 task cron runtime 统计结果。
57
+ */
58
+ export type { TaskCronRegisterResult } from "@/shared/types/TaskService.js";
59
+
60
+ /**
61
+ * 任务定义变更后重载 scheduler。
62
+ *
63
+ * 关键点(中文)
64
+ * - 解决 create/update 后还沿用旧注册表的时序问题。
65
+ * - 重载失败不阻断主操作,仅记录 warning 供排查。
66
+ */
67
+ export async function reloadTaskSchedulerAfterMutation(params: {
68
+ context: AgentContext;
69
+ action: "create" | "update" | "delete" | "status";
70
+ title: string;
71
+ reloadScheduler: (context: AgentContext) => Promise<TaskCronRegisterResult>;
72
+ }): Promise<TaskSchedulerReloadResult> {
73
+ try {
74
+ const result = await params.reloadScheduler(params.context);
75
+ params.context.logger.info(
76
+ formatTaskLogMessage("Task scheduler reloaded after mutation"),
77
+ {
78
+ action: params.action,
79
+ title: params.title,
80
+ tasksFound: result.tasksFound,
81
+ jobsScheduled: result.jobsScheduled,
82
+ },
83
+ );
84
+ return {
85
+ reloaded: true,
86
+ tasksFound: result.tasksFound,
87
+ jobsScheduled: result.jobsScheduled,
88
+ };
89
+ } catch (error) {
90
+ const reason = String(error);
91
+ params.context.logger.warn(
92
+ formatTaskLogMessage("Task scheduler reload failed after mutation"),
93
+ {
94
+ action: params.action,
95
+ title: params.title,
96
+ error: reason,
97
+ },
98
+ );
99
+ return {
100
+ reloaded: false,
101
+ error: reason,
102
+ };
103
+ }
104
+ }
105
+
106
+ /**
107
+ * 执行 `task.list` action。
108
+ */
109
+ export async function executeTaskListAction(params: {
110
+ context: AgentContext;
111
+ payload: TaskListActionPayload;
112
+ }) {
113
+ return {
114
+ success: true,
115
+ data: await listTaskDefinitions({
116
+ projectRoot: params.context.rootPath,
117
+ ...(params.payload.status ? { status: params.payload.status } : {}),
118
+ }),
119
+ };
120
+ }
121
+
122
+ /**
123
+ * 执行 `task.create` action。
124
+ */
125
+ export async function executeTaskCreateAction(params: {
126
+ context: AgentContext;
127
+ payload: TaskCreateRequest;
128
+ reloadSchedulerAfterMutation: TaskSchedulerReloadPort;
129
+ }) {
130
+ const payload = params.payload;
131
+ const result = await createTaskDefinition({
132
+ projectRoot: params.context.rootPath,
133
+ request: payload,
134
+ });
135
+ if (!result.success) {
136
+ return {
137
+ success: false,
138
+ error: result.error || "task create failed",
139
+ };
140
+ }
141
+ const scheduler = await params.reloadSchedulerAfterMutation({
142
+ context: params.context,
143
+ action: "create",
144
+ title: String(result.title || payload.title || "").trim() || "unknown",
145
+ });
146
+ return {
147
+ success: true,
148
+ data: {
149
+ ...result,
150
+ scheduler,
151
+ },
152
+ };
153
+ }
154
+
155
+ /**
156
+ * 执行 `task.run` action。
157
+ */
158
+ export async function executeTaskRunAction(params: {
159
+ context: AgentContext;
160
+ payload: TaskRunRequest;
161
+ }) {
162
+ const result = await runTaskDefinition({
163
+ context: params.context,
164
+ projectRoot: params.context.rootPath,
165
+ request: params.payload,
166
+ });
167
+ if (!result.success) {
168
+ return {
169
+ success: false,
170
+ error: result.error || "task run failed",
171
+ };
172
+ }
173
+ return {
174
+ success: true,
175
+ data: result,
176
+ };
177
+ }
178
+
179
+ /**
180
+ * 执行 `task.delete` action。
181
+ */
182
+ export async function executeTaskDeleteAction(params: {
183
+ context: AgentContext;
184
+ payload: TaskDeleteRequest;
185
+ reloadSchedulerAfterMutation: TaskSchedulerReloadPort;
186
+ }) {
187
+ const payload = params.payload;
188
+ const result = await deleteTaskDefinition({
189
+ projectRoot: params.context.rootPath,
190
+ request: payload,
191
+ });
192
+ if (!result.success) {
193
+ return {
194
+ success: false,
195
+ error: result.error || "task delete failed",
196
+ };
197
+ }
198
+ const scheduler = await params.reloadSchedulerAfterMutation({
199
+ context: params.context,
200
+ action: "delete",
201
+ title: String(result.title || payload.title || "").trim() || "unknown",
202
+ });
203
+ return {
204
+ success: true,
205
+ data: {
206
+ ...result,
207
+ scheduler,
208
+ },
209
+ };
210
+ }
211
+
212
+ /**
213
+ * 执行 `task.update` action。
214
+ */
215
+ export async function executeTaskUpdateAction(params: {
216
+ context: AgentContext;
217
+ payload: TaskUpdateRequest;
218
+ reloadSchedulerAfterMutation: TaskSchedulerReloadPort;
219
+ }) {
220
+ const payload = params.payload;
221
+ const result = await updateTaskDefinition({
222
+ projectRoot: params.context.rootPath,
223
+ request: payload,
224
+ });
225
+ if (!result.success) {
226
+ return {
227
+ success: false,
228
+ error: result.error || "task update failed",
229
+ };
230
+ }
231
+ const scheduler = await params.reloadSchedulerAfterMutation({
232
+ context: params.context,
233
+ action: "update",
234
+ title: String(result.title || payload.title || "").trim() || "unknown",
235
+ });
236
+ return {
237
+ success: true,
238
+ data: {
239
+ ...result,
240
+ scheduler,
241
+ },
242
+ };
243
+ }
244
+
245
+ /**
246
+ * 执行 `task.status` action。
247
+ */
248
+ export async function executeTaskStatusAction(params: {
249
+ context: AgentContext;
250
+ payload: TaskSetStatusRequest;
251
+ reloadSchedulerAfterMutation: TaskSchedulerReloadPort;
252
+ }) {
253
+ const payload = params.payload;
254
+ const result = await setTaskStatus({
255
+ projectRoot: params.context.rootPath,
256
+ request: payload,
257
+ });
258
+ if (!result.success) {
259
+ return {
260
+ success: false,
261
+ error: result.error || "task status update failed",
262
+ };
263
+ }
264
+ const scheduler = await params.reloadSchedulerAfterMutation({
265
+ context: params.context,
266
+ action: "status",
267
+ title: String(result.title || payload.title || "").trim() || "unknown",
268
+ });
269
+ return {
270
+ success: true,
271
+ data: {
272
+ ...result,
273
+ scheduler,
274
+ },
275
+ };
276
+ }