@tanagram/lore 0.1.106 → 0.1.107

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 +13 -9
  2. package/dist/index.js +190 -190
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -240,15 +240,19 @@ dirs so they don't stomp each other:
240
240
  | prod | `~/.lore/` | `~/.lore/log.txt` |
241
241
  | dev | `~/.lore-dev/` | `~/.lore-dev/log.txt` |
242
242
 
243
- `lore login` asks the Lore API for public WorkOS CLI Auth configuration, starts
244
- WorkOS's device-code flow, prints the verification URL and user code, and polls
245
- WorkOS until it receives JWT access and refresh tokens. It stores those tokens
246
- in the active state dir as `token` and `refresh_token` (for example,
247
- `~/.lore-dev/token` and `~/.lore-dev/refresh_token` in local dev). When the
248
- access token is expired or will expire within 10 seconds, authenticated
249
- commands use the refresh token to rotate a new access token automatically. The
250
- CLI does not read token environment variables; use `lore logout` to remove the
251
- stored tokens.
243
+ `lore login` discovers WorkOS AuthKit from the Lore MCP resource metadata,
244
+ starts WorkOS's device-code flow, prints the verification URL and user code, and
245
+ polls WorkOS until it receives JWT access and refresh tokens. Token persistence,
246
+ legacy migration, OAuth discovery caching, and refresh-token rotation live in
247
+ `@lore/identity-store`, shared with the Lore plugin. The CLI stores the
248
+ canonical token record as `tokens.json` in the active state dir (for example,
249
+ `~/.lore-dev/tokens.json` in local dev) and caches OAuth discovery beside it as
250
+ `discovery-cache.json`. When the access token is expired or will expire within
251
+ 10 seconds, authenticated commands use the refresh token to rotate a new access
252
+ token automatically. Transient refresh failures preserve the refresh token for a
253
+ later retry; only an AuthKit `invalid_grant` response clears local tokens and
254
+ requires login again. The CLI does not read token environment variables; use
255
+ `lore logout` to remove the stored tokens.
252
256
 
253
257
  Run `lore logs` to print the active log file path. In dev, log lines also
254
258
  tee to stderr so you see them while iterating; in prod the file is the only