Commit Graph

12 Commits

Author SHA1 Message Date
P0luz
71154d905f refactor: doc/code consistency, OMBRE_PORT, webhook push, host-vault dashboard
Doc-code consistency (per BEHAVIOR_SPEC.md ground truth):
- INTERNALS.md, dehydrator.py, README.md, config.example.yaml: drop the
  outdated "API 不可用自动降级到本地关键词提取" claims; align with the
  "RuntimeError on API outage, no silent fallback" design decision
- INTERNALS.md & BEHAVIOR_SPEC.md narrative: activation_count=1 → 0 (B-04)
- server.py header: 5 MCP tools → 6 (add dream)

OMBRE_PORT (T5/T6):
- Replace hardcoded 8000 in FastMCP / uvicorn / keepalive URL
  with int(os.environ.get("OMBRE_PORT", "8000"))

OMBRE_HOOK_URL / OMBRE_HOOK_SKIP webhook (T7):
- Implement _fire_webhook() helper: fire-and-forget POST with 5s timeout,
  failures logged at WARNING but never propagated
- Wired into breath / dream MCP tools and /breath-hook + /dream-hook routes
- Push payload: {event, timestamp, payload:{...}}; documented in ENV_VARS.md

Dashboard host-vault input (T12, per user request):
- New /api/host-vault GET/POST endpoints persist OMBRE_HOST_VAULT_DIR
  to project-root .env (idempotent upsert, preserves other entries,
  rejects quotes/newlines)
- Settings tab gains a "宿主机记忆桶目录 (Docker)" panel with
  load/save buttons and a clear "需要 docker compose down/up 生效" notice
2026-04-21 20:08:52 +08:00
P0luz
2646f8f7d0 docs: refresh INTERNALS / README / dashboard after B-fix series 2026-04-21 19:05:18 +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
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
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