feat(minecraft): add REPL dashboard tab with live execution

This commit is contained in:
Rin
2026-02-18 11:14:38 +08:00
committed by Neko Ayaka
parent 6d7db23f6c
commit cce492f685
10 changed files with 834 additions and 145 deletions
+26 -3
View File
@@ -1,4 +1,17 @@
import type { BlackboardEvent, BrainStateEvent, ClientCommand, LLMTraceEvent, LogEvent, QueueEvent, ReflexStateEvent, SaliencyEvent, ServerEvent, TraceEvent } from './types'
import type {
BlackboardEvent,
BrainStateEvent,
ClientCommand,
LLMTraceEvent,
LogEvent,
QueueEvent,
ReflexStateEvent,
ReplExecutionResultEvent,
ReplStateEvent,
SaliencyEvent,
ServerEvent,
TraceEvent,
} from './types'
import { DebugServer } from './server'
@@ -73,8 +86,6 @@ export class DebugService {
this.server.broadcast(event)
}
/**
* Emit a brain state update
*/
@@ -214,6 +225,18 @@ export class DebugService {
payload: payload as any,
})
break
case 'debug:repl_state':
this.server.broadcast({
type: 'debug:repl_state',
payload: payload as ReplStateEvent,
})
break
case 'debug:repl_result':
this.server.broadcast({
type: 'debug:repl_result',
payload: payload as ReplExecutionResultEvent,
})
break
default:
// For unknown types, emit as log
this.log('DEBUG', `Unknown event type: ${type}`, { payload })