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

@@ -1,5 +1,4 @@
import { readdir } from 'fs/promises'
import { join } from 'path'
import { queryDaemonStatus } from '../daemon/state.js'
import { listLiveSessions } from '../cli/bg.js'
import {

View File

@@ -23,7 +23,7 @@ import {
import { OAUTH_BETA_HEADER } from '../constants/oauth.js'
import { isClaudeAISubscriber } from './auth.js'
import { has1mContext } from './context.js'
import { isEnvDefinedFalsy, isEnvTruthy } from './envUtils.js'
import { isEnvTruthy } from './envUtils.js'
import { getCanonicalName } from './model/model.js'
import { get3PModelCapabilityOverride } from './model/modelSupportOverrides.js'
import {

View File

@@ -37,7 +37,6 @@ import {
join,
parse,
relative,
sep,
} from 'path'
import picomatch from 'picomatch'
import { logEvent } from 'src/services/analytics/index.js'

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')
},