@muggleai/works 5.24.0-staging.177 → 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.
@@ -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.177"
12
+ "version": "5.24.0-staging.179"
13
13
  }
14
14
  ]
15
15
  }
@@ -11,8 +11,8 @@ import winston from 'winston';
11
11
  import { exec, spawn } from 'child_process';
12
12
  import axios, { AxiosError } from 'axios';
13
13
  import * as fs13 from 'fs/promises';
14
- import AppInsights from 'applicationinsights';
15
14
  import { z } from 'zod';
15
+ import AppInsights from 'applicationinsights';
16
16
 
17
17
  var __defProp = Object.defineProperty;
18
18
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
@@ -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",
@@ -2699,6 +2718,15 @@ function applyLlmEnvOverrides(baseEnv, dataDirOverride2) {
2699
2718
  }
2700
2719
  return { env: baseEnv, appliedNames };
2701
2720
  }
2721
+ var RunEnvironment = /* @__PURE__ */ ((RunEnvironment2) => {
2722
+ RunEnvironment2["Local"] = "local";
2723
+ RunEnvironment2["Remote"] = "remote";
2724
+ return RunEnvironment2;
2725
+ })(RunEnvironment || {});
2726
+ var RunEnvironmentSchema = z.enum(["local" /* Local */, "remote" /* Remote */]);
2727
+ var RunEnvironmentInputSchema = RunEnvironmentSchema.optional().describe(
2728
+ "Environment lane for the run: 'local' (developer localhost) or 'remote' (deployed). Selects which versioned runSettings/credentials lane the cloud resolves. Omit for remote (default)."
2729
+ );
2702
2730
 
2703
2731
  // packages/mcps/src/mcp/local/services/display-resolution-constants.ts
