@saptools/cf-debugger 0.2.2 → 0.3.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 CHANGED
@@ -18,6 +18,35 @@ Without it, an explicit stop refuses to signal a state-recorded PID whose port
18
18
  ownership cannot be proved; teardown still completes when the spawned child is
19
19
  independently confirmed dead.
20
20
 
21
+ ## Updates
22
+
23
+ Every command first checks npm for a newer `@saptools/cf-debugger` (at most once an hour, one small request
24
+ with a 2-second timeout) and, when one exists, installs that exact version with the package manager
25
+ that owns the running binary and re-runs the command you typed on the new version. Both steps are
26
+ announced on stderr; nothing is printed when the install is already current:
27
+
28
+ ```text
29
+ cf-debugger: updating 0.3.0 -> 0.4.0 ...
30
+ cf-debugger: updated to 0.4.0; re-running the command
31
+ ```
32
+
33
+ If the install cannot complete, one stderr line gives the manual command and the command runs on the
34
+ installed version; that version is not retried for a day. `cf-debugger self-update` forces the check and
35
+ install now; `cf-debugger self-update --check` only reports.
36
+
37
+ | Control | Effect |
38
+ | --- | --- |
39
+ | `SAPTOOLS_AUTO_UPDATE=on\|notify\|off` | `on` (default) installs and re-runs; `notify` prints the manual command once per version; `off` never checks. Applies to every `@saptools` CLI. |
40
+ | `CF_DEBUGGER_AUTO_UPDATE` | same values, this CLI only; wins over the global variable |
41
+ | `SAPTOOLS_UPDATE_INTERVAL_MINUTES` | minutes between checks (default `60`; `0` checks on every run) |
42
+ | `SAPTOOLS_NPM_REGISTRY` | registry to check and install from (default: npm's configured registry, then npmjs) |
43
+ | `SAPTOOLS_UPDATE_DEBUG=1` | explain on stderr why nothing happened |
44
+
45
+ The updater switches itself off in CI (`CI` set), under `NODE_ENV=test` or `NO_UPDATE_NOTIFIER`, when
46
+ the binary runs from a source checkout, an `npm link` or an `npx` cache, and inside the re-run itself.
47
+ It never writes to stdout, never asks for input, never uses `sudo`, and never moves onto a prerelease.
48
+ Its state lives in `~/.saptools/updates/`.
49
+
21
50
  ## Quick start
22
51
 
23
52
  ```bash