Overview
The delta system supports:- Tracking Sessions: Start and stop change recording
- Delta Export: Export captured changes as JSON or binary format
- Delta Preview: Preview what changes would be applied
- Delta Apply: Apply changes to a document with conflict detection
- Session Management: List and manage tracking sessions
Starting and Stopping Tracking
Cancelling a Session
If you want to discard a tracking session without finalizing it:Exporting Deltas
After stopping a tracking session, export the captured changes:Previewing and Applying Deltas
Preview Changes
Before applying a delta, preview what would change:Apply Changes
Import a Delta
Import a previously exported delta back into a document:Managing Sessions
API Reference
DeltaAccessor Methods
| Method (Python) | Method (TypeScript) | Description |
|---|---|---|
start_tracking(username, comment) | startTracking(username, comment) | Start a tracking session |
stop_tracking() | stopTracking() | Stop and finalize the session |
cancel_tracking() | cancelTracking() | Discard the session |
get_active_session() | getActiveSession() | Get the current session |
get_status() | getStatus() | Get tracking status |
export_json() | exportJson() | Export delta as JSON |
export_bytes() | exportBytes() | Export delta as binary |
import_delta(bytes) | importDelta(bytes) | Import a delta |
apply(bytes, options) | apply(bytes, options) | Apply a delta |
preview(bytes) | preview(bytes) | Preview a delta |
list_sessions(filter) | listSessions(filter) | List tracking sessions |
Apply Options
| Option | Type | Description |
|---|---|---|
stopOnConflict | boolean | Stop applying on first conflict |
skipMissingRefs | boolean | Skip operations referencing missing entities |
createAuditTrail | boolean | Record applied changes in the audit trail |
actorUri | string | URI identifying who applied the changes |
comment | string | Description of the applied changes |
