feat: Implement Mattermost sync functionality and enhance workspace context management

This commit is contained in:
2026-04-09 14:46:50 -06:00
parent e92c07b8b1
commit 0173e3d376
18 changed files with 740 additions and 7 deletions

View File

@@ -157,8 +157,24 @@ Recommended usage:
Project commands live under `.opencode/commands/` and are intended to:
- load the baseline Fidelity context
- sync Mattermost context into the workspace inbox
- draft standups
- draft Jeff updates
- convert rough notes into daily log updates
This keeps AI output tied to the latest workspace state instead of relying on chat memory alone.
---
## Mattermost Memory Flow
This workspace supports a live-memory pattern for Mattermost.
Recommended setup:
1. Use the workspace-local script at `scripts/mattermost/sync.sh`, or override it with `FIDELITY_MATTERMOST_SYNC_CMD`.
2. Let OpenCode run with the project plugins enabled.
3. The Mattermost inbox plugin will periodically refresh `ai/inbox/mattermost-latest.md`.
4. Promote durable facts from the inbox into `ai/logs/`, `ai/state/`, and `ai/context/`.
Use `/mattermost-sync` when you want to force a refresh manually.