fix: cleanup remaining code review issues

- Remove unused destructured parameters (project, $, worktree) from plugin
- Add test coverage for checkForUpdates function (error handling cases)
This commit is contained in:
Claude
2025-11-24 00:25:26 +00:00
parent 6ecd72c5bf
commit d0806ba5af
2 changed files with 75 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ import * as skillsCore from '../../lib/skills-core.js';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export const SuperpowersPlugin = async ({ project, client, $, directory, worktree }) => {
export const SuperpowersPlugin = async ({ client, directory }) => {
const homeDir = os.homedir();
const projectSkillsDir = path.join(directory, '.opencode/skills');
// Derive superpowers skills dir from plugin location (works for both symlinked and local installs)