sim 2.1.0 → 2.1.1-preview.39.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 +16 -7
  2. package/dist/index.js +2536 -265
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -12,9 +12,9 @@ Full documentation: **https://docs.sim.ai/cli**
12
12
 
13
13
  ## Profiles
14
14
 
15
- Profiles work like the AWS CLI: one identity and one set of defaults per named
16
- profile, selected with `-P`, `--profile`, or `SIM_PROFILE`. This is what lets you keep
17
- production and a local dev stack side by side without re-authenticating.
15
+ Profiles work like the AWS CLI and are selected with `-P`, `--profile`, or
16
+ `SIM_PROFILE`. A profile normally owns one identity and one set of defaults; a
17
+ workspace profile can instead share a stored identity through `auth_profile`.
18
18
 
19
19
  Non-secret settings live in `~/.sim/config`:
20
20
 
@@ -27,6 +27,10 @@ output = table
27
27
  [profile dev]
28
28
  endpoint = http://localhost:3000
29
29
  workspace = ws_local
30
+
31
+ [profile acme]
32
+ auth_profile = default
33
+ workspace = ws_acme
30
34
  ```
31
35
 
32
36
  Keys live in `~/.sim/credentials`, written `0600`:
@@ -45,7 +49,8 @@ The section-naming asymmetry — `[profile dev]` in config, `[dev]` in credentia
45
49
  ```bash
46
50
  sim configure --set-endpoint http://localhost:3000 --profile dev
47
51
  sim configure --set-workspace ws_local --profile dev
48
- sim profiles # list them; * marks the active one
52
+ sim profiles # list them; * marks the active one
53
+ sim profile add acme --workspace ws_acme # share the active stored login
49
54
  sim whoami # resolved values, where each came from, and whether they work
50
55
  ```
51
56
 
@@ -62,7 +67,7 @@ Each setting resolves independently, first match wins:
62
67
  indefinitely) and `SIM_DEBUG=1` traces requests to stderr. Node ignores
63
68
  `HTTPS_PROXY` unless `NODE_USE_ENV_PROXY=1` is also set, on Node 22.21+ or
64
69
  24.5+; the CLI warns when a proxy is configured but will not be used.
65
- | 3 | `~/.sim/config` / `~/.sim/credentials` for the selected profile |
70
+ | 3 | `~/.sim/config` for the selected profile and credentials for its `auth_profile`, when set |
66
71
  | 4 | Built-in default (`https://www.sim.ai`, `table`) |
67
72
 
68
73
  Formats are listed under [Output formats](#output-formats).
@@ -112,8 +117,11 @@ the key can access.
112
117
  `sim login --workspace <id>` preselects a workspace in the picker, and an
113
118
  existing profile's workspace preselects itself on re-login.
114
119
 
115
- `sim logout` removes the stored key. It does not revoke it — do that in
116
- Settings API keys.
120
+ `sim logout` removes the stored key. A shared workspace profile cannot remove
121
+ its authentication profile's key; use `sim logout --all --profile <name>` to
122
+ remove only the workspace profile. An authentication profile cannot be removed
123
+ entirely while workspace profiles reference it. Logging out does not revoke a
124
+ key — do that in Settings → API keys.
117
125
 
118
126
  ## Commands
119
127
 
@@ -147,6 +155,7 @@ sim logs get <runId>
147
155
  sim audit-logs list --organization <organizationId> [--all-workspaces]
148
156
  sim audit-logs get <id> --organization <organizationId>
149
157
 
158
+ sim workspaces list
150
159
  sim workspaces get
151
160
  sim workspaces members
152
161