@compose-market/theme 0.0.3 → 0.0.4

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 (571) hide show
  1. package/dist/css/index.css +1 -0
  2. package/dist/css/index.d.ts +1 -1
  3. package/dist/css/index.d.ts.map +1 -1
  4. package/dist/css/index.js +1 -0
  5. package/dist/css/index.js.map +1 -1
  6. package/dist/css/shell.css +414 -0
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +1 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/shell/index.d.ts +67 -0
  12. package/dist/shell/index.d.ts.map +1 -0
  13. package/dist/shell/index.js +45 -0
  14. package/dist/shell/index.js.map +1 -0
  15. package/dist/shell/styles.d.ts +2 -0
  16. package/dist/shell/styles.d.ts.map +1 -0
  17. package/dist/shell/styles.js +416 -0
  18. package/dist/shell/styles.js.map +1 -0
  19. package/package.json +13 -2
  20. package/dist/components/RFAComponent.d.ts +0 -10
  21. package/dist/components/RFAComponent.d.ts.map +0 -1
  22. package/dist/components/RFAComponent.js +0 -288
  23. package/dist/components/RFAComponent.js.map +0 -1
  24. package/dist/components/RFADetails.d.ts +0 -9
  25. package/dist/components/RFADetails.d.ts.map +0 -1
  26. package/dist/components/RFADetails.js +0 -407
  27. package/dist/components/RFADetails.js.map +0 -1
  28. package/dist/components/agent-card.d.ts +0 -8
  29. package/dist/components/agent-card.d.ts.map +0 -1
  30. package/dist/components/agent-card.js +0 -216
  31. package/dist/components/agent-card.js.map +0 -1
  32. package/dist/components/backpack.d.ts +0 -21
  33. package/dist/components/backpack.d.ts.map +0 -1
  34. package/dist/components/backpack.js +0 -905
  35. package/dist/components/backpack.js.map +0 -1
  36. package/dist/components/blur.d.ts +0 -9
  37. package/dist/components/blur.d.ts.map +0 -1
  38. package/dist/components/blur.js +0 -60
  39. package/dist/components/blur.js.map +0 -1
  40. package/dist/components/brand/Logo.d.ts +0 -25
  41. package/dist/components/brand/Logo.d.ts.map +0 -1
  42. package/dist/components/brand/Logo.js +0 -53
  43. package/dist/components/brand/Logo.js.map +0 -1
  44. package/dist/components/brand/index.d.ts +0 -2
  45. package/dist/components/brand/index.d.ts.map +0 -1
  46. package/dist/components/brand/index.js +0 -2
  47. package/dist/components/brand/index.js.map +0 -1
  48. package/dist/components/chat.d.ts +0 -68
  49. package/dist/components/chat.d.ts.map +0 -1
  50. package/dist/components/chat.js +0 -618
  51. package/dist/components/chat.js.map +0 -1
  52. package/dist/components/compose/index.d.ts +0 -10
  53. package/dist/components/compose/index.d.ts.map +0 -1
  54. package/dist/components/compose/index.js +0 -13
  55. package/dist/components/compose/index.js.map +0 -1
  56. package/dist/components/compose/nodes/agent-node.d.ts +0 -11
  57. package/dist/components/compose/nodes/agent-node.d.ts.map +0 -1
  58. package/dist/components/compose/nodes/agent-node.js +0 -101
  59. package/dist/components/compose/nodes/agent-node.js.map +0 -1
  60. package/dist/components/compose/nodes/hook-node.d.ts +0 -11
  61. package/dist/components/compose/nodes/hook-node.d.ts.map +0 -1
  62. package/dist/components/compose/nodes/hook-node.js +0 -100
  63. package/dist/components/compose/nodes/hook-node.js.map +0 -1
  64. package/dist/components/compose/nodes/index.d.ts +0 -60
  65. package/dist/components/compose/nodes/index.d.ts.map +0 -1
  66. package/dist/components/compose/nodes/index.js +0 -22
  67. package/dist/components/compose/nodes/index.js.map +0 -1
  68. package/dist/components/compose/nodes/step-node.d.ts +0 -11
  69. package/dist/components/compose/nodes/step-node.d.ts.map +0 -1
  70. package/dist/components/compose/nodes/step-node.js +0 -88
  71. package/dist/components/compose/nodes/step-node.js.map +0 -1
  72. package/dist/components/compose/nodes/trigger-node.d.ts +0 -11
  73. package/dist/components/compose/nodes/trigger-node.d.ts.map +0 -1
  74. package/dist/components/compose/nodes/trigger-node.js +0 -92
  75. package/dist/components/compose/nodes/trigger-node.js.map +0 -1
  76. package/dist/components/compose/overlay.d.ts +0 -26
  77. package/dist/components/compose/overlay.d.ts.map +0 -1
  78. package/dist/components/compose/overlay.js +0 -48
  79. package/dist/components/compose/overlay.js.map +0 -1
  80. package/dist/components/compose/pickers/agents-picker.d.ts +0 -18
  81. package/dist/components/compose/pickers/agents-picker.d.ts.map +0 -1
  82. package/dist/components/compose/pickers/agents-picker.js +0 -180
  83. package/dist/components/compose/pickers/agents-picker.js.map +0 -1
  84. package/dist/components/compose/pickers/connector-detail.d.ts +0 -16
  85. package/dist/components/compose/pickers/connector-detail.d.ts.map +0 -1
  86. package/dist/components/compose/pickers/connector-detail.js +0 -236
  87. package/dist/components/compose/pickers/connector-detail.js.map +0 -1
  88. package/dist/components/compose/pickers/connector-picker.d.ts +0 -13
  89. package/dist/components/compose/pickers/connector-picker.d.ts.map +0 -1
  90. package/dist/components/compose/pickers/connector-picker.js +0 -101
  91. package/dist/components/compose/pickers/connector-picker.js.map +0 -1
  92. package/dist/components/compose/pickers/index.d.ts +0 -10
  93. package/dist/components/compose/pickers/index.d.ts.map +0 -1
  94. package/dist/components/compose/pickers/index.js +0 -10
  95. package/dist/components/compose/pickers/index.js.map +0 -1
  96. package/dist/components/compose/pickers/trigger-picker.d.ts +0 -13
  97. package/dist/components/compose/pickers/trigger-picker.d.ts.map +0 -1
  98. package/dist/components/compose/pickers/trigger-picker.js +0 -110
  99. package/dist/components/compose/pickers/trigger-picker.js.map +0 -1
  100. package/dist/components/compose/toolbox.d.ts +0 -24
  101. package/dist/components/compose/toolbox.d.ts.map +0 -1
  102. package/dist/components/compose/toolbox.js +0 -183
  103. package/dist/components/compose/toolbox.js.map +0 -1
  104. package/dist/components/connector.d.ts +0 -24
  105. package/dist/components/connector.d.ts.map +0 -1
  106. package/dist/components/connector.js +0 -263
  107. package/dist/components/connector.js.map +0 -1
  108. package/dist/components/dispenser.d.ts +0 -15
  109. package/dist/components/dispenser.d.ts.map +0 -1
  110. package/dist/components/dispenser.js +0 -323
  111. package/dist/components/dispenser.js.map +0 -1
  112. package/dist/components/layout/AppLayout.d.ts +0 -60
  113. package/dist/components/layout/AppLayout.d.ts.map +0 -1
  114. package/dist/components/layout/AppLayout.js +0 -265
  115. package/dist/components/layout/AppLayout.js.map +0 -1
  116. package/dist/components/layout/Layout.d.ts +0 -6
  117. package/dist/components/layout/Layout.d.ts.map +0 -1
  118. package/dist/components/layout/Layout.js +0 -186
  119. package/dist/components/layout/Layout.js.map +0 -1
  120. package/dist/components/layout/Sidebar.d.ts +0 -3
  121. package/dist/components/layout/Sidebar.d.ts.map +0 -1
  122. package/dist/components/layout/Sidebar.js +0 -160
  123. package/dist/components/layout/Sidebar.js.map +0 -1
  124. package/dist/components/layout/TopBar.d.ts +0 -6
  125. package/dist/components/layout/TopBar.d.ts.map +0 -1
  126. package/dist/components/layout/TopBar.js +0 -36
  127. package/dist/components/layout/TopBar.js.map +0 -1
  128. package/dist/components/layout/index.d.ts +0 -2
  129. package/dist/components/layout/index.d.ts.map +0 -1
  130. package/dist/components/layout/index.js +0 -2
  131. package/dist/components/layout/index.js.map +0 -1
  132. package/dist/components/lyria-player.d.ts +0 -23
  133. package/dist/components/lyria-player.d.ts.map +0 -1
  134. package/dist/components/lyria-player.js +0 -241
  135. package/dist/components/lyria-player.js.map +0 -1
  136. package/dist/components/manowar-card.d.ts +0 -8
  137. package/dist/components/manowar-card.d.ts.map +0 -1
  138. package/dist/components/manowar-card.js +0 -349
  139. package/dist/components/manowar-card.js.map +0 -1
  140. package/dist/components/mirror-pane.d.ts +0 -55
  141. package/dist/components/mirror-pane.d.ts.map +0 -1
  142. package/dist/components/mirror-pane.js +0 -330
  143. package/dist/components/mirror-pane.js.map +0 -1
  144. package/dist/components/model-selector.d.ts +0 -12
  145. package/dist/components/model-selector.d.ts.map +0 -1
  146. package/dist/components/model-selector.js +0 -148
  147. package/dist/components/model-selector.js.map +0 -1
  148. package/dist/components/output.d.ts +0 -26
  149. package/dist/components/output.d.ts.map +0 -1
  150. package/dist/components/output.js +0 -259
  151. package/dist/components/output.js.map +0 -1
  152. package/dist/components/partners.d.ts +0 -13
  153. package/dist/components/partners.d.ts.map +0 -1
  154. package/dist/components/partners.js +0 -210
  155. package/dist/components/partners.js.map +0 -1
  156. package/dist/components/plugin-tester.d.ts +0 -13
  157. package/dist/components/plugin-tester.d.ts.map +0 -1
  158. package/dist/components/plugin-tester.js +0 -907
  159. package/dist/components/plugin-tester.js.map +0 -1
  160. package/dist/components/session/SessionComponents.d.ts +0 -2
  161. package/dist/components/session/SessionComponents.d.ts.map +0 -1
  162. package/dist/components/session/SessionComponents.js +0 -2
  163. package/dist/components/session/SessionComponents.js.map +0 -1
  164. package/dist/components/session/index.d.ts +0 -2
  165. package/dist/components/session/index.d.ts.map +0 -1
  166. package/dist/components/session/index.js +0 -2
  167. package/dist/components/session/index.js.map +0 -1
  168. package/dist/components/session.d.ts +0 -58
  169. package/dist/components/session.d.ts.map +0 -1
  170. package/dist/components/session.js +0 -580
  171. package/dist/components/session.js.map +0 -1
  172. package/dist/components/share-dialog.d.ts +0 -9
  173. package/dist/components/share-dialog.d.ts.map +0 -1
  174. package/dist/components/share-dialog.js +0 -49
  175. package/dist/components/share-dialog.js.map +0 -1
  176. package/dist/components/ui/accordion.d.ts +0 -6
  177. package/dist/components/ui/accordion.d.ts.map +0 -1
  178. package/dist/components/ui/accordion.js +0 -20
  179. package/dist/components/ui/accordion.js.map +0 -1
  180. package/dist/components/ui/alert-dialog.d.ts +0 -20
  181. package/dist/components/ui/alert-dialog.d.ts.map +0 -1
  182. package/dist/components/ui/alert-dialog.js +0 -29
  183. package/dist/components/ui/alert-dialog.js.map +0 -1
  184. package/dist/components/ui/alert.d.ts +0 -5
  185. package/dist/components/ui/alert.d.ts.map +0 -1
  186. package/dist/components/ui/alert.js +0 -22
  187. package/dist/components/ui/alert.js.map +0 -1
  188. package/dist/components/ui/aspect-ratio.d.ts +0 -3
  189. package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
  190. package/dist/components/ui/aspect-ratio.js +0 -4
  191. package/dist/components/ui/aspect-ratio.js.map +0 -1
  192. package/dist/components/ui/avatar.d.ts +0 -5
  193. package/dist/components/ui/avatar.d.ts.map +0 -1
  194. package/dist/components/ui/avatar.js +0 -12
  195. package/dist/components/ui/avatar.js.map +0 -1
  196. package/dist/components/ui/badge.d.ts +0 -8
  197. package/dist/components/ui/badge.d.ts.map +0 -1
  198. package/dist/components/ui/badge.js +0 -24
  199. package/dist/components/ui/badge.js.map +0 -1
  200. package/dist/components/ui/breadcrumb.d.ts +0 -16
  201. package/dist/components/ui/breadcrumb.d.ts.map +0 -1
  202. package/dist/components/ui/breadcrumb.js +0 -28
  203. package/dist/components/ui/breadcrumb.js.map +0 -1
  204. package/dist/components/ui/button-group.d.ts +0 -10
  205. package/dist/components/ui/button-group.d.ts.map +0 -1
  206. package/dist/components/ui/button-group.js +0 -27
  207. package/dist/components/ui/button-group.js.map +0 -1
  208. package/dist/components/ui/button.d.ts +0 -11
  209. package/dist/components/ui/button.d.ts.map +0 -1
  210. package/dist/components/ui/button.js +0 -42
  211. package/dist/components/ui/button.js.map +0 -1
  212. package/dist/components/ui/calendar.d.ts +0 -9
  213. package/dist/components/ui/calendar.d.ts.map +0 -1
  214. package/dist/components/ui/calendar.js +0 -78
  215. package/dist/components/ui/calendar.js.map +0 -1
  216. package/dist/components/ui/card.d.ts +0 -8
  217. package/dist/components/ui/card.d.ts.map +0 -1
  218. package/dist/components/ui/card.js +0 -17
  219. package/dist/components/ui/card.js.map +0 -1
  220. package/dist/components/ui/carousel.d.ts +0 -9
  221. package/dist/components/ui/carousel.d.ts.map +0 -1
  222. package/dist/components/ui/carousel.js +0 -110
  223. package/dist/components/ui/carousel.js.map +0 -1
  224. package/dist/components/ui/chart.d.ts +0 -28
  225. package/dist/components/ui/chart.d.ts.map +0 -1
  226. package/dist/components/ui/chart.js +0 -168
  227. package/dist/components/ui/chart.js.map +0 -1
  228. package/dist/components/ui/checkbox.d.ts +0 -3
  229. package/dist/components/ui/checkbox.d.ts.map +0 -1
  230. package/dist/components/ui/checkbox.js +0 -12
  231. package/dist/components/ui/checkbox.js.map +0 -1
  232. package/dist/components/ui/collapsible.d.ts +0 -5
  233. package/dist/components/ui/collapsible.d.ts.map +0 -1
  234. package/dist/components/ui/collapsible.js +0 -7
  235. package/dist/components/ui/collapsible.js.map +0 -1
  236. package/dist/components/ui/command.d.ts +0 -16
  237. package/dist/components/ui/command.d.ts.map +0 -1
  238. package/dist/components/ui/command.js +0 -38
  239. package/dist/components/ui/command.js.map +0 -1
  240. package/dist/components/ui/context-menu.d.ts +0 -21
  241. package/dist/components/ui/context-menu.d.ts.map +0 -1
  242. package/dist/components/ui/context-menu.js +0 -52
  243. package/dist/components/ui/context-menu.js.map +0 -1
  244. package/dist/components/ui/dialog.d.ts +0 -19
  245. package/dist/components/ui/dialog.d.ts.map +0 -1
  246. package/dist/components/ui/dialog.js +0 -31
  247. package/dist/components/ui/dialog.js.map +0 -1
  248. package/dist/components/ui/drawer.d.ts +0 -23
  249. package/dist/components/ui/drawer.d.ts.map +0 -1
  250. package/dist/components/ui/drawer.js +0 -28
  251. package/dist/components/ui/drawer.js.map +0 -1
  252. package/dist/components/ui/dropdown-menu.d.ts +0 -21
  253. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  254. package/dist/components/ui/dropdown-menu.js +0 -55
  255. package/dist/components/ui/dropdown-menu.js.map +0 -1
  256. package/dist/components/ui/empty.d.ts +0 -10
  257. package/dist/components/ui/empty.d.ts.map +0 -1
  258. package/dist/components/ui/empty.js +0 -33
  259. package/dist/components/ui/empty.js.map +0 -1
  260. package/dist/components/ui/field.d.ts +0 -23
  261. package/dist/components/ui/field.d.ts.map +0 -1
  262. package/dist/components/ui/field.js +0 -82
  263. package/dist/components/ui/field.js.map +0 -1
  264. package/dist/components/ui/form.d.ts +0 -11
  265. package/dist/components/ui/form.d.ts.map +0 -1
  266. package/dist/components/ui/form.js +0 -71
  267. package/dist/components/ui/form.js.map +0 -1
  268. package/dist/components/ui/hover-card.d.ts +0 -5
  269. package/dist/components/ui/hover-card.d.ts.map +0 -1
  270. package/dist/components/ui/hover-card.js +0 -9
  271. package/dist/components/ui/hover-card.js.map +0 -1
  272. package/dist/components/ui/index.d.ts +0 -7
  273. package/dist/components/ui/index.d.ts.map +0 -1
  274. package/dist/components/ui/index.js +0 -7
  275. package/dist/components/ui/index.js.map +0 -1
  276. package/dist/components/ui/input-group.d.ts +0 -13
  277. package/dist/components/ui/input-group.d.ts.map +0 -1
  278. package/dist/components/ui/input-group.js +0 -63
  279. package/dist/components/ui/input-group.js.map +0 -1
  280. package/dist/components/ui/input-otp.d.ts +0 -6
  281. package/dist/components/ui/input-otp.d.ts.map +0 -1
  282. package/dist/components/ui/input-otp.js +0 -25
  283. package/dist/components/ui/input-otp.js.map +0 -1
  284. package/dist/components/ui/input.d.ts +0 -3
  285. package/dist/components/ui/input.d.ts.map +0 -1
  286. package/dist/components/ui/input.js +0 -8
  287. package/dist/components/ui/input.js.map +0 -1
  288. package/dist/components/ui/item.d.ts +0 -19
  289. package/dist/components/ui/item.d.ts.map +0 -1
  290. package/dist/components/ui/item.js +0 -67
  291. package/dist/components/ui/item.js.map +0 -1
  292. package/dist/components/ui/kbd.d.ts +0 -4
  293. package/dist/components/ui/kbd.d.ts.map +0 -1
  294. package/dist/components/ui/kbd.js +0 -9
  295. package/dist/components/ui/kbd.js.map +0 -1
  296. package/dist/components/ui/label.d.ts +0 -3
  297. package/dist/components/ui/label.d.ts.map +0 -1
  298. package/dist/components/ui/label.js +0 -10
  299. package/dist/components/ui/label.js.map +0 -1
  300. package/dist/components/ui/menubar.d.ts +0 -23
  301. package/dist/components/ui/menubar.d.ts.map +0 -1
  302. package/dist/components/ui/menubar.js +0 -64
  303. package/dist/components/ui/menubar.js.map +0 -1
  304. package/dist/components/ui/navigation-menu.d.ts +0 -11
  305. package/dist/components/ui/navigation-menu.d.ts.map +0 -1
  306. package/dist/components/ui/navigation-menu.js +0 -34
  307. package/dist/components/ui/navigation-menu.js.map +0 -1
  308. package/dist/components/ui/network-selector.d.ts +0 -22
  309. package/dist/components/ui/network-selector.d.ts.map +0 -1
  310. package/dist/components/ui/network-selector.js +0 -99
  311. package/dist/components/ui/network-selector.js.map +0 -1
  312. package/dist/components/ui/pagination.d.ts +0 -29
  313. package/dist/components/ui/pagination.d.ts.map +0 -1
  314. package/dist/components/ui/pagination.js +0 -32
  315. package/dist/components/ui/pagination.js.map +0 -1
  316. package/dist/components/ui/popover.d.ts +0 -6
  317. package/dist/components/ui/popover.d.ts.map +0 -1
  318. package/dist/components/ui/popover.js +0 -12
  319. package/dist/components/ui/popover.js.map +0 -1
  320. package/dist/components/ui/progress.d.ts +0 -3
  321. package/dist/components/ui/progress.d.ts.map +0 -1
  322. package/dist/components/ui/progress.js +0 -10
  323. package/dist/components/ui/progress.js.map +0 -1
  324. package/dist/components/ui/radio-group.d.ts +0 -4
  325. package/dist/components/ui/radio-group.d.ts.map +0 -1
  326. package/dist/components/ui/radio-group.js +0 -18
  327. package/dist/components/ui/radio-group.js.map +0 -1
  328. package/dist/components/ui/resizable.d.ts +0 -8
  329. package/dist/components/ui/resizable.d.ts.map +0 -1
  330. package/dist/components/ui/resizable.js +0 -13
  331. package/dist/components/ui/resizable.js.map +0 -1
  332. package/dist/components/ui/scroll-area.d.ts +0 -4
  333. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  334. package/dist/components/ui/scroll-area.js +0 -19
  335. package/dist/components/ui/scroll-area.js.map +0 -1
  336. package/dist/components/ui/select.d.ts +0 -12
  337. package/dist/components/ui/select.d.ts.map +0 -1
  338. package/dist/components/ui/select.js +0 -51
  339. package/dist/components/ui/select.js.map +0 -1
  340. package/dist/components/ui/separator.d.ts +0 -3
  341. package/dist/components/ui/separator.d.ts.map +0 -1
  342. package/dist/components/ui/separator.js +0 -7
  343. package/dist/components/ui/separator.js.map +0 -1
  344. package/dist/components/ui/sheet.d.ts +0 -19
  345. package/dist/components/ui/sheet.d.ts.map +0 -1
  346. package/dist/components/ui/sheet.js +0 -46
  347. package/dist/components/ui/sheet.js.map +0 -1
  348. package/dist/components/ui/sidebar.d.ts +0 -58
  349. package/dist/components/ui/sidebar.d.ts.map +0 -1
  350. package/dist/components/ui/sidebar.js +0 -246
  351. package/dist/components/ui/sidebar.js.map +0 -1
  352. package/dist/components/ui/skeleton.d.ts +0 -3
  353. package/dist/components/ui/skeleton.d.ts.map +0 -1
  354. package/dist/components/ui/skeleton.js +0 -6
  355. package/dist/components/ui/skeleton.js.map +0 -1
  356. package/dist/components/ui/slider.d.ts +0 -3
  357. package/dist/components/ui/slider.d.ts.map +0 -1
  358. package/dist/components/ui/slider.js +0 -12
  359. package/dist/components/ui/slider.js.map +0 -1
  360. package/dist/components/ui/sonner.d.ts +0 -5
  361. package/dist/components/ui/sonner.d.ts.map +0 -1
  362. package/dist/components/ui/sonner.js +0 -16
  363. package/dist/components/ui/sonner.js.map +0 -1
  364. package/dist/components/ui/spinner.d.ts +0 -3
  365. package/dist/components/ui/spinner.d.ts.map +0 -1
  366. package/dist/components/ui/spinner.js +0 -7
  367. package/dist/components/ui/spinner.js.map +0 -1
  368. package/dist/components/ui/surface-variant.d.ts +0 -4
  369. package/dist/components/ui/surface-variant.d.ts.map +0 -1
  370. package/dist/components/ui/surface-variant.js +0 -10
  371. package/dist/components/ui/surface-variant.js.map +0 -1
  372. package/dist/components/ui/switch.d.ts +0 -3
  373. package/dist/components/ui/switch.d.ts.map +0 -1
  374. package/dist/components/ui/switch.js +0 -9
  375. package/dist/components/ui/switch.js.map +0 -1
  376. package/dist/components/ui/table.d.ts +0 -10
  377. package/dist/components/ui/table.d.ts.map +0 -1
  378. package/dist/components/ui/table.js +0 -22
  379. package/dist/components/ui/table.js.map +0 -1
  380. package/dist/components/ui/tabs.d.ts +0 -6
  381. package/dist/components/ui/tabs.d.ts.map +0 -1
  382. package/dist/components/ui/tabs.js +0 -13
  383. package/dist/components/ui/tabs.js.map +0 -1
  384. package/dist/components/ui/textarea.d.ts +0 -3
  385. package/dist/components/ui/textarea.d.ts.map +0 -1
  386. package/dist/components/ui/textarea.js +0 -8
  387. package/dist/components/ui/textarea.js.map +0 -1
  388. package/dist/components/ui/toast.d.ts +0 -12
  389. package/dist/components/ui/toast.d.ts.map +0 -1
  390. package/dist/components/ui/toast.js +0 -35
  391. package/dist/components/ui/toast.js.map +0 -1
  392. package/dist/components/ui/toaster.d.ts +0 -2
  393. package/dist/components/ui/toaster.d.ts.map +0 -1
  394. package/dist/components/ui/toaster.js +0 -19
  395. package/dist/components/ui/toaster.js.map +0 -1
  396. package/dist/components/ui/toggle-group.d.ts +0 -4
  397. package/dist/components/ui/toggle-group.d.ts.map +0 -1
  398. package/dist/components/ui/toggle-group.js +0 -27
  399. package/dist/components/ui/toggle-group.js.map +0 -1
  400. package/dist/components/ui/toggle.d.ts +0 -4
  401. package/dist/components/ui/toggle.d.ts.map +0 -1
  402. package/dist/components/ui/toggle.js +0 -25
  403. package/dist/components/ui/toggle.js.map +0 -1
  404. package/dist/components/ui/tooltip.d.ts +0 -6
  405. package/dist/components/ui/tooltip.d.ts.map +0 -1
  406. package/dist/components/ui/tooltip.js +0 -13
  407. package/dist/components/ui/tooltip.js.map +0 -1
  408. package/dist/components/visual/ManowarField.d.ts +0 -9
  409. package/dist/components/visual/ManowarField.d.ts.map +0 -1
  410. package/dist/components/visual/ManowarField.js +0 -111
  411. package/dist/components/visual/ManowarField.js.map +0 -1
  412. package/dist/components/warp-form.d.ts +0 -22
  413. package/dist/components/warp-form.d.ts.map +0 -1
  414. package/dist/components/warp-form.js +0 -743
  415. package/dist/components/warp-form.js.map +0 -1
  416. package/dist/hooks/use-agents.d.ts +0 -17
  417. package/dist/hooks/use-agents.d.ts.map +0 -1
  418. package/dist/hooks/use-agents.js +0 -64
  419. package/dist/hooks/use-agents.js.map +0 -1
  420. package/dist/hooks/use-api.d.ts +0 -28
  421. package/dist/hooks/use-api.d.ts.map +0 -1
  422. package/dist/hooks/use-api.js +0 -114
  423. package/dist/hooks/use-api.js.map +0 -1
  424. package/dist/hooks/use-chat.d.ts +0 -64
  425. package/dist/hooks/use-chat.d.ts.map +0 -1
  426. package/dist/hooks/use-chat.js +0 -350
  427. package/dist/hooks/use-chat.js.map +0 -1
  428. package/dist/hooks/use-coordinator.d.ts +0 -41
  429. package/dist/hooks/use-coordinator.d.ts.map +0 -1
  430. package/dist/hooks/use-coordinator.js +0 -110
  431. package/dist/hooks/use-coordinator.js.map +0 -1
  432. package/dist/hooks/use-dispenser.d.ts +0 -68
  433. package/dist/hooks/use-dispenser.d.ts.map +0 -1
  434. package/dist/hooks/use-dispenser.js +0 -113
  435. package/dist/hooks/use-dispenser.js.map +0 -1
  436. package/dist/hooks/use-lyria.d.ts +0 -58
  437. package/dist/hooks/use-lyria.d.ts.map +0 -1
  438. package/dist/hooks/use-lyria.js +0 -254
  439. package/dist/hooks/use-lyria.js.map +0 -1
  440. package/dist/hooks/use-mobile.d.ts +0 -2
  441. package/dist/hooks/use-mobile.d.ts.map +0 -1
  442. package/dist/hooks/use-mobile.js +0 -16
  443. package/dist/hooks/use-mobile.js.map +0 -1
  444. package/dist/hooks/use-model.d.ts +0 -34
  445. package/dist/hooks/use-model.d.ts.map +0 -1
  446. package/dist/hooks/use-model.js +0 -105
  447. package/dist/hooks/use-model.js.map +0 -1
  448. package/dist/hooks/use-motion-governor.d.ts +0 -10
  449. package/dist/hooks/use-motion-governor.d.ts.map +0 -1
  450. package/dist/hooks/use-motion-governor.js +0 -63
  451. package/dist/hooks/use-motion-governor.js.map +0 -1
  452. package/dist/hooks/use-multichain.d.ts +0 -34
  453. package/dist/hooks/use-multichain.d.ts.map +0 -1
  454. package/dist/hooks/use-multichain.js +0 -120
  455. package/dist/hooks/use-multichain.js.map +0 -1
  456. package/dist/hooks/use-onchain.d.ts +0 -145
  457. package/dist/hooks/use-onchain.d.ts.map +0 -1
  458. package/dist/hooks/use-onchain.js +0 -652
  459. package/dist/hooks/use-onchain.js.map +0 -1
  460. package/dist/hooks/use-registry.d.ts +0 -140
  461. package/dist/hooks/use-registry.d.ts.map +0 -1
  462. package/dist/hooks/use-registry.js +0 -264
  463. package/dist/hooks/use-registry.js.map +0 -1
  464. package/dist/hooks/use-services.d.ts +0 -66
  465. package/dist/hooks/use-services.d.ts.map +0 -1
  466. package/dist/hooks/use-services.js +0 -216
  467. package/dist/hooks/use-services.js.map +0 -1
  468. package/dist/hooks/use-session.d.ts +0 -36
  469. package/dist/hooks/use-session.d.ts.map +0 -1
  470. package/dist/hooks/use-session.js +0 -449
  471. package/dist/hooks/use-session.js.map +0 -1
  472. package/dist/hooks/use-sse.d.ts +0 -8
  473. package/dist/hooks/use-sse.d.ts.map +0 -1
  474. package/dist/hooks/use-sse.js +0 -86
  475. package/dist/hooks/use-sse.js.map +0 -1
  476. package/dist/hooks/use-tabs.d.ts +0 -2
  477. package/dist/hooks/use-tabs.d.ts.map +0 -1
  478. package/dist/hooks/use-tabs.js +0 -43
  479. package/dist/hooks/use-tabs.js.map +0 -1
  480. package/dist/hooks/use-toast.d.ts +0 -41
  481. package/dist/hooks/use-toast.d.ts.map +0 -1
  482. package/dist/hooks/use-toast.js +0 -127
  483. package/dist/hooks/use-toast.js.map +0 -1
  484. package/dist/hooks/use-triggers.d.ts +0 -51
  485. package/dist/hooks/use-triggers.d.ts.map +0 -1
  486. package/dist/hooks/use-triggers.js +0 -212
  487. package/dist/hooks/use-triggers.js.map +0 -1
  488. package/dist/hooks/use-warp.d.ts +0 -53
  489. package/dist/hooks/use-warp.d.ts.map +0 -1
  490. package/dist/hooks/use-warp.js +0 -231
  491. package/dist/hooks/use-warp.js.map +0 -1
  492. package/dist/hooks/use-workflow.d.ts +0 -40
  493. package/dist/hooks/use-workflow.d.ts.map +0 -1
  494. package/dist/hooks/use-workflow.js +0 -358
  495. package/dist/hooks/use-workflow.js.map +0 -1
  496. package/dist/lib/agents.d.ts +0 -186
  497. package/dist/lib/agents.d.ts.map +0 -1
  498. package/dist/lib/agents.js +0 -633
  499. package/dist/lib/agents.js.map +0 -1
  500. package/dist/lib/api.d.ts +0 -224
  501. package/dist/lib/api.d.ts.map +0 -1
  502. package/dist/lib/api.js +0 -443
  503. package/dist/lib/api.js.map +0 -1
  504. package/dist/lib/chains.d.ts +0 -151
  505. package/dist/lib/chains.d.ts.map +0 -1
  506. package/dist/lib/chains.js +0 -297
  507. package/dist/lib/chains.js.map +0 -1
  508. package/dist/lib/contracts.d.ts +0 -960
  509. package/dist/lib/contracts.d.ts.map +0 -1
  510. package/dist/lib/contracts.js +0 -716
  511. package/dist/lib/contracts.js.map +0 -1
  512. package/dist/lib/cronos/aa.d.ts +0 -111
  513. package/dist/lib/cronos/aa.d.ts.map +0 -1
  514. package/dist/lib/cronos/aa.js +0 -312
  515. package/dist/lib/cronos/aa.js.map +0 -1
  516. package/dist/lib/cronos/facilitator.d.ts +0 -87
  517. package/dist/lib/cronos/facilitator.d.ts.map +0 -1
  518. package/dist/lib/cronos/facilitator.js +0 -183
  519. package/dist/lib/cronos/facilitator.js.map +0 -1
  520. package/dist/lib/evm.d.ts +0 -45
  521. package/dist/lib/evm.d.ts.map +0 -1
  522. package/dist/lib/evm.js +0 -78
  523. package/dist/lib/evm.js.map +0 -1
  524. package/dist/lib/mockData.d.ts +0 -26
  525. package/dist/lib/mockData.d.ts.map +0 -1
  526. package/dist/lib/mockData.js +0 -89
  527. package/dist/lib/mockData.js.map +0 -1
  528. package/dist/lib/models.d.ts +0 -122
  529. package/dist/lib/models.d.ts.map +0 -1
  530. package/dist/lib/models.js +0 -174
  531. package/dist/lib/models.js.map +0 -1
  532. package/dist/lib/multimodal.d.ts +0 -53
  533. package/dist/lib/multimodal.d.ts.map +0 -1
  534. package/dist/lib/multimodal.js +0 -204
  535. package/dist/lib/multimodal.js.map +0 -1
  536. package/dist/lib/payment.d.ts +0 -67
  537. package/dist/lib/payment.d.ts.map +0 -1
  538. package/dist/lib/payment.js +0 -236
  539. package/dist/lib/payment.js.map +0 -1
  540. package/dist/lib/pinata.d.ts +0 -140
  541. package/dist/lib/pinata.d.ts.map +0 -1
  542. package/dist/lib/pinata.js +0 -209
  543. package/dist/lib/pinata.js.map +0 -1
  544. package/dist/lib/queryClient.d.ts +0 -9
  545. package/dist/lib/queryClient.d.ts.map +0 -1
  546. package/dist/lib/queryClient.js +0 -42
  547. package/dist/lib/queryClient.js.map +0 -1
  548. package/dist/lib/services.d.ts +0 -164
  549. package/dist/lib/services.d.ts.map +0 -1
  550. package/dist/lib/services.js +0 -304
  551. package/dist/lib/services.js.map +0 -1
  552. package/dist/lib/share.d.ts +0 -12
  553. package/dist/lib/share.d.ts.map +0 -1
  554. package/dist/lib/share.js +0 -39
  555. package/dist/lib/share.js.map +0 -1
  556. package/dist/lib/triggers.d.ts +0 -128
  557. package/dist/lib/triggers.d.ts.map +0 -1
  558. package/dist/lib/triggers.js +0 -305
  559. package/dist/lib/triggers.js.map +0 -1
  560. package/dist/lib/utils.d.ts +0 -3
  561. package/dist/lib/utils.d.ts.map +0 -1
  562. package/dist/lib/utils.js +0 -6
  563. package/dist/lib/utils.js.map +0 -1
  564. package/dist/lib/visual-system.d.ts +0 -39
  565. package/dist/lib/visual-system.d.ts.map +0 -1
  566. package/dist/lib/visual-system.js +0 -129
  567. package/dist/lib/visual-system.js.map +0 -1
  568. package/dist/utils/index.d.ts +0 -2
  569. package/dist/utils/index.d.ts.map +0 -1
  570. package/dist/utils/index.js +0 -2
  571. package/dist/utils/index.js.map +0 -1
