conduct-cli 0.6.23__tar.gz → 0.6.25__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.23 → conduct_cli-0.6.25}/PKG-INFO +1 -1
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/pyproject.toml +2 -1
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hook_template.py +5 -1
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/README.md +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/setup.cfg +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/setup.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/guard.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hook_stop_template.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hooks/__init__.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hooks/base.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hooks/posttooluse.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hooks/precompact.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hooks/pretooluse.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hooks/session_parser.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hooks/session_start.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/hooks/stop.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/log_util.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/main.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/memory.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli/paxel.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_bash_operator_signature.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_command_word_matcher.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_journal_drain.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_log_util.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_proxy_env.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_signed_policy.py +0 -0
- {conduct_cli-0.6.23 → conduct_cli-0.6.25}/tests/test_switch.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "conduct-cli"
|
|
7
|
-
version = "0.6.
|
|
7
|
+
version = "0.6.25"
|
|
8
8
|
description = "CLI for Conduct AI — install agents, manage projects, run tests"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -41,6 +41,7 @@ conductguard-post = "conduct_cli.guard:post_usage_main"
|
|
|
41
41
|
|
|
42
42
|
[tool.setuptools.packages.find]
|
|
43
43
|
where = ["src"]
|
|
44
|
+
include = ["conduct_cli*"]
|
|
44
45
|
|
|
45
46
|
[tool.setuptools.package-data]
|
|
46
47
|
conduct_cli = ["hook_template.py", "hook_precompact_template.py", "hook_session_start_template.py", "hook_stop_template.py", "paxel.py"]
|
|
@@ -315,8 +315,10 @@ except Exception:
|
|
|
315
315
|
# (e.g. `gh issue create --body "...rm -rf..."` should not match no-rm-rf).
|
|
316
316
|
if tool_name == "Bash" and tool_input.get("command"):
|
|
317
317
|
input_text = _bash_operator_signature(tool_input["command"])
|
|
318
|
+
full_command = tool_input["command"]
|
|
318
319
|
else:
|
|
319
320
|
input_text = json.dumps(tool_input)
|
|
321
|
+
full_command = None
|
|
320
322
|
path_fields = [str(tool_input.get(f, "")) for f in ["file_path", "path", "command"]]
|
|
321
323
|
|
|
322
324
|
for rule in rules:
|
|
@@ -327,8 +329,10 @@ except Exception:
|
|
|
327
329
|
pattern = rule.get("match_pattern")
|
|
328
330
|
if pattern:
|
|
329
331
|
try:
|
|
332
|
+
# match against operator signature first; fall back to full command for path patterns
|
|
330
333
|
if not re.search(pattern, input_text, re.IGNORECASE):
|
|
331
|
-
|
|
334
|
+
if full_command is None or not re.search(pattern, full_command, re.IGNORECASE):
|
|
335
|
+
continue
|
|
332
336
|
except re.error:
|
|
333
337
|
continue
|
|
334
338
|
path_pattern = rule.get("match_path_pattern")
|
|
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
|