@hashgraphonline/conversational-agent 0.2.216 → 0.2.217

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 (312) hide show
  1. package/cli/readme.md +181 -0
  2. package/dist/cjs/index.cjs +1 -1
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/cjs/index.d.ts +1 -0
  5. package/dist/cjs/plugins/community/swarm/SwarmPlugin.d.ts +17 -0
  6. package/dist/cjs/plugins/community/swarm/__tests__/SwarmPlugin.mocks.d.ts +1 -0
  7. package/dist/cjs/plugins/community/swarm/__tests__/SwarmPlugin.test.d.ts +1 -0
  8. package/dist/cjs/plugins/community/swarm/__tests__/tools/CreatePostageStampTool.test.d.ts +1 -0
  9. package/dist/cjs/plugins/community/swarm/__tests__/tools/DownloadDataTool.test.d.ts +1 -0
  10. package/dist/cjs/plugins/community/swarm/__tests__/tools/DownloadFilesTool.test.d.ts +1 -0
  11. package/dist/cjs/plugins/community/swarm/__tests__/tools/ExtendPostageStampTool.test.d.ts +1 -0
  12. package/dist/cjs/plugins/community/swarm/__tests__/tools/GetPostageStampTool.test.d.ts +1 -0
  13. package/dist/cjs/plugins/community/swarm/__tests__/tools/ListPostageStampsTool.test.d.ts +1 -0
  14. package/dist/cjs/plugins/community/swarm/__tests__/tools/QueryUploadProgressTool.test.d.ts +1 -0
  15. package/dist/cjs/plugins/community/swarm/__tests__/tools/ReadFeedTool.test.d.ts +1 -0
  16. package/dist/cjs/plugins/community/swarm/__tests__/tools/SwarmTool.mocks.d.ts +14 -0
  17. package/dist/cjs/plugins/community/swarm/__tests__/tools/UpdateFeedTool.test.d.ts +1 -0
  18. package/dist/cjs/plugins/community/swarm/__tests__/tools/UploadDataTool.test.d.ts +1 -0
  19. package/dist/cjs/plugins/community/swarm/__tests__/tools/UploadFileTool.test.d.ts +1 -0
  20. package/dist/cjs/plugins/community/swarm/__tests__/tools/UploadFolderTool.test.d.ts +1 -0
  21. package/dist/cjs/plugins/community/swarm/config.d.ts +6 -0
  22. package/dist/cjs/plugins/community/swarm/constants.d.ts +8 -0
  23. package/dist/cjs/plugins/community/swarm/index.d.ts +2 -0
  24. package/dist/cjs/plugins/community/swarm/model.d.ts +23 -0
  25. package/dist/cjs/plugins/community/swarm/tools/CreatePostageStampTool.d.ts +47 -0
  26. package/dist/cjs/plugins/community/swarm/tools/DownloadDataTool.d.ts +35 -0
  27. package/dist/cjs/plugins/community/swarm/tools/DownloadFilesTool.d.ts +41 -0
  28. package/dist/cjs/plugins/community/swarm/tools/ExtendPostageStampTool.d.ts +47 -0
  29. package/dist/cjs/plugins/community/swarm/tools/GetPostageStampTool.d.ts +35 -0
  30. package/dist/cjs/plugins/community/swarm/tools/ListPostageStampsTool.d.ts +53 -0
  31. package/dist/cjs/plugins/community/swarm/tools/QueryUploadProgressTool.d.ts +35 -0
  32. package/dist/cjs/plugins/community/swarm/tools/ReadFeedTool.d.ts +41 -0
  33. package/dist/cjs/plugins/community/swarm/tools/UpdateFeedTool.d.ts +47 -0
  34. package/dist/cjs/plugins/community/swarm/tools/UploadDataTool.d.ts +47 -0
  35. package/dist/cjs/plugins/community/swarm/tools/UploadFileTool.d.ts +53 -0
  36. package/dist/cjs/plugins/community/swarm/tools/UploadFolderTool.d.ts +47 -0
  37. package/dist/cjs/plugins/community/swarm/utils.d.ts +22 -0
  38. package/dist/cjs/plugins/index.d.ts +1 -0
  39. package/dist/esm/index.js +33 -31
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/index10.js +13 -677
  42. package/dist/esm/index10.js.map +1 -1
  43. package/dist/esm/index11.js +601 -234
  44. package/dist/esm/index11.js.map +1 -1
  45. package/dist/esm/index12.js +296 -136
  46. package/dist/esm/index12.js.map +1 -1
  47. package/dist/esm/index13.js +127 -235
  48. package/dist/esm/index13.js.map +1 -1
  49. package/dist/esm/index14.js +247 -84
  50. package/dist/esm/index14.js.map +1 -1
  51. package/dist/esm/index15.js +81 -159
  52. package/dist/esm/index15.js.map +1 -1
  53. package/dist/esm/index16.js +155 -229
  54. package/dist/esm/index16.js.map +1 -1
  55. package/dist/esm/index17.js +238 -140
  56. package/dist/esm/index17.js.map +1 -1
  57. package/dist/esm/index18.js +139 -493
  58. package/dist/esm/index18.js.map +1 -1
  59. package/dist/esm/index19.js +479 -91
  60. package/dist/esm/index19.js.map +1 -1
  61. package/dist/esm/index20.js +88 -147
  62. package/dist/esm/index20.js.map +1 -1
  63. package/dist/esm/index21.js +127 -666
  64. package/dist/esm/index21.js.map +1 -1
  65. package/dist/esm/index22.js +698 -44
  66. package/dist/esm/index22.js.map +1 -1
  67. package/dist/esm/index23.js +45 -304
  68. package/dist/esm/index23.js.map +1 -1
  69. package/dist/esm/index24.js +303 -153
  70. package/dist/esm/index24.js.map +1 -1
  71. package/dist/esm/index25.js +150 -117
  72. package/dist/esm/index25.js.map +1 -1
  73. package/dist/esm/index26.js +154 -18
  74. package/dist/esm/index26.js.map +1 -1
  75. package/dist/esm/index27.js +18 -22
  76. package/dist/esm/index27.js.map +1 -1
  77. package/dist/esm/index28.js +15 -74
  78. package/dist/esm/index28.js.map +1 -1
  79. package/dist/esm/index29.js +70 -295
  80. package/dist/esm/index29.js.map +1 -1
  81. package/dist/esm/index30.js +279 -100
  82. package/dist/esm/index30.js.map +1 -1
  83. package/dist/esm/index31.js +86 -922
  84. package/dist/esm/index31.js.map +1 -1
  85. package/dist/esm/index32.js +904 -189
  86. package/dist/esm/index32.js.map +1 -1
  87. package/dist/esm/index33.js +185 -1169
  88. package/dist/esm/index33.js.map +1 -1
  89. package/dist/esm/index34.js +1218 -112
  90. package/dist/esm/index34.js.map +1 -1
  91. package/dist/esm/index35.js +111 -99
  92. package/dist/esm/index35.js.map +1 -1
  93. package/dist/esm/index36.js +113 -8
  94. package/dist/esm/index36.js.map +1 -1
  95. package/dist/esm/index37.js +8 -45
  96. package/dist/esm/index37.js.map +1 -1
  97. package/dist/esm/index38.js +41 -102
  98. package/dist/esm/index38.js.map +1 -1
  99. package/dist/esm/index39.js +96 -55
  100. package/dist/esm/index39.js.map +1 -1
  101. package/dist/esm/index4.js +1 -1
  102. package/dist/esm/index40.js +58 -71
  103. package/dist/esm/index40.js.map +1 -1
  104. package/dist/esm/index41.js +79 -21
  105. package/dist/esm/index41.js.map +1 -1
  106. package/dist/esm/index42.js +21 -5
  107. package/dist/esm/index42.js.map +1 -1
  108. package/dist/esm/index43.js +4 -11
  109. package/dist/esm/index43.js.map +1 -1
  110. package/dist/esm/index44.js +12 -322
  111. package/dist/esm/index44.js.map +1 -1
  112. package/dist/esm/index45.js +280 -142
  113. package/dist/esm/index45.js.map +1 -1
  114. package/dist/esm/index46.js +181 -24
  115. package/dist/esm/index46.js.map +1 -1
  116. package/dist/esm/index47.js +7 -95
  117. package/dist/esm/index47.js.map +1 -1
  118. package/dist/esm/index48.js +77 -7
  119. package/dist/esm/index48.js.map +1 -1
  120. package/dist/esm/index49.js +75 -0
  121. package/dist/esm/index49.js.map +1 -0
  122. package/dist/esm/index5.js +2 -2
  123. package/dist/esm/index50.js +57 -0
  124. package/dist/esm/index50.js.map +1 -0
  125. package/dist/esm/index51.js +103 -0
  126. package/dist/esm/index51.js.map +1 -0
  127. package/dist/esm/index52.js +79 -0
  128. package/dist/esm/index52.js.map +1 -0
  129. package/dist/esm/index53.js +75 -0
  130. package/dist/esm/index53.js.map +1 -0
  131. package/dist/esm/index54.js +124 -0
  132. package/dist/esm/index54.js.map +1 -0
  133. package/dist/esm/index55.js +58 -0
  134. package/dist/esm/index55.js.map +1 -0
  135. package/dist/esm/index56.js +83 -0
  136. package/dist/esm/index56.js.map +1 -0
  137. package/dist/esm/index57.js +100 -0
  138. package/dist/esm/index57.js.map +1 -0
  139. package/dist/esm/index58.js +118 -0
  140. package/dist/esm/index58.js.map +1 -0
  141. package/dist/esm/index59.js +108 -0
  142. package/dist/esm/index59.js.map +1 -0
  143. package/dist/esm/index6.js +132 -833
  144. package/dist/esm/index6.js.map +1 -1
  145. package/dist/esm/index60.js +30 -0
  146. package/dist/esm/index60.js.map +1 -0
  147. package/dist/esm/index61.js +98 -0
  148. package/dist/esm/index61.js.map +1 -0
  149. package/dist/esm/index62.js +131 -0
  150. package/dist/esm/index62.js.map +1 -0
  151. package/dist/esm/index63.js +19 -0
  152. package/dist/esm/index63.js.map +1 -0
  153. package/dist/esm/index7.js +826 -75
  154. package/dist/esm/index7.js.map +1 -1
  155. package/dist/esm/index8.js +91 -13
  156. package/dist/esm/index8.js.map +1 -1
  157. package/dist/esm/index9.js +13 -17
  158. package/dist/esm/index9.js.map +1 -1
  159. package/dist/types/index.d.ts +1 -0
  160. package/dist/types/plugins/community/swarm/SwarmPlugin.d.ts +17 -0
  161. package/dist/types/plugins/community/swarm/__tests__/SwarmPlugin.mocks.d.ts +1 -0
  162. package/dist/types/plugins/community/swarm/__tests__/SwarmPlugin.test.d.ts +1 -0
  163. package/dist/types/plugins/community/swarm/__tests__/tools/CreatePostageStampTool.test.d.ts +1 -0
  164. package/dist/types/plugins/community/swarm/__tests__/tools/DownloadDataTool.test.d.ts +1 -0
  165. package/dist/types/plugins/community/swarm/__tests__/tools/DownloadFilesTool.test.d.ts +1 -0
  166. package/dist/types/plugins/community/swarm/__tests__/tools/ExtendPostageStampTool.test.d.ts +1 -0
  167. package/dist/types/plugins/community/swarm/__tests__/tools/GetPostageStampTool.test.d.ts +1 -0
  168. package/dist/types/plugins/community/swarm/__tests__/tools/ListPostageStampsTool.test.d.ts +1 -0
  169. package/dist/types/plugins/community/swarm/__tests__/tools/QueryUploadProgressTool.test.d.ts +1 -0
  170. package/dist/types/plugins/community/swarm/__tests__/tools/ReadFeedTool.test.d.ts +1 -0
  171. package/dist/types/plugins/community/swarm/__tests__/tools/SwarmTool.mocks.d.ts +14 -0
  172. package/dist/types/plugins/community/swarm/__tests__/tools/UpdateFeedTool.test.d.ts +1 -0
  173. package/dist/types/plugins/community/swarm/__tests__/tools/UploadDataTool.test.d.ts +1 -0
  174. package/dist/types/plugins/community/swarm/__tests__/tools/UploadFileTool.test.d.ts +1 -0
  175. package/dist/types/plugins/community/swarm/__tests__/tools/UploadFolderTool.test.d.ts +1 -0
  176. package/dist/types/plugins/community/swarm/config.d.ts +6 -0
  177. package/dist/types/plugins/community/swarm/constants.d.ts +8 -0
  178. package/dist/types/plugins/community/swarm/index.d.ts +2 -0
  179. package/dist/types/plugins/community/swarm/model.d.ts +23 -0
  180. package/dist/types/plugins/community/swarm/tools/CreatePostageStampTool.d.ts +47 -0
  181. package/dist/types/plugins/community/swarm/tools/DownloadDataTool.d.ts +35 -0
  182. package/dist/types/plugins/community/swarm/tools/DownloadFilesTool.d.ts +41 -0
  183. package/dist/types/plugins/community/swarm/tools/ExtendPostageStampTool.d.ts +47 -0
  184. package/dist/types/plugins/community/swarm/tools/GetPostageStampTool.d.ts +35 -0
  185. package/dist/types/plugins/community/swarm/tools/ListPostageStampsTool.d.ts +53 -0
  186. package/dist/types/plugins/community/swarm/tools/QueryUploadProgressTool.d.ts +35 -0
  187. package/dist/types/plugins/community/swarm/tools/ReadFeedTool.d.ts +41 -0
  188. package/dist/types/plugins/community/swarm/tools/UpdateFeedTool.d.ts +47 -0
  189. package/dist/types/plugins/community/swarm/tools/UploadDataTool.d.ts +47 -0
  190. package/dist/types/plugins/community/swarm/tools/UploadFileTool.d.ts +53 -0
  191. package/dist/types/plugins/community/swarm/tools/UploadFolderTool.d.ts +47 -0
  192. package/dist/types/plugins/community/swarm/utils.d.ts +22 -0
  193. package/dist/types/plugins/index.d.ts +1 -0
  194. package/package.json +36 -26
  195. package/src/index.ts +1 -0
  196. package/src/plugins/community/swarm/README.md +279 -0
  197. package/src/plugins/community/swarm/SwarmPlugin.ts +178 -0
  198. package/src/plugins/community/swarm/__tests__/SwarmPlugin.mocks.ts +105 -0
  199. package/src/plugins/community/swarm/__tests__/SwarmPlugin.test.ts +93 -0
  200. package/src/plugins/community/swarm/__tests__/tools/CreatePostageStampTool.test.ts +152 -0
  201. package/src/plugins/community/swarm/__tests__/tools/DownloadDataTool.test.ts +93 -0
  202. package/src/plugins/community/swarm/__tests__/tools/DownloadFilesTool.test.ts +163 -0
  203. package/src/plugins/community/swarm/__tests__/tools/ExtendPostageStampTool.test.ts +132 -0
  204. package/src/plugins/community/swarm/__tests__/tools/GetPostageStampTool.test.ts +83 -0
  205. package/src/plugins/community/swarm/__tests__/tools/ListPostageStampsTool.test.ts +219 -0
  206. package/src/plugins/community/swarm/__tests__/tools/QueryUploadProgressTool.test.ts +169 -0
  207. package/src/plugins/community/swarm/__tests__/tools/ReadFeedTool.test.ts +133 -0
  208. package/src/plugins/community/swarm/__tests__/tools/SwarmTool.mocks.ts +67 -0
  209. package/src/plugins/community/swarm/__tests__/tools/UpdateFeedTool.test.ts +148 -0
  210. package/src/plugins/community/swarm/__tests__/tools/UploadDataTool.test.ts +125 -0
  211. package/src/plugins/community/swarm/__tests__/tools/UploadFileTool.test.ts +194 -0
  212. package/src/plugins/community/swarm/__tests__/tools/UploadFolderTool.test.ts +118 -0
  213. package/src/plugins/community/swarm/config.ts +6 -0
  214. package/src/plugins/community/swarm/constants.ts +12 -0
  215. package/src/plugins/community/swarm/index.ts +2 -0
  216. package/src/plugins/community/swarm/model.ts +23 -0
  217. package/src/plugins/community/swarm/tools/CreatePostageStampTool.ts +137 -0
  218. package/src/plugins/community/swarm/tools/DownloadDataTool.ts +79 -0
  219. package/src/plugins/community/swarm/tools/DownloadFilesTool.ts +155 -0
  220. package/src/plugins/community/swarm/tools/ExtendPostageStampTool.ts +112 -0
  221. package/src/plugins/community/swarm/tools/GetPostageStampTool.ts +92 -0
  222. package/src/plugins/community/swarm/tools/ListPostageStampsTool.ts +124 -0
  223. package/src/plugins/community/swarm/tools/QueryUploadProgressTool.ts +109 -0
  224. package/src/plugins/community/swarm/tools/ReadFeedTool.ts +110 -0
  225. package/src/plugins/community/swarm/tools/UpdateFeedTool.ts +149 -0
  226. package/src/plugins/community/swarm/tools/UploadDataTool.ts +109 -0
  227. package/src/plugins/community/swarm/tools/UploadFileTool.ts +163 -0
  228. package/src/plugins/community/swarm/tools/UploadFolderTool.ts +150 -0
  229. package/src/plugins/community/swarm/utils.ts +172 -0
  230. package/src/plugins/index.ts +1 -0
  231. package/cli/dist/CLIApp.d.ts +0 -11
  232. package/cli/dist/CLIApp.d.ts.map +0 -1
  233. package/cli/dist/CLIApp.js +0 -128
  234. package/cli/dist/CLIApp.js.map +0 -1
  235. package/cli/dist/LocalConversationalAgent.d.ts +0 -37
  236. package/cli/dist/LocalConversationalAgent.js +0 -58
  237. package/cli/dist/app.d.ts +0 -18
  238. package/cli/dist/app.d.ts.map +0 -1
  239. package/cli/dist/app.js +0 -14
  240. package/cli/dist/app.js.map +0 -1
  241. package/cli/dist/cli.d.ts +0 -3
  242. package/cli/dist/cli.d.ts.map +0 -1
  243. package/cli/dist/cli.js +0 -87
  244. package/cli/dist/cli.js.map +0 -1
  245. package/cli/dist/components/AppContainer.d.ts +0 -16
  246. package/cli/dist/components/AppContainer.js +0 -24
  247. package/cli/dist/components/AppScreens.d.ts +0 -2
  248. package/cli/dist/components/AppScreens.js +0 -259
  249. package/cli/dist/components/ChatScreen.d.ts +0 -21
  250. package/cli/dist/components/ChatScreen.d.ts.map +0 -1
  251. package/cli/dist/components/ChatScreen.js +0 -40
  252. package/cli/dist/components/ChatScreen.js.map +0 -1
  253. package/cli/dist/components/DebugLoadingScreen.d.ts +0 -5
  254. package/cli/dist/components/DebugLoadingScreen.js +0 -31
  255. package/cli/dist/components/LoadingScreen.d.ts +0 -3
  256. package/cli/dist/components/LoadingScreen.d.ts.map +0 -1
  257. package/cli/dist/components/LoadingScreen.js +0 -17
  258. package/cli/dist/components/LoadingScreen.js.map +0 -1
  259. package/cli/dist/components/LoadingScreenDebug.d.ts +0 -5
  260. package/cli/dist/components/LoadingScreenDebug.js +0 -27
  261. package/cli/dist/components/MCPConfigScreen.d.ts +0 -28
  262. package/cli/dist/components/MCPConfigScreen.d.ts.map +0 -1
  263. package/cli/dist/components/MCPConfigScreen.js +0 -186
  264. package/cli/dist/components/MCPConfigScreen.js.map +0 -1
  265. package/cli/dist/components/ScreenRouter.d.ts +0 -13
  266. package/cli/dist/components/ScreenRouter.d.ts.map +0 -1
  267. package/cli/dist/components/ScreenRouter.js +0 -23
  268. package/cli/dist/components/ScreenRouter.js.map +0 -1
  269. package/cli/dist/components/SetupScreen.d.ts +0 -16
  270. package/cli/dist/components/SetupScreen.d.ts.map +0 -1
  271. package/cli/dist/components/SetupScreen.js +0 -67
  272. package/cli/dist/components/SetupScreen.js.map +0 -1
  273. package/cli/dist/components/SingleLoadingScreen.d.ts +0 -5
  274. package/cli/dist/components/SingleLoadingScreen.js +0 -27
  275. package/cli/dist/components/StatusBadge.d.ts +0 -10
  276. package/cli/dist/components/StatusBadge.d.ts.map +0 -1
  277. package/cli/dist/components/StatusBadge.js +0 -24
  278. package/cli/dist/components/StatusBadge.js.map +0 -1
  279. package/cli/dist/components/TerminalWindow.d.ts +0 -9
  280. package/cli/dist/components/TerminalWindow.d.ts.map +0 -1
  281. package/cli/dist/components/TerminalWindow.js +0 -19
  282. package/cli/dist/components/TerminalWindow.js.map +0 -1
  283. package/cli/dist/components/WelcomeScreen.d.ts +0 -12
  284. package/cli/dist/components/WelcomeScreen.d.ts.map +0 -1
  285. package/cli/dist/components/WelcomeScreen.js +0 -47
  286. package/cli/dist/components/WelcomeScreen.js.map +0 -1
  287. package/cli/dist/context/AppContext.d.ts +0 -68
  288. package/cli/dist/context/AppContext.js +0 -363
  289. package/cli/dist/headless-runner.d.ts +0 -17
  290. package/cli/dist/headless-runner.d.ts.map +0 -1
  291. package/cli/dist/headless-runner.js +0 -128
  292. package/cli/dist/headless-runner.js.map +0 -1
  293. package/cli/dist/hooks/useInitializeAgent.d.ts +0 -19
  294. package/cli/dist/hooks/useInitializeAgent.d.ts.map +0 -1
  295. package/cli/dist/hooks/useInitializeAgent.js +0 -29
  296. package/cli/dist/hooks/useInitializeAgent.js.map +0 -1
  297. package/cli/dist/hooks/useStableState.d.ts +0 -38
  298. package/cli/dist/hooks/useStableState.d.ts.map +0 -1
  299. package/cli/dist/hooks/useStableState.js +0 -69
  300. package/cli/dist/hooks/useStableState.js.map +0 -1
  301. package/cli/dist/managers/AgentManager.d.ts +0 -58
  302. package/cli/dist/managers/AgentManager.d.ts.map +0 -1
  303. package/cli/dist/managers/AgentManager.js +0 -121
  304. package/cli/dist/managers/AgentManager.js.map +0 -1
  305. package/cli/dist/managers/ConfigManager.d.ts +0 -54
  306. package/cli/dist/managers/ConfigManager.d.ts.map +0 -1
  307. package/cli/dist/managers/ConfigManager.js +0 -188
  308. package/cli/dist/managers/ConfigManager.js.map +0 -1
  309. package/cli/dist/types.d.ts +0 -52
  310. package/cli/dist/types.d.ts.map +0 -1
  311. package/cli/dist/types.js +0 -34
  312. package/cli/dist/types.js.map +0 -1
