@deeeed/metamask-harness 0.91.0 → 0.91.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.91.1 - 2026-10-12
6
+
7
+ ### Fixed
8
+
9
+ - Restore the selected web-dapp venue policy, digest fence and MetaMask signer on each provider invocation, including live conformance after static preflight.
10
+ - Use adapter-web 0.7.2 so Terminal recipes record their owned browser through the shared recorder.
11
+
5
12
  ## 0.91.0 - 2026-10-12
6
13
 
7
14
  - Support Extension `ui.navigate page=settings` through the visible account menu and verify the Settings page before returning.
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import { fencePolicy, POLICY_DIGEST_ENV, POLICY_ENV, PolicyFenceError } from "@farmslot/adapter-web/web-dapp";
4
- import { adapterPlugin, AdapterPluginError } from "@farmslot/recipe-cli/harness";
4
+ import { adapterPlugin, AdapterPluginError, harnessAdapter } from "@farmslot/recipe-cli/harness";
5
5
  import { libraryAdapterFiles } from "@farmslot/recipe-runner";
6
6
  import { configPath, declaredLibraryPathEnv, readConfig } from "../review/knowledge.js";
7
7
  import { bindWebDappPolicy } from "./web-dapp/surface.js";
@@ -41,7 +41,8 @@ async function fenceBoundPolicy() {
41
41
  throw error;
42
42
  }
43
43
  }
44
- async function afterAdapterLoad() {
44
+ async function afterAdapterLoad(adapterId) {
45
+ if (adapterId) bindPluginPolicy(harnessAdapter(adapterId));
45
46
  try {
46
47
  await fenceBoundPolicy();
47
48
  } catch (error) {
@@ -51,12 +52,16 @@ async function afterAdapterLoad() {
51
52
  throw error;
52
53
  }
53
54
  }
54
- function adoptPluginAdapter(adapter) {
55
+ function bindPluginPolicy(adapter) {
55
56
  const surface = bindWebDappPolicy(adapter);
56
57
  const policy = adapter;
57
58
  if (policy.extends === "web-dapp" && typeof policy.policy?.module === "string") {
58
59
  boundPolicy = { adapterId: adapter.id, file: policy.policy.module };
59
60
  }
61
+ return surface;
62
+ }
63
+ function adoptPluginAdapter(adapter) {
64
+ const surface = bindPluginPolicy(adapter);
60
65
  return {
61
66
  ...surface,
62
67
  run: {
package/dist/provider.js CHANGED
@@ -38,7 +38,7 @@ async function createProvider(context) {
38
38
  env: operatorLibraryEnv(),
39
39
  adopt: adoptPluginAdapter
40
40
  });
41
- await afterAdapterLoad();
41
+ await afterAdapterLoad(adapter);
42
42
  const runtime = getAdapterSurface(adapter);
43
43
  configureProviderReadiness(runtime);
44
44
  const executes = isRecipeExecution(context.command, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deeeed/metamask-harness",
3
- "version": "0.91.0",
3
+ "version": "0.91.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mm-harness": "bin/mm-harness"
@@ -24,7 +24,7 @@
24
24
  "@farmslot/adapter-node": "0.1.14",
25
25
  "@farmslot/adapter-rn": "0.20.1",
26
26
  "@farmslot/adapter-sdk": "0.9.1",
27
- "@farmslot/adapter-web": "0.7.1",
27
+ "@farmslot/adapter-web": "0.7.2",
28
28
  "@farmslot/agent-runtime": "0.18.1",
29
29
  "@farmslot/handoff": "^0.3.1",
30
30
  "@farmslot/protocol": "0.40.0",