Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(antigravity): validate manifest and mapping row
  • Loading branch information
aimansour committed Sep 20, 2026
commit 12f8b9389fb11efeae749a878fe7edfb0d20ca3d
2 changes: 1 addition & 1 deletion tests/antigravity/test-antigravity-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ grep -q '`research`' "$MAPPING" \
|| fail "mapping does not document the built-in 'research' subagent type"

# --- Task tracking documents the 'task' artifact mechanism ------------------
grep -q 'task artifact' "$MAPPING" \
grep -qE '^\| Task tracking .*\|.*task artifact.*\|$' "$MAPPING" \
|| fail "mapping does not document task tracking as a 'task' artifact"

# --- SKILL.md Platform Adaptation links the mapping -------------------------
Expand Down
18 changes: 15 additions & 3 deletions tests/antigravity/test-plugin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,22 @@ AGY="${AGY_BIN:-}"

# Keep the packaging contract covered even where agy is unavailable (CI).
test -f "$REPO_ROOT/plugin.json" || { echo "FAIL: Antigravity plugin manifest is missing" >&2; exit 1; }
grep -Eq '"name"[[:space:]]*:[[:space:]]*"superpowers"' "$REPO_ROOT/plugin.json" || {
echo "FAIL: Antigravity plugin manifest has no superpowers name" >&2
exit 1
node - "$REPO_ROOT/plugin.json" <<'NODE'
const fs = require('node:fs');

let manifest;
try {
manifest = JSON.parse(fs.readFileSync(process.argv[2], 'utf8'));
} catch (error) {
console.error(`FAIL: Antigravity plugin manifest is invalid JSON: ${error.message}`);
process.exit(1);
}

if (manifest.name !== 'superpowers') {
console.error('FAIL: Antigravity plugin manifest has no superpowers name');
process.exit(1);
}
NODE
test -f "$REPO_ROOT/rules/superpowers.md" || { echo "FAIL: Antigravity bootstrap rule is missing" >&2; exit 1; }
grep -q '^trigger: always_on$' "$REPO_ROOT/rules/superpowers.md" || {
echo "FAIL: Antigravity bootstrap rule is not always on" >&2
Expand Down