contentbit 0.4.2 → 0.5.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.
Files changed (38) hide show
  1. package/README.md +7 -2
  2. package/dist/bin.js +1609 -1616
  3. package/dist/cli-format.d.ts +17 -0
  4. package/dist/cli-format.d.ts.map +1 -0
  5. package/dist/cli-format.js +63 -0
  6. package/dist/commands/agents.d.ts.map +1 -1
  7. package/dist/commands/agents.js +9 -188
  8. package/dist/commands/docs.d.ts.map +1 -1
  9. package/dist/commands/docs.js +4 -1
  10. package/dist/commands/doctor.d.ts.map +1 -1
  11. package/dist/commands/doctor.js +80 -146
  12. package/dist/commands/init-targets.d.ts +27 -0
  13. package/dist/commands/init-targets.d.ts.map +1 -0
  14. package/dist/commands/init-targets.js +280 -0
  15. package/dist/commands/init.d.ts.map +1 -1
  16. package/dist/commands/init.js +26 -313
  17. package/dist/commands/instructions.d.ts.map +1 -1
  18. package/dist/commands/instructions.js +4 -1
  19. package/dist/commands/links.d.ts.map +1 -1
  20. package/dist/commands/links.js +18 -14
  21. package/dist/commands/render.d.ts.map +1 -1
  22. package/dist/commands/render.js +17 -10
  23. package/dist/commands/stats.d.ts.map +1 -1
  24. package/dist/commands/stats.js +33 -34
  25. package/dist/commands/studio.d.ts.map +1 -1
  26. package/dist/commands/studio.js +14 -12
  27. package/dist/commands/validate.d.ts.map +1 -1
  28. package/dist/commands/validate.js +39 -41
  29. package/dist/content-project.d.ts +32 -0
  30. package/dist/content-project.d.ts.map +1 -0
  31. package/dist/content-project.js +34 -0
  32. package/dist/load-registry.d.ts +4 -1
  33. package/dist/load-registry.d.ts.map +1 -1
  34. package/dist/load-registry.js +4 -2
  35. package/dist/run.d.ts +10 -1
  36. package/dist/run.d.ts.map +1 -1
  37. package/dist/run.js +1613 -1618
  38. package/package.json +4 -5
package/README.md CHANGED
@@ -29,14 +29,17 @@ Everyday commands:
29
29
  ```bash
30
30
  # exits 1 with file:line:col diagnostics and fix hints
31
31
  contentbit validate "content/**/*.md" --registry ./blocks/registry.ts
32
+ contentbit validate "content/**/*.md" --registry ./blocks/registry.ts --no-generic-blocks
32
33
 
33
34
  # ranked repair plan: validation, links, thin sections, block-less long docs,
34
35
  # and missing image alt text; add --json for agents/CI
35
36
  contentbit doctor "content/**/*.md" --registry ./blocks/registry.ts
37
+ contentbit doctor "content/**/*.md" --registry ./blocks/registry.ts --no-generic-blocks
36
38
 
37
39
  # local read-only web app for previews, stats, diagnostics, links, and keywords
38
40
  contentbit studio "content/**/*.md" --registry ./blocks/registry.ts
39
41
  contentbit studio "content/**/*.md" --registry ./blocks/registry.ts --no-open
42
+ contentbit studio "content/**/*.md" --registry ./blocks/registry.ts --no-generic-blocks
40
43
 
41
44
  # structured JSON stats for one document: outline, word counts,
42
45
  # block census, links, validation summary — quick context for LLMs
@@ -49,11 +52,13 @@ contentbit links "content/**/*.md" --fix
49
52
  # compact LLM context generated from the registry
50
53
  contentbit instructions --audience llm --out guide.md
51
54
 
52
- # render to static HTML or plain Markdown
53
- contentbit render article.md --target html
55
+ # render to plain Markdown
56
+ contentbit render article.md
54
57
  ```
55
58
 
56
59
  Point `--registry ./blocks/registry.ts` at a module to add custom blocks.
60
+ Pass `--no-generic-blocks` when that registry owns the full block set, including
61
+ names that overlap the generic pack.
57
62
  LLM agents should read the same registry with `contentbit instructions`, write
58
63
  plain Markdown with registered blocks, then run `contentbit validate` until it
59
64
  exits 0.