claudekit-cli 4.3.1-dev.4 → 4.3.1-dev.6
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
CHANGED
package/dist/index.js
CHANGED
|
@@ -49999,7 +49999,7 @@ var init_ck_config_schema = __esm(() => {
|
|
|
49999
49999
|
"descriptive-name": {
|
|
50000
50000
|
type: "boolean",
|
|
50001
50001
|
default: true,
|
|
50002
|
-
description: "PreToolUse hook -
|
|
50002
|
+
description: "PreToolUse hook - injects language-aware descriptive file naming guidance"
|
|
50003
50003
|
},
|
|
50004
50004
|
"dev-rules-reminder": {
|
|
50005
50005
|
type: "boolean",
|
|
@@ -63358,7 +63358,7 @@ var package_default;
|
|
|
63358
63358
|
var init_package = __esm(() => {
|
|
63359
63359
|
package_default = {
|
|
63360
63360
|
name: "claudekit-cli",
|
|
63361
|
-
version: "4.3.1-dev.
|
|
63361
|
+
version: "4.3.1-dev.6",
|
|
63362
63362
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
63363
63363
|
type: "module",
|
|
63364
63364
|
repository: {
|
|
@@ -66768,15 +66768,18 @@ async function repairMissingHookFileReferences(projectDir = process.cwd()) {
|
|
|
66768
66768
|
}
|
|
66769
66769
|
async function promptMigrateUpdate(deps) {
|
|
66770
66770
|
try {
|
|
66771
|
-
|
|
66772
|
-
|
|
66773
|
-
|
|
66774
|
-
|
|
66775
|
-
|
|
66771
|
+
const repairFn = deps?.repairHookFileReferencesFn ?? repairMissingHookFileReferences;
|
|
66772
|
+
const repairHookFileReferencesSafely = async () => {
|
|
66773
|
+
try {
|
|
66774
|
+
const repaired = await repairFn(process.cwd());
|
|
66775
|
+
if (repaired > 0) {
|
|
66776
|
+
logger.info(`Repaired ${repaired} missing hook file reference(s)`);
|
|
66777
|
+
}
|
|
66778
|
+
} catch (error) {
|
|
66779
|
+
logger.verbose(`Hook file reference repair skipped: ${error instanceof Error ? error.message : "unknown"}`);
|
|
66776
66780
|
}
|
|
66777
|
-
}
|
|
66778
|
-
|
|
66779
|
-
}
|
|
66781
|
+
};
|
|
66782
|
+
await repairHookFileReferencesSafely();
|
|
66780
66783
|
const providerRegistry = deps?.detectInstalledProvidersFn && deps?.getProviderConfigFn ? null : await Promise.resolve().then(() => (init_provider_registry(), exports_provider_registry));
|
|
66781
66784
|
const detectFn = deps?.detectInstalledProvidersFn ?? providerRegistry?.detectInstalledProviders;
|
|
66782
66785
|
const getConfigFn = deps?.getProviderConfigFn ?? providerRegistry?.getProviderConfig;
|
|
@@ -66806,6 +66809,7 @@ async function promptMigrateUpdate(deps) {
|
|
|
66806
66809
|
} catch (error) {
|
|
66807
66810
|
logger.verbose(`Migrated hook cleanup skipped: ${error instanceof Error ? error.message : "unknown"}`);
|
|
66808
66811
|
}
|
|
66812
|
+
await repairHookFileReferencesSafely();
|
|
66809
66813
|
const targets = allProviders.filter((p) => p !== "claude-code");
|
|
66810
66814
|
if (targets.length === 0) {
|
|
66811
66815
|
logger.verbose("No migration targets detected, skipping migrate step");
|
|
@@ -102589,6 +102593,10 @@ function pruneZombieEngineerWirings(settings, hookDir) {
|
|
|
102589
102593
|
return { settings, pruned };
|
|
102590
102594
|
}
|
|
102591
102595
|
function shouldPruneEntry(entry, hookDir, pruned) {
|
|
102596
|
+
if (isLegacyDescriptiveNamePrompt(entry)) {
|
|
102597
|
+
pruned.push("legacy-descriptive-name-prompt");
|
|
102598
|
+
return true;
|
|
102599
|
+
}
|
|
102592
102600
|
if (entry._origin !== "engineer")
|
|
102593
102601
|
return false;
|
|
102594
102602
|
const filePath = extractHookFilePath(entry.command, hookDir);
|
|
@@ -102599,6 +102607,12 @@ function shouldPruneEntry(entry, hookDir, pruned) {
|
|
|
102599
102607
|
pruned.push(basename26(filePath));
|
|
102600
102608
|
return true;
|
|
102601
102609
|
}
|
|
102610
|
+
function isLegacyDescriptiveNamePrompt(entry) {
|
|
102611
|
+
const prompt = entry.prompt;
|
|
102612
|
+
if (entry.type !== "prompt" || typeof prompt !== "string")
|
|
102613
|
+
return false;
|
|
102614
|
+
return prompt.includes("Use kebab-case file naming") && prompt.includes("self-documenting") && prompt.includes("Grep, Glob, Search");
|
|
102615
|
+
}
|
|
102602
102616
|
function extractHookFilePath(command, hookDir) {
|
|
102603
102617
|
if (!command)
|
|
102604
102618
|
return null;
|
|
@@ -148,7 +148,7 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
148
148
|
"hooks": {
|
|
149
149
|
"subagent-init": false
|
|
150
150
|
}
|
|
151
|
-
}`},"hooks.descriptive-name":{path:"hooks.descriptive-name",type:"boolean",default:"true",description:"Injects
|
|
151
|
+
}`},"hooks.descriptive-name":{path:"hooks.descriptive-name",type:"boolean",default:"true",description:"Injects language-aware naming context so agents generate meaningful, self-documenting file names.",descriptionVi:"Tiêm ngữ cảnh đặt tên theo ngôn ngữ để agent tạo tên tệp có ý nghĩa, tự tài liệu hóa.",effect:"When enabled, reminds the agent to prefer descriptive names while respecting language conventions such as snake_case for Python, Go, and Rust.",effectVi:"Khi bật, nhắc agent ưu tiên tên mô tả nhưng vẫn theo quy ước ngôn ngữ như snake_case cho Python, Go và Rust.",example:`{
|
|
152
152
|
"hooks": {
|
|
153
153
|
"descriptive-name": false
|
|
154
154
|
}
|
package/dist/ui/index.html
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
background: var(--dash-text-muted);
|
|
72
72
|
}
|
|
73
73
|
</style>
|
|
74
|
-
<script type="module" crossorigin src="/assets/index-
|
|
74
|
+
<script type="module" crossorigin src="/assets/index-SfhG5yaa.js"></script>
|
|
75
75
|
<link rel="modulepreload" crossorigin href="/assets/vendor-BkC4CYzM.js">
|
|
76
76
|
<link rel="stylesheet" crossorigin href="/assets/index-fz2_unLw.css">
|
|
77
77
|
</head>
|