@usejunior/safe-docx 0.19.1 → 0.21.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/bin/safe-docx.js CHANGED
@@ -2,7 +2,13 @@
2
2
  import { runCli } from '@usejunior/docx-mcp';
3
3
 
4
4
  runCli(process.argv).catch((err) => {
5
+ // A CliCommandFailure has already written its structured error to stderr;
6
+ // print only the summary line, never a stack trace.
7
+ const summaryOnly = err instanceof Error && err.name === 'CliCommandFailure';
5
8
  // eslint-disable-next-line no-console
6
- console.error(err);
7
- process.exit(1);
9
+ console.error(summaryOnly ? err.message : err);
10
+ // Set the exit code instead of calling process.exit(): on macOS, pipe-backed
11
+ // stdio is asynchronous and an immediate exit can truncate the structured
12
+ // error a caller is parsing from stderr.
13
+ process.exitCode = 1;
8
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usejunior/safe-docx",
3
- "version": "0.19.1",
3
+ "version": "0.21.2",
4
4
  "description": "Edit Word (.docx) and OpenDocument (.odt) files with tracked changes, redlines, and formatting preservation. Built for AI coding agents. Apache-2.0 licensed, 100% local processing.",
5
5
  "mcpName": "io.github.UseJunior/safe-docx",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "safedocx": "./bin/safe-docx.js"
26
26
  },
27
27
  "dependencies": {
28
- "@usejunior/docx-mcp": "^0.19.1"
28
+ "@usejunior/docx-mcp": "^0.21.2"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">=18.0.0"
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.UseJunior/safe-docx",
4
4
  "title": "Safe Docx",
5
5
  "description": "AI-native surgical editing of Word .docx and OpenDocument .odt files with formatting preservation",
6
- "version": "0.19.1",
6
+ "version": "0.21.2",
7
7
  "websiteUrl": "https://usejunior.com/developer-tools/safe-docx",
8
8
  "icons": [
9
9
  {
@@ -18,7 +18,7 @@
18
18
  {
19
19
  "registryType": "npm",
20
20
  "identifier": "@usejunior/safe-docx",
21
- "version": "0.19.1",
21
+ "version": "0.21.2",
22
22
  "transport": {
23
23
  "type": "stdio"
24
24
  },