From 4e5a44b8dcc420af45b83a1c4b6500a57d8bce48 Mon Sep 17 00:00:00 2001 From: alvinfei Date: Mon, 26 Oct 2026 22:33:12 +0800 Subject: [PATCH] fix(memhub): pass the lint gate Format cli.test.ts, and mark the map's search form role as intentional: biome's useSemanticElements also fails main (#179 merge), and a wrapper would add a box around the flex row .map-search styles. Co-Authored-By: Claude Opus 5.5 (1M context) --- memhub/apps/cli/src/cli.test.ts | 12 +++++++++--- memhub/apps/web/src/MemoryMap.tsx | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/memhub/apps/cli/src/cli.test.ts b/memhub/apps/cli/src/cli.test.ts index 72f699f..e4d6f5e 100644 --- a/memhub/apps/cli/src/cli.test.ts +++ b/memhub/apps/cli/src/cli.test.ts @@ -833,13 +833,17 @@ describe("public One Memory CLI", () => { command: "upgrade", code: "restart failed", }); - expect(JSON.parse(streams.stderr())).toMatchObject({ rolled_back: false }); + expect(JSON.parse(streams.stderr())).toMatchObject({ + rolled_back: false, + }); // Product rule: the previous Runtime may predate the SDK migration gate, // so it is never restored after the migration was handed the home. expect(runtimeMocks.rollbackLocalInstall).not.toHaveBeenCalled(); expect(aliasMocks.rollbackManagedCliLink).not.toHaveBeenCalled(); expect(runtimeMocks.restartUserService).toHaveBeenCalledOnce(); - expect((runtimeMocks.restartUserService.mock.calls as unknown[][])[0]?.[0]).toMatchObject({ + expect( + (runtimeMocks.restartUserService.mock.calls as unknown[][])[0]?.[0], + ).toMatchObject({ dataDir: "/tmp/custom data", installRoot: "/tmp/install/current", }); @@ -987,7 +991,9 @@ describe("public One Memory CLI", () => { expect(runtimeMocks.rollbackLocalInstall).not.toHaveBeenCalled(); expect(aliasMocks.rollbackManagedCliLink).not.toHaveBeenCalled(); expect(runtimeMocks.restartUserService).toHaveBeenCalledOnce(); - expect((runtimeMocks.restartUserService.mock.calls as unknown[][])[0]?.[0]).toMatchObject({ + expect( + (runtimeMocks.restartUserService.mock.calls as unknown[][])[0]?.[0], + ).toMatchObject({ installRoot: "/tmp/install/current", }); }); diff --git a/memhub/apps/web/src/MemoryMap.tsx b/memhub/apps/web/src/MemoryMap.tsx index 16b9715..04caf1e 100644 --- a/memhub/apps/web/src/MemoryMap.tsx +++ b/memhub/apps/web/src/MemoryMap.tsx @@ -644,6 +644,7 @@ export function MemoryMap(props: Props) { ))} )} + {/* biome-ignore lint/a11y/useSemanticElements: the search form is the flex row .map-search styles; a wrapper would add a box around it. */}