@roll-agent/browser-use-agent 0.20.0 → 0.21.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.
- package/SKILL.md +23 -2
- package/dist/index.js +1 -1
- package/dist/pages/zhipin/native-page.d.ts +8 -1
- package/dist/pages/zhipin/recommend-filter.d.ts +102 -5
- package/dist/tools/zhipin-filter-recommend-candidates.d.ts +39 -6
- package/dist/tools/zhipin-get-candidate-info.d.ts +1 -1
- package/dist/tools/zhipin-get-candidate-list.d.ts +1 -1
- package/package.json +2 -2
|
@@ -252,6 +252,12 @@ export declare class ZhipinNativePagePort {
|
|
|
252
252
|
private openRecommendFilterPanel;
|
|
253
253
|
private dismissPreviousFilterPrompt;
|
|
254
254
|
private clickRecommendFilterOption;
|
|
255
|
+
private clickRecommendFilterValues;
|
|
256
|
+
private isRecommendLocationPanelVisible;
|
|
257
|
+
private openRecommendLocationPanel;
|
|
258
|
+
private clickRecommendLocationValue;
|
|
259
|
+
private clickRecommendLocationSubmit;
|
|
260
|
+
private applyRecommendLocationFilter;
|
|
255
261
|
private detectVipModal;
|
|
256
262
|
private readNativeAgeState;
|
|
257
263
|
private resolveNativeAgeSlider;
|
|
@@ -262,8 +268,9 @@ export declare class ZhipinNativePagePort {
|
|
|
262
268
|
private setAgeHandleToNumber;
|
|
263
269
|
private isDesiredAgeState;
|
|
264
270
|
private setRecommendAgeRange;
|
|
265
|
-
private
|
|
271
|
+
private readSelectedRecommendOptionTexts;
|
|
266
272
|
private readNativeAppliedFilterState;
|
|
273
|
+
private clickRecommendFilterClear;
|
|
267
274
|
private clickRecommendFilterSubmit;
|
|
268
275
|
private readRecommendFilterButtonText;
|
|
269
276
|
private readVisibleChatCandidates;
|
|
@@ -3,21 +3,116 @@ export declare const ZHIPIN_RECOMMEND_GENDER_VALUES: readonly ["不限", "男",
|
|
|
3
3
|
export type ZhipinRecommendGender = (typeof ZHIPIN_RECOMMEND_GENDER_VALUES)[number];
|
|
4
4
|
export declare const ZHIPIN_RECOMMEND_ACTIVITY_VALUES: readonly ["不限", "刚刚活跃", "今日活跃", "3日内活跃", "本周活跃", "本月活跃"];
|
|
5
5
|
export type ZhipinRecommendActivity = (typeof ZHIPIN_RECOMMEND_ACTIVITY_VALUES)[number];
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const ZHIPIN_RECOMMEND_FILTER_APPLY_MODE_VALUES: readonly ["patch", "replace"];
|
|
7
|
+
export type ZhipinRecommendFilterApplyMode = (typeof ZHIPIN_RECOMMEND_FILTER_APPLY_MODE_VALUES)[number];
|
|
8
|
+
export declare const ZHIPIN_RECOMMEND_FILTER_OPTION_FIELDS: readonly [{
|
|
9
|
+
readonly key: "gender";
|
|
10
|
+
readonly label: "性别";
|
|
11
|
+
readonly selection: "single";
|
|
12
|
+
readonly clearValue: "不限";
|
|
13
|
+
readonly values: readonly ["不限", "男", "女"];
|
|
14
|
+
}, {
|
|
15
|
+
readonly key: "activity";
|
|
16
|
+
readonly label: "活跃度";
|
|
17
|
+
readonly selection: "single";
|
|
18
|
+
readonly clearValue: "不限";
|
|
19
|
+
readonly values: readonly ["不限", "刚刚活跃", "今日活跃", "3日内活跃", "本周活跃", "本月活跃"];
|
|
20
|
+
}, {
|
|
21
|
+
readonly key: "major";
|
|
22
|
+
readonly label: "专业";
|
|
23
|
+
readonly selection: "multi";
|
|
24
|
+
readonly clearValue: "不限";
|
|
25
|
+
}, {
|
|
26
|
+
readonly key: "recentNotView";
|
|
27
|
+
readonly label: "近期没有看过";
|
|
28
|
+
readonly selection: "single";
|
|
29
|
+
readonly clearValue: "不限";
|
|
30
|
+
}, {
|
|
31
|
+
readonly key: "exchangeResumeWithColleague";
|
|
32
|
+
readonly label: "是否与同事交换简历";
|
|
33
|
+
readonly selection: "single";
|
|
34
|
+
readonly clearValue: "不限";
|
|
35
|
+
}, {
|
|
36
|
+
readonly key: "candidateKeywords";
|
|
37
|
+
readonly label: "牛人关键词";
|
|
38
|
+
readonly selection: "multi";
|
|
39
|
+
readonly clearValue: "不限";
|
|
40
|
+
}, {
|
|
41
|
+
readonly key: "school";
|
|
42
|
+
readonly label: "院校";
|
|
43
|
+
readonly selection: "multi";
|
|
44
|
+
readonly clearValue: "不限";
|
|
45
|
+
}, {
|
|
46
|
+
readonly key: "switchJobFrequency";
|
|
47
|
+
readonly label: "跳槽频率";
|
|
48
|
+
readonly selection: "single";
|
|
49
|
+
readonly clearValue: "不限";
|
|
50
|
+
}, {
|
|
51
|
+
readonly key: "intention";
|
|
52
|
+
readonly label: "求职意向";
|
|
53
|
+
readonly selection: "multi";
|
|
54
|
+
readonly clearValue: "不限";
|
|
55
|
+
}, {
|
|
56
|
+
readonly key: "salary";
|
|
57
|
+
readonly label: "薪资待遇";
|
|
58
|
+
readonly selection: "single";
|
|
59
|
+
readonly clearValue: "不限";
|
|
60
|
+
}, {
|
|
61
|
+
readonly key: "degree";
|
|
62
|
+
readonly label: "学历要求";
|
|
63
|
+
readonly selection: "multi";
|
|
64
|
+
readonly clearValue: "不限";
|
|
65
|
+
}, {
|
|
66
|
+
readonly key: "experience";
|
|
67
|
+
readonly label: "经验要求";
|
|
68
|
+
readonly selection: "multi";
|
|
69
|
+
readonly clearValue: "不限";
|
|
70
|
+
}, {
|
|
71
|
+
readonly key: "callPhone";
|
|
72
|
+
readonly label: "是否可拨打电话";
|
|
73
|
+
readonly selection: "single";
|
|
74
|
+
readonly clearValue: "不限";
|
|
75
|
+
}];
|
|
76
|
+
export type ZhipinRecommendFilterOptionField = (typeof ZHIPIN_RECOMMEND_FILTER_OPTION_FIELDS)[number];
|
|
77
|
+
export type ZhipinRecommendFilterOptionFieldKey = ZhipinRecommendFilterOptionField["key"];
|
|
78
|
+
export type ZhipinRecommendFilterOptionSelectionMode = ZhipinRecommendFilterOptionField["selection"];
|
|
79
|
+
export declare const ZHIPIN_RECOMMEND_FILTER_STATUS_VALUES: readonly ["applied", "recommend_not_ready", "filter_not_found", "requires_vip", "age_not_applied", "clear_failed", "submit_failed", "error"];
|
|
7
80
|
export type ZhipinRecommendFilterStatus = (typeof ZHIPIN_RECOMMEND_FILTER_STATUS_VALUES)[number];
|
|
8
81
|
export type RecommendTarget = Page | NonNullable<ReturnType<Page["frame"]>>;
|
|
9
82
|
type PageLocator = ReturnType<Page["locator"]>;
|
|
83
|
+
export type ZhipinRecommendFilterOptionSelection = {
|
|
84
|
+
readonly fieldKey: ZhipinRecommendFilterOptionFieldKey;
|
|
85
|
+
readonly label: string;
|
|
86
|
+
readonly values: readonly string[];
|
|
87
|
+
readonly selection: ZhipinRecommendFilterOptionSelectionMode;
|
|
88
|
+
readonly clearValue: string;
|
|
89
|
+
};
|
|
90
|
+
export type ZhipinRecommendFilterAgeRange = {
|
|
91
|
+
readonly min?: number;
|
|
92
|
+
readonly max?: number;
|
|
93
|
+
};
|
|
94
|
+
export type ZhipinRecommendFilterLocationSelection = {
|
|
95
|
+
readonly city: string;
|
|
96
|
+
readonly district?: string;
|
|
97
|
+
};
|
|
10
98
|
export type ZhipinRecommendFilterRequest = {
|
|
99
|
+
readonly applyMode: ZhipinRecommendFilterApplyMode;
|
|
11
100
|
readonly ageMin?: number;
|
|
12
101
|
readonly ageMax?: number;
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
102
|
+
readonly location?: ZhipinRecommendFilterLocationSelection;
|
|
103
|
+
readonly optionSelections: readonly ZhipinRecommendFilterOptionSelection[];
|
|
15
104
|
};
|
|
16
105
|
export type ZhipinRecommendFilterApplied = {
|
|
17
106
|
readonly ageMin?: number;
|
|
18
107
|
readonly ageMax?: number;
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
108
|
+
readonly location?: ZhipinRecommendFilterLocationSelection;
|
|
109
|
+
readonly optionSelections: readonly {
|
|
110
|
+
readonly fieldKey: ZhipinRecommendFilterOptionFieldKey;
|
|
111
|
+
readonly label: string;
|
|
112
|
+
readonly values: readonly string[];
|
|
113
|
+
}[];
|
|
114
|
+
readonly gender?: string;
|
|
115
|
+
readonly activity?: string;
|
|
21
116
|
};
|
|
22
117
|
export type ZhipinRecommendFilterApplyResult = {
|
|
23
118
|
readonly status: ZhipinRecommendFilterStatus;
|
|
@@ -26,6 +121,8 @@ export type ZhipinRecommendFilterApplyResult = {
|
|
|
26
121
|
readonly filterButtonText?: string;
|
|
27
122
|
readonly error?: string;
|
|
28
123
|
};
|
|
124
|
+
export declare function getZhipinRecommendFilterOptionField(fieldKey: ZhipinRecommendFilterOptionFieldKey): ZhipinRecommendFilterOptionField;
|
|
125
|
+
export declare function shouldApplyRecommendAgeRange(requested: ZhipinRecommendFilterRequest): boolean;
|
|
29
126
|
export type RecommendFilterVisualFeedback = {
|
|
30
127
|
readonly moveToLocator: (page: Page, locator: PageLocator, options?: {
|
|
31
128
|
readonly durationMs?: number;
|
|
@@ -9,24 +9,57 @@ type ZhipinFilterRecommendCandidatesDeps = {
|
|
|
9
9
|
export declare function setZhipinFilterRecommendCandidatesDepsForTests(override: Partial<ZhipinFilterRecommendCandidatesDeps> | undefined): void;
|
|
10
10
|
export declare const zhipinFilterRecommendCandidates: import("@roll-agent/sdk").ToolDefinition<{
|
|
11
11
|
activity?: "不限" | "刚刚活跃" | "今日活跃" | "3日内活跃" | "本周活跃" | "本月活跃" | undefined;
|
|
12
|
+
gender?: "不限" | "男" | "女" | undefined;
|
|
13
|
+
major?: string[] | undefined;
|
|
14
|
+
recentNotView?: string | undefined;
|
|
15
|
+
exchangeResumeWithColleague?: string | undefined;
|
|
16
|
+
candidateKeywords?: string[] | undefined;
|
|
17
|
+
school?: string[] | undefined;
|
|
18
|
+
switchJobFrequency?: string | undefined;
|
|
19
|
+
intention?: string[] | undefined;
|
|
20
|
+
salary?: string | undefined;
|
|
21
|
+
degree?: string[] | undefined;
|
|
22
|
+
experience?: string[] | undefined;
|
|
23
|
+
callPhone?: string | undefined;
|
|
12
24
|
ageMin?: number | undefined;
|
|
13
25
|
ageMax?: number | undefined;
|
|
14
|
-
|
|
26
|
+
applyMode?: "replace" | "patch" | undefined;
|
|
27
|
+
locationCity?: string | undefined;
|
|
28
|
+
locationDistrict?: string | undefined;
|
|
15
29
|
}, {
|
|
16
|
-
status: "error" | "applied" | "recommend_not_ready" | "filter_not_found" | "requires_vip" | "age_not_applied" | "submit_failed";
|
|
30
|
+
status: "error" | "applied" | "recommend_not_ready" | "filter_not_found" | "requires_vip" | "age_not_applied" | "clear_failed" | "submit_failed";
|
|
17
31
|
success: boolean;
|
|
18
32
|
requested: {
|
|
19
|
-
|
|
20
|
-
|
|
33
|
+
optionSelections: {
|
|
34
|
+
values: string[];
|
|
35
|
+
label: string;
|
|
36
|
+
selection: "single" | "multi";
|
|
37
|
+
fieldKey: string;
|
|
38
|
+
clearValue: string;
|
|
39
|
+
}[];
|
|
40
|
+
applyMode: "replace" | "patch";
|
|
21
41
|
ageMin?: number | undefined;
|
|
22
42
|
ageMax?: number | undefined;
|
|
43
|
+
location?: {
|
|
44
|
+
city: string;
|
|
45
|
+
district?: string | undefined;
|
|
46
|
+
} | undefined;
|
|
23
47
|
};
|
|
24
48
|
error?: string | undefined;
|
|
25
49
|
applied?: {
|
|
26
|
-
|
|
27
|
-
|
|
50
|
+
optionSelections: {
|
|
51
|
+
values: string[];
|
|
52
|
+
label: string;
|
|
53
|
+
fieldKey: string;
|
|
54
|
+
}[];
|
|
55
|
+
activity?: string | undefined;
|
|
56
|
+
gender?: string | undefined;
|
|
28
57
|
ageMin?: number | undefined;
|
|
29
58
|
ageMax?: number | undefined;
|
|
59
|
+
location?: {
|
|
60
|
+
city: string;
|
|
61
|
+
district?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
30
63
|
} | undefined;
|
|
31
64
|
filterButtonText?: string | undefined;
|
|
32
65
|
}>;
|
|
@@ -21,9 +21,9 @@ export declare const zhipinGetCandidateInfo: import("@roll-agent/sdk").ToolDefin
|
|
|
21
21
|
candidateId: string;
|
|
22
22
|
candidateInfo: {
|
|
23
23
|
name: string;
|
|
24
|
+
experience: string;
|
|
24
25
|
age: string;
|
|
25
26
|
education: string;
|
|
26
|
-
experience: string;
|
|
27
27
|
expectedLocation: string;
|
|
28
28
|
expectedPosition: string;
|
|
29
29
|
expectedSalary: string;
|
|
@@ -17,9 +17,9 @@ export declare const zhipinGetCandidateList: import("@roll-agent/sdk").ToolDefin
|
|
|
17
17
|
name: string;
|
|
18
18
|
index: number;
|
|
19
19
|
candidateId: string;
|
|
20
|
+
experience: string;
|
|
20
21
|
age: string;
|
|
21
22
|
education: string;
|
|
22
|
-
experience: string;
|
|
23
23
|
workStatus: string;
|
|
24
24
|
company: string;
|
|
25
25
|
currentPosition: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roll-agent/browser-use-agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"zod": "^3.25.76",
|
|
48
48
|
"@roll-agent/reply-authority-client": "0.5.0",
|
|
49
|
-
"@roll-agent/sdk": "0.2.
|
|
49
|
+
"@roll-agent/sdk": "0.2.1",
|
|
50
50
|
"@roll-agent/browser": "0.9.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|