agy-plugins-cli 1.1.14 → 1.2.0

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/dist/fetcher.js +1 -1
  2. package/package.json +1 -1
package/dist/fetcher.js CHANGED
@@ -194,7 +194,7 @@ async function downloadPlugin(repo, pluginPath, targetDir, skipSecurityCheck = f
194
194
  continue;
195
195
  }
196
196
  // Handle hooks.json merge specially
197
- if (item.name === 'hooks.json' && path.basename(path.dirname(localPath)) === 'hooks') {
197
+ if (item.name === 'hooks.json' && targetDir === activeRootTargetDir) {
198
198
  console.log(chalk_1.default.blue(`Found hooks.json. Merging into root hooks.json...`));
199
199
  const remoteContent = Buffer.from(fileResponse.data).toString('utf-8');
200
200
  const rootHooksPath = path.join(activeRootTargetDir, 'hooks.json');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agy-plugins-cli",
3
- "version": "1.1.14",
3
+ "version": "1.2.0",
4
4
  "description": "Antigravity Plugin Manager",
5
5
  "main": "dist/index.js",
6
6
  "bin": {