fastbrowse 0.5.20 → 0.5.23

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.
@@ -1,5 +1,5 @@
1
1
  export type ArtifactKind = 'download';
2
- export type CostBasis = 'metered' | 'estimated' | 'unknown';
2
+ export type CostBasis = 'metered' | 'estimated' | 'bounded' | 'unknown';
3
3
  export type CostComponent = 'jev' | 'llm' | 'browser' | 'proxy';
4
4
  export type LLMPurpose = 'plan' | 'read' | 'field_text' | 'recover' | 'verify' | 'compose' | 'shortcut';
5
5
  /**
@@ -306,6 +306,7 @@ export interface RunParams {
306
306
  cdp_port?: number | null;
307
307
  attach?: boolean;
308
308
  target_match?: string | null;
309
+ foreground?: boolean;
309
310
  proxy_country?: string | null;
310
311
  viewport?: [number, number] | null;
311
312
  cloud_allow_resizing?: boolean;
package/dist/run.d.ts CHANGED
@@ -20,6 +20,8 @@ export interface BrowserOptions {
20
20
  attach?: boolean;
21
21
  /** Part of the URL or title of the window to attach to. */
22
22
  targetMatch?: string;
23
+ /** Bring the run's tab and its browser window to the front, to watch it. A visible window otherwise stays in the background. */
24
+ foreground?: boolean;
23
25
  /** The two-letter country a cloud browser browses from. */
24
26
  proxyCountry?: string;
25
27
  viewport?: [width: number, height: number];
package/dist/run.js CHANGED
@@ -25,6 +25,7 @@ function browserFields(options) {
25
25
  cdp_port: options.cdpPort,
26
26
  attach: options.attach,
27
27
  target_match: options.targetMatch,
28
+ foreground: options.foreground,
28
29
  proxy_country: options.proxyCountry,
29
30
  viewport: options.viewport,
30
31
  cloud_allow_resizing: options.cloudAllowResizing,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastbrowse",
3
- "version": "0.5.20",
3
+ "version": "0.5.23",
4
4
  "description": "Browser automation with cited answers, structured output and code-controlled credentials and authorization.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,10 +27,10 @@
27
27
  "test": "npm run build && node --test \"test/*.test.ts\""
28
28
  },
29
29
  "optionalDependencies": {
30
- "@fastbrowse/darwin-arm64": "0.5.20",
31
- "@fastbrowse/darwin-x64": "0.5.20",
32
- "@fastbrowse/linux-arm64": "0.5.20",
33
- "@fastbrowse/linux-x64": "0.5.20",
34
- "@fastbrowse/win32-x64": "0.5.20"
30
+ "@fastbrowse/darwin-arm64": "0.5.23",
31
+ "@fastbrowse/darwin-x64": "0.5.23",
32
+ "@fastbrowse/linux-arm64": "0.5.23",
33
+ "@fastbrowse/linux-x64": "0.5.23",
34
+ "@fastbrowse/win32-x64": "0.5.23"
35
35
  }
36
36
  }