@compose-market/theme 0.0.3 → 0.0.5

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 (576) hide show
  1. package/dist/css/effects.css +197 -0
  2. package/dist/css/index.css +2 -0
  3. package/dist/css/index.d.ts +1 -1
  4. package/dist/css/index.d.ts.map +1 -1
  5. package/dist/css/index.js +1 -0
  6. package/dist/css/index.js.map +1 -1
  7. package/dist/css/shell.css +770 -0
  8. package/dist/effects/styles.d.ts +8 -0
  9. package/dist/effects/styles.d.ts.map +1 -0
  10. package/dist/effects/styles.js +205 -0
  11. package/dist/effects/styles.js.map +1 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +1 -0
  15. package/dist/index.js.map +1 -1
  16. package/dist/shell/index.d.ts +114 -0
  17. package/dist/shell/index.d.ts.map +1 -0
  18. package/dist/shell/index.js +81 -0
  19. package/dist/shell/index.js.map +1 -0
  20. package/dist/shell/styles.d.ts +2 -0
  21. package/dist/shell/styles.d.ts.map +1 -0
  22. package/dist/shell/styles.js +772 -0
  23. package/dist/shell/styles.js.map +1 -0
  24. package/package.json +37 -7
  25. package/dist/components/RFAComponent.d.ts +0 -10
  26. package/dist/components/RFAComponent.d.ts.map +0 -1
  27. package/dist/components/RFAComponent.js +0 -288
  28. package/dist/components/RFAComponent.js.map +0 -1
  29. package/dist/components/RFADetails.d.ts +0 -9
  30. package/dist/components/RFADetails.d.ts.map +0 -1
  31. package/dist/components/RFADetails.js +0 -407
  32. package/dist/components/RFADetails.js.map +0 -1
  33. package/dist/components/agent-card.d.ts +0 -8
  34. package/dist/components/agent-card.d.ts.map +0 -1
  35. package/dist/components/agent-card.js +0 -216
  36. package/dist/components/agent-card.js.map +0 -1
  37. package/dist/components/backpack.d.ts +0 -21
  38. package/dist/components/backpack.d.ts.map +0 -1
  39. package/dist/components/backpack.js +0 -905
  40. package/dist/components/backpack.js.map +0 -1
  41. package/dist/components/blur.d.ts +0 -9
  42. package/dist/components/blur.d.ts.map +0 -1
  43. package/dist/components/blur.js +0 -60
  44. package/dist/components/blur.js.map +0 -1
  45. package/dist/components/brand/Logo.d.ts +0 -25
  46. package/dist/components/brand/Logo.d.ts.map +0 -1
  47. package/dist/components/brand/Logo.js +0 -53
  48. package/dist/components/brand/Logo.js.map +0 -1
  49. package/dist/components/brand/index.d.ts +0 -2
  50. package/dist/components/brand/index.d.ts.map +0 -1
  51. package/dist/components/brand/index.js +0 -2
  52. package/dist/components/brand/index.js.map +0 -1
  53. package/dist/components/chat.d.ts +0 -68
  54. package/dist/components/chat.d.ts.map +0 -1
  55. package/dist/components/chat.js +0 -618
  56. package/dist/components/chat.js.map +0 -1
  57. package/dist/components/compose/index.d.ts +0 -10
  58. package/dist/components/compose/index.d.ts.map +0 -1
  59. package/dist/components/compose/index.js +0 -13
  60. package/dist/components/compose/index.js.map +0 -1
  61. package/dist/components/compose/nodes/agent-node.d.ts +0 -11
  62. package/dist/components/compose/nodes/agent-node.d.ts.map +0 -1
  63. package/dist/components/compose/nodes/agent-node.js +0 -101
  64. package/dist/components/compose/nodes/agent-node.js.map +0 -1
  65. package/dist/components/compose/nodes/hook-node.d.ts +0 -11
  66. package/dist/components/compose/nodes/hook-node.d.ts.map +0 -1
  67. package/dist/components/compose/nodes/hook-node.js +0 -100
  68. package/dist/components/compose/nodes/hook-node.js.map +0 -1
  69. package/dist/components/compose/nodes/index.d.ts +0 -60
  70. package/dist/components/compose/nodes/index.d.ts.map +0 -1
  71. package/dist/components/compose/nodes/index.js +0 -22
  72. package/dist/components/compose/nodes/index.js.map +0 -1
  73. package/dist/components/compose/nodes/step-node.d.ts +0 -11
  74. package/dist/components/compose/nodes/step-node.d.ts.map +0 -1
  75. package/dist/components/compose/nodes/step-node.js +0 -88
  76. package/dist/components/compose/nodes/step-node.js.map +0 -1
  77. package/dist/components/compose/nodes/trigger-node.d.ts +0 -11
  78. package/dist/components/compose/nodes/trigger-node.d.ts.map +0 -1
  79. package/dist/components/compose/nodes/trigger-node.js +0 -92
  80. package/dist/components/compose/nodes/trigger-node.js.map +0 -1
  81. package/dist/components/compose/overlay.d.ts +0 -26
  82. package/dist/components/compose/overlay.d.ts.map +0 -1
  83. package/dist/components/compose/overlay.js +0 -48
  84. package/dist/components/compose/overlay.js.map +0 -1
  85. package/dist/components/compose/pickers/agents-picker.d.ts +0 -18
  86. package/dist/components/compose/pickers/agents-picker.d.ts.map +0 -1
  87. package/dist/components/compose/pickers/agents-picker.js +0 -180
  88. package/dist/components/compose/pickers/agents-picker.js.map +0 -1
  89. package/dist/components/compose/pickers/connector-detail.d.ts +0 -16
  90. package/dist/components/compose/pickers/connector-detail.d.ts.map +0 -1
  91. package/dist/components/compose/pickers/connector-detail.js +0 -236
  92. package/dist/components/compose/pickers/connector-detail.js.map +0 -1
  93. package/dist/components/compose/pickers/connector-picker.d.ts +0 -13
  94. package/dist/components/compose/pickers/connector-picker.d.ts.map +0 -1
  95. package/dist/components/compose/pickers/connector-picker.js +0 -101
  96. package/dist/components/compose/pickers/connector-picker.js.map +0 -1
  97. package/dist/components/compose/pickers/index.d.ts +0 -10
  98. package/dist/components/compose/pickers/index.d.ts.map +0 -1
  99. package/dist/components/compose/pickers/index.js +0 -10
  100. package/dist/components/compose/pickers/index.js.map +0 -1
  101. package/dist/components/compose/pickers/trigger-picker.d.ts +0 -13
  102. package/dist/components/compose/pickers/trigger-picker.d.ts.map +0 -1
  103. package/dist/components/compose/pickers/trigger-picker.js +0 -110
  104. package/dist/components/compose/pickers/trigger-picker.js.map +0 -1
  105. package/dist/components/compose/toolbox.d.ts +0 -24
  106. package/dist/components/compose/toolbox.d.ts.map +0 -1
  107. package/dist/components/compose/toolbox.js +0 -183
  108. package/dist/components/compose/toolbox.js.map +0 -1
  109. package/dist/components/connector.d.ts +0 -24
  110. package/dist/components/connector.d.ts.map +0 -1
  111. package/dist/components/connector.js +0 -263
  112. package/dist/components/connector.js.map +0 -1
  113. package/dist/components/dispenser.d.ts +0 -15
  114. package/dist/components/dispenser.d.ts.map +0 -1
  115. package/dist/components/dispenser.js +0 -323
  116. package/dist/components/dispenser.js.map +0 -1
  117. package/dist/components/layout/AppLayout.d.ts +0 -60
  118. package/dist/components/layout/AppLayout.d.ts.map +0 -1
  119. package/dist/components/layout/AppLayout.js +0 -265
  120. package/dist/components/layout/AppLayout.js.map +0 -1
  121. package/dist/components/layout/Layout.d.ts +0 -6
  122. package/dist/components/layout/Layout.d.ts.map +0 -1
  123. package/dist/components/layout/Layout.js +0 -186
  124. package/dist/components/layout/Layout.js.map +0 -1
  125. package/dist/components/layout/Sidebar.d.ts +0 -3
  126. package/dist/components/layout/Sidebar.d.ts.map +0 -1
  127. package/dist/components/layout/Sidebar.js +0 -160
  128. package/dist/components/layout/Sidebar.js.map +0 -1
  129. package/dist/components/layout/TopBar.d.ts +0 -6
  130. package/dist/components/layout/TopBar.d.ts.map +0 -1
  131. package/dist/components/layout/TopBar.js +0 -36
  132. package/dist/components/layout/TopBar.js.map +0 -1
  133. package/dist/components/layout/index.d.ts +0 -2
  134. package/dist/components/layout/index.d.ts.map +0 -1
  135. package/dist/components/layout/index.js +0 -2
  136. package/dist/components/layout/index.js.map +0 -1
  137. package/dist/components/lyria-player.d.ts +0 -23
  138. package/dist/components/lyria-player.d.ts.map +0 -1
  139. package/dist/components/lyria-player.js +0 -241
  140. package/dist/components/lyria-player.js.map +0 -1
  141. package/dist/components/manowar-card.d.ts +0 -8
  142. package/dist/components/manowar-card.d.ts.map +0 -1
  143. package/dist/components/manowar-card.js +0 -349
  144. package/dist/components/manowar-card.js.map +0 -1
  145. package/dist/components/mirror-pane.d.ts +0 -55
  146. package/dist/components/mirror-pane.d.ts.map +0 -1
  147. package/dist/components/mirror-pane.js +0 -330
  148. package/dist/components/mirror-pane.js.map +0 -1
  149. package/dist/components/model-selector.d.ts +0 -12
  150. package/dist/components/model-selector.d.ts.map +0 -1
  151. package/dist/components/model-selector.js +0 -148
  152. package/dist/components/model-selector.js.map +0 -1
  153. package/dist/components/output.d.ts +0 -26
  154. package/dist/components/output.d.ts.map +0 -1
  155. package/dist/components/output.js +0 -259
  156. package/dist/components/output.js.map +0 -1
  157. package/dist/components/partners.d.ts +0 -13
  158. package/dist/components/partners.d.ts.map +0 -1
  159. package/dist/components/partners.js +0 -210
  160. package/dist/components/partners.js.map +0 -1
  161. package/dist/components/plugin-tester.d.ts +0 -13
  162. package/dist/components/plugin-tester.d.ts.map +0 -1
  163. package/dist/components/plugin-tester.js +0 -907
  164. package/dist/components/plugin-tester.js.map +0 -1
  165. package/dist/components/session/SessionComponents.d.ts +0 -2
  166. package/dist/components/session/SessionComponents.d.ts.map +0 -1
  167. package/dist/components/session/SessionComponents.js +0 -2
  168. package/dist/components/session/SessionComponents.js.map +0 -1
  169. package/dist/components/session/index.d.ts +0 -2
  170. package/dist/components/session/index.d.ts.map +0 -1
  171. package/dist/components/session/index.js +0 -2
  172. package/dist/components/session/index.js.map +0 -1
  173. package/dist/components/session.d.ts +0 -58
  174. package/dist/components/session.d.ts.map +0 -1
  175. package/dist/components/session.js +0 -580
  176. package/dist/components/session.js.map +0 -1
  177. package/dist/components/share-dialog.d.ts +0 -9
  178. package/dist/components/share-dialog.d.ts.map +0 -1
  179. package/dist/components/share-dialog.js +0 -49
  180. package/dist/components/share-dialog.js.map +0 -1
  181. package/dist/components/ui/accordion.d.ts +0 -6
  182. package/dist/components/ui/accordion.d.ts.map +0 -1
  183. package/dist/components/ui/accordion.js +0 -20
  184. package/dist/components/ui/accordion.js.map +0 -1
  185. package/dist/components/ui/alert-dialog.d.ts +0 -20
  186. package/dist/components/ui/alert-dialog.d.ts.map +0 -1
  187. package/dist/components/ui/alert-dialog.js +0 -29
  188. package/dist/components/ui/alert-dialog.js.map +0 -1
  189. package/dist/components/ui/alert.d.ts +0 -5
  190. package/dist/components/ui/alert.d.ts.map +0 -1
  191. package/dist/components/ui/alert.js +0 -22
  192. package/dist/components/ui/alert.js.map +0 -1
  193. package/dist/components/ui/aspect-ratio.d.ts +0 -3
  194. package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
  195. package/dist/components/ui/aspect-ratio.js +0 -4
  196. package/dist/components/ui/aspect-ratio.js.map +0 -1
  197. package/dist/components/ui/avatar.d.ts +0 -5
  198. package/dist/components/ui/avatar.d.ts.map +0 -1
  199. package/dist/components/ui/avatar.js +0 -12
  200. package/dist/components/ui/avatar.js.map +0 -1
  201. package/dist/components/ui/badge.d.ts +0 -8
  202. package/dist/components/ui/badge.d.ts.map +0 -1
  203. package/dist/components/ui/badge.js +0 -24
  204. package/dist/components/ui/badge.js.map +0 -1
  205. package/dist/components/ui/breadcrumb.d.ts +0 -16
  206. package/dist/components/ui/breadcrumb.d.ts.map +0 -1
  207. package/dist/components/ui/breadcrumb.js +0 -28
  208. package/dist/components/ui/breadcrumb.js.map +0 -1
  209. package/dist/components/ui/button-group.d.ts +0 -10
  210. package/dist/components/ui/button-group.d.ts.map +0 -1
  211. package/dist/components/ui/button-group.js +0 -27
  212. package/dist/components/ui/button-group.js.map +0 -1
  213. package/dist/components/ui/button.d.ts +0 -11
  214. package/dist/components/ui/button.d.ts.map +0 -1
  215. package/dist/components/ui/button.js +0 -42
  216. package/dist/components/ui/button.js.map +0 -1
  217. package/dist/components/ui/calendar.d.ts +0 -9
  218. package/dist/components/ui/calendar.d.ts.map +0 -1
  219. package/dist/components/ui/calendar.js +0 -78
  220. package/dist/components/ui/calendar.js.map +0 -1
  221. package/dist/components/ui/card.d.ts +0 -8
  222. package/dist/components/ui/card.d.ts.map +0 -1
  223. package/dist/components/ui/card.js +0 -17
  224. package/dist/components/ui/card.js.map +0 -1
  225. package/dist/components/ui/carousel.d.ts +0 -9
  226. package/dist/components/ui/carousel.d.ts.map +0 -1
  227. package/dist/components/ui/carousel.js +0 -110
  228. package/dist/components/ui/carousel.js.map +0 -1
  229. package/dist/components/ui/chart.d.ts +0 -28
  230. package/dist/components/ui/chart.d.ts.map +0 -1
  231. package/dist/components/ui/chart.js +0 -168
  232. package/dist/components/ui/chart.js.map +0 -1
  233. package/dist/components/ui/checkbox.d.ts +0 -3
  234. package/dist/components/ui/checkbox.d.ts.map +0 -1
  235. package/dist/components/ui/checkbox.js +0 -12
  236. package/dist/components/ui/checkbox.js.map +0 -1
  237. package/dist/components/ui/collapsible.d.ts +0 -5
  238. package/dist/components/ui/collapsible.d.ts.map +0 -1
  239. package/dist/components/ui/collapsible.js +0 -7
  240. package/dist/components/ui/collapsible.js.map +0 -1
  241. package/dist/components/ui/command.d.ts +0 -16
  242. package/dist/components/ui/command.d.ts.map +0 -1
  243. package/dist/components/ui/command.js +0 -38
  244. package/dist/components/ui/command.js.map +0 -1
  245. package/dist/components/ui/context-menu.d.ts +0 -21
  246. package/dist/components/ui/context-menu.d.ts.map +0 -1
  247. package/dist/components/ui/context-menu.js +0 -52
  248. package/dist/components/ui/context-menu.js.map +0 -1
  249. package/dist/components/ui/dialog.d.ts +0 -19
  250. package/dist/components/ui/dialog.d.ts.map +0 -1
  251. package/dist/components/ui/dialog.js +0 -31
  252. package/dist/components/ui/dialog.js.map +0 -1
  253. package/dist/components/ui/drawer.d.ts +0 -23
  254. package/dist/components/ui/drawer.d.ts.map +0 -1
  255. package/dist/components/ui/drawer.js +0 -28
  256. package/dist/components/ui/drawer.js.map +0 -1
  257. package/dist/components/ui/dropdown-menu.d.ts +0 -21
  258. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  259. package/dist/components/ui/dropdown-menu.js +0 -55
  260. package/dist/components/ui/dropdown-menu.js.map +0 -1
  261. package/dist/components/ui/empty.d.ts +0 -10
  262. package/dist/components/ui/empty.d.ts.map +0 -1
  263. package/dist/components/ui/empty.js +0 -33
  264. package/dist/components/ui/empty.js.map +0 -1
  265. package/dist/components/ui/field.d.ts +0 -23
  266. package/dist/components/ui/field.d.ts.map +0 -1
  267. package/dist/components/ui/field.js +0 -82
  268. package/dist/components/ui/field.js.map +0 -1
  269. package/dist/components/ui/form.d.ts +0 -11
  270. package/dist/components/ui/form.d.ts.map +0 -1
  271. package/dist/components/ui/form.js +0 -71
  272. package/dist/components/ui/form.js.map +0 -1
  273. package/dist/components/ui/hover-card.d.ts +0 -5
  274. package/dist/components/ui/hover-card.d.ts.map +0 -1
  275. package/dist/components/ui/hover-card.js +0 -9
  276. package/dist/components/ui/hover-card.js.map +0 -1
  277. package/dist/components/ui/index.d.ts +0 -7
  278. package/dist/components/ui/index.d.ts.map +0 -1
  279. package/dist/components/ui/index.js +0 -7
  280. package/dist/components/ui/index.js.map +0 -1
  281. package/dist/components/ui/input-group.d.ts +0 -13
  282. package/dist/components/ui/input-group.d.ts.map +0 -1
  283. package/dist/components/ui/input-group.js +0 -63
  284. package/dist/components/ui/input-group.js.map +0 -1
  285. package/dist/components/ui/input-otp.d.ts +0 -6
  286. package/dist/components/ui/input-otp.d.ts.map +0 -1
  287. package/dist/components/ui/input-otp.js +0 -25
  288. package/dist/components/ui/input-otp.js.map +0 -1
  289. package/dist/components/ui/input.d.ts +0 -3
  290. package/dist/components/ui/input.d.ts.map +0 -1
  291. package/dist/components/ui/input.js +0 -8
  292. package/dist/components/ui/input.js.map +0 -1
  293. package/dist/components/ui/item.d.ts +0 -19
  294. package/dist/components/ui/item.d.ts.map +0 -1
  295. package/dist/components/ui/item.js +0 -67
  296. package/dist/components/ui/item.js.map +0 -1
  297. package/dist/components/ui/kbd.d.ts +0 -4
  298. package/dist/components/ui/kbd.d.ts.map +0 -1
  299. package/dist/components/ui/kbd.js +0 -9
  300. package/dist/components/ui/kbd.js.map +0 -1
  301. package/dist/components/ui/label.d.ts +0 -3
  302. package/dist/components/ui/label.d.ts.map +0 -1
  303. package/dist/components/ui/label.js +0 -10
  304. package/dist/components/ui/label.js.map +0 -1
  305. package/dist/components/ui/menubar.d.ts +0 -23
  306. package/dist/components/ui/menubar.d.ts.map +0 -1
  307. package/dist/components/ui/menubar.js +0 -64
  308. package/dist/components/ui/menubar.js.map +0 -1
  309. package/dist/components/ui/navigation-menu.d.ts +0 -11
  310. package/dist/components/ui/navigation-menu.d.ts.map +0 -1
  311. package/dist/components/ui/navigation-menu.js +0 -34
  312. package/dist/components/ui/navigation-menu.js.map +0 -1
  313. package/dist/components/ui/network-selector.d.ts +0 -22
  314. package/dist/components/ui/network-selector.d.ts.map +0 -1
  315. package/dist/components/ui/network-selector.js +0 -99
  316. package/dist/components/ui/network-selector.js.map +0 -1
  317. package/dist/components/ui/pagination.d.ts +0 -29
  318. package/dist/components/ui/pagination.d.ts.map +0 -1
  319. package/dist/components/ui/pagination.js +0 -32
  320. package/dist/components/ui/pagination.js.map +0 -1
  321. package/dist/components/ui/popover.d.ts +0 -6
  322. package/dist/components/ui/popover.d.ts.map +0 -1
  323. package/dist/components/ui/popover.js +0 -12
  324. package/dist/components/ui/popover.js.map +0 -1
  325. package/dist/components/ui/progress.d.ts +0 -3
  326. package/dist/components/ui/progress.d.ts.map +0 -1
  327. package/dist/components/ui/progress.js +0 -10
  328. package/dist/components/ui/progress.js.map +0 -1
  329. package/dist/components/ui/radio-group.d.ts +0 -4
  330. package/dist/components/ui/radio-group.d.ts.map +0 -1
  331. package/dist/components/ui/radio-group.js +0 -18
  332. package/dist/components/ui/radio-group.js.map +0 -1
  333. package/dist/components/ui/resizable.d.ts +0 -8
  334. package/dist/components/ui/resizable.d.ts.map +0 -1
  335. package/dist/components/ui/resizable.js +0 -13
  336. package/dist/components/ui/resizable.js.map +0 -1
  337. package/dist/components/ui/scroll-area.d.ts +0 -4
  338. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  339. package/dist/components/ui/scroll-area.js +0 -19
  340. package/dist/components/ui/scroll-area.js.map +0 -1
  341. package/dist/components/ui/select.d.ts +0 -12
  342. package/dist/components/ui/select.d.ts.map +0 -1
  343. package/dist/components/ui/select.js +0 -51
  344. package/dist/components/ui/select.js.map +0 -1
  345. package/dist/components/ui/separator.d.ts +0 -3
  346. package/dist/components/ui/separator.d.ts.map +0 -1
  347. package/dist/components/ui/separator.js +0 -7
  348. package/dist/components/ui/separator.js.map +0 -1
  349. package/dist/components/ui/sheet.d.ts +0 -19
  350. package/dist/components/ui/sheet.d.ts.map +0 -1
  351. package/dist/components/ui/sheet.js +0 -46
  352. package/dist/components/ui/sheet.js.map +0 -1
  353. package/dist/components/ui/sidebar.d.ts +0 -58
  354. package/dist/components/ui/sidebar.d.ts.map +0 -1
  355. package/dist/components/ui/sidebar.js +0 -246
  356. package/dist/components/ui/sidebar.js.map +0 -1
  357. package/dist/components/ui/skeleton.d.ts +0 -3
  358. package/dist/components/ui/skeleton.d.ts.map +0 -1
  359. package/dist/components/ui/skeleton.js +0 -6
  360. package/dist/components/ui/skeleton.js.map +0 -1
  361. package/dist/components/ui/slider.d.ts +0 -3
  362. package/dist/components/ui/slider.d.ts.map +0 -1
  363. package/dist/components/ui/slider.js +0 -12
  364. package/dist/components/ui/slider.js.map +0 -1
  365. package/dist/components/ui/sonner.d.ts +0 -5
  366. package/dist/components/ui/sonner.d.ts.map +0 -1
  367. package/dist/components/ui/sonner.js +0 -16
  368. package/dist/components/ui/sonner.js.map +0 -1
  369. package/dist/components/ui/spinner.d.ts +0 -3
  370. package/dist/components/ui/spinner.d.ts.map +0 -1
  371. package/dist/components/ui/spinner.js +0 -7
  372. package/dist/components/ui/spinner.js.map +0 -1
  373. package/dist/components/ui/surface-variant.d.ts +0 -4
  374. package/dist/components/ui/surface-variant.d.ts.map +0 -1
  375. package/dist/components/ui/surface-variant.js +0 -10
  376. package/dist/components/ui/surface-variant.js.map +0 -1
  377. package/dist/components/ui/switch.d.ts +0 -3
  378. package/dist/components/ui/switch.d.ts.map +0 -1
  379. package/dist/components/ui/switch.js +0 -9
  380. package/dist/components/ui/switch.js.map +0 -1
  381. package/dist/components/ui/table.d.ts +0 -10
  382. package/dist/components/ui/table.d.ts.map +0 -1
  383. package/dist/components/ui/table.js +0 -22
  384. package/dist/components/ui/table.js.map +0 -1
  385. package/dist/components/ui/tabs.d.ts +0 -6
  386. package/dist/components/ui/tabs.d.ts.map +0 -1
  387. package/dist/components/ui/tabs.js +0 -13
  388. package/dist/components/ui/tabs.js.map +0 -1
  389. package/dist/components/ui/textarea.d.ts +0 -3
  390. package/dist/components/ui/textarea.d.ts.map +0 -1
  391. package/dist/components/ui/textarea.js +0 -8
  392. package/dist/components/ui/textarea.js.map +0 -1
  393. package/dist/components/ui/toast.d.ts +0 -12
  394. package/dist/components/ui/toast.d.ts.map +0 -1
  395. package/dist/components/ui/toast.js +0 -35
  396. package/dist/components/ui/toast.js.map +0 -1
  397. package/dist/components/ui/toaster.d.ts +0 -2
  398. package/dist/components/ui/toaster.d.ts.map +0 -1
  399. package/dist/components/ui/toaster.js +0 -19
  400. package/dist/components/ui/toaster.js.map +0 -1
  401. package/dist/components/ui/toggle-group.d.ts +0 -4
  402. package/dist/components/ui/toggle-group.d.ts.map +0 -1
  403. package/dist/components/ui/toggle-group.js +0 -27
  404. package/dist/components/ui/toggle-group.js.map +0 -1
  405. package/dist/components/ui/toggle.d.ts +0 -4
  406. package/dist/components/ui/toggle.d.ts.map +0 -1
  407. package/dist/components/ui/toggle.js +0 -25
  408. package/dist/components/ui/toggle.js.map +0 -1
  409. package/dist/components/ui/tooltip.d.ts +0 -6
  410. package/dist/components/ui/tooltip.d.ts.map +0 -1
  411. package/dist/components/ui/tooltip.js +0 -13
  412. package/dist/components/ui/tooltip.js.map +0 -1
  413. package/dist/components/visual/ManowarField.d.ts +0 -9
  414. package/dist/components/visual/ManowarField.d.ts.map +0 -1
  415. package/dist/components/visual/ManowarField.js +0 -111
  416. package/dist/components/visual/ManowarField.js.map +0 -1
  417. package/dist/components/warp-form.d.ts +0 -22
  418. package/dist/components/warp-form.d.ts.map +0 -1
  419. package/dist/components/warp-form.js +0 -743
  420. package/dist/components/warp-form.js.map +0 -1
  421. package/dist/hooks/use-agents.d.ts +0 -17
  422. package/dist/hooks/use-agents.d.ts.map +0 -1
  423. package/dist/hooks/use-agents.js +0 -64
  424. package/dist/hooks/use-agents.js.map +0 -1
  425. package/dist/hooks/use-api.d.ts +0 -28
  426. package/dist/hooks/use-api.d.ts.map +0 -1
  427. package/dist/hooks/use-api.js +0 -114
  428. package/dist/hooks/use-api.js.map +0 -1
  429. package/dist/hooks/use-chat.d.ts +0 -64
  430. package/dist/hooks/use-chat.d.ts.map +0 -1
  431. package/dist/hooks/use-chat.js +0 -350
  432. package/dist/hooks/use-chat.js.map +0 -1
  433. package/dist/hooks/use-coordinator.d.ts +0 -41
  434. package/dist/hooks/use-coordinator.d.ts.map +0 -1
  435. package/dist/hooks/use-coordinator.js +0 -110
  436. package/dist/hooks/use-coordinator.js.map +0 -1
  437. package/dist/hooks/use-dispenser.d.ts +0 -68
  438. package/dist/hooks/use-dispenser.d.ts.map +0 -1
  439. package/dist/hooks/use-dispenser.js +0 -113
  440. package/dist/hooks/use-dispenser.js.map +0 -1
  441. package/dist/hooks/use-lyria.d.ts +0 -58
  442. package/dist/hooks/use-lyria.d.ts.map +0 -1
  443. package/dist/hooks/use-lyria.js +0 -254
  444. package/dist/hooks/use-lyria.js.map +0 -1
  445. package/dist/hooks/use-mobile.d.ts +0 -2
  446. package/dist/hooks/use-mobile.d.ts.map +0 -1
  447. package/dist/hooks/use-mobile.js +0 -16
  448. package/dist/hooks/use-mobile.js.map +0 -1
  449. package/dist/hooks/use-model.d.ts +0 -34
  450. package/dist/hooks/use-model.d.ts.map +0 -1
  451. package/dist/hooks/use-model.js +0 -105
  452. package/dist/hooks/use-model.js.map +0 -1
  453. package/dist/hooks/use-motion-governor.d.ts +0 -10
  454. package/dist/hooks/use-motion-governor.d.ts.map +0 -1
  455. package/dist/hooks/use-motion-governor.js +0 -63
  456. package/dist/hooks/use-motion-governor.js.map +0 -1
  457. package/dist/hooks/use-multichain.d.ts +0 -34
  458. package/dist/hooks/use-multichain.d.ts.map +0 -1
  459. package/dist/hooks/use-multichain.js +0 -120
  460. package/dist/hooks/use-multichain.js.map +0 -1
  461. package/dist/hooks/use-onchain.d.ts +0 -145
  462. package/dist/hooks/use-onchain.d.ts.map +0 -1
  463. package/dist/hooks/use-onchain.js +0 -652
  464. package/dist/hooks/use-onchain.js.map +0 -1
  465. package/dist/hooks/use-registry.d.ts +0 -140
  466. package/dist/hooks/use-registry.d.ts.map +0 -1
  467. package/dist/hooks/use-registry.js +0 -264
  468. package/dist/hooks/use-registry.js.map +0 -1
  469. package/dist/hooks/use-services.d.ts +0 -66
  470. package/dist/hooks/use-services.d.ts.map +0 -1
  471. package/dist/hooks/use-services.js +0 -216
  472. package/dist/hooks/use-services.js.map +0 -1
  473. package/dist/hooks/use-session.d.ts +0 -36
  474. package/dist/hooks/use-session.d.ts.map +0 -1
  475. package/dist/hooks/use-session.js +0 -449
  476. package/dist/hooks/use-session.js.map +0 -1
  477. package/dist/hooks/use-sse.d.ts +0 -8
  478. package/dist/hooks/use-sse.d.ts.map +0 -1
  479. package/dist/hooks/use-sse.js +0 -86
  480. package/dist/hooks/use-sse.js.map +0 -1
  481. package/dist/hooks/use-tabs.d.ts +0 -2
  482. package/dist/hooks/use-tabs.d.ts.map +0 -1
  483. package/dist/hooks/use-tabs.js +0 -43
  484. package/dist/hooks/use-tabs.js.map +0 -1
  485. package/dist/hooks/use-toast.d.ts +0 -41
  486. package/dist/hooks/use-toast.d.ts.map +0 -1
  487. package/dist/hooks/use-toast.js +0 -127
  488. package/dist/hooks/use-toast.js.map +0 -1
  489. package/dist/hooks/use-triggers.d.ts +0 -51
  490. package/dist/hooks/use-triggers.d.ts.map +0 -1
  491. package/dist/hooks/use-triggers.js +0 -212
  492. package/dist/hooks/use-triggers.js.map +0 -1
  493. package/dist/hooks/use-warp.d.ts +0 -53
  494. package/dist/hooks/use-warp.d.ts.map +0 -1
  495. package/dist/hooks/use-warp.js +0 -231
  496. package/dist/hooks/use-warp.js.map +0 -1
  497. package/dist/hooks/use-workflow.d.ts +0 -40
  498. package/dist/hooks/use-workflow.d.ts.map +0 -1
  499. package/dist/hooks/use-workflow.js +0 -358
  500. package/dist/hooks/use-workflow.js.map +0 -1
  501. package/dist/lib/agents.d.ts +0 -186
  502. package/dist/lib/agents.d.ts.map +0 -1
  503. package/dist/lib/agents.js +0 -633
  504. package/dist/lib/agents.js.map +0 -1
  505. package/dist/lib/api.d.ts +0 -224
  506. package/dist/lib/api.d.ts.map +0 -1
  507. package/dist/lib/api.js +0 -443
  508. package/dist/lib/api.js.map +0 -1
  509. package/dist/lib/chains.d.ts +0 -151
  510. package/dist/lib/chains.d.ts.map +0 -1
  511. package/dist/lib/chains.js +0 -297
  512. package/dist/lib/chains.js.map +0 -1
  513. package/dist/lib/contracts.d.ts +0 -960
  514. package/dist/lib/contracts.d.ts.map +0 -1
  515. package/dist/lib/contracts.js +0 -716
  516. package/dist/lib/contracts.js.map +0 -1
  517. package/dist/lib/cronos/aa.d.ts +0 -111
  518. package/dist/lib/cronos/aa.d.ts.map +0 -1
  519. package/dist/lib/cronos/aa.js +0 -312
  520. package/dist/lib/cronos/aa.js.map +0 -1
  521. package/dist/lib/cronos/facilitator.d.ts +0 -87
  522. package/dist/lib/cronos/facilitator.d.ts.map +0 -1
  523. package/dist/lib/cronos/facilitator.js +0 -183
  524. package/dist/lib/cronos/facilitator.js.map +0 -1
  525. package/dist/lib/evm.d.ts +0 -45
  526. package/dist/lib/evm.d.ts.map +0 -1
  527. package/dist/lib/evm.js +0 -78
  528. package/dist/lib/evm.js.map +0 -1
  529. package/dist/lib/mockData.d.ts +0 -26
  530. package/dist/lib/mockData.d.ts.map +0 -1
  531. package/dist/lib/mockData.js +0 -89
  532. package/dist/lib/mockData.js.map +0 -1
  533. package/dist/lib/models.d.ts +0 -122
  534. package/dist/lib/models.d.ts.map +0 -1
  535. package/dist/lib/models.js +0 -174
  536. package/dist/lib/models.js.map +0 -1
  537. package/dist/lib/multimodal.d.ts +0 -53
  538. package/dist/lib/multimodal.d.ts.map +0 -1
  539. package/dist/lib/multimodal.js +0 -204
  540. package/dist/lib/multimodal.js.map +0 -1
  541. package/dist/lib/payment.d.ts +0 -67
  542. package/dist/lib/payment.d.ts.map +0 -1
  543. package/dist/lib/payment.js +0 -236
  544. package/dist/lib/payment.js.map +0 -1
  545. package/dist/lib/pinata.d.ts +0 -140
  546. package/dist/lib/pinata.d.ts.map +0 -1
  547. package/dist/lib/pinata.js +0 -209
  548. package/dist/lib/pinata.js.map +0 -1
  549. package/dist/lib/queryClient.d.ts +0 -9
  550. package/dist/lib/queryClient.d.ts.map +0 -1
  551. package/dist/lib/queryClient.js +0 -42
  552. package/dist/lib/queryClient.js.map +0 -1
  553. package/dist/lib/services.d.ts +0 -164
  554. package/dist/lib/services.d.ts.map +0 -1
  555. package/dist/lib/services.js +0 -304
  556. package/dist/lib/services.js.map +0 -1
  557. package/dist/lib/share.d.ts +0 -12
  558. package/dist/lib/share.d.ts.map +0 -1
  559. package/dist/lib/share.js +0 -39
  560. package/dist/lib/share.js.map +0 -1
  561. package/dist/lib/triggers.d.ts +0 -128
  562. package/dist/lib/triggers.d.ts.map +0 -1
  563. package/dist/lib/triggers.js +0 -305
  564. package/dist/lib/triggers.js.map +0 -1
  565. package/dist/lib/utils.d.ts +0 -3
  566. package/dist/lib/utils.d.ts.map +0 -1
  567. package/dist/lib/utils.js +0 -6
  568. package/dist/lib/utils.js.map +0 -1
  569. package/dist/lib/visual-system.d.ts +0 -39
  570. package/dist/lib/visual-system.d.ts.map +0 -1
  571. package/dist/lib/visual-system.js +0 -129
  572. package/dist/lib/visual-system.js.map +0 -1
  573. package/dist/utils/index.d.ts +0 -2
  574. package/dist/utils/index.d.ts.map +0 -1
  575. package/dist/utils/index.js +0 -2
  576. 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