Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,768 changes: 2,768 additions & 0 deletions .chock/bin/_chock_runtime.py

Large diffs are not rendered by default.

1,705 changes: 303 additions & 1,402 deletions .chock/bin/claude_code.py

Large diffs are not rendered by default.

1,401 changes: 1,253 additions & 148 deletions .chock/bin/gate.py

Large diffs are not rendered by default.

1,692 changes: 297 additions & 1,395 deletions .chock/bin/gemini_cli.py

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .chock/bin/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ shift
configured="$(git config --get chock.python 2>/dev/null)"
# The recorded interpreter is probed like the rest: a venv whose base Python was removed
# still exists, and exec'ing it exits non-zero without a verdict, which agents let through.
# A candidate must also answer the probe's token, so a program that merely exits 0 (`true`) is not taken for Python.
for candidate in "$configured" python3 python py; do
if [ -n "$candidate" ] && "$candidate" -c 'import sys; sys.exit(sys.version_info < (3, 11,))' </dev/null >/dev/null 2>&1; then
if [ -n "$candidate" ] && probed="$("$candidate" -c 'import sys; print("chock-python"); sys.exit(sys.version_info < (3, 11,))' </dev/null 2>/dev/null)" && [ "$probed" = "chock-python" ]; then
exec "$candidate" -X utf8 "$runtime" "$@"
fi
done
Expand Down
Loading
Loading