@muggleai/works 5.22.0-staging.150 → 5.22.0-staging.151

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,7 +1,7 @@
1
1
  {
2
2
  "name": "muggle",
3
3
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
4
- "version": "5.22.0-staging.150",
4
+ "version": "5.22.0-staging.151",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
@@ -2,7 +2,7 @@
2
2
  "name": "muggle",
3
3
  "displayName": "Muggle AI",
4
4
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
5
- "version": "5.22.0-staging.150",
5
+ "version": "5.22.0-staging.151",
6
6
  "author": {
7
7
  "name": "Muggle AI",
8
8
  "email": "support@muggle-ai.com"
@@ -6,4 +6,4 @@ The studio publishes every completed run — pass or fail — to the cloud durin
6
6
 
7
7
  ## Screenshots
8
8
 
9
- Per run, `muggle-remote-test-script-get` with the `cloudTestScriptId` from the run result → per step `operation.screenshotUrl`, `operation.action` and `briefExplanation`. Retain `{ stepIndex, action, description, screenshotUrl }`, with `description` taken from `briefExplanation` — `action` is only the operation verb, and the description is what the walkthrough shows a reviewer. Batch in parallel. These feed the `E2eReport` consumed by [`../../muggle-pr-visual-walkthrough/SKILL.md`](../../muggle-pr-visual-walkthrough/SKILL.md) — the dev loop does not post to the PR.
9
+ Per run, `muggle-remote-test-script-get` with the `cloudTestScriptId` from the run result → per step `operation.screenshotUrl`, `operation.action` and `briefExplanation`. Retain `{ stepIndex, action, description, screenshotUrl }`, with `description` taken from `briefExplanation` — `action` is only the operation verb, and the description is what the walkthrough shows a reviewer. When `cloudTestScriptId` is absent — every failed generation, per above — call `muggle-remote-action-script-get` with `cloudActionScriptId` instead; it returns the same `steps[]` shape, so a non-passing run keeps its per-step screenshots rather than collapsing to a single ending frame. Batch in parallel. These feed the `E2eReport` consumed by [`../../muggle-pr-visual-walkthrough/SKILL.md`](../../muggle-pr-visual-walkthrough/SKILL.md) — the dev loop does not post to the PR.
@@ -131,7 +131,7 @@ For each test case:
131
131
  - testScriptId: `<id>`
132
132
  - runId: `<id>`
133
133
  - viewUrl: `<url>`
134
- - steps: `[{ stepIndex, action, screenshotUrl }, ...]`
134
+ - steps: `[{ stepIndex, action, description, screenshotUrl }, ...]`
135
135
 
136
136
  **Failed:** (count)
137
137
  - (test case name):
@@ -141,7 +141,7 @@ For each test case:
141
141
  - viewUrl: `<url>`
142
142
  - failureStepIndex: `<index>`
143
143
  - error: `<message>`
144
- - steps: `[{ stepIndex, action, screenshotUrl }, ...]`
144
+ - steps: `[{ stepIndex, action, description, screenshotUrl }, ...]`
145
145
  - artifactsDir: `<path>` (for local debugging)
146
146
 
147
147
  **Inconclusive:** (count) — use for runs that couldn't yield a pass/fail signal: no replayable script, environment precondition unmet, prerequisites unmet (Step 3.5), infra error, agent stalled on auth/cookie banner before reaching the assertion, missing secrets. The product is **not** implicated — that's `failed`, not `inconclusive`.
@@ -150,7 +150,7 @@ For each test case:
150
150
  - runId: `<id>` (synthesize a UUID if no run started)
151
151
  - viewUrl: `<url>` (project-level run-results fallback when no specific run URL exists)
152
152
  - reason: `<one short sentence>`
153
- - steps: `[{ stepIndex, action, screenshotUrl }, ...]` (may be empty)
153
+ - steps: `[{ stepIndex, action, description, screenshotUrl }, ...]` (empty only when the run produced no steps)
154
154
 
155
155
  **Metadata:**
156
156
  - projectId: `<projectId>`
@@ -8,7 +8,7 @@ Include **all** runs — passed, failed, **and inconclusive**. Never drop a run.
8
8
  |---|---|---|
9
9
  | `passed` | Run completed and the assertion held. | — |
10
10
  | `failed` | Run completed and the assertion failed, or the product itself broke before the assertion could be made (server error, 500, broken page). | `failureStepIndex`, `error` |
11
- | `inconclusive` | Run could not yield a pass/fail signal for reasons **outside the product**: no replayable script existed, environment precondition unmet, infra/Electron error, agent stalled on a cookie banner or login wall, missing secrets, agent went off-course. | `reason` (one short sentence; `steps[]` may be empty) |
11
+ | `inconclusive` | Run could not yield a pass/fail signal for reasons **outside the product**: no replayable script existed, environment precondition unmet, infra/Electron error, agent stalled on a cookie banner or login wall, missing secrets, agent went off-course. | `reason` (one short sentence). Include every step the run produced; `steps[]` is empty only when it produced none. |
12
12
 
13
13
  If a test should be inconclusive but you don't have a real `runId` / `viewUrl` (e.g., generation never ran), use the same project-level dashboard fallback as the "last-resort" failed branch below: synthesize a UUID-shaped runId and use `https://www.muggle-ai.com/muggleTestV0/dashboard/projects/{projectId}/runs` as `viewUrl`. The schema requires both fields — but a working dashboard link is better than nothing.
14
14
 
@@ -23,7 +23,7 @@ Fetch step screenshots in parallel — pick the right tool per run result:
23
23
 
24
24
  For each result:
25
25
 
26
- 1. Build `steps[]`: `[{ stepIndex: <index>, action: steps[i].operation.action, description: steps[i].briefExplanation, screenshotUrl: steps[i].operation.screenshotUrl }, ...]`. `action` is only the operation verb (`navigate`, `click`); `description` is the agent's readable account of the step and is what the walkthrough shows — omit it only when the step has no `briefExplanation`. Empty array is fine — zero-step runs still render the failure summary header in the walkthrough.
26
+ 1. Build `steps[]`: `[{ stepIndex: <index>, action: steps[i].operation.action, description: steps[i].briefExplanation, screenshotUrl: steps[i].operation.screenshotUrl }, ...]`. `action` is only the operation verb (`navigate`, `click`); `description` is the agent's readable account of the step and is what the walkthrough shows — omit it only when the step has no `briefExplanation`. A non-passing run carries its steps too: fetch them with the fallback above rather than sending `[]`, which collapses its walkthrough entry to a single ending frame. Send `[]` only when the run genuinely produced no steps; those still render the failure summary header.
27
27
  2. `viewUrl` — from the run result (deep-links to the specific run).
28
28
  3. `status` — from `muggle-local-run-result-get`.
29
29
  4. If failed: also capture `failureStepIndex`, `error`, `artifactsDir` from the run result.
@@ -66,7 +66,7 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape —
66
66
  "runId": "<runId from muggle-local-execute-test-generation>",
67
67
  "viewUrl": "<viewUrl from run result>",
68
68
  "status": "failed",
69
- "steps": [],
69
+ "steps": [{ "stepIndex": 0, "action": "click", "description": "Click 'Sign in' to open the login form.", "screenshotUrl": "..." }],
70
70
  "failureStepIndex": 0,
71
71
  "error": "<error message from run result>"
72
72
  },
@@ -78,7 +78,7 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape —
78
78
  "runId": "<runId from execute, or synthesized UUID if no run started>",
79
79
  "viewUrl": "<viewUrl from run result, or project-level fallback URL>",
80
80
  "status": "inconclusive",
81
- "steps": [],
81
+ "steps": [{ "stepIndex": 0, "action": "navigate", "description": "Workflow started at the app's URL.", "screenshotUrl": "..." }],
82
82
  "reason": "<one short sentence: why neither pass nor fail applies>"
83
83
  }
