claudekit-cli 3.5.1 → 3.5.2
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/dist/index.js +41 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7411,7 +7411,7 @@ var require_umd = __commonJS((exports, module) => {
|
|
|
7411
7411
|
}
|
|
7412
7412
|
return 0;
|
|
7413
7413
|
};
|
|
7414
|
-
const
|
|
7414
|
+
const compareVersions3 = (v1, v2) => {
|
|
7415
7415
|
const n1 = validateAndParse(v1);
|
|
7416
7416
|
const n2 = validateAndParse(v2);
|
|
7417
7417
|
const p1 = n1.pop();
|
|
@@ -7428,7 +7428,7 @@ var require_umd = __commonJS((exports, module) => {
|
|
|
7428
7428
|
};
|
|
7429
7429
|
const compare = (v1, v2, operator) => {
|
|
7430
7430
|
assertValidOperator(operator);
|
|
7431
|
-
const res =
|
|
7431
|
+
const res = compareVersions3(v1, v2);
|
|
7432
7432
|
return operatorResMap[operator].includes(res);
|
|
7433
7433
|
};
|
|
7434
7434
|
const operatorResMap = {
|
|
@@ -7485,7 +7485,7 @@ var require_umd = __commonJS((exports, module) => {
|
|
|
7485
7485
|
const validate = (version) => typeof version === "string" && /^[v\d]/.test(version) && semver.test(version);
|
|
7486
7486
|
const validateStrict = (version) => typeof version === "string" && /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(version);
|
|
7487
7487
|
exports2.compare = compare;
|
|
7488
|
-
exports2.compareVersions =
|
|
7488
|
+
exports2.compareVersions = compareVersions3;
|
|
7489
7489
|
exports2.satisfies = satisfies;
|
|
7490
7490
|
exports2.validate = validate;
|
|
7491
7491
|
exports2.validateStrict = validateStrict;
|
|
@@ -14750,7 +14750,7 @@ var cac = (name = "") => new CAC(name);
|
|
|
14750
14750
|
// package.json
|
|
14751
14751
|
var package_default = {
|
|
14752
14752
|
name: "claudekit-cli",
|
|
14753
|
-
version: "3.5.
|
|
14753
|
+
version: "3.5.2",
|
|
14754
14754
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
14755
14755
|
type: "module",
|
|
14756
14756
|
repository: {
|
|
@@ -15408,6 +15408,21 @@ async function installDependency(dependency, method) {
|
|
|
15408
15408
|
// src/lib/health-checks/system-checker.ts
|
|
15409
15409
|
init_logger();
|
|
15410
15410
|
var execAsync3 = promisify3(exec3);
|
|
15411
|
+
var MIN_GH_CLI_VERSION = "2.20.0";
|
|
15412
|
+
function compareVersions2(a3, b3) {
|
|
15413
|
+
const partsA = a3.split(".").map(Number);
|
|
15414
|
+
const partsB = b3.split(".").map(Number);
|
|
15415
|
+
const maxLen = Math.max(partsA.length, partsB.length);
|
|
15416
|
+
for (let i = 0;i < maxLen; i++) {
|
|
15417
|
+
const numA = partsA[i] ?? 0;
|
|
15418
|
+
const numB = partsB[i] ?? 0;
|
|
15419
|
+
if (numA < numB)
|
|
15420
|
+
return -1;
|
|
15421
|
+
if (numA > numB)
|
|
15422
|
+
return 1;
|
|
15423
|
+
}
|
|
15424
|
+
return 0;
|
|
15425
|
+
}
|
|
15411
15426
|
|
|
15412
15427
|
class SystemChecker {
|
|
15413
15428
|
group = "system";
|
|
@@ -15527,12 +15542,25 @@ class SystemChecker {
|
|
|
15527
15542
|
try {
|
|
15528
15543
|
const { stdout } = await execAsync3("gh --version");
|
|
15529
15544
|
const match = stdout.match(/(\d+\.\d+\.\d+)/);
|
|
15545
|
+
const version = match?.[1];
|
|
15546
|
+
if (version && compareVersions2(version, MIN_GH_CLI_VERSION) < 0) {
|
|
15547
|
+
return {
|
|
15548
|
+
id: "gh-cli-version",
|
|
15549
|
+
name: "GitHub CLI",
|
|
15550
|
+
group: "system",
|
|
15551
|
+
status: "warn",
|
|
15552
|
+
message: `v${version} (outdated)`,
|
|
15553
|
+
details: `Minimum required: v${MIN_GH_CLI_VERSION}`,
|
|
15554
|
+
suggestion: this.getGhUpgradeInstructions(),
|
|
15555
|
+
autoFixable: false
|
|
15556
|
+
};
|
|
15557
|
+
}
|
|
15530
15558
|
return {
|
|
15531
15559
|
id: "gh-cli-version",
|
|
15532
15560
|
name: "GitHub CLI",
|
|
15533
15561
|
group: "system",
|
|
15534
15562
|
status: "pass",
|
|
15535
|
-
message:
|
|
15563
|
+
message: version ? `v${version}` : "Installed",
|
|
15536
15564
|
autoFixable: true,
|
|
15537
15565
|
fix: undefined
|
|
15538
15566
|
};
|
|
@@ -15549,6 +15577,13 @@ class SystemChecker {
|
|
|
15549
15577
|
};
|
|
15550
15578
|
}
|
|
15551
15579
|
}
|
|
15580
|
+
getGhUpgradeInstructions() {
|
|
15581
|
+
return `Upgrade GitHub CLI to v${MIN_GH_CLI_VERSION}+:
|
|
15582
|
+
macOS: brew upgrade gh
|
|
15583
|
+
Windows: winget upgrade GitHub.cli
|
|
15584
|
+
Linux: sudo apt update && sudo apt upgrade gh
|
|
15585
|
+
Or visit: https://cli.github.com`;
|
|
15586
|
+
}
|
|
15552
15587
|
createGhCliFix() {
|
|
15553
15588
|
return {
|
|
15554
15589
|
id: "install-gh-cli",
|
|
@@ -32291,7 +32326,7 @@ import { promisify as promisify6 } from "node:util";
|
|
|
32291
32326
|
// package.json
|
|
32292
32327
|
var package_default2 = {
|
|
32293
32328
|
name: "claudekit-cli",
|
|
32294
|
-
version: "3.5.
|
|
32329
|
+
version: "3.5.2",
|
|
32295
32330
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
32296
32331
|
type: "module",
|
|
32297
32332
|
repository: {
|