Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
import { describe, it } from "node:test";
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { buildChecks } from "../../scripts/check/check-docs-counts-sync.mjs";
type Check = {
label?: string;
docKey?: string;
actual?: unknown;
strict?: boolean;
files?: string[];
validate?: (content: string, claim?: string) => { ok: boolean; detail: string };
};
describe("quality neutral prose", () => {
it("AUTO-COMBO.md prose carries quality neutral 0.5", () => {
const doc = readFileSync("docs/routing/AUTO-COMBO.md", "utf8");
assert.match(doc, /quality.*neutral.*0\.5/i);
assert.match(doc, /quality.*0\.5/);
});
it("buildChecks exposes a soft entry for quality neutral prose", () => {
const checks = buildChecks() as Check[];
const entry = checks.find(
(c) =>
String(c.docKey ?? "").includes("quality neutral") ||
String(c.label ?? "")
.toLowerCase()
.includes("quality neutral")
);
assert.ok(entry, "quality neutral entry missing from buildChecks");
assert.equal(entry.strict, false, "quality neutral entry must be soft");
assert.ok(
(entry.files ?? []).includes("docs/routing/AUTO-COMBO.md"),
"must gate docs/routing/AUTO-COMBO.md"
);
const doc = readFileSync("docs/routing/AUTO-COMBO.md", "utf8");
const res = entry.validate!(doc);
assert.equal(res.ok, true, `expected soft gate to pass on current doc: ${res.detail}`);
const silent = "no mention of quality at all";
const r2 = entry.validate!(silent);
assert.equal(r2.ok, false, "reworded-away prose must fail");
});
});