code-puppy 0.0.27__tar.gz → 0.0.29__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.27 → code_puppy-0.0.29}/PKG-INFO +1 -1
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/agent.py +2 -1
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/model_factory.py +2 -1
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/tools/file_modifications.py +2 -2
- {code_puppy-0.0.27 → code_puppy-0.0.29}/pyproject.toml +1 -1
- {code_puppy-0.0.27 → code_puppy-0.0.29}/.gitignore +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/LICENSE +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/README.md +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/__init__.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/agent_prompts.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/command_line/__init__.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/command_line/prompt_toolkit_completion.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/main.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/models.json +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/tools/__init__.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/tools/command_runner.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/tools/common.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/tools/file_operations.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/tools/web_search.py +0 -0
- {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/version_checker.py +0 -0
| @@ -192,8 +192,9 @@ class ModelFactory: | |
| 192 192 | 
             
                        anthropic_client = AsyncAnthropic(
         | 
| 193 193 | 
             
                            base_url=url,
         | 
| 194 194 | 
             
                            http_client=client,
         | 
| 195 | 
            +
                            api_key=api_key,
         | 
| 195 196 | 
             
                        )
         | 
| 196 | 
            -
                        provider = AnthropicProvider( | 
| 197 | 
            +
                        provider = AnthropicProvider(anthropic_client=anthropic_client)
         | 
| 197 198 |  | 
| 198 199 | 
             
                        return AnthropicModel(model_name=model_config["name"], provider=provider)
         | 
| 199 200 |  | 
| @@ -170,7 +170,7 @@ def write_to_file( | |
| 170 170 | 
             
                        "success": True,
         | 
| 171 171 | 
             
                        "path": file_path,
         | 
| 172 172 | 
             
                        "message": f"File '{file_path}' {action} successfully.",
         | 
| 173 | 
            -
                        "diff":  | 
| 173 | 
            +
                        "diff": trimmed_content,
         | 
| 174 174 | 
             
                        "changed": True,
         | 
| 175 175 | 
             
                    }
         | 
| 176 176 |  | 
| @@ -179,7 +179,7 @@ def write_to_file( | |
| 179 179 | 
             
                    return {"error": f"Error writing to file '{path}': {str(e)}"}
         | 
| 180 180 |  | 
| 181 181 |  | 
| 182 | 
            -
            @code_generation_agent.tool
         | 
| 182 | 
            +
            @code_generation_agent.tool(retries=5)
         | 
| 183 183 | 
             
            def replace_in_file(
         | 
| 184 184 | 
             
                context: RunContext,
         | 
| 185 185 | 
             
                path: str, 
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
    
        {code_puppy-0.0.27 → code_puppy-0.0.29}/code_puppy/command_line/prompt_toolkit_completion.py
    RENAMED
    
    | 
            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
         |