empathy-framework 5.1.0__py3-none-any.whl → 5.2.1__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 (73) hide show
  1. {empathy_framework-5.1.0.dist-info → empathy_framework-5.2.1.dist-info}/METADATA +52 -3
  2. {empathy_framework-5.1.0.dist-info → empathy_framework-5.2.1.dist-info}/RECORD +71 -30
  3. empathy_os/__init__.py +1 -1
  4. empathy_os/cli_router.py +21 -0
  5. empathy_os/core_modules/__init__.py +15 -0
  6. empathy_os/mcp/__init__.py +10 -0
  7. empathy_os/mcp/server.py +506 -0
  8. empathy_os/memory/control_panel.py +1 -131
  9. empathy_os/memory/control_panel_support.py +145 -0
  10. empathy_os/memory/encryption.py +159 -0
  11. empathy_os/memory/long_term.py +41 -626
  12. empathy_os/memory/long_term_types.py +99 -0
  13. empathy_os/memory/mixins/__init__.py +25 -0
  14. empathy_os/memory/mixins/backend_init_mixin.py +244 -0
  15. empathy_os/memory/mixins/capabilities_mixin.py +199 -0
  16. empathy_os/memory/mixins/handoff_mixin.py +208 -0
  17. empathy_os/memory/mixins/lifecycle_mixin.py +49 -0
  18. empathy_os/memory/mixins/long_term_mixin.py +352 -0
  19. empathy_os/memory/mixins/promotion_mixin.py +109 -0
  20. empathy_os/memory/mixins/short_term_mixin.py +182 -0
  21. empathy_os/memory/short_term.py +7 -0
  22. empathy_os/memory/simple_storage.py +302 -0
  23. empathy_os/memory/storage_backend.py +167 -0
  24. empathy_os/memory/unified.py +21 -1120
  25. empathy_os/meta_workflows/cli_commands/__init__.py +56 -0
  26. empathy_os/meta_workflows/cli_commands/agent_commands.py +321 -0
  27. empathy_os/meta_workflows/cli_commands/analytics_commands.py +442 -0
  28. empathy_os/meta_workflows/cli_commands/config_commands.py +232 -0
  29. empathy_os/meta_workflows/cli_commands/memory_commands.py +182 -0
  30. empathy_os/meta_workflows/cli_commands/template_commands.py +354 -0
  31. empathy_os/meta_workflows/cli_commands/workflow_commands.py +382 -0
  32. empathy_os/meta_workflows/cli_meta_workflows.py +52 -1802
  33. empathy_os/meta_workflows/intent_detector.py +71 -0
  34. empathy_os/models/telemetry/__init__.py +71 -0
  35. empathy_os/models/telemetry/analytics.py +594 -0
  36. empathy_os/models/telemetry/backend.py +196 -0
  37. empathy_os/models/telemetry/data_models.py +431 -0
  38. empathy_os/models/telemetry/storage.py +489 -0
  39. empathy_os/orchestration/__init__.py +35 -0
  40. empathy_os/orchestration/execution_strategies.py +481 -0
  41. empathy_os/orchestration/meta_orchestrator.py +488 -1
  42. empathy_os/routing/workflow_registry.py +36 -0
  43. empathy_os/telemetry/cli.py +19 -724
  44. empathy_os/telemetry/commands/__init__.py +14 -0
  45. empathy_os/telemetry/commands/dashboard_commands.py +696 -0
  46. empathy_os/tools.py +183 -0
  47. empathy_os/workflows/__init__.py +5 -0
  48. empathy_os/workflows/autonomous_test_gen.py +860 -161
  49. empathy_os/workflows/base.py +6 -2
  50. empathy_os/workflows/code_review.py +4 -1
  51. empathy_os/workflows/document_gen/__init__.py +25 -0
  52. empathy_os/workflows/document_gen/config.py +30 -0
  53. empathy_os/workflows/document_gen/report_formatter.py +162 -0
  54. empathy_os/workflows/document_gen/workflow.py +1426 -0
  55. empathy_os/workflows/document_gen.py +22 -1598
  56. empathy_os/workflows/security_audit.py +2 -2
  57. empathy_os/workflows/security_audit_phase3.py +7 -4
  58. empathy_os/workflows/seo_optimization.py +633 -0
  59. empathy_os/workflows/test_gen/__init__.py +52 -0
  60. empathy_os/workflows/test_gen/ast_analyzer.py +249 -0
  61. empathy_os/workflows/test_gen/config.py +88 -0
  62. empathy_os/workflows/test_gen/data_models.py +38 -0
  63. empathy_os/workflows/test_gen/report_formatter.py +289 -0
  64. empathy_os/workflows/test_gen/test_templates.py +381 -0
  65. empathy_os/workflows/test_gen/workflow.py +655 -0
  66. empathy_os/workflows/test_gen.py +42 -1905
  67. empathy_os/memory/types 2.py +0 -441
  68. empathy_os/models/telemetry.py +0 -1660
  69. {empathy_framework-5.1.0.dist-info → empathy_framework-5.2.1.dist-info}/WHEEL +0 -0
  70. {empathy_framework-5.1.0.dist-info → empathy_framework-5.2.1.dist-info}/entry_points.txt +0 -0
  71. {empathy_framework-5.1.0.dist-info → empathy_framework-5.2.1.dist-info}/licenses/LICENSE +0 -0
  72. {empathy_framework-5.1.0.dist-info → empathy_framework-5.2.1.dist-info}/licenses/LICENSE_CHANGE_ANNOUNCEMENT.md +0 -0
  73. {empathy_framework-5.1.0.dist-info → empathy_framework-5.2.1.dist-info}/top_level.txt +0 -0