@@ -0,0 +1,47 @@
1
+ import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
2
+ import { Bee } from '@ethersphere/bee-js';
3
+ import { z } from 'zod';
4
+ import { ToolResponse } from '../utils';
5
+ import { SwarmConfig } from '../config';
6
+
7
+ declare const ExtendPostageStampSchema: z.ZodObject<{
8
+ postageBatchId: z.ZodString;
9
+ duration: z.ZodOptional<z.ZodString>;
10
+ size: z.ZodOptional<z.ZodNumber>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ postageBatchId: string;
13
+ duration?: string | undefined;
14
+ size?: number | undefined;
15
+ }, {
16
+ postageBatchId: string;
17
+ duration?: string | undefined;
18
+ size?: number | undefined;
19
+ }>;
20
+ export declare class ExtendPostageStampTool extends BaseHederaQueryTool<typeof ExtendPostageStampSchema> {
21
+ name: string;
22
+ description: string;
23
+ namespace: string;
24
+ specificInputSchema: z.ZodObject<{
25
+ postageBatchId: z.ZodString;
26
+ duration: z.ZodOptional<z.ZodString>;
27
+ size: z.ZodOptional<z.ZodNumber>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ postageBatchId: string;
30
+ duration?: string | undefined;
31
+ size?: number | undefined;
32
+ }, {
33
+ postageBatchId: string;
34
+ duration?: string | undefined;
35
+ size?: number | undefined;
36
+ }>;
37
+ bee: Bee;
38
+ config: SwarmConfig;
39
+ constructor(params: {
40
+ hederaKit: HederaAgentKit;
41
+ config: SwarmConfig;
42
+ logger?: GenericPluginContext['logger'];
43
+ bee: Bee;
44
+ });
45
+ protected executeQuery(input: z.infer<typeof ExtendPostageStampSchema>): Promise<ToolResponse | string>;
46
+ }
47
+ export {};
@@ -0,0 +1,35 @@
1
+ import { GenericPluginContext, BaseHederaQueryTool, HederaAgentKit } from 'hedera-agent-kit';
2
+ import { Bee } from '@ethersphere/bee-js';
3
+ import { z } from 'zod';
4
+ import { ToolResponse } from '../utils';
5
+ import { SwarmConfig } from '../config';
6
+
7
+ declare const GetPostageStampSchema: z.ZodObject<{
8
+ postageBatchId: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ postageBatchId: string;
11
+ }, {
12
+ postageBatchId: string;
13
+ }>;
14
+ export declare class GetPostageStampTool extends BaseHederaQueryTool<typeof GetPostageStampSchema> {
15
+ name: string;
16
+ description: string;
17
+ namespace: string;
18
+ specificInputSchema: z.ZodObject<{
19
+ postageBatchId: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ postageBatchId: string;
22
+ }, {
23
+ postageBatchId: string;
24
+ }>;
25
+ bee: Bee;
26
+ config: SwarmConfig;
27
+ constructor(params: {
28
+ hederaKit: HederaAgentKit;
29
+ config: SwarmConfig;
30
+ logger?: GenericPluginContext['logger'];
31
+ bee: Bee;
32
+ });
33
+ protected executeQuery(input: z.infer<typeof GetPostageStampSchema>): Promise<ToolResponse | string>;
34
+ }
35
+ export {};
@@ -0,0 +1,53 @@
1
+ import { GenericPluginContext, BaseHederaQueryTool, HederaAgentKit } from 'hedera-agent-kit';
2
+ import { Bee } from '@ethersphere/bee-js';
3
+ import { z } from 'zod';
4
+ import { ToolResponse } from '../utils';
5
+ import { SwarmConfig } from '../config';
6
+
7
+ declare const ListPostageStampsSchema: z.ZodObject<{
8
+ leastUsed: z.ZodOptional<z.ZodBoolean>;
9
+ limit: z.ZodOptional<z.ZodNumber>;
10
+ minUsage: z.ZodOptional<z.ZodNumber>;
11
+ maxUsage: z.ZodOptional<z.ZodNumber>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ limit?: number | undefined;
14
+ leastUsed?: boolean | undefined;
15
+ minUsage?: number | undefined;
16
+ maxUsage?: number | undefined;
17
+ }, {
18
+ limit?: number | undefined;
19
+ leastUsed?: boolean | undefined;
20
+ minUsage?: number | undefined;
21
+ maxUsage?: number | undefined;
22
+ }>;
23
+ export declare class ListPostageStampsTool extends BaseHederaQueryTool<typeof ListPostageStampsSchema> {
24
+ name: string;
25
+ description: string;
26
+ namespace: string;
27
+ specificInputSchema: z.ZodObject<{
28
+ leastUsed: z.ZodOptional<z.ZodBoolean>;
29
+ limit: z.ZodOptional<z.ZodNumber>;
30
+ minUsage: z.ZodOptional<z.ZodNumber>;
31
+ maxUsage: z.ZodOptional<z.ZodNumber>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ limit?: number | undefined;
34
+ leastUsed?: boolean | undefined;
35
+ minUsage?: number | undefined;
36
+ maxUsage?: number | undefined;
37
+ }, {
38
+ limit?: number | undefined;
39
+ leastUsed?: boolean | undefined;
40
+ minUsage?: number | undefined;
41
+ maxUsage?: number | undefined;
42
+ }>;
43
+ bee: Bee;
44
+ config: SwarmConfig;
45
+ constructor(params: {
46
+ hederaKit: HederaAgentKit;
47
+ config: SwarmConfig;
48
+ logger?: GenericPluginContext['logger'];
49
+ bee: Bee;
50
+ });
51
+ protected executeQuery(input: z.infer<typeof ListPostageStampsSchema>): Promise<ToolResponse | string>;
52
+ }
53
+ export {};
@@ -0,0 +1,35 @@
1
+ import { GenericPluginContext, BaseHederaQueryTool, HederaAgentKit } from 'hedera-agent-kit';
2
+ import { Bee } from '@ethersphere/bee-js';
3
+ import { z } from 'zod';
4
+ import { ToolResponse } from '../utils';
5
+ import { SwarmConfig } from '../config';
6
+
7
+ declare const QueryUploadProgressSchema: z.ZodObject<{
8
+ tagId: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ tagId: string;
11
+ }, {
12
+ tagId: string;
13
+ }>;
14
+ export declare class QueryUploadProgressTool extends BaseHederaQueryTool<typeof QueryUploadProgressSchema> {
15
+ name: string;
16
+ description: string;
17
+ namespace: string;
18
+ specificInputSchema: z.ZodObject<{
19
+ tagId: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ tagId: string;
22
+ }, {
23
+ tagId: string;
24
+ }>;
25
+ bee: Bee;
26
+ config: SwarmConfig;
27
+ constructor(params: {
28
+ hederaKit: HederaAgentKit;
29
+ config: SwarmConfig;
30
+ logger?: GenericPluginContext['logger'];
31
+ bee: Bee;
32
+ });
33
+ protected executeQuery(input: z.infer<typeof QueryUploadProgressSchema>): Promise<ToolResponse | string>;
34
+ }
35
+ export {};
@@ -0,0 +1,41 @@
1
+ import { Bee } from '@ethersphere/bee-js';
2
+ import { z } from 'zod';
3
+ import { ToolResponse } from '../utils';
4
+ import { BaseHederaQueryTool, GenericPluginContext, HederaAgentKit } from 'hedera-agent-kit';
5
+ import { SwarmConfig } from '../config';
6
+
7
+ declare const ReadFeedSchema: z.ZodObject<{
8
+ memoryTopic: z.ZodString;
9
+ owner: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ memoryTopic: string;
12
+ owner?: string | undefined;
13
+ }, {
14
+ memoryTopic: string;
15
+ owner?: string | undefined;
16
+ }>;
17
+ export declare class ReadFeedTool extends BaseHederaQueryTool<typeof ReadFeedSchema> {
18
+ name: string;
19
+ description: string;
20
+ namespace: string;
21
+ specificInputSchema: z.ZodObject<{
22
+ memoryTopic: z.ZodString;
23
+ owner: z.ZodOptional<z.ZodString>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ memoryTopic: string;
26
+ owner?: string | undefined;
27
+ }, {
28
+ memoryTopic: string;
29
+ owner?: string | undefined;
30
+ }>;
31
+ bee: Bee;
32
+ config: SwarmConfig;
33
+ constructor(params: {
34
+ hederaKit: HederaAgentKit;
35
+ config: SwarmConfig;
36
+ logger?: GenericPluginContext['logger'];
37
+ bee: Bee;
38
+ });
39
+ protected executeQuery(input: z.infer<typeof ReadFeedSchema>): Promise<ToolResponse | string>;
40
+ }
41
+ export {};
@@ -0,0 +1,47 @@
1
+ import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
2
+ import { Bee } from '@ethersphere/bee-js';
3
+ import { z } from 'zod';
4
+ import { ToolResponse } from '../utils';
5
+ import { SwarmConfig } from '../config';
6
+
7
+ declare const UpdateFeedSchema: z.ZodObject<{
8
+ data: z.ZodString;
9
+ memoryTopic: z.ZodString;
10
+ postageBatchId: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ data: string;
13
+ memoryTopic: string;
14
+ postageBatchId?: string | undefined;
15
+ }, {
16
+ data: string;
17
+ memoryTopic: string;
18
+ postageBatchId?: string | undefined;
19
+ }>;
20
+ export declare class UpdateFeedTool extends BaseHederaQueryTool<typeof UpdateFeedSchema> {
21
+ name: string;
22
+ description: string;
23
+ namespace: string;
24
+ specificInputSchema: z.ZodObject<{
25
+ data: z.ZodString;
26
+ memoryTopic: z.ZodString;
27
+ postageBatchId: z.ZodOptional<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ data: string;
30
+ memoryTopic: string;
31
+ postageBatchId?: string | undefined;
32
+ }, {
33
+ data: string;
34
+ memoryTopic: string;
35
+ postageBatchId?: string | undefined;
36
+ }>;
37
+ bee: Bee;
38
+ config: SwarmConfig;
39
+ constructor(params: {
40
+ hederaKit: HederaAgentKit;
41
+ config: SwarmConfig;
42
+ logger?: GenericPluginContext['logger'];
43
+ bee: Bee;
44
+ });
45
+ protected executeQuery(input: z.infer<typeof UpdateFeedSchema>): Promise<ToolResponse | string>;
46
+ }
47
+ export {};
@@ -0,0 +1,47 @@
1
+ import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
2
+ import { Bee } from '@ethersphere/bee-js';
3
+ import { z } from 'zod';
4
+ import { ToolResponse } from '../utils';
5
+ import { SwarmConfig } from '../config';
6
+
7
+ declare const UploadDataSchema: z.ZodObject<{
8
+ data: z.ZodString;
9
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
10
+ postageBatchId: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ data: string;
13
+ redundancyLevel?: number | undefined;
14
+ postageBatchId?: string | undefined;
15
+ }, {
16
+ data: string;
17
+ redundancyLevel?: number | undefined;
18
+ postageBatchId?: string | undefined;
19
+ }>;
20
+ export declare class UploadDataTool extends BaseHederaQueryTool<typeof UploadDataSchema> {
21
+ name: string;
22
+ description: string;
23
+ namespace: string;
24
+ specificInputSchema: z.ZodObject<{
25
+ data: z.ZodString;
26
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
27
+ postageBatchId: z.ZodOptional<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ data: string;
30
+ redundancyLevel?: number | undefined;
31
+ postageBatchId?: string | undefined;
32
+ }, {
33
+ data: string;
34
+ redundancyLevel?: number | undefined;
35
+ postageBatchId?: string | undefined;
36
+ }>;
37
+ bee: Bee;
38
+ config: SwarmConfig;
39
+ constructor(params: {
40
+ hederaKit: HederaAgentKit;
41
+ config: SwarmConfig;
42
+ logger?: GenericPluginContext['logger'];
43
+ bee: Bee;
44
+ });
45
+ protected executeQuery(input: z.infer<typeof UploadDataSchema>): Promise<ToolResponse | string>;
46
+ }
47
+ export {};
@@ -0,0 +1,53 @@
1
+ import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
2
+ import { Bee } from '@ethersphere/bee-js';
3
+ import { z } from 'zod';
4
+ import { ToolResponse } from '../utils';
5
+ import { SwarmConfig } from '../config';
6
+
7
+ declare const UploadFileSchema: z.ZodObject<{
8
+ data: z.ZodString;
9
+ isPath: z.ZodBoolean;
10
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
11
+ postageBatchId: z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ data: string;
14
+ isPath: boolean;
15
+ redundancyLevel?: number | undefined;
16
+ postageBatchId?: string | undefined;
17
+ }, {
18
+ data: string;
19
+ isPath: boolean;
20
+ redundancyLevel?: number | undefined;
21
+ postageBatchId?: string | undefined;
22
+ }>;
23
+ export declare class UploadFileTool extends BaseHederaQueryTool<typeof UploadFileSchema> {
24
+ name: string;
25
+ description: string;
26
+ namespace: string;
27
+ specificInputSchema: z.ZodObject<{
28
+ data: z.ZodString;
29
+ isPath: z.ZodBoolean;
30
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
31
+ postageBatchId: z.ZodOptional<z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ data: string;
34
+ isPath: boolean;
35
+ redundancyLevel?: number | undefined;
36
+ postageBatchId?: string | undefined;
37
+ }, {
38
+ data: string;
39
+ isPath: boolean;
40
+ redundancyLevel?: number | undefined;
41
+ postageBatchId?: string | undefined;
42
+ }>;
43
+ bee: Bee;
44
+ config: SwarmConfig;
45
+ constructor(params: {
46
+ hederaKit: HederaAgentKit;
47
+ config: SwarmConfig;
48
+ logger?: GenericPluginContext['logger'];
49
+ bee: Bee;
50
+ });
51
+ protected executeQuery(input: z.infer<typeof UploadFileSchema>): Promise<ToolResponse | string>;
52
+ }
53
+ export {};
@@ -0,0 +1,47 @@
1
+ import { BaseHederaQueryTool, HederaAgentKit, GenericPluginContext } from 'hedera-agent-kit';
2
+ import { Bee } from '@ethersphere/bee-js';
3
+ import { z } from 'zod';
4
+ import { ToolResponse } from '../utils';
5
+ import { SwarmConfig } from '../config';
6
+
7
+ declare const UploadFolderSchema: z.ZodObject<{
8
+ folderPath: z.ZodString;
9
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
10
+ postageBatchId: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ folderPath: string;
13
+ redundancyLevel?: number | undefined;
14
+ postageBatchId?: string | undefined;
15
+ }, {
16
+ folderPath: string;
17
+ redundancyLevel?: number | undefined;
18
+ postageBatchId?: string | undefined;
19
+ }>;
20
+ export declare class UploadFolderTool extends BaseHederaQueryTool<typeof UploadFolderSchema> {
21
+ name: string;
22
+ description: string;
23
+ namespace: string;
24
+ specificInputSchema: z.ZodObject<{
25
+ folderPath: z.ZodString;
26
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
27
+ postageBatchId: z.ZodOptional<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ folderPath: string;
30
+ redundancyLevel?: number | undefined;
31
+ postageBatchId?: string | undefined;
32
+ }, {
33
+ folderPath: string;
34
+ redundancyLevel?: number | undefined;
35
+ postageBatchId?: string | undefined;
36
+ }>;
37
+ bee: Bee;
38
+ config: SwarmConfig;
39
+ constructor(params: {
40
+ hederaKit: HederaAgentKit;
41
+ config: SwarmConfig;
42
+ logger?: GenericPluginContext['logger'];
43
+ bee: Bee;
44
+ });
45
+ protected executeQuery(input: z.infer<typeof UploadFolderSchema>): Promise<ToolResponse | string>;
46
+ }
47
+ export {};
@@ -0,0 +1,22 @@
1
+ import { Bee, PostageBatch } from '@ethersphere/bee-js';
2
+ import { PostageBatchCurated, PostageBatchSummary } from './model';
3
+ import { SwarmConfig } from './config';
4
+
5
+ export interface ToolResponse {
6
+ [x: string]: unknown;
7
+ tools?: {
8
+ [x: string]: unknown;
9
+ name: string;
10
+ };
11
+ _meta?: {
12
+ [x: string]: unknown;
13
+ };
14
+ }
15
+ export declare function hexToBytes(hex: string): Uint8Array;
16
+ export declare const getBatchSummary: (batch: PostageBatch | PostageBatchCurated) => PostageBatchSummary;
17
+ export declare const getResponseWithStructuredContent: <T>(data: T) => ToolResponse;
18
+ export declare const errorHasStatus: (error: unknown, status: number) => boolean;
19
+ export declare const getErrorMessage: (error: unknown) => string;
20
+ export declare const runWithTimeout: <T>(asyncAction: Promise<T>, timeout: number) => Promise<[unknown, boolean]>;
21
+ export declare const getUploadPostageBatchId: (argsPostageBatchId: string | undefined, bee: Bee, config: SwarmConfig) => Promise<string>;
22
+ export declare function makeDate(numberWithUnit: string): number;
@@ -4,3 +4,4 @@ export { InscribePlugin } from './inscribe';
4
4
  export { HbarPlugin } from './hbar/HbarPlugin';
