@gluecharm-lab/easyspecs-cli 0.0.11 → 0.0.12
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 +14 -0
- package/commands.md +2 -0
- package/dist/main.cjs +674 -350
- package/dist/main.cjs.map +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,6 +61,20 @@ easyspecs-cli diagnose coordination-duplicates --cwd /your/repo --ci --json
|
|
|
61
61
|
|
|
62
62
|
Run **`easyspecs-cli help`** for the full command tree. This README does not duplicate every flag; the built-in help matches the installed package version.
|
|
63
63
|
|
|
64
|
+
## Terminal diagnostics (colors)
|
|
65
|
+
|
|
66
|
+
Long-running commands (**`run synthesis`**, **`analysis`**, **`diagnose`** with **`--verbose`**, etc.) print **structured lines** on stderr with bracket prefixes such as **`[pool]`**, **`[queue]`**, **`[setup]`**, **`[AgentCode]`**, **`[context]`**, **`[index]`** — same vocabulary as the EasySpecs Analysis output in VS Code. Logs say **AgentCode** for the agent subprocess; the executable on your machine may still be **`opencode`** on **`PATH`**.
|
|
67
|
+
|
|
68
|
+
When **stderr** is an interactive **TTY**, those prefixes are **colorized** (ANSI) for faster scanning.
|
|
69
|
+
|
|
70
|
+
| Mechanism | Effect |
|
|
71
|
+
| --------- | ------ |
|
|
72
|
+
| **`NO_COLOR`** set to any non-empty value | Colors **disabled** ([no-color.org](https://no-color.org/)). |
|
|
73
|
+
| **`FORCE_COLOR`** set to any non-empty value | Colors **allowed** even if stderr is **not** a TTY (e.g. piping to **`tee`**). |
|
|
74
|
+
| **`--json`** | Normal runs **suppress** stderr diagnostics; stderr never receives ANSI in that mode so JSON on stdout stays machine-safe. With **`--json --verbose`**, stderr lines are **plain text** (no ANSI). |
|
|
75
|
+
|
|
76
|
+
**Behaviour:** bracket tags are colorized; **`[pool]`** lines bold the work-item id and dim **`(active n/m)`**; **`[AgentCode]`** lines dim **`prompt` / `command` / `cwd` / `argv`** labels; multi-line **`stderr`/`stdout`** dumps are indented and dimmed; **blank lines** appear when the phase family changes (e.g. **`[setup]`** → **`[pool]`**, **`[pool]`** → **`[AgentCode]`**). Purely visual — message text is unchanged for grep.
|
|
77
|
+
|
|
64
78
|
## Configuration
|
|
65
79
|
|
|
66
80
|
Primary configuration file: **`<repo>/.easyspecs/config.json`** (auto-created when needed, except for **`help`**, **`version`**, and **`doctor`** which do not create the file on first run). **`auth login --email … --password …`** stores tokens for upload commands (optional **`--session-path`** on the command tail updates **`easyspecs.cliSessionPath`** in **`config.json`**).
|
package/commands.md
CHANGED
|
@@ -28,6 +28,8 @@ These flags may appear **before** the subcommand. Anything after the first non-f
|
|
|
28
28
|
| `--version`, `-V` | Print CLI package version (also `version` as first positional). Does **not** create config. |
|
|
29
29
|
| `--config <path>` | Parsed but **unused** by `main.ts` today; configuration is read from `<repoRoot>/.easyspecs/config.json`. |
|
|
30
30
|
|
|
31
|
+
Environment (stderr styling): **`NO_COLOR`** (any non-empty value) disables ANSI colors. **`FORCE_COLOR`** (any non-empty value) allows colors even when stderr is not a TTY. With **`--json`**, human stderr is normally suppressed; **`--json --verbose`** prints plain stderr **without** ANSI. In human mode, a **blank line** may be printed when the diagnostic **phase** changes (e.g. **`[setup]`** → **`[pool]`** / **`[AgentCode]`**). See **README** (Terminal diagnostics).
|
|
32
|
+
|
|
31
33
|
---
|
|
32
34
|
|
|
33
35
|
## Shared configuration (SRS-43)
|