Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws/language-server-runtimes

Package Overview
Dependencies
Maintainers
8
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws/language-server-runtimes - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

8

package.json
{
"name": "@aws/language-server-runtimes",
"version": "0.2.5",
"version": "0.2.6",
"description": "Runtimes to host Language Servers for AWS",

@@ -38,3 +38,3 @@ "files": [

"@aws/language-server-runtimes-types": "0.x.x",
"jose": "^5.2.3",
"jose": "^5.3.0",
"rxjs": "^7.8.1",

@@ -46,7 +46,7 @@ "vscode-languageserver": "^9.0.1",

"@types/mocha": "^10.0.1",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"assert": "^2.0.0",
"husky": "^9.0.11",
"prettier": "3.2.5",
"sinon": "^17.0.1",
"sinon": "^17.0.2",
"ts-mocha": "^10.0.0",

@@ -53,0 +53,0 @@ "ts-sinon": "^2.0.2",

import { ChatParams, ChatResult, EndChatParams, FeedbackParams, FollowUpClickParams, InfoLinkClickParams, InsertToCursorPositionParams, LinkClickParams, QuickActionParams, SourceLinkClickParams, TabAddParams, TabChangeParams, TabRemoveParams, ProtocolNotificationType, ProtocolRequestType, ProgressToken } from './lsp';
/**
* Configuration object for chat quick action.
*/
export interface QuickActionCommand {
command: string;
disabled?: boolean;
description?: string;
placeholder?: string;
}
/**
* Configuration object for registering chat quick actions groups.
*/
export interface QuickActionCommandGroup {
groupName?: string;
commands: QuickActionCommand[];
}
/**
* Registration options for a Chat QuickActionRequest.
*/
export interface QuickActionsOptions {
/**
* The chat quick actions groupd and commands to be executed on server.
*/
quickActionsCommandGroups: QuickActionCommandGroup[];
}
export interface ChatRequest extends ChatParams {

@@ -3,0 +28,0 @@ partialResultToken?: ProgressToken;

@@ -5,15 +5,15 @@ "use strict";

const lsp_1 = require("./lsp");
exports.chatRequestType = new lsp_1.ProtocolRequestType('aws/chat/sendChatPrompt');
exports.endChatRequestType = new lsp_1.ProtocolRequestType('aws/chat/endChat');
exports.quickActionRequestType = new lsp_1.ProtocolRequestType('aws/chat/sendChatQuickAction');
exports.readyNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/ready');
exports.feedbackNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/feedback');
exports.tabAddNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/tabAdd');
exports.tabChangeNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/tabChange');
exports.tabRemoveNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/tabRemove');
exports.insertToCursorPositionNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/insertToCursorPosition');
exports.linkClickNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/linkClick');
exports.infoLinkClickNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/infoLinkClick');
exports.sourceLinkClickNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/sourceLinkClick');
exports.followUpClickNotificationType = new lsp_1.ProtocolNotificationType('aws/chat/followUpClick');
exports.chatRequestType = new lsp_1.ProtocolRequestType(lsp_1.CHAT_REQUEST_METHOD);
exports.endChatRequestType = new lsp_1.ProtocolRequestType(lsp_1.END_CHAT_REQUEST_METHOD);
exports.quickActionRequestType = new lsp_1.ProtocolRequestType(lsp_1.QUICK_ACTION_REQUEST_METHOD);
exports.readyNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.READY_NOTIFICATION_METHOD);
exports.feedbackNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.FEEDBACK_NOTIFICATION_METHOD);
exports.tabAddNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.TAB_ADD_NOTIFICATION_METHOD);
exports.tabChangeNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.TAB_CHANGE_NOTIFICATION_METHOD);
exports.tabRemoveNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.TAB_REMOVE_NOTIFICATION_METHOD);
exports.insertToCursorPositionNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.INSERT_TO_CURSOR_POSITION_NOTIFICATION_METHOD);
exports.linkClickNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.LINK_CLICK_NOTIFICATION_METHOD);
exports.infoLinkClickNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.INFO_LINK_CLICK_NOTIFICATION_METHOD);
exports.sourceLinkClickNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.SOURCE_LINK_CLICK_NOTIFICATION_METHOD);
exports.followUpClickNotificationType = new lsp_1.ProtocolNotificationType(lsp_1.FOLLOW_UP_CLICK_NOTIFICATION_METHOD);
//# sourceMappingURL=chat.js.map

