@modelprofile.com/browser-runtime 3.1.1 → 4.0.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/ts/interfaces.ts CHANGED
@@ -299,6 +299,7 @@ export interface IBrowserRuntimeState {
299
299
  lastError?: {
300
300
  code: string;
301
301
  fatal: boolean;
302
+ message?: string;
302
303
  tabId?: string;
303
304
  };
304
305
  }
@@ -403,7 +404,10 @@ export type TBrowserAgentActionResult =
403
404
 
404
405
  export type TBrowserRuntimeEvent =
405
406
  | { type: 'state'; state: IBrowserRuntimeState }
406
- | { type: 'error'; error: { code: string; fatal: boolean; tabId?: string } }
407
+ | {
408
+ type: 'error';
409
+ error: { code: string; fatal: boolean; message?: string; tabId?: string };
410
+ }
407
411
  | { type: 'frame'; frame: plugins.smartpuppeteer.ILiveBrowserFrame };
408
412
 
409
413
  export interface IBrowserRuntimeOperationOptions {
@@ -6,6 +6,7 @@ import type {
6
6
  IBrowserRuntimeEnvironment,
7
7
  ILiveBrowserSessionLike,
8
8
  } from './interfaces.js';
9
+ import type { IBrowserRuntimeOwnershipTestingOptions } from './classes.runtimeownership.js';
9
10
 
10
11
  export const browserRuntimeTesting = Symbol('browserRuntimeTesting');
11
12
 
@@ -21,6 +22,7 @@ export interface IBrowserRuntimeTestingOptions extends IBrowserRuntimeOptions {
21
22
  beforeFrameFailureTermination?(): Promise<void>;
22
23
  afterFrameFailureFence?(): Promise<void>;
23
24
  beforeFramedPeerLeasePublication?(): Promise<void>;
25
+ ownership?: IBrowserRuntimeOwnershipTestingOptions;
24
26
  }
25
27
 
26
28
  export interface IBrowserRuntimeFramedClientTestingOptions
package/ts/plugins.ts CHANGED
@@ -17,10 +17,11 @@ export { Buffer, crypto, dns, fs, fsPromises, http, net, os, path, stream, tls,
17
17
  // foss.global scopes
18
18
  import * as flexharness from '@modelprofile.com/flexharness';
19
19
  import * as smartagent from '@push.rocks/smartagent';
20
+ import * as smartipc from '@push.rocks/smartipc';
20
21
  import * as smartmcp from '@push.rocks/smartmcp';
21
22
  import * as smartpuppeteer from '@push.rocks/smartpuppeteer';
22
23
 
23
- export { flexharness, smartagent, smartmcp, smartpuppeteer };
24
+ export { flexharness, smartagent, smartipc, smartmcp, smartpuppeteer };
24
25
 
25
26
  // third-party scope
26
27
  import ipaddr from 'ipaddr.js';