@codingame/monaco-vscode-api 20.1.1 → 20.2.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 +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/browser.d.ts +2 -0
- package/vscode/src/vs/base/browser/canIUse.d.ts +3 -0
- package/vscode/src/vs/base/browser/contextmenu.d.ts +14 -0
- package/vscode/src/vs/base/browser/cssValue.d.ts +8 -0
- package/vscode/src/vs/base/browser/dnd.d.ts +21 -0
- package/vscode/src/vs/base/browser/dom.d.ts +178 -0
- package/vscode/src/vs/base/browser/domSanitize.d.ts +26 -0
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +3 -0
- package/vscode/src/vs/base/browser/dompurify/dompurify.d.ts +19 -0
- package/vscode/src/vs/base/browser/fonts.d.ts +8 -0
- package/vscode/src/vs/base/browser/iframe.d.ts +10 -0
- package/vscode/src/vs/base/browser/keyboardEvent.d.ts +3 -0
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +18 -0
- package/vscode/src/vs/base/browser/performance.d.ts +22 -0
- package/vscode/src/vs/base/browser/pixelRatio.d.ts +7 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css +29 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +5 -0
- package/vscode/src/vs/base/browser/ui/aria/aria.css +6 -1
- package/vscode/src/vs/base/browser/ui/aria/aria.d.ts +6 -0
- package/vscode/src/vs/base/browser/ui/button/button.css +36 -1
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +9 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon-modifiers.css +11 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css +8 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.css +6 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +14 -0
- package/vscode/src/vs/base/browser/ui/countBadge/countBadge.css +6 -0
- package/vscode/src/vs/base/browser/ui/dnd/dnd.css +12 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.css +11 -0
- package/vscode/src/vs/base/browser/ui/findinput/findInput.css +20 -0
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.d.ts +27 -0
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +258 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +37 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.d.ts +10 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +54 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconlabel.css +34 -6
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.css +27 -2
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.css +10 -0
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/list/list.css +21 -0
- package/vscode/src/vs/base/browser/ui/list/list.d.ts +9 -0
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +17 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +26 -0
- package/vscode/src/vs/base/browser/ui/list/rangeMap.d.ts +29 -0
- package/vscode/src/vs/base/browser/ui/list/rowCache.d.ts +12 -0
- package/vscode/src/vs/base/browser/ui/mouseCursor/mouseCursor.css +5 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.css +29 -1
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.d.ts +33 -0
- package/vscode/src/vs/base/browser/ui/sash/sash.css +31 -0
- package/vscode/src/vs/base/browser/ui/sash/sash.d.ts +125 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/abstractScrollbar.d.ts +6 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/media/scrollbars.css +16 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +22 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElementOptions.d.ts +98 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarArrow.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarState.d.ts +43 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css +11 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.css +29 -1
- package/vscode/src/vs/base/browser/ui/severityIcon/media/severityIcon.css +7 -0
- package/vscode/src/vs/base/browser/ui/splitview/splitview.css +16 -0
- package/vscode/src/vs/base/browser/ui/splitview/splitview.d.ts +289 -0
- package/vscode/src/vs/base/browser/ui/table/table.css +12 -0
- package/vscode/src/vs/base/browser/ui/toggle/toggle.css +14 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.css +6 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +12 -0
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +12 -0
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +19 -0
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.d.ts +18 -0
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css +38 -3
- package/vscode/src/vs/base/browser/ui/tree/objectTree.d.ts +12 -0
- package/vscode/src/vs/base/browser/ui/tree/tree.d.ts +43 -0
- package/vscode/src/vs/base/common/actions.d.ts +3 -0
- package/vscode/src/vs/base/common/arrays.d.ts +193 -1
- package/vscode/src/vs/base/common/arraysFind.d.ts +46 -0
- package/vscode/src/vs/base/common/assert.d.ts +28 -0
- package/vscode/src/vs/base/common/async.d.ts +361 -0
- package/vscode/src/vs/base/common/buffer.d.ts +31 -0
- package/vscode/src/vs/base/common/cache.d.ts +11 -0
- package/vscode/src/vs/base/common/cancellation.d.ts +11 -0
- package/vscode/src/vs/base/common/charCode.d.ts +319 -186
- package/vscode/src/vs/base/common/codicons.d.ts +14 -0
- package/vscode/src/vs/base/common/codiconsUtil.d.ts +3 -0
- package/vscode/src/vs/base/common/collections.d.ts +19 -0
- package/vscode/src/vs/base/common/color.d.ts +115 -0
- package/vscode/src/vs/base/common/comparers.d.ts +10 -0
- package/vscode/src/vs/base/common/dataTransfer.d.ts +38 -0
- package/vscode/src/vs/base/common/date.d.ts +15 -0
- package/vscode/src/vs/base/common/diff/diff.d.ts +90 -0
- package/vscode/src/vs/base/common/diff/diffChange.d.ts +29 -0
- package/vscode/src/vs/base/common/equals.d.ts +26 -0
- package/vscode/src/vs/base/common/errorMessage.d.ts +6 -0
- package/vscode/src/vs/base/common/errors.d.ts +26 -0
- package/vscode/src/vs/base/common/event.d.ts +356 -0
- package/vscode/src/vs/base/common/extpath.d.ts +34 -0
- package/vscode/src/vs/base/common/filters.d.ts +22 -0
- package/vscode/src/vs/base/common/functional.d.ts +3 -0
- package/vscode/src/vs/base/common/glob.d.ts +39 -0
- package/vscode/src/vs/base/common/hash.d.ts +12 -0
- package/vscode/src/vs/base/common/history.d.ts +7 -0
- package/vscode/src/vs/base/common/hotReload.d.ts +6 -0
- package/vscode/src/vs/base/common/htmlContent.d.ts +3 -0
- package/vscode/src/vs/base/common/iconLabels.d.ts +9 -0
- package/vscode/src/vs/base/common/ime.d.ts +6 -0
- package/vscode/src/vs/base/common/iterator.d.ts +7 -0
- package/vscode/src/vs/base/common/json.d.ts +98 -0
- package/vscode/src/vs/base/common/jsonSchema.d.ts +5 -0
- package/vscode/src/vs/base/common/keyCodes.d.ts +95 -18
- package/vscode/src/vs/base/common/keybindingLabels.d.ts +13 -0
- package/vscode/src/vs/base/common/keybindings.d.ts +54 -0
- package/vscode/src/vs/base/common/labels.d.ts +41 -0
- package/vscode/src/vs/base/common/lazy.d.ts +12 -0
- package/vscode/src/vs/base/common/lifecycle.d.ts +126 -0
- package/vscode/src/vs/base/common/map.d.ts +33 -0
- package/vscode/src/vs/base/common/marked/marked.d.ts +137 -0
- package/vscode/src/vs/base/common/naturalLanguage/korean.d.ts +8 -0
- package/vscode/src/vs/base/common/network.d.ts +85 -0
- package/vscode/src/vs/base/common/numbers.d.ts +45 -0
- package/vscode/src/vs/base/common/oauth.d.ts +369 -0
- package/vscode/src/vs/base/common/objects.d.ts +19 -0
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +128 -0
- package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +11 -0
- package/vscode/src/vs/base/common/observableInternal/debugName.d.ts +16 -0
- package/vscode/src/vs/base/common/observableInternal/experimental/reducer.d.ts +21 -0
- package/vscode/src/vs/base/common/observableInternal/experimental/utils.d.ts +11 -0
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +15 -0
- package/vscode/src/vs/base/common/observableInternal/observables/constObservable.d.ts +3 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derived.d.ts +25 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +15 -0
- package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts +3 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignal.d.ts +5 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.d.ts +10 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.d.ts +27 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +7 -0
- package/vscode/src/vs/base/common/observableInternal/transaction.d.ts +9 -0
- package/vscode/src/vs/base/common/observableInternal/utils/promise.d.ts +47 -1
- package/vscode/src/vs/base/common/observableInternal/utils/utils.d.ts +15 -0
- package/vscode/src/vs/base/common/observableInternal/utils/utilsCancellation.d.ts +3 -0
- package/vscode/src/vs/base/common/performance.d.ts +3 -0
- package/vscode/src/vs/base/common/platform.d.ts +37 -0
- package/vscode/src/vs/base/common/prefixTree.d.ts +23 -0
- package/vscode/src/vs/base/common/process.d.ts +23 -0
- package/vscode/src/vs/base/common/range.d.ts +4 -0
- package/vscode/src/vs/base/common/resources.d.ts +115 -0
- package/vscode/src/vs/base/common/scrollable.d.ts +17 -0
- package/vscode/src/vs/base/common/severity.d.ts +4 -0
- package/vscode/src/vs/base/common/skipList.d.ts +4 -0
- package/vscode/src/vs/base/common/sseParser.d.ts +51 -0
- package/vscode/src/vs/base/common/stream.d.ts +148 -0
- package/vscode/src/vs/base/common/strings.d.ts +134 -0
- package/vscode/src/vs/base/common/symbols.d.ts +3 -0
- package/vscode/src/vs/base/common/ternarySearchTree.d.ts +6 -0
- package/vscode/src/vs/base/common/types.d.ts +135 -0
- package/vscode/src/vs/base/common/uint.d.ts +24 -3
- package/vscode/src/vs/base/common/uri.d.ts +131 -0
- package/vscode/src/vs/base/common/worker/webWorker.d.ts +6 -0
- package/vscode/src/vs/base/parts/sandbox/common/electronTypes.d.ts +179 -0
- package/vscode/src/vs/base/parts/sandbox/common/sandboxTypes.d.ts +39 -0
- package/vscode/src/vs/base/parts/storage/common/storage.d.ts +11 -0
- package/vscode/src/vs/editor/browser/config/editorConfiguration.d.ts +20 -0
- package/vscode/src/vs/editor/browser/config/fontMeasurements.d.ts +15 -0
- package/vscode/src/vs/editor/browser/config/migrateOptions.d.ts +3 -0
- package/vscode/src/vs/editor/browser/config/tabFocus.d.ts +6 -0
- package/vscode/src/vs/editor/browser/controller/dragScrolling.d.ts +9 -0
- package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.d.ts +5 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/editContextFactory.d.ts +3 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css +11 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderUtils.d.ts +18 -0
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.d.ts +5 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.css +19 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.d.ts +7 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.d.ts +8 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.d.ts +13 -1
- package/vscode/src/vs/editor/browser/controller/mouseHandler.d.ts +9 -0
- package/vscode/src/vs/editor/browser/controller/mouseTarget.d.ts +6 -0
- package/vscode/src/vs/editor/browser/controller/pointerHandler.d.ts +3 -0
- package/vscode/src/vs/editor/browser/coreCommands.d.ts +24 -0
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +439 -0
- package/vscode/src/vs/editor/browser/editorDom.d.ts +39 -0
- package/vscode/src/vs/editor/browser/editorExtensions.d.ts +51 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/atlas.d.ts +65 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +23 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.d.ts +4 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasShelfAllocator.d.ts +5 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasSlabAllocator.d.ts +10 -0
- package/vscode/src/vs/editor/browser/gpu/bufferDirtyTracker.d.ts +20 -0
- package/vscode/src/vs/editor/browser/gpu/contentSegmenter.d.ts +6 -0
- package/vscode/src/vs/editor/browser/gpu/css/decorationCssRuleExtractor.d.ts +3 -0
- package/vscode/src/vs/editor/browser/gpu/css/decorationStyleCache.d.ts +12 -0
- package/vscode/src/vs/editor/browser/gpu/css/media/decorationCssRuleExtractor.css +5 -0
- package/vscode/src/vs/editor/browser/gpu/gpu.d.ts +3 -0
- package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.d.ts +33 -0
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +4 -0
- package/vscode/src/vs/editor/browser/gpu/raster/raster.d.ts +47 -0
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/fullFileRenderStrategy.d.ts +20 -0
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.d.ts +10 -0
- package/vscode/src/vs/editor/browser/gpu/taskQueue.d.ts +33 -0
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.d.ts +22 -0
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +6 -0
- package/vscode/src/vs/editor/browser/services/codeEditorService.service.d.ts +3 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +32 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.d.ts +4 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +16 -0
- package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +17 -1
- package/vscode/src/vs/editor/browser/view/viewController.d.ts +3 -0
- package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +19 -0
- package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.css +6 -0
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css +7 -0
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.d.ts +9 -0
- package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.css +9 -0
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.css +16 -0
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.d.ts +20 -0
- package/vscode/src/vs/editor/browser/viewParts/gpuMark/gpuMark.css +6 -0
- package/vscode/src/vs/editor/browser/viewParts/gpuMark/gpuMark.d.ts +3 -0
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css +9 -0
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.d.ts +3 -0
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.css +9 -0
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.css +9 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +10 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.d.ts +31 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.d.ts +16 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharSheet.d.ts +3 -3
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapPreBaked.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.css +4 -0
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/rulersGpu/rulersGpu.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.css +14 -0
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.d.ts +3 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.css +19 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/rangeUtil.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.css +34 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.d.ts +19 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.d.ts +3 -0
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.d.ts +5 -0
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.css +5 -0
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorContributions.d.ts +12 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +32 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css +27 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css +20 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.d.ts +6 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.d.ts +7 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +10 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.d.ts +3 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.d.ts +3 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.d.ts +6 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/style.css +92 -1
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/renderedMarkdown.css +6 -0
- package/vscode/src/vs/editor/common/commands/surroundSelectionCommand.d.ts +3 -0
- package/vscode/src/vs/editor/common/commands/trimTrailingWhitespaceCommand.d.ts +3 -0
- package/vscode/src/vs/editor/common/config/editorConfiguration.d.ts +41 -0
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +862 -0
- package/vscode/src/vs/editor/common/config/fontInfo.d.ts +34 -0
- package/vscode/src/vs/editor/common/coordinatesConverter.d.ts +7 -0
- package/vscode/src/vs/editor/common/core/characterClassifier.d.ts +9 -0
- package/vscode/src/vs/editor/common/core/cursorColumns.d.ts +44 -0
- package/vscode/src/vs/editor/common/core/editOperation.d.ts +14 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +55 -1
- package/vscode/src/vs/editor/common/core/edits/lengthEdit.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +9 -1
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +37 -0
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/misc/rgba.d.ts +16 -0
- package/vscode/src/vs/editor/common/core/position.d.ts +67 -0
- package/vscode/src/vs/editor/common/core/range.d.ts +140 -0
- package/vscode/src/vs/editor/common/core/ranges/columnRange.d.ts +8 -1
- package/vscode/src/vs/editor/common/core/ranges/lineRange.d.ts +57 -1
- package/vscode/src/vs/editor/common/core/ranges/offsetRange.d.ts +30 -0
- package/vscode/src/vs/editor/common/core/ranges/rangeSingleLine.d.ts +7 -1
- package/vscode/src/vs/editor/common/core/selection.d.ts +83 -0
- package/vscode/src/vs/editor/common/core/stringBuilder.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/text/textLength.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/wordHelper.d.ts +12 -0
- package/vscode/src/vs/editor/common/cursor/cursorAtomicMoveOperations.d.ts +15 -0
- package/vscode/src/vs/editor/common/cursor/cursorCollection.d.ts +7 -0
- package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.d.ts +15 -0
- package/vscode/src/vs/editor/common/cursor/cursorMoveOperations.d.ts +7 -0
- package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.d.ts +14 -0
- package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.d.ts +3 -0
- package/vscode/src/vs/editor/common/cursor/oneCursor.d.ts +3 -0
- package/vscode/src/vs/editor/common/cursorCommon.d.ts +25 -0
- package/vscode/src/vs/editor/common/cursorEvents.d.ts +63 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.d.ts +23 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.d.ts +4 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.d.ts +3 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts +4 -0
- package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.d.ts +16 -0
- package/vscode/src/vs/editor/common/diff/linesDiffComputer.d.ts +24 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +41 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +218 -0
- package/vscode/src/vs/editor/common/editorContextKeys.d.ts +14 -0
- package/vscode/src/vs/editor/common/editorFeatures.d.ts +7 -0
- package/vscode/src/vs/editor/common/encodedTokenAttributes.d.ts +38 -0
- package/vscode/src/vs/editor/common/inputMode.d.ts +3 -0
- package/vscode/src/vs/editor/common/languageSelector.d.ts +6 -0
- package/vscode/src/vs/editor/common/languages/autoIndent.d.ts +16 -0
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.d.ts +3 -0
- package/vscode/src/vs/editor/common/languages/language.d.ts +3 -0
- package/vscode/src/vs/editor/common/languages/language.service.d.ts +77 -0
- package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +195 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +9 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.service.d.ts +3 -0
- package/vscode/src/vs/editor/common/languages/linkComputer.d.ts +5 -0
- package/vscode/src/vs/editor/common/languages/supports/electricCharacter.d.ts +4 -0
- package/vscode/src/vs/editor/common/languages/supports/indentationLineProcessor.d.ts +27 -0
- package/vscode/src/vs/editor/common/languages/supports/languageBracketsConfiguration.d.ts +22 -1
- package/vscode/src/vs/editor/common/languages/supports/richEditBrackets.d.ts +80 -0
- package/vscode/src/vs/editor/common/languages/supports/tokenization.d.ts +12 -0
- package/vscode/src/vs/editor/common/languages.d.ts +955 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.d.ts +4 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.d.ts +55 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.d.ts +10 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.d.ts +3 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets.d.ts +3 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.d.ts +6 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.d.ts +16 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader.d.ts +8 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.d.ts +3 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.d.ts +7 -0
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer.d.ts +23 -1
- package/vscode/src/vs/editor/common/model/decorationProvider.d.ts +13 -0
- package/vscode/src/vs/editor/common/model/fixedArray.d.ts +4 -0
- package/vscode/src/vs/editor/common/model/indentationGuesser.d.ts +9 -0
- package/vscode/src/vs/editor/common/model/intervalTree.d.ts +13 -0
- package/vscode/src/vs/editor/common/model/mirrorTextModel.d.ts +18 -0
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.d.ts +29 -0
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.d.ts +7 -0
- package/vscode/src/vs/editor/common/model/prefixSumComputer.d.ts +34 -0
- package/vscode/src/vs/editor/common/model/textModel.d.ts +17 -0
- package/vscode/src/vs/editor/common/model/textModelSearch.d.ts +4 -0
- package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +19 -0
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.d.ts +8 -0
- package/vscode/src/vs/editor/common/model/tokens/tokenizationTextModelPart.d.ts +3 -0
- package/vscode/src/vs/editor/common/model/tokens/tokenizerSyntaxTokenBackend.d.ts +1 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/tokenStore.d.ts +22 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTokenizationImpl.d.ts +10 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.d.ts +4 -1
- package/vscode/src/vs/editor/common/model/utils.d.ts +5 -0
- package/vscode/src/vs/editor/common/model.d.ts +440 -0
- package/vscode/src/vs/editor/common/modelLineProjectionData.d.ts +52 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +19 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.d.ts +19 -0
- package/vscode/src/vs/editor/common/services/languagesAssociations.d.ts +23 -0
- package/vscode/src/vs/editor/common/services/modelService.d.ts +6 -0
- package/vscode/src/vs/editor/common/services/resolverService.service.d.ts +10 -0
- package/vscode/src/vs/editor/common/services/textModelSync/textModelSync.impl.d.ts +3 -0
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +11 -0
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +35 -0
- package/vscode/src/vs/editor/common/services/treeSitter/treeSitterLibraryService.service.d.ts +10 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +377 -18
- package/vscode/src/vs/editor/common/textModelBracketPairs.d.ts +56 -3
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +4 -0
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +210 -0
- package/vscode/src/vs/editor/common/textModelGuides.d.ts +28 -1
- package/vscode/src/vs/editor/common/tokenizationTextModelPart.d.ts +53 -0
- package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokens.d.ts +24 -0
- package/vscode/src/vs/editor/common/tokens/contiguousTokensStore.d.ts +3 -0
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +20 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.d.ts +9 -0
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.d.ts +3 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.d.ts +11 -0
- package/vscode/src/vs/editor/common/viewEvents.d.ts +85 -2
- package/vscode/src/vs/editor/common/viewLayout/lineDecorations.d.ts +3 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.d.ts +26 -0
- package/vscode/src/vs/editor/common/viewLayout/linePart.d.ts +8 -1
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.d.ts +130 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.d.ts +10 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.d.ts +21 -0
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.d.ts +3 -0
- package/vscode/src/vs/editor/common/viewModel/overviewZoneManager.d.ts +6 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +12 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +15 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +10 -0
- package/vscode/src/vs/editor/common/viewModel.d.ts +104 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.css +5 -0
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.css +5 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css +16 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css +15 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPicker.css +40 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/dnd/browser/dnd.css +9 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.d.ts +12 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.d.ts +5 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.css +8 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/editorState.d.ts +8 -0
- package/vscode/src/vs/editor/contrib/find/browser/findDecorations.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.css +5 -0
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.css +62 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/find/browser/replacePattern.d.ts +18 -0
- package/vscode/src/vs/editor/contrib/folding/browser/folding.css +10 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +6 -0
- package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.d.ts +67 -0
- package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.d.ts +13 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css +20 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.css +5 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.css +22 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css +19 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.d.ts +16 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.d.ts +54 -0
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.css +6 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.css +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.d.ts +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +11 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +13 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.d.ts +13 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.css +16 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +58 -7
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css +9 -0
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLineCommand.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.css +7 -0
- package/vscode/src/vs/editor/contrib/links/browser/links.css +5 -0
- package/vscode/src/vs/editor/contrib/message/browser/messageController.css +18 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.css +7 -0
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.css +29 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/media/peekViewWidget.css +18 -0
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css +6 -0
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css +16 -2
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.d.ts +27 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.css +6 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +15 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollElement.d.ts +22 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.d.ts +5 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +42 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +19 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/completionModel.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css +118 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.d.ts +8 -0
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.css +5 -0
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.css +19 -0
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.css +5 -0
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.css +8 -0
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.css +6 -0
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.d.ts +1 -0
- package/vscode/src/vs/editor/editor.worker.start.d.ts +5 -0
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css +6 -0
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInput.css +14 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +73 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +10 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterLibraryService.d.ts +10 -0
- package/vscode/src/vs/nls.d.ts +96 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +31 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.service.d.ts +4 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.d.ts +3 -0
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +3 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +16 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +7 -0
- package/vscode/src/vs/platform/action/common/action.d.ts +32 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +36 -0
- package/vscode/src/vs/platform/actions/browser/floatingMenu.d.ts +4 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css +14 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +3 -0
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +67 -0
- package/vscode/src/vs/platform/actions/common/actions.d.ts +40 -0
- package/vscode/src/vs/platform/actions/common/actions.service.d.ts +20 -0
- package/vscode/src/vs/platform/clipboard/common/clipboardService.service.d.ts +33 -0
- package/vscode/src/vs/platform/commands/common/commands.d.ts +7 -0
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +9 -0
- package/vscode/src/vs/platform/configuration/common/configuration.service.d.ts +26 -0
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +126 -0
- package/vscode/src/vs/platform/contextkey/common/contextkey.d.ts +30 -0
- package/vscode/src/vs/platform/contextkey/common/scanner.d.ts +21 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +18 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +87 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +22 -0
- package/vscode/src/vs/platform/editor/common/editor.d.ts +231 -0
- package/vscode/src/vs/platform/environment/common/argv.d.ts +3 -0
- package/vscode/src/vs/platform/environment/common/environment.d.ts +5 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +16 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +25 -22
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +4 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.d.ts +6 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +7 -0
- package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.d.ts +8 -0
- package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service.d.ts +15 -0
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +944 -0
- package/vscode/src/vs/platform/files/browser/webFileSystemAccess.d.ts +25 -0
- package/vscode/src/vs/platform/files/common/files.d.ts +408 -0
- package/vscode/src/vs/platform/files/common/files.service.d.ts +168 -0
- package/vscode/src/vs/platform/files/common/watcher.d.ts +83 -0
- package/vscode/src/vs/platform/imageResize/common/imageResizeService.service.d.ts +3 -0
- package/vscode/src/vs/platform/instantiation/common/extensions.d.ts +8 -0
- package/vscode/src/vs/platform/instantiation/common/graph.d.ts +4 -0
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +31 -0
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.d.ts +18 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +7 -0
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +27 -0
- package/vscode/src/vs/platform/keybinding/common/keybindingResolver.d.ts +24 -1
- package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +3 -0
- package/vscode/src/vs/platform/keybinding/common/usLayoutResolvedKeybinding.d.ts +6 -0
- package/vscode/src/vs/platform/label/common/label.service.d.ts +12 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +6 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.service.d.ts +51 -0
- package/vscode/src/vs/platform/list/browser/listService.service.d.ts +3 -0
- package/vscode/src/vs/platform/log/common/log.d.ts +30 -0
- package/vscode/src/vs/platform/log/common/log.service.d.ts +52 -0
- package/vscode/src/vs/platform/markers/common/markerService.d.ts +3 -0
- package/vscode/src/vs/platform/markers/common/markers.d.ts +6 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +185 -0
- package/vscode/src/vs/platform/notification/common/notification.service.d.ts +63 -0
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.d.ts +2 -0
- package/vscode/src/vs/platform/observable/common/wrapInHotClass.d.ts +10 -0
- package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.d.ts +10 -0
- package/vscode/src/vs/platform/opener/browser/link.css +7 -0
- package/vscode/src/vs/platform/opener/common/opener.d.ts +33 -0
- package/vscode/src/vs/platform/opener/common/opener.service.d.ts +27 -0
- package/vscode/src/vs/platform/product/common/product.d.ts +5 -0
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/progress/common/progress.d.ts +15 -0
- package/vscode/src/vs/platform/progress/common/progress.service.d.ts +6 -0
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +115 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +4 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.d.ts +14 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.d.ts +3 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.d.ts +3 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +3 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +4 -0
- package/vscode/src/vs/platform/quickinput/common/quickAccess.d.ts +121 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +574 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +63 -0
- package/vscode/src/vs/platform/registry/common/platform.d.ts +14 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.d.ts +7 -0
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +3 -0
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.d.ts +6 -0
- package/vscode/src/vs/platform/storage/common/storage.d.ts +45 -0
- package/vscode/src/vs/platform/storage/common/storage.service.d.ts +120 -0
- package/vscode/src/vs/platform/telemetry/common/telemetry.service.d.ts +13 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.d.ts +40 -0
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +342 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +28 -0
- package/vscode/src/vs/platform/terminal/common/terminalProcess.d.ts +4 -0
- package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +37 -0
- package/vscode/src/vs/platform/theme/common/iconRegistry.d.ts +32 -0
- package/vscode/src/vs/platform/theme/common/theme.d.ts +3 -0
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +30 -0
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +13 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedo.d.ts +32 -0
- package/vscode/src/vs/platform/undoRedo/common/undoRedo.service.d.ts +32 -0
- package/vscode/src/vs/platform/update/common/update.d.ts +17 -0
- package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.service.d.ts +26 -0
- package/vscode/src/vs/platform/url/common/url.d.ts +6 -0
- package/vscode/src/vs/platform/url/common/url.service.d.ts +5 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +3 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.service.d.ts +16 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +12 -12
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +4 -0
- package/vscode/src/vs/platform/webContentExtractor/common/webContentExtractor.d.ts +5 -0
- package/vscode/src/vs/platform/window/common/window.d.ts +39 -0
- package/vscode/src/vs/platform/workspace/common/workspace.d.ts +71 -1
- package/vscode/src/vs/platform/workspace/common/workspace.service.d.ts +36 -0
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +3 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +93 -3
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +9 -0
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.d.ts +9 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +13 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +7 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +11 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +7 -0
- package/vscode/src/vs/workbench/api/common/extHostTestItem.d.ts +3 -0
- package/vscode/src/vs/workbench/api/common/extHostTesting.d.ts +96 -2
- package/vscode/src/vs/workbench/api/common/extHostTestingPrivateApi.d.ts +5 -0
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +8 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +123 -0
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +3 -0
- package/vscode/src/vs/workbench/browser/actions/media/actions.css +12 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +69 -0
- package/vscode/src/vs/workbench/common/composite.d.ts +24 -0
- package/vscode/src/vs/workbench/common/contributions.d.ts +62 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.d.ts +4 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorModel.d.ts +4 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +181 -0
- package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +17 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.d.ts +3 -0
- package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.d.ts +4 -0
- package/vscode/src/vs/workbench/common/editor/textEditorModel.d.ts +15 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +617 -0
- package/vscode/src/vs/workbench/common/panecomposite.d.ts +3 -0
- package/vscode/src/vs/workbench/common/views.d.ts +74 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/promptTsxTypes.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.css +9 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/menuPreventer.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +161 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.service.d.ts +130 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +124 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +787 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.service.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffModel.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scm.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/search/browser/replace.service.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.service.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +224 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +508 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +92 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testId.d.ts +79 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.service.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.service.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testService.service.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.d.ts +150 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.service.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.service.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingPeekOpener.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingPeekOpener.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/timeline/common/timeline.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/webview/common/webview.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.service.d.ts +10 -0
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +21 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpAccessService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.service.d.ts +41 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpUsageService.service.d.ts +24 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.d.ts +24 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +107 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +124 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.d.ts +267 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.d.ts +33 -0
- package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.d.ts +3 -0
- package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.service.d.ts +39 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.d.ts +29 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +511 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +49 -0
- package/vscode/src/vs/workbench/services/editor/common/editorPaneService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +12 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.d.ts +41 -0
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +45 -0
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +174 -0
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +4 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +44 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +3 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +3 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +64 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +94 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.d.ts +4 -0
- package/vscode/src/vs/workbench/services/extensions/common/proxyIdentifier.d.ts +18 -0
- package/vscode/src/vs/workbench/services/files/common/elevatedFileService.service.d.ts +7 -0
- package/vscode/src/vs/workbench/services/history/common/history.d.ts +28 -0
- package/vscode/src/vs/workbench/services/history/common/history.service.d.ts +51 -0
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +69 -0
- package/vscode/src/vs/workbench/services/keybinding/common/fallbackKeyboardMapper.d.ts +3 -0
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +119 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.d.ts +116 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.d.ts +54 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.d.ts +3 -0
- package/vscode/src/vs/workbench/services/output/common/output.d.ts +57 -0
- package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +45 -0
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +30 -0
- package/vscode/src/vs/workbench/services/path/common/pathService.service.d.ts +42 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/services/search/common/folderQuerySearchTree.d.ts +4 -0
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +28 -0
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +32 -0
- package/vscode/src/vs/workbench/services/search/common/search.service.d.ts +3 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtConversionTypes.d.ts +273 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.d.ts +327 -0
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.d.ts +6 -0
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +91 -0
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.d.ts +10 -0
- package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/services/textfile/common/encoding.d.ts +9 -0
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.service.d.ts +17 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +179 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +74 -0
- package/vscode/src/vs/workbench/services/timer/browser/timerService.service.d.ts +31 -0
- package/vscode/src/vs/workbench/services/title/browser/titleService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.d.ts +46 -0
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.service.d.ts +14 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +11 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +32 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +84 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistory.service.d.ts +43 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +63 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +28 -0
|
@@ -1,15 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP protocol proposals.
|
|
3
|
+
* - Proposals here MUST have an MCP PR linked to them
|
|
4
|
+
* - Proposals here are subject to change and SHALL be removed when
|
|
5
|
+
* the upstream MCP PR is merged or closed.
|
|
6
|
+
*/
|
|
1
7
|
export declare namespace MCP {
|
|
2
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Schema updated from the Model Context Protocol repository at
|
|
11
|
+
* https://github.com/modelcontextprotocol/specification/tree/main/schema
|
|
12
|
+
*
|
|
13
|
+
* ⚠️ Do not edit within `namespace` manually except to update schema versions ⚠️
|
|
14
|
+
*/
|
|
3
15
|
export declare namespace MCP {
|
|
16
|
+
/**
|
|
17
|
+
* Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
|
|
18
|
+
*/
|
|
4
19
|
type JSONRPCMessage = JSONRPCRequest | JSONRPCNotification | JSONRPCResponse | JSONRPCError;
|
|
5
20
|
const LATEST_PROTOCOL_VERSION = "2025-06-18";
|
|
6
21
|
const JSONRPC_VERSION = "2.0";
|
|
22
|
+
/**
|
|
23
|
+
* A progress token, used to associate progress notifications with the original request.
|
|
24
|
+
*/
|
|
7
25
|
type ProgressToken = string | number;
|
|
26
|
+
/**
|
|
27
|
+
* An opaque token used to represent a cursor for pagination.
|
|
28
|
+
*/
|
|
8
29
|
type Cursor = string;
|
|
9
30
|
interface Request {
|
|
10
31
|
method: string;
|
|
11
32
|
params?: {
|
|
33
|
+
/**
|
|
34
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
35
|
+
*/
|
|
12
36
|
_meta?: {
|
|
37
|
+
/**
|
|
38
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
39
|
+
*/
|
|
13
40
|
progressToken?: ProgressToken;
|
|
14
41
|
[key: string]: unknown;
|
|
15
42
|
};
|
|
@@ -19,6 +46,9 @@ export declare namespace MCP {
|
|
|
19
46
|
interface Notification {
|
|
20
47
|
method: string;
|
|
21
48
|
params?: {
|
|
49
|
+
/**
|
|
50
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
51
|
+
*/
|
|
22
52
|
_meta?: {
|
|
23
53
|
[key: string]: unknown;
|
|
24
54
|
};
|
|
@@ -26,19 +56,34 @@ export declare namespace MCP {
|
|
|
26
56
|
};
|
|
27
57
|
}
|
|
28
58
|
interface Result {
|
|
59
|
+
/**
|
|
60
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
61
|
+
*/
|
|
29
62
|
_meta?: {
|
|
30
63
|
[key: string]: unknown;
|
|
31
64
|
};
|
|
32
65
|
[key: string]: unknown;
|
|
33
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* A uniquely identifying ID for a request in JSON-RPC.
|
|
69
|
+
*/
|
|
34
70
|
type RequestId = string | number;
|
|
71
|
+
/**
|
|
72
|
+
* A request that expects a response.
|
|
73
|
+
*/
|
|
35
74
|
interface JSONRPCRequest extends Request {
|
|
36
75
|
jsonrpc: typeof JSONRPC_VERSION;
|
|
37
76
|
id: RequestId;
|
|
38
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* A notification which does not expect a response.
|
|
80
|
+
*/
|
|
39
81
|
interface JSONRPCNotification extends Notification {
|
|
40
82
|
jsonrpc: typeof JSONRPC_VERSION;
|
|
41
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* A successful (non-error) response to a request.
|
|
86
|
+
*/
|
|
42
87
|
interface JSONRPCResponse {
|
|
43
88
|
jsonrpc: typeof JSONRPC_VERSION;
|
|
44
89
|
id: RequestId;
|
|
@@ -49,230 +94,602 @@ export declare namespace MCP {
|
|
|
49
94
|
const METHOD_NOT_FOUND = -32601;
|
|
50
95
|
const INVALID_PARAMS = -32602;
|
|
51
96
|
const INTERNAL_ERROR = -32603;
|
|
97
|
+
/**
|
|
98
|
+
* A response to a request that indicates an error occurred.
|
|
99
|
+
*/
|
|
52
100
|
interface JSONRPCError {
|
|
53
101
|
jsonrpc: typeof JSONRPC_VERSION;
|
|
54
102
|
id: RequestId;
|
|
55
103
|
error: {
|
|
104
|
+
/**
|
|
105
|
+
* The error type that occurred.
|
|
106
|
+
*/
|
|
56
107
|
code: number;
|
|
108
|
+
/**
|
|
109
|
+
* A short description of the error. The message SHOULD be limited to a concise single sentence.
|
|
110
|
+
*/
|
|
57
111
|
message: string;
|
|
112
|
+
/**
|
|
113
|
+
* Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
114
|
+
*/
|
|
58
115
|
data?: unknown;
|
|
59
116
|
};
|
|
60
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* A response that indicates success but carries no data.
|
|
120
|
+
*/
|
|
61
121
|
type EmptyResult = Result;
|
|
122
|
+
/**
|
|
123
|
+
* This notification can be sent by either side to indicate that it is cancelling a previously-issued request.
|
|
124
|
+
*
|
|
125
|
+
* The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished.
|
|
126
|
+
*
|
|
127
|
+
* This notification indicates that the result will be unused, so any associated processing SHOULD cease.
|
|
128
|
+
*
|
|
129
|
+
* A client MUST NOT attempt to cancel its `initialize` request.
|
|
130
|
+
*/
|
|
62
131
|
interface CancelledNotification extends Notification {
|
|
63
132
|
method: "notifications/cancelled";
|
|
64
133
|
params: {
|
|
134
|
+
/**
|
|
135
|
+
* The ID of the request to cancel.
|
|
136
|
+
*
|
|
137
|
+
* This MUST correspond to the ID of a request previously issued in the same direction.
|
|
138
|
+
*/
|
|
65
139
|
requestId: RequestId;
|
|
140
|
+
/**
|
|
141
|
+
* An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
|
|
142
|
+
*/
|
|
66
143
|
reason?: string;
|
|
67
144
|
};
|
|
68
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* This request is sent from the client to the server when it first connects, asking it to begin initialization.
|
|
148
|
+
*/
|
|
69
149
|
interface InitializeRequest extends Request {
|
|
70
150
|
method: "initialize";
|
|
71
151
|
params: {
|
|
152
|
+
/**
|
|
153
|
+
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
|
|
154
|
+
*/
|
|
72
155
|
protocolVersion: string;
|
|
73
156
|
capabilities: ClientCapabilities;
|
|
74
157
|
clientInfo: Implementation;
|
|
75
158
|
};
|
|
76
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* After receiving an initialize request from the client, the server sends this response.
|
|
162
|
+
*/
|
|
77
163
|
interface InitializeResult extends Result {
|
|
164
|
+
/**
|
|
165
|
+
* The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
|
|
166
|
+
*/
|
|
78
167
|
protocolVersion: string;
|
|
79
168
|
capabilities: ServerCapabilities;
|
|
80
169
|
serverInfo: Implementation;
|
|
170
|
+
/**
|
|
171
|
+
* Instructions describing how to use the server and its features.
|
|
172
|
+
*
|
|
173
|
+
* This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
|
|
174
|
+
*/
|
|
81
175
|
instructions?: string;
|
|
82
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* This notification is sent from the client to the server after initialization has finished.
|
|
179
|
+
*/
|
|
83
180
|
interface InitializedNotification extends Notification {
|
|
84
181
|
method: "notifications/initialized";
|
|
85
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
|
|
185
|
+
*/
|
|
86
186
|
interface ClientCapabilities {
|
|
187
|
+
/**
|
|
188
|
+
* Experimental, non-standard capabilities that the client supports.
|
|
189
|
+
*/
|
|
87
190
|
experimental?: {
|
|
88
191
|
[key: string]: object;
|
|
89
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* Present if the client supports listing roots.
|
|
195
|
+
*/
|
|
90
196
|
roots?: {
|
|
197
|
+
/**
|
|
198
|
+
* Whether the client supports notifications for changes to the roots list.
|
|
199
|
+
*/
|
|
91
200
|
listChanged?: boolean;
|
|
92
201
|
};
|
|
202
|
+
/**
|
|
203
|
+
* Present if the client supports sampling from an LLM.
|
|
204
|
+
*/
|
|
93
205
|
sampling?: object;
|
|
206
|
+
/**
|
|
207
|
+
* Present if the client supports elicitation from the server.
|
|
208
|
+
*/
|
|
94
209
|
elicitation?: object;
|
|
95
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
|
|
213
|
+
*/
|
|
96
214
|
interface ServerCapabilities {
|
|
215
|
+
/**
|
|
216
|
+
* Experimental, non-standard capabilities that the server supports.
|
|
217
|
+
*/
|
|
97
218
|
experimental?: {
|
|
98
219
|
[key: string]: object;
|
|
99
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* Present if the server supports sending log messages to the client.
|
|
223
|
+
*/
|
|
100
224
|
logging?: object;
|
|
225
|
+
/**
|
|
226
|
+
* Present if the server supports argument autocompletion suggestions.
|
|
227
|
+
*/
|
|
101
228
|
completions?: object;
|
|
229
|
+
/**
|
|
230
|
+
* Present if the server offers any prompt templates.
|
|
231
|
+
*/
|
|
102
232
|
prompts?: {
|
|
233
|
+
/**
|
|
234
|
+
* Whether this server supports notifications for changes to the prompt list.
|
|
235
|
+
*/
|
|
103
236
|
listChanged?: boolean;
|
|
104
237
|
};
|
|
238
|
+
/**
|
|
239
|
+
* Present if the server offers any resources to read.
|
|
240
|
+
*/
|
|
105
241
|
resources?: {
|
|
242
|
+
/**
|
|
243
|
+
* Whether this server supports subscribing to resource updates.
|
|
244
|
+
*/
|
|
106
245
|
subscribe?: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Whether this server supports notifications for changes to the resource list.
|
|
248
|
+
*/
|
|
107
249
|
listChanged?: boolean;
|
|
108
250
|
};
|
|
251
|
+
/**
|
|
252
|
+
* Present if the server offers any tools to call.
|
|
253
|
+
*/
|
|
109
254
|
tools?: {
|
|
255
|
+
/**
|
|
256
|
+
* Whether this server supports notifications for changes to the tool list.
|
|
257
|
+
*/
|
|
110
258
|
listChanged?: boolean;
|
|
111
259
|
};
|
|
112
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* Base interface for metadata with name (identifier) and title (display name) properties.
|
|
263
|
+
*/
|
|
113
264
|
interface BaseMetadata {
|
|
265
|
+
/**
|
|
266
|
+
* Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
|
|
267
|
+
*/
|
|
114
268
|
name: string;
|
|
269
|
+
/**
|
|
270
|
+
* Intended for UI and end-user contexts - optimized to be human-readable and easily understood,
|
|
271
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
272
|
+
*
|
|
273
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
274
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
275
|
+
* if present).
|
|
276
|
+
*/
|
|
115
277
|
title?: string;
|
|
116
278
|
}
|
|
279
|
+
/**
|
|
280
|
+
* Describes the name and version of an MCP implementation, with an optional title for UI representation.
|
|
281
|
+
*/
|
|
117
282
|
interface Implementation extends BaseMetadata {
|
|
118
283
|
version: string;
|
|
119
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
|
|
287
|
+
*/
|
|
120
288
|
interface PingRequest extends Request {
|
|
121
289
|
method: "ping";
|
|
122
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* An out-of-band notification used to inform the receiver of a progress update for a long-running request.
|
|
293
|
+
*/
|
|
123
294
|
interface ProgressNotification extends Notification {
|
|
124
295
|
method: "notifications/progress";
|
|
125
296
|
params: {
|
|
297
|
+
/**
|
|
298
|
+
* The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
|
|
299
|
+
*/
|
|
126
300
|
progressToken: ProgressToken;
|
|
301
|
+
/**
|
|
302
|
+
* The progress thus far. This should increase every time progress is made, even if the total is unknown.
|
|
303
|
+
*
|
|
304
|
+
* @TJS-type number
|
|
305
|
+
*/
|
|
127
306
|
progress: number;
|
|
307
|
+
/**
|
|
308
|
+
* Total number of items to process (or total progress required), if known.
|
|
309
|
+
*
|
|
310
|
+
* @TJS-type number
|
|
311
|
+
*/
|
|
128
312
|
total?: number;
|
|
313
|
+
/**
|
|
314
|
+
* An optional message describing the current progress.
|
|
315
|
+
*/
|
|
129
316
|
message?: string;
|
|
130
317
|
};
|
|
131
318
|
}
|
|
132
319
|
interface PaginatedRequest extends Request {
|
|
133
320
|
params?: {
|
|
321
|
+
/**
|
|
322
|
+
* An opaque token representing the current pagination position.
|
|
323
|
+
* If provided, the server should return results starting after this cursor.
|
|
324
|
+
*/
|
|
134
325
|
cursor?: Cursor;
|
|
135
326
|
};
|
|
136
327
|
}
|
|
137
328
|
interface PaginatedResult extends Result {
|
|
329
|
+
/**
|
|
330
|
+
* An opaque token representing the pagination position after the last returned result.
|
|
331
|
+
* If present, there may be more results available.
|
|
332
|
+
*/
|
|
138
333
|
nextCursor?: Cursor;
|
|
139
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
* Sent from the client to request a list of resources the server has.
|
|
337
|
+
*/
|
|
140
338
|
interface ListResourcesRequest extends PaginatedRequest {
|
|
141
339
|
method: "resources/list";
|
|
142
340
|
}
|
|
341
|
+
/**
|
|
342
|
+
* The server's response to a resources/list request from the client.
|
|
343
|
+
*/
|
|
143
344
|
interface ListResourcesResult extends PaginatedResult {
|
|
144
345
|
resources: Resource[];
|
|
145
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Sent from the client to request a list of resource templates the server has.
|
|
349
|
+
*/
|
|
146
350
|
interface ListResourceTemplatesRequest extends PaginatedRequest {
|
|
147
351
|
method: "resources/templates/list";
|
|
148
352
|
}
|
|
353
|
+
/**
|
|
354
|
+
* The server's response to a resources/templates/list request from the client.
|
|
355
|
+
*/
|
|
149
356
|
interface ListResourceTemplatesResult extends PaginatedResult {
|
|
150
357
|
resourceTemplates: ResourceTemplate[];
|
|
151
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* Sent from the client to the server, to read a specific resource URI.
|
|
361
|
+
*/
|
|
152
362
|
interface ReadResourceRequest extends Request {
|
|
153
363
|
method: "resources/read";
|
|
154
364
|
params: {
|
|
365
|
+
/**
|
|
366
|
+
* The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
|
|
367
|
+
*
|
|
368
|
+
* @format uri
|
|
369
|
+
*/
|
|
155
370
|
uri: string;
|
|
156
371
|
};
|
|
157
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* The server's response to a resources/read request from the client.
|
|
375
|
+
*/
|
|
158
376
|
interface ReadResourceResult extends Result {
|
|
159
377
|
contents: (TextResourceContents | BlobResourceContents)[];
|
|
160
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client.
|
|
381
|
+
*/
|
|
161
382
|
interface ResourceListChangedNotification extends Notification {
|
|
162
383
|
method: "notifications/resources/list_changed";
|
|
163
384
|
}
|
|
385
|
+
/**
|
|
386
|
+
* Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
|
|
387
|
+
*/
|
|
164
388
|
interface SubscribeRequest extends Request {
|
|
165
389
|
method: "resources/subscribe";
|
|
166
390
|
params: {
|
|
391
|
+
/**
|
|
392
|
+
* The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it.
|
|
393
|
+
*
|
|
394
|
+
* @format uri
|
|
395
|
+
*/
|
|
167
396
|
uri: string;
|
|
168
397
|
};
|
|
169
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
* Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.
|
|
401
|
+
*/
|
|
170
402
|
interface UnsubscribeRequest extends Request {
|
|
171
403
|
method: "resources/unsubscribe";
|
|
172
404
|
params: {
|
|
405
|
+
/**
|
|
406
|
+
* The URI of the resource to unsubscribe from.
|
|
407
|
+
*
|
|
408
|
+
* @format uri
|
|
409
|
+
*/
|
|
173
410
|
uri: string;
|
|
174
411
|
};
|
|
175
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request.
|
|
415
|
+
*/
|
|
176
416
|
interface ResourceUpdatedNotification extends Notification {
|
|
177
417
|
method: "notifications/resources/updated";
|
|
178
418
|
params: {
|
|
419
|
+
/**
|
|
420
|
+
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
|
|
421
|
+
*
|
|
422
|
+
* @format uri
|
|
423
|
+
*/
|
|
179
424
|
uri: string;
|
|
180
425
|
};
|
|
181
426
|
}
|
|
427
|
+
/**
|
|
428
|
+
* A known resource that the server is capable of reading.
|
|
429
|
+
*/
|
|
182
430
|
interface Resource extends BaseMetadata {
|
|
431
|
+
/**
|
|
432
|
+
* The URI of this resource.
|
|
433
|
+
*
|
|
434
|
+
* @format uri
|
|
435
|
+
*/
|
|
183
436
|
uri: string;
|
|
437
|
+
/**
|
|
438
|
+
* A description of what this resource represents.
|
|
439
|
+
*
|
|
440
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
441
|
+
*/
|
|
184
442
|
description?: string;
|
|
443
|
+
/**
|
|
444
|
+
* The MIME type of this resource, if known.
|
|
445
|
+
*/
|
|
185
446
|
mimeType?: string;
|
|
447
|
+
/**
|
|
448
|
+
* Optional annotations for the client.
|
|
449
|
+
*/
|
|
186
450
|
annotations?: Annotations;
|
|
451
|
+
/**
|
|
452
|
+
* The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
|
|
453
|
+
*
|
|
454
|
+
* This can be used by Hosts to display file sizes and estimate context window usage.
|
|
455
|
+
*/
|
|
187
456
|
size?: number;
|
|
457
|
+
/**
|
|
458
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
459
|
+
*/
|
|
188
460
|
_meta?: {
|
|
189
461
|
[key: string]: unknown;
|
|
190
462
|
};
|
|
191
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* A template description for resources available on the server.
|
|
466
|
+
*/
|
|
192
467
|
interface ResourceTemplate extends BaseMetadata {
|
|
468
|
+
/**
|
|
469
|
+
* A URI template (according to RFC 6570) that can be used to construct resource URIs.
|
|
470
|
+
*
|
|
471
|
+
* @format uri-template
|
|
472
|
+
*/
|
|
193
473
|
uriTemplate: string;
|
|
474
|
+
/**
|
|
475
|
+
* A description of what this template is for.
|
|
476
|
+
*
|
|
477
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
478
|
+
*/
|
|
194
479
|
description?: string;
|
|
480
|
+
/**
|
|
481
|
+
* The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
|
|
482
|
+
*/
|
|
195
483
|
mimeType?: string;
|
|
484
|
+
/**
|
|
485
|
+
* Optional annotations for the client.
|
|
486
|
+
*/
|
|
196
487
|
annotations?: Annotations;
|
|
488
|
+
/**
|
|
489
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
490
|
+
*/
|
|
197
491
|
_meta?: {
|
|
198
492
|
[key: string]: unknown;
|
|
199
493
|
};
|
|
200
494
|
}
|
|
495
|
+
/**
|
|
496
|
+
* The contents of a specific resource or sub-resource.
|
|
497
|
+
*/
|
|
201
498
|
interface ResourceContents {
|
|
499
|
+
/**
|
|
500
|
+
* The URI of this resource.
|
|
501
|
+
*
|
|
502
|
+
* @format uri
|
|
503
|
+
*/
|
|
202
504
|
uri: string;
|
|
505
|
+
/**
|
|
506
|
+
* The MIME type of this resource, if known.
|
|
507
|
+
*/
|
|
203
508
|
mimeType?: string;
|
|
509
|
+
/**
|
|
510
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
511
|
+
*/
|
|
204
512
|
_meta?: {
|
|
205
513
|
[key: string]: unknown;
|
|
206
514
|
};
|
|
207
515
|
}
|
|
208
516
|
interface TextResourceContents extends ResourceContents {
|
|
517
|
+
/**
|
|
518
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
519
|
+
*/
|
|
209
520
|
text: string;
|
|
210
521
|
}
|
|
211
522
|
interface BlobResourceContents extends ResourceContents {
|
|
523
|
+
/**
|
|
524
|
+
* A base64-encoded string representing the binary data of the item.
|
|
525
|
+
*
|
|
526
|
+
* @format byte
|
|
527
|
+
*/
|
|
212
528
|
blob: string;
|
|
213
529
|
}
|
|
530
|
+
/**
|
|
531
|
+
* Sent from the client to request a list of prompts and prompt templates the server has.
|
|
532
|
+
*/
|
|
214
533
|
interface ListPromptsRequest extends PaginatedRequest {
|
|
215
534
|
method: "prompts/list";
|
|
216
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
* The server's response to a prompts/list request from the client.
|
|
538
|
+
*/
|
|
217
539
|
interface ListPromptsResult extends PaginatedResult {
|
|
218
540
|
prompts: Prompt[];
|
|
219
541
|
}
|
|
542
|
+
/**
|
|
543
|
+
* Used by the client to get a prompt provided by the server.
|
|
544
|
+
*/
|
|
220
545
|
interface GetPromptRequest extends Request {
|
|
221
546
|
method: "prompts/get";
|
|
222
547
|
params: {
|
|
548
|
+
/**
|
|
549
|
+
* The name of the prompt or prompt template.
|
|
550
|
+
*/
|
|
223
551
|
name: string;
|
|
552
|
+
/**
|
|
553
|
+
* Arguments to use for templating the prompt.
|
|
554
|
+
*/
|
|
224
555
|
arguments?: {
|
|
225
556
|
[key: string]: string;
|
|
226
557
|
};
|
|
227
558
|
};
|
|
228
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
* The server's response to a prompts/get request from the client.
|
|
562
|
+
*/
|
|
229
563
|
interface GetPromptResult extends Result {
|
|
564
|
+
/**
|
|
565
|
+
* An optional description for the prompt.
|
|
566
|
+
*/
|
|
230
567
|
description?: string;
|
|
231
568
|
messages: PromptMessage[];
|
|
232
569
|
}
|
|
570
|
+
/**
|
|
571
|
+
* A prompt or prompt template that the server offers.
|
|
572
|
+
*/
|
|
233
573
|
interface Prompt extends BaseMetadata {
|
|
574
|
+
/**
|
|
575
|
+
* An optional description of what this prompt provides
|
|
576
|
+
*/
|
|
234
577
|
description?: string;
|
|
578
|
+
/**
|
|
579
|
+
* A list of arguments to use for templating the prompt.
|
|
580
|
+
*/
|
|
235
581
|
arguments?: PromptArgument[];
|
|
582
|
+
/**
|
|
583
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
584
|
+
*/
|
|
236
585
|
_meta?: {
|
|
237
586
|
[key: string]: unknown;
|
|
238
587
|
};
|
|
239
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
* Describes an argument that a prompt can accept.
|
|
591
|
+
*/
|
|
240
592
|
interface PromptArgument extends BaseMetadata {
|
|
593
|
+
/**
|
|
594
|
+
* A human-readable description of the argument.
|
|
595
|
+
*/
|
|
241
596
|
description?: string;
|
|
597
|
+
/**
|
|
598
|
+
* Whether this argument must be provided.
|
|
599
|
+
*/
|
|
242
600
|
required?: boolean;
|
|
243
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* The sender or recipient of messages and data in a conversation.
|
|
604
|
+
*/
|
|
244
605
|
type Role = "user" | "assistant";
|
|
606
|
+
/**
|
|
607
|
+
* Describes a message returned as part of a prompt.
|
|
608
|
+
*
|
|
609
|
+
* This is similar to ` */
|
|
245
610
|
interface PromptMessage {
|
|
246
611
|
role: Role;
|
|
247
612
|
content: ContentBlock;
|
|
248
613
|
}
|
|
614
|
+
/**
|
|
615
|
+
* A resource that the server is capable of reading, included in a prompt or tool call result.
|
|
616
|
+
*
|
|
617
|
+
* Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
|
|
618
|
+
*/
|
|
249
619
|
interface ResourceLink extends Resource {
|
|
250
620
|
type: "resource_link";
|
|
251
621
|
}
|
|
622
|
+
/**
|
|
623
|
+
* The contents of a resource, embedded into a prompt or tool call result.
|
|
624
|
+
*
|
|
625
|
+
* It is up to the client how best to render embedded resources for the benefit
|
|
626
|
+
* of the LLM and/or the user.
|
|
627
|
+
*/
|
|
252
628
|
interface EmbeddedResource {
|
|
253
629
|
type: "resource";
|
|
254
630
|
resource: TextResourceContents | BlobResourceContents;
|
|
631
|
+
/**
|
|
632
|
+
* Optional annotations for the client.
|
|
633
|
+
*/
|
|
255
634
|
annotations?: Annotations;
|
|
635
|
+
/**
|
|
636
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
637
|
+
*/
|
|
256
638
|
_meta?: {
|
|
257
639
|
[key: string]: unknown;
|
|
258
640
|
};
|
|
259
641
|
}
|
|
642
|
+
/**
|
|
643
|
+
* An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.
|
|
644
|
+
*/
|
|
260
645
|
interface PromptListChangedNotification extends Notification {
|
|
261
646
|
method: "notifications/prompts/list_changed";
|
|
262
647
|
}
|
|
648
|
+
/**
|
|
649
|
+
* Sent from the client to request a list of tools the server has.
|
|
650
|
+
*/
|
|
263
651
|
interface ListToolsRequest extends PaginatedRequest {
|
|
264
652
|
method: "tools/list";
|
|
265
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* The server's response to a tools/list request from the client.
|
|
656
|
+
*/
|
|
266
657
|
interface ListToolsResult extends PaginatedResult {
|
|
267
658
|
tools: Tool[];
|
|
268
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* The server's response to a tool call.
|
|
662
|
+
*/
|
|
269
663
|
interface CallToolResult extends Result {
|
|
664
|
+
/**
|
|
665
|
+
* A list of content objects that represent the unstructured result of the tool call.
|
|
666
|
+
*/
|
|
270
667
|
content: ContentBlock[];
|
|
668
|
+
/**
|
|
669
|
+
* An optional JSON object that represents the structured result of the tool call.
|
|
670
|
+
*/
|
|
271
671
|
structuredContent?: {
|
|
272
672
|
[key: string]: unknown;
|
|
273
673
|
};
|
|
674
|
+
/**
|
|
675
|
+
* Whether the tool call ended in an error.
|
|
676
|
+
*
|
|
677
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
678
|
+
*
|
|
679
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
680
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
681
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
682
|
+
* and self-correct.
|
|
683
|
+
*
|
|
684
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
685
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
686
|
+
* should be reported as an MCP error response.
|
|
687
|
+
*/
|
|
274
688
|
isError?: boolean;
|
|
275
689
|
}
|
|
690
|
+
/**
|
|
691
|
+
* Used by the client to invoke a tool provided by the server.
|
|
692
|
+
*/
|
|
276
693
|
interface CallToolRequest extends Request {
|
|
277
694
|
method: "tools/call";
|
|
278
695
|
params: {
|
|
@@ -282,18 +699,74 @@ export declare namespace MCP {
|
|
|
282
699
|
};
|
|
283
700
|
};
|
|
284
701
|
}
|
|
702
|
+
/**
|
|
703
|
+
* An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
|
|
704
|
+
*/
|
|
285
705
|
interface ToolListChangedNotification extends Notification {
|
|
286
706
|
method: "notifications/tools/list_changed";
|
|
287
707
|
}
|
|
708
|
+
/**
|
|
709
|
+
* Additional properties describing a Tool to clients.
|
|
710
|
+
*
|
|
711
|
+
* NOTE: all properties in ToolAnnotations are **hints**.
|
|
712
|
+
* They are not guaranteed to provide a faithful description of
|
|
713
|
+
* tool behavior (including descriptive properties like `title`).
|
|
714
|
+
*
|
|
715
|
+
* Clients should never make tool use decisions based on ToolAnnotations
|
|
716
|
+
* received from untrusted servers.
|
|
717
|
+
*/
|
|
288
718
|
interface ToolAnnotations {
|
|
719
|
+
/**
|
|
720
|
+
* A human-readable title for the tool.
|
|
721
|
+
*/
|
|
289
722
|
title?: string;
|
|
723
|
+
/**
|
|
724
|
+
* If true, the tool does not modify its environment.
|
|
725
|
+
*
|
|
726
|
+
* Default: false
|
|
727
|
+
*/
|
|
290
728
|
readOnlyHint?: boolean;
|
|
729
|
+
/**
|
|
730
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
731
|
+
* If false, the tool performs only additive updates.
|
|
732
|
+
*
|
|
733
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
734
|
+
*
|
|
735
|
+
* Default: true
|
|
736
|
+
*/
|
|
291
737
|
destructiveHint?: boolean;
|
|
738
|
+
/**
|
|
739
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
740
|
+
* will have no additional effect on the its environment.
|
|
741
|
+
*
|
|
742
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
743
|
+
*
|
|
744
|
+
* Default: false
|
|
745
|
+
*/
|
|
292
746
|
idempotentHint?: boolean;
|
|
747
|
+
/**
|
|
748
|
+
* If true, this tool may interact with an "open world" of external
|
|
749
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
750
|
+
* For example, the world of a web search tool is open, whereas that
|
|
751
|
+
* of a memory tool is not.
|
|
752
|
+
*
|
|
753
|
+
* Default: true
|
|
754
|
+
*/
|
|
293
755
|
openWorldHint?: boolean;
|
|
294
756
|
}
|
|
757
|
+
/**
|
|
758
|
+
* Definition for a tool the client can call.
|
|
759
|
+
*/
|
|
295
760
|
interface Tool extends BaseMetadata {
|
|
761
|
+
/**
|
|
762
|
+
* A human-readable description of the tool.
|
|
763
|
+
*
|
|
764
|
+
* This can be used by clients to improve the LLM's understanding of available tools. It can be thought of like a "hint" to the model.
|
|
765
|
+
*/
|
|
296
766
|
description?: string;
|
|
767
|
+
/**
|
|
768
|
+
* A JSON Schema object defining the expected parameters for the tool.
|
|
769
|
+
*/
|
|
297
770
|
inputSchema: {
|
|
298
771
|
type: "object";
|
|
299
772
|
properties?: {
|
|
@@ -301,6 +774,10 @@ export declare namespace MCP {
|
|
|
301
774
|
};
|
|
302
775
|
required?: string[];
|
|
303
776
|
};
|
|
777
|
+
/**
|
|
778
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
779
|
+
* the structuredContent field of a CallToolResult.
|
|
780
|
+
*/
|
|
304
781
|
outputSchema?: {
|
|
305
782
|
type: "object";
|
|
306
783
|
properties?: {
|
|
@@ -308,137 +785,430 @@ export declare namespace MCP {
|
|
|
308
785
|
};
|
|
309
786
|
required?: string[];
|
|
310
787
|
};
|
|
788
|
+
/**
|
|
789
|
+
* Optional additional tool information.
|
|
790
|
+
*
|
|
791
|
+
* Display name precedence order is: title, annotations.title, then name.
|
|
792
|
+
*/
|
|
311
793
|
annotations?: ToolAnnotations;
|
|
794
|
+
/**
|
|
795
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
796
|
+
*/
|
|
312
797
|
_meta?: {
|
|
313
798
|
[key: string]: unknown;
|
|
314
799
|
};
|
|
315
800
|
}
|
|
801
|
+
/**
|
|
802
|
+
* A request from the client to the server, to enable or adjust logging.
|
|
803
|
+
*/
|
|
316
804
|
interface SetLevelRequest extends Request {
|
|
317
805
|
method: "logging/setLevel";
|
|
318
806
|
params: {
|
|
807
|
+
/**
|
|
808
|
+
* The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/message.
|
|
809
|
+
*/
|
|
319
810
|
level: LoggingLevel;
|
|
320
811
|
};
|
|
321
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
* Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.
|
|
815
|
+
*/
|
|
322
816
|
interface LoggingMessageNotification extends Notification {
|
|
323
817
|
method: "notifications/message";
|
|
324
818
|
params: {
|
|
819
|
+
/**
|
|
820
|
+
* The severity of this log message.
|
|
821
|
+
*/
|
|
325
822
|
level: LoggingLevel;
|
|
823
|
+
/**
|
|
824
|
+
* An optional name of the logger issuing this message.
|
|
825
|
+
*/
|
|
326
826
|
logger?: string;
|
|
827
|
+
/**
|
|
828
|
+
* The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
|
|
829
|
+
*/
|
|
327
830
|
data: unknown;
|
|
328
831
|
};
|
|
329
832
|
}
|
|
833
|
+
/**
|
|
834
|
+
* The severity of a log message.
|
|
835
|
+
*
|
|
836
|
+
* These map to syslog message severities, as specified in RFC-5424:
|
|
837
|
+
* https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
|
|
838
|
+
*/
|
|
330
839
|
type LoggingLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency";
|
|
840
|
+
/**
|
|
841
|
+
* A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.
|
|
842
|
+
*/
|
|
331
843
|
interface CreateMessageRequest extends Request {
|
|
332
844
|
method: "sampling/createMessage";
|
|
333
845
|
params: {
|
|
334
846
|
messages: SamplingMessage[];
|
|
847
|
+
/**
|
|
848
|
+
* The server's preferences for which model to select. The client MAY ignore these preferences.
|
|
849
|
+
*/
|
|
335
850
|
modelPreferences?: ModelPreferences;
|
|
851
|
+
/**
|
|
852
|
+
* An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
|
|
853
|
+
*/
|
|
336
854
|
systemPrompt?: string;
|
|
855
|
+
/**
|
|
856
|
+
* A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.
|
|
857
|
+
*/
|
|
337
858
|
includeContext?: "none" | "thisServer" | "allServers";
|
|
859
|
+
/**
|
|
860
|
+
* @TJS-type number
|
|
861
|
+
*/
|
|
338
862
|
temperature?: number;
|
|
863
|
+
/**
|
|
864
|
+
* The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested.
|
|
865
|
+
*/
|
|
339
866
|
maxTokens: number;
|
|
340
867
|
stopSequences?: string[];
|
|
868
|
+
/**
|
|
869
|
+
* Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
|
|
870
|
+
*/
|
|
341
871
|
metadata?: object;
|
|
342
872
|
};
|
|
343
873
|
}
|
|
874
|
+
/**
|
|
875
|
+
* The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
|
|
876
|
+
*/
|
|
344
877
|
interface CreateMessageResult extends Result, SamplingMessage {
|
|
878
|
+
/**
|
|
879
|
+
* The name of the model that generated the message.
|
|
880
|
+
*/
|
|
345
881
|
model: string;
|
|
882
|
+
/**
|
|
883
|
+
* The reason why sampling stopped, if known.
|
|
884
|
+
*/
|
|
346
885
|
stopReason?: "endTurn" | "stopSequence" | "maxTokens" | string;
|
|
347
886
|
}
|
|
887
|
+
/**
|
|
888
|
+
* Describes a message issued to or received from an LLM API.
|
|
889
|
+
*/
|
|
348
890
|
interface SamplingMessage {
|
|
349
891
|
role: Role;
|
|
350
892
|
content: TextContent | ImageContent | AudioContent;
|
|
351
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
|
|
896
|
+
*/
|
|
352
897
|
interface Annotations {
|
|
898
|
+
/**
|
|
899
|
+
* Describes who the intended customer of this object or data is.
|
|
900
|
+
*
|
|
901
|
+
* It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
|
|
902
|
+
*/
|
|
353
903
|
audience?: Role[];
|
|
904
|
+
/**
|
|
905
|
+
* Describes how important this data is for operating the server.
|
|
906
|
+
*
|
|
907
|
+
* A value of 1 means "most important," and indicates that the data is
|
|
908
|
+
* effectively required, while 0 means "least important," and indicates that
|
|
909
|
+
* the data is entirely optional.
|
|
910
|
+
*
|
|
911
|
+
* @TJS-type number
|
|
912
|
+
* @minimum 0
|
|
913
|
+
* @maximum 1
|
|
914
|
+
*/
|
|
354
915
|
priority?: number;
|
|
916
|
+
/**
|
|
917
|
+
* The moment the resource was last modified, as an ISO 8601 formatted string.
|
|
918
|
+
*
|
|
919
|
+
* Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
|
|
920
|
+
*
|
|
921
|
+
* Examples: last activity timestamp in an open file, timestamp when the resource
|
|
922
|
+
* was attached, etc.
|
|
923
|
+
*/
|
|
355
924
|
lastModified?: string;
|
|
356
925
|
}
|
|
926
|
+
/** */
|
|
357
927
|
type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;
|
|
928
|
+
/**
|
|
929
|
+
* Text provided to or from an LLM.
|
|
930
|
+
*/
|
|
358
931
|
interface TextContent {
|
|
359
932
|
type: "text";
|
|
933
|
+
/**
|
|
934
|
+
* The text content of the message.
|
|
935
|
+
*/
|
|
360
936
|
text: string;
|
|
937
|
+
/**
|
|
938
|
+
* Optional annotations for the client.
|
|
939
|
+
*/
|
|
361
940
|
annotations?: Annotations;
|
|
941
|
+
/**
|
|
942
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
943
|
+
*/
|
|
362
944
|
_meta?: {
|
|
363
945
|
[key: string]: unknown;
|
|
364
946
|
};
|
|
365
947
|
}
|
|
948
|
+
/**
|
|
949
|
+
* An image provided to or from an LLM.
|
|
950
|
+
*/
|
|
366
951
|
interface ImageContent {
|
|
367
952
|
type: "image";
|
|
953
|
+
/**
|
|
954
|
+
* The base64-encoded image data.
|
|
955
|
+
*
|
|
956
|
+
* @format byte
|
|
957
|
+
*/
|
|
368
958
|
data: string;
|
|
959
|
+
/**
|
|
960
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
961
|
+
*/
|
|
369
962
|
mimeType: string;
|
|
963
|
+
/**
|
|
964
|
+
* Optional annotations for the client.
|
|
965
|
+
*/
|
|
370
966
|
annotations?: Annotations;
|
|
967
|
+
/**
|
|
968
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
969
|
+
*/
|
|
371
970
|
_meta?: {
|
|
372
971
|
[key: string]: unknown;
|
|
373
972
|
};
|
|
374
973
|
}
|
|
974
|
+
/**
|
|
975
|
+
* Audio provided to or from an LLM.
|
|
976
|
+
*/
|
|
375
977
|
interface AudioContent {
|
|
376
978
|
type: "audio";
|
|
979
|
+
/**
|
|
980
|
+
* The base64-encoded audio data.
|
|
981
|
+
*
|
|
982
|
+
* @format byte
|
|
983
|
+
*/
|
|
377
984
|
data: string;
|
|
985
|
+
/**
|
|
986
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
987
|
+
*/
|
|
378
988
|
mimeType: string;
|
|
989
|
+
/**
|
|
990
|
+
* Optional annotations for the client.
|
|
991
|
+
*/
|
|
379
992
|
annotations?: Annotations;
|
|
993
|
+
/**
|
|
994
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
995
|
+
*/
|
|
380
996
|
_meta?: {
|
|
381
997
|
[key: string]: unknown;
|
|
382
998
|
};
|
|
383
999
|
}
|
|
1000
|
+
/**
|
|
1001
|
+
* The server's preferences for model selection, requested of the client during sampling.
|
|
1002
|
+
*
|
|
1003
|
+
* Because LLMs can vary along multiple dimensions, choosing the "best" model is
|
|
1004
|
+
* rarely straightforward. Different models excel in different areas-some are
|
|
1005
|
+
* faster but less capable, others are more capable but more expensive, and so
|
|
1006
|
+
* on. This interface allows servers to express their priorities across multiple
|
|
1007
|
+
* dimensions to help clients make an appropriate selection for their use case.
|
|
1008
|
+
*
|
|
1009
|
+
* These preferences are always advisory. The client MAY ignore them. It is also
|
|
1010
|
+
* up to the client to decide how to interpret these preferences and how to
|
|
1011
|
+
* balance them against other considerations.
|
|
1012
|
+
*/
|
|
384
1013
|
interface ModelPreferences {
|
|
1014
|
+
/**
|
|
1015
|
+
* Optional hints to use for model selection.
|
|
1016
|
+
*
|
|
1017
|
+
* If multiple hints are specified, the client MUST evaluate them in order
|
|
1018
|
+
* (such that the first match is taken).
|
|
1019
|
+
*
|
|
1020
|
+
* The client SHOULD prioritize these hints over the numeric priorities, but
|
|
1021
|
+
* MAY still use the priorities to select from ambiguous matches.
|
|
1022
|
+
*/
|
|
385
1023
|
hints?: ModelHint[];
|
|
1024
|
+
/**
|
|
1025
|
+
* How much to prioritize cost when selecting a model. A value of 0 means cost
|
|
1026
|
+
* is not important, while a value of 1 means cost is the most important
|
|
1027
|
+
* factor.
|
|
1028
|
+
*
|
|
1029
|
+
* @TJS-type number
|
|
1030
|
+
* @minimum 0
|
|
1031
|
+
* @maximum 1
|
|
1032
|
+
*/
|
|
386
1033
|
costPriority?: number;
|
|
1034
|
+
/**
|
|
1035
|
+
* How much to prioritize sampling speed (latency) when selecting a model. A
|
|
1036
|
+
* value of 0 means speed is not important, while a value of 1 means speed is
|
|
1037
|
+
* the most important factor.
|
|
1038
|
+
*
|
|
1039
|
+
* @TJS-type number
|
|
1040
|
+
* @minimum 0
|
|
1041
|
+
* @maximum 1
|
|
1042
|
+
*/
|
|
387
1043
|
speedPriority?: number;
|
|
1044
|
+
/**
|
|
1045
|
+
* How much to prioritize intelligence and capabilities when selecting a
|
|
1046
|
+
* model. A value of 0 means intelligence is not important, while a value of 1
|
|
1047
|
+
* means intelligence is the most important factor.
|
|
1048
|
+
*
|
|
1049
|
+
* @TJS-type number
|
|
1050
|
+
* @minimum 0
|
|
1051
|
+
* @maximum 1
|
|
1052
|
+
*/
|
|
388
1053
|
intelligencePriority?: number;
|
|
389
1054
|
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Hints to use for model selection.
|
|
1057
|
+
*
|
|
1058
|
+
* Keys not declared here are currently left unspecified by the spec and are up
|
|
1059
|
+
* to the client to interpret.
|
|
1060
|
+
*/
|
|
390
1061
|
interface ModelHint {
|
|
1062
|
+
/**
|
|
1063
|
+
* A hint for a model name.
|
|
1064
|
+
*
|
|
1065
|
+
* The client SHOULD treat this as a substring of a model name; for example:
|
|
1066
|
+
* - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`
|
|
1067
|
+
* - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.
|
|
1068
|
+
* - `claude` should match any Claude model
|
|
1069
|
+
*
|
|
1070
|
+
* The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example:
|
|
1071
|
+
* - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
|
|
1072
|
+
*/
|
|
391
1073
|
name?: string;
|
|
392
1074
|
}
|
|
1075
|
+
/**
|
|
1076
|
+
* A request from the client to the server, to ask for completion options.
|
|
1077
|
+
*/
|
|
393
1078
|
interface CompleteRequest extends Request {
|
|
394
1079
|
method: "completion/complete";
|
|
395
1080
|
params: {
|
|
396
1081
|
ref: PromptReference | ResourceTemplateReference;
|
|
1082
|
+
/**
|
|
1083
|
+
* The argument's information
|
|
1084
|
+
*/
|
|
397
1085
|
argument: {
|
|
1086
|
+
/**
|
|
1087
|
+
* The name of the argument
|
|
1088
|
+
*/
|
|
398
1089
|
name: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* The value of the argument to use for completion matching.
|
|
1092
|
+
*/
|
|
399
1093
|
value: string;
|
|
400
1094
|
};
|
|
1095
|
+
/**
|
|
1096
|
+
* Additional, optional context for completions
|
|
1097
|
+
*/
|
|
401
1098
|
context?: {
|
|
1099
|
+
/**
|
|
1100
|
+
* Previously-resolved variables in a URI template or prompt.
|
|
1101
|
+
*/
|
|
402
1102
|
arguments?: {
|
|
403
1103
|
[key: string]: string;
|
|
404
1104
|
};
|
|
405
1105
|
};
|
|
406
1106
|
};
|
|
407
1107
|
}
|
|
1108
|
+
/**
|
|
1109
|
+
* The server's response to a completion/complete request
|
|
1110
|
+
*/
|
|
408
1111
|
interface CompleteResult extends Result {
|
|
409
1112
|
completion: {
|
|
1113
|
+
/**
|
|
1114
|
+
* An array of completion values. Must not exceed 100 items.
|
|
1115
|
+
*/
|
|
410
1116
|
values: string[];
|
|
1117
|
+
/**
|
|
1118
|
+
* The total number of completion options available. This can exceed the number of values actually sent in the response.
|
|
1119
|
+
*/
|
|
411
1120
|
total?: number;
|
|
1121
|
+
/**
|
|
1122
|
+
* Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
|
|
1123
|
+
*/
|
|
412
1124
|
hasMore?: boolean;
|
|
413
1125
|
};
|
|
414
1126
|
}
|
|
1127
|
+
/**
|
|
1128
|
+
* A reference to a resource or resource template definition.
|
|
1129
|
+
*/
|
|
415
1130
|
interface ResourceTemplateReference {
|
|
416
1131
|
type: "ref/resource";
|
|
1132
|
+
/**
|
|
1133
|
+
* The URI or URI template of the resource.
|
|
1134
|
+
*
|
|
1135
|
+
* @format uri-template
|
|
1136
|
+
*/
|
|
417
1137
|
uri: string;
|
|
418
1138
|
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Identifies a prompt.
|
|
1141
|
+
*/
|
|
419
1142
|
interface PromptReference extends BaseMetadata {
|
|
420
1143
|
type: "ref/prompt";
|
|
421
1144
|
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Sent from the server to request a list of root URIs from the client. Roots allow
|
|
1147
|
+
* servers to ask for specific directories or files to operate on. A common example
|
|
1148
|
+
* for roots is providing a set of repositories or directories a server should operate
|
|
1149
|
+
* on.
|
|
1150
|
+
*
|
|
1151
|
+
* This request is typically used when the server needs to understand the file system
|
|
1152
|
+
* structure or access specific locations that the client has permission to read from.
|
|
1153
|
+
*/
|
|
422
1154
|
interface ListRootsRequest extends Request {
|
|
423
1155
|
method: "roots/list";
|
|
424
1156
|
}
|
|
1157
|
+
/**
|
|
1158
|
+
* The client's response to a roots/list request from the server.
|
|
1159
|
+
* This result contains an array of Root objects, each representing a root directory
|
|
1160
|
+
* or file that the server can operate on.
|
|
1161
|
+
*/
|
|
425
1162
|
interface ListRootsResult extends Result {
|
|
426
1163
|
roots: Root[];
|
|
427
1164
|
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Represents a root directory or file that the server can operate on.
|
|
1167
|
+
*/
|
|
428
1168
|
interface Root {
|
|
1169
|
+
/**
|
|
1170
|
+
* The URI identifying the root. This *must* start with file:// for now.
|
|
1171
|
+
* This restriction may be relaxed in future versions of the protocol to allow
|
|
1172
|
+
* other URI schemes.
|
|
1173
|
+
*
|
|
1174
|
+
* @format uri
|
|
1175
|
+
*/
|
|
429
1176
|
uri: string;
|
|
1177
|
+
/**
|
|
1178
|
+
* An optional name for the root. This can be used to provide a human-readable
|
|
1179
|
+
* identifier for the root, which may be useful for display purposes or for
|
|
1180
|
+
* referencing the root in other parts of the application.
|
|
1181
|
+
*/
|
|
430
1182
|
name?: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* See [specification/2025-06-18/basic/index#general-fields] for notes on _meta usage.
|
|
1185
|
+
*/
|
|
431
1186
|
_meta?: {
|
|
432
1187
|
[key: string]: unknown;
|
|
433
1188
|
};
|
|
434
1189
|
}
|
|
1190
|
+
/**
|
|
1191
|
+
* A notification from the client to the server, informing it that the list of roots has changed.
|
|
1192
|
+
* This notification should be sent whenever the client adds, removes, or modifies any root.
|
|
1193
|
+
* The server should then request an updated list of roots using the ListRootsRequest.
|
|
1194
|
+
*/
|
|
435
1195
|
interface RootsListChangedNotification extends Notification {
|
|
436
1196
|
method: "notifications/roots/list_changed";
|
|
437
1197
|
}
|
|
1198
|
+
/**
|
|
1199
|
+
* A request from the server to elicit additional information from the user via the client.
|
|
1200
|
+
*/
|
|
438
1201
|
interface ElicitRequest extends Request {
|
|
439
1202
|
method: "elicitation/create";
|
|
440
1203
|
params: {
|
|
1204
|
+
/**
|
|
1205
|
+
* The message to present to the user.
|
|
1206
|
+
*/
|
|
441
1207
|
message: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* A restricted subset of JSON Schema.
|
|
1210
|
+
* Only top-level properties are allowed, without nesting.
|
|
1211
|
+
*/
|
|
442
1212
|
requestedSchema: {
|
|
443
1213
|
type: "object";
|
|
444
1214
|
properties: {
|
|
@@ -448,6 +1218,10 @@ export declare namespace MCP {
|
|
|
448
1218
|
};
|
|
449
1219
|
};
|
|
450
1220
|
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Restricted schema definitions that only allow primitive types
|
|
1223
|
+
* without nested objects or arrays.
|
|
1224
|
+
*/
|
|
451
1225
|
type PrimitiveSchemaDefinition = StringSchema | NumberSchema | BooleanSchema | EnumSchema;
|
|
452
1226
|
interface StringSchema {
|
|
453
1227
|
type: "string";
|
|
@@ -477,8 +1251,21 @@ export declare namespace MCP {
|
|
|
477
1251
|
enum: string[];
|
|
478
1252
|
enumNames?: string[];
|
|
479
1253
|
}
|
|
1254
|
+
/**
|
|
1255
|
+
* The client's response to an elicitation request.
|
|
1256
|
+
*/
|
|
480
1257
|
interface ElicitResult extends Result {
|
|
1258
|
+
/**
|
|
1259
|
+
* The user action in response to the elicitation.
|
|
1260
|
+
* - "accept": User submitted the form/confirmed the action
|
|
1261
|
+
* - "decline": User explicitly declined the action
|
|
1262
|
+
* - "cancel": User dismissed without making an explicit choice
|
|
1263
|
+
*/
|
|
481
1264
|
action: "accept" | "decline" | "cancel";
|
|
1265
|
+
/**
|
|
1266
|
+
* The submitted form data, only present when action is "accept".
|
|
1267
|
+
* Contains values matching the requested schema.
|
|
1268
|
+
*/
|
|
482
1269
|
content?: {
|
|
483
1270
|
[key: string]: string | number | boolean;
|
|
484
1271
|
};
|