@codingame/monaco-vscode-katex-common 30.0.1 → 31.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/platform/actions/browser/actionbar.d.ts +16 -0
- package/vscode/src/vs/platform/actions/browser/actionbar.js +22 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +50 -0
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +138 -0
- package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +12 -0
- package/vscode/src/vs/platform/networkFilter/common/settings.js +14 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +18 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +13 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +73 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +51 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +64 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +17 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +73 -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 +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +20 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +73 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +41 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +13 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +14 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.d.ts +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +339 -161
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +9 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +33 -5
- 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/chatCollections.d.ts +43 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +147 -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.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +55 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +42 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animation.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animationRegistry.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animationRegistry.js +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/blockAnimations.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/blockAnimations.js +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/buffer.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/bufferRegistry.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/bufferRegistry.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/offBuffer.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/offBuffer.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/wordBuffer.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/wordBuffer.js +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/media/chatIncrementalRendering.css +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +26 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +24 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +111 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +425 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +16 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +68 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +101 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +36 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +217 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +23 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +168 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +18 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +7 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +7 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +24 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +104 -78
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +11 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css +257 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css +286 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
- 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/chatMcpAppModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +15 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +25 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +29 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +258 -321
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +392 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +24 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +2 -3
- 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 +38 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +577 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +4 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +1 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +58 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +44 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +362 -188
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +42 -95
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +57 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +21 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/{modelPickerActionItem2.js → modelPickerActionItem.js} +5 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +38 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +94 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +218 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +12 -21
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +2 -32
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +355 -156
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +2 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +72 -65
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +4 -43
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +238 -204
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +4 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +128 -115
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +6 -9
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +152 -49
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +64 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +40 -40
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribChatExports.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +41 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +142 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +165 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +163 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +142 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +144 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +174 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +43 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +256 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +94 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +221 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +392 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +243 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +310 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +168 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +47 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +27 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +32 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +108 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +412 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +192 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +2258 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +43 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +118 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +141 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +608 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +0 -196
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +0 -29
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +0 -215
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +0 -107
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-katex-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - common package depending on katex",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"katex": "0.16.
|
|
18
|
+
"@codingame/monaco-vscode-api": "31.0.0",
|
|
19
|
+
"katex": "0.16.45",
|
|
20
20
|
"marked": "14.0.0"
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActionBar, IActionBarOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar";
|
|
2
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
3
|
+
export interface IWorkbenchActionBarOptions extends IActionBarOptions {
|
|
4
|
+
/**
|
|
5
|
+
* When set the `workbenchActionExecuted` is automatically sent for each invoked action. The `from` property
|
|
6
|
+
* of the event will be the passed `telemetrySource`-value.
|
|
7
|
+
*/
|
|
8
|
+
telemetrySource?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A {@link ActionBar action bar} that automatically sends `workbenchActionExecuted` telemetry
|
|
12
|
+
* events for each invoked action, like {@link import('./toolbar.js').WorkbenchToolBar WorkbenchToolBar} does.
|
|
13
|
+
*/
|
|
14
|
+
export declare class WorkbenchActionBar extends ActionBar {
|
|
15
|
+
constructor(container: HTMLElement, options: IWorkbenchActionBarOptions, telemetryService: ITelemetryService);
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
4
|
+
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
5
|
+
|
|
6
|
+
let WorkbenchActionBar = class WorkbenchActionBar extends ActionBar {
|
|
7
|
+
constructor(container, options, telemetryService) {
|
|
8
|
+
super(container, options);
|
|
9
|
+
const telemetrySource = options.telemetrySource;
|
|
10
|
+
if (telemetrySource) {
|
|
11
|
+
this._store.add(
|
|
12
|
+
this.onDidRun(e => telemetryService.publicLog2("workbenchActionExecuted", {
|
|
13
|
+
id: e.action.id,
|
|
14
|
+
from: telemetrySource
|
|
15
|
+
}))
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
WorkbenchActionBar = ( __decorate([( __param(2, ITelemetryService))], WorkbenchActionBar));
|
|
21
|
+
|
|
22
|
+
export { WorkbenchActionBar };
|
|
@@ -137,14 +137,14 @@ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
|
137
137
|
if (secondary.length > 0) {
|
|
138
138
|
const btn = this.addButton({
|
|
139
139
|
secondary: true,
|
|
140
|
-
ariaLabel: ( localize(
|
|
140
|
+
ariaLabel: ( localize(1798, "More Actions")),
|
|
141
141
|
small: this._options?.small
|
|
142
142
|
});
|
|
143
143
|
btn.icon = Codicon.dropDownButton;
|
|
144
144
|
btn.element.classList.add("default-colors", "monaco-text-button");
|
|
145
145
|
btn.enabled = true;
|
|
146
146
|
this._updateStore.add(
|
|
147
|
-
this._hoverService.setupManagedHover(hoverDelegate, btn.element, ( localize(
|
|
147
|
+
this._hoverService.setupManagedHover(hoverDelegate, btn.element, ( localize(1798, "More Actions")))
|
|
148
148
|
);
|
|
149
149
|
this._updateStore.add(btn.onDidClick(async () => {
|
|
150
150
|
this._contextMenuService.showContextMenu({
|
|
@@ -0,0 +1,50 @@
|
|
|
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;
|
|
@@ -0,0 +1,138 @@
|
|
|
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 };
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 };
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 };
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
/**
|
|
28
|
+
* Abstraction over terminal operations needed by the install flow.
|
|
29
|
+
* Provided by the browser-layer caller so the common-layer service
|
|
30
|
+
* does not import browser types directly.
|
|
31
|
+
*/
|
|
32
|
+
export interface ISandboxDependencyInstallTerminal {
|
|
33
|
+
sendText(text: string, addNewLine?: boolean): Promise<void>;
|
|
34
|
+
focus(): void;
|
|
35
|
+
capabilities: {
|
|
36
|
+
get(id: TerminalCapability.CommandDetection): {
|
|
37
|
+
onCommandFinished: Event<{
|
|
38
|
+
exitCode: number | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
} | undefined;
|
|
41
|
+
onDidAddCapability: Event<{
|
|
42
|
+
id: TerminalCapability;
|
|
43
|
+
}>;
|
|
44
|
+
};
|
|
45
|
+
onDidInputData: Event<string>;
|
|
46
|
+
onDisposed: Event<unknown>;
|
|
47
|
+
}
|
|
48
|
+
export interface ISandboxDependencyInstallOptions {
|
|
49
|
+
/**
|
|
50
|
+
* Creates or obtains a terminal for running the install command.
|
|
51
|
+
*/
|
|
52
|
+
createTerminal(): Promise<ISandboxDependencyInstallTerminal>;
|
|
53
|
+
/**
|
|
54
|
+
* Focuses the terminal for password entry.
|
|
55
|
+
*/
|
|
56
|
+
focusTerminal(terminal: ISandboxDependencyInstallTerminal): Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
export interface ISandboxDependencyInstallResult {
|
|
59
|
+
exitCode: number | undefined;
|
|
60
|
+
}
|
|
61
|
+
export declare class NullTerminalSandboxService implements ITerminalSandboxService {
|
|
62
|
+
readonly _serviceBrand: undefined;
|
|
63
|
+
isEnabled(): Promise<boolean>;
|
|
64
|
+
getOS(): Promise<OperatingSystem>;
|
|
65
|
+
checkForSandboxingPrereqs(): Promise<ITerminalSandboxPrerequisiteCheckResult>;
|
|
66
|
+
wrapCommand(command: string): ITerminalSandboxWrapResult;
|
|
67
|
+
getSandboxConfigPath(): Promise<string | undefined>;
|
|
68
|
+
getTempDir(): URI | undefined;
|
|
69
|
+
setNeedsForceUpdateConfigFile(): void;
|
|
70
|
+
getResolvedNetworkDomains(): ITerminalSandboxResolvedNetworkDomains;
|
|
71
|
+
getMissingSandboxDependencies(): Promise<string[]>;
|
|
72
|
+
installMissingSandboxDependencies(): Promise<ISandboxDependencyInstallResult>;
|
|
73
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 };
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js
CHANGED
|
@@ -25,7 +25,7 @@ const getToolConfirmationAlert = (accessor, toolInvocation) => {
|
|
|
25
25
|
if (state.type === IChatToolInvocation.StateKind.WaitingForPostApproval) {
|
|
26
26
|
const detail = isToolResultInputOutputDetails(state.resultDetails) ? state.resultDetails.input : isToolResultOutputDetails(state.resultDetails) ? undefined : toolContentToA11yString(state.contentForModel);
|
|
27
27
|
return {
|
|
28
|
-
title: ( localize(
|
|
28
|
+
title: ( localize(4688, "Approve results of tool")),
|
|
29
29
|
detail: detail
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ const getToolConfirmationAlert = (accessor, toolInvocation) => {
|
|
|
42
42
|
} else if (v.toolSpecificData.kind === "input") {
|
|
43
43
|
input = JSON.stringify(v.toolSpecificData.rawInput);
|
|
44
44
|
} else if (v.toolSpecificData.kind === "modifiedFilesConfirmation") {
|
|
45
|
-
input = ( localize(
|
|
45
|
+
input = ( localize(4689, "{0} files", v.toolSpecificData.modifiedFiles.length));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
const titleObj = state.confirmationMessages?.title;
|
|
@@ -53,18 +53,18 @@ const getToolConfirmationAlert = (accessor, toolInvocation) => {
|
|
|
53
53
|
};
|
|
54
54
|
})).filter(isDefined);
|
|
55
55
|
let message = acceptKb && cancelKb ? ( localize(
|
|
56
|
-
|
|
56
|
+
4690,
|
|
57
57
|
"Chat confirmation required: {0}. Press {1} to accept or {2} to cancel.",
|
|
58
58
|
( text.map(t => t.title)).join(", "),
|
|
59
59
|
acceptKb,
|
|
60
60
|
cancelKb
|
|
61
61
|
)) : ( localize(
|
|
62
|
-
|
|
62
|
+
4691,
|
|
63
63
|
"Chat confirmation required: {0}",
|
|
64
64
|
( text.map(t => t.title)).join(", ")
|
|
65
65
|
));
|
|
66
66
|
if (( text.some(t => t.detail))) {
|
|
67
|
-
message += " " + ( localize(
|
|
67
|
+
message += " " + ( localize(4692, "Details: {0}", ( text.map(t => t.detail ? t.detail : "")).join(" ")));
|
|
68
68
|
}
|
|
69
69
|
return message;
|
|
70
70
|
};
|
|
@@ -80,7 +80,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
80
80
|
return "listitem";
|
|
81
81
|
}
|
|
82
82
|
getWidgetAriaLabel() {
|
|
83
|
-
return localize(
|
|
83
|
+
return localize(4693, "Chat");
|
|
84
84
|
}
|
|
85
85
|
getAriaLabel(element) {
|
|
86
86
|
if (isRequestVM(element)) {
|
|
@@ -111,10 +111,10 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
111
111
|
case 0:
|
|
112
112
|
break;
|
|
113
113
|
case 1:
|
|
114
|
-
tableCountHint = ( localize(
|
|
114
|
+
tableCountHint = ( localize(4694, "1 table "));
|
|
115
115
|
break;
|
|
116
116
|
default:
|
|
117
|
-
tableCountHint = ( localize(
|
|
117
|
+
tableCountHint = ( localize(4695, "{0} tables ", tableCount));
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
const fileTreeCount = element.response.value.filter(v => v.kind === "treeData").length ?? 0;
|
|
@@ -123,10 +123,10 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
123
123
|
case 0:
|
|
124
124
|
break;
|
|
125
125
|
case 1:
|
|
126
|
-
fileTreeCountHint = ( localize(
|
|
126
|
+
fileTreeCountHint = ( localize(4696, "1 file tree "));
|
|
127
127
|
break;
|
|
128
128
|
default:
|
|
129
|
-
fileTreeCountHint = ( localize(
|
|
129
|
+
fileTreeCountHint = ( localize(4697, "{0} file trees ", fileTreeCount));
|
|
130
130
|
break;
|
|
131
131
|
}
|
|
132
132
|
const elicitationCount = element.response.value.filter(v => v.kind === "elicitation2" || v.kind === "elicitationSerialized");
|
|
@@ -140,7 +140,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
140
140
|
switch (codeBlockCount) {
|
|
141
141
|
case 0:
|
|
142
142
|
label = accessibleViewHint ? ( localize(
|
|
143
|
-
|
|
143
|
+
4698,
|
|
144
144
|
"{0}{1}{2}{3}{4} {5}",
|
|
145
145
|
toolInvocationHint,
|
|
146
146
|
fileTreeCountHint,
|
|
@@ -149,7 +149,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
149
149
|
(element.response.toString()),
|
|
150
150
|
accessibleViewHint
|
|
151
151
|
)) : ( localize(
|
|
152
|
-
|
|
152
|
+
4699,
|
|
153
153
|
"{0}{1}{2} {3}",
|
|
154
154
|
fileTreeCountHint,
|
|
155
155
|
elicitationHint,
|
|
@@ -159,7 +159,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
159
159
|
break;
|
|
160
160
|
case 1:
|
|
161
161
|
label = accessibleViewHint ? ( localize(
|
|
162
|
-
|
|
162
|
+
4700,
|
|
163
163
|
"{0}{1}{2}1 code block: {3} {4}{5}",
|
|
164
164
|
toolInvocationHint,
|
|
165
165
|
fileTreeCountHint,
|
|
@@ -168,7 +168,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
168
168
|
(element.response.toString()),
|
|
169
169
|
accessibleViewHint
|
|
170
170
|
)) : ( localize(
|
|
171
|
-
|
|
171
|
+
4701,
|
|
172
172
|
"{0}{1}1 code block: {2} {3}",
|
|
173
173
|
fileTreeCountHint,
|
|
174
174
|
elicitationHint,
|
|
@@ -178,7 +178,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
178
178
|
break;
|
|
179
179
|
default:
|
|
180
180
|
label = accessibleViewHint ? ( localize(
|
|
181
|
-
|
|
181
|
+
4702,
|
|
182
182
|
"{0}{1}{2}{3} code blocks: {4}{5} {6}",
|
|
183
183
|
toolInvocationHint,
|
|
184
184
|
fileTreeCountHint,
|
|
@@ -188,7 +188,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
188
188
|
(element.response.toString()),
|
|
189
189
|
accessibleViewHint
|
|
190
190
|
)) : ( localize(
|
|
191
|
-
|
|
191
|
+
4703,
|
|
192
192
|
"{0}{1}{2} code blocks: {3} {4}",
|
|
193
193
|
fileTreeCountHint,
|
|
194
194
|
elicitationHint,
|
|
@@ -12,6 +12,8 @@ import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
12
12
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
13
13
|
import { ResolvedChatSessionsExtensionPoint } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
|
|
14
14
|
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
15
|
+
import { ISCMService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
16
|
+
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
15
17
|
import { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
16
18
|
export declare enum ActionLocation {
|
|
17
19
|
ChatWidget = "chatWidget",
|
|
@@ -25,7 +27,7 @@ export declare class ContinueChatInSessionAction extends Action2 {
|
|
|
25
27
|
export declare class ChatContinueInSessionActionItem extends ActionWidgetDropdownActionViewItem {
|
|
26
28
|
private readonly location;
|
|
27
29
|
private readonly contextKeyService;
|
|
28
|
-
constructor(action: MenuItemAction, location: ActionLocation, actionWidgetService: IActionWidgetService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService, chatSessionsService: IChatSessionsService, instantiationService: IInstantiationService, openerService: IOpenerService, telemetryService: ITelemetryService);
|
|
30
|
+
constructor(action: MenuItemAction, location: ActionLocation, actionWidgetService: IActionWidgetService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService, chatSessionsService: IChatSessionsService, instantiationService: IInstantiationService, openerService: IOpenerService, telemetryService: ITelemetryService, scmService: ISCMService, workspaceContextService: IWorkspaceContextService);
|
|
29
31
|
protected static getActionBarActions(openerService: IOpenerService): {
|
|
30
32
|
id: string;
|
|
31
33
|
label: string;
|