@muggleai/works 5.38.0-staging.351 → 5.38.0-staging.352
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-OIFLV2QN.js → chunk-2TQOTPI6.js} +115 -2
- package/dist/{chunk-RMPZ7ZQC.js → chunk-B2EO5MBE.js} +164 -11
- 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-5Z6EIGHT.js → src-52YXGHOV.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
|
@@ -3194,6 +3194,12 @@ function escapeRegex(str) {
|
|
|
3194
3194
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3195
3195
|
}
|
|
3196
3196
|
|
|
3197
|
+
// packages/mcps/src/mcp/local/services/website-scan-constants.ts
|
|
3198
|
+
var WEBSITE_SCAN_WORKFLOW_TYPE = "Website Scan Workflow";
|
|
3199
|
+
var WEBSITE_SCAN_GOAL = "If login is possible, explore the post-login content to discover business-critical user stories. Look for navigation bar and menus to explore every pages of the website, until I tell you to stop.";
|
|
3200
|
+
var WEBSITE_SCAN_PRECONDITION = "Try to 'register an new account' or 'log in' with managed profile or user-provided credentials; Must clear all dialogs, popups, tutorial, and notifications that block the main content first.";
|
|
3201
|
+
var WEBSITE_SCAN_EXPECTED_RESULT = "Logged in successfully and explored the website until I tell you to stop.";
|
|
3202
|
+
|
|
3197
3203
|
// packages/mcps/src/mcp/local/services/action-script-builders.ts
|
|
3198
3204
|
function getRequiredStringField(params) {
|
|
3199
3205
|
const value = params.source[params.fieldName];
|
|
@@ -3278,6 +3284,36 @@ function buildGenerationActionScript(params) {
|
|
|
3278
3284
|
status: "active"
|
|
3279
3285
|
};
|
|
3280
3286
|
}
|
|
3287
|
+
function buildWebsiteScanActionScript(params) {
|
|
3288
|
+
const scanName = `Local Website Scan ${params.url}`;
|
|
3289
|
+
return {
|
|
3290
|
+
actionScriptId: params.runId,
|
|
3291
|
+
actionScriptName: scanName,
|
|
3292
|
+
actionType: "Exploratory",
|
|
3293
|
+
actionParams: {
|
|
3294
|
+
type: WEBSITE_SCAN_WORKFLOW_TYPE,
|
|
3295
|
+
name: scanName,
|
|
3296
|
+
ownerId: params.ownerUserId,
|
|
3297
|
+
projectId: params.projectId,
|
|
3298
|
+
workflowRunId: params.runId,
|
|
3299
|
+
useCaseDiscoverMemoryId: params.useCaseDiscoverMemoryId,
|
|
3300
|
+
targetUseCaseCandidateCount: params.targetUseCaseCandidateCount,
|
|
3301
|
+
// Resolved server-side per project; the MCP has no client-side source for it.
|
|
3302
|
+
sharedTestMemoryId: "",
|
|
3303
|
+
runEnvironmentType: "local"
|
|
3304
|
+
},
|
|
3305
|
+
goal: WEBSITE_SCAN_GOAL,
|
|
3306
|
+
url: params.url,
|
|
3307
|
+
description: scanName,
|
|
3308
|
+
precondition: WEBSITE_SCAN_PRECONDITION,
|
|
3309
|
+
expectedResult: WEBSITE_SCAN_EXPECTED_RESULT,
|
|
3310
|
+
steps: [],
|
|
3311
|
+
ownerId: params.ownerUserId,
|
|
3312
|
+
createdAt: Date.now(),
|
|
3313
|
+
isRemoteScript: false,
|
|
3314
|
+
status: "active"
|
|
3315
|
+
};
|
|
3316
|
+
}
|
|
3281
3317
|
function buildReplayActionScript(params) {
|
|
3282
3318
|
const testScriptRecord = params.testScript;
|
|
3283
3319
|
const projectId = getRequiredStringField({
|
|
@@ -3393,6 +3429,7 @@ function describeStoppedRun(params) {
|
|
|
3393
3429
|
// packages/mcps/src/mcp/local/services/execution-timeout-constants.ts
|
|
3394
3430
|
var DEFAULT_GENERATION_TIMEOUT_MS = 3e5;
|
|
3395
3431
|
var DEFAULT_REPLAY_TIMEOUT_MS = 18e4;
|
|
3432
|
+
var DEFAULT_WEBSITE_SCAN_TIMEOUT_MS = 18e5;
|
|
3396
3433
|
|
|
3397
3434
|
// packages/mcps/src/shared/queue-priority/queue-priority-constants.ts
|
|
3398
3435
|
var PR_LOOKUP_TIMEOUT_MS = 1e4;
|
|
@@ -3695,6 +3732,14 @@ async function readStudioBuildAsync(params) {
|
|
|
3695
3732
|
}
|
|
3696
3733
|
}
|
|
3697
3734
|
|
|
3735
|
+
// packages/mcps/src/mcp/local/services/website-scan-types.ts
|
|
3736
|
+
var WebsiteScanExitEnum = /* @__PURE__ */ ((WebsiteScanExitEnum2) => {
|
|
3737
|
+
WebsiteScanExitEnum2["Completed"] = "completed";
|
|
3738
|
+
WebsiteScanExitEnum2["TimedOut"] = "timed_out";
|
|
3739
|
+
WebsiteScanExitEnum2["Failed"] = "failed";
|
|
3740
|
+
return WebsiteScanExitEnum2;
|
|
3741
|
+
})(WebsiteScanExitEnum || {});
|
|
3742
|
+
|
|
3698
3743
|
// packages/mcps/src/mcp/local/services/execution-service.ts
|
|
3699
3744
|
var logger5 = getLogger();
|
|
3700
3745
|
function extractStudioCloudRefs(studioReturnedResult) {
|
|
@@ -3978,7 +4023,7 @@ function resolveFailedRunStatus(executionResult) {
|
|
|
3978
4023
|
return executionResult.stopReason !== void 0 ? resolveStoppedRunStatus(executionResult.stopReason) : "failed";
|
|
3979
4024
|
}
|
|
3980
4025
|
async function executeElectronAppAsync(params) {
|
|
3981
|
-
const mode = params.runType === "
|
|
4026
|
+
const mode = params.runType === "replay" ? "engine" : "explore";
|
|
3982
4027
|
const electronAppPath = requireElectronAppPath(params.electronAppPath);
|
|
3983
4028
|
const spawnArgs = [mode, params.scriptFilePath, params.mutationsFilePath ?? "", params.authFilePath];
|
|
3984
4029
|
if (params.showUi) {
|
|
@@ -4462,6 +4507,66 @@ async function runReplayLocked(params) {
|
|
|
4462
4507
|
};
|
|
4463
4508
|
}
|
|
4464
4509
|
}
|
|
4510
|
+
async function executeWebsiteScan(params) {
|
|
4511
|
+
const timeoutMs = params.timeoutMs ?? DEFAULT_WEBSITE_SCAN_TIMEOUT_MS;
|
|
4512
|
+
const lockHandle = await acquireLocalExecutionLock({ cwd: params.cwd, runTimeoutMs: timeoutMs });
|
|
4513
|
+
try {
|
|
4514
|
+
return await runWebsiteScanLocked({ ...params, timeoutMs });
|
|
4515
|
+
} finally {
|
|
4516
|
+
await lockHandle.release();
|
|
4517
|
+
}
|
|
4518
|
+
}
|
|
4519
|
+
async function runWebsiteScanLocked(params) {
|
|
4520
|
+
const runId = randomUUID();
|
|
4521
|
+
const startedAt = Date.now();
|
|
4522
|
+
const authContent = await buildStudioAuthContentAsync();
|
|
4523
|
+
const inputFilePath = await writeTempFile({
|
|
4524
|
+
filename: `${runId}_input.json`,
|
|
4525
|
+
data: buildWebsiteScanActionScript({
|
|
4526
|
+
projectId: params.projectId,
|
|
4527
|
+
url: params.url,
|
|
4528
|
+
runId,
|
|
4529
|
+
ownerUserId: authContent.userId,
|
|
4530
|
+
useCaseDiscoverMemoryId: params.useCaseDiscoverMemoryId,
|
|
4531
|
+
targetUseCaseCandidateCount: params.targetUseCaseCandidateCount
|
|
4532
|
+
})
|
|
4533
|
+
});
|
|
4534
|
+
const authFilePath = await writeTempFile({ filename: `${runId}_auth.json`, data: authContent });
|
|
4535
|
+
try {
|
|
4536
|
+
const executionResult = await executeElectronAppAsync({
|
|
4537
|
+
runId,
|
|
4538
|
+
runType: "websiteScan",
|
|
4539
|
+
electronAppPath: resolveElectronAppPathOrNull(),
|
|
4540
|
+
scriptFilePath: inputFilePath,
|
|
4541
|
+
authFilePath,
|
|
4542
|
+
timeoutMs: params.timeoutMs,
|
|
4543
|
+
showUi: params.showUi
|
|
4544
|
+
});
|
|
4545
|
+
await writeExecutionLogs({ runId, stdout: executionResult.stdout, stderr: executionResult.stderr });
|
|
4546
|
+
const durationMs = Date.now() - startedAt;
|
|
4547
|
+
if (executionResult.stopReason === "timeout" /* Timeout */) {
|
|
4548
|
+
return { runId, exit: "timed_out" /* TimedOut */, durationMs, failureMessage: null };
|
|
4549
|
+
}
|
|
4550
|
+
if (executionResult.exitCode !== 0 || executionResult.stopReason !== void 0) {
|
|
4551
|
+
return {
|
|
4552
|
+
runId,
|
|
4553
|
+
exit: "failed" /* Failed */,
|
|
4554
|
+
durationMs,
|
|
4555
|
+
failureMessage: describeElectronFailure({ executionResult, timeoutMs: params.timeoutMs })
|
|
4556
|
+
};
|
|
4557
|
+
}
|
|
4558
|
+
return { runId, exit: "completed" /* Completed */, durationMs, failureMessage: null };
|
|
4559
|
+
} catch (error) {
|
|
4560
|
+
return {
|
|
4561
|
+
runId,
|
|
4562
|
+
exit: "failed" /* Failed */,
|
|
4563
|
+
durationMs: Date.now() - startedAt,
|
|
4564
|
+
failureMessage: error instanceof Error ? error.message : String(error)
|
|
4565
|
+
};
|
|
4566
|
+
} finally {
|
|
4567
|
+
await cleanupTempFiles({ filePaths: [inputFilePath, authFilePath] });
|
|
4568
|
+
}
|
|
4569
|
+
}
|
|
4465
4570
|
function cancelExecution(params) {
|
|
4466
4571
|
const process2 = activeProcesses.get(params.runId);
|
|
4467
4572
|
if (!process2) {
|
|
@@ -6580,6 +6685,7 @@ var e2e_exports = {};
|
|
|
6580
6685
|
__export(e2e_exports, {
|
|
6581
6686
|
PRICING_GET_TOOL_NAME: () => PRICING_GET_TOOL_NAME,
|
|
6582
6687
|
STRIPE_MINOR_UNITS_PER_MAJOR_UNIT: () => STRIPE_MINOR_UNITS_PER_MAJOR_UNIT,
|
|
6688
|
+
USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME: () => USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME,
|
|
6583
6689
|
WALLET_PACKAGES_PATH: () => WALLET_PACKAGES_PATH,
|
|
6584
6690
|
allQaToolDefinitions: () => allQaToolDefinitions,
|
|
6585
6691
|
executeQaTool: () => executeQaTool,
|
|
@@ -8191,6 +8297,9 @@ function mapWalletPackageList(response) {
|
|
|
8191
8297
|
};
|
|
8192
8298
|
}
|
|
8193
8299
|
|
|
8300
|
+
// packages/mcps/src/mcp/tools/e2e/use-case-discovery-constants.ts
|
|
8301
|
+
var USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME = "muggle-remote-use-case-discovery-memory-get";
|
|
8302
|
+
|
|
8194
8303
|
// packages/mcps/src/mcp/tools/e2e/project-display-resolutions-constants.ts
|
|
8195
8304
|
var KNOWN_DISPLAY_RESOLUTIONS = new Set(Object.values(DisplayResolution));
|
|
8196
8305
|
var KNOWN_RUN_STRATEGIES = new Set(Object.values(RunStrategy));
|
|
@@ -8646,7 +8755,7 @@ var projectTools = [
|
|
|
8646
8755
|
];
|
|
8647
8756
|
var useCaseTools = [
|
|
8648
8757
|
{
|
|
8649
|
-
name:
|
|
8758
|
+
name: USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME,
|
|
8650
8759
|
description: "Get the use case discovery memory for a project, including all discovered use case candidates.",
|
|
8651
8760
|
inputSchema: UseCaseDiscoveryMemoryGetInputSchema,
|
|
8652
8761
|
mapToUpstream: (input) => {
|
|
@@ -11889,6 +11998,7 @@ __export(e2e_exports2, {
|
|
|
11889
11998
|
TestStateUpdateInputSchema: () => TestStateUpdateInputSchema,
|
|
11890
11999
|
TokenPackageIdSchema: () => TokenPackageIdSchema,
|
|
11891
12000
|
TokenUsageFilterTypeSchema: () => TokenUsageFilterTypeSchema,
|
|
12001
|
+
USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME: () => USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME,
|
|
11892
12002
|
UseCaseCandidatesApproveInputSchema: () => UseCaseCandidatesApproveInputSchema,
|
|
11893
12003
|
UseCaseCreateFromPromptsInputSchema: () => UseCaseCreateFromPromptsInputSchema,
|
|
11894
12004
|
UseCaseCreateInputSchema: () => UseCaseCreateInputSchema,
|
|
@@ -11954,6 +12064,7 @@ __export(local_exports2, {
|
|
|
11954
12064
|
CancelExecutionInputSchema: () => CancelExecutionInputSchema,
|
|
11955
12065
|
CleanupSessionsInputSchema: () => CleanupSessionsInputSchema,
|
|
11956
12066
|
CloudMappingEntityType: () => CloudMappingEntityType,
|
|
12067
|
+
DEFAULT_WEBSITE_SCAN_TIMEOUT_MS: () => DEFAULT_WEBSITE_SCAN_TIMEOUT_MS,
|
|
11957
12068
|
DeviceCodePollStatus: () => DeviceCodePollStatus,
|
|
11958
12069
|
DisplayResolution: () => DisplayResolution,
|
|
11959
12070
|
DisplayResolutionSchema: () => DisplayResolutionSchema,
|
|
@@ -11991,6 +12102,7 @@ __export(local_exports2, {
|
|
|
11991
12102
|
TestScriptDetailsSchema: () => TestScriptDetailsSchema,
|
|
11992
12103
|
TestScriptGetInputSchema: () => TestScriptGetInputSchema2,
|
|
11993
12104
|
TestScriptListInputSchema: () => TestScriptListInputSchema2,
|
|
12105
|
+
WebsiteScanExitEnum: () => WebsiteScanExitEnum,
|
|
11994
12106
|
WorkflowEventType: () => WorkflowEventType,
|
|
11995
12107
|
acquireLocalExecutionLock: () => acquireLocalExecutionLock,
|
|
11996
12108
|
allLocalQaTools: () => allLocalQaTools,
|
|
@@ -11999,6 +12111,7 @@ __export(local_exports2, {
|
|
|
11999
12111
|
executeReplay: () => executeReplay,
|
|
12000
12112
|
executeTestGeneration: () => executeTestGeneration,
|
|
12001
12113
|
executeTool: () => executeTool,
|
|
12114
|
+
executeWebsiteScan: () => executeWebsiteScan,
|
|
12002
12115
|
findRunCheckoutRefusal: () => findRunCheckoutRefusal,
|
|
12003
12116
|
getAuthService: () => getAuthService,
|
|
12004
12117
|
getLocalQaTools: () => getLocalQaTools,
|
|
@@ -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, ELECTRON_APP_CHECKSUMS_ASSET_NAME, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl
|
|
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-2TQOTPI6.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';
|
|
@@ -327,8 +327,8 @@ function createUnifiedMcpServer(options) {
|
|
|
327
327
|
errors: error.issues
|
|
328
328
|
});
|
|
329
329
|
const issueMessages = error.issues.slice(0, 3).map((issue) => {
|
|
330
|
-
const
|
|
331
|
-
return
|
|
330
|
+
const path9 = issue.path.join(".");
|
|
331
|
+
return path9 ? `'${path9}': ${issue.message}` : issue.message;
|
|
332
332
|
});
|
|
333
333
|
return {
|
|
334
334
|
content: [
|
|
@@ -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-52YXGHOV.js');
|
|
1379
1379
|
const credentials = await mcps.getCallerCredentialsAsync();
|
|
1380
1380
|
if (!credentials.bearerToken && !credentials.apiKey) {
|
|
1381
1381
|
stderrWrite(
|
|
@@ -1612,12 +1612,12 @@ var WORKFLOW_WRITING_OUTCOMES = /* @__PURE__ */ new Set([
|
|
|
1612
1612
|
"replaced" /* Replaced */
|
|
1613
1613
|
]);
|
|
1614
1614
|
var CI_INSTALL_MESSAGES = {
|
|
1615
|
-
["installed" /* Installed */]: (
|
|
1615
|
+
["installed" /* Installed */]: (path9) => `Wrote ${path9}
|
|
1616
1616
|
Commit it, and every pull request here will owe a settled Muggle AI walkthrough comment.`,
|
|
1617
|
-
["updated" /* Updated */]: (
|
|
1618
|
-
["already-current" /* AlreadyCurrent */]: (
|
|
1619
|
-
["kept-customized" /* KeptCustomized */]: (
|
|
1620
|
-
["replaced" /* Replaced */]: (
|
|
1617
|
+
["updated" /* Updated */]: (path9) => `Updated ${path9} from an earlier Muggle release to the current workflow. Commit it.`,
|
|
1618
|
+
["already-current" /* AlreadyCurrent */]: (path9) => `${path9} is already the current workflow \u2014 nothing to do.`,
|
|
1619
|
+
["kept-customized" /* KeptCustomized */]: (path9) => `${path9} has been edited since Muggle wrote it \u2014 left untouched. Re-run with --force to replace it.`,
|
|
1620
|
+
["replaced" /* Replaced */]: (path9) => `Replaced ${path9} with the current workflow. Commit it.`,
|
|
1621
1621
|
["not-a-repository" /* NotARepository */]: () => "Not a git repository \u2014 run this from the repo that should carry the check."
|
|
1622
1622
|
};
|
|
1623
1623
|
|
|
@@ -2873,8 +2873,8 @@ ${title}`, COLORS.bold + COLORS.cyan);
|
|
|
2873
2873
|
function cmd(cmd2) {
|
|
2874
2874
|
return colorize(cmd2, COLORS.green);
|
|
2875
2875
|
}
|
|
2876
|
-
function path4(
|
|
2877
|
-
return colorize(
|
|
2876
|
+
function path4(path9) {
|
|
2877
|
+
return colorize(path9, COLORS.yellow);
|
|
2878
2878
|
}
|
|
2879
2879
|
function getHelpGuidance() {
|
|
2880
2880
|
const lines = [
|
|
@@ -2941,6 +2941,9 @@ function getHelpGuidance() {
|
|
|
2941
2941
|
` ${cmd("muggle upgrade")} Check for updates`,
|
|
2942
2942
|
` ${cmd("muggle upgrade --check")} Check updates without installing`,
|
|
2943
2943
|
"",
|
|
2944
|
+
` ${colorize("Local Runs:", COLORS.bold)}`,
|
|
2945
|
+
` ${cmd("muggle scan --local")} Scan a site for use-case candidates in the local Studio`,
|
|
2946
|
+
"",
|
|
2944
2947
|
` ${colorize("Inspecting Runs:", COLORS.bold)}`,
|
|
2945
2948
|
` ${cmd("muggle run-view")} Show a run's steps beside the frames they produced`,
|
|
2946
2949
|
` ${cmd("muggle run-view --html")} Render those frames as a self-contained page`,
|
|
@@ -3960,6 +3963,155 @@ async function llmSourceCommand(options) {
|
|
|
3960
3963
|
await runLlmSourceStep();
|
|
3961
3964
|
}
|
|
3962
3965
|
|
|
3966
|
+
// src/cli/local/local-scan-constants.ts
|
|
3967
|
+
var DEFAULT_LOCAL_SCAN_MAX_CANDIDATES = 30;
|
|
3968
|
+
var LOCAL_SCAN_COMMAND_LOG_LEVEL = "warn";
|
|
3969
|
+
var SCAN_REQUIRES_LOCAL_FLAG_MESSAGE = "muggle scan runs in the local Studio only: pass --local. Cloud scans start from the dashboard or the Muggle MCP tools.";
|
|
3970
|
+
var DROPPED_CANDIDATE_STATUS = "dropped";
|
|
3971
|
+
var SIGNED_IN_FLOW_PATTERN = /\b(log ?in|logs in|logged[ -]in|logging in|sign[ -]?in|signs in|signed[ -]in|signing in|authenticated)\b/i;
|
|
3972
|
+
|
|
3973
|
+
// src/cli/local/website-scan-candidates.ts
|
|
3974
|
+
function parseLocalScanLimits(params) {
|
|
3975
|
+
return {
|
|
3976
|
+
maxCandidates: parsePositiveInteger({
|
|
3977
|
+
optionName: "--max-candidates",
|
|
3978
|
+
optionValue: params.maxCandidatesOption,
|
|
3979
|
+
defaultValue: DEFAULT_LOCAL_SCAN_MAX_CANDIDATES
|
|
3980
|
+
}),
|
|
3981
|
+
timeoutMs: parsePositiveInteger({
|
|
3982
|
+
optionName: "--timeout-ms",
|
|
3983
|
+
optionValue: params.timeoutMsOption,
|
|
3984
|
+
defaultValue: params.defaultTimeoutMs
|
|
3985
|
+
})
|
|
3986
|
+
};
|
|
3987
|
+
}
|
|
3988
|
+
function parsePositiveInteger(params) {
|
|
3989
|
+
if (params.optionValue === void 0) {
|
|
3990
|
+
return params.defaultValue;
|
|
3991
|
+
}
|
|
3992
|
+
const parsedValue = Number(params.optionValue);
|
|
3993
|
+
if (!Number.isInteger(parsedValue) || parsedValue <= 0) {
|
|
3994
|
+
throw new Error(`${params.optionName} must be a positive integer, got "${params.optionValue}".`);
|
|
3995
|
+
}
|
|
3996
|
+
return parsedValue;
|
|
3997
|
+
}
|
|
3998
|
+
function isSignedInFlow(useCase) {
|
|
3999
|
+
const searchableText = [
|
|
4000
|
+
useCase.title,
|
|
4001
|
+
useCase.description,
|
|
4002
|
+
useCase.userStory,
|
|
4003
|
+
JSON.stringify(useCase.useCaseBreakdown ?? [])
|
|
4004
|
+
].join("\n");
|
|
4005
|
+
return SIGNED_IN_FLOW_PATTERN.test(searchableText);
|
|
4006
|
+
}
|
|
4007
|
+
function listCandidatesAddedByScan(params) {
|
|
4008
|
+
return (params.memory?.useCaseCandidates ?? []).filter((candidate) => !params.baselineCandidateIds.has(candidate.id)).sort((first, second) => (first.createdAt ?? 0) - (second.createdAt ?? 0));
|
|
4009
|
+
}
|
|
4010
|
+
function toReportCandidates(params) {
|
|
4011
|
+
return params.addedCandidates.filter((candidate) => candidate.status.toLowerCase() !== DROPPED_CANDIDATE_STATUS).slice(0, params.maxCandidates).map((candidate) => ({
|
|
4012
|
+
title: candidate.useCase.title ?? "",
|
|
4013
|
+
description: candidate.useCase.description ?? "",
|
|
4014
|
+
startUrl: candidate.useCase.url || params.siteUrl,
|
|
4015
|
+
requiresSignIn: isSignedInFlow(candidate.useCase)
|
|
4016
|
+
}));
|
|
4017
|
+
}
|
|
4018
|
+
function resolveLocalScanStatus(params) {
|
|
4019
|
+
if (params.exit === local_exports.WebsiteScanExitEnum.Failed) {
|
|
4020
|
+
return "error" /* Error */;
|
|
4021
|
+
}
|
|
4022
|
+
if (params.exit === local_exports.WebsiteScanExitEnum.TimedOut || params.addedCandidateCount >= params.maxCandidates) {
|
|
4023
|
+
return "capped" /* Capped */;
|
|
4024
|
+
}
|
|
4025
|
+
return "finished" /* Finished */;
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
// src/cli/local/local-scan.ts
|
|
4029
|
+
async function readDiscoveryMemoryAsync(projectId) {
|
|
4030
|
+
const toolResult = await e2e_exports.executeQaTool(
|
|
4031
|
+
e2e_exports.USE_CASE_DISCOVERY_MEMORY_GET_TOOL_NAME,
|
|
4032
|
+
{ projectId },
|
|
4033
|
+
randomUUID()
|
|
4034
|
+
);
|
|
4035
|
+
if (toolResult.isError) {
|
|
4036
|
+
const failure = JSON.parse(String(toolResult.content));
|
|
4037
|
+
throw new Error(`Could not read the project's use-case discovery memory: ${failure.message ?? String(toolResult.content)}`);
|
|
4038
|
+
}
|
|
4039
|
+
return JSON.parse(String(toolResult.content)).memory;
|
|
4040
|
+
}
|
|
4041
|
+
function summarizeScanFailure(params) {
|
|
4042
|
+
const headline = (params.failureMessage ?? "Studio failed.").split("\n")[0];
|
|
4043
|
+
const logsDir = path2.join(local_exports.getStorageService().getSessionsDir(), params.runId);
|
|
4044
|
+
return `${headline} Studio logs: ${logsDir}`;
|
|
4045
|
+
}
|
|
4046
|
+
async function runLocalScanAsync(options) {
|
|
4047
|
+
const startedAt = Date.now();
|
|
4048
|
+
try {
|
|
4049
|
+
const limits = parseLocalScanLimits({
|
|
4050
|
+
maxCandidatesOption: options.maxCandidates,
|
|
4051
|
+
timeoutMsOption: options.timeoutMs,
|
|
4052
|
+
defaultTimeoutMs: local_exports.DEFAULT_WEBSITE_SCAN_TIMEOUT_MS
|
|
4053
|
+
});
|
|
4054
|
+
const memoryBeforeScan = await readDiscoveryMemoryAsync(options.projectId);
|
|
4055
|
+
const baselineCandidateIds = new Set((memoryBeforeScan?.useCaseCandidates ?? []).map((candidate) => candidate.id));
|
|
4056
|
+
const scanResult = await local_exports.executeWebsiteScan({
|
|
4057
|
+
projectId: options.projectId,
|
|
4058
|
+
url: options.url,
|
|
4059
|
+
cwd: process.cwd(),
|
|
4060
|
+
useCaseDiscoverMemoryId: memoryBeforeScan?.id ?? randomUUID(),
|
|
4061
|
+
// Studio stops at a total memory count, so the existing candidates are added to the cap.
|
|
4062
|
+
targetUseCaseCandidateCount: baselineCandidateIds.size + limits.maxCandidates,
|
|
4063
|
+
timeoutMs: limits.timeoutMs,
|
|
4064
|
+
showUi: options.showUi
|
|
4065
|
+
});
|
|
4066
|
+
const addedCandidates = listCandidatesAddedByScan({
|
|
4067
|
+
memory: await readDiscoveryMemoryAsync(options.projectId),
|
|
4068
|
+
baselineCandidateIds
|
|
4069
|
+
});
|
|
4070
|
+
const status = resolveLocalScanStatus({
|
|
4071
|
+
exit: scanResult.exit,
|
|
4072
|
+
addedCandidateCount: addedCandidates.length,
|
|
4073
|
+
maxCandidates: limits.maxCandidates
|
|
4074
|
+
});
|
|
4075
|
+
return {
|
|
4076
|
+
status,
|
|
4077
|
+
candidates: toReportCandidates({
|
|
4078
|
+
addedCandidates,
|
|
4079
|
+
maxCandidates: limits.maxCandidates,
|
|
4080
|
+
siteUrl: options.url
|
|
4081
|
+
}),
|
|
4082
|
+
durationMs: Date.now() - startedAt,
|
|
4083
|
+
error: status === "error" /* Error */ ? summarizeScanFailure({ failureMessage: scanResult.failureMessage, runId: scanResult.runId }) : null
|
|
4084
|
+
};
|
|
4085
|
+
} catch (error) {
|
|
4086
|
+
return {
|
|
4087
|
+
status: "error" /* Error */,
|
|
4088
|
+
candidates: [],
|
|
4089
|
+
durationMs: Date.now() - startedAt,
|
|
4090
|
+
error: error instanceof Error ? error.message : String(error)
|
|
4091
|
+
};
|
|
4092
|
+
}
|
|
4093
|
+
}
|
|
4094
|
+
function renderLocalScanText(report) {
|
|
4095
|
+
const lines = [`Scan ${report.status}: ${report.candidates.length} candidate(s) in ${Math.round(report.durationMs / 1e3)}s`];
|
|
4096
|
+
if (report.error) {
|
|
4097
|
+
lines.push(report.error);
|
|
4098
|
+
}
|
|
4099
|
+
for (const candidate of report.candidates) {
|
|
4100
|
+
lines.push(` - ${candidate.title}${candidate.requiresSignIn ? " (signed in)" : ""} ${candidate.startUrl}`);
|
|
4101
|
+
}
|
|
4102
|
+
return lines.join("\n");
|
|
4103
|
+
}
|
|
4104
|
+
async function localScanCommand(options) {
|
|
4105
|
+
if (!options.local) {
|
|
4106
|
+
console.error(SCAN_REQUIRES_LOCAL_FLAG_MESSAGE);
|
|
4107
|
+
process.exitCode = 1;
|
|
4108
|
+
return;
|
|
4109
|
+
}
|
|
4110
|
+
getLogger().level = LOCAL_SCAN_COMMAND_LOG_LEVEL;
|
|
4111
|
+
const report = await runLocalScanAsync(options);
|
|
4112
|
+
console.log(options.json ? JSON.stringify(report) : renderLocalScanText(report));
|
|
4113
|
+
}
|
|
4114
|
+
|
|
3963
4115
|
// src/cli/login.ts
|
|
3964
4116
|
var logger4 = getLogger();
|
|
3965
4117
|
async function loginCommand(options) {
|
|
@@ -7944,6 +8096,7 @@ function createProgram() {
|
|
|
7944
8096
|
stack.command("check").description("Check that the stack still serves what this checkout claimed; only runs keep the lease alive").option("--cwd <dir>", "Directory inside the checkout (default: the current directory)").option("--port <port>", "Port the run will target").option("--json", "Print the full report as JSON").action(stackCheckCommand);
|
|
7945
8097
|
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);
|
|
7946
8098
|
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
|
+
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);
|
|
7947
8100
|
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);
|
|
7948
8101
|
const watch = program.command("watch").description("Standing watch over Claude/Codex sessions, their processes, and PR watchers");
|
|
7949
8102
|
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);
|
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-B2EO5MBE.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-2TQOTPI6.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.352",
|
|
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.352",
|
|
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.352",
|
|
3
|
+
"buildId": "run-352-1",
|
|
4
|
+
"commitSha": "2f9d13e73df8ba17daf896e5035ac1ca353984a7",
|
|
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-2TQOTPI6.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.352",
|
|
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.352",
|
|
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.352",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|