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 test from "node:test";
import assert from "node:assert/strict";
const { DEAD_COMBO_CONFIG_KEYS, stripDeadComboConfigKeys } = await import(
"../../../src/lib/combos/deadConfigKeys.ts"
);
test("dead keys removed, live keys kept", () => {
const out = stripDeadComboConfigKeys({
pipelineConcurrency: 4,
resetAwareEnabled: true,
resetAwareWindow: 7,
maxComboDepth: 3,
queueDepth: 10,
queueTimeoutMs: 5000,
}) as Record<string, unknown>;
assert.deepEqual(out, { maxComboDepth: 3, queueDepth: 10, queueTimeoutMs: 5000 });
});
test("no dead keys returns original reference", () => {
const input = { maxComboDepth: 3 };
assert.equal(stripDeadComboConfigKeys(input), input);
});
test("null, array, non-object pass through", () => {
assert.equal(stripDeadComboConfigKeys(null), null);
const arr = [1, 2];
assert.equal(stripDeadComboConfigKeys(arr), arr);
assert.equal(stripDeadComboConfigKeys(42), 42);
});
test("exactly 3 dead keys", () => {
assert.deepEqual([...DEAD_COMBO_CONFIG_KEYS], [
"pipelineConcurrency",
"resetAwareEnabled",
"resetAwareWindow",
]);
});
test("dashboard keeps its UI-only keys out of the shared dead list", () => {
for (const k of ["timeoutMs", "healthCheckEnabled", "healthCheckTimeoutMs"]) {
assert.equal((DEAD_COMBO_CONFIG_KEYS as ReadonlyArray<string>).includes(k), false);
}
});