@@ -94,6 +94,13 @@ INTENT_PATTERNS = {
94
94
  "add tests",
95
95
  "write tests",
96
96
  "create tests",
97
+ "batch tests",
98
+ "batch generation",
99
+ "parallel tests",
100
+ "bulk tests",
101
+ "mass test generation",
102
+ "rapidly generate",
103
+ "quickly boost",
97
104
  ],
98
105
  "phrases": [
99
106
  r"(improve|increase|boost) (test )?coverage",
@@ -104,6 +111,10 @@ INTENT_PATTERNS = {
104
111
  r"test generation",
105
112
  r"my (test )?coverage",
106
113
  r"improve.*coverage",
114
+ r"(batch|bulk|mass) (test )?generation",
115
+ r"generate tests (in )?(batch|parallel)",
116
+ r"(rapidly|quickly) (generate|boost|improve)",
117
+ r"parallel test (generation|creation)",
107
118
  ],
108
119
  "weight": 1.0,
109
120
  },
@@ -161,6 +172,66 @@ INTENT_PATTERNS = {
161
172
  ],
162
173
  "weight": 1.0,
163
174
  },
175
+ "auth-strategy": {
176
+ "keywords": [
177
+ "authentication",
178
+ "auth",
179
+ "auth strategy",
180
+ "auth mode",
181
+ "api key",
182
+ "subscription",
183
+ "configure auth",
184
+ "setup auth",
185
+ "auth status",
186
+ "check auth",
187
+ "recommend auth",
188
+ "authentication mode",
189
+ "api mode",
190
+ "subscription mode",
191
+ "cost optimization",
192
+ "auth config",
193
+ ],
194
+ "phrases": [
195
+ r"(setup|configure) auth(entication)?",
196
+ r"auth(entication)? (setup|config|status|mode)",
197
+ r"(check|show|view) auth(entication)? (status|config|mode)",
198
+ r"(what|which) auth(entication)? mode",
199
+ r"recommend auth(entication)?",
200
+ r"(api|subscription) (key|mode)",
201
+ r"switch (to )?(api|subscription)",
202
+ r"auth(entication)? (for|with)",
203
+ r"reset auth(entication)?",
204
+ ],
205
+ "weight": 1.0,
206
+ },
207
+ "agent-dashboard": {
208
+ "keywords": [
209
+ "dashboard",
210
+ "agent dashboard",
211
+ "coordination dashboard",
212
+ "monitor agents",
213
+ "view agents",
214
+ "agent status",
215
+ "heartbeat",
216
+ "agent coordination",
217
+ "multi-agent",
218
+ "orchestration",
219
+ "agent metrics",
220
+ "agent health",
221
+ "show dashboard",
222
+ "open dashboard",
223
+ ],
224
+ "phrases": [
225
+ r"(show|view|open|display) (the )?dashboard",
226
+ r"agent (dashboard|coordination|status|health)",
227
+ r"(monitor|track|watch) agents",
228
+ r"coordination dashboard",
229
+ r"(multi.?agent|orchestration) (dashboard|monitor)",
230
+ r"dashboard (for )?agents",
231
+ r"agent (monitoring|metrics|heartbeat)",
232
+ ],
233
+ "weight": 1.0,
234
+ },
164
235
  }
165
236
 
166
237
 
@@ -0,0 +1,71 @@
1
+ """Telemetry tracking and analytics.
2
+
3
+ Modular telemetry system for tracking LLM calls, workflows, tests, and agent performance.
4
+
5
+ Copyright 2025 Smart-AI-Memory
6
+ Licensed under Fair Source License 0.9
7
+ """
8
+
9
+ # Data models
10
+ # Analytics
11
+ from .analytics import TelemetryAnalytics
12
+
13
+ # Backend interface
14
+ from .backend import TelemetryBackend
15
+ from .data_models import (
16
+ AgentAssignmentRecord,
17
+ CoverageRecord,
18
+ FileTestRecord,
19
+ LLMCallRecord,
20
+ TaskRoutingRecord,
21
+ TestExecutionRecord,
22
+ WorkflowRunRecord,
23
+ WorkflowStageRecord,
24
+ )
25
+
26
+ # Storage implementation
27
+ from .storage import TelemetryStore
28
+
29
+ # Singleton store instance
30
+ _store_instance: TelemetryStore | None = None
31
+
32
+
33
+ def get_telemetry_store() -> TelemetryStore:
34
+ """Get singleton telemetry store instance."""
35
+ global _store_instance
36
+ if _store_instance is None:
37
+ _store_instance = TelemetryStore()
38
+ return _store_instance
39
+
40
+
41
+ def log_llm_call(record: LLMCallRecord):
42
+ """Log an LLM API call."""
43
+ get_telemetry_store().log_llm_call(record)
44
+
45
+
46
+ def log_workflow_run(record: WorkflowRunRecord):
47
+ """Log a workflow run."""
48
+ get_telemetry_store().log_workflow_run(record)
49
+
50
+
51
+ __all__ = [
52
+ # Data models
53
+ "LLMCallRecord",
54
+ "WorkflowStageRecord",
55
+ "WorkflowRunRecord",
56
+ "TaskRoutingRecord",
57
+ "TestExecutionRecord",
58
+ "CoverageRecord",
59
+ "AgentAssignmentRecord",
60
+ "FileTestRecord",
61
+ # Backend
62
+ "TelemetryBackend",
63
+ # Storage
64
+ "TelemetryStore",
65
+ # Analytics
66
+ "TelemetryAnalytics",
67
+ # Utilities
68
+ "get_telemetry_store",
69
+ "log_llm_call",
70
+ "log_workflow_run",
71
+ ]