diff options
| author | Jesse Vincent <jesse@fsck.com> | 2026-03-25 14:29:45 -0700 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2026-03-31 11:51:22 -0700 |
| commit | 2d942f3b01cc636e2ef9ebfc50f05925df8ed3f6 (patch) | |
| tree | 188fbf37cc3ecb6c5aa970379b57df60f50c49ce /tests/opencode/test-priority.sh | |
| parent | 8b1669269c51835168c98fd435a7af1e5f15ec12 (diff) | |
fix(opencode): align skills path across bootstrap, runtime, and tests
The bootstrap text advertised a configDir-based skills path that didn't
match the runtime path (resolved relative to the plugin file). Tests
used yet another hardcoded path and referenced a nonexistent lib/ dir.
- Remove misleading skills path from bootstrap text; the agent should
use the native skill tool, not read files by path
- Fix test setup to create a consistent layout matching the plugin's
../../skills resolution
- Export SUPERPOWERS_SKILLS_DIR from setup.sh so tests use a single
source of truth
- Add regression test that bootstrap doesn't advertise the old path
- Remove broken cp of nonexistent lib/ directory
Fixes #847
Diffstat (limited to 'tests/opencode/test-priority.sh')
| -rwxr-xr-x | tests/opencode/test-priority.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/opencode/test-priority.sh b/tests/opencode/test-priority.sh index 1c36fa3..b7de0d6 100755 --- a/tests/opencode/test-priority.sh +++ b/tests/opencode/test-priority.sh @@ -18,8 +18,8 @@ trap cleanup_test_env EXIT echo "Setting up priority test fixtures..." # 1. Create in superpowers location (lowest priority) -mkdir -p "$HOME/.config/opencode/superpowers/skills/priority-test" -cat > "$HOME/.config/opencode/superpowers/skills/priority-test/SKILL.md" <<'EOF' +mkdir -p "$SUPERPOWERS_SKILLS_DIR/priority-test" +cat > "$SUPERPOWERS_SKILLS_DIR/priority-test/SKILL.md" <<'EOF' --- name: priority-test description: Superpowers version of priority test skill @@ -32,8 +32,8 @@ PRIORITY_MARKER_SUPERPOWERS_VERSION EOF # 2. Create in personal location (medium priority) -mkdir -p "$HOME/.config/opencode/skills/priority-test" -cat > "$HOME/.config/opencode/skills/priority-test/SKILL.md" <<'EOF' +mkdir -p "$OPENCODE_CONFIG_DIR/skills/priority-test" +cat > "$OPENCODE_CONFIG_DIR/skills/priority-test/SKILL.md" <<'EOF' --- name: priority-test description: Personal version of priority test skill @@ -65,14 +65,14 @@ echo " Created priority-test skill in all three locations" echo "" echo "Test 1: Verifying test fixtures..." -if [ -f "$HOME/.config/opencode/superpowers/skills/priority-test/SKILL.md" ]; then +if [ -f "$SUPERPOWERS_SKILLS_DIR/priority-test/SKILL.md" ]; then echo " [PASS] Superpowers version exists" else echo " [FAIL] Superpowers version missing" exit 1 fi -if [ -f "$HOME/.config/opencode/skills/priority-test/SKILL.md" ]; then +if [ -f "$OPENCODE_CONFIG_DIR/skills/priority-test/SKILL.md" ]; then echo " [PASS] Personal version exists" else echo " [FAIL] Personal version missing" |
