Files
plugins/packages/agentcompass/test
Akiiwa 6de02a0ab3 agentcompass 0.1.4: canonicalModel resolves a multi-prefix model id by its last segment (#751)
agentcompass 0.1.4: canonicalModel tries the id with its first prefix removed, then its lowercase, then the last path segment and its lowercase, so a multi-prefix id such as openrouter/minimax/MiniMax-M3 resolves to its alias (minimax-m3). An id no alias knows keeps its old key.

Reviewed at 2adb5439 on mote (Bun 1.4.2, Node 22.22.0, fresh HOME): agentcompass bun test and node --test 44/44; bun scripts/check.mjs (package and whole repo) exit 0; repo root bun test 6244 pass, 0 fail. The old code and three of the four new lookups, each broken by hand, turned test 9.7 red; dropping the lowercase of the prefix-stripped id, which was already on main, stayed green. PR CI green on attempt 1. Not tried: a real routed request through a live gateway.
2026-11-06 17:08:24 +08:00
..