@kody-ade/kody-engine 0.4.1 → 0.4.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.
Files changed (2) hide show
  1. package/dist/bin/kody.js +10 -3
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@kody-ade/kody-engine",
6
- version: "0.4.1",
6
+ version: "0.4.2",
7
7
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
8
8
  license: "MIT",
9
9
  type: "module",
@@ -8086,11 +8086,18 @@ function isOnPath(bin) {
8086
8086
  return false;
8087
8087
  }
8088
8088
  }
8089
+ var PM_BOOTSTRAP_VERSION = {
8090
+ pnpm: "10",
8091
+ yarn: "1",
8092
+ bun: "1",
8093
+ npm: "latest"
8094
+ };
8089
8095
  function ensurePackageManagerInstalled(pm, cwd) {
8090
8096
  if (pm === "npm" || isOnPath(pm)) return 0;
8091
- process.stdout.write(`\u2192 kody: ${pm} not on PATH \u2014 installing via npm install -g ${pm}
8097
+ const spec = `${pm}@${PM_BOOTSTRAP_VERSION[pm]}`;
8098
+ process.stdout.write(`\u2192 kody: ${pm} not on PATH \u2014 installing via npm install -g ${spec}
8092
8099
  `);
8093
- return shellOut("npm", ["install", "-g", pm], cwd);
8100
+ return shellOut("npm", ["install", "-g", spec], cwd);
8094
8101
  }
8095
8102
  function installDeps(pm, cwd) {
8096
8103
  const ensureCode = ensurePackageManagerInstalled(pm, cwd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",