@attentionform/astra 0.2.0 → 0.3.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/LICENSE +120 -52
- package/README.md +1 -1
- package/dist/cli.js +3655 -2021
- package/dist/packages/cli/src/cli.d.ts +1 -1
- package/package.json +3 -3
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Commands (all fail-closed — any operational failure exits non-zero):
|
|
6
6
|
* inspect <docx> [--fidelity compact|standard|full] [--section <id>] [--max-text <n>] [--width <n>] [--wrap] [--visual] [--format png|jpeg] [--max-ratio <n>] [--max-uncompressed-bytes <n>]
|
|
7
7
|
* validate <docx> [--max-errors <n>] [--max-ratio <n>] [--max-uncompressed-bytes <n>] [--style-guide <name|path>]
|
|
8
|
-
* sanitize <in.docx> <out.docx> [--client-safe] [--redact-pii] [--zero-retention] [--replacement-author <name>] [--accept-all-revisions] [--strip-comments] [--metadata-only] [--force]
|
|
8
|
+
* sanitize <in.docx> <out.docx> [--client-safe] [--redact-pii] [--zero-retention] [--replacement-author <name>] [--accept-all-revisions] [--strip-comments] [--metadata-only] [--keep-revisions] [--keep-comments] [--force]
|
|
9
9
|
* (bare sanitize = metadata preset: zero-retention + accept-all-revisions + strip-comments + neutral author, body text kept; --redact-pii/--client-safe also redact body PII)
|
|
10
10
|
* batch <docx> [<ops.json|->] [--target-text <needle> --append <text>] [--append <text>] [--out <docx>] [--sequential|--no-sequential] [--no-validate] [--strict] [--no-history] [--schema] [--max-ratio <n>] [--max-uncompressed-bytes <n>] [--dry-run] [--backup[=<path>]] [--matrix <vars.csv>] [--reproducible|--no-reproducible] [--stream [--on-error abort|continue] [--max-errors <n>]] [--style-guide <name|path>]
|
|
11
11
|
* (ops path `-` reads ops JSON from stdin; see `batch --help`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attentionform/astra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Command-line tool for OOXML (.docx) document engineering",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"types": "dist/packages/cli/src/cli.d.ts",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"adm-zip-gate": "node ../../scripts/check-adm-zip-imports.mjs"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@attentionform/astra-engine": "^0.
|
|
47
|
-
"@attentionform/ooxml-validator": "^0.
|
|
46
|
+
"@attentionform/astra-engine": "^0.3.0",
|
|
47
|
+
"@attentionform/ooxml-validator": "^0.3.0",
|
|
48
48
|
"@xmldom/xmldom": "0.8.15",
|
|
49
49
|
"adm-zip": "0.6.1",
|
|
50
50
|
"isomorphic-git": "^1.25.0",
|