The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { describe, expect, it } from "@effect/vitest"; |
| 2 | |
| 3 | import { museModelCapabilities, resolveMuseReasoningEffort } from "./modelCatalog.ts"; |
| 4 | |
| 5 | describe("Muse model catalog", () => { |
| 6 | it("normalizes saved and implicit efforts against the selected model before dispatch", () => { |
| 7 | const fallback = museModelCapabilities(); |
| 8 | expect(resolveMuseReasoningEffort(fallback, undefined)).toBe("high"); |
| 9 | expect(resolveMuseReasoningEffort(fallback, "max")).toBe("max"); |
| 10 | expect(resolveMuseReasoningEffort(fallback, "ultra")).toBe("high"); |
| 11 | const restricted = museModelCapabilities({ variants: ["xhigh"] }); |
| 12 | expect(resolveMuseReasoningEffort(restricted, undefined)).toBe("xhigh"); |
| 13 | expect(resolveMuseReasoningEffort(restricted, "low")).toBe("xhigh"); |
| 14 | expect( |
| 15 | resolveMuseReasoningEffort(museModelCapabilities({ variants: [] }), "max"), |
| 16 | ).toBeUndefined(); |
| 17 | expect(resolveMuseReasoningEffort(undefined, "max")).toBe("max"); |
| 18 | }); |
| 19 | }); |