@ztffn/presentation-generator-plugin 1.3.8 → 1.3.9

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "presentation-generator",
3
3
  "description": "Generate complete graph-based presentations from natural language briefs and project documents. Pipeline: content extraction, narrative design, deterministic graph generation, and visual styling.",
4
- "version": "1.3.8",
4
+ "version": "1.3.9",
5
5
  "author": {
6
6
  "name": "Huma"
7
7
  },
package/bin/index.js CHANGED
@@ -178,6 +178,18 @@ function ensureMarketplaceJson(pluginsDir) {
178
178
  }
179
179
  }
180
180
 
181
+ function cleanOldCacheVersions(keepVersion) {
182
+ const cachePluginDir = path.join(
183
+ os.homedir(), ".claude", "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME
184
+ );
185
+ if (!fs.existsSync(cachePluginDir)) return;
186
+ for (const entry of fs.readdirSync(cachePluginDir)) {
187
+ if (entry !== keepVersion) {
188
+ fs.rmSync(path.join(cachePluginDir, entry), { recursive: true, force: true });
189
+ }
190
+ }
191
+ }
192
+
181
193
  function registerWithClaude(installDir, scope) {
182
194
  const pluginsDir = path.dirname(installDir);
183
195
  ensureMarketplaceJson(pluginsDir);
@@ -288,6 +300,7 @@ async function update() {
288
300
  await downloadAndExtract(meta.version, meta.tarball, installDir);
289
301
  const updateScope = installDir === GLOBAL_INSTALL_DIR ? "user" : "project";
290
302
  registerWithClaude(installDir, updateScope);
303
+ cleanOldCacheVersions(meta.version);
291
304
  console.log(`${label}: updated to v${meta.version} ✓`);
292
305
  }
293
306
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztffn/presentation-generator-plugin",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Claude Code plugin for generating graph-based presentations",
5
5
  "bin": {
6
6
  "presentation-generator-plugin": "bin/index.js"