From 6d4a31ff442027730fad0074cb649235cebbff77 Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Wed, 4 Mar 2026 11:58:33 -0800 Subject: [PATCH] refactor: add root-level execution wrapper for CLI --- hooks/auto_sync.sh | 5 +++++ void-cli | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100755 hooks/auto_sync.sh create mode 100755 void-cli diff --git a/hooks/auto_sync.sh b/hooks/auto_sync.sh new file mode 100755 index 0000000..6fc3831 --- /dev/null +++ b/hooks/auto_sync.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# Automatically sync notifications at the end of the agent's turn +cd /home/cameron/void +./void-cli sync > /dev/null 2>&1 +exit 0 diff --git a/void-cli b/void-cli new file mode 100755 index 0000000..f4a5d55 --- /dev/null +++ b/void-cli @@ -0,0 +1,8 @@ +#!/bin/bash +# Direct entrypoint for Void CLI tools +# This script ensures we use the correct virtual environment and overrides ambient variables. + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd "$DIR" + +exec ./.venv/bin/python -m void_tools.cli "$@" -- 2.51.2