@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/react.mjs
CHANGED
|
@@ -335,7 +335,9 @@ var HAEXTENSION_EVENTS = {
|
|
|
335
335
|
/** Context (theme, locale, platform) has changed */
|
|
336
336
|
CONTEXT_CHANGED: "haextension:context:changed",
|
|
337
337
|
/** Search request from HaexHub */
|
|
338
|
-
SEARCH_REQUEST: "haextension:search:request"
|
|
338
|
+
SEARCH_REQUEST: "haextension:search:request",
|
|
339
|
+
/** File system change detected (from native file watcher) */
|
|
340
|
+
FILE_CHANGED: "filesync:file-changed"
|
|
339
341
|
};
|
|
340
342
|
var EXTERNAL_EVENTS = {
|
|
341
343
|
/** External request from authorized client */
|
|
@@ -459,7 +461,14 @@ var FILESYSTEM_COMMANDS = {
|
|
|
459
461
|
/** Rename file or directory */
|
|
460
462
|
rename: "extension_filesystem_rename",
|
|
461
463
|
/** Copy file or directory */
|
|
462
|
-
copy: "extension_filesystem_copy"
|
|
464
|
+
copy: "extension_filesystem_copy",
|
|
465
|
+
// File watcher operations
|
|
466
|
+
/** Start watching a directory for changes */
|
|
467
|
+
watch: "extension_filesystem_watch",
|
|
468
|
+
/** Stop watching a directory */
|
|
469
|
+
unwatch: "extension_filesystem_unwatch",
|
|
470
|
+
/** Check if a directory is being watched */
|
|
471
|
+
isWatching: "extension_filesystem_is_watching"
|
|
463
472
|
};
|
|
464
473
|
|
|
465
474
|
// src/commands/externalBridge.ts
|
|
@@ -826,6 +835,42 @@ var FilesystemAPI = class {
|
|
|
826
835
|
{ from, to }
|
|
827
836
|
);
|
|
828
837
|
}
|
|
838
|
+
// ==========================================================================
|
|
839
|
+
// File Watcher Operations
|
|
840
|
+
// ==========================================================================
|
|
841
|
+
/**
|
|
842
|
+
* Start watching a directory for file changes
|
|
843
|
+
* When files change, the "filesync:file-changed" event is emitted
|
|
844
|
+
* @param ruleId Unique identifier for this watch (e.g., sync rule ID)
|
|
845
|
+
* @param path Absolute path to the directory to watch
|
|
846
|
+
*/
|
|
847
|
+
async watch(ruleId, path) {
|
|
848
|
+
await this.client.request(
|
|
849
|
+
FILESYSTEM_COMMANDS.watch,
|
|
850
|
+
{ ruleId, path }
|
|
851
|
+
);
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Stop watching a directory
|
|
855
|
+
* @param ruleId The rule ID that was used when starting the watch
|
|
856
|
+
*/
|
|
857
|
+
async unwatch(ruleId) {
|
|
858
|
+
await this.client.request(
|
|
859
|
+
FILESYSTEM_COMMANDS.unwatch,
|
|
860
|
+
{ ruleId }
|
|
861
|
+
);
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Check if a directory is currently being watched
|
|
865
|
+
* @param ruleId The rule ID to check
|
|
866
|
+
* @returns True if the directory is being watched
|
|
867
|
+
*/
|
|
868
|
+
async isWatching(ruleId) {
|
|
869
|
+
return this.client.request(
|
|
870
|
+
FILESYSTEM_COMMANDS.isWatching,
|
|
871
|
+
{ ruleId }
|
|
872
|
+
);
|
|
873
|
+
}
|
|
829
874
|
};
|
|
830
875
|
|
|
831
876
|
// src/api/web.ts
|