From e5e0447fd0674a9e5acb6db18a0ec22be60b8ff8 Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 2 Dec 2026 01:39:56 +0100 Subject: [PATCH] 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. --- server/src/nest/assistant/assistant-agent.ts | 1 + .../unit/nest/assistant/assistant-agent.test.ts | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/server/src/nest/assistant/assistant-agent.ts b/server/src/nest/assistant/assistant-agent.ts index 7e88d4669..34f24aeee 100644 --- a/server/src/nest/assistant/assistant-agent.ts +++ b/server/src/nest/assistant/assistant-agent.ts @@ -34,6 +34,7 @@ import { type AssistantWeatherDay, type TrekCard, } from '@trek/shared'; + import { isDeepStrictEqual } from 'node:util'; type ToolArgs = Record; diff --git a/server/tests/unit/nest/assistant/assistant-agent.test.ts b/server/tests/unit/nest/assistant/assistant-agent.test.ts index b95ac1542..889559507 100644 --- a/server/tests/unit/nest/assistant/assistant-agent.test.ts +++ b/server/tests/unit/nest/assistant/assistant-agent.test.ts @@ -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 } }, + }, ], ]);