Commit Graph

8 Commits

Author SHA1 Message Date
aladac 1426ec9173 Add HTTP server mode with native node:http
Reintroduce server mode (removed in 3014cf9) using node:http instead of
Express — zero new dependencies. Accepts JSON commands via POST to /,
returns JSON responses with CORS support. Screenshot command returns
base64 data when no path is specified.

- Add src/server.ts with BrowserServer class using node:http
- Add -s/--server <port> CLI flag (default 13373)
- Export BrowserServer and startServer from index.ts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-25 16:23:16 +02:00
Adam Ladachowski 3014cf98e8 Remove HTTP server mode, keep MCP + CLI only
Drop express dependency and HTTP server in favor of MCP-only architecture.
CLI still works for quick screenshots and queries.

- Delete src/server.ts and src/server.test.ts
- Remove express, @types/express, supertest from dependencies
- Update CLI to show help when no URL provided
- Remove server exports from index.ts

-33 packages removed, 757 lines deleted.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-11 12:31:42 +01:00
Adam Ladachowski 2736a4b467 💬 Commit message: Update 2026-02-06 21:32:05, 5 files, 447 lines
📁 Files changed: 5
📝 Lines changed: 447

  • settings.local.json
  • cli.ts
  • logger.ts
  • mcp.ts
  • server.ts
2026-02-06 21:32:05 +01:00
Adam Ladachowski e418774f3e 💬 Commit message: Update 2026-02-06 20:42:32, 3 files, 3 lines
📁 Files changed: 3
📝 Lines changed: 3

  • gh.png
  • server.ts
  • test.png
2026-02-06 20:42:32 +01:00
Adam Ladachowski 86cc13075f 💬 Commit message: Update 2026-02-06 20:40:01, 3 files, 285 lines
📁 Files changed: 3
📝 Lines changed: 285

  • package-lock.json
  • package.json
  • server.ts
2026-02-06 20:40:01 +01:00
Adam Ladachowski 9ff23808be 💬 Commit message: Update 2026-02-06 20:36:48, 3 files, 965 lines
📁 Files changed: 3
📝 Lines changed: 965

  • package-lock.json
  • package.json
  • server.ts
2026-02-06 20:36:48 +01:00
Adam Ladachowski 3ece3bd3b8 💬 Commit message: Update 2026-02-06 20:32:18, 7 files, 781 lines
📁 Files changed: 7
📝 Lines changed: 781

  • CLAUDE.md
  • biome.json
  • package-lock.json
  • package.json
  • browser.ts
  • cli.ts
  • server.ts
2026-02-06 20:32:19 +01:00
Adam Ladachowski eccc03ee7a 💬 Commit message: Update 2026-02-06 20:28:30, 13 files, 1401 lines
📁 Files changed: 13
📝 Lines changed: 1401

  • .gitignore
  • CLAUDE.md
  • PLAN.md
  • README.md
  • TODO.md
  • package-lock.json
  • package.json
  • browser.ts
  • cli.ts
  • index.ts
  • server.ts
  • types.ts
  • tsconfig.json
2026-02-06 20:28:30 +01:00