@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,186 +0,0 @@
1
- import { describe, it, expect, beforeEach, afterEach } from 'vitest';
2
- import { Tools } from './tool-manager';
3
- import { ToolExecutionError } from '../utils/errors';
4
- describe('Tools (ToolManager)', () => {
5
- let toolManager;
6
- const mockToolSchema = {
7
- name: 'testTool',
8
- description: 'A test tool',
9
- parameters: {
10
- type: 'object',
11
- properties: {
12
- input: {
13
- type: 'string',
14
- description: 'Test input'
15
- }
16
- },
17
- required: ['input']
18
- }
19
- };
20
- const mockExecutor = async (params) => {
21
- return `Processed: ${params.input}`;
22
- };
23
- beforeEach(async () => {
24
- toolManager = new Tools();
25
- await toolManager.initialize();
26
- });
27
- afterEach(async () => {
28
- await toolManager.dispose();
29
- });
30
- describe('Initialization and Disposal', () => {
31
- it('should initialize successfully', async () => {
32
- const newManager = new Tools();
33
- await expect(newManager.initialize()).resolves.not.toThrow();
34
- await newManager.dispose();
35
- });
36
- it('should dispose successfully', async () => {
37
- await expect(toolManager.dispose()).resolves.not.toThrow();
38
- });
39
- it('should clear all tools on disposal', async () => {
40
- toolManager.addTool(mockToolSchema, mockExecutor);
41
- expect(toolManager.getToolCount()).toBe(1);
42
- await toolManager.dispose();
43
- await toolManager.initialize();
44
- expect(toolManager.getToolCount()).toBe(0);
45
- });
46
- });
47
- describe('Tool Registration', () => {
48
- it('should register a tool successfully', () => {
49
- toolManager.addTool(mockToolSchema, mockExecutor);
50
- expect(toolManager.hasTool('testTool')).toBe(true);
51
- expect(toolManager.getToolCount()).toBe(1);
52
- });
53
- it('should get tool schema correctly', () => {
54
- toolManager.addTool(mockToolSchema, mockExecutor);
55
- const schema = toolManager.getToolSchema('testTool');
56
- expect(schema).toEqual(mockToolSchema);
57
- });
58
- it('should get tool instance correctly', () => {
59
- toolManager.addTool(mockToolSchema, mockExecutor);
60
- const tool = toolManager.getTool('testTool');
61
- expect(tool).toBeDefined();
62
- expect(tool?.schema).toEqual(mockToolSchema);
63
- });
64
- it('should remove a tool successfully', () => {
65
- toolManager.addTool(mockToolSchema, mockExecutor);
66
- expect(toolManager.hasTool('testTool')).toBe(true);
67
- toolManager.removeTool('testTool');
68
- expect(toolManager.hasTool('testTool')).toBe(false);
69
- expect(toolManager.getToolCount()).toBe(0);
70
- });
71
- it('should handle multiple tools', () => {
72
- const schema2 = {
73
- name: 'testTool2',
74
- description: 'Another test tool',
75
- parameters: {
76
- type: 'object',
77
- properties: {
78
- value: { type: 'number' }
79
- },
80
- required: ['value']
81
- }
82
- };
83
- toolManager.addTool(mockToolSchema, mockExecutor);
84
- toolManager.addTool(schema2, async (params) => typeof params.value === 'number' ? params.value * 2 : 0);
85
- expect(toolManager.getToolCount()).toBe(2);
86
- expect(toolManager.hasTool('testTool')).toBe(true);
87
- expect(toolManager.hasTool('testTool2')).toBe(true);
88
- });
89
- });
90
- describe('Tool Execution', () => {
91
- beforeEach(() => {
92
- toolManager.addTool(mockToolSchema, mockExecutor);
93
- });
94
- it('should execute tool successfully', async () => {
95
- const result = await toolManager.executeTool('testTool', { input: 'test' });
96
- expect(result).toBe('Processed: test');
97
- });
98
- it('should throw error for non-existent tool', async () => {
99
- await expect(toolManager.executeTool('nonExistent', { input: 'test' })).rejects.toThrow(ToolExecutionError);
100
- });
101
- it('should throw error for tool execution failure', async () => {
102
- const failingExecutor = async () => {
103
- throw new Error('Execution failed');
104
- };
105
- const failingSchema = {
106
- name: 'failingTool',
107
- description: 'A failing tool',
108
- parameters: {
109
- type: 'object',
110
- properties: {},
111
- required: []
112
- }
113
- };
114
- toolManager.addTool(failingSchema, failingExecutor);
115
- await expect(toolManager.executeTool('failingTool', {})).rejects.toThrow(ToolExecutionError);
116
- });
117
- });
118
- describe('Tool Filtering', () => {
119
- beforeEach(() => {
120
- const schemas = [
121
- { name: 'tool1', description: 'Tool 1', parameters: { type: 'object', properties: {}, required: [] } },
122
- { name: 'tool2', description: 'Tool 2', parameters: { type: 'object', properties: {}, required: [] } },
123
- { name: 'tool3', description: 'Tool 3', parameters: { type: 'object', properties: {}, required: [] } }
124
- ];
125
- schemas.forEach(schema => {
126
- toolManager.addTool(schema, async () => 'result');
127
- });
128
- });
129
- it('should return all tools when no filter is set', () => {
130
- const tools = toolManager.getTools();
131
- expect(tools).toHaveLength(3);
132
- expect(tools.map(t => t.name)).toEqual(['tool1', 'tool2', 'tool3']);
133
- });
134
- it('should filter tools by allowed list', () => {
135
- toolManager.setAllowedTools(['tool1', 'tool3']);
136
- const tools = toolManager.getTools();
137
- expect(tools).toHaveLength(2);
138
- expect(tools.map(t => t.name)).toEqual(['tool1', 'tool3']);
139
- });
140
- it('should get and set allowed tools correctly', () => {
141
- expect(toolManager.getAllowedTools()).toBeUndefined();
142
- toolManager.setAllowedTools(['tool1', 'tool2']);
143
- expect(toolManager.getAllowedTools()).toEqual(['tool1', 'tool2']);
144
- });
145
- it('should prevent execution of non-allowed tools', async () => {
146
- toolManager.setAllowedTools(['tool1']);
147
- await expect(toolManager.executeTool('tool2', {})).rejects.toThrow(ToolExecutionError);
148
- });
149
- it('should allow execution of allowed tools', async () => {
150
- toolManager.setAllowedTools(['tool1']);
151
- await expect(toolManager.executeTool('tool1', {})).resolves.toBe('result');
152
- });
153
- });
154
- describe('Registry Access', () => {
155
- it('should provide access to tool registry', () => {
156
- const registry = toolManager.getRegistry();
157
- expect(registry).toBeDefined();
158
- expect(typeof registry.register).toBe('function');
159
- expect(typeof registry.get).toBe('function');
160
- });
161
- it('should return correct tool count', () => {
162
- expect(toolManager.getToolCount()).toBe(0);
163
- toolManager.addTool(mockToolSchema, mockExecutor);
164
- expect(toolManager.getToolCount()).toBe(1);
165
- toolManager.addTool({ name: 'tool2', description: 'Tool 2', parameters: { type: 'object', properties: {}, required: [] } }, async () => 'result');
166
- expect(toolManager.getToolCount()).toBe(2);
167
- });
168
- });
169
- describe('Error Handling', () => {
170
- it('should handle undefined tool schema gracefully', () => {
171
- const schema = toolManager.getToolSchema('nonExistent');
172
- expect(schema).toBeUndefined();
173
- });
174
- it('should handle undefined tool instance gracefully', () => {
175
- const tool = toolManager.getTool('nonExistent');
176
- expect(tool).toBeUndefined();
177
- });
178
- it('should handle checking non-existent tool', () => {
179
- expect(toolManager.hasTool('nonExistent')).toBe(false);
180
- });
181
- it('should handle removing non-existent tool gracefully', () => {
182
- expect(() => toolManager.removeTool('nonExistent')).not.toThrow();
183
- });
184
- });
185
- });
186
- //# sourceMappingURL=tool-manager.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool-manager.test.js","sourceRoot":"","sources":["../../src/managers/tool-manager.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC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CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC5B,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;YACtD,MAAM,MAAM,GAAG,WAAW,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;YACxD,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CAAC;QACnC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;YACxD,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;YAChD,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;YAChD,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;YAC3D,MAAM,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QACtE,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,107 +0,0 @@
1
- [
2
- {
3
- "name": "general",
4
- "description": "General-purpose agent capable of handling diverse tasks. Use when no specific template is needed or when task requirements are unclear. This is the fallback option for general work.",
5
- "llm_provider": "openai",
6
- "model": "gpt-4o-mini",
7
- "temperature": 0.5,
8
- "system_prompt": "You are a helpful and capable AI assistant with broad knowledge and skills. You can adapt to various tasks and requirements while maintaining high quality and accuracy. Your strengths include:\n\n• General problem-solving and analysis\n• Clear communication and explanation\n• Flexible task adaptation\n• Balanced approach to different types of work\n• Reliable execution of varied requests\n\nWhen handling tasks:\n1. Analyze the request to understand requirements\n2. Apply appropriate methods and knowledge\n3. Provide clear, useful, and accurate responses\n4. Ask for clarification when needed\n5. Adapt your approach to the specific context\n6. Ensure completeness and quality in your work\n\nProvide helpful, accurate, and well-structured responses that meet the user's needs effectively.",
9
- "tags": ["general", "default", "versatile"],
10
- "version": "1.0.0",
11
- "metadata": {
12
- "type": "builtin",
13
- "author": "Robota SDK",
14
- "createdAt": "2024-01-01T00:00:00.000Z"
15
- }
16
- },
17
- {
18
- "name": "summarizer",
19
- "description": "Expert in document summarization and key point extraction. Use for: summarizing documents, extracting key insights, creating executive summaries, condensing reports, highlighting main points, creating meeting notes, distilling complex information.",
20
- "llm_provider": "openai",
21
- "model": "gpt-4o-mini",
22
- "temperature": 0.3,
23
- "system_prompt": "You are an expert summarization specialist with advanced capabilities in analyzing and distilling complex information. Your expertise includes:\n\n• Extracting key points and main ideas from lengthy documents\n• Creating concise summaries while preserving essential information\n• Identifying critical insights and actionable items\n• Structuring information in clear, digestible formats\n• Adapting summary length and style to audience needs\n\nWhen summarizing, focus on:\n1. Main themes and central arguments\n2. Supporting evidence and key data points\n3. Conclusions and recommendations\n4. Action items and next steps\n5. Critical dependencies and risks\n\nProvide summaries that are accurate, comprehensive, and immediately useful for decision-making.",
24
- "tags": ["analysis", "summarization", "extraction"],
25
- "version": "1.0.0",
26
- "metadata": {
27
- "type": "builtin",
28
- "author": "Robota SDK",
29
- "createdAt": "2024-01-01T00:00:00.000Z"
30
- }
31
- },
32
- {
33
- "name": "ethical_reviewer",
34
- "description": "Expert in ethical review and compliance assessment. Use for: ethical evaluation, compliance checking, bias detection, privacy assessment, content moderation, legal review, risk analysis, safety evaluation, responsible AI practices.",
35
- "llm_provider": "anthropic",
36
- "model": "claude-3-5-sonnet-20241022",
37
- "temperature": 0.2,
38
- "system_prompt": "You are an ethical review specialist focused on responsible AI practices and content compliance. Your expertise covers:\n\n• AI ethics and responsible technology development\n• Privacy protection and data governance\n• Bias detection and fairness assessment\n• Legal compliance and regulatory requirements\n• Content moderation and safety guidelines\n• Transparency and accountability standards\n\nWhen reviewing content or proposals, evaluate:\n1. Potential ethical implications and risks\n2. Privacy and data protection concerns\n3. Bias, fairness, and inclusivity issues\n4. Legal and regulatory compliance\n5. Transparency and explainability requirements\n6. Potential unintended consequences\n\nProvide balanced assessments with specific recommendations for addressing identified concerns while supporting innovation and progress.",
39
- "tags": ["ethics", "review", "compliance"],
40
- "version": "1.0.0",
41
- "metadata": {
42
- "type": "builtin",
43
- "author": "Robota SDK",
44
- "createdAt": "2024-01-01T00:00:00.000Z"
45
- }
46
- },
47
- {
48
- "name": "creative_ideator",
49
- "description": "Expert in creative thinking and innovative idea generation. Use for: brainstorming sessions, innovative product concepts, creative problem solving, design thinking, artistic projects, marketing campaigns, breakthrough ideas, imaginative solutions, out-of-the-box thinking.",
50
- "llm_provider": "openai",
51
- "model": "gpt-4",
52
- "temperature": 0.8,
53
- "system_prompt": "You are a creative ideation expert specializing in innovative thinking and breakthrough idea generation. Your strengths include:\n\n• Divergent thinking and brainstorming techniques\n• Cross-industry innovation and pattern recognition\n• Creative problem-solving methodologies\n• Design thinking and user-centered innovation\n• Future-oriented scenario planning\n• Connecting disparate concepts and ideas\n\nWhen generating ideas, apply:\n1. Multiple perspective-taking and reframing\n2. \"What if\" scenarios and possibility thinking\n3. Combination and recombination of existing concepts\n4. Challenge assumptions and conventional wisdom\n5. Explore edge cases and unconventional approaches\n6. Consider both incremental and radical innovations\n\nDeliver creative solutions that are imaginative yet practical, pushing boundaries while remaining grounded in feasibility.",
54
- "tags": ["creativity", "brainstorming", "innovation"],
55
- "version": "1.0.0",
56
- "metadata": {
57
- "type": "builtin",
58
- "author": "Robota SDK",
59
- "createdAt": "2024-01-01T00:00:00.000Z"
60
- }
61
- },
62
- {
63
- "name": "fast_executor",
64
- "description": "Expert in rapid and accurate task execution. Use for: quick tasks, urgent requests, simple implementations, straightforward analysis, routine operations, time-sensitive work, efficient problem solving, rapid prototyping, immediate action items.",
65
- "llm_provider": "openai",
66
- "model": "gpt-4o-mini",
67
- "temperature": 0.1,
68
- "system_prompt": "You are a fast and accurate task executor focused on efficiency and precision. Your core competencies include:\n\n• Rapid task analysis and prioritization\n• Efficient workflow optimization\n• Quick decision-making with available information\n• Streamlined communication and reporting\n• Resource optimization and time management\n• Quality control under time constraints\n\nWhen executing tasks, prioritize:\n1. Speed without compromising accuracy\n2. Clear, concise deliverables\n3. Essential information over comprehensive detail\n4. Actionable outputs and next steps\n5. Efficient use of available resources\n6. Quick validation and error checking\n\nDeliver results that meet requirements efficiently, focusing on what matters most for immediate progress and decision-making.",
69
- "tags": ["execution", "speed", "accuracy"],
70
- "version": "1.0.0",
71
- "metadata": {
72
- "type": "builtin",
73
- "author": "Robota SDK",
74
- "createdAt": "2024-01-01T00:00:00.000Z"
75
- }
76
- },
77
- {
78
- "name": "task_coordinator",
79
- "description": "Expert in task analysis, work distribution, and team coordination. Use for: analyzing complex tasks, breaking down work into manageable parts, delegating to specialists, coordinating multiple team members, managing workflows, ensuring task completion, optimizing team productivity.",
80
- "llm_provider": "openai",
81
- "model": "gpt-4o-mini",
82
- "temperature": 0.4,
83
- "system_prompt": "You are a task coordination specialist with expertise in analyzing complex work and distributing it efficiently among team members. Your core competencies include:\n\n• Complex task analysis and decomposition\n• Optimal work distribution and delegation\n• Team member specialization recognition\n• Workflow optimization and management\n• Progress tracking and coordination\n• Resource allocation and scheduling\n\nWhen coordinating tasks, focus on:\n1. Breaking complex requests into clear, manageable subtasks\n2. Identifying the best specialist for each type of work\n3. Ensuring no overlap or gaps in task coverage\n4. Maintaining clear communication and expectations\n5. Coordinating dependencies between team members\n6. Synthesizing results from multiple contributors\n\nYour goal is to maximize team efficiency while ensuring high-quality outcomes through strategic task distribution and effective coordination.",
84
- "tags": ["coordination", "delegation", "workflow", "management"],
85
- "version": "1.0.0",
86
- "metadata": {
87
- "type": "builtin",
88
- "author": "Robota SDK",
89
- "createdAt": "2024-01-01T00:00:00.000Z"
90
- }
91
- },
92
- {
93
- "name": "domain_researcher",
94
- "description": "Expert in domain-specific research and analysis. Use for: market research, competitive analysis, technical investigation, academic research, industry analysis, trend studies, data analysis, expert insights, comprehensive reports, evidence-based conclusions.",
95
- "llm_provider": "anthropic",
96
- "model": "claude-3-5-sonnet-20241022",
97
- "temperature": 0.4,
98
- "system_prompt": "You are a domain research specialist with expertise in conducting thorough investigations across various fields. Your research capabilities include:\n\n• Systematic literature review and analysis\n• Primary and secondary source evaluation\n• Cross-disciplinary knowledge synthesis\n• Trend analysis and pattern recognition\n• Expert opinion and perspective gathering\n• Evidence-based conclusion development\n\nWhen conducting research, focus on:\n1. Comprehensive coverage of relevant sources\n2. Critical evaluation of information quality\n3. Identification of knowledge gaps and limitations\n4. Synthesis of findings into coherent insights\n5. Recognition of competing perspectives and debates\n6. Practical implications and applications\n\nProvide research that is thorough, well-sourced, and analytically rigorous, delivering insights that advance understanding and inform decision-making.",
99
- "tags": ["research", "analysis", "domain-expertise"],
100
- "version": "1.0.0",
101
- "metadata": {
102
- "type": "builtin",
103
- "author": "Robota SDK",
104
- "createdAt": "2024-01-01T00:00:00.000Z"
105
- }
106
- }
107
- ]
@@ -1,67 +0,0 @@
1
- import { AbstractPlugin } from '../../abstracts/abstract-plugin';
2
- import { TUniversalMessage } from '../../interfaces/agent';
3
- import { IConversationHistoryPluginOptions, IConversationHistoryPluginStats, IConversationHistoryEntry } from './types';
4
- /**
5
- * Plugin for managing conversation history
6
- * Saves and loads conversation history using configurable storage strategies
7
- */
8
- export declare class ConversationHistoryPlugin extends AbstractPlugin<IConversationHistoryPluginOptions, IConversationHistoryPluginStats> {
9
- name: string;
10
- version: string;
11
- private storage;
12
- private pluginOptions;
13
- private logger;
14
- private currentConversationId?;
15
- private batchSaveTimer?;
16
- private pendingSaves;
17
- constructor(options: IConversationHistoryPluginOptions);
18
- /**
19
- * Start a new conversation
20
- */
21
- startConversation(conversationId: string): Promise<void>;
22
- /**
23
- * Add a message to the current conversation
24
- */
25
- addMessage(message: TUniversalMessage): Promise<void>;
26
- /**
27
- * Load conversation history
28
- */
29
- loadConversation(conversationId: string): Promise<IConversationHistoryEntry | undefined>;
30
- /**
31
- * Get conversation history as messages
32
- */
33
- getHistory(conversationId: string): Promise<TUniversalMessage[]>;
34
- /**
35
- * List all conversation IDs
36
- */
37
- listConversations(): Promise<string[]>;
38
- /**
39
- * Delete a conversation
40
- */
41
- deleteConversation(conversationId: string): Promise<boolean>;
42
- /**
43
- * Clear all conversations
44
- */
45
- clearAllConversations(): Promise<void>;
46
- /**
47
- * Save pending conversations (for batch mode)
48
- */
49
- savePending(): Promise<void>;
50
- /**
51
- * Cleanup resources
52
- */
53
- destroy(): Promise<void>;
54
- /**
55
- * Validate plugin options
56
- */
57
- private validateOptions;
58
- /**
59
- * Create storage instance based on strategy
60
- */
61
- private createStorage;
62
- /**
63
- * Setup batch saving timer
64
- */
65
- private setupBatchSaving;
66
- }
67
- //# sourceMappingURL=conversation-history-plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation-history-plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/conversation-history/conversation-history-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAkC,MAAM,iCAAiC,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAK3D,OAAO,EACH,iCAAiC,EACjC,+BAA+B,EAC/B,yBAAyB,EAE5B,MAAM,SAAS,CAAC;AAOjB;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,cAAc,CAAC,iCAAiC,EAAE,+BAA+B,CAAC;IAC7H,IAAI,SAA+B;IACnC,OAAO,SAAW;IAElB,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,aAAa,CAA8C;IACnE,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,qBAAqB,CAAC,CAAS;IACvC,OAAO,CAAC,cAAc,CAAC,CAAW;IAClC,OAAO,CAAC,YAAY,CAAqB;gBAE7B,OAAO,EAAE,iCAAiC;IA2CtD;;OAEG;IACG,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB9D;;OAEG;IACG,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwC3D;;OAEG;IACG,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,GAAG,SAAS,CAAC;IAc9F;;OAEG;IACG,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAKtE;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAQ5C;;OAEG;IACG,kBAAkB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAWlE;;OAEG;IACG,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IAU5C;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAsBlC;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB9B;;OAEG;IACH,OAAO,CAAC,eAAe;IA0BvB;;OAEG;IACH,OAAO,CAAC,aAAa;IAarB;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAS3B"}
@@ -1,270 +0,0 @@
1
- import { AbstractPlugin, PluginCategory, PluginPriority } from '../../abstracts/abstract-plugin';
2
- import { createLogger } from '../../utils/logger';
3
- import { PluginError, ConfigurationError } from '../../utils/errors';
4
- import { startPeriodicTask, stopPeriodicTask } from '../../utils/periodic-task';
5
- import { MemoryHistoryStorage, FileHistoryStorage, DatabaseHistoryStorage } from './storages/index';
6
- /**
7
- * Plugin for managing conversation history
8
- * Saves and loads conversation history using configurable storage strategies
9
- */
10
- export class ConversationHistoryPlugin extends AbstractPlugin {
11
- name = 'ConversationHistoryPlugin';
12
- version = '1.0.0';
13
- storage;
14
- pluginOptions;
15
- logger;
16
- currentConversationId;
17
- batchSaveTimer;
18
- pendingSaves = new Set();
19
- constructor(options) {
20
- super();
21
- this.logger = createLogger('ConversationHistoryPlugin');
22
- // Set plugin classification
23
- this.category = PluginCategory.STORAGE;
24
- this.priority = PluginPriority.HIGH;
25
- // Validate options
26
- this.validateOptions(options);
27
- // Set defaults
28
- this.pluginOptions = {
29
- enabled: options.enabled ?? true,
30
- storage: options.storage,
31
- maxConversations: options.maxConversations ?? 100,
32
- maxMessagesPerConversation: options.maxMessagesPerConversation ?? 1000,
33
- filePath: options.filePath ?? './conversations.json',
34
- connectionString: options.connectionString ?? '',
35
- autoSave: options.autoSave ?? true,
36
- saveInterval: options.saveInterval ?? 30000, // 30 seconds
37
- // Add plugin options defaults
38
- category: options.category ?? PluginCategory.STORAGE,
39
- priority: options.priority ?? PluginPriority.HIGH,
40
- moduleEvents: options.moduleEvents ?? [],
41
- subscribeToAllModuleEvents: options.subscribeToAllModuleEvents ?? false,
42
- };
43
- // Initialize storage
44
- this.storage = this.createStorage();
45
- // Setup batch saving if not auto-saving
46
- if (!this.pluginOptions.autoSave) {
47
- this.setupBatchSaving();
48
- }
49
- this.logger.info('ConversationHistoryPlugin initialized', {
50
- storage: this.pluginOptions.storage,
51
- maxConversations: this.pluginOptions.maxConversations,
52
- autoSave: this.pluginOptions.autoSave
53
- });
54
- }
55
- /**
56
- * Start a new conversation
57
- */
58
- async startConversation(conversationId) {
59
- try {
60
- this.currentConversationId = conversationId;
61
- const entry = {
62
- conversationId,
63
- messages: [],
64
- startTime: new Date(),
65
- lastUpdated: new Date(),
66
- metadata: {}
67
- };
68
- if (this.pluginOptions.autoSave) {
69
- await this.storage.save(conversationId, entry);
70
- }
71
- else {
72
- this.pendingSaves.add(conversationId);
73
- }
74
- this.logger.debug('Started new conversation', { conversationId });
75
- }
76
- catch (error) {
77
- throw new PluginError('Failed to start conversation', this.name, { conversationId, error: error instanceof Error ? error.message : String(error) });
78
- }
79
- }
80
- /**
81
- * Add a message to the current conversation
82
- */
83
- async addMessage(message) {
84
- if (!this.currentConversationId) {
85
- throw new PluginError('No active conversation', this.name);
86
- }
87
- try {
88
- const entry = await this.storage.load(this.currentConversationId) || {
89
- conversationId: this.currentConversationId,
90
- messages: [],
91
- startTime: new Date(),
92
- lastUpdated: new Date(),
93
- metadata: {}
94
- };
95
- // Add message and trim if necessary
96
- entry.messages.push(message);
97
- if (entry.messages.length > this.pluginOptions.maxMessagesPerConversation) {
98
- entry.messages = entry.messages.slice(-this.pluginOptions.maxMessagesPerConversation);
99
- }
100
- entry.lastUpdated = new Date();
101
- if (this.pluginOptions.autoSave) {
102
- await this.storage.save(this.currentConversationId, entry);
103
- }
104
- else {
105
- this.pendingSaves.add(this.currentConversationId);
106
- }
107
- this.logger.debug('Added message to conversation', {
108
- conversationId: this.currentConversationId,
109
- messageRole: message.role,
110
- messageLength: message.content?.length ?? 0
111
- });
112
- }
113
- catch (error) {
114
- throw new PluginError('Failed to add message to conversation', this.name, {
115
- conversationId: this.currentConversationId,
116
- error: error instanceof Error ? error.message : String(error)
117
- });
118
- }
119
- }
120
- /**
121
- * Load conversation history
122
- */
123
- async loadConversation(conversationId) {
124
- try {
125
- const entry = await this.storage.load(conversationId);
126
- this.logger.debug('Loaded conversation', {
127
- conversationId,
128
- found: !!entry,
129
- messageCount: entry?.messages.length ?? 0
130
- });
131
- return entry;
132
- }
133
- catch (error) {
134
- throw new PluginError('Failed to load conversation', this.name, { conversationId, error: error instanceof Error ? error.message : String(error) });
135
- }
136
- }
137
- /**
138
- * Get conversation history as messages
139
- */
140
- async getHistory(conversationId) {
141
- const entry = await this.loadConversation(conversationId);
142
- return entry?.messages ?? [];
143
- }
144
- /**
145
- * List all conversation IDs
146
- */
147
- async listConversations() {
148
- try {
149
- return await this.storage.list();
150
- }
151
- catch (error) {
152
- throw new PluginError('Failed to list conversations', this.name, { error: error instanceof Error ? error.message : String(error) });
153
- }
154
- }
155
- /**
156
- * Delete a conversation
157
- */
158
- async deleteConversation(conversationId) {
159
- try {
160
- const deleted = await this.storage.delete(conversationId);
161
- this.pendingSaves.delete(conversationId);
162
- this.logger.debug('Deleted conversation', { conversationId, deleted });
163
- return deleted;
164
- }
165
- catch (error) {
166
- throw new PluginError('Failed to delete conversation', this.name, { conversationId, error: error instanceof Error ? error.message : String(error) });
167
- }
168
- }
169
- /**
170
- * Clear all conversations
171
- */
172
- async clearAllConversations() {
173
- try {
174
- await this.storage.clear();
175
- this.pendingSaves.clear();
176
- this.logger.info('Cleared all conversations');
177
- }
178
- catch (error) {
179
- throw new PluginError('Failed to clear conversations', this.name, { error: error instanceof Error ? error.message : String(error) });
180
- }
181
- }
182
- /**
183
- * Save pending conversations (for batch mode)
184
- */
185
- async savePending() {
186
- if (this.pendingSaves.size === 0)
187
- return;
188
- const conversationIds = Array.from(this.pendingSaves);
189
- this.logger.debug('Saving pending conversations', { count: conversationIds.length });
190
- for (const conversationId of conversationIds) {
191
- try {
192
- const entry = await this.storage.load(conversationId);
193
- if (entry) {
194
- await this.storage.save(conversationId, entry);
195
- }
196
- this.pendingSaves.delete(conversationId);
197
- }
198
- catch (error) {
199
- this.logger.error('Failed to save pending conversation', {
200
- conversationId,
201
- error: error instanceof Error ? error.message : String(error)
202
- });
203
- }
204
- }
205
- }
206
- /**
207
- * Cleanup resources
208
- */
209
- async destroy() {
210
- try {
211
- stopPeriodicTask(this.batchSaveTimer);
212
- this.batchSaveTimer = undefined;
213
- // Save any pending conversations
214
- await this.savePending();
215
- this.logger.info('ConversationHistoryPlugin destroyed');
216
- }
217
- catch (error) {
218
- this.logger.error('Error during plugin cleanup', {
219
- error: error instanceof Error ? error.message : String(error)
220
- });
221
- }
222
- }
223
- /**
224
- * Validate plugin options
225
- */
226
- validateOptions(options) {
227
- if (!options.storage) {
228
- throw new ConfigurationError('Storage strategy is required');
229
- }
230
- if (!['memory', 'file', 'database'].includes(options.storage)) {
231
- throw new ConfigurationError('Invalid storage strategy', { validStrategies: ['memory', 'file', 'database'], provided: options.storage });
232
- }
233
- if (options.storage === 'file' && !options.filePath) {
234
- throw new ConfigurationError('File path is required for file storage strategy');
235
- }
236
- if (options.storage === 'database' && !options.connectionString) {
237
- throw new ConfigurationError('Connection string is required for database storage strategy');
238
- }
239
- if (options.maxConversations !== undefined && options.maxConversations <= 0) {
240
- throw new ConfigurationError('Max conversations must be positive');
241
- }
242
- if (options.maxMessagesPerConversation !== undefined && options.maxMessagesPerConversation <= 0) {
243
- throw new ConfigurationError('Max messages per conversation must be positive');
244
- }
245
- }
246
- /**
247
- * Create storage instance based on strategy
248
- */
249
- createStorage() {
250
- switch (this.pluginOptions.storage) {
251
- case 'memory':
252
- return new MemoryHistoryStorage(this.pluginOptions.maxConversations);
253
- case 'file':
254
- return new FileHistoryStorage(this.pluginOptions.filePath);
255
- case 'database':
256
- return new DatabaseHistoryStorage(this.pluginOptions.connectionString);
257
- default:
258
- throw new ConfigurationError('Unknown storage strategy', { strategy: this.pluginOptions.storage });
259
- }
260
- }
261
- /**
262
- * Setup batch saving timer
263
- */
264
- setupBatchSaving() {
265
- this.batchSaveTimer = startPeriodicTask(this.logger, { name: 'ConversationHistoryPlugin.savePending', intervalMs: this.pluginOptions.saveInterval }, async () => {
266
- await this.savePending();
267
- });
268
- }
269
- }
270
- //# sourceMappingURL=conversation-history-plugin.js.map