Skip to content

Commit 5fe709f

Browse files
committed
TypeScript SDK 1.2.0
1 parent 6e22c30 commit 5fe709f

File tree

12 files changed

+39
-129
lines changed

12 files changed

+39
-129
lines changed

typescript/agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@radix-ui/react-tooltip": "^1.2.8",
2121
"@radix-ui/react-use-controllable-state": "^1.2.2",
2222
"ai": "^5.0.13",
23-
"browser-use-sdk": "0.6.0",
23+
"browser-use-sdk": "1.2.0",
2424
"class-variance-authority": "^0.7.1",
2525
"clsx": "^2.1.1",
2626
"embla-carousel-react": "^8.6.0",

typescript/agent/pnpm-lock.yaml

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/discord/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"license": "ISC",
1414
"packageManager": "[email protected]",
1515
"dependencies": {
16-
"browser-use-sdk": "0.6.0",
16+
"browser-use-sdk": "1.2.0",
1717
"discord.js": "14.21.0",
1818
"express": "5.1.0"
1919
},

typescript/discord/pnpm-lock.yaml

Lines changed: 14 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/scrapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"@radix-ui/react-label": "2.1.7",
1414
"@radix-ui/react-slot": "1.2.3",
15-
"browser-use-sdk": "0.6.0",
15+
"browser-use-sdk": "1.2.0",
1616
"class-variance-authority": "0.7.1",
1717
"clsx": "2.1.1",
1818
"dotenv": "17.2.1",

typescript/scrapper/pnpm-lock.yaml

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/scrapper/src/app/api/scrape/[id]/route.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import { gtos } from "browser-use-sdk/lib/nextjs/server/utils";
2+
import { eq } from "drizzle-orm";
3+
14
import * as schema from "@/db/schema";
25
import { db } from "@/lib/db";
3-
import { gtos } from "@/lib/next";
46
import { zScrapperSchema } from "@/lib/prompt";
57
import { browseruse } from "@/lib/sdk";
6-
import { eq } from "drizzle-orm";
78

89
export async function GET(
910
request: Request,

typescript/scrapper/src/app/api/scrape/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function POST(request: NextRequest) {
2222

2323
const task = await browseruse.tasks.create({
2424
task: getAgentPrompt(name),
25-
structuredOutputJson: zScrapperSchema,
25+
schema: zScrapperSchema,
2626
});
2727

2828
const [entry] = await db

typescript/scrapper/src/app/api/webhook/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function POST(request: Request) {
5454
throw new Error(`Task ${task_id} not found on BrowserUse Cloud!`);
5555
}
5656

57-
const payload = buTask.doneOutput;
57+
const payload = buTask.parsedOutput;
5858

5959
if (!payload) {
6060
throw new Error(`Task ${task_id} has no output!`);

typescript/scrapper/src/app/live/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use client";
22

3+
import { useBrowserUse } from "browser-use-sdk/lib/nextjs/hooks/useBrowserUse";
34
import { TaskViewWithSchema } from "browser-use-sdk/lib/parse.mjs";
45
import { useParams } from "next/navigation";
56

6-
import { useBrowserUse } from "@/hooks/useBrowserUse";
77
import { ScrapperSchemaZod } from "@/lib/prompt";
88

99
export default function LivePage() {

0 commit comments

Comments
 (0)