code-puppy 0.0.63__py3-none-any.whl → 0.0.64__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.
@@ -59,9 +59,6 @@ def should_ignore_path(path: str) -> bool:
59
59
  return False
60
60
 
61
61
 
62
- JW_THRESHOLD = 0.95
63
-
64
-
65
62
  def _find_best_window(
66
63
  haystack_lines: list[str],
67
64
  needle: str,
@@ -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 is None:
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.63
3
+ Version: 0.0.64
4
4
  Summary: Code generation agent
5
5
  Author: Michael Pfaffenberger
6
6
  License: MIT
@@ -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=4AmPc_jx45nhJBS1TMhqF-i9pJZzmyOmYBcrqFAhSIE,2275
19
- code_puppy/tools/file_modifications.py,sha256=nEHvdHJ1ige82gguf7-dybD0_e5AYFVARsYFgaTGLfY,13056
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.63.data/data/code_puppy/models.json,sha256=3tiU7_ra39CK8aOFRsVqG7veZDdzq8hAmI5BcfZEWck,1393
24
- code_puppy-0.0.63.dist-info/METADATA,sha256=I5JUsQF5EMgDmkLwuhhf5sPBLjFk8mFLen3bjBIkKDY,4878
25
- code_puppy-0.0.63.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
- code_puppy-0.0.63.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
27
- code_puppy-0.0.63.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
28
- code_puppy-0.0.63.dist-info/RECORD,,
23
+ code_puppy-0.0.64.data/data/code_puppy/models.json,sha256=3tiU7_ra39CK8aOFRsVqG7veZDdzq8hAmI5BcfZEWck,1393
24
+ code_puppy-0.0.64.dist-info/METADATA,sha256=S0Y70GHyUm7VRhc_B1BCzeqrJDlOCMv107K28Ayrooo,4878
25
+ code_puppy-0.0.64.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ code_puppy-0.0.64.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
27
+ code_puppy-0.0.64.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
28
+ code_puppy-0.0.64.dist-info/RECORD,,