@roll-agent/browser-use-agent 0.27.2 → 0.27.4
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
|
@@ -10,35 +10,32 @@ export declare const PreparedReplyFallbackReasons: {
|
|
|
10
10
|
readonly JUDGE_OUTPUT_INVALID: "judge_output_invalid";
|
|
11
11
|
};
|
|
12
12
|
export declare const PreparedReplyVariantDecisionSchema: z.ZodObject<{
|
|
13
|
-
chosenOption: z.ZodEnum<
|
|
13
|
+
chosenOption: z.ZodEnum<{
|
|
14
|
+
option_1: "option_1";
|
|
15
|
+
option_2: "option_2";
|
|
16
|
+
}>;
|
|
14
17
|
reason: z.ZodString;
|
|
15
|
-
confirmedFindingCodes: z.ZodOptional<z.
|
|
18
|
+
confirmedFindingCodes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
19
|
+
too_many_questions: "too_many_questions";
|
|
20
|
+
audit_tone: "audit_tone";
|
|
21
|
+
reply_overpacked: "reply_overpacked";
|
|
22
|
+
off_axis_fact_disclosure: "off_axis_fact_disclosure";
|
|
23
|
+
}>>>;
|
|
16
24
|
judgeModel: z.ZodOptional<z.ZodString>;
|
|
17
|
-
},
|
|
18
|
-
reason: string;
|
|
19
|
-
chosenOption: "option_1" | "option_2";
|
|
20
|
-
confirmedFindingCodes?: ("too_many_questions" | "audit_tone" | "reply_overpacked" | "off_axis_fact_disclosure")[] | undefined;
|
|
21
|
-
judgeModel?: string | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
reason: string;
|
|
24
|
-
chosenOption: "option_1" | "option_2";
|
|
25
|
-
confirmedFindingCodes?: ("too_many_questions" | "audit_tone" | "reply_overpacked" | "off_axis_fact_disclosure")[] | undefined;
|
|
26
|
-
judgeModel?: string | undefined;
|
|
27
|
-
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
28
26
|
export declare const JudgeModelOutputSchema: z.ZodObject<{
|
|
29
27
|
reason: z.ZodString;
|
|
30
|
-
chosenOption: z.ZodEnum<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}>;
|
|
28
|
+
chosenOption: z.ZodEnum<{
|
|
29
|
+
option_1: "option_1";
|
|
30
|
+
option_2: "option_2";
|
|
31
|
+
}>;
|
|
32
|
+
confirmedFindingCodes: z.ZodArray<z.ZodEnum<{
|
|
33
|
+
too_many_questions: "too_many_questions";
|
|
34
|
+
audit_tone: "audit_tone";
|
|
35
|
+
reply_overpacked: "reply_overpacked";
|
|
36
|
+
off_axis_fact_disclosure: "off_axis_fact_disclosure";
|
|
37
|
+
}>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
42
39
|
export type PreparedReplyOption = (typeof PreparedReplyOptionValues)[number];
|
|
43
40
|
export type PreparedReplyDecisionSource = (typeof PreparedReplyDecisionSourceValues)[number];
|
|
44
41
|
export type PreparedReplySendDecisionSource = (typeof PreparedReplySendDecisionSourceValues)[number];
|
|
@@ -2,74 +2,19 @@ import { type GenerateReplyToolInput } from "@roll-agent/reply-authority-client"
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const PreparedReplyJudgeContextSchema: z.ZodObject<{
|
|
4
4
|
candidateMessage: z.ZodString;
|
|
5
|
-
recentConversation: z.ZodArray<z.ZodString
|
|
6
|
-
candidateInfo: z.ZodOptional<z.ZodObject<
|
|
7
|
-
|
|
8
|
-
position: z.ZodOptional<z.ZodString>;
|
|
9
|
-
expectedPosition: z.ZodOptional<z.ZodString>;
|
|
10
|
-
communicationPosition: z.ZodOptional<z.ZodString>;
|
|
11
|
-
age: z.ZodOptional<z.ZodString>;
|
|
12
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
5
|
+
recentConversation: z.ZodArray<z.ZodString>;
|
|
6
|
+
candidateInfo: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
info: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
8
|
experience: z.ZodOptional<z.ZodString>;
|
|
9
|
+
age: z.ZodOptional<z.ZodString>;
|
|
14
10
|
education: z.ZodOptional<z.ZodString>;
|
|
15
|
-
expectedSalary: z.ZodOptional<z.ZodString>;
|
|
16
11
|
expectedLocation: z.ZodOptional<z.ZodString>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
activeTime: z.ZodOptional<z.ZodString>;
|
|
22
|
-
info: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23
|
-
fullText: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, "info" | "experience" | "age" | "education" | "expectedLocation" | "expectedPosition" | "expectedSalary" | "communicationPosition">, "strip", z.ZodTypeAny, {
|
|
25
|
-
info?: string[] | undefined;
|
|
26
|
-
experience?: string | undefined;
|
|
27
|
-
age?: string | undefined;
|
|
28
|
-
education?: string | undefined;
|
|
29
|
-
expectedLocation?: string | undefined;
|
|
30
|
-
expectedPosition?: string | undefined;
|
|
31
|
-
expectedSalary?: string | undefined;
|
|
32
|
-
communicationPosition?: string | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
info?: string[] | undefined;
|
|
35
|
-
experience?: string | undefined;
|
|
36
|
-
age?: string | undefined;
|
|
37
|
-
education?: string | undefined;
|
|
38
|
-
expectedLocation?: string | undefined;
|
|
39
|
-
expectedPosition?: string | undefined;
|
|
40
|
-
expectedSalary?: string | undefined;
|
|
41
|
-
communicationPosition?: string | undefined;
|
|
42
|
-
}>>;
|
|
12
|
+
expectedPosition: z.ZodOptional<z.ZodString>;
|
|
13
|
+
expectedSalary: z.ZodOptional<z.ZodString>;
|
|
14
|
+
communicationPosition: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
43
16
|
preferredBrand: z.ZodOptional<z.ZodString>;
|
|
44
|
-
},
|
|
45
|
-
candidateMessage: string;
|
|
46
|
-
recentConversation: string[];
|
|
47
|
-
candidateInfo?: {
|
|
48
|
-
info?: string[] | undefined;
|
|
49
|
-
experience?: string | undefined;
|
|
50
|
-
age?: string | undefined;
|
|
51
|
-
education?: string | undefined;
|
|
52
|
-
expectedLocation?: string | undefined;
|
|
53
|
-
expectedPosition?: string | undefined;
|
|
54
|
-
expectedSalary?: string | undefined;
|
|
55
|
-
communicationPosition?: string | undefined;
|
|
56
|
-
} | undefined;
|
|
57
|
-
preferredBrand?: string | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
candidateMessage: string;
|
|
60
|
-
recentConversation: string[];
|
|
61
|
-
candidateInfo?: {
|
|
62
|
-
info?: string[] | undefined;
|
|
63
|
-
experience?: string | undefined;
|
|
64
|
-
age?: string | undefined;
|
|
65
|
-
education?: string | undefined;
|
|
66
|
-
expectedLocation?: string | undefined;
|
|
67
|
-
expectedPosition?: string | undefined;
|
|
68
|
-
expectedSalary?: string | undefined;
|
|
69
|
-
communicationPosition?: string | undefined;
|
|
70
|
-
} | undefined;
|
|
71
|
-
preferredBrand?: string | undefined;
|
|
72
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
73
18
|
export type PreparedReplyJudgeContext = z.infer<typeof PreparedReplyJudgeContextSchema>;
|
|
74
19
|
export declare function redactPreparedReplyJudgeText(value: string): string;
|
|
75
20
|
export declare function buildPreparedReplyJudgeContext(input: GenerateReplyToolInput): PreparedReplyJudgeContext;
|
|
@@ -7,15 +7,7 @@ export declare const RecruiterBindingSchema: z.ZodObject<{
|
|
|
7
7
|
platform: z.ZodLiteral<"zhipin">;
|
|
8
8
|
username: z.ZodString;
|
|
9
9
|
accountId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
},
|
|
11
|
-
platform: "zhipin";
|
|
12
|
-
username: string;
|
|
13
|
-
accountId?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
platform: "zhipin";
|
|
16
|
-
username: string;
|
|
17
|
-
accountId?: string | undefined;
|
|
18
|
-
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
19
11
|
export declare const ReplyAuthorityEnvelopePayloadSchema: z.ZodObject<{
|
|
20
12
|
v: z.ZodLiteral<2>;
|
|
21
13
|
iss: z.ZodLiteral<"reply-authority-service">;
|
|
@@ -34,73 +26,15 @@ export declare const ReplyAuthorityEnvelopePayloadSchema: z.ZodObject<{
|
|
|
34
26
|
platform: z.ZodLiteral<"zhipin">;
|
|
35
27
|
username: z.ZodString;
|
|
36
28
|
accountId: z.ZodOptional<z.ZodString>;
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
username: string;
|
|
40
|
-
accountId?: string | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
platform: "zhipin";
|
|
43
|
-
username: string;
|
|
44
|
-
accountId?: string | undefined;
|
|
45
|
-
}>;
|
|
46
|
-
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
platform: "zhipin";
|
|
48
|
-
reply: string;
|
|
49
|
-
conversationId: string;
|
|
50
|
-
candidateId: string;
|
|
51
|
-
tenantId: string;
|
|
52
|
-
recruiterBinding: {
|
|
53
|
-
platform: "zhipin";
|
|
54
|
-
username: string;
|
|
55
|
-
accountId?: string | undefined;
|
|
56
|
-
};
|
|
57
|
-
v: 2;
|
|
58
|
-
iss: "reply-authority-service";
|
|
59
|
-
kid: string;
|
|
60
|
-
jti: string;
|
|
61
|
-
iat: number;
|
|
62
|
-
exp: number;
|
|
63
|
-
aud: "browser-use-agent/zhipin_send_reply";
|
|
64
|
-
policyVersion: string;
|
|
65
|
-
}, {
|
|
66
|
-
platform: "zhipin";
|
|
67
|
-
reply: string;
|
|
68
|
-
conversationId: string;
|
|
69
|
-
candidateId: string;
|
|
70
|
-
tenantId: string;
|
|
71
|
-
recruiterBinding: {
|
|
72
|
-
platform: "zhipin";
|
|
73
|
-
username: string;
|
|
74
|
-
accountId?: string | undefined;
|
|
75
|
-
};
|
|
76
|
-
v: 2;
|
|
77
|
-
iss: "reply-authority-service";
|
|
78
|
-
kid: string;
|
|
79
|
-
jti: string;
|
|
80
|
-
iat: number;
|
|
81
|
-
exp: number;
|
|
82
|
-
aud: "browser-use-agent/zhipin_send_reply";
|
|
83
|
-
policyVersion: string;
|
|
84
|
-
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
85
31
|
export declare const ReplyAuthorityPublicKeySchema: z.ZodObject<{
|
|
86
32
|
kid: z.ZodString;
|
|
87
33
|
algorithm: z.ZodLiteral<"Ed25519">;
|
|
88
34
|
publicKey: z.ZodString;
|
|
89
35
|
validFrom: z.ZodString;
|
|
90
36
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
91
|
-
},
|
|
92
|
-
kid: string;
|
|
93
|
-
algorithm: "Ed25519";
|
|
94
|
-
publicKey: string;
|
|
95
|
-
validFrom: string;
|
|
96
|
-
validUntil?: string | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
kid: string;
|
|
99
|
-
algorithm: "Ed25519";
|
|
100
|
-
publicKey: string;
|
|
101
|
-
validFrom: string;
|
|
102
|
-
validUntil?: string | undefined;
|
|
103
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
104
38
|
export declare const ReplyAuthorityPublicKeysResponseSchema: z.ZodObject<{
|
|
105
39
|
keys: z.ZodArray<z.ZodObject<{
|
|
106
40
|
kid: z.ZodString;
|
|
@@ -108,36 +42,8 @@ export declare const ReplyAuthorityPublicKeysResponseSchema: z.ZodObject<{
|
|
|
108
42
|
publicKey: z.ZodString;
|
|
109
43
|
validFrom: z.ZodString;
|
|
110
44
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
algorithm: "Ed25519";
|
|
114
|
-
publicKey: string;
|
|
115
|
-
validFrom: string;
|
|
116
|
-
validUntil?: string | undefined;
|
|
117
|
-
}, {
|
|
118
|
-
kid: string;
|
|
119
|
-
algorithm: "Ed25519";
|
|
120
|
-
publicKey: string;
|
|
121
|
-
validFrom: string;
|
|
122
|
-
validUntil?: string | undefined;
|
|
123
|
-
}>, "many">;
|
|
124
|
-
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
keys: {
|
|
126
|
-
kid: string;
|
|
127
|
-
algorithm: "Ed25519";
|
|
128
|
-
publicKey: string;
|
|
129
|
-
validFrom: string;
|
|
130
|
-
validUntil?: string | undefined;
|
|
131
|
-
}[];
|
|
132
|
-
}, {
|
|
133
|
-
keys: {
|
|
134
|
-
kid: string;
|
|
135
|
-
algorithm: "Ed25519";
|
|
136
|
-
publicKey: string;
|
|
137
|
-
validFrom: string;
|
|
138
|
-
validUntil?: string | undefined;
|
|
139
|
-
}[];
|
|
140
|
-
}>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
141
47
|
export type ReplyAuthorityEnvelopePayload = z.infer<typeof ReplyAuthorityEnvelopePayloadSchema>;
|
|
142
48
|
export type ReplyAuthorityPublicKey = z.infer<typeof ReplyAuthorityPublicKeySchema>;
|
|
143
49
|
export type RecruiterBinding = z.infer<typeof RecruiterBindingSchema>;
|
package/dist/runtime-config.d.ts
CHANGED
|
@@ -1,336 +1,74 @@
|
|
|
1
1
|
import type { BrowserRuntimeConfig } from "@roll-agent/browser";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
export declare const BrowserInstanceConfigSchema: z.
|
|
4
|
-
platform: z.ZodOptional<z.ZodEnum<
|
|
5
|
-
|
|
3
|
+
export declare const BrowserInstanceConfigSchema: z.ZodObject<{
|
|
4
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
5
|
+
zhipin: "zhipin";
|
|
6
|
+
yupao: "yupao";
|
|
7
|
+
}>>;
|
|
8
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
9
|
+
"managed-cdp": "managed-cdp";
|
|
10
|
+
"remote-cdp": "remote-cdp";
|
|
11
|
+
"existing-session": "existing-session";
|
|
12
|
+
}>>;
|
|
6
13
|
headless: z.ZodOptional<z.ZodBoolean>;
|
|
7
14
|
cdpUrl: z.ZodOptional<z.ZodString>;
|
|
8
15
|
cdpHost: z.ZodDefault<z.ZodString>;
|
|
9
16
|
cdpPort: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
channel: z.ZodDefault<z.ZodEnum<
|
|
17
|
+
channel: z.ZodDefault<z.ZodEnum<{
|
|
18
|
+
chrome: "chrome";
|
|
19
|
+
chromium: "chromium";
|
|
20
|
+
msedge: "msedge";
|
|
21
|
+
}>>;
|
|
11
22
|
executablePath: z.ZodOptional<z.ZodString>;
|
|
12
23
|
userDataDir: z.ZodString;
|
|
13
24
|
sessionsDir: z.ZodOptional<z.ZodString>;
|
|
14
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString
|
|
25
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
26
|
profileName: z.ZodOptional<z.ZodString>;
|
|
16
|
-
profileColor: z.ZodOptional<z.
|
|
27
|
+
profileColor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
17
28
|
windowBounds: z.ZodOptional<z.ZodObject<{
|
|
18
29
|
x: z.ZodOptional<z.ZodNumber>;
|
|
19
30
|
y: z.ZodOptional<z.ZodNumber>;
|
|
20
31
|
width: z.ZodOptional<z.ZodNumber>;
|
|
21
32
|
height: z.ZodOptional<z.ZodNumber>;
|
|
22
|
-
},
|
|
23
|
-
x?: number | undefined;
|
|
24
|
-
y?: number | undefined;
|
|
25
|
-
width?: number | undefined;
|
|
26
|
-
height?: number | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
x?: number | undefined;
|
|
29
|
-
y?: number | undefined;
|
|
30
|
-
width?: number | undefined;
|
|
31
|
-
height?: number | undefined;
|
|
32
|
-
}>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
33
34
|
trackingAgentId: z.ZodOptional<z.ZodString>;
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
cdpHost: string;
|
|
37
|
-
channel: "chrome" | "chromium" | "msedge";
|
|
38
|
-
userDataDir: string;
|
|
39
|
-
headless?: boolean | undefined;
|
|
40
|
-
profileName?: string | undefined;
|
|
41
|
-
profileColor?: string | undefined;
|
|
42
|
-
cdpUrl?: string | undefined;
|
|
43
|
-
cdpPort?: number | undefined;
|
|
44
|
-
executablePath?: string | undefined;
|
|
45
|
-
args?: string[] | undefined;
|
|
46
|
-
windowBounds?: {
|
|
47
|
-
x?: number | undefined;
|
|
48
|
-
y?: number | undefined;
|
|
49
|
-
width?: number | undefined;
|
|
50
|
-
height?: number | undefined;
|
|
51
|
-
} | undefined;
|
|
52
|
-
sessionsDir?: string | undefined;
|
|
53
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
54
|
-
trackingAgentId?: string | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
userDataDir: string;
|
|
57
|
-
mode?: "managed-cdp" | "remote-cdp" | "existing-session" | undefined;
|
|
58
|
-
headless?: boolean | undefined;
|
|
59
|
-
profileName?: string | undefined;
|
|
60
|
-
profileColor?: string | undefined;
|
|
61
|
-
cdpUrl?: string | undefined;
|
|
62
|
-
cdpHost?: string | undefined;
|
|
63
|
-
cdpPort?: number | undefined;
|
|
64
|
-
channel?: "chrome" | "chromium" | "msedge" | undefined;
|
|
65
|
-
executablePath?: string | undefined;
|
|
66
|
-
args?: string[] | undefined;
|
|
67
|
-
windowBounds?: {
|
|
68
|
-
x?: number | undefined;
|
|
69
|
-
y?: number | undefined;
|
|
70
|
-
width?: number | undefined;
|
|
71
|
-
height?: number | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
sessionsDir?: string | undefined;
|
|
74
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
75
|
-
trackingAgentId?: string | undefined;
|
|
76
|
-
}>, {
|
|
77
|
-
mode: "managed-cdp" | "remote-cdp" | "existing-session";
|
|
78
|
-
cdpHost: string;
|
|
79
|
-
channel: "chrome" | "chromium" | "msedge";
|
|
80
|
-
userDataDir: string;
|
|
81
|
-
headless?: boolean | undefined;
|
|
82
|
-
profileName?: string | undefined;
|
|
83
|
-
profileColor?: string | undefined;
|
|
84
|
-
cdpUrl?: string | undefined;
|
|
85
|
-
cdpPort?: number | undefined;
|
|
86
|
-
executablePath?: string | undefined;
|
|
87
|
-
args?: string[] | undefined;
|
|
88
|
-
windowBounds?: {
|
|
89
|
-
x?: number | undefined;
|
|
90
|
-
y?: number | undefined;
|
|
91
|
-
width?: number | undefined;
|
|
92
|
-
height?: number | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
sessionsDir?: string | undefined;
|
|
95
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
96
|
-
trackingAgentId?: string | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
userDataDir: string;
|
|
99
|
-
mode?: "managed-cdp" | "remote-cdp" | "existing-session" | undefined;
|
|
100
|
-
headless?: boolean | undefined;
|
|
101
|
-
profileName?: string | undefined;
|
|
102
|
-
profileColor?: string | undefined;
|
|
103
|
-
cdpUrl?: string | undefined;
|
|
104
|
-
cdpHost?: string | undefined;
|
|
105
|
-
cdpPort?: number | undefined;
|
|
106
|
-
channel?: "chrome" | "chromium" | "msedge" | undefined;
|
|
107
|
-
executablePath?: string | undefined;
|
|
108
|
-
args?: string[] | undefined;
|
|
109
|
-
windowBounds?: {
|
|
110
|
-
x?: number | undefined;
|
|
111
|
-
y?: number | undefined;
|
|
112
|
-
width?: number | undefined;
|
|
113
|
-
height?: number | undefined;
|
|
114
|
-
} | undefined;
|
|
115
|
-
sessionsDir?: string | undefined;
|
|
116
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
117
|
-
trackingAgentId?: string | undefined;
|
|
118
|
-
}>;
|
|
119
|
-
export declare const BrowserInstancesConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const BrowserInstancesConfigSchema: z.ZodObject<{
|
|
120
37
|
defaultInstance: z.ZodOptional<z.ZodString>;
|
|
121
|
-
instances: z.ZodDefault<z.ZodRecord<z.ZodString, z.
|
|
122
|
-
platform: z.ZodOptional<z.ZodEnum<
|
|
123
|
-
|
|
38
|
+
instances: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
39
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
zhipin: "zhipin";
|
|
41
|
+
yupao: "yupao";
|
|
42
|
+
}>>;
|
|
43
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
44
|
+
"managed-cdp": "managed-cdp";
|
|
45
|
+
"remote-cdp": "remote-cdp";
|
|
46
|
+
"existing-session": "existing-session";
|
|
47
|
+
}>>;
|
|
124
48
|
headless: z.ZodOptional<z.ZodBoolean>;
|
|
125
49
|
cdpUrl: z.ZodOptional<z.ZodString>;
|
|
126
50
|
cdpHost: z.ZodDefault<z.ZodString>;
|
|
127
51
|
cdpPort: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
channel: z.ZodDefault<z.ZodEnum<
|
|
52
|
+
channel: z.ZodDefault<z.ZodEnum<{
|
|
53
|
+
chrome: "chrome";
|
|
54
|
+
chromium: "chromium";
|
|
55
|
+
msedge: "msedge";
|
|
56
|
+
}>>;
|
|
129
57
|
executablePath: z.ZodOptional<z.ZodString>;
|
|
130
58
|
userDataDir: z.ZodString;
|
|
131
59
|
sessionsDir: z.ZodOptional<z.ZodString>;
|
|
132
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString
|
|
60
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
133
61
|
profileName: z.ZodOptional<z.ZodString>;
|
|
134
|
-
profileColor: z.ZodOptional<z.
|
|
62
|
+
profileColor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
135
63
|
windowBounds: z.ZodOptional<z.ZodObject<{
|
|
136
64
|
x: z.ZodOptional<z.ZodNumber>;
|
|
137
65
|
y: z.ZodOptional<z.ZodNumber>;
|
|
138
66
|
width: z.ZodOptional<z.ZodNumber>;
|
|
139
67
|
height: z.ZodOptional<z.ZodNumber>;
|
|
140
|
-
},
|
|
141
|
-
x?: number | undefined;
|
|
142
|
-
y?: number | undefined;
|
|
143
|
-
width?: number | undefined;
|
|
144
|
-
height?: number | undefined;
|
|
145
|
-
}, {
|
|
146
|
-
x?: number | undefined;
|
|
147
|
-
y?: number | undefined;
|
|
148
|
-
width?: number | undefined;
|
|
149
|
-
height?: number | undefined;
|
|
150
|
-
}>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
151
69
|
trackingAgentId: z.ZodOptional<z.ZodString>;
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
cdpHost: string;
|
|
155
|
-
channel: "chrome" | "chromium" | "msedge";
|
|
156
|
-
userDataDir: string;
|
|
157
|
-
headless?: boolean | undefined;
|
|
158
|
-
profileName?: string | undefined;
|
|
159
|
-
profileColor?: string | undefined;
|
|
160
|
-
cdpUrl?: string | undefined;
|
|
161
|
-
cdpPort?: number | undefined;
|
|
162
|
-
executablePath?: string | undefined;
|
|
163
|
-
args?: string[] | undefined;
|
|
164
|
-
windowBounds?: {
|
|
165
|
-
x?: number | undefined;
|
|
166
|
-
y?: number | undefined;
|
|
167
|
-
width?: number | undefined;
|
|
168
|
-
height?: number | undefined;
|
|
169
|
-
} | undefined;
|
|
170
|
-
sessionsDir?: string | undefined;
|
|
171
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
172
|
-
trackingAgentId?: string | undefined;
|
|
173
|
-
}, {
|
|
174
|
-
userDataDir: string;
|
|
175
|
-
mode?: "managed-cdp" | "remote-cdp" | "existing-session" | undefined;
|
|
176
|
-
headless?: boolean | undefined;
|
|
177
|
-
profileName?: string | undefined;
|
|
178
|
-
profileColor?: string | undefined;
|
|
179
|
-
cdpUrl?: string | undefined;
|
|
180
|
-
cdpHost?: string | undefined;
|
|
181
|
-
cdpPort?: number | undefined;
|
|
182
|
-
channel?: "chrome" | "chromium" | "msedge" | undefined;
|
|
183
|
-
executablePath?: string | undefined;
|
|
184
|
-
args?: string[] | undefined;
|
|
185
|
-
windowBounds?: {
|
|
186
|
-
x?: number | undefined;
|
|
187
|
-
y?: number | undefined;
|
|
188
|
-
width?: number | undefined;
|
|
189
|
-
height?: number | undefined;
|
|
190
|
-
} | undefined;
|
|
191
|
-
sessionsDir?: string | undefined;
|
|
192
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
193
|
-
trackingAgentId?: string | undefined;
|
|
194
|
-
}>, {
|
|
195
|
-
mode: "managed-cdp" | "remote-cdp" | "existing-session";
|
|
196
|
-
cdpHost: string;
|
|
197
|
-
channel: "chrome" | "chromium" | "msedge";
|
|
198
|
-
userDataDir: string;
|
|
199
|
-
headless?: boolean | undefined;
|
|
200
|
-
profileName?: string | undefined;
|
|
201
|
-
profileColor?: string | undefined;
|
|
202
|
-
cdpUrl?: string | undefined;
|
|
203
|
-
cdpPort?: number | undefined;
|
|
204
|
-
executablePath?: string | undefined;
|
|
205
|
-
args?: string[] | undefined;
|
|
206
|
-
windowBounds?: {
|
|
207
|
-
x?: number | undefined;
|
|
208
|
-
y?: number | undefined;
|
|
209
|
-
width?: number | undefined;
|
|
210
|
-
height?: number | undefined;
|
|
211
|
-
} | undefined;
|
|
212
|
-
sessionsDir?: string | undefined;
|
|
213
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
214
|
-
trackingAgentId?: string | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
userDataDir: string;
|
|
217
|
-
mode?: "managed-cdp" | "remote-cdp" | "existing-session" | undefined;
|
|
218
|
-
headless?: boolean | undefined;
|
|
219
|
-
profileName?: string | undefined;
|
|
220
|
-
profileColor?: string | undefined;
|
|
221
|
-
cdpUrl?: string | undefined;
|
|
222
|
-
cdpHost?: string | undefined;
|
|
223
|
-
cdpPort?: number | undefined;
|
|
224
|
-
channel?: "chrome" | "chromium" | "msedge" | undefined;
|
|
225
|
-
executablePath?: string | undefined;
|
|
226
|
-
args?: string[] | undefined;
|
|
227
|
-
windowBounds?: {
|
|
228
|
-
x?: number | undefined;
|
|
229
|
-
y?: number | undefined;
|
|
230
|
-
width?: number | undefined;
|
|
231
|
-
height?: number | undefined;
|
|
232
|
-
} | undefined;
|
|
233
|
-
sessionsDir?: string | undefined;
|
|
234
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
235
|
-
trackingAgentId?: string | undefined;
|
|
236
|
-
}>>>;
|
|
237
|
-
}, "strip", z.ZodTypeAny, {
|
|
238
|
-
instances: Record<string, {
|
|
239
|
-
mode: "managed-cdp" | "remote-cdp" | "existing-session";
|
|
240
|
-
cdpHost: string;
|
|
241
|
-
channel: "chrome" | "chromium" | "msedge";
|
|
242
|
-
userDataDir: string;
|
|
243
|
-
headless?: boolean | undefined;
|
|
244
|
-
profileName?: string | undefined;
|
|
245
|
-
profileColor?: string | undefined;
|
|
246
|
-
cdpUrl?: string | undefined;
|
|
247
|
-
cdpPort?: number | undefined;
|
|
248
|
-
executablePath?: string | undefined;
|
|
249
|
-
args?: string[] | undefined;
|
|
250
|
-
windowBounds?: {
|
|
251
|
-
x?: number | undefined;
|
|
252
|
-
y?: number | undefined;
|
|
253
|
-
width?: number | undefined;
|
|
254
|
-
height?: number | undefined;
|
|
255
|
-
} | undefined;
|
|
256
|
-
sessionsDir?: string | undefined;
|
|
257
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
258
|
-
trackingAgentId?: string | undefined;
|
|
259
|
-
}>;
|
|
260
|
-
defaultInstance?: string | undefined;
|
|
261
|
-
}, {
|
|
262
|
-
instances?: Record<string, {
|
|
263
|
-
userDataDir: string;
|
|
264
|
-
mode?: "managed-cdp" | "remote-cdp" | "existing-session" | undefined;
|
|
265
|
-
headless?: boolean | undefined;
|
|
266
|
-
profileName?: string | undefined;
|
|
267
|
-
profileColor?: string | undefined;
|
|
268
|
-
cdpUrl?: string | undefined;
|
|
269
|
-
cdpHost?: string | undefined;
|
|
270
|
-
cdpPort?: number | undefined;
|
|
271
|
-
channel?: "chrome" | "chromium" | "msedge" | undefined;
|
|
272
|
-
executablePath?: string | undefined;
|
|
273
|
-
args?: string[] | undefined;
|
|
274
|
-
windowBounds?: {
|
|
275
|
-
x?: number | undefined;
|
|
276
|
-
y?: number | undefined;
|
|
277
|
-
width?: number | undefined;
|
|
278
|
-
height?: number | undefined;
|
|
279
|
-
} | undefined;
|
|
280
|
-
sessionsDir?: string | undefined;
|
|
281
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
282
|
-
trackingAgentId?: string | undefined;
|
|
283
|
-
}> | undefined;
|
|
284
|
-
defaultInstance?: string | undefined;
|
|
285
|
-
}>, {
|
|
286
|
-
instances: Record<string, {
|
|
287
|
-
mode: "managed-cdp" | "remote-cdp" | "existing-session";
|
|
288
|
-
cdpHost: string;
|
|
289
|
-
channel: "chrome" | "chromium" | "msedge";
|
|
290
|
-
userDataDir: string;
|
|
291
|
-
headless?: boolean | undefined;
|
|
292
|
-
profileName?: string | undefined;
|
|
293
|
-
profileColor?: string | undefined;
|
|
294
|
-
cdpUrl?: string | undefined;
|
|
295
|
-
cdpPort?: number | undefined;
|
|
296
|
-
executablePath?: string | undefined;
|
|
297
|
-
args?: string[] | undefined;
|
|
298
|
-
windowBounds?: {
|
|
299
|
-
x?: number | undefined;
|
|
300
|
-
y?: number | undefined;
|
|
301
|
-
width?: number | undefined;
|
|
302
|
-
height?: number | undefined;
|
|
303
|
-
} | undefined;
|
|
304
|
-
sessionsDir?: string | undefined;
|
|
305
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
306
|
-
trackingAgentId?: string | undefined;
|
|
307
|
-
}>;
|
|
308
|
-
defaultInstance?: string | undefined;
|
|
309
|
-
}, {
|
|
310
|
-
instances?: Record<string, {
|
|
311
|
-
userDataDir: string;
|
|
312
|
-
mode?: "managed-cdp" | "remote-cdp" | "existing-session" | undefined;
|
|
313
|
-
headless?: boolean | undefined;
|
|
314
|
-
profileName?: string | undefined;
|
|
315
|
-
profileColor?: string | undefined;
|
|
316
|
-
cdpUrl?: string | undefined;
|
|
317
|
-
cdpHost?: string | undefined;
|
|
318
|
-
cdpPort?: number | undefined;
|
|
319
|
-
channel?: "chrome" | "chromium" | "msedge" | undefined;
|
|
320
|
-
executablePath?: string | undefined;
|
|
321
|
-
args?: string[] | undefined;
|
|
322
|
-
windowBounds?: {
|
|
323
|
-
x?: number | undefined;
|
|
324
|
-
y?: number | undefined;
|
|
325
|
-
width?: number | undefined;
|
|
326
|
-
height?: number | undefined;
|
|
327
|
-
} | undefined;
|
|
328
|
-
sessionsDir?: string | undefined;
|
|
329
|
-
platform?: "zhipin" | "yupao" | undefined;
|
|
330
|
-
trackingAgentId?: string | undefined;
|
|
331
|
-
}> | undefined;
|
|
332
|
-
defaultInstance?: string | undefined;
|
|
333
|
-
}>;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
334
72
|
export type BrowserInstancesConfig = z.infer<typeof BrowserInstancesConfigSchema>;
|
|
335
73
|
export declare function loadRuntimeConfigFromEnv(env?: NodeJS.ProcessEnv): BrowserRuntimeConfig;
|
|
336
74
|
export declare function loadBrowserInstancesConfigFromEnv(env?: NodeJS.ProcessEnv): BrowserInstancesConfig | undefined;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ToolActionApprovalSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
|
-
},
|
|
5
|
-
id: string;
|
|
6
|
-
}, {
|
|
7
|
-
id: string;
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
export type ToolActionApproval = z.infer<typeof ToolActionApprovalSchema>;
|
|
10
6
|
export type ToolActionApprovalSubject = {
|
|
11
7
|
readonly tool: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const attachBrowserSession: import("@roll-agent/sdk").ToolDefinition<
|
|
2
|
-
mode: string;
|
|
1
|
+
export declare const attachBrowserSession: import("@roll-agent/sdk").ToolDefinition<Record<string, never>, {
|
|
3
2
|
success: boolean;
|
|
3
|
+
mode: string;
|
|
4
4
|
connected: boolean;
|
|
5
5
|
}>;
|