@roll-agent/browser-use-agent 0.27.3 → 0.27.5
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/dist/browser-use-policy.d.ts +18 -26
- package/dist/diagnostics/effective-env.d.ts +2 -14
- package/dist/goal/contracts.d.ts +173 -1537
- package/dist/goal/decisions.d.ts +1 -9
- package/dist/goal/execution-context.d.ts +83 -457
- package/dist/goal/form-context.d.ts +104 -480
- package/dist/goal/form-handoff.d.ts +12 -138
- package/dist/goal/interaction-feedback.d.ts +10 -36
- package/dist/goal/observation.d.ts +122 -827
- package/dist/goal/picker-observation.d.ts +26 -41
- package/dist/goal/picker-state.d.ts +33 -70
- package/dist/goal/task-evidence.d.ts +3 -3
- package/dist/goal/task-freshness.d.ts +8 -48
- package/dist/goal/task-policy.d.ts +10 -10
- package/dist/goal/task-progress.d.ts +25 -271
- package/dist/goal/task-sources.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/reply-authority/prepared-reply-decision.d.ts +22 -25
- package/dist/reply-authority/prepared-reply-judge-context.d.ts +9 -64
- package/dist/reply-authority/schemas.d.ts +6 -100
- package/dist/runtime-config.d.ts +40 -302
- package/dist/tool-action-approval.d.ts +1 -5
- package/dist/tools/attach-browser-session.d.ts +2 -2
- package/dist/tools/browser-execute.d.ts +19 -19
- package/dist/tools/browser-operate.d.ts +113 -113
- package/dist/tools/browser-ref-schemas.d.ts +19 -77
- package/dist/tools/browser-snapshot.d.ts +7 -7
- package/dist/tools/browser-status.d.ts +34 -34
- package/dist/tools/browser-stop.d.ts +19 -54
- package/dist/tools/browser-workflows.d.ts +87 -454
- package/dist/tools/click-ref.d.ts +7 -7
- package/dist/tools/type-ref.d.ts +8 -8
- package/dist/tools/yupao-send-reply.d.ts +1 -1
- package/dist/tools/zhipin-capture-resume.d.ts +7 -7
- package/dist/tools/zhipin-close-resume.d.ts +2 -2
- package/dist/tools/zhipin-diagnose-browser-state.d.ts +76 -156
- package/dist/tools/zhipin-exchange-wechat.d.ts +2 -2
- package/dist/tools/zhipin-filter-recommend-candidates.d.ts +15 -15
- package/dist/tools/zhipin-generate-reply-preview.d.ts +14 -14
- package/dist/tools/zhipin-get-candidate-info.d.ts +16 -16
- package/dist/tools/zhipin-get-candidate-list.d.ts +7 -7
- package/dist/tools/zhipin-get-username.d.ts +3 -3
- package/dist/tools/zhipin-judge-prepared-reply.d.ts +5 -5
- package/dist/tools/zhipin-list-recommend-jobs.d.ts +7 -7
- package/dist/tools/zhipin-open-chat-page.d.ts +4 -4
- package/dist/tools/zhipin-open-chat.d.ts +3 -3
- package/dist/tools/zhipin-open-recommend-page.d.ts +3 -3
- package/dist/tools/zhipin-open-resume.d.ts +2 -2
- package/dist/tools/zhipin-read-messages.d.ts +4 -4
- package/dist/tools/zhipin-say-hello.d.ts +3 -3
- package/dist/tools/zhipin-scroll-view.d.ts +13 -13
- package/dist/tools/zhipin-select-recommend-job.d.ts +16 -16
- package/dist/tools/zhipin-send-prepared-reply.d.ts +6 -6
- package/dist/tools/zhipin-send-reply.d.ts +2 -10
- package/dist/workflows/store.d.ts +46 -253
- package/package.json +5 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
|
|
2
|
-
source: string;
|
|
3
2
|
pageId: string;
|
|
3
|
+
source: string;
|
|
4
|
+
args: Record<string, unknown>;
|
|
4
5
|
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
5
6
|
allowedOrigins: string[];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
preconditions?: ({
|
|
7
|
+
timeoutMs: number;
|
|
8
|
+
maxCalls: number;
|
|
9
|
+
preconditions: ({
|
|
10
10
|
target: {
|
|
11
11
|
css: string;
|
|
12
12
|
scope?: string | undefined;
|
|
@@ -22,7 +22,6 @@ export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
22
22
|
};
|
|
23
23
|
state: "disabled" | "attached" | "visible" | "hidden" | "absent" | "enabled" | "checked" | "unchecked";
|
|
24
24
|
} | {
|
|
25
|
-
text: string;
|
|
26
25
|
target: {
|
|
27
26
|
css: string;
|
|
28
27
|
scope?: string | undefined;
|
|
@@ -36,9 +35,9 @@ export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
36
35
|
ref: string;
|
|
37
36
|
snapshotId: string;
|
|
38
37
|
};
|
|
39
|
-
|
|
38
|
+
text: string;
|
|
39
|
+
match: "equals" | "contains";
|
|
40
40
|
} | {
|
|
41
|
-
value: string;
|
|
42
41
|
target: {
|
|
43
42
|
css: string;
|
|
44
43
|
scope?: string | undefined;
|
|
@@ -52,11 +51,12 @@ export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
52
51
|
ref: string;
|
|
53
52
|
snapshotId: string;
|
|
54
53
|
};
|
|
54
|
+
value: string;
|
|
55
55
|
} | {
|
|
56
56
|
url: string;
|
|
57
|
-
match
|
|
58
|
-
})[]
|
|
59
|
-
postconditions
|
|
57
|
+
match: "startsWith" | "equals";
|
|
58
|
+
})[];
|
|
59
|
+
postconditions: ({
|
|
60
60
|
target: {
|
|
61
61
|
css: string;
|
|
62
62
|
scope?: string | undefined;
|
|
@@ -72,7 +72,6 @@ export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
72
72
|
};
|
|
73
73
|
state: "disabled" | "attached" | "visible" | "hidden" | "absent" | "enabled" | "checked" | "unchecked";
|
|
74
74
|
} | {
|
|
75
|
-
text: string;
|
|
76
75
|
target: {
|
|
77
76
|
css: string;
|
|
78
77
|
scope?: string | undefined;
|
|
@@ -86,9 +85,9 @@ export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
86
85
|
ref: string;
|
|
87
86
|
snapshotId: string;
|
|
88
87
|
};
|
|
89
|
-
|
|
88
|
+
text: string;
|
|
89
|
+
match: "equals" | "contains";
|
|
90
90
|
} | {
|
|
91
|
-
value: string;
|
|
92
91
|
target: {
|
|
93
92
|
css: string;
|
|
94
93
|
scope?: string | undefined;
|
|
@@ -102,17 +101,18 @@ export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
102
101
|
ref: string;
|
|
103
102
|
snapshotId: string;
|
|
104
103
|
};
|
|
104
|
+
value: string;
|
|
105
105
|
} | {
|
|
106
106
|
url: string;
|
|
107
|
-
match
|
|
108
|
-
})[]
|
|
107
|
+
match: "startsWith" | "equals";
|
|
108
|
+
})[];
|
|
109
109
|
scriptApproval?: {
|
|
110
110
|
id: string;
|
|
111
111
|
} | undefined;
|
|
112
112
|
}, {
|
|
113
|
+
executionId: string;
|
|
113
114
|
status: "failed" | "completed" | "cancelled" | "timed_out";
|
|
114
115
|
verification: "not_requested" | "passed" | "failed";
|
|
115
|
-
executionId: string;
|
|
116
116
|
logs: string[];
|
|
117
117
|
actions: {
|
|
118
118
|
index: number;
|
|
@@ -124,8 +124,8 @@ export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
124
124
|
}[];
|
|
125
125
|
checks: {
|
|
126
126
|
passed: boolean;
|
|
127
|
-
elapsedMs: number;
|
|
128
127
|
kind: string;
|
|
128
|
+
elapsedMs: number;
|
|
129
129
|
actual?: Record<string, string | number | boolean | null> | undefined;
|
|
130
130
|
}[];
|
|
131
131
|
observation: {
|
|
@@ -135,8 +135,8 @@ export declare const browserExecute: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
135
135
|
changes?: string[] | undefined;
|
|
136
136
|
};
|
|
137
137
|
artifacts: {
|
|
138
|
-
path: string;
|
|
139
138
|
id: string;
|
|
139
|
+
path: string;
|
|
140
140
|
mimeType: "image/png";
|
|
141
141
|
}[];
|
|
142
142
|
metrics: {
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
export declare const browserOperate: import("@roll-agent/sdk").ToolDefinition<{
|
|
2
2
|
pageId: string;
|
|
3
|
-
allowedOrigins: string[];
|
|
4
3
|
goal: string;
|
|
5
|
-
values
|
|
4
|
+
values: {
|
|
6
5
|
name: string;
|
|
7
6
|
text: string;
|
|
8
|
-
}[]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
}[];
|
|
8
|
+
delegatedDecisions: string[];
|
|
9
|
+
maxTextCalls: number;
|
|
10
|
+
maxRecoveryDecisions: number;
|
|
11
|
+
allowedOrigins: string[];
|
|
12
|
+
blockedNames: string[];
|
|
13
|
+
strategy: "task" | "fields";
|
|
14
|
+
maxSteps: number;
|
|
15
|
+
timeoutMs: number;
|
|
14
16
|
formTask?: {
|
|
15
17
|
mode: "create" | "edit";
|
|
18
|
+
stopAt: "applied" | "current-view";
|
|
16
19
|
fields: ({
|
|
17
20
|
name: string;
|
|
18
21
|
intent: "set";
|
|
19
22
|
valueName: string;
|
|
20
|
-
comparison
|
|
23
|
+
comparison: "literal" | "auto" | "semantic";
|
|
21
24
|
} | {
|
|
22
25
|
name: string;
|
|
23
26
|
intent: "preserve";
|
|
24
27
|
})[];
|
|
25
|
-
stopAt?: "applied" | "current-view" | undefined;
|
|
26
28
|
} | undefined;
|
|
27
29
|
readTask?: {
|
|
28
30
|
target: string;
|
|
@@ -33,220 +35,218 @@ export declare const browserOperate: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
33
35
|
selectedTab?: string | undefined;
|
|
34
36
|
};
|
|
35
37
|
} | undefined;
|
|
36
|
-
delegatedDecisions?: string[] | undefined;
|
|
37
|
-
maxTextCalls?: number | undefined;
|
|
38
|
-
maxRecoveryDecisions?: number | undefined;
|
|
39
|
-
blockedNames?: string[] | undefined;
|
|
40
38
|
engine?: "jev" | "sampling" | undefined;
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
model?: string | undefined;
|
|
40
|
+
browserActionApproval?: {
|
|
41
|
+
id: string;
|
|
42
|
+
} | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
status: "failed" | "cancelled" | "needs_input" | "model_done" | "interaction_done" | "needs_reasoning" | "blocked" | "step_limit";
|
|
45
|
-
elapsedMs: number;
|
|
46
45
|
verified: false;
|
|
46
|
+
elapsedMs: number;
|
|
47
47
|
steps: {
|
|
48
|
-
executed: boolean;
|
|
49
48
|
step: number;
|
|
50
|
-
provider: string;
|
|
51
|
-
requestedModel: string;
|
|
52
|
-
resolvedModel: string;
|
|
53
|
-
operation: string;
|
|
54
49
|
observationMs: number;
|
|
55
50
|
decisionMs: number;
|
|
56
51
|
actionMs: number;
|
|
52
|
+
operation: string;
|
|
53
|
+
executed: boolean;
|
|
54
|
+
requestedModel: string;
|
|
55
|
+
resolvedModel: string;
|
|
56
|
+
provider: string;
|
|
57
|
+
decisionAttempts?: number | undefined;
|
|
58
|
+
textMs?: number | undefined;
|
|
59
|
+
recovery?: boolean | undefined;
|
|
60
|
+
distributions?: Record<string, {
|
|
61
|
+
probabilities: Record<string, number>;
|
|
62
|
+
confidence?: number | undefined;
|
|
63
|
+
}> | undefined;
|
|
64
|
+
requirement?: string | undefined;
|
|
57
65
|
target?: string | undefined;
|
|
66
|
+
valueName?: string | undefined;
|
|
58
67
|
error?: string | undefined;
|
|
59
68
|
usage?: {
|
|
60
|
-
cost?: number | undefined;
|
|
61
69
|
inputTokens?: number | undefined;
|
|
62
70
|
outputTokens?: number | undefined;
|
|
71
|
+
cost?: number | undefined;
|
|
63
72
|
} | undefined;
|
|
64
|
-
distributions?: Record<string, {
|
|
65
|
-
probabilities: Record<string, number>;
|
|
66
|
-
confidence?: number | undefined;
|
|
67
|
-
}> | undefined;
|
|
68
|
-
valueName?: string | undefined;
|
|
69
|
-
decisionAttempts?: number | undefined;
|
|
70
|
-
textMs?: number | undefined;
|
|
71
|
-
recovery?: boolean | undefined;
|
|
72
|
-
requirement?: string | undefined;
|
|
73
73
|
}[];
|
|
74
|
-
|
|
74
|
+
handoff?: {
|
|
75
|
+
observationFresh: boolean;
|
|
76
|
+
diagnosticsOmitted: true;
|
|
77
|
+
totalSteps: number;
|
|
78
|
+
omittedSteps: number;
|
|
79
|
+
fields: {
|
|
80
|
+
id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
reason: string;
|
|
83
|
+
status: "unknown" | "satisfied" | "unsatisfied";
|
|
84
|
+
intent: "set" | "preserve";
|
|
85
|
+
valueTruncated: boolean;
|
|
86
|
+
expected?: string | undefined;
|
|
87
|
+
current?: string | undefined;
|
|
88
|
+
}[];
|
|
89
|
+
next: string;
|
|
90
|
+
} | undefined;
|
|
75
91
|
progress?: {
|
|
76
|
-
missing: string[];
|
|
77
92
|
taskRunId: string;
|
|
78
93
|
contractDigest: string;
|
|
79
94
|
phase: "collect" | "return" | "done";
|
|
80
95
|
evidence: {
|
|
81
96
|
id: string;
|
|
82
|
-
url: string;
|
|
83
|
-
frameId: string;
|
|
84
|
-
documentId: string;
|
|
85
|
-
text: string;
|
|
86
97
|
field: string;
|
|
87
|
-
|
|
88
|
-
observedAt: string;
|
|
98
|
+
text: string;
|
|
89
99
|
observationId: string;
|
|
100
|
+
documentId: string;
|
|
101
|
+
frameId: string;
|
|
102
|
+
url: string;
|
|
90
103
|
regionId: string;
|
|
91
104
|
regionName: string;
|
|
92
105
|
start: number;
|
|
106
|
+
end: number;
|
|
107
|
+
observedAt: string;
|
|
93
108
|
attribution: "model-selected-observed-text";
|
|
94
109
|
}[];
|
|
95
110
|
invalidatedEvidence: {
|
|
96
111
|
id: string;
|
|
97
|
-
url: string;
|
|
98
|
-
frameId: string;
|
|
99
|
-
documentId: string;
|
|
100
|
-
text: string;
|
|
101
112
|
field: string;
|
|
102
|
-
|
|
103
|
-
observedAt: string;
|
|
113
|
+
text: string;
|
|
104
114
|
observationId: string;
|
|
115
|
+
documentId: string;
|
|
116
|
+
frameId: string;
|
|
117
|
+
url: string;
|
|
105
118
|
regionId: string;
|
|
106
119
|
regionName: string;
|
|
107
120
|
start: number;
|
|
121
|
+
end: number;
|
|
122
|
+
observedAt: string;
|
|
108
123
|
attribution: "model-selected-observed-text";
|
|
109
124
|
}[];
|
|
125
|
+
missing: string[];
|
|
110
126
|
conflicts: number;
|
|
111
127
|
capturedRegion?: {
|
|
112
|
-
|
|
128
|
+
documentId: string;
|
|
129
|
+
frameId: string;
|
|
113
130
|
url: string;
|
|
131
|
+
id: string;
|
|
114
132
|
name: string;
|
|
115
|
-
frameId: string;
|
|
116
|
-
documentId: string;
|
|
117
133
|
digest: string;
|
|
118
134
|
} | undefined;
|
|
119
135
|
} | undefined;
|
|
120
136
|
execution?: {
|
|
137
|
+
invocationId: string;
|
|
138
|
+
revision: number;
|
|
139
|
+
documentChanged: boolean;
|
|
121
140
|
changes: {
|
|
122
|
-
scope: "delegated" | "preserved" | "unassigned";
|
|
123
|
-
kind: "changed" | "became_unknown" | "appeared";
|
|
124
|
-
field: string;
|
|
125
141
|
observationId: string;
|
|
126
142
|
identity: string;
|
|
143
|
+
field: string;
|
|
144
|
+
kind: "changed" | "became_unknown" | "appeared";
|
|
145
|
+
scope: "delegated" | "preserved" | "unassigned";
|
|
127
146
|
before?: string | undefined;
|
|
128
147
|
after?: string | undefined;
|
|
129
148
|
afterAction?: string | undefined;
|
|
130
149
|
}[];
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
150
|
+
latestObservation?: string | undefined;
|
|
151
|
+
focus?: string | undefined;
|
|
152
|
+
lastAction?: {
|
|
153
|
+
operation: string;
|
|
154
|
+
executed: boolean;
|
|
155
|
+
target?: string | undefined;
|
|
156
|
+
error?: string | undefined;
|
|
157
|
+
} | undefined;
|
|
134
158
|
form?: {
|
|
135
159
|
mode: "create" | "edit";
|
|
136
160
|
stopAt: "applied" | "current-view";
|
|
137
161
|
fields: {
|
|
138
|
-
status: "unknown" | "satisfied" | "unsatisfied";
|
|
139
162
|
id: string;
|
|
140
163
|
name: string;
|
|
141
|
-
reason: string;
|
|
142
164
|
intent: "set" | "preserve";
|
|
143
|
-
comparison: "
|
|
165
|
+
comparison: "literal" | "auto" | "semantic";
|
|
166
|
+
status: "unknown" | "satisfied" | "unsatisfied";
|
|
167
|
+
reason: string;
|
|
144
168
|
expected?: string | undefined;
|
|
145
|
-
target?: {
|
|
146
|
-
label: string;
|
|
147
|
-
key: string;
|
|
148
|
-
optionsKey: string;
|
|
149
|
-
} | undefined;
|
|
150
|
-
fingerprint?: string | undefined;
|
|
151
169
|
binding?: {
|
|
152
|
-
role: string;
|
|
153
|
-
name: string;
|
|
154
170
|
identity: string;
|
|
171
|
+
name: string;
|
|
172
|
+
role: string;
|
|
173
|
+
readOnlyDisplay?: true | undefined;
|
|
155
174
|
key?: string | undefined;
|
|
156
175
|
fieldLabel?: string | undefined;
|
|
157
|
-
readOnlyDisplay?: true | undefined;
|
|
158
176
|
} | undefined;
|
|
159
177
|
entry?: {
|
|
160
|
-
role: string;
|
|
161
|
-
name: string;
|
|
162
178
|
identity: string;
|
|
179
|
+
name: string;
|
|
180
|
+
role: string;
|
|
181
|
+
readOnlyDisplay?: true | undefined;
|
|
163
182
|
key?: string | undefined;
|
|
164
183
|
fieldLabel?: string | undefined;
|
|
165
|
-
readOnlyDisplay?: true | undefined;
|
|
166
184
|
} | undefined;
|
|
167
185
|
entryProof?: {
|
|
168
|
-
status: "unknown" | "satisfied" | "unsatisfied";
|
|
169
186
|
fingerprint: string;
|
|
187
|
+
status: "unknown" | "satisfied" | "unsatisfied";
|
|
170
188
|
} | undefined;
|
|
171
189
|
initial?: string | undefined;
|
|
172
190
|
current?: string | undefined;
|
|
191
|
+
fingerprint?: string | undefined;
|
|
192
|
+
target?: {
|
|
193
|
+
key: string;
|
|
194
|
+
label: string;
|
|
195
|
+
optionsKey: string;
|
|
196
|
+
} | undefined;
|
|
173
197
|
semanticProof?: {
|
|
174
|
-
status: "satisfied" | "unsatisfied";
|
|
175
198
|
fingerprint: string;
|
|
199
|
+
status: "satisfied" | "unsatisfied";
|
|
176
200
|
} | undefined;
|
|
177
201
|
}[];
|
|
202
|
+
focus?: string | undefined;
|
|
178
203
|
panel?: {
|
|
179
|
-
status: "pending" | "rejected" | "accepted";
|
|
180
204
|
key: string;
|
|
205
|
+
status: "pending" | "rejected" | "accepted";
|
|
181
206
|
queryIdentity?: string | undefined;
|
|
182
207
|
} | undefined;
|
|
183
|
-
focus?: string | undefined;
|
|
184
|
-
} | undefined;
|
|
185
|
-
focus?: string | undefined;
|
|
186
|
-
latestObservation?: string | undefined;
|
|
187
|
-
lastAction?: {
|
|
188
|
-
executed: boolean;
|
|
189
|
-
operation: string;
|
|
190
|
-
target?: string | undefined;
|
|
191
|
-
error?: string | undefined;
|
|
192
208
|
} | undefined;
|
|
193
209
|
} | undefined;
|
|
194
|
-
|
|
195
|
-
source: "selected" | "supplied" | "derived" | "generated";
|
|
196
|
-
text: string;
|
|
197
|
-
field: string;
|
|
198
|
-
evidence: string;
|
|
199
|
-
sourceIds: string[];
|
|
200
|
-
targetKey?: string | undefined;
|
|
201
|
-
}[] | undefined;
|
|
210
|
+
error?: string | undefined;
|
|
202
211
|
question?: string | undefined;
|
|
203
|
-
handoff?: {
|
|
204
|
-
fields: {
|
|
205
|
-
status: "unknown" | "satisfied" | "unsatisfied";
|
|
206
|
-
id: string;
|
|
207
|
-
name: string;
|
|
208
|
-
reason: string;
|
|
209
|
-
intent: "set" | "preserve";
|
|
210
|
-
valueTruncated: boolean;
|
|
211
|
-
expected?: string | undefined;
|
|
212
|
-
current?: string | undefined;
|
|
213
|
-
}[];
|
|
214
|
-
observationFresh: boolean;
|
|
215
|
-
diagnosticsOmitted: true;
|
|
216
|
-
totalSteps: number;
|
|
217
|
-
omittedSteps: number;
|
|
218
|
-
next: string;
|
|
219
|
-
} | undefined;
|
|
220
212
|
recoveryDecisions?: number | undefined;
|
|
221
213
|
fieldEvidence?: {
|
|
222
|
-
status: "pending" | "preserved" | "applied";
|
|
223
214
|
field: string;
|
|
224
215
|
instruction: string;
|
|
216
|
+
status: "pending" | "preserved" | "applied";
|
|
225
217
|
targetKey: string;
|
|
226
218
|
expected?: string | undefined;
|
|
227
|
-
source?: string | undefined;
|
|
228
219
|
current?: string | undefined;
|
|
220
|
+
source?: string | undefined;
|
|
229
221
|
}[] | undefined;
|
|
230
222
|
pendingRequirements?: string[] | undefined;
|
|
231
223
|
finalObservation?: unknown;
|
|
224
|
+
resolvedValues?: {
|
|
225
|
+
text: string;
|
|
226
|
+
source: "selected" | "supplied" | "derived" | "generated";
|
|
227
|
+
sourceIds: string[];
|
|
228
|
+
evidence: string;
|
|
229
|
+
field: string;
|
|
230
|
+
targetKey?: string | undefined;
|
|
231
|
+
}[] | undefined;
|
|
232
232
|
textCalls?: {
|
|
233
|
-
elapsedMs: number;
|
|
234
233
|
purpose: "preflight" | "resolve_value" | "resolve_batch" | "validate_value" | "validate_batch" | "review_field" | "review" | "clarify";
|
|
234
|
+
elapsedMs: number;
|
|
235
235
|
cached: boolean;
|
|
236
236
|
startedAtMs?: number | undefined;
|
|
237
237
|
endedAtMs?: number | undefined;
|
|
238
238
|
modelCalls?: {
|
|
239
|
-
elapsedMs: number;
|
|
240
239
|
provider: string;
|
|
241
240
|
requestedModel: string;
|
|
242
241
|
resolvedModel: string;
|
|
242
|
+
elapsedMs: number;
|
|
243
|
+
fallback?: boolean | undefined;
|
|
243
244
|
error?: string | undefined;
|
|
244
245
|
usage?: {
|
|
245
|
-
cost?: number | undefined;
|
|
246
246
|
inputTokens?: number | undefined;
|
|
247
247
|
outputTokens?: number | undefined;
|
|
248
|
+
cost?: number | undefined;
|
|
248
249
|
} | undefined;
|
|
249
|
-
fallback?: boolean | undefined;
|
|
250
250
|
}[] | undefined;
|
|
251
251
|
}[] | undefined;
|
|
252
252
|
}>;
|
|
@@ -1,99 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const BrowserElementRefResolveStrategySchema: z.ZodEnum<
|
|
2
|
+
export declare const BrowserElementRefResolveStrategySchema: z.ZodEnum<{
|
|
3
|
+
backend_node_id: "backend_node_id";
|
|
4
|
+
role_name_nth: "role_name_nth";
|
|
5
|
+
}>;
|
|
3
6
|
export declare const BrowserElementRefTargetSchema: z.ZodObject<{
|
|
4
7
|
ref: z.ZodString;
|
|
5
8
|
role: z.ZodString;
|
|
6
9
|
name: z.ZodString;
|
|
7
10
|
x: z.ZodNumber;
|
|
8
11
|
y: z.ZodNumber;
|
|
9
|
-
resolvedBy: z.ZodEnum<
|
|
12
|
+
resolvedBy: z.ZodEnum<{
|
|
13
|
+
backend_node_id: "backend_node_id";
|
|
14
|
+
role_name_nth: "role_name_nth";
|
|
15
|
+
}>;
|
|
10
16
|
backendNodeId: z.ZodOptional<z.ZodNumber>;
|
|
11
17
|
frameId: z.ZodOptional<z.ZodString>;
|
|
12
18
|
disabled: z.ZodBoolean;
|
|
13
|
-
},
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
role: string;
|
|
17
|
-
name: string;
|
|
18
|
-
ref: string;
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
21
|
-
backendNodeId?: number | undefined;
|
|
22
|
-
frameId?: string | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
role: string;
|
|
27
|
-
name: string;
|
|
28
|
-
ref: string;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
31
|
-
backendNodeId?: number | undefined;
|
|
32
|
-
frameId?: string | undefined;
|
|
33
|
-
}>;
|
|
19
|
+
}, z.core.$strip>;
|
|
34
20
|
export declare const BrowserElementRefActionOutputSchema: z.ZodObject<{
|
|
35
21
|
success: z.ZodLiteral<true>;
|
|
36
22
|
ref: z.ZodString;
|
|
37
|
-
resolvedBy: z.ZodEnum<
|
|
23
|
+
resolvedBy: z.ZodEnum<{
|
|
24
|
+
backend_node_id: "backend_node_id";
|
|
25
|
+
role_name_nth: "role_name_nth";
|
|
26
|
+
}>;
|
|
38
27
|
target: z.ZodObject<{
|
|
39
28
|
ref: z.ZodString;
|
|
40
29
|
role: z.ZodString;
|
|
41
30
|
name: z.ZodString;
|
|
42
31
|
x: z.ZodNumber;
|
|
43
32
|
y: z.ZodNumber;
|
|
44
|
-
resolvedBy: z.ZodEnum<
|
|
33
|
+
resolvedBy: z.ZodEnum<{
|
|
34
|
+
backend_node_id: "backend_node_id";
|
|
35
|
+
role_name_nth: "role_name_nth";
|
|
36
|
+
}>;
|
|
45
37
|
backendNodeId: z.ZodOptional<z.ZodNumber>;
|
|
46
38
|
frameId: z.ZodOptional<z.ZodString>;
|
|
47
39
|
disabled: z.ZodBoolean;
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
y: number;
|
|
51
|
-
role: string;
|
|
52
|
-
name: string;
|
|
53
|
-
ref: string;
|
|
54
|
-
disabled: boolean;
|
|
55
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
56
|
-
backendNodeId?: number | undefined;
|
|
57
|
-
frameId?: string | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
x: number;
|
|
60
|
-
y: number;
|
|
61
|
-
role: string;
|
|
62
|
-
name: string;
|
|
63
|
-
ref: string;
|
|
64
|
-
disabled: boolean;
|
|
65
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
66
|
-
backendNodeId?: number | undefined;
|
|
67
|
-
frameId?: string | undefined;
|
|
68
|
-
}>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
ref: string;
|
|
71
|
-
target: {
|
|
72
|
-
x: number;
|
|
73
|
-
y: number;
|
|
74
|
-
role: string;
|
|
75
|
-
name: string;
|
|
76
|
-
ref: string;
|
|
77
|
-
disabled: boolean;
|
|
78
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
79
|
-
backendNodeId?: number | undefined;
|
|
80
|
-
frameId?: string | undefined;
|
|
81
|
-
};
|
|
82
|
-
success: true;
|
|
83
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
84
|
-
}, {
|
|
85
|
-
ref: string;
|
|
86
|
-
target: {
|
|
87
|
-
x: number;
|
|
88
|
-
y: number;
|
|
89
|
-
role: string;
|
|
90
|
-
name: string;
|
|
91
|
-
ref: string;
|
|
92
|
-
disabled: boolean;
|
|
93
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
94
|
-
backendNodeId?: number | undefined;
|
|
95
|
-
frameId?: string | undefined;
|
|
96
|
-
};
|
|
97
|
-
success: true;
|
|
98
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
99
|
-
}>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
}, z.core.$strip>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const browserSnapshot: import("@roll-agent/sdk").ToolDefinition<{
|
|
2
|
-
|
|
2
|
+
interactiveOnly: boolean;
|
|
3
3
|
scope?: string | undefined;
|
|
4
|
-
|
|
5
|
-
interactiveOnly?: boolean | undefined;
|
|
4
|
+
pageId?: string | undefined;
|
|
6
5
|
maxDepth?: number | undefined;
|
|
6
|
+
maxNodes?: number | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
page: {
|
|
9
9
|
pageId: string;
|
|
@@ -14,12 +14,11 @@ export declare const browserSnapshot: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
14
14
|
isSelectedForPlatform: boolean;
|
|
15
15
|
};
|
|
16
16
|
snapshot: {
|
|
17
|
-
truncated: boolean;
|
|
18
17
|
nodes: import("@roll-agent/browser").BrowserAxNode[];
|
|
19
18
|
refs: {
|
|
19
|
+
ref: string;
|
|
20
20
|
role: string;
|
|
21
21
|
name: string;
|
|
22
|
-
ref: string;
|
|
23
22
|
nth: number;
|
|
24
23
|
disabled: boolean;
|
|
25
24
|
backendNodeId?: number | undefined;
|
|
@@ -39,13 +38,14 @@ export declare const browserSnapshot: import("@roll-agent/sdk").ToolDefinition<{
|
|
|
39
38
|
strict?: boolean | undefined;
|
|
40
39
|
}[];
|
|
41
40
|
nodeCount: number;
|
|
41
|
+
truncated: boolean;
|
|
42
42
|
maxNodes: number;
|
|
43
43
|
interactiveOnly: boolean;
|
|
44
|
+
snapshotId?: string | undefined;
|
|
44
45
|
browserInstance?: string | undefined;
|
|
45
46
|
pageId?: string | undefined;
|
|
46
|
-
scope?: string | undefined;
|
|
47
|
-
snapshotId?: string | undefined;
|
|
48
47
|
documentId?: string | undefined;
|
|
48
|
+
scope?: string | undefined;
|
|
49
49
|
coverageWarnings?: string[] | undefined;
|
|
50
50
|
maxDepth?: number | undefined;
|
|
51
51
|
};
|