@paradow/ledge-relay 0.0.0-stage → 0.61.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 (34) hide show
  1. package/LICENSE +75 -0
  2. package/README.md +235 -2
  3. package/dist/chunk-HTYEMUSI.js +5158 -0
  4. package/dist/cli.js +434 -0
  5. package/dist/main.js +25 -0
  6. package/package.json +42 -4
  7. package/web/assets/App-zclWYn2G.js +23 -0
  8. package/web/assets/boot-GtprRTxP.js +1 -0
  9. package/web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  10. package/web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  11. package/web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  12. package/web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  13. package/web/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
  14. package/web/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
  15. package/web/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
  16. package/web/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
  17. package/web/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
  18. package/web/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
  19. package/web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  20. package/web/assets/index-C0ikeXTk.css +1 -0
  21. package/web/assets/index-CytIBIB5.js +52 -0
  22. package/web/assets/label-8OD9J9FC.js +1 -0
  23. package/web/assets/xterm-CATQzocj.js +9 -0
  24. package/web/assets/xterm-DYP7pi_n.css +32 -0
  25. package/web/build.json +1 -0
  26. package/web/favicon-32.png +0 -0
  27. package/web/favicon.svg +1 -0
  28. package/web/icon-180.png +0 -0
  29. package/web/icon-192.png +0 -0
  30. package/web/icon-512.png +0 -0
  31. package/web/icon-maskable-512.png +0 -0
  32. package/web/index.html +22 -0
  33. package/web/manifest.webmanifest +29 -0
  34. package/web/sw.js +2 -0
