@robota-sdk/agent-core 3.0.0-beta.8 → 3.0.0-beta.81

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 (557) hide show
  1. package/CHANGELOG.md +844 -0
  2. package/LICENSE +661 -21
  3. package/README.md +153 -26
  4. package/dist/browser/bounded-output-DpjpS98g.js +2 -0
  5. package/dist/browser/bounded-output-DpjpS98g.js.map +1 -0
  6. package/dist/browser/command-executor-cI7XJ374.js +2 -0
  7. package/dist/browser/command-executor-cI7XJ374.js.map +1 -0
  8. package/dist/browser/http-executor-CHy6UeBU.js +2 -0
  9. package/dist/browser/http-executor-CHy6UeBU.js.map +1 -0
  10. package/dist/browser/index.d.ts +6381 -3394
  11. package/dist/browser/index.d.ts.map +1 -0
  12. package/dist/browser/index.js +13 -5
  13. package/dist/browser/index.js.map +1 -0
  14. package/dist/browser/verdict-decoder-Dk_w2NG9.js +2 -0
  15. package/dist/browser/verdict-decoder-Dk_w2NG9.js.map +1 -0
  16. package/dist/node/bounded-output-DpjpS98g.js +2 -0
  17. package/dist/node/bounded-output-DpjpS98g.js.map +1 -0
  18. package/dist/node/command-executor-Aat_q7P2.cjs +1 -0
  19. package/dist/node/command-executor-DV-H2oD6.js +2 -0
  20. package/dist/node/command-executor-DV-H2oD6.js.map +1 -0
  21. package/dist/node/http-executor-71JiIdFP.cjs +1 -0
  22. package/dist/node/http-executor-cWzI2svn.js +2 -0
  23. package/dist/node/http-executor-cWzI2svn.js.map +1 -0
  24. package/dist/node/index-CiFlpr7-.d.cts +6893 -0
  25. package/dist/node/index-CiFlpr7-.d.cts.map +1 -0
  26. package/dist/node/index-DFlMw376.d.ts +6893 -0
  27. package/dist/node/index-DFlMw376.d.ts.map +1 -0
  28. package/dist/node/index.cjs +12 -5
  29. package/dist/node/index.d.cts +3 -4238
  30. package/dist/node/index.d.ts +3 -4238
  31. package/dist/node/index.js +13 -5
  32. package/dist/node/index.js.map +1 -0
  33. package/dist/node/node.cjs +1 -0
  34. package/dist/node/node.d.cts +236 -0
  35. package/dist/node/node.d.cts.map +1 -0
  36. package/dist/node/node.d.ts +236 -0
  37. package/dist/node/node.d.ts.map +1 -0
  38. package/dist/node/node.js +2 -0
  39. package/dist/node/node.js.map +1 -0
  40. package/dist/node/project-tool-schema-DrDjGKnH.cjs +1 -0
  41. package/dist/node/project-tool-schema-_UKfY7yO.js +2 -0
  42. package/dist/node/project-tool-schema-_UKfY7yO.js.map +1 -0
  43. package/dist/node/rolldown-runtime-DK3Fl9T5.js +1 -0
  44. package/dist/node/rolldown-runtime-DWNI8pZO.cjs +1 -0
  45. package/dist/node/testing/index.cjs +1 -0
  46. package/dist/node/testing/index.d.cts +96 -0
  47. package/dist/node/testing/index.d.cts.map +1 -0
  48. package/dist/node/testing/index.d.ts +96 -0
  49. package/dist/node/testing/index.d.ts.map +1 -0
  50. package/dist/node/testing/index.js +2 -0
  51. package/dist/node/testing/index.js.map +1 -0
  52. package/dist/node/types-gNrckgFE.d.cts +335 -0
  53. package/dist/node/types-gNrckgFE.d.cts.map +1 -0
  54. package/dist/node/types-gNrckgFE.d.ts +335 -0
  55. package/dist/node/types-gNrckgFE.d.ts.map +1 -0
  56. package/dist/node/verdict-decoder-Dk_w2NG9.js +2 -0
  57. package/dist/node/verdict-decoder-Dk_w2NG9.js.map +1 -0
  58. package/dist/node/verdict-decoder-Estx9MtY.cjs +1 -0
  59. package/package.json +89 -23
  60. package/dist/abstracts/abstract-agent.d.ts +0 -56
  61. package/dist/abstracts/abstract-agent.d.ts.map +0 -1
  62. package/dist/abstracts/abstract-agent.js +0 -55
  63. package/dist/abstracts/abstract-agent.js.map +0 -1
  64. package/dist/abstracts/abstract-ai-provider.d.ts +0 -187
  65. package/dist/abstracts/abstract-ai-provider.d.ts.map +0 -1
  66. package/dist/abstracts/abstract-ai-provider.js +0 -252
  67. package/dist/abstracts/abstract-ai-provider.js.map +0 -1
  68. package/dist/abstracts/abstract-executor.d.ts +0 -110
  69. package/dist/abstracts/abstract-executor.d.ts.map +0 -1
  70. package/dist/abstracts/abstract-executor.js +0 -156
  71. package/dist/abstracts/abstract-executor.js.map +0 -1
  72. package/dist/abstracts/abstract-manager.d.ts +0 -42
  73. package/dist/abstracts/abstract-manager.d.ts.map +0 -1
  74. package/dist/abstracts/abstract-manager.js +0 -49
  75. package/dist/abstracts/abstract-manager.js.map +0 -1
  76. package/dist/abstracts/abstract-module.d.ts +0 -365
  77. package/dist/abstracts/abstract-module.d.ts.map +0 -1
  78. package/dist/abstracts/abstract-module.js +0 -474
  79. package/dist/abstracts/abstract-module.js.map +0 -1
  80. package/dist/abstracts/abstract-plugin.d.ts +0 -369
  81. package/dist/abstracts/abstract-plugin.d.ts.map +0 -1
  82. package/dist/abstracts/abstract-plugin.js +0 -258
  83. package/dist/abstracts/abstract-plugin.js.map +0 -1
  84. package/dist/abstracts/abstract-tool.d.ts +0 -175
  85. package/dist/abstracts/abstract-tool.d.ts.map +0 -1
  86. package/dist/abstracts/abstract-tool.js +0 -140
  87. package/dist/abstracts/abstract-tool.js.map +0 -1
  88. package/dist/abstracts/abstract-workflow-converter.d.ts +0 -136
  89. package/dist/abstracts/abstract-workflow-converter.d.ts.map +0 -1
  90. package/dist/abstracts/abstract-workflow-converter.js +0 -252
  91. package/dist/abstracts/abstract-workflow-converter.js.map +0 -1
  92. package/dist/abstracts/abstract-workflow-validator.d.ts +0 -203
  93. package/dist/abstracts/abstract-workflow-validator.d.ts.map +0 -1
  94. package/dist/abstracts/abstract-workflow-validator.js +0 -447
  95. package/dist/abstracts/abstract-workflow-validator.js.map +0 -1
  96. package/dist/abstracts/index.d.ts +0 -6
  97. package/dist/abstracts/index.d.ts.map +0 -1
  98. package/dist/abstracts/index.js +0 -9
  99. package/dist/abstracts/index.js.map +0 -1
  100. package/dist/agents/constants.d.ts +0 -23
  101. package/dist/agents/constants.d.ts.map +0 -1
  102. package/dist/agents/constants.js +0 -22
  103. package/dist/agents/constants.js.map +0 -1
  104. package/dist/agents/index.d.ts +0 -1
  105. package/dist/agents/index.d.ts.map +0 -1
  106. package/dist/agents/index.js +0 -4
  107. package/dist/agents/index.js.map +0 -1
  108. package/dist/agents/robota.test.d.ts +0 -2
  109. package/dist/agents/robota.test.d.ts.map +0 -1
  110. package/dist/agents/robota.test.js +0 -416
  111. package/dist/agents/robota.test.js.map +0 -1
  112. package/dist/browser/builtin-templates.json +0 -107
  113. package/dist/core/robota.d.ts +0 -694
  114. package/dist/core/robota.d.ts.map +0 -1
  115. package/dist/core/robota.js +0 -1277
  116. package/dist/core/robota.js.map +0 -1
  117. package/dist/executors/local-executor.d.ts +0 -96
  118. package/dist/executors/local-executor.d.ts.map +0 -1
  119. package/dist/executors/local-executor.js +0 -197
  120. package/dist/executors/local-executor.js.map +0 -1
  121. package/dist/executors/local-executor.test.d.ts +0 -2
  122. package/dist/executors/local-executor.test.d.ts.map +0 -1
  123. package/dist/executors/local-executor.test.js +0 -192
  124. package/dist/executors/local-executor.test.js.map +0 -1
  125. package/dist/index.d.ts +0 -274
  126. package/dist/index.d.ts.map +0 -1
  127. package/dist/index.js +0 -235
  128. package/dist/index.js.map +0 -1
  129. package/dist/interfaces/agent.d.ts +0 -198
  130. package/dist/interfaces/agent.d.ts.map +0 -1
  131. package/dist/interfaces/agent.js +0 -2
  132. package/dist/interfaces/agent.js.map +0 -1
  133. package/dist/interfaces/event-service.d.ts +0 -79
  134. package/dist/interfaces/event-service.d.ts.map +0 -1
  135. package/dist/interfaces/event-service.js +0 -2
  136. package/dist/interfaces/event-service.js.map +0 -1
  137. package/dist/interfaces/executor.d.ts +0 -128
  138. package/dist/interfaces/executor.d.ts.map +0 -1
  139. package/dist/interfaces/executor.js +0 -2
  140. package/dist/interfaces/executor.js.map +0 -1
  141. package/dist/interfaces/history-module.d.ts +0 -19
  142. package/dist/interfaces/history-module.d.ts.map +0 -1
  143. package/dist/interfaces/history-module.js +0 -2
  144. package/dist/interfaces/history-module.js.map +0 -1
  145. package/dist/interfaces/index.d.ts +0 -13
  146. package/dist/interfaces/index.d.ts.map +0 -1
  147. package/dist/interfaces/index.js +0 -4
  148. package/dist/interfaces/index.js.map +0 -1
  149. package/dist/interfaces/manager.d.ts +0 -142
  150. package/dist/interfaces/manager.d.ts.map +0 -1
  151. package/dist/interfaces/manager.js +0 -2
  152. package/dist/interfaces/manager.js.map +0 -1
  153. package/dist/interfaces/messages.d.ts +0 -75
  154. package/dist/interfaces/messages.d.ts.map +0 -1
  155. package/dist/interfaces/messages.js +0 -29
  156. package/dist/interfaces/messages.js.map +0 -1
  157. package/dist/interfaces/progress-reporting.d.ts +0 -86
  158. package/dist/interfaces/progress-reporting.d.ts.map +0 -1
  159. package/dist/interfaces/progress-reporting.js +0 -37
  160. package/dist/interfaces/progress-reporting.js.map +0 -1
  161. package/dist/interfaces/provider.d.ts +0 -217
  162. package/dist/interfaces/provider.d.ts.map +0 -1
  163. package/dist/interfaces/provider.js +0 -2
  164. package/dist/interfaces/provider.js.map +0 -1
  165. package/dist/interfaces/service.d.ts +0 -205
  166. package/dist/interfaces/service.d.ts.map +0 -1
  167. package/dist/interfaces/service.js +0 -6
  168. package/dist/interfaces/service.js.map +0 -1
  169. package/dist/interfaces/tool.d.ts +0 -248
  170. package/dist/interfaces/tool.d.ts.map +0 -1
  171. package/dist/interfaces/tool.js +0 -2
  172. package/dist/interfaces/tool.js.map +0 -1
  173. package/dist/interfaces/types.d.ts +0 -71
  174. package/dist/interfaces/types.d.ts.map +0 -1
  175. package/dist/interfaces/types.js +0 -33
  176. package/dist/interfaces/types.js.map +0 -1
  177. package/dist/interfaces/workflow-converter.d.ts +0 -193
  178. package/dist/interfaces/workflow-converter.d.ts.map +0 -1
  179. package/dist/interfaces/workflow-converter.js +0 -11
  180. package/dist/interfaces/workflow-converter.js.map +0 -1
  181. package/dist/interfaces/workflow-validator.d.ts +0 -209
  182. package/dist/interfaces/workflow-validator.d.ts.map +0 -1
  183. package/dist/interfaces/workflow-validator.js +0 -16
  184. package/dist/interfaces/workflow-validator.js.map +0 -1
  185. package/dist/managers/agent-factory.d.ts +0 -132
  186. package/dist/managers/agent-factory.d.ts.map +0 -1
  187. package/dist/managers/agent-factory.js +0 -284
  188. package/dist/managers/agent-factory.js.map +0 -1
  189. package/dist/managers/agent-factory.test.d.ts +0 -2
  190. package/dist/managers/agent-factory.test.d.ts.map +0 -1
  191. package/dist/managers/agent-factory.test.js +0 -249
  192. package/dist/managers/agent-factory.test.js.map +0 -1
  193. package/dist/managers/agent-templates.d.ts +0 -84
  194. package/dist/managers/agent-templates.d.ts.map +0 -1
  195. package/dist/managers/agent-templates.js +0 -159
  196. package/dist/managers/agent-templates.js.map +0 -1
  197. package/dist/managers/ai-provider-manager.d.ts +0 -80
  198. package/dist/managers/ai-provider-manager.d.ts.map +0 -1
  199. package/dist/managers/ai-provider-manager.js +0 -226
  200. package/dist/managers/ai-provider-manager.js.map +0 -1
  201. package/dist/managers/conversation-history-manager.d.ts +0 -455
  202. package/dist/managers/conversation-history-manager.d.ts.map +0 -1
  203. package/dist/managers/conversation-history-manager.js +0 -578
  204. package/dist/managers/conversation-history-manager.js.map +0 -1
  205. package/dist/managers/conversation-history-manager.test.d.ts +0 -2
  206. package/dist/managers/conversation-history-manager.test.d.ts.map +0 -1
  207. package/dist/managers/conversation-history-manager.test.js +0 -374
  208. package/dist/managers/conversation-history-manager.test.js.map +0 -1
  209. package/dist/managers/index.d.ts +0 -8
  210. package/dist/managers/index.d.ts.map +0 -1
  211. package/dist/managers/index.js +0 -8
  212. package/dist/managers/index.js.map +0 -1
  213. package/dist/managers/module-registry.d.ts +0 -161
  214. package/dist/managers/module-registry.d.ts.map +0 -1
  215. package/dist/managers/module-registry.js +0 -519
  216. package/dist/managers/module-registry.js.map +0 -1
  217. package/dist/managers/module-type-registry.d.ts +0 -113
  218. package/dist/managers/module-type-registry.d.ts.map +0 -1
  219. package/dist/managers/module-type-registry.js +0 -439
  220. package/dist/managers/module-type-registry.js.map +0 -1
  221. package/dist/managers/plugins.d.ts +0 -166
  222. package/dist/managers/plugins.d.ts.map +0 -1
  223. package/dist/managers/plugins.js +0 -339
  224. package/dist/managers/plugins.js.map +0 -1
  225. package/dist/managers/tool-manager.d.ts +0 -70
  226. package/dist/managers/tool-manager.d.ts.map +0 -1
  227. package/dist/managers/tool-manager.js +0 -138
  228. package/dist/managers/tool-manager.js.map +0 -1
  229. package/dist/managers/tool-manager.test.d.ts +0 -2
  230. package/dist/managers/tool-manager.test.d.ts.map +0 -1
  231. package/dist/managers/tool-manager.test.js +0 -186
  232. package/dist/managers/tool-manager.test.js.map +0 -1
  233. package/dist/node/builtin-templates.json +0 -107
  234. package/dist/plugins/conversation-history/conversation-history-plugin.d.ts +0 -67
  235. package/dist/plugins/conversation-history/conversation-history-plugin.d.ts.map +0 -1
  236. package/dist/plugins/conversation-history/conversation-history-plugin.js +0 -270
  237. package/dist/plugins/conversation-history/conversation-history-plugin.js.map +0 -1
  238. package/dist/plugins/conversation-history/index.d.ts +0 -3
  239. package/dist/plugins/conversation-history/index.d.ts.map +0 -1
  240. package/dist/plugins/conversation-history/index.js +0 -2
  241. package/dist/plugins/conversation-history/index.js.map +0 -1
  242. package/dist/plugins/conversation-history/storages/database-storage.d.ts +0 -19
  243. package/dist/plugins/conversation-history/storages/database-storage.d.ts.map +0 -1
  244. package/dist/plugins/conversation-history/storages/database-storage.js +0 -94
  245. package/dist/plugins/conversation-history/storages/database-storage.js.map +0 -1
  246. package/dist/plugins/conversation-history/storages/file-storage.d.ts +0 -15
  247. package/dist/plugins/conversation-history/storages/file-storage.d.ts.map +0 -1
  248. package/dist/plugins/conversation-history/storages/file-storage.js +0 -94
  249. package/dist/plugins/conversation-history/storages/file-storage.js.map +0 -1
  250. package/dist/plugins/conversation-history/storages/index.d.ts +0 -4
  251. package/dist/plugins/conversation-history/storages/index.d.ts.map +0 -1
  252. package/dist/plugins/conversation-history/storages/index.js +0 -4
  253. package/dist/plugins/conversation-history/storages/index.js.map +0 -1
  254. package/dist/plugins/conversation-history/storages/memory-storage.d.ts +0 -15
  255. package/dist/plugins/conversation-history/storages/memory-storage.d.ts.map +0 -1
  256. package/dist/plugins/conversation-history/storages/memory-storage.js +0 -33
  257. package/dist/plugins/conversation-history/storages/memory-storage.js.map +0 -1
  258. package/dist/plugins/conversation-history/types.d.ts +0 -61
  259. package/dist/plugins/conversation-history/types.d.ts.map +0 -1
  260. package/dist/plugins/conversation-history/types.js +0 -2
  261. package/dist/plugins/conversation-history/types.js.map +0 -1
  262. package/dist/plugins/error-handling/context-adapter.d.ts +0 -30
  263. package/dist/plugins/error-handling/context-adapter.d.ts.map +0 -1
  264. package/dist/plugins/error-handling/context-adapter.js +0 -41
  265. package/dist/plugins/error-handling/context-adapter.js.map +0 -1
  266. package/dist/plugins/error-handling/error-handling-plugin.d.ts +0 -49
  267. package/dist/plugins/error-handling/error-handling-plugin.d.ts.map +0 -1
  268. package/dist/plugins/error-handling/error-handling-plugin.js +0 -229
  269. package/dist/plugins/error-handling/error-handling-plugin.js.map +0 -1
  270. package/dist/plugins/error-handling/index.d.ts +0 -10
  271. package/dist/plugins/error-handling/index.d.ts.map +0 -1
  272. package/dist/plugins/error-handling/index.js +0 -10
  273. package/dist/plugins/error-handling/index.js.map +0 -1
  274. package/dist/plugins/error-handling/types.d.ts +0 -73
  275. package/dist/plugins/error-handling/types.d.ts.map +0 -1
  276. package/dist/plugins/error-handling/types.js +0 -14
  277. package/dist/plugins/error-handling/types.js.map +0 -1
  278. package/dist/plugins/event-emitter/metrics.d.ts +0 -17
  279. package/dist/plugins/event-emitter/metrics.d.ts.map +0 -1
  280. package/dist/plugins/event-emitter/metrics.js +0 -17
  281. package/dist/plugins/event-emitter/metrics.js.map +0 -1
  282. package/dist/plugins/event-emitter/types.d.ts +0 -112
  283. package/dist/plugins/event-emitter/types.d.ts.map +0 -1
  284. package/dist/plugins/event-emitter/types.js +0 -65
  285. package/dist/plugins/event-emitter/types.js.map +0 -1
  286. package/dist/plugins/event-emitter-plugin.d.ts +0 -222
  287. package/dist/plugins/event-emitter-plugin.d.ts.map +0 -1
  288. package/dist/plugins/event-emitter-plugin.js +0 -432
  289. package/dist/plugins/event-emitter-plugin.js.map +0 -1
  290. package/dist/plugins/event-emitter-plugin.test.d.ts +0 -2
  291. package/dist/plugins/event-emitter-plugin.test.d.ts.map +0 -1
  292. package/dist/plugins/event-emitter-plugin.test.js +0 -94
  293. package/dist/plugins/event-emitter-plugin.test.js.map +0 -1
  294. package/dist/plugins/execution/execution-analytics-plugin.d.ts +0 -129
  295. package/dist/plugins/execution/execution-analytics-plugin.d.ts.map +0 -1
  296. package/dist/plugins/execution/execution-analytics-plugin.js +0 -517
  297. package/dist/plugins/execution/execution-analytics-plugin.js.map +0 -1
  298. package/dist/plugins/execution/index.d.ts +0 -3
  299. package/dist/plugins/execution/index.d.ts.map +0 -1
  300. package/dist/plugins/execution/index.js +0 -2
  301. package/dist/plugins/execution/index.js.map +0 -1
  302. package/dist/plugins/execution/types.d.ts +0 -90
  303. package/dist/plugins/execution/types.d.ts.map +0 -1
  304. package/dist/plugins/execution/types.js +0 -2
  305. package/dist/plugins/execution/types.js.map +0 -1
  306. package/dist/plugins/index.d.ts +0 -10
  307. package/dist/plugins/index.d.ts.map +0 -1
  308. package/dist/plugins/index.js +0 -11
  309. package/dist/plugins/index.js.map +0 -1
  310. package/dist/plugins/limits/types.d.ts +0 -61
  311. package/dist/plugins/limits/types.d.ts.map +0 -1
  312. package/dist/plugins/limits/types.js +0 -2
  313. package/dist/plugins/limits/types.js.map +0 -1
  314. package/dist/plugins/limits-plugin.d.ts +0 -113
  315. package/dist/plugins/limits-plugin.d.ts.map +0 -1
  316. package/dist/plugins/limits-plugin.js +0 -380
  317. package/dist/plugins/limits-plugin.js.map +0 -1
  318. package/dist/plugins/logging/formatters.d.ts +0 -14
  319. package/dist/plugins/logging/formatters.d.ts.map +0 -1
  320. package/dist/plugins/logging/formatters.js +0 -24
  321. package/dist/plugins/logging/formatters.js.map +0 -1
  322. package/dist/plugins/logging/index.d.ts +0 -3
  323. package/dist/plugins/logging/index.d.ts.map +0 -1
  324. package/dist/plugins/logging/index.js +0 -2
  325. package/dist/plugins/logging/index.js.map +0 -1
  326. package/dist/plugins/logging/logging-plugin.d.ts +0 -91
  327. package/dist/plugins/logging/logging-plugin.d.ts.map +0 -1
  328. package/dist/plugins/logging/logging-plugin.js +0 -335
  329. package/dist/plugins/logging/logging-plugin.js.map +0 -1
  330. package/dist/plugins/logging/storages/console-storage.d.ts +0 -14
  331. package/dist/plugins/logging/storages/console-storage.d.ts.map +0 -1
  332. package/dist/plugins/logging/storages/console-storage.js +0 -38
  333. package/dist/plugins/logging/storages/console-storage.js.map +0 -1
  334. package/dist/plugins/logging/storages/file-storage.d.ts +0 -14
  335. package/dist/plugins/logging/storages/file-storage.d.ts.map +0 -1
  336. package/dist/plugins/logging/storages/file-storage.js +0 -41
  337. package/dist/plugins/logging/storages/file-storage.js.map +0 -1
  338. package/dist/plugins/logging/storages/index.d.ts +0 -5
  339. package/dist/plugins/logging/storages/index.d.ts.map +0 -1
  340. package/dist/plugins/logging/storages/index.js +0 -5
  341. package/dist/plugins/logging/storages/index.js.map +0 -1
  342. package/dist/plugins/logging/storages/remote-storage.d.ts +0 -20
  343. package/dist/plugins/logging/storages/remote-storage.d.ts.map +0 -1
  344. package/dist/plugins/logging/storages/remote-storage.js +0 -61
  345. package/dist/plugins/logging/storages/remote-storage.js.map +0 -1
  346. package/dist/plugins/logging/storages/silent-storage.d.ts +0 -10
  347. package/dist/plugins/logging/storages/silent-storage.d.ts.map +0 -1
  348. package/dist/plugins/logging/storages/silent-storage.js +0 -15
  349. package/dist/plugins/logging/storages/silent-storage.js.map +0 -1
  350. package/dist/plugins/logging/types.d.ts +0 -84
  351. package/dist/plugins/logging/types.d.ts.map +0 -1
  352. package/dist/plugins/logging/types.js +0 -2
  353. package/dist/plugins/logging/types.js.map +0 -1
  354. package/dist/plugins/performance/collectors/system-metrics-collector.d.ts +0 -12
  355. package/dist/plugins/performance/collectors/system-metrics-collector.d.ts.map +0 -1
  356. package/dist/plugins/performance/collectors/system-metrics-collector.js +0 -65
  357. package/dist/plugins/performance/collectors/system-metrics-collector.js.map +0 -1
  358. package/dist/plugins/performance/index.d.ts +0 -5
  359. package/dist/plugins/performance/index.d.ts.map +0 -1
  360. package/dist/plugins/performance/index.js +0 -4
  361. package/dist/plugins/performance/index.js.map +0 -1
  362. package/dist/plugins/performance/performance-plugin.d.ts +0 -49
  363. package/dist/plugins/performance/performance-plugin.d.ts.map +0 -1
  364. package/dist/plugins/performance/performance-plugin.js +0 -293
  365. package/dist/plugins/performance/performance-plugin.js.map +0 -1
  366. package/dist/plugins/performance/storages/index.d.ts +0 -2
  367. package/dist/plugins/performance/storages/index.d.ts.map +0 -1
  368. package/dist/plugins/performance/storages/index.js +0 -4
  369. package/dist/plugins/performance/storages/index.js.map +0 -1
  370. package/dist/plugins/performance/storages/memory-storage.d.ts +0 -19
  371. package/dist/plugins/performance/storages/memory-storage.d.ts.map +0 -1
  372. package/dist/plugins/performance/storages/memory-storage.js +0 -69
  373. package/dist/plugins/performance/storages/memory-storage.js.map +0 -1
  374. package/dist/plugins/performance/types.d.ts +0 -154
  375. package/dist/plugins/performance/types.d.ts.map +0 -1
  376. package/dist/plugins/performance/types.js +0 -2
  377. package/dist/plugins/performance/types.js.map +0 -1
  378. package/dist/plugins/usage/aggregate-usage-stats.d.ts +0 -12
  379. package/dist/plugins/usage/aggregate-usage-stats.d.ts.map +0 -1
  380. package/dist/plugins/usage/aggregate-usage-stats.js +0 -115
  381. package/dist/plugins/usage/aggregate-usage-stats.js.map +0 -1
  382. package/dist/plugins/usage/index.d.ts +0 -5
  383. package/dist/plugins/usage/index.d.ts.map +0 -1
  384. package/dist/plugins/usage/index.js +0 -4
  385. package/dist/plugins/usage/index.js.map +0 -1
  386. package/dist/plugins/usage/storages/file-storage.d.ts +0 -22
  387. package/dist/plugins/usage/storages/file-storage.d.ts.map +0 -1
  388. package/dist/plugins/usage/storages/file-storage.js +0 -111
  389. package/dist/plugins/usage/storages/file-storage.js.map +0 -1
  390. package/dist/plugins/usage/storages/index.d.ts +0 -5
  391. package/dist/plugins/usage/storages/index.d.ts.map +0 -1
  392. package/dist/plugins/usage/storages/index.js +0 -5
  393. package/dist/plugins/usage/storages/index.js.map +0 -1
  394. package/dist/plugins/usage/storages/memory-storage.d.ts +0 -22
  395. package/dist/plugins/usage/storages/memory-storage.d.ts.map +0 -1
  396. package/dist/plugins/usage/storages/memory-storage.js +0 -42
  397. package/dist/plugins/usage/storages/memory-storage.js.map +0 -1
  398. package/dist/plugins/usage/storages/remote-storage.d.ts +0 -26
  399. package/dist/plugins/usage/storages/remote-storage.d.ts.map +0 -1
  400. package/dist/plugins/usage/storages/remote-storage.js +0 -115
  401. package/dist/plugins/usage/storages/remote-storage.js.map +0 -1
  402. package/dist/plugins/usage/storages/silent-storage.d.ts +0 -19
  403. package/dist/plugins/usage/storages/silent-storage.d.ts.map +0 -1
  404. package/dist/plugins/usage/storages/silent-storage.js +0 -26
  405. package/dist/plugins/usage/storages/silent-storage.js.map +0 -1
  406. package/dist/plugins/usage/types.d.ts +0 -127
  407. package/dist/plugins/usage/types.d.ts.map +0 -1
  408. package/dist/plugins/usage/types.js +0 -2
  409. package/dist/plugins/usage/types.js.map +0 -1
  410. package/dist/plugins/usage/usage-plugin.d.ts +0 -67
  411. package/dist/plugins/usage/usage-plugin.d.ts.map +0 -1
  412. package/dist/plugins/usage/usage-plugin.js +0 -309
  413. package/dist/plugins/usage/usage-plugin.js.map +0 -1
  414. package/dist/plugins/webhook/http-client.d.ts +0 -30
  415. package/dist/plugins/webhook/http-client.d.ts.map +0 -1
  416. package/dist/plugins/webhook/http-client.js +0 -110
  417. package/dist/plugins/webhook/http-client.js.map +0 -1
  418. package/dist/plugins/webhook/index.d.ts +0 -9
  419. package/dist/plugins/webhook/index.d.ts.map +0 -1
  420. package/dist/plugins/webhook/index.js +0 -9
  421. package/dist/plugins/webhook/index.js.map +0 -1
  422. package/dist/plugins/webhook/transformer.d.ts +0 -63
  423. package/dist/plugins/webhook/transformer.d.ts.map +0 -1
  424. package/dist/plugins/webhook/transformer.js +0 -157
  425. package/dist/plugins/webhook/transformer.js.map +0 -1
  426. package/dist/plugins/webhook/types.d.ts +0 -183
  427. package/dist/plugins/webhook/types.d.ts.map +0 -1
  428. package/dist/plugins/webhook/types.js +0 -2
  429. package/dist/plugins/webhook/types.js.map +0 -1
  430. package/dist/plugins/webhook/webhook-plugin.d.ts +0 -92
  431. package/dist/plugins/webhook/webhook-plugin.d.ts.map +0 -1
  432. package/dist/plugins/webhook/webhook-plugin.js +0 -328
  433. package/dist/plugins/webhook/webhook-plugin.js.map +0 -1
  434. package/dist/schemas/agent-template-schema.d.ts +0 -137
  435. package/dist/schemas/agent-template-schema.d.ts.map +0 -1
  436. package/dist/schemas/agent-template-schema.js +0 -87
  437. package/dist/schemas/agent-template-schema.js.map +0 -1
  438. package/dist/services/conversation-service/index.d.ts +0 -88
  439. package/dist/services/conversation-service/index.d.ts.map +0 -1
  440. package/dist/services/conversation-service/index.js +0 -441
  441. package/dist/services/conversation-service/index.js.map +0 -1
  442. package/dist/services/conversation-service/types.d.ts +0 -32
  443. package/dist/services/conversation-service/types.d.ts.map +0 -1
  444. package/dist/services/conversation-service/types.js +0 -8
  445. package/dist/services/conversation-service/types.js.map +0 -1
  446. package/dist/services/event-service.d.ts +0 -61
  447. package/dist/services/event-service.d.ts.map +0 -1
  448. package/dist/services/event-service.js +0 -110
  449. package/dist/services/event-service.js.map +0 -1
  450. package/dist/services/event-service.test.d.ts +0 -2
  451. package/dist/services/event-service.test.d.ts.map +0 -1
  452. package/dist/services/event-service.test.js +0 -86
  453. package/dist/services/event-service.test.js.map +0 -1
  454. package/dist/services/execution-service.d.ts +0 -151
  455. package/dist/services/execution-service.d.ts.map +0 -1
  456. package/dist/services/execution-service.js +0 -1262
  457. package/dist/services/execution-service.js.map +0 -1
  458. package/dist/services/execution-service.test.d.ts +0 -2
  459. package/dist/services/execution-service.test.d.ts.map +0 -1
  460. package/dist/services/execution-service.test.js +0 -338
  461. package/dist/services/execution-service.test.js.map +0 -1
  462. package/dist/services/history-module.d.ts +0 -15
  463. package/dist/services/history-module.d.ts.map +0 -1
  464. package/dist/services/history-module.js +0 -42
  465. package/dist/services/history-module.js.map +0 -1
  466. package/dist/services/in-memory-history-store.d.ts +0 -12
  467. package/dist/services/in-memory-history-store.d.ts.map +0 -1
  468. package/dist/services/in-memory-history-store.js +0 -41
  469. package/dist/services/in-memory-history-store.js.map +0 -1
  470. package/dist/services/index.d.ts +0 -7
  471. package/dist/services/index.d.ts.map +0 -1
  472. package/dist/services/index.js +0 -13
  473. package/dist/services/index.js.map +0 -1
  474. package/dist/services/task-events.d.ts +0 -6
  475. package/dist/services/task-events.d.ts.map +0 -1
  476. package/dist/services/task-events.js +0 -6
  477. package/dist/services/task-events.js.map +0 -1
  478. package/dist/services/tool-execution-service.d.ts +0 -74
  479. package/dist/services/tool-execution-service.d.ts.map +0 -1
  480. package/dist/services/tool-execution-service.js +0 -189
  481. package/dist/services/tool-execution-service.js.map +0 -1
  482. package/dist/services/user-events.d.ts +0 -7
  483. package/dist/services/user-events.d.ts.map +0 -1
  484. package/dist/services/user-events.js +0 -6
  485. package/dist/services/user-events.js.map +0 -1
  486. package/dist/tools/implementations/function-tool/index.d.ts +0 -9
  487. package/dist/tools/implementations/function-tool/index.d.ts.map +0 -1
  488. package/dist/tools/implementations/function-tool/index.js +0 -13
  489. package/dist/tools/implementations/function-tool/index.js.map +0 -1
  490. package/dist/tools/implementations/function-tool/schema-converter.d.ts +0 -32
  491. package/dist/tools/implementations/function-tool/schema-converter.d.ts.map +0 -1
  492. package/dist/tools/implementations/function-tool/schema-converter.js +0 -164
  493. package/dist/tools/implementations/function-tool/schema-converter.js.map +0 -1
  494. package/dist/tools/implementations/function-tool/types.d.ts +0 -72
  495. package/dist/tools/implementations/function-tool/types.d.ts.map +0 -1
  496. package/dist/tools/implementations/function-tool/types.js +0 -14
  497. package/dist/tools/implementations/function-tool/types.js.map +0 -1
  498. package/dist/tools/implementations/function-tool.d.ts +0 -49
  499. package/dist/tools/implementations/function-tool.d.ts.map +0 -1
  500. package/dist/tools/implementations/function-tool.js +0 -223
  501. package/dist/tools/implementations/function-tool.js.map +0 -1
  502. package/dist/tools/implementations/index.d.ts +0 -4
  503. package/dist/tools/implementations/index.d.ts.map +0 -1
  504. package/dist/tools/implementations/index.js +0 -5
  505. package/dist/tools/implementations/index.js.map +0 -1
  506. package/dist/tools/implementations/mcp-tool.d.ts +0 -72
  507. package/dist/tools/implementations/mcp-tool.d.ts.map +0 -1
  508. package/dist/tools/implementations/mcp-tool.js +0 -246
  509. package/dist/tools/implementations/mcp-tool.js.map +0 -1
  510. package/dist/tools/implementations/openapi-tool.d.ts +0 -56
  511. package/dist/tools/implementations/openapi-tool.d.ts.map +0 -1
  512. package/dist/tools/implementations/openapi-tool.js +0 -324
  513. package/dist/tools/implementations/openapi-tool.js.map +0 -1
  514. package/dist/tools/implementations/relay-mcp-tool.d.ts +0 -38
  515. package/dist/tools/implementations/relay-mcp-tool.d.ts.map +0 -1
  516. package/dist/tools/implementations/relay-mcp-tool.js +0 -46
  517. package/dist/tools/implementations/relay-mcp-tool.js.map +0 -1
  518. package/dist/tools/index.d.ts +0 -3
  519. package/dist/tools/index.d.ts.map +0 -1
  520. package/dist/tools/index.js +0 -4
  521. package/dist/tools/index.js.map +0 -1
  522. package/dist/tools/registry/index.d.ts +0 -2
  523. package/dist/tools/registry/index.d.ts.map +0 -1
  524. package/dist/tools/registry/index.js +0 -3
  525. package/dist/tools/registry/index.js.map +0 -1
  526. package/dist/tools/registry/tool-registry.d.ts +0 -54
  527. package/dist/tools/registry/tool-registry.d.ts.map +0 -1
  528. package/dist/tools/registry/tool-registry.js +0 -146
  529. package/dist/tools/registry/tool-registry.js.map +0 -1
  530. package/dist/utils/errors.d.ts +0 -155
  531. package/dist/utils/errors.d.ts.map +0 -1
  532. package/dist/utils/errors.js +0 -203
  533. package/dist/utils/errors.js.map +0 -1
  534. package/dist/utils/execution-proxy.d.ts +0 -75
  535. package/dist/utils/execution-proxy.d.ts.map +0 -1
  536. package/dist/utils/execution-proxy.js +0 -230
  537. package/dist/utils/execution-proxy.js.map +0 -1
  538. package/dist/utils/index.d.ts +0 -11
  539. package/dist/utils/index.d.ts.map +0 -1
  540. package/dist/utils/index.js +0 -7
  541. package/dist/utils/index.js.map +0 -1
  542. package/dist/utils/logger.d.ts +0 -74
  543. package/dist/utils/logger.d.ts.map +0 -1
  544. package/dist/utils/logger.js +0 -143
  545. package/dist/utils/logger.js.map +0 -1
  546. package/dist/utils/message-converter.d.ts +0 -68
  547. package/dist/utils/message-converter.d.ts.map +0 -1
  548. package/dist/utils/message-converter.js +0 -87
  549. package/dist/utils/message-converter.js.map +0 -1
  550. package/dist/utils/periodic-task.d.ts +0 -14
  551. package/dist/utils/periodic-task.d.ts.map +0 -1
  552. package/dist/utils/periodic-task.js +0 -26
  553. package/dist/utils/periodic-task.js.map +0 -1
  554. package/dist/utils/validation.d.ts +0 -40
  555. package/dist/utils/validation.d.ts.map +0 -1
  556. package/dist/utils/validation.js +0 -162
  557. package/dist/utils/validation.js.map +0 -1
