style(server): format the assistant proposal guard

The Server lint formatting check rejected the assistant agent and its regression test. Apply the repository Prettier configuration to those two files.
This commit is contained in:
Maurice
2026-12-02 01:39:56 +01:00
parent 4c05f6f051
commit e5e0447fd0
2 changed files with 13 additions and 3 deletions
@@ -34,6 +34,7 @@ import {
type AssistantWeatherDay,
type TrekCard,
} from '@trek/shared';
import { isDeepStrictEqual } from 'node:util';
type ToolArgs = Record<string, unknown>;
@@ -288,9 +288,18 @@ describe('runAgentLoop', () => {
it('holds one proposal when the model repeats the same packing item change in a step', async () => {
const t = setup([
[
{ type: 'tool-call', call: { id: 'first', name: 'create_packing_item', args: { name: 'Adapter', quantity: 2 } } },
{ type: 'tool-call', call: { id: 'repeat', name: 'create_packing_item', args: { quantity: 2, name: 'Adapter' } } },
{ type: 'tool-call', call: { id: 'other', name: 'create_packing_item', args: { name: 'Adapter', quantity: 3 } } },
{
type: 'tool-call',
call: { id: 'first', name: 'create_packing_item', args: { name: 'Adapter', quantity: 2 } },
},
{
type: 'tool-call',
call: { id: 'repeat', name: 'create_packing_item', args: { quantity: 2, name: 'Adapter' } },
},
{
type: 'tool-call',
call: { id: 'other', name: 'create_packing_item', args: { name: 'Adapter', quantity: 3 } },
},
],
]);