contentbit 0.2.0 → 0.4.0
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 +41 -6
- package/dist/bin.js +1115 -74
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/agents.js +77 -22
- package/dist/commands/doctor.d.ts +3 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +215 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +62 -8
- package/dist/commands/links.d.ts +3 -0
- package/dist/commands/links.d.ts.map +1 -0
- package/dist/commands/links.js +97 -0
- package/dist/commands/render.d.ts.map +1 -1
- package/dist/commands/render.js +2 -2
- package/dist/commands/studio.d.ts +3 -0
- package/dist/commands/studio.d.ts.map +1 -0
- package/dist/commands/studio.js +76 -0
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +20 -1
- package/dist/link-options.d.ts +10 -0
- package/dist/link-options.d.ts.map +1 -0
- package/dist/link-options.js +31 -0
- package/dist/links-io.d.ts +3 -0
- package/dist/links-io.d.ts.map +1 -0
- package/dist/links-io.js +14 -0
- package/dist/run.d.ts +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +1115 -74
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,19 +1,51 @@
|
|
|
1
1
|
# contentbit
|
|
2
2
|
|
|
3
|
-
CLI for [
|
|
3
|
+
CLI for [contentbit](https://contentbit.dev): initialize projects, validate
|
|
4
|
+
structured Markdown blocks, print ranked health reports, build internal-link
|
|
5
|
+
indexes, render content, and give LLMs live authoring instructions from your
|
|
6
|
+
registry.
|
|
7
|
+
|
|
8
|
+
Fast path:
|
|
4
9
|
|
|
5
10
|
```bash
|
|
6
|
-
# scaffold
|
|
7
|
-
# a custom-block registry, and LLM authoring instructions
|
|
11
|
+
# scaffold packages, starter content, registry, renderer, scripts, and LLM-agent files
|
|
8
12
|
pnpm dlx contentbit@latest init
|
|
9
13
|
|
|
10
|
-
# validate
|
|
11
|
-
|
|
14
|
+
# run the generated validate script, including your custom registry
|
|
15
|
+
pnpm run content:check
|
|
16
|
+
|
|
17
|
+
# open the local read-only Studio dashboard
|
|
18
|
+
pnpm run studio
|
|
19
|
+
|
|
20
|
+
# inspect validation, links, and content-quality suggestions together
|
|
21
|
+
pnpm run content:doctor
|
|
22
|
+
|
|
23
|
+
# refresh AGENTS.md and Claude Code skills for LLM agents
|
|
24
|
+
contentbit agents
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Everyday commands:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# exits 1 with file:line:col diagnostics and fix hints
|
|
31
|
+
contentbit validate "content/**/*.md" --registry ./blocks/registry.ts
|
|
32
|
+
|
|
33
|
+
# ranked repair plan: validation, links, thin sections, block-less long docs,
|
|
34
|
+
# and missing image alt text; add --json for agents/CI
|
|
35
|
+
contentbit doctor "content/**/*.md" --registry ./blocks/registry.ts
|
|
36
|
+
|
|
37
|
+
# local read-only web app for previews, stats, diagnostics, links, and keywords
|
|
38
|
+
contentbit studio "content/**/*.md" --registry ./blocks/registry.ts
|
|
39
|
+
contentbit studio "content/**/*.md" --registry ./blocks/registry.ts --no-open
|
|
12
40
|
|
|
13
41
|
# structured JSON stats for one document: outline, word counts,
|
|
14
42
|
# block census, links, validation summary — quick context for LLMs
|
|
15
43
|
contentbit stats article.md
|
|
16
44
|
|
|
45
|
+
# internal-link graph from frontmatter slugs, aliases, and linksTo
|
|
46
|
+
contentbit links "content/**/*.md"
|
|
47
|
+
contentbit links "content/**/*.md" --fix
|
|
48
|
+
|
|
17
49
|
# compact LLM context generated from the registry
|
|
18
50
|
contentbit instructions --audience llm --out guide.md
|
|
19
51
|
|
|
@@ -21,6 +53,9 @@ contentbit instructions --audience llm --out guide.md
|
|
|
21
53
|
contentbit render article.md --target html
|
|
22
54
|
```
|
|
23
55
|
|
|
24
|
-
Point `--registry ./blocks/registry.
|
|
56
|
+
Point `--registry ./blocks/registry.ts` at a module to add custom blocks.
|
|
57
|
+
LLM agents should read the same registry with `contentbit instructions`, write
|
|
58
|
+
plain Markdown with registered blocks, then run `contentbit validate` until it
|
|
59
|
+
exits 0.
|
|
25
60
|
|
|
26
61
|
Docs: [contentbit.dev/docs](https://contentbit.dev/docs)
|