@codingame/monaco-vscode-katex-common 31.0.1 → 32.0.1
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/platform/actionWidget/browser/actionWidgetDropdown.d.ts +15 -3
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +6 -5
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +5 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +45 -14
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +15 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +51 -54
- 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 +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +45 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +13 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +46 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +23 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +155 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +37 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +250 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +14 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +10 -10
- 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/chatAttachmentsContentPart.js +7 -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/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +51 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +56 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.js +4 -0
- 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.js +68 -10
- 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.d.ts +58 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +653 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +28 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +91 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +53 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +6 -6
- 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 +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +42 -22
- 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.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +93 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css +169 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +13 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +60 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +13 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +1 -1
- 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 +15 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +125 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +29 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +119 -10
- 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/chatToolInvocationPart.js +1 -1
- 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.js +5 -5
- 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/media/toolRiskBadge.css +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.js +125 -0
- 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 +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +132 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +156 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.js +133 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +53 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +288 -125
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +23 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +699 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +12 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +12 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.js +120 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatInputNotificationWidget.css +191 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatPhoneInputPresenter.css +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +9 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +89 -108
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +521 -9
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +19 -19
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionStorageKeys.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionStorageKeys.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.js +82 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +44 -17
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +3 -46
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatEditorAffordance.d.ts → inlineChatAffordanceWidget.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatEditorAffordance.js → inlineChatAffordanceWidget.js} +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +2 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +19 -400
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +4 -9
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +5 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +47 -133
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +103 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +29 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +3 -32
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -92
- 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/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +99 -32
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +13 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +76 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +4 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +89 -28
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +11 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +7 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +11 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +59 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +24 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +111 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +60 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +455 -171
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +82 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.js +49 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.js +302 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.js +118 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +34 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +233 -48
- package/vscode/src/vs/platform/actions/browser/actionbar.d.ts +0 -16
- package/vscode/src/vs/platform/actions/browser/actionbar.js +0 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +0 -539
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +0 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +0 -386
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +0 -101
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +0 -509
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +0 -130
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +0 -276
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +0 -93
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +0 -39
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +0 -617
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +0 -231
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-katex-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "32.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - common package depending on katex",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "32.0.1",
|
|
19
19
|
"katex": "0.16.45",
|
|
20
20
|
"marked": "14.0.0"
|
|
21
21
|
},
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { IActionWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service";
|
|
2
|
-
import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
3
1
|
import { BaseDropdown, IActionProvider, IBaseDropdownOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/dropdown/dropdown";
|
|
4
|
-
import {
|
|
2
|
+
import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
3
|
+
import { ResolvedKeybinding } from "@codingame/monaco-vscode-api/vscode/vs/base/common/keybindings";
|
|
5
4
|
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
6
5
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
7
6
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
7
|
+
import { IActionListItemHover, IActionListOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionList";
|
|
8
|
+
import { IActionWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service";
|
|
8
9
|
export interface IActionWidgetDropdownAction extends IAction {
|
|
9
10
|
category?: {
|
|
10
11
|
label: string;
|
|
@@ -13,6 +14,10 @@ export interface IActionWidgetDropdownAction extends IAction {
|
|
|
13
14
|
};
|
|
14
15
|
icon?: ThemeIcon;
|
|
15
16
|
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional detail text displayed as a second line below the label.
|
|
19
|
+
*/
|
|
20
|
+
detail?: string;
|
|
16
21
|
/**
|
|
17
22
|
* Optional flyout hover configuration shown when focusing/hovering over the action.
|
|
18
23
|
*/
|
|
@@ -21,6 +26,13 @@ export interface IActionWidgetDropdownAction extends IAction {
|
|
|
21
26
|
* Optional toolbar actions shown when the item is focused or hovered.
|
|
22
27
|
*/
|
|
23
28
|
toolbarActions?: IAction[];
|
|
29
|
+
/**
|
|
30
|
+
* Optional keybinding to display next to the action. When provided, this overrides the
|
|
31
|
+
* keybinding that would otherwise be looked up via {@link IKeybindingService.lookupKeybinding}.
|
|
32
|
+
* Useful when the active keybinding depends on a scoped context (e.g. focus state) that the
|
|
33
|
+
* dropdown cannot evaluate at display time.
|
|
34
|
+
*/
|
|
35
|
+
keybinding?: ResolvedKeybinding;
|
|
24
36
|
}
|
|
25
37
|
export interface IActionWidgetDropdownActionProvider {
|
|
26
38
|
getActions(): IActionWidgetDropdownAction[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import {
|
|
3
|
+
import { getActiveElement, isHTMLElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { BaseDropdown } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/dropdown/dropdown';
|
|
5
|
-
import { ActionListItemKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionList';
|
|
6
|
-
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
7
5
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
8
|
-
import {
|
|
6
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
9
7
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
10
8
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
9
|
+
import { ActionListItemKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionList';
|
|
10
|
+
import { IActionWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service';
|
|
11
11
|
|
|
12
12
|
let ActionWidgetDropdown = class ActionWidgetDropdown extends BaseDropdown {
|
|
13
13
|
constructor(
|
|
@@ -69,6 +69,7 @@ let ActionWidgetDropdown = class ActionWidgetDropdown extends BaseDropdown {
|
|
|
69
69
|
item: action,
|
|
70
70
|
tooltip: action.tooltip,
|
|
71
71
|
description: action.description,
|
|
72
|
+
detail: action.detail,
|
|
72
73
|
hover: action.hover,
|
|
73
74
|
toolbarActions: action.toolbarActions,
|
|
74
75
|
kind: ActionListItemKind.Action,
|
|
@@ -80,7 +81,7 @@ let ActionWidgetDropdown = class ActionWidgetDropdown extends BaseDropdown {
|
|
|
80
81
|
disabled: !action.enabled,
|
|
81
82
|
hideIcon: false,
|
|
82
83
|
label: action.label,
|
|
83
|
-
keybinding: this._options.showItemKeybindings ? this.keybindingService.lookupKeybinding(action.id) : undefined
|
|
84
|
+
keybinding: this._options.showItemKeybindings ? (action.keybinding ?? this.keybindingService.lookupKeybinding(action.id)) : undefined
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
87
|
if (i < sortedCategories.length - 1) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ButtonBar } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button";
|
|
2
|
-
import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
2
|
+
import { IAction, IRunEvent } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
3
3
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
4
4
|
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
5
5
|
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
6
|
+
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
6
7
|
import { IToolBarRenderOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar";
|
|
7
8
|
import { MenuId, IMenuActionOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
8
9
|
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
@@ -16,6 +17,7 @@ export type IButtonConfigProvider = (action: IAction, index: number) => {
|
|
|
16
17
|
showLabel?: boolean;
|
|
17
18
|
isSecondary?: boolean;
|
|
18
19
|
customLabel?: string | IMarkdownString;
|
|
20
|
+
customLabelObs?: IObservable<string | IMarkdownString | undefined>;
|
|
19
21
|
customClass?: string;
|
|
20
22
|
} | undefined;
|
|
21
23
|
export interface IWorkbenchButtonBarOptions {
|
|
@@ -34,6 +36,8 @@ export declare class WorkbenchButtonBar extends ButtonBar {
|
|
|
34
36
|
private readonly _actionRunner;
|
|
35
37
|
private readonly _onDidChange;
|
|
36
38
|
readonly onDidChange: Event<this>;
|
|
39
|
+
get onWillRun(): Event<IRunEvent>;
|
|
40
|
+
get onDidRun(): Event<IRunEvent>;
|
|
37
41
|
constructor(container: HTMLElement, _options: IWorkbenchButtonBarOptions | undefined, _contextMenuService: IContextMenuService, _keybindingService: IKeybindingService, telemetryService: ITelemetryService, _hoverService: IHoverService);
|
|
38
42
|
dispose(): void;
|
|
39
43
|
update(actions: IAction[], secondary: IAction[]): void;
|
|
@@ -7,6 +7,7 @@ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codi
|
|
|
7
7
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
8
8
|
import { MarkdownString, isMarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
9
9
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
10
11
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
11
12
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
12
13
|
import { getActionBarActions } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
@@ -17,8 +18,17 @@ import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
17
18
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
18
19
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
19
20
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
21
|
+
import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
22
|
+
import { stripIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iconLabels';
|
|
23
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
20
24
|
|
|
21
25
|
let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
26
|
+
get onWillRun() {
|
|
27
|
+
return this._actionRunner.onWillRun;
|
|
28
|
+
}
|
|
29
|
+
get onDidRun() {
|
|
30
|
+
return this._actionRunner.onDidRun;
|
|
31
|
+
}
|
|
22
32
|
constructor(
|
|
23
33
|
container,
|
|
24
34
|
_options,
|
|
@@ -93,33 +103,54 @@ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
|
93
103
|
btn.enabled = action.enabled;
|
|
94
104
|
btn.checked = action.checked ?? false;
|
|
95
105
|
btn.element.classList.add("default-colors");
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
const
|
|
106
|
+
const config = configProvider(action, i);
|
|
107
|
+
const showLabel = config?.showLabel ?? true;
|
|
108
|
+
const showIcon = config?.showIcon;
|
|
109
|
+
const customClass = config?.customClass;
|
|
110
|
+
const customLabel = config?.customLabel;
|
|
111
|
+
const customLabelObs = config?.customLabelObs;
|
|
99
112
|
if (customClass) {
|
|
100
113
|
btn.element.classList.add(customClass);
|
|
101
114
|
}
|
|
115
|
+
const composeLabel = labelValue => {
|
|
116
|
+
if (showIcon && action instanceof MenuItemAction && ThemeIcon.isThemeIcon(action.item.icon) && showLabel) {
|
|
117
|
+
return isMarkdownString(labelValue) ? ( new MarkdownString(`$(${action.item.icon.id}) ${labelValue.value}`, {
|
|
118
|
+
isTrusted: labelValue.isTrusted,
|
|
119
|
+
supportThemeIcons: true,
|
|
120
|
+
supportHtml: labelValue.supportHtml
|
|
121
|
+
})) : `$(${action.item.icon.id}) ${labelValue}`;
|
|
122
|
+
}
|
|
123
|
+
return labelValue;
|
|
124
|
+
};
|
|
125
|
+
const applyLabel = labelValue => {
|
|
126
|
+
if (showLabel) {
|
|
127
|
+
btn.label = composeLabel(labelValue);
|
|
128
|
+
}
|
|
129
|
+
const labelStringValue = stripIcons(renderAsPlaintext(labelValue));
|
|
130
|
+
const ariaLabelWithKeybinding = this._keybindingService.appendKeybinding(labelStringValue, action.id);
|
|
131
|
+
btn.setTitle(ariaLabelWithKeybinding);
|
|
132
|
+
btn.setAriaLabel(ariaLabelWithKeybinding);
|
|
133
|
+
};
|
|
102
134
|
if (showLabel) {
|
|
103
|
-
btn.label = customLabel ?? action.label;
|
|
135
|
+
btn.label = composeLabel(customLabel ?? action.label);
|
|
104
136
|
} else {
|
|
105
137
|
btn.element.classList.add("monaco-text-button");
|
|
106
138
|
}
|
|
107
|
-
if (
|
|
139
|
+
if (showIcon) {
|
|
108
140
|
if (action instanceof MenuItemAction && ThemeIcon.isThemeIcon(action.item.icon)) {
|
|
109
141
|
if (!showLabel) {
|
|
110
142
|
btn.icon = action.item.icon;
|
|
111
|
-
} else {
|
|
112
|
-
const labelValue = customLabel ?? action.label;
|
|
113
|
-
btn.label = isMarkdownString(labelValue) ? ( new MarkdownString(`$(${action.item.icon.id}) ${labelValue.value}`, {
|
|
114
|
-
isTrusted: labelValue.isTrusted,
|
|
115
|
-
supportThemeIcons: true,
|
|
116
|
-
supportHtml: labelValue.supportHtml
|
|
117
|
-
})) : `$(${action.item.icon.id}) ${labelValue}`;
|
|
118
143
|
}
|
|
119
144
|
} else if (action.class) {
|
|
120
145
|
btn.element.classList.add(...action.class.split(" "));
|
|
121
146
|
}
|
|
122
147
|
}
|
|
148
|
+
if (customLabelObs) {
|
|
149
|
+
this._updateStore.add(autorun(reader => {
|
|
150
|
+
const v = customLabelObs.read(reader);
|
|
151
|
+
applyLabel(v ?? customLabel ?? action.label);
|
|
152
|
+
}));
|
|
153
|
+
}
|
|
123
154
|
this._updateStore.add(this._hoverService.setupManagedHover(hoverDelegate, btn.element, tooltip));
|
|
124
155
|
this._updateStore.add(btn.onDidClick(async () => {
|
|
125
156
|
if (this._options?.disableWhileRunning) {
|
|
@@ -137,14 +168,14 @@ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
|
137
168
|
if (secondary.length > 0) {
|
|
138
169
|
const btn = this.addButton({
|
|
139
170
|
secondary: true,
|
|
140
|
-
ariaLabel: ( localize(
|
|
171
|
+
ariaLabel: ( localize(1810, "More Actions")),
|
|
141
172
|
small: this._options?.small
|
|
142
173
|
});
|
|
143
174
|
btn.icon = Codicon.dropDownButton;
|
|
144
175
|
btn.element.classList.add("default-colors", "monaco-text-button");
|
|
145
176
|
btn.enabled = true;
|
|
146
177
|
this._updateStore.add(
|
|
147
|
-
this._hoverService.setupManagedHover(hoverDelegate, btn.element, ( localize(
|
|
178
|
+
this._hoverService.setupManagedHover(hoverDelegate, btn.element, ( localize(1810, "More Actions")))
|
|
148
179
|
);
|
|
149
180
|
this._updateStore.add(btn.onDidClick(async () => {
|
|
150
181
|
this._contextMenuService.showContextMenu({
|
|
@@ -24,6 +24,19 @@ export interface ITerminalSandboxWrapResult {
|
|
|
24
24
|
deniedDomains?: string[];
|
|
25
25
|
requiresUnsandboxConfirmation?: boolean;
|
|
26
26
|
}
|
|
27
|
+
export interface ITerminalSandboxCommand {
|
|
28
|
+
/**
|
|
29
|
+
* Normalized command name without path or executable suffix.
|
|
30
|
+
* For example, `/usr/bin/git` and `git.exe` both normalize to `git`.
|
|
31
|
+
*/
|
|
32
|
+
keyword: string;
|
|
33
|
+
/**
|
|
34
|
+
* Command arguments after the executable token. These are used for
|
|
35
|
+
* argument-sensitive sandbox allow-list rules, such as matching a specific
|
|
36
|
+
* subcommand while ignoring global options.
|
|
37
|
+
*/
|
|
38
|
+
args: readonly string[];
|
|
39
|
+
}
|
|
27
40
|
/**
|
|
28
41
|
* Abstraction over terminal operations needed by the install flow.
|
|
29
42
|
* Provided by the browser-layer caller so the common-layer service
|
|
@@ -61,9 +74,10 @@ export interface ISandboxDependencyInstallResult {
|
|
|
61
74
|
export declare class NullTerminalSandboxService implements ITerminalSandboxService {
|
|
62
75
|
readonly _serviceBrand: undefined;
|
|
63
76
|
isEnabled(): Promise<boolean>;
|
|
77
|
+
isSandboxAllowNetworkEnabled(): Promise<boolean>;
|
|
64
78
|
getOS(): Promise<OperatingSystem>;
|
|
65
79
|
checkForSandboxingPrereqs(): Promise<ITerminalSandboxPrerequisiteCheckResult>;
|
|
66
|
-
wrapCommand(command: string): ITerminalSandboxWrapResult
|
|
80
|
+
wrapCommand(command: string): Promise<ITerminalSandboxWrapResult>;
|
|
67
81
|
getSandboxConfigPath(): Promise<string | undefined>;
|
|
68
82
|
getTempDir(): URI | undefined;
|
|
69
83
|
setNeedsForceUpdateConfigFile(): void;
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js
CHANGED
|
@@ -25,7 +25,7 @@ const getToolConfirmationAlert = (accessor, toolInvocation) => {
|
|
|
25
25
|
if (state.type === IChatToolInvocation.StateKind.WaitingForPostApproval) {
|
|
26
26
|
const detail = isToolResultInputOutputDetails(state.resultDetails) ? state.resultDetails.input : isToolResultOutputDetails(state.resultDetails) ? undefined : toolContentToA11yString(state.contentForModel);
|
|
27
27
|
return {
|
|
28
|
-
title: ( localize(
|
|
28
|
+
title: ( localize(4746, "Approve results of tool")),
|
|
29
29
|
detail: detail
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ const getToolConfirmationAlert = (accessor, toolInvocation) => {
|
|
|
42
42
|
} else if (v.toolSpecificData.kind === "input") {
|
|
43
43
|
input = JSON.stringify(v.toolSpecificData.rawInput);
|
|
44
44
|
} else if (v.toolSpecificData.kind === "modifiedFilesConfirmation") {
|
|
45
|
-
input = ( localize(
|
|
45
|
+
input = ( localize(4747, "{0} files", v.toolSpecificData.modifiedFiles.length));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
const titleObj = state.confirmationMessages?.title;
|
|
@@ -53,18 +53,18 @@ const getToolConfirmationAlert = (accessor, toolInvocation) => {
|
|
|
53
53
|
};
|
|
54
54
|
})).filter(isDefined);
|
|
55
55
|
let message = acceptKb && cancelKb ? ( localize(
|
|
56
|
-
|
|
56
|
+
4748,
|
|
57
57
|
"Chat confirmation required: {0}. Press {1} to accept or {2} to cancel.",
|
|
58
58
|
( text.map(t => t.title)).join(", "),
|
|
59
59
|
acceptKb,
|
|
60
60
|
cancelKb
|
|
61
61
|
)) : ( localize(
|
|
62
|
-
|
|
62
|
+
4749,
|
|
63
63
|
"Chat confirmation required: {0}",
|
|
64
64
|
( text.map(t => t.title)).join(", ")
|
|
65
65
|
));
|
|
66
66
|
if (( text.some(t => t.detail))) {
|
|
67
|
-
message += " " + ( localize(
|
|
67
|
+
message += " " + ( localize(4750, "Details: {0}", ( text.map(t => t.detail ? t.detail : "")).join(" ")));
|
|
68
68
|
}
|
|
69
69
|
return message;
|
|
70
70
|
};
|
|
@@ -80,7 +80,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
80
80
|
return "listitem";
|
|
81
81
|
}
|
|
82
82
|
getWidgetAriaLabel() {
|
|
83
|
-
return localize(
|
|
83
|
+
return localize(4751, "Chat");
|
|
84
84
|
}
|
|
85
85
|
getAriaLabel(element) {
|
|
86
86
|
if (isRequestVM(element)) {
|
|
@@ -111,10 +111,10 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
111
111
|
case 0:
|
|
112
112
|
break;
|
|
113
113
|
case 1:
|
|
114
|
-
tableCountHint = ( localize(
|
|
114
|
+
tableCountHint = ( localize(4752, "1 table "));
|
|
115
115
|
break;
|
|
116
116
|
default:
|
|
117
|
-
tableCountHint = ( localize(
|
|
117
|
+
tableCountHint = ( localize(4753, "{0} tables ", tableCount));
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
const fileTreeCount = element.response.value.filter(v => v.kind === "treeData").length ?? 0;
|
|
@@ -123,10 +123,10 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
123
123
|
case 0:
|
|
124
124
|
break;
|
|
125
125
|
case 1:
|
|
126
|
-
fileTreeCountHint = ( localize(
|
|
126
|
+
fileTreeCountHint = ( localize(4754, "1 file tree "));
|
|
127
127
|
break;
|
|
128
128
|
default:
|
|
129
|
-
fileTreeCountHint = ( localize(
|
|
129
|
+
fileTreeCountHint = ( localize(4755, "{0} file trees ", fileTreeCount));
|
|
130
130
|
break;
|
|
131
131
|
}
|
|
132
132
|
const elicitationCount = element.response.value.filter(v => v.kind === "elicitation2" || v.kind === "elicitationSerialized");
|
|
@@ -140,7 +140,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
140
140
|
switch (codeBlockCount) {
|
|
141
141
|
case 0:
|
|
142
142
|
label = accessibleViewHint ? ( localize(
|
|
143
|
-
|
|
143
|
+
4756,
|
|
144
144
|
"{0}{1}{2}{3}{4} {5}",
|
|
145
145
|
toolInvocationHint,
|
|
146
146
|
fileTreeCountHint,
|
|
@@ -149,7 +149,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
149
149
|
(element.response.toString()),
|
|
150
150
|
accessibleViewHint
|
|
151
151
|
)) : ( localize(
|
|
152
|
-
|
|
152
|
+
4757,
|
|
153
153
|
"{0}{1}{2} {3}",
|
|
154
154
|
fileTreeCountHint,
|
|
155
155
|
elicitationHint,
|
|
@@ -159,7 +159,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
159
159
|
break;
|
|
160
160
|
case 1:
|
|
161
161
|
label = accessibleViewHint ? ( localize(
|
|
162
|
-
|
|
162
|
+
4758,
|
|
163
163
|
"{0}{1}{2}1 code block: {3} {4}{5}",
|
|
164
164
|
toolInvocationHint,
|
|
165
165
|
fileTreeCountHint,
|
|
@@ -168,7 +168,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
168
168
|
(element.response.toString()),
|
|
169
169
|
accessibleViewHint
|
|
170
170
|
)) : ( localize(
|
|
171
|
-
|
|
171
|
+
4759,
|
|
172
172
|
"{0}{1}1 code block: {2} {3}",
|
|
173
173
|
fileTreeCountHint,
|
|
174
174
|
elicitationHint,
|
|
@@ -178,7 +178,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
178
178
|
break;
|
|
179
179
|
default:
|
|
180
180
|
label = accessibleViewHint ? ( localize(
|
|
181
|
-
|
|
181
|
+
4760,
|
|
182
182
|
"{0}{1}{2}{3} code blocks: {4}{5} {6}",
|
|
183
183
|
toolInvocationHint,
|
|
184
184
|
fileTreeCountHint,
|
|
@@ -188,7 +188,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
188
188
|
(element.response.toString()),
|
|
189
189
|
accessibleViewHint
|
|
190
190
|
)) : ( localize(
|
|
191
|
-
|
|
191
|
+
4761,
|
|
192
192
|
"{0}{1}{2} code blocks: {3} {4}",
|
|
193
193
|
fileTreeCountHint,
|
|
194
194
|
elicitationHint,
|
|
@@ -42,6 +42,7 @@ import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workb
|
|
|
42
42
|
import { ctxHasEditorModification } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys';
|
|
43
43
|
import { CHAT_SETUP_ACTION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
44
44
|
import { toPromptFileVariableEntry, PromptFileVariableKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
|
|
45
|
+
import { getChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
45
46
|
|
|
46
47
|
var ChatContinueInSessionActionItem_1;
|
|
47
48
|
function extractNwoFromRemoteUrl(remoteUrl) {
|
|
@@ -91,8 +92,8 @@ class ContinueChatInSessionAction extends Action2 {
|
|
|
91
92
|
constructor() {
|
|
92
93
|
super({
|
|
93
94
|
id: ContinueChatInSessionAction.ID,
|
|
94
|
-
title: ( localize2(
|
|
95
|
-
tooltip: ( localize(
|
|
95
|
+
title: ( localize2(4941, "Continue Chat in...")),
|
|
96
|
+
tooltip: ( localize(4941, "Continue Chat in...")),
|
|
96
97
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.requestInProgress.negate()), ( ChatContextKeys.remoteJobCreating.negate()), ChatContextKeys.hasCanDelegateProviders)),
|
|
97
98
|
menu: [{
|
|
98
99
|
id: MenuId.ChatExecute,
|
|
@@ -144,8 +145,8 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
144
145
|
const learnMoreUrl = "https://aka.ms/vscode-continue-chat-in";
|
|
145
146
|
return [{
|
|
146
147
|
id: "workbench.action.chat.continueChatInSession.learnMore",
|
|
147
|
-
label: ( localize(
|
|
148
|
-
tooltip: ( localize(
|
|
148
|
+
label: ( localize(4942, "Learn More")),
|
|
149
|
+
tooltip: ( localize(4942, "Learn More")),
|
|
149
150
|
class: undefined,
|
|
150
151
|
enabled: true,
|
|
151
152
|
run: async () => {
|
|
@@ -209,9 +210,9 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
209
210
|
class: undefined,
|
|
210
211
|
description: `@${contrib.name}`,
|
|
211
212
|
label: getAgentSessionProviderName(provider),
|
|
212
|
-
tooltip: ( localize(
|
|
213
|
+
tooltip: ( localize(4943, "Continue in {0}", getAgentSessionProviderName(provider))),
|
|
213
214
|
category: {
|
|
214
|
-
label: ( localize(
|
|
215
|
+
label: ( localize(4944, "Continue In")),
|
|
215
216
|
order: 0,
|
|
216
217
|
showHeader: true
|
|
217
218
|
},
|
|
@@ -230,9 +231,9 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
230
231
|
icon: getAgentSessionProviderIcon(provider),
|
|
231
232
|
class: undefined,
|
|
232
233
|
label: getAgentSessionProviderName(provider),
|
|
233
|
-
tooltip: ( localize(
|
|
234
|
+
tooltip: ( localize(4943, "Continue in {0}", getAgentSessionProviderName(provider))),
|
|
234
235
|
category: {
|
|
235
|
-
label: ( localize(
|
|
236
|
+
label: ( localize(4944, "Continue In")),
|
|
236
237
|
order: 0,
|
|
237
238
|
showHeader: true
|
|
238
239
|
},
|
|
@@ -246,7 +247,7 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
246
247
|
if (this.location === ActionLocation.Editor) {
|
|
247
248
|
const view = h("span.action-widget-delegate-label", [h("span", {
|
|
248
249
|
className: ThemeIcon.asClassName(Codicon.forward)
|
|
249
|
-
}), h("span", [( localize(
|
|
250
|
+
}), h("span", [( localize(4945, "Continue in..."))])]);
|
|
250
251
|
element.appendChild(view.root);
|
|
251
252
|
return null;
|
|
252
253
|
} else {
|
|
@@ -428,11 +429,15 @@ class CreateRemoteAgentJobAction {
|
|
|
428
429
|
const defaultAgent = chatAgentService.getDefaultAgent(ChatAgentLocation.Chat);
|
|
429
430
|
const instantiationService = accessor.get(IInstantiationService);
|
|
430
431
|
const requestParser = instantiationService.createInstance(ChatRequestParser);
|
|
432
|
+
const context = {
|
|
433
|
+
sessionType: getChatSessionType(sessionResource)
|
|
434
|
+
};
|
|
431
435
|
const parsedRequest = requestParser.parseChatRequestWithReferences(
|
|
432
436
|
getDynamicVariablesForWidget(widget),
|
|
433
437
|
getSelectedToolAndToolSetsForWidget(widget),
|
|
434
438
|
userPrompt,
|
|
435
|
-
ChatAgentLocation.Chat
|
|
439
|
+
ChatAgentLocation.Chat,
|
|
440
|
+
context
|
|
436
441
|
);
|
|
437
442
|
const addedRequest = chatModel.addRequest(parsedRequest, {
|
|
438
443
|
variables: attachedContext.asArray()
|
|
@@ -15,7 +15,7 @@ class AcceptElicitationRequestAction extends Action2 {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: AcceptElicitationRequestActionId,
|
|
18
|
-
title: ( localize2(
|
|
18
|
+
title: ( localize2(4960, "Accept Request")),
|
|
19
19
|
f1: false,
|
|
20
20
|
category: CHAT_CATEGORY,
|
|
21
21
|
keybinding: {
|