@haex-space/vault-sdk 2.6.0 → 2.6.3
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-Bl2s5tIZ.d.ts → client-BW9GSwtY.d.ts} +2 -1
- package/dist/{client-B_S7ntUI.d.mts → client-Cgt1hI4U.d.mts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +30 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -2
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +36 -2
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +36 -2
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +1 -1
- package/dist/runtime/nuxt.plugin.client.d.ts +1 -1
- package/dist/runtime/nuxt.plugin.client.js +36 -2
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +36 -2
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +36 -2
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +36 -2
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +36 -2
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +36 -2
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/vue.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HaexVaultSdk, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-Cgt1hI4U.mjs';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { H as HaexHubConfig } from './types-B1O6KckK.mjs';
|
package/dist/vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HaexVaultSdk, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-BW9GSwtY.js';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { H as HaexHubConfig } from './types-B1O6KckK.js';
|
package/dist/vue.js
CHANGED
|
@@ -389,6 +389,12 @@ var EXTERNAL_EVENTS = {
|
|
|
389
389
|
/** New external client requesting authorization */
|
|
390
390
|
AUTHORIZATION_REQUEST: "external:authorization-request"
|
|
391
391
|
};
|
|
392
|
+
var SHELL_EVENTS = {
|
|
393
|
+
/** PTY output data from a shell session */
|
|
394
|
+
OUTPUT: "shell:output",
|
|
395
|
+
/** Shell session has exited */
|
|
396
|
+
EXIT: "shell:exit"
|
|
397
|
+
};
|
|
392
398
|
|
|
393
399
|
// src/types.ts
|
|
394
400
|
var DEFAULT_TIMEOUT = 3e4;
|
|
@@ -1504,11 +1510,10 @@ var ShellAPI = class {
|
|
|
1504
1510
|
* Listen for shell output via `sdk.shell.onData()`.
|
|
1505
1511
|
*/
|
|
1506
1512
|
async create(options = {}) {
|
|
1507
|
-
|
|
1513
|
+
return await this.sdk.request(
|
|
1508
1514
|
SHELL_COMMANDS.create,
|
|
1509
1515
|
{ options }
|
|
1510
1516
|
);
|
|
1511
|
-
return result.sessionId;
|
|
1512
1517
|
}
|
|
1513
1518
|
/**
|
|
1514
1519
|
* Write data to a shell session's stdin.
|
|
@@ -1755,6 +1760,35 @@ async function setupTauriEventListeners(ctx, log, onEvent, onContextChange) {
|
|
|
1755
1760
|
} catch (error) {
|
|
1756
1761
|
log("Failed to setup LocalSend event listeners:", error);
|
|
1757
1762
|
}
|
|
1763
|
+
log("Setting up Shell event listeners");
|
|
1764
|
+
try {
|
|
1765
|
+
await listen(SHELL_EVENTS.OUTPUT, (event) => {
|
|
1766
|
+
if (event.payload) {
|
|
1767
|
+
const payload = event.payload;
|
|
1768
|
+
onEvent({
|
|
1769
|
+
type: SHELL_EVENTS.OUTPUT,
|
|
1770
|
+
timestamp: Date.now(),
|
|
1771
|
+
sessionId: payload.sessionId,
|
|
1772
|
+
data: payload.data
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1775
|
+
});
|
|
1776
|
+
log("Shell output listener registered");
|
|
1777
|
+
await listen(SHELL_EVENTS.EXIT, (event) => {
|
|
1778
|
+
if (event.payload) {
|
|
1779
|
+
const payload = event.payload;
|
|
1780
|
+
onEvent({
|
|
1781
|
+
type: SHELL_EVENTS.EXIT,
|
|
1782
|
+
timestamp: Date.now(),
|
|
1783
|
+
sessionId: payload.sessionId,
|
|
1784
|
+
exitCode: payload.exitCode
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
});
|
|
1788
|
+
log("Shell exit listener registered");
|
|
1789
|
+
} catch (error) {
|
|
1790
|
+
log("Failed to setup Shell event listeners:", error);
|
|
1791
|
+
}
|
|
1758
1792
|
}
|
|
1759
1793
|
async function setupLocalSendEventListeners(log, onEvent) {
|
|
1760
1794
|
const { listen } = getTauriEvent();
|