Это 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{BasePromptElementProps,PromptElement}from'@vscode/prompt-tsx';import{IResponsePart}from'../../../../platform/chat/common/chatMLFetcher';import{IPromptPathRepresentationService}from'../../../../platform/prompts/common/promptPathRepresentationService';import{ equals }from'../../../../util/vs/base/common/arrays';import{AsyncIterableObject}from'../../../../util/vs/base/common/async';import{CharCode}from
uri
languageId
code
isSummarized
shouldTrim
props
@ promptPathRepresentationService
props
code
changes uri find replace
props
@ promptPathRepresentationService
props
patch
patch
filePath
markerName
line
line
code findLines replaceLines fallbackInsertLine
firstFindLineIndex
firstFindLineIndex findLines findLinesfirstFindLineIndex
firstFindLineIndex
firstFindLineIndex findLines
codeIndentInfo code
codeIndentLevel code code code codeIndentInfo
replaceString replaceLines codeIndentLevel codeIndentInfo
fallbackInsertLine replaceString
firstFindLine findLinesfirstFindLineIndex
firstFindIndentLength firstFindLine
lastError
i k firstFindLineIndex
outer i code
i code codei firstFindLine firstFindIndentLength
i
i code
lastError message label severity
firstLineIndex i
endLineIndex
i code k findLines
codeLine codei
codeIndentLength codeLine
codeIndentLength codeLine
i
findLine findLinesk
findLineIndentLength findLine
findLineIndentLength findLine
k
codeLine findLine findLineIndentLength
endLineIndex i
i
k
i firstLineIndex
k firstFindLineIndex
findLine
lastError message label severity
codeLine
lastError message label severity
lastError message label severity
outer
k findLines findLinesk
k
k findLines firstLineIndex endLineIndex
codeIndentInfo code
codeIndentLevel code firstLineIndex endLineIndex codeIndentInfo
replaceString replaceLines codeIndentLevel codeIndentInfo
firstLineIndex endLineIndex replaceString endLineIndex code
lastError message label severity
charCode
charCode charCode
line
line
lines newIndentLevel indentInfo
start end
start start lines linesstart start
start lines
end lines end start linesend end
start end
minIndentLevel
indentations
i start i end i
line linesi
indentation line indentInfo
indentation line indentation minIndentLevel
minIndentLevel indentation
indentationsindentation
adjustedLines
i start i end i
line linesi
level length indentationsi start
newLevel newIndentLevel level minIndentLevel
newIndentation indentInfo indentInfo newLevel newLevel
adjustedLinesnewIndentation linelength
adjustedLines
line
i
i line linei
i
i
lines startLineIndex endLineIndex tabSize
minIndentLevel
i startLineIndex i endLineIndex i
line linesi
indentation line tabSize
indentation line indentation minIndentLevel
minIndentLevel indentation
minIndentLevel minIndentLevel
level length
line tabSize
nSpaces
level
i
length
len line
i len
chCode linei
chCode
nSpaces
nSpaces tabSize
level
nSpaces
length i
chCode
level
nSpaces
length i
i
level length
line suffix suffixIndentLength
i line k suffix
i k suffixIndentLength linei suffixk
i
k
k suffixIndentLength
i linei
i
i
filePath find replace
marker content
text
replyText documentText documentUri defaultInsertionLine
edits
otherSections
appliedPatches
otherPatches
invalidPatches
contentBefore
contentAfter
annotations
replyText
result
section replyText
section
resultsection
result
promptPathRepresentationService
text
result
line text
line line
resultline
result
replyText documentText documentUri defaultInsertionLine
original filePath
annotations
otherSections
patches
edits
invalidPatches
otherPatches
filePaths
contentBefore
contentAfter
loop section replyText
section
contentBefore section
filePath section
original section
section original filePath
patches filePath find original replace section
filePathsfilePath
contentAfter section
loop
otherSectionssection
patches
annotations message label severity
edits contentAfter contentBefore appliedPatches otherSections invalidPatches otherPatches annotations
documentUri
documentFilePath promptPathRepresentationServicedocumentUri
filePathsdocumentFilePath
annotations message label severity
filePaths
annotations message label severity
patchesForDocument
patch patches
patch documentFilePath
otherPatchespatch
patchesForDocumentpatch
patches patchesForDocument
patches
documentLines documentText
patch patches
patch patch
annotations message label severity
invalidPatchespatch
patch
annotations message label severity
res documentLines patch patch defaultInsertionLine
res
success edits res
success
annotations message label severity
invalidPatchespatch
annotationsres
invalidPatchespatch
edits appliedPatches patches otherSections invalidPatches otherPatches annotations contentBefore contentAfter
edits edit
i i edits i
existingEdit editsi
editexistingEdit
editsi edit
editexistingEdit
editsedit
content
result
inCodeBlock
codeBlockRegex
line content
match linecodeBlockRegex
match
inCodeBlock
match inCodeBlock
result
resultline
inCodeBlock match
inCodeBlock
resultline
content
lines
currentMarker
currentContent
textStream lines part part
reader textStream
reader
line reader
marker
line
line
marker
line
marker
line
marker
line
marker
marker line
marker currentMarker content currentContent
currentContent linemarker
currentMarker marker
currentContentline
marker currentMarker content currentContent
str
str
str
str
lines
currentMarker
currentContent
line lines
marker
line
line
marker
line
marker
line
marker
line
marker
marker line
marker currentMarker content currentContent
currentContent linemarker
currentMarker marker
currentContentline
marker currentMarker content currentContent
input
start end
end input
ch inputend
ch ch
inputstart end
end
ch inputend
end
start end
end
start input
inputstart
When proposing a code change, provide one or more modifications in the following format:
<br/>
Each modification consist of three sections headed by `{Marker.FILEPATH}`, `{Marker.FIND}` and `{Marker.REPLACE}`.
<br/>
After
{
Marker
.
FILEPATH
}
add the path to the file that needs to be changed.
<br/>
After
{
Marker
.
FIND
}
add a code block containing a section of the program that will be replaced.
<br/>
Add multiple lines so that a find tool can find and identify a section of the programm. Start and end with a line that will not be modified.
<br/>
Include all comments and empty lines exactly as they appear in the original source code. Do not abreviate any line or summarize the code with `...`.
<br/>
After
{
Marker
.
REPLACE
}
add a code block with the updated version of the original code in the find section. Maintain the same indentation and code style as in the original code.