| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Bump version to 2.2.1 Version sync across Types.swift, server.py, ghost-vision. README: badge, tarball URL, star count (500+), line count (~7,000). | 6 个月前 | |
Add self-learning recipes (ghost_learn) for v2.2.0 3 new MCP tools: ghost_learn_start, ghost_learn_stop, ghost_learn_status. User performs a task manually while Ghost OS observes via CGEvent tap + AX enrichment, then Claude synthesizes the recording into a replayable recipe. New files (Sources/GhostOS/Learning/): - LearningTypes.swift: ObservedAction, ElementContext, LearningSession, errors - LearningRecorder.swift: CGEvent tap lifecycle, background thread, os_unfair_lock - EventHandlers.swift: key/mouse/scroll handling, AX enrichment, secure field detection - AppSwitchDetector.swift: frontmost app polling for app switch detection - LearningDispatch.swift: MCP tool handlers with JSON serialization Modified files: - MCPTools.swift, MCPDispatch.swift: 3 new tool definitions and dispatch cases - Doctor.swift: Input Monitoring permission check (optional, warning only) - SetupWizard.swift: Optional Input Monitoring setup step - GHOST-MCP.md: Rule 13 (Self-Learning Mode), tool count 26->29 - README.md: What's New v2.2.0 section - Types.swift: Version bump to 2.2.0 Thread safety: os_unfair_lock on all shared state, lock-protected local copy pattern for app switch detection, max duration safety timer (600s). Privacy: 3-tier secure field detection, restricted bundle ID filtering. Reviewed by 2 adversarial review agents (P0/P1/P2 classification, all fixed). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> | 6 个月前 |