anomalift 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.
package/README.md CHANGED
@@ -60,8 +60,12 @@ integrity hashes instead.
60
60
  ## Windows on ARM
61
61
 
62
62
  There is no native arm64 Windows build, so `anomalift-windows-x64` is what a
63
- Windows ARM machine gets. It runs under the OS's x64 emulation. `install.ps1`
64
- does the same thing and says so when it does.
63
+ Windows ARM machine gets, running under the OS's x64 emulation. That package
64
+ therefore declares `cpu: ["x64", "arm64"]` rather than x64 alone: npm matches
65
+ `cpu` against `process.arch`, so an x64-only declaration is skipped outright on
66
+ an arm64 machine and the user is told no binary exists for their platform -
67
+ while the binary sitting one field away would have run. `install.ps1` makes the
68
+ same substitution and says so when it does.
65
69
 
66
70
  ## Publishing a release
67
71
 
package/bin/anomalift.js CHANGED
@@ -31,6 +31,10 @@ const PLATFORM_PACKAGES = {
31
31
  "linux-x64": "anomalift-linux-x64",
32
32
  "linux-arm64": "anomalift-linux-arm64",
33
33
  "win32-x64": "anomalift-windows-x64",
34
+ // Windows on ARM runs x64 binaries under emulation, and there is no native
35
+ // arm64 Windows build. Without this entry the shim reports "no prebuilt
36
+ // binary for win32-arm64" on a machine that can run the one it has.
37
+ "win32-arm64": "anomalift-windows-x64",
34
38
  };
35
39
 
36
40
  const REPO = "kailash16dev/Anomalift";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anomalift",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Find the mistakes your coding agent repeats, and stop them. Wraps a prebuilt binary; no Rust toolchain required.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -28,10 +28,10 @@
28
28
  "node": ">=16"
29
29
  },
30
30
  "optionalDependencies": {
31
- "anomalift-darwin-arm64": "0.1.0",
32
- "anomalift-darwin-x64": "0.1.0",
33
- "anomalift-linux-x64": "0.1.0",
34
- "anomalift-linux-arm64": "0.1.0",
35
- "anomalift-windows-x64": "0.1.0"
31
+ "anomalift-darwin-arm64": "0.1.1",
32
+ "anomalift-darwin-x64": "0.1.1",
33
+ "anomalift-linux-x64": "0.1.1",
34
+ "anomalift-linux-arm64": "0.1.1",
35
+ "anomalift-windows-x64": "0.1.1"
36
36
  }
37
37
  }