The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#95511)
hermes-seaeye[bot]86ae906e88b2
diff --git a/apps/desktop/electron/git-repo-scan.test.ts b/apps/desktop/electron/git-repo-scan.test.tsindex 2347e0de744..683b56cd3ac 100644--- a/apps/desktop/electron/git-repo-scan.test.ts+++ b/apps/desktop/electron/git-repo-scan.test.ts@@ -117,9 +117,7 @@ describe('macOS TCC-protected media exclusions (issue #57611 salvage)', () => {const dev = makeRepoAt(root, 'dev', 'proj')const music = makeRepoAt(root, 'Music', 'samples')- expect(foundRoots(await scanGitRepos([root], { enabled: true, platform: 'linux' }))).toEqual(- [dev, music].sort()- )+ expect(foundRoots(await scanGitRepos([root], { enabled: true, platform: 'linux' }))).toEqual([dev, music].sort())})})diff --git a/apps/desktop/electron/git-repo-scan.ts b/apps/desktop/electron/git-repo-scan.tsindex 265d97bdc63..ccad0333b3a 100644--- a/apps/desktop/electron/git-repo-scan.ts+++ b/apps/desktop/electron/git-repo-scan.ts@@ -35,6 +35,7 @@ const LIBRARY_PACKAGE_SUFFIXES = ['.photoslibrary', '.musiclibrary', '.tvlibraryfunction isLibraryPackage(name: string): boolean {const lower = String(name).toLowerCase()+return LIBRARY_PACKAGE_SUFFIXES.some(suffix => lower.endsWith(suffix))}@@ -172,18 +173,21 @@ export async function scanGitRepos(roots: string[], options: RepoScanOptions = {}const skipTccProtectedPaths = (pathOptions.platform ?? process.platform) === 'darwin'+const subdirs = entries.filter(entry => entry.isDirectory() && !entry.name.startsWith('.') && !JUNK_DIRS.has(entry.name)).filter(entry => {if (!skipTccProtectedPaths) {return true}+// Depth-0 children of a scan root only: a nested dir named "Music"// inside a project is fine, and an explicitly supplied media root// arrives AS a root (never as a depth-0 child), so it still scans.if (depth === 0 && MEDIA_ROOT_DIRS.has(entry.name)) {return false}+return !isLibraryPackage(entry.name)}).map(entry => path.join(dir, entry.name))diff --git a/apps/desktop/electron/power-resume-remote-revalidation.test.ts b/apps/desktop/electron/power-resume-remote-revalidation.test.tsindex 2f55c95f483..7da53d4cc11 100644--- a/apps/desktop/electron/power-resume-remote-revalidation.test.ts+++ b/apps/desktop/electron/power-resume-remote-revalidation.test.ts@@ -83,8 +83,22 @@ describe('revalidateSuspectPooledRemoteBackends (#93910)', () => {const result = await revalidateSuspectPooledRemoteBackends({entries: [- ['default', { connectionPromise: Promise.resolve(descriptor('http://127.0.0.1:9')), process: { pid: 4 }, remoteBaseUrl: null }],- ['work', { connectionPromise: Promise.resolve(descriptor('http://127.0.0.1:9')), process: { pid: 5 }, remoteBaseUrl: '' }]+ [+ 'default',+ {+ connectionPromise: Promise.resolve(descriptor('http://127.0.0.1:9')),+ process: { pid: 4 },+ remoteBaseUrl: null+ }+ ],+ [+ 'work',+ {+ connectionPromise: Promise.resolve(descriptor('http://127.0.0.1:9')),+ process: { pid: 5 },+ remoteBaseUrl: ''+ }+ ]],log: vi.fn(),probe,@@ -181,6 +195,7 @@ describe('attachPowerResumeRemoteRevalidation (#93910)', () => {it('kicks one bounded revalidation per resume, coalescing resume + unlock-screen bursts (no hot loop)', async () => {const powerMonitor = fakePowerMonitor()let resolveRevalidate: (() => void) | undefined+const revalidate = vi.fn(() =>new Promise<void>(resolve => {@@ -220,11 +235,13 @@ describe('attachPowerResumeRemoteRevalidation (#93910)', () => {it('swallows and logs a rejected revalidation without wedging future wakes', async () => {const powerMonitor = fakePowerMonitor()const log = vi.fn()+const revalidate = vi.fn(async () => {throw new Error('probe exploded')})let now = 5_000_000+const trigger = attachPowerResumeRemoteRevalidation({log,now: () => now,diff --git a/apps/desktop/src/global.d.ts b/apps/desktop/src/global.d.tsindex e1fe714bf4e..774094ab08f 100644--- a/apps/desktop/src/global.d.ts+++ b/apps/desktop/src/global.d.ts@@ -180,7 +180,9 @@ declare global {// materially edited so the renderer can dispose (and re-dial) the// secondary gateways scoped to it. Optional: older Electron mains// don't emit it.- onChanged?: (callback: (payload: { connectionId: string; reason: 'removed' | 'saved' | 'updated' }) => void) => () => void+ onChanged?: (+ callback: (payload: { connectionId: string; reason: 'removed' | 'saved' | 'updated' }) => void+ ) => () => void}sshConfigHosts: () => Promise<DesktopSshHostsResult>sshResolveHost: (host: string) => Promise<DesktopSshResolveResult>