@mearl/browser-core 3.2.0 → 3.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.
@@ -1,5 +1,7 @@
1
- import type { BrowserDetails } from './browserActionProtocol.js';
1
+ import type { BrowserDetails, BrowserProviderObjectSchema } from './browserActionProtocol.js';
2
2
  export declare const PROVIDER_TASK_SESSION_VERSION = 1;
3
+ /** The host injects this reserved launch parameter when creating a Provider task. */
4
+ export declare function declaresProviderTaskSessions(schema: BrowserProviderObjectSchema): boolean;
3
5
  /** Operations whose page inputs and outputs can be kept on the same execution route. */
4
6
  export declare const PROVIDER_TASK_EXTENSION_ACTIONS: readonly ["page_navigate", "page_snapshot", "page_eval", "page_click", "page_type", "page_press", "page_scroll", "page_hover", "page_wait", "page_frames", "page_screenshot", "set_timezone", "set_device_emulation", "set_app_profile", "tab_checkpoint", "get_requests", "get_logs"];
5
7
  export type ProviderTaskExtensionAction = (typeof PROVIDER_TASK_EXTENSION_ACTIONS)[number];
@@ -1,4 +1,9 @@
1
1
  export const PROVIDER_TASK_SESSION_VERSION = 1;
2
+ /** The host injects this reserved launch parameter when creating a Provider task. */
3
+ export function declaresProviderTaskSessions(schema) {
4
+ const field = schema.properties.taskSession;
5
+ return field?.type === 'object' && field.formHidden === true;
6
+ }
2
7
  /** Operations whose page inputs and outputs can be kept on the same execution route. */
3
8
  export const PROVIDER_TASK_EXTENSION_ACTIONS = [
4
9
  'page_navigate',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/browser-core",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Shared pure-logic utilities for Mearl — usable in both browser extension and Node.js environments",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",