@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.
Files changed (56) hide show
  1. package/dist/browser-use-policy.d.ts +18 -26
  2. package/dist/diagnostics/effective-env.d.ts +2 -14
  3. package/dist/goal/contracts.d.ts +173 -1537
  4. package/dist/goal/decisions.d.ts +1 -9
  5. package/dist/goal/execution-context.d.ts +83 -457
  6. package/dist/goal/form-context.d.ts +104 -480
  7. package/dist/goal/form-handoff.d.ts +12 -138
  8. package/dist/goal/interaction-feedback.d.ts +10 -36
  9. package/dist/goal/observation.d.ts +122 -827
  10. package/dist/goal/picker-observation.d.ts +26 -41
  11. package/dist/goal/picker-state.d.ts +33 -70
  12. package/dist/goal/task-evidence.d.ts +3 -3
  13. package/dist/goal/task-freshness.d.ts +8 -48
  14. package/dist/goal/task-policy.d.ts +10 -10
  15. package/dist/goal/task-progress.d.ts +25 -271
  16. package/dist/goal/task-sources.d.ts +2 -2
  17. package/dist/index.js +1 -1
  18. package/dist/reply-authority/prepared-reply-decision.d.ts +22 -25
  19. package/dist/reply-authority/prepared-reply-judge-context.d.ts +9 -64
  20. package/dist/reply-authority/schemas.d.ts +6 -100
  21. package/dist/runtime-config.d.ts +40 -302
  22. package/dist/tool-action-approval.d.ts +1 -5
  23. package/dist/tools/attach-browser-session.d.ts +2 -2
  24. package/dist/tools/browser-execute.d.ts +19 -19
  25. package/dist/tools/browser-operate.d.ts +113 -113
  26. package/dist/tools/browser-ref-schemas.d.ts +19 -77
  27. package/dist/tools/browser-snapshot.d.ts +7 -7
  28. package/dist/tools/browser-status.d.ts +34 -34
  29. package/dist/tools/browser-stop.d.ts +19 -54
  30. package/dist/tools/browser-workflows.d.ts +87 -454
  31. package/dist/tools/click-ref.d.ts +7 -7
  32. package/dist/tools/type-ref.d.ts +8 -8
  33. package/dist/tools/yupao-send-reply.d.ts +1 -1
  34. package/dist/tools/zhipin-capture-resume.d.ts +7 -7
  35. package/dist/tools/zhipin-close-resume.d.ts +2 -2
  36. package/dist/tools/zhipin-diagnose-browser-state.d.ts +76 -156
  37. package/dist/tools/zhipin-exchange-wechat.d.ts +2 -2
  38. package/dist/tools/zhipin-filter-recommend-candidates.d.ts +15 -15
  39. package/dist/tools/zhipin-generate-reply-preview.d.ts +14 -14
  40. package/dist/tools/zhipin-get-candidate-info.d.ts +16 -16
  41. package/dist/tools/zhipin-get-candidate-list.d.ts +7 -7
  42. package/dist/tools/zhipin-get-username.d.ts +3 -3
  43. package/dist/tools/zhipin-judge-prepared-reply.d.ts +5 -5
  44. package/dist/tools/zhipin-list-recommend-jobs.d.ts +7 -7
  45. package/dist/tools/zhipin-open-chat-page.d.ts +4 -4
  46. package/dist/tools/zhipin-open-chat.d.ts +3 -3
  47. package/dist/tools/zhipin-open-recommend-page.d.ts +3 -3
  48. package/dist/tools/zhipin-open-resume.d.ts +2 -2
  49. package/dist/tools/zhipin-read-messages.d.ts +4 -4
  50. package/dist/tools/zhipin-say-hello.d.ts +3 -3
  51. package/dist/tools/zhipin-scroll-view.d.ts +13 -13
  52. package/dist/tools/zhipin-select-recommend-job.d.ts +16 -16
  53. package/dist/tools/zhipin-send-prepared-reply.d.ts +6 -6
  54. package/dist/tools/zhipin-send-reply.d.ts +2 -10
  55. package/dist/workflows/store.d.ts +46 -253
  56. package/package.json +5 -5
