How mawkler/maconomy-cli works
Main Components
a) Client-Side Components:
• CLI Interface Layer
• Domain Layer
• Infrastructure Layer
• Authentication Service
• HTTP Client
b) External Systems:
• Maconomy API
• SSO Authentication Service
• Browser (for authentication)
• File System (for config and cookie storage)
Architecture Pattern
The project follows a clean architecture pattern with clear separation of concerns, evident from the directory structure:
• Domain layer (core business logic)
• Infrastructure layer (external interactions)
• CLI layer (user interface)
[User] → [CLI Layer] → [Domain Layer] → [Infrastructure Layer] → [External Systems]
Important Details to Highlight
• Authentication flow through browser
• Cookie storage mechanism
• Configuration file interaction
• TimeSheet data flow
• Error handling paths
Specific Implementation Notes
Notes about:
• SSO authentication process
• Cookie management
• Config file location and format
• API interaction patterns
• Component types
• File locations
• Configuration requirements
This will create a comprehensive system design that accurately represents both the architectural patterns and the specific implementation details of this Maconomy CLI tool.