Skip to content

Commit 99347e2

Browse files
committed
Merge branch 'development'
2 parents e14516d + 2c1761f commit 99347e2

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

packages/bytebot-agent/src/agent/agent.processor.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ export class AgentProcessor {
166166
updatedAt: new Date(),
167167
taskId,
168168
summaryId: null,
169-
userId: null,
170169
role: Role.USER,
171170
content: [
172171
{
@@ -250,7 +249,6 @@ export class AgentProcessor {
250249
updatedAt: new Date(),
251250
taskId,
252251
summaryId: null,
253-
userId: null,
254252
role: Role.USER,
255253
content: [
256254
{

packages/bytebot-agent/src/main.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ async function bootstrap() {
1818
app.use(json({ limit: '50mb' }));
1919
app.use(urlencoded({ limit: '50mb', extended: true }));
2020

21-
// Set global prefix for all routes
22-
app.setGlobalPrefix('api');
23-
2421
// Enable CORS
2522
app.enableCors({
2623
origin: '*',

packages/bytebot-ui/src/app/api/[[...path]]/route.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import { NextRequest } from "next/server";
55
/* -------------------------------------------------------------------- */
66
async function proxy(req: NextRequest, path: string[]): Promise<Response> {
77
const BASE_URL = process.env.BYTEBOT_AGENT_BASE_URL!;
8-
const subPath = path.length ? `/${path.join("/")}` : "";
9-
const url = `${BASE_URL}/api${subPath}${req.nextUrl.search}`;
8+
const subPath = path.length ? path.join("/") : "";
9+
const url = `${BASE_URL}/${subPath}${req.nextUrl.search}`;
1010

1111
// Extract cookies from the incoming request
12-
const cookies = req.headers.get('cookie');
12+
const cookies = req.headers.get("cookie");
1313

1414
const init: RequestInit = {
1515
method: req.method,
16-
headers: {
16+
headers: {
1717
"Content-Type": "application/json",
18-
...(cookies && { "Cookie": cookies })
18+
...(cookies && { Cookie: cookies }),
1919
},
2020
body:
2121
req.method === "GET" || req.method === "HEAD"
@@ -31,11 +31,11 @@ async function proxy(req: NextRequest, path: string[]): Promise<Response> {
3131

3232
// Create response headers
3333
const responseHeaders = new Headers({
34-
"Content-Type": "application/json"
34+
"Content-Type": "application/json",
3535
});
3636

3737
// Add Set-Cookie headers if they exist
38-
setCookieHeaders.forEach(cookie => {
38+
setCookieHeaders.forEach((cookie) => {
3939
responseHeaders.append("Set-Cookie", cookie);
4040
});
4141

packages/bytebot-ui/src/types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export interface Task {
9292
error?: string;
9393
result?: unknown;
9494
model: Model;
95-
userId?: string;
9695
user?: User;
9796
files?: File[];
9897
}

0 commit comments

Comments
 (0)