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.
Files changed (1047) hide show
  1. patchi-0.7.8/PKG-INFO +467 -0
  2. patchi-0.7.8/README.md +406 -0
  3. patchi-0.7.8/patchi/__init__.py +1 -0
  4. patchi-0.7.8/patchi/cli/commands/access_cmd.py +65 -0
  5. patchi-0.7.8/patchi/cli/commands/agents_cmd.py +187 -0
  6. patchi-0.7.8/patchi/cli/commands/ai_cmd.py +308 -0
  7. patchi-0.7.8/patchi/cli/commands/assure_cmd.py +538 -0
  8. patchi-0.7.8/patchi/cli/commands/audit_cmd.py +286 -0
  9. patchi-0.7.8/patchi/cli/commands/auto_cmd.py +110 -0
  10. patchi-0.7.8/patchi/cli/commands/blame_cmd.py +53 -0
  11. patchi-0.7.8/patchi/cli/commands/chains_cmd.py +327 -0
  12. patchi-0.7.8/patchi/cli/commands/charter_cmd.py +173 -0
  13. patchi-0.7.8/patchi/cli/commands/chat_cmd.py +597 -0
  14. patchi-0.7.8/patchi/cli/commands/check_cmd.py +232 -0
  15. patchi-0.7.8/patchi/cli/commands/cleanup_cmd.py +328 -0
  16. patchi-0.7.8/patchi/cli/commands/cockpit_cmd.py +208 -0
  17. patchi-0.7.8/patchi/cli/commands/commands_cmd.py +161 -0
  18. patchi-0.7.8/patchi/cli/commands/cross_repo_cmd.py +113 -0
  19. patchi-0.7.8/patchi/cli/commands/deps_cmd.py +110 -0
  20. patchi-0.7.8/patchi/cli/commands/dev_check_cmd.py +342 -0
  21. patchi-0.7.8/patchi/cli/commands/dev_cmd.py +445 -0
  22. patchi-0.7.8/patchi/cli/commands/doctor_cmd.py +457 -0
  23. patchi-0.7.8/patchi/cli/commands/findings_cmd.py +187 -0
  24. patchi-0.7.8/patchi/cli/commands/fix_cmd.py +648 -0
  25. patchi-0.7.8/patchi/cli/commands/heatmap_cmd.py +62 -0
  26. patchi-0.7.8/patchi/cli/commands/help_cmd.py +159 -0
  27. patchi-0.7.8/patchi/cli/commands/hosted_cmd.py +980 -0
  28. patchi-0.7.8/patchi/cli/commands/init.py +475 -0
  29. patchi-0.7.8/patchi/cli/commands/key_cmd.py +571 -0
  30. patchi-0.7.8/patchi/cli/commands/learn_cmd.py +140 -0
  31. patchi-0.7.8/patchi/cli/commands/log_cmd.py +57 -0
  32. patchi-0.7.8/patchi/cli/commands/memory_cmd.py +215 -0
  33. patchi-0.7.8/patchi/cli/commands/model_cmd.py +207 -0
  34. patchi-0.7.8/patchi/cli/commands/notify_cmd.py +213 -0
  35. patchi-0.7.8/patchi/cli/commands/notify_prompts.py +29 -0
  36. patchi-0.7.8/patchi/cli/commands/patch_cmd.py +231 -0
  37. patchi-0.7.8/patchi/cli/commands/plan_cmd.py +128 -0
  38. patchi-0.7.8/patchi/cli/commands/queue_cmd.py +152 -0
  39. patchi-0.7.8/patchi/cli/commands/report_cmd.py +416 -0
  40. patchi-0.7.8/patchi/cli/commands/restrict_cmd.py +127 -0
  41. patchi-0.7.8/patchi/cli/commands/review_cmd.py +225 -0
  42. patchi-0.7.8/patchi/cli/commands/rules_cmd.py +233 -0
  43. patchi-0.7.8/patchi/cli/commands/scan_cmd.py +1972 -0
  44. patchi-0.7.8/patchi/cli/commands/settings_cmd.py +45 -0
  45. patchi-0.7.8/patchi/cli/commands/status_cmd.py +679 -0
  46. patchi-0.7.8/patchi/cli/commands/test_cmd.py +1052 -0
  47. patchi-0.7.8/patchi/cli/commands/trend_cmd.py +296 -0
  48. patchi-0.7.8/patchi/cli/commands/undo_cmd.py +235 -0
  49. patchi-0.7.8/patchi/cli/commands/update_cmd.py +345 -0
  50. patchi-0.7.8/patchi/cli/commands/verify_cmd.py +56 -0
  51. patchi-0.7.8/patchi/cli/commands/vr_cmd.py +440 -0
  52. patchi-0.7.8/patchi/cli/commands/watch_cmd.py +304 -0
  53. patchi-0.7.8/patchi/cli/commands/web_cmd.py +114 -0
  54. patchi-0.7.8/patchi/cli/console.py +101 -0
  55. patchi-0.7.8/patchi/cli/display/__init__.py +1 -0
  56. patchi-0.7.8/patchi/cli/display/live_audit.py +269 -0
  57. patchi-0.7.8/patchi/cli/display/live_progress.py +169 -0
  58. patchi-0.7.8/patchi/cli/framework.py +241 -0
  59. patchi-0.7.8/patchi/cli/logo.py +128 -0
  60. patchi-0.7.8/patchi/cli/main.py +239 -0
  61. patchi-0.7.8/patchi/cli/registry.py +1171 -0
  62. patchi-0.7.8/patchi/cli/style.py +68 -0
  63. patchi-0.7.8/patchi/cli/themes.py +187 -0
  64. patchi-0.7.8/patchi/cli/ux.py +444 -0
  65. patchi-0.7.8/patchi/core/agents/api_fuzzer_agent.py +144 -0
  66. patchi-0.7.8/patchi/core/agents/attack_agent.py +242 -0
  67. patchi-0.7.8/patchi/core/agents/base.py +1042 -0
  68. patchi-0.7.8/patchi/core/agents/bug_predictor_agent.py +61 -0
  69. patchi-0.7.8/patchi/core/agents/build_tool_validator.py +150 -0
  70. patchi-0.7.8/patchi/core/agents/cache.py +192 -0
  71. patchi-0.7.8/patchi/core/agents/chaos_agent.py +141 -0
  72. patchi-0.7.8/patchi/core/agents/cicd_generator.py +240 -0
  73. patchi-0.7.8/patchi/core/agents/comment_scanner.py +308 -0
  74. patchi-0.7.8/patchi/core/agents/coordinator.py +1075 -0
  75. patchi-0.7.8/patchi/core/agents/core_scanner.py +270 -0
  76. patchi-0.7.8/patchi/core/agents/coverage_prioritizer.py +183 -0
  77. patchi-0.7.8/patchi/core/agents/dead_code_hygiene.py +309 -0
  78. patchi-0.7.8/patchi/core/agents/dead_code_scanner.py +717 -0
  79. patchi-0.7.8/patchi/core/agents/dependency_scanner.py +725 -0
  80. patchi-0.7.8/patchi/core/agents/doc_claim_agent.py +576 -0
  81. patchi-0.7.8/patchi/core/agents/duplicate_scanner.py +591 -0
  82. patchi-0.7.8/patchi/core/agents/env_scanner.py +433 -0
  83. patchi-0.7.8/patchi/core/agents/feature_flag_agent.py +97 -0
  84. patchi-0.7.8/patchi/core/agents/frontend_framework_agent.py +144 -0
  85. patchi-0.7.8/patchi/core/agents/goroutine_agent.py +82 -0
  86. patchi-0.7.8/patchi/core/agents/governor.py +1972 -0
  87. patchi-0.7.8/patchi/core/agents/i18n_agent.py +98 -0
  88. patchi-0.7.8/patchi/core/agents/license_compliance.py +247 -0
  89. patchi-0.7.8/patchi/core/agents/linking_agent.py +253 -0
  90. patchi-0.7.8/patchi/core/agents/modernization_agent.py +93 -0
  91. patchi-0.7.8/patchi/core/agents/mutation_agent.py +175 -0
  92. patchi-0.7.8/patchi/core/agents/nl_query_agent.py +76 -0
  93. patchi-0.7.8/patchi/core/agents/promise_rejection_agent.py +114 -0
  94. patchi-0.7.8/patchi/core/agents/refactoring_agent.py +288 -0
  95. patchi-0.7.8/patchi/core/agents/resource_leak_agent.py +101 -0
  96. patchi-0.7.8/patchi/core/agents/route_graph_scanner.py +958 -0
  97. patchi-0.7.8/patchi/core/agents/rust_unwrap_agent.py +100 -0
  98. patchi-0.7.8/patchi/core/agents/sbom_generator.py +284 -0
  99. patchi-0.7.8/patchi/core/agents/scanners.py +67 -0
  100. patchi-0.7.8/patchi/core/agents/side/build_agent.py +65 -0
  101. patchi-0.7.8/patchi/core/agents/side_file_scanner.py +549 -0
  102. patchi-0.7.8/patchi/core/agents/snapshot_drift_detector.py +146 -0
  103. patchi-0.7.8/patchi/core/agents/spa_route_inventory.py +203 -0
  104. patchi-0.7.8/patchi/core/agents/test_scanner.py +466 -0
  105. patchi-0.7.8/patchi/core/agents/tool_runner.py +162 -0
  106. patchi-0.7.8/patchi/core/agents/type_scanner.py +183 -0
  107. patchi-0.7.8/patchi/core/agents/ui_scanner.py +561 -0
  108. patchi-0.7.8/patchi/core/ai/__init__.py +20 -0
  109. patchi-0.7.8/patchi/core/ai/agent_audit.py +153 -0
  110. patchi-0.7.8/patchi/core/ai/agent_profiler.py +277 -0
  111. patchi-0.7.8/patchi/core/ai/client.py +552 -0
  112. patchi-0.7.8/patchi/core/ai/cost_tracker.py +107 -0
  113. patchi-0.7.8/patchi/core/ai/model_router.py +318 -0
  114. patchi-0.7.8/patchi/core/ai/orchestrator.py +625 -0
  115. patchi-0.7.8/patchi/core/ai/prompts.py +681 -0
  116. patchi-0.7.8/patchi/core/ai/smart.py +302 -0
  117. patchi-0.7.8/patchi/core/ai/tools/executor.py +621 -0
  118. patchi-0.7.8/patchi/core/ai/tools/realize.py +1160 -0
  119. patchi-0.7.8/patchi/core/ai/tools/registry.py +1577 -0
  120. patchi-0.7.8/patchi/core/assurance/graph.py +342 -0
  121. patchi-0.7.8/patchi/core/brain/ast_utils/__init__.py +81 -0
  122. patchi-0.7.8/patchi/core/brain/ast_utils/assignments.py +219 -0
  123. patchi-0.7.8/patchi/core/brain/ast_utils/calls.py +139 -0
  124. patchi-0.7.8/patchi/core/brain/ast_utils/config.py +132 -0
  125. patchi-0.7.8/patchi/core/brain/ast_utils/control_flow.py +74 -0
  126. patchi-0.7.8/patchi/core/brain/ast_utils/dead_symbols.py +205 -0
  127. patchi-0.7.8/patchi/core/brain/ast_utils/decorators.py +108 -0
  128. patchi-0.7.8/patchi/core/brain/ast_utils/helpers.py +144 -0
  129. patchi-0.7.8/patchi/core/brain/ast_utils/imports.py +169 -0
  130. patchi-0.7.8/patchi/core/brain/ast_utils/scan.py +143 -0
  131. patchi-0.7.8/patchi/core/brain/ast_utils/taint.py +310 -0
  132. patchi-0.7.8/patchi/core/brain/audit.py +379 -0
  133. patchi-0.7.8/patchi/core/brain/baseline.py +195 -0
  134. patchi-0.7.8/patchi/core/brain/blast_radius.py +312 -0
  135. patchi-0.7.8/patchi/core/brain/body_tags.py +144 -0
  136. patchi-0.7.8/patchi/core/brain/brain.py +1174 -0
  137. patchi-0.7.8/patchi/core/brain/brain_context.py +393 -0
  138. patchi-0.7.8/patchi/core/brain/brain_watcher.py +340 -0
  139. patchi-0.7.8/patchi/core/brain/charter.py +473 -0
  140. patchi-0.7.8/patchi/core/brain/classifier.py +214 -0
  141. patchi-0.7.8/patchi/core/brain/cockpit.py +350 -0
  142. patchi-0.7.8/patchi/core/brain/code_query.py +710 -0
  143. patchi-0.7.8/patchi/core/brain/contract.py +889 -0
  144. patchi-0.7.8/patchi/core/brain/contract_diff.py +155 -0
  145. patchi-0.7.8/patchi/core/brain/council.py +800 -0
  146. patchi-0.7.8/patchi/core/brain/cross_repo.py +104 -0
  147. patchi-0.7.8/patchi/core/brain/dead_code_tools.py +163 -0
  148. patchi-0.7.8/patchi/core/brain/doc_validator.py +197 -0
  149. patchi-0.7.8/patchi/core/brain/domain_activator.py +2183 -0
  150. patchi-0.7.8/patchi/core/brain/enriched_context.py +220 -0
  151. patchi-0.7.8/patchi/core/brain/file_corpus.py +226 -0
  152. patchi-0.7.8/patchi/core/brain/framework.py +1000 -0
  153. patchi-0.7.8/patchi/core/brain/freshness.py +273 -0
  154. patchi-0.7.8/patchi/core/brain/git_aware.py +208 -0
  155. patchi-0.7.8/patchi/core/brain/heatmap.py +106 -0
  156. patchi-0.7.8/patchi/core/brain/ignore_parser.py +153 -0
  157. patchi-0.7.8/patchi/core/brain/import_graph.py +562 -0
  158. patchi-0.7.8/patchi/core/brain/layered_brain.py +419 -0
  159. patchi-0.7.8/patchi/core/brain/learning.py +229 -0
  160. patchi-0.7.8/patchi/core/brain/orphaned_endpoints.py +313 -0
  161. patchi-0.7.8/patchi/core/brain/personas/__init__.py +648 -0
  162. patchi-0.7.8/patchi/core/brain/personas/base.py +349 -0
  163. patchi-0.7.8/patchi/core/brain/proactive.py +809 -0
  164. patchi-0.7.8/patchi/core/brain/project_context.py +121 -0
  165. patchi-0.7.8/patchi/core/brain/project_reader.py +521 -0
  166. patchi-0.7.8/patchi/core/brain/reasoning.py +269 -0
  167. patchi-0.7.8/patchi/core/brain/route_detector/__init__.py +15 -0
  168. patchi-0.7.8/patchi/core/brain/route_detector/base.py +31 -0
  169. patchi-0.7.8/patchi/core/brain/route_detector/csharp.py +209 -0
  170. patchi-0.7.8/patchi/core/brain/route_detector/file_based.py +81 -0
  171. patchi-0.7.8/patchi/core/brain/route_detector/go.py +152 -0
  172. patchi-0.7.8/patchi/core/brain/route_detector/java.py +195 -0
  173. patchi-0.7.8/patchi/core/brain/route_detector/javascript.py +197 -0
  174. patchi-0.7.8/patchi/core/brain/route_detector/php.py +158 -0
  175. patchi-0.7.8/patchi/core/brain/route_detector/python.py +193 -0
  176. patchi-0.7.8/patchi/core/brain/route_detector/registry.py +25 -0
  177. patchi-0.7.8/patchi/core/brain/route_detector/ruby.py +134 -0
  178. patchi-0.7.8/patchi/core/brain/route_detector/rust.py +216 -0
  179. patchi-0.7.8/patchi/core/brain/route_detector/swift.py +118 -0
  180. patchi-0.7.8/patchi/core/brain/route_mapper.py +265 -0
  181. patchi-0.7.8/patchi/core/brain/scanner.py +2223 -0
  182. patchi-0.7.8/patchi/core/brain/secrets.py +281 -0
  183. patchi-0.7.8/patchi/core/brain/symbol_graph.py +1955 -0
  184. patchi-0.7.8/patchi/core/brain/team.py +28 -0
  185. patchi-0.7.8/patchi/core/brain/trace_log.py +132 -0
  186. patchi-0.7.8/patchi/core/brain/type_checker/__init__.py +65 -0
  187. patchi-0.7.8/patchi/core/brain/type_checker/base.py +60 -0
  188. patchi-0.7.8/patchi/core/brain/type_checker/csharp.py +59 -0
  189. patchi-0.7.8/patchi/core/brain/type_checker/dart.py +59 -0
  190. patchi-0.7.8/patchi/core/brain/type_checker/go.py +81 -0
  191. patchi-0.7.8/patchi/core/brain/type_checker/java.py +75 -0
  192. patchi-0.7.8/patchi/core/brain/type_checker/kotlin.py +75 -0
  193. patchi-0.7.8/patchi/core/brain/type_checker/php.py +88 -0
  194. patchi-0.7.8/patchi/core/brain/type_checker/python.py +87 -0
  195. patchi-0.7.8/patchi/core/brain/type_checker/rust.py +81 -0
  196. patchi-0.7.8/patchi/core/brain/type_checker/swift.py +59 -0
  197. patchi-0.7.8/patchi/core/brain/type_checker/typescript.py +298 -0
  198. patchi-0.7.8/patchi/core/brain/understander.py +130 -0
  199. patchi-0.7.8/patchi/core/brain/verify.py +381 -0
  200. patchi-0.7.8/patchi/core/campaigns/data_flow_abuse.py +153 -0
  201. patchi-0.7.8/patchi/core/ci_bundle.py +104 -0
  202. patchi-0.7.8/patchi/core/config.py +311 -0
  203. patchi-0.7.8/patchi/core/constants.py +245 -0
  204. patchi-0.7.8/patchi/core/debug/__init__.py +25 -0
  205. patchi-0.7.8/patchi/core/debug/adapters/__init__.py +11 -0
  206. patchi-0.7.8/patchi/core/debug/adapters/codelldb.py +379 -0
  207. patchi-0.7.8/patchi/core/debug/adapters/node.py +222 -0
  208. patchi-0.7.8/patchi/core/debug/adapters/powershell.py +210 -0
  209. patchi-0.7.8/patchi/core/debug/adapters/python.py +244 -0
  210. patchi-0.7.8/patchi/core/debug/capture.py +210 -0
  211. patchi-0.7.8/patchi/core/debug/dap_client.py +268 -0
  212. patchi-0.7.8/patchi/core/detector/audit.py +194 -0
  213. patchi-0.7.8/patchi/core/detector/bus.py +226 -0
  214. patchi-0.7.8/patchi/core/detector/dispatcher.py +275 -0
  215. patchi-0.7.8/patchi/core/detector/event.py +254 -0
  216. patchi-0.7.8/patchi/core/detector/sigma_engine.py +378 -0
  217. patchi-0.7.8/patchi/core/detector/triage.py +289 -0
  218. patchi-0.7.8/patchi/core/export/sarif.py +113 -0
  219. patchi-0.7.8/patchi/core/fix/__init__.py +17 -0
  220. patchi-0.7.8/patchi/core/fix/applier.py +574 -0
  221. patchi-0.7.8/patchi/core/fix/base.py +510 -0
  222. patchi-0.7.8/patchi/core/fix/code_fixer.py +169 -0
  223. patchi-0.7.8/patchi/core/fix/dead_code_remover.py +131 -0
  224. patchi-0.7.8/patchi/core/fix/fix_agents.py +775 -0
  225. patchi-0.7.8/patchi/core/fix/patch.py +444 -0
  226. patchi-0.7.8/patchi/core/fix/risk_gate.py +383 -0
  227. patchi-0.7.8/patchi/core/fix/security_fixer.py +93 -0
  228. patchi-0.7.8/patchi/core/fuzz/sequence_fuzzer.py +162 -0
  229. patchi-0.7.8/patchi/core/fuzz/state_fuzzer.py +236 -0
  230. patchi-0.7.8/patchi/core/health.py +407 -0
  231. patchi-0.7.8/patchi/core/hosted/__init__.py +1 -0
  232. patchi-0.7.8/patchi/core/hosted/anomaly.py +298 -0
  233. patchi-0.7.8/patchi/core/hosted/audit_log.py +102 -0
  234. patchi-0.7.8/patchi/core/hosted/ip_reputation.py +169 -0
  235. patchi-0.7.8/patchi/core/hosted/log_parsers.py +251 -0
  236. patchi-0.7.8/patchi/core/hosted/tokens.py +127 -0
  237. patchi-0.7.8/patchi/core/hosted/watchlist.py +164 -0
  238. patchi-0.7.8/patchi/core/hosted/webhooks.py +156 -0
  239. patchi-0.7.8/patchi/core/memory.py +437 -0
  240. patchi-0.7.8/patchi/core/notifications/__init__.py +18 -0
  241. patchi-0.7.8/patchi/core/notifications/channels.py +192 -0
  242. patchi-0.7.8/patchi/core/notifications/digest.py +141 -0
  243. patchi-0.7.8/patchi/core/notifications/escalation.py +158 -0
  244. patchi-0.7.8/patchi/core/notifications/notifier.py +182 -0
  245. patchi-0.7.8/patchi/core/notifications/quiet_hours.py +69 -0
  246. patchi-0.7.8/patchi/core/queue.py +375 -0
  247. patchi-0.7.8/patchi/core/reliability/chaos.py +163 -0
  248. patchi-0.7.8/patchi/core/runtime/__init__.py +5 -0
  249. patchi-0.7.8/patchi/core/runtime/tracer.py +230 -0
  250. patchi-0.7.8/patchi/core/scan_bus.py +156 -0
  251. patchi-0.7.8/patchi/core/security/__init__.py +1 -0
  252. patchi-0.7.8/patchi/core/security/ai_validator.py +462 -0
  253. patchi-0.7.8/patchi/core/security/app_mapper.py +216 -0
  254. patchi-0.7.8/patchi/core/security/app_profile.py +464 -0
  255. patchi-0.7.8/patchi/core/security/auth_audit_agent.py +344 -0
  256. patchi-0.7.8/patchi/core/security/authz_agent.py +602 -0
  257. patchi-0.7.8/patchi/core/security/auto_fixer.py +660 -0
  258. patchi-0.7.8/patchi/core/security/bandit_agent.py +152 -0
  259. patchi-0.7.8/patchi/core/security/blast_radius.py +226 -0
  260. patchi-0.7.8/patchi/core/security/browser_tester.py +333 -0
  261. patchi-0.7.8/patchi/core/security/business_logic_agent.py +263 -0
  262. patchi-0.7.8/patchi/core/security/catch_block_auditor.py +395 -0
  263. patchi-0.7.8/patchi/core/security/cdn_cache_agent.py +357 -0
  264. patchi-0.7.8/patchi/core/security/chain_to_assurance.py +168 -0
  265. patchi-0.7.8/patchi/core/security/cloud_waf_detector.py +295 -0
  266. patchi-0.7.8/patchi/core/security/codeql_agent.py +233 -0
  267. patchi-0.7.8/patchi/core/security/compliance_agent.py +348 -0
  268. patchi-0.7.8/patchi/core/security/confidence_gate.py +423 -0
  269. patchi-0.7.8/patchi/core/security/container_scanner.py +282 -0
  270. patchi-0.7.8/patchi/core/security/crypto_agent.py +378 -0
  271. patchi-0.7.8/patchi/core/security/cve_monitor.py +262 -0
  272. patchi-0.7.8/patchi/core/security/dast_agent.py +865 -0
  273. patchi-0.7.8/patchi/core/security/defectdojo.py +238 -0
  274. patchi-0.7.8/patchi/core/security/defenders/block_ip.py +71 -0
  275. patchi-0.7.8/patchi/core/security/defenders/update_dependency.py +160 -0
  276. patchi-0.7.8/patchi/core/security/defense_layer.py +217 -0
  277. patchi-0.7.8/patchi/core/security/dependency_vulnerability_agent.py +616 -0
  278. patchi-0.7.8/patchi/core/security/detection_pipeline.py +289 -0
  279. patchi-0.7.8/patchi/core/security/dns_security_agent.py +497 -0
  280. patchi-0.7.8/patchi/core/security/domain_loader.py +1004 -0
  281. patchi-0.7.8/patchi/core/security/email_authentication_agent.py +417 -0
  282. patchi-0.7.8/patchi/core/security/env_var_validator.py +304 -0
  283. patchi-0.7.8/patchi/core/security/evidence.py +100 -0
  284. patchi-0.7.8/patchi/core/security/falco_runtime_agent.py +387 -0
  285. patchi-0.7.8/patchi/core/security/gated_finding.py +85 -0
  286. patchi-0.7.8/patchi/core/security/git_diff_activator.py +367 -0
  287. patchi-0.7.8/patchi/core/security/governance.py +208 -0
  288. patchi-0.7.8/patchi/core/security/history.py +315 -0
  289. patchi-0.7.8/patchi/core/security/iac_scanner.py +250 -0
  290. patchi-0.7.8/patchi/core/security/ignore_learner.py +453 -0
  291. patchi-0.7.8/patchi/core/security/injection_agent.py +319 -0
  292. patchi-0.7.8/patchi/core/security/insecure_randomness_agent.py +288 -0
  293. patchi-0.7.8/patchi/core/security/jwt_agent.py +453 -0
  294. patchi-0.7.8/patchi/core/security/kubernetes_agent.py +638 -0
  295. patchi-0.7.8/patchi/core/security/llm_security_agent.py +252 -0
  296. patchi-0.7.8/patchi/core/security/misconfig_agent.py +604 -0
  297. patchi-0.7.8/patchi/core/security/mobile_security_agent.py +474 -0
  298. patchi-0.7.8/patchi/core/security/network_agent.py +376 -0
  299. patchi-0.7.8/patchi/core/security/noise_filter.py +280 -0
  300. patchi-0.7.8/patchi/core/security/orchestrator.py +313 -0
  301. patchi-0.7.8/patchi/core/security/pattern_context.py +125 -0
  302. patchi-0.7.8/patchi/core/security/pattern_loader.py +101 -0
  303. patchi-0.7.8/patchi/core/security/pentest/ffuf_adapter.py +48 -0
  304. patchi-0.7.8/patchi/core/security/pentest/nuclei_adapter.py +50 -0
  305. patchi-0.7.8/patchi/core/security/plan_auditor.py +276 -0
  306. patchi-0.7.8/patchi/core/security/policy_engine.py +272 -0
  307. patchi-0.7.8/patchi/core/security/prechecks.py +172 -0
  308. patchi-0.7.8/patchi/core/security/precommit_hook.py +247 -0
  309. patchi-0.7.8/patchi/core/security/privacy_agent.py +361 -0
  310. patchi-0.7.8/patchi/core/security/push_notification_agent.py +417 -0
  311. patchi-0.7.8/patchi/core/security/pysa_agent.py +143 -0
  312. patchi-0.7.8/patchi/core/security/reasoning.py +442 -0
  313. patchi-0.7.8/patchi/core/security/red_team_agent.py +184 -0
  314. patchi-0.7.8/patchi/core/security/red_team_engine.py +1142 -0
  315. patchi-0.7.8/patchi/core/security/remediation.py +360 -0
  316. patchi-0.7.8/patchi/core/security/request_interceptor.py +294 -0
  317. patchi-0.7.8/patchi/core/security/runtime_validator.py +245 -0
  318. patchi-0.7.8/patchi/core/security/saml_sso_agent.py +401 -0
  319. patchi-0.7.8/patchi/core/security/sast_agent.py +213 -0
  320. patchi-0.7.8/patchi/core/security/sast_gate.py +95 -0
  321. patchi-0.7.8/patchi/core/security/scheduler.py +287 -0
  322. patchi-0.7.8/patchi/core/security/secrets_runtime_agent.py +434 -0
  323. patchi-0.7.8/patchi/core/security/security_agents.py +175 -0
  324. patchi-0.7.8/patchi/core/security/security_probe.py +762 -0
  325. patchi-0.7.8/patchi/core/security/security_taint.py +1005 -0
  326. patchi-0.7.8/patchi/core/security/sensitive_data_agent.py +271 -0
  327. patchi-0.7.8/patchi/core/security/service_mesh_agent.py +412 -0
  328. patchi-0.7.8/patchi/core/security/session_management_agent.py +245 -0
  329. patchi-0.7.8/patchi/core/security/ssrf_agent.py +422 -0
  330. patchi-0.7.8/patchi/core/security/supply_chain.py +449 -0
  331. patchi-0.7.8/patchi/core/security/threat_model_generator.py +378 -0
  332. patchi-0.7.8/patchi/core/security/tool_verify.py +173 -0
  333. patchi-0.7.8/patchi/core/security/websocket_security_agent.py +188 -0
  334. patchi-0.7.8/patchi/core/snapshot.py +242 -0
  335. patchi-0.7.8/patchi/core/tenant.py +386 -0
  336. patchi-0.7.8/patchi/core/testing/__init__.py +17 -0
  337. patchi-0.7.8/patchi/core/testing/_browser.py +147 -0
  338. patchi-0.7.8/patchi/core/testing/api_contract_agent.py +544 -0
  339. patchi-0.7.8/patchi/core/testing/app_discovery_agent.py +650 -0
  340. patchi-0.7.8/patchi/core/testing/app_launcher.py +184 -0
  341. patchi-0.7.8/patchi/core/testing/browser_test_agent.py +516 -0
  342. patchi-0.7.8/patchi/core/testing/e2e_flow_agent.py +354 -0
  343. patchi-0.7.8/patchi/core/testing/flake_detector_agent.py +292 -0
  344. patchi-0.7.8/patchi/core/testing/live_test_runner.py +304 -0
  345. patchi-0.7.8/patchi/core/testing/live_v2/browser_pool.py +349 -0
  346. patchi-0.7.8/patchi/core/testing/live_v2/browser_test_runner.py +313 -0
  347. patchi-0.7.8/patchi/core/testing/live_v2/runner.py +626 -0
  348. patchi-0.7.8/patchi/core/testing/live_v2/screenshot_manager.py +474 -0
  349. patchi-0.7.8/patchi/core/testing/live_v2/video_recorder.py +303 -0
  350. patchi-0.7.8/patchi/core/testing/regression_agent.py +302 -0
  351. patchi-0.7.8/patchi/core/testing/security_test_agent.py +253 -0
  352. patchi-0.7.8/patchi/core/testing/stress_test_agent.py +203 -0
  353. patchi-0.7.8/patchi/core/testing/test_agents.py +50 -0
  354. patchi-0.7.8/patchi/core/testing/test_config.py +194 -0
  355. patchi-0.7.8/patchi/core/testing/ui_accessibility_agent.py +324 -0
  356. patchi-0.7.8/patchi/core/testing/ui_button_agent.py +294 -0
  357. patchi-0.7.8/patchi/core/testing/ui_layout_agent.py +330 -0
  358. patchi-0.7.8/patchi/core/testing/unit_test_agent.py +1194 -0
  359. patchi-0.7.8/patchi/core/testing/visual_regression_agent.py +260 -0
  360. patchi-0.7.8/patchi/web/__init__.py +1 -0
  361. patchi-0.7.8/patchi/web/api/__init__.py +1 -0
  362. patchi-0.7.8/patchi/web/api/brain_map.py +114 -0
  363. patchi-0.7.8/patchi/web/api/charts.py +47 -0
  364. patchi-0.7.8/patchi/web/api/chat.py +223 -0
  365. patchi-0.7.8/patchi/web/api/cicd.py +576 -0
  366. patchi-0.7.8/patchi/web/api/dev_check.py +320 -0
  367. patchi-0.7.8/patchi/web/api/fix.py +134 -0
  368. patchi-0.7.8/patchi/web/api/guard.py +65 -0
  369. patchi-0.7.8/patchi/web/api/hosted.py +128 -0
  370. patchi-0.7.8/patchi/web/api/hosted_v2.py +234 -0
  371. patchi-0.7.8/patchi/web/api/live_testing.py +699 -0
  372. patchi-0.7.8/patchi/web/api/smart.py +111 -0
  373. patchi-0.7.8/patchi/web/api_legacy.py +2385 -0
  374. patchi-0.7.8/patchi/web/app.py +310 -0
  375. patchi-0.7.8/patchi/web/events.py +483 -0
  376. patchi-0.7.8/patchi/web/routes/__init__.py +1 -0
  377. patchi-0.7.8/patchi/web/routes/assurance.py +541 -0
  378. patchi-0.7.8/patchi/web/routes/brain.py +36 -0
  379. patchi-0.7.8/patchi/web/routes/charter.py +227 -0
  380. patchi-0.7.8/patchi/web/routes/chat.py +23 -0
  381. patchi-0.7.8/patchi/web/routes/dashboard.py +558 -0
  382. patchi-0.7.8/patchi/web/routes/dashboard_v2.py +402 -0
  383. patchi-0.7.8/patchi/web/routes/findings.py +330 -0
  384. patchi-0.7.8/patchi/web/routes/guard.py +35 -0
  385. patchi-0.7.8/patchi/web/routes/history.py +126 -0
  386. patchi-0.7.8/patchi/web/routes/landing.py +52 -0
  387. patchi-0.7.8/patchi/web/routes/live_testing.py +24 -0
  388. patchi-0.7.8/patchi/web/routes/review.py +57 -0
  389. patchi-0.7.8/patchi/web/routes/self_improvement.py +110 -0
  390. patchi-0.7.8/patchi/web/routes/settings.py +49 -0
  391. patchi-0.7.8/patchi/web/routes/tokens.py +29 -0
  392. patchi-0.7.8/patchi/web/spawn.py +139 -0
  393. patchi-0.7.8/patchi.egg-info/PKG-INFO +467 -0
  394. patchi-0.7.8/patchi.egg-info/SOURCES.txt +583 -0
  395. patchi-0.7.8/patchi.egg-info/entry_points.txt +3 -0
  396. patchi-0.7.8/pyproject.toml +177 -0
  397. patchi-0.7.8/setup.cfg +4 -0
  398. patchi-0.7.8/tests/test_agent_security.py +197 -0
  399. patchi-0.7.8/tests/test_ai_client.py +188 -0
  400. patchi-0.7.8/tests/test_app_profile.py +284 -0
  401. patchi-0.7.8/tests/test_applier.py +167 -0
  402. patchi-0.7.8/tests/test_ast_utils.py +582 -0
  403. patchi-0.7.8/tests/test_ast_utils_new.py +185 -0
  404. patchi-0.7.8/tests/test_attack_agent.py +399 -0
  405. patchi-0.7.8/tests/test_audit.py +160 -0
  406. patchi-0.7.8/tests/test_base.py +419 -0
  407. patchi-0.7.8/tests/test_blast_radius_v2.py +301 -0
  408. patchi-0.7.8/tests/test_brain_watcher.py +187 -0
  409. patchi-0.7.8/tests/test_charter.py +152 -0
  410. patchi-0.7.8/tests/test_config.py +204 -0
  411. patchi-0.7.8/tests/test_contract.py +160 -0
  412. patchi-0.7.8/tests/test_coordinator.py +235 -0
  413. patchi-0.7.8/tests/test_debug_capture.py +90 -0
  414. patchi-0.7.8/tests/test_debug_codelldb.py +56 -0
  415. patchi-0.7.8/tests/test_debug_node.py +75 -0
  416. patchi-0.7.8/tests/test_debug_powershell.py +79 -0
  417. patchi-0.7.8/tests/test_detector.py +264 -0
  418. patchi-0.7.8/tests/test_dispatcher.py +181 -0
  419. patchi-0.7.8/tests/test_doc_claim_agent.py +447 -0
  420. patchi-0.7.8/tests/test_domain_loader.py +482 -0
  421. patchi-0.7.8/tests/test_fix_agents.py +390 -0
  422. patchi-0.7.8/tests/test_framework.py +168 -0
  423. patchi-0.7.8/tests/test_freshness.py +106 -0
  424. patchi-0.7.8/tests/test_generated_suite.py +162 -0
  425. patchi-0.7.8/tests/test_governor_engine.py +457 -0
  426. patchi-0.7.8/tests/test_governor_integration.py +154 -0
  427. patchi-0.7.8/tests/test_governor_v2.py +503 -0
  428. patchi-0.7.8/tests/test_hosted_anomaly.py +157 -0
  429. patchi-0.7.8/tests/test_hosted_audit_log.py +80 -0
  430. patchi-0.7.8/tests/test_hosted_ip_reputation.py +80 -0
  431. patchi-0.7.8/tests/test_hosted_log_parsers.py +159 -0
  432. patchi-0.7.8/tests/test_hosted_tokens.py +98 -0
  433. patchi-0.7.8/tests/test_hosted_watchlist.py +96 -0
  434. patchi-0.7.8/tests/test_import_graph.py +233 -0
  435. patchi-0.7.8/tests/test_integration.py +233 -0
  436. patchi-0.7.8/tests/test_language_support.py +368 -0
  437. patchi-0.7.8/tests/test_layered_brain.py +227 -0
  438. patchi-0.7.8/tests/test_memory.py +253 -0
  439. patchi-0.7.8/tests/test_new_agents.py +1211 -0
  440. patchi-0.7.8/tests/test_new_features.py +365 -0
  441. patchi-0.7.8/tests/test_new_security_agents.py +285 -0
  442. patchi-0.7.8/tests/test_notifications.py +320 -0
  443. patchi-0.7.8/tests/test_patch.py +225 -0
  444. patchi-0.7.8/tests/test_proactive.py +148 -0
  445. patchi-0.7.8/tests/test_proactive_phase5.py +78 -0
  446. patchi-0.7.8/tests/test_queue.py +246 -0
  447. patchi-0.7.8/tests/test_realize_tools.py +142 -0
  448. patchi-0.7.8/tests/test_reasoning.py +101 -0
  449. patchi-0.7.8/tests/test_risk_gate.py +228 -0
  450. patchi-0.7.8/tests/test_route_mapper.py +244 -0
  451. patchi-0.7.8/tests/test_scanner.py +283 -0
  452. patchi-0.7.8/tests/test_scanners.py +713 -0
  453. patchi-0.7.8/tests/test_scheduler.py +93 -0
  454. patchi-0.7.8/tests/test_secrets.py +53 -0
  455. patchi-0.7.8/tests/test_security_config.py +29 -0
  456. patchi-0.7.8/tests/test_sigma_engine.py +178 -0
  457. patchi-0.7.8/tests/test_smart_agent.py +93 -0
  458. patchi-0.7.8/tests/test_snapshot.py +215 -0
  459. patchi-0.7.8/tests/test_test_agents.py +585 -0
  460. patchi-0.7.8/tests/test_tool_harness.py +476 -0
  461. patchi-0.7.8/tests/test_verify.py +102 -0
  462. patchi-0.7.8/tests/test_web.py +204 -0
  463. patchi-0.7.5/PKG-INFO +0 -315
  464. patchi-0.7.5/README.md +0 -254
  465. patchi-0.7.5/patchi/__init__.py +0 -1
  466. patchi-0.7.5/patchi/cli/commands/access_cmd.py +0 -65
  467. patchi-0.7.5/patchi/cli/commands/agents_cmd.py +0 -187
  468. patchi-0.7.5/patchi/cli/commands/ai_cmd.py +0 -308
  469. patchi-0.7.5/patchi/cli/commands/assure_cmd.py +0 -538
  470. patchi-0.7.5/patchi/cli/commands/audit_cmd.py +0 -286
  471. patchi-0.7.5/patchi/cli/commands/auto_cmd.py +0 -110
  472. patchi-0.7.5/patchi/cli/commands/blame_cmd.py +0 -53
  473. patchi-0.7.5/patchi/cli/commands/chains_cmd.py +0 -327
  474. patchi-0.7.5/patchi/cli/commands/charter_cmd.py +0 -173
  475. patchi-0.7.5/patchi/cli/commands/chat_cmd.py +0 -597
  476. patchi-0.7.5/patchi/cli/commands/check_cmd.py +0 -232
  477. patchi-0.7.5/patchi/cli/commands/cleanup_cmd.py +0 -328
  478. patchi-0.7.5/patchi/cli/commands/cockpit_cmd.py +0 -208
  479. patchi-0.7.5/patchi/cli/commands/commands_cmd.py +0 -160
  480. patchi-0.7.5/patchi/cli/commands/cross_repo_cmd.py +0 -113
  481. patchi-0.7.5/patchi/cli/commands/deps_cmd.py +0 -110
  482. patchi-0.7.5/patchi/cli/commands/dev_check_cmd.py +0 -342
  483. patchi-0.7.5/patchi/cli/commands/dev_cmd.py +0 -445
  484. patchi-0.7.5/patchi/cli/commands/doctor_cmd.py +0 -457
  485. patchi-0.7.5/patchi/cli/commands/findings_cmd.py +0 -187
  486. patchi-0.7.5/patchi/cli/commands/fix_cmd.py +0 -648
  487. patchi-0.7.5/patchi/cli/commands/fix_review_cmd.py +0 -273
  488. patchi-0.7.5/patchi/cli/commands/heatmap_cmd.py +0 -62
  489. patchi-0.7.5/patchi/cli/commands/help_cmd.py +0 -159
  490. patchi-0.7.5/patchi/cli/commands/hosted_cmd.py +0 -980
  491. patchi-0.7.5/patchi/cli/commands/init.py +0 -456
  492. patchi-0.7.5/patchi/cli/commands/key_cmd.py +0 -571
  493. patchi-0.7.5/patchi/cli/commands/learn_cmd.py +0 -140
  494. patchi-0.7.5/patchi/cli/commands/log_cmd.py +0 -57
  495. patchi-0.7.5/patchi/cli/commands/memory_cmd.py +0 -215
  496. patchi-0.7.5/patchi/cli/commands/model_cmd.py +0 -207
  497. patchi-0.7.5/patchi/cli/commands/notify_cmd.py +0 -213
  498. patchi-0.7.5/patchi/cli/commands/notify_prompts.py +0 -29
  499. patchi-0.7.5/patchi/cli/commands/patch_cmd.py +0 -231
  500. patchi-0.7.5/patchi/cli/commands/plan_cmd.py +0 -128
  501. patchi-0.7.5/patchi/cli/commands/queue_cmd.py +0 -152
  502. patchi-0.7.5/patchi/cli/commands/report_cmd.py +0 -416
  503. patchi-0.7.5/patchi/cli/commands/restrict_cmd.py +0 -127
  504. patchi-0.7.5/patchi/cli/commands/review_cmd.py +0 -225
  505. patchi-0.7.5/patchi/cli/commands/rules_cmd.py +0 -233
  506. patchi-0.7.5/patchi/cli/commands/scan_cmd.py +0 -1908
  507. patchi-0.7.5/patchi/cli/commands/settings_cmd.py +0 -45
  508. patchi-0.7.5/patchi/cli/commands/status_cmd.py +0 -679
  509. patchi-0.7.5/patchi/cli/commands/test_cmd.py +0 -1052
  510. patchi-0.7.5/patchi/cli/commands/trend_cmd.py +0 -296
  511. patchi-0.7.5/patchi/cli/commands/undo_cmd.py +0 -235
  512. patchi-0.7.5/patchi/cli/commands/update_cmd.py +0 -345
  513. patchi-0.7.5/patchi/cli/commands/verify_cmd.py +0 -56
  514. patchi-0.7.5/patchi/cli/commands/vr_cmd.py +0 -440
  515. patchi-0.7.5/patchi/cli/commands/watch_cmd.py +0 -304
  516. patchi-0.7.5/patchi/cli/commands/web_cmd.py +0 -114
  517. patchi-0.7.5/patchi/cli/console.py +0 -101
  518. patchi-0.7.5/patchi/cli/display/__init__.py +0 -1
  519. patchi-0.7.5/patchi/cli/display/live_audit.py +0 -269
  520. patchi-0.7.5/patchi/cli/display/live_progress.py +0 -169
  521. patchi-0.7.5/patchi/cli/framework.py +0 -241
  522. patchi-0.7.5/patchi/cli/logo.py +0 -128
  523. patchi-0.7.5/patchi/cli/main.py +0 -222
  524. patchi-0.7.5/patchi/cli/registry.py +0 -1171
  525. patchi-0.7.5/patchi/cli/style.py +0 -68
  526. patchi-0.7.5/patchi/cli/themes.py +0 -187
  527. patchi-0.7.5/patchi/cli/ux.py +0 -444
  528. patchi-0.7.5/patchi/core/agents/api_fuzzer_agent.py +0 -141
  529. patchi-0.7.5/patchi/core/agents/attack_agent.py +0 -242
  530. patchi-0.7.5/patchi/core/agents/base.py +0 -1012
  531. patchi-0.7.5/patchi/core/agents/bug_predictor_agent.py +0 -58
  532. patchi-0.7.5/patchi/core/agents/build_tool_validator.py +0 -150
  533. patchi-0.7.5/patchi/core/agents/cache.py +0 -192
  534. patchi-0.7.5/patchi/core/agents/chaos_agent.py +0 -133
  535. patchi-0.7.5/patchi/core/agents/cicd_generator.py +0 -240
  536. patchi-0.7.5/patchi/core/agents/comment_scanner.py +0 -280
  537. patchi-0.7.5/patchi/core/agents/coordinator.py +0 -858
  538. patchi-0.7.5/patchi/core/agents/core_scanner.py +0 -269
  539. patchi-0.7.5/patchi/core/agents/coverage_prioritizer.py +0 -181
  540. patchi-0.7.5/patchi/core/agents/dead_code_hygiene.py +0 -296
  541. patchi-0.7.5/patchi/core/agents/dead_code_scanner.py +0 -692
  542. patchi-0.7.5/patchi/core/agents/dependency_scanner.py +0 -725
  543. patchi-0.7.5/patchi/core/agents/doc_claim_agent.py +0 -573
  544. patchi-0.7.5/patchi/core/agents/duplicate_scanner.py +0 -568
  545. patchi-0.7.5/patchi/core/agents/env_scanner.py +0 -410
  546. patchi-0.7.5/patchi/core/agents/feature_flag_agent.py +0 -89
  547. patchi-0.7.5/patchi/core/agents/frontend_framework_agent.py +0 -133
  548. patchi-0.7.5/patchi/core/agents/goroutine_agent.py +0 -82
  549. patchi-0.7.5/patchi/core/agents/governor.py +0 -1972
  550. patchi-0.7.5/patchi/core/agents/i18n_agent.py +0 -95
  551. patchi-0.7.5/patchi/core/agents/license_compliance.py +0 -247
  552. patchi-0.7.5/patchi/core/agents/linking_agent.py +0 -251
  553. patchi-0.7.5/patchi/core/agents/modernization_agent.py +0 -84
  554. patchi-0.7.5/patchi/core/agents/mutation_agent.py +0 -174
  555. patchi-0.7.5/patchi/core/agents/nl_query_agent.py +0 -74
  556. patchi-0.7.5/patchi/core/agents/promise_rejection_agent.py +0 -100
  557. patchi-0.7.5/patchi/core/agents/refactoring_agent.py +0 -286
  558. patchi-0.7.5/patchi/core/agents/resource_leak_agent.py +0 -91
  559. patchi-0.7.5/patchi/core/agents/route_graph_scanner.py +0 -951
  560. patchi-0.7.5/patchi/core/agents/rust_unwrap_agent.py +0 -100
  561. patchi-0.7.5/patchi/core/agents/sbom_generator.py +0 -284
  562. patchi-0.7.5/patchi/core/agents/scanners.py +0 -67
  563. patchi-0.7.5/patchi/core/agents/side/build_agent.py +0 -65
  564. patchi-0.7.5/patchi/core/agents/side_file_scanner.py +0 -549
  565. patchi-0.7.5/patchi/core/agents/snapshot_drift_detector.py +0 -146
  566. patchi-0.7.5/patchi/core/agents/spa_route_inventory.py +0 -203
  567. patchi-0.7.5/patchi/core/agents/test_scanner.py +0 -442
  568. patchi-0.7.5/patchi/core/agents/tool_runner.py +0 -162
  569. patchi-0.7.5/patchi/core/agents/type_scanner.py +0 -168
  570. patchi-0.7.5/patchi/core/agents/ui_scanner.py +0 -558
  571. patchi-0.7.5/patchi/core/ai/__init__.py +0 -20
  572. patchi-0.7.5/patchi/core/ai/agent_audit.py +0 -153
  573. patchi-0.7.5/patchi/core/ai/agent_profiler.py +0 -277
  574. patchi-0.7.5/patchi/core/ai/client.py +0 -499
  575. patchi-0.7.5/patchi/core/ai/cost_tracker.py +0 -107
  576. patchi-0.7.5/patchi/core/ai/model_router.py +0 -318
  577. patchi-0.7.5/patchi/core/ai/orchestrator.py +0 -625
  578. patchi-0.7.5/patchi/core/ai/prompts.py +0 -681
  579. patchi-0.7.5/patchi/core/ai/smart.py +0 -302
  580. patchi-0.7.5/patchi/core/ai/tools/executor.py +0 -621
  581. patchi-0.7.5/patchi/core/ai/tools/realize.py +0 -1160
  582. patchi-0.7.5/patchi/core/ai/tools/registry.py +0 -1577
  583. patchi-0.7.5/patchi/core/assurance/graph.py +0 -342
  584. patchi-0.7.5/patchi/core/brain/ast_utils/__init__.py +0 -81
  585. patchi-0.7.5/patchi/core/brain/ast_utils/assignments.py +0 -219
  586. patchi-0.7.5/patchi/core/brain/ast_utils/calls.py +0 -139
  587. patchi-0.7.5/patchi/core/brain/ast_utils/config.py +0 -132
  588. patchi-0.7.5/patchi/core/brain/ast_utils/control_flow.py +0 -74
  589. patchi-0.7.5/patchi/core/brain/ast_utils/dead_symbols.py +0 -205
  590. patchi-0.7.5/patchi/core/brain/ast_utils/decorators.py +0 -108
  591. patchi-0.7.5/patchi/core/brain/ast_utils/helpers.py +0 -144
  592. patchi-0.7.5/patchi/core/brain/ast_utils/imports.py +0 -169
  593. patchi-0.7.5/patchi/core/brain/ast_utils/scan.py +0 -143
  594. patchi-0.7.5/patchi/core/brain/ast_utils/taint.py +0 -310
  595. patchi-0.7.5/patchi/core/brain/audit.py +0 -379
  596. patchi-0.7.5/patchi/core/brain/baseline.py +0 -195
  597. patchi-0.7.5/patchi/core/brain/blast_radius.py +0 -312
  598. patchi-0.7.5/patchi/core/brain/body_tags.py +0 -144
  599. patchi-0.7.5/patchi/core/brain/brain.py +0 -1161
  600. patchi-0.7.5/patchi/core/brain/brain_context.py +0 -393
  601. patchi-0.7.5/patchi/core/brain/brain_watcher.py +0 -340
  602. patchi-0.7.5/patchi/core/brain/charter.py +0 -473
  603. patchi-0.7.5/patchi/core/brain/classifier.py +0 -214
  604. patchi-0.7.5/patchi/core/brain/cockpit.py +0 -350
  605. patchi-0.7.5/patchi/core/brain/code_query.py +0 -710
  606. patchi-0.7.5/patchi/core/brain/contract.py +0 -889
  607. patchi-0.7.5/patchi/core/brain/contract_diff.py +0 -155
  608. patchi-0.7.5/patchi/core/brain/council.py +0 -800
  609. patchi-0.7.5/patchi/core/brain/cross_repo.py +0 -104
  610. patchi-0.7.5/patchi/core/brain/dead_code_tools.py +0 -157
  611. patchi-0.7.5/patchi/core/brain/doc_validator.py +0 -197
  612. patchi-0.7.5/patchi/core/brain/domain_activator.py +0 -2183
  613. patchi-0.7.5/patchi/core/brain/enriched_context.py +0 -220
  614. patchi-0.7.5/patchi/core/brain/file_corpus.py +0 -220
  615. patchi-0.7.5/patchi/core/brain/framework.py +0 -953
  616. patchi-0.7.5/patchi/core/brain/freshness.py +0 -273
  617. patchi-0.7.5/patchi/core/brain/git_aware.py +0 -206
  618. patchi-0.7.5/patchi/core/brain/heatmap.py +0 -104
  619. patchi-0.7.5/patchi/core/brain/ignore_parser.py +0 -153
  620. patchi-0.7.5/patchi/core/brain/import_graph.py +0 -486
  621. patchi-0.7.5/patchi/core/brain/layered_brain.py +0 -419
  622. patchi-0.7.5/patchi/core/brain/learning.py +0 -229
  623. patchi-0.7.5/patchi/core/brain/orphaned_endpoints.py +0 -313
  624. patchi-0.7.5/patchi/core/brain/personas/__init__.py +0 -648
  625. patchi-0.7.5/patchi/core/brain/personas/base.py +0 -349
  626. patchi-0.7.5/patchi/core/brain/proactive.py +0 -807
  627. patchi-0.7.5/patchi/core/brain/project_context.py +0 -121
  628. patchi-0.7.5/patchi/core/brain/project_reader.py +0 -521
  629. patchi-0.7.5/patchi/core/brain/reasoning.py +0 -269
  630. patchi-0.7.5/patchi/core/brain/route_detector/__init__.py +0 -15
  631. patchi-0.7.5/patchi/core/brain/route_detector/base.py +0 -31
  632. patchi-0.7.5/patchi/core/brain/route_detector/csharp.py +0 -209
  633. patchi-0.7.5/patchi/core/brain/route_detector/file_based.py +0 -81
  634. patchi-0.7.5/patchi/core/brain/route_detector/go.py +0 -152
  635. patchi-0.7.5/patchi/core/brain/route_detector/java.py +0 -195
  636. patchi-0.7.5/patchi/core/brain/route_detector/javascript.py +0 -197
  637. patchi-0.7.5/patchi/core/brain/route_detector/php.py +0 -158
  638. patchi-0.7.5/patchi/core/brain/route_detector/python.py +0 -193
  639. patchi-0.7.5/patchi/core/brain/route_detector/registry.py +0 -25
  640. patchi-0.7.5/patchi/core/brain/route_detector/ruby.py +0 -134
  641. patchi-0.7.5/patchi/core/brain/route_detector/rust.py +0 -216
  642. patchi-0.7.5/patchi/core/brain/route_detector/swift.py +0 -118
  643. patchi-0.7.5/patchi/core/brain/route_mapper.py +0 -265
  644. patchi-0.7.5/patchi/core/brain/scanner.py +0 -2136
  645. patchi-0.7.5/patchi/core/brain/secrets.py +0 -280
  646. patchi-0.7.5/patchi/core/brain/symbol_graph.py +0 -1955
  647. patchi-0.7.5/patchi/core/brain/team.py +0 -28
  648. patchi-0.7.5/patchi/core/brain/trace_log.py +0 -132
  649. patchi-0.7.5/patchi/core/brain/type_checker/__init__.py +0 -65
  650. patchi-0.7.5/patchi/core/brain/type_checker/base.py +0 -60
  651. patchi-0.7.5/patchi/core/brain/type_checker/csharp.py +0 -59
  652. patchi-0.7.5/patchi/core/brain/type_checker/dart.py +0 -59
  653. patchi-0.7.5/patchi/core/brain/type_checker/go.py +0 -81
  654. patchi-0.7.5/patchi/core/brain/type_checker/java.py +0 -75
  655. patchi-0.7.5/patchi/core/brain/type_checker/kotlin.py +0 -75
  656. patchi-0.7.5/patchi/core/brain/type_checker/php.py +0 -88
  657. patchi-0.7.5/patchi/core/brain/type_checker/python.py +0 -87
  658. patchi-0.7.5/patchi/core/brain/type_checker/rust.py +0 -81
  659. patchi-0.7.5/patchi/core/brain/type_checker/swift.py +0 -59
  660. patchi-0.7.5/patchi/core/brain/type_checker/typescript.py +0 -298
  661. patchi-0.7.5/patchi/core/brain/understander.py +0 -130
  662. patchi-0.7.5/patchi/core/brain/verify.py +0 -379
  663. patchi-0.7.5/patchi/core/campaigns/data_flow_abuse.py +0 -153
  664. patchi-0.7.5/patchi/core/ci_bundle.py +0 -104
  665. patchi-0.7.5/patchi/core/config.py +0 -311
  666. patchi-0.7.5/patchi/core/constants.py +0 -245
  667. patchi-0.7.5/patchi/core/debug/__init__.py +0 -25
  668. patchi-0.7.5/patchi/core/debug/adapters/__init__.py +0 -11
  669. patchi-0.7.5/patchi/core/debug/adapters/codelldb.py +0 -379
  670. patchi-0.7.5/patchi/core/debug/adapters/node.py +0 -222
  671. patchi-0.7.5/patchi/core/debug/adapters/powershell.py +0 -210
  672. patchi-0.7.5/patchi/core/debug/adapters/python.py +0 -244
  673. patchi-0.7.5/patchi/core/debug/capture.py +0 -210
  674. patchi-0.7.5/patchi/core/debug/dap_client.py +0 -268
  675. patchi-0.7.5/patchi/core/detector/audit.py +0 -194
  676. patchi-0.7.5/patchi/core/detector/bus.py +0 -226
  677. patchi-0.7.5/patchi/core/detector/dispatcher.py +0 -275
  678. patchi-0.7.5/patchi/core/detector/event.py +0 -254
  679. patchi-0.7.5/patchi/core/detector/sigma_engine.py +0 -378
  680. patchi-0.7.5/patchi/core/detector/triage.py +0 -289
  681. patchi-0.7.5/patchi/core/export/sarif.py +0 -113
  682. patchi-0.7.5/patchi/core/fix/__init__.py +0 -17
  683. patchi-0.7.5/patchi/core/fix/applier.py +0 -574
  684. patchi-0.7.5/patchi/core/fix/base.py +0 -510
  685. patchi-0.7.5/patchi/core/fix/code_fixer.py +0 -169
  686. patchi-0.7.5/patchi/core/fix/dead_code_remover.py +0 -131
  687. patchi-0.7.5/patchi/core/fix/fix_agents.py +0 -775
  688. patchi-0.7.5/patchi/core/fix/patch.py +0 -444
  689. patchi-0.7.5/patchi/core/fix/risk_gate.py +0 -383
  690. patchi-0.7.5/patchi/core/fix/security_fixer.py +0 -93
  691. patchi-0.7.5/patchi/core/fuzz/sequence_fuzzer.py +0 -162
  692. patchi-0.7.5/patchi/core/fuzz/state_fuzzer.py +0 -236
  693. patchi-0.7.5/patchi/core/health.py +0 -407
  694. patchi-0.7.5/patchi/core/hosted/__init__.py +0 -1
  695. patchi-0.7.5/patchi/core/hosted/anomaly.py +0 -298
  696. patchi-0.7.5/patchi/core/hosted/audit_log.py +0 -102
  697. patchi-0.7.5/patchi/core/hosted/ip_reputation.py +0 -169
  698. patchi-0.7.5/patchi/core/hosted/log_parsers.py +0 -251
  699. patchi-0.7.5/patchi/core/hosted/tokens.py +0 -127
  700. patchi-0.7.5/patchi/core/hosted/watchlist.py +0 -164
  701. patchi-0.7.5/patchi/core/hosted/webhooks.py +0 -156
  702. patchi-0.7.5/patchi/core/memory.py +0 -437
  703. patchi-0.7.5/patchi/core/notifications/__init__.py +0 -18
  704. patchi-0.7.5/patchi/core/notifications/channels.py +0 -192
  705. patchi-0.7.5/patchi/core/notifications/digest.py +0 -141
  706. patchi-0.7.5/patchi/core/notifications/escalation.py +0 -158
  707. patchi-0.7.5/patchi/core/notifications/notifier.py +0 -182
  708. patchi-0.7.5/patchi/core/notifications/quiet_hours.py +0 -69
  709. patchi-0.7.5/patchi/core/queue.py +0 -375
  710. patchi-0.7.5/patchi/core/reliability/chaos.py +0 -163
  711. patchi-0.7.5/patchi/core/runtime/__init__.py +0 -5
  712. patchi-0.7.5/patchi/core/runtime/tracer.py +0 -230
  713. patchi-0.7.5/patchi/core/scan_bus.py +0 -156
  714. patchi-0.7.5/patchi/core/security/__init__.py +0 -1
  715. patchi-0.7.5/patchi/core/security/ai_validator.py +0 -462
  716. patchi-0.7.5/patchi/core/security/app_mapper.py +0 -216
  717. patchi-0.7.5/patchi/core/security/app_profile.py +0 -464
  718. patchi-0.7.5/patchi/core/security/auth_audit_agent.py +0 -344
  719. patchi-0.7.5/patchi/core/security/authz_agent.py +0 -602
  720. patchi-0.7.5/patchi/core/security/auto_fixer.py +0 -660
  721. patchi-0.7.5/patchi/core/security/bandit_agent.py +0 -152
  722. patchi-0.7.5/patchi/core/security/blast_radius.py +0 -226
  723. patchi-0.7.5/patchi/core/security/browser_tester.py +0 -333
  724. patchi-0.7.5/patchi/core/security/business_logic_agent.py +0 -263
  725. patchi-0.7.5/patchi/core/security/catch_block_auditor.py +0 -395
  726. patchi-0.7.5/patchi/core/security/cdn_cache_agent.py +0 -357
  727. patchi-0.7.5/patchi/core/security/chain_to_assurance.py +0 -168
  728. patchi-0.7.5/patchi/core/security/cloud_waf_detector.py +0 -295
  729. patchi-0.7.5/patchi/core/security/codeql_agent.py +0 -233
  730. patchi-0.7.5/patchi/core/security/compliance_agent.py +0 -348
  731. patchi-0.7.5/patchi/core/security/confidence_gate.py +0 -423
  732. patchi-0.7.5/patchi/core/security/container_scanner.py +0 -282
  733. patchi-0.7.5/patchi/core/security/crypto_agent.py +0 -378
  734. patchi-0.7.5/patchi/core/security/cve_monitor.py +0 -262
  735. patchi-0.7.5/patchi/core/security/dast_agent.py +0 -865
  736. patchi-0.7.5/patchi/core/security/defectdojo.py +0 -238
  737. patchi-0.7.5/patchi/core/security/defenders/block_ip.py +0 -71
  738. patchi-0.7.5/patchi/core/security/defenders/update_dependency.py +0 -160
  739. patchi-0.7.5/patchi/core/security/defense_layer.py +0 -217
  740. patchi-0.7.5/patchi/core/security/dependency_vulnerability_agent.py +0 -616
  741. patchi-0.7.5/patchi/core/security/detection_pipeline.py +0 -289
  742. patchi-0.7.5/patchi/core/security/dns_security_agent.py +0 -497
  743. patchi-0.7.5/patchi/core/security/domain_loader.py +0 -1004
  744. patchi-0.7.5/patchi/core/security/email_authentication_agent.py +0 -417
  745. patchi-0.7.5/patchi/core/security/env_var_validator.py +0 -304
  746. patchi-0.7.5/patchi/core/security/evidence.py +0 -100
  747. patchi-0.7.5/patchi/core/security/falco_runtime_agent.py +0 -387
  748. patchi-0.7.5/patchi/core/security/gated_finding.py +0 -85
  749. patchi-0.7.5/patchi/core/security/git_diff_activator.py +0 -367
  750. patchi-0.7.5/patchi/core/security/governance.py +0 -208
  751. patchi-0.7.5/patchi/core/security/history.py +0 -315
  752. patchi-0.7.5/patchi/core/security/iac_scanner.py +0 -250
  753. patchi-0.7.5/patchi/core/security/ignore_learner.py +0 -416
  754. patchi-0.7.5/patchi/core/security/injection_agent.py +0 -319
  755. patchi-0.7.5/patchi/core/security/insecure_randomness_agent.py +0 -288
  756. patchi-0.7.5/patchi/core/security/jwt_agent.py +0 -453
  757. patchi-0.7.5/patchi/core/security/kubernetes_agent.py +0 -638
  758. patchi-0.7.5/patchi/core/security/llm_security_agent.py +0 -252
  759. patchi-0.7.5/patchi/core/security/misconfig_agent.py +0 -600
  760. patchi-0.7.5/patchi/core/security/mobile_security_agent.py +0 -474
  761. patchi-0.7.5/patchi/core/security/network_agent.py +0 -376
  762. patchi-0.7.5/patchi/core/security/noise_filter.py +0 -274
  763. patchi-0.7.5/patchi/core/security/orchestrator.py +0 -313
  764. patchi-0.7.5/patchi/core/security/pattern_context.py +0 -125
  765. patchi-0.7.5/patchi/core/security/pattern_loader.py +0 -101
  766. patchi-0.7.5/patchi/core/security/pentest/ffuf_adapter.py +0 -48
  767. patchi-0.7.5/patchi/core/security/pentest/nuclei_adapter.py +0 -50
  768. patchi-0.7.5/patchi/core/security/plan_auditor.py +0 -276
  769. patchi-0.7.5/patchi/core/security/policy_engine.py +0 -272
  770. patchi-0.7.5/patchi/core/security/prechecks.py +0 -172
  771. patchi-0.7.5/patchi/core/security/precommit_hook.py +0 -247
  772. patchi-0.7.5/patchi/core/security/privacy_agent.py +0 -361
  773. patchi-0.7.5/patchi/core/security/push_notification_agent.py +0 -417
  774. patchi-0.7.5/patchi/core/security/pysa_agent.py +0 -143
  775. patchi-0.7.5/patchi/core/security/reasoning.py +0 -442
  776. patchi-0.7.5/patchi/core/security/red_team_agent.py +0 -184
  777. patchi-0.7.5/patchi/core/security/red_team_engine.py +0 -1142
  778. patchi-0.7.5/patchi/core/security/remediation.py +0 -360
  779. patchi-0.7.5/patchi/core/security/request_interceptor.py +0 -294
  780. patchi-0.7.5/patchi/core/security/runtime_validator.py +0 -245
  781. patchi-0.7.5/patchi/core/security/saml_sso_agent.py +0 -401
  782. patchi-0.7.5/patchi/core/security/sast_agent.py +0 -213
  783. patchi-0.7.5/patchi/core/security/sast_gate.py +0 -95
  784. patchi-0.7.5/patchi/core/security/scheduler.py +0 -287
  785. patchi-0.7.5/patchi/core/security/secrets_runtime_agent.py +0 -476
  786. patchi-0.7.5/patchi/core/security/security_agents.py +0 -175
  787. patchi-0.7.5/patchi/core/security/security_probe.py +0 -762
  788. patchi-0.7.5/patchi/core/security/security_taint.py +0 -1005
  789. patchi-0.7.5/patchi/core/security/sensitive_data_agent.py +0 -271
  790. patchi-0.7.5/patchi/core/security/service_mesh_agent.py +0 -412
  791. patchi-0.7.5/patchi/core/security/session_management_agent.py +0 -245
  792. patchi-0.7.5/patchi/core/security/ssrf_agent.py +0 -422
  793. patchi-0.7.5/patchi/core/security/supply_chain.py +0 -449
  794. patchi-0.7.5/patchi/core/security/threat_model_generator.py +0 -378
  795. patchi-0.7.5/patchi/core/security/tool_verify.py +0 -173
  796. patchi-0.7.5/patchi/core/security/websocket_security_agent.py +0 -188
  797. patchi-0.7.5/patchi/core/snapshot.py +0 -242
  798. patchi-0.7.5/patchi/core/tenant.py +0 -386
  799. patchi-0.7.5/patchi/core/testing/__init__.py +0 -17
  800. patchi-0.7.5/patchi/core/testing/_browser.py +0 -147
  801. patchi-0.7.5/patchi/core/testing/api_contract_agent.py +0 -450
  802. patchi-0.7.5/patchi/core/testing/app_discovery_agent.py +0 -641
  803. patchi-0.7.5/patchi/core/testing/app_launcher.py +0 -184
  804. patchi-0.7.5/patchi/core/testing/browser_test_agent.py +0 -516
  805. patchi-0.7.5/patchi/core/testing/e2e_flow_agent.py +0 -354
  806. patchi-0.7.5/patchi/core/testing/flake_detector_agent.py +0 -292
  807. patchi-0.7.5/patchi/core/testing/live_test_runner.py +0 -304
  808. patchi-0.7.5/patchi/core/testing/live_v2/browser_pool.py +0 -349
  809. patchi-0.7.5/patchi/core/testing/live_v2/browser_test_runner.py +0 -313
  810. patchi-0.7.5/patchi/core/testing/live_v2/runner.py +0 -626
  811. patchi-0.7.5/patchi/core/testing/live_v2/screenshot_manager.py +0 -474
  812. patchi-0.7.5/patchi/core/testing/live_v2/video_recorder.py +0 -303
  813. patchi-0.7.5/patchi/core/testing/regression_agent.py +0 -302
  814. patchi-0.7.5/patchi/core/testing/security_test_agent.py +0 -253
  815. patchi-0.7.5/patchi/core/testing/stress_test_agent.py +0 -203
  816. patchi-0.7.5/patchi/core/testing/test_agents.py +0 -50
  817. patchi-0.7.5/patchi/core/testing/test_config.py +0 -194
  818. patchi-0.7.5/patchi/core/testing/ui_accessibility_agent.py +0 -324
  819. patchi-0.7.5/patchi/core/testing/ui_button_agent.py +0 -294
  820. patchi-0.7.5/patchi/core/testing/ui_layout_agent.py +0 -330
  821. patchi-0.7.5/patchi/core/testing/unit_test_agent.py +0 -1149
  822. patchi-0.7.5/patchi/core/testing/visual_regression_agent.py +0 -260
  823. patchi-0.7.5/patchi/web/__init__.py +0 -1
  824. patchi-0.7.5/patchi/web/api/__init__.py +0 -1
  825. patchi-0.7.5/patchi/web/api/brain_map.py +0 -114
  826. patchi-0.7.5/patchi/web/api/charts.py +0 -47
  827. patchi-0.7.5/patchi/web/api/chat.py +0 -224
  828. patchi-0.7.5/patchi/web/api/cicd.py +0 -576
  829. patchi-0.7.5/patchi/web/api/dev_check.py +0 -320
  830. patchi-0.7.5/patchi/web/api/fix.py +0 -134
  831. patchi-0.7.5/patchi/web/api/guard.py +0 -65
  832. patchi-0.7.5/patchi/web/api/hosted.py +0 -128
  833. patchi-0.7.5/patchi/web/api/hosted_v2.py +0 -234
  834. patchi-0.7.5/patchi/web/api/live_testing.py +0 -699
  835. patchi-0.7.5/patchi/web/api/smart.py +0 -111
  836. patchi-0.7.5/patchi/web/api_legacy.py +0 -2401
  837. patchi-0.7.5/patchi/web/app.py +0 -310
  838. patchi-0.7.5/patchi/web/events.py +0 -483
  839. patchi-0.7.5/patchi/web/routes/__init__.py +0 -1
  840. patchi-0.7.5/patchi/web/routes/assurance.py +0 -541
  841. patchi-0.7.5/patchi/web/routes/brain.py +0 -36
  842. patchi-0.7.5/patchi/web/routes/charter.py +0 -227
  843. patchi-0.7.5/patchi/web/routes/chat.py +0 -23
  844. patchi-0.7.5/patchi/web/routes/dashboard.py +0 -558
  845. patchi-0.7.5/patchi/web/routes/dashboard_v2.py +0 -402
  846. patchi-0.7.5/patchi/web/routes/findings.py +0 -330
  847. patchi-0.7.5/patchi/web/routes/guard.py +0 -35
  848. patchi-0.7.5/patchi/web/routes/history.py +0 -126
  849. patchi-0.7.5/patchi/web/routes/landing.py +0 -52
  850. patchi-0.7.5/patchi/web/routes/live_testing.py +0 -24
  851. patchi-0.7.5/patchi/web/routes/review.py +0 -57
  852. patchi-0.7.5/patchi/web/routes/self_improvement.py +0 -110
  853. patchi-0.7.5/patchi/web/routes/settings.py +0 -49
  854. patchi-0.7.5/patchi/web/routes/tokens.py +0 -29
  855. patchi-0.7.5/patchi/web/spawn.py +0 -139
  856. patchi-0.7.5/patchi.egg-info/PKG-INFO +0 -315
  857. patchi-0.7.5/patchi.egg-info/SOURCES.txt +0 -583
  858. patchi-0.7.5/pyproject.toml +0 -173
  859. patchi-0.7.5/setup.cfg +0 -4
  860. patchi-0.7.5/tests/test_agent_security.py +0 -197
  861. patchi-0.7.5/tests/test_ai_client.py +0 -189
  862. patchi-0.7.5/tests/test_app_profile.py +0 -284
  863. patchi-0.7.5/tests/test_applier.py +0 -167
  864. patchi-0.7.5/tests/test_ast_utils.py +0 -582
  865. patchi-0.7.5/tests/test_ast_utils_new.py +0 -185
  866. patchi-0.7.5/tests/test_attack_agent.py +0 -393
  867. patchi-0.7.5/tests/test_audit.py +0 -160
  868. patchi-0.7.5/tests/test_base.py +0 -419
  869. patchi-0.7.5/tests/test_blast_radius_v2.py +0 -301
  870. patchi-0.7.5/tests/test_brain_watcher.py +0 -187
  871. patchi-0.7.5/tests/test_charter.py +0 -152
  872. patchi-0.7.5/tests/test_config.py +0 -204
  873. patchi-0.7.5/tests/test_contract.py +0 -160
  874. patchi-0.7.5/tests/test_coordinator.py +0 -235
  875. patchi-0.7.5/tests/test_debug_capture.py +0 -90
  876. patchi-0.7.5/tests/test_debug_codelldb.py +0 -56
  877. patchi-0.7.5/tests/test_debug_node.py +0 -75
  878. patchi-0.7.5/tests/test_debug_powershell.py +0 -79
  879. patchi-0.7.5/tests/test_detector.py +0 -264
  880. patchi-0.7.5/tests/test_dispatcher.py +0 -181
  881. patchi-0.7.5/tests/test_doc_claim_agent.py +0 -447
  882. patchi-0.7.5/tests/test_domain_loader.py +0 -482
  883. patchi-0.7.5/tests/test_fix_agents.py +0 -390
  884. patchi-0.7.5/tests/test_framework.py +0 -168
  885. patchi-0.7.5/tests/test_freshness.py +0 -106
  886. patchi-0.7.5/tests/test_generated_suite.py +0 -162
  887. patchi-0.7.5/tests/test_governor_engine.py +0 -457
  888. patchi-0.7.5/tests/test_governor_integration.py +0 -154
  889. patchi-0.7.5/tests/test_governor_v2.py +0 -503
  890. patchi-0.7.5/tests/test_hosted_anomaly.py +0 -157
  891. patchi-0.7.5/tests/test_hosted_audit_log.py +0 -80
  892. patchi-0.7.5/tests/test_hosted_ip_reputation.py +0 -80
  893. patchi-0.7.5/tests/test_hosted_log_parsers.py +0 -159
  894. patchi-0.7.5/tests/test_hosted_tokens.py +0 -98
  895. patchi-0.7.5/tests/test_hosted_watchlist.py +0 -96
  896. patchi-0.7.5/tests/test_import_graph.py +0 -233
  897. patchi-0.7.5/tests/test_integration.py +0 -233
  898. patchi-0.7.5/tests/test_language_support.py +0 -368
  899. patchi-0.7.5/tests/test_layered_brain.py +0 -227
  900. patchi-0.7.5/tests/test_memory.py +0 -253
  901. patchi-0.7.5/tests/test_new_agents.py +0 -1211
  902. patchi-0.7.5/tests/test_new_features.py +0 -365
  903. patchi-0.7.5/tests/test_new_security_agents.py +0 -285
  904. patchi-0.7.5/tests/test_notifications.py +0 -320
  905. patchi-0.7.5/tests/test_patch.py +0 -225
  906. patchi-0.7.5/tests/test_proactive.py +0 -148
  907. patchi-0.7.5/tests/test_proactive_phase5.py +0 -78
  908. patchi-0.7.5/tests/test_queue.py +0 -246
  909. patchi-0.7.5/tests/test_realize_tools.py +0 -142
  910. patchi-0.7.5/tests/test_reasoning.py +0 -101
  911. patchi-0.7.5/tests/test_risk_gate.py +0 -228
  912. patchi-0.7.5/tests/test_route_mapper.py +0 -244
  913. patchi-0.7.5/tests/test_scanner.py +0 -283
  914. patchi-0.7.5/tests/test_scanners.py +0 -706
  915. patchi-0.7.5/tests/test_scheduler.py +0 -93
  916. patchi-0.7.5/tests/test_secrets.py +0 -53
  917. patchi-0.7.5/tests/test_security_config.py +0 -29
  918. patchi-0.7.5/tests/test_sigma_engine.py +0 -178
  919. patchi-0.7.5/tests/test_smart_agent.py +0 -93
  920. patchi-0.7.5/tests/test_snapshot.py +0 -215
  921. patchi-0.7.5/tests/test_test_agents.py +0 -585
  922. patchi-0.7.5/tests/test_tool_harness.py +0 -463
  923. patchi-0.7.5/tests/test_verify.py +0 -102
  924. patchi-0.7.5/tests/test_web.py +0 -204
  925. {patchi-0.7.5 → patchi-0.7.8}/LICENSE +0 -0
  926. {patchi-0.7.5 → patchi-0.7.8}/patchi/__main__.py +0 -0
  927. {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/__init__.py +0 -0
  928. {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/command_families.py +0 -0
  929. {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/__init__.py +0 -0
  930. {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/agent_stats_cmd.py +0 -0
  931. {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/link_cmd.py +0 -0
  932. {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/plugins_cmd.py +0 -0
  933. {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/quick_cmd.py +0 -0
  934. {patchi-0.7.5 → patchi-0.7.8}/patchi/cli/commands/ready_cmd.py +0 -0
  935. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/__init__.py +0 -0
  936. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/__init__.py +0 -0
  937. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/console_logging_agent.py +0 -0
  938. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/memory_profiler_agent.py +0 -0
  939. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/run_agent.py +0 -0
  940. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/side/__init__.py +0 -0
  941. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/side/format_agent.py +0 -0
  942. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/side/install_agent.py +0 -0
  943. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/agents/tool_health.py +0 -0
  944. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/ai/tool_executor.py +0 -0
  945. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/ai/tools/__init__.py +0 -0
  946. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/assurance/__init__.py +0 -0
  947. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/assurance/builder.py +0 -0
  948. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/assurance/invariants.py +0 -0
  949. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/atomic.py +0 -0
  950. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/__init__.py +0 -0
  951. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/api_abuse.py +0 -0
  952. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/auth_bypass.py +0 -0
  953. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/base.py +0 -0
  954. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/business_logic.py +0 -0
  955. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/planner.py +0 -0
  956. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/priv_escalation.py +0 -0
  957. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/attackers/recon.py +0 -0
  958. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/brain/__init__.py +0 -0
  959. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/brain/languages.py +0 -0
  960. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/brain/personas/bad_user.py +0 -0
  961. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/campaigns/__init__.py +0 -0
  962. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/campaigns/base.py +0 -0
  963. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/campaigns/orchestrator.py +0 -0
  964. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/campaigns/state_transitions.py +0 -0
  965. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/detector/__init__.py +0 -0
  966. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/fix/verify_loop.py +0 -0
  967. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/fuzz/__init__.py +0 -0
  968. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/fuzz/corpus.py +0 -0
  969. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/fuzz/input_fuzzer.py +0 -0
  970. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/hosted/compliance_report.py +0 -0
  971. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/__init__.py +0 -0
  972. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzer.py +0 -0
  973. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzers/__init__.py +0 -0
  974. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzers/dead_code_analyzer.py +0 -0
  975. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzers/secret_scanner.py +0 -0
  976. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/analyzers/todo_scanner.py +0 -0
  977. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/plugins/registry.py +0 -0
  978. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/reliability/__init__.py +0 -0
  979. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/reliability/fault_injector.py +0 -0
  980. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/reliability/idempotency.py +0 -0
  981. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/reliability/recovery.py +0 -0
  982. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/attack_feedback.py +0 -0
  983. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/attack_scenarios/__init__.py +0 -0
  984. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/attack_tree.py +0 -0
  985. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/auto_fix_proactive.py +0 -0
  986. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/auto_ticket.py +0 -0
  987. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/chain_analyzer.py +0 -0
  988. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/charter.py +0 -0
  989. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/__init__.py +0 -0
  990. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/auth_middleware.py +0 -0
  991. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/base.py +0 -0
  992. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/block_ws_origin.py +0 -0
  993. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/crypto_fix.py +0 -0
  994. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/enforce_rate_limit.py +0 -0
  995. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/fix_code.py +0 -0
  996. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/invalidate_session.py +0 -0
  997. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/patch_config.py +0 -0
  998. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/rotate_secret.py +0 -0
  999. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/defenders/suspend_account.py +0 -0
  1000. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/domain_activator_v2.py +0 -0
  1001. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/domains/__init__.py +0 -0
  1002. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/fix-playbooks/__init__.py +0 -0
  1003. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/gradual_gate.py +0 -0
  1004. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/ignore_expiry.py +0 -0
  1005. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/intent_analyzer.py +0 -0
  1006. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/layer2_orchestrator.py +0 -0
  1007. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/__init__.py +0 -0
  1008. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/base.py +0 -0
  1009. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/dalfox_adapter.py +0 -0
  1010. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/registry.py +0 -0
  1011. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/shannon_adapter.py +0 -0
  1012. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/sqlmap_adapter.py +0 -0
  1013. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/pentest/zap_adapter.py +0 -0
  1014. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/security_config.py +0 -0
  1015. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/threat_model_updater.py +0 -0
  1016. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/security/tool_adapters.py +0 -0
  1017. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/testing/ads_agent.py +0 -0
  1018. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/testing/gate.py +0 -0
  1019. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/testing/live_v2/__init__.py +0 -0
  1020. {patchi-0.7.5 → patchi-0.7.8}/patchi/core/testing/live_v2/stress_orchestrator.py +0 -0
  1021. {patchi-0.7.5 → patchi-0.7.8}/patchi/web/api/dast_evidence.py +0 -0
  1022. {patchi-0.7.5 → patchi-0.7.8}/patchi/web/api/scan.py +0 -0
  1023. {patchi-0.7.5 → patchi-0.7.8}/patchi/web/api/tenant.py +0 -0
  1024. {patchi-0.7.5 → patchi-0.7.8}/patchi/web/api/tools.py +0 -0
  1025. {patchi-0.7.5 → patchi-0.7.8}/patchi/web/ws.py +0 -0
  1026. {patchi-0.7.5 → patchi-0.7.8}/patchi.egg-info/dependency_links.txt +0 -0
  1027. {patchi-0.7.5 → patchi-0.7.8}/patchi.egg-info/requires.txt +0 -0
  1028. {patchi-0.7.5 → patchi-0.7.8}/patchi.egg-info/top_level.txt +0 -0
  1029. {patchi-0.7.5 → patchi-0.7.8}/tests/test_assurance.py +0 -0
  1030. {patchi-0.7.5 → patchi-0.7.8}/tests/test_brain_map_views.py +0 -0
  1031. {patchi-0.7.5 → patchi-0.7.8}/tests/test_chain_engine.py +0 -0
  1032. {patchi-0.7.5 → patchi-0.7.8}/tests/test_chaos_engineering.py +0 -0
  1033. {patchi-0.7.5 → patchi-0.7.8}/tests/test_ci_bundle.py +0 -0
  1034. {patchi-0.7.5 → patchi-0.7.8}/tests/test_corpus_noise.py +0 -0
  1035. {patchi-0.7.5 → patchi-0.7.8}/tests/test_differential.py +0 -0
  1036. {patchi-0.7.5 → patchi-0.7.8}/tests/test_fp_triage.py +0 -0
  1037. {patchi-0.7.5 → patchi-0.7.8}/tests/test_hosted_mode.py +0 -0
  1038. {patchi-0.7.5 → patchi-0.7.8}/tests/test_ignore_learner.py +0 -0
  1039. {patchi-0.7.5 → patchi-0.7.8}/tests/test_noise_reduction.py +0 -0
  1040. {patchi-0.7.5 → patchi-0.7.8}/tests/test_p3_agents.py +0 -0
  1041. {patchi-0.7.5 → patchi-0.7.8}/tests/test_rebuilt_modules.py +0 -0
  1042. {patchi-0.7.5 → patchi-0.7.8}/tests/test_runtime_crash_scanner.py +0 -0
  1043. {patchi-0.7.5 → patchi-0.7.8}/tests/test_scan_bus.py +0 -0
  1044. {patchi-0.7.5 → patchi-0.7.8}/tests/test_v2_agent_audit.py +0 -0
  1045. {patchi-0.7.5 → patchi-0.7.8}/tests/test_v2_smoke.py +0 -0
  1046. {patchi-0.7.5 → patchi-0.7.8}/tests/test_verify_loop.py +0 -0
  1047. {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>