@ghostlytools/cli 1.7.4 → 1.8.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 +16 -10
- package/SKILL.md +1 -1
- package/dist/assets/{api-D3i2hwy0.js → api-BpQC8dAw.js} +121 -40
- package/dist/assets/api-BpQC8dAw.js.map +1 -0
- package/dist/assets/{api-Chhvpwok.js → api-CttDF-S5.js} +2 -2
- package/dist/assets/{apiKit-BtsHrnoo.js → apiKit-CSMeHKgo.js} +17 -5
- package/dist/assets/{apiKit-BtsHrnoo.js.map → apiKit-CSMeHKgo.js.map} +1 -1
- package/dist/assets/{apps-BHl97rHs.js → apps-DqTyZ40T.js} +8 -7
- package/dist/assets/apps-DqTyZ40T.js.map +1 -0
- package/dist/assets/{apps-BFJTqvAt.js → apps-DzFMdVt6.js} +1 -1
- package/dist/assets/{arkade-BFE8KkEE.js → arkade-Cu3TbPxC.js} +2 -2
- package/dist/assets/{arkade-BFE8KkEE.js.map → arkade-Cu3TbPxC.js.map} +1 -1
- package/dist/assets/{backup-Bbsr6nDi.js → backup-CLZOORFC.js} +1 -1
- package/dist/assets/{backup-CxACdtQX.js → backup-CyTZhu28.js} +6 -6
- package/dist/assets/{backup-CxACdtQX.js.map → backup-CyTZhu28.js.map} +1 -1
- package/dist/assets/{buttons-CieBtXEO.js → buttons-Bd9fR31r.js} +177 -23
- package/dist/assets/buttons-Bd9fR31r.js.map +1 -0
- package/dist/assets/buttons-c4CJnL6i.js +2 -0
- package/dist/assets/{daemonProof-QmtwDj-N.js → daemonProof-DtrL5lE5.js} +2 -2
- package/dist/assets/{daemonProof-QmtwDj-N.js.map → daemonProof-DtrL5lE5.js.map} +1 -1
- package/dist/assets/{envelope-DYiGwzq_.js → envelope-CGfUsR1m.js} +2 -2
- package/dist/assets/{envelope-DYiGwzq_.js.map → envelope-CGfUsR1m.js.map} +1 -1
- package/dist/assets/{errors-QUGP-jIF.js → errors-R4S2SAEM.js} +7 -2
- package/dist/assets/errors-R4S2SAEM.js.map +1 -0
- package/dist/assets/fixedHosts-BiukTsd9.js +24 -0
- package/dist/assets/fixedHosts-BiukTsd9.js.map +1 -0
- package/dist/assets/{ghostly_iroh_web-CO0onry8.js → ghostly_iroh_web-BzAXJUYH.js} +10 -10
- package/dist/assets/{ghostly_iroh_web-CO0onry8.js.map → ghostly_iroh_web-BzAXJUYH.js.map} +1 -1
- package/dist/assets/ghostly_iroh_web_bg.wasm +0 -0
- package/dist/assets/{groupFiles-CBJIEvCE.js → groupFiles-CeF9nPv9.js} +759 -29
- package/dist/assets/groupFiles-CeF9nPv9.js.map +1 -0
- package/dist/assets/{host-Va-r_KJz.js → host-CKAehWP6.js} +65 -29
- package/dist/assets/host-CKAehWP6.js.map +1 -0
- package/dist/assets/hyperdhtRelay-1wzya_0L.js +25 -0
- package/dist/assets/hyperdhtRelay-1wzya_0L.js.map +1 -0
- package/dist/assets/{hyperdhtRelay-B2uK9tJv.js → hyperdhtRelay-B8Pdykhg.js} +15 -3
- package/dist/assets/hyperdhtRelay-B8Pdykhg.js.map +1 -0
- package/dist/assets/{irohWeb-DxeEgQ-W.js → irohWeb-D6tAPHZa.js} +11 -7
- package/dist/assets/{irohWeb-DxeEgQ-W.js.map → irohWeb-D6tAPHZa.js.map} +1 -1
- package/dist/assets/{main-BX4oPWCJ.js → main-BDY-pfpz.js} +121 -37
- package/dist/assets/main-BDY-pfpz.js.map +1 -0
- package/dist/assets/{mainline-IfWQOB-J.js → mainline-3ueXpFQL.js} +2 -2
- package/dist/assets/{mainline-IfWQOB-J.js.map → mainline-3ueXpFQL.js.map} +1 -1
- package/dist/assets/mints-BaOmx517.js +2 -0
- package/dist/assets/{mints-BrlY773j.js → mints-j5XAOk4f.js} +15 -3
- package/dist/assets/mints-j5XAOk4f.js.map +1 -0
- package/dist/assets/{networkReason-N2vAaoth.js → networkReason-DhJYOomu.js} +2 -2
- package/dist/assets/{networkReason-N2vAaoth.js.map → networkReason-DhJYOomu.js.map} +1 -1
- package/dist/assets/{nwc-CzyCtNK2.js → nwc-B1Quqda-.js} +3 -3
- package/dist/assets/{nwc-CzyCtNK2.js.map → nwc-B1Quqda-.js.map} +1 -1
- package/dist/assets/{nwcProvider-DjWmEn3j.js → nwcProvider-DUB6xO-b.js} +2 -2
- package/dist/assets/{nwcProvider-DjWmEn3j.js.map → nwcProvider-DUB6xO-b.js.map} +1 -1
- package/dist/assets/ownDid-BfqHJdA6.js +281 -0
- package/dist/assets/ownDid-BfqHJdA6.js.map +1 -0
- package/dist/assets/{profiles-DcCeOi7J.js → profiles-MFtCmJwK.js} +3 -3
- package/dist/assets/{profiles-DcCeOi7J.js.map → profiles-MFtCmJwK.js.map} +1 -1
- package/dist/assets/{registry-BmS02J5h.js → registry-CZTmtSws.js} +1 -1
- package/dist/assets/{registry-CeW8XEQc.js → registry-DwlTNQjr.js} +5 -246
- package/dist/assets/registry-DwlTNQjr.js.map +1 -0
- package/dist/assets/{resolve-BvHkAhDH.js → resolve-BVwhiYjj.js} +3 -268
- package/dist/assets/resolve-BVwhiYjj.js.map +1 -0
- package/dist/assets/{restoredRows-mTTp3XNs.js → restoredRows-BCRCjhdF.js} +26 -2
- package/dist/assets/{restoredRows-mTTp3XNs.js.map → restoredRows-BCRCjhdF.js.map} +1 -1
- package/dist/assets/{server-BUcJo4vz.js → server-Br3XPwFG.js} +1001 -243
- package/dist/assets/server-Br3XPwFG.js.map +1 -0
- package/dist/assets/{src-BB5-5P3s.js → src-C4sOH4zH.js} +1109 -181
- package/dist/assets/src-C4sOH4zH.js.map +1 -0
- package/dist/assets/sshForges-CQQomStK.js +253 -0
- package/dist/assets/sshForges-CQQomStK.js.map +1 -0
- package/dist/assets/{translate-2WyaRVCr.js → translate-C2aNyUkR.js} +20 -10
- package/dist/assets/translate-C2aNyUkR.js.map +1 -0
- package/dist/assets/{usdt-BLazHiaP.js → usdt-CMwatDnQ.js} +3 -3
- package/dist/assets/{usdt-BLazHiaP.js.map → usdt-CMwatDnQ.js.map} +1 -1
- package/dist/assets/waitNotice-Ck3el3_Z.js +45 -0
- package/dist/assets/waitNotice-Ck3el3_Z.js.map +1 -0
- package/dist/assets/{words-BaumxjXe.js → words-CqN2KG1r.js} +6 -3
- package/dist/assets/words-CqN2KG1r.js.map +1 -0
- package/dist/ghostly.mjs +1 -1
- package/examples/claude-code-agent.sh +1 -1
- package/package.json +1 -1
- package/dist/assets/api-D3i2hwy0.js.map +0 -1
- package/dist/assets/apps-BHl97rHs.js.map +0 -1
- package/dist/assets/buttons-CieBtXEO.js.map +0 -1
- package/dist/assets/buttons-YtAj3R_E.js +0 -2
- package/dist/assets/errors-QUGP-jIF.js.map +0 -1
- package/dist/assets/groupFiles-CBJIEvCE.js.map +0 -1
- package/dist/assets/host-Va-r_KJz.js.map +0 -1
- package/dist/assets/hyperdhtRelay-B2uK9tJv.js.map +0 -1
- package/dist/assets/hyperdhtRelay-BT_wRxab.js +0 -21
- package/dist/assets/hyperdhtRelay-BT_wRxab.js.map +0 -1
- package/dist/assets/main-BX4oPWCJ.js.map +0 -1
- package/dist/assets/mints-BrlY773j.js.map +0 -1
- package/dist/assets/mints-CqTdA4Gk.js +0 -2
- package/dist/assets/registry-CeW8XEQc.js.map +0 -1
- package/dist/assets/resolve-BvHkAhDH.js.map +0 -1
- package/dist/assets/server-BUcJo4vz.js.map +0 -1
- package/dist/assets/src-BB5-5P3s.js.map +0 -1
- package/dist/assets/translate-2WyaRVCr.js.map +0 -1
- package/dist/assets/words-BaumxjXe.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { a as fedimintSdkOn, r as irohRelayProblem } from "./irohWeb-
|
|
3
|
-
import { r as asCliError, t as CliError } from "./errors-
|
|
4
|
-
import { l as findOwnNamedChat, o 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-
|
|
6
|
-
import { b as privateFolder, g as startingPath, n as RESTORED_MARK, r as acquireLock, v as ownFolder, x as runtimePath } from "./profiles-
|
|
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-
|
|
1
|
+
import { $o as extractParamsFromSdp, Ei as isPublicAddress, Jo as answersOffer, Ko as CALL_SIGNAL_MAX_AGE_MS, Xo as callRtcConfig, Yo as buildSdpFromSignal, Zo as callSignalHeardAt, ei as checkPushEndpoint, es as parseCallSignal, ku as fromBase64Url, lu as setLinkTraceSink, qo as RTC_CONFIG, ts as signalHasVideo } from "./src-C4sOH4zH.js";
|
|
2
|
+
import { a as fedimintSdkOn, r as irohRelayProblem } from "./irohWeb-D6tAPHZa.js";
|
|
3
|
+
import { r as asCliError, t as CliError } from "./errors-R4S2SAEM.js";
|
|
4
|
+
import { l as findOwnNamedChat, o as findChat } from "./apiKit-CSMeHKgo.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-BpQC8dAw.js";
|
|
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
|
+
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";
|
|
@@ -38,10 +38,11 @@ function announceJoins(hub, node) {
|
|
|
38
38
|
};
|
|
39
39
|
return hub.onEvent((event) => {
|
|
40
40
|
const chat = event.chat;
|
|
41
|
-
|
|
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 (
|
|
45
|
+
if (live && link.pairingProgress?.role === "joiner") say(chat);
|
|
45
46
|
else if (event.type === "chat.joined") say(chat);
|
|
46
47
|
});
|
|
47
48
|
}
|
|
@@ -2091,14 +2092,16 @@ var EventHub = class {
|
|
|
2091
2092
|
const key = `${link.id}:${identity.id}`, shape = identity.status, before = this.received.get(key);
|
|
2092
2093
|
this.received.set(key, shape);
|
|
2093
2094
|
if (quiet || before === shape) continue;
|
|
2094
|
-
|
|
2095
|
+
const id = before === void 0 ? `identity.received:${key}:${shape}` : `identity.status:${key}:${shape}:${this.now()}:${this.seq + 1}`;
|
|
2096
|
+
this.emit(before === void 0 ? "identity.received" : "identity.status", id, {
|
|
2095
2097
|
chat: link.id,
|
|
2096
2098
|
identity: {
|
|
2097
2099
|
id: identity.id,
|
|
2098
2100
|
provider: identity.provider,
|
|
2099
2101
|
subject: identity.subject,
|
|
2100
2102
|
status: identity.status,
|
|
2101
|
-
verified: identity.verified
|
|
2103
|
+
verified: identity.verified,
|
|
2104
|
+
error: identity.error ?? null
|
|
2102
2105
|
}
|
|
2103
2106
|
});
|
|
2104
2107
|
}
|
|
@@ -3463,12 +3466,29 @@ var ON_DISK = /* @__PURE__ */ new Set(["messages", "fileState"]);
|
|
|
3463
3466
|
var COMPACT_BYTES = 33554432;
|
|
3464
3467
|
/** A journal up to this is kept at close and at start: replaying it costs less than writing the snapshot again. */
|
|
3465
3468
|
var KEEP_BYTES = 1048576;
|
|
3466
|
-
/** The
|
|
3467
|
-
var
|
|
3469
|
+
/** The chat row's field that holds its ratchet, as a journal's bytes spell it. Another row that says the word only folds early. */
|
|
3470
|
+
var RATCHET = "ratchetState";
|
|
3468
3471
|
/**
|
|
3469
|
-
* How long
|
|
3470
|
-
*
|
|
3471
|
-
*
|
|
3472
|
+
* How long a used ratchet state may stay on the disk while the store is in use, so a profile folder copied later opens
|
|
3473
|
+
* nothing older. The time a fold blocks does not set this (tens of milliseconds at 100,000 messages, which are not in
|
|
3474
|
+
* 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.
|
|
3475
|
+
*/
|
|
3476
|
+
var RATCHET_FOLD_MS = 36e5;
|
|
3477
|
+
/** The stores whose rows a delete means gone from the disk: the chats (their seed, their ratchet), their messages, the services. */
|
|
3478
|
+
var FORGOTTEN = /* @__PURE__ */ new Set([
|
|
3479
|
+
"links",
|
|
3480
|
+
"messages",
|
|
3481
|
+
"services"
|
|
3482
|
+
]);
|
|
3483
|
+
/**
|
|
3484
|
+
* The stores whose rows a write means gone from the disk as they were: the settings, where every secret the profile
|
|
3485
|
+
* 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
|
|
3486
|
+
* card's) and the TURN password, each removed by writing its row again without it.
|
|
3487
|
+
*/
|
|
3488
|
+
var REWRITTEN = /* @__PURE__ */ new Set(["settings"]);
|
|
3489
|
+
/**
|
|
3490
|
+
* 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
|
|
3491
|
+
* in use, so a profile folder copied later holds nothing older. The hour is the ratchet's, for the same reason.
|
|
3472
3492
|
*/
|
|
3473
3493
|
var DELETE_FOLD_MS = 36e5;
|
|
3474
3494
|
/**
|
|
@@ -3521,11 +3541,14 @@ async function openPersistentIndexedDb(dir, options = {}) {
|
|
|
3521
3541
|
let unsaved = false;
|
|
3522
3542
|
/** Set while the journal holds relaxed entries no sync has covered yet. */
|
|
3523
3543
|
let relaxed = null;
|
|
3524
|
-
/** The journal holds a
|
|
3544
|
+
/** The journal holds a chat's ratchet state, and with the next one it holds a key already used. */
|
|
3545
|
+
let holdsRatchet = false;
|
|
3546
|
+
/** The journal holds a delete of a chat or a message (or a settings write), and what came before it with it. */
|
|
3525
3547
|
let holdsDelete = false;
|
|
3526
3548
|
const pending = /* @__PURE__ */ new WeakMap();
|
|
3527
3549
|
const snapshotPath = join(dir, SNAPSHOT);
|
|
3528
3550
|
const journalPath = join(dir, JOURNAL);
|
|
3551
|
+
const ratchetDue = () => holdsRatchet && Date.now() - (statSync(snapshotPath, { throwIfNoEntry: false })?.mtimeMs ?? 0) >= RATCHET_FOLD_MS;
|
|
3529
3552
|
const deleteDue = () => holdsDelete && Date.now() - (statSync(snapshotPath, { throwIfNoEntry: false })?.mtimeMs ?? 0) >= DELETE_FOLD_MS;
|
|
3530
3553
|
const snapshotFound = existsSync(snapshotPath), journalFound = existsSync(journalPath);
|
|
3531
3554
|
const saved = snapshotFound ? deserialize(readFileSync(snapshotPath)) : null;
|
|
@@ -3584,8 +3607,9 @@ async function openPersistentIndexedDb(dir, options = {}) {
|
|
|
3584
3607
|
restoring = false;
|
|
3585
3608
|
/** Whether the journal on disk says the store is closed: nothing was written since its mark, or there is none. */
|
|
3586
3609
|
let marked = replayed.closed;
|
|
3610
|
+
holdsRatchet = !!journal?.includes(RATCHET);
|
|
3587
3611
|
holdsDelete = replayed.deletes;
|
|
3588
|
-
const kept = !!journal && named !== void 0 && named === snapshotName && replayed.end === journal.length && journal.length <= KEEP_BYTES && !deleteDue();
|
|
3612
|
+
const kept = !!journal && named !== void 0 && named === snapshotName && replayed.end === journal.length && journal.length <= KEEP_BYTES && !ratchetDue() && !deleteDue();
|
|
3589
3613
|
const rewrite = journal && !kept || !snapshotFound || moved;
|
|
3590
3614
|
if (rewrite) await writeSnapshot();
|
|
3591
3615
|
rows?.close();
|
|
@@ -3844,7 +3868,8 @@ async function openPersistentIndexedDb(dir, options = {}) {
|
|
|
3844
3868
|
failed(error);
|
|
3845
3869
|
}
|
|
3846
3870
|
}, RELAXED_SYNC_MS).unref();
|
|
3847
|
-
|
|
3871
|
+
holdsRatchet ||= entry.includes(RATCHET);
|
|
3872
|
+
if (statSync(journalPath).size > COMPACT_BYTES || ratchetDue() || deleteDue()) enqueue(writeSnapshot);
|
|
3848
3873
|
return true;
|
|
3849
3874
|
}
|
|
3850
3875
|
function sync() {
|
|
@@ -3950,11 +3975,12 @@ async function openPersistentIndexedDb(dir, options = {}) {
|
|
|
3950
3975
|
}
|
|
3951
3976
|
rmSync(journalPath, { force: true });
|
|
3952
3977
|
marked = true;
|
|
3978
|
+
holdsRatchet = false;
|
|
3953
3979
|
holdsDelete = false;
|
|
3954
3980
|
}
|
|
3955
3981
|
/** What `close` leaves: a short journal with the mark at its end, synced (its relaxed entries too), or a fresh snapshot. */
|
|
3956
3982
|
async function leave() {
|
|
3957
|
-
if (schemaDirty || unsaved || journalBytes() > KEEP_BYTES || deleteDue()) return writeSnapshot();
|
|
3983
|
+
if (schemaDirty || unsaved || journalBytes() > KEEP_BYTES || ratchetDue() || deleteDue()) return writeSnapshot();
|
|
3958
3984
|
if (marked) return;
|
|
3959
3985
|
writeEntry(serialize([{
|
|
3960
3986
|
db: CLOSED,
|
|
@@ -4014,6 +4040,14 @@ async function openPersistentIndexedDb(dir, options = {}) {
|
|
|
4014
4040
|
async exportSnapshot(path) {
|
|
4015
4041
|
await settled();
|
|
4016
4042
|
const snapshot = await capture(void 0, true);
|
|
4043
|
+
for (const db of snapshot.databases) for (const store of db.stores) {
|
|
4044
|
+
if (store.name !== "links") continue;
|
|
4045
|
+
store.records = store.records.map(([key, value]) => {
|
|
4046
|
+
if (!value || typeof value !== "object" || !("ratchetState" in value)) return [key, value];
|
|
4047
|
+
const { ratchetState: _ratchet, ...link } = value;
|
|
4048
|
+
return [key, link];
|
|
4049
|
+
});
|
|
4050
|
+
}
|
|
4017
4051
|
const fd = openSync(path, "w", 384);
|
|
4018
4052
|
try {
|
|
4019
4053
|
writeAll(fd, serialize(snapshot));
|
|
@@ -4491,9 +4525,9 @@ function fill(store, sorted) {
|
|
|
4491
4525
|
store.records._numNodes = sorted.length;
|
|
4492
4526
|
store.records._numTombstones = 0;
|
|
4493
4527
|
}
|
|
4494
|
-
/** Whether an op takes a chat or a
|
|
4528
|
+
/** 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. */
|
|
4495
4529
|
function deletes(op) {
|
|
4496
|
-
return op.kind !== "put" && FORGOTTEN.has(op.store);
|
|
4530
|
+
return REWRITTEN.has(op.store) || op.kind !== "put" && FORGOTTEN.has(op.store);
|
|
4497
4531
|
}
|
|
4498
4532
|
/**
|
|
4499
4533
|
* Replays whole entries; a torn last entry (the process died mid-write) was never acknowledged and is dropped.
|
|
@@ -4696,6 +4730,7 @@ function irohRelays(env = process.env) {
|
|
|
4696
4730
|
if (!relays.length) return null;
|
|
4697
4731
|
const bad = relays.map((url) => irohRelayProblem(url)).find(Boolean);
|
|
4698
4732
|
if (bad) throw new CliError("usage", `GHOSTLY_IROH_RELAYS: ${bad}`);
|
|
4733
|
+
if (relays.length > 5) throw new CliError("usage", `GHOSTLY_IROH_RELAYS: use at most 5 Iroh relays, not ${relays.length}`);
|
|
4699
4734
|
return relays;
|
|
4700
4735
|
}
|
|
4701
4736
|
/**
|
|
@@ -4846,9 +4881,10 @@ async function startRuntime(paths, options = {}) {
|
|
|
4846
4881
|
const restored = join(paths.dir, RESTORED_MARK);
|
|
4847
4882
|
if (existsSync(restored)) {
|
|
4848
4883
|
try {
|
|
4849
|
-
const rows = await import("./restoredRows-
|
|
4884
|
+
const rows = await import("./restoredRows-BCRCjhdF.js");
|
|
4850
4885
|
await rows.markRestoredWallet();
|
|
4851
4886
|
await rows.markLeftOutFiles(leftOutIn(restored));
|
|
4887
|
+
await rows.forgetRatchets();
|
|
4852
4888
|
await store.compact();
|
|
4853
4889
|
} catch (error) {
|
|
4854
4890
|
await store.close().catch(() => {});
|
|
@@ -4861,19 +4897,19 @@ async function startRuntime(paths, options = {}) {
|
|
|
4861
4897
|
const callsUnavailable = typeof stack === "string" ? stack : null;
|
|
4862
4898
|
installFileFetch();
|
|
4863
4899
|
const testMints = process.env.GHOSTLY_TEST_MINTS;
|
|
4864
|
-
if (testMints) (await import("./mints-
|
|
4900
|
+
if (testMints) (await import("./mints-BaOmx517.js")).declareTestMints(testMints.split(","));
|
|
4865
4901
|
await installEventSource();
|
|
4866
4902
|
await preloadWalletModules();
|
|
4867
|
-
(await import("./ghostly_iroh_web-
|
|
4903
|
+
(await import("./ghostly_iroh_web-BzAXJUYH.js")).initSync({ module: irohWasmBytes() });
|
|
4868
4904
|
const [{ registerFileBytes }, { NodeFileBytes }] = await Promise.all([import("./fileBytes-BPDKufla.js"), import("./fileBytes-Q3ehcEr8.js")]);
|
|
4869
4905
|
registerFileBytes("native", async () => new NodeFileBytes(paths.files), true);
|
|
4870
4906
|
if (await (await import("./blobFiles-DOQDRdDI.js")).moveBlobFiles()) await store.compact();
|
|
4871
|
-
const [{ EngineServer }, { createHyperEndpoint }] = await Promise.all([import("./server-
|
|
4872
|
-
const mainline = dht.off ? null : new (await (import("./mainline-
|
|
4907
|
+
const [{ EngineServer }, { createHyperEndpoint }] = await Promise.all([import("./server-Br3XPwFG.js"), import("./endpoint-BdaeBw2L.js")]);
|
|
4908
|
+
const mainline = dht.off ? null : new (await (import("./mainline-3ueXpFQL.js"))).Mainline({
|
|
4873
4909
|
bootstrap: dht.bootstrap,
|
|
4874
4910
|
host: dht.host
|
|
4875
4911
|
});
|
|
4876
|
-
const transport = mainline || pinned ? new (await (import("./mainline-
|
|
4912
|
+
const transport = mainline || pinned ? new (await (import("./mainline-3ueXpFQL.js"))).RelaysAndDht(mainline, pinned ? { relays: pinned } : {}, !!pinned) : null;
|
|
4877
4913
|
const apps = servedApps(paths.dir).length > 0;
|
|
4878
4914
|
const server = new EngineServer({
|
|
4879
4915
|
...transport ? { transport } : {},
|
|
@@ -5233,4 +5269,4 @@ function connection(ctx, socket, secret) {
|
|
|
5233
5269
|
//#endregion
|
|
5234
5270
|
export { BASELINE_NEWEST, MAX_LINE, MAX_UNREAD, keepServing, openHost, serve };
|
|
5235
5271
|
|
|
5236
|
-
//# sourceMappingURL=host-
|
|
5272
|
+
//# sourceMappingURL=host-CKAehWP6.js.map
|