@tryarcanist/cli 0.1.507 → 0.1.508
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 +6 -28
- package/dist/index.js +80 -91
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ If a connection drops during sign-in, rerun the command. The same approval recov
|
|
|
35
35
|
|
|
36
36
|
Each repository needs its own environment for reviews. Appearing as a dependency in another repository’s workspace does not make it ready; onboarding prepares it separately.
|
|
37
37
|
|
|
38
|
-
For a setup question, pass its current ID to `arcanist environments answer owner/repo --question <id> --answer-stdin --json`.
|
|
38
|
+
For a setup question, pass its current ID to `arcanist environments answer owner/repo --question <id> --answer-stdin --json`. The command rejects stale questions. Arcanist never asks for credentials: setup fills missing keys itself. Ask the user only for decisions the agent cannot make; `wait_for_arcanist` requires Arcanist to intervene.
|
|
39
39
|
|
|
40
40
|
## Quick start
|
|
41
41
|
|
|
@@ -149,7 +149,7 @@ arcanist help sessions events --json
|
|
|
149
149
|
|
|
150
150
|
Each node is `{path, description, aliases, arguments, options, notes?, subcommands}`. The node you ask for also has `globalOptions`, the flags it inherits from its parent commands. `arguments` entries are `{name, description, required, variadic}`, `options` entries are `{flags, description, required, defaultValue?}`, and `notes` holds the examples and JSON output shape that `--help` prints below the options.
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
`auth login` without a token needs a person at a terminal: it fails at once with exit code `1` when stdin or stderr is not a terminal.
|
|
153
153
|
|
|
154
154
|
## Commands
|
|
155
155
|
|
|
@@ -162,7 +162,7 @@ arcanist environments prepare --wait --json
|
|
|
162
162
|
arcanist environments prepare owner/repo --wait --poll-interval 5000 --json
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
Agents should follow `repository.nextAction` and `repository.command`. Request an Arcanist review only when `nextAction` is `review`. Use the returned answer
|
|
165
|
+
Agents should follow `repository.nextAction` and `repository.command`. Request an Arcanist review only when `nextAction` is `review`. Use the returned answer command for `question`; obtain missing decisions from the user. When `command` is `null`, surface the required human or Arcanist action. `--wait` waits through internal handoffs until setup is ready or there is a real action for the user or Arcanist.
|
|
166
166
|
|
|
167
167
|
### `arcanist environments status`
|
|
168
168
|
|
|
@@ -173,7 +173,7 @@ arcanist environments status owner/repo --json
|
|
|
173
173
|
arcanist environments status owner/repo --wait --poll-interval 5000 --json
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
Agents should follow `repository.nextAction` and `repository.command`. Request an Arcanist review only when `nextAction` is `review`. Use the returned answer
|
|
176
|
+
Agents should follow `repository.nextAction` and `repository.command`. Request an Arcanist review only when `nextAction` is `review`. Use the returned answer command for `question`; obtain missing decisions from the user. When `command` is `null`, surface the required human or Arcanist action. `--wait` waits through internal handoffs until setup is ready or there is a real action for the user or Arcanist.
|
|
177
177
|
|
|
178
178
|
### `arcanist environments retry`
|
|
179
179
|
|
|
@@ -186,7 +186,7 @@ arcanist environments retry owner/repo --wait --poll-interval 5000 --json
|
|
|
186
186
|
|
|
187
187
|
### `arcanist environments export`
|
|
188
188
|
|
|
189
|
-
Write an environment's configuration as one JSON file: name, description, provisioning kind and app runtime config, helper files, cache settings (setup, maintenance and smoke scripts, dependencies, CPU and memory) and trusted domains. Secrets
|
|
189
|
+
Write an environment's configuration as one JSON file: name, description, provisioning kind and app runtime config, helper files, cache settings (setup, maintenance and smoke scripts, dependencies, CPU and memory) and trusted domains. Secrets and the review doc are not exported. Read-scoped tokens can export. Pass an environment id or `owner/repo` outside a checkout.
|
|
190
190
|
|
|
191
191
|
```bash
|
|
192
192
|
arcanist environments export owner/repo -o environment.json
|
|
@@ -197,7 +197,7 @@ arcanist environments export owner/repo > environment.json
|
|
|
197
197
|
|
|
198
198
|
Apply an exported file to the same repository's environment. A write-scoped token is required. The target's primary repository must match the file. `--dry-run` lists the fields that differ without changing anything. When a build input changes, the server schedules a rebuild.
|
|
199
199
|
|
|
200
|
-
`--create` creates the environment from the file when the deployment has no team environment for the file's primary repository, and the server schedules its first build. It applies only without an `[environment]` argument. The Arcanist GitHub App must be installed for the repository there. A created environment has no secrets
|
|
200
|
+
`--create` creates the environment from the file when the deployment has no team environment for the file's primary repository, and the server schedules its first build. It applies only without an `[environment]` argument. The Arcanist GitHub App must be installed for the repository there. A created environment has no secrets or review doc.
|
|
201
201
|
|
|
202
202
|
```bash
|
|
203
203
|
arcanist environments import environment.json --dry-run
|
|
@@ -205,28 +205,6 @@ arcanist environments import environment.json --json
|
|
|
205
205
|
arcanist environments import environment.json --create
|
|
206
206
|
```
|
|
207
207
|
|
|
208
|
-
### `arcanist environments login`
|
|
209
|
-
|
|
210
|
-
Log into your app once in a throwaway local browser and save that login on the environment so Arcanist sessions start signed in. Alias: `arcanist env login`. A write-scoped token is required. Pass an environment id or `owner/repo` outside a checkout; the environment must have an app runtime configured.
|
|
211
|
-
|
|
212
|
-
```bash
|
|
213
|
-
arcanist environments login owner/repo
|
|
214
|
-
arcanist environments login owner/repo --validate-path /dashboard --yes
|
|
215
|
-
arcanist environments login owner/repo --url http://localhost:3000/login --no-network-policy
|
|
216
|
-
arcanist environments login owner/repo --clear
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
The command opens a fresh Chrome window that shares nothing with your own browser profile. Log into your app and every provider it redirects through (Auth0, Google, and so on) using dedicated test accounts, keep the window open, then press Enter in the terminal. Closing the window or pressing Ctrl-C cancels without uploading anything.
|
|
220
|
-
|
|
221
|
-
What gets captured is the Playwright storage state for that window: cookies and localStorage. Cookies and storage on `localhost`, `127.0.0.1`, or `[::1]` are rewritten to `localhost` on the app runtime port, which is where the sandbox serves the app. The state is encrypted at rest and only ever handed to a live sandbox for the environment. Output is counts only (cookie domains, storage origins, byte size); cookie and storage values never reach the terminal.
|
|
222
|
-
|
|
223
|
-
- `--url <url>` opens this page first instead of the app runtime URL, for example a login page on another local port.
|
|
224
|
-
- `--validate-path <path>` saves a signed-in-only page (for example `/dashboard`) as the environment's `auth.validatePath`; every session opens it to verify the login still works. Without the flag the command prompts for one when the environment has none. Saving it changes the app runtime profile, so an environment rebuild is scheduled.
|
|
225
|
-
- `--yes` adds the provider hosts the login redirected through to the environment's trusted domains without asking, so the sandbox can follow the same redirect. `--no-network-policy` leaves the trusted domains alone; verification then reports the login as unavailable until those hosts are trusted.
|
|
226
|
-
- `--clear` removes the saved login and skips the browser entirely.
|
|
227
|
-
|
|
228
|
-
The capture needs an interactive terminal: stdin and stderr must be a TTY. Instructions and prompts go to stderr, so `--json --yes --validate-path /dashboard > result.json` works. JSON output is `{environmentId, version, counts: {cookieDomainCount, storageOriginCount}, providerHosts, networkPolicy: {added, rejected, skipped}, validatePath}`, or `{environmentId, deleted}` with `--clear`. `arcanist environments status --json` reports the saved login under `browserState`, including whether a re-login is needed.
|
|
229
|
-
|
|
230
208
|
### `arcanist auth login`
|
|
231
209
|
|
|
232
210
|
```bash
|