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 { filepaths, folders } from '@fig/autocomplete-generators';
import * as Internal from '../shared/internal';
import {
firstMatchingToken,
makeArray,
SpecLocationSource,
SuggestionFlag,
SuggestionFlags,
} from '../shared/utils';
// import {
// executeCommand,
// executeLoginShell,
// getSetting,
// isInDevMode,
// SETTINGS,
// } from '../../api-bindings-wrappers/src';
import {
Command,
substituteAlias,
} from '../shell-parser';
// import {
// getSpecPath,
// loadSubcommandCached,
// serializeSpecLocation,
// } from './loadSpec.js';
import {
ParseArgumentsError,
ParsingHistoryError,
UpdateStateError
convertSubcommand initializeDefault
exec
IFigExecuteExternals
args InternalArg
index
variadicCount
TokenType
None
Subcommand
Option
OptionArg
SubcommandArg
Composite
text
type ExcludeTokenType TokenTypeComposite
tokenName
text
type TokenTypeSubcommand
spec InternalSubcommand
specLocation InternalSpecLocation
text
type TokenTypeComposite
subtokens BasicAnnotation
BasicAnnotation CompositeAnnotation
completionObj InternalSubcommand
optionArgState ArgArrayState
subcommandArgState ArgArrayState
annotations Annotation
passedOptions InternalOption
commandIndex
haveEnteredSubcommandArgs
isEndOfOptions
completionObj InternalSubcommand
currentArg InternalArg
passedOptions InternalOption
searchTerm
commandIndex
suggestionFlags SuggestionFlags
annotations Annotation
createArgState args InternalArg ArgArrayState
updatedArgs InternalArg
arg args
updatedGenerators
i i arggeneratorslength i
generator arggeneratorsi
templateArray generatortemplate
updatedGenerator FigGenerator
templateArray templateArray
updatedGenerator template
templateArray
updatedGenerator template
templateArray
updatedGenerator template
updatedGenerator generator generatorfilterTemplateSuggestions
updatedGeneratorfilterTemplateSuggestions
generatorfilterTemplateSuggestions
updatedGeneratorsupdatedGenerator generator
updatedArgs
arg
generators updatedGenerators
args updatedArgslength updatedArgs
index
flattenAnnotations
annotations Annotation
BasicAnnotation
result BasicAnnotation
i i annotationslength i
annotation annotationsi
annotationtype TokenTypeComposite
resultannotationsubtokens
resultannotation
result
a InternalOption b InternalOption
anamename bnamename
option InternalOption
options InternalOption
options
count opt option opt count count
updateArgState argState ArgArrayState ArgArrayState
args index variadicCount argState
args argsindex argsindexisVariadic
args index variadicCount variadicCount
args argsindex
argStateargs argStateargsargStateindex
isMandatoryOrVariadic arg InternalArg
arg argisVariadic argisOptional
preferOptionArg state ArgumentParserState
stateoptionArgState
statesubcommandArgState
getArgState state ArgumentParserState ArgArrayState
state stateoptionArgState statesubcommandArgState
canConsumeOptions state ArgumentParserState
subcommandArgState
optionArgState
isEndOfOptions
haveEnteredSubcommandArgs
completionObj
state
haveEnteredSubcommandArgs
completionObjparserDirectivesoptionsMustPrecedeArguments
isEndOfOptions
subcommandArg subcommandArgState
optionArg optionArgState
optionArgState
optionArgisVariadic
optionArgStatevariadicCount
optionArgoptionsCanBreakVariadicArg
subcommandArg
subcommandArgStatevariadicCount
subcommandArgoptionsCanBreakVariadicArg
findOption
spec InternalSubcommand
token
InternalOption
option specoptionstoken specpersistentOptionstoken
option
option
findSubcommand
spec InternalSubcommand
token
InternalSubcommand
subcommand specsubcommandstoken
subcommand
subcommand
updateStateForSubcommand
state ArgumentParserState
token
isFinalToken
ArgumentParserState
completionObj haveEnteredSubcommandArgs state
completionObjsubcommands
haveEnteredSubcommandArgs
newCompletionObj statecompletionObj token
annotations Annotation
stateannotations
text token type TokenTypeSubcommand
isFinalToken
state annotations
newCompletionObjparserDirectives completionObjparserDirectives
newCompletionObjparserDirectives completionObjparserDirectives
Object
newCompletionObjpersistentOptions
completionObjpersistentOptions
state
annotations
completionObj newCompletionObj
passedOptions
optionArgState
subcommandArgState newCompletionObjargs
updateStateForOption
state ArgumentParserState
token
isFinalToken
ArgumentParserState
option statecompletionObj token
isRepeatable option
isRepeatable
isRepeatable
isRepeatable isRepeatable
currentRepetitions option statepassedOptions
currentRepetitions isRepeatable
annotations Annotation
stateannotations
text token type TokenTypeOption
isFinalToken
state annotations
state
annotations
passedOptions statepassedOptions option
optionArgState optionargs
updateStateForOptionArg
state ArgumentParserState
token
isFinalToken
ArgumentParserState
stateoptionArgState
annotations Annotation
stateannotations
text token type TokenTypeOptionArg
isFinalToken
state annotations
state
annotations
optionArgState stateoptionArgState
updateStateForSubcommandArg
state ArgumentParserState
token
isFinalToken
ArgumentParserState
statesubcommandArgState
annotations Annotation
stateannotations
text token type TokenTypeSubcommandArg
isFinalToken
state annotations
state
annotations
subcommandArgState statesubcommandArgState
haveEnteredSubcommandArgs
updateStateForChainedOptionToken
state ArgumentParserState
token
isFinalToken
ArgumentParserState
isFinalToken token
token
state
isEndOfOptions
annotations
stateannotations
text token type TokenTypeOption
optionArgState args index
parserDirectives statecompletionObj
isLongOption
parserDirectivesflagsArePosixNoncompliant
token
token
isLongOption
optionSeparators
parserDirectivesoptionArgSeparators
separatorMatches token optionSeparators
separatorMatches
matchedSeparator separatorMatches
flag optionArgParts tokenmatchedSeparator
optionArg optionArgPartsmatchedSeparator
optionState state flag
optionStateoptionArgStateargslength
finalState
optionState
optionArg
isFinalToken
finalState
annotations
stateannotations
type TokenTypeComposite
text token
subtokens
type TokenTypeOption
text
tokenName flag
type TokenTypeOptionArg text optionArg
finalState state token isFinalToken
option statecompletionObj token
optionrequiresEquals optionrequiresSeparator
finalState optionArgState args index
finalState
optionState state
optionArg
subtokens BasicAnnotation
passedOptions state
i i tokenlength i
optionFlag remaining tokeni
passedOptions optionStatepassedOptions
optionState optionState optionFlag
err
i
optionArg tokeni
err
subtokens
type TokenTypeOption
text i optionFlag tokeni
tokenName optionFlag
optionStateoptionArgState
optionArg remaining
optionArg
optionStateoptionArgStateargslength
optionState optionState optionArg isFinalToken
passedOptions optionStatepassedOptions
subtokens type TokenTypeOptionArg text optionArg
optionState
annotations
stateannotations
type TokenTypeComposite
text token
subtokens
passedOptions isFinalToken passedOptions optionStatepassedOptions
canConsumeSubcommands state ArgumentParserState
stateoptionArgState
statehaveEnteredSubcommandArgs
state ArgumentParserState
token
isFinalToken
ArgumentParserState
state
state token isFinalToken
_err
state
state token isFinalToken
_err
state
state token isFinalToken
_err
state token isFinalToken
getInitialState
spec InternalSubcommand
text
specLocation InternalSpecLocation
ArgumentParserState
completionObj spec
passedOptions
annotations
text specLocation
text type TokenTypeSubcommand spec specLocation
commandIndex
optionArgState
subcommandArgState specargs
haveEnteredSubcommandArgs
isEndOfOptions
historyExecuteShellCommand Fig
isParsingHistory
executeExternals IFigExecuteExternals
isParsingHistory
historyExecuteShellCommand
executeExternalsexecuteCommand
getResultFromState
state ArgumentParserState
ArgumentParserResult
completionObj passedOptions commandIndex annotations state
lastAnnotation Annotation
annotationsannotationslength
argState state
searchTerm lastAnnotationtext
onlySuggestArgs stateisEndOfOptions
lastAnnotationtype TokenTypeComposite
argState stateoptionArgState
lastSubtoken
lastAnnotationsubtokenslastAnnotationsubtokenslength
lastSubtokentype TokenTypeOptionArg
searchTerm lastSubtokentext
onlySuggestArgs
currentArg argState
suggestionFlags SuggestionFlags SuggestionFlagArgs
onlySuggestArgs
state
suggestionFlags SuggestionFlagSubcommands
state
suggestionFlags SuggestionFlagOptions
completionObj
passedOptions
commandIndex
annotations
currentArg
searchTerm
suggestionFlags
initialParserState
name
subcommands
options
persistentOptions
parserDirectives
args
parseArgumentsCached
command Command
context FigShellContext
spec FigSpec
executeExternals IFigExecuteExternals
isParsingHistory
startIndex
ArgumentParserState
exec isParsingHistory executeExternals
currentCommand command
tokens currentCommandtokensstartIndex
specPath FigSpecLocation type name
spec specPath
state ArgumentParserState
spec initializeDefault
tokenstext
specPath
substitutedAliases
aliasError Error
i i tokenslength i
i tokenslength
token tokensitext
lastArgObject state
lastArgType state
TokenTypeOptionArg
TokenTypeSubcommandArg
lastState state
state state token
state
annotations state
lastAnnotation annotationsannotationslength
lastType
lastAnnotationtype TokenTypeComposite
lastAnnotationsubtokenslastAnnotationsubtokenslength type
lastAnnotationtype
lastType lastArgType
lastArgObjectparserDirectivesalias
substitutedAliasestoken
alias lastArgObjectparserDirectives
aliasValue
alias alias token exec
currentCommand command tokensi aliasValue
substitutedAliasestoken
tokens currentCommandtokensstartIndex
state lastState
i
err
err
err
err
substitutedAliasessize
err
aliasError err Error
aliasError
aliasError
substitutedAliases
state
firstTokenSpec InternalSubcommand
name
subcommands
options
persistentOptions
loadSpec
args
name
generators
_tokens _exec context
result FigSuggestion
contextcurrentProcess
commands
command
executable contextcurrentProcess
result commandscommandString
splitIndex commandString
name commandString splitIndex
description commandStringsplitIndex
name description type
contextcurrentProcess
commands
command
executable contextcurrentProcess
result commands
name name type
contextcurrentProcess
commands
command
executable contextcurrentProcess
result commands
name name type
names
resultsuggestion
namessuggestionname
namessuggestionname
cache
strategy
ttl
parserDirectives
executeLoginShell
command
executable
command
executable
resolve reject
error ExecException stdout stderr
error
stderr
stdout
parseArguments
command Command
context FigShellContext
spec FigSpec
executeExternals IFigExecuteExternals
isParsingHistory
ArgumentParserResult
tokens commandtokens
command tokenslength
tokenslength
showFirstCommandCompletion
spec showFirstCommandCompletion
firstTokenSpec
firstTokenSpec args
specPath name type SpecLocationSource
tokenstext
tokenstext
specPath name type SpecLocationSource
specPath name type SpecLocationSource
spec tokenstext specPath
state
command
context
spec
executeExternals
isParsingHistory
finalToken tokenstokenslength text
state state finalToken
_err
state
state
annotations
stateannotations
type TokenTypeNone text finalToken
state