You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(cli): polish CLAUDE.md and condense README.md
Improve CLAUDE.md with more accurate architecture details including
Watermill pub/sub messaging, dependency injection patterns, and local
config file support. Condense README.md from 550 to 80 lines while
preserving essential information.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Hook management for shell integrations (bash, zsh, fish)
68
68
69
69
-**daemon/**: Daemon service implementation
70
-
-Socket-based IPC communication with CLI
71
-
-Async command processing and batch synchronization
70
+
-Unix domain socket-based IPC communication with CLI
71
+
-Watermill pub/sub messaging for async command processing
72
72
- Channel-based architecture for concurrent operations
73
73
74
74
-**model/**: Core business logic and data models
@@ -80,10 +80,11 @@ go fmt ./...
80
80
### Key Architectural Patterns
81
81
82
82
1.**Command Pattern**: Each CLI command implements the `urfave/cli/v2` command interface
83
-
2.**Service Pattern**: ConfigService interface for configuration management
83
+
2.**Service Pattern**: Interfaces (ConfigService, AIService, CommandService) with dependency injection via `commands.InjectVar()` and `commands.InjectAIService()`
84
84
3.**IPC Communication**: Unix domain sockets for CLI-daemon communication
85
-
4.**Batch Processing**: Commands are buffered locally and synced in batches
86
-
5.**Encryption**: Hybrid RSA/AES-GCM encryption for secure command transmission
85
+
4.**Pub/Sub Messaging**: Watermill GoChannel for internal daemon message routing
86
+
5.**Batch Processing**: Commands are buffered locally and synced in batches
87
+
6.**Encryption**: Hybrid RSA/AES-GCM encryption for secure command transmission
0 commit comments