refactor(minecraft): remove legacy action adapter and simplify execution model
- Remove unused ActionLLMHandler and createActionNeuriAgent from adapter.ts - Replace execution:'parallel'/'sequential' with readonly:true for query tools - Add 'skip' action for explicit no-op turns - Remove error suggestion logic (now handled by brain retry) - Simplify TaskExecutor to use ActionAgent.performAction directly - Update tests to use createNeuriAgent() without bot parameter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { BlackboardEvent, ClientCommand, LLMTraceEvent, LogEvent, QueueEvent, ReflexStateEvent, SaliencyEvent, ServerEvent, TraceEvent } from './types'
|
||||
import type { BlackboardEvent, BrainStateEvent, ClientCommand, LLMTraceEvent, LogEvent, QueueEvent, ReflexStateEvent, SaliencyEvent, ServerEvent, TraceEvent } from './types'
|
||||
|
||||
import { DebugServer } from './server'
|
||||
|
||||
@@ -73,14 +73,16 @@ export class DebugService {
|
||||
this.server.broadcast(event)
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Emit a blackboard state update
|
||||
* Emit a brain state update
|
||||
*/
|
||||
public updateBlackboard(state: BlackboardEvent['state'] | { goal?: string, thought?: string, strategy?: string }): void {
|
||||
public emitBrainState(state: Omit<BrainStateEvent, 'timestamp'>): void {
|
||||
const event: ServerEvent = {
|
||||
type: 'blackboard',
|
||||
type: 'brain_state',
|
||||
payload: {
|
||||
state,
|
||||
...state,
|
||||
timestamp: Date.now(),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user