mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-08 08:12:20 +03:00
v3.8.40 cycle integration → main. All test gates green (Unit/Integration/Coverage/Node-compat/Quality-Ratchet). The only red check, 'PR Test Policy', is the test-masking heuristic firing on the cumulative ~57-commit release diff (legitimate assert consolidations already reviewed per-PR — Gemini CLI removal #5246, retired GPT models #5280, provider catalog refreshes); overridden with --admin per the documented release-PR convention. CodeQL/SonarQube advisory scans non-blocking; #5278's code already passed CodeQL on main. Homologated on VPS 192.168.0.15 (v3.8.40 healthy).
74 lines
1.7 KiB
TypeScript
74 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",
|
|
"qwen",
|
|
"forge",
|
|
"interpreter",
|
|
"cursor-cli",
|
|
"warp",
|
|
];
|
|
|
|
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",
|
|
"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)"
|
|
);
|
|
});
|