@@ -1,8 +0,9 @@

import { ProgressType, RegistrationType, RequestType } from 'vscode-languageserver-protocol';
import { _EM } from 'vscode-jsonrpc';
import { InitializeResult as InitializeResultBase, ProgressType, RegistrationType, RequestType } from 'vscode-languageserver-protocol';
import { QuickActionsOptions } from './chat';
export * from '@aws/language-server-runtimes-types';
export { TextDocument } from 'vscode-languageserver-textdocument';
export * from 'vscode-languageserver-protocol';
export * from './inlineCompletionWithReferences';
export * from './inlineCompletions';
export * from './inlineCompletionWithReferences';
export declare class AutoParameterStructuresProtocolRequestType<P, R, PR, E, RO> extends RequestType<P, R, E> implements ProgressType<PR>, RegistrationType<RO> {

@@ -18,1 +19,15 @@ /**

}
/**
* Custom AWS Runtimes InitializeResult object interface with extended options.
*/
export interface InitializeResult extends InitializeResultBase {
/**
* The server signals custom AWS Runtimes capabilities it supports.
*/
awsServerCapabilities?: {
/**
* The server provides quick actions support.
*/
chatQuickActionsProvider?: QuickActionsOptions;
};
}

@@ -29,4 +29,4 @@ "use strict";

// Custom Runtimes LSP extensions
__exportStar(require("./inlineCompletionWithReferences"), exports);
__exportStar(require("./inlineCompletions"), exports);
__exportStar(require("./inlineCompletionWithReferences"), exports);
// AutoParameterStructuresProtocolRequestType allows ParameterStructures both by-name and by-position

@@ -33,0 +33,0 @@ class AutoParameterStructuresProtocolRequestType extends vscode_languageserver_protocol_1.RequestType {

@@ -1,2 +0,2 @@

import { CompletionItem, CompletionList, InlineCompletionItem, CompletionParams, DidChangeConfigurationParams, DidChangeTextDocumentParams, DidCloseTextDocumentParams, ExecuteCommandParams, Hover, HoverParams, InitializeError, InitializeParams, InitializedParams, InlineCompletionList, InlineCompletionParams, NotificationHandler, PublishDiagnosticsParams, ServerCapabilities, InlineCompletionItemWithReferences, InlineCompletionListWithReferences, LogInlineCompletionSessionResultsParams, RequestHandler, DidOpenTextDocumentParams, DocumentFormattingParams, TextEdit, ProgressType, ProgressToken, DidChangeWorkspaceFoldersParams } from '../protocol';
import { CompletionItem, CompletionList, CompletionParams, DidChangeConfigurationParams, DidChangeTextDocumentParams, DidChangeWorkspaceFoldersParams, DidCloseTextDocumentParams, DidOpenTextDocumentParams, DocumentFormattingParams, ExecuteCommandParams, Hover, HoverParams, InitializeError, InitializeParams, InitializedParams, InlineCompletionItem, InlineCompletionItemWithReferences, InlineCompletionList, InlineCompletionListWithReferences, InlineCompletionParams, LogInlineCompletionSessionResultsParams, NotificationHandler, ProgressToken, ProgressType, PublishDiagnosticsParams, QuickActionsOptions, RequestHandler, ServerCapabilities, TextEdit } from '../protocol';
export * from '../protocol/lsp';

@@ -6,2 +6,5 @@ export type PartialServerCapabilities<T = any> = Pick<ServerCapabilities<T>, 'completionProvider' | 'hoverProvider' | 'executeCommandProvider'>;

capabilities: PartialServerCapabilities<T>;
awsServerCapabilities?: {
chatQuickActionsProvider?: QuickActionsOptions;
};
};

@@ -8,0 +11,0 @@ export type Lsp = {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc