ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Профили бюджета (Этап 5.1+). Именованный набор лимитов и цен: пользователь
* сохраняет несколько наборов и переключает их из панели одним кликом.
* Встроенные пресеты (economy/normal/max) доступны всегда и не удаляются.
* Значения проходят через normalizeBudget — чужие/битые данные санитизируются.
*--------------------------------------------------------------------------------------------*/
import { BudgetConfig, KeyTier, ModelPrice, ModelPriceRule, normalizeBudget } from './config';
export interface BudgetProfile {
/** Стабильное имя-идентификатор. */
name: string;
limits: { runTokens: number; runCost: number; nodeTokens: number; nodeCost: number };
prices: Record<KeyTier, ModelPrice>;
modelPrices: ModelPriceRule[];
/** Встроенный пресет: показывается всегда и не удаляется. */
builtin
BudgetProfile
name
builtin
limits runTokens runCost nodeTokens nodeCost
prices high input output mid input output low input output
modelPrices
name
builtin
limits runTokens runCost nodeTokens nodeCost
prices high input output mid input output low input output
modelPrices
name
builtin
limits runTokens runCost nodeTokens nodeCost
prices high input output mid input output low input output
modelPrices
name budget BudgetConfig BudgetProfile
name
limits
runTokens budgetrunTokens
runCost budgetrunCost
nodeTokens budgetnodeTokens
nodeCost budgetnodeCost
prices
high budgetpriceshigh
mid budgetpricesmid
low budgetpriceslow
modelPrices budgetmodelPricesrule rule
profile BudgetProfile BudgetConfig
runTokens profilelimitsrunTokens
runCost profilelimitsrunCost
nodeTokens profilelimitsnodeTokens
nodeCost profilelimitsnodeCost
prices profileprices
modelPrices profilemodelPrices
profiles BudgetProfile name BudgetProfile
profilesprofile profilename name
value BudgetProfile
value
out BudgetProfile
seen profile profilename
item value
item item
name item name name
name seenname
seenname
raw item Record
limits rawlimits rawlimits rawlimits Record raw
budget limits prices rawprices modelPrices rawmodelPrices
out name budget
out
userProfiles BudgetProfile BudgetProfile
profile profile userProfiles