@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.
- package/README.md +13 -9
- package/dist/index.js +190 -190
- 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`
|
|
244
|
-
WorkOS's device-code flow, prints the verification URL and user code, and
|
|
245
|
-
WorkOS until it receives JWT access and refresh tokens.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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
|