@ghostlytools/cli 1.5.0 → 1.5.2
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/assets/{api-C_IHKsrl.js → api-CHD8_kcJ.js} +2 -2
- package/dist/assets/{api-ClHM_G5A.js → api-CMohP9Pw.js} +17 -13
- package/dist/assets/api-CMohP9Pw.js.map +1 -0
- package/dist/assets/{apiKit-gS-yfb25.js → apiKit-CfwVtBcw.js} +17 -3
- package/dist/assets/apiKit-CfwVtBcw.js.map +1 -0
- package/dist/assets/{apps-DyihkNO-.js → apps-733nXRBy.js} +1 -1
- package/dist/assets/{apps-DP8pElH-.js → apps-LG-QOIxs.js} +2 -2
- package/dist/assets/{apps-DP8pElH-.js.map → apps-LG-QOIxs.js.map} +1 -1
- package/dist/assets/{arkade-GzJoov-w.js → arkade-C8x3Efyj.js} +2 -2
- package/dist/assets/{arkade-GzJoov-w.js.map → arkade-C8x3Efyj.js.map} +1 -1
- package/dist/assets/{backup-DKDXkaS1.js → backup-CfJenOQo.js} +4 -4
- package/dist/assets/{backup-DKDXkaS1.js.map → backup-CfJenOQo.js.map} +1 -1
- package/dist/assets/{backup-A_C4hYNO.js → backup-nCbNWJ7-.js} +1 -1
- package/dist/assets/bark_ffi_wasm_bg-EY2uc0Bx.js.map +1 -1
- package/dist/assets/bitcoindevkit_bg-B-iLWrmX.js.map +1 -1
- package/dist/assets/{buttons-BDw8cqDq.js → buttons-BC0stvPg.js} +3 -3
- package/dist/assets/{buttons-BDw8cqDq.js.map → buttons-BC0stvPg.js.map} +1 -1
- package/dist/assets/buttons-BDKeKyKw.js +2 -0
- package/dist/assets/{envelope-DEvU5FA9.js → envelope-BbvUBjc5.js} +2 -2
- package/dist/assets/{envelope-DEvU5FA9.js.map → envelope-BbvUBjc5.js.map} +1 -1
- package/dist/assets/{groupFiles-Cr4Gj9-R.js → groupFiles-Bmo-SkVQ.js} +18 -4
- package/dist/assets/{groupFiles-Cr4Gj9-R.js.map → groupFiles-Bmo-SkVQ.js.map} +1 -1
- package/dist/assets/{host-D0MIWyOe.js → host-DxDRCRKD.js} +40 -10
- package/dist/assets/host-DxDRCRKD.js.map +1 -0
- package/dist/assets/{hyperdhtRelay-SBo4aoMk.js → hyperdhtRelay-CZfsPfT9.js} +2 -2
- package/dist/assets/{hyperdhtRelay-SBo4aoMk.js.map → hyperdhtRelay-CZfsPfT9.js.map} +1 -1
- package/dist/assets/{irohWeb-D2WaYPdN.js → irohWeb-BUvaADop.js} +2 -2
- package/dist/assets/{irohWeb-D2WaYPdN.js.map → irohWeb-BUvaADop.js.map} +1 -1
- package/dist/assets/{main-DUG0nGLw.js → main-BIXIs84L.js} +14 -14
- package/dist/assets/{main-DUG0nGLw.js.map → main-BIXIs84L.js.map} +1 -1
- package/dist/assets/{mainline-B8NGRodL.js → mainline-HQVJ5ukA.js} +2 -2
- package/dist/assets/{mainline-B8NGRodL.js.map → mainline-HQVJ5ukA.js.map} +1 -1
- package/dist/assets/{networkReason-BAnNO1Ji.js → networkReason-CKBiFTwt.js} +2 -2
- package/dist/assets/{networkReason-BAnNO1Ji.js.map → networkReason-CKBiFTwt.js.map} +1 -1
- package/dist/assets/{nwc-DQT3rx-s.js → nwc-Dm4RSvvF.js} +3 -3
- package/dist/assets/{nwc-DQT3rx-s.js.map → nwc-Dm4RSvvF.js.map} +1 -1
- package/dist/assets/{nwcProvider-Dq647EAl.js → nwcProvider-yQdL-DfC.js} +2 -2
- package/dist/assets/{nwcProvider-Dq647EAl.js.map → nwcProvider-yQdL-DfC.js.map} +1 -1
- package/dist/assets/{registry-ieI8INKT.js → registry-C9f2Ogff.js} +3 -3
- package/dist/assets/{registry-ieI8INKT.js.map → registry-C9f2Ogff.js.map} +1 -1
- package/dist/assets/{registry-DFiOxH5q.js → registry-CHVZ0Jzl.js} +1 -1
- package/dist/assets/{resolve-C39pc4Kf.js → resolve-Cqj1jjK2.js} +2 -2
- package/dist/assets/{resolve-C39pc4Kf.js.map → resolve-Cqj1jjK2.js.map} +1 -1
- package/dist/assets/{server-DIICuvgy.js → server-CcAs54Yb.js} +365 -199
- package/dist/assets/{server-DIICuvgy.js.map → server-CcAs54Yb.js.map} +1 -1
- package/dist/assets/{src-CwMTZ5Hj.js → src-BLHey3Q1.js} +125 -21
- package/dist/assets/src-BLHey3Q1.js.map +1 -0
- package/dist/assets/{usdt-CxSyuXq4.js → usdt-DMKpMhdM.js} +3 -3
- package/dist/assets/{usdt-CxSyuXq4.js.map → usdt-DMKpMhdM.js.map} +1 -1
- package/dist/assets/{words-31VaDW5h.js → words-DUlvkoUT.js} +2 -2
- package/dist/assets/{words-31VaDW5h.js.map → words-DUlvkoUT.js.map} +1 -1
- package/dist/ghostly.mjs +1 -1
- package/package.json +1 -1
- package/dist/assets/api-ClHM_G5A.js.map +0 -1
- package/dist/assets/apiKit-gS-yfb25.js.map +0 -1
- package/dist/assets/buttons-CNkxiN2c.js +0 -2
- package/dist/assets/host-D0MIWyOe.js.map +0 -1
- package/dist/assets/src-CwMTZ5Hj.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $n as readGroupWantNo, Bn as engineError, Dr as ChatFiles, En as decodeBolt11, Jn as groupFileFallback, Kn as GROUP_WANT_NO_FRAME,
|
|
1
|
+
import { $n as readGroupWantNo, Bn as engineError, Dr as ChatFiles, En as decodeBolt11, Jn as groupFileFallback, Kn as GROUP_WANT_NO_FRAME, Qn as readGroupWant, Ra as replySnippet, Tn as resolveLightningDestination, Un as GROUP_FILE_LIMITS, Vn as engineText, Wn as GROUP_HAVE_FRAME, Yn as isGroupMessageId, Zn as readGroupHave, ba as RateWindow, cn as walletNetworkOf, da as fileMessageText, du as randomBytes, fu as toBase64Url, kr as transferEnded, nn as WALLET_NETWORKS, qn as fetchesByItself, wn as requestLnurlInvoice } from "./src-BLHey3Q1.js";
|
|
2
2
|
import { a as describeProvider, c as offeredIn, d as sourceProblem, n as PROVIDER_PLATFORMS, o as isNothingSpentError, s as networkMode, t as NothingSpentError, u as redact } from "./types-C4_KafL_.js";
|
|
3
3
|
import { h as wrap, i as STORES, l as fileStore, m as transact, o as databaseName, p as store } from "./idb-BJARz3Qi.js";
|
|
4
|
-
import { a as sealSeed, i as newDeviceKey, o as unsealSeed, t as networkReason } from "./networkReason-
|
|
4
|
+
import { a as sealSeed, i as newDeviceKey, o as unsealSeed, t as networkReason } from "./networkReason-CKBiFTwt.js";
|
|
5
5
|
import { t as BITCOIN_INVOICE_ON_TESTNET, u as mintNetwork } from "./mints-BrlY773j.js";
|
|
6
6
|
import { f as FILE_BYTES_STEP, o as fileBytes, s as fileBytesOf } from "./fileBytes-B8eTZfAT.js";
|
|
7
7
|
import { sha256 } from "@noble/hashes/sha2.js";
|
|
@@ -2596,7 +2596,7 @@ var GroupFileDesk = class {
|
|
|
2596
2596
|
this.wants.delete(id);
|
|
2597
2597
|
continue;
|
|
2598
2598
|
}
|
|
2599
|
-
if (this.leaveSlow(kept, want)) continue;
|
|
2599
|
+
if (this.leaveSlow(kept, want) || this.leaveGone(kept, want)) continue;
|
|
2600
2600
|
if (now - (want.wire ? want.movedAt : want.holder ? want.at : want.round) < GROUP_FILE_LIMITS.wantWaitMs) continue;
|
|
2601
2601
|
if (want.wire) {
|
|
2602
2602
|
kept.left = want.holder;
|
|
@@ -2807,6 +2807,20 @@ var GroupFileDesk = class {
|
|
|
2807
2807
|
return true;
|
|
2808
2808
|
}
|
|
2809
2809
|
/**
|
|
2810
|
+
* The holder serving this want is gone (its edge's file session closed: its app went away mid-way) and another holder
|
|
2811
|
+
* may be asked now: the transfer ends here, what came stays, and that one is asked (`transferChanged`), not once
|
|
2812
|
+
* `wantWaitMs` went by with nothing moving. With nobody else in reach it waits, and goes on if the holder comes back.
|
|
2813
|
+
*/
|
|
2814
|
+
leaveGone(kept, want) {
|
|
2815
|
+
const edge = want.wire && want.linkId ? this.edgesById.get(want.linkId) : void 0;
|
|
2816
|
+
const record = edge?.files.get("in", want.wire);
|
|
2817
|
+
if (!edge || edge.files.live || !record || transferEnded(record) || record.state === "verifying") return false;
|
|
2818
|
+
if (!this.freeFor(kept, want, this.freeEdges(kept.groupId))) return false;
|
|
2819
|
+
kept.left = want.holder;
|
|
2820
|
+
edge.files.cancel("in", want.wire);
|
|
2821
|
+
return true;
|
|
2822
|
+
}
|
|
2823
|
+
/**
|
|
2810
2824
|
* No holder serves the author's bytes (`DAMAGED`), or this device has no room for them (`NO_ROOM`): the want stops,
|
|
2811
2825
|
* and stays stopped after a restart, until Download.
|
|
2812
2826
|
*/
|
|
@@ -3333,4 +3347,4 @@ function messageFile(kept) {
|
|
|
3333
3347
|
//#endregion
|
|
3334
3348
|
export { setAwayWallets as $, LightningCards as A, breezDatabaseInUse as B, FileAppender as C, streamStored as D, storedSize as E, ProviderSources as F, relayOnlyProblem as G, dropBreezDatabase as H, sourceKey as I, WrongNetworkError as J, ModeChanged as K, CASHU_MINT_SOURCE as L, isRecoveryPhrase as M, normalizePhrase as N, waitingGroupFile as O, lightningPaying as P, requireTurn as Q, cashuMint as R, WALLET_TYPES as S, removeStored as T, iceServerProblem as U, breezDatabasesFor as V, iceServerSetting as W, awayFrom as X, networkLabel as Y, refuseAway as Z, crossNetwork as _, storedGroupFiles as a, walletInstances as b, receivedPairedReply as c, paymentAlias as d, setSingleWriterGate as et, paymentWireId as f, createTiming as g, createFailure as h, groupOfFile as i, cardsKey as j, CASHU_CARD as k, replyRef as l, assertConfirmedReal as m, groupFileId as n, groupReply as o, WALLET_NAMES as p, ModeGate as q, groupFileText as r, pairedWireReply as s, GroupFileDesk as t, replyTo as u, paymentNetwork as v, readStored as w, MESSAGE_DETAILS_MAX_BYTES as x, paymentNetworksOf as y, breezDatabase as z };
|
|
3335
3349
|
|
|
3336
|
-
//# sourceMappingURL=groupFiles-
|
|
3350
|
+
//# sourceMappingURL=groupFiles-Bmo-SkVQ.js.map
|