mlx-bun library API
    Preparing search index...
    • Fold ONE chunk into ONE existing section of an article, end to end: assign the chunk's [^N] → draft the integrated body (leak/uncited → retry → NO-OP) → swap ONLY that section's bytes → append the generated [^N]: def → NORMALIZE → gate. Returns the patched article (or null when the gate vetoes a weak pass). Pure with respect to disk — the caller persists.

      Parameters

      Returns Promise<PatchOutcome>