ccjk 2.0.13 → 2.0.14
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.
|
@@ -22,7 +22,7 @@ import i18next from 'i18next';
|
|
|
22
22
|
import Backend from 'i18next-fs-backend';
|
|
23
23
|
import { randomBytes } from 'node:crypto';
|
|
24
24
|
|
|
25
|
-
const version = "2.0.
|
|
25
|
+
const version = "2.0.14";
|
|
26
26
|
const homepage = "https://github.com/miounet11/ccjk";
|
|
27
27
|
|
|
28
28
|
const i18n = i18next.createInstance();
|
|
@@ -6773,29 +6773,7 @@ async function installSuperpowers(_options) {
|
|
|
6773
6773
|
message: i18n.t("superpowers:alreadyInstalled")
|
|
6774
6774
|
};
|
|
6775
6775
|
}
|
|
6776
|
-
|
|
6777
|
-
try {
|
|
6778
|
-
await execAsync("claude /plugin marketplace add obra/superpowers-marketplace", {
|
|
6779
|
-
timeout: 6e4
|
|
6780
|
-
});
|
|
6781
|
-
} catch {
|
|
6782
|
-
}
|
|
6783
|
-
console.log(i18n.t("superpowers:installing"));
|
|
6784
|
-
await execAsync("claude /plugin install superpowers@superpowers-marketplace", {
|
|
6785
|
-
timeout: 12e4
|
|
6786
|
-
});
|
|
6787
|
-
const newStatus = await checkSuperpowersInstalled();
|
|
6788
|
-
if (newStatus.installed) {
|
|
6789
|
-
return {
|
|
6790
|
-
success: true,
|
|
6791
|
-
message: i18n.t("superpowers:installSuccess")
|
|
6792
|
-
};
|
|
6793
|
-
}
|
|
6794
|
-
return {
|
|
6795
|
-
success: false,
|
|
6796
|
-
message: i18n.t("superpowers:installFailed"),
|
|
6797
|
-
error: "Installation completed but plugin not found"
|
|
6798
|
-
};
|
|
6776
|
+
return installSuperpowersViaGit();
|
|
6799
6777
|
} catch (error) {
|
|
6800
6778
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
6801
6779
|
return {
|
|
@@ -6845,16 +6823,10 @@ async function uninstallSuperpowers() {
|
|
|
6845
6823
|
message: i18n.t("superpowers:notInstalled")
|
|
6846
6824
|
};
|
|
6847
6825
|
}
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
});
|
|
6852
|
-
} catch {
|
|
6853
|
-
const superpowersPath = getSuperpowersPath();
|
|
6854
|
-
if (existsSync(superpowersPath)) {
|
|
6855
|
-
const { rm } = await import('node:fs/promises');
|
|
6856
|
-
await rm(superpowersPath, { recursive: true, force: true });
|
|
6857
|
-
}
|
|
6826
|
+
const superpowersPath = getSuperpowersPath();
|
|
6827
|
+
if (existsSync(superpowersPath)) {
|
|
6828
|
+
const { rm } = await import('node:fs/promises');
|
|
6829
|
+
await rm(superpowersPath, { recursive: true, force: true });
|
|
6858
6830
|
}
|
|
6859
6831
|
const newStatus = await checkSuperpowersInstalled();
|
|
6860
6832
|
if (!newStatus.installed) {
|
|
@@ -6885,25 +6857,15 @@ async function updateSuperpowers() {
|
|
|
6885
6857
|
message: i18n.t("superpowers:notInstalled")
|
|
6886
6858
|
};
|
|
6887
6859
|
}
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
}
|
|
6897
|
-
const superpowersPath = getSuperpowersPath();
|
|
6898
|
-
await execAsync("git pull", {
|
|
6899
|
-
cwd: superpowersPath,
|
|
6900
|
-
timeout: 6e4
|
|
6901
|
-
});
|
|
6902
|
-
return {
|
|
6903
|
-
success: true,
|
|
6904
|
-
message: i18n.t("superpowers:updateSuccess")
|
|
6905
|
-
};
|
|
6906
|
-
}
|
|
6860
|
+
const superpowersPath = getSuperpowersPath();
|
|
6861
|
+
await execAsync("git pull", {
|
|
6862
|
+
cwd: superpowersPath,
|
|
6863
|
+
timeout: 6e4
|
|
6864
|
+
});
|
|
6865
|
+
return {
|
|
6866
|
+
success: true,
|
|
6867
|
+
message: i18n.t("superpowers:updateSuccess")
|
|
6868
|
+
};
|
|
6907
6869
|
} catch (error) {
|
|
6908
6870
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
6909
6871
|
return {
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"updateSuccess": "Superpowers updated successfully",
|
|
18
18
|
"updateFailed": "Failed to update Superpowers",
|
|
19
19
|
"checkingStatus": "Checking Superpowers status...",
|
|
20
|
+
"cliNotAvailable": "Claude CLI not available, using Git installation...",
|
|
21
|
+
"pluginCommandFailed": "Plugin command failed, trying Git installation...",
|
|
20
22
|
"status.installed": "Installed",
|
|
21
23
|
"status.notInstalled": "Not Installed",
|
|
22
24
|
"status.version": "Version: {version}",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"updateSuccess": "Superpowers 更新成功",
|
|
18
18
|
"updateFailed": "Superpowers 更新失败",
|
|
19
19
|
"checkingStatus": "正在检查 Superpowers 状态...",
|
|
20
|
+
"cliNotAvailable": "Claude CLI 不可用,将使用 Git 方式安装...",
|
|
21
|
+
"pluginCommandFailed": "插件命令执行失败,尝试使用 Git 方式安装...",
|
|
20
22
|
"status.installed": "已安装",
|
|
21
23
|
"status.notInstalled": "未安装",
|
|
22
24
|
"status.version": "版本: {version}",
|
package/package.json
CHANGED