Skip to content

Track safe CLI and API errors#46

Merged
wydrox merged 2 commits into
mainfrom
pi/error-tracking-0.5.3
May 7, 2026
Merged

Track safe CLI and API errors#46
wydrox merged 2 commits into
mainfrom
pi/error-tracking-0.5.3

Conversation

@wydrox

@wydrox wydrox commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • add privacy-safe cli_error and api_error analytics events
  • route CLI console script through main_entry so non-zero exits are tracked
  • add API middleware to track 4xx/5xx responses and unhandled endpoint exceptions
  • allow only safe string fields (command, endpoint, error_type, error_stage) plus numeric codes; no stack traces, prompts, request bodies, model names, repo IDs, or paths
  • bump package version to 0.5.3

Validation

  • uv run ruff check .
  • PPMLX_ANALYTICS_ENABLED=0 uv run pytest -q (231 passed)
  • uv build
  • uvx --from dist/ppmlx-0.5.3-py3-none-any.whl ppmlx --version -> ppmlx 0.5.3

Notes

  • MLX dependency constraints are intentionally unchanged from main.

@wydrox wydrox merged commit 222c504 into main May 7, 2026
1 check passed
@wydrox wydrox deleted the pi/error-tracking-0.5.3 branch May 7, 2026 14:41
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