sim 2.1.8-dev.101.1 → 2.1.8-dev.95.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 +1 -18
- package/dist/config/paths.d.ts +0 -11
- package/dist/contract/types.d.ts +0 -12
- package/dist/generated/v2-api.d.ts +13 -542
- package/dist/index.js +23 -678
- package/dist/runtime/request.d.ts +6 -4
- package/dist/runtime.d.ts +0 -1
- package/dist/runtime.js +8713 -9535
- package/package.json +1 -1
- package/dist/embed.d.ts +0 -39
- package/dist/update/check.d.ts +0 -53
package/README.md
CHANGED
|
@@ -256,26 +256,9 @@ The main environment variables are:
|
|
|
256
256
|
| `SIM_API_KEY` | API key, usually for CI |
|
|
257
257
|
| `SIM_WORKSPACE` | Workspace to target |
|
|
258
258
|
| `SIM_OUTPUT` | `table`, `json`, `yaml`, or `text` |
|
|
259
|
-
| `SIM_CONFIG_DIR` |
|
|
259
|
+
| `SIM_CONFIG_DIR` | Directory containing CLI config and credentials |
|
|
260
260
|
| `SIM_TIMEOUT_SECONDS` | Per-request timeout; `0` waits indefinitely |
|
|
261
261
|
| `SIM_DEBUG` | Print request diagnostics to stderr |
|
|
262
|
-
| `SIM_NO_UPDATE_CHECK` | Turn off the update notice |
|
|
263
|
-
|
|
264
|
-
On eligible interactive invocations, `sim` uses a daily cache before asking
|
|
265
|
-
`registry.npmjs.org` what is published under the `latest` tag and prints one
|
|
266
|
-
line on stderr when a newer version exists. Prerelease installs are skipped
|
|
267
|
-
entirely. The cache lives in `~/.sim` by default and follows `SIM_CONFIG_DIR`;
|
|
268
|
-
without a writable cache, each eligible invocation checks again. Concurrent
|
|
269
|
-
invocations can also perform duplicate checks. The registry request has a
|
|
270
|
-
one-second deadline; the short-lived request process is terminated on expiry.
|
|
271
|
-
Apart from the configured registry URL, it sends only its own version and never
|
|
272
|
-
your Sim API key. If `npm_config_registry` points at a private mirror, its query
|
|
273
|
-
string is preserved, including any query-string credentials. Registry URLs
|
|
274
|
-
containing username/password userinfo are rejected. Set
|
|
275
|
-
`SIM_NO_UPDATE_CHECK=1` to turn it off. Empty or whitespace-only registry values
|
|
276
|
-
use the public default; non-empty malformed or non-HTTP(S) values fail closed.
|
|
277
|
-
The full list of cases where it stays quiet is in the
|
|
278
|
-
[configuration guide](https://docs.sim.ai/cli/configuration).
|
|
279
262
|
|
|
280
263
|
## Documentation
|
|
281
264
|
|
package/dist/config/paths.d.ts
CHANGED
|
@@ -8,14 +8,3 @@ export declare function configDir(): string;
|
|
|
8
8
|
export declare function configPath(): string;
|
|
9
9
|
/** API keys, written 0600. Kept apart from `config` so the two can be handled differently. */
|
|
10
10
|
export declare function credentialsPath(): string;
|
|
11
|
-
/**
|
|
12
|
-
* Where the once-a-day update check remembers that it ran.
|
|
13
|
-
*
|
|
14
|
-
* Cache, not configuration, so it is safe to delete at any time and gets no
|
|
15
|
-
* `SIM_*` override of its own: nobody relocates a cache deliberately, and
|
|
16
|
-
* `SIM_CONFIG_DIR` already moves it for the two callers that matter — the test
|
|
17
|
-
* harness and anyone keeping `~/.sim` somewhere else. It is kept out of the
|
|
18
|
-
* config file because that file is INI the user edits, and a timestamp inside a
|
|
19
|
-
* `[profile x]` section would surface in `sim configure` and `sim whoami`.
|
|
20
|
-
*/
|
|
21
|
-
export declare function updateCachePath(): string;
|
package/dist/contract/types.d.ts
CHANGED
|
@@ -55,18 +55,6 @@ export interface FlagSpec {
|
|
|
55
55
|
* invisible to any type-driven generator.
|
|
56
56
|
*/
|
|
57
57
|
list?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* The list's natural source is a manifest file, so `@path` / `@-` skip blank
|
|
60
|
-
* lines and `#` comments instead of refusing them.
|
|
61
|
-
*
|
|
62
|
-
* The shared reader treats a blank line as a typo, which is right for an id
|
|
63
|
-
* list. A dependency list is pasted from a requirements file or a lockfile,
|
|
64
|
-
* where blank lines and comments are how people structure it, and the API
|
|
65
|
-
* already ignores both — the terminal was the only surface that refused
|
|
66
|
-
* them. Inline argv values are untouched: an empty argument is still an
|
|
67
|
-
* error, and a literal `#` value can still be passed.
|
|
68
|
-
*/
|
|
69
|
-
manifest?: true;
|
|
70
58
|
/** Take a JSON string. Implied for object/array/unknown fields. */
|
|
71
59
|
json?: boolean;
|
|
72
60
|
/**
|