claudekit-cli 3.36.0-dev.33 → 3.36.0-dev.35
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 +22 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11241,17 +11241,28 @@ var init_provider_registry = __esm(() => {
|
|
|
11241
11241
|
writeStrategy: "merge-single",
|
|
11242
11242
|
fileExtension: ".md"
|
|
11243
11243
|
},
|
|
11244
|
-
hooks:
|
|
11245
|
-
|
|
11244
|
+
hooks: {
|
|
11245
|
+
projectPath: ".codex/hooks",
|
|
11246
|
+
globalPath: join(home, ".codex/hooks"),
|
|
11247
|
+
format: "direct-copy",
|
|
11248
|
+
writeStrategy: "per-file",
|
|
11249
|
+
fileExtension: ""
|
|
11250
|
+
},
|
|
11251
|
+
settingsJsonPath: {
|
|
11252
|
+
projectPath: ".codex/hooks.json",
|
|
11253
|
+
globalPath: join(home, ".codex/hooks.json")
|
|
11254
|
+
},
|
|
11246
11255
|
detect: async () => hasAnyInstallSignal([
|
|
11247
11256
|
join(cwd, ".codex/config.toml"),
|
|
11248
11257
|
join(cwd, ".codex/agents"),
|
|
11249
11258
|
join(cwd, ".codex/prompts"),
|
|
11259
|
+
join(cwd, ".codex/hooks.json"),
|
|
11250
11260
|
join(home, ".codex/config.toml"),
|
|
11251
11261
|
join(home, ".codex/agents"),
|
|
11252
11262
|
join(home, ".codex/AGENTS.md"),
|
|
11253
11263
|
join(home, ".codex/instructions.md"),
|
|
11254
|
-
join(home, ".codex/prompts")
|
|
11264
|
+
join(home, ".codex/prompts"),
|
|
11265
|
+
join(home, ".codex/hooks.json")
|
|
11255
11266
|
])
|
|
11256
11267
|
},
|
|
11257
11268
|
droid: {
|
|
@@ -49768,19 +49779,19 @@ function deduplicateMerge(existing, incoming) {
|
|
|
49768
49779
|
}
|
|
49769
49780
|
async function migrateHooksSettings(options2) {
|
|
49770
49781
|
const { sourceProvider, targetProvider, installedHookFiles, global: isGlobal } = options2;
|
|
49771
|
-
if (
|
|
49782
|
+
if (installedHookFiles.length === 0) {
|
|
49783
|
+
return { success: true, backupPath: null, hooksRegistered: 0 };
|
|
49784
|
+
}
|
|
49785
|
+
const sourceConfig = providers[sourceProvider];
|
|
49786
|
+
const targetConfig = providers[targetProvider];
|
|
49787
|
+
if (!sourceConfig.settingsJsonPath) {
|
|
49772
49788
|
return {
|
|
49773
49789
|
success: true,
|
|
49774
49790
|
backupPath: null,
|
|
49775
49791
|
hooksRegistered: 0,
|
|
49776
|
-
message: `Hook migration from ${
|
|
49792
|
+
message: `Hook settings migration from ${sourceProvider} not supported (no hooks configuration)`
|
|
49777
49793
|
};
|
|
49778
49794
|
}
|
|
49779
|
-
if (installedHookFiles.length === 0) {
|
|
49780
|
-
return { success: true, backupPath: null, hooksRegistered: 0 };
|
|
49781
|
-
}
|
|
49782
|
-
const sourceConfig = providers[sourceProvider];
|
|
49783
|
-
const targetConfig = providers[targetProvider];
|
|
49784
49795
|
const sourceSettingsPath = isGlobal ? sourceConfig.settingsJsonPath?.globalPath : sourceConfig.settingsJsonPath?.projectPath;
|
|
49785
49796
|
const targetSettingsPath = isGlobal ? targetConfig.settingsJsonPath?.globalPath : targetConfig.settingsJsonPath?.projectPath;
|
|
49786
49797
|
if (!sourceSettingsPath || !targetSettingsPath) {
|
|
@@ -56628,7 +56639,7 @@ var package_default;
|
|
|
56628
56639
|
var init_package = __esm(() => {
|
|
56629
56640
|
package_default = {
|
|
56630
56641
|
name: "claudekit-cli",
|
|
56631
|
-
version: "3.36.0-dev.
|
|
56642
|
+
version: "3.36.0-dev.35",
|
|
56632
56643
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
56633
56644
|
type: "module",
|
|
56634
56645
|
repository: {
|