claudekit-cli 4.1.1 → 4.2.0
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 +18 -7
- package/package.json +2 -1
package/cli-manifest.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -62890,7 +62890,7 @@ var package_default;
|
|
|
62890
62890
|
var init_package = __esm(() => {
|
|
62891
62891
|
package_default = {
|
|
62892
62892
|
name: "claudekit-cli",
|
|
62893
|
-
version: "4.
|
|
62893
|
+
version: "4.2.0",
|
|
62894
62894
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
62895
62895
|
type: "module",
|
|
62896
62896
|
repository: {
|
|
@@ -62934,6 +62934,7 @@ var init_package = __esm(() => {
|
|
|
62934
62934
|
"dev:all": "./scripts/dev-quick-start.sh all",
|
|
62935
62935
|
metrics: "bun run scripts/workflow-metrics.ts",
|
|
62936
62936
|
validate: "bun run typecheck && bun run lint && bun test && bun run ui:test && bun run build",
|
|
62937
|
+
"ci:local": "bash scripts/ci-local.sh",
|
|
62937
62938
|
"install:hooks": "./.githooks/install.sh",
|
|
62938
62939
|
prepare: `node -e "try{require('child_process').execSync('git rev-parse --git-dir',{stdio:'ignore'});require('child_process').execSync('bash .githooks/install.sh',{stdio:'inherit'})}catch(e){console.warn('[i] Hook install skipped:',e.message)}"`,
|
|
62939
62940
|
"help:check-parity": "bun run scripts/check-help-parity.ts",
|
|
@@ -64888,8 +64889,20 @@ function buildInitCommand(isGlobal, kit, beta, yes) {
|
|
|
64888
64889
|
function resolveCkExecutable(platformName = process.platform) {
|
|
64889
64890
|
return platformName === "win32" ? "ck.cmd" : "ck";
|
|
64890
64891
|
}
|
|
64891
|
-
function
|
|
64892
|
-
|
|
64892
|
+
function resolveCkInitSpawnCommand(initArgs, options2 = {}) {
|
|
64893
|
+
const execPath = options2.execPath ?? process.execPath;
|
|
64894
|
+
const argv = options2.argv ?? process.argv;
|
|
64895
|
+
const currentEntrypoint = argv[1];
|
|
64896
|
+
if (currentEntrypoint) {
|
|
64897
|
+
return {
|
|
64898
|
+
command: execPath,
|
|
64899
|
+
args: [currentEntrypoint, ...initArgs]
|
|
64900
|
+
};
|
|
64901
|
+
}
|
|
64902
|
+
return {
|
|
64903
|
+
command: resolveCkExecutable(options2.platformName),
|
|
64904
|
+
args: initArgs
|
|
64905
|
+
};
|
|
64893
64906
|
}
|
|
64894
64907
|
async function fetchLatestReleaseTag(kit, beta) {
|
|
64895
64908
|
try {
|
|
@@ -64999,10 +65012,8 @@ async function promptKitUpdate(beta, yes, deps) {
|
|
|
64999
65012
|
const displayCmd = `ck ${args.join(" ")}`;
|
|
65000
65013
|
logger.info(`Running: ${displayCmd}`);
|
|
65001
65014
|
const spawnFn = deps?.spawnInitFn ?? ((spawnArgs) => new Promise((resolve30) => {
|
|
65002
|
-
const
|
|
65003
|
-
|
|
65004
|
-
shell: shouldRunCkExecutableInShell()
|
|
65005
|
-
});
|
|
65015
|
+
const initCommand = resolveCkInitSpawnCommand(spawnArgs);
|
|
65016
|
+
const child = spawn2(initCommand.command, initCommand.args, { stdio: "inherit" });
|
|
65006
65017
|
child.on("close", (code) => resolve30(code ?? 1));
|
|
65007
65018
|
child.on("error", (err) => {
|
|
65008
65019
|
logger.verbose(`Failed to spawn ck init: ${err.message}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudekit-cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"dev:all": "./scripts/dev-quick-start.sh all",
|
|
45
45
|
"metrics": "bun run scripts/workflow-metrics.ts",
|
|
46
46
|
"validate": "bun run typecheck && bun run lint && bun test && bun run ui:test && bun run build",
|
|
47
|
+
"ci:local": "bash scripts/ci-local.sh",
|
|
47
48
|
"install:hooks": "./.githooks/install.sh",
|
|
48
49
|
"prepare": "node -e \"try{require('child_process').execSync('git rev-parse --git-dir',{stdio:'ignore'});require('child_process').execSync('bash .githooks/install.sh',{stdio:'inherit'})}catch(e){console.warn('[i] Hook install skipped:',e.message)}\"",
|
|
49
50
|
"help:check-parity": "bun run scripts/check-help-parity.ts",
|