@muggleai/works 5.32.0-staging.288 → 5.32.0-staging.290

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.32.0-staging.288"
12
+ "version": "5.32.0-staging.290"
13
13
  }
14
14
  ]
15
15
  }
@@ -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, buildElectronAppChecksumsUrl, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, buildLlmSourcePlan, describeLlmSourceStatus, resolveLlmSourceStatus, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, claimServiceStack, BUSY_EXIT_CODE, checkServiceStack, releaseServiceStack, readServiceStackStatus, resolvePreferences, OnboardingBlanketChoice, PreferenceKey, LlmSource, applyLlmSourceSelection, describeStackMismatch, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl, local_exports } from './chunk-AEJM2CBK.js';
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, buildElectronAppChecksumsUrl, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, buildLlmSourcePlan, describeLlmSourceStatus, resolveLlmSourceStatus, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, claimServiceStack, BUSY_EXIT_CODE, checkServiceStack, releaseServiceStack, readServiceStackStatus, resolvePreferences, OnboardingBlanketChoice, PreferenceKey, LlmSource, applyLlmSourceSelection, describeStackMismatch, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl, local_exports } from './chunk-WZKHFEBL.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';
@@ -1248,7 +1248,7 @@ async function resolveGsScreenshotUrls(report, opts) {
1248
1248
  if (gsUrls.length === 0) {
1249
1249
  return report;
1250
1250
  }
1251
- const mcps = await import('./src-KNX6CG4Z.js');
1251
+ const mcps = await import('./src-KF6RSLGQ.js');
1252
1252
  const credentials = await mcps.getCallerCredentialsAsync();
1253
1253
  if (!credentials.bearerToken && !credentials.apiKey) {
1254
1254
  stderrWrite(
@@ -3069,6 +3069,13 @@ var RunEnvironmentInputSchema = RunEnvironmentSchema.optional().describe(
3069
3069
  "Environment lane for the run: 'local' (developer localhost) or 'remote' (deployed). Selects which versioned runSettings/credentials lane the cloud resolves. Omit for remote (default)."
3070
3070
  );
3071
3071
 
3072
+ // packages/mcps/src/shared/llm-tier-types.ts
3073
+ var LlmTierEnum = /* @__PURE__ */ ((LlmTierEnum2) => {
3074
+ LlmTierEnum2["Standard"] = "standard";
3075
+ LlmTierEnum2["Light"] = "light";
3076
+ return LlmTierEnum2;
3077
+ })(LlmTierEnum || {});
3078
+
3072
3079
  // packages/mcps/src/mcp/local/services/display-resolution-constants.ts
3073
3080
  var DISPLAY_PARAMS_BY_RESOLUTION = {
3074
3081
  ["R_0800x0600" /* R_0800x0600 */]: { browserWindowWidth: 800, browserWindowHeight: 600 },
@@ -3163,6 +3170,9 @@ function getRequiredStringField(params) {
3163
3170
  }
3164
3171
  return value;
3165
3172
  }
3173
+ function buildLightModeWorkflowParams(isLightMode) {
3174
+ return isLightMode === true ? { workflowParams: { llm: { tier: "light" /* Light */ } } } : {};
3175
+ }
3166
3176
  function buildGenerationActionScript(params) {
3167
3177
  const testCaseRecord = params.testCase;
3168
3178
  const projectId = getRequiredStringField({
@@ -3215,7 +3225,8 @@ function buildGenerationActionScript(params) {
3215
3225
  ...params.freshSession === true ? { freshSession: true } : {},
3216
3226
  // The studio loads this record's managed profile and secrets, and the cloud files the run
3217
3227
  // under it; without it the cloud picks the local record at displayParams.
3218
- ...params.runSettingsId ? { runSettingsId: params.runSettingsId } : {}
3228
+ ...params.runSettingsId ? { runSettingsId: params.runSettingsId } : {},
3229
+ ...buildLightModeWorkflowParams(params.isLightMode)
3219
3230
  },
3220
3231
  goal: params.testCase.goal,
3221
3232
  url: params.localUrl,
@@ -3284,7 +3295,8 @@ function buildReplayActionScript(params) {
3284
3295
  ...params.freshSession ? { freshSession: true } : {},
3285
3296
  // A replay runs under the record of the script it replays. A remote-lane script's record
3286
3297
  // belongs to the other lane, so its replay is filed by size instead.
3287
- ...params.testScript.type === "local" /* Local */ && params.testScript.runSettingsId ? { runSettingsId: params.testScript.runSettingsId } : {}
3298
+ ...params.testScript.type === "local" /* Local */ && params.testScript.runSettingsId ? { runSettingsId: params.testScript.runSettingsId } : {},
3299
+ ...buildLightModeWorkflowParams(params.isLightMode)
3288
3300
  },
3289
3301
  goal: params.testScript.name,
3290
3302
  url: params.localUrl,
@@ -4067,7 +4079,8 @@ async function runTestGenerationLocked(params) {
4067
4079
  ownerUserId: authContent.userId,
4068
4080
  displayResolution: params.displayResolution,
4069
4081
  freshSession: effectiveFreshSession,
4070
- runSettingsId: params.runSettingsId
4082
+ runSettingsId: params.runSettingsId,
4083
+ isLightMode: params.isLightMode
4071
4084
  });
4072
4085
  const inputFilePath = await writeTempFile({
4073
4086
  filename: `${runId}_input.json`,
@@ -4256,7 +4269,8 @@ async function runReplayLocked(params) {
4256
4269
  ownerUserId: authContent.userId,
4257
4270
  displayResolution: params.displayResolution,
4258
4271
  pinnedAccount: params.pinnedAccount,
4259
- freshSession: params.freshSession
4272
+ freshSession: params.freshSession,
4273
+ isLightMode: params.isLightMode
4260
4274
  });
4261
4275
  const inputFilePath = await writeTempFile({
4262
4276
  filename: `${runId}_input.json`,
@@ -6382,6 +6396,14 @@ var PinnedAccountSchema = z.object({
6382
6396
  passwordSecretId: MuggleEntityIdSchema.describe("Secret ID (UUID) of the secret holding the account password")
6383
6397
  });
6384
6398
 
6399
+ // packages/mcps/src/shared/llm-tier-constants.ts
6400
+ var WORKFLOW_LLM_PARAMS_DESCRIPTION = "Set tier to 'light' to run Studio in Light mode \u2014 a faster, lower-cost model (Claude Sonnet 5.5). Omit to inherit the project/use case/test case setting.";
6401
+ var LIGHT_MODE_INPUT_DESCRIPTION = "Run Studio in Light mode \u2014 faster, lower-cost model (Claude Sonnet 5.5). Default false.";
6402
+ var LLM_TIER_DISPLAY_LABELS = {
6403
+ ["standard" /* Standard */]: "Standard",
6404
+ ["light" /* Light */]: "Light mode"
6405
+ };
6406
+
6385
6407
  // packages/mcps/src/mcp/e2e/contracts/constants.ts
6386
6408
  var WORKFLOW_RUNTIME_ID_NOT_RUN_ID_HINT = "Use the `workflowRuntimeId` returned when the workflow was started \u2014 not a run `id` or a test runs summary's `latestWorkflowRunId`, which are run ids and are not found here.";
6387
6409
  var TEST_STATE_PARALLEL_ACCOUNT_SET_LIMIT_MIN = 1;
@@ -6615,8 +6637,12 @@ var WorkflowMemoryParamsSchema = z.object({
6615
6637
  enableSharedTestMemory: z.boolean().optional().describe("Override to enable/disable SharedTestMemory for this workflow run"),
6616
6638
  enableEverMemOS: z.boolean().optional().describe("Override to enable/disable EverMemOS for this workflow run")
6617
6639
  });
6640
+ var WorkflowLlmParamsSchema = z.object({
6641
+ tier: z.enum(LlmTierEnum).optional()
6642
+ });
6618
6643
  var WorkflowParamsSchema = z.object({
6619
- memory: WorkflowMemoryParamsSchema.optional().describe("Per-run memory override settings")
6644
+ memory: WorkflowMemoryParamsSchema.optional().describe("Per-run memory override settings"),
6645
+ llm: WorkflowLlmParamsSchema.optional().describe(WORKFLOW_LLM_PARAMS_DESCRIPTION)
6620
6646
  }).passthrough().optional().describe("Optional workflow parameters for workflow-level overrides");
6621
6647
  var TokenUsageFilterTypeSchema = z.enum([
6622
6648
  "project",
@@ -9954,7 +9980,9 @@ var ExecuteTestGenerationInputSchema = z.object({
9954
9980
  /** The local-lane runSettings record to generate the script for. */
9955
9981
  runSettingsId: z.string().optional().describe(
9956
9982
  "Local runSettings record to record this run against, e.g. a local script's runSettingsId. Pass its resolution as displayResolution."
9957
- )
9983
+ ),
9984
+ /** Run Studio's prediction agent on the Light mode model tier. */
9985
+ lightMode: z.boolean().optional().describe(LIGHT_MODE_INPUT_DESCRIPTION)
9958
9986
  });
9959
9987
  var ExecuteReplayInputSchema = z.object({
9960
9988
  /** Test script metadata from muggle-remote-test-script-get. */
@@ -9980,7 +10008,9 @@ var ExecuteReplayInputSchema = z.object({
9980
10008
  /** Resolution for this run; defaults to the size the script was recorded at. */
9981
10009
  displayResolution: DisplayResolutionSchema.optional().describe(
9982
10010
  "Browser resolution, e.g. R_0390x0844. Defaults to the script's recorded size."
9983
- )
10011
+ ),
10012
+ /** Run Studio's prediction agent on the Light mode model tier. */
10013
+ lightMode: z.boolean().optional().describe(LIGHT_MODE_INPUT_DESCRIPTION)
9984
10014
  });
9985
10015
  var CancelExecutionInputSchema = z.object({
9986
10016
  runId: MuggleEntityIdSchema.describe("Run ID (UUID) to cancel")
@@ -10283,6 +10313,12 @@ function formatElectronBrowserVisibilityLine(visibility) {
10283
10313
  return `**UI:** ${label} \u2014 showElectronBrowser is "${visibility.showElectronBrowserPreference}", so showUi: ${ignoredShowUi} was ignored`;
10284
10314
  }
10285
10315
 
10316
+ // packages/mcps/src/mcp/tools/local/llm-tier-line.ts
10317
+ function formatLlmTierLine(isLightMode) {
10318
+ const llmTier = isLightMode === true ? "light" /* Light */ : "standard" /* Standard */;
10319
+ return `**Model tier:** ${LLM_TIER_DISPLAY_LABELS[llmTier]}`;
10320
+ }
10321
+
10286
10322
  // packages/mcps/src/mcp/tools/local/studio-verdict-line-constants.ts
10287
10323
  var STUDIO_VERDICT_LABELS = {
10288
10324
  ["success" /* Success */]: "Passed",
@@ -10654,7 +10690,8 @@ var executeTestGenerationTool = {
10654
10690
  showUi: browserVisibility.isBrowserShown,
10655
10691
  freshSession: input.freshSession,
10656
10692
  displayResolution: input.displayResolution,
10657
- runSettingsId: input.runSettingsId
10693
+ runSettingsId: input.runSettingsId,
10694
+ isLightMode: input.lightMode
10658
10695
  })
10659
10696
  });
10660
10697
  const content = [
@@ -10664,6 +10701,7 @@ var executeTestGenerationTool = {
10664
10701
  `**Test Script ID:** ${generationRun.testScriptId}`,
10665
10702
  `**Status:** ${generationRun.status}`,
10666
10703
  `**Duration:** ${generationRun.executionTimeMs}ms`,
10704
+ formatLlmTierLine(input.lightMode),
10667
10705
  formatRunViewUrlLine(generationRun.id),
10668
10706
  formatElectronBrowserVisibilityLine(browserVisibility),
10669
10707
  generationRun.errorMessage ? `**Error:** ${generationRun.errorMessage}` : ""
@@ -10724,7 +10762,8 @@ var executeReplayTool = {
10724
10762
  showUi: browserVisibility.isBrowserShown,
10725
10763
  freshSession: input.freshSession,
10726
10764
  pinnedAccount: input.pinnedAccount,
10727
- displayResolution: input.displayResolution
10765
+ displayResolution: input.displayResolution,
10766
+ isLightMode: input.lightMode
10728
10767
  })
10729
10768
  });
10730
10769
  const content = [
@@ -10734,6 +10773,7 @@ var executeReplayTool = {
10734
10773
  `**Test Script ID:** ${replayRun.testScriptId}`,
10735
10774
  `**Status:** ${replayRun.status}`,
10736
10775
  `**Duration:** ${replayRun.executionTimeMs}ms`,
10776
+ formatLlmTierLine(input.lightMode),
10737
10777
  formatRunViewUrlLine(replayRun.id),
10738
10778
  formatElectronBrowserVisibilityLine(browserVisibility),
10739
10779
  replayRun.errorMessage ? `**Error:** ${replayRun.errorMessage}` : ""
@@ -11146,6 +11186,7 @@ __export(e2e_exports2, {
11146
11186
  WorkflowGetReplayBulkBatchSummaryInputSchema: () => WorkflowGetReplayBulkBatchSummaryInputSchema,
11147
11187
  WorkflowGetReplayLatestRunInputSchema: () => WorkflowGetReplayLatestRunInputSchema,
11148
11188
  WorkflowListRuntimesInputSchema: () => WorkflowListRuntimesInputSchema,
11189
+ WorkflowLlmParamsSchema: () => WorkflowLlmParamsSchema,
11149
11190
  WorkflowMemoryParamsSchema: () => WorkflowMemoryParamsSchema,
11150
11191
  WorkflowParamsSchema: () => WorkflowParamsSchema,
11151
11192
  WorkflowStartTestCaseDetectionInputSchema: () => WorkflowStartTestCaseDetectionInputSchema,
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { runCli } from './chunk-S3PUEFGM.js';
3
- import './chunk-AEJM2CBK.js';
2
+ import { runCli } from './chunk-NFCB3A5Z.js';
3
+ import './chunk-WZKHFEBL.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-S3PUEFGM.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-AEJM2CBK.js';
1
+ export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-NFCB3A5Z.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-WZKHFEBL.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.32.0-staging.288",
4
+ "version": "5.32.0-staging.290",
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.32.0-staging.288",
7
+ "@muggleai/works@5.32.0-staging.290",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.32.0-staging.288",
3
+ "version": "5.32.0-staging.290",
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.32.0-staging.288",
5
+ "version": "5.32.0-staging.290",
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.32.0-staging.288",
7
+ "@muggleai/works@5.32.0-staging.290",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -14,6 +14,7 @@ The caller resolves these before the loop and supplies them per test case:
14
14
  - `baseBranch` — the change's base, only when it is not the remote default (a stacked change, a PR into a release branch). Omitted, the tools check `cwd` against the remote default.
15
15
  - `testCase` / `cloudTestCaseId` / `projectId` — the cloud test case, its id and its project.
16
16
  - `showUi` — from the caller's `showElectronBrowser` resolution: omit for visible, `false` for headless.
17
+ - `lightMode` — `true` only when the user asks for Light mode (faster, lower-cost model, Claude Sonnet 5.5); omit otherwise.
17
18
 
18
19
  The tool boundary is fixed: cloud reads (`muggle-remote-*`) resolve definitions and scripts; local tools (`muggle-local-*`) run the browser, fetch results, and publish.
19
20
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "release": "5.26.0",
3
- "buildId": "run-288-1",
4
- "commitSha": "bb6cfd27662fb360c92de3184cd460bdb424dfd4",
5
- "buildTime": "2026-11-03T22:34:45Z",
3
+ "buildId": "run-290-1",
4
+ "commitSha": "33b487c798d710daeecb7d465f56be744194f8e4",
5
+ "buildTime": "2026-11-04T07:24:20Z",
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_EXECUTABLE_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, resolveLlmSourceStatus, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, startStackRun, stopVacatedServices, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writeLlmEnvBlock, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-AEJM2CBK.js';
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_EXECUTABLE_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, resolveLlmSourceStatus, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, startStackRun, stopVacatedServices, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writeLlmEnvBlock, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-WZKHFEBL.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.32.0-staging.288",
4
+ "version": "5.32.0-staging.290",
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.32.0-staging.288",
4
+ "version": "5.32.0-staging.290",
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.32.0-staging.288",
7
+ "@muggleai/works@5.32.0-staging.290",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.32.0-staging.288",
3
+ "version": "5.32.0-staging.290",
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.32.0-staging.288",
5
+ "version": "5.32.0-staging.290",
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.32.0-staging.288",
7
+ "@muggleai/works@5.32.0-staging.290",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -14,6 +14,7 @@ The caller resolves these before the loop and supplies them per test case:
14
14
  - `baseBranch` — the change's base, only when it is not the remote default (a stacked change, a PR into a release branch). Omitted, the tools check `cwd` against the remote default.
15
15
  - `testCase` / `cloudTestCaseId` / `projectId` — the cloud test case, its id and its project.
16
16
  - `showUi` — from the caller's `showElectronBrowser` resolution: omit for visible, `false` for headless.
17
+ - `lightMode` — `true` only when the user asks for Light mode (faster, lower-cost model, Claude Sonnet 5.5); omit otherwise.
17
18
 
18
19
  The tool boundary is fixed: cloud reads (`muggle-remote-*`) resolve definitions and scripts; local tools (`muggle-local-*`) run the browser, fetch results, and publish.
19
20