@ghostlytools/cli 1.12.1 → 1.13.1
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/README.md +8 -7
- package/dist/assets/{api-jRUXnBdX.js → api-DF36rBJK.js} +2 -2
- package/dist/assets/{api-BwEgbvvK.js → api-Dnq86JAA.js} +139 -41
- package/dist/assets/api-Dnq86JAA.js.map +1 -0
- package/dist/assets/{apiKit-BlsNk-Cx.js → apiKit-nLK4jeTq.js} +3 -3
- package/dist/assets/{apiKit-BlsNk-Cx.js.map → apiKit-nLK4jeTq.js.map} +1 -1
- package/dist/assets/{appFetch-CW9fJPHh.js → appFetch-wqBWi3Ry.js} +2 -2
- package/dist/assets/{appFetch-CW9fJPHh.js.map → appFetch-wqBWi3Ry.js.map} +1 -1
- package/dist/assets/{apps-CL8TXHhu.js → apps-DBVhKpfe.js} +10 -10
- package/dist/assets/apps-DBVhKpfe.js.map +1 -0
- package/dist/assets/{apps-BcG4u6SM.js → apps-nLtyhC2f.js} +1 -1
- package/dist/assets/{backup-BA41EDvh.js → backup-Bczllmzf.js} +4 -4
- package/dist/assets/{backup-BA41EDvh.js.map → backup-Bczllmzf.js.map} +1 -1
- package/dist/assets/{backup-xZfV-ytw.js → backup-D6s0LQdg.js} +1 -1
- package/dist/assets/{bitcoind-Dh7n9amb.js → bitcoind-DML_-Xbv.js} +2 -2
- package/dist/assets/{bitcoind-Dh7n9amb.js.map → bitcoind-DML_-Xbv.js.map} +1 -1
- package/dist/assets/{buttons-SH1tNRh7.js → buttons-B3C3vdhH.js} +30 -9
- package/dist/assets/buttons-B3C3vdhH.js.map +1 -0
- package/dist/assets/buttons-DaY5FYlV.js +1 -0
- package/dist/assets/{client-DGS-atRu.js → client-B7jRrSnb.js} +3 -3
- package/dist/assets/{client-DGS-atRu.js.map → client-B7jRrSnb.js.map} +1 -1
- package/dist/assets/{domainProofs-BDNP1dIy.js → domainProofs-b3Y1Gj9g.js} +6 -2
- package/dist/assets/{domainProofs-BDNP1dIy.js.map → domainProofs-b3Y1Gj9g.js.map} +1 -1
- package/dist/assets/{errors-DDLFO4Gf.js → errors-JVJsO8Iu.js} +18 -2
- package/dist/assets/errors-JVJsO8Iu.js.map +1 -0
- package/dist/assets/{fixedHosts-CPSsGOI2.js → fixedHosts-H3i6o9Iy.js} +2 -2
- package/dist/assets/{fixedHosts-CPSsGOI2.js.map → fixedHosts-H3i6o9Iy.js.map} +1 -1
- package/dist/assets/{ghostly_iroh_web-DIj5xGmR.js → ghostly_iroh_web-9VOwZcJQ.js} +30 -35
- package/dist/assets/ghostly_iroh_web-9VOwZcJQ.js.map +1 -0
- package/dist/assets/ghostly_iroh_web_bg.wasm +0 -0
- package/dist/assets/{groupMeta-DxuJzko_.js → groupMeta--fxSh792.js} +165 -20
- package/dist/assets/groupMeta--fxSh792.js.map +1 -0
- package/dist/assets/{host-BxM-HMr0.js → host-CGzVFfMz.js} +211 -58
- package/dist/assets/host-CGzVFfMz.js.map +1 -0
- package/dist/assets/{hyperdhtRelay-bjNGacf5.js → hyperdhtRelay-B4_wdCtx.js} +2 -2
- package/dist/assets/{hyperdhtRelay-bjNGacf5.js.map → hyperdhtRelay-B4_wdCtx.js.map} +1 -1
- package/dist/assets/{hyperdhtRelay-DLUiwfnt.js → hyperdhtRelay-Ce-gWsRY.js} +2 -2
- package/dist/assets/{hyperdhtRelay-DLUiwfnt.js.map → hyperdhtRelay-Ce-gWsRY.js.map} +1 -1
- package/dist/assets/{irohWeb-CbnGtUo6.js → irohWeb-Dp1i8v6n.js} +13 -12
- package/dist/assets/irohWeb-Dp1i8v6n.js.map +1 -0
- package/dist/assets/{main-CwTaepxR.js → main-C8J53SwH.js} +68 -63
- package/dist/assets/main-C8J53SwH.js.map +1 -0
- package/dist/assets/{mainline-CVrd0C1n.js → mainline-DY95WbuK.js} +2 -2
- package/dist/assets/{mainline-CVrd0C1n.js.map → mainline-DY95WbuK.js.map} +1 -1
- package/dist/assets/{ownDid-DY3rYqDI.js → ownDid-oa-T2vmZ.js} +9 -5
- package/dist/assets/ownDid-oa-T2vmZ.js.map +1 -0
- package/dist/assets/{ownStatus-DtzIllg2.js → ownStatus-Bc08eNJY.js} +7 -6
- package/dist/assets/ownStatus-Bc08eNJY.js.map +1 -0
- package/dist/assets/{pairedTransports-BKmvlKz1.js → pairedTransports-Dppn8lUN.js} +3 -3
- package/dist/assets/pairedTransports-Dppn8lUN.js.map +1 -0
- package/dist/assets/{profiles-BOYGlmu2.js → profiles-B2uy04ph.js} +3 -3
- package/dist/assets/{profiles-BOYGlmu2.js.map → profiles-B2uy04ph.js.map} +1 -1
- package/dist/assets/{registry-Bep4umOM.js → registry-DbTLLs3y.js} +9 -5
- package/dist/assets/registry-DbTLLs3y.js.map +1 -0
- package/dist/assets/{registry-4W1LGlCF.js → registry-bLIfG619.js} +1 -1
- package/dist/assets/{relay-Cjfmdec0.js → relay-CHWg5hpZ.js} +73 -11
- package/dist/assets/relay-CHWg5hpZ.js.map +1 -0
- package/dist/assets/{resolve-CIc3KZMV.js → resolve-DNX-eecG.js} +9 -4
- package/dist/assets/resolve-DNX-eecG.js.map +1 -0
- package/dist/assets/secretGuard-Bh11MPdI.js +1 -0
- package/dist/assets/{secretGuard-BrATm_gl.js → secretGuard-oz_3hBfW.js} +19 -2
- package/dist/assets/{secretGuard-BrATm_gl.js.map → secretGuard-oz_3hBfW.js.map} +1 -1
- package/dist/assets/{server-D4gf-LnD.js → server-DWJ4RzJn.js} +748 -222
- package/dist/assets/server-DWJ4RzJn.js.map +1 -0
- package/dist/assets/{translate-BcbSWkuq.js → translate-CHj_PdLg.js} +13 -8
- package/dist/assets/translate-CHj_PdLg.js.map +1 -0
- package/dist/assets/{waitNotice-DQvZgz2T.js → waitNotice-Cvz5CiKR.js} +57 -3
- package/dist/assets/waitNotice-Cvz5CiKR.js.map +1 -0
- package/dist/ghostly.mjs +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/assets/api-BwEgbvvK.js.map +0 -1
- package/dist/assets/apps-CL8TXHhu.js.map +0 -1
- package/dist/assets/buttons-CsGdQNnR.js +0 -1
- package/dist/assets/buttons-SH1tNRh7.js.map +0 -1
- package/dist/assets/errors-DDLFO4Gf.js.map +0 -1
- package/dist/assets/ghostly_iroh_web-DIj5xGmR.js.map +0 -1
- package/dist/assets/groupMeta-DxuJzko_.js.map +0 -1
- package/dist/assets/host-BxM-HMr0.js.map +0 -1
- package/dist/assets/irohWeb-CbnGtUo6.js.map +0 -1
- package/dist/assets/main-CwTaepxR.js.map +0 -1
- package/dist/assets/ownDid-DY3rYqDI.js.map +0 -1
- package/dist/assets/ownStatus-DtzIllg2.js.map +0 -1
- package/dist/assets/pairedTransports-BKmvlKz1.js.map +0 -1
- package/dist/assets/registry-Bep4umOM.js.map +0 -1
- package/dist/assets/relay-Cjfmdec0.js.map +0 -1
- package/dist/assets/resolve-CIc3KZMV.js.map +0 -1
- package/dist/assets/secretGuard-Bm6nci0I.js +0 -1
- package/dist/assets/server-D4gf-LnD.js.map +0 -1
- package/dist/assets/translate-BcbSWkuq.js.map +0 -1
- package/dist/assets/waitNotice-DQvZgz2T.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as fromZ32, c as toBase64, d as utf8Decode, f as utf8Encode, i as fromBase64Url, l as toBase64Url, n as concatBytes, o as isZ32Key, r as fromBase64, s as randomBytes, t as bytesEqual, u as toZ32 } from "./bytes-C1DNGY18.js";
|
|
2
2
|
import { a as stripHidden, i as sanitizeNick, n as hasVisible, o as trimEndOf, r as sanitizeDisplayText, s as unwrapPasted } from "./text-li76pThX.js";
|
|
3
3
|
import { i as parseLinkPreview, o as sanitizeAvatar } from "./linkPreview-DdMf-YAc.js";
|
|
4
|
-
import { C as generateEncryptionKey, S as encrypt, T as tryDecrypt, a as checkedDescriptors, c as irohRelayUrl, f as relayedTransports, i as automaticTransport, l as rankTransports, m as HOLD_CAPABILITY, n as RELAY_WITH_SECRETS, p as transportOrder, r as TRANSPORTS, t as RELAY_URL, u as relayUrl, w as sealedLength } from "./pairedTransports-
|
|
4
|
+
import { C as generateEncryptionKey, S as encrypt, T as tryDecrypt, a as checkedDescriptors, c as irohRelayUrl, f as relayedTransports, i as automaticTransport, l as rankTransports, m as HOLD_CAPABILITY, n as RELAY_WITH_SECRETS, p as transportOrder, r as TRANSPORTS, t as RELAY_URL, u as relayUrl, w as sealedLength } from "./pairedTransports-Dppn8lUN.js";
|
|
5
5
|
import { S as verify, _ as identityFromSeed, a as createRelayPayload, g as createIdentity, i as RELAY_PAYLOAD_MAX_BYTES, l as parseRelayPayload, n as PKARR_FUTURE_SKEW_MS, o as measureRecords, s as newerPacket, t as MAX_DNS_PACKET_BYTES, v as identityFromSeedB64, x as sign, y as publicKeyFromZ32 } from "./pkarr-BQo4PcCg.js";
|
|
6
|
-
import { a as RelaysFailedError, d as traceLink, h as publishedNowhere, m as isDiscoveryBudgetError, p as budgetRetryMs } from "./relay-
|
|
6
|
+
import { a as RelaysFailedError, d as traceLink, h as publishedNowhere, m as isDiscoveryBudgetError, p as budgetRetryMs } from "./relay-CHWg5hpZ.js";
|
|
7
7
|
import { a as IDENTITY_PROOF_CAPABILITY, t as IDENTITY_FRAME_WINDOW_MS } from "./identityProofs-Cksc_K7_.js";
|
|
8
8
|
import { n as engineError } from "./engineErrors--9hfgKlK.js";
|
|
9
9
|
import b4a from "b4a";
|
|
@@ -3346,6 +3346,7 @@ var VIEWER_PERMISSIONS_POLICY = [
|
|
|
3346
3346
|
"serial",
|
|
3347
3347
|
"hid",
|
|
3348
3348
|
"clipboard-read",
|
|
3349
|
+
"clipboard-write",
|
|
3349
3350
|
"idle-detection",
|
|
3350
3351
|
"local-fonts",
|
|
3351
3352
|
"window-management",
|
|
@@ -6780,6 +6781,15 @@ function removedCardText(of, title) {
|
|
|
6780
6781
|
return `🗑 ${of === "task" ? "Task" : "Routine"} removed${title ? `: ${title}` : ""}`;
|
|
6781
6782
|
}
|
|
6782
6783
|
/**
|
|
6784
|
+
* A message's text without the line that is its app card's link (`statusCardText` puts it on a line of its own for an
|
|
6785
|
+
* older app): what a line quoting the message says where the card is not drawn, never the bundle's raw link. Any other
|
|
6786
|
+
* message's text as it is.
|
|
6787
|
+
*/
|
|
6788
|
+
function withoutAppLink(text, card) {
|
|
6789
|
+
const url = card?.kind === "app" ? card.url : void 0;
|
|
6790
|
+
return url ? text.split("\n").filter((line) => line.trim() !== url).join("\n") : text;
|
|
6791
|
+
}
|
|
6792
|
+
/**
|
|
6783
6793
|
* The text a card's message carries: what an app without cards shows, the DHT floor carries, the chat list previews
|
|
6784
6794
|
* and search finds. Plain lines, the first naming the card, no bars or layout that would read badly elsewhere.
|
|
6785
6795
|
*/
|
|
@@ -7873,6 +7883,8 @@ var DhtDelivery = class DhtDelivery {
|
|
|
7873
7883
|
* one any more), not at the next keep-alive four minutes on. Any envelope that goes out replaces it.
|
|
7874
7884
|
*/
|
|
7875
7885
|
withdrawal;
|
|
7886
|
+
/** When the last withdrawal's envelope went (its `lastPublish`), for `withdrawalWaits`. */
|
|
7887
|
+
withdrewAt = -1;
|
|
7876
7888
|
/** The sequence of the last envelope of the contact that was past its expiry (traced once). */
|
|
7877
7889
|
expiredSeen = 0;
|
|
7878
7890
|
controlDue = 0;
|
|
@@ -7914,6 +7926,8 @@ var DhtDelivery = class DhtDelivery {
|
|
|
7914
7926
|
namedRev;
|
|
7915
7927
|
/** A reaction of this side waits to ride on an envelope, or the contact's reactions wait to be said taken. */
|
|
7916
7928
|
reactionsDue = false;
|
|
7929
|
+
/** The text on the floor whose envelope left the reactions no room (its id): they wait for the ones its backoff publishes. */
|
|
7930
|
+
crowdedBy;
|
|
7917
7931
|
constructor(options) {
|
|
7918
7932
|
this.options = options;
|
|
7919
7933
|
const { peerRejected: _peerRejected, ...state } = structuredClone(options.state ?? emptyDhtDeliveryState());
|
|
@@ -8333,23 +8347,25 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8333
8347
|
if (edit !== void 0 && (reply !== void 0 || !ID$2.test(edit[0]) || !validEditNumber(edit[1]))) return "Invalid message.";
|
|
8334
8348
|
if (utf8Encode(text).length > 256) return DHT_TEXT_TOO_LONG;
|
|
8335
8349
|
if (/cashu[AB][A-Za-z0-9_-]+/i.test(text)) return "Payment tokens cannot be sent through DHT delivery.";
|
|
8336
|
-
const now = this.clock(), pending = this.state.pending;
|
|
8337
|
-
|
|
8338
|
-
if (pending?.message[0] === id && pending.expires > now && pending.attempts >= MAX_ATTEMPTS) return "DHT retry budget exhausted. Wait for expiry before retrying this message.";
|
|
8339
|
-
const next = pending?.message[0] === id && pending.expires > now ? pending : {
|
|
8350
|
+
const now = this.clock(), pending = this.state.pending, mine = pending?.message[0] === id && pending.expires > now ? pending : void 0;
|
|
8351
|
+
const next = mine ?? {
|
|
8340
8352
|
message: [
|
|
8341
8353
|
id,
|
|
8342
8354
|
timestamp,
|
|
8343
8355
|
text
|
|
8344
8356
|
],
|
|
8345
|
-
expires: now +
|
|
8357
|
+
expires: now + 3e5,
|
|
8346
8358
|
attempts: 0,
|
|
8347
8359
|
next: now,
|
|
8348
8360
|
...reply && { reply },
|
|
8349
8361
|
...edit && { edit }
|
|
8350
8362
|
};
|
|
8351
8363
|
const error = this.packetError(next.message, next.expires, next.reply, next.edit);
|
|
8352
|
-
|
|
8364
|
+
const tooBig = error && next.reply ? this.packetError(next.message, next.expires) : error;
|
|
8365
|
+
if (tooBig) return tooBig;
|
|
8366
|
+
if (pending && pending.expires > now && !mine) return "One DHT text can await a receipt at a time. Wait for its receipt or expiry before sending another.";
|
|
8367
|
+
if (mine && mine.attempts >= MAX_ATTEMPTS) return "DHT retry budget exhausted. Wait for expiry before retrying this message.";
|
|
8368
|
+
return null;
|
|
8353
8369
|
}
|
|
8354
8370
|
/**
|
|
8355
8371
|
* Measured, not built (`bodyFits`): the outbox asks it of every waiting text at each look, and a text that waits as no
|
|
@@ -8402,6 +8418,10 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8402
8418
|
pending: next
|
|
8403
8419
|
});
|
|
8404
8420
|
this.changed();
|
|
8421
|
+
if (this.withdrawalWaits()) {
|
|
8422
|
+
this.schedule();
|
|
8423
|
+
return null;
|
|
8424
|
+
}
|
|
8405
8425
|
try {
|
|
8406
8426
|
await this.publish(true);
|
|
8407
8427
|
this.schedule();
|
|
@@ -8442,7 +8462,7 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8442
8462
|
const id = dhtFileId(file.wireId);
|
|
8443
8463
|
if (reply !== void 0 && !REPLY_TO.test(reply)) reply = void 0;
|
|
8444
8464
|
const error = this.validate(file.name, timestamp, id);
|
|
8445
|
-
if (error) return error ===
|
|
8465
|
+
if (error) return error === "DHT text is limited to 256 UTF-8 bytes. Shorten it or choose a live connection." ? DHT_FILE_TOO_LARGE : error;
|
|
8446
8466
|
const now = Date.now(), pending = this.state.pending;
|
|
8447
8467
|
if (pending?.message[0] === id && pending.expires > now) return pending;
|
|
8448
8468
|
const message = [
|
|
@@ -8505,6 +8525,10 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8505
8525
|
pending: next
|
|
8506
8526
|
});
|
|
8507
8527
|
this.changed();
|
|
8528
|
+
if (this.withdrawalWaits()) {
|
|
8529
|
+
this.schedule();
|
|
8530
|
+
return null;
|
|
8531
|
+
}
|
|
8508
8532
|
try {
|
|
8509
8533
|
await this.publish(true);
|
|
8510
8534
|
} catch (error) {
|
|
@@ -8528,6 +8552,8 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8528
8552
|
* one's place on the relays, so a contact who looks later finds no text. Resolves once the state without it is saved;
|
|
8529
8553
|
* the new envelope goes after. One that does not go (no relay reachable) is tried again within seconds (`withdrawal`):
|
|
8530
8554
|
* a reader takes the withdrawn envelope until its expiry and the clock skew allowed past it (`DHT_EXPIRY_SKEW_MS`).
|
|
8555
|
+
* It goes at once, spacing or not: the deleted text is out of reach from then on. The text that takes the floor next
|
|
8556
|
+
* waits out the spacing instead (`withdrawalWaits`).
|
|
8531
8557
|
*/
|
|
8532
8558
|
async withdraw(wireId) {
|
|
8533
8559
|
const expires = await this.serialize(async () => {
|
|
@@ -8549,9 +8575,19 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8549
8575
|
try {
|
|
8550
8576
|
await this.publish(true);
|
|
8551
8577
|
} catch {}
|
|
8578
|
+
this.withdrewAt = this.lastPublish;
|
|
8552
8579
|
this.schedule();
|
|
8553
8580
|
});
|
|
8554
8581
|
}
|
|
8582
|
+
/**
|
|
8583
|
+
* The last envelope was a withdrawal's, inside the publication spacing: the text that takes the floor now goes once
|
|
8584
|
+
* the spacing allows (`schedule`), not in an envelope of its own at once. Deleted then, it never went, so it costs
|
|
8585
|
+
* no withdrawal: deleting 10 texts queued for an away contact one after the other, each one's withdrawal and the next
|
|
8586
|
+
* text's envelope put 10 envelopes on every relay in under 2 s, each replaced a moment later (bug hunt, 2026-11-15).
|
|
8587
|
+
*/
|
|
8588
|
+
withdrawalWaits() {
|
|
8589
|
+
return this.withdrewAt === this.lastPublish && this.clock() - this.lastPublish < 4e3;
|
|
8590
|
+
}
|
|
8555
8591
|
/** The id of what awaits its receipt on the floor now, if anything does. */
|
|
8556
8592
|
get pendingId() {
|
|
8557
8593
|
const now = this.clock(), pending = this.state.pending;
|
|
@@ -8586,6 +8622,7 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8586
8622
|
async announceReactions() {
|
|
8587
8623
|
if (!this.options.reactions?.().length) return;
|
|
8588
8624
|
this.reactionsDue = true;
|
|
8625
|
+
this.crowdedBy = void 0;
|
|
8589
8626
|
await this.serialize(async () => {
|
|
8590
8627
|
try {
|
|
8591
8628
|
await this.publish();
|
|
@@ -8669,7 +8706,7 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8669
8706
|
const reseal = this.resealDue;
|
|
8670
8707
|
const withdrawal = this.withdrawal && this.withdrawal.until > now && this.withdrawal.attempts < MAX_ATTEMPTS ? this.withdrawal : void 0;
|
|
8671
8708
|
if (!withdrawal) this.withdrawal = void 0;
|
|
8672
|
-
const keepAlive = !force && (!pending || pending.next > now) && !receiptDue && !this.
|
|
8709
|
+
const keepAlive = !force && (!pending || pending.next > now) && !receiptDue && !this.reactionsPress && !reseal && !(withdrawal && withdrawal.next <= now);
|
|
8673
8710
|
if (keepAlive && (this.controlDue > now || this.state.inviteTaken)) return;
|
|
8674
8711
|
const expires = pending?.expires ?? now - 12e4 + CONTROL_TTL;
|
|
8675
8712
|
const issued = Math.min(now, Math.max(now - DHT_ISSUED_BACK_MS, expires - (pending ? DHT_MESSAGE_TTL : CONTROL_TTL), (pending?.message[1] ?? 0) - 3e4));
|
|
@@ -8684,10 +8721,16 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8684
8721
|
}, void 0, void 0);
|
|
8685
8722
|
throw held;
|
|
8686
8723
|
}
|
|
8724
|
+
if (withdrawal) this.withdrawal = {
|
|
8725
|
+
...withdrawal,
|
|
8726
|
+
attempts: withdrawal.attempts + 1,
|
|
8727
|
+
next: now + backoff(withdrawal.attempts)
|
|
8728
|
+
};
|
|
8687
8729
|
const fittedEnvelope = this.fitted(this.sequence + 1, issued, expires, pending?.message ?? null, receipt?.id ?? null, pending?.reply, pending?.edit, pending?.forwarded, pending?.file);
|
|
8688
8730
|
const { body, reactions } = fittedEnvelope;
|
|
8689
8731
|
const reactionsWereDue = this.reactionsDue;
|
|
8690
8732
|
this.reactionsDue = !reactions && !!this.options.reactions?.().length;
|
|
8733
|
+
this.crowdedBy = this.reactionsDue && pending ? pending.message[0] : void 0;
|
|
8691
8734
|
const sequence = body[1];
|
|
8692
8735
|
await this.persist({
|
|
8693
8736
|
...this.state,
|
|
@@ -8719,11 +8762,6 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8719
8762
|
...records[0]?.label === "_dr" && { ratchet: true }
|
|
8720
8763
|
});
|
|
8721
8764
|
if (pending) this.lastPublished = DhtDelivery.facts(body, records, identity.pubKeyZ32);
|
|
8722
|
-
if (withdrawal) this.withdrawal = {
|
|
8723
|
-
...withdrawal,
|
|
8724
|
-
attempts: withdrawal.attempts + 1,
|
|
8725
|
-
next: now + backoff(withdrawal.attempts)
|
|
8726
|
-
};
|
|
8727
8765
|
try {
|
|
8728
8766
|
await this.options.transport.publish(identity, records, options);
|
|
8729
8767
|
} catch (error) {
|
|
@@ -8746,6 +8784,14 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8746
8784
|
return this.unsealedOut && !!this.options.credentials.peerKey;
|
|
8747
8785
|
}
|
|
8748
8786
|
/**
|
|
8787
|
+
* Reactions due (`reactionsDue`) that force an envelope of their own: not while the text that left them no room
|
|
8788
|
+
* (`crowdedBy`) is still retried, or each publication spends one of its attempts 4 s apart instead of at its backoff.
|
|
8789
|
+
*/
|
|
8790
|
+
get reactionsPress() {
|
|
8791
|
+
const pending = this.state.pending, now = Date.now();
|
|
8792
|
+
return this.reactionsDue && !(pending && pending.message[0] === this.crowdedBy && pending.expires > now && pending.attempts < MAX_ATTEMPTS);
|
|
8793
|
+
}
|
|
8794
|
+
/**
|
|
8749
8795
|
* The relays' request budget held the envelope back: nothing went out, so it was no attempt (a text keeps its eight),
|
|
8750
8796
|
* and what it carried (a text, a receipt, a new mode) goes the moment the budget frees a request: the text and the
|
|
8751
8797
|
* receipt as they were before, and no publication before then (`budgetUntil`) but a forced one.
|
|
@@ -8983,7 +9029,10 @@ var DhtDelivery = class DhtDelivery {
|
|
|
8983
9029
|
const theirs = this.options.reaction ? readDhtReactions(reactions) : [];
|
|
8984
9030
|
for (const reaction of theirs) await this.options.reaction?.(reaction);
|
|
8985
9031
|
const newest = theirs.reduce((max, r) => Math.max(max, r.n), 0);
|
|
8986
|
-
if (theirs.length)
|
|
9032
|
+
if (theirs.length) {
|
|
9033
|
+
this.reactionsDue = true;
|
|
9034
|
+
this.crowdedBy = void 0;
|
|
9035
|
+
}
|
|
8987
9036
|
const confirmed = receipt && this.state.pending?.message[0] === receipt ? receipt : this.state.confirmed;
|
|
8988
9037
|
if (mode !== this.state.peerMode) traceLink(this.from, "dht-peer-mode", { peerMode: mode });
|
|
8989
9038
|
if (peerPinned !== this.state.peerPinned) traceLink(this.from, "dht-peer-pinned", { peerPinned });
|
|
@@ -9203,11 +9252,13 @@ var DhtDelivery = class DhtDelivery {
|
|
|
9203
9252
|
if (!this.running || this.ticking) return;
|
|
9204
9253
|
if (this.timer) clearTimeout(this.timer);
|
|
9205
9254
|
const held = this.budgetUntil - this.clock();
|
|
9206
|
-
const due = this.
|
|
9255
|
+
const due = this.reactionsPress || this.resealDue && !this.errors.publish ? Math.max(0, this.lastPublish + 4e3 - Date.now(), held) : Infinity;
|
|
9207
9256
|
const withdrawal = this.withdrawal, now = Date.now();
|
|
9208
9257
|
const retry = withdrawal && withdrawal.until > now && withdrawal.attempts < MAX_ATTEMPTS ? Math.max(0, withdrawal.next - now, this.lastPublish + 4e3 - now, held) : Infinity;
|
|
9258
|
+
const pending = this.state.pending;
|
|
9259
|
+
const waiting = pending && pending.attempts === 0 && pending.expires > now ? Math.max(0, this.lastPublish + 4e3 - now, held) : Infinity;
|
|
9209
9260
|
const readHeld = this.readHeldUntil > 0 ? Math.max(1e3, this.readHeldUntil - Date.now()) : Infinity;
|
|
9210
|
-
this.timer = setTimeout(() => void this.tick(), Math.min(held > 0 ? Math.min(this.pollMs, held) : this.pollMs, due, retry, readHeld));
|
|
9261
|
+
this.timer = setTimeout(() => void this.tick(), Math.min(held > 0 ? Math.min(this.pollMs, held) : this.pollMs, due, retry, waiting, readHeld));
|
|
9211
9262
|
}
|
|
9212
9263
|
};
|
|
9213
9264
|
var DHT_TEXT_REFUSED = "Your contact's app does not accept text over the DHT. It is sent when you are live.";
|
|
@@ -13572,6 +13623,11 @@ var ChatFiles = class {
|
|
|
13572
13623
|
/** Files that stopped sending for the chat's window alone: they go on once another's bytes are confirmed. */
|
|
13573
13624
|
held = /* @__PURE__ */ new Set();
|
|
13574
13625
|
/**
|
|
13626
|
+
* The entries not ended (`track`): what is still to come or under way is read from these, not from every file the
|
|
13627
|
+
* chat ever had, which it keeps for good. An offer read all of them, in every chat, at 100,000 files about 10 ms each.
|
|
13628
|
+
*/
|
|
13629
|
+
unended = /* @__PURE__ */ new Set();
|
|
13630
|
+
/**
|
|
13575
13631
|
* Files this side cancelled while no session carried the cancel (`pf-abort`), said on the next one. The session also
|
|
13576
13632
|
* goes for a moment when a move swaps it (its capabilities are agreed again): unsaid, the receiver showed the file
|
|
13577
13633
|
* moving, its bytes kept, until its idle nudge asked 30 s later.
|
|
@@ -13623,7 +13679,10 @@ var ChatFiles = class {
|
|
|
13623
13679
|
checkpointed: record.confirmed,
|
|
13624
13680
|
writing: Promise.resolve()
|
|
13625
13681
|
};
|
|
13682
|
+
const replaced = this.entries.get(key(record.direction, record.id));
|
|
13683
|
+
if (replaced) this.unended.delete(replaced);
|
|
13626
13684
|
this.entries.set(key(record.direction, record.id), entry);
|
|
13685
|
+
this.track(entry);
|
|
13627
13686
|
}
|
|
13628
13687
|
}
|
|
13629
13688
|
get live() {
|
|
@@ -13636,6 +13695,23 @@ var ChatFiles = class {
|
|
|
13636
13695
|
records() {
|
|
13637
13696
|
return [...this.entries.values()].map((e) => ({ ...e.record }));
|
|
13638
13697
|
}
|
|
13698
|
+
/** Bytes still to come of the files taken here, not ended (one still asked about is not taken yet). */
|
|
13699
|
+
stillToCome() {
|
|
13700
|
+
let due = 0;
|
|
13701
|
+
for (const { record } of this.unended) if (record.direction === "in" && record.state !== "asking" && !transferEnded(record)) due += Math.max(0, record.file.size - record.confirmed);
|
|
13702
|
+
return due;
|
|
13703
|
+
}
|
|
13704
|
+
/** A transfer under way: offered, moving, or being checked. */
|
|
13705
|
+
underWay() {
|
|
13706
|
+
for (const { record } of this.unended) if (record.state === "offered" || record.state === "active" || record.state === "verifying") return true;
|
|
13707
|
+
return false;
|
|
13708
|
+
}
|
|
13709
|
+
/** Bytes of the files received here that were taken without asking and are kept (or on their way). */
|
|
13710
|
+
takenUnasked() {
|
|
13711
|
+
let taken = 0;
|
|
13712
|
+
for (const { record } of this.entries.values()) if (record.direction === "in" && !record.consented && record.state !== "asking" && record.state !== "failed" && record.state !== "declined" && record.state !== "cancelled") taken += record.file.size;
|
|
13713
|
+
return taken;
|
|
13714
|
+
}
|
|
13639
13715
|
get(direction, id) {
|
|
13640
13716
|
const record = this.entries.get(key(direction, id))?.record;
|
|
13641
13717
|
return record && { ...record };
|
|
@@ -13653,8 +13729,17 @@ var ChatFiles = class {
|
|
|
13653
13729
|
return entry.in && !transferEnded(entry.record) ? Math.max(entry.in.stored, entry.record.confirmed) : entry.record.confirmed;
|
|
13654
13730
|
}
|
|
13655
13731
|
changed(entry, progress = false) {
|
|
13732
|
+
this.track(entry);
|
|
13656
13733
|
this.host.changed({ ...entry.record }, this.moved(entry), progress);
|
|
13657
13734
|
}
|
|
13735
|
+
/**
|
|
13736
|
+
* Keeps `unended` to the entries of this chat not ended. Each change of a record's state is reported (`changed`),
|
|
13737
|
+
* so that is where a file that ended leaves it, and one taken or sent again comes back.
|
|
13738
|
+
*/
|
|
13739
|
+
track(entry) {
|
|
13740
|
+
if (!transferEnded(entry.record) && this.entries.get(key(entry.record.direction, entry.record.id)) === entry) this.unended.add(entry);
|
|
13741
|
+
else this.unended.delete(entry);
|
|
13742
|
+
}
|
|
13658
13743
|
send(frame) {
|
|
13659
13744
|
return this.attached && this.host.send(frame);
|
|
13660
13745
|
}
|
|
@@ -14640,6 +14725,7 @@ var ChatFiles = class {
|
|
|
14640
14725
|
const entry = this.entries.get(key("in", id));
|
|
14641
14726
|
if (!entry || transferEnded(entry.record)) return;
|
|
14642
14727
|
this.entries.delete(key("in", id));
|
|
14728
|
+
this.unended.delete(entry);
|
|
14643
14729
|
const incoming = entry.in;
|
|
14644
14730
|
entry.record.state = "failed";
|
|
14645
14731
|
clearTimeout(incoming.timer);
|
|
@@ -14776,6 +14862,7 @@ var ChatFiles = class {
|
|
|
14776
14862
|
if (!entry) return;
|
|
14777
14863
|
if (!transferEnded(entry.record)) this.cancel(direction, id);
|
|
14778
14864
|
this.entries.delete(key(direction, id));
|
|
14865
|
+
this.unended.delete(entry);
|
|
14779
14866
|
}
|
|
14780
14867
|
};
|
|
14781
14868
|
// ../core/src/pairedCalls.ts
|
|
@@ -16206,6 +16293,44 @@ var MESSAGE_RECEIVE_LIMITS = {
|
|
|
16206
16293
|
hourly: 1800,
|
|
16207
16294
|
hourWindowMs: 36e5
|
|
16208
16295
|
};
|
|
16296
|
+
/** What `sendMessage` says of a text the contact's windows have no room for yet: it did not go (`MessagePace`). */
|
|
16297
|
+
var MESSAGE_PACED = "Your contact takes a limited number of texts at a time. It goes by itself once they can take more.";
|
|
16298
|
+
/** How long a text sent with no receipt yet counts as taken past its send: one in flight is taken when it lands. */
|
|
16299
|
+
var PACE_UNANSWERED_MS = 6e4;
|
|
16300
|
+
/**
|
|
16301
|
+
* The texts this side sent on a paired session, counted against the contact's windows (`MESSAGE_RECEIVE_LIMITS`), so
|
|
16302
|
+
* none goes that the contact would refuse. A refused text went unconfirmed and came again with the outbox's backoff,
|
|
16303
|
+
* after texts written later that found room meanwhile: the contact read them out of order. Past the hour's total it
|
|
16304
|
+
* was sent until its attempts ran out, well inside the hour, and ended failed. Each counts from its receipt, the latest
|
|
16305
|
+
* the contact can have taken it: counted from its send, a frame that sat in a queue was taken later than counted.
|
|
16306
|
+
*/
|
|
16307
|
+
var MessagePace = class {
|
|
16308
|
+
now;
|
|
16309
|
+
sent = [];
|
|
16310
|
+
constructor(now = Date.now) {
|
|
16311
|
+
this.now = now;
|
|
16312
|
+
}
|
|
16313
|
+
/** The contact's windows have room for one more text now. */
|
|
16314
|
+
room() {
|
|
16315
|
+
const now = this.now(), { burst, burstWindowMs, hourly, hourWindowMs } = MESSAGE_RECEIVE_LIMITS;
|
|
16316
|
+
const counts = (entry, windowMs) => entry.answered !== void 0 ? now - entry.answered < windowMs : now - entry.at < windowMs + PACE_UNANSWERED_MS;
|
|
16317
|
+
this.sent = this.sent.filter((entry) => counts(entry, hourWindowMs));
|
|
16318
|
+
return this.sent.length < hourly && this.sent.filter((entry) => counts(entry, burstWindowMs)).length < burst;
|
|
16319
|
+
}
|
|
16320
|
+
took(id) {
|
|
16321
|
+
this.sent.push({
|
|
16322
|
+
id,
|
|
16323
|
+
at: this.now()
|
|
16324
|
+
});
|
|
16325
|
+
}
|
|
16326
|
+
/** Its receipt came: the contact counted it by now. */
|
|
16327
|
+
answered(id) {
|
|
16328
|
+
for (let i = this.sent.length - 1; i >= 0; i--) if (this.sent[i].id === id && this.sent[i].answered === void 0) {
|
|
16329
|
+
this.sent[i].answered = this.now();
|
|
16330
|
+
return;
|
|
16331
|
+
}
|
|
16332
|
+
}
|
|
16333
|
+
};
|
|
16209
16334
|
/**
|
|
16210
16335
|
* A `paired-message` frame. The preview (`pv`) is left out when the frame would pass `MAX_PAIRED_MESSAGE_FRAME`
|
|
16211
16336
|
* with it: the text matters, the card does not. A reply (`r`, WISP 401 § Replies) is a few hundred bytes at most
|
|
@@ -16429,6 +16554,8 @@ var GhostLink = class {
|
|
|
16429
16554
|
editsReceived = new RateWindow(30, EDIT_RATE_WINDOW_MS);
|
|
16430
16555
|
/** Text frames the contact may send per window (`MESSAGE_RECEIVE_LIMITS`); the rest go unconfirmed and come again. */
|
|
16431
16556
|
messagesReceived = [new RateWindow(MESSAGE_RECEIVE_LIMITS.burst, MESSAGE_RECEIVE_LIMITS.burstWindowMs), new RateWindow(MESSAGE_RECEIVE_LIMITS.hourly, MESSAGE_RECEIVE_LIMITS.hourWindowMs)];
|
|
16557
|
+
/** The texts sent to the contact, against their `messagesReceived` (`MessagePace`). */
|
|
16558
|
+
messagesSent = new MessagePace();
|
|
16432
16559
|
/** Call signals the contact may send per window; the rest are dropped. */
|
|
16433
16560
|
callsReceived = new RateWindow(150, CALL_RATE_WINDOW_MS);
|
|
16434
16561
|
/** WebRTC signals the contact may send on the session (`paired-rtc`) per window; the rest are dropped. */
|
|
@@ -17298,6 +17425,10 @@ var GhostLink = class {
|
|
|
17298
17425
|
get canSendText() {
|
|
17299
17426
|
return this.textDelivery !== "unavailable";
|
|
17300
17427
|
}
|
|
17428
|
+
/** A text on the live session would find room in the contact's windows now (`MessagePace`); the DHT floor has its own pace. */
|
|
17429
|
+
get textRoom() {
|
|
17430
|
+
return this.textDelivery !== "stream" || this.messagesSent.room();
|
|
17431
|
+
}
|
|
17301
17432
|
get dhtDelivery() {
|
|
17302
17433
|
return this.dht?.view;
|
|
17303
17434
|
}
|
|
@@ -18807,9 +18938,11 @@ var GhostLink = class {
|
|
|
18807
18938
|
if (!/^[A-Za-z0-9_-]{22}$/.test(id)) return "Invalid message ID";
|
|
18808
18939
|
const frame = pairedMessageFrame(id, timestamp, trimmed, preview, reply, forwarded, card);
|
|
18809
18940
|
if (frame.length > 61440) return PAIRED_FRAME_TOO_LARGE;
|
|
18941
|
+
if (!this.messagesSent.room()) return MESSAGE_PACED;
|
|
18810
18942
|
this.pairedPending.set(id, timestamp);
|
|
18811
18943
|
try {
|
|
18812
18944
|
this.channel.send(frame);
|
|
18945
|
+
this.messagesSent.took(id);
|
|
18813
18946
|
return null;
|
|
18814
18947
|
} catch {
|
|
18815
18948
|
this.pairedPending.delete(id);
|
|
@@ -19599,6 +19732,17 @@ var GhostLink = class {
|
|
|
19599
19732
|
if (dht && this.dht && this.textDelivery === "dht") return this.dht.send(edit.m, edit.ts, dhtEditId(edit.id, edit.e), void 0, [edit.id, edit.e]);
|
|
19600
19733
|
return "Edits go when you are live";
|
|
19601
19734
|
}
|
|
19735
|
+
/**
|
|
19736
|
+
* Why the DHT floor can never carry this edit, or null (WISP 403 § Edits): it goes there as a text with the edit's
|
|
19737
|
+
* element, which must fit the packet once sealed, as a text must (`validateText`). One past the 256 bytes never fits
|
|
19738
|
+
* it either, and says so with the same reason. Null off the floor, and for what only makes it wait there (a text
|
|
19739
|
+
* awaiting its receipt): that one goes in its turn.
|
|
19740
|
+
*/
|
|
19741
|
+
dhtEditTooBig(edit) {
|
|
19742
|
+
if (this.isDataLinkOpen || this.textDelivery !== "dht") return null;
|
|
19743
|
+
const error = this.dht.validate(edit.m, edit.ts, dhtEditId(edit.id, edit.e), void 0, [edit.id, edit.e]);
|
|
19744
|
+
return error === "Text and authentication exceed the DHT packet budget. Shorten the message." || error === "DHT text is limited to 256 UTF-8 bytes. Shorten it or choose a live connection." ? DHT_PACKET_BUDGET : null;
|
|
19745
|
+
}
|
|
19602
19746
|
/** Confirms an edit of the contact's that waited for its message (`onMessageEdit` returned false). */
|
|
19603
19747
|
confirmEdit(id, e) {
|
|
19604
19748
|
if (!this.channel || !this.supportsEdits) return;
|
|
@@ -20959,6 +21103,7 @@ var GhostLink = class {
|
|
|
20959
21103
|
id: frame.id
|
|
20960
21104
|
}));
|
|
20961
21105
|
} else if (frame.t === "paired-received") {
|
|
21106
|
+
this.messagesSent.answered(frame.id);
|
|
20962
21107
|
if (this.pairedPending.get(frame.id) !== void 0) {
|
|
20963
21108
|
await this.options.events?.onMessageReceipt?.(frame.id);
|
|
20964
21109
|
await this.dht?.acknowledge(frame.id);
|
|
@@ -21814,6 +21959,6 @@ function groupMetaChange(before, after, first) {
|
|
|
21814
21959
|
if (a.pic !== b.pic) change.picture = b.pic ?? null;
|
|
21815
21960
|
return "name" in change || "picture" in change ? change : null;
|
|
21816
21961
|
}
|
|
21817
|
-
export {
|
|
21962
|
+
export { beaconKeys as $, canonicalJson as $a, MAX_SHARED_APPS as $i, reactionEmoji as $n, sortRoster as $r, vapidKeysMatch as $t, GROUP_WANT_FRAME as A, sha256Paced as Aa, GhostlyHttpError as Ai, baseMime as An, statusCardText as Ar, TypingSender as At, GROUP_SIGNAL_FRAME as B, isAppRef as Ba, QUICK_REDIAL_MS as Bi, REMOVED_TEXT as Bn, GROUP_MEMBER_CAP as Br, WAKE_CALL_INTERVAL_MS as Bt, MESSAGE_PACED as C, assembleAppBundle as Ca, DAEMON_WATCH_PEER_IDLE_MS as Ci, dhtFileId as Cn, cardEditNumber as Cr, liveStatus as Ct, pairedMessageFrame as D, pacer as Da, RELAY_POLL_INTERVALS as Di, PLAYABLE_AUDIO as Dn, readStatusCard as Dr, TYPING_KINDS as Dt, pairedMessageFits as E, isAppUrl as Ea, PRESENCE_WINDOW as Ei, sanitizeMime as En, checkStatusCard as Er, TYPING_FRAME as Et, readGroupFileMeta as F, appRefPublisher as Fa, LIMITS as Fi, voiceLevel as Fn, heardTime as Fr, mayPin as Ft, readGroupSignal as G, setAppSignatureFastPath as Ga, callSignalHeardAt as Gi, forwardedAgain as Gn, commitHash as Gr, WakeLimiter as Gt, SIGNAL_HOLD_MS as H, readAppRevocationShape as Ha, answersOffer as Hi, dhtEditId as Hn, MEMBER_KEY as Hr, WAKE_ONLINE_BATCH_MS as Ht, readGroupHave as I, checkAppRevokeStatement as Ia, decodeControl as Ii, parseVideoMeta as In, receivedTimestamp as Ir, nextPinNumber as It, mayBeHub as J, verifyAppRevocation as Ja, parseCallSignal as Ji, GROUP_REACTION_FRAME as Jn, parseGroupCommit as Jr, parseWakeFrame as Jt, MESH_HUBS as K, signAppObject as Ka, contactRtcConfig as Ki, readForwarded as Kn, commitUntaggedHash as Kr, deviceWakeRequest as Kt, readGroupWant as L, isAppHash as La, encodeControl as Li, EDIT_BUFFER_MS as Ln, shownTime as Lr, pinIsNewer as Lt, fetchesByItself as M, APP_STATEMENT_LIMITS as Ma, formatLocalTarget as Mi, fileMessageText as Mn, MESSAGE_CLOCK_SKEW_MS as Mr, typingActivity as Mt, groupFileFallback as N, appFingerprint as Na, parseLocalTarget as Ni, parseVoiceMeta as Nn, arrivalKey as Nr, GROUP_PIN_FRAME as Nt, GROUP_FILE_LIMITS as O, readAppBundle as Oa, WATCH_PEER_MS as Oi, VOICE_LIMITS as On, sameButtonText as Or, TYPING_REFRESH_MS as Ot, isGroupMessageId as P, appRef as Pa, webLocalFetch as Pi, voiceDownloadName as Pn, claimedTime as Pr, PIN_LIMITS as Pt, COMMUNITY_TOPOLOGY as Q, readImageMeta as Qa, LEGACY_SERVICES as Qi, queueReaction as Qn, signCommit as Qr, checkPushEndpoint as Qt, readGroupWantNo as R, isAppKey as Ra, BURST_RING_MS as Ri, EDIT_RATE_WINDOW_MS as Rn, GROUP_ADMIN_OFF_ERROR as Rr, pinNumberHolds as Rt, LIVENESS_PING_MS as S, appViewOf as Sa, AWAITING_PEER_MS as Si, DHT_FILE_CAPABILITY as Sn, buttonLabelClash as Sr, STATUS_IDLE_AFTER_MS as St, pairedEditFits as T, findAppForbiddenKey as Ta, EXPECT_PEER_MS as Ti, sanitizeFileName as Tn, cardUrl as Tr, sanitizeStatusText as Tt, SIGNAL_REPLY_MS as U, readAppRevocations as Ua, buildSdpFromSignal as Ui, validEditNumber as Un, OWN_FRAME_LIMIT as Ur, WAKE_ONLINE_DELAY_MS as Ut, SIGNAL_FRESH_MS as V, readAppRevocation as Va, RTC_CONFIG as Vi, RateWindow as Vn, MAX_GROUP_CHAIN as Vr, WAKE_INTERVAL_MS as Vt, groupSignalFrame as W, readAppSignature as Wa, callRtcConfig as Wi, validRemovalNumber as Wn, SAID_AGAIN as Wr, WAKE_ONLINE_INTERVAL_MS as Wt, meshRendezvous as X, exifOrientation as Xa, emptyLinkRecords as Xi, ReactionWindow as Xn, rosterAdmin as Xr, wakeFrame as Xt, meshHubs as Y, verifyAppSignature as Ya, signalHasVideo as Yi, REACTION_LIMITS as Yn, rememberAlone as Yr, relayRequest as Yt, pickMeshHubs as Z, parseImageMeta as Za, HTTP_SERVICE_PROTO as Zi, nextReactionNumber as Zn, rosterHas as Zr, wakeRequest as Zt, signGroupMeta as _, seenEntry as _a, RATCHET_CAPABILITY as _i, ACTIVE_DHT_POLL_MS as _n, deviceKeyZ32 as _o, RUN_RESULTS as _r, FileUplink as _t, groupMetaChange as a, contactDay as aa, confirmationTag as ai, APPS_CAPABILITY as an, createChatInvite as ao, groupReplyAuthor as ar, lobbyRecords as at, GhostLink as b, APP_ICON_PATH as ba, ratchetSessionOf as bi, DHT_PACKET_BUDGET as bn, newDeviceSetSecret as bo, appCardId as br, transferStalled as bt, groupMetaTag as c, knockSlotOf as ca, encryptText as ci, STATUS_CARD_CAPABILITY as cn, inviteLink as co, replySnippet as cr, newerHead as ct, keepPastGroupMeta as d, makeStampPaced as da, newEpochSecret as di, DHT_TEXT_CAPABILITY as dn, pastedAgain as do, BUTTON_STYLES as dr, readBeacon as dt, serviceIdFromName as ea, verifyChain as ei, APP_RANGE_LIMITS as en, canonicalJsonBytes as eo, reactionIsNewer as er, beaconRecords as et, nextGroupMetaRevision as f, mergeContactKnocks as fa, openPair as fi, capsDescriptors as fn, DEVICES_CAPABILITY as fo, CRON_LINE as fr, readBeaconHead as ft, parseGroupMetaTag as g, requestRecords as ga, sha256Hex as gi, validExternalKey as gn, deviceEchoNonce as go, ROUTINE_STATES as gr, FILE_LIMITS as gt, parseGroupMetaFrame as h, readLinkRecord as ha, sealSecret as hi, emptyProofLedger as hn, deviceEchoFrame as ho, PR_STATES as hr, ChatFiles as ht, groupMetaBody as i, contactAskerHolds as ia, confirmationMatches as ii, isAppVersion as in, OwnInviteError as io, REPLY_LIMITS as ir, lobbyKeys as it, GROUP_WANT_NO_FRAME as j, APP_PREFIXES as ja, VIEWER_PERMISSIONS_POLICY as ji, downsamplePeaks as jn, withoutAppLink as jr, sanitizeTypingStatus as jt, GROUP_HAVE_FRAME as k, readAppBundleAsync as ka, presenceSeenAt as ki, VOICE_METER as kn, statusCardBytes as kr, TypingReceiver as kt, groupMetaToHand as l, knockSlotRecords as la, epochKeys as li, UPGRADE_CAPABILITY as ln, inviteOwnership as lo, wireReply as lr, pickHubs as lt, parseGroupMetaBody as m, readKnockSlot as ma, sealPair as mi, PeerProofs as mn, HANDOFF_CAPABILITY as mo, PR_CHECKS as mr, shouldBeHub as mt, groupCallSfu as n, REQUEST_LIFETIME_MS as na, verifyCommitSignature as ni, APP_DATA_MAX_BYTES as nn, INVITE_HRP as no, validReactionNumber as nr, freshHubs as nt, groupMetaNewer as o, knockHolds as oa, decryptText as oi, BUTTONS_CAPABILITY as on, decodeInviteCode as oo, pairedReplyAuthor as or, mergeBeacon as ot, openGroupMeta as p, openRequest as pa, openSecret as pi, dialDescriptors as pn, ENROLL_CAPABILITY as po, ITEM_STATES as pr, readLobby as pt, NO_HUB_POLICY as q, signAppRevocation as qa, extractParamsFromSdp as qi, COMMUNITY_REACTION_FRAME as qn, expectedRoster as qr, newWakeToken as qt, groupDisplayName as r, contactAskerFrame as ra, GROUP_PROFILE as ri, chatAppId as rn, INVITE_MAX_LENGTH as ro, wireReaction as rr, hubRank as rt, groupMetaPicture as s, knockSlotIdentity as sa, edgeParams as si, EDIT_CAPABILITY as sn, encodeInviteCode as so, readReply as sr, mergeLobby as st, encodeGroupMetaBody as t, ContactRequestError as ta, verifyCommit as ti, isServeId as tn, readCanonicalJson as to, readReaction as tr, doorHubs as tt, groupName as u, linkRecords as ua, groupCallKey as ui, CapsExchange as un, ownInviteRefusal as uo, BUTTON_ID as ur, rankHubs as ut, verifyGroupMetaSignature as v, APP_BUNDLE_LIMITS as va, RatchetBox as vi, DHT_FILE_TOO_LARGE as vn, deviceLinkPairing as vo, STATUS_CARD_LIMITS as vr, sentWhole as vt, PAIRED_FRAME_TOO_LARGE as w, checkAppManifest as wa, DHT_POLL_INTERVALS as wi, formatFileSize as wn, cardLine as wr, personStatus as wt, INVITE_TAKEN as x, appDigest as xa, DirectPathWatch as xi, peekDhtMailbox as xn, appCardUrl as xr, STATUS_AVAILABILITIES as xt, wrapGroupMeta as y, APP_BUNDLE_MAGIC as ya, emptyRatchetState as yi, DHT_MESSAGE_TTL as yn, devicePingFrame as yo, TASK_STATUSES as yr, transferEnded as yt, CarriedTransport as z, isAppLine as za, CALL_SIGNAL_MAX_AGE_MS as zi, MAX_REMOVAL_NUMBER as zn, GROUP_ID as zr, readPin as zt };
|
|
21818
21963
|
|
|
21819
|
-
//# sourceMappingURL=groupMeta
|
|
21964
|
+
//# sourceMappingURL=groupMeta--fxSh792.js.map
|