Commit Graph

19 Commits

Author SHA1 Message Date
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
P0luz
b869a111c7 feat: add base_url env vars, iCloud conflict detector, user compose guidance
Some checks failed
Build & Push Docker Image / build-and-push (push) Has been cancelled
Tests / test (push) Has been cancelled
- utils.py: support OMBRE_DEHYDRATION_BASE_URL and OMBRE_EMBEDDING_BASE_URL
  so Gemini/non-DeepSeek users can configure without mounting a custom config
- docker-compose.user.yml: pass all 4 model/url env vars from .env;
  add commented Gemini example + optional config.yaml mount hint
- ENV_VARS.md: document OMBRE_DEHYDRATION_BASE_URL and OMBRE_EMBEDDING_BASE_URL
- check_icloud_conflicts.py: scan bucket dir for iCloud conflict artefacts
  and duplicate bucket IDs (report-only, no file modifications)
2026-04-21 19:18:32 +08:00
P0luz
cddc809f02 chore(gitignore): exclude private memory data and dev test suites
- data/ : local user memory buckets (privacy)
- tests/integration/, tests/regression/, tests/unit/ :
  developer-only test suites kept out of upstream
2026-04-21 19:05:22 +08:00
P0luz
2646f8f7d0 docs: refresh INTERNALS / README / dashboard after B-fix series 2026-04-21 19:05:18 +08:00
P0luz
b318e557b0 fix: complete B-03/B-08/B-09 and add OMBRE_*_MODEL env vars
- decay_engine: keep activation_count as float (B-03);
  refresh local meta after auto_resolve so resolved_factor
  applies in the same cycle (B-08)
- server.hold(): user-supplied valence/arousal now takes
  priority over analyze() output (B-09)
- utils.load_config: support OMBRE_DEHYDRATION_MODEL
  (with OMBRE_MODEL alias) and OMBRE_EMBEDDING_MODEL
- ENV_VARS.md: document new model env vars
- tests/conftest.py: align fixture with spec-correct weights
  (time_proximity=1.5, content_weight=1.0) and feel subdir layout
2026-04-21 19:05:08 +08:00
P0luz
d2d4b89715 fix(search): keep resolved buckets reachable by keyword
Apply ×0.3 resolved penalty *after* fuzzy_threshold filter so
resolved buckets that genuinely match the query still surface
in search results (penalty only affects ranking order).
Update BEHAVIOR_SPEC.md scoring section to document new order.
2026-04-21 18:46:04 +08:00
P0luz
ccdffdb626 spec: add BEHAVIOR_SPEC and fix B-01~B-10 (resolved/decay/scoring)
- Add BEHAVIOR_SPEC.md as full system behaviour reference
- B-01: stop auto-archiving resolved buckets in update()
- B-03: keep activation_count as float in calculate_score
- B-04: initialise activation_count=0 on create
- B-05: time score coefficient 0.1 -> 0.02
- B-06: w_time default 2.5 -> 1.5
- B-07: content_weight default 3.0 -> 1.0
- B-08: refresh local meta after auto_resolve
- B-09: user-supplied valence/arousal takes priority over analyze()
- B-10: allow empty domain for feel buckets
- Refresh INTERNALS/README/dashboard accordingly
2026-04-21 18:45:52 +08:00
P0luz
c7ddfd46ad Merge pull request #3 from msz136/main 2026-04-21 13:29:18 +08:00
mousongzhe
2d2de45d5a 单独配置embedding模型 2026-04-21 13:21:23 +08:00
P0luz
e9d61b5d9d fix: 移除本地保底脱水的过时描述(README+dehydrator注释)
Some checks failed
Build & Push Docker Image / build-and-push (push) Has been cancelled
Tests / test (push) Has been cancelled
2026-04-19 18:19:04 +08:00
P0luz
d1cd3f4cc7 docs: 添加各部署方式的更新指南(Docker Hub/源码/Render/Zeabur/VPS) 2026-04-19 18:03:04 +08:00
P0luz
5815be6b69 docs: 云部署补充Dashboard地址, 修正脱水API描述(已移除local fallback) 2026-04-19 18:00:31 +08:00
P0luz
3b5f37c7ca docs: README补充前端Dashboard地址和端口说明 2026-04-19 17:51:59 +08:00
P0luz
d4740f0d1f fix: dehydrate优先走API + SQLite缓存, breath/pulse显示bucket_id
Some checks failed
Build & Push Docker Image / build-and-push (push) Has been cancelled
Tests / test (push) Has been cancelled
- dehydrate() 现在仅通过 API 脱水,不再有本地 fallback
- 新增 SQLite 持久缓存 (dehydration_cache.db),避免重复 API 调用
- 删除 _local_dehydrate() 和 _extract_keywords(),移除 jieba 依赖
- breath 三种模式 (surfacing/search/feel) 输出添加 [bucket_id:xxx]
- pulse 输出每行添加 bucket_id:xxx
2026-04-19 13:12:44 +08:00
P0luz
821546d5de docs: update README/INTERNALS for import feature, harden .gitignore 2026-04-19 12:09:53 +08:00
P0luz
a09fbfe13a chore: update repository links to P0luz GitHub account and clarify Gitea backup link 2026-04-15 23:59:19 +08:00
P0lar1s
faf80fea69 fix: improve merge logic, time decay, breath output format, session hook 2026-04-15 22:02:38 +08:00
ab34dc4348 更新 README.md 2026-04-15 08:08:42 +00:00
P0lar1s
0d695f71cb init: first commit to Gitea mirror, update README with Docker quick start and new repo URL
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 15:44:25 +08:00