From 468c6170a08d15ea7406e1b86ed5c1f9214fb3a2 Mon Sep 17 00:00:00 2001 From: gavrielc Date: Wed, 1 Apr 2026 21:50:59 +0300 Subject: [PATCH] style: run prettier and eslint on src/ Co-Authored-By: Claude Opus 4.6 (1M context) --- src/container-runtime.test.ts | 8 ++++++-- src/index.ts | 4 +++- src/ipc.ts | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/container-runtime.test.ts b/src/container-runtime.test.ts index fd43286..dbb2bbc 100644 --- a/src/container-runtime.test.ts +++ b/src/container-runtime.test.ts @@ -48,8 +48,12 @@ describe('stopContainer', () => { }); it('rejects names with shell metacharacters', () => { - expect(() => stopContainer('foo; rm -rf /')).toThrow('Invalid container name'); - expect(() => stopContainer('foo$(whoami)')).toThrow('Invalid container name'); + expect(() => stopContainer('foo; rm -rf /')).toThrow( + 'Invalid container name', + ); + expect(() => stopContainer('foo$(whoami)')).toThrow( + 'Invalid container name', + ); expect(() => stopContainer('foo`id`')).toThrow('Invalid container name'); expect(mockExecSync).not.toHaveBeenCalled(); }); diff --git a/src/index.ts b/src/index.ts index e186c40..a6b74cf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -410,7 +410,9 @@ async function runAgent( const isStaleSession = sessionId && output.error && - /no conversation found|ENOENT.*\.jsonl|session.*not found/i.test(output.error); + /no conversation found|ENOENT.*\.jsonl|session.*not found/i.test( + output.error, + ); if (isStaleSession) { logger.warn( diff --git a/src/ipc.ts b/src/ipc.ts index a454fdf..e171671 100644 --- a/src/ipc.ts +++ b/src/ipc.ts @@ -441,9 +441,9 @@ export async function processTaskIpc( ); break; } - // Defense in depth: agent cannot set isMain via IPC. - // Preserve isMain from the existing registration so IPC config - // updates (e.g. adding additionalMounts) don't strip the flag. + // Defense in depth: agent cannot set isMain via IPC. + // Preserve isMain from the existing registration so IPC config + // updates (e.g. adding additionalMounts) don't strip the flag. const existingGroup = registeredGroups[data.jid]; deps.registerGroup(data.jid, { name: data.name,