P0luz
|
529c9cc172
|
chore: dead code cleanup (pyflakes-clean)
Build & Push Docker Image / build-and-push (push) Has been cancelled
Tests / test (push) Has been cancelled
- Remove unused imports: time/asyncio/Path/Optional/re/Counter/jieba
across backfill_embeddings, bucket_manager, embedding_engine, import_memory
- Drop unused local var `old_primary` in reclassify_domains
- Fix 3 placeholder-less f-strings in backfill_embeddings, migrate_to_domains,
reclassify_domains
- Delete legacy quick-check scripts test_smoke.py / test_tools.py (replaced
by tests/ pytest suite, never collected by pytest)
- Delete backup_20260405_2124/ (stale local snapshot, no code references)
Verified: pyflakes *.py → 0 warnings; pytest tests/ → 237 passed, 7 skipped.
|
2026-04-21 20:11:47 +08:00 |
|
P0luz
|
38be7610f4
|
fix: replace personal filesystem paths with env vars / config
- docker-compose.yml: hardcoded iCloud Obsidian vault volume → ${OMBRE_HOST_VAULT_DIR:-./buckets}
- write_memory.py / migrate_to_domains.py / reclassify_domains.py / reclassify_api.py:
hardcoded ~/Documents/Obsidian Vault/Ombre Brain → OMBRE_BUCKETS_DIR > load_config() > ./buckets
- write_memory.py: also fix B-04 regression (activation_count: 1 → 0 in frontmatter template)
- reclassify_api.py: model + base_url now read from config (was hardcoded SiliconFlow / DeepSeek-V3)
- tests/dataset.py + test_feel_flow.py: anonymize fixture identifiers (P酱/P0lar1s/北极星 → TestUser/北方)
Project identifiers (git.p0lar1s.uk, p0luz/ombre-brain, P0luz/Ombre-Brain GitHub) intentionally retained as project branding per user decision.
|
2026-04-21 19:53:24 +08:00 |
|