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 { DocumentId } from '../../../platform/inlineEdits/common/dataTypes/documentId';
import { LanguageContextResponse } from '../../../platform/inlineEdits/common/dataTypes/languageContext';
import { PromptSectionTokenCounts } from '../../../platform/inlineEdits/common/dataTypes/promptSectionTokens';
import * as xtabPromptOptions from '../../../platform/inlineEdits/common/dataTypes/xtabPromptOptions';
import { AggressivenessLevel, CurrentFileOptions, GlobalBudgetOptions, isRejectedEditMemoryEnabled, PromptingStrategy, PromptOptions } from '../../../platform/inlineEdits/common/dataTypes/xtabPromptOptions';
import { StatelessNextEditDocument } from '../../../platform/inlineEdits/common/statelessNextEditProvider';
IXtabHistoryEntry IXtabHistoryRejectedEditEntry
ContextKind TraitContext
Result
range
assertNever softAssert
StringEdit StringReplacement
OffsetRange
getEditDiffHistory
LintErrors
countTokensForLines toUniquePath
appendLanguageContextSnippets appendNeighborFileSnippets AppendNeighborFileSnippetsResult buildCodeSnippetsUsingPagedClipping getRecentCodeSnippets prepareRecentCodeSnippets RecentlyViewedSubsectionSnippets
INeighborFileSnippet
PromptTags
CurrentDocument
currentDocument CurrentDocument
editWindowLinesRange OffsetRange
areaAroundEditWindowLinesRange OffsetRange
activeDoc StatelessNextEditDocument
xtabHistory IXtabHistoryEntry
taggedCurrentDocLines
areaAroundCodeToEdit
langCtx LanguageContextResponse
aggressivenessLevel AggressivenessLevel
lintErrors LintErrors
s
opts PromptOptions
rejectedEditHistory IXtabHistoryRejectedEditEntry
neighborSnippets INeighborFileSnippet
precomputedCascade CascadeResult
prompt
nDiffsInPrompt
neighborSnippetsResult AppendNeighborFileSnippetsResult
sectionTokens PromptSectionTokenCounts
promptPieces PromptPieces UserPromptResult
activeDoc xtabHistory taggedCurrentDocLines areaAroundCodeToEdit langCtx aggressivenessLevel lintErrors computeTokens opts neighborSnippets precomputedCascade promptPieces
currentFileContent taggedCurrentDocLines
recentlyViewedCodeSnippets
recentlyViewedSubsections RecentlyViewedSubsectionSnippets
docsInPrompt SetDocumentId
neighborSnippetsResult AppendNeighborFileSnippetsResult
editDiffHistory
nDiffsInPrompt
rejectedEditMemoryEnabled opts
rejectedEditHistory rejectedEditMemoryEnabled promptPiecesrejectedEditHistory
optsglobalBudget
cascade precomputedCascade activeDoc xtabHistory langCtx computeTokens opts neighborSnippets optsglobalBudget rejectedEditHistory
recentlyViewedCodeSnippets cascadecodeSnippets
recentlyViewedSubsections cascadesubsections
docsInPrompt cascadedocuments
neighborSnippetsResult cascadeneighborSnippetsResult
editDiffHistory cascadeeditDiffHistory
nDiffsInPrompt cascadenDiffsInPrompt
r activeDoc xtabHistory langCtx computeTokens opts neighborSnippets
recentlyViewedCodeSnippets rcodeSnippets
recentlyViewedSubsections rsubsections
docsInPrompt rdocuments
neighborSnippetsResult rneighborSnippetsResult
docsInPromptactiveDocid
diff activeDoc xtabHistory docsInPrompt computeTokens optsdiffHistory rejectedEditHistory
editDiffHistory diffpromptPiece
nDiffsInPrompt diffnDiffs
relatedInformation langCtx
currentFilePath activeDocid activeDocworkspaceRootpath
postScript promptPiecesoptsincludePostScript opts currentFilePath aggressivenessLevel
rejectedEditMemoryInstruction rejectedEditMemoryEnabled
promptSuffix postScript rejectedEditMemoryInstruction
lintsWithNewLinePadding optslintOptions
recentFilesSection
currentFileSection
editHistorySection
basePrompt
mainPrompt
cursorLocationSection
areaAroundSection
optspromptingStrategy
PromptingStrategyPatchBased01
mainPrompt basePrompt
PromptingStrategyPatchBased02
PromptingStrategyPatchBased02WithRecentLineNumbers
PromptingStrategyPatchBased02Unified
PromptingStrategyPatchBased02WithoutRecentLineNumbers
currentDocument promptPiecescurrentDocument
cursorLine currentDocument
cursorLineWithTag cursorLine currentDocumentcursorPositioncolumn PromptTags cursorLinecurrentDocumentcursorPositioncolumn
lineNumberZeroBased currentDocumentcursorPositionlineNumber
lineNumbering
optscurrentFileincludeLineNumbers
xtabPromptOptionsIncludeLineNumbersOptionWithSpaceAfter
lineNumbering
xtabPromptOptionsIncludeLineNumbersOptionWithoutSpace
lineNumbering
xtabPromptOptionsIncludeLineNumbersOptionNone
lineNumbering
optscurrentFileincludeLineNumbers
lineWithCursorSnippet
PromptTagsstart
PromptTagsend
cursorLocationSection lineWithCursorSnippet
mainPrompt basePrompt
areaAroundSection areaAroundCodeToEdit
mainPrompt basePrompt
includeBackticks optspromptingStrategy PromptingStrategyNes41Miniv3
optspromptingStrategy PromptingStrategyCodexv21NesUnified
optspromptingStrategy PromptingStrategyPatchBased01
optspromptingStrategy PromptingStrategyPatchBased02
optspromptingStrategy PromptingStrategyPatchBased02WithRecentLineNumbers
optspromptingStrategy PromptingStrategyPatchBased02Unified
optspromptingStrategy PromptingStrategyPatchBased02WithoutRecentLineNumbers
packagedPrompt includeBackticks mainPrompt mainPrompt
packagedPromptWithRelatedInfo relatedInformation packagedPrompt optslanguageContexttraitPosition
prompt packagedPromptWithRelatedInfo promptSuffix
trimmedPrompt prompt
recentlyViewedTokens recentFilesSection
currentFileTokens currentFileSection
lintErrorsTokens lintsWithNewLinePadding
editHistoryTokens editHistorySection
areaAroundCodeToEditTokens areaAroundSection
cursorLocationTokens cursorLocationSection
relatedInformationTokens relatedInformation
postScriptTokens promptSuffix
userPromptTotalTokens trimmedPrompt
sectionsSum recentlyViewedTokens currentFileTokens lintErrorsTokens editHistoryTokens areaAroundCodeToEditTokens cursorLocationTokens relatedInformationTokens postScriptTokens
sectionTokens PromptSectionTokenCounts
recentlyViewed recentlyViewedTokens
currentFile currentFileTokens
lintErrors lintErrorsTokens
editHistory editHistoryTokens
areaAroundCodeToEdit areaAroundCodeToEditTokens
cursorLocation cursorLocationTokens
relatedInformation relatedInformationTokens
postScript postScriptTokens
overhead userPromptTotalTokens sectionsSum
userPromptTotal userPromptTotalTokens
systemPrompt
recentlyViewedSubsections
recentlyViewedFiles recentlyViewedSubsectionsrecentlyViewedFiles
languageContext recentlyViewedSubsectionslanguageContext
neighborFiles recentlyViewedSubsectionsneighborFiles
prompt trimmedPrompt nDiffsInPrompt neighborSnippetsResult sectionTokens
codeSnippets
documents SetDocumentId
neighborSnippetsResult AppendNeighborFileSnippetsResult
editDiffHistory
nDiffsInPrompt
subsections RecentlyViewedSubsectionSnippets
finalSurplus
activeDoc StatelessNextEditDocument
xtabHistory IXtabHistoryEntry
langCtx LanguageContextResponse
s
opts PromptOptions
neighborSnippets INeighborFileSnippet
globalBudget GlobalBudgetOptions
rejectedEditHistory IXtabHistoryRejectedEditEntry
CascadeResult
GlobalBudgetOptionsglobalBudget
recentlyViewedSnippets
langCtxSnippets
neighborOutSnippets
docsInPrompt
docsInPromptactiveDocid
neighborSnippetsResult AppendNeighborFileSnippetsResult
editDiffHistory
nDiffsInPrompt
preparedRecent activeDoc xtabHistory opts
surplus
part globalBudgetorder
share globalBudgetsharespart
budget Math Mathsurplus globalBudgettotalTokens share
tokensConsumed
part
overridden PromptOptions
opts
recentlyViewedDocuments optsrecentlyViewedDocuments maxTokens budget
r preparedRecent computeTokens overridden
recentlyViewedSnippetsrsnippets
rdocsInPromptd docsInPromptd
tokensConsumed rtokensConsumed
langCtx
tokensConsumed langCtx langCtxSnippets budget computeTokens
optsneighborFilesenabled neighborSnippets neighborSnippetslength
neighborSnippetsResult neighborSnippets neighborOutSnippets docsInPrompt budget computeTokens optsrecentlyViewedDocumentsincludeLineNumbers
tokensConsumed neighborSnippetsResulttokensConsumed
overriddenDiff optsdiffHistory maxTokens budget
r activeDoc xtabHistory docsInPrompt computeTokens overriddenDiff rejectedEditHistory
editDiffHistory rpromptPiece
nDiffsInPrompt rnDiffs
tokensConsumed rtotalTokens
part
tokensConsumed tokensConsumed budget
surplus Math budget tokensConsumed
codeSnippets recentlyViewedSnippets langCtxSnippets neighborOutSnippets
codeSnippets
documents docsInPrompt
neighborSnippetsResult
editDiffHistory
nDiffsInPrompt
subsections
recentlyViewedFiles recentlyViewedSnippets
languageContext langCtxSnippets
neighborFiles neighborOutSnippets
finalSurplus surplus
content
relatedInformation prompt position
position
relatedInformation prompt
prompt relatedInformation
base toAppend minNewLines
existingNewLines
i baselength i basei i
existingNewLines
i i toAppendlength toAppendi i
existingNewLines
newLinesToAdd Math minNewLines existingNewLines
base newLinesToAdd toAppend
options PromptOptions currentFilePath aggressivenessLevel AggressivenessLevel
promptingStrategy eagernessPrompt options
xtab275BasePostScript
patchBased02PostScript
postScript
promptingStrategy
PromptingStrategyPatchBased01
PromptingStrategyCodexv21NesUnified
PromptingStrategyPatchBased02
PromptingStrategyPatchBased02WithRecentLineNumbers
PromptingStrategyPatchBased02Unified
PromptingStrategyPatchBased02WithoutRecentLineNumbers
postScript eagernessPrompt
aggressivenessLevel AggressivenessLevelMedium
patchBased02PostScript
patchBased02PostScript
PromptingStrategyUnifiedModel
postScript
PromptingStrategyNes41Miniv3
postScript
PromptingStrategyXtab275EditIntentShort
PromptingStrategyXtab275EditIntent
PromptingStrategyXtab275
postScript xtab275BasePostScript
PromptingStrategyXtabAggressiveness
postScript
PromptingStrategyXtab275Aggressiveness
postScript
PromptingStrategyXtab275AggressivenessHighLow
postScript aggressivenessLevel AggressivenessLevelMedium
xtab275BasePostScript
PromptingStrategyPatchBased
postScript
PromptingStrategySimplifiedSystemPrompt
PromptingStrategyCopilotNesXtab
postScript
promptingStrategy
formattedPostScript postScript
formattedPostScript
langCtx LanguageContextResponse
langCtx
traits langCtxitems
ctx ctxcontextkind ContextKindTrait
t tcontext TraitContext
traitslength
relatedInformation
trait traits
relatedInformation
lines
fromBeginning
maxTokens
lineslength
allowedLength maxTokens
totalLength
i fromBeginning lineslength
totalLength allowedLength
totalLength linesilength
fromBeginning
i
i
i
i lineslength
fromBeginning
i lineslength
i
currentDocLines
areaAroundEditWindowLinesRange OffsetRange
pageSize
maxTokens
s
prioritizeAboveCursor
useLeftoverBudgetFromAbove
firstPageIdx lastPageIdxIncl budgetLeft
totalNOfPages MathcurrentDocLineslength pageSize
kthPage
start kthPage pageSize
end Mathstart pageSize currentDocLineslength
page currentDocLinesstart end
page computeTokens
firstPageIdx MathareaAroundEditWindowLinesRangestart pageSize
lastPageIdxIncl MathareaAroundEditWindowLinesRangeendExclusive pageSize
availableTokenBudget maxTokens firstPageIdx lastPageIdxIncl sum idx sum idx
availableTokenBudget
firstPageIdx lastPageIdxIncl budgetLeft availableTokenBudget
tokenBudget availableTokenBudget
prioritizeAboveCursor
halfOfAvailableTokenBudget MathavailableTokenBudget
tokenBudget halfOfAvailableTokenBudget
i firstPageIdx i tokenBudget i
tokenCountForPage i
newTokenBudget tokenBudget tokenCountForPage
newTokenBudget
firstPageIdx i
tokenBudget newTokenBudget
leftoverFromAbove useLeftoverBudgetFromAbove tokenBudget
tokenBudget halfOfAvailableTokenBudget leftoverFromAbove
i lastPageIdxIncl i totalNOfPages tokenBudget i
tokenCountForPage i
newTokenBudget tokenBudget tokenCountForPage
newTokenBudget
lastPageIdxIncl i
tokenBudget newTokenBudget
tokenBudget availableTokenBudget
i firstPageIdx i tokenBudget i
tokenCountForPage i
newTokenBudget tokenBudget tokenCountForPage
newTokenBudget
firstPageIdx i
tokenBudget newTokenBudget
i lastPageIdxIncl i totalNOfPages tokenBudget i
tokenCountForPage i
newTokenBudget tokenBudget tokenCountForPage
newTokenBudget
lastPageIdxIncl i
tokenBudget newTokenBudget
firstPageIdx lastPageIdxIncl budgetLeft tokenBudget
docLines
rangeToPreserve OffsetRange
s
pageSize
opts CurrentFileOptions
ResultOffsetRange
linesToPreserve docLinesrangeToPreservestart rangeToPreserveendExclusive
availableTokenBudget optsmaxTokens linesToPreserve computeTokens
availableTokenBudget
Result
firstPageIdx lastPageIdxIncl
docLines
rangeToPreserve
pageSize
availableTokenBudget
computeTokens
optsprioritizeAboveCursor
optsuseLeftoverBudgetFromAbove
linesOffsetStart firstPageIdx pageSize
linesOffsetEndExcl lastPageIdxIncl pageSize
Result linesOffsetStart linesOffsetEndExcl
lines
keptRange OffsetRange
currentDocLines
areaAroundCodeToEdit
areaAroundEditWindowLinesRange OffsetRange
s
pageSize
opts CurrentFileOptions
ResultClippedDocument
r
currentDocLines
areaAroundEditWindowLinesRange
computeTokens
pageSize
opts
r
r
rangeToKeep rval
taggedCurrentFileContent
currentDocLinesrangeToKeepstart areaAroundEditWindowLinesRangestart
areaAroundCodeToEdit
currentDocLinesareaAroundEditWindowLinesRangeendExclusive rangeToKeependExclusive
keptRange
rangeToKeepstart
rangeToKeepstart taggedCurrentFileContentlength
Result taggedCurrentFileContent keptRange
lines option xtabPromptOptionsIncludeLineNumbersOption
option
xtabPromptOptionsIncludeLineNumbersOptionWithSpaceAfter
linesline idx
xtabPromptOptionsIncludeLineNumbersOptionWithoutSpace
linesline idx
xtabPromptOptionsIncludeLineNumbersOptionNone
lines
option
currentDocument CurrentDocument
editWindowLinesRange OffsetRange
areaAroundEditWindowLinesRange OffsetRange
promptOptions xtabPromptOptionsPromptOptions
s
opts
includeLineNumbers
areaAroundCodeToEdit xtabPromptOptionsIncludeLineNumbersOption
currentFileContent xtabPromptOptionsIncludeLineNumbersOption
contentWithCursorAsLinesOriginal
addCursorTagEdit StringEditStringReplacementcurrentDocumentcursorOffset PromptTags
contentWithCursor addCursorTagEditcurrentDocumentcontent
contentWithCursor
contentWithCursorAsLines contentWithCursorAsLinesOriginal optsincludeLineNumbersareaAroundCodeToEdit
editWindowWithCursorAsLines contentWithCursorAsLineseditWindowLinesRangestart editWindowLinesRangeendExclusive
areaAroundCodeToEdit
PromptTagsstart
contentWithCursorAsLinesareaAroundEditWindowLinesRangestart editWindowLinesRangestart
PromptTagsstart
editWindowWithCursorAsLines
PromptTagsend
contentWithCursorAsLineseditWindowLinesRangeendExclusive areaAroundEditWindowLinesRangeendExclusive
PromptTagsend
currentFileContentSourceLines promptOptionscurrentFileincludeCursorTag
contentWithCursorAsLinesOriginal
currentDocumentlines
currentFileContentWithCursorLines currentFileContentSourceLines optsincludeLineNumberscurrentFileContent
currentFileContentLines currentDocumentlines optsincludeLineNumberscurrentFileContent
areaAroundCodeToEditForCurrentFile
promptOptionscurrentFileincludeTags optsincludeLineNumberscurrentFileContent optsincludeLineNumbersareaAroundCodeToEdit
areaAroundCodeToEditForCurrentFile areaAroundCodeToEdit
editWindowLines currentFileContentWithCursorLineseditWindowLinesRangestart editWindowLinesRangeendExclusive
areaAroundCodeToEditForCurrentFile
currentFileContentWithCursorLinesareaAroundEditWindowLinesRangestart editWindowLinesRangestart
editWindowLines
currentFileContentWithCursorLineseditWindowLinesRangeendExclusive areaAroundEditWindowLinesRangeendExclusive
taggedCurrentFileContentResult
currentFileContentLines
areaAroundCodeToEditForCurrentFile
areaAroundEditWindowLinesRange
computeTokens
promptOptionspagedClippingpageSize
promptOptionscurrentFile
taggedCurrentFileContentResultclippedTaggedCurrentDoc
clippedTaggedCurrentDoc
areaAroundCodeToEdit areaAroundCodeToEdit