@ghostlytools/cli 1.13.2 → 1.13.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/README.md +9 -8
- package/dist/assets/{api-DV52o7A8.js → api-B5qxNMgg.js} +2 -2
- package/dist/assets/{api-O57SNJcb.js → api-iiij_pP5.js} +213 -59
- package/dist/assets/api-iiij_pP5.js.map +1 -0
- package/dist/assets/{apiKit-CPTFJHA7.js → apiKit-BPuHOoXF.js} +17 -3
- package/dist/assets/apiKit-BPuHOoXF.js.map +1 -0
- package/dist/assets/{appFetch-Ca9DNQQ2.js → appFetch-D89FnCxr.js} +2 -2
- package/dist/assets/{appFetch-Ca9DNQQ2.js.map → appFetch-D89FnCxr.js.map} +1 -1
- package/dist/assets/{apps-uZTu5FlR.js → apps-BpZcd86Y.js} +1 -1
- package/dist/assets/{apps-gXpGFPiv.js → apps-D2YGSPJe.js} +45 -19
- package/dist/assets/apps-D2YGSPJe.js.map +1 -0
- package/dist/assets/{backup-CxH3auHB.js → backup-BrMe9VPY.js} +11 -6
- package/dist/assets/backup-BrMe9VPY.js.map +1 -0
- package/dist/assets/{backup-Di2U6QVH.js → backup-COkkM8Yy.js} +1 -1
- package/dist/assets/bark_ffi_wasm_bg-CjjCN3FD.js +5 -0
- package/dist/assets/{bitcoind-BpZn3bRN.js → bitcoind-CK1QEUHn.js} +2 -2
- package/dist/assets/{bitcoind-BpZn3bRN.js.map → bitcoind-CK1QEUHn.js.map} +1 -1
- package/dist/assets/bitcoindevkit_bg-D6IFIaJi.js +5 -0
- package/dist/assets/{blobFiles-DDs34n0r.js → blobFiles-DA3UEn37.js} +3 -3
- package/dist/assets/{blobFiles-DDs34n0r.js.map → blobFiles-DA3UEn37.js.map} +1 -1
- package/dist/assets/buttons-BWEdoxgK.js +1 -0
- package/dist/assets/{buttons-D4udKEvT.js → buttons-UsDPQJsQ.js} +4 -4
- package/dist/assets/{buttons-D4udKEvT.js.map → buttons-UsDPQJsQ.js.map} +1 -1
- package/dist/assets/{client-DGx7E8b3.js → client-Cj-VLeTs.js} +2 -2
- package/dist/assets/{client-DGx7E8b3.js.map → client-Cj-VLeTs.js.map} +1 -1
- package/dist/assets/{fedimintSdk-D-6H9Pe7.js → fedimintSdk-eLXBrj9i.js} +2 -2
- package/dist/assets/{fedimintSdk-D-6H9Pe7.js.map → fedimintSdk-eLXBrj9i.js.map} +1 -1
- package/dist/assets/fedimint_client_wasm_bg-CRQlnJdu.js +5 -0
- package/dist/assets/{fileBytes-CfvUXdSy.js → fileBytes-B2jXQI8e.js} +3 -3
- package/dist/assets/{fileBytes-CfvUXdSy.js.map → fileBytes-B2jXQI8e.js.map} +1 -1
- package/dist/assets/{fileBytes-tj6-VZcB.js → fileBytes-BQrW3m-d.js} +2 -2
- package/dist/assets/{fileBytes-tj6-VZcB.js.map → fileBytes-BQrW3m-d.js.map} +1 -1
- package/dist/assets/{fileBytes-CCKbwqG_.js → fileBytes-CtjxJ6AL.js} +1 -1
- package/dist/assets/{fileBytesIdb-BJirUAjI.js → fileBytesIdb-B7Wjw0S8.js} +3 -3
- package/dist/assets/{fileBytesIdb-BJirUAjI.js.map → fileBytesIdb-B7Wjw0S8.js.map} +1 -1
- package/dist/assets/fileBytesIdb-Fcj2mwj6.js +1 -0
- package/dist/assets/{fileBytesOpfs-DRUYLER4.js → fileBytesOpfs-BW0u-_f_.js} +3 -3
- package/dist/assets/{fileBytesOpfs-DRUYLER4.js.map → fileBytesOpfs-BW0u-_f_.js.map} +1 -1
- package/dist/assets/{fixedHosts-CODN2pTL.js → fixedHosts-CrO01M_y.js} +3 -3
- package/dist/assets/{fixedHosts-CODN2pTL.js.map → fixedHosts-CrO01M_y.js.map} +1 -1
- package/dist/assets/{groupMeta-CeZpqVVC.js → groupMeta-DHJxOu0K.js} +99 -10
- package/dist/assets/groupMeta-DHJxOu0K.js.map +1 -0
- package/dist/assets/{host-CRA7h5A2.js → host-C4J4y-Zq.js} +187 -29
- package/dist/assets/host-C4J4y-Zq.js.map +1 -0
- package/dist/assets/{idb-ewvbqyDI.js → idb-CmIR_bxg.js} +2 -1
- package/dist/assets/idb-CmIR_bxg.js.map +1 -0
- package/dist/assets/{identityProofs-B8zCp5_0.js → identityProofs-C0rIGT6y.js} +20 -3
- package/dist/assets/identityProofs-C0rIGT6y.js.map +1 -0
- package/dist/assets/{irohWeb-mnOi2Jp7.js → irohWeb-BXgunUhu.js} +113 -33
- package/dist/assets/irohWeb-BXgunUhu.js.map +1 -0
- package/dist/assets/{main-Chc871HV.js → main-BLs-zUTt.js} +68 -28
- package/dist/assets/main-BLs-zUTt.js.map +1 -0
- package/dist/assets/{mainline-CDUXtV-I.js → mainline-CYek1H10.js} +2 -2
- package/dist/assets/{mainline-CDUXtV-I.js.map → mainline-CYek1H10.js.map} +1 -1
- package/dist/assets/{networkReason-DYlPZS5M.js → networkReason-C6LYbjF2.js} +2 -2
- package/dist/assets/{networkReason-DYlPZS5M.js.map → networkReason-C6LYbjF2.js.map} +1 -1
- package/dist/assets/{ownDid-BOuSlDv-.js → ownDid-Dg-8e_hs.js} +6 -5
- package/dist/assets/ownDid-Dg-8e_hs.js.map +1 -0
- package/dist/assets/{ownStatus-CLA1VPkL.js → ownStatus-BOx4vLi6.js} +34 -11
- package/dist/assets/ownStatus-BOx4vLi6.js.map +1 -0
- package/dist/assets/{profiles-BH1bH9aE.js → profiles-BA0ePikY.js} +33 -8
- package/dist/assets/profiles-BA0ePikY.js.map +1 -0
- package/dist/assets/{registry-DAq16T-V.js → registry-DuSwXntJ.js} +1 -1
- package/dist/assets/{registry-DP_-RA-v.js → registry-OoIgxDrO.js} +25 -13
- package/dist/assets/registry-OoIgxDrO.js.map +1 -0
- package/dist/assets/{relay-gJTOYQJZ.js → relay-NT5bf1WA.js} +9 -6
- package/dist/assets/relay-NT5bf1WA.js.map +1 -0
- package/dist/assets/{resolve-B1eQ4dVQ.js → resolve-DUmE70Eo.js} +3 -3
- package/dist/assets/{resolve-B1eQ4dVQ.js.map → resolve-DUmE70Eo.js.map} +1 -1
- package/dist/assets/{restoredRows-D_WSHE7H.js → restoredRows-Cgaxx1xW.js} +2 -2
- package/dist/assets/{restoredRows-D_WSHE7H.js.map → restoredRows-Cgaxx1xW.js.map} +1 -1
- package/dist/assets/{server-Bd2ofxc1.js → server-WWlXICVB.js} +555 -110
- package/dist/assets/server-WWlXICVB.js.map +1 -0
- package/dist/assets/{sshForges-As7dbGXM.js → sshForges-Cfu-dSwc.js} +2 -2
- package/dist/assets/{sshForges-As7dbGXM.js.map → sshForges-Cfu-dSwc.js.map} +1 -1
- package/dist/assets/translate-DnuQMfj0.js.map +1 -1
- package/dist/assets/{usdt-DLmtf8F9.js → usdt-BkO4SY07.js} +2 -2
- package/dist/assets/{usdt-DLmtf8F9.js.map → usdt-BkO4SY07.js.map} +1 -1
- package/dist/assets/{waitNotice-BHuMofaH.js → waitNotice-DSECf6II.js} +2 -2
- package/dist/assets/{waitNotice-BHuMofaH.js.map → waitNotice-DSECf6II.js.map} +1 -1
- package/dist/ghostly.mjs +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/assets/api-O57SNJcb.js.map +0 -1
- package/dist/assets/apiKit-CPTFJHA7.js.map +0 -1
- package/dist/assets/apps-gXpGFPiv.js.map +0 -1
- package/dist/assets/backup-CxH3auHB.js.map +0 -1
- package/dist/assets/bark_ffi_wasm_bg-CcafsJla.js +0 -5
- package/dist/assets/bark_ffi_wasm_bg-CcafsJla.js.map +0 -1
- package/dist/assets/bark_ffi_wasm_bg-VNmaJsc9.wasm +0 -0
- package/dist/assets/bitcoindevkit_bg-BWQHx7vd.js +0 -5
- package/dist/assets/bitcoindevkit_bg-BWQHx7vd.js.map +0 -1
- package/dist/assets/bitcoindevkit_bg-DXil67yS.wasm +0 -0
- package/dist/assets/buttons-YTYEqvGC.js +0 -1
- package/dist/assets/fedimint_client_wasm_bg-Cr5xGD-w.js +0 -5
- package/dist/assets/fedimint_client_wasm_bg-Cr5xGD-w.js.map +0 -1
- package/dist/assets/fedimint_client_wasm_bg-DeFtkIv6.wasm +0 -0
- package/dist/assets/fileBytesIdb-B0zzJ6p7.js +0 -1
- package/dist/assets/groupMeta-CeZpqVVC.js.map +0 -1
- package/dist/assets/host-CRA7h5A2.js.map +0 -1
- package/dist/assets/idb-ewvbqyDI.js.map +0 -1
- package/dist/assets/identityProofs-B8zCp5_0.js.map +0 -1
- package/dist/assets/irohWeb-mnOi2Jp7.js.map +0 -1
- package/dist/assets/main-Chc871HV.js.map +0 -1
- package/dist/assets/ownDid-BOuSlDv-.js.map +0 -1
- package/dist/assets/ownStatus-CLA1VPkL.js.map +0 -1
- package/dist/assets/profiles-BH1bH9aE.js.map +0 -1
- package/dist/assets/registry-DP_-RA-v.js.map +0 -1
- package/dist/assets/relay-gJTOYQJZ.js.map +0 -1
- package/dist/assets/server-Bd2ofxc1.js.map +0 -1
|
@@ -3,8 +3,8 @@ import { a as stripHidden, i as sanitizeNick, n as hasVisible, o as trimEndOf, r
|
|
|
3
3
|
import { a as parseLinkPreview, s as sanitizeAvatar } from "./linkPreview-5kHmKUTN.js";
|
|
4
4
|
import { C as encrypt, E as tryDecrypt, T as sealedLength, 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 generateEncryptionKey } from "./pairedTransports-DAzupLYo.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-
|
|
7
|
-
import { a as IDENTITY_PROOF_CAPABILITY, t as IDENTITY_FRAME_WINDOW_MS } from "./identityProofs-
|
|
6
|
+
import { a as RelaysFailedError, d as traceLink, h as publishedNowhere, m as isDiscoveryBudgetError, p as budgetRetryMs } from "./relay-NT5bf1WA.js";
|
|
7
|
+
import { a as IDENTITY_PROOF_CAPABILITY, t as IDENTITY_FRAME_WINDOW_MS } from "./identityProofs-C0rIGT6y.js";
|
|
8
8
|
import { r as engineError } from "./engineErrors-wWlLy54D.js";
|
|
9
9
|
import b4a from "b4a";
|
|
10
10
|
import { ed25519, x25519 } from "@noble/curves/ed25519.js";
|
|
@@ -3370,6 +3370,20 @@ function sanitizeRequestHeaders(headers) {
|
|
|
3370
3370
|
return !DROPPED_REQUEST_HEADER_PREFIXES.some((prefix) => lower.startsWith(prefix));
|
|
3371
3371
|
});
|
|
3372
3372
|
}
|
|
3373
|
+
/**
|
|
3374
|
+
* A cookie's `Path` as the client sees the app: without the target's base path, which the client never sees (as
|
|
3375
|
+
* `relativizeLocation` takes it off), so a cookie the app keeps on `/notes` is sent back to its `/home` at `/`. One
|
|
3376
|
+
* outside the base path would never be sent at all and goes on `/`; one that does not start with `/` the browser
|
|
3377
|
+
* ignores, so it stays.
|
|
3378
|
+
*/
|
|
3379
|
+
function cookieOnClient(cookie, target) {
|
|
3380
|
+
if (!target.basePath) return cookie;
|
|
3381
|
+
return cookie.replace(/;\s*path\s*=\s*([^;]*)/gi, (attribute, value) => {
|
|
3382
|
+
const path = value.trim();
|
|
3383
|
+
if (!path.startsWith("/")) return attribute;
|
|
3384
|
+
return `; Path=${path === target.basePath || path.startsWith(`${target.basePath}/`) ? path.slice(target.basePath.length) || "/" : "/"}`;
|
|
3385
|
+
});
|
|
3386
|
+
}
|
|
3373
3387
|
/** `from`: the local URL of the request answered, the one a relative `Location` is read against. */
|
|
3374
3388
|
function sanitizeResponseHeaders(headers, target, from) {
|
|
3375
3389
|
const out = [];
|
|
@@ -3380,7 +3394,7 @@ function sanitizeResponseHeaders(headers, target, from) {
|
|
|
3380
3394
|
if (lower === "location" || lower === "content-location") {
|
|
3381
3395
|
const location = relativizeLocation(value, target, from);
|
|
3382
3396
|
if (location !== null) out.push([name, location]);
|
|
3383
|
-
} else if (lower === "set-cookie") out.push([name, value.replace(/;\s*domain\s*=[^;]*/gi, "")]);
|
|
3397
|
+
} else if (lower === "set-cookie") out.push([name, cookieOnClient(value.replace(/;\s*domain\s*=[^;]*/gi, ""), target)]);
|
|
3384
3398
|
else out.push([name, value]);
|
|
3385
3399
|
}
|
|
3386
3400
|
return out;
|
|
@@ -13316,8 +13330,13 @@ var FILE_LIMITS = {
|
|
|
13316
13330
|
maxUnfinishedIncoming: 256,
|
|
13317
13331
|
/** Files one contact sends at once; accepted ones beyond wait their turn. */
|
|
13318
13332
|
maxActiveIncoming: 3,
|
|
13319
|
-
/**
|
|
13333
|
+
/**
|
|
13334
|
+
* An offer nobody answered ends after this long. So does a file taken here and arriving (`active`, not paused) of which
|
|
13335
|
+
* no byte came for this long while a session was open (`ChatFiles.sweep`).
|
|
13336
|
+
*/
|
|
13320
13337
|
offerTtlMs: 6048e5,
|
|
13338
|
+
/** While a session is open, its files are swept (`ChatFiles.sweep`) this often. */
|
|
13339
|
+
sweepEveryMs: 36e5,
|
|
13321
13340
|
/**
|
|
13322
13341
|
* No answer while something is outstanding: the sender offers again, which puts both sides back in step. Nothing
|
|
13323
13342
|
* arriving for a file under way: the receiver says again where it stands.
|
|
@@ -13713,6 +13732,8 @@ var ChatFiles = class {
|
|
|
13713
13732
|
* every trial of a larger one (a fifth of the rate on a wavering path). Confirmed chunk by chunk, it is what each sends with.
|
|
13714
13733
|
*/
|
|
13715
13734
|
refill = 0;
|
|
13735
|
+
/** Sweeps while a session is open (`FILE_LIMITS.sweepEveryMs`). */
|
|
13736
|
+
sweeper;
|
|
13716
13737
|
constructor(host) {
|
|
13717
13738
|
this.host = host;
|
|
13718
13739
|
}
|
|
@@ -13746,7 +13767,8 @@ var ChatFiles = class {
|
|
|
13746
13767
|
stored: record.confirmed,
|
|
13747
13768
|
acked: record.confirmed,
|
|
13748
13769
|
checkpointed: record.confirmed,
|
|
13749
|
-
writing: Promise.resolve()
|
|
13770
|
+
writing: Promise.resolve(),
|
|
13771
|
+
quietState: record.state
|
|
13750
13772
|
};
|
|
13751
13773
|
const replaced = this.entries.get(key(record.direction, record.id));
|
|
13752
13774
|
if (replaced) this.unended.delete(replaced);
|
|
@@ -13798,9 +13820,32 @@ var ChatFiles = class {
|
|
|
13798
13820
|
return entry.in && !transferEnded(entry.record) ? Math.max(entry.in.stored, entry.record.confirmed) : entry.record.confirmed;
|
|
13799
13821
|
}
|
|
13800
13822
|
changed(entry, progress = false) {
|
|
13823
|
+
if (entry.in && (progress || entry.in.quietState !== entry.record.state)) this.stirred(entry);
|
|
13801
13824
|
this.track(entry);
|
|
13802
13825
|
this.host.changed({ ...entry.record }, this.moved(entry), progress);
|
|
13803
13826
|
}
|
|
13827
|
+
/** An incoming file's idle count starts again: from now while a session is open, from the next one otherwise. */
|
|
13828
|
+
stirred(entry) {
|
|
13829
|
+
const incoming = entry.in;
|
|
13830
|
+
entry.record.idleMs = void 0;
|
|
13831
|
+
incoming.quietState = entry.record.state;
|
|
13832
|
+
incoming.quietFrom = this.attached ? this.now() : void 0;
|
|
13833
|
+
}
|
|
13834
|
+
/**
|
|
13835
|
+
* How long an incoming file went with no byte and no change of state while a session was open: what its record kept,
|
|
13836
|
+
* and this session's stretch. Time with no session (closed, the app gone, either side away) does not count.
|
|
13837
|
+
*/
|
|
13838
|
+
idleFor(entry, now) {
|
|
13839
|
+
const from = entry.in.quietFrom;
|
|
13840
|
+
return (entry.record.idleMs ?? 0) + (from === void 0 ? 0 : Math.max(0, now - from));
|
|
13841
|
+
}
|
|
13842
|
+
/** The idle time so far goes into the record, kept with it from now on; the stretch counted here starts again. */
|
|
13843
|
+
foldIdle(entry, now) {
|
|
13844
|
+
const idle = this.idleFor(entry, now);
|
|
13845
|
+
entry.record.idleMs = idle || void 0;
|
|
13846
|
+
entry.in.quietFrom = this.attached ? now : void 0;
|
|
13847
|
+
return idle;
|
|
13848
|
+
}
|
|
13804
13849
|
/**
|
|
13805
13850
|
* Keeps `unended` to the entries of this chat not ended. Each change of a record's state is reported (`changed`),
|
|
13806
13851
|
* so that is where a file that ended leaves it, and one taken or sent again comes back.
|
|
@@ -13833,6 +13878,15 @@ var ChatFiles = class {
|
|
|
13833
13878
|
t: "pf-abort",
|
|
13834
13879
|
id
|
|
13835
13880
|
})) this.unsaid.delete(id);
|
|
13881
|
+
const now = this.now();
|
|
13882
|
+
for (const entry of this.unended) if (entry.in) {
|
|
13883
|
+
entry.record.idleMs = this.idleFor(entry, now) || void 0;
|
|
13884
|
+
entry.in.quietFrom = now;
|
|
13885
|
+
entry.in.quietState = entry.record.state;
|
|
13886
|
+
}
|
|
13887
|
+
clearInterval(this.sweeper);
|
|
13888
|
+
this.sweeper = setInterval(() => this.sweep(), FILE_LIMITS.sweepEveryMs);
|
|
13889
|
+
this.sweeper.unref?.();
|
|
13836
13890
|
this.sweep();
|
|
13837
13891
|
for (const entry of this.entries.values()) {
|
|
13838
13892
|
if (transferEnded(entry.record)) continue;
|
|
@@ -13859,6 +13913,9 @@ var ChatFiles = class {
|
|
|
13859
13913
|
this.moving.clear();
|
|
13860
13914
|
this.held.clear();
|
|
13861
13915
|
this.host.uplink?.leave(this);
|
|
13916
|
+
clearInterval(this.sweeper);
|
|
13917
|
+
this.sweeper = void 0;
|
|
13918
|
+
const now = this.now();
|
|
13862
13919
|
for (const entry of this.entries.values()) {
|
|
13863
13920
|
if (entry.out) {
|
|
13864
13921
|
entry.out.generation++;
|
|
@@ -13872,18 +13929,49 @@ var ChatFiles = class {
|
|
|
13872
13929
|
clearTimeout(entry.in.ackTimer);
|
|
13873
13930
|
entry.in.ackTimer = void 0;
|
|
13874
13931
|
}
|
|
13875
|
-
if (entry.in && !transferEnded(entry.record))
|
|
13932
|
+
if (entry.in && !transferEnded(entry.record)) {
|
|
13933
|
+
if (entry.in.quietFrom !== void 0 && this.foldIdle(entry, now) >= FILE_LIMITS.stallMs && entry.record.state === "active") this.changed(entry);
|
|
13934
|
+
this.checkpoint(entry);
|
|
13935
|
+
}
|
|
13876
13936
|
}
|
|
13877
13937
|
}
|
|
13938
|
+
/** The app stops: no more sweeps. */
|
|
13939
|
+
stop() {
|
|
13940
|
+
clearInterval(this.sweeper);
|
|
13941
|
+
this.sweeper = void 0;
|
|
13942
|
+
}
|
|
13878
13943
|
/**
|
|
13879
|
-
* Offers ended by their time to live. The host calls it now and then; `attach` does too
|
|
13880
|
-
*
|
|
13881
|
-
* again (`retakeAgreed`).
|
|
13944
|
+
* Offers ended by their time to live. The host calls it now and then; `attach` does too, and it runs every
|
|
13945
|
+
* `FILE_LIMITS.sweepEveryMs` while a session is open. A file taken here and waiting its turn ends too once nothing of
|
|
13946
|
+
* it arrived in that time: its sender never sent it. Offered again, it is taken again (`retakeAgreed`). So does one
|
|
13947
|
+
* arriving (`active`) that had no byte and no change of state for that long while a session was open (`idleFor`):
|
|
13948
|
+
* paused there or here, or with no session, it waits as long as it takes (WISP 501 § Consent).
|
|
13882
13949
|
*/
|
|
13883
13950
|
sweep() {
|
|
13884
13951
|
const now = this.now();
|
|
13952
|
+
let freed = false;
|
|
13885
13953
|
for (const entry of this.entries.values()) {
|
|
13886
13954
|
const { record } = entry;
|
|
13955
|
+
if (record.direction === "in" && record.state === "active") {
|
|
13956
|
+
const incoming = entry.in;
|
|
13957
|
+
if (!this.attached || incoming.verifying || incoming.starting) continue;
|
|
13958
|
+
if (this.idleFor(entry, now) < FILE_LIMITS.offerTtlMs) {
|
|
13959
|
+
if (incoming.quietFrom !== void 0 && now - incoming.quietFrom >= FILE_LIMITS.stallMs) {
|
|
13960
|
+
this.foldIdle(entry, now);
|
|
13961
|
+
this.changed(entry);
|
|
13962
|
+
}
|
|
13963
|
+
continue;
|
|
13964
|
+
}
|
|
13965
|
+
this.discardStored(entry);
|
|
13966
|
+
this.end(entry, "failed", "The offer expired");
|
|
13967
|
+
this.send({
|
|
13968
|
+
t: "pf-refuse",
|
|
13969
|
+
id: record.id,
|
|
13970
|
+
why: "expired"
|
|
13971
|
+
});
|
|
13972
|
+
freed = true;
|
|
13973
|
+
continue;
|
|
13974
|
+
}
|
|
13887
13975
|
if (![
|
|
13888
13976
|
"queued",
|
|
13889
13977
|
"offered",
|
|
@@ -13901,6 +13989,7 @@ var ChatFiles = class {
|
|
|
13901
13989
|
id: record.id
|
|
13902
13990
|
});
|
|
13903
13991
|
}
|
|
13992
|
+
if (freed) this.startNext();
|
|
13904
13993
|
}
|
|
13905
13994
|
async sayRoom() {
|
|
13906
13995
|
const room = await this.host.room?.().catch(() => null);
|
|
@@ -22030,4 +22119,4 @@ function groupMetaChange(before, after, first) {
|
|
|
22030
22119
|
}
|
|
22031
22120
|
export { beaconKeys as $, readImageMeta 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, isAppLine 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, readAppSignature as Ga, callSignalHeardAt as Gi, forwardedAgain as Gn, commitHash as Gr, WakeLimiter as Gt, SIGNAL_HOLD_MS as H, readAppRevocation as Ha, answersOffer as Hi, dhtEditId as Hn, MEMBER_KEY as Hr, WAKE_ONLINE_BATCH_MS as Ht, readGroupHave as I, appRevocationsFileEntries as Ia, decodeControl as Ii, parseVideoMeta as In, receivedTimestamp as Ir, nextPinNumber as It, mayBeHub as J, signAppRevocation as Ja, parseCallSignal as Ji, GROUP_REACTION_FRAME as Jn, parseGroupCommit as Jr, parseWakeFrame as Jt, MESH_HUBS as K, setAppSignatureFastPath as Ka, contactRtcConfig as Ki, readForwarded as Kn, commitUntaggedHash as Kr, deviceWakeRequest as Kt, readGroupWant as L, checkAppRevokeStatement 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, parseImageMeta as Qa, LEGACY_SERVICES as Qi, queueReaction as Qn, signCommit as Qr, checkPushEndpoint as Qt, readGroupWantNo as R, isAppHash 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, readAppRevocationShape as Ua, buildSdpFromSignal as Ui, validEditNumber as Un, OWN_FRAME_LIMIT as Ur, WAKE_ONLINE_DELAY_MS as Ut, SIGNAL_FRESH_MS as V, isAppRef as Va, RTC_CONFIG as Vi, RateWindow as Vn, MAX_GROUP_CHAIN as Vr, WAKE_INTERVAL_MS as Vt, groupSignalFrame as W, readAppRevocations as Wa, callRtcConfig as Wi, validRemovalNumber as Wn, SAID_AGAIN as Wr, WAKE_ONLINE_INTERVAL_MS as Wt, meshRendezvous as X, verifyAppSignature as Xa, emptyLinkRecords as Xi, ReactionWindow as Xn, rosterAdmin as Xr, wakeFrame as Xt, meshHubs as Y, verifyAppRevocation as Ya, signalHasVideo as Yi, REACTION_LIMITS as Yn, rememberAlone as Yr, relayRequest as Yt, pickMeshHubs as Z, exifOrientation 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, deviceEchoNonce as _o, RUN_RESULTS as _r, FileUplink as _t, groupMetaChange as a, contactDay as aa, confirmationTag as ai, APPS_CAPABILITY as an, OwnInviteError as ao, groupReplyAuthor as ar, lobbyRecords as at, GhostLink as b, APP_ICON_PATH as ba, ratchetSessionOf as bi, DHT_PACKET_BUDGET as bn, devicePingFrame as bo, appCardId as br, transferStalled as bt, groupMetaTag as c, knockSlotOf as ca, encryptText as ci, STATUS_CARD_CAPABILITY as cn, encodeInviteCode as co, replySnippet as cr, newerHead as ct, keepPastGroupMeta as d, makeStampPaced as da, newEpochSecret as di, DHT_TEXT_CAPABILITY as dn, ownInviteRefusal as do, BUTTON_STYLES as dr, readBeacon as dt, serviceIdFromName as ea, verifyChain as ei, APP_RANGE_LIMITS as en, canonicalJson as eo, reactionIsNewer as er, beaconRecords as et, nextGroupMetaRevision as f, mergeContactKnocks as fa, openPair as fi, capsDescriptors as fn, pastedAgain as fo, CRON_LINE as fr, readBeaconHead as ft, parseGroupMetaTag as g, requestRecords as ga, sha256Hex as gi, validExternalKey as gn, deviceEchoFrame as go, ROUTINE_STATES as gr, FILE_LIMITS as gt, parseGroupMetaFrame as h, readLinkRecord as ha, sealSecret as hi, emptyProofLedger as hn, HANDOFF_CAPABILITY as ho, PR_STATES as hr, ChatFiles as ht, groupMetaBody as i, contactAskerHolds as ia, confirmationMatches as ii, isAppVersion as in, INVITE_MAX_LENGTH 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, inviteLink as lo, wireReply as lr, pickHubs as lt, parseGroupMetaBody as m, readKnockSlot as ma, sealPair as mi, PeerProofs as mn, ENROLL_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, readCanonicalJson as no, validReactionNumber as nr, freshHubs as nt, groupMetaNewer as o, knockHolds as oa, decryptText as oi, BUTTONS_CAPABILITY as on, createChatInvite as oo, pairedReplyAuthor as or, mergeBeacon as ot, openGroupMeta as p, openRequest as pa, openSecret as pi, dialDescriptors as pn, DEVICES_CAPABILITY as po, ITEM_STATES as pr, readLobby as pt, NO_HUB_POLICY as q, signAppObject 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_HRP as ro, wireReaction as rr, hubRank as rt, groupMetaPicture as s, knockSlotIdentity as sa, edgeParams as si, EDIT_CAPABILITY as sn, decodeInviteCode as so, readReply as sr, mergeLobby as st, encodeGroupMetaBody as t, ContactRequestError as ta, verifyCommit as ti, isServeId as tn, canonicalJsonBytes as to, readReaction as tr, doorHubs as tt, groupName as u, linkRecords as ua, groupCallKey as ui, CapsExchange as un, inviteOwnership 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, deviceKeyZ32 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, newDeviceSetSecret as xo, appCardUrl as xr, STATUS_AVAILABILITIES as xt, wrapGroupMeta as y, APP_BUNDLE_MAGIC as ya, emptyRatchetState as yi, DHT_MESSAGE_TTL as yn, deviceLinkPairing as yo, TASK_STATUSES as yr, transferEnded as yt, CarriedTransport as z, isAppKey as za, CALL_SIGNAL_MAX_AGE_MS as zi, MAX_REMOVAL_NUMBER as zn, GROUP_ID as zr, readPin as zt };
|
|
22032
22121
|
|
|
22033
|
-
//# sourceMappingURL=groupMeta-
|
|
22122
|
+
//# sourceMappingURL=groupMeta-DHJxOu0K.js.map
|