patch-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 (164) hide show
  1. patch_code-0.1.0/LICENSE.txt +202 -0
  2. patch_code-0.1.0/MANIFEST.in +8 -0
  3. patch_code-0.1.0/PKG-INFO +467 -0
  4. patch_code-0.1.0/README.md +125 -0
  5. patch_code-0.1.0/patch/__init__.py +3 -0
  6. patch_code-0.1.0/patch/__main__.py +4 -0
  7. patch_code-0.1.0/patch/analytics.py +268 -0
  8. patch_code-0.1.0/patch/args.py +949 -0
  9. patch_code-0.1.0/patch/args_formatter.py +227 -0
  10. patch_code-0.1.0/patch/coders/__init__.py +34 -0
  11. patch_code-0.1.0/patch/coders/architect_coder.py +48 -0
  12. patch_code-0.1.0/patch/coders/architect_prompts.py +40 -0
  13. patch_code-0.1.0/patch/coders/ask_coder.py +9 -0
  14. patch_code-0.1.0/patch/coders/ask_prompts.py +41 -0
  15. patch_code-0.1.0/patch/coders/base_coder.py +2485 -0
  16. patch_code-0.1.0/patch/coders/base_prompts.py +60 -0
  17. patch_code-0.1.0/patch/coders/chat_chunks.py +64 -0
  18. patch_code-0.1.0/patch/coders/context_coder.py +53 -0
  19. patch_code-0.1.0/patch/coders/context_prompts.py +75 -0
  20. patch_code-0.1.0/patch/coders/editblock_coder.py +657 -0
  21. patch_code-0.1.0/patch/coders/editblock_fenced_coder.py +10 -0
  22. patch_code-0.1.0/patch/coders/editblock_fenced_prompts.py +143 -0
  23. patch_code-0.1.0/patch/coders/editblock_func_coder.py +141 -0
  24. patch_code-0.1.0/patch/coders/editblock_func_prompts.py +27 -0
  25. patch_code-0.1.0/patch/coders/editblock_prompts.py +172 -0
  26. patch_code-0.1.0/patch/coders/editor_diff_fenced_coder.py +9 -0
  27. patch_code-0.1.0/patch/coders/editor_diff_fenced_prompts.py +11 -0
  28. patch_code-0.1.0/patch/coders/editor_editblock_coder.py +8 -0
  29. patch_code-0.1.0/patch/coders/editor_editblock_prompts.py +18 -0
  30. patch_code-0.1.0/patch/coders/editor_whole_coder.py +8 -0
  31. patch_code-0.1.0/patch/coders/editor_whole_prompts.py +10 -0
  32. patch_code-0.1.0/patch/coders/help_coder.py +16 -0
  33. patch_code-0.1.0/patch/coders/help_prompts.py +46 -0
  34. patch_code-0.1.0/patch/coders/patch_coder.py +706 -0
  35. patch_code-0.1.0/patch/coders/patch_prompts.py +159 -0
  36. patch_code-0.1.0/patch/coders/search_replace.py +757 -0
  37. patch_code-0.1.0/patch/coders/shell.py +37 -0
  38. patch_code-0.1.0/patch/coders/single_wholefile_func_coder.py +102 -0
  39. patch_code-0.1.0/patch/coders/single_wholefile_func_prompts.py +27 -0
  40. patch_code-0.1.0/patch/coders/udiff_coder.py +429 -0
  41. patch_code-0.1.0/patch/coders/udiff_prompts.py +113 -0
  42. patch_code-0.1.0/patch/coders/udiff_simple.py +14 -0
  43. patch_code-0.1.0/patch/coders/udiff_simple_prompts.py +25 -0
  44. patch_code-0.1.0/patch/coders/wholefile_coder.py +144 -0
  45. patch_code-0.1.0/patch/coders/wholefile_func_coder.py +134 -0
  46. patch_code-0.1.0/patch/coders/wholefile_func_prompts.py +27 -0
  47. patch_code-0.1.0/patch/coders/wholefile_prompts.py +64 -0
  48. patch_code-0.1.0/patch/commands.py +1712 -0
  49. patch_code-0.1.0/patch/copypaste.py +72 -0
  50. patch_code-0.1.0/patch/deprecated.py +126 -0
  51. patch_code-0.1.0/patch/diffs.py +128 -0
  52. patch_code-0.1.0/patch/docs/__init__.py +1 -0
  53. patch_code-0.1.0/patch/docs/analytics.md +28 -0
  54. patch_code-0.1.0/patch/docs/config.md +43 -0
  55. patch_code-0.1.0/patch/docs/git.md +22 -0
  56. patch_code-0.1.0/patch/docs/install.md +54 -0
  57. patch_code-0.1.0/patch/docs/models.md +59 -0
  58. patch_code-0.1.0/patch/docs/troubleshooting.md +23 -0
  59. patch_code-0.1.0/patch/docs/usage.md +47 -0
  60. patch_code-0.1.0/patch/dump.py +29 -0
  61. patch_code-0.1.0/patch/editor.py +147 -0
  62. patch_code-0.1.0/patch/exceptions.py +113 -0
  63. patch_code-0.1.0/patch/format_settings.py +26 -0
  64. patch_code-0.1.0/patch/gui.py +545 -0
  65. patch_code-0.1.0/patch/help.py +118 -0
  66. patch_code-0.1.0/patch/history.py +143 -0
  67. patch_code-0.1.0/patch/io.py +1191 -0
  68. patch_code-0.1.0/patch/linter.py +304 -0
  69. patch_code-0.1.0/patch/llm.py +47 -0
  70. patch_code-0.1.0/patch/main.py +1274 -0
  71. patch_code-0.1.0/patch/mdstream.py +243 -0
  72. patch_code-0.1.0/patch/models.py +1338 -0
  73. patch_code-0.1.0/patch/onboarding.py +428 -0
  74. patch_code-0.1.0/patch/openrouter.py +128 -0
  75. patch_code-0.1.0/patch/prompts.py +61 -0
  76. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/arduino-tags.scm +5 -0
  77. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/bash-tags.scm +8 -0
  78. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/c-tags.scm +9 -0
  79. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/chatito-tags.scm +16 -0
  80. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/clojure-tags.scm +7 -0
  81. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/commonlisp-tags.scm +122 -0
  82. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/cpp-tags.scm +15 -0
  83. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/csharp-tags.scm +26 -0
  84. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/d-tags.scm +26 -0
  85. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/dart-tags.scm +92 -0
  86. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/elisp-tags.scm +5 -0
  87. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/elixir-tags.scm +54 -0
  88. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/elm-tags.scm +19 -0
  89. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/gleam-tags.scm +41 -0
  90. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/go-tags.scm +42 -0
  91. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/java-tags.scm +20 -0
  92. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/javascript-tags.scm +88 -0
  93. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/lua-tags.scm +34 -0
  94. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/matlab-tags.scm +10 -0
  95. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/ocaml-tags.scm +115 -0
  96. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/ocaml_interface-tags.scm +98 -0
  97. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/pony-tags.scm +39 -0
  98. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/properties-tags.scm +5 -0
  99. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/python-tags.scm +14 -0
  100. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/r-tags.scm +21 -0
  101. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/racket-tags.scm +12 -0
  102. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/ruby-tags.scm +64 -0
  103. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/rust-tags.scm +60 -0
  104. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/solidity-tags.scm +43 -0
  105. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/swift-tags.scm +51 -0
  106. patch_code-0.1.0/patch/queries/tree-sitter-language-pack/udev-tags.scm +20 -0
  107. patch_code-0.1.0/patch/queries/tree-sitter-languages/bash-tags.scm +8 -0
  108. patch_code-0.1.0/patch/queries/tree-sitter-languages/c-tags.scm +9 -0
  109. patch_code-0.1.0/patch/queries/tree-sitter-languages/c_sharp-tags.scm +46 -0
  110. patch_code-0.1.0/patch/queries/tree-sitter-languages/cpp-tags.scm +15 -0
  111. patch_code-0.1.0/patch/queries/tree-sitter-languages/dart-tags.scm +91 -0
  112. patch_code-0.1.0/patch/queries/tree-sitter-languages/elisp-tags.scm +8 -0
  113. patch_code-0.1.0/patch/queries/tree-sitter-languages/elixir-tags.scm +54 -0
  114. patch_code-0.1.0/patch/queries/tree-sitter-languages/elm-tags.scm +19 -0
  115. patch_code-0.1.0/patch/queries/tree-sitter-languages/fortran-tags.scm +15 -0
  116. patch_code-0.1.0/patch/queries/tree-sitter-languages/go-tags.scm +30 -0
  117. patch_code-0.1.0/patch/queries/tree-sitter-languages/haskell-tags.scm +3 -0
  118. patch_code-0.1.0/patch/queries/tree-sitter-languages/hcl-tags.scm +77 -0
  119. patch_code-0.1.0/patch/queries/tree-sitter-languages/java-tags.scm +20 -0
  120. patch_code-0.1.0/patch/queries/tree-sitter-languages/javascript-tags.scm +88 -0
  121. patch_code-0.1.0/patch/queries/tree-sitter-languages/julia-tags.scm +60 -0
  122. patch_code-0.1.0/patch/queries/tree-sitter-languages/kotlin-tags.scm +27 -0
  123. patch_code-0.1.0/patch/queries/tree-sitter-languages/matlab-tags.scm +10 -0
  124. patch_code-0.1.0/patch/queries/tree-sitter-languages/ocaml-tags.scm +115 -0
  125. patch_code-0.1.0/patch/queries/tree-sitter-languages/ocaml_interface-tags.scm +98 -0
  126. patch_code-0.1.0/patch/queries/tree-sitter-languages/php-tags.scm +26 -0
  127. patch_code-0.1.0/patch/queries/tree-sitter-languages/python-tags.scm +12 -0
  128. patch_code-0.1.0/patch/queries/tree-sitter-languages/ql-tags.scm +26 -0
  129. patch_code-0.1.0/patch/queries/tree-sitter-languages/ruby-tags.scm +64 -0
  130. patch_code-0.1.0/patch/queries/tree-sitter-languages/rust-tags.scm +60 -0
  131. patch_code-0.1.0/patch/queries/tree-sitter-languages/scala-tags.scm +65 -0
  132. patch_code-0.1.0/patch/queries/tree-sitter-languages/typescript-tags.scm +41 -0
  133. patch_code-0.1.0/patch/queries/tree-sitter-languages/zig-tags.scm +3 -0
  134. patch_code-0.1.0/patch/reasoning_tags.py +82 -0
  135. patch_code-0.1.0/patch/repo.py +622 -0
  136. patch_code-0.1.0/patch/repomap.py +867 -0
  137. patch_code-0.1.0/patch/report.py +200 -0
  138. patch_code-0.1.0/patch/resources/__init__.py +3 -0
  139. patch_code-0.1.0/patch/resources/model-metadata.json +715 -0
  140. patch_code-0.1.0/patch/resources/model-settings.yml +3128 -0
  141. patch_code-0.1.0/patch/run_cmd.py +132 -0
  142. patch_code-0.1.0/patch/scrape.py +284 -0
  143. patch_code-0.1.0/patch/sendchat.py +61 -0
  144. patch_code-0.1.0/patch/special.py +203 -0
  145. patch_code-0.1.0/patch/urls.py +17 -0
  146. patch_code-0.1.0/patch/utils.py +348 -0
  147. patch_code-0.1.0/patch/versioncheck.py +130 -0
  148. patch_code-0.1.0/patch/voice.py +187 -0
  149. patch_code-0.1.0/patch/waiting.py +221 -0
  150. patch_code-0.1.0/patch/watch.py +318 -0
  151. patch_code-0.1.0/patch/watch_prompts.py +12 -0
  152. patch_code-0.1.0/patch_code.egg-info/PKG-INFO +467 -0
  153. patch_code-0.1.0/patch_code.egg-info/SOURCES.txt +162 -0
  154. patch_code-0.1.0/patch_code.egg-info/dependency_links.txt +1 -0
  155. patch_code-0.1.0/patch_code.egg-info/entry_points.txt +2 -0
  156. patch_code-0.1.0/patch_code.egg-info/requires.txt +362 -0
  157. patch_code-0.1.0/patch_code.egg-info/top_level.txt +1 -0
  158. patch_code-0.1.0/pyproject.toml +51 -0
  159. patch_code-0.1.0/requirements/requirements-browser.txt +169 -0
  160. patch_code-0.1.0/requirements/requirements-dev.txt +255 -0
  161. patch_code-0.1.0/requirements/requirements-help.txt +496 -0
  162. patch_code-0.1.0/requirements/requirements-playwright.txt +18 -0
  163. patch_code-0.1.0/requirements.txt +507 -0
  164. patch_code-0.1.0/setup.cfg +4 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
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,8 @@
1
+ global-exclude .DS_Store
2
+
3
+ # Ignore legacy setuptools-scm output in existing source checkouts.
4
+ exclude patch/_version.py
5
+
6
+ recursive-include patch/resources *.json *.yml
7
+ recursive-include patch/queries *.scm
8
+ recursive-include patch/docs *.md
@@ -0,0 +1,467 @@
1
+ Metadata-Version: 2.4
2
+ Name: patch-code
3
+ Version: 0.1.0
4
+ Summary: Patch is AI pair programming in your terminal
5
+ Project-URL: Homepage, https://github.com/PierrunoYT/patch
6
+ Classifier: Development Status :: 4 - Beta
7
+ Classifier: Environment :: Console
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Topic :: Software Development
18
+ Requires-Python: <3.15,>=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE.txt
21
+ Requires-Dist: aiohappyeyeballs==2.6.1
22
+ Requires-Dist: aiohttp==3.13.3
23
+ Requires-Dist: aiosignal==1.4.0
24
+ Requires-Dist: annotated-doc==0.0.4
25
+ Requires-Dist: annotated-types==0.7.0
26
+ Requires-Dist: anyio==4.12.1
27
+ Requires-Dist: asgiref==3.11.1
28
+ Requires-Dist: async-timeout==5.0.1; python_full_version < "3.11"
29
+ Requires-Dist: attrs==25.4.0
30
+ Requires-Dist: audioop-lts==0.2.2; python_full_version >= "3.13"
31
+ Requires-Dist: backoff==2.2.1
32
+ Requires-Dist: beautifulsoup4==4.14.3
33
+ Requires-Dist: certifi==2026.2.25
34
+ Requires-Dist: cffi==2.0.0
35
+ Requires-Dist: charset-normalizer==3.4.6
36
+ Requires-Dist: click==8.3.1
37
+ Requires-Dist: colorama==0.4.6; sys_platform == "win32"
38
+ Requires-Dist: configargparse==1.7.5
39
+ Requires-Dist: diff-match-patch==20241021
40
+ Requires-Dist: diskcache==5.6.3
41
+ Requires-Dist: distro==1.9.0
42
+ Requires-Dist: exceptiongroup==1.3.1; python_full_version < "3.11"
43
+ Requires-Dist: fastapi==0.135.1
44
+ Requires-Dist: fastuuid==0.14.0
45
+ Requires-Dist: filelock==3.25.2
46
+ Requires-Dist: flake8==7.3.0
47
+ Requires-Dist: frozenlist==1.8.0
48
+ Requires-Dist: fsspec==2026.2.0
49
+ Requires-Dist: gitdb==4.0.12
50
+ Requires-Dist: gitpython==3.1.46
51
+ Requires-Dist: grep-ast==0.9.0
52
+ Requires-Dist: h11==0.16.0
53
+ Requires-Dist: hf-xet==1.4.2; platform_machine == "AMD64" or platform_machine == "aarch64" or platform_machine == "amd64" or platform_machine == "arm64" or platform_machine == "x86_64"
54
+ Requires-Dist: httpcore==1.0.9
55
+ Requires-Dist: httpx==0.28.1
56
+ Requires-Dist: huggingface-hub==1.7.1
57
+ Requires-Dist: idna==3.11
58
+ Requires-Dist: importlib-metadata==7.2.1
59
+ Requires-Dist: importlib-resources==6.5.2
60
+ Requires-Dist: jinja2==3.1.6
61
+ Requires-Dist: jiter==0.13.0
62
+ Requires-Dist: json5==0.13.0
63
+ Requires-Dist: jsonschema==4.26.0
64
+ Requires-Dist: jsonschema-specifications==2025.9.1
65
+ Requires-Dist: litellm==1.82.3
66
+ Requires-Dist: markdown-it-py==4.0.0
67
+ Requires-Dist: markupsafe==3.0.3
68
+ Requires-Dist: mccabe==0.7.0
69
+ Requires-Dist: mdurl==0.1.2
70
+ Requires-Dist: mixpanel==5.0.0
71
+ Requires-Dist: mslex==1.3.0
72
+ Requires-Dist: multidict==6.7.1
73
+ Requires-Dist: networkx==3.4.2
74
+ Requires-Dist: numpy==1.26.4; python_full_version < "3.11"
75
+ Requires-Dist: numpy==2.4.3; python_full_version >= "3.11"
76
+ Requires-Dist: openai==2.28.0
77
+ Requires-Dist: orjson==3.11.7
78
+ Requires-Dist: oslex==0.1.3
79
+ Requires-Dist: packaging==26.0
80
+ Requires-Dist: pathspec==1.0.4
81
+ Requires-Dist: pexpect==4.9.0
82
+ Requires-Dist: pillow==12.1.1
83
+ Requires-Dist: posthog==7.9.12
84
+ Requires-Dist: prompt-toolkit==3.0.52
85
+ Requires-Dist: propcache==0.4.1
86
+ Requires-Dist: psutil==7.2.2
87
+ Requires-Dist: ptyprocess==0.7.0
88
+ Requires-Dist: pycodestyle==2.14.0
89
+ Requires-Dist: pycparser==3.0; implementation_name != "PyPy"
90
+ Requires-Dist: pydantic==2.12.5
91
+ Requires-Dist: pydantic-core==2.41.5
92
+ Requires-Dist: pydub==0.25.1
93
+ Requires-Dist: pyflakes==3.4.0
94
+ Requires-Dist: pygments==2.19.2
95
+ Requires-Dist: pypandoc==1.17
96
+ Requires-Dist: pyperclip==1.11.0
97
+ Requires-Dist: python-dateutil==2.9.0.post0
98
+ Requires-Dist: python-dotenv==1.2.2
99
+ Requires-Dist: pyyaml==6.0.3
100
+ Requires-Dist: referencing==0.37.0
101
+ Requires-Dist: regex==2026.2.28
102
+ Requires-Dist: requests==2.32.5
103
+ Requires-Dist: rich==14.3.3
104
+ Requires-Dist: rpds-py==0.30.0
105
+ Requires-Dist: scipy==1.15.3; python_full_version < "3.11"
106
+ Requires-Dist: scipy==1.17.1; python_full_version >= "3.11"
107
+ Requires-Dist: shellingham==1.5.4
108
+ Requires-Dist: shtab==1.8.0
109
+ Requires-Dist: six==1.17.0
110
+ Requires-Dist: smmap==5.0.3
111
+ Requires-Dist: sniffio==1.3.1
112
+ Requires-Dist: socksio==1.0.0
113
+ Requires-Dist: sounddevice==0.5.5
114
+ Requires-Dist: soundfile==0.13.1
115
+ Requires-Dist: soupsieve==2.8.3
116
+ Requires-Dist: starlette==0.52.1
117
+ Requires-Dist: tiktoken==0.12.0
118
+ Requires-Dist: tokenizers==0.22.2
119
+ Requires-Dist: tqdm==4.67.3
120
+ Requires-Dist: tree-sitter==0.25.2
121
+ Requires-Dist: tree-sitter-c-sharp==0.23.1
122
+ Requires-Dist: tree-sitter-embedded-template==0.25.0
123
+ Requires-Dist: tree-sitter-language-pack==0.13.0
124
+ Requires-Dist: tree-sitter-yaml==0.7.2
125
+ Requires-Dist: typer==0.24.1
126
+ Requires-Dist: typing-extensions==4.15.0
127
+ Requires-Dist: typing-inspection==0.4.2
128
+ Requires-Dist: urllib3==2.6.3
129
+ Requires-Dist: watchfiles==1.1.1
130
+ Requires-Dist: wcwidth==0.6.0
131
+ Requires-Dist: yarl==1.23.0
132
+ Requires-Dist: zipp==3.23.0
133
+ Provides-Extra: dev
134
+ Requires-Dist: annotated-doc==0.0.4; extra == "dev"
135
+ Requires-Dist: build==1.4.0; extra == "dev"
136
+ Requires-Dist: cfgv==3.5.0; extra == "dev"
137
+ Requires-Dist: click==8.3.1; extra == "dev"
138
+ Requires-Dist: codespell==2.4.2; extra == "dev"
139
+ Requires-Dist: colorama==0.4.6; (os_name == "nt" or sys_platform == "win32") and extra == "dev"
140
+ Requires-Dist: contourpy==1.3.2; python_full_version < "3.11" and extra == "dev"
141
+ Requires-Dist: contourpy==1.3.3; python_full_version >= "3.11" and extra == "dev"
142
+ Requires-Dist: coverage[toml]==7.13.4; extra == "dev"
143
+ Requires-Dist: cycler==0.12.1; extra == "dev"
144
+ Requires-Dist: distlib==0.4.0; extra == "dev"
145
+ Requires-Dist: exceptiongroup==1.3.1; python_full_version < "3.11" and extra == "dev"
146
+ Requires-Dist: filelock==3.25.2; extra == "dev"
147
+ Requires-Dist: fonttools==4.62.1; extra == "dev"
148
+ Requires-Dist: identify==2.6.18; extra == "dev"
149
+ Requires-Dist: imgcat==0.6.0; extra == "dev"
150
+ Requires-Dist: importlib-metadata==7.2.1; python_full_version < "3.10.2" and extra == "dev"
151
+ Requires-Dist: iniconfig==2.3.0; extra == "dev"
152
+ Requires-Dist: kiwisolver==1.5.0; extra == "dev"
153
+ Requires-Dist: lox==1.0.0; extra == "dev"
154
+ Requires-Dist: markdown-it-py==4.0.0; extra == "dev"
155
+ Requires-Dist: matplotlib==3.10.8; extra == "dev"
156
+ Requires-Dist: mdurl==0.1.2; extra == "dev"
157
+ Requires-Dist: nodeenv==1.10.0; extra == "dev"
158
+ Requires-Dist: numpy==1.26.4; python_full_version < "3.11" and extra == "dev"
159
+ Requires-Dist: numpy==2.4.3; python_full_version >= "3.11" and extra == "dev"
160
+ Requires-Dist: packaging==26.0; extra == "dev"
161
+ Requires-Dist: pandas==2.3.3; extra == "dev"
162
+ Requires-Dist: pillow==12.1.1; extra == "dev"
163
+ Requires-Dist: pip==26.0.1; extra == "dev"
164
+ Requires-Dist: pip-tools==7.5.3; extra == "dev"
165
+ Requires-Dist: platformdirs==4.9.4; extra == "dev"
166
+ Requires-Dist: pluggy==1.6.0; extra == "dev"
167
+ Requires-Dist: pre-commit==4.5.1; extra == "dev"
168
+ Requires-Dist: pygments==2.19.2; extra == "dev"
169
+ Requires-Dist: pyparsing==3.3.2; extra == "dev"
170
+ Requires-Dist: pyproject-hooks==1.2.0; extra == "dev"
171
+ Requires-Dist: pytest==9.0.2; extra == "dev"
172
+ Requires-Dist: pytest-cov==7.0.0; extra == "dev"
173
+ Requires-Dist: pytest-env==1.6.0; extra == "dev"
174
+ Requires-Dist: python-dateutil==2.9.0.post0; extra == "dev"
175
+ Requires-Dist: python-discovery==1.1.3; extra == "dev"
176
+ Requires-Dist: python-dotenv==1.2.2; extra == "dev"
177
+ Requires-Dist: pytz==2026.1.post1; extra == "dev"
178
+ Requires-Dist: pyyaml==6.0.3; extra == "dev"
179
+ Requires-Dist: rich==14.3.3; extra == "dev"
180
+ Requires-Dist: setuptools==82.0.1; extra == "dev"
181
+ Requires-Dist: shellingham==1.5.4; extra == "dev"
182
+ Requires-Dist: six==1.17.0; extra == "dev"
183
+ Requires-Dist: tomli==2.4.1; python_full_version <= "3.11" and extra == "dev"
184
+ Requires-Dist: typer==0.24.1; extra == "dev"
185
+ Requires-Dist: typing-extensions==4.15.0; python_full_version < "3.11" and extra == "dev"
186
+ Requires-Dist: tzdata==2025.3; extra == "dev"
187
+ Requires-Dist: uv==0.10.11; extra == "dev"
188
+ Requires-Dist: virtualenv==21.2.0; extra == "dev"
189
+ Requires-Dist: wheel==0.46.3; extra == "dev"
190
+ Requires-Dist: zipp==3.23.0; python_full_version < "3.10.2" and extra == "dev"
191
+ Provides-Extra: help
192
+ Requires-Dist: aiohappyeyeballs==2.6.1; extra == "help"
193
+ Requires-Dist: aiohttp==3.13.3; extra == "help"
194
+ Requires-Dist: aiosignal==1.4.0; extra == "help"
195
+ Requires-Dist: aiosqlite==0.22.1; extra == "help"
196
+ Requires-Dist: annotated-doc==0.0.4; extra == "help"
197
+ Requires-Dist: annotated-types==0.7.0; extra == "help"
198
+ Requires-Dist: anyio==4.12.1; extra == "help"
199
+ Requires-Dist: async-timeout==5.0.1; python_full_version < "3.11" and extra == "help"
200
+ Requires-Dist: attrs==25.4.0; extra == "help"
201
+ Requires-Dist: banks==2.4.1; extra == "help"
202
+ Requires-Dist: certifi==2026.2.25; extra == "help"
203
+ Requires-Dist: charset-normalizer==3.4.6; extra == "help"
204
+ Requires-Dist: click==8.3.1; extra == "help"
205
+ Requires-Dist: colorama==0.4.6; extra == "help"
206
+ Requires-Dist: cuda-bindings==12.9.4; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
207
+ Requires-Dist: cuda-pathfinder==1.8.1; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
208
+ Requires-Dist: dataclasses-json==0.6.7; extra == "help"
209
+ Requires-Dist: deprecated==1.3.1; extra == "help"
210
+ Requires-Dist: dirtyjson==1.0.8; extra == "help"
211
+ Requires-Dist: exceptiongroup==1.3.1; python_full_version < "3.11" and extra == "help"
212
+ Requires-Dist: filelock==3.25.2; extra == "help"
213
+ Requires-Dist: filetype==1.2.0; extra == "help"
214
+ Requires-Dist: frozenlist==1.8.0; extra == "help"
215
+ Requires-Dist: fsspec==2026.2.0; extra == "help"
216
+ Requires-Dist: greenlet==3.3.2; extra == "help"
217
+ Requires-Dist: griffe==2.0.0; extra == "help"
218
+ Requires-Dist: griffecli==2.0.0; extra == "help"
219
+ Requires-Dist: griffelib==2.0.0; extra == "help"
220
+ Requires-Dist: h11==0.16.0; extra == "help"
221
+ Requires-Dist: hf-xet==1.4.2; (platform_machine == "AMD64" or platform_machine == "aarch64" or platform_machine == "amd64" or platform_machine == "arm64" or platform_machine == "x86_64") and extra == "help"
222
+ Requires-Dist: httpcore==1.0.9; extra == "help"
223
+ Requires-Dist: httpx==0.28.1; extra == "help"
224
+ Requires-Dist: huggingface-hub[inference]==1.7.1; extra == "help"
225
+ Requires-Dist: idna==3.11; extra == "help"
226
+ Requires-Dist: jinja2==3.1.6; extra == "help"
227
+ Requires-Dist: joblib==1.5.3; extra == "help"
228
+ Requires-Dist: llama-index-core==0.14.18; extra == "help"
229
+ Requires-Dist: llama-index-embeddings-huggingface==0.7.0; extra == "help"
230
+ Requires-Dist: llama-index-instrumentation==0.5.0; extra == "help"
231
+ Requires-Dist: llama-index-workflows==2.16.1; extra == "help"
232
+ Requires-Dist: markdown-it-py==4.0.0; extra == "help"
233
+ Requires-Dist: markupsafe==3.0.3; extra == "help"
234
+ Requires-Dist: marshmallow==3.26.2; extra == "help"
235
+ Requires-Dist: mdurl==0.1.2; extra == "help"
236
+ Requires-Dist: mpmath==1.3.0; extra == "help"
237
+ Requires-Dist: multidict==6.7.1; extra == "help"
238
+ Requires-Dist: mypy-extensions==1.1.0; extra == "help"
239
+ Requires-Dist: nest-asyncio==1.6.0; extra == "help"
240
+ Requires-Dist: networkx==3.4.2; extra == "help"
241
+ Requires-Dist: nltk==3.9.3; extra == "help"
242
+ Requires-Dist: numpy==1.26.4; python_full_version < "3.11" and extra == "help"
243
+ Requires-Dist: numpy==2.4.3; python_full_version >= "3.11" and extra == "help"
244
+ Requires-Dist: nvidia-cublas-cu12==12.8.4.1; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
245
+ Requires-Dist: nvidia-cuda-cupti-cu12==12.8.90; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
246
+ Requires-Dist: nvidia-cuda-nvrtc-cu12==12.8.93; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
247
+ Requires-Dist: nvidia-cuda-runtime-cu12==12.8.90; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
248
+ Requires-Dist: nvidia-cudnn-cu12==9.10.2.21; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
249
+ Requires-Dist: nvidia-cufft-cu12==11.3.3.83; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
250
+ Requires-Dist: nvidia-cufile-cu12==1.13.1.3; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
251
+ Requires-Dist: nvidia-curand-cu12==10.3.9.90; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
252
+ Requires-Dist: nvidia-cusolver-cu12==11.7.3.90; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
253
+ Requires-Dist: nvidia-cusparse-cu12==12.5.8.93; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
254
+ Requires-Dist: nvidia-cusparselt-cu12==0.7.1; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
255
+ Requires-Dist: nvidia-nccl-cu12==2.27.5; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
256
+ Requires-Dist: nvidia-nvjitlink-cu12==12.8.93; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
257
+ Requires-Dist: nvidia-nvshmem-cu12==3.4.5; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
258
+ Requires-Dist: nvidia-nvtx-cu12==12.8.90; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
259
+ Requires-Dist: packaging==26.0; extra == "help"
260
+ Requires-Dist: pillow==12.1.1; extra == "help"
261
+ Requires-Dist: platformdirs==4.9.4; extra == "help"
262
+ Requires-Dist: propcache==0.4.1; extra == "help"
263
+ Requires-Dist: pydantic==2.12.5; extra == "help"
264
+ Requires-Dist: pydantic-core==2.41.5; extra == "help"
265
+ Requires-Dist: pygments==2.19.2; extra == "help"
266
+ Requires-Dist: pyyaml==6.0.3; extra == "help"
267
+ Requires-Dist: regex==2026.2.28; extra == "help"
268
+ Requires-Dist: requests==2.32.5; extra == "help"
269
+ Requires-Dist: rich==14.3.3; extra == "help"
270
+ Requires-Dist: safetensors==0.7.0; extra == "help"
271
+ Requires-Dist: scikit-learn==1.7.2; python_full_version < "3.11" and extra == "help"
272
+ Requires-Dist: scikit-learn==1.8.0; python_full_version >= "3.11" and extra == "help"
273
+ Requires-Dist: scipy==1.15.3; python_full_version < "3.11" and extra == "help"
274
+ Requires-Dist: scipy==1.17.1; python_full_version >= "3.11" and extra == "help"
275
+ Requires-Dist: sentence-transformers==5.3.0; extra == "help"
276
+ Requires-Dist: setuptools==82.0.1; extra == "help"
277
+ Requires-Dist: shellingham==1.5.4; extra == "help"
278
+ Requires-Dist: sqlalchemy[asyncio]==2.0.48; extra == "help"
279
+ Requires-Dist: sympy==1.14.0; extra == "help"
280
+ Requires-Dist: tenacity==9.1.4; extra == "help"
281
+ Requires-Dist: threadpoolctl==3.6.0; extra == "help"
282
+ Requires-Dist: tiktoken==0.12.0; extra == "help"
283
+ Requires-Dist: tinytag==2.2.1; extra == "help"
284
+ Requires-Dist: tokenizers==0.22.2; extra == "help"
285
+ Requires-Dist: torch==2.10.0; extra == "help"
286
+ Requires-Dist: tqdm==4.67.3; extra == "help"
287
+ Requires-Dist: transformers==5.3.0; extra == "help"
288
+ Requires-Dist: triton==3.6.0; (platform_machine == "x86_64" and sys_platform == "linux") and extra == "help"
289
+ Requires-Dist: typer==0.24.1; extra == "help"
290
+ Requires-Dist: typing-extensions==4.15.0; extra == "help"
291
+ Requires-Dist: typing-inspect==0.9.0; extra == "help"
292
+ Requires-Dist: typing-inspection==0.4.2; extra == "help"
293
+ Requires-Dist: urllib3==2.6.3; extra == "help"
294
+ Requires-Dist: wrapt==2.1.2; extra == "help"
295
+ Requires-Dist: yarl==1.23.0; extra == "help"
296
+ Provides-Extra: browser
297
+ Requires-Dist: altair==6.0.0; extra == "browser"
298
+ Requires-Dist: attrs==25.4.0; extra == "browser"
299
+ Requires-Dist: blinker==1.9.0; extra == "browser"
300
+ Requires-Dist: cachetools==7.0.5; extra == "browser"
301
+ Requires-Dist: certifi==2026.2.25; extra == "browser"
302
+ Requires-Dist: charset-normalizer==3.4.6; extra == "browser"
303
+ Requires-Dist: click==8.3.1; extra == "browser"
304
+ Requires-Dist: colorama==0.4.6; sys_platform == "win32" and extra == "browser"
305
+ Requires-Dist: gitdb==4.0.12; extra == "browser"
306
+ Requires-Dist: gitpython==3.1.46; extra == "browser"
307
+ Requires-Dist: idna==3.11; extra == "browser"
308
+ Requires-Dist: jinja2==3.1.6; extra == "browser"
309
+ Requires-Dist: jsonschema==4.26.0; extra == "browser"
310
+ Requires-Dist: jsonschema-specifications==2025.9.1; extra == "browser"
311
+ Requires-Dist: markupsafe==3.0.3; extra == "browser"
312
+ Requires-Dist: narwhals==2.18.0; extra == "browser"
313
+ Requires-Dist: numpy==1.26.4; python_full_version < "3.11" and extra == "browser"
314
+ Requires-Dist: numpy==2.4.3; python_full_version >= "3.11" and extra == "browser"
315
+ Requires-Dist: packaging==26.0; extra == "browser"
316
+ Requires-Dist: pandas==2.3.3; extra == "browser"
317
+ Requires-Dist: pillow==12.1.1; extra == "browser"
318
+ Requires-Dist: protobuf==6.33.5; extra == "browser"
319
+ Requires-Dist: pyarrow==23.0.1; extra == "browser"
320
+ Requires-Dist: pydeck==0.9.1; extra == "browser"
321
+ Requires-Dist: python-dateutil==2.9.0.post0; extra == "browser"
322
+ Requires-Dist: pytz==2026.1.post1; extra == "browser"
323
+ Requires-Dist: referencing==0.37.0; extra == "browser"
324
+ Requires-Dist: requests==2.32.5; extra == "browser"
325
+ Requires-Dist: rpds-py==0.30.0; extra == "browser"
326
+ Requires-Dist: six==1.17.0; extra == "browser"
327
+ Requires-Dist: smmap==5.0.3; extra == "browser"
328
+ Requires-Dist: streamlit==1.55.0; extra == "browser"
329
+ Requires-Dist: tenacity==9.1.4; extra == "browser"
330
+ Requires-Dist: toml==0.10.2; extra == "browser"
331
+ Requires-Dist: tornado==6.5.5; extra == "browser"
332
+ Requires-Dist: typing-extensions==4.15.0; extra == "browser"
333
+ Requires-Dist: tzdata==2025.3; extra == "browser"
334
+ Requires-Dist: urllib3==2.6.3; extra == "browser"
335
+ Requires-Dist: watchdog==6.0.0; sys_platform != "darwin" and extra == "browser"
336
+ Provides-Extra: playwright
337
+ Requires-Dist: greenlet==3.3.2; extra == "playwright"
338
+ Requires-Dist: playwright==1.58.0; extra == "playwright"
339
+ Requires-Dist: pyee==13.0.1; extra == "playwright"
340
+ Requires-Dist: typing-extensions==4.15.0; extra == "playwright"
341
+ Dynamic: license-file
342
+
343
+ <p align="center">
344
+ <img src="assets/logo.svg" alt="PATCH wordmark" width="300">
345
+ </p>
346
+
347
+ <h1 align="center">Patch</h1>
348
+
349
+ <p align="center">
350
+ <strong>AI pair programming in your terminal.</strong><br>
351
+ Work with your codebase. Make changes with an LLM. Review them with Git.
352
+ </p>
353
+
354
+ <p align="center">
355
+ <a href="#quick-start">Quick start</a> ·
356
+ <a href="#documentation">Documentation</a> ·
357
+ <a href="CHANGELOG.md">Changelog</a> ·
358
+ <a href="https://github.com/PierrunoYT/patch/issues">Report an issue</a>
359
+ </p>
360
+
361
+ Patch is a command-line coding assistant that helps you build features, fix bugs,
362
+ and navigate existing projects using cloud or local language models. It maps your
363
+ repository for context, edits files directly, and integrates with your Git workflow.
364
+
365
+ ## Features
366
+
367
+ - **Choose your model.** Connect to cloud providers or local models.
368
+ - **Work across your codebase.** Use a repository map to give the model context beyond individual files.
369
+ - **Review changes with Git.** Inspect diffs, create commits, and undo AI-generated changes.
370
+ - **Iterate with checks.** Run linters and tests, then ask Patch to address failures.
371
+ - **Bring more context.** Add images, web pages, and voice input to your coding conversations.
372
+ - **Use your existing tools.** Work in the terminal alongside your editor, or try the experimental browser UI.
373
+
374
+ ## Quick start
375
+
376
+ Requires **Python 3.10–3.14**. Install the `patch-code` package in a virtual environment:
377
+
378
+ ```bash
379
+ python -m venv .venv
380
+
381
+ # macOS / Linux
382
+ source .venv/bin/activate
383
+
384
+ # Windows PowerShell
385
+ # .venv\Scripts\Activate.ps1
386
+
387
+ python -m pip install patch-code
388
+ ```
389
+
390
+ Open your project and start a conversation:
391
+
392
+ ```bash
393
+ cd /path/to/your/project
394
+ python -m patch --model sonnet --api-key anthropic=YOUR_API_KEY
395
+ ```
396
+
397
+ The `patch` command is also available when your virtual environment is active.
398
+ Use `python -m patch` to avoid ambiguity with the standard Unix `patch` utility.
399
+
400
+ Run `python -m patch --help` for all options. See the
401
+ [model configuration guide](patch/docs/models.md) for other providers.
402
+
403
+ ### Install from source
404
+
405
+ To work with the current checkout instead of a published PyPI release:
406
+
407
+ ```bash
408
+ git clone https://github.com/PierrunoYT/patch.git
409
+ cd patch
410
+ # Activate a virtual environment first, as shown above.
411
+ python -m pip install -e .
412
+ python -m patch --help
413
+ ```
414
+
415
+ ## Configuration
416
+
417
+ | Component | Name |
418
+ | --- | --- |
419
+ | PyPI package | `patch-code` |
420
+ | Python module | `patch` |
421
+ | Terminal command | `patch` or `python -m patch` |
422
+ | Configuration file | `.patch.conf.yml` |
423
+ | State and history files | `.patch*` |
424
+ | Application environment variables | `PATCH_*` |
425
+
426
+ Provider credentials keep their provider-specific names, such as `ANTHROPIC_API_KEY`
427
+ and `OPENAI_API_KEY`. Keep credentials out of version control.
428
+
429
+ ### Moving from Aider
430
+
431
+ Patch does not automatically read or migrate Aider configuration. Rename and review
432
+ your `.aider*` configuration files as `.patch*`, and update application environment
433
+ variables from `AIDER_*` to `PATCH_*` before using them with Patch.
434
+
435
+ ## Documentation
436
+
437
+ - [Installation and optional extras](patch/docs/install.md)
438
+ - [Usage guide](patch/docs/usage.md)
439
+ - [Model configuration](patch/docs/models.md)
440
+ - [Configuration options](patch/docs/config.md)
441
+ - [Git integration](patch/docs/git.md)
442
+ - [Troubleshooting](patch/docs/troubleshooting.md)
443
+ - [Analytics](patch/docs/analytics.md)
444
+ - [Patch changelog](CHANGELOG.md)
445
+ - [Contributing](CONTRIBUTING.md)
446
+
447
+ These Markdown docs are packaged with Patch for `/help <question>`.
448
+ Patch does not maintain a separate documentation website.
449
+
450
+ ## Logos
451
+
452
+ - [Wide PATCH wordmark](assets/logo.svg) — 2048 × 686, lettering only.
453
+ - [Square P icon](assets/logo-icon.svg) — 2048 × 2048.
454
+
455
+ Both SVGs use mint on charcoal and scale without requiring fonts.
456
+ The root `assets/` folder contains the logos.
457
+
458
+ ## License and attribution
459
+
460
+ Patch is a fork of [Aider](https://github.com/Aider-AI/aider), developed in
461
+ [PierrunoYT/patch](https://github.com/PierrunoYT/patch). This repository is licensed
462
+ under [Apache 2.0](LICENSE.txt).
463
+
464
+ The [inherited release history](HISTORY.md) and retained [benchmark data](benchmark/data/)
465
+ are upstream material, not claims about Patch. Historical documentation links point
466
+ to upstream Aider's GitHub sources. The inherited website, articles, and recordings
467
+ are no longer bundled with Patch.