2026-03-31 23:59:04 +08:00
|
|
|
|
# TODO
|
|
|
|
|
|
|
|
|
|
|
|
尽可能实现下面的包, 使得与主包的关系完全吻合
|
|
|
|
|
|
|
|
|
|
|
|
## Packages
|
|
|
|
|
|
|
2026-04-01 01:08:12 +08:00
|
|
|
|
- [x] `url-handler-napi` — URL 处理 NAPI 模块 (签名修正,保持 null fallback)
|
|
|
|
|
|
- [x] `modifiers-napi` — 修饰键检测 NAPI 模块 (Bun FFI + Carbon)
|
|
|
|
|
|
- [x] `audio-capture-napi` — 音频捕获 NAPI 模块 (SoX/arecord)
|
|
|
|
|
|
- [x] `color-diff-napi` — 颜色差异计算 NAPI 模块 (纯 TS 实现)
|
|
|
|
|
|
- [x] `image-processor-napi` — 图像处理 NAPI 模块 (sharp + osascript 剪贴板)
|
2026-03-31 23:59:04 +08:00
|
|
|
|
|
2026-04-01 08:48:04 +08:00
|
|
|
|
- [x] `@ant/computer-use-swift` — Computer Use Swift 原生模块 (macOS JXA/screencapture 实现)
|
feat: 升级 @ant/computer-use-mcp — 类型安全 stub + sentinel apps
- types.ts: 替换所有 any 为真实类型 (CoordinateMode, CuSubGates,
Logger, GrantFlags, CuPermissionRequest/Response, ComputerUseHostAdapter)
- index.ts: 所有导出类型化 (DisplayGeometry, FrontmostApp, InstalledApp,
RunningApp, ScreenshotResult, CuCallToolResult 等);
targetImageSize() 实现真实缩放逻辑;
bindSessionContext() 返回类型正确的空调度器
- sentinelApps.ts: 添加 10 个 macOS 敏感应用 (Terminal, iTerm2,
Finder, System Preferences 等) 及其分类
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 08:36:12 +08:00
|
|
|
|
- [x] `@ant/computer-use-mcp` — Computer Use MCP 服务 (类型安全 stub + sentinel apps + targetImageSize)
|
2026-04-01 08:27:08 +08:00
|
|
|
|
- [x] `@ant/computer-use-input` — Computer Use 输入模块 (macOS AppleScript/JXA 实现)
|
|
|
|
|
|
<!-- - [ ] `@ant/claude-for-chrome-mcp` — Chrome MCP 扩展 -->
|
2026-04-01 01:40:27 +08:00
|
|
|
|
|
|
|
|
|
|
## 工程化能力
|
|
|
|
|
|
|
|
|
|
|
|
- [x] 代码格式化与校验
|
2026-04-01 04:57:34 +08:00
|
|
|
|
- [x] 冗余代码检查
|
2026-04-01 01:44:55 +08:00
|
|
|
|
- [x] git hook 的配置
|
2026-04-01 07:17:09 +08:00
|
|
|
|
- [x] 代码健康度检查
|
fix: 调优 Biome lint 规则,关闭 formatter 避免大规模代码变更
- 关闭 formatter 和 organizeImports(保持原始代码风格,减少 git diff)
- lint/format script 改为 biome lint(只做规则检查)
- 新增关闭规则:noConsole, noArrayIndexKey, noConfusingLabels,
useIterableCallbackReturn, noVoidTypeReturn, noConstantCondition,
noUnusedFunctionParameters, noUselessEmptyExport, useArrowFunction,
useLiteralKeys, useImportType, useNodejsImportProtocol
- 零源码改动,仅调整配置文件
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 07:34:29 +08:00
|
|
|
|
- [x] Biome lint 规则调优(适配反编译代码,关闭格式化避免大规模 diff)
|
2026-04-01 02:08:38 +08:00
|
|
|
|
- [x] 单元测试基础设施搭建 (test runner 配置)
|
2026-04-01 03:47:47 +08:00
|
|
|
|
- [x] CI/CD 流水线 (GitHub Actions)
|