empathy-framework 5.2.1__py3-none-any.whl → 5.4.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.
- empathy_framework-5.4.0.dist-info/METADATA +47 -0
- empathy_framework-5.4.0.dist-info/RECORD +8 -0
- {empathy_framework-5.2.1.dist-info → empathy_framework-5.4.0.dist-info}/top_level.txt +0 -1
- empathy_healthcare_plugin/__init__.py +12 -11
- empathy_llm_toolkit/__init__.py +12 -26
- empathy_os/__init__.py +12 -356
- empathy_software_plugin/__init__.py +12 -11
- empathy_framework-5.2.1.dist-info/METADATA +0 -1002
- empathy_framework-5.2.1.dist-info/RECORD +0 -478
- empathy_framework-5.2.1.dist-info/entry_points.txt +0 -26
- empathy_framework-5.2.1.dist-info/licenses/LICENSE +0 -201
- empathy_framework-5.2.1.dist-info/licenses/LICENSE_CHANGE_ANNOUNCEMENT.md +0 -101
- empathy_healthcare_plugin/monitors/__init__.py +0 -9
- empathy_healthcare_plugin/monitors/clinical_protocol_monitor.py +0 -315
- empathy_healthcare_plugin/monitors/monitoring/__init__.py +0 -44
- empathy_healthcare_plugin/monitors/monitoring/protocol_checker.py +0 -300
- empathy_healthcare_plugin/monitors/monitoring/protocol_loader.py +0 -214
- empathy_healthcare_plugin/monitors/monitoring/sensor_parsers.py +0 -306
- empathy_healthcare_plugin/monitors/monitoring/trajectory_analyzer.py +0 -389
- empathy_healthcare_plugin/protocols/cardiac.json +0 -93
- empathy_healthcare_plugin/protocols/post_operative.json +0 -92
- empathy_healthcare_plugin/protocols/respiratory.json +0 -92
- empathy_healthcare_plugin/protocols/sepsis.json +0 -141
- empathy_llm_toolkit/README.md +0 -553
- empathy_llm_toolkit/agent_factory/__init__.py +0 -53
- empathy_llm_toolkit/agent_factory/adapters/__init__.py +0 -85
- empathy_llm_toolkit/agent_factory/adapters/autogen_adapter.py +0 -312
- empathy_llm_toolkit/agent_factory/adapters/crewai_adapter.py +0 -483
- empathy_llm_toolkit/agent_factory/adapters/haystack_adapter.py +0 -298
- empathy_llm_toolkit/agent_factory/adapters/langchain_adapter.py +0 -362
- empathy_llm_toolkit/agent_factory/adapters/langgraph_adapter.py +0 -333
- empathy_llm_toolkit/agent_factory/adapters/native.py +0 -228
- empathy_llm_toolkit/agent_factory/adapters/wizard_adapter.py +0 -423
- empathy_llm_toolkit/agent_factory/base.py +0 -305
- empathy_llm_toolkit/agent_factory/crews/__init__.py +0 -67
- empathy_llm_toolkit/agent_factory/crews/code_review.py +0 -1113
- empathy_llm_toolkit/agent_factory/crews/health_check.py +0 -1262
- empathy_llm_toolkit/agent_factory/crews/refactoring.py +0 -1128
- empathy_llm_toolkit/agent_factory/crews/security_audit.py +0 -1018
- empathy_llm_toolkit/agent_factory/decorators.py +0 -287
- empathy_llm_toolkit/agent_factory/factory.py +0 -558
- empathy_llm_toolkit/agent_factory/framework.py +0 -193
- empathy_llm_toolkit/agent_factory/memory_integration.py +0 -328
- empathy_llm_toolkit/agent_factory/resilient.py +0 -320
- empathy_llm_toolkit/agents_md/__init__.py +0 -22
- empathy_llm_toolkit/agents_md/loader.py +0 -218
- empathy_llm_toolkit/agents_md/parser.py +0 -271
- empathy_llm_toolkit/agents_md/registry.py +0 -307
- empathy_llm_toolkit/claude_memory.py +0 -466
- empathy_llm_toolkit/cli/__init__.py +0 -8
- empathy_llm_toolkit/cli/sync_claude.py +0 -487
- empathy_llm_toolkit/code_health.py +0 -1313
- empathy_llm_toolkit/commands/__init__.py +0 -51
- empathy_llm_toolkit/commands/context.py +0 -375
- empathy_llm_toolkit/commands/loader.py +0 -301
- empathy_llm_toolkit/commands/models.py +0 -231
- empathy_llm_toolkit/commands/parser.py +0 -371
- empathy_llm_toolkit/commands/registry.py +0 -429
- empathy_llm_toolkit/config/__init__.py +0 -29
- empathy_llm_toolkit/config/unified.py +0 -291
- empathy_llm_toolkit/context/__init__.py +0 -22
- empathy_llm_toolkit/context/compaction.py +0 -455
- empathy_llm_toolkit/context/manager.py +0 -434
- empathy_llm_toolkit/contextual_patterns.py +0 -361
- empathy_llm_toolkit/core.py +0 -907
- empathy_llm_toolkit/git_pattern_extractor.py +0 -435
- empathy_llm_toolkit/hooks/__init__.py +0 -24
- empathy_llm_toolkit/hooks/config.py +0 -306
- empathy_llm_toolkit/hooks/executor.py +0 -289
- empathy_llm_toolkit/hooks/registry.py +0 -302
- empathy_llm_toolkit/hooks/scripts/__init__.py +0 -39
- empathy_llm_toolkit/hooks/scripts/evaluate_session.py +0 -201
- empathy_llm_toolkit/hooks/scripts/first_time_init.py +0 -285
- empathy_llm_toolkit/hooks/scripts/pre_compact.py +0 -207
- empathy_llm_toolkit/hooks/scripts/session_end.py +0 -183
- empathy_llm_toolkit/hooks/scripts/session_start.py +0 -163
- empathy_llm_toolkit/hooks/scripts/suggest_compact.py +0 -225
- empathy_llm_toolkit/learning/__init__.py +0 -30
- empathy_llm_toolkit/learning/evaluator.py +0 -438
- empathy_llm_toolkit/learning/extractor.py +0 -514
- empathy_llm_toolkit/learning/storage.py +0 -560
- empathy_llm_toolkit/levels.py +0 -227
- empathy_llm_toolkit/pattern_confidence.py +0 -414
- empathy_llm_toolkit/pattern_resolver.py +0 -272
- empathy_llm_toolkit/pattern_summary.py +0 -350
- empathy_llm_toolkit/providers.py +0 -967
- empathy_llm_toolkit/routing/__init__.py +0 -32
- empathy_llm_toolkit/routing/model_router.py +0 -362
- empathy_llm_toolkit/security/IMPLEMENTATION_SUMMARY.md +0 -413
- empathy_llm_toolkit/security/PHASE2_COMPLETE.md +0 -384
- empathy_llm_toolkit/security/PHASE2_SECRETS_DETECTOR_COMPLETE.md +0 -271
- empathy_llm_toolkit/security/QUICK_REFERENCE.md +0 -316
- empathy_llm_toolkit/security/README.md +0 -262
- empathy_llm_toolkit/security/__init__.py +0 -62
- empathy_llm_toolkit/security/audit_logger.py +0 -929
- empathy_llm_toolkit/security/audit_logger_example.py +0 -152
- empathy_llm_toolkit/security/pii_scrubber.py +0 -640
- empathy_llm_toolkit/security/secrets_detector.py +0 -678
- empathy_llm_toolkit/security/secrets_detector_example.py +0 -304
- empathy_llm_toolkit/security/secure_memdocs.py +0 -1192
- empathy_llm_toolkit/security/secure_memdocs_example.py +0 -278
- empathy_llm_toolkit/session_status.py +0 -745
- empathy_llm_toolkit/state.py +0 -246
- empathy_llm_toolkit/utils/__init__.py +0 -5
- empathy_llm_toolkit/utils/tokens.py +0 -349
- empathy_os/adaptive/__init__.py +0 -13
- empathy_os/adaptive/task_complexity.py +0 -127
- empathy_os/agent_monitoring.py +0 -414
- empathy_os/cache/__init__.py +0 -117
- empathy_os/cache/base.py +0 -166
- empathy_os/cache/dependency_manager.py +0 -256
- empathy_os/cache/hash_only.py +0 -251
- empathy_os/cache/hybrid.py +0 -453
- empathy_os/cache/storage.py +0 -285
- empathy_os/cache_monitor.py +0 -356
- empathy_os/cache_stats.py +0 -298
- empathy_os/cli/__init__.py +0 -152
- empathy_os/cli/__main__.py +0 -12
- empathy_os/cli/commands/__init__.py +0 -1
- empathy_os/cli/commands/batch.py +0 -256
- empathy_os/cli/commands/cache.py +0 -248
- empathy_os/cli/commands/help.py +0 -331
- empathy_os/cli/commands/info.py +0 -140
- empathy_os/cli/commands/inspect.py +0 -436
- empathy_os/cli/commands/inspection.py +0 -57
- empathy_os/cli/commands/memory.py +0 -48
- empathy_os/cli/commands/metrics.py +0 -92
- empathy_os/cli/commands/orchestrate.py +0 -184
- empathy_os/cli/commands/patterns.py +0 -207
- empathy_os/cli/commands/profiling.py +0 -198
- empathy_os/cli/commands/provider.py +0 -98
- empathy_os/cli/commands/routing.py +0 -285
- empathy_os/cli/commands/setup.py +0 -96
- empathy_os/cli/commands/status.py +0 -235
- empathy_os/cli/commands/sync.py +0 -166
- empathy_os/cli/commands/tier.py +0 -121
- empathy_os/cli/commands/utilities.py +0 -114
- empathy_os/cli/commands/workflow.py +0 -575
- empathy_os/cli/core.py +0 -32
- empathy_os/cli/parsers/__init__.py +0 -68
- empathy_os/cli/parsers/batch.py +0 -118
- empathy_os/cli/parsers/cache 2.py +0 -65
- empathy_os/cli/parsers/cache.py +0 -65
- empathy_os/cli/parsers/help.py +0 -41
- empathy_os/cli/parsers/info.py +0 -26
- empathy_os/cli/parsers/inspect.py +0 -66
- empathy_os/cli/parsers/metrics.py +0 -42
- empathy_os/cli/parsers/orchestrate.py +0 -61
- empathy_os/cli/parsers/patterns.py +0 -54
- empathy_os/cli/parsers/provider.py +0 -40
- empathy_os/cli/parsers/routing.py +0 -110
- empathy_os/cli/parsers/setup.py +0 -42
- empathy_os/cli/parsers/status.py +0 -47
- empathy_os/cli/parsers/sync.py +0 -31
- empathy_os/cli/parsers/tier.py +0 -33
- empathy_os/cli/parsers/workflow.py +0 -77
- empathy_os/cli/utils/__init__.py +0 -1
- empathy_os/cli/utils/data.py +0 -242
- empathy_os/cli/utils/helpers.py +0 -68
- empathy_os/cli_legacy.py +0 -3957
- empathy_os/cli_minimal.py +0 -1159
- empathy_os/cli_router 2.py +0 -416
- empathy_os/cli_router.py +0 -437
- empathy_os/cli_unified.py +0 -814
- empathy_os/config/__init__.py +0 -66
- empathy_os/config/xml_config.py +0 -286
- empathy_os/config.py +0 -532
- empathy_os/coordination.py +0 -870
- empathy_os/core.py +0 -1511
- empathy_os/core_modules/__init__.py +0 -15
- empathy_os/cost_tracker.py +0 -626
- empathy_os/dashboard/__init__.py +0 -41
- empathy_os/dashboard/app 2.py +0 -512
- empathy_os/dashboard/app.py +0 -512
- empathy_os/dashboard/simple_server 2.py +0 -403
- empathy_os/dashboard/simple_server.py +0 -403
- empathy_os/dashboard/standalone_server 2.py +0 -536
- empathy_os/dashboard/standalone_server.py +0 -547
- empathy_os/discovery.py +0 -306
- empathy_os/emergence.py +0 -306
- empathy_os/exceptions.py +0 -123
- empathy_os/feedback_loops.py +0 -373
- empathy_os/hot_reload/README.md +0 -473
- empathy_os/hot_reload/__init__.py +0 -62
- empathy_os/hot_reload/config.py +0 -83
- empathy_os/hot_reload/integration.py +0 -229
- empathy_os/hot_reload/reloader.py +0 -298
- empathy_os/hot_reload/watcher.py +0 -183
- empathy_os/hot_reload/websocket.py +0 -177
- empathy_os/levels.py +0 -577
- empathy_os/leverage_points.py +0 -441
- empathy_os/logging_config.py +0 -261
- empathy_os/mcp/__init__.py +0 -10
- empathy_os/mcp/server.py +0 -506
- empathy_os/memory/__init__.py +0 -237
- empathy_os/memory/claude_memory.py +0 -469
- empathy_os/memory/config.py +0 -224
- empathy_os/memory/control_panel.py +0 -1290
- empathy_os/memory/control_panel_support.py +0 -145
- empathy_os/memory/cross_session.py +0 -845
- empathy_os/memory/edges.py +0 -179
- empathy_os/memory/encryption.py +0 -159
- empathy_os/memory/file_session.py +0 -770
- empathy_os/memory/graph.py +0 -570
- empathy_os/memory/long_term.py +0 -913
- empathy_os/memory/long_term_types.py +0 -99
- empathy_os/memory/mixins/__init__.py +0 -25
- empathy_os/memory/mixins/backend_init_mixin.py +0 -244
- empathy_os/memory/mixins/capabilities_mixin.py +0 -199
- empathy_os/memory/mixins/handoff_mixin.py +0 -208
- empathy_os/memory/mixins/lifecycle_mixin.py +0 -49
- empathy_os/memory/mixins/long_term_mixin.py +0 -352
- empathy_os/memory/mixins/promotion_mixin.py +0 -109
- empathy_os/memory/mixins/short_term_mixin.py +0 -182
- empathy_os/memory/nodes.py +0 -179
- empathy_os/memory/redis_bootstrap.py +0 -540
- empathy_os/memory/security/__init__.py +0 -31
- empathy_os/memory/security/audit_logger.py +0 -932
- empathy_os/memory/security/pii_scrubber.py +0 -640
- empathy_os/memory/security/secrets_detector.py +0 -678
- empathy_os/memory/short_term.py +0 -2150
- empathy_os/memory/simple_storage.py +0 -302
- empathy_os/memory/storage/__init__.py +0 -15
- empathy_os/memory/storage_backend.py +0 -167
- empathy_os/memory/summary_index.py +0 -583
- empathy_os/memory/types.py +0 -441
- empathy_os/memory/unified.py +0 -182
- empathy_os/meta_workflows/__init__.py +0 -74
- empathy_os/meta_workflows/agent_creator.py +0 -248
- empathy_os/meta_workflows/builtin_templates.py +0 -567
- empathy_os/meta_workflows/cli_commands/__init__.py +0 -56
- empathy_os/meta_workflows/cli_commands/agent_commands.py +0 -321
- empathy_os/meta_workflows/cli_commands/analytics_commands.py +0 -442
- empathy_os/meta_workflows/cli_commands/config_commands.py +0 -232
- empathy_os/meta_workflows/cli_commands/memory_commands.py +0 -182
- empathy_os/meta_workflows/cli_commands/template_commands.py +0 -354
- empathy_os/meta_workflows/cli_commands/workflow_commands.py +0 -382
- empathy_os/meta_workflows/cli_meta_workflows.py +0 -59
- empathy_os/meta_workflows/form_engine.py +0 -292
- empathy_os/meta_workflows/intent_detector.py +0 -409
- empathy_os/meta_workflows/models.py +0 -569
- empathy_os/meta_workflows/pattern_learner.py +0 -738
- empathy_os/meta_workflows/plan_generator.py +0 -384
- empathy_os/meta_workflows/session_context.py +0 -397
- empathy_os/meta_workflows/template_registry.py +0 -229
- empathy_os/meta_workflows/workflow.py +0 -984
- empathy_os/metrics/__init__.py +0 -12
- empathy_os/metrics/collector.py +0 -31
- empathy_os/metrics/prompt_metrics.py +0 -194
- empathy_os/models/__init__.py +0 -172
- empathy_os/models/__main__.py +0 -13
- empathy_os/models/adaptive_routing 2.py +0 -437
- empathy_os/models/adaptive_routing.py +0 -437
- empathy_os/models/auth_cli.py +0 -444
- empathy_os/models/auth_strategy.py +0 -450
- empathy_os/models/cli.py +0 -655
- empathy_os/models/empathy_executor.py +0 -354
- empathy_os/models/executor.py +0 -257
- empathy_os/models/fallback.py +0 -762
- empathy_os/models/provider_config.py +0 -282
- empathy_os/models/registry.py +0 -472
- empathy_os/models/tasks.py +0 -359
- empathy_os/models/telemetry/__init__.py +0 -71
- empathy_os/models/telemetry/analytics.py +0 -594
- empathy_os/models/telemetry/backend.py +0 -196
- empathy_os/models/telemetry/data_models.py +0 -431
- empathy_os/models/telemetry/storage.py +0 -489
- empathy_os/models/token_estimator.py +0 -420
- empathy_os/models/validation.py +0 -280
- empathy_os/monitoring/__init__.py +0 -52
- empathy_os/monitoring/alerts.py +0 -946
- empathy_os/monitoring/alerts_cli.py +0 -448
- empathy_os/monitoring/multi_backend.py +0 -271
- empathy_os/monitoring/otel_backend.py +0 -362
- empathy_os/optimization/__init__.py +0 -19
- empathy_os/optimization/context_optimizer.py +0 -272
- empathy_os/orchestration/__init__.py +0 -67
- empathy_os/orchestration/agent_templates.py +0 -707
- empathy_os/orchestration/config_store.py +0 -499
- empathy_os/orchestration/execution_strategies.py +0 -2111
- empathy_os/orchestration/meta_orchestrator.py +0 -1168
- empathy_os/orchestration/pattern_learner.py +0 -696
- empathy_os/orchestration/real_tools.py +0 -931
- empathy_os/pattern_cache.py +0 -187
- empathy_os/pattern_library.py +0 -542
- empathy_os/patterns/debugging/all_patterns.json +0 -81
- empathy_os/patterns/debugging/workflow_20260107_1770825e.json +0 -77
- empathy_os/patterns/refactoring_memory.json +0 -89
- empathy_os/persistence.py +0 -564
- empathy_os/platform_utils.py +0 -265
- empathy_os/plugins/__init__.py +0 -28
- empathy_os/plugins/base.py +0 -361
- empathy_os/plugins/registry.py +0 -268
- empathy_os/project_index/__init__.py +0 -32
- empathy_os/project_index/cli.py +0 -335
- empathy_os/project_index/index.py +0 -667
- empathy_os/project_index/models.py +0 -504
- empathy_os/project_index/reports.py +0 -474
- empathy_os/project_index/scanner.py +0 -777
- empathy_os/project_index/scanner_parallel 2.py +0 -291
- empathy_os/project_index/scanner_parallel.py +0 -291
- empathy_os/prompts/__init__.py +0 -61
- empathy_os/prompts/config.py +0 -77
- empathy_os/prompts/context.py +0 -177
- empathy_os/prompts/parser.py +0 -285
- empathy_os/prompts/registry.py +0 -313
- empathy_os/prompts/templates.py +0 -208
- empathy_os/redis_config.py +0 -302
- empathy_os/redis_memory.py +0 -799
- empathy_os/resilience/__init__.py +0 -56
- empathy_os/resilience/circuit_breaker.py +0 -256
- empathy_os/resilience/fallback.py +0 -179
- empathy_os/resilience/health.py +0 -300
- empathy_os/resilience/retry.py +0 -209
- empathy_os/resilience/timeout.py +0 -135
- empathy_os/routing/__init__.py +0 -43
- empathy_os/routing/chain_executor.py +0 -433
- empathy_os/routing/classifier.py +0 -217
- empathy_os/routing/smart_router.py +0 -234
- empathy_os/routing/workflow_registry.py +0 -343
- empathy_os/scaffolding/README.md +0 -589
- empathy_os/scaffolding/__init__.py +0 -35
- empathy_os/scaffolding/__main__.py +0 -14
- empathy_os/scaffolding/cli.py +0 -240
- empathy_os/socratic/__init__.py +0 -256
- empathy_os/socratic/ab_testing.py +0 -958
- empathy_os/socratic/blueprint.py +0 -533
- empathy_os/socratic/cli.py +0 -703
- empathy_os/socratic/collaboration.py +0 -1114
- empathy_os/socratic/domain_templates.py +0 -924
- empathy_os/socratic/embeddings.py +0 -738
- empathy_os/socratic/engine.py +0 -794
- empathy_os/socratic/explainer.py +0 -682
- empathy_os/socratic/feedback.py +0 -772
- empathy_os/socratic/forms.py +0 -629
- empathy_os/socratic/generator.py +0 -732
- empathy_os/socratic/llm_analyzer.py +0 -637
- empathy_os/socratic/mcp_server.py +0 -702
- empathy_os/socratic/session.py +0 -312
- empathy_os/socratic/storage.py +0 -667
- empathy_os/socratic/success.py +0 -730
- empathy_os/socratic/visual_editor.py +0 -860
- empathy_os/socratic/web_ui.py +0 -958
- empathy_os/telemetry/__init__.py +0 -39
- empathy_os/telemetry/agent_coordination 2.py +0 -478
- empathy_os/telemetry/agent_coordination.py +0 -476
- empathy_os/telemetry/agent_tracking 2.py +0 -350
- empathy_os/telemetry/agent_tracking.py +0 -348
- empathy_os/telemetry/approval_gates 2.py +0 -563
- empathy_os/telemetry/approval_gates.py +0 -551
- empathy_os/telemetry/cli.py +0 -1231
- empathy_os/telemetry/commands/__init__.py +0 -14
- empathy_os/telemetry/commands/dashboard_commands.py +0 -696
- empathy_os/telemetry/event_streaming 2.py +0 -405
- empathy_os/telemetry/event_streaming.py +0 -405
- empathy_os/telemetry/feedback_loop 2.py +0 -557
- empathy_os/telemetry/feedback_loop.py +0 -554
- empathy_os/telemetry/usage_tracker.py +0 -591
- empathy_os/templates.py +0 -754
- empathy_os/test_generator/__init__.py +0 -38
- empathy_os/test_generator/__main__.py +0 -14
- empathy_os/test_generator/cli.py +0 -234
- empathy_os/test_generator/generator.py +0 -355
- empathy_os/test_generator/risk_analyzer.py +0 -216
- empathy_os/tier_recommender.py +0 -384
- empathy_os/tools.py +0 -183
- empathy_os/trust/__init__.py +0 -28
- empathy_os/trust/circuit_breaker.py +0 -579
- empathy_os/trust_building.py +0 -527
- empathy_os/validation/__init__.py +0 -19
- empathy_os/validation/xml_validator.py +0 -281
- empathy_os/vscode_bridge 2.py +0 -173
- empathy_os/vscode_bridge.py +0 -173
- empathy_os/workflow_commands.py +0 -780
- empathy_os/workflow_patterns/__init__.py +0 -33
- empathy_os/workflow_patterns/behavior.py +0 -249
- empathy_os/workflow_patterns/core.py +0 -76
- empathy_os/workflow_patterns/output.py +0 -99
- empathy_os/workflow_patterns/registry.py +0 -255
- empathy_os/workflow_patterns/structural.py +0 -288
- empathy_os/workflows/__init__.py +0 -539
- empathy_os/workflows/autonomous_test_gen.py +0 -1268
- empathy_os/workflows/base.py +0 -2667
- empathy_os/workflows/batch_processing.py +0 -342
- empathy_os/workflows/bug_predict.py +0 -1084
- empathy_os/workflows/builder.py +0 -273
- empathy_os/workflows/caching.py +0 -253
- empathy_os/workflows/code_review.py +0 -1048
- empathy_os/workflows/code_review_adapters.py +0 -312
- empathy_os/workflows/code_review_pipeline.py +0 -722
- empathy_os/workflows/config.py +0 -645
- empathy_os/workflows/dependency_check.py +0 -644
- empathy_os/workflows/document_gen/__init__.py +0 -25
- empathy_os/workflows/document_gen/config.py +0 -30
- empathy_os/workflows/document_gen/report_formatter.py +0 -162
- empathy_os/workflows/document_gen/workflow.py +0 -1426
- empathy_os/workflows/document_gen.py +0 -29
- empathy_os/workflows/document_manager.py +0 -216
- empathy_os/workflows/document_manager_README.md +0 -134
- empathy_os/workflows/documentation_orchestrator.py +0 -1205
- empathy_os/workflows/history.py +0 -510
- empathy_os/workflows/keyboard_shortcuts/__init__.py +0 -39
- empathy_os/workflows/keyboard_shortcuts/generators.py +0 -391
- empathy_os/workflows/keyboard_shortcuts/parsers.py +0 -416
- empathy_os/workflows/keyboard_shortcuts/prompts.py +0 -295
- empathy_os/workflows/keyboard_shortcuts/schema.py +0 -193
- empathy_os/workflows/keyboard_shortcuts/workflow.py +0 -509
- empathy_os/workflows/llm_base.py +0 -363
- empathy_os/workflows/manage_docs.py +0 -87
- empathy_os/workflows/manage_docs_README.md +0 -134
- empathy_os/workflows/manage_documentation.py +0 -821
- empathy_os/workflows/new_sample_workflow1.py +0 -149
- empathy_os/workflows/new_sample_workflow1_README.md +0 -150
- empathy_os/workflows/orchestrated_health_check.py +0 -849
- empathy_os/workflows/orchestrated_release_prep.py +0 -600
- empathy_os/workflows/output.py +0 -410
- empathy_os/workflows/perf_audit.py +0 -863
- empathy_os/workflows/pr_review.py +0 -762
- empathy_os/workflows/progress.py +0 -779
- empathy_os/workflows/progress_server.py +0 -322
- empathy_os/workflows/progressive/README 2.md +0 -454
- empathy_os/workflows/progressive/README.md +0 -454
- empathy_os/workflows/progressive/__init__ 2.py +0 -92
- empathy_os/workflows/progressive/__init__.py +0 -82
- empathy_os/workflows/progressive/cli 2.py +0 -242
- empathy_os/workflows/progressive/cli.py +0 -219
- empathy_os/workflows/progressive/core 2.py +0 -488
- empathy_os/workflows/progressive/core.py +0 -488
- empathy_os/workflows/progressive/orchestrator 2.py +0 -701
- empathy_os/workflows/progressive/orchestrator.py +0 -723
- empathy_os/workflows/progressive/reports 2.py +0 -528
- empathy_os/workflows/progressive/reports.py +0 -520
- empathy_os/workflows/progressive/telemetry 2.py +0 -280
- empathy_os/workflows/progressive/telemetry.py +0 -274
- empathy_os/workflows/progressive/test_gen 2.py +0 -514
- empathy_os/workflows/progressive/test_gen.py +0 -495
- empathy_os/workflows/progressive/workflow 2.py +0 -628
- empathy_os/workflows/progressive/workflow.py +0 -589
- empathy_os/workflows/refactor_plan.py +0 -694
- empathy_os/workflows/release_prep.py +0 -895
- empathy_os/workflows/release_prep_crew.py +0 -969
- empathy_os/workflows/research_synthesis.py +0 -404
- empathy_os/workflows/routing.py +0 -168
- empathy_os/workflows/secure_release.py +0 -593
- empathy_os/workflows/security_adapters.py +0 -297
- empathy_os/workflows/security_audit.py +0 -1329
- empathy_os/workflows/security_audit_phase3.py +0 -355
- empathy_os/workflows/seo_optimization.py +0 -633
- empathy_os/workflows/step_config.py +0 -234
- empathy_os/workflows/telemetry_mixin.py +0 -269
- empathy_os/workflows/test5.py +0 -125
- empathy_os/workflows/test5_README.md +0 -158
- empathy_os/workflows/test_coverage_boost_crew.py +0 -849
- empathy_os/workflows/test_gen/__init__.py +0 -52
- empathy_os/workflows/test_gen/ast_analyzer.py +0 -249
- empathy_os/workflows/test_gen/config.py +0 -88
- empathy_os/workflows/test_gen/data_models.py +0 -38
- empathy_os/workflows/test_gen/report_formatter.py +0 -289
- empathy_os/workflows/test_gen/test_templates.py +0 -381
- empathy_os/workflows/test_gen/workflow.py +0 -655
- empathy_os/workflows/test_gen.py +0 -54
- empathy_os/workflows/test_gen_behavioral.py +0 -477
- empathy_os/workflows/test_gen_parallel.py +0 -341
- empathy_os/workflows/test_lifecycle.py +0 -526
- empathy_os/workflows/test_maintenance.py +0 -627
- empathy_os/workflows/test_maintenance_cli.py +0 -590
- empathy_os/workflows/test_maintenance_crew.py +0 -840
- empathy_os/workflows/test_runner.py +0 -622
- empathy_os/workflows/tier_tracking.py +0 -531
- empathy_os/workflows/xml_enhanced_crew.py +0 -285
- empathy_software_plugin/SOFTWARE_PLUGIN_README.md +0 -57
- empathy_software_plugin/cli/__init__.py +0 -120
- empathy_software_plugin/cli/inspect.py +0 -362
- empathy_software_plugin/cli.py +0 -574
- empathy_software_plugin/plugin.py +0 -188
- workflow_scaffolding/__init__.py +0 -11
- workflow_scaffolding/__main__.py +0 -12
- workflow_scaffolding/cli.py +0 -206
- workflow_scaffolding/generator.py +0 -265
- {empathy_framework-5.2.1.dist-info → empathy_framework-5.4.0.dist-info}/WHEEL +0 -0
|
@@ -1,504 +0,0 @@
|
|
|
1
|
-
"""Project Index Data Models
|
|
2
|
-
|
|
3
|
-
Defines the structure of file metadata and project summaries.
|
|
4
|
-
|
|
5
|
-
Copyright 2025 Smart AI Memory, LLC
|
|
6
|
-
Licensed under Fair Source 0.9
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
from dataclasses import dataclass, field
|
|
10
|
-
from datetime import datetime
|
|
11
|
-
from enum import Enum
|
|
12
|
-
from typing import Any
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class FileCategory(str, Enum):
|
|
16
|
-
"""Categories of files in a project."""
|
|
17
|
-
|
|
18
|
-
SOURCE = "source" # Production code
|
|
19
|
-
TEST = "test" # Test files
|
|
20
|
-
CONFIG = "config" # Configuration files
|
|
21
|
-
DOCS = "docs" # Documentation
|
|
22
|
-
ASSET = "asset" # Static assets
|
|
23
|
-
GENERATED = "generated" # Auto-generated files
|
|
24
|
-
BUILD = "build" # Build artifacts
|
|
25
|
-
UNKNOWN = "unknown"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class TestRequirement(str, Enum):
|
|
29
|
-
"""Whether a file requires tests."""
|
|
30
|
-
|
|
31
|
-
REQUIRED = "required" # Should have tests
|
|
32
|
-
OPTIONAL = "optional" # Tests nice to have
|
|
33
|
-
NOT_APPLICABLE = "not_applicable" # Doesn't need tests
|
|
34
|
-
EXCLUDED = "excluded" # Explicitly excluded
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@dataclass
|
|
38
|
-
class FileRecord:
|
|
39
|
-
"""Metadata record for a single file in the project.
|
|
40
|
-
|
|
41
|
-
This is the core data structure that workflows and agents
|
|
42
|
-
can read and write to track file state.
|
|
43
|
-
"""
|
|
44
|
-
|
|
45
|
-
# Identity
|
|
46
|
-
path: str # Relative path from project root
|
|
47
|
-
name: str # File name
|
|
48
|
-
category: FileCategory = FileCategory.UNKNOWN
|
|
49
|
-
language: str = "" # python, typescript, etc.
|
|
50
|
-
|
|
51
|
-
# Testing metadata
|
|
52
|
-
test_requirement: TestRequirement = TestRequirement.REQUIRED
|
|
53
|
-
test_file_path: str | None = None
|
|
54
|
-
tests_exist: bool = False
|
|
55
|
-
test_count: int = 0
|
|
56
|
-
coverage_percent: float = 0.0
|
|
57
|
-
|
|
58
|
-
# Timestamps
|
|
59
|
-
last_modified: datetime | None = None
|
|
60
|
-
tests_last_modified: datetime | None = None
|
|
61
|
-
last_indexed: datetime | None = None
|
|
62
|
-
|
|
63
|
-
# Staleness (days since source changed but tests didn't)
|
|
64
|
-
staleness_days: int = 0
|
|
65
|
-
is_stale: bool = False
|
|
66
|
-
|
|
67
|
-
# Code metrics
|
|
68
|
-
lines_of_code: int = 0
|
|
69
|
-
lines_of_test: int = 0
|
|
70
|
-
complexity_score: float = 0.0
|
|
71
|
-
|
|
72
|
-
# Quality indicators
|
|
73
|
-
has_docstrings: bool = False
|
|
74
|
-
has_type_hints: bool = False
|
|
75
|
-
lint_issues: int = 0
|
|
76
|
-
|
|
77
|
-
# Dependencies
|
|
78
|
-
imports: list[str] = field(default_factory=list)
|
|
79
|
-
imported_by: list[str] = field(default_factory=list)
|
|
80
|
-
import_count: int = 0
|
|
81
|
-
imported_by_count: int = 0
|
|
82
|
-
|
|
83
|
-
# Impact scoring (higher = more critical)
|
|
84
|
-
impact_score: float = 0.0
|
|
85
|
-
|
|
86
|
-
# Custom metadata (for workflow-specific data)
|
|
87
|
-
metadata: dict[str, Any] = field(default_factory=dict)
|
|
88
|
-
|
|
89
|
-
# Tracking
|
|
90
|
-
needs_attention: bool = False
|
|
91
|
-
attention_reasons: list[str] = field(default_factory=list)
|
|
92
|
-
|
|
93
|
-
def to_dict(self) -> dict[str, Any]:
|
|
94
|
-
"""Convert to dictionary for JSON serialization."""
|
|
95
|
-
return {
|
|
96
|
-
"path": self.path,
|
|
97
|
-
"name": self.name,
|
|
98
|
-
"category": self.category.value,
|
|
99
|
-
"language": self.language,
|
|
100
|
-
"test_requirement": self.test_requirement.value,
|
|
101
|
-
"test_file_path": self.test_file_path,
|
|
102
|
-
"tests_exist": self.tests_exist,
|
|
103
|
-
"test_count": self.test_count,
|
|
104
|
-
"coverage_percent": self.coverage_percent,
|
|
105
|
-
"last_modified": self.last_modified.isoformat() if self.last_modified else None,
|
|
106
|
-
"tests_last_modified": (
|
|
107
|
-
self.tests_last_modified.isoformat() if self.tests_last_modified else None
|
|
108
|
-
),
|
|
109
|
-
"last_indexed": self.last_indexed.isoformat() if self.last_indexed else None,
|
|
110
|
-
"staleness_days": self.staleness_days,
|
|
111
|
-
"is_stale": self.is_stale,
|
|
112
|
-
"lines_of_code": self.lines_of_code,
|
|
113
|
-
"lines_of_test": self.lines_of_test,
|
|
114
|
-
"complexity_score": self.complexity_score,
|
|
115
|
-
"has_docstrings": self.has_docstrings,
|
|
116
|
-
"has_type_hints": self.has_type_hints,
|
|
117
|
-
"lint_issues": self.lint_issues,
|
|
118
|
-
"imports": self.imports,
|
|
119
|
-
"imported_by": self.imported_by,
|
|
120
|
-
"import_count": self.import_count,
|
|
121
|
-
"imported_by_count": self.imported_by_count,
|
|
122
|
-
"impact_score": self.impact_score,
|
|
123
|
-
"metadata": self.metadata,
|
|
124
|
-
"needs_attention": self.needs_attention,
|
|
125
|
-
"attention_reasons": self.attention_reasons,
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@classmethod
|
|
129
|
-
def from_dict(cls, data: dict[str, Any]) -> "FileRecord":
|
|
130
|
-
"""Create from dictionary."""
|
|
131
|
-
return cls(
|
|
132
|
-
path=data.get("path", ""),
|
|
133
|
-
name=data.get("name", ""),
|
|
134
|
-
category=FileCategory(data.get("category", "unknown")),
|
|
135
|
-
language=data.get("language", ""),
|
|
136
|
-
test_requirement=TestRequirement(data.get("test_requirement", "required")),
|
|
137
|
-
test_file_path=data.get("test_file_path"),
|
|
138
|
-
tests_exist=data.get("tests_exist", False),
|
|
139
|
-
test_count=data.get("test_count", 0),
|
|
140
|
-
coverage_percent=data.get("coverage_percent", 0.0),
|
|
141
|
-
last_modified=(
|
|
142
|
-
datetime.fromisoformat(data["last_modified"]) if data.get("last_modified") else None
|
|
143
|
-
),
|
|
144
|
-
tests_last_modified=(
|
|
145
|
-
datetime.fromisoformat(data["tests_last_modified"])
|
|
146
|
-
if data.get("tests_last_modified")
|
|
147
|
-
else None
|
|
148
|
-
),
|
|
149
|
-
last_indexed=(
|
|
150
|
-
datetime.fromisoformat(data["last_indexed"]) if data.get("last_indexed") else None
|
|
151
|
-
),
|
|
152
|
-
staleness_days=data.get("staleness_days", 0),
|
|
153
|
-
is_stale=data.get("is_stale", False),
|
|
154
|
-
lines_of_code=data.get("lines_of_code", 0),
|
|
155
|
-
lines_of_test=data.get("lines_of_test", 0),
|
|
156
|
-
complexity_score=data.get("complexity_score", 0.0),
|
|
157
|
-
has_docstrings=data.get("has_docstrings", False),
|
|
158
|
-
has_type_hints=data.get("has_type_hints", False),
|
|
159
|
-
lint_issues=data.get("lint_issues", 0),
|
|
160
|
-
imports=data.get("imports", []),
|
|
161
|
-
imported_by=data.get("imported_by", []),
|
|
162
|
-
import_count=data.get("import_count", 0),
|
|
163
|
-
imported_by_count=data.get("imported_by_count", 0),
|
|
164
|
-
impact_score=data.get("impact_score", 0.0),
|
|
165
|
-
metadata=data.get("metadata", {}),
|
|
166
|
-
needs_attention=data.get("needs_attention", False),
|
|
167
|
-
attention_reasons=data.get("attention_reasons", []),
|
|
168
|
-
)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
@dataclass
|
|
172
|
-
class ProjectSummary:
|
|
173
|
-
"""High-level summary of project health.
|
|
174
|
-
|
|
175
|
-
Updated each time the index is regenerated.
|
|
176
|
-
"""
|
|
177
|
-
|
|
178
|
-
# Counts
|
|
179
|
-
total_files: int = 0
|
|
180
|
-
source_files: int = 0
|
|
181
|
-
test_files: int = 0
|
|
182
|
-
config_files: int = 0
|
|
183
|
-
doc_files: int = 0
|
|
184
|
-
|
|
185
|
-
# Testing health
|
|
186
|
-
files_requiring_tests: int = 0
|
|
187
|
-
files_with_tests: int = 0
|
|
188
|
-
files_without_tests: int = 0
|
|
189
|
-
test_coverage_avg: float = 0.0
|
|
190
|
-
total_test_count: int = 0
|
|
191
|
-
|
|
192
|
-
# Staleness
|
|
193
|
-
stale_file_count: int = 0
|
|
194
|
-
avg_staleness_days: float = 0.0
|
|
195
|
-
most_stale_files: list[str] = field(default_factory=list)
|
|
196
|
-
|
|
197
|
-
# Code metrics
|
|
198
|
-
total_lines_of_code: int = 0
|
|
199
|
-
total_lines_of_test: int = 0
|
|
200
|
-
test_to_code_ratio: float = 0.0
|
|
201
|
-
avg_complexity: float = 0.0
|
|
202
|
-
|
|
203
|
-
# Quality
|
|
204
|
-
files_with_docstrings_pct: float = 0.0
|
|
205
|
-
files_with_type_hints_pct: float = 0.0
|
|
206
|
-
total_lint_issues: int = 0
|
|
207
|
-
|
|
208
|
-
# Impact analysis
|
|
209
|
-
high_impact_files: list[str] = field(default_factory=list)
|
|
210
|
-
critical_untested_files: list[str] = field(default_factory=list)
|
|
211
|
-
|
|
212
|
-
# Attention needed
|
|
213
|
-
files_needing_attention: int = 0
|
|
214
|
-
top_attention_files: list[str] = field(default_factory=list)
|
|
215
|
-
|
|
216
|
-
def to_dict(self) -> dict[str, Any]:
|
|
217
|
-
"""Convert to dictionary."""
|
|
218
|
-
return {
|
|
219
|
-
"total_files": self.total_files,
|
|
220
|
-
"source_files": self.source_files,
|
|
221
|
-
"test_files": self.test_files,
|
|
222
|
-
"config_files": self.config_files,
|
|
223
|
-
"doc_files": self.doc_files,
|
|
224
|
-
"files_requiring_tests": self.files_requiring_tests,
|
|
225
|
-
"files_with_tests": self.files_with_tests,
|
|
226
|
-
"files_without_tests": self.files_without_tests,
|
|
227
|
-
"test_coverage_avg": self.test_coverage_avg,
|
|
228
|
-
"total_test_count": self.total_test_count,
|
|
229
|
-
"stale_file_count": self.stale_file_count,
|
|
230
|
-
"avg_staleness_days": self.avg_staleness_days,
|
|
231
|
-
"most_stale_files": self.most_stale_files,
|
|
232
|
-
"total_lines_of_code": self.total_lines_of_code,
|
|
233
|
-
"total_lines_of_test": self.total_lines_of_test,
|
|
234
|
-
"test_to_code_ratio": self.test_to_code_ratio,
|
|
235
|
-
"avg_complexity": self.avg_complexity,
|
|
236
|
-
"files_with_docstrings_pct": self.files_with_docstrings_pct,
|
|
237
|
-
"files_with_type_hints_pct": self.files_with_type_hints_pct,
|
|
238
|
-
"total_lint_issues": self.total_lint_issues,
|
|
239
|
-
"high_impact_files": self.high_impact_files,
|
|
240
|
-
"critical_untested_files": self.critical_untested_files,
|
|
241
|
-
"files_needing_attention": self.files_needing_attention,
|
|
242
|
-
"top_attention_files": self.top_attention_files,
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
@classmethod
|
|
246
|
-
def from_dict(cls, data: dict[str, Any]) -> "ProjectSummary":
|
|
247
|
-
"""Create from dictionary."""
|
|
248
|
-
return cls(
|
|
249
|
-
total_files=data.get("total_files", 0),
|
|
250
|
-
source_files=data.get("source_files", 0),
|
|
251
|
-
test_files=data.get("test_files", 0),
|
|
252
|
-
config_files=data.get("config_files", 0),
|
|
253
|
-
doc_files=data.get("doc_files", 0),
|
|
254
|
-
files_requiring_tests=data.get("files_requiring_tests", 0),
|
|
255
|
-
files_with_tests=data.get("files_with_tests", 0),
|
|
256
|
-
files_without_tests=data.get("files_without_tests", 0),
|
|
257
|
-
test_coverage_avg=data.get("test_coverage_avg", 0.0),
|
|
258
|
-
total_test_count=data.get("total_test_count", 0),
|
|
259
|
-
stale_file_count=data.get("stale_file_count", 0),
|
|
260
|
-
avg_staleness_days=data.get("avg_staleness_days", 0.0),
|
|
261
|
-
most_stale_files=data.get("most_stale_files", []),
|
|
262
|
-
total_lines_of_code=data.get("total_lines_of_code", 0),
|
|
263
|
-
total_lines_of_test=data.get("total_lines_of_test", 0),
|
|
264
|
-
test_to_code_ratio=data.get("test_to_code_ratio", 0.0),
|
|
265
|
-
avg_complexity=data.get("avg_complexity", 0.0),
|
|
266
|
-
files_with_docstrings_pct=data.get("files_with_docstrings_pct", 0.0),
|
|
267
|
-
files_with_type_hints_pct=data.get("files_with_type_hints_pct", 0.0),
|
|
268
|
-
total_lint_issues=data.get("total_lint_issues", 0),
|
|
269
|
-
high_impact_files=data.get("high_impact_files", []),
|
|
270
|
-
critical_untested_files=data.get("critical_untested_files", []),
|
|
271
|
-
files_needing_attention=data.get("files_needing_attention", 0),
|
|
272
|
-
top_attention_files=data.get("top_attention_files", []),
|
|
273
|
-
)
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
@dataclass
|
|
277
|
-
class IndexConfig:
|
|
278
|
-
"""Configuration for the project index.
|
|
279
|
-
|
|
280
|
-
Defines exclusion patterns, staleness thresholds, etc.
|
|
281
|
-
"""
|
|
282
|
-
|
|
283
|
-
# File patterns to exclude from indexing
|
|
284
|
-
exclude_patterns: list[str] = field(
|
|
285
|
-
default_factory=lambda: [
|
|
286
|
-
# Python cache and bytecode
|
|
287
|
-
"**/__pycache__/**",
|
|
288
|
-
"**/*.pyc",
|
|
289
|
-
"**/*.pyo",
|
|
290
|
-
# Version control
|
|
291
|
-
"**/.git/**",
|
|
292
|
-
# Environment files (contain secrets)
|
|
293
|
-
"**/.env",
|
|
294
|
-
"**/.env.*",
|
|
295
|
-
"**/*.env",
|
|
296
|
-
# Virtual environments
|
|
297
|
-
"**/.venv/**",
|
|
298
|
-
"**/venv/**",
|
|
299
|
-
"**/env/**",
|
|
300
|
-
# Package managers
|
|
301
|
-
"**/node_modules/**",
|
|
302
|
-
# Build outputs
|
|
303
|
-
"**/dist/**",
|
|
304
|
-
"**/build/**",
|
|
305
|
-
"**/.next/**",
|
|
306
|
-
"**/site/**",
|
|
307
|
-
"**/*.egg-info/**",
|
|
308
|
-
"**/out/**",
|
|
309
|
-
# Test cache and coverage
|
|
310
|
-
"**/htmlcov/**",
|
|
311
|
-
"**/.pytest_cache/**",
|
|
312
|
-
"**/.mypy_cache/**",
|
|
313
|
-
"**/.ruff_cache/**",
|
|
314
|
-
"**/.coverage*",
|
|
315
|
-
"**/coverage.xml",
|
|
316
|
-
"**/coverage.json",
|
|
317
|
-
"**/.tox/**",
|
|
318
|
-
"**/.nox/**",
|
|
319
|
-
# Generated/binary files
|
|
320
|
-
"**/*.pack",
|
|
321
|
-
"**/dump.rdb",
|
|
322
|
-
# Logs
|
|
323
|
-
"**/logs/**",
|
|
324
|
-
"**/*.log",
|
|
325
|
-
"**/*.jsonl",
|
|
326
|
-
# OS files
|
|
327
|
-
"**/.DS_Store",
|
|
328
|
-
"**/Thumbs.db",
|
|
329
|
-
# IDE/Editor files
|
|
330
|
-
"**/.idea/**",
|
|
331
|
-
"**/.vscode/**",
|
|
332
|
-
"**/*.swp",
|
|
333
|
-
"**/*.swo",
|
|
334
|
-
# External/archived directories (project-specific)
|
|
335
|
-
"**/website/**",
|
|
336
|
-
"**/ebook-site/**",
|
|
337
|
-
"**/anthropic-cookbook/**",
|
|
338
|
-
"**/salvaged/**",
|
|
339
|
-
"**/10_9_2025_ai_nurse_florence/**",
|
|
340
|
-
"**/book-indesign/**",
|
|
341
|
-
"**/examples/**",
|
|
342
|
-
# Binary/asset files
|
|
343
|
-
"**/*.pdf",
|
|
344
|
-
"**/*.jpeg",
|
|
345
|
-
"**/*.jpg",
|
|
346
|
-
"**/*.png",
|
|
347
|
-
"**/*.gif",
|
|
348
|
-
"**/*.ico",
|
|
349
|
-
"**/*.svg",
|
|
350
|
-
"**/*.woff",
|
|
351
|
-
"**/*.woff2",
|
|
352
|
-
"**/*.ttf",
|
|
353
|
-
"**/*.eot",
|
|
354
|
-
"**/*.mp3",
|
|
355
|
-
"**/*.mp4",
|
|
356
|
-
"**/*.wav",
|
|
357
|
-
"**/*.zip",
|
|
358
|
-
"**/*.tar",
|
|
359
|
-
"**/*.gz",
|
|
360
|
-
# Adobe/Design files
|
|
361
|
-
"**/*.indd",
|
|
362
|
-
"**/*.psd",
|
|
363
|
-
"**/*.ai",
|
|
364
|
-
"**/*.sketch",
|
|
365
|
-
"**/*.figma",
|
|
366
|
-
# Lock files
|
|
367
|
-
"**/package-lock.json",
|
|
368
|
-
"**/yarn.lock",
|
|
369
|
-
"**/poetry.lock",
|
|
370
|
-
"**/Pipfile.lock",
|
|
371
|
-
# Archive directories
|
|
372
|
-
"**/archived_workflows/**",
|
|
373
|
-
],
|
|
374
|
-
)
|
|
375
|
-
|
|
376
|
-
# Patterns for files that don't require tests
|
|
377
|
-
no_test_patterns: list[str] = field(
|
|
378
|
-
default_factory=lambda: [
|
|
379
|
-
# Python special files
|
|
380
|
-
"**/__init__.py",
|
|
381
|
-
"**/__main__.py",
|
|
382
|
-
"**/conftest.py",
|
|
383
|
-
"**/setup.py",
|
|
384
|
-
"**/setup.cfg",
|
|
385
|
-
# Configuration files
|
|
386
|
-
"**/*.yml",
|
|
387
|
-
"**/*.yaml",
|
|
388
|
-
"**/*.json",
|
|
389
|
-
"**/*.toml",
|
|
390
|
-
"**/*.ini",
|
|
391
|
-
"**/*.cfg",
|
|
392
|
-
"**/*.conf",
|
|
393
|
-
# Documentation
|
|
394
|
-
"**/*.md",
|
|
395
|
-
"**/*.txt",
|
|
396
|
-
"**/*.rst",
|
|
397
|
-
# Frontend assets
|
|
398
|
-
"**/*.css",
|
|
399
|
-
"**/*.scss",
|
|
400
|
-
"**/*.less",
|
|
401
|
-
"**/*.html",
|
|
402
|
-
"**/*.jinja",
|
|
403
|
-
"**/*.jinja2",
|
|
404
|
-
# Database and migrations
|
|
405
|
-
"**/migrations/**",
|
|
406
|
-
"**/alembic/**",
|
|
407
|
-
# Static and templates
|
|
408
|
-
"**/static/**",
|
|
409
|
-
"**/templates/**",
|
|
410
|
-
"**/fixtures/**",
|
|
411
|
-
# Scripts and utilities (typically standalone)
|
|
412
|
-
"**/scripts/**",
|
|
413
|
-
"**/bin/**",
|
|
414
|
-
"**/tools/**",
|
|
415
|
-
"**/*_script.py",
|
|
416
|
-
"**/*_example.py",
|
|
417
|
-
"**/profile_*.py",
|
|
418
|
-
"**/benchmark_*.py",
|
|
419
|
-
# CLI entry points
|
|
420
|
-
"**/*_cli.py",
|
|
421
|
-
"**/cli.py",
|
|
422
|
-
# Type stubs
|
|
423
|
-
"**/*.pyi",
|
|
424
|
-
# Jupyter notebooks
|
|
425
|
-
"**/*.ipynb",
|
|
426
|
-
# Test files themselves don't need tests
|
|
427
|
-
"**/test_*.py",
|
|
428
|
-
"**/tests/**",
|
|
429
|
-
"**/*_test.py",
|
|
430
|
-
# Example and demo files
|
|
431
|
-
"**/*_example.py",
|
|
432
|
-
"**/*_demo.py",
|
|
433
|
-
"**/example_*.py",
|
|
434
|
-
"**/demo_*.py",
|
|
435
|
-
# Prompt templates
|
|
436
|
-
"**/prompts/**",
|
|
437
|
-
# Vscode extension (separate project)
|
|
438
|
-
"**/vscode-extension/**",
|
|
439
|
-
],
|
|
440
|
-
)
|
|
441
|
-
|
|
442
|
-
# Staleness threshold in days
|
|
443
|
-
staleness_threshold_days: int = 7
|
|
444
|
-
|
|
445
|
-
# Coverage threshold for "needs attention"
|
|
446
|
-
low_coverage_threshold: float = 50.0
|
|
447
|
-
|
|
448
|
-
# Impact score threshold for "high impact"
|
|
449
|
-
high_impact_threshold: float = 5.0
|
|
450
|
-
|
|
451
|
-
# Source directories to scan
|
|
452
|
-
source_dirs: list[str] = field(
|
|
453
|
-
default_factory=lambda: [
|
|
454
|
-
"src",
|
|
455
|
-
"empathy_llm_toolkit",
|
|
456
|
-
"empathy_software_plugin",
|
|
457
|
-
"empathy_healthcare_plugin",
|
|
458
|
-
],
|
|
459
|
-
)
|
|
460
|
-
|
|
461
|
-
# Test directory
|
|
462
|
-
test_dir: str = "tests"
|
|
463
|
-
|
|
464
|
-
# Redis settings
|
|
465
|
-
use_redis: bool = False
|
|
466
|
-
redis_key_prefix: str = "empathy:project_index"
|
|
467
|
-
|
|
468
|
-
def to_dict(self) -> dict[str, Any]:
|
|
469
|
-
"""Convert to dictionary."""
|
|
470
|
-
return {
|
|
471
|
-
"exclude_patterns": self.exclude_patterns,
|
|
472
|
-
"no_test_patterns": self.no_test_patterns,
|
|
473
|
-
"staleness_threshold_days": self.staleness_threshold_days,
|
|
474
|
-
"low_coverage_threshold": self.low_coverage_threshold,
|
|
475
|
-
"high_impact_threshold": self.high_impact_threshold,
|
|
476
|
-
"source_dirs": self.source_dirs,
|
|
477
|
-
"test_dir": self.test_dir,
|
|
478
|
-
"use_redis": self.use_redis,
|
|
479
|
-
"redis_key_prefix": self.redis_key_prefix,
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
@classmethod
|
|
483
|
-
def from_dict(cls, data: dict[str, Any]) -> "IndexConfig":
|
|
484
|
-
"""Create from dictionary."""
|
|
485
|
-
config = cls()
|
|
486
|
-
if "exclude_patterns" in data:
|
|
487
|
-
config.exclude_patterns = data["exclude_patterns"]
|
|
488
|
-
if "no_test_patterns" in data:
|
|
489
|
-
config.no_test_patterns = data["no_test_patterns"]
|
|
490
|
-
if "staleness_threshold_days" in data:
|
|
491
|
-
config.staleness_threshold_days = data["staleness_threshold_days"]
|
|
492
|
-
if "low_coverage_threshold" in data:
|
|
493
|
-
config.low_coverage_threshold = data["low_coverage_threshold"]
|
|
494
|
-
if "high_impact_threshold" in data:
|
|
495
|
-
config.high_impact_threshold = data["high_impact_threshold"]
|
|
496
|
-
if "source_dirs" in data:
|
|
497
|
-
config.source_dirs = data["source_dirs"]
|
|
498
|
-
if "test_dir" in data:
|
|
499
|
-
config.test_dir = data["test_dir"]
|
|
500
|
-
if "use_redis" in data:
|
|
501
|
-
config.use_redis = data["use_redis"]
|
|
502
|
-
if "redis_key_prefix" in data:
|
|
503
|
-
config.redis_key_prefix = data["redis_key_prefix"]
|
|
504
|
-
return config
|