@haex-space/vault-sdk 2.5.10 → 2.5.12

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.
@@ -955,8 +955,8 @@ var TAURI_COMMANDS = {
955
955
  showImage: "webview_extension_fs_show_image"
956
956
  },
957
957
  external: {
958
- // Response handling (called by extensions)
959
- respond: "external_respond"},
958
+ // Response handling (called by extensions running in WebView)
959
+ respond: "webview_extension_external_respond"},
960
960
  filesync: {
961
961
  // Spaces
962
962
  listSpaces: "filesync_list_spaces",
@@ -1089,12 +1089,9 @@ var externalHandlers = {
1089
1089
  command: TAURI_COMMANDS.external.respond,
1090
1090
  args: (p) => ({
1091
1091
  request_id: p.requestId,
1092
- response: {
1093
- request_id: p.requestId,
1094
- success: p.success,
1095
- data: p.data,
1096
- error: p.error
1097
- }
1092
+ success: p.success,
1093
+ data: p.data,
1094
+ error: p.error
1098
1095
  })
1099
1096
  }
1100
1097
  };
@@ -1478,6 +1475,7 @@ async function handleExternalRequest(request, handlers, respond, log) {
1478
1475
  }
1479
1476
  }
1480
1477
  async function respondToExternalRequest(response, request) {
1478
+ console.log("[SDK Debug] respondToExternalRequest called with:", JSON.stringify(response, null, 2));
1481
1479
  await request("external.respond", response);
1482
1480
  }
1483
1481