Это 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}from'@vscode/prompt-tsx';import{IChatEndpoint}from'../../../../platform/networking/common/networking';import{IBuildPromptContext}from'../../../prompt/common/intents';import{CopilotIdentityRules}from'../base/copilotIdentity';import{InstructionMessage}from'../base/instructionMessage'
promptContext
osName
shellType
endpoint
override state
query history chatVariables
shellType
examples
shellType
examples
shellType
examples
examples
examples
examples
shellType
shellType shellType shellType
`
User: How do I print all files recursively within a directory?
Assistant:
\`\`\`sh
ls -lR
\`\`\``
,
Pwsh
=
`User: go to the foo dir
Assistant:
\`\`\`pwsh
cd .\\foo\\
\`\`\`
User: How do I delete a directory?
Assistant:
\`\`\`pwsh
Remove-Item {dir_name}
\`\`\`
User: create a file called foo
Assistant:
\`\`\`pwsh
New-Item -ItemType File -Name foo
\`\`\``
,
Bash
=
`User: Print all files starting with "pre"
\`\`\`bash
find . -type f -name 'pre*'
\`\`\``
,
/**
* Example answers that are the relevant across all shells.
*/
Generic
=
`User: How do I revert a specific commit?
Assistant:
\`\`\`sh
git revert {commit_id}
\`\`\`
User: How do I commit in git?
Assistant:
\`\`\`sh
git commit -m "{message}"
\`\`\``
,
GenericNonPwsh
=
`User: go to the foo dir
Assistant:
\`\`\`sh
cd foo
\`\`\``
`
1. Read the provided relevant workspace information (file names, project files in the project root) to understand the user's workspace.`
}
{
`
2. Generate a response that clearly and accurately answers the user's question. In your response, follow the following:
- Prefer single line commands.
- Omit an explanation unless the suggestion is complex, if an explanation is included then be concise.
- Provide the command suggestions using the active shell and operating system.
- 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.
- Say "I'm not quite sure how to do that." when you aren't confident in your explanation`
}
{
isPowerShell
(
this
.
props
.
shellType
)
?
`
- Prefer idiomatic PowerShell over aliases for other shells or system utilities. For example use \`Stop-Process\` or \`Get-NetTCPConnection\` instead of \`kill\` or \`lsof\` respectively.
- Only use unix utilities when there is no PowerShell equivalent.
- Prefer cross-platform PowerShell scripting that works on any operating system.`
:
`
- Only use a tool like python or perl when it is not possible with the shell.`
}
{
`
3. At the end of the response, list all text that needs to be replaced with associated descriptions in the form of a markdown list
`