code-puppy 0.0.63__tar.gz → 0.0.65__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.63 → code_puppy-0.0.65}/PKG-INFO +7 -2
  2. {code_puppy-0.0.63 → code_puppy-0.0.65}/README.md +6 -1
  3. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/tools/common.py +0 -3
  4. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/tools/file_modifications.py +1 -1
  5. {code_puppy-0.0.63 → code_puppy-0.0.65}/pyproject.toml +1 -1
  6. {code_puppy-0.0.63 → code_puppy-0.0.65}/.gitignore +0 -0
  7. {code_puppy-0.0.63 → code_puppy-0.0.65}/LICENSE +0 -0
  8. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/__init__.py +0 -0
  9. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/agent.py +0 -0
  10. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/agent_prompts.py +0 -0
  11. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/command_line/__init__.py +0 -0
  12. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/command_line/file_path_completion.py +0 -0
  13. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/command_line/meta_command_handler.py +0 -0
  14. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/command_line/model_picker_completion.py +0 -0
  15. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/command_line/prompt_toolkit_completion.py +0 -0
  16. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/command_line/utils.py +0 -0
  17. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/config.py +0 -0
  18. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/main.py +0 -0
  19. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/model_factory.py +0 -0
  20. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/models.json +0 -0
  21. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/session_memory.py +0 -0
  22. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/tools/__init__.py +0 -0
  23. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/tools/command_runner.py +0 -0
  24. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/tools/file_operations.py +0 -0
  25. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/tools/ts_code_map.py +0 -0
  26. {code_puppy-0.0.63 → code_puppy-0.0.65}/code_puppy/tools/web_search.py +0 -0
  27. {code_puppy-0.0.63 → code_puppy-0.0.65}/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.63
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.
@@ -38,6 +38,11 @@ export MODEL_NAME=gpt-4.1 # or gemini-2.5-flash-preview-05-20 as an example for
38
38
  export OPENAI_API_KEY=<your_openai_api_key> # or GEMINI_API_KEY for Google Gemini models
39
39
  export YOLO_MODE=true # to bypass the safety confirmation prompt when running shell commands
40
40
 
41
+ # or ...
42
+
43
+ AZURE_OPENAI_API_KEY=...
44
+ AZURE_OPENAI_ENDPOINT=...
45
+
41
46
  code-puppy --interactive
42
47
  ```
43
48
  Running in a super weird corporate environment?
@@ -107,4 +112,4 @@ Ensure that all components follow these color schemes to promote consistency in
107
112
  ```
108
113
 
109
114
  ## Conclusion
110
- By using Code Puppy, you can maintain code quality and adhere to design guidelines with ease.
115
+ By using Code Puppy, you can maintain code quality and adhere to design guidelines with ease.
@@ -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,
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "code-puppy"
7
- version = "0.0.63"
7
+ version = "0.0.65"
8
8
  description = "Code generation agent"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes