chore: 清理 4 处遗漏的未使用导入和参数

移除 autonomyStatus/betas/claudemd/executorCrossPlatform 中
未使用的导入和参数。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-05-05 20:05:50 +08:00
parent fcbc882232
commit 1ac18aec0d
4 changed files with 8 additions and 6 deletions

View File

@@ -39,7 +39,6 @@ import { sleep } from '../sleep.js'
import { CLI_CU_CAPABILITIES, CLI_HOST_BUNDLE_ID } from './common.js'
import { validateHwnd } from './win32/shared.js'
import { loadPlatform } from './platforms/index.js'
import type { Platform } from './platforms/index.js'
// ---------------------------------------------------------------------------
// Helpers for HWND-bound mode
@@ -197,7 +196,7 @@ function augmentScreenshot(
// Executor
// ---------------------------------------------------------------------------
export function createCrossPlatformExecutor(opts: {
export function createCrossPlatformExecutor(_opts: {
getMouseAnimationEnabled: () => boolean
getHideBeforeActionEnabled: () => boolean
}): ComputerExecutor {
@@ -499,7 +498,12 @@ $i = New-Object MUp+INPUT; $i.type=0; $i.mi.dwFlags=0x0004; [MUp]::SendInput(1,
await (this as any).mouseUp()
},
async scroll(x: number, y: number, dx: number, dy: number): Promise<void> {
async scroll(
_x: number,
_y: number,
dx: number,
dy: number,
): Promise<void> {
if (dy !== 0) await platform.input.scroll(dy, 'vertical')
if (dx !== 0) await platform.input.scroll(dx, 'horizontal')
},