Skip to content

Commit 1ac18ae

Browse files
chore: 清理 4 处遗漏的未使用导入和参数
移除 autonomyStatus/betas/claudemd/executorCrossPlatform 中 未使用的导入和参数。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent fcbc882 commit 1ac18ae

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/utils/autonomyStatus.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { readdir } from 'fs/promises'
2-
import { join } from 'path'
32
import { queryDaemonStatus } from '../daemon/state.js'
43
import { listLiveSessions } from '../cli/bg.js'
54
import {

src/utils/betas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
import { OAUTH_BETA_HEADER } from '../constants/oauth.js'
2424
import { isClaudeAISubscriber } from './auth.js'
2525
import { has1mContext } from './context.js'
26-
import { isEnvDefinedFalsy, isEnvTruthy } from './envUtils.js'
26+
import { isEnvTruthy } from './envUtils.js'
2727
import { getCanonicalName } from './model/model.js'
2828
import { get3PModelCapabilityOverride } from './model/modelSupportOverrides.js'
2929
import {

src/utils/claudemd.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import {
3737
join,
3838
parse,
3939
relative,
40-
sep,
4140
} from 'path'
4241
import picomatch from 'picomatch'
4342
import { logEvent } from 'src/services/analytics/index.js'

src/utils/computerUse/executorCrossPlatform.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import { sleep } from '../sleep.js'
3939
import { CLI_CU_CAPABILITIES, CLI_HOST_BUNDLE_ID } from './common.js'
4040
import { validateHwnd } from './win32/shared.js'
4141
import { loadPlatform } from './platforms/index.js'
42-
import type { Platform } from './platforms/index.js'
4342

4443
// ---------------------------------------------------------------------------
4544
// Helpers for HWND-bound mode
@@ -197,7 +196,7 @@ function augmentScreenshot(
197196
// Executor
198197
// ---------------------------------------------------------------------------
199198

200-
export function createCrossPlatformExecutor(opts: {
199+
export function createCrossPlatformExecutor(_opts: {
201200
getMouseAnimationEnabled: () => boolean
202201
getHideBeforeActionEnabled: () => boolean
203202
}): ComputerExecutor {
@@ -499,7 +498,12 @@ $i = New-Object MUp+INPUT; $i.type=0; $i.mi.dwFlags=0x0004; [MUp]::SendInput(1,
499498
await (this as any).mouseUp()
500499
},
501500

502-
async scroll(x: number, y: number, dx: number, dy: number): Promise<void> {
501+
async scroll(
502+
_x: number,
503+
_y: number,
504+
dx: number,
505+
dy: number,
506+
): Promise<void> {
503507
if (dy !== 0) await platform.input.scroll(dy, 'vertical')
504508
if (dx !== 0) await platform.input.scroll(dx, 'horizontal')
505509
},

0 commit comments

Comments
 (0)