omnimancer-cli 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. omnimancer/__init__.py +42 -0
  2. omnimancer/__main__.py +9 -0
  3. omnimancer/cli/__init__.py +8 -0
  4. omnimancer/cli/agent_manager.py +826 -0
  5. omnimancer/cli/agent_wizard.py +944 -0
  6. omnimancer/cli/approval_formatter.py +734 -0
  7. omnimancer/cli/approval_integration.py +734 -0
  8. omnimancer/cli/approval_prompt.py +1286 -0
  9. omnimancer/cli/batch_approval_display.py +617 -0
  10. omnimancer/cli/batch_approval_filters.py +729 -0
  11. omnimancer/cli/batch_operation_monitor.py +775 -0
  12. omnimancer/cli/commands/performance_cmd.py +624 -0
  13. omnimancer/cli/commands.py +757 -0
  14. omnimancer/cli/completion_handler.py +281 -0
  15. omnimancer/cli/config_setup_wizard.py +783 -0
  16. omnimancer/cli/dynamic_commands.py +371 -0
  17. omnimancer/cli/handlers/__init__.py +18 -0
  18. omnimancer/cli/handlers/agent_handler.py +865 -0
  19. omnimancer/cli/handlers/agent_persona_handler.py +1048 -0
  20. omnimancer/cli/handlers/custom_agent_handler.py +352 -0
  21. omnimancer/cli/handlers/permissions_handler.py +1609 -0
  22. omnimancer/cli/interface.py +6695 -0
  23. omnimancer/cli/performance_dashboard.py +612 -0
  24. omnimancer/core/__init__.py +34 -0
  25. omnimancer/core/agent/__init__.py +256 -0
  26. omnimancer/core/agent/agent_config.py +715 -0
  27. omnimancer/core/agent/agent_switcher.py +668 -0
  28. omnimancer/core/agent/approval_context.py +460 -0
  29. omnimancer/core/agent/approval_dialog.py +902 -0
  30. omnimancer/core/agent/approval_interface.py +628 -0
  31. omnimancer/core/agent/approval_manager.py +760 -0
  32. omnimancer/core/agent/cli_integration.py +470 -0
  33. omnimancer/core/agent/config.py +845 -0
  34. omnimancer/core/agent/custom_agent_integration.py +654 -0
  35. omnimancer/core/agent/diff_renderer.py +706 -0
  36. omnimancer/core/agent/file_content_display.py +503 -0
  37. omnimancer/core/agent/file_modification_workflow.py +658 -0
  38. omnimancer/core/agent/file_system_manager.py +1790 -0
  39. omnimancer/core/agent/input_handler.py +614 -0
  40. omnimancer/core/agent/metrics_collector.py +771 -0
  41. omnimancer/core/agent/optimization_engine.py +729 -0
  42. omnimancer/core/agent/performance_monitor.py +717 -0
  43. omnimancer/core/agent/persona.py +870 -0
  44. omnimancer/core/agent/persona_validator.py +672 -0
  45. omnimancer/core/agent/program_executor.py +748 -0
  46. omnimancer/core/agent/proposed_changes_integration.py +663 -0
  47. omnimancer/core/agent/read_before_write_errors.py +492 -0
  48. omnimancer/core/agent/read_before_write_ui.py +647 -0
  49. omnimancer/core/agent/rich_renderer.py +763 -0
  50. omnimancer/core/agent/status_config.py +238 -0
  51. omnimancer/core/agent/status_core.py +446 -0
  52. omnimancer/core/agent/status_integrated_engine.py +540 -0
  53. omnimancer/core/agent/status_manager.py +878 -0
  54. omnimancer/core/agent/status_ui_components.py +535 -0
  55. omnimancer/core/agent/template_applicator.py +548 -0
  56. omnimancer/core/agent/terminal_status_listener.py +394 -0
  57. omnimancer/core/agent/token_tracker.py +679 -0
  58. omnimancer/core/agent/types.py +60 -0
  59. omnimancer/core/agent/web_client.py +745 -0
  60. omnimancer/core/agent/workflow_orchestrator.py +826 -0
  61. omnimancer/core/agent_engine.py +1625 -0
  62. omnimancer/core/agent_mode_manager.py +706 -0
  63. omnimancer/core/agent_progress_ui.py +545 -0
  64. omnimancer/core/chat_manager.py +141 -0
  65. omnimancer/core/config_manager.py +2199 -0
  66. omnimancer/core/config_migration.py +772 -0
  67. omnimancer/core/config_provider.py +1974 -0
  68. omnimancer/core/config_security_validator.py +393 -0
  69. omnimancer/core/config_validator.py +768 -0
  70. omnimancer/core/conversation_manager.py +352 -0
  71. omnimancer/core/engine.py +787 -0
  72. omnimancer/core/enhanced_input.py +523 -0
  73. omnimancer/core/env_loader.py +83 -0
  74. omnimancer/core/fallback_manager.py +568 -0
  75. omnimancer/core/health_monitor.py +462 -0
  76. omnimancer/core/history_manager.py +462 -0
  77. omnimancer/core/mcp_integration_layer.py +878 -0
  78. omnimancer/core/models.py +1889 -0
  79. omnimancer/core/provider_capabilities.py +403 -0
  80. omnimancer/core/provider_initializer.py +450 -0
  81. omnimancer/core/provider_registry.py +432 -0
  82. omnimancer/core/security/__init__.py +16 -0
  83. omnimancer/core/security/approval_workflow.py +406 -0
  84. omnimancer/core/security/audit_logger.py +511 -0
  85. omnimancer/core/security/permission_controller.py +511 -0
  86. omnimancer/core/security/sandbox_manager.py +379 -0
  87. omnimancer/core/security/security_manager.py +530 -0
  88. omnimancer/core/setup_wizard.py +345 -0
  89. omnimancer/core/setup_wizard_core.py +449 -0
  90. omnimancer/core/setup_wizard_guide_generator.py +376 -0
  91. omnimancer/core/setup_wizard_provider_setup.py +454 -0
  92. omnimancer/core/setup_wizard_ui.py +317 -0
  93. omnimancer/core/setup_wizard_validation.py +371 -0
  94. omnimancer/core/signal_handler.py +174 -0
  95. omnimancer/mcp/__init__.py +11 -0
  96. omnimancer/mcp/client.py +725 -0
  97. omnimancer/mcp/manager.py +649 -0
  98. omnimancer/providers/__init__.py +24 -0
  99. omnimancer/providers/azure.py +608 -0
  100. omnimancer/providers/base.py +262 -0
  101. omnimancer/providers/bedrock.py +711 -0
  102. omnimancer/providers/claude.py +426 -0
  103. omnimancer/providers/claude_code.py +406 -0
  104. omnimancer/providers/cohere.py +412 -0
  105. omnimancer/providers/factory.py +988 -0
  106. omnimancer/providers/gemini.py +708 -0
  107. omnimancer/providers/mistral.py +554 -0
  108. omnimancer/providers/ollama.py +510 -0
  109. omnimancer/providers/openai.py +362 -0
  110. omnimancer/providers/openrouter.py +709 -0
  111. omnimancer/providers/perplexity.py +476 -0
  112. omnimancer/providers/vertex.py +617 -0
  113. omnimancer/providers/xai.py +484 -0
  114. omnimancer/ui/__init__.py +6 -0
  115. omnimancer/ui/cancellation_handler.py +235 -0
  116. omnimancer/ui/progress_indicator.py +318 -0
  117. omnimancer/utils/__init__.py +22 -0
  118. omnimancer/utils/error_handler.py +589 -0
  119. omnimancer/utils/errors.py +667 -0
  120. omnimancer/utils/retry.py +238 -0
  121. omnimancer_cli-0.1.0.dist-info/METADATA +413 -0
  122. omnimancer_cli-0.1.0.dist-info/RECORD +126 -0
  123. omnimancer_cli-0.1.0.dist-info/WHEEL +5 -0
  124. omnimancer_cli-0.1.0.dist-info/entry_points.txt +4 -0
  125. omnimancer_cli-0.1.0.dist-info/licenses/LICENSE +21 -0
  126. omnimancer_cli-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,256 @@
