@sanctuary-framework/mcp-server 0.5.11 → 0.5.13

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/index.d.cts CHANGED
@@ -2083,8 +2083,15 @@ declare class IdentityManager {
2083
2083
  private primaryIdentityId;
2084
2084
  constructor(storage: StorageBackend, masterKey: Uint8Array);
2085
2085
  private get encryptionKey();
2086
- /** Load identities from storage on startup */
2087
- load(): Promise<void>;
2086
+ /** Load identities from storage on startup.
2087
+ * Returns { total: number of encrypted files found, loaded: number successfully decrypted }.
2088
+ * A mismatch (total > 0, loaded === 0) indicates a wrong master key / missing passphrase.
2089
+ */
2090
+ load(): Promise<{
2091
+ total: number;
2092
+ loaded: number;
2093
+ failed: number;
2094
+ }>;
2088
2095
  /** Save an identity to storage */
2089
2096
  save(identity: StoredIdentity): Promise<void>;
2090
2097
  get(id: string): StoredIdentity | undefined;
package/dist/index.d.ts CHANGED
@@ -2083,8 +2083,15 @@ declare class IdentityManager {
2083
2083
  private primaryIdentityId;
2084
2084
  constructor(storage: StorageBackend, masterKey: Uint8Array);
2085
2085
  private get encryptionKey();
2086
- /** Load identities from storage on startup */
2087
- load(): Promise<void>;
2086
+ /** Load identities from storage on startup.
2087
+ * Returns { total: number of encrypted files found, loaded: number successfully decrypted }.
2088
+ * A mismatch (total > 0, loaded === 0) indicates a wrong master key / missing passphrase.
2089
+ */
2090
+ load(): Promise<{
2091
+ total: number;
2092
+ loaded: number;
2093
+ failed: number;
2094
+ }>;
2088
2095
  /** Save an identity to storage */
2089
2096
  save(identity: StoredIdentity): Promise<void>;
2090
2097
  get(id: string): StoredIdentity | undefined;