@deeeed/metamask-harness 0.33.2 → 0.34.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.
- package/CHANGELOG.md +31 -0
- package/adapters/mobile/bridge-runtime/cdp-bridge.cjs +18 -2
- package/adapters/mobile/bridge-runtime/lib/target-discovery.cjs +83 -23
- package/dist/adapters/mobile/prepare.js +14 -0
- package/dist/adapters/mobile/video-recorder.js +282 -0
- package/dist/adapters.js +225 -35
- package/dist/command-contract.js +1 -0
- package/dist/commands/device-target.js +17 -6
- package/dist/commands/launch/index.js +27 -5
- package/dist/commands/launch/mobile.js +9 -2
- package/dist/commands/run-engine.js +34 -2
- package/dist/devices.js +9 -2
- package/dist/heal-bounds.js +10 -0
- package/dist/mm-harness-cli.js +4 -2
- package/dist/recipe-security.js +1 -0
- package/dist/recording-target.js +23 -5
- package/dist/runner.js +107 -6
- package/dist/runtime-context.js +33 -1
- package/docs/RECIPES.md +41 -0
- package/library/actions/mobile/app/network-control.mjs +135 -0
- package/library/actions/mobile/app/network.mjs +4 -0
- package/library/actions/mobile/perps/capture_performance.mjs +4 -0
- package/library/actions/mobile/perps/performance-capture.mjs +383 -0
- package/library/actions/mobile/perps/perps.mjs +16 -0
- package/library/actions/mobile/platform/bridge.mjs +229 -13
- package/library/actions/mobile/wallet/ensure_unlocked.mjs +27 -6
- package/library/actions/mobile/wallet/select_account.mjs +21 -17
- package/library/manifests/mobile.action-manifest.json +130 -1
- package/library/recipes/mobile/perps/performance.homepage.android-background-reconnect.recipe.json +159 -0
- package/library/recipes/mobile/perps/performance.homepage.android-background-short.recipe.json +157 -0
- package/library/recipes/mobile/perps/performance.homepage.android-cold-disk-cache.recipe.json +147 -0
- package/library/recipes/mobile/perps/performance.homepage.android-cold-no-cache.recipe.json +137 -0
- package/library/recipes/mobile/perps/performance.homepage.android-network-recovery.recipe.json +149 -0
- package/library/recipes/mobile/perps/performance.homepage.ios-background-reconnect.recipe.json +110 -0
- package/library/recipes/mobile/perps/performance.homepage.ios-background-short.recipe.json +108 -0
- package/library/recipes/mobile/perps/performance.homepage.ios-cold-disk-cache.recipe.json +122 -0
- package/library/recipes/mobile/perps/performance.homepage.ios-cold-no-cache.recipe.json +95 -0
- package/package.json +1 -1
- package/scripts/site-contrast.mjs +34 -1
- package/site/architecture.html +12 -2
- package/site/assets/style.css +20 -1
- package/site/cheatsheet.html +7 -6
- package/site/index.html +119 -77
- package/site/perps.html +195 -0
- package/site/recipes.html +23 -1
- package/site/reviewers.html +2 -1
- package/site/tutorials/index.html +2 -1
- package/site/tutorials/v1.html +3 -2
- package/site/tutorials/v2.html +6 -5
- package/site/tutorials/v3.html +43 -2
- package/site/tutorials/v4.html +2 -1
- package/site/tutorials/v5.html +2 -1
- package/site/tutorials/v6.html +2 -1
- package/site/tutorials/v7.html +2 -1
package/site/tutorials/v3.html
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
<nav class="nav" aria-label="Main">
|
|
20
20
|
<a href="../index.html">Start Here</a>
|
|
21
21
|
<a href="../recipes.html">Recipes</a>
|
|
22
|
+
<a href="../perps.html">Perps</a>
|
|
22
23
|
<a href="../cheatsheet.html">Cheatsheet</a>
|
|
23
24
|
<a href="../architecture.html">Architecture</a>
|
|
24
25
|
<a href="index.html" aria-current="page">Tutorials</a>
|
|
@@ -84,6 +85,46 @@
|
|
|
84
85
|
<section class="wrap">
|
|
85
86
|
<h2 id="steps">Set it up</h2>
|
|
86
87
|
|
|
88
|
+
<div class="agent-card">
|
|
89
|
+
<h3 style="margin-top:0">Paste this into your agent</h3>
|
|
90
|
+
<div class="cmd cmd-hero"><pre><code>Task: install the latest recipe skills and shared MetaMask Perps recipe library,
|
|
91
|
+
then prove one real recipe runs end to end.
|
|
92
|
+
|
|
93
|
+
1. Work from the MetaMask product checkout I started you in. Run
|
|
94
|
+
`npm i -g @deeeed/metamask-harness@latest` and `mm-harness --version`.
|
|
95
|
+
2. Install the latest Consensys recipe skills into this checkout:
|
|
96
|
+
`yarn skills --maturity experimental --include
|
|
97
|
+
agentic/recipe-cook,agentic/recipe-quality --save`
|
|
98
|
+
This command updates the skills sources before syncing. Show me that
|
|
99
|
+
recipe-cook and recipe-quality were installed.
|
|
100
|
+
3. Use this exact library directory:
|
|
101
|
+
`$HOME/shared-library/metamask-recipe-perps`.
|
|
102
|
+
If it does not exist, clone
|
|
103
|
+
`git@github.com:MetaMask/experimental-metamask-recipe-perps.git` there.
|
|
104
|
+
If it exists and is clean, update it with `git pull --ff-only`; if it is
|
|
105
|
+
dirty, preserve it and report that instead of changing its files.
|
|
106
|
+
If cloning reports 404 or permission denied, stop and tell me that repository
|
|
107
|
+
access is missing; do not search for a substitute repository.
|
|
108
|
+
4. Run `mm-harness run --list --library
|
|
109
|
+
"perps=$HOME/shared-library/metamask-recipe-perps"` and show me the recipes
|
|
110
|
+
tagged `[perps]`. Use this explicit `--library` on every later command; do not
|
|
111
|
+
assume an `export` survives between tool shells.
|
|
112
|
+
5. Run `mm-harness status`. If the app is not ready, follow its public `Next:`
|
|
113
|
+
command while preserving the same device UUID or serial used during setup.
|
|
114
|
+
6. Choose only a recipe actually printed by step 4. Prefer
|
|
115
|
+
`perps.open-market` on Extension/Mobile or `perps.snapshot-market` on Core.
|
|
116
|
+
If that shared recipe has no variant for this checkout, use the listed bundled
|
|
117
|
+
`wallet.smoke` (Extension/Mobile) or `runner.smoke` (Core) recipe.
|
|
118
|
+
7. Run the chosen recipe with `--describe`, then `--plan`, then for real with
|
|
119
|
+
`--artifacts-dir ./first-team-recipe-artifacts`. Include
|
|
120
|
+
`--library "perps=$HOME/shared-library/metamask-recipe-perps"` each time.
|
|
121
|
+
For a Perps recipe use `network=testnet market=BTC`. Never place an order or
|
|
122
|
+
use mainnet in this setup proof.
|
|
123
|
+
8. Show me summary.json status, every trace.json node result, and all artifact
|
|
124
|
+
paths. Then confirm the checkout is ready for a bug-fix task using the
|
|
125
|
+
installed recipe-cook skill.</code></pre></div>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
87
128
|
<ol class="steps">
|
|
88
129
|
<li class="step" data-step="skills">
|
|
89
130
|
<div class="step-head">
|
|
@@ -91,7 +132,7 @@
|
|
|
91
132
|
<h3 class="step-title" id="t3-skills">Install the skills into your checkout</h3>
|
|
92
133
|
</div>
|
|
93
134
|
<p class="step-why">Run this from the product checkout you work in.</p>
|
|
94
|
-
<div class="cmd"><pre><code><span class="p">$ </span>yarn skills --include agentic/recipe-cook,agentic/recipe-quality --save</code></pre></div>
|
|
135
|
+
<div class="cmd"><pre><code><span class="p">$ </span>yarn skills --maturity experimental --include agentic/recipe-cook,agentic/recipe-quality --save</code></pre></div>
|
|
95
136
|
<p class="step-why">
|
|
96
137
|
The agentic skills carry <code>experimental</code> maturity, so they are visible only when
|
|
97
138
|
experimental skills are enabled. <code>recipe-cook</code> is the one you want first — it owns
|
|
@@ -205,7 +246,7 @@ Inspect: mm-harness run <recipe> --describe
|
|
|
205
246
|
<footer class="footer">
|
|
206
247
|
<div class="wrap">
|
|
207
248
|
<p>Internal getting-started guide for the MetaMask agentic coding workflow. Not official MetaMask product documentation.</p>
|
|
208
|
-
<p>Verified against mm-harness 0.
|
|
249
|
+
<p>Verified against mm-harness 0.33+.</p>
|
|
209
250
|
</div>
|
|
210
251
|
</footer>
|
|
211
252
|
|
package/site/tutorials/v4.html
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
<nav class="nav" aria-label="Main">
|
|
20
20
|
<a href="../index.html">Start Here</a>
|
|
21
21
|
<a href="../recipes.html">Recipes</a>
|
|
22
|
+
<a href="../perps.html">Perps</a>
|
|
22
23
|
<a href="../cheatsheet.html">Cheatsheet</a>
|
|
23
24
|
<a href="../architecture.html">Architecture</a>
|
|
24
25
|
<a href="index.html" aria-current="page">Tutorials</a>
|
|
@@ -186,7 +187,7 @@
|
|
|
186
187
|
<footer class="footer">
|
|
187
188
|
<div class="wrap">
|
|
188
189
|
<p>Internal getting-started guide for the MetaMask agentic coding workflow. Not official MetaMask product documentation.</p>
|
|
189
|
-
<p>Verified against mm-harness 0.
|
|
190
|
+
<p>Verified against mm-harness 0.33+.</p>
|
|
190
191
|
</div>
|
|
191
192
|
</footer>
|
|
192
193
|
|
package/site/tutorials/v5.html
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
<nav class="nav" aria-label="Main">
|
|
20
20
|
<a href="../index.html">Start Here</a>
|
|
21
21
|
<a href="../recipes.html">Recipes</a>
|
|
22
|
+
<a href="../perps.html">Perps</a>
|
|
22
23
|
<a href="../cheatsheet.html">Cheatsheet</a>
|
|
23
24
|
<a href="../architecture.html">Architecture</a>
|
|
24
25
|
<a href="index.html" aria-current="page">Tutorials</a>
|
|
@@ -154,7 +155,7 @@
|
|
|
154
155
|
<footer class="footer">
|
|
155
156
|
<div class="wrap">
|
|
156
157
|
<p>Internal getting-started guide for the MetaMask agentic coding workflow. Not official MetaMask product documentation.</p>
|
|
157
|
-
<p>Verified against mm-harness 0.
|
|
158
|
+
<p>Verified against mm-harness 0.33+.</p>
|
|
158
159
|
</div>
|
|
159
160
|
</footer>
|
|
160
161
|
|
package/site/tutorials/v6.html
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
<nav class="nav" aria-label="Main">
|
|
20
20
|
<a href="../index.html">Start Here</a>
|
|
21
21
|
<a href="../recipes.html">Recipes</a>
|
|
22
|
+
<a href="../perps.html">Perps</a>
|
|
22
23
|
<a href="../cheatsheet.html">Cheatsheet</a>
|
|
23
24
|
<a href="../architecture.html">Architecture</a>
|
|
24
25
|
<a href="index.html" aria-current="page">Tutorials</a>
|
|
@@ -156,7 +157,7 @@
|
|
|
156
157
|
<footer class="footer">
|
|
157
158
|
<div class="wrap">
|
|
158
159
|
<p>Internal getting-started guide for the MetaMask agentic coding workflow. Not official MetaMask product documentation.</p>
|
|
159
|
-
<p>Verified against mm-harness 0.
|
|
160
|
+
<p>Verified against mm-harness 0.33+.</p>
|
|
160
161
|
</div>
|
|
161
162
|
</footer>
|
|
162
163
|
|
package/site/tutorials/v7.html
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
<nav class="nav" aria-label="Main">
|
|
20
20
|
<a href="../index.html">Start Here</a>
|
|
21
21
|
<a href="../recipes.html">Recipes</a>
|
|
22
|
+
<a href="../perps.html">Perps</a>
|
|
22
23
|
<a href="../cheatsheet.html">Cheatsheet</a>
|
|
23
24
|
<a href="../architecture.html">Architecture</a>
|
|
24
25
|
<a href="index.html" aria-current="page">Tutorials</a>
|
|
@@ -175,7 +176,7 @@
|
|
|
175
176
|
<footer class="footer">
|
|
176
177
|
<div class="wrap">
|
|
177
178
|
<p>Internal getting-started guide for the MetaMask agentic coding workflow. Not official MetaMask product documentation.</p>
|
|
178
|
-
<p>Verified against mm-harness 0.
|
|
179
|
+
<p>Verified against mm-harness 0.33+.</p>
|
|
179
180
|
</div>
|
|
180
181
|
</footer>
|
|
181
182
|
|