pi-mega-compact 0.21.5 → 0.21.7

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.
@@ -132,6 +132,7 @@ export const SETTINGS = [
132
132
  settings: [
133
133
  num("MEGACOMPACT_THRESHOLD_PCT", "Compaction Threshold", "Fraction of the actual model context window at which compaction fires — 0.80 fires at 80% used (leaves 20% free). Applies to any model size; a per-model Model Thresholds row overrides it", 0.8, 0.1, 0.95),
134
134
  num("MEGACOMPACT_THRASH_REARM_PCT", "Thrash Re-arm %", "After an ineffective compaction (live window did not shrink), refuse to re-fire until the live window grows by this fraction of the effective threshold. Default 0.10 (10%)", 0.1, 0.01, 0.5),
135
+ boolDirect("MEGACOMPACT_OUTPUT_ERROR_COMPACT", "Output-Error Compact", "When a model response is truncated mid-output (stopReason: 'length'), trip a one-shot forced compaction to free input headroom. Closes the small-context deadlock where the model truncates below the input threshold.", true),
135
136
  ],
136
137
  },
137
138
  {
@@ -185,6 +186,8 @@ export const EXCLUDED_SETTINGS = [
185
186
  "MEGACOMPACT_RAPTOR_LEVEL_WEIGHTS",
186
187
  // Internal calibration, not user-facing.
187
188
  "MEGACOMPACT_FTS5_MAX_BM25",
189
+ // Boot-fallback context window — display-seed only, never a firing gate.
190
+ "MEGACOMPACT_DEFAULT_CONTEXT_WINDOW",
188
191
  // COS-FP-A: per-content-type L2 override landing slots. Null/unset by
189
192
  // default and NOT wired into the live L2 decision this sprint — the
190
193
  // top-level MEGACOMPACT_L2_THRESHOLD is the single runtime firing point. A
@@ -294,6 +294,12 @@ export const SETTINGS: ReadonlyArray<SettingGroup> = [
294
294
  0.01,
295
295
  0.5,
296
296
  ),
297
+ boolDirect(
298
+ "MEGACOMPACT_OUTPUT_ERROR_COMPACT",
299
+ "Output-Error Compact",
300
+ "When a model response is truncated mid-output (stopReason: 'length'), trip a one-shot forced compaction to free input headroom. Closes the small-context deadlock where the model truncates below the input threshold.",
301
+ true,
302
+ ),
297
303
  ],
298
304
  },
299
305
  {
@@ -376,6 +382,8 @@ export const EXCLUDED_SETTINGS: readonly string[] = [
376
382
  "MEGACOMPACT_RAPTOR_LEVEL_WEIGHTS",
377
383
  // Internal calibration, not user-facing.
378
384
  "MEGACOMPACT_FTS5_MAX_BM25",
385
+ // Boot-fallback context window — display-seed only, never a firing gate.
386
+ "MEGACOMPACT_DEFAULT_CONTEXT_WINDOW",
379
387
  // COS-FP-A: per-content-type L2 override landing slots. Null/unset by
380
388
  // default and NOT wired into the live L2 decision this sprint — the
381
389
  // top-level MEGACOMPACT_L2_THRESHOLD is the single runtime firing point. A
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-mega-compact",
3
- "version": "0.21.5",
3
+ "version": "0.21.7",
4
4
  "description": "Layered, local, vector-backed context compressor for pi — supersede/collapse/cluster compaction with deduped inline recall.",
5
5
  "type": "module",
6
6
  "license": "BSD-3-Clause",