@muggleai/works 5.26.0-staging.194 → 5.26.0-staging.195
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/.claude-plugin/marketplace.json +1 -1
- package/README.md +4 -2
- package/dist/{chunk-D5S6I2GM.js → chunk-OOSMKH2M.js} +51 -20
- package/dist/{chunk-TVQGWD7X.js → chunk-SLU7LHVJ.js} +53 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/.codex-mcp.json +1 -1
- package/dist/plugin/.codex-plugin/plugin.json +1 -1
- package/dist/plugin/.cursor-plugin/plugin.json +1 -1
- package/dist/plugin/.mcp.json +1 -1
- package/dist/plugin/skills/muggle-pr-visual-walkthrough/e2e-report-assembly.md +4 -0
- package/dist/release-manifest.json +3 -3
- package/dist/{src-7E4HH6FB.js → src-3HZTU2TJ.js} +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-mcp.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.cursor-plugin/plugin.json +1 -1
- package/plugin/.mcp.json +1 -1
- package/plugin/skills/muggle-pr-visual-walkthrough/e2e-report-assembly.md +4 -0
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"name": "muggleai",
|
|
10
10
|
"source": "./plugin",
|
|
11
11
|
"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.",
|
|
12
|
-
"version": "5.26.0-staging.
|
|
12
|
+
"version": "5.26.0-staging.195"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
}
|
package/README.md
CHANGED
|
@@ -194,7 +194,7 @@ permissions:
|
|
|
194
194
|
|
|
195
195
|
concurrency:
|
|
196
196
|
group: muggle-walkthrough-${{ github.event.pull_request.number || github.event.issue.number }}
|
|
197
|
-
cancel-in-progress:
|
|
197
|
+
cancel-in-progress: false
|
|
198
198
|
|
|
199
199
|
jobs:
|
|
200
200
|
walkthrough-comment:
|
|
@@ -208,10 +208,11 @@ jobs:
|
|
|
208
208
|
```
|
|
209
209
|
<!-- /muggle:ci-workflow-snippet -->
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
Four things worth knowing:
|
|
212
212
|
|
|
213
213
|
- The verdict is published as a check run against the pull request's head commit, not as this job's own status. An `issue_comment` run executes against the default branch, and only a head-commit check reaches the pull request from there — which is what lets settling the comment turn the check green without a new push.
|
|
214
214
|
- GitHub reads the `issue_comment` trigger from the **default branch's** copy of the workflow, so comment-driven re-runs start working only once it is merged.
|
|
215
|
+
- Runs for one pull request queue rather than cancel. Settling the comment starts a run while the one checking the push may still be going, and cancelling that run would leave a cancelled job on the pull request — red beside a green check. An installed copy that still says `cancel-in-progress: true` shows exactly that; `muggle ci-install --force` rewrites it.
|
|
215
216
|
- On a pull request from a fork, `GITHUB_TOKEN` is read-only and the check run cannot be published. The command fails open and reports nothing rather than blocking the pull request.
|
|
216
217
|
|
|
217
218
|
---
|
|
@@ -295,6 +296,7 @@ so the result carries a viewUrl straight to the dashboard
|
|
|
295
296
|
| `muggle-remote-test-case-create` / `-update` / `-delete` | Manage test cases |
|
|
296
297
|
| `muggle-remote-test-case-generate-from-prompt` | Generate from a prompt |
|
|
297
298
|
| `muggle-remote-test-case-ancestors-get` | Walk prerequisite chains |
|
|
299
|
+
| `muggle-remote-run-settings-list` | A test case's runSettings records in one lane |
|
|
298
300
|
| `muggle-remote-test-case-bulk-preview-submit` | Async batch preview (~50% cheaper) |
|
|
299
301
|
| `muggle-remote-test-plan-graph-rebuild` | Rebuild the prerequisite graph |
|
|
300
302
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __export, getLogger, getConfig, createChildLogger, buildElectronAppReleaseAssetUrl, getActiveRuntimeTarget, getAuthService, hasApiKey, getElectronAppVersion, getElectronAppDir, getPlatformKey, reconcileProjectPreferences, getDataDir, PREFERENCES_FILE_NAME, isFirstRun, writePreferences, DEFAULT_PREFERENCES, isElectronAppInstalled, getElectronAppChecksums, getChecksumForPlatform, getElectronAppSignedFromVersion, getReleaseSignerIdentityUri, verifyFileChecksum, resolveElectronAppExecutablePath, calculateFileChecksum, initTelemetry, Surface, ServiceName, track, EventName, getQaTools, getLocalQaTools, performLogout, assertDeviceCodeClientProvisioned, performLogin, getActiveElectronAppReleaseStream, buildToolInputJsonSchema, toolRequiresAuth, getCallerCredentials, parseElectronAppDirName, getElectronAppReleaseTagPrefix, hasShownDisclosure, markDisclosureShown, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, ElectronAppReleaseStream, buildElectronAppChecksumsUrl, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, OnboardingBlanketChoice, PreferenceKey, resolvePreferences } from './chunk-
|
|
1
|
+
import { __export, getLogger, getConfig, createChildLogger, buildElectronAppReleaseAssetUrl, getActiveRuntimeTarget, getAuthService, hasApiKey, getElectronAppVersion, getElectronAppDir, getPlatformKey, reconcileProjectPreferences, getDataDir, PREFERENCES_FILE_NAME, isFirstRun, writePreferences, DEFAULT_PREFERENCES, isElectronAppInstalled, getElectronAppChecksums, getChecksumForPlatform, getElectronAppSignedFromVersion, getReleaseSignerIdentityUri, verifyFileChecksum, resolveElectronAppExecutablePath, calculateFileChecksum, initTelemetry, Surface, ServiceName, track, EventName, getQaTools, getLocalQaTools, performLogout, assertDeviceCodeClientProvisioned, performLogin, getActiveElectronAppReleaseStream, buildToolInputJsonSchema, toolRequiresAuth, getCallerCredentials, parseElectronAppDirName, getElectronAppReleaseTagPrefix, hasShownDisclosure, markDisclosureShown, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, ElectronAppReleaseStream, buildElectronAppChecksumsUrl, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, OnboardingBlanketChoice, PreferenceKey, resolvePreferences } from './chunk-SLU7LHVJ.js';
|
|
2
2
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
3
3
|
import { ListToolsRequestSchema, CallToolRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
@@ -393,16 +393,21 @@ function escapeHtml(s) {
|
|
|
393
393
|
function escapeHtmlAttribute(s) {
|
|
394
394
|
return escapeHtml(s).replace(/"/g, """);
|
|
395
395
|
}
|
|
396
|
+
function withResolutionLabel(labelledText, resolutionLabel) {
|
|
397
|
+
return resolutionLabel ? `${labelledText} (${resolutionLabel})` : labelledText;
|
|
398
|
+
}
|
|
396
399
|
function describeUnpassedCase(unpassed) {
|
|
397
400
|
const outcome = unpassed.status === "failed" /* Failed */ && unpassed.failedStep !== void 0 ? `failed at step ${unpassed.failedStep}` : unpassed.status;
|
|
398
401
|
return `${outcome}: ${escapeHtml(unpassed.detail)}`;
|
|
399
402
|
}
|
|
400
403
|
function renderUnpassedCaseBullet(unpassed, linkText, linkTarget) {
|
|
401
|
-
return `- ${UNPASSED_STATUS_EMOJI[unpassed.status]} **${escapeHtml(unpassed.name)}** \u2014 ${describeUnpassedCase(unpassed)} \xB7 [${linkText}](${linkTarget})`;
|
|
404
|
+
return `- ${UNPASSED_STATUS_EMOJI[unpassed.status]} **${escapeHtml(withResolutionLabel(unpassed.name, unpassed.resolutionLabel))}** \u2014 ${describeUnpassedCase(unpassed)} \xB7 [${linkText}](${linkTarget})`;
|
|
402
405
|
}
|
|
403
406
|
var UnpassedCaseSchema = z.object({
|
|
404
407
|
name: z.string(),
|
|
405
408
|
testCaseId: z.string(),
|
|
409
|
+
runSettingsId: z.string().optional(),
|
|
410
|
+
resolutionLabel: z.string().optional(),
|
|
406
411
|
status: z.enum(UnpassedCaseStatus),
|
|
407
412
|
failedStep: z.number().int().positive().optional(),
|
|
408
413
|
detail: z.string(),
|
|
@@ -447,11 +452,18 @@ function oneLineDetail(text) {
|
|
|
447
452
|
const flat = text.replace(/\s+/g, " ").trim();
|
|
448
453
|
return flat.length > UNPASSED_DETAIL_MAX_CHARS ? `${flat.slice(0, UNPASSED_DETAIL_MAX_CHARS - 1)}\u2026` : flat;
|
|
449
454
|
}
|
|
455
|
+
function runSettingsFields(test) {
|
|
456
|
+
return {
|
|
457
|
+
...test.runSettingsId && { runSettingsId: test.runSettingsId },
|
|
458
|
+
...test.resolutionLabel && { resolutionLabel: test.resolutionLabel }
|
|
459
|
+
};
|
|
460
|
+
}
|
|
450
461
|
function toUnpassedCase(test) {
|
|
451
462
|
if (test.status === "failed") {
|
|
452
463
|
return {
|
|
453
464
|
name: test.name,
|
|
454
465
|
testCaseId: test.testCaseId,
|
|
466
|
+
...runSettingsFields(test),
|
|
455
467
|
status: "failed" /* Failed */,
|
|
456
468
|
failedStep: failureOrdinal(test, test.failureStepIndex),
|
|
457
469
|
detail: oneLineDetail(test.error),
|
|
@@ -462,6 +474,7 @@ function toUnpassedCase(test) {
|
|
|
462
474
|
return {
|
|
463
475
|
name: test.name,
|
|
464
476
|
testCaseId: test.testCaseId,
|
|
477
|
+
...runSettingsFields(test),
|
|
465
478
|
status: "inconclusive" /* Inconclusive */,
|
|
466
479
|
detail: oneLineDetail(test.reason),
|
|
467
480
|
viewUrl: test.viewUrl
|
|
@@ -495,11 +508,16 @@ var TEST_SHORT_ID_FIELDS = {
|
|
|
495
508
|
testCaseShortId: z.string().min(1).optional(),
|
|
496
509
|
replayShortId: z.string().min(1).optional()
|
|
497
510
|
};
|
|
511
|
+
var RUN_SETTINGS_FIELDS = {
|
|
512
|
+
runSettingsId: z.string().min(1).optional(),
|
|
513
|
+
resolutionLabel: z.string().min(1).optional()
|
|
514
|
+
};
|
|
498
515
|
var PassedTestSchema = z.object({
|
|
499
516
|
name: z.string().min(1),
|
|
500
517
|
testCaseId: z.string().min(1),
|
|
501
518
|
testScriptId: z.string().min(1).optional(),
|
|
502
519
|
...TEST_SHORT_ID_FIELDS,
|
|
520
|
+
...RUN_SETTINGS_FIELDS,
|
|
503
521
|
runId: z.string().min(1),
|
|
504
522
|
viewUrl: z.string().url(),
|
|
505
523
|
status: z.literal("passed"),
|
|
@@ -514,6 +532,7 @@ var FailedTestSchema = z.object({
|
|
|
514
532
|
testCaseId: z.string().min(1),
|
|
515
533
|
testScriptId: z.string().min(1).optional(),
|
|
516
534
|
...TEST_SHORT_ID_FIELDS,
|
|
535
|
+
...RUN_SETTINGS_FIELDS,
|
|
517
536
|
runId: z.string().min(1),
|
|
518
537
|
viewUrl: z.string().url(),
|
|
519
538
|
status: z.literal("failed"),
|
|
@@ -531,6 +550,7 @@ var InconclusiveTestSchema = z.object({
|
|
|
531
550
|
testCaseId: z.string().min(1),
|
|
532
551
|
testScriptId: z.string().min(1).optional(),
|
|
533
552
|
...TEST_SHORT_ID_FIELDS,
|
|
553
|
+
...RUN_SETTINGS_FIELDS,
|
|
534
554
|
runId: z.string().min(1),
|
|
535
555
|
viewUrl: z.string().url(),
|
|
536
556
|
status: z.literal("inconclusive"),
|
|
@@ -553,20 +573,24 @@ var E2eReportSchema = z.object({
|
|
|
553
573
|
});
|
|
554
574
|
|
|
555
575
|
// src/cli/pr-section/render.ts
|
|
576
|
+
function walkthroughEntryKey(identity) {
|
|
577
|
+
return identity.runSettingsId ? `${identity.testCaseId}-${identity.runSettingsId}` : identity.testCaseId;
|
|
578
|
+
}
|
|
556
579
|
function resolveLatestRuns(tests) {
|
|
557
|
-
const
|
|
580
|
+
const byEntryKey = /* @__PURE__ */ new Map();
|
|
558
581
|
const order = [];
|
|
559
582
|
for (const test of tests) {
|
|
560
|
-
const
|
|
583
|
+
const entryKey = walkthroughEntryKey(test);
|
|
584
|
+
const existing = byEntryKey.get(entryKey);
|
|
561
585
|
if (existing) {
|
|
562
586
|
existing.test = test;
|
|
563
587
|
existing.attempts += 1;
|
|
564
588
|
continue;
|
|
565
589
|
}
|
|
566
|
-
|
|
567
|
-
order.push(
|
|
590
|
+
byEntryKey.set(entryKey, { test, attempts: 1 });
|
|
591
|
+
order.push(entryKey);
|
|
568
592
|
}
|
|
569
|
-
return order.map((
|
|
593
|
+
return order.map((entryKey) => byEntryKey.get(entryKey));
|
|
570
594
|
}
|
|
571
595
|
function countTests(latestRuns) {
|
|
572
596
|
const statuses = latestRuns.map((entry) => entry.test.status);
|
|
@@ -657,6 +681,9 @@ function stepText(step) {
|
|
|
657
681
|
function withShortId(shortId, labelledText) {
|
|
658
682
|
return shortId ? `${shortId}${SHORT_ID_LABEL_SEPARATOR}${labelledText}` : labelledText;
|
|
659
683
|
}
|
|
684
|
+
function testLabel(test) {
|
|
685
|
+
return withResolutionLabel(withShortId(test.testCaseShortId, test.name), test.resolutionLabel);
|
|
686
|
+
}
|
|
660
687
|
function dashboardLink(test) {
|
|
661
688
|
return `<a href="${escapeHtmlAttribute(test.viewUrl)}" target="_blank" rel="noopener noreferrer">Open the full run on Muggle AI \u2192</a>`;
|
|
662
689
|
}
|
|
@@ -699,7 +726,7 @@ function renderNeedsAttention(record) {
|
|
|
699
726
|
"",
|
|
700
727
|
"**Needs attention**",
|
|
701
728
|
"",
|
|
702
|
-
...record.unpassed.map((unpassed) => renderUnpassedCaseBullet(unpassed, "see details", `#${testAnchor(unpassed
|
|
729
|
+
...record.unpassed.map((unpassed) => renderUnpassedCaseBullet(unpassed, "see details", `#${testAnchor(unpassed)}`))
|
|
703
730
|
];
|
|
704
731
|
}
|
|
705
732
|
function renderUseCaseGroup(useCaseName, members, numbering) {
|
|
@@ -718,17 +745,16 @@ function renderUseCaseGroup(useCaseName, members, numbering) {
|
|
|
718
745
|
];
|
|
719
746
|
}
|
|
720
747
|
function buildTestNumbering(latestRuns) {
|
|
721
|
-
const
|
|
748
|
+
const ordinalByEntryKey = /* @__PURE__ */ new Map();
|
|
722
749
|
latestRuns.forEach((entry, i) => {
|
|
723
|
-
|
|
750
|
+
ordinalByEntryKey.set(walkthroughEntryKey(entry.test), i + 1);
|
|
724
751
|
});
|
|
725
|
-
return
|
|
752
|
+
return ordinalByEntryKey;
|
|
726
753
|
}
|
|
727
754
|
function renderOverviewBullet(entry, numbering, indent) {
|
|
728
755
|
const rerunNote = entry.attempts > 1 ? ` _(${entry.attempts} runs)_` : "";
|
|
729
|
-
const detailsLink = ` \xB7 [see details](#${testAnchor(entry.test
|
|
730
|
-
|
|
731
|
-
return `${indent}- ${statusEmoji(entry.test)} **${numbering.get(entry.test.testCaseId)}.** ${testLabel}${rerunNote}${detailsLink}`;
|
|
756
|
+
const detailsLink = ` \xB7 [see details](#${testAnchor(entry.test)})`;
|
|
757
|
+
return `${indent}- ${statusEmoji(entry.test)} **${numbering.get(walkthroughEntryKey(entry.test))}.** ${testLabel(entry.test)}${rerunNote}${detailsLink}`;
|
|
732
758
|
}
|
|
733
759
|
function buildGroupedLayout(latestRuns) {
|
|
734
760
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -752,8 +778,7 @@ function buildGroupedLayout(latestRuns) {
|
|
|
752
778
|
}
|
|
753
779
|
function renderTestDetails(entry, testNumber, screenshotDetail = "before-and-after" /* BeforeAndAfter */) {
|
|
754
780
|
const { test } = entry;
|
|
755
|
-
const
|
|
756
|
-
const lines = [`<a name="${testAnchor(test.testCaseId)}"></a>`, "", `#### ${statusEmoji(test)} ${testNumber}. ${testLabel}`, ""];
|
|
781
|
+
const lines = [`<a name="${testAnchor(test)}"></a>`, "", `#### ${statusEmoji(test)} ${testNumber}. ${testLabel(test)}`, ""];
|
|
757
782
|
if (test.description && !isSameText(test.description, test.name)) {
|
|
758
783
|
lines.push(`_${test.description.replace(/\s*\n\s*/g, " ")}_`, "");
|
|
759
784
|
}
|
|
@@ -769,8 +794,8 @@ function renderTestDetails(entry, testNumber, screenshotDetail = "before-and-aft
|
|
|
769
794
|
function indented(content) {
|
|
770
795
|
return ["<dl><dd>", "", ...content, "", "</dd></dl>"];
|
|
771
796
|
}
|
|
772
|
-
function testAnchor(
|
|
773
|
-
return `${TEST_DETAILS_ANCHOR_PREFIX}${
|
|
797
|
+
function testAnchor(identity) {
|
|
798
|
+
return `${TEST_DETAILS_ANCHOR_PREFIX}${walkthroughEntryKey(identity)}`;
|
|
774
799
|
}
|
|
775
800
|
function evidenceToggleLabel(test, screenshotDetail) {
|
|
776
801
|
const count = test.steps.length;
|
|
@@ -1042,7 +1067,7 @@ async function resolveGsScreenshotUrls(report, opts) {
|
|
|
1042
1067
|
if (gsUrls.length === 0) {
|
|
1043
1068
|
return report;
|
|
1044
1069
|
}
|
|
1045
|
-
const mcps = await import('./src-
|
|
1070
|
+
const mcps = await import('./src-3HZTU2TJ.js');
|
|
1046
1071
|
const credentials = await mcps.getCallerCredentialsAsync();
|
|
1047
1072
|
if (!credentials.bearerToken && !credentials.apiKey) {
|
|
1048
1073
|
stderrWrite(
|
|
@@ -1212,6 +1237,12 @@ function renderUserWorkflow() {
|
|
|
1212
1237
|
# GitHub reads the issue_comment trigger from the default branch's copy of this
|
|
1213
1238
|
# file, so comment-driven re-runs only start working once this is merged.
|
|
1214
1239
|
#
|
|
1240
|
+
# Runs for one PR queue rather than cancel. Settling the comment starts an
|
|
1241
|
+
# issue_comment run while the pull_request run may still be checking; cancelling
|
|
1242
|
+
# that run would leave a cancelled job on the PR head, red beside a green check.
|
|
1243
|
+
# A queued run that a newer event replaces leaves nothing behind, and the newest
|
|
1244
|
+
# event is still the one judged last.
|
|
1245
|
+
#
|
|
1215
1246
|
# On a pull request from a fork, GITHUB_TOKEN is read-only and the check run
|
|
1216
1247
|
# cannot be published; the command fails open and reports nothing.
|
|
1217
1248
|
on:
|
|
@@ -1227,7 +1258,7 @@ permissions:
|
|
|
1227
1258
|
|
|
1228
1259
|
concurrency:
|
|
1229
1260
|
group: muggle-walkthrough-\${{ github.event.pull_request.number || github.event.issue.number }}
|
|
1230
|
-
cancel-in-progress:
|
|
1261
|
+
cancel-in-progress: false
|
|
1231
1262
|
|
|
1232
1263
|
jobs:
|
|
1233
1264
|
walkthrough-comment:
|
|
@@ -5114,6 +5114,13 @@ var LocalRunUploadInputSchema = z.object({
|
|
|
5114
5114
|
"Window size the run executed at, copied from the run's actionParams"
|
|
5115
5115
|
)
|
|
5116
5116
|
});
|
|
5117
|
+
var RunSettingsListInputSchema = z.object({
|
|
5118
|
+
projectId: z.string().min(1).describe("Project ID"),
|
|
5119
|
+
testCaseId: z.string().min(1).describe("Test case ID whose runSettings records to list"),
|
|
5120
|
+
runEnvironmentType: RunEnvironmentSchema.describe(
|
|
5121
|
+
"Lane whose records to list: 'local' (developer localhost) or 'remote' (deployed). A record belongs to one lane."
|
|
5122
|
+
)
|
|
5123
|
+
});
|
|
5117
5124
|
|
|
5118
5125
|
// packages/mcps/src/mcp/e2e/contracts/index.ts
|
|
5119
5126
|
var PaginationInputSchema = z.object({
|
|
@@ -6065,6 +6072,37 @@ function mapOrganizationList(response) {
|
|
|
6065
6072
|
};
|
|
6066
6073
|
}
|
|
6067
6074
|
|
|
6075
|
+
// packages/mcps/src/mcp/tools/e2e/run-settings-list-transform.ts
|
|
6076
|
+
function mapRunSettingsList(response) {
|
|
6077
|
+
const envelope = response.data;
|
|
6078
|
+
if (!Array.isArray(envelope?.runSettingsList)) {
|
|
6079
|
+
throw new GatewayError({
|
|
6080
|
+
code: "UPSTREAM_ERROR" /* UPSTREAM_ERROR */,
|
|
6081
|
+
message: "runSettings list response carried no runSettingsList array.",
|
|
6082
|
+
statusCode: response.statusCode
|
|
6083
|
+
});
|
|
6084
|
+
}
|
|
6085
|
+
return { runSettingsList: envelope.runSettingsList.map(toRunSettingsListRow) };
|
|
6086
|
+
}
|
|
6087
|
+
function toRunSettingsListRow(runSettings) {
|
|
6088
|
+
const displayParams = runSettings.displayParams;
|
|
6089
|
+
const displayResolution = displayParams ? findDisplayResolution(displayParams) : void 0;
|
|
6090
|
+
return {
|
|
6091
|
+
runSettingsId: runSettings.id,
|
|
6092
|
+
...displayParams && {
|
|
6093
|
+
resolutionLabel: `${displayParams.browserWindowWidth}\xD7${displayParams.browserWindowHeight}`
|
|
6094
|
+
},
|
|
6095
|
+
...displayResolution && { displayResolution },
|
|
6096
|
+
...runSettings.featureFlags && { featureFlags: runSettings.featureFlags }
|
|
6097
|
+
};
|
|
6098
|
+
}
|
|
6099
|
+
function findDisplayResolution(displayParams) {
|
|
6100
|
+
const matchingEntry = Object.entries(DISPLAY_PARAMS_BY_RESOLUTION).find(
|
|
6101
|
+
([, resolutionDisplayParams]) => resolutionDisplayParams.browserWindowWidth === displayParams.browserWindowWidth && resolutionDisplayParams.browserWindowHeight === displayParams.browserWindowHeight
|
|
6102
|
+
);
|
|
6103
|
+
return matchingEntry?.[0];
|
|
6104
|
+
}
|
|
6105
|
+
|
|
6068
6106
|
// packages/mcps/src/mcp/tools/e2e/secret-metadata-transform.ts
|
|
6069
6107
|
function mapSecretList(response) {
|
|
6070
6108
|
if (!Array.isArray(response.data)) {
|
|
@@ -6477,6 +6515,20 @@ var testCaseTools = [
|
|
|
6477
6515
|
};
|
|
6478
6516
|
}
|
|
6479
6517
|
},
|
|
6518
|
+
{
|
|
6519
|
+
name: "muggle-remote-run-settings-list",
|
|
6520
|
+
description: "List a test case's runSettings records in one lane \u2014 one per resolution and feature-flag combination its test spec selects \u2014 so a run can name a record it has not run yet. Response shape: { runSettingsList: [{ runSettingsId, resolutionLabel, displayResolution, featureFlags }] }. `resolutionLabel` is the window size as width\xD7height; `displayResolution` is the value the local execute tools take for it, absent when none matches. To run a local record, pass its runSettingsId and displayResolution to muggle-local-execute-test-generation. The list does not mark which record is primary.",
|
|
6521
|
+
inputSchema: RunSettingsListInputSchema,
|
|
6522
|
+
mapToUpstream: (input) => {
|
|
6523
|
+
const toolInput = input;
|
|
6524
|
+
return {
|
|
6525
|
+
method: "GET",
|
|
6526
|
+
path: `${MUGGLE_TEST_PREFIX}/projects/${toolInput.projectId}/test-cases/${toolInput.testCaseId}/run-settings`,
|
|
6527
|
+
queryParams: { type: toolInput.runEnvironmentType }
|
|
6528
|
+
};
|
|
6529
|
+
},
|
|
6530
|
+
mapFromUpstream: mapRunSettingsList
|
|
6531
|
+
},
|
|
6480
6532
|
{
|
|
6481
6533
|
name: "muggle-remote-test-plan-graph-rebuild",
|
|
6482
6534
|
description: "Queue a full rebuild of a project's test-plan dependency graph: every node is dropped and the dependency analysis runs again across the whole project. Needed because the incremental analysis only ever adds nodes for test cases that have none \u2014 a case already stored as a root stays a root even once a prerequisite for it exists, so a rebuild is the only way to re-derive those edges. Reach for this when muggle-remote-test-case-ancestors-get reports `orphan: true` across a project, which means nothing is ordering prerequisites and bulk replays are running cases that destroy each other's fixtures. Returns { projectId, workflowRuntimeId }: it resolves when the rebuild is QUEUED, not when it has finished, and it returns no graph \u2014 re-fetch the graph, or call muggle-remote-test-case-ancestors-get again, to observe the result.",
|
|
@@ -9057,6 +9109,7 @@ __export(e2e_exports2, {
|
|
|
9057
9109
|
RunEnvironment: () => RunEnvironment,
|
|
9058
9110
|
RunEnvironmentInputSchema: () => RunEnvironmentInputSchema,
|
|
9059
9111
|
RunEnvironmentSchema: () => RunEnvironmentSchema,
|
|
9112
|
+
RunSettingsListInputSchema: () => RunSettingsListInputSchema,
|
|
9060
9113
|
SecretCreateInputSchema: () => SecretCreateInputSchema,
|
|
9061
9114
|
SecretDeleteInputSchema: () => SecretDeleteInputSchema,
|
|
9062
9115
|
SecretGetInputSchema: () => SecretGetInputSchema,
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-
|
|
2
|
-
export { createChildLogger, e2e_exports as e2e, getConfig, getLocalQaTools, getLogger, getQaTools, local_exports as localQa, mcp_exports as mcp, e2e_exports as qa, src_exports as shared } from './chunk-
|
|
1
|
+
export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-OOSMKH2M.js';
|
|
2
|
+
export { createChildLogger, e2e_exports as e2e, getConfig, getLocalQaTools, getLogger, getQaTools, local_exports as localQa, mcp_exports as mcp, e2e_exports as qa, src_exports as shared } from './chunk-SLU7LHVJ.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.26.0-staging.
|
|
4
|
+
"version": "5.26.0-staging.195",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
7
7
|
"email": "support@muggle-ai.com"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
|
-
"version": "5.26.0-staging.
|
|
3
|
+
"version": "5.26.0-staging.195",
|
|
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
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
@@ -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.26.0-staging.
|
|
5
|
+
"version": "5.26.0-staging.195",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/dist/plugin/.mcp.json
CHANGED
|
@@ -42,6 +42,8 @@ On every entry: `description` (test case title/description — drives the collap
|
|
|
42
42
|
|
|
43
43
|
Set `testCaseShortId` to the test case's `shortId` and `replayShortId` to the run's `shortId` (e.g. `TC-42`, `R-2051`) whenever the record you already fetched carries one; the walkthrough then labels the test `TC-42 · <name>` and leads its run row with `R-2051`. Omit either when absent — entities created before short IDs existed have none.
|
|
44
44
|
|
|
45
|
+
Set `runSettingsId` to the run result's `cloudRunSettingsId` (`muggle-local-run-result-get` prints it as `**Cloud Run Settings ID:**`) and `resolutionLabel` to that record's window size as `<width>×<height>` (e.g. `390×844`): the `resolutionLabel` `muggle-remote-run-settings-list` returns for that `runSettingsId` (with `runEnvironmentType: "local"`), or the `displayResolution` the run executed at, written the same way (`R_0390x0844` → `390×844`). The walkthrough keeps each record of a test case as its own entry, labelled `<name> (390×844)`, and collapses only reruns of one record to the latest. Omit both when the run result carries no `cloudRunSettingsId`; the entry then collapses with the test case's other runs.
|
|
46
|
+
|
|
45
47
|
If called from `muggle-do`: `e2e-acceptance.md` already produces this shape — pass it through unchanged.
|
|
46
48
|
|
|
47
49
|
## Shape
|
|
@@ -56,6 +58,8 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape —
|
|
|
56
58
|
"useCaseName": "<parent use case title (recommended)>",
|
|
57
59
|
"testCaseId": "<testCaseId from execution step>",
|
|
58
60
|
"testCaseShortId": "<test case shortId, when it has one>",
|
|
61
|
+
"runSettingsId": "<cloudRunSettingsId from run result, when it has one>",
|
|
62
|
+
"resolutionLabel": "<that record's size, e.g. 390×844>",
|
|
59
63
|
"testScriptId": "<cloudTestScriptId from run result>",
|
|
60
64
|
"runId": "<runId from muggle-local-execute-test-generation>",
|
|
61
65
|
"replayShortId": "<run shortId, when it has one>",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"release": "5.18.0",
|
|
3
|
-
"buildId": "run-
|
|
4
|
-
"commitSha": "
|
|
5
|
-
"buildTime": "2026-10-
|
|
3
|
+
"buildId": "run-195-1",
|
|
4
|
+
"commitSha": "19ce0acc102b778743ab5d6146a20d876587962c",
|
|
5
|
+
"buildTime": "2026-10-25T02:36:56Z",
|
|
6
6
|
"serviceName": "muggle-ai-works-mcp"
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ACTION_SCRIPT_FILE_NAME, BASE_REMOTE_NAME, BLOCKING_FRESHNESS_VERDICTS, BRANCH_CREATION_REFLOG_PREFIX, CheckoutFreshnessVerdict, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, MAX_LISTED_INHERITED_COMMITS, ONBOARDING_BLANKET_OPTIONS, ONBOARDING_CHOICE_GROUPS, ONBOARDING_MAX_OFFERS, ONBOARDING_PRIMER_BULLETS, ONBOARDING_PRIMER_HEADLINE, ONBOARDING_TOGGLE_GROUPS, ONBOARDING_TOGGLE_PROMPT, ONBOARDING_UNSELECTED_TOGGLE_VALUE, OnboardingBlanketChoice, OnboardingGroupKind, PREFERENCES_FILE_NAME, PREFERENCES_PROJECT_DIR_NAME, PREFERENCES_SCHEMA, PREFERENCES_VERSION, PREFERENCE_ALLOWED_VALUES, PreferenceKey, PreferenceValue, ProjectPreferencesReconcileOutcome, RUN_SESSIONS_DIR_NAME, RUN_VIEW_DASHBOARD_LINK_LABEL, RunViewError, RuntimeTarget, SCREENSHOT_DIR_RELATIVE_PATH, SCREENSHOT_FILE_EXTENSION, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, completeOnboarding, createApiKeyWithToken, createChildLogger, deleteApiKeyData, deleteCredentials, e2e_exports as e2e, evaluateCheckoutFreshness, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, loadApiKeyData, loadCredentials, local_exports as localQa, markOnboardingCompleted, mcp_exports as mcp, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, e2e_exports as qa, readPreferencesMetadata, readRunView, reconcileProjectPreferences, recordOnboardingSkip, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-
|
|
1
|
+
export { ACTION_SCRIPT_FILE_NAME, BASE_REMOTE_NAME, BLOCKING_FRESHNESS_VERDICTS, BRANCH_CREATION_REFLOG_PREFIX, CheckoutFreshnessVerdict, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, MAX_LISTED_INHERITED_COMMITS, ONBOARDING_BLANKET_OPTIONS, ONBOARDING_CHOICE_GROUPS, ONBOARDING_MAX_OFFERS, ONBOARDING_PRIMER_BULLETS, ONBOARDING_PRIMER_HEADLINE, ONBOARDING_TOGGLE_GROUPS, ONBOARDING_TOGGLE_PROMPT, ONBOARDING_UNSELECTED_TOGGLE_VALUE, OnboardingBlanketChoice, OnboardingGroupKind, PREFERENCES_FILE_NAME, PREFERENCES_PROJECT_DIR_NAME, PREFERENCES_SCHEMA, PREFERENCES_VERSION, PREFERENCE_ALLOWED_VALUES, PreferenceKey, PreferenceValue, ProjectPreferencesReconcileOutcome, RUN_SESSIONS_DIR_NAME, RUN_VIEW_DASHBOARD_LINK_LABEL, RunViewError, RuntimeTarget, SCREENSHOT_DIR_RELATIVE_PATH, SCREENSHOT_FILE_EXTENSION, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, completeOnboarding, createApiKeyWithToken, createChildLogger, deleteApiKeyData, deleteCredentials, e2e_exports as e2e, evaluateCheckoutFreshness, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, loadApiKeyData, loadCredentials, local_exports as localQa, markOnboardingCompleted, mcp_exports as mcp, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, e2e_exports as qa, readPreferencesMetadata, readRunView, reconcileProjectPreferences, recordOnboardingSkip, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-SLU7LHVJ.js';
|
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.26.0-staging.
|
|
4
|
+
"version": "5.26.0-staging.195",
|
|
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.26.0-staging.
|
|
4
|
+
"version": "5.26.0-staging.195",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
7
7
|
"email": "support@muggle-ai.com"
|
package/plugin/.codex-mcp.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
|
-
"version": "5.26.0-staging.
|
|
3
|
+
"version": "5.26.0-staging.195",
|
|
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
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
@@ -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.26.0-staging.
|
|
5
|
+
"version": "5.26.0-staging.195",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/plugin/.mcp.json
CHANGED
|
@@ -42,6 +42,8 @@ On every entry: `description` (test case title/description — drives the collap
|
|
|
42
42
|
|
|
43
43
|
Set `testCaseShortId` to the test case's `shortId` and `replayShortId` to the run's `shortId` (e.g. `TC-42`, `R-2051`) whenever the record you already fetched carries one; the walkthrough then labels the test `TC-42 · <name>` and leads its run row with `R-2051`. Omit either when absent — entities created before short IDs existed have none.
|
|
44
44
|
|
|
45
|
+
Set `runSettingsId` to the run result's `cloudRunSettingsId` (`muggle-local-run-result-get` prints it as `**Cloud Run Settings ID:**`) and `resolutionLabel` to that record's window size as `<width>×<height>` (e.g. `390×844`): the `resolutionLabel` `muggle-remote-run-settings-list` returns for that `runSettingsId` (with `runEnvironmentType: "local"`), or the `displayResolution` the run executed at, written the same way (`R_0390x0844` → `390×844`). The walkthrough keeps each record of a test case as its own entry, labelled `<name> (390×844)`, and collapses only reruns of one record to the latest. Omit both when the run result carries no `cloudRunSettingsId`; the entry then collapses with the test case's other runs.
|
|
46
|
+
|
|
45
47
|
If called from `muggle-do`: `e2e-acceptance.md` already produces this shape — pass it through unchanged.
|
|
46
48
|
|
|
47
49
|
## Shape
|
|
@@ -56,6 +58,8 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape —
|
|
|
56
58
|
"useCaseName": "<parent use case title (recommended)>",
|
|
57
59
|
"testCaseId": "<testCaseId from execution step>",
|
|
58
60
|
"testCaseShortId": "<test case shortId, when it has one>",
|
|
61
|
+
"runSettingsId": "<cloudRunSettingsId from run result, when it has one>",
|
|
62
|
+
"resolutionLabel": "<that record's size, e.g. 390×844>",
|
|
59
63
|
"testScriptId": "<cloudTestScriptId from run result>",
|
|
60
64
|
"runId": "<runId from muggle-local-execute-test-generation>",
|
|
61
65
|
"replayShortId": "<run shortId, when it has one>",
|