@muggleai/works 5.34.0-staging.312 → 5.34.0-staging.314

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.34.0-staging.312"
12
+ "version": "5.34.0-staging.314"
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, __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, buildElectronAppChecksumsUrl, OnboardingBlanketChoice, PreferenceKey, LlmSource, applyLlmSourceSelection, describeStackMismatch, ELECTRON_APP_CHECKSUMS_ASSET_NAME, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl, local_exports } from './chunk-H47WQEDR.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, __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, buildElectronAppChecksumsUrl, OnboardingBlanketChoice, PreferenceKey, LlmSource, applyLlmSourceSelection, describeStackMismatch, ELECTRON_APP_CHECKSUMS_ASSET_NAME, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl, local_exports } from './chunk-RM6CWVC2.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';
@@ -1256,7 +1256,7 @@ async function resolveGsScreenshotUrls(report, opts) {
1256
1256
  if (gsUrls.length === 0) {
1257
1257
  return report;
1258
1258
  }
1259
- const mcps = await import('./src-5BGECNR4.js');
1259
+ const mcps = await import('./src-WCAMBL6H.js');
1260
1260
  const credentials = await mcps.getCallerCredentialsAsync();
1261
1261
  if (!credentials.bearerToken && !credentials.apiKey) {
1262
1262
  stderrWrite(
@@ -2126,7 +2126,7 @@ function validateCursorMcpConfig() {
2126
2126
  };
2127
2127
  }
2128
2128
  }
2129
- function runDiagnostics() {
2129
+ async function runDiagnosticsAsync() {
2130
2130
  const results = [];
2131
2131
  const config = getConfig();
2132
2132
  const dataDir = getDataDir2();
@@ -2183,7 +2183,7 @@ function runDiagnostics() {
2183
2183
  });
2184
2184
  }
2185
2185
  const authService = getAuthService();
2186
- const authStatus = authService.getAuthStatus();
2186
+ const authStatus = await authService.getRenewedAuthStatus();
2187
2187
  results.push({
2188
2188
  name: "Authentication",
2189
2189
  passed: authStatus.authenticated,
@@ -2244,7 +2244,7 @@ function formatCheckResult(result) {
2244
2244
  async function doctorCommand() {
2245
2245
  console.log("\nMuggle Works Doctor");
2246
2246
  console.log("=================\n");
2247
- const results = runDiagnostics();
2247
+ const results = await runDiagnosticsAsync();
2248
2248
  for (const checkResult of results) {
2249
2249
  console.log(formatCheckResult(checkResult));
2250
2250
  }
@@ -3859,7 +3859,7 @@ async function statusCommand() {
3859
3859
  console.log(`Backend: ${getConfig().e2e.promptServiceBaseUrl}
3860
3860
  `);
3861
3861
  const authService = getAuthService();
3862
- const status = authService.getAuthStatus();
3862
+ const status = await authService.getRenewedAuthStatus();
3863
3863
  const hasStoredApiKey = hasApiKey();
3864
3864
  if (status.authenticated) {
3865
3865
  console.log("\u2713 Authenticated");
@@ -2051,6 +2051,15 @@ var AuthService = class {
2051
2051
  isExpired
2052
2052
  };
2053
2053
  }
2054
+ /**
2055
+ * Get authentication status after renewing a lapsed access token from the stored refresh token.
2056
+ * Prefer this over getAuthStatus() wherever the answer decides whether the user must log in again.
2057
+ * @returns Status reflecting the renewed token, or the lapsed one when renewal fails.
2058
+ */
2059
+ async getRenewedAuthStatus() {
2060
+ await this.getValidAccessToken();
2061
+ return this.getAuthStatus();
2062
+ }
2054
2063
  /**
2055
2064
  * Start the device code flow.
2056
2065
  * @param options.forceNewSession - Clear existing Auth0 browser session before login to allow account switching.
@@ -3714,9 +3723,9 @@ async function readCloudRefsFile(inputFilePath) {
3714
3723
  }
3715
3724
  }
3716
3725
  var activeProcesses = /* @__PURE__ */ new Map();
3717
- function getAuthenticatedUserId() {
3726
+ async function getAuthenticatedUserIdAsync() {
3718
3727
  const authService = getAuthService();
3719
- const authStatus = authService.getAuthStatus();
3728
+ const authStatus = await authService.getRenewedAuthStatus();
3720
3729
  if (!authStatus.authenticated) {
3721
3730
  throw new Error("Not authenticated. Please run muggle-remote-auth-login first.");
3722
3731
  }
@@ -3765,9 +3774,9 @@ async function getLocalExecutionContextBaseAsync(params) {
3765
3774
  ...studioBuild && { studioBuild }
3766
3775
  };
3767
3776
  }
3768
- function buildStudioAuthContent() {
3777
+ async function buildStudioAuthContentAsync() {
3769
3778
  const authService = getAuthService();
3770
- const authStatus = authService.getAuthStatus();
3779
+ const authStatus = await authService.getRenewedAuthStatus();
3771
3780
  const storedAuth = authService.loadStoredAuth();
3772
3781
  if (!authStatus.authenticated || !storedAuth) {
3773
3782
  throw new Error("Not authenticated. Please run muggle-remote-auth-login first.");
@@ -4094,8 +4103,8 @@ async function executeTestGeneration(params) {
4094
4103
  async function runTestGenerationLocked(params) {
4095
4104
  const { testCase, localUrl } = params;
4096
4105
  const timeoutMs = params.timeoutMs ?? DEFAULT_GENERATION_TIMEOUT_MS;
4097
- const userId = getAuthenticatedUserId();
4098
- const authContent = buildStudioAuthContent();
4106
+ const userId = await getAuthenticatedUserIdAsync();
4107
+ const authContent = await buildStudioAuthContentAsync();
4099
4108
  if (!testCase.url) {
4100
4109
  throw new Error("Missing required testCase.url for local run upload metadata");
4101
4110
  }
@@ -4303,8 +4312,8 @@ async function executeReplay(params) {
4303
4312
  async function runReplayLocked(params) {
4304
4313
  const { testScript, actionScript, localUrl } = params;
4305
4314
  const timeoutMs = params.timeoutMs ?? DEFAULT_REPLAY_TIMEOUT_MS;
4306
- const userId = getAuthenticatedUserId();
4307
- const authContent = buildStudioAuthContent();
4315
+ const userId = await getAuthenticatedUserIdAsync();
4316
+ const authContent = await buildStudioAuthContentAsync();
4308
4317
  if (!testScript.url) {
4309
4318
  throw new Error("Missing required testScript.url for local run upload metadata");
4310
4319
  }
@@ -6997,7 +7006,7 @@ var TestCaseUpdateInputSchema = z.object({
6997
7006
  precondition: z.string().optional().describe("Updated precondition"),
6998
7007
  expectedResult: z.string().min(1).optional().describe("Updated expected result"),
6999
7008
  url: z.string().url().optional().describe("Updated target URL"),
7000
- status: z.enum(["DRAFT", "ACTIVE", "DEPRECATED", "ARCHIVED"]).optional().describe("Updated status"),
7009
+ status: z.enum(["DRAFT", "ACTIVE", "DEPRECATED", "ARCHIVED"]).optional().describe("New lifecycle status; a status the lifecycle does not reach from the current one fails the call"),
7001
7010
  priority: z.enum(["HIGH", "MEDIUM", "LOW"]).optional().describe("Updated priority"),
7002
7011
  tags: z.array(z.string()).optional().describe("Updated tags"),
7003
7012
  category: z.string().optional().describe("Updated category"),
@@ -7883,6 +7892,62 @@ function toSecretMetadata(upstreamSecret) {
7883
7892
  };
7884
7893
  }
7885
7894
 
7895
+ // packages/mcps/src/mcp/tools/e2e/test-state-upstream.ts
7896
+ function buildTestChainingCatalogPath(projectId) {
7897
+ return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/catalog`;
7898
+ }
7899
+ function buildTestStatesPath(projectId) {
7900
+ return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/states`;
7901
+ }
7902
+ function buildTestRolesPath(projectId) {
7903
+ return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/roles`;
7904
+ }
7905
+ function buildTestChainingSettingsPath(projectId) {
7906
+ return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/settings`;
7907
+ }
7908
+ function buildTestChainingPlanPath(projectId) {
7909
+ return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/plan`;
7910
+ }
7911
+ function pickTestCaseTestStateFields(testStateFields) {
7912
+ const requestFields = {};
7913
+ if (testStateFields.actsAsRoleIds !== void 0) requestFields.actsAsRoleIds = testStateFields.actsAsRoleIds;
7914
+ if (testStateFields.prerequisiteStateId !== void 0) {
7915
+ requestFields.prerequisiteStateId = testStateFields.prerequisiteStateId;
7916
+ }
7917
+ if (testStateFields.resultStateId !== void 0) requestFields.resultStateId = testStateFields.resultStateId;
7918
+ return requestFields;
7919
+ }
7920
+
7921
+ // packages/mcps/src/mcp/tools/e2e/test-case-update-upstream.ts
7922
+ function buildTestCaseDefinitionUpdateBody(toolInput) {
7923
+ const definitionBody = { id: toolInput.testCaseId, ...pickTestCaseTestStateFields(toolInput) };
7924
+ if (toolInput.title !== void 0) definitionBody.title = toolInput.title;
7925
+ if (toolInput.description !== void 0) definitionBody.description = toolInput.description;
7926
+ if (toolInput.goal !== void 0) definitionBody.goal = toolInput.goal;
7927
+ if (toolInput.precondition !== void 0) definitionBody.precondition = toolInput.precondition;
7928
+ if (toolInput.expectedResult !== void 0) definitionBody.expectedResult = toolInput.expectedResult;
7929
+ if (toolInput.url !== void 0) definitionBody.url = toolInput.url;
7930
+ if (toolInput.priority !== void 0) definitionBody.priority = toolInput.priority;
7931
+ if (toolInput.tags !== void 0) definitionBody.tags = toolInput.tags;
7932
+ if (toolInput.category !== void 0) definitionBody.category = toolInput.category;
7933
+ if (toolInput.automated !== void 0) definitionBody.automated = toolInput.automated;
7934
+ if (toolInput.pinnedAccount !== void 0) definitionBody.pinnedAccount = toolInput.pinnedAccount;
7935
+ if (toolInput.alwaysStartsFreshSession !== void 0) {
7936
+ definitionBody.alwaysStartsFreshSession = toolInput.alwaysStartsFreshSession;
7937
+ }
7938
+ return definitionBody;
7939
+ }
7940
+ function hasTestCaseDefinitionEdit(toolInput) {
7941
+ return Object.keys(buildTestCaseDefinitionUpdateBody(toolInput)).some((fieldName) => fieldName !== "id");
7942
+ }
7943
+ function buildTestCaseStatusUpdateCall(testCaseId, status) {
7944
+ return {
7945
+ method: "PUT",
7946
+ path: `${MUGGLE_TEST_PREFIX}/test-cases/${testCaseId}/state`,
7947
+ body: { status }
7948
+ };
7949
+ }
7950
+
7886
7951
  // packages/mcps/src/mcp/tools/e2e/test-runs-summary-transform.ts
7887
7952
  var UNKNOWN_STATUS = "UNKNOWN";
7888
7953
  function slimEntry(raw) {
@@ -7937,32 +8002,6 @@ function mapTestScriptsSummary(response) {
7937
8002
  };
7938
8003
  }
7939
8004
 
7940
- // packages/mcps/src/mcp/tools/e2e/test-state-upstream.ts
7941
- function buildTestChainingCatalogPath(projectId) {
7942
- return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/catalog`;
7943
- }
7944
- function buildTestStatesPath(projectId) {
7945
- return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/states`;
7946
- }
7947
- function buildTestRolesPath(projectId) {
7948
- return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/roles`;
7949
- }
7950
- function buildTestChainingSettingsPath(projectId) {
7951
- return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/settings`;
7952
- }
7953
- function buildTestChainingPlanPath(projectId) {
7954
- return `${MUGGLE_TEST_PREFIX}/projects/${projectId}/test-chaining/plan`;
7955
- }
7956
- function pickTestCaseTestStateFields(testStateFields) {
7957
- const requestFields = {};
7958
- if (testStateFields.actsAsRoleIds !== void 0) requestFields.actsAsRoleIds = testStateFields.actsAsRoleIds;
7959
- if (testStateFields.prerequisiteStateId !== void 0) {
7960
- requestFields.prerequisiteStateId = testStateFields.prerequisiteStateId;
7961
- }
7962
- if (testStateFields.resultStateId !== void 0) requestFields.resultStateId = testStateFields.resultStateId;
7963
- return requestFields;
7964
- }
7965
-
7966
8005
  // packages/mcps/src/mcp/tools/e2e/tool-registry.ts
7967
8006
  var getWorkflowTimeoutMs = () => getConfig().e2e.workflowTimeoutMs;
7968
8007
  var projectTools = [
@@ -8403,31 +8442,22 @@ var testCaseTools = [
8403
8442
  },
8404
8443
  {
8405
8444
  name: "muggle-remote-test-case-update",
8406
- description: `Directly update an existing test case's fields. Pass only the fields you want to change \u2014 others are left untouched. ${TEST_CASE_LIMIT_GUIDANCE} Use this for cheap, deterministic edits (rename, change status/priority, fix expected result, add tags, set or clear the pinned account with pinnedAccount, set whether every run starts from a fresh session with alwaysStartsFreshSession; pinned account and fresh session apply from the next script generation, not to existing scripts; set the roles it acts as and its prerequisite and result test states with actsAsRoleIds, prerequisiteStateId and resultStateId, null clearing each). Does not touch the associated test script \u2014 script regeneration is a separate workflow (muggle-remote-workflow-start-test-script-generation).`,
8445
+ description: `Directly update an existing test case's fields. Pass only the fields you want to change \u2014 others are left untouched. ${TEST_CASE_LIMIT_GUIDANCE} Use this for cheap, deterministic edits (rename, change status/priority, fix expected result, add tags, set or clear the pinned account with pinnedAccount, set whether every run starts from a fresh session with alwaysStartsFreshSession; pinned account and fresh session apply from the next script generation, not to existing scripts; set the roles it acts as and its prerequisite and result test states with actsAsRoleIds, prerequisiteStateId and resultStateId, null clearing each). A status change follows the test case lifecycle and is written after the other fields: a status the lifecycle does not reach from the current one fails the call with the statuses it does reach, and the other fields stay saved. Does not touch the associated test script \u2014 script regeneration is a separate workflow (muggle-remote-workflow-start-test-script-generation).`,
8407
8446
  inputSchema: TestCaseUpdateInputSchema,
8408
8447
  mapToUpstream: (input) => {
8409
8448
  const toolInput = input;
8410
- const body = { id: toolInput.testCaseId, ...pickTestCaseTestStateFields(toolInput) };
8411
- if (toolInput.title !== void 0) body.title = toolInput.title;
8412
- if (toolInput.description !== void 0) body.description = toolInput.description;
8413
- if (toolInput.goal !== void 0) body.goal = toolInput.goal;
8414
- if (toolInput.precondition !== void 0) body.precondition = toolInput.precondition;
8415
- if (toolInput.expectedResult !== void 0) body.expectedResult = toolInput.expectedResult;
8416
- if (toolInput.url !== void 0) body.url = toolInput.url;
8417
- if (toolInput.status !== void 0) body.status = toolInput.status;
8418
- if (toolInput.priority !== void 0) body.priority = toolInput.priority;
8419
- if (toolInput.tags !== void 0) body.tags = toolInput.tags;
8420
- if (toolInput.category !== void 0) body.category = toolInput.category;
8421
- if (toolInput.automated !== void 0) body.automated = toolInput.automated;
8422
- if (toolInput.pinnedAccount !== void 0) body.pinnedAccount = toolInput.pinnedAccount;
8423
- if (toolInput.alwaysStartsFreshSession !== void 0) {
8424
- body.alwaysStartsFreshSession = toolInput.alwaysStartsFreshSession;
8449
+ if (toolInput.status !== void 0 && !hasTestCaseDefinitionEdit(toolInput)) {
8450
+ return buildTestCaseStatusUpdateCall(toolInput.testCaseId, toolInput.status);
8425
8451
  }
8426
8452
  return {
8427
8453
  method: "PUT",
8428
8454
  path: `${MUGGLE_TEST_PREFIX}/test-cases/${toolInput.testCaseId}`,
8429
- body
8455
+ body: buildTestCaseDefinitionUpdateBody(toolInput)
8430
8456
  };
8457
+ },
8458
+ mapToFollowUpUpstream: (input) => {
8459
+ const toolInput = input;
8460
+ return toolInput.status !== void 0 && hasTestCaseDefinitionEdit(toolInput) ? [buildTestCaseStatusUpdateCall(toolInput.testCaseId, toolInput.status)] : [];
8431
8461
  }
8432
8462
  },
8433
8463
  {
@@ -9765,7 +9795,7 @@ var authTools = [
9765
9795
  },
9766
9796
  localHandler: async () => {
9767
9797
  const authService = getAuthService();
9768
- const status = authService.getAuthStatus();
9798
+ const status = await authService.getRenewedAuthStatus();
9769
9799
  if (!status.authenticated) {
9770
9800
  return {
9771
9801
  authenticated: false,
@@ -9935,7 +9965,10 @@ async function executeQaTool(toolName, input, correlationId) {
9935
9965
  try {
9936
9966
  const upstreamCall = tool.mapToUpstream(resolvedInput);
9937
9967
  const client = getPromptServiceClient();
9938
- const response = await client.execute(upstreamCall, credentials, correlationId);
9968
+ let response = await client.execute(upstreamCall, credentials, correlationId);
9969
+ for (const followUpCall of tool.mapToFollowUpUpstream?.(resolvedInput) ?? []) {
9970
+ response = await client.execute(followUpCall, credentials, correlationId);
9971
+ }
9939
9972
  const mapper = tool.mapFromUpstream || defaultResponseMapper;
9940
9973
  const mappedResponse = mapper(response, resolvedInput);
9941
9974
  const dashboardLinkTarget = tool.dashboardLink?.(resolvedInput, response) ?? null;
@@ -10544,7 +10577,7 @@ var checkStatusTool = {
10544
10577
  logger7.info("Executing muggle-local-check-status");
10545
10578
  const authService = getAuthService();
10546
10579
  const storageService = getStorageService();
10547
- const authStatus = authService.getAuthStatus();
10580
+ const authStatus = await authService.getRenewedAuthStatus();
10548
10581
  const content = [
10549
10582
  "## Muggle Test Local Status",
10550
10583
  "",
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { runCli } from './chunk-7Y3PHHOL.js';
3
- import './chunk-H47WQEDR.js';
2
+ import { runCli } from './chunk-A23XCBO7.js';
3
+ import './chunk-RM6CWVC2.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-7Y3PHHOL.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-H47WQEDR.js';
1
+ export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-A23XCBO7.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-RM6CWVC2.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.34.0-staging.312",
4
+ "version": "5.34.0-staging.314",
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.34.0-staging.312",
7
+ "@muggleai/works@5.34.0-staging.314",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.34.0-staging.312",
3
+ "version": "5.34.0-staging.314",
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.34.0-staging.312",
5
+ "version": "5.34.0-staging.314",
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.34.0-staging.312",
7
+ "@muggleai/works@5.34.0-staging.314",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "release": "5.34.0-staging.312",
3
- "buildId": "run-312-1",
4
- "commitSha": "f65b61bb4dcf14ae38534b7527e4c1f774da9509",
5
- "buildTime": "2026-11-05T23:35:58Z",
2
+ "release": "5.34.0-staging.314",
3
+ "buildId": "run-314-1",
4
+ "commitSha": "5bd650f4f166f06eab60982dc90e6b0bfe5fd5c2",
5
+ "buildTime": "2026-11-06T08:02:55Z",
6
6
  "serviceName": "muggle-ai-works-mcp"
7
7
  }
@@ -1 +1 @@
1
- export { ACTION_SCRIPT_FILE_NAME, BASE_REMOTE_NAME, BLOCKING_FRESHNESS_VERDICTS, BRANCH_CREATION_REFLOG_PREFIX, BUSY_EXIT_CODE, CLAUDE_CODE_AUTH_STATUS_ARGS, CLAUDE_CODE_CHECK_TIMEOUT_MS, CLAUDE_CODE_EXECUTABLE, CLAUDE_CODE_EXECUTABLE_NOT_FOUND_CODE, CLAUDE_CODE_SESSION_LINK_ENV_VARS, CLAUDE_CODE_VERSION_ARGS, CheckoutFreshnessVerdict, ClaudeCodeReadiness, DEFAULT_LOCAL_LLM_BASE_URL, DEFAULT_PREFERENCES, ELECTRON_APP_CHECKSUMS_ASSET_NAME, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ELECTRON_APP_RESOURCES_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, LLM_CREDENTIALS_FILE_MODE, LLM_CREDENTIALS_FILE_NAME, LLM_SOURCE_HEADER, LLM_SOURCE_OPTIONS, LLM_SOURCE_OWNED_ENV_NAMES, LLM_SOURCE_PROMPT, LLM_SOURCE_SCOPE_NOTE, LlmSource, MASKED_API_KEY_PREFIX, MASKED_API_KEY_VISIBLE_CHARS, MAX_LISTED_INHERITED_COMMITS, ONBOARDING_BLANKET_OPTIONS, ONBOARDING_CHOICE_GROUPS, ONBOARDING_MAX_OFFERS, ONBOARDING_PRIMER_BULLETS, ONBOARDING_PRIMER_HEADLINE, ONBOARDING_TOGGLE_GROUPS, ONBOARDING_TOGGLE_PROMPT, ONBOARDING_UNSELECTED_TOGGLE_VALUE, OnboardingBlanketChoice, OnboardingGroupKind, PREFERENCES_FILE_NAME, PREFERENCES_PROJECT_DIR_NAME, PREFERENCES_SCHEMA, PREFERENCES_VERSION, PREFERENCE_ALLOWED_VALUES, PreferenceKey, PreferenceValue, ProjectPreferencesReconcileOutcome, RUN_SESSIONS_DIR_NAME, RUN_VIEW_DASHBOARD_LINK_LABEL, RunViewError, RuntimeTarget, SCREENSHOT_DIR_RELATIVE_PATH, SCREENSHOT_FILE_EXTENSION, StackCheckVerdict, StackClaimVerdict, StackLeaseEndReason, StackMismatchKind, StackPortAction, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyLlmSourceSelection, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildLlmSourcePlan, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, checkServiceStack, claimServiceStack, compareQueuePlaces, completeOnboarding, createApiKeyWithToken, createChildLogger, decideStackClaim, decideStackReap, decideStackRelease, decideStackRunEnd, decideStackRunStart, deleteApiKeyData, deleteCredentials, describeLlmSourceStatus, describeStackMismatch, e2e_exports as e2e, evaluateCheckoutFreshness, findVacatedNeeds, finishStackRun, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLlmSourceOption, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, isValidLocalBaseUrl, loadApiKeyData, loadCredentials, local_exports as localQa, lookUpCheckoutPullRequest, markOnboardingCompleted, maskLlmApiKey, mcp_exports as mcp, needsConflict, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, portOfUrl, e2e_exports as qa, readPreferencesMetadata, readRunView, readServiceStackStatus, reapServiceStack, reconcileProjectPreferences, recordOnboardingSkip, releaseServiceStack, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveElectronAppResourcesDir, resolveLlmSourceStatus, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, startStackRun, stopVacatedServices, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writeLlmEnvBlock, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-H47WQEDR.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_CHECKSUMS_ASSET_NAME, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ELECTRON_APP_RESOURCES_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, LLM_CREDENTIALS_FILE_MODE, LLM_CREDENTIALS_FILE_NAME, LLM_SOURCE_HEADER, LLM_SOURCE_OPTIONS, LLM_SOURCE_OWNED_ENV_NAMES, LLM_SOURCE_PROMPT, LLM_SOURCE_SCOPE_NOTE, LlmSource, MASKED_API_KEY_PREFIX, MASKED_API_KEY_VISIBLE_CHARS, MAX_LISTED_INHERITED_COMMITS, ONBOARDING_BLANKET_OPTIONS, ONBOARDING_CHOICE_GROUPS, ONBOARDING_MAX_OFFERS, ONBOARDING_PRIMER_BULLETS, ONBOARDING_PRIMER_HEADLINE, ONBOARDING_TOGGLE_GROUPS, ONBOARDING_TOGGLE_PROMPT, ONBOARDING_UNSELECTED_TOGGLE_VALUE, OnboardingBlanketChoice, OnboardingGroupKind, PREFERENCES_FILE_NAME, PREFERENCES_PROJECT_DIR_NAME, PREFERENCES_SCHEMA, PREFERENCES_VERSION, PREFERENCE_ALLOWED_VALUES, PreferenceKey, PreferenceValue, ProjectPreferencesReconcileOutcome, RUN_SESSIONS_DIR_NAME, RUN_VIEW_DASHBOARD_LINK_LABEL, RunViewError, RuntimeTarget, SCREENSHOT_DIR_RELATIVE_PATH, SCREENSHOT_FILE_EXTENSION, StackCheckVerdict, StackClaimVerdict, StackLeaseEndReason, StackMismatchKind, StackPortAction, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyLlmSourceSelection, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildLlmSourcePlan, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, checkServiceStack, claimServiceStack, compareQueuePlaces, completeOnboarding, createApiKeyWithToken, createChildLogger, decideStackClaim, decideStackReap, decideStackRelease, decideStackRunEnd, decideStackRunStart, deleteApiKeyData, deleteCredentials, describeLlmSourceStatus, describeStackMismatch, e2e_exports as e2e, evaluateCheckoutFreshness, findVacatedNeeds, finishStackRun, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLlmSourceOption, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, isValidLocalBaseUrl, loadApiKeyData, loadCredentials, local_exports as localQa, lookUpCheckoutPullRequest, markOnboardingCompleted, maskLlmApiKey, mcp_exports as mcp, needsConflict, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, portOfUrl, e2e_exports as qa, readPreferencesMetadata, readRunView, readServiceStackStatus, reapServiceStack, reconcileProjectPreferences, recordOnboardingSkip, releaseServiceStack, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveElectronAppResourcesDir, resolveLlmSourceStatus, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, startStackRun, stopVacatedServices, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writeLlmEnvBlock, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-RM6CWVC2.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.34.0-staging.312",
4
+ "version": "5.34.0-staging.314",
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.34.0-staging.312",
4
+ "version": "5.34.0-staging.314",
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.34.0-staging.312",
7
+ "@muggleai/works@5.34.0-staging.314",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.34.0-staging.312",
3
+ "version": "5.34.0-staging.314",
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.34.0-staging.312",
5
+ "version": "5.34.0-staging.314",
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.34.0-staging.312",
7
+ "@muggleai/works@5.34.0-staging.314",
8
8
  "serve"
9
9
  ]
10
10
  }