feat(cli): `minutes transcribe --json` — lightweight file-to-transcript output for integrations
Problem
minutes process <file> runs the full pipeline (transcribe → diarize → summarize → write markdown to ~/meetings) and has no lightweight "transcribe this file, hand back the text" path. There is no way to get just a transcript to stdout in a machine-readable form.
Integrations need exactly that. An OpenClaw media-understanding provider (#373), other agents, and plain scripting all want file → transcript text without the meeting pipeline or any filesystem writes. Today the only options are running the full pipeline and scraping the generated markdown, which is heavyweight and fragile.
Proposal
Add a transcription-only path that prints a JSON envelope to stdout and writes nothing to ~/meetings. Either a new minutes transcribe <file> --json subcommand or minutes process <file> --stdout --json. A subcommand is probably cleaner since the semantics differ (no diarize/summarize/write by default).
Output reuses the existing JSON envelope pattern (json_envelope in crates/cli/src/main.rs):
{
"command": "transcribe",
"data": {
"text": "full transcript text",
"language": "en",
"segments": [{ "start": 0.0, "end": 3.2, "text": "..." }],
"duration_ms": 3200
},
"meta": { ... }
}
Scope
- Transcription only. whisper-guard cleaning applied, honor config language/model, allow
--languageoverride. - No summarization, no markdown, no writes to
~/meetings. - Diarization optional behind a flag (
--diarize) for callers that want speaker turns; off by default for speed.
Why it is worth doing on its own
- Stable machine contract for any integration or script, decoupled from the markdown format.
- Prerequisite for a clean OpenClaw transcription provider (#373) instead of scraping pipeline output.
- Generally useful: quick CLI transcription, piping into other tools, other agent hosts.
Out of scope: the OpenClaw plugin itself (#373). This issue is just the underlying CLI contract.