@haex-space/vault-sdk 2.5.74 → 2.5.76
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/{client-DTXGxFqD.d.mts → client-C0fkm4FE.d.mts} +19 -1
- package/dist/{client-C_0ajqhQ.d.ts → client-C8JtjQzm.d.ts} +19 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +47 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -2
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +47 -2
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +47 -2
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +2 -2
- package/dist/runtime/nuxt.plugin.client.d.ts +2 -2
- package/dist/runtime/nuxt.plugin.client.js +47 -2
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +47 -2
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +2 -2
- package/dist/svelte.d.ts +2 -2
- package/dist/svelte.js +47 -2
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +47 -2
- package/dist/svelte.mjs.map +1 -1
- package/dist/{types-DiXJ5SF6.d.mts → types-CS-ggsXY.d.mts} +19 -1
- package/dist/{types-DiXJ5SF6.d.ts → types-CS-ggsXY.d.ts} +19 -1
- package/dist/vue.d.mts +2 -2
- package/dist/vue.d.ts +2 -2
- package/dist/vue.js +47 -2
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +47 -2
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/svelte.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as HaexVaultSdk, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-C0fkm4FE.mjs';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Readable } from 'svelte/store';
|
|
4
|
-
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-
|
|
4
|
+
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-CS-ggsXY.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Initialize the HaexVault SDK for Svelte
|
package/dist/svelte.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as HaexVaultSdk, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-C8JtjQzm.js';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Readable } from 'svelte/store';
|
|
4
|
-
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-
|
|
4
|
+
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-CS-ggsXY.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Initialize the HaexVault SDK for Svelte
|
package/dist/svelte.js
CHANGED
|
@@ -337,7 +337,9 @@ var HAEXTENSION_EVENTS = {
|
|
|
337
337
|
/** Context (theme, locale, platform) has changed */
|
|
338
338
|
CONTEXT_CHANGED: "haextension:context:changed",
|
|
339
339
|
/** Search request from HaexHub */
|
|
340
|
-
SEARCH_REQUEST: "haextension:search:request"
|
|
340
|
+
SEARCH_REQUEST: "haextension:search:request",
|
|
341
|
+
/** File system change detected (from native file watcher) */
|
|
342
|
+
FILE_CHANGED: "filesync:file-changed"
|
|
341
343
|
};
|
|
342
344
|
var EXTERNAL_EVENTS = {
|
|
343
345
|
/** External request from authorized client */
|
|
@@ -461,7 +463,14 @@ var FILESYSTEM_COMMANDS = {
|
|
|
461
463
|
/** Rename file or directory */
|
|
462
464
|
rename: "extension_filesystem_rename",
|
|
463
465
|
/** Copy file or directory */
|
|
464
|
-
copy: "extension_filesystem_copy"
|
|
466
|
+
copy: "extension_filesystem_copy",
|
|
467
|
+
// File watcher operations
|
|
468
|
+
/** Start watching a directory for changes */
|
|
469
|
+
watch: "extension_filesystem_watch",
|
|
470
|
+
/** Stop watching a directory */
|
|
471
|
+
unwatch: "extension_filesystem_unwatch",
|
|
472
|
+
/** Check if a directory is being watched */
|
|
473
|
+
isWatching: "extension_filesystem_is_watching"
|
|
465
474
|
};
|
|
466
475
|
|
|
467
476
|
// src/commands/externalBridge.ts
|
|
@@ -828,6 +837,42 @@ var FilesystemAPI = class {
|
|
|
828
837
|
{ from, to }
|
|
829
838
|
);
|
|
830
839
|
}
|
|
840
|
+
// ==========================================================================
|
|
841
|
+
// File Watcher Operations
|
|
842
|
+
// ==========================================================================
|
|
843
|
+
/**
|
|
844
|
+
* Start watching a directory for file changes
|
|
845
|
+
* When files change, the "filesync:file-changed" event is emitted
|
|
846
|
+
* @param ruleId Unique identifier for this watch (e.g., sync rule ID)
|
|
847
|
+
* @param path Absolute path to the directory to watch
|
|
848
|
+
*/
|
|
849
|
+
async watch(ruleId, path) {
|
|
850
|
+
await this.client.request(
|
|
851
|
+
FILESYSTEM_COMMANDS.watch,
|
|
852
|
+
{ ruleId, path }
|
|
853
|
+
);
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Stop watching a directory
|
|
857
|
+
* @param ruleId The rule ID that was used when starting the watch
|
|
858
|
+
*/
|
|
859
|
+
async unwatch(ruleId) {
|
|
860
|
+
await this.client.request(
|
|
861
|
+
FILESYSTEM_COMMANDS.unwatch,
|
|
862
|
+
{ ruleId }
|
|
863
|
+
);
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Check if a directory is currently being watched
|
|
867
|
+
* @param ruleId The rule ID to check
|
|
868
|
+
* @returns True if the directory is being watched
|
|
869
|
+
*/
|
|
870
|
+
async isWatching(ruleId) {
|
|
871
|
+
return this.client.request(
|
|
872
|
+
FILESYSTEM_COMMANDS.isWatching,
|
|
873
|
+
{ ruleId }
|
|
874
|
+
);
|
|
875
|
+
}
|
|
831
876
|
};
|
|
832
877
|
|
|
833
878
|
// src/api/web.ts
|