Wire validated core bridge, migrate daemon to it, verify live

This commit is contained in:
Fisto
2026-09-11 14:15:03 +02:00
parent e62d3007d8
commit 7d6650ce4e
27 changed files with 754 additions and 266 deletions
+6 -9
View File
@@ -1,5 +1,5 @@
/*
* Veskslop — live DM send test through a running client.
* Veskslop — live DM send test through the core bridge.
*
* Sanctioned test target: user zzib (defaults to their user ID).
*
@@ -8,8 +8,7 @@
* TEST_DM_USER_ID=... TEST_DM_CONTENT="hello" pnpm poc:dm
*/
import { CdpClient } from "./cdp-client.js";
import { Discord } from "./discord.js";
import { CoreClient } from "./core-client.js";
/** zzib — the only sanctioned live-send target. */
const DEFAULT_TEST_DM_USER_ID = "177117296140091393";
@@ -17,10 +16,8 @@ const DEFAULT_TEST_DM_USER_ID = "177117296140091393";
const userId = process.env.TEST_DM_USER_ID ?? DEFAULT_TEST_DM_USER_ID;
const content = process.env.TEST_DM_CONTENT ?? "veskslop test dm";
const cdp = await CdpClient.connect();
const discord = new Discord(cdp);
const core = await CoreClient.connect();
console.log("[dm] connected to the core bridge");
console.log("[dm]", await core.sendDm(userId, content));
console.log("[dm] connected via CDP");
console.log("[dm]", await discord.sendDm(userId, content));
cdp.close();
core.close();