@agimon-ai/po-session 0.0.0-alpha.2 → 0.0.0-alpha.21

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.mts CHANGED
@@ -1,13 +1,51 @@
1
- import { DoomBackgroundWorkService } from "@agimon-ai/po-core/backgroundWork";
1
+ import { PoBackgroundWorkService } from "@agimon-ai/po-core/backgroundWork";
2
+ import { FileSystem, PoSqliteService } from "@agimon-ai/po-core/platform";
2
3
  import { Context } from "@deepseek-ai/cordis";
3
- import { DoomSessionCommunicationEndpoint } from "@agimon-ai/po-core/hubChannel";
4
+ import { PoSessionCommunicationEndpoint } from "@agimon-ai/po-core/hubChannel";
4
5
  //#region src/services/backgroundWorkService/index.d.ts
5
6
  /** Creates the generation-bound, pull-based coordinator shared by session extensions. */
6
- export declare function createBackgroundWorkService(ctx: Context): DoomBackgroundWorkService;
7
+ export declare function createBackgroundWorkService(ctx: Context): PoBackgroundWorkService;
7
8
  /** Installs one coordinator in the current session service context. */
8
9
  export declare function provideBackgroundWorkService(context: Context): void;
9
10
  //#endregion
10
- //#region src/services/peerTransport/index.d.ts
11
+ //#region src/services/sessionGroups/type.d.ts
12
+ /** pi-durable `SqliteDatabase`, reached through po-core so this package needs no direct dependency. */
13
+ type SessionSqliteDatabase = Awaited<ReturnType<PoSqliteService['open']>>;
14
+ interface SessionCommunicationGroup {
15
+ readonly id: string;
16
+ readonly ownerAuthority: string;
17
+ readonly revision: number;
18
+ readonly members: readonly string[];
19
+ }
20
+ interface SessionGroupMutation {
21
+ readonly groupId: string;
22
+ readonly authority: string;
23
+ readonly expectedRevision: number;
24
+ readonly add?: readonly string[];
25
+ readonly remove?: readonly string[];
26
+ }
27
+ interface SessionGroupStoreOptions {
28
+ /**
29
+ * Taken over by the store and closed by `close()`. On the edge every open returns the Durable
30
+ * Object's one shared database, so the store's table names must stay unique across that database.
31
+ */
32
+ readonly database: SessionSqliteDatabase;
33
+ readonly authorizeManagement?: (authority: string, group: SessionCommunicationGroup) => boolean;
34
+ readonly validateEnrollment?: (groupId: string, memberReference: string) => boolean;
35
+ }
36
+ interface SessionGroupStore {
37
+ create(groupId: string, ownerAuthority: string, members: readonly string[]): Promise<SessionCommunicationGroup>;
38
+ mutate(mutation: SessionGroupMutation): Promise<SessionCommunicationGroup>;
39
+ get(groupId: string): Promise<SessionCommunicationGroup | undefined>;
40
+ groupsFor(memberReference: string): Promise<readonly SessionCommunicationGroup[]>;
41
+ canMessage(groupId: string, sourceReference: string, targetReference: string): Promise<boolean>;
42
+ close(): Promise<void>;
43
+ }
44
+ export declare class SessionGroupRevisionError extends Error {
45
+ constructor(groupId: string, expected: number, actual: number);
46
+ }
47
+ //#endregion
48
+ //#region src/services/peerTransport/config.d.ts
11
49
  declare const PEER_CONFIG_VERSION = 1;
