@muggleai/works 5.35.0-staging.320 → 5.35.0-staging.321

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.
@@ -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.35.0-staging.320"
12
+ "version": "5.35.0-staging.321"
13
13
  }
14
14
  ]
15
15
  }
@@ -595,6 +595,8 @@ var UnpassedCaseStatus = /* @__PURE__ */ ((UnpassedCaseStatus2) => {
595
595
  // src/e2e-result/constants.ts
596
596
  var E2E_RESULT_MARKER_PREFIX = "<!-- muggle-e2e-result:v1 ";
597
597
  var E2E_RESULT_MARKER_SUFFIX = " -->";
598
+ var ISSUE_REFERENCE_MARKER = /(#|\bGH-)(?=\d)/gi;
599
+ var ISSUE_REFERENCE_BREAK = "&#8288;";
598
600
  var UNPASSED_DETAIL_MAX_CHARS = 300;
599
601
  var UNPASSED_STATUS_EMOJI = {
600
602
  ["failed" /* Failed */]: "\u274C",
@@ -608,19 +610,25 @@ function escapeHtml(s) {
608
610
  function escapeHtmlAttribute(s) {
609
611
  return escapeHtml(s).replace(/"/g, "&quot;");
610
612
  }
613
+ function breakIssueReferences(s) {
614
+ return s.replace(ISSUE_REFERENCE_MARKER, `$1${ISSUE_REFERENCE_BREAK}`);
615
+ }
616
+ function escapeFreeText(s) {
617
+ return breakIssueReferences(escapeHtml(s));
618
+ }
611
619
  function withResolutionLabel(labelledText, resolutionLabel) {
612
620
  return resolutionLabel ? `${labelledText} (${resolutionLabel})` : labelledText;
613
621
  }
614
622
  function describeUnpassedCase(unpassed) {
615
623
  const outcome = unpassed.status === "failed" /* Failed */ && unpassed.failedStep !== void 0 ? `failed at step ${unpassed.failedStep}` : unpassed.status;
616
- return `${outcome}: ${escapeHtml(unpassed.detail)}`;
624
+ return `${outcome}: ${escapeFreeText(unpassed.detail)}`;
617
625
  }
618
626
  function describeFailsOnBase(failsOnBase) {
619
627
  const baselineLink = failsOnBase.viewUrl ? ` ([baseline run](${failsOnBase.viewUrl}))` : "";
620
628
  return ` \xB7 also fails on base \`${failsOnBase.baselineSha.slice(0, SHORT_SHA_LENGTH)}\`${baselineLink}`;
621
629
  }
622
630
  function renderUnpassedCaseBullet(unpassed, linkText, linkTarget) {
623
- return `- ${UNPASSED_STATUS_EMOJI[unpassed.status]} **${escapeHtml(withResolutionLabel(unpassed.name, unpassed.resolutionLabel))}** \u2014 ${describeUnpassedCase(unpassed)} \xB7 [${linkText}](${linkTarget})` + (unpassed.failsOnBase ? describeFailsOnBase(unpassed.failsOnBase) : "");
631
+ return `- ${UNPASSED_STATUS_EMOJI[unpassed.status]} **${escapeFreeText(withResolutionLabel(unpassed.name, unpassed.resolutionLabel))}** \u2014 ${describeUnpassedCase(unpassed)} \xB7 [${linkText}](${linkTarget})` + (unpassed.failsOnBase ? describeFailsOnBase(unpassed.failsOnBase) : "");
624
632
  }
625
633
  var UnpassedCaseSchema = z.object({
626
634
  name: z.string(),
@@ -823,13 +831,13 @@ function tableCell(s) {
823
831
  return singleLine(s).replace(/\|/g, "\\|");
824
832
  }
825
833
  function stepText(step) {
826
- return escapeHtml((step.description ?? step.action).replace(STEP_ELEMENT_ID_SUFFIX, ""));
834
+ return escapeFreeText((step.description ?? step.action).replace(STEP_ELEMENT_ID_SUFFIX, ""));
827
835
  }
828
836
  function withShortId(shortId, labelledText) {
829
837
  return shortId ? `${shortId}${SHORT_ID_LABEL_SEPARATOR}${labelledText}` : labelledText;
830
838
  }
831
839
  function testLabel(test) {
832
- return withResolutionLabel(withShortId(test.testCaseShortId, test.name), test.resolutionLabel);
840
+ return escapeFreeText(withResolutionLabel(withShortId(test.testCaseShortId, test.name), test.resolutionLabel));
833
841
  }
834
842
  function dashboardLink(test) {
835
843
  return `<a href="${escapeHtmlAttribute(test.viewUrl)}" target="_blank" rel="noopener noreferrer">Open the full run on Muggle AI \u2192</a>`;
@@ -886,7 +894,7 @@ function renderUseCaseGroup(useCaseName, members, numbering) {
886
894
  ].filter((part) => part !== null).join(" \xB7 ");
887
895
  return [
888
896
  "",
889
- `<details${isAllPassed ? "" : " open"}><summary><b>${escapeHtml(useCaseName)}</b> \u2014 ${tally}</summary>`,
897
+ `<details${isAllPassed ? "" : " open"}><summary><b>${escapeFreeText(useCaseName)}</b> \u2014 ${tally}</summary>`,
890
898
  ...indented(members.map((member) => renderOverviewBullet(member, numbering, ""))),
891
899
  "</details>"
892
900
  ];
@@ -927,7 +935,7 @@ function renderTestDetails(entry, testNumber, screenshotDetail = "before-and-aft
927
935
  const { test } = entry;
928
936
  const lines = [`<a name="${testAnchor(test)}"></a>`, "", `#### ${statusEmoji(test)} ${testNumber}. ${testLabel(test)}`, ""];
929
937
  if (test.description && !isSameText(test.description, test.name)) {
930
- lines.push(`_${singleLine(test.description)}_`, "");
938
+ lines.push(`_${escapeFreeText(singleLine(test.description))}_`, "");
931
939
  }
932
940
  lines.push(...renderResultTable(entry));
933
941
  const steps = renderSteps(test, screenshotDetail);
@@ -981,14 +989,14 @@ function renderStepScreenshots(step, position, screenshotDetail) {
981
989
  }
982
990
  function runSummaryLabel(runSummary) {
983
991
  const statusLabel = runSummary.status ? `${RUN_SUMMARY_VERDICT_STATUS_LABELS[runSummary.status]} \u2014 ` : "";
984
- return `${RUN_SUMMARY_MARKER} Summary \xB7 ${statusLabel}${escapeHtml(singleLine(runSummary.headline))}`;
992
+ return `${RUN_SUMMARY_MARKER} Summary \xB7 ${statusLabel}${escapeFreeText(singleLine(runSummary.headline))}`;
985
993
  }
986
994
  function runSummaryVerdictLines(runSummary) {
987
995
  const labelledTexts = [
988
996
  ["Verdict", runSummary.verdict],
989
997
  ["Blocking issues", runSummary.blockingIssues]
990
998
  ];
991
- return labelledTexts.filter((labelled) => Boolean(labelled[1])).map(([label, text]) => `**${label}:** ${escapeHtml(singleLine(text))}`);
999
+ return labelledTexts.filter((labelled) => Boolean(labelled[1])).map(([label, text]) => `**${label}:** ${escapeFreeText(singleLine(text))}`);
992
1000
  }
993
1001
  function renderRunSummaryRow(runSummary, screenshotDetail) {
994
1002
  if (!runSummary) {
@@ -1047,10 +1055,10 @@ function renderResultTable(entry) {
1047
1055
  rows.push("| **Result** | \u2705 Passed |", "|:--|:--|");
1048
1056
  } else if (test.status === "failed") {
1049
1057
  rows.push(`| **Result** | \u274C Failed at step ${failureOrdinal(test, test.failureStepIndex)} |`, "|:--|:--|");
1050
- rows.push(`| **Why** | ${tableCell(escapeHtml(test.error))} |`);
1058
+ rows.push(`| **Why** | ${tableCell(escapeFreeText(test.error))} |`);
1051
1059
  } else {
1052
1060
  rows.push("| **Result** | \u26A0\uFE0F Inconclusive |", "|:--|:--|");
1053
- rows.push(`| **Why** | ${tableCell(escapeHtml(test.reason))} |`);
1061
+ rows.push(`| **Why** | ${tableCell(escapeFreeText(test.reason))} |`);
1054
1062
  }
1055
1063
  if (entry.attempts > 1) {
1056
1064
  rows.push(`| **Attempts** | ${entry.attempts} \u2014 showing the latest |`);
@@ -2507,7 +2515,7 @@ function withFileLock(lockPath, waitMs, run) {
2507
2515
 
2508
2516
  // src/pr-walkthrough/progress.ts
2509
2517
  var encodeState = (cases) => JSON.stringify(cases).replace(/--/g, "-\\u002d");
2510
- var tableCell2 = (text) => text.replace(/\|/g, "\\|").replace(/\s*\n\s*/g, " ");
2518
+ var tableCell2 = (text) => breakIssueReferences(text.replace(/\|/g, "\\|").replace(/\s*\n\s*/g, " "));
2511
2519
  function renderResultCell(progressCase) {
2512
2520
  const label = PROGRESS_STATUS_LABELS[progressCase.status];
2513
2521
  return progressCase.viewUrl ? `[${label}](${progressCase.viewUrl})` : label;
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { runCli } from './chunk-4ALK5U2H.js';
2
+ import { runCli } from './chunk-VYRXNDB2.js';
3
3
  import './chunk-OXWLNJQY.js';
4
4
 
5
5
  // src/cli/main.ts
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-4ALK5U2H.js';
1
+ export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-VYRXNDB2.js';
2
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-OXWLNJQY.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.35.0-staging.320",
4
+ "version": "5.35.0-staging.321",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.35.0-staging.320",
7
+ "@muggleai/works@5.35.0-staging.321",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.35.0-staging.320",
3
+ "version": "5.35.0-staging.321",
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.35.0-staging.320",
5
+ "version": "5.35.0-staging.321",
6
6
  "author": {
7
7
  "name": "Muggle AI",
8
8
  "email": "support@muggle-ai.com"
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.35.0-staging.320",
7
+ "@muggleai/works@5.35.0-staging.321",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -2215,9 +2215,18 @@ function detectFinishedRun(input2) {
2215
2215
  };
2216
2216
  }
2217
2217
 
2218
+ // src/e2e-result/constants.ts
2219
+ var ISSUE_REFERENCE_MARKER = /(#|\bGH-)(?=\d)/gi;
2220
+ var ISSUE_REFERENCE_BREAK = "&#8288;";
2221
+
2222
+ // src/e2e-result/format.ts
2223
+ function breakIssueReferences(s) {
2224
+ return s.replace(ISSUE_REFERENCE_MARKER, `$1${ISSUE_REFERENCE_BREAK}`);
2225
+ }
2226
+
2218
2227
  // src/pr-walkthrough/progress.ts
2219
2228
  var encodeState = (cases) => JSON.stringify(cases).replace(/--/g, "-\\u002d");
2220
- var tableCell = (text) => text.replace(/\|/g, "\\|").replace(/\s*\n\s*/g, " ");
2229
+ var tableCell = (text) => breakIssueReferences(text.replace(/\|/g, "\\|").replace(/\s*\n\s*/g, " "));
2221
2230
  var isProgressCase = (value) => {
2222
2231
  if (!value || typeof value !== "object") return false;
2223
2232
  const candidate = value;
@@ -1,7 +1,7 @@
1
1
  {
2
- "release": "5.35.0-staging.320",
3
- "buildId": "run-320-1",
4
- "commitSha": "ec307f4a9ff411c0b42c4b39f824f6f89a551077",
5
- "buildTime": "2026-11-09T23:11:14Z",
2
+ "release": "5.35.0-staging.321",
3
+ "buildId": "run-321-1",
4
+ "commitSha": "a268f42d1c22c1ce2d2f7afc15ec7aa9850b5dbc",
5
+ "buildTime": "2026-11-10T05:38:34Z",
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.35.0-staging.320",
4
+ "version": "5.35.0-staging.321",
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.35.0-staging.320",
4
+ "version": "5.35.0-staging.321",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.35.0-staging.320",
7
+ "@muggleai/works@5.35.0-staging.321",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.35.0-staging.320",
3
+ "version": "5.35.0-staging.321",
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.35.0-staging.320",
5
+ "version": "5.35.0-staging.321",
6
6
  "author": {
7
7
  "name": "Muggle AI",
8
8
  "email": "support@muggle-ai.com"
package/plugin/.mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.35.0-staging.320",
7
+ "@muggleai/works@5.35.0-staging.321",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -2215,9 +2215,18 @@ function detectFinishedRun(input2) {
2215
2215
  };
2216
2216
  }
2217
2217
 
2218
+ // src/e2e-result/constants.ts
2219
+ var ISSUE_REFERENCE_MARKER = /(#|\bGH-)(?=\d)/gi;
2220
+ var ISSUE_REFERENCE_BREAK = "&#8288;";
2221
+
2222
+ // src/e2e-result/format.ts
2223
+ function breakIssueReferences(s) {
2224
+ return s.replace(ISSUE_REFERENCE_MARKER, `$1${ISSUE_REFERENCE_BREAK}`);
2225
+ }
2226
+
2218
2227
  // src/pr-walkthrough/progress.ts
2219
2228
  var encodeState = (cases) => JSON.stringify(cases).replace(/--/g, "-\\u002d");
2220
- var tableCell = (text) => text.replace(/\|/g, "\\|").replace(/\s*\n\s*/g, " ");
2229
+ var tableCell = (text) => breakIssueReferences(text.replace(/\|/g, "\\|").replace(/\s*\n\s*/g, " "));
2221
2230
  var isProgressCase = (value) => {
2222
2231
  if (!value || typeof value !== "object") return false;
2223
2232
  const candidate = value;