The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
docs: update CLAUDE.md with full v2.3.0 status + remaining work
PurpleDoubleD73487155024d
diff --git a/CLAUDE.md b/CLAUDE.mdnew file mode 100644index 00000000..e24fbd49--- /dev/null+++ b/CLAUDE.md@@ -0,0 +1,100 @@+# Locally Uncensored — Developer Guide++## Project Overview+Desktop AI app (Tauri + React + TypeScript) for local LLM chat, image and video generation via ComfyUI.+- **Repo:** PurpleDoubleD/locally-uncensored (35+ stars)+- **Current version:** v2.2.3 (released 2026-04-05)+- **Active branch:** `full-comfyui-fix` — v2.3.0 ComfyUI Plug & Play feature (DO NOT PUSH until ready)++## Tech Stack+- **Frontend:** React 19, Zustand, Tailwind CSS 4, Framer Motion, Vite 8+- **Backend:** Tauri 2 (Rust), tokio, reqwest+- **Testing:** Vitest 4, pattern `src/**/__tests__/**/*.test.ts`, node environment+- **Build:** `npm run dev` (frontend), `npm run tauri:dev` (full app)++## Key Architecture+```+src/api/comfyui.ts — Model classification, ComfyUI API, workflow builders, uploadImage()+src/api/dynamic-workflow.ts — Strategy detection + dynamic workflow building (14 strategies)+src/api/comfyui-nodes.ts — Node discovery + categorization from ComfyUI /object_info+src/api/discover.ts — Model bundles (14 video, 6 image), CUSTOM_NODE_REGISTRY, downloads+src/api/preflight.ts — Pre-generation validation (VAE/CLIP/node checks)+src/api/backend.ts — Tauri IPC abstraction (backendCall, localFetch, comfyuiUrl)+src/api/workflows.ts — Workflow validation, format conversion, parameter injection+src/stores/downloadStore.ts — Unified download tracking (Zustand) for ComfyUI model downloads+src-tauri/src/commands/ — Rust commands: install, process, download, proxy, etc.+```++## Current Work: v2.3.0 (branch: full-comfyui-fix)++### What's DONE (160 tests passing, committed c27d20c):+1. **7 new ModelTypes:** mochi, cosmos, cogvideo, svd, framepack, pyramidflow, allegro+2. **7 new WorkflowStrategies** with complete node chains for each model+3. **14 video bundles + 6 image bundles** in discover.ts with HuggingFace URLs+4. **CUSTOM_NODE_REGISTRY** — 5 custom node repos (AnimateDiff, CogVideoX, FramePack, PyramidFlow, Allegro)+5. **install_custom_node** Rust command — git clone + pip install into ComfyUI/custom_nodes/+6. **Onboarding 'comfyui' step** — auto-detect, one-click install, re-scan button, manual path input+7. **Onboarding polish** — window drag region + controls, accent dots (Agent Tutorial style), step indicator dots, tool calling badges, hardware-aware model filtering (VRAM), uncensored/mainstream tabs+8. **Settings ComfyUI section** — status indicator (Running/Stopped/Not Installed), start/stop/restart, install button+9. **Preflight** — all 15 ModelTypes handled (needsUnet check covers all new types)+10. **I2V Image Upload UI** — drag & drop in CreateView for SVD/FramePack, uploadImage() to ComfyUI, filename passed to workflow builders+11. **Unified downloadStore** — Zustand store replaces component-local polling, tracks all ComfyUI downloads globally+12. **DownloadBadge unified** — shows text + image + video downloads, grouped by bundle name with sub-file progress+13. **VRAM tier filter tabs** — All / Lightweight / Mid-Range / High-End for video bundles+14. **installBundleComplete()** — one-click: custom nodes + all model files + ComfyUI restart+15. **isInstalled fix** — exact name match (was: base-name comparison, caused Gemma 4 variant bug)+16. **Default view = chat homepage** (Startseite with LU logo), not Model Manager+17. **6 uncensored video bundles** (Wan 2.1 x2, HunyuanVideo, CogVideoX x2, FramePack)+18. **LTX bug fixed** — workflow was 'wan' instead of 'ltx'++### What's LEFT to finish v2.3.0:+1. **Broken download UI** — User reports clicking Download on video bundles (Wan 2.1, FramePack, CogVideoX) doesn't visibly start. URLs are confirmed valid (HTTP 200). The `handleBundleInstall` → `installBundleComplete` flow now has error handling + `installingBundle` loading state, but needs E2E verification with real ComfyUI. May be a Rust backend issue with `download_model` command not finding ComfyUI path.+2. **Some bundle URLs are gated** — CogVideoX (Kijai repo, 401), SVD (Stability AI, 401), Cosmos (401), PyramidFlow (404). These need alternative public URLs or require HF token auth.+3. **Manual E2E test** with real ComfyUI instance — verify all downloads, workflows, I2V upload++### Files modified in this branch (23 files, +3051 lines):+- `src/api/comfyui.ts` — 7 new ModelTypes, COMPONENT_REGISTRY, uploadImage(), inputImage in VideoParams+- `src/api/dynamic-workflow.ts` — 7 new strategies, 5 wrapper builders, inputImage support in SVD/FramePack+- `src/api/comfyui-nodes.ts` — 30+ new nodes in categorization mapping+- `src/api/discover.ts` — 14 video + 6 image bundles, CUSTOM_NODE_REGISTRY, installBundleComplete(), uncensored flags+- `src/api/backend.ts` — install_custom_node endpoint mapping+- `src/api/preflight.ts` — extended needsUnet check for all new model types+- `src-tauri/src/commands/install.rs` — install_custom_node command+- `src-tauri/src/commands/download.rs` — download_model with resume, progress, speed tracking+- `src-tauri/src/main.rs` — registered install_custom_node+- `src/components/create/CreateView.tsx` — I2V upload UI (drag & drop, preview, replace/remove)+- `src/components/layout/DownloadBadge.tsx` — unified: text + ComfyUI downloads, bundle grouping+- `src/components/models/DiscoverModels.tsx` — VRAM tier tabs, downloadStore integration, installBundleComplete, isInstalled fix+- `src/components/onboarding/Onboarding.tsx` — comfyui step, drag region, accent dots, VRAM filtering, tool calling badges, re-scan+- `src/components/settings/SettingsPage.tsx` — ComfyUISettings component+- `src/hooks/useCreate.ts` — i2vImage pass-through to workflow builder+- `src/lib/constants.ts` — OnboardingModel: vramGB, uncensored, agent fields + mainstream models+- `src/stores/createStore.ts` — i2vImage state+- `src/stores/downloadStore.ts` — NEW: unified ComfyUI download tracking (polling, bundle grouping)+- `src/stores/uiStore.ts` — default view changed to 'chat'++### Test files (4 new):+- `src/api/__tests__/comfyui-models.test.ts` — classifyModel, MODEL_TYPE_DEFAULTS, COMPONENT_REGISTRY, determineStrategy (79 tests)+- `src/api/__tests__/comfyui-bundles.test.ts` — bundle validation, custom node registry, shared files (15 tests)+- `src/api/__tests__/comfyui-workflows.test.ts` — strategy mapping, unavailability, workflow coverage (30 tests)+- `src/api/__tests__/comfyui-integration.test.ts` — full pipeline Bundle→Strategy verification (36 tests)++## Conventions+- Language: German comments welcome, code in English+- Commits: descriptive, semantic (`feat:`, `fix:`, `docs:`)+- No emojis in code or UI+- Run `npx vitest run` before committing+- Run `cargo check --manifest-path src-tauri/Cargo.toml` for Rust changes+- UI: Tailwind utility classes, dark mode first, lucide-react icons+- State: Zustand stores in `src/stores/`+- Tauri IPC: `backendCall()` from `src/api/backend.ts`+- Downloads: Use `downloadStore` for all ComfyUI downloads (not component-local state)++## Reference Docs (on Desktop)+- `C:\Users\ddrob\Desktop\LU_UPDATE_PLAN.md` — Full v2.3.0 plan+- `C:\Users\ddrob\Desktop\LU_VIDEO_MODELS_WORKFLOW_RESEARCH.md` — Detailed node chains for all 16 models++## Pre-existing test failures (NOT caused by our changes):+- `tool-registry.test.ts` — counts are outdated (13 tools vs expected 7)+- `provider-ollama.test.ts` — options key always present now (num_gpu: 99)+- `model-compatibility.test.ts` — provider set changed