Skip to content

Releases: postmunnet/browser-cli

browser-cli v0.2.1 live viewport command

18 May 16:36

Choose a tag to compare

Summary

Adds real-time viewport control for responsive verification.

Added

  • viewport [WIDTHxHEIGHT] command
  • set-viewport <WIDTHxHEIGHT> alias
  • Runtime presets: mobile, phone, tablet, desktop, wide
  • --viewport <WIDTHxHEIGHT> initial viewport flag
  • viewport.width / viewport.height config support
  • VIEWPORT_W / VIEWPORT_H env fallback
  • Unit tests for viewport parsing and command behavior

Example

printf "goto /
viewport 375x667
screenshot mobile.png
viewport 1440x900
screenshot desktop.png
exit
" \
  | node index.js --config configs/example.json --response-schema=v2

Verification

npm test

Result:

34 harness tests passed
8 viewport tests passed
10 recorder tests passed
12 CDP URL validation tests passed

browser-cli v0.2.0 public clean export

18 May 13:26

Choose a tag to compare

Summary

Public clean export of browser-cli as a standalone Trinity browser organ.

Included

  • Node.js + Playwright CLI runtime
  • v1/v2 JSON response wrapper
  • Policy tiers for safe/normal/aggressive operation
  • CDP reuse mode
  • Recorder/action-log modules
  • Public example config
  • English + Thai README
  • GitHub Actions CI

Excluded

  • Private configs
  • Private screenshots/downloads
  • Local session state
  • Project-specific historical docs
  • node_modules

Verification

npm ci
npm test

Result:

34 harness tests passed
10 recorder tests passed
12 CDP URL validation tests passed

Contract Status

Trinity Tool Contract v1.0 conformance is the next target. This release is a clean public browser-cli export, not yet certified as a full Tool Contract v1.0 implementation.