5
5
  export * from './hbar';
6
6
  export { WebBrowserPlugin } from './web-browser/WebBrowserPlugin';
7
+ export { SwarmPlugin } from './community/swarm/SwarmPlugin';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgraphonline/conversational-agent",
3
- "version": "0.2.216",
3
+ "version": "0.2.217",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.cjs",
6
6
  "module": "./dist/esm/index.js",
@@ -28,6 +28,30 @@
28
28
  "LICENSE",
29
29
  "README.md"
30
30
  ],
31
+ "scripts": {
32
+ "test": "jest --detectOpenHandles",
33
+ "test:integration": "jest tests/integration",
34
+ "clean": "rimraf dist",
35
+ "build:es": "BUILD_FORMAT=es vite build",
36
+ "build:cjs": "BUILD_FORMAT=cjs vite build",
37
+ "build:umd": "BUILD_FORMAT=umd vite build",
38
+ "build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs",
39
+ "build:all": "pnpm run build && pnpm run cli:build",
40
+ "prepublishOnly": "pnpm run build",
41
+ "release": "pnpm publish --access public",
42
+ "release:canary": "pnpm run prepublishOnly && pnpm publish --tag canary --access public",
43
+ "version:canary": "pnpm version prerelease --preid canary --no-git-tag-version",
44
+ "publish:canary": "pnpm run version:canary && pnpm run release:canary",
45
+ "lint": "eslint .",
46
+ "lint:fix": "eslint . --fix",
47
+ "typecheck": "tsc --noEmit",
48
+ "cli:build": "cd cli && pnpm install && pnpm build",
49
+ "cli": "tsx cli/scripts/run-cli.ts",
50
+ "cli:dev": "cd cli && pnpm dev",
51
+ "example:mcp-filesystem": "tsx examples/mcp-filesystem-demo.ts",
52
+ "example:mcp-multi": "tsx examples/mcp-multi-server-demo.ts",
53
+ "postinstall": "bash -c 'if [ \"$SKIP_CLI_POSTINSTALL\" = \"1\" ]; then exit 0; fi; cd cli && pnpm install --silent 2>/dev/null || true'"
54
+ },
31
55
  "keywords": [
32
56
  "hedera",
33
57
  "hashgraph",
@@ -74,10 +98,12 @@
74
98
  "fsevents": "2.3.3"
75
99
  },