@@ -5,148 +5,22 @@ export declare const FormHandoffSchema: z.ZodObject<{
5
5
  diagnosticsOmitted: z.ZodLiteral<true>;
6
6
  totalSteps: z.ZodNumber;
7
7
  omittedSteps: z.ZodNumber;
8
- fields: z.ZodArray<z.ZodObject<Pick<{
8
+ fields: z.ZodArray<z.ZodObject<{
9
9
  id: z.ZodString;
10
10
  name: z.ZodString;
11
- intent: z.ZodEnum<["set", "preserve"]>;
12
- comparison: z.ZodEnum<["auto", "literal", "semantic"]>;
13
- expected: z.ZodOptional<z.ZodString>;
14
- binding: z.ZodOptional<z.ZodObject<{
15
- identity: z.ZodString;
16
- readOnlyDisplay: z.ZodOptional<z.ZodLiteral<true>>;
17
- key: z.ZodOptional<z.ZodString>;
18
- name: z.ZodString;
19
- role: z.ZodString;
20
- fieldLabel: z.ZodOptional<z.ZodString>;
21
- }, "strip", z.ZodTypeAny, {
22
- role: string;
23
- name: string;
24
- identity: string;
25
- key?: string | undefined;
26
- fieldLabel?: string | undefined;
27
- readOnlyDisplay?: true | undefined;
28
- }, {
29
- role: string;
30
- name: string;
31
- identity: string;
32
- key?: string | undefined;
33
- fieldLabel?: string | undefined;
34
- readOnlyDisplay?: true | undefined;
35
- }>>;
36
- entry: z.ZodOptional<z.ZodObject<{
37
- identity: z.ZodString;
38
- readOnlyDisplay: z.ZodOptional<z.ZodLiteral<true>>;
39
- key: z.ZodOptional<z.ZodString>;
40
- name: z.ZodString;
41
- role: z.ZodString;
42
- fieldLabel: z.ZodOptional<z.ZodString>;
43
- }, "strip", z.ZodTypeAny, {
44
- role: string;
45
- name: string;
46
- identity: string;
47
- key?: string | undefined;
48
- fieldLabel?: string | undefined;
49
- readOnlyDisplay?: true | undefined;
50
- }, {
51
- role: string;
52
- name: string;
53
- identity: string;
54
- key?: string | undefined;
55
- fieldLabel?: string | undefined;
56
- readOnlyDisplay?: true | undefined;
57
- }>>;
58
- entryProof: z.ZodOptional<z.ZodObject<{
59
- fingerprint: z.ZodString;
60
- status: z.ZodEnum<["satisfied", "unsatisfied", "unknown"]>;
61
- }, "strip", z.ZodTypeAny, {
62
- status: "unknown" | "satisfied" | "unsatisfied";
63
- fingerprint: string;
64
- }, {
65
- status: "unknown" | "satisfied" | "unsatisfied";
66
- fingerprint: string;
67
- }>>;
68
- initial: z.ZodOptional<z.ZodString>;
69
- current: z.ZodOptional<z.ZodString>;
70
- status: z.ZodEnum<["unknown", "unsatisfied", "satisfied"]>;
71
11
  reason: z.ZodString;
72
- fingerprint: z.ZodOptional<z.ZodString>;
73
- target: z.ZodOptional<z.ZodObject<{
74
- key: z.ZodString;
75
- label: z.ZodString;
76
- optionsKey: z.ZodString;
77
- }, "strip", z.ZodTypeAny, {
78
- label: string;
79
- key: string;
80
- optionsKey: string;
81
- }, {
82
- label: string;
83
- key: string;
84
- optionsKey: string;
85
- }>>;
86
- semanticProof: z.ZodOptional<z.ZodObject<{
87
- fingerprint: z.ZodString;
88
- status: z.ZodEnum<["satisfied", "unsatisfied"]>;
89
- }, "strip", z.ZodTypeAny, {
90
- status: "satisfied" | "unsatisfied";
91
- fingerprint: string;
92
- }, {
93
- status: "satisfied" | "unsatisfied";
94
- fingerprint: string;
95
- }>>;
96
- }, "status" | "id" | "name" | "reason" | "intent"> & {
12
+ status: z.ZodEnum<{
13
+ unknown: "unknown";
14
+ satisfied: "satisfied";
15
+ unsatisfied: "unsatisfied";
16
+ }>;
17
+ intent: z.ZodEnum<{
18
+ set: "set";
19
+ preserve: "preserve";
20
+ }>;
97
21
  expected: z.ZodOptional<z.ZodString>;
98
22
  current: z.ZodOptional<z.ZodString>;
99
23
  valueTruncated: z.ZodBoolean;
100
- }, "strip", z.ZodTypeAny, {
101
- status: "unknown" | "satisfied" | "unsatisfied";
102
- id: string;
103
- name: string;
104
- reason: string;
105
- intent: "set" | "preserve";
106
- valueTruncated: boolean;
107
- expected?: string | undefined;
108
- current?: string | undefined;
109
- }, {
110
- status: "unknown" | "satisfied" | "unsatisfied";
111
- id: string;
112
- name: string;
113
- reason: string;
114
- intent: "set" | "preserve";
115
- valueTruncated: boolean;
116
- expected?: string | undefined;
117
- current?: string | undefined;
118
- }>, "many">;
24
+ }, z.core.$strip>>;
119
25
  next: z.ZodString;
120
- }, "strip", z.ZodTypeAny, {
121
- fields: {
122
- status: "unknown" | "satisfied" | "unsatisfied";
123
- id: string;
124
- name: string;
125
- reason: string;
126
- intent: "set" | "preserve";
127
- valueTruncated: boolean;
128
- expected?: string | undefined;
129
- current?: string | undefined;
130
- }[];
131
- observationFresh: boolean;
132
- diagnosticsOmitted: true;
133
- totalSteps: number;
134
- omittedSteps: number;
135
- next: string;
136
- }, {
137
- fields: {
138
- status: "unknown" | "satisfied" | "unsatisfied";
139
- id: string;
140
- name: string;
141
- reason: string;
142
- intent: "set" | "preserve";
143
- valueTruncated: boolean;
144
- expected?: string | undefined;
145
- current?: string | undefined;
146
- }[];
147
- observationFresh: boolean;
148
- diagnosticsOmitted: true;
149
- totalSteps: number;
150
- omittedSteps: number;
151
- next: string;
152
- }>;
26
+ }, z.core.$strip>;
@@ -4,56 +4,30 @@ import type { ExecutionContext } from "./execution-context.ts";
4
4
  import type { DecisionRequest } from "./decisions.ts";
