AutoCompactorPass class final

Per-pass outcome surfaced through AutoCompactorHooks.onPass.

Constructors

AutoCompactorPass({required int pass, required int tokensBefore, required int tokensAfter, required String? fallback, required bool ok, Object? error, String? summary, int hiddenRecords = 0, int summarizedMessages = 0, int droppedMessages = 0})
const

Properties

droppedMessages → int
Live-context messages dropped by the local-trim fallback (issue #673 AC3): the trim frees tokens WITHOUT hiding session records or folding summaries, so a report showing only hidden/summarized cannot explain where the tokens went. 0 for every summarizer pass.
final
error → Object?
The error that failed the pass, when ok is false.
final
fallback → String?
Which summarizer was used: 'smol', 'main', or null when the pass was skipped (no work to do).
final
hashCode → int
The hash code for this object.
no setterinherited
hiddenRecords → int
Session records hidden behind the compaction boundary.
final
ok → bool
Whether the pass succeeded.
final
pass → int
1-based pass number.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
summarizedMessages → int
Message records folded into summary.
final
summary → String?
The summary text the pass wrote (from the compaction record); null for failed / no-work / local-trim passes.
final
tokensAfter → int
Estimated tokens after the pass.
final
tokensBefore → int
Estimated tokens before the pass.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited