@roll-agent/browser-use-agent 0.25.2 → 0.26.1

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.
@@ -45,9 +45,9 @@ export declare const ReplyAuthorityEnvelopePayloadSchema: z.ZodObject<{
45
45
  }>;
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  platform: "zhipin";
48
+ reply: string;
48
49
  conversationId: string;
49
50
  candidateId: string;
50
- reply: string;
51
51
  tenantId: string;
52
52
  recruiterBinding: {
53
53
  platform: "zhipin";
@@ -64,9 +64,9 @@ export declare const ReplyAuthorityEnvelopePayloadSchema: z.ZodObject<{
64
64
  policyVersion: string;
65
65
  }, {
66
66
  platform: "zhipin";
67
+ reply: string;
67
68
  conversationId: string;
68
69
  candidateId: string;
69
- reply: string;
70
70
  tenantId: string;
71
71
  recruiterBinding: {
72
72
  platform: "zhipin";
@@ -1,6 +1,7 @@
1
1
  import type { BrowserDomActionHint, NativeCdpController } from "@roll-agent/browser";
2
2
  type DomActionCandidateController = Pick<NativeCdpController, "createIsolatedWorld" | "describeNode" | "evaluateJson" | "getDocument" | "querySelectorAllByNodeId">;
3
3
  type DomActionCandidateOptions = {
4
+ readonly scope?: string;
4
5
  readonly frameId?: string;
5
6
  readonly maxCandidates?: number;
6
7
  };
@@ -0,0 +1,152 @@
1
+ export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
2
+ source: string;
3
+ pageId: string;
4
+ capabilities: ("navigate" | "read" | "interact" | "capture")[];
5
+ allowedOrigins: string[];
6
+ args?: Record<string, unknown> | undefined;
7
+ timeoutMs?: number | undefined;
8
+ maxCalls?: number | undefined;
9
+ preconditions?: ({
10
+ target: {
11
+ css: string;
12
+ scope?: string | undefined;
13
+ frameId?: string | undefined;
14
+ } | {
15
+ role: string;
16
+ name: string;
17
+ scope?: string | undefined;
18
+ frameId?: string | undefined;
19
+ } | {
20
+ ref: string;
21
+ snapshotId: string;
22
+ };
23
+ state: "disabled" | "attached" | "visible" | "hidden" | "absent" | "enabled" | "checked" | "unchecked";
24
+ } | {
25
+ text: string;
26
+ target: {
27
+ css: string;
28
+ scope?: string | undefined;
29
+ frameId?: string | undefined;
30
+ } | {
31
+ role: string;
32
+ name: string;
33
+ scope?: string | undefined;
34
+ frameId?: string | undefined;
35
+ } | {
36
+ ref: string;
37
+ snapshotId: string;
38
+ };
39
+ match?: "equals" | "contains" | undefined;
40
+ } | {
41
+ value: string;
42
+ target: {
43
+ css: string;
44
+ scope?: string | undefined;
45
+ frameId?: string | undefined;
46
+ } | {
47
+ role: string;
48
+ name: string;
49
+ scope?: string | undefined;
50
+ frameId?: string | undefined;
51
+ } | {
52
+ ref: string;
53
+ snapshotId: string;
54
+ };
55
+ } | {
56
+ url: string;
57
+ match?: "startsWith" | "equals" | undefined;
58
+ })[] | undefined;
59
+ postconditions?: ({
60
+ target: {
61
+ css: string;
62
+ scope?: string | undefined;
63
+ frameId?: string | undefined;
64
+ } | {
65
+ role: string;
66
+ name: string;
67
+ scope?: string | undefined;
68
+ frameId?: string | undefined;
69
+ } | {
70
+ ref: string;
71
+ snapshotId: string;
72
+ };
73
+ state: "disabled" | "attached" | "visible" | "hidden" | "absent" | "enabled" | "checked" | "unchecked";
74
+ } | {
75
+ text: string;
76
+ target: {
77
+ css: string;
78
+ scope?: string | undefined;
79
+ frameId?: string | undefined;
80
+ } | {
81
+ role: string;
82
+ name: string;
83
+ scope?: string | undefined;
84
+ frameId?: string | undefined;
85
+ } | {
86
+ ref: string;
87
+ snapshotId: string;
88
+ };
89
+ match?: "equals" | "contains" | undefined;
90
+ } | {
91
+ value: string;
92
+ target: {
93
+ css: string;
94
+ scope?: string | undefined;
95
+ frameId?: string | undefined;
96
+ } | {
97
+ role: string;
98
+ name: string;
99
+ scope?: string | undefined;
100
+ frameId?: string | undefined;
101
+ } | {
102
+ ref: string;
103
+ snapshotId: string;
104
+ };
105
+ } | {
106
+ url: string;
107
+ match?: "startsWith" | "equals" | undefined;
108
+ })[] | undefined;
109
+ scriptApproval?: {
110
+ id: string;
111
+ } | undefined;
112
+ }, {
113
+ status: "failed" | "completed" | "cancelled" | "timed_out";
114
+ verification: "not_requested" | "passed" | "failed";
115
+ executionId: string;
116
+ logs: string[];
117
+ actions: {
118
+ index: number;
119
+ method: string;
120
+ executed: boolean;
121
+ verification: "not_requested" | "passed" | "failed";
122
+ elapsedMs: number;
123
+ errorCode?: string | undefined;
124
+ }[];
125
+ checks: {
126
+ passed: boolean;
127
+ elapsedMs: number;
128
+ kind: string;
129
+ actual?: Record<string, string | number | boolean | null> | undefined;
130
+ }[];
131
+ observation: {
132
+ changed: boolean;
133
+ beforeUrl?: string | undefined;
134
+ afterUrl?: string | undefined;
135
+ changes?: string[] | undefined;
136
+ };
137
+ artifacts: {
138
+ path: string;
139
+ id: string;
140
+ mimeType: "image/png";
141
+ }[];
142
+ metrics: {
143
+ elapsedMs: number;
144
+ helperCalls: number;
145
+ verifiedAssertions: number;
146
+ };
147
+ value?: unknown;
148
+ error?: {
149
+ code: string;
150
+ message: string;
151
+ } | undefined;
152
+ }>;
@@ -0,0 +1,8 @@
1
+ import type { BrowserRuntime, NativeCdpController } from "@roll-agent/browser";
2
+ /** Preserve native method receivers while checking the last, externally observable input boundary. */
3
+ export declare function createBrowserRefFrameGuard(controller: NativeCdpController, input: {
4
+ frameId?: string;
5
+ runtime: Pick<BrowserRuntime, "getConfig">;
6
+ approvedByConfirmation: boolean;
7
+ signal?: AbortSignal;
8
+ }): NativeCdpController;
@@ -13,9 +13,9 @@ export declare const BrowserElementRefTargetSchema: z.ZodObject<{
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  x: number;
15
15
  y: number;
16
- ref: string;
17
16
  role: string;
18
17
  name: string;
18
+ ref: string;
19
19
  disabled: boolean;
20
20
  resolvedBy: "backend_node_id" | "role_name_nth";
21
21
  backendNodeId?: number | undefined;
@@ -23,9 +23,9 @@ export declare const BrowserElementRefTargetSchema: z.ZodObject<{
23
23
  }, {
24
24
  x: number;
25
25
  y: number;
26
- ref: string;
27
26
  role: string;
28
27
  name: string;
28
+ ref: string;
29
29
  disabled: boolean;
30
30
  resolvedBy: "backend_node_id" | "role_name_nth";
31
31
  backendNodeId?: number | undefined;
@@ -48,9 +48,9 @@ export declare const BrowserElementRefActionOutputSchema: z.ZodObject<{
48
48
  }, "strip", z.ZodTypeAny, {
49
49
  x: number;
50
50
  y: number;
51
- ref: string;
52
51
  role: string;
53
52
  name: string;
53
+ ref: string;
54
54
  disabled: boolean;
55
55
  resolvedBy: "backend_node_id" | "role_name_nth";
56
56
  backendNodeId?: number | undefined;
@@ -58,9 +58,9 @@ export declare const BrowserElementRefActionOutputSchema: z.ZodObject<{
58
58
  }, {
59
59
  x: number;
60
60
  y: number;
61
- ref: string;
62
61
  role: string;
63
62
  name: string;
63
+ ref: string;
64
64
  disabled: boolean;
65
65
  resolvedBy: "backend_node_id" | "role_name_nth";
66
66
  backendNodeId?: number | undefined;
@@ -71,9 +71,9 @@ export declare const BrowserElementRefActionOutputSchema: z.ZodObject<{
71
71
  target: {
72
72
  x: number;
73
73
  y: number;
74
- ref: string;
75
74
  role: string;
76
75
  name: string;
76
+ ref: string;
77
77
  disabled: boolean;
78
78
  resolvedBy: "backend_node_id" | "role_name_nth";
79
79
  backendNodeId?: number | undefined;
@@ -86,9 +86,9 @@ export declare const BrowserElementRefActionOutputSchema: z.ZodObject<{
86
86
  target: {
87
87
  x: number;
88
88
  y: number;
89
- ref: string;
90
89
  role: string;
91
90
  name: string;
91
+ ref: string;
92
92
  disabled: boolean;
93
93
  resolvedBy: "backend_node_id" | "role_name_nth";
94
94
  backendNodeId?: number | undefined;
@@ -1,6 +1,6 @@
1
- import { type BrowserAxNode } from "@roll-agent/browser";
2
1
  export declare const browserSnapshot: import("@roll-agent/sdk").ToolDefinition<{
3
2
  pageId?: string | undefined;
3
+ scope?: string | undefined;
4
4
  maxNodes?: number | undefined;
5
5
  interactiveOnly?: boolean | undefined;
6
6
  maxDepth?: number | undefined;
@@ -15,19 +15,38 @@ export declare const browserSnapshot: import("@roll-agent/sdk").ToolDefinition<{
15
15
  };
16
16
  snapshot: {
17
17
  truncated: boolean;
18
- nodes: BrowserAxNode[];
18
+ nodes: import("@roll-agent/browser").BrowserAxNode[];
19
19
  refs: {
20
- ref: string;
21
20
  role: string;
22
21
  name: string;
22
+ ref: string;
23
23
  nth: number;
24
24
  disabled: boolean;
25
25
  backendNodeId?: number | undefined;
26
26
  frameId?: string | undefined;
27
+ context?: {
28
+ form?: string | undefined;
29
+ dialog?: string | undefined;
30
+ label?: string | undefined;
31
+ } | undefined;
32
+ locator?: {
33
+ unique: true;
34
+ css?: string | undefined;
35
+ role?: string | undefined;
36
+ name?: string | undefined;
37
+ scope?: string | undefined;
38
+ } | undefined;
39
+ strict?: boolean | undefined;
27
40
  }[];
28
41
  nodeCount: number;
29
42
  maxNodes: number;
30
43
  interactiveOnly: boolean;
44
+ browserInstance?: string | undefined;
45
+ pageId?: string | undefined;
46
+ scope?: string | undefined;
47
+ snapshotId?: string | undefined;
48
+ documentId?: string | undefined;
49
+ coverageWarnings?: string[] | undefined;
31
50
  maxDepth?: number | undefined;
32
51
  };
33
52
  }>;