@bendyline/docblocks-cli 2.0.0 → 2.1.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/README.md +11 -17
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +7463 -0
- package/dist/index.d.ts +133 -2
- package/dist/index.js +1328 -27
- package/package.json +23 -10
- package/dist/commands/build.d.ts +0 -14
- package/dist/commands/build.d.ts.map +0 -1
- package/dist/commands/build.js +0 -74
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/convert.d.ts +0 -42
- package/dist/commands/convert.d.ts.map +0 -1
- package/dist/commands/convert.js +0 -339
- package/dist/commands/convert.js.map +0 -1
- package/dist/commands/init.d.ts +0 -3
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -23
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -12
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -106
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/parse.d.ts +0 -6
- package/dist/commands/parse.d.ts.map +0 -1
- package/dist/commands/parse.js +0 -38
- package/dist/commands/parse.js.map +0 -1
- package/dist/commands/serve.d.ts +0 -36
- package/dist/commands/serve.d.ts.map +0 -1
- package/dist/commands/serve.js +0 -347
- package/dist/commands/serve.js.map +0 -1
- package/dist/commands/themes.d.ts +0 -6
- package/dist/commands/themes.d.ts.map +0 -1
- package/dist/commands/themes.js +0 -15
- package/dist/commands/themes.js.map +0 -1
- package/dist/commands/transforms.d.ts +0 -6
- package/dist/commands/transforms.d.ts.map +0 -1
- package/dist/commands/transforms.js +0 -15
- package/dist/commands/transforms.js.map +0 -1
- package/dist/commands/video.d.ts +0 -38
- package/dist/commands/video.d.ts.map +0 -1
- package/dist/commands/video.js +0 -136
- package/dist/commands/video.js.map +0 -1
- package/dist/contained-file.d.ts +0 -8
- package/dist/contained-file.d.ts.map +0 -1
- package/dist/contained-file.js +0 -77
- package/dist/contained-file.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/mcp/agentic-tools.d.ts +0 -16
- package/dist/mcp/agentic-tools.d.ts.map +0 -1
- package/dist/mcp/agentic-tools.js +0 -967
- package/dist/mcp/agentic-tools.js.map +0 -1
- package/dist/mcp/artifact-store.d.ts +0 -98
- package/dist/mcp/artifact-store.d.ts.map +0 -1
- package/dist/mcp/artifact-store.js +0 -542
- package/dist/mcp/artifact-store.js.map +0 -1
- package/dist/mcp/authority.d.ts +0 -53
- package/dist/mcp/authority.d.ts.map +0 -1
- package/dist/mcp/authority.js +0 -433
- package/dist/mcp/authority.js.map +0 -1
- package/dist/mcp/conversion-service.d.ts +0 -111
- package/dist/mcp/conversion-service.d.ts.map +0 -1
- package/dist/mcp/conversion-service.js +0 -512
- package/dist/mcp/conversion-service.js.map +0 -1
- package/dist/mcp/discovery-tools.d.ts +0 -4
- package/dist/mcp/discovery-tools.d.ts.map +0 -1
- package/dist/mcp/discovery-tools.js +0 -114
- package/dist/mcp/discovery-tools.js.map +0 -1
- package/dist/mcp/document-service.d.ts +0 -47
- package/dist/mcp/document-service.d.ts.map +0 -1
- package/dist/mcp/document-service.js +0 -424
- package/dist/mcp/document-service.js.map +0 -1
- package/dist/mcp/error-result.d.ts +0 -17
- package/dist/mcp/error-result.d.ts.map +0 -1
- package/dist/mcp/error-result.js +0 -82
- package/dist/mcp/error-result.js.map +0 -1
- package/dist/mcp/intelligence.d.ts +0 -15
- package/dist/mcp/intelligence.d.ts.map +0 -1
- package/dist/mcp/intelligence.js +0 -855
- package/dist/mcp/intelligence.js.map +0 -1
- package/dist/mcp/output-bounds.d.ts +0 -13
- package/dist/mcp/output-bounds.d.ts.map +0 -1
- package/dist/mcp/output-bounds.js +0 -61
- package/dist/mcp/output-bounds.js.map +0 -1
- package/dist/mcp/preview-service.d.ts +0 -54
- package/dist/mcp/preview-service.d.ts.map +0 -1
- package/dist/mcp/preview-service.js +0 -454
- package/dist/mcp/preview-service.js.map +0 -1
- package/dist/mcp/progress.d.ts +0 -18
- package/dist/mcp/progress.d.ts.map +0 -1
- package/dist/mcp/progress.js +0 -28
- package/dist/mcp/progress.js.map +0 -1
- package/dist/mcp/prompts.d.ts +0 -4
- package/dist/mcp/prompts.d.ts.map +0 -1
- package/dist/mcp/prompts.js +0 -124
- package/dist/mcp/prompts.js.map +0 -1
- package/dist/mcp/rendered-conversion.d.ts +0 -34
- package/dist/mcp/rendered-conversion.d.ts.map +0 -1
- package/dist/mcp/rendered-conversion.js +0 -364
- package/dist/mcp/rendered-conversion.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -69
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -249
- package/dist/mcp/server.js.map +0 -1
- package/dist/preview-policy.d.ts +0 -8
- package/dist/preview-policy.d.ts.map +0 -1
- package/dist/preview-policy.js +0 -85
- package/dist/preview-policy.js.map +0 -1
- package/dist/render-html.d.ts +0 -17
- package/dist/render-html.d.ts.map +0 -1
- package/dist/render-html.js +0 -85
- package/dist/render-html.js.map +0 -1
- package/dist/version.d.ts +0 -6
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -104
- package/dist/version.js.map +0 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ The DocBlocks command-line surface for document build and preview, linked-Squisq
|
|
|
4
4
|
format conversion, MP4 rendering, document parsing, and a local MCP server for
|
|
5
5
|
agents.
|
|
6
6
|
|
|
7
|
+
[CLI and MCP overview](https://docblocks.com/cli/)
|
|
8
|
+
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
9
11
|
Node.js 22.14 or newer is required.
|
|
@@ -25,7 +27,6 @@ directions, overwrite behavior, MCP authority, artifact lifecycle, and assurance
|
|
|
25
27
|
|
|
26
28
|
| Command | Purpose |
|
|
27
29
|
| ---------------------------------- | ----------------------------------------------------- |
|
|
28
|
-
| `docblocks init [dir]` | Create minimal `.docblocks/config.json` metadata. |
|
|
29
30
|
| `docblocks build` | Recursively build Markdown into standalone HTML. |
|
|
30
31
|
| `docblocks serve` | Run a constrained local preview server. |
|
|
31
32
|
| `docblocks convert <input>` | Convert through the linked Squisq registry. |
|
|
@@ -65,11 +66,18 @@ docblocks mcp --allow-read ./documents --allow-write ./exports
|
|
|
65
66
|
```
|
|
66
67
|
|
|
67
68
|
`convert` and `video` accept Markdown, Squisq JSON Doc, DBK/ZIP, folders, and
|
|
68
|
-
import-capable linked-registry formats.
|
|
69
|
-
|
|
69
|
+
import-capable linked-registry formats. `build` replaces generated HTML files;
|
|
70
|
+
`convert` and `video` refuse existing destinations unless `--allow-overwrite` is
|
|
71
|
+
passed. Multi-target conversion stages the complete batch and rolls back replacements
|
|
72
|
+
if publication fails. Build traversal, input bytes, and output bytes are bounded, as
|
|
73
|
+
are parse input and JSON output. MCP conversions instead return
|
|
70
74
|
immutable session artifacts; only explicit `save_artifact` materializes one, using
|
|
71
75
|
no-replace or hash-conditional replacement semantics.
|
|
72
76
|
|
|
77
|
+
The package root is a side-effect-free programmatic API for `runBuild`, `runConvert`,
|
|
78
|
+
`runVideo`, and `runParse`. Importing it never starts Commander; the executable is
|
|
79
|
+
the separate `docblocks` bin entry.
|
|
80
|
+
|
|
73
81
|
The live linked registry currently covers Markdown, DOCX, PDF, PPTX, XLSX, CSV,
|
|
74
82
|
HTML, HTML ZIP, EPUB, DBK, MP4, and GIF. Direction varies by format, so use the
|
|
75
83
|
CLI reference or MCP `list_formats` rather than assuming every format imports.
|
|
@@ -77,17 +85,3 @@ CLI reference or MCP `list_formats` rather than assuming every format imports.
|
|
|
77
85
|
MP4/GIF rendering requires Chromium and FFmpeg. Install Chromium with
|
|
78
86
|
`npx playwright install chromium`; Squisq resolves FFmpeg from `SQUISQ_FFMPEG`,
|
|
79
87
|
`PATH`, or `ffmpeg-static`, in that order.
|
|
80
|
-
|
|
81
|
-
## Development with linked Squisq
|
|
82
|
-
|
|
83
|
-
From the DocBlocks repository root:
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
npm run link:squisq
|
|
87
|
-
npm run check:squisq-linked
|
|
88
|
-
npm run test:mcp:linked
|
|
89
|
-
npm run all
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
The linked assurance commands use the sibling `..\squisq` source checkout, not the
|
|
93
|
-
npm package copy.
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|