@phi-code-admin/phi-code 0.76.5 → 0.76.6
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/extensions/phi/browser.ts +10 -10
- package/package.json +1 -1
|
@@ -137,7 +137,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
137
137
|
),
|
|
138
138
|
timeoutMs: Type.Optional(Type.Number()),
|
|
139
139
|
}),
|
|
140
|
-
execute: async (params) => {
|
|
140
|
+
execute: async (_toolCallId, params) => {
|
|
141
141
|
const api = await getBrowserApi();
|
|
142
142
|
const res = await api.navigate(params);
|
|
143
143
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|
|
@@ -169,7 +169,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
169
169
|
]),
|
|
170
170
|
),
|
|
171
171
|
}),
|
|
172
|
-
execute: async (params) => {
|
|
172
|
+
execute: async (_toolCallId, params) => {
|
|
173
173
|
const api = await getBrowserApi();
|
|
174
174
|
const res = await api.extract(params);
|
|
175
175
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|
|
@@ -190,7 +190,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
190
190
|
tabId: Type.String(),
|
|
191
191
|
fullPage: Type.Optional(Type.Boolean()),
|
|
192
192
|
}),
|
|
193
|
-
execute: async (params) => {
|
|
193
|
+
execute: async (_toolCallId, params) => {
|
|
194
194
|
const api = await getBrowserApi();
|
|
195
195
|
const res = await api.screenshot(params);
|
|
196
196
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|
|
@@ -219,7 +219,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
219
219
|
]),
|
|
220
220
|
),
|
|
221
221
|
}),
|
|
222
|
-
execute: async (params) => {
|
|
222
|
+
execute: async (_toolCallId, params) => {
|
|
223
223
|
const api = await getBrowserApi();
|
|
224
224
|
const res = await api.search(params);
|
|
225
225
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|
|
@@ -251,7 +251,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
251
251
|
]),
|
|
252
252
|
),
|
|
253
253
|
}),
|
|
254
|
-
execute: async (params) => {
|
|
254
|
+
execute: async (_toolCallId, params) => {
|
|
255
255
|
const api = await getBrowserApi();
|
|
256
256
|
const res = await api.click(params);
|
|
257
257
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|
|
@@ -277,7 +277,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
277
277
|
pressEnter: Type.Optional(Type.Boolean()),
|
|
278
278
|
delayMs: Type.Optional(Type.Number()),
|
|
279
279
|
}),
|
|
280
|
-
execute: async (params) => {
|
|
280
|
+
execute: async (_toolCallId, params) => {
|
|
281
281
|
const api = await getBrowserApi();
|
|
282
282
|
const res = await api.type(params);
|
|
283
283
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|
|
@@ -305,7 +305,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
305
305
|
ref: Type.Optional(Type.String()),
|
|
306
306
|
pixels: Type.Optional(Type.Number()),
|
|
307
307
|
}),
|
|
308
|
-
execute: async (params) => {
|
|
308
|
+
execute: async (_toolCallId, params) => {
|
|
309
309
|
const api = await getBrowserApi();
|
|
310
310
|
const res = await api.scroll(params);
|
|
311
311
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|
|
@@ -326,7 +326,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
326
326
|
parameters: Type.Object({
|
|
327
327
|
tabId: Type.String(),
|
|
328
328
|
}),
|
|
329
|
-
execute: async (params) => {
|
|
329
|
+
execute: async (_toolCallId, params) => {
|
|
330
330
|
const api = await getBrowserApi();
|
|
331
331
|
const res = await api.snapshot(params);
|
|
332
332
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|
|
@@ -344,7 +344,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
344
344
|
parameters: Type.Object({
|
|
345
345
|
tabId: Type.String(),
|
|
346
346
|
}),
|
|
347
|
-
execute: async (params) => {
|
|
347
|
+
execute: async (_toolCallId, params) => {
|
|
348
348
|
const api = await getBrowserApi();
|
|
349
349
|
const res = await api.closeTab(params);
|
|
350
350
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|
|
@@ -362,7 +362,7 @@ export default function browserExtension(pi: ExtensionAPI) {
|
|
|
362
362
|
parameters: Type.Object({
|
|
363
363
|
userId: Type.Optional(Type.String()),
|
|
364
364
|
}),
|
|
365
|
-
execute: async (params) => {
|
|
365
|
+
execute: async (_toolCallId, params) => {
|
|
366
366
|
const api = await getBrowserApi();
|
|
367
367
|
const res = await api.listTabs(params);
|
|
368
368
|
return { content: [{ type: "text", text: jsonResult(res) }] };
|