Это 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 minimist from'minimist';import{ isWindows }from'../../../base/common/platform.js';import{ localize }from'../../../nls.js';import{ NativeParsedArgs }from'../common/argv.js';/**
* This code is also used by standalone cli's. Avoid adding any other dependencies.
*/const helpCategories ={
o:localize('optionsUpperCase',"Options"),
e:localize('extensionsManagement',"Extensions Management"),
t:localize('troubleshooting'
m
type OptionType
alias
deprecates
args
description
deprecationMessage
allowEmptyValue
cat helpCategories
global
type
description
deprecationMessage
options OptionDescriptionsRequired
Option
Option
Option
Subcommand
OptionDescriptionsRequiredNativeParsedArgs
type
description
options
type description
type cat alias args description
type cat alias args description
type cat description
type cat alias description
type cat alias description
type args description
type alias description
type
description
options
type args description
type
type
type
description
options
type args description
type
type
type
description
options
type args description
type
type
user
type
options
login
type
options
provider type
type
type cat alias args description
type cat alias args description
type cat alias args description
type cat args description
type cat alias args description
type cat alias description
type cat alias description
type cat deprecates description
type cat alias description
type
type cat args description
type cat args description
type args description
type cat alias description
type deprecates cat args description
type
type
type
type cat description
type
type
type
type cat description
type allowEmptyValue cat description args
type cat args description
type cat description
type cat args description
type cat description
type allowEmptyValue cat args description
type cat args description
type cat alias description
type cat global description
type cat args global description
type alias cat description
type cat description
type
type
type
type
type
type
type deprecates cat description
type cat args description
type cat description args
type allowEmptyValue deprecates args cat description
type allowEmptyValue deprecates args cat description
type cat description
type cat description
type cat description
type
type cat args description
type cat description
type allowEmptyValue
type cat args
type cat args
type
type
type
type
type
type
type
type allowEmptyValue
type allowEmptyValue
type allowEmptyValue
type allowEmptyValue
type allowEmptyValue
type allowEmptyValue
type
type allowEmptyValue
type allowEmptyValue
type
type
type
type
type
type
type
type
type
type
type cat description
type deprecates
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type alias
type
type
type
type
type allowEmptyValue
type allowEmptyValue
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
type
_ type
id
id usedValue
id
deprecatedId message
getSubcommandReportercommand ErrorReporter
ignoringReporter
args options OptionDescriptions errorReporter ErrorReporter ignoringReporter
firstPossibleCommand argsa i alength a optionsa optionsa type
alias key
stringOptions
booleanOptions
globalOptions Record Option Option Option
command SubcommandRecord
optionId options
o optionsoptionId
otype
optionId firstPossibleCommand
command o
oalias
aliasoptionId oalias
otype otype
stringOptionsoptionId
odeprecates
stringOptionsodeprecates
otype
booleanOptionsoptionId
odeprecates
booleanOptionsodeprecates
oglobal
globalOptionsoptionId o
command firstPossibleCommand
options Record Option Option Option SubcommandRecord globalOptions
optionId commandoptions
optionsoptionId commandoptionsoptionId
newArgs argsa a firstPossibleCommand
reporter errorReportergetSubcommandReporter errorReporterfirstPossibleCommand
subcommandOptions newArgs options OptionDescriptionsRecord reporter
firstPossibleCommand subcommandOptions
_
parsedArgs args stringOptions booleanOptions alias
cleanedArgs Record
remainingArgs Record parsedArgs
cleanedArgs_ parsedArgs_arg argarg arglength
remainingArgs_
optionId options
o optionsoptionId
otype
oalias
remainingArgsoalias
val remainingArgsoptionId
odeprecates
deprecatedId odeprecates
remainingArgsdeprecatedId
val
val remainingArgsdeprecatedId
val
errorReporterdeprecatedId odeprecationMessage optionId
remainingArgsdeprecatedId
val
otype
val
val val
oallowEmptyValue
sanitized val v vlength
sanitizedlength val length
errorReporteroptionId
val sanitizedlength sanitized
otype
val
val val
errorReporteroptionId val
val oallowEmptyValue
errorReporteroptionId
val
cleanedArgsoptionId val
odeprecationMessage
errorReporteroptionId odeprecationMessage
remainingArgsoptionId
key remainingArgs
errorReporterkey
cleanedArgs
optionId option Option Option Option
args
optionargs
optionargs
args
args
optionalias
options OptionDescriptions Record Option Option Option columns
usageTexts
optionId options
o optionsoptionId options Option Option Option
usageText optionId o
usageTextsusageText odescription
usageTexts columns
usageTexts columns
maxLength usageTextsprevious e Mathprevious elength
argLength maxLength
columns argLength
usageTextsr ut r
descriptionColumns columns argLength
result
ut usageTexts
usage ut
wrappedDescription ut descriptionColumns
keyPadding argLength usagelength
result usage keyPadding wrappedDescription
i i wrappedDescriptionlength i
resultargLength wrappedDescriptioni
result
count
count
text columns
lines
textlength
index textlength columns textlength text columns
index
index columns
line text index
text textindex
linesline
lines
productName executableName version options OptionDescriptions Record Option Option Option SubcommandRecord capabilities noPipe noInputFiles isChat
columns processstdoutisTTY processstdoutcolumns
inputFiles capabilitiesnoInputFiles capabilitiesisChat
subcommand capabilitiesisChat
help
help
help
help
capabilitiesnoPipe
helpexecutableName capabilitiesisChat
help
optionsByCategory helpCategories Record Option Option Option
subcommands command description
optionId options
o optionsoptionId options Option Option Option SubcommandRecord
otype
odescription
subcommands command optionId description odescription
odescription ocat
cat ocat
optionsByCat optionsByCategorycat
optionsByCat
optionsByCategorycat optionsByCat
optionsByCatoptionId o
helpCategoryKey optionsByCategory
key helpCategorieshelpCategoryKey
categoryOptions optionsByCategorykey
categoryOptions
helphelpCategorieskey
helpcategoryOptions columns
help
subcommandslength
help
helpsubcommandss scommand sdescription columns
help
help
executableName isChat
example
isWindows
isChat
example
example
isChat
example
example
example
version commit
'Pass in a prompt to run in a chat session in the current working directory.'
,
:
{
'_'
:
{
:
'string[]'
,
:
localize
(
'prompt'
,
"The prompt to use as chat."
)
}
,
'mode'
:
{
:
'string'
,
:
'o'
,
:
'm'
,
:
'mode'
,
:
localize
(
'chatMode'
,
"The mode to use for the chat session. Available options: 'ask', 'edit', 'agent', or the identifier of a custom mode. Defaults to 'agent'."
)
}
,
'add-file'
:
{
:
'string[]'
,
:
'o'
,
:
'a'
,
:
'path'
,
:
localize
(
'addFile'
,
"Add files as context to the chat session."
)
}
,
'maximize'
:
{
:
'boolean'
,
:
'o'
,
:
localize
(
'chatMaximize'
,
"Maximize the chat session view."
)
}
,
'reuse-window'
:
{
:
'boolean'
,
:
'o'
,
:
'r'
,
:
localize
(
'reuseWindowForChat'
,
"Force to use the last active window for the chat session."
)
}
,
'new-window'
:
{
:
'boolean'
,
:
'o'
,
:
'n'
,
:
localize
(
'newWindowForChat'
,
"Force to open an empty window for the chat session."
)
}
,
'profile'
:
{
:
'string'
,
'cat'
:
'o'
,
:
'profileName'
,
:
localize
(
'profileName'
,
"Opens the provided folder or workspace with the given profile and associates the profile with the workspace. If the profile does not exist, a new empty one is created."
)
}
,
'help'
:
{
:
'boolean'
,
:
'h'
,
:
localize
(
'help'
,
"Print usage."
)
}
}
}
,
'serve-web'
:
{
:
'subcommand'
,
:
'Run a server that displays the editor UI in browsers.'
,
:
{
'cli-data-dir'
:
{
:
'string'
,
:
'dir'
,
:
localize
(
'cliDataDir'
,
"Directory where CLI metadata should be stored."
)
}
,
'disable-telemetry'
:
{
:
'boolean'
}
,
'telemetry-level'
:
{
:
'string'
}
,
}
}
,
'agent'
:
{
:
'subcommand'
,
:
'Start and interact with AI agent hosts.'
,
:
{
'cli-data-dir'
:
{
:
'string'
,
:
'dir'
,
:
localize
(
'cliDataDir'
,
"Directory where CLI metadata should be stored."
)
}
,
'disable-telemetry'
:
{
:
'boolean'
}
,
'telemetry-level'
:
{
:
'string'
}
,
}
}
,
'tunnel'
:
{
:
'subcommand'
,
:
'Make the current machine accessible from vscode.dev or other machines through a secure tunnel.'
,
:
{
'cli-data-dir'
:
{
:
'string'
,
:
'dir'
,
:
localize
(
'cliDataDir'
,
"Directory where CLI metadata should be stored."
)
}
,
'disable-telemetry'
:
{
:
'boolean'
}
,
'telemetry-level'
:
{
:
'string'
}
,
:
{
:
'subcommand'
,
:
{
:
{
:
'subcommand'
,
:
{
:
{
:
'string'
}
,
'access-token'
:
{
:
'string'
}
}
}
}
}
}
}
,
'diff'
:
{
:
'boolean'
,
:
'o'
,
:
'd'
,
:
[
'file'
,
'file'
]
,
:
localize
(
'diff'
,
"Compare two files with each other."
)
}
,
'merge'
:
{
:
'boolean'
,
:
'o'
,
:
'm'
,
:
[
'path1'
,
'path2'
,
'base'
,
'result'
]
,
:
localize
(
'merge'
,
"Perform a three-way merge by providing paths for two modified versions of a file, the common origin of both modified versions and the output file to save merge results."
)
}
,
'add'
:
{
:
'boolean'
,
:
'o'
,
:
'a'
,
:
'folder'
,
:
localize
(
'add'
,
"Add folder(s) to the last active window."
)
}
,
'remove'
:
{
:
'boolean'
,
:
'o'
,
:
'folder'
,
:
localize
(
'remove'
,
"Remove folder(s) from the last active window."
)
}
,
'goto'
:
{
:
'boolean'
,
:
'o'
,
:
'g'
,
:
'file:line[:character]'
,
:
localize
(
'goto'
,
"Open a file at the path on the specified line and character position."
)
}
,
'new-window'
:
{
:
'boolean'
,
:
'o'
,
:
'n'
,
:
localize
(
'newWindow'
,
"Force to open a new window."
)
}
,
'reuse-window'
:
{
:
'boolean'
,
:
'o'
,
:
'r'
,
:
localize
(
'reuseWindow'
,
"Force to open a file or folder in an already opened window."
)
}
,
'agents'
:
{
:
'boolean'
,
:
'o'
,
:
[
'sessions'
]
,
:
localize
(
'agents'
,
"Opens the agents window."
)
}
,
'wait'
:
{
:
'boolean'
,
:
'o'
,
:
'w'
,
:
localize
(
'wait'
,
"Wait for the files to be closed before returning."
)
}
,
'waitMarkerFilePath'
:
{
:
'string'
}
,
'locale'
:
{
:
'string'
,
:
'o'
,
:
'locale'
,
:
localize
(
'locale'
,
"The locale to use (e.g. en-US or zh-TW)."
)
}
,
'user-data-dir'
:
{
:
'string'
,
:
'o'
,
:
'dir'
,
:
localize
(
'userDataDir'
,
"Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code."
)
}
,
'profile'
:
{
:
'string'
,
'cat'
:
'o'
,
:
'profileName'
,
:
localize
(
'profileName'
,
"Opens the provided folder or workspace with the given profile and associates the profile with the workspace. If the profile does not exist, a new empty one is created."
)
}
,
'help'
:
{
:
'boolean'
,
:
'o'
,
:
'h'
,
:
localize
(
'help'
,
"Print usage."
)
}
,
'extensions-dir'
:
{
:
'string'
,
:
[
'extensionHomePath'
]
,
:
'e'
,
:
'dir'
,
:
localize
(
'extensionHomePath'
,
"Set the root path for extensions."
)
}
,
'extensions-download-dir'
:
{
:
'string'
}
,
'builtin-extensions-dir'
:
{
:
'string'
}
,
'shared-data-dir'
:
{
:
'string'
}
,
'list-extensions'
:
{
:
'boolean'
,
:
'e'
,
:
localize
(
'listExtensions'
,
"List the installed extensions."
)
}
,
'agent-plugins-dir'
:
{
:
'string'
}
,
'agents-user-data-dir'
:
{
:
'string'
}
,
'agents-extensions-dir'
:
{
:
'string'
}
,
'show-versions'
:
{
:
'boolean'
,
:
'e'
,
:
localize
(
'showVersions'
,
"Show versions of installed extensions, when using --list-extensions."
)
}
,
'category'
:
{
:
'string'
,
:
true
,
:
'e'
,
:
localize
(
'category'
,
"Filters installed extensions by provided category, when using --list-extensions."
)
,
:
'category'
}
,
'install-extension'
:
{
:
'string[]'
,
:
'e'
,
:
'ext-id | path'
,
:
localize
(
'installExtension'
,
"Installs or updates an extension. The argument is either an extension id or a path to a VSIX. The identifier of an extension is '${publisher}.${name}'. Use '--force' argument to update to latest version. To install a specific version provide '@${version}'. For example: 'vscode.csharp@1.2.3'."
)
}
,
'pre-release'
:
{
:
'boolean'
,
:
'e'
,
:
localize
(
'install prerelease'
,
"Installs the pre-release version of the extension, when using --install-extension"
)
}
,
'uninstall-extension'
:
{
:
'string[]'
,
:
'e'
,
:
'ext-id'
,
:
localize
(
'uninstallExtension'
,
"Uninstalls an extension."
)
}
,
'update-extensions'
:
{
:
'boolean'
,
:
'e'
,
:
localize
(
'updateExtensions'
,
"Update the installed extensions."
)
}
,
'enable-proposed-api'
:
{
:
'string[]'
,
:
true
,
:
'e'
,
:
'ext-id'
,
:
localize
(
'experimentalApis'
,
"Enables proposed API features for extensions. Can receive one or more extension IDs to enable individually."
)
}
,
'add-mcp'
:
{
:
'string[]'
,
:
'm'
,
:
'json'
,
:
localize
(
'addMcp'
,
"Adds a Model Context Protocol server definition to the user profile. Accepts JSON input in the form '{\"name\":\"server-name\",\"command\":...}'"
)
}
,
'version'
:
{
:
'boolean'
,
:
't'
,
:
'v'
,
:
localize
(
'version'
,
"Print version."
)
}
,
'verbose'
:
{
:
'boolean'
,
:
't'
,
:
true
,
:
localize
(
'verbose'
,
"Print verbose output (implies --wait)."
)
}
,
'log'
:
{
:
'string[]'
,
:
't'
,
:
'level'
,
:
true
,
:
localize
(
'log'
,
"Log level to use. Default is 'info'. Allowed values are 'critical', 'error', 'warn', 'info', 'debug', 'trace', 'off'. You can also configure the log level of an extension by passing extension id and log level in the following format: '${publisher}.${name}:${logLevel}'. For example: 'vscode.csharp:trace'. Can receive one or more such entries."
)
}
,
'status'
:
{
:
'boolean'
,
:
's'
,
:
't'
,
:
localize
(
'status'
,
"Print process usage and diagnostics information."
)
}
,
'prof-startup'
:
{
:
'boolean'
,
:
't'
,
:
localize
(
'prof-startup'
,
"Run CPU profiler during startup."
)
}
,
'prof-append-timers'
:
{
:
'string'
}
,
'prof-duration-markers'
:
{
:
'string[]'
}
,
'prof-duration-markers-file'
:
{
:
'string'
}
,
'no-cached-data'
:
{
:
'boolean'
}
,
'prof-startup-prefix'
:
{
:
'string'
}
,
'prof-v8-extensions'
:
{
:
'boolean'
}
,
'disable-extensions'
:
{
:
'boolean'
,
:
[
'disableExtensions'
]
,
:
't'
,
:
localize
(
'disableExtensions'
,
"Disable all installed extensions. This option is not persisted and is effective only when the command opens a new window."
)
}
,
'disable-extension'
:
{
:
'string[]'
,
:
't'
,
:
'ext-id'
,
:
localize
(
'disableExtension'
,
"Disable the provided extension. This option is not persisted and is effective only when the command opens a new window."
)
}
,
'sync'
:
{
:
'string'
,
:
't'
,
:
localize
(
'turn sync'
,
"Turn sync on or off."
)
,
:
[
'on | off'
]
}
,
'inspect-extensions'
:
{
:
'string'
,
:
true
,
:
[
'debugPluginHost'
]
,
:
'port'
,
:
't'
,
:
localize
(
'inspect-extensions'
,
"Allow debugging and profiling of extensions. Check the developer tools for the connection URI."
)
}
,
'inspect-brk-extensions'
:
{
:
'string'
,
:
true
,
:
[
'debugBrkPluginHost'
]
,
:
'port'
,
:
't'
,
:
localize
(
'inspect-brk-extensions'
,
"Allow debugging and profiling of extensions with the extension host being paused after start. Check the developer tools for the connection URI."
)
}
,
'disable-lcd-text'
:
{
:
'boolean'
,
:
't'
,
:
localize
(
'disableLCDText'
,
"Disable LCD font rendering."
)
}
,
'disable-gpu'
:
{
:
'boolean'
,
:
't'
,
:
localize
(
'disableGPU'
,
"Disable GPU hardware acceleration."
)
}
,
'disable-chromium-sandbox'
:
{
:
'boolean'
,
:
't'
,
:
localize
(
'disableChromiumSandbox'
,
"Use this option only when there is requirement to launch the application as sudo user on Linux or when running as an elevated user in an applocker environment on Windows."
)
}
,
'sandbox'
:
{
:
'boolean'
}
,
'locate-shell-integration-path'
:
{
:
'string'
,
:
't'
,
:
[
'shell'
]
,
:
localize
(
'locateShellIntegrationPath'
,
"Print the path to a terminal shell integration script. Allowed values are 'bash', 'pwsh', 'zsh' or 'fish'."
)
}
,
'telemetry'
:
{
:
'boolean'
,
:
't'
,
:
localize
(
'telemetry'
,
"Shows all telemetry events which VS code collects."
)
}
,
'remote'
:
{
:
'string'
,
:
true
}
,
'folder-uri'
:
{
:
'string[]'
,
:
'o'
,
:
'uri'
}
,
'file-uri'
:
{
:
'string[]'
,
:
'o'
,
:
'uri'
}
,
'locate-extension'
:
{
:
'string[]'
}
,
'extensionDevelopmentPath'
:
{
:
'string[]'
}
,
'extensionDevelopmentKind'
:
{
:
'string[]'
}
,
'extensionTestsPath'
:
{
:
'string'
}
,
'extensionEnvironment'
:
{
:
'string'
}
,
'debugId'
:
{
:
'string'
}
,
'debugRenderer'
:
{
:
'boolean'
}
,
'inspect-ptyhost'
:
{
:
'string'
,
:
true
}
,
'inspect-brk-ptyhost'
:
{
:
'string'
,
:
true
}
,
'inspect-agenthost'
:
{
:
'string'
,
:
true
}
,
'inspect-brk-agenthost'
:
{
:
'string'
,
:
true
}
,
'inspect-sharedprocess'
:
{
:
'string'
,
:
true
}
,
'inspect-brk-sharedprocess'
:
{
:
'string'
,
:
true
}
,
'export-default-configuration'
:
{
:
'string'
}
,
'export-policy-data'
:
{
:
'string'
,
:
true
}
,
'export-default-keybindings'
:
{
:
'string'
,
:
true
}
,
'install-source'
:
{
:
'string'
}
,
'enable-smoke-test-driver'
:
{
:
'boolean'
}
,
'skip-sessions-welcome'
:
{
:
'boolean'
}
,
'logExtensionHostCommunication'
:
{
:
'boolean'
}
,
'skip-release-notes'
:
{
:
'boolean'
}
,
'skip-welcome'
:
{
:
'boolean'
}
,
'disable-telemetry'
:
{
:
'boolean'
}
,
'telemetry-level'
:
{
:
'string'
}
,
'disable-updates'
:
{
:
'boolean'
}
,
'share-secrets-with-agents-app'
:
{
:
'boolean'
}
,
'transient'
:
{
:
'boolean'
,
:
't'
,
:
localize
(
'transient'
,
"Run with temporary data and extension directories, as if launched for the first time."
)
}
,
'use-inmemory-secretstorage'
:
{
:
'boolean'
,
:
[
'disable-keytar'
]
}
,
'password-store'
:
{
:
'string'
}
,
'disable-workspace-trust'
:
{
:
'boolean'
}
,
'disable-crash-reporter'
:
{
:
'boolean'
}
,
'crash-reporter-directory'
:
{
:
'string'
}
,
'crash-reporter-id'
:
{
:
'string'
}
,
'skip-add-to-recently-opened'
:
{
:
'boolean'
}
,
'open-url'
:
{
:
'boolean'
}
,
'file-write'
:
{
:
'boolean'
}
,
'file-chmod'
:
{
:
'boolean'
}
,
'install-builtin-extension'
:
{
:
'string[]'
}
,
'force'
:
{
:
'boolean'
}
,
'do-not-sync'
:
{
:
'boolean'
}
,
'do-not-include-pack-dependencies'
:
{
:
'boolean'
}
,
'trace'
:
{
:
'boolean'
}
,
'trace-memory-infra'
:
{
:
'boolean'
}
,
'trace-category-filter'
:
{
:
'string'
}
,
'trace-options'
:
{
:
'string'
}
,
'preserve-env'
:
{
:
'boolean'
}
,
'force-user-env'
:
{
:
'boolean'
}
,
'force-disable-user-env'
:
{
:
'boolean'
}
,
'open-devtools'
:
{
:
'boolean'
}
,
'disable-gpu-sandbox'
:
{
:
'boolean'
}
,
'logsPath'
:
{
:
'string'
}
,
'__enable-file-policy'
:
{
:
'boolean'
}
,
'editSessionId'
:
{
:
'string'
}
,
'continueOn'
:
{
:
'string'
}
,
'enable-coi'
:
{
:
'boolean'
}
,
'unresponsive-sample-interval'
:
{
:
'string'
}
,
'unresponsive-sample-period'
:
{
:
'string'
}
,
'enable-rdp-display-tracking'
:
{
:
'boolean'
}
,
'disable-layout-restore'
:
{
:
'boolean'
}
,
'disable-experiments'
:
{
:
'boolean'
}
,
// chromium flags
'no-proxy-server'
:
{
:
'boolean'
}
,
// Minimist incorrectly parses keys that start with `--no`