@toolstackhq/cdpwright 1.1.0 → 1.3.0

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.
package/README.md CHANGED
@@ -50,13 +50,31 @@ node quick.mjs
50
50
  - Queries: `query`, `queryAll`, `queryXPath`, `queryAllXPath`, `locator`
51
51
  - Assertions: `expect(page).element("selector").toBeVisible()` (see `docs/guide/assertions.md`)
52
52
 
53
- ## Architecture at a glance (render-friendly)
54
- ```
55
- CLI (cpw download) -> Downloader -> Chromium cache
56
-
57
- User code -> chromium.launch -> ChromiumManager -> Chromium process
58
- Chromium process -> CDP connection -> Browser -> Page -> Frame
59
- Page -> Locator / expect
53
+ ## Architecture
54
+
55
+ ```mermaid
56
+ graph TD
57
+ subgraph CLI
58
+ CPW["cpw (CLI)"]
59
+ end
60
+
61
+ subgraph Library API
62
+ USER["User code"] -->|chromium.launch| MGR[ChromiumManager]
63
+ MGR -->|spawns| PROC[Chromium process]
64
+ PROC -->|WebSocket| CDP[CDP Session]
65
+ CDP --> BROWSER[Browser]
66
+ BROWSER --> CTX[BrowserContext]
67
+ CTX --> PAGE[Page]
68
+ PAGE --> FRAME[Frame]
69
+ FRAME --> LOC[Locator]
70
+ PAGE --> EXPECT["expect()"]
71
+ end
72
+
73
+ subgraph Download
74
+ CPW -->|cpw download| DL[Downloader]
75
+ DL -->|fetch + extract| CACHE["~/.cache/cdpwright"]
76
+ MGR -.->|resolve executable| CACHE
77
+ end
60
78
  ```
61
79
 
62
80
  ## Docs
@@ -1 +1 @@
1
- export { E as ElementExpectation, c as ExpectFrame, d as ExpectSelectorOptions, e as expect } from '../expect-BY8vnFfi.js';
1
+ export { E as ElementExpectation, c as ExpectFrame, d as ExpectSelectorOptions, e as expect } from '../expect-Cd5SNFuF.js';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  expect
3
- } from "../chunk-M5G6EMAS.js";
3
+ } from "../chunk-EIAXMGD5.js";
4
4
  export {
5
5
  expect
6
6
  };