76
100
  "dependencies": {
101
+ "@ethereumjs/wallet": "^10.0.0",
102
+ "@ethersphere/bee-js": "^10.1.1",
77
103
  "@hashgraph/sdk": "^2.72.0",
78
- "@hashgraphonline/hashinal-wc": "^1.0.107",
104
+ "@hashgraphonline/hashinal-wc": "2.0.1",
79
105
  "@hashgraphonline/standards-agent-kit": "^0.2.164",
80
- "@hashgraphonline/standards-sdk": "0.1.111",
106
+ "@hashgraphonline/standards-sdk": "0.1.136",
81
107
  "@langchain/anthropic": "^0.3.28",
82
108
  "@langchain/core": "^0.3.77",
83
109
  "@langchain/openai": "^0.6.13",
@@ -103,27 +129,11 @@
103
129
  "url": "https://github.com/hashgraph-online/conversational-agent/issues"
104
130
  },
105
131
  "homepage": "https://github.com/hashgraph-online/conversational-agent#readme",
106
- "scripts": {
107
- "test": "jest --detectOpenHandles",
108
- "test:integration": "jest tests/integration",
109
- "clean": "rimraf dist",
110
- "build:es": "BUILD_FORMAT=es vite build",
111
- "build:cjs": "BUILD_FORMAT=cjs vite build",
112
- "build:umd": "BUILD_FORMAT=umd vite build",
113
- "build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs",
114
- "build:all": "pnpm run build && pnpm run cli:build",
115
- "release": "pnpm publish --access public",
116
- "release:canary": "pnpm run prepublishOnly && pnpm publish --tag canary --access public",
117
- "version:canary": "pnpm version prerelease --preid canary --no-git-tag-version",
118
- "publish:canary": "pnpm run version:canary && pnpm run release:canary",
119
- "lint": "eslint .",
120
- "lint:fix": "eslint . --fix",
121
- "typecheck": "tsc --noEmit",
122
- "cli:build": "cd cli && pnpm install && pnpm build",
123
- "cli": "tsx cli/scripts/run-cli.ts",
124
- "cli:dev": "cd cli && pnpm dev",
125
- "example:mcp-filesystem": "tsx examples/mcp-filesystem-demo.ts",
126
- "example:mcp-multi": "tsx examples/mcp-multi-server-demo.ts",
127
- "postinstall": "cd cli && pnpm install --silent 2>/dev/null || true"
132
+ "packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912",
133
+ "pnpm": {
134
+ "overrides": {
135
+ "@hashgraph/sdk": "2.72.0",
136
+ "use-sync-external-store": "1.5.0"
137
+ }
128
138
  }
129
- }
139
+ }
package/src/index.ts CHANGED
@@ -2,6 +2,7 @@ export { HCS10Plugin } from './plugins/hcs-10/HCS10Plugin';
2
2
  export { HCS2Plugin } from './plugins/hcs-2/HCS2Plugin';
3
3
  export { InscribePlugin } from './plugins/inscribe/InscribePlugin';
4
4
  export { HbarPlugin } from './plugins/hbar/HbarPlugin';
5
+ export { SwarmPlugin, type SwarmConfig } from './plugins/community/swarm';
5
6
  export { HCS10Plugin as OpenConvAIPlugin } from './plugins/hcs-10/HCS10Plugin';
6
7
  export { ConversationalAgent } from './conversational-agent';
7
8
  export type { ConversationalAgentOptions } from './conversational-agent';