fix: align controller with OpenShell and NemoClaw
Merged verified controller compatibility, terminal, and inference UX fixes.
This commit is contained in:
@@ -11,10 +11,11 @@ const terminalLivePath = path.join(root, 'app/api/openshell/terminal/live/route.
|
||||
const terminalReadinessPath = path.join(root, 'app/api/openshell/terminal/readiness/route.ts')
|
||||
const telemetryPath = path.join(root, 'app/api/telemetry/real/route.ts')
|
||||
const openshellHostPath = path.join(root, 'app/lib/openshellHost.ts')
|
||||
const sandboxHealthPath = path.join(root, 'app/api/sandbox/[sandboxId]/health/route.ts')
|
||||
const packageJsonPath = path.join(root, 'package.json')
|
||||
const serverPath = path.join(root, 'server.mjs')
|
||||
|
||||
const [runtimeAuthoritySource, dashboardOpenSource, dashboardProxySource, terminalLiveSource, terminalReadinessSource, telemetrySource, openshellHostSource, packageJsonSource, serverSource] = await Promise.all([
|
||||
const [runtimeAuthoritySource, dashboardOpenSource, dashboardProxySource, terminalLiveSource, terminalReadinessSource, telemetrySource, openshellHostSource, sandboxHealthSource, packageJsonSource, serverSource] = await Promise.all([
|
||||
readFile(runtimeAuthorityPath, 'utf8'),
|
||||
readFile(dashboardOpenPath, 'utf8'),
|
||||
readFile(dashboardProxySharedPath, 'utf8'),
|
||||
@@ -22,6 +23,7 @@ const [runtimeAuthoritySource, dashboardOpenSource, dashboardProxySource, termin
|
||||
readFile(terminalReadinessPath, 'utf8'),
|
||||
readFile(telemetryPath, 'utf8'),
|
||||
readFile(openshellHostPath, 'utf8'),
|
||||
readFile(sandboxHealthPath, 'utf8'),
|
||||
readFile(packageJsonPath, 'utf8'),
|
||||
readFile(serverPath, 'utf8'),
|
||||
])
|
||||
@@ -52,6 +54,8 @@ assert.match(terminalReadinessSource, /const authority = resolveRuntimeAuthority
|
||||
|
||||
assert.match(telemetrySource, /authoritySource: "runtimeAuthority"/, 'inventory route must declare shared authority source')
|
||||
assert.match(telemetrySource, /authorities: authorities\.map\(/, 'inventory route must expose per-sandbox authority metadata')
|
||||
assert.match(openshellHostSource, /const OPENSHELL_GATEWAY = process\.env\.OPENSHELL_GATEWAY\?\.trim\(\) \|\| undefined/, 'OpenShell host commands must not force the legacy openshell gateway when NemoClaw has selected the nemoclaw gateway')
|
||||
assert.match(sandboxHealthSource, /stripAnsi/, 'sandbox health must strip OpenShell ANSI styling before parsing fields such as Phase')
|
||||
assert.match(openshellHostSource, /const canMintBootstrapFromCli = instance\.id === defaultInstance\.id/, 'bootstrap minting should only use CLI for the default OpenClaw instance')
|
||||
assert.match(openshellHostSource, /readSandboxOpenClawDashboardToken/, 'sandbox dashboard bootstrap must fall back to the sandbox OpenClaw token when CLI output is bare')
|
||||
assert.match(openshellHostSource, /openclaw dashboard', 15000\)\.catch/, 'sandbox dashboard bootstrap should let OpenClaw initialize before reading the fallback token')
|
||||
|
||||
Reference in New Issue
Block a user