Skip to content

MS-2371: telemetry parity with the Node CLI; PyPI package meetstream-cli - #5

Merged
doluz merged 1 commit into
mainfrom
feature/ms-2371-telemetry-pypi
Nov 23, 2026
Merged

doluz merged 1 commit into
mainfrom
feature/ms-2371-telemetry-pypi

Conversation

@doluz

@doluz doluz commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Anonymous usage event cli_command_run per command: command name and path, version, OS, CPU, hashed computer id. The same event and the same PostHog project as @meetstream/cli 0.x, with the same anonymous id formula, so one computer keeps one id across both CLIs.
  • Opt-out: MEETSTREAM_TELEMETRY=0 or DO_NOT_TRACK=1. Never sent from go test. Sent in the background; exit waits at most 800 ms.
  • PyPI distribution renamed to meetstream-cli (wheel meetstream_cli-*). The name meetstream on PyPI belongs to an unrelated project (0.1.0, Sep 2025). The command is still meetstream. A PEP 541 request for the name follows separately.
  • README: package managers first, telemetry section, config row. SKILL.md install line.

Why

Sid's decisions for v1.0.0 (23 Nov): keep the Node CLI's telemetry; publish on PyPI as meetstream-cli now.

How

internal/telemetry (stdlib only), hooked in the root PersistentPreRun; Execute waits for it. scripts/pack.py metadata and file names.

Testing

  • go test ./... and go vet (also GOOS=windows go vet ./...): pass.
  • New tests: opt-out variables, off in tests, payload has only the allowed properties, never blocks past the timeout.
  • PostHog capture endpoint accepted the payload format (200, {"status":"Ok"}).

🤖 Generated with Claude Code


Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

- Anonymous cli_command_run event (command, version, OS, arch, hashed id), same as @meetstream/cli 0.x; MEETSTREAM_TELEMETRY=0 or DO_NOT_TRACK=1 turns it off; never sent from tests; waits at most 800 ms at exit
- PyPI name: meetstream-cli (the name meetstream belongs to another project); the command stays meetstream
- README: package managers first, telemetry section

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@doluz
doluz merged commit 6a7f3a0 into main Nov 23, 2026
5 checks passed
@doluz
doluz deleted the feature/ms-2371-telemetry-pypi branch November 23, 2026 08:38
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