feat: remove legacy OpenCode runtime
Cut product flows over to Coding/Pi and retain only the migration-owned v1 boundary. Promote supported native optional packages because electron-builder omitted pnpm transitive optional closure from the packaged ASAR.
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
||||
resolveRuntimeProviderKey,
|
||||
} from '../../src/lib/model-options';
|
||||
import type { ProviderAccount, ProviderVendorInfo, ProviderWithKeyInfo } from '../../src/lib/providers';
|
||||
import type { OpencodeRuntimeConfigSummary } from '../../src/types/opencode';
|
||||
|
||||
const now = '2026-04-28T00:00:00.000Z';
|
||||
|
||||
@@ -158,23 +157,7 @@ describe('model option helpers', () => {
|
||||
[status('niancode-user-models')],
|
||||
'niancode-user-models',
|
||||
);
|
||||
const runtimeSummary: OpencodeRuntimeConfigSummary = {
|
||||
model: 'niancode-user-models/qwen3.6-plus',
|
||||
smallModel: null,
|
||||
providerIds: ['niancode-user-models'],
|
||||
providerCount: 1,
|
||||
providers: [
|
||||
{
|
||||
id: 'niancode-user-models',
|
||||
name: 'Makelore Models',
|
||||
modelIds: ['qwen3.6-plus'],
|
||||
hasApiKey: true,
|
||||
headerNames: [],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
expect(getConfiguredModelCapabilityLabel(option, runtimeSummary)).toBe('多模态');
|
||||
expect(getConfiguredModelCapabilityLabel(option)).toBe('多模态');
|
||||
});
|
||||
|
||||
it('exposes only imported Works Square models when that account is available', () => {
|
||||
|
||||
Reference in New Issue
Block a user