@trajectonomics/cli 0.5.1-alpha.0 → 0.6.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -204,6 +204,29 @@ traj backup --out ~/traj-backup-2026-11-30
204
204
  traj data remove --confirm ~/.traj --backup ~/traj-backup-2026-11-30
205
205
  ```
206
206
 
207
+ ## Telemetry
208
+
209
+ > **Ships in 0.6.0.**
210
+
211
+ `traj` counts its own use, so the project can see how many people run it each week. After a command finishes, a detached process sends one anonymous event to PostHog (EU), so the command never waits for the network. The event holds:
212
+
213
+ - `command`: the command name, such as `tx add`, or nothing when the command line named none
214
+ - `exit_code` and `error_code`: how the run ended, such as `invalid_input`
215
+ - `format`: `human` or `json`
216
+ - `version`, `os` and `arch`: the CLI version and the platform
217
+
218
+ It never holds your ledger, arguments, flag values, account names, amounts, file paths, the data directory or any environment variable. As with any web request, PostHog sees the IP address the request comes from.
219
+
220
+ The random id that groups one machine's events is in `telemetry.json`, in `$XDG_CONFIG_HOME/traj` (or `~/.config/traj`), or in `%APPDATA%\traj` on Windows. It lives outside the data directory, so `traj data remove` does not delete it. `traj telemetry off` deletes it. A machine where that file cannot be written sends nothing.
221
+
222
+ There are three ways to stop it:
223
+
224
+ - `traj telemetry off`, which stores the choice for this machine
225
+ - `DO_NOT_TRACK=1` in the environment of the command
226
+ - `TRAJ_TELEMETRY=0` (or `off` or `false`) in the environment of the command
227
+
228
+ CI runners (where `CI` is set) and development builds never send. The first successful command prints one line on stderr that says so, and it prints it once. `traj telemetry status` shows whether counting is on and why, and `traj telemetry on` turns it back on; a `DO_NOT_TRACK`, `TRAJ_TELEMETRY` or `CI` setting still stops it, and the status says which one.
229
+
207
230
  ## Docs
208
231
 
209
232
  - [`GLOSSARY.md`](GLOSSARY.md): the project's vocabulary.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trajectonomics/cli",
3
- "version": "0.5.1-alpha.0",
3
+ "version": "0.6.0-alpha.1",
4
4
  "description": "trajectonomics command line",
5
5
  "license": "MIT",
6
6
  "type": "module",