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