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.
- code_puppy/command_line/meta_command_handler.py +2 -2
- code_puppy/command_line/prompt_toolkit_completion.py +3 -3
- code_puppy/model_factory.py +4 -4
- {code_puppy-0.0.34.dist-info → code_puppy-0.0.36.dist-info}/METADATA +1 -1
- {code_puppy-0.0.34.dist-info → code_puppy-0.0.36.dist-info}/RECORD +9 -9
- {code_puppy-0.0.34.data → code_puppy-0.0.36.data}/data/code_puppy/models.json +0 -0
- {code_puppy-0.0.34.dist-info → code_puppy-0.0.36.dist-info}/WHEEL +0 -0
- {code_puppy-0.0.34.dist-info → code_puppy-0.0.36.dist-info}/entry_points.txt +0 -0
- {code_puppy-0.0.34.dist-info → code_puppy-0.0.36.dist-info}/licenses/LICENSE +0 -0
| @@ -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("~ | 
| 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  ~ | 
| 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  | 
| 29 | 
            -
                def __init__(self, trigger: str = '~ | 
| 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 | 
            -
                     | 
| 84 | 
            +
                    CDCompleter(trigger='~cd'),
         | 
| 85 85 | 
             
                ])
         | 
| 86 86 | 
             
                session = PromptSession(
         | 
| 87 87 | 
             
                    completer=completer,
         | 
    
        code_puppy/model_factory.py
    CHANGED
    
    | @@ -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  | 
| 143 | 
            -
                    if  | 
| 144 | 
            -
                        api_key = os.environ.get( | 
| 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 =  | 
| 146 | 
            +
                        api_key = custom_config["api_key"]
         | 
| 147 147 | 
             
                return url, headers, ca_certs_path, api_key
         | 
| 148 148 |  | 
| 149 149 |  | 
| @@ -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= | 
| 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= | 
| 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= | 
| 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. | 
| 24 | 
            -
            code_puppy-0.0. | 
| 25 | 
            -
            code_puppy-0.0. | 
| 26 | 
            -
            code_puppy-0.0. | 
| 27 | 
            -
            code_puppy-0.0. | 
| 28 | 
            -
            code_puppy-0.0. | 
| 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,,
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         |