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 { NodeType, BaseNode, createTextNode, parse } from './parser.js';
import { ConvertCommandError, SubstituteAliasError } from './errors.js';
export * from './errors.js';
export type Token = {
text: string;
node: BaseNode;
originalNode: BaseNode;
};
export type Command = {
tokens: Token[];
tree: BaseNode;
originalTree: BaseNode;
Record
descendantAtIndex
node BaseNode
index
type NodeType
BaseNode
nodestartIndex index index nodeendIndex
descendant nodechildren
child child index type
Boolean
descendant
descendant
type nodetype type node
createTextToken
command Command
index
text
originalNode BaseNode
Token
tree originalTree tokens command
indexDiff
tokenIndex tokens
token index tokenoriginalNodestartIndex
token tokenstokenIndex
tokenIndex
indexDiff tokennodestartIndex tokenoriginalNodestartIndex
tokenIndex
indexDiff treetextlength originalTreetextlength
indexDiff tokennodeendIndex tokenoriginalNodeendIndex
originalNode
originalNode originalTreetext index text
node text index indexDiff text
text
convertCommandNodeToCommand tree BaseNode Command
treetype NodeTypeCommand
command
originalTree tree
tree
tokens treechildrenchild
originalNode child
node child
text childinnerText
children endIndex text tree
childrenlength childrenchildrenlength endIndex
endIndex
text
commandtokenscommand endIndex
command
shiftByAmount node BaseNode shift BaseNode
node
startIndex nodestartIndex shift
endIndex nodeendIndex shift
children nodechildrenchild child shift
substituteAlias
command Command
token Token
alias
Command
commandtokenst t token
tree command
preAliasChars tokennodestartIndex treestartIndex
postAliasChars tokennodeendIndex treeendIndex
preAliasText
postAliasText postAliasChars
commandBuffer
parseTree commandBuffer treestartIndex
parseTreechildrenlength
newCommand parseTreechildren
aliasStart aliasEnd
tokennodestartIndex
tokennodestartIndex aliaslength
tokenIndexDiff
lastTokenInAlias
tokens newCommandtokensnewToken index
tokenInAlias
aliasStart newTokennodeendIndex
newTokennodestartIndex aliasEnd
tokenIndexDiff tokenInAlias lastTokenInAlias
originalNode commandtokensindex tokenIndexDiff
lastTokenInAlias tokenInAlias
newToken originalNode
newCommandtokenslength commandtokenslength tokenIndexDiff
originalTree commandoriginalTree
tree newCommandtree
tokens
expandCommand
command Command
_cursorIndex
aliases AliasMap
Command
expanded command
usedAliases
name expandedtokens
expandedtokenslength
name
aliasesnametext
usedAliasesnametext
aliasValue aliasesnametext
expanded expanded name aliasValue
_err
usedAliasesnametext
name expandedtokens
expanded
getCommand
buffer
aliases AliasMap
cursorIndex
Command
index cursorIndex bufferlength cursorIndex
parseTree buffer
commandNode parseTree index NodeTypeCommand
commandNode
command commandNode
command index aliases
statements
NodeTypeProgram
NodeTypeCompoundStatement
NodeTypeSubshell
NodeTypePipeline
NodeTypeList
NodeTypeCommand
getTopLevelCommands parseTree BaseNode Command
parseTreetype NodeTypeCommand
parseTree
statementsparseTreetype
commands Command
i i parseTreechildrenlength i
commandsparseTreechildreni
commands
getAllCommandsWithAlias
buffer
aliases AliasMap
Command
parseTree buffer
commands parseTree
commandscommand
command commandtreetextlength aliases