@rpcbase/agents-sdk 0.0.0
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/agents-sdk.css +3 -0
- package/dist/api/apiErrors.d.ts +7 -0
- package/dist/api/apiErrors.d.ts.map +1 -0
- package/dist/api/chat/handler.d.ts +22 -0
- package/dist/api/chat/handler.d.ts.map +1 -0
- package/dist/api/chat/index.d.ts +7 -0
- package/dist/api/chat/index.d.ts.map +1 -0
- package/dist/api/chat/messages/handler.d.ts +4 -0
- package/dist/api/chat/messages/handler.d.ts.map +1 -0
- package/dist/api/chat/messages/index.d.ts +7 -0
- package/dist/api/chat/messages/index.d.ts.map +1 -0
- package/dist/api/chat/messages/trailing/handler.d.ts +4 -0
- package/dist/api/chat/messages/trailing/handler.d.ts.map +1 -0
- package/dist/api/chat/messages/trailing/index.d.ts +9 -0
- package/dist/api/chat/messages/trailing/index.d.ts.map +1 -0
- package/dist/api/chat/models.d.ts +13 -0
- package/dist/api/chat/models.d.ts.map +1 -0
- package/dist/api/chat/prompts.d.ts +21 -0
- package/dist/api/chat/prompts.d.ts.map +1 -0
- package/dist/api/chat/resumableSse.d.ts +31 -0
- package/dist/api/chat/resumableSse.d.ts.map +1 -0
- package/dist/api/chat/runtimeConfig.d.ts +49 -0
- package/dist/api/chat/runtimeConfig.d.ts.map +1 -0
- package/dist/api/chat/stream/handler.d.ts +4 -0
- package/dist/api/chat/stream/handler.d.ts.map +1 -0
- package/dist/api/chat/stream/index.d.ts +7 -0
- package/dist/api/chat/stream/index.d.ts.map +1 -0
- package/dist/api/chat/titles.d.ts +5 -0
- package/dist/api/chat/titles.d.ts.map +1 -0
- package/dist/api/chat/tools.d.ts +95 -0
- package/dist/api/chat/tools.d.ts.map +1 -0
- package/dist/api/chatCtx.d.ts +11 -0
- package/dist/api/chatCtx.d.ts.map +1 -0
- package/dist/api/chatDb.d.ts +65 -0
- package/dist/api/chatDb.d.ts.map +1 -0
- package/dist/api/chatStore.d.ts +101 -0
- package/dist/api/chatStore.d.ts.map +1 -0
- package/dist/api/document/handler.d.ts +4 -0
- package/dist/api/document/handler.d.ts.map +1 -0
- package/dist/api/document/index.d.ts +7 -0
- package/dist/api/document/index.d.ts.map +1 -0
- package/dist/api/history/handler.d.ts +4 -0
- package/dist/api/history/handler.d.ts.map +1 -0
- package/dist/api/history/index.d.ts +7 -0
- package/dist/api/history/index.d.ts.map +1 -0
- package/dist/api/ping/handler.d.ts +4 -0
- package/dist/api/ping/handler.d.ts.map +1 -0
- package/dist/api/ping/index.d.ts +9 -0
- package/dist/api/ping/index.d.ts.map +1 -0
- package/dist/api/session/tenant/handler.d.ts +4 -0
- package/dist/api/session/tenant/handler.d.ts.map +1 -0
- package/dist/api/session/tenant/index.d.ts +12 -0
- package/dist/api/session/tenant/index.d.ts.map +1 -0
- package/dist/api/stream-test/handler.d.ts +4 -0
- package/dist/api/stream-test/handler.d.ts.map +1 -0
- package/dist/api/stream-test/index.d.ts +7 -0
- package/dist/api/stream-test/index.d.ts.map +1 -0
- package/dist/api/suggestions/handler.d.ts +4 -0
- package/dist/api/suggestions/handler.d.ts.map +1 -0
- package/dist/api/suggestions/index.d.ts +7 -0
- package/dist/api/suggestions/index.d.ts.map +1 -0
- package/dist/api/test/reset/handler.d.ts +4 -0
- package/dist/api/test/reset/handler.d.ts.map +1 -0
- package/dist/api/test/reset/index.d.ts +9 -0
- package/dist/api/test/reset/index.d.ts.map +1 -0
- package/dist/api/upload/handler.d.ts +4 -0
- package/dist/api/upload/handler.d.ts.map +1 -0
- package/dist/api/upload/index.d.ts +7 -0
- package/dist/api/upload/index.d.ts.map +1 -0
- package/dist/api/vote/handler.d.ts +4 -0
- package/dist/api/vote/handler.d.ts.map +1 -0
- package/dist/api/vote/index.d.ts +7 -0
- package/dist/api/vote/index.d.ts.map +1 -0
- package/dist/apiErrors-CFUx-UrE.js +18 -0
- package/dist/apiErrors-mOJbPi7h.js +18 -0
- package/dist/artifacts/actions.d.ts +4 -0
- package/dist/artifacts/actions.d.ts.map +1 -0
- package/dist/artifacts/code/client.d.ts +8 -0
- package/dist/artifacts/code/client.d.ts.map +1 -0
- package/dist/artifacts/image/client.d.ts +3 -0
- package/dist/artifacts/image/client.d.ts.map +1 -0
- package/dist/artifacts/sheet/client.d.ts +3 -0
- package/dist/artifacts/sheet/client.d.ts.map +1 -0
- package/dist/artifacts/text/client.d.ts +8 -0
- package/dist/artifacts/text/client.d.ts.map +1 -0
- package/dist/chat-models.browser.js +2 -0
- package/dist/chat-models.d.ts +2 -0
- package/dist/chat-models.d.ts.map +1 -0
- package/dist/chat-models.js +2 -0
- package/dist/chatCtx-BsPi6PAE.js +29 -0
- package/dist/chatCtx-DSgD1fix.js +27 -0
- package/dist/chatDb-CpCFaAxK.js +243 -0
- package/dist/chatDb-hVHCr0j0.js +243 -0
- package/dist/chunk-BO2N2NFS-BPN4woGc.js +19355 -0
- package/dist/client-routes.browser.js +136 -0
- package/dist/client-routes.d.ts +12 -0
- package/dist/client-routes.d.ts.map +1 -0
- package/dist/client-routes.js +136 -0
- package/dist/components/AppErrorExtra.d.ts +7 -0
- package/dist/components/AppErrorExtra.d.ts.map +1 -0
- package/dist/components/agents-chat-navigation.d.ts +14 -0
- package/dist/components/agents-chat-navigation.d.ts.map +1 -0
- package/dist/components/agents-chat-route-layout.d.ts +19 -0
- package/dist/components/agents-chat-route-layout.d.ts.map +1 -0
- package/dist/components/ai-elements/artifact.d.ts +24 -0
- package/dist/components/ai-elements/artifact.d.ts.map +1 -0
- package/dist/components/ai-elements/canvas.d.ts +9 -0
- package/dist/components/ai-elements/canvas.d.ts.map +1 -0
- package/dist/components/ai-elements/chain-of-thought.d.ts +30 -0
- package/dist/components/ai-elements/chain-of-thought.d.ts.map +1 -0
- package/dist/components/ai-elements/checkpoint.d.ts +12 -0
- package/dist/components/ai-elements/checkpoint.d.ts.map +1 -0
- package/dist/components/ai-elements/code-block.d.ts +18 -0
- package/dist/components/ai-elements/code-block.d.ts.map +1 -0
- package/dist/components/ai-elements/confirmation.d.ts +50 -0
- package/dist/components/ai-elements/confirmation.d.ts.map +1 -0
- package/dist/components/ai-elements/connection.d.ts +3 -0
- package/dist/components/ai-elements/connection.d.ts.map +1 -0
- package/dist/components/ai-elements/controls.d.ts +5 -0
- package/dist/components/ai-elements/controls.d.ts.map +1 -0
- package/dist/components/ai-elements/conversation.d.ts +16 -0
- package/dist/components/ai-elements/conversation.d.ts.map +1 -0
- package/dist/components/ai-elements/edge.d.ts +6 -0
- package/dist/components/ai-elements/edge.d.ts.map +1 -0
- package/dist/components/ai-elements/image.d.ts +7 -0
- package/dist/components/ai-elements/image.d.ts.map +1 -0
- package/dist/components/ai-elements/inline-citation.d.ts +39 -0
- package/dist/components/ai-elements/inline-citation.d.ts.map +1 -0
- package/dist/components/ai-elements/loader.d.ts +6 -0
- package/dist/components/ai-elements/loader.d.ts.map +1 -0
- package/dist/components/ai-elements/message.d.ts +47 -0
- package/dist/components/ai-elements/message.d.ts.map +1 -0
- package/dist/components/ai-elements/model-selector.d.ts +37 -0
- package/dist/components/ai-elements/model-selector.d.ts.map +1 -0
- package/dist/components/ai-elements/node.d.ts +22 -0
- package/dist/components/ai-elements/node.d.ts.map +1 -0
- package/dist/components/ai-elements/open-in-chat.d.ts +29 -0
- package/dist/components/ai-elements/open-in-chat.d.ts.map +1 -0
- package/dist/components/ai-elements/panel.d.ts +6 -0
- package/dist/components/ai-elements/panel.d.ts.map +1 -0
- package/dist/components/ai-elements/plan.d.ts +26 -0
- package/dist/components/ai-elements/plan.d.ts.map +1 -0
- package/dist/components/ai-elements/prompt-input.d.ts +188 -0
- package/dist/components/ai-elements/prompt-input.d.ts.map +1 -0
- package/dist/components/ai-elements/queue.d.ts +62 -0
- package/dist/components/ai-elements/queue.d.ts.map +1 -0
- package/dist/components/ai-elements/reasoning.d.ts +27 -0
- package/dist/components/ai-elements/reasoning.d.ts.map +1 -0
- package/dist/components/ai-elements/shimmer.d.ts +10 -0
- package/dist/components/ai-elements/shimmer.d.ts.map +1 -0
- package/dist/components/ai-elements/sources.d.ts +13 -0
- package/dist/components/ai-elements/sources.d.ts.map +1 -0
- package/dist/components/ai-elements/suggestion.d.ts +11 -0
- package/dist/components/ai-elements/suggestion.d.ts.map +1 -0
- package/dist/components/ai-elements/task.d.ts +15 -0
- package/dist/components/ai-elements/task.d.ts.map +1 -0
- package/dist/components/ai-elements/tool.d.ts +32 -0
- package/dist/components/ai-elements/tool.d.ts.map +1 -0
- package/dist/components/ai-elements/toolbar.d.ts +6 -0
- package/dist/components/ai-elements/toolbar.d.ts.map +1 -0
- package/dist/components/ai-elements/web-preview.d.ts +35 -0
- package/dist/components/ai-elements/web-preview.d.ts.map +1 -0
- package/dist/components/artifact-actions.d.ts +15 -0
- package/dist/components/artifact-actions.d.ts.map +1 -0
- package/dist/components/artifact-close-button.d.ts +4 -0
- package/dist/components/artifact-close-button.d.ts.map +1 -0
- package/dist/components/artifact-messages.d.ts +19 -0
- package/dist/components/artifact-messages.d.ts.map +1 -0
- package/dist/components/artifact.d.ts +44 -0
- package/dist/components/artifact.d.ts.map +1 -0
- package/dist/components/chat.d.ts +9 -0
- package/dist/components/chat.d.ts.map +1 -0
- package/dist/components/code-editor.d.ts +13 -0
- package/dist/components/code-editor.d.ts.map +1 -0
- package/dist/components/console.d.ts +17 -0
- package/dist/components/console.d.ts.map +1 -0
- package/dist/components/create-artifact.d.ts +78 -0
- package/dist/components/create-artifact.d.ts.map +1 -0
- package/dist/components/data-stream-handler.d.ts +2 -0
- package/dist/components/data-stream-handler.d.ts.map +1 -0
- package/dist/components/data-stream-provider.d.ts +13 -0
- package/dist/components/data-stream-provider.d.ts.map +1 -0
- package/dist/components/diffview.d.ts +7 -0
- package/dist/components/diffview.d.ts.map +1 -0
- package/dist/components/document-preview.d.ts +17 -0
- package/dist/components/document-preview.d.ts.map +1 -0
- package/dist/components/document-skeleton.d.ts +6 -0
- package/dist/components/document-skeleton.d.ts.map +1 -0
- package/dist/components/document.d.ts +29 -0
- package/dist/components/document.d.ts.map +1 -0
- package/dist/components/elements/actions.d.ts +10 -0
- package/dist/components/elements/actions.d.ts.map +1 -0
- package/dist/components/elements/branch.d.ts +21 -0
- package/dist/components/elements/branch.d.ts.map +1 -0
- package/dist/components/elements/code-block.d.ts +16 -0
- package/dist/components/elements/code-block.d.ts.map +1 -0
- package/dist/components/elements/conversation.d.ts +10 -0
- package/dist/components/elements/conversation.d.ts.map +1 -0
- package/dist/components/elements/image.d.ts +7 -0
- package/dist/components/elements/image.d.ts.map +1 -0
- package/dist/components/elements/inline-citation.d.ts +39 -0
- package/dist/components/elements/inline-citation.d.ts.map +1 -0
- package/dist/components/elements/loader.d.ts +6 -0
- package/dist/components/elements/loader.d.ts.map +1 -0
- package/dist/components/elements/message.d.ts +15 -0
- package/dist/components/elements/message.d.ts.map +1 -0
- package/dist/components/elements/prompt-input.d.ts +33 -0
- package/dist/components/elements/prompt-input.d.ts.map +1 -0
- package/dist/components/elements/reasoning.d.ts +17 -0
- package/dist/components/elements/reasoning.d.ts.map +1 -0
- package/dist/components/elements/response.d.ts +9 -0
- package/dist/components/elements/response.d.ts.map +1 -0
- package/dist/components/elements/source.d.ts +13 -0
- package/dist/components/elements/source.d.ts.map +1 -0
- package/dist/components/elements/suggestion.d.ts +11 -0
- package/dist/components/elements/suggestion.d.ts.map +1 -0
- package/dist/components/elements/task.d.ts +15 -0
- package/dist/components/elements/task.d.ts.map +1 -0
- package/dist/components/elements/tool.d.ts +23 -0
- package/dist/components/elements/tool.d.ts.map +1 -0
- package/dist/components/elements/web-preview.d.ts +35 -0
- package/dist/components/elements/web-preview.d.ts.map +1 -0
- package/dist/components/greeting.d.ts +2 -0
- package/dist/components/greeting.d.ts.map +1 -0
- package/dist/components/icons.d.ts +168 -0
- package/dist/components/icons.d.ts.map +1 -0
- package/dist/components/image-editor.d.ts +11 -0
- package/dist/components/image-editor.d.ts.map +1 -0
- package/dist/components/message-actions.d.ts +11 -0
- package/dist/components/message-actions.d.ts.map +1 -0
- package/dist/components/message-editor.d.ts +11 -0
- package/dist/components/message-editor.d.ts.map +1 -0
- package/dist/components/message-reasoning.d.ts +7 -0
- package/dist/components/message-reasoning.d.ts.map +1 -0
- package/dist/components/message.d.ts +19 -0
- package/dist/components/message.d.ts.map +1 -0
- package/dist/components/messages.d.ts +19 -0
- package/dist/components/messages.d.ts.map +1 -0
- package/dist/components/multimodal-input.d.ts +25 -0
- package/dist/components/multimodal-input.d.ts.map +1 -0
- package/dist/components/preview-attachment.d.ts +7 -0
- package/dist/components/preview-attachment.d.ts.map +1 -0
- package/dist/components/sheet-editor.d.ts +10 -0
- package/dist/components/sheet-editor.d.ts.map +1 -0
- package/dist/components/sidebar-history-item.d.ts +11 -0
- package/dist/components/sidebar-history-item.d.ts.map +1 -0
- package/dist/components/sidebar-history.d.ts +30 -0
- package/dist/components/sidebar-history.d.ts.map +1 -0
- package/dist/components/submit-button.d.ts +5 -0
- package/dist/components/submit-button.d.ts.map +1 -0
- package/dist/components/suggested-actions.d.ts +10 -0
- package/dist/components/suggested-actions.d.ts.map +1 -0
- package/dist/components/suggestion.d.ts +8 -0
- package/dist/components/suggestion.d.ts.map +1 -0
- package/dist/components/text-editor.d.ts +13 -0
- package/dist/components/text-editor.d.ts.map +1 -0
- package/dist/components/theme-provider.d.ts +15 -0
- package/dist/components/theme-provider.d.ts.map +1 -0
- package/dist/components/toolbar.d.ts +24 -0
- package/dist/components/toolbar.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +30 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/base-ui.d.ts +10 -0
- package/dist/components/ui/base-ui.d.ts.map +1 -0
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +14 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/collapsible.d.ts +17 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/command.d.ts +30 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +26 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +43 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/hover-card.d.ts +16 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/input-group.d.ts +17 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/progress.d.ts +6 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +26 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +8 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts +32 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/sidebar.d.ts.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/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +16 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/version-footer.d.ts +9 -0
- package/dist/components/version-footer.d.ts.map +1 -0
- package/dist/components/weather.d.ts +43 -0
- package/dist/components/weather.d.ts.map +1 -0
- package/dist/data-stream-handler-C52UbdEi.js +56614 -0
- package/dist/data-stream-handler-CNnuA7AX.js +56634 -0
- package/dist/handler-B3iF4jS4.js +59 -0
- package/dist/handler-B4PUL3Fm.js +21 -0
- package/dist/handler-BU60I9Tt.js +15 -0
- package/dist/handler-Bb3YEDwz.js +30 -0
- package/dist/handler-C2MJfgeU.js +15 -0
- package/dist/handler-CDFg5cLB.js +11 -0
- package/dist/handler-CSLr0jTM.js +18 -0
- package/dist/handler-CZ-GUuYr.js +40 -0
- package/dist/handler-Cj0HdsW_.js +18 -0
- package/dist/handler-CqGNfGKS.js +996 -0
- package/dist/handler-Ct7ZyGSn.js +18 -0
- package/dist/handler-CwGQ3dV4.js +40 -0
- package/dist/handler-CxfBBYhN.js +71 -0
- package/dist/handler-CzHg9puj.js +71 -0
- package/dist/handler-CzKTKfwA.js +19 -0
- package/dist/handler-DAjf6ro0.js +19 -0
- package/dist/handler-DBFa5_B9.js +19 -0
- package/dist/handler-DF3WRSDj.js +11 -0
- package/dist/handler-DN-H4zmz.js +19 -0
- package/dist/handler-DRk4qlh0.js +30 -0
- package/dist/handler-Df8dOV-8.js +21 -0
- package/dist/handler-Dmw-3E9n.js +59 -0
- package/dist/handler-ImeP5Thm.js +990 -0
- package/dist/handler-_UsjVWVA.js +19 -0
- package/dist/handler-oJ8qxBLd.js +19 -0
- package/dist/handler-uF8GJoVX.js +18 -0
- package/dist/highlighted-body-OFNGDK62-sht-Taf2.js +36 -0
- package/dist/hooks/use-artifact.d.ts +12 -0
- package/dist/hooks/use-artifact.d.ts.map +1 -0
- package/dist/hooks/use-auto-resume.d.ts +10 -0
- package/dist/hooks/use-auto-resume.d.ts.map +1 -0
- package/dist/hooks/use-controllable-state.d.ts +8 -0
- package/dist/hooks/use-controllable-state.d.ts.map +1 -0
- package/dist/hooks/use-messages.d.ts +14 -0
- package/dist/hooks/use-messages.d.ts.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-scroll-to-bottom.d.ts +9 -0
- package/dist/hooks/use-scroll-to-bottom.d.ts.map +1 -0
- package/dist/index.browser.js +5 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/lib/ai/models.d.ts +11 -0
- package/dist/lib/ai/models.d.ts.map +1 -0
- package/dist/lib/ai/openai-reasoning.d.ts +10 -0
- package/dist/lib/ai/openai-reasoning.d.ts.map +1 -0
- package/dist/lib/db/schema.d.ts +42 -0
- package/dist/lib/db/schema.d.ts.map +1 -0
- package/dist/lib/editor/config.d.ts +12 -0
- package/dist/lib/editor/config.d.ts.map +1 -0
- package/dist/lib/editor/functions.d.ts +7 -0
- package/dist/lib/editor/functions.d.ts.map +1 -0
- package/dist/lib/editor/react-renderer.d.ts +6 -0
- package/dist/lib/editor/react-renderer.d.ts.map +1 -0
- package/dist/lib/editor/suggestions.d.ts +20 -0
- package/dist/lib/editor/suggestions.d.ts.map +1 -0
- package/dist/lib/errors.d.ts +14 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/react-external-store.d.ts +6 -0
- package/dist/lib/react-external-store.d.ts.map +1 -0
- package/dist/lib/tenant.d.ts +10 -0
- package/dist/lib/tenant.d.ts.map +1 -0
- package/dist/lib/types.d.ts +34 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +22 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/loaders/chatLoader.d.ts +12 -0
- package/dist/loaders/chatLoader.d.ts.map +1 -0
- package/dist/loaders/newChatLoader.d.ts +10 -0
- package/dist/loaders/newChatLoader.d.ts.map +1 -0
- package/dist/loaders/rootLoader.d.ts +13 -0
- package/dist/loaders/rootLoader.d.ts.map +1 -0
- package/dist/mermaid-GHXKKRXX-Sdy-PZiv.js +2 -0
- package/dist/models/RBAgentsChatDocument.d.ts +13 -0
- package/dist/models/RBAgentsChatDocument.d.ts.map +1 -0
- package/dist/models/RBAgentsChatMessage.d.ts +14 -0
- package/dist/models/RBAgentsChatMessage.d.ts.map +1 -0
- package/dist/models/RBAgentsChatSuggestion.d.ts +16 -0
- package/dist/models/RBAgentsChatSuggestion.d.ts.map +1 -0
- package/dist/models/RBAgentsChatThread.d.ts +13 -0
- package/dist/models/RBAgentsChatThread.d.ts.map +1 -0
- package/dist/models/RBAgentsChatVote.d.ts +11 -0
- package/dist/models/RBAgentsChatVote.d.ts.map +1 -0
- package/dist/models/RBAgentsPrompt.d.ts +11 -0
- package/dist/models/RBAgentsPrompt.d.ts.map +1 -0
- package/dist/models/index.browser.d.ts +30 -0
- package/dist/models/index.browser.d.ts.map +1 -0
- package/dist/models/index.d.ts +211 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models-CF61gMjU.js +29 -0
- package/dist/models-DUt7W9lV.js +29 -0
- package/dist/models.browser.js +51 -0
- package/dist/models.js +264 -0
- package/dist/openai-reasoning-ARz6ZvZ_.js +19 -0
- package/dist/openai-reasoning-jbPa-xup.js +19 -0
- package/dist/pages/ChatNewPage.d.ts +2 -0
- package/dist/pages/ChatNewPage.d.ts.map +1 -0
- package/dist/pages/ChatPage.d.ts +2 -0
- package/dist/pages/ChatPage.d.ts.map +1 -0
- package/dist/pages/NotFoundPage.d.ts +2 -0
- package/dist/pages/NotFoundPage.d.ts.map +1 -0
- package/dist/resumableSse-BRFonw_y.js +106 -0
- package/dist/resumableSse-DnlE4O7h.js +106 -0
- package/dist/routes.browser.js +18 -0
- package/dist/routes.d.ts +2 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/routes.js +18 -0
- package/dist/runtime.d.ts +20 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +10 -0
- package/package.json +209 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { c as e, h as t, l as n, n as r, o as i, r as a, s as o, t as s } from "./data-stream-handler-C52UbdEi.js";
|
|
2
|
+
import "./models-DUt7W9lV.js";
|
|
3
|
+
import { Link as c, Route as l, redirect as u, useLoaderData as d, useRouteLoaderData as f } from "@rpcbase/router";
|
|
4
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
|
+
import { RouteErrorBoundary as g } from "@rpcbase/client";
|
|
6
|
+
//#region src/components/AppErrorExtra.tsx
|
|
7
|
+
var _ = (e) => /* @__PURE__ */ m(p, { children: /* @__PURE__ */ m("a", {
|
|
8
|
+
href: "/",
|
|
9
|
+
className: "rounded-md bg-gray-900 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm transition hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",
|
|
10
|
+
children: /* @__PURE__ */ m("span", { children: "Retour à l’accueil" })
|
|
11
|
+
}) }), v = "http://localhost:9292", y = (e) => {
|
|
12
|
+
let t = e?.req?.get?.("host") || e?.req?.headers?.host, n = e?.req?.protocol || "http";
|
|
13
|
+
return t ? `${n}://${t}` : (typeof window < "u" ? window.location?.origin : null) || (typeof process < "u" ? process.env.AGENT_SDK_APP_BASE_URL : null) || v;
|
|
14
|
+
}, b = (e) => n(e.request?.url || e?.ctx?.req?.originalUrl || e?.ctx?.req?.url) ?? o(), x = (t, n) => {
|
|
15
|
+
let r = { ...e(n) }, i = t?.req?.headers?.cookie;
|
|
16
|
+
return i && (r.cookie = i), r;
|
|
17
|
+
}, S = async ({ ctx: e, requestPath: t, tenantId: n }) => {
|
|
18
|
+
let r = y(e), i = new URL(t, r), a = await fetch(i, {
|
|
19
|
+
headers: x(e, n),
|
|
20
|
+
credentials: "include",
|
|
21
|
+
cache: "no-store"
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
response: a,
|
|
25
|
+
json: await a.json().catch(() => null)
|
|
26
|
+
};
|
|
27
|
+
}, C = async (e) => {
|
|
28
|
+
let t = e?.params?.id;
|
|
29
|
+
if (typeof t != "string" || t.trim() === "") throw u("..");
|
|
30
|
+
let n = b(e), { response: r } = await S({
|
|
31
|
+
ctx: e?.ctx,
|
|
32
|
+
requestPath: `/api/rb/agents/chat?id=${encodeURIComponent(t)}`,
|
|
33
|
+
tenantId: n
|
|
34
|
+
});
|
|
35
|
+
if (r.status === 404) throw u("..");
|
|
36
|
+
if (!r.ok) throw Error(`Failed to load chat ${t}`);
|
|
37
|
+
let { response: a, json: o } = await S({
|
|
38
|
+
ctx: e?.ctx,
|
|
39
|
+
requestPath: `/api/rb/agents/chat/messages?id=${encodeURIComponent(t)}`,
|
|
40
|
+
tenantId: n
|
|
41
|
+
});
|
|
42
|
+
if (!a.ok) throw Error(`Failed to load chat messages for ${t}`);
|
|
43
|
+
return {
|
|
44
|
+
chatId: t,
|
|
45
|
+
initialMessages: i(Array.isArray(o) ? o : [])
|
|
46
|
+
};
|
|
47
|
+
}, w = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
48
|
+
let t = Math.floor(Math.random() * 16);
|
|
49
|
+
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
50
|
+
}), T = () => {
|
|
51
|
+
let e = globalThis.crypto;
|
|
52
|
+
return e && "randomUUID" in e && typeof e.randomUUID == "function" ? e.randomUUID() : w();
|
|
53
|
+
}, E = async () => ({ chatId: T() });
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/pages/ChatNewPage.tsx
|
|
56
|
+
function D() {
|
|
57
|
+
let { chatId: e } = d();
|
|
58
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(r, {
|
|
59
|
+
autoResume: !1,
|
|
60
|
+
id: e,
|
|
61
|
+
initialChatModel: f("root")?.chatModel ?? "openai/gpt-5.4-mini",
|
|
62
|
+
initialMessages: [],
|
|
63
|
+
isReadonly: !1
|
|
64
|
+
}, e), /* @__PURE__ */ m(s, {})] });
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/pages/ChatPage.tsx
|
|
68
|
+
function O() {
|
|
69
|
+
let { chatId: e, initialMessages: t } = d();
|
|
70
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(r, {
|
|
71
|
+
autoResume: !0,
|
|
72
|
+
id: e,
|
|
73
|
+
initialChatModel: f("root")?.chatModel ?? "openai/gpt-5.4-mini",
|
|
74
|
+
initialMessages: t,
|
|
75
|
+
isReadonly: !1
|
|
76
|
+
}), /* @__PURE__ */ m(s, {})] });
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/pages/NotFoundPage.tsx
|
|
80
|
+
function k() {
|
|
81
|
+
let { getNewChatPath: e } = t();
|
|
82
|
+
return /* @__PURE__ */ m("div", {
|
|
83
|
+
className: "h-full min-h-0 p-6",
|
|
84
|
+
children: /* @__PURE__ */ h("div", {
|
|
85
|
+
className: "mx-auto max-w-2xl space-y-3",
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ m("h1", {
|
|
88
|
+
className: "text-xl font-semibold",
|
|
89
|
+
children: /* @__PURE__ */ m("span", { children: "404" })
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ m("p", {
|
|
92
|
+
className: "text-sm text-gray-600",
|
|
93
|
+
children: /* @__PURE__ */ m("span", { children: "Page introuvable." })
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ m(c, {
|
|
96
|
+
className: "text-sm font-semibold text-gray-900 underline",
|
|
97
|
+
to: e(),
|
|
98
|
+
children: /* @__PURE__ */ m("span", { children: "Retour" })
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/client-routes.tsx
|
|
106
|
+
function A({ sidebarActions: e, theme: t, title: n } = {}) {
|
|
107
|
+
return /* @__PURE__ */ m(l, {
|
|
108
|
+
errorElement: /* @__PURE__ */ m(g, { renderErrorExtra: (e) => /* @__PURE__ */ m(_, { state: e }) }),
|
|
109
|
+
children: /* @__PURE__ */ h(l, {
|
|
110
|
+
element: /* @__PURE__ */ m(a, {
|
|
111
|
+
sidebarActions: e,
|
|
112
|
+
theme: t,
|
|
113
|
+
title: n
|
|
114
|
+
}),
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ m(l, {
|
|
117
|
+
element: /* @__PURE__ */ m(D, {}),
|
|
118
|
+
index: !0,
|
|
119
|
+
loader: E
|
|
120
|
+
}),
|
|
121
|
+
/* @__PURE__ */ m(l, {
|
|
122
|
+
element: /* @__PURE__ */ m(O, {}),
|
|
123
|
+
loader: C,
|
|
124
|
+
path: "chat/:id"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ m(l, {
|
|
127
|
+
element: /* @__PURE__ */ m(k, {}),
|
|
128
|
+
path: "*"
|
|
129
|
+
})
|
|
130
|
+
]
|
|
131
|
+
})
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
var j = A();
|
|
135
|
+
//#endregion
|
|
136
|
+
export { j as agentsSdkClientRoutes, j as default, A as createAgentsSdkClientRoutes };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./agents-sdk.css";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { AgentsSdkTheme } from "@/components/theme-provider";
|
|
4
|
+
export type AgentsSdkClientRoutesOptions = {
|
|
5
|
+
sidebarActions?: ReactNode;
|
|
6
|
+
theme?: AgentsSdkTheme;
|
|
7
|
+
title?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function createAgentsSdkClientRoutes({ sidebarActions, theme, title, }?: AgentsSdkClientRoutesOptions): import("react").JSX.Element;
|
|
10
|
+
export declare const agentsSdkClientRoutes: import("react").JSX.Element;
|
|
11
|
+
export default agentsSdkClientRoutes;
|
|
12
|
+
//# sourceMappingURL=client-routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-routes.d.ts","sourceRoot":"","sources":["../src/client-routes.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAQjE,MAAM,MAAM,4BAA4B,GAAG;IACzC,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,wBAAgB,2BAA2B,CAAC,EAC1C,cAAc,EACd,KAAK,EACL,KAAK,GACN,GAAE,4BAAiC,+BAwBnC;AAED,eAAO,MAAM,qBAAqB,6BAAgC,CAAA;AAElE,eAAe,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { c as e, h as t, l as n, n as r, o as i, r as a, s as o, t as s } from "./data-stream-handler-CNnuA7AX.js";
|
|
2
|
+
import "./models-CF61gMjU.js";
|
|
3
|
+
import { Link as c, Route as l, redirect as u, useLoaderData as d, useRouteLoaderData as f } from "@rpcbase/router";
|
|
4
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
|
+
import { RouteErrorBoundary as g } from "@rpcbase/client";
|
|
6
|
+
//#region src/components/AppErrorExtra.tsx
|
|
7
|
+
var _ = (e) => /* @__PURE__ */ m(p, { children: /* @__PURE__ */ m("a", {
|
|
8
|
+
href: "/",
|
|
9
|
+
className: "rounded-md bg-gray-900 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm transition hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",
|
|
10
|
+
children: /* @__PURE__ */ m("span", { children: "Retour à l’accueil" })
|
|
11
|
+
}) }), v = "http://localhost:9292", y = (e) => {
|
|
12
|
+
let t = e?.req?.get?.("host") || e?.req?.headers?.host, n = e?.req?.protocol || "http";
|
|
13
|
+
return t ? `${n}://${t}` : (typeof window < "u" ? window.location?.origin : null) || (typeof process < "u" ? process.env.AGENT_SDK_APP_BASE_URL : null) || v;
|
|
14
|
+
}, b = (e) => n(e.request?.url || e?.ctx?.req?.originalUrl || e?.ctx?.req?.url) ?? o(), x = (t, n) => {
|
|
15
|
+
let r = { ...e(n) }, i = t?.req?.headers?.cookie;
|
|
16
|
+
return i && (r.cookie = i), r;
|
|
17
|
+
}, S = async ({ ctx: e, requestPath: t, tenantId: n }) => {
|
|
18
|
+
let r = y(e), i = new URL(t, r), a = await fetch(i, {
|
|
19
|
+
headers: x(e, n),
|
|
20
|
+
credentials: "include",
|
|
21
|
+
cache: "no-store"
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
response: a,
|
|
25
|
+
json: await a.json().catch(() => null)
|
|
26
|
+
};
|
|
27
|
+
}, C = async (e) => {
|
|
28
|
+
let t = e?.params?.id;
|
|
29
|
+
if (typeof t != "string" || t.trim() === "") throw u("..");
|
|
30
|
+
let n = b(e), { response: r } = await S({
|
|
31
|
+
ctx: e?.ctx,
|
|
32
|
+
requestPath: `/api/rb/agents/chat?id=${encodeURIComponent(t)}`,
|
|
33
|
+
tenantId: n
|
|
34
|
+
});
|
|
35
|
+
if (r.status === 404) throw u("..");
|
|
36
|
+
if (!r.ok) throw Error(`Failed to load chat ${t}`);
|
|
37
|
+
let { response: a, json: o } = await S({
|
|
38
|
+
ctx: e?.ctx,
|
|
39
|
+
requestPath: `/api/rb/agents/chat/messages?id=${encodeURIComponent(t)}`,
|
|
40
|
+
tenantId: n
|
|
41
|
+
});
|
|
42
|
+
if (!a.ok) throw Error(`Failed to load chat messages for ${t}`);
|
|
43
|
+
return {
|
|
44
|
+
chatId: t,
|
|
45
|
+
initialMessages: i(Array.isArray(o) ? o : [])
|
|
46
|
+
};
|
|
47
|
+
}, w = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
48
|
+
let t = Math.floor(Math.random() * 16);
|
|
49
|
+
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
50
|
+
}), T = () => {
|
|
51
|
+
let e = globalThis.crypto;
|
|
52
|
+
return e && "randomUUID" in e && typeof e.randomUUID == "function" ? e.randomUUID() : w();
|
|
53
|
+
}, E = async () => ({ chatId: T() });
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/pages/ChatNewPage.tsx
|
|
56
|
+
function D() {
|
|
57
|
+
let { chatId: e } = d();
|
|
58
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(r, {
|
|
59
|
+
autoResume: !1,
|
|
60
|
+
id: e,
|
|
61
|
+
initialChatModel: f("root")?.chatModel ?? "openai/gpt-5.4-mini",
|
|
62
|
+
initialMessages: [],
|
|
63
|
+
isReadonly: !1
|
|
64
|
+
}, e), /* @__PURE__ */ m(s, {})] });
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/pages/ChatPage.tsx
|
|
68
|
+
function O() {
|
|
69
|
+
let { chatId: e, initialMessages: t } = d();
|
|
70
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(r, {
|
|
71
|
+
autoResume: !0,
|
|
72
|
+
id: e,
|
|
73
|
+
initialChatModel: f("root")?.chatModel ?? "openai/gpt-5.4-mini",
|
|
74
|
+
initialMessages: t,
|
|
75
|
+
isReadonly: !1
|
|
76
|
+
}), /* @__PURE__ */ m(s, {})] });
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/pages/NotFoundPage.tsx
|
|
80
|
+
function k() {
|
|
81
|
+
let { getNewChatPath: e } = t();
|
|
82
|
+
return /* @__PURE__ */ m("div", {
|
|
83
|
+
className: "h-full min-h-0 p-6",
|
|
84
|
+
children: /* @__PURE__ */ h("div", {
|
|
85
|
+
className: "mx-auto max-w-2xl space-y-3",
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ m("h1", {
|
|
88
|
+
className: "text-xl font-semibold",
|
|
89
|
+
children: /* @__PURE__ */ m("span", { children: "404" })
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ m("p", {
|
|
92
|
+
className: "text-sm text-gray-600",
|
|
93
|
+
children: /* @__PURE__ */ m("span", { children: "Page introuvable." })
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ m(c, {
|
|
96
|
+
className: "text-sm font-semibold text-gray-900 underline",
|
|
97
|
+
to: e(),
|
|
98
|
+
children: /* @__PURE__ */ m("span", { children: "Retour" })
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/client-routes.tsx
|
|
106
|
+
function A({ sidebarActions: e, theme: t, title: n } = {}) {
|
|
107
|
+
return /* @__PURE__ */ m(l, {
|
|
108
|
+
errorElement: /* @__PURE__ */ m(g, { renderErrorExtra: (e) => /* @__PURE__ */ m(_, { state: e }) }),
|
|
109
|
+
children: /* @__PURE__ */ h(l, {
|
|
110
|
+
element: /* @__PURE__ */ m(a, {
|
|
111
|
+
sidebarActions: e,
|
|
112
|
+
theme: t,
|
|
113
|
+
title: n
|
|
114
|
+
}),
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ m(l, {
|
|
117
|
+
element: /* @__PURE__ */ m(D, {}),
|
|
118
|
+
index: !0,
|
|
119
|
+
loader: E
|
|
120
|
+
}),
|
|
121
|
+
/* @__PURE__ */ m(l, {
|
|
122
|
+
element: /* @__PURE__ */ m(O, {}),
|
|
123
|
+
loader: C,
|
|
124
|
+
path: "chat/:id"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ m(l, {
|
|
127
|
+
element: /* @__PURE__ */ m(k, {}),
|
|
128
|
+
path: "*"
|
|
129
|
+
})
|
|
130
|
+
]
|
|
131
|
+
})
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
var j = A();
|
|
135
|
+
//#endregion
|
|
136
|
+
export { j as agentsSdkClientRoutes, j as default, A as createAgentsSdkClientRoutes };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SsrErrorStatePayload } from "@rpcbase/client";
|
|
2
|
+
type AppErrorExtraProps = {
|
|
3
|
+
state?: SsrErrorStatePayload;
|
|
4
|
+
};
|
|
5
|
+
export declare const AppErrorExtra: (_props: AppErrorExtraProps) => import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=AppErrorExtra.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppErrorExtra.d.ts","sourceRoot":"","sources":["../../src/components/AppErrorExtra.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAG3D,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,QAAQ,kBAAkB,gCAWvD,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type AgentsChatNavigation = {
|
|
3
|
+
getNewChatPath: () => string;
|
|
4
|
+
getChatPath: (chatId: string) => string;
|
|
5
|
+
};
|
|
6
|
+
export declare function AgentsChatNavigationProvider({ children, value, }: {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
value: AgentsChatNavigation;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export declare function useAgentsChatNavigation(): AgentsChatNavigation;
|
|
11
|
+
export declare function getChatIdFromPathname(pathname: string): string | null;
|
|
12
|
+
export declare function getAgentsChatBasePath(pathname: string): string;
|
|
13
|
+
export declare function joinAgentsChatPath(basePath: string, path: string): string;
|
|
14
|
+
//# sourceMappingURL=agents-chat-navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents-chat-navigation.d.ts","sourceRoot":"","sources":["../../src/components/agents-chat-navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjE,MAAM,MAAM,oBAAoB,GAAG;IACjC,cAAc,EAAE,MAAM,MAAM,CAAC;IAC7B,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;CACzC,CAAA;AAUD,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,oBAAoB,CAAC;CAC7B,+BAMA;AAED,wBAAgB,uBAAuB,yBAEtC;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,iBASrD;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,UAQrD;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAKhE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type SidebarHistoryState } from "@/components/sidebar-history";
|
|
3
|
+
import { type AgentsSdkTheme } from "@/components/theme-provider";
|
|
4
|
+
type AgentsChatRouteLayoutProps = {
|
|
5
|
+
sidebarActions?: ReactNode;
|
|
6
|
+
theme?: AgentsSdkTheme;
|
|
7
|
+
title?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function AgentsChatRouteLayout({ sidebarActions, theme, title, }: AgentsChatRouteLayoutProps): import("react").JSX.Element;
|
|
10
|
+
type AgentsChatSidebarPanelProps = {
|
|
11
|
+
historyState: SidebarHistoryState;
|
|
12
|
+
mode: "docked" | "floating" | "mobile";
|
|
13
|
+
onActiveChatTitleChange: (title: string | null) => void;
|
|
14
|
+
sidebarActions?: ReactNode;
|
|
15
|
+
startNewChat: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function AgentsChatSidebarPanel({ historyState, mode, onActiveChatTitleChange, sidebarActions, startNewChat, }: AgentsChatSidebarPanelProps): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=agents-chat-route-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents-chat-route-layout.d.ts","sourceRoot":"","sources":["../../src/components/agents-chat-route-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAkB3D,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAA2B,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAkB1F,KAAK,0BAA0B,GAAG;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AA8BD,wBAAgB,qBAAqB,CAAC,EACpC,cAAc,EACd,KAAK,EACL,KAAgB,GACjB,EAAE,0BAA0B,+BA+E5B;AA6LD,KAAK,2BAA2B,GAAG;IACjC,YAAY,EAAE,mBAAmB,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;IACvC,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACxD,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAA;AAED,wBAAgB,sBAAsB,CAAC,EACrC,YAAY,EACZ,IAAI,EACJ,uBAAuB,EACvB,cAAc,EACd,YAAY,GACb,EAAE,2BAA2B,+BAgC7B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type LucideIcon } from "lucide-react";
|
|
2
|
+
import type { ComponentProps, HTMLAttributes } from "react";
|
|
3
|
+
import { Button } from "@/components/ui/button";
|
|
4
|
+
export type ArtifactProps = HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
export declare const Artifact: ({ className, ...props }: ArtifactProps) => import("react").JSX.Element;
|
|
6
|
+
export type ArtifactHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
export declare const ArtifactHeader: ({ className, ...props }: ArtifactHeaderProps) => import("react").JSX.Element;
|
|
8
|
+
export type ArtifactCloseProps = ComponentProps<typeof Button>;
|
|
9
|
+
export declare const ArtifactClose: ({ className, children, size, variant, ...props }: ArtifactCloseProps) => import("react").JSX.Element;
|
|
10
|
+
export type ArtifactTitleProps = HTMLAttributes<HTMLParagraphElement>;
|
|
11
|
+
export declare const ArtifactTitle: ({ className, ...props }: ArtifactTitleProps) => import("react").JSX.Element;
|
|
12
|
+
export type ArtifactDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
13
|
+
export declare const ArtifactDescription: ({ className, ...props }: ArtifactDescriptionProps) => import("react").JSX.Element;
|
|
14
|
+
export type ArtifactActionsProps = HTMLAttributes<HTMLDivElement>;
|
|
15
|
+
export declare const ArtifactActions: ({ className, ...props }: ArtifactActionsProps) => import("react").JSX.Element;
|
|
16
|
+
export type ArtifactActionProps = ComponentProps<typeof Button> & {
|
|
17
|
+
tooltip?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
icon?: LucideIcon;
|
|
20
|
+
};
|
|
21
|
+
export declare const ArtifactAction: ({ tooltip, label, icon: Icon, children, className, size, variant, ...props }: ArtifactActionProps) => import("react").JSX.Element;
|
|
22
|
+
export type ArtifactContentProps = HTMLAttributes<HTMLDivElement>;
|
|
23
|
+
export declare const ArtifactContent: ({ className, ...props }: ArtifactContentProps) => import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=artifact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/artifact.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAS,MAAM,cAAc,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAU/C,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE3D,eAAO,MAAM,QAAQ,GAAI,yBAAyB,aAAa,gCAQ9D,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEjE,eAAO,MAAM,cAAc,GAAI,yBAG5B,mBAAmB,gCAQrB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,GAAI,kDAM3B,kBAAkB,gCAcpB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AAEtE,eAAO,MAAM,aAAa,GAAI,yBAAyB,kBAAkB,gCAKxE,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,wBAAwB,gCAE1B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAElE,eAAO,MAAM,eAAe,GAAI,yBAG7B,oBAAoB,gCAEtB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,8EAS5B,mBAAmB,gCA+BrB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAElE,eAAO,MAAM,eAAe,GAAI,yBAG7B,oBAAoB,gCAEtB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactFlowProps } from "@xyflow/react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import "@xyflow/react/dist/style.css";
|
|
4
|
+
type CanvasProps = ReactFlowProps & {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const Canvas: ({ children, ...props }: CanvasProps) => import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=canvas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/canvas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,8BAA8B,CAAA;AAGrC,KAAK,WAAW,GAAG,cAAc,GAAG;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,wBAAwB,WAAW,gCAazD,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type LucideIcon } from "lucide-react";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
import { Badge } from "@/components/ui/badge";
|
|
4
|
+
import { CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
|
|
5
|
+
export type ChainOfThoughtProps = ComponentProps<"div"> & {
|
|
6
|
+
open?: boolean;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
onOpenChange?: (open: boolean) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const ChainOfThought: import("react").MemoExoticComponent<({ className, open, defaultOpen, onOpenChange, children, ...props }: ChainOfThoughtProps) => import("react").JSX.Element>;
|
|
11
|
+
export type ChainOfThoughtHeaderProps = ComponentProps<typeof CollapsibleTrigger>;
|
|
12
|
+
export declare const ChainOfThoughtHeader: import("react").MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtHeaderProps) => import("react").JSX.Element>;
|
|
13
|
+
export type ChainOfThoughtStepProps = ComponentProps<"div"> & {
|
|
14
|
+
icon?: LucideIcon;
|
|
15
|
+
label: ReactNode;
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
status?: "complete" | "active" | "pending";
|
|
18
|
+
};
|
|
19
|
+
export declare const ChainOfThoughtStep: import("react").MemoExoticComponent<({ className, icon: Icon, label, description, status, children, ...props }: ChainOfThoughtStepProps) => import("react").JSX.Element>;
|
|
20
|
+
export type ChainOfThoughtSearchResultsProps = ComponentProps<"div">;
|
|
21
|
+
export declare const ChainOfThoughtSearchResults: import("react").MemoExoticComponent<({ className, ...props }: ChainOfThoughtSearchResultsProps) => import("react").JSX.Element>;
|
|
22
|
+
export type ChainOfThoughtSearchResultProps = ComponentProps<typeof Badge>;
|
|
23
|
+
export declare const ChainOfThoughtSearchResult: import("react").MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtSearchResultProps) => import("react").JSX.Element>;
|
|
24
|
+
export type ChainOfThoughtContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
25
|
+
export declare const ChainOfThoughtContent: import("react").MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtContentProps) => import("react").JSX.Element>;
|
|
26
|
+
export type ChainOfThoughtImageProps = ComponentProps<"div"> & {
|
|
27
|
+
caption?: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const ChainOfThoughtImage: import("react").MemoExoticComponent<({ className, children, caption, ...props }: ChainOfThoughtImageProps) => import("react").JSX.Element>;
|
|
30
|
+
//# sourceMappingURL=chain-of-thought.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-of-thought.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/chain-of-thought.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAA;AAwBpC,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,cAAc,2GAQtB,mBAAmB,iCAkBvB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,cAAc,CACpD,OAAO,kBAAkB,CAC1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,0EACK,yBAAyB,iCA0B9D,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC5D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,kBAAkB,kHAS1B,uBAAuB,iCA+B3B,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B,gEACZ,gCAAgC,iCAM3D,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;AAE3E,eAAO,MAAM,0BAA0B,0EACD,+BAA+B,iCASpE,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,cAAc,CACrD,OAAO,kBAAkB,CAC1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,0EACI,0BAA0B,iCAkB/D,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,mFACe,wBAAwB,iCAQtE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type LucideProps } from "lucide-react";
|
|
2
|
+
import type { ComponentProps, HTMLAttributes } from "react";
|
|
3
|
+
import { Button } from "@/components/ui/button";
|
|
4
|
+
export type CheckpointProps = HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
export declare const Checkpoint: ({ className, children, ...props }: CheckpointProps) => import("react").JSX.Element;
|
|
6
|
+
export type CheckpointIconProps = LucideProps;
|
|
7
|
+
export declare const CheckpointIcon: ({ className, children, ...props }: CheckpointIconProps) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element;
|
|
8
|
+
export type CheckpointTriggerProps = ComponentProps<typeof Button> & {
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const CheckpointTrigger: ({ children, className, variant, size, tooltip, ...props }: CheckpointTriggerProps) => import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=checkpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkpoint.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/checkpoint.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAU/C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE7D,eAAO,MAAM,UAAU,GAAI,mCAIxB,eAAe,gCAWjB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAE9C,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,6UAGnB,CAAA;AAEH,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,2DAO/B,sBAAsB,gCAgBtB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ComponentProps, type HTMLAttributes } from "react";
|
|
2
|
+
import { type BundledLanguage } from "shiki";
|
|
3
|
+
import { Button } from "@/components/ui/button";
|
|
4
|
+
type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
code: string;
|
|
6
|
+
language: BundledLanguage;
|
|
7
|
+
showLineNumbers?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function highlightCode(code: string, language: BundledLanguage, showLineNumbers?: boolean): Promise<[string, string]>;
|
|
10
|
+
export declare const CodeBlock: ({ code, language, showLineNumbers, className, children, ...props }: CodeBlockProps) => import("react").JSX.Element;
|
|
11
|
+
export type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
|
|
12
|
+
onCopy?: () => void;
|
|
13
|
+
onError?: (error: Error) => void;
|
|
14
|
+
timeout?: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const CodeBlockCopyButton: ({ onCopy, onError, timeout, children, className, ...props }: CodeBlockCopyButtonProps) => import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=code-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/code-block.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,KAAK,eAAe,EAAqC,MAAM,OAAO,CAAA;AAE/E,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAI/C,KAAK,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AA+BF,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,eAAe,EACzB,eAAe,UAAQ,6BAkBxB;AAED,eAAO,MAAM,SAAS,GAAI,oEAOvB,cAAc,gCAgDhB,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACrE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,6DAOjC,wBAAwB,gCAiC1B,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ToolUIPart } from "ai";
|
|
2
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
3
|
+
import { Alert, AlertDescription } from "@/components/ui/alert";
|
|
4
|
+
import { Button } from "@/components/ui/button";
|
|
5
|
+
type ToolUIPartApproval = {
|
|
6
|
+
id: string;
|
|
7
|
+
approved?: never;
|
|
8
|
+
reason?: never;
|
|
9
|
+
} | {
|
|
10
|
+
id: string;
|
|
11
|
+
approved: boolean;
|
|
12
|
+
reason?: string;
|
|
13
|
+
} | {
|
|
14
|
+
id: string;
|
|
15
|
+
approved: true;
|
|
16
|
+
reason?: string;
|
|
17
|
+
} | {
|
|
18
|
+
id: string;
|
|
19
|
+
approved: true;
|
|
20
|
+
reason?: string;
|
|
21
|
+
} | {
|
|
22
|
+
id: string;
|
|
23
|
+
approved: false;
|
|
24
|
+
reason?: string;
|
|
25
|
+
} | undefined;
|
|
26
|
+
export type ConfirmationProps = ComponentProps<typeof Alert> & {
|
|
27
|
+
approval?: ToolUIPartApproval;
|
|
28
|
+
state: ToolUIPart["state"];
|
|
29
|
+
};
|
|
30
|
+
export declare const Confirmation: ({ className, approval, state, ...props }: ConfirmationProps) => import("react").JSX.Element | null;
|
|
31
|
+
export type ConfirmationTitleProps = ComponentProps<typeof AlertDescription>;
|
|
32
|
+
export declare const ConfirmationTitle: ({ className, ...props }: ConfirmationTitleProps) => import("react").JSX.Element;
|
|
33
|
+
export type ConfirmationRequestProps = {
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
};
|
|
36
|
+
export declare const ConfirmationRequest: ({ children }: ConfirmationRequestProps) => ReactNode;
|
|
37
|
+
export type ConfirmationAcceptedProps = {
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
};
|
|
40
|
+
export declare const ConfirmationAccepted: ({ children, }: ConfirmationAcceptedProps) => ReactNode;
|
|
41
|
+
export type ConfirmationRejectedProps = {
|
|
42
|
+
children?: ReactNode;
|
|
43
|
+
};
|
|
44
|
+
export declare const ConfirmationRejected: ({ children, }: ConfirmationRejectedProps) => ReactNode;
|
|
45
|
+
export type ConfirmationActionsProps = ComponentProps<"div">;
|
|
46
|
+
export declare const ConfirmationActions: ({ className, ...props }: ConfirmationActionsProps) => import("react").JSX.Element | null;
|
|
47
|
+
export type ConfirmationActionProps = ComponentProps<typeof Button>;
|
|
48
|
+
export declare const ConfirmationAction: (props: ConfirmationActionProps) => import("react").JSX.Element;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=confirmation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmation.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/confirmation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAA;AACpC,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAI/C,KAAK,kBAAkB,GACnB;IACE,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACD,SAAS,CAAC;AAqBd,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,KAAK,CAAC,GAAG;IAC7D,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,0CAK1B,iBAAiB,uCAUnB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7E,eAAO,MAAM,iBAAiB,GAAI,yBAG/B,sBAAsB,gCAExB,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,cAAc,wBAAwB,cASzE,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,eAElC,yBAAyB,cAc3B,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,eAElC,yBAAyB,cAc3B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE7D,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,wBAAwB,uCAc1B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,gCAEhE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/connection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AAK5D,eAAO,MAAM,UAAU,EAAE,uBAuBxB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Controls as ControlsPrimitive } from "@xyflow/react";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
export type ControlsProps = ComponentProps<typeof ControlsPrimitive>;
|
|
4
|
+
export declare const Controls: ({ className, ...props }: ControlsProps) => import("react").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/controls.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAK3C,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,eAAO,MAAM,QAAQ,GAAI,yBAAyB,aAAa,gCAS9D,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import { StickToBottom } from "use-stick-to-bottom";
|
|
3
|
+
import { Button } from "@/components/ui/button";
|
|
4
|
+
export type ConversationProps = ComponentProps<typeof StickToBottom>;
|
|
5
|
+
export declare const Conversation: ({ className, ...props }: ConversationProps) => import("react").JSX.Element;
|
|
6
|
+
export type ConversationContentProps = ComponentProps<typeof StickToBottom.Content>;
|
|
7
|
+
export declare const ConversationContent: ({ className, ...props }: ConversationContentProps) => import("react").JSX.Element;
|
|
8
|
+
export type ConversationEmptyStateProps = ComponentProps<"div"> & {
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export declare const ConversationEmptyState: ({ className, title, description, icon, children, ...props }: ConversationEmptyStateProps) => import("react").JSX.Element;
|
|
14
|
+
export type ConversationScrollButtonProps = ComponentProps<typeof Button>;
|
|
15
|
+
export declare const ConversationScrollButton: ({ className, ...props }: ConversationScrollButtonProps) => false | import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/conversation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,aAAa,EAA2B,MAAM,qBAAqB,CAAA;AAE5E,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAI/C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAErE,eAAO,MAAM,YAAY,GAAI,yBAAyB,iBAAiB,gCAQtE,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CACnD,OAAO,aAAa,CAAC,OAAO,CAC7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,wBAAwB,gCAK1B,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,6DAOpC,2BAA2B,gCAoB7B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB,GAAI,yBAGtC,6BAA6B,wCAwB/B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type EdgeProps } from "@xyflow/react";
|
|
2
|
+
export declare const Edge: {
|
|
3
|
+
Temporary: ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, }: EdgeProps) => import("react").JSX.Element;
|
|
4
|
+
Animated: ({ id, source, target, markerEnd, style }: EdgeProps) => import("react").JSX.Element | null;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/edge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAOf,MAAM,eAAe,CAAA;AAgItB,eAAO,MAAM,IAAI;6FArHd,SAAS;yDAqFgD,SAAS;CAmCpE,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Experimental_GeneratedImage } from "ai";
|
|
2
|
+
export type ImageProps = Experimental_GeneratedImage & {
|
|
3
|
+
className?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Image: ({ base64, uint8Array, mediaType, ...props }: ImageProps) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,IAAI,CAAA;AAKrD,MAAM,MAAM,UAAU,GAAG,2BAA2B,GAAG;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,6CAKnB,UAAU,gCAYZ,CAAA"}
|