adeu 3.2.0__tar.gz → 3.2.1__tar.gz
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.
- {adeu-3.2.0 → adeu-3.2.1}/PKG-INFO +11 -5
- {adeu-3.2.0 → adeu-3.2.1}/README.md +10 -4
- {adeu-3.2.0 → adeu-3.2.1}/pyproject.toml +1 -1
- {adeu-3.2.0 → adeu-3.2.1}/server.json +2 -2
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/mcp_components/_response_builders.py +1 -1
- adeu-3.2.1/src/adeu/mcp_components/build_info.json +1 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/mcp_components/tools/document.py +19 -15
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/mcp_components/tools/live_word.py +13 -1
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/models.py +21 -6
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/serve.py +20 -2
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_gemini_schema_compat.py +1 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_serve_daemon.py +59 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_tool_description_workflows.py +12 -0
- {adeu-3.2.0 → adeu-3.2.1}/uv.lock +1 -1
- adeu-3.2.0/src/adeu/mcp_components/build_info.json +0 -1
- {adeu-3.2.0 → adeu-3.2.1}/.gitignore +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/Dockerfile +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/LICENSE +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/abstract_xml.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/debug_rels.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/debug_structure.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/debug_styles.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/debug_xml.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/generate_goldens.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/golden_projection.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/inspect_test_docx.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/login_staging.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/reproduce_issue.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/test_numbered_list.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/scripts/verify_staging_polling.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/__init__.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/assets/adeu.svg +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/assets/logo.png +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/assets/marked.min.js +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/cli.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/compare.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/diff.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/disk_cache.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/domain.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/fields.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/ingest.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/markup.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/mcp_components/__init__.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/mcp_components/doc_cache.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/mcp_components/resources/markdown_ui.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/mcp_components/shared.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/mcp_components/tools/live_word_ops.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/mcp_components/tools/sanitize.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/outline.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/pagination.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/payloads.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/redline/comments.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/redline/engine.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/redline/gates.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/redline/mapper.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/sanitize/__init__.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/sanitize/core.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/sanitize/report.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/sanitize/transforms.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/server.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/templates/markdown_ui.html +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/text_revision.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/console.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/content_controls.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/docx.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/field_write.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/long_hex_number.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/opc.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/protection.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/safe_regex.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/schema_order.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/text.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/src/adeu/utils/xml_debug.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/__init__.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/cc_fixture.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/conftest.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/docx_fixtures.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/fixtures_synth.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/golden_manifest.txt +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/repro_golden.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/sdt_fixtures.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_atomic_batch_pipeline.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_author_impersonation_gate.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_batch_ergonomics_and_receipts.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_batch_reliability.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_batch_validation.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_anchor_chrome_protection.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_anchor_fabrication_refusal.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_checkboxes.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_fields_ledger.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_fields_surfaces.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_gate_surfaces.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_gates.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_projection_inline.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_protection_state.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_run_control_identity.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_set_field.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_span_control_identity.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cc_widening_walls.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_changes_ledger.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_clean_view.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cli_bug_repro.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cli_encoding.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cli_features.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cli_init.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_comment_list.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_comment_xml_structure.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_comments.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_comments_threading.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_compact_diff_json.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_content_control_classification.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_context_trimming.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_corpus_validation.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cross_platform_consistency.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_cross_platform_integrity.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_diff_logic.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_diff_subalignment_and_balance.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_disk_projection_cache.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_doc_cache.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_document_settings_warnings.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_domain_semantics.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_edit_report_index.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_explicit_salvage.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_failure_envelope.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_failure_recovery_protocol.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_fastmcp3_compat.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_file_hints_and_id_discovery.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_fixtures_synth.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_fixtures_verification.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_flat_opc_to_docx.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_formatting.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_fused_json_hint.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_fuzzy_matching.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_fuzzy_whitespace_context.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_guard_message.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_header_block_guard.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_ingest_comments.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_json_unicode.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_lazy_snapshot.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_libreoffice_probe_isolation.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_live_word.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_live_word_content_controls.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_live_word_dispatch.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_live_word_gate_agreement.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_live_word_para_id_signed_int32.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_live_word_structured_insertion.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_local_script_paths.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_manual_markup_mode.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_marker_boundary_insert.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_markup.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_markup_fixes.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_mcp_apply_text_revision.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_mcp_diff_output.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_mcp_reasoning_optional.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_modern_comments.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_multi_run_comment_coalescing.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_natural_diffs.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_nested_markdown.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_no_chrome.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_onestep_compare.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_ooxml_schema_compliance.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_opc_document_types.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_outline_fast_equivalence.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_page_ranges.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_pagination_scanner_equivalence.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_paragraph_split_reject_parity.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_projection_goldens.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_properties.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_property_invariants.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_pure_comment_disk.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_read_ergonomics.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_regressions.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_reject_and_nested_redline.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_report_minimal.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_accept_all_changes_leak.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_accept_all_table_row_loss.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_accept_data_loss.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_batch_5.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_benchmark_schema_failures.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_block_marker_paragraph_parity.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_boilerplate_structure.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_chg_id_coalescing.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_comment_fragment_reject.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_comment_reference_style.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_comment_threading_anchoring_typography.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_comments_cleanup.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_comments_namespace_fix.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_customxml_missing_part.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_feedback_layer.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_feedback_observations.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_foreign_comment_range_modify.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_formatting_bugs.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_fte_2026_07_16.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_fte_2026_07_16_run2.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_fuzzy_regex_timeout.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_heading_bug.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_heading_section_insert.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_id_pool_renumber.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_indexed_edits.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_insertion_anchor.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_invisible_replies.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_issue157_tab_preservation.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_issue158_paragraph_delete_reject.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_issue159_comment_timestamp.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_issue23.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_issue_114_cross_part_revisions.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_list_matching.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_live_run_fragmentation.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_markdown_boundary.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_markdown_newline.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_marker_preserving_edits.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_multilevel_lists.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_multirun_deletion_ids.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_nested_corruption.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_nested_insertions.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_nested_table_row_cell_leakage.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_para_id_signed_int32.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_projection_parity_gaps.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_2026_07_18.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_customer_assessment_2026_07_23.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_issues_v2.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_mcp_2026_07_23_engine.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_mcp_2026_07_23_mcp.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_mcp_2026_07_23_rendering.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_mcp_2026_07_23_reports.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_mcp_issues_2026_07_20.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report_cli_2026_07_22.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report_v2.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report_v3.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report_v4.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report_v5.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report_v6.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report_v7.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report_v8.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_report_v9.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_qa_round3_2026_07_24.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_raw_ooxml_in_projection.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_redline_replay_wrong_document.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_rejected_batch_action_leak.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_report_boundary_failures.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_resolved_comment_marker_parity.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_round16_bugs.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_sdt_table_row_cell_invisibility.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_stranded_comment_anchor.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_surgical_word_diff.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_table_regressions.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_repro_v4_report.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_response_budget_guard.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_roundtrip.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_run_fusion_equivalence.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_safety.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_sanitize.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_search_paging.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_search_write_engine.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_server.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_source_encoding.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_stringified_json_search_page.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_structural_edits.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_style_cache_optimization.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_styling_and_lists.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_substitution_cluster.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_table_creation.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_tables.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_terse_errors.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_twin_projection_parity.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_whole_paragraph_delete_reject.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_workflow_blocking.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/test_xml_debug.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/utils.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/verify_sanitized.py +0 -0
- {adeu-3.2.0 → adeu-3.2.1}/tests/word_com.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: adeu
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.1
|
|
4
4
|
Summary: Automated DOCX Redlining Engine
|
|
5
5
|
Project-URL: Homepage, https://adeu.ai
|
|
6
6
|
Project-URL: Repository, https://github.com/dealfluence/adeu
|
|
@@ -93,11 +93,14 @@ uvx adeu extract --live
|
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
### Diffing
|
|
96
|
-
Generate a word-level patch diff between two document versions.
|
|
96
|
+
Generate a word-level patch diff or a one-step redlined `.docx` comparison between two document versions.
|
|
97
97
|
```bash
|
|
98
|
-
# Compare two DOCX files
|
|
98
|
+
# Compare two DOCX files (@@ Word Patch @@ output)
|
|
99
99
|
uvx adeu diff original.docx modified.docx
|
|
100
100
|
|
|
101
|
+
# Write the comparison directly as a tracked-changes .docx in one step
|
|
102
|
+
uvx adeu diff original.docx modified.docx -o redlined.docx --author "AI Reviewer"
|
|
103
|
+
|
|
101
104
|
# Output raw JSON edits for programmatic use
|
|
102
105
|
uvx adeu diff original.docx modified.docx --json
|
|
103
106
|
```
|
|
@@ -108,6 +111,9 @@ Apply a JSON array of `DocumentChange` objects (or a modified markdown file) bac
|
|
|
108
111
|
# Apply a JSON batch of edits to a file
|
|
109
112
|
uvx adeu apply original.docx edits.json --author "AI Reviewer" -o redlined.docx
|
|
110
113
|
|
|
114
|
+
# Manual / inline formatting markup (strikethrough + bold red underline instead of Track Changes)
|
|
115
|
+
uvx adeu apply original.docx edits.json --author "AI Reviewer" --manual -o manual.docx
|
|
116
|
+
|
|
111
117
|
# Emit the batch result as machine-readable JSON on stdout (for agents/scripts)
|
|
112
118
|
uvx adeu apply original.docx edits.json --json
|
|
113
119
|
|
|
@@ -173,14 +179,14 @@ The I/O contract (see `docs/cli-agent-spec.md` for the full specification):
|
|
|
173
179
|
- `0` = success (in `--partial` mode, at least one edit applied; check `edits_skipped` in JSON stats to detect skipped edits)
|
|
174
180
|
- `1` = failure (in atomic mode, if any edit fails; in `--partial` mode, if all edits fail)
|
|
175
181
|
|
|
176
|
-
`adeu apply --json` prints the engine's raw stats object — `edits_applied`, `edits_skipped`, per-edit reports with CriticMarkup previews, plus `output_path` — and suppresses the human-readable logs. A batch that fails validation prints `{"error": "batch_validation_failed", "errors": [...]}` and exits 1.
|
|
182
|
+
`adeu apply --json` prints the engine's raw stats object — `edits_applied`, `edits_skipped`, per-edit reports with CriticMarkup previews, plus `output_path` — and suppresses the human-readable logs. A batch that fails validation prints `{"error": "batch_validation_failed", "failed": [{"index", "reason"}, ...], "errors": [...]}` and exits 1.
|
|
177
183
|
|
|
178
184
|
## The Python SDK
|
|
179
185
|
|
|
180
186
|
The SDK allows you to embed Adeu's Redline Engine directly into your own Python applications.
|
|
181
187
|
|
|
182
188
|
### Applying Tracked Changes
|
|
183
|
-
The engine processes a flat list of `DocumentChange` objects (`ModifyText`, `AcceptChange`, `RejectChange`, `ReplyComment`, `InsertTableRow`, `DeleteTableRow`).
|
|
189
|
+
The engine processes a flat list of `DocumentChange` objects (`ModifyText`, `SetField`, `AcceptChange`, `RejectChange`, `ReplyComment`, `InsertTableRow`, `DeleteTableRow`).
|
|
184
190
|
|
|
185
191
|
```python
|
|
186
192
|
from io import BytesIO
|
|
@@ -43,11 +43,14 @@ uvx adeu extract --live
|
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### Diffing
|
|
46
|
-
Generate a word-level patch diff between two document versions.
|
|
46
|
+
Generate a word-level patch diff or a one-step redlined `.docx` comparison between two document versions.
|
|
47
47
|
```bash
|
|
48
|
-
# Compare two DOCX files
|
|
48
|
+
# Compare two DOCX files (@@ Word Patch @@ output)
|
|
49
49
|
uvx adeu diff original.docx modified.docx
|
|
50
50
|
|
|
51
|
+
# Write the comparison directly as a tracked-changes .docx in one step
|
|
52
|
+
uvx adeu diff original.docx modified.docx -o redlined.docx --author "AI Reviewer"
|
|
53
|
+
|
|
51
54
|
# Output raw JSON edits for programmatic use
|
|
52
55
|
uvx adeu diff original.docx modified.docx --json
|
|
53
56
|
```
|
|
@@ -58,6 +61,9 @@ Apply a JSON array of `DocumentChange` objects (or a modified markdown file) bac
|
|
|
58
61
|
# Apply a JSON batch of edits to a file
|
|
59
62
|
uvx adeu apply original.docx edits.json --author "AI Reviewer" -o redlined.docx
|
|
60
63
|
|
|
64
|
+
# Manual / inline formatting markup (strikethrough + bold red underline instead of Track Changes)
|
|
65
|
+
uvx adeu apply original.docx edits.json --author "AI Reviewer" --manual -o manual.docx
|
|
66
|
+
|
|
61
67
|
# Emit the batch result as machine-readable JSON on stdout (for agents/scripts)
|
|
62
68
|
uvx adeu apply original.docx edits.json --json
|
|
63
69
|
|
|
@@ -123,14 +129,14 @@ The I/O contract (see `docs/cli-agent-spec.md` for the full specification):
|
|
|
123
129
|
- `0` = success (in `--partial` mode, at least one edit applied; check `edits_skipped` in JSON stats to detect skipped edits)
|
|
124
130
|
- `1` = failure (in atomic mode, if any edit fails; in `--partial` mode, if all edits fail)
|
|
125
131
|
|
|
126
|
-
`adeu apply --json` prints the engine's raw stats object — `edits_applied`, `edits_skipped`, per-edit reports with CriticMarkup previews, plus `output_path` — and suppresses the human-readable logs. A batch that fails validation prints `{"error": "batch_validation_failed", "errors": [...]}` and exits 1.
|
|
132
|
+
`adeu apply --json` prints the engine's raw stats object — `edits_applied`, `edits_skipped`, per-edit reports with CriticMarkup previews, plus `output_path` — and suppresses the human-readable logs. A batch that fails validation prints `{"error": "batch_validation_failed", "failed": [{"index", "reason"}, ...], "errors": [...]}` and exits 1.
|
|
127
133
|
|
|
128
134
|
## The Python SDK
|
|
129
135
|
|
|
130
136
|
The SDK allows you to embed Adeu's Redline Engine directly into your own Python applications.
|
|
131
137
|
|
|
132
138
|
### Applying Tracked Changes
|
|
133
|
-
The engine processes a flat list of `DocumentChange` objects (`ModifyText`, `AcceptChange`, `RejectChange`, `ReplyComment`, `InsertTableRow`, `DeleteTableRow`).
|
|
139
|
+
The engine processes a flat list of `DocumentChange` objects (`ModifyText`, `SetField`, `AcceptChange`, `RejectChange`, `ReplyComment`, `InsertTableRow`, `DeleteTableRow`).
|
|
134
140
|
|
|
135
141
|
```python
|
|
136
142
|
from io import BytesIO
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/dealfluence/adeu",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "3.2.
|
|
9
|
+
"version": "3.2.1",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@adeu/mcp-server",
|
|
14
|
-
"version": "3.2.
|
|
14
|
+
"version": "3.2.1",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
}
|
|
@@ -714,7 +714,7 @@ def build_search_response(
|
|
|
714
714
|
search_query: str,
|
|
715
715
|
search_regex: bool,
|
|
716
716
|
search_case_sensitive: bool,
|
|
717
|
-
page: int | str | None,
|
|
717
|
+
page: int | str | tuple[int, int] | None,
|
|
718
718
|
file_path: str,
|
|
719
719
|
is_cli: bool = False,
|
|
720
720
|
pagination_result: "PaginationResult | None" = None,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_sha": "b7aad81", "build_timestamp": "20261110115426"}
|
|
@@ -1381,11 +1381,14 @@ READ_DOCX_WIN32_EXTRA = (
|
|
|
1381
1381
|
|
|
1382
1382
|
READ_DOCX_TAIL = (
|
|
1383
1383
|
"Modes:\n"
|
|
1384
|
-
"- 'full' (default): paginated body content.
|
|
1384
|
+
"- 'full' (default): paginated body content. `page`: 1-indexed int, 'N-M' range (up to 8 pages; "
|
|
1385
|
+
"also filters `search_query`), or 'all' (serves first pages + L1 outline when over budget unless force=true).\n"
|
|
1385
1386
|
"- 'outline': heading map only — start here for large docs to plan targeted reads. "
|
|
1386
1387
|
"Defaults to L1-L2 headings; pass outline_max_level=3-6 to see deeper structure.\n"
|
|
1387
1388
|
"- 'appendix': defined terms, anchors, and cross-reference targets. "
|
|
1388
|
-
"Consult before editing legal/technical docs to avoid breaking references
|
|
1389
|
+
"Consult before editing legal/technical docs to avoid breaking references.\n"
|
|
1390
|
+
"- 'changes': compact ledger of Tracked Changes (`Chg:N`) and Comments (`Com:N`).\n"
|
|
1391
|
+
"- 'fields': ledger of form fields (content controls) with `CC:<N>` IDs (paginate via `fields_offset`)."
|
|
1389
1392
|
)
|
|
1390
1393
|
|
|
1391
1394
|
PROCESS_BATCH_COMMON_DESC = (
|
|
@@ -1431,20 +1434,21 @@ PROCESS_BATCH_WIN32_EXTRA = (
|
|
|
1431
1434
|
"Leave original_docx_path empty to edit whatever document is currently active.\n\n"
|
|
1432
1435
|
)
|
|
1433
1436
|
PROCESS_BATCH_OPERATIONS_DESC = (
|
|
1434
|
-
"
|
|
1437
|
+
"Changes by `type`:\n"
|
|
1435
1438
|
"1. 'modify': Search-and-replace. `target_text` must uniquely match — add "
|
|
1436
|
-
"context
|
|
1437
|
-
"
|
|
1438
|
-
"
|
|
1439
|
-
"
|
|
1440
|
-
"
|
|
1441
|
-
|
|
1442
|
-
"
|
|
1443
|
-
"
|
|
1444
|
-
"
|
|
1445
|
-
"
|
|
1446
|
-
"
|
|
1447
|
-
"
|
|
1439
|
+
"context, or set `match_mode` ('first'|'all') or `regex=true`. Empty table "
|
|
1440
|
+
"cells emit `{#cell:<id>}` — pass that token as `target_text` to fill one. "
|
|
1441
|
+
"`new_text` supports '#'–'######' headings, '**bold**', '_italic_', '\\n\\n' "
|
|
1442
|
+
"paragraph split, and pipe tables (`| H1 | H2 |\\n|---|---|\\n| A | B |`). "
|
|
1443
|
+
"Empty `new_text` deletes. Never write CriticMarkup ({++, {--, {>>) — use "
|
|
1444
|
+
'`comment` (string or `[{"text": ..., "author": ...}]`).\n'
|
|
1445
|
+
"2. 'accept' / 'reject': Finalize or revert by `target_id` ('Chg:12'); add "
|
|
1446
|
+
"`part` ('word/header1.xml') when the same id exists in several parts.\n"
|
|
1447
|
+
"3. 'reply': Reply to `target_id` ('Com:5') with `text`.\n"
|
|
1448
|
+
"4. 'set_field': Fill a content control — `field` is 'CC:<N>', tag or alias, "
|
|
1449
|
+
"`value` the text (checkboxes true/false, dates YYYY-MM-DD, dropdowns a listed "
|
|
1450
|
+
"option; list via `read_docx` mode='fields'). Data-bound controls update their "
|
|
1451
|
+
"store; locked/protected controls refuse and name the override.\n"
|
|
1448
1452
|
"5. 'insert_row' / 'delete_row': Table edits. Disk mode only — not supported on Live Word canvas.\n\n"
|
|
1449
1453
|
"ID VOLATILITY: 'Chg:N'/'Com:N' shift between document states — call "
|
|
1450
1454
|
"`read_docx` before any accept/reject/reply; never reuse earlier ids.\n\n"
|
|
@@ -382,13 +382,25 @@ if sys.platform == "win32":
|
|
|
382
382
|
from adeu.mcp_components._response_builders import (
|
|
383
383
|
build_search_response,
|
|
384
384
|
)
|
|
385
|
+
from adeu.pagination import parse_page_arg as _parse_search_page
|
|
386
|
+
|
|
387
|
+
search_page: int | str | tuple[int, int] | None = page
|
|
388
|
+
if isinstance(page, str):
|
|
389
|
+
s_clean = page.strip().strip("'\"")
|
|
390
|
+
if "-" in s_clean:
|
|
391
|
+
try:
|
|
392
|
+
p_kind, p_val = _parse_search_page(s_clean)
|
|
393
|
+
if p_kind == "range":
|
|
394
|
+
search_page = p_val
|
|
395
|
+
except ValueError:
|
|
396
|
+
pass
|
|
385
397
|
|
|
386
398
|
res = build_search_response(
|
|
387
399
|
final_text,
|
|
388
400
|
search_query,
|
|
389
401
|
search_regex,
|
|
390
402
|
search_case_sensitive,
|
|
391
|
-
|
|
403
|
+
search_page,
|
|
392
404
|
actual_path,
|
|
393
405
|
max_matches=max_matches,
|
|
394
406
|
match_offset=match_offset,
|
|
@@ -199,8 +199,10 @@ class ModifyText(_EditState):
|
|
|
199
199
|
target_text: str = Field(
|
|
200
200
|
...,
|
|
201
201
|
description=(
|
|
202
|
-
"Exact text to find. If the text appears multiple times (e.g. 'Fee'), include surrounding context
|
|
203
|
-
"
|
|
202
|
+
"Exact text to find. If the text appears multiple times (e.g. 'Fee'), include surrounding context, "
|
|
203
|
+
"or set match_mode='first'/'all'. Empty table cells emit `{#cell:<id>}` — pass that token as "
|
|
204
|
+
"target_text to fill one. You can include CriticMarkup {==...==} in the target to match text inside "
|
|
205
|
+
"existing markup."
|
|
204
206
|
),
|
|
205
207
|
)
|
|
206
208
|
|
|
@@ -208,7 +210,8 @@ class ModifyText(_EditState):
|
|
|
208
210
|
...,
|
|
209
211
|
description=(
|
|
210
212
|
"The desired text replacement. You may use Markdown formatting: "
|
|
211
|
-
"'# Title' for headers, '**bold**' for bold, '_italic_' for italic
|
|
213
|
+
"'# Title' for headers, '**bold**' for bold, '_italic_' for italic, '\\n\\n' for paragraph breaks, "
|
|
214
|
+
"and pipe tables (`| Col 1 | Col 2 |\\n| --- | --- |\\n| A | B |`) to insert native Word tables. "
|
|
212
215
|
"Do NOT manually write CriticMarkup tags ({++...++}, {--...--}, {>>...<<}, {==...==}). "
|
|
213
216
|
"To add a comment, use the 'comment' parameter instead."
|
|
214
217
|
),
|
|
@@ -363,15 +366,18 @@ class FlatDocumentChange(BaseModel):
|
|
|
363
366
|
target_text: Optional[str] = Field(
|
|
364
367
|
None,
|
|
365
368
|
description=(
|
|
366
|
-
"Exact text to find. If the text appears multiple times (e.g. 'Fee'), include surrounding context
|
|
367
|
-
"
|
|
369
|
+
"Exact text to find. If the text appears multiple times (e.g. 'Fee'), include surrounding context, "
|
|
370
|
+
"or set match_mode='first'/'all'. Empty table cells emit `{#cell:<id>}` — pass that token as "
|
|
371
|
+
"target_text to fill one. You can include CriticMarkup {==...==} in the target to match text inside "
|
|
372
|
+
"existing markup."
|
|
368
373
|
),
|
|
369
374
|
)
|
|
370
375
|
new_text: Optional[str] = Field(
|
|
371
376
|
None,
|
|
372
377
|
description=(
|
|
373
378
|
"The desired text replacement. You may use Markdown formatting: "
|
|
374
|
-
"'# Title' for headers, '**bold**' for bold, '_italic_' for italic
|
|
379
|
+
"'# Title' for headers, '**bold**' for bold, '_italic_' for italic, '\\n\\n' for paragraph breaks, "
|
|
380
|
+
"and pipe tables (`| Col 1 | Col 2 |\\n| --- | --- |\\n| A | B |`) to insert native Word tables. "
|
|
375
381
|
"Do NOT manually write CriticMarkup tags ({++...++}, {--...--}, {>>...<<}, {==...==}). "
|
|
376
382
|
"To add a comment, use the 'comment' parameter instead."
|
|
377
383
|
),
|
|
@@ -394,6 +400,15 @@ class FlatDocumentChange(BaseModel):
|
|
|
394
400
|
None,
|
|
395
401
|
description="The full ID string from the document text (e.g. 'Chg:12', 'Com:5').",
|
|
396
402
|
)
|
|
403
|
+
part: Optional[str] = Field(
|
|
404
|
+
None,
|
|
405
|
+
description=(
|
|
406
|
+
"accept / reject only: OPC part holding the change, e.g. 'word/header1.xml'. "
|
|
407
|
+
"Revision ids are numbered per part, so the same Chg:N can name unrelated changes in "
|
|
408
|
+
"different parts; a bare ambiguous id is refused with an error listing the parts, and "
|
|
409
|
+
"this field picks one. Omit whenever the id is unique in the package."
|
|
410
|
+
),
|
|
411
|
+
)
|
|
397
412
|
text: Optional[str] = Field(
|
|
398
413
|
None,
|
|
399
414
|
description="The content of the reply body.",
|
|
@@ -139,12 +139,22 @@ def _handle_extract_command(req: Dict[str, Any]) -> None:
|
|
|
139
139
|
|
|
140
140
|
if search_query:
|
|
141
141
|
text, _ = doc_cache.get_pagination(entry, clean_view=clean_view)
|
|
142
|
+
search_page: Any = page_arg
|
|
143
|
+
if isinstance(page_arg, str):
|
|
144
|
+
s_clean = page_arg.strip().strip("'\"")
|
|
145
|
+
if "-" in s_clean:
|
|
146
|
+
try:
|
|
147
|
+
p_kind, p_val = parse_page_arg(s_clean)
|
|
148
|
+
if p_kind == "range":
|
|
149
|
+
search_page = p_val
|
|
150
|
+
except ValueError:
|
|
151
|
+
pass
|
|
142
152
|
res = build_search_response(
|
|
143
153
|
text,
|
|
144
154
|
search_query,
|
|
145
155
|
bool(req.get("search_regex", False)),
|
|
146
156
|
not bool(req.get("search_case_insensitive", False)),
|
|
147
|
-
|
|
157
|
+
search_page,
|
|
148
158
|
str(path),
|
|
149
159
|
is_cli=True,
|
|
150
160
|
max_matches=int(req.get("max_matches", 20)),
|
|
@@ -297,6 +307,10 @@ def _handle_apply_command(req: Dict[str, Any]) -> None:
|
|
|
297
307
|
author = req.get("author")
|
|
298
308
|
partial = bool(req.get("partial", False))
|
|
299
309
|
terse_errors = bool(req.get("terse_errors", False))
|
|
310
|
+
markup_mode = req.get("markup_mode", "track_changes")
|
|
311
|
+
if markup_mode not in ("track_changes", "manual"):
|
|
312
|
+
_emit_error("invalid_input", f"Invalid markup_mode: '{markup_mode}'. Expected 'track_changes' or 'manual'.")
|
|
313
|
+
return
|
|
300
314
|
# CC-4 write-gate overrides (spec-gates.md §1), default off like every
|
|
301
315
|
# other surface.
|
|
302
316
|
gate_overrides = {
|
|
@@ -331,7 +345,11 @@ def _handle_apply_command(req: Dict[str, Any]) -> None:
|
|
|
331
345
|
return
|
|
332
346
|
|
|
333
347
|
engine = _open_redline_engine_or_exit(
|
|
334
|
-
path,
|
|
348
|
+
path,
|
|
349
|
+
author=author,
|
|
350
|
+
terse_errors=terse_errors,
|
|
351
|
+
gate_overrides=gate_overrides,
|
|
352
|
+
markup_mode=markup_mode,
|
|
335
353
|
)
|
|
336
354
|
stats = engine.process_batch(changes, partial=partial)
|
|
337
355
|
|
|
@@ -459,3 +459,62 @@ def test_serve_outline_warm_read_does_not_reparse_the_docx(monkeypatch, capsys):
|
|
|
459
459
|
# nodes itself. Rendering the outline consults the cached nodes only, so
|
|
460
460
|
# neither the cold nor the warm read may open the DOCX again.
|
|
461
461
|
assert parses == [str(fixture_path.resolve())]
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
def test_serve_apply_manual_markup_mode(tmp_path, monkeypatch, capsys):
|
|
465
|
+
import zipfile
|
|
466
|
+
|
|
467
|
+
fixture_path = get_fixture_path("golden.docx")
|
|
468
|
+
out_docx = tmp_path / "manual.docx"
|
|
469
|
+
|
|
470
|
+
lines = [
|
|
471
|
+
json.dumps(
|
|
472
|
+
{
|
|
473
|
+
"command": "apply",
|
|
474
|
+
"file_path": str(fixture_path),
|
|
475
|
+
"changes": [{"type": "modify", "target_text": "document", "new_text": "agreement", "comment": "Why."}],
|
|
476
|
+
"markup_mode": "manual",
|
|
477
|
+
"output": str(out_docx),
|
|
478
|
+
}
|
|
479
|
+
),
|
|
480
|
+
json.dumps({"command": "exit"}),
|
|
481
|
+
]
|
|
482
|
+
monkeypatch.setattr("sys.stdin", io.StringIO("\n".join(lines) + "\n"))
|
|
483
|
+
|
|
484
|
+
code = run_serve()
|
|
485
|
+
assert code == 0
|
|
486
|
+
|
|
487
|
+
captured = capsys.readouterr().out.strip().splitlines()
|
|
488
|
+
assert len(captured) == 1
|
|
489
|
+
res = json.loads(captured[0])
|
|
490
|
+
assert res.get("edits_applied") == 1
|
|
491
|
+
assert out_docx.exists()
|
|
492
|
+
|
|
493
|
+
body = zipfile.ZipFile(out_docx).read("word/document.xml").decode("utf-8")
|
|
494
|
+
assert "<w:strike/>" in body
|
|
495
|
+
assert "agreement" in body
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
def test_serve_extract_search_with_page_range(monkeypatch, capsys):
|
|
499
|
+
fixture_path = get_fixture_path("golden.docx")
|
|
500
|
+
lines = [
|
|
501
|
+
json.dumps(
|
|
502
|
+
{
|
|
503
|
+
"command": "extract",
|
|
504
|
+
"file_path": str(fixture_path),
|
|
505
|
+
"search_query": "the",
|
|
506
|
+
"page": "1-2",
|
|
507
|
+
}
|
|
508
|
+
),
|
|
509
|
+
json.dumps({"command": "exit"}),
|
|
510
|
+
]
|
|
511
|
+
monkeypatch.setattr("sys.stdin", io.StringIO("\n".join(lines) + "\n"))
|
|
512
|
+
|
|
513
|
+
code = run_serve()
|
|
514
|
+
assert code == 0
|
|
515
|
+
|
|
516
|
+
captured = capsys.readouterr().out.strip().splitlines()
|
|
517
|
+
assert len(captured) == 1
|
|
518
|
+
res = json.loads(captured[0])
|
|
519
|
+
assert res.get("status") != "error", res
|
|
520
|
+
assert "Search Results" in res.get("markdown", "")
|
|
@@ -29,4 +29,16 @@ def test_batch_tool_teaches_manual_markup_and_states_the_real_partial_default():
|
|
|
29
29
|
assert tool.parameters["properties"]["partial"]["default"] is True
|
|
30
30
|
assert "transactionally" not in desc, "the description contradicts the salvage default"
|
|
31
31
|
assert "partial=false" in desc
|
|
32
|
+
assert "match_mode" in desc
|
|
33
|
+
assert "{#cell:" in desc
|
|
34
|
+
assert "pipe tables" in desc
|
|
35
|
+
assert len(desc) < CLIENT_DESCRIPTION_BUDGET
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def test_read_docx_teaches_fields_changes_and_page_ranges():
|
|
39
|
+
tool = _tools()["read_docx"]
|
|
40
|
+
desc = tool.description or ""
|
|
41
|
+
assert "mode='fields'" in desc or "'fields'" in desc
|
|
42
|
+
assert "'changes'" in desc
|
|
43
|
+
assert "N-M" in desc
|
|
32
44
|
assert len(desc) < CLIENT_DESCRIPTION_BUDGET
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_sha": "fb0ed90", "build_timestamp": "20261110091130"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|