@hwip/cli 0.1.21 → 0.1.22
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.
|
@@ -4,8 +4,12 @@
|
|
|
4
4
|
* the account has signed in. Kept apart so the recorder's tests need none of it.
|
|
5
5
|
*/
|
|
6
6
|
import { type OutboxChunk, type RecorderRecipient, type SealedChunk, type UploadOutcome } from './turn-recorder.js';
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The turns route has its own per-minute allowance on the server (240, per account); chunks keep to half
|
|
9
|
+
* of it, so a second machine still has room. 30 was too few: on 2026-11-10 nineteen live sessions made
|
|
10
|
+
* chunks about as fast as 30 a minute let them out, and a backlog of ~100 never drained.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RECORDER_UPLOADS_PER_MINUTE = 120;
|
|
9
13
|
/** Seal one plaintext body (`{sessionKey, seq, events}`) as a push-v1 envelope for the recipients. */
|
|
10
14
|
export declare const sealChunk: (plaintext: string, recipients: RecorderRecipient[]) => Promise<SealedChunk>;
|
|
11
15
|
export interface AccountRecipientsDeps {
|
|
@@ -14,8 +14,12 @@ const subscriber_trust_js_1 = require("./subscriber-trust.js");
|
|
|
14
14
|
const trust_pins_js_1 = require("./trust-pins.js");
|
|
15
15
|
const turn_recorder_js_1 = require("./turn-recorder.js");
|
|
16
16
|
const UPLOAD_TIMEOUT_MS = 15_000;
|
|
17
|
-
/**
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The turns route has its own per-minute allowance on the server (240, per account); chunks keep to half
|
|
19
|
+
* of it, so a second machine still has room. 30 was too few: on 2026-11-10 nineteen live sessions made
|
|
20
|
+
* chunks about as fast as 30 a minute let them out, and a backlog of ~100 never drained.
|
|
21
|
+
*/
|
|
22
|
+
exports.RECORDER_UPLOADS_PER_MINUTE = 120;
|
|
19
23
|
/** How long a session waits after a 403 before the same chunk is tried again. */
|
|
20
24
|
const RECORDER_KEY_RETRY_MS = 5 * 60_000;
|
|
21
25
|
/** After this many 403s in a row the chunk is dropped: the key it was sealed with is not the one on file, and will not be. */
|