@ghostlytools/cli 1.5.1 → 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-oUpBfryK.js → api-CHD8_kcJ.js} +2 -2
- package/dist/assets/{api-Dy_05gaq.js → api-CMohP9Pw.js} +11 -11
- package/dist/assets/api-CMohP9Pw.js.map +1 -0
- package/dist/assets/{apiKit-B-PUYkXH.js → apiKit-CfwVtBcw.js} +17 -3
- package/dist/assets/apiKit-CfwVtBcw.js.map +1 -0
- package/dist/assets/{apps-C6MBfO-I.js → apps-733nXRBy.js} +1 -1
- package/dist/assets/{apps-ejb6H1lT.js → apps-LG-QOIxs.js} +2 -2
- package/dist/assets/{apps-ejb6H1lT.js.map → apps-LG-QOIxs.js.map} +1 -1
- package/dist/assets/{arkade-DXyOeKEI.js → arkade-C8x3Efyj.js} +2 -2
- package/dist/assets/{arkade-DXyOeKEI.js.map → arkade-C8x3Efyj.js.map} +1 -1
- package/dist/assets/{backup-DRIIguzE.js → backup-CfJenOQo.js} +4 -4
- package/dist/assets/{backup-DRIIguzE.js.map → backup-CfJenOQo.js.map} +1 -1
- package/dist/assets/{backup-Bt6UjCiM.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-DoccJ_cK.js → buttons-BC0stvPg.js} +3 -3
- package/dist/assets/{buttons-DoccJ_cK.js.map → buttons-BC0stvPg.js.map} +1 -1
- package/dist/assets/buttons-BDKeKyKw.js +2 -0
- package/dist/assets/{envelope-hJ0SfbAh.js → envelope-BbvUBjc5.js} +2 -2
- package/dist/assets/{envelope-hJ0SfbAh.js.map → envelope-BbvUBjc5.js.map} +1 -1
- package/dist/assets/{groupFiles-BXPINkVJ.js → groupFiles-Bmo-SkVQ.js} +3 -3
- package/dist/assets/{groupFiles-BXPINkVJ.js.map → groupFiles-Bmo-SkVQ.js.map} +1 -1
- package/dist/assets/{host-CzgYwupN.js → host-DxDRCRKD.js} +40 -10
- package/dist/assets/host-DxDRCRKD.js.map +1 -0
- package/dist/assets/{hyperdhtRelay-CJBqsS_e.js → hyperdhtRelay-CZfsPfT9.js} +2 -2
- package/dist/assets/{hyperdhtRelay-CJBqsS_e.js.map → hyperdhtRelay-CZfsPfT9.js.map} +1 -1
- package/dist/assets/{irohWeb-CrGOD-OD.js → irohWeb-BUvaADop.js} +2 -2
- package/dist/assets/{irohWeb-CrGOD-OD.js.map → irohWeb-BUvaADop.js.map} +1 -1
- package/dist/assets/{main-BDOIJ_ls.js → main-BIXIs84L.js} +14 -14
- package/dist/assets/{main-BDOIJ_ls.js.map → main-BIXIs84L.js.map} +1 -1
- package/dist/assets/{mainline-Cw7rnEWM.js → mainline-HQVJ5ukA.js} +2 -2
- package/dist/assets/{mainline-Cw7rnEWM.js.map → mainline-HQVJ5ukA.js.map} +1 -1
- package/dist/assets/{networkReason-C0VY94cG.js → networkReason-CKBiFTwt.js} +2 -2
- package/dist/assets/{networkReason-C0VY94cG.js.map → networkReason-CKBiFTwt.js.map} +1 -1
- package/dist/assets/{nwc-lpGWvzYU.js → nwc-Dm4RSvvF.js} +3 -3
- package/dist/assets/{nwc-lpGWvzYU.js.map → nwc-Dm4RSvvF.js.map} +1 -1
- package/dist/assets/{nwcProvider-CAGRn2ly.js → nwcProvider-yQdL-DfC.js} +2 -2
- package/dist/assets/{nwcProvider-CAGRn2ly.js.map → nwcProvider-yQdL-DfC.js.map} +1 -1
- package/dist/assets/{registry-DWkkBN57.js → registry-C9f2Ogff.js} +3 -3
- package/dist/assets/{registry-DWkkBN57.js.map → registry-C9f2Ogff.js.map} +1 -1
- package/dist/assets/{registry-D2bK-k1T.js → registry-CHVZ0Jzl.js} +1 -1
- package/dist/assets/{resolve-CvYK0Lbt.js → resolve-Cqj1jjK2.js} +2 -2
- package/dist/assets/{resolve-CvYK0Lbt.js.map → resolve-Cqj1jjK2.js.map} +1 -1
- package/dist/assets/{server-BktMmp7L.js → server-CcAs54Yb.js} +33 -15
- package/dist/assets/{server-BktMmp7L.js.map → server-CcAs54Yb.js.map} +1 -1
- package/dist/assets/{src-Bpy99Z2K.js → src-BLHey3Q1.js} +54 -13
- package/dist/assets/src-BLHey3Q1.js.map +1 -0
- package/dist/assets/{usdt-DFusiw8x.js → usdt-DMKpMhdM.js} +3 -3
- package/dist/assets/{usdt-DFusiw8x.js.map → usdt-DMKpMhdM.js.map} +1 -1
- package/dist/assets/{words-Z-izzDBN.js → words-DUlvkoUT.js} +2 -2
- package/dist/assets/{words-Z-izzDBN.js.map → words-DUlvkoUT.js.map} +1 -1
- package/dist/ghostly.mjs +1 -1
- package/package.json +1 -1
- package/dist/assets/api-Dy_05gaq.js.map +0 -1
- package/dist/assets/apiKit-B-PUYkXH.js.map +0 -1
- package/dist/assets/buttons-B3bi6p_d.js +0 -2
- package/dist/assets/host-CzgYwupN.js.map +0 -1
- package/dist/assets/src-Bpy99Z2K.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Ao as CALL_SIGNAL_MAX_AGE_MS, Fo as callSignalHeardAt, Lo as extractParamsFromSdp, Mo as answersOffer, No as buildSdpFromSignal, Po as callRtcConfig, Ro as parseCallSignal, Si as isPublicAddress, Ul as setLinkTraceSink, Xr as checkPushEndpoint, jo as RTC_CONFIG, lu as fromBase64Url, zo as signalHasVideo } from "./src-
|
|
2
|
-
import { a as fedimintSdkOn, r as irohRelayProblem } from "./irohWeb-
|
|
1
|
+
import { Ao as CALL_SIGNAL_MAX_AGE_MS, Fo as callSignalHeardAt, Lo as extractParamsFromSdp, Mo as answersOffer, No as buildSdpFromSignal, Po as callRtcConfig, Ro as parseCallSignal, Si as isPublicAddress, Ul as setLinkTraceSink, Xr as checkPushEndpoint, jo as RTC_CONFIG, lu as fromBase64Url, zo as signalHasVideo } from "./src-BLHey3Q1.js";
|
|
2
|
+
import { a as fedimintSdkOn, r as irohRelayProblem } from "./irohWeb-BUvaADop.js";
|
|
3
3
|
import { r as asCliError, t as CliError } from "./errors-BLSPp0tK.js";
|
|
4
|
-
import { a as findChat } from "./apiKit-
|
|
5
|
-
import { _ as flushCardUpdates, c as paymentJson, d as nodeLocalFetch, f as chatJson, g as resumeHolds, h as groupMessageJson, l as reportAppFrames, m as groupJson, p as chatMessageJson, r as callApi, u as servedApps } from "./api-
|
|
4
|
+
import { a as findChat, c as findOwnNamedChat } from "./apiKit-CfwVtBcw.js";
|
|
5
|
+
import { _ as flushCardUpdates, c as paymentJson, d as nodeLocalFetch, f as chatJson, g as resumeHolds, h as groupMessageJson, l as reportAppFrames, m as groupJson, p as chatMessageJson, r as callApi, u as servedApps } from "./api-CMohP9Pw.js";
|
|
6
6
|
import { n as RESTORED_MARK, r as acquireLock } from "./profiles-BehWURA9.js";
|
|
7
7
|
import { _ as ownFolder, a as proof, d as DEFAULT_RATE, f as PlaybackQueue, g as isCallRate, h as frameSamples, l as removeDaemonSecret, m as frameBytes, n as greeting, p as bytesToMs, r as newDaemonSecret, y as privateFolder } from "./daemonProof-CWTVNUmr.js";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
@@ -10,13 +10,14 @@ import { appendFileSync, chmodSync, closeSync, existsSync, fstatSync, fsyncSync,
|
|
|
10
10
|
import { readFile } from "node:fs/promises";
|
|
11
11
|
import { dirname, join } from "node:path";
|
|
12
12
|
import { createHash, randomBytes } from "node:crypto";
|
|
13
|
+
import { Readable } from "node:stream";
|
|
13
14
|
import { createServer, isIP } from "node:net";
|
|
14
15
|
import { createInterface } from "node:readline";
|
|
15
16
|
import { lookup } from "node:dns/promises";
|
|
16
17
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
17
18
|
import { Worker } from "node:worker_threads";
|
|
18
|
-
import { lookup as lookup$1 } from "node:dns";
|
|
19
19
|
import { request } from "node:https";
|
|
20
|
+
import { lookup as lookup$1 } from "node:dns";
|
|
20
21
|
import { deserialize, serialize } from "node:v8";
|
|
21
22
|
import { IDBFactory, IDBKeyRange, IDBTransaction } from "fake-indexeddb";
|
|
22
23
|
//#region src/announce.ts
|
|
@@ -1212,7 +1213,7 @@ var CallManager = class {
|
|
|
1212
1213
|
};
|
|
1213
1214
|
}
|
|
1214
1215
|
setAuto(next) {
|
|
1215
|
-
const from = (next.from ?? []).map((ref) => this.
|
|
1216
|
+
const from = (next.from ?? []).map((ref) => findOwnNamedChat(this.host.engine.getState().links, ref).id);
|
|
1216
1217
|
this.auto = {
|
|
1217
1218
|
on: next.on,
|
|
1218
1219
|
from: next.on ? from : [],
|
|
@@ -2766,6 +2767,34 @@ async function nodePushSend(push, lookup = publicOnlyLookup) {
|
|
|
2766
2767
|
});
|
|
2767
2768
|
}
|
|
2768
2769
|
//#endregion
|
|
2770
|
+
//#region src/runtime/holdFetch.ts
|
|
2771
|
+
/**
|
|
2772
|
+
* How the CLI reads a held item or manifest (WISP 404): a GET to the address the contact chose, only
|
|
2773
|
+
* at a name whose every address is public, checked when the connection is made (so a name that changes its answer
|
|
2774
|
+
* in between is refused too). No redirect is followed, no proxy, no credentials. The engine bounds the size and time.
|
|
2775
|
+
*/
|
|
2776
|
+
function nodeHoldFetch(lookup = publicOnlyLookup) {
|
|
2777
|
+
return (input, init) => new Promise((resolve, reject) => {
|
|
2778
|
+
const url = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
|
|
2779
|
+
const req = request(url, {
|
|
2780
|
+
method: "GET",
|
|
2781
|
+
lookup,
|
|
2782
|
+
agent: false,
|
|
2783
|
+
signal: init?.signal ?? void 0
|
|
2784
|
+
}, (res) => {
|
|
2785
|
+
const headers = new Headers();
|
|
2786
|
+
for (const [name, value] of Object.entries(res.headers)) if (typeof value === "string") headers.set(name, value);
|
|
2787
|
+
const status = res.statusCode ?? 0;
|
|
2788
|
+
resolve(new Response(status === 204 || status === 304 ? null : Readable.toWeb(res), {
|
|
2789
|
+
status,
|
|
2790
|
+
headers
|
|
2791
|
+
}));
|
|
2792
|
+
});
|
|
2793
|
+
req.on("error", reject);
|
|
2794
|
+
req.end();
|
|
2795
|
+
});
|
|
2796
|
+
}
|
|
2797
|
+
//#endregion
|
|
2769
2798
|
//#region src/runtime/rows.ts
|
|
2770
2799
|
/** The warning `node:sqlite` gives as it loads (experimental on Node 22 and 23): said once for every command, it is noise. */
|
|
2771
2800
|
var SQLITE_WARNING = /^SQLite is an experimental feature/;
|
|
@@ -4693,14 +4722,14 @@ async function startRuntime(paths, options = {}) {
|
|
|
4693
4722
|
const [{ registerFileBytes }, { NodeFileBytes }] = await Promise.all([import("./fileBytes-gTd_8l-P.js"), import("./fileBytes-uRqLyxa0.js")]);
|
|
4694
4723
|
registerFileBytes("native", async () => new NodeFileBytes(paths.files), true);
|
|
4695
4724
|
if (await (await import("./blobFiles-1wUBd8ZD.js")).moveBlobFiles()) await store.compact();
|
|
4696
|
-
const [{ EngineServer }, { createHyperEndpoint }] = await Promise.all([import("./server-
|
|
4725
|
+
const [{ EngineServer }, { createHyperEndpoint }] = await Promise.all([import("./server-CcAs54Yb.js"), import("./endpoint-Cl3cgAYl.js")]);
|
|
4697
4726
|
const network = hyperdhtNetwork();
|
|
4698
4727
|
const dht = mainlineNetwork();
|
|
4699
|
-
const mainline = dht.off ? null : new (await (import("./mainline-
|
|
4728
|
+
const mainline = dht.off ? null : new (await (import("./mainline-HQVJ5ukA.js"))).Mainline({
|
|
4700
4729
|
bootstrap: dht.bootstrap,
|
|
4701
4730
|
host: dht.host
|
|
4702
4731
|
});
|
|
4703
|
-
const transport = mainline || pinned ? new (await (import("./mainline-
|
|
4732
|
+
const transport = mainline || pinned ? new (await (import("./mainline-HQVJ5ukA.js"))).RelaysAndDht(mainline, pinned ? { relays: pinned } : {}, !!pinned) : null;
|
|
4704
4733
|
const apps = servedApps(paths.dir).length > 0;
|
|
4705
4734
|
const server = new EngineServer({
|
|
4706
4735
|
...transport ? { transport } : {},
|
|
@@ -4715,6 +4744,7 @@ async function startRuntime(paths, options = {}) {
|
|
|
4715
4744
|
staysOnline: process.env.GHOSTLY_HUB !== "0",
|
|
4716
4745
|
localFetch: nodeLocalFetch,
|
|
4717
4746
|
pushSend: (request) => nodePushSend(request),
|
|
4747
|
+
holdFetch: nodeHoldFetch(),
|
|
4718
4748
|
callsSupport: callsUnavailable === null,
|
|
4719
4749
|
...callsUnavailable ? { callsUnavailable } : {},
|
|
4720
4750
|
...options.deferGroups ? { deferGroups: true } : {},
|
|
@@ -5040,4 +5070,4 @@ function connection(ctx, socket, secret) {
|
|
|
5040
5070
|
//#endregion
|
|
5041
5071
|
export { BASELINE_NEWEST, MAX_LINE, MAX_UNREAD, keepServing, openHost, serve };
|
|
5042
5072
|
|
|
5043
|
-
//# sourceMappingURL=host-
|
|
5073
|
+
//# sourceMappingURL=host-DxDRCRKD.js.map
|