(timeLimit?: number)
| 92 | } |
| 93 | |
| 94 | private async getLastCopiedContent(timeLimit?: number): Promise<{ |
| 95 | type: 'text' | 'image' | 'file' |
| 96 | data: string | Array<{ path: string; name: string; isDirectory: boolean }> |
| 97 | timestamp: number |
| 98 | } | null> { |
| 99 | try { |
| 100 | return await clipboardManager.getLastCopiedContent(timeLimit) |
| 101 | } catch (error) { |
| 102 | console.error('[System] 获取最后复制内容失败:', error) |
| 103 | return null |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | private async getFrontmostApp(): Promise<{ |
| 108 | name: string |
no outgoing calls
no test coverage detected