@ghostlytools/cli 1.8.0 → 1.9.0

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.
Files changed (88) hide show
  1. package/README.md +11 -8
  2. package/SKILL.md +4 -3
  3. package/dist/assets/{api-I_KbuXHa.js → api-DFCgr6RH.js} +94 -35
  4. package/dist/assets/api-DFCgr6RH.js.map +1 -0
  5. package/dist/assets/{api-Dj1yn0px.js → api-raWw9j_m.js} +2 -2
  6. package/dist/assets/{apiKit-C-_PWZvy.js → apiKit-CCavJJcl.js} +2 -2
  7. package/dist/assets/{apiKit-C-_PWZvy.js.map → apiKit-CCavJJcl.js.map} +1 -1
  8. package/dist/assets/{apps-DbEfL_3b.js → apps-B7o2BPj6.js} +1 -1
  9. package/dist/assets/{apps-DKIe8VjF.js → apps-DmxEG147.js} +2 -2
  10. package/dist/assets/{apps-DKIe8VjF.js.map → apps-DmxEG147.js.map} +1 -1
  11. package/dist/assets/{arkade-k1bdSm70.js → arkade-DtYR9H0c.js} +2 -2
  12. package/dist/assets/{arkade-k1bdSm70.js.map → arkade-DtYR9H0c.js.map} +1 -1
  13. package/dist/assets/{backup-Cdd6-HNu.js → backup-BserdrNk.js} +1 -1
  14. package/dist/assets/{backup-beKfbfNk.js → backup-YIB2XIES.js} +4 -4
  15. package/dist/assets/{backup-beKfbfNk.js.map → backup-YIB2XIES.js.map} +1 -1
  16. package/dist/assets/bitcoindevkit_bg-B-iLWrmX.js.map +1 -1
  17. package/dist/assets/buttons-CuRfKnPI.js +1331 -0
  18. package/dist/assets/buttons-CuRfKnPI.js.map +1 -0
  19. package/dist/assets/buttons-De3LPdSG.js +2 -0
  20. package/dist/assets/{envelope-B88yiCQj.js → envelope-Dt75vrmY.js} +2 -2
  21. package/dist/assets/{envelope-B88yiCQj.js.map → envelope-Dt75vrmY.js.map} +1 -1
  22. package/dist/assets/fedimint_client_wasm_bg-BtHHlFpp.js.map +1 -1
  23. package/dist/assets/fixedHosts-B598JzbC.js +24 -0
  24. package/dist/assets/fixedHosts-B598JzbC.js.map +1 -0
  25. package/dist/assets/{ghostly_iroh_web-CO0onry8.js → ghostly_iroh_web-BzAXJUYH.js} +10 -10
  26. package/dist/assets/{ghostly_iroh_web-CO0onry8.js.map → ghostly_iroh_web-BzAXJUYH.js.map} +1 -1
  27. package/dist/assets/ghostly_iroh_web_bg.wasm +0 -0
  28. package/dist/assets/{groupFiles-DjQc5XXv.js → groupFiles-FXel6zIc.js} +41 -11
  29. package/dist/assets/groupFiles-FXel6zIc.js.map +1 -0
  30. package/dist/assets/{host-CNWGB3-j.js → host-DIBeK_c_.js} +95 -28
  31. package/dist/assets/host-DIBeK_c_.js.map +1 -0
  32. package/dist/assets/hyperdhtRelay-1wzya_0L.js +25 -0
  33. package/dist/assets/hyperdhtRelay-1wzya_0L.js.map +1 -0
  34. package/dist/assets/{hyperdhtRelay-g7eXzf5h.js → hyperdhtRelay-D185dETu.js} +15 -3
  35. package/dist/assets/hyperdhtRelay-D185dETu.js.map +1 -0
  36. package/dist/assets/{irohWeb-Bx8dI4be.js → irohWeb-BSv_BWyG.js} +25 -8
  37. package/dist/assets/{irohWeb-Bx8dI4be.js.map → irohWeb-BSv_BWyG.js.map} +1 -1
  38. package/dist/assets/{main-BRxhBctJ.js → main-BbhfMTt8.js} +50 -22
  39. package/dist/assets/main-BbhfMTt8.js.map +1 -0
  40. package/dist/assets/{mainline-CwuS6ngj.js → mainline-9Vc3c3SA.js} +2 -2
  41. package/dist/assets/{mainline-CwuS6ngj.js.map → mainline-9Vc3c3SA.js.map} +1 -1
  42. package/dist/assets/{networkReason-CIAMieQm.js → networkReason-BncJ9KSM.js} +2 -2
  43. package/dist/assets/{networkReason-CIAMieQm.js.map → networkReason-BncJ9KSM.js.map} +1 -1
  44. package/dist/assets/{nwc-C9JLJJkL.js → nwc-QX3Yt1Sb.js} +3 -3
  45. package/dist/assets/{nwc-C9JLJJkL.js.map → nwc-QX3Yt1Sb.js.map} +1 -1
  46. package/dist/assets/{nwcProvider-pFMrsUJh.js → nwcProvider-CzX3xH47.js} +2 -2
  47. package/dist/assets/{nwcProvider-pFMrsUJh.js.map → nwcProvider-CzX3xH47.js.map} +1 -1
  48. package/dist/assets/ownDid-D8z5gwGI.js +281 -0
  49. package/dist/assets/ownDid-D8z5gwGI.js.map +1 -0
  50. package/dist/assets/{registry-Cks7FA_o.js → registry-B2Dtnibo.js} +5 -246
  51. package/dist/assets/registry-B2Dtnibo.js.map +1 -0
  52. package/dist/assets/{registry-DY2ixQfU.js → registry-PTtBMaYZ.js} +1 -1
  53. package/dist/assets/{resolve-C4Y2HPqQ.js → resolve-ZxVzwFNA.js} +3 -280
  54. package/dist/assets/resolve-ZxVzwFNA.js.map +1 -0
  55. package/dist/assets/{server-D9RAmGdm.js → server-Dw1o8z1o.js} +1144 -359
  56. package/dist/assets/server-Dw1o8z1o.js.map +1 -0
  57. package/dist/assets/{src-1RU4TilT.js → src-BD8RBVEp.js} +1269 -134
  58. package/dist/assets/src-BD8RBVEp.js.map +1 -0
  59. package/dist/assets/sshForges-DWrESWkK.js +253 -0
  60. package/dist/assets/sshForges-DWrESWkK.js.map +1 -0
  61. package/dist/assets/{translate-od5GbpvR.js → translate-D1uP0q32.js} +17 -5
  62. package/dist/assets/translate-D1uP0q32.js.map +1 -0
  63. package/dist/assets/{usdt-DldXV0MR.js → usdt-DhVN8geQ.js} +3 -3
  64. package/dist/assets/{usdt-DldXV0MR.js.map → usdt-DhVN8geQ.js.map} +1 -1
  65. package/dist/assets/{waitNotice-Ck3el3_Z.js → waitNotice-B8D8WhbE.js} +2 -2
  66. package/dist/assets/waitNotice-B8D8WhbE.js.map +1 -0
  67. package/dist/assets/{words-BS2qq_vV.js → words-DdXPkB3n.js} +3 -2
  68. package/dist/assets/words-DdXPkB3n.js.map +1 -0
  69. package/dist/ghostly.mjs +1 -1
  70. package/examples/call-echo.mjs +7 -5
  71. package/package.json +1 -1
  72. package/dist/assets/api-I_KbuXHa.js.map +0 -1
  73. package/dist/assets/buttons-BO1_7V4L.js +0 -2
  74. package/dist/assets/buttons-ClI13rdv.js +0 -545
  75. package/dist/assets/buttons-ClI13rdv.js.map +0 -1
  76. package/dist/assets/groupFiles-DjQc5XXv.js.map +0 -1
  77. package/dist/assets/host-CNWGB3-j.js.map +0 -1
  78. package/dist/assets/hyperdhtRelay-BT_wRxab.js +0 -21
  79. package/dist/assets/hyperdhtRelay-BT_wRxab.js.map +0 -1
  80. package/dist/assets/hyperdhtRelay-g7eXzf5h.js.map +0 -1
  81. package/dist/assets/main-BRxhBctJ.js.map +0 -1
  82. package/dist/assets/registry-Cks7FA_o.js.map +0 -1
  83. package/dist/assets/resolve-C4Y2HPqQ.js.map +0 -1
  84. package/dist/assets/server-D9RAmGdm.js.map +0 -1
  85. package/dist/assets/src-1RU4TilT.js.map +0 -1
  86. package/dist/assets/translate-od5GbpvR.js.map +0 -1
  87. package/dist/assets/waitNotice-Ck3el3_Z.js.map +0 -1
  88. package/dist/assets/words-BS2qq_vV.js.map +0 -1
