@wrongstack/core 0.141.0 → 0.148.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,14 @@ declare class DefaultErrorHandler implements ErrorHandler {
48
48
  interface CompactorOptions {
49
49
  preserveK?: number | undefined;
50
50
  eliseThreshold?: number | undefined;
51
+ /**
52
+ * Enable content-aware digest mode. When true, `collapseAncientTurns` uses
53
+ * `buildSmartDigest` which scores messages by importance: critical content
54
+ * (errors, corrections, decisions) is kept verbatim; normal exchanges get
55
+ * first-sentence summaries; large tool outputs and repeated failures are
56
+ * aggressively compressed. Defaults to false (lossless digest).
57
+ */
58
+ smart?: boolean | undefined;
51
59
  /**
52
60
  * @deprecated Ignored. Token estimation is centralized in
53
61
  * `compaction-core`/`token-estimate` so all compactors and the context-pressure
@@ -59,6 +67,7 @@ interface CompactorOptions {
59
67
  declare class HybridCompactor implements Compactor {
60
68
  private readonly preserveK;
61
69
  private readonly eliseThreshold;
70
+ private readonly smart;
62
71
  constructor(opts?: CompactorOptions);
63
72
  compact(ctx: Context, opts?: {
64
73
  aggressive?: boolean | undefined;