document-cli 5.8.3 → 5.10.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.
package/README.md CHANGED
@@ -72,6 +72,8 @@ npm i -g doculi
72
72
 
73
73
  Both names install the exact same package and the exact same binary — `package.json`'s `bin` field declares both `document-cli` and `doculi` pointing at the one built entry point unconditionally, so there is no "real" name and an alias; pick whichever you find easier to type. Unlike a sibling's second _npm package name_ (`documents.js`'s own `js.documents` — see that package's README, and note the older per-repo pipeline's GitHub Packages republish this pattern used to mirror is no longer running, per [ExaDev/documents.js#732](https://github.com/ExaDev/documents.js/issues/732)), this is one package with two `bin` entries: a second name for the same build, not a second build, and unaffected by that gap.
74
74
 
75
+ Every release also attaches a Node [single-executable application](https://nodejs.org/api/single-executable-applications.html) build for Linux, Windows, and macOS (both Apple Silicon and Intel) to that release's own GitHub Release assets — a standalone binary with the entire package and its dependencies embedded, needing no Node.js install or `npm i` at all. It covers every subcommand except the TUI, which needs a real terminal session rather than a spawned subprocess and stays npm-only; running `tui` against the binary prints a message pointing back at the npm-installed package instead of attempting to launch it. Download the asset matching your platform from the package's tag on the [Releases page](https://github.com/ExaDev/documents.js/releases) and run it directly (`chmod +x` on Linux/macOS first).
76
+
75
77
  ## Usage
76
78
 
77
79
  Every conversion and extraction command reads one input and writes one output. Pass `-` for either to use stdin/stdout instead of a file — useful for piping through other tools without a temp file:
package/dist/cli.js CHANGED
@@ -1199,7 +1199,7 @@ function registerSetMetadataCommand(program) {
1199
1199
  }
1200
1200
  //#endregion
1201
1201
  //#region package.json
1202
- var version = "5.8.3";
1202
+ var version = "5.10.0";
1203
1203
  //#endregion
1204
1204
  //#region src/program.ts
1205
1205
  function createProgram() {
@@ -1224,7 +1224,7 @@ function createProgram() {
1224
1224
  return program;
1225
1225
  }
1226
1226
  //#endregion
1227
- //#region src/cli.ts
1227
+ //#region src/cli-main.ts
1228
1228
  async function launchTui(startPath, signal) {
1229
1229
  try {
1230
1230
  const { runTui } = await import("./tui-CGo4rAhe.js");
@@ -1241,6 +1241,9 @@ async function launchTui(startPath, signal) {
1241
1241
  function findStartPath(args) {
1242
1242
  return args.find((arg) => !arg.startsWith("-"));
1243
1243
  }
1244
+ /**
1245
+ * The real, full-featured CLI entry logic -- `src/cli.ts` (the published npm `bin`, run under a real Node.js install) awaits this at its own top level. The SEA build (`src/sea-entry.ts`) does NOT use this function; it uses `src/cli-main-sea.ts`'s own TUI-free equivalent instead, so that Ink's module graph is never reachable from the SEA bundle's own entry at all -- see this file's own top comment.
1246
+ */
1244
1247
  async function main() {
1245
1248
  const { signal } = createRuntimeSignal({});
1246
1249
  const args = process.argv.slice(2);
@@ -1269,6 +1272,8 @@ async function main() {
1269
1272
  if (!(error instanceof CommanderError)) throw error;
1270
1273
  }
1271
1274
  }
1275
+ //#endregion
1276
+ //#region src/cli.ts
1272
1277
  await main();
1273
1278
  //#endregion
1274
1279
  export {};
package/dist/index.cjs CHANGED
@@ -1549,7 +1549,7 @@ function registerSetMetadataCommand(program) {
1549
1549
  }
1550
1550
  //#endregion
1551
1551
  //#region package.json
1552
- var version = "5.8.3";
1552
+ var version = "5.10.0";
1553
1553
  //#endregion
1554
1554
  //#region src/program.ts
1555
1555
  function createProgram() {
package/dist/index.js CHANGED
@@ -1548,7 +1548,7 @@ function registerSetMetadataCommand(program) {
1548
1548
  }
1549
1549
  //#endregion
1550
1550
  //#region package.json
1551
- var version = "5.8.3";
1551
+ var version = "5.10.0";
1552
1552
  //#endregion
1553
1553
  //#region src/program.ts
1554
1554
  function createProgram() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-cli",
3
- "version": "5.8.3",
3
+ "version": "5.10.0",
4
4
  "description": "CLI and interactive Ink TUI for documents.js: every docx/pptx/odt/odp/ods/odg/odf/pdf/odm/odb/xlsx/csv/svg/markdown/rtf conversion, bridge, and editor as a scriptable command or a terminal app.",
5
5
  "type": "module",
6
6
  "repository": {