patchpal 0.22.0__tar.gz → 0.22.1__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.22.0/patchpal.egg-info → patchpal-0.22.1}/PKG-INFO +1 -1
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/__init__.py +1 -1
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/cli/sandbox.py +8 -4
- {patchpal-0.22.0 → patchpal-0.22.1/patchpal.egg-info}/PKG-INFO +1 -1
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_cli.py +1 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/LICENSE +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/MANIFEST.in +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/README.md +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/agent/__init__.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/agent/function_calling.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/agent/react.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/cli/__init__.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/cli/autopilot.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/cli/interactive.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/cli/mcp.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/cli/streaming.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/config.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/context.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/permissions.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/prompts/react_prompt.md +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/prompts/system_prompt.md +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/skills.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/__init__.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/code_analysis.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/common.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/definitions.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/file_reading.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/file_writing.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/find_tool.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/grep_tool.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/image_handler.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/mcp.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/repo_map.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/shell_tools.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/todo_tools.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/tool_schema.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/user_interaction.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal/tools/web_tools.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal.egg-info/SOURCES.txt +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal.egg-info/dependency_links.txt +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal.egg-info/entry_points.txt +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal.egg-info/requires.txt +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/patchpal.egg-info/top_level.txt +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/pyproject.toml +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/setup.cfg +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_agent.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_config_dynamic.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_context.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_custom_tools.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_enabled_tools.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_find_tool.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_guardrails.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_image_blocking.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_maximum_security.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_mcp_config.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_memory.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_operational_safety.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_optional_tools.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_permissions.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_react.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_reasoning_content.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_repo_map.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_simplified_prompt.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_skills.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_streaming.py +0 -0
- {patchpal-0.22.0 → patchpal-0.22.1}/tests/test_tools.py +0 -0
|
@@ -670,7 +670,7 @@ exec {patchpal_cmd} "$@"
|
|
|
670
670
|
def show_help():
|
|
671
671
|
"""Show help message."""
|
|
672
672
|
help_text = """
|
|
673
|
-
sandbox
|
|
673
|
+
patchpal-sandbox - Run PatchPal in an isolated container
|
|
674
674
|
|
|
675
675
|
USAGE:
|
|
676
676
|
patchpal-sandbox [SCRIPT_OPTIONS] -- [PATCHPAL_ARGS...]
|
|
@@ -916,10 +916,14 @@ def main():
|
|
|
916
916
|
sandbox_argv = sys.argv[1:]
|
|
917
917
|
patchpal_argv = []
|
|
918
918
|
|
|
919
|
-
# If no arguments at all,
|
|
919
|
+
# If no arguments at all, check if PATCHPAL_MODEL is set
|
|
920
|
+
# If model is set via env var, allow running with no args
|
|
921
|
+
# Otherwise show help
|
|
920
922
|
if not sandbox_argv and not patchpal_argv:
|
|
921
|
-
|
|
922
|
-
|
|
923
|
+
if not os.environ.get("PATCHPAL_MODEL"):
|
|
924
|
+
show_help()
|
|
925
|
+
sys.exit(0)
|
|
926
|
+
# PATCHPAL_MODEL is set - proceed with defaults
|
|
923
927
|
|
|
924
928
|
# Parse sandbox arguments
|
|
925
929
|
parser = argparse.ArgumentParser(add_help=False) # We handle help manually
|
|
@@ -8,6 +8,7 @@ def test_main_uses_default_model(monkeypatch):
|
|
|
8
8
|
"""Test that main() uses the default model when no args provided."""
|
|
9
9
|
monkeypatch.setenv("ANTHROPIC_API_KEY", "test-key")
|
|
10
10
|
monkeypatch.delenv("PATCHPAL_LITELLM_KWARGS", raising=False)
|
|
11
|
+
monkeypatch.delenv("PATCHPAL_MODEL", raising=False)
|
|
11
12
|
monkeypatch.setattr(sys, "argv", ["patchpal"])
|
|
12
13
|
|
|
13
14
|
with (
|
|
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
|