@robota-sdk/agent-core 3.0.0-beta.4 → 3.0.0-beta.43

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 (504) hide show
  1. package/README.md +72 -186
  2. package/dist/browser/index.d.ts +302 -87
  3. package/dist/browser/index.js +10 -4
  4. package/dist/node/index.cjs +10 -4
  5. package/dist/node/index.d.cts +302 -87
  6. package/dist/node/index.d.ts +302 -87
  7. package/dist/node/index.js +10 -4
  8. package/package.json +1 -2
  9. package/dist/abstracts/abstract-agent.d.ts +0 -56
  10. package/dist/abstracts/abstract-agent.d.ts.map +0 -1
  11. package/dist/abstracts/abstract-agent.js +0 -55
  12. package/dist/abstracts/abstract-agent.js.map +0 -1
  13. package/dist/abstracts/abstract-ai-provider.d.ts +0 -187
  14. package/dist/abstracts/abstract-ai-provider.d.ts.map +0 -1
  15. package/dist/abstracts/abstract-ai-provider.js +0 -252
  16. package/dist/abstracts/abstract-ai-provider.js.map +0 -1
  17. package/dist/abstracts/abstract-executor.d.ts +0 -110
  18. package/dist/abstracts/abstract-executor.d.ts.map +0 -1
  19. package/dist/abstracts/abstract-executor.js +0 -156
  20. package/dist/abstracts/abstract-executor.js.map +0 -1
  21. package/dist/abstracts/abstract-manager.d.ts +0 -42
  22. package/dist/abstracts/abstract-manager.d.ts.map +0 -1
  23. package/dist/abstracts/abstract-manager.js +0 -49
  24. package/dist/abstracts/abstract-manager.js.map +0 -1
  25. package/dist/abstracts/abstract-module.d.ts +0 -365
  26. package/dist/abstracts/abstract-module.d.ts.map +0 -1
  27. package/dist/abstracts/abstract-module.js +0 -474
  28. package/dist/abstracts/abstract-module.js.map +0 -1
  29. package/dist/abstracts/abstract-plugin.d.ts +0 -369
  30. package/dist/abstracts/abstract-plugin.d.ts.map +0 -1
  31. package/dist/abstracts/abstract-plugin.js +0 -258
  32. package/dist/abstracts/abstract-plugin.js.map +0 -1
  33. package/dist/abstracts/abstract-tool.d.ts +0 -175
  34. package/dist/abstracts/abstract-tool.d.ts.map +0 -1
  35. package/dist/abstracts/abstract-tool.js +0 -140
  36. package/dist/abstracts/abstract-tool.js.map +0 -1
  37. package/dist/abstracts/abstract-workflow-converter.d.ts +0 -136
  38. package/dist/abstracts/abstract-workflow-converter.d.ts.map +0 -1
  39. package/dist/abstracts/abstract-workflow-converter.js +0 -252
  40. package/dist/abstracts/abstract-workflow-converter.js.map +0 -1
  41. package/dist/abstracts/abstract-workflow-validator.d.ts +0 -203
  42. package/dist/abstracts/abstract-workflow-validator.d.ts.map +0 -1
  43. package/dist/abstracts/abstract-workflow-validator.js +0 -447
  44. package/dist/abstracts/abstract-workflow-validator.js.map +0 -1
  45. package/dist/abstracts/index.d.ts +0 -6
  46. package/dist/abstracts/index.d.ts.map +0 -1
  47. package/dist/abstracts/index.js +0 -9
  48. package/dist/abstracts/index.js.map +0 -1
  49. package/dist/agents/constants.d.ts +0 -23
  50. package/dist/agents/constants.d.ts.map +0 -1
  51. package/dist/agents/constants.js +0 -22
  52. package/dist/agents/constants.js.map +0 -1
  53. package/dist/agents/index.d.ts +0 -1
  54. package/dist/agents/index.d.ts.map +0 -1
  55. package/dist/agents/index.js +0 -4
  56. package/dist/agents/index.js.map +0 -1
  57. package/dist/agents/robota.test.d.ts +0 -2
  58. package/dist/agents/robota.test.d.ts.map +0 -1
  59. package/dist/agents/robota.test.js +0 -416
  60. package/dist/agents/robota.test.js.map +0 -1
  61. package/dist/core/robota.d.ts +0 -694
  62. package/dist/core/robota.d.ts.map +0 -1
  63. package/dist/core/robota.js +0 -1277
  64. package/dist/core/robota.js.map +0 -1
  65. package/dist/executors/local-executor.d.ts +0 -96
  66. package/dist/executors/local-executor.d.ts.map +0 -1
  67. package/dist/executors/local-executor.js +0 -197
  68. package/dist/executors/local-executor.js.map +0 -1
  69. package/dist/executors/local-executor.test.d.ts +0 -2
  70. package/dist/executors/local-executor.test.d.ts.map +0 -1
  71. package/dist/executors/local-executor.test.js +0 -192
  72. package/dist/executors/local-executor.test.js.map +0 -1
  73. package/dist/index.d.ts +0 -274
  74. package/dist/index.d.ts.map +0 -1
  75. package/dist/index.js +0 -235
  76. package/dist/index.js.map +0 -1
  77. package/dist/interfaces/agent.d.ts +0 -198
  78. package/dist/interfaces/agent.d.ts.map +0 -1
  79. package/dist/interfaces/agent.js +0 -2
  80. package/dist/interfaces/agent.js.map +0 -1
  81. package/dist/interfaces/event-service.d.ts +0 -79
  82. package/dist/interfaces/event-service.d.ts.map +0 -1
  83. package/dist/interfaces/event-service.js +0 -2
  84. package/dist/interfaces/event-service.js.map +0 -1
  85. package/dist/interfaces/executor.d.ts +0 -128
  86. package/dist/interfaces/executor.d.ts.map +0 -1
  87. package/dist/interfaces/executor.js +0 -2
  88. package/dist/interfaces/executor.js.map +0 -1
  89. package/dist/interfaces/history-module.d.ts +0 -19
  90. package/dist/interfaces/history-module.d.ts.map +0 -1
  91. package/dist/interfaces/history-module.js +0 -2
  92. package/dist/interfaces/history-module.js.map +0 -1
  93. package/dist/interfaces/index.d.ts +0 -13
  94. package/dist/interfaces/index.d.ts.map +0 -1
  95. package/dist/interfaces/index.js +0 -4
  96. package/dist/interfaces/index.js.map +0 -1
  97. package/dist/interfaces/manager.d.ts +0 -142
  98. package/dist/interfaces/manager.d.ts.map +0 -1
  99. package/dist/interfaces/manager.js +0 -2
  100. package/dist/interfaces/manager.js.map +0 -1
  101. package/dist/interfaces/messages.d.ts +0 -75
  102. package/dist/interfaces/messages.d.ts.map +0 -1
  103. package/dist/interfaces/messages.js +0 -29
  104. package/dist/interfaces/messages.js.map +0 -1
  105. package/dist/interfaces/progress-reporting.d.ts +0 -86
  106. package/dist/interfaces/progress-reporting.d.ts.map +0 -1
  107. package/dist/interfaces/progress-reporting.js +0 -37
  108. package/dist/interfaces/progress-reporting.js.map +0 -1
  109. package/dist/interfaces/provider.d.ts +0 -217
  110. package/dist/interfaces/provider.d.ts.map +0 -1
  111. package/dist/interfaces/provider.js +0 -2
  112. package/dist/interfaces/provider.js.map +0 -1
  113. package/dist/interfaces/service.d.ts +0 -205
  114. package/dist/interfaces/service.d.ts.map +0 -1
  115. package/dist/interfaces/service.js +0 -6
  116. package/dist/interfaces/service.js.map +0 -1
  117. package/dist/interfaces/tool.d.ts +0 -248
  118. package/dist/interfaces/tool.d.ts.map +0 -1
  119. package/dist/interfaces/tool.js +0 -2
  120. package/dist/interfaces/tool.js.map +0 -1
  121. package/dist/interfaces/types.d.ts +0 -71
  122. package/dist/interfaces/types.d.ts.map +0 -1
  123. package/dist/interfaces/types.js +0 -33
  124. package/dist/interfaces/types.js.map +0 -1
  125. package/dist/interfaces/workflow-converter.d.ts +0 -193
  126. package/dist/interfaces/workflow-converter.d.ts.map +0 -1
  127. package/dist/interfaces/workflow-converter.js +0 -11
  128. package/dist/interfaces/workflow-converter.js.map +0 -1
  129. package/dist/interfaces/workflow-validator.d.ts +0 -209
  130. package/dist/interfaces/workflow-validator.d.ts.map +0 -1
  131. package/dist/interfaces/workflow-validator.js +0 -16
  132. package/dist/interfaces/workflow-validator.js.map +0 -1
  133. package/dist/managers/agent-factory.d.ts +0 -132
  134. package/dist/managers/agent-factory.d.ts.map +0 -1
  135. package/dist/managers/agent-factory.js +0 -284
  136. package/dist/managers/agent-factory.js.map +0 -1
  137. package/dist/managers/agent-factory.test.d.ts +0 -2
  138. package/dist/managers/agent-factory.test.d.ts.map +0 -1
  139. package/dist/managers/agent-factory.test.js +0 -249
  140. package/dist/managers/agent-factory.test.js.map +0 -1
  141. package/dist/managers/agent-templates.d.ts +0 -84
  142. package/dist/managers/agent-templates.d.ts.map +0 -1
  143. package/dist/managers/agent-templates.js +0 -159
  144. package/dist/managers/agent-templates.js.map +0 -1
  145. package/dist/managers/ai-provider-manager.d.ts +0 -80
  146. package/dist/managers/ai-provider-manager.d.ts.map +0 -1
  147. package/dist/managers/ai-provider-manager.js +0 -226
  148. package/dist/managers/ai-provider-manager.js.map +0 -1
  149. package/dist/managers/conversation-history-manager.d.ts +0 -455
  150. package/dist/managers/conversation-history-manager.d.ts.map +0 -1
  151. package/dist/managers/conversation-history-manager.js +0 -578
  152. package/dist/managers/conversation-history-manager.js.map +0 -1
  153. package/dist/managers/conversation-history-manager.test.d.ts +0 -2
  154. package/dist/managers/conversation-history-manager.test.d.ts.map +0 -1
  155. package/dist/managers/conversation-history-manager.test.js +0 -374
  156. package/dist/managers/conversation-history-manager.test.js.map +0 -1
  157. package/dist/managers/index.d.ts +0 -8
  158. package/dist/managers/index.d.ts.map +0 -1
  159. package/dist/managers/index.js +0 -8
  160. package/dist/managers/index.js.map +0 -1
  161. package/dist/managers/module-registry.d.ts +0 -161
  162. package/dist/managers/module-registry.d.ts.map +0 -1
  163. package/dist/managers/module-registry.js +0 -519
  164. package/dist/managers/module-registry.js.map +0 -1
  165. package/dist/managers/module-type-registry.d.ts +0 -113
  166. package/dist/managers/module-type-registry.d.ts.map +0 -1
  167. package/dist/managers/module-type-registry.js +0 -439
  168. package/dist/managers/module-type-registry.js.map +0 -1
  169. package/dist/managers/plugins.d.ts +0 -166
  170. package/dist/managers/plugins.d.ts.map +0 -1
  171. package/dist/managers/plugins.js +0 -339
  172. package/dist/managers/plugins.js.map +0 -1
  173. package/dist/managers/tool-manager.d.ts +0 -70
  174. package/dist/managers/tool-manager.d.ts.map +0 -1
  175. package/dist/managers/tool-manager.js +0 -138
  176. package/dist/managers/tool-manager.js.map +0 -1
  177. package/dist/managers/tool-manager.test.d.ts +0 -2
  178. package/dist/managers/tool-manager.test.d.ts.map +0 -1
  179. package/dist/managers/tool-manager.test.js +0 -186
  180. package/dist/managers/tool-manager.test.js.map +0 -1
  181. package/dist/plugins/conversation-history/conversation-history-plugin.d.ts +0 -67
  182. package/dist/plugins/conversation-history/conversation-history-plugin.d.ts.map +0 -1
  183. package/dist/plugins/conversation-history/conversation-history-plugin.js +0 -270
  184. package/dist/plugins/conversation-history/conversation-history-plugin.js.map +0 -1
  185. package/dist/plugins/conversation-history/index.d.ts +0 -3
  186. package/dist/plugins/conversation-history/index.d.ts.map +0 -1
  187. package/dist/plugins/conversation-history/index.js +0 -2
  188. package/dist/plugins/conversation-history/index.js.map +0 -1
  189. package/dist/plugins/conversation-history/storages/database-storage.d.ts +0 -19
  190. package/dist/plugins/conversation-history/storages/database-storage.d.ts.map +0 -1
  191. package/dist/plugins/conversation-history/storages/database-storage.js +0 -94
  192. package/dist/plugins/conversation-history/storages/database-storage.js.map +0 -1
  193. package/dist/plugins/conversation-history/storages/file-storage.d.ts +0 -15
  194. package/dist/plugins/conversation-history/storages/file-storage.d.ts.map +0 -1
  195. package/dist/plugins/conversation-history/storages/file-storage.js +0 -94
  196. package/dist/plugins/conversation-history/storages/file-storage.js.map +0 -1
  197. package/dist/plugins/conversation-history/storages/index.d.ts +0 -4
  198. package/dist/plugins/conversation-history/storages/index.d.ts.map +0 -1
  199. package/dist/plugins/conversation-history/storages/index.js +0 -4
  200. package/dist/plugins/conversation-history/storages/index.js.map +0 -1
  201. package/dist/plugins/conversation-history/storages/memory-storage.d.ts +0 -15
  202. package/dist/plugins/conversation-history/storages/memory-storage.d.ts.map +0 -1
  203. package/dist/plugins/conversation-history/storages/memory-storage.js +0 -33
  204. package/dist/plugins/conversation-history/storages/memory-storage.js.map +0 -1
  205. package/dist/plugins/conversation-history/types.d.ts +0 -61
  206. package/dist/plugins/conversation-history/types.d.ts.map +0 -1
  207. package/dist/plugins/conversation-history/types.js +0 -2
  208. package/dist/plugins/conversation-history/types.js.map +0 -1
  209. package/dist/plugins/error-handling/context-adapter.d.ts +0 -30
  210. package/dist/plugins/error-handling/context-adapter.d.ts.map +0 -1
  211. package/dist/plugins/error-handling/context-adapter.js +0 -41
  212. package/dist/plugins/error-handling/context-adapter.js.map +0 -1
  213. package/dist/plugins/error-handling/error-handling-plugin.d.ts +0 -49
  214. package/dist/plugins/error-handling/error-handling-plugin.d.ts.map +0 -1
  215. package/dist/plugins/error-handling/error-handling-plugin.js +0 -229
  216. package/dist/plugins/error-handling/error-handling-plugin.js.map +0 -1
  217. package/dist/plugins/error-handling/index.d.ts +0 -10
  218. package/dist/plugins/error-handling/index.d.ts.map +0 -1
  219. package/dist/plugins/error-handling/index.js +0 -10
  220. package/dist/plugins/error-handling/index.js.map +0 -1
  221. package/dist/plugins/error-handling/types.d.ts +0 -73
  222. package/dist/plugins/error-handling/types.d.ts.map +0 -1
  223. package/dist/plugins/error-handling/types.js +0 -14
  224. package/dist/plugins/error-handling/types.js.map +0 -1
  225. package/dist/plugins/event-emitter/metrics.d.ts +0 -17
  226. package/dist/plugins/event-emitter/metrics.d.ts.map +0 -1
  227. package/dist/plugins/event-emitter/metrics.js +0 -17
  228. package/dist/plugins/event-emitter/metrics.js.map +0 -1
  229. package/dist/plugins/event-emitter/types.d.ts +0 -112
  230. package/dist/plugins/event-emitter/types.d.ts.map +0 -1
  231. package/dist/plugins/event-emitter/types.js +0 -65
  232. package/dist/plugins/event-emitter/types.js.map +0 -1
  233. package/dist/plugins/event-emitter-plugin.d.ts +0 -222
  234. package/dist/plugins/event-emitter-plugin.d.ts.map +0 -1
  235. package/dist/plugins/event-emitter-plugin.js +0 -432
  236. package/dist/plugins/event-emitter-plugin.js.map +0 -1
  237. package/dist/plugins/event-emitter-plugin.test.d.ts +0 -2
  238. package/dist/plugins/event-emitter-plugin.test.d.ts.map +0 -1
  239. package/dist/plugins/event-emitter-plugin.test.js +0 -94
  240. package/dist/plugins/event-emitter-plugin.test.js.map +0 -1
  241. package/dist/plugins/execution/execution-analytics-plugin.d.ts +0 -129
  242. package/dist/plugins/execution/execution-analytics-plugin.d.ts.map +0 -1
  243. package/dist/plugins/execution/execution-analytics-plugin.js +0 -517
  244. package/dist/plugins/execution/execution-analytics-plugin.js.map +0 -1
  245. package/dist/plugins/execution/index.d.ts +0 -3
  246. package/dist/plugins/execution/index.d.ts.map +0 -1
  247. package/dist/plugins/execution/index.js +0 -2
  248. package/dist/plugins/execution/index.js.map +0 -1
  249. package/dist/plugins/execution/types.d.ts +0 -90
  250. package/dist/plugins/execution/types.d.ts.map +0 -1
  251. package/dist/plugins/execution/types.js +0 -2
  252. package/dist/plugins/execution/types.js.map +0 -1
  253. package/dist/plugins/index.d.ts +0 -10
  254. package/dist/plugins/index.d.ts.map +0 -1
  255. package/dist/plugins/index.js +0 -11
  256. package/dist/plugins/index.js.map +0 -1
  257. package/dist/plugins/limits/types.d.ts +0 -61
  258. package/dist/plugins/limits/types.d.ts.map +0 -1
  259. package/dist/plugins/limits/types.js +0 -2
  260. package/dist/plugins/limits/types.js.map +0 -1
  261. package/dist/plugins/limits-plugin.d.ts +0 -113
  262. package/dist/plugins/limits-plugin.d.ts.map +0 -1
  263. package/dist/plugins/limits-plugin.js +0 -380
  264. package/dist/plugins/limits-plugin.js.map +0 -1
  265. package/dist/plugins/logging/formatters.d.ts +0 -14
  266. package/dist/plugins/logging/formatters.d.ts.map +0 -1
  267. package/dist/plugins/logging/formatters.js +0 -24
  268. package/dist/plugins/logging/formatters.js.map +0 -1
  269. package/dist/plugins/logging/index.d.ts +0 -3
  270. package/dist/plugins/logging/index.d.ts.map +0 -1
  271. package/dist/plugins/logging/index.js +0 -2
  272. package/dist/plugins/logging/index.js.map +0 -1
  273. package/dist/plugins/logging/logging-plugin.d.ts +0 -91
  274. package/dist/plugins/logging/logging-plugin.d.ts.map +0 -1
  275. package/dist/plugins/logging/logging-plugin.js +0 -335
  276. package/dist/plugins/logging/logging-plugin.js.map +0 -1
  277. package/dist/plugins/logging/storages/console-storage.d.ts +0 -14
  278. package/dist/plugins/logging/storages/console-storage.d.ts.map +0 -1
  279. package/dist/plugins/logging/storages/console-storage.js +0 -38
  280. package/dist/plugins/logging/storages/console-storage.js.map +0 -1
  281. package/dist/plugins/logging/storages/file-storage.d.ts +0 -14
  282. package/dist/plugins/logging/storages/file-storage.d.ts.map +0 -1
  283. package/dist/plugins/logging/storages/file-storage.js +0 -41
  284. package/dist/plugins/logging/storages/file-storage.js.map +0 -1
  285. package/dist/plugins/logging/storages/index.d.ts +0 -5
  286. package/dist/plugins/logging/storages/index.d.ts.map +0 -1
  287. package/dist/plugins/logging/storages/index.js +0 -5
  288. package/dist/plugins/logging/storages/index.js.map +0 -1
  289. package/dist/plugins/logging/storages/remote-storage.d.ts +0 -20
  290. package/dist/plugins/logging/storages/remote-storage.d.ts.map +0 -1
  291. package/dist/plugins/logging/storages/remote-storage.js +0 -61
  292. package/dist/plugins/logging/storages/remote-storage.js.map +0 -1
  293. package/dist/plugins/logging/storages/silent-storage.d.ts +0 -10
  294. package/dist/plugins/logging/storages/silent-storage.d.ts.map +0 -1
  295. package/dist/plugins/logging/storages/silent-storage.js +0 -15
  296. package/dist/plugins/logging/storages/silent-storage.js.map +0 -1
  297. package/dist/plugins/logging/types.d.ts +0 -84
  298. package/dist/plugins/logging/types.d.ts.map +0 -1
  299. package/dist/plugins/logging/types.js +0 -2
  300. package/dist/plugins/logging/types.js.map +0 -1
  301. package/dist/plugins/performance/collectors/system-metrics-collector.d.ts +0 -12
  302. package/dist/plugins/performance/collectors/system-metrics-collector.d.ts.map +0 -1
  303. package/dist/plugins/performance/collectors/system-metrics-collector.js +0 -65
  304. package/dist/plugins/performance/collectors/system-metrics-collector.js.map +0 -1
  305. package/dist/plugins/performance/index.d.ts +0 -5
  306. package/dist/plugins/performance/index.d.ts.map +0 -1
  307. package/dist/plugins/performance/index.js +0 -4
  308. package/dist/plugins/performance/index.js.map +0 -1
  309. package/dist/plugins/performance/performance-plugin.d.ts +0 -49
  310. package/dist/plugins/performance/performance-plugin.d.ts.map +0 -1
  311. package/dist/plugins/performance/performance-plugin.js +0 -293
  312. package/dist/plugins/performance/performance-plugin.js.map +0 -1
  313. package/dist/plugins/performance/storages/index.d.ts +0 -2
  314. package/dist/plugins/performance/storages/index.d.ts.map +0 -1
  315. package/dist/plugins/performance/storages/index.js +0 -4
  316. package/dist/plugins/performance/storages/index.js.map +0 -1
  317. package/dist/plugins/performance/storages/memory-storage.d.ts +0 -19
  318. package/dist/plugins/performance/storages/memory-storage.d.ts.map +0 -1
  319. package/dist/plugins/performance/storages/memory-storage.js +0 -69
  320. package/dist/plugins/performance/storages/memory-storage.js.map +0 -1
  321. package/dist/plugins/performance/types.d.ts +0 -154
  322. package/dist/plugins/performance/types.d.ts.map +0 -1
  323. package/dist/plugins/performance/types.js +0 -2
  324. package/dist/plugins/performance/types.js.map +0 -1
  325. package/dist/plugins/usage/aggregate-usage-stats.d.ts +0 -12
  326. package/dist/plugins/usage/aggregate-usage-stats.d.ts.map +0 -1
  327. package/dist/plugins/usage/aggregate-usage-stats.js +0 -115
  328. package/dist/plugins/usage/aggregate-usage-stats.js.map +0 -1
  329. package/dist/plugins/usage/index.d.ts +0 -5
  330. package/dist/plugins/usage/index.d.ts.map +0 -1
  331. package/dist/plugins/usage/index.js +0 -4
  332. package/dist/plugins/usage/index.js.map +0 -1
  333. package/dist/plugins/usage/storages/file-storage.d.ts +0 -22
  334. package/dist/plugins/usage/storages/file-storage.d.ts.map +0 -1
  335. package/dist/plugins/usage/storages/file-storage.js +0 -111
  336. package/dist/plugins/usage/storages/file-storage.js.map +0 -1
  337. package/dist/plugins/usage/storages/index.d.ts +0 -5
  338. package/dist/plugins/usage/storages/index.d.ts.map +0 -1
  339. package/dist/plugins/usage/storages/index.js +0 -5
  340. package/dist/plugins/usage/storages/index.js.map +0 -1
  341. package/dist/plugins/usage/storages/memory-storage.d.ts +0 -22
  342. package/dist/plugins/usage/storages/memory-storage.d.ts.map +0 -1
  343. package/dist/plugins/usage/storages/memory-storage.js +0 -42
  344. package/dist/plugins/usage/storages/memory-storage.js.map +0 -1
  345. package/dist/plugins/usage/storages/remote-storage.d.ts +0 -26
  346. package/dist/plugins/usage/storages/remote-storage.d.ts.map +0 -1
  347. package/dist/plugins/usage/storages/remote-storage.js +0 -115
  348. package/dist/plugins/usage/storages/remote-storage.js.map +0 -1
  349. package/dist/plugins/usage/storages/silent-storage.d.ts +0 -19
  350. package/dist/plugins/usage/storages/silent-storage.d.ts.map +0 -1
  351. package/dist/plugins/usage/storages/silent-storage.js +0 -26
  352. package/dist/plugins/usage/storages/silent-storage.js.map +0 -1
  353. package/dist/plugins/usage/types.d.ts +0 -127
  354. package/dist/plugins/usage/types.d.ts.map +0 -1
  355. package/dist/plugins/usage/types.js +0 -2
  356. package/dist/plugins/usage/types.js.map +0 -1
  357. package/dist/plugins/usage/usage-plugin.d.ts +0 -67
  358. package/dist/plugins/usage/usage-plugin.d.ts.map +0 -1
  359. package/dist/plugins/usage/usage-plugin.js +0 -309
  360. package/dist/plugins/usage/usage-plugin.js.map +0 -1
  361. package/dist/plugins/webhook/http-client.d.ts +0 -30
  362. package/dist/plugins/webhook/http-client.d.ts.map +0 -1
  363. package/dist/plugins/webhook/http-client.js +0 -110
  364. package/dist/plugins/webhook/http-client.js.map +0 -1
  365. package/dist/plugins/webhook/index.d.ts +0 -9
  366. package/dist/plugins/webhook/index.d.ts.map +0 -1
  367. package/dist/plugins/webhook/index.js +0 -9
  368. package/dist/plugins/webhook/index.js.map +0 -1
  369. package/dist/plugins/webhook/transformer.d.ts +0 -63
  370. package/dist/plugins/webhook/transformer.d.ts.map +0 -1
  371. package/dist/plugins/webhook/transformer.js +0 -157
  372. package/dist/plugins/webhook/transformer.js.map +0 -1
  373. package/dist/plugins/webhook/types.d.ts +0 -183
  374. package/dist/plugins/webhook/types.d.ts.map +0 -1
  375. package/dist/plugins/webhook/types.js +0 -2
  376. package/dist/plugins/webhook/types.js.map +0 -1
  377. package/dist/plugins/webhook/webhook-plugin.d.ts +0 -92
  378. package/dist/plugins/webhook/webhook-plugin.d.ts.map +0 -1
  379. package/dist/plugins/webhook/webhook-plugin.js +0 -328
  380. package/dist/plugins/webhook/webhook-plugin.js.map +0 -1
  381. package/dist/schemas/agent-template-schema.d.ts +0 -137
  382. package/dist/schemas/agent-template-schema.d.ts.map +0 -1
  383. package/dist/schemas/agent-template-schema.js +0 -87
  384. package/dist/schemas/agent-template-schema.js.map +0 -1
  385. package/dist/services/conversation-service/index.d.ts +0 -88
  386. package/dist/services/conversation-service/index.d.ts.map +0 -1
  387. package/dist/services/conversation-service/index.js +0 -441
  388. package/dist/services/conversation-service/index.js.map +0 -1
  389. package/dist/services/conversation-service/types.d.ts +0 -32
  390. package/dist/services/conversation-service/types.d.ts.map +0 -1
  391. package/dist/services/conversation-service/types.js +0 -8
  392. package/dist/services/conversation-service/types.js.map +0 -1
  393. package/dist/services/event-service.d.ts +0 -61
  394. package/dist/services/event-service.d.ts.map +0 -1
  395. package/dist/services/event-service.js +0 -110
  396. package/dist/services/event-service.js.map +0 -1
  397. package/dist/services/event-service.test.d.ts +0 -2
  398. package/dist/services/event-service.test.d.ts.map +0 -1
  399. package/dist/services/event-service.test.js +0 -86
  400. package/dist/services/event-service.test.js.map +0 -1
  401. package/dist/services/execution-service.d.ts +0 -151
  402. package/dist/services/execution-service.d.ts.map +0 -1
  403. package/dist/services/execution-service.js +0 -1262
  404. package/dist/services/execution-service.js.map +0 -1
  405. package/dist/services/execution-service.test.d.ts +0 -2
  406. package/dist/services/execution-service.test.d.ts.map +0 -1
  407. package/dist/services/execution-service.test.js +0 -338
  408. package/dist/services/execution-service.test.js.map +0 -1
  409. package/dist/services/history-module.d.ts +0 -15
  410. package/dist/services/history-module.d.ts.map +0 -1
  411. package/dist/services/history-module.js +0 -42
  412. package/dist/services/history-module.js.map +0 -1
  413. package/dist/services/in-memory-history-store.d.ts +0 -12
  414. package/dist/services/in-memory-history-store.d.ts.map +0 -1
  415. package/dist/services/in-memory-history-store.js +0 -41
  416. package/dist/services/in-memory-history-store.js.map +0 -1
  417. package/dist/services/index.d.ts +0 -7
  418. package/dist/services/index.d.ts.map +0 -1
  419. package/dist/services/index.js +0 -13
  420. package/dist/services/index.js.map +0 -1
  421. package/dist/services/task-events.d.ts +0 -6
  422. package/dist/services/task-events.d.ts.map +0 -1
  423. package/dist/services/task-events.js +0 -6
  424. package/dist/services/task-events.js.map +0 -1
  425. package/dist/services/tool-execution-service.d.ts +0 -74
  426. package/dist/services/tool-execution-service.d.ts.map +0 -1
  427. package/dist/services/tool-execution-service.js +0 -189
  428. package/dist/services/tool-execution-service.js.map +0 -1
  429. package/dist/services/user-events.d.ts +0 -7
  430. package/dist/services/user-events.d.ts.map +0 -1
  431. package/dist/services/user-events.js +0 -6
  432. package/dist/services/user-events.js.map +0 -1
  433. package/dist/tools/implementations/function-tool/index.d.ts +0 -9
  434. package/dist/tools/implementations/function-tool/index.d.ts.map +0 -1
  435. package/dist/tools/implementations/function-tool/index.js +0 -13
  436. package/dist/tools/implementations/function-tool/index.js.map +0 -1
  437. package/dist/tools/implementations/function-tool/schema-converter.d.ts +0 -32
  438. package/dist/tools/implementations/function-tool/schema-converter.d.ts.map +0 -1
  439. package/dist/tools/implementations/function-tool/schema-converter.js +0 -164
  440. package/dist/tools/implementations/function-tool/schema-converter.js.map +0 -1
  441. package/dist/tools/implementations/function-tool/types.d.ts +0 -72
  442. package/dist/tools/implementations/function-tool/types.d.ts.map +0 -1
  443. package/dist/tools/implementations/function-tool/types.js +0 -14
  444. package/dist/tools/implementations/function-tool/types.js.map +0 -1
  445. package/dist/tools/implementations/function-tool.d.ts +0 -49
  446. package/dist/tools/implementations/function-tool.d.ts.map +0 -1
  447. package/dist/tools/implementations/function-tool.js +0 -223
  448. package/dist/tools/implementations/function-tool.js.map +0 -1
  449. package/dist/tools/implementations/index.d.ts +0 -4
  450. package/dist/tools/implementations/index.d.ts.map +0 -1
  451. package/dist/tools/implementations/index.js +0 -5
  452. package/dist/tools/implementations/index.js.map +0 -1
  453. package/dist/tools/implementations/mcp-tool.d.ts +0 -72
  454. package/dist/tools/implementations/mcp-tool.d.ts.map +0 -1
  455. package/dist/tools/implementations/mcp-tool.js +0 -246
  456. package/dist/tools/implementations/mcp-tool.js.map +0 -1
  457. package/dist/tools/implementations/openapi-tool.d.ts +0 -56
  458. package/dist/tools/implementations/openapi-tool.d.ts.map +0 -1
  459. package/dist/tools/implementations/openapi-tool.js +0 -324
  460. package/dist/tools/implementations/openapi-tool.js.map +0 -1
  461. package/dist/tools/implementations/relay-mcp-tool.d.ts +0 -38
  462. package/dist/tools/implementations/relay-mcp-tool.d.ts.map +0 -1
  463. package/dist/tools/implementations/relay-mcp-tool.js +0 -46
  464. package/dist/tools/implementations/relay-mcp-tool.js.map +0 -1
  465. package/dist/tools/index.d.ts +0 -3
  466. package/dist/tools/index.d.ts.map +0 -1
  467. package/dist/tools/index.js +0 -4
  468. package/dist/tools/index.js.map +0 -1
  469. package/dist/tools/registry/index.d.ts +0 -2
  470. package/dist/tools/registry/index.d.ts.map +0 -1
  471. package/dist/tools/registry/index.js +0 -3
  472. package/dist/tools/registry/index.js.map +0 -1
  473. package/dist/tools/registry/tool-registry.d.ts +0 -54
  474. package/dist/tools/registry/tool-registry.d.ts.map +0 -1
  475. package/dist/tools/registry/tool-registry.js +0 -146
  476. package/dist/tools/registry/tool-registry.js.map +0 -1
  477. package/dist/utils/errors.d.ts +0 -155
  478. package/dist/utils/errors.d.ts.map +0 -1
  479. package/dist/utils/errors.js +0 -203
  480. package/dist/utils/errors.js.map +0 -1
  481. package/dist/utils/execution-proxy.d.ts +0 -75
  482. package/dist/utils/execution-proxy.d.ts.map +0 -1
  483. package/dist/utils/execution-proxy.js +0 -230
  484. package/dist/utils/execution-proxy.js.map +0 -1
  485. package/dist/utils/index.d.ts +0 -11
  486. package/dist/utils/index.d.ts.map +0 -1
  487. package/dist/utils/index.js +0 -7
  488. package/dist/utils/index.js.map +0 -1
  489. package/dist/utils/logger.d.ts +0 -74
  490. package/dist/utils/logger.d.ts.map +0 -1
  491. package/dist/utils/logger.js +0 -143
  492. package/dist/utils/logger.js.map +0 -1
  493. package/dist/utils/message-converter.d.ts +0 -68
  494. package/dist/utils/message-converter.d.ts.map +0 -1
  495. package/dist/utils/message-converter.js +0 -87
  496. package/dist/utils/message-converter.js.map +0 -1
  497. package/dist/utils/periodic-task.d.ts +0 -14
  498. package/dist/utils/periodic-task.d.ts.map +0 -1
  499. package/dist/utils/periodic-task.js +0 -26
  500. package/dist/utils/periodic-task.js.map +0 -1
  501. package/dist/utils/validation.d.ts +0 -40
  502. package/dist/utils/validation.d.ts.map +0 -1
  503. package/dist/utils/validation.js +0 -162
  504. package/dist/utils/validation.js.map +0 -1
