@deeeed/metamask-harness 0.92.7 → 0.92.8
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,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.92.8 - 2026-10-16
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Declare existing task gates, learning closeout, review rules and opt-in recipe advice for Farmslot task, review and recipe quality commands. Pin runtime 0.25.1, recipe-cli 0.19.1 and adapter-rn 0.22.16 so task policy retains the installed provider and its dependencies.
|
|
10
|
+
|
|
5
11
|
## 0.92.7 - 2026-10-15
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/README.md
CHANGED
|
@@ -10,6 +10,15 @@ and runtime paths are detected automatically.
|
|
|
10
10
|
The generic graph engine and evidence schemas live in [Farmslot](https://farmslot.io) packages.
|
|
11
11
|
`mm-harness` owns MetaMask runtime control and domain capabilities.
|
|
12
12
|
|
|
13
|
+
## Project task helpers
|
|
14
|
+
|
|
15
|
+
Registered projects can use `farmslot task init`, `mark`, `verify` and `closeout`,
|
|
16
|
+
`farmslot review checklist` and `domain`, and `farmslot recipe quality`.
|
|
17
|
+
The MetaMask provider supplies diff-check gates, learning destinations, review
|
|
18
|
+
rules, parity runtimes and opt-in advice. Select the registered project at task
|
|
19
|
+
initialization; its tooling and policy are retained with the task. See the
|
|
20
|
+
[Farmslot command reference](https://farmslot.io/docs/reference/recipe-cli).
|
|
21
|
+
|
|
13
22
|
## Daily and release QA
|
|
14
23
|
|
|
15
24
|
The same recipes can validate yesterday's domain changes together or a release
|
|
@@ -6,6 +6,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
6
6
|
import { defineAdapter } from "@farmslot/adapter-sdk";
|
|
7
7
|
import { indexArtifactManifest, isRecipeExecution, usageError, writeContainedArtifact } from "@farmslot/recipe-cli/harness";
|
|
8
8
|
import { validatePackPortability } from "@farmslot/protocol/node/pack-portability";
|
|
9
|
+
import { helperCommandOptions } from "../../provider-helpers.js";
|
|
9
10
|
async function createBackendProvider(context) {
|
|
10
11
|
if (!context.project?.root || !path.isAbsolute(context.project.root)) {
|
|
11
12
|
throw usageError("terminal-backend requires a registered project root.");
|
|
@@ -136,6 +137,7 @@ async function createBackendProvider(context) {
|
|
|
136
137
|
if (executing) runtime.resolveSlotPorts();
|
|
137
138
|
return {
|
|
138
139
|
runtime,
|
|
140
|
+
commandOptions: helperCommandOptions,
|
|
139
141
|
...owner ? { cancel: cleanup, finalize } : {}
|
|
140
142
|
};
|
|
141
143
|
}
|
|
@@ -141,6 +141,9 @@ function checkDiffGateReady(taskDir, step, parentChecklist) {
|
|
|
141
141
|
return true;
|
|
142
142
|
}
|
|
143
143
|
if (!checklistStepRequiresDiffPass(checklist, stepNumber)) return true;
|
|
144
|
+
return checkDiffSummaryReady(taskDir, step);
|
|
145
|
+
}
|
|
146
|
+
function checkDiffSummaryReady(taskDir, step) {
|
|
144
147
|
const summaryPath = path.join(
|
|
145
148
|
taskDir,
|
|
146
149
|
"artifacts",
|
|
@@ -232,5 +235,8 @@ async function handleChecklist(argv) {
|
|
|
232
235
|
return status;
|
|
233
236
|
}
|
|
234
237
|
export {
|
|
235
|
-
|
|
238
|
+
checkDiffSummaryReady,
|
|
239
|
+
handleChecklist,
|
|
240
|
+
runCloseout,
|
|
241
|
+
teachRecipeCompletion
|
|
236
242
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { checkDiffSummaryReady, runCloseout, teachRecipeCompletion } from "./commands/checklist.js";
|
|
2
|
+
import { BASE_REVIEW_STEPS, REVIEW_ADAPTERS } from "./review/knowledge.js";
|
|
3
|
+
const task = {
|
|
4
|
+
stepGates: [{ label: /mm-harness check diff/u, ready: checkDiffSummaryReady }],
|
|
5
|
+
closeout: runCloseout,
|
|
6
|
+
beforeComplete: (taskDir) => teachRecipeCompletion(taskDir, "complete")
|
|
7
|
+
};
|
|
8
|
+
const review = {
|
|
9
|
+
baseRules: BASE_REVIEW_STEPS.join("\n"),
|
|
10
|
+
runtimeIds: REVIEW_ADAPTERS,
|
|
11
|
+
parityRuntimeIds: { mobile: "extension", extension: "mobile" }
|
|
12
|
+
};
|
|
13
|
+
async function recipeAdvice(options, mode) {
|
|
14
|
+
const { handleRecipeAdvice } = await import("./commands/recipe-advice.js");
|
|
15
|
+
return handleRecipeAdvice(options, mode);
|
|
16
|
+
}
|
|
17
|
+
const recipeQuality = {
|
|
18
|
+
subcommands: {
|
|
19
|
+
plan: (options) => recipeAdvice(options, "plan"),
|
|
20
|
+
advise: (options) => recipeAdvice(options, "review"),
|
|
21
|
+
"advisor-status": (options) => recipeAdvice(options, "status")
|
|
22
|
+
},
|
|
23
|
+
subcommandOptions: {
|
|
24
|
+
names: ["advisor", "advisorModel", "advisorStages", "recipe", "task", "evidence", "adapter", "library", "params"],
|
|
25
|
+
message: "Advice options require the advise subcommand.",
|
|
26
|
+
userAction: "farmslot recipe quality advise --recipe <recipe.json> --task <TASK.md> --advisor <provider>"
|
|
27
|
+
},
|
|
28
|
+
missingAction: "Use build, plan, advise or advisor-status."
|
|
29
|
+
};
|
|
30
|
+
const helperCommandOptions = { task, review, recipeQuality };
|
|
31
|
+
export {
|
|
32
|
+
helperCommandOptions
|
|
33
|
+
};
|
package/dist/provider.js
CHANGED
|
@@ -21,6 +21,7 @@ import { providerHost } from "./host.js";
|
|
|
21
21
|
import { configureProviderReadiness, doctorOptions } from "./provider-doctor.js";
|
|
22
22
|
import { statusOptions, stopOptions } from "./provider-lifecycle.js";
|
|
23
23
|
import { createLogsOptions } from "./provider-logs.js";
|
|
24
|
+
import { helperCommandOptions } from "./provider-helpers.js";
|
|
24
25
|
import { createBackendProvider } from "./adapters/terminal-backend/provider.js";
|
|
25
26
|
import { providerHost as providerHost2 } from "./host.js";
|
|
26
27
|
import { PUBLIC_COMMANDS } from "./command-contract.js";
|
|
@@ -69,7 +70,7 @@ async function createProvider(context) {
|
|
|
69
70
|
return {
|
|
70
71
|
runtime,
|
|
71
72
|
engine: metaMaskEngine,
|
|
72
|
-
commandOptions: { status: statusOptions, stop: stopOptions, doctor: doctorOptions, logs: createLogsOptions(runtime) },
|
|
73
|
+
commandOptions: { ...helperCommandOptions, status: statusOptions, stop: stopOptions, doctor: doctorOptions, logs: createLogsOptions(runtime) },
|
|
73
74
|
...executes ? {
|
|
74
75
|
async cancel() {
|
|
75
76
|
await abortRunMainnetOrders(context.target.value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deeeed/metamask-harness",
|
|
3
|
-
"version": "0.92.
|
|
3
|
+
"version": "0.92.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mm-harness": "bin/mm-harness"
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"check:syntax": "find . -name '*.mjs' -print0 | xargs -0 -n1 node --check"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@farmslot/adapter-node": "0.1.
|
|
25
|
-
"@farmslot/adapter-rn": "0.22.
|
|
26
|
-
"@farmslot/adapter-sdk": "0.15.
|
|
27
|
-
"@farmslot/adapter-web": "0.10.
|
|
28
|
-
"@farmslot/agent-runtime": "0.
|
|
24
|
+
"@farmslot/adapter-node": "0.1.27",
|
|
25
|
+
"@farmslot/adapter-rn": "0.22.16",
|
|
26
|
+
"@farmslot/adapter-sdk": "0.15.1",
|
|
27
|
+
"@farmslot/adapter-web": "0.10.6",
|
|
28
|
+
"@farmslot/agent-runtime": "0.25.1",
|
|
29
29
|
"@farmslot/handoff": "^0.3.1",
|
|
30
|
-
"@farmslot/protocol": "0.
|
|
31
|
-
"@farmslot/recipe-cli": "0.
|
|
32
|
-
"@farmslot/recipe-runner": "0.37.
|
|
30
|
+
"@farmslot/protocol": "0.48.0",
|
|
31
|
+
"@farmslot/recipe-cli": "0.19.1",
|
|
32
|
+
"@farmslot/recipe-runner": "0.37.1",
|
|
33
33
|
"agent-device": "0.19.3",
|
|
34
34
|
"commander": "^12.0.0",
|
|
35
35
|
"esbuild": "0.28.1",
|