@deeeed/metamask-harness 0.91.3 → 0.91.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 +6 -0
- package/dist/adapters/mobile/surface.js +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.91.4 - 2026-10-13
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Mobile `stop` now exits nonzero after Metro/helper cleanup because the initial app/device state is not recorded and restoration cannot be verified. This corrects a false success report; it does not add automatic simulator shutdown or claim that device cleanup completed. Restore and verify device state through its lifecycle owner.
|
|
10
|
+
|
|
5
11
|
## 0.91.3 - 2026-10-13
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { recipeRuntimePath, shellQuote, writeInteractiveProgress } from "@farmslot/recipe-cli/harness";
|
|
1
|
+
import { EXIT, recipeRuntimePath, shellQuote, writeInteractiveProgress } from "@farmslot/recipe-cli/harness";
|
|
2
2
|
import { spawnSync } from "node:child_process";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { defineAdapter } from "@farmslot/adapter-sdk";
|
|
@@ -60,9 +60,10 @@ const mobileSurface = defineAdapter({
|
|
|
60
60
|
const args = ["--target", target];
|
|
61
61
|
if (process.env.WATCHER_PORT) args.push("--port", process.env.WATCHER_PORT);
|
|
62
62
|
const result = spawnSync("bash", [leaf, ...args], { encoding: "utf8" });
|
|
63
|
-
const
|
|
63
|
+
const metroStatus = result.status ?? 1;
|
|
64
|
+
const status = metroStatus === 0 ? EXIT.runtime : metroStatus;
|
|
64
65
|
const output = `${result.stdout ?? ""}${result.stderr ?? ""}`.trim();
|
|
65
|
-
const summary =
|
|
66
|
+
const summary = metroStatus === 0 ? `Metro cleanup completed for ${target}, but Mobile app/device restoration is unverified: no initial state is recorded. Restore and verify the device through its lifecycle owner.` : `failed to stop Metro for ${target}`;
|
|
66
67
|
return { kind: "stopped", status, summary, output };
|
|
67
68
|
}
|
|
68
69
|
},
|