Repository navigation
MS-2424: CLI 1.1 guided flows (init, env, mock, trigger, listen --tunnel, --transcription, join --follow, ai install, commands) - #7
Merged
Conversation
…anscription, join --follow, ai install, commands (MS-2424) - init: templates (notetaker, send-a-bot, live-captions, webhook-receiver; Python/Node, no packages) embedded in the binary; step menus with Esc back; every question is a flag; writes .env (0600, key never printed) and AGENTS.md - env: fill .env from .env.example; --check exits 3 on empty keys - join --transcription / --live-transcription (mapped to *_streaming) / --follow (NDJSON with --json; exit 1 not admitted, 4 transcript failed) - transcription providers; transcribe --transcription (default stays deepgram) - listen --tunnel cloudflared|ngrok|https URL, --forward-to; a running listen fills join's callback when the API can reach it - trigger: sample webhooks in the production envelope - mock: loopback fake API with 5 scenarios, no bots, no charges - ai install: SKILL.md + hosted MCP for Claude Code, Codex, Cursor - commands --json: commands, flags, enums, exit codes Old flags and listen --json stdout are unchanged. No relay, no default changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- env: refuse to write .env through a symbolic link; when the CLI writes the API key it also writes the profile's API URL, so a project file cannot send the key to another host
- listen: strip control characters (ESC, C0/C1) from webhook text before printing
- templates: check bot_id and transcript_id against ^[A-Za-z0-9_-]{1,128}$ and URL-encode them before they go into an API path; notetaker ignores events with a bad bot_id; note that the app port must stay on loopback behind listen (webhooks are not signed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- write MEETSTREAM_API_URL from the profile even when .env.example does not list it, and drop any other MEETSTREAM_API_URL line from the kept user lines - read "export KEY=value" as KEY - the warning no longer prints the old URL Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "export<whitespace>KEY" and "KEY: value" name KEY; keys must match ^[A-Za-z_][A-Za-z0-9_]*$, other lines are dropped with a count - when the key is written, every MEETSTREAM_API_URL variant (any case) from .env or .env.example is removed and the profile URL is written as the last line Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-agent-config-id (MS-2424) Sid's decision (24 Nov 2026): mixed mode. - meetstream api <path> [-X] [-d] [--envelope]: one API call with the CLI sign-in; relative paths only - init/env write no MeetStream key by default; --with-key writes the key and its profile API URL (for servers) - templates (Python, Node): with no key in .env they call MeetStream through "meetstream api"; the CLI keeps the shell's API URL, so a URL in .env cannot redirect the sign-in; with a key they call the API directly - .env.example, READMEs and AGENTS.md explain laptop vs server - join --agent-config-id is hidden (same as --agent-config; still works) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- live: add sarvam_streaming and jigsawstack_streaming (Google Meet only) - post-call: add aws_transcribe (not for US-region bots); meeting_captions is join only - transcribe refuses meeting_captions and *_streaming providers with a usage hint (the server rejects them) - transcription providers --json notes that the API has no transcribe default Checked against meetstream-codebase origin/main dc873422a (read only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dioStatus/TranscriptStatus in /detail Found by the cross-harness tests: skills correctly teach waiting for Done; the mock stopped at Stopped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tus message); mock matches production
- api: GetTranscript treats HTTP 202 from get_transcript as "not ready" and keeps polling; before, the
202 JSON message ("Transcript is still being processed") was returned as the transcript. Affects
`transcript --wait` and `join --follow` against production (1.0.1 has the same code). Tests added.
- mock: get_transcript answers 202 while processing (was 404), 409 for bots never admitted;
adds GET /bots/{bot_id}/get_transcript (in the API spec); POST /transcribe answers 200 (was 202).
Found by the cross-harness tests (agents that handled the real 202 failed against the old mock).
Production behaviour checked in meetstream-codebase get_transcript Lambda (origin/main dc873422a).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… production /mia CRUD with production validation, in-meeting commands (send_message, send_image, send_command, pause/resume, update_mia acks), bridge sockets (bot id in the path only for agent bots, ready handshakes, 0x04 24 kHz frames, command replies), custom-function calls, raw/sentence/word_level live posts, an agent-controls scenario, and GET /__mock/journal for tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ys; PUT validates custom functions; tool URLs rechecked; public tool URL rewrite for tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- listen --forward-to copies X-MeetStream-* headers and User-Agent (G3)
- join --live-transcription sends transcription_mode sentence; new
--transcription-mode raw|sentence|word_level (validated, live providers
only); listen human output and the live-captions template skip
is_final:false POSTs, --json keeps every event (G4)
- transcript --wait / join --follow: no transcript_id and a terminal bot
asks GET /bots/{id}/get_transcript once; 409 returns at once (G7)
- 202 on audio/video/streams/audio-streams/chats/screenshots is a
NotReadyError, exit 3; 507 unchanged (G8)
- terminal status regex anchored to whole values, adds kicked, cancelled,
mediaexpired; RecordingPermissionDenied is not terminal (G9)
- init templates read words[].text, punctuated_word, word, then flat
transcript/text (G10)
- mia apply maps a saved mia get --json (agent_config wrapper, PascalCase)
to the snake_case body POST/PUT read (G17)
- SKILL.md, README and commands --json enum updated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…98Z), as production sends them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
New commits (MS-2488 and the cross-harness tests):
Testing:
🤖 Generated with Claude Code |
…fore meeting_ready are dropped (as seen live on Google Meet) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pped (live: +0.5 s dropped, +5 s posted) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eady Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
doluz
marked this pull request as ready for review
November 27, 2026 14:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft for review. Linear: MS-2424 (related to MS-2371). Demo video of every flow (4 min 40 s, real build against
meetstream mock): added by Sid in a comment.What
CLI 1.1 guided flows, built as a prototype that runs end to end. It adds no new infrastructure and changes no default.
init--yes --no-input).--list --jsonprints the catalog. It writes.env(mode 0600) andAGENTS.md. No MeetStream key goes into.envby default (Sid's decision, 24 Nov): the app calls MeetStream throughmeetstream apiwith your sign-in.--with-keywrites the key and its API URL for a server.env.envfrom.env.exampleand lists empty keys (--check, exit 3).--with-keyadds the MeetStream key plus the profile API URL as the last line.join --transcription <id>-t, with a checked provider list.join --live-transcription <id>meetstreamtomeetstream_streaming, and the same for the other providers. The webhook comes from the runninglisten.join --follow--jsonit prints NDJSON. Exit 1 if the bot is not admitted, denied or failed; exit 4 if the transcript failed.transcription providerstranscribe --transcription-p. The default staysdeepgram.listen --tunnel cloudflared|ngrok|https://…,--forward-tolistenruns,joinwith no-csends events to it, but only when the API can reach that URL (the tunnel URL, or the local URL with the mock).trigger <event>bot.notallowedgoes out asevent: bot.stopped,bot_event: bot.notallowed).mockai install.bakbackup). For Claude Code it printsclaude mcp add.api <path>-X,-d,--envelope). On a laptop, the init apps use it, so no key is copied into project files.commands --jsonWhy
Plan: https://claude.ai/artifact/NXoHnomdZAxxCaEFqafFyp. Sid approved the names on 24 Nov 2026. The goal is for an agent or a developer to go from an empty folder to a tested notetaker with no live bots, then switch to real bots with one URL change.
How
internal/mock(API stand-in plus the webhook envelopes from the production webhook guide) andinternal/templates(go:embed,text/templatewith[[ ]]delimiters).internal/cli: the new commands,join_flow.go(flag mapping plus--follow) andlisten_session.go(~/.meetstream/listen.json, which holds URLs only, plus the tunnel start).mcp add --writenow calls a sharedmergeMCPFile. The strict backup rule formcp addis unchanged.Unchanged (contract):
-t,-p(defaultdeepgram),--live-transcript-webhookand--forwardwork as before.listen --jsonstdout is still one line per event. The new URL line goes to stderr.Differences from the plan page:
--transcriptionand--live-transcriptioncannot be used together, because a bot runs one provider. The CLI exits 2 with a hint.listenand the templates use per-botcallback_urldeliveries, which are not signed (workspace endpoints are signed; see question 6).--idempotency-keyalready exists.Not in this PR:
listenwithout a tunnel, andbots tail).Testing
go vet ./...andgo test ./...pass on macOS. The 18 new tests are ininternal/cli/guided_flows_test.go. They cover:--followNDJSON and the exit codes for each scenario-tstill workslistensession fills the callback, and that a dead session is ignoredinit(all 6 templates render, non-empty folder, errors, key never printed)env,trigger, tunnel URL parsing and the missing-binary caseai install(safe to run again), thecommandsenums, and the mock's loopback-only rulemeetstream mock:send_bot.mjs(Node) ran to the transcript.triggerevents.Questions for review
transcribe -pondeepgram, or move it tomeetstreamin 1.1 with a changelog note?-cfromlistenonly when the API can reach it)?ai installprintsclaude mcp addand does not run it. Keep that rule?X-MeetStream-Signature: sha256=<HMAC of the raw body>), but per-botcallback_urldeliveries and live-transcript POSTs are not, andlisten/the templates usecallback_url. Anyone with a tunnel URL can post fake events. Options: (a)listenverifies signatures when the user points a signed workspace endpoint at it, (b) a per-session secret path in the tunnel URL, (c) signcallback_urldeliveries server-side. Which one before we tell people to use--tunnel?Naming and key decisions (Sid, 24 Nov)
listen --forward-to,join --follow. Hidden:join --agent-config-id(still works).bots summarystays visible.--with-keyfor servers (commit caefb7d).Security review (commits 0fa54e1, 327cd10, 7e965ac)
envwill not write.envthrough a symbolic link. When it writes the key, it also writes the profile's API URL, so a project file cannot send the key to another host.listenremoves control characters from webhook text before it prints it (no terminal escape injection).bot_idandtranscript_idagainst^[A-Za-z0-9_-]{1,128}$and URL-encode them before they go into an API path.🤖 Generated with Claude Code