contentbit 0.4.2 → 0.6.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 +20 -2
- package/dist/bin.js +8183 -3889
- package/dist/cli-format.d.ts +17 -0
- package/dist/cli-format.d.ts.map +1 -0
- package/dist/cli-format.js +63 -0
- package/dist/commands/agents.d.ts +6 -1
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/agents.js +13 -201
- package/dist/commands/brief.d.ts +12 -0
- package/dist/commands/brief.d.ts.map +1 -0
- package/dist/commands/brief.js +52 -0
- package/dist/commands/docs.d.ts +6 -1
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +5 -11
- package/dist/commands/doctor.d.ts +13 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +124 -166
- package/dist/commands/init-targets.d.ts +27 -0
- package/dist/commands/init-targets.d.ts.map +1 -0
- package/dist/commands/init-targets.js +280 -0
- package/dist/commands/init.d.ts +12 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +92 -340
- package/dist/commands/instructions.d.ts +8 -1
- package/dist/commands/instructions.d.ts.map +1 -1
- package/dist/commands/instructions.js +7 -15
- package/dist/commands/links.d.ts +7 -1
- package/dist/commands/links.d.ts.map +1 -1
- package/dist/commands/links.js +24 -37
- package/dist/commands/render.d.ts +8 -1
- package/dist/commands/render.d.ts.map +1 -1
- package/dist/commands/render.js +19 -24
- package/dist/commands/stats.d.ts +7 -1
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +28 -39
- package/dist/commands/studio.d.ts +13 -1
- package/dist/commands/studio.d.ts.map +1 -1
- package/dist/commands/studio.js +28 -39
- package/dist/commands/validate.d.ts +8 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +39 -56
- package/dist/content-project.d.ts +12 -0
- package/dist/content-project.d.ts.map +1 -0
- package/dist/content-project.js +25 -0
- package/dist/link-options.d.ts +5 -0
- package/dist/link-options.d.ts.map +1 -1
- package/dist/link-options.js +5 -5
- package/dist/load-registry.d.ts +1 -3
- package/dist/load-registry.d.ts.map +1 -1
- package/dist/load-registry.js +1 -24
- package/dist/run.d.ts +10 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +9603 -5307
- package/dist/seo-config.d.ts +12 -0
- package/dist/seo-config.d.ts.map +1 -0
- package/dist/seo-config.js +21 -0
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -20,6 +20,9 @@ pnpm run studio
|
|
|
20
20
|
# inspect validation, links, and content-quality suggestions together
|
|
21
21
|
pnpm run content:doctor
|
|
22
22
|
|
|
23
|
+
# optionally scaffold SEO contracts for brief + doctor checks
|
|
24
|
+
contentbit init --seo
|
|
25
|
+
|
|
23
26
|
# refresh AGENTS.md and Claude Code skills for LLM agents
|
|
24
27
|
contentbit agents
|
|
25
28
|
```
|
|
@@ -29,14 +32,23 @@ Everyday commands:
|
|
|
29
32
|
```bash
|
|
30
33
|
# exits 1 with file:line:col diagnostics and fix hints
|
|
31
34
|
contentbit validate "content/**/*.md" --registry ./blocks/registry.ts
|
|
35
|
+
contentbit validate "content/**/*.md" --registry ./blocks/registry.ts --no-generic-blocks
|
|
32
36
|
|
|
33
37
|
# ranked repair plan: validation, links, thin sections, block-less long docs,
|
|
34
38
|
# and missing image alt text; add --json for agents/CI
|
|
35
39
|
contentbit doctor "content/**/*.md" --registry ./blocks/registry.ts
|
|
40
|
+
contentbit doctor "content/**/*.md" --registry ./blocks/registry.ts --no-generic-blocks
|
|
41
|
+
contentbit doctor "content/**/*.md" --seo-config ./contentbit.seo.config.ts --strict-seo
|
|
42
|
+
contentbit doctor "content/**/*.md" --no-seo
|
|
43
|
+
|
|
44
|
+
# agent-ready SEO structure brief for an existing or planned page
|
|
45
|
+
contentbit brief ahrefs-alternatives "content/**/*.md"
|
|
46
|
+
contentbit brief ahrefs-alternatives --json
|
|
36
47
|
|
|
37
48
|
# local read-only web app for previews, stats, diagnostics, links, and keywords
|
|
38
49
|
contentbit studio "content/**/*.md" --registry ./blocks/registry.ts
|
|
39
50
|
contentbit studio "content/**/*.md" --registry ./blocks/registry.ts --no-open
|
|
51
|
+
contentbit studio "content/**/*.md" --registry ./blocks/registry.ts --no-generic-blocks
|
|
40
52
|
|
|
41
53
|
# structured JSON stats for one document: outline, word counts,
|
|
42
54
|
# block census, links, validation summary — quick context for LLMs
|
|
@@ -49,11 +61,17 @@ contentbit links "content/**/*.md" --fix
|
|
|
49
61
|
# compact LLM context generated from the registry
|
|
50
62
|
contentbit instructions --audience llm --out guide.md
|
|
51
63
|
|
|
52
|
-
# render to
|
|
53
|
-
contentbit render article.md
|
|
64
|
+
# render to plain Markdown
|
|
65
|
+
contentbit render article.md
|
|
54
66
|
```
|
|
55
67
|
|
|
56
68
|
Point `--registry ./blocks/registry.ts` at a module to add custom blocks.
|
|
69
|
+
Pass `--no-generic-blocks` when that registry owns the full block set, including
|
|
70
|
+
names that overlap the generic pack.
|
|
71
|
+
Add `contentbit.seo.config.ts` with `defineSeoConfig(...)` to let `doctor`
|
|
72
|
+
include SEO contract findings and `contentbit brief <key-or-slug>` print an
|
|
73
|
+
agent-ready page brief. Use `--no-seo` to keep `doctor` to validation, links,
|
|
74
|
+
and stats only.
|
|
57
75
|
LLM agents should read the same registry with `contentbit instructions`, write
|
|
58
76
|
plain Markdown with registered blocks, then run `contentbit validate` until it
|
|
59
77
|
exits 0.
|