12
50
  interface SessionPeer {
13
51
  readonly hostId: string;
@@ -23,6 +61,33 @@ interface SessionPeerConfig {
23
61
  readonly hostId: string;
24
62
  readonly peers: readonly SessionPeer[];
25
63
  }
64
+ interface SessionPeerReplayGuard {
65
+ admit(request: Request, now?: number): boolean;
66
+ close(): void;
67
+ }
68
+ interface SessionPeerReplayGuardAsync {
69
+ admit(request: Request, now?: number): Promise<boolean>;
70
+ close(): Promise<void>;
71
+ }
72
+ export declare function sessionPeerConfigPath(homeDirectory: string): string;
73
+ //#endregion
74
+ //#region src/services/peerTransport/sync.d.ts
75
+ /**
76
+ * Reads operator-provisioned peers. Invalid or unreadable config fails closed.
77
+ *
78
+ * @deprecated Node-only sync shim; use readSessionPeerConfigAsync. Removed in M2.
79
+ */
80
+ export declare function readSessionPeerConfig(homeDirectory: string): SessionPeerConfig | undefined;
81
+ /**
82
+ * Persists accepted peer signatures so a valid request cannot be replayed within its clock-skew window.
83
+ *
84
+ * @deprecated Node-only sync shim; use createPeerReplayGuardAsync. Removed in M2.
85
+ */
86
+ export declare function createPeerReplayGuard(homeDirectory: string): SessionPeerReplayGuard;
87
+ //#endregion
88
+ //#region src/services/peerTransport/index.d.ts
89
+ /** chord IO context, reached through po-core so this package needs no direct dependency. */
90
+ type IoContext = Parameters<FileSystem['readTextFile']>[1];
26
91
  interface RemoteSessionReference {
27
92
  readonly hostId: string;
28
93
  readonly sessionId: string;
@@ -33,26 +98,25 @@ interface SessionPeerEnvelope {
33
98
  readonly type: string;
34
99
  readonly payload: unknown;
35
100
  }
36
- interface SessionPeerReplayGuard {
37
- admit(request: Request, now?: number): boolean;
38
- close(): void;
39
- }
40
- export declare function sessionPeerConfigPath(homeDirectory: string): string;
41
101
  /** Reads operator-provisioned peers. Invalid or unreadable config fails closed. */
42
- export declare function readSessionPeerConfig(homeDirectory: string): SessionPeerConfig | undefined;
102
+ export declare function readSessionPeerConfigAsync(fs: FileSystem, homeDirectory: string, context: IoContext): Promise<SessionPeerConfig | undefined>;
43
103
  /** `peer/<host-id>/<session-id>` is the only remote target spelling. */
44
104
  export declare function parseRemoteSessionReference(value: string): RemoteSessionReference | undefined;
45
105
  export declare function peerSessionReference(hostId: string, sessionId: string): string;
46
106
  export declare function peerRequestHeaders(sourceHostId: string, peer: SessionPeer, method: string, pathname: string, body: string, now?: number): Headers;
47
- /** Persists accepted peer signatures so a valid request cannot be replayed within its clock-skew window. */
48
- export declare function createPeerReplayGuard(homeDirectory: string): SessionPeerReplayGuard;
107
+ /**
108
+ * Persists accepted peer signatures so a valid request cannot be replayed within its clock-skew window.
109
+ * Takes over the database and closes it in `close()`.
110
+ */
111
+ export declare function createPeerReplayGuardAsync(database: SessionSqliteDatabase): Promise<SessionPeerReplayGuardAsync>;
49
112
  export declare function verifyPeerRequest(config: SessionPeerConfig, request: Request, body: string, now?: number): SessionPeer | undefined;
50
113
  /** Adds asynchronous tunnel publication to a host-bound local communication endpoint. */
51
114
  export declare function createPeerCommunication(options: {
52
- readonly local: DoomSessionCommunicationEndpoint;
53
- readonly homeDirectory: string;
115
+ readonly local: PoSessionCommunicationEndpoint;
116
+ /** Read once by the caller, for example with readSessionPeerConfigAsync. */
117
+ readonly config: SessionPeerConfig | undefined;
54
118
  readonly fetch?: typeof fetch;
55
- }): DoomSessionCommunicationEndpoint;
119
+ }): PoSessionCommunicationEndpoint;
56
120
  //#endregion
57
121
  //#region src/services/sessionDirectory/type.d.ts
58
122
  type SessionHostReachability = 'reachable' | 'unreachable' | 'unknown';
@@ -96,14 +160,14 @@ interface DiscoveredSession extends SessionPresenceFacts {
96
160
  }
