feat(demos): one-command runner (python demo.py)#19
Merged
Conversation
`python demo.py` runs demo 1, 2, and 3 in order, pausing before each so it can be narrated live. Flags: --no-pause (straight through) and a positional 1|2|3 (run a single demo). Sets CMCP_BEARER_TOKEN and CMCP_DEV_MODE, prints the detected cmcp-runtime version, and self-heals into a local .venv if the active interpreter cannot resolve the cmcp console script (common on Windows Store Python). Colour output only when attached to a TTY. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Imran Siddique <imran.siddique@opaque.co>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Imran Siddique <imran.siddique@opaque.co>
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.
What
Adds
demo.py, a single entry point that runs all three demos in order.Why
For live presentations and quick evaluation: one command instead of three, with a pause before each demo so it can be narrated.
Details
CMCP_BEARER_TOKENandCMCP_DEV_MODEif unset.cmcp-runtimeversion and warns if it is older than 0.3.0 (the version the narration assumes)..venvif the active interpreter cannot resolve thecmcpconsole script (common on Windows Store Python)..venvstays gitignored.Runtime behavior of the individual demos is unchanged.
🤖 Generated with Claude Code