code-puppy 0.0.147__py3-none-any.whl → 0.0.148__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/agent.py CHANGED
@@ -24,11 +24,19 @@ from code_puppy.tools.common import console
24
24
 
25
25
  def load_puppy_rules():
26
26
  global PUPPY_RULES
27
- puppy_rules_path = Path("AGENT.md")
28
- if puppy_rules_path.exists():
29
- with open(puppy_rules_path, "r") as f:
30
- puppy_rules = f.read()
31
- return puppy_rules
27
+
28
+ # Check for all 4 combinations of the rules file
29
+ possible_paths = ["AGENTS.md", "AGENT.md", "agents.md", "agent.md"]
30
+
31
+ for path_str in possible_paths:
32
+ puppy_rules_path = Path(path_str)
33
+ if puppy_rules_path.exists():
34
+ with open(puppy_rules_path, "r") as f:
35
+ puppy_rules = f.read()
36
+ return puppy_rules
37
+
38
+ # If none of the files exist, return None
39
+ return None
32
40
 
33
41
 
34
42
  # Load at import
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code-puppy
3
- Version: 0.0.147
3
+ Version: 0.0.148
4
4
  Summary: Code generation agent
5
5
  Project-URL: repository, https://github.com/mpfaffenberger/code_puppy
6
6
  Project-URL: HomePage, https://github.com/mpfaffenberger/code_puppy
@@ -1,6 +1,6 @@
1
1
  code_puppy/__init__.py,sha256=ehbM1-wMjNmOXk_DBhhJECFyBv2dRHwwo7ucjHeM68E,107
2
2
  code_puppy/__main__.py,sha256=pDVssJOWP8A83iFkxMLY9YteHYat0EyWDQqMkKHpWp4,203
3
- code_puppy/agent.py,sha256=3pbcyM_WjY4OsOYtWxfglpcnD7H8TxUJLNFELVMgJcA,7000
3
+ code_puppy/agent.py,sha256=rWqJ2849HSrWPX-IzI31v2sH6_j5pnBRfuum3yxUNt8,7256
4
4
  code_puppy/callbacks.py,sha256=6wYB6K_fGSCkKKEFaYOYkJT45WaV5W_NhUIzcvVH_nU,5060
5
5
  code_puppy/config.py,sha256=-RaEpG-k5ObjaSYY8SNpVI1dXzujZxKWj-vlLRTsyHY,16166
6
6
  code_puppy/http_utils.py,sha256=BAvt4hed7fVMXglA7eS9gOb08h2YTuOyai6VmQq09fg,3432
@@ -126,9 +126,9 @@ code_puppy/tui/tests/test_sidebar_history_navigation.py,sha256=JGiyua8A2B8dLfwiE
126
126
  code_puppy/tui/tests/test_status_bar.py,sha256=nYT_FZGdmqnnbn6o0ZuOkLtNUtJzLSmtX8P72liQ5Vo,1797
127
127
  code_puppy/tui/tests/test_timestamped_history.py,sha256=nVXt9hExZZ_8MFP-AZj4L4bB_1Eo_mc-ZhVICzTuw3I,1799
128
128
  code_puppy/tui/tests/test_tools.py,sha256=kgzzAkK4r0DPzQwHHD4cePpVNgrHor6cFr05Pg6DBWg,2687
129
- code_puppy-0.0.147.data/data/code_puppy/models.json,sha256=dAfpMMI2EEeOMv0ynHSmMuJAYDLcZrs5gCLX3voC4-A,3252
130
- code_puppy-0.0.147.dist-info/METADATA,sha256=GFB0zd_QenxfR3j2Fr8UTDjF9i0obW0VxYF-vybzyws,22019
131
- code_puppy-0.0.147.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
132
- code_puppy-0.0.147.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
133
- code_puppy-0.0.147.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
134
- code_puppy-0.0.147.dist-info/RECORD,,
129
+ code_puppy-0.0.148.data/data/code_puppy/models.json,sha256=dAfpMMI2EEeOMv0ynHSmMuJAYDLcZrs5gCLX3voC4-A,3252
130
+ code_puppy-0.0.148.dist-info/METADATA,sha256=Gxu4e21Z4fC4F_oYTX52Czb96v-0zC0L4UECmCGRars,22019
131
+ code_puppy-0.0.148.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
132
+ code_puppy-0.0.148.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
133
+ code_puppy-0.0.148.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
134
+ code_puppy-0.0.148.dist-info/RECORD,,