@muggleai/works 5.24.0-staging.178 → 5.24.0-staging.179
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-JD4ZPKYY.js → chunk-FEHTWWVH.js} +20 -1
- package/dist/{chunk-OYZJAM3T.js → chunk-GLTZIZVT.js} +125 -46
- 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-3MQ2UWSP.js +1 -0
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-mcp.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.cursor-plugin/plugin.json +1 -1
- package/plugin/.mcp.json +1 -1
- package/dist/src-JZMOPMB4.js +0 -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.24.0-staging.
|
|
12
|
+
"version": "5.24.0-staging.179"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
}
|
|
@@ -64,6 +64,7 @@ __export(src_exports, {
|
|
|
64
64
|
applyOnboardingAnswers: () => applyOnboardingAnswers,
|
|
65
65
|
assertDeviceCodeClientProvisioned: () => assertDeviceCodeClientProvisioned,
|
|
66
66
|
buildElectronAppChecksumsUrl: () => buildElectronAppChecksumsUrl,
|
|
67
|
+
buildElectronAppDirName: () => buildElectronAppDirName,
|
|
67
68
|
buildElectronAppReleaseAssetUrl: () => buildElectronAppReleaseAssetUrl,
|
|
68
69
|
buildElectronAppReleaseTag: () => buildElectronAppReleaseTag,
|
|
69
70
|
buildOnboardingPlan: () => buildOnboardingPlan,
|
|
@@ -115,6 +116,7 @@ __export(src_exports, {
|
|
|
115
116
|
mcp: () => mcp_exports,
|
|
116
117
|
needsOnboarding: () => needsOnboarding,
|
|
117
118
|
openBrowserUrl: () => openBrowserUrl,
|
|
119
|
+
parseElectronAppDirName: () => parseElectronAppDirName,
|
|
118
120
|
performLogin: () => performLogin,
|
|
119
121
|
performLogout: () => performLogout,
|
|
120
122
|
pollDeviceCode: () => pollDeviceCode,
|
|
@@ -293,6 +295,9 @@ function resolveElectronAppExecutablePath(params) {
|
|
|
293
295
|
return path15.join(params.installDir, ...ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS[params.platformName]);
|
|
294
296
|
}
|
|
295
297
|
|
|
298
|
+
// packages/mcps/src/shared/electron-app-install-dir-constants.ts
|
|
299
|
+
var ELECTRON_APP_DIR_VERSION_PREFIX_PATTERN = /^\d+\.\d+\.\d+/;
|
|
300
|
+
|
|
296
301
|
// packages/mcps/src/shared/electron-app-install-dir.ts
|
|
297
302
|
function buildElectronAppDirName(params) {
|
|
298
303
|
if (params.releaseStream === "production" /* Production */) {
|
|
@@ -300,6 +305,20 @@ function buildElectronAppDirName(params) {
|
|
|
300
305
|
}
|
|
301
306
|
return `${params.version}-${params.releaseStream}`;
|
|
302
307
|
}
|
|
308
|
+
function parseElectronAppDirName(directoryName) {
|
|
309
|
+
const versionMatch = ELECTRON_APP_DIR_VERSION_PREFIX_PATTERN.exec(directoryName);
|
|
310
|
+
if (!versionMatch) {
|
|
311
|
+
return null;
|
|
312
|
+
}
|
|
313
|
+
const version = versionMatch[0];
|
|
314
|
+
const releaseStream = Object.values(ElectronAppReleaseStream).find(
|
|
315
|
+
(candidateStream) => buildElectronAppDirName({ version, releaseStream: candidateStream }) === directoryName
|
|
316
|
+
);
|
|
317
|
+
if (!releaseStream) {
|
|
318
|
+
return null;
|
|
319
|
+
}
|
|
320
|
+
return { version, releaseStream };
|
|
321
|
+
}
|
|
303
322
|
var DEV_MANIFEST = {
|
|
304
323
|
release: "dev",
|
|
305
324
|
buildId: "dev",
|
|
@@ -9152,4 +9171,4 @@ function applyOnboardingAnswers(answers, dataDirOverride2, now = /* @__PURE__ */
|
|
|
9152
9171
|
return { isCompleted: true, preferences: prefs };
|
|
9153
9172
|
}
|
|
9154
9173
|
|
|
9155
|
-
export { ACTION_SCRIPT_FILE_NAME, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, EventName, HTML_VIEW_OFFER_LINE, 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, ServiceName, Surface, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, __export, __require, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildOnboardingPlan, calculateFileChecksum, completeOnboarding, createApiKeyWithToken, createChildLogger, deleteApiKeyData, deleteCredentials, e2e_exports2 as e2e_exports, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDisclosureCopy, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, hasShownDisclosure, initTelemetry, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, loadApiKeyData, loadCredentials, local_exports2 as local_exports, markDisclosureShown, markOnboardingCompleted, mcp_exports, needsOnboarding, openBrowserUrl, performLogin, performLogout, pollDeviceCode, readPreferencesMetadata, readRunView, reconcileProjectPreferences, recordOnboardingSkip, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, saveApiKey, saveApiKeyData, saveCredentials, src_exports, startDeviceCodeFlow, toolRequiresAuth, track, validatePreference, verifyFileChecksum, writePreferences2 as writePreferences, writePreferencesWithMetadata, writeRunViewHtml };
|
|
9174
|
+
export { ACTION_SCRIPT_FILE_NAME, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, EventName, HTML_VIEW_OFFER_LINE, 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, ServiceName, Surface, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, __export, __require, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildOnboardingPlan, calculateFileChecksum, completeOnboarding, createApiKeyWithToken, createChildLogger, deleteApiKeyData, deleteCredentials, e2e_exports2 as e2e_exports, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDisclosureCopy, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, hasShownDisclosure, initTelemetry, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, loadApiKeyData, loadCredentials, local_exports2 as local_exports, markDisclosureShown, markOnboardingCompleted, mcp_exports, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, readPreferencesMetadata, readRunView, reconcileProjectPreferences, recordOnboardingSkip, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, saveApiKey, saveApiKeyData, saveCredentials, src_exports, startDeviceCodeFlow, toolRequiresAuth, track, validatePreference, verifyFileChecksum, writePreferences2 as writePreferences, writePreferencesWithMetadata, writeRunViewHtml };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { __export, getLogger, getConfig, createChildLogger, buildElectronAppReleaseAssetUrl, getActiveRuntimeTarget, getAuthService, hasApiKey, getElectronAppVersion, getElectronAppDir, getPlatformKey, reconcileProjectPreferences, getDataDir, 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, toolRequiresAuth, getCallerCredentials, getElectronAppReleaseTagPrefix, hasShownDisclosure, markDisclosureShown, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, buildElectronAppChecksumsUrl, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, OnboardingBlanketChoice, PreferenceKey, resolvePreferences } from './chunk-
|
|
1
|
+
import { __export, getLogger, getConfig, createChildLogger, buildElectronAppReleaseAssetUrl, getActiveRuntimeTarget, getAuthService, hasApiKey, getElectronAppVersion, getElectronAppDir, getPlatformKey, reconcileProjectPreferences, getDataDir, 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, toolRequiresAuth, getCallerCredentials, parseElectronAppDirName, getElectronAppReleaseTagPrefix, hasShownDisclosure, markDisclosureShown, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, ElectronAppReleaseStream, buildElectronAppChecksumsUrl, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, OnboardingBlanketChoice, PreferenceKey, resolvePreferences } from './chunk-FEHTWWVH.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';
|
|
5
5
|
import { z, ZodError } from 'zod';
|
|
6
6
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
7
7
|
import * as fs from 'fs';
|
|
8
|
-
import { readFileSync, existsSync, rmSync, mkdirSync, readdirSync, createWriteStream, writeFileSync, statSync } from 'fs';
|
|
8
|
+
import { readFileSync, existsSync, rmSync, mkdirSync, readdirSync, createWriteStream, writeFileSync, statSync, readlinkSync, realpathSync } from 'fs';
|
|
9
9
|
import * as path from 'path';
|
|
10
10
|
import { dirname, resolve, join } from 'path';
|
|
11
11
|
import { fileURLToPath, pathToFileURL } from 'url';
|
|
@@ -1042,7 +1042,7 @@ async function resolveGsScreenshotUrls(report, opts) {
|
|
|
1042
1042
|
if (gsUrls.length === 0) {
|
|
1043
1043
|
return report;
|
|
1044
1044
|
}
|
|
1045
|
-
const mcps = await import('./src-
|
|
1045
|
+
const mcps = await import('./src-3MQ2UWSP.js');
|
|
1046
1046
|
const credentials = await mcps.getCallerCredentialsAsync();
|
|
1047
1047
|
if (!credentials.bearerToken && !credentials.apiKey) {
|
|
1048
1048
|
stderrWrite(
|
|
@@ -1246,7 +1246,6 @@ function ciInstallCommand(flags) {
|
|
|
1246
1246
|
if (report.outcome === "not-a-repository" /* NotARepository */) process.exitCode = 1;
|
|
1247
1247
|
}
|
|
1248
1248
|
var logger2 = getLogger();
|
|
1249
|
-
var ELECTRON_APP_DIR = "electron-app";
|
|
1250
1249
|
var CURSOR_SKILLS_DIR = ".cursor";
|
|
1251
1250
|
var CURSOR_SKILLS_SUBDIR = "skills";
|
|
1252
1251
|
var MUGGLE_SKILL_PREFIX = "muggle";
|
|
@@ -1265,7 +1264,7 @@ function loadMuggleAliasSkills() {
|
|
|
1265
1264
|
var MUGGLE_ALIAS_SKILLS = loadMuggleAliasSkills();
|
|
1266
1265
|
var INSTALL_MANIFEST_FILE = "install-manifest.json";
|
|
1267
1266
|
function getElectronAppBaseDir() {
|
|
1268
|
-
return path.
|
|
1267
|
+
return path.dirname(getElectronAppDir());
|
|
1269
1268
|
}
|
|
1270
1269
|
function getCursorSkillsDir() {
|
|
1271
1270
|
return path.join(homedir(), CURSOR_SKILLS_DIR, CURSOR_SKILLS_SUBDIR);
|
|
@@ -1392,9 +1391,44 @@ function compareVersions(a, b) {
|
|
|
1392
1391
|
}
|
|
1393
1392
|
return 0;
|
|
1394
1393
|
}
|
|
1394
|
+
function compareInstallsByStreamThenVersion(first, second) {
|
|
1395
|
+
const releaseStreams = Object.values(ElectronAppReleaseStream);
|
|
1396
|
+
const streamOrder = releaseStreams.indexOf(first.releaseStream) - releaseStreams.indexOf(second.releaseStream);
|
|
1397
|
+
if (streamOrder !== 0) {
|
|
1398
|
+
return streamOrder;
|
|
1399
|
+
}
|
|
1400
|
+
return compareVersions(second.version, first.version);
|
|
1401
|
+
}
|
|
1402
|
+
function resolveInstallKind(entry, entryPath) {
|
|
1403
|
+
if (entry.isDirectory()) {
|
|
1404
|
+
return "directory" /* Directory */;
|
|
1405
|
+
}
|
|
1406
|
+
if (!entry.isSymbolicLink()) {
|
|
1407
|
+
return null;
|
|
1408
|
+
}
|
|
1409
|
+
try {
|
|
1410
|
+
return statSync(entryPath).isDirectory() ? "link" /* Link */ : "broken-link" /* BrokenLink */;
|
|
1411
|
+
} catch {
|
|
1412
|
+
return "broken-link" /* BrokenLink */;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
function readLinkTarget(linkPath) {
|
|
1416
|
+
try {
|
|
1417
|
+
return readlinkSync(linkPath);
|
|
1418
|
+
} catch {
|
|
1419
|
+
return void 0;
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
function resolveCanonicalPath(entryPath) {
|
|
1423
|
+
try {
|
|
1424
|
+
return realpathSync.native(entryPath);
|
|
1425
|
+
} catch {
|
|
1426
|
+
return entryPath;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1395
1429
|
function listInstalledVersions() {
|
|
1396
1430
|
const baseDir = getElectronAppBaseDir();
|
|
1397
|
-
const
|
|
1431
|
+
const activeDirectoryName = path.basename(getElectronAppDir());
|
|
1398
1432
|
const versions = [];
|
|
1399
1433
|
if (!existsSync(baseDir)) {
|
|
1400
1434
|
return versions;
|
|
@@ -1402,40 +1436,60 @@ function listInstalledVersions() {
|
|
|
1402
1436
|
try {
|
|
1403
1437
|
const entries = readdirSync(baseDir, { withFileTypes: true });
|
|
1404
1438
|
for (const entry of entries) {
|
|
1405
|
-
|
|
1439
|
+
const installDirName = parseElectronAppDirName(entry.name);
|
|
1440
|
+
if (!installDirName) {
|
|
1406
1441
|
continue;
|
|
1407
1442
|
}
|
|
1408
|
-
|
|
1443
|
+
const versionPath = path.join(baseDir, entry.name);
|
|
1444
|
+
const installKind = resolveInstallKind(entry, versionPath);
|
|
1445
|
+
if (!installKind) {
|
|
1409
1446
|
continue;
|
|
1410
1447
|
}
|
|
1411
|
-
const
|
|
1412
|
-
const sizeBytes = getDirectorySize(versionPath);
|
|
1448
|
+
const isDirectory = installKind === "directory" /* Directory */;
|
|
1413
1449
|
versions.push({
|
|
1414
|
-
|
|
1450
|
+
directoryName: entry.name,
|
|
1451
|
+
version: installDirName.version,
|
|
1452
|
+
releaseStream: installDirName.releaseStream,
|
|
1415
1453
|
path: versionPath,
|
|
1416
|
-
|
|
1417
|
-
|
|
1454
|
+
kind: installKind,
|
|
1455
|
+
linkTarget: isDirectory ? void 0 : readLinkTarget(versionPath),
|
|
1456
|
+
sizeBytes: isDirectory ? getDirectorySize(versionPath) : 0,
|
|
1457
|
+
isActive: entry.name === activeDirectoryName
|
|
1418
1458
|
});
|
|
1419
1459
|
}
|
|
1420
1460
|
} catch (error) {
|
|
1421
1461
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
1422
1462
|
logger2.warn("Failed to list installed versions", { error: errorMessage });
|
|
1423
1463
|
}
|
|
1424
|
-
versions.sort(
|
|
1464
|
+
versions.sort(compareInstallsByStreamThenVersion);
|
|
1425
1465
|
return versions;
|
|
1426
1466
|
}
|
|
1467
|
+
function selectStreamDirectories(installs, releaseStream) {
|
|
1468
|
+
return installs.filter(
|
|
1469
|
+
(install) => install.releaseStream === releaseStream && install.kind === "directory" /* Directory */
|
|
1470
|
+
);
|
|
1471
|
+
}
|
|
1472
|
+
function resolveLinkedDirectoryPaths(installs) {
|
|
1473
|
+
return new Set(
|
|
1474
|
+
installs.filter((install) => install.kind === "link" /* Link */).map((install) => resolveCanonicalPath(install.path))
|
|
1475
|
+
);
|
|
1476
|
+
}
|
|
1427
1477
|
function cleanupOldVersions(options = {}) {
|
|
1428
1478
|
const { all = false, dryRun = false } = options;
|
|
1429
|
-
const
|
|
1479
|
+
const installs = listInstalledVersions();
|
|
1480
|
+
const linkedDirectoryPaths = resolveLinkedDirectoryPaths(installs);
|
|
1430
1481
|
const removed = [];
|
|
1431
1482
|
let freedBytes = 0;
|
|
1432
1483
|
const versionsToKeep = all ? 1 : 2;
|
|
1433
1484
|
let keptCount = 0;
|
|
1434
|
-
for (const version of
|
|
1435
|
-
if (version.
|
|
1485
|
+
for (const version of selectStreamDirectories(installs, getActiveElectronAppReleaseStream())) {
|
|
1486
|
+
if (version.isActive) {
|
|
1436
1487
|
keptCount++;
|
|
1437
1488
|
continue;
|
|
1438
1489
|
}
|
|
1490
|
+
if (linkedDirectoryPaths.has(resolveCanonicalPath(version.path))) {
|
|
1491
|
+
continue;
|
|
1492
|
+
}
|
|
1439
1493
|
if (keptCount < versionsToKeep) {
|
|
1440
1494
|
keptCount++;
|
|
1441
1495
|
continue;
|
|
@@ -1444,13 +1498,13 @@ function cleanupOldVersions(options = {}) {
|
|
|
1444
1498
|
try {
|
|
1445
1499
|
rmSync(version.path, { recursive: true, force: true });
|
|
1446
1500
|
logger2.info("Removed old version", {
|
|
1447
|
-
version: version.
|
|
1501
|
+
version: version.directoryName,
|
|
1448
1502
|
freedBytes: version.sizeBytes
|
|
1449
1503
|
});
|
|
1450
1504
|
} catch (error) {
|
|
1451
1505
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
1452
1506
|
logger2.error("Failed to remove version", {
|
|
1453
|
-
version: version.
|
|
1507
|
+
version: version.directoryName,
|
|
1454
1508
|
error: errorMessage
|
|
1455
1509
|
});
|
|
1456
1510
|
continue;
|
|
@@ -1461,47 +1515,72 @@ function cleanupOldVersions(options = {}) {
|
|
|
1461
1515
|
}
|
|
1462
1516
|
return { removed, freedBytes };
|
|
1463
1517
|
}
|
|
1518
|
+
function formatInstallLabel(install) {
|
|
1519
|
+
return `v${install.version} [${install.releaseStream}]`;
|
|
1520
|
+
}
|
|
1521
|
+
function formatLinkTarget(install) {
|
|
1522
|
+
return install.linkTarget ?? "(unreadable target)";
|
|
1523
|
+
}
|
|
1524
|
+
function formatInstallListing(install) {
|
|
1525
|
+
const activeMarker = install.isActive ? " (active)" : "";
|
|
1526
|
+
const location = install.kind === "link" /* Link */ ? `-> ${formatLinkTarget(install)}` : `- ${formatBytes(install.sizeBytes)}`;
|
|
1527
|
+
return `${formatInstallLabel(install)}${activeMarker} ${location}`;
|
|
1528
|
+
}
|
|
1464
1529
|
async function versionsCommand() {
|
|
1465
1530
|
console.log("\nInstalled Electron App Versions");
|
|
1466
1531
|
console.log("================================\n");
|
|
1467
|
-
const
|
|
1468
|
-
|
|
1532
|
+
const installs = listInstalledVersions();
|
|
1533
|
+
const launchableInstalls = installs.filter((install) => install.kind !== "broken-link" /* BrokenLink */);
|
|
1534
|
+
const brokenLinks = installs.filter((install) => install.kind === "broken-link" /* BrokenLink */);
|
|
1535
|
+
if (launchableInstalls.length === 0) {
|
|
1469
1536
|
console.log("No versions installed.");
|
|
1470
1537
|
console.log("Run 'muggle setup' to download the Electron app.\n");
|
|
1471
|
-
|
|
1538
|
+
} else {
|
|
1539
|
+
for (const install of launchableInstalls) {
|
|
1540
|
+
console.log(` ${formatInstallListing(install)}`);
|
|
1541
|
+
}
|
|
1542
|
+
const directories = launchableInstalls.filter(
|
|
1543
|
+
(install) => install.kind === "directory" /* Directory */
|
|
1544
|
+
);
|
|
1545
|
+
const totalSize = directories.reduce((sizeSoFar, install) => sizeSoFar + install.sizeBytes, 0);
|
|
1546
|
+
console.log("");
|
|
1547
|
+
console.log(`Total: ${directories.length} version(s), ${formatBytes(totalSize)}`);
|
|
1548
|
+
console.log("");
|
|
1472
1549
|
}
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1550
|
+
if (brokenLinks.length > 0) {
|
|
1551
|
+
console.log("Broken links (target missing; nothing launches from them):");
|
|
1552
|
+
for (const brokenLink of brokenLinks) {
|
|
1553
|
+
const activeMarker = brokenLink.isActive ? " (active)" : "";
|
|
1554
|
+
console.log(` ${brokenLink.directoryName}${activeMarker} -> ${formatLinkTarget(brokenLink)}`);
|
|
1555
|
+
}
|
|
1556
|
+
console.log("");
|
|
1479
1557
|
}
|
|
1480
|
-
console.log("");
|
|
1481
|
-
console.log(`Total: ${versions.length} version(s), ${formatBytes(totalSize)}`);
|
|
1482
|
-
console.log("");
|
|
1483
1558
|
}
|
|
1484
1559
|
async function cleanupCommand(options) {
|
|
1485
1560
|
let totalFreedBytes = 0;
|
|
1486
1561
|
let totalRemovedCount = 0;
|
|
1487
1562
|
console.log("\nElectron App Cleanup");
|
|
1488
1563
|
console.log("====================\n");
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1564
|
+
const activeReleaseStream = getActiveElectronAppReleaseStream();
|
|
1565
|
+
const streamDirectories = selectStreamDirectories(listInstalledVersions(), activeReleaseStream);
|
|
1566
|
+
if (streamDirectories.length === 0) {
|
|
1567
|
+
console.log(`No ${activeReleaseStream} versions installed. Nothing to clean up.
|
|
1568
|
+
`);
|
|
1569
|
+
} else if (streamDirectories.length === 1) {
|
|
1570
|
+
console.log(`Only one ${activeReleaseStream} version is installed. Nothing to clean up.
|
|
1571
|
+
`);
|
|
1494
1572
|
} else {
|
|
1495
|
-
const
|
|
1496
|
-
const oldVersions =
|
|
1497
|
-
console.log(`
|
|
1498
|
-
console.log(`Old versions: ${oldVersions.length}`);
|
|
1573
|
+
const activeVersion = streamDirectories.find((v) => v.isActive);
|
|
1574
|
+
const oldVersions = streamDirectories.filter((v) => !v.isActive);
|
|
1575
|
+
console.log(`Active version: ${activeVersion ? formatInstallLabel(activeVersion) : "unknown"}`);
|
|
1576
|
+
console.log(`Old ${activeReleaseStream} versions: ${oldVersions.length}`);
|
|
1577
|
+
console.log("Other release streams and linked installs are left alone.");
|
|
1499
1578
|
console.log("");
|
|
1500
1579
|
if (options.dryRun) {
|
|
1501
1580
|
console.log("Dry run - showing what would be deleted:\n");
|
|
1502
1581
|
}
|
|
1503
|
-
const
|
|
1504
|
-
if (
|
|
1582
|
+
const versionCleanupOutcome = cleanupOldVersions(options);
|
|
1583
|
+
if (versionCleanupOutcome.removed.length === 0) {
|
|
1505
1584
|
if (options.all) {
|
|
1506
1585
|
console.log("No old versions to remove.\n");
|
|
1507
1586
|
} else {
|
|
@@ -1510,11 +1589,11 @@ async function cleanupCommand(options) {
|
|
|
1510
1589
|
}
|
|
1511
1590
|
} else {
|
|
1512
1591
|
console.log(options.dryRun ? "Would remove:" : "Removed:");
|
|
1513
|
-
for (const version of
|
|
1514
|
-
console.log(`
|
|
1592
|
+
for (const version of versionCleanupOutcome.removed) {
|
|
1593
|
+
console.log(` ${formatInstallLabel(version)} (${formatBytes(version.sizeBytes)})`);
|
|
1515
1594
|
}
|
|
1516
|
-
totalFreedBytes +=
|
|
1517
|
-
totalRemovedCount +=
|
|
1595
|
+
totalFreedBytes += versionCleanupOutcome.freedBytes;
|
|
1596
|
+
totalRemovedCount += versionCleanupOutcome.removed.length;
|
|
1518
1597
|
console.log("");
|
|
1519
1598
|
}
|
|
1520
1599
|
}
|
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-GLTZIZVT.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-FEHTWWVH.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.24.0-staging.
|
|
4
|
+
"version": "5.24.0-staging.179",
|
|
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.24.0-staging.
|
|
3
|
+
"version": "5.24.0-staging.179",
|
|
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.24.0-staging.
|
|
5
|
+
"version": "5.24.0-staging.179",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/dist/plugin/.mcp.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"release": "5.18.0",
|
|
3
|
-
"buildId": "run-
|
|
4
|
-
"commitSha": "
|
|
5
|
-
"buildTime": "2026-10-
|
|
3
|
+
"buildId": "run-179-1",
|
|
4
|
+
"commitSha": "ca07aa7cd59ad821268e29071be6cff177a23ce5",
|
|
5
|
+
"buildTime": "2026-10-23T06:10:12Z",
|
|
6
6
|
"serviceName": "muggle-ai-works-mcp"
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ACTION_SCRIPT_FILE_NAME, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, 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, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildOnboardingPlan, calculateFileChecksum, completeOnboarding, createApiKeyWithToken, createChildLogger, deleteApiKeyData, deleteCredentials, e2e_exports as e2e, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, loadApiKeyData, loadCredentials, local_exports as localQa, markOnboardingCompleted, mcp_exports as mcp, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, e2e_exports as qa, readPreferencesMetadata, readRunView, reconcileProjectPreferences, recordOnboardingSkip, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, toolRequiresAuth, validatePreference, verifyFileChecksum, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-FEHTWWVH.js';
|
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.24.0-staging.
|
|
4
|
+
"version": "5.24.0-staging.179",
|
|
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.24.0-staging.
|
|
4
|
+
"version": "5.24.0-staging.179",
|
|
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.24.0-staging.
|
|
3
|
+
"version": "5.24.0-staging.179",
|
|
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.24.0-staging.
|
|
5
|
+
"version": "5.24.0-staging.179",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/plugin/.mcp.json
CHANGED
package/dist/src-JZMOPMB4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ACTION_SCRIPT_FILE_NAME, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, 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, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildOnboardingPlan, calculateFileChecksum, completeOnboarding, createApiKeyWithToken, createChildLogger, deleteApiKeyData, deleteCredentials, e2e_exports as e2e, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, loadApiKeyData, loadCredentials, local_exports as localQa, markOnboardingCompleted, mcp_exports as mcp, needsOnboarding, openBrowserUrl, performLogin, performLogout, pollDeviceCode, e2e_exports as qa, readPreferencesMetadata, readRunView, reconcileProjectPreferences, recordOnboardingSkip, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, toolRequiresAuth, validatePreference, verifyFileChecksum, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-JD4ZPKYY.js';
|