@romanmatena/browsermonitor 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -132,7 +132,7 @@ For **join mode** (attach to existing Chrome): start Chrome manually with `--rem
132
132
 
133
133
  Each project gets its own Chrome profile:
134
134
  - **WSL:** `%LOCALAPPDATA%\browsermonitor\{project}_{hash}` (Windows path)
135
- - **Native:** `.browsermonitor-profile/` in project dir
135
+ - **Native:** `.browsermonitor/.chrome-profile/` in project dir
136
136
 
137
137
  Separate cookies and logins per project; won't interfere with your regular Chrome.
138
138
 
@@ -172,8 +172,8 @@ When browsermonitor runs in a project directory, it creates:
172
172
  │ ├── cookies/ # Per-domain cookie JSONs
173
173
  │ ├── dom.html
174
174
  │ └── screenshot.png
175
- └── .browsermonitor-profile/ # Chrome profile (native) or
176
- # %LOCALAPPDATA%\browsermonitor\ (WSL)
175
+ └── .chrome-profile/ # Chrome profile (native) or
176
+ # %LOCALAPPDATA%\browsermonitor\ (WSL)
177
177
  ```
178
178
 
179
179
  ## Keyboard Controls (open/join mode)
@@ -208,8 +208,8 @@ Use `curl` to communicate with the HTTP API over REST. Default URL: `http://loca
208
208
 
209
209
  | Endpoint | Description |
210
210
  |----------|-------------|
211
- | `GET /dump` | Dump logs, DOM, cookies, screenshot to files; returns output paths |
212
- | `GET /status` | Current status, monitored URLs, stats, output file paths |
211
+ | `GET /dump` | Dump logs, DOM, cookies, screenshot to files; returns output file paths |
212
+ | `GET /status` | Current state: status, mode, monitored URLs, collecting flag, stats |
213
213
  | `GET /stop` | Pause collecting (console/network) |
214
214
  | `GET /start` | Resume collecting |
215
215
  | `GET /clear` | Clear in-memory buffers |
@@ -341,7 +341,7 @@ Second launch: chrome.exe --remote-debugging-port=9223 --user-data-dir=Y
341
341
 
342
342
  **Consequence:** If user has Chrome open for regular browsing, launching a new Chrome with debug flags does nothing - the existing Chrome (without debugging) handles it.
343
343
 
344
- **Detection method (used in monitor.mjs):**
344
+ **Detection method (used in open-mode.mjs):**
345
345
  ```bash
346
346
  # From WSL, query Windows WMI for Chrome processes:
347
347
  wmic.exe process where "name='chrome.exe'" get processid,commandline
@@ -553,6 +553,7 @@ netstat -ano | findstr "9222.*LISTEN"
553
553
 
554
554
  - **Entry point:** [cli.mjs](src/cli.mjs) – argument parsing, mode dispatch
555
555
  - **Settings:** [settings.mjs](src/settings.mjs) – project paths, config loading
556
- - **Modes:** [monitor.mjs](src/monitor.mjs) re-exports; implementations in [monitor/join-mode.mjs](src/monitor/join-mode.mjs), [monitor/open-mode.mjs](src/monitor/open-mode.mjs), [monitor/interactive-mode.mjs](src/monitor/interactive-mode.mjs)
556
+ - **Modes:** [monitor/open-mode.mjs](src/monitor/open-mode.mjs), [monitor/join-mode.mjs](src/monitor/join-mode.mjs)
557
+ - **Shared modules:** [monitor/shared/](src/monitor/shared/) – cleanup, keyboard, HTTP state, tab switching, help, monitoring wrapper, user page filter
557
558
  - **WSL:** [os/wsl/index.mjs](src/os/wsl/index.mjs) – `runWslDiagnostics()`, `scanChromeInstances()`, Chrome launch and port proxy helpers
558
559
  - **Chrome launch (WSL):** [os/wsl/chrome.mjs](src/os/wsl/chrome.mjs) – `startChromeOnWindows()`, port proxy, profile path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@romanmatena/browsermonitor",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Browser console, network, DOM monitoring for debugging and LLM workflows. Captures console, network, cookies, screenshot, DOM. HTTP API for LLM/scripts. WSL+Windows, Linux, Open/Join modes.",
5
5
  "type": "module",
6
6
  "bin": {