@muggleai/works 5.26.0-staging.212 → 5.26.0-staging.214
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/dist/{chunk-4JVYLRXD.js → chunk-3RNJ666J.js} +31 -47
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- 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/release-manifest.json +3 -3
- 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/scripts/muggle-watch/README.md +1 -1
|
@@ -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.214"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
}
|
|
@@ -366,8 +366,6 @@ var STEP_SCREENSHOT_MARKER = "\u{1F4F7}";
|
|
|
366
366
|
var TEST_DETAILS_DIVIDER = "---";
|
|
367
367
|
var SHORT_ID_LABEL_SEPARATOR = " \xB7 ";
|
|
368
368
|
var TEST_DETAILS_ANCHOR_PREFIX = "muggle-test-";
|
|
369
|
-
var STEP_THUMBNAIL_WIDTH_PX = 840;
|
|
370
|
-
var STEP_THUMBNAIL_QUALITY = 70;
|
|
371
369
|
var STEP_PAIR_IMAGE_WIDTH = 420;
|
|
372
370
|
var MAX_COMMENT_BYTES = 64e3;
|
|
373
371
|
|
|
@@ -491,13 +489,6 @@ function buildE2eResultRecord(latestTests) {
|
|
|
491
489
|
unpassed
|
|
492
490
|
};
|
|
493
491
|
}
|
|
494
|
-
|
|
495
|
-
// src/cli/pr-section/resolve-urls-types.ts
|
|
496
|
-
var GS_SCHEME = "gs://";
|
|
497
|
-
var PUBLIC_URL_PATH = "/v1/protected/storage/publicUrl";
|
|
498
|
-
var RESOLVE_TIMEOUT_MS = 1e4;
|
|
499
|
-
var LOG_PREFIX = "build-pr-section";
|
|
500
|
-
var IMAGE_PROXY_PREFIX = "https://images.weserv.nl/?url=";
|
|
501
492
|
var StepSchema = z.object({
|
|
502
493
|
stepIndex: z.number().int().nonnegative(),
|
|
503
494
|
action: z.string().min(1),
|
|
@@ -670,8 +661,8 @@ function endingFrame(test) {
|
|
|
670
661
|
caption: test.endingScreenshotCaption ?? defaultEndingCaption(test)
|
|
671
662
|
};
|
|
672
663
|
}
|
|
673
|
-
function
|
|
674
|
-
return `<img src="${url}" width="${
|
|
664
|
+
function screenshotImage(url, displayWidth, alt) {
|
|
665
|
+
return `<img src="${url}" width="${displayWidth}" alt="${escapeHtmlAttribute(alt)}">`;
|
|
675
666
|
}
|
|
676
667
|
function tableCell(s) {
|
|
677
668
|
return s.replace(/\s*\n\s*/g, " ").replace(/\|/g, "\\|");
|
|
@@ -784,11 +775,13 @@ function renderTestDetails(entry, testNumber, screenshotDetail = "before-and-aft
|
|
|
784
775
|
lines.push(`_${test.description.replace(/\s*\n\s*/g, " ")}_`, "");
|
|
785
776
|
}
|
|
786
777
|
lines.push(...renderResultTable(entry));
|
|
787
|
-
const
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
778
|
+
const frame = renderEndingFrame(test);
|
|
779
|
+
if (frame) {
|
|
780
|
+
lines.push("", ...frame);
|
|
781
|
+
}
|
|
782
|
+
const steps = renderSteps(test, screenshotDetail);
|
|
783
|
+
if (steps) {
|
|
784
|
+
lines.push("", `<details><summary>${stepsToggleLabel(test, screenshotDetail)}</summary>`, ...indented(steps), "</details>");
|
|
792
785
|
}
|
|
793
786
|
return lines.join("\n");
|
|
794
787
|
}
|
|
@@ -798,11 +791,8 @@ function indented(content) {
|
|
|
798
791
|
function testAnchor(identity) {
|
|
799
792
|
return `${TEST_DETAILS_ANCHOR_PREFIX}${walkthroughEntryKey(identity)}`;
|
|
800
793
|
}
|
|
801
|
-
function
|
|
794
|
+
function stepsToggleLabel(test, screenshotDetail) {
|
|
802
795
|
const count = test.steps.length;
|
|
803
|
-
if (count === 0) {
|
|
804
|
-
return "<kbd>Show the ending screen</kbd>";
|
|
805
|
-
}
|
|
806
796
|
const stepCount = `${count} ${count === 1 ? "step" : "steps"}`;
|
|
807
797
|
return screenshotDetail === "none" /* None */ ? `<kbd>Show ${stepCount}</kbd>` : `<kbd>Show ${stepCount} and screenshots</kbd>`;
|
|
808
798
|
}
|
|
@@ -818,26 +808,19 @@ function renderEndingFrame(test) {
|
|
|
818
808
|
return [
|
|
819
809
|
`**Ending screen** \u2014 ${frame.caption}`,
|
|
820
810
|
"",
|
|
821
|
-
|
|
811
|
+
screenshotImage(frame.url, DETAIL_IMAGE_WIDTH, test.name)
|
|
822
812
|
];
|
|
823
813
|
}
|
|
824
814
|
function renderStepScreenshots(step, position, screenshotDetail) {
|
|
825
815
|
if (!step.afterScreenshotUrl || screenshotDetail === "before-only" /* BeforeOnly */) {
|
|
826
|
-
return [
|
|
816
|
+
return [screenshotImage(step.screenshotUrl, STEP_IMAGE_WIDTH, `Step ${position}`)];
|
|
827
817
|
}
|
|
828
818
|
return [
|
|
829
819
|
"| Before | After |",
|
|
830
820
|
"|:--|:--|",
|
|
831
|
-
`| ${
|
|
821
|
+
`| ${screenshotImage(step.screenshotUrl, STEP_PAIR_IMAGE_WIDTH, `Step ${position} before`)} | ${screenshotImage(step.afterScreenshotUrl, STEP_PAIR_IMAGE_WIDTH, `Step ${position} after`)} |`
|
|
832
822
|
];
|
|
833
823
|
}
|
|
834
|
-
function thumbnailImage(url, displayWidth, alt) {
|
|
835
|
-
return `<img src="${thumbnailUrl(url)}" width="${displayWidth}" alt="${alt}">`;
|
|
836
|
-
}
|
|
837
|
-
function thumbnailUrl(url) {
|
|
838
|
-
const proxied = url.startsWith(IMAGE_PROXY_PREFIX) ? url : `${IMAGE_PROXY_PREFIX}${encodeURIComponent(url)}`;
|
|
839
|
-
return `${proxied}&w=${STEP_THUMBNAIL_WIDTH_PX}&q=${STEP_THUMBNAIL_QUALITY}&output=jpg`;
|
|
840
|
-
}
|
|
841
824
|
function renderSteps(test, screenshotDetail) {
|
|
842
825
|
const { steps } = test;
|
|
843
826
|
if (steps.length === 0) {
|
|
@@ -973,18 +956,20 @@ function renderFittingComment(report) {
|
|
|
973
956
|
function buildPrSection(report, opts) {
|
|
974
957
|
return splitWithOverflow(report, opts);
|
|
975
958
|
}
|
|
959
|
+
|
|
960
|
+
// src/cli/pr-section/resolve-urls-types.ts
|
|
961
|
+
var GS_SCHEME = "gs://";
|
|
962
|
+
var PUBLIC_URL_PATH = "/v1/protected/storage/publicUrl";
|
|
963
|
+
var RESOLVE_TIMEOUT_MS = 1e4;
|
|
964
|
+
var LOG_PREFIX = "build-pr-section";
|
|
965
|
+
|
|
966
|
+
// src/cli/pr-section/resolve-urls.ts
|
|
976
967
|
function errMsg(e) {
|
|
977
968
|
return e instanceof Error ? e.message : String(e);
|
|
978
969
|
}
|
|
979
970
|
function isGsUrl(url) {
|
|
980
971
|
return url.startsWith(GS_SCHEME);
|
|
981
972
|
}
|
|
982
|
-
function wrapInImageProxy(url) {
|
|
983
|
-
if (url.startsWith(IMAGE_PROXY_PREFIX)) {
|
|
984
|
-
return url;
|
|
985
|
-
}
|
|
986
|
-
return `${IMAGE_PROXY_PREFIX}${encodeURIComponent(url)}`;
|
|
987
|
-
}
|
|
988
973
|
function buildAuthHeaders(credentials) {
|
|
989
974
|
const headers = {};
|
|
990
975
|
if (credentials.bearerToken) {
|
|
@@ -1087,7 +1072,7 @@ async function resolveGsScreenshotUrls(report, opts) {
|
|
|
1087
1072
|
for (let i = 0; i < gsUrls.length; i++) {
|
|
1088
1073
|
const https = resolved[i];
|
|
1089
1074
|
if (https) {
|
|
1090
|
-
urlMap.set(gsUrls[i],
|
|
1075
|
+
urlMap.set(gsUrls[i], https);
|
|
1091
1076
|
} else {
|
|
1092
1077
|
failureCount++;
|
|
1093
1078
|
}
|
|
@@ -2339,6 +2324,7 @@ var CLAUDE_SESSION_REGISTRY_DIR_NAME = "sessions";
|
|
|
2339
2324
|
var CLAUDE_PROJECTS_DIR_NAME = "projects";
|
|
2340
2325
|
var CLAUDE_INSTALLED_PLUGINS_RELATIVE_PATH = ["plugins", "installed_plugins.json"];
|
|
2341
2326
|
var RELOAD_PLUGIN_SCOPE = "user";
|
|
2327
|
+
var MUGGLE_PLUGIN_ID = "muggleai@muggle-works";
|
|
2342
2328
|
var CODEX_ROLLOUT_PREFIX = "rollout-";
|
|
2343
2329
|
var MUGGLE_INSTALL_LOG_FILE = "postinstall.log";
|
|
2344
2330
|
var INSTALL_STARTED_PATTERN = /^Postinstall started at (\S+)/;
|
|
@@ -4887,22 +4873,20 @@ function createDesktopNotifier(platform4, runCommand) {
|
|
|
4887
4873
|
}
|
|
4888
4874
|
};
|
|
4889
4875
|
}
|
|
4890
|
-
function
|
|
4891
|
-
let
|
|
4876
|
+
function readMugglePluginUpdatedAtMs(installedPluginsFile) {
|
|
4877
|
+
let installs;
|
|
4892
4878
|
try {
|
|
4893
4879
|
const parsed = JSON.parse(readFileSync(installedPluginsFile, "utf-8"));
|
|
4894
4880
|
if (!parsed.plugins || typeof parsed.plugins !== "object") return void 0;
|
|
4895
|
-
|
|
4881
|
+
installs = parsed.plugins[MUGGLE_PLUGIN_ID];
|
|
4896
4882
|
} catch {
|
|
4897
4883
|
return void 0;
|
|
4898
4884
|
}
|
|
4899
4885
|
let updatedAtMs;
|
|
4900
|
-
for (const
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
if (!Number.isNaN(installUpdatedAtMs)) updatedAtMs = Math.max(updatedAtMs ?? 0, installUpdatedAtMs);
|
|
4905
|
-
}
|
|
4886
|
+
for (const install of Array.isArray(installs) ? installs : []) {
|
|
4887
|
+
if (install.scope !== RELOAD_PLUGIN_SCOPE) continue;
|
|
4888
|
+
const installUpdatedAtMs = typeof install.lastUpdated === "string" ? Date.parse(install.lastUpdated) : NaN;
|
|
4889
|
+
if (!Number.isNaN(installUpdatedAtMs)) updatedAtMs = Math.max(updatedAtMs ?? 0, installUpdatedAtMs);
|
|
4906
4890
|
}
|
|
4907
4891
|
return updatedAtMs;
|
|
4908
4892
|
}
|
|
@@ -5483,7 +5467,7 @@ function waitForExitVia(deps) {
|
|
|
5483
5467
|
return (sessionId) => waitForSessionExit(deps.runCommand, deps.paths.claudeSessionRegistryDir, sessionId, deps.sleep);
|
|
5484
5468
|
}
|
|
5485
5469
|
function reloadTargetAtMs(deps, installs) {
|
|
5486
|
-
return resolveReloadTargetAtMs(installs,
|
|
5470
|
+
return resolveReloadTargetAtMs(installs, readMugglePluginUpdatedAtMs(deps.paths.claudeInstalledPluginsFile));
|
|
5487
5471
|
}
|
|
5488
5472
|
function closeOutTerminalSlots(assessments, deps, at) {
|
|
5489
5473
|
const closedOutSlugs = [];
|
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-
|
|
1
|
+
export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-3RNJ666J.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-MJ34HBWC.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.214",
|
|
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.214",
|
|
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.214",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/dist/plugin/.mcp.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"release": "5.18.0",
|
|
3
|
-
"buildId": "run-
|
|
4
|
-
"commitSha": "
|
|
5
|
-
"buildTime": "2026-10-
|
|
3
|
+
"buildId": "run-214-1",
|
|
4
|
+
"commitSha": "647eac21c7d04165bee843fc43ac5d85f63ffa9c",
|
|
5
|
+
"buildTime": "2026-10-26T19:41:32Z",
|
|
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.26.0-staging.
|
|
4
|
+
"version": "5.26.0-staging.214",
|
|
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.214",
|
|
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.214",
|
|
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.214",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/plugin/.mcp.json
CHANGED
|
@@ -6,7 +6,7 @@ A standing per-user scheduled job that runs `muggle watch tick` every few minute
|
|
|
6
6
|
- **Checks every open PR-watch slot** under `~/.muggle-ai/muggle-do/sessions/`. Is its loop running, and heard by a live session? Is CI red? Is the branch behind or conflicting? Are review threads unresolved?
|
|
7
7
|
- **Keeps registered watchers running.** A slot carrying `watch-registration.json` (written by `pr-watch-arm.sh` on every arm) has its owner session resumed in the background when its loop is gone and the owner is down, or idle in the background (stopped first, once a throwaway launch confirms Claude will resume it there). A resume that only hit the usage limit is retried without counting against the per-owner cap. The resumed session's `/muggle:muggle-pr-followup reconcile` re-arms it with that session's own context. The service never addresses a review, pushes, or kills a process.
|
|
8
8
|
- **Closes out finished slots.** A slot whose PR GitHub reports merged or closed, with no loop and no running owner, is finalized the way a watcher's terminal tick would: `prs.json` takes the state, `followup.log` the terminal line, and `result.md` is written. Only local files change; post-merge cleanup is left to a session and recorded as not run.
|
|
9
|
-
- **Keeps sessions on the installed build.** A session loaded before the newest global install (or a later user-scope plugin
|
|
9
|
+
- **Keeps sessions on the installed build.** A session loaded before the newest global install (or a later user-scope update of the muggle plugin) is behind; other plugins updating restart nothing. Idle background sessions are restarted onto the new build, up to 3 per tick: a session that owns open PR watches is stopped and resumed on `/muggle:muggle-pr-followup reconcile`, so its watchers come back with it; any other is respawned. A resume waits for the stopped process to exit and passes no flag beyond `--bg`, so the session continues under its own id and name. Resuming a session that is still running, or adding flags, starts a copy that the agent view lists beside the original. Before either, a throwaway background launch in the session's workspace confirms Claude will bring it back; a workspace that refuses is left running and named once. Busy or waiting sessions wait for a later tick, and terminal sessions get one notification to run `/reload-plugins`. No interface runs a slash command inside another session.
|
|
10
10
|
- **Records and alerts.** Results go to `status.json` (last snapshot, with open-PR coverage per repo), `state.json` (active findings, recovery attempts, reload progress) and `events.jsonl` (raise/clear/resume/respawn/close-out history) under `~/.muggle-ai/watch/`. New alerts raise one desktop notification per tick.
|
|
11
11
|
|
|
12
12
|
## Install
|