opencodekit 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +4 -1
- package/dist/template/.opencode/command/skill-create.md +3 -3
- package/dist/template/.opencode/command/skill-optimize.md +1 -1
- package/dist/template/.opencode/opencode.json +493 -535
- package/dist/template/.opencode/pickle-thinker.jsonc +11 -0
- package/dist/template/.opencode/plugin/skill.ts +275 -0
- package/dist/template/.opencode/{skills → skill}/accessibility-audit/SKILL.md +5 -0
- package/dist/template/.opencode/{skills → skill}/brainstorming/SKILL.md +2 -2
- package/dist/template/.opencode/{skills → skill}/design-system-audit/SKILL.md +5 -0
- package/dist/template/.opencode/{skills → skill}/executing-plans/SKILL.md +13 -2
- package/dist/template/.opencode/{skills → skill}/frontend-aesthetics/SKILL.md +5 -0
- package/dist/template/.opencode/{skills → skill}/mockup-to-code/SKILL.md +5 -0
- package/dist/template/.opencode/{skills → skill}/requesting-code-review/SKILL.md +16 -6
- package/dist/template/.opencode/{skills → skill}/subagent-driven-development/SKILL.md +38 -17
- package/dist/template/.opencode/{skills → skill}/systematic-debugging/SKILL.md +28 -18
- package/dist/template/.opencode/{skills → skill}/testing-skills-with-subagents/SKILL.md +1 -1
- package/dist/template/.opencode/{skills → skill}/ui-ux-research/SKILL.md +5 -0
- package/dist/template/.opencode/{skills → skill}/visual-analysis/SKILL.md +5 -0
- package/dist/template/.opencode/{skills → skill}/writing-plans/SKILL.md +3 -3
- package/dist/template/.opencode/{skills → skill}/writing-skills/SKILL.md +101 -41
- package/package.json +1 -1
- package/dist/template/.opencode/plugin/superpowers.ts +0 -271
- package/dist/template/.opencode/superpowers/.claude/settings.local.json +0 -141
- package/dist/template/.opencode/superpowers/.claude-plugin/marketplace.json +0 -20
- package/dist/template/.opencode/superpowers/.claude-plugin/plugin.json +0 -13
- package/dist/template/.opencode/superpowers/.codex/INSTALL.md +0 -35
- package/dist/template/.opencode/superpowers/.codex/superpowers-bootstrap.md +0 -33
- package/dist/template/.opencode/superpowers/.codex/superpowers-codex +0 -267
- package/dist/template/.opencode/superpowers/.github/FUNDING.yml +0 -3
- package/dist/template/.opencode/superpowers/.opencode/INSTALL.md +0 -135
- package/dist/template/.opencode/superpowers/.opencode/plugin/superpowers.js +0 -215
- package/dist/template/.opencode/superpowers/LICENSE +0 -21
- package/dist/template/.opencode/superpowers/README.md +0 -165
- package/dist/template/.opencode/superpowers/RELEASE-NOTES.md +0 -493
- package/dist/template/.opencode/superpowers/agents/code-reviewer.md +0 -48
- package/dist/template/.opencode/superpowers/commands/brainstorm.md +0 -5
- package/dist/template/.opencode/superpowers/commands/execute-plan.md +0 -5
- package/dist/template/.opencode/superpowers/commands/write-plan.md +0 -5
- package/dist/template/.opencode/superpowers/docs/README.codex.md +0 -153
- package/dist/template/.opencode/superpowers/docs/README.opencode.md +0 -234
- package/dist/template/.opencode/superpowers/docs/plans/2025-11-22-opencode-support-design.md +0 -294
- package/dist/template/.opencode/superpowers/docs/plans/2025-11-22-opencode-support-implementation.md +0 -1095
- package/dist/template/.opencode/superpowers/hooks/hooks.json +0 -15
- package/dist/template/.opencode/superpowers/hooks/session-start.sh +0 -34
- package/dist/template/.opencode/superpowers/lib/skills-core.js +0 -208
- package/dist/template/.opencode/superpowers/tests/opencode/run-tests.sh +0 -165
- package/dist/template/.opencode/superpowers/tests/opencode/setup.sh +0 -73
- package/dist/template/.opencode/superpowers/tests/opencode/test-plugin-loading.sh +0 -81
- package/dist/template/.opencode/superpowers/tests/opencode/test-priority.sh +0 -198
- package/dist/template/.opencode/superpowers/tests/opencode/test-skills-core.sh +0 -440
- package/dist/template/.opencode/superpowers/tests/opencode/test-tools.sh +0 -104
- /package/dist/template/.opencode/{skills → skill}/condition-based-waiting/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/condition-based-waiting/example.ts +0 -0
- /package/dist/template/.opencode/{skills → skill}/defense-in-depth/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/dispatching-parallel-agents/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/finishing-a-development-branch/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/gemini-large-context/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/receiving-code-review/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills/requesting-code-review/code-reviewer.md → skill/requesting-code-review/review.md} +0 -0
- /package/dist/template/.opencode/{skills → skill}/root-cause-tracing/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/root-cause-tracing/find-polluter.sh +0 -0
- /package/dist/template/.opencode/{skills → skill}/sharing-skills/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/systematic-debugging/CREATION-LOG.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/systematic-debugging/test-academic.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/systematic-debugging/test-pressure-1.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/systematic-debugging/test-pressure-2.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/systematic-debugging/test-pressure-3.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/test-driven-development/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/testing-anti-patterns/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/testing-skills-with-subagents/examples/CLAUDE_MD_TESTING.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/using-git-worktrees/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/using-superpowers/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/verification-before-completion/SKILL.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/writing-skills/anthropic-best-practices.md +0 -0
- /package/dist/template/.opencode/{skills → skill}/writing-skills/graphviz-conventions.dot +0 -0
- /package/dist/template/.opencode/{skills → skill}/writing-skills/persuasion-principles.md +0 -0
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Test: Tools Functionality
|
|
3
|
-
# Verifies that use_skill and find_skills tools work correctly
|
|
4
|
-
# NOTE: These tests require OpenCode to be installed and configured
|
|
5
|
-
set -euo pipefail
|
|
6
|
-
|
|
7
|
-
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
8
|
-
|
|
9
|
-
echo "=== Test: Tools Functionality ==="
|
|
10
|
-
|
|
11
|
-
# Source setup to create isolated environment
|
|
12
|
-
source "$SCRIPT_DIR/setup.sh"
|
|
13
|
-
|
|
14
|
-
# Trap to cleanup on exit
|
|
15
|
-
trap cleanup_test_env EXIT
|
|
16
|
-
|
|
17
|
-
# Check if opencode is available
|
|
18
|
-
if ! command -v opencode &> /dev/null; then
|
|
19
|
-
echo " [SKIP] OpenCode not installed - skipping integration tests"
|
|
20
|
-
echo " To run these tests, install OpenCode: https://opencode.ai"
|
|
21
|
-
exit 0
|
|
22
|
-
fi
|
|
23
|
-
|
|
24
|
-
# Test 1: Test find_skills tool via direct invocation
|
|
25
|
-
echo "Test 1: Testing find_skills tool..."
|
|
26
|
-
echo " Running opencode with find_skills request..."
|
|
27
|
-
|
|
28
|
-
# Use timeout to prevent hanging, capture both stdout and stderr
|
|
29
|
-
output=$(timeout 60s opencode run --print-logs "Use the find_skills tool to list available skills. Just call the tool and show me the raw output." 2>&1) || {
|
|
30
|
-
exit_code=$?
|
|
31
|
-
if [ $exit_code -eq 124 ]; then
|
|
32
|
-
echo " [FAIL] OpenCode timed out after 60s"
|
|
33
|
-
exit 1
|
|
34
|
-
fi
|
|
35
|
-
echo " [WARN] OpenCode returned non-zero exit code: $exit_code"
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
# Check for expected patterns in output
|
|
39
|
-
if echo "$output" | grep -qi "superpowers:brainstorming\|superpowers:using-superpowers\|Available skills"; then
|
|
40
|
-
echo " [PASS] find_skills tool discovered superpowers skills"
|
|
41
|
-
else
|
|
42
|
-
echo " [FAIL] find_skills did not return expected skills"
|
|
43
|
-
echo " Output was:"
|
|
44
|
-
echo "$output" | head -50
|
|
45
|
-
exit 1
|
|
46
|
-
fi
|
|
47
|
-
|
|
48
|
-
# Check if personal test skill was found
|
|
49
|
-
if echo "$output" | grep -qi "personal-test"; then
|
|
50
|
-
echo " [PASS] find_skills found personal test skill"
|
|
51
|
-
else
|
|
52
|
-
echo " [WARN] personal test skill not found in output (may be ok if tool returned subset)"
|
|
53
|
-
fi
|
|
54
|
-
|
|
55
|
-
# Test 2: Test use_skill tool
|
|
56
|
-
echo ""
|
|
57
|
-
echo "Test 2: Testing use_skill tool..."
|
|
58
|
-
echo " Running opencode with use_skill request..."
|
|
59
|
-
|
|
60
|
-
output=$(timeout 60s opencode run --print-logs "Use the use_skill tool to load the personal-test skill and show me what you get." 2>&1) || {
|
|
61
|
-
exit_code=$?
|
|
62
|
-
if [ $exit_code -eq 124 ]; then
|
|
63
|
-
echo " [FAIL] OpenCode timed out after 60s"
|
|
64
|
-
exit 1
|
|
65
|
-
fi
|
|
66
|
-
echo " [WARN] OpenCode returned non-zero exit code: $exit_code"
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
# Check for the skill marker we embedded
|
|
70
|
-
if echo "$output" | grep -qi "PERSONAL_SKILL_MARKER_12345\|Personal Test Skill\|Launching skill"; then
|
|
71
|
-
echo " [PASS] use_skill loaded personal-test skill content"
|
|
72
|
-
else
|
|
73
|
-
echo " [FAIL] use_skill did not load personal-test skill correctly"
|
|
74
|
-
echo " Output was:"
|
|
75
|
-
echo "$output" | head -50
|
|
76
|
-
exit 1
|
|
77
|
-
fi
|
|
78
|
-
|
|
79
|
-
# Test 3: Test use_skill with superpowers: prefix
|
|
80
|
-
echo ""
|
|
81
|
-
echo "Test 3: Testing use_skill with superpowers: prefix..."
|
|
82
|
-
echo " Running opencode with superpowers:brainstorming skill..."
|
|
83
|
-
|
|
84
|
-
output=$(timeout 60s opencode run --print-logs "Use the use_skill tool to load superpowers:brainstorming and tell me the first few lines of what you received." 2>&1) || {
|
|
85
|
-
exit_code=$?
|
|
86
|
-
if [ $exit_code -eq 124 ]; then
|
|
87
|
-
echo " [FAIL] OpenCode timed out after 60s"
|
|
88
|
-
exit 1
|
|
89
|
-
fi
|
|
90
|
-
echo " [WARN] OpenCode returned non-zero exit code: $exit_code"
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
# Check for expected content from brainstorming skill
|
|
94
|
-
if echo "$output" | grep -qi "brainstorming\|Launching skill\|skill.*loaded"; then
|
|
95
|
-
echo " [PASS] use_skill loaded superpowers:brainstorming skill"
|
|
96
|
-
else
|
|
97
|
-
echo " [FAIL] use_skill did not load superpowers:brainstorming correctly"
|
|
98
|
-
echo " Output was:"
|
|
99
|
-
echo "$output" | head -50
|
|
100
|
-
exit 1
|
|
101
|
-
fi
|
|
102
|
-
|
|
103
|
-
echo ""
|
|
104
|
-
echo "=== All tools tests passed ==="
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/template/.opencode/{skills → skill}/writing-skills/anthropic-best-practices.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|