@band-app/server 0.4.0 → 0.5.0

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.
@@ -133675,6 +133675,20 @@ function findCliBinary() {
133675
133675
  }
133676
133676
  }
133677
133677
  }
133678
+ const exe = platform2() === "win32" ? "band.exe" : "band";
133679
+ const electronCandidates = [
133680
+ // From cwd (<Resources>/web/dist) → <Resources>/binaries/band
133681
+ resolve5(process.cwd(), "..", "..", "binaries", exe),
133682
+ // From the bundled dist file (<Resources>/web/dist/...) → <Resources>/binaries/band
133683
+ resolve5(import.meta.dirname, "..", "..", "..", "binaries", exe)
133684
+ ];
133685
+ for (const p6 of electronCandidates) {
133686
+ try {
133687
+ lstatSync2(p6);
133688
+ return p6;
133689
+ } catch {
133690
+ }
133691
+ }
133678
133692
  return null;
133679
133693
  }
133680
133694
  async function checkCli() {
@@ -133690,8 +133704,9 @@ async function checkCli() {
133690
133704
  return "NotInstalled";
133691
133705
  }
133692
133706
  const isCargoBuild = target.includes(join18("apps", "cli", "target"));
133693
- const isSidecar = target.includes(join18("Contents", "MacOS", "band"));
133694
- if (!isCargoBuild && !isSidecar) {
133707
+ const isTauriSidecar = target.includes(join18("Contents", "MacOS", "band"));
133708
+ const isElectronSidecar = target.endsWith(join18("binaries", "band"));
133709
+ if (!isCargoBuild && !isTauriSidecar && !isElectronSidecar) {
133695
133710
  return "ConflictingBinary";
133696
133711
  }
133697
133712
  return "Installed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@band-app/server",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "band-server": "./bin/band-server.mjs"
@@ -82,10 +82,10 @@
82
82
  "vitest": "^4.0.18",
83
83
  "ws": "^8.18.0",
84
84
  "zod": "^3.25.67",
85
- "@band-app/dashboard-core": "^0.4.0",
86
- "@band-app/logger": "^0.4.0",
87
- "@band-app/coding-agent": "^0.4.0",
88
- "@band-app/ui": "^0.4.0"
85
+ "@band-app/ui": "^0.5.0",
86
+ "@band-app/logger": "^0.5.0",
87
+ "@band-app/coding-agent": "^0.5.0",
88
+ "@band-app/dashboard-core": "^0.5.0"
89
89
  },
90
90
  "scripts": {
91
91
  "dev": "vite dev --port 3456 --host 0.0.0.0",