feat(minecraft): add REPL dashboard tab with live execution
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user