@@ -1,205 +0,0 @@
1
- /**
2
- * Service layer interfaces for the agents package
3
- * Defines contracts for stateless service implementations
4
- */
5
- import type { TUniversalMessage } from './messages';
6
- import type { IToolSchema, IAIProvider } from './provider';
7
- import type { TUniversalValue } from './types';
8
- import type { IToolCall } from './messages';
9
- import type { IOwnerPathSegment, IEventService } from './event-service';
10
- import type { TToolParameters, TToolMetadata } from './tool';
11
- /**
12
- * Reusable type definitions for service layer
13
- */
14
- /**
15
- * Metadata type for conversation and execution context
16
- * Used for storing additional information about conversations, responses, and execution
17
- */
18
- export type TConversationContextMetadata = Record<string, string | number | boolean | Date>;
19
- /**
20
- * Tool execution parameters type
21
- * Used for passing parameters to tool execution methods
22
- */
23
- export type TToolExecutionParameters = Record<string, string | number | boolean | string[] | number[] | boolean[]>;
24
- /**
25
- * Execution metadata type
26
- * Used for storing metadata about execution processes and options
27
- */
28
- export type TExecutionMetadata = Record<string, string | number | boolean | Date>;
29
- /**
30
- * Response metadata type
31
- * Used for storing metadata about AI provider responses and streaming chunks
32
- */
33
- export type TResponseMetadata = Record<string, string | number | boolean | Date>;
34
- /**
35
- * Tool call data structure for function calls
36
- */
37
- /**
38
- * Tool execution request
39
- */
40
- export interface IToolExecutionRequest {
41
- toolName: string;
42
- parameters: TToolParameters;
43
- executionId?: string;
44
- metadata?: TToolMetadata;
45
- ownerType?: string;
46
- ownerId?: string;
47
- ownerPath?: IOwnerPathSegment[];
48
- eventService?: IEventService;
49
- baseEventService?: IEventService;
50
- }
51
- /**
52
- * Conversation context containing messages and metadata
53
- */
54
- export interface IConversationContext {
55
- /** All messages in the conversation */
56
- messages: TUniversalMessage[];
57
- /** System message for the conversation */
58
- systemMessage?: string;
59
- /** Model to use for generation */
60
- model: string;
61
- /** Provider to use for generation */
62
- provider: string;
63
- /** Temperature for generation */
64
- temperature?: number;
65
- /** Maximum tokens to generate */
66
- maxTokens?: number;
67
- /** Available tools */
68
- tools?: IToolSchema[];
69
- /** Additional metadata */
70
- metadata?: TConversationContextMetadata;
71
- }
72
- /**
73
- * Response from AI provider
74
- */
75
- export interface IConversationResponse {
76
- /** Generated content */
77
- content: string;
78
- /** Tool calls if any */
79
- toolCalls?: IToolCall[];
80
- /** Usage statistics */
81
- usage?: {
82
- promptTokens: number;
83
- completionTokens: number;
84
- totalTokens: number;
85
- };
86
- /** Response metadata */
87
- metadata?: TResponseMetadata;
88
- /** Finish reason */
89
- finishReason?: string;
90
- }
91
- /**
92
- * Streaming response chunk
93
- */
94
- export interface IStreamingChunk {
95
- /** Content delta */
96
- delta: string;
97
- /** Whether this is the final chunk */
98
- done: boolean;
99
- /** Tool calls if any */
100
- toolCalls?: IToolCall[];
101
- /** Usage statistics (only in final chunk) */
102
- usage?: {
103
- promptTokens: number;
104
- completionTokens: number;
105
- totalTokens: number;
106
- };
107
- }
108
- /**
109
- * Service options for conversation operations
110
- */
111
- export interface IConversationServiceOptions {
112
- /** Maximum conversation history length */
113
- maxHistoryLength?: number;
114
- /** Whether to automatically retry on failure */
115
- enableRetry?: boolean;
116
- /** Maximum number of retries */
117
- maxRetries?: number;
118
- /** Retry delay in milliseconds */
119
- retryDelay?: number;
120
- /** Request timeout in milliseconds */
121
- timeout?: number;
122
- }
123
- /**
124
- * Context options for conversation preparation
125
- */
126
- export interface IContextOptions {
127
- systemMessage?: string;
128
- temperature?: number;
129
- maxTokens?: number;
130
- tools?: IToolSchema[];
131
- metadata?: TConversationContextMetadata;
132
- }
133
- /**
134
- * Execution service options
135
- */
136
- export interface IExecutionServiceOptions {
137
- /** Maximum number of tool execution rounds */
138
- maxToolRounds?: number;
139
- /** Tool execution timeout */
140
- toolTimeout?: number;
141
- /** Whether to enable parallel tool execution */
142
- enableParallelExecution?: boolean;
143
- /** Additional execution metadata */
144
- metadata?: TExecutionMetadata;
145
- }
146
- /**
147
- * Interface for conversation service operations
148
- * All methods should be stateless and pure functions
149
- */
150
- export interface IConversationService {
151
- /**
152
- * Prepare conversation context from messages and configuration
153
- * Pure function that transforms inputs to context object
154
- */
155
- prepareContext(messages: TUniversalMessage[], model: string, provider: string, contextOptions?: IContextOptions, serviceOptions?: IConversationServiceOptions): IConversationContext;
156
- /**
157
- * Generate a response using the AI provider
158
- * Stateless operation that handles the full request-response cycle
159
- */
160
- generateResponse(provider: IAIProvider, context: IConversationContext, serviceOptions?: IConversationServiceOptions): Promise<IConversationResponse>;
161
- /**
162
- * Generate streaming response using the AI provider
163
- * Stateless streaming operation
164
- */
165
- generateStreamingResponse(provider: IAIProvider, context: IConversationContext, serviceOptions?: IConversationServiceOptions): AsyncGenerator<IStreamingChunk, void, never>;
166
- /**
167
- * Validate conversation context
168
- * Pure validation function
169
- */
170
- validateContext(context: IConversationContext): {
171
- isValid: boolean;
172
- errors: string[];
173
- };
174
- }
175
- /**
176
- * Interface for tool execution service operations
177
- */
178
- export interface IToolExecutionService {
179
- /**
180
- * Execute a single tool
181
- */
182
- executeTool(toolName: string, parameters: TToolParameters): Promise<TUniversalValue>;
183
- /**
184
- * Execute multiple tools in parallel
185
- */
186
- executeToolsParallel(toolCalls: IToolExecutionRequest[]): Promise<TUniversalValue[]>;
187
- /**
188
- * Execute multiple tools sequentially
189
- */
190
- executeToolsSequential(toolCalls: IToolExecutionRequest[]): Promise<TUniversalValue[]>;
191
- }
192
- /**
193
- * Interface for execution service operations
194
- */
195
- export interface IExecutionService {
196
- /**
197
- * Execute complete agent pipeline
198
- */
199
- execute(input: string, context: IConversationContext, options?: IExecutionServiceOptions): Promise<string>;
200
- /**
201
- * Execute streaming agent pipeline
202
- */
203
- executeStream(input: string, context: IConversationContext, options?: IExecutionServiceOptions): AsyncGenerator<string, void, never>;
204
- }
205
- //# sourceMappingURL=service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/interfaces/service.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;;;OAGG;IACH,yBAAyB,CACrB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,oBAAoB,EAC7B,cAAc,CAAC,EAAE,2BAA2B,GAC7C,cAAc,CAAC,eAAe,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAEhD;;;OAGG;IACH,eAAe,CAAC,OAAO,EAAE,oBAAoB,GAAG;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAC1F;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAErF;;OAEG;IACH,oBAAoB,CAAC,SAAS,EAAE,qBAAqB,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAErF;;OAEG;IACH,sBAAsB,CAAC,SAAS,EAAE,qBAAqB,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;CAC1F;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,OAAO,CACH,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,wBAAwB,GACnC,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB;;OAEG;IACH,aAAa,CACT,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,wBAAwB,GACnC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;CAC1C"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Service layer interfaces for the agents package
3
- * Defines contracts for stateless service implementations
4
- */
5
- export {};
6
- //# sourceMappingURL=service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/interfaces/service.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,248 +0,0 @@
1
- import type { IToolSchema } from './provider';
2
- import type { IEventService, IOwnerPathSegment } from './event-service';
3
- import type { TContextData, TLoggerData, TToolParameters, TUniversalValue } from './types';
4
- export type { TToolParameters } from './types';
5
- export type TToolContextExtensionValue = TUniversalValue | Date | Error | TLoggerData | TContextData | TToolParameters | TToolMetadata;
6
- /**
7
- * Tool metadata structure - specific type definition
8
- */
9
- export type TToolMetadata = Record<string, string | number | boolean | string[] | number[] | boolean[] | TToolParameters>;
10
- /**
11
- * Tool execution data - domain payload for tool results.
12
- *
13
- * IMPORTANT:
14
- * - This must support structured tool outputs without resorting to `any`.
15
- * - Prefer `ToolResultData` (derived from the canonical `UniversalValue` axis).
16
- */
17
- /**
18
- * Tool execution result - extended for ToolExecutionData compatibility
19
- */
20
- export interface IToolResult {
21
- success: boolean;
22
- data?: TUniversalValue;
23
- error?: string;
24
- metadata?: TToolMetadata;
25
- [key: string]: TToolContextExtensionValue | undefined;
26
- }
27
- /**
28
- * Enhanced tool execution result with additional metadata
29
- */
30
- export interface IToolExecutionResult {
31
- /** Whether execution was successful */
32
- success: boolean;
33
- /** Tool name that was executed */
34
- toolName?: string;
35
- /** Execution result or data */
36
- result?: TUniversalValue;
37
- /** Error message if execution failed */
38
- error?: string;
39
- /** Execution duration in milliseconds */
40
- duration?: number;
41
- /** Unique execution ID */
42
- executionId?: string;
43
- /** Additional metadata */
44
- metadata?: TToolMetadata;
45
- }
46
- /**
47
- * Tool execution context - type-safe context for tool execution
48
- * Enhanced with hierarchical execution tracking support
49
- */
50
- export interface IToolExecutionContext {
51
- toolName: string;
52
- parameters: TToolParameters;
53
- executionId?: string;
54
- userId?: string;
55
- sessionId?: string;
56
- metadata?: TToolMetadata;
57
- /** Parent execution ID for hierarchical tool execution tracking */
58
- parentExecutionId?: string;
59
- /** Root execution ID (Team/Agent level) for complete execution tree tracking */
60
- rootExecutionId?: string;
61
- /** Execution depth level (0: Team, 1: Agent, 2: Tool, etc.) */
62
- executionLevel?: number;
63
- /** Execution path array showing the complete execution hierarchy */
64
- executionPath?: string[];
65
- /** Real-time execution data for accurate tracking (no simulation) */
66
- realTimeData?: {
67
- /** Actual execution start time */
68
- startTime: Date;
69
- /** Actual input parameters passed to the tool */
70
- actualParameters: TToolParameters;
71
- /** Tool-provided estimated duration (optional) */
72
- estimatedDuration?: number;
73
- };
74
- /**
75
- * Additional tool execution context extensions.
76
- *
77
- * IMPORTANT:
78
- * - Avoid ad-hoc top-level fields to keep the contract stable.
79
- * - Use this map for forward-compatible extra data with constrained value types.
80
- */
81
- extensions?: Record<string, TToolContextExtensionValue>;
82
- /** Owner context propagated from EventService */
83
- ownerType?: string;
84
- ownerId?: string;
85
- ownerPath?: IOwnerPathSegment[];
86
- sourceId?: string;
87
- /**
88
- * Tool-call scoped EventService instance.
89
- * Caller (ExecutionService/ToolExecutionService) is responsible for providing
90
- * an ownerPath-bound EventService for this tool call.
91
- */
92
- eventService?: IEventService;
93
- /**
94
- * Unbound base EventService instance.
95
- *
96
- * Required when a tool needs to create another owner-bound EventService
97
- * for a different owner (e.g., creating an agent from a tool call).
98
- *
99
- * NOTE: Do not wrap an already owner-bound EventService to bind a different owner.
100
- * Owner-bound instances must not be layered across different owners.
101
- */
102
- baseEventService?: IEventService;
103
- }
104
- /**
105
- * Parameter validation result
106
- */
107
- export interface IParameterValidationResult {
108
- /** Whether parameters are valid */
109
- isValid: boolean;
110
- /** Validation error messages */
111
- errors: string[];
112
- }
113
- /**
114
- * Generic tool executor function
115
- */
116
- export type TToolExecutor<TParams = TToolParameters, TResult = TUniversalValue> = (parameters: TParams, context?: IToolExecutionContext) => Promise<TResult>;
117
- /**
118
- * OpenAPI specification configuration
119
- */
120
- export interface IOpenAPIToolConfig {
121
- /** OpenAPI 3.0 specification */
122
- spec: {
123
- openapi: string;
124
- info: {
125
- title: string;
126
- version: string;
127
- description?: string;
128
- };
129
- servers?: Array<{
130
- url: string;
131
- description?: string;
132
- }>;
133
- paths: Record<string, Record<string, string | number | boolean | Record<string, string | number | boolean>>>;
134
- components?: Record<string, Record<string, string | number | boolean>>;
135
- };
136
- /** Operation ID from the OpenAPI spec */
137
- operationId: string;
138
- /** Base URL for API calls */
139
- baseURL: string;
140
- /** Authentication configuration */
141
- auth?: {
142
- type: 'bearer' | 'apiKey' | 'basic';
143
- token?: string;
144
- apiKey?: string;
145
- header?: string;
146
- username?: string;
147
- password?: string;
148
- };
149
- }
150
- /**
151
- * MCP (Model Context Protocol) configuration
152
- */
153
- export interface IMCPToolConfig {
154
- /** MCP server endpoint */
155
- endpoint: string;
156
- /** Protocol version */
157
- version?: string;
158
- /** Authentication configuration */
159
- auth?: {
160
- type: 'bearer' | 'apiKey';
161
- token: string;
162
- };
163
- /** Tool-specific configuration */
164
- toolConfig?: Record<string, string | number | boolean>;
165
- /** Timeout in milliseconds */
166
- timeout?: number;
167
- }
168
- /**
169
- * Base tool interface
170
- */
171
- export interface ITool {
172
- /** Tool schema */
173
- schema: IToolSchema;
174
- /**
175
- * Execute the tool with given parameters
176
- */
177
- execute(parameters: TToolParameters, context?: IToolExecutionContext): Promise<IToolResult>;
178
- /**
179
- * Validate tool parameters
180
- */
181
- validate(parameters: TToolParameters): boolean;
182
- /**
183
- * Validate tool parameters with detailed result
184
- */
185
- validateParameters(parameters: TToolParameters): IParameterValidationResult;
186
- /**
187
- * Get tool description
188
- */
189
- getDescription(): string;
190
- }
191
- /**
192
- * Function tool implementation
193
- */
194
- export interface IFunctionTool extends ITool {
195
- /** Function to execute */
196
- fn: TToolExecutor;
197
- }
198
- /**
199
- * Tool registry interface
200
- */
201
- export interface IToolRegistry {
202
- /**
203
- * Register a tool
204
- */
205
- register(tool: ITool): void;
206
- /**
207
- * Unregister a tool
208
- */
209
- unregister(name: string): void;
210
- /**
211
- * Get tool by name
212
- */
213
- get(name: string): ITool | undefined;
214
- /**
215
- * Get all registered tools
216
- */
217
- getAll(): ITool[];
218
- /**
219
- * Get tool schemas
220
- */
221
- getSchemas(): IToolSchema[];
222
- /**
223
- * Check if tool exists
224
- */
225
- has(name: string): boolean;
226
- /**
227
- * Clear all tools
228
- */
229
- clear(): void;
230
- }
231
- /**
232
- * Tool factory interface
233
- */
234
- export interface IToolFactory {
235
- /**
236
- * Create function tool from schema and function
237
- */
238
- createFunctionTool(schema: IToolSchema, fn: TToolExecutor): IFunctionTool;
239
- /**
240
- * Create tool from OpenAPI specification
241
- */
242
- createOpenAPITool(config: IOpenAPIToolConfig): ITool;
243
- /**
244
- * Create MCP tool
245
- */
246
- createMCPTool(config: IMCPToolConfig): ITool;
247
- }
248
- //# sourceMappingURL=tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/interfaces/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG3F,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,0BAA0B,GAChC,eAAe,GACf,IAAI,GACJ,KAAK,GACL,WAAW,GACX,YAAY,GACZ,eAAe,GACf,aAAa,CAAC;AAEpB;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,GAAG,eAAe,CAAC,CAAC;AAE1H;;;;;;GAMG;AACH;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,CAA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,KAAK;IACxC,0BAA0B;IAC1B,EAAE,EAAE,aAAa,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;IAErC;;OAEG;IACH,MAAM,IAAI,KAAK,EAAE,CAAC;IAElB;;OAEG;IACH,UAAU,IAAI,WAAW,EAAE,CAAC;IAE5B;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3B;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,aAAa,GAAG,aAAa,CAAC;IAE1E;;OAEG;IACH,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,GAAG,KAAK,CAAC;IAErD;;OAEG;IACH,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,KAAK,CAAC;CAChD"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool.js","sourceRoot":"","sources":["../../src/interfaces/tool.ts"],"names":[],"mappings":""}
@@ -1,71 +0,0 @@
1
- /**
2
- * Agent-specific type definitions
3
- * Local types for agent functionality - not forced to use base types unless needed for cross-connections
4
- */
5
- import type { TUniversalMessage } from './messages';
6
- /**
7
- * Primitive value types - foundation for all other types
8
- * Extended to include null/undefined for agent contexts
9
- */
10
- export type TPrimitiveValue = string | number | boolean | null | undefined;
11
- /**
12
- * Universal value type axis (recursive, JSON-like + Date).
13
- *
14
- * IMPORTANT:
15
- * - This axis is the single source of truth for payload/context/result values.
16
- * - It must support nested objects/arrays without `any`/`unknown`.
17
- */
18
- export type TUniversalValue = TPrimitiveValue | Date | TUniversalArrayValue | IUniversalObjectValue;
19
- export type TUniversalArrayValue = TUniversalValue[];
20
- export interface IUniversalObjectValue {
21
- [key: string]: TUniversalValue;
22
- }
23
- /**
24
- * Metadata type - consistent across agent components
25
- */
26
- export type TMetadataValue = TPrimitiveValue | TUniversalArrayValue | Date;
27
- export type TMetadata = Record<string, TMetadataValue>;
28
- /**
29
- * Context data type - for execution contexts
30
- */
31
- export type TContextData = Record<string, TUniversalValue>;
32
- /**
33
- * Logger data type - for logging contexts
34
- */
35
- export type TLoggerData = Record<string, TUniversalValue | Date | Error>;
36
- /**
37
- * Configuration types - for agent configuration
38
- */
39
- export type TComplexConfigValue = Record<string, TPrimitiveValue | TUniversalArrayValue | IUniversalObjectValue>;
40
- export type TConfigValue = TPrimitiveValue | TUniversalArrayValue | IUniversalObjectValue | Array<TComplexConfigValue> | Array<Record<string, TPrimitiveValue | TUniversalArrayValue | IUniversalObjectValue>> | Array<TComplexConfigValue> | TComplexConfigValue;
41
- export type TConfigData = Record<string, TConfigValue>;
42
- /**
43
- * Tool parameter value type - specific for tool parameters
44
- */
45
- export type TToolParameters = Record<string, TUniversalValue>;
46
- /**
47
- * Tool result data type - for tool execution results
48
- */
49
- /**
50
- * Plugin context type - for plugin execution contexts
51
- */
52
- export interface IPluginContext {
53
- input?: string;
54
- response?: string;
55
- messages?: TUniversalMessage[];
56
- responseMessage?: TUniversalMessage;
57
- metadata?: TMetadata;
58
- error?: Error;
59
- executionContext?: TContextData;
60
- }
61
- /**
62
- * Type utility functions for safe type checking and validation
63
- * @internal
64
- */
65
- export declare const TypeUtils: {
66
- isPrimitive: (value: TUniversalValue) => value is TPrimitiveValue;
67
- isArray: (value: TUniversalValue) => value is TUniversalArrayValue;
68
- isObject: (value: TUniversalValue) => value is IUniversalObjectValue;
69
- isUniversalValue: (value: TUniversalValue) => value is TUniversalValue;
70
- };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Q,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE9D;;GAEG;AASH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,gBAAgB,CAAC,EAAE,YAAY,CAAC;CACnC;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS;yBACG,eAAe,KAAG,KAAK,IAAI,eAAe;qBAQ9C,eAAe,KAAG,KAAK,IAAI,oBAAoB;sBAI9C,eAAe,KAAG,KAAK,IAAI,qBAAqB;8BAQxC,eAAe,KAAG,KAAK,IAAI,eAAe;CAIvE,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * Agent-specific type definitions
3
- * Local types for agent functionality - not forced to use base types unless needed for cross-connections
4
- */
5
- /**
6
- * Type utility functions for safe type checking and validation
7
- * @internal
8
- */
9
- export const TypeUtils = {
10
- isPrimitive: (value) => {
11
- return value === null ||
12
- value === undefined ||
13
- typeof value === 'string' ||
14
- typeof value === 'number' ||
15
- typeof value === 'boolean';
16
- },
17
- isArray: (value) => {
18
- return Array.isArray(value) && value.every(item => TypeUtils.isUniversalValue(item));
19
- },
20
- isObject: (value) => {
21
- return typeof value === 'object' &&
22
- value !== null &&
23
- !Array.isArray(value) &&
24
- !(value instanceof Date) &&
25
- Object.values(value).every(val => TypeUtils.isUniversalValue(val));
26
- },
27
- isUniversalValue: (value) => {
28
- if (value instanceof Date)
29
- return true;
30
- return TypeUtils.isPrimitive(value) || TypeUtils.isArray(value) || TypeUtils.isObject(value);
31
- }
32
- };
33
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/interfaces/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiFH;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,WAAW,EAAE,CAAC,KAAsB,EAA4B,EAAE;QAC9D,OAAO,KAAK,KAAK,IAAI;YACjB,KAAK,KAAK,SAAS;YACnB,OAAO,KAAK,KAAK,QAAQ;YACzB,OAAO,KAAK,KAAK,QAAQ;YACzB,OAAO,KAAK,KAAK,SAAS,CAAC;IACnC,CAAC;IAED,OAAO,EAAE,CAAC,KAAsB,EAAiC,EAAE;QAC/D,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IACzF,CAAC;IAED,QAAQ,EAAE,CAAC,KAAsB,EAAkC,EAAE;QACjE,OAAO,OAAO,KAAK,KAAK,QAAQ;YAC5B,KAAK,KAAK,IAAI;YACd,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YACrB,CAAC,CAAC,KAAK,YAAY,IAAI,CAAC;YACxB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,gBAAgB,EAAE,CAAC,KAAsB,EAA4B,EAAE;QACnE,IAAI,KAAK,YAAY,IAAI;YAAE,OAAO,IAAI,CAAC;QACvC,OAAO,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjG,CAAC;CACJ,CAAC"}