@modelprofile.com/browser-runtime 2.1.2 → 3.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 +10 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.flexprovider.js +10 -10
- package/dist_ts/classes.framed.d.ts +3 -0
- package/dist_ts/classes.framed.js +16 -3
- package/dist_ts/classes.runtime.d.ts +47 -6
- package/dist_ts/classes.runtime.js +433 -122
- package/dist_ts/index.d.ts +1 -1
- package/dist_ts/interfaces.d.ts +15 -0
- package/package.json +2 -2
- package/readme.hints.md +9 -5
- package/readme.md +11 -5
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.flexprovider.ts +10 -11
- package/ts/classes.framed.ts +16 -2
- package/ts/classes.runtime.ts +579 -149
- package/ts/index.ts +2 -0
- package/ts/interfaces.ts +22 -0
package/ts/index.ts
CHANGED
|
@@ -34,6 +34,8 @@ export type {
|
|
|
34
34
|
IBrowserOpenCodeSessionId,
|
|
35
35
|
IBrowserPressAction,
|
|
36
36
|
TBrowserRuntimeAuditEvent,
|
|
37
|
+
TBrowserRuntimeLeaseAuthority,
|
|
38
|
+
TBrowserRuntimeOperationClassification,
|
|
37
39
|
TBrowserRuntimeOperationIdentity,
|
|
38
40
|
IBrowserRuntimeFlexToolProviderOptions,
|
|
39
41
|
IBrowserRuntimeFrameSubscription,
|
package/ts/interfaces.ts
CHANGED
|
@@ -63,6 +63,7 @@ export interface IBrowserHumanCapabilityBinding extends IBrowserCapabilityBindin
|
|
|
63
63
|
sessionId?: never;
|
|
64
64
|
scopeId?: never;
|
|
65
65
|
channelId?: never;
|
|
66
|
+
runId?: never;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
export interface IBrowserFlexCapabilityBinding extends IBrowserCapabilityBindingBase {
|
|
@@ -71,6 +72,7 @@ export interface IBrowserFlexCapabilityBinding extends IBrowserCapabilityBinding
|
|
|
71
72
|
sessionId: IBrowserFlexSessionId;
|
|
72
73
|
scopeId: string;
|
|
73
74
|
channelId: string;
|
|
75
|
+
runId: string;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
export interface IBrowserMcpCapabilityBinding extends IBrowserCapabilityBindingBase {
|
|
@@ -79,6 +81,7 @@ export interface IBrowserMcpCapabilityBinding extends IBrowserCapabilityBindingB
|
|
|
79
81
|
sessionId: IBrowserOpenCodeSessionId;
|
|
80
82
|
scopeId?: never;
|
|
81
83
|
channelId?: never;
|
|
84
|
+
runId?: never;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
export type TBrowserCapabilityAuthorizationRequest =
|
|
@@ -118,9 +121,25 @@ export type TBrowserRuntimeOperationIdentity = TReadonlyBrowserCapabilityAuthori
|
|
|
118
121
|
readonly capabilityId: string;
|
|
119
122
|
readonly leaseId: string;
|
|
120
123
|
readonly action: string;
|
|
124
|
+
readonly classification: TBrowserRuntimeOperationClassification;
|
|
121
125
|
readonly startedAt: number;
|
|
122
126
|
};
|
|
123
127
|
|
|
128
|
+
export type TBrowserRuntimeOperationClassification =
|
|
129
|
+
| 'raw-input'
|
|
130
|
+
| 'viewport'
|
|
131
|
+
| 'navigation'
|
|
132
|
+
| 'tab'
|
|
133
|
+
| 'agent-action';
|
|
134
|
+
|
|
135
|
+
export type TBrowserRuntimeLeaseAuthority = TReadonlyBrowserCapabilityAuthorizationRequest & {
|
|
136
|
+
readonly runtimeAuthorityId: string;
|
|
137
|
+
readonly authorityGeneration: number;
|
|
138
|
+
readonly incarnationGeneration: number;
|
|
139
|
+
readonly capabilityId: string;
|
|
140
|
+
readonly leaseId: string;
|
|
141
|
+
};
|
|
142
|
+
|
|
124
143
|
export type TBrowserRuntimeAuditEvent = TBrowserRuntimeOperationIdentity & {
|
|
125
144
|
readonly phase: 'completed' | 'failed';
|
|
126
145
|
readonly finishedAt: number;
|
|
@@ -236,14 +255,17 @@ export interface IBrowserRuntimeOptions {
|
|
|
236
255
|
authorizationTimeoutMs?: number;
|
|
237
256
|
beforeOperationTimeoutMs?: number;
|
|
238
257
|
maxTabsPerResource?: number;
|
|
258
|
+
maxQueuedOperationsPerLease?: number;
|
|
239
259
|
operationTimeoutMs?: number;
|
|
240
260
|
quiescenceTimeoutMs?: number;
|
|
241
261
|
terminationGraceMs?: number;
|
|
242
262
|
terminationForceMs?: number;
|
|
263
|
+
cleanupTimeoutMs?: number;
|
|
243
264
|
auditTimeoutMs?: number;
|
|
244
265
|
confinementProbeTimeoutMs?: number;
|
|
245
266
|
idleTerminationMs?: number;
|
|
246
267
|
maxFrameBytes?: number;
|
|
268
|
+
maxOutstandingFrames?: number;
|
|
247
269
|
frameAcknowledgementTimeoutMs?: number;
|
|
248
270
|
egress?: Omit<IBrowserEgressProxyOptions, 'projectId' | 'browserResourceId'>;
|
|
249
271
|
artifacts?: Omit<IBrowserArtifactStoreOptions, 'rootDirectory'>;
|