@muggleai/works 5.22.0-staging.154 → 5.22.0-staging.155
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/dist/{chunk-HXDEDSP5.js → chunk-6ROSBSNR.js} +2 -1
- 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-plugin/plugin.json +1 -1
- package/dist/plugin/.cursor-plugin/plugin.json +1 -1
- package/dist/plugin/scripts/codex-hook-windows.mjs +2 -2
- package/dist/plugin/scripts/guard-run.mjs +9 -5
- package/dist/plugin/scripts/guardrails.mjs +12 -4
- package/dist/release-manifest.json +3 -3
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.cursor-plugin/plugin.json +1 -1
- package/plugin/scripts/codex-hook-windows.mjs +2 -2
- package/plugin/scripts/guard-run.mjs +9 -5
- package/plugin/scripts/guardrails.mjs +12 -4
|
@@ -2189,7 +2189,8 @@ var defaultGhRunner = (args, input) => {
|
|
|
2189
2189
|
encoding: "utf-8",
|
|
2190
2190
|
input,
|
|
2191
2191
|
timeout: GH_COMMENT_TIMEOUT_MS,
|
|
2192
|
-
stdio: ["pipe", "pipe", "ignore"]
|
|
2192
|
+
stdio: ["pipe", "pipe", "ignore"],
|
|
2193
|
+
windowsHide: true
|
|
2193
2194
|
});
|
|
2194
2195
|
} catch {
|
|
2195
2196
|
return null;
|
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-6ROSBSNR.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-E3T2RN6R.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.
|
|
4
|
+
"version": "5.22.0-staging.155",
|
|
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.22.0-staging.
|
|
3
|
+
"version": "5.22.0-staging.155",
|
|
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.22.0-staging.
|
|
5
|
+
"version": "5.22.0-staging.155",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
|
@@ -48,7 +48,7 @@ export function gitBashCandidates(env, gitExecutables) {
|
|
|
48
48
|
function gitExecutablesOnPath() {
|
|
49
49
|
if (process.platform !== "win32") return [];
|
|
50
50
|
try {
|
|
51
|
-
return execFileSync("where", ["git"], { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] })
|
|
51
|
+
return execFileSync("where", ["git"], { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"], windowsHide: true })
|
|
52
52
|
.split(/\r?\n/)
|
|
53
53
|
.filter(Boolean);
|
|
54
54
|
} catch {
|
|
@@ -68,7 +68,7 @@ export function runHookUnderGitBash(scriptAndArgs, env = process.env) {
|
|
|
68
68
|
process.stdout.write("{}\n");
|
|
69
69
|
return 0;
|
|
70
70
|
}
|
|
71
|
-
const run = spawnSync(bash, scriptAndArgs, { stdio: "inherit", env: { ...env, ...HOOK_HOST_STAMP } });
|
|
71
|
+
const run = spawnSync(bash, scriptAndArgs, { stdio: "inherit", env: { ...env, ...HOOK_HOST_STAMP }, windowsHide: true });
|
|
72
72
|
if (run.error) {
|
|
73
73
|
process.stdout.write("{}\n");
|
|
74
74
|
return 0;
|
|
@@ -220,13 +220,14 @@ function fail(message) {
|
|
|
220
220
|
process.exit(2);
|
|
221
221
|
}
|
|
222
222
|
function commandSucceeds(executable, args) {
|
|
223
|
-
const probe = spawnSync(executable, args, { stdio: "ignore", timeout: 1e4 });
|
|
223
|
+
const probe = spawnSync(executable, args, { stdio: "ignore", timeout: 1e4, windowsHide: true });
|
|
224
224
|
return probe.error === void 0 && probe.status === 0;
|
|
225
225
|
}
|
|
226
226
|
function probedSystemdUserManagerState() {
|
|
227
227
|
const probe = spawnSync("systemctl", ["--user", "is-system-running"], {
|
|
228
228
|
encoding: "utf-8",
|
|
229
|
-
timeout: 1e4
|
|
229
|
+
timeout: 1e4,
|
|
230
|
+
windowsHide: true
|
|
230
231
|
});
|
|
231
232
|
if (!probeRan(probe)) return null;
|
|
232
233
|
return probe.stdout.trim();
|
|
@@ -251,7 +252,8 @@ function windowsCommandNeedsCmdShell(firstCommandToken) {
|
|
|
251
252
|
if (knownExtension !== "") return false;
|
|
252
253
|
const lookup = spawnSync("where.exe", [firstCommandToken], {
|
|
253
254
|
encoding: "utf-8",
|
|
254
|
-
timeout: 1e4
|
|
255
|
+
timeout: 1e4,
|
|
256
|
+
windowsHide: true
|
|
255
257
|
});
|
|
256
258
|
if (lookup.error !== void 0 || lookup.status !== 0) return false;
|
|
257
259
|
const resolvedExtension = extname(lookup.stdout.split(/\r?\n/)[0] ?? "").toLowerCase();
|
|
@@ -261,7 +263,8 @@ function currentUserProcessCount() {
|
|
|
261
263
|
const uid = typeof process.getuid === "function" ? String(process.getuid()) : "";
|
|
262
264
|
const listing = spawnSync("ps", ["-u", uid, "-o", "pid="], {
|
|
263
265
|
encoding: "utf-8",
|
|
264
|
-
timeout: 1e4
|
|
266
|
+
timeout: 1e4,
|
|
267
|
+
windowsHide: true
|
|
265
268
|
});
|
|
266
269
|
if (!probeRan(listing) || listing.status !== 0) {
|
|
267
270
|
return fail("cannot count current user processes for the nproc ceiling");
|
|
@@ -283,7 +286,8 @@ function registerTreeCleanup(plan2, childPid) {
|
|
|
283
286
|
if (plan2.stopsScopeUnitOnExit !== null) {
|
|
284
287
|
spawnSync("systemctl", ["--user", "stop", plan2.stopsScopeUnitOnExit], {
|
|
285
288
|
stdio: "ignore",
|
|
286
|
-
timeout: 1e4
|
|
289
|
+
timeout: 1e4,
|
|
290
|
+
windowsHide: true
|
|
287
291
|
});
|
|
288
292
|
}
|
|
289
293
|
};
|
|
@@ -814,7 +814,8 @@ function runGh(args) {
|
|
|
814
814
|
return execFileSync("gh", args, {
|
|
815
815
|
encoding: "utf-8",
|
|
816
816
|
timeout: GH_LOOKUP_TIMEOUT_MS,
|
|
817
|
-
stdio: ["ignore", "pipe", "ignore"]
|
|
817
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
818
|
+
windowsHide: true
|
|
818
819
|
});
|
|
819
820
|
} catch {
|
|
820
821
|
return null;
|
|
@@ -946,7 +947,8 @@ var defaultGhRunner = (args, input2) => {
|
|
|
946
947
|
encoding: "utf-8",
|
|
947
948
|
input: input2,
|
|
948
949
|
timeout: GH_COMMENT_TIMEOUT_MS,
|
|
949
|
-
stdio: ["pipe", "pipe", "ignore"]
|
|
950
|
+
stdio: ["pipe", "pipe", "ignore"],
|
|
951
|
+
windowsHide: true
|
|
950
952
|
});
|
|
951
953
|
} catch {
|
|
952
954
|
return null;
|
|
@@ -1183,7 +1185,12 @@ var listFiles = (dir) => {
|
|
|
1183
1185
|
};
|
|
1184
1186
|
var runGit = (args, cwd) => {
|
|
1185
1187
|
try {
|
|
1186
|
-
return execFileSync("git", args, {
|
|
1188
|
+
return execFileSync("git", args, {
|
|
1189
|
+
cwd,
|
|
1190
|
+
encoding: "utf8",
|
|
1191
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
1192
|
+
windowsHide: true
|
|
1193
|
+
});
|
|
1187
1194
|
} catch {
|
|
1188
1195
|
return null;
|
|
1189
1196
|
}
|
|
@@ -1205,7 +1212,8 @@ var isReachable = (url) => {
|
|
|
1205
1212
|
try {
|
|
1206
1213
|
execFileSync(process.execPath, ["-e", script], {
|
|
1207
1214
|
timeout: DEV_SERVER_PROBE_TIMEOUT_MS * 2,
|
|
1208
|
-
stdio: "ignore"
|
|
1215
|
+
stdio: "ignore",
|
|
1216
|
+
windowsHide: true
|
|
1209
1217
|
});
|
|
1210
1218
|
return true;
|
|
1211
1219
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"release": "5.18.0",
|
|
3
|
-
"buildId": "run-
|
|
4
|
-
"commitSha": "
|
|
5
|
-
"buildTime": "2026-10-
|
|
3
|
+
"buildId": "run-155-1",
|
|
4
|
+
"commitSha": "ba63ca4b26455ee3ab8cf79d2293777f8192dda0",
|
|
5
|
+
"buildTime": "2026-10-21T04:17:25Z",
|
|
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.
|
|
4
|
+
"version": "5.22.0-staging.155",
|
|
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.
|
|
4
|
+
"version": "5.22.0-staging.155",
|
|
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.22.0-staging.
|
|
3
|
+
"version": "5.22.0-staging.155",
|
|
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.22.0-staging.
|
|
5
|
+
"version": "5.22.0-staging.155",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
|
@@ -48,7 +48,7 @@ export function gitBashCandidates(env, gitExecutables) {
|
|
|
48
48
|
function gitExecutablesOnPath() {
|
|
49
49
|
if (process.platform !== "win32") return [];
|
|
50
50
|
try {
|
|
51
|
-
return execFileSync("where", ["git"], { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] })
|
|
51
|
+
return execFileSync("where", ["git"], { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"], windowsHide: true })
|
|
52
52
|
.split(/\r?\n/)
|
|
53
53
|
.filter(Boolean);
|
|
54
54
|
} catch {
|
|
@@ -68,7 +68,7 @@ export function runHookUnderGitBash(scriptAndArgs, env = process.env) {
|
|
|
68
68
|
process.stdout.write("{}\n");
|
|
69
69
|
return 0;
|
|
70
70
|
}
|
|
71
|
-
const run = spawnSync(bash, scriptAndArgs, { stdio: "inherit", env: { ...env, ...HOOK_HOST_STAMP } });
|
|
71
|
+
const run = spawnSync(bash, scriptAndArgs, { stdio: "inherit", env: { ...env, ...HOOK_HOST_STAMP }, windowsHide: true });
|
|
72
72
|
if (run.error) {
|
|
73
73
|
process.stdout.write("{}\n");
|
|
74
74
|
return 0;
|
|
@@ -220,13 +220,14 @@ function fail(message) {
|
|
|
220
220
|
process.exit(2);
|
|
221
221
|
}
|
|
222
222
|
function commandSucceeds(executable, args) {
|
|
223
|
-
const probe = spawnSync(executable, args, { stdio: "ignore", timeout: 1e4 });
|
|
223
|
+
const probe = spawnSync(executable, args, { stdio: "ignore", timeout: 1e4, windowsHide: true });
|
|
224
224
|
return probe.error === void 0 && probe.status === 0;
|
|
225
225
|
}
|
|
226
226
|
function probedSystemdUserManagerState() {
|
|
227
227
|
const probe = spawnSync("systemctl", ["--user", "is-system-running"], {
|
|
228
228
|
encoding: "utf-8",
|
|
229
|
-
timeout: 1e4
|
|
229
|
+
timeout: 1e4,
|
|
230
|
+
windowsHide: true
|
|
230
231
|
});
|
|
231
232
|
if (!probeRan(probe)) return null;
|
|
232
233
|
return probe.stdout.trim();
|
|
@@ -251,7 +252,8 @@ function windowsCommandNeedsCmdShell(firstCommandToken) {
|
|
|
251
252
|
if (knownExtension !== "") return false;
|
|
252
253
|
const lookup = spawnSync("where.exe", [firstCommandToken], {
|
|
253
254
|
encoding: "utf-8",
|
|
254
|
-
timeout: 1e4
|
|
255
|
+
timeout: 1e4,
|
|
256
|
+
windowsHide: true
|
|
255
257
|
});
|
|
256
258
|
if (lookup.error !== void 0 || lookup.status !== 0) return false;
|
|
257
259
|
const resolvedExtension = extname(lookup.stdout.split(/\r?\n/)[0] ?? "").toLowerCase();
|
|
@@ -261,7 +263,8 @@ function currentUserProcessCount() {
|
|
|
261
263
|
const uid = typeof process.getuid === "function" ? String(process.getuid()) : "";
|
|
262
264
|
const listing = spawnSync("ps", ["-u", uid, "-o", "pid="], {
|
|
263
265
|
encoding: "utf-8",
|
|
264
|
-
timeout: 1e4
|
|
266
|
+
timeout: 1e4,
|
|
267
|
+
windowsHide: true
|
|
265
268
|
});
|
|
266
269
|
if (!probeRan(listing) || listing.status !== 0) {
|
|
267
270
|
return fail("cannot count current user processes for the nproc ceiling");
|
|
@@ -283,7 +286,8 @@ function registerTreeCleanup(plan2, childPid) {
|
|
|
283
286
|
if (plan2.stopsScopeUnitOnExit !== null) {
|
|
284
287
|
spawnSync("systemctl", ["--user", "stop", plan2.stopsScopeUnitOnExit], {
|
|
285
288
|
stdio: "ignore",
|
|
286
|
-
timeout: 1e4
|
|
289
|
+
timeout: 1e4,
|
|
290
|
+
windowsHide: true
|
|
287
291
|
});
|
|
288
292
|
}
|
|
289
293
|
};
|
|
@@ -814,7 +814,8 @@ function runGh(args) {
|
|
|
814
814
|
return execFileSync("gh", args, {
|
|
815
815
|
encoding: "utf-8",
|
|
816
816
|
timeout: GH_LOOKUP_TIMEOUT_MS,
|
|
817
|
-
stdio: ["ignore", "pipe", "ignore"]
|
|
817
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
818
|
+
windowsHide: true
|
|
818
819
|
});
|
|
819
820
|
} catch {
|
|
820
821
|
return null;
|
|
@@ -946,7 +947,8 @@ var defaultGhRunner = (args, input2) => {
|
|
|
946
947
|
encoding: "utf-8",
|
|
947
948
|
input: input2,
|
|
948
949
|
timeout: GH_COMMENT_TIMEOUT_MS,
|
|
949
|
-
stdio: ["pipe", "pipe", "ignore"]
|
|
950
|
+
stdio: ["pipe", "pipe", "ignore"],
|
|
951
|
+
windowsHide: true
|
|
950
952
|
});
|
|
951
953
|
} catch {
|
|
952
954
|
return null;
|
|
@@ -1183,7 +1185,12 @@ var listFiles = (dir) => {
|
|
|
1183
1185
|
};
|
|
1184
1186
|
var runGit = (args, cwd) => {
|
|
1185
1187
|
try {
|
|
1186
|
-
return execFileSync("git", args, {
|
|
1188
|
+
return execFileSync("git", args, {
|
|
1189
|
+
cwd,
|
|
1190
|
+
encoding: "utf8",
|
|
1191
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
1192
|
+
windowsHide: true
|
|
1193
|
+
});
|
|
1187
1194
|
} catch {
|
|
1188
1195
|
return null;
|
|
1189
1196
|
}
|
|
@@ -1205,7 +1212,8 @@ var isReachable = (url) => {
|
|
|
1205
1212
|
try {
|
|
1206
1213
|
execFileSync(process.execPath, ["-e", script], {
|
|
1207
1214
|
timeout: DEV_SERVER_PROBE_TIMEOUT_MS * 2,
|
|
1208
|
-
stdio: "ignore"
|
|
1215
|
+
stdio: "ignore",
|
|
1216
|
+
windowsHide: true
|
|
1209
1217
|
});
|
|
1210
1218
|
return true;
|
|
1211
1219
|
} catch {
|