fix(desktop): fix lint errors and relax unused-vars rule

- Remove unused AgentEvent import from hub.ts
- Change @typescript-eslint/no-unused-vars to warn instead of error

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jiang Bohan 2026-02-04 16:57:41 +08:00
parent a098a78942
commit 2cf13511b7
2 changed files with 1 additions and 1 deletions

View file

@ -14,5 +14,6 @@ module.exports = {
'warn',
{ allowConstantExport: true },
],
'@typescript-eslint/no-unused-vars': 'warn',
},
}

View file

@ -8,7 +8,6 @@ import { ipcMain, type BrowserWindow } from 'electron'
import { Hub } from '../../../../src/hub/hub.js'
import type { ConnectionState } from '@multica/sdk'
import type { AsyncAgent } from '../../../../src/agent/async-agent.js'
import type { AgentEvent } from '@mariozechner/pi-agent-core'
/**
* Extract plain text from AgentMessage content (string or content block array).