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.
*--------------------------------------------------------------------------------------------*/
/**
* Pure helpers used by the Cache Explorer to compare two model-turn requests
* (A and B) and identify where the prompt prefix diverges.
*
* The engine works on the {@link IChatDebugEventModelTurnContent.sections}
* "Input Messages" section, which is a JSON-stringified array of
* `[{ role, name?, parts: [{ type: 'text', content, name? }, ...] }]`
* matching the OpenTelemetry GenAI semantic convention used by
* `chatParticipantTelemetry.ts`.
*
* All functions are pure — no DOM, no services — so they can be unit tested
* in isolation.
*/
/**
* A normalized request message used by the diff engine.
*/
export interface INormalizedMessage {
readonly role: string;
readonly name?: string;
/** Concatenation of all `text` parts in the message. */
readonly text: string;
/** Character length of `text` as a UTF-16 code unit count (`text.length`). */
readonly charLength: number;
}
/** Classification of a single signature token when comparing A and B. */
export CacheDiffKind
Identical
ContentDrift
LengthChange
OnlyInA
OnlyInB
index
kind CacheDiffKind
aRole
aName
aCharLength
bRole
bName
bCharLength
index
kind ExcludeCacheDiffKind CacheDiffKindIdentical
name
role
status CacheDiffKind
aSize
bSize
signature ICacheSignatureToken
ICacheBreak
drift IComponentDrift
counts
identical
contentDrift
lengthChange
onlyInA
onlyInB
type
content
name
id
arguments
response
tools
status
role
name
parts IRawPart
inputMessagesJson INormalizedMessage
inputMessagesJson
raw
raw inputMessagesJson
raw
toolNameByCallId
m raw IRawMessage
m m mparts
p mparts
p p ptype pid pname pname
toolNameByCallIdpid pname
out INormalizedMessage
m raw IRawMessage
m m
role mrole mrole
name mname mname mname
text
toolResponseName
hasToolResponse
hasToolCall
hasToolSearchOutput
hasText
mparts
p mparts
p p
ptype
pcontent
text pcontent
hasText
presponse
text presponse
presponse
text presponse
pcontent
text pcontent
pcontent
text pcontent
toolResponseName pid
toolResponseName toolNameByCallIdpid
hasToolResponse
pname text
parguments text parguments
hasToolCall
text
id pid
status pstatus
tools ptools
hasToolSearchOutput
hasToolSearchOutput hasText
role
hasToolResponse hasText
role
name name toolResponseName
hasToolCall hasText role
role
textlength role
text m
out role name text charLength textlength
out
value
value
value
a INormalizedMessage b INormalizedMessage
arole brole aname bname acharLength bcharLength atext btext
a INormalizedMessage b INormalizedMessage ICacheDiffResult
signature ICacheSignatureToken
drift IComponentDrift
counts identical contentDrift lengthChange onlyInA onlyInB
breakResult ICacheBreak
broken
max Mathalength blength
i i max i
ai ai
bi bi
ai bi
countsonlyInA
signature index i kind CacheDiffKindOnlyInA aRole airole aName ainame aCharLength aicharLength
drift name role airole status CacheDiffKindOnlyInA aSize aicharLength bSize
broken
broken
breakResult index i kind CacheDiffKindOnlyInA
bi ai
countsonlyInB
signature index i kind CacheDiffKindOnlyInB bRole birole bName biname bCharLength bicharLength
drift name role birole status CacheDiffKindOnlyInB aSize bSize bicharLength
broken
broken
breakResult index i kind CacheDiffKindOnlyInB
ai bi
ai bi
countsidentical
signature
index i kind CacheDiffKindIdentical
aRole airole aName ainame aCharLength aicharLength
bRole birole bName biname bCharLength bicharLength
kind aicharLength bicharLength CacheDiffKindContentDrift CacheDiffKindLengthChange
kind CacheDiffKindContentDrift
countscontentDrift
countslengthChange
signature
index i kind
aRole airole aName ainame aCharLength aicharLength
bRole birole bName biname bCharLength bicharLength
drift name role airole status kind aSize aicharLength bSize bicharLength
broken
broken
breakResult index i kind
signature breakResult drift counts
drift IComponentDrift entry IComponentDrift IComponentDrift
prefixEntries IComponentDrift
rest IComponentDrift
d drift
dname
dname entryname
prefixEntriesd
restd
prefixEntriesentry
prefixEntriesa b aname bname
prefixEntries rest
a b CacheDiffKind
a b
a
CacheDiffKindOnlyInB
b
CacheDiffKindOnlyInA
alength blength CacheDiffKindContentDrift CacheDiffKindLengthChange
drift IComponentDrift
aSystem
bSystem
IComponentDrift
status aSystem bSystem
status
drift
drift name status aSize aSystemlength bSize bSystemlength
drift IComponentDrift
aTools
bTools
IComponentDrift
status aTools bTools
status
drift
drift name status aSize aToolslength bSize bToolslength
token ICacheSignatureToken
role tokenbRole tokenaRole
name tokenbName tokenaName
a tokenaCharLength
b tokenbCharLength
sizeText a b a b
a b
a b
name