Releases: postmunnet/browser-cli
Releases · postmunnet/browser-cli
browser-cli v0.2.1 live viewport command
Summary
Adds real-time viewport control for responsive verification.
Added
viewport [WIDTHxHEIGHT]commandset-viewport <WIDTHxHEIGHT>alias- Runtime presets:
mobile,phone,tablet,desktop,wide --viewport <WIDTHxHEIGHT>initial viewport flagviewport.width/viewport.heightconfig supportVIEWPORT_W/VIEWPORT_Henv 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=v2Verification
npm testResult:
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
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 testResult:
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.