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 assert from "node:assert/strict";
import fs from "node:fs";
import test from "node:test";
import { buildSkillMarkdown } from "../../src/lib/agentSkills/generator.ts";
import { parseCliRegistry } from "../../src/lib/agentSkills/cliRegistryParser.ts";
test("sync pull skill uses a concrete archive path and no removed flags", () => {
const sources = {
openapi: { paths: new Map(), areas: new Map() },
cliRegistry: parseCliRegistry(),
};
const { body } = buildSkillMarkdown("cli-backup-sync", sources);
const published = fs.readFileSync(
new URL("../../skills/cli-backup-sync/SKILL.md", import.meta.url),
"utf8"
);
for (const markdown of [body, published]) {
const section = markdown.split("### `sync pull [outPath]`\n")[1]?.split("\n### ")[0];
assert.ok(section, "the optional output-path signature must match the real CLI registry");
assert.match(section, /```bash\nomniroute sync pull omniroute-export\.tar\.gz\n```/);
assert.doesNotMatch(section, /--(?:source|merge|replace|dry-run)\b/);
assert.doesNotMatch(section, /```bash\nomniroute sync pull \[outPath\]/);
}
});