@tanagram/lore 0.1.22 → 0.1.24
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 +30 -2
- package/dist/index.js +82 -88
- package/package.json +1 -1
- package/skills/share-codex/SKILL.md +86 -0
package/README.md
CHANGED
|
@@ -5,8 +5,8 @@ The command-line interface for Lore.
|
|
|
5
5
|
## Subcommands
|
|
6
6
|
|
|
7
7
|
- `lore` — prints help text.
|
|
8
|
-
- `lore login` — authorizes the CLI against your Lore workspace using
|
|
9
|
-
|
|
8
|
+
- `lore login` — authorizes the CLI against your Lore workspace using WorkOS
|
|
9
|
+
CLI Auth's device-code flow.
|
|
10
10
|
- `lore logout` — removes the stored CLI token.
|
|
11
11
|
- `lore health` — calls the API health endpoint.
|
|
12
12
|
- `lore logs` — prints recent entries from the log file.
|
|
@@ -29,3 +29,31 @@ The command-line interface for Lore.
|
|
|
29
29
|
from the directory holding `LORE_REMIX.md` reads the marker and stamps the
|
|
30
30
|
new thread's `remix_of_thread_id`, bumping the parent's `remix_count`.
|
|
31
31
|
Delete `LORE_REMIX.md` to opt out before exporting.
|
|
32
|
+
|
|
33
|
+
## Dev vs prod
|
|
34
|
+
|
|
35
|
+
The CLI is environment-stamped at build time (esbuild `--define`), not via
|
|
36
|
+
runtime env vars. The published `@tanagram/lore` on npm is pinned to prod;
|
|
37
|
+
anything built locally (`pnpm build`, `tsx`, `pnpm dev`) is pinned to dev.
|
|
38
|
+
|
|
39
|
+
Because both can be installed on the same machine, they keep separate state
|
|
40
|
+
dirs so they don't stomp each other:
|
|
41
|
+
|
|
42
|
+
| Env | State dir | Log file |
|
|
43
|
+
| ---- | --------------- | --------------------- |
|
|
44
|
+
| prod | `~/.lore/` | `~/.lore/log.txt` |
|
|
45
|
+
| dev | `~/.lore-dev/` | `~/.lore-dev/log.txt` |
|
|
46
|
+
|
|
47
|
+
`lore login` asks the Lore API for public WorkOS CLI Auth configuration, starts
|
|
48
|
+
WorkOS's device-code flow, prints the verification URL and user code, and polls
|
|
49
|
+
WorkOS until it receives a JWT access token. It stores that token in the active
|
|
50
|
+
state dir as `token` (for example, `~/.lore-dev/token` in local dev). The CLI
|
|
51
|
+
does not read token environment variables; use `lore logout` to remove the
|
|
52
|
+
stored token.
|
|
53
|
+
|
|
54
|
+
Run `lore logs` to print the active log file path. In dev, log lines also
|
|
55
|
+
tee to stderr so you see them while iterating; in prod the file is the only
|
|
56
|
+
sink so installed users don't see noise on every command.
|
|
57
|
+
|
|
58
|
+
`pnpm dev` runs the CLI postinstall hook before starting so bundled dev skills
|
|
59
|
+
are refreshed in `~/.claude/skills` on each dev session.
|