dsh-apk-vm 0.12.3 → 0.12.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.12.4
4
+
5
+ ### Fixed
6
+
7
+ - **Hypervisor detection regression from 0.12.3.** A refactor of the boot-speed
8
+ bookkeeping dropped three constructor initialisers (`_accelAvailable`,
9
+ `_snapshotSave`, `_lastLaunchArgs`). `_accelAvailable` stayed `undefined`, so
10
+ `_detectAcceleration()` short-circuited on `!== null` and returned
11
+ `undefined`; every start then failed with a bogus "No usable CPU hypervisor
12
+ (AEHD/WHPX) was found" error even on hosts where `emulator -accel-check`
13
+ reported AEHD/WHPX usable. The fields are restored, and
14
+ `spike/snapshot-recovery-test.mjs` now asserts their initial values and that
15
+ `_detectAcceleration()` returns a boolean, so this regression cannot silently
16
+ ship again.
17
+
3
18
  ## 0.12.3
4
19
 
5
20
  ### Added
package/README.md CHANGED
@@ -45,7 +45,7 @@ same-origin, loopback-only debug HTTP API and an `apk_vm` Agent tool.
45
45
  > 当前 **Windows x64 与 Linux x86_64(headless)为端到端已验证平台**;macOS 仅做探测/CI
46
46
  > 覆盖,详见 `docs/LINUX-E2E.md`。
47
47
 
48
- **Status:** `0.12.3` · Apache-2.0 · no npm runtime dependencies · no build step.
48
+ **Status:** `0.12.4` · Apache-2.0 · no npm runtime dependencies · no build step.
49
49
 
50
50
  This is an open-source DSH plugin published on npm as **`dsh-apk-vm`**. Repository:
51
51
  [github.com/yuxiaole-bili/dsh-apk-vm](https://github.com/yuxiaole-bili/dsh-apk-vm).
package/client.js CHANGED
@@ -30,7 +30,7 @@ window.__ModuleLoader__.load({
30
30
  var SWIPE_THRESHOLD_PX = 24;
31
31
  var FRAME_INTERVAL_MS = 500;
32
32
  var STATE_INTERVAL_MS = 2000;
33
- var CLIENT_VERSION = '0.12.3';
33
+ var CLIENT_VERSION = '0.12.4';
34
34
 
35
35
  /* ------------------------------------------------------------------ *
36
36
  * Optional dsh-better-sidebar integration.
package/lib/android.js CHANGED
@@ -906,6 +906,9 @@ export class AndroidVm {
906
906
  this._snapshotSuspicion = null;
907
907
  this._snapshotRecovery = null;
908
908
  this._snapshotRecoveryAttempted = false;
909
+ this._accelAvailable = null;
910
+ this._snapshotSave = null;
911
+ this._lastLaunchArgs = null;
909
912
 
910
913
  // Rooted / debuggable guest state (exposed by status()).
911
914
  this._root = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-apk-vm",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "type": "module",
5
5
  "description": "Local AOSP Android VM for DeepSeek Harness: preview rooted APKs at up to 60 fps, automate UIAutomator flows, and give each Agent an isolated VM.",
6
6
  "license": "Apache-2.0",