2704
2732
  var DISPLAY_PARAMS_BY_RESOLUTION = {
@@ -2715,6 +2743,19 @@ function resolveDisplayParams(params) {
2715
2743
  const effectiveResolution = params.requestedResolution ?? storedResolution ?? DEFAULT_DISPLAY_RESOLUTION;
2716
2744
  return DISPLAY_PARAMS_BY_RESOLUTION[effectiveResolution] ?? DISPLAY_PARAMS_BY_RESOLUTION[DEFAULT_DISPLAY_RESOLUTION];
2717
2745
  }
2746
+ function resolveReplayDisplayParams(params) {
2747
+ if (params.requestedResolution === void 0) {
2748
+ return params.recordedDisplayParams ?? DISPLAY_PARAMS_BY_RESOLUTION[DEFAULT_DISPLAY_RESOLUTION];
2749
+ }
2750
+ const requestedDisplayParams = resolveDisplayParams({ requestedResolution: params.requestedResolution });
2751
+ const recorded = params.recordedDisplayParams;
2752
+ if (recorded !== void 0 && (recorded.browserWindowWidth !== requestedDisplayParams.browserWindowWidth || recorded.browserWindowHeight !== requestedDisplayParams.browserWindowHeight)) {
2753
+ throw new Error(
2754
+ `This test script was recorded at ${recorded.browserWindowWidth}x${recorded.browserWindowHeight}; replaying it at ${params.requestedResolution} would not replay its own runSettings record. Replay it without displayResolution, or run test generation at ${params.requestedResolution} to record that resolution's script.`
2755
+ );
2756
+ }
2757
+ return requestedDisplayParams;
2758
+ }
2718
2759
 
2719
2760
  // packages/mcps/src/mcp/local/services/replay-url-rewrite.ts
2720
2761
  function rewriteActionScriptUrls(params) {
@@ -2818,7 +2859,10 @@ function buildGenerationActionScript(params) {
2818
2859
  // Replay reads these from the recording, so they are written only when set:
2819
2860
  // a legacy test case must produce exactly the params it always did.
2820
2861
  ...params.testCase.pinnedAccount ? { pinnedAccount: params.testCase.pinnedAccount } : {},
2821
- ...params.freshSession === true ? { freshSession: true } : {}
2862
+ ...params.freshSession === true ? { freshSession: true } : {},
2863
+ // The studio loads this record's managed profile and secrets, and the cloud files the run
2864
+ // under it; without it the cloud picks the local record at displayParams.
2865
+ ...params.runSettingsId ? { runSettingsId: params.runSettingsId } : {}
2822
2866
  },
2823
2867
  goal: params.testCase.goal,
2824
2868
  url: params.localUrl,
@@ -2879,11 +2923,15 @@ function buildReplayActionScript(params) {
2879
2923
  runEnvironmentType: "local",
2880
2924
  // Sizes the studio's webview. Absent, the electron-app falls back to its
2881
2925
  // own hardcoded 1920x1080, which is why a phone-viewport run needs this.
2882
- displayParams: resolveDisplayParams({
2883
- requestedResolution: params.displayResolution
2926
+ displayParams: resolveReplayDisplayParams({
2927
+ requestedResolution: params.displayResolution,
2928
+ recordedDisplayParams: params.testScript.displayParams
2884
2929
  }),
2885
2930
  ...params.pinnedAccount ? { pinnedAccount: params.pinnedAccount } : {},
2886
- ...params.freshSession ? { freshSession: true } : {}
2931
+ ...params.freshSession ? { freshSession: true } : {},
2932
+ // A replay runs under the record of the script it replays. A remote-lane script's record
2933
+ // belongs to the other lane, so its replay is filed by size instead.
2934
+ ...params.testScript.type === "local" /* Local */ && params.testScript.runSettingsId ? { runSettingsId: params.testScript.runSettingsId } : {}
2887
2935
  },
2888
2936
  goal: params.testScript.name,
2889
2937
  url: params.localUrl,
@@ -3151,9 +3199,11 @@ function extractStudioCloudRefs(studioReturnedResult) {
3151
3199
  const viewUrl = asString(source.viewUrl);
3152
3200
  const cloudTestScriptId = asString(source.testScriptId);
3153
3201
  const cloudActionScriptId = asString(source.actionScriptId);
3202
+ const cloudRunSettingsId = asString(source.runSettingsId);
3154
3203
  if (viewUrl !== void 0) refs.viewUrl = viewUrl;
3155
3204
  if (cloudTestScriptId !== void 0) refs.cloudTestScriptId = cloudTestScriptId;
3156
3205
  if (cloudActionScriptId !== void 0) refs.cloudActionScriptId = cloudActionScriptId;
3206
+ if (cloudRunSettingsId !== void 0) refs.cloudRunSettingsId = cloudRunSettingsId;
3157
3207
  return refs;
3158
3208
  }
3159
3209
  async function readCloudRefsFile(inputFilePath) {
@@ -3584,7 +3634,8 @@ async function runTestGenerationLocked(params) {
3584
3634
  localTestScriptId: localTestScript.id,
3585
3635
  ownerUserId: authContent.userId,
3586
3636
  displayResolution: params.displayResolution,
3587
- freshSession: effectiveFreshSession
3637
+ freshSession: effectiveFreshSession,
3638
+ runSettingsId: params.runSettingsId
3588
3639
  });
3589
3640
  const inputFilePath = await writeTempFile({
3590
3641
  filename: `${runId}_input.json`,
@@ -4695,15 +4746,12 @@ var PinnedAccountSchema = z.object({
4695
4746
  emailSecretId: MuggleEntityIdSchema.describe("Secret ID (UUID) of the secret holding the account email"),
4696
4747
  passwordSecretId: MuggleEntityIdSchema.describe("Secret ID (UUID) of the secret holding the account password")
4697
4748
  });
4698
- var RunEnvironment = /* @__PURE__ */ ((RunEnvironment2) => {
4699
- RunEnvironment2["Local"] = "local";
4700
- RunEnvironment2["Remote"] = "remote";
4701
- return RunEnvironment2;
4702
- })(RunEnvironment || {});
4703
- var RunEnvironmentSchema = z.enum(["local" /* Local */, "remote" /* Remote */]);
4704
- var RunEnvironmentInputSchema = RunEnvironmentSchema.optional().describe(
4705
- "Environment lane for the run: 'local' (developer localhost) or 'remote' (deployed). Selects which versioned runSettings/credentials lane the cloud resolves. Omit for remote (default)."
4706
- );
4749
+ var DisplayParamsSchema = z.object({
4750
+ browserWindowWidth: z.number(),
4751
+ browserWindowHeight: z.number()
4752
+ });
4753
+
4754
+ // packages/mcps/src/mcp/e2e/contracts/local-run-schemas.ts
4707
4755
  var LocalExecutionContextInputSchema = z.object({
4708
4756
  originalUrl: z.string().url().describe("Original local URL used during local execution (typically localhost)"),
4709
4757
  productionUrl: z.string().url().describe("Cloud production URL for the test case"),
@@ -4732,6 +4780,12 @@ var LocalRunUploadInputSchema = z.object({
4732
4780
  ),
4733
4781
  freshSession: z.boolean().optional().describe(
4734
4782
  "True when the run started from an emptied browser session, copied from the run's actionParams. Omit otherwise"
4783
+ ),
4784
+ runSettingsId: z.string().optional().describe(
4785
+ "runSettings record the run executed under, copied from the run's actionParams. Omit when it named none"
4786
+ ),
4787
+ displayParams: DisplayParamsSchema.optional().describe(
4788
+ "Window size the run executed at, copied from the run's actionParams"
4735
4789
  )
4736
4790
  });
4737
4791
 
@@ -6642,7 +6696,9 @@ var workflowTools = [
6642
6696
  executionTimeMs: toolInput.executionTimeMs,
6643
6697
  errorMessage: toolInput.errorMessage,
6644
6698
  ...toolInput.pinnedAccount && { pinnedAccount: toolInput.pinnedAccount },
6645
- ...toolInput.freshSession === true && { freshSession: true }
6699
+ ...toolInput.freshSession === true && { freshSession: true },
6700
+ ...toolInput.runSettingsId && { runSettingsId: toolInput.runSettingsId },
6701
+ ...toolInput.displayParams && { displayParams: toolInput.displayParams }
6646
6702
  }
6647
6703
  };
6648
6704
  }
@@ -7578,7 +7634,13 @@ var TestScriptDetailsSchema = z.object({
7578
7634
  /** Cloud project ID (required for electron workflow context). */
7579
7635
  projectId: MuggleEntityIdSchema.describe("Cloud project ID (UUID)"),
7580
7636
  /** Cloud use case ID (required for electron workflow context). */
7581
- useCaseId: MuggleEntityIdSchema.describe("Cloud use case ID (UUID)")
7637
+ useCaseId: MuggleEntityIdSchema.describe("Cloud use case ID (UUID)"),
7638
+ /** The runSettings record the script was recorded under; a local-lane script's replay is recorded against it. */
7639
+ runSettingsId: z.string().optional(),
7640
+ /** The window size the script was recorded at; sizes the replay unless the caller names a resolution. */
7641
+ displayParams: DisplayParamsSchema.optional(),
7642
+ /** The lane the script belongs to; only a local-lane script's record names the replay's. */
7643
+ type: RunEnvironmentSchema.optional()
7582
7644
  });
7583
7645
  var ExecuteTestGenerationInputSchema = z.object({
7584
7646
  /** Test case details from muggle-remote-test-case-get. */
@@ -7598,6 +7660,10 @@ var ExecuteTestGenerationInputSchema = z.object({
7598
7660
  /** Resolution for this run. Overrides `testCase.displayOptions`; both absent means 1920x1080. */
7599
7661
  displayResolution: DisplayResolutionSchema.optional().describe(
7600
7662
  "Browser resolution for this run, e.g. R_0390x0844 for a 390x844 phone viewport. Overrides testCase.displayOptions; defaults to R_1920x1080 when neither is given."
7663
+ ),
7664
+ /** The local-lane runSettings record to generate the script for. */
7665
+ runSettingsId: z.string().optional().describe(
7666
+ "Local runSettings record to record this run against, e.g. a local script's runSettingsId. Pass its resolution as displayResolution."
7601
7667
  )
7602
7668
  });
7603
7669
  var ExecuteReplayInputSchema = z.object({
@@ -7619,9 +7685,9 @@ var ExecuteReplayInputSchema = z.object({
7619
7685
  mutations: z.array(z.string()).optional().describe(`Mutation parameters: string[] where each element is a plain-English instruction or a local file path (e.g. ["The post content should be 'Hello'", "Attach the image at C:\\\\Users\\\\user\\\\photo.jpg"]).`),
7620
7686
  /** Pinned account the script was recorded with, copied from the recording. */
7621
7687
  pinnedAccount: PinnedAccountSchema.nullable().optional().describe("Copy from actionParams.pinnedAccount of the muggle-remote-action-script-get result: the account the script was recorded as, not the test case's current pin. A pinned replay runs in that account's own browser session; omit when the recording carries none."),
7622
- /** Resolution for this run. A test script carries no stored resolution, so this is replay's only sizing input. */
7688
+ /** Resolution for this run; defaults to the size the script was recorded at. */
7623
7689
  displayResolution: DisplayResolutionSchema.optional().describe(
7624
- "Browser resolution for this run, e.g. R_0390x0844 for a 390x844 phone viewport. Defaults to R_1920x1080."
7690
+ "Browser resolution, e.g. R_0390x0844. Defaults to the script's recorded size."
7625
7691
  )
7626
7692
  });
7627
7693
  var CancelExecutionInputSchema = z.object({
@@ -8145,7 +8211,8 @@ var runResultGetTool = {
8145
8211
  // The studio publishes the run during execution; these are its returned cloud refs.
8146
8212
  storedRunResult.viewUrl ? `**View URL:** ${storedRunResult.viewUrl}` : `**Dashboard:** ${fallbackDashboardUrl}`,
8147
8213
  storedRunResult.cloudTestScriptId ? `**Cloud Test Script ID:** ${storedRunResult.cloudTestScriptId}` : "",
8148
- storedRunResult.cloudActionScriptId ? `**Cloud Action Script ID:** ${storedRunResult.cloudActionScriptId}` : ""
8214
+ storedRunResult.cloudActionScriptId ? `**Cloud Action Script ID:** ${storedRunResult.cloudActionScriptId}` : "",
8215
+ storedRunResult.cloudRunSettingsId ? `**Cloud Run Settings ID:** ${storedRunResult.cloudRunSettingsId}` : ""
8149
8216
  ];
8150
8217
  let testScriptSteps;
8151
8218
  if (storedRunResult.testScriptId) {
@@ -8268,7 +8335,8 @@ var executeTestGenerationTool = {
8268
8335
  timeoutMs: input.timeoutMs,
8269
8336
  showUi,
8270
8337
  freshSession: input.freshSession,
8271
- displayResolution: input.displayResolution
8338
+ displayResolution: input.displayResolution,
8339
+ runSettingsId: input.runSettingsId
8272
8340
  });
8273
8341
  const content = [
8274
8342
  "## Test Generation " + (generationRun.status === "passed" ? "Successful" : "Failed"),
@@ -9103,4 +9171,4 @@ function applyOnboardingAnswers(answers, dataDirOverride2, now = /* @__PURE__ */
9103
9171
  return { isCompleted: true, preferences: prefs };
9104
9172
  }
9105
9173
 
9106
- 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-C5MMZNZJ.js';
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-XCMPDHPJ.js');
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.join(getDataDir(), ELECTRON_APP_DIR);
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 currentVersion = getElectronAppVersion();
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
- if (!entry.isDirectory()) {
1439
+ const installDirName = parseElectronAppDirName(entry.name);
1440
+ if (!installDirName) {
1406
1441
  continue;
1407
1442
  }
1408
- if (!/^\d+\.\d+\.\d+$/.test(entry.name)) {
1443
+ const versionPath = path.join(baseDir, entry.name);
1444
+ const installKind = resolveInstallKind(entry, versionPath);
1445
+ if (!installKind) {
1409
1446
  continue;
1410
1447
  }
1411
- const versionPath = path.join(baseDir, entry.name);
1412
- const sizeBytes = getDirectorySize(versionPath);
1448
+ const isDirectory = installKind === "directory" /* Directory */;
1413
1449
  versions.push({
1414
- version: entry.name,
1450
+ directoryName: entry.name,
1451
+ version: installDirName.version,
1452
+ releaseStream: installDirName.releaseStream,
1415
1453
  path: versionPath,
1416
- sizeBytes,
1417
- isCurrent: entry.name === currentVersion
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((a, b) => compareVersions(b.version, a.version));
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 versions = listInstalledVersions();
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 versions) {
1435
- if (version.isCurrent) {
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.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.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 versions = listInstalledVersions();
1468
- if (versions.length === 0) {
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
- return;
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
- let totalSize = 0;
1474
- for (const version of versions) {
1475
- const marker = version.isCurrent ? " (current)" : "";
1476
- const size = formatBytes(version.sizeBytes);
1477
- console.log(` v${version.version}${marker} - ${size}`);
1478
- totalSize += version.sizeBytes;
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 versions = listInstalledVersions();
1490
- if (versions.length === 0) {
1491
- console.log("No versions installed. Nothing to clean up.\n");
1492
- } else if (versions.length === 1) {
1493
- console.log("Only the current version is installed. Nothing to clean up.\n");
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 currentVersion = versions.find((v) => v.isCurrent);
1496
- const oldVersions = versions.filter((v) => !v.isCurrent);
1497
- console.log(`Current version: v${currentVersion?.version ?? "unknown"}`);
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 result = cleanupOldVersions(options);
1504
- if (result.removed.length === 0) {
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 result.removed) {
1514
- console.log(` v${version.version} (${formatBytes(version.sizeBytes)})`);
1592
+ for (const version of versionCleanupOutcome.removed) {
1593
+ console.log(` ${formatInstallLabel(version)} (${formatBytes(version.sizeBytes)})`);
1515
1594
  }
1516
- totalFreedBytes += result.freedBytes;
1517
- totalRemovedCount += result.removed.length;
1595
+ totalFreedBytes += versionCleanupOutcome.freedBytes;
1596
+ totalRemovedCount += versionCleanupOutcome.removed.length;
1518
1597
  console.log("");
1519
1598
  }
1520
1599
  }
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { runCli } from './chunk-JERBZROI.js';
3
- import './chunk-C5MMZNZJ.js';
2
+ import { runCli } from './chunk-GLTZIZVT.js';
3
+ import './chunk-FEHTWWVH.js';
4
4
 
5
5
  // src/cli/main.ts
6
6
  runCli().catch((error) => {
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-JERBZROI.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-C5MMZNZJ.js';
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.177",
4
+ "version": "5.24.0-staging.179",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.24.0-staging.177",
7
+ "@muggleai/works@5.24.0-staging.179",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.24.0-staging.177",
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.177",
5
+ "version": "5.24.0-staging.179",
6
6
  "author": {
7
7
  "name": "Muggle AI",
8
8
  "email": "support@muggle-ai.com"
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.24.0-staging.177",
7
+ "@muggleai/works@5.24.0-staging.179",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "release": "5.18.0",
3
- "buildId": "run-177-1",
4
- "commitSha": "9ec6f9435429b034ab39af60051e0f0f29647991",
5
- "buildTime": "2026-10-23T00:39:09Z",
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.177",
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.177",
4
+ "version": "5.24.0-staging.179",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.24.0-staging.177",
7
+ "@muggleai/works@5.24.0-staging.179",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.24.0-staging.177",
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.177",
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
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.24.0-staging.177",
7
+ "@muggleai/works@5.24.0-staging.179",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -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-C5MMZNZJ.js';