@muggleai/works 5.38.0-staging.352 → 5.38.0-staging.353
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-B2EO5MBE.js → chunk-2GSA5O6H.js} +215 -2
- package/dist/{chunk-2TQOTPI6.js → chunk-VTGELNSG.js} +11 -3
- 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/release-manifest.json +3 -3
- package/dist/{src-52YXGHOV.js → src-MRBTJCCI.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __export, getLogger, TelemetryEnvironment, getConfig, createChildLogger, buildElectronAppReleaseAssetUrl, getActiveRuntimeTarget, getAuthService, hasApiKey, getElectronAppVersion, getElectronAppDir, getPlatformKey, reconcileProjectPreferences, getDataDir2, 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, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, buildLlmSourcePlan, describeLlmSourceStatus, resolveLlmSourceStatus, e2e_exports, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, claimServiceStack, BUSY_EXIT_CODE, checkServiceStack, releaseServiceStack, readServiceStackStatus, resolvePreferences, buildElectronAppChecksumsUrl, OnboardingBlanketChoice, PreferenceKey, LlmSource, applyLlmSourceSelection, describeStackMismatch, local_exports, ELECTRON_APP_CHECKSUMS_ASSET_NAME, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl } from './chunk-
|
|
1
|
+
import { __export, getLogger, TelemetryEnvironment, getConfig, createChildLogger, buildElectronAppReleaseAssetUrl, getActiveRuntimeTarget, getAuthService, hasApiKey, getElectronAppVersion, getElectronAppDir, getPlatformKey, reconcileProjectPreferences, getDataDir2, 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, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, buildLlmSourcePlan, describeLlmSourceStatus, resolveLlmSourceStatus, e2e_exports, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, claimServiceStack, BUSY_EXIT_CODE, checkServiceStack, releaseServiceStack, readServiceStackStatus, resolvePreferences, buildElectronAppChecksumsUrl, OnboardingBlanketChoice, PreferenceKey, LlmSource, applyLlmSourceSelection, describeStackMismatch, local_exports, ELECTRON_APP_CHECKSUMS_ASSET_NAME, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl } from './chunk-VTGELNSG.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';
|
|
@@ -1375,7 +1375,7 @@ async function resolveGsScreenshotUrls(report, opts) {
|
|
|
1375
1375
|
if (gsUrls.length === 0) {
|
|
1376
1376
|
return report;
|
|
1377
1377
|
}
|
|
1378
|
-
const mcps = await import('./src-
|
|
1378
|
+
const mcps = await import('./src-MRBTJCCI.js');
|
|
1379
1379
|
const credentials = await mcps.getCallerCredentialsAsync();
|
|
1380
1380
|
if (!credentials.bearerToken && !credentials.apiKey) {
|
|
1381
1381
|
stderrWrite(
|
|
@@ -2943,6 +2943,7 @@ function getHelpGuidance() {
|
|
|
2943
2943
|
"",
|
|
2944
2944
|
` ${colorize("Local Runs:", COLORS.bold)}`,
|
|
2945
2945
|
` ${cmd("muggle scan --local")} Scan a site for use-case candidates in the local Studio`,
|
|
2946
|
+
` ${cmd("muggle generate --local")} Generate a test script in the local Studio and upload the run`,
|
|
2946
2947
|
"",
|
|
2947
2948
|
` ${colorize("Inspecting Runs:", COLORS.bold)}`,
|
|
2948
2949
|
` ${cmd("muggle run-view")} Show a run's steps beside the frames they produced`,
|
|
@@ -3963,6 +3964,217 @@ async function llmSourceCommand(options) {
|
|
|
3963
3964
|
await runLlmSourceStep();
|
|
3964
3965
|
}
|
|
3965
3966
|
|
|
3967
|
+
// src/cli/local/local-generate-constants.ts
|
|
3968
|
+
var LOCAL_FLAG_REQUIRED_MESSAGE = "Only local generation is supported from the CLI: pass --local to run it in the local Studio.";
|
|
3969
|
+
var LOCAL_GENERATE_COMMAND_LOG_LEVEL = "warn";
|
|
3970
|
+
var LOCAL_GENERATE_CANCEL_SIGNALS = ["SIGINT", "SIGTERM"];
|
|
3971
|
+
var COPIED_TEST_CASE_FIELDS = [
|
|
3972
|
+
"id",
|
|
3973
|
+
"title",
|
|
3974
|
+
"description",
|
|
3975
|
+
"goal",
|
|
3976
|
+
"expectedResult",
|
|
3977
|
+
"precondition",
|
|
3978
|
+
"url",
|
|
3979
|
+
"projectId",
|
|
3980
|
+
"useCaseId",
|
|
3981
|
+
"displayOptions",
|
|
3982
|
+
"pinnedAccount",
|
|
3983
|
+
"alwaysStartsFreshSession"
|
|
3984
|
+
];
|
|
3985
|
+
|
|
3986
|
+
// src/cli/local/local-generate-args.ts
|
|
3987
|
+
function requireNonEmptyOption(params) {
|
|
3988
|
+
const trimmedValue = params.value?.trim() ?? "";
|
|
3989
|
+
if (trimmedValue === "") {
|
|
3990
|
+
throw new Error(`${params.flagName} is required.`);
|
|
3991
|
+
}
|
|
3992
|
+
return trimmedValue;
|
|
3993
|
+
}
|
|
3994
|
+
function parseTimeoutMs(rawTimeoutMs) {
|
|
3995
|
+
if (rawTimeoutMs === void 0) {
|
|
3996
|
+
return void 0;
|
|
3997
|
+
}
|
|
3998
|
+
const timeoutMs = Number(rawTimeoutMs);
|
|
3999
|
+
if (!Number.isInteger(timeoutMs) || timeoutMs <= 0) {
|
|
4000
|
+
throw new Error(`--timeout-ms must be a positive integer, got '${rawTimeoutMs}'.`);
|
|
4001
|
+
}
|
|
4002
|
+
return timeoutMs;
|
|
4003
|
+
}
|
|
4004
|
+
function parseLocalGenerateArgs(options) {
|
|
4005
|
+
if (options.local !== true) {
|
|
4006
|
+
throw new Error(LOCAL_FLAG_REQUIRED_MESSAGE);
|
|
4007
|
+
}
|
|
4008
|
+
return {
|
|
4009
|
+
projectId: requireNonEmptyOption({ value: options.projectId, flagName: "--project-id" }),
|
|
4010
|
+
testCaseId: requireNonEmptyOption({ value: options.testCaseId, flagName: "--test-case-id" }),
|
|
4011
|
+
isLightMode: options.light === true,
|
|
4012
|
+
isUiShown: options.showUi === true,
|
|
4013
|
+
...options.timeoutMs !== void 0 ? { timeoutMs: parseTimeoutMs(options.timeoutMs) } : {},
|
|
4014
|
+
isJsonOutput: options.json === true
|
|
4015
|
+
};
|
|
4016
|
+
}
|
|
4017
|
+
|
|
4018
|
+
// src/cli/local/local-generate-remote.ts
|
|
4019
|
+
async function callRemoteToolAsync(params) {
|
|
4020
|
+
const toolResult = await e2e_exports.executeQaTool(params.toolName, params.toolInput, params.correlationId);
|
|
4021
|
+
const payload = JSON.parse(String(toolResult.content));
|
|
4022
|
+
if (toolResult.isError) {
|
|
4023
|
+
throw new Error(`${params.toolName} failed: ${payload.message ?? String(toolResult.content)}`);
|
|
4024
|
+
}
|
|
4025
|
+
return payload;
|
|
4026
|
+
}
|
|
4027
|
+
async function fetchRemoteTestCaseAsync(params) {
|
|
4028
|
+
return await callRemoteToolAsync({
|
|
4029
|
+
toolName: e2e_exports.TEST_CASE_GET_TOOL_NAME,
|
|
4030
|
+
toolInput: { testCaseId: params.testCaseId },
|
|
4031
|
+
correlationId: params.correlationId
|
|
4032
|
+
});
|
|
4033
|
+
}
|
|
4034
|
+
|
|
4035
|
+
// src/cli/local/local-generate-test-case.ts
|
|
4036
|
+
function toGenerationTestCase(params) {
|
|
4037
|
+
const { remoteTestCase } = params;
|
|
4038
|
+
if (remoteTestCase.projectId !== params.expectedProjectId) {
|
|
4039
|
+
throw new Error(
|
|
4040
|
+
`Test case ${String(remoteTestCase.id)} belongs to project ${String(remoteTestCase.projectId)}, not ${params.expectedProjectId}.`
|
|
4041
|
+
);
|
|
4042
|
+
}
|
|
4043
|
+
if (typeof remoteTestCase.url !== "string" || remoteTestCase.url.trim() === "") {
|
|
4044
|
+
throw new Error(`Test case ${String(remoteTestCase.id)} has no URL to generate against.`);
|
|
4045
|
+
}
|
|
4046
|
+
const copiedFields = {};
|
|
4047
|
+
for (const fieldName of COPIED_TEST_CASE_FIELDS) {
|
|
4048
|
+
const fieldValue = remoteTestCase[fieldName];
|
|
4049
|
+
const isKeptNull = fieldName === "pinnedAccount" && fieldValue === null;
|
|
4050
|
+
if (fieldValue !== void 0 && (fieldValue !== null || isKeptNull)) {
|
|
4051
|
+
copiedFields[fieldName] = fieldValue;
|
|
4052
|
+
}
|
|
4053
|
+
}
|
|
4054
|
+
return local_exports.TestCaseDetailsSchema.parse(copiedFields);
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
// src/cli/local/local-generate.ts
|
|
4058
|
+
function toErrorMessage(error) {
|
|
4059
|
+
return error instanceof Error ? error.message : String(error);
|
|
4060
|
+
}
|
|
4061
|
+
function toErrorHeadline(message) {
|
|
4062
|
+
return message.split("\n").find((line) => line.trim() !== "")?.trim() ?? message;
|
|
4063
|
+
}
|
|
4064
|
+
function resolveStoredStatus(storedStatus) {
|
|
4065
|
+
switch (storedStatus) {
|
|
4066
|
+
case "passed" /* Passed */:
|
|
4067
|
+
return "passed" /* Passed */;
|
|
4068
|
+
case "failed" /* Failed */:
|
|
4069
|
+
return "failed" /* Failed */;
|
|
4070
|
+
case "cancelled" /* Cancelled */:
|
|
4071
|
+
return "cancelled" /* Cancelled */;
|
|
4072
|
+
default:
|
|
4073
|
+
return "error" /* Error */;
|
|
4074
|
+
}
|
|
4075
|
+
}
|
|
4076
|
+
function cancelActiveGenerations() {
|
|
4077
|
+
for (const activeExecution of local_exports.listActiveExecutions()) {
|
|
4078
|
+
local_exports.cancelExecution({ runId: activeExecution.runId });
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
async function runLocalGenerateAsync(params) {
|
|
4082
|
+
const { args } = params;
|
|
4083
|
+
const correlationId = randomUUID();
|
|
4084
|
+
const buildResult = (resultFields) => ({
|
|
4085
|
+
status: resultFields.status,
|
|
4086
|
+
runId: resultFields.runId,
|
|
4087
|
+
testCaseId: args.testCaseId,
|
|
4088
|
+
actionScriptId: resultFields.actionScriptId,
|
|
4089
|
+
testScriptId: resultFields.testScriptId,
|
|
4090
|
+
durationMs: Date.now() - params.commandStartedAt,
|
|
4091
|
+
error: resultFields.error
|
|
4092
|
+
});
|
|
4093
|
+
for (const signal of LOCAL_GENERATE_CANCEL_SIGNALS) {
|
|
4094
|
+
process.on(signal, cancelActiveGenerations);
|
|
4095
|
+
}
|
|
4096
|
+
try {
|
|
4097
|
+
const remoteTestCase = await fetchRemoteTestCaseAsync({ testCaseId: args.testCaseId, correlationId });
|
|
4098
|
+
const testCase = toGenerationTestCase({ remoteTestCase, expectedProjectId: args.projectId });
|
|
4099
|
+
const toolResult = await local_exports.executeTool(
|
|
4100
|
+
local_exports.EXECUTE_TEST_GENERATION_TOOL_NAME,
|
|
4101
|
+
{
|
|
4102
|
+
testCase,
|
|
4103
|
+
localUrl: testCase.url,
|
|
4104
|
+
cwd: process.cwd(),
|
|
4105
|
+
showUi: args.isUiShown,
|
|
4106
|
+
lightMode: args.isLightMode,
|
|
4107
|
+
...args.timeoutMs !== void 0 ? { timeoutMs: args.timeoutMs } : {}
|
|
4108
|
+
},
|
|
4109
|
+
correlationId
|
|
4110
|
+
);
|
|
4111
|
+
const generationRun = toolResult.data;
|
|
4112
|
+
if (!generationRun?.id) {
|
|
4113
|
+
return buildResult({
|
|
4114
|
+
status: "error" /* Error */,
|
|
4115
|
+
runId: null,
|
|
4116
|
+
actionScriptId: null,
|
|
4117
|
+
testScriptId: null,
|
|
4118
|
+
error: toErrorHeadline(toolResult.content)
|
|
4119
|
+
});
|
|
4120
|
+
}
|
|
4121
|
+
const storedRun = local_exports.getRunResultStorageService().getRunResult(generationRun.id);
|
|
4122
|
+
const status = resolveStoredStatus(storedRun?.status ?? generationRun.status);
|
|
4123
|
+
const actionScriptId = storedRun?.cloudActionScriptId ?? null;
|
|
4124
|
+
const testScriptId = storedRun?.cloudTestScriptId ?? null;
|
|
4125
|
+
const failureMessage = storedRun?.errorMessage ?? generationRun.errorMessage;
|
|
4126
|
+
return buildResult({
|
|
4127
|
+
status,
|
|
4128
|
+
runId: generationRun.id,
|
|
4129
|
+
actionScriptId,
|
|
4130
|
+
testScriptId,
|
|
4131
|
+
error: status === "passed" /* Passed */ ? null : toErrorHeadline(failureMessage ?? `Run ended ${status}.`)
|
|
4132
|
+
});
|
|
4133
|
+
} catch (error) {
|
|
4134
|
+
return buildResult({
|
|
4135
|
+
status: "error" /* Error */,
|
|
4136
|
+
runId: null,
|
|
4137
|
+
actionScriptId: null,
|
|
4138
|
+
testScriptId: null,
|
|
4139
|
+
error: toErrorHeadline(toErrorMessage(error))
|
|
4140
|
+
});
|
|
4141
|
+
} finally {
|
|
4142
|
+
for (const signal of LOCAL_GENERATE_CANCEL_SIGNALS) {
|
|
4143
|
+
process.off(signal, cancelActiveGenerations);
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
4147
|
+
function renderLocalGenerateText(generationOutcome) {
|
|
4148
|
+
return [
|
|
4149
|
+
`Generation ${generationOutcome.status} (target ${getActiveRuntimeTarget()})`,
|
|
4150
|
+
` Test case: ${generationOutcome.testCaseId}`,
|
|
4151
|
+
` Local run: ${generationOutcome.runId ?? "none"}`,
|
|
4152
|
+
` Action script: ${generationOutcome.actionScriptId ?? "not published"}`,
|
|
4153
|
+
` Test script: ${generationOutcome.testScriptId ?? "not uploaded"}`,
|
|
4154
|
+
` Duration: ${generationOutcome.durationMs}ms`,
|
|
4155
|
+
...generationOutcome.error ? [` Error: ${generationOutcome.error}`] : []
|
|
4156
|
+
].join("\n");
|
|
4157
|
+
}
|
|
4158
|
+
async function generateCommand(options) {
|
|
4159
|
+
const commandStartedAt = Date.now();
|
|
4160
|
+
let args;
|
|
4161
|
+
try {
|
|
4162
|
+
args = parseLocalGenerateArgs(options);
|
|
4163
|
+
} catch (error) {
|
|
4164
|
+
console.error(toErrorMessage(error));
|
|
4165
|
+
process.exitCode = 1;
|
|
4166
|
+
return;
|
|
4167
|
+
}
|
|
4168
|
+
getLogger().level = LOCAL_GENERATE_COMMAND_LOG_LEVEL;
|
|
4169
|
+
const generationOutcome = await runLocalGenerateAsync({ args, commandStartedAt });
|
|
4170
|
+
process.stdout.write(
|
|
4171
|
+
args.isJsonOutput ? `${JSON.stringify(generationOutcome)}
|
|
4172
|
+
` : `${renderLocalGenerateText(generationOutcome)}
|
|
4173
|
+
`
|
|
4174
|
+
);
|
|
4175
|
+
process.exitCode = 0;
|
|
4176
|
+
}
|
|
4177
|
+
|
|
3966
4178
|
// src/cli/local/local-scan-constants.ts
|
|
3967
4179
|
var DEFAULT_LOCAL_SCAN_MAX_CANDIDATES = 30;
|
|
3968
4180
|
var LOCAL_SCAN_COMMAND_LOG_LEVEL = "warn";
|
|
@@ -8097,6 +8309,7 @@ function createProgram() {
|
|
|
8097
8309
|
stack.command("release").description("Give up this checkout's lease and place in line").option("--cwd <dir>", "Directory inside the checkout (default: the current directory)").option("--json", "Print the result as JSON").action(stackReleaseCommand);
|
|
8098
8310
|
stack.command("status").description("Show every lease, the line, and the services prepare tracks").option("--json", "Print the full report as JSON").action(stackStatusCommand);
|
|
8099
8311
|
program.command("scan").description("Scan a site for use-case candidates; reports candidates, never approves them").option("--local", "Run the scan in the local Studio on the model source you chose (muggle llm-source)").requiredOption("--project-id <id>", "Cloud project the candidates belong to").requiredOption("--url <siteUrl>", "Site URL the scan starts from").option("--max-candidates <n>", "Stop once the scan has found this many candidates (default 30)").option("--timeout-ms <n>", "Stop the scan after this long, keeping what it found (default 1800000)").option("--show-ui", "Show the Studio window").option("--json", "Print the report as one JSON line").action(localScanCommand);
|
|
8312
|
+
program.command("generate").description("Generate a test script for one cloud test case; with --local the local Studio runs it and uploads the run").option("--local", "Run in the local Studio on the model source you chose (muggle llm-source); required for now").requiredOption("--project-id <id>", "Project the test case belongs to").requiredOption("--test-case-id <id>", "Test case to generate a script for").option("--light", "Run the prediction agent on the light (Sonnet) tier").option("--show-ui", "Show the Studio window (the showElectronBrowser preference can override)").option("--timeout-ms <n>", "Run time limit in milliseconds (default: the generation default)").option("--json", "Print the result as one JSON line").action(generateCommand);
|
|
8100
8313
|
program.command("ci-install").description("Add the Muggle walkthrough check to this repository's GitHub Actions").option("--force", "Replace an existing workflow file").action(ciInstallCommand);
|
|
8101
8314
|
const watch = program.command("watch").description("Standing watch over Claude/Codex sessions, their processes, and PR watchers");
|
|
8102
8315
|
watch.command("tick").description("Run one watch pass (the scheduled task runs this)").option("--no-auto-reload", "Do not start a plugin reload fan-out when installed plugins change").option("--no-recovery", "Report dead watchers without resuming their owner sessions").option("--no-remote-control", "Report sessions off Remote Control without restarting them").option("--no-limit-resume", "Report sessions a usage limit cut off without continuing them").option("--no-mcp-recover", "Report sessions whose Muggle MCP server is gone without restarting them").option("--json", "Print the full snapshot as JSON").action(watchTickCommand);
|
|
@@ -6685,6 +6685,7 @@ var e2e_exports = {};
|
|
|
6685
6685
|
__export(e2e_exports, {
|
|
6686
6686
|
PRICING_GET_TOOL_NAME: () => PRICING_GET_TOOL_NAME,
|
|
6687
6687
|
STRIPE_MINOR_UNITS_PER_MAJOR_UNIT: () => STRIPE_MINOR_UNITS_PER_MAJOR_UNIT,
|
|
6688
|
+
TEST_CASE_GET_TOOL_NAME: () => TEST_CASE_GET_TOOL_NAME,
|
|
6688
6689
|
USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME: () => USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME,
|
|
6689
6690
|
WALLET_PACKAGES_PATH: () => WALLET_PACKAGES_PATH,
|
|
6690
6691
|
allQaToolDefinitions: () => allQaToolDefinitions,
|
|
@@ -8297,7 +8298,8 @@ function mapWalletPackageList(response) {
|
|
|
8297
8298
|
};
|
|
8298
8299
|
}
|
|
8299
8300
|
|
|
8300
|
-
// packages/mcps/src/mcp/tools/e2e/
|
|
8301
|
+
// packages/mcps/src/mcp/tools/e2e/tool-name-constants.ts
|
|
8302
|
+
var TEST_CASE_GET_TOOL_NAME = "muggle-remote-test-case-get";
|
|
8301
8303
|
var USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME = "muggle-remote-use-case-discovery-memory-get";
|
|
8302
8304
|
|
|
8303
8305
|
// packages/mcps/src/mcp/tools/e2e/project-display-resolutions-constants.ts
|
|
@@ -8950,7 +8952,7 @@ var testCaseTools = [
|
|
|
8950
8952
|
}
|
|
8951
8953
|
},
|
|
8952
8954
|
{
|
|
8953
|
-
name:
|
|
8955
|
+
name: TEST_CASE_GET_TOOL_NAME,
|
|
8954
8956
|
description: "Get details of a specific test case.",
|
|
8955
8957
|
inputSchema: TestCaseGetInputSchema,
|
|
8956
8958
|
entityReferenceFields: [TEST_CASE_ID_REFERENCE_FIELD],
|
|
@@ -10775,6 +10777,7 @@ function safeTrack(event) {
|
|
|
10775
10777
|
// packages/mcps/src/mcp/tools/local/index.ts
|
|
10776
10778
|
var local_exports = {};
|
|
10777
10779
|
__export(local_exports, {
|
|
10780
|
+
EXECUTE_TEST_GENERATION_TOOL_NAME: () => EXECUTE_TEST_GENERATION_TOOL_NAME,
|
|
10778
10781
|
allLocalQaTools: () => allLocalQaTools,
|
|
10779
10782
|
executeTool: () => executeTool,
|
|
10780
10783
|
getTool: () => getTool
|
|
@@ -10984,6 +10987,9 @@ function writeLastHost(cwd, host) {
|
|
|
10984
10987
|
function clearLastHost(cwd) {
|
|
10985
10988
|
clearCwdEntry(LAST_HOST_CACHE, cwd);
|
|
10986
10989
|
}
|
|
10990
|
+
|
|
10991
|
+
// packages/mcps/src/mcp/tools/local/tool-name-constants.ts
|
|
10992
|
+
var EXECUTE_TEST_GENERATION_TOOL_NAME = "muggle-local-execute-test-generation";
|
|
10987
10993
|
var REFUSING_VERDICTS = /* @__PURE__ */ new Set([
|
|
10988
10994
|
"PEER_LEASE" /* PeerLease */,
|
|
10989
10995
|
"STALE" /* Stale */,
|
|
@@ -11452,7 +11458,7 @@ function formatRunViewUrlLine(runId) {
|
|
|
11452
11458
|
return formatViewUrlLine(getRunResultStorageService().getRunResult(runId)?.viewUrl);
|
|
11453
11459
|
}
|
|
11454
11460
|
var executeTestGenerationTool = {
|
|
11455
|
-
name:
|
|
11461
|
+
name: EXECUTE_TEST_GENERATION_TOOL_NAME,
|
|
11456
11462
|
description: `Generate an end-to-end (E2E) acceptance test script by launching a real browser against your web app. The browser navigates your app, executes the test case steps (like signing up, filling forms, clicking through flows), and produces a replayable test script with screenshots. Use this to create new browser tests for any user flow. Requires a test case (from muggle-remote-test-case-get) and a localhost URL. ${TEST_CASE_LIMIT_GUIDANCE} Launches an Electron browser \u2014 the user's showElectronBrowser preference decides whether its window shows when set to always or never; under ask it defaults to a visible window and showUi: false runs it headless.`,
|
|
11457
11463
|
inputSchema: ExecuteTestGenerationInputSchema,
|
|
11458
11464
|
execute: async (ctx) => {
|
|
@@ -11968,6 +11974,7 @@ __export(e2e_exports2, {
|
|
|
11968
11974
|
SecretTypeEnum: () => SecretTypeEnum,
|
|
11969
11975
|
SecretUpdateInputSchema: () => SecretUpdateInputSchema,
|
|
11970
11976
|
StripePaymentMethodIdSchema: () => StripePaymentMethodIdSchema,
|
|
11977
|
+
TEST_CASE_GET_TOOL_NAME: () => TEST_CASE_GET_TOOL_NAME,
|
|
11971
11978
|
TestCaseAncestorsGetInputSchema: () => TestCaseAncestorsGetInputSchema,
|
|
11972
11979
|
TestCaseCreateInputSchema: () => TestCaseCreateInputSchema,
|
|
11973
11980
|
TestCaseDeleteInputSchema: () => TestCaseDeleteInputSchema,
|
|
@@ -12068,6 +12075,7 @@ __export(local_exports2, {
|
|
|
12068
12075
|
DeviceCodePollStatus: () => DeviceCodePollStatus,
|
|
12069
12076
|
DisplayResolution: () => DisplayResolution,
|
|
12070
12077
|
DisplayResolutionSchema: () => DisplayResolutionSchema,
|
|
12078
|
+
EXECUTE_TEST_GENERATION_TOOL_NAME: () => EXECUTE_TEST_GENERATION_TOOL_NAME,
|
|
12071
12079
|
EmptyInputSchema: () => EmptyInputSchema2,
|
|
12072
12080
|
EventTelemetryEmitInputSchema: () => EventTelemetryEmitInputSchema,
|
|
12073
12081
|
ExecuteReplayInputSchema: () => ExecuteReplayInputSchema,
|
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-2GSA5O6H.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-VTGELNSG.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
3
|
"description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
|
|
4
|
-
"version": "5.38.0-staging.
|
|
4
|
+
"version": "5.38.0-staging.353",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
7
7
|
"email": "support@muggle-ai.com"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "muggle",
|
|
3
3
|
"displayName": "Muggle AI",
|
|
4
4
|
"description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
|
|
5
|
-
"version": "5.38.0-staging.
|
|
5
|
+
"version": "5.38.0-staging.353",
|
|
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
|
-
"release": "5.38.0-staging.
|
|
3
|
-
"buildId": "run-
|
|
4
|
-
"commitSha": "
|
|
2
|
+
"release": "5.38.0-staging.353",
|
|
3
|
+
"buildId": "run-353-1",
|
|
4
|
+
"commitSha": "1f8c1b3b8d364c5afbe9f3d86984fa296550aae2",
|
|
5
5
|
"buildTime": "2026-11-12T07:45:22Z",
|
|
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, BUSY_EXIT_CODE, CLAUDE_CODE_AUTH_STATUS_ARGS, CLAUDE_CODE_CHECK_TIMEOUT_MS, CLAUDE_CODE_EXECUTABLE, CLAUDE_CODE_EXECUTABLE_NOT_FOUND_CODE, CLAUDE_CODE_SESSION_LINK_ENV_VARS, CLAUDE_CODE_VERSION_ARGS, CheckoutFreshnessVerdict, ClaudeCodeReadiness, DEFAULT_LOCAL_LLM_BASE_URL, DEFAULT_PREFERENCES, ELECTRON_APP_CHECKSUMS_ASSET_NAME, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ELECTRON_APP_RESOURCES_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, LLM_CREDENTIALS_FILE_MODE, LLM_CREDENTIALS_FILE_NAME, LLM_SOURCE_HEADER, LLM_SOURCE_OPTIONS, LLM_SOURCE_OWNED_ENV_NAMES, LLM_SOURCE_PROMPT, LLM_SOURCE_SCOPE_NOTE, LlmSource, MASKED_API_KEY_PREFIX, MASKED_API_KEY_VISIBLE_CHARS, 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, StackCheckVerdict, StackClaimVerdict, StackLeaseEndReason, StackMismatchKind, StackPortAction, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyLlmSourceSelection, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildLlmSourcePlan, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, checkServiceStack, claimServiceStack, compareQueuePlaces, completeOnboarding, createApiKeyWithToken, createChildLogger, decideStackClaim, decideStackReap, decideStackRelease, decideStackRunEnd, decideStackRunStart, deleteApiKeyData, deleteCredentials, describeLlmSourceStatus, describeStackMismatch, e2e_exports as e2e, evaluateCheckoutFreshness, findVacatedNeeds, finishStackRun, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLlmSourceOption, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, isValidLocalBaseUrl, loadApiKeyData, loadCredentials, local_exports as localQa, lookUpCheckoutPullRequest, markOnboardingCompleted, maskLlmApiKey, mcp_exports as mcp, needsConflict, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, portOfUrl, e2e_exports as qa, readPreferencesMetadata, readRunView, readServiceStackStatus, reapServiceStack, reconcileProjectPreferences, recordOnboardingSkip, releaseServiceStack, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveElectronAppResourcesDir, resolveLlmSourceStatus, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, startStackRun, stopVacatedServices, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writeLlmEnvBlock, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-
|
|
1
|
+
export { ACTION_SCRIPT_FILE_NAME, BASE_REMOTE_NAME, BLOCKING_FRESHNESS_VERDICTS, BRANCH_CREATION_REFLOG_PREFIX, BUSY_EXIT_CODE, CLAUDE_CODE_AUTH_STATUS_ARGS, CLAUDE_CODE_CHECK_TIMEOUT_MS, CLAUDE_CODE_EXECUTABLE, CLAUDE_CODE_EXECUTABLE_NOT_FOUND_CODE, CLAUDE_CODE_SESSION_LINK_ENV_VARS, CLAUDE_CODE_VERSION_ARGS, CheckoutFreshnessVerdict, ClaudeCodeReadiness, DEFAULT_LOCAL_LLM_BASE_URL, DEFAULT_PREFERENCES, ELECTRON_APP_CHECKSUMS_ASSET_NAME, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ELECTRON_APP_RESOURCES_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, LLM_CREDENTIALS_FILE_MODE, LLM_CREDENTIALS_FILE_NAME, LLM_SOURCE_HEADER, LLM_SOURCE_OPTIONS, LLM_SOURCE_OWNED_ENV_NAMES, LLM_SOURCE_PROMPT, LLM_SOURCE_SCOPE_NOTE, LlmSource, MASKED_API_KEY_PREFIX, MASKED_API_KEY_VISIBLE_CHARS, 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, StackCheckVerdict, StackClaimVerdict, StackLeaseEndReason, StackMismatchKind, StackPortAction, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyLlmSourceSelection, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildLlmSourcePlan, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, checkServiceStack, claimServiceStack, compareQueuePlaces, completeOnboarding, createApiKeyWithToken, createChildLogger, decideStackClaim, decideStackReap, decideStackRelease, decideStackRunEnd, decideStackRunStart, deleteApiKeyData, deleteCredentials, describeLlmSourceStatus, describeStackMismatch, e2e_exports as e2e, evaluateCheckoutFreshness, findVacatedNeeds, finishStackRun, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLlmSourceOption, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, isValidLocalBaseUrl, loadApiKeyData, loadCredentials, local_exports as localQa, lookUpCheckoutPullRequest, markOnboardingCompleted, maskLlmApiKey, mcp_exports as mcp, needsConflict, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, portOfUrl, e2e_exports as qa, readPreferencesMetadata, readRunView, readServiceStackStatus, reapServiceStack, reconcileProjectPreferences, recordOnboardingSkip, releaseServiceStack, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveElectronAppResourcesDir, resolveLlmSourceStatus, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, startStackRun, stopVacatedServices, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writeLlmEnvBlock, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-VTGELNSG.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muggleai/works",
|
|
3
3
|
"mcpName": "io.github.multiplex-ai/muggleai",
|
|
4
|
-
"version": "5.38.0-staging.
|
|
4
|
+
"version": "5.38.0-staging.353",
|
|
5
5
|
"description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
3
|
"description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
|
|
4
|
-
"version": "5.38.0-staging.
|
|
4
|
+
"version": "5.38.0-staging.353",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
7
7
|
"email": "support@muggle-ai.com"
|
package/plugin/.codex-mcp.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "muggle",
|
|
3
3
|
"displayName": "Muggle AI",
|
|
4
4
|
"description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
|
|
5
|
-
"version": "5.38.0-staging.
|
|
5
|
+
"version": "5.38.0-staging.353",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|