Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

465 B
Raw Blame
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { trustLevelLabel } from '../src/features/trust/levels.ts';

test('labels preserve exact custom values and recognize the existing default', () => {
  assert.equal(trustLevelLabel(800, 'en'), 'Familiar');
  assert.equal(trustLevelLabel(720, 'en'), 'Custom 0.72');
  assert.equal(trustLevelLabel(720, 'zh'), '自定义 0.72');
  assert.equal(trustLevelLabel(0, 'en'), 'Custom 0');
});