@modootoday/pmcp 0.9.2 → 0.11.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.
@@ -0,0 +1,44 @@
1
+ import { b as MailboxStore, B as Binding, R as Row, A as ActorCredential, a as MailboxConfig, M as MailboxService } from '../service-qpCsOXkQ.js';
2
+ export { H as HEARTBEAT_INTERVAL_MS, c as MailboxError, d as MailboxOperation, P as PRESENCE_TTL_MS, e as Result, f as failure, i as inboxSchema, m as messageSchema, o as operationSchema, r as restoreBackup, s as sendSchema, g as sessionsSchema } from '../service-qpCsOXkQ.js';
3
+ import { McpServer } from '@modelcontextprotocol/server';
4
+ export { M as MailboxAttachmentOptions, a as attachMailbox } from '../attachment-tU5FZrgZ.js';
5
+ import { P as ProjectConfig } from '../config-CJ43_oBS.js';
6
+ import 'zod';
7
+ import '../encoder-DGRy9skC.js';
8
+
9
+ declare class NotificationOutbox {
10
+ readonly store: MailboxStore;
11
+ constructor(store: MailboxStore);
12
+ discover(binding: Binding, nativeTarget: string): Promise<void>;
13
+ retryUnsent(binding: Binding, claim: Row): Promise<void>;
14
+ reconcile(binding: Binding, messageId: string, delivered: boolean): Promise<void>;
15
+ enqueue(messageId: string, binding: Binding, nativeTarget: string): Promise<void>;
16
+ claim(binding: Binding): Promise<Row | undefined>;
17
+ renew(binding: Binding, claim: Row): Promise<void>;
18
+ private assertLease;
19
+ complete(binding: Binding, claim: Row, outcome: "accepted" | "uncertain" | "failed"): Promise<void>;
20
+ }
21
+
22
+ declare function createRecoveryBundle(store: MailboxStore, credentials: readonly ActorCredential[], destination: string, key: Buffer): Promise<void>;
23
+ declare function restoreRecoveryBundle(source: string, config: MailboxConfig, key: Buffer): Promise<ActorCredential[]>;
24
+
25
+ declare function registerMailboxTools(server: McpServer, service: MailboxService): McpServer;
26
+
27
+ declare function mailboxConfigFrom(project: ProjectConfig, env?: Readonly<Record<string, string | undefined>>): MailboxConfig | undefined;
28
+ declare function initializeMailboxConfig(file: string, stateDirectory?: string): MailboxConfig;
29
+ declare function readCredential(file: string): {
30
+ projectId: string;
31
+ actorId: string;
32
+ secret: string;
33
+ };
34
+ declare function readBinding(file: string): {
35
+ projectId: string;
36
+ actorId: string;
37
+ sessionId: string;
38
+ generation: number;
39
+ secret: string;
40
+ };
41
+ declare function writePrivateJson(file: string, value: object): void;
42
+ declare function writeBindingFile(file: string, binding: Binding): void;
43
+
44
+ export { ActorCredential, Binding, MailboxConfig, MailboxService, MailboxStore, NotificationOutbox, createRecoveryBundle, initializeMailboxConfig, mailboxConfigFrom, readBinding, readCredential, registerMailboxTools, restoreRecoveryBundle, writeBindingFile, writePrivateJson };