@muggleai/works 5.26.0-staging.211 → 5.26.0-staging.213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/dist/{chunk-3Y6U6TRB.js → chunk-E44WTZTP.js} +11 -12
- package/dist/{chunk-H62MFQKC.js → chunk-MJ34HBWC.js} +180 -3
- package/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/.codex-mcp.json +1 -1
- package/dist/plugin/.codex-plugin/plugin.json +1 -1
- package/dist/plugin/.cursor-plugin/plugin.json +1 -1
- package/dist/plugin/.mcp.json +1 -1
- package/dist/release-manifest.json +3 -3
- package/dist/{src-A45WRSIF.js → src-B7WALKBP.js} +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-mcp.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.cursor-plugin/plugin.json +1 -1
- package/plugin/.mcp.json +1 -1
- package/scripts/muggle-watch/README.md +1 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"name": "muggleai",
|
|
10
10
|
"source": "./plugin",
|
|
11
11
|
"description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
|
|
12
|
-
"version": "5.26.0-staging.
|
|
12
|
+
"version": "5.26.0-staging.213"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __export, getLogger, 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, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, claimServiceStack, BUSY_EXIT_CODE, checkServiceStack, releaseServiceStack, readServiceStackStatus, resolvePreferences, OnboardingBlanketChoice, PreferenceKey, getDataDir } from './chunk-
|
|
1
|
+
import { __export, getLogger, 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, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, claimServiceStack, BUSY_EXIT_CODE, checkServiceStack, releaseServiceStack, readServiceStackStatus, resolvePreferences, OnboardingBlanketChoice, PreferenceKey, getDataDir } from './chunk-MJ34HBWC.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';
|
|
@@ -1068,7 +1068,7 @@ async function resolveGsScreenshotUrls(report, opts) {
|
|
|
1068
1068
|
if (gsUrls.length === 0) {
|
|
1069
1069
|
return report;
|
|
1070
1070
|
}
|
|
1071
|
-
const mcps = await import('./src-
|
|
1071
|
+
const mcps = await import('./src-B7WALKBP.js');
|
|
1072
1072
|
const credentials = await mcps.getCallerCredentialsAsync();
|
|
1073
1073
|
if (!credentials.bearerToken && !credentials.apiKey) {
|
|
1074
1074
|
stderrWrite(
|
|
@@ -2339,6 +2339,7 @@ var CLAUDE_SESSION_REGISTRY_DIR_NAME = "sessions";
|
|
|
2339
2339
|
var CLAUDE_PROJECTS_DIR_NAME = "projects";
|
|
2340
2340
|
var CLAUDE_INSTALLED_PLUGINS_RELATIVE_PATH = ["plugins", "installed_plugins.json"];
|
|
2341
2341
|
var RELOAD_PLUGIN_SCOPE = "user";
|
|
2342
|
+
var MUGGLE_PLUGIN_ID = "muggleai@muggle-works";
|
|
2342
2343
|
var CODEX_ROLLOUT_PREFIX = "rollout-";
|
|
2343
2344
|
var MUGGLE_INSTALL_LOG_FILE = "postinstall.log";
|
|
2344
2345
|
var INSTALL_STARTED_PATTERN = /^Postinstall started at (\S+)/;
|
|
@@ -4887,22 +4888,20 @@ function createDesktopNotifier(platform4, runCommand) {
|
|
|
4887
4888
|
}
|
|
4888
4889
|
};
|
|
4889
4890
|
}
|
|
4890
|
-
function
|
|
4891
|
-
let
|
|
4891
|
+
function readMugglePluginUpdatedAtMs(installedPluginsFile) {
|
|
4892
|
+
let installs;
|
|
4892
4893
|
try {
|
|
4893
4894
|
const parsed = JSON.parse(readFileSync(installedPluginsFile, "utf-8"));
|
|
4894
4895
|
if (!parsed.plugins || typeof parsed.plugins !== "object") return void 0;
|
|
4895
|
-
|
|
4896
|
+
installs = parsed.plugins[MUGGLE_PLUGIN_ID];
|
|
4896
4897
|
} catch {
|
|
4897
4898
|
return void 0;
|
|
4898
4899
|
}
|
|
4899
4900
|
let updatedAtMs;
|
|
4900
|
-
for (const
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
if (!Number.isNaN(installUpdatedAtMs)) updatedAtMs = Math.max(updatedAtMs ?? 0, installUpdatedAtMs);
|
|
4905
|
-
}
|
|
4901
|
+
for (const install of Array.isArray(installs) ? installs : []) {
|
|
4902
|
+
if (install.scope !== RELOAD_PLUGIN_SCOPE) continue;
|
|
4903
|
+
const installUpdatedAtMs = typeof install.lastUpdated === "string" ? Date.parse(install.lastUpdated) : NaN;
|
|
4904
|
+
if (!Number.isNaN(installUpdatedAtMs)) updatedAtMs = Math.max(updatedAtMs ?? 0, installUpdatedAtMs);
|
|
4906
4905
|
}
|
|
4907
4906
|
return updatedAtMs;
|
|
4908
4907
|
}
|
|
@@ -5483,7 +5482,7 @@ function waitForExitVia(deps) {
|
|
|
5483
5482
|
return (sessionId) => waitForSessionExit(deps.runCommand, deps.paths.claudeSessionRegistryDir, sessionId, deps.sleep);
|
|
5484
5483
|
}
|
|
5485
5484
|
function reloadTargetAtMs(deps, installs) {
|
|
5486
|
-
return resolveReloadTargetAtMs(installs,
|
|
5485
|
+
return resolveReloadTargetAtMs(installs, readMugglePluginUpdatedAtMs(deps.paths.claudeInstalledPluginsFile));
|
|
5487
5486
|
}
|
|
5488
5487
|
function closeOutTerminalSlots(assessments, deps, at) {
|
|
5489
5488
|
const closedOutSlugs = [];
|
|
@@ -5591,6 +5591,23 @@ var FanOutChoice = /* @__PURE__ */ ((FanOutChoice2) => {
|
|
|
5591
5591
|
var FanOutChoiceInputSchema = z.enum(["followPolicy" /* FollowPolicy */, "primaryOnly" /* PrimaryOnly */, "allNow" /* AllNow */]).optional().describe(
|
|
5592
5592
|
"Optional: followPolicy (default) runs each test case's runSettings records per its lane's fan-out policy; primaryOnly runs only the primary record; allNow runs every record at once"
|
|
5593
5593
|
);
|
|
5594
|
+
|
|
5595
|
+
// packages/mcps/src/mcp/e2e/contracts/secret-group-types.ts
|
|
5596
|
+
var SecretTypeEnum = /* @__PURE__ */ ((SecretTypeEnum2) => {
|
|
5597
|
+
SecretTypeEnum2["LOGIN_CREDENTIAL"] = "login_credential";
|
|
5598
|
+
SecretTypeEnum2["PAYMENT_CARD"] = "payment_card";
|
|
5599
|
+
return SecretTypeEnum2;
|
|
5600
|
+
})(SecretTypeEnum || {});
|
|
5601
|
+
var SecretFieldEnum = /* @__PURE__ */ ((SecretFieldEnum2) => {
|
|
5602
|
+
SecretFieldEnum2["USERNAME"] = "username";
|
|
5603
|
+
SecretFieldEnum2["PASSWORD"] = "password";
|
|
5604
|
+
SecretFieldEnum2["CARDHOLDER_NAME"] = "cardholder_name";
|
|
5605
|
+
SecretFieldEnum2["CARD_NUMBER"] = "card_number";
|
|
5606
|
+
SecretFieldEnum2["EXPIRY"] = "expiry";
|
|
5607
|
+
SecretFieldEnum2["CVC"] = "cvc";
|
|
5608
|
+
SecretFieldEnum2["BILLING_POSTAL_CODE"] = "billing_postal_code";
|
|
5609
|
+
return SecretFieldEnum2;
|
|
5610
|
+
})(SecretFieldEnum || {});
|
|
5594
5611
|
var DisplayParamsSchema = z.object({
|
|
5595
5612
|
browserWindowWidth: z.number(),
|
|
5596
5613
|
browserWindowHeight: z.number()
|
|
@@ -5739,6 +5756,29 @@ var SecretUpdateInputSchema = z.object({
|
|
|
5739
5756
|
var SecretDeleteInputSchema = z.object({
|
|
5740
5757
|
secretId: IdSchema.describe("Secret ID (UUID) to delete")
|
|
5741
5758
|
});
|
|
5759
|
+
var SecretGroupFieldValuesSchema = z.partialRecord(z.enum(SecretFieldEnum), z.string());
|
|
5760
|
+
var SecretGroupListInputSchema = z.object({
|
|
5761
|
+
projectId: IdSchema.describe("Project ID (UUID) to list secret groups for")
|
|
5762
|
+
});
|
|
5763
|
+
var SecretGroupCreateInputSchema = z.object({
|
|
5764
|
+
projectId: IdSchema.describe("Project ID (UUID) to create the secret group for"),
|
|
5765
|
+
secretType: z.enum(SecretTypeEnum).describe("Kind of secret group; decides which fields apply"),
|
|
5766
|
+
groupName: z.string().min(1).describe("Group name, e.g. 'Visa test card'; the member secret names are derived from it"),
|
|
5767
|
+
description: z.string().optional().describe("Human-readable description for selection guidance"),
|
|
5768
|
+
fields: SecretGroupFieldValuesSchema.describe(
|
|
5769
|
+
"Field name \u2192 value for the chosen secretType; include every required field muggle-remote-secret-type-list lists for that type"
|
|
5770
|
+
)
|
|
5771
|
+
});
|
|
5772
|
+
var SecretGroupUpdateInputSchema = z.object({
|
|
5773
|
+
groupId: IdSchema.describe("Secret group ID (UUID) to update"),
|
|
5774
|
+
description: z.string().optional().describe("Updated description"),
|
|
5775
|
+
fields: SecretGroupFieldValuesSchema.optional().describe(
|
|
5776
|
+
"Field name \u2192 new value. A non-empty value sets the field (adding a missing optional one); an empty string clears an optional field; omitted fields stay unchanged"
|
|
5777
|
+
)
|
|
5778
|
+
});
|
|
5779
|
+
var SecretGroupDeleteInputSchema = z.object({
|
|
5780
|
+
groupId: IdSchema.describe("Secret group ID (UUID) to delete")
|
|
5781
|
+
});
|
|
5742
5782
|
var UseCaseDiscoveryMemoryGetInputSchema = z.object({
|
|
5743
5783
|
projectId: IdSchema.describe("Project ID (UUID) to get use case discovery memory for")
|
|
5744
5784
|
});
|
|
@@ -6635,16 +6675,69 @@ function mapSecretList(response) {
|
|
|
6635
6675
|
return response.data.map(toSecretMetadata);
|
|
6636
6676
|
}
|
|
6637
6677
|
function mapSecret(response) {
|
|
6638
|
-
|
|
6639
|
-
if (!isSingleSecret) {
|
|
6678
|
+
if (!isSingleObject(response.data)) {
|
|
6640
6679
|
throw new GatewayError({
|
|
6641
6680
|
code: "UPSTREAM_ERROR" /* UPSTREAM_ERROR */,
|
|
6642
|
-
message: `Secret response was not a single secret (got ${
|
|
6681
|
+
message: `Secret response was not a single secret (got ${describeUpstreamBody(response.data)}).`,
|
|
6643
6682
|
statusCode: response.statusCode
|
|
6644
6683
|
});
|
|
6645
6684
|
}
|
|
6646
6685
|
return toSecretMetadata(response.data);
|
|
6647
6686
|
}
|
|
6687
|
+
function mapSecretGroupListing(response) {
|
|
6688
|
+
const isGroupListing = isSingleObject(response.data) && Array.isArray(response.data.groups) && Array.isArray(response.data.adhocSecrets);
|
|
6689
|
+
if (!isGroupListing) {
|
|
6690
|
+
throw new GatewayError({
|
|
6691
|
+
code: "UPSTREAM_ERROR" /* UPSTREAM_ERROR */,
|
|
6692
|
+
message: `Secret group list response was not { groups, adhocSecrets } (got ${describeUpstreamBody(response.data)}).`,
|
|
6693
|
+
statusCode: response.statusCode
|
|
6694
|
+
});
|
|
6695
|
+
}
|
|
6696
|
+
const upstreamListing = response.data;
|
|
6697
|
+
return {
|
|
6698
|
+
groups: upstreamListing.groups.map(toSecretGroupSummary),
|
|
6699
|
+
adhocSecrets: upstreamListing.adhocSecrets.map(toSecretMetadata)
|
|
6700
|
+
};
|
|
6701
|
+
}
|
|
6702
|
+
function mapSecretGroupSummary(response) {
|
|
6703
|
+
const isGroupSummary = isSingleObject(response.data) && isSingleObject(response.data.group) && Array.isArray(response.data.members);
|
|
6704
|
+
if (!isGroupSummary) {
|
|
6705
|
+
throw new GatewayError({
|
|
6706
|
+
code: "UPSTREAM_ERROR" /* UPSTREAM_ERROR */,
|
|
6707
|
+
message: `Secret group response was not { group, members } (got ${describeUpstreamBody(response.data)}).`,
|
|
6708
|
+
statusCode: response.statusCode
|
|
6709
|
+
});
|
|
6710
|
+
}
|
|
6711
|
+
return toSecretGroupSummary(response.data);
|
|
6712
|
+
}
|
|
6713
|
+
function isSingleObject(upstreamBody) {
|
|
6714
|
+
return typeof upstreamBody === "object" && upstreamBody !== null && !Array.isArray(upstreamBody);
|
|
6715
|
+
}
|
|
6716
|
+
function describeUpstreamBody(upstreamBody) {
|
|
6717
|
+
return Array.isArray(upstreamBody) ? "array" : typeof upstreamBody;
|
|
6718
|
+
}
|
|
6719
|
+
function toSecretGroupSummary(upstreamSummary) {
|
|
6720
|
+
return {
|
|
6721
|
+
group: toSecretGroupMetadata(upstreamSummary.group),
|
|
6722
|
+
members: upstreamSummary.members.map((upstreamMember) => ({
|
|
6723
|
+
field: upstreamMember.field,
|
|
6724
|
+
secret: toSecretMetadata(upstreamMember.secret)
|
|
6725
|
+
}))
|
|
6726
|
+
};
|
|
6727
|
+
}
|
|
6728
|
+
function toSecretGroupMetadata(upstreamGroup) {
|
|
6729
|
+
return {
|
|
6730
|
+
id: upstreamGroup.id,
|
|
6731
|
+
projectId: upstreamGroup.projectId,
|
|
6732
|
+
secretType: upstreamGroup.secretType,
|
|
6733
|
+
groupName: upstreamGroup.groupName,
|
|
6734
|
+
description: upstreamGroup.description,
|
|
6735
|
+
createdAt: upstreamGroup.createdAt,
|
|
6736
|
+
createdBy: upstreamGroup.createdBy,
|
|
6737
|
+
lastModifiedAt: upstreamGroup.lastModifiedAt,
|
|
6738
|
+
lastModifiedBy: upstreamGroup.lastModifiedBy
|
|
6739
|
+
};
|
|
6740
|
+
}
|
|
6648
6741
|
function toSecretMetadata(upstreamSecret) {
|
|
6649
6742
|
return {
|
|
6650
6743
|
id: upstreamSecret.id,
|
|
@@ -6652,6 +6745,8 @@ function toSecretMetadata(upstreamSecret) {
|
|
|
6652
6745
|
secretName: upstreamSecret.secretName,
|
|
6653
6746
|
description: upstreamSecret.description,
|
|
6654
6747
|
source: upstreamSecret.source,
|
|
6748
|
+
groupId: upstreamSecret.groupId,
|
|
6749
|
+
field: upstreamSecret.field,
|
|
6655
6750
|
createdAt: upstreamSecret.createdAt,
|
|
6656
6751
|
createdBy: upstreamSecret.createdBy,
|
|
6657
6752
|
lastModifiedAt: upstreamSecret.lastModifiedAt,
|
|
@@ -7822,6 +7917,81 @@ var secretTools = [
|
|
|
7822
7917
|
};
|
|
7823
7918
|
},
|
|
7824
7919
|
mapFromUpstream: mapSecret
|
|
7920
|
+
},
|
|
7921
|
+
{
|
|
7922
|
+
name: "muggle-remote-secret-type-list",
|
|
7923
|
+
description: "List the types a secret group can have, each with its fields in order: field key, label (which carries the expected format, e.g. 'Expiry (MM/YY)'), whether it is required, and whether it is masked. Call before muggle-remote-secret-group-create or muggle-remote-secret-group-update. Response shape: [{ secretType, label, fields: [{ field, label, isRequired, isMasked }] }].",
|
|
7924
|
+
inputSchema: EmptyInputSchema,
|
|
7925
|
+
mapToUpstream: () => {
|
|
7926
|
+
return {
|
|
7927
|
+
method: "GET",
|
|
7928
|
+
path: `${MUGGLE_TEST_PREFIX}/secret-types`
|
|
7929
|
+
};
|
|
7930
|
+
}
|
|
7931
|
+
},
|
|
7932
|
+
{
|
|
7933
|
+
name: "muggle-remote-secret-group-list",
|
|
7934
|
+
description: "List a project's typed secret groups, each with its member secrets in field order, plus the project's ungrouped user-provided secrets. Secret values are never returned. Response shape: { groups: [{ group, members: [{ field, secret }] }], adhocSecrets: [secret] }.",
|
|
7935
|
+
inputSchema: SecretGroupListInputSchema,
|
|
7936
|
+
mapToUpstream: (input) => {
|
|
7937
|
+
const toolInput = input;
|
|
7938
|
+
return {
|
|
7939
|
+
method: "GET",
|
|
7940
|
+
path: `${MUGGLE_TEST_PREFIX}/secret-groups`,
|
|
7941
|
+
queryParams: { projectId: toolInput.projectId }
|
|
7942
|
+
};
|
|
7943
|
+
},
|
|
7944
|
+
mapFromUpstream: mapSecretGroupListing
|
|
7945
|
+
},
|
|
7946
|
+
{
|
|
7947
|
+
name: "muggle-remote-secret-group-create",
|
|
7948
|
+
description: "Create a typed secret group for a project: one named credential, such as a login or a payment card, whose fields are stored as member secrets and offered to test runs together. Pass `fields` as a map of field name to value; call muggle-remote-secret-type-list first for each secretType's fields, which are required, and their formats. Member secret names are the groupName slug plus the field ('Visa test' gives visa_test_card_number); a name that collides with an existing secret or group is rejected. Secret values are never returned.",
|
|
7949
|
+
inputSchema: SecretGroupCreateInputSchema,
|
|
7950
|
+
mapToUpstream: (input) => {
|
|
7951
|
+
const toolInput = input;
|
|
7952
|
+
return {
|
|
7953
|
+
method: "POST",
|
|
7954
|
+
path: `${MUGGLE_TEST_PREFIX}/secret-groups`,
|
|
7955
|
+
body: {
|
|
7956
|
+
projectId: toolInput.projectId,
|
|
7957
|
+
secretType: toolInput.secretType,
|
|
7958
|
+
groupName: toolInput.groupName,
|
|
7959
|
+
description: toolInput.description,
|
|
7960
|
+
fields: toolInput.fields
|
|
7961
|
+
}
|
|
7962
|
+
};
|
|
7963
|
+
},
|
|
7964
|
+
mapFromUpstream: mapSecretGroupSummary
|
|
7965
|
+
},
|
|
7966
|
+
{
|
|
7967
|
+
name: "muggle-remote-secret-group-update",
|
|
7968
|
+
description: "Update a secret group's description or field values; its secretType and groupName are fixed. In `fields`, a non-empty value sets the field (adding a missing optional one), an empty string clears an optional field (a required field cannot be cleared), and an omitted field stays unchanged. Call muggle-remote-secret-type-list for each secretType's fields, which are required, and their formats. Secret values are never returned.",
|
|
7969
|
+
inputSchema: SecretGroupUpdateInputSchema,
|
|
7970
|
+
mapToUpstream: (input) => {
|
|
7971
|
+
const toolInput = input;
|
|
7972
|
+
const body = {};
|
|
7973
|
+
if (toolInput.description !== void 0) body.description = toolInput.description;
|
|
7974
|
+
if (toolInput.fields !== void 0) body.fields = toolInput.fields;
|
|
7975
|
+
return {
|
|
7976
|
+
method: "PUT",
|
|
7977
|
+
path: `${MUGGLE_TEST_PREFIX}/secret-groups/${toolInput.groupId}`,
|
|
7978
|
+
body
|
|
7979
|
+
};
|
|
7980
|
+
},
|
|
7981
|
+
mapFromUpstream: mapSecretGroupSummary
|
|
7982
|
+
},
|
|
7983
|
+
{
|
|
7984
|
+
name: "muggle-remote-secret-group-delete",
|
|
7985
|
+
description: "Delete a secret group together with its member secrets. This is a soft delete. Secret values are never returned.",
|
|
7986
|
+
inputSchema: SecretGroupDeleteInputSchema,
|
|
7987
|
+
mapToUpstream: (input) => {
|
|
7988
|
+
const toolInput = input;
|
|
7989
|
+
return {
|
|
7990
|
+
method: "DELETE",
|
|
7991
|
+
path: `${MUGGLE_TEST_PREFIX}/secret-groups/${toolInput.groupId}`
|
|
7992
|
+
};
|
|
7993
|
+
},
|
|
7994
|
+
mapFromUpstream: mapSecretGroupSummary
|
|
7825
7995
|
}
|
|
7826
7996
|
];
|
|
7827
7997
|
var prdFileTools = [
|
|
@@ -9702,8 +9872,15 @@ __export(e2e_exports2, {
|
|
|
9702
9872
|
RunSettingsListInputSchema: () => RunSettingsListInputSchema,
|
|
9703
9873
|
SecretCreateInputSchema: () => SecretCreateInputSchema,
|
|
9704
9874
|
SecretDeleteInputSchema: () => SecretDeleteInputSchema,
|
|
9875
|
+
SecretFieldEnum: () => SecretFieldEnum,
|
|
9705
9876
|
SecretGetInputSchema: () => SecretGetInputSchema,
|
|
9877
|
+
SecretGroupCreateInputSchema: () => SecretGroupCreateInputSchema,
|
|
9878
|
+
SecretGroupDeleteInputSchema: () => SecretGroupDeleteInputSchema,
|
|
9879
|
+
SecretGroupFieldValuesSchema: () => SecretGroupFieldValuesSchema,
|
|
9880
|
+
SecretGroupListInputSchema: () => SecretGroupListInputSchema,
|
|
9881
|
+
SecretGroupUpdateInputSchema: () => SecretGroupUpdateInputSchema,
|
|
9706
9882
|
SecretListInputSchema: () => SecretListInputSchema,
|
|
9883
|
+
SecretTypeEnum: () => SecretTypeEnum,
|
|
9707
9884
|
SecretUpdateInputSchema: () => SecretUpdateInputSchema,
|
|
9708
9885
|
StripePaymentMethodIdSchema: () => StripePaymentMethodIdSchema,
|
|
9709
9886
|
TestCaseAncestorsGetInputSchema: () => TestCaseAncestorsGetInputSchema,
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-
|
|
2
|
-
export { createChildLogger, e2e_exports as e2e, getConfig, getLocalQaTools, getLogger, getQaTools, local_exports as localQa, mcp_exports as mcp, e2e_exports as qa, src_exports as shared } from './chunk-
|
|
1
|
+
export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-E44WTZTP.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-MJ34HBWC.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.26.0-staging.
|
|
4
|
+
"version": "5.26.0-staging.213",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
7
7
|
"email": "support@muggle-ai.com"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
|
-
"version": "5.26.0-staging.
|
|
3
|
+
"version": "5.26.0-staging.213",
|
|
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.26.0-staging.
|
|
5
|
+
"version": "5.26.0-staging.213",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/dist/plugin/.mcp.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"release": "5.18.0",
|
|
3
|
-
"buildId": "run-
|
|
4
|
-
"commitSha": "
|
|
5
|
-
"buildTime": "2026-10-
|
|
3
|
+
"buildId": "run-213-1",
|
|
4
|
+
"commitSha": "2ed08560c8f11efc78f41373f531d2469df9a1f9",
|
|
5
|
+
"buildTime": "2026-10-26T19:10:37Z",
|
|
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, CheckoutFreshnessVerdict, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, 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, StackPortAction, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, checkServiceStack, claimServiceStack, completeOnboarding, createApiKeyWithToken, createChildLogger, decideStackClaim, decideStackRelease, decideStackRenewal, deleteApiKeyData, deleteCredentials, e2e_exports as e2e, evaluateCheckoutFreshness, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, loadApiKeyData, loadCredentials, local_exports as localQa, markOnboardingCompleted, mcp_exports as mcp, needsConflict, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, portOfUrl, e2e_exports as qa, readPreferencesMetadata, readRunView, readServiceStackStatus, reconcileProjectPreferences, recordOnboardingSkip, releaseServiceStack, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-
|
|
1
|
+
export { ACTION_SCRIPT_FILE_NAME, BASE_REMOTE_NAME, BLOCKING_FRESHNESS_VERDICTS, BRANCH_CREATION_REFLOG_PREFIX, BUSY_EXIT_CODE, CheckoutFreshnessVerdict, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, 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, StackPortAction, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, checkServiceStack, claimServiceStack, completeOnboarding, createApiKeyWithToken, createChildLogger, decideStackClaim, decideStackRelease, decideStackRenewal, deleteApiKeyData, deleteCredentials, e2e_exports as e2e, evaluateCheckoutFreshness, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, loadApiKeyData, loadCredentials, local_exports as localQa, markOnboardingCompleted, mcp_exports as mcp, needsConflict, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, portOfUrl, e2e_exports as qa, readPreferencesMetadata, readRunView, readServiceStackStatus, reconcileProjectPreferences, recordOnboardingSkip, releaseServiceStack, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-MJ34HBWC.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.26.0-staging.
|
|
4
|
+
"version": "5.26.0-staging.213",
|
|
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.26.0-staging.
|
|
4
|
+
"version": "5.26.0-staging.213",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
7
7
|
"email": "support@muggle-ai.com"
|
package/plugin/.codex-mcp.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
|
-
"version": "5.26.0-staging.
|
|
3
|
+
"version": "5.26.0-staging.213",
|
|
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.26.0-staging.
|
|
5
|
+
"version": "5.26.0-staging.213",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/plugin/.mcp.json
CHANGED
|
@@ -6,7 +6,7 @@ A standing per-user scheduled job that runs `muggle watch tick` every few minute
|
|
|
6
6
|
- **Checks every open PR-watch slot** under `~/.muggle-ai/muggle-do/sessions/`. Is its loop running, and heard by a live session? Is CI red? Is the branch behind or conflicting? Are review threads unresolved?
|
|
7
7
|
- **Keeps registered watchers running.** A slot carrying `watch-registration.json` (written by `pr-watch-arm.sh` on every arm) has its owner session resumed in the background when its loop is gone and the owner is down, or idle in the background (stopped first, once a throwaway launch confirms Claude will resume it there). A resume that only hit the usage limit is retried without counting against the per-owner cap. The resumed session's `/muggle:muggle-pr-followup reconcile` re-arms it with that session's own context. The service never addresses a review, pushes, or kills a process.
|
|
8
8
|
- **Closes out finished slots.** A slot whose PR GitHub reports merged or closed, with no loop and no running owner, is finalized the way a watcher's terminal tick would: `prs.json` takes the state, `followup.log` the terminal line, and `result.md` is written. Only local files change; post-merge cleanup is left to a session and recorded as not run.
|
|
9
|
-
- **Keeps sessions on the installed build.** A session loaded before the newest global install (or a later user-scope plugin
|
|
9
|
+
- **Keeps sessions on the installed build.** A session loaded before the newest global install (or a later user-scope update of the muggle plugin) is behind; other plugins updating restart nothing. Idle background sessions are restarted onto the new build, up to 3 per tick: a session that owns open PR watches is stopped and resumed on `/muggle:muggle-pr-followup reconcile`, so its watchers come back with it; any other is respawned. A resume waits for the stopped process to exit and passes no flag beyond `--bg`, so the session continues under its own id and name. Resuming a session that is still running, or adding flags, starts a copy that the agent view lists beside the original. Before either, a throwaway background launch in the session's workspace confirms Claude will bring it back; a workspace that refuses is left running and named once. Busy or waiting sessions wait for a later tick, and terminal sessions get one notification to run `/reload-plugins`. No interface runs a slash command inside another session.
|
|
10
10
|
- **Records and alerts.** Results go to `status.json` (last snapshot, with open-PR coverage per repo), `state.json` (active findings, recovery attempts, reload progress) and `events.jsonl` (raise/clear/resume/respawn/close-out history) under `~/.muggle-ai/watch/`. New alerts raise one desktop notification per tick.
|
|
11
11
|
|
|
12
12
|
## Install
|