From 175e16095e23ff5074c162b704e8fc9baa2d0102 Mon Sep 17 00:00:00 2001 From: Eric Dahl Date: Fri, 2 Oct 2026 14:17:39 -0400 Subject: [PATCH] Use American spelling; skip the vendored Yarn release Claude-Session: https://claude.ai/code/session_01XGS7UUxZFhvaK4bnErEfvW --- .american-spelling-allow | 4 ++++ .github/copilot-instructions.md | 2 +- app/dashboard/events/page.tsx | 2 +- tests/dashboard/routes-page.test.ts | 2 +- tests/http/headers.test.ts | 2 +- tests/lib/ws/connection-manager.test.ts | 4 ++-- 6 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 .american-spelling-allow diff --git a/.american-spelling-allow b/.american-spelling-allow new file mode 100644 index 0000000..9c285d2 --- /dev/null +++ b/.american-spelling-allow @@ -0,0 +1,4 @@ +# Words and paths the American-spelling check accepts (scripts/american_spelling.py in ericdahl-dev/.github). + +# Vendored Yarn release binary, checked in by `yarn set version`; not our code. +path: .yarn/releases/ diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index bb7fb29..dd95d9a 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -30,7 +30,7 @@ app/ api/ ingress/[routeSlug]/ # Public webhook ingestion endpoint nodes/pull/ # Node event polling endpoint - nodes/ack/ # Node event acknowledgement endpoint + nodes/ack/ # Node event acknowledgment endpoint admin/ # Admin API routes (events, nodes, routes) auth/ # Auth-related API routes version/ # Version endpoint diff --git a/app/dashboard/events/page.tsx b/app/dashboard/events/page.tsx index b725d77..4cbe44d 100644 --- a/app/dashboard/events/page.tsx +++ b/app/dashboard/events/page.tsx @@ -48,7 +48,7 @@ export default async function DashboardEventsPage() { { mockDbRoutesOrderBy.mockResolvedValue([]); mockDbNodesOrderBy.mockReset(); mockDbNodesOrderBy.mockResolvedValue([{ id: 'node-1', name: 'My Node' }]); - // Restore the routes/nodes alternating behaviour on from() + // Restore the routes/nodes alternating behavior on from() mockDbSelectFrom.mockReset(); mockDbSelectFrom .mockReturnValueOnce({ leftJoin: mockDbRoutesLeftJoin }) diff --git a/tests/http/headers.test.ts b/tests/http/headers.test.ts index d6abd0d..354c1a1 100644 --- a/tests/http/headers.test.ts +++ b/tests/http/headers.test.ts @@ -20,7 +20,7 @@ describe('headersToObject', () => { expect(result['x-custom-header']).toBe('value'); }); - test('normalises header names to lowercase', () => { + test('normalizes header names to lowercase', () => { const headers = new Headers(); headers.append('X-Request-ID', 'abc-123'); diff --git a/tests/lib/ws/connection-manager.test.ts b/tests/lib/ws/connection-manager.test.ts index ad86d5a..43db4e2 100644 --- a/tests/lib/ws/connection-manager.test.ts +++ b/tests/lib/ws/connection-manager.test.ts @@ -48,7 +48,7 @@ describe('connection-manager', () => { expect(isConnected('node-1')).toBe(false); }); - test('pushEventToNode sends serialised data to the WebSocket', async () => { + test('pushEventToNode sends serialized data to the WebSocket', async () => { const { addConnection, pushEventToNode } = await import( '@/app/lib/ws/connection-manager' ); @@ -81,7 +81,7 @@ describe('connection-manager', () => { expect(mockSend).not.toHaveBeenCalled(); }); - test('global map is initialised on first import if not present', async () => { + test('global map is initialized on first import if not present', async () => { global.__clawproxyWsConnections = undefined; await import('@/app/lib/ws/connection-manager'); expect(global.__clawproxyWsConnections).toBeInstanceOf(Map);