From 23f89b44d8d0650fea463e96062b667963457c37 Mon Sep 17 00:00:00 2001 From: Wayner Barrios Date: Thu, 13 Aug 2026 16:38:32 -0500 Subject: [PATCH] fix(branding): sync logo with v0.4.0 --- assets/logo.svg | 10 +++++----- tests/branding.test.mjs | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 tests/branding.test.mjs diff --git a/assets/logo.svg b/assets/logo.svg index d37180b..c1e636f 100644 --- a/assets/logo.svg +++ b/assets/logo.svg @@ -1,6 +1,6 @@ - - OpenCode Power Pack for Codex, OpenCode, and Pi + + OpenCode Power Pack for Claude Code, Codex, OpenCode, and Pi @@ -66,15 +66,15 @@ POWER PACK - - ELEVEN SKILLS · OPENCODE + CODEX + PI + + 54 SKILLS · CLAUDE + CODEX + OPENCODE + PI - v0.3.0 + v0.4.0 diff --git a/tests/branding.test.mjs b/tests/branding.test.mjs new file mode 100644 index 0000000..bd67a7e --- /dev/null +++ b/tests/branding.test.mjs @@ -0,0 +1,25 @@ +import assert from "node:assert/strict"; +import fs from "node:fs"; +import path from "node:path"; +import test from "node:test"; +import { fileURLToPath } from "node:url"; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); + +test("logo release metadata matches the shipped package", () => { + const packageJson = JSON.parse(fs.readFileSync(path.join(ROOT, "package.json"), "utf8")); + const logo = fs.readFileSync(path.join(ROOT, "assets", "logo.svg"), "utf8"); + const skillCount = fs + .readdirSync(path.join(ROOT, "skills"), { withFileTypes: true }) + .filter( + (entry) => + entry.isDirectory() && fs.existsSync(path.join(ROOT, "skills", entry.name, "SKILL.md")), + ).length; + + assert.ok(logo.includes(`>v${packageJson.version}`)); + assert.match(logo, new RegExp(`>\\s*${skillCount}\\s+SKILLS\\s+·`)); + assert.match( + logo, + /aria-label="OpenCode Power Pack for Claude Code, Codex, OpenCode, and Pi"/, + ); +});