84
84
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "release": "5.18.0",
3
- "buildId": "run-150-1",
4
- "commitSha": "83abd321b7ce5f39affed9f8a127242acc0b732a",
5
- "buildTime": "2026-10-18T03:34:38Z",
3
+ "buildId": "run-151-1",
4
+ "commitSha": "54901de43274485eb64b00d0bbd3de1eecddc004",
5
+ "buildTime": "2026-10-18T04:19:06Z",
6
6
  "serviceName": "muggle-ai-works-mcp"
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@muggleai/works",
3
3
  "mcpName": "io.github.multiplex-ai/muggle",
4
- "version": "5.22.0-staging.150",
4
+ "version": "5.22.0-staging.151",
5
5
  "description": "13 years of Microsoft hyperscale engineering, packaged as a harness for your AI coding agent.",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "muggle",
3
3
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
4
- "version": "5.22.0-staging.150",
4
+ "version": "5.22.0-staging.151",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
@@ -2,7 +2,7 @@
2
2
  "name": "muggle",
3
3
  "displayName": "Muggle AI",
4
4
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
5
- "version": "5.22.0-staging.150",
5
+ "version": "5.22.0-staging.151",
6
6
  "author": {
7
7
  "name": "Muggle AI",
8
8
  "email": "support@muggle-ai.com"
@@ -6,4 +6,4 @@ The studio publishes every completed run — pass or fail — to the cloud durin
6
6
 
7
7
  ## Screenshots
8
8
 
9
- Per run, `muggle-remote-test-script-get` with the `cloudTestScriptId` from the run result → per step `operation.screenshotUrl`, `operation.action` and `briefExplanation`. Retain `{ stepIndex, action, description, screenshotUrl }`, with `description` taken from `briefExplanation` — `action` is only the operation verb, and the description is what the walkthrough shows a reviewer. Batch in parallel. These feed the `E2eReport` consumed by [`../../muggle-pr-visual-walkthrough/SKILL.md`](../../muggle-pr-visual-walkthrough/SKILL.md) — the dev loop does not post to the PR.
9
+ Per run, `muggle-remote-test-script-get` with the `cloudTestScriptId` from the run result → per step `operation.screenshotUrl`, `operation.action` and `briefExplanation`. Retain `{ stepIndex, action, description, screenshotUrl }`, with `description` taken from `briefExplanation` — `action` is only the operation verb, and the description is what the walkthrough shows a reviewer. When `cloudTestScriptId` is absent — every failed generation, per above — call `muggle-remote-action-script-get` with `cloudActionScriptId` instead; it returns the same `steps[]` shape, so a non-passing run keeps its per-step screenshots rather than collapsing to a single ending frame. Batch in parallel. These feed the `E2eReport` consumed by [`../../muggle-pr-visual-walkthrough/SKILL.md`](../../muggle-pr-visual-walkthrough/SKILL.md) — the dev loop does not post to the PR.
@@ -131,7 +131,7 @@ For each test case:
131
131
  - testScriptId: `<id>`
132
132
  - runId: `<id>`
133
133
  - viewUrl: `<url>`
134
- - steps: `[{ stepIndex, action, screenshotUrl }, ...]`
134
+ - steps: `[{ stepIndex, action, description, screenshotUrl }, ...]`
135
135
 
136
136
  **Failed:** (count)
137
137
  - (test case name):
@@ -141,7 +141,7 @@ For each test case:
141
141
  - viewUrl: `<url>`
142
142
  - failureStepIndex: `<index>`
143
143
  - error: `<message>`
144
- - steps: `[{ stepIndex, action, screenshotUrl }, ...]`
144
+ - steps: `[{ stepIndex, action, description, screenshotUrl }, ...]`
145
145
  - artifactsDir: `<path>` (for local debugging)
146
146
 
147
147
  **Inconclusive:** (count) — use for runs that couldn't yield a pass/fail signal: no replayable script, environment precondition unmet, prerequisites unmet (Step 3.5), infra error, agent stalled on auth/cookie banner before reaching the assertion, missing secrets. The product is **not** implicated — that's `failed`, not `inconclusive`.
@@ -150,7 +150,7 @@ For each test case:
150
150
  - runId: `<id>` (synthesize a UUID if no run started)
151
151
  - viewUrl: `<url>` (project-level run-results fallback when no specific run URL exists)
152
152
  - reason: `<one short sentence>`
153
- - steps: `[{ stepIndex, action, screenshotUrl }, ...]` (may be empty)
153
+ - steps: `[{ stepIndex, action, description, screenshotUrl }, ...]` (empty only when the run produced no steps)
154
154
 
155
155
  **Metadata:**
156
156
  - projectId: `<projectId>`
@@ -8,7 +8,7 @@ Include **all** runs — passed, failed, **and inconclusive**. Never drop a run.
8
8
  |---|---|---|
9
9
  | `passed` | Run completed and the assertion held. | — |
10
10
  | `failed` | Run completed and the assertion failed, or the product itself broke before the assertion could be made (server error, 500, broken page). | `failureStepIndex`, `error` |
11
- | `inconclusive` | Run could not yield a pass/fail signal for reasons **outside the product**: no replayable script existed, environment precondition unmet, infra/Electron error, agent stalled on a cookie banner or login wall, missing secrets, agent went off-course. | `reason` (one short sentence; `steps[]` may be empty) |
11
+ | `inconclusive` | Run could not yield a pass/fail signal for reasons **outside the product**: no replayable script existed, environment precondition unmet, infra/Electron error, agent stalled on a cookie banner or login wall, missing secrets, agent went off-course. | `reason` (one short sentence). Include every step the run produced; `steps[]` is empty only when it produced none. |
12
12
 
13
13
  If a test should be inconclusive but you don't have a real `runId` / `viewUrl` (e.g., generation never ran), use the same project-level dashboard fallback as the "last-resort" failed branch below: synthesize a UUID-shaped runId and use `https://www.muggle-ai.com/muggleTestV0/dashboard/projects/{projectId}/runs` as `viewUrl`. The schema requires both fields — but a working dashboard link is better than nothing.
14
14
 
@@ -23,7 +23,7 @@ Fetch step screenshots in parallel — pick the right tool per run result:
23
23
 
24
24
  For each result:
25
25
 
26
- 1. Build `steps[]`: `[{ stepIndex: <index>, action: steps[i].operation.action, description: steps[i].briefExplanation, screenshotUrl: steps[i].operation.screenshotUrl }, ...]`. `action` is only the operation verb (`navigate`, `click`); `description` is the agent's readable account of the step and is what the walkthrough shows — omit it only when the step has no `briefExplanation`. Empty array is fine — zero-step runs still render the failure summary header in the walkthrough.
26
+ 1. Build `steps[]`: `[{ stepIndex: <index>, action: steps[i].operation.action, description: steps[i].briefExplanation, screenshotUrl: steps[i].operation.screenshotUrl }, ...]`. `action` is only the operation verb (`navigate`, `click`); `description` is the agent's readable account of the step and is what the walkthrough shows — omit it only when the step has no `briefExplanation`. A non-passing run carries its steps too: fetch them with the fallback above rather than sending `[]`, which collapses its walkthrough entry to a single ending frame. Send `[]` only when the run genuinely produced no steps; those still render the failure summary header.
27
27
  2. `viewUrl` — from the run result (deep-links to the specific run).
28
28
  3. `status` — from `muggle-local-run-result-get`.
29
29
  4. If failed: also capture `failureStepIndex`, `error`, `artifactsDir` from the run result.
@@ -66,7 +66,7 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape —
66
66
  "runId": "<runId from muggle-local-execute-test-generation>",
67
67
  "viewUrl": "<viewUrl from run result>",
68
68
  "status": "failed",
69
- "steps": [],
69
+ "steps": [{ "stepIndex": 0, "action": "click", "description": "Click 'Sign in' to open the login form.", "screenshotUrl": "..." }],
70
70
  "failureStepIndex": 0,
71
71
  "error": "<error message from run result>"
72
72
  },
@@ -78,7 +78,7 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape —
78
78
  "runId": "<runId from execute, or synthesized UUID if no run started>",
79
79
  "viewUrl": "<viewUrl from run result, or project-level fallback URL>",
80
80
  "status": "inconclusive",
81
- "steps": [],
81
+ "steps": [{ "stepIndex": 0, "action": "navigate", "description": "Workflow started at the app's URL.", "screenshotUrl": "..." }],
82
82
  "reason": "<one short sentence: why neither pass nor fail applies>"
83
83
  }
84
84
  ]