@notebook-intelligence/notebook-intelligence 4.1.1 → 4.1.2
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/lib/chat-sidebar.js +7 -1
- package/package.json +1 -1
- package/src/chat-sidebar.tsx +9 -4
package/lib/chat-sidebar.js
CHANGED
|
@@ -985,7 +985,13 @@ function SidebarComponent(props) {
|
|
|
985
985
|
}
|
|
986
986
|
else if (response.type === BackendMessageType.RunUICommand) {
|
|
987
987
|
const messageId = response.id;
|
|
988
|
-
|
|
988
|
+
let result = 'void';
|
|
989
|
+
try {
|
|
990
|
+
result = await app.commands.execute(response.data.commandId, response.data.args);
|
|
991
|
+
}
|
|
992
|
+
catch (error) {
|
|
993
|
+
result = `Error executing command: ${error}`;
|
|
994
|
+
}
|
|
989
995
|
const data = {
|
|
990
996
|
callback_id: response.data.callback_id,
|
|
991
997
|
result: result || 'void'
|
package/package.json
CHANGED
package/src/chat-sidebar.tsx
CHANGED
|
@@ -1514,10 +1514,15 @@ function SidebarComponent(props: any) {
|
|
|
1514
1514
|
});
|
|
1515
1515
|
} else if (response.type === BackendMessageType.RunUICommand) {
|
|
1516
1516
|
const messageId = response.id;
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1517
|
+
let result = 'void';
|
|
1518
|
+
try {
|
|
1519
|
+
result = await app.commands.execute(
|
|
1520
|
+
response.data.commandId,
|
|
1521
|
+
response.data.args
|
|
1522
|
+
);
|
|
1523
|
+
} catch (error) {
|
|
1524
|
+
result = `Error executing command: ${error}`;
|
|
1525
|
+
}
|
|
1521
1526
|
|
|
1522
1527
|
const data = {
|
|
1523
1528
|
callback_id: response.data.callback_id,
|