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.1

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

python -m pip install cmdop-observations==4.0.1

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.1 updates the package repository metadata following the move to GitHub. The 4.0.0 runtime, imports, dependencies and consent behavior are unchanged. For SDK documentation and future integration guides, visit the official CMDOP SDK repository.

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.1

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.1
File Size Uploaded Provenance Actions
cmdop_observations-4.0.1.tar.gz 35.7 kB With provenance Details for cmdop_observations-4.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 113.2 kB

Release files / cmdop_observations-4.0.1.tar.gz

Download URL cmdop_observations-4.0.1.tar.gz
Size 35.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2f46f65dd68ac5b9bf369bee17de85196cb0d15603343810bece4c23caf5fbed
BLAKE2b-256 checksum
How to use checksums
c829274f23ceb22a61aac54562fbf3c494e96b43f706a852c99e5f8ae77143f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

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

Download URL cmdop_observations-4.0.1-py3-none-any.whl
Size 77.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfa3b76e12d7f3b552833f5297f54768b3d8e4fcd1a2521f94d9bad0013cebf7
BLAKE2b-256 checksum
How to use checksums
52220153b46125a1a76758575cfb92ebb76c61f0b94996d2f656975c63f970fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for cmdop-observations 4.0.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cmdop_observations-4.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

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