Commit Graph

11 Commits

Author SHA1 Message Date
claude-code-best
975b4876cc feat: 实现 @ant/computer-use-input — macOS 键鼠模拟
使用 AppleScript + JXA (JavaScript for Automation) 实现完整 API:
- moveMouse: CGEvent 鼠标移动
- key/keys: System Events 键盘输入(支持修饰键组合)
- mouseLocation: CGEvent 查询当前鼠标位置
- mouseButton: CGEvent 鼠标点击/按下/释放
- mouseScroll: CGEvent 滚轮事件
- typeText: System Events 文本输入
- getFrontmostAppInfo: 获取前台应用 bundleId + 名称

兼容 require() 调用方式(所有方法作为命名导出)。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 08:27:08 +08:00
claude-code-best
30e863c9b8 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
claude-code-best
173d18bea8 feat: 添加代码健康度检查脚本
scripts/health-check.ts 汇总项目各维度指标:
代码规模、lint 问题、测试结果、冗余代码、构建状态和产物大小。
新增 health script 一键运行。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 07:17:09 +08:00
claude-code-best
c587a64320 feat: 添加 knip 冗余代码检查工具
配置 knip.json 检测未使用的文件、exports、依赖等。
新增 check:unused script,运行 knip-bun 扫描死代码。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 04:57:34 +08:00
claude-code-best
17ec716dbf feat: 添加 GitHub Actions CI 流水线
push/PR 时自动运行 lint → test → build 三步检查。
使用 oven-sh/setup-bun 配置 Bun 环境。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 03:47:47 +08:00
claude-code-best
e443a8fa51 feat: 搭建单元测试基础设施 — Bun test runner + 示例测试
添加 bunfig.toml 配置、test script,以及三组示例测试:
- src/utils/array.ts (intersperse, count, uniq)
- src/utils/set.ts (difference, intersects, every, union)
- packages/color-diff-napi (ansi256FromRgb, colorToEscape, detectLanguage 等)

41 tests, 0 failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 02:08:38 +08:00
claude-code-best
9dd1eeff2f feat: 添加 todo 2026-04-01 01:49:58 +08:00
claude-code-best
4319afc08f feat: 配置 git pre-commit hook — 提交前自动运行 Biome 检查
使用 .githooks/ 目录 + core.hooksPath 方案,零依赖。
prepare script 确保 bun install 后自动激活。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 01:44:55 +08:00
claude-code-best
074ea844dc feat: 配置 Biome 代码格式化与校验工具
添加 biome.json 配置(formatter + linter + organizeImports),
.editorconfig 统一编辑器配置,package.json 新增 lint/format scripts。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 01:40:27 +08:00
claude-code-best
f10d179ace docs: 更新 TODO.md 标记 NAPI 包全部完成
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 01:08:12 +08:00
claude-code-best
58f1bd49cb feat: 加入 TODO; 开始夜间行者模式 2026-03-31 23:59:04 +08:00