5
5
  declare const AttemptSchema: z.ZodObject<{
6
6
  identity: z.ZodString;
7
- operation: z.ZodEnum<["CLICK", "TYPE_TEXT", "SELECT"]>;
7
+ operation: z.ZodEnum<{
8
+ CLICK: "CLICK";
9
+ TYPE_TEXT: "TYPE_TEXT";
10
+ SELECT: "SELECT";
11
+ }>;
8
12
  target: z.ZodString;
9
13
  epoch: z.ZodString;
10
14
  attempts: z.ZodNumber;
11
- feedback: z.ZodArray<z.ZodString, "many">;
15
+ feedback: z.ZodArray<z.ZodString>;
12
16
  judged: z.ZodBoolean;
13
17
  prerequisite: z.ZodOptional<z.ZodObject<{
14
18
  fieldId: z.ZodString;
15
19
  signature: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- fieldId: string;
18
- signature: string;
19
- }, {
20
- fieldId: string;
21
- signature: string;
22
- }>>;
23
- }, "strip", z.ZodTypeAny, {
24
- target: string;
25
- epoch: string;
26
- attempts: number;
27
- identity: string;
28
- operation: "CLICK" | "TYPE_TEXT" | "SELECT";
29
- feedback: string[];
30
- judged: boolean;
31
- prerequisite?: {
32
- fieldId: string;
33
- signature: string;
34
- } | undefined;
35
- }, {
36
- target: string;
37
- epoch: string;
38
- attempts: number;
39
- identity: string;
40
- operation: "CLICK" | "TYPE_TEXT" | "SELECT";
41
- feedback: string[];
42
- judged: boolean;
43
- prerequisite?: {
44
- fieldId: string;
45
- signature: string;
46
- } | undefined;
47
- }>;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strip>;
48
22
  type Attempt = z.infer<typeof AttemptSchema>;
49
23
  export declare function createInteractionFeedback(): {
50
24
  documentId: string;
51
25
  attempts: Map<string, {
26
+ identity: string;
27
+ operation: "CLICK" | "TYPE_TEXT" | "SELECT";
52
28
  target: string;
53
29
  epoch: string;
54
30
  attempts: number;
55
- identity: string;
56
- operation: "CLICK" | "TYPE_TEXT" | "SELECT";
57
31
  feedback: string[];
58
32
  judged: boolean;
59
33
  prerequisite?: {