code-puppy 0.0.42__tar.gz → 0.0.43__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.
- {code_puppy-0.0.42 → code_puppy-0.0.43}/PKG-INFO +1 -1
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/command_line/prompt_toolkit_completion.py +10 -1
- {code_puppy-0.0.42 → code_puppy-0.0.43}/pyproject.toml +1 -1
- {code_puppy-0.0.42 → code_puppy-0.0.43}/.gitignore +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/LICENSE +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/README.md +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/__init__.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/agent.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/agent_prompts.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/command_line/__init__.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/command_line/file_path_completion.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/command_line/meta_command_handler.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/command_line/model_picker_completion.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/command_line/utils.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/config.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/main.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/model_factory.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/models.json +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/session_memory.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/tools/__init__.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/tools/code_map.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/tools/command_runner.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/tools/common.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/tools/file_modifications.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/tools/file_operations.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/tools/web_search.py +0 -0
- {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/version_checker.py +0 -0
    
        {code_puppy-0.0.42 → code_puppy-0.0.43}/code_puppy/command_line/prompt_toolkit_completion.py
    RENAMED
    
    | @@ -15,6 +15,8 @@ from prompt_toolkit import PromptSession | |
| 15 15 | 
             
            from prompt_toolkit.completion import merge_completers
         | 
| 16 16 | 
             
            from prompt_toolkit.history import FileHistory
         | 
| 17 17 | 
             
            from prompt_toolkit.styles import Style
         | 
| 18 | 
            +
            from prompt_toolkit.key_binding import KeyBindings
         | 
| 19 | 
            +
            from prompt_toolkit.keys import Keys
         | 
| 18 20 |  | 
| 19 21 | 
             
            from code_puppy.command_line.model_picker_completion import (
         | 
| 20 22 | 
             
                ModelNameCompleter,
         | 
| @@ -83,10 +85,17 @@ async def get_input_with_combined_completion(prompt_str = '>>> ', history_file: | |
| 83 85 | 
             
                    ModelNameCompleter(trigger='~m'),
         | 
| 84 86 | 
             
                    CDCompleter(trigger='~cd'),
         | 
| 85 87 | 
             
                ])
         | 
| 88 | 
            +
                # Add custom key bindings for Alt+M to insert a new line without submitting
         | 
| 89 | 
            +
                bindings = KeyBindings()
         | 
| 90 | 
            +
                @bindings.add(Keys.Escape, 'm')  # Alt+M
         | 
| 91 | 
            +
                def _(event):
         | 
| 92 | 
            +
                    event.app.current_buffer.insert_text('\n')
         | 
| 93 | 
            +
             | 
| 86 94 | 
             
                session = PromptSession(
         | 
| 87 95 | 
             
                    completer=completer,
         | 
| 88 96 | 
             
                    history=history,
         | 
| 89 | 
            -
                    complete_while_typing=True
         | 
| 97 | 
            +
                    complete_while_typing=True,
         | 
| 98 | 
            +
                    key_bindings=bindings
         | 
| 90 99 | 
             
                )
         | 
| 91 100 | 
             
                # If they pass a string, backward-compat: convert it to formatted_text
         | 
| 92 101 | 
             
                if isinstance(prompt_str, str):
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         |