Default live DM test target to zzib
This commit is contained in:
@@ -81,7 +81,8 @@ MCP clients (agents) ──Streamable HTTP──▶ veskSlop control daemon
|
|||||||
- All outbound actions go through the pacing queue; no direct sends.
|
- All outbound actions go through the pacing queue; no direct sends.
|
||||||
- Default to conservative limits and opt-in risky features.
|
- Default to conservative limits and opt-in risky features.
|
||||||
- Test against throwaway accounts and private test guilds only.
|
- 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.
|
- Run `pnpm testTypes` and `pnpm lint` before calling work done; `pnpm build` to compile.
|
||||||
|
|
||||||
## Open questions
|
## Open questions
|
||||||
|
|||||||
+4
-3
@@ -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`
|
### 3. Live DM test — `src/test-dm.ts`
|
||||||
|
|
||||||
```sh
|
```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
|
Talks to a **real** running Vesktop's control socket and sends one paced DM. Defaults to the only
|
||||||
live-send target is user **zzib** (provide their user ID).
|
sanctioned live-send target, user **zzib** (`TEST_DM_USER_ID` overrides).
|
||||||
|
|
||||||
## Verified
|
## Verified
|
||||||
|
|
||||||
|
|||||||
+6
-3
@@ -1,19 +1,22 @@
|
|||||||
/*
|
/*
|
||||||
* Veskslop Phase 0 — live DM send test through a running Vesktop instance.
|
* 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,
|
* This talks to the control socket directly (which must be a real Vesktop,
|
||||||
* not the mock) and paces the command like everything else.
|
* not the mock) and paces the command like everything else.
|
||||||
*
|
*
|
||||||
* Usage:
|
* Usage:
|
||||||
* TEST_DM_USER_ID=... pnpm poc:dm
|
* pnpm poc:dm
|
||||||
* TEST_DM_USER_ID=... TEST_DM_CONTENT="hello" pnpm poc:dm
|
* TEST_DM_USER_ID=... TEST_DM_CONTENT="hello" pnpm poc:dm
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { paced } from "./pacing.js";
|
import { paced } from "./pacing.js";
|
||||||
import { sendVesktopCommand, socketPath } from "./vesktop-socket.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";
|
const content = process.env.TEST_DM_CONTENT ?? "veskslop test dm";
|
||||||
|
|
||||||
if (!userId) {
|
if (!userId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user