@deeeed/metamask-harness 0.10.0 → 0.11.0

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,18 +1,24 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "title": "MetaMask Mobile Perps performance flow",
4
- "description": "Canonical measured flow for MetaMask Mobile Perps: unlock, open the Perps market list, read live state, and open a market's detail one node per user-visible step so operators can diff per-node durations across runs. Timings live in trace.json as each node's duration; there is no built-in benchmark verb. Run pinned so numbers are comparable: `mm-harness run perps-performance --device <serial> --heal off`. Optional testnet order placement is intentionally omitted: the recipe DSL has no cheap skippable/conditional node, so a live order would make the flow destructive and non-repeatable; add metamask.perps.place_order + close in a personal copy when you want to measure the trade path.",
4
+ "description": "Canonical measured flow for MetaMask Mobile Perps: setup unlocks the wallet, startState records the stable status, then the measured workflow opens the Perps market list, reads live state, and opens a market detail. Timings live in trace.json as each node's duration; there is no built-in benchmark verb. Run pinned so numbers are comparable: `mm-harness run perps-performance --device <serial> --heal off`. Optional testnet order placement is intentionally omitted because a live order would make the flow destructive and non-repeatable; add metamask.perps.place_order + close in a personal copy when you want to measure the trade path.",
5
+ "startState": {
6
+ "action": "app.status",
7
+ "intent": "Record the stable run start status after wallet setup",
8
+ "detail": "Read-only start-state marker so every trace states the adapter, checkout shape, and runner compatibility before measured Perps actions."
9
+ },
5
10
  "validate": {
6
11
  "workflow": {
7
- "entry": "ensure-unlocked",
8
- "nodes": {
9
- "ensure-unlocked": {
12
+ "setup": [
13
+ {
14
+ "id": "ensure-unlocked",
10
15
  "action": "metamask.wallet.ensure_unlocked",
11
16
  "intent": "Unlock the wallet before timing the Perps journey",
12
- "detail": "Unlock only if the app is currently locked so the first measured node starts from a stable, signed-in state.",
13
- "flow": "setup",
14
- "next": "open-perps-list"
15
- },
17
+ "detail": "Unlock only if the app is currently locked so the first measured node starts from a stable, signed-in state."
18
+ }
19
+ ],
20
+ "entry": "open-perps-list",
21
+ "nodes": {
16
22
  "open-perps-list": {
17
23
  "action": "ui.navigate",
18
24
  "page": "perps",
@@ -41,7 +47,7 @@
41
47
  "action": "end",
42
48
  "status": "pass",
43
49
  "intent": "Finish the measured Perps performance flow",
44
- "detail": "Terminal node; the passing run's trace.json holds the per-node durations to diff across runs.",
50
+ "detail": "Terminal node; the passing run's trace.json holds the setup, startState, and measured per-node durations to diff across runs.",
45
51
  "flow": "complete"
46
52
  }
47
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deeeed/metamask-harness",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mm-harness": "bin/mm-harness"
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@farmslot/agent-runtime": "^0.1.0",
20
20
  "@farmslot/protocol": "^0.7.3",
21
- "@farmslot/recipe-harness": "^0.3.3",
21
+ "@farmslot/recipe-harness": "^0.4.0",
22
22
  "commander": "^12.0.0",
23
23
  "viem": "^2.54.3"
24
24
  },