getappmap / appmap-intellij-plugin

MIT License
38 stars 9 forks source link

Update recording instructions to latest version #737

Closed dustinbyrne closed 4 months ago

dustinbyrne commented 4 months ago

The latest recording instructions emit, at the root, an event named submit-to-navie. Upon receiving this message, a Navie chat should be opened and a prompt automatically submitted. The shape of the first (and only) argument is as follows:

{
  label: string;
  prompt: string;
};

Submit prompt as the prompt and add a user message containing label.

Below is an example implementation in Visual Studio Code.

The submit-to-navie event is forwarded from the frontend to the backend extension. https://github.com/getappmap/vscode-appland/blob/master/web/src/installGuideView.js#L96-L98

The message is handled by the backend extension. https://github.com/getappmap/vscode-appland/blob/master/src/webviews/installGuideWebview.ts#L175-L182

The Navie webview can now optionally ingest a prompt suggestion https://github.com/getappmap/vscode-appland/blob/master/src/webviews/chatSearchWebview.ts#L24

The prompt suggestion is forwarded to the Navie frontend if available https://github.com/getappmap/vscode-appland/blob/master/src/webviews/chatSearchWebview.ts#L130

The prompt suggestion is consumed by the frontend if it is available https://github.com/getappmap/vscode-appland/blob/master/web/src/chatSearchView.js#L48-L51

appland-release commented 4 months ago

:tada: This issue has been resolved in version 0.70.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: