@kody-ade/kody-engine 0.4.181 → 0.4.182

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 +12 -14
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -1309,7 +1309,7 @@ var init_loadPriorArt = __esm({
1309
1309
  // package.json
1310
1310
  var package_default = {
1311
1311
  name: "@kody-ade/kody-engine",
1312
- version: "0.4.181",
1312
+ version: "0.4.182",
1313
1313
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
1314
1314
  license: "MIT",
1315
1315
  type: "module",
@@ -12654,22 +12654,20 @@ var runPreviewBuild = async (ctx, _profile, _args) => {
12654
12654
  "bash",
12655
12655
  [
12656
12656
  "-c",
12657
- `curl -fsSL https://get.namespace.so/install.sh | bash -s -- -y || curl -fsSL https://get.namespace.so/install.sh | bash`
12657
+ `if [ ! -x /usr/local/bin/nsc ]; then
12658
+ ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') &&
12659
+ OS=$(uname -s | tr '[:upper:]' '[:lower:]') &&
12660
+ curl -fsSL "https://get.namespace.so/packages/nsc/latest?arch=$ARCH&os=$OS" -o /tmp/nsc.tar.gz &&
12661
+ tar -xzf /tmp/nsc.tar.gz -C /tmp &&
12662
+ sudo install -m 0755 /tmp/nsc /usr/local/bin/nsc &&
12663
+ rm -f /tmp/nsc /tmp/nsc.tar.gz
12664
+ fi
12665
+ /usr/local/bin/nsc version`
12658
12666
  ],
12659
12667
  { cwd: ctx.cwd }
12660
12668
  );
12661
- const nscPath = [
12662
- `${process.env.HOME ?? ""}/.local/bin`,
12663
- "/usr/local/bin",
12664
- process.env.PATH ?? ""
12665
- ].filter(Boolean).join(":");
12666
- await runCmd("bash", ["-c", "nsc version"], {
12667
- cwd: ctx.cwd,
12668
- env: { PATH: nscPath }
12669
- });
12670
- await runCmd("nsc", ["docker", "buildx", "setup"], {
12671
- cwd: ctx.cwd,
12672
- env: { PATH: nscPath }
12669
+ await runCmd("/usr/local/bin/nsc", ["docker", "buildx", "setup"], {
12670
+ cwd: ctx.cwd
12673
12671
  });
12674
12672
  await runCmd(
12675
12673
  "docker",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.181",
3
+ "version": "0.4.182",
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",