mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 15:22:12 +03:00
Auto-combo transparency + budget controls: the engine's budgetCap enforcement always degraded to the globally cheapest candidate when every candidate exceeded the cap - silently overspending instead of respecting the cap. - engine.ts: budgetFallback "cheapest" (default, legacy) | "strict" (BudgetExceededError when no candidate fits budgetCap) - requestControls.ts: X-OmniRoute-Budget-Fallback header + resolveRequestAutoControls() consolidating mode/budget/fallback parsing - resolveAutoStrategy.ts / autoConfig.ts: thread combo-level config.budgetFallback and catch BudgetExceededError into an HTTP 402 - chat.ts: switch to the consolidated resolveRequestAutoControls() helper (net line reduction, stays under the frozen file-size baseline) Regression guard: tests/unit/auto-combo-budget-fallback-3470.test.ts
24 lines
578 B
TypeScript
24 lines
578 B
TypeScript
/**
|
|
* Auto-Combo barrel export
|
|
*/
|
|
export {
|
|
calculateScore,
|
|
calculateTierScore,
|
|
scorePool,
|
|
validateWeights,
|
|
DEFAULT_WEIGHTS,
|
|
type ScoringWeights,
|
|
type ScoringFactors,
|
|
type ProviderCandidate,
|
|
type ScoredProvider,
|
|
} from "./scoring";
|
|
export { getTaskFitness, getTaskTypes } from "./taskFitness";
|
|
export { SelfHealingManager, getSelfHealingManager } from "./selfHealing";
|
|
export { MODE_PACKS, getModePack, getModePackNames } from "./modePacks";
|
|
export {
|
|
selectProvider,
|
|
BudgetExceededError,
|
|
type AutoComboConfig,
|
|
type SelectionResult,
|
|
} from "./engine";
|