@codingame/monaco-vscode-katex-common 33.0.9 → 34.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/base/browser/ui/pixelSpinner/pixelSpinner.css +169 -0
- package/vscode/src/vs/base/browser/ui/pixelSpinner/pixelSpinner.d.ts +28 -0
- package/vscode/src/vs/base/browser/ui/pixelSpinner/pixelSpinner.js +61 -0
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +1 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +18 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +40 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.d.ts +1 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.js +4 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.d.ts +16 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.js +81 -69
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.js +5 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionUri.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionUri.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/media/agentHostChatInputPicker.css +18 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +177 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +69 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +25 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatEditPillElement.d.ts +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatEditPillElement.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExternalEditContentPart.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExternalEditContentPart.js +134 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +49 -117
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +47 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +52 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +18 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +23 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +13 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +87 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +21 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +102 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatCodeBlockPill.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +21 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +35 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +62 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +15 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +13 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +154 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +113 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatGoalBannerWidget.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatGoalBannerWidget.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.js +18 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +361 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputStatusActionViewItem.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputStatusActionViewItem.js +147 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +11 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +133 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.js +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +13 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatGoalBannerWidget.css +81 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatInputNotificationWidget.css +32 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +39 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +23 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +66 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +373 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +18 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +54 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +30 -30
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +0 -76
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +0 -191
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +0 -50
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +0 -138
- package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +0 -12
- package/vscode/src/vs/platform/networkFilter/common/settings.js +0 -14
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +0 -18
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +0 -13
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +0 -87
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +0 -10
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribChatExports.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +0 -142
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +0 -232
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +0 -225
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +0 -143
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +0 -205
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +0 -174
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +0 -43
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +0 -260
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +0 -98
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +0 -225
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +0 -392
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +0 -243
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +0 -53
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +0 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +0 -310
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +0 -177
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +0 -33
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +0 -102
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +0 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +0 -33
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +0 -53
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +0 -177
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +0 -512
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +0 -23
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +0 -2623
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +0 -43
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +0 -118
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.js +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +0 -58
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +0 -223
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.js +0 -49
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.js +0 -302
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.js +0 -118
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +0 -114
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +0 -788
|
@@ -5,10 +5,10 @@ import type { SessionConfigPropertySchema } from "@codingame/monaco-vscode-api/v
|
|
|
5
5
|
import { IActionWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service";
|
|
6
6
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
7
7
|
import type { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
8
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
8
9
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
9
10
|
import type { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
10
11
|
import { IAgentHostSessionWorkingDirectoryResolver } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.service";
|
|
11
|
-
import type { IChatInputPickerOptions } from "../../widget/input/chatInputPickerActionItem.js";
|
|
12
12
|
import { IAgentHostUntitledProvisionalSessionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service";
|
|
13
13
|
/**
|
|
14
14
|
* Returns `true` when an `autoApprove` schema uses the well-known shape the
|
|
@@ -20,51 +20,49 @@ import { IAgentHostUntitledProvisionalSessionService } from "@codingame/monaco-v
|
|
|
20
20
|
*/
|
|
21
21
|
export declare function isWellKnownAutoApproveSchema(schema: SessionConfigPropertySchema): boolean;
|
|
22
22
|
/**
|
|
23
|
-
* The set of well-known session-config property names that
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* the dedicated ones.
|
|
23
|
+
* The set of well-known session-config property names that are either handled
|
|
24
|
+
* by dedicated UI or intentionally hidden from the workbench chat-input chip
|
|
25
|
+
* lane. The generic-fallback chip lane filters these out so unknown properties
|
|
26
|
+
* advertised by an agent get their own chip.
|
|
28
27
|
*
|
|
29
28
|
* `Permissions` has no chip — it is surfaced through other UI — but is
|
|
30
29
|
* included so the generic lane does not invent a chip for it.
|
|
31
30
|
*/
|
|
32
31
|
export declare const WELL_KNOWN_PICKER_PROPERTIES: ReadonlySet<string>;
|
|
33
32
|
/**
|
|
34
|
-
* Whether the given `(property, schema)` pair
|
|
35
|
-
* chip
|
|
36
|
-
*
|
|
33
|
+
* Whether the given `(property, schema)` pair is handled outside the
|
|
34
|
+
* generic-fallback chip lane. This includes properties rendered by dedicated
|
|
35
|
+
* chip widgets and properties intentionally hidden from workbench chat.
|
|
37
36
|
*
|
|
38
|
-
* For most well-known keys this is purely a property-name check. AutoApprove
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
37
|
+
* For most well-known keys this is purely a property-name check. AutoApprove is
|
|
38
|
+
* special: only well-known schema shapes are claimed by the dedicated picker;
|
|
39
|
+
* non-conforming schemas (e.g. Claude's approval mode) fall through to the
|
|
40
|
+
* generic lane.
|
|
42
41
|
*/
|
|
43
42
|
export declare function isClaimedByDedicatedPicker(property: string, schema: SessionConfigPropertySchema): boolean;
|
|
44
43
|
/**
|
|
45
44
|
* One workbench chat-input chip bound to a single agent-host session-config
|
|
46
45
|
* property. Used both for dedicated well-known property chips
|
|
47
|
-
* (`SessionConfigKey.Mode`, `.
|
|
48
|
-
*
|
|
49
|
-
* known to VS Code.
|
|
46
|
+
* (`SessionConfigKey.Mode`, `.AutoApprove`) and for generic per-property chips
|
|
47
|
+
* advertised by an agent's config schema but not known to VS Code.
|
|
50
48
|
*/
|
|
51
49
|
export declare class AgentHostChatInputPicker extends Disposable {
|
|
52
50
|
private readonly _widget;
|
|
53
51
|
private readonly _property;
|
|
54
|
-
private readonly _pickerOptions;
|
|
55
52
|
private readonly _agentHostService;
|
|
56
53
|
private readonly _actionWidgetService;
|
|
57
54
|
private readonly _openerService;
|
|
58
55
|
private readonly _workingDirectoryResolver;
|
|
59
56
|
private readonly _workspaceContextService;
|
|
60
57
|
private readonly _provisional;
|
|
58
|
+
private readonly _configurationService;
|
|
61
59
|
private readonly _renderDisposables;
|
|
62
60
|
private readonly _filterDelayer;
|
|
63
61
|
private readonly _subRef;
|
|
64
62
|
private _container;
|
|
65
63
|
private _initialResolved;
|
|
66
64
|
private readonly _initialResolveCts;
|
|
67
|
-
constructor(_widget: IChatWidget, _property: string,
|
|
65
|
+
constructor(_widget: IChatWidget, _property: string, _agentHostService: IAgentHostService, _actionWidgetService: IActionWidgetService, _openerService: IOpenerService, _workingDirectoryResolver: IAgentHostSessionWorkingDirectoryResolver, _workspaceContextService: IWorkspaceContextService, _provisional: IAgentHostUntitledProvisionalSessionService, _configurationService: IConfigurationService);
|
|
68
66
|
render(container: HTMLElement): void;
|
|
69
67
|
private _reattach;
|
|
70
68
|
private _cancelInitialResolve;
|
|
@@ -10,40 +10,29 @@ import { Delayer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/asyn
|
|
|
10
10
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
11
11
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
12
12
|
import { Disposable, DisposableStore, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
13
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
14
13
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
15
14
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
16
15
|
import { IAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service';
|
|
17
16
|
import { SessionConfigKey, KNOWN_AUTO_APPROVE_VALUES } from '../../../../../../platform/agentHost/common/sessionConfigKeys.js';
|
|
18
17
|
import { ClaudeSessionConfigKey } from '../../../../../../platform/agentHost/common/claudeSessionConfigKeys.js';
|
|
19
|
-
import { ActionType } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/actions';
|
|
18
|
+
import { ActionType } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/common/actions';
|
|
20
19
|
import { StateComponents } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/sessionState';
|
|
21
20
|
import { ActionListItemKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionList';
|
|
22
21
|
import { IActionWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service';
|
|
23
22
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
23
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
24
24
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
25
|
+
import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
25
26
|
import { isUntitledChatSession } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
26
27
|
import { IAgentHostSessionWorkingDirectoryResolver } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.service';
|
|
27
28
|
import { IAgentHostUntitledProvisionalSessionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service';
|
|
28
|
-
import {
|
|
29
|
+
import { toAgentHostBackendSessionUri } from './agentHostSessionUri.js';
|
|
29
30
|
|
|
30
31
|
registerCss(agentHostChatInputPicker);
|
|
31
32
|
const FILTER_THRESHOLD = 10;
|
|
32
33
|
const LEARN_MORE_VALUE = "__agentHostChatInputPicker.learnMore__";
|
|
33
|
-
const PERMISSION_MODE_LEARN_MORE_URL = "https://
|
|
34
|
+
const PERMISSION_MODE_LEARN_MORE_URL = "https://aka.ms/vscode/docs/permissions";
|
|
34
35
|
function getConfigIcon(property, value) {
|
|
35
|
-
if (property === SessionConfigKey.Isolation) {
|
|
36
|
-
if (value === "folder") {
|
|
37
|
-
return Codicon.folder;
|
|
38
|
-
}
|
|
39
|
-
if (value === "worktree") {
|
|
40
|
-
return Codicon.worktree;
|
|
41
|
-
}
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (property === SessionConfigKey.Branch) {
|
|
45
|
-
return Codicon.gitBranch;
|
|
46
|
-
}
|
|
47
36
|
if (property === SessionConfigKey.Mode) {
|
|
48
37
|
switch (value) {
|
|
49
38
|
case "plan":
|
|
@@ -65,7 +54,16 @@ function getConfigIcon(property, value) {
|
|
|
65
54
|
}
|
|
66
55
|
return undefined;
|
|
67
56
|
}
|
|
68
|
-
function
|
|
57
|
+
function isAutoApprovePolicyRestricted(configurationService) {
|
|
58
|
+
return configurationService.inspect(ChatConfiguration.GlobalAutoApprove).policyValue === false;
|
|
59
|
+
}
|
|
60
|
+
function normalizeConfigValue(property, value, policyRestricted) {
|
|
61
|
+
if (property === SessionConfigKey.AutoApprove && policyRestricted && (value === "autoApprove" || value === "autopilot")) {
|
|
62
|
+
return "default";
|
|
63
|
+
}
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
function toActionItems(property, items, currentValue, policyRestricted = false) {
|
|
69
67
|
return (items.map(item => ({
|
|
70
68
|
kind: ActionListItemKind.Action,
|
|
71
69
|
label: item.label,
|
|
@@ -74,12 +72,19 @@ function toActionItems(property, items, currentValue) {
|
|
|
74
72
|
title: "",
|
|
75
73
|
icon: getConfigIcon(property, item.value)
|
|
76
74
|
},
|
|
75
|
+
disabled: policyRestricted && property === SessionConfigKey.AutoApprove && (item.value === "autoApprove" || item.value === "autopilot"),
|
|
77
76
|
item: {
|
|
78
77
|
...item,
|
|
79
|
-
label: item.value
|
|
78
|
+
label: isSelectedValue(currentValue, item.value) ? `${item.label} ${( localize(5269, "(Selected)"))}` : item.label
|
|
80
79
|
}
|
|
81
80
|
})));
|
|
82
81
|
}
|
|
82
|
+
function isSelectedValue(currentValue, itemValue) {
|
|
83
|
+
if (typeof currentValue === "boolean") {
|
|
84
|
+
return currentValue === (itemValue === "true");
|
|
85
|
+
}
|
|
86
|
+
return itemValue === currentValue;
|
|
87
|
+
}
|
|
83
88
|
function renderPickerTrigger(slot, disabled, disposables, onOpen) {
|
|
84
89
|
const trigger = append(slot, disabled ? $("span.action-label") : $("a.action-label"));
|
|
85
90
|
if (disabled) {
|
|
@@ -105,22 +110,6 @@ function renderPickerTrigger(slot, disabled, disposables, onOpen) {
|
|
|
105
110
|
slot.classList.toggle("disabled", disabled);
|
|
106
111
|
return trigger;
|
|
107
112
|
}
|
|
108
|
-
function toBackendSessionUri(sessionResource) {
|
|
109
|
-
const scheme = sessionResource.scheme;
|
|
110
|
-
const prefix = "agent-host-";
|
|
111
|
-
if (!scheme.startsWith(prefix)) {
|
|
112
|
-
return undefined;
|
|
113
|
-
}
|
|
114
|
-
const provider = scheme.substring(prefix.length);
|
|
115
|
-
if (!provider) {
|
|
116
|
-
return undefined;
|
|
117
|
-
}
|
|
118
|
-
const rawId = sessionResource.path.replace(/^\//, "");
|
|
119
|
-
return ( URI.from({
|
|
120
|
-
scheme: provider,
|
|
121
|
-
path: `/${rawId}`
|
|
122
|
-
}));
|
|
123
|
-
}
|
|
124
113
|
function isWellKnownAutoApproveSchema(schema) {
|
|
125
114
|
if (schema.type !== "string" || !Array.isArray(schema.enum) || schema.enum.length === 0) {
|
|
126
115
|
return false;
|
|
@@ -133,6 +122,8 @@ function isWellKnownAutoApproveSchema(schema) {
|
|
|
133
122
|
const WELL_KNOWN_PICKER_PROPERTIES = ( new Set([
|
|
134
123
|
SessionConfigKey.Mode,
|
|
135
124
|
SessionConfigKey.AutoApprove,
|
|
125
|
+
SessionConfigKey.Isolation,
|
|
126
|
+
SessionConfigKey.Branch,
|
|
136
127
|
SessionConfigKey.Permissions,
|
|
137
128
|
ClaudeSessionConfigKey.PermissionMode
|
|
138
129
|
]));
|
|
@@ -146,24 +137,24 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
146
137
|
constructor(
|
|
147
138
|
_widget,
|
|
148
139
|
_property,
|
|
149
|
-
_pickerOptions,
|
|
150
140
|
_agentHostService,
|
|
151
141
|
_actionWidgetService,
|
|
152
142
|
_openerService,
|
|
153
143
|
_workingDirectoryResolver,
|
|
154
144
|
_workspaceContextService,
|
|
155
|
-
_provisional
|
|
145
|
+
_provisional,
|
|
146
|
+
_configurationService
|
|
156
147
|
) {
|
|
157
148
|
super();
|
|
158
149
|
this._widget = _widget;
|
|
159
150
|
this._property = _property;
|
|
160
|
-
this._pickerOptions = _pickerOptions;
|
|
161
151
|
this._agentHostService = _agentHostService;
|
|
162
152
|
this._actionWidgetService = _actionWidgetService;
|
|
163
153
|
this._openerService = _openerService;
|
|
164
154
|
this._workingDirectoryResolver = _workingDirectoryResolver;
|
|
165
155
|
this._workspaceContextService = _workspaceContextService;
|
|
166
156
|
this._provisional = _provisional;
|
|
157
|
+
this._configurationService = _configurationService;
|
|
167
158
|
this._renderDisposables = this._register(( new DisposableStore()));
|
|
168
159
|
this._filterDelayer = this._register(( new Delayer(200)));
|
|
169
160
|
this._subRef = this._register(( new MutableDisposable()));
|
|
@@ -171,13 +162,6 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
171
162
|
this._register(this._widget.onDidChangeViewModel(() => {
|
|
172
163
|
this._reattach();
|
|
173
164
|
}));
|
|
174
|
-
const opts = this._pickerOptions;
|
|
175
|
-
if (opts) {
|
|
176
|
-
this._register(autorun(reader => {
|
|
177
|
-
opts.hideChevrons.read(reader);
|
|
178
|
-
this._renderChip();
|
|
179
|
-
}));
|
|
180
|
-
}
|
|
181
165
|
this._register(this._provisional.onDidChange(sessionResource => {
|
|
182
166
|
const current = this._widget.viewModel?.sessionResource;
|
|
183
167
|
if (current && ( current.toString()) === ( sessionResource.toString())) {
|
|
@@ -195,7 +179,7 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
195
179
|
_reattach() {
|
|
196
180
|
const sessionResource = this._widget.viewModel?.sessionResource;
|
|
197
181
|
const provisionalBackend = sessionResource ? this._provisional.get(sessionResource) : undefined;
|
|
198
|
-
const backendSession = provisionalBackend ?? (sessionResource ?
|
|
182
|
+
const backendSession = provisionalBackend ?? (sessionResource ? toAgentHostBackendSessionUri(sessionResource) : undefined);
|
|
199
183
|
if (!sessionResource || !backendSession) {
|
|
200
184
|
this._subRef.clear();
|
|
201
185
|
this._initialResolved = undefined;
|
|
@@ -215,7 +199,7 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
215
199
|
}
|
|
216
200
|
this._initialResolved = undefined;
|
|
217
201
|
this._cancelInitialResolve();
|
|
218
|
-
const ref = this._agentHostService.getSubscription(StateComponents.Session, backendSession);
|
|
202
|
+
const ref = this._agentHostService.getSubscription(StateComponents.Session, backendSession, "AgentHostChatInputPicker");
|
|
219
203
|
const sub = ref.object;
|
|
220
204
|
const listener = sub.onDidChange(() => this._renderChip());
|
|
221
205
|
this._subRef.value = {
|
|
@@ -282,7 +266,6 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
282
266
|
}
|
|
283
267
|
_renderTrigger(trigger, schema, value, isReadOnly) {
|
|
284
268
|
clearNode(trigger);
|
|
285
|
-
const compact = this._pickerOptions?.hideChevrons.get() ?? false;
|
|
286
269
|
const icon = getConfigIcon(this._property, value);
|
|
287
270
|
if (icon) {
|
|
288
271
|
append(trigger, renderIcon(icon));
|
|
@@ -292,16 +275,14 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
292
275
|
trigger.classList.toggle("info", value === "autoApprove");
|
|
293
276
|
}
|
|
294
277
|
const label = this._labelFor(schema, value);
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
trigger.setAttribute("aria-label", isReadOnly ? ( localize(5208, "{0}: {1}, Read-Only", schema.title, label)) : ( localize(5209, "{0}: {1}", schema.title, label)));
|
|
300
|
-
if (!isReadOnly && !compact) {
|
|
301
|
-
append(trigger, renderIcon(Codicon.chevronDown));
|
|
302
|
-
}
|
|
278
|
+
const labelSpan = append(trigger, $("span.agent-host-chat-input-picker-label"));
|
|
279
|
+
labelSpan.textContent = label;
|
|
280
|
+
trigger.setAttribute("aria-label", isReadOnly ? ( localize(5270, "{0}: {1}, Read-Only", schema.title, label)) : ( localize(5271, "{0}: {1}", schema.title, label)));
|
|
303
281
|
}
|
|
304
282
|
_labelFor(schema, value) {
|
|
283
|
+
if (schema.type === "boolean") {
|
|
284
|
+
return value === true ? ( localize(5272, "On")) : ( localize(5273, "Off"));
|
|
285
|
+
}
|
|
305
286
|
if (typeof value === "string") {
|
|
306
287
|
const index = schema.enum?.indexOf(value) ?? -1;
|
|
307
288
|
return index >= 0 ? schema.enumLabels?.[index] ?? value : value;
|
|
@@ -336,7 +317,7 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
336
317
|
if (!schema) {
|
|
337
318
|
return undefined;
|
|
338
319
|
}
|
|
339
|
-
const backendSession =
|
|
320
|
+
const backendSession = toAgentHostBackendSessionUri(sessionResource);
|
|
340
321
|
if (!backendSession) {
|
|
341
322
|
return undefined;
|
|
342
323
|
}
|
|
@@ -362,18 +343,19 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
362
343
|
return;
|
|
363
344
|
}
|
|
364
345
|
const currentValue = ctx.value;
|
|
365
|
-
const
|
|
346
|
+
const policyRestricted = isAutoApprovePolicyRestricted(this._configurationService);
|
|
347
|
+
const actionItems = toActionItems(this._property, items, currentValue, policyRestricted);
|
|
366
348
|
if (this._property === ClaudeSessionConfigKey.PermissionMode || this._property === SessionConfigKey.AutoApprove) {
|
|
367
349
|
actionItems.push({
|
|
368
350
|
kind: ActionListItemKind.Action,
|
|
369
|
-
label: ( localize(
|
|
351
|
+
label: ( localize(5274, "Learn more about permissions")),
|
|
370
352
|
group: {
|
|
371
353
|
title: "",
|
|
372
354
|
icon: Codicon.blank
|
|
373
355
|
},
|
|
374
356
|
item: {
|
|
375
357
|
value: LEARN_MORE_VALUE,
|
|
376
|
-
label: ( localize(
|
|
358
|
+
label: ( localize(5274, "Learn more about permissions"))
|
|
377
359
|
}
|
|
378
360
|
});
|
|
379
361
|
}
|
|
@@ -394,7 +376,8 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
394
376
|
return toActionItems(
|
|
395
377
|
this._property,
|
|
396
378
|
await this._getItems(refreshed.schema, query),
|
|
397
|
-
refreshed.value
|
|
379
|
+
refreshed.value,
|
|
380
|
+
isAutoApprovePolicyRestricted(this._configurationService)
|
|
398
381
|
);
|
|
399
382
|
}) : undefined,
|
|
400
383
|
onHide: () => trigger.focus()
|
|
@@ -409,17 +392,26 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
409
392
|
[],
|
|
410
393
|
{
|
|
411
394
|
getAriaLabel: item => item.label ?? "",
|
|
412
|
-
getWidgetAriaLabel: () => ( localize(
|
|
395
|
+
getWidgetAriaLabel: () => ( localize(5275, "{0} Picker", ctx.schema.title))
|
|
413
396
|
},
|
|
414
397
|
actionItems.length > FILTER_THRESHOLD || ctx.schema.enumDynamic ? {
|
|
415
398
|
showFilter: true,
|
|
416
|
-
filterPlaceholder: ( localize(
|
|
399
|
+
filterPlaceholder: ( localize(5276, "Filter..."))
|
|
417
400
|
} : undefined
|
|
418
401
|
);
|
|
419
402
|
}
|
|
420
403
|
async _getItems(schema, query) {
|
|
404
|
+
if (schema.type === "boolean") {
|
|
405
|
+
return [{
|
|
406
|
+
value: "true",
|
|
407
|
+
label: ( localize(5277, "On"))
|
|
408
|
+
}, {
|
|
409
|
+
value: "false",
|
|
410
|
+
label: ( localize(5278, "Off"))
|
|
411
|
+
}];
|
|
412
|
+
}
|
|
421
413
|
const sessionResource = this._widget.viewModel?.sessionResource;
|
|
422
|
-
const backendSession = this._subRef.value?.backendSession ?? (sessionResource ?
|
|
414
|
+
const backendSession = this._subRef.value?.backendSession ?? (sessionResource ? toAgentHostBackendSessionUri(sessionResource) : undefined);
|
|
423
415
|
if (schema.enumDynamic && backendSession) {
|
|
424
416
|
try {
|
|
425
417
|
const result = await this._agentHostService.sessionConfigCompletions({
|
|
@@ -455,19 +447,34 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
455
447
|
return (sessionResource && this._workingDirectoryResolver.resolve(sessionResource)) ?? this._workspaceContextService.getWorkspace().folders[0]?.uri;
|
|
456
448
|
}
|
|
457
449
|
_readCurrentValues() {
|
|
450
|
+
const sessionResource = this._widget.viewModel?.sessionResource;
|
|
451
|
+
const overlay = sessionResource ? this._provisional.getResolvedConfig(sessionResource) : undefined;
|
|
458
452
|
const state = this._subRef.value?.sub.value;
|
|
459
453
|
if (state && !(state instanceof Error)) {
|
|
460
|
-
return
|
|
454
|
+
return {
|
|
455
|
+
...(state.config?.values ?? {}),
|
|
456
|
+
...(overlay?.values ?? {})
|
|
457
|
+
};
|
|
461
458
|
}
|
|
462
|
-
return this._initialResolved?.result.values;
|
|
459
|
+
return overlay?.values ?? this._initialResolved?.result.values;
|
|
463
460
|
}
|
|
464
461
|
async _setValue(backendSession, value) {
|
|
465
462
|
const sessionResource = this._widget.viewModel?.sessionResource;
|
|
466
463
|
if (!sessionResource) {
|
|
467
464
|
return;
|
|
468
465
|
}
|
|
466
|
+
const ctx = this._readContext();
|
|
467
|
+
const normalizedValue = ctx?.schema.type === "boolean" ? value === "true" : normalizeConfigValue(
|
|
468
|
+
this._property,
|
|
469
|
+
value,
|
|
470
|
+
isAutoApprovePolicyRestricted(this._configurationService)
|
|
471
|
+
);
|
|
469
472
|
const partial = {
|
|
470
|
-
[this._property]:
|
|
473
|
+
[this._property]: normalizedValue
|
|
474
|
+
};
|
|
475
|
+
const nextConfig = {
|
|
476
|
+
...(this._readCurrentValues() ?? {}),
|
|
477
|
+
...partial
|
|
471
478
|
};
|
|
472
479
|
if (isUntitledChatSession(sessionResource)) {
|
|
473
480
|
const provider = backendSession.scheme;
|
|
@@ -480,14 +487,19 @@ let AgentHostChatInputPicker = class AgentHostChatInputPicker extends Disposable
|
|
|
480
487
|
}
|
|
481
488
|
return;
|
|
482
489
|
}
|
|
483
|
-
this._agentHostService.dispatch({
|
|
490
|
+
this._agentHostService.dispatch(( backendSession.toString()), {
|
|
484
491
|
type: ActionType.SessionConfigChanged,
|
|
485
|
-
session: ( backendSession.toString()),
|
|
486
492
|
config: partial
|
|
487
493
|
});
|
|
494
|
+
void this._provisional.refreshResolvedConfig(
|
|
495
|
+
sessionResource,
|
|
496
|
+
backendSession.scheme,
|
|
497
|
+
this._readWorkingDirectory(),
|
|
498
|
+
nextConfig
|
|
499
|
+
);
|
|
488
500
|
}
|
|
489
501
|
};
|
|
490
|
-
AgentHostChatInputPicker = ( __decorate([( __param(
|
|
502
|
+
AgentHostChatInputPicker = ( __decorate([( __param(2, IAgentHostService)), ( __param(3, IActionWidgetService)), ( __param(4, IOpenerService)), ( __param(5, IAgentHostSessionWorkingDirectoryResolver)), ( __param(6, IWorkspaceContextService)), ( __param(7, IAgentHostUntitledProvisionalSessionService)), ( __param(8, IConfigurationService))], AgentHostChatInputPicker));
|
|
491
503
|
class AgentHostChatInputPickerActionViewItem extends BaseActionViewItem {
|
|
492
504
|
constructor(action, _picker) {
|
|
493
505
|
super(undefined, action);
|
|
@@ -2,7 +2,6 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
import { IAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service";
|
|
4
4
|
import type { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
5
|
-
import type { IChatInputPickerOptions } from "../../widget/input/chatInputPickerActionItem.js";
|
|
6
5
|
import { IAgentHostSessionWorkingDirectoryResolver } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.service";
|
|
7
6
|
import { IAgentHostUntitledProvisionalSessionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service";
|
|
8
7
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
@@ -18,7 +17,6 @@ import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs
|
|
|
18
17
|
*/
|
|
19
18
|
export declare class AgentHostGenericConfigChips extends Disposable {
|
|
20
19
|
private readonly _widget;
|
|
21
|
-
private readonly _pickerOptions;
|
|
22
20
|
private readonly _instantiationService;
|
|
23
21
|
private readonly _agentHostService;
|
|
24
22
|
private readonly _provisional;
|
|
@@ -34,7 +32,7 @@ export declare class AgentHostGenericConfigChips extends Disposable {
|
|
|
34
32
|
private readonly _subRef;
|
|
35
33
|
private _initialResolved;
|
|
36
34
|
private readonly _initialResolveCts;
|
|
37
|
-
constructor(_widget: IChatWidget,
|
|
35
|
+
constructor(_widget: IChatWidget, _instantiationService: IInstantiationService, _agentHostService: IAgentHostService, _provisional: IAgentHostUntitledProvisionalSessionService, _workingDirectoryResolver: IAgentHostSessionWorkingDirectoryResolver, _workspaceContextService: IWorkspaceContextService);
|
|
38
36
|
render(container: HTMLElement): void;
|
|
39
37
|
private _reattach;
|
|
40
38
|
private _cancelInitialResolve;
|
|
@@ -12,27 +12,11 @@ import { isClaimedByDedicatedPicker, AgentHostChatInputPicker } from './agentHos
|
|
|
12
12
|
import { IAgentHostSessionWorkingDirectoryResolver } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.service';
|
|
13
13
|
import { IAgentHostUntitledProvisionalSessionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service';
|
|
14
14
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
15
|
+
import { toAgentHostBackendSessionUri } from './agentHostSessionUri.js';
|
|
15
16
|
|
|
16
|
-
function toBackendSessionUri(sessionResource) {
|
|
17
|
-
const scheme = sessionResource.scheme;
|
|
18
|
-
const prefix = "agent-host-";
|
|
19
|
-
if (!scheme.startsWith(prefix)) {
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
22
|
-
const provider = scheme.substring(prefix.length);
|
|
23
|
-
if (!provider) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
const rawId = sessionResource.path.replace(/^\//, "");
|
|
27
|
-
return ( URI.from({
|
|
28
|
-
scheme: provider,
|
|
29
|
-
path: `/${rawId}`
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
17
|
let AgentHostGenericConfigChips = class AgentHostGenericConfigChips extends Disposable {
|
|
33
18
|
constructor(
|
|
34
19
|
_widget,
|
|
35
|
-
_pickerOptions,
|
|
36
20
|
_instantiationService,
|
|
37
21
|
_agentHostService,
|
|
38
22
|
_provisional,
|
|
@@ -41,7 +25,6 @@ let AgentHostGenericConfigChips = class AgentHostGenericConfigChips extends Disp
|
|
|
41
25
|
) {
|
|
42
26
|
super();
|
|
43
27
|
this._widget = _widget;
|
|
44
|
-
this._pickerOptions = _pickerOptions;
|
|
45
28
|
this._instantiationService = _instantiationService;
|
|
46
29
|
this._agentHostService = _agentHostService;
|
|
47
30
|
this._provisional = _provisional;
|
|
@@ -66,7 +49,7 @@ let AgentHostGenericConfigChips = class AgentHostGenericConfigChips extends Disp
|
|
|
66
49
|
_reattach() {
|
|
67
50
|
const sessionResource = this._widget.viewModel?.sessionResource;
|
|
68
51
|
const provisionalBackend = sessionResource ? this._provisional.get(sessionResource) : undefined;
|
|
69
|
-
const backendSession = provisionalBackend ?? (sessionResource ?
|
|
52
|
+
const backendSession = provisionalBackend ?? (sessionResource ? toAgentHostBackendSessionUri(sessionResource) : undefined);
|
|
70
53
|
if (!sessionResource || !backendSession) {
|
|
71
54
|
this._subRef.clear();
|
|
72
55
|
this._initialResolved = undefined;
|
|
@@ -85,7 +68,7 @@ let AgentHostGenericConfigChips = class AgentHostGenericConfigChips extends Disp
|
|
|
85
68
|
}
|
|
86
69
|
this._initialResolved = undefined;
|
|
87
70
|
this._cancelInitialResolve();
|
|
88
|
-
const ref = this._agentHostService.getSubscription(StateComponents.Session, backendSession);
|
|
71
|
+
const ref = this._agentHostService.getSubscription(StateComponents.Session, backendSession, "AgentHostGenericConfigChips");
|
|
89
72
|
const sub = ref.object;
|
|
90
73
|
const listener = sub.onDidChange(() => this._sync());
|
|
91
74
|
this._subRef.value = {
|
|
@@ -168,7 +151,7 @@ let AgentHostGenericConfigChips = class AgentHostGenericConfigChips extends Disp
|
|
|
168
151
|
if (( this._chips.has(property))) {
|
|
169
152
|
continue;
|
|
170
153
|
}
|
|
171
|
-
const chip = this._instantiationService.createInstance(AgentHostChatInputPicker, this._widget, property
|
|
154
|
+
const chip = this._instantiationService.createInstance(AgentHostChatInputPicker, this._widget, property);
|
|
172
155
|
const slot = append(
|
|
173
156
|
this._container,
|
|
174
157
|
$(".agent-host-generic-chip-slot.chat-input-picker-item")
|
|
@@ -183,6 +166,6 @@ let AgentHostGenericConfigChips = class AgentHostGenericConfigChips extends Disp
|
|
|
183
166
|
}
|
|
184
167
|
}
|
|
185
168
|
};
|
|
186
|
-
AgentHostGenericConfigChips = ( __decorate([( __param(
|
|
169
|
+
AgentHostGenericConfigChips = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IAgentHostService)), ( __param(3, IAgentHostUntitledProvisionalSessionService)), ( __param(4, IAgentHostSessionWorkingDirectoryResolver)), ( __param(5, IWorkspaceContextService))], AgentHostGenericConfigChips));
|
|
187
170
|
|
|
188
171
|
export { AgentHostGenericConfigChips };
|
package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionUri.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
3
|
+
|
|
4
|
+
function toAgentHostBackendSessionUri(sessionResource) {
|
|
5
|
+
const scheme = sessionResource.scheme;
|
|
6
|
+
const prefix = "agent-host-";
|
|
7
|
+
if (!scheme.startsWith(prefix)) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
const provider = scheme.substring(prefix.length);
|
|
11
|
+
if (!provider) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
const rawId = sessionResource.path.replace(/^\//, "");
|
|
15
|
+
return ( URI.from({
|
|
16
|
+
scheme: provider,
|
|
17
|
+
path: `/${rawId}`
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { toAgentHostBackendSessionUri };
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
align-items: center;
|
|
38
38
|
gap: 4px;
|
|
39
39
|
height: 16px;
|
|
40
|
-
padding: 3px
|
|
40
|
+
padding: 3px 6px;
|
|
41
|
+
border-radius: 4px;
|
|
41
42
|
color: var(--vscode-icon-foreground);
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
.chat-secondary-generic-chips {
|
|
67
68
|
display: inline-flex;
|
|
68
69
|
align-items: center;
|
|
69
|
-
gap:
|
|
70
|
+
gap: 12px;
|
|
70
71
|
|
|
71
72
|
&:empty {
|
|
72
73
|
display: none;
|
|
@@ -87,6 +88,21 @@
|
|
|
87
88
|
font-size: 12px;
|
|
88
89
|
}
|
|
89
90
|
}
|
|
91
|
+
|
|
92
|
+
> .agent-host-generic-chip-slot + .agent-host-generic-chip-slot {
|
|
93
|
+
box-shadow: -5px 0 0 -4px var(--vscode-editorWidget-border);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Collapse agent host picker labels to icon-only when the secondary toolbar gets narrow. */
|
|
98
|
+
.interactive-session .chat-secondary-toolbar {
|
|
99
|
+
container-type: inline-size;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@container (max-width: 480px) {
|
|
103
|
+
.agent-host-chat-input-picker-label {
|
|
104
|
+
display: none;
|
|
105
|
+
}
|
|
90
106
|
}
|
|
91
107
|
|
|
92
108
|
/*
|
|
@@ -125,29 +141,3 @@
|
|
|
125
141
|
text-overflow: ellipsis;
|
|
126
142
|
white-space: nowrap;
|
|
127
143
|
}
|
|
128
|
-
|
|
129
|
-
/*
|
|
130
|
-
* Right-align the Branch + Isolation chips within the secondary chat-input
|
|
131
|
-
* toolbar. The picker tags its host element with a per-property modifier
|
|
132
|
-
* class (`agent-host-chat-input-picker-host-branch`) so these selectors can
|
|
133
|
-
* target just the right-aligned pair without affecting Mode. Branch (when
|
|
134
|
-
* present) takes the leading `margin-left: auto`; Isolation otherwise. With
|
|
135
|
-
* both present the Isolation rule is suppressed by the general-sibling
|
|
136
|
-
* selector below that detects a preceding (visible) Branch chip.
|
|
137
|
-
*/
|
|
138
|
-
.chat-secondary-input-toolbar .monaco-action-bar .actions-container > .action-item.agent-host-chat-input-picker-host-branch {
|
|
139
|
-
margin-left: auto;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.chat-secondary-input-toolbar .monaco-action-bar .actions-container > .action-item.agent-host-chat-input-picker-host-isolation {
|
|
143
|
-
margin-left: auto;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/*
|
|
147
|
-
* Suppress Isolation's leading-margin only when a *visible* Branch chip
|
|
148
|
-
* precedes it. Hidden chips keep the `agent-host-chat-input-picker-host-hidden`
|
|
149
|
-
* marker so this selector can ignore them.
|
|
150
|
-
*/
|
|
151
|
-
.chat-secondary-input-toolbar .monaco-action-bar .actions-container > .action-item.agent-host-chat-input-picker-host-branch:not(.agent-host-chat-input-picker-host-hidden) ~ .action-item.agent-host-chat-input-picker-host-isolation {
|
|
152
|
-
margin-left: 0;
|
|
153
|
-
}
|