@rui.branco/claude-commands-mcp 2.0.29 → 2.0.30

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 +0 -39
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -73,45 +73,6 @@ function autoUpdate() {
73
73
  }
74
74
  }
75
75
 
76
- function needsRecovery() {
77
- try {
78
- const status = execSync("git status --porcelain -b", {
79
- cwd: CACHE_DIR,
80
- stdio: "pipe",
81
- }).toString();
82
- // Detached HEAD or rebase in progress
83
- return status.includes("no branch") || status.includes("rebase");
84
- } catch {
85
- return true;
86
- }
87
- }
88
-
89
- function gitRecover() {
90
- try {
91
- execSync("git rebase --abort", { cwd: CACHE_DIR, stdio: "pipe" });
92
- } catch {}
93
- try {
94
- execSync("git checkout main", { cwd: CACHE_DIR, stdio: "pipe" });
95
- } catch {}
96
- }
97
-
98
- function gitPushSync() {
99
- for (let attempt = 0; attempt < 3; attempt++) {
100
- try {
101
- execSync("git push", { cwd: CACHE_DIR, stdio: "pipe" });
102
- return;
103
- } catch {
104
- try {
105
- execSync("git pull --rebase", { cwd: CACHE_DIR, stdio: "pipe" });
106
- } catch {
107
- if (needsRecovery()) gitRecover();
108
- execSync("git pull -X ours", { cwd: CACHE_DIR, stdio: "pipe" });
109
- }
110
- }
111
- }
112
- execSync("git push", { cwd: CACHE_DIR, stdio: "pipe" });
113
- }
114
-
115
76
  function gitPush(message) {
116
77
  // Everything runs in background — don't block the caller
117
78
  const escapedMessage = message.replace(/"/g, '\\"');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rui.branco/claude-commands-mcp",
3
- "version": "2.0.29",
3
+ "version": "2.0.30",
4
4
  "description": "MCP server that serves Claude Code skill definitions from a git repo",
5
5
  "type": "module",
6
6
  "main": "index.js",