MCPcopy
hub / github.com/Open-Legal-Products/mike / PlannedChange

Interface PlannedChange

backend/src/lib/docxTrackedChanges.ts:280–292  ·  view source on GitHub ↗

* A single logical change. Spans a contiguous [start, end) character range in * the paragraph text (may be empty for a pure insert) and may carry an * inserted string appended at `start`.

Source from the content-addressed store, hash-verified

278 * inserted string appended at `start`.
279 */
280interface PlannedChange {
281 editIndex: number; // source edit index
282 deleteStart: number; // paragraph text offset (inclusive)
283 deleteEnd: number; // paragraph text offset (exclusive); may equal start
284 deletedText: string; // substring of paraText in [start, end)
285 insertedText: string; // may be empty
286 contextBefore: string;
287 contextAfter: string;
288 reason?: string;
289 changeId: string; // logical id (not the w:id)
290 delWId?: string; // w:id of w:del wrapper (if deletedText non-empty)
291 insWId?: string; // w:id of w:ins wrapper (if insertedText non-empty)
292}
293
294/**
295 * Collapse a `fast-diff` result into a minimal `{deletedText, insertedText}`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…