cdx-chores 0.0.8-canary.3 → 0.0.8

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
@@ -1,12 +1,14 @@
1
1
  # cdx-chores
2
2
 
3
- A Node.js CLI for file-processing chores, data utilities, rename workflows, and Codex-assisted tasks.
3
+ A Node.js CLI for file-processing chores, tabular data workflows, rename automation, and Codex-assisted tasks.
4
4
 
5
- Current launch-phase focus:
5
+ Stable release scope in `v0.0.8`:
6
6
 
7
7
  - interactive mode + nested CLI commands
8
8
  - `doctor` capability checks
9
- - data conversion, preview, and query workflows
9
+ - CSV / TSV / JSON conversion and preview workflows
10
+ - `data extract` for shaping difficult tabular inputs, including Excel edge cases
11
+ - DuckDB-backed query and Parquet preview workflows
10
12
  - `md to-docx` via `pandoc`
11
13
  - preview-first rename flows
12
14
  - `ffmpeg`-backed video wrappers
@@ -46,12 +48,18 @@ Runtime requirement:
46
48
  | Command group | Important subcommands | Purpose | Capability notes |
47
49
  | ------------- | --------------------- | ------- | ---------------- |
48
50
  | `doctor` | `doctor`, `doctor --json` | Inspect current tool and feature readiness | Run this first on a new machine or after environment changes |
49
- | `data` | `json-to-csv`, `json-to-tsv`, `csv-to-json`, `csv-to-tsv`, `tsv-to-csv`, `tsv-to-json`, `preview`, `parquet preview`, `query`, `query codex`, `duckdb doctor`, `duckdb extension install` | Data conversion, preview, DuckDB-backed SQL query, and Codex SQL drafting | lightweight `csv` / `tsv` / `json` preview and conversion stay on the in-memory PapaParse-backed path; `query` support depends on DuckDB runtime availability |
51
+ | `data` | `preview`, `extract`, `query`, `query codex`, `parquet preview`, `duckdb doctor`, `duckdb extension install`, `(conversion actions)` | Tabular conversion, preview, extraction, 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 currently most useful for shaping one clean table, especially from awkward Excel inputs, while `query` is the more expressive lane for nontrivial filtering, projection, and output selection |
50
52
  | `md` | `to-docx`, `frontmatter-to-json` | Markdown conversion and metadata extraction | `to-docx` requires `pandoc` |
51
53
  | `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 |
52
54
  | `video` | `convert`, `resize`, `gif` | `ffmpeg`-backed video wrappers | Requires `ffmpeg` |
53
55
  | `interactive` | `interactive` or no args | Guided menu flow for supported command groups | Requires a TTY |
54
56
 
57
+ Data notes:
58
+
59
+ - conversion actions are `json-to-csv`, `json-to-tsv`, `csv-to-json`, `csv-to-tsv`, `tsv-to-csv`, and `tsv-to-json`
60
+ - `data extract` materializes one shaped table from one input file to `.csv`, `.tsv`, or `.json`; today its strongest shaping surface is for Excel inputs, where it can target a sheet or range, set `--header-row` and `--body-start-row`, and replay reviewed source-shape or header-mapping artifacts for awkward header bands or merged-cell layouts
61
+ - `data query` is the current general-purpose lane when you need richer filtering or transformation logic than `data extract` exposes without SQL
62
+
55
63
  ## Capability Checks And External Tools
56
64
 
57
65
  The npm package installs the CLI and its Node.js dependencies, but not every command is fully self-contained. Some workflows depend on machine-level tools or environment state outside the main CLI package.
@@ -62,9 +70,9 @@ Use `cdx-chores doctor` before relying on a command in a script, a CI job, or a
62
70
  | ---- | ---------------------------- | ---------------------- | ----------------------- |
63
71
  | `md to-docx` | Markdown-to-DOCX command wrapper | `pandoc` must be installed on `PATH` | Run `cdx-chores doctor` |
64
72
  | `video convert`, `video resize`, `video gif` | Video command wrappers | `ffmpeg` must be installed on `PATH` | Run `cdx-chores doctor` |
65
- | `data query` for `csv`, `tsv`, `parquet` | Query command surface and DuckDB integration | DuckDB runtime must be available in the current install/runtime | Run `cdx-chores doctor` |
66
- | `data query` for `sqlite`, `excel` | Query command surface | 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>` |
67
- | `data query codex` | Natural-language SQL drafting lane | Codex support must be configured and an auth/session signal must be available | Run `cdx-chores doctor` |
73
+ | `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` |
74
+ | `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>` |
75
+ | `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` |
68
76
 
69
77
  For automation or machine-readable checks, use:
70
78
 
@@ -133,12 +141,30 @@ cdx-chores data preview ./input.csv --rows 20
133
141
  cdx-chores data preview ./input.tsv --rows 20
134
142
  ```
135
143
 
144
+ Preview a headerless CSV with generated `column_n` names:
145
+
146
+ ```bash
147
+ cdx-chores data preview ./input.csv --no-header
148
+ ```
149
+
136
150
  Interactive lightweight conversion groups these formats under:
137
151
 
138
152
  ```text
139
153
  data -> convert
140
154
  ```
141
155
 
156
+ Extract one shaped table from an Excel sheet:
157
+
158
+ ```bash
159
+ cdx-chores data extract ./input.xlsx --source Sheet1 --header-row 2 --body-start-row 3 -o ./output.tsv
160
+ ```
161
+
162
+ Extract from a messier Excel range with explicit body rows:
163
+
164
+ ```bash
165
+ cdx-chores data extract ./messy.xlsx --source Report --range A1:Z200 --header-row 4 --body-start-row 6 -o ./output.csv
166
+ ```
167
+
142
168
  Preview Parquet through DuckDB:
143
169
 
144
170
  ```bash
@@ -308,8 +334,11 @@ Rename:
308
334
  - `docs/guides/rename-timestamp-format-matrix.md`
309
335
  - `docs/guides/rename-scope-and-codex-capability-guide.md`
310
336
 
311
- Data query:
337
+ Data:
312
338
 
339
+ - `docs/guides/data-preview-usage.md`
340
+ - `docs/guides/data-extract-usage.md`
341
+ - `docs/guides/data-schema-and-mapping-usage.md`
313
342
  - `docs/guides/data-query-usage.md`
314
343
  - `docs/guides/data-duckdb-usage.md`
315
344
  - `docs/guides/data-query-codex-usage.md`