sim 2.1.13 → 2.1.14-preview.117.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.
- package/README.md +48 -4
- package/dist/index.js +1054 -402
- package/package.json +5 -2
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,13 @@ 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
|
|
319
|
+
| `SIM_NO_UPDATE_CHECK` | Turn off update notices |
|
|
320
|
+
| `SIM_TELEMETRY_DISABLED` | Turn off anonymous usage reporting (`DO_NOT_TRACK=1` also works) |
|
|
294
321
|
|
|
295
322
|
On eligible interactive invocations, `sim` uses a daily cache before asking
|
|
296
|
-
`registry.npmjs.org` what is published under the `latest` tag and prints
|
|
297
|
-
|
|
298
|
-
entirely. The cache lives in `~/.sim` by default and follows `SIM_CONFIG_DIR`;
|
|
323
|
+
`registry.npmjs.org` what is published under the `latest` tag and prints an
|
|
324
|
+
optional notice on stderr when a newer version exists. Prerelease installs are
|
|
325
|
+
skipped entirely. The cache lives in `~/.sim` by default and follows `SIM_CONFIG_DIR`;
|
|
299
326
|
without a writable cache, each eligible invocation checks again. Concurrent
|
|
300
327
|
invocations can also perform duplicate checks. The registry request has a
|
|
301
328
|
one-second deadline; the short-lived request process is terminated on expiry.
|
|
@@ -308,6 +335,22 @@ use the public default; non-empty malformed or non-HTTP(S) values fail closed.
|
|
|
308
335
|
The full list of cases where it stays quiet is in the
|
|
309
336
|
[configuration guide](https://docs.sim.ai/cli/configuration).
|
|
310
337
|
|
|
338
|
+
## Usage data
|
|
339
|
+
|
|
340
|
+
The CLI reports anonymous usage data — which commands run, whether they
|
|
341
|
+
succeed, and how long they take — so the team can see how it is used. Nothing
|
|
342
|
+
you type is sent: no argument or flag values, paths, ids, error messages, or
|
|
343
|
+
credentials. The first interactive run prints a notice and is not reported.
|
|
344
|
+
|
|
345
|
+
```bash
|
|
346
|
+
sim telemetry status
|
|
347
|
+
sim telemetry disable
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
`DO_NOT_TRACK=1` or `SIM_TELEMETRY_DISABLED=1` in the environment also turns it
|
|
351
|
+
off. The full description of what is sent is in the
|
|
352
|
+
[usage data guide](https://docs.sim.ai/cli/usage-data).
|
|
353
|
+
|
|
311
354
|
## Documentation
|
|
312
355
|
|
|
313
356
|
- [CLI documentation](https://docs.sim.ai/cli)
|
|
@@ -316,6 +359,7 @@ The full list of cases where it stays quiet is in the
|
|
|
316
359
|
- [Profiles and configuration](https://docs.sim.ai/cli/configuration)
|
|
317
360
|
- [Scripting](https://docs.sim.ai/cli/scripting)
|
|
318
361
|
- [Troubleshooting](https://docs.sim.ai/cli/troubleshooting)
|
|
362
|
+
- [Usage data](https://docs.sim.ai/cli/usage-data)
|
|
319
363
|
|
|
320
364
|
## License
|
|
321
365
|
|