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 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:Submit
prompt
as the prompt and add a user message containinglabel
.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-L98The 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