@haex-space/vault-sdk 4.2.0 → 4.4.0
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/README.md +69 -0
- package/dist/cli/index.js +2 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +2 -1
- package/dist/cli/index.mjs.map +1 -1
- package/dist/{client-7bZyiRwE.d.mts → client-BCUfRZvU.d.mts} +261 -13
- package/dist/{client-BPwsH1so.d.ts → client-C44dqakd.d.ts} +261 -13
- package/dist/haex_bundle_bg.wasm +0 -0
- package/dist/index.d.mts +45 -6
- package/dist/index.d.ts +45 -6
- package/dist/index.js +342 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +339 -4
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +2 -1
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +2 -1
- package/dist/node.mjs.map +1 -1
- package/dist/nuxt.js +10 -2
- package/dist/nuxt.js.map +1 -1
- package/dist/nuxt.mjs +10 -2
- package/dist/nuxt.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +318 -3
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +318 -3
- 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 +308 -3
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +308 -3
- 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 +318 -3
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +318 -3
- package/dist/svelte.mjs.map +1 -1
- package/dist/{types-BwFKGH70.d.mts → types-DoNvKiW_.d.mts} +75 -1
- package/dist/{types-BwFKGH70.d.ts → types-DoNvKiW_.d.ts} +75 -1
- package/dist/vite.js +8 -1
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +8 -1
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.d.mts +2 -2
- package/dist/vue.d.ts +2 -2
- package/dist/vue.js +318 -3
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +318 -3
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as HaexHubEvent, c as EXTERNAL_EVENTS, D as DatabaseQueryResult, M as Migration, d as MigrationResult, W as WebRequestOptions, e as WebResponse, f as EventCallback, H as HaexHubConfig, E as ExtensionInfo, A as ApplicationContext, g as DatabasePermissionRequest, P as PermissionResponse, S as SearchResult, R as RequestOptions } from './types-
|
|
1
|
+
import { b as HaexHubEvent, c as EXTERNAL_EVENTS, D as DatabaseQueryResult, M as Migration, d as MigrationResult, W as WebRequestOptions, e as WebResponse, f as EventCallback, a as ExtensionManifest, H as HaexHubConfig, E as ExtensionInfo, A as ApplicationContext, g as DatabasePermissionRequest, P as PermissionResponse, S as SearchResult, R as RequestOptions } from './types-DoNvKiW_.mjs';
|
|
2
2
|
import { SqliteRemoteDatabase } from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -544,18 +544,25 @@ interface S3PublicConfig {
|
|
|
544
544
|
/** Bucket name */
|
|
545
545
|
bucket: string;
|
|
546
546
|
}
|
|
547
|
-
/**
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
*/
|
|
551
|
-
interface StorageBackendInfo {
|
|
547
|
+
/** The protocol of a storage. */
|
|
548
|
+
type StorageBackendType = "s3" | "webdav" | "sftp";
|
|
549
|
+
interface StorageBackendInfoBase {
|
|
552
550
|
id: string;
|
|
553
|
-
/** Backend type (e.g., "s3") */
|
|
554
|
-
type: string;
|
|
555
551
|
/** Name of the storage */
|
|
556
552
|
name: string;
|
|
557
553
|
/** Name of the provider the user gave the connection (e.g., "Hetzner") */
|
|
558
554
|
providerName: string;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* A storage the extension may use, as the host lists it: names only, never
|
|
558
|
+
* credentials, endpoint, host, port, host key or region. An S3 storage names
|
|
559
|
+
* its bucket; a WebDAV or SFTP storage names its folder on the server (empty
|
|
560
|
+
* for the root). Check `type` before reading `bucket` or `folder`.
|
|
561
|
+
*/
|
|
562
|
+
type StorageBackendInfo = S3BackendInfo | FolderBackendInfo;
|
|
563
|
+
/** An S3 storage, as the host lists it. */
|
|
564
|
+
interface S3BackendInfo extends StorageBackendInfoBase {
|
|
565
|
+
type: "s3";
|
|
559
566
|
/** Bucket of the storage */
|
|
560
567
|
bucket: string;
|
|
561
568
|
/** @deprecated Not sent by hosts that keep credentials to themselves (holzi). */
|
|
@@ -565,6 +572,51 @@ interface StorageBackendInfo {
|
|
|
565
572
|
/** @deprecated Not sent by hosts that keep credentials to themselves (holzi). */
|
|
566
573
|
config?: S3PublicConfig;
|
|
567
574
|
}
|
|
575
|
+
/** A WebDAV or SFTP storage, as the host lists it. */
|
|
576
|
+
interface FolderBackendInfo extends StorageBackendInfoBase {
|
|
577
|
+
type: "webdav" | "sftp";
|
|
578
|
+
/** Folder of the storage on the server, without `/` at the start or end; empty for the root */
|
|
579
|
+
folder: string;
|
|
580
|
+
}
|
|
581
|
+
/** Fields that would carry a login; the host enters it in its own window and refuses them. */
|
|
582
|
+
interface NoLogin {
|
|
583
|
+
/** Entered by the host and never accepted in a proposal. */
|
|
584
|
+
username?: never;
|
|
585
|
+
/** Entered by the host and never accepted in a proposal. */
|
|
586
|
+
password?: never;
|
|
587
|
+
/** Entered by the host and never accepted in a proposal. */
|
|
588
|
+
privateKey?: never;
|
|
589
|
+
/** Entered by the host and never accepted in a proposal. */
|
|
590
|
+
passphrase?: never;
|
|
591
|
+
/** Confirmed by the user in the host and never accepted in a proposal. */
|
|
592
|
+
hostKey?: never;
|
|
593
|
+
/** Confirmed by the user in the host and never accepted in a proposal. */
|
|
594
|
+
fingerprint?: never;
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* What an extension proposes for a new WebDAV storage. The host asks for a
|
|
598
|
+
* permission for host and port of `url` (the port of the scheme when absent),
|
|
599
|
+
* shows the proposal to the user and asks for the login in its own window.
|
|
600
|
+
*/
|
|
601
|
+
interface WebDavProposal extends NoLogin {
|
|
602
|
+
/** Address of the WebDAV server: `https`, or `http` only in the local network */
|
|
603
|
+
url: string;
|
|
604
|
+
/** Folder of the storage on the server; empty for the root */
|
|
605
|
+
folder: string;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* What an extension proposes for a new SFTP storage. The host asks for a
|
|
609
|
+
* permission for `host:port`, shows the server's host key to the user to
|
|
610
|
+
* confirm, and asks for the login in its own window.
|
|
611
|
+
*/
|
|
612
|
+
interface SftpProposal extends NoLogin {
|
|
613
|
+
/** Name or IP address of the server, without a scheme */
|
|
614
|
+
host: string;
|
|
615
|
+
/** Port of the server (1–65535); 22 when absent */
|
|
616
|
+
port?: number;
|
|
617
|
+
/** Folder of the storage on the server; empty for the root */
|
|
618
|
+
folder: string;
|
|
619
|
+
}
|
|
568
620
|
/**
|
|
569
621
|
* What an extension proposes for a new S3 storage. The host shows it to the
|
|
570
622
|
* user and asks for credentials in its own window; an extension never sends
|
|
@@ -613,9 +665,13 @@ interface S3Config {
|
|
|
613
665
|
interface AddBackendRequestBase {
|
|
614
666
|
/** Display name for the storage */
|
|
615
667
|
name: string;
|
|
616
|
-
/** Backend type
|
|
668
|
+
/** Backend type */
|
|
617
669
|
type: "s3";
|
|
618
670
|
}
|
|
671
|
+
interface AddFolderBackendRequestBase {
|
|
672
|
+
/** Display name for the storage */
|
|
673
|
+
name: string;
|
|
674
|
+
}
|
|
619
675
|
/**
|
|
620
676
|
* Request to add a new storage on a new connection. The host asks the user to
|
|
621
677
|
* confirm it and enters credentials in its own window.
|
|
@@ -645,6 +701,31 @@ type AddBackendRequest = (AddBackendRequestBase & {
|
|
|
645
701
|
};
|
|
646
702
|
/** A storage the extension may read. */
|
|
647
703
|
sameProviderAs: string;
|
|
704
|
+
})
|
|
705
|
+
/** Request to add a WebDAV storage on a new connection. */
|
|
706
|
+
| (AddFolderBackendRequestBase & {
|
|
707
|
+
type: "webdav";
|
|
708
|
+
config: WebDavProposal;
|
|
709
|
+
sameProviderAs?: never;
|
|
710
|
+
})
|
|
711
|
+
/** Request to add an SFTP storage on a new connection. */
|
|
712
|
+
| (AddFolderBackendRequestBase & {
|
|
713
|
+
type: "sftp";
|
|
714
|
+
config: SftpProposal;
|
|
715
|
+
sameProviderAs?: never;
|
|
716
|
+
})
|
|
717
|
+
/**
|
|
718
|
+
* Request to add a folder on the connection of an existing WebDAV or SFTP
|
|
719
|
+
* storage of the same type.
|
|
720
|
+
*/
|
|
721
|
+
| (AddFolderBackendRequestBase & {
|
|
722
|
+
type: "webdav" | "sftp";
|
|
723
|
+
/** With an existing provider, only the folder may be proposed. */
|
|
724
|
+
config: {
|
|
725
|
+
folder: string;
|
|
726
|
+
} & NoLogin;
|
|
727
|
+
/** A storage of the same type the extension may read. */
|
|
728
|
+
sameProviderAs: string;
|
|
648
729
|
});
|
|
649
730
|
/**
|
|
650
731
|
* Request to change a storage. The host asks the user to confirm it; new
|
|
@@ -656,11 +737,13 @@ interface UpdateBackendRequest {
|
|
|
656
737
|
/** New display name (optional) */
|
|
657
738
|
name?: string;
|
|
658
739
|
/**
|
|
659
|
-
* Only the bucket can be changed through
|
|
660
|
-
* and connection details never cross the
|
|
740
|
+
* Only the bucket (S3) or the folder (WebDAV, SFTP) can be changed through
|
|
741
|
+
* the extension request. Credentials and connection details never cross the
|
|
742
|
+
* bridge.
|
|
661
743
|
*/
|
|
662
744
|
config?: {
|
|
663
745
|
bucket?: string;
|
|
746
|
+
folder?: string;
|
|
664
747
|
endpoint?: never;
|
|
665
748
|
region?: never;
|
|
666
749
|
pathStyle?: never;
|
|
@@ -681,7 +764,8 @@ interface StorageObjectInfo {
|
|
|
681
764
|
lastModified?: string;
|
|
682
765
|
}
|
|
683
766
|
/**
|
|
684
|
-
* Remote Storage API for S3-compatible
|
|
767
|
+
* Remote Storage API for S3-compatible, WebDAV and SFTP backends. Object calls
|
|
768
|
+
* work alike on every type.
|
|
685
769
|
*
|
|
686
770
|
* This API provides access to external storage backends configured centrally
|
|
687
771
|
* in haex-vault. Extensions can upload/download files without CORS issues.
|
|
@@ -768,6 +852,107 @@ declare class BackendManagement {
|
|
|
768
852
|
test(backendId: string): Promise<void>;
|
|
769
853
|
}
|
|
770
854
|
|
|
855
|
+
/** Access to an encrypted folder: `readWrite` includes `read`. */
|
|
856
|
+
type EncryptedFolderAccess = "read" | "readWrite";
|
|
857
|
+
/** The encrypted folder the user chose and granted access to. */
|
|
858
|
+
interface EncryptedFolderChoice {
|
|
859
|
+
/** Identifier of the folder, used in every further call (part of the permission target). */
|
|
860
|
+
folderId: string;
|
|
861
|
+
/** Name of the folder as the user sees it. */
|
|
862
|
+
name: string;
|
|
863
|
+
}
|
|
864
|
+
/** An entry of a folder inside an encrypted folder, with its decrypted name. */
|
|
865
|
+
interface EncryptedFolderEntry {
|
|
866
|
+
name: string;
|
|
867
|
+
kind: "file" | "folder";
|
|
868
|
+
/** Size of a file's decrypted content in bytes */
|
|
869
|
+
size?: number;
|
|
870
|
+
/** Last modification, in milliseconds since 1970-01-01 UTC */
|
|
871
|
+
modified?: number;
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* `details.kind` of a provider error (code {@link HostErrorCode.HTTP}, 2002):
|
|
875
|
+
* the kind of the provider's refusal, never its text.
|
|
876
|
+
*/
|
|
877
|
+
type EncryptedFolderProviderErrorKind = "accessDenied" | "network" | "bucketMissing";
|
|
878
|
+
/**
|
|
879
|
+
* Encrypted folders in a remote storage.
|
|
880
|
+
*
|
|
881
|
+
* The host encrypts and decrypts: the extension sees names and decrypted
|
|
882
|
+
* bytes only. No function ever returns object keys, keys, sidecar files or
|
|
883
|
+
* the raw bytes stored at the provider.
|
|
884
|
+
*
|
|
885
|
+
* Access is the runtime-only permission kind `encryptedFolder` (target
|
|
886
|
+
* `<storageId>/<folderId>`, actions `read` and `readWrite`). It can never be
|
|
887
|
+
* declared in a manifest: the host refuses such a bundle. The user grants it
|
|
888
|
+
* in {@link EncryptedFoldersAPI.choose}, or the host asks when a call needs it;
|
|
889
|
+
* the SDK waits for the answer (1004) and retries like for every other kind.
|
|
890
|
+
*
|
|
891
|
+
* Errors (`{ code, message, details? }`, see {@link HostErrorCode}):
|
|
892
|
+
* - 1002 access denied, or no `remoteStorage` permission for the storage
|
|
893
|
+
* - 2002 provider error, `details.kind` is an {@link EncryptedFolderProviderErrorKind}
|
|
894
|
+
* - 3001 invalid `path` or unknown `folderId`
|
|
895
|
+
* - 3010 the entry is damaged ({@link HostErrorCode.ENCRYPTED_DATA_DAMAGED})
|
|
896
|
+
* - 7000 limit exceeded (data too large, run time)
|
|
897
|
+
*
|
|
898
|
+
* @example
|
|
899
|
+
* ```typescript
|
|
900
|
+
* const folder = await sdk.encryptedFolders.choose(storageId, "readWrite");
|
|
901
|
+
* if (folder) {
|
|
902
|
+
* await sdk.encryptedFolders.upload(storageId, folder.folderId, "notes/a.txt",
|
|
903
|
+
* new TextEncoder().encode("Hello"));
|
|
904
|
+
* const entries = await sdk.encryptedFolders.list(storageId, folder.folderId, "notes");
|
|
905
|
+
* const bytes = await sdk.encryptedFolders.download(storageId, folder.folderId, "notes/a.txt");
|
|
906
|
+
* }
|
|
907
|
+
* ```
|
|
908
|
+
*/
|
|
909
|
+
declare class EncryptedFoldersAPI {
|
|
910
|
+
private client;
|
|
911
|
+
constructor(client: HaexVaultSdk);
|
|
912
|
+
/**
|
|
913
|
+
* Let the user choose one of the storage's encrypted folders and grant
|
|
914
|
+
* access to it. The host shows its own window and waits for the answer.
|
|
915
|
+
* Needs the `remoteStorage` permission for the storage (else 1002 without
|
|
916
|
+
* asking); 1002 as well when the user refuses.
|
|
917
|
+
* @param storageId - Storage the folder lies in
|
|
918
|
+
* @param access - Access the extension asks for
|
|
919
|
+
* @returns The chosen folder, or `null` when the user closed the chooser without choosing
|
|
920
|
+
*/
|
|
921
|
+
choose(storageId: string, access: EncryptedFolderAccess): Promise<EncryptedFolderChoice | null>;
|
|
922
|
+
/**
|
|
923
|
+
* List a folder inside an encrypted folder (permission `read`).
|
|
924
|
+
* @param storageId - Storage the folder lies in
|
|
925
|
+
* @param folderId - Folder from {@link EncryptedFoldersAPI.choose}
|
|
926
|
+
* @param path - Path relative to the encrypted folder; `''` (default) for its root
|
|
927
|
+
* @returns The entries with their decrypted names
|
|
928
|
+
*/
|
|
929
|
+
list(storageId: string, folderId: string, path?: string): Promise<EncryptedFolderEntry[]>;
|
|
930
|
+
/**
|
|
931
|
+
* Download and decrypt a file (permission `read`).
|
|
932
|
+
* @param storageId - Storage the folder lies in
|
|
933
|
+
* @param folderId - Folder from {@link EncryptedFoldersAPI.choose}
|
|
934
|
+
* @param path - Path of the file, relative to the encrypted folder
|
|
935
|
+
* @returns The decrypted content
|
|
936
|
+
*/
|
|
937
|
+
download(storageId: string, folderId: string, path: string): Promise<Uint8Array>;
|
|
938
|
+
/**
|
|
939
|
+
* Encrypt and upload a file (permission `readWrite`). Missing parent
|
|
940
|
+
* folders are created.
|
|
941
|
+
* @param storageId - Storage the folder lies in
|
|
942
|
+
* @param folderId - Folder from {@link EncryptedFoldersAPI.choose}
|
|
943
|
+
* @param path - Path of the file, relative to the encrypted folder
|
|
944
|
+
* @param data - Content of the file
|
|
945
|
+
*/
|
|
946
|
+
upload(storageId: string, folderId: string, path: string, data: Uint8Array): Promise<void>;
|
|
947
|
+
/**
|
|
948
|
+
* Delete a file or folder (permission `readWrite`).
|
|
949
|
+
* @param storageId - Storage the folder lies in
|
|
950
|
+
* @param folderId - Folder from {@link EncryptedFoldersAPI.choose}
|
|
951
|
+
* @param path - Path relative to the encrypted folder
|
|
952
|
+
*/
|
|
953
|
+
delete(storageId: string, folderId: string, path: string): Promise<void>;
|
|
954
|
+
}
|
|
955
|
+
|
|
771
956
|
/**
|
|
772
957
|
* Device type classification (for UI icons)
|
|
773
958
|
*/
|
|
@@ -1715,6 +1900,64 @@ declare class DialogAPI {
|
|
|
1715
1900
|
confirm(options: ConfirmOptions): Promise<boolean>;
|
|
1716
1901
|
}
|
|
1717
1902
|
|
|
1903
|
+
/**
|
|
1904
|
+
* A minimal MCP server for the tools an extension offers to the agent of its host (holzi spec 018,
|
|
1905
|
+
* `contracts/mcp-port.md`). It speaks the part of MCP a host needs to list and call tools:
|
|
1906
|
+
* `initialize`, `notifications/initialized`, `ping`, `tools/list`, `tools/call` and
|
|
1907
|
+
* `notifications/cancelled`; every other request is answered with "method not found". It sends no
|
|
1908
|
+
* request of its own, so it never asks the host for anything.
|
|
1909
|
+
*
|
|
1910
|
+
* Titles, descriptions and schemas come from the signed manifest; the extension's code only names a
|
|
1911
|
+
* handler per tool. A tool runs only when it is declared and has a handler, and only with input
|
|
1912
|
+
* that fits its schema.
|
|
1913
|
+
*/
|
|
1914
|
+
|
|
1915
|
+
type JsonRpcMessage = Record<string, unknown>;
|
|
1916
|
+
/** What a handler gets besides its input. */
|
|
1917
|
+
interface ToolContext {
|
|
1918
|
+
/** Aborted when the host cancels the call, for example because the user stopped the turn. */
|
|
1919
|
+
signal: AbortSignal;
|
|
1920
|
+
}
|
|
1921
|
+
/**
|
|
1922
|
+
* Runs one tool. A string is returned as text, anything else as JSON text; a thrown error becomes
|
|
1923
|
+
* a tool error the agent sees.
|
|
1924
|
+
*/
|
|
1925
|
+
type ToolHandler = (input: Record<string, unknown>, context: ToolContext) => unknown | Promise<unknown>;
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* `sdk.tools`: tools an extension offers to the agent of its host (holzi spec 018). Each tool is
|
|
1929
|
+
* declared in the signed manifest (`tools`) with its title, description, input schema and effect;
|
|
1930
|
+
* the extension's code only registers the function that runs it:
|
|
1931
|
+
*
|
|
1932
|
+
* ```ts
|
|
1933
|
+
* sdk.tools.register("count_unread", async (input, { signal }) => countUnread(input.role, signal));
|
|
1934
|
+
* ```
|
|
1935
|
+
*
|
|
1936
|
+
* The host lists and calls the tools over MCP on the extension's port (`ToolsServer`). A call runs
|
|
1937
|
+
* only for a declared tool with input that fits its schema; the host's approval of the call
|
|
1938
|
+
* follows the declared effect.
|
|
1939
|
+
*/
|
|
1940
|
+
|
|
1941
|
+
interface ToolsApiOptions {
|
|
1942
|
+
/** The manifest the SDK was built with; its `tools` are what may be registered. */
|
|
1943
|
+
manifest: () => ExtensionManifest | undefined;
|
|
1944
|
+
/** Sends one MCP message to the host on the extension's port. */
|
|
1945
|
+
send: (message: JsonRpcMessage) => void;
|
|
1946
|
+
}
|
|
1947
|
+
declare class ToolsAPI {
|
|
1948
|
+
private readonly options;
|
|
1949
|
+
private readonly handlers;
|
|
1950
|
+
private readonly server;
|
|
1951
|
+
constructor(options: ToolsApiOptions);
|
|
1952
|
+
/**
|
|
1953
|
+
* Runs `handler` when the host calls the tool `name`. The tool must be declared in the manifest.
|
|
1954
|
+
* Returns a function that unregisters the handler; the host then no longer sees the tool.
|
|
1955
|
+
*/
|
|
1956
|
+
register(name: string, handler: ToolHandler): () => void;
|
|
1957
|
+
/** Handles one MCP message from the host. Called by the SDK for `haexspace:mcp` port messages. */
|
|
1958
|
+
receive(message: unknown): Promise<void>;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1718
1961
|
/**
|
|
1719
1962
|
* HaexVault Client
|
|
1720
1963
|
*
|
|
@@ -1755,6 +1998,7 @@ declare class HaexVaultSdk {
|
|
|
1755
1998
|
readonly web: WebAPI;
|
|
1756
1999
|
readonly permissions: PermissionsAPI;
|
|
1757
2000
|
readonly remoteStorage: RemoteStorageAPI;
|
|
2001
|
+
readonly encryptedFolders: EncryptedFoldersAPI;
|
|
1758
2002
|
readonly localsend: LocalSendAPI;
|
|
1759
2003
|
readonly spaces: SpacesAPI;
|
|
1760
2004
|
readonly shell: ShellAPI;
|
|
@@ -1763,6 +2007,8 @@ declare class HaexVaultSdk {
|
|
|
1763
2007
|
readonly notifications: NotificationsAPI;
|
|
1764
2008
|
readonly tab: TabAPI;
|
|
1765
2009
|
readonly dialog: DialogAPI;
|
|
2010
|
+
/** Tools the extension offers to the agent of its host (holzi spec 018). */
|
|
2011
|
+
readonly tools: ToolsAPI;
|
|
1766
2012
|
/** Unified action system - register handlers that work for both Bridge and AI requests */
|
|
1767
2013
|
readonly actions: {
|
|
1768
2014
|
register: (action: string, handler: ExternalRequestHandler) => (() => void);
|
|
@@ -1804,6 +2050,8 @@ declare class HaexVaultSdk {
|
|
|
1804
2050
|
private initNative;
|
|
1805
2051
|
private initIframe;
|
|
1806
2052
|
private handleEvent;
|
|
2053
|
+
/** Sends one MCP message of the tool connection to the host on the port. */
|
|
2054
|
+
private sendMcpMessage;
|
|
1807
2055
|
private handleExternalRequestInternal;
|
|
1808
2056
|
private handleActionRequestInternal;
|
|
1809
2057
|
private runSetupAsync;
|
|
@@ -1811,4 +2059,4 @@ declare class HaexVaultSdk {
|
|
|
1811
2059
|
private log;
|
|
1812
2060
|
}
|
|
1813
2061
|
|
|
1814
|
-
export {
|
|
2062
|
+
export { type PasswordInput as $, type AuthorizedClient as A, type BlockedClient as B, type ConfirmOptions as C, DatabaseAPI as D, type EncryptedFolderAccess as E, type FileStat as F, type LocalSendSettings as G, HaexVaultSdk as H, type ImapConfig as I, type MailAccount as J, KnownPath as K, LOCALSEND_EVENTS as L, MailAPI as M, type MailAddress as N, type Attachment as O, type FetchRange as P, type MailMessage as Q, type MailNewMessagesEvent as R, StorageAPI as S, type MailboxInfo as T, type MessageEnvelope as U, type NotificationAction as V, type NotificationClickEvent as W, type NotificationOptions as X, NotificationsAPI as Y, type OutgoingAttachment as Z, type OutgoingMessage as _, type ConnectionSecurity as a, type PasswordItemFull as a0, type PasswordItemSummary as a1, type PasswordKeyValue as a2, type PasswordKeyValueInput as a3, PasswordsAPI as a4, type PendingAuthorization as a5, type PendingTransfer as a6, PermissionsAPI as a7, type AddBackendRequest as a8, type FolderBackendInfo as a9, type SpaceInvite as aA, type SpaceKeyGrantInfo as aB, type SpaceMember as aC, type SpaceMemberInfo as aD, SpacesAPI as aE, type SyncBackendInfo as aF, TabAPI as aG, type ToolContext as aH, type ToolHandler as aI, ToolsAPI as aJ, type TransferDirection as aK, type TransferProgress as aL, type TransferState as aM, WebAPI as aN, canExternalClientSendRequests as aO, isExternalClientConnected as aP, type S3BackendInfo as aa, type S3Config as ab, type S3Proposal as ac, type S3PublicConfig as ad, type SftpProposal as ae, RemoteStorageAPI as af, type StorageBackendInfo as ag, type StorageBackendType as ah, type StorageObjectInfo as ai, type UpdateBackendRequest as aj, type WebDavProposal as ak, type RequestedExtension as al, type SelectFileOptions as am, type SelectFolderOptions as an, type ServerInfo as ao, type ServerStatus as ap, type SessionAuthorization as aq, type SharedSpace as ar, ShellAPI as as, type ShellCreateOptions as at, type ShellCreateResponse as au, type ShellExitEvent as av, type ShellOutputEvent as aw, type SmtpConfig as ax, type SpaceAccessTokenInfo as ay, type SpaceAssignment as az, type DecryptedSpace as b, type DeepLink as c, type Device as d, type DeviceInfo as e, type DeviceType as f, DialogAPI as g, type DirEntry as h, type EncryptedFolderChoice as i, type EncryptedFolderEntry as j, type EncryptedFolderProviderErrorKind as k, EncryptedFoldersAPI as l, type ExternalAuthDecision as m, type ExternalConnection as n, ExternalConnectionErrorCode as o, ExternalConnectionState as p, type ExternalRequest as q, type ExternalRequestEvent as r, type ExternalRequestHandler as s, type ExternalRequestPayload as t, type ExternalResponse as u, FilesystemAPI as v, type KnownPaths as w, LocalSendAPI as x, type LocalSendEvent as y, type FileInfo as z };
|