claude_cli: hx stats lists claude's tools; unknown permissions value denies in -p
This commit is contained in:
1 parent
71f05d9a0d
commit
ddf8bcd92c
5 files changed
+85
-2
No files matched your search
@@ -25,6 +25,7 @@ res = [e for e in ev if e["type"] == "tool_result"]
|
||||
assert calls == [("read", "t1"), ("bash", "t2")], calls
|
||||
assert [r["is_error"] for r in res] == [False, False] and "allow" in res[1]["content"], res
|
||||
PY
|
||||
"$root/target/debug/hx" stats "$tmp/s2.jsonl" | grep -q "bash: 1 calls, 0 errors" || { echo "FAIL stats"; "$root/target/debug/hx" stats "$tmp/s2.jsonl"; exit 1; }
|
||||
printf 'claude_cli = []\n[lsp]\nmode = "off"\ntests = "off"\n[[extensions]]\ncommand = ["python3", "%s/tests/ext_block_all.py"]\n' "$root" > "$tmp/home/.hx/config.toml"
|
||||
timeout 20 "$root/target/debug/hx" -p "go" --mode json -s "$tmp/s3.jsonl" > "$tmp/o3" 2> "$tmp/e3" || { echo "FAIL ext run"; cat "$tmp/e3"; exit 1; }
|
||||
python3 - "$tmp/o3" <<'PY' || { echo "FAIL events (extension)"; cat "$tmp/e3"; exit 1; }
|
||||
|
||||
Reference in new issue
Block a user