mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 08:15:53 +00:00
chore: 清理 4 处遗漏的未使用导入和参数
移除 autonomyStatus/betas/claudemd/executorCrossPlatform 中 未使用的导入和参数。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { readdir } from 'fs/promises'
|
import { readdir } from 'fs/promises'
|
||||||
import { join } from 'path'
|
|
||||||
import { queryDaemonStatus } from '../daemon/state.js'
|
import { queryDaemonStatus } from '../daemon/state.js'
|
||||||
import { listLiveSessions } from '../cli/bg.js'
|
import { listLiveSessions } from '../cli/bg.js'
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import {
|
|||||||
import { OAUTH_BETA_HEADER } from '../constants/oauth.js'
|
import { OAUTH_BETA_HEADER } from '../constants/oauth.js'
|
||||||
import { isClaudeAISubscriber } from './auth.js'
|
import { isClaudeAISubscriber } from './auth.js'
|
||||||
import { has1mContext } from './context.js'
|
import { has1mContext } from './context.js'
|
||||||
import { isEnvDefinedFalsy, isEnvTruthy } from './envUtils.js'
|
import { isEnvTruthy } from './envUtils.js'
|
||||||
import { getCanonicalName } from './model/model.js'
|
import { getCanonicalName } from './model/model.js'
|
||||||
import { get3PModelCapabilityOverride } from './model/modelSupportOverrides.js'
|
import { get3PModelCapabilityOverride } from './model/modelSupportOverrides.js'
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ import {
|
|||||||
join,
|
join,
|
||||||
parse,
|
parse,
|
||||||
relative,
|
relative,
|
||||||
sep,
|
|
||||||
} from 'path'
|
} from 'path'
|
||||||
import picomatch from 'picomatch'
|
import picomatch from 'picomatch'
|
||||||
import { logEvent } from 'src/services/analytics/index.js'
|
import { logEvent } from 'src/services/analytics/index.js'
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ import { sleep } from '../sleep.js'
|
|||||||
import { CLI_CU_CAPABILITIES, CLI_HOST_BUNDLE_ID } from './common.js'
|
import { CLI_CU_CAPABILITIES, CLI_HOST_BUNDLE_ID } from './common.js'
|
||||||
import { validateHwnd } from './win32/shared.js'
|
import { validateHwnd } from './win32/shared.js'
|
||||||
import { loadPlatform } from './platforms/index.js'
|
import { loadPlatform } from './platforms/index.js'
|
||||||
import type { Platform } from './platforms/index.js'
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Helpers for HWND-bound mode
|
// Helpers for HWND-bound mode
|
||||||
@@ -197,7 +196,7 @@ function augmentScreenshot(
|
|||||||
// Executor
|
// Executor
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
export function createCrossPlatformExecutor(opts: {
|
export function createCrossPlatformExecutor(_opts: {
|
||||||
getMouseAnimationEnabled: () => boolean
|
getMouseAnimationEnabled: () => boolean
|
||||||
getHideBeforeActionEnabled: () => boolean
|
getHideBeforeActionEnabled: () => boolean
|
||||||
}): ComputerExecutor {
|
}): 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()
|
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 (dy !== 0) await platform.input.scroll(dy, 'vertical')
|
||||||
if (dx !== 0) await platform.input.scroll(dx, 'horizontal')
|
if (dx !== 0) await platform.input.scroll(dx, 'horizontal')
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user