@muggleai/works 5.28.0-staging.251 → 5.28.0-staging.253
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-XEFALLR5.js → chunk-N3G4AX6M.js} +2 -2
- package/dist/{chunk-JRYEMMKU.js → chunk-YMFQHBLJ.js} +2 -1
- 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-7OY7RXTE.js → src-OWUW2BBD.js} +1 -1
- package/package.json +2 -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/post-install-guide/constants.mjs +41 -0
- package/scripts/post-install-guide/index.d.mts +17 -0
- package/scripts/post-install-guide/index.mjs +77 -0
- package/scripts/postinstall.mjs +15 -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.28.0-staging.
|
|
12
|
+
"version": "5.28.0-staging.253"
|
|
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, 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, 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-YMFQHBLJ.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';
|
|
@@ -1151,7 +1151,7 @@ async function resolveGsScreenshotUrls(report, opts) {
|
|
|
1151
1151
|
if (gsUrls.length === 0) {
|
|
1152
1152
|
return report;
|
|
1153
1153
|
}
|
|
1154
|
-
const mcps = await import('./src-
|
|
1154
|
+
const mcps = await import('./src-OWUW2BBD.js');
|
|
1155
1155
|
const credentials = await mcps.getCallerCredentialsAsync();
|
|
1156
1156
|
if (!credentials.bearerToken && !credentials.apiKey) {
|
|
1157
1157
|
stderrWrite(
|
|
@@ -7664,7 +7664,7 @@ var projectTools = [
|
|
|
7664
7664
|
},
|
|
7665
7665
|
{
|
|
7666
7666
|
name: "muggle-remote-project-list",
|
|
7667
|
-
description: "List projects accessible to the authenticated user. Returns up to 10 items per page by default (max 100). Response includes pagination metadata (totalCount, totalPages, hasMore) \u2014 check `hasMore` to decide whether to fetch additional pages.",
|
|
7667
|
+
description: "List projects accessible to the authenticated user: the projects they own plus the projects shared with them. Returns up to 10 items per page by default (max 100). Response includes pagination metadata (totalCount, totalPages, hasMore) \u2014 check `hasMore` to decide whether to fetch additional pages.",
|
|
7668
7668
|
inputSchema: ProjectListInputSchema,
|
|
7669
7669
|
dashboardLink: linkToProjects,
|
|
7670
7670
|
mapToUpstream: (input) => {
|
|
@@ -7673,6 +7673,7 @@ var projectTools = [
|
|
|
7673
7673
|
method: "GET",
|
|
7674
7674
|
path: `${MUGGLE_TEST_PREFIX}/projects`,
|
|
7675
7675
|
queryParams: {
|
|
7676
|
+
includeShared: true,
|
|
7676
7677
|
page: toolInput.page,
|
|
7677
7678
|
pageSize: toolInput.pageSize,
|
|
7678
7679
|
sortBy: toolInput.sortBy,
|
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-N3G4AX6M.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-YMFQHBLJ.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.28.0-staging.
|
|
4
|
+
"version": "5.28.0-staging.253",
|
|
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.28.0-staging.
|
|
3
|
+
"version": "5.28.0-staging.253",
|
|
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.28.0-staging.
|
|
5
|
+
"version": "5.28.0-staging.253",
|
|
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.26.0",
|
|
3
|
-
"buildId": "run-
|
|
4
|
-
"commitSha": "
|
|
5
|
-
"buildTime": "2026-10-
|
|
3
|
+
"buildId": "run-253-1",
|
|
4
|
+
"commitSha": "827f3558e259bf1905d25d297bdb875478a1a9e0",
|
|
5
|
+
"buildTime": "2026-10-30T07:03:59Z",
|
|
6
6
|
"serviceName": "muggle-ai-works-mcp"
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ACTION_SCRIPT_FILE_NAME, BASE_REMOTE_NAME, BLOCKING_FRESHNESS_VERDICTS, BRANCH_CREATION_REFLOG_PREFIX, BUSY_EXIT_CODE, CLAUDE_CODE_AUTH_STATUS_ARGS, CLAUDE_CODE_CHECK_TIMEOUT_MS, CLAUDE_CODE_EXECUTABLE, CLAUDE_CODE_EXECUTABLE_NOT_FOUND_CODE, CLAUDE_CODE_SESSION_LINK_ENV_VARS, CLAUDE_CODE_VERSION_ARGS, CheckoutFreshnessVerdict, ClaudeCodeReadiness, DEFAULT_LOCAL_LLM_BASE_URL, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, LLM_CREDENTIALS_FILE_MODE, LLM_CREDENTIALS_FILE_NAME, LLM_SOURCE_HEADER, LLM_SOURCE_OPTIONS, LLM_SOURCE_OWNED_ENV_NAMES, LLM_SOURCE_PROMPT, LLM_SOURCE_SCOPE_NOTE, LlmSource, MASKED_API_KEY_PREFIX, MASKED_API_KEY_VISIBLE_CHARS, MAX_LISTED_INHERITED_COMMITS, ONBOARDING_BLANKET_OPTIONS, ONBOARDING_CHOICE_GROUPS, ONBOARDING_MAX_OFFERS, ONBOARDING_PRIMER_BULLETS, ONBOARDING_PRIMER_HEADLINE, ONBOARDING_TOGGLE_GROUPS, ONBOARDING_TOGGLE_PROMPT, ONBOARDING_UNSELECTED_TOGGLE_VALUE, OnboardingBlanketChoice, OnboardingGroupKind, PREFERENCES_FILE_NAME, PREFERENCES_PROJECT_DIR_NAME, PREFERENCES_SCHEMA, PREFERENCES_VERSION, PREFERENCE_ALLOWED_VALUES, PreferenceKey, PreferenceValue, ProjectPreferencesReconcileOutcome, RUN_SESSIONS_DIR_NAME, RUN_VIEW_DASHBOARD_LINK_LABEL, RunViewError, RuntimeTarget, SCREENSHOT_DIR_RELATIVE_PATH, SCREENSHOT_FILE_EXTENSION, StackCheckVerdict, StackClaimVerdict, StackLeaseEndReason, StackMismatchKind, StackPortAction, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyLlmSourceSelection, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildLlmSourcePlan, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, checkServiceStack, claimServiceStack, compareQueuePlaces, completeOnboarding, createApiKeyWithToken, createChildLogger, decideStackClaim, decideStackReap, decideStackRelease, decideStackRunEnd, decideStackRunStart, deleteApiKeyData, deleteCredentials, describeLlmSourceStatus, describeStackMismatch, e2e_exports as e2e, evaluateCheckoutFreshness, findVacatedNeeds, finishStackRun, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLlmSourceOption, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, isValidLocalBaseUrl, loadApiKeyData, loadCredentials, local_exports as localQa, lookUpCheckoutPullRequest, markOnboardingCompleted, maskLlmApiKey, mcp_exports as mcp, needsConflict, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, portOfUrl, e2e_exports as qa, readPreferencesMetadata, readRunView, readServiceStackStatus, reapServiceStack, reconcileProjectPreferences, recordOnboardingSkip, releaseServiceStack, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveLlmSourceStatus, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, startStackRun, stopVacatedServices, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writeLlmEnvBlock, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-
|
|
1
|
+
export { ACTION_SCRIPT_FILE_NAME, BASE_REMOTE_NAME, BLOCKING_FRESHNESS_VERDICTS, BRANCH_CREATION_REFLOG_PREFIX, BUSY_EXIT_CODE, CLAUDE_CODE_AUTH_STATUS_ARGS, CLAUDE_CODE_CHECK_TIMEOUT_MS, CLAUDE_CODE_EXECUTABLE, CLAUDE_CODE_EXECUTABLE_NOT_FOUND_CODE, CLAUDE_CODE_SESSION_LINK_ENV_VARS, CLAUDE_CODE_VERSION_ARGS, CheckoutFreshnessVerdict, ClaudeCodeReadiness, DEFAULT_LOCAL_LLM_BASE_URL, DEFAULT_PREFERENCES, ELECTRON_APP_EXECUTABLE_PATH_SEGMENTS, ElectronAppPlatform, ElectronAppReleaseStream, HTML_VIEW_OFFER_LINE, LLM_CREDENTIALS_FILE_MODE, LLM_CREDENTIALS_FILE_NAME, LLM_SOURCE_HEADER, LLM_SOURCE_OPTIONS, LLM_SOURCE_OWNED_ENV_NAMES, LLM_SOURCE_PROMPT, LLM_SOURCE_SCOPE_NOTE, LlmSource, MASKED_API_KEY_PREFIX, MASKED_API_KEY_VISIBLE_CHARS, MAX_LISTED_INHERITED_COMMITS, ONBOARDING_BLANKET_OPTIONS, ONBOARDING_CHOICE_GROUPS, ONBOARDING_MAX_OFFERS, ONBOARDING_PRIMER_BULLETS, ONBOARDING_PRIMER_HEADLINE, ONBOARDING_TOGGLE_GROUPS, ONBOARDING_TOGGLE_PROMPT, ONBOARDING_UNSELECTED_TOGGLE_VALUE, OnboardingBlanketChoice, OnboardingGroupKind, PREFERENCES_FILE_NAME, PREFERENCES_PROJECT_DIR_NAME, PREFERENCES_SCHEMA, PREFERENCES_VERSION, PREFERENCE_ALLOWED_VALUES, PreferenceKey, PreferenceValue, ProjectPreferencesReconcileOutcome, RUN_SESSIONS_DIR_NAME, RUN_VIEW_DASHBOARD_LINK_LABEL, RunViewError, RuntimeTarget, SCREENSHOT_DIR_RELATIVE_PATH, SCREENSHOT_FILE_EXTENSION, StackCheckVerdict, StackClaimVerdict, StackLeaseEndReason, StackMismatchKind, StackPortAction, WATCHER_LIFETIME_SECONDS, WATCHER_LIFETIME_UNBOUNDED_SECONDS, applyLlmSourceSelection, applyOnboardingAnswers, assertDeviceCodeClientProvisioned, buildElectronAppChecksumsUrl, buildElectronAppDirName, buildElectronAppReleaseAssetUrl, buildElectronAppReleaseTag, buildLlmSourcePlan, buildOnboardingPlan, buildToolInputJsonSchema, calculateFileChecksum, checkServiceStack, claimServiceStack, compareQueuePlaces, completeOnboarding, createApiKeyWithToken, createChildLogger, decideStackClaim, decideStackReap, decideStackRelease, decideStackRunEnd, decideStackRunStart, deleteApiKeyData, deleteCredentials, describeLlmSourceStatus, describeStackMismatch, e2e_exports as e2e, evaluateCheckoutFreshness, findVacatedNeeds, finishStackRun, formatPreferencesOneLiner, getActiveElectronAppReleaseStream, getActiveRuntimeTarget, getApiKey, getApiKeyFilePath, getAuthService, getBundledElectronAppVersion, getCallerCredentials, getCallerCredentialsAsync, getChecksumForPlatform, getConfig, getCredentialsFilePath, getDashboardBaseUrl, getDataDir2 as getDataDir, getDownloadBaseUrl, getElectronAppChecksums, getElectronAppDir, getElectronAppReleaseTagPrefix, getElectronAppSignedFromVersion, getElectronAppVersion, getElectronAppVersionSource, getLlmSourceOption, getLocalQaTools, getLogger, getOnboardingToggleKeys, getPlatformKey, getQaTools, getReleaseSignerIdentityUri, getRunSessionsDir, getValidApiKeyData, getValidCredentials, hasApiKey, isElectronAppInstalled, isElectronAppPlatform, isFirstRun, isValidLocalBaseUrl, loadApiKeyData, loadCredentials, local_exports as localQa, lookUpCheckoutPullRequest, markOnboardingCompleted, maskLlmApiKey, mcp_exports as mcp, needsConflict, needsOnboarding, openBrowserUrl, parseElectronAppDirName, performLogin, performLogout, pollDeviceCode, portOfUrl, e2e_exports as qa, readPreferencesMetadata, readRunView, readServiceStackStatus, reapServiceStack, reconcileProjectPreferences, recordOnboardingSkip, releaseServiceStack, renderRunViewHtml, renderRunViewText, resetConfig, resetLogger, resetPreference, resolveActiveProfile, resolveActiveReleaseStream, resolveActiveReleaseTagPrefix, resolveBlanketPreferences, resolveElectronAppExecutablePath, resolveElectronAppPathOrNull, resolveLlmSourceStatus, resolveOnboardingAnswers, resolvePreferences, resolveRunSessionPath, resolveRuntimeTarget, resolveTogglePreferences, runGitCommand, saveApiKey, saveApiKeyData, saveCredentials, startDeviceCodeFlow, startStackRun, stopVacatedServices, toDisplayRef, toolRequiresAuth, validatePreference, verifyFileChecksum, writeLlmEnvBlock, writePreferences, writePreferencesWithMetadata, writeRunViewHtml } from './chunk-YMFQHBLJ.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.28.0-staging.
|
|
4
|
+
"version": "5.28.0-staging.253",
|
|
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",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"bin/muggle.js",
|
|
15
15
|
".claude-plugin/marketplace.json",
|
|
16
16
|
"scripts/postinstall.mjs",
|
|
17
|
+
"scripts/post-install-guide",
|
|
17
18
|
"scripts/claude-marketplace-sync.mjs",
|
|
18
19
|
"scripts/electron-app-install-dir.mjs",
|
|
19
20
|
"scripts/onboarding-backfill.mjs",
|
|
@@ -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.28.0-staging.
|
|
4
|
+
"version": "5.28.0-staging.253",
|
|
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.28.0-staging.
|
|
3
|
+
"version": "5.28.0-staging.253",
|
|
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.28.0-staging.
|
|
5
|
+
"version": "5.28.0-staging.253",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/plugin/.mcp.json
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** Terminal device opened on POSIX systems to reach the user's console past npm's output capture. */
|
|
2
|
+
export const POSIX_TERMINAL_DEVICE_PATH = "/dev/tty";
|
|
3
|
+
|
|
4
|
+
/** Console output device opened on Windows to reach the user's console past npm's output capture. */
|
|
5
|
+
export const WINDOWS_TERMINAL_DEVICE_PATH = "\\\\.\\CONOUT$";
|
|
6
|
+
|
|
7
|
+
/** Documentation page the guide links to. */
|
|
8
|
+
export const POST_INSTALL_DOCS_URL = "https://www.muggle-ai.com/muggleTestV0/docs/mcp/mcp-overview";
|
|
9
|
+
|
|
10
|
+
/** Lines of the guide, in print order. Blank strings are spacing. */
|
|
11
|
+
export const POST_INSTALL_GUIDE_LINES = [
|
|
12
|
+
"Muggle AI Works is installed. Here is how to use it.",
|
|
13
|
+
"",
|
|
14
|
+
"See the menu",
|
|
15
|
+
" /m (or /muggle:muggle) Opens a menu of every command",
|
|
16
|
+
"",
|
|
17
|
+
"Import your existing tests first",
|
|
18
|
+
" /mimport (or /muggle:muggle-test-import)",
|
|
19
|
+
" Example: /mimport import my Playwright tests from ./e2e",
|
|
20
|
+
"",
|
|
21
|
+
"Build something, with acceptance tests",
|
|
22
|
+
" /mdo (or /muggle:muggle-do)",
|
|
23
|
+
" Example: /mdo Add a logout button to the header",
|
|
24
|
+
" Writes the code and unit tests, checks it in a real browser, opens the PR with",
|
|
25
|
+
" screenshots, then watches the PR for reviews and CI.",
|
|
26
|
+
"",
|
|
27
|
+
"Run a test, locally or remotely",
|
|
28
|
+
" /mtest (or /muggle:muggle-test)",
|
|
29
|
+
" Example: /mtest check my changes on http://localhost:3000",
|
|
30
|
+
" Example: /mtest check my changes on https://staging.example.com",
|
|
31
|
+
"",
|
|
32
|
+
"Get run guidance",
|
|
33
|
+
" muggle help Full how-to guide, in your terminal",
|
|
34
|
+
"",
|
|
35
|
+
"Manage preferences",
|
|
36
|
+
" /mprefs (or /muggle:muggle-preferences)",
|
|
37
|
+
" Example: /mprefs show my settings",
|
|
38
|
+
"",
|
|
39
|
+
"In Codex, write $muggle:mdo for /mdo.",
|
|
40
|
+
`Docs: ${POST_INSTALL_DOCS_URL}`,
|
|
41
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const POSIX_TERMINAL_DEVICE_PATH: string;
|
|
2
|
+
export declare const WINDOWS_TERMINAL_DEVICE_PATH: string;
|
|
3
|
+
export declare const POST_INSTALL_DOCS_URL: string;
|
|
4
|
+
export declare const POST_INSTALL_GUIDE_LINES: readonly string[];
|
|
5
|
+
|
|
6
|
+
export declare function buildPostInstallGuide(): string;
|
|
7
|
+
|
|
8
|
+
export declare function writeToTerminalDevice(devicePath: string, text: string): void;
|
|
9
|
+
|
|
10
|
+
export declare function showPostInstallGuide(params: {
|
|
11
|
+
guide: string;
|
|
12
|
+
isStdoutTerminal: boolean;
|
|
13
|
+
env: NodeJS.ProcessEnv;
|
|
14
|
+
platformName: string;
|
|
15
|
+
writeToStdout: (text: string) => void;
|
|
16
|
+
writeToDevice?: (devicePath: string, text: string) => void;
|
|
17
|
+
}): { wroteToStdout: boolean; wroteToTerminalDevice: boolean };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { closeSync, openSync, writeSync } from "node:fs";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
POSIX_TERMINAL_DEVICE_PATH,
|
|
5
|
+
POST_INSTALL_GUIDE_LINES,
|
|
6
|
+
WINDOWS_TERMINAL_DEVICE_PATH,
|
|
7
|
+
} from "./constants.mjs";
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
POSIX_TERMINAL_DEVICE_PATH,
|
|
11
|
+
POST_INSTALL_DOCS_URL,
|
|
12
|
+
POST_INSTALL_GUIDE_LINES,
|
|
13
|
+
WINDOWS_TERMINAL_DEVICE_PATH,
|
|
14
|
+
} from "./constants.mjs";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Build the getting-started guide shown after install.
|
|
18
|
+
* @returns {string} The guide as plain text.
|
|
19
|
+
*/
|
|
20
|
+
export function buildPostInstallGuide() {
|
|
21
|
+
return POST_INSTALL_GUIDE_LINES.join("\n");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Write text straight to the user's console device, bypassing stdout.
|
|
26
|
+
* @param {string} devicePath - Console device to open.
|
|
27
|
+
* @param {string} text - Text to write.
|
|
28
|
+
* @throws When the device cannot be opened, as in a headless environment.
|
|
29
|
+
*/
|
|
30
|
+
export function writeToTerminalDevice(devicePath, text) {
|
|
31
|
+
const fileDescriptor = openSync(devicePath, "w");
|
|
32
|
+
try {
|
|
33
|
+
writeSync(fileDescriptor, text);
|
|
34
|
+
} finally {
|
|
35
|
+
closeSync(fileDescriptor);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Show the guide to whoever ran the install.
|
|
41
|
+
*
|
|
42
|
+
* npm captures a lifecycle script's stdout during a global install and discards it on
|
|
43
|
+
* success, so a plain `console.log` is never seen. When stdout is not a terminal the guide
|
|
44
|
+
* is also written to the console device directly. CI and headless runs have no console to
|
|
45
|
+
* reach, so that write is skipped there and its failure is swallowed.
|
|
46
|
+
* @param {object} params - Output wiring.
|
|
47
|
+
* @param {string} params.guide - Text to show.
|
|
48
|
+
* @param {boolean} params.isStdoutTerminal - Whether stdout is an interactive terminal.
|
|
49
|
+
* @param {NodeJS.ProcessEnv} params.env - Process environment.
|
|
50
|
+
* @param {string} params.platformName - Value of `os.platform()`.
|
|
51
|
+
* @param {(text: string) => void} params.writeToStdout - Writes the guide to stdout and the install log.
|
|
52
|
+
* @param {(devicePath: string, text: string) => void} [params.writeToDevice] - Writes to a console device.
|
|
53
|
+
* @returns {{ wroteToStdout: boolean, wroteToTerminalDevice: boolean }} Which outputs received the guide.
|
|
54
|
+
*/
|
|
55
|
+
export function showPostInstallGuide({
|
|
56
|
+
guide,
|
|
57
|
+
isStdoutTerminal,
|
|
58
|
+
env,
|
|
59
|
+
platformName,
|
|
60
|
+
writeToStdout,
|
|
61
|
+
writeToDevice = writeToTerminalDevice,
|
|
62
|
+
}) {
|
|
63
|
+
writeToStdout(guide);
|
|
64
|
+
|
|
65
|
+
if (isStdoutTerminal || env.CI) {
|
|
66
|
+
return { wroteToStdout: true, wroteToTerminalDevice: false };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const devicePath = platformName === "win32" ? WINDOWS_TERMINAL_DEVICE_PATH : POSIX_TERMINAL_DEVICE_PATH;
|
|
70
|
+
|
|
71
|
+
try {
|
|
72
|
+
writeToDevice(devicePath, `\n${guide}\n\n`);
|
|
73
|
+
return { wroteToStdout: true, wroteToTerminalDevice: true };
|
|
74
|
+
} catch {
|
|
75
|
+
return { wroteToStdout: true, wroteToTerminalDevice: false };
|
|
76
|
+
}
|
|
77
|
+
}
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
resolveIntegrityPolicy,
|
|
39
39
|
verifyReleaseSignature,
|
|
40
40
|
} from "./release-integrity/index.mjs";
|
|
41
|
+
import { buildPostInstallGuide, showPostInstallGuide } from "./post-install-guide/index.mjs";
|
|
41
42
|
|
|
42
43
|
const require = createRequire(import.meta.url);
|
|
43
44
|
const INSTALL_METADATA_FILE_NAME = ".install-metadata.json";
|
|
@@ -1056,4 +1057,17 @@ applyWatchServicePreference();
|
|
|
1056
1057
|
upsertCursorMcpConfig();
|
|
1057
1058
|
downloadElectronApp()
|
|
1058
1059
|
.catch(logError)
|
|
1059
|
-
.finally(() =>
|
|
1060
|
+
.finally(() => {
|
|
1061
|
+
try {
|
|
1062
|
+
showPostInstallGuide({
|
|
1063
|
+
guide: buildPostInstallGuide(),
|
|
1064
|
+
isStdoutTerminal: Boolean(process.stdout.isTTY),
|
|
1065
|
+
env: process.env,
|
|
1066
|
+
platformName: platform(),
|
|
1067
|
+
writeToStdout: log,
|
|
1068
|
+
});
|
|
1069
|
+
} catch (error) {
|
|
1070
|
+
logError(`Failed to show the post-install guide: ${error.message}`);
|
|
1071
|
+
}
|
|
1072
|
+
process.exit(0);
|
|
1073
|
+
});
|