@ztffn/presentation-generator-plugin 1.3.7 → 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.
- package/.claude-plugin/plugin.json +2 -3
- package/bin/index.js +13 -0
- package/package.json +1 -1
|
@@ -1,11 +1,10 @@
|
|
|
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.
|
|
4
|
+
"version": "1.3.9",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Huma"
|
|
7
7
|
},
|
|
8
8
|
"homepage": "https://github.com/huma/humashowcase",
|
|
9
|
-
"keywords": ["presentation", "slides", "react-flow", "graph", "pitch deck"]
|
|
10
|
-
"hooks": "./hooks/hooks.json"
|
|
9
|
+
"keywords": ["presentation", "slides", "react-flow", "graph", "pitch deck"]
|
|
11
10
|
}
|
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
|
}
|