patchi 0.7.5__tar.gz → 0.7.8__tar.gz
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.
- patchi-0.7.8/PKG-INFO +467 -0
- patchi-0.7.8/README.md +406 -0
- patchi-0.7.8/patchi/__init__.py +1 -0
- patchi-0.7.8/patchi/cli/commands/access_cmd.py +65 -0
- patchi-0.7.8/patchi/cli/commands/agents_cmd.py +187 -0
- patchi-0.7.8/patchi/cli/commands/ai_cmd.py +308 -0
- patchi-0.7.8/patchi/cli/commands/assure_cmd.py +538 -0
- patchi-0.7.8/patchi/cli/commands/audit_cmd.py +286 -0
- patchi-0.7.8/patchi/cli/commands/auto_cmd.py +110 -0
- patchi-0.7.8/patchi/cli/commands/blame_cmd.py +53 -0
- patchi-0.7.8/patchi/cli/commands/chains_cmd.py +327 -0
- patchi-0.7.8/patchi/cli/commands/charter_cmd.py +173 -0
- patchi-0.7.8/patchi/cli/commands/chat_cmd.py +597 -0
- patchi-0.7.8/patchi/cli/commands/check_cmd.py +232 -0
- patchi-0.7.8/patchi/cli/commands/cleanup_cmd.py +328 -0
- patchi-0.7.8/patchi/cli/commands/cockpit_cmd.py +208 -0
- patchi-0.7.8/patchi/cli/commands/commands_cmd.py +161 -0
- patchi-0.7.8/patchi/cli/commands/cross_repo_cmd.py +113 -0
- patchi-0.7.8/patchi/cli/commands/deps_cmd.py +110 -0
- patchi-0.7.8/patchi/cli/commands/dev_check_cmd.py +342 -0
- patchi-0.7.8/patchi/cli/commands/dev_cmd.py +445 -0
- patchi-0.7.8/patchi/cli/commands/doctor_cmd.py +457 -0
- patchi-0.7.8/patchi/cli/commands/findings_cmd.py +187 -0
- patchi-0.7.8/patchi/cli/commands/fix_cmd.py +648 -0
- patchi-0.7.8/patchi/cli/commands/heatmap_cmd.py +62 -0
- patchi-0.7.8/patchi/cli/commands/help_cmd.py +159 -0
- patchi-0.7.8/patchi/cli/commands/hosted_cmd.py +980 -0
- patchi-0.7.8/patchi/cli/commands/init.py +475 -0
- patchi-0.7.8/patchi/cli/commands/key_cmd.py +571 -0
- patchi-0.7.8/patchi/cli/commands/learn_cmd.py +140 -0
- patchi-0.7.8/patchi/cli/commands/log_cmd.py +57 -0
- patchi-0.7.8/patchi/cli/commands/memory_cmd.py +215 -0
- patchi-0.7.8/patchi/cli/commands/model_cmd.py +207 -0
- patchi-0.7.8/patchi/cli/commands/notify_cmd.py +213 -0
- patchi-0.7.8/patchi/cli/commands/notify_prompts.py +29 -0
- patchi-0.7.8/patchi/cli/commands/patch_cmd.py +231 -0
- patchi-0.7.8/patchi/cli/commands/plan_cmd.py +128 -0
- patchi-0.7.8/patchi/cli/commands/queue_cmd.py +152 -0
- patchi-0.7.8/patchi/cli/commands/report_cmd.py +416 -0
- patchi-0.7.8/patchi/cli/commands/restrict_cmd.py +127 -0
- patchi-0.7.8/patchi/cli/commands/review_cmd.py +225 -0
- patchi-0.7.8/patchi/cli/commands/rules_cmd.py +233 -0
- patchi-0.7.8/patchi/cli/commands/scan_cmd.py +1972 -0
- patchi-0.7.8/patchi/cli/commands/settings_cmd.py +45 -0
- patchi-0.7.8/patchi/cli/commands/status_cmd.py +679 -0
- patchi-0.7.8/patchi/cli/commands/test_cmd.py +1052 -0
- patchi-0.7.8/patchi/cli/commands/trend_cmd.py +296 -0
- patchi-0.7.8/patchi/cli/commands/undo_cmd.py +235 -0
- patchi-0.7.8/patchi/cli/commands/update_cmd.py +345 -0
- patchi-0.7.8/patchi/cli/commands/verify_cmd.py +56 -0
- patchi-0.7.8/patchi/cli/commands/vr_cmd.py +440 -0
- patchi-0.7.8/patchi/cli/commands/watch_cmd.py +304 -0
- patchi-0.7.8/patchi/cli/commands/web_cmd.py +114 -0
- patchi-0.7.8/patchi/cli/console.py +101 -0
- patchi-0.7.8/patchi/cli/display/__init__.py +1 -0
- patchi-0.7.8/patchi/cli/display/live_audit.py +269 -0
- patchi-0.7.8/patchi/cli/display/live_progress.py +169 -0
- patchi-0.7.8/patchi/cli/framework.py +241 -0
- patchi-0.7.8/patchi/cli/logo.py +128 -0
- patchi-0.7.8/patchi/cli/main.py +239 -0
- patchi-0.7.8/patchi/cli/registry.py +1171 -0
- patchi-0.7.8/patchi/cli/style.py +68 -0
- patchi-0.7.8/patchi/cli/themes.py +187 -0
- patchi-0.7.8/patchi/cli/ux.py +444 -0
- patchi-0.7.8/patchi/core/agents/api_fuzzer_agent.py +144 -0
- patchi-0.7.8/patchi/core/agents/attack_agent.py +242 -0
- patchi-0.7.8/patchi/core/agents/base.py +1042 -0
- patchi-0.7.8/patchi/core/agents/bug_predictor_agent.py +61 -0
- patchi-0.7.8/patchi/core/agents/build_tool_validator.py +150 -0
- patchi-0.7.8/patchi/core/agents/cache.py +192 -0
- patchi-0.7.8/patchi/core/agents/chaos_agent.py +141 -0
- patchi-0.7.8/patchi/core/agents/cicd_generator.py +240 -0
- patchi-0.7.8/patchi/core/agents/comment_scanner.py +308 -0
- patchi-0.7.8/patchi/core/agents/coordinator.py +1075 -0
- patchi-0.7.8/patchi/core/agents/core_scanner.py +270 -0
- patchi-0.7.8/patchi/core/agents/coverage_prioritizer.py +183 -0
- patchi-0.7.8/patchi/core/agents/dead_code_hygiene.py +309 -0
- patchi-0.7.8/patchi/core/agents/dead_code_scanner.py +717 -0
- patchi-0.7.8/patchi/core/agents/dependency_scanner.py +725 -0
- patchi-0.7.8/patchi/core/agents/doc_claim_agent.py +576 -0
- patchi-0.7.8/patchi/core/agents/duplicate_scanner.py +591 -0
- patchi-0.7.8/patchi/core/agents/env_scanner.py +433 -0
- patchi-0.7.8/patchi/core/agents/feature_flag_agent.py +97 -0
- patchi-0.7.8/patchi/core/agents/frontend_framework_agent.py +144 -0
- patchi-0.7.8/patchi/core/agents/goroutine_agent.py +82 -0
- patchi-0.7.8/patchi/core/agents/governor.py +1972 -0
- patchi-0.7.8/patchi/core/agents/i18n_agent.py +98 -0
- patchi-0.7.8/patchi/core/agents/license_compliance.py +247 -0
- patchi-0.7.8/patchi/core/agents/linking_agent.py +253 -0
- patchi-0.7.8/patchi/core/agents/modernization_agent.py +93 -0
- patchi-0.7.8/patchi/core/agents/mutation_agent.py +175 -0
- patchi-0.7.8/patchi/core/agents/nl_query_agent.py +76 -0
- patchi-0.7.8/patchi/core/agents/promise_rejection_agent.py +114 -0
- patchi-0.7.8/patchi/core/agents/refactoring_agent.py +288 -0
- patchi-0.7.8/patchi/core/agents/resource_leak_agent.py +101 -0
- patchi-0.7.8/patchi/core/agents/route_graph_scanner.py +958 -0
- patchi-0.7.8/patchi/core/agents/rust_unwrap_agent.py +100 -0
- patchi-0.7.8/patchi/core/agents/sbom_generator.py +284 -0
- patchi-0.7.8/patchi/core/agents/scanners.py +67 -0
- patchi-0.7.8/patchi/core/agents/side/build_agent.py +65 -0
- patchi-0.7.8/patchi/core/agents/side_file_scanner.py +549 -0
- patchi-0.7.8/patchi/core/agents/snapshot_drift_detector.py +146 -0
- patchi-0.7.8/patchi/core/agents/spa_route_inventory.py +203 -0
- patchi-0.7.8/patchi/core/agents/test_scanner.py +466 -0
- patchi-0.7.8/patchi/core/agents/tool_runner.py +162 -0
- patchi-0.7.8/patchi/core/agents/type_scanner.py +183 -0
- patchi-0.7.8/patchi/core/agents/ui_scanner.py +561 -0
- patchi-0.7.8/patchi/core/ai/__init__.py +20 -0
- patchi-0.7.8/patchi/core/ai/agent_audit.py +153 -0
- patchi-0.7.8/patchi/core/ai/agent_profiler.py +277 -0
- patchi-0.7.8/patchi/core/ai/client.py +552 -0
- patchi-0.7.8/patchi/core/ai/cost_tracker.py +107 -0
- patchi-0.7.8/patchi/core/ai/model_router.py +318 -0
- patchi-0.7.8/patchi/core/ai/orchestrator.py +625 -0
- patchi-0.7.8/patchi/core/ai/prompts.py +681 -0
- patchi-0.7.8/patchi/core/ai/smart.py +302 -0
- patchi-0.7.8/patchi/core/ai/tools/executor.py +621 -0
- patchi-0.7.8/patchi/core/ai/tools/realize.py +1160 -0
- patchi-0.7.8/patchi/core/ai/tools/registry.py +1577 -0
- patchi-0.7.8/patchi/core/assurance/graph.py +342 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/__init__.py +81 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/assignments.py +219 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/calls.py +139 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/config.py +132 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/control_flow.py +74 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/dead_symbols.py +205 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/decorators.py +108 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/helpers.py +144 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/imports.py +169 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/scan.py +143 -0
- patchi-0.7.8/patchi/core/brain/ast_utils/taint.py +310 -0
- patchi-0.7.8/patchi/core/brain/audit.py +379 -0
- patchi-0.7.8/patchi/core/brain/baseline.py +195 -0
- patchi-0.7.8/patchi/core/brain/blast_radius.py +312 -0
- patchi-0.7.8/patchi/core/brain/body_tags.py +144 -0
- patchi-0.7.8/patchi/core/brain/brain.py +1174 -0
- patchi-0.7.8/patchi/core/brain/brain_context.py +393 -0
- patchi-0.7.8/patchi/core/brain/brain_watcher.py +340 -0
- patchi-0.7.8/patchi/core/brain/charter.py +473 -0
- patchi-0.7.8/patchi/core/brain/classifier.py +214 -0
- patchi-0.7.8/patchi/core/brain/cockpit.py +350 -0
- patchi-0.7.8/patchi/core/brain/code_query.py +710 -0
- patchi-0.7.8/patchi/core/brain/contract.py +889 -0
- patchi-0.7.8/patchi/core/brain/contract_diff.py +155 -0
- patchi-0.7.8/patchi/core/brain/council.py +800 -0
- patchi-0.7.8/patchi/core/brain/cross_repo.py +104 -0
- patchi-0.7.8/patchi/core/brain/dead_code_tools.py +163 -0
- patchi-0.7.8/patchi/core/brain/doc_validator.py +197 -0
- patchi-0.7.8/patchi/core/brain/domain_activator.py +2183 -0
- patchi-0.7.8/patchi/core/brain/enriched_context.py +220 -0
- patchi-0.7.8/patchi/core/brain/file_corpus.py +226 -0
- patchi-0.7.8/patchi/core/brain/framework.py +1000 -0
- patchi-0.7.8/patchi/core/brain/freshness.py +273 -0
- patchi-0.7.8/patchi/core/brain/git_aware.py +208 -0
- patchi-0.7.8/patchi/core/brain/heatmap.py +106 -0
- patchi-0.7.8/patchi/core/brain/ignore_parser.py +153 -0
- patchi-0.7.8/patchi/core/brain/import_graph.py +562 -0
- patchi-0.7.8/patchi/core/brain/layered_brain.py +419 -0
- patchi-0.7.8/patchi/core/brain/learning.py +229 -0
- patchi-0.7.8/patchi/core/brain/orphaned_endpoints.py +313 -0
- patchi-0.7.8/patchi/core/brain/personas/__init__.py +648 -0
- patchi-0.7.8/patchi/core/brain/personas/base.py +349 -0
- patchi-0.7.8/patchi/core/brain/proactive.py +809 -0
- patchi-0.7.8/patchi/core/brain/project_context.py +121 -0
- patchi-0.7.8/patchi/core/brain/project_reader.py +521 -0
- patchi-0.7.8/patchi/core/brain/reasoning.py +269 -0
- patchi-0.7.8/patchi/core/brain/route_detector/__init__.py +15 -0
- patchi-0.7.8/patchi/core/brain/route_detector/base.py +31 -0
- patchi-0.7.8/patchi/core/brain/route_detector/csharp.py +209 -0
- patchi-0.7.8/patchi/core/brain/route_detector/file_based.py +81 -0
- patchi-0.7.8/patchi/core/brain/route_detector/go.py +152 -0
- patchi-0.7.8/patchi/core/brain/route_detector/java.py +195 -0
- patchi-0.7.8/patchi/core/brain/route_detector/javascript.py +197 -0
- patchi-0.7.8/patchi/core/brain/route_detector/php.py +158 -0
- patchi-0.7.8/patchi/core/brain/route_detector/python.py +193 -0
- patchi-0.7.8/patchi/core/brain/route_detector/registry.py +25 -0
- patchi-0.7.8/patchi/core/brain/route_detector/ruby.py +134 -0
- patchi-0.7.8/patchi/core/brain/route_detector/rust.py +216 -0
- patchi-0.7.8/patchi/core/brain/route_detector/swift.py +118 -0
- patchi-0.7.8/patchi/core/brain/route_mapper.py +265 -0
- patchi-0.7.8/patchi/core/brain/scanner.py +2223 -0
- patchi-0.7.8/patchi/core/brain/secrets.py +281 -0
- patchi-0.7.8/patchi/core/brain/symbol_graph.py +1955 -0
- patchi-0.7.8/patchi/core/brain/team.py +28 -0
- patchi-0.7.8/patchi/core/brain/trace_log.py +132 -0
- patchi-0.7.8/patchi/core/brain/type_checker/__init__.py +65 -0
- patchi-0.7.8/patchi/core/brain/type_checker/base.py +60 -0
- patchi-0.7.8/patchi/core/brain/type_checker/csharp.py +59 -0
- patchi-0.7.8/patchi/core/brain/type_checker/dart.py +59 -0
- patchi-0.7.8/patchi/core/brain/type_checker/go.py +81 -0
- patchi-0.7.8/patchi/core/brain/type_checker/java.py +75 -0
- patchi-0.7.8/patchi/core/brain/type_checker/kotlin.py +75 -0
- patchi-0.7.8/patchi/core/brain/type_checker/php.py +88 -0
- patchi-0.7.8/patchi/core/brain/type_checker/python.py +87 -0
- patchi-0.7.8/patchi/core/brain/type_checker/rust.py +81 -0
- patchi-0.7.8/patchi/core/brain/type_checker/swift.py +59 -0
- patchi-0.7.8/patchi/core/brain/type_checker/typescript.py +298 -0
- patchi-0.7.8/patchi/core/brain/understander.py +130 -0
- patchi-0.7.8/patchi/core/brain/verify.py +381 -0
- patchi-0.7.8/patchi/core/campaigns/data_flow_abuse.py +153 -0
- patchi-0.7.8/patchi/core/ci_bundle.py +104 -0
- patchi-0.7.8/patchi/core/config.py +311 -0
- patchi-0.7.8/patchi/core/constants.py +245 -0
- patchi-0.7.8/patchi/core/debug/__init__.py +25 -0
- patchi-0.7.8/patchi/core/debug/adapters/__init__.py +11 -0
- patchi-0.7.8/patchi/core/debug/adapters/codelldb.py +379 -0
- patchi-0.7.8/patchi/core/debug/adapters/node.py +222 -0
- patchi-0.7.8/patchi/core/debug/adapters/powershell.py +210 -0
- patchi-0.7.8/patchi/core/debug/adapters/python.py +244 -0
- patchi-0.7.8/patchi/core/debug/capture.py +210 -0
- patchi-0.7.8/patchi/core/debug/dap_client.py +268 -0
- patchi-0.7.8/patchi/core/detector/audit.py +194 -0
- patchi-0.7.8/patchi/core/detector/bus.py +226 -0
- patchi-0.7.8/patchi/core/detector/dispatcher.py +275 -0
- patchi-0.7.8/patchi/core/detector/event.py +254 -0
- patchi-0.7.8/patchi/core/detector/sigma_engine.py +378 -0
- patchi-0.7.8/patchi/core/detector/triage.py +289 -0
- patchi-0.7.8/patchi/core/export/sarif.py +113 -0
- patchi-0.7.8/patchi/core/fix/__init__.py +17 -0
- patchi-0.7.8/patchi/core/fix/applier.py +574 -0
- patchi-0.7.8/patchi/core/fix/base.py +510 -0
- patchi-0.7.8/patchi/core/fix/code_fixer.py +169 -0
- patchi-0.7.8/patchi/core/fix/dead_code_remover.py +131 -0
- patchi-0.7.8/patchi/core/fix/fix_agents.py +775 -0
- patchi-0.7.8/patchi/core/fix/patch.py +444 -0
- patchi-0.7.8/patchi/core/fix/risk_gate.py +383 -0
- patchi-0.7.8/patchi/core/fix/security_fixer.py +93 -0
- patchi-0.7.8/patchi/core/fuzz/sequence_fuzzer.py +162 -0
- patchi-0.7.8/patchi/core/fuzz/state_fuzzer.py +236 -0
- patchi-0.7.8/patchi/core/health.py +407 -0
- patchi-0.7.8/patchi/core/hosted/__init__.py +1 -0
- patchi-0.7.8/patchi/core/hosted/anomaly.py +298 -0
- patchi-0.7.8/patchi/core/hosted/audit_log.py +102 -0
- patchi-0.7.8/patchi/core/hosted/ip_reputation.py +169 -0
- patchi-0.7.8/patchi/core/hosted/log_parsers.py +251 -0
- patchi-0.7.8/patchi/core/hosted/tokens.py +127 -0
- patchi-0.7.8/patchi/core/hosted/watchlist.py +164 -0
- patchi-0.7.8/patchi/core/hosted/webhooks.py +156 -0
- patchi-0.7.8/patchi/core/memory.py +437 -0
- patchi-0.7.8/patchi/core/notifications/__init__.py +18 -0
- patchi-0.7.8/patchi/core/notifications/channels.py +192 -0
- patchi-0.7.8/patchi/core/notifications/digest.py +141 -0
- patchi-0.7.8/patchi/core/notifications/escalation.py +158 -0
- patchi-0.7.8/patchi/core/notifications/notifier.py +182 -0
- patchi-0.7.8/patchi/core/notifications/quiet_hours.py +69 -0
- patchi-0.7.8/patchi/core/queue.py +375 -0
- patchi-0.7.8/patchi/core/reliability/chaos.py +163 -0
- patchi-0.7.8/patchi/core/runtime/__init__.py +5 -0
- patchi-0.7.8/patchi/core/runtime/tracer.py +230 -0
- patchi-0.7.8/patchi/core/scan_bus.py +156 -0
- patchi-0.7.8/patchi/core/security/__init__.py +1 -0
- patchi-0.7.8/patchi/core/security/ai_validator.py +462 -0
- patchi-0.7.8/patchi/core/security/app_mapper.py +216 -0
- patchi-0.7.8/patchi/core/security/app_profile.py +464 -0
- patchi-0.7.8/patchi/core/security/auth_audit_agent.py +344 -0
- patchi-0.7.8/patchi/core/security/authz_agent.py +602 -0
- patchi-0.7.8/patchi/core/security/auto_fixer.py +660 -0
- patchi-0.7.8/patchi/core/security/bandit_agent.py +152 -0
- patchi-0.7.8/patchi/core/security/blast_radius.py +226 -0
- patchi-0.7.8/patchi/core/security/browser_tester.py +333 -0
- patchi-0.7.8/patchi/core/security/business_logic_agent.py +263 -0
- patchi-0.7.8/patchi/core/security/catch_block_auditor.py +395 -0
- patchi-0.7.8/patchi/core/security/cdn_cache_agent.py +357 -0
- patchi-0.7.8/patchi/core/security/chain_to_assurance.py +168 -0
- patchi-0.7.8/patchi/core/security/cloud_waf_detector.py +295 -0
- patchi-0.7.8/patchi/core/security/codeql_agent.py +233 -0
- patchi-0.7.8/patchi/core/security/compliance_agent.py +348 -0
- patchi-0.7.8/patchi/core/security/confidence_gate.py +423 -0
- patchi-0.7.8/patchi/core/security/container_scanner.py +282 -0
- patchi-0.7.8/patchi/core/security/crypto_agent.py +378 -0
- patchi-0.7.8/patchi/core/security/cve_monitor.py +262 -0
- patchi-0.7.8/patchi/core/security/dast_agent.py +865 -0
- patchi-0.7.8/patchi/core/security/defectdojo.py +238 -0
- patchi-0.7.8/patchi/core/security/defenders/block_ip.py +71 -0
- patchi-0.7.8/patchi/core/security/defenders/update_dependency.py +160 -0
- patchi-0.7.8/patchi/core/security/defense_layer.py +217 -0
- patchi-0.7.8/patchi/core/security/dependency_vulnerability_agent.py +616 -0
- patchi-0.7.8/patchi/core/security/detection_pipeline.py +289 -0
- patchi-0.7.8/patchi/core/security/dns_security_agent.py +497 -0
- patchi-0.7.8/patchi/core/security/domain_loader.py +1004 -0
- patchi-0.7.8/patchi/core/security/email_authentication_agent.py +417 -0
- patchi-0.7.8/patchi/core/security/env_var_validator.py +304 -0
- patchi-0.7.8/patchi/core/security/evidence.py +100 -0
- patchi-0.7.8/patchi/core/security/falco_runtime_agent.py +387 -0
- patchi-0.7.8/patchi/core/security/gated_finding.py +85 -0
- patchi-0.7.8/patchi/core/security/git_diff_activator.py +367 -0
- patchi-0.7.8/patchi/core/security/governance.py +208 -0
- patchi-0.7.8/patchi/core/security/history.py +315 -0
- patchi-0.7.8/patchi/core/security/iac_scanner.py +250 -0
- patchi-0.7.8/patchi/core/security/ignore_learner.py +453 -0
- patchi-0.7.8/patchi/core/security/injection_agent.py +319 -0
- patchi-0.7.8/patchi/core/security/insecure_randomness_agent.py +288 -0
- patchi-0.7.8/patchi/core/security/jwt_agent.py +453 -0
- patchi-0.7.8/patchi/core/security/kubernetes_agent.py +638 -0
- patchi-0.7.8/patchi/core/security/llm_security_agent.py +252 -0
- patchi-0.7.8/patchi/core/security/misconfig_agent.py +604 -0
- patchi-0.7.8/patchi/core/security/mobile_security_agent.py +474 -0
- patchi-0.7.8/patchi/core/security/network_agent.py +376 -0
- patchi-0.7.8/patchi/core/security/noise_filter.py +280 -0
- patchi-0.7.8/patchi/core/security/orchestrator.py +313 -0
- patchi-0.7.8/patchi/core/security/pattern_context.py +125 -0
- patchi-0.7.8/patchi/core/security/pattern_loader.py +101 -0
- patchi-0.7.8/patchi/core/security/pentest/ffuf_adapter.py +48 -0
- patchi-0.7.8/patchi/core/security/pentest/nuclei_adapter.py +50 -0
- patchi-0.7.8/patchi/core/security/plan_auditor.py +276 -0
- patchi-0.7.8/patchi/core/security/policy_engine.py +272 -0
- patchi-0.7.8/patchi/core/security/prechecks.py +172 -0
- patchi-0.7.8/patchi/core/security/precommit_hook.py +247 -0
- patchi-0.7.8/patchi/core/security/privacy_agent.py +361 -0
- patchi-0.7.8/patchi/core/security/push_notification_agent.py +417 -0
- patchi-0.7.8/patchi/core/security/pysa_agent.py +143 -0
- patchi-0.7.8/patchi/core/security/reasoning.py +442 -0
- patchi-0.7.8/patchi/core/security/red_team_agent.py +184 -0
- patchi-0.7.8/patchi/core/security/red_team_engine.py +1142 -0
- patchi-0.7.8/patchi/core/security/remediation.py +360 -0
- patchi-0.7.8/patchi/core/security/request_interceptor.py +294 -0
- patchi-0.7.8/patchi/core/security/runtime_validator.py +245 -0
- patchi-0.7.8/patchi/core/security/saml_sso_agent.py +401 -0
- patchi-0.7.8/patchi/core/security/sast_agent.py +213 -0
- patchi-0.7.8/patchi/core/security/sast_gate.py +95 -0
- patchi-0.7.8/patchi/core/security/scheduler.py +287 -0
- patchi-0.7.8/patchi/core/security/secrets_runtime_agent.py +434 -0
- patchi-0.7.8/patchi/core/security/security_agents.py +175 -0
- patchi-0.7.8/patchi/core/security/security_probe.py +762 -0
- patchi-0.7.8/patchi/core/security/security_taint.py +1005 -0
- patchi-0.7.8/patchi/core/security/sensitive_data_agent.py +271 -0
- patchi-0.7.8/patchi/core/security/service_mesh_agent.py +412 -0
- patchi-0.7.8/patchi/core/security/session_management_agent.py +245 -0
- patchi-0.7.8/patchi/core/security/ssrf_agent.py +422 -0
- patchi-0.7.8/patchi/core/security/supply_chain.py +449 -0
- patchi-0.7.8/patchi/core/security/threat_model_generator.py +378 -0
- patchi-0.7.8/patchi/core/security/tool_verify.py +173 -0
- patchi-0.7.8/patchi/core/security/websocket_security_agent.py +188 -0
- patchi-0.7.8/patchi/core/snapshot.py +242 -0
- patchi-0.7.8/patchi/core/tenant.py +386 -0
- patchi-0.7.8/patchi/core/testing/__init__.py +17 -0
- patchi-0.7.8/patchi/core/testing/_browser.py +147 -0
- patchi-0.7.8/patchi/core/testing/api_contract_agent.py +544 -0
- patchi-0.7.8/patchi/core/testing/app_discovery_agent.py +650 -0
- patchi-0.7.8/patchi/core/testing/app_launcher.py +184 -0
- patchi-0.7.8/patchi/core/testing/browser_test_agent.py +516 -0
- patchi-0.7.8/patchi/core/testing/e2e_flow_agent.py +354 -0
- patchi-0.7.8/patchi/core/testing/flake_detector_agent.py +292 -0
- patchi-0.7.8/patchi/core/testing/live_test_runner.py +304 -0
- patchi-0.7.8/patchi/core/testing/live_v2/browser_pool.py +349 -0
- patchi-0.7.8/patchi/core/testing/live_v2/browser_test_runner.py +313 -0
- patchi-0.7.8/patchi/core/testing/live_v2/runner.py +626 -0
- patchi-0.7.8/patchi/core/testing/live_v2/screenshot_manager.py +474 -0
- patchi-0.7.8/patchi/core/testing/live_v2/video_recorder.py +303 -0
- patchi-0.7.8/patchi/core/testing/regression_agent.py +302 -0
- patchi-0.7.8/patchi/core/testing/security_test_agent.py +253 -0
- patchi-0.7.8/patchi/core/testing/stress_test_agent.py +203 -0
- patchi-0.7.8/patchi/core/testing/test_agents.py +50 -0
- patchi-0.7.8/patchi/core/testing/test_config.py +194 -0
- patchi-0.7.8/patchi/core/testing/ui_accessibility_agent.py +324 -0
- patchi-0.7.8/patchi/core/testing/ui_button_agent.py +294 -0
- patchi-0.7.8/patchi/core/testing/ui_layout_agent.py +330 -0
- patchi-0.7.8/patchi/core/testing/unit_test_agent.py +1194 -0
- patchi-0.7.8/patchi/core/testing/visual_regression_agent.py +260 -0
- patchi-0.7.8/patchi/web/__init__.py +1 -0
- patchi-0.7.8/patchi/web/api/__init__.py +1 -0
- patchi-0.7.8/patchi/web/api/brain_map.py +114 -0
- patchi-0.7.8/patchi/web/api/charts.py +47 -0
- patchi-0.7.8/patchi/web/api/chat.py +223 -0
- patchi-0.7.8/patchi/web/api/cicd.py +576 -0
- patchi-0.7.8/patchi/web/api/dev_check.py +320 -0
- patchi-0.7.8/patchi/web/api/fix.py +134 -0
- patchi-0.7.8/patchi/web/api/guard.py +65 -0
- patchi-0.7.8/patchi/web/api/hosted.py +128 -0
- patchi-0.7.8/patchi/web/api/hosted_v2.py +234 -0
- patchi-0.7.8/patchi/web/api/live_testing.py +699 -0
- patchi-0.7.8/patchi/web/api/smart.py +111 -0
- patchi-0.7.8/patchi/web/api_legacy.py +2385 -0
- patchi-0.7.8/patchi/web/app.py +310 -0
- patchi-0.7.8/patchi/web/events.py +483 -0
- patchi-0.7.8/patchi/web/routes/__init__.py +1 -0
- patchi-0.7.8/patchi/web/routes/assurance.py +541 -0
- patchi-0.7.8/patchi/web/routes/brain.py +36 -0
- patchi-0.7.8/patchi/web/routes/charter.py +227 -0
- patchi-0.7.8/patchi/web/routes/chat.py +23 -0
- patchi-0.7.8/patchi/web/routes/dashboard.py +558 -0
- patchi-0.7.8/patchi/web/routes/dashboard_v2.py +402 -0
- patchi-0.7.8/patchi/web/routes/findings.py +330 -0
- patchi-0.7.8/patchi/web/routes/guard.py +35 -0
- patchi-0.7.8/patchi/web/routes/history.py +126 -0
- patchi-0.7.8/patchi/web/routes/landing.py +52 -0
- patchi-0.7.8/patchi/web/routes/live_testing.py +24 -0
- patchi-0.7.8/patchi/web/routes/review.py +57 -0
- patchi-0.7.8/patchi/web/routes/self_improvement.py +110 -0
- patchi-0.7.8/patchi/web/routes/settings.py +49 -0
- patchi-0.7.8/patchi/web/routes/tokens.py +29 -0
- patchi-0.7.8/patchi/web/spawn.py +139 -0
- patchi-0.7.8/patchi.egg-info/PKG-INFO +467 -0
- patchi-0.7.8/patchi.egg-info/SOURCES.txt +583 -0
- patchi-0.7.8/patchi.egg-info/entry_points.txt +3 -0
- patchi-0.7.8/pyproject.toml +177 -0
- patchi-0.7.8/setup.cfg +4 -0
- patchi-0.7.8/tests/test_agent_security.py +197 -0
- patchi-0.7.8/tests/test_ai_client.py +188 -0
- patchi-0.7.8/tests/test_app_profile.py +284 -0
- patchi-0.7.8/tests/test_applier.py +167 -0
- patchi-0.7.8/tests/test_ast_utils.py +582 -0
- patchi-0.7.8/tests/test_ast_utils_new.py +185 -0
- patchi-0.7.8/tests/test_attack_agent.py +399 -0
- patchi-0.7.8/tests/test_audit.py +160 -0
- patchi-0.7.8/tests/test_base.py +419 -0
- patchi-0.7.8/tests/test_blast_radius_v2.py +301 -0
- patchi-0.7.8/tests/test_brain_watcher.py +187 -0
- patchi-0.7.8/tests/test_charter.py +152 -0
- patchi-0.7.8/tests/test_config.py +204 -0
- patchi-0.7.8/tests/test_contract.py +160 -0
- patchi-0.7.8/tests/test_coordinator.py +235 -0
- patchi-0.7.8/tests/test_debug_capture.py +90 -0
- patchi-0.7.8/tests/test_debug_codelldb.py +56 -0
- patchi-0.7.8/tests/test_debug_node.py +75 -0
- patchi-0.7.8/tests/test_debug_powershell.py +79 -0
- patchi-0.7.8/tests/test_detector.py +264 -0
- patchi-0.7.8/tests/test_dispatcher.py +181 -0
- patchi-0.7.8/tests/test_doc_claim_agent.py +447 -0
- patchi-0.7.8/tests/test_domain_loader.py +482 -0
- patchi-0.7.8/tests/test_fix_agents.py +390 -0
- patchi-0.7.8/tests/test_framework.py +168 -0
- patchi-0.7.8/tests/test_freshness.py +106 -0
- patchi-0.7.8/tests/test_generated_suite.py +162 -0
- patchi-0.7.8/tests/test_governor_engine.py +457 -0
- patchi-0.7.8/tests/test_governor_integration.py +154 -0
- patchi-0.7.8/tests/test_governor_v2.py +503 -0
- patchi-0.7.8/tests/test_hosted_anomaly.py +157 -0
- patchi-0.7.8/tests/test_hosted_audit_log.py +80 -0
- patchi-0.7.8/tests/test_hosted_ip_reputation.py +80 -0
- patchi-0.7.8/tests/test_hosted_log_parsers.py +159 -0
- patchi-0.7.8/tests/test_hosted_tokens.py +98 -0
- patchi-0.7.8/tests/test_hosted_watchlist.py +96 -0
- patchi-0.7.8/tests/test_import_graph.py +233 -0
- patchi-0.7.8/tests/test_integration.py +233 -0
- patchi-0.7.8/tests/test_language_support.py +368 -0
- patchi-0.7.8/tests/test_layered_brain.py +227 -0
- patchi-0.7.8/tests/test_memory.py +253 -0
- patchi-0.7.8/tests/test_new_agents.py +1211 -0
- patchi-0.7.8/tests/test_new_features.py +365 -0
- patchi-0.7.8/tests/test_new_security_agents.py +285 -0
- patchi-0.7.8/tests/test_notifications.py +320 -0
- patchi-0.7.8/tests/test_patch.py +225 -0
- patchi-0.7.8/tests/test_proactive.py +148 -0
- patchi-0.7.8/tests/test_proactive_phase5.py +78 -0
- patchi-0.7.8/tests/test_queue.py +246 -0
- patchi-0.7.8/tests/test_realize_tools.py +142 -0
- patchi-0.7.8/tests/test_reasoning.py +101 -0
- patchi-0.7.8/tests/test_risk_gate.py +228 -0
- patchi-0.7.8/tests/test_route_mapper.py +244 -0
- patchi-0.7.8/tests/test_scanner.py +283 -0
- patchi-0.7.8/tests/test_scanners.py +713 -0
- patchi-0.7.8/tests/test_scheduler.py +93 -0
- patchi-0.7.8/tests/test_secrets.py +53 -0
- patchi-0.7.8/tests/test_security_config.py +29 -0
- patchi-0.7.8/tests/test_sigma_engine.py +178 -0
- patchi-0.7.8/tests/test_smart_agent.py +93 -0
- patchi-0.7.8/tests/test_snapshot.py +215 -0
- patchi-0.7.8/tests/test_test_agents.py +585 -0
- patchi-0.7.8/tests/test_tool_harness.py +476 -0
- patchi-0.7.8/tests/test_verify.py +102 -0
- patchi-0.7.8/tests/test_web.py +204 -0
- patchi-0.7.5/PKG-INFO +0 -315
- patchi-0.7.5/README.md +0 -254
- patchi-0.7.5/patchi/__init__.py +0 -1
- patchi-0.7.5/patchi/cli/commands/access_cmd.py +0 -65
- patchi-0.7.5/patchi/cli/commands/agents_cmd.py +0 -187
- patchi-0.7.5/patchi/cli/commands/ai_cmd.py +0 -308
- patchi-0.7.5/patchi/cli/commands/assure_cmd.py +0 -538
- patchi-0.7.5/patchi/cli/commands/audit_cmd.py +0 -286
- patchi-0.7.5/patchi/cli/commands/auto_cmd.py +0 -110
- patchi-0.7.5/patchi/cli/commands/blame_cmd.py +0 -53
- patchi-0.7.5/patchi/cli/commands/chains_cmd.py +0 -327
- patchi-0.7.5/patchi/cli/commands/charter_cmd.py +0 -173
- patchi-0.7.5/patchi/cli/commands/chat_cmd.py +0 -597
- patchi-0.7.5/patchi/cli/commands/check_cmd.py +0 -232
- patchi-0.7.5/patchi/cli/commands/cleanup_cmd.py +0 -328
- patchi-0.7.5/patchi/cli/commands/cockpit_cmd.py +0 -208
- patchi-0.7.5/patchi/cli/commands/commands_cmd.py +0 -160
- patchi-0.7.5/patchi/cli/commands/cross_repo_cmd.py +0 -113
- patchi-0.7.5/patchi/cli/commands/deps_cmd.py +0 -110
- patchi-0.7.5/patchi/cli/commands/dev_check_cmd.py +0 -342
- patchi-0.7.5/patchi/cli/commands/dev_cmd.py +0 -445
- patchi-0.7.5/patchi/cli/commands/doctor_cmd.py +0 -457
- patchi-0.7.5/patchi/cli/commands/findings_cmd.py +0 -187
- patchi-0.7.5/patchi/cli/commands/fix_cmd.py +0 -648
- patchi-0.7.5/patchi/cli/commands/fix_review_cmd.py +0 -273
- patchi-0.7.5/patchi/cli/commands/heatmap_cmd.py +0 -62
- patchi-0.7.5/patchi/cli/commands/help_cmd.py +0 -159
- patchi-0.7.5/patchi/cli/commands/hosted_cmd.py +0 -980
- patchi-0.7.5/patchi/cli/commands/init.py +0 -456
- patchi-0.7.5/patchi/cli/commands/key_cmd.py +0 -571
- patchi-0.7.5/patchi/cli/commands/learn_cmd.py +0 -140
- patchi-0.7.5/patchi/cli/commands/log_cmd.py +0 -57
- patchi-0.7.5/patchi/cli/commands/memory_cmd.py +0 -215
- patchi-0.7.5/patchi/cli/commands/model_cmd.py +0 -207
- patchi-0.7.5/patchi/cli/commands/notify_cmd.py +0 -213
- patchi-0.7.5/patchi/cli/commands/notify_prompts.py +0 -29
- patchi-0.7.5/patchi/cli/commands/patch_cmd.py +0 -231
- patchi-0.7.5/patchi/cli/commands/plan_cmd.py +0 -128
- patchi-0.7.5/patchi/cli/commands/queue_cmd.py +0 -152
- patchi-0.7.5/patchi/cli/commands/report_cmd.py +0 -416
- patchi-0.7.5/patchi/cli/commands/restrict_cmd.py +0 -127
- patchi-0.7.5/patchi/cli/commands/review_cmd.py +0 -225
- patchi-0.7.5/patchi/cli/commands/rules_cmd.py +0 -233
- patchi-0.7.5/patchi/cli/commands/scan_cmd.py +0 -1908
- patchi-0.7.5/patchi/cli/commands/settings_cmd.py +0 -45
- patchi-0.7.5/patchi/cli/commands/status_cmd.py +0 -679
- patchi-0.7.5/patchi/cli/commands/test_cmd.py +0 -1052
- patchi-0.7.5/patchi/cli/commands/trend_cmd.py +0 -296
- patchi-0.7.5/patchi/cli/commands/undo_cmd.py +0 -235
- patchi-0.7.5/patchi/cli/commands/update_cmd.py +0 -345
- patchi-0.7.5/patchi/cli/commands/verify_cmd.py +0 -56
- patchi-0.7.5/patchi/cli/commands/vr_cmd.py +0 -440
- patchi-0.7.5/patchi/cli/commands/watch_cmd.py +0 -304
- patchi-0.7.5/patchi/cli/commands/web_cmd.py +0 -114
- patchi-0.7.5/patchi/cli/console.py +0 -101
- patchi-0.7.5/patchi/cli/display/__init__.py +0 -1
- patchi-0.7.5/patchi/cli/display/live_audit.py +0 -269
- patchi-0.7.5/patchi/cli/display/live_progress.py +0 -169
- patchi-0.7.5/patchi/cli/framework.py +0 -241
- patchi-0.7.5/patchi/cli/logo.py +0 -128
- patchi-0.7.5/patchi/cli/main.py +0 -222
- patchi-0.7.5/patchi/cli/registry.py +0 -1171
- patchi-0.7.5/patchi/cli/style.py +0 -68
- patchi-0.7.5/patchi/cli/themes.py +0 -187
- patchi-0.7.5/patchi/cli/ux.py +0 -444
- patchi-0.7.5/patchi/core/agents/api_fuzzer_agent.py +0 -141
- patchi-0.7.5/patchi/core/agents/attack_agent.py +0 -242
- patchi-0.7.5/patchi/core/agents/base.py +0 -1012
- patchi-0.7.5/patchi/core/agents/bug_predictor_agent.py +0 -58
- patchi-0.7.5/patchi/core/agents/build_tool_validator.py +0 -150
- patchi-0.7.5/patchi/core/agents/cache.py +0 -192
- patchi-0.7.5/patchi/core/agents/chaos_agent.py +0 -133
- patchi-0.7.5/patchi/core/agents/cicd_generator.py +0 -240
- patchi-0.7.5/patchi/core/agents/comment_scanner.py +0 -280
- patchi-0.7.5/patchi/core/agents/coordinator.py +0 -858
- patchi-0.7.5/patchi/core/agents/core_scanner.py +0 -269
- patchi-0.7.5/patchi/core/agents/coverage_prioritizer.py +0 -181
- patchi-0.7.5/patchi/core/agents/dead_code_hygiene.py +0 -296
- patchi-0.7.5/patchi/core/agents/dead_code_scanner.py +0 -692
- patchi-0.7.5/patchi/core/agents/dependency_scanner.py +0 -725
- patchi-0.7.5/patchi/core/agents/doc_claim_agent.py +0 -573
- patchi-0.7.5/patchi/core/agents/duplicate_scanner.py +0 -568
- patchi-0.7.5/patchi/core/agents/env_scanner.py +0 -410
- patchi-0.7.5/patchi/core/agents/feature_flag_agent.py +0 -89
- patchi-0.7.5/patchi/core/agents/frontend_framework_agent.py +0 -133
- patchi-0.7.5/patchi/core/agents/goroutine_agent.py +0 -82
- patchi-0.7.5/patchi/core/agents/governor.py +0 -1972
- patchi-0.7.5/patchi/core/agents/i18n_agent.py +0 -95
- patchi-0.7.5/patchi/core/agents/license_compliance.py +0 -247
- patchi-0.7.5/patchi/core/agents/linking_agent.py +0 -251
- patchi-0.7.5/patchi/core/agents/modernization_agent.py +0 -84
- patchi-0.7.5/patchi/core/agents/mutation_agent.py +0 -174
- patchi-0.7.5/patchi/core/agents/nl_query_agent.py +0 -74
- patchi-0.7.5/patchi/core/agents/promise_rejection_agent.py +0 -100
- patchi-0.7.5/patchi/core/agents/refactoring_agent.py +0 -286
- patchi-0.7.5/patchi/core/agents/resource_leak_agent.py +0 -91
- patchi-0.7.5/patchi/core/agents/route_graph_scanner.py +0 -951
- patchi-0.7.5/patchi/core/agents/rust_unwrap_agent.py +0 -100
- patchi-0.7.5/patchi/core/agents/sbom_generator.py +0 -284
- patchi-0.7.5/patchi/core/agents/scanners.py +0 -67
- patchi-0.7.5/patchi/core/agents/side/build_agent.py +0 -65
- patchi-0.7.5/patchi/core/agents/side_file_scanner.py +0 -549
- patchi-0.7.5/patchi/core/agents/snapshot_drift_detector.py +0 -146
- patchi-0.7.5/patchi/core/agents/spa_route_inventory.py +0 -203
- patchi-0.7.5/patchi/core/agents/test_scanner.py +0 -442
- patchi-0.7.5/patchi/core/agents/tool_runner.py +0 -162
- patchi-0.7.5/patchi/core/agents/type_scanner.py +0 -168
- patchi-0.7.5/patchi/core/agents/ui_scanner.py +0 -558
- patchi-0.7.5/patchi/core/ai/__init__.py +0 -20
- patchi-0.7.5/patchi/core/ai/agent_audit.py +0 -153
- patchi-0.7.5/patchi/core/ai/agent_profiler.py +0 -277
- patchi-0.7.5/patchi/core/ai/client.py +0 -499
- patchi-0.7.5/patchi/core/ai/cost_tracker.py +0 -107
- patchi-0.7.5/patchi/core/ai/model_router.py +0 -318
- patchi-0.7.5/patchi/core/ai/orchestrator.py +0 -625
- patchi-0.7.5/patchi/core/ai/prompts.py +0 -681
- patchi-0.7.5/patchi/core/ai/smart.py +0 -302
- patchi-0.7.5/patchi/core/ai/tools/executor.py +0 -621
- patchi-0.7.5/patchi/core/ai/tools/realize.py +0 -1160
- patchi-0.7.5/patchi/core/ai/tools/registry.py +0 -1577
- patchi-0.7.5/patchi/core/assurance/graph.py +0 -342
- patchi-0.7.5/patchi/core/brain/ast_utils/__init__.py +0 -81
- patchi-0.7.5/patchi/core/brain/ast_utils/assignments.py +0 -219
- patchi-0.7.5/patchi/core/brain/ast_utils/calls.py +0 -139
- patchi-0.7.5/patchi/core/brain/ast_utils/config.py +0 -132
- patchi-0.7.5/patchi/core/brain/ast_utils/control_flow.py +0 -74
- patchi-0.7.5/patchi/core/brain/ast_utils/dead_symbols.py +0 -205
- patchi-0.7.5/patchi/core/brain/ast_utils/decorators.py +0 -108
- patchi-0.7.5/patchi/core/brain/ast_utils/helpers.py +0 -144
- patchi-0.7.5/patchi/core/brain/ast_utils/imports.py +0 -169
- patchi-0.7.5/patchi/core/brain/ast_utils/scan.py +0 -143
- patchi-0.7.5/patchi/core/brain/ast_utils/taint.py +0 -310
- patchi-0.7.5/patchi/core/brain/audit.py +0 -379
- patchi-0.7.5/patchi/core/brain/baseline.py +0 -195
- patchi-0.7.5/patchi/core/brain/blast_radius.py +0 -312
- patchi-0.7.5/patchi/core/brain/body_tags.py +0 -144
- patchi-0.7.5/patchi/core/brain/brain.py +0 -1161
- patchi-0.7.5/patchi/core/brain/brain_context.py +0 -393
- patchi-0.7.5/patchi/core/brain/brain_watcher.py +0 -340
- patchi-0.7.5/patchi/core/brain/charter.py +0 -473
- patchi-0.7.5/patchi/core/brain/classifier.py +0 -214
- patchi-0.7.5/patchi/core/brain/cockpit.py +0 -350
- patchi-0.7.5/patchi/core/brain/code_query.py +0 -710
- patchi-0.7.5/patchi/core/brain/contract.py +0 -889
- patchi-0.7.5/patchi/core/brain/contract_diff.py +0 -155
- patchi-0.7.5/patchi/core/brain/council.py +0 -800
- patchi-0.7.5/patchi/core/brain/cross_repo.py +0 -104
- patchi-0.7.5/patchi/core/brain/dead_code_tools.py +0 -157
- patchi-0.7.5/patchi/core/brain/doc_validator.py +0 -197
- patchi-0.7.5/patchi/core/brain/domain_activator.py +0 -2183
- patchi-0.7.5/patchi/core/brain/enriched_context.py +0 -220
- patchi-0.7.5/patchi/core/brain/file_corpus.py +0 -220
- patchi-0.7.5/patchi/core/brain/framework.py +0 -953
- patchi-0.7.5/patchi/core/brain/freshness.py +0 -273
- patchi-0.7.5/patchi/core/brain/git_aware.py +0 -206
- patchi-0.7.5/patchi/core/brain/heatmap.py +0 -104
- patchi-0.7.5/patchi/core/brain/ignore_parser.py +0 -153
- patchi-0.7.5/patchi/core/brain/import_graph.py +0 -486
- patchi-0.7.5/patchi/core/brain/layered_brain.py +0 -419
- patchi-0.7.5/patchi/core/brain/learning.py +0 -229
- patchi-0.7.5/patchi/core/brain/orphaned_endpoints.py +0 -313
- patchi-0.7.5/patchi/core/brain/personas/__init__.py +0 -648
- patchi-0.7.5/patchi/core/brain/personas/base.py +0 -349
- patchi-0.7.5/patchi/core/brain/proactive.py +0 -807
- patchi-0.7.5/patchi/core/brain/project_context.py +0 -121
- patchi-0.7.5/patchi/core/brain/project_reader.py +0 -521
- patchi-0.7.5/patchi/core/brain/reasoning.py +0 -269
- patchi-0.7.5/patchi/core/brain/route_detector/__init__.py +0 -15
- patchi-0.7.5/patchi/core/brain/route_detector/base.py +0 -31
- patchi-0.7.5/patchi/core/brain/route_detector/csharp.py +0 -209
- patchi-0.7.5/patchi/core/brain/route_detector/file_based.py +0 -81
- patchi-0.7.5/patchi/core/brain/route_detector/go.py +0 -152
- patchi-0.7.5/patchi/core/brain/route_detector/java.py +0 -195
- patchi-0.7.5/patchi/core/brain/route_detector/javascript.py +0 -197
- patchi-0.7.5/patchi/core/brain/route_detector/php.py +0 -158
- patchi-0.7.5/patchi/core/brain/route_detector/python.py +0 -193
- patchi-0.7.5/patchi/core/brain/route_detector/registry.py +0 -25
- patchi-0.7.5/patchi/core/brain/route_detector/ruby.py +0 -134
- patchi-0.7.5/patchi/core/brain/route_detector/rust.py +0 -216
- patchi-0.7.5/patchi/core/brain/route_detector/swift.py +0 -118
- patchi-0.7.5/patchi/core/brain/route_mapper.py +0 -265
- patchi-0.7.5/patchi/core/brain/scanner.py +0 -2136
- patchi-0.7.5/patchi/core/brain/secrets.py +0 -280
- patchi-0.7.5/patchi/core/brain/symbol_graph.py +0 -1955
- patchi-0.7.5/patchi/core/brain/team.py +0 -28
- patchi-0.7.5/patchi/core/brain/trace_log.py +0 -132
- patchi-0.7.5/patchi/core/brain/type_checker/__init__.py +0 -65
- patchi-0.7.5/patchi/core/brain/type_checker/base.py +0 -60
- patchi-0.7.5/patchi/core/brain/type_checker/csharp.py +0 -59
- patchi-0.7.5/patchi/core/brain/type_checker/dart.py +0 -59
- patchi-0.7.5/patchi/core/brain/type_checker/go.py +0 -81
- patchi-0.7.5/patchi/core/brain/type_checker/java.py +0 -75
- patchi-0.7.5/patchi/core/brain/type_checker/kotlin.py +0 -75
- patchi-0.7.5/patchi/core/brain/type_checker/php.py +0 -88
- patchi-0.7.5/patchi/core/brain/type_checker/python.py +0 -87
- patchi-0.7.5/patchi/core/brain/type_checker/rust.py +0 -81
- patchi-0.7.5/patchi/core/brain/type_checker/swift.py +0 -59
- patchi-0.7.5/patchi/core/brain/type_checker/typescript.py +0 -298
- patchi-0.7.5/patchi/core/brain/understander.py +0 -130
- patchi-0.7.5/patchi/core/brain/verify.py +0 -379
- patchi-0.7.5/patchi/core/campaigns/data_flow_abuse.py +0 -153
- patchi-0.7.5/patchi/core/ci_bundle.py +0 -104
- patchi-0.7.5/patchi/core/config.py +0 -311
- patchi-0.7.5/patchi/core/constants.py +0 -245
- patchi-0.7.5/patchi/core/debug/__init__.py +0 -25
- patchi-0.7.5/patchi/core/debug/adapters/__init__.py +0 -11
- patchi-0.7.5/patchi/core/debug/adapters/codelldb.py +0 -379
- patchi-0.7.5/patchi/core/debug/adapters/node.py +0 -222
- patchi-0.7.5/patchi/core/debug/adapters/powershell.py +0 -210
- patchi-0.7.5/patchi/core/debug/adapters/python.py +0 -244
- patchi-0.7.5/patchi/core/debug/capture.py +0 -210
- patchi-0.7.5/patchi/core/debug/dap_client.py +0 -268
- patchi-0.7.5/patchi/core/detector/audit.py +0 -194
- patchi-0.7.5/patchi/core/detector/bus.py +0 -226
- patchi-0.7.5/patchi/core/detector/dispatcher.py +0 -275
- patchi-0.7.5/patchi/core/detector/event.py +0 -254
- patchi-0.7.5/patchi/core/detector/sigma_engine.py +0 -378
- patchi-0.7.5/patchi/core/detector/triage.py +0 -289
- patchi-0.7.5/patchi/core/export/sarif.py +0 -113
- patchi-0.7.5/patchi/core/fix/__init__.py +0 -17
- patchi-0.7.5/patchi/core/fix/applier.py +0 -574
- patchi-0.7.5/patchi/core/fix/base.py +0 -510
- patchi-0.7.5/patchi/core/fix/code_fixer.py +0 -169
- patchi-0.7.5/patchi/core/fix/dead_code_remover.py +0 -131
- patchi-0.7.5/patchi/core/fix/fix_agents.py +0 -775
- patchi-0.7.5/patchi/core/fix/patch.py +0 -444
- patchi-0.7.5/patchi/core/fix/risk_gate.py +0 -383
- patchi-0.7.5/patchi/core/fix/security_fixer.py +0 -93
- patchi-0.7.5/patchi/core/fuzz/sequence_fuzzer.py +0 -162
- patchi-0.7.5/patchi/core/fuzz/state_fuzzer.py +0 -236
- patchi-0.7.5/patchi/core/health.py +0 -407
- patchi-0.7.5/patchi/core/hosted/__init__.py +0 -1
- patchi-0.7.5/patchi/core/hosted/anomaly.py +0 -298
- patchi-0.7.5/patchi/core/hosted/audit_log.py +0 -102
- patchi-0.7.5/patchi/core/hosted/ip_reputation.py +0 -169
- patchi-0.7.5/patchi/core/hosted/log_parsers.py +0 -251
- patchi-0.7.5/patchi/core/hosted/tokens.py +0 -127
- patchi-0.7.5/patchi/core/hosted/watchlist.py +0 -164
- patchi-0.7.5/patchi/core/hosted/webhooks.py +0 -156
- patchi-0.7.5/patchi/core/memory.py +0 -437
- patchi-0.7.5/patchi/core/notifications/__init__.py +0 -18
- patchi-0.7.5/patchi/core/notifications/channels.py +0 -192
- patchi-0.7.5/patchi/core/notifications/digest.py +0 -141
- patchi-0.7.5/patchi/core/notifications/escalation.py +0 -158
- patchi-0.7.5/patchi/core/notifications/notifier.py +0 -182
- patchi-0.7.5/patchi/core/notifications/quiet_hours.py +0 -69
- patchi-0.7.5/patchi/core/queue.py +0 -375
- patchi-0.7.5/patchi/core/reliability/chaos.py +0 -163
- patchi-0.7.5/patchi/core/runtime/__init__.py +0 -5
- patchi-0.7.5/patchi/core/runtime/tracer.py +0 -230
- patchi-0.7.5/patchi/core/scan_bus.py +0 -156
- patchi-0.7.5/patchi/core/security/__init__.py +0 -1
- patchi-0.7.5/patchi/core/security/ai_validator.py +0 -462
- patchi-0.7.5/patchi/core/security/app_mapper.py +0 -216
- patchi-0.7.5/patchi/core/security/app_profile.py +0 -464
- patchi-0.7.5/patchi/core/security/auth_audit_agent.py +0 -344
- patchi-0.7.5/patchi/core/security/authz_agent.py +0 -602
- patchi-0.7.5/patchi/core/security/auto_fixer.py +0 -660
- patchi-0.7.5/patchi/core/security/bandit_agent.py +0 -152
- patchi-0.7.5/patchi/core/security/blast_radius.py +0 -226
- patchi-0.7.5/patchi/core/security/browser_tester.py +0 -333
- patchi-0.7.5/patchi/core/security/business_logic_agent.py +0 -263
- patchi-0.7.5/patchi/core/security/catch_block_auditor.py +0 -395
- patchi-0.7.5/patchi/core/security/cdn_cache_agent.py +0 -357
- patchi-0.7.5/patchi/core/security/chain_to_assurance.py +0 -168
- patchi-0.7.5/patchi/core/security/cloud_waf_detector.py +0 -295
- patchi-0.7.5/patchi/core/security/codeql_agent.py +0 -233
- patchi-0.7.5/patchi/core/security/compliance_agent.py +0 -348
- patchi-0.7.5/patchi/core/security/confidence_gate.py +0 -423
- patchi-0.7.5/patchi/core/security/container_scanner.py +0 -282
- patchi-0.7.5/patchi/core/security/crypto_agent.py +0 -378
- patchi-0.7.5/patchi/core/security/cve_monitor.py +0 -262
- patchi-0.7.5/patchi/core/security/dast_agent.py +0 -865
- patchi-0.7.5/patchi/core/security/defectdojo.py +0 -238
- patchi-0.7.5/patchi/core/security/defenders/block_ip.py +0 -71
- patchi-0.7.5/patchi/core/security/defenders/update_dependency.py +0 -160
- patchi-0.7.5/patchi/core/security/defense_layer.py +0 -217
- patchi-0.7.5/patchi/core/security/dependency_vulnerability_agent.py +0 -616
- patchi-0.7.5/patchi/core/security/detection_pipeline.py +0 -289
- patchi-0.7.5/patchi/core/security/dns_security_agent.py +0 -497
- patchi-0.7.5/patchi/core/security/domain_loader.py +0 -1004
- patchi-0.7.5/patchi/core/security/email_authentication_agent.py +0 -417
- patchi-0.7.5/patchi/core/security/env_var_validator.py +0 -304
- patchi-0.7.5/patchi/core/security/evidence.py +0 -100
- patchi-0.7.5/patchi/core/security/falco_runtime_agent.py +0 -387
- patchi-0.7.5/patchi/core/security/gated_finding.py +0 -85
- patchi-0.7.5/patchi/core/security/git_diff_activator.py +0 -367
- patchi-0.7.5/patchi/core/security/governance.py +0 -208
- patchi-0.7.5/patchi/core/security/history.py +0 -315
- patchi-0.7.5/patchi/core/security/iac_scanner.py +0 -250
- patchi-0.7.5/patchi/core/security/ignore_learner.py +0 -416
- patchi-0.7.5/patchi/core/security/injection_agent.py +0 -319
- patchi-0.7.5/patchi/core/security/insecure_randomness_agent.py +0 -288
- patchi-0.7.5/patchi/core/security/jwt_agent.py +0 -453
- patchi-0.7.5/patchi/core/security/kubernetes_agent.py +0 -638
- patchi-0.7.5/patchi/core/security/llm_security_agent.py +0 -252
- patchi-0.7.5/patchi/core/security/misconfig_agent.py +0 -600
- patchi-0.7.5/patchi/core/security/mobile_security_agent.py +0 -474
- patchi-0.7.5/patchi/core/security/network_agent.py +0 -376
- patchi-0.7.5/patchi/core/security/noise_filter.py +0 -274
- patchi-0.7.5/patchi/core/security/orchestrator.py +0 -313
- patchi-0.7.5/patchi/core/security/pattern_context.py +0 -125
- patchi-0.7.5/patchi/core/security/pattern_loader.py +0 -101
- patchi-0.7.5/patchi/core/security/pentest/ffuf_adapter.py +0 -48
- patchi-0.7.5/patchi/core/security/pentest/nuclei_adapter.py +0 -50
- patchi-0.7.5/patchi/core/security/plan_auditor.py +0 -276
- patchi-0.7.5/patchi/core/security/policy_engine.py +0 -272
- patchi-0.7.5/patchi/core/security/prechecks.py +0 -172
- patchi-0.7.5/patchi/core/security/precommit_hook.py +0 -247
- patchi-0.7.5/patchi/core/security/privacy_agent.py +0 -361
- patchi-0.7.5/patchi/core/security/push_notification_agent.py +0 -417
- patchi-0.7.5/patchi/core/security/pysa_agent.py +0 -143
- patchi-0.7.5/patchi/core/security/reasoning.py +0 -442
- patchi-0.7.5/patchi/core/security/red_team_agent.py +0 -184
- patchi-0.7.5/patchi/core/security/red_team_engine.py +0 -1142
- patchi-0.7.5/patchi/core/security/remediation.py +0 -360
- patchi-0.7.5/patchi/core/security/request_interceptor.py +0 -294
- patchi-0.7.5/patchi/core/security/runtime_validator.py +0 -245
- patchi-0.7.5/patchi/core/security/saml_sso_agent.py +0 -401
- patchi-0.7.5/patchi/core/security/sast_agent.py +0 -213
- patchi-0.7.5/patchi/core/security/sast_gate.py +0 -95
- patchi-0.7.5/patchi/core/security/scheduler.py +0 -287
- patchi-0.7.5/patchi/core/security/secrets_runtime_agent.py +0 -476
- patchi-0.7.5/patchi/core/security/security_agents.py +0 -175
- patchi-0.7.5/patchi/core/security/security_probe.py +0 -762
- patchi-0.7.5/patchi/core/security/security_taint.py +0 -1005
- patchi-0.7.5/patchi/core/security/sensitive_data_agent.py +0 -271
- patchi-0.7.5/patchi/core/security/service_mesh_agent.py +0 -412
- patchi-0.7.5/patchi/core/security/session_management_agent.py +0 -245
- patchi-0.7.5/patchi/core/security/ssrf_agent.py +0 -422
- patchi-0.7.5/patchi/core/security/supply_chain.py +0 -449
- patchi-0.7.5/patchi/core/security/threat_model_generator.py +0 -378
- patchi-0.7.5/patchi/core/security/tool_verify.py +0 -173
- patchi-0.7.5/patchi/core/security/websocket_security_agent.py +0 -188
- patchi-0.7.5/patchi/core/snapshot.py +0 -242
- patchi-0.7.5/patchi/core/tenant.py +0 -386
- patchi-0.7.5/patchi/core/testing/__init__.py +0 -17
- patchi-0.7.5/patchi/core/testing/_browser.py +0 -147
- patchi-0.7.5/patchi/core/testing/api_contract_agent.py +0 -450
- patchi-0.7.5/patchi/core/testing/app_discovery_agent.py +0 -641
- patchi-0.7.5/patchi/core/testing/app_launcher.py +0 -184
- patchi-0.7.5/patchi/core/testing/browser_test_agent.py +0 -516
- patchi-0.7.5/patchi/core/testing/e2e_flow_agent.py +0 -354
- patchi-0.7.5/patchi/core/testing/flake_detector_agent.py +0 -292
- patchi-0.7.5/patchi/core/testing/live_test_runner.py +0 -304
- patchi-0.7.5/patchi/core/testing/live_v2/browser_pool.py +0 -349
- patchi-0.7.5/patchi/core/testing/live_v2/browser_test_runner.py +0 -313
- patchi-0.7.5/patchi/core/testing/live_v2/runner.py +0 -626
- patchi-0.7.5/patchi/core/testing/live_v2/screenshot_manager.py +0 -474
- patchi-0.7.5/patchi/core/testing/live_v2/video_recorder.py +0 -303
- patchi-0.7.5/patchi/core/testing/regression_agent.py +0 -302
- patchi-0.7.5/patchi/core/testing/security_test_agent.py +0 -253
- patchi-0.7.5/patchi/core/testing/stress_test_agent.py +0 -203
- patchi-0.7.5/patchi/core/testing/test_agents.py +0 -50
- patchi-0.7.5/patchi/core/testing/test_config.py +0 -194
- patchi-0.7.5/patchi/core/testing/ui_accessibility_agent.py +0 -324
- patchi-0.7.5/patchi/core/testing/ui_button_agent.py +0 -294
- patchi-0.7.5/patchi/core/testing/ui_layout_agent.py +0 -330
- patchi-0.7.5/patchi/core/testing/unit_test_agent.py +0 -1149
- patchi-0.7.5/patchi/core/testing/visual_regression_agent.py +0 -260
- patchi-0.7.5/patchi/web/__init__.py +0 -1
- patchi-0.7.5/patchi/web/api/__init__.py +0 -1
- patchi-0.7.5/patchi/web/api/brain_map.py +0 -114
- patchi-0.7.5/patchi/web/api/charts.py +0 -47
- patchi-0.7.5/patchi/web/api/chat.py +0 -224
- patchi-0.7.5/patchi/web/api/cicd.py +0 -576
- patchi-0.7.5/patchi/web/api/dev_check.py +0 -320
- patchi-0.7.5/patchi/web/api/fix.py +0 -134
- patchi-0.7.5/patchi/web/api/guard.py +0 -65
- patchi-0.7.5/patchi/web/api/hosted.py +0 -128
- patchi-0.7.5/patchi/web/api/hosted_v2.py +0 -234
- patchi-0.7.5/patchi/web/api/live_testing.py +0 -699
- patchi-0.7.5/patchi/web/api/smart.py +0 -111
- patchi-0.7.5/patchi/web/api_legacy.py +0 -2401
- patchi-0.7.5/patchi/web/app.py +0 -310
- patchi-0.7.5/patchi/web/events.py +0 -483
- patchi-0.7.5/patchi/web/routes/__init__.py +0 -1
- patchi-0.7.5/patchi/web/routes/assurance.py +0 -541
- patchi-0.7.5/patchi/web/routes/brain.py +0 -36
- patchi-0.7.5/patchi/web/routes/charter.py +0 -227
- patchi-0.7.5/patchi/web/routes/chat.py +0 -23
- patchi-0.7.5/patchi/web/routes/dashboard.py +0 -558
- patchi-0.7.5/patchi/web/routes/dashboard_v2.py +0 -402
- patchi-0.7.5/patchi/web/routes/findings.py +0 -330
- patchi-0.7.5/patchi/web/routes/guard.py +0 -35
- patchi-0.7.5/patchi/web/routes/history.py +0 -126
- patchi-0.7.5/patchi/web/routes/landing.py +0 -52
- patchi-0.7.5/patchi/web/routes/live_testing.py +0 -24
- patchi-0.7.5/patchi/web/routes/review.py +0 -57
- patchi-0.7.5/patchi/web/routes/self_improvement.py +0 -110
- patchi-0.7.5/patchi/web/routes/settings.py +0 -49
- patchi-0.7.5/patchi/web/routes/tokens.py +0 -29
- patchi-0.7.5/patchi/web/spawn.py +0 -139
- patchi-0.7.5/patchi.egg-info/PKG-INFO +0 -315
- patchi-0.7.5/patchi.egg-info/SOURCES.txt +0 -583
- patchi-0.7.5/pyproject.toml +0 -173
- patchi-0.7.5/setup.cfg +0 -4
- patchi-0.7.5/tests/test_agent_security.py +0 -197
- patchi-0.7.5/tests/test_ai_client.py +0 -189
- patchi-0.7.5/tests/test_app_profile.py +0 -284
- patchi-0.7.5/tests/test_applier.py +0 -167
- patchi-0.7.5/tests/test_ast_utils.py +0 -582
- patchi-0.7.5/tests/test_ast_utils_new.py +0 -185
- patchi-0.7.5/tests/test_attack_agent.py +0 -393
- patchi-0.7.5/tests/test_audit.py +0 -160
- patchi-0.7.5/tests/test_base.py +0 -419
- patchi-0.7.5/tests/test_blast_radius_v2.py +0 -301
- patchi-0.7.5/tests/test_brain_watcher.py +0 -187
- patchi-0.7.5/tests/test_charter.py +0 -152
- patchi-0.7.5/tests/test_config.py +0 -204
- patchi-0.7.5/tests/test_contract.py +0 -160
- patchi-0.7.5/tests/test_coordinator.py +0 -235
- patchi-0.7.5/tests/test_debug_capture.py +0 -90
- patchi-0.7.5/tests/test_debug_codelldb.py +0 -56
- patchi-0.7.5/tests/test_debug_node.py +0 -75
- patchi-0.7.5/tests/test_debug_powershell.py +0 -79
- patchi-0.7.5/tests/test_detector.py +0 -264
- patchi-0.7.5/tests/test_dispatcher.py +0 -181
- patchi-0.7.5/tests/test_doc_claim_agent.py +0 -447
- patchi-0.7.5/tests/test_domain_loader.py +0 -482
- patchi-0.7.5/tests/test_fix_agents.py +0 -390
- patchi-0.7.5/tests/test_framework.py +0 -168
- patchi-0.7.5/tests/test_freshness.py +0 -106
- patchi-0.7.5/tests/test_generated_suite.py +0 -162
- patchi-0.7.5/tests/test_governor_engine.py +0 -457
- patchi-0.7.5/tests/test_governor_integration.py +0 -154
- patchi-0.7.5/tests/test_governor_v2.py +0 -503
- patchi-0.7.5/tests/test_hosted_anomaly.py +0 -157
- patchi-0.7.5/tests/test_hosted_audit_log.py +0 -80
- patchi-0.7.5/tests/test_hosted_ip_reputation.py +0 -80
- patchi-0.7.5/tests/test_hosted_log_parsers.py +0 -159
- patchi-0.7.5/tests/test_hosted_tokens.py +0 -98
- patchi-0.7.5/tests/test_hosted_watchlist.py +0 -96
- patchi-0.7.5/tests/test_import_graph.py +0 -233
- patchi-0.7.5/tests/test_integration.py +0 -233
- patchi-0.7.5/tests/test_language_support.py +0 -368
- patchi-0.7.5/tests/test_layered_brain.py +0 -227
- patchi-0.7.5/tests/test_memory.py +0 -253
- patchi-0.7.5/tests/test_new_agents.py +0 -1211
- patchi-0.7.5/tests/test_new_features.py +0 -365
- patchi-0.7.5/tests/test_new_security_agents.py +0 -285
- patchi-0.7.5/tests/test_notifications.py +0 -320
- patchi-0.7.5/tests/test_patch.py +0 -225
- patchi-0.7.5/tests/test_proactive.py +0 -148
- patchi-0.7.5/tests/test_proactive_phase5.py +0 -78
- patchi-0.7.5/tests/test_queue.py +0 -246
- patchi-0.7.5/tests/test_realize_tools.py +0 -142
- patchi-0.7.5/tests/test_reasoning.py +0 -101
- patchi-0.7.5/tests/test_risk_gate.py +0 -228
- patchi-0.7.5/tests/test_route_mapper.py +0 -244
- patchi-0.7.5/tests/test_scanner.py +0 -283
- patchi-0.7.5/tests/test_scanners.py +0 -706
- patchi-0.7.5/tests/test_scheduler.py +0 -93
- patchi-0.7.5/tests/test_secrets.py +0 -53
- patchi-0.7.5/tests/test_security_config.py +0 -29
- patchi-0.7.5/tests/test_sigma_engine.py +0 -178
- patchi-0.7.5/tests/test_smart_agent.py +0 -93
- patchi-0.7.5/tests/test_snapshot.py +0 -215
- patchi-0.7.5/tests/test_test_agents.py +0 -585
- patchi-0.7.5/tests/test_tool_harness.py +0 -463
- patchi-0.7.5/tests/test_verify.py +0 -102
- patchi-0.7.5/tests/test_web.py +0 -204
- {patchi-0.7.5 → patchi-0.7.8}/LICENSE +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/__main__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/command_families.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/agent_stats_cmd.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/link_cmd.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/plugins_cmd.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/quick_cmd.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/ready_cmd.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/console_logging_agent.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/memory_profiler_agent.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/run_agent.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/side/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/side/format_agent.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/side/install_agent.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/tool_health.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/ai/tool_executor.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/ai/tools/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/assurance/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/assurance/builder.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/assurance/invariants.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/atomic.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/api_abuse.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/auth_bypass.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/base.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/business_logic.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/planner.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/priv_escalation.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/recon.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/brain/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/brain/languages.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/brain/personas/bad_user.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/campaigns/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/campaigns/base.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/campaigns/orchestrator.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/campaigns/state_transitions.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/detector/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/fix/verify_loop.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/fuzz/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/fuzz/corpus.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/fuzz/input_fuzzer.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/hosted/compliance_report.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzer.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzers/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzers/dead_code_analyzer.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzers/secret_scanner.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzers/todo_scanner.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/registry.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/reliability/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/reliability/fault_injector.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/reliability/idempotency.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/reliability/recovery.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/attack_feedback.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/attack_scenarios/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/attack_tree.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/auto_fix_proactive.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/auto_ticket.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/chain_analyzer.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/charter.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/auth_middleware.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/base.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/block_ws_origin.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/crypto_fix.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/enforce_rate_limit.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/fix_code.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/invalidate_session.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/patch_config.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/rotate_secret.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/suspend_account.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/domain_activator_v2.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/domains/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/fix-playbooks/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/gradual_gate.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/ignore_expiry.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/intent_analyzer.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/layer2_orchestrator.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/base.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/dalfox_adapter.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/registry.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/shannon_adapter.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/sqlmap_adapter.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/zap_adapter.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/security_config.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/threat_model_updater.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/tool_adapters.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/testing/ads_agent.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/testing/gate.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/testing/live_v2/__init__.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/core/testing/live_v2/stress_orchestrator.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/web/api/dast_evidence.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/web/api/scan.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/web/api/tenant.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/web/api/tools.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi/web/ws.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi.egg-info/dependency_links.txt +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi.egg-info/requires.txt +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/patchi.egg-info/top_level.txt +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_assurance.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_brain_map_views.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_chain_engine.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_chaos_engineering.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_ci_bundle.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_corpus_noise.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_differential.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_fp_triage.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_hosted_mode.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_ignore_learner.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_noise_reduction.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_p3_agents.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_rebuilt_modules.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_runtime_crash_scanner.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_scan_bus.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_v2_agent_audit.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_v2_smoke.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_verify_loop.py +0 -0
- {patchi-0.7.5 → patchi-0.7.8}/tests/test_web_smart.py +0 -0
patchi-0.7.8/PKG-INFO
ADDED
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: patchi
|
|
3
|
+
Version: 0.7.8
|
|
4
|
+
Summary: Patchi — AI-powered code security and quality agent colony (smart orchestrator, pre-1.0.0 dev preview)
|
|
5
|
+
License: Proprietary — Free for personal/education/open-source, enterprise contact idemudiaehis6@gmail.com
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: httpx>=0.27
|
|
10
|
+
Requires-Dist: pyyaml>=6.0
|
|
11
|
+
Requires-Dist: rich>=13.0
|
|
12
|
+
Requires-Dist: loguru>=0.7
|
|
13
|
+
Requires-Dist: watchfiles>=0.21
|
|
14
|
+
Requires-Dist: psutil>=5.9
|
|
15
|
+
Requires-Dist: fastapi>=0.110
|
|
16
|
+
Requires-Dist: uvicorn>=0.29
|
|
17
|
+
Requires-Dist: jinja2>=3.1
|
|
18
|
+
Requires-Dist: websockets>=12.0
|
|
19
|
+
Requires-Dist: playwright>=1.44
|
|
20
|
+
Requires-Dist: Pillow>=10.0
|
|
21
|
+
Requires-Dist: aiohttp>=3.9
|
|
22
|
+
Requires-Dist: pixelmatch>=0.3
|
|
23
|
+
Requires-Dist: scikit-learn>=1.4
|
|
24
|
+
Requires-Dist: pymetasploit3>=1.0
|
|
25
|
+
Requires-Dist: tree-sitter>=0.21
|
|
26
|
+
Requires-Dist: tree-sitter-python>=0.21
|
|
27
|
+
Requires-Dist: tree-sitter-javascript>=0.21
|
|
28
|
+
Requires-Dist: tree-sitter-typescript>=0.21
|
|
29
|
+
Requires-Dist: tree-sitter-rust>=0.21
|
|
30
|
+
Requires-Dist: tree-sitter-svelte>=0.1
|
|
31
|
+
Requires-Dist: tree-sitter-java>=0.21
|
|
32
|
+
Requires-Dist: tree-sitter-go>=0.21
|
|
33
|
+
Requires-Dist: tree-sitter-c>=0.21
|
|
34
|
+
Requires-Dist: tree-sitter-cpp>=0.21
|
|
35
|
+
Requires-Dist: tree-sitter-swift>=0.1
|
|
36
|
+
Requires-Dist: tree-sitter-ruby>=0.1
|
|
37
|
+
Requires-Dist: tree-sitter-php>=0.1
|
|
38
|
+
Requires-Dist: tree-sitter-c-sharp>=0.1
|
|
39
|
+
Requires-Dist: tree-sitter-kotlin>=0.1
|
|
40
|
+
Requires-Dist: tree-sitter-dart>=0.1
|
|
41
|
+
Requires-Dist: tree-sitter-bash>=0.1
|
|
42
|
+
Requires-Dist: tree-sitter-css>=0.1
|
|
43
|
+
Requires-Dist: tree-sitter-sql>=0.1
|
|
44
|
+
Requires-Dist: tree-sitter-html>=0.1
|
|
45
|
+
Requires-Dist: pytest-xdist>=3.5
|
|
46
|
+
Provides-Extra: dev
|
|
47
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
48
|
+
Requires-Dist: pytest-timeout>=2.3; extra == "dev"
|
|
49
|
+
Requires-Dist: pytest-mock>=3.12; extra == "dev"
|
|
50
|
+
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
|
|
51
|
+
Requires-Dist: ruff>=0.5; extra == "dev"
|
|
52
|
+
Requires-Dist: mypy>=1.10; extra == "dev"
|
|
53
|
+
Requires-Dist: vulture>=2.11; extra == "dev"
|
|
54
|
+
Provides-Extra: pentest
|
|
55
|
+
Requires-Dist: shannon>=0.1; extra == "pentest"
|
|
56
|
+
Provides-Extra: external-tools
|
|
57
|
+
Provides-Extra: all
|
|
58
|
+
Requires-Dist: dev; extra == "all"
|
|
59
|
+
Requires-Dist: pentest; extra == "all"
|
|
60
|
+
Dynamic: license-file
|
|
61
|
+
|
|
62
|
+
<p align="center">
|
|
63
|
+
<img src="docs/assets/patchi-logo.svg" alt="Patchi" width="120">
|
|
64
|
+
</p>
|
|
65
|
+
|
|
66
|
+
<h1 align="center">Patchi</h1>
|
|
67
|
+
|
|
68
|
+
<p align="center">
|
|
69
|
+
<strong>AI-powered code security & quality orchestrator</strong><br>
|
|
70
|
+
CLI agent colony + unified web UI that scans, secures, tests, and fixes your codebase.
|
|
71
|
+
</p>
|
|
72
|
+
|
|
73
|
+
<p align="center">
|
|
74
|
+
<a href="#quick-start">Quick Start</a> ·
|
|
75
|
+
<a href="#features">Features</a> ·
|
|
76
|
+
<a href="#commands">Commands</a> ·
|
|
77
|
+
<a href="#security-agents">Agents</a> ·
|
|
78
|
+
<a href="#ai-setup">AI Setup</a> ·
|
|
79
|
+
<a href="#architecture">Architecture</a> ·
|
|
80
|
+
<a href="docs/WEB.md">Web UI</a> ·
|
|
81
|
+
<a href="docs/CLI.md">CLI Reference</a> ·
|
|
82
|
+
<a href="docs/ARCHITECTURE.md">Architecture</a> ·
|
|
83
|
+
<a href="docs/DEPLOYMENT.md">Deployment</a>
|
|
84
|
+
</p>
|
|
85
|
+
|
|
86
|
+
<p align="center">
|
|
87
|
+
<img src="https://img.shields.io/badge/version-0.7.5-blue" alt="Version">
|
|
88
|
+
<img src="https://img.shields.io/badge/python-3.11+-green" alt="Python">
|
|
89
|
+
<img src="https://img.shields.io/badge/commands-60-brightgreen" alt="Commands">
|
|
90
|
+
<img src="https://img.shields.io/badge/agents-125-orange" alt="Agents">
|
|
91
|
+
<img src="https://img.shields.io/badge/tests-1000+-purple" alt="Tests">
|
|
92
|
+
<img src="https://img.shields.io/badge/license-freemium-yellow" alt="License">
|
|
93
|
+
</p>
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## What is Patchi?
|
|
98
|
+
|
|
99
|
+
Patchi is a **CLI agent colony + unified web UI** that scans, secures, tests, and fixes your codebase using static analysis and optional AI.
|
|
100
|
+
|
|
101
|
+
**1:1 CLI ↔ Web** — the web is a fancy wrapper; every screen maps to a command. Cross-platform (Windows, Linux, macOS).
|
|
102
|
+
|
|
103
|
+
### The Loop
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
Scan → Analyze → Fix → Review → Guard
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
1. **Scan** — Parse every file with tree-sitter AST, build import graph, detect secrets
|
|
110
|
+
2. **Analyze** — 125 security agents run in parallel, each specializing in one vulnerability class
|
|
111
|
+
3. **Fix** — AI generates surgical patches, scored by risk and confidence
|
|
112
|
+
4. **Review** — User reviews before applying (or autopilot mode applies automatically)
|
|
113
|
+
5. **Guard** — Hosted mode monitors live applications with anomaly detection
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Quick Start
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Install
|
|
121
|
+
pip install .
|
|
122
|
+
# or with web UI:
|
|
123
|
+
pip install ".[web]"
|
|
124
|
+
|
|
125
|
+
# Initialize and scan
|
|
126
|
+
cd your-project
|
|
127
|
+
p init # one-time setup
|
|
128
|
+
p scan # full scan (static analysis, no AI tokens)
|
|
129
|
+
p scan --with-license # include supply-chain license audit
|
|
130
|
+
p scan --deep # with LLM analysis on changed files
|
|
131
|
+
p scan --json # JSON output for CI/CD
|
|
132
|
+
p scan --offline # static analysis only, no AI calls
|
|
133
|
+
|
|
134
|
+
# Check and fix
|
|
135
|
+
p quick # fast readiness check (3 agents)
|
|
136
|
+
p status # brain health, mode, queue, AI status
|
|
137
|
+
p fix # apply AI-generated fixes
|
|
138
|
+
p fix --dry-run # preview fixes without applying
|
|
139
|
+
p fix-review # interactive review with diff view
|
|
140
|
+
|
|
141
|
+
# Web UI
|
|
142
|
+
p web # launch at http://127.0.0.1:1612
|
|
143
|
+
p web --open # auto-open browser
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Requires Python 3.11+**
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Features
|
|
151
|
+
|
|
152
|
+
### Scanning & Analysis
|
|
153
|
+
|
|
154
|
+
- **Multi-language AST** — Python, JS, TS, Rust, Go, Java, C, C++, Swift, Ruby, PHP, C#, Kotlin, Dart, SQL, HTML, CSS, Svelte, Bash (20+ via tree-sitter)
|
|
155
|
+
- **Git-aware** — incremental scanning via `git diff`, blame integration
|
|
156
|
+
- **Import graph** — full dependency visualization, circular detection, orphan files
|
|
157
|
+
- **Route mapper** — detects routes across 18 frameworks (Django, Flask, FastAPI, Express, Next.js, etc.)
|
|
158
|
+
- **Dead code detection** — unreachable files, broken imports, uncertain code
|
|
159
|
+
- **Duplicate detection** — AST-normalized code duplication
|
|
160
|
+
- **Secret scanning** — hardcoded credentials, API keys, connection strings
|
|
161
|
+
|
|
162
|
+
### Security
|
|
163
|
+
|
|
164
|
+
- **125 security agents** across 11 categories (injection, auth, crypto, secrets, supply chain, config, compliance, privacy, runtime, adversarial, governance)
|
|
165
|
+
- **800 security domains** with 2,955 playbooks from OWASP, CWE, NIST, SANS
|
|
166
|
+
- **OWASP Top 10 mapping** with CWE-aware correlation
|
|
167
|
+
- **Exploit chain detection** — cross-agent correlation finds multi-step attack paths
|
|
168
|
+
- **External tool integration** — Semgrep CE, Gitleaks, OSV-Scanner, httpx, CodeQL
|
|
169
|
+
- **Domain enrichment** — each finding includes matching domains, playbook references, and fix strategies
|
|
170
|
+
|
|
171
|
+
### Fixing
|
|
172
|
+
|
|
173
|
+
- **Risk-gated patches** — every fix scored by risk (0-100) and confidence
|
|
174
|
+
- **Atomic rollback** — snapshot before every apply, undo anytime
|
|
175
|
+
- **Verify loop** — security fixes re-checked to confirm resolution
|
|
176
|
+
- **Interactive review** — `p fix-review` with accept/reject/skip and inline diff
|
|
177
|
+
- **Learning brain** — tracks your accept/reject patterns, stops suggesting rejected fix types
|
|
178
|
+
|
|
179
|
+
### Testing
|
|
180
|
+
|
|
181
|
+
- **Multi-modal** — unit, browser (Playwright), stress, visual regression, API, E2E
|
|
182
|
+
- **Video recording** — DAST sessions captured with Playwright
|
|
183
|
+
- **Visual regression** — multi-viewport baselines (desktop/tablet/mobile)
|
|
184
|
+
- **Pre-commit hook** — runs gate on every commit
|
|
185
|
+
|
|
186
|
+
### AI Integration
|
|
187
|
+
|
|
188
|
+
- **14 providers** — OpenAI, Anthropic, Google, Groq, Mistral, Cohere, Together AI, Fireworks, Perplexity, OpenRouter, DeepSeek, xAI, NVIDIA, Hugging Face + custom OpenAI-compatible
|
|
189
|
+
- **4 tiers** (priority order):
|
|
190
|
+
1. Local model via Ollama — fully offline, zero cost
|
|
191
|
+
2. API keys — any OpenAI-compatible provider
|
|
192
|
+
3. Free keys — Groq, Google AI, OpenRouter, Mistral, Together AI
|
|
193
|
+
4. Manual fallback — user-provided keys
|
|
194
|
+
- **Cost tracking** — budget alerts, provider rotation
|
|
195
|
+
- **Keys stored locally** in `.patchi/keys.json`, never sent elsewhere
|
|
196
|
+
|
|
197
|
+
### Web UI
|
|
198
|
+
|
|
199
|
+
- **Dashboard** — health score, AI cost, findings overview
|
|
200
|
+
- **Brain Map** — interactive 2D/3D code visualization (Konva.js + Three.js)
|
|
201
|
+
- **Findings** — filterable table with severity, type, agent, domain
|
|
202
|
+
- **Assurance** — coverage heatmap with treemap view
|
|
203
|
+
- **Live Tests** — browser test recordings and visual regression evidence
|
|
204
|
+
- **Self-Improvement** — agent profiles, learning summary, threat model evolution
|
|
205
|
+
- **Real-time updates** — WebSocket for live scan progress
|
|
206
|
+
|
|
207
|
+
### CLI UX
|
|
208
|
+
|
|
209
|
+
- **Spinners** — context-managed status indicators
|
|
210
|
+
- **Progress bars** — multi-phase progress with task tracking
|
|
211
|
+
- **Formatted tables** — Rich tables for findings, commands, results
|
|
212
|
+
- **Summary panels** — key metrics at a glance
|
|
213
|
+
- **Interactive prompts** — confirm, select, fix-review
|
|
214
|
+
- **Command families** — `p <family> commands` to discover by category
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Commands
|
|
219
|
+
|
|
220
|
+
**60 commands** across **24 families.** Full reference → [docs/CLI.md](docs/CLI.md)
|
|
221
|
+
|
|
222
|
+
### Command Families
|
|
223
|
+
|
|
224
|
+
| Family | Purpose |
|
|
225
|
+
|--------|---------|
|
|
226
|
+
| `scan` | Scanning & analysis (`scan`, `security`, `deps`, `chains`, `findings`, `blast`, `impact`, `why`) |
|
|
227
|
+
| `fix` | Fixing & patching (`fix`, `fix-review`, `auto`, `patch`, `undo`, `redo`, `rollback`) |
|
|
228
|
+
| `test` | Testing (`test`, `verify`) |
|
|
229
|
+
| `agent` | Agent management (`agents`, `agent-stats`, `quick`, `ready`) |
|
|
230
|
+
| `ai` | AI configuration (`ai`, `chat`, `model`, `key`) |
|
|
231
|
+
| `config` | Configuration (`settings`, `mode`, `memory`, `cleanup`, `doctor`) |
|
|
232
|
+
| `web` | Web UI & reporting (`web`, `report`, `audit`) |
|
|
233
|
+
| `charter` | Governance (`charter`, `rules`, `restrict`, `assure`) |
|
|
234
|
+
| `notify` | Notifications (`notify`) |
|
|
235
|
+
| `hosted` | Live monitoring (`hosted`) — experimental |
|
|
236
|
+
| `git` | Git integration (`blame`, `log`, `status`) |
|
|
237
|
+
| `dev` | Developer tools (`dev`, `update`, `watch`) |
|
|
238
|
+
| `queue` | Task queue (`queue`) |
|
|
239
|
+
| `brain` | Knowledge & planning (`brain`, `learn`, `plan`) |
|
|
240
|
+
| `vr` | Visual regression (`vr`) |
|
|
241
|
+
| `goal` | Autonomous mode (`goal`) |
|
|
242
|
+
| `cross-repo` | Cross-repo intelligence (`cross-repo`) |
|
|
243
|
+
|
|
244
|
+
Run `p <command> --help` for flags. Run `p <family> commands` to list all commands in a family.
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## Security Agents
|
|
249
|
+
|
|
250
|
+
**125 registered agents** across 11 categories (lazy-loaded).
|
|
251
|
+
|
|
252
|
+
| Category | Agents | Covers |
|
|
253
|
+
|----------|--------|--------|
|
|
254
|
+
| Injection | 15+ | SQLi, XSS, command injection, SSRF, CSRF, path traversal |
|
|
255
|
+
| Auth | 10+ | Missing auth, broken access control, JWT, SAML SSO |
|
|
256
|
+
| Crypto | 8+ | Weak hashing, hardcoded keys, SSL/TLS misconfig |
|
|
257
|
+
| Secrets | 8+ | Leaked credentials, API keys, connection strings |
|
|
258
|
+
| Supply Chain | 12+ | CVEs, typosquatting, unpinned deps |
|
|
259
|
+
| Config/IaC | 10+ | Debug mode, missing headers, CORS, Docker, K8s, Terraform |
|
|
260
|
+
| Compliance | 8+ | SOC2, HIPAA, PCI-DSS, CIS policy enforcement |
|
|
261
|
+
| Privacy | 5+ | PII handling |
|
|
262
|
+
| Runtime | 8+ | Live app testing, anomaly detection |
|
|
263
|
+
| Adversarial | 10+ | Attack surface analysis, exploit patterns |
|
|
264
|
+
| Governance | 8+ | History, blast radius, drift detection |
|
|
265
|
+
|
|
266
|
+
Uses Semgrep CE, Gitleaks, OSV-Scanner, httpx, Shannon, and CodeQL under the hood.
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## AI Setup (Optional)
|
|
271
|
+
|
|
272
|
+
Without AI, Patchi runs structural analysis using static analyzers — free, fast, zero API calls.
|
|
273
|
+
|
|
274
|
+
| Tier | Provider | Cost | Setup |
|
|
275
|
+
|------|----------|------|-------|
|
|
276
|
+
| 1 | Ollama (local) | Free | `ollama serve` + `p model set` |
|
|
277
|
+
| 2 | API keys | Varies | `p ai add` |
|
|
278
|
+
| 3 | Free keys | Free | Groq, Google, OpenRouter, Mistral, Together |
|
|
279
|
+
|
|
280
|
+
**14 built-in providers:** OpenAI, Anthropic, Google, Groq, Mistral, Cohere, Together AI, Fireworks, Perplexity, OpenRouter, DeepSeek, xAI, NVIDIA, Hugging Face + custom OpenAI-compatible.
|
|
281
|
+
|
|
282
|
+
Keys stored in `.patchi/keys.json`, never sent elsewhere.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Modes
|
|
287
|
+
|
|
288
|
+
| Mode | Behaviour |
|
|
289
|
+
|------|-----------|
|
|
290
|
+
| `confirm` (default) | Every fix requires approval |
|
|
291
|
+
| `auto` | Low-risk fixes auto-apply, risky ones ask |
|
|
292
|
+
| `autopilot` | Full trust — applies everything |
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Architecture
|
|
297
|
+
|
|
298
|
+
```
|
|
299
|
+
patchi/
|
|
300
|
+
├── cli/ # Command-line interface
|
|
301
|
+
│ ├── main.py # Root parser, lazy imports
|
|
302
|
+
│ ├── framework.py # Command registration + family routing
|
|
303
|
+
│ ├── registry.py # 60 registered commands
|
|
304
|
+
│ ├── ux.py # Spinners, progress bars, formatting
|
|
305
|
+
│ ├── console.py # Rich console output
|
|
306
|
+
│ └── commands/ # One file per command (60 files)
|
|
307
|
+
│
|
|
308
|
+
├── core/
|
|
309
|
+
│ ├── brain/ # AST scanning, import graph, language detection
|
|
310
|
+
│ │ ├── brain.py # Brain class — main orchestrator
|
|
311
|
+
│ │ ├── scanner.py # File discovery and scanning
|
|
312
|
+
│ │ ├── languages.py # Language support (20+ via tree-sitter)
|
|
313
|
+
│ │ ├── layered_brain.py # Layered architecture analysis
|
|
314
|
+
│ │ ├── charter.py # Project guard rails
|
|
315
|
+
│ │ ├── brain_context.py # Injectable context bridge
|
|
316
|
+
│ │ └── ast_utils/ # AST manipulation utilities
|
|
317
|
+
│ │
|
|
318
|
+
│ ├── agents/ # Agent framework
|
|
319
|
+
│ │ ├── base.py # BaseAgent, Finding, Severity, register()
|
|
320
|
+
│ │ ├── coordinator.py # Multi-agent orchestration
|
|
321
|
+
│ │ ├── governor.py # Phase-gated state machine
|
|
322
|
+
│ │ └── cache.py # Tree-sitter parse cache
|
|
323
|
+
│ │
|
|
324
|
+
│ ├── security/ # 125 security agents
|
|
325
|
+
│ │ ├── orchestrator.py # Cross-agent correlation
|
|
326
|
+
│ │ ├── security_agents.py # Agent registry
|
|
327
|
+
│ │ ├── pentest/ # Pentest toolkit
|
|
328
|
+
│ │ │ ├── pentest_registry.py
|
|
329
|
+
│ │ │ ├── shannon_adapter.py
|
|
330
|
+
│ │ │ └── tool_delegator.py
|
|
331
|
+
│ │ └── ... # 100+ specialized agents
|
|
332
|
+
│ │
|
|
333
|
+
│ ├── ai/ # AI integration
|
|
334
|
+
│ │ ├── client.py # Unified AI client (14 providers)
|
|
335
|
+
│ │ ├── model_router.py # Cost-aware model routing
|
|
336
|
+
│ │ └── agent_profiler.py # Agent performance tracking
|
|
337
|
+
│ │
|
|
338
|
+
│ ├── fix/ # Fix application
|
|
339
|
+
│ │ ├── base.py # Fix generation with AI
|
|
340
|
+
│ │ ├── risk_gate.py # Risk assessment for fixes
|
|
341
|
+
│ │ └── patch.py # Patch management
|
|
342
|
+
│ │
|
|
343
|
+
│ ├── testing/ # Test execution
|
|
344
|
+
│ │ ├── live_v2/ # Playwright browser testing
|
|
345
|
+
│ │ │ ├── runner.py # Browser test runner
|
|
346
|
+
│ │ │ └── video_recorder.py # Video evidence capture
|
|
347
|
+
│ │ └── ... # Unit, stress, visual regression
|
|
348
|
+
│ │
|
|
349
|
+
│ ├── config.py # Project configuration
|
|
350
|
+
│ ├── constants.py # Shared constants
|
|
351
|
+
│ ├── memory.py # Atomic persistent memory (shared atomic writes)
|
|
352
|
+
│ ├── queue.py # File-locked task queue
|
|
353
|
+
│ ├── snapshot.py # Atomic rollback (shared atomic writes)
|
|
354
|
+
│ └── health.py # Health scoring (0-100)
|
|
355
|
+
│
|
|
356
|
+
├── web/ # Unified web UI
|
|
357
|
+
│ ├── app.py # FastAPI application
|
|
358
|
+
│ ├── routes/ # Page routes (Jinja2 templates)
|
|
359
|
+
│ ├── api/ # REST API endpoints
|
|
360
|
+
│ ├── templates/ # Jinja2 HTML templates
|
|
361
|
+
│ └── static/ # CSS, JS, brain map assets
|
|
362
|
+
│
|
|
363
|
+
└── tests/ # 1,000+ tests across ~70 files
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Data Flow
|
|
367
|
+
|
|
368
|
+
```
|
|
369
|
+
p scan
|
|
370
|
+
→ Brain scans files (tree-sitter parsing)
|
|
371
|
+
→ Import graph built
|
|
372
|
+
→ 125 security agents run in parallel
|
|
373
|
+
→ Findings deduplicated by orchestrator
|
|
374
|
+
→ Cross-agent correlation (exploit chains)
|
|
375
|
+
→ Results stored in .patchi/memory/
|
|
376
|
+
→ BRAIN.md auto-generated
|
|
377
|
+
→ Health score computed
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### Technology Stack
|
|
381
|
+
|
|
382
|
+
| Layer | Technology |
|
|
383
|
+
|-------|-----------|
|
|
384
|
+
| CLI | argparse + Rich + custom UX module |
|
|
385
|
+
| Web framework | FastAPI + Jinja2 + HTMX |
|
|
386
|
+
| Brain map | Konva.js (2D) + Three.js (3D) |
|
|
387
|
+
| AST parsing | tree-sitter (20+ languages) |
|
|
388
|
+
| Security tools | Semgrep CE, Gitleaks, OSV-Scanner, httpx, Shannon, CodeQL |
|
|
389
|
+
| AI providers | OpenAI, Anthropic, Google, Groq, Mistral, + 10 more |
|
|
390
|
+
| Testing | pytest + Playwright |
|
|
391
|
+
| CI/CD | GitHub Actions |
|
|
392
|
+
| Package management | pip + pyproject.toml |
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
## Key Features
|
|
397
|
+
|
|
398
|
+
| Feature | Description |
|
|
399
|
+
|---------|-------------|
|
|
400
|
+
| Multi-language scanning | 20+ languages via tree-sitter |
|
|
401
|
+
| Git-aware | Incremental scans, blame integration |
|
|
402
|
+
| Atomic writes + file locking | Crash-safe memory, queue, snapshots |
|
|
403
|
+
| Learning brain | Tracks accept/reject patterns |
|
|
404
|
+
| Notifications | Slack, Discord, email, webhook, Telegram |
|
|
405
|
+
| Hosted mode | Live log monitoring, anomaly detection (experimental) |
|
|
406
|
+
| Governor pipeline | Phase-gated state machine with crash recovery |
|
|
407
|
+
| Security orchestrator | Deduplication, cross-agent correlation |
|
|
408
|
+
| Policy engine | YAML/JSON policy enforcement |
|
|
409
|
+
| Verify loop | Security fixes re-checked |
|
|
410
|
+
| CLI UX | Spinners, progress bars, formatted tables |
|
|
411
|
+
|
|
412
|
+
---
|
|
413
|
+
|
|
414
|
+
## Running Tests
|
|
415
|
+
|
|
416
|
+
```bash
|
|
417
|
+
python -m pytest tests/ -q -x # full suite
|
|
418
|
+
python -m pytest tests/test_contract.py -q # contract tests
|
|
419
|
+
python tools/deep_audit_web.py # web UI audit
|
|
420
|
+
python tools/e2e_web_v2.py # end-to-end
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
425
|
+
## License & Pricing
|
|
426
|
+
|
|
427
|
+
**Patchi Freemium Preview — see [LICENSE](LICENSE).**
|
|
428
|
+
|
|
429
|
+
- **Free:** Personal use, education, research, open-source, and teams of **fewer than 3 users** — no contact required.
|
|
430
|
+
- **Enterprise / teams ≥ 3:** Contact **idemudiaehis6@gmail.com** for a license. Trial up to 30 days before contacting is fine.
|
|
431
|
+
- Hosted mode is **EXPERIMENTAL** — not recommended for production use yet.
|
|
432
|
+
|
|
433
|
+
---
|
|
434
|
+
|
|
435
|
+
## Contributing
|
|
436
|
+
|
|
437
|
+
Contributions are welcome:
|
|
438
|
+
- **Pull requests** — welcome and credited
|
|
439
|
+
- **Bug reports** — open an issue or email **idemudiaehis6@gmail.com**
|
|
440
|
+
|
|
441
|
+
---
|
|
442
|
+
|
|
443
|
+
## Documentation
|
|
444
|
+
|
|
445
|
+
| Document | Description |
|
|
446
|
+
|----------|-------------|
|
|
447
|
+
| [Web UI Guide](docs/WEB.md) | Dashboard, brain map, findings, assurance, live tests, API |
|
|
448
|
+
| [CLI Reference](docs/CLI.md) | All 60 commands with flags and subcommands |
|
|
449
|
+
| [Architecture](docs/ARCHITECTURE.md) | System design, directory structure, data flow |
|
|
450
|
+
| [Technical Overview](docs/OVERVIEW.md) | Components, data storage, performance, security |
|
|
451
|
+
| [Deployment](docs/DEPLOYMENT.md) | Hosted mode setup (Docker, systemd, direct) |
|
|
452
|
+
| [Language Support](docs/LANGUAGE_SUPPORT.md) | Supported languages and tree-sitter grammars |
|
|
453
|
+
| [Release Notes](docs/archive/RELEASE-v0.7.5.md) | What's new in v0.7.5 |
|
|
454
|
+
| [Changelog](CHANGELOG.md) | Full version history |
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
## Roadmap
|
|
459
|
+
|
|
460
|
+
**v1.0.0** will lock APIs, ship the full domain taxonomy, and promote hosted out of experimental.
|
|
461
|
+
Until then, pin `.patchi/` memory formats as best-effort forward-compatible.
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
<p align="center">
|
|
466
|
+
Built with by <a href="https://github.com/simply-ehis">simply-ehis</a>
|
|
467
|
+
</p>
|