Default live DM test target to zzib

This commit is contained in:
agent
2026-09-11 13:02:09 +02:00
parent 7e4fb7aa34
commit 7fdc71562a
3 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -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
+4 -3
View File
@@ -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
+6 -3
View File
@@ -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) {