fix: replace python3 with py/jq throughout scripts and docs

Windows Store python3 stub returns exit 49 instead of running Python.
Replace with: py (Windows launcher) for actual Python code, jq for
simple JSON extraction. Reorder fallback loops to try py first.
Add Bash(py:*) to settings.local.json allowlist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 12:14:43 -07:00
parent 056e36aeac
commit 936ea49b33
10 changed files with 19 additions and 28 deletions

View File

@@ -17,7 +17,7 @@ Ollama runs on Mike's workstation (DESKTOP-0O8A1RL) with GPU acceleration. Avail
Check reachability:
```bash
curl -s http://100.92.127.64:11434/api/tags | python -c "import sys,json; [print(m['name']) for m in json.load(sys.stdin).get('models',[])]"
curl -s http://100.92.127.64:11434/api/tags | jq -r '.models[].name'
```
If it fails: verify Tailscale is connected (`tailscale status`) and Mike's workstation is online.
@@ -38,7 +38,7 @@ OLLAMA=$([ "$(jq -r .machine .claude/identity.json 2>/dev/null)" = "DESKTOP-0O8A
Preferred one-liner (avoids shell escaping):
```bash
python3 -c "
py -c "
import urllib.request, json, sys
url = 'http://localhost:11434/api/generate'
body = json.dumps({'model':'qwen3:14b','prompt': sys.argv[1],'stream':False}).encode()