@volter-ai-dev/supercode-browser-playwright 0.1.1 → 0.2.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.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * What a `browser.script` holds while it runs: the real Playwright `page`
3
+ * behind a membrane. Every Playwright object the script reaches through it
4
+ * (locators, frames, the keyboard, the context) is wrapped the same way, and
5
+ * everything a call returns with a `dispose()` (routes, exposed bindings and
6
+ * functions, init scripts) is recorded. When the script ends, or its time runs
7
+ * out, the membrane closes: every later call through it throws, the recorded
8
+ * disposables are disposed, routes are removed and listeners dropped, so
9
+ * nothing the script installed outlives it.
10
+ */
11
+ import type { Page } from "playwright-core";
12
+ export declare class ScriptScope {
13
+ private closed;
14
+ private readonly proxies;
15
+ private readonly targets;
16
+ private readonly disposables;
17
+ /** The membrane's view of `value`. */
18
+ wrap<T>(value: T): T;
19
+ /**
20
+ * Ends the script's hold on the page: later calls through the membrane
21
+ * throw, and what it installed is removed.
22
+ */
23
+ close(page: Page): Promise<void>;
24
+ private check;
25
+ private unwrap;
26
+ private returned;
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter-ai-dev/supercode-browser-playwright",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "Supercode browser provider that is an unmodified playwright-core client over CDP, and the browser-operation wire it answers",
6
6
  "bin": {