Skip to content

Commit 44e8dad

Browse files
authored
Merge pull request #326 from syncable-dev/remove-agent-chat
feat: updating plugin installer
2 parents 01fad05 + 30baf92 commit 44e8dad

6 files changed

Lines changed: 17 additions & 32 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
},
77
"metadata": {
88
"description": "Syncable CLI skills for AI coding agents — project analysis, security, vulnerabilities, dependencies, IaC validation, and cloud deployment.",
9-
"version": "0.1.13"
9+
"version": "0.1.14"
1010
},
1111
"plugins": [
1212
{
1313
"name": "syncable-cli-skills",
1414
"source": "./installer/plugins/syncable-cli-skills",
1515
"description": "Syncable CLI skills for project analysis, security scanning, vulnerability detection, dependency auditing, IaC validation, Kubernetes optimization, and cloud deployment.",
16-
"version": "0.1.13",
16+
"version": "0.1.14",
1717
"author": {
1818
"name": "Syncable",
1919
"email": "support@syncable.dev"

installer/.claude-plugin/marketplace.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

installer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "syncable-cli-skills",
3-
"version": "0.1.13",
3+
"version": "0.1.14",
44
"type": "module",
55
"description": "Install Syncable CLI skills for AI coding agents (Claude Code, Cursor, Windsurf, Codex, Gemini CLI)",
66
"license": "GPL-3.0",

installer/plugins/syncable-cli-skills/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "syncable-cli-skills",
33
"description": "Syncable CLI skills for project analysis, security scanning, vulnerability detection, dependency auditing, IaC validation, Kubernetes optimization, and cloud deployment.",
4-
"version": "0.1.13",
4+
"version": "0.1.14",
55
"author": {
66
"name": "Syncable",
77
"email": "support@syncable.dev"

installer/src/transformers/claude.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,19 @@ export async function installClaudePlugin(skills: Skill[]): Promise<{ cacheDir:
213213
cacheDir = getClaudePluginCacheDir();
214214
}
215215

216-
// Step 3: Clear and rewrite skills so the cache is always fresh.
216+
// Step 3: Remove ALL other version directories. Previous installs may have
217+
// created directories at different versions that are now stale/orphaned.
218+
const pluginRoot = getPluginCacheRoot();
219+
if (fs.existsSync(pluginRoot)) {
220+
const activeDirName = path.basename(cacheDir);
221+
for (const entry of fs.readdirSync(pluginRoot)) {
222+
if (entry !== activeDirName && entry !== '.DS_Store') {
223+
fs.rmSync(path.join(pluginRoot, entry), { recursive: true, force: true });
224+
}
225+
}
226+
}
227+
228+
// Step 4: Clear and rewrite skills so the cache is always fresh.
217229
const skillsDir = path.join(cacheDir, 'skills');
218230
if (fs.existsSync(skillsDir)) {
219231
fs.rmSync(skillsDir, { recursive: true });

0 commit comments

Comments
 (0)