@compose-market/theme 0.0.2 → 0.0.3
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.
- package/dist/components/RFAComponent.d.ts +10 -0
- package/dist/components/RFAComponent.d.ts.map +1 -0
- package/dist/components/RFAComponent.js +288 -0
- package/dist/components/RFAComponent.js.map +1 -0
- package/dist/components/RFADetails.d.ts +9 -0
- package/dist/components/RFADetails.d.ts.map +1 -0
- package/dist/components/RFADetails.js +407 -0
- package/dist/components/RFADetails.js.map +1 -0
- package/dist/components/agent-card.d.ts +8 -0
- package/dist/components/agent-card.d.ts.map +1 -0
- package/dist/components/agent-card.js +216 -0
- package/dist/components/agent-card.js.map +1 -0
- package/dist/components/backpack.d.ts +21 -0
- package/dist/components/backpack.d.ts.map +1 -0
- package/dist/components/backpack.js +905 -0
- package/dist/components/backpack.js.map +1 -0
- package/dist/components/blur.d.ts +9 -0
- package/dist/components/blur.d.ts.map +1 -0
- package/dist/components/blur.js +60 -0
- package/dist/components/blur.js.map +1 -0
- package/dist/components/brand/Logo.d.ts +3 -3
- package/dist/components/brand/Logo.d.ts.map +1 -1
- package/dist/components/brand/Logo.js +37 -4
- package/dist/components/brand/Logo.js.map +1 -1
- package/dist/components/chat.d.ts +68 -0
- package/dist/components/chat.d.ts.map +1 -0
- package/dist/components/chat.js +618 -0
- package/dist/components/chat.js.map +1 -0
- package/dist/components/compose/index.d.ts +10 -0
- package/dist/components/compose/index.d.ts.map +1 -0
- package/dist/components/compose/index.js +13 -0
- package/dist/components/compose/index.js.map +1 -0
- package/dist/components/compose/nodes/agent-node.d.ts +11 -0
- package/dist/components/compose/nodes/agent-node.d.ts.map +1 -0
- package/dist/components/compose/nodes/agent-node.js +101 -0
- package/dist/components/compose/nodes/agent-node.js.map +1 -0
- package/dist/components/compose/nodes/hook-node.d.ts +11 -0
- package/dist/components/compose/nodes/hook-node.d.ts.map +1 -0
- package/dist/components/compose/nodes/hook-node.js +100 -0
- package/dist/components/compose/nodes/hook-node.js.map +1 -0
- package/dist/components/compose/nodes/index.d.ts +60 -0
- package/dist/components/compose/nodes/index.d.ts.map +1 -0
- package/dist/components/compose/nodes/index.js +22 -0
- package/dist/components/compose/nodes/index.js.map +1 -0
- package/dist/components/compose/nodes/step-node.d.ts +11 -0
- package/dist/components/compose/nodes/step-node.d.ts.map +1 -0
- package/dist/components/compose/nodes/step-node.js +88 -0
- package/dist/components/compose/nodes/step-node.js.map +1 -0
- package/dist/components/compose/nodes/trigger-node.d.ts +11 -0
- package/dist/components/compose/nodes/trigger-node.d.ts.map +1 -0
- package/dist/components/compose/nodes/trigger-node.js +92 -0
- package/dist/components/compose/nodes/trigger-node.js.map +1 -0
- package/dist/components/compose/overlay.d.ts +26 -0
- package/dist/components/compose/overlay.d.ts.map +1 -0
- package/dist/components/compose/overlay.js +48 -0
- package/dist/components/compose/overlay.js.map +1 -0
- package/dist/components/compose/pickers/agents-picker.d.ts +18 -0
- package/dist/components/compose/pickers/agents-picker.d.ts.map +1 -0
- package/dist/components/compose/pickers/agents-picker.js +180 -0
- package/dist/components/compose/pickers/agents-picker.js.map +1 -0
- package/dist/components/compose/pickers/connector-detail.d.ts +16 -0
- package/dist/components/compose/pickers/connector-detail.d.ts.map +1 -0
- package/dist/components/compose/pickers/connector-detail.js +236 -0
- package/dist/components/compose/pickers/connector-detail.js.map +1 -0
- package/dist/components/compose/pickers/connector-picker.d.ts +13 -0
- package/dist/components/compose/pickers/connector-picker.d.ts.map +1 -0
- package/dist/components/compose/pickers/connector-picker.js +101 -0
- package/dist/components/compose/pickers/connector-picker.js.map +1 -0
- package/dist/components/compose/pickers/index.d.ts +10 -0
- package/dist/components/compose/pickers/index.d.ts.map +1 -0
- package/dist/components/compose/pickers/index.js +10 -0
- package/dist/components/compose/pickers/index.js.map +1 -0
- package/dist/components/compose/pickers/trigger-picker.d.ts +13 -0
- package/dist/components/compose/pickers/trigger-picker.d.ts.map +1 -0
- package/dist/components/compose/pickers/trigger-picker.js +110 -0
- package/dist/components/compose/pickers/trigger-picker.js.map +1 -0
- package/dist/components/compose/toolbox.d.ts +24 -0
- package/dist/components/compose/toolbox.d.ts.map +1 -0
- package/dist/components/compose/toolbox.js +183 -0
- package/dist/components/compose/toolbox.js.map +1 -0
- package/dist/components/connector.d.ts +24 -0
- package/dist/components/connector.d.ts.map +1 -0
- package/dist/components/connector.js +263 -0
- package/dist/components/connector.js.map +1 -0
- package/dist/components/dispenser.d.ts +15 -0
- package/dist/components/dispenser.d.ts.map +1 -0
- package/dist/components/dispenser.js +323 -0
- package/dist/components/dispenser.js.map +1 -0
- package/dist/components/layout/AppLayout.d.ts +60 -0
- package/dist/components/layout/AppLayout.d.ts.map +1 -0
- package/dist/components/layout/AppLayout.js +265 -0
- package/dist/components/layout/AppLayout.js.map +1 -0
- package/dist/components/layout/Layout.d.ts +6 -0
- package/dist/components/layout/Layout.d.ts.map +1 -0
- package/dist/components/layout/Layout.js +186 -0
- package/dist/components/layout/Layout.js.map +1 -0
- package/dist/components/layout/Sidebar.d.ts +3 -0
- package/dist/components/layout/Sidebar.d.ts.map +1 -0
- package/dist/components/layout/Sidebar.js +160 -0
- package/dist/components/layout/Sidebar.js.map +1 -0
- package/dist/components/layout/TopBar.d.ts +6 -0
- package/dist/components/layout/TopBar.d.ts.map +1 -0
- package/dist/components/layout/TopBar.js +36 -0
- package/dist/components/layout/TopBar.js.map +1 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/layout/index.js +2 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/lyria-player.d.ts +23 -0
- package/dist/components/lyria-player.d.ts.map +1 -0
- package/dist/components/lyria-player.js +241 -0
- package/dist/components/lyria-player.js.map +1 -0
- package/dist/components/manowar-card.d.ts +8 -0
- package/dist/components/manowar-card.d.ts.map +1 -0
- package/dist/components/manowar-card.js +349 -0
- package/dist/components/manowar-card.js.map +1 -0
- package/dist/components/mirror-pane.d.ts +55 -0
- package/dist/components/mirror-pane.d.ts.map +1 -0
- package/dist/components/mirror-pane.js +330 -0
- package/dist/components/mirror-pane.js.map +1 -0
- package/dist/components/model-selector.d.ts +12 -0
- package/dist/components/model-selector.d.ts.map +1 -0
- package/dist/components/model-selector.js +148 -0
- package/dist/components/model-selector.js.map +1 -0
- package/dist/components/output.d.ts +26 -0
- package/dist/components/output.d.ts.map +1 -0
- package/dist/components/output.js +259 -0
- package/dist/components/output.js.map +1 -0
- package/dist/components/partners.d.ts +13 -0
- package/dist/components/partners.d.ts.map +1 -0
- package/dist/components/partners.js +210 -0
- package/dist/components/partners.js.map +1 -0
- package/dist/components/plugin-tester.d.ts +13 -0
- package/dist/components/plugin-tester.d.ts.map +1 -0
- package/dist/components/plugin-tester.js +907 -0
- package/dist/components/plugin-tester.js.map +1 -0
- package/dist/components/session/SessionComponents.d.ts +2 -0
- package/dist/components/session/SessionComponents.d.ts.map +1 -0
- package/dist/components/session/SessionComponents.js +2 -0
- package/dist/components/session/SessionComponents.js.map +1 -0
- package/dist/components/session/index.d.ts +2 -0
- package/dist/components/session/index.d.ts.map +1 -0
- package/dist/components/session/index.js +2 -0
- package/dist/components/session/index.js.map +1 -0
- package/dist/components/session.d.ts +3 -3
- package/dist/components/session.d.ts.map +1 -1
- package/dist/components/session.js +315 -15
- package/dist/components/session.js.map +1 -1
- package/dist/components/share-dialog.d.ts +9 -0
- package/dist/components/share-dialog.d.ts.map +1 -0
- package/dist/components/share-dialog.js +49 -0
- package/dist/components/share-dialog.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +6 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +20 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +29 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +5 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +22 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +4 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +5 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +12 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +2 -4
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +2 -2
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +16 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +28 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button-group.d.ts +10 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group.js +27 -0
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/button.d.ts +2 -5
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +1 -2
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +78 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +6 -11
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +6 -7
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +9 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +110 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.d.ts +28 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +168 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +3 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +12 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +7 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/command.d.ts +16 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +38 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +21 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +52 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +10 -11
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +15 -7
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts +23 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +28 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +15 -22
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +28 -10
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/empty.d.ts +10 -0
- package/dist/components/ui/empty.d.ts.map +1 -0
- package/dist/components/ui/empty.js +33 -0
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/field.d.ts +23 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/field.js +82 -0
- package/dist/components/ui/field.js.map +1 -0
- package/dist/components/ui/form.d.ts +11 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/form.js +71 -0
- package/dist/components/ui/form.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +5 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +9 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +13 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +63 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +6 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +25 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +8 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/item.d.ts +19 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/item.js +67 -0
- package/dist/components/ui/item.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +4 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd.js +9 -0
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/label.d.ts +3 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +10 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +23 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +64 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +11 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +34 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/network-selector.d.ts +22 -0
- package/dist/components/ui/network-selector.d.ts.map +1 -0
- package/dist/components/ui/network-selector.js +99 -0
- package/dist/components/ui/network-selector.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +29 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +32 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +6 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +12 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +1 -3
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +3 -2
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +18 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +13 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +4 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +19 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.d.ts +12 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +51 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +3 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +7 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +19 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +46 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +58 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +246 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +6 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +3 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +12 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +5 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +16 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +7 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +3 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +9 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +22 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +6 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +13 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +8 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toast.d.ts +12 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +35 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toaster.d.ts +2 -0
- package/dist/components/ui/toaster.d.ts.map +1 -0
- package/dist/components/ui/toaster.js +19 -0
- package/dist/components/ui/toaster.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +4 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +27 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +4 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +25 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +6 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +13 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/visual/ManowarField.d.ts +9 -0
- package/dist/components/visual/ManowarField.d.ts.map +1 -0
- package/dist/components/visual/ManowarField.js +111 -0
- package/dist/components/visual/ManowarField.js.map +1 -0
- package/dist/components/warp-form.d.ts +22 -0
- package/dist/components/warp-form.d.ts.map +1 -0
- package/dist/components/warp-form.js +743 -0
- package/dist/components/warp-form.js.map +1 -0
- package/dist/css/dark.css +38 -0
- package/dist/css/index.css +9 -0
- package/dist/css/index.d.ts +16 -0
- package/dist/css/index.d.ts.map +1 -0
- package/dist/css/index.js +96 -0
- package/dist/css/index.js.map +1 -0
- package/dist/css/light.css +70 -0
- package/dist/css/tokens.css +24 -0
- package/dist/hooks/use-agents.d.ts +17 -0
- package/dist/hooks/use-agents.d.ts.map +1 -0
- package/dist/hooks/use-agents.js +64 -0
- package/dist/hooks/use-agents.js.map +1 -0
- package/dist/hooks/use-api.d.ts +28 -0
- package/dist/hooks/use-api.d.ts.map +1 -0
- package/dist/hooks/use-api.js +114 -0
- package/dist/hooks/use-api.js.map +1 -0
- package/dist/hooks/use-chat.d.ts +64 -0
- package/dist/hooks/use-chat.d.ts.map +1 -0
- package/dist/hooks/use-chat.js +350 -0
- package/dist/hooks/use-chat.js.map +1 -0
- package/dist/hooks/use-coordinator.d.ts +41 -0
- package/dist/hooks/use-coordinator.d.ts.map +1 -0
- package/dist/hooks/use-coordinator.js +110 -0
- package/dist/hooks/use-coordinator.js.map +1 -0
- package/dist/hooks/use-dispenser.d.ts +68 -0
- package/dist/hooks/use-dispenser.d.ts.map +1 -0
- package/dist/hooks/use-dispenser.js +113 -0
- package/dist/hooks/use-dispenser.js.map +1 -0
- package/dist/hooks/use-lyria.d.ts +58 -0
- package/dist/hooks/use-lyria.d.ts.map +1 -0
- package/dist/hooks/use-lyria.js +254 -0
- package/dist/hooks/use-lyria.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-model.d.ts +34 -0
- package/dist/hooks/use-model.d.ts.map +1 -0
- package/dist/hooks/use-model.js +105 -0
- package/dist/hooks/use-model.js.map +1 -0
- package/dist/hooks/use-motion-governor.d.ts +10 -0
- package/dist/hooks/use-motion-governor.d.ts.map +1 -0
- package/dist/hooks/use-motion-governor.js +63 -0
- package/dist/hooks/use-motion-governor.js.map +1 -0
- package/dist/hooks/use-multichain.d.ts +34 -0
- package/dist/hooks/use-multichain.d.ts.map +1 -0
- package/dist/hooks/use-multichain.js +120 -0
- package/dist/hooks/use-multichain.js.map +1 -0
- package/dist/hooks/use-onchain.d.ts +145 -0
- package/dist/hooks/use-onchain.d.ts.map +1 -0
- package/dist/hooks/use-onchain.js +652 -0
- package/dist/hooks/use-onchain.js.map +1 -0
- package/dist/hooks/use-registry.d.ts +140 -0
- package/dist/hooks/use-registry.d.ts.map +1 -0
- package/dist/hooks/use-registry.js +264 -0
- package/dist/hooks/use-registry.js.map +1 -0
- package/dist/hooks/use-services.d.ts +66 -0
- package/dist/hooks/use-services.d.ts.map +1 -0
- package/dist/hooks/use-services.js +216 -0
- package/dist/hooks/use-services.js.map +1 -0
- package/dist/hooks/use-session.d.ts +36 -0
- package/dist/hooks/use-session.d.ts.map +1 -0
- package/dist/hooks/use-session.js +449 -0
- package/dist/hooks/use-session.js.map +1 -0
- package/dist/hooks/use-sse.d.ts +8 -0
- package/dist/hooks/use-sse.d.ts.map +1 -0
- package/dist/hooks/use-sse.js +86 -0
- package/dist/hooks/use-sse.js.map +1 -0
- package/dist/hooks/use-tabs.d.ts +2 -0
- package/dist/hooks/use-tabs.d.ts.map +1 -0
- package/dist/hooks/use-tabs.js +43 -0
- package/dist/hooks/use-tabs.js.map +1 -0
- package/dist/hooks/use-toast.d.ts +41 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/hooks/use-toast.js +127 -0
- package/dist/hooks/use-toast.js.map +1 -0
- package/dist/hooks/use-triggers.d.ts +51 -0
- package/dist/hooks/use-triggers.d.ts.map +1 -0
- package/dist/hooks/use-triggers.js +212 -0
- package/dist/hooks/use-triggers.js.map +1 -0
- package/dist/hooks/use-warp.d.ts +53 -0
- package/dist/hooks/use-warp.d.ts.map +1 -0
- package/dist/hooks/use-warp.js +231 -0
- package/dist/hooks/use-warp.js.map +1 -0
- package/dist/hooks/use-workflow.d.ts +40 -0
- package/dist/hooks/use-workflow.d.ts.map +1 -0
- package/dist/hooks/use-workflow.js +358 -0
- package/dist/hooks/use-workflow.js.map +1 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/agents.d.ts +186 -0
- package/dist/lib/agents.d.ts.map +1 -0
- package/dist/lib/agents.js +633 -0
- package/dist/lib/agents.js.map +1 -0
- package/dist/lib/api.d.ts +224 -0
- package/dist/lib/api.d.ts.map +1 -0
- package/dist/lib/api.js +443 -0
- package/dist/lib/api.js.map +1 -0
- package/dist/lib/chains.d.ts +151 -0
- package/dist/lib/chains.d.ts.map +1 -0
- package/dist/lib/chains.js +297 -0
- package/dist/lib/chains.js.map +1 -0
- package/dist/lib/contracts.d.ts +960 -0
- package/dist/lib/contracts.d.ts.map +1 -0
- package/dist/lib/contracts.js +716 -0
- package/dist/lib/contracts.js.map +1 -0
- package/dist/lib/cronos/aa.d.ts +111 -0
- package/dist/lib/cronos/aa.d.ts.map +1 -0
- package/dist/lib/cronos/aa.js +312 -0
- package/dist/lib/cronos/aa.js.map +1 -0
- package/dist/lib/cronos/facilitator.d.ts +87 -0
- package/dist/lib/cronos/facilitator.d.ts.map +1 -0
- package/dist/lib/cronos/facilitator.js +183 -0
- package/dist/lib/cronos/facilitator.js.map +1 -0
- package/dist/lib/evm.d.ts +45 -0
- package/dist/lib/evm.d.ts.map +1 -0
- package/dist/lib/evm.js +78 -0
- package/dist/lib/evm.js.map +1 -0
- package/dist/lib/mockData.d.ts +26 -0
- package/dist/lib/mockData.d.ts.map +1 -0
- package/dist/lib/mockData.js +89 -0
- package/dist/lib/mockData.js.map +1 -0
- package/dist/lib/models.d.ts +122 -0
- package/dist/lib/models.d.ts.map +1 -0
- package/dist/lib/models.js +174 -0
- package/dist/lib/models.js.map +1 -0
- package/dist/lib/multimodal.d.ts +53 -0
- package/dist/lib/multimodal.d.ts.map +1 -0
- package/dist/lib/multimodal.js +204 -0
- package/dist/lib/multimodal.js.map +1 -0
- package/dist/lib/payment.d.ts +67 -0
- package/dist/lib/payment.d.ts.map +1 -0
- package/dist/lib/payment.js +236 -0
- package/dist/lib/payment.js.map +1 -0
- package/dist/lib/pinata.d.ts +140 -0
- package/dist/lib/pinata.d.ts.map +1 -0
- package/dist/lib/pinata.js +209 -0
- package/dist/lib/pinata.js.map +1 -0
- package/dist/lib/queryClient.d.ts +9 -0
- package/dist/lib/queryClient.d.ts.map +1 -0
- package/dist/lib/queryClient.js +42 -0
- package/dist/lib/queryClient.js.map +1 -0
- package/dist/lib/services.d.ts +164 -0
- package/dist/lib/services.d.ts.map +1 -0
- package/dist/lib/services.js +304 -0
- package/dist/lib/services.js.map +1 -0
- package/dist/lib/share.d.ts +12 -0
- package/dist/lib/share.d.ts.map +1 -0
- package/dist/lib/share.js +39 -0
- package/dist/lib/share.js.map +1 -0
- package/dist/lib/triggers.d.ts +128 -0
- package/dist/lib/triggers.d.ts.map +1 -0
- package/dist/lib/triggers.js +305 -0
- package/dist/lib/triggers.js.map +1 -0
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/tailwind/preset.d.ts +282 -0
- package/dist/tailwind/preset.d.ts.map +1 -0
- package/dist/tailwind/preset.js +144 -0
- package/dist/tailwind/preset.js.map +1 -0
- package/package.json +9 -45
|
@@ -0,0 +1,716 @@
|
|
|
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
|