@haex-space/vault-sdk 2.5.65 → 2.5.68

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/dist/svelte.js CHANGED
@@ -398,6 +398,16 @@ var DATABASE_COMMANDS = {
398
398
  registerMigrations: "extension_database_register_migrations"
399
399
  };
400
400
 
401
+ // src/commands/permissions.ts
402
+ var PERMISSIONS_COMMANDS = {
403
+ /** Check web/fetch permission */
404
+ checkWeb: "extension_permissions_check_web",
405
+ /** Check database permission */
406
+ checkDatabase: "extension_permissions_check_database",
407
+ /** Check filesystem permission */
408
+ checkFilesystem: "extension_permissions_check_filesystem"
409
+ };
410
+
401
411
  // src/commands/web.ts
402
412
  var WEB_COMMANDS = {
403
413
  /** Open URL in external browser */
@@ -454,6 +464,12 @@ var FILESYSTEM_COMMANDS = {
454
464
  copy: "extension_filesystem_copy"
455
465
  };
456
466
 
467
+ // src/commands/externalBridge.ts
468
+ var EXTERNAL_BRIDGE_COMMANDS = {
469
+ // Response handling (called by extensions running in WebView)
470
+ /** Respond to an external request */
471
+ respond: "webview_extension_external_respond"};
472
+
457
473
  // src/commands/extension.ts
458
474
  var EXTENSION_COMMANDS = {
459
475
  /** Get application context (theme, locale, etc.) */
@@ -935,7 +951,7 @@ var PermissionsAPI = class {
935
951
  */
936
952
  async checkDatabaseAsync(resource, operation) {
937
953
  const response = await this.client.request(
938
- "permissions.database.check",
954
+ PERMISSIONS_COMMANDS.checkDatabase,
939
955
  {
940
956
  resource,
941
957
  operation
@@ -951,7 +967,7 @@ var PermissionsAPI = class {
951
967
  */
952
968
  async checkWebAsync(url) {
953
969
  const response = await this.client.request(
954
- "permissions.web.check",
970
+ PERMISSIONS_COMMANDS.checkWeb,
955
971
  {
956
972
  url
957
973
  }
@@ -966,7 +982,7 @@ var PermissionsAPI = class {
966
982
  */
967
983
  async checkFilesystemAsync(path, operation) {
968
984
  const response = await this.client.request(
969
- "permissions.filesystem.check",
985
+ PERMISSIONS_COMMANDS.checkFilesystem,
970
986
  {
971
987
  path,
972
988
  operation
@@ -1541,7 +1557,7 @@ async function handleExternalRequest(request, handlers, respond, log) {
1541
1557
  }
1542
1558
  async function respondToExternalRequest(response, request) {
1543
1559
  console.log("[SDK Debug] respondToExternalRequest called with:", JSON.stringify(response, null, 2));
1544
- await request("external.respond", response);
1560
+ await request(EXTERNAL_BRIDGE_COMMANDS.respond, response);
1545
1561
  }
1546
1562
 
1547
1563
  // src/client.ts