statelyai 0.12.2 → 0.12.3

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 CHANGED
@@ -139,7 +139,7 @@ printf '%s\n' "$STATELY_API_KEY" | statelyai login --stdin
139
139
  ```
140
140
 
141
141
  For automation, prefer an environment variable instead of storing a
142
- credential. Resolution order is:
142
+ credential. By default, resolution order is:
143
143
 
144
144
  1. `STATELY_ACCESS_TOKEN`
145
145
  2. `STATELY_API_KEY`
@@ -149,6 +149,10 @@ credential. Resolution order is:
149
149
  The CLI loads `.env.local` from the current directory before resolving these
150
150
  variables.
151
151
 
152
+ After browser sign-in while `open` is running, that editor session uses the
153
+ current stored credential instead of a rejected environment credential.
154
+ Sign-in prints an authorization URL only if automatic browser opening fails.
155
+
152
156
  Use `statelyai status --auth` to report the selected source without printing
153
157
  the credential. `statelyai logout` removes stored credentials but does not modify
154
158
  environment variables.
@@ -295,6 +299,17 @@ statelyai open
295
299
  The workspace sidebar starts collapsed. Select a machine there without opening
296
300
  a separate browser tab.
297
301
 
302
+ <!-- open authentication recovery from src/cli.ts and src/cliHost.ts -->
303
+
304
+ In an interactive terminal, `open` checks editor access and opens browser sign-in
305
+ when needed, then loads the machine automatically. If sign-in fails after the
306
+ editor opens, click **Log in to Stately** to sign in and retry in the same tab.
307
+ You can also run `npx statelyai login` in another terminal and click
308
+ **Reload editor**; the bridge reads the new stored credential without restarting.
309
+ `--no-open` starts the bridge without opening a browser or starting automatic
310
+ sign-in. Temporary access failures appear in the editor and can be retried by
311
+ reloading.
312
+
298
313
  <!-- local open and source budget from src/cliHost.ts and ../editor-sync/src/localBackend.ts -->
299
314
 
300
315
  Saved file changes refresh the editor. Saving visual edits writes them back to
@@ -474,8 +489,9 @@ adapter; no verification engine is bundled.
474
489
 
475
490
  <!-- self-host auth and URL behavior from LoginCommand, baseUrlFlags, OpenCommand, credential resolution, and projectConfig.ts -->
476
491
 
477
- Skip login when the server has authentication disabled. The CLI sends no
478
- authorization header when no credential exists; the server decides whether
492
+ Skip login when the server has authentication disabled; `open` does not start
493
+ browser sign-in. The CLI sends no authorization header when no credential
494
+ exists; the server decides whether
479
495
  authentication is required. `open` checks Editor Sync access once per session,
480
496
  then parses and applies source edits locally. CI commands use the same credential
481
497
  policy.
package/dist/bin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as run } from "./cli-DkgwcbvD.mjs";
2
+ import { C as run } from "./cli-RFjHJYb3.mjs";
3
3
 
4
4
  //#region src/bin.ts
5
5
  run();