feat: add sandbox dashboard and terminal actions
- add sandbox overview buttons for OpenClaw dashboard and OpenShell terminal - add backend routes to resolve dashboard endpoint and terminal attach stub - surface operator messages in sandbox overview panel
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
|
||||
export async function GET() {
|
||||
return NextResponse.json({
|
||||
dashboardUrl: 'http://127.0.0.1:18789/',
|
||||
reachableFromServer: true,
|
||||
loopbackOnly: true,
|
||||
note: 'OpenClaw Gateway Dashboard is currently bound to loopback on the host. To expose it in a user browser, proxy it through this dashboard service or rebind the gateway.'
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
|
||||
export async function GET(request: Request) {
|
||||
const { searchParams } = new URL(request.url)
|
||||
const sandboxId = searchParams.get('sandboxId') || 'unknown'
|
||||
|
||||
return NextResponse.json({
|
||||
ok: true,
|
||||
sandboxId,
|
||||
attached: false,
|
||||
note: 'Embedded terminal transport is not live yet. This route is the integration point for attaching to an OpenShell terminal session.',
|
||||
suggestedCommand: `openshell sandbox exec ${sandboxId} -- /bin/sh`
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user