@@ -1,15 +1,15 @@
1
- import { $o as parseCallSignal, Du as fromBase64Url, Ei as isPublicAddress, Go as CALL_SIGNAL_MAX_AGE_MS, Jo as buildSdpFromSignal, Ko as RTC_CONFIG, Qo as extractParamsFromSdp, Xo as callSignalHeardAt, Yo as callRtcConfig, ei as checkPushEndpoint, es as signalHasVideo, qo as answersOffer, su as setLinkTraceSink } from "./src-1RU4TilT.js";
2
- import { a as fedimintSdkOn, r as irohRelayProblem } from "./irohWeb-Bx8dI4be.js";
1
+ import { $o as CALL_SIGNAL_MAX_AGE_MS, Fu as fromBase64Url, Ni as isPublicAddress, cs as signalHasVideo, es as RTC_CONFIG, hu as setLinkTraceSink, is as callSignalHeardAt, ns as buildSdpFromSignal, os as extractParamsFromSdp, rs as callRtcConfig, si as checkPushEndpoint, ss as parseCallSignal, ts as answersOffer } from "./src-BD8RBVEp.js";
2
+ import { o as fedimintSdkOn, r as irohRelayProblem } from "./irohWeb-BSv_BWyG.js";
3
3
  import { r as asCliError, t as CliError } from "./errors-R4S2SAEM.js";
