fix: box alignment in test runner, update metadata counts, add 18 tests

- Fix run-all.js box alignment (hardcoded spaces 1 char short, now using dynamic padEnd)
- Update .opencode/index.ts metadata (12→13 agents, 24→31 commands, 16→37 skills)
- Add commandExists edge case tests (empty, spaces, path separators, metacharacters)
- Add findFiles edge case tests (? wildcard, mtime sorting, maxAge filtering)
- Add ensureDir race condition and return value tests
- Add runCommand output trimming and failure tests
- Add pre-compact session annotation and compaction log timestamp tests
- Add check-console-log invalid JSON handling test
- Add replaceInFile capture group test
- Add readStdinJson Promise type check
This commit is contained in:
Affaan Mustafa
2026-02-13 01:36:42 -08:00
parent 3f651b7c3c
commit 37309d47b7
4 changed files with 238 additions and 16 deletions

View File

@@ -2,11 +2,11 @@
* Everything Claude Code (ECC) Plugin for OpenCode
*
* This package provides a complete OpenCode plugin with:
* - 12 specialized agents (planner, architect, code-reviewer, etc.)
* - 24 commands (/plan, /tdd, /code-review, etc.)
* - 13 specialized agents (planner, architect, code-reviewer, etc.)
* - 31 commands (/plan, /tdd, /code-review, etc.)
* - Plugin hooks (auto-format, TypeScript check, console.log warning, etc.)
* - Custom tools (run-tests, check-coverage, security-audit)
* - 16 skills (coding-standards, security-review, tdd-workflow, etc.)
* - 37 skills (coding-standards, security-review, tdd-workflow, etc.)
*
* Usage:
*
@@ -48,9 +48,9 @@ export const metadata = {
description: "Everything Claude Code plugin for OpenCode",
author: "affaan-m",
features: {
agents: 12,
commands: 24,
skills: 16,
agents: 13,
commands: 31,
skills: 37,
hookEvents: [
"file.edited",
"tool.execute.before",