Skip to main content

Module diff

Module diff 

Source
Expand description

Phase 8.1 — minimal schema-diff for the AI update flow.

Used ONLY by the CLI to render a human-readable change-list before the operator confirms a write. Intentionally small: model + field adds / removes, plus a flag when a field gains or loses a Relation. No deep structural diff (type changes, nullability flips, rename detection) — keep the surface narrow so the operator can read the whole thing in one screen.

Enums§

Change
One human-readable change line between two schemas. Variant order is the print order: model adds first, then per-model field churn, then model removes (least surprising scan).

Functions§

diff
Compute the change-list between two schemas. Order:
render
Pretty-print a change list to a single string. Empty list yields the literal string "(no changes)" so the CLI can show something rather than printing a blank section.