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

@@ -1,10 +1,44 @@
# Scripts
This directory is reserved for future helpers that automate:
This directory contains helpers that automate:
- context aggregation
- standup generation
- manager update drafting
- Mattermost-ready message formatting
No automation has been implemented yet. The current workflow is document-driven.
The default workspace Mattermost extractor now lives in:
- `scripts/mattermost/`
Recommended default command:
```bash
bash scripts/mattermost/sync.sh
```
Bootstrap command:
```bash
bash scripts/mattermost/bootstrap.sh
```
The current Mattermost extractor is stdlib-only and does not require installing `requests`.
If you still want to override it with another script, expose that to OpenCode with:
- `FIDELITY_MATTERMOST_SYNC_CMD`
Example:
```bash
export FIDELITY_MATTERMOST_SYNC_CMD="/absolute/path/to/your-mattermost-sync-script"
```
Expected behavior:
- print the latest relevant Mattermost context to stdout
- avoid interactive prompts
- return a non-zero exit code on failure
OpenCode can then use that output to refresh `ai/inbox/mattermost-latest.md` proactively.