4
- import { l as findOwnNamedChat, o as findChat } from "./apiKit-C-_PWZvy.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-I_KbuXHa.js";
4
+ import { l as findOwnNamedChat, o as findChat } from "./apiKit-CCavJJcl.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-DFCgr6RH.js";
6
6
  import { b as privateFolder, g as startingPath, n as RESTORED_MARK, r as acquireLock, v as ownFolder, x as runtimePath } from "./profiles-MFtCmJwK.js";
7
7
  import { _ as isCallRate, f as DEFAULT_RATE, g as frameSamples, h as frameBytes, i as newDaemonSecret, m as bytesToMs, o as proof, p as PlaybackQueue, r as greeting, u as removeDaemonSecret } from "./daemonProof-DtrL5lE5.js";
8
8
  import { createRequire } from "node:module";
9
9
  import { appendFileSync, chmodSync, closeSync, existsSync, fstatSync, fsyncSync, ftruncateSync, lstatSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, renameSync, rmSync, statSync, writeFileSync, writeSync } from "node:fs";
10
10
  import { readFile } from "node:fs/promises";
11
11
  import { dirname, join } from "node:path";
12
- import { createHash, randomBytes } from "node:crypto";
12
+ import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
13
13
  import { Readable } from "node:stream";
14
14
  import { createServer, isIP } from "node:net";
15
15
  import { createInterface } from "node:readline";
@@ -38,10 +38,11 @@ function announceJoins(hub, node) {
38
38
  };
39
39
  return hub.onEvent((event) => {
40
40
  const chat = event.chat;
41
- if (!chat) return;
41
+ const live = event.type === "chat.connection" && event.live;
42
+ if (!chat || !(live || event.type === "chat.joined") || hub.said(chat, "join")) return;
42
43
  const link = node.getState().links.find((l) => l.id === chat);
43
44
  if (!link?.profile) return;
44
- if (event.type === "chat.connection" && event.live && link.pairingProgress?.role === "joiner") say(chat);
45
+ if (live && link.pairingProgress?.role === "joiner") say(chat);
45
46
  else if (event.type === "chat.joined") say(chat);
46
47
  });
47
48
  }
@@ -75,27 +76,40 @@ function clearAudioSockets(profileDir) {
75
76
  * Serves one call's audio to one program at a time: what the program writes is handed to `onAudio` as it comes (raw
76
77
  * PCM, any amount); `write` gives it the caller's audio. A second connection replaces the first. `close` ends the
77
78
  * program's connection (it reads EOF) and removes the socket.
