Commit Graph

4 Commits

Author SHA1 Message Date
Peter Steinberger
d4fd96184c fix: Improve resume functionality and fix compilation warnings
- Fix resume logic to support latest session resumption without ID
- Add UUID validation to distinguish between session IDs and tasks
- Support --resume "task" to resume latest session with new task
- Update help text to clarify resume usage patterns
- Fix compilation warning for String comparison to nil

Now supports three usage patterns:
- --resume "" : show recent sessions
- --resume "task" : resume latest session with new task
- --resume <session-id> <task> : resume specific session

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-26 15:02:22 +02:00
Peter Steinberger
656fb478b0 refactor: Remove CLI subprocess AgentExecutor in favor of direct API calls
- Deleted AgentExecutor.swift which spawned CLI subprocesses
- Updated all tests to use AgentInternalExecutor instead of PeekabooCommandExecutor
- Fixed direct agent invocation with argument preprocessing in main.swift
- Fixed enum references in OpenAIAgent.swift for Swift 6 compatibility
- All agent functionality now uses direct PeekabooCore API calls for ~10x performance improvement

Benefits:
- Eliminated subprocess spawning overhead
- Removed JSON serialization/deserialization between processes
- Simplified error handling
- Better type safety with direct Swift API usage
- Consistent with project's migration to PeekabooCore services

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-26 15:02:22 +02:00
Peter Steinberger
5b08651e46 docs: Enhanced AI agent documentation and build instructions
- Added comprehensive AI agent section to README with real-world examples
- Explained two ways to invoke the agent (direct vs explicit command)
- Added behind-the-scenes explanation of agent command execution
- Included debugging tips with --verbose flag examples
- Updated Quick Start section with agent examples
- Added quick build instructions to CLAUDE.md for easy CLI compilation
- Build script now forces binary replacement with cp -f

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-26 15:02:22 +02:00
Peter Steinberger
d5b170adf9 feat: Reorganize repository structure for better code organization
- Move core libraries to Core/ directory (PeekabooCore, AXorcist)
- Move applications to Apps/ directory (Mac, CLI)
- Move TypeScript server to Server/ directory
- Move scripts to Scripts/ directory
- Archive deprecated PeekabooInspector (now integrated into Mac app)
- Update all build configurations and paths
- Update CI/CD workflows for new structure
- Fix build scripts to use new paths

This reorganization provides:
- Clear separation between core libraries, apps, and server
- Flattened Mac app structure (removed double nesting)
- Consistent naming conventions
- Better code sharing through PeekabooCore
- Easier maintenance and development
2025-07-26 15:02:20 +02:00