Spaces:
Runtime error
Runtime error
Commit History
-
deploy: update
ad279fb -
deploy: update
4c4c8a0
-
Add multi-LLM support, settings & migrations
Introduce a multi-LLM architecture and related settings plus DB migrations. Added alembic migrations to add missing columns and new llm config tables; new backend/integrations/llm modules (providers.py, factory.py, registry.py, resolver.py) to replace the global client pattern and enable per-task LLM resolution. Added settings route for LLM provider/task management and wired services (planner, executor, chat, response analyzer) to use get_llm_for_task (including async plan generation and a /plan/stream SSE endpoint). Updated routes and services to use DB session and timezone-aware datetimes, added frontend pages/components (SettingsPage, UsagePage, workflow subcomponents), and updated env.example with AUTH credentials. Misc: small .claude tweaks and other bugfixes related to planning/streaming, token usage logging, and Vite proxy config.1e24842
-
changed the project structure and ui , updated security and enhanced the project
3f78860 -
Add auth, credential encryption, and session ownership (Items 3, 5, 6)
Item 3 – Authentication: - backend/core/auth.py: create_access_token() + verify_token() dependency (JWT/PyJWT) - backend/app/api/routes/auth.py: POST /auth/login, GET /auth/me (public) - backend/main.py: all API routers now protected with Depends(verify_token) - Config: AUTH_USERNAME, AUTH_PASSWORD, JWT_SECRET, JWT_EXPIRE_HOURS - Frontend: token stored in module memory (never localStorage); axios request interceptor adds Authorization header; 401 broadcasts auth:logout event - LoginPage.jsx: themed sign-in card shown before app loads - App.jsx: guards main app behind isAuthenticated state Item 5 – Credential encryption: - backend/core/crypto.py: encrypt_credentials()/decrypt_credentials() via Fernet - Transparent backwards-compat: legacy plaintext dicts pass through unchanged - specs.py: encrypts on save, decrypts on GET /credentials and GET /specs/:id - execution.py: decrypts stored creds before passing to LLM planner and executor - Config: ENCRYPTION_KEY (Fernet key, optional — wa…098f3ea -
Security & reliability: Phase 1–3 fixes (Items 1–15)
- git rm --cached tracked binary uploads from documents/ - Add .env.example with placeholder values - Extract shared Limiter to backend/core/limiter.py (Item 14) - Tighten CORS: restrict allow_methods and allow_headers (Item 7) - Fix traceback import inside except in chat.py; add logger (Item 13) - Fix DNS rebinding SSRF: resolve IP once via resolve_safe_ip(), pin to resolved IP with Host header so httpx cannot re-resolve (Item 4) - Fix mutable default args in prepare_step_request (Item 10) - Wrap prepare_step_request in asyncio.to_thread() (Item 8) - Add LLM parse retry with AppError after 2 failures in api_executor (Item 9) - Replace print() with logger calls in database.py and chat_assistant.py (Item 12) - Increase response truncation to 4000 chars, JSON-aware, configurable (Item 15) - Add RESPONSE_TRUNCATION_LIMIT to settings (Item 15) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c6f3411
-
Add Chat Assistant & selection handling
Introduce a persistent, context-aware Chat Assistant and interactive selection flow across backend, frontend, schemas, and docs. Key changes: - Backend: add ChatSession/ChatMessage models, chat_assistant service, and endpoints (/chat, /chat-sessions/*, POST /context/{session_id}) in main.py; save/load last 20 messages and persist assistant actions as structured JSON. Increase httpx timeout and deduplicate query params before execution; make request.body flexible (Any). Add Unicode import for SQLAlchemy types. - Schemas: new ChatRequest/ChatResponse/ChatMessage/ChatSessionSummary and selection option fields in AnalyzeResponse/ContextUpdate. - API executor: stricter rules, body can be array, files and enum handling clarified. - Frontend & docs: add ChatAssistant component, Chat UI/embedded panel, selection modal flow, and update Project/UX/Research docs to describe structured actions, selection detection, and persistence. This enables conversational control (execute_step, modify_reques…6270070
-
Add documentation, diagrams, and research paper
Add comprehensive project documentation (PROJECT_DOCUMENTATION.md), a Mermaid diagrams guide (Project_Diagrams.md), and an academic research paper (Research_Paper.md) to describe architecture, data flow, API contracts, and design decisions. Also add a temporary test file (tmp_test_delete.py) and apply updates to backend/database.py. These additions provide reference material for developers, architects, and reviewers — including runnable diagrams, DB schema, API endpoints, and usage/run instructions.2760db0
-
Add collections scoped to specs and UI support
Introduce collection scoping and collection management across backend and frontend. Backend: add spec_id FK to Collection, accept collection_id on asset upload, infer spec from collection when needed, link assets to collections, return collection_ids with assets, add list/create/delete collection endpoints (with optional spec filtering), reset upload file cursor, and improve spec deletion to delete assets via AssetService and remove spec file from storage. AssetService: validate Supabase key more robustly, persist collection relationships, filter collections/assets to include global or spec-scoped items, and add delete_collection. Frontend: pass active spec into MediaHub, refetch when spec changes, allow selecting/creating/deleting collections, include collection in uploads, and update API client methods to send/receive collection and spec_id data. These changes enable per-spec collections and UI management of collections and asset assignments.481e01c -
Add Supabase storage and DB env handling
Introduce Supabase storage support and improve environment loading for the database. .env.example updated with DATABASE_URL, SUPABASE_* keys and storage bucket example. backend/database.py now loads .env (handles running from repo root or subfolder), requires DATABASE_URL, normalizes postgres URL prefix, removes sqlite-specific connect_args and legacy migration code, and adds a file_path column to SpecDocument. backend/services/storage.py adds abstract method docs, ensures file pointers are reset for local saves, and implements SupabaseStorageProvider (upload/delete/get_public_url). backend/services/asset_service.py selects Supabase vs local provider based on env, logs provider choice, and updates asset upload logic to save files to storage and record file paths. backend/main.py upload_spec now saves the uploaded spec to storage, records file_path on the SpecDocument, and adds basic error logging. requirements.txt updated to relax httpx version and add supabase and websockets dependenc…fbefffb
-
Clean and flattened project initialization
3c8d218