feat: add backend-local OpenShell host helpers

- execute Docker/Kubectl from dashboard backend on host
- add dashboard open endpoint and terminal probe endpoint
- wire sandbox action buttons to backend-local helpers
This commit is contained in:
Mark McKeen
2026-03-29 09:40:42 -06:00
parent 32ad2f506f
commit dad980f18f
4 changed files with 84 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
import { NextResponse } from 'next/server'
import { getOpenClawDashboardUrl } from '../../../../lib/openshellHost'
export async function GET() {
const dashboardUrl = getOpenClawDashboardUrl()
return NextResponse.json({
ok: true,
dashboardUrl,
openInNewTab: true,
loopbackOnly: true,
note: 'OpenClaw Dashboard is loopback-only on the host. For remote browser access, add a reverse proxy route or rebind the gateway.'
})
}