Files
fidelity-ai-workspace/scripts/README.md

58 lines
1.3 KiB
Markdown

# Scripts
This directory contains helpers that automate:
- context aggregation
- standup generation
- manager update drafting
- Mattermost-ready message formatting
- historical Slack import
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`.
It also supports readable channel names in `.env`, not only channel IDs.
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.
Historical Slack exports can also be imported through:
- `python3 scripts/slack/import_slack_export.py ...`
- `/slack-import ...`
Recommended raw archive location:
- `archives/slack/export/`
The importer can auto-detect `fidelity*` channels and auto-tune message selection for very large exports.