From c69efa6f1a62352d0bbb39eb5910f2b76f22fd5f Mon Sep 17 00:00:00 2001 From: Rin Date: Wed, 7 Jan 2026 01:34:24 +0800 Subject: [PATCH] fix(stage-ui): add required fields and correct tool index in `character-orchestrator.test.ts` --- .../stage-ui/src/stores/character-orchestrator.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/stage-ui/src/stores/character-orchestrator.test.ts b/packages/stage-ui/src/stores/character-orchestrator.test.ts index 9ea8cb46d..341dc2fe1 100644 --- a/packages/stage-ui/src/stores/character-orchestrator.test.ts +++ b/packages/stage-ui/src/stores/character-orchestrator.test.ts @@ -33,7 +33,7 @@ function mockedStore unknown>( infer Getters, infer Actions > -? Store< + ? Store< Id, State, Record, @@ -92,10 +92,13 @@ describe('store character-orchestrator', () => { mockedStore(useLLM).stream = mockStream mockedStore(useLLM).stream.mockImplementation(async (_model: string, _provider: unknown, _messages: unknown, options: any) => { if (options?.tools?.length) { - await options.tools[0].execute({ commands: [{ + await options.tools[1].execute({ commands: [{ destinations: ['minecraft'], intent: 'action', priority: 'critical', + interrupt: 'false', + ack: 'ok', + guidance: null, }] } satisfies z.infer) }