1
+ """Omnimancer agent core components."""
2
+
3
+ from .agent_switcher import (
4
+ AgentSwitcher,
5
+ SessionState,
6
+ SwitchContext,
7
+ SwitchOperationError,
8
+ SwitchState,
9
+ SwitchValidationError,
10
+ get_agent_switcher,
11
+ set_agent_switcher,
12
+ )
13
+ from .approval_context import (
14
+ ApprovalContext,
15
+ ApprovalDecision,
16
+ FileChange,
17
+ FileOperationType,
18
+ OperationDetails,
19
+ OperationStatus,
20
+ SecurityFlags,
21
+ create_command_execution_context,
22
+ create_file_operation_context,
23
+ create_web_request_context,
24
+ )
25
+ from .approval_dialog import (
26
+ ApprovalDialog,
27
+ DialogOptions,
28
+ DialogSection,
29
+ DialogState,
30
+ create_approval_dialog,
31
+ show_quick_approval,
32
+ )
33
+ from .config import AgentConfig
34
+ from .file_system_manager import FileSystemManager
35
+ from .input_handler import (
36
+ InputMode,
37
+ InputState,
38
+ InteractiveInputHandler,
39
+ KeyAction,
40
+ KeyBinding,
41
+ create_custom_input_handler,
42
+ create_input_handler,
43
+ )
44
+ from .metrics_collector import (
45
+ AggregatedMetric,
46
+ AggregationMethod,
47
+ MetricCategory,
48
+ MetricValue,
49
+ PerformanceMetricsCollector,
50
+ SystemResourceSnapshot,
51
+ get_metrics_collector,
52
+ initialize_metrics_collection,
53
+ set_metrics_collector,
54
+ shutdown_metrics_collection,
55
+ )
56
+ from .optimization_engine import (
57
+ AlertRule,
58
+ AlertTrigger,
59
+ OptimizationCategory,
60
+ OptimizationEngine,
61
+ OptimizationRule,
62
+ TrendAnalyzer,
63
+ get_optimization_engine,
64
+ initialize_optimization_engine,
65
+ set_optimization_engine,
66
+ shutdown_optimization_engine,
67
+ )
68
+ from .performance_monitor import (
69
+ AlertLevel,
70
+ MetricType,
71
+ OptimizationSuggestion,
72
+ OptimizationType,
73
+ PerformanceAlert,
74
+ PerformanceMonitor,
75
+ PerformanceSnapshot,
76
+ get_performance_monitor,
77
+ initialize_performance_monitoring,
78
+ set_performance_monitor,
79
+ shutdown_performance_monitoring,
80
+ )
81
+ from .persona import (
82
+ AgentPersona,
83
+ CodingPersona,
84
+ CreativePersona,
85
+ GeneralPersona,
86
+ PerformancePersona,
87
+ PersonaCapability,
88
+ PersonaCategory,
89
+ PersonaConfiguration,
90
+ PersonaManager,
91
+ PersonaMetadata,
92
+ PersonaStatus,
93
+ ResearchPersona,
94
+ get_persona_manager,
95
+ set_persona_manager,
96
+ )
97
+ from .persona_validator import (
98
+ PersonaValidator,
99
+ ValidationCategory,
100
+ ValidationIssue,
101
+ ValidationResult,
102
+ ValidationSeverity,
103
+ get_persona_validator,
104
+ set_persona_validator,
105
+ )
106
+ from .status_core import (
107
+ AgentEvent,
108
+ AgentOperation,
109
+ AgentStatus,
110
+ EventListener,
111
+ EventType,
112
+ OperationStatus,
113
+ OperationType,
114
+ )
115
+ from .status_manager import UnifiedStatusManager as AgentStatusManager
116
+ from .status_manager import (
117
+ get_status_manager,
118
+ initialize_status_system,
119
+ shutdown_status_system,
120
+ )
121
+ from .template_applicator import (
122
+ ApplicationContext,
123
+ ApplicationOptions,
124
+ ApplicationResult,
125
+ ApplicationStage,
126
+ TemplateApplicator,
127
+ get_template_applicator,
128
+ set_template_applicator,
129
+ )
130
+ from .token_tracker import (
131
+ DetailedTokenUsage,
132
+ TokenCost,
133
+ TokenCountMethod,
134
+ TokenUsageTracker,
135
+ UsageCategory,
136
+ UsagePattern,
137
+ get_token_tracker,
138
+ set_token_tracker,
139
+ )
140
+ from .web_client import WebClient
141
+
142
+ __all__ = [
143
+ "FileSystemManager",
144
+ "WebClient",
145
+ "AgentConfig",
146
+ "AgentStatus",
147
+ "OperationType",
148
+ "OperationStatus",
149
+ "EventType",
150
+ "AgentOperation",
151
+ "AgentEvent",
152
+ "EventListener",
153
+ "AgentStatusManager",
154
+ "get_status_manager",
155
+ "initialize_status_system",
156
+ "shutdown_status_system",
157
+ "PersonaCapability",
158
+ "PersonaCategory",
159
+ "PersonaStatus",
160
+ "PersonaMetadata",
161
+ "PersonaConfiguration",
162
+ "AgentPersona",
163
+ "PersonaManager",
164
+ "CodingPersona",
165
+ "ResearchPersona",
166
+ "CreativePersona",
167
+ "PerformancePersona",
168
+ "GeneralPersona",
169
+ "get_persona_manager",
170
+ "set_persona_manager",
171
+ "AgentSwitcher",
172
+ "SessionState",
173
+ "SwitchContext",
174
+ "SwitchState",
175
+ "SwitchValidationError",
176
+ "SwitchOperationError",
177
+ "get_agent_switcher",
178
+ "set_agent_switcher",
179
+ "PersonaValidator",
180
+ "ValidationResult",
181
+ "ValidationIssue",
182
+ "ValidationSeverity",
183
+ "ValidationCategory",
184
+ "get_persona_validator",
185
+ "set_persona_validator",
186
+ "TemplateApplicator",
187
+ "ApplicationContext",
188
+ "ApplicationResult",
189
+ "ApplicationOptions",
190
+ "ApplicationStage",
191
+ "get_template_applicator",
192
+ "set_template_applicator",
193
+ "InteractiveInputHandler",
194
+ "KeyAction",
195
+ "InputMode",
196
+ "InputState",
197
+ "KeyBinding",
198
+ "create_input_handler",
199
+ "create_custom_input_handler",
200
+ "ApprovalDialog",
201
+ "DialogState",
202
+ "DialogSection",
203
+ "DialogOptions",
204
+ "create_approval_dialog",
205
+ "show_quick_approval",
206
+ "ApprovalContext",
207
+ "OperationDetails",
208
+ "ApprovalDecision",
209
+ "SecurityFlags",
210
+ "FileChange",
211
+ "FileOperationType",
212
+ "OperationStatus",
213
+ "create_file_operation_context",
214
+ "create_command_execution_context",
215
+ "create_web_request_context",
216
+ # Performance monitoring exports
217
+ "PerformanceMonitor",
218
+ "PerformanceSnapshot",
219
+ "PerformanceAlert",
220
+ "OptimizationSuggestion",
221
+ "AlertLevel",
222
+ "OptimizationType",
223
+ "MetricType",
224
+ "get_performance_monitor",
225
+ "set_performance_monitor",
226
+ "initialize_performance_monitoring",
227
+ "shutdown_performance_monitoring",
228
+ "TokenUsageTracker",
229
+ "DetailedTokenUsage",
230
+ "TokenCost",
231
+ "UsagePattern",
232
+ "TokenCountMethod",
233
+ "UsageCategory",
234
+ "get_token_tracker",
235
+ "set_token_tracker",
236
+ "PerformanceMetricsCollector",
237
+ "MetricValue",
238
+ "AggregatedMetric",
239
+ "MetricCategory",
240
+ "AggregationMethod",
241
+ "SystemResourceSnapshot",
242
+ "get_metrics_collector",
243
+ "set_metrics_collector",
244
+ "initialize_metrics_collection",
245
+ "shutdown_metrics_collection",
246
+ "OptimizationEngine",
247
+ "OptimizationRule",
248
+ "AlertRule",
249
+ "OptimizationCategory",
250
+ "AlertTrigger",
251
+ "TrendAnalyzer",
252
+ "get_optimization_engine",
253
+ "set_optimization_engine",
254
+ "initialize_optimization_engine",
255
+ "shutdown_optimization_engine",
256
+ ]