plugin-updater 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -126,9 +126,8 @@ function deployToExecutionDir(pluginName, executionPath) {
126
126
  // opencode iterates Object.entries(mod) and calls each export as fn(input).
127
127
  // ONLY export a single default function — no named exports.
128
128
  async function pluginUpdaterEntry(input) {
129
- const configDir = (input && input.directory)
130
- ? path.dirname(input.directory)
131
- : path.dirname(getReposDir());
129
+ const isClaude = process.argv.join(' ').includes('claude');
130
+ const configDir = getAppConfigDir(isClaude ? "claude" : "opencode");
132
131
 
133
132
  // 1. GUARANTEE BASE DIRECTORIES EXIST ON LAUNCH
134
133
  const reposDir = path.join(configDir, "repos");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugin-updater",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Plugin lifecycle manager for OpenCode and Claude Code launchers",
5
5
  "type": "module",
6
6
  "main": "index.js",