@muggleai/works 5.28.0-staging.251 → 5.28.0-staging.252
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/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 +2 -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/post-install-guide/constants.mjs +41 -0
- package/scripts/post-install-guide/index.d.mts +17 -0
- package/scripts/post-install-guide/index.mjs +77 -0
- package/scripts/postinstall.mjs +15 -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.28.0-staging.
|
|
12
|
+
"version": "5.28.0-staging.252"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
}
|
|
@@ -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.28.0-staging.
|
|
4
|
+
"version": "5.28.0-staging.252",
|
|
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.28.0-staging.
|
|
3
|
+
"version": "5.28.0-staging.252",
|
|
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.28.0-staging.
|
|
5
|
+
"version": "5.28.0-staging.252",
|
|
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.26.0",
|
|
3
|
-
"buildId": "run-
|
|
4
|
-
"commitSha": "
|
|
5
|
-
"buildTime": "2026-10-
|
|
3
|
+
"buildId": "run-252-1",
|
|
4
|
+
"commitSha": "b14f1bedf8857a826ae5719d26677793c866a161",
|
|
5
|
+
"buildTime": "2026-10-30T06:23:28Z",
|
|
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.28.0-staging.
|
|
4
|
+
"version": "5.28.0-staging.252",
|
|
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",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"bin/muggle.js",
|
|
15
15
|
".claude-plugin/marketplace.json",
|
|
16
16
|
"scripts/postinstall.mjs",
|
|
17
|
+
"scripts/post-install-guide",
|
|
17
18
|
"scripts/claude-marketplace-sync.mjs",
|
|
18
19
|
"scripts/electron-app-install-dir.mjs",
|
|
19
20
|
"scripts/onboarding-backfill.mjs",
|
|
@@ -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.28.0-staging.
|
|
4
|
+
"version": "5.28.0-staging.252",
|
|
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.28.0-staging.
|
|
3
|
+
"version": "5.28.0-staging.252",
|
|
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.28.0-staging.
|
|
5
|
+
"version": "5.28.0-staging.252",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/plugin/.mcp.json
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** Terminal device opened on POSIX systems to reach the user's console past npm's output capture. */
|
|
2
|
+
export const POSIX_TERMINAL_DEVICE_PATH = "/dev/tty";
|
|
3
|
+
|
|
4
|
+
/** Console output device opened on Windows to reach the user's console past npm's output capture. */
|
|
5
|
+
export const WINDOWS_TERMINAL_DEVICE_PATH = "\\\\.\\CONOUT$";
|
|
6
|
+
|
|
7
|
+
/** Documentation page the guide links to. */
|
|
8
|
+
export const POST_INSTALL_DOCS_URL = "https://www.muggle-ai.com/muggleTestV0/docs/mcp/mcp-overview";
|
|
9
|
+
|
|
10
|
+
/** Lines of the guide, in print order. Blank strings are spacing. */
|
|
11
|
+
export const POST_INSTALL_GUIDE_LINES = [
|
|
12
|
+
"Muggle AI Works is installed. Here is how to use it.",
|
|
13
|
+
"",
|
|
14
|
+
"See the menu",
|
|
15
|
+
" /m (or /muggle:muggle) Opens a menu of every command",
|
|
16
|
+
"",
|
|
17
|
+
"Import your existing tests first",
|
|
18
|
+
" /mimport (or /muggle:muggle-test-import)",
|
|
19
|
+
" Example: /mimport import my Playwright tests from ./e2e",
|
|
20
|
+
"",
|
|
21
|
+
"Build something, with acceptance tests",
|
|
22
|
+
" /mdo (or /muggle:muggle-do)",
|
|
23
|
+
" Example: /mdo Add a logout button to the header",
|
|
24
|
+
" Writes the code and unit tests, checks it in a real browser, opens the PR with",
|
|
25
|
+
" screenshots, then watches the PR for reviews and CI.",
|
|
26
|
+
"",
|
|
27
|
+
"Run a test, locally or remotely",
|
|
28
|
+
" /mtest (or /muggle:muggle-test)",
|
|
29
|
+
" Example: /mtest check my changes on http://localhost:3000",
|
|
30
|
+
" Example: /mtest check my changes on https://staging.example.com",
|
|
31
|
+
"",
|
|
32
|
+
"Get run guidance",
|
|
33
|
+
" muggle help Full how-to guide, in your terminal",
|
|
34
|
+
"",
|
|
35
|
+
"Manage preferences",
|
|
36
|
+
" /mprefs (or /muggle:muggle-preferences)",
|
|
37
|
+
" Example: /mprefs show my settings",
|
|
38
|
+
"",
|
|
39
|
+
"In Codex, write $muggle:mdo for /mdo.",
|
|
40
|
+
`Docs: ${POST_INSTALL_DOCS_URL}`,
|
|
41
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const POSIX_TERMINAL_DEVICE_PATH: string;
|
|
2
|
+
export declare const WINDOWS_TERMINAL_DEVICE_PATH: string;
|
|
3
|
+
export declare const POST_INSTALL_DOCS_URL: string;
|
|
4
|
+
export declare const POST_INSTALL_GUIDE_LINES: readonly string[];
|
|
5
|
+
|
|
6
|
+
export declare function buildPostInstallGuide(): string;
|
|
7
|
+
|
|
8
|
+
export declare function writeToTerminalDevice(devicePath: string, text: string): void;
|
|
9
|
+
|
|
10
|
+
export declare function showPostInstallGuide(params: {
|
|
11
|
+
guide: string;
|
|
12
|
+
isStdoutTerminal: boolean;
|
|
13
|
+
env: NodeJS.ProcessEnv;
|
|
14
|
+
platformName: string;
|
|
15
|
+
writeToStdout: (text: string) => void;
|
|
16
|
+
writeToDevice?: (devicePath: string, text: string) => void;
|
|
17
|
+
}): { wroteToStdout: boolean; wroteToTerminalDevice: boolean };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { closeSync, openSync, writeSync } from "node:fs";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
POSIX_TERMINAL_DEVICE_PATH,
|
|
5
|
+
POST_INSTALL_GUIDE_LINES,
|
|
6
|
+
WINDOWS_TERMINAL_DEVICE_PATH,
|
|
7
|
+
} from "./constants.mjs";
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
POSIX_TERMINAL_DEVICE_PATH,
|
|
11
|
+
POST_INSTALL_DOCS_URL,
|
|
12
|
+
POST_INSTALL_GUIDE_LINES,
|
|
13
|
+
WINDOWS_TERMINAL_DEVICE_PATH,
|
|
14
|
+
} from "./constants.mjs";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Build the getting-started guide shown after install.
|
|
18
|
+
* @returns {string} The guide as plain text.
|
|
19
|
+
*/
|
|
20
|
+
export function buildPostInstallGuide() {
|
|
21
|
+
return POST_INSTALL_GUIDE_LINES.join("\n");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Write text straight to the user's console device, bypassing stdout.
|
|
26
|
+
* @param {string} devicePath - Console device to open.
|
|
27
|
+
* @param {string} text - Text to write.
|
|
28
|
+
* @throws When the device cannot be opened, as in a headless environment.
|
|
29
|
+
*/
|
|
30
|
+
export function writeToTerminalDevice(devicePath, text) {
|
|
31
|
+
const fileDescriptor = openSync(devicePath, "w");
|
|
32
|
+
try {
|
|
33
|
+
writeSync(fileDescriptor, text);
|
|
34
|
+
} finally {
|
|
35
|
+
closeSync(fileDescriptor);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Show the guide to whoever ran the install.
|
|
41
|
+
*
|
|
42
|
+
* npm captures a lifecycle script's stdout during a global install and discards it on
|
|
43
|
+
* success, so a plain `console.log` is never seen. When stdout is not a terminal the guide
|
|
44
|
+
* is also written to the console device directly. CI and headless runs have no console to
|
|
45
|
+
* reach, so that write is skipped there and its failure is swallowed.
|
|
46
|
+
* @param {object} params - Output wiring.
|
|
47
|
+
* @param {string} params.guide - Text to show.
|
|
48
|
+
* @param {boolean} params.isStdoutTerminal - Whether stdout is an interactive terminal.
|
|
49
|
+
* @param {NodeJS.ProcessEnv} params.env - Process environment.
|
|
50
|
+
* @param {string} params.platformName - Value of `os.platform()`.
|
|
51
|
+
* @param {(text: string) => void} params.writeToStdout - Writes the guide to stdout and the install log.
|
|
52
|
+
* @param {(devicePath: string, text: string) => void} [params.writeToDevice] - Writes to a console device.
|
|
53
|
+
* @returns {{ wroteToStdout: boolean, wroteToTerminalDevice: boolean }} Which outputs received the guide.
|
|
54
|
+
*/
|
|
55
|
+
export function showPostInstallGuide({
|
|
56
|
+
guide,
|
|
57
|
+
isStdoutTerminal,
|
|
58
|
+
env,
|
|
59
|
+
platformName,
|
|
60
|
+
writeToStdout,
|
|
61
|
+
writeToDevice = writeToTerminalDevice,
|
|
62
|
+
}) {
|
|
63
|
+
writeToStdout(guide);
|
|
64
|
+
|
|
65
|
+
if (isStdoutTerminal || env.CI) {
|
|
66
|
+
return { wroteToStdout: true, wroteToTerminalDevice: false };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const devicePath = platformName === "win32" ? WINDOWS_TERMINAL_DEVICE_PATH : POSIX_TERMINAL_DEVICE_PATH;
|
|
70
|
+
|
|
71
|
+
try {
|
|
72
|
+
writeToDevice(devicePath, `\n${guide}\n\n`);
|
|
73
|
+
return { wroteToStdout: true, wroteToTerminalDevice: true };
|
|
74
|
+
} catch {
|
|
75
|
+
return { wroteToStdout: true, wroteToTerminalDevice: false };
|
|
76
|
+
}
|
|
77
|
+
}
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
resolveIntegrityPolicy,
|
|
39
39
|
verifyReleaseSignature,
|
|
40
40
|
} from "./release-integrity/index.mjs";
|
|
41
|
+
import { buildPostInstallGuide, showPostInstallGuide } from "./post-install-guide/index.mjs";
|
|
41
42
|
|
|
42
43
|
const require = createRequire(import.meta.url);
|
|
43
44
|
const INSTALL_METADATA_FILE_NAME = ".install-metadata.json";
|
|
@@ -1056,4 +1057,17 @@ applyWatchServicePreference();
|
|
|
1056
1057
|
upsertCursorMcpConfig();
|
|
1057
1058
|
downloadElectronApp()
|
|
1058
1059
|
.catch(logError)
|
|
1059
|
-
.finally(() =>
|
|
1060
|
+
.finally(() => {
|
|
1061
|
+
try {
|
|
1062
|
+
showPostInstallGuide({
|
|
1063
|
+
guide: buildPostInstallGuide(),
|
|
1064
|
+
isStdoutTerminal: Boolean(process.stdout.isTTY),
|
|
1065
|
+
env: process.env,
|
|
1066
|
+
platformName: platform(),
|
|
1067
|
+
writeToStdout: log,
|
|
1068
|
+
});
|
|
1069
|
+
} catch (error) {
|
|
1070
|
+
logError(`Failed to show the post-install guide: ${error.message}`);
|
|
1071
|
+
}
|
|
1072
|
+
process.exit(0);
|
|
1073
|
+
});
|