agent-afk 5.295.3 → 5.295.4
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/agent/peer/inbox-retention.d.ts +2 -0
- package/dist/agent/peer/inbox-store.d.ts +2 -0
- package/dist/cli.mjs +320 -320
- package/dist/index.mjs +132 -132
- package/dist/telegram.mjs +154 -154
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const DELIVERED_RETENTION_INTERVAL_MS: number;
|
|
2
|
+
export declare const UNACKED_RETENTION_MAX_AGE_MS: number;
|
|
2
3
|
export declare const DELIVERED_RECEIPT_MAX_AGE_MS: number;
|
|
3
4
|
export interface PruneDeliveredReceiptsOpts {
|
|
4
5
|
sessionId: string;
|
|
@@ -12,5 +13,6 @@ export interface PruneResult {
|
|
|
12
13
|
pruned: number;
|
|
13
14
|
skippedHasPending: number;
|
|
14
15
|
skippedFresh: number;
|
|
16
|
+
skippedUnacked: number;
|
|
15
17
|
}
|
|
16
18
|
export declare function pruneDeliveredReceipts(opts: PruneDeliveredReceiptsOpts): Promise<PruneResult>;
|
|
@@ -22,6 +22,8 @@ export declare function dropHeld(sessionId: string, file: string): Promise<boole
|
|
|
22
22
|
export declare function countPending(sessionId: string): Promise<number>;
|
|
23
23
|
export declare function reclaimDelivered(sessionId: string, file: string): Promise<boolean>;
|
|
24
24
|
export declare function findDeliveredEnvelope(sessionId: string, messageId: string): Promise<PeerEnvelope | null>;
|
|
25
|
+
export declare function writeInjectionAck(sessionId: string, file: string): Promise<void>;
|
|
26
|
+
export declare function recoverUnackedDelivered(sessionId: string): Promise<string[]>;
|
|
25
27
|
export declare function sweepPeerInboxes(opts: {
|
|
26
28
|
liveSessionIds: ReadonlySet<string>;
|
|
27
29
|
maxAgeMs?: number;
|