sproutkit-code 1.9.0 → 1.9.1

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/index.js +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -98209,10 +98209,15 @@ function desktopSupported() {
98209
98209
  function desktopInstallPath() {
98210
98210
  return installCandidates().find((p) => import_fs2.default.existsSync(p)) ?? null;
98211
98211
  }
98212
+ function isAppleSilicon() {
98213
+ if (process.arch === "arm64") return true;
98214
+ const r = (0, import_child_process.spawnSync)("sysctl", ["-n", "hw.optional.arm64"], { encoding: "utf-8" });
98215
+ return r.status === 0 && r.stdout.trim() === "1";
98216
+ }
98212
98217
  function pickAsset(assets) {
98213
98218
  if (process.platform === "darwin") {
98214
98219
  const dmgs = assets.filter((a) => a.name.endsWith(".dmg"));
98215
- return process.arch === "arm64" ? dmgs.find((a) => a.name.includes("arm64")) : dmgs.find((a) => !a.name.includes("arm64"));
98220
+ return isAppleSilicon() ? dmgs.find((a) => a.name.includes("arm64")) : dmgs.find((a) => !a.name.includes("arm64"));
98216
98221
  }
98217
98222
  if (process.platform === "win32") return assets.find((a) => a.name.endsWith(".exe"));
98218
98223
  return void 0;
@@ -98360,7 +98365,7 @@ var require_package2 = __commonJS({
98360
98365
  "package.json"(exports2, module2) {
98361
98366
  module2.exports = {
98362
98367
  name: "sproutkit-code",
98363
- version: "1.9.0",
98368
+ version: "1.9.1",
98364
98369
  description: "Sproutkit in your terminal \u2014 find leads, build sites, run outreach, all via chat.",
98365
98370
  bin: {
98366
98371
  sproutkit: "./dist/index.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sproutkit-code",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Sproutkit in your terminal — find leads, build sites, run outreach, all via chat.",
5
5
  "bin": {
6
6
  "sproutkit": "./dist/index.js"