fix(stage-ui): add required fields and correct tool index in character-orchestrator.test.ts

This commit is contained in:
Rin
2026-01-07 01:41:31 +08:00
parent 0cde81d2a9
commit c69efa6f1a
@@ -33,7 +33,7 @@ function mockedStore<TStoreDef extends () => unknown>(
infer Getters,
infer Actions
>
? Store<
? Store<
Id,
State,
Record<string, never>,
@@ -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<typeof sparkCommandSchema>)
}