Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Resolve PR feedback
Vasek Mlejnskyb2783da44632
diff --git a/apps/web/package.json b/apps/web/package.jsonindex be9d7c2eb..119087c04 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -86,4 +86,4 @@"sharp": "^0.32.0","tailwind-scrollbar": "^3.0.5"}-}+}\ No newline at end of filediff --git a/apps/web/src/app/api/stream/sandbox/route.ts b/apps/web/src/app/api/stream/sandbox/route.tsindex af875e079..09282e39a 100644--- a/apps/web/src/app/api/stream/sandbox/route.ts+++ b/apps/web/src/app/api/stream/sandbox/route.ts@@ -14,14 +14,7 @@ const mux = new Mux({})export async function POST(request: Request) {- // TODO: UseG apiKey- // const apiKey = request.headers.get('X-API-Key')const { sandboxId } = await request.json()- console.log('sandboxId', sandboxId)-- // if (!apiKey) {- // return NextResponse.json({ error: 'Missing X-API-Key' }, { status: 400 })- // }if (!sandboxId) {return NextResponse.json({ error: 'Missing sandboxId' }, { status: 400 })diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsxindex 0f2f1083c..0587a02de 100644--- a/apps/web/src/app/layout.tsx+++ b/apps/web/src/app/layout.tsx@@ -37,18 +37,7 @@ declare global {}}-export default async function RootLayout({ children, params }) {- const isSandboxRoute = params?.sandboxId !== undefined-- if (isSandboxRoute) {- return (- <html lang="en">- <head></head>- <body>{children}</body>- </html>- )- }-+export default async function RootLayout({ children }) {const pages = await glob('**/*.mdx', { cwd: 'src/app/(docs)/docs' })const allSectionsEntries = (await Promise.all(pages.map(async filename => [diff --git a/apps/web/src/components/ui/Popover.tsx b/apps/web/src/components/ui/Popover.tsxindex 00a011e87..ce5e43fed 100644--- a/apps/web/src/components/ui/Popover.tsx+++ b/apps/web/src/components/ui/Popover.tsx@@ -16,7 +16,7 @@ const PopoverContent = React.forwardRef<<PopoverPrimitive.Portal><PopoverPrimitive.Contentref={ref}- align={align as any}+ align={align}sideOffset={sideOffset}className={cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.tsindex 1b6aa0d0c..b9b8f317d 100644--- a/apps/web/src/middleware.ts+++ b/apps/web/src/middleware.ts@@ -5,7 +5,6 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {if (req.method !== 'GET') return NextResponse.next()const url = new URL(req.nextUrl.toString())- console.log('url', url)url.protocol = 'https'url.port = ''diff --git a/apps/web/src/types/mux-player-react.d.ts b/apps/web/src/types/mux-player-react.d.tsindex 7c5d47e17..d8c736b60 100644--- a/apps/web/src/types/mux-player-react.d.ts+++ b/apps/web/src/types/mux-player-react.d.ts@@ -3,6 +3,10 @@ declare module '@mux/mux-player-react' {[key: string]: any;playbackId: string;metadata?: Record<string, any>;+ autoplay?: boolean;+ muted?: boolean;+ themeProps?: Record<string, any>;+ streamType?: 'on-demand' | 'live';}export default function MuxPlayer(props: MuxPlayerProps): JSX.Element