empathy-framework 4.6.6__py3-none-any.whl → 4.7.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 (247) hide show
  1. {empathy_framework-4.6.6.dist-info → empathy_framework-4.7.0.dist-info}/METADATA +7 -6
  2. empathy_framework-4.7.0.dist-info/RECORD +354 -0
  3. {empathy_framework-4.6.6.dist-info → empathy_framework-4.7.0.dist-info}/top_level.txt +0 -2
  4. empathy_healthcare_plugin/monitors/monitoring/__init__.py +9 -9
  5. empathy_llm_toolkit/agent_factory/__init__.py +6 -6
  6. empathy_llm_toolkit/agent_factory/adapters/wizard_adapter.py +7 -10
  7. empathy_llm_toolkit/agents_md/__init__.py +22 -0
  8. empathy_llm_toolkit/agents_md/loader.py +218 -0
  9. empathy_llm_toolkit/agents_md/parser.py +271 -0
  10. empathy_llm_toolkit/agents_md/registry.py +307 -0
  11. empathy_llm_toolkit/commands/__init__.py +51 -0
  12. empathy_llm_toolkit/commands/context.py +375 -0
  13. empathy_llm_toolkit/commands/loader.py +301 -0
  14. empathy_llm_toolkit/commands/models.py +231 -0
  15. empathy_llm_toolkit/commands/parser.py +371 -0
  16. empathy_llm_toolkit/commands/registry.py +429 -0
  17. empathy_llm_toolkit/config/__init__.py +8 -8
  18. empathy_llm_toolkit/config/unified.py +3 -7
  19. empathy_llm_toolkit/context/__init__.py +22 -0
  20. empathy_llm_toolkit/context/compaction.py +455 -0
  21. empathy_llm_toolkit/context/manager.py +434 -0
  22. empathy_llm_toolkit/hooks/__init__.py +24 -0
  23. empathy_llm_toolkit/hooks/config.py +306 -0
  24. empathy_llm_toolkit/hooks/executor.py +289 -0
  25. empathy_llm_toolkit/hooks/registry.py +302 -0
  26. empathy_llm_toolkit/hooks/scripts/__init__.py +39 -0
  27. empathy_llm_toolkit/hooks/scripts/evaluate_session.py +201 -0
  28. empathy_llm_toolkit/hooks/scripts/first_time_init.py +285 -0
  29. empathy_llm_toolkit/hooks/scripts/pre_compact.py +207 -0
  30. empathy_llm_toolkit/hooks/scripts/session_end.py +183 -0
  31. empathy_llm_toolkit/hooks/scripts/session_start.py +163 -0
  32. empathy_llm_toolkit/hooks/scripts/suggest_compact.py +225 -0
  33. empathy_llm_toolkit/learning/__init__.py +30 -0
  34. empathy_llm_toolkit/learning/evaluator.py +438 -0
  35. empathy_llm_toolkit/learning/extractor.py +514 -0
  36. empathy_llm_toolkit/learning/storage.py +560 -0
  37. empathy_llm_toolkit/providers.py +4 -11
  38. empathy_llm_toolkit/security/__init__.py +17 -17
  39. empathy_llm_toolkit/utils/tokens.py +2 -5
  40. empathy_os/__init__.py +202 -70
  41. empathy_os/cache_monitor.py +5 -3
  42. empathy_os/cli/__init__.py +11 -55
  43. empathy_os/cli/__main__.py +29 -15
  44. empathy_os/cli/commands/inspection.py +21 -12
  45. empathy_os/cli/commands/memory.py +4 -12
  46. empathy_os/cli/commands/profiling.py +198 -0
  47. empathy_os/cli/commands/utilities.py +27 -7
  48. empathy_os/cli.py +28 -57
  49. empathy_os/cli_unified.py +525 -1164
  50. empathy_os/cost_tracker.py +9 -3
  51. empathy_os/dashboard/server.py +200 -2
  52. empathy_os/hot_reload/__init__.py +7 -7
  53. empathy_os/hot_reload/config.py +6 -7
  54. empathy_os/hot_reload/integration.py +35 -35
  55. empathy_os/hot_reload/reloader.py +57 -57
  56. empathy_os/hot_reload/watcher.py +28 -28
  57. empathy_os/hot_reload/websocket.py +2 -2
  58. empathy_os/memory/__init__.py +11 -4
  59. empathy_os/memory/claude_memory.py +1 -1
  60. empathy_os/memory/cross_session.py +8 -12
  61. empathy_os/memory/edges.py +6 -6
  62. empathy_os/memory/file_session.py +770 -0
  63. empathy_os/memory/graph.py +30 -30
  64. empathy_os/memory/nodes.py +6 -6
  65. empathy_os/memory/short_term.py +15 -9
  66. empathy_os/memory/unified.py +606 -140
  67. empathy_os/meta_workflows/agent_creator.py +3 -9
  68. empathy_os/meta_workflows/cli_meta_workflows.py +113 -53
  69. empathy_os/meta_workflows/form_engine.py +6 -18
  70. empathy_os/meta_workflows/intent_detector.py +64 -24
  71. empathy_os/meta_workflows/models.py +3 -1
  72. empathy_os/meta_workflows/pattern_learner.py +13 -31
  73. empathy_os/meta_workflows/plan_generator.py +55 -47
  74. empathy_os/meta_workflows/session_context.py +2 -3
  75. empathy_os/meta_workflows/workflow.py +20 -51
  76. empathy_os/models/cli.py +2 -2
  77. empathy_os/models/tasks.py +1 -2
  78. empathy_os/models/telemetry.py +4 -1
  79. empathy_os/models/token_estimator.py +3 -1
  80. empathy_os/monitoring/alerts.py +938 -9
  81. empathy_os/monitoring/alerts_cli.py +346 -183
  82. empathy_os/orchestration/execution_strategies.py +12 -29
  83. empathy_os/orchestration/pattern_learner.py +20 -26
  84. empathy_os/orchestration/real_tools.py +6 -15
  85. empathy_os/platform_utils.py +2 -1
  86. empathy_os/plugins/__init__.py +2 -2
  87. empathy_os/plugins/base.py +64 -64
  88. empathy_os/plugins/registry.py +32 -32
  89. empathy_os/project_index/index.py +49 -15
  90. empathy_os/project_index/models.py +1 -2
  91. empathy_os/project_index/reports.py +1 -1
  92. empathy_os/project_index/scanner.py +1 -0
  93. empathy_os/redis_memory.py +10 -7
  94. empathy_os/resilience/__init__.py +1 -1
  95. empathy_os/resilience/health.py +10 -10
  96. empathy_os/routing/__init__.py +7 -7
  97. empathy_os/routing/chain_executor.py +37 -37
  98. empathy_os/routing/classifier.py +36 -36
  99. empathy_os/routing/smart_router.py +40 -40
  100. empathy_os/routing/{wizard_registry.py → workflow_registry.py} +47 -47
  101. empathy_os/scaffolding/__init__.py +8 -8
  102. empathy_os/scaffolding/__main__.py +1 -1
  103. empathy_os/scaffolding/cli.py +28 -28
  104. empathy_os/socratic/__init__.py +3 -19
  105. empathy_os/socratic/ab_testing.py +25 -36
  106. empathy_os/socratic/blueprint.py +38 -38
  107. empathy_os/socratic/cli.py +34 -20
  108. empathy_os/socratic/collaboration.py +30 -28
  109. empathy_os/socratic/domain_templates.py +9 -1
  110. empathy_os/socratic/embeddings.py +17 -13
  111. empathy_os/socratic/engine.py +135 -70
  112. empathy_os/socratic/explainer.py +70 -60
  113. empathy_os/socratic/feedback.py +24 -19
  114. empathy_os/socratic/forms.py +15 -10
  115. empathy_os/socratic/generator.py +51 -35
  116. empathy_os/socratic/llm_analyzer.py +25 -23
  117. empathy_os/socratic/mcp_server.py +99 -159
  118. empathy_os/socratic/session.py +19 -13
  119. empathy_os/socratic/storage.py +98 -67
  120. empathy_os/socratic/success.py +38 -27
  121. empathy_os/socratic/visual_editor.py +51 -39
  122. empathy_os/socratic/web_ui.py +99 -66
  123. empathy_os/telemetry/cli.py +3 -1
  124. empathy_os/telemetry/usage_tracker.py +1 -3
  125. empathy_os/test_generator/__init__.py +3 -3
  126. empathy_os/test_generator/cli.py +28 -28
  127. empathy_os/test_generator/generator.py +64 -66
  128. empathy_os/test_generator/risk_analyzer.py +11 -11
  129. empathy_os/vscode_bridge.py +173 -0
  130. empathy_os/workflows/__init__.py +212 -120
  131. empathy_os/workflows/batch_processing.py +8 -24
  132. empathy_os/workflows/bug_predict.py +1 -1
  133. empathy_os/workflows/code_review.py +20 -5
  134. empathy_os/workflows/code_review_pipeline.py +13 -8
  135. empathy_os/workflows/keyboard_shortcuts/workflow.py +6 -2
  136. empathy_os/workflows/manage_documentation.py +1 -0
  137. empathy_os/workflows/orchestrated_health_check.py +6 -11
  138. empathy_os/workflows/orchestrated_release_prep.py +3 -3
  139. empathy_os/workflows/pr_review.py +18 -10
  140. empathy_os/workflows/progressive/__init__.py +2 -12
  141. empathy_os/workflows/progressive/cli.py +14 -37
  142. empathy_os/workflows/progressive/core.py +12 -12
  143. empathy_os/workflows/progressive/orchestrator.py +166 -144
  144. empathy_os/workflows/progressive/reports.py +22 -31
  145. empathy_os/workflows/progressive/telemetry.py +8 -14
  146. empathy_os/workflows/progressive/test_gen.py +29 -48
  147. empathy_os/workflows/progressive/workflow.py +31 -70
  148. empathy_os/workflows/release_prep.py +21 -6
  149. empathy_os/workflows/release_prep_crew.py +1 -0
  150. empathy_os/workflows/secure_release.py +13 -6
  151. empathy_os/workflows/security_audit.py +8 -3
  152. empathy_os/workflows/test_coverage_boost_crew.py +3 -2
  153. empathy_os/workflows/test_maintenance_crew.py +1 -0
  154. empathy_os/workflows/test_runner.py +16 -12
  155. empathy_software_plugin/SOFTWARE_PLUGIN_README.md +25 -703
  156. empathy_software_plugin/cli.py +0 -122
  157. coach_wizards/__init__.py +0 -45
  158. coach_wizards/accessibility_wizard.py +0 -91
  159. coach_wizards/api_wizard.py +0 -91
  160. coach_wizards/base_wizard.py +0 -209
  161. coach_wizards/cicd_wizard.py +0 -91
  162. coach_wizards/code_reviewer_README.md +0 -60
  163. coach_wizards/code_reviewer_wizard.py +0 -180
  164. coach_wizards/compliance_wizard.py +0 -91
  165. coach_wizards/database_wizard.py +0 -91
  166. coach_wizards/debugging_wizard.py +0 -91
  167. coach_wizards/documentation_wizard.py +0 -91
  168. coach_wizards/generate_wizards.py +0 -347
  169. coach_wizards/localization_wizard.py +0 -173
  170. coach_wizards/migration_wizard.py +0 -91
  171. coach_wizards/monitoring_wizard.py +0 -91
  172. coach_wizards/observability_wizard.py +0 -91
  173. coach_wizards/performance_wizard.py +0 -91
  174. coach_wizards/prompt_engineering_wizard.py +0 -661
  175. coach_wizards/refactoring_wizard.py +0 -91
  176. coach_wizards/scaling_wizard.py +0 -90
  177. coach_wizards/security_wizard.py +0 -92
  178. coach_wizards/testing_wizard.py +0 -91
  179. empathy_framework-4.6.6.dist-info/RECORD +0 -410
  180. empathy_llm_toolkit/wizards/__init__.py +0 -43
  181. empathy_llm_toolkit/wizards/base_wizard.py +0 -364
  182. empathy_llm_toolkit/wizards/customer_support_wizard.py +0 -190
  183. empathy_llm_toolkit/wizards/healthcare_wizard.py +0 -378
  184. empathy_llm_toolkit/wizards/patient_assessment_README.md +0 -64
  185. empathy_llm_toolkit/wizards/patient_assessment_wizard.py +0 -193
  186. empathy_llm_toolkit/wizards/technology_wizard.py +0 -209
  187. empathy_os/wizard_factory_cli.py +0 -170
  188. empathy_software_plugin/wizards/__init__.py +0 -42
  189. empathy_software_plugin/wizards/advanced_debugging_wizard.py +0 -395
  190. empathy_software_plugin/wizards/agent_orchestration_wizard.py +0 -511
  191. empathy_software_plugin/wizards/ai_collaboration_wizard.py +0 -503
  192. empathy_software_plugin/wizards/ai_context_wizard.py +0 -441
  193. empathy_software_plugin/wizards/ai_documentation_wizard.py +0 -503
  194. empathy_software_plugin/wizards/base_wizard.py +0 -288
  195. empathy_software_plugin/wizards/book_chapter_wizard.py +0 -519
  196. empathy_software_plugin/wizards/code_review_wizard.py +0 -604
  197. empathy_software_plugin/wizards/debugging/__init__.py +0 -50
  198. empathy_software_plugin/wizards/debugging/bug_risk_analyzer.py +0 -414
  199. empathy_software_plugin/wizards/debugging/config_loaders.py +0 -446
  200. empathy_software_plugin/wizards/debugging/fix_applier.py +0 -469
  201. empathy_software_plugin/wizards/debugging/language_patterns.py +0 -385
  202. empathy_software_plugin/wizards/debugging/linter_parsers.py +0 -470
  203. empathy_software_plugin/wizards/debugging/verification.py +0 -369
  204. empathy_software_plugin/wizards/enhanced_testing_wizard.py +0 -537
  205. empathy_software_plugin/wizards/memory_enhanced_debugging_wizard.py +0 -816
  206. empathy_software_plugin/wizards/multi_model_wizard.py +0 -501
  207. empathy_software_plugin/wizards/pattern_extraction_wizard.py +0 -422
  208. empathy_software_plugin/wizards/pattern_retriever_wizard.py +0 -400
  209. empathy_software_plugin/wizards/performance/__init__.py +0 -9
  210. empathy_software_plugin/wizards/performance/bottleneck_detector.py +0 -221
  211. empathy_software_plugin/wizards/performance/profiler_parsers.py +0 -278
  212. empathy_software_plugin/wizards/performance/trajectory_analyzer.py +0 -429
  213. empathy_software_plugin/wizards/performance_profiling_wizard.py +0 -305
  214. empathy_software_plugin/wizards/prompt_engineering_wizard.py +0 -425
  215. empathy_software_plugin/wizards/rag_pattern_wizard.py +0 -461
  216. empathy_software_plugin/wizards/security/__init__.py +0 -32
  217. empathy_software_plugin/wizards/security/exploit_analyzer.py +0 -290
  218. empathy_software_plugin/wizards/security/owasp_patterns.py +0 -241
  219. empathy_software_plugin/wizards/security/vulnerability_scanner.py +0 -604
  220. empathy_software_plugin/wizards/security_analysis_wizard.py +0 -322
  221. empathy_software_plugin/wizards/security_learning_wizard.py +0 -740
  222. empathy_software_plugin/wizards/tech_debt_wizard.py +0 -726
  223. empathy_software_plugin/wizards/testing/__init__.py +0 -27
  224. empathy_software_plugin/wizards/testing/coverage_analyzer.py +0 -459
  225. empathy_software_plugin/wizards/testing/quality_analyzer.py +0 -525
  226. empathy_software_plugin/wizards/testing/test_suggester.py +0 -533
  227. empathy_software_plugin/wizards/testing_wizard.py +0 -274
  228. wizards/__init__.py +0 -82
  229. wizards/admission_assessment_wizard.py +0 -644
  230. wizards/care_plan.py +0 -321
  231. wizards/clinical_assessment.py +0 -769
  232. wizards/discharge_planning.py +0 -77
  233. wizards/discharge_summary_wizard.py +0 -468
  234. wizards/dosage_calculation.py +0 -497
  235. wizards/incident_report_wizard.py +0 -454
  236. wizards/medication_reconciliation.py +0 -85
  237. wizards/nursing_assessment.py +0 -171
  238. wizards/patient_education.py +0 -654
  239. wizards/quality_improvement.py +0 -705
  240. wizards/sbar_report.py +0 -324
  241. wizards/sbar_wizard.py +0 -608
  242. wizards/shift_handoff_wizard.py +0 -535
  243. wizards/soap_note_wizard.py +0 -679
  244. wizards/treatment_plan.py +0 -15
  245. {empathy_framework-4.6.6.dist-info → empathy_framework-4.7.0.dist-info}/WHEEL +0 -0
  246. {empathy_framework-4.6.6.dist-info → empathy_framework-4.7.0.dist-info}/entry_points.txt +0 -0
  247. {empathy_framework-4.6.6.dist-info → empathy_framework-4.7.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,209 +0,0 @@
1
- """Technology/IT Wizard - System Security Compliant AI Assistant
2
-
3
- ⚠️ DEPRECATED: This wizard is a basic example and is no longer actively maintained.
4
- For production software development, use the specialized software plugin:
5
- pip install empathy-software-wizards
6
-
7
- Or use the built-in empathy_software_plugin module for advanced features.
8
-
9
- Specialized wizard for IT and technology operations with system security,
10
- infrastructure data protection, and comprehensive audit logging.
11
-
12
- Key Features:
13
- - System and infrastructure data protection
14
- - Secrets detection (API keys, credentials, tokens)
15
- - Security log analysis
16
- - Comprehensive audit trail
17
- - DevOps and infrastructure security
18
- - Automatic classification as INTERNAL
19
-
20
- Copyright 2025 Smart AI Memory, LLC
21
- Licensed under Fair Source 0.9
22
- """
23
-
24
- import logging
25
- import warnings
26
-
27
- from empathy_llm_toolkit import EmpathyLLM
28
-
29
- from .base_wizard import BaseWizard, WizardConfig
30
-
31
- logger = logging.getLogger(__name__)
32
-
33
- # Deprecation warning
34
- warnings.warn(
35
- "TechnologyWizard is deprecated and will be removed in v5.0. "
36
- "Use empathy_software_plugin or install: pip install empathy-software-wizards",
37
- DeprecationWarning,
38
- stacklevel=2,
39
- )
40
-
41
-
42
- # Technology/IT PII patterns
43
- TECHNOLOGY_PII_PATTERNS = [
44
- # Standard PII
45
- "email",
46
- "phone",
47
- "ip_address",
48
- # Technology-specific
49
- "api_key",
50
- "access_token",
51
- "ssh_key",
52
- "database_credential",
53
- ]
54
-
55
-
56
- class TechnologyWizard(BaseWizard):
57
- """System security compliant technology and IT AI assistant
58
-
59
- Implements data protection for IT operations:
60
- 1. Infrastructure data detection and protection
61
- 2. Enhanced secrets detection (API keys, credentials)
62
- 3. Encryption for sensitive system data
63
- 4. Comprehensive audit logging
64
- 5. 1-year retention
65
- 6. Access control enforcement
66
-
67
- Example:
68
- >>> from empathy_llm_toolkit import EmpathyLLM
69
- >>> from empathy_llm_toolkit.wizards import TechnologyWizard
70
- >>>
71
- >>> llm = EmpathyLLM(
72
- ... provider="anthropic",
73
- ... api_key=os.getenv("ANTHROPIC_API_KEY"),
74
- ... enable_security=True,
75
- ... )
76
- >>>
77
- >>> wizard = TechnologyWizard(llm)
78
- >>>
79
- >>> result = await wizard.process(
80
- ... user_input="Help me troubleshoot this infrastructure issue",
81
- ... user_id="sysadmin@company.com"
82
- ... )
83
-
84
- """
85
-
86
- def __init__(
87
- self,
88
- llm: EmpathyLLM,
89
- custom_pii_patterns: list[str] | None = None,
90
- ):
91
- """Initialize technology/IT wizard
92
-
93
- Args:
94
- llm: EmpathyLLM instance (security should be enabled)
95
- custom_pii_patterns: Additional organization-specific patterns
96
-
97
- """
98
- pii_patterns = TECHNOLOGY_PII_PATTERNS.copy()
99
-
100
- if custom_pii_patterns:
101
- pii_patterns.extend(custom_pii_patterns)
102
-
103
- config = WizardConfig(
104
- name="Technology & IT Assistant",
105
- description="System security compliant AI assistant for IT operations",
106
- domain="technology",
107
- default_empathy_level=3, # Proactive
108
- enable_security=True,
109
- pii_patterns=pii_patterns,
110
- enable_secrets_detection=True,
111
- block_on_secrets=True, # CRITICAL for IT security
112
- audit_all_access=True,
113
- retention_days=365, # 1 year for system logs
114
- default_classification="INTERNAL",
115
- auto_classify=True,
116
- )
117
-
118
- super().__init__(llm, config)
119
-
120
- if not llm.enable_security:
121
- logger.warning(
122
- "TechnologyWizard initialized with security DISABLED. "
123
- "IT security requires enable_security=True in EmpathyLLM.",
124
- )
125
-
126
- logger.info(
127
- f"TechnologyWizard initialized: {len(pii_patterns)} PII patterns, "
128
- f"empathy level={config.default_empathy_level}, security={llm.enable_security}",
129
- )
130
-
131
- def _build_system_prompt(self, user_input: str = "") -> str:
132
- """Build technology/IT system prompt
133
-
134
- Uses XML-enhanced prompts if enabled for improved precision
135
- and reduced errors in critical IT operations.
136
- """
137
- # Check if XML prompts are enabled
138
- if self._is_xml_enabled():
139
- # Use XML-enhanced prompt for better structure
140
- return self._render_xml_prompt(
141
- role="system security compliant AI technology and IT assistant for infrastructure operations",
142
- goal="Assist IT professionals with secure, reliable system administration, infrastructure design, and DevOps automation",
143
- instructions=[
144
- "Assist IT professionals with system administration, troubleshooting, and operations",
145
- "Support infrastructure design, optimization, and scalability planning",
146
- "Provide security analysis, incident response guidance, and threat mitigation",
147
- "Help with DevOps automation, CI/CD pipelines, and deployment strategies",
148
- "Base recommendations on industry best practices (NIST, CIS, OWASP)",
149
- "Acknowledge compliance requirements (SOC2, ISO 27001, PCI-DSS, GDPR)",
150
- ],
151
- constraints=[
152
- "CRITICAL: System data automatically protected - never request or display API keys, credentials, passwords, tokens",
153
- "You are an IT support tool, NOT a replacement for sysadmin or security expert judgment",
154
- "CANNOT make production deployment, security policy, or infrastructure decisions autonomously",
155
- "Always defer to IT leadership for critical infrastructure changes",
156
- "Maintain strict confidentiality of infrastructure data",
157
- "System security and data protection paramount - all interactions logged for audit",
158
- ],
159
- input_type="it_query",
160
- input_payload=user_input if user_input else "[IT professional query]",
161
- extra={
162
- "domain": "Technology / IT Operations / DevOps / Infrastructure",
163
- "empathy_level": self.config.default_empathy_level,
164
- "secrets_detection_enabled": self.config.enable_secrets_detection,
165
- "retention_days": self.config.retention_days,
166
- },
167
- )
168
- else:
169
- # Fallback to legacy plain text prompt
170
- return """You are a system security compliant AI technology and IT assistant.
171
-
172
- **Domain**: Technology / IT Operations / DevOps / Infrastructure
173
-
174
- **Your Role**:
175
- - Assist IT professionals with system administration and troubleshooting
176
- - Support infrastructure design and optimization
177
- - Help with security analysis and incident response
178
- - Provide guidance on DevOps and automation
179
-
180
- **Security**:
181
- - All system information is automatically protected before you see it
182
- - Never request or display API keys, credentials, passwords, or tokens
183
- - Maintain strict confidentiality of infrastructure data
184
- - All interactions comply with IT security policies
185
-
186
- **Technology Guidelines**:
187
- - Base recommendations on industry best practices and security standards
188
- - Acknowledge compliance requirements (SOC2, ISO 27001, etc.)
189
- - Provide practical technical guidance
190
- - Follow DevOps and SRE principles
191
-
192
- **Communication Style**:
193
- - Technical and precise
194
- - Clear and actionable
195
- - Security-focused
196
- - Problem-solving oriented
197
-
198
- **Important Disclaimers**:
199
- - You are an IT support tool, not a replacement for sysadmin judgment
200
- - Cannot make production deployment or security policy decisions
201
- - Not a substitute for qualified IT professionals and security experts
202
- - Always defer to IT leadership for critical infrastructure decisions
203
-
204
- Remember: System security and data protection are paramount. Interactions are logged.
205
- """
206
-
207
- def get_pii_patterns(self) -> list[str]:
208
- """Get list of technology PII patterns being detected"""
209
- return self.config.pii_patterns.copy()
@@ -1,170 +0,0 @@
1
- """Wizard Factory CLI integration for Empathy Framework.
2
-
3
- Provides wizard-factory commands integrated into the main empathy CLI:
4
- - empathy wizard-factory create
5
- - empathy wizard-factory list-patterns
6
- - empathy wizard-factory generate-tests
7
- - empathy wizard-factory analyze
8
-
9
- Copyright 2025 Smart AI Memory, LLC
10
- Licensed under Fair Source 0.9
11
- """
12
-
13
- import subprocess
14
- import sys
15
-
16
-
17
- def cmd_wizard_factory_create(args):
18
- """Create a new wizard using scaffolding."""
19
- # Build command
20
- cmd = ["python", "-m", "scaffolding", "create", args.name]
21
-
22
- if args.domain:
23
- cmd.extend(["--domain", args.domain])
24
-
25
- if args.type:
26
- cmd.extend(["--type", args.type])
27
-
28
- if args.methodology:
29
- cmd.extend(["--methodology", args.methodology])
30
-
31
- if args.patterns:
32
- cmd.extend(["--patterns", args.patterns])
33
-
34
- if args.interactive:
35
- cmd.append("--interactive")
36
-
37
- # Run scaffolding
38
- result = subprocess.run(cmd)
39
- sys.exit(result.returncode)
40
-
41
-
42
- def cmd_wizard_factory_list_patterns(args):
43
- """List available patterns."""
44
- result = subprocess.run(["python", "-m", "scaffolding", "list-patterns"])
45
- sys.exit(result.returncode)
46
-
47
-
48
- def cmd_wizard_factory_generate_tests(args):
49
- """Generate tests for a wizard."""
50
- cmd = ["python", "-m", "test_generator", "generate", args.wizard_id]
51
-
52
- if args.patterns:
53
- cmd.extend(["--patterns", args.patterns])
54
-
55
- if args.output:
56
- cmd.extend(["--output", args.output])
57
-
58
- result = subprocess.run(cmd)
59
- sys.exit(result.returncode)
60
-
61
-
62
- def cmd_wizard_factory_analyze(args):
63
- """Analyze wizard risk."""
64
- cmd = ["python", "-m", "test_generator", "analyze", args.wizard_id]
65
-
66
- if args.patterns:
67
- cmd.extend(["--patterns", args.patterns])
68
-
69
- if args.json:
70
- cmd.append("--json")
71
-
72
- result = subprocess.run(cmd)
73
- sys.exit(result.returncode)
74
-
75
-
76
- def add_wizard_factory_commands(subparsers):
77
- """Add wizard-factory commands to main CLI.
78
-
79
- Args:
80
- subparsers: ArgumentParser subparsers object
81
- """
82
- # Main wizard-factory command
83
- parser_wf = subparsers.add_parser(
84
- "wizard-factory",
85
- help="Wizard Factory - create wizards 12x faster",
86
- )
87
- wf_subparsers = parser_wf.add_subparsers(dest="wizard_factory_command")
88
-
89
- # wizard-factory create
90
- parser_wf_create = wf_subparsers.add_parser(
91
- "create",
92
- help="Create a new wizard",
93
- )
94
- parser_wf_create.add_argument("name", help="Wizard name (snake_case)")
95
- parser_wf_create.add_argument(
96
- "--domain",
97
- "-d",
98
- help="Domain (healthcare, finance, software, legal, etc.)",
99
- )
100
- parser_wf_create.add_argument(
101
- "--type",
102
- "-t",
103
- choices=["domain", "coach", "ai"],
104
- default="domain",
105
- help="Wizard type (default: domain)",
106
- )
107
- parser_wf_create.add_argument(
108
- "--methodology",
109
- "-m",
110
- choices=["pattern", "tdd"],
111
- default="pattern",
112
- help="Methodology (pattern-compose or tdd-first, default: pattern)",
113
- )
114
- parser_wf_create.add_argument(
115
- "--patterns",
116
- "-p",
117
- help="Comma-separated pattern IDs (e.g. linear_flow,approval)",
118
- )
119
- parser_wf_create.add_argument(
120
- "--interactive",
121
- "-i",
122
- action="store_true",
123
- help="Interactive pattern selection",
124
- )
125
- parser_wf_create.set_defaults(func=cmd_wizard_factory_create)
126
-
127
- # wizard-factory list-patterns
128
- parser_wf_list = wf_subparsers.add_parser(
129
- "list-patterns",
130
- help="List available patterns",
131
- )
132
- parser_wf_list.set_defaults(func=cmd_wizard_factory_list_patterns)
133
-
134
- # wizard-factory generate-tests
135
- parser_wf_gen = wf_subparsers.add_parser(
136
- "generate-tests",
137
- help="Generate tests for a wizard",
138
- )
139
- parser_wf_gen.add_argument("wizard_id", help="Wizard ID")
140
- parser_wf_gen.add_argument(
141
- "--patterns",
142
- "-p",
143
- required=True,
144
- help="Comma-separated pattern IDs",
145
- )
146
- parser_wf_gen.add_argument(
147
- "--output",
148
- "-o",
149
- help="Output directory for tests",
150
- )
151
- parser_wf_gen.set_defaults(func=cmd_wizard_factory_generate_tests)
152
-
153
- # wizard-factory analyze
154
- parser_wf_analyze = wf_subparsers.add_parser(
155
- "analyze",
156
- help="Analyze wizard risk and get coverage recommendations",
157
- )
158
- parser_wf_analyze.add_argument("wizard_id", help="Wizard ID")
159
- parser_wf_analyze.add_argument(
160
- "--patterns",
161
- "-p",
162
- required=True,
163
- help="Comma-separated pattern IDs",
164
- )
165
- parser_wf_analyze.add_argument(
166
- "--json",
167
- action="store_true",
168
- help="Output JSON format",
169
- )
170
- parser_wf_analyze.set_defaults(func=cmd_wizard_factory_analyze)
@@ -1,42 +0,0 @@
1
- """Software Development Wizards
2
-
3
- Production-ready wizards for software development with memory enhancement.
4
-
5
- Memory-Enhanced Wizards (Level 4+):
6
- - MemoryEnhancedDebuggingWizard: Bug correlation with historical patterns
7
- - TechDebtWizard: Tech debt trajectory tracking and prediction
8
- - SecurityLearningWizard: Security scanning with false positive learning
9
-
10
- Utility Wizards:
11
- - PatternRetrieverWizard: Pattern search and retrieval (Level 3)
12
- - PatternExtractionWizard: Auto-detect fixes and suggest patterns (Level 3)
13
- - CodeReviewWizard: Pattern-based code review (Level 4)
14
-
15
- Core Wizards:
16
- - SecurityAnalysisWizard: OWASP vulnerability detection
17
- - AdvancedDebuggingWizard: Protocol-based debugging
18
- - PerformanceProfilingWizard: Performance analysis
19
- - TestingWizard: Test coverage and quality
20
- - AIDocumentationWizard: Documentation generation
21
-
22
- Copyright 2025 Smart AI Memory, LLC
23
- Licensed under Fair Source 0.9
24
- """
25
-
26
- from .base_wizard import BaseWizard
27
- from .code_review_wizard import CodeReviewWizard
28
- from .memory_enhanced_debugging_wizard import MemoryEnhancedDebuggingWizard
29
- from .pattern_extraction_wizard import PatternExtractionWizard
30
- from .pattern_retriever_wizard import PatternRetrieverWizard
31
- from .security_learning_wizard import SecurityLearningWizard
32
- from .tech_debt_wizard import TechDebtWizard
33
-
34
- __all__ = [
35
- "BaseWizard",
36
- "CodeReviewWizard",
37
- "MemoryEnhancedDebuggingWizard",
38
- "PatternExtractionWizard",
39
- "PatternRetrieverWizard",
40
- "SecurityLearningWizard",
41
- "TechDebtWizard",
42
- ]