Files
openagent/scripts/validate_skill_isolation.sh
Thomas Marchand 3d0b4d19b7 Th0rgal/update branding (#32)
* feat: chroots

* wip

* Update workspace templates and Playwright tests

* Fix thinking panel close button not working during active thinking

The auto-show useEffect was including showThinkingPanel in its dependency
array, causing the panel to immediately reopen when closed since the state
change would trigger the effect while hasActiveThinking was still true.

Changed to use a ref to track previous state and only auto-show on
transition from inactive to active thinking.

* wip

* wip

* wip

* Cleanup web search tool and remove hardcoded OAuth credentials

* Ralph iteration 1: work in progress

* Ralph iteration 2: work in progress

* Ralph iteration 3: work in progress

* Ralph iteration 4: work in progress

* Ralph iteration 5: work in progress

* Ralph iteration 6: work in progress

* Ralph iteration 1: work in progress

* Ralph iteration 2: work in progress

* Ralph iteration 3: work in progress

* Ralph iteration 4: work in progress

* Ralph iteration 5: work in progress

* Ralph iteration 6: work in progress

* Ralph iteration 7: work in progress

* Ralph iteration 1: work in progress

* Ralph iteration 2: work in progress

* improve readme

* fix: remove unused file

* feat: hero screenshot

* Update README with cleaner vision and hero screenshot

Simplified the vision section with "what if" framing, removed
architecture diagram, added hero screenshot showing mission view.
2026-01-12 14:45:05 -08:00

56 lines
1.7 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
echo "== OpenCode service environment =="
if command -v systemctl >/dev/null 2>&1; then
systemctl show opencode.service -p Environment || true
else
echo "systemctl not available"
fi
OPENCODE_CONFIG_DIR=""
if [ -f /etc/open_agent/open_agent.env ]; then
OPENCODE_CONFIG_DIR=$(grep -E '^OPENCODE_CONFIG_DIR=' /etc/open_agent/open_agent.env | tail -n1 | cut -d= -f2- || true)
fi
if [ -n "$OPENCODE_CONFIG_DIR" ]; then
OPENCODE_HOME="$(cd "$(dirname "$OPENCODE_CONFIG_DIR")/.." && pwd -P)"
echo "OpenCode home (derived): $OPENCODE_HOME"
else
OPENCODE_HOME="${OPENCODE_HOME:-/var/lib/opencode}"
echo "OpenCode home (default): $OPENCODE_HOME"
fi
echo "== Global skill directories =="
for path in \
"/root/.opencode/skill" \
"/root/.config/opencode/skill" \
"${OPENCODE_HOME}/.opencode/skill" \
"${OPENCODE_HOME}/.config/opencode/skill"
do
if [ -d "$path" ]; then
count=$(find "$path" -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l | tr -d ' ')
echo "$path -> $count skill dir(s)"
else
echo "$path -> (missing)"
fi
done
latest=$(find /root/.openagent -type d -name 'mission-*' -path '*workspaces*' -printf '%T@ %p\n' 2>/dev/null | sort -nr | head -n1 | cut -d' ' -f2- || true)
if [ -n "$latest" ]; then
echo "== Latest mission dir =="
echo "$latest"
if [ -d "$latest/.opencode/skill" ]; then
echo "Skills in latest mission:"
ls -1 "$latest/.opencode/skill"
else
echo "No .opencode/skill in latest mission dir"
fi
if [ -f "$latest/.opencode/opencode.json" ]; then
echo "Permission section in latest mission opencode.json:"
grep -n "permission" "$latest/.opencode/opencode.json" || true
fi
else
echo "No mission directories found under /root/.openagent"
fi