Skip to content

add demo#11

Merged
sreya merged 1 commit intomainfrom
task8
Nov 11, 2025
Merged

add demo#11
sreya merged 1 commit intomainfrom
task8

Conversation

@sreya
Copy link
Copy Markdown
Contributor

@sreya sreya commented Nov 11, 2025

  • Created PTY shell server with real shell sessions
  • Created file browser terminal demo (demo/index.html)
  • Created ANSI colors showcase (demo/colors-demo.html)
  • Created comprehensive API documentation (docs/API.md)
  • Updated README with new structure and instructions
  • Organized demo/ directory with server subdirectory
  • Fixed hostname auto-detection for remote access (mux.coder)
  • Filtered OSC sequences for clean output
  • Added debug logging for troubleshooting

Files created:

  • demo/server/pty-server.ts (217 lines) - Real PTY shell via WebSocket
  • demo/server/file-browser-server.ts (313 lines) - Command-by-command mode
  • demo/server/package.json - Server configuration
  • demo/server/start.sh - Startup helper script
  • demo/index.html (506 lines) - Interactive file browser terminal
  • demo/colors-demo.html (526 lines) - ANSI color showcase
  • docs/API.md (1046 lines) - Complete API reference

Total new code: ~2,500 lines

Features:

  • Full PTY shell session support
  • Real command execution with persistent state
  • WebSocket communication with hostname auto-detection
  • ANSI color filtering and cleanup
  • Comprehensive documentation
  • Clean project structure

- Created PTY shell server with real shell sessions
- Created file browser terminal demo (demo/index.html)
- Created ANSI colors showcase (demo/colors-demo.html)
- Created comprehensive API documentation (docs/API.md)
- Updated README with new structure and instructions
- Organized demo/ directory with server subdirectory
- Fixed hostname auto-detection for remote access (mux.coder)
- Filtered OSC sequences for clean output
- Added debug logging for troubleshooting

Files created:
- demo/server/pty-server.ts (217 lines) - Real PTY shell via WebSocket
- demo/server/file-browser-server.ts (313 lines) - Command-by-command mode
- demo/server/package.json - Server configuration
- demo/server/start.sh - Startup helper script
- demo/index.html (506 lines) - Interactive file browser terminal
- demo/colors-demo.html (526 lines) - ANSI color showcase
- docs/API.md (1046 lines) - Complete API reference

Total new code: ~2,500 lines

Features:
- Full PTY shell session support
- Real command execution with persistent state
- WebSocket communication with hostname auto-detection
- ANSI color filtering and cleanup
- Comprehensive documentation
- Clean project structure
@sreya sreya merged commit b21c6a3 into main Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant