@larkup/workspace-app 0.0.0-stage → 0.2.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/LICENSE +176 -0
- package/README.md +4 -2
- package/assets/github.svg +3 -0
- package/assets/icons/Confluence.png +0 -0
- package/assets/icons/Instagram.png +0 -0
- package/assets/icons/Northflank.png +0 -0
- package/assets/icons/Salesforce.png +0 -0
- package/assets/icons/agentskills.png +0 -0
- package/assets/icons/airtable.png +0 -0
- package/assets/icons/asana.png +0 -0
- package/assets/icons/ashby.png +0 -0
- package/assets/icons/audio.png +0 -0
- package/assets/icons/aws-kendra.png +0 -0
- package/assets/icons/aws.svg +38 -0
- package/assets/icons/azure-ai-search.png +0 -0
- package/assets/icons/azure.svg +1 -0
- package/assets/icons/bigquery.png +0 -0
- package/assets/icons/bing.png +0 -0
- package/assets/icons/bitbucket.png +0 -0
- package/assets/icons/brave.png +0 -0
- package/assets/icons/browserbase.png +0 -0
- package/assets/icons/calendly.png +0 -0
- package/assets/icons/chroma.png +0 -0
- package/assets/icons/cloudflare.png +0 -0
- package/assets/icons/cohere.svg +30 -0
- package/assets/icons/databricks.png +0 -0
- package/assets/icons/daytonaio.png +0 -0
- package/assets/icons/daytonaio2.png +0 -0
- package/assets/icons/deepgram.png +0 -0
- package/assets/icons/deepl.png +0 -0
- package/assets/icons/digital-ocean.webp +0 -0
- package/assets/icons/discord.png +0 -0
- package/assets/icons/e2b-2.png +0 -0
- package/assets/icons/e2b.png +0 -0
- package/assets/icons/elevenlabs.png +0 -0
- package/assets/icons/email.png +0 -0
- package/assets/icons/exa.png +0 -0
- package/assets/icons/excel.png +0 -0
- package/assets/icons/fal.png +0 -0
- package/assets/icons/firecrawl.png +0 -0
- package/assets/icons/firecrawl2.png +0 -0
- package/assets/icons/flyio.jpeg +0 -0
- package/assets/icons/gcp.svg +1 -0
- package/assets/icons/gemini.svg +1 -0
- package/assets/icons/gmail.png +0 -0
- package/assets/icons/google-analytics.png +0 -0
- package/assets/icons/google-calender.png +0 -0
- package/assets/icons/google-docs.png +0 -0
- package/assets/icons/google-drive.png +0 -0
- package/assets/icons/google-maps.png +0 -0
- package/assets/icons/google-meet.png +0 -0
- package/assets/icons/google-sheets.png +0 -0
- package/assets/icons/google-slides.png +0 -0
- package/assets/icons/google-tasks.png +0 -0
- package/assets/icons/google.png +0 -0
- package/assets/icons/grok.png +0 -0
- package/assets/icons/hubspot.png +0 -0
- package/assets/icons/image.png +0 -0
- package/assets/icons/jina.svg +1 -0
- package/assets/icons/jira.png +0 -0
- package/assets/icons/lancedb2.png +0 -0
- package/assets/icons/linear.png +0 -0
- package/assets/icons/linux.png +0 -0
- package/assets/icons/looker.png +0 -0
- package/assets/icons/luma.png +0 -0
- package/assets/icons/mac.png +0 -0
- package/assets/icons/markdown.png +0 -0
- package/assets/icons/mcp.png +0 -0
- package/assets/icons/mcp.svg +1 -0
- package/assets/icons/messenger.svg +1 -0
- package/assets/icons/microsoft-intra.png +0 -0
- package/assets/icons/microsoft-onenote.png +0 -0
- package/assets/icons/microsoft-planner.png +0 -0
- package/assets/icons/microsoft-teams.png +0 -0
- package/assets/icons/miro.png +0 -0
- package/assets/icons/mistral.svg +469 -0
- package/assets/icons/modal.png +0 -0
- package/assets/icons/ngrok.png +0 -0
- package/assets/icons/nomic.png +0 -0
- package/assets/icons/onedrive.png +0 -0
- package/assets/icons/openai.svg +1 -0
- package/assets/icons/outlook-calendar.png +0 -0
- package/assets/icons/outlook-email.png +0 -0
- package/assets/icons/outlook.png +0 -0
- package/assets/icons/pdf.png +0 -0
- package/assets/icons/personio.png +0 -0
- package/assets/icons/pgvector2.png +0 -0
- package/assets/icons/phone.png +0 -0
- package/assets/icons/pinecone.png +0 -0
- package/assets/icons/pipedrive.png +0 -0
- package/assets/icons/power-pi.png +0 -0
- package/assets/icons/pylon.png +0 -0
- package/assets/icons/python.png +0 -0
- package/assets/icons/qdrant.svg +35 -0
- package/assets/icons/revai.png +0 -0
- package/assets/icons/revai.svg +1 -0
- package/assets/icons/sap.png +0 -0
- package/assets/icons/serpapi.svg +34 -0
- package/assets/icons/serper.png +0 -0
- package/assets/icons/servicenow.png +0 -0
- package/assets/icons/sharepoint.png +0 -0
- package/assets/icons/slack.png +0 -0
- package/assets/icons/snowflake.png +0 -0
- package/assets/icons/statistia.png +0 -0
- package/assets/icons/stripe.png +0 -0
- package/assets/icons/supabase.png +0 -0
- package/assets/icons/tableau.png +0 -0
- package/assets/icons/tavily.png +0 -0
- package/assets/icons/telegram.png +0 -0
- package/assets/icons/typescript.png +0 -0
- package/assets/icons/vercel copy.svg +1 -0
- package/assets/icons/vercel.svg +1 -0
- package/assets/icons/vertex-ai.png +0 -0
- package/assets/icons/video.png +0 -0
- package/assets/icons/voyage-light.png +0 -0
- package/assets/icons/weaviate.webp +0 -0
- package/assets/icons/webcontainers.svg +11 -0
- package/assets/icons/webhook.png +0 -0
- package/assets/icons/whatsapp copy.png +0 -0
- package/assets/icons/whatsapp.png +0 -0
- package/assets/icons/windows.png +0 -0
- package/assets/icons/word.png +0 -0
- package/assets/icons/zendesk.png +0 -0
- package/assets/icons/zoom.png +0 -0
- package/assets/notion-white.png +0 -0
- package/assets/notion.png +0 -0
- package/dist-types/asset-server.d.ts +3 -0
- package/dist-types/asset-server.d.ts.map +1 -0
- package/dist-types/components/alerts/generic-alert.d.ts +15 -0
- package/dist-types/components/alerts/generic-alert.d.ts.map +1 -0
- package/dist-types/components/chat/canvas/doc-editor-provider.d.ts +62 -0
- package/dist-types/components/chat/canvas/doc-editor-provider.d.ts.map +1 -0
- package/dist-types/components/chat/canvas/document-canvas.d.ts +7 -0
- package/dist-types/components/chat/canvas/document-canvas.d.ts.map +1 -0
- package/dist-types/components/chat/canvas/document-field.d.ts +13 -0
- package/dist-types/components/chat/canvas/document-field.d.ts.map +1 -0
- package/dist-types/components/chat/canvas/document-viewer.d.ts +2 -0
- package/dist-types/components/chat/canvas/document-viewer.d.ts.map +1 -0
- package/dist-types/components/chat/canvas/file-attachment-button.d.ts +9 -0
- package/dist-types/components/chat/canvas/file-attachment-button.d.ts.map +1 -0
- package/dist-types/components/chat/chat-workspace.d.ts +4 -0
- package/dist-types/components/chat/chat-workspace.d.ts.map +1 -0
- package/dist-types/components/chat/message-actions.d.ts +11 -0
- package/dist-types/components/chat/message-actions.d.ts.map +1 -0
- package/dist-types/components/chat/message-item.d.ts +20 -0
- package/dist-types/components/chat/message-item.d.ts.map +1 -0
- package/dist-types/components/chat/message-queue.d.ts +15 -0
- package/dist-types/components/chat/message-queue.d.ts.map +1 -0
- package/dist-types/components/chat/tools/chat-chart.d.ts +6 -0
- package/dist-types/components/chat/tools/chat-chart.d.ts.map +1 -0
- package/dist-types/components/chat/tools/chat-citations.d.ts +32 -0
- package/dist-types/components/chat/tools/chat-citations.d.ts.map +1 -0
- package/dist-types/components/chat/tools/chat-data-table.d.ts +14 -0
- package/dist-types/components/chat/tools/chat-data-table.d.ts.map +1 -0
- package/dist-types/components/chat/tools/chat-file-export.d.ts +5 -0
- package/dist-types/components/chat/tools/chat-file-export.d.ts.map +1 -0
- package/dist-types/components/chat/tools/chat-media-preview.d.ts +35 -0
- package/dist-types/components/chat/tools/chat-media-preview.d.ts.map +1 -0
- package/dist-types/components/chat/tools/chat-sandbox-result.d.ts +17 -0
- package/dist-types/components/chat/tools/chat-sandbox-result.d.ts.map +1 -0
- package/dist-types/components/chat/tools/chat-signature-request.d.ts +13 -0
- package/dist-types/components/chat/tools/chat-signature-request.d.ts.map +1 -0
- package/dist-types/components/chat/tools/chat-tabs.d.ts +17 -0
- package/dist-types/components/chat/tools/chat-tabs.d.ts.map +1 -0
- package/dist-types/components/chat/tools/corpus-data-result.d.ts +36 -0
- package/dist-types/components/chat/tools/corpus-data-result.d.ts.map +1 -0
- package/dist-types/components/chat/tools/knowledge-base-result.d.ts +14 -0
- package/dist-types/components/chat/tools/knowledge-base-result.d.ts.map +1 -0
- package/dist-types/components/chat/tools/visual-placement-modal.d.ts +23 -0
- package/dist-types/components/chat/tools/visual-placement-modal.d.ts.map +1 -0
- package/dist-types/components/configure/custom-model-modal.d.ts +13 -0
- package/dist-types/components/configure/custom-model-modal.d.ts.map +1 -0
- package/dist-types/components/configure/store-fields.d.ts +11 -0
- package/dist-types/components/configure/store-fields.d.ts.map +1 -0
- package/dist-types/components/data/corpus-panel.d.ts +12 -0
- package/dist-types/components/data/corpus-panel.d.ts.map +1 -0
- package/dist-types/components/data/data-entry-mode-switch.d.ts +13 -0
- package/dist-types/components/data/data-entry-mode-switch.d.ts.map +1 -0
- package/dist-types/components/data/data-primary-action.d.ts +7 -0
- package/dist-types/components/data/data-primary-action.d.ts.map +1 -0
- package/dist-types/components/data/data-workspace.d.ts +6 -0
- package/dist-types/components/data/data-workspace.d.ts.map +1 -0
- package/dist-types/components/data/groups-panel.d.ts +5 -0
- package/dist-types/components/data/groups-panel.d.ts.map +1 -0
- package/dist-types/components/data/integration-resources-panel.d.ts +9 -0
- package/dist-types/components/data/integration-resources-panel.d.ts.map +1 -0
- package/dist-types/components/data/integrations-panel.d.ts +5 -0
- package/dist-types/components/data/integrations-panel.d.ts.map +1 -0
- package/dist-types/components/data/jobs-panel.d.ts +6 -0
- package/dist-types/components/data/jobs-panel.d.ts.map +1 -0
- package/dist-types/components/data/jobs-tracking-button.d.ts +2 -0
- package/dist-types/components/data/jobs-tracking-button.d.ts.map +1 -0
- package/dist-types/components/data/live-media-progress.d.ts +9 -0
- package/dist-types/components/data/live-media-progress.d.ts.map +1 -0
- package/dist-types/components/data/media-indexing-jobs-panel.d.ts +34 -0
- package/dist-types/components/data/media-indexing-jobs-panel.d.ts.map +1 -0
- package/dist-types/components/data/media-panel.d.ts +58 -0
- package/dist-types/components/data/media-panel.d.ts.map +1 -0
- package/dist-types/components/data/notion-panel.d.ts +6 -0
- package/dist-types/components/data/notion-panel.d.ts.map +1 -0
- package/dist-types/components/data/paste-panel.d.ts +7 -0
- package/dist-types/components/data/paste-panel.d.ts.map +1 -0
- package/dist-types/components/data/project-data-page.d.ts +3 -0
- package/dist-types/components/data/project-data-page.d.ts.map +1 -0
- package/dist-types/components/data/scrape-panel.d.ts +9 -0
- package/dist-types/components/data/scrape-panel.d.ts.map +1 -0
- package/dist-types/components/data/tabular-preview.d.ts +10 -0
- package/dist-types/components/data/tabular-preview.d.ts.map +1 -0
- package/dist-types/components/data/tool-indexing-dialog.d.ts +54 -0
- package/dist-types/components/data/tool-indexing-dialog.d.ts.map +1 -0
- package/dist-types/components/data/upload-panel.d.ts +7 -0
- package/dist-types/components/data/upload-panel.d.ts.map +1 -0
- package/dist-types/components/data/web-crawler-status.d.ts +3 -0
- package/dist-types/components/data/web-crawler-status.d.ts.map +1 -0
- package/dist-types/components/projects/project-form-dialog.d.ts +10 -0
- package/dist-types/components/projects/project-form-dialog.d.ts.map +1 -0
- package/dist-types/components/projects/project-provider.d.ts +34 -0
- package/dist-types/components/projects/project-provider.d.ts.map +1 -0
- package/dist-types/components/settings/general/agent-customization-section.d.ts +2 -0
- package/dist-types/components/settings/general/agent-customization-section.d.ts.map +1 -0
- package/dist-types/components/settings/general/mcp-connections-section.d.ts +2 -0
- package/dist-types/components/settings/general/mcp-connections-section.d.ts.map +1 -0
- package/dist-types/components/settings/general/model-combobox.d.ts +24 -0
- package/dist-types/components/settings/general/model-combobox.d.ts.map +1 -0
- package/dist-types/components/settings/general/models-section.d.ts +2 -0
- package/dist-types/components/settings/general/models-section.d.ts.map +1 -0
- package/dist-types/components/settings/general/sandbox-section.d.ts +7 -0
- package/dist-types/components/settings/general/sandbox-section.d.ts.map +1 -0
- package/dist-types/components/settings/general/search-scraping-section.d.ts +2 -0
- package/dist-types/components/settings/general/search-scraping-section.d.ts.map +1 -0
- package/dist-types/components/settings/general/storage-indexing-section.d.ts +2 -0
- package/dist-types/components/settings/general/storage-indexing-section.d.ts.map +1 -0
- package/dist-types/components/ui/alert-dialog.d.ts +19 -0
- package/dist-types/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist-types/components/ui/alert.d.ts +11 -0
- package/dist-types/components/ui/alert.d.ts.map +1 -0
- package/dist-types/components/ui/badge.d.ts +8 -0
- package/dist-types/components/ui/badge.d.ts.map +1 -0
- package/dist-types/components/ui/card.d.ts +2 -0
- package/dist-types/components/ui/card.d.ts.map +1 -0
- package/dist-types/components/ui/checkbox.d.ts +4 -0
- package/dist-types/components/ui/checkbox.d.ts.map +1 -0
- package/dist-types/components/ui/collapsible.d.ts +6 -0
- package/dist-types/components/ui/collapsible.d.ts.map +1 -0
- package/dist-types/components/ui/command.d.ts +20 -0
- package/dist-types/components/ui/command.d.ts.map +1 -0
- package/dist-types/components/ui/dialog.d.ts +18 -0
- package/dist-types/components/ui/dialog.d.ts.map +1 -0
- package/dist-types/components/ui/dropdown-menu.d.ts +30 -0
- package/dist-types/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist-types/components/ui/input-group.d.ts +19 -0
- package/dist-types/components/ui/input-group.d.ts.map +1 -0
- package/dist-types/components/ui/input.d.ts +4 -0
- package/dist-types/components/ui/input.d.ts.map +1 -0
- package/dist-types/components/ui/line-tabs.d.ts +15 -0
- package/dist-types/components/ui/line-tabs.d.ts.map +1 -0
- package/dist-types/components/ui/popover.d.ts +10 -0
- package/dist-types/components/ui/popover.d.ts.map +1 -0
- package/dist-types/components/ui/progress.d.ts +8 -0
- package/dist-types/components/ui/progress.d.ts.map +1 -0
- package/dist-types/components/ui/scroll-area.d.ts +6 -0
- package/dist-types/components/ui/scroll-area.d.ts.map +1 -0
- package/dist-types/components/ui/sheet.d.ts +15 -0
- package/dist-types/components/ui/sheet.d.ts.map +1 -0
- package/dist-types/components/ui/slider.d.ts +4 -0
- package/dist-types/components/ui/slider.d.ts.map +1 -0
- package/dist-types/components/ui/switch.d.ts +6 -0
- package/dist-types/components/ui/switch.d.ts.map +1 -0
- package/dist-types/components/ui/table.d.ts +2 -0
- package/dist-types/components/ui/table.d.ts.map +1 -0
- package/dist-types/components/ui/tabs.d.ts +11 -0
- package/dist-types/components/ui/tabs.d.ts.map +1 -0
- package/dist-types/components/ui/textarea.d.ts +2 -0
- package/dist-types/components/ui/textarea.d.ts.map +1 -0
- package/dist-types/components/ui/tooltip.d.ts +7 -0
- package/dist-types/components/ui/tooltip.d.ts.map +1 -0
- package/dist-types/hooks/use-copy-to-clipboard.d.ts +5 -0
- package/dist-types/hooks/use-copy-to-clipboard.d.ts.map +1 -0
- package/dist-types/hooks/use-integration-auth.d.ts +10 -0
- package/dist-types/hooks/use-integration-auth.d.ts.map +1 -0
- package/dist-types/hooks/use-live-media-progress.d.ts +14 -0
- package/dist-types/hooks/use-live-media-progress.d.ts.map +1 -0
- package/dist-types/hooks/use-notion-auth.d.ts +9 -0
- package/dist-types/hooks/use-notion-auth.d.ts.map +1 -0
- package/dist-types/host.d.ts +20 -0
- package/dist-types/host.d.ts.map +1 -0
- package/dist-types/lib/browser-cache.d.ts +7 -0
- package/dist-types/lib/browser-cache.d.ts.map +1 -0
- package/dist-types/lib/chat/chart-config.d.ts +2 -0
- package/dist-types/lib/chat/chart-config.d.ts.map +1 -0
- package/dist-types/lib/chat/data-export.d.ts +2 -0
- package/dist-types/lib/chat/data-export.d.ts.map +1 -0
- package/dist-types/lib/chat/live-tool-progress.d.ts +44 -0
- package/dist-types/lib/chat/live-tool-progress.d.ts.map +1 -0
- package/dist-types/lib/chat/message-feedback.d.ts +2 -0
- package/dist-types/lib/chat/message-feedback.d.ts.map +1 -0
- package/dist-types/lib/chat/table-presentation.d.ts +2 -0
- package/dist-types/lib/chat/table-presentation.d.ts.map +1 -0
- package/dist-types/lib/chat/tool-output.d.ts +3 -0
- package/dist-types/lib/chat/tool-output.d.ts.map +1 -0
- package/dist-types/lib/chat-supporting-clip.d.ts +11 -0
- package/dist-types/lib/chat-supporting-clip.d.ts.map +1 -0
- package/dist-types/lib/constants/stores.d.ts +6 -0
- package/dist-types/lib/constants/stores.d.ts.map +1 -0
- package/dist-types/lib/constants/tools.d.ts +27 -0
- package/dist-types/lib/constants/tools.d.ts.map +1 -0
- package/dist-types/lib/error-formatter.d.ts +2 -0
- package/dist-types/lib/error-formatter.d.ts.map +1 -0
- package/dist-types/lib/jobs-client.d.ts +7 -0
- package/dist-types/lib/jobs-client.d.ts.map +1 -0
- package/dist-types/lib/media/pdf.d.ts +6 -0
- package/dist-types/lib/media/pdf.d.ts.map +1 -0
- package/dist-types/lib/media/progress.d.ts +61 -0
- package/dist-types/lib/media/progress.d.ts.map +1 -0
- package/dist-types/lib/media/source-selection.d.ts +10 -0
- package/dist-types/lib/media/source-selection.d.ts.map +1 -0
- package/dist-types/lib/media/tool-indexing-estimate.d.ts +13 -0
- package/dist-types/lib/media/tool-indexing-estimate.d.ts.map +1 -0
- package/dist-types/lib/media/video-intelligence-capacity.d.ts +2 -0
- package/dist-types/lib/media/video-intelligence-capacity.d.ts.map +1 -0
- package/dist-types/lib/media/video-runtime-scope.d.ts +2 -0
- package/dist-types/lib/media/video-runtime-scope.d.ts.map +1 -0
- package/dist-types/lib/shared/error-formatter.d.ts +2 -0
- package/dist-types/lib/shared/error-formatter.d.ts.map +1 -0
- package/dist-types/lib/utils.d.ts +3 -0
- package/dist-types/lib/utils.d.ts.map +1 -0
- package/dist-types/storage.d.ts +5 -0
- package/dist-types/storage.d.ts.map +1 -0
- package/dist-types/store/chat-store.d.ts +19 -0
- package/dist-types/store/chat-store.d.ts.map +1 -0
- package/dist-types/store/scrape-store.d.ts +42 -0
- package/dist-types/store/scrape-store.d.ts.map +1 -0
- package/package.json +579 -3
- package/scripts/build-assets.mjs +12 -0
- package/src/asset-data.json +1 -0
- package/src/asset-server.ts +19 -0
- package/src/components/alerts/generic-alert.tsx +76 -0
- package/src/components/chat/canvas/doc-editor-provider.tsx +338 -0
- package/src/components/chat/canvas/document-canvas.tsx +98 -0
- package/src/components/chat/canvas/document-field.tsx +167 -0
- package/src/components/chat/canvas/document-viewer.tsx +446 -0
- package/src/components/chat/canvas/file-attachment-button.tsx +88 -0
- package/src/components/chat/chat-workspace.tsx +1552 -0
- package/src/components/chat/message-actions.tsx +96 -0
- package/src/components/chat/message-item.tsx +1398 -0
- package/src/components/chat/message-queue.tsx +86 -0
- package/src/components/chat/tools/chat-chart.tsx +558 -0
- package/src/components/chat/tools/chat-citations.tsx +152 -0
- package/src/components/chat/tools/chat-data-table.tsx +373 -0
- package/src/components/chat/tools/chat-file-export.tsx +49 -0
- package/src/components/chat/tools/chat-media-preview.tsx +466 -0
- package/src/components/chat/tools/chat-sandbox-result.tsx +130 -0
- package/src/components/chat/tools/chat-signature-request.tsx +810 -0
- package/src/components/chat/tools/chat-tabs.tsx +59 -0
- package/src/components/chat/tools/corpus-data-result.tsx +194 -0
- package/src/components/chat/tools/knowledge-base-result.tsx +345 -0
- package/src/components/chat/tools/visual-placement-modal.tsx +308 -0
- package/src/components/configure/custom-model-modal.tsx +209 -0
- package/src/components/configure/store-fields.tsx +129 -0
- package/src/components/data/corpus-panel.tsx +1223 -0
- package/src/components/data/data-entry-mode-switch.tsx +53 -0
- package/src/components/data/data-primary-action.ts +6 -0
- package/src/components/data/data-workspace.tsx +623 -0
- package/src/components/data/groups-panel.tsx +530 -0
- package/src/components/data/integration-resources-panel.tsx +282 -0
- package/src/components/data/integrations-panel.tsx +392 -0
- package/src/components/data/jobs-panel.tsx +490 -0
- package/src/components/data/jobs-tracking-button.tsx +224 -0
- package/src/components/data/live-media-progress.tsx +79 -0
- package/src/components/data/media-indexing-jobs-panel.tsx +190 -0
- package/src/components/data/media-panel.tsx +2905 -0
- package/src/components/data/notion-panel.tsx +408 -0
- package/src/components/data/paste-panel.tsx +82 -0
- package/src/components/data/project-data-page.tsx +55 -0
- package/src/components/data/scrape-panel.tsx +1290 -0
- package/src/components/data/tabular-preview.tsx +205 -0
- package/src/components/data/tool-indexing-dialog.tsx +210 -0
- package/src/components/data/upload-panel.tsx +1313 -0
- package/src/components/data/web-crawler-status.tsx +132 -0
- package/src/components/projects/project-form-dialog.tsx +97 -0
- package/src/components/projects/project-provider.tsx +143 -0
- package/src/components/settings/general/agent-customization-section.tsx +620 -0
- package/src/components/settings/general/mcp-connections-section.tsx +907 -0
- package/src/components/settings/general/model-combobox.tsx +235 -0
- package/src/components/settings/general/models-section.tsx +909 -0
- package/src/components/settings/general/sandbox-section.tsx +394 -0
- package/src/components/settings/general/search-scraping-section.tsx +757 -0
- package/src/components/settings/general/storage-indexing-section.tsx +394 -0
- package/src/components/ui/alert-dialog.tsx +162 -0
- package/src/components/ui/alert.tsx +69 -0
- package/src/components/ui/badge.tsx +49 -0
- package/src/components/ui/card.tsx +9 -0
- package/src/components/ui/checkbox.tsx +28 -0
- package/src/components/ui/collapsible.tsx +17 -0
- package/src/components/ui/command.tsx +175 -0
- package/src/components/ui/dialog.tsx +138 -0
- package/src/components/ui/dropdown-menu.tsx +267 -0
- package/src/components/ui/input-group.tsx +146 -0
- package/src/components/ui/input.tsx +19 -0
- package/src/components/ui/line-tabs.tsx +49 -0
- package/src/components/ui/popover.tsx +77 -0
- package/src/components/ui/progress.tsx +66 -0
- package/src/components/ui/scroll-area.tsx +51 -0
- package/src/components/ui/sheet.tsx +125 -0
- package/src/components/ui/slider.tsx +52 -0
- package/src/components/ui/switch.tsx +32 -0
- package/src/components/ui/table.tsx +10 -0
- package/src/components/ui/tabs.tsx +77 -0
- package/src/components/ui/textarea.tsx +1 -0
- package/src/components/ui/tooltip.tsx +54 -0
- package/src/hooks/use-copy-to-clipboard.ts +25 -0
- package/src/hooks/use-integration-auth.ts +39 -0
- package/src/hooks/use-live-media-progress.ts +71 -0
- package/src/hooks/use-notion-auth.ts +66 -0
- package/src/host.ts +55 -0
- package/src/lib/browser-cache.ts +17 -0
- package/src/lib/chat/chart-config.ts +1 -0
- package/src/lib/chat/data-export.ts +1 -0
- package/src/lib/chat/live-tool-progress.ts +69 -0
- package/src/lib/chat/message-feedback.ts +1 -0
- package/src/lib/chat/table-presentation.ts +1 -0
- package/src/lib/chat/tool-output.ts +14 -0
- package/src/lib/chat-supporting-clip.ts +16 -0
- package/src/lib/constants/stores.ts +12 -0
- package/src/lib/constants/tools.ts +178 -0
- package/src/lib/error-formatter.ts +30 -0
- package/src/lib/jobs-client.ts +27 -0
- package/src/lib/media/pdf.ts +57 -0
- package/src/lib/media/progress.ts +209 -0
- package/src/lib/media/source-selection.ts +47 -0
- package/src/lib/media/tool-indexing-estimate.ts +39 -0
- package/src/lib/media/video-intelligence-capacity.ts +1 -0
- package/src/lib/media/video-runtime-scope.ts +1 -0
- package/src/lib/shared/error-formatter.ts +1 -0
- package/src/lib/utils.ts +6 -0
- package/src/source.css +1 -0
- package/src/storage.ts +16 -0
- package/src/store/chat-store.ts +19 -0
- package/src/store/scrape-store.ts +76 -0
- package/src/styles.d.ts +1 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { workspaceUrl, workspaceFetch as fetch } from '../../host';
|
|
4
|
+
import { useEffect, useRef, useState } from 'react';
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../ui/tooltip';
|
|
7
|
+
|
|
8
|
+
type CrawlerResponse = {
|
|
9
|
+
state: { running: boolean; mode?: 'native' | 'firecrawl'; lastError?: string };
|
|
10
|
+
starting?: boolean;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
type Status = 'starting' | 'ready' | 'unavailable';
|
|
14
|
+
|
|
15
|
+
const STATUS_POLL_MS = 2_000;
|
|
16
|
+
|
|
17
|
+
/** Compact readiness indicator for the crawler embedded in the Larkup API. */
|
|
18
|
+
export function WebCrawlerStatus() {
|
|
19
|
+
const [status, setStatus] = useState<Status>('starting');
|
|
20
|
+
const [statusDetail, setStatusDetail] = useState('');
|
|
21
|
+
const requestInFlight = useRef(false);
|
|
22
|
+
const mounted = useRef(false);
|
|
23
|
+
|
|
24
|
+
function applyStatus(body: CrawlerResponse) {
|
|
25
|
+
if (!mounted.current) return;
|
|
26
|
+
if (body.state.running) {
|
|
27
|
+
setStatus('ready');
|
|
28
|
+
setStatusDetail('');
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (body.starting) {
|
|
32
|
+
setStatus('starting');
|
|
33
|
+
setStatusDetail('');
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
setStatus('unavailable');
|
|
37
|
+
setStatusDetail(body.state.lastError || '');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
async function requestStatus(start: boolean) {
|
|
41
|
+
const res = await fetch(
|
|
42
|
+
workspaceUrl('/api/firecrawl/local'),
|
|
43
|
+
start
|
|
44
|
+
? {
|
|
45
|
+
method: 'POST',
|
|
46
|
+
headers: { 'Content-Type': 'application/json' },
|
|
47
|
+
body: JSON.stringify({ action: 'start' }),
|
|
48
|
+
}
|
|
49
|
+
: { cache: 'no-store' },
|
|
50
|
+
);
|
|
51
|
+
const body = (await res.json()) as CrawlerResponse;
|
|
52
|
+
if (!res.ok) throw new Error('Crawler status failed');
|
|
53
|
+
return body;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function updateStatus(forceStart = false) {
|
|
57
|
+
if (requestInFlight.current) return;
|
|
58
|
+
requestInFlight.current = true;
|
|
59
|
+
try {
|
|
60
|
+
if (forceStart) {
|
|
61
|
+
if (mounted.current) setStatus('starting');
|
|
62
|
+
applyStatus(await requestStatus(true));
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
applyStatus(await requestStatus(false));
|
|
67
|
+
} catch {
|
|
68
|
+
if (mounted.current) {
|
|
69
|
+
setStatus('unavailable');
|
|
70
|
+
setStatusDetail(
|
|
71
|
+
'The crawler status could not be reached. Larkup will retry automatically.',
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
} finally {
|
|
75
|
+
requestInFlight.current = false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
mounted.current = true;
|
|
81
|
+
void updateStatus(true);
|
|
82
|
+
const interval = window.setInterval(() => void updateStatus(), STATUS_POLL_MS);
|
|
83
|
+
return () => {
|
|
84
|
+
mounted.current = false;
|
|
85
|
+
window.clearInterval(interval);
|
|
86
|
+
};
|
|
87
|
+
}, []);
|
|
88
|
+
|
|
89
|
+
const label =
|
|
90
|
+
status === 'ready'
|
|
91
|
+
? 'Website crawler is ready'
|
|
92
|
+
: status === 'starting'
|
|
93
|
+
? 'Preparing website crawler…'
|
|
94
|
+
: statusDetail ||
|
|
95
|
+
'Website crawler is temporarily unavailable. Larkup will retry automatically.';
|
|
96
|
+
|
|
97
|
+
return (
|
|
98
|
+
<TooltipProvider delay={0}>
|
|
99
|
+
<Tooltip>
|
|
100
|
+
<TooltipTrigger
|
|
101
|
+
render={
|
|
102
|
+
<button
|
|
103
|
+
type="button"
|
|
104
|
+
aria-label="Website crawler status"
|
|
105
|
+
data-status={status}
|
|
106
|
+
className="relative flex size-7 items-center justify-center rounded-md outline-none transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring"
|
|
107
|
+
onClick={() => void updateStatus(true)}
|
|
108
|
+
>
|
|
109
|
+
<span
|
|
110
|
+
className={cn(
|
|
111
|
+
'relative block size-2 rounded-full',
|
|
112
|
+
status === 'ready'
|
|
113
|
+
? 'bg-emerald-500'
|
|
114
|
+
: status === 'starting'
|
|
115
|
+
? 'bg-blue-500'
|
|
116
|
+
: 'bg-red-500',
|
|
117
|
+
)}
|
|
118
|
+
>
|
|
119
|
+
{status === 'starting' && (
|
|
120
|
+
<span className="absolute inset-0 animate-ping rounded-full bg-blue-400/80" />
|
|
121
|
+
)}
|
|
122
|
+
</span>
|
|
123
|
+
</button>
|
|
124
|
+
}
|
|
125
|
+
/>
|
|
126
|
+
<TooltipContent className="max-w-60 text-xs">
|
|
127
|
+
<p>{label}</p>
|
|
128
|
+
</TooltipContent>
|
|
129
|
+
</Tooltip>
|
|
130
|
+
</TooltipProvider>
|
|
131
|
+
);
|
|
132
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
import { toast } from 'sonner';
|
|
5
|
+
import { Loader2 } from 'lucide-react';
|
|
6
|
+
import { Button } from '@larkup/workspace-ui/button';
|
|
7
|
+
import {
|
|
8
|
+
Dialog,
|
|
9
|
+
DialogContent,
|
|
10
|
+
DialogDescription,
|
|
11
|
+
DialogFooter,
|
|
12
|
+
DialogHeader,
|
|
13
|
+
DialogTitle,
|
|
14
|
+
} from '../ui/dialog';
|
|
15
|
+
import { Input } from '../ui/input';
|
|
16
|
+
import { Label } from '@larkup/workspace-ui/label';
|
|
17
|
+
import { useProject, type WorkspaceProject } from './project-provider';
|
|
18
|
+
|
|
19
|
+
interface Props {
|
|
20
|
+
mode: 'create' | 'rename';
|
|
21
|
+
target?: WorkspaceProject | null;
|
|
22
|
+
open: boolean;
|
|
23
|
+
onOpenChange: (open: boolean) => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function ProjectFormDialog({ mode, target, open, onOpenChange }: Props) {
|
|
27
|
+
const { createProject, renameProject } = useProject();
|
|
28
|
+
const [name, setName] = useState('');
|
|
29
|
+
const [busy, setBusy] = useState(false);
|
|
30
|
+
|
|
31
|
+
// Seed the field whenever the dialog opens.
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (open) setName(mode === 'rename' ? (target?.name ?? '') : '');
|
|
34
|
+
}, [open, mode, target]);
|
|
35
|
+
|
|
36
|
+
async function submit() {
|
|
37
|
+
const trimmed = name.trim();
|
|
38
|
+
if (!trimmed) {
|
|
39
|
+
toast.error('Enter a project name.');
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
setBusy(true);
|
|
43
|
+
try {
|
|
44
|
+
if (mode === 'create') {
|
|
45
|
+
const created = await createProject(trimmed);
|
|
46
|
+
if (created) toast.success(`Created "${created.name}" and switched to it.`);
|
|
47
|
+
} else if (target) {
|
|
48
|
+
await renameProject(target.id, trimmed);
|
|
49
|
+
toast.success('Project renamed.');
|
|
50
|
+
}
|
|
51
|
+
onOpenChange(false);
|
|
52
|
+
} catch {
|
|
53
|
+
toast.error('Something went wrong. Try again.');
|
|
54
|
+
} finally {
|
|
55
|
+
setBusy(false);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<Dialog open={open} onOpenChange={onOpenChange}>
|
|
61
|
+
<DialogContent className="sm:max-w-md">
|
|
62
|
+
<DialogHeader>
|
|
63
|
+
<DialogTitle>{mode === 'create' ? 'New project' : 'Rename project'}</DialogTitle>
|
|
64
|
+
<DialogDescription>
|
|
65
|
+
{mode === 'create'
|
|
66
|
+
? 'Each project is an isolated environment with its own documents, index, and settings.'
|
|
67
|
+
: 'Give this project a clearer name.'}
|
|
68
|
+
</DialogDescription>
|
|
69
|
+
</DialogHeader>
|
|
70
|
+
|
|
71
|
+
<div className="grid gap-2">
|
|
72
|
+
<Label htmlFor="server-name">Project name</Label>
|
|
73
|
+
<Input
|
|
74
|
+
id="server-name"
|
|
75
|
+
value={name}
|
|
76
|
+
autoFocus
|
|
77
|
+
placeholder="e.g. docs-assistant"
|
|
78
|
+
onChange={(e) => setName(e.target.value)}
|
|
79
|
+
onKeyDown={(e) => {
|
|
80
|
+
if (e.key === 'Enter') void submit();
|
|
81
|
+
}}
|
|
82
|
+
/>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<DialogFooter>
|
|
86
|
+
<Button variant="outline" onClick={() => onOpenChange(false)} disabled={busy}>
|
|
87
|
+
Cancel
|
|
88
|
+
</Button>
|
|
89
|
+
<Button onClick={() => void submit()} disabled={busy}>
|
|
90
|
+
{busy && <Loader2 className="size-4 animate-spin" />}
|
|
91
|
+
{mode === 'create' ? 'Create project' : 'Save'}
|
|
92
|
+
</Button>
|
|
93
|
+
</DialogFooter>
|
|
94
|
+
</DialogContent>
|
|
95
|
+
</Dialog>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { workspaceUrl, workspaceFetch as fetch } from '../../host';
|
|
4
|
+
import { createContext, useCallback, useContext, type ReactNode } from 'react';
|
|
5
|
+
import useSWR, { SWRConfig, mutate as globalMutate } from 'swr';
|
|
6
|
+
/** A Project enriched with the runtime status shown in the shell. */
|
|
7
|
+
export interface WorkspaceProject {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
port: number;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
sourceCount: number;
|
|
14
|
+
indexed: boolean;
|
|
15
|
+
running: boolean;
|
|
16
|
+
endpoint: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface ProjectData {
|
|
20
|
+
activeProjectId: string | null;
|
|
21
|
+
projects: WorkspaceProject[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ProjectContextValue {
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
projects: WorkspaceProject[];
|
|
27
|
+
activeProject?: WorkspaceProject;
|
|
28
|
+
/** No Projects exist yet → run first-time onboarding. */
|
|
29
|
+
isFirstRun: boolean;
|
|
30
|
+
refresh: () => void;
|
|
31
|
+
createProject: (name: string) => Promise<WorkspaceProject | undefined>;
|
|
32
|
+
activateProject: (id: string) => Promise<void>;
|
|
33
|
+
renameProject: (id: string, name: string) => Promise<void>;
|
|
34
|
+
deleteProject: (id: string) => Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const fetcher = (url: string) => fetch(url).then((r) => r.json());
|
|
38
|
+
|
|
39
|
+
const ProjectContext = createContext<ProjectContextValue | null>(null);
|
|
40
|
+
|
|
41
|
+
export function useProject() {
|
|
42
|
+
const ctx = useContext(ProjectContext);
|
|
43
|
+
if (!ctx) {
|
|
44
|
+
throw new Error('useProject must be used within a ProjectProvider');
|
|
45
|
+
}
|
|
46
|
+
return ctx;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProjectProvider({ children }: { children: ReactNode }) {
|
|
50
|
+
const { data, isLoading, mutate } = useSWR<ProjectData>(workspaceUrl('/api/projects'), fetcher, {
|
|
51
|
+
revalidateOnFocus: false,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const projects = data?.projects ?? [];
|
|
55
|
+
const activeProject = projects.find((project) => project.id === data?.activeProjectId);
|
|
56
|
+
const isFirstRun = !isLoading && projects.length === 0;
|
|
57
|
+
|
|
58
|
+
/** Revalidate every SWR key after switching the active Project. */
|
|
59
|
+
const refreshAllStages = useCallback(async () => {
|
|
60
|
+
await globalMutate(() => true);
|
|
61
|
+
}, []);
|
|
62
|
+
|
|
63
|
+
const createProject = useCallback(
|
|
64
|
+
async (name: string) => {
|
|
65
|
+
const res = await fetch(workspaceUrl('/api/projects'), {
|
|
66
|
+
method: 'POST',
|
|
67
|
+
headers: { 'Content-Type': 'application/json' },
|
|
68
|
+
body: JSON.stringify({ name }),
|
|
69
|
+
});
|
|
70
|
+
const json = await res.json();
|
|
71
|
+
await mutate();
|
|
72
|
+
await refreshAllStages();
|
|
73
|
+
return json.project as WorkspaceProject | undefined;
|
|
74
|
+
},
|
|
75
|
+
[mutate, refreshAllStages],
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
const activateProject = useCallback(
|
|
79
|
+
async (id: string) => {
|
|
80
|
+
await fetch(workspaceUrl('/api/projects'), {
|
|
81
|
+
method: 'PATCH',
|
|
82
|
+
headers: { 'Content-Type': 'application/json' },
|
|
83
|
+
body: JSON.stringify({ action: 'activate', projectId: id }),
|
|
84
|
+
});
|
|
85
|
+
await mutate();
|
|
86
|
+
await refreshAllStages();
|
|
87
|
+
},
|
|
88
|
+
[mutate, refreshAllStages],
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
const renameProject = useCallback(
|
|
92
|
+
async (id: string, name: string) => {
|
|
93
|
+
await fetch(workspaceUrl('/api/projects'), {
|
|
94
|
+
method: 'PATCH',
|
|
95
|
+
headers: { 'Content-Type': 'application/json' },
|
|
96
|
+
body: JSON.stringify({ action: 'rename', projectId: id, name }),
|
|
97
|
+
});
|
|
98
|
+
await mutate();
|
|
99
|
+
},
|
|
100
|
+
[mutate],
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const deleteProject = useCallback(
|
|
104
|
+
async (id: string) => {
|
|
105
|
+
await fetch(workspaceUrl(`/api/projects?id=${encodeURIComponent(id)}`), {
|
|
106
|
+
method: 'DELETE',
|
|
107
|
+
});
|
|
108
|
+
await mutate();
|
|
109
|
+
await refreshAllStages();
|
|
110
|
+
},
|
|
111
|
+
[mutate, refreshAllStages],
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
const value: ProjectContextValue = {
|
|
115
|
+
isLoading,
|
|
116
|
+
projects,
|
|
117
|
+
activeProject,
|
|
118
|
+
isFirstRun,
|
|
119
|
+
refresh: () => {
|
|
120
|
+
void mutate();
|
|
121
|
+
},
|
|
122
|
+
createProject,
|
|
123
|
+
activateProject,
|
|
124
|
+
renameProject,
|
|
125
|
+
deleteProject,
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
return <ProjectContext.Provider value={value}>{children}</ProjectContext.Provider>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function WorkspaceProjectProvider({
|
|
132
|
+
value,
|
|
133
|
+
children,
|
|
134
|
+
}: {
|
|
135
|
+
value: ProjectContextValue;
|
|
136
|
+
children: ReactNode;
|
|
137
|
+
}) {
|
|
138
|
+
return (
|
|
139
|
+
<SWRConfig value={{ provider: () => new Map() }}>
|
|
140
|
+
<ProjectContext.Provider value={value}>{children}</ProjectContext.Provider>
|
|
141
|
+
</SWRConfig>
|
|
142
|
+
);
|
|
143
|
+
}
|