peppa/packages/testkit/package.json
Асель 09d2750d75 PEP-9: live runner terminal in the web — xterm.js over SSE, input via POST
- runner/terminal.ts: TerminalFeed polls the pane (capture-pane -e, one loop per runner
  shared by viewers), sends changed lines, scrolled-off lines and the cursor; terminalInput
  (send-keys -H / paste-buffer -p) with access, liveness, size and rate checks, resets
  auto_nudges, logs terminal_input; terminalSse with 15 s pings for Cloudflare
- web: GET/POST /api/runners/[id]/terminal, RunnerTerminal (xterm.js) in the runner panel
  and on the story page; help
- testkit: terminal.test.ts — real tmux into a headless xterm, history, input, access, limits, SSE
- OpenSpec change archived; new spec runner-terminal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:45:32 +05:00

26 lines
624 B
JSON

{
"name": "@peppa/testkit",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"typecheck": "tsc -p .",
"test": "node --test --test-concurrency=1 test/*.test.ts"
},
"dependencies": {
"@modelcontextprotocol/sdk": "1.32.2",
"@peppa/bot": "workspace:*",
"@peppa/bugsink": "workspace:*",
"@peppa/core": "workspace:*",
"@peppa/db": "workspace:*",
"@peppa/mcp": "workspace:*",
"@peppa/runner": "workspace:*",
"@peppa/shared": "workspace:*",
"drizzle-orm": "0.45.4",
"postgres": "4.1.1"
},
"devDependencies": {
"@xterm/headless": "6.0.0"
}
}