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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "4.1.1-dev.1",
3
- "generatedAt": "2026-05-11T17:54:30.240Z",
2
+ "version": "4.1.1-dev.2",
3
+ "generatedAt": "2026-05-12T14:03:18.535Z",
4
4
  "commands": {
5
5
  "agents": {
6
6
  "name": "agents",
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.1",
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 shouldRunCkExecutableInShell(platformName = process.platform) {
64893
- return platformName === "win32";
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 child = spawn2(resolveCkExecutable(), spawnArgs, {
65004
- stdio: "inherit",
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}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudekit-cli",
3
- "version": "4.1.1-dev.1",
3
+ "version": "4.1.1-dev.2",
4
4
  "description": "CLI tool for bootstrapping and updating ClaudeKit projects",
5
5
  "type": "module",
6
6
  "repository": {