argus-review-code 0.1.0__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 (555) hide show
  1. argus_review_code-0.1.0/LICENSE +202 -0
  2. argus_review_code-0.1.0/NOTICE +16 -0
  3. argus_review_code-0.1.0/PKG-INFO +426 -0
  4. argus_review_code-0.1.0/README.md +392 -0
  5. argus_review_code-0.1.0/argus_review/__init__.py +0 -0
  6. argus_review_code-0.1.0/argus_review/cli/__init__.py +0 -0
  7. argus_review_code-0.1.0/argus_review/cli/commands/__init__.py +0 -0
  8. argus_review_code-0.1.0/argus_review/cli/commands/run_clear_inline_review.py +6 -0
  9. argus_review_code-0.1.0/argus_review/cli/commands/run_clear_summary_review.py +6 -0
  10. argus_review_code-0.1.0/argus_review/cli/commands/run_context_review.py +7 -0
  11. argus_review_code-0.1.0/argus_review/cli/commands/run_inline_reply_review.py +7 -0
  12. argus_review_code-0.1.0/argus_review/cli/commands/run_inline_review.py +7 -0
  13. argus_review_code-0.1.0/argus_review/cli/commands/run_review.py +8 -0
  14. argus_review_code-0.1.0/argus_review/cli/commands/run_summary_reply_review.py +7 -0
  15. argus_review_code-0.1.0/argus_review/cli/commands/run_summary_review.py +7 -0
  16. argus_review_code-0.1.0/argus_review/cli/main.py +97 -0
  17. argus_review_code-0.1.0/argus_review/clients/__init__.py +0 -0
  18. argus_review_code-0.1.0/argus_review/clients/azure_devops/__init__.py +0 -0
  19. argus_review_code-0.1.0/argus_review/clients/azure_devops/client.py +39 -0
  20. argus_review_code-0.1.0/argus_review/clients/azure_devops/pr/__init__.py +0 -0
  21. argus_review_code-0.1.0/argus_review/clients/azure_devops/pr/client.py +253 -0
  22. argus_review_code-0.1.0/argus_review/clients/azure_devops/pr/schema/__init__.py +0 -0
  23. argus_review_code-0.1.0/argus_review/clients/azure_devops/pr/schema/files.py +51 -0
  24. argus_review_code-0.1.0/argus_review/clients/azure_devops/pr/schema/pull_request.py +38 -0
  25. argus_review_code-0.1.0/argus_review/clients/azure_devops/pr/schema/threads.py +108 -0
  26. argus_review_code-0.1.0/argus_review/clients/azure_devops/pr/schema/user.py +12 -0
  27. argus_review_code-0.1.0/argus_review/clients/azure_devops/pr/types.py +66 -0
  28. argus_review_code-0.1.0/argus_review/clients/azure_devops/schema.py +8 -0
  29. argus_review_code-0.1.0/argus_review/clients/azure_devops/tools.py +40 -0
  30. argus_review_code-0.1.0/argus_review/clients/azure_openai/__init__.py +0 -0
  31. argus_review_code-0.1.0/argus_review/clients/azure_openai/client.py +61 -0
  32. argus_review_code-0.1.0/argus_review/clients/azure_openai/schema.py +57 -0
  33. argus_review_code-0.1.0/argus_review/clients/azure_openai/types.py +8 -0
  34. argus_review_code-0.1.0/argus_review/clients/bedrock/__init__.py +0 -0
  35. argus_review_code-0.1.0/argus_review/clients/bedrock/client.py +78 -0
  36. argus_review_code-0.1.0/argus_review/clients/bedrock/schema.py +46 -0
  37. argus_review_code-0.1.0/argus_review/clients/bedrock/types.py +8 -0
  38. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/__init__.py +0 -0
  39. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/client.py +38 -0
  40. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/pr/__init__.py +0 -0
  41. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/pr/client.py +192 -0
  42. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/pr/schema/__init__.py +0 -0
  43. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/pr/schema/comments.py +63 -0
  44. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/pr/schema/files.py +30 -0
  45. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/pr/schema/pull_request.py +34 -0
  46. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/pr/schema/user.py +7 -0
  47. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/pr/types.py +53 -0
  48. argus_review_code-0.1.0/argus_review/clients/bitbucket_cloud/tools.py +6 -0
  49. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/__init__.py +0 -0
  50. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/client.py +38 -0
  51. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/pr/__init__.py +0 -0
  52. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/pr/client.py +194 -0
  53. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/pr/schema/__init__.py +0 -0
  54. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/pr/schema/activities.py +29 -0
  55. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/pr/schema/changes.py +36 -0
  56. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/pr/schema/comments.py +37 -0
  57. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/pr/schema/pull_request.py +48 -0
  58. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/pr/schema/user.py +13 -0
  59. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/pr/types.py +53 -0
  60. argus_review_code-0.1.0/argus_review/clients/bitbucket_server/tools.py +6 -0
  61. argus_review_code-0.1.0/argus_review/clients/claude/__init__.py +0 -0
  62. argus_review_code-0.1.0/argus_review/clients/claude/client.py +52 -0
  63. argus_review_code-0.1.0/argus_review/clients/claude/schema.py +44 -0
  64. argus_review_code-0.1.0/argus_review/clients/claude/types.py +8 -0
  65. argus_review_code-0.1.0/argus_review/clients/gemini/__init__.py +0 -0
  66. argus_review_code-0.1.0/argus_review/clients/gemini/client.py +54 -0
  67. argus_review_code-0.1.0/argus_review/clients/gemini/schema.py +78 -0
  68. argus_review_code-0.1.0/argus_review/clients/gemini/types.py +8 -0
  69. argus_review_code-0.1.0/argus_review/clients/gitea/__init__.py +0 -0
  70. argus_review_code-0.1.0/argus_review/clients/gitea/client.py +38 -0
  71. argus_review_code-0.1.0/argus_review/clients/gitea/pr/__init__.py +0 -0
  72. argus_review_code-0.1.0/argus_review/clients/gitea/pr/client.py +237 -0
  73. argus_review_code-0.1.0/argus_review/clients/gitea/pr/schema/__init__.py +0 -0
  74. argus_review_code-0.1.0/argus_review/clients/gitea/pr/schema/comments.py +35 -0
  75. argus_review_code-0.1.0/argus_review/clients/gitea/pr/schema/files.py +16 -0
  76. argus_review_code-0.1.0/argus_review/clients/gitea/pr/schema/pull_request.py +18 -0
  77. argus_review_code-0.1.0/argus_review/clients/gitea/pr/schema/reviews.py +56 -0
  78. argus_review_code-0.1.0/argus_review/clients/gitea/pr/schema/user.py +6 -0
  79. argus_review_code-0.1.0/argus_review/clients/gitea/pr/types.py +51 -0
  80. argus_review_code-0.1.0/argus_review/clients/gitea/tools.py +6 -0
  81. argus_review_code-0.1.0/argus_review/clients/github/__init__.py +0 -0
  82. argus_review_code-0.1.0/argus_review/clients/github/client.py +38 -0
  83. argus_review_code-0.1.0/argus_review/clients/github/pr/__init__.py +0 -0
  84. argus_review_code-0.1.0/argus_review/clients/github/pr/client.py +219 -0
  85. argus_review_code-0.1.0/argus_review/clients/github/pr/schema/__init__.py +0 -0
  86. argus_review_code-0.1.0/argus_review/clients/github/pr/schema/comments.py +59 -0
  87. argus_review_code-0.1.0/argus_review/clients/github/pr/schema/files.py +17 -0
  88. argus_review_code-0.1.0/argus_review/clients/github/pr/schema/pull_request.py +27 -0
  89. argus_review_code-0.1.0/argus_review/clients/github/pr/schema/user.py +6 -0
  90. argus_review_code-0.1.0/argus_review/clients/github/pr/types.py +60 -0
  91. argus_review_code-0.1.0/argus_review/clients/github/tools.py +6 -0
  92. argus_review_code-0.1.0/argus_review/clients/gitlab/__init__.py +0 -0
  93. argus_review_code-0.1.0/argus_review/clients/gitlab/client.py +38 -0
  94. argus_review_code-0.1.0/argus_review/clients/gitlab/mr/__init__.py +0 -0
  95. argus_review_code-0.1.0/argus_review/clients/gitlab/mr/client.py +196 -0
  96. argus_review_code-0.1.0/argus_review/clients/gitlab/mr/schema/__init__.py +0 -0
  97. argus_review_code-0.1.0/argus_review/clients/gitlab/mr/schema/changes.py +31 -0
  98. argus_review_code-0.1.0/argus_review/clients/gitlab/mr/schema/discussions.py +38 -0
  99. argus_review_code-0.1.0/argus_review/clients/gitlab/mr/schema/notes.py +29 -0
  100. argus_review_code-0.1.0/argus_review/clients/gitlab/mr/schema/position.py +13 -0
  101. argus_review_code-0.1.0/argus_review/clients/gitlab/mr/schema/user.py +7 -0
  102. argus_review_code-0.1.0/argus_review/clients/gitlab/mr/types.py +46 -0
  103. argus_review_code-0.1.0/argus_review/clients/gitlab/tools.py +5 -0
  104. argus_review_code-0.1.0/argus_review/clients/ollama/__init__.py +0 -0
  105. argus_review_code-0.1.0/argus_review/clients/ollama/client.py +48 -0
  106. argus_review_code-0.1.0/argus_review/clients/ollama/schema.py +48 -0
  107. argus_review_code-0.1.0/argus_review/clients/ollama/types.py +8 -0
  108. argus_review_code-0.1.0/argus_review/clients/openai/__init__.py +0 -0
  109. argus_review_code-0.1.0/argus_review/clients/openai/v1/__init__.py +0 -0
  110. argus_review_code-0.1.0/argus_review/clients/openai/v1/client.py +50 -0
  111. argus_review_code-0.1.0/argus_review/clients/openai/v1/schema.py +38 -0
  112. argus_review_code-0.1.0/argus_review/clients/openai/v1/types.py +8 -0
  113. argus_review_code-0.1.0/argus_review/clients/openai/v2/__init__.py +0 -0
  114. argus_review_code-0.1.0/argus_review/clients/openai/v2/client.py +53 -0
  115. argus_review_code-0.1.0/argus_review/clients/openai/v2/schema.py +48 -0
  116. argus_review_code-0.1.0/argus_review/clients/openai/v2/types.py +11 -0
  117. argus_review_code-0.1.0/argus_review/clients/openai_compatible/__init__.py +0 -0
  118. argus_review_code-0.1.0/argus_review/clients/openai_compatible/client.py +45 -0
  119. argus_review_code-0.1.0/argus_review/clients/openrouter/__init__.py +0 -0
  120. argus_review_code-0.1.0/argus_review/clients/openrouter/client.py +57 -0
  121. argus_review_code-0.1.0/argus_review/clients/openrouter/schema.py +36 -0
  122. argus_review_code-0.1.0/argus_review/clients/openrouter/types.py +11 -0
  123. argus_review_code-0.1.0/argus_review/config.py +68 -0
  124. argus_review_code-0.1.0/argus_review/libs/__init__.py +0 -0
  125. argus_review_code-0.1.0/argus_review/libs/asynchronous/__init__.py +0 -0
  126. argus_review_code-0.1.0/argus_review/libs/asynchronous/gather.py +24 -0
  127. argus_review_code-0.1.0/argus_review/libs/aws/__init__.py +0 -0
  128. argus_review_code-0.1.0/argus_review/libs/aws/signv4.py +198 -0
  129. argus_review_code-0.1.0/argus_review/libs/config/__init__.py +0 -0
  130. argus_review_code-0.1.0/argus_review/libs/config/agent.py +20 -0
  131. argus_review_code-0.1.0/argus_review/libs/config/artifacts.py +14 -0
  132. argus_review_code-0.1.0/argus_review/libs/config/base.py +24 -0
  133. argus_review_code-0.1.0/argus_review/libs/config/conventions.py +72 -0
  134. argus_review_code-0.1.0/argus_review/libs/config/core.py +5 -0
  135. argus_review_code-0.1.0/argus_review/libs/config/http.py +24 -0
  136. argus_review_code-0.1.0/argus_review/libs/config/llm/__init__.py +0 -0
  137. argus_review_code-0.1.0/argus_review/libs/config/llm/azure_openai.py +10 -0
  138. argus_review_code-0.1.0/argus_review/libs/config/llm/base.py +114 -0
  139. argus_review_code-0.1.0/argus_review/libs/config/llm/bedrock.py +13 -0
  140. argus_review_code-0.1.0/argus_review/libs/config/llm/claude.py +10 -0
  141. argus_review_code-0.1.0/argus_review/libs/config/llm/gemini.py +10 -0
  142. argus_review_code-0.1.0/argus_review/libs/config/llm/meta.py +7 -0
  143. argus_review_code-0.1.0/argus_review/libs/config/llm/nine_router.py +18 -0
  144. argus_review_code-0.1.0/argus_review/libs/config/llm/ollama.py +15 -0
  145. argus_review_code-0.1.0/argus_review/libs/config/llm/openai.py +14 -0
  146. argus_review_code-0.1.0/argus_review/libs/config/llm/openai_compatible.py +24 -0
  147. argus_review_code-0.1.0/argus_review/libs/config/llm/openrouter.py +12 -0
  148. argus_review_code-0.1.0/argus_review/libs/config/logger.py +17 -0
  149. argus_review_code-0.1.0/argus_review/libs/config/prompt.py +176 -0
  150. argus_review_code-0.1.0/argus_review/libs/config/review.py +39 -0
  151. argus_review_code-0.1.0/argus_review/libs/config/vcs/__init__.py +0 -0
  152. argus_review_code-0.1.0/argus_review/libs/config/vcs/azure_devops.py +23 -0
  153. argus_review_code-0.1.0/argus_review/libs/config/vcs/base.py +70 -0
  154. argus_review_code-0.1.0/argus_review/libs/config/vcs/bitbucket_cloud.py +13 -0
  155. argus_review_code-0.1.0/argus_review/libs/config/vcs/bitbucket_server.py +13 -0
  156. argus_review_code-0.1.0/argus_review/libs/config/vcs/gitea.py +13 -0
  157. argus_review_code-0.1.0/argus_review/libs/config/vcs/github.py +13 -0
  158. argus_review_code-0.1.0/argus_review/libs/config/vcs/gitlab.py +12 -0
  159. argus_review_code-0.1.0/argus_review/libs/config/vcs/pagination.py +6 -0
  160. argus_review_code-0.1.0/argus_review/libs/constants/__init__.py +0 -0
  161. argus_review_code-0.1.0/argus_review/libs/constants/llm_provider.py +19 -0
  162. argus_review_code-0.1.0/argus_review/libs/constants/vcs_provider.py +10 -0
  163. argus_review_code-0.1.0/argus_review/libs/crypto/__init__.py +0 -0
  164. argus_review_code-0.1.0/argus_review/libs/crypto/sha.py +14 -0
  165. argus_review_code-0.1.0/argus_review/libs/diff/__init__.py +0 -0
  166. argus_review_code-0.1.0/argus_review/libs/diff/models.py +100 -0
  167. argus_review_code-0.1.0/argus_review/libs/diff/parser.py +111 -0
  168. argus_review_code-0.1.0/argus_review/libs/diff/tools.py +24 -0
  169. argus_review_code-0.1.0/argus_review/libs/http/__init__.py +0 -0
  170. argus_review_code-0.1.0/argus_review/libs/http/authentication/__init__.py +0 -0
  171. argus_review_code-0.1.0/argus_review/libs/http/authentication/basic.py +5 -0
  172. argus_review_code-0.1.0/argus_review/libs/http/client.py +31 -0
  173. argus_review_code-0.1.0/argus_review/libs/http/event_hooks/__init__.py +0 -0
  174. argus_review_code-0.1.0/argus_review/libs/http/event_hooks/base.py +13 -0
  175. argus_review_code-0.1.0/argus_review/libs/http/event_hooks/logger.py +20 -0
  176. argus_review_code-0.1.0/argus_review/libs/http/handlers.py +34 -0
  177. argus_review_code-0.1.0/argus_review/libs/http/paginate.py +94 -0
  178. argus_review_code-0.1.0/argus_review/libs/http/transports/__init__.py +0 -0
  179. argus_review_code-0.1.0/argus_review/libs/http/transports/retry.py +51 -0
  180. argus_review_code-0.1.0/argus_review/libs/json.py +16 -0
  181. argus_review_code-0.1.0/argus_review/libs/llm/__init__.py +0 -0
  182. argus_review_code-0.1.0/argus_review/libs/llm/output_json_parser.py +60 -0
  183. argus_review_code-0.1.0/argus_review/libs/logger.py +19 -0
  184. argus_review_code-0.1.0/argus_review/libs/resources.py +24 -0
  185. argus_review_code-0.1.0/argus_review/libs/template/__init__.py +0 -0
  186. argus_review_code-0.1.0/argus_review/libs/template/render.py +13 -0
  187. argus_review_code-0.1.0/argus_review/libs/text.py +6 -0
  188. argus_review_code-0.1.0/argus_review/prompts/__init__.py +0 -0
  189. argus_review_code-0.1.0/argus_review/prompts/default_agent.md +37 -0
  190. argus_review_code-0.1.0/argus_review/prompts/default_context.md +14 -0
  191. argus_review_code-0.1.0/argus_review/prompts/default_inline.md +8 -0
  192. argus_review_code-0.1.0/argus_review/prompts/default_inline_reply.md +10 -0
  193. argus_review_code-0.1.0/argus_review/prompts/default_summary.md +3 -0
  194. argus_review_code-0.1.0/argus_review/prompts/default_summary_reply.md +14 -0
  195. argus_review_code-0.1.0/argus_review/prompts/default_system_agent.md +30 -0
  196. argus_review_code-0.1.0/argus_review/prompts/default_system_context.md +27 -0
  197. argus_review_code-0.1.0/argus_review/prompts/default_system_inline.md +25 -0
  198. argus_review_code-0.1.0/argus_review/prompts/default_system_inline_reply.md +31 -0
  199. argus_review_code-0.1.0/argus_review/prompts/default_system_summary.md +7 -0
  200. argus_review_code-0.1.0/argus_review/prompts/default_system_summary_reply.md +13 -0
  201. argus_review_code-0.1.0/argus_review/resources/__init__.py +0 -0
  202. argus_review_code-0.1.0/argus_review/resources/pricing.yaml +117 -0
  203. argus_review_code-0.1.0/argus_review/services/__init__.py +0 -0
  204. argus_review_code-0.1.0/argus_review/services/agent/__init__.py +0 -0
  205. argus_review_code-0.1.0/argus_review/services/agent/loop/__init__.py +0 -0
  206. argus_review_code-0.1.0/argus_review/services/agent/loop/schema.py +76 -0
  207. argus_review_code-0.1.0/argus_review/services/agent/loop/service.py +209 -0
  208. argus_review_code-0.1.0/argus_review/services/agent/loop/types.py +13 -0
  209. argus_review_code-0.1.0/argus_review/services/agent/tool/__init__.py +0 -0
  210. argus_review_code-0.1.0/argus_review/services/agent/tool/service.py +85 -0
  211. argus_review_code-0.1.0/argus_review/services/agent/tool/types.py +6 -0
  212. argus_review_code-0.1.0/argus_review/services/artifacts/__init__.py +0 -0
  213. argus_review_code-0.1.0/argus_review/services/artifacts/schema/__init__.py +0 -0
  214. argus_review_code-0.1.0/argus_review/services/artifacts/schema/base.py +23 -0
  215. argus_review_code-0.1.0/argus_review/services/artifacts/schema/llm.py +15 -0
  216. argus_review_code-0.1.0/argus_review/services/artifacts/schema/vcs.py +41 -0
  217. argus_review_code-0.1.0/argus_review/services/artifacts/service.py +129 -0
  218. argus_review_code-0.1.0/argus_review/services/artifacts/types.py +59 -0
  219. argus_review_code-0.1.0/argus_review/services/conventions/__init__.py +0 -0
  220. argus_review_code-0.1.0/argus_review/services/conventions/schema.py +6 -0
  221. argus_review_code-0.1.0/argus_review/services/conventions/service.py +74 -0
  222. argus_review_code-0.1.0/argus_review/services/conventions/sources.py +100 -0
  223. argus_review_code-0.1.0/argus_review/services/conventions/types.py +7 -0
  224. argus_review_code-0.1.0/argus_review/services/cost/__init__.py +0 -0
  225. argus_review_code-0.1.0/argus_review/services/cost/schema.py +49 -0
  226. argus_review_code-0.1.0/argus_review/services/cost/service.py +58 -0
  227. argus_review_code-0.1.0/argus_review/services/cost/types.py +11 -0
  228. argus_review_code-0.1.0/argus_review/services/diff/__init__.py +0 -0
  229. argus_review_code-0.1.0/argus_review/services/diff/renderers.py +156 -0
  230. argus_review_code-0.1.0/argus_review/services/diff/schema.py +6 -0
  231. argus_review_code-0.1.0/argus_review/services/diff/service.py +97 -0
  232. argus_review_code-0.1.0/argus_review/services/diff/tools.py +59 -0
  233. argus_review_code-0.1.0/argus_review/services/diff/types.py +28 -0
  234. argus_review_code-0.1.0/argus_review/services/git/__init__.py +0 -0
  235. argus_review_code-0.1.0/argus_review/services/git/service.py +85 -0
  236. argus_review_code-0.1.0/argus_review/services/git/types.py +13 -0
  237. argus_review_code-0.1.0/argus_review/services/hook/__init__.py +5 -0
  238. argus_review_code-0.1.0/argus_review/services/hook/constants.py +46 -0
  239. argus_review_code-0.1.0/argus_review/services/hook/service.py +306 -0
  240. argus_review_code-0.1.0/argus_review/services/hook/types.py +53 -0
  241. argus_review_code-0.1.0/argus_review/services/llm/__init__.py +0 -0
  242. argus_review_code-0.1.0/argus_review/services/llm/azure_openai/__init__.py +0 -0
  243. argus_review_code-0.1.0/argus_review/services/llm/azure_openai/client.py +26 -0
  244. argus_review_code-0.1.0/argus_review/services/llm/bedrock/__init__.py +0 -0
  245. argus_review_code-0.1.0/argus_review/services/llm/bedrock/client.py +27 -0
  246. argus_review_code-0.1.0/argus_review/services/llm/claude/__init__.py +0 -0
  247. argus_review_code-0.1.0/argus_review/services/llm/claude/client.py +26 -0
  248. argus_review_code-0.1.0/argus_review/services/llm/factory.py +33 -0
  249. argus_review_code-0.1.0/argus_review/services/llm/gemini/__init__.py +0 -0
  250. argus_review_code-0.1.0/argus_review/services/llm/gemini/client.py +31 -0
  251. argus_review_code-0.1.0/argus_review/services/llm/ollama/__init__.py +0 -0
  252. argus_review_code-0.1.0/argus_review/services/llm/ollama/client.py +35 -0
  253. argus_review_code-0.1.0/argus_review/services/llm/openai/__init__.py +0 -0
  254. argus_review_code-0.1.0/argus_review/services/llm/openai/client.py +56 -0
  255. argus_review_code-0.1.0/argus_review/services/llm/openai_compatible/__init__.py +0 -0
  256. argus_review_code-0.1.0/argus_review/services/llm/openai_compatible/client.py +35 -0
  257. argus_review_code-0.1.0/argus_review/services/llm/openrouter/__init__.py +0 -0
  258. argus_review_code-0.1.0/argus_review/services/llm/openrouter/client.py +31 -0
  259. argus_review_code-0.1.0/argus_review/services/llm/types.py +15 -0
  260. argus_review_code-0.1.0/argus_review/services/policy/__init__.py +0 -0
  261. argus_review_code-0.1.0/argus_review/services/policy/service.py +78 -0
  262. argus_review_code-0.1.0/argus_review/services/policy/types.py +18 -0
  263. argus_review_code-0.1.0/argus_review/services/prompt/__init__.py +0 -0
  264. argus_review_code-0.1.0/argus_review/services/prompt/adapter.py +25 -0
  265. argus_review_code-0.1.0/argus_review/services/prompt/schema.py +41 -0
  266. argus_review_code-0.1.0/argus_review/services/prompt/service.py +169 -0
  267. argus_review_code-0.1.0/argus_review/services/prompt/tools.py +71 -0
  268. argus_review_code-0.1.0/argus_review/services/prompt/types.py +63 -0
  269. argus_review_code-0.1.0/argus_review/services/review/__init__.py +0 -0
  270. argus_review_code-0.1.0/argus_review/services/review/gateway/__init__.py +0 -0
  271. argus_review_code-0.1.0/argus_review/services/review/gateway/review_agent_llm_gateway.py +56 -0
  272. argus_review_code-0.1.0/argus_review/services/review/gateway/review_comment_gateway.py +159 -0
  273. argus_review_code-0.1.0/argus_review/services/review/gateway/review_direct_llm_gateway.py +52 -0
  274. argus_review_code-0.1.0/argus_review/services/review/gateway/review_dry_run_comment_gateway.py +81 -0
  275. argus_review_code-0.1.0/argus_review/services/review/gateway/types.py +57 -0
  276. argus_review_code-0.1.0/argus_review/services/review/internal/__init__.py +0 -0
  277. argus_review_code-0.1.0/argus_review/services/review/internal/inline/__init__.py +0 -0
  278. argus_review_code-0.1.0/argus_review/services/review/internal/inline/schema.py +53 -0
  279. argus_review_code-0.1.0/argus_review/services/review/internal/inline/service.py +40 -0
  280. argus_review_code-0.1.0/argus_review/services/review/internal/inline/types.py +8 -0
  281. argus_review_code-0.1.0/argus_review/services/review/internal/inline_reply/__init__.py +0 -0
  282. argus_review_code-0.1.0/argus_review/services/review/internal/inline_reply/schema.py +23 -0
  283. argus_review_code-0.1.0/argus_review/services/review/internal/inline_reply/service.py +20 -0
  284. argus_review_code-0.1.0/argus_review/services/review/internal/inline_reply/types.py +8 -0
  285. argus_review_code-0.1.0/argus_review/services/review/internal/summary/__init__.py +0 -0
  286. argus_review_code-0.1.0/argus_review/services/review/internal/summary/schema.py +19 -0
  287. argus_review_code-0.1.0/argus_review/services/review/internal/summary/service.py +15 -0
  288. argus_review_code-0.1.0/argus_review/services/review/internal/summary/types.py +8 -0
  289. argus_review_code-0.1.0/argus_review/services/review/internal/summary_reply/__init__.py +0 -0
  290. argus_review_code-0.1.0/argus_review/services/review/internal/summary_reply/schema.py +8 -0
  291. argus_review_code-0.1.0/argus_review/services/review/internal/summary_reply/service.py +15 -0
  292. argus_review_code-0.1.0/argus_review/services/review/internal/summary_reply/types.py +8 -0
  293. argus_review_code-0.1.0/argus_review/services/review/runner/__init__.py +0 -0
  294. argus_review_code-0.1.0/argus_review/services/review/runner/context.py +75 -0
  295. argus_review_code-0.1.0/argus_review/services/review/runner/inline.py +83 -0
  296. argus_review_code-0.1.0/argus_review/services/review/runner/inline_reply.py +80 -0
  297. argus_review_code-0.1.0/argus_review/services/review/runner/summary.py +74 -0
  298. argus_review_code-0.1.0/argus_review/services/review/runner/summary_reply.py +79 -0
  299. argus_review_code-0.1.0/argus_review/services/review/runner/types.py +6 -0
  300. argus_review_code-0.1.0/argus_review/services/review/service.py +162 -0
  301. argus_review_code-0.1.0/argus_review/services/vcs/__init__.py +0 -0
  302. argus_review_code-0.1.0/argus_review/services/vcs/azure_devops/__init__.py +0 -0
  303. argus_review_code-0.1.0/argus_review/services/vcs/azure_devops/adapter.py +29 -0
  304. argus_review_code-0.1.0/argus_review/services/vcs/azure_devops/client.py +370 -0
  305. argus_review_code-0.1.0/argus_review/services/vcs/bitbucket_cloud/__init__.py +0 -0
  306. argus_review_code-0.1.0/argus_review/services/vcs/bitbucket_cloud/adapter.py +27 -0
  307. argus_review_code-0.1.0/argus_review/services/vcs/bitbucket_cloud/client.py +292 -0
  308. argus_review_code-0.1.0/argus_review/services/vcs/bitbucket_server/__init__.py +0 -0
  309. argus_review_code-0.1.0/argus_review/services/vcs/bitbucket_server/adapter.py +27 -0
  310. argus_review_code-0.1.0/argus_review/services/vcs/bitbucket_server/client.py +295 -0
  311. argus_review_code-0.1.0/argus_review/services/vcs/bitbucket_server/tools.py +14 -0
  312. argus_review_code-0.1.0/argus_review/services/vcs/factory.py +27 -0
  313. argus_review_code-0.1.0/argus_review/services/vcs/gitea/__init__.py +0 -0
  314. argus_review_code-0.1.0/argus_review/services/vcs/gitea/adapter.py +37 -0
  315. argus_review_code-0.1.0/argus_review/services/vcs/gitea/client.py +218 -0
  316. argus_review_code-0.1.0/argus_review/services/vcs/github/__init__.py +0 -0
  317. argus_review_code-0.1.0/argus_review/services/vcs/github/adapter.py +35 -0
  318. argus_review_code-0.1.0/argus_review/services/vcs/github/client.py +260 -0
  319. argus_review_code-0.1.0/argus_review/services/vcs/gitlab/__init__.py +0 -0
  320. argus_review_code-0.1.0/argus_review/services/vcs/gitlab/adapter.py +28 -0
  321. argus_review_code-0.1.0/argus_review/services/vcs/gitlab/client.py +260 -0
  322. argus_review_code-0.1.0/argus_review/services/vcs/types.py +104 -0
  323. argus_review_code-0.1.0/argus_review/tests/__init__.py +0 -0
  324. argus_review_code-0.1.0/argus_review/tests/fixtures/__init__.py +0 -0
  325. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/__init__.py +0 -0
  326. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/azure_devops.py +282 -0
  327. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/azure_openai.py +82 -0
  328. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/bedrock.py +76 -0
  329. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/bitbucket_cloud.py +226 -0
  330. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/bitbucket_server.py +283 -0
  331. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/claude.py +67 -0
  332. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/gemini.py +73 -0
  333. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/gitea.py +215 -0
  334. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/github.py +209 -0
  335. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/gitlab.py +223 -0
  336. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/ollama.py +65 -0
  337. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/openai.py +141 -0
  338. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/openai_compatible.py +87 -0
  339. argus_review_code-0.1.0/argus_review/tests/fixtures/clients/openrouter.py +72 -0
  340. argus_review_code-0.1.0/argus_review/tests/fixtures/libs/__init__.py +0 -0
  341. argus_review_code-0.1.0/argus_review/tests/fixtures/libs/llm/__init__.py +0 -0
  342. argus_review_code-0.1.0/argus_review/tests/fixtures/libs/llm/output_json_parser.py +13 -0
  343. argus_review_code-0.1.0/argus_review/tests/fixtures/services/__init__.py +0 -0
  344. argus_review_code-0.1.0/argus_review/tests/fixtures/services/agent/__init__.py +0 -0
  345. argus_review_code-0.1.0/argus_review/tests/fixtures/services/agent/loop.py +47 -0
  346. argus_review_code-0.1.0/argus_review/tests/fixtures/services/agent/tool.py +31 -0
  347. argus_review_code-0.1.0/argus_review/tests/fixtures/services/artifacts.py +72 -0
  348. argus_review_code-0.1.0/argus_review/tests/fixtures/services/cost.py +47 -0
  349. argus_review_code-0.1.0/argus_review/tests/fixtures/services/diff.py +46 -0
  350. argus_review_code-0.1.0/argus_review/tests/fixtures/services/git.py +47 -0
  351. argus_review_code-0.1.0/argus_review/tests/fixtures/services/hook.py +8 -0
  352. argus_review_code-0.1.0/argus_review/tests/fixtures/services/llm.py +29 -0
  353. argus_review_code-0.1.0/argus_review/tests/fixtures/services/policy.py +36 -0
  354. argus_review_code-0.1.0/argus_review/tests/fixtures/services/prompt.py +138 -0
  355. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/__init__.py +0 -0
  356. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/base.py +41 -0
  357. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/gateway/__init__.py +0 -0
  358. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/gateway/review_agent_llm_gateway.py +42 -0
  359. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/gateway/review_comment_gateway.py +118 -0
  360. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/gateway/review_direct_llm_gateway.py +42 -0
  361. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/gateway/review_dry_run_comment_gateway.py +123 -0
  362. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/internal/__init__.py +0 -0
  363. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/internal/inline.py +27 -0
  364. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/internal/inline_reply.py +25 -0
  365. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/internal/summary.py +21 -0
  366. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/internal/summary_reply.py +19 -0
  367. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/runner/__init__.py +0 -0
  368. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/runner/context.py +50 -0
  369. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/runner/inline.py +50 -0
  370. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/runner/inline_reply.py +50 -0
  371. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/runner/summary.py +50 -0
  372. argus_review_code-0.1.0/argus_review/tests/fixtures/services/review/runner/summary_reply.py +50 -0
  373. argus_review_code-0.1.0/argus_review/tests/fixtures/services/vcs.py +86 -0
  374. argus_review_code-0.1.0/argus_review/tests/suites/__init__.py +0 -0
  375. argus_review_code-0.1.0/argus_review/tests/suites/cli/__init__.py +0 -0
  376. argus_review_code-0.1.0/argus_review/tests/suites/cli/test_main.py +111 -0
  377. argus_review_code-0.1.0/argus_review/tests/suites/clients/__init__.py +0 -0
  378. argus_review_code-0.1.0/argus_review/tests/suites/clients/azure_devops/__init__.py +0 -0
  379. argus_review_code-0.1.0/argus_review/tests/suites/clients/azure_devops/test_client.py +14 -0
  380. argus_review_code-0.1.0/argus_review/tests/suites/clients/azure_devops/test_tools.py +101 -0
  381. argus_review_code-0.1.0/argus_review/tests/suites/clients/azure_openai/__init__.py +0 -0
  382. argus_review_code-0.1.0/argus_review/tests/suites/clients/azure_openai/test_client.py +12 -0
  383. argus_review_code-0.1.0/argus_review/tests/suites/clients/azure_openai/test_schema.py +116 -0
  384. argus_review_code-0.1.0/argus_review/tests/suites/clients/bedrock/__init__.py +0 -0
  385. argus_review_code-0.1.0/argus_review/tests/suites/clients/bedrock/test_client.py +12 -0
  386. argus_review_code-0.1.0/argus_review/tests/suites/clients/bedrock/test_schema.py +67 -0
  387. argus_review_code-0.1.0/argus_review/tests/suites/clients/bitbucket_cloud/__init__.py +0 -0
  388. argus_review_code-0.1.0/argus_review/tests/suites/clients/bitbucket_cloud/test_client.py +14 -0
  389. argus_review_code-0.1.0/argus_review/tests/suites/clients/bitbucket_cloud/test_tools.py +31 -0
  390. argus_review_code-0.1.0/argus_review/tests/suites/clients/bitbucket_server/__init__.py +0 -0
  391. argus_review_code-0.1.0/argus_review/tests/suites/clients/bitbucket_server/test_client.py +14 -0
  392. argus_review_code-0.1.0/argus_review/tests/suites/clients/bitbucket_server/test_tools.py +38 -0
  393. argus_review_code-0.1.0/argus_review/tests/suites/clients/claude/__init__.py +0 -0
  394. argus_review_code-0.1.0/argus_review/tests/suites/clients/claude/test_client.py +12 -0
  395. argus_review_code-0.1.0/argus_review/tests/suites/clients/claude/test_schema.py +59 -0
  396. argus_review_code-0.1.0/argus_review/tests/suites/clients/gemini/__init__.py +0 -0
  397. argus_review_code-0.1.0/argus_review/tests/suites/clients/gemini/test_client.py +12 -0
  398. argus_review_code-0.1.0/argus_review/tests/suites/clients/gemini/test_schema.py +105 -0
  399. argus_review_code-0.1.0/argus_review/tests/suites/clients/gitea/__init__.py +0 -0
  400. argus_review_code-0.1.0/argus_review/tests/suites/clients/gitea/test_client.py +14 -0
  401. argus_review_code-0.1.0/argus_review/tests/suites/clients/gitea/test_tools.py +26 -0
  402. argus_review_code-0.1.0/argus_review/tests/suites/clients/github/__init__.py +0 -0
  403. argus_review_code-0.1.0/argus_review/tests/suites/clients/github/test_client.py +14 -0
  404. argus_review_code-0.1.0/argus_review/tests/suites/clients/github/test_tools.py +31 -0
  405. argus_review_code-0.1.0/argus_review/tests/suites/clients/gitlab/__init__.py +0 -0
  406. argus_review_code-0.1.0/argus_review/tests/suites/clients/gitlab/test_client.py +14 -0
  407. argus_review_code-0.1.0/argus_review/tests/suites/clients/gitlab/test_tools.py +26 -0
  408. argus_review_code-0.1.0/argus_review/tests/suites/clients/ollama/__init__.py +0 -0
  409. argus_review_code-0.1.0/argus_review/tests/suites/clients/ollama/test_client.py +12 -0
  410. argus_review_code-0.1.0/argus_review/tests/suites/clients/ollama/test_schema.py +65 -0
  411. argus_review_code-0.1.0/argus_review/tests/suites/clients/openai/__init__.py +0 -0
  412. argus_review_code-0.1.0/argus_review/tests/suites/clients/openai/v1/__init__.py +0 -0
  413. argus_review_code-0.1.0/argus_review/tests/suites/clients/openai/v1/test_client.py +12 -0
  414. argus_review_code-0.1.0/argus_review/tests/suites/clients/openai/v1/test_schema.py +66 -0
  415. argus_review_code-0.1.0/argus_review/tests/suites/clients/openai/v2/__init__.py +0 -0
  416. argus_review_code-0.1.0/argus_review/tests/suites/clients/openai/v2/test_client.py +12 -0
  417. argus_review_code-0.1.0/argus_review/tests/suites/clients/openai/v2/test_schema.py +93 -0
  418. argus_review_code-0.1.0/argus_review/tests/suites/clients/openrouter/__init__.py +0 -0
  419. argus_review_code-0.1.0/argus_review/tests/suites/clients/openrouter/test_client.py +12 -0
  420. argus_review_code-0.1.0/argus_review/tests/suites/clients/openrouter/test_schema.py +57 -0
  421. argus_review_code-0.1.0/argus_review/tests/suites/libs/__init__.py +0 -0
  422. argus_review_code-0.1.0/argus_review/tests/suites/libs/asynchronous/__init__.py +0 -0
  423. argus_review_code-0.1.0/argus_review/tests/suites/libs/asynchronous/test_gather.py +46 -0
  424. argus_review_code-0.1.0/argus_review/tests/suites/libs/aws/__init__.py +0 -0
  425. argus_review_code-0.1.0/argus_review/tests/suites/libs/aws/test_signv4.py +262 -0
  426. argus_review_code-0.1.0/argus_review/tests/suites/libs/config/__init__.py +0 -0
  427. argus_review_code-0.1.0/argus_review/tests/suites/libs/config/llm/__init__.py +0 -0
  428. argus_review_code-0.1.0/argus_review/tests/suites/libs/config/llm/test_openai.py +28 -0
  429. argus_review_code-0.1.0/argus_review/tests/suites/libs/config/llm/test_openai_compatible.py +53 -0
  430. argus_review_code-0.1.0/argus_review/tests/suites/libs/config/test_agent.py +55 -0
  431. argus_review_code-0.1.0/argus_review/tests/suites/libs/config/test_conventions.py +55 -0
  432. argus_review_code-0.1.0/argus_review/tests/suites/libs/config/test_prompt.py +192 -0
  433. argus_review_code-0.1.0/argus_review/tests/suites/libs/crypto/__init__.py +0 -0
  434. argus_review_code-0.1.0/argus_review/tests/suites/libs/crypto/test_sha.py +75 -0
  435. argus_review_code-0.1.0/argus_review/tests/suites/libs/diff/__init__.py +0 -0
  436. argus_review_code-0.1.0/argus_review/tests/suites/libs/diff/test_models.py +105 -0
  437. argus_review_code-0.1.0/argus_review/tests/suites/libs/diff/test_parser.py +115 -0
  438. argus_review_code-0.1.0/argus_review/tests/suites/libs/diff/test_tools.py +62 -0
  439. argus_review_code-0.1.0/argus_review/tests/suites/libs/http/__init__.py +0 -0
  440. argus_review_code-0.1.0/argus_review/tests/suites/libs/http/authentication/__init__.py +0 -0
  441. argus_review_code-0.1.0/argus_review/tests/suites/libs/http/authentication/test_basic.py +30 -0
  442. argus_review_code-0.1.0/argus_review/tests/suites/libs/http/test_paginate.py +208 -0
  443. argus_review_code-0.1.0/argus_review/tests/suites/libs/llm/__init__.py +0 -0
  444. argus_review_code-0.1.0/argus_review/tests/suites/libs/llm/test_output_json_parser.py +155 -0
  445. argus_review_code-0.1.0/argus_review/tests/suites/libs/template/__init__.py +0 -0
  446. argus_review_code-0.1.0/argus_review/tests/suites/libs/template/test_render.py +64 -0
  447. argus_review_code-0.1.0/argus_review/tests/suites/libs/test_json.py +27 -0
  448. argus_review_code-0.1.0/argus_review/tests/suites/libs/test_text.py +27 -0
  449. argus_review_code-0.1.0/argus_review/tests/suites/packaging/__init__.py +1 -0
  450. argus_review_code-0.1.0/argus_review/tests/suites/packaging/test_metadata.py +27 -0
  451. argus_review_code-0.1.0/argus_review/tests/suites/services/__init__.py +0 -0
  452. argus_review_code-0.1.0/argus_review/tests/suites/services/agent/__init__.py +0 -0
  453. argus_review_code-0.1.0/argus_review/tests/suites/services/agent/loop/__init__.py +0 -0
  454. argus_review_code-0.1.0/argus_review/tests/suites/services/agent/loop/test_schema.py +165 -0
  455. argus_review_code-0.1.0/argus_review/tests/suites/services/agent/loop/test_service.py +300 -0
  456. argus_review_code-0.1.0/argus_review/tests/suites/services/agent/tool/__init__.py +0 -0
  457. argus_review_code-0.1.0/argus_review/tests/suites/services/agent/tool/test_service.py +154 -0
  458. argus_review_code-0.1.0/argus_review/tests/suites/services/artifacts/__init__.py +0 -0
  459. argus_review_code-0.1.0/argus_review/tests/suites/services/artifacts/test_service.py +270 -0
  460. argus_review_code-0.1.0/argus_review/tests/suites/services/conventions/__init__.py +0 -0
  461. argus_review_code-0.1.0/argus_review/tests/suites/services/conventions/test_service.py +107 -0
  462. argus_review_code-0.1.0/argus_review/tests/suites/services/conventions/test_sources.py +120 -0
  463. argus_review_code-0.1.0/argus_review/tests/suites/services/cost/__init__.py +0 -0
  464. argus_review_code-0.1.0/argus_review/tests/suites/services/cost/test_schema.py +124 -0
  465. argus_review_code-0.1.0/argus_review/tests/suites/services/cost/test_service.py +98 -0
  466. argus_review_code-0.1.0/argus_review/tests/suites/services/diff/__init__.py +0 -0
  467. argus_review_code-0.1.0/argus_review/tests/suites/services/diff/test_renderers.py +191 -0
  468. argus_review_code-0.1.0/argus_review/tests/suites/services/diff/test_service.py +84 -0
  469. argus_review_code-0.1.0/argus_review/tests/suites/services/diff/test_tools.py +127 -0
  470. argus_review_code-0.1.0/argus_review/tests/suites/services/git/__init__.py +0 -0
  471. argus_review_code-0.1.0/argus_review/tests/suites/services/git/test_service.py +200 -0
  472. argus_review_code-0.1.0/argus_review/tests/suites/services/hook/__init__.py +0 -0
  473. argus_review_code-0.1.0/argus_review/tests/suites/services/hook/test_service.py +194 -0
  474. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/__init__.py +0 -0
  475. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/azure_openai/__init__.py +0 -0
  476. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/azure_openai/test_client.py +22 -0
  477. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/bedrock/__init__.py +0 -0
  478. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/bedrock/test_client.py +22 -0
  479. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/claude/__init__.py +0 -0
  480. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/claude/test_client.py +22 -0
  481. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/gemini/__init__.py +0 -0
  482. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/gemini/test_client.py +22 -0
  483. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/ollama/__init__.py +0 -0
  484. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/ollama/test_client.py +22 -0
  485. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/openai/__init__.py +0 -0
  486. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/openai/test_client.py +39 -0
  487. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/openai_compatible/__init__.py +0 -0
  488. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/openai_compatible/test_client.py +36 -0
  489. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/openrouter/__init__.py +0 -0
  490. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/openrouter/test_client.py +22 -0
  491. argus_review_code-0.1.0/argus_review/tests/suites/services/llm/test_factory.py +71 -0
  492. argus_review_code-0.1.0/argus_review/tests/suites/services/policy/__init__.py +0 -0
  493. argus_review_code-0.1.0/argus_review/tests/suites/services/policy/test_service.py +120 -0
  494. argus_review_code-0.1.0/argus_review/tests/suites/services/prompt/__init__.py +0 -0
  495. argus_review_code-0.1.0/argus_review/tests/suites/services/prompt/test_adapter.py +59 -0
  496. argus_review_code-0.1.0/argus_review/tests/suites/services/prompt/test_conventions_integration.py +43 -0
  497. argus_review_code-0.1.0/argus_review/tests/suites/services/prompt/test_language_integration.py +46 -0
  498. argus_review_code-0.1.0/argus_review/tests/suites/services/prompt/test_schema.py +136 -0
  499. argus_review_code-0.1.0/argus_review/tests/suites/services/prompt/test_service.py +266 -0
  500. argus_review_code-0.1.0/argus_review/tests/suites/services/prompt/test_tools.py +227 -0
  501. argus_review_code-0.1.0/argus_review/tests/suites/services/review/__init__.py +0 -0
  502. argus_review_code-0.1.0/argus_review/tests/suites/services/review/gateway/__init__.py +0 -0
  503. argus_review_code-0.1.0/argus_review/tests/suites/services/review/gateway/test_review_agent_llm_gateway.py +94 -0
  504. argus_review_code-0.1.0/argus_review/tests/suites/services/review/gateway/test_review_comment_gateway.py +474 -0
  505. argus_review_code-0.1.0/argus_review/tests/suites/services/review/gateway/test_review_direct_llm_gateway.py +91 -0
  506. argus_review_code-0.1.0/argus_review/tests/suites/services/review/gateway/test_review_dry_run_comment_gateway.py +188 -0
  507. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/__init__.py +0 -0
  508. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/inline/__init__.py +0 -0
  509. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/inline/test_schema.py +66 -0
  510. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/inline/test_service.py +81 -0
  511. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/inline_reply/__init__.py +0 -0
  512. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/inline_reply/test_schema.py +57 -0
  513. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/inline_reply/test_service.py +72 -0
  514. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/summary/__init__.py +0 -0
  515. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/summary/test_schema.py +30 -0
  516. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/summary/test_service.py +19 -0
  517. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/summary_reply/__init__.py +0 -0
  518. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/summary_reply/test_schema.py +19 -0
  519. argus_review_code-0.1.0/argus_review/tests/suites/services/review/internal/summary_reply/test_service.py +21 -0
  520. argus_review_code-0.1.0/argus_review/tests/suites/services/review/runner/__init__.py +0 -0
  521. argus_review_code-0.1.0/argus_review/tests/suites/services/review/runner/test_context.py +97 -0
  522. argus_review_code-0.1.0/argus_review/tests/suites/services/review/runner/test_inline.py +104 -0
  523. argus_review_code-0.1.0/argus_review/tests/suites/services/review/runner/test_inline_reply.py +109 -0
  524. argus_review_code-0.1.0/argus_review/tests/suites/services/review/runner/test_summary.py +95 -0
  525. argus_review_code-0.1.0/argus_review/tests/suites/services/review/runner/test_summary_reply.py +97 -0
  526. argus_review_code-0.1.0/argus_review/tests/suites/services/review/test_service.py +129 -0
  527. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/__init__.py +0 -0
  528. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/azure_devops/__init__.py +0 -0
  529. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/azure_devops/test_adapter.py +142 -0
  530. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/azure_devops/test_client.py +321 -0
  531. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/bitbucket_cloud/__init__.py +0 -0
  532. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/bitbucket_cloud/test_adapter.py +109 -0
  533. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/bitbucket_cloud/test_client.py +252 -0
  534. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/bitbucket_server/__init__.py +0 -0
  535. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/bitbucket_server/test_adapter.py +115 -0
  536. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/bitbucket_server/test_client.py +249 -0
  537. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/bitbucket_server/test_tools.py +111 -0
  538. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/gitea/__init__.py +0 -0
  539. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/gitea/test_adapter.py +115 -0
  540. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/gitea/test_client.py +354 -0
  541. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/github/__init__.py +0 -0
  542. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/github/test_adapter.py +162 -0
  543. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/github/test_client.py +260 -0
  544. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/gitlab/__init__.py +0 -0
  545. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/gitlab/test_adapter.py +134 -0
  546. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/gitlab/test_client.py +279 -0
  547. argus_review_code-0.1.0/argus_review/tests/suites/services/vcs/test_factory.py +51 -0
  548. argus_review_code-0.1.0/argus_review_code.egg-info/PKG-INFO +426 -0
  549. argus_review_code-0.1.0/argus_review_code.egg-info/SOURCES.txt +553 -0
  550. argus_review_code-0.1.0/argus_review_code.egg-info/dependency_links.txt +1 -0
  551. argus_review_code-0.1.0/argus_review_code.egg-info/entry_points.txt +2 -0
  552. argus_review_code-0.1.0/argus_review_code.egg-info/requires.txt +11 -0
  553. argus_review_code-0.1.0/argus_review_code.egg-info/top_level.txt +1 -0
  554. argus_review_code-0.1.0/pyproject.toml +79 -0
  555. argus_review_code-0.1.0/setup.cfg +4 -0
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Nikita Filonov
190
+ Copyright 2026 sanghv (sang-hv)
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,16 @@
1
+ This project is a fork of "ArgusReview" (itself a fork/rebrand of the original
2
+ "ai-review" project by Nikita Filonov), licensed under the Apache License,
3
+ Version 2.0.
4
+
5
+ Original work:
6
+ Copyright 2025 Nikita Filonov
7
+ https://github.com/Nikita-Filonov/ai-review
8
+
9
+ Intermediate fork ("ArgusReview" / DEHA):
10
+ https://github.com/deha-project/argus-review
11
+
12
+ Modifications and additions in this fork:
13
+ Copyright 2026 sanghv (sang-hv)
14
+ https://github.com/sang-hv/ai-code-review
15
+
16
+ See the LICENSE file for the full Apache License, Version 2.0 text.
@@ -0,0 +1,426 @@
1
+ Metadata-Version: 2.4
2
+ Name: argus-review-code
3
+ Version: 0.1.0
4
+ Summary: ArgusReview (sang-hv fork) is an AI-powered code review tool for GitHub, GitLab, Bitbucket Cloud, Bitbucket Server, Azure DevOps and Gitea
5
+ Author-email: sanghv <supersentaj@gmail.com>
6
+ Maintainer-email: sanghv <supersentaj@gmail.com>
7
+ License-Expression: Apache-2.0
8
+ Project-URL: Issues, https://github.com/sang-hv/ai-code-review/issues
9
+ Project-URL: Homepage, https://github.com/sang-hv/ai-code-review
10
+ Project-URL: Repository, https://github.com/sang-hv/ai-code-review
11
+ Keywords: ai,code review,llm,openai,claude,gemini,ollama,bedrock,openrouter,ci/cd,gitlab,github,gitea,bitbucket,bitbucket cloud,bitbucket server,azure,azure devops,azure openai
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Topic :: Software Development :: Quality Assurance
17
+ Classifier: Topic :: Software Development :: Testing
18
+ Classifier: Operating System :: OS Independent
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ License-File: NOTICE
23
+ Requires-Dist: typer
24
+ Requires-Dist: httpx
25
+ Requires-Dist: pyyaml
26
+ Requires-Dist: loguru
27
+ Requires-Dist: aiofiles
28
+ Requires-Dist: pydantic
29
+ Requires-Dist: pydantic-settings
30
+ Provides-Extra: test
31
+ Requires-Dist: pytest; extra == "test"
32
+ Requires-Dist: pytest-asyncio; extra == "test"
33
+ Dynamic: license-file
34
+
35
+ # ArgusReview
36
+
37
+ <p align="center">
38
+ <img src="./docs/assets/logo.png" alt="ArgusReview logo" width="220" />
39
+ </p>
40
+
41
+ AI-powered code review tool.
42
+
43
+ > This is a personal fork ([sang-hv/ai-code-review](https://github.com/sang-hv/ai-code-review)) of ArgusReview
44
+ > (originally [ai-review by Nikita Filonov](https://github.com/Nikita-Filonov/ai-review), rebranded by
45
+ > [deha-project](https://github.com/deha-project/argus-review)). See [NOTICE](./NOTICE) for full attribution.
46
+
47
+ [![CI](https://github.com/sang-hv/ai-code-review/actions/workflows/workflow-test.yml/badge.svg)](https://github.com/sang-hv/ai-code-review/actions/workflows/workflow-test.yml)
48
+ [![PyPI version](https://img.shields.io/pypi/v/argus-review-code.svg)](https://pypi.org/project/argus-review-code/)
49
+ [![License](https://img.shields.io/github/license/sang-hv/ai-code-review)](./LICENSE)
50
+
51
+ ---
52
+
53
+ ## 📑 Table of Contents
54
+
55
+ - ✨ [About](#-about)
56
+ - 🧪 [Live Preview](#-live-preview)
57
+ - 🚀 [Quick Start](#-quick-start)
58
+ - ⚙️ [️CI/CD Integration](#-cicd-integration)
59
+ - 🚀 [GitHub Actions](#-github-actions)
60
+ - 🚀 [GitLab CI/CD](#-gitlab-cicd)
61
+ - 📘 [Documentation](#-documentation)
62
+ - ⚠️ [Privacy & Responsibility Notice](#-privacy--responsibility-notice)
63
+
64
+ ---
65
+
66
+ ## ✨ About
67
+
68
+ **ArgusReview** is a developer tool that brings **AI-powered code review** directly into your workflow. It helps teams
69
+ improve code quality, enforce consistency, and speed up the review process.
70
+
71
+ ✨ Key features:
72
+
73
+ - **Multiple LLM providers** — choose between **OpenAI**, **Claude**, **Gemini**, **Ollama**, **Bedrock**,
74
+ **OpenRouter**, or **Azure OpenAI** and switch anytime. Plus a generic **OpenAI-compatible** provider and a
75
+ **9Router** preset, so any OpenAI-style gateway (LMRouter, vLLM, LocalAI, LiteLLM, ...) works by just setting a base URL.
76
+ - **Project coding conventions** — feed your team's standards (Markdown) into every review from a **local folder**, a
77
+ **raw URL**, or a **git repo** (public or private). The AI reviews against *your* rules, not just generic defaults.
78
+ - **VCS integration** — works out of the box with **GitLab**, **GitHub**, **Bitbucket Cloud**, **Bitbucket Server**,
79
+ **Azure DevOps**, and **Gitea**.
80
+ - **Customizable prompts** — adapt inline, context, and summary reviews to match your team's coding guidelines.
81
+ - **Agent mode** — iterative ReAct-style loop where the model can **explore the repository** with shell commands
82
+ (`ls`, `cat`, `rg`, `git`) before producing a final review, giving it deeper context than a single-shot call.
83
+ - **Reply modes** — AI can now **participate in existing review threads**, adding follow-up replies in both inline and
84
+ summary discussions.
85
+ - **Flexible configuration** — supports `YAML`, `JSON`, and `ENV`, with seamless overrides in CI/CD pipelines.
86
+ - **ArgusReview runs fully client-side** — it never proxies or inspects your requests.
87
+
88
+ ArgusReview runs automatically in your CI/CD pipeline and posts both **inline comments**, **summary reviews**, and now
89
+ **AI-generated replies** directly inside your merge requests. With **agent mode** enabled, the model can autonomously
90
+ explore the codebase before reviewing, resulting in more accurate and context-aware feedback. This makes reviews faster,
91
+ more conversational, and still fully under human control.
92
+
93
+ ---
94
+
95
+ ## 🧪 Live Preview
96
+
97
+ Curious how **ArgusReview** works in practice? Here are real Pull Requests reviewed entirely by the tool — one per
98
+ mode:
99
+
100
+ | Mode | Description |
101
+ |------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
102
+ | 🧩 Inline | Adds **line-by-line comments** directly in the diff. Focuses on specific code changes. |
103
+ | 🧠 Context | Performs a **broader analysis across multiple files**, detecting cross-file issues and inconsistencies. |
104
+ | 📄 Summary | Posts a **concise high-level summary** with key highlights, strengths, and major issues. |
105
+ | 💬 Inline Reply | Generates a **context-aware reply** to an existing inline comment thread. Can clarify decisions, propose fixes, or provide code suggestions. |
106
+ | 💬 Summary Reply | Continues the **summary-level review discussion**, responding to reviewer comments with clarifications, rationale, or actionable next steps. |
107
+
108
+ 👉 Each review was generated automatically via GitHub Actions using the corresponding mode:
109
+
110
+ ```bash
111
+ argus-review run-inline
112
+ argus-review run-summary
113
+ argus-review run-context
114
+ argus-review run-inline-reply
115
+ argus-review run-summary-reply
116
+ ```
117
+
118
+ ---
119
+
120
+ ## 🚀 Quick Start
121
+
122
+ Install via **pip**:
123
+
124
+ ```bash
125
+ pip install argus-review-code
126
+ ```
127
+
128
+ 📦 Package name on PyPI: **`argus-review-code`** (the CLI command is still `argus-review`)
129
+
130
+ Or install from source:
131
+
132
+ ```bash
133
+ git clone https://github.com/sang-hv/ai-code-review.git
134
+ cd ai-code-review
135
+ pip install .
136
+ ```
137
+
138
+ Or build the Docker image locally:
139
+
140
+ ```bash
141
+ docker build -t ai-code-review:latest .
142
+ docker run --rm -v $(pwd):/app ai-code-review:latest run-summary
143
+ ```
144
+
145
+ 👉 Before running, create a basic configuration file [.ai-review.yaml](./docs/configs/.ai-review.yaml) in the root of
146
+ your project:
147
+
148
+ ```yaml
149
+ llm:
150
+ provider: OPENAI
151
+
152
+ meta:
153
+ model: gpt-4o-mini
154
+ max_tokens: 1200
155
+ temperature: 0.3
156
+
157
+ http_client:
158
+ timeout: 120
159
+ api_url: https://api.openai.com/v1
160
+ api_token: ${OPENAI_API_KEY}
161
+
162
+ vcs:
163
+ provider: GITLAB
164
+
165
+ pipeline:
166
+ project_id: "1"
167
+ merge_request_id: "100"
168
+
169
+ http_client:
170
+ timeout: 120
171
+ api_url: https://gitlab.com
172
+ api_token: ${GITLAB_API_TOKEN}
173
+ ```
174
+
175
+ 👉 This will:
176
+
177
+ - Run ArgusReview against your codebase.
178
+ - Generate inline and/or summary comments (depending on the selected mode).
179
+ - Use your chosen LLM provider (OpenAI GPT-4o-mini in this example).
180
+
181
+ > **Note:** Running `argus-review run` executes the full review (inline + summary).
182
+ > To run only one mode, use the dedicated subcommands:
183
+ > - argus-review run-inline
184
+ > - argus-review run-context
185
+ > - argus-review run-summary
186
+ > - argus-review run-inline-reply
187
+ > - argus-review run-summary-reply
188
+
189
+ ---
190
+
191
+ ArgusReview can be configured via `.ai-review.yaml`, `.ai-review.json`, or `.env`. See [./docs/configs](./docs/configs)
192
+ for complete, ready-to-use examples.
193
+
194
+ Key things you can customize:
195
+
196
+ - **LLM provider** — OpenAI, Gemini, Claude, Ollama, Bedrock, OpenRouter, Azure OpenAI, any **OpenAI-compatible**
197
+ endpoint, or **9Router**
198
+ - **Model settings** — model name, temperature, max tokens
199
+ - **VCS integration** — works out of the box with **GitLab**, **GitHub**, **Bitbucket Cloud**, **Bitbucket Server**,
200
+ **Azure DevOps**, and **Gitea**
201
+ - **Agent mode** — enable iterative repository exploration before review
202
+ - **Coding conventions** — load your team's `.md` standards from a local folder, a URL, or a git repo
203
+ - **Review language** — have the AI write comments/summaries/replies in any language (English, Vietnamese, ...)
204
+ - **Review policy** — which files to include/exclude, review modes
205
+ - **Prompts** — inline/context/summary/agent prompt templates
206
+
207
+ ---
208
+
209
+ ### 🔌 OpenAI-compatible providers & 9Router
210
+
211
+ Any gateway that speaks the OpenAI Chat Completions API works with the `OPENAI_COMPATIBLE` provider — you only set a
212
+ base URL and a model:
213
+
214
+ ```yaml
215
+ llm:
216
+ provider: OPENAI_COMPATIBLE
217
+ meta:
218
+ model: meta-llama/llama-3.1-70b-instruct
219
+ http_client:
220
+ api_url: https://my-router.example.com/v1
221
+ api_token: ${LLM_API_TOKEN} # optional — omit for token-less local gateways
222
+ ```
223
+
224
+ For the [9Router](https://9router.com) local proxy, use the `9ROUTER` preset. `api_url` defaults to
225
+ `http://localhost:20128/v1`, so config stays minimal:
226
+
227
+ ```yaml
228
+ llm:
229
+ provider: 9ROUTER
230
+ meta:
231
+ model: gpt-4o-mini
232
+ ```
233
+
234
+ ---
235
+
236
+ ### 📐 Project coding conventions
237
+
238
+ Every team has its own standards. Point ArgusReview at your convention docs and they get injected into each review
239
+ prompt automatically. Sources can be a local file/folder, a raw URL, or a git repo — private ones supported via token:
240
+
241
+ ```yaml
242
+ conventions:
243
+ enabled: true
244
+ sources:
245
+ # Local file or folder of .md docs
246
+ - type: local
247
+ path: ./docs/conventions
248
+
249
+ # Raw Markdown from a URL (token optional, for private URLs)
250
+ - type: url
251
+ url: https://raw.githubusercontent.com/my-org/standards/main/PYTHON.md
252
+ token: ${CONVENTIONS_URL_TOKEN}
253
+
254
+ # .md docs pulled from a git repo (token optional, for private repos)
255
+ - type: git
256
+ repo: https://github.com/my-org/standards.git
257
+ ref: main
258
+ path: python
259
+ token: ${GIT_TOKEN}
260
+
261
+ # Optional: enable/disable per review mode (all on by default)
262
+ modes:
263
+ inline: true
264
+ context: true
265
+ summary: true
266
+ inline_reply: true
267
+ summary_reply: true
268
+ ```
269
+
270
+ Convention loading is fail-soft: an unreachable source is logged and skipped, so a review is never blocked.
271
+
272
+ ---
273
+
274
+ ### 🌐 Review language
275
+
276
+ Have the AI write its review (inline comments, summaries, and replies) in the language your team prefers. It's a
277
+ single free-form field — use any language name the model understands. Code identifiers, file paths, and code snippets
278
+ are always kept unchanged.
279
+
280
+ ```yaml
281
+ review:
282
+ language: Vietnamese # or English (default), Tiếng Việt, 日本語, Français, ...
283
+ ```
284
+
285
+ 👉 Minimal configuration is enough to get started. Use the full reference configs if you want fine-grained control (
286
+ timeouts, artifacts, logging, etc.).
287
+
288
+ ---
289
+
290
+ ## ⚙️ CI/CD Integration
291
+
292
+ ArgusReview works out-of-the-box with major CI providers.
293
+ Use these snippets to run ArgusReview automatically on Pull/Merge Requests.
294
+ Each integration uses environment variables for LLM and VCS configuration.
295
+
296
+ > For full configuration details (timeouts, artifacts, logging, prompt overrides), see [./docs/configs](./docs/configs).
297
+
298
+ ### 🚀 GitHub Actions
299
+
300
+ Add a workflow like this (manual trigger from **Actions** tab):
301
+
302
+ ```yaml
303
+ name: ArgusReview
304
+
305
+ on:
306
+ workflow_dispatch:
307
+ inputs:
308
+ review-command:
309
+ type: choice
310
+ default: run
311
+ options:
312
+ - run
313
+ - run-inline
314
+ - run-context
315
+ - run-summary
316
+ - run-inline-reply
317
+ - run-summary-reply
318
+ - clear-inline
319
+ - clear-summary
320
+ pull-request-number:
321
+ type: string
322
+ required: true
323
+ jobs:
324
+ argus-review:
325
+ runs-on: ubuntu-latest
326
+ steps:
327
+ - uses: actions/checkout@v6
328
+ with:
329
+ fetch-depth: 0
330
+
331
+ - uses: sang-hv/ai-code-review@main
332
+ with:
333
+ review-command: ${{ inputs.review-command }}
334
+ env:
335
+ # --- LLM configuration ---
336
+ LLM__PROVIDER: "OPENAI"
337
+ LLM__META__MODEL: "gpt-4o-mini"
338
+ LLM__META__MAX_TOKENS: "15000"
339
+ LLM__META__TEMPERATURE: "0.3"
340
+ LLM__HTTP_CLIENT__API_URL: "https://api.openai.com/v1"
341
+ LLM__HTTP_CLIENT__API_TOKEN: ${{ secrets.OPENAI_API_KEY }}
342
+
343
+ # --- GitHub integration ---
344
+ VCS__PROVIDER: "GITHUB"
345
+ VCS__PIPELINE__OWNER: ${{ github.repository_owner }}
346
+ VCS__PIPELINE__REPO: ${{ github.event.repository.name }}
347
+ VCS__PIPELINE__PULL_NUMBER: ${{ inputs.pull-request-number }}
348
+ VCS__HTTP_CLIENT__API_URL: "https://api.github.com"
349
+ VCS__HTTP_CLIENT__API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
350
+
351
+ ```
352
+
353
+ 🔗 Full example: [./docs/ci/github.yaml](./docs/ci/github.yaml)
354
+
355
+ ### 🚀 GitLab CI/CD
356
+
357
+ For GitLab users:
358
+
359
+ ```yaml
360
+ argus-review:
361
+ when: manual
362
+ stage: review
363
+ image: ai-code-review:latest # build from this repo's Dockerfile and push to your own registry
364
+ rules:
365
+ - if: '$CI_MERGE_REQUEST_IID'
366
+ script:
367
+ - argus-review run
368
+ variables:
369
+ # --- LLM configuration ---
370
+ LLM__PROVIDER: "OPENAI"
371
+ LLM__META__MODEL: "gpt-4o-mini"
372
+ LLM__META__MAX_TOKENS: "15000"
373
+ LLM__META__TEMPERATURE: "0.3"
374
+ LLM__HTTP_CLIENT__API_URL: "https://api.openai.com/v1"
375
+ LLM__HTTP_CLIENT__API_TOKEN: "$OPENAI_API_KEY"
376
+
377
+ # --- GitLab integration ---
378
+ VCS__PROVIDER: "GITLAB"
379
+ VCS__PIPELINE__PROJECT_ID: "$CI_PROJECT_ID"
380
+ VCS__PIPELINE__MERGE_REQUEST_ID: "$CI_MERGE_REQUEST_IID"
381
+ VCS__HTTP_CLIENT__API_URL: "$CI_SERVER_URL"
382
+ VCS__HTTP_CLIENT__API_TOKEN: "$CI_JOB_TOKEN"
383
+ allow_failure: true # Optional: don't block pipeline if ArgusReview fails
384
+
385
+ ```
386
+
387
+ 🔗 Full example: [./docs/ci/gitlab.yaml](./docs/ci/gitlab.yaml)
388
+
389
+ ---
390
+
391
+ ## 📘 Documentation
392
+
393
+ See these folders for reference templates and full configuration options:
394
+
395
+ - [./docs/ci](./docs/ci) — CI/CD integration templates (GitHub Actions, GitLab CI, Bitbucket Pipelines, Jenkins)
396
+ - [./docs/cli](./docs/cli) — CLI command reference and usage examples
397
+ - [./docs/hooks](./docs/hooks) — hook reference and lifecycle events
398
+ - [./docs/configs](./docs/configs) — full configuration examples (`.yaml`, `.json`, `.env`)
399
+ - [./docs/prompts](./docs/prompts) — prompt templates for Python/Go (light & strict modes)
400
+ - [./docs/troubleshooting.md](./docs/troubleshooting) — common environment and Git-related issues
401
+
402
+ ---
403
+
404
+ ## ⚠️ Privacy & Responsibility Notice
405
+
406
+ ArgusReview does **not store**, **log**, or **transmit** your source code to any external service other than the **LLM
407
+ provider** explicitly configured in your `.ai-review.yaml`.
408
+
409
+ All data is sent **directly** from your CI/CD environment to the selected LLM API endpoint (e.g. OpenAI, Gemini,
410
+ Claude, OpenRouter). No intermediary servers or storage layers are involved.
411
+
412
+ If you use **Ollama**, requests are sent to your **local or self-hosted Ollama runtime**
413
+ (by default `http://localhost:11434`). This allows you to run reviews completely **offline**, keeping all data strictly
414
+ inside your infrastructure.
415
+
416
+ > ⚠️ Please ensure you use proper API tokens and avoid exposing corporate or personal secrets.
417
+ > If you accidentally leak private code or credentials due to incorrect configuration (e.g., using a personal key
418
+ > instead of an enterprise one), it is **your responsibility** — the tool does not retain or share any data by itself.
419
+
420
+ ---
421
+
422
+ 🧠 **ArgusReview** — open-source AI-powered code reviewer
423
+
424
+ - 📂 [Source (this fork)](https://github.com/sang-hv/ai-code-review)
425
+ - 📦 [PyPI](https://pypi.org/project/argus-review-code/)
426
+ - 📜 [NOTICE — attribution & fork history](./NOTICE)