@muggleai/works 5.33.0-staging.298 → 5.33.0-staging.300
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-NFCB3A5Z.js → chunk-QPOBJ73B.js} +28 -9
- package/dist/{chunk-WZKHFEBL.js → chunk-XBOAJYJP.js} +283 -200
- 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/plugin/skills/do/e2e-repair.md +1 -1
- package/dist/plugin/skills/muggle-pr-visual-walkthrough/e2e-report-assembly.md +1 -1
- package/dist/plugin/skills/muggle-test-prepare/steps/claim-stack.md +1 -0
- package/dist/release-manifest.json +4 -4
- package/dist/src-HEQU7J76.js +1 -0
- 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/plugin/skills/do/e2e-repair.md +1 -1
- package/plugin/skills/muggle-pr-visual-walkthrough/e2e-report-assembly.md +1 -1
- package/plugin/skills/muggle-test-prepare/steps/claim-stack.md +1 -0
- package/dist/src-KF6RSLGQ.js +0 -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.33.0-staging.
|
|
12
|
+
"version": "5.33.0-staging.300"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __export, getLogger, TelemetryEnvironment, getConfig, createChildLogger, buildElectronAppReleaseAssetUrl, getActiveRuntimeTarget, getAuthService, hasApiKey, getElectronAppVersion, getElectronAppDir, getPlatformKey, reconcileProjectPreferences, getDataDir2, PREFERENCES_FILE_NAME, isFirstRun, writePreferences, DEFAULT_PREFERENCES, isElectronAppInstalled, getElectronAppChecksums, getChecksumForPlatform, getElectronAppSignedFromVersion, getReleaseSignerIdentityUri, verifyFileChecksum, resolveElectronAppExecutablePath, calculateFileChecksum, initTelemetry, Surface, ServiceName, track, EventName, getQaTools, getLocalQaTools, performLogout, assertDeviceCodeClientProvisioned, performLogin, getActiveElectronAppReleaseStream, buildToolInputJsonSchema, toolRequiresAuth, getCallerCredentials, parseElectronAppDirName, getElectronAppReleaseTagPrefix, hasShownDisclosure, markDisclosureShown, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, ElectronAppReleaseStream, buildElectronAppChecksumsUrl, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, buildLlmSourcePlan, describeLlmSourceStatus, resolveLlmSourceStatus, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, claimServiceStack, BUSY_EXIT_CODE, checkServiceStack, releaseServiceStack, readServiceStackStatus, resolvePreferences, OnboardingBlanketChoice, PreferenceKey, LlmSource, applyLlmSourceSelection, describeStackMismatch, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl, local_exports } from './chunk-
|
|
1
|
+
import { __export, getLogger, TelemetryEnvironment, getConfig, createChildLogger, buildElectronAppReleaseAssetUrl, getActiveRuntimeTarget, getAuthService, hasApiKey, getElectronAppVersion, getElectronAppDir, getPlatformKey, reconcileProjectPreferences, getDataDir2, PREFERENCES_FILE_NAME, isFirstRun, writePreferences, DEFAULT_PREFERENCES, isElectronAppInstalled, getElectronAppChecksums, getChecksumForPlatform, getElectronAppSignedFromVersion, getReleaseSignerIdentityUri, verifyFileChecksum, resolveElectronAppExecutablePath, calculateFileChecksum, initTelemetry, Surface, ServiceName, track, EventName, getQaTools, getLocalQaTools, performLogout, assertDeviceCodeClientProvisioned, performLogin, getActiveElectronAppReleaseStream, buildToolInputJsonSchema, toolRequiresAuth, getCallerCredentials, parseElectronAppDirName, getElectronAppReleaseTagPrefix, hasShownDisclosure, markDisclosureShown, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, ElectronAppReleaseStream, buildElectronAppChecksumsUrl, __require, getDisclosureCopy, buildOnboardingPlan, applyOnboardingAnswers, needsOnboarding, buildLlmSourcePlan, describeLlmSourceStatus, resolveLlmSourceStatus, readRunView, RunViewError, renderRunViewText, writeRunViewHtml, openBrowserUrl, evaluateCheckoutFreshness, runGitCommand, BLOCKING_FRESHNESS_VERDICTS, claimServiceStack, BUSY_EXIT_CODE, checkServiceStack, releaseServiceStack, readServiceStackStatus, resolvePreferences, OnboardingBlanketChoice, PreferenceKey, LlmSource, applyLlmSourceSelection, describeStackMismatch, getDataDir, DEFAULT_LOCAL_LLM_BASE_URL, isValidLocalBaseUrl, local_exports } from './chunk-XBOAJYJP.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';
|
|
@@ -515,10 +515,16 @@ async function isOnBaseSinceFork(sha, range, deps) {
|
|
|
515
515
|
const isAncestor = async (ancestor, descendant) => await deps.runGit(["merge-base", "--is-ancestor", ancestor, descendant], deps.cwd) !== null;
|
|
516
516
|
return await isAncestor(range.mergeBaseSha, sha) && await isAncestor(sha, range.baseTipSha);
|
|
517
517
|
}
|
|
518
|
+
var isFullCommitSha = (sha) => typeof sha === "string" && FULL_COMMIT_SHA_PATTERN.test(sha);
|
|
519
|
+
function studioCommitOf(baselineRun) {
|
|
520
|
+
const commitSha = baselineRun.localExecutionContext?.studioBuild?.commitSha;
|
|
521
|
+
return isFullCommitSha(commitSha) ? commitSha : null;
|
|
522
|
+
}
|
|
518
523
|
function servedCommitsOf(baselineRun) {
|
|
519
524
|
const servedStack = baselineRun.localExecutionContext?.servedStack;
|
|
520
|
-
|
|
521
|
-
|
|
525
|
+
const stackCommits = Array.isArray(servedStack) ? servedStack.map((servedNeed) => servedNeed?.headSha).filter(isFullCommitSha) : [];
|
|
526
|
+
const studioCommit = studioCommitOf(baselineRun);
|
|
527
|
+
return studioCommit ? [...stackCommits, studioCommit] : stackCommits;
|
|
522
528
|
}
|
|
523
529
|
async function judgeBaseline(test, baselineRunId, range, deps) {
|
|
524
530
|
if (range === null) return refused("the base branch could not be resolved in this checkout");
|
|
@@ -531,7 +537,7 @@ async function judgeBaseline(test, baselineRunId, range, deps) {
|
|
|
531
537
|
return refused("it ran under a different runSettings record");
|
|
532
538
|
}
|
|
533
539
|
const servedCommits = servedCommitsOf(baselineRun);
|
|
534
|
-
if (servedCommits.length === 0) return refused("it recorded no stack it served");
|
|
540
|
+
if (servedCommits.length === 0) return refused("it recorded no stack it served and no Studio build commit");
|
|
535
541
|
for (const servedSha of servedCommits) {
|
|
536
542
|
if (!await isOnBaseSinceFork(servedSha, range, deps)) continue;
|
|
537
543
|
return {
|
|
@@ -543,8 +549,9 @@ async function judgeBaseline(test, baselineRunId, range, deps) {
|
|
|
543
549
|
}
|
|
544
550
|
};
|
|
545
551
|
}
|
|
546
|
-
const span = `${range.mergeBaseSha.slice(0, SHORT_SHA_LENGTH)}
|
|
547
|
-
|
|
552
|
+
const span = `${range.mergeBaseSha.slice(0, SHORT_SHA_LENGTH)} through ${range.baseTipSha.slice(0, SHORT_SHA_LENGTH)}`;
|
|
553
|
+
const studioGap = studioCommitOf(baselineRun) ? "" : ", and it recorded no Studio build commit";
|
|
554
|
+
return refused(`none of the commits it served is on the base from ${span}${studioGap}`);
|
|
548
555
|
}
|
|
549
556
|
function withoutFailsOnBase(test) {
|
|
550
557
|
const uncredited = { ...test };
|
|
@@ -1248,7 +1255,7 @@ async function resolveGsScreenshotUrls(report, opts) {
|
|
|
1248
1255
|
if (gsUrls.length === 0) {
|
|
1249
1256
|
return report;
|
|
1250
1257
|
}
|
|
1251
|
-
const mcps = await import('./src-
|
|
1258
|
+
const mcps = await import('./src-HEQU7J76.js');
|
|
1252
1259
|
const credentials = await mcps.getCallerCredentialsAsync();
|
|
1253
1260
|
if (!credentials.bearerToken && !credentials.apiKey) {
|
|
1254
1261
|
stderrWrite(
|
|
@@ -6901,6 +6908,18 @@ function runLimitResumePass(claudeSessions, attemptsBySession, maxContinues, dep
|
|
|
6901
6908
|
function reloadTargetAtMs(deps, installs) {
|
|
6902
6909
|
return resolveReloadTargetAtMs(installs, readMugglePluginUpdatedAtMs(deps.paths.claudeInstalledPluginsFile));
|
|
6903
6910
|
}
|
|
6911
|
+
function activeReloadTargetAtMs(state, installTargetAtMs) {
|
|
6912
|
+
const requestedAtMs = state.pendingReload?.changedAtMs;
|
|
6913
|
+
if (installTargetAtMs === void 0 || requestedAtMs === void 0) return installTargetAtMs ?? requestedAtMs;
|
|
6914
|
+
return Math.max(installTargetAtMs, requestedAtMs);
|
|
6915
|
+
}
|
|
6916
|
+
function manualReloadRecord(state, installTargetAtMs, claudeSessions, watchOwnerSessionIds, nowMs) {
|
|
6917
|
+
const activeTargetAtMs = activeReloadTargetAtMs(state, installTargetAtMs);
|
|
6918
|
+
if (activeTargetAtMs === void 0) return reloadRecordFor(state, nowMs);
|
|
6919
|
+
const activeRecord = reloadRecordFor(state, activeTargetAtMs);
|
|
6920
|
+
const isRestartOwed = planReloadFanOut(claudeSessions, activeRecord, watchOwnerSessionIds).some((decision) => decision.action === "respawn" /* Respawn */);
|
|
6921
|
+
return isRestartOwed ? activeRecord : reloadRecordFor(state, nowMs);
|
|
6922
|
+
}
|
|
6904
6923
|
function closeOutTerminalSlots(assessments, deps, at) {
|
|
6905
6924
|
const closedOutSlugs = [];
|
|
6906
6925
|
const events = [];
|
|
@@ -6993,7 +7012,7 @@ function runTickUnlocked(deps) {
|
|
|
6993
7012
|
}
|
|
6994
7013
|
let pendingReload = state.pendingReload;
|
|
6995
7014
|
let reload;
|
|
6996
|
-
const targetAtMs = reloadTargetAtMs(deps, installs);
|
|
7015
|
+
const targetAtMs = activeReloadTargetAtMs(state, reloadTargetAtMs(deps, installs));
|
|
6997
7016
|
if (deps.isAutoReloadEnabled && targetAtMs !== void 0 && claudeSessions !== null) {
|
|
6998
7017
|
const reloadableSessions = claudeSessions.filter((session) => !restartedSessionIds.has(session.sessionId));
|
|
6999
7018
|
const pass = runReloadPass(reloadRecordFor(state, targetAtMs), reloadableSessions, watchOwnersOf(assessments), deps, at);
|
|
@@ -7057,8 +7076,8 @@ function runReloadPluginsPass(deps, isDryRun) {
|
|
|
7057
7076
|
const { claudeSessions } = observeSessions(deps, installs);
|
|
7058
7077
|
if (claudeSessions === null) return null;
|
|
7059
7078
|
const state = readWatchLedgerState(deps.paths.watchDir);
|
|
7060
|
-
const record = reloadRecordFor(state, deps.nowMs);
|
|
7061
7079
|
const watchOwnerSessionIds = watchOwnersOf(readWatchSnapshot(deps.paths.watchDir)?.slots ?? []);
|
|
7080
|
+
const record = manualReloadRecord(state, reloadTargetAtMs(deps, installs), claudeSessions, watchOwnerSessionIds, deps.nowMs);
|
|
7062
7081
|
if (isDryRun) {
|
|
7063
7082
|
return {
|
|
7064
7083
|
decisions: planReloadFanOut(claudeSessions, record, watchOwnerSessionIds),
|