Wire validated core bridge, migrate daemon to it, verify live
This commit is contained in:
+30
-7
@@ -31,14 +31,35 @@ pnpm build
|
||||
|
||||
The build writes the application to `dist/`.
|
||||
|
||||
## Mock core test
|
||||
|
||||
The mock core runs the daemon without Electron.
|
||||
|
||||
```sh
|
||||
# Terminal 1: mock core
|
||||
VESKSLOP_SOCKET=/tmp/vesktop-puppet-mock.sock pnpm control:mock
|
||||
|
||||
# Terminal 2: daemon
|
||||
VESKSLOP_SOCKET=/tmp/vesktop-puppet-mock.sock pnpm control:bridge
|
||||
|
||||
# Terminal 3: inject an owner command
|
||||
VESKSLOP_SOCKET=/tmp/vesktop-puppet-mock.sock TEST_TRIGGER_CONTENT="whitelist list" pnpm test:trigger
|
||||
```
|
||||
|
||||
Expected result: the daemon log shows one trusted entry with the parsed command. The mock log shows
|
||||
the reply (`message.send`). The reply wait is inside the 500 to 2800 ms window.
|
||||
|
||||
## CDP probe
|
||||
|
||||
The probe checks the current CDP transport. Start the client with
|
||||
The probe checks the CDP fallback transport. Start the client with
|
||||
`--remote-debugging-port=9222` first.
|
||||
|
||||
```sh
|
||||
cd poc
|
||||
pnpm cdp:probe
|
||||
|
||||
# Run one expression in the client.
|
||||
CDP_EXPRESSION='Vencord.Webpack.Common.FluxDispatcher.dispatch({...})' pnpm cdp:dispatch
|
||||
```
|
||||
|
||||
A good result shows the Vencord global, the Flux dispatcher, the current user, and one binding
|
||||
@@ -82,20 +103,22 @@ cd poc
|
||||
pnpm poc:dm
|
||||
```
|
||||
|
||||
## CDP live results
|
||||
## Live results
|
||||
|
||||
The CDP transport was verified on 2026-09-11:
|
||||
The core bridge was verified live on 2026-09-11:
|
||||
|
||||
- `get_state` returned the real account and 7 guilds.
|
||||
- `send_dm` delivered a real DM to zzib.
|
||||
- The client ran headless under Xvfb.
|
||||
- The token was seeded from the token file.
|
||||
- A synthetic owner message flowed through the real event path. The daemon log held the entry with
|
||||
the parsed command.
|
||||
- The client ran headless under Xvfb with the token seeded from the token file.
|
||||
|
||||
The CDP transport was verified earlier with the same checks.
|
||||
|
||||
## Known gaps
|
||||
|
||||
| Gap | Effect |
|
||||
| --- | --- |
|
||||
| Mock core is not in the tree. | The daemon tests need the real client. |
|
||||
| The trigger event path needs an incoming message. | Use zzib's account for a live test. |
|
||||
| Live trigger tests need an incoming message. | Use the mock core, or send from zzib's account. |
|
||||
| `message.read` is cache-only. | A channel that the client never opened returns zero messages. |
|
||||
| Voice, audio, and video are not started. | No test coverage. |
|
||||
|
||||
Reference in New Issue
Block a user