clarc/package.json
Jared Miller c9908c87c3
Add terminal.ts module for headless terminal emulation
Creates new module providing terminal session management using @xterm/headless:
- createTerminal(): spawn headless terminal emulator instances
- serializeAsHTML(): export terminal state as HTML
- disposeTerminal(): clean up resources

This replaces stateless ANSI processing with proper VT emulation that tracks
cursor position, screen buffer, and terminal attributes across output chunks.
2026-01-31 09:43:46 -05:00

26 lines
673 B
JSON

{
"name": "clarc",
"description": "Self-hosted remote control for Claude Code - wrap CLI in PTY, stream output, approve prompts from phone",
"module": "src/server.ts",
"type": "module",
"private": true,
"scripts": {
"lint": "bunx biome check --write .",
"dev": "bun run --watch src/server.ts",
"start": "bun run src/server.ts",
"test": "bun test",
"typecheck": "bunx tsc"
},
"devDependencies": {
"@biomejs/biome": "^2.3.13",
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@xterm/addon-serialize": "^0.14.0",
"@xterm/headless": "^6.0.0",
"bun-pty": "^0.4.8"
}
}