cdx-chores 0.1.6 → 0.1.7-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 CHANGED
@@ -41,20 +41,23 @@ Start interactive mode (default when no args are provided in a TTY):
41
41
  cdx-chores
42
42
  ```
43
43
 
44
+ For doctor checks in Interactive mode, choose `doctor`, then select `Summary`,
45
+ `Details`, or `JSON`.
46
+
44
47
  Runtime requirement:
45
48
 
46
49
  - Node.js `>= 22.23.0`
47
50
 
48
51
  ## Command Overview
49
52
 
50
- | Command group | Important subcommands | Purpose | Capability notes |
51
- | ------------- | --------------------- | ------- | ---------------- |
52
- | `doctor` | `doctor`, `doctor --json` | Inspect current tool and feature readiness | Run this first on a new machine or after environment changes |
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`, `to-pdf`, `pdf-profile init`, `pdf-profile codex`, `pdf-template init`, `pdf-template codex`, `pdf-project codex`, `frontmatter-to-json` | Markdown conversion, PDF profile/template/project generation, and metadata extraction | `to-docx` requires `pandoc`; `to-pdf` requires Pandoc 2.0+ and `weasyprint` |
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
- | `video` | `convert`, `resize`, `gif` | `ffmpeg`-backed video wrappers | Requires `ffmpeg` |
57
- | `interactive` | `interactive` or no args | Guided menu flow for supported command groups | Requires a TTY |
53
+ | Command group | Important subcommands | Purpose | Capability notes |
54
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
55
+ | `doctor` | `doctor`, `doctor --details`, `doctor --json` | Inspect current tool and feature readiness | Run this first on a new machine or after environment changes |
56
+ | `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 |
57
+ | `md` | `to-docx`, `to-pdf`, `pdf-profile init`, `pdf-profile codex`, `pdf-template init`, `pdf-template codex`, `pdf-project codex`, `frontmatter-to-json` | Markdown conversion, PDF profile/template/project generation, and metadata extraction | `to-docx` requires `pandoc`; `to-pdf` requires Pandoc 2.0+ and `weasyprint` |
58
+ | `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 |
59
+ | `video` | `convert`, `resize`, `gif` | `ffmpeg`-backed video wrappers | Requires `ffmpeg` |
60
+ | `interactive` | `interactive` or no args | Guided menu flow for supported command groups | Requires a TTY |
58
61
 
59
62
  Data notes:
60
63
 
@@ -69,24 +72,28 @@ The npm package installs the CLI and its Node.js dependencies, but not every com
69
72
 
70
73
  Use `cdx-chores doctor` before relying on a command in a script, a CI job, or a fresh machine setup.
71
74
 
72
- | Area | What ships with `cdx-chores` | Additional requirement | How to verify or repair |
73
- | ---- | ---------------------------- | ---------------------- | ----------------------- |
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 2.0+ and `weasyprint` must be installed on `PATH` | Run `cdx-chores doctor` |
76
- | `video convert`, `video resize`, `video gif` | Video command wrappers | `ffmpeg` must be installed on `PATH` | Run `cdx-chores doctor` |
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` |
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>` |
79
- | `data extract` reviewed suggestions, `data query codex` | Codex-assisted source shaping, semantic header review, and natural-language SQL drafting | Codex support must be configured and an auth/session signal must be available | Run `cdx-chores doctor` |
80
- | `md pdf-profile codex`, `md pdf-template codex`, `md pdf-project codex` | Codex-assisted Markdown PDF profile, template, and coordinated project drafting | Codex support must be configured for Codex-assisted decisions; deterministic fallback paths remain available where documented | Run `cdx-chores doctor` |
75
+ | Area | What ships with `cdx-chores` | Additional requirement | How to verify or repair |
76
+ | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
77
+ | `md to-docx` | Markdown-to-DOCX command wrapper | `pandoc` must be installed on `PATH` | Run `cdx-chores doctor` |
78
+ | `md to-pdf` | Markdown-to-PDF command wrapper and default HTML/CSS recipe | Pandoc 2.0+ and `weasyprint` must be installed on `PATH` | Run `cdx-chores doctor` |
79
+ | `video convert`, `video resize`, `video gif` | Video command wrappers | `ffmpeg` must be installed on `PATH` | Run `cdx-chores doctor` |
80
+ | `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` |
81
+ | `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>` |
82
+ | `data extract` reviewed suggestions, `data query codex` | Codex-assisted source shaping, semantic header review, and natural-language SQL drafting | Codex support must be configured and an auth/session signal must be available | Run `cdx-chores doctor` |
83
+ | `md pdf-profile codex`, `md pdf-template codex`, `md pdf-project codex` | Codex-assisted Markdown PDF profile, template, and coordinated project drafting | Codex support must be configured for Codex-assisted decisions; deterministic fallback paths remain available where documented | Run `cdx-chores doctor` |
81
84
 
82
- Codex SDK baseline for `v0.1.6`: `0.146.0`
85
+ Codex SDK baseline for `v0.1.7-canary.1`: `0.147.0`
83
86
 
84
87
  Markdown PDF profile, template, and Codex-assisted profile/template/project