package/dist/cli.js ADDED
@@ -0,0 +1,434 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ ConfigError,
4
+ DirectoryAccessError,
5
+ isPermissionError,
6
+ loadConfig,
7
+ parsePublicUrl,
8
+ startRelay,
9
+ startupErrorLine
10
+ } from "./chunk-HTYEMUSI.js";
11
+
12
+ // src/cli.ts
13
+ import { chmodSync as chmodSync2, mkdirSync as mkdirSync2, readFileSync as readFileSync3, realpathSync } from "fs";
14
+ import { homedir } from "os";
15
+ import { join as join3 } from "path";
16
+ import { fileURLToPath } from "url";
17
+ import { parseArgs } from "util";
18
+
19
+ // src/launch/home.ts
20
+ import { chmodSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "fs";
21
+ import { join } from "path";
22
+ import { z } from "zod";
23
+ var LaunchFileSchema = z.object({
24
+ publicUrl: z.string(),
25
+ githubClientId: z.string(),
26
+ githubClientSecret: z.string(),
27
+ allowedGithubIds: z.array(z.string()),
28
+ vapid: z.object({ publicKey: z.string(), privateKey: z.string(), subject: z.string() }).strict()
29
+ }).partial().strict();
30
+ function relayHome(o) {
31
+ return o.data || o.env.LEDGE_RELAY_HOME || join(o.homedir, ".ledge-relay");
32
+ }
33
+ var LaunchFileError = class extends Error {
34
+ constructor(path) {
35
+ super(`${path} is not a valid ledge-relay config: fix it, or run \`ledge-relay launch --setup\``);
36
+ this.path = path;
37
+ this.name = "LaunchFileError";
38
+ }
39
+ path;
40
+ };
41
+ function readLaunchFile(home) {
42
+ const path = join(home, "config.json");
43
+ let text;
44
+ try {
45
+ text = readFileSync(path, "utf8");
46
+ } catch (e) {
47
+ if (e.code === "ENOENT") return {};
48
+ throw e;
49
+ }
50
+ try {
51
+ return LaunchFileSchema.parse(JSON.parse(text));
52
+ } catch {
53
+ throw new LaunchFileError(path);
54
+ }
55
+ }
56
+ function writeLaunchFile(home, f) {
57
+ mkdirSync(home, { recursive: true, mode: 448 });
58
+ const tmp = join(home, "config.json.tmp");
59
+ writeFileSync(tmp, `${JSON.stringify(f, null, 2)}
60
+ `, { mode: 384 });
61
+ chmodSync(tmp, 384);
62
+ renameSync(tmp, join(home, "config.json"));
63
+ }
64
+ function launchEnv(f, env, webDir) {
65
+ const saved = {
66
+ LEDGE_RELAY_PUBLIC_URL: f.publicUrl,
67
+ GITHUB_CLIENT_ID: f.githubClientId,
68
+ GITHUB_CLIENT_SECRET: f.githubClientSecret,
69
+ LEDGE_RELAY_ALLOWED_GITHUB_IDS: f.allowedGithubIds?.join(","),
70
+ LEDGE_RELAY_VAPID_PUBLIC_KEY: f.vapid?.publicKey,
71
+ LEDGE_RELAY_VAPID_PRIVATE_KEY: f.vapid?.privateKey,
72
+ LEDGE_RELAY_VAPID_SUBJECT: f.vapid?.subject
73
+ };
74
+ const out = { ...env, LEDGE_RELAY_WEB_DIR: webDir };
75
+ for (const [k, v] of Object.entries(saved)) if (v && !env[k]) out[k] = v;
76
+ return out;
77
+ }
78
+ var SETTINGS = [
79
+ { env: "LEDGE_RELAY_PUBLIC_URL", label: "public URL" },
80
+ { env: "GITHUB_CLIENT_ID", label: "GitHub OAuth App client id" },
81
+ { env: "GITHUB_CLIENT_SECRET", label: "GitHub OAuth App client secret" },
82
+ { env: "LEDGE_RELAY_ALLOWED_GITHUB_IDS", label: "allowed GitHub account" }
83
+ ];
84
+ function missingSettings(merged) {
85
+ return SETTINGS.filter((s) => !merged[s.env]).map((s) => `${s.label} (${s.env})`);
86
+ }
87
+
88
+ // src/launch/lock.ts
89
+ import { linkSync, readFileSync as readFileSync2, unlinkSync, writeFileSync as writeFileSync2 } from "fs";
90
+ import { join as join2 } from "path";
91
+ var DataDirLockedError = class extends Error {
92
+ constructor(dir) {
93
+ super(`another ledge-relay is using ${dir}`);
94
+ this.dir = dir;
95
+ this.name = "DataDirLockedError";
96
+ }
97
+ dir;
98
+ };
99
+ function alive(pid) {
100
+ if (!Number.isInteger(pid) || pid <= 0) return false;
101
+ try {
102
+ process.kill(pid, 0);
103
+ return true;
104
+ } catch (e) {
105
+ return e.code === "EPERM";
106
+ }
107
+ }
108
+ function readPid(path) {
109
+ try {
110
+ return Number.parseInt(readFileSync2(path, "utf8"), 10);
111
+ } catch (e) {
112
+ if (e.code === "ENOENT") return void 0;
113
+ throw e;
114
+ }
115
+ }
116
+ function lockDataDir(dir) {
117
+ const path = join2(dir, "ledge-relay.lock");
118
+ const mine = `${process.pid}`;
119
+ const tmp = join2(dir, `ledge-relay.lock.${mine}`);
120
+ writeFileSync2(tmp, `${mine}
121
+ `, { mode: 384 });
122
+ try {
123
+ for (let attempt = 0; attempt < 3; attempt++) {
124
+ try {
125
+ linkSync(tmp, path);
126
+ return () => {
127
+ try {
128
+ if (readPid(path) === process.pid) unlinkSync(path);
129
+ } catch {
130
+ }
131
+ };
132
+ } catch (e) {
133
+ if (e.code !== "EEXIST") throw e;
134
+ }
135
+ const pid = readPid(path);
136
+ if (pid !== void 0 && alive(pid)) throw new DataDirLockedError(dir);
137
+ try {
138
+ unlinkSync(path);
139
+ } catch (e) {
140
+ if (e.code !== "ENOENT") throw e;
141
+ }
142
+ }
143
+ throw new DataDirLockedError(dir);
144
+ } finally {
145
+ unlinkSync(tmp);
146
+ }
147
+ }
148
+
149
+ // src/launch/github-id.ts
150
+ var GithubIdError = class extends Error {
151
+ constructor(reason) {
152
+ super(reason === "not_found" ? "GitHub has no such account" : "GitHub could not be reached");
153
+ this.reason = reason;
154
+ this.name = "GithubIdError";
155
+ }
156
+ reason;
157
+ };
158
+ async function resolveGithubId(input, o = {}) {
159
+ if (/^[1-9][0-9]*$/.test(input)) return { id: input };
160
+ const doFetch = o.fetch ?? fetch;
161
+ let res;
162
+ try {
163
+ res = await doFetch(`${o.apiBase ?? "https://api.github.com"}/users/${encodeURIComponent(input)}`, {
164
+ headers: { "user-agent": "ledge-relay", accept: "application/vnd.github+json" },
165
+ signal: AbortSignal.timeout(1e4)
166
+ });
167
+ } catch {
168
+ throw new GithubIdError("unavailable");
169
+ }
170
+ if (res.status === 404) throw new GithubIdError("not_found");
171
+ if (!res.ok) throw new GithubIdError("unavailable");
172
+ let body;
173
+ try {
174
+ body = await res.json();
175
+ } catch {
176
+ throw new GithubIdError("unavailable");
177
+ }
178
+ if (typeof body.id !== "number" || !Number.isInteger(body.id) || body.id < 1) throw new GithubIdError("unavailable");
179
+ return { id: String(body.id), login: typeof body.login === "string" ? body.login : void 0 };
180
+ }
181
+
182
+ // src/launch/vapid.ts
183
+ import { generateKeyPairSync } from "crypto";
184
+ function generateVapid(subject) {
185
+ const jwk = generateKeyPairSync("ec", { namedCurve: "P-256" }).privateKey.export({ format: "jwk" });
186
+ const point = Buffer.concat([Buffer.from([4]), Buffer.from(jwk.x, "base64url"), Buffer.from(jwk.y, "base64url")]);
187
+ return { publicKey: point.toString("base64url"), privateKey: jwk.d, subject };
188
+ }
189
+
190
+ // src/launch/setup.ts
191
+ var SetupInterrupted = class extends Error {
192
+ constructor() {
193
+ super("setup interrupted");
194
+ this.name = "SetupInterrupted";
195
+ }
196
+ };
197
+ async function askRequired(io, question, def) {
198
+ for (; ; ) {
199
+ const a = (await io.ask(question, def ? { default: def } : void 0)).trim() || def;
200
+ if (a) return a;
201
+ io.say("An answer is required.");
202
+ }
203
+ }
204
+ async function confirm(io, question) {
205
+ for (; ; ) {
206
+ const a = (await io.ask(question)).trim().toLowerCase();
207
+ if (a === "" || a === "y" || a === "yes") return true;
208
+ if (a === "n" || a === "no") return false;
209
+ io.say("Answer y or n.");
210
+ }
211
+ }
212
+ async function runSetup(io, current, deps = {}) {
213
+ const resolveId = deps.resolveId ?? resolveGithubId;
214
+ let publicUrl;
215
+ for (; ; ) {
216
+ const raw = await askRequired(io, "Public URL of this relay (https, no path)", current.publicUrl);
217
+ try {
218
+ publicUrl = parsePublicUrl(raw, true);
219
+ break;
220
+ } catch (e) {
221
+ if (!(e instanceof ConfigError)) throw e;
222
+ io.say(e.message);
223
+ }
224
+ }
225
+ io.say("Create a GitHub OAuth App (GitHub > Settings > Developer settings > OAuth Apps) with:");
226
+ io.say(` Homepage URL: ${publicUrl}`);
227
+ io.say(` Authorization callback URL: ${publicUrl}/auth/github/callback`);
228
+ io.say(' Tick "Enable Device Flow". No permission is needed.');
229
+ const githubClientId = await askRequired(io, "GitHub OAuth App client id", current.githubClientId);
230
+ let githubClientSecret;
231
+ while (!githubClientSecret) {
232
+ githubClientSecret = (await io.ask("GitHub OAuth App client secret", { secret: true })).trim() || current.githubClientSecret;
233
+ if (!githubClientSecret) io.say("An answer is required.");
234
+ }
235
+ let githubId;
236
+ for (; ; ) {
237
+ const login = await askRequired(io, "GitHub login (or numeric id) allowed to use this relay", current.allowedGithubIds?.[0]);
238
+ let r;
239
+ try {
240
+ r = await resolveId(login);
241
+ } catch (e) {
242
+ if (!(e instanceof GithubIdError)) throw e;
243
+ io.say(`${e.reason === "not_found" ? `GitHub has no account named ${login}.` : "GitHub could not be reached."} A numeric id also works.`);
244
+ continue;
245
+ }
246
+ io.say(r.login ? `GitHub account ${r.login} = id ${r.id}` : `GitHub account id ${r.id}`);
247
+ if (await confirm(io, "Is this the right account? [Y/n]")) {
248
+ githubId = r.id;
249
+ break;
250
+ }
251
+ }
252
+ let subject;
253
+ for (; ; ) {
254
+ const raw = await askRequired(io, "Contact for Web Push (mailto: address or https URL)", current.vapid?.subject ?? publicUrl);
255
+ const candidate = /^(mailto:|https:\/\/)/.test(raw) ? raw : /^\S+@\S+$/.test(raw) ? `mailto:${raw}` : raw;
256
+ if (/^(mailto:|https:\/\/)\S+$/.test(candidate)) {
257
+ subject = candidate;
258
+ break;
259
+ }
260
+ io.say("The contact must be an email address, a mailto: address or an https:// URL.");
261
+ }
262
+ const others = (current.allowedGithubIds ?? []).filter((x, i, all) => x !== githubId && all.indexOf(x) === i);
263
+ if (others.length > 0) {
264
+ io.say(`${others.length} other allowed GitHub account${others.length === 1 ? " is" : "s are"} kept (edit allowedGithubIds in config.json to change ${others.length === 1 ? "it" : "them"}).`);
265
+ }
266
+ const vapid = current.vapid ? { ...current.vapid, subject } : generateVapid(subject);
267
+ return { publicUrl, githubClientId, githubClientSecret, allowedGithubIds: [githubId, ...others], vapid };
268
+ }
269
+
270
+ // src/launch/terminal.ts
271
+ import { createInterface } from "readline";
272
+ import { Writable } from "stream";
273
+ function terminalIo(input, output) {
274
+ let muted = false;
275
+ const sink = new Writable({
276
+ write(chunk, _enc, cb) {
277
+ if (!muted) output.write(chunk);
278
+ cb();
279
+ }
280
+ });
281
+ const rl = createInterface({ input, output: sink, terminal: Boolean(input.isTTY) });
282
+ let rejectPending = null;
283
+ let ended = false;
284
+ const end = () => {
285
+ ended = true;
286
+ if (rejectPending) output.write("\n");
287
+ rejectPending?.(new SetupInterrupted());
288
+ rejectPending = null;
289
+ };
290
+ rl.on("close", end);
291
+ rl.on("SIGINT", () => {
292
+ rl.close();
293
+ });
294
+ return {
295
+ ask(question, o) {
296
+ if (ended) return Promise.reject(new SetupInterrupted());
297
+ return new Promise((resolve, reject) => {
298
+ rejectPending = reject;
299
+ muted = false;
300
+ rl.question(`${question}${o?.default ? ` [${o.default}]` : ""}: `, (answer) => {
301
+ muted = false;
302
+ rejectPending = null;
303
+ if (o?.secret) output.write("\n");
304
+ resolve(answer);
305
+ });
306
+ muted = Boolean(o?.secret);
307
+ });
308
+ },
309
+ say(line) {
310
+ output.write(`${line}
311
+ `);
312
+ },
313
+ close() {
314
+ rl.close();
315
+ }
316
+ };
317
+ }
318
+
319
+ // src/cli.ts
320
+ var OPTIONS = { version: { type: "boolean" }, port: { type: "string" }, host: { type: "string" }, data: { type: "string" }, setup: { type: "boolean" } };
321
+ var USAGE = "usage: ledge-relay launch [--port <port>] [--host <host>] [--data <dir>] [--setup] | ledge-relay --version";
322
+ function version() {
323
+ const pkg = JSON.parse(readFileSync3(new URL("../package.json", import.meta.url), "utf8"));
324
+ return pkg.version;
325
+ }
326
+ function explain(e) {
327
+ if (e instanceof LaunchFileError || e instanceof DataDirLockedError) return e.message;
328
+ return startupErrorLine(e);
329
+ }
330
+ function privateDir(dir) {
331
+ try {
332
+ mkdirSync2(dir, { recursive: true, mode: 448 });
333
+ chmodSync2(dir, 448);
334
+ } catch (e) {
335
+ if (isPermissionError(e)) throw new DirectoryAccessError(dir);
336
+ throw e;
337
+ }
338
+ }
339
+ async function main(argv, deps) {
340
+ let args;
341
+ try {
342
+ args = parseArgs({ args: argv, allowPositionals: true, options: OPTIONS });
343
+ } catch {
344
+ deps.err(USAGE);
345
+ return 2;
346
+ }
347
+ const { values, positionals } = args;
348
+ if (values.version && positionals.length === 0) {
349
+ deps.out(version());
350
+ return 0;
351
+ }
352
+ if (positionals.length !== 1 || positionals[0] !== "launch" || values.version) {
353
+ deps.err(USAGE);
354
+ return 2;
355
+ }
356
+ const host = values.host ?? "127.0.0.1";
357
+ let unlock;
358
+ try {
359
+ const home = relayHome({ ...values.data ? { data: values.data } : {}, env: deps.env, homedir: deps.homedir });
360
+ let file = readLaunchFile(home);
361
+ const missing = missingSettings(launchEnv(file, deps.env, deps.webDir));
362
+ const asks = values.setup || missing.length > 0;
363
+ if (asks && !deps.isTTY) {
364
+ if (missing.length === 0) {
365
+ deps.err("ledge-relay: --setup needs a terminal");
366
+ return 1;
367
+ }
368
+ deps.err(`ledge-relay: missing settings: ${missing.join(", ")}; run \`ledge-relay launch\` once in a terminal, or set these environment variables`);
369
+ return 1;
370
+ }
371
+ privateDir(home);
372
+ unlock = lockDataDir(home);
373
+ if (asks) {
374
+ const io = deps.io();
375
+ try {
376
+ file = await runSetup(io, file);
377
+ } catch (e) {
378
+ if (!(e instanceof SetupInterrupted)) throw e;
379
+ deps.err("ledge-relay: setup interrupted, nothing saved");
380
+ return 1;
381
+ } finally {
382
+ io.close();
383
+ }
384
+ writeLaunchFile(home, file);
385
+ }
386
+ const merged = launchEnv(file, deps.env, deps.webDir);
387
+ parsePublicUrl(merged.LEDGE_RELAY_PUBLIC_URL, true);
388
+ const vapid = !file.vapid && !merged.LEDGE_RELAY_VAPID_PUBLIC_KEY ? generateVapid(merged.LEDGE_RELAY_PUBLIC_URL) : void 0;
389
+ const withVapid = vapid ? { ...file, vapid } : file;
390
+ const cfg = loadConfig(
391
+ { ...launchEnv(withVapid, deps.env, deps.webDir), ...values.port !== void 0 ? { PORT: values.port } : {} },
392
+ { production: true, pgliteDir: join3(home, "db") }
393
+ );
394
+ if (vapid) writeLaunchFile(home, withVapid);
395
+ const relay = await startRelay(cfg, { host, ...deps.github ? { github: deps.github } : {} });
396
+ deps.out(`ledge-relay ${version()} listening on http://${host}:${relay.port} \u2014 public URL ${cfg.mode === "accounts" ? cfg.publicUrl : ""}: put an HTTPS proxy in front, then enter this URL in Ledge Desktop \u203A Settings \u203A Mobile access`);
397
+ deps.out(JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), ev: "listening", port: relay.port, mode: cfg.mode }));
398
+ await deps.waitForStop();
399
+ await relay.close();
400
+ return 0;
401
+ } catch (e) {
402
+ const line = explain(e);
403
+ if (line === null) throw e;
404
+ deps.err(`ledge-relay: ${line}`);
405
+ return 1;
406
+ } finally {
407
+ unlock?.();
408
+ }
409
+ }
410
+ if (process.argv[1] && fileURLToPath(import.meta.url) === realpathSync(process.argv[1])) {
411
+ const realDeps = {
412
+ env: process.env,
413
+ homedir: homedir(),
414
+ isTTY: Boolean(process.stdin.isTTY && process.stdout.isTTY),
415
+ io: () => terminalIo(process.stdin, process.stdout),
416
+ out: (line) => {
417
+ process.stdout.write(`${line}
418
+ `);
419
+ },
420
+ err: (line) => {
421
+ process.stderr.write(`${line}
422
+ `);
423
+ },
424
+ webDir: fileURLToPath(new URL("../web", import.meta.url)),
425
+ waitForStop: () => new Promise((resolve) => {
426
+ process.once("SIGINT", resolve);
427
+ process.once("SIGTERM", resolve);
428
+ })
429
+ };
430
+ process.exitCode = await main(process.argv.slice(2), realDeps);
431
+ }
432
+ export {
433
+ main
434
+ };
package/dist/main.js ADDED
@@ -0,0 +1,25 @@
1
+ import {
2
+ loadConfig,
3
+ startRelay,
4
+ startupErrorLine
5
+ } from "./chunk-HTYEMUSI.js";
6
+
7
+ // src/main.ts
8
+ function die(msg) {
9
+ process.stderr.write(`ledge-relay: ${msg}
10
+ `);
11
+ process.exit(1);
12
+ }
13
+ try {
14
+ const cfg = loadConfig(process.env);
15
+ const relay = await startRelay(cfg);
16
+ relay.server.on("error", (e) => die(`cannot listen on port ${cfg.port}: ${e.code ?? "error"}`));
17
+ process.stdout.write(JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), ev: "listening", port: relay.port, mode: cfg.mode }) + "\n");
18
+ for (const sig of ["SIGINT", "SIGTERM"]) process.on(sig, () => {
19
+ void relay.close().then(() => process.exit(0), () => process.exit(1));
20
+ });
21
+ } catch (e) {
22
+ const line = startupErrorLine(e);
23
+ if (line === null) throw e;
24
+ die(line);
25
+ }
package/package.json CHANGED
@@ -1,6 +1,44 @@
1
1
  {
2
2
  "name": "@paradow/ledge-relay",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.61.0",
4
+ "license": "PolyForm-Noncommercial-1.0.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/kl-ledge/ledge.git",
8
+ "directory": "apps/relay"
9
+ },
10
+ "homepage": "https://github.com/kl-ledge/ledge#readme",
11
+ "type": "module",
12
+ "bin": {
13
+ "ledge-relay": "dist/cli.js"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "web"
18
+ ],
19
+ "engines": {
20
+ "node": ">=22"
21
+ },
22
+ "scripts": {
23
+ "dev": "tsx src/main.ts",
24
+ "build": "tsup",
25
+ "test": "vitest run",
26
+ "typecheck": "tsc --noEmit",
27
+ "pack:web": "node scripts/copy-web.mjs",
28
+ "vapid-keys": "node scripts/vapid-keys.mjs"
29
+ },
30
+ "dependencies": {
31
+ "@electric-sql/pglite": "0.5.10",
32
+ "pg": "^8.23.1",
33
+ "ws": "^8.18.0",
34
+ "zod": "^3.23.8"
35
+ },
36
+ "devDependencies": {
37
+ "@ledge/protocol": "workspace:*",
38
+ "@ledge/seal": "workspace:*",
39
+ "@types/node": "^22.7.0",
40
+ "@types/pg": "^8.23.1",
41
+ "@types/ws": "^8.5.12",
42
+ "tsup": "^8.3.0"
43
+ }
44
+ }