agent-powerups
Advanced tools
@@ -232,2 +232,11 @@ import fs from "node:fs/promises"; | ||
| } | ||
| function nativePluginDestBase(agentRoot, profile) { | ||
| if (profile.agent === "gemini") { | ||
| return path.join(agentRoot, "extensions"); | ||
| } | ||
| if (profile.agent === "claude-code") { | ||
| return path.join(agentRoot, "plugins", "cache", "agent-powerups"); | ||
| } | ||
| return path.join(agentRoot, "plugins"); | ||
| } | ||
| async function collectNativePluginInstalls(service, agentRoot, profile, options) { | ||
@@ -242,3 +251,3 @@ const copiedFiles = []; | ||
| const sourceDir = path.join(service.repoRoot, "plugins", bundle.name); | ||
| const destBase = profile.agent === "gemini" ? path.join(agentRoot, "extensions") : path.join(agentRoot, "plugins"); | ||
| const destBase = nativePluginDestBase(agentRoot, profile); | ||
| const destDir = path.join(destBase, bundle.name); | ||
@@ -362,3 +371,3 @@ const copied = await copyDirectoryContents(sourceDir, destDir, options); | ||
| await ensureDirectory(path.join(agentRoot, "skills"), options.dryRun, createdDirectorySet); | ||
| await ensureDirectory(options.agent === "gemini" ? path.join(agentRoot, "extensions") : path.join(agentRoot, "plugins"), options.dryRun, createdDirectorySet); | ||
| await ensureDirectory(nativePluginDestBase(agentRoot, profile), options.dryRun, createdDirectorySet); | ||
| const copyOptions = { | ||
@@ -365,0 +374,0 @@ dryRun: options.dryRun, |
@@ -12,3 +12,3 @@ import os from "node:os"; | ||
| else if (target === "claude-code") { | ||
| return path.join(homeDir, ".claude", "plugins"); | ||
| return path.join(homeDir, ".claude", "plugins", "cache", "agent-powerups"); | ||
| } | ||
@@ -15,0 +15,0 @@ return process.cwd(); |
@@ -37,3 +37,3 @@ # Installation | ||
| | Codex | `%USERPROFILE%\.codex\skills\` | `%USERPROFILE%\.codex\plugins\` | | ||
| | Claude Code | `%USERPROFILE%\.claude\skills\` | `%USERPROFILE%\.claude\plugins\` | | ||
| | Claude Code | `%USERPROFILE%\.claude\skills\` | `%USERPROFILE%\.claude\plugins\cache\agent-powerups\` | | ||
| | Gemini CLI | `%USERPROFILE%\.gemini\skills\` | `%USERPROFILE%\.gemini\extensions\` | | ||
@@ -40,0 +40,0 @@ |
+1
-1
| { | ||
| "name": "agent-powerups", | ||
| "version": "0.4.2", | ||
| "version": "0.4.3", | ||
| "description": "Local-first CLI for browsing, validating, running, and explicitly writing agent powerups.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 4 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 3 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1922504
0.01%15666
0.06%42
5%