@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.
@@ -985,7 +985,13 @@ function SidebarComponent(props) {
985
985
  }
986
986
  else if (response.type === BackendMessageType.RunUICommand) {
987
987
  const messageId = response.id;
988
- const result = await app.commands.execute(response.data.commandId, response.data.args);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notebook-intelligence/notebook-intelligence",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "AI coding assistant for JupyterLab",
5
5
  "keywords": [
6
6
  "AI",
@@ -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
- const result = await app.commands.execute(
1518
- response.data.commandId,
1519
- response.data.args
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,