@tanagram/lore 0.1.47 → 0.1.48

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 +8 -5
  2. package/dist/index.js +85 -85
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@ The command-line interface for Lore.
9
9
  CLI Auth's device-code flow. On macOS, also auto-runs `lore enable` to
10
10
  install and start the background uploader; if that step fails, login still
11
11
  succeeds and you can rerun `lore enable` manually.
12
- - `lore logout` — removes the stored CLI token.
12
+ - `lore logout` — removes the stored CLI tokens.
13
13
  - `lore health` — calls the API health endpoint.
14
14
  - `lore logs` — prints recent entries from the log file.
15
15
  - `lore version` — prints the CLI version.
@@ -60,10 +60,13 @@ dirs so they don't stomp each other:
60
60
 
61
61
  `lore login` asks the Lore API for public WorkOS CLI Auth configuration, starts
62
62
  WorkOS's device-code flow, prints the verification URL and user code, and polls
63
- WorkOS until it receives a JWT access token. It stores that token in the active
64
- state dir as `token` (for example, `~/.lore-dev/token` in local dev). The CLI
65
- does not read token environment variables; use `lore logout` to remove the
66
- stored token.
63
+ WorkOS until it receives JWT access and refresh tokens. It stores those tokens
64
+ in the active state dir as `token` and `refresh_token` (for example,
65
+ `~/.lore-dev/token` and `~/.lore-dev/refresh_token` in local dev). When the
66
+ access token is expired or will expire within 10 seconds, authenticated
67
+ commands use the refresh token to rotate a new access token automatically. The
68
+ CLI does not read token environment variables; use `lore logout` to remove the
69
+ stored tokens.
67
70
 
68
71
  Run `lore logs` to print the active log file path. In dev, log lines also
69
72
  tee to stderr so you see them while iterating; in prod the file is the only