Files
OmniRoute/tests/unit/kiro-model-aliases.test.ts
nguyenha935 d4b9ce6016 fix(kiro): harden auth flows, quota lookup, and model discovery (#8565)
* fix(kiro): fetch builder id quota without profile arn

* fix(kiro): harden auth imports polling and model discovery

* fix(kiro): preserve auth identity and OAuth polling semantics

* docs(changelog): add Kiro auth and model discovery fix

---------

Co-authored-by: Nguyễn Thanh Hà <nguyenha@Mac-mini-M4.local>
Co-authored-by: nguyenha935 <208228297+nguyenha935@users.noreply.github.com>
2026-07-26 03:53:47 -03:00

19 lines
674 B
TypeScript

import test from "node:test";
import assert from "node:assert/strict";
import { buildKiroPayload } from "../../open-sse/translator/request/openai-to-kiro.ts";
const body = { messages: [{ role: "user", content: "Hello" }] };
test("buildKiroPayload rejects removed or non-functional Kiro aliases", () => {
assert.throws(() => buildKiroPayload("auto-kiro", body, true, {}), /not a real Kiro/);
assert.throws(
() => buildKiroPayload("claude-sonnet-5-agentic", body, true, {}),
/agentic aliases are not supported/
);
assert.throws(
() => buildKiroPayload("claude-sonnet-4.5-thinking", body, true, {}),
/does not support the '-thinking' alias/
);
});