@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/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'>;