mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-12 02:02:13 +03:00
* fix(compression): add Lite tool truncation toggle * fix(antigravity): add missing antigravityProjectPersistence.ts module The quota-strategy engine (quotaStrategies.ts) imports from antigravityProjectPersistence.ts, but only antigravityProjectPersist.ts existed in the tree. Add the missing module with the expected preferAntigravityConnectionsWithStoredProject() helper and re-export the existing persistDiscoveredAntigravityProjectId(). Co-authored-by: diegosouzapw <diegosouza.pw@outlook.com> * fix(file-size): rebaseline strategySelector.ts for Lite truncation toggle The PR adds one line to threading options?.config?.lite into applyLiteCompression. Update the frozen size from 1060 to 1061. Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com> Refs #9629 --------- Co-authored-by: Xiangzhe <xiangzhedev@gmail.com> Co-authored-by: xz-dev <xz-dev@users.noreply.github.com> Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com>
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
// Resolves the persisted per-engine DETAIL sub-object (settings.headroom / .sessionDedup /
|
|
// .ccr) for a stacked-pipeline step. Extracted out of strategySelector.ts (frozen at cap by
|
|
// file-size-baseline.json — see scripts/check/check-file-size.mjs) rather than growing that
|
|
// file inline.
|
|
//
|
|
// #8056 wired settings.headroom.minRows into buildStepOptions so the dashboard value takes
|
|
// effect even when the stacked-pipeline step itself carries no config. #8388 extends the same
|
|
// merge to session-dedup and ccr, whose detail settings previously had nowhere to persist to
|
|
// (see compressionDetailNormalizers.ts on the DB write side of the same gap).
|
|
import type { CompressionConfig, CompressionPipelineStep } from "./types.ts";
|
|
|
|
export function resolveStepDetailConfig(
|
|
engine: CompressionPipelineStep["engine"],
|
|
config: CompressionConfig | undefined
|
|
) {
|
|
switch (engine) {
|
|
case "lite":
|
|
return config?.lite ?? {};
|
|
case "headroom":
|
|
return config?.headroom ?? {};
|
|
case "session-dedup":
|
|
return config?.sessionDedup ?? {};
|
|
case "ccr":
|
|
return config?.ccr ?? {};
|
|
default:
|
|
return {};
|
|
}
|
|
}
|