code-puppy 0.0.34__tar.gz → 0.0.36__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.34 → code_puppy-0.0.36}/PKG-INFO +1 -1
  2. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/command_line/meta_command_handler.py +2 -2
  3. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/command_line/prompt_toolkit_completion.py +3 -3
  4. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/model_factory.py +4 -4
  5. {code_puppy-0.0.34 → code_puppy-0.0.36}/pyproject.toml +1 -1
  6. {code_puppy-0.0.34 → code_puppy-0.0.36}/.gitignore +0 -0
  7. {code_puppy-0.0.34 → code_puppy-0.0.36}/LICENSE +0 -0
  8. {code_puppy-0.0.34 → code_puppy-0.0.36}/README.md +0 -0
  9. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/__init__.py +0 -0
  10. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/agent.py +0 -0
  11. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/agent_prompts.py +0 -0
  12. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/command_line/__init__.py +0 -0
  13. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/command_line/file_path_completion.py +0 -0
  14. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/command_line/model_picker_completion.py +0 -0
  15. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/command_line/utils.py +0 -0
  16. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/config.py +0 -0
  17. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/main.py +0 -0
  18. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/models.json +0 -0
  19. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/session_memory.py +0 -0
  20. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/tools/__init__.py +0 -0
  21. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/tools/code_map.py +0 -0
  22. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/tools/command_runner.py +0 -0
  23. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/tools/common.py +0 -0
  24. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/tools/file_modifications.py +0 -0
  25. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/tools/file_operations.py +0 -0
  26. {code_puppy-0.0.34 → code_puppy-0.0.36}/code_puppy/tools/web_search.py +0 -0
  27. {code_puppy-0.0.34 → code_puppy-0.0.36}/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.34
3
+ Version: 0.0.36
4
4
  Summary: Code generation agent
5
5
  Author: Michael Pfaffenberger
6
6
  License: MIT
@@ -23,7 +23,7 @@ def handle_meta_command(command: str, console: Console) -> bool:
23
23
  Returns True if the command was handled (even if just an error/help), False if not.
24
24
  """
25
25
  command = command.strip()
26
- if command.startswith("~ls"):
26
+ if command.startswith("~cd"):
27
27
  tokens = command.split()
28
28
  if len(tokens) == 1:
29
29
  try:
@@ -57,7 +57,7 @@ def handle_meta_command(command: str, console: Console) -> bool:
57
57
  console.print(f"[yellow]Usage:[/yellow] ~m <model_name>")
58
58
  return True
59
59
  if command in ("~help", "~h"):
60
- console.print("[bold magenta]Meta commands available:[/bold magenta]\n ~m <model>: Pick a model from your list!\n ~ls [dir]: List/change directories\n ~codemap [dir]: Visualize project code structure\n ~help: Show this help\n (More soon. Woof!)")
60
+ console.print("[bold magenta]Meta commands available:[/bold magenta]\n ~m <model>: Pick a model from your list!\n ~cd [dir]: Change directories\n ~codemap [dir]: Visualize project code structure\n ~help: Show this help\n (More soon. Woof!)")
61
61
  return True
62
62
  if command.startswith("~"):
63
63
  name = command[1:].split()[0] if len(command)>1 else ""
@@ -25,8 +25,8 @@ from code_puppy.command_line.file_path_completion import FilePathCompleter
25
25
 
26
26
  from prompt_toolkit.completion import Completer, Completion
27
27
 
28
- class LSCompleter(Completer):
29
- def __init__(self, trigger: str = '~ls'):
28
+ class CDCompleter(Completer):
29
+ def __init__(self, trigger: str = '~cd'):
30
30
  self.trigger = trigger
31
31
  def get_completions(self, document, complete_event):
32
32
  text = document.text_before_cursor
@@ -81,7 +81,7 @@ async def get_input_with_combined_completion(prompt_str = '>>> ', history_file:
81
81
  completer = merge_completers([
82
82
  FilePathCompleter(symbol='@'),
83
83
  ModelNameCompleter(trigger='~m'),
84
- LSCompleter(trigger='~ls'),
84
+ CDCompleter(trigger='~cd'),
85
85
  ])
86
86
  session = PromptSession(
87
87
  completer=completer,
@@ -139,11 +139,11 @@ def get_custom_config(model_config):
139
139
  ca_certs_path = custom_config.get("ca_certs_path")
140
140
 
141
141
  api_key = None
142
- if "api_key" in model_config:
143
- if model_config["api_key"].startswith("$"):
144
- api_key = os.environ.get(model_config["api_key"][1:])
142
+ if "api_key" in custom_config:
143
+ if custom_config["api_key"].startswith("$"):
144
+ api_key = os.environ.get(custom_config["api_key"][1:])
145
145
  else:
146
- api_key = model_config["api_key"]
146
+ api_key = custom_config["api_key"]
147
147
  return url, headers, ca_certs_path, api_key
148
148
 
149
149
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "code-puppy"
7
- version = "0.0.34"
7
+ version = "0.0.36"
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