4f67b63918
Probe now emits KEY=VALUE so the agent reads facts instead of inferring from prose. Stdlib-only (no tomllib) so it runs on whatever Python the launcher reaches. Adds sh/ps1 launcher pair, SCRIPTS_UV/SCRIPTS_DIR/ SCRIPTS_STORE env-var contract, tainted-venv + recipe + default-package detection, and broader mode classification (incl. agent-tool-only). SKILL.md trimmed and gated by pyproject.toml glob.
19 lines
461 B
Bash
19 lines
461 B
Bash
#!/usr/bin/env sh
|
|
set -e
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
PROBE="$SCRIPT_DIR/probe.py"
|
|
|
|
if [ -n "$SCRIPTS_UV" ] && [ -x "$SCRIPTS_UV" ]; then
|
|
exec "$SCRIPTS_UV" run --no-project python "$PROBE"
|
|
fi
|
|
if command -v uv >/dev/null 2>&1; then
|
|
exec uv run --no-project python "$PROBE"
|
|
fi
|
|
for name in python3 python; do
|
|
if command -v "$name" >/dev/null 2>&1; then
|
|
exec "$name" "$PROBE"
|
|
fi
|
|
done
|
|
echo "probe: no python found" >&2
|
|
exit 1
|