
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
@aws/chat-client
Advanced tools
This package contains a chat client for the Q Language Server, that can be embedded in a webview. It uses MynahUI to render a web based chat interface.
The chat client communicates with the host application (e.g., an IDE extension) through postMessage
requests to the webview:
postMessage
to the host application that rendered the chat clientTo use the chat client, embed it in a webview within your application and handle the postMessage
communication as needed. Chat client is based on inbound (from a destination to the chat client) and outbound events (from the chat client to a destination). Events consist of command
and params
:
interface SomeEvent {
command: string;
params: SomeOptions;
}
Name | Description | command | params |
---|---|---|---|
sendChatPrompt response | Provides response to sendChatPrompt request | aws/chat/sendChatPrompt | ChatResult |
openTab request | Request to open tab (creates tab if no tabId provided) | aws/chat/openTab | requestID - ID shared between the webview and vscode client, OpenTabParams |
sendToPrompt | Request to send selection to prompt | sendToPrompt | SendToPromptParams |
genericCommand | Request to execute generic command | genericCommand | GenericCommandParams |
errorMessage | Request to show error in chat UI | errorMessage | ErrorParams |
chatOptions | Configures chat startup options | chatOptions | ChatOptions |
Name | Description | command | params |
---|---|---|---|
openTab response | Provides response to openTab request | aws/chat/openTab | requestID - ID shared between the webview and vscode client, UiMessageResultParams with result of type OpenTabResult |
disclaimerAcknowledged | Notifies destination that legal disclaimer was acknowlegded by a user | disclaimerAcknowledged | N/A |
TODO: Provide full list of events
Configuration can be passed as an explicit parameter when creating chat inside of webview, for example:
amazonQChat.createChat(acquireVsCodeApi(), configuration);
Configuration values:
// Configures quick actions
quickActionCommands?: QuickActionCommandGroup[]
// Configures chat client not to show legal disclaimer as it has already been acknowledged before
disclaimerAcknowledged?: boolean
FAQs
AWS Chat Client
The npm package @aws/chat-client receives a total of 4,697 weekly downloads. As such, @aws/chat-client popularity was classified as popular.
We found that @aws/chat-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.