Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 5.29 KB

File metadata and controls

38 lines (32 loc) · 5.29 KB

目录说明:src/utils/computerUse

目录定位

该目录是 src/utils 下的子模块,围绕 computerUse 这一主题组织实现文件。

目录快照

  • 相对路径:src/utils/computerUse
  • 直接文件数:15
  • 直接子目录数:0
  • 递归文件数:15
  • 主要文件类型:.ts x 13、.tsx x 2

依赖关系观察

  • 该目录最常引用的仓库内目录:src/utils (25)、src/services/analytics (4)、src (3)、src/services/mcp (3)、src/bootstrap (2)、src/components (1)、src/components/permissions/ComputerUseApproval (1)
  • 最常引用该目录的仓库内目录:src/services/mcp (3)、src/services/analytics (1)

直接文件说明

文件 行数 导出/关键符号 说明
appNames.ts 196 filterAppsForDescription 基础辅助逻辑;导出符号以 filterAppsForDescription 为主,顶部注释说明:Filter and sanitize installed-app data for inclusion in the request_access tool description. Ported from Cowork's a...
cleanup.ts 86 cleanupComputerUseAfterTurn 基础辅助逻辑;导出符号以 cleanupComputerUseAfterTurn 为主,顶部注释说明:Turn-end cleanup for the chicago MCP surface: auto-unhide apps that prepareForAction hid, then release the file-bas...
common.ts 61 COMPUTER_USE_MCP_SERVER_NAME, CLI_HOST_BUNDLE_ID, getTerminalBundleId, CLI_CU_CAPABILITIES, isComputerUseMCPServer 基础辅助逻辑;导出符号以 COMPUTER_USE_MCP_SERVER_NAME, CLI_HOST_BUNDLE_ID, getTerminalBundleId, CLI_CU_CAPABILITIES 为主,顶部注释说明:Sentinel bundle ID for the frontmost gate. Claude Code is a terminal — it has no window. This never matches a real `N...
computerUseLock.ts 215 AcquireResult, CheckResult, checkComputerUseLock, isLockHeldLocally, tryAcquireComputerUseLock, releaseComputerUseLock 基础辅助逻辑;导出符号以 AcquireResult, CheckResult, checkComputerUseLock, isLockHeldLocally 为主,结合所在目录可判断其服务于 src/utils/computerUse 这条功能线。
drainRunLoop.ts 79 retainPump, releasePump, drainRunLoop 基础辅助逻辑;导出符号以 retainPump, releasePump, drainRunLoop 为主,顶部注释说明:Shared CFRunLoop pump. Swift's four @MainActor async methods (captureExcluding, captureRegion, apps.listInstalled, ...
escHotkey.ts 54 registerEscHotkey, unregisterEscHotkey, notifyExpectedEscape 基础辅助逻辑;导出符号以 registerEscHotkey, unregisterEscHotkey, notifyExpectedEscape 为主,顶部注释说明:Global Escape → abort. Mirrors Cowork's escAbort.ts but without Electron: CGEventTap via @ant/computer-use-swift....
executor.ts 658 createCliExecutor, unhideComputerUseApps 基础辅助逻辑;导出符号以 createCliExecutor, unhideComputerUseApps 为主,结合所在目录可判断其服务于 src/utils/computerUse 这条功能线。
gates.ts 72 getChicagoEnabled, getChicagoSubGates, getChicagoCoordinateMode 基础辅助逻辑;导出符号以 getChicagoEnabled, getChicagoSubGates, getChicagoCoordinateMode 为主,结合所在目录可判断其服务于 src/utils/computerUse 这条功能线。
hostAdapter.ts 69 getComputerUseHostAdapter 基础辅助逻辑;导出符号以 getComputerUseHostAdapter 为主,顶部注释说明:Process-lifetime singleton. Built once on first CU tool call; native modules (both @ant/computer-use-input and `@an...
inputLoader.ts 30 requireComputerUseInput 基础辅助逻辑;导出符号以 requireComputerUseInput 为主,顶部注释说明:Package's js/index.js reads COMPUTER_USE_INPUT_NODE_PATH (baked by build-with-plugins.ts on darwin targets, unset oth...
mcpServer.ts 106 createComputerUseMcpServerForCli, runComputerUseMcpServer 基础辅助逻辑;导出符号以 createComputerUseMcpServerForCli, runComputerUseMcpServer 为主,顶部注释说明:Enumerate installed apps, timed. Fails soft — if Spotlight is slow or claude-swift throws, the tool description just ...
setup.ts 53 setupComputerUseMCP 基础辅助逻辑;导出符号以 setupComputerUseMCP 为主,顶部注释说明:Build the dynamic MCP config + allowed tool names. Mirror of setupClaudeInChrome. The mcp__computer-use__* tools ...
swiftLoader.ts 23 requireComputerUseSwift 基础辅助逻辑;导出符号以 requireComputerUseSwift 为主,顶部注释说明:Package's js/index.js reads COMPUTER_USE_SWIFT_NODE_PATH (baked by build-with-plugins.ts on darwin targets, unset oth...
toolRendering.tsx 125 getComputerUseMCPRenderingOverrides 工具实现或工具适配层;导出符号以 getComputerUseMCPRenderingOverrides 为主,顶部注释说明:Rendering overrides for mcp__computer-use__* tools. Spread into the MCP tool object in client.ts after the defaul...
wrapper.tsx 336 buildSessionContext, getComputerUseMCPToolOverrides 界面组件或交互视图;导出符号以 buildSessionContext, getComputerUseMCPToolOverrides 为主,顶部注释说明:The .call() override — thin adapter between ToolUseContext and bindSessionContext. Spread into the MCP tool obj...

直接子目录说明

该目录没有直接子目录。