Это 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,PromptPiece,SystemMessage,UserMessage,typePromptElementProps}from'@vscode/prompt-tsx';import{IEnvService}from'../../../../platform/env/common/envService';import{ITerminalService}from'../../../../platform/terminal/common/terminalService';import{ basename, join }from'../../../../util/vs/base/common/path';import{URI}from
commandLine
output
props
@ _terminalService
props
override
cwd cwd
commandLine
output
verifiedContextUris
verifiedContextDirectoryUris
nonExistentContextUris
additionalContext
props
@ _terminalService
props
override state
fileVariables uri
fileVariables
props
@ _terminalService
props
props
@ _envService
props
You are a programmer who specializes in using the command line. Your task is to respond with a list of files that you need access to in order to fix the command. Carefully consider the command line, output and current working directory in your response.
<br/>
<SafetyRules/>
<ResponseTranslationRules/>
{
`
You MUST respond ONLY with a JSON array in the format:
\`\`\`json
[
{
fileName: string
},
...
]
\`\`\`
Follow these rules in your response:
- Use an absolute path if you know the exact location of the file.
- Do NOT include any introduction, description or prose. Only include the paths.
`
`The following command just failed when run in the terminal \`${this.props.commandLine}\`.
Here is the output of the command:
${(this.props.output ??[]).join()}`
You are a programmer who specializes in using the command line. Your task is to help the user fix a command that was run in the terminal by providing a list of fixed command suggestions. Carefully consider the command line, output and current working directory in your response.
<br/>
<SafetyRules/>
<ResponseTranslationRules/>
{
`
You MUST respond ONLY with a JSON array containing HIGHLY RELEVANT command suggestions in the format:
\`\`\`json
[
{
command: string,
description: string,
relevance: 'low' | 'medium' | 'high'
},
...
]
\`\`\`
Follow these rules in your response:
- You MUST NOT suggest commands that use non-existent files.
- Under no circumstance will you include an summary, description or any prose whatsoever.
- Do NOT repeat the command and/or output.
- Provide a maximum of 10 suggestions, starting with the most relevant.
- When there is text that needs to be replaced in the suggestion, prefix the text with '{', suffix the text with '}' and use underscores instead of whitespace. Only do this when the replacement text is NOT provided.
- Avoid providing suggestions that do exactly the same thing like aliases.
- Only provide suggestions for the active shell and avoid shelling out where possible.
- The suggestions must be relevant. For example, if the command is a build command, the suggestions must look like build commands, not test commands.
- If the command is related to a particular programming language, do not include suggestions for different languages.
- NEVER suggest to change directory to the current working directory.
`
`The following command just failed when run in the terminal \`${this.props.commandLine}\`.
Here is the output of the command:
${(this.props.output ??[]).join()}`
:
''
}
</UserMessage>
<TerminalLastCommandpriority={800}/>
<UserMessagepriority={700}>
{
`${this.props.verifiedContextDirectoryUris.length >0?`The following directories exist:\n\n${this.props.verifiedContextDirectoryUris.map(uri =>`- ${uri.path}`).join('\n')}`:''}`
}
</UserMessage>
<UserMessagepriority={700}>
{
`${this.props.nonExistentContextUris.length >0?`The following files DO NOT exist and cannot be used in the suggestion:\n\n${this.props.nonExistentContextUris.map(uri =>`- ${uri.path}`).join('\n')}`:''}`
}
</UserMessage>
{
...
}
</>
)
;
}
}
class
PythonModuleError
extends
PromptElement
{
render
(
)
{
return
(
<>
<SystemMessagepriority={this.props.priority}>
{
`
Follow these guidelines for python:
- NEVER recommend using "pip install" directly, always recommend "python -m pip install"
- The following are pypi modules: ruff, pylint, black, autopep8, etc
- If the error is module not found, recommend installing the module using "python -m pip install" command.
- If activate is not available create an environment using "python -m venv .venv".
`