Spaces:
Runtime error
Runtime error
Commit History
-
solved issue
f1c3c6d
-
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
-
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
-
Refactor backend: split routes, add services & tests
Restructure the backend into modular API route files and core services. Added new FastAPI route modules (assets, chat, execution, history, sessions, specs) and supporting core modules (config, logging, errors, url_guard) plus LLM integration client and many service updates (api_executor, chat_assistant, llm_planner, response_analyzer). Implemented SSRF protection, rate limiting, spec upload/parse, execution planning and analysis, media hub asset handling, session/context endpoints, and exportable history. Added tests, pytest.ini, updated requirements and .gitignore, removed .env.example, and added documentation/plans/screenshots and upload placeholders. Overall prepares the project for clearer separation of concerns, improved security, and test coverage.ef865f2
-
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 UI docs; refine executor and parser behavior
Adds a new UI_DOCUMENTATION.md describing the app UI and workflows. Updates backend/services/api_executor.py to clarify authentication rules (use credentials appropriately, only include Authorization when required, do not default to Bearer) and adjust the example Authorization placeholder. Updates backend/services/swagger_parser.py to stop resolving $refs at parse time (return raw spec to defer $ref resolution to execution time for large files), make endpoint extraction more robust, and expose paths/components/openapi/title/version from the raw spec. Removes an obsolete Supabase implementation/plan file.97fada4
-
Clean and flattened project initialization
3c8d218