fix bruno collection

This commit is contained in:
Kazuma
2026-06-06 21:49:31 -04:00
parent 2e7860637e
commit 76c2a671f4
25 changed files with 4361 additions and 94 deletions
@@ -13,7 +13,9 @@ export class SimpleFINClient {
// eslint-disable-next-line no-console
this.logger = logger ?? {
write: (msg) => process.stdout.write(msg),
// eslint-disable-next-line no-console
log: (...args) => console.log(...args),
// eslint-disable-next-line no-console
warn: (...args) => console.warn(...args),
};
this.onAccessUrlClaimed = onAccessUrlClaimed ?? null;
@@ -193,3 +193,24 @@ export const ScoringRules: ScoringRulesShape = {
thresholds: { minSpread: 1.5, maxDuration: 7 },
},
};
// Alias used by tests — shape: ScoringConfig.base.gates.STOCK etc.
export const ScoringConfig = {
base: {
gates: {
STOCK: ScoringRules.STOCK.gates,
ETF: ScoringRules.ETF.gates,
BOND: ScoringRules.BOND.gates,
},
weights: {
STOCK: ScoringRules.STOCK.weights,
ETF: ScoringRules.ETF.weights,
BOND: ScoringRules.BOND.weights,
},
thresholds: {
STOCK: ScoringRules.STOCK.thresholds,
ETF: ScoringRules.ETF.thresholds,
BOND: ScoringRules.BOND.thresholds,
},
},
};