Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ target/
# pnpm

test/
.vercel
4 changes: 2 additions & 2 deletions app/api/agent/stream/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ export async function GET(request: Request) {
send("start", {
sessionId,
goal,
model: "computer-use-preview-09-2025",
model: "computer-use-preview-10-2025",
init,
startedAt: new Date().toISOString(),
});

const agent = stagehand.agent({
provider: "google",
model: "computer-use-preview-09-2025",
model: "computer-use-preview-10-2025",
options: {
apiKey: process.env.GOOGLE_API_KEY,
},
Expand Down
2 changes: 1 addition & 1 deletion app/api/session/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function createSession(timezone?: string) {
width: 2560,
height: 1440,
},
// @ts-ignore
//@ts-expect-error - not present in the types, but valid
os: "windows",
blockAds: true,
advancedStealth: true
Expand Down
6 changes: 6 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { NextConfig } from "next";
import path from "path";

const securityHeaders = [
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
Expand All @@ -21,6 +22,11 @@ const securityHeaders = [
];

const nextConfig: NextConfig = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
webpack: (config: any) => {
config.resolve.alias["@stagehand-ts"] = path.resolve(__dirname, "sdk/stagehand-ts");
return config;
},
async headers() {
return [
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
},
"dependencies": {
"@browserbasehq/sdk": "^2.6.0",
"@browserbasehq/stagehand": "file:/Users/kylejeong/Desktop/private-cua-exp/stagehand-ts",
"@tailwindcss/typography": "^0.5.19",
"@browserbasehq/stagehand": "file:./sdk/stagehand-ts",
"@vercel/analytics": "^1.4.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
Expand All @@ -32,6 +31,7 @@
"devDependencies": {
"@eslint/eslintrc": "^3",
"@eslint/js": "^9.34.0",
"@tailwindcss/typography": "^0.5.19",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
Expand Down
32 changes: 19 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading