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:
Rin
2026-02-18 11:14:08 +08:00
committed by Neko Ayaka
parent 1c942a84c8
commit 54b3bfdc06
17 changed files with 417 additions and 1057 deletions
@@ -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(),
},
}