_extract_skills_to_robot used shutil.copytree(dirs_exist_ok=True), which
only overwrites same-named files. Renamed/removed files and __pycache__
in the robot project's skill copy were left behind, so after a skill
refactor (e.g. rag-retrieve adding create_error_response and dropping
call_rag_retrieve) stale copies ended up with mismatched imports and
failed to load.
Switch to rmtree + copytree so each managed skill directory is fully
replaced from source on every sync. Also ignore __pycache__/*.pyc so the
source's compiled artifacts are not propagated.
Refs: #59
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Normalize OpenAI-style and LangChain standard image blocks into LangChain
standard content blocks so provider block_translators auto-convert for
either OpenAI or Anthropic. Flatten multimodal content to plain text when
persisting history and computing term embeddings.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The unused 'from sympy.printing.cxx import none' was accidentally added
by IDE autocomplete. sympy is not installed in the image, so importing
agent/deep_assistant.py raised ModuleNotFoundError and the API server
crash-looped on startup.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The local file-parsing pipeline (upload -> Huey async parse -> generate
projects/data/.../document.txt) is no longer needed: RAG retrieval runs
against the backend vector store and does not read the local parse output,
so removing this has zero impact on existing bot Q&A.
- Delete task_queue/ (Huey queue, consumer, tasks, task status store)
- Delete parsing utils: dataset_manager, single_file_processor,
data_merger, project_manager
- Delete db_manager.py (only managed task_status.db)
- routes/files.py: keep only POST /api/v1/upload; drop all
parse/queue/task endpoints
- routes/projects.py: drop /tasks endpoint and task_status import
- utils/__init__.py & api_models.py: remove exports/models for deleted
modules and queue task models
- start_unified.py & start_all_optimized.sh: no longer launch the
queue consumer
- Drop huey dependency (keep redis)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>