mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
* refactor(cli): remove legacy Qwen Code integration * refactor(qwen): remove deprecated Qwen OAuth provider * feat(cli): rebuild Qwen Code integration for upstream V4 * fix(qwen): clear stale CLI auth on reset * test(qwen): align retired provider coverage * fix(db): renumber qwen-cleanup migration 129 -> 130 release/v3.8.49 tip took slot 129 via #7843 (usage_history_codex_strong_identity, itself renumbered from 128 during the #7838/#7840 base-red cleanup) after this branch forked; renumber remove_unregistered_qwen_data to 130. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --------- Co-authored-by: Diego Rodrigues de Sa e Souza <8016841+diegosouzapw@users.noreply.github.com>
75 lines
1.7 KiB
TypeScript
75 lines
1.7 KiB
TypeScript
/**
|
|
* F1: cli-catalog-acpspawnable.test.ts
|
|
* Assert acpSpawnable values per plan 14 D16.
|
|
*/
|
|
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
const { CLI_TOOLS } = await import("../../src/shared/constants/cliTools.ts");
|
|
|
|
// Per D16: acpSpawnable: true for tools that also appear in ACP Agents
|
|
const ACP_SPAWNABLE_IDS = [
|
|
"codex",
|
|
"claude",
|
|
"goose",
|
|
"openclaw",
|
|
"aider",
|
|
"opencode",
|
|
"cline",
|
|
"forge",
|
|
"interpreter",
|
|
"cursor-cli",
|
|
"warp",
|
|
"qwen",
|
|
];
|
|
|
|
for (const id of ACP_SPAWNABLE_IDS) {
|
|
test(`'${id}' has acpSpawnable === true (in ACP Agents badge)`, () => {
|
|
const entry = CLI_TOOLS[id];
|
|
assert.ok(entry, `Entry '${id}' must exist in CLI_TOOLS`);
|
|
assert.equal(
|
|
entry.acpSpawnable,
|
|
true,
|
|
`Expected CLI_TOOLS['${id}'].acpSpawnable to be true, got ${entry.acpSpawnable}`
|
|
);
|
|
});
|
|
}
|
|
|
|
// Tools that should NOT be acpSpawnable
|
|
const NOT_ACP_SPAWNABLE_IDS = [
|
|
"copilot",
|
|
"droid",
|
|
"kilo",
|
|
"continue",
|
|
"roo",
|
|
"jcode",
|
|
"deepseek-tui",
|
|
"codewhale",
|
|
"smelt",
|
|
"pi",
|
|
"hermes-agent",
|
|
"agent-deck",
|
|
"custom",
|
|
];
|
|
|
|
for (const id of NOT_ACP_SPAWNABLE_IDS) {
|
|
test(`'${id}' has acpSpawnable === false`, () => {
|
|
const entry = CLI_TOOLS[id];
|
|
assert.ok(entry, `Entry '${id}' must exist in CLI_TOOLS`);
|
|
assert.equal(
|
|
entry.acpSpawnable,
|
|
false,
|
|
`Expected CLI_TOOLS['${id}'].acpSpawnable to be false, got ${entry.acpSpawnable}`
|
|
);
|
|
});
|
|
}
|
|
|
|
// windsurf was removed — should not exist
|
|
test("windsurf is not in CLI_TOOLS (removed per D17)", () => {
|
|
assert.equal(
|
|
(CLI_TOOLS as Record<string, unknown>)["windsurf"],
|
|
undefined,
|
|
"windsurf must not be in CLI_TOOLS (removed per plan 14 D17)"
|
|
);
|
|
});
|