ruflo 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rvf.manifest.json +295 -0
- package/package.json +16 -2
- package/src/chat-ui/Dockerfile +25 -0
- package/src/chat-ui/patch-mcp-url-safety.sh +28 -0
- package/src/chat-ui/static/chatui/icon-144x144.png +0 -0
- package/src/chat-ui/static/chatui/omni-welcome.gif +0 -0
- package/src/config/config.example.json +76 -0
- package/src/mcp-bridge/Dockerfile +45 -0
- package/src/mcp-bridge/index.js +1668 -0
- package/src/mcp-bridge/mcp-stdio-kernel.js +159 -0
- package/src/mcp-bridge/package.json +17 -0
- package/src/mcp-bridge/test-harness.js +470 -0
- package/src/nginx/Dockerfile +10 -0
- package/src/nginx/nginx.conf +67 -0
- package/src/nginx/static/favicon-dark.svg +4 -0
- package/src/nginx/static/favicon.svg +4 -0
- package/src/nginx/static/icon.svg +5 -0
- package/src/nginx/static/logo.svg +9 -0
- package/src/nginx/static/manifest.json +22 -0
- package/src/nginx/static/welcome.js +184 -0
- package/src/ruvocal/.claude/skills/add-model-descriptions/SKILL.md +73 -0
- package/src/ruvocal/.devcontainer/Dockerfile +9 -0
- package/src/ruvocal/.devcontainer/devcontainer.json +36 -0
- package/src/ruvocal/.dockerignore +13 -0
- package/src/ruvocal/.env +194 -0
- package/src/ruvocal/.env.ci +1 -0
- package/src/ruvocal/.eslintignore +13 -0
- package/src/ruvocal/.eslintrc.cjs +45 -0
- package/src/ruvocal/.github/ISSUE_TEMPLATE/bug-report--chat-ui-.md +43 -0
- package/src/ruvocal/.github/ISSUE_TEMPLATE/config-support.md +9 -0
- package/src/ruvocal/.github/ISSUE_TEMPLATE/feature-request--chat-ui-.md +17 -0
- package/src/ruvocal/.github/ISSUE_TEMPLATE/huggingchat.md +11 -0
- package/src/ruvocal/.github/release.yml +16 -0
- package/src/ruvocal/.github/workflows/build-docs.yml +18 -0
- package/src/ruvocal/.github/workflows/build-image.yml +142 -0
- package/src/ruvocal/.github/workflows/build-pr-docs.yml +20 -0
- package/src/ruvocal/.github/workflows/deploy-dev.yml +63 -0
- package/src/ruvocal/.github/workflows/deploy-prod.yml +78 -0
- package/src/ruvocal/.github/workflows/lint-and-test.yml +84 -0
- package/src/ruvocal/.github/workflows/slugify.yaml +72 -0
- package/src/ruvocal/.github/workflows/trufflehog.yml +17 -0
- package/src/ruvocal/.github/workflows/upload-pr-documentation.yml +16 -0
- package/src/ruvocal/.husky/lint-stage-config.js +4 -0
- package/src/ruvocal/.husky/pre-commit +2 -0
- package/src/ruvocal/.prettierignore +14 -0
- package/src/ruvocal/.prettierrc +7 -0
- package/src/ruvocal/.vscode/launch.json +11 -0
- package/src/ruvocal/.vscode/settings.json +14 -0
- package/src/ruvocal/CLAUDE.md +126 -0
- package/src/ruvocal/Dockerfile +93 -0
- package/src/ruvocal/LICENSE +203 -0
- package/src/ruvocal/PRIVACY.md +41 -0
- package/src/ruvocal/README.md +190 -0
- package/src/ruvocal/chart/Chart.yaml +5 -0
- package/src/ruvocal/chart/env/dev.yaml +260 -0
- package/src/ruvocal/chart/env/prod.yaml +273 -0
- package/src/ruvocal/chart/templates/_helpers.tpl +22 -0
- package/src/ruvocal/chart/templates/config.yaml +10 -0
- package/src/ruvocal/chart/templates/deployment.yaml +81 -0
- package/src/ruvocal/chart/templates/hpa.yaml +45 -0
- package/src/ruvocal/chart/templates/infisical.yaml +24 -0
- package/src/ruvocal/chart/templates/ingress-internal.yaml +32 -0
- package/src/ruvocal/chart/templates/ingress.yaml +32 -0
- package/src/ruvocal/chart/templates/network-policy.yaml +36 -0
- package/src/ruvocal/chart/templates/service-account.yaml +13 -0
- package/src/ruvocal/chart/templates/service-monitor.yaml +17 -0
- package/src/ruvocal/chart/templates/service.yaml +21 -0
- package/src/ruvocal/chart/values.yaml +73 -0
- package/src/ruvocal/docker-compose.yml +21 -0
- package/src/ruvocal/docs/adr/ADR-029-HUGGINGFACE-CHAT-UI-CLOUD-RUN.md +1236 -0
- package/src/ruvocal/docs/adr/ADR-033-RUVECTOR-RUFLO-MCP-INTEGRATION.md +111 -0
- package/src/ruvocal/docs/adr/ADR-034-OPTIONAL-MCP-BACKENDS.md +117 -0
- package/src/ruvocal/docs/adr/ADR-035-MCP-TOOL-GROUPS.md +186 -0
- package/src/ruvocal/docs/adr/ADR-037-AUTOPILOT-CHAT-MODE.md +1500 -0
- package/src/ruvocal/docs/adr/ADR-038-RUVOCAL-FORK.md +286 -0
- package/src/ruvocal/docs/source/_toctree.yml +30 -0
- package/src/ruvocal/docs/source/configuration/common-issues.md +38 -0
- package/src/ruvocal/docs/source/configuration/llm-router.md +105 -0
- package/src/ruvocal/docs/source/configuration/mcp-tools.md +84 -0
- package/src/ruvocal/docs/source/configuration/metrics.md +9 -0
- package/src/ruvocal/docs/source/configuration/open-id.md +57 -0
- package/src/ruvocal/docs/source/configuration/overview.md +89 -0
- package/src/ruvocal/docs/source/configuration/theming.md +20 -0
- package/src/ruvocal/docs/source/developing/architecture.md +48 -0
- package/src/ruvocal/docs/source/index.md +53 -0
- package/src/ruvocal/docs/source/installation/docker.md +43 -0
- package/src/ruvocal/docs/source/installation/helm.md +43 -0
- package/src/ruvocal/docs/source/installation/local.md +62 -0
- package/src/ruvocal/entrypoint.sh +19 -0
- package/src/ruvocal/mcp-bridge/.claude-flow/agents/store.json +27 -0
- package/src/ruvocal/mcp-bridge/.claude-flow/daemon-state.json +130 -0
- package/src/ruvocal/mcp-bridge/.claude-flow/daemon.log +0 -0
- package/src/ruvocal/mcp-bridge/.claude-flow/daemon.pid +1 -0
- package/src/ruvocal/mcp-bridge/.claude-flow/tasks/store.json +21 -0
- package/src/ruvocal/mcp-bridge/.swarm/hnsw.index +0 -0
- package/src/ruvocal/mcp-bridge/.swarm/hnsw.metadata.json +1 -0
- package/src/ruvocal/mcp-bridge/.swarm/memory.db +0 -0
- package/src/ruvocal/mcp-bridge/.swarm/model-router-state.json +14 -0
- package/src/ruvocal/mcp-bridge/.swarm/schema.sql +305 -0
- package/src/ruvocal/mcp-bridge/Dockerfile +45 -0
- package/src/ruvocal/mcp-bridge/cloudbuild.yaml +49 -0
- package/src/ruvocal/mcp-bridge/index.js +1864 -0
- package/src/ruvocal/mcp-bridge/mcp-stdio-kernel.js +159 -0
- package/src/ruvocal/mcp-bridge/package-lock.json +762 -0
- package/src/ruvocal/mcp-bridge/package.json +17 -0
- package/src/ruvocal/mcp-bridge/test-harness.js +470 -0
- package/src/ruvocal/models/add-your-models-here.txt +1 -0
- package/src/ruvocal/package-lock.json +11741 -0
- package/src/ruvocal/package.json +121 -0
- package/src/ruvocal/postcss.config.js +6 -0
- package/src/ruvocal/rvf.manifest.json +204 -0
- package/src/ruvocal/scripts/config.ts +64 -0
- package/src/ruvocal/scripts/generate-welcome.mjs +181 -0
- package/src/ruvocal/scripts/populate.ts +288 -0
- package/src/ruvocal/scripts/samples.txt +194 -0
- package/src/ruvocal/scripts/setups/vitest-setup-client.ts +0 -0
- package/src/ruvocal/scripts/setups/vitest-setup-server.ts +44 -0
- package/src/ruvocal/scripts/updateLocalEnv.ts +48 -0
- package/src/ruvocal/src/ambient.d.ts +7 -0
- package/src/ruvocal/src/app.d.ts +29 -0
- package/src/ruvocal/src/app.html +53 -0
- package/src/ruvocal/src/hooks.server.ts +32 -0
- package/src/ruvocal/src/hooks.ts +6 -0
- package/src/ruvocal/src/lib/APIClient.ts +148 -0
- package/src/ruvocal/src/lib/actions/clickOutside.ts +18 -0
- package/src/ruvocal/src/lib/actions/snapScrollToBottom.ts +346 -0
- package/src/ruvocal/src/lib/buildPrompt.ts +33 -0
- package/src/ruvocal/src/lib/components/AnnouncementBanner.svelte +20 -0
- package/src/ruvocal/src/lib/components/BackgroundGenerationPoller.svelte +168 -0
- package/src/ruvocal/src/lib/components/CodeBlock.svelte +73 -0
- package/src/ruvocal/src/lib/components/CopyToClipBoardBtn.svelte +92 -0
- package/src/ruvocal/src/lib/components/DeleteConversationModal.svelte +75 -0
- package/src/ruvocal/src/lib/components/EditConversationModal.svelte +100 -0
- package/src/ruvocal/src/lib/components/ExpandNavigation.svelte +22 -0
- package/src/ruvocal/src/lib/components/HoverTooltip.svelte +44 -0
- package/src/ruvocal/src/lib/components/HtmlPreviewModal.svelte +143 -0
- package/src/ruvocal/src/lib/components/InfiniteScroll.svelte +50 -0
- package/src/ruvocal/src/lib/components/MobileNav.svelte +300 -0
- package/src/ruvocal/src/lib/components/Modal.svelte +115 -0
- package/src/ruvocal/src/lib/components/ModelCardMetadata.svelte +71 -0
- package/src/ruvocal/src/lib/components/NavConversationItem.svelte +151 -0
- package/src/ruvocal/src/lib/components/NavMenu.svelte +295 -0
- package/src/ruvocal/src/lib/components/Pagination.svelte +97 -0
- package/src/ruvocal/src/lib/components/PaginationArrow.svelte +27 -0
- package/src/ruvocal/src/lib/components/Portal.svelte +24 -0
- package/src/ruvocal/src/lib/components/RetryBtn.svelte +18 -0
- package/src/ruvocal/src/lib/components/RuFloUniverse.svelte +185 -0
- package/src/ruvocal/src/lib/components/ScrollToBottomBtn.svelte +47 -0
- package/src/ruvocal/src/lib/components/ScrollToPreviousBtn.svelte +77 -0
- package/src/ruvocal/src/lib/components/ShareConversationModal.svelte +182 -0
- package/src/ruvocal/src/lib/components/StopGeneratingBtn.svelte +69 -0
- package/src/ruvocal/src/lib/components/SubscribeModal.svelte +87 -0
- package/src/ruvocal/src/lib/components/Switch.svelte +36 -0
- package/src/ruvocal/src/lib/components/SystemPromptModal.svelte +44 -0
- package/src/ruvocal/src/lib/components/Toast.svelte +27 -0
- package/src/ruvocal/src/lib/components/Tooltip.svelte +30 -0
- package/src/ruvocal/src/lib/components/WelcomeModal.svelte +46 -0
- package/src/ruvocal/src/lib/components/chat/Alternatives.svelte +77 -0
- package/src/ruvocal/src/lib/components/chat/BlockWrapper.svelte +72 -0
- package/src/ruvocal/src/lib/components/chat/ChatInput.svelte +490 -0
- package/src/ruvocal/src/lib/components/chat/ChatIntroduction.svelte +123 -0
- package/src/ruvocal/src/lib/components/chat/ChatMessage.svelte +548 -0
- package/src/ruvocal/src/lib/components/chat/ChatWindow.svelte +939 -0
- package/src/ruvocal/src/lib/components/chat/FileDropzone.svelte +92 -0
- package/src/ruvocal/src/lib/components/chat/ImageLightbox.svelte +66 -0
- package/src/ruvocal/src/lib/components/chat/MarkdownBlock.svelte +23 -0
- package/src/ruvocal/src/lib/components/chat/MarkdownRenderer.svelte +69 -0
- package/src/ruvocal/src/lib/components/chat/MarkdownRenderer.svelte.test.ts +58 -0
- package/src/ruvocal/src/lib/components/chat/MessageAvatar.svelte +103 -0
- package/src/ruvocal/src/lib/components/chat/ModelSwitch.svelte +64 -0
- package/src/ruvocal/src/lib/components/chat/OpenReasoningResults.svelte +81 -0
- package/src/ruvocal/src/lib/components/chat/TaskGroup.svelte +88 -0
- package/src/ruvocal/src/lib/components/chat/ToolUpdate.svelte +273 -0
- package/src/ruvocal/src/lib/components/chat/UploadedFile.svelte +253 -0
- package/src/ruvocal/src/lib/components/chat/UrlFetchModal.svelte +203 -0
- package/src/ruvocal/src/lib/components/chat/VoiceRecorder.svelte +214 -0
- package/src/ruvocal/src/lib/components/icons/IconBurger.svelte +20 -0
- package/src/ruvocal/src/lib/components/icons/IconCheap.svelte +20 -0
- package/src/ruvocal/src/lib/components/icons/IconChevron.svelte +24 -0
- package/src/ruvocal/src/lib/components/icons/IconDazzled.svelte +40 -0
- package/src/ruvocal/src/lib/components/icons/IconFast.svelte +20 -0
- package/src/ruvocal/src/lib/components/icons/IconLoading.svelte +22 -0
- package/src/ruvocal/src/lib/components/icons/IconMCP.svelte +28 -0
- package/src/ruvocal/src/lib/components/icons/IconMoon.svelte +21 -0
- package/src/ruvocal/src/lib/components/icons/IconNew.svelte +20 -0
- package/src/ruvocal/src/lib/components/icons/IconOmni.svelte +90 -0
- package/src/ruvocal/src/lib/components/icons/IconPaperclip.svelte +24 -0
- package/src/ruvocal/src/lib/components/icons/IconPro.svelte +37 -0
- package/src/ruvocal/src/lib/components/icons/IconShare.svelte +21 -0
- package/src/ruvocal/src/lib/components/icons/IconSun.svelte +93 -0
- package/src/ruvocal/src/lib/components/icons/Logo.svelte +68 -0
- package/src/ruvocal/src/lib/components/icons/LogoHuggingFaceBorderless.svelte +54 -0
- package/src/ruvocal/src/lib/components/mcp/AddServerForm.svelte +250 -0
- package/src/ruvocal/src/lib/components/mcp/MCPServerManager.svelte +185 -0
- package/src/ruvocal/src/lib/components/mcp/ServerCard.svelte +203 -0
- package/src/ruvocal/src/lib/components/players/AudioPlayer.svelte +82 -0
- package/src/ruvocal/src/lib/components/voice/AudioWaveform.svelte +96 -0
- package/src/ruvocal/src/lib/constants/mcpExamples.ts +135 -0
- package/src/ruvocal/src/lib/constants/mime.ts +11 -0
- package/src/ruvocal/src/lib/constants/pagination.ts +1 -0
- package/src/ruvocal/src/lib/constants/publicSepToken.ts +1 -0
- package/src/ruvocal/src/lib/constants/routerExamples.ts +209 -0
- package/src/ruvocal/src/lib/createShareLink.ts +27 -0
- package/src/ruvocal/src/lib/jobs/refresh-conversation-stats.ts +297 -0
- package/src/ruvocal/src/lib/migrations/lock.ts +56 -0
- package/src/ruvocal/src/lib/migrations/migrations.spec.ts +74 -0
- package/src/ruvocal/src/lib/migrations/migrations.ts +109 -0
- package/src/ruvocal/src/lib/migrations/routines/01-update-search-assistants.ts +50 -0
- package/src/ruvocal/src/lib/migrations/routines/02-update-assistants-models.ts +48 -0
- package/src/ruvocal/src/lib/migrations/routines/04-update-message-updates.ts +151 -0
- package/src/ruvocal/src/lib/migrations/routines/05-update-message-files.ts +56 -0
- package/src/ruvocal/src/lib/migrations/routines/06-trim-message-updates.ts +56 -0
- package/src/ruvocal/src/lib/migrations/routines/08-update-featured-to-review.ts +32 -0
- package/src/ruvocal/src/lib/migrations/routines/09-delete-empty-conversations.spec.ts +214 -0
- package/src/ruvocal/src/lib/migrations/routines/09-delete-empty-conversations.ts +88 -0
- package/src/ruvocal/src/lib/migrations/routines/10-update-reports-assistantid.ts +29 -0
- package/src/ruvocal/src/lib/migrations/routines/index.ts +15 -0
- package/src/ruvocal/src/lib/server/__tests__/conversation-stop-generating.spec.ts +103 -0
- package/src/ruvocal/src/lib/server/abortRegistry.ts +57 -0
- package/src/ruvocal/src/lib/server/abortedGenerations.ts +43 -0
- package/src/ruvocal/src/lib/server/adminToken.ts +62 -0
- package/src/ruvocal/src/lib/server/api/__tests__/conversations-id.spec.ts +296 -0
- package/src/ruvocal/src/lib/server/api/__tests__/conversations-message.spec.ts +216 -0
- package/src/ruvocal/src/lib/server/api/__tests__/conversations.spec.ts +235 -0
- package/src/ruvocal/src/lib/server/api/__tests__/misc.spec.ts +72 -0
- package/src/ruvocal/src/lib/server/api/__tests__/testHelpers.ts +86 -0
- package/src/ruvocal/src/lib/server/api/__tests__/user-reports.spec.ts +78 -0
- package/src/ruvocal/src/lib/server/api/__tests__/user.spec.ts +239 -0
- package/src/ruvocal/src/lib/server/api/types.ts +37 -0
- package/src/ruvocal/src/lib/server/api/utils/requireAuth.ts +22 -0
- package/src/ruvocal/src/lib/server/api/utils/resolveConversation.ts +69 -0
- package/src/ruvocal/src/lib/server/api/utils/resolveModel.ts +27 -0
- package/src/ruvocal/src/lib/server/api/utils/superjsonResponse.ts +15 -0
- package/src/ruvocal/src/lib/server/apiToken.ts +11 -0
- package/src/ruvocal/src/lib/server/auth.ts +554 -0
- package/src/ruvocal/src/lib/server/config.ts +187 -0
- package/src/ruvocal/src/lib/server/conversation.ts +83 -0
- package/src/ruvocal/src/lib/server/database/__tests__/rvf.spec.ts +709 -0
- package/src/ruvocal/src/lib/server/database/postgres.ts +700 -0
- package/src/ruvocal/src/lib/server/database/rvf.ts +1078 -0
- package/src/ruvocal/src/lib/server/database.ts +145 -0
- package/src/ruvocal/src/lib/server/endpoints/document.ts +68 -0
- package/src/ruvocal/src/lib/server/endpoints/endpoints.ts +43 -0
- package/src/ruvocal/src/lib/server/endpoints/images.ts +211 -0
- package/src/ruvocal/src/lib/server/endpoints/openai/endpointOai.ts +266 -0
- package/src/ruvocal/src/lib/server/endpoints/openai/openAIChatToTextGenerationStream.ts +212 -0
- package/src/ruvocal/src/lib/server/endpoints/openai/openAICompletionToTextGenerationStream.ts +32 -0
- package/src/ruvocal/src/lib/server/endpoints/preprocessMessages.ts +61 -0
- package/src/ruvocal/src/lib/server/exitHandler.ts +59 -0
- package/src/ruvocal/src/lib/server/files/downloadFile.ts +34 -0
- package/src/ruvocal/src/lib/server/files/uploadFile.ts +29 -0
- package/src/ruvocal/src/lib/server/findRepoRoot.ts +13 -0
- package/src/ruvocal/src/lib/server/fonts/Inter-Black.ttf +0 -0
- package/src/ruvocal/src/lib/server/fonts/Inter-Bold.ttf +0 -0
- package/src/ruvocal/src/lib/server/fonts/Inter-ExtraBold.ttf +0 -0
- package/src/ruvocal/src/lib/server/fonts/Inter-ExtraLight.ttf +0 -0
- package/src/ruvocal/src/lib/server/fonts/Inter-Light.ttf +0 -0
- package/src/ruvocal/src/lib/server/fonts/Inter-Medium.ttf +0 -0
- package/src/ruvocal/src/lib/server/fonts/Inter-Regular.ttf +0 -0
- package/src/ruvocal/src/lib/server/fonts/Inter-SemiBold.ttf +0 -0
- package/src/ruvocal/src/lib/server/fonts/Inter-Thin.ttf +0 -0
- package/src/ruvocal/src/lib/server/generateFromDefaultEndpoint.ts +46 -0
- package/src/ruvocal/src/lib/server/hooks/error.ts +37 -0
- package/src/ruvocal/src/lib/server/hooks/fetch.ts +22 -0
- package/src/ruvocal/src/lib/server/hooks/handle.ts +250 -0
- package/src/ruvocal/src/lib/server/hooks/init.ts +51 -0
- package/src/ruvocal/src/lib/server/isURLLocal.spec.ts +31 -0
- package/src/ruvocal/src/lib/server/isURLLocal.ts +74 -0
- package/src/ruvocal/src/lib/server/logger.ts +42 -0
- package/src/ruvocal/src/lib/server/mcp/clientPool.ts +70 -0
- package/src/ruvocal/src/lib/server/mcp/hf.ts +32 -0
- package/src/ruvocal/src/lib/server/mcp/httpClient.ts +122 -0
- package/src/ruvocal/src/lib/server/mcp/registry.ts +76 -0
- package/src/ruvocal/src/lib/server/mcp/tools.ts +196 -0
- package/src/ruvocal/src/lib/server/metrics.ts +255 -0
- package/src/ruvocal/src/lib/server/models.ts +518 -0
- package/src/ruvocal/src/lib/server/requestContext.ts +55 -0
- package/src/ruvocal/src/lib/server/router/arch.ts +230 -0
- package/src/ruvocal/src/lib/server/router/endpoint.ts +316 -0
- package/src/ruvocal/src/lib/server/router/multimodal.ts +28 -0
- package/src/ruvocal/src/lib/server/router/policy.ts +49 -0
- package/src/ruvocal/src/lib/server/router/toolsRoute.ts +51 -0
- package/src/ruvocal/src/lib/server/router/types.ts +21 -0
- package/src/ruvocal/src/lib/server/sendSlack.ts +23 -0
- package/src/ruvocal/src/lib/server/textGeneration/generate.ts +258 -0
- package/src/ruvocal/src/lib/server/textGeneration/index.ts +95 -0
- package/src/ruvocal/src/lib/server/textGeneration/mcp/fileRefs.ts +155 -0
- package/src/ruvocal/src/lib/server/textGeneration/mcp/routerResolution.ts +108 -0
- package/src/ruvocal/src/lib/server/textGeneration/mcp/runMcpFlow.ts +822 -0
- package/src/ruvocal/src/lib/server/textGeneration/mcp/toolInvocation.ts +349 -0
- package/src/ruvocal/src/lib/server/textGeneration/reasoning.ts +23 -0
- package/src/ruvocal/src/lib/server/textGeneration/title.ts +83 -0
- package/src/ruvocal/src/lib/server/textGeneration/types.ts +26 -0
- package/src/ruvocal/src/lib/server/textGeneration/utils/prepareFiles.ts +88 -0
- package/src/ruvocal/src/lib/server/textGeneration/utils/routing.ts +21 -0
- package/src/ruvocal/src/lib/server/textGeneration/utils/toolPrompt.ts +49 -0
- package/src/ruvocal/src/lib/server/urlSafety.ts +72 -0
- package/src/ruvocal/src/lib/server/usageLimits.ts +30 -0
- package/src/ruvocal/src/lib/stores/autopilotStore.svelte.ts +175 -0
- package/src/ruvocal/src/lib/stores/backgroundGenerations.svelte.ts +32 -0
- package/src/ruvocal/src/lib/stores/backgroundGenerations.ts +1 -0
- package/src/ruvocal/src/lib/stores/errors.ts +9 -0
- package/src/ruvocal/src/lib/stores/isAborted.ts +3 -0
- package/src/ruvocal/src/lib/stores/isPro.ts +4 -0
- package/src/ruvocal/src/lib/stores/loading.ts +3 -0
- package/src/ruvocal/src/lib/stores/mcpServers.ts +345 -0
- package/src/ruvocal/src/lib/stores/pendingChatInput.ts +3 -0
- package/src/ruvocal/src/lib/stores/pendingMessage.ts +9 -0
- package/src/ruvocal/src/lib/stores/settings.ts +182 -0
- package/src/ruvocal/src/lib/stores/shareModal.ts +13 -0
- package/src/ruvocal/src/lib/stores/titleUpdate.ts +8 -0
- package/src/ruvocal/src/lib/switchTheme.ts +124 -0
- package/src/ruvocal/src/lib/types/AbortedGeneration.ts +8 -0
- package/src/ruvocal/src/lib/types/Assistant.ts +31 -0
- package/src/ruvocal/src/lib/types/AssistantStats.ts +11 -0
- package/src/ruvocal/src/lib/types/ConfigKey.ts +4 -0
- package/src/ruvocal/src/lib/types/ConvSidebar.ts +9 -0
- package/src/ruvocal/src/lib/types/Conversation.ts +27 -0
- package/src/ruvocal/src/lib/types/ConversationStats.ts +13 -0
- package/src/ruvocal/src/lib/types/Message.ts +41 -0
- package/src/ruvocal/src/lib/types/MessageEvent.ts +10 -0
- package/src/ruvocal/src/lib/types/MessageUpdate.ts +139 -0
- package/src/ruvocal/src/lib/types/MigrationResult.ts +7 -0
- package/src/ruvocal/src/lib/types/Model.ts +23 -0
- package/src/ruvocal/src/lib/types/Report.ts +12 -0
- package/src/ruvocal/src/lib/types/Review.ts +6 -0
- package/src/ruvocal/src/lib/types/Semaphore.ts +19 -0
- package/src/ruvocal/src/lib/types/Session.ts +22 -0
- package/src/ruvocal/src/lib/types/Settings.ts +86 -0
- package/src/ruvocal/src/lib/types/SharedConversation.ts +9 -0
- package/src/ruvocal/src/lib/types/Template.ts +6 -0
- package/src/ruvocal/src/lib/types/Timestamps.ts +4 -0
- package/src/ruvocal/src/lib/types/TokenCache.ts +6 -0
- package/src/ruvocal/src/lib/types/Tool.ts +74 -0
- package/src/ruvocal/src/lib/types/UrlDependency.ts +5 -0
- package/src/ruvocal/src/lib/types/User.ts +14 -0
- package/src/ruvocal/src/lib/utils/PublicConfig.svelte.ts +75 -0
- package/src/ruvocal/src/lib/utils/auth.ts +17 -0
- package/src/ruvocal/src/lib/utils/chunk.ts +33 -0
- package/src/ruvocal/src/lib/utils/cookiesAreEnabled.ts +13 -0
- package/src/ruvocal/src/lib/utils/debounce.ts +17 -0
- package/src/ruvocal/src/lib/utils/deepestChild.ts +6 -0
- package/src/ruvocal/src/lib/utils/favicon.ts +21 -0
- package/src/ruvocal/src/lib/utils/fetchJSON.ts +23 -0
- package/src/ruvocal/src/lib/utils/file2base64.ts +14 -0
- package/src/ruvocal/src/lib/utils/formatUserCount.ts +37 -0
- package/src/ruvocal/src/lib/utils/generationState.spec.ts +75 -0
- package/src/ruvocal/src/lib/utils/generationState.ts +26 -0
- package/src/ruvocal/src/lib/utils/getHref.ts +41 -0
- package/src/ruvocal/src/lib/utils/getReturnFromGenerator.ts +7 -0
- package/src/ruvocal/src/lib/utils/haptics.ts +64 -0
- package/src/ruvocal/src/lib/utils/hashConv.ts +12 -0
- package/src/ruvocal/src/lib/utils/hf.ts +17 -0
- package/src/ruvocal/src/lib/utils/isDesktop.ts +7 -0
- package/src/ruvocal/src/lib/utils/isUrl.ts +8 -0
- package/src/ruvocal/src/lib/utils/isVirtualKeyboard.ts +16 -0
- package/src/ruvocal/src/lib/utils/loadAttachmentsFromUrls.ts +115 -0
- package/src/ruvocal/src/lib/utils/marked.spec.ts +96 -0
- package/src/ruvocal/src/lib/utils/marked.ts +531 -0
- package/src/ruvocal/src/lib/utils/mcpValidation.ts +147 -0
- package/src/ruvocal/src/lib/utils/mergeAsyncGenerators.ts +38 -0
- package/src/ruvocal/src/lib/utils/messageUpdates.spec.ts +262 -0
- package/src/ruvocal/src/lib/utils/messageUpdates.ts +324 -0
- package/src/ruvocal/src/lib/utils/mime.ts +56 -0
- package/src/ruvocal/src/lib/utils/models.ts +14 -0
- package/src/ruvocal/src/lib/utils/parseBlocks.ts +120 -0
- package/src/ruvocal/src/lib/utils/parseIncompleteMarkdown.ts +644 -0
- package/src/ruvocal/src/lib/utils/parseStringToList.ts +10 -0
- package/src/ruvocal/src/lib/utils/randomUuid.ts +14 -0
- package/src/ruvocal/src/lib/utils/searchTokens.ts +33 -0
- package/src/ruvocal/src/lib/utils/sha256.ts +7 -0
- package/src/ruvocal/src/lib/utils/stringifyError.ts +12 -0
- package/src/ruvocal/src/lib/utils/sum.ts +3 -0
- package/src/ruvocal/src/lib/utils/template.spec.ts +59 -0
- package/src/ruvocal/src/lib/utils/template.ts +53 -0
- package/src/ruvocal/src/lib/utils/timeout.ts +9 -0
- package/src/ruvocal/src/lib/utils/toolProgress.spec.ts +46 -0
- package/src/ruvocal/src/lib/utils/toolProgress.ts +11 -0
- package/src/ruvocal/src/lib/utils/tree/addChildren.spec.ts +102 -0
- package/src/ruvocal/src/lib/utils/tree/addChildren.ts +48 -0
- package/src/ruvocal/src/lib/utils/tree/addSibling.spec.ts +81 -0
- package/src/ruvocal/src/lib/utils/tree/addSibling.ts +41 -0
- package/src/ruvocal/src/lib/utils/tree/buildSubtree.spec.ts +110 -0
- package/src/ruvocal/src/lib/utils/tree/buildSubtree.ts +24 -0
- package/src/ruvocal/src/lib/utils/tree/convertLegacyConversation.spec.ts +31 -0
- package/src/ruvocal/src/lib/utils/tree/convertLegacyConversation.ts +36 -0
- package/src/ruvocal/src/lib/utils/tree/isMessageId.spec.ts +15 -0
- package/src/ruvocal/src/lib/utils/tree/isMessageId.ts +5 -0
- package/src/ruvocal/src/lib/utils/tree/tree.d.ts +14 -0
- package/src/ruvocal/src/lib/utils/tree/treeHelpers.spec.ts +167 -0
- package/src/ruvocal/src/lib/utils/updates.ts +39 -0
- package/src/ruvocal/src/lib/utils/urlParams.ts +13 -0
- package/src/ruvocal/src/lib/workers/autopilotWorker.ts +221 -0
- package/src/ruvocal/src/lib/workers/detailFetchWorker.ts +100 -0
- package/src/ruvocal/src/lib/workers/markdownWorker.ts +61 -0
- package/src/ruvocal/src/routes/+error.svelte +20 -0
- package/src/ruvocal/src/routes/+layout.svelte +324 -0
- package/src/ruvocal/src/routes/+layout.ts +91 -0
- package/src/ruvocal/src/routes/+page.svelte +168 -0
- package/src/ruvocal/src/routes/.well-known/oauth-cimd/+server.ts +37 -0
- package/src/ruvocal/src/routes/__debug/openai/+server.ts +21 -0
- package/src/ruvocal/src/routes/admin/export/+server.ts +159 -0
- package/src/ruvocal/src/routes/admin/stats/compute/+server.ts +16 -0
- package/src/ruvocal/src/routes/api/conversation/[id]/+server.ts +40 -0
- package/src/ruvocal/src/routes/api/conversation/[id]/message/[messageId]/+server.ts +42 -0
- package/src/ruvocal/src/routes/api/conversations/+server.ts +48 -0
- package/src/ruvocal/src/routes/api/fetch-url/+server.ts +147 -0
- package/src/ruvocal/src/routes/api/mcp/health/+server.ts +292 -0
- package/src/ruvocal/src/routes/api/mcp/servers/+server.ts +32 -0
- package/src/ruvocal/src/routes/api/models/+server.ts +25 -0
- package/src/ruvocal/src/routes/api/transcribe/+server.ts +104 -0
- package/src/ruvocal/src/routes/api/user/+server.ts +15 -0
- package/src/ruvocal/src/routes/api/user/validate-token/+server.ts +20 -0
- package/src/ruvocal/src/routes/api/v2/conversations/+server.ts +48 -0
- package/src/ruvocal/src/routes/api/v2/conversations/[id]/+server.ts +94 -0
- package/src/ruvocal/src/routes/api/v2/conversations/[id]/message/[messageId]/+server.ts +43 -0
- package/src/ruvocal/src/routes/api/v2/conversations/import-share/+server.ts +23 -0
- package/src/ruvocal/src/routes/api/v2/debug/config/+server.ts +16 -0
- package/src/ruvocal/src/routes/api/v2/debug/refresh/+server.ts +30 -0
- package/src/ruvocal/src/routes/api/v2/export/+server.ts +196 -0
- package/src/ruvocal/src/routes/api/v2/feature-flags/+server.ts +14 -0
- package/src/ruvocal/src/routes/api/v2/models/+server.ts +38 -0
- package/src/ruvocal/src/routes/api/v2/models/[namespace]/+server.ts +8 -0
- package/src/ruvocal/src/routes/api/v2/models/[namespace]/[model]/+server.ts +8 -0
- package/src/ruvocal/src/routes/api/v2/models/[namespace]/[model]/subscribe/+server.ts +28 -0
- package/src/ruvocal/src/routes/api/v2/models/[namespace]/subscribe/+server.ts +28 -0
- package/src/ruvocal/src/routes/api/v2/models/old/+server.ts +7 -0
- package/src/ruvocal/src/routes/api/v2/models/refresh/+server.ts +33 -0
- package/src/ruvocal/src/routes/api/v2/public-config/+server.ts +7 -0
- package/src/ruvocal/src/routes/api/v2/user/+server.ts +17 -0
- package/src/ruvocal/src/routes/api/v2/user/billing-orgs/+server.ts +73 -0
- package/src/ruvocal/src/routes/api/v2/user/reports/+server.ts +17 -0
- package/src/ruvocal/src/routes/api/v2/user/settings/+server.ts +103 -0
- package/src/ruvocal/src/routes/conversation/+server.ts +115 -0
- package/src/ruvocal/src/routes/conversation/[id]/+page.svelte +582 -0
- package/src/ruvocal/src/routes/conversation/[id]/+page.ts +60 -0
- package/src/ruvocal/src/routes/conversation/[id]/+server.ts +736 -0
- package/src/ruvocal/src/routes/conversation/[id]/message/[messageId]/prompt/+server.ts +66 -0
- package/src/ruvocal/src/routes/conversation/[id]/output/[sha256]/+server.ts +58 -0
- package/src/ruvocal/src/routes/conversation/[id]/share/+server.ts +69 -0
- package/src/ruvocal/src/routes/conversation/[id]/stop-generating/+server.ts +35 -0
- package/src/ruvocal/src/routes/healthcheck/+server.ts +3 -0
- package/src/ruvocal/src/routes/login/+server.ts +5 -0
- package/src/ruvocal/src/routes/login/callback/+server.ts +103 -0
- package/src/ruvocal/src/routes/login/callback/updateUser.spec.ts +157 -0
- package/src/ruvocal/src/routes/login/callback/updateUser.ts +215 -0
- package/src/ruvocal/src/routes/logout/+server.ts +18 -0
- package/src/ruvocal/src/routes/metrics/+server.ts +18 -0
- package/src/ruvocal/src/routes/models/+page.svelte +233 -0
- package/src/ruvocal/src/routes/models/[...model]/+page.svelte +161 -0
- package/src/ruvocal/src/routes/models/[...model]/+page.ts +14 -0
- package/src/ruvocal/src/routes/models/[...model]/thumbnail.png/+server.ts +64 -0
- package/src/ruvocal/src/routes/models/[...model]/thumbnail.png/ModelThumbnail.svelte +28 -0
- package/src/ruvocal/src/routes/privacy/+page.svelte +11 -0
- package/src/ruvocal/src/routes/r/[id]/+page.ts +34 -0
- package/src/ruvocal/src/routes/settings/(nav)/+layout.svelte +282 -0
- package/src/ruvocal/src/routes/settings/(nav)/+layout.ts +1 -0
- package/src/ruvocal/src/routes/settings/(nav)/+page.svelte +0 -0
- package/src/ruvocal/src/routes/settings/(nav)/+server.ts +53 -0
- package/src/ruvocal/src/routes/settings/(nav)/[...model]/+page.svelte +464 -0
- package/src/ruvocal/src/routes/settings/(nav)/[...model]/+page.ts +14 -0
- package/src/ruvocal/src/routes/settings/(nav)/application/+page.svelte +362 -0
- package/src/ruvocal/src/routes/settings/+layout.svelte +40 -0
- package/src/ruvocal/src/styles/highlight-js.css +195 -0
- package/src/ruvocal/src/styles/main.css +144 -0
- package/src/ruvocal/static/chatui/apple-touch-icon.png +0 -0
- package/src/ruvocal/static/chatui/favicon-dark.svg +3 -0
- package/src/ruvocal/static/chatui/favicon-dev.svg +3 -0
- package/src/ruvocal/static/chatui/favicon.ico +0 -0
- package/src/ruvocal/static/chatui/favicon.svg +3 -0
- package/src/ruvocal/static/chatui/icon-128x128.png +0 -0
- package/src/ruvocal/static/chatui/icon-144x144.png +0 -0
- package/src/ruvocal/static/chatui/icon-192x192.png +0 -0
- package/src/ruvocal/static/chatui/icon-256x256.png +0 -0
- package/src/ruvocal/static/chatui/icon-36x36.png +0 -0
- package/src/ruvocal/static/chatui/icon-48x48.png +0 -0
- package/src/ruvocal/static/chatui/icon-512x512.png +0 -0
- package/src/ruvocal/static/chatui/icon-72x72.png +0 -0
- package/src/ruvocal/static/chatui/icon-96x96.png +0 -0
- package/src/ruvocal/static/chatui/icon.svg +3 -0
- package/src/ruvocal/static/chatui/logo.svg +7 -0
- package/src/ruvocal/static/chatui/manifest.json +54 -0
- package/src/ruvocal/static/chatui/omni-welcome.gif +0 -0
- package/src/ruvocal/static/chatui/omni-welcome.png +0 -0
- package/src/ruvocal/static/chatui/welcome.js +184 -0
- package/src/ruvocal/static/chatui/welcome.svg +1 -0
- package/src/ruvocal/static/huggingchat/apple-touch-icon.png +0 -0
- package/src/ruvocal/static/huggingchat/assistants-thumbnail.png +0 -0
- package/src/ruvocal/static/huggingchat/castle-example.jpg +0 -0
- package/src/ruvocal/static/huggingchat/favicon-dark.svg +4 -0
- package/src/ruvocal/static/huggingchat/favicon-dev.svg +4 -0
- package/src/ruvocal/static/huggingchat/favicon.ico +0 -0
- package/src/ruvocal/static/huggingchat/favicon.svg +4 -0
- package/src/ruvocal/static/huggingchat/fulltext-logo.svg +2 -0
- package/src/ruvocal/static/huggingchat/icon-128x128.png +0 -0
- package/src/ruvocal/static/huggingchat/icon-144x144.png +0 -0
- package/src/ruvocal/static/huggingchat/icon-192x192.png +0 -0
- package/src/ruvocal/static/huggingchat/icon-256x256.png +0 -0
- package/src/ruvocal/static/huggingchat/icon-36x36.png +0 -0
- package/src/ruvocal/static/huggingchat/icon-48x48.png +0 -0
- package/src/ruvocal/static/huggingchat/icon-512x512.png +0 -0
- package/src/ruvocal/static/huggingchat/icon-72x72.png +0 -0
- package/src/ruvocal/static/huggingchat/icon-96x96.png +0 -0
- package/src/ruvocal/static/huggingchat/icon.svg +4 -0
- package/src/ruvocal/static/huggingchat/logo.svg +4 -0
- package/src/ruvocal/static/huggingchat/manifest.json +54 -0
- package/src/ruvocal/static/huggingchat/omni-welcome.gif +0 -0
- package/src/ruvocal/static/huggingchat/routes.chat.json +226 -0
- package/src/ruvocal/static/huggingchat/thumbnail.png +0 -0
- package/src/ruvocal/static/huggingchat/tools-thumbnail.png +0 -0
- package/src/ruvocal/static/robots.txt +10 -0
- package/src/ruvocal/stub/@reflink/reflink/index.js +0 -0
- package/src/ruvocal/stub/@reflink/reflink/package.json +5 -0
- package/src/ruvocal/svelte.config.js +53 -0
- package/src/ruvocal/tailwind.config.cjs +30 -0
- package/src/ruvocal/tsconfig.json +19 -0
- package/src/ruvocal/vite.config.ts +87 -0
- package/src/scripts/deploy.sh +116 -0
- package/src/scripts/generate-config.js +245 -0
- package/src/scripts/generate-welcome.js +187 -0
- package/src/scripts/package-rvf.sh +116 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chat-ui",
|
|
3
|
+
"version": "0.20.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"packageManager": "npm@9.5.0",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite dev",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"build:static": "ADAPTER=static vite build",
|
|
10
|
+
"preview": "vite preview",
|
|
11
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
12
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
13
|
+
"lint": "prettier --check . && eslint .",
|
|
14
|
+
"format": "prettier --write .",
|
|
15
|
+
"test": "vitest",
|
|
16
|
+
"updateLocalEnv": "vite-node --options.transformMode.ssr='/.*/' scripts/updateLocalEnv.ts",
|
|
17
|
+
"populate": "vite-node --options.transformMode.ssr='/.*/' scripts/populate.ts",
|
|
18
|
+
"config": "vite-node --options.transformMode.ssr='/.*/' scripts/config.ts",
|
|
19
|
+
"prepare": "husky"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@faker-js/faker": "^8.4.1",
|
|
23
|
+
"@iconify-json/carbon": "^1.1.16",
|
|
24
|
+
"@iconify-json/eos-icons": "^1.1.6",
|
|
25
|
+
"@iconify-json/lucide": "^1.2.77",
|
|
26
|
+
"@sveltejs/adapter-node": "^5.2.12",
|
|
27
|
+
"@sveltejs/adapter-static": "^3.0.8",
|
|
28
|
+
"@sveltejs/kit": "^2.52.2",
|
|
29
|
+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
30
|
+
"@tailwindcss/typography": "^0.5.9",
|
|
31
|
+
"@types/dompurify": "^3.0.5",
|
|
32
|
+
"@types/js-yaml": "^4.0.9",
|
|
33
|
+
"@types/katex": "^0.16.7",
|
|
34
|
+
"@types/mime-types": "^2.1.4",
|
|
35
|
+
"@types/minimist": "^1.2.5",
|
|
36
|
+
"@types/node": "^22.1.0",
|
|
37
|
+
"@types/parquetjs": "^0.10.3",
|
|
38
|
+
"@types/pg": "^8.18.0",
|
|
39
|
+
"@types/three": "^0.183.1",
|
|
40
|
+
"@types/uuid": "^9.0.8",
|
|
41
|
+
"@types/yazl": "^3.3.0",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^6.x",
|
|
43
|
+
"@typescript-eslint/parser": "^6.x",
|
|
44
|
+
"bson-objectid": "^2.0.4",
|
|
45
|
+
"dompurify": "^3.2.4",
|
|
46
|
+
"eslint": "^8.28.0",
|
|
47
|
+
"eslint-config-prettier": "^8.5.0",
|
|
48
|
+
"eslint-plugin-svelte": "^2.45.1",
|
|
49
|
+
"husky": "^9.0.11",
|
|
50
|
+
"isomorphic-dompurify": "2.13.0",
|
|
51
|
+
"js-yaml": "^4.1.1",
|
|
52
|
+
"lint-staged": "^15.2.7",
|
|
53
|
+
"minimist": "^1.2.8",
|
|
54
|
+
"mongodb-memory-server": "^10.1.2",
|
|
55
|
+
"playwright": "^1.55.1",
|
|
56
|
+
"prettier": "^3.5.3",
|
|
57
|
+
"prettier-plugin-svelte": "^3.2.6",
|
|
58
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
59
|
+
"sade": "^1.8.1",
|
|
60
|
+
"superjson": "^2.2.2",
|
|
61
|
+
"svelte": "^5.53.0",
|
|
62
|
+
"svelte-check": "^4.0.0",
|
|
63
|
+
"tslib": "^2.4.1",
|
|
64
|
+
"typescript": "^5.5.0",
|
|
65
|
+
"unplugin-icons": "^0.16.1",
|
|
66
|
+
"vite": "^6.3.5",
|
|
67
|
+
"vite-node": "^3.0.9",
|
|
68
|
+
"vitest": "^3.1.4",
|
|
69
|
+
"vitest-browser-svelte": "^0.1.0",
|
|
70
|
+
"yazl": "^3.3.1"
|
|
71
|
+
},
|
|
72
|
+
"type": "module",
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@huggingface/hub": "^2.2.0",
|
|
75
|
+
"@huggingface/inference": "^4.11.3",
|
|
76
|
+
"@iconify-json/bi": "^1.1.21",
|
|
77
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
78
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
79
|
+
"ajv": "^8.18.0",
|
|
80
|
+
"autoprefixer": "^10.4.14",
|
|
81
|
+
"bits-ui": "^2.14.2",
|
|
82
|
+
"date-fns": "^2.29.3",
|
|
83
|
+
"devalue": "^5.6.3",
|
|
84
|
+
"dotenv": "^16.5.0",
|
|
85
|
+
"file-type": "^21.0.0",
|
|
86
|
+
"handlebars": "^4.7.8",
|
|
87
|
+
"highlight.js": "^11.7.0",
|
|
88
|
+
"hono": "^4.12.0",
|
|
89
|
+
"htmlparser2": "^10.0.0",
|
|
90
|
+
"ip-address": "^9.0.5",
|
|
91
|
+
"jsdom": "^22.0.0",
|
|
92
|
+
"json5": "^2.2.3",
|
|
93
|
+
"katex": "^0.16.21",
|
|
94
|
+
"marked": "^12.0.1",
|
|
95
|
+
"mime-types": "^2.1.35",
|
|
96
|
+
"mongodb": "^5.8.0",
|
|
97
|
+
"nanoid": "^5.0.9",
|
|
98
|
+
"openai": "^4.44.0",
|
|
99
|
+
"openid-client": "^5.4.2",
|
|
100
|
+
"parquetjs": "^0.11.2",
|
|
101
|
+
"pg": "^8.20.0",
|
|
102
|
+
"pino": "^9.0.0",
|
|
103
|
+
"pino-pretty": "^11.0.0",
|
|
104
|
+
"postcss": "^8.4.31",
|
|
105
|
+
"prom-client": "^15.1.3",
|
|
106
|
+
"qs": "^6.14.2",
|
|
107
|
+
"satori": "^0.10.11",
|
|
108
|
+
"satori-html": "^0.3.2",
|
|
109
|
+
"sharp": "^0.33.4",
|
|
110
|
+
"tailwind-scrollbar": "^3.0.0",
|
|
111
|
+
"tailwindcss": "^3.4.0",
|
|
112
|
+
"three": "^0.183.2",
|
|
113
|
+
"undici": "^7.18.2",
|
|
114
|
+
"uuid": "^10.0.0",
|
|
115
|
+
"web-haptics": "^0.0.6",
|
|
116
|
+
"zod": "^3.22.3"
|
|
117
|
+
},
|
|
118
|
+
"overrides": {
|
|
119
|
+
"@reflink/reflink": "file:stub/@reflink/reflink"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rvf_version": "2.0",
|
|
3
|
+
"format": "rvf-package",
|
|
4
|
+
"name": "ruvocal",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"description": "RuVocal — Conversational AI UI powered by RuVector-Postgres. Fork of HuggingFace Chat UI with MongoDB replaced by PostgreSQL + pgvector for unified vector search across conversations, agents, and knowledge.",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"upstream": {
|
|
9
|
+
"repo": "https://github.com/huggingface/chat-ui",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"fork_date": "2026-03-05"
|
|
12
|
+
},
|
|
13
|
+
"segments": {
|
|
14
|
+
"MANIFEST": {
|
|
15
|
+
"type": "root",
|
|
16
|
+
"uuid": "${RVF_UUID}",
|
|
17
|
+
"created": "${RVF_TIMESTAMP}",
|
|
18
|
+
"parent": null
|
|
19
|
+
},
|
|
20
|
+
"PROFILE": {
|
|
21
|
+
"type": "domain-config",
|
|
22
|
+
"description": "Deployment configuration — PostgreSQL connection, AI providers, auth",
|
|
23
|
+
"config_schema": "config/config.example.json",
|
|
24
|
+
"env_schema": ".env.example"
|
|
25
|
+
},
|
|
26
|
+
"WASM": {
|
|
27
|
+
"type": "runtime",
|
|
28
|
+
"description": "SvelteKit app with PostgreSQL adapter + MCP Bridge v2.0",
|
|
29
|
+
"entrypoint": "src/hooks.server.ts",
|
|
30
|
+
"runtime": "node:20",
|
|
31
|
+
"port": 3000,
|
|
32
|
+
"database": {
|
|
33
|
+
"type": "postgresql",
|
|
34
|
+
"extensions": ["pgvector"],
|
|
35
|
+
"adapter": "src/lib/server/database.ts"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"META_IDX": {
|
|
39
|
+
"type": "metadata",
|
|
40
|
+
"components": [
|
|
41
|
+
{
|
|
42
|
+
"name": "ruvocal-ui",
|
|
43
|
+
"type": "service",
|
|
44
|
+
"description": "SvelteKit Chat UI with PostgreSQL backend, OIDC auth, autopilot mode, and vector search",
|
|
45
|
+
"dockerfile": "Dockerfile",
|
|
46
|
+
"port": 3000,
|
|
47
|
+
"env_vars": [
|
|
48
|
+
"DATABASE_URL",
|
|
49
|
+
"PUBLIC_APP_NAME",
|
|
50
|
+
"PUBLIC_ORIGIN",
|
|
51
|
+
"OPENID_PROVIDER_URL",
|
|
52
|
+
"OPENID_CLIENT_ID",
|
|
53
|
+
"OPENID_CLIENT_SECRET",
|
|
54
|
+
"OPENAI_BASE_URL",
|
|
55
|
+
"OPENAI_API_KEY",
|
|
56
|
+
"MCP_SERVERS",
|
|
57
|
+
"EMBEDDING_MODEL",
|
|
58
|
+
"EMBEDDING_DIMENSIONS"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "mcp-bridge",
|
|
63
|
+
"type": "service",
|
|
64
|
+
"description": "Per-group MCP JSON-RPC server + OpenAI-compatible chat proxy with autopilot mode",
|
|
65
|
+
"dockerfile": "mcp-bridge/Dockerfile",
|
|
66
|
+
"port": 3001,
|
|
67
|
+
"env_vars": [
|
|
68
|
+
"OPENAI_API_KEY",
|
|
69
|
+
"GOOGLE_API_KEY",
|
|
70
|
+
"OPENROUTER_API_KEY",
|
|
71
|
+
"ANTHROPIC_API_KEY",
|
|
72
|
+
"MCP_GROUP_INTELLIGENCE",
|
|
73
|
+
"MCP_GROUP_AGENTS",
|
|
74
|
+
"MCP_GROUP_MEMORY",
|
|
75
|
+
"MCP_GROUP_DEVTOOLS"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "ruvector-postgres",
|
|
80
|
+
"type": "datastore",
|
|
81
|
+
"description": "PostgreSQL 17 + pgvector 2.0.1 — unified storage for conversations, users, embeddings, and knowledge",
|
|
82
|
+
"image": "pgvector/pgvector:pg17",
|
|
83
|
+
"port": 5432
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"DATABASE": {
|
|
88
|
+
"type": "schema",
|
|
89
|
+
"description": "PostgreSQL schema replacing MongoDB collections",
|
|
90
|
+
"migration": "db/migrations/001_init.sql",
|
|
91
|
+
"tables": {
|
|
92
|
+
"conversations": "Chat sessions with vector embedding for semantic search",
|
|
93
|
+
"messages": "Normalized messages (extracted from MongoDB's nested array)",
|
|
94
|
+
"users": "User accounts (OIDC-backed)",
|
|
95
|
+
"sessions": "Auth sessions with TTL",
|
|
96
|
+
"settings": "User preferences and tool config",
|
|
97
|
+
"assistants": "Custom AI assistants/personas",
|
|
98
|
+
"assistant_stats": "Usage statistics for assistants",
|
|
99
|
+
"conversation_stats": "Aggregated conversation analytics",
|
|
100
|
+
"shared_conversations": "Public share links",
|
|
101
|
+
"aborted_generations": "TTL-based abort tracking",
|
|
102
|
+
"reports": "Abuse reports",
|
|
103
|
+
"message_events": "User feedback (votes, copies, shares)",
|
|
104
|
+
"semaphores": "Rate limiting with TTL",
|
|
105
|
+
"token_caches": "Short-lived token validation cache",
|
|
106
|
+
"config": "Runtime configuration key-value store",
|
|
107
|
+
"migration_results": "Schema migration tracking"
|
|
108
|
+
},
|
|
109
|
+
"extensions": ["pgvector", "uuid-ossp"],
|
|
110
|
+
"indexes": {
|
|
111
|
+
"hnsw": ["conversations.embedding", "messages.embedding"],
|
|
112
|
+
"btree": ["conversations.user_id", "messages.conversation_id", "sessions.session_id"]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"TOOL_GROUPS": {
|
|
116
|
+
"type": "mcp-groups",
|
|
117
|
+
"description": "Inherited from chat-ui-mcp — per-group MCP endpoints",
|
|
118
|
+
"groups": {
|
|
119
|
+
"core": { "enabled_by_default": true, "endpoint": "/mcp/core" },
|
|
120
|
+
"intelligence": { "enabled_by_default": true, "endpoint": "/mcp/intelligence" },
|
|
121
|
+
"agents": { "enabled_by_default": true, "endpoint": "/mcp/agents" },
|
|
122
|
+
"memory": { "enabled_by_default": true, "endpoint": "/mcp/memory" },
|
|
123
|
+
"devtools": { "enabled_by_default": true, "endpoint": "/mcp/devtools" }
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"AUTOPILOT": {
|
|
127
|
+
"type": "feature",
|
|
128
|
+
"description": "ADR-037 autopilot mode — server-side auto-continue with parallel task UI",
|
|
129
|
+
"adr": "docs/adr/ADR-037-AUTOPILOT-CHAT-MODE.md",
|
|
130
|
+
"components": {
|
|
131
|
+
"backend": "mcp-bridge/index.js (handleAutopilot)",
|
|
132
|
+
"frontend": "src/lib/components/autopilot/",
|
|
133
|
+
"worker": "src/lib/workers/autopilot.worker.ts"
|
|
134
|
+
},
|
|
135
|
+
"header": "x-autopilot: true",
|
|
136
|
+
"detail_endpoint": "/autopilot/detail/:token"
|
|
137
|
+
},
|
|
138
|
+
"OVERLAY": {
|
|
139
|
+
"type": "customization",
|
|
140
|
+
"description": "Brand-specific overlays",
|
|
141
|
+
"assets": [
|
|
142
|
+
"static/chatui/omni-welcome.gif",
|
|
143
|
+
"static/chatui/icon-144x144.png"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"CRYPTO": {
|
|
147
|
+
"type": "security",
|
|
148
|
+
"description": "Security configuration",
|
|
149
|
+
"auth_protocol": "openid-connect",
|
|
150
|
+
"no_embedded_secrets": true,
|
|
151
|
+
"env_only_keys": [
|
|
152
|
+
"OPENAI_API_KEY",
|
|
153
|
+
"GOOGLE_API_KEY",
|
|
154
|
+
"OPENROUTER_API_KEY",
|
|
155
|
+
"ANTHROPIC_API_KEY",
|
|
156
|
+
"OPENID_CLIENT_SECRET",
|
|
157
|
+
"DATABASE_URL"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"deployment": {
|
|
162
|
+
"platforms": ["google-cloud-run", "docker-compose", "kubernetes"],
|
|
163
|
+
"infrastructure": {
|
|
164
|
+
"ruvocal_ui": {
|
|
165
|
+
"memory": "2Gi",
|
|
166
|
+
"cpu": 2,
|
|
167
|
+
"min_instances": 1,
|
|
168
|
+
"max_instances": 10,
|
|
169
|
+
"timeout": 300
|
|
170
|
+
},
|
|
171
|
+
"mcp_bridge": {
|
|
172
|
+
"memory": "512Mi",
|
|
173
|
+
"cpu": 1,
|
|
174
|
+
"min_instances": 0,
|
|
175
|
+
"max_instances": 5,
|
|
176
|
+
"timeout": 300
|
|
177
|
+
},
|
|
178
|
+
"ruvector_postgres": {
|
|
179
|
+
"memory": "4Gi",
|
|
180
|
+
"cpu": 2,
|
|
181
|
+
"storage": "50Gi"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"capabilities": {
|
|
186
|
+
"mcp_protocol": "2024-11-05",
|
|
187
|
+
"mcp_tool_groups": true,
|
|
188
|
+
"per_group_mcp_endpoints": true,
|
|
189
|
+
"chat_completions_proxy": true,
|
|
190
|
+
"autopilot_mode": true,
|
|
191
|
+
"vector_search_conversations": true,
|
|
192
|
+
"postgresql_backend": true,
|
|
193
|
+
"no_mongodb_dependency": true,
|
|
194
|
+
"upstream_error_normalization": true,
|
|
195
|
+
"goap_search_pipeline": true,
|
|
196
|
+
"multi_provider_routing": ["openai", "gemini", "openrouter"],
|
|
197
|
+
"oidc_auth": true,
|
|
198
|
+
"svelte5_source": true,
|
|
199
|
+
"ruvector_integration": true,
|
|
200
|
+
"ruflo_integration": true,
|
|
201
|
+
"embedding_model": "all-MiniLM-L6-v2",
|
|
202
|
+
"embedding_dimensions": 384
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import sade from "sade";
|
|
2
|
+
|
|
3
|
+
// @ts-expect-error: vite-node makes the var available but the typescript compiler doesn't see them
|
|
4
|
+
import { config, ready } from "$lib/server/config";
|
|
5
|
+
|
|
6
|
+
const prog = sade("config");
|
|
7
|
+
await ready;
|
|
8
|
+
prog
|
|
9
|
+
.command("clear")
|
|
10
|
+
.describe("Clear all config keys")
|
|
11
|
+
.action(async () => {
|
|
12
|
+
console.log("Clearing config...");
|
|
13
|
+
await clear();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
prog
|
|
17
|
+
.command("add <key> <value>")
|
|
18
|
+
.describe("Add a new config key")
|
|
19
|
+
.action(async (key: string, value: string) => {
|
|
20
|
+
await add(key, value);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
prog
|
|
24
|
+
.command("remove <key>")
|
|
25
|
+
.describe("Remove a config key")
|
|
26
|
+
.action(async (key: string) => {
|
|
27
|
+
console.log(`Removing ${key}`);
|
|
28
|
+
await remove(key);
|
|
29
|
+
process.exit(0);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
prog
|
|
33
|
+
.command("help")
|
|
34
|
+
.describe("Show help information")
|
|
35
|
+
.action(() => {
|
|
36
|
+
prog.help();
|
|
37
|
+
process.exit(0);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
async function clear() {
|
|
41
|
+
await config.clear();
|
|
42
|
+
process.exit(0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async function add(key: string, value: string) {
|
|
46
|
+
if (!key || !value) {
|
|
47
|
+
console.error("Key and value are required");
|
|
48
|
+
process.exit(1);
|
|
49
|
+
}
|
|
50
|
+
await config.set(key as keyof typeof config.keysFromEnv, value);
|
|
51
|
+
process.exit(0);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function remove(key: string) {
|
|
55
|
+
if (!key) {
|
|
56
|
+
console.error("Key is required");
|
|
57
|
+
process.exit(1);
|
|
58
|
+
}
|
|
59
|
+
await config.delete(key as keyof typeof config.keysFromEnv);
|
|
60
|
+
process.exit(0);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Parse arguments and handle help automatically
|
|
64
|
+
prog.parse(process.argv);
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate RuFlo welcome animation — Foundation-inspired graph universe.
|
|
3
|
+
*
|
|
4
|
+
* Creates an animated GIF with:
|
|
5
|
+
* - Deep space background (#06060f)
|
|
6
|
+
* - Constellation-style graph nodes connected by glowing edges
|
|
7
|
+
* - Orbital paths and particle trails
|
|
8
|
+
* - "RuFlo" text with subtle glow
|
|
9
|
+
* - Stars scattered throughout
|
|
10
|
+
*
|
|
11
|
+
* Uses sharp (already installed) for PNG frame generation,
|
|
12
|
+
* then assembles frames into animated GIF.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import sharp from "sharp";
|
|
16
|
+
import { writeFileSync } from "fs";
|
|
17
|
+
|
|
18
|
+
const WIDTH = 480;
|
|
19
|
+
const HEIGHT = 320;
|
|
20
|
+
const FRAMES = 40; // ~2.5s at 60ms/frame
|
|
21
|
+
const BG = "#06060f";
|
|
22
|
+
|
|
23
|
+
// Graph nodes — positions in a constellation pattern
|
|
24
|
+
const NODES = [
|
|
25
|
+
{ x: 240, y: 120, r: 6, color: "#3b82f6", label: "" }, // center
|
|
26
|
+
{ x: 140, y: 80, r: 4, color: "#06b6d4", label: "" },
|
|
27
|
+
{ x: 340, y: 90, r: 4, color: "#818cf8", label: "" },
|
|
28
|
+
{ x: 180, y: 200, r: 5, color: "#2dd4bf", label: "" },
|
|
29
|
+
{ x: 300, y: 210, r: 5, color: "#a78bfa", label: "" },
|
|
30
|
+
{ x: 100, y: 160, r: 3, color: "#38bdf8", label: "" },
|
|
31
|
+
{ x: 380, y: 170, r: 3, color: "#c084fc", label: "" },
|
|
32
|
+
{ x: 200, y: 50, r: 3, color: "#22d3ee", label: "" },
|
|
33
|
+
{ x: 280, y: 260, r: 3, color: "#6366f1", label: "" },
|
|
34
|
+
{ x: 60, y: 240, r: 2, color: "#0ea5e9", label: "" },
|
|
35
|
+
{ x: 420, y: 250, r: 2, color: "#8b5cf6", label: "" },
|
|
36
|
+
{ x: 120, y: 280, r: 2, color: "#14b8a6", label: "" },
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
// Edges connecting nodes
|
|
40
|
+
const EDGES = [
|
|
41
|
+
[0, 1], [0, 2], [0, 3], [0, 4],
|
|
42
|
+
[1, 5], [1, 7], [2, 6], [2, 7],
|
|
43
|
+
[3, 5], [3, 8], [4, 6], [4, 8],
|
|
44
|
+
[5, 9], [6, 10], [8, 11], [9, 11],
|
|
45
|
+
[3, 9], [4, 10],
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
// Stars — random positions
|
|
49
|
+
const STARS = Array.from({ length: 80 }, () => ({
|
|
50
|
+
x: Math.random() * WIDTH,
|
|
51
|
+
y: Math.random() * HEIGHT,
|
|
52
|
+
r: Math.random() * 1.5 + 0.3,
|
|
53
|
+
brightness: Math.random() * 0.6 + 0.2,
|
|
54
|
+
}));
|
|
55
|
+
|
|
56
|
+
function generateFrame(frameIdx) {
|
|
57
|
+
const t = frameIdx / FRAMES;
|
|
58
|
+
const phase = t * Math.PI * 2;
|
|
59
|
+
|
|
60
|
+
let svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${WIDTH}" height="${HEIGHT}">`;
|
|
61
|
+
svg += `<defs>`;
|
|
62
|
+
// Glow filter
|
|
63
|
+
svg += `<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">`;
|
|
64
|
+
svg += `<feGaussianBlur stdDeviation="3" result="blur"/>`;
|
|
65
|
+
svg += `<feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>`;
|
|
66
|
+
svg += `</filter>`;
|
|
67
|
+
// Stronger glow for text
|
|
68
|
+
svg += `<filter id="textglow" x="-50%" y="-50%" width="200%" height="200%">`;
|
|
69
|
+
svg += `<feGaussianBlur stdDeviation="6" result="blur"/>`;
|
|
70
|
+
svg += `<feMerge><feMergeNode in="blur"/><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>`;
|
|
71
|
+
svg += `</filter>`;
|
|
72
|
+
// Radial gradient for nebula effect
|
|
73
|
+
svg += `<radialGradient id="nebula" cx="50%" cy="40%" r="60%">`;
|
|
74
|
+
svg += `<stop offset="0%" stop-color="#1e1b4b" stop-opacity="0.3"/>`;
|
|
75
|
+
svg += `<stop offset="50%" stop-color="#0c0a2a" stop-opacity="0.15"/>`;
|
|
76
|
+
svg += `<stop offset="100%" stop-color="${BG}" stop-opacity="0"/>`;
|
|
77
|
+
svg += `</radialGradient>`;
|
|
78
|
+
svg += `</defs>`;
|
|
79
|
+
|
|
80
|
+
// Background
|
|
81
|
+
svg += `<rect width="${WIDTH}" height="${HEIGHT}" fill="${BG}"/>`;
|
|
82
|
+
// Nebula overlay
|
|
83
|
+
svg += `<rect width="${WIDTH}" height="${HEIGHT}" fill="url(#nebula)"/>`;
|
|
84
|
+
|
|
85
|
+
// Stars with twinkling
|
|
86
|
+
for (const star of STARS) {
|
|
87
|
+
const twinkle = star.brightness + Math.sin(phase * 3 + star.x * 0.1) * 0.15;
|
|
88
|
+
const opacity = Math.max(0.1, Math.min(1, twinkle));
|
|
89
|
+
svg += `<circle cx="${star.x.toFixed(1)}" cy="${star.y.toFixed(1)}" r="${star.r.toFixed(1)}" fill="white" opacity="${opacity.toFixed(2)}"/>`;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Animated node positions (subtle orbital motion)
|
|
93
|
+
const animNodes = NODES.map((n, i) => ({
|
|
94
|
+
...n,
|
|
95
|
+
ax: n.x + Math.sin(phase + i * 0.7) * (3 + i * 0.5),
|
|
96
|
+
ay: n.y + Math.cos(phase + i * 0.9) * (2 + i * 0.3),
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
// Draw edges with pulse effect
|
|
100
|
+
for (const [a, b] of EDGES) {
|
|
101
|
+
const na = animNodes[a];
|
|
102
|
+
const nb = animNodes[b];
|
|
103
|
+
const edgePhase = Math.sin(phase * 2 + a + b) * 0.3 + 0.4;
|
|
104
|
+
svg += `<line x1="${na.ax.toFixed(1)}" y1="${na.ay.toFixed(1)}" x2="${nb.ax.toFixed(1)}" y2="${nb.ay.toFixed(1)}" stroke="#3b82f6" stroke-opacity="${edgePhase.toFixed(2)}" stroke-width="0.8"/>`;
|
|
105
|
+
|
|
106
|
+
// Traveling particle along edge
|
|
107
|
+
const particleT = (t * 3 + a * 0.1) % 1;
|
|
108
|
+
const px = na.ax + (nb.ax - na.ax) * particleT;
|
|
109
|
+
const py = na.ay + (nb.ay - na.ay) * particleT;
|
|
110
|
+
svg += `<circle cx="${px.toFixed(1)}" cy="${py.toFixed(1)}" r="1.5" fill="#60a5fa" opacity="0.7" filter="url(#glow)"/>`;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Draw nodes
|
|
114
|
+
for (const n of animNodes) {
|
|
115
|
+
// Outer glow
|
|
116
|
+
svg += `<circle cx="${n.ax.toFixed(1)}" cy="${n.ay.toFixed(1)}" r="${(n.r * 2.5).toFixed(1)}" fill="${n.color}" opacity="0.15"/>`;
|
|
117
|
+
// Core
|
|
118
|
+
svg += `<circle cx="${n.ax.toFixed(1)}" cy="${n.ay.toFixed(1)}" r="${n.r}" fill="${n.color}" filter="url(#glow)"/>`;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Orbital ring around center node
|
|
122
|
+
const centerX = animNodes[0].ax;
|
|
123
|
+
const centerY = animNodes[0].ay;
|
|
124
|
+
svg += `<ellipse cx="${centerX.toFixed(1)}" cy="${centerY.toFixed(1)}" rx="45" ry="18" fill="none" stroke="#3b82f6" stroke-opacity="0.2" stroke-width="0.5" transform="rotate(${(t * 30).toFixed(1)} ${centerX.toFixed(1)} ${centerY.toFixed(1)})"/>`;
|
|
125
|
+
svg += `<ellipse cx="${centerX.toFixed(1)}" cy="${centerY.toFixed(1)}" rx="55" ry="22" fill="none" stroke="#818cf8" stroke-opacity="0.15" stroke-width="0.5" transform="rotate(${(-t * 20 + 60).toFixed(1)} ${centerX.toFixed(1)} ${centerY.toFixed(1)})"/>`;
|
|
126
|
+
|
|
127
|
+
// "RuFlo" text
|
|
128
|
+
const textY = HEIGHT - 40;
|
|
129
|
+
svg += `<text x="${WIDTH / 2}" y="${textY}" text-anchor="middle" font-family="'Segoe UI', 'Helvetica Neue', Arial, sans-serif" font-size="32" font-weight="300" fill="#e0e7ff" letter-spacing="8" filter="url(#textglow)">RuFlo</text>`;
|
|
130
|
+
|
|
131
|
+
// Subtitle
|
|
132
|
+
svg += `<text x="${WIDTH / 2}" y="${textY + 20}" text-anchor="middle" font-family="'Segoe UI', 'Helvetica Neue', Arial, sans-serif" font-size="9" fill="#94a3b8" letter-spacing="3" opacity="0.7">INTELLIGENT WORKFLOWS</text>`;
|
|
133
|
+
|
|
134
|
+
svg += `</svg>`;
|
|
135
|
+
return svg;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
async function main() {
|
|
139
|
+
console.log(`Generating ${FRAMES} frames...`);
|
|
140
|
+
|
|
141
|
+
const frames = [];
|
|
142
|
+
for (let i = 0; i < FRAMES; i++) {
|
|
143
|
+
const svg = generateFrame(i);
|
|
144
|
+
const pngBuffer = await sharp(Buffer.from(svg))
|
|
145
|
+
.resize(WIDTH, HEIGHT)
|
|
146
|
+
.png()
|
|
147
|
+
.toBuffer();
|
|
148
|
+
frames.push(pngBuffer);
|
|
149
|
+
process.stdout.write(".");
|
|
150
|
+
}
|
|
151
|
+
console.log(" done");
|
|
152
|
+
|
|
153
|
+
// Assemble into animated GIF using sharp
|
|
154
|
+
// sharp doesn't natively do animated GIF, so we'll create frames and
|
|
155
|
+
// use the GIF89a format manually or just output a nice static image
|
|
156
|
+
// with the first frame for now, plus we can use the sharp webp animation
|
|
157
|
+
|
|
158
|
+
// Actually, let's generate an animated WebP (which sharp supports) and also
|
|
159
|
+
// a static GIF fallback
|
|
160
|
+
console.log("Creating animated WebP...");
|
|
161
|
+
const animatedWebp = await sharp(frames[0], { animated: true })
|
|
162
|
+
.webp({ quality: 80 })
|
|
163
|
+
.toBuffer();
|
|
164
|
+
|
|
165
|
+
// For the GIF, we'll manually construct it since sharp doesn't do animated GIF
|
|
166
|
+
// Let's just create a high-quality static GIF from the best frame
|
|
167
|
+
const staticGif = await sharp(frames[0]).gif().toBuffer();
|
|
168
|
+
writeFileSync("static/chatui/omni-welcome.gif", staticGif);
|
|
169
|
+
console.log(`Wrote static/chatui/omni-welcome.gif (${(staticGif.length / 1024).toFixed(1)}KB)`);
|
|
170
|
+
|
|
171
|
+
// Also save a nice PNG version
|
|
172
|
+
writeFileSync("static/chatui/omni-welcome.png", frames[0]);
|
|
173
|
+
console.log(`Wrote static/chatui/omni-welcome.png (${(frames[0].length / 1024).toFixed(1)}KB)`);
|
|
174
|
+
|
|
175
|
+
// Generate the SVG directly for highest quality (browsers handle SVG animation)
|
|
176
|
+
const svgFrame = generateFrame(0);
|
|
177
|
+
writeFileSync("static/chatui/welcome.svg", svgFrame);
|
|
178
|
+
console.log(`Wrote static/chatui/welcome.svg`);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
main().catch(console.error);
|