claudekit-cli 3.36.0-dev.32 → 3.36.0-dev.34
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 +23 -14
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// @bun
|
|
3
1
|
import { createRequire } from "node:module";
|
|
4
2
|
var __create = Object.create;
|
|
5
3
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -11243,17 +11241,28 @@ var init_provider_registry = __esm(() => {
|
|
|
11243
11241
|
writeStrategy: "merge-single",
|
|
11244
11242
|
fileExtension: ".md"
|
|
11245
11243
|
},
|
|
11246
|
-
hooks:
|
|
11247
|
-
|
|
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
|
+
},
|
|
11248
11255
|
detect: async () => hasAnyInstallSignal([
|
|
11249
11256
|
join(cwd, ".codex/config.toml"),
|
|
11250
11257
|
join(cwd, ".codex/agents"),
|
|
11251
11258
|
join(cwd, ".codex/prompts"),
|
|
11259
|
+
join(cwd, ".codex/hooks.json"),
|
|
11252
11260
|
join(home, ".codex/config.toml"),
|
|
11253
11261
|
join(home, ".codex/agents"),
|
|
11254
11262
|
join(home, ".codex/AGENTS.md"),
|
|
11255
11263
|
join(home, ".codex/instructions.md"),
|
|
11256
|
-
join(home, ".codex/prompts")
|
|
11264
|
+
join(home, ".codex/prompts"),
|
|
11265
|
+
join(home, ".codex/hooks.json")
|
|
11257
11266
|
])
|
|
11258
11267
|
},
|
|
11259
11268
|
droid: {
|
|
@@ -49770,19 +49779,19 @@ function deduplicateMerge(existing, incoming) {
|
|
|
49770
49779
|
}
|
|
49771
49780
|
async function migrateHooksSettings(options2) {
|
|
49772
49781
|
const { sourceProvider, targetProvider, installedHookFiles, global: isGlobal } = options2;
|
|
49773
|
-
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) {
|
|
49774
49788
|
return {
|
|
49775
49789
|
success: true,
|
|
49776
49790
|
backupPath: null,
|
|
49777
49791
|
hooksRegistered: 0,
|
|
49778
|
-
message: `Hook migration from ${
|
|
49792
|
+
message: `Hook settings migration from ${sourceProvider} not supported (no hooks configuration)`
|
|
49779
49793
|
};
|
|
49780
49794
|
}
|
|
49781
|
-
if (installedHookFiles.length === 0) {
|
|
49782
|
-
return { success: true, backupPath: null, hooksRegistered: 0 };
|
|
49783
|
-
}
|
|
49784
|
-
const sourceConfig = providers[sourceProvider];
|
|
49785
|
-
const targetConfig = providers[targetProvider];
|
|
49786
49795
|
const sourceSettingsPath = isGlobal ? sourceConfig.settingsJsonPath?.globalPath : sourceConfig.settingsJsonPath?.projectPath;
|
|
49787
49796
|
const targetSettingsPath = isGlobal ? targetConfig.settingsJsonPath?.globalPath : targetConfig.settingsJsonPath?.projectPath;
|
|
49788
49797
|
if (!sourceSettingsPath || !targetSettingsPath) {
|
|
@@ -56630,7 +56639,7 @@ var package_default;
|
|
|
56630
56639
|
var init_package = __esm(() => {
|
|
56631
56640
|
package_default = {
|
|
56632
56641
|
name: "claudekit-cli",
|
|
56633
|
-
version: "3.36.0-dev.
|
|
56642
|
+
version: "3.36.0-dev.34",
|
|
56634
56643
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
56635
56644
|
type: "module",
|
|
56636
56645
|
repository: {
|
|
@@ -56654,7 +56663,7 @@ var init_package = __esm(() => {
|
|
|
56654
56663
|
"dashboard:dev": "cd src/ui && bun install --silent && cd ../.. && bun run src/index.ts config ui --dev",
|
|
56655
56664
|
"ui:build": "cd src/ui && bun install --silent && bun run build",
|
|
56656
56665
|
"ui:dev": "cd src/ui && bun run dev",
|
|
56657
|
-
build:
|
|
56666
|
+
build: `bun build src/index.ts --outdir dist --target node --external @octokit/rest && node -e "const fs=require('fs'),f='dist/index.js',c=fs.readFileSync(f,'utf-8');fs.writeFileSync(f,c.replace(/^#!.*\\n\\/\\/ @bun\\n/,''))"`,
|
|
56658
56667
|
compile: "bun run ui:build && bun run scripts/compile-binary.ts",
|
|
56659
56668
|
"compile:binary": "bun run ui:build && bun run scripts/compile-binary.ts --outfile bin/ck && cp bin/ck /usr/local/bin/ck && echo '✅ Installed globally: /usr/local/bin/ck'",
|
|
56660
56669
|
"compile:binaries": "node scripts/build-all-binaries.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudekit-cli",
|
|
3
|
-
"version": "3.36.0-dev.
|
|
3
|
+
"version": "3.36.0-dev.34",
|
|
4
4
|
"description": "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dashboard:dev": "cd src/ui && bun install --silent && cd ../.. && bun run src/index.ts config ui --dev",
|
|
25
25
|
"ui:build": "cd src/ui && bun install --silent && bun run build",
|
|
26
26
|
"ui:dev": "cd src/ui && bun run dev",
|
|
27
|
-
"build": "bun build src/index.ts --outdir dist --target node --external @octokit/rest",
|
|
27
|
+
"build": "bun build src/index.ts --outdir dist --target node --external @octokit/rest && node -e \"const fs=require('fs'),f='dist/index.js',c=fs.readFileSync(f,'utf-8');fs.writeFileSync(f,c.replace(/^#!.*\\n\\/\\/ @bun\\n/,''))\"",
|
|
28
28
|
"compile": "bun run ui:build && bun run scripts/compile-binary.ts",
|
|
29
29
|
"compile:binary": "bun run ui:build && bun run scripts/compile-binary.ts --outfile bin/ck && cp bin/ck /usr/local/bin/ck && echo '✅ Installed globally: /usr/local/bin/ck'",
|
|
30
30
|
"compile:binaries": "node scripts/build-all-binaries.js",
|