@lotics/cli 0.192.0 → 0.194.0
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.
- package/README.md +1 -1
- package/dist/src/cli.js +1047 -177
- package/dist/src/client.d.ts +17 -11
- package/dist/src/client.js +17 -18
- package/docs/building_an_app.md +7 -0
- package/docs/cli_reference.md +5 -5
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -195,7 +195,7 @@ Every request identifies the CLI (`user-agent: lotics-cli/<version> node/<v> <pl
|
|
|
195
195
|
**`LOTICS_TELEMETRY=1` additionally records the session.** Off by default. Set it in your shell profile rather than per command — each invocation is its own process. When set:
|
|
196
196
|
|
|
197
197
|
- Requests carry a session id shared by every command in the sitting — under an agent harness it adopts the harness's own session id, otherwise it rolls over after 30 minutes idle (`~/.lotics/session.json`).
|
|
198
|
-
- Each invocation appends one record to `~/.lotics/telemetry
|
|
198
|
+
- Each invocation appends one record to `~/.lotics/telemetry-<host>.ndjson` — the command, its exit code, how long it took, and, on a failure, the message that was printed. One spool per Lotics the CLI talks to, so a record made against one instance is only ever sent to that instance. Batches are sent on a later run against the same host; a failed send is retried, never dropped silently.
|
|
199
199
|
|
|
200
200
|
Arguments contribute a **hash** and a **shape** (`records[].data.name:string`) and nothing else — no values, no file contents, no record data. The hash is the point: two failures in a row with the same hash mean the error message did not tell you enough to fix the call.
|
|
201
201
|
|