@eddie-doc/cli 1.4.4 → 1.4.6
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 +137 -4
- package/dist/cli.js +248 -70
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,8 @@ Open (24)
|
|
|
36
36
|
- [Concepts](#concepts)
|
|
37
37
|
- [Choosing a document, mapping and annotation](#choosing-a-document-mapping-and-annotation)
|
|
38
38
|
- [Command reference](#command-reference)
|
|
39
|
+
- [Interactive mode: `eddie tui`](#interactive-mode-eddie-tui)
|
|
40
|
+
- [Skills for AI coding agents: `eddie skills`](#skills-for-ai-coding-agents-eddie-skills)
|
|
39
41
|
- [Configuration](#configuration)
|
|
40
42
|
- [Scripting: JSON output and exit codes](#scripting-json-output-and-exit-codes)
|
|
41
43
|
- [Recipes](#recipes)
|
|
@@ -279,11 +281,13 @@ skips the question. *VS Code: Merge Mappings into This One.*
|
|
|
279
281
|
#### `rounds` (alias `mappings`) — list rounds and mappings
|
|
280
282
|
|
|
281
283
|
```text
|
|
282
|
-
eddie rounds
|
|
284
|
+
eddie rounds [source.adoc] [--json]
|
|
283
285
|
```
|
|
284
286
|
|
|
285
|
-
Each round with its mappings, the counts per bucket, and each sidecar path.
|
|
286
|
-
|
|
287
|
+
Each round with its mappings, the counts per bucket, and each sidecar path.
|
|
288
|
+
Without a source, every mapping in the workspace, grouped by document. To browse
|
|
289
|
+
them interactively, use [`eddie tui`](#interactive-mode-eddie-tui). *VS Code:
|
|
290
|
+
Switch Round / Mapping.*
|
|
287
291
|
|
|
288
292
|
#### `describe` (alias `edit-round`) — label a mapping and its round
|
|
289
293
|
|
|
@@ -530,6 +534,8 @@ is accepted as a short form.
|
|
|
530
534
|
|
|
531
535
|
| Command | Does |
|
|
532
536
|
| --- | --- |
|
|
537
|
+
| `eddie tui [source.adoc]` (aliases `browse`, `ui`) | Full-screen browser; see [Interactive mode](#interactive-mode-eddie-tui). |
|
|
538
|
+
| `eddie skills [install, list, remove, show]` | Install the agent skills for Claude Code, Codex, Cursor, Gemini CLI, Copilot; see [Skills](#skills-for-ai-coding-agents-eddie-skills). |
|
|
533
539
|
| `eddie status` (alias `reviews`) | Every reviewed document in the workspace, with open counts, rounds and the newest mapping. *VS Code: Switch Review.* |
|
|
534
540
|
| `eddie folder [source.adoc] [--open]` | The review folder, or one document's folder in it. *VS Code: Open Review Folder.* |
|
|
535
541
|
| `eddie migrate [--dry-run] [--yes]` | Moves old-layout sidecars (beside each `.adoc`) into the review folder, rewriting their relative paths. *VS Code: Move Reviews into Review Folder.* |
|
|
@@ -553,6 +559,132 @@ is accepted as a short form.
|
|
|
553
559
|
| `-q, --quiet` | Fewer notices on stderr. |
|
|
554
560
|
| `-h, --help` | Help. |
|
|
555
561
|
|
|
562
|
+
## Interactive mode: `eddie tui`
|
|
563
|
+
|
|
564
|
+
```bash
|
|
565
|
+
eddie tui # every reviewed document in the workspace
|
|
566
|
+
eddie tui src/ch04.adoc # straight to one document
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
A full-screen browser for the terminal, the counterpart of the editor's
|
|
570
|
+
sidebar. It goes **documents → mappings (rounds) → annotations**. A level with
|
|
571
|
+
only one choice is skipped. The annotation list is grouped Open / Needs review /
|
|
572
|
+
Unmatched / Done. Below it, the selected remark is shown with the editor's
|
|
573
|
+
comment, the marked words, the source lines it points at, and the reply thread.
|
|
574
|
+
|
|
575
|
+
```text
|
|
576
|
+
eddie · book/chapter-01.adoc › Revision 1 · Acme
|
|
577
|
+
#3 A OPEN Comment L22 Add a small diagram illustrating this edge.
|
|
578
|
+
#4 A OPEN Highlight L30 Reword: 'trust or lineage'.
|
|
579
|
+
› #1 A DONE Highlight L7 Strong framing — keep this. ↳1
|
|
580
|
+
#2 A DONE Delete L12 Delete: too advanced for an intro.
|
|
581
|
+
──────────────────────────────────────────────────────────────────────────────
|
|
582
|
+
#1 A Highlight Resolved page 2 · line 7, marker 1.00
|
|
583
|
+
Editor: Strong framing — keep this.
|
|
584
|
+
marked: relationships at the center of the model
|
|
585
|
+
▌ 7 │ A knowledge graph is a structured representation of information where…
|
|
586
|
+
▌ 8 │ are connected by well-defined relationships. Unlike a relational data…
|
|
587
|
+
↳ VP · 2026-10-13
|
|
588
|
+
Fixed in the next draft
|
|
589
|
+
r resolve c confirm a reply l link t triage f fix o pdf b group / search
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
| Key | Where | Does |
|
|
593
|
+
| --- | --- | --- |
|
|
594
|
+
| `↑` `↓` / `j` `k`, `PgUp` `PgDn`, `g` `G` | everywhere | Move. |
|
|
595
|
+
| `Enter` / `→` | everywhere | Open. On an annotation: its replies, or triage if it is unmatched. |
|
|
596
|
+
| `Esc` / `←` / `Backspace` | everywhere | Back. |
|
|
597
|
+
| `q`, `Ctrl-C` | everywhere | Quit. |
|
|
598
|
+
| `?` | everywhere | All keys. |
|
|
599
|
+
| `S` | everywhere | Install agent skills: tick the AI tools you use, then project or user. |
|
|
600
|
+
| `R` | mappings | Re-map every round of the document. |
|
|
601
|
+
| `p` | mappings | Export the mapping's report. |
|
|
602
|
+
| `r` | annotations | Resolve / reopen. |
|
|
603
|
+
| `c` | annotations | Confirm the match. |
|
|
604
|
+
| `a` | annotations | Add a reply (typed in the footer; `Esc` cancels). |
|
|
605
|
+
| `e` | annotations | Edit or delete a reply. |
|
|
606
|
+
| `l` | annotations | Link to a line number. |
|
|
607
|
+
| `t` | annotations | Ranked candidate lines; pick one to link. |
|
|
608
|
+
| `m` | annotations | Re-match automatically. |
|
|
609
|
+
| `f` | annotations | The mark's quick fixes; shows the diff and asks before writing. |
|
|
610
|
+
| `A` | annotations | Apply every confident edit, after showing the plan. |
|
|
611
|
+
| `o` | annotations | Open the PDF. |
|
|
612
|
+
| `b` / `/` / `h` | annotations | Filter by group (cycles) / search text / hide resolved. |
|
|
613
|
+
|
|
614
|
+
Every action saves immediately, to the same files the other commands use, so an
|
|
615
|
+
open VS Code window updates. Set `NO_COLOR=1` for monochrome. `tui` needs an
|
|
616
|
+
interactive terminal; in scripts use `list`, `show` and `rounds`.
|
|
617
|
+
|
|
618
|
+
## Skills for AI coding agents: `eddie skills`
|
|
619
|
+
|
|
620
|
+
Eddie ships three [Agent Skills](https://agentskills.io) that teach an AI coding
|
|
621
|
+
tool to use it properly:
|
|
622
|
+
|
|
623
|
+
| Skill | Teaches |
|
|
624
|
+
| --- | --- |
|
|
625
|
+
| `eddie-review` | Working through an editor's remarks: list, read in context, edit, reply, resolve, apply, triage. Includes a command reference. |
|
|
626
|
+
| `eddie-anchors` | Keeping `// eddie:` anchor lines intact while rewriting `.adoc` files, so marks stay on the right paragraphs. |
|
|
627
|
+
| `eddie-pipeline` | Mapping a newly returned PDF, rounds, reports, stamping, and CI automation. |
|
|
628
|
+
|
|
629
|
+
```console
|
|
630
|
+
$ eddie skills
|
|
631
|
+
Which AI coding tools do you use? Eddie's skills will be installed where each one looks.
|
|
632
|
+
1) Claude Code (found here)
|
|
633
|
+
2) OpenAI Codex
|
|
634
|
+
3) Cursor
|
|
635
|
+
4) Gemini CLI
|
|
636
|
+
5) GitHub Copilot
|
|
637
|
+
6) Other (any tool that reads .agents/skills: OpenCode, Amp, Kiro…)
|
|
638
|
+
Numbers separated by commas, or "a" for all [1]: 1,3
|
|
639
|
+
Install for:
|
|
640
|
+
p) this project — /work/book (commit them so collaborators get them)
|
|
641
|
+
u) your user account — /Users/me (every project on this machine)
|
|
642
|
+
p or u [p]: p
|
|
643
|
+
.claude/skills
|
|
644
|
+
installed eddie-review
|
|
645
|
+
installed eddie-anchors
|
|
646
|
+
installed eddie-pipeline
|
|
647
|
+
```
|
|
648
|
+
|
|
649
|
+
Tools already in use are found from their files (`CLAUDE.md`, `.cursor/`,
|
|
650
|
+
`.gemini/`, …) and offered as the default. Each tool reads skills from its own
|
|
651
|
+
folders, and Eddie writes the fewest copies that reach all the tools you picked:
|
|
652
|
+
|
|
653
|
+
| Tool | Project folder | User folder |
|
|
654
|
+
| --- | --- | --- |
|
|
655
|
+
| Claude Code | `.claude/skills` | `~/.claude/skills` |
|
|
656
|
+
| OpenAI Codex | `.agents/skills` | `~/.agents/skills` |
|
|
657
|
+
| Cursor | `.agents/skills` (also reads `.cursor/`, `.claude/`, `.codex/skills`) | same under `~` |
|
|
658
|
+
| Gemini CLI | `.agents/skills` (or `.gemini/skills`) | same under `~` |
|
|
659
|
+
| GitHub Copilot | `.agents/skills` (also `.github/`, `.claude/skills`) | `~/.agents/skills` (or `~/.copilot/skills`) |
|
|
660
|
+
| Other tools | `.agents/skills` | `~/.agents/skills` |
|
|
661
|
+
|
|
662
|
+
So Claude Code with Cursor is one copy in `.claude/skills`, while Claude Code with
|
|
663
|
+
Codex needs `.claude/skills` and `.agents/skills`. A tool that reads both folders
|
|
664
|
+
then sees each skill twice, which is harmless.
|
|
665
|
+
|
|
666
|
+
```bash
|
|
667
|
+
eddie skills install --tool claude,codex # in a script: no questions
|
|
668
|
+
eddie skills install --all --scope user # every tool, for your account
|
|
669
|
+
eddie skills list # what is installed where, which version
|
|
670
|
+
eddie skills install # again after upgrading eddie: updates them
|
|
671
|
+
eddie skills remove --yes # take them out
|
|
672
|
+
eddie skills show eddie-review # read one
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
Each installed `SKILL.md` records `generator: eddie-doc` and the version that
|
|
676
|
+
wrote it. Eddie updates and removes only its own skills. A skill of the same name
|
|
677
|
+
that you wrote is never replaced (unless `--force`) and never removed. Without
|
|
678
|
+
`--tool` and without a terminal, Eddie installs for the tools it detects, and
|
|
679
|
+
fails with a usage error if there are none.
|
|
680
|
+
|
|
681
|
+
How Claude Code and other agents then use Eddie, with example prompts:
|
|
682
|
+
<https://volland.github.io/eddie-doc/agents.html>.
|
|
683
|
+
|
|
684
|
+
The same installer is in the editors: **Eddie Doc: Install Agent Skills for AI
|
|
685
|
+
Tools…** in VS Code, **Install agent skills for AI tools…** in Obsidian (into the
|
|
686
|
+
vault), and the `S` key in `eddie tui`.
|
|
687
|
+
|
|
556
688
|
## Configuration
|
|
557
689
|
|
|
558
690
|
The CLI reads the same settings as the editors, with the same names and
|
|
@@ -716,7 +848,8 @@ asciidoctor-pdf -o build/ch04.pdf ch04.adoc && eddie stamp build/ch04.pdf ch04.a
|
|
|
716
848
|
|
|
717
849
|
### With an AI coding agent
|
|
718
850
|
|
|
719
|
-
|
|
851
|
+
Install the skills first (`eddie skills`); the agent then knows the workflow
|
|
852
|
+
below, the anchor rules, and every command. Every command can run without prompts (`--yes`) and produce JSON (`--json`), so
|
|
720
853
|
an agent can work through a review: list the open remarks, read each with
|
|
721
854
|
`eddie show`, edit the prose, then `eddie reply` and `eddie resolve`. The
|
|
722
855
|
remarks it handles show up as answered in VS Code and Obsidian, and in the
|