macOS screencapture 输出 PNG,但代码硬编码 mimeType 为 image/jpeg, 导致 API 报错 "specified using image/jpeg but appears to be image/png"。 改为通过 magic bytes 检测实际图片格式。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| deniedApps.ts | ||
| executor.ts | ||
| imageResize.ts | ||
| index.ts | ||
| keyBlocklist.ts | ||
| mcpServer.ts | ||
| pixelCompare.ts | ||
| sentinelApps.ts | ||
| subGates.ts | ||
| toolCalls.ts | ||
| tools.ts | ||
| types.ts | ||