Persist autoCompactIntegration override in state and wire resolveDeliveryMode plus status delivery line.
Co-authored-by: Cursor <cursoragent@cursor.com>
Restore skill-reinject:state from branch on startup/resume, read merged settings,
and detect pi-auto-compact; reset to initial state when no entry exists.
Co-authored-by: Cursor <cursoragent@cursor.com>
Upsert merges sources without reordering the skills list per SPEC §6.1
dedupe and insertion-order rules.
Co-authored-by: Cursor <cursoragent@cursor.com>
Walk branch backwards for skill-reinject:state custom entries per SPEC §6.3;
return structuredClone of valid v1 snapshot or null for full rescan.
Co-authored-by: Cursor <cursoragent@cursor.com>
STATE_ENTRY_TYPE skill-reinject:state matches SPEC §6.1 so state survives
/resume and branch reload without a full rescan.
Co-authored-by: Cursor <cursoragent@cursor.com>
createInitialState and createRuntimeFlags return SPEC §6.1 defaults
before load, detect, and settings merge on session_start.
Co-authored-by: Cursor <cursoragent@cursor.com>
TrackedSkill, ExtensionState (version 1), and RuntimeFlags with union
aliases for skill sources, compaction source, and auto-compact integration.
Co-authored-by: Cursor <cursoragent@cursor.com>