chore(secrets): rotate secrets, purge history, and add placeholders
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# vision-bridge.sh: Bridge Peekaboo screenshots to Ollama Vision
|
||||
# Usage: ./vision-bridge.sh "Describe this screen" [app_name]
|
||||
|
||||
PROMPT="${1:-Describe this image}"
|
||||
APP="${2:-}"
|
||||
RETINA="${3:-true}"
|
||||
|
||||
TMP_IMG=$(mktemp /tmp/openclaw-vision-XXXXXX.png)
|
||||
|
||||
cleanup() {
|
||||
rm -f "$TMP_IMG"
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
# Capture
|
||||
PEEKABOO_ARGS=(image --path "$TMP_IMG")
|
||||
if [ -n "$APP" ]; then
|
||||
PEEKABOO_ARGS+=(--app "$APP")
|
||||
fi
|
||||
if [ "$RETINA" = "true" ]; then
|
||||
PEEKABOO_ARGS+=(--retina)
|
||||
fi
|
||||
|
||||
echo "[vision] Capturing screen..." >&2
|
||||
peekaboo "${PEEKABOO_ARGS[@]}" >/dev/null
|
||||
|
||||
# Analyze
|
||||
echo "[vision] Analyzing with llama3.2-vision..." >&2
|
||||
ollama run llama3.2-vision "$PROMPT" "$TMP_IMG"
|
||||
Reference in New Issue
Block a user