feat: add registry-driven Kimi provider
This commit is contained in:
@@ -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');
|
||||
});
|
||||
Reference in New Issue
Block a user