feat: add registry-driven Kimi provider

This commit is contained in:
tommy0103
2026-07-20 22:43:23 +08:00
parent 21c3a1b9fc
commit 3ee44de4e5
39 changed files with 2240 additions and 732 deletions
+16
View File
@@ -0,0 +1,16 @@
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { sourceColor, sourceLabel } from '../app/src/renderer/src/source-catalog.mjs';
const catalog = [
{ id: 'alpha', name: 'Alpha Agent', color: '#112233' },
{ id: 'beta', name: 'Beta Code', color: '#445566' },
];
test('renderer source presentation comes from the runtime provider catalog', () => {
assert.equal(sourceLabel('beta', catalog), 'Beta Code');
assert.equal(sourceColor('alpha', catalog), '#112233');
assert.equal(sourceLabel('future-provider', catalog), 'Future Provider');
assert.equal(sourceColor('future-provider', catalog), '#8b8b93');
});