ooxml-integrity

v0.10.0
io.github.Dmitry-Kov/ooxml-integrity Checked 18 hours ago Published 22 days ago

Checks .docx and .pptx files after automated editing for lost comments, tracked changes and notes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check Check a .docx or .pptx

Self-check one .docx or .pptx: comment anchors, footnotes, styles, numbering, relationships and tracked-change markup in a document; text that overflows its box and shapes off the slide in a deck. Same as `ooxml-integrity check PATH --json --coverage`. Without the original it cannot see what an edit removed, such as a deleted comment: use compare when the original is available. Returns a one-line verdict, then the JSON report; exit_code 1 means findings at or above fail-on.

ParameterTypeDescription
path *stringpath on this machine; absolute, or relative to the server's working directory. URLs are rejected

compare Check an edited .docx against its original

Everything check does on the edited file, plus what the edit lost relative to the original: comments, tracked insertions and deletions, footnotes and endnotes, headers and footers, text. Same as `ooxml-integrity check EDITED --against SOURCE --json --coverage`. For a .pptx only the layout checks run and the comparison is reported as not performed (FID000). If the user asked for a change that removes something, such as accepting or rejecting a tracked change or rewriting a header untracked, declare it in expect: a matching finding is reported as expected instead of failing, and an expectation n…

ParameterTypeDescription
edited *stringthe edited copy; path on this machine; absolute, or relative to the server's working directory. URLs are rejected
source *stringthe original document; path on this machine; absolute, or relative to the server's working directory. URLs are rejected
expectarraychanges the edit was asked to make, as [[expect]] entries in docs/configuration.md, without path
introducedbooleantrue reports only what the edit introduced: a finding the original already has, such as a comment an earlier tool orphaned, is listed as suppressed instead of failing. Lost content (FID) and anything…