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.
*--------------------------------------------------------------------------------------------*/
/**
* The Claude Agent SDK speaks Anthropic-canonical hyphenated model IDs
* (e.g. `claude-opus-4-6-20251101`). CAPI speaks dotted endpoint IDs
* (`claude-opus-4.6`). The Phase 2 proxy needs bidirectional translation
* at three points: inbound `requestBody.model` (SDK→CAPI), outbound
* `model` fields on streaming events / non-streaming responses (CAPI→SDK),
* and `GET /v1/models` response IDs (CAPI→SDK).
*/
export interface ParsedClaudeModelId {
readonly name: string;
readonly version: string;
readonly modifiers: string;
toSdkModelId(): string;
toEndpointModelId(): string;
}
/**
* Known model suffixes that are meaningful variants and should be preserved
* in SDK/endpoint model IDs. Mapped per model family. Date-based suffixes
* (e.g. 20251101) are intentionally excluded — they are build identifiers
* that should not appear in the normalized output.
*/
const VALID_SUFFIXES: ReadonlyMap<string, ReadonlySet
cache
modelId ParsedClaudeModelId
result modelId
result
result
modelId
modelId
modelId
modelId
modelId modelId
modelId ParsedClaudeModelId
cacheKey modelId
cachecacheKey
cachecacheKey
result cacheKey
cachecacheKey result
result
lower ParsedClaudeModelId
dateSuffix
base lower
dateMatch lower
dateMatchgroups
base dateMatchgroupsbase
dateSuffix dateMatchgroupsdate
p1 base
p1groups
p1groupsname p1groupsmajor p1groupsminor p1groupsmod dateSuffix
p2 base
p2groups
p2groupsname p2groupsmajor p2groupsminor p2groupsmod dateSuffix
p3 base
p3groups
p3groupsname p3groupsmajor p3groupsminor p3groupsmod dateSuffix
p4 base
p4groups
p4groupsname p4groupsmajor p4groupsmod dateSuffix
p5 base
p5groups
p5groupsname p5groupsmajor p5groupsmod dateSuffix
p6 base
p6groups
p6groupsname
mod dateSuffix
mod dateSuffix
mod dateSuffix
name major minor versionSep validSuffix
base minor
validSuffix base
name ParsedClaudeModelId
name
version
modifiers
name
name
name major minor modifiers ParsedClaudeModelId
version minor major
validSuffix name modifiers
name
version
modifiers
name major minor validSuffix
name major minor validSuffix
name modifiers
modifiers
allowedSuffixes name
allowedSuffixes
allowedSuffixesmodifiers
modifiers
firstSegment modifiers
allowedSuffixesfirstSegment
firstSegment