code-puppy 0.0.34__py3-none-any.whl → 0.0.36__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.
@@ -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
 
@@ -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
@@ -3,15 +3,15 @@ code_puppy/agent.py,sha256=lXQM7vaHilMMtY04YrjrGfkZyp25ifaObDYOyvfKoys,3154
3
3
  code_puppy/agent_prompts.py,sha256=O8vzlEPct6qRNhKSRctJRwq3aDOhT_-vyVozS5DtmVA,6554
4
4
  code_puppy/config.py,sha256=DvmctmrHsOmjiXaiwT-4vAUiTZ4Cib-imyjKewI70eU,1661
5
5
  code_puppy/main.py,sha256=bc27bk6rFge95H2BumTTzRLtOx43z5FnsmjIjQx_RpU,10052
6
- code_puppy/model_factory.py,sha256=IAiOBWxL2LC8PZ3xzesRvKsLAOuZBgWzn5Mh_gT8rRM,8466
6
+ code_puppy/model_factory.py,sha256=CWu9cl1drEaeA11AXtlWPEgMKqzvkjmoLc4Pq2exI1A,8470
7
7
  code_puppy/models.json,sha256=Bt4rkn2tHR4UA8kanovpxtW0_-T5TooKrtUpzJNipmo,2212
8
8
  code_puppy/session_memory.py,sha256=vuLSw1Pfa-MXD4lD8hj2qt65OR_aL2WdoMuF6Jwnc1k,2597
9
9
  code_puppy/version_checker.py,sha256=cK-eU7Y_yYjn7feIONqzzZUdiedozL0iiKXlGKjfq68,395
10
10
  code_puppy/command_line/__init__.py,sha256=y7WeRemfYppk8KVbCGeAIiTuiOszIURCDjOMZv_YRmU,45
11
11
  code_puppy/command_line/file_path_completion.py,sha256=HAlOu9XVYgJ7FbjdrhKBL0rFmCVFxSGGewdcfKTUsPw,2865
12
- code_puppy/command_line/meta_command_handler.py,sha256=9lg2-UFKin8M67mdleECglWq30sFe61hHhaVsxBpnas,3326
12
+ code_puppy/command_line/meta_command_handler.py,sha256=Q-aDOZfefF0m2Bo-N6_DNVvT0gLrg8nBalrK1uJwEUA,3321
13
13
  code_puppy/command_line/model_picker_completion.py,sha256=5D2HkrMCtee7Eo6augls4KU6bh7tu7xR2zH5triRuZg,3658
14
- code_puppy/command_line/prompt_toolkit_completion.py,sha256=gsHFLAIpoR9Iiw0s46fSJ9oFj4r-e5VB2vupRu84xys,4813
14
+ code_puppy/command_line/prompt_toolkit_completion.py,sha256=gGR8fsu7dhLbkTqtcBYaj5AJvG0De9zYpaVPKOb8O-M,4813
15
15
  code_puppy/command_line/utils.py,sha256=L1PnV9tNupEW1zeziyb5aGAq8DYP8sMiuQbFYLO5Nus,1236
16
16
  code_puppy/tools/__init__.py,sha256=48BVpMt0HAMtz8G_z9SQhX6LnRqR83_AVfMQMf7bY0g,557
17
17
  code_puppy/tools/code_map.py,sha256=BghDHaebhGDfDGvA34gwO_5r92Py4O0Q3J4RV-WtnWs,3155
@@ -20,9 +20,9 @@ code_puppy/tools/common.py,sha256=dbmyZTrTBQh_0WWpaYN6jEync62W2mMrzNS8UFK0co4,14
20
20
  code_puppy/tools/file_modifications.py,sha256=V8as4Pp_qBJSUFuFl5Y-jpiJKH0tUEQ8dNdkGHzpQM0,11645
21
21
  code_puppy/tools/file_operations.py,sha256=9M-JntSSTElsLZ1EMLo9Xu2ifje-N0hjXbwARoBm2Tw,9722
22
22
  code_puppy/tools/web_search.py,sha256=HhcwX0MMvMDPFO8gr8gzgesD5wPXOypjkxyLZeNwL5g,589
23
- code_puppy-0.0.34.data/data/code_puppy/models.json,sha256=Bt4rkn2tHR4UA8kanovpxtW0_-T5TooKrtUpzJNipmo,2212
24
- code_puppy-0.0.34.dist-info/METADATA,sha256=g_5OqybVapKBuQPxWoZZ36KneFAPjvZbUD8jkXrC7SQ,4716
25
- code_puppy-0.0.34.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
- code_puppy-0.0.34.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
27
- code_puppy-0.0.34.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
28
- code_puppy-0.0.34.dist-info/RECORD,,
23
+ code_puppy-0.0.36.data/data/code_puppy/models.json,sha256=Bt4rkn2tHR4UA8kanovpxtW0_-T5TooKrtUpzJNipmo,2212
24
+ code_puppy-0.0.36.dist-info/METADATA,sha256=hzr9QyFMlJHPMeHV5AsW7wpMShjo4O_wbcFeFSBCl_g,4716
25
+ code_puppy-0.0.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ code_puppy-0.0.36.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
27
+ code_puppy-0.0.36.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
28
+ code_puppy-0.0.36.dist-info/RECORD,,