@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/changelog.md +27 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/actions.js +5 -2
- package/dist_ts/classes.artifactstore.d.ts +4 -1
- package/dist_ts/classes.artifactstore.js +42 -11
- package/dist_ts/classes.runtime.d.ts +8 -5
- package/dist_ts/classes.runtime.js +172 -64
- package/dist_ts/classes.runtimeownership.d.ts +102 -0
- package/dist_ts/classes.runtimeownership.js +1230 -0
- package/dist_ts/interfaces.d.ts +2 -0
- package/dist_ts/internal.testing.d.ts +2 -0
- package/dist_ts/internal.testing.js +1 -1
- package/dist_ts/plugins.d.ts +2 -1
- package/dist_ts/plugins.js +3 -2
- package/package.json +4 -3
- package/readme.hints.md +8 -0
- package/readme.md +25 -4
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/actions.ts +9 -1
- package/ts/classes.artifactstore.ts +51 -14
- package/ts/classes.runtime.ts +172 -61
- package/ts/classes.runtimeownership.ts +1393 -0
- package/ts/interfaces.ts +5 -1
- package/ts/internal.testing.ts +2 -0
- package/ts/plugins.ts +2 -1
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
|
-
| {
|
|
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 {
|
package/ts/internal.testing.ts
CHANGED
|
@@ -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';
|