claudekit-cli 4.0.0-dev.6 → 4.0.0-dev.7
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/cli-manifest.json +2 -2
- package/dist/index.js +35 -27
- package/package.json +1 -1
package/cli-manifest.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -62842,7 +62842,7 @@ var package_default;
|
|
|
62842
62842
|
var init_package = __esm(() => {
|
|
62843
62843
|
package_default = {
|
|
62844
62844
|
name: "claudekit-cli",
|
|
62845
|
-
version: "4.0.0-dev.
|
|
62845
|
+
version: "4.0.0-dev.7",
|
|
62846
62846
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
62847
62847
|
type: "module",
|
|
62848
62848
|
repository: {
|
|
@@ -85508,23 +85508,43 @@ import { existsSync as existsSync55 } from "node:fs";
|
|
|
85508
85508
|
import { readdir as readdir20 } from "node:fs/promises";
|
|
85509
85509
|
import { join as join80 } from "node:path";
|
|
85510
85510
|
async function checkProjectConfigCompleteness(setup, projectDir) {
|
|
85511
|
+
const baseResult = {
|
|
85512
|
+
id: "ck-project-config-complete",
|
|
85513
|
+
name: "Project Config Completeness",
|
|
85514
|
+
group: "claudekit",
|
|
85515
|
+
priority: "standard",
|
|
85516
|
+
autoFixable: false
|
|
85517
|
+
};
|
|
85511
85518
|
if (setup.project.path === setup.global.path) {
|
|
85512
85519
|
return {
|
|
85513
|
-
|
|
85514
|
-
name: "Project Config Completeness",
|
|
85515
|
-
group: "claudekit",
|
|
85516
|
-
priority: "standard",
|
|
85520
|
+
...baseResult,
|
|
85517
85521
|
status: "info",
|
|
85518
|
-
message: "Not in a project directory"
|
|
85519
|
-
|
|
85522
|
+
message: "Not in a project directory"
|
|
85523
|
+
};
|
|
85524
|
+
}
|
|
85525
|
+
const hasGlobalInstall = !!setup.global.metadata;
|
|
85526
|
+
const hasProjectOptIn = !!setup.project.metadata;
|
|
85527
|
+
if (!hasProjectOptIn) {
|
|
85528
|
+
if (hasGlobalInstall) {
|
|
85529
|
+
return {
|
|
85530
|
+
...baseResult,
|
|
85531
|
+
status: "info",
|
|
85532
|
+
message: "Using global ClaudeKit (no project override)",
|
|
85533
|
+
details: "Run 'ck init' here only if you want project-specific agents/skills/rules"
|
|
85534
|
+
};
|
|
85535
|
+
}
|
|
85536
|
+
return {
|
|
85537
|
+
...baseResult,
|
|
85538
|
+
status: "warn",
|
|
85539
|
+
message: "ClaudeKit not installed",
|
|
85540
|
+
suggestion: "Run 'ck init' (choose global or project scope when prompted)"
|
|
85520
85541
|
};
|
|
85521
85542
|
}
|
|
85522
85543
|
const projectClaudeDir = join80(projectDir, ".claude");
|
|
85523
85544
|
const requiredDirs = ["agents", "commands", "skills"];
|
|
85524
85545
|
const missingDirs = [];
|
|
85525
85546
|
for (const dir of requiredDirs) {
|
|
85526
|
-
|
|
85527
|
-
if (!existsSync55(dirPath)) {
|
|
85547
|
+
if (!existsSync55(join80(projectClaudeDir, dir))) {
|
|
85528
85548
|
missingDirs.push(dir);
|
|
85529
85549
|
}
|
|
85530
85550
|
}
|
|
@@ -85537,39 +85557,27 @@ async function checkProjectConfigCompleteness(setup, projectDir) {
|
|
|
85537
85557
|
const totalRequired = requiredDirs.length + 1;
|
|
85538
85558
|
if (hasOnlyClaudeMd || missingDirs.length === totalRequired) {
|
|
85539
85559
|
return {
|
|
85540
|
-
|
|
85541
|
-
name: "Project Config Completeness",
|
|
85542
|
-
group: "claudekit",
|
|
85543
|
-
priority: "standard",
|
|
85560
|
+
...baseResult,
|
|
85544
85561
|
status: "fail",
|
|
85545
85562
|
message: "Incomplete configuration",
|
|
85546
85563
|
details: "Only CLAUDE.md found - missing agents, commands, rules, skills",
|
|
85547
|
-
suggestion: "Run 'ck init' to install complete ClaudeKit in project"
|
|
85548
|
-
autoFixable: false
|
|
85564
|
+
suggestion: "Run 'ck init' to install complete ClaudeKit in project"
|
|
85549
85565
|
};
|
|
85550
85566
|
}
|
|
85551
85567
|
if (missingDirs.length > 0) {
|
|
85552
85568
|
return {
|
|
85553
|
-
|
|
85554
|
-
name: "Project Config Completeness",
|
|
85555
|
-
group: "claudekit",
|
|
85556
|
-
priority: "standard",
|
|
85569
|
+
...baseResult,
|
|
85557
85570
|
status: "warn",
|
|
85558
85571
|
message: `Missing ${missingDirs.length} directories`,
|
|
85559
85572
|
details: `Missing: ${missingDirs.join(", ")}`,
|
|
85560
|
-
suggestion: "Run 'ck init' to update project configuration"
|
|
85561
|
-
autoFixable: false
|
|
85573
|
+
suggestion: "Run 'ck init' to update project configuration"
|
|
85562
85574
|
};
|
|
85563
85575
|
}
|
|
85564
85576
|
return {
|
|
85565
|
-
|
|
85566
|
-
name: "Project Config Completeness",
|
|
85567
|
-
group: "claudekit",
|
|
85568
|
-
priority: "standard",
|
|
85577
|
+
...baseResult,
|
|
85569
85578
|
status: "pass",
|
|
85570
85579
|
message: "Complete configuration",
|
|
85571
|
-
details: projectClaudeDir
|
|
85572
|
-
autoFixable: false
|
|
85580
|
+
details: projectClaudeDir
|
|
85573
85581
|
};
|
|
85574
85582
|
}
|
|
85575
85583
|
// src/domains/health-checks/checkers/env-keys-checker.ts
|