@namzu/sdk 60.2.1 → 61.1.0
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/CHANGELOG.md +21 -0
- package/README.md +4 -4
- package/dist/account/registry.js +1 -1
- package/dist/account/registry.js.map +1 -1
- package/dist/config/registry.d.ts +2 -2
- package/dist/config/registry.d.ts.map +1 -1
- package/dist/config/runtime.d.ts +50 -644
- package/dist/config/runtime.d.ts.map +1 -1
- package/dist/config/runtime.js +1 -1
- package/dist/config/runtime.js.map +1 -1
- package/dist/connector/BaseConnector.d.ts +1 -1
- package/dist/connector/BaseConnector.d.ts.map +1 -1
- package/dist/connector/builtins/http.d.ts +2 -12
- package/dist/connector/builtins/http.d.ts.map +1 -1
- package/dist/connector/builtins/http.js +3 -3
- package/dist/connector/builtins/http.js.map +1 -1
- package/dist/connector/builtins/webhook.d.ts +2 -14
- package/dist/connector/builtins/webhook.d.ts.map +1 -1
- package/dist/connector/builtins/webhook.js +3 -3
- package/dist/connector/builtins/webhook.js.map +1 -1
- package/dist/connector/mcp/adapter.d.ts +2 -2
- package/dist/connector/mcp/adapter.d.ts.map +1 -1
- package/dist/connector/mcp/adapter.js +6 -4
- package/dist/connector/mcp/adapter.js.map +1 -1
- package/dist/connector/mcp/reconnect.d.ts +1 -11
- package/dist/connector/mcp/reconnect.d.ts.map +1 -1
- package/dist/connector/tools/adapter.d.ts +1 -11
- package/dist/connector/tools/adapter.d.ts.map +1 -1
- package/dist/connector/tools/adapter.js +1 -1
- package/dist/connector/tools/adapter.js.map +1 -1
- package/dist/connector/tools/definitions.js +1 -1
- package/dist/connector/tools/definitions.js.map +1 -1
- package/dist/contracts/a2a.d.ts +137 -1136
- package/dist/contracts/a2a.d.ts.map +1 -1
- package/dist/contracts/a2a.js +8 -8
- package/dist/contracts/a2a.js.map +1 -1
- package/dist/contracts/schemas.d.ts +7 -22
- package/dist/contracts/schemas.d.ts.map +1 -1
- package/dist/contracts/schemas.js +1 -1
- package/dist/contracts/schemas.js.map +1 -1
- package/dist/contracts/session/schemas.d.ts +35 -130
- package/dist/contracts/session/schemas.d.ts.map +1 -1
- package/dist/contracts/session/schemas.js +2 -2
- package/dist/contracts/session/schemas.js.map +1 -1
- package/dist/learning/cycle.d.ts +1 -12
- package/dist/learning/cycle.d.ts.map +1 -1
- package/dist/learning/experience.d.ts +15 -56
- package/dist/learning/experience.d.ts.map +1 -1
- package/dist/learning/observation.d.ts +13 -59
- package/dist/learning/observation.d.ts.map +1 -1
- package/dist/learning/skill.d.ts +41 -556
- package/dist/learning/skill.d.ts.map +1 -1
- package/dist/learning/store.js +1 -1
- package/dist/learning/store.js.map +1 -1
- package/dist/manager/resident/consumption.d.ts +12 -46
- package/dist/manager/resident/consumption.d.ts.map +1 -1
- package/dist/manager/resident/initiative.d.ts +3 -54
- package/dist/manager/resident/initiative.d.ts.map +1 -1
- package/dist/manager/resident/outbox.d.ts +14 -104
- package/dist/manager/resident/outbox.d.ts.map +1 -1
- package/dist/manager/resident/proposal.d.ts +6 -46
- package/dist/manager/resident/proposal.d.ts.map +1 -1
- package/dist/manager/resident/store.d.ts +14 -110
- package/dist/manager/resident/store.d.ts.map +1 -1
- package/dist/pals/activity/subscription-schema.d.ts +46 -295
- package/dist/pals/activity/subscription-schema.d.ts.map +1 -1
- package/dist/pals/channels/routing.d.ts +8 -8
- package/dist/pals/channels/schema.d.ts +38 -202
- package/dist/pals/channels/schema.d.ts.map +1 -1
- package/dist/pals/communication/ingress-schema.d.ts +721 -7198
- package/dist/pals/communication/ingress-schema.d.ts.map +1 -1
- package/dist/pals/communication/ingress-schema.js.map +1 -1
- package/dist/pals/communication/schema.d.ts +171 -1819
- package/dist/pals/communication/schema.d.ts.map +1 -1
- package/dist/peers/index.d.ts +2 -2
- package/dist/peers/index.d.ts.map +1 -1
- package/dist/peers/index.js +1 -1
- package/dist/peers/index.js.map +1 -1
- package/dist/peers/protocol.d.ts +136 -481
- package/dist/peers/protocol.d.ts.map +1 -1
- package/dist/peers/record.d.ts +56 -106
- package/dist/peers/record.d.ts.map +1 -1
- package/dist/peers/record.js +16 -0
- package/dist/peers/record.js.map +1 -1
- package/dist/public-runtime.d.ts +1 -1
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +1 -1
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-types.d.ts +1 -1
- package/dist/public-types.d.ts.map +1 -1
- package/dist/registry/tool/dialect.d.ts +4 -4
- package/dist/registry/tool/dialect.js +4 -4
- package/dist/registry/tool/json-schema.d.ts +35 -0
- package/dist/registry/tool/json-schema.d.ts.map +1 -0
- package/dist/registry/tool/json-schema.js +40 -0
- package/dist/registry/tool/json-schema.js.map +1 -0
- package/dist/registry/tool/portable.js +2 -2
- package/dist/registry/tool/portable.js.map +1 -1
- package/dist/registry/tool/schema.d.ts.map +1 -1
- package/dist/registry/tool/schema.js +3 -6
- package/dist/registry/tool/schema.js.map +1 -1
- package/dist/store/evidence/index-page.d.ts +11 -42
- package/dist/store/evidence/index-page.d.ts.map +1 -1
- package/dist/store/evidence/search-input.d.ts +1 -1
- package/dist/store/evidence/search-input.d.ts.map +1 -1
- package/dist/store/evidence/selection.d.ts +1 -1
- package/dist/store/evidence/selection.d.ts.map +1 -1
- package/dist/store/evidence/source-text.d.ts +4 -25
- package/dist/store/evidence/source-text.d.ts.map +1 -1
- package/dist/tools/builtins/browser.d.ts +43 -267
- package/dist/tools/builtins/browser.d.ts.map +1 -1
- package/dist/tools/builtins/code-analysis.d.ts +7 -7
- package/dist/tools/builtins/computer-use.d.ts +138 -647
- package/dist/tools/builtins/computer-use.d.ts.map +1 -1
- package/dist/tools/builtins/edit.d.ts +5 -117
- package/dist/tools/builtins/edit.d.ts.map +1 -1
- package/dist/tools/builtins/grep.d.ts +4 -4
- package/dist/tools/builtins/lsp.d.ts +1 -1
- package/dist/tools/builtins/read-file.d.ts +2 -2
- package/dist/tools/builtins/skill.d.ts +2 -2
- package/dist/tools/builtins/view-image.d.ts +1 -5
- package/dist/tools/builtins/view-image.d.ts.map +1 -1
- package/dist/tools/builtins/wait-for-job.d.ts +2 -2
- package/dist/tools/builtins/web.d.ts +1 -1
- package/dist/tools/coordinator/index.d.ts.map +1 -1
- package/dist/tools/coordinator/index.js +1 -3
- package/dist/tools/coordinator/index.js.map +1 -1
- package/dist/tools/defineTool.js.map +1 -1
- package/dist/tools/memory/fields.d.ts +6 -1
- package/dist/tools/memory/fields.d.ts.map +1 -1
- package/dist/types/authorization/index.d.ts +82 -294
- package/dist/types/authorization/index.d.ts.map +1 -1
- package/dist/types/connector/core.d.ts +2 -2
- package/dist/types/connector/core.d.ts.map +1 -1
- package/dist/types/connector/definition.d.ts +1 -1
- package/dist/types/connector/definition.d.ts.map +1 -1
- package/dist/types/decision/index.d.ts +1 -9
- package/dist/types/decision/index.d.ts.map +1 -1
- package/dist/types/harness/schema.d.ts +121 -321
- package/dist/types/harness/schema.d.ts.map +1 -1
- package/dist/types/plugin/index.d.ts +14 -92
- package/dist/types/plugin/index.d.ts.map +1 -1
- package/dist/types/plugin/index.js +1 -1
- package/dist/types/plugin/index.js.map +1 -1
- package/dist/types/sandbox/index.d.ts +13 -47
- package/dist/types/sandbox/index.d.ts.map +1 -1
- package/dist/types/session/checkpoint.d.ts +22 -256
- package/dist/types/session/checkpoint.d.ts.map +1 -1
- package/dist/types/session/records.d.ts +889 -6072
- package/dist/types/session/records.d.ts.map +1 -1
- package/dist/types/session/records.js +2 -2
- package/dist/types/session/records.js.map +1 -1
- package/dist/types/tool/index.d.ts +1 -1
- package/dist/types/tool/index.d.ts.map +1 -1
- package/package.json +3 -5
- package/src/account/registry.ts +1 -1
- package/src/config/registry.ts +2 -2
- package/src/config/runtime.ts +1 -1
- package/src/connector/BaseConnector.ts +1 -1
- package/src/connector/builtins/http.ts +3 -3
- package/src/connector/builtins/webhook.ts +3 -3
- package/src/connector/mcp/adapter.ts +14 -9
- package/src/connector/tools/adapter.ts +1 -1
- package/src/connector/tools/definitions.ts +1 -1
- package/src/contracts/a2a.ts +8 -8
- package/src/contracts/schemas.ts +1 -1
- package/src/contracts/session/schemas.ts +2 -2
- package/src/learning/store.ts +1 -1
- package/src/pals/communication/ingress-schema.ts +1 -1
- package/src/peers/index.ts +2 -2
- package/src/peers/record.ts +20 -0
- package/src/public-runtime.ts +1 -0
- package/src/public-types.ts +1 -1
- package/src/registry/tool/dialect.ts +4 -4
- package/src/registry/tool/json-schema.ts +76 -0
- package/src/registry/tool/portable.ts +2 -2
- package/src/registry/tool/schema.ts +3 -6
- package/src/tools/coordinator/index.ts +2 -4
- package/src/tools/defineTool.ts +1 -1
- package/src/types/connector/core.ts +2 -2
- package/src/types/connector/definition.ts +1 -1
- package/src/types/plugin/index.ts +1 -1
- package/src/types/session/checkpoint.ts +1 -1
- package/src/types/session/records.ts +4 -8
- package/src/types/tool/index.ts +1 -1
|
@@ -3,324 +3,100 @@ import type { BrowserHost, BrowserHostError, BrowserPageInfo } from '../../types
|
|
|
3
3
|
import type { ToolDefinition } from '../../types/tool/index.js';
|
|
4
4
|
export declare const BROWSER_TOOL_NAME: "browser";
|
|
5
5
|
export declare const BROWSER_ACT_TOOL_NAME: "browser_act";
|
|
6
|
-
declare const observeSchema: z.
|
|
6
|
+
declare const observeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
7
|
action: z.ZodLiteral<"navigate">;
|
|
8
|
-
url: z.
|
|
9
|
-
},
|
|
10
|
-
action: "navigate";
|
|
11
|
-
url: string;
|
|
12
|
-
}, {
|
|
13
|
-
action: "navigate";
|
|
14
|
-
url: string;
|
|
15
|
-
}>, z.ZodObject<{
|
|
8
|
+
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
9
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
10
|
action: z.ZodLiteral<"back">;
|
|
17
|
-
},
|
|
18
|
-
action: "back";
|
|
19
|
-
}, {
|
|
20
|
-
action: "back";
|
|
21
|
-
}>, z.ZodObject<{
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
12
|
action: z.ZodLiteral<"forward">;
|
|
23
|
-
},
|
|
24
|
-
action: "forward";
|
|
25
|
-
}, {
|
|
26
|
-
action: "forward";
|
|
27
|
-
}>, z.ZodObject<{
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
14
|
action: z.ZodLiteral<"reload">;
|
|
29
|
-
},
|
|
30
|
-
action: "reload";
|
|
31
|
-
}, {
|
|
32
|
-
action: "reload";
|
|
33
|
-
}>, z.ZodObject<{
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
16
|
action: z.ZodLiteral<"snapshot">;
|
|
35
17
|
ref: z.ZodOptional<z.ZodString>;
|
|
36
18
|
cursor: z.ZodOptional<z.ZodString>;
|
|
37
|
-
},
|
|
38
|
-
action: "snapshot";
|
|
39
|
-
cursor?: string | undefined;
|
|
40
|
-
ref?: string | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
action: "snapshot";
|
|
43
|
-
cursor?: string | undefined;
|
|
44
|
-
ref?: string | undefined;
|
|
45
|
-
}>, z.ZodObject<{
|
|
19
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
20
|
action: z.ZodLiteral<"screenshot">;
|
|
47
21
|
ref: z.ZodOptional<z.ZodString>;
|
|
48
22
|
fullPage: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
},
|
|
50
|
-
action: "screenshot";
|
|
51
|
-
ref?: string | undefined;
|
|
52
|
-
fullPage?: boolean | undefined;
|
|
53
|
-
}, {
|
|
54
|
-
action: "screenshot";
|
|
55
|
-
ref?: string | undefined;
|
|
56
|
-
fullPage?: boolean | undefined;
|
|
57
|
-
}>, z.ZodObject<{
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
24
|
action: z.ZodLiteral<"scroll">;
|
|
59
|
-
direction: z.ZodEnum<
|
|
25
|
+
direction: z.ZodEnum<{
|
|
26
|
+
up: "up";
|
|
27
|
+
down: "down";
|
|
28
|
+
left: "left";
|
|
29
|
+
right: "right";
|
|
30
|
+
}>;
|
|
60
31
|
ref: z.ZodOptional<z.ZodString>;
|
|
61
32
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
},
|
|
63
|
-
action: "scroll";
|
|
64
|
-
direction: "up" | "down" | "left" | "right";
|
|
65
|
-
amount?: number | undefined;
|
|
66
|
-
ref?: string | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
action: "scroll";
|
|
69
|
-
direction: "up" | "down" | "left" | "right";
|
|
70
|
-
amount?: number | undefined;
|
|
71
|
-
ref?: string | undefined;
|
|
72
|
-
}>, z.ZodObject<{
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
34
|
action: z.ZodLiteral<"wait_for">;
|
|
74
35
|
text: z.ZodOptional<z.ZodString>;
|
|
75
36
|
textGone: z.ZodOptional<z.ZodString>;
|
|
76
37
|
timeMs: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
},
|
|
78
|
-
action: "wait_for";
|
|
79
|
-
text?: string | undefined;
|
|
80
|
-
textGone?: string | undefined;
|
|
81
|
-
timeMs?: number | undefined;
|
|
82
|
-
}, {
|
|
83
|
-
action: "wait_for";
|
|
84
|
-
text?: string | undefined;
|
|
85
|
-
textGone?: string | undefined;
|
|
86
|
-
timeMs?: number | undefined;
|
|
87
|
-
}>, z.ZodObject<{
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
39
|
action: z.ZodLiteral<"tabs">;
|
|
89
|
-
op: z.ZodEnum<
|
|
40
|
+
op: z.ZodEnum<{
|
|
41
|
+
new: "new";
|
|
42
|
+
close: "close";
|
|
43
|
+
list: "list";
|
|
44
|
+
select: "select";
|
|
45
|
+
}>;
|
|
90
46
|
tab: z.ZodOptional<z.ZodString>;
|
|
91
|
-
url: z.ZodOptional<z.
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
url?: string | undefined;
|
|
96
|
-
tab?: string | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
action: "tabs";
|
|
99
|
-
op: "new" | "close" | "list" | "select";
|
|
100
|
-
url?: string | undefined;
|
|
101
|
-
tab?: string | undefined;
|
|
102
|
-
}>]>, {
|
|
103
|
-
action: "navigate";
|
|
104
|
-
url: string;
|
|
105
|
-
} | {
|
|
106
|
-
action: "back";
|
|
107
|
-
} | {
|
|
108
|
-
action: "forward";
|
|
109
|
-
} | {
|
|
110
|
-
action: "reload";
|
|
111
|
-
} | {
|
|
112
|
-
action: "snapshot";
|
|
113
|
-
cursor?: string | undefined;
|
|
114
|
-
ref?: string | undefined;
|
|
115
|
-
} | {
|
|
116
|
-
action: "screenshot";
|
|
117
|
-
ref?: string | undefined;
|
|
118
|
-
fullPage?: boolean | undefined;
|
|
119
|
-
} | {
|
|
120
|
-
action: "scroll";
|
|
121
|
-
direction: "up" | "down" | "left" | "right";
|
|
122
|
-
amount?: number | undefined;
|
|
123
|
-
ref?: string | undefined;
|
|
124
|
-
} | {
|
|
125
|
-
action: "wait_for";
|
|
126
|
-
text?: string | undefined;
|
|
127
|
-
textGone?: string | undefined;
|
|
128
|
-
timeMs?: number | undefined;
|
|
129
|
-
} | {
|
|
130
|
-
action: "tabs";
|
|
131
|
-
op: "new" | "close" | "list" | "select";
|
|
132
|
-
url?: string | undefined;
|
|
133
|
-
tab?: string | undefined;
|
|
134
|
-
}, {
|
|
135
|
-
action: "navigate";
|
|
136
|
-
url: string;
|
|
137
|
-
} | {
|
|
138
|
-
action: "back";
|
|
139
|
-
} | {
|
|
140
|
-
action: "forward";
|
|
141
|
-
} | {
|
|
142
|
-
action: "reload";
|
|
143
|
-
} | {
|
|
144
|
-
action: "snapshot";
|
|
145
|
-
cursor?: string | undefined;
|
|
146
|
-
ref?: string | undefined;
|
|
147
|
-
} | {
|
|
148
|
-
action: "screenshot";
|
|
149
|
-
ref?: string | undefined;
|
|
150
|
-
fullPage?: boolean | undefined;
|
|
151
|
-
} | {
|
|
152
|
-
action: "scroll";
|
|
153
|
-
direction: "up" | "down" | "left" | "right";
|
|
154
|
-
amount?: number | undefined;
|
|
155
|
-
ref?: string | undefined;
|
|
156
|
-
} | {
|
|
157
|
-
action: "wait_for";
|
|
158
|
-
text?: string | undefined;
|
|
159
|
-
textGone?: string | undefined;
|
|
160
|
-
timeMs?: number | undefined;
|
|
161
|
-
} | {
|
|
162
|
-
action: "tabs";
|
|
163
|
-
op: "new" | "close" | "list" | "select";
|
|
164
|
-
url?: string | undefined;
|
|
165
|
-
tab?: string | undefined;
|
|
166
|
-
}>;
|
|
167
|
-
declare const actSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
168
|
-
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
47
|
+
url: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
48
|
+
}, z.core.$strip>], "action">;
|
|
49
|
+
declare const actSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
+
origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
169
51
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
170
52
|
action: z.ZodLiteral<"click">;
|
|
171
53
|
ref: z.ZodString;
|
|
172
54
|
doubleClick: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
-
},
|
|
174
|
-
origin: string
|
|
175
|
-
action: "click";
|
|
176
|
-
ref: string;
|
|
177
|
-
snapshot?: boolean | undefined;
|
|
178
|
-
doubleClick?: boolean | undefined;
|
|
179
|
-
}, {
|
|
180
|
-
origin: string;
|
|
181
|
-
action: "click";
|
|
182
|
-
ref: string;
|
|
183
|
-
snapshot?: boolean | undefined;
|
|
184
|
-
doubleClick?: boolean | undefined;
|
|
185
|
-
}>, z.ZodObject<{
|
|
186
|
-
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
187
57
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
188
58
|
action: z.ZodLiteral<"type">;
|
|
189
59
|
ref: z.ZodString;
|
|
190
60
|
text: z.ZodString;
|
|
191
61
|
submit: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
origin: string;
|
|
195
|
-
action: "type";
|
|
196
|
-
ref: string;
|
|
197
|
-
snapshot?: boolean | undefined;
|
|
198
|
-
submit?: boolean | undefined;
|
|
199
|
-
}, {
|
|
200
|
-
text: string;
|
|
201
|
-
origin: string;
|
|
202
|
-
action: "type";
|
|
203
|
-
ref: string;
|
|
204
|
-
snapshot?: boolean | undefined;
|
|
205
|
-
submit?: boolean | undefined;
|
|
206
|
-
}>, z.ZodObject<{
|
|
207
|
-
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
208
64
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
209
65
|
action: z.ZodLiteral<"fill_form">;
|
|
210
66
|
fields: z.ZodArray<z.ZodObject<{
|
|
211
67
|
ref: z.ZodString;
|
|
212
68
|
value: z.ZodString;
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}, {
|
|
217
|
-
value: string;
|
|
218
|
-
ref: string;
|
|
219
|
-
}>, "many">;
|
|
220
|
-
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
origin: string;
|
|
222
|
-
action: "fill_form";
|
|
223
|
-
fields: {
|
|
224
|
-
value: string;
|
|
225
|
-
ref: string;
|
|
226
|
-
}[];
|
|
227
|
-
snapshot?: boolean | undefined;
|
|
228
|
-
}, {
|
|
229
|
-
origin: string;
|
|
230
|
-
action: "fill_form";
|
|
231
|
-
fields: {
|
|
232
|
-
value: string;
|
|
233
|
-
ref: string;
|
|
234
|
-
}[];
|
|
235
|
-
snapshot?: boolean | undefined;
|
|
236
|
-
}>, z.ZodObject<{
|
|
237
|
-
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
238
72
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
239
73
|
action: z.ZodLiteral<"select">;
|
|
240
74
|
ref: z.ZodString;
|
|
241
|
-
values: z.ZodArray<z.ZodString
|
|
242
|
-
},
|
|
243
|
-
|
|
244
|
-
origin: string;
|
|
245
|
-
action: "select";
|
|
246
|
-
ref: string;
|
|
247
|
-
snapshot?: boolean | undefined;
|
|
248
|
-
}, {
|
|
249
|
-
values: string[];
|
|
250
|
-
origin: string;
|
|
251
|
-
action: "select";
|
|
252
|
-
ref: string;
|
|
253
|
-
snapshot?: boolean | undefined;
|
|
254
|
-
}>, z.ZodObject<{
|
|
255
|
-
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
75
|
+
values: z.ZodArray<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
+
origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
256
78
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
257
79
|
action: z.ZodLiteral<"press">;
|
|
258
80
|
key: z.ZodString;
|
|
259
81
|
ref: z.ZodOptional<z.ZodString>;
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
origin: string;
|
|
263
|
-
action: "press";
|
|
264
|
-
snapshot?: boolean | undefined;
|
|
265
|
-
ref?: string | undefined;
|
|
266
|
-
}, {
|
|
267
|
-
key: string;
|
|
268
|
-
origin: string;
|
|
269
|
-
action: "press";
|
|
270
|
-
snapshot?: boolean | undefined;
|
|
271
|
-
ref?: string | undefined;
|
|
272
|
-
}>, z.ZodObject<{
|
|
273
|
-
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
274
84
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
275
85
|
action: z.ZodLiteral<"hover">;
|
|
276
86
|
ref: z.ZodString;
|
|
277
|
-
},
|
|
278
|
-
origin: string
|
|
279
|
-
action: "hover";
|
|
280
|
-
ref: string;
|
|
281
|
-
snapshot?: boolean | undefined;
|
|
282
|
-
}, {
|
|
283
|
-
origin: string;
|
|
284
|
-
action: "hover";
|
|
285
|
-
ref: string;
|
|
286
|
-
snapshot?: boolean | undefined;
|
|
287
|
-
}>, z.ZodObject<{
|
|
288
|
-
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
289
89
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
290
90
|
action: z.ZodLiteral<"upload">;
|
|
291
91
|
ref: z.ZodString;
|
|
292
92
|
path: z.ZodString;
|
|
293
|
-
},
|
|
294
|
-
|
|
295
|
-
origin: string;
|
|
296
|
-
action: "upload";
|
|
297
|
-
ref: string;
|
|
298
|
-
snapshot?: boolean | undefined;
|
|
299
|
-
}, {
|
|
300
|
-
path: string;
|
|
301
|
-
origin: string;
|
|
302
|
-
action: "upload";
|
|
303
|
-
ref: string;
|
|
304
|
-
snapshot?: boolean | undefined;
|
|
305
|
-
}>, z.ZodObject<{
|
|
306
|
-
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
307
95
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
308
96
|
action: z.ZodLiteral<"dialog">;
|
|
309
97
|
accept: z.ZodBoolean;
|
|
310
98
|
promptText: z.ZodOptional<z.ZodString>;
|
|
311
|
-
},
|
|
312
|
-
origin: string;
|
|
313
|
-
action: "dialog";
|
|
314
|
-
accept: boolean;
|
|
315
|
-
snapshot?: boolean | undefined;
|
|
316
|
-
promptText?: string | undefined;
|
|
317
|
-
}, {
|
|
318
|
-
origin: string;
|
|
319
|
-
action: "dialog";
|
|
320
|
-
accept: boolean;
|
|
321
|
-
snapshot?: boolean | undefined;
|
|
322
|
-
promptText?: string | undefined;
|
|
323
|
-
}>]>;
|
|
99
|
+
}, z.core.$strip>], "action">;
|
|
324
100
|
/** The `browser` tool's input after canonicalisation. */
|
|
325
101
|
export type BrowserToolInput = z.infer<typeof observeSchema>;
|
|
326
102
|
/** The `browser_act` tool's input after canonicalisation. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/tools/builtins/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAKX,WAAW,EACX,gBAAgB,EAIhB,eAAe,EAGf,MAAM,8BAA8B,CAAA;AAOrC,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,2BAA2B,CAAA;AAO3E,eAAO,MAAM,iBAAiB,EAAG,SAAkB,CAAA;AACnD,eAAO,MAAM,qBAAqB,EAAG,aAAsB,CAAA;AAmC3D,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/tools/builtins/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAKX,WAAW,EACX,gBAAgB,EAIhB,eAAe,EAGf,MAAM,8BAA8B,CAAA;AAOrC,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,2BAA2B,CAAA;AAO3E,eAAO,MAAM,iBAAiB,EAAG,SAAkB,CAAA;AACnD,eAAO,MAAM,qBAAqB,EAAG,aAAsB,CAAA;AAmC3D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAqDhB,CAAA;AAOH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA+Cb,CAAA;AAEF,yDAAyD;AACzD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAC5D,6DAA6D;AAC7D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAyB3D;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAetE;AA8KD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAIrE;AA6FD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,GAAG,SAAS,CAwB/E;AAsND;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,WAAW,GACf,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAiFzE"}
|
|
@@ -2,42 +2,42 @@ import type { CodeAnalysisProvider } from '../../types/code-analysis/index.js';
|
|
|
2
2
|
export declare const CODE_ANALYSIS_TOOL_NAME = "code_analysis";
|
|
3
3
|
export declare const CodeAnalysisTool: import("../../types/tool/index.js").ToolDefinition<{
|
|
4
4
|
operation: "index";
|
|
5
|
-
force?: boolean | undefined;
|
|
6
5
|
path?: string | undefined;
|
|
6
|
+
force?: boolean | undefined;
|
|
7
7
|
} | {
|
|
8
|
-
text: string;
|
|
9
8
|
operation: "find_literal";
|
|
9
|
+
text: string;
|
|
10
10
|
limit?: number | undefined;
|
|
11
11
|
cursor?: string | undefined;
|
|
12
12
|
path?: string | undefined;
|
|
13
13
|
case_sensitive?: boolean | undefined;
|
|
14
14
|
} | {
|
|
15
|
+
operation: "enclosing_function";
|
|
15
16
|
path: string;
|
|
16
17
|
line: number;
|
|
17
|
-
operation: "enclosing_function";
|
|
18
18
|
column?: number | undefined;
|
|
19
19
|
max_chars?: number | undefined;
|
|
20
20
|
} | {
|
|
21
21
|
operation: "function_source";
|
|
22
22
|
limit?: number | undefined;
|
|
23
23
|
cursor?: string | undefined;
|
|
24
|
+
function_id?: number | undefined;
|
|
24
25
|
path?: string | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
25
27
|
line?: number | undefined;
|
|
26
28
|
column?: number | undefined;
|
|
27
|
-
name?: string | undefined;
|
|
28
29
|
max_chars?: number | undefined;
|
|
29
|
-
function_id?: number | undefined;
|
|
30
30
|
} | {
|
|
31
|
-
name: string;
|
|
32
31
|
operation: "callers_of";
|
|
32
|
+
name: string;
|
|
33
33
|
limit?: number | undefined;
|
|
34
34
|
cursor?: string | undefined;
|
|
35
35
|
scope?: "file" | "workspace" | undefined;
|
|
36
36
|
path?: string | undefined;
|
|
37
37
|
match?: "exact" | "member" | undefined;
|
|
38
38
|
} | {
|
|
39
|
-
path: string;
|
|
40
39
|
operation: "imports";
|
|
40
|
+
path: string;
|
|
41
41
|
limit?: number | undefined;
|
|
42
42
|
cursor?: string | undefined;
|
|
43
43
|
}>;
|