testdriver:events
БесплатноБез исполняемых скриптовНе проверенListen to SDK lifecycle events with wildcard support
от testdriverai★ 342 звезды на GitHubОб этом скилле
Overview
TestDriver uses EventEmitter2 for its event system. Events use a namespace pattern with colons. They permit wildcard listeners.
Use the emitter through testdriver.emitter:
testdriver.emitter.on('command:start', (data) => {
console.log(`Running: ${data.command}`);
});
Configuration
The internal emitter is created with:
new EventEmitter2({
wildcard: true,
delimiter: ':',
maxListeners: 20,
verboseMemoryLeak: false,
ignoreErrors: false,
});
Wildcard Listeners
Use * to match one level. Use ** to match many levels:
// Match all log events
testdriver.emitter.on('log:*', (message) => {
console.log(message);
});
// Match all events in any namespace
testdriver.emitter.on('**', (...args) => {
console.log('Event:', this.event, args);
});
Event Reference
Command Events
Emitted during the execution of SDK commands (click, type, find, etc.).
| Event | Payload |
|---|---|
command:start |
{ command, depth, data, timestamp, sourcePosition } |
command:success |
{ command, depth, data, duration, response, timestamp, sourcePosition } |
command:error |
{ command, depth, data, error, duration, timestamp, sourcePosition } |
command:status |
{ command, status: "executing", data, depth, timestamp } |
command:progress |
{ command, status: "completed", timing, data, depth, timestamp } |
testdriver.emitter.on('command:start', ({ command, data }) => {
console.log(`Starting ${command}`, data);
});
testdriver.emitter.on('command:error', ({ command, error, duration }) => {
console.error(`${command} failed after ${duration}ms: ${error}`);
});
Step Events
Emitted for each AI reasoning step within a command.
| Event | Payload |
|---|---|
step:start |
{ stepIndex, prompt, commandCount, timestamp, sourcePosition } |
step:success |
{ stepIndex, prompt, commandCount, duration, timestamp, sourcePosition } |
step:error |
{ stepIndex, prompt, error, duration?, timestamp, sourcePosition? } |
testdriver.emitter.on('step:start', ({ stepIndex, prompt }) => {
console.log(`Step ${stepIndex}: ${prompt}`);
});
Test Events
Emitted when a test file execution starts.
| Event | Payload |
|---|---|
test:start |
{ filePath, timestamp } |
test:success |
Emitted on test completion |
test:error |
Emitted on test failure |
Log Events
Emitted for all log output from the SDK.
| Event | Payload |
|---|---|
log:log |
(message: string) — general log message |
log:warn |
(message: string) — warning message |
log:debug |
(message: string) — debug output (only when VERBOSE/DEBUG/TD_DEBUG env set) |
log:info |
(message: string) — informational message |
log:error |
(message: string) — error message |
log:narration |
(message: string, overwrite?: boolean) — in-place status line |
log:markdown |
(markdown: string) — full static markdown content |
log:markdown:start |
(streamId: string) — begin streaming markdown |
log:markdown:chunk |
(streamId: string, chunk: string) — incremental chunk |
log:markdown:end |
(streamId: string) — end streaming markdown |
// Capture all logs
testdriver.emitter.on('log:*', function (message) {
console.log(`[${this.event}]`, message);
});
Screen Capture Events
Emitted during screenshot capture.
| Event | Payload |
|---|---|
screen-capture:start |
{ scale, silent, display } |
screen-capture:end |
{ scale, silent, display } |
screen-capture:error |
{ error, scale, silent, display } |
Sandbox Events
Emitted for sandbox WebSocket lifecycle and communication.
| Event | Payload |
|---|---|
sandbox:connected |
No payload — WebSocket connection established |
sandbox:authenticated |
{ traceId } — authentication successful |
sandbox:error |
(err: Error | string) — connection or sandbox error |
sandbox:sent |
(message: object) — WebSocket message sent |
sandbox:received |
No payload — successful message reply received |
sandbox:progress |
{ step, message } — sandbox setup progress |
testdriver.emitter.on('sandbox:connected', () => {
console.log('Connected to sandbox');
});
testdriver.emitter.on('sandbox:progress', ({ step, message }) => {
console.log(`Sandbox: [${step}] ${message}`);
});
Redraw Events
Emitted during screen stability detection. See Redraw for more details.
| Event | Payload |
|---|---|
redraw:status |
{ redraw: { enabled, settled, hasChangedFromInitial, consecutiveFramesStable, diffFromInitial, diffFromLast, text }, network: { enabled, settled, rxBytes, txBytes, text }, timeout: { isTimeout, elapsed, max, text } } |
redraw:complete |
`{ screenSettled, hasChangedFromInitial, consecutiveFrames |
Установить testdriver:events в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл testdriver:events?
Listen to SDK lifecycle events with wildcard support
Как установить скилл testdriver:events?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл testdriver:events запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic