@muggleai/works 5.35.0-staging.324 → 5.35.0-staging.325

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.35.0-staging.324"
12
+ "version": "5.35.0-staging.325"
13
13
  }
14
14
  ]
15
15
  }
package/README.md CHANGED
@@ -281,7 +281,7 @@ so the result carries a viewUrl straight to the dashboard
281
281
 
282
282
  ## MCP tool reference
283
283
 
284
- 126 tools across authentication, projects, use cases, test cases, test states, scripts, workflows, local execution, reporting, secrets, billing, and administration. Call them directly from any MCP client to build your own pipeline.
284
+ 130 tools across authentication, projects, use cases, test cases, test states, scripts, workflows, local execution, reporting, secrets, pricing, billing, and administration. Call them directly from any MCP client to build your own pipeline.
285
285
 
286
286
  **Authentication** — `muggle-remote-auth-status`, `-login`, `-poll`, `-logout`, plus `-api-key-create`, `-list`, `-get`, `-revoke`.
287
287
 
@@ -346,9 +346,11 @@ Bulk-preview submissions return a `jobId` immediately. Poll `muggle-remote-bulk-
346
346
  | `muggle-local-preferences-set` | Set harness preferences |
347
347
  | `muggle-remote-local-run-upload` | Publish a local run to the cloud |
348
348
 
349
+ **Pricing and billing** — `muggle-remote-pricing-get` reads the live plans, token price and token packages without sign-in. `muggle-remote-wallet-package-list` lists the packages the signed-in user can buy, with the `packageId` that `muggle-remote-wallet-topup` and `-wallet-auto-topup-update` take.
350
+
349
351
  **Reporting** — `muggle-remote-report-stats-summary-get`, `-cost-query`, `-final-generate` (PDF/HTML/Markdown), `-preferences-upsert`.
350
352
 
351
- **Administration** — `muggle-remote-prd-file-*` (upload and process requirements docs), `muggle-remote-secret-*` (credentials for test environments), `muggle-remote-wallet-*` (credits, payment methods, auto-topup), `muggle-remote-recommend-cicd-setup` / `-recommend-schedule`, `muggle-remote-user-feedback-*`.
353
+ **Administration** — `muggle-remote-prd-file-*` (upload and process requirements docs), `muggle-remote-secret-*` (credentials for test environments), `muggle-remote-wallet-*` (top-ups, payment methods, auto-topup), `muggle-remote-recommend-cicd-setup` / `-recommend-schedule`, `muggle-remote-user-feedback-*`.
352
354
 
353
355
  ---
354
356
 
@@ -380,6 +382,9 @@ muggle login [--key-expiry 90d]
380
382
  muggle logout
381
383
  muggle status
382
384
 
385
+ # Pricing
386
+ muggle pricing [--json] # Plans, token price and token packages from the live catalog
387
+
383
388
  # Pull requests
384
389
  muggle ci-install [--force] # Add or update the walkthrough check in GitHub Actions
385
390
  muggle pr-walkthrough-check # Verify a PR's walkthrough comment is settled
@@ -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-EYG772QF.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, e2e_exports, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, claimServiceStack, BUSY_EXIT_CODE, checkServiceStack, releaseServiceStack, readServiceStackStatus, resolvePreferences, buildElectronAppChecksumsUrl, OnboardingBlanketChoice, PreferenceKey, LlmSource, applyLlmSourceSelection, describeStackMismatch, ELECTRON_APP_CHECKSUMS_ASSET_NAME, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl, local_exports } from './chunk-JK62L5EO.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';
@@ -11,7 +11,7 @@ import { join, dirname, resolve, win32, basename } from 'path';
11
11
  import { fileURLToPath, pathToFileURL } from 'url';
12
12
  import { Command } from 'commander';
13
13
  import axios from 'axios';
14
- import { createHash, X509Certificate, verify } from 'crypto';
14
+ import { randomUUID, createHash, X509Certificate, verify } from 'crypto';
15
15
  import { platform, homedir, arch, tmpdir, hostname } from 'os';
16
16
  import { execFile, execFileSync, spawnSync, spawn } from 'child_process';
17
17
  import { createInterface } from 'readline/promises';
@@ -1264,7 +1264,7 @@ async function resolveGsScreenshotUrls(report, opts) {
1264
1264
  if (gsUrls.length === 0) {
1265
1265
  return report;
1266
1266
  }
1267
- const mcps = await import('./src-3AIUIKP6.js');
1267
+ const mcps = await import('./src-CTTMRHCL.js');
1268
1268
  const credentials = await mcps.getCallerCredentialsAsync();
1269
1269
  if (!credentials.bearerToken && !credentials.apiKey) {
1270
1270
  stderrWrite(
@@ -2839,6 +2839,10 @@ function getHelpGuidance() {
2839
2839
  ` ${cmd("muggle logout")} Clear stored credentials`,
2840
2840
  ` ${cmd("muggle status")} Show authentication status`,
2841
2841
  "",
2842
+ ` ${colorize("Pricing:", COLORS.bold)}`,
2843
+ ` ${cmd("muggle pricing")} Plans, token price and token packages`,
2844
+ ` ${cmd("muggle pricing --json")} The same catalog as JSON`,
2845
+ "",
2842
2846
  ` ${colorize("Watch Service:", COLORS.bold)}`,
2843
2847
  ` ${cmd("muggle watch status")} Sessions, processes, PR watchers, findings`,
2844
2848
  ` ${cmd("muggle watch tick")} Run one watch pass now`,
@@ -3891,6 +3895,68 @@ async function statusCommand() {
3891
3895
  }
3892
3896
  }
3893
3897
 
3898
+ // src/cli/pricing-constants.ts
3899
+ var TOKENS_PER_MILLION = 1e6;
3900
+ var PRICING_COMMAND_LOG_LEVEL = "warn";
3901
+
3902
+ // src/cli/pricing.ts
3903
+ function formatUsd(amountUsd) {
3904
+ return Number.isInteger(amountUsd) ? `$${amountUsd}` : `$${amountUsd.toFixed(2)}`;
3905
+ }
3906
+ function formatTokens(tokens) {
3907
+ return `${(tokens / TOKENS_PER_MILLION).toLocaleString("en-US", { maximumFractionDigits: 1 })}M`;
3908
+ }
3909
+ function formatPlanPrice(plan) {
3910
+ if (!plan.isPerSeat) {
3911
+ return `${formatUsd(plan.monthlyPriceUsd)}/mo`;
3912
+ }
3913
+ const seatFloor = plan.minimumSeats ? `, min ${plan.minimumSeats} seats` : "";
3914
+ return `${formatUsd(plan.monthlyPriceUsd)}/seat/mo${seatFloor}`;
3915
+ }
3916
+ function formatIncludedTokens(plan) {
3917
+ if (plan.includedTokens <= 0) {
3918
+ return "no included tokens";
3919
+ }
3920
+ const cadence = plan.tokenGrantCadence ? ` ${plan.tokenGrantCadence.toLowerCase().replace(/_/g, " ")}` : "";
3921
+ return `${formatTokens(plan.includedTokens)} tokens${cadence}`;
3922
+ }
3923
+ function renderPricingText(catalog) {
3924
+ const lines = [`Muggle AI pricing${catalog.catalogVersion ? ` (catalog ${catalog.catalogVersion})` : ""}`, "", "Plans"];
3925
+ const planNameWidth = Math.max(0, ...catalog.plans.map((plan) => plan.name.length));
3926
+ for (const plan of catalog.plans) {
3927
+ const workflows = `${plan.concurrentWorkflows} concurrent workflow${plan.concurrentWorkflows === 1 ? "" : "s"}`;
3928
+ lines.push(` ${plan.name.padEnd(planNameWidth)} ${formatPlanPrice(plan)} \xB7 ${workflows} \xB7 ${formatIncludedTokens(plan)}`);
3929
+ }
3930
+ if (catalog.tokenPackages.length > 0) {
3931
+ lines.push("", "Token packages");
3932
+ const packageNameWidth = Math.max(...catalog.tokenPackages.map((tokenPackage) => tokenPackage.name.length));
3933
+ for (const tokenPackage of catalog.tokenPackages) {
3934
+ lines.push(
3935
+ ` ${tokenPackage.name.padEnd(packageNameWidth)} ${formatTokens(tokenPackage.tokens)} tokens \xB7 ${formatUsd(tokenPackage.priceUsd)} (${tokenPackage.packageId})`
3936
+ );
3937
+ }
3938
+ }
3939
+ if (catalog.tokenPriceUsdPerMillion !== null) {
3940
+ lines.push("", `Tokens cost ${formatUsd(catalog.tokenPriceUsdPerMillion)} per million.`);
3941
+ }
3942
+ return lines.join("\n");
3943
+ }
3944
+ async function pricingCommand(options = {}) {
3945
+ getLogger().level = PRICING_COMMAND_LOG_LEVEL;
3946
+ const toolResult = await e2e_exports.executeQaTool(e2e_exports.PRICING_GET_TOOL_NAME, {}, randomUUID());
3947
+ if (toolResult.isError) {
3948
+ const failure = JSON.parse(String(toolResult.content));
3949
+ console.error(`Could not load pricing: ${failure.message ?? String(toolResult.content)}`);
3950
+ process.exitCode = 1;
3951
+ return;
3952
+ }
3953
+ if (options.json) {
3954
+ console.log(toolResult.content);
3955
+ return;
3956
+ }
3957
+ console.log(renderPricingText(JSON.parse(String(toolResult.content))));
3958
+ }
3959
+
3894
3960
  // src/cli/pr-walkthrough/constants.ts
3895
3961
  var CHECK_RUN_NAME = "muggle-walkthrough";
3896
3962
  var CHECK_RUN_TITLE = "Muggle AI PR visual walkthrough";
@@ -7528,6 +7594,7 @@ function createProgram() {
7528
7594
  program.command("login").description("Authenticate with Muggle AI (uses device code flow)").option("--key-name <name>", "Name for the API key").option("--key-expiry <expiry>", "API key expiry: 30d, 90d, 1y, never", "90d").action(loginCommand);
7529
7595
  program.command("logout").description("Clear stored credentials").action(logoutCommand);
7530
7596
  program.command("status").description("Show authentication status").action(statusCommand);
7597
+ program.command("pricing").description("Show Muggle AI plans, token price and token packages from the live catalog").option("--json", "Print the catalog as JSON").action(pricingCommand);
7531
7598
  program.command("build-pr-section").description("Render a muggle-do PR body evidence block from an e2e report on stdin").option("--max-body-bytes <n>", "Max UTF-8 byte budget for the PR body (default 60000)").option("--base <branch>", "Branch the PR merges into, for verifying cited baseline runs (default: the remote's default branch)").action(buildPrSectionCommand);
7532
7599
  program.command("run-view").argument("[runId]", "Run id, or a unique prefix of one (default: the newest run)").description("Show a local run's steps beside the frames they produced").option("--html", "Render a self-contained HTML page instead of terminal text").option("--open", "Open the rendered page in the default browser (implies --html)").option("--out-dir <dir>", "Directory to write the page into (default: current directory)").action(runViewCommand);
7533
7600
  program.command("pr-walkthrough-check").description("Check that a PR's Muggle AI walkthrough comment carries a result or a stated skip").option("--repo <owner/repo>", "Repository (default: $GITHUB_REPOSITORY)").option("--pr <number>", "Pull request number (default: the Actions event payload)").option("--head-sha <sha>", "Commit the check run attaches to (default: the PR head)").option("--check-run", "Publish the verdict as a check run instead of failing the process").action(prWalkthroughCheckCommand);
@@ -5336,6 +5336,8 @@ function toolRequiresAuth(toolName) {
5336
5336
  "muggle-remote-auth-login",
5337
5337
  "muggle-remote-auth-poll",
5338
5338
  "muggle-remote-auth-logout",
5339
+ // Public catalog read
5340
+ "muggle-remote-pricing-get",
5339
5341
  // Local project tools (no cloud)
5340
5342
  "muggle-local-project-create",
5341
5343
  "muggle-local-project-list",
@@ -6347,6 +6349,9 @@ __export(tools_exports, {
6347
6349
  // packages/mcps/src/mcp/tools/e2e/index.ts
6348
6350
  var e2e_exports = {};
6349
6351
  __export(e2e_exports, {
6352
+ PRICING_GET_TOOL_NAME: () => PRICING_GET_TOOL_NAME,
6353
+ STRIPE_MINOR_UNITS_PER_MAJOR_UNIT: () => STRIPE_MINOR_UNITS_PER_MAJOR_UNIT,
6354
+ WALLET_PACKAGES_PATH: () => WALLET_PACKAGES_PATH,
6350
6355
  allQaToolDefinitions: () => allQaToolDefinitions,
6351
6356
  executeQaTool: () => executeQaTool,
6352
6357
  getQaToolByName: () => getQaToolByName
@@ -7328,6 +7333,10 @@ function detectMcpHost(env = process.env) {
7328
7333
  return "unknown";
7329
7334
  }
7330
7335
 
7336
+ // packages/mcps/src/mcp/e2e/upstream-client-constants.ts
7337
+ var PRODUCT_CATALOG_PATH = "/v1/public/product-catalog";
7338
+ var PUBLIC_UPSTREAM_PATHS = [PRODUCT_CATALOG_PATH];
7339
+
7331
7340
  // packages/mcps/src/mcp/e2e/upstream-client.ts
7332
7341
  var MUTATING_METHODS = ["POST", "PUT", "PATCH", "DELETE"];
7333
7342
  var ALLOWED_UPSTREAM_PREFIXES = [
@@ -7358,7 +7367,7 @@ var PromptServiceClient = class {
7358
7367
  * @throws GatewayError if path is not allowed.
7359
7368
  */
7360
7369
  validatePath(path24) {
7361
- const isAllowed = ALLOWED_UPSTREAM_PREFIXES.some((prefix) => path24.startsWith(prefix));
7370
+ const isAllowed = PUBLIC_UPSTREAM_PATHS.includes(path24) || ALLOWED_UPSTREAM_PREFIXES.some((prefix) => path24.startsWith(prefix));
7362
7371
  if (!isAllowed) {
7363
7372
  const logger7 = getLogger();
7364
7373
  logger7.error("Path not in allowlist", {
@@ -7492,7 +7501,8 @@ var PromptServiceClient = class {
7492
7501
  */
7493
7502
  async execute(call, credentials, correlationId) {
7494
7503
  const logger7 = getLogger();
7495
- if (!credentials.bearerToken && !credentials.apiKey) {
7504
+ const isPublicPath = PUBLIC_UPSTREAM_PATHS.includes(call.path);
7505
+ if (!isPublicPath && !credentials.bearerToken && !credentials.apiKey) {
7496
7506
  throw new GatewayError({
7497
7507
  code: "UNAUTHORIZED" /* UNAUTHORIZED */,
7498
7508
  message: "Missing authentication. Please run 'muggle login' to authenticate."
@@ -7758,6 +7768,54 @@ function mapOrganizationList(response) {
7758
7768
  };
7759
7769
  }
7760
7770
 
7771
+ // packages/mcps/src/mcp/tools/e2e/pricing-transform-constants.ts
7772
+ var PRICING_GET_TOOL_NAME = "muggle-remote-pricing-get";
7773
+ var WALLET_PACKAGES_PATH = "/v1/protected/wallet/packages";
7774
+ var STRIPE_MINOR_UNITS_PER_MAJOR_UNIT = 100;
7775
+
7776
+ // packages/mcps/src/mcp/tools/e2e/pricing-transform.ts
7777
+ function mapPricingCatalog(response) {
7778
+ const catalog = response.data ?? {};
7779
+ const plans = Object.values(catalog.tiers ?? {}).map((tier) => ({
7780
+ planId: tier.id,
7781
+ name: tier.name,
7782
+ description: tier.description ?? "",
7783
+ monthlyPriceUsd: tier.pricing.monthly,
7784
+ isPerSeat: tier.pricing.perSeat,
7785
+ minimumSeats: tier.pricing.minimumSeats ?? null,
7786
+ concurrentWorkflows: tier.quota.concurrentWorkflows,
7787
+ includedTokens: tier.quota.monthlyTokens,
7788
+ tokenGrantCadence: tier.quota.tokenGrantCadence ?? null,
7789
+ featureDescriptions: tier.featureDescriptions ?? []
7790
+ }));
7791
+ const tokenPackages = Object.values(catalog.tokenPackages ?? {}).map((tokenPackage) => ({
7792
+ packageId: tokenPackage.id,
7793
+ name: tokenPackage.displayName,
7794
+ tokens: tokenPackage.tokens,
7795
+ priceUsd: tokenPackage.priceUsd
7796
+ }));
7797
+ return {
7798
+ catalogVersion: catalog.version ?? null,
7799
+ plans,
7800
+ tokenPackages,
7801
+ tokenPriceUsdPerMillion: catalog.tokenCostUsdPerMillion ?? null
7802
+ };
7803
+ }
7804
+ function mapWalletPackageList(response) {
7805
+ const envelope = response.data ?? {};
7806
+ return {
7807
+ packages: (envelope.packages ?? []).map((tokenPackage) => ({
7808
+ packageId: tokenPackage.packageId,
7809
+ name: tokenPackage.name,
7810
+ description: tokenPackage.description ?? "",
7811
+ tokens: tokenPackage.tokenAmount,
7812
+ price: tokenPackage.price === void 0 ? null : tokenPackage.price / STRIPE_MINOR_UNITS_PER_MAJOR_UNIT,
7813
+ currency: tokenPackage.currency ?? null
7814
+ })),
7815
+ tokenPriceUsdPerMillion: envelope.tokenCostUsdPerMillion ?? null
7816
+ };
7817
+ }
7818
+
7761
7819
  // packages/mcps/src/mcp/tools/e2e/project-display-resolutions-constants.ts
7762
7820
  var KNOWN_DISPLAY_RESOLUTIONS = new Set(Object.values(DisplayResolution));
7763
7821
  var KNOWN_RUN_STRATEGIES = new Set(Object.values(RunStrategy));
@@ -9560,10 +9618,27 @@ var prdFileTools = [
9560
9618
  }
9561
9619
  }
9562
9620
  ];
9621
+ var pricingTools = [
9622
+ {
9623
+ name: PRICING_GET_TOOL_NAME,
9624
+ description: "Get Muggle AI's current pricing: plans (monthly price, per-seat terms, concurrent workflows, included tokens, features), the token price per million, and the token packages for sale. Read live from the backend; no sign-in needed. Response shape: { catalogVersion, plans: [{ planId, name, monthlyPriceUsd, isPerSeat, minimumSeats, concurrentWorkflows, includedTokens, tokenGrantCadence, featureDescriptions }], tokenPackages: [{ packageId, name, tokens, priceUsd }], tokenPriceUsdPerMillion }.",
9625
+ inputSchema: EmptyInputSchema,
9626
+ requiresAuth: false,
9627
+ mapToUpstream: () => ({ method: "GET", path: PRODUCT_CATALOG_PATH }),
9628
+ mapFromUpstream: mapPricingCatalog
9629
+ }
9630
+ ];
9563
9631
  var walletTools = [
9632
+ {
9633
+ name: "muggle-remote-wallet-package-list",
9634
+ description: "List the token packages the signed-in user can buy, with the packageId muggle-remote-wallet-topup and muggle-remote-wallet-auto-topup-update take. Response shape: { packages: [{ packageId, name, description, tokens, price, currency }], tokenPriceUsdPerMillion }.",
9635
+ inputSchema: EmptyInputSchema,
9636
+ mapToUpstream: () => ({ method: "GET", path: WALLET_PACKAGES_PATH }),
9637
+ mapFromUpstream: mapWalletPackageList
9638
+ },
9564
9639
  {
9565
9640
  name: "muggle-remote-wallet-topup",
9566
- description: "Create a Stripe checkout session to purchase a token package.",
9641
+ description: "Create a Stripe checkout session to purchase a token package. Get packageId from muggle-remote-wallet-package-list.",
9567
9642
  inputSchema: WalletTopUpInputSchema,
9568
9643
  mapToUpstream: (input) => {
9569
9644
  const toolInput = input;
@@ -10049,6 +10124,7 @@ var allQaToolDefinitions = [
10049
10124
  ...reportTools,
10050
10125
  ...secretTools,
10051
10126
  ...prdFileTools,
10127
+ ...pricingTools,
10052
10128
  ...walletTools,
10053
10129
  ...recommendationTools,
10054
10130
  ...apiKeyTools,
@@ -11385,6 +11461,7 @@ __export(e2e_exports2, {
11385
11461
  LocalRunUploadInputSchema: () => LocalRunUploadInputSchema,
11386
11462
  McpErrorCode: () => McpErrorCode,
11387
11463
  MuggleEntityIdSchema: () => MuggleEntityIdSchema,
11464
+ PRICING_GET_TOOL_NAME: () => PRICING_GET_TOOL_NAME,
11388
11465
  PaginationInputSchema: () => PaginationInputSchema,
11389
11466
  PrdFileDeleteInputSchema: () => PrdFileDeleteInputSchema,
11390
11467
  PrdFileListInputSchema: () => PrdFileListInputSchema,
@@ -11414,6 +11491,7 @@ __export(e2e_exports2, {
11414
11491
  RunEnvironmentSchema: () => RunEnvironmentSchema,
11415
11492
  RunSettingsListInputSchema: () => RunSettingsListInputSchema,
11416
11493
  RunStrategy: () => RunStrategy,
11494
+ STRIPE_MINOR_UNITS_PER_MAJOR_UNIT: () => STRIPE_MINOR_UNITS_PER_MAJOR_UNIT,
11417
11495
  SecretCreateInputSchema: () => SecretCreateInputSchema,
11418
11496
  SecretDeleteInputSchema: () => SecretDeleteInputSchema,
11419
11497
  SecretFieldEnum: () => SecretFieldEnum,
@@ -11473,6 +11551,7 @@ __export(e2e_exports2, {
11473
11551
  UserFeedbackTargetSchema: () => UserFeedbackTargetSchema,
11474
11552
  UserFeedbackTargetTypeSchema: () => UserFeedbackTargetTypeSchema,
11475
11553
  UtcDateKeySchema: () => UtcDateKeySchema,
11554
+ WALLET_PACKAGES_PATH: () => WALLET_PACKAGES_PATH,
11476
11555
  WalletAutoTopUpSetPaymentMethodInputSchema: () => WalletAutoTopUpSetPaymentMethodInputSchema,
11477
11556
  WalletAutoTopUpUpdateInputSchema: () => WalletAutoTopUpUpdateInputSchema,
11478
11557
  WalletPaymentMethodCreateSetupSessionInputSchema: () => WalletPaymentMethodCreateSetupSessionInputSchema,
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { runCli } from './chunk-RRZ7PL3G.js';
3
- import './chunk-EYG772QF.js';
2
+ import { runCli } from './chunk-FSKNUNSD.js';
3
+ import './chunk-JK62L5EO.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-RRZ7PL3G.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-EYG772QF.js';
1
+ export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-FSKNUNSD.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-JK62L5EO.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.35.0-staging.324",
4
+ "version": "5.35.0-staging.325",
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.35.0-staging.324",
7
+ "@muggleai/works@5.35.0-staging.325",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.35.0-staging.324",
3
+ "version": "5.35.0-staging.325",
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.35.0-staging.324",
5
+ "version": "5.35.0-staging.325",
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.35.0-staging.324",
7
+ "@muggleai/works@5.35.0-staging.325",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "release": "5.35.0-staging.324",
3
- "buildId": "run-324-1",
4
- "commitSha": "4144f5adb9cf0a3c4b06bca6da9517e4a8c2d438",
5
- "buildTime": "2026-11-10T06:29:55Z",
2
+ "release": "5.35.0-staging.325",
3
+ "buildId": "run-325-1",
4
+ "commitSha": "af2b92a326b9abf3b2effe09e398d482e9c9cd1f",
5
+ "buildTime": "2026-11-10T21:35:25Z",
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-EYG772QF.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-JK62L5EO.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.35.0-staging.324",
4
+ "version": "5.35.0-staging.325",
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.35.0-staging.324",
4
+ "version": "5.35.0-staging.325",
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.35.0-staging.324",
7
+ "@muggleai/works@5.35.0-staging.325",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.35.0-staging.324",
3
+ "version": "5.35.0-staging.325",
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.35.0-staging.324",
5
+ "version": "5.35.0-staging.325",
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.35.0-staging.324",
7
+ "@muggleai/works@5.35.0-staging.325",
8
8
  "serve"
9
9
  ]
10
10
  }