@modelprofile.com/browser-runtime 5.2.1 → 5.3.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 +6 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.runtime.d.ts +20 -0
- package/dist_ts/classes.runtime.js +179 -1
- package/dist_ts/interfaces.d.ts +4 -1
- package/package.json +2 -2
- package/readme.md +22 -0
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.runtime.ts +169 -0
- package/ts/interfaces.ts +5 -0
package/changelog.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@modelprofile.com/browser-runtime',
|
|
6
|
-
version: '5.
|
|
6
|
+
version: '5.3.0',
|
|
7
7
|
description: 'Parent-owned, resource-centric Chromium runtime with revisioned attachment fencing, authenticated human and agent control, fail-closed egress, bounded artifacts, and Flex/MCP adapters.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxtQ0FBbUM7SUFDekMsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLDBMQUEwTDtDQUN4TSxDQUFBIn0=
|
|
@@ -35,9 +35,23 @@ interface ILeaseRecord {
|
|
|
35
35
|
videoPeerId: string;
|
|
36
36
|
videoPeerMayExist: boolean;
|
|
37
37
|
frameCaptureUsed: boolean;
|
|
38
|
+
devTools?: IDevToolsRecord;
|
|
38
39
|
heldKeys: Map<string, plugins.smartpuppeteer.ILiveBrowserKeyInput>;
|
|
39
40
|
heldButtons: Map<string, plugins.smartpuppeteer.ILiveBrowserMouseInput>;
|
|
40
41
|
}
|
|
42
|
+
interface IDevToolsRecord {
|
|
43
|
+
authority: TBrowserRuntimeLeaseAuthority;
|
|
44
|
+
session: ILiveBrowserSessionLike;
|
|
45
|
+
controller: AbortController;
|
|
46
|
+
connection?: plugins.smartpuppeteer.ILiveBrowserDevToolsConnection;
|
|
47
|
+
opening?: Promise<plugins.smartpuppeteer.ILiveBrowserDevToolsConnection>;
|
|
48
|
+
closePromise?: Promise<void>;
|
|
49
|
+
pending: Set<Promise<void>>;
|
|
50
|
+
commands: number;
|
|
51
|
+
interrupts: number;
|
|
52
|
+
closed: boolean;
|
|
53
|
+
removeAbortListener(): void;
|
|
54
|
+
}
|
|
41
55
|
export interface IBrowserRuntimeLeaseRenewalOptions {
|
|
42
56
|
signal?: AbortSignal;
|
|
43
57
|
/** Lifetime from successful reauthorization; defaults to the runtime capability lifetime. */
|
|
@@ -231,6 +245,11 @@ export declare class BrowserRuntime {
|
|
|
231
245
|
/** @internal */
|
|
232
246
|
leaseOpenVideoPeer(lease: ILeaseRecord, options?: IBrowserRuntimeOperationOptions): Promise<TBrowserRuntimeVideoOffer>;
|
|
233
247
|
/** @internal */
|
|
248
|
+
leaseOpenDevTools(lease: ILeaseRecord, options: plugins.smartpuppeteer.ILiveBrowserDevToolsOptions, operationOptions?: IBrowserRuntimeOperationOptions): Promise<plugins.smartpuppeteer.ILiveBrowserDevToolsConnection>;
|
|
249
|
+
private requireDevToolsAuthority;
|
|
250
|
+
private sendLeaseDevTools;
|
|
251
|
+
private closeLeaseDevTools;
|
|
252
|
+
/** @internal */
|
|
234
253
|
leaseAnswerVideoPeer(lease: ILeaseRecord, negotiationId: string, description: plugins.smartpuppeteer.ILiveVideoDescription, options?: IBrowserRuntimeOperationOptions): Promise<void>;
|
|
235
254
|
/** @internal */
|
|
236
255
|
leaseCloseVideoPeer(lease: ILeaseRecord, options?: IBrowserRuntimeOperationOptions): Promise<void>;
|
|
@@ -392,6 +411,7 @@ export declare class BrowserRuntimeLease {
|
|
|
392
411
|
insertText(input: plugins.smartpuppeteer.ILiveBrowserInsertTextInput, operationOptions?: IBrowserRuntimeOperationOptions): Promise<void>;
|
|
393
412
|
subscribeEvents(listener: (event: TBrowserRuntimeEvent) => void, options?: IBrowserRuntimeEventSubscriptionOptions): Promise<IBrowserRuntimeFrameSubscription>;
|
|
394
413
|
openVideoPeer(options?: IBrowserRuntimeOperationOptions): Promise<TBrowserRuntimeVideoOffer>;
|
|
414
|
+
openDevTools(options: plugins.smartpuppeteer.ILiveBrowserDevToolsOptions, operationOptions?: IBrowserRuntimeOperationOptions): Promise<plugins.smartpuppeteer.ILiveBrowserDevToolsConnection>;
|
|
395
415
|
answerVideoPeer(negotiationId: string, description: plugins.smartpuppeteer.ILiveVideoDescription, options?: IBrowserRuntimeOperationOptions): Promise<void>;
|
|
396
416
|
closeVideoPeer(options?: IBrowserRuntimeOperationOptions): Promise<void>;
|
|
397
417
|
getVideoStatistics(options?: IBrowserRuntimeOperationOptions): Promise<plugins.smartpuppeteer.ILiveVideoStatistics>;
|