patchpal 0.24.5__tar.gz → 0.24.6__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.
- {patchpal-0.24.5/patchpal.egg-info → patchpal-0.24.6}/PKG-INFO +1 -1
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/__init__.py +1 -1
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/agent/function_calling.py +8 -1
- {patchpal-0.24.5 → patchpal-0.24.6/patchpal.egg-info}/PKG-INFO +1 -1
- {patchpal-0.24.5 → patchpal-0.24.6}/LICENSE +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/MANIFEST.in +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/README.md +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/agent/__init__.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/agent/bedrock_profile_utils.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/agent/react.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/cli/__init__.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/cli/autopilot.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/cli/interactive.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/cli/mcp.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/cli/sandbox.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/cli/streaming.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/config.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/context.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/permissions.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/prompts/react_prompt.md +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/prompts/system_prompt.md +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/skills.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/__init__.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/audit.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/browser_tools.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/code_analysis.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/common.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/definitions.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/file_reading.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/file_writing.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/find_tool.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/grep_tool.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/image_handler.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/mcp.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/repo_map.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/shell_tools.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/todo_tools.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/tool_schema.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/user_interaction.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal/tools/web_tools.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal.egg-info/SOURCES.txt +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal.egg-info/dependency_links.txt +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal.egg-info/entry_points.txt +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal.egg-info/requires.txt +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/patchpal.egg-info/top_level.txt +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/pyproject.toml +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/setup.cfg +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_agent.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_cli.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_config_dynamic.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_context.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_custom_tools.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_enabled_tools.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_find_tool.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_guardrails.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_image_blocking.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_maximum_security.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_mcp_config.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_memory.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_memory_locations.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_operational_safety.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_optional_tools.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_permissions.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_react.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_reasoning_content.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_repo_map.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_simplified_prompt.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_skills.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_streaming.py +0 -0
- {patchpal-0.24.5 → patchpal-0.24.6}/tests/test_tools.py +0 -0
|
@@ -1807,7 +1807,14 @@ Repository root takes priority if both exist."""
|
|
|
1807
1807
|
):
|
|
1808
1808
|
self._perform_auto_compaction()
|
|
1809
1809
|
|
|
1810
|
-
|
|
1810
|
+
# Return content if available, otherwise indicate model didn't respond
|
|
1811
|
+
if assistant_message.content:
|
|
1812
|
+
return assistant_message.content
|
|
1813
|
+
else:
|
|
1814
|
+
# Model returned no content and no tool calls
|
|
1815
|
+
# This can happen with some local models (e.g., GPT-OSS-120B)
|
|
1816
|
+
# Using "NO_RESPONSE:" prefix for programmatic detection
|
|
1817
|
+
return "NO_RESPONSE: Model returned empty response. Try rephrasing your request or type 'continue' to prompt again."
|
|
1811
1818
|
|
|
1812
1819
|
# Max iterations reached
|
|
1813
1820
|
return (
|
|
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
|
|
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
|
|
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
|