@co0ontty/wand 4.0.0 → 4.0.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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "commit": "876fe5a6a89ec103eb7707fc1304592910640c35",
3
- "builtAt": "2026-07-14T13:56:32.839Z",
4
- "version": "4.0.0",
2
+ "commit": "eeacc22778c2e9a1a8359870378e1351d79adab6",
3
+ "builtAt": "2026-07-15T01:23:59.877Z",
4
+ "version": "4.0.1",
5
5
  "channel": "stable"
6
6
  }
@@ -3,7 +3,7 @@ import { asyncRoute } from "./express-async.js";
3
3
  import { refreshModels } from "./models.js";
4
4
  import { checkProviderCliUpdates, updateProviderClis, verifyProviderCliUpdateResults, } from "./provider-cli-updater.js";
5
5
  import { streamFileWithRange } from "./server-file-routes.js";
6
- import { compareSemver } from "./version-utils.js";
6
+ import { compareApkInstallOrder, compareSemver } from "./version-utils.js";
7
7
  import { canUseDetachedUpdateHelper, startDetachedUpdateHelper } from "./update-helper.js";
8
8
  export function registerPublicUpdateRoutes(app, deps) {
9
9
  app.get("/api/android-apk-update", asyncRoute(async (req, res) => {
@@ -18,7 +18,10 @@ export function registerPublicUpdateRoutes(app, deps) {
18
18
  res.json({ updateAvailable: false, currentVersion, latestVersion: null, downloadUrl: null, source: null, channel });
19
19
  return;
20
20
  }
21
- const updateAvailable = compareSemver(latest.version, currentVersion) > 0;
21
+ // APK versionCode 约定是:X.Y.Z < X.Y.Z-debug.* < X.Y.(Z+1)。
22
+ // 不能使用标准 SemVer(它会把 prerelease 判为低于同号正式版),否则刚从
23
+ // tag 构建的 Beta 包对已安装 X.Y.Z 的设备永远不可见。
24
+ const updateAvailable = compareApkInstallOrder(latest.version, currentVersion) > 0;
22
25
  res.json({
23
26
  updateAvailable,
24
27
  currentVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@co0ontty/wand",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "A web console for Claude Code, Codex, OpenCode, and other local CLI tools.",
5
5
  "type": "module",
6
6
  "bin": {