claudekit-cli 4.1.1-dev.1 → 4.1.1-dev.2
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 +17 -7
- package/package.json +1 -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.1.1-dev.
|
|
62893
|
+
version: "4.1.1-dev.2",
|
|
62894
62894
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
62895
62895
|
type: "module",
|
|
62896
62896
|
repository: {
|
|
@@ -64889,8 +64889,20 @@ function buildInitCommand(isGlobal, kit, beta, yes) {
|
|
|
64889
64889
|
function resolveCkExecutable(platformName = process.platform) {
|
|
64890
64890
|
return platformName === "win32" ? "ck.cmd" : "ck";
|
|
64891
64891
|
}
|
|
64892
|
-
function
|
|
64893
|
-
|
|
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
|
+
};
|
|
64894
64906
|
}
|
|
64895
64907
|
async function fetchLatestReleaseTag(kit, beta) {
|
|
64896
64908
|
try {
|
|
@@ -65000,10 +65012,8 @@ async function promptKitUpdate(beta, yes, deps) {
|
|
|
65000
65012
|
const displayCmd = `ck ${args.join(" ")}`;
|
|
65001
65013
|
logger.info(`Running: ${displayCmd}`);
|
|
65002
65014
|
const spawnFn = deps?.spawnInitFn ?? ((spawnArgs) => new Promise((resolve30) => {
|
|
65003
|
-
const
|
|
65004
|
-
|
|
65005
|
-
shell: shouldRunCkExecutableInShell()
|
|
65006
|
-
});
|
|
65015
|
+
const initCommand = resolveCkInitSpawnCommand(spawnArgs);
|
|
65016
|
+
const child = spawn2(initCommand.command, initCommand.args, { stdio: "inherit" });
|
|
65007
65017
|
child.on("close", (code) => resolve30(code ?? 1));
|
|
65008
65018
|
child.on("error", (err) => {
|
|
65009
65019
|
logger.verbose(`Failed to spawn ck init: ${err.message}`);
|