Skip to main content

CMDOP Observations

Consent-gated usage analytics for CMDOP command-line tools, with matching JavaScript and Python clients.

CMDOP · CMDOP documentation · Official CMDOP SDK

CMDOP Observations helps maintainers of CMDOP launchers collect optional, bounded usage-event reports from explicitly participating interactive sessions. It is not the official CMDOP SDK, a machine agent, or a launcher installer. Installing this library does not enroll a package identity or enable analytics.

Installation

For JavaScript applications running Node.js 20 or newer:

npm install --save-exact @cmdop/observations@4.0.0

For Python applications running Python 3.10 or newer, use a project-local virtual environment:

python -m pip install cmdop-observations==4.0.0

Importing the client does not start a network request:

import { ObservationSession, shareObservations } from "@cmdop/observations";
from cmdop_promo_observations import ObservationSession, share_observations

The Python distribution retains both cmdop_promo_observations and cmdop_promo_marketing import namespaces. Version 4.0.0 aligns the package version with the CMDOP release cohort; the existing public 0.1.0 runtime, imports and dependency pins are unchanged.

What it does

  • Provides a shared observation session and event-reporting adapter in both languages.
  • Accepts a bounded in-memory draft of recognized command-line actions and closed result categories.
  • Requires explicit one-run consent and an interactive context before sharing.
  • Makes one best-effort request with a total 500 ms send budget, without retries or a persistent queue.
  • Keeps useful command results separate from analytics delivery outcomes.

Nothing is sent on installation or import.

Integrating a session

Create a fresh session for an actual interactive invocation only when the launcher has a reviewed enrollment and a configured receiver origin. Supply the exact package identity and record only the outcomes that really occurred. Before sharing, disclose the receiving origin, package identity, event fields, fresh per-run IDs and applicable retention policy. Default to no. Finish or discard the session at the appropriate invocation boundary.

Use the observation session rather than constructing arbitrary event properties. No disclosure revision, caller label or installed package grants permission to access the backend. The server checks exact enrolled identities, request schemas, replay protection, event age, request size, rate and daily quota limits.

For SDK actions, the session projects caller-supplied install, import and example-file outcomes into closed stage/result values. Creating an example means writing a file, not running it, authorizing access or connecting a machine. The receiver must support that stage contract before an integration enables the corresponding events.

Privacy and limitations

DO_NOT_TRACK=1 prevents observation recording or sharing at the checked session boundaries. Refusal, cancellation, unsupported configuration and failed delivery must not prevent a useful command from completing. No saved consent, persistent identifier, disk queue, retry, credential read or install-time send is provided by the observation session.

Project paths, arbitrary properties, file contents, credentials, diagnostics, input text and exception messages are excluded from the session's event projection. The receiving service can still observe network metadata such as the connecting IP address. These reports describe participating invocations; they are not installation counts, unique people, authenticated product activations or proof of successful SDK use.

The package contains the existing generated contract operations and DTOs. JavaScript exports the event-report and summary operations and schemas. The Python generated client also contains protected marketing methods. Their presence grants no permission and does not enable anonymous activation or account writes. Summary access requires the backend's operator permission.

Choosing the right CMDOP package

For application code that connects to computers, use the official CMDOP SDK: @cmdop/sdk in JavaScript/TypeScript and cmdop in Python. The CMDOP machine program is installed separately. Ordinary SDK users do not need Observations.

License

MIT. See LICENSE and THIRD_PARTY_NOTICES included in the distribution. Runtime dependencies retain their own licenses.

This is a first-party CMDOP package. Production enrollment and collection configuration remain separate from publication of the library.

Metadata

Release files for cmdop-observations 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmdop-observations 4.0.0
File Size Uploaded Provenance Actions
cmdop_observations-4.0.0.tar.gz 35.6 kB Without provenance Details for cmdop_observations-4.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cmdop-observations 4.0.0
File Interpreter ABI Platform Actions
cmdop_observations-4.0.0-py3-none-any.whl Python 3 none any Details for cmdop_observations-4.0.0-py3-none-any.whl

Total release size: 113.1 kB

Release files / cmdop_observations-4.0.0.tar.gz

Download URL cmdop_observations-4.0.0.tar.gz
Size 35.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5a37e3a66a6272111202e368052fb9af5f7ede6def18344c7ff7f3c4d0348df4
BLAKE2b-256 checksum
How to use checksums
86a31efcfbd7637029ad6359ff644457381daefb1f6b8f93823ff2cd7104a296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release files / cmdop_observations-4.0.0-py3-none-any.whl

Download URL cmdop_observations-4.0.0-py3-none-any.whl
Size 77.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c97d3dcc2e8f2564fae2531ab776acb9614c4ab955aa953ae8f45a360f601585
BLAKE2b-256 checksum
How to use checksums
04ae6393fa2f9277c5b7eb00ae6e75d88011ca9b92c747b97c8876a3bdba179a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Security for cmdop-observations 4.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page