@@ -1,716 +0,0 @@
1
- /**
2
- * Manowar Protocol Contract Configuration
3
- * Multi-chain support with Cronos Testnet as default
4
- *
5
- * Contract addresses are defined in chains.ts (single source of truth)
6
- */
7
- import { getContract } from "thirdweb";
8
- import { thirdwebClient, paymentChain, CHAIN_OBJECTS, CONTRACT_ADDRESSES, getContractAddress, getContractAddressForChain, } from "./chains";
9
- import { keccak256, encodePacked } from "viem";
10
- // Re-export from chains.ts for backwards compatibility
11
- export { CONTRACT_ADDRESSES, getContractAddress, getContractAddressForChain };
12
- // =============================================================================
13
- // ABIs (Minimal - only functions we need on frontend)
14
- // =============================================================================
15
- export const AgentFactoryABI = [
16
- // Read functions
17
- {
18
- name: "getAgentData",
19
- type: "function",
20
- stateMutability: "view",
21
- inputs: [{ name: "agentId", type: "uint256" }],
22
- outputs: [{
23
- name: "data",
24
- type: "tuple",
25
- components: [
26
- { name: "dnaHash", type: "bytes32" },
27
- { name: "licenses", type: "uint256" },
28
- { name: "licensesMinted", type: "uint256" },
29
- { name: "licensePrice", type: "uint256" },
30
- { name: "creator", type: "address" },
31
- { name: "cloneable", type: "bool" },
32
- { name: "isClone", type: "bool" },
33
- { name: "parentAgentId", type: "uint256" },
34
- { name: "agentCardUri", type: "string" },
35
- ],
36
- }],
37
- },
38
- {
39
- name: "totalAgents",
40
- type: "function",
41
- stateMutability: "view",
42
- inputs: [],
43
- outputs: [{ name: "total", type: "uint256" }],
44
- },
45
- {
46
- name: "hasAvailableLicenses",
47
- type: "function",
48
- stateMutability: "view",
49
- inputs: [{ name: "agentId", type: "uint256" }],
50
- outputs: [{ name: "available", type: "bool" }],
51
- },
52
- {
53
- name: "getDnaHash",
54
- type: "function",
55
- stateMutability: "view",
56
- inputs: [{ name: "agentId", type: "uint256" }],
57
- outputs: [{ name: "dnaHash", type: "bytes32" }],
58
- },
59
- {
60
- name: "ownerOf",
61
- type: "function",
62
- stateMutability: "view",
63
- inputs: [{ name: "tokenId", type: "uint256" }],
64
- outputs: [{ name: "owner", type: "address" }],
65
- },
66
- {
67
- name: "tokenURI",
68
- type: "function",
69
- stateMutability: "view",
70
- inputs: [{ name: "tokenId", type: "uint256" }],
71
- outputs: [{ name: "uri", type: "string" }],
72
- },
73
- {
74
- name: "isLicensedTo",
75
- type: "function",
76
- stateMutability: "view",
77
- inputs: [
78
- { name: "agentId", type: "uint256" },
79
- { name: "manowarContract", type: "address" },
80
- { name: "manowarId", type: "uint256" },
81
- ],
82
- outputs: [{ name: "licensed", type: "bool" }],
83
- },
84
- {
85
- name: "getLicenseRecords",
86
- type: "function",
87
- stateMutability: "view",
88
- inputs: [{ name: "agentId", type: "uint256" }],
89
- outputs: [{
90
- name: "records",
91
- type: "tuple[]",
92
- components: [
93
- { name: "manowarContract", type: "address" },
94
- { name: "manowarId", type: "uint256" },
95
- { name: "licensedAt", type: "uint256" },
96
- ],
97
- }],
98
- },
99
- {
100
- name: "agentExists",
101
- type: "function",
102
- stateMutability: "view",
103
- inputs: [{ name: "agentId", type: "uint256" }],
104
- outputs: [{ name: "exists", type: "bool" }],
105
- },
106
- // Write functions
107
- {
108
- name: "mintAgent",
109
- type: "function",
110
- stateMutability: "nonpayable",
111
- inputs: [
112
- { name: "dnaHash", type: "bytes32" },
113
- { name: "licenses", type: "uint256" },
114
- { name: "licensePrice", type: "uint256" },
115
- { name: "cloneable", type: "bool" },
116
- { name: "agentCardUri", type: "string" },
117
- ],
118
- outputs: [{ name: "agentId", type: "uint256" }],
119
- },
120
- {
121
- name: "updatePrice",
122
- type: "function",
123
- stateMutability: "nonpayable",
124
- inputs: [
125
- { name: "agentId", type: "uint256" },
126
- { name: "newPrice", type: "uint256" },
127
- ],
128
- outputs: [],
129
- },
130
- // Events
131
- {
132
- name: "AgentMinted",
133
- type: "event",
134
- inputs: [
135
- { name: "agentId", type: "uint256", indexed: true },
136
- { name: "creator", type: "address", indexed: true },
137
- { name: "dnaHash", type: "bytes32", indexed: false },
138
- { name: "licenses", type: "uint256", indexed: false },
139
- { name: "licensePrice", type: "uint256", indexed: false },
140
- { name: "cloneable", type: "bool", indexed: false },
141
- ],
142
- },
143
- {
144
- name: "AgentLicensed",
145
- type: "event",
146
- inputs: [
147
- { name: "agentId", type: "uint256", indexed: true },
148
- { name: "manowarContract", type: "address", indexed: true },
149
- { name: "manowarId", type: "uint256", indexed: true },
150
- { name: "licenseNumber", type: "uint256", indexed: false },
151
- ],
152
- },
153
- ];
154
- export const ManowarABI = [
155
- // Read functions
156
- {
157
- name: "getManowarData",
158
- type: "function",
159
- stateMutability: "view",
160
- inputs: [{ name: "manowarId", type: "uint256" }],
161
- outputs: [{
162
- name: "data",
163
- type: "tuple",
164
- components: [
165
- { name: "title", type: "string" },
166
- { name: "description", type: "string" },
167
- { name: "banner", type: "string" },
168
- { name: "manowarCardUri", type: "string" },
169
- { name: "totalPrice", type: "uint256" },
170
- { name: "units", type: "uint256" },
171
- { name: "unitsMinted", type: "uint256" },
172
- { name: "creator", type: "address" },
173
- { name: "leaseEnabled", type: "bool" },
174
- { name: "leaseDuration", type: "uint256" },
175
- { name: "leasePercent", type: "uint8" },
176
- { name: "hasCoordinator", type: "bool" },
177
- { name: "coordinatorModel", type: "string" },
178
- { name: "hasActiveRfa", type: "bool" },
179
- { name: "rfaId", type: "uint256" },
180
- ],
181
- }],
182
- },
183
- {
184
- name: "totalManowars",
185
- type: "function",
186
- stateMutability: "view",
187
- inputs: [],
188
- outputs: [{ name: "total", type: "uint256" }],
189
- },
190
- {
191
- name: "tokenURI",
192
- type: "function",
193
- stateMutability: "view",
194
- inputs: [{ name: "tokenId", type: "uint256" }],
195
- outputs: [{ name: "uri", type: "string" }],
196
- },
197
- {
198
- name: "getAgents",
199
- type: "function",
200
- stateMutability: "view",
201
- inputs: [{ name: "manowarId", type: "uint256" }],
202
- outputs: [{ name: "agentIds", type: "uint256[]" }],
203
- },
204
- {
205
- name: "getAgentCount",
206
- type: "function",
207
- stateMutability: "view",
208
- inputs: [{ name: "manowarId", type: "uint256" }],
209
- outputs: [{ name: "count", type: "uint256" }],
210
- },
211
- {
212
- name: "isComplete",
213
- type: "function",
214
- stateMutability: "view",
215
- inputs: [{ name: "manowarId", type: "uint256" }],
216
- outputs: [{ name: "complete", type: "bool" }],
217
- },
218
- {
219
- name: "getCompleteManowars",
220
- type: "function",
221
- stateMutability: "view",
222
- inputs: [],
223
- outputs: [{ name: "manowarIds", type: "uint256[]" }],
224
- },
225
- {
226
- name: "getManowarsWithRFA",
227
- type: "function",
228
- stateMutability: "view",
229
- inputs: [],
230
- outputs: [{ name: "manowarIds", type: "uint256[]" }],
231
- },
232
- {
233
- name: "getManowarsByCreator",
234
- type: "function",
235
- stateMutability: "view",
236
- inputs: [{ name: "creator", type: "address" }],
237
- outputs: [{ name: "manowarIds", type: "uint256[]" }],
238
- },
239
- {
240
- name: "calculateTotalPrice",
241
- type: "function",
242
- stateMutability: "view",
243
- inputs: [{ name: "manowarId", type: "uint256" }],
244
- outputs: [{ name: "total", type: "uint256" }],
245
- },
246
- // Write functions
247
- {
248
- name: "mintManowar",
249
- type: "function",
250
- stateMutability: "nonpayable",
251
- inputs: [
252
- {
253
- name: "params",
254
- type: "tuple",
255
- components: [
256
- { name: "title", type: "string" },
257
- { name: "description", type: "string" },
258
- { name: "banner", type: "string" },
259
- { name: "manowarCardUri", type: "string" },
260
- { name: "units", type: "uint256" },
261
- { name: "leaseEnabled", type: "bool" },
262
- { name: "leaseDuration", type: "uint256" },
263
- { name: "leasePercent", type: "uint8" },
264
- { name: "hasCoordinator", type: "bool" },
265
- { name: "coordinatorModel", type: "string" },
266
- ],
267
- },
268
- { name: "agentIds", type: "uint256[]" },
269
- ],
270
- outputs: [{ name: "manowarId", type: "uint256" }],
271
- },
272
- {
273
- name: "addAgent",
274
- type: "function",
275
- stateMutability: "nonpayable",
276
- inputs: [
277
- { name: "manowarId", type: "uint256" },
278
- { name: "agentId", type: "uint256" },
279
- ],
280
- outputs: [],
281
- },
282
- {
283
- name: "setCoordinator",
284
- type: "function",
285
- stateMutability: "nonpayable",
286
- inputs: [
287
- { name: "manowarId", type: "uint256" },
288
- { name: "hasCoordinator", type: "bool" },
289
- { name: "model", type: "string" },
290
- ],
291
- outputs: [],
292
- },
293
- {
294
- name: "updateLeaseSettings",
295
- type: "function",
296
- stateMutability: "nonpayable",
297
- inputs: [
298
- { name: "manowarId", type: "uint256" },
299
- { name: "enabled", type: "bool" },
300
- { name: "duration", type: "uint256" },
301
- { name: "percent", type: "uint8" },
302
- ],
303
- outputs: [],
304
- },
305
- // Events
306
- {
307
- name: "ManowarMinted",
308
- type: "event",
309
- inputs: [
310
- { name: "manowarId", type: "uint256", indexed: true },
311
- { name: "creator", type: "address", indexed: true },
312
- { name: "title", type: "string", indexed: false },
313
- { name: "x402Price", type: "uint256", indexed: false },
314
- { name: "units", type: "uint256", indexed: false },
315
- ],
316
- },
317
- ];
318
- export const CloneABI = [
319
- {
320
- name: "cloneAgent",
321
- type: "function",
322
- stateMutability: "nonpayable",
323
- inputs: [
324
- { name: "originalAgentId", type: "uint256" },
325
- {
326
- name: "params",
327
- type: "tuple",
328
- components: [
329
- { name: "chainId", type: "uint256" },
330
- { name: "licensePrice", type: "uint256" },
331
- { name: "model", type: "string" },
332
- { name: "licenses", type: "uint256" },
333
- ],
334
- },
335
- { name: "newAgentCardUri", type: "string" },
336
- ],
337
- outputs: [{ name: "clonedAgentId", type: "uint256" }],
338
- },
339
- {
340
- name: "canClone",
341
- type: "function",
342
- stateMutability: "view",
343
- inputs: [{ name: "agentId", type: "uint256" }],
344
- outputs: [{ name: "canClone", type: "bool" }],
345
- },
346
- {
347
- name: "getClonesOf",
348
- type: "function",
349
- stateMutability: "view",
350
- inputs: [{ name: "originalAgentId", type: "uint256" }],
351
- outputs: [{ name: "cloneIds", type: "uint256[]" }],
352
- },
353
- ];
354
- export const WarpABI = [
355
- {
356
- name: "warpAgent",
357
- type: "function",
358
- stateMutability: "nonpayable",
359
- inputs: [
360
- { name: "originalAgentHash", type: "bytes32" },
361
- { name: "originalCreator", type: "address" },
362
- { name: "licenses", type: "uint256" },
363
- { name: "licensePrice", type: "uint256" },
364
- { name: "agentCardUri", type: "string" },
365
- ],
366
- outputs: [{ name: "warpedAgentId", type: "uint256" }],
367
- },
368
- {
369
- name: "isWarped",
370
- type: "function",
371
- stateMutability: "view",
372
- inputs: [{ name: "agentId", type: "uint256" }],
373
- outputs: [{ name: "isWarped", type: "bool" }],
374
- },
375
- {
376
- name: "getWarpedData",
377
- type: "function",
378
- stateMutability: "view",
379
- inputs: [{ name: "warpedAgentId", type: "uint256" }],
380
- outputs: [{
381
- name: "data",
382
- type: "tuple",
383
- components: [
384
- { name: "originalCreator", type: "address" },
385
- { name: "warper", type: "address" },
386
- { name: "originalAgentHash", type: "bytes32" },
387
- { name: "royaltyExpiryDate", type: "uint256" },
388
- { name: "royaltiesClaimed", type: "bool" },
389
- { name: "accumulatedRoyalties", type: "uint256" },
390
- ],
391
- }],
392
- },
393
- {
394
- name: "totalWarped",
395
- type: "function",
396
- stateMutability: "view",
397
- inputs: [],
398
- outputs: [{ name: "total", type: "uint256" }],
399
- },
400
- {
401
- name: "getWarpedAgentId",
402
- type: "function",
403
- stateMutability: "view",
404
- inputs: [{ name: "externalHash", type: "bytes32" }],
405
- outputs: [{ name: "warpedAgentId", type: "uint256" }],
406
- },
407
- ];
408
- export const RFAABI = [
409
- {
410
- name: "createRFA",
411
- type: "function",
412
- stateMutability: "nonpayable",
413
- inputs: [
414
- { name: "manowarId", type: "uint256" },
415
- { name: "title", type: "string" },
416
- { name: "description", type: "string" },
417
- { name: "requiredSkills", type: "bytes32[]" },
418
- { name: "offerAmount", type: "uint256" },
419
- ],
420
- outputs: [{ name: "rfaId", type: "uint256" }],
421
- },
422
- {
423
- name: "submitAgent",
424
- type: "function",
425
- stateMutability: "nonpayable",
426
- inputs: [
427
- { name: "rfaId", type: "uint256" },
428
- { name: "agentId", type: "uint256" },
429
- ],
430
- outputs: [],
431
- },
432
- {
433
- name: "acceptAgent",
434
- type: "function",
435
- stateMutability: "nonpayable",
436
- inputs: [
437
- { name: "rfaId", type: "uint256" },
438
- { name: "agentId", type: "uint256" },
439
- ],
440
- outputs: [],
441
- },
442
- {
443
- name: "getRFAData",
444
- type: "function",
445
- stateMutability: "view",
446
- inputs: [{ name: "rfaId", type: "uint256" }],
447
- outputs: [{
448
- name: "data",
449
- type: "tuple",
450
- components: [
451
- { name: "manowarId", type: "uint256" },
452
- { name: "title", type: "string" },
453
- { name: "description", type: "string" },
454
- { name: "requiredSkills", type: "bytes32[]" },
455
- { name: "offerAmount", type: "uint256" },
456
- { name: "publisher", type: "address" },
457
- { name: "createdAt", type: "uint256" },
458
- { name: "status", type: "uint8" },
459
- { name: "fulfilledByAgentId", type: "uint256" },
460
- { name: "agentCreator", type: "address" },
461
- ],
462
- }],
463
- },
464
- {
465
- name: "getOpenRFAs",
466
- type: "function",
467
- stateMutability: "view",
468
- inputs: [],
469
- outputs: [{ name: "rfaIds", type: "uint256[]" }],
470
- },
471
- {
472
- name: "getSubmissions",
473
- type: "function",
474
- stateMutability: "view",
475
- inputs: [{ name: "rfaId", type: "uint256" }],
476
- outputs: [{
477
- name: "submissions",
478
- type: "tuple[]",
479
- components: [
480
- { name: "agentId", type: "uint256" },
481
- { name: "creator", type: "address" },
482
- { name: "submittedAt", type: "uint256" },
483
- ],
484
- }],
485
- },
486
- ];
487
- // =============================================================================
488
- // Contract Instances
489
- // =============================================================================
490
- // Contract getters WITHOUT ABI - allows full function signature strings in readContract/prepareContractCall
491
- // This is required because thirdweb's type system forces method names when ABI is provided,
492
- // but runtime encoding works better with explicit function signatures.
493
- export function getAgentFactoryContract() {
494
- return getContract({
495
- address: getContractAddress("AgentFactory"),
496
- chain: paymentChain,
497
- client: thirdwebClient,
498
- });
499
- }
500
- export function getManowarContract() {
501
- return getContract({
502
- address: getContractAddress("Manowar"),
503
- chain: paymentChain,
504
- client: thirdwebClient,
505
- });
506
- }
507
- export function getCloneContract() {
508
- return getContract({
509
- address: getContractAddress("Clone"),
510
- chain: paymentChain,
511
- client: thirdwebClient,
512
- });
513
- }
514
- export function getWarpContract() {
515
- return getContract({
516
- address: getContractAddress("Warp"),
517
- chain: paymentChain,
518
- client: thirdwebClient,
519
- });
520
- }
521
- export function getRFAContract() {
522
- return getContract({
523
- address: getContractAddress("RFA"),
524
- chain: paymentChain,
525
- client: thirdwebClient,
526
- });
527
- }
528
- // Chain-specific contract getters (for multi-chain fetching)
529
- export function getAgentFactoryContractForChain(chainId) {
530
- const chain = CHAIN_OBJECTS[chainId];
531
- if (!chain)
532
- throw new Error(`Chain ${chainId} not configured`);
533
- return getContract({
534
- address: getContractAddressForChain("AgentFactory", chainId),
535
- chain,
536
- client: thirdwebClient,
537
- });
538
- }
539
- export function getManowarContractForChain(chainId) {
540
- const chain = CHAIN_OBJECTS[chainId];
541
- if (!chain)
542
- throw new Error(`Chain ${chainId} not configured`);
543
- return getContract({
544
- address: getContractAddressForChain("Manowar", chainId),
545
- chain,
546
- client: thirdwebClient,
547
- });
548
- }
549
- export function getWarpContractForChain(chainId) {
550
- const chain = CHAIN_OBJECTS[chainId];
551
- if (!chain)
552
- throw new Error(`Chain ${chainId} not configured`);
553
- return getContract({
554
- address: getContractAddressForChain("Warp", chainId),
555
- chain,
556
- client: thirdwebClient,
557
- });
558
- }
559
- export function getRFAContractForChain(chainId) {
560
- const chain = CHAIN_OBJECTS[chainId];
561
- if (!chain)
562
- throw new Error(`Chain ${chainId} not configured`);
563
- return getContract({
564
- address: getContractAddressForChain("RFA", chainId),
565
- chain,
566
- client: thirdwebClient,
567
- });
568
- }
569
- // =============================================================================
570
- // Helper Functions
571
- // =============================================================================
572
- /**
573
- * Generate DNA hash from agent parameters (matches contract logic)
574
- *
575
- * The dnaHash uniquely identifies an agent and is used to derive its wallet.
576
- * The derivation formula includes timestamp to ensure uniqueness even for identical skills/chain/model.
577
- *
578
- * Formula: keccak256(skills + chainId + model + timestamp)
579
- */
580
- export function computeDnaHash(skills, chainId, model) {
581
- // Sort skills for deterministic hashing
582
- const sortedSkills = [...skills].sort();
583
- const skillsStr = sortedSkills.join(",");
584
- return keccak256(encodePacked(["string", "uint256", "string"], [skillsStr, BigInt(chainId), model]));
585
- }
586
- /**
587
- * Derive agent wallet address from dnaHash + timestamp
588
- *
589
- * - dnaHash = keccak256(skills, chainId, model) - sent to contract
590
- * - timestamp makes each wallet unique even for same skills/chain/model
591
- * - walletAddress is stored in IPFS metadata as single source of truth
592
- *
593
- * Formula: walletAddress = privateKeyToAddress(keccak256(dnaHash + timestamp + ":agent:wallet"))
594
- *
595
- * IMPORTANT: Both frontend (this function) and backend (agent-wallet.ts) use
596
- * the same derivation formula. The walletAddress is stored in IPFS metadata and
597
- * the backend verifies it can derive the same address from dnaHash + walletTimestamp.
598
- */
599
- export function deriveAgentWalletAddress(dnaHash, timestamp) {
600
- // Derive private key from dnaHash + timestamp for uniqueness
601
- const derivationSeed = keccak256(encodePacked(["bytes32", "uint256", "string"], [dnaHash, BigInt(timestamp), ":agent:wallet"]));
602
- // Compute public address from private key
603
- return computeAddressFromPrivateKey(derivationSeed);
604
- }
605
- /**
606
- * Compute Ethereum address from private key
607
- * Uses the standard secp256k1 -> keccak256 -> last 20 bytes flow
608
- */
609
- function computeAddressFromPrivateKey(privateKey) {
610
- // viem's privateKeyToAccount works in browser via noble-curves
611
- // Use dynamic import for code splitting
612
- try {
613
- const { privateKeyToAccount } = require("viem/accounts");
614
- const account = privateKeyToAccount(privateKey);
615
- return account.address;
616
- }
617
- catch {
618
- // Fallback: return a deterministic placeholder based on the private key
619
- // This shouldn't happen in practice as viem works in browser
620
- const fallback = keccak256(privateKey);
621
- return `0x${fallback.slice(26)}`;
622
- }
623
- }
624
- /**
625
- * Convert USDC amount to wei (6 decimals)
626
- */
627
- export function usdcToWei(amount) {
628
- const amountNum = typeof amount === "string" ? parseFloat(amount) : amount;
629
- return BigInt(Math.round(amountNum * 1_000_000));
630
- }
631
- /**
632
- * Convert USDC wei to display amount
633
- */
634
- export function weiToUsdc(wei) {
635
- return (Number(wei) / 1_000_000).toFixed(6);
636
- }
637
- /**
638
- * Format price for display
639
- */
640
- export function formatUsdcPrice(wei) {
641
- const usdc = Number(wei) / 1_000_000;
642
- return usdc < 0.01 ? `$${usdc.toFixed(4)}` : `$${usdc.toFixed(2)}`;
643
- }
644
- /**
645
- * Compute hash for external agent (used as originalAgentHash in Warp contract)
646
- * Creates a unique identifier for an agent from an external registry
647
- */
648
- export function computeExternalAgentHash(registry, address) {
649
- return keccak256(encodePacked(["string", "string"], [registry, address]));
650
- }
651
- /**
652
- * Compute Manowar DNA hash for unique identification
653
- *
654
- * This creates a unique identifier for a manowar workflow based on:
655
- * - The manowar contract address
656
- * - The agent IDs included in the workflow
657
- * - A timestamp (for uniqueness even with same agents)
658
- *
659
- * This hash is stored on-chain and in IPFS metadata at minting time.
660
- * Both frontend and backend fetch it from there - never duplicate derivation.
661
- */
662
- export function computeManowarDnaHash(agentIds, timestamp) {
663
- const manowarContractAddress = getContractAddress("Manowar");
664
- const sortedAgentIds = [...agentIds].sort((a, b) => a - b);
665
- const agentIdsStr = sortedAgentIds.join(",");
666
- return keccak256(encodePacked(["address", "string", "uint256", "string"], [manowarContractAddress, agentIdsStr, BigInt(timestamp), ":manowar:dna"]));
667
- }
668
- /**
669
- * Derive manowar wallet address from DNA hash + timestamp
670
- *
671
- * Similar to agent wallet derivation, this creates a unique wallet address
672
- * for the manowar workflow. This wallet can be used for:
673
- * - Receiving x402 payments
674
- * - Signing workflow-level transactions
675
- * - Unique identification in the system
676
- *
677
- * The wallet address is stored in IPFS metadata as the single source of truth.
678
- */
679
- export function deriveManowarWalletAddress(dnaHash, timestamp) {
680
- const derivationSeed = keccak256(encodePacked(["bytes32", "uint256", "string"], [dnaHash, BigInt(timestamp), ":manowar:wallet"]));
681
- return computeAddressFromPrivateKey(derivationSeed);
682
- }
683
- // =============================================================================
684
- // RFA (Request-For-Agent) Helpers
685
- // =============================================================================
686
- /**
687
- * RFA Categories - based on actual MCP/GOAT registry categories
688
- */
689
- export const RFA_CATEGORIES = [
690
- { id: 'defi', label: 'DeFi', description: 'Trading, swaps, liquidity' },
691
- { id: 'social', label: 'Social', description: 'Discord, Twitter, Telegram' },
692
- { id: 'ai', label: 'AI', description: 'LLM, inference, embeddings' },
693
- { id: 'blockchain', label: 'Blockchain', description: 'Web3, on-chain operations' },
694
- { id: 'storage', label: 'Storage', description: 'IPFS, files' },
695
- { id: 'productivity', label: 'Productivity', description: 'Tasks, automation' },
696
- { id: 'network', label: 'Network', description: 'HTTP, APIs' },
697
- { id: 'utility', label: 'Utility', description: 'General tools' },
698
- ];
699
- /**
700
- * Encode a skill/category string as bytes32 for the RFA contract
701
- * Uses keccak256 hash of the lowercased skill string
702
- */
703
- export function encodeSkillAsBytes32(skill) {
704
- return keccak256(encodePacked(['string'], [skill.toLowerCase()]));
705
- }
706
- /**
707
- * RFA bounty constraints
708
- */
709
- export const RFA_BOUNTY_LIMITS = {
710
- MIN_BOUNTY: 0.10, // $0.10 USDC minimum
711
- MAX_BOUNTY: 1.00, // $1.00 USDC maximum
712
- DEFAULT_BOUNTY: 0.50, // $0.50 USDC default
713
- BASIC_BOUNTY: 0.10, // Basic form completion bounty
714
- README_BONUS_MAX: 0.90, // Maximum README bonus
715
- };
716
- //# sourceMappingURL=contracts.js.map