code-puppy 0.0.62__tar.gz → 0.0.64__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 (27) hide show
  1. {code_puppy-0.0.62 → code_puppy-0.0.64}/PKG-INFO +1 -1
  2. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/tools/common.py +0 -3
  3. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/tools/file_modifications.py +1 -1
  4. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/tools/ts_code_map.py +0 -8
  5. {code_puppy-0.0.62 → code_puppy-0.0.64}/pyproject.toml +1 -1
  6. {code_puppy-0.0.62 → code_puppy-0.0.64}/.gitignore +0 -0
  7. {code_puppy-0.0.62 → code_puppy-0.0.64}/LICENSE +0 -0
  8. {code_puppy-0.0.62 → code_puppy-0.0.64}/README.md +0 -0
  9. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/__init__.py +0 -0
  10. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/agent.py +0 -0
  11. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/agent_prompts.py +0 -0
  12. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/command_line/__init__.py +0 -0
  13. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/command_line/file_path_completion.py +0 -0
  14. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/command_line/meta_command_handler.py +0 -0
  15. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/command_line/model_picker_completion.py +0 -0
  16. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/command_line/prompt_toolkit_completion.py +0 -0
  17. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/command_line/utils.py +0 -0
  18. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/config.py +0 -0
  19. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/main.py +0 -0
  20. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/model_factory.py +0 -0
  21. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/models.json +0 -0
  22. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/session_memory.py +0 -0
  23. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/tools/__init__.py +0 -0
  24. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/tools/command_runner.py +0 -0
  25. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/tools/file_operations.py +0 -0
  26. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/tools/web_search.py +0 -0
  27. {code_puppy-0.0.62 → code_puppy-0.0.64}/code_puppy/version_checker.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code-puppy
3
- Version: 0.0.62
3
+ Version: 0.0.64
4
4
  Summary: Code generation agent
5
5
  Author: Michael Pfaffenberger
6
6
  License: MIT
@@ -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,
@@ -279,14 +279,6 @@ LANGS = {
279
279
  "function_definition": partial(_f("function {name}()"), style="green")
280
280
  },
281
281
  },
282
- ".css": {
283
- "lang": "css",
284
- "name_field": "name",
285
- "nodes": {
286
- "class_selector": partial(_f(".{name}"), style="yellow"),
287
- "id_selector": partial(_f("#{name}"), style="yellow"),
288
- },
289
- },
290
282
  }
291
283
 
292
284
  # Cache parsers so we don’t re-create them file-after-file
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "code-puppy"
7
- version = "0.0.62"
7
+ version = "0.0.64"
8
8
  description = "Code generation agent"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes
File without changes