Skip to Content
EditorData Model

Data Model

Rosetta uses a token-based document model on top of Lexical.

Core Entities

  • Document blocks and inline marks
  • Pending edit objects from agent tools
  • Template anchors and locked regions

Pending Edit Shape

interface PendingEdit { id: string; type: "insert" | "replace" | "delete"; start: number; end: number; original: string; replacement: string; reasoning: string; agent: string; }

See the full editor overview for orchestration and review flow.

Last updated on