mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 09:02:11 +03:00
* feat(chaos+ponytail): parallel chaos-mode dispatch + ponytail output style (rebased on v3.8.49)
- Chaos mode: new auto/chaos variant fans the prompt out to the top-N
stable models in parallel and returns a single merged SSE stream.
- Progressive streaming: each panel model's answer is enqueued as it
lands (omni-chaos-part event), instead of awaiting the whole panel.
- withTimeout now aborts the underlying request (modelAbortSignal) on
timeout so the connection is released, not leaked.
- concatSseText parses both OpenAI and Anthropic SSE wire formats.
- autoPrefix/modePacks add the chaos-mode weight pack; virtualFactory
materializes auto/chaos with fusion strategy + chaos config flag.
- Ponytail (lazy-senior-dev mode) integrated into the existing
OUTPUT_STYLE_CATALOG registry (id 'ponytail') so it rides the production
output-style injector, instead of a bespoke duplicate module. Dev-only
scripts and the duplicate ponytail/ module are removed.
- Tests: chaosEngine/chaosVirtualCombo cover panel dispatch, progressive
broadcast, timeout abort, and Anthropic parsing; autoCombo pack count
updated to 6.
Rebased onto release/v3.8.49 (no provider-registry or validation changes —
those are split out per review).
* fix(combo): align chaos dispatch callback with ChaosTarget signature
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
* fix(combo): extract chaos dispatch to chaosEngine.ts to fix combo.ts file-size gate
combo.ts's chaos-detection block pushed the frozen file-size gate over its
cap (3387 lines) after merging release/v3.8.49. Extracted the config
detection + model-list building into dispatchChaosFromCombo() in
chaosEngine.ts (the module this PR already introduces), mirroring the
existing fusion-strategy short-circuit pattern. combo.ts now does a 9-line
early-return; no behavior change.
combo.ts: 3406 -> 3386 lines (frozen cap 3387).
handleComboChat complexity/cognitive/lines all decrease as a side effect
(120->118 / 153->152 / 1541->1524) since the block moved out.
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
---------
Co-authored-by: Diego Rodrigues de Sa e Souza <diegosouza.pw@gmail.com>
Co-authored-by: Moseyuh333 <Moseyuh333@users.noreply.github.com>
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
27 lines
695 B
TypeScript
27 lines
695 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, type AutoComboConfig, type SelectionResult } from "./engine";
|
|
export {
|
|
runChaosPanel,
|
|
handleChaosChat,
|
|
serializeChaosPart,
|
|
CHAOS_DEFAULTS,
|
|
type ChaosTuning,
|
|
type ChaosPart,
|
|
} from "./chaosEngine";
|