85
88
  helpers remain available as direct CLI flows. Interactive mode also provides
86
89
  `md -> to-pdf` for guided rendering and `md -> pdf-recipes` for durable recipe
87
90
  authoring with an optional render handoff.
88
91
 
89
- For automation or machine-readable checks, use:
92
+ The default doctor view is a compact workflow summary with detected actions.
93
+ Use `--details` for complete human-readable evidence and `--json` for
94
+ automation or machine-readable checks.
95
+
96
+ Machine-readable check:
90
97
 
91
98
  ```bash
92
99
  cdx-chores doctor --json
@@ -96,13 +103,19 @@ cdx-chores doctor --json
96
103
 
97
104
  ### Doctor
98
105
 
99
- Text output:
106
+ Compact workflow summary:
100
107
 
101
108
  ```bash
102
109
  cdx-chores doctor
103
110
  ```
104
111
 
105
- JSON output:
112
+ Detailed human evidence:
113
+
114
+ ```bash
115
+ cdx-chores doctor --details
116
+ ```
117
+
118
+ Machine-readable evidence:
106
119
 
107
120
  ```bash
108
121
  cdx-chores doctor --json
@@ -312,30 +325,14 @@ cdx-chores rename file ./images/IMG_1024.JPG --pattern "{uid}-{stem}" --dry-run
312
325
 
313
326
  Template notes:
314
327
 
315
- - available placeholders include `{prefix}`, `{timestamp}`, `{timestamp_local}`, `{timestamp_utc}`, `{timestamp_local_iso}`, `{timestamp_utc_iso}`, `{timestamp_local_12h}`, `{timestamp_utc_12h}`, `{date}`, `{date_local}`, `{date_utc}`, `{stem}`, `{uid}`, and `{serial...}`
328
+ - placeholder families cover prefixes, stems, UIDs, dates, timestamps, and serials
316
329
  - `--prefix` is optional
317
330
  - `--codex` is the common smart-routing flag for CLI mode
318
331
  - `--codex-images` and `--codex-docs` are explicit analyzer overrides
319
332
  - `{uid}` renders a deterministic `uid-<token>` fragment
320
333
  - `{serial...}` enables serial controls
321
334
  - `--serial-width` uses a digit count such as `2` or `4`, not `#`
322
-
323
- Timestamp placeholder notes:
324
-
325
- - `{timestamp}` uses UTC as the backward-compatible default
326
- - `{timestamp_local}` uses local time explicitly
327
- - `{timestamp_utc}` uses UTC explicitly
328
- - `{timestamp_local_iso}` uses local time with a numeric offset such as `+0800`
329
- - `{timestamp_utc_iso}` uses UTC with `Z`
330
- - `{timestamp_local_12h}` and `{timestamp_utc_12h}` use compact `12hr` output with `AM` or `PM`
331
- - `--timestamp-timezone local|utc` overrides `{timestamp}` only
332
-
333
- Route A examples:
334
-
335
- ```bash
336
- cdx-chores rename file ./images/IMG_1024.JPG --pattern "{timestamp_utc_iso}-{stem}" --dry-run
337
- cdx-chores rename batch ./images --pattern "{timestamp_local_12h}-{stem}" --dry-run
338
- ```
335
+ - use `docs/guides/rename-common-usage.md` for the complete template contract
339
336
 
340
337
  Cleanup notes:
341
338
 
@@ -349,12 +346,12 @@ Cleanup notes:
349
346
 
350
347
  Cleanup option comparison:
351
348
 
352
- | Surface | Current role | Current values / scope |
353
- | ------- | ------------ | ---------------------- |
354
- | `--hint` | Choose fragment families to clean | `date`, `timestamp`, `serial`, `uid` |
355
- | `--style` | Format surviving text after cleanup | `preserve`, `slug` |
356
- | `--timestamp-action` | Keep or remove matched timestamp text | `keep`, `remove` with `--hint timestamp` |
357
- | `--conflict-strategy` | Resolve collisions only when the cleaned target conflicts | `skip`, `number`, `uid-suffix` |
349
+ | Surface | Current role | Current values / scope |
350
+ | --------------------- | --------------------------------------------------------- | ---------------------------------------- |
351
+ | `--hint` | Choose fragment families to clean | `date`, `timestamp`, `serial`, `uid` |
352
+ | `--style` | Format surviving text after cleanup | `preserve`, `slug` |
353
+ | `--timestamp-action` | Keep or remove matched timestamp text | `keep`, `remove` with `--hint timestamp` |
354
+ | `--conflict-strategy` | Resolve collisions only when the cleaned target conflicts | `skip`, `number`, `uid-suffix` |
358
355
 
359
356
  ### Video
360
357
 
@@ -396,6 +393,10 @@ cdx-chores video resize -i ./clip.mp4 -o ./clip-720p.mp4 --width 1280 --height 7
396
393
 
397
394
  ## Guides
398
395
 
396
+ Cross-feature:
397
+
398
+ - `docs/guides/patterns-placeholders-and-templates.md`
399
+
399
400
  Rename:
400
401
 
401
402
  - `docs/guides/rename-common-usage.md`