conduct-cli 0.6.16__tar.gz → 0.6.17__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.
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/PKG-INFO +1 -1
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/pyproject.toml +1 -1
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/guard.py +10 -5
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/README.md +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/setup.cfg +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/setup.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hook_stop_template.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hooks/__init__.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hooks/base.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hooks/posttooluse.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hooks/precompact.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hooks/pretooluse.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hooks/session_start.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/hooks/stop.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/log_util.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/memory.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli/paxel.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_bash_operator_signature.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_command_word_matcher.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_journal_drain.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_log_util.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_proxy_env.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_signed_policy.py +0 -0
- {conduct_cli-0.6.16 → conduct_cli-0.6.17}/tests/test_switch.py +0 -0
|
@@ -33,23 +33,28 @@ def _read_template(name: str) -> str:
|
|
|
33
33
|
_THIN_LAUNCHERS = {
|
|
34
34
|
"pretooluse": (
|
|
35
35
|
"#!/usr/bin/env python3\n"
|
|
36
|
-
"from conduct_cli.hooks.pretooluse import main; main()\n"
|
|
36
|
+
"try:\n from conduct_cli.hooks.pretooluse import main; main()\n"
|
|
37
|
+
"except (ImportError, ModuleNotFoundError): import sys; sys.exit(0)\n"
|
|
37
38
|
),
|
|
38
39
|
"posttooluse": (
|
|
39
40
|
"#!/usr/bin/env python3\n"
|
|
40
|
-
"from conduct_cli.hooks.posttooluse import main; main()\n"
|
|
41
|
+
"try:\n from conduct_cli.hooks.posttooluse import main; main()\n"
|
|
42
|
+
"except (ImportError, ModuleNotFoundError): import sys; sys.exit(0)\n"
|
|
41
43
|
),
|
|
42
44
|
"stop": (
|
|
43
45
|
"#!/usr/bin/env python3\n"
|
|
44
|
-
"from conduct_cli.hooks.stop import main; main()\n"
|
|
46
|
+
"try:\n from conduct_cli.hooks.stop import main; main()\n"
|
|
47
|
+
"except (ImportError, ModuleNotFoundError): import sys; sys.exit(0)\n"
|
|
45
48
|
),
|
|
46
49
|
"precompact": (
|
|
47
50
|
"#!/usr/bin/env python3\n"
|
|
48
|
-
"from conduct_cli.hooks.precompact import main; main()\n"
|
|
51
|
+
"try:\n from conduct_cli.hooks.precompact import main; main()\n"
|
|
52
|
+
"except (ImportError, ModuleNotFoundError): import sys; sys.exit(0)\n"
|
|
49
53
|
),
|
|
50
54
|
"session-start": (
|
|
51
55
|
"#!/usr/bin/env python3\n"
|
|
52
|
-
"from conduct_cli.hooks.session_start import main; main()\n"
|
|
56
|
+
"try:\n from conduct_cli.hooks.session_start import main; main()\n"
|
|
57
|
+
"except (ImportError, ModuleNotFoundError): import sys; sys.exit(0)\n"
|
|
53
58
|
),
|
|
54
59
|
}
|
|
55
60
|
|
|
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
|