esp32agent 0.1.0 → 0.1.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/install.js +3 -2
  2. package/package.json +3 -1
package/install.js CHANGED
@@ -1,4 +1,4 @@
1
- // postinstall: downloads the esp32agent binary of this package's version from GitHub Releases and checks its
1
+ // postinstall: downloads the esp32agent binary (binaryVersion, else this package's version) from GitHub Releases and checks its
2
2
  // SHA-256 against checksums.txt. ESP32AGENT_ARCHIVE=/path installs a local build (checksums.txt next to it).
3
3
  const { createHash } = require("crypto");
4
4
  const { execFileSync } = require("child_process");
@@ -6,7 +6,8 @@ const fs = require("fs");
6
6
  const os = require("os");
7
7
  const path = require("path");
8
8
 
9
- const version = require("./package.json").version;
9
+ const pkg = require("./package.json");
10
+ const version = pkg.binaryVersion || pkg.version; // a metadata-only npm release reuses the last binaries
10
11
  const goos = { darwin: "darwin", linux: "linux", win32: "windows" }[process.platform];
11
12
  const goarch = { x64: "amd64", arm64: "arm64" }[process.arch];
12
13
  if (!goos || !goarch) throw new Error(`esp32agent: unsupported platform ${process.platform}/${process.arch}`);
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "esp32agent",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
+ "mcpName": "io.github.onehumanbeing/esp32agent",
5
+ "binaryVersion": "0.1.0",
4
6
  "description": "See and drive an iPhone through an ESP32 Agent board over Bluetooth (CLI + MCP server for coding agents)",
5
7
  "license": "MIT",
6
8
  "repository": { "type": "git", "url": "git+https://github.com/onehumanbeing/esp32-iphone-agent.git", "directory": "cli" },