79
+ *
80
+ * Each call has a token (`token`, 32 random bytes as hex, given to the daemon's clients with the socket's path). A
81
+ * program sends it first, then a line feed. With `requireToken` (the default on Windows, whose named pipe any account
82
+ * of the machine may open and read), a connection is nobody's until it has: it hears nothing and replaces nobody, it is
83
+ * closed when what it sent is not the token, and when `proveMs` pass without it. On an owner-only Unix socket the token
84
+ * is optional: a connection is the program at once, and a token line it sends first is kept out of the call's audio.
78
85
  */
79
86
  var AudioSocket = class AudioSocket {
80
87
  path;
81
88
  server;
82
89
  rate;
90
+ requireToken;
91
+ proveMs;
83
92
  client = null;
93
+ /** Connections that have not sent the token yet. */
94
+ unproven = /* @__PURE__ */ new Set();
84
95
  closed = false;
85
96
  /** Frames the program did not read in time, since the start. */
86
97
  dropped = 0;
87
- constructor(path, server, rate) {
98
+ token = randomBytes(32).toString("hex");
99
+ constructor(path, server, rate, requireToken, proveMs) {
88
100
  this.path = path;
89
101
  this.server = server;
90
102
  this.rate = rate;
103
+ this.requireToken = requireToken;
104
+ this.proveMs = proveMs;
91
105
  }
92
- static async open(path, rate, handlers) {
106
+ static async open(path, rate, handlers, options = {}) {
93
107
  if (process.platform !== "win32") {
94
108
  privateFolder(join(path, ".."), "calls will not put their audio there");
95
109
  if (existsSync(path)) rmSync(path, { force: true });
96
110
  }
97
111
  let self = null;
98
- const server = createServer((socket) => self.accept(socket, handlers));
112
+ const server = createServer((socket) => self ? self.accept(socket, handlers) : socket.destroy());
99
113
  await new Promise((resolve, reject) => {
100
114
  server.once("error", reject);
101
115
  server.listen(path, () => {
@@ -104,7 +118,7 @@ var AudioSocket = class AudioSocket {
104
118
  });
105
119
  });
106
120
  if (process.platform !== "win32") chmodSync(path, 384);
107
- self = new AudioSocket(path, server, rate);
121
+ self = new AudioSocket(path, server, rate, options.requireToken ?? process.platform === "win32", options.proveMs ?? 5e3);
108
122
  return self;
109
123
  }
110
124
  get connected() {
@@ -115,20 +129,57 @@ var AudioSocket = class AudioSocket {
115
129
  socket.destroy();
116
130
  return;
117
131
  }
118
- const before = this.client;
119
- this.client = socket;
120
- before?.end();
121
132
  socket.setNoDelay?.(true);
133
+ socket.on("error", () => {});
134
+ const line = Buffer.from(`${this.token}\n`);
135
+ let head = Buffer.alloc(0);
136
+ const take = () => {
137
+ this.unproven.delete(socket);
138
+ const before = this.client;
139
+ this.client = socket;
140
+ before?.end();
141
+ handlers.onClient?.(true);
142
+ };
143
+ let timer = null;
144
+ if (this.requireToken) {
145
+ this.unproven.add(socket);
146
+ timer = setTimeout(() => socket.destroy(), this.proveMs);
147
+ timer.unref?.();
148
+ } else take();
122
149
  socket.on("data", (chunk) => {
150
+ if (head) {
151
+ head = Buffer.concat([head, chunk]);
152
+ if (this.requireToken) {
153
+ if (head.length < line.length) return;
154
+ if (!timingSafeEqual(head.subarray(0, line.length), line)) {
155
+ socket.destroy();
156
+ return;
157
+ }
158
+ if (timer) clearTimeout(timer);
159
+ take();
160
+ } else {
161
+ const seen = Math.min(head.length, line.length);
162
+ if (!head.subarray(0, seen).equals(line.subarray(0, seen))) {
163
+ chunk = head;
164
+ head = null;
165
+ if (this.client === socket) handlers.onAudio(chunk);
166
+ return;
167
+ }
168
+ if (head.length < line.length) return;
169
+ }
170
+ chunk = head.subarray(line.length);
171
+ head = null;
172
+ if (!chunk.length) return;
173
+ }
123
174
  if (this.client === socket) handlers.onAudio(chunk);
124
175
  });
125
- socket.on("error", () => {});
126
176
  socket.on("close", () => {
177
+ if (timer) clearTimeout(timer);
178
+ this.unproven.delete(socket);
127
179
  if (this.client !== socket) return;
128
180
  this.client = null;
129
181
  handlers.onClient?.(false);
130
182
  });
131
- handlers.onClient?.(true);
132
183
  }
133
184
  /** One frame of the caller's audio for the program; dropped when nobody listens or the program stopped reading. */
134
185
  write(frame) {
@@ -148,6 +199,8 @@ var AudioSocket = class AudioSocket {
148
199
  this.client = null;
149
200
  client?.end();
150
201
  if (client) setTimeout(() => client.destroy(), 2e3).unref();
202
+ for (const socket of this.unproven) socket.destroy();
203
+ this.unproven.clear();
151
204
  return new Promise((resolve) => {
152
205
  this.server.close(() => resolve());
153
206
  if (process.platform !== "win32") rmSync(this.path, { force: true });
@@ -1524,6 +1577,7 @@ var CallManager = class {
1524
1577
  audioInfo(call) {
1525
1578
  return call.socket ? {
1526
1579
  socket: call.socket.path,
1580
+ token: call.socket.token,
1527
1581
  rate: call.rate,
1528
1582
  channels: 1,
1529
1583
  format: "s16le",
@@ -2612,6 +2666,8 @@ var SAID = {
2612
2666
  "link.native": "entry session: WebRTC connected nothing, going on over a native transport",
2613
2667
  "invite.sent": "invitation sent on the entry session",
2614
2668
  "invite.received": "invitation received on the entry session: accepting",
2669
+ "full.sent": "the group is full: told the joiner on the entry session",
2670
+ "full.received": "the group is full: knocking on until there is room",
2615
2671
  "welcome.sent": "welcome sent",
2616
2672
  "welcome.received": "welcome received: in the group"
2617
2673
  };
@@ -3473,11 +3529,21 @@ var RATCHET = "ratchetState";
3473
3529
  * the snapshot); its disk writes do: 4 MB on that profile, so about 100 MB a day at this hour and 600 MB at 10 minutes.
3474
3530
  */
3475
3531
  var RATCHET_FOLD_MS = 36e5;
3476
- /** The stores whose rows a delete means gone from the disk: the chats (their seed, their ratchet) and their messages. */
3477
- var FORGOTTEN = /* @__PURE__ */ new Set(["links", "messages"]);
3532
+ /** The stores whose rows a delete means gone from the disk: the chats (their seed, their ratchet), their messages, the services. */
3533
+ var FORGOTTEN = /* @__PURE__ */ new Set([
3534
+ "links",
3535
+ "messages",
3536
+ "services"
3537
+ ]);
3538
+ /**
3539
+ * The stores whose rows a write means gone from the disk as they were: the settings, where every secret the profile
3540
+ * seals is kept (an x401 credential and its key, a contact link's, a DID's or an identity proof's seed, a wallet's or a
3541
+ * card's) and the TURN password, each removed by writing its row again without it.
3542
+ */
3543
+ var REWRITTEN = /* @__PURE__ */ new Set(["settings"]);
3478
3544
  /**
3479
- * How long what a delete of a chat or a message took may stay in the journal while the store is in use, so a profile
3480
- * folder copied later holds nothing older. The hour is the ratchet's, for the same reason.
3545
+ * How long what a delete of a chat or a message (or a settings write) took may stay in the journal while the store is
3546
+ * in use, so a profile folder copied later holds nothing older. The hour is the ratchet's, for the same reason.
3481
3547
  */
3482
3548
  var DELETE_FOLD_MS = 36e5;
3483
3549
  /**
@@ -3532,7 +3598,7 @@ async function openPersistentIndexedDb(dir, options = {}) {
3532
3598
  let relaxed = null;
3533
3599
  /** The journal holds a chat's ratchet state, and with the next one it holds a key already used. */
3534
3600
  let holdsRatchet = false;
3535
- /** The journal holds a delete of a chat or a message, and what came before it with it. */
3601
+ /** The journal holds a delete of a chat or a message (or a settings write), and what came before it with it. */
3536
3602
  let holdsDelete = false;
3537
3603
  const pending = /* @__PURE__ */ new WeakMap();
3538
3604
  const snapshotPath = join(dir, SNAPSHOT);
@@ -4514,9 +4580,9 @@ function fill(store, sorted) {
4514
4580
  store.records._numNodes = sorted.length;
4515
4581
  store.records._numTombstones = 0;
4516
4582
  }
4517
- /** Whether an op takes a chat or a message away: a delete, or a clear of their store. */
4583
+ /** Whether an op takes a chat, a message or a service away (a delete, or a clear of their store), or writes a setting over. */
4518
4584
  function deletes(op) {
4519
- return op.kind !== "put" && FORGOTTEN.has(op.store);
4585
+ return REWRITTEN.has(op.store) || op.kind !== "put" && FORGOTTEN.has(op.store);
4520
4586
  }
4521
4587
  /**
4522
4588
  * Replays whole entries; a torn last entry (the process died mid-write) was never acknowledged and is dropped.
@@ -4719,6 +4785,7 @@ function irohRelays(env = process.env) {
4719
4785
  if (!relays.length) return null;
4720
4786
  const bad = relays.map((url) => irohRelayProblem(url)).find(Boolean);
4721
4787
  if (bad) throw new CliError("usage", `GHOSTLY_IROH_RELAYS: ${bad}`);
4788
+ if (relays.length > 5) throw new CliError("usage", `GHOSTLY_IROH_RELAYS: use at most 5 Iroh relays, not ${relays.length}`);
4722
4789
  return relays;
4723
4790
  }
4724
4791
  /**
@@ -4888,16 +4955,16 @@ async function startRuntime(paths, options = {}) {
4888
4955
  if (testMints) (await import("./mints-BaOmx517.js")).declareTestMints(testMints.split(","));
4889
4956
  await installEventSource();
4890
4957
  await preloadWalletModules();
4891
- (await import("./ghostly_iroh_web-CO0onry8.js")).initSync({ module: irohWasmBytes() });
4958
+ (await import("./ghostly_iroh_web-BzAXJUYH.js")).initSync({ module: irohWasmBytes() });
4892
4959
  const [{ registerFileBytes }, { NodeFileBytes }] = await Promise.all([import("./fileBytes-BPDKufla.js"), import("./fileBytes-Q3ehcEr8.js")]);
4893
4960
  registerFileBytes("native", async () => new NodeFileBytes(paths.files), true);
4894
4961
  if (await (await import("./blobFiles-DOQDRdDI.js")).moveBlobFiles()) await store.compact();
4895
- const [{ EngineServer }, { createHyperEndpoint }] = await Promise.all([import("./server-D9RAmGdm.js"), import("./endpoint-BdaeBw2L.js")]);
4896
- const mainline = dht.off ? null : new (await (import("./mainline-CwuS6ngj.js"))).Mainline({
4962
+ const [{ EngineServer }, { createHyperEndpoint }] = await Promise.all([import("./server-Dw1o8z1o.js"), import("./endpoint-BdaeBw2L.js")]);
4963
+ const mainline = dht.off ? null : new (await (import("./mainline-9Vc3c3SA.js"))).Mainline({
4897
4964
  bootstrap: dht.bootstrap,
4898
4965
  host: dht.host
4899
4966
  });
4900
- const transport = mainline || pinned ? new (await (import("./mainline-CwuS6ngj.js"))).RelaysAndDht(mainline, pinned ? { relays: pinned } : {}, !!pinned) : null;
4967
+ const transport = mainline || pinned ? new (await (import("./mainline-9Vc3c3SA.js"))).RelaysAndDht(mainline, pinned ? { relays: pinned } : {}, !!pinned) : null;
4901
4968
  const apps = servedApps(paths.dir).length > 0;
4902
4969
  const server = new EngineServer({
4903
4970
  ...transport ? { transport } : {},
@@ -5257,4 +5324,4 @@ function connection(ctx, socket, secret) {
5257
5324
  //#endregion
5258
5325
  export { BASELINE_NEWEST, MAX_LINE, MAX_UNREAD, keepServing, openHost, serve };
5259
5326
 
5260
- //# sourceMappingURL=host-CNWGB3-j.js.map
5327
+ //# sourceMappingURL=host-DIBeK_c_.js.map