diagnosticsSummary method
ENH-96 (withHistory only): metadata-only snapshot safe to paste into
a support ticket / log line / DiagnosticsExportBundle section — NEVER
the content body (a level layout, a shop catalog, whatever T
represents), matching this package's existing default-deny diagnostics
convention (DiagnosticsExportBundle.build's configAllowedKeys).
Implementation
Map<String, Object?> diagnosticsSummary() {
_ensureHistoryLoaded();
return {
'schemaVersion': schemaVersion,
'contentVersion': currentContentVersion,
'checksum': currentChecksum,
'appliedAtMs': _history.isEmpty ? null : _history.last.appliedAtMs,
'historyCount': _history.length,
};
}