fix: 修正 logo 中 N 和 G 字母造型
N 添加对角线笔画(█▄ █),G 添加内横杠(█ ▀█), 避免与 O 字母造型雷同。同步更新 ui.ts 中的硬编码 wordmark。
This commit is contained in:
22
packages/tui/test/context/local.test.ts
Normal file
22
packages/tui/test/context/local.test.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { expect, test } from "bun:test"
|
||||
import { parseModel, recentModels } from "../../src/context/local"
|
||||
|
||||
test("parses model IDs containing slashes", () => {
|
||||
expect(parseModel("provider/family/model")).toEqual({
|
||||
providerID: "provider",
|
||||
modelID: "family/model",
|
||||
})
|
||||
})
|
||||
|
||||
test("moves a model to the front, deduplicates, and limits recents", () => {
|
||||
const recent = Array.from({ length: 12 }, (_, index) => ({
|
||||
providerID: "provider",
|
||||
modelID: `model-${index}`,
|
||||
}))
|
||||
|
||||
expect(recentModels({ providerID: "provider", modelID: "model-5" }, recent)).toEqual([
|
||||
{ providerID: "provider", modelID: "model-5" },
|
||||
...recent.slice(0, 5),
|
||||
...recent.slice(6, 10),
|
||||
])
|
||||
})
|
||||
Reference in New Issue
Block a user