@@ -1,198 +0,0 @@
1
- import type { TProviderConfigValue, IAIProvider } from './provider';
2
- import type { IPluginContract, IPluginOptions, IPluginStats } from '../abstracts/abstract-plugin';
3
- import type { IModule } from '../abstracts/abstract-module';
4
- import type { IToolWithEventService } from '../abstracts/abstract-tool';
5
- import type { TUtilLogLevel } from '../utils/logger';
6
- import type { TMetadata, TConfigValue } from './types';
7
- import type { IEventService } from '../services/event-service';
8
- import type { IOwnerPathSegment } from '../services/event-service';
9
- import type { TUniversalMessageMetadata, TUniversalMessage } from './messages';
10
- export type { TUniversalMessage, TUniversalMessageMetadata, IBaseMessage, IUserMessage, IAssistantMessage, ISystemMessage, IToolMessage, IToolCall, TUniversalMessageRole, } from './messages';
11
- /**
12
- * IExecutionContextInjection
13
- *
14
- * Minimal context payload used to inject an existing ownerPath into a new agent instance
15
- * (e.g., when a tool creates an agent and must preserve absolute ownerPath semantics).
16
- *
17
- * NOTE: This is intentionally NOT ToolExecutionContext. ToolExecutionContext is for tool calls
18
- * and requires toolName/parameters; agent creation only needs ownerPath and execution linkage.
19
- */
20
- export interface IExecutionContextInjection {
21
- ownerPath?: IOwnerPathSegment[];
22
- parentExecutionId?: string;
23
- rootExecutionId?: string;
24
- executionLevel?: number;
25
- sourceId?: string;
26
- }
27
- /**
28
- * Provider-specific configuration
29
- */
30
- export interface IAgentProviderConfig {
31
- openai?: {
32
- apiKey?: string;
33
- baseURL?: string;
34
- organization?: string;
35
- [key: string]: TProviderConfigValue | undefined;
36
- };
37
- anthropic?: {
38
- apiKey?: string;
39
- baseURL?: string;
40
- [key: string]: TProviderConfigValue | undefined;
41
- };
42
- google?: {
43
- apiKey?: string;
44
- projectId?: string;
45
- location?: string;
46
- [key: string]: TProviderConfigValue | undefined;
47
- };
48
- [provider: string]: Record<string, TProviderConfigValue | undefined> | undefined;
49
- }
50
- /**
51
- * Agent configuration options - New design with aiProviders array and defaultModel
52
- */
53
- export interface IAgentConfig {
54
- id?: string;
55
- name: string;
56
- aiProviders: IAIProvider[];
57
- defaultModel: {
58
- provider: string;
59
- model: string;
60
- temperature?: number;
61
- maxTokens?: number;
62
- topP?: number;
63
- systemMessage?: string;
64
- };
65
- tools?: Array<IToolWithEventService>;
66
- plugins?: Array<IPluginContract<IPluginOptions, IPluginStats>>;
67
- modules?: IModule[];
68
- systemMessage?: string;
69
- systemPrompt?: string;
70
- conversationId?: string;
71
- sessionId?: string;
72
- userId?: string;
73
- metadata?: TUniversalMessageMetadata;
74
- context?: Record<string, TConfigValue>;
75
- logging?: {
76
- level?: TUtilLogLevel;
77
- enabled?: boolean;
78
- format?: string;
79
- destination?: string;
80
- };
81
- providerConfig?: IAgentProviderConfig;
82
- stream?: boolean;
83
- toolChoice?: 'auto' | 'none' | string;
84
- responseFormat?: IResponseFormatConfig;
85
- safetySettings?: ISafetySetting[];
86
- timeout?: number;
87
- retryAttempts?: number;
88
- rateLimiting?: {
89
- enabled?: boolean;
90
- maxRequests?: number;
91
- windowMs?: number;
92
- };
93
- eventService?: IEventService;
94
- executionContext?: IExecutionContextInjection;
95
- }
96
- /**
97
- * Agent template interface
98
- */
99
- export interface IAgentTemplate {
100
- id: string;
101
- name: string;
102
- description?: string;
103
- category?: string;
104
- tags?: string[];
105
- config: IAgentConfig;
106
- version?: string;
107
- author?: string;
108
- createdAt?: Date;
109
- updatedAt?: Date;
110
- }
111
- /**
112
- * Agent run options - type-safe interface for all agent execution options
113
- */
114
- export interface IRunOptions {
115
- temperature?: number;
116
- maxTokens?: number;
117
- stream?: boolean;
118
- toolChoice?: 'auto' | 'none' | string;
119
- sessionId?: string;
120
- userId?: string;
121
- metadata?: TMetadata;
122
- }
123
- /**
124
- * Generic agent interface with type parameters for enhanced type safety
125
- *
126
- * @template TConfig - Agent configuration type (defaults to IAgentConfig for backward compatibility)
127
- * @template TContext - Execution context type (defaults to IRunOptions for backward compatibility)
128
- * @template TUniversalMessage - Message type (defaults to TUniversalMessage for backward compatibility)
129
- */
130
- export interface IAgent<TConfig = IAgentConfig, TContext = IRunOptions, TMessage = TUniversalMessage> {
131
- /**
132
- * Configure the agent with type-safe configuration
133
- */
134
- configure?(config: TConfig): Promise<void>;
135
- /**
136
- * Run agent with user input and type-safe context
137
- */
138
- run(input: string, context?: TContext): Promise<string>;
139
- /**
140
- * Run agent with streaming response and type-safe context
141
- */
142
- runStream(input: string, context?: TContext): AsyncGenerator<string, void, never>;
143
- /**
144
- * Get conversation history with type-safe messages
145
- */
146
- getHistory(): TMessage[];
147
- /**
148
- * Clear conversation history
149
- */
150
- clearHistory(): void;
151
- }
152
- /**
153
- * Extended run context with provider-agnostic options
154
- * Supports dynamic provider configurations without hardcoding specific providers
155
- */
156
- export interface IExtendedRunContext {
157
- temperature?: number;
158
- maxTokens?: number;
159
- stream?: boolean;
160
- toolChoice?: 'auto' | 'none' | string;
161
- sessionId?: string;
162
- userId?: string;
163
- metadata?: TMetadata;
164
- providerOptions?: Record<string, TConfigValue>;
165
- stopSequences?: string[];
166
- topK?: number;
167
- topP?: number;
168
- seed?: number;
169
- responseFormat?: IResponseFormatConfig;
170
- safetySettings?: ISafetySetting[];
171
- generationConfig?: IGenerationConfig;
172
- }
173
- /**
174
- * Response format configuration
175
- */
176
- export interface IResponseFormatConfig {
177
- type?: 'text' | 'json_object';
178
- schema?: Record<string, TConfigValue>;
179
- }
180
- /**
181
- * Safety setting configuration
182
- */
183
- export interface ISafetySetting {
184
- category: string;
185
- threshold: string;
186
- [key: string]: TConfigValue;
187
- }
188
- /**
189
- * Generation configuration
190
- */
191
- export interface IGenerationConfig {
192
- temperature?: number;
193
- maxTokens?: number;
194
- topP?: number;
195
- topK?: number;
196
- [key: string]: TConfigValue;
197
- }
198
- //# sourceMappingURL=agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/interfaces/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAClG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,YAAY,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EG;AACH,MAAM,WAAW,iBAAiB;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC;CAC/B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=agent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/interfaces/agent.ts"],"names":[],"mappings":""}
@@ -1,79 +0,0 @@
1
- import type { TLoggerData, TUniversalValue } from './types';
2
- /**
3
- * A single segment in an explicit ownerPath.
4
- *
5
- * Path-only rule:
6
- * - Relationships must be derived from these explicit segments, not from parsing IDs.
7
- */
8
- export interface IOwnerPathSegment {
9
- type: string;
10
- id: string;
11
- }
12
- /**
13
- * Event context that accompanies an emitted event.
14
- * This is the single source of truth for deterministic linking in subscribers.
15
- */
16
- export interface IEventContext {
17
- ownerType: string;
18
- ownerId: string;
19
- ownerPath: IOwnerPathSegment[];
20
- /** Optional structured metadata for debugging/observability */
21
- metadata?: TLoggerData;
22
- }
23
- /**
24
- * Allowed extension values for event payloads.
25
- *
26
- * NOTE:
27
- * - Must not use `any`/`unknown`.
28
- * - Includes IEventContext so `context` can be carried in data bags when needed.
29
- */
30
- export type TEventExtensionValue = TUniversalValue | TLoggerData | Error | IEventContext | IOwnerPathSegment[];
31
- /**
32
- * Base event payload shape.
33
- * Emitters may add additional fields, but MUST keep linkage information explicit.
34
- */
35
- export interface IBaseEventData {
36
- /** Timestamp when the event was emitted. This is required for deterministic ordering. */
37
- timestamp: Date;
38
- /** Optional structured metadata */
39
- metadata?: TLoggerData;
40
- /** Extensible fields for event-specific payloads */
41
- [key: string]: TEventExtensionValue | undefined;
42
- }
43
- /**
44
- * Execution-related event payload.
45
- */
46
- export interface IExecutionEventData extends IBaseEventData {
47
- }
48
- /**
49
- * Tool-related event payload.
50
- */
51
- export interface IToolEventData extends IBaseEventData {
52
- toolName?: string;
53
- parameters?: Record<string, TUniversalValue>;
54
- }
55
- /**
56
- * Agent-related event payload.
57
- */
58
- export interface IAgentEventData extends IBaseEventData {
59
- agentId?: string;
60
- }
61
- export type TEventListener = (eventType: string, data: IBaseEventData, context?: IEventContext) => void;
62
- /**
63
- * Minimal EventService contract for emitting events.
64
- * Subscriptions are handled by dedicated modules (e.g., EventEmitterPlugin), not here.
65
- */
66
- export interface IEventService {
67
- emit(eventType: string, data: IBaseEventData, context?: IEventContext): void;
68
- subscribe(listener: TEventListener): void;
69
- unsubscribe(listener: TEventListener): void;
70
- }
71
- /**
72
- * Explicit owner binding information used for scoped event emission.
73
- */
74
- export interface IEventServiceOwnerBinding {
75
- ownerType: string;
76
- ownerId: string;
77
- ownerPath: IOwnerPathSegment[];
78
- }
79
- //# sourceMappingURL=event-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-service.d.ts","sourceRoot":"","sources":["../../src/interfaces/event-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE5D;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAE/B,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG,WAAW,GAAG,KAAK,GAAG,aAAa,GAAG,iBAAiB,EAAE,CAAC;AAE/G;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,yFAAyF;IACzF,SAAS,EAAE,IAAI,CAAC;IAEhB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,WAAW,CAAC;IAEvB,oDAAoD;IACpD,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc;CAAG;AAE9D;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;AAExG;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7E,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAC1C,WAAW,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAClC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=event-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-service.js","sourceRoot":"","sources":["../../src/interfaces/event-service.ts"],"names":[],"mappings":""}
@@ -1,128 +0,0 @@
1
- import type { IChatOptions, IToolSchema } from './index';
2
- import type { TUniversalMessage, IAssistantMessage } from './messages';
3
- /**
4
- * Request for executing a streaming chat completion through an executor
5
- */
6
- export interface IChatExecutionRequest {
7
- /** Array of messages in the conversation */
8
- messages: TUniversalMessage[];
9
- /** Chat options including model, temperature, etc. */
10
- options?: IChatOptions;
11
- /** Available tools for the AI to use */
12
- tools?: IToolSchema[];
13
- /** Target AI provider (e.g., 'openai', 'anthropic', 'google') */
14
- provider: string;
15
- /** Specific model to use */
16
- model: string;
17
- }
18
- /**
19
- * Request for executing a streaming chat completion through an executor
20
- */
21
- export interface IStreamExecutionRequest extends IChatExecutionRequest {
22
- /** Indicates this is a streaming request */
23
- stream: true;
24
- }
25
- /**
26
- * Interface for executing AI provider operations
27
- *
28
- * Executors abstract the execution mechanism, allowing providers to work
29
- * with either local API calls or remote server calls transparently.
30
- *
31
- * Implementation patterns:
32
- * - LocalExecutor: Direct API calls using provider SDKs
33
- * - RemoteExecutor: HTTP/WebSocket calls to remote server
34
- * - CacheExecutor: Cached responses with explicit error propagation
35
- * - HybridExecutor: Conditional local/remote execution
36
- */
37
- export interface IExecutor {
38
- /**
39
- * Execute a chat completion request
40
- *
41
- * @param request - Chat execution request with messages, options, and tools
42
- * @returns Promise resolving to assistant message response
43
- *
44
- * @example
45
- * ```typescript
46
- * const response = await executor.executeChat({
47
- * messages: [{ role: 'user', content: 'Hello!' }],
48
- * options: { model: 'gpt-4', temperature: 0.7 },
49
- * provider: 'openai',
50
- * model: 'gpt-4'
51
- * });
52
- * ```
53
- */
54
- executeChat(request: IChatExecutionRequest): Promise<IAssistantMessage>;
55
- /**
56
- * Execute a streaming chat completion request
57
- *
58
- * @param request - Streaming chat execution request
59
- * @returns AsyncIterable of message chunks
60
- *
61
- * @example
62
- * ```typescript
63
- * for await (const chunk of executor.executeChatStream({
64
- * messages: [{ role: 'user', content: 'Tell me a story' }],
65
- * options: { model: 'gpt-4' },
66
- * provider: 'openai',
67
- * model: 'gpt-4',
68
- * stream: true
69
- * })) {
70
- * console.log(chunk.content);
71
- * }
72
- * ```
73
- */
74
- executeChatStream?(request: IStreamExecutionRequest): AsyncIterable<TUniversalMessage>;
75
- /**
76
- * Check if the executor supports tool calling
77
- * @returns true if tool calling is supported
78
- */
79
- supportsTools(): boolean;
80
- /**
81
- * Validate executor configuration
82
- * @returns true if configuration is valid
83
- */
84
- validateConfig(): boolean;
85
- /**
86
- * Clean up resources when executor is no longer needed
87
- */
88
- dispose?(): Promise<void>;
89
- /**
90
- * Get executor name/identifier
91
- */
92
- readonly name: string;
93
- /**
94
- * Get executor version
95
- */
96
- readonly version: string;
97
- }
98
- /**
99
- * Configuration options for local executor
100
- */
101
- export interface ILocalExecutorConfig {
102
- /** Timeout for API requests in milliseconds */
103
- timeout?: number;
104
- /** Maximum number of retry attempts */
105
- maxRetries?: number;
106
- /** Base delay between retries in milliseconds */
107
- retryDelay?: number;
108
- /** Whether to enable request/response logging */
109
- enableLogging?: boolean;
110
- }
111
- /**
112
- * Configuration options for remote executor
113
- */
114
- export interface IRemoteExecutorConfig {
115
- /** Remote server URL */
116
- serverUrl: string;
117
- /** User authentication token */
118
- userApiKey: string;
119
- /** Timeout for HTTP requests in milliseconds */
120
- timeout?: number;
121
- /** Maximum number of retry attempts */
122
- maxRetries?: number;
123
- /** Whether to enable WebSocket for streaming */
124
- enableWebSocket?: boolean;
125
- /** Custom headers to include in requests */
126
- headers?: Record<string, string>;
127
- }
128
- //# sourceMappingURL=executor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../src/interfaces/executor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,4CAA4C;IAC5C,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,sDAAsD;IACtD,OAAO,CAAC,EAAE,YAAY,CAAC;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B,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=executor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../src/interfaces/executor.ts"],"names":[],"mappings":""}
@@ -1,19 +0,0 @@
1
- import type { IBaseEventData, IEventContext } from './event-service';
2
- export interface IEventHistoryRecord {
3
- eventName: string;
4
- sequenceId: number;
5
- timestamp: Date;
6
- eventData: IBaseEventData;
7
- context: IEventContext;
8
- }
9
- export interface IEventHistorySnapshot {
10
- lastSequenceId: number;
11
- createdAt: Date;
12
- }
13
- export interface IEventHistoryModule {
14
- append(record: IEventHistoryRecord): void;
15
- read(fromSequenceId: number, toSequenceId?: number): IEventHistoryRecord[];
16
- readStream(fromSequenceId: number, toSequenceId?: number): AsyncIterable<IEventHistoryRecord>;
17
- getSnapshot?(): IEventHistorySnapshot | undefined;
18
- }
19
- //# sourceMappingURL=history-module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"history-module.d.ts","sourceRoot":"","sources":["../../src/interfaces/history-module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErE,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,cAAc,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAChC,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC1C,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAAC;IAC3E,UAAU,CAAC,cAAc,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC;IAC9F,WAAW,CAAC,IAAI,qBAAqB,GAAG,SAAS,CAAC;CACrD"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=history-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"history-module.js","sourceRoot":"","sources":["../../src/interfaces/history-module.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- export * from './types';
2
- export type { IAgentConfig, IAgentTemplate, IRunOptions } from './agent';
3
- export type { TUniversalMessage, TUniversalMessageRole, TUniversalMessageMetadata, IBaseMessage, IUserMessage, IAssistantMessage, ISystemMessage, IToolMessage, IToolCall } from './messages';
4
- export type { IAIProvider, IToolSchema, IParameterSchema, TJSONSchemaKind, TJSONSchemaEnum, TParameterDefaultValue, IChatOptions, IProviderOptions, IProviderRequest, IRawProviderResponse, ITokenUsage, IProviderSpecificOptions, TProviderConfigValue, TProviderOptionValueBase } from './provider';
5
- export type { TAgentCreationMetadata, TManagerToolParameters, IConfigValidationResult, IAgentCreationOptions, IAgentFactory, IAIProviderManager, IToolManager } from './manager';
6
- export type { ITool, IFunctionTool, IToolRegistry, IToolFactory, IToolResult, IToolExecutionResult, IToolExecutionContext, IParameterValidationResult, TToolExecutor, IOpenAPIToolConfig, IMCPToolConfig, TToolMetadata, } from './tool';
7
- export type { IEventService, IEventContext, IOwnerPathSegment, IBaseEventData, IExecutionEventData, IToolEventData, IAgentEventData, IEventServiceOwnerBinding, TEventListener } from './event-service';
8
- export type { IProgressReportingTool, IToolExecutionStep, TToolProgressCallback } from './progress-reporting';
9
- export { isProgressReportingTool, getToolEstimatedDuration, getToolExecutionSteps, setToolProgressCallback } from './progress-reporting';
10
- export type { TConversationContextMetadata, TToolExecutionParameters, TExecutionMetadata, TResponseMetadata, IToolExecutionRequest, IConversationContext, IConversationResponse, IStreamingChunk, IContextOptions, IExecutionServiceOptions, IConversationServiceOptions, IConversationService, IToolExecutionService, IExecutionService } from './service';
11
- export type { IExecutor, IChatExecutionRequest, IStreamExecutionRequest, ILocalExecutorConfig, IRemoteExecutorConfig } from './executor';
12
- export type { IEventHistoryModule, IEventHistoryRecord, IEventHistorySnapshot } from './history-module';
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,YAAY,EACR,YAAY,EACZ,cAAc,EACd,WAAW,EACd,MAAM,SAAS,CAAC;AAGjB,YAAY,EACR,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,SAAS,EACZ,MAAM,YAAY,CAAC;AAEpB,YAAY,EACR,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACX,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EAC3B,MAAM,YAAY,CAAC;AAEpB,YAAY,EACR,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACf,MAAM,WAAW,CAAC;AAEnB,YAAY,EACR,KAAK,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,aAAa,GAChB,MAAM,QAAQ,CAAC;AAEhB,YAAY,EACR,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,yBAAyB,EACzB,cAAc,EACjB,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACR,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACR,4BAA4B,EAC5B,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,wBAAwB,EACxB,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACpB,MAAM,WAAW,CAAC;AAEnB,YAAY,EACR,SAAS,EACT,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACxB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACR,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,kBAAkB,CAAC"}
@@ -1,4 +0,0 @@
1
- // Interface exports - centralized types first
2
- export * from './types';
3
- export { isProgressReportingTool, getToolEstimatedDuration, getToolExecutionSteps, setToolProgressCallback } from './progress-reporting';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,cAAc,SAAS,CAAC;AAmFxB,OAAO,EACH,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EAC1B,MAAM,sBAAsB,CAAC"}
@@ -1,142 +0,0 @@
1
- import type { IAIProvider, IToolSchema } from './provider';
2
- import type { ITool, TToolExecutor, IToolExecutionContext, TToolParameters } from './tool';
3
- import type { TUniversalValue } from './types';
4
- import type { IAgentConfig, IAgent } from './agent';
5
- /**
6
- * Reusable type definitions for manager layer
7
- */
8
- /**
9
- * Agent creation metadata type
10
- * Used for storing additional information about agent creation and configuration
11
- */
12
- export type TAgentCreationMetadata = Record<string, string | number | boolean | Date>;
13
- /**
14
- * Tool execution parameters for manager operations
15
- * Used for tool parameter validation and execution in manager context
16
- */
17
- export type TManagerToolParameters = Record<string, string | number | boolean | string[] | number[] | boolean[]>;
18
- /**
19
- * Configuration validation result
20
- */
21
- export interface IConfigValidationResult {
22
- isValid: boolean;
23
- errors: string[];
24
- warnings?: string[];
25
- }
26
- /**
27
- * AI Provider Manager interface for provider registration and selection
28
- */
29
- export interface IAIProviderManager {
30
- /**
31
- * Register an AI provider
32
- */
33
- addProvider(name: string, provider: IAIProvider): void;
34
- /**
35
- * Remove an AI provider
36
- */
37
- removeProvider(name: string): void;
38
- /**
39
- * Get registered provider by name
40
- */
41
- getProvider(name: string): IAIProvider | undefined;
42
- /**
43
- * Get all registered providers
44
- */
45
- getProviders(): Record<string, IAIProvider>;
46
- /**
47
- * Set current provider and model
48
- */
49
- setCurrentProvider(name: string, model: string): void;
50
- /**
51
- * Get current provider and model
52
- */
53
- getCurrentProvider(): {
54
- provider: string;
55
- model: string;
56
- } | undefined;
57
- /**
58
- * Check if provider is configured
59
- */
60
- isConfigured(): boolean;
61
- /**
62
- * Get available models for a provider
63
- */
64
- getAvailableModels(providerName: string): string[];
65
- }
66
- /**
67
- * Tool Manager interface for tool registration and management
68
- */
69
- export interface IToolManager {
70
- /**
71
- * Register a tool
72
- */
73
- addTool(schema: IToolSchema, executor: TToolExecutor): void;
74
- /**
75
- * Remove a tool by name
76
- */
77
- removeTool(name: string): void;
78
- /**
79
- * Get tool interface by name
80
- */
81
- getTool(name: string): ITool | undefined;
82
- /**
83
- * Get tool schema by name
84
- */
85
- getToolSchema(name: string): IToolSchema | undefined;
86
- /**
87
- * Get all registered tools
88
- */
89
- getTools(): IToolSchema[];
90
- /**
91
- * Execute a tool
92
- */
93
- executeTool(name: string, parameters: TToolParameters, context?: IToolExecutionContext): Promise<TUniversalValue>;
94
- /**
95
- * Check if tool exists
96
- */
97
- hasTool(name: string): boolean;
98
- /**
99
- * Set allowed tools (for filtering)
100
- */
101
- setAllowedTools(tools: string[]): void;
102
- /**
103
- * Get allowed tools
104
- */
105
- getAllowedTools(): string[] | undefined;
106
- }
107
- /**
108
- * Agent creation options
109
- */
110
- export interface IAgentCreationOptions {
111
- /** Override default configuration */
112
- overrides?: Partial<IAgentConfig>;
113
- /** Validation options */
114
- validation?: {
115
- strict?: boolean;
116
- skipOptional?: boolean;
117
- };
118
- /** Additional metadata */
119
- metadata?: TAgentCreationMetadata;
120
- }
121
- /**
122
- * Agent Factory interface for agent creation and configuration
123
- */
124
- export interface IAgentFactory {
125
- /**
126
- * Create agent instance
127
- */
128
- createAgent(config: IAgentConfig, options?: IAgentCreationOptions): IAgent<IAgentConfig>;
129
- /**
130
- * Validate agent configuration
131
- */
132
- validateConfig(config: IAgentConfig): IConfigValidationResult;
133
- /**
134
- * Get default configuration
135
- */
136
- getDefaultConfig(): IAgentConfig;
137
- /**
138
- * Merge configurations
139
- */
140
- mergeConfig(base: IAgentConfig, override: Partial<IAgentConfig>): IAgentConfig;
141
- }
142
- //# sourceMappingURL=manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/interfaces/manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEpD;;GAEG;AAEH;;;GAGG;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