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 { matchesFuzzy2 } from '../../../base/common/filters.js';
import { localize } from '../../../nls.js';
import { SessionConfigKey } from './sessionConfigKeys.js';
/**
* Copilot agent-host "config action" slash commands: workbench-defined slash
* commands that toggle a well-known session-config property (the `autoApprove`
* permissions axis and/or the `mode` axis) instead of driving a chat turn.
*
* The Copilot agent owns the `autoApprove`/`mode` schema, so these commands are
* produced server-side (see the Copilot slash-command completion provider) and
* carry an `action` bag on their completion `_meta`. The workbench interprets
* that bag on accept — applying the config via the active session's provider so
* the permission/mode pickers update reactively — while the send path
* (`CopilotAgentSession.send`) re-applies the change and strips the leading
* token so it is not dispatched to the runtime as a runtime command.
*
* Values below are the well-known enum members of the Copilot platform session
* schema (`autoApprove`: `default` | `autoApprove`; `mode`: `interactive` |
* `plan` | `autopilot`).
*/
const AUTO_APPROVE_BYPASS = 'autoApprove';
const AUTO_APPROVE_DEFAULT = 'default';
const MODE_INTERACTIVE
insertText
label
command
description
argumentHint
applyConfig ReadonlyRecord
sortText
arg
detail
config ReadonlyRecord
argumentHint
command
sortText
options IConfigSlashOption
IConfigSlashCommand
command sortText
options
arg detail config SessionConfigKeyAutoApprove
arg detail config SessionConfigKeyAutoApprove
command sortText
options
arg detail config SessionConfigKeyAutoApprove
arg detail config SessionConfigKeyAutoApprove
command sortText
options
arg detail config SessionConfigKeyMode
arg detail config SessionConfigKeyMode
detail config SessionConfigKeyMode argumentHint
command sortText
options
detail config SessionConfigKeyMode argumentHint
command sortText
options
detail config SessionConfigKeyMode argumentHint
command
c ccommand command
mode
autoApprove
option IConfigSlashOption state ICopilotConfigSlashCommandState
optionargumentHint state
autoApproveTarget optionconfigSessionConfigKeyAutoApprove
autoApproveTarget
isBypass stateautoApprove
autoApproveTarget isBypass isBypass
modeTarget optionconfigSessionConfigKeyMode
modeTarget
statemode
modeTarget
statemode
typed state ICopilotConfigSlashCommandState ICopilotConfigSlashCommandItem
typedLower typed
items ICopilotConfigSlashCommandItem
command
typedLower
commandcommandtypedLower
typedLowerlength typedLower commandcommand
option commandoptions
option state
keep optionargumentHint
insertText keep
label keep
optionarg
items
insertText
label
command commandcommand
description optiondetail
optionargumentHint argumentHint optionargumentHint
applyConfig optionconfig
sortText optionarg commandsortText
items
applyConfig ReadonlyRecord
strippedPrompt
command rest ICopilotConfigSlashCommandSendResult
descriptor c ccommand command
descriptor
trimmedRest rest
namedOptions descriptoroptionso oarg
baseOption descriptoroptionso oarg
namedOptionslength trimmedRestlength
match trimmedRest
firstToken match
matched namedOptionso oarg firstToken
matched
applyConfig matchedconfig strippedPrompt match
baseOption
fallback baseOption descriptoroptions
applyConfig fallbackconfig strippedPrompt trimmedRest