sim 2.1.13 → 2.1.14-preview.116.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 (3) hide show
  1. package/README.md +30 -4
  2. package/dist/index.js +11074 -10865
  3. package/package.json +4 -1
package/README.md CHANGED
@@ -25,6 +25,32 @@ You can also run a command without installing the package globally:
25
25
  npx sim --help
26
26
  ```
27
27
 
28
+ ## Updates
29
+
30
+ The CLI checks for a newer stable release on eligible interactive invocations,
31
+ at most once per day. It prints an optional update notice and continues your
32
+ command. Updates install only when you run `sim update`.
33
+
34
+ Update immediately, including in CI or with automatic checks disabled:
35
+
36
+ ```bash
37
+ sim update
38
+ ```
39
+
40
+ The updater uses the package manager that installed the running copy and verifies
41
+ its global installation before making changes. Supported managers are npm, pnpm,
42
+ Bun, and Yarn Classic. Use `sim update --package-manager bun` if detection does
43
+ not match a custom installation. Manual updates preserve staging and dev channels.
44
+ Installation failures exit with an error; concurrent update attempts are refused.
45
+ The updater resolves the channel through that package manager, refuses older
46
+ releases, and installs the exact version it checked.
47
+
48
+ Set `SIM_NO_UPDATE_CHECK=1` to disable update notices. Project-local installs and
49
+ temporary package-runner copies must be updated through their package manager.
50
+
51
+ Older releases without `sim update` need one upgrade using the package manager
52
+ that installed them before this mechanism becomes available.
53
+
28
54
  ## Get started
29
55
 
30
56
  Sign in to the default profile:
@@ -290,12 +316,12 @@ The main environment variables are:
290
316
  | `SIM_CONFIG_DIR` | Base directory for CLI config, credentials, and the update cache |
291
317
  | `SIM_TIMEOUT_SECONDS` | Per-request timeout; `0` waits indefinitely |
292
318
  | `SIM_DEBUG` | Print request diagnostics to stderr |
293
- | `SIM_NO_UPDATE_CHECK` | Turn off the update notice |
319
+ | `SIM_NO_UPDATE_CHECK` | Turn off update notices |
294
320
 
295
321
  On eligible interactive invocations, `sim` uses a daily cache before asking
296
- `registry.npmjs.org` what is published under the `latest` tag and prints one
297
- line on stderr when a newer version exists. Prerelease installs are skipped
298
- entirely. The cache lives in `~/.sim` by default and follows `SIM_CONFIG_DIR`;
322
+ `registry.npmjs.org` what is published under the `latest` tag and prints an
323
+ optional notice on stderr when a newer version exists. Prerelease installs are
324
+ skipped entirely. The cache lives in `~/.sim` by default and follows `SIM_CONFIG_DIR`;
299
325
  without a writable cache, each eligible invocation checks again. Concurrent
300
326
  invocations can also perform duplicate checks. The registry request has a
301
327
  one-second deadline; the short-lived request process is terminated on expiry.