ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { describe, expect, it } from 'vitest';
import { resolveModelWarnings } from '../../common/languageModelAccess';
const DEPRECATION = 'Claude Sonnet 4.6 has a planned deprecation date of 2026-09-01.';
const DEGRADATION = 'This model is currently degraded.';
const RETENTION = 'Prompts are retained for 30 days.';
describe('resolveModelWarnings', () => {
it('flags a pending deprecation even though it arrives without a degradation', () => {
expect(resolveModelWarnings({ warningText: { model_pending_deprecation: DEPRECATION } })).toEqual({
texts: { model_pending_deprecation: DEPRECATION },
rowWarning: DEPRECATION,
});
});
it('shows a banner-only warning without flagging the row', () => {
expect(resolveModelWarnings({ warningText: { data_retention: RETENTION } })).toEqual({
texts: { data_retention: RETENTION },
rowWarning: undefined,
});
});
it('lets a degradation explain the model even when other warnings are present', () => {
expect(resolveModelWarnings({
warningText: { data_retention: RETENTION },
degradationReason: DEGRADATION,
})).toEqual({
texts: { data_retention: RETENTION, degradation: DEGRADATION },
rowWarning: DEGRADATION,
});
});
it('has no warning presentation when the model carries no warnings', () => {
expect(resolveModelWarnings({})).toBeUndefined();
});
});