1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// SPDX-FileCopyrightText: 2026 Jandira Technologies, LLC
//
// SPDX-License-Identifier: Apache-2.0
//! # jubarte-edit
//!
//! The edit product of the jubarte engine: `edit::apply_plan` /
//! `apply_plan_json` write an edit plan as tracked changes (rewrite,
//! insert, tables, lists, run formatting, footnotes, images, page setup,
//! content controls, watermark, redact, settings, field updates),
//! `text_diff` renders text diffs as the agent view prints them,
//! `expect` checks plans against their schema, `capabilities` names what
//! the bindings expose, and `publication` stages host filesystem output.
//! The composed `markdown` module adds the patch, redline and unified
//! views to the markdown crate's reader and writer.
//!
//! # Example
//!
//! ```rust,no_run
//! use jubarte_edit::edit::apply_plan_json;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let source = std::fs::read("contract.docx")?;
//! // Paragraph ids (`p12`) are the ones `jubarte read contract.docx` prints.
//! let plan = r#"{
//! "schema_version": 1,
//! "author": "Reviewer",
//! "operations": [{
//! "id": "term",
//! "kind": "replace",
//! "paragraph": "p12",
//! "find": "two years",
//! "replacement": "three years"
//! }]
//! }"#;
//! let result = apply_plan_json(&source, plan)?;
//! std::fs::write("contract_redline.docx", &result.redline)?;
//! std::fs::write("contract_clean.docx", &result.clean)?;
//! Ok(())
//! }
//! ```
// A5 shims: every layer below under the names the moved code uses.
pub use fields;
pub use ;
pub use ;
pub use ooxml;
pub use ;
pub use ;
pub use ;
/// What the bindings expose, feature by feature.
/// Tracked-change editing: plans in, redlines and clean copies out.
/// The `--expect` plan checker.
/// Host filesystem publication, capability-confined and staged.
/// Host filesystem publication is unavailable to browser/WASM byte APIs.
/// Stable result codes the bindings print.
/// Text diff views (agent view and CriticMarkup).