@codingame/monaco-vscode-katex-common 33.0.9 → 34.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/base/browser/ui/pixelSpinner/pixelSpinner.css +169 -0
- package/vscode/src/vs/base/browser/ui/pixelSpinner/pixelSpinner.d.ts +28 -0
- package/vscode/src/vs/base/browser/ui/pixelSpinner/pixelSpinner.js +61 -0
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +1 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +18 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +40 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.d.ts +1 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.js +4 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.d.ts +16 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.js +81 -69
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.js +5 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionUri.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionUri.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/media/agentHostChatInputPicker.css +18 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +177 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +69 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +25 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatEditPillElement.d.ts +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatEditPillElement.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExternalEditContentPart.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExternalEditContentPart.js +134 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +49 -117
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +47 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +52 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +18 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +23 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +13 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +87 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +21 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +102 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatCodeBlockPill.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +21 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +35 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +62 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +15 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +13 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +154 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +113 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatGoalBannerWidget.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatGoalBannerWidget.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.js +18 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +361 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputStatusActionViewItem.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputStatusActionViewItem.js +147 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +11 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +133 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.js +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +13 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatGoalBannerWidget.css +81 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatInputNotificationWidget.css +32 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +39 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +23 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +66 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +373 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +18 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +54 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +30 -30
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +0 -76
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +0 -191
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +0 -50
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +0 -138
- package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +0 -12
- package/vscode/src/vs/platform/networkFilter/common/settings.js +0 -14
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +0 -18
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +0 -13
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +0 -87
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +0 -10
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribChatExports.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +0 -142
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +0 -232
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +0 -225
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +0 -143
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +0 -205
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +0 -174
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +0 -43
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +0 -260
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +0 -98
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +0 -225
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +0 -392
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +0 -243
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +0 -53
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +0 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +0 -310
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +0 -177
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +0 -33
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +0 -102
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +0 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +0 -33
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +0 -53
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +0 -177
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +0 -512
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +0 -23
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +0 -2623
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +0 -43
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +0 -118
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.js +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +0 -58
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +0 -223
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.js +0 -49
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.js +0 -302
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.js +0 -118
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +0 -114
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +0 -788
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { getActiveElement, isHTMLElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
-
import { BaseDropdown } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/dropdown/dropdown';
|
|
5
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
6
|
-
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
7
|
-
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
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
|
-
|
|
12
|
-
let ActionWidgetDropdown = class ActionWidgetDropdown extends BaseDropdown {
|
|
13
|
-
constructor(
|
|
14
|
-
container,
|
|
15
|
-
_options,
|
|
16
|
-
actionWidgetService,
|
|
17
|
-
keybindingService,
|
|
18
|
-
telemetryService
|
|
19
|
-
) {
|
|
20
|
-
super(container, _options);
|
|
21
|
-
this._options = _options;
|
|
22
|
-
this.actionWidgetService = actionWidgetService;
|
|
23
|
-
this.keybindingService = keybindingService;
|
|
24
|
-
this.telemetryService = telemetryService;
|
|
25
|
-
this._enabled = true;
|
|
26
|
-
}
|
|
27
|
-
show() {
|
|
28
|
-
if (!this._enabled) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
const actionBarActions = this._options.actionBarActions ?? this._options.actionBarActionProvider?.getActions() ?? [];
|
|
32
|
-
const actions = this._options.actions ?? this._options.actionProvider?.getActions() ?? [];
|
|
33
|
-
const optionBeforeOpen = actions.find(a => a.checked);
|
|
34
|
-
let selectedOption = optionBeforeOpen;
|
|
35
|
-
const actionWidgetItems = [];
|
|
36
|
-
const actionsByCategory = ( new Map());
|
|
37
|
-
for (const action of actions) {
|
|
38
|
-
let category = action.category;
|
|
39
|
-
if (!category) {
|
|
40
|
-
category = {
|
|
41
|
-
label: "",
|
|
42
|
-
order: Number.MIN_SAFE_INTEGER
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
if (!( actionsByCategory.has(category.label))) {
|
|
46
|
-
actionsByCategory.set(category.label, []);
|
|
47
|
-
}
|
|
48
|
-
actionsByCategory.get(category.label).push(action);
|
|
49
|
-
}
|
|
50
|
-
const sortedCategories = Array.from(actionsByCategory.entries()).sort((a, b) => {
|
|
51
|
-
const aOrder = a[1][0]?.category?.order ?? Number.MAX_SAFE_INTEGER;
|
|
52
|
-
const bOrder = b[1][0]?.category?.order ?? Number.MAX_SAFE_INTEGER;
|
|
53
|
-
return aOrder - bOrder;
|
|
54
|
-
});
|
|
55
|
-
for (let i = 0; i < sortedCategories.length; i++) {
|
|
56
|
-
const [categoryLabel, categoryActions] = sortedCategories[i];
|
|
57
|
-
const showHeader = categoryActions[0]?.category?.showHeader ?? false;
|
|
58
|
-
if (showHeader && categoryLabel) {
|
|
59
|
-
actionWidgetItems.push({
|
|
60
|
-
kind: ActionListItemKind.Header,
|
|
61
|
-
label: categoryLabel,
|
|
62
|
-
canPreview: false,
|
|
63
|
-
disabled: false,
|
|
64
|
-
hideIcon: false
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
for (const action of categoryActions) {
|
|
68
|
-
actionWidgetItems.push({
|
|
69
|
-
item: action,
|
|
70
|
-
tooltip: action.tooltip,
|
|
71
|
-
description: action.description,
|
|
72
|
-
detail: action.detail,
|
|
73
|
-
hover: action.hover,
|
|
74
|
-
toolbarActions: action.toolbarActions,
|
|
75
|
-
kind: ActionListItemKind.Action,
|
|
76
|
-
canPreview: false,
|
|
77
|
-
group: {
|
|
78
|
-
title: "",
|
|
79
|
-
icon: action.icon ?? ThemeIcon.fromId(action.checked ? Codicon.check.id : Codicon.blank.id)
|
|
80
|
-
},
|
|
81
|
-
disabled: !action.enabled,
|
|
82
|
-
hideIcon: false,
|
|
83
|
-
label: action.label,
|
|
84
|
-
keybinding: this._options.showItemKeybindings ? (action.keybinding ?? this.keybindingService.lookupKeybinding(action.id)) : undefined
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
if (i < sortedCategories.length - 1) {
|
|
88
|
-
actionWidgetItems.push({
|
|
89
|
-
label: "",
|
|
90
|
-
kind: ActionListItemKind.Separator,
|
|
91
|
-
canPreview: false,
|
|
92
|
-
disabled: false,
|
|
93
|
-
hideIcon: false
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
const previouslyFocusedElement = getActiveElement();
|
|
98
|
-
const auxiliaryActionIds = ( new Set(( actionBarActions.map(action => action.id))));
|
|
99
|
-
const actionWidgetDelegate = {
|
|
100
|
-
onSelect: (action, preview) => {
|
|
101
|
-
if (!( auxiliaryActionIds.has(action.id))) {
|
|
102
|
-
selectedOption = action;
|
|
103
|
-
}
|
|
104
|
-
this.actionWidgetService.hide();
|
|
105
|
-
action.run();
|
|
106
|
-
},
|
|
107
|
-
onHide: () => {
|
|
108
|
-
this.hide();
|
|
109
|
-
if (isHTMLElement(previouslyFocusedElement)) {
|
|
110
|
-
previouslyFocusedElement.focus();
|
|
111
|
-
}
|
|
112
|
-
this._emitCloseEvent(optionBeforeOpen, selectedOption);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
if (actionBarActions.length) {
|
|
116
|
-
if (actionWidgetItems.length) {
|
|
117
|
-
actionWidgetItems.push({
|
|
118
|
-
label: "",
|
|
119
|
-
kind: ActionListItemKind.Separator,
|
|
120
|
-
canPreview: false,
|
|
121
|
-
disabled: false,
|
|
122
|
-
hideIcon: false
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
for (const action of actionBarActions) {
|
|
126
|
-
actionWidgetItems.push({
|
|
127
|
-
item: action,
|
|
128
|
-
tooltip: action.tooltip,
|
|
129
|
-
kind: ActionListItemKind.Action,
|
|
130
|
-
canPreview: false,
|
|
131
|
-
group: {
|
|
132
|
-
title: "",
|
|
133
|
-
icon: ThemeIcon.fromId(Codicon.blank.id)
|
|
134
|
-
},
|
|
135
|
-
disabled: !action.enabled,
|
|
136
|
-
hideIcon: false,
|
|
137
|
-
label: action.label
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
const accessibilityProvider = {
|
|
142
|
-
isChecked(element) {
|
|
143
|
-
return element.kind === ActionListItemKind.Action && !!element?.item?.checked;
|
|
144
|
-
},
|
|
145
|
-
getRole: e => {
|
|
146
|
-
switch (e.kind) {
|
|
147
|
-
case ActionListItemKind.Action:
|
|
148
|
-
return e.item && ( auxiliaryActionIds.has(e.item.id)) ? "menuitem" : "menuitemcheckbox";
|
|
149
|
-
case ActionListItemKind.Separator:
|
|
150
|
-
return "separator";
|
|
151
|
-
default:
|
|
152
|
-
return "separator";
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
getWidgetRole: () => "menu"
|
|
156
|
-
};
|
|
157
|
-
super.show();
|
|
158
|
-
this.actionWidgetService.show(
|
|
159
|
-
this._options.label ?? "",
|
|
160
|
-
false,
|
|
161
|
-
actionWidgetItems,
|
|
162
|
-
actionWidgetDelegate,
|
|
163
|
-
this._options.getAnchor?.() ?? this.element,
|
|
164
|
-
undefined,
|
|
165
|
-
[],
|
|
166
|
-
accessibilityProvider,
|
|
167
|
-
this._options.listOptions
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
setEnabled(enabled) {
|
|
171
|
-
this._enabled = enabled;
|
|
172
|
-
}
|
|
173
|
-
_emitCloseEvent(optionBeforeOpen, selectedOption) {
|
|
174
|
-
const optionBefore = optionBeforeOpen;
|
|
175
|
-
const optionAfter = selectedOption;
|
|
176
|
-
if (this._options.reporter) {
|
|
177
|
-
this.telemetryService.publicLog2("actionWidgetDropdownClosed", {
|
|
178
|
-
id: this._options.reporter.id,
|
|
179
|
-
name: this._options.reporter.name,
|
|
180
|
-
selectionChanged: optionBefore?.id !== optionAfter?.id,
|
|
181
|
-
optionIdBefore: this._options.reporter.includeOptions ? optionBefore?.id : undefined,
|
|
182
|
-
optionIdAfter: this._options.reporter.includeOptions ? optionAfter?.id : undefined,
|
|
183
|
-
optionLabelBefore: this._options.reporter.includeOptions ? optionBefore?.label : undefined,
|
|
184
|
-
optionLabelAfter: this._options.reporter.includeOptions ? optionAfter?.label : undefined
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
ActionWidgetDropdown = ( __decorate([( __param(2, IActionWidgetService)), ( __param(3, IKeybindingService)), ( __param(4, ITelemetryService))], ActionWidgetDropdown));
|
|
190
|
-
|
|
191
|
-
export { ActionWidgetDropdown };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
-
/**
|
|
3
|
-
* Normalizes and validates a domain string.
|
|
4
|
-
*
|
|
5
|
-
* Strips user info, port, trailing dots, and trailing punctuation.
|
|
6
|
-
* Accepts bare wildcards (`*`) and wildcard prefixes (`*.example.com`).
|
|
7
|
-
*
|
|
8
|
-
* @param value The raw domain string to normalize.
|
|
9
|
-
* @param fromUrl Whether the value was extracted from a URL context (skips file-extension filtering).
|
|
10
|
-
* @returns The normalized domain string, or `undefined` if the input is invalid.
|
|
11
|
-
*/
|
|
12
|
-
export declare function normalizeDomain(value: string | undefined, fromUrl?: boolean): string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* Extracts the domain portion from a pattern string.
|
|
15
|
-
* If the pattern contains `://`, it is parsed as a URI and the authority is returned.
|
|
16
|
-
* Otherwise, the trimmed pattern is returned as-is.
|
|
17
|
-
*/
|
|
18
|
-
export declare function extractDomainPattern(pattern: string): string;
|
|
19
|
-
/**
|
|
20
|
-
* Checks whether a normalized domain matches a given allow/deny pattern.
|
|
21
|
-
* Supports exact matches, bare wildcards (`*`), and wildcard prefixes (`*.example.com`).
|
|
22
|
-
*
|
|
23
|
-
* @param domain A normalized domain (output of {@link normalizeDomain}).
|
|
24
|
-
* @param pattern An allow/deny pattern (may be a bare domain, URL, or wildcard).
|
|
25
|
-
* @returns `true` if the domain matches the pattern.
|
|
26
|
-
*/
|
|
27
|
-
export declare function matchesDomainPattern(domain: string, pattern: string): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Extracts and normalizes a domain from a URI.
|
|
30
|
-
* Strips port numbers and trailing dots.
|
|
31
|
-
*
|
|
32
|
-
* @param uri The URI to extract the domain from.
|
|
33
|
-
* @returns The normalized domain, or `undefined` if no valid domain could be extracted.
|
|
34
|
-
*/
|
|
35
|
-
export declare function extractDomainFromUri(uri: URI): string | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Determines whether a domain is allowed based on allow and deny lists.
|
|
38
|
-
*
|
|
39
|
-
* Rules:
|
|
40
|
-
* - If both lists are empty, the domain is denied (restrictive default).
|
|
41
|
-
* - Denied patterns take precedence: if the domain matches any denied pattern, it is blocked.
|
|
42
|
-
* - If only denied patterns are configured (allowed is empty), any non-denied domain is allowed.
|
|
43
|
-
* - If allowed patterns are configured, the domain must match at least one to be allowed.
|
|
44
|
-
*
|
|
45
|
-
* @param domain A normalized domain string.
|
|
46
|
-
* @param allowedPatterns Array of allowed domain patterns.
|
|
47
|
-
* @param deniedPatterns Array of denied domain patterns.
|
|
48
|
-
* @returns `true` if the domain is allowed, `false` if it is blocked.
|
|
49
|
-
*/
|
|
50
|
-
export declare function isDomainAllowed(domain: string, allowedPatterns: string[], deniedPatterns: string[]): boolean;
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
3
|
-
|
|
4
|
-
const fileExtensionSuffixes = ( new Set([
|
|
5
|
-
"7z",
|
|
6
|
-
"bz2",
|
|
7
|
-
"cjs",
|
|
8
|
-
"class",
|
|
9
|
-
"cpp",
|
|
10
|
-
"cs",
|
|
11
|
-
"css",
|
|
12
|
-
"csv",
|
|
13
|
-
"dll",
|
|
14
|
-
"exe",
|
|
15
|
-
"gif",
|
|
16
|
-
"gz",
|
|
17
|
-
"ico",
|
|
18
|
-
"jar",
|
|
19
|
-
"env",
|
|
20
|
-
"java",
|
|
21
|
-
"jpeg",
|
|
22
|
-
"jpg",
|
|
23
|
-
"js",
|
|
24
|
-
"json",
|
|
25
|
-
"jsx",
|
|
26
|
-
"lock",
|
|
27
|
-
"log",
|
|
28
|
-
"md",
|
|
29
|
-
"mjs",
|
|
30
|
-
"pdf",
|
|
31
|
-
"php",
|
|
32
|
-
"png",
|
|
33
|
-
"py",
|
|
34
|
-
"rar",
|
|
35
|
-
"rs",
|
|
36
|
-
"so",
|
|
37
|
-
"sql",
|
|
38
|
-
"svg",
|
|
39
|
-
"tar",
|
|
40
|
-
"tgz",
|
|
41
|
-
"toml",
|
|
42
|
-
"ts",
|
|
43
|
-
"tsx",
|
|
44
|
-
"txt",
|
|
45
|
-
"wasm",
|
|
46
|
-
"webp",
|
|
47
|
-
"xml",
|
|
48
|
-
"yaml",
|
|
49
|
-
"yml",
|
|
50
|
-
"zip"
|
|
51
|
-
]));
|
|
52
|
-
const wellKnownDomainSuffixes = ( new Set(["ai", "cloud", "com", "dev", "io", "me", "net", "org", "tech"]));
|
|
53
|
-
function normalizeDomain(value, fromUrl = false) {
|
|
54
|
-
if (!value) {
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
const normalized = value.trim().toLowerCase().replace(/^[^@]+@/, "").replace(/:\d+$/, "").replace(/\.+$/, "");
|
|
58
|
-
if (!normalized || normalized.includes("/") || normalized === "." || normalized === "..") {
|
|
59
|
-
return undefined;
|
|
60
|
-
}
|
|
61
|
-
if (normalized === "*") {
|
|
62
|
-
return "*";
|
|
63
|
-
}
|
|
64
|
-
if (!/^\*?\.?[a-z0-9.;,)!?:-]+$/.test(normalized)) {
|
|
65
|
-
return undefined;
|
|
66
|
-
}
|
|
67
|
-
const stripped = normalized.replace(/[),;:!?]+$/, "");
|
|
68
|
-
if (!stripped) {
|
|
69
|
-
return undefined;
|
|
70
|
-
}
|
|
71
|
-
const domainToValidate = stripped.startsWith("*.") ? stripped.slice(2) : stripped;
|
|
72
|
-
if (!/^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)(?:\.(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?))*$/.test(domainToValidate)) {
|
|
73
|
-
return undefined;
|
|
74
|
-
}
|
|
75
|
-
const hasWildcardPrefix = stripped.startsWith("*.");
|
|
76
|
-
const host = hasWildcardPrefix ? stripped.slice(2) : stripped;
|
|
77
|
-
if (!host) {
|
|
78
|
-
return undefined;
|
|
79
|
-
}
|
|
80
|
-
if (!/^[a-z0-9.-]+$/.test(host)) {
|
|
81
|
-
return undefined;
|
|
82
|
-
}
|
|
83
|
-
if (!fromUrl) {
|
|
84
|
-
const lastLabel = host.slice(host.lastIndexOf(".") + 1);
|
|
85
|
-
if (( fileExtensionSuffixes.has(lastLabel))) {
|
|
86
|
-
return undefined;
|
|
87
|
-
}
|
|
88
|
-
if (!( wellKnownDomainSuffixes.has(lastLabel))) {
|
|
89
|
-
return undefined;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return hasWildcardPrefix ? `*.${host}` : host;
|
|
93
|
-
}
|
|
94
|
-
function extractDomainPattern(pattern) {
|
|
95
|
-
const trimmed = pattern.trim();
|
|
96
|
-
if (trimmed === "*") {
|
|
97
|
-
return trimmed;
|
|
98
|
-
}
|
|
99
|
-
if (!trimmed.includes("://")) {
|
|
100
|
-
return trimmed;
|
|
101
|
-
}
|
|
102
|
-
try {
|
|
103
|
-
return ( URI.parse(trimmed)).authority;
|
|
104
|
-
} catch {
|
|
105
|
-
return trimmed;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
function matchesDomainPattern(domain, pattern) {
|
|
109
|
-
const normalizedPattern = normalizeDomain(extractDomainPattern(pattern), pattern.includes("://"));
|
|
110
|
-
if (!normalizedPattern) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
if (normalizedPattern === "*") {
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
if (normalizedPattern.startsWith("*.")) {
|
|
117
|
-
const suffix = normalizedPattern.slice(2);
|
|
118
|
-
return domain === suffix || domain.endsWith(`.${suffix}`);
|
|
119
|
-
}
|
|
120
|
-
return domain === normalizedPattern;
|
|
121
|
-
}
|
|
122
|
-
function extractDomainFromUri(uri) {
|
|
123
|
-
return normalizeDomain(uri.authority, true);
|
|
124
|
-
}
|
|
125
|
-
function isDomainAllowed(domain, allowedPatterns, deniedPatterns) {
|
|
126
|
-
if (allowedPatterns.length === 0 && deniedPatterns.length === 0) {
|
|
127
|
-
return false;
|
|
128
|
-
}
|
|
129
|
-
if (( deniedPatterns.some(pattern => matchesDomainPattern(domain, pattern)))) {
|
|
130
|
-
return false;
|
|
131
|
-
}
|
|
132
|
-
if (allowedPatterns.length === 0) {
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
return ( allowedPatterns.some(pattern => matchesDomainPattern(domain, pattern)));
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export { extractDomainFromUri, extractDomainPattern, isDomainAllowed, matchesDomainPattern, normalizeDomain };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Setting IDs for agent network domain filtering.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum AgentNetworkDomainSettingId {
|
|
5
|
-
NetworkFilter = "chat.agent.networkFilter",
|
|
6
|
-
AllowedNetworkDomains = "chat.agent.allowedNetworkDomains",
|
|
7
|
-
DeniedNetworkDomains = "chat.agent.deniedNetworkDomains",
|
|
8
|
-
DeprecatedSandboxAllowedNetworkDomains = "chat.agent.sandbox.allowedNetworkDomains",
|
|
9
|
-
DeprecatedSandboxDeniedNetworkDomains = "chat.agent.sandbox.deniedNetworkDomains",
|
|
10
|
-
DeprecatedOldAllowedNetworkDomains = "chat.agent.sandboxNetwork.allowedDomains",
|
|
11
|
-
DeprecatedOldDeniedNetworkDomains = "chat.agent.sandboxNetwork.deniedDomains"
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var AgentNetworkDomainSettingId;
|
|
4
|
-
(function (AgentNetworkDomainSettingId) {
|
|
5
|
-
AgentNetworkDomainSettingId["NetworkFilter"] = "chat.agent.networkFilter";
|
|
6
|
-
AgentNetworkDomainSettingId["AllowedNetworkDomains"] = "chat.agent.allowedNetworkDomains";
|
|
7
|
-
AgentNetworkDomainSettingId["DeniedNetworkDomains"] = "chat.agent.deniedNetworkDomains";
|
|
8
|
-
AgentNetworkDomainSettingId["DeprecatedSandboxAllowedNetworkDomains"] = "chat.agent.sandbox.allowedNetworkDomains";
|
|
9
|
-
AgentNetworkDomainSettingId["DeprecatedSandboxDeniedNetworkDomains"] = "chat.agent.sandbox.deniedNetworkDomains";
|
|
10
|
-
AgentNetworkDomainSettingId["DeprecatedOldAllowedNetworkDomains"] = "chat.agent.sandboxNetwork.allowedDomains";
|
|
11
|
-
AgentNetworkDomainSettingId["DeprecatedOldDeniedNetworkDomains"] = "chat.agent.sandboxNetwork.deniedDomains";
|
|
12
|
-
})(AgentNetworkDomainSettingId || (AgentNetworkDomainSettingId = {}));
|
|
13
|
-
|
|
14
|
-
export { AgentNetworkDomainSettingId };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
-
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
|
-
import { IChannel, IServerChannel } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/ipc/common/ipc";
|
|
4
|
-
import { ISandboxDependencyStatus } from "@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/sandboxHelperService";
|
|
5
|
-
import { ISandboxHelperService } from "@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/sandboxHelperService.service";
|
|
6
|
-
export declare const SANDBOX_HELPER_CHANNEL_NAME = "sandboxHelper";
|
|
7
|
-
export declare class SandboxHelperChannel implements IServerChannel {
|
|
8
|
-
private readonly service;
|
|
9
|
-
constructor(service: ISandboxHelperService);
|
|
10
|
-
listen<T>(_context: unknown, _event: string): Event<T>;
|
|
11
|
-
call<T>(_context: unknown, command: string, _arg?: unknown, _cancellationToken?: CancellationToken): Promise<T>;
|
|
12
|
-
}
|
|
13
|
-
export declare class SandboxHelperChannelClient implements ISandboxHelperService {
|
|
14
|
-
private readonly channel;
|
|
15
|
-
readonly _serviceBrand: undefined;
|
|
16
|
-
constructor(channel: IChannel);
|
|
17
|
-
checkSandboxDependencies(): Promise<ISandboxDependencyStatus | undefined>;
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const SANDBOX_HELPER_CHANNEL_NAME = "sandboxHelper";
|
|
4
|
-
class SandboxHelperChannelClient {
|
|
5
|
-
constructor(channel) {
|
|
6
|
-
this.channel = channel;
|
|
7
|
-
}
|
|
8
|
-
checkSandboxDependencies() {
|
|
9
|
-
return this.channel.call("checkSandboxDependencies");
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { SANDBOX_HELPER_CHANNEL_NAME, SandboxHelperChannelClient };
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
-
import { OperatingSystem } from "@codingame/monaco-vscode-api/vscode/vs/base/common/platform";
|
|
4
|
-
import { TerminalCapability } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/capabilities/capabilities";
|
|
5
|
-
import { ITerminalSandboxService } from "@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/terminalSandboxService.service";
|
|
6
|
-
export interface ITerminalSandboxResolvedNetworkDomains {
|
|
7
|
-
allowedDomains: string[];
|
|
8
|
-
deniedDomains: string[];
|
|
9
|
-
}
|
|
10
|
-
export declare enum TerminalSandboxPrerequisiteCheck {
|
|
11
|
-
Config = "config",
|
|
12
|
-
Dependencies = "dependencies"
|
|
13
|
-
}
|
|
14
|
-
export interface ITerminalSandboxPrerequisiteCheckResult {
|
|
15
|
-
enabled: boolean;
|
|
16
|
-
sandboxConfigPath: string | undefined;
|
|
17
|
-
failedCheck: TerminalSandboxPrerequisiteCheck | undefined;
|
|
18
|
-
missingDependencies?: string[];
|
|
19
|
-
}
|
|
20
|
-
export interface ITerminalSandboxWrapResult {
|
|
21
|
-
command: string;
|
|
22
|
-
isSandboxWrapped: boolean;
|
|
23
|
-
blockedDomains?: string[];
|
|
24
|
-
deniedDomains?: string[];
|
|
25
|
-
requiresUnsandboxConfirmation?: boolean;
|
|
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
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Abstraction over terminal operations needed by the install flow.
|
|
42
|
-
* Provided by the browser-layer caller so the common-layer service
|
|
43
|
-
* does not import browser types directly.
|
|
44
|
-
*/
|
|
45
|
-
export interface ISandboxDependencyInstallTerminal {
|
|
46
|
-
sendText(text: string, addNewLine?: boolean): Promise<void>;
|
|
47
|
-
focus(): void;
|
|
48
|
-
capabilities: {
|
|
49
|
-
get(id: TerminalCapability.CommandDetection): {
|
|
50
|
-
onCommandFinished: Event<{
|
|
51
|
-
exitCode: number | undefined;
|
|
52
|
-
}>;
|
|
53
|
-
} | undefined;
|
|
54
|
-
onDidAddCapability: Event<{
|
|
55
|
-
id: TerminalCapability;
|
|
56
|
-
}>;
|
|
57
|
-
};
|
|
58
|
-
onDidInputData: Event<string>;
|
|
59
|
-
onDisposed: Event<unknown>;
|
|
60
|
-
}
|
|
61
|
-
export interface ISandboxDependencyInstallOptions {
|
|
62
|
-
/**
|
|
63
|
-
* Creates or obtains a terminal for running the install command.
|
|
64
|
-
*/
|
|
65
|
-
createTerminal(): Promise<ISandboxDependencyInstallTerminal>;
|
|
66
|
-
/**
|
|
67
|
-
* Focuses the terminal for password entry.
|
|
68
|
-
*/
|
|
69
|
-
focusTerminal(terminal: ISandboxDependencyInstallTerminal): Promise<void>;
|
|
70
|
-
}
|
|
71
|
-
export interface ISandboxDependencyInstallResult {
|
|
72
|
-
exitCode: number | undefined;
|
|
73
|
-
}
|
|
74
|
-
export declare class NullTerminalSandboxService implements ITerminalSandboxService {
|
|
75
|
-
readonly _serviceBrand: undefined;
|
|
76
|
-
isEnabled(): Promise<boolean>;
|
|
77
|
-
isSandboxAllowNetworkEnabled(): Promise<boolean>;
|
|
78
|
-
getOS(): Promise<OperatingSystem>;
|
|
79
|
-
checkForSandboxingPrereqs(): Promise<ITerminalSandboxPrerequisiteCheckResult>;
|
|
80
|
-
wrapCommand(command: string): Promise<ITerminalSandboxWrapResult>;
|
|
81
|
-
getSandboxConfigPath(): Promise<string | undefined>;
|
|
82
|
-
getTempDir(): URI | undefined;
|
|
83
|
-
setNeedsForceUpdateConfigFile(): void;
|
|
84
|
-
getResolvedNetworkDomains(): ITerminalSandboxResolvedNetworkDomains;
|
|
85
|
-
getMissingSandboxDependencies(): Promise<string[]>;
|
|
86
|
-
installMissingSandboxDependencies(): Promise<ISandboxDependencyInstallResult>;
|
|
87
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
3
|
-
|
|
4
|
-
var TerminalSandboxPrerequisiteCheck;
|
|
5
|
-
(function (TerminalSandboxPrerequisiteCheck) {
|
|
6
|
-
TerminalSandboxPrerequisiteCheck["Config"] = "config";
|
|
7
|
-
TerminalSandboxPrerequisiteCheck["Dependencies"] = "dependencies";
|
|
8
|
-
})(TerminalSandboxPrerequisiteCheck || (TerminalSandboxPrerequisiteCheck = {}));
|
|
9
|
-
|
|
10
|
-
export { TerminalSandboxPrerequisiteCheck };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { MENU_CHAT_TERMINAL_TOOL_PROGRESS, TerminalChatContextKeys } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat";
|
|
2
|
-
export { RunInTerminalTool } from "../terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service";
|
|
2
|
-
export declare function getRecommendedToolsOverRunInTerminal(commandLine: string, languageModelToolsService: ILanguageModelToolsService): string | undefined;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let previouslyRecommededInSession = false;
|
|
4
|
-
const terminalCommands = [{
|
|
5
|
-
commands: [( new RegExp(/^python3? -m pip install(\b)/)), ( new RegExp(/^pip3? install(\b)/))],
|
|
6
|
-
tags: ["python environment"]
|
|
7
|
-
}, {
|
|
8
|
-
commands: [( new RegExp(/^python3? -m jupyter(\b)/)), ( new RegExp(/^python3? -m pip install\b.*jupyter\b.*/)), ( new RegExp(/^pip3? install\b.*jupyter\b.*/)), (
|
|
9
|
-
new RegExp(/^jupyter(\b)/))],
|
|
10
|
-
tags: ["python environment", "jupyter environment"]
|
|
11
|
-
}];
|
|
12
|
-
function getRecommendedToolsOverRunInTerminal(commandLine, languageModelToolsService) {
|
|
13
|
-
const tools = languageModelToolsService.getTools(undefined);
|
|
14
|
-
if (!tools || previouslyRecommededInSession) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const recommendedTools = ( new Set());
|
|
18
|
-
const messages = [
|
|
19
|
-
`The terminal command '${commandLine}' was not executed.`,
|
|
20
|
-
`Try using some of the following tools instead of running a Terminal Command (if unable to use one of these tools as an alternative then run the same terminal command again):`
|
|
21
|
-
];
|
|
22
|
-
for (const terminalCommand of terminalCommands) {
|
|
23
|
-
if (!( terminalCommand.commands.some(condition => condition.test(commandLine)))) {
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
const tagsToSearchFor = terminalCommand.tags;
|
|
27
|
-
Array.from(tools).filter(t => ( tagsToSearchFor.some(tag => t.tags?.includes(tag)))).forEach(tool => {
|
|
28
|
-
recommendedTools.add(tool.id);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
recommendedTools.forEach(toolName => {
|
|
32
|
-
messages.push(`- ${toolName}`);
|
|
33
|
-
});
|
|
34
|
-
if (recommendedTools.size) {
|
|
35
|
-
previouslyRecommededInSession = true;
|
|
36
|
-
return messages.join(" \n");
|
|
37
|
-
}
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { getRecommendedToolsOverRunInTerminal };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface for command-specific file write parsers.
|
|
3
|
-
* Each parser is responsible for detecting when a specific command will write to files
|
|
4
|
-
* (beyond simple shell redirections which are handled separately via tree-sitter queries).
|
|
5
|
-
*/
|
|
6
|
-
export interface ICommandFileWriteParser {
|
|
7
|
-
/**
|
|
8
|
-
* The name of the command this parser handles (e.g., 'sed', 'tee').
|
|
9
|
-
*/
|
|
10
|
-
readonly commandName: string;
|
|
11
|
-
/**
|
|
12
|
-
* Checks if this parser can handle the given command text.
|
|
13
|
-
* Should return true only if the command would write to files.
|
|
14
|
-
* @param commandText The full text of a single command (not a pipeline).
|
|
15
|
-
*/
|
|
16
|
-
canHandle(commandText: string): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Extracts the file paths that would be written to by this command.
|
|
19
|
-
* Should only be called if canHandle() returns true.
|
|
20
|
-
* @param commandText The full text of a single command (not a pipeline).
|
|
21
|
-
* @returns Array of file paths that would be modified.
|
|
22
|
-
*/
|
|
23
|
-
extractFileWrites(commandText: string): string[];
|
|
24
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ICommandFileWriteParser } from "./commandFileWriteParser.js";
|
|
2
|
-
/**
|
|
3
|
-
* Parser for detecting file writes from `sed` commands using in-place editing.
|
|
4
|
-
*
|
|
5
|
-
* Handles:
|
|
6
|
-
* - `sed -i 's/foo/bar/' file.txt` (GNU)
|
|
7
|
-
* - `sed -i.bak 's/foo/bar/' file.txt` (GNU with backup suffix)
|
|
8
|
-
* - `sed -i '' 's/foo/bar/' file.txt` (macOS/BSD with empty backup suffix)
|
|
9
|
-
* - `sed --in-place 's/foo/bar/' file.txt` (GNU long form)
|
|
10
|
-
* - `sed --in-place=.bak 's/foo/bar/' file.txt` (GNU long form with backup)
|
|
11
|
-
* - `sed -I 's/foo/bar/' file.txt` (BSD case-insensitive variant)
|
|
12
|
-
*/
|
|
13
|
-
export declare class SedFileWriteParser implements ICommandFileWriteParser {
|
|
14
|
-
readonly commandName = "sed";
|
|
15
|
-
canHandle(commandText: string): boolean;
|
|
16
|
-
extractFileWrites(commandText: string): string[];
|
|
17
|
-
/**
|
|
18
|
-
* Tokenizes a command into individual arguments, handling quotes and escapes.
|
|
19
|
-
*/
|
|
20
|
-
private _tokenizeCommand;
|
|
21
|
-
/**
|
|
22
|
-
* Extracts file targets from tokenized sed command arguments.
|
|
23
|
-
* Files are generally the last non-option, non-script arguments.
|
|
24
|
-
*/
|
|
25
|
-
private _extractFileTargets;
|
|
26
|
-
}
|