97
161
  interface SessionDirectoryOptions {
98
162
  readonly now?: () => number;
99
- readonly authorizeDiscovery: (callerReference: string, subject: Readonly<Pick<SessionPresenceObservation, 'hostId' | 'sessionId' | 'label'>>) => SessionDiscoveryGrant | undefined;
163
+ readonly authorizeDiscovery: (callerReference: string, subject: Readonly<Pick<SessionPresenceObservation, 'hostId' | 'sessionId' | 'label'>>) => SessionDiscoveryGrant | undefined | Promise<SessionDiscoveryGrant | undefined>;
100
164
  }
101
165
  interface SessionDirectory {
102
166
  observe(observation: SessionPresenceObservation): boolean;
103
167
  replaceHostSnapshot(hostId: string, hostIncarnation: string, observations: readonly SessionPresenceObservation[]): void;
104
168
  hostDisconnected(hostId: string): void;
105
- discover(callerReference: string, allowedReferences?: ReadonlySet<string>): readonly DiscoveredSession[];
106
- resolveDeliveryTarget(callerReference: string, reference: string): string | undefined;
169
+ discover(callerReference: string, allowedReferences?: ReadonlySet<string>): Promise<readonly DiscoveredSession[]>;
170
+ resolveDeliveryTarget(callerReference: string, reference: string): Promise<string | undefined>;
107
171
  subscribe(callerReference: string, listener: (sessions: readonly DiscoveredSession[]) => void): () => void;
108
172
  }
109
173
  //#endregion
