code-puppy 0.0.63__py3-none-any.whl → 0.0.65__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- code_puppy/tools/common.py +0 -3
- code_puppy/tools/file_modifications.py +1 -1
- {code_puppy-0.0.63.dist-info → code_puppy-0.0.65.dist-info}/METADATA +7 -2
- {code_puppy-0.0.63.dist-info → code_puppy-0.0.65.dist-info}/RECORD +8 -8
- {code_puppy-0.0.63.data → code_puppy-0.0.65.data}/data/code_puppy/models.json +0 -0
- {code_puppy-0.0.63.dist-info → code_puppy-0.0.65.dist-info}/WHEEL +0 -0
- {code_puppy-0.0.63.dist-info → code_puppy-0.0.65.dist-info}/entry_points.txt +0 -0
- {code_puppy-0.0.63.dist-info → code_puppy-0.0.65.dist-info}/licenses/LICENSE +0 -0
code_puppy/tools/common.py
CHANGED
|
@@ -110,7 +110,7 @@ def _replace_in_file(
|
|
|
110
110
|
orig_lines = modified.splitlines()
|
|
111
111
|
loc, score = _find_best_window(orig_lines, old_snippet)
|
|
112
112
|
|
|
113
|
-
if loc
|
|
113
|
+
if score < 0.95 or loc == None:
|
|
114
114
|
return {
|
|
115
115
|
"error": "No suitable match in file (JW < 0.95)",
|
|
116
116
|
"jw_score": score,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-puppy
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.65
|
|
4
4
|
Summary: Code generation agent
|
|
5
5
|
Author: Michael Pfaffenberger
|
|
6
6
|
License: MIT
|
|
@@ -71,6 +71,11 @@ export MODEL_NAME=gpt-4.1 # or gemini-2.5-flash-preview-05-20 as an example for
|
|
|
71
71
|
export OPENAI_API_KEY=<your_openai_api_key> # or GEMINI_API_KEY for Google Gemini models
|
|
72
72
|
export YOLO_MODE=true # to bypass the safety confirmation prompt when running shell commands
|
|
73
73
|
|
|
74
|
+
# or ...
|
|
75
|
+
|
|
76
|
+
AZURE_OPENAI_API_KEY=...
|
|
77
|
+
AZURE_OPENAI_ENDPOINT=...
|
|
78
|
+
|
|
74
79
|
code-puppy --interactive
|
|
75
80
|
```
|
|
76
81
|
Running in a super weird corporate environment?
|
|
@@ -140,4 +145,4 @@ Ensure that all components follow these color schemes to promote consistency in
|
|
|
140
145
|
```
|
|
141
146
|
|
|
142
147
|
## Conclusion
|
|
143
|
-
By using Code Puppy, you can maintain code quality and adhere to design guidelines with ease.
|
|
148
|
+
By using Code Puppy, you can maintain code quality and adhere to design guidelines with ease.
|
|
@@ -15,14 +15,14 @@ code_puppy/command_line/prompt_toolkit_completion.py,sha256=_gP0FIOgHDNHTTWLNL0X
|
|
|
15
15
|
code_puppy/command_line/utils.py,sha256=7eyxDHjPjPB9wGDJQQcXV_zOsGdYsFgI0SGCetVmTqE,1251
|
|
16
16
|
code_puppy/tools/__init__.py,sha256=J_HCbkivdr1rP5vfucxttXhGmTBx0S2LNoDMrbaE-Fc,558
|
|
17
17
|
code_puppy/tools/command_runner.py,sha256=cEphrDyr12CoqpKizzaxhMHhG1HiVcqXArTkwc6lvxU,6760
|
|
18
|
-
code_puppy/tools/common.py,sha256=
|
|
19
|
-
code_puppy/tools/file_modifications.py,sha256=
|
|
18
|
+
code_puppy/tools/common.py,sha256=M53zhiXZAmPdvi1Y_bzCxgvEmifOvRRJvYPARYRZqHw,2253
|
|
19
|
+
code_puppy/tools/file_modifications.py,sha256=d0fC2CCnkmv0kEJ8kvKTuUMTww3S_mgF06h9g93212A,13072
|
|
20
20
|
code_puppy/tools/file_operations.py,sha256=xqj7MiK6sGTaC8NMrMRTybWlXG32S-DjybqJtnufRcI,11715
|
|
21
21
|
code_puppy/tools/ts_code_map.py,sha256=hsxcrlwQR-AZbR4MpiOCtXK8p-u_yUMlk7DB34elZes,12981
|
|
22
22
|
code_puppy/tools/web_search.py,sha256=sA2ierjuuYA517-uhb5s53SgeVsyOe1nExoZsrU1Fps,1284
|
|
23
|
-
code_puppy-0.0.
|
|
24
|
-
code_puppy-0.0.
|
|
25
|
-
code_puppy-0.0.
|
|
26
|
-
code_puppy-0.0.
|
|
27
|
-
code_puppy-0.0.
|
|
28
|
-
code_puppy-0.0.
|
|
23
|
+
code_puppy-0.0.65.data/data/code_puppy/models.json,sha256=3tiU7_ra39CK8aOFRsVqG7veZDdzq8hAmI5BcfZEWck,1393
|
|
24
|
+
code_puppy-0.0.65.dist-info/METADATA,sha256=G0kU0oSXYlAnu2pDm0w_WCtHtSvkwO2t6lzyw8q24z0,4941
|
|
25
|
+
code_puppy-0.0.65.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
26
|
+
code_puppy-0.0.65.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
|
|
27
|
+
code_puppy-0.0.65.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
|
|
28
|
+
code_puppy-0.0.65.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|