@avodado/cli 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Avodado contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # @avodado/cli
2
+
3
+ `avo` — author, validate, render, and export Avodado documentation from the terminal. Ink TUI when interactive; plain log-friendly output in CI.
4
+
5
+ ## Install
6
+
7
+ ```
8
+ pnpm add -D @avodado/cli
9
+ ```
10
+
11
+ ## Commands
12
+
13
+ ```
14
+ avo init # scaffold docs/, config, skill, editor adapters
15
+ avo new # interactive picker → new doc from a block template
16
+ avo new --type callout --out docs/x.md
17
+ avo check # validate all docs (default: docs/**/*.md)
18
+ avo check 'docs/api/**' # custom glob
19
+ avo check --json # machine-readable diagnostics
20
+ avo render docs/orders.md -o out.html
21
+ avo export 'docs/**/*.md' --format html,pdf --out dist/
22
+ avo preview docs/orders.md # render to a temp file and open it
23
+ ```
24
+
25
+ ## Exit codes
26
+
27
+ | Code | Meaning |
28
+ | --- | --- |
29
+ | 0 | Clean (or non-error warnings only) |
30
+ | 1 | One or more error-level diagnostics |
31
+ | 2 | CLI usage error (missing required flag, etc.) |
32
+
33
+ ## Output modes
34
+
35
+ | Mode | Trigger |
36
+ | --- | --- |
37
+ | Ink TUI | TTY and not in CI and `AVO_PLAIN` unset |
38
+ | Plain text | Non-TTY, or `CI=true`, or `AVO_PLAIN=1` |
39
+ | JSON | `avo check --json` (always non-Ink) |
40
+
41
+ Set `AVO_PLAIN=1` to force plain output even in a TTY.
42
+
43
+ ## What `avo init` writes
44
+
45
+ - `avodado.config.json` — `{ docsDir: 'docs', outDir: 'dist' }`
46
+ - `docs/getting-started.md` — sample doc
47
+ - `.avodado/skill/SKILL.md` — authoring skill (block grammar + worked examples)
48
+ - `CLAUDE.md` — pointer for Claude Code to follow the skill
49
+ - `.cursor/rules/avodado.mdc` — same, for Cursor
50
+
51
+ This means any AI agent already in the user's repo (Claude Code, Cursor, others that read `CLAUDE.md` or rules files) can author Avodado docs immediately.
52
+
53
+ ## Configuration
54
+
55
+ `avo` looks for `avodado.config.{ts,js,mjs,json,yml,yaml}` in the working directory and falls back to defaults:
56
+
57
+ ```json
58
+ { "docsDir": "docs", "outDir": "dist" }
59
+ ```