|
17 | 17 | __version__ = "1.0.3" |
18 | 18 | __author__ = "Code Assistant Manager Contributors" |
19 | 19 |
|
20 | | -# Legacy imports (for backward compatibility) |
21 | | -from .menu.menus import display_centered_menu, select_model |
22 | | -from .menu.base import Menu, SimpleMenu, FilterableMenu, Colors |
23 | 20 | from .config import ConfigManager |
24 | | -from .endpoints import EndpointManager |
25 | | - |
26 | | -# New design pattern imports |
27 | | -from .value_objects import ( |
28 | | - EndpointURL, |
29 | | - APIKey, |
30 | | - ModelID, |
31 | | - EndpointName, |
32 | | - ClientName, |
33 | | -) |
34 | 21 | from .domain_models import ( |
35 | | - ProxySettings, |
36 | 22 | EndpointConfig, |
37 | 23 | ExecutionContext, |
38 | 24 | ExecutionResult, |
| 25 | + ProxySettings, |
39 | 26 | ToolMetadata, |
40 | 27 | ) |
41 | | -from .factory import ( |
42 | | - ToolFactory, |
43 | | - ServiceContainer, |
44 | | - register_tool, |
45 | | - get_container, |
46 | | -) |
47 | | -from .services import ( |
48 | | - ConfigurationService, |
49 | | - ModelService, |
50 | | - ToolInstallationService, |
51 | | - ExecutionContextBuilder, |
52 | | -) |
53 | | -from .validators import ( |
54 | | - ValidationPipeline, |
55 | | - ConfigValidator, |
56 | | -) |
| 28 | +from .endpoints import EndpointManager |
57 | 29 | from .exceptions import ( |
| 30 | + CacheError, |
58 | 31 | CodeAssistantManagerError, |
59 | 32 | ConfigurationError, |
60 | | - ToolExecutionError, |
61 | | - ToolInstallationError, |
62 | 33 | EndpointError, |
| 34 | + MCPError, |
63 | 35 | ModelFetchError, |
64 | | - ValidationError, |
65 | | - SecurityError, |
66 | 36 | NetworkError, |
| 37 | + SecurityError, |
67 | 38 | TimeoutError, |
68 | | - CacheError, |
69 | | - MCPError, |
| 39 | + ToolExecutionError, |
| 40 | + ToolInstallationError, |
| 41 | + ValidationError, |
70 | 42 | create_error_handler, |
71 | 43 | ) |
| 44 | +from .factory import ServiceContainer, ToolFactory, get_container, register_tool |
| 45 | +from .menu.base import Colors, FilterableMenu, Menu, SimpleMenu |
| 46 | + |
| 47 | +# Legacy imports (for backward compatibility) |
| 48 | +from .menu.menus import display_centered_menu, select_model |
| 49 | +from .services import ( |
| 50 | + ConfigurationService, |
| 51 | + ExecutionContextBuilder, |
| 52 | + ModelService, |
| 53 | + ToolInstallationService, |
| 54 | +) |
| 55 | +from .validators import ConfigValidator, ValidationPipeline |
| 56 | + |
| 57 | +# New design pattern imports |
| 58 | +from .value_objects import APIKey, ClientName, EndpointName, EndpointURL, ModelID |
72 | 59 |
|
73 | 60 | __all__ = [ |
74 | 61 | # Legacy exports |
|
81 | 68 | "ConfigManager", |
82 | 69 | "EndpointManager", |
83 | 70 | # Value Objects |
84 | | - 'EndpointURL', |
85 | | - 'APIKey', |
86 | | - 'ModelID', |
87 | | - 'EndpointName', |
88 | | - 'ClientName', |
| 71 | + "EndpointURL", |
| 72 | + "APIKey", |
| 73 | + "ModelID", |
| 74 | + "EndpointName", |
| 75 | + "ClientName", |
89 | 76 | # Domain Models |
90 | | - 'ProxySettings', |
91 | | - 'EndpointConfig', |
92 | | - 'ExecutionContext', |
93 | | - 'ExecutionResult', |
94 | | - 'ToolMetadata', |
| 77 | + "ProxySettings", |
| 78 | + "EndpointConfig", |
| 79 | + "ExecutionContext", |
| 80 | + "ExecutionResult", |
| 81 | + "ToolMetadata", |
95 | 82 | # Factory |
96 | | - 'ToolFactory', |
97 | | - 'ServiceContainer', |
98 | | - 'register_tool', |
99 | | - 'get_container', |
| 83 | + "ToolFactory", |
| 84 | + "ServiceContainer", |
| 85 | + "register_tool", |
| 86 | + "get_container", |
100 | 87 | # Services |
101 | | - 'ConfigurationService', |
102 | | - 'ModelService', |
103 | | - 'ToolInstallationService', |
104 | | - 'ExecutionContextBuilder', |
| 88 | + "ConfigurationService", |
| 89 | + "ModelService", |
| 90 | + "ToolInstallationService", |
| 91 | + "ExecutionContextBuilder", |
105 | 92 | # Validators |
106 | | - 'ValidationPipeline', |
107 | | - 'ConfigValidator', |
| 93 | + "ValidationPipeline", |
| 94 | + "ConfigValidator", |
108 | 95 | # Exceptions |
109 | | - 'CodeAssistantManagerError', |
110 | | - 'ConfigurationError', |
111 | | - 'ToolExecutionError', |
112 | | - 'ToolInstallationError', |
113 | | - 'EndpointError', |
114 | | - 'ModelFetchError', |
115 | | - 'ValidationError', |
116 | | - 'SecurityError', |
117 | | - 'NetworkError', |
118 | | - 'TimeoutError', |
119 | | - 'CacheError', |
120 | | - 'MCPError', |
121 | | - 'create_error_handler', |
| 96 | + "CodeAssistantManagerError", |
| 97 | + "ConfigurationError", |
| 98 | + "ToolExecutionError", |
| 99 | + "ToolInstallationError", |
| 100 | + "EndpointError", |
| 101 | + "ModelFetchError", |
| 102 | + "ValidationError", |
| 103 | + "SecurityError", |
| 104 | + "NetworkError", |
| 105 | + "TimeoutError", |
| 106 | + "CacheError", |
| 107 | + "MCPError", |
| 108 | + "create_error_handler", |
122 | 109 | ] |
0 commit comments