cdx-chores 0.1.2 → 0.1.3-canary.2
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 +27 -3
- package/dist/cjs/index.cjs +676 -22
- package/dist/esm/bin.mjs +676 -22
- package/dist/esm/index.d.mts +1 -1
- package/dist/esm/index.mjs +677 -23
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A Node.js CLI for file-processing chores, tabular data workflows, rename automation, and Codex-assisted tasks.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Current command scope:
|
|
6
6
|
|
|
7
7
|
- interactive mode + nested CLI commands, including `Esc` exit on command menus
|
|
8
8
|
- `doctor` capability checks
|
|
@@ -11,7 +11,7 @@ Stable release scope in `v0.1.2`:
|
|
|
11
11
|
- DuckDB-backed query, reviewed header-mapping, source-shape replay, and Parquet preview workflows
|
|
12
12
|
- `data stack` for assembling multiple CSV, TSV, JSONL, or JSON files and directories into one output table
|
|
13
13
|
- replayable `data stack` plan artifacts, dry-run diagnostics, duplicate/key checks, and optional reviewed Codex assistance
|
|
14
|
-
- `md to-docx` via `pandoc`
|
|
14
|
+
- `md to-docx` via `pandoc` and Markdown-to-PDF rendering via WeasyPrint
|
|
15
15
|
- preview-first rename flows
|
|
16
16
|
- `ffmpeg`-backed video wrappers, including GIF quality modes and profiles
|
|
17
17
|
|
|
@@ -51,7 +51,7 @@ Runtime requirement:
|
|
|
51
51
|
| ------------- | --------------------- | ------- | ---------------- |
|
|
52
52
|
| `doctor` | `doctor`, `doctor --json` | Inspect current tool and feature readiness | Run this first on a new machine or after environment changes |
|
|
53
53
|
| `data` | `preview`, `extract`, `query`, `query codex`, `stack`, `stack replay`, `parquet preview`, `duckdb doctor`, `duckdb extension install`, `(conversion actions)` | Tabular conversion, preview, extraction, multi-source stacking, DuckDB-backed SQL query, and Codex SQL drafting | lightweight `csv` / `tsv` / `json` preview and conversion stay on the in-memory PapaParse-backed path; `extract` is best suited to shaping one clean table, `stack` assembles many matching local sources before later work, and `query` is the expressive lane for filtering, projection, and output selection |
|
|
54
|
-
| `md` | `to-docx`, `frontmatter-to-json` | Markdown conversion and metadata extraction | `to-docx` requires `pandoc` |
|
|
54
|
+
| `md` | `to-docx`, `to-pdf`, `pdf-template init`, `frontmatter-to-json` | Markdown conversion, PDF recipe generation, and metadata extraction | `to-docx` requires `pandoc`; `to-pdf` requires `pandoc` and `weasyprint` |
|
|
55
55
|
| `rename` | `file`, `batch`, `cleanup`, `apply` | Safe rename previews, cleanup flows, and replayable apply runs | Codex analyzer routes are optional, not required for standard rename usage |
|
|
56
56
|
| `video` | `convert`, `resize`, `gif` | `ffmpeg`-backed video wrappers | Requires `ffmpeg` |
|
|
57
57
|
| `interactive` | `interactive` or no args | Guided menu flow for supported command groups | Requires a TTY |
|
|
@@ -72,6 +72,7 @@ Use `cdx-chores doctor` before relying on a command in a script, a CI job, or a
|
|
|
72
72
|
| Area | What ships with `cdx-chores` | Additional requirement | How to verify or repair |
|
|
73
73
|
| ---- | ---------------------------- | ---------------------- | ----------------------- |
|
|
74
74
|
| `md to-docx` | Markdown-to-DOCX command wrapper | `pandoc` must be installed on `PATH` | Run `cdx-chores doctor` |
|
|
75
|
+
| `md to-pdf` | Markdown-to-PDF command wrapper and default HTML/CSS recipe | `pandoc` and `weasyprint` must be installed on `PATH` | Run `cdx-chores doctor` |
|
|
75
76
|
| `video convert`, `video resize`, `video gif` | Video command wrappers | `ffmpeg` must be installed on `PATH` | Run `cdx-chores doctor` |
|
|
76
77
|
| `data extract`, `data query` for `csv`, `tsv`, `parquet` | Extract and query command surfaces plus DuckDB integration | DuckDB runtime must be available in the current install/runtime | Run `cdx-chores doctor` |
|
|
77
78
|
| `data extract`, `data query` for `sqlite`, `excel` | Extract and query command surfaces | Required DuckDB extension must be loadable for the current DuckDB runtime | Run `cdx-chores doctor`, then `cdx-chores data duckdb doctor` or `cdx-chores data duckdb extension install <name>` |
|
|
@@ -201,6 +202,24 @@ Markdown to DOCX:
|
|
|
201
202
|
cdx-chores md to-docx -i ./notes.md -o ./notes.docx
|
|
202
203
|
```
|
|
203
204
|
|
|
205
|
+
Markdown to PDF:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
cdx-chores md to-pdf -i ./notes.md
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Markdown to PDF with a report ToC:
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
cdx-chores md to-pdf -i ./report.md --preset report --toc --toc-depth 3
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Generate editable Markdown PDF template files:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
cdx-chores md pdf-template init --output ./pdf-template
|
|
221
|
+
```
|
|
222
|
+
|
|
204
223
|
Markdown frontmatter to JSON:
|
|
205
224
|
|
|
206
225
|
```bash
|
|
@@ -372,6 +391,11 @@ Video:
|
|
|
372
391
|
- `docs/guides/video-gif-usage-and-quality-modes.md`
|
|
373
392
|
- `docs/guides/video-resize-usage-and-ux.md`
|
|
374
393
|
|
|
394
|
+
Markdown:
|
|
395
|
+
|
|
396
|
+
- `docs/guides/markdown-pdf-usage.md`
|
|
397
|
+
- `docs/guides/md-frontmatter-to-json-output-contract.md`
|
|
398
|
+
|
|
375
399
|
## Local Development
|
|
376
400
|
|
|
377
401
|
Install dependencies:
|