@@ -111,114 +175,88 @@ interface SessionDirectory {
111
175
  /** In-memory authenticated presence cache. Restart deliberately forgets every observation. */
112
176
  export declare function createSessionDirectory(options: SessionDirectoryOptions): SessionDirectory;
113
177
  //#endregion
114
- //#region src/services/sessionGroups/type.d.ts
115
- interface SessionCommunicationGroup {
116
- readonly id: string;
117
- readonly ownerAuthority: string;
118
- readonly revision: number;
119
- readonly members: readonly string[];
120
- }
121
- interface SessionGroupMutation {
122
- readonly groupId: string;
123
- readonly authority: string;
124
- readonly expectedRevision: number;
125
- readonly add?: readonly string[];
126
- readonly remove?: readonly string[];
127
- }
128
- interface SessionGroupStoreOptions {
129
- readonly databasePath: string;
130
- readonly authorizeManagement?: (authority: string, group: SessionCommunicationGroup) => boolean;
131
- readonly validateEnrollment?: (groupId: string, memberReference: string) => boolean;
132
- }
133
- interface SessionGroupStore {
134
- create(groupId: string, ownerAuthority: string, members: readonly string[]): SessionCommunicationGroup;
135
- mutate(mutation: SessionGroupMutation): SessionCommunicationGroup;
136
- get(groupId: string): SessionCommunicationGroup | undefined;
137
- groupsFor(memberReference: string): readonly SessionCommunicationGroup[];
138
- canMessage(groupId: string, sourceReference: string, targetReference: string): boolean;
139
- close(): void;
140
- }
141
- export declare class SessionGroupRevisionError extends Error {
142
- constructor(groupId: string, expected: number, actual: number);
143
- }
144
- //#endregion
145
178
  //#region src/services/sessionGroups/index.d.ts
146
179
  /** Opens a revisioned SQLite registry for communication-only group membership. */
147
- export declare function createSessionGroupStore(options: SessionGroupStoreOptions): SessionGroupStore;
180
+ export declare function createSessionGroupStore(options: SessionGroupStoreOptions): Promise<SessionGroupStore>;
148
181
  //#endregion
149
182
  //#region src/services/sessionDelivery/type.d.ts
150
- export declare const DOOM_SESSION_DELIVERY_SERVICE = "doom/session-delivery";
151
- type DoomSessionDeliveryInboxState = 'accepted' | 'admitting' | 'admitted' | 'recovery_required';
152
- type DoomSessionDeliveryMode = 'prompt' | 'steer' | 'followUp';
153
- interface DoomSessionDeliveryMetadata extends Readonly<Record<string, string | undefined>> {
183
+ export declare const PO_SESSION_DELIVERY_SERVICE = "po/session-delivery";
184
+ type PoSessionDeliveryInboxState = 'accepted' | 'admitting' | 'admitted' | 'recovery_required';
185
+ type PoSessionDeliveryMode = 'prompt' | 'steer' | 'followUp';
186
+ interface PoSessionDeliveryMetadata extends Readonly<Record<string, string | undefined>> {
154
187
  readonly worktreeId?: string;
155
188
  readonly fromRole?: string;
156
189
  }
157
- interface DoomSessionDeliveryRequest {
190
+ interface PoSessionDeliveryRequest {
158
191
  readonly deliveryId?: string;
159
192
  readonly recipientKey: string;
160
193
  readonly kind: string;
161
194
  readonly prompt: string;
162
- readonly delivery?: DoomSessionDeliveryMode;
163
- readonly metadata?: DoomSessionDeliveryMetadata;
195
+ readonly delivery?: PoSessionDeliveryMode;
196
+ readonly metadata?: PoSessionDeliveryMetadata;
164
197
  }
165
- interface DoomSessionInboxQuery {
198
+ interface PoSessionInboxQuery {
166
199
  readonly kind?: string;
167
- readonly metadata?: DoomSessionDeliveryMetadata;
168
- readonly state?: DoomSessionDeliveryInboxState;
200
+ readonly metadata?: PoSessionDeliveryMetadata;
201
+ readonly state?: PoSessionDeliveryInboxState;
169
202
  readonly consumed?: boolean;
170
203
  }
171
- interface DoomSessionInboxEntry {
204
+ interface PoSessionInboxEntry {
172
205
  readonly deliveryId: string;
173
206
  readonly senderKey: string;
174
207
  readonly recipientKey: string;
175
208
  readonly kind: string;
176
209
  readonly prompt: string;
177
- readonly delivery: DoomSessionDeliveryMode;
178
- readonly metadata: DoomSessionDeliveryMetadata;
179
- readonly state: DoomSessionDeliveryInboxState;
210
+ readonly delivery: PoSessionDeliveryMode;
211
+ readonly metadata: PoSessionDeliveryMetadata;
212
+ readonly state: PoSessionDeliveryInboxState;
180
213
  readonly consumed: boolean;
181
214
  }
182
- interface DoomSessionOutboxEntry {
215
+ interface PoSessionOutboxEntry {
183
216
  readonly deliveryId: string;
184
217
  readonly recipientKey: string;
185
218
  readonly kind: string;
186
- readonly metadata: DoomSessionDeliveryMetadata;
219
+ readonly metadata: PoSessionDeliveryMetadata;
187
220
  readonly state: 'queued' | 'acknowledged';
188
- readonly recipientState?: DoomSessionDeliveryInboxState;
221
+ readonly recipientState?: PoSessionDeliveryInboxState;
189
222
  }
190
- interface DoomSessionDeliveryService {
223
+ interface PoSessionDeliveryService {
191
224
  readonly recipientKey: string;
192
- deliver(request: DoomSessionDeliveryRequest): Promise<{
225
+ deliver(request: PoSessionDeliveryRequest): Promise<{
193
226
  deliveryId: string;
194
227
  }>;
195
- waitForAdmission(deliveryId: string, timeoutMs?: number): Promise<DoomSessionDeliveryInboxState | undefined>;
196
- inbox(query?: DoomSessionInboxQuery): readonly DoomSessionInboxEntry[];
228
+ waitForAdmission(deliveryId: string, timeoutMs?: number): Promise<PoSessionDeliveryInboxState | undefined>;
229
+ inbox(query?: PoSessionInboxQuery): Promise<readonly PoSessionInboxEntry[]>;
197
230
  /** Optional host-routed peer envelope admission. Local-only consumers need no transport receiver. */
198
- receive?(senderKey: string, kind: string, payload: unknown): DoomSessionDeliveryInboxState | undefined;
199
- consume(deliveryId: string): boolean;
200
- outbox(deliveryId: string): DoomSessionOutboxEntry | undefined;
231
+ receive?(senderKey: string, kind: string, payload: unknown): Promise<PoSessionDeliveryInboxState | undefined>;
232
+ consume(deliveryId: string): Promise<boolean>;
233
+ outbox(deliveryId: string): Promise<PoSessionOutboxEntry | undefined>;
201
234
  close(): Promise<void>;
202
235
  }
203
236
  interface SessionDeliveryServiceOptions {
204
- readonly databasePath: string;
237
+ /**
238
+ * Taken over by the service and closed by `close()`. On the edge every open returns the Durable
239
+ * Object's one shared database, so the service's table names must stay unique across that database.
240
+ */
241
+ readonly database: SessionSqliteDatabase;
205
242
  readonly recipientKey: string;
206
- readonly communication: DoomSessionCommunicationEndpoint;
243
+ readonly communication: PoSessionCommunicationEndpoint;
207
244
  /** Host-owned relationship check applied before sends, retries, and recipient acceptance. */
208
- readonly authorizePeer: (peerKey: string, metadata?: DoomSessionDeliveryMetadata) => boolean;
209
- readonly admitPrompt: (prompt: string, delivery?: DoomSessionDeliveryMode) => Promise<void>;
245
+ readonly authorizePeer: (peerKey: string, metadata?: PoSessionDeliveryMetadata) => boolean | Promise<boolean>;
246
+ /** `requestId` is the delivery id; the recipient runtime dedupes on it, so a restart may replay an admission. */
247
+ readonly admitPrompt: (prompt: string, delivery: PoSessionDeliveryMode | undefined, requestId: string) => Promise<void>;
210
248
  }
211
249
  declare module '@deepseek-ai/cordis' {
212
250
  interface Context {
213
- 'doom/session-delivery': DoomSessionDeliveryService;
251
+ 'po/session-delivery': PoSessionDeliveryService;
214
252
  }
215
253
  }
216
254
  /** Reads the currently active provider each time, without retaining a stale binding. */
217
- export declare function readDoomSessionDelivery(context: Context): DoomSessionDeliveryService | undefined;
255
+ export declare function readPoSessionDelivery(context: Context): PoSessionDeliveryService | undefined;
218
256
  //#endregion
219
257
  //#region src/services/sessionDelivery/index.d.ts
220
258
  /** Opens and starts one durable delivery endpoint. */
221
- export declare function createSessionDeliveryService(options: SessionDeliveryServiceOptions): DoomSessionDeliveryService;
259
+ export declare function createSessionDeliveryService(options: SessionDeliveryServiceOptions): Promise<PoSessionDeliveryService>;
222
260
  /**
223
261
  * Installs a provider-owned endpoint in the current Cordis context.
224
262
  *
@@ -226,13 +264,13 @@ export declare function createSessionDeliveryService(options: SessionDeliverySer
226
264
  * `ctx.get` is strict and hides an implementation while its providing fiber is
227
265
  * LOADING, which is the whole of that fiber's own callback.
228
266
  */
229
- export declare function provideSessionDeliveryService(context: Context, options: SessionDeliveryServiceOptions): {
230
- readonly service: DoomSessionDeliveryService;
267
+ export declare function provideSessionDeliveryService(context: Context, options: SessionDeliveryServiceOptions): Promise<{
268
+ readonly service: PoSessionDeliveryService;
231
269
  readonly close: () => Promise<void>;
232
- };
270
+ }>;
233
271
  //#endregion
234
272
  //#region src/services/sessionIntercom/type.d.ts
235
- export declare const DOOM_SESSION_INTERCOM_SERVICE = "doom/session-intercom";
273
+ export declare const PO_SESSION_INTERCOM_SERVICE = "po/session-intercom";
236
274
  type SessionReportStatus = 'done' | 'blocked' | 'failed';
237
275
  interface SessionIntercomMessage {
238
276
  readonly deliveryId: string;
@@ -242,7 +280,7 @@ interface SessionIntercomMessage {
242
280
  readonly correlationId?: string;
243
281
  readonly text: string;
244
282
  readonly reportStatus?: SessionReportStatus;
245
- readonly state: DoomSessionInboxEntry['state'];
283
+ readonly state: PoSessionInboxEntry['state'];
246
284
  readonly consumed: boolean;
247
285
  }
248
286
  interface SessionIntercomSendRequest {
@@ -256,10 +294,10 @@ interface SessionIntercomOptions {
256
294
  readonly selfReference: string;
257
295
  readonly directory: SessionDirectory;
258
296
  readonly groups: SessionGroupStore;
259
- readonly delivery: DoomSessionDeliveryService;
297
+ readonly delivery: PoSessionDeliveryService;
260
298
  }
261
299
  interface SessionIntercom {
262
- discover(): readonly DiscoveredSession[];
300
+ discover(): Promise<readonly DiscoveredSession[]>;
263
301
  send(request: SessionIntercomSendRequest): Promise<{
264
302
  deliveryId: string;
265
303
  }>;
@@ -268,18 +306,18 @@ interface SessionIntercom {
268
306
  }): Promise<{
269
307
  deliveryId: string;
270
308
  }>;
271
- messages(): readonly SessionIntercomMessage[];
272
- delivery(deliveryId: string): DoomSessionOutboxEntry | undefined;
309
+ messages(): Promise<readonly SessionIntercomMessage[]>;
310
+ delivery(deliveryId: string): Promise<PoSessionOutboxEntry | undefined>;
273
311
  }
274
312
  interface SessionGroupDeliveryAuthorizationOptions {
275
313
  readonly selfReference: string;
276
314
  readonly groups: SessionGroupStore;
277
315
  readonly peerReference: (peerKey: string) => string | undefined;
278
- readonly fallback?: (peerKey: string, metadata: DoomSessionDeliveryMetadata | undefined) => boolean;
316
+ readonly fallback?: (peerKey: string, metadata: PoSessionDeliveryMetadata | undefined) => boolean | Promise<boolean>;
279
317
  }
280
318
  declare module '@deepseek-ai/cordis' {
281
319
  interface Context {
282
- 'doom/session-intercom': SessionIntercom;
320
+ 'po/session-intercom': SessionIntercom;
283
321
  }
284
322
  }
285
323
  export declare function readSessionIntercom(context: Context): SessionIntercom | undefined;
@@ -289,7 +327,7 @@ export declare function requireSessionIntercom(context: Context): SessionInterco
289
327
  /** Agent-facing intercom operations. A composition may acquire this service without gaining session controls. */
290
328
  export declare function createSessionIntercom(options: SessionIntercomOptions): SessionIntercom;
291
329
  /** Builds the dynamic delivery check used before every send, retry, and recipient acceptance. */
292
- export declare function createSessionGroupDeliveryAuthorizer(options: SessionGroupDeliveryAuthorizationOptions): (peerKey: string, metadata: DoomSessionDeliveryMetadata | undefined) => boolean;
330
+ export declare function createSessionGroupDeliveryAuthorizer(options: SessionGroupDeliveryAuthorizationOptions): (peerKey: string, metadata: PoSessionDeliveryMetadata | undefined) => Promise<boolean>;
293
331
  //#endregion
294
- export type { DiscoveredSession, DoomSessionDeliveryInboxState, DoomSessionDeliveryMetadata, DoomSessionDeliveryMode, DoomSessionDeliveryRequest, DoomSessionDeliveryService, DoomSessionInboxEntry, DoomSessionInboxQuery, DoomSessionOutboxEntry, RemoteSessionReference, SessionActivityState, SessionCommunicationGroup, SessionDeliveryServiceOptions, SessionDirectory, SessionDirectoryOptions, SessionDiscoveryGrant, SessionGroupDeliveryAuthorizationOptions, SessionGroupMutation, SessionGroupStore, SessionGroupStoreOptions, SessionHostReachability, SessionIntercom, SessionIntercomMessage, SessionIntercomOptions, SessionIntercomSendRequest, SessionPeer, SessionPeerConfig, SessionPeerEnvelope, SessionPeerReplayGuard, SessionPresenceFacts, SessionPresenceObservation, SessionReportStatus, SessionRuntimeState, SessionVoiceReadiness };
332
+ export type { DiscoveredSession, PoSessionDeliveryInboxState, PoSessionDeliveryMetadata, PoSessionDeliveryMode, PoSessionDeliveryRequest, PoSessionDeliveryService, PoSessionInboxEntry, PoSessionInboxQuery, PoSessionOutboxEntry, RemoteSessionReference, SessionActivityState, SessionCommunicationGroup, SessionDeliveryServiceOptions, SessionDirectory, SessionDirectoryOptions, SessionDiscoveryGrant, SessionGroupDeliveryAuthorizationOptions, SessionGroupMutation, SessionGroupStore, SessionGroupStoreOptions, SessionHostReachability, SessionIntercom, SessionIntercomMessage, SessionIntercomOptions, SessionIntercomSendRequest, SessionPeer, SessionPeerConfig, SessionPeerEnvelope, SessionPeerReplayGuard, SessionPeerReplayGuardAsync, SessionPresenceFacts, SessionPresenceObservation, SessionReportStatus, SessionRuntimeState, SessionVoiceReadiness };
295
333
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":["_0"],"sources":["../src/services/backgroundWorkService/index.ts","../src/services/peerTransport/index.ts","../src/services/sessionDirectory/type.ts","../src/services/sessionDirectory/index.ts","../src/services/sessionGroups/type.ts","../src/services/sessionGroups/index.ts","../src/services/sessionDelivery/type.ts","../src/services/sessionDelivery/index.ts","../src/services/sessionIntercom/type.ts","../src/services/sessionIntercom/index.ts"],"mappings":";;;;;wBAmBgB,4BAA4B,KAAK,UAAU;;wBAoE3C,6BAA6B,SAAS;;;cC/EhD;UAUW;WACN;WACA;WACA;;WAEA;;WAEA;;UAGM;WACN,gBAAgB;WAChB;WACA,gBAAgB;;UAGV;WACN;WACA;;UAGM;WACN;WACA;WACA;WACA;;UAGM;EACf,MAAM,SAAS,SAAS;EACxB;;wBAqCc,sBAAsB;;wBAKtB,sBAAsB,wBAAwB;;wBAyB9C,4BAA4B,gBAAgB;wBAK5C,qBAAqB,gBAAgB;wBAWrC,mBACd,sBACA,MAAM,aACN,gBACA,kBACA,cACA,eACC;;wBAYa,sBAAsB,wBAAwB;wBAyC9C,kBACd,QAAQ,mBACR,SAAS,SACT,cACA,eACC;;wBAmCa,wBAAwB;WAC7B,OAAO;WACP;WACA,eAAe;IACtB;;;KC3OQ;KACA;KACA;KACA;UAEK;WACN,cAAc;WACd,SAAS;WACT,UAAU;WACV;aACE;aACA,WAAW;;;UAIP,mCAAmC;WACzC;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;UAGM;WACN;WACA;;UAGM,0BAA0B;WAChC;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;UAGM;WACN;WACA,qBACP,yBACA,SAAS,SAAS,KAAK,mEACpB;;UAGU;EACf,QAAQ,aAAa;EACrB,oBACE,gBACA,yBACA,uBAAuB;EAEzB,iBAAiB;EACjB,SAAS,yBAAyB,oBAAoB,+BAA+B;EACrF,sBAAsB,yBAAyB;EAC/C,UAAU,yBAAyB,WA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WACA,WAAW;WACX,QAAQ;WACR,UAAU;;UAGJ;EACf,qBAAqB;EACrB,KAAK,SAAS,6BAA6B;IAAU;;EACrD,OACE,SAAS;aAAwC,QAAQ;MACxD;IAAU;;EACb,qBAAqB;EACrB,SAAS,qBAAqB;;UAGf;WACN;WACA,QAAQ;WACR,gBAAgB;WAChB,YAAY,iBAAiB,UAAU;;;YAItC;IACR,yBAAyB;;;wBAIb,oBAAoB,SAAS,UAAU;wBAIvC,uBAAuB,SAAS,UAAU;;;;wBCrC1C,sBAAsB,SAAS,yBAAyB;;wBA2ExD,qCACd,SAAS,4CACP,iBAAiB,UAAU"}
1
+ {"version":3,"file":"index.d.mts","names":["_0"],"sources":["../src/services/backgroundWorkService/index.ts","../src/services/sessionGroups/type.ts","../src/services/peerTransport/config.ts","../src/services/peerTransport/sync.ts","../src/services/peerTransport/index.ts","../src/services/sessionDirectory/type.ts","../src/services/sessionDirectory/index.ts","../src/services/sessionGroups/index.ts","../src/services/sessionDelivery/type.ts","../src/services/sessionDelivery/index.ts","../src/services/sessionIntercom/type.ts","../src/services/sessionIntercom/index.ts"],"mappings":";;;;;;wBAmBgB,4BAA4B,KAAK,UAAU;;wBAoE3C,6BAA6B,SAAS;;;;KCpF1C,wBAAwB,QAAQ,WAAW;UAEtC;WACN;WACA;WACA;WACA;;UAGM;WACN;WACA;WACA;WACA;WACA;;UAGM;;;;;WAKN,UAAU;WACV,uBAAuB,mBAAmB,OAAO;WACjD,sBAAsB,iBAAiB;;UAGjC;EACf,OAAO,iBAAiB,wBAAwB,6BAA6B,QAAQ;EACrF,OAAO,UAAU,uBAAuB,QAAQ;EAChD,IAAI,kBAAkB,QAAQ;EAC9B,UAAU,0BAA0B,iBAAiB;EACrD,WAAW,iBAAiB,yBAAyB,0BAA0B;EAC/E,SAAS;;qBAGE,kCAAkC;EAC7C,YAAY,iBAAiB,kBAAkB;;;;cCpCpC;UAWI;WACN;WACA;WACA;;WAEA;;WAEA;;UAGM;WACN,gBAAgB;WA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 -1,2 +1 @@
1
- import { C as provideBackgroundWorkService, S as createBackgroundWorkService, _ as peerRequestHeaders, a as createSessionGroupDeliveryAuthorizer, b as sessionPeerConfigPath, c as readSessionIntercom, d as SessionGroupRevisionError, f as createSessionDirectory, h as parseRemoteSessionReference, i as readDoomSessionDelivery, l as requireSessionIntercom, m as createPeerReplayGuard, n as provideSessionDeliveryService, o as createSessionIntercom, p as createPeerCommunication, r as DOOM_SESSION_DELIVERY_SERVICE, s as DOOM_SESSION_INTERCOM_SERVICE, t as createSessionDeliveryService, u as createSessionGroupStore, v as peerSessionReference, x as verifyPeerRequest, y as readSessionPeerConfig } from "./sessionDelivery-DpLWlaum.mjs";
2
- export { DOOM_SESSION_DELIVERY_SERVICE, DOOM_SESSION_INTERCOM_SERVICE, SessionGroupRevisionError, createBackgroundWorkService, createPeerCommunication, createPeerReplayGuard, createSessionDeliveryService, createSessionDirectory, createSessionGroupDeliveryAuthorizer, createSessionGroupStore, createSessionIntercom, parseRemoteSessionReference, peerRequestHeaders, peerSessionReference, provideBackgroundWorkService, provideSessionDeliveryService, readDoomSessionDelivery, readSessionIntercom, readSessionPeerConfig, requireSessionIntercom, sessionPeerConfigPath, verifyPeerRequest };
1
+ export { r as PO_SESSION_DELIVERY_SERVICE, s as PO_SESSION_INTERCOM_SERVICE, d as SessionGroupRevisionError, E as createBackgroundWorkService, p as createPeerCommunication, S as createPeerReplayGuard, m as createPeerReplayGuardAsync, t as createSessionDeliveryService, f as createSessionDirectory, a as createSessionGroupDeliveryAuthorizer, u as createSessionGroupStore, o as createSessionIntercom, g as parseRemoteSessionReference, v as peerRequestHeaders, y as peerSessionReference, D as provideBackgroundWorkService, n as provideSessionDeliveryService, i as readPoSessionDelivery, c as readSessionIntercom, C as readSessionPeerConfig, b as readSessionPeerConfigAsync, l as requireSessionIntercom, T as sessionPeerConfigPath, x as verifyPeerRequest } from "./sessionDelivery-4svjzWUW.mjs";