@corenel/cli 0.3.0 → 0.3.2

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 +28 -2
  2. package/dist/cli.js +913 -147
  3. package/package.json +15 -15
package/README.md CHANGED
@@ -7,7 +7,33 @@ transport). Early/beta: the headless proof the kernel runs outside the browser.
7
7
  npx @corenel/cli
8
8
  ```
9
9
 
10
- Requires Node 18+. Bring your provider key via the environment. More verbs
11
- (`run` / `ask` / `chat` / `login`, and `start --sidecar`) are in progress.
10
+ Requires Node 18+. Bring your provider key via the environment.
11
+
12
+ Running `corenel` with no command opens an interactive agent in the current
13
+ directory. On a terminal it opens the full terminal face; when output is piped,
14
+ under `TERM=dumb`, in CI, or with `--no-tui`, it falls back to a plain
15
+ line-by-line loop. `--tui` demands the full face and fails rather than falling
16
+ back. `--resume` reopens the last conversation.
17
+
18
+ Assistant replies render as markdown. More verbs (`run` / `ask` / `chat` /
19
+ `login`, and `start --sidecar`) are in progress.
20
+
21
+ ## Releasing
22
+
23
+ `@corenel/term` (the terminal face) is a real runtime dependency, not bundled
24
+ into `dist/cli.js` -- see the note at the top of `build.mjs`. It therefore has
25
+ to be published FIRST; publishing `@corenel/cli` against an unpublished
26
+ `@corenel/term` yields a package that cannot install at all, so `npx
27
+ @corenel/cli` fails before any verb runs.
28
+
29
+ pnpm --filter @corenel/term build && pnpm --filter @corenel/term publish
30
+ pnpm --filter @corenel/cli build && pnpm --filter @corenel/cli publish
31
+
32
+ Publish with **pnpm, never npm**: this CLI depends on `@corenel/term` as
33
+ `workspace:*`, and pnpm rewrites the `workspace:` protocol to a real version at
34
+ pack/publish time while npm ships it verbatim -- an `npm publish` from this
35
+ workspace produces a manifest whose install fails with
36
+ `EUNSUPPORTEDPROTOCOL / Unsupported URL Type "workspace:"`, which is the very
37
+ breakage this section exists to prevent.
12
38
 
13
39
  Licensed under Elastic-2.0.