@orkestrel/browser 0.0.7 → 0.0.8

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
@@ -5,8 +5,9 @@ browser automation library for the `@orkestrel` line. The environment-agnostic
5
5
  core (`src/core` — `CDPClient` speaking the CDP wire protocol over an injected
6
6
  `CDPTransportInterface`, plus `BrowserContext`, `BrowserPage`, and
7
7
  `BrowserFrame`, semantic locators, trusted input, network/HAR controls,
8
- diagnostics, structured DOM snapshots, and `BrowserCodegen`) never touches
9
- `node:*` or the DOM; the Node runtime (`src/server`)
8
+ diagnostics, structured DOM snapshots, content distillation that selects a
9
+ document's article rather than its whole body text, and `BrowserCodegen`)
10
+ never touches `node:*` or the DOM; the Node runtime (`src/server`)
10
11
  adapts it with a `WebSocketCDPTransport`, browser process launch/discovery
11
12
  (`node:child_process` + `fetch`), a filesystem screenshot writer, and the
12
13
  `Browser` façade that ties launch → context → page together. Part of the
@@ -37,6 +38,7 @@ await page.click('#submit')
37
38
  const frame = await page.frame('checkout')
38
39
  await frame?.fill('[name=email]', 'ada@example.com')
39
40
  const snapshot = await page.snapshot({ styles: ['display'] })
41
+ const article = await page.article() // reader-facing prose, boilerplate pruned
40
42
  await page.screenshot({ path: 'example.png' })
41
43
  await browser.destroy()
42
44
  ```
@@ -59,9 +61,6 @@ const result = await client.send('Page.navigate', { url: 'https://example.com' }
59
61
  For the full surface — the CDP dispatch core, the `BrowserContext` /
60
62
  `BrowserPage` / `BrowserCodegen` entities, the server transports, and usage
61
63
  patterns — see [`guides/src/browser.md`](guides/src/browser.md).
62
- The researched Playwright comparison, known semantic limits, and prioritized
63
- Chromium/CDP roadmap live in
64
- [`guides/src/playwright.md`](guides/src/playwright.md).
65
64
 
66
65
  ## Package
67
66