diff --git a/AGENTS.md b/AGENTS.md index 88ed408..949f196 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -81,7 +81,8 @@ MCP clients (agents) ──Streamable HTTP──▶ veskSlop control daemon - All outbound actions go through the pacing queue; no direct sends. - Default to conservative limits and opt-in risky features. - Test against throwaway accounts and private test guilds only. -- **Live send tests:** DMs to user **zzib** are the only sanctioned real-send test target. +- **Live send tests:** DMs to user **zzib** (`177117296140091393`) are the only sanctioned real-send + test target. - Run `pnpm testTypes` and `pnpm lint` before calling work done; `pnpm build` to compile. ## Open questions diff --git a/poc/README.md b/poc/README.md index f5ded70..cbdcb75 100644 --- a/poc/README.md +++ b/poc/README.md @@ -63,11 +63,12 @@ Stands in for the real Vesktop process so the bridge can be developed without El ### 3. Live DM test — `src/test-dm.ts` ```sh -TEST_DM_USER_ID=... pnpm poc:dm +pnpm poc:dm +TEST_DM_CONTENT="hello" pnpm poc:dm ``` -Talks to a **real** running Vesktop's control socket and sends one paced DM. The only sanctioned -live-send target is user **zzib** (provide their user ID). +Talks to a **real** running Vesktop's control socket and sends one paced DM. Defaults to the only +sanctioned live-send target, user **zzib** (`TEST_DM_USER_ID` overrides). ## Verified diff --git a/poc/src/test-dm.ts b/poc/src/test-dm.ts index e193738..23a48f9 100644 --- a/poc/src/test-dm.ts +++ b/poc/src/test-dm.ts @@ -1,19 +1,22 @@ /* * Veskslop Phase 0 — live DM send test through a running Vesktop instance. * - * Sanctioned test target: user zzib. Set TEST_DM_USER_ID to their user ID. + * Sanctioned test target: user zzib. Defaults to their user ID. * This talks to the control socket directly (which must be a real Vesktop, * not the mock) and paces the command like everything else. * * Usage: - * TEST_DM_USER_ID=... pnpm poc:dm + * pnpm poc:dm * TEST_DM_USER_ID=... TEST_DM_CONTENT="hello" pnpm poc:dm */ import { paced } from "./pacing.js"; import { sendVesktopCommand, socketPath } from "./vesktop-socket.js"; -const userId = process.env.TEST_DM_USER_ID; +/** zzib — the only sanctioned live-send target. */ +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"; if (!userId) {