Skip to content

feat(demos): one-command runner (python demo.py)#19

Merged
imran-siddique merged 2 commits into
mainfrom
feat/one-command-demo-runner
Jul 17, 2026
Merged

feat(demos): one-command runner (python demo.py)#19
imran-siddique merged 2 commits into
mainfrom
feat/one-command-demo-runner

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

What

Adds demo.py, a single entry point that runs all three demos in order.

python demo.py            # run all three, pausing before each (for live talks)
python demo.py --no-pause # run straight through
python demo.py 2          # run only demo 2

Why

For live presentations and quick evaluation: one command instead of three, with a pause before each demo so it can be narrated.

Details

  • Sets CMCP_BEARER_TOKEN and CMCP_DEV_MODE if unset.
  • Prints the detected cmcp-runtime version and warns if it is older than 0.3.0 (the version the narration assumes).
  • Self-heals into a local .venv if the active interpreter cannot resolve the cmcp console script (common on Windows Store Python). .venv stays gitignored.
  • Colour output only when attached to a TTY.
  • README documents the quick-start.

Runtime behavior of the individual demos is unchanged.

🤖 Generated with Claude Code

imran-siddique and others added 2 commits July 17, 2026 08:56
`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>
@imran-siddique
imran-siddique merged commit a52585a into main Jul 17, 2026
3 checks passed
@imran-siddique
imran-siddique deleted the feat/one-command-demo-runner branch July 17, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant