@codingame/monaco-vscode-katex-common 33.0.7 → 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 +3 -3
- 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
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { Task } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/taskService";
|
|
2
|
-
import type { ITerminalInstance } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal";
|
|
3
|
-
import type { ILinkLocation } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers";
|
|
4
|
-
import type { IMarker as XtermMarker } from "@xterm/xterm";
|
|
5
|
-
import type { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
6
|
-
export interface IConfirmationPrompt {
|
|
7
|
-
prompt: string;
|
|
8
|
-
options: string[];
|
|
9
|
-
descriptions?: string[];
|
|
10
|
-
detectedRequestForFreeFormInput: boolean;
|
|
11
|
-
suggestedInput?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IExecution {
|
|
14
|
-
getOutput: (marker?: XtermMarker) => string;
|
|
15
|
-
isActive?: () => Promise<boolean>;
|
|
16
|
-
task?: Task | Pick<Task, "configurationProperties">;
|
|
17
|
-
dependencyTasks?: Task[];
|
|
18
|
-
instance: Pick<ITerminalInstance, "sendText" | "instanceId" | "onDidInputData" | "onDisposed" | "onData" | "focus" | "registerMarker">;
|
|
19
|
-
sessionResource: URI | undefined;
|
|
20
|
-
}
|
|
21
|
-
export interface IPollingResult {
|
|
22
|
-
output: string;
|
|
23
|
-
resources?: ILinkLocation[];
|
|
24
|
-
state: OutputMonitorState;
|
|
25
|
-
}
|
|
26
|
-
export declare enum OutputMonitorState {
|
|
27
|
-
Initial = "Initial",
|
|
28
|
-
Idle = "Idle",
|
|
29
|
-
PollingForIdle = "PollingForIdle",
|
|
30
|
-
Prompting = "Prompting",
|
|
31
|
-
Timeout = "Timeout",
|
|
32
|
-
Active = "Active",
|
|
33
|
-
Cancelled = "Cancelled"
|
|
34
|
-
}
|
|
35
|
-
export declare enum PollingConsts {
|
|
36
|
-
MinIdleEvents = 2,// Minimum number of idle checks before considering the terminal idle
|
|
37
|
-
MinPollingDuration = 500,
|
|
38
|
-
FirstPollingMaxDuration = 20000,// 20 seconds
|
|
39
|
-
ExtendedPollingMaxDuration = 120000,// 2 minutes
|
|
40
|
-
MaxPollingIntervalDuration = 10000,// 10 seconds - grows via exponential backoff
|
|
41
|
-
MaxRecursionCount = 5
|
|
42
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var OutputMonitorState;
|
|
4
|
-
(function (OutputMonitorState) {
|
|
5
|
-
OutputMonitorState["Initial"] = "Initial";
|
|
6
|
-
OutputMonitorState["Idle"] = "Idle";
|
|
7
|
-
OutputMonitorState["PollingForIdle"] = "PollingForIdle";
|
|
8
|
-
OutputMonitorState["Prompting"] = "Prompting";
|
|
9
|
-
OutputMonitorState["Timeout"] = "Timeout";
|
|
10
|
-
OutputMonitorState["Active"] = "Active";
|
|
11
|
-
OutputMonitorState["Cancelled"] = "Cancelled";
|
|
12
|
-
})(OutputMonitorState || (OutputMonitorState = {}));
|
|
13
|
-
var PollingConsts;
|
|
14
|
-
(function (PollingConsts) {
|
|
15
|
-
PollingConsts[PollingConsts["MinIdleEvents"] = 2] = "MinIdleEvents";
|
|
16
|
-
PollingConsts[PollingConsts["MinPollingDuration"] = 500] = "MinPollingDuration";
|
|
17
|
-
PollingConsts[PollingConsts["FirstPollingMaxDuration"] = 20000] = "FirstPollingMaxDuration";
|
|
18
|
-
PollingConsts[PollingConsts["ExtendedPollingMaxDuration"] = 120000] = "ExtendedPollingMaxDuration";
|
|
19
|
-
PollingConsts[PollingConsts["MaxPollingIntervalDuration"] = 10000] = "MaxPollingIntervalDuration";
|
|
20
|
-
PollingConsts[PollingConsts["MaxRecursionCount"] = 5] = "MaxRecursionCount";
|
|
21
|
-
})(PollingConsts || (PollingConsts = {}));
|
|
22
|
-
|
|
23
|
-
export { OutputMonitorState, PollingConsts };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface IOutputAnalyzerOptions {
|
|
2
|
-
readonly exitCode: number | undefined;
|
|
3
|
-
readonly exitResult: string;
|
|
4
|
-
readonly commandLine: string;
|
|
5
|
-
readonly isSandboxWrapped: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface IOutputAnalyzer {
|
|
8
|
-
analyze(options: IOutputAnalyzerOptions): Promise<string | undefined>;
|
|
9
|
-
}
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { ResourceMap } from "@codingame/monaco-vscode-api/vscode/vs/base/common/map";
|
|
4
|
-
import { OperatingSystem } from "@codingame/monaco-vscode-api/vscode/vs/base/common/platform";
|
|
5
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
6
|
-
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
7
|
-
import { IInstantiationService, type ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
|
-
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
9
|
-
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
10
|
-
import { ITerminalProfile } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal";
|
|
11
|
-
import { ITerminalLogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal.service";
|
|
12
|
-
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
13
|
-
import { IHistoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/history/common/history.service";
|
|
14
|
-
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
15
|
-
import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
16
|
-
import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
|
|
17
|
-
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
18
|
-
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
19
|
-
import { CountTokensCallback, IPreparedToolInvocation, IStreamedToolInvocation, IToolData, IToolImpl, IToolInvocation, IToolInvocationPreparationContext, IToolInvocationStreamContext, IToolResult, ToolProgress } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService";
|
|
20
|
-
import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service";
|
|
21
|
-
import { type ITerminalInstance } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal";
|
|
22
|
-
import { ITerminalChatService, ITerminalService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
23
|
-
import { ITerminalProfileResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service";
|
|
24
|
-
import { ITerminalSandboxService } from "../../common/terminalSandboxService.js";
|
|
25
|
-
import type { ITerminalExecuteStrategyResult } from "../executeStrategy/executeStrategy.js";
|
|
26
|
-
import { type IToolTerminal } from "../toolTerminalCreator.js";
|
|
27
|
-
export declare function createRunInTerminalToolData(accessor: ServicesAccessor): Promise<IToolData>;
|
|
28
|
-
export interface IRunInTerminalInputParams {
|
|
29
|
-
command: string;
|
|
30
|
-
explanation: string;
|
|
31
|
-
goal: string;
|
|
32
|
-
mode?: "sync" | "async";
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use `mode` instead.
|
|
35
|
-
*/
|
|
36
|
-
isBackground?: boolean;
|
|
37
|
-
timeout?: number;
|
|
38
|
-
requestUnsandboxedExecution?: boolean;
|
|
39
|
-
requestUnsandboxedExecutionReason?: string;
|
|
40
|
-
allowToRunUnsandboxedCommands?: boolean;
|
|
41
|
-
}
|
|
42
|
-
export interface IAutomaticUnsandboxRetryOptions {
|
|
43
|
-
readonly allowUnsandboxedCommands: boolean;
|
|
44
|
-
readonly didSandboxWrapCommand: boolean;
|
|
45
|
-
readonly requestUnsandboxedExecution: boolean;
|
|
46
|
-
readonly isPersistentSession: boolean;
|
|
47
|
-
readonly isBackgroundExecution: boolean;
|
|
48
|
-
readonly didTimeout: boolean;
|
|
49
|
-
readonly exitCode: number | undefined;
|
|
50
|
-
readonly output: string;
|
|
51
|
-
}
|
|
52
|
-
export declare function shouldAutomaticallyRetryUnsandboxed(options: IAutomaticUnsandboxRetryOptions): boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Interface for accessing a running terminal execution.
|
|
55
|
-
* Used by tools that need to await or interact with background terminal commands.
|
|
56
|
-
*/
|
|
57
|
-
export interface IActiveTerminalExecution {
|
|
58
|
-
/**
|
|
59
|
-
* Promise that resolves when the terminal command completes.
|
|
60
|
-
*/
|
|
61
|
-
readonly completionPromise: Promise<ITerminalExecuteStrategyResult>;
|
|
62
|
-
/**
|
|
63
|
-
* The terminal instance associated with this execution.
|
|
64
|
-
*/
|
|
65
|
-
readonly instance: ITerminalInstance;
|
|
66
|
-
/**
|
|
67
|
-
* Gets the current output from the terminal.
|
|
68
|
-
*/
|
|
69
|
-
getOutput(): string;
|
|
70
|
-
/**
|
|
71
|
-
* Switches this execution to background mode, if supported.
|
|
72
|
-
*/
|
|
73
|
-
setBackground?(): void;
|
|
74
|
-
}
|
|
75
|
-
export declare class RunInTerminalTool extends Disposable implements IToolImpl {
|
|
76
|
-
protected readonly _chatService: IChatService;
|
|
77
|
-
private readonly _configurationService;
|
|
78
|
-
private readonly _fileService;
|
|
79
|
-
private readonly _historyService;
|
|
80
|
-
private readonly _instantiationService;
|
|
81
|
-
private readonly _labelService;
|
|
82
|
-
private readonly _languageModelToolsService;
|
|
83
|
-
private readonly _remoteAgentService;
|
|
84
|
-
private readonly _storageService;
|
|
85
|
-
private readonly _terminalChatService;
|
|
86
|
-
private readonly _logService;
|
|
87
|
-
private readonly _terminalService;
|
|
88
|
-
private readonly _terminalSandboxService;
|
|
89
|
-
private readonly _workspaceContextService;
|
|
90
|
-
private readonly _chatWidgetService;
|
|
91
|
-
private readonly _agentSessionsService;
|
|
92
|
-
private readonly _terminalToolCreator;
|
|
93
|
-
private readonly _treeSitterCommandParser;
|
|
94
|
-
private readonly _telemetry;
|
|
95
|
-
private readonly _commandArtifactCollector;
|
|
96
|
-
protected readonly _profileFetcher: TerminalProfileFetcher;
|
|
97
|
-
private readonly _commandLineRewriters;
|
|
98
|
-
private readonly _commandLineAnalyzers;
|
|
99
|
-
private readonly _commandLinePresenters;
|
|
100
|
-
private readonly _outputAnalyzers;
|
|
101
|
-
private readonly _archivedSessionListener;
|
|
102
|
-
protected readonly _sessionTerminalAssociations: ResourceMap<IToolTerminal>;
|
|
103
|
-
protected readonly _sessionTerminalInstances: ResourceMap<Set<ITerminalInstance>>;
|
|
104
|
-
private readonly _terminalsBeingDisposedBySessionCleanup;
|
|
105
|
-
/**
|
|
106
|
-
* Tracks active background completion notifications per terminal instance ID.
|
|
107
|
-
* When a new notification is registered for a terminal that already has one,
|
|
108
|
-
* the previous notification (and its OutputMonitor) is disposed first to
|
|
109
|
-
* prevent listener accumulation on the terminal's onDidInputData emitter.
|
|
110
|
-
*
|
|
111
|
-
* Keyed by `ITerminalInstance.instanceId` (stable per terminal) rather than
|
|
112
|
-
* the per-invocation `termId` so that reusing the same foreground terminal
|
|
113
|
-
* after an `inputNeeded` race disposes the prior OutputMonitor.
|
|
114
|
-
*/
|
|
115
|
-
private readonly _backgroundNotifications;
|
|
116
|
-
/**
|
|
117
|
-
* Set when VS Code is shutting down. Suppresses "terminal exited"
|
|
118
|
-
* notifications that would otherwise be generated when background
|
|
119
|
-
* terminals are disposed during shutdown and then persist as
|
|
120
|
-
* undeliverable steering messages after restart.
|
|
121
|
-
*/
|
|
122
|
-
private _isShuttingDown;
|
|
123
|
-
protected readonly _osBackend: Promise<OperatingSystem>;
|
|
124
|
-
private static readonly _activeExecutions;
|
|
125
|
-
/**
|
|
126
|
-
* Terminal IDs being programmatically disposed (by `kill_terminal` or
|
|
127
|
-
* automatic background-terminal cleanup). Used to suppress the redundant
|
|
128
|
-
* "terminal exited" steering message in `_registerCompletionNotification`'s
|
|
129
|
-
* `onDisposed` handler.
|
|
130
|
-
*/
|
|
131
|
-
private static readonly _killedByTool;
|
|
132
|
-
static getBackgroundOutput(id: string): string;
|
|
133
|
-
/**
|
|
134
|
-
* Gets an active terminal execution by ID. Returns undefined if not found.
|
|
135
|
-
* Can be used to await the completion of a background terminal command.
|
|
136
|
-
*/
|
|
137
|
-
static getExecution(id: string): IActiveTerminalExecution | undefined;
|
|
138
|
-
/**
|
|
139
|
-
* Removes an active terminal execution by ID and disposes it.
|
|
140
|
-
* @returns true if the execution was found and removed, false otherwise.
|
|
141
|
-
*/
|
|
142
|
-
static removeExecution(id: string): boolean;
|
|
143
|
-
/**
|
|
144
|
-
* Marks a terminal ID as being killed by the `kill_terminal` tool so that
|
|
145
|
-
* the `onDisposed` handler in `_registerCompletionNotification` skips the
|
|
146
|
-
* redundant steering message.
|
|
147
|
-
*/
|
|
148
|
-
static markKilledByTool(id: string): void;
|
|
149
|
-
private _resolveExecutionOptions;
|
|
150
|
-
private get _allowUnsandboxedCommands();
|
|
151
|
-
private get _autoApproveUnsandboxedCommands();
|
|
152
|
-
private get _allowSandboxAutoApprove();
|
|
153
|
-
private _getAllowToRunUnsandboxedCommands;
|
|
154
|
-
private _shouldRejectUnsandboxedExecutionRequest;
|
|
155
|
-
private _getUnsandboxedExecutionDisabledMessage;
|
|
156
|
-
/**
|
|
157
|
-
* Controls whether this tool wires up sandbox-specific command-line
|
|
158
|
-
* behavior, including both the {@link CommandLineSandboxRewriter} and the
|
|
159
|
-
* {@link CommandLineSandboxAnalyzer}. This is separate from
|
|
160
|
-
* ITerminalSandboxService.isEnabled(), which reports the current terminal
|
|
161
|
-
* sandboxing enablement for the running window.
|
|
162
|
-
*/
|
|
163
|
-
protected get _enableCommandLineSandboxRewriting(): boolean;
|
|
164
|
-
constructor(_chatService: IChatService, _configurationService: IConfigurationService, _fileService: IFileService, _historyService: IHistoryService, _instantiationService: IInstantiationService, _labelService: ILabelService, _languageModelToolsService: ILanguageModelToolsService, _remoteAgentService: IRemoteAgentService, _storageService: IStorageService, _terminalChatService: ITerminalChatService, _logService: ITerminalLogService, _terminalService: ITerminalService, _terminalSandboxService: ITerminalSandboxService, _workspaceContextService: IWorkspaceContextService, _chatWidgetService: IChatWidgetService, _agentSessionsService: IAgentSessionsService, lifecycleService: ILifecycleService);
|
|
165
|
-
handleToolStream(context: IToolInvocationStreamContext, _token: CancellationToken): Promise<IStreamedToolInvocation | undefined>;
|
|
166
|
-
prepareToolInvocation(context: IToolInvocationPreparationContext, token: CancellationToken): Promise<IPreparedToolInvocation | undefined>;
|
|
167
|
-
private _formatBlockedDomainsForTitle;
|
|
168
|
-
private _getBlockedDomainReason;
|
|
169
|
-
private _rewriteCommandLine;
|
|
170
|
-
private _confirmAutomaticUnsandboxRetry;
|
|
171
|
-
private _getAutomaticUnsandboxRetryTitle;
|
|
172
|
-
/**
|
|
173
|
-
* Surface a confirmation dialog when the terminal is detected to be waiting
|
|
174
|
-
* for sensitive input (password, passphrase, OTP, …). Sensitive prompts must
|
|
175
|
-
* never be routed through the model — the user types the secret directly
|
|
176
|
-
* into the terminal. The "Focus terminal" action reveals and focuses the
|
|
177
|
-
* terminal; the "Cancel" action cancels the running command.
|
|
178
|
-
*
|
|
179
|
-
* Returns a disposable that hides any pending elicitation. The handler
|
|
180
|
-
* itself dedupes concurrent elicitations so repeated polling cycles don't
|
|
181
|
-
* spam the chat session.
|
|
182
|
-
*/
|
|
183
|
-
private _registerSensitiveInputElicitation;
|
|
184
|
-
private _acceptAutomaticUnsandboxRetryToolInvocationUpdate;
|
|
185
|
-
invoke(invocation: IToolInvocation, _countTokens: CountTokensCallback, _progress: ToolProgress, token: CancellationToken): Promise<IToolResult>;
|
|
186
|
-
/**
|
|
187
|
-
* Builds the steering text the model sees when the terminal tool suspects
|
|
188
|
-
* the command may be waiting for input. The heuristic that triggers this
|
|
189
|
-
* note can false-positive on long-running compute commands or shells sitting
|
|
190
|
-
* on a secondary prompt (e.g. heredoc continuation `> `), so the text
|
|
191
|
-
* explicitly:
|
|
192
|
-
* 1. Tells the model this note is NOT a signal to end the turn.
|
|
193
|
-
* 2. In auto-approve mode, leads with `send_to_terminal` for non-secret
|
|
194
|
-
* prompts to minimize round-trips, with a `get_terminal_output` fallback.
|
|
195
|
-
* 3. In default mode, leads with `get_terminal_output` as the safe
|
|
196
|
-
* recovery action and offers `vscode_askQuestions` only for real
|
|
197
|
-
* non-secret prompts. Secret prompts (passwords, passphrases,
|
|
198
|
-
* tokens) must never be routed through `vscode_askQuestions`
|
|
199
|
-
* because answers to that tool are sent through the model — the
|
|
200
|
-
* user is told to type those values directly into the terminal.
|
|
201
|
-
* `kill_terminal` is only advertised when the command may be hung
|
|
202
|
-
* (`'timeout'` or `'idleSilence'`) — suggesting it in the general case
|
|
203
|
-
* leads the model to terminate valid interactive sessions (e.g.
|
|
204
|
-
* `npm init`) instead of driving them.
|
|
205
|
-
*/
|
|
206
|
-
private _buildInputNeededSteeringText;
|
|
207
|
-
private _getOutputAnalyzerMessage;
|
|
208
|
-
private static readonly _maxImageFileSize;
|
|
209
|
-
/**
|
|
210
|
-
* Scans terminal output for file paths that point to images and reads them.
|
|
211
|
-
* Returns data content parts for any found images that exist on disk.
|
|
212
|
-
*/
|
|
213
|
-
private _extractImagesFromOutput;
|
|
214
|
-
private _handleTerminalVisibility;
|
|
215
|
-
/**
|
|
216
|
-
* Initializes a terminal for command execution. For foreground mode, reuses existing cached
|
|
217
|
-
* terminal from the session. For background mode, always creates a new terminal to allow
|
|
218
|
-
* parallel execution.
|
|
219
|
-
*/
|
|
220
|
-
private _initTerminal;
|
|
221
|
-
private _registerInputListener;
|
|
222
|
-
private _restoreTerminalAssociations;
|
|
223
|
-
private _setupProcessIdAssociation;
|
|
224
|
-
private _associateProcessIdWithSession;
|
|
225
|
-
private _removeProcessIdAssociation;
|
|
226
|
-
private _cleanupSessionTerminals;
|
|
227
|
-
private _addSessionTerminalAssociation;
|
|
228
|
-
private _ensureArchivedSessionListener;
|
|
229
|
-
private _removeTerminalAssociations;
|
|
230
|
-
private _removeExecutionAssociations;
|
|
231
|
-
/**
|
|
232
|
-
* Registers a listener for command completion on a background terminal.
|
|
233
|
-
* When a command finishes, sends a steering message to the chat session
|
|
234
|
-
* so the agent is notified on its next turn.
|
|
235
|
-
*
|
|
236
|
-
* If an output monitor is provided, it is continued in background mode
|
|
237
|
-
* to detect prompts-for-input while the terminal runs in the background.
|
|
238
|
-
* The output monitor is cancelled and disposed when a command finishes.
|
|
239
|
-
*/
|
|
240
|
-
private _registerCompletionNotification;
|
|
241
|
-
/**
|
|
242
|
-
* Find and dismiss any pending (not yet answered) question carousels that
|
|
243
|
-
* are associated with the given terminal. This is called when the user
|
|
244
|
-
* types directly into the terminal, bypassing the carousel UI.
|
|
245
|
-
*/
|
|
246
|
-
private _dismissPendingCarouselsForTerminal;
|
|
247
|
-
}
|
|
248
|
-
export declare class TerminalProfileFetcher {
|
|
249
|
-
private readonly _configurationService;
|
|
250
|
-
private readonly _terminalProfileResolverService;
|
|
251
|
-
private readonly _remoteAgentService;
|
|
252
|
-
readonly osBackend: Promise<OperatingSystem>;
|
|
253
|
-
constructor(_configurationService: IConfigurationService, _terminalProfileResolverService: ITerminalProfileResolverService, _remoteAgentService: IRemoteAgentService);
|
|
254
|
-
getCopilotProfile(): Promise<ITerminalProfile>;
|
|
255
|
-
getCopilotShell(): Promise<string>;
|
|
256
|
-
private _getChatTerminalProfile;
|
|
257
|
-
private _isValidChatAgentTerminalProfile;
|
|
258
|
-
}
|