@muggleai/works 5.35.0 → 5.36.0-staging.334

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.
Files changed (42) hide show
  1. package/.claude-plugin/marketplace.json +2 -1
  2. package/dist/{chunk-3MGYJFPU.js → chunk-5E46QHM6.js} +19 -0
  3. package/dist/{chunk-4TPA2XBD.js → chunk-KGTP3CED.js} +2 -2
  4. package/dist/cli.js +2 -2
  5. package/dist/index.js +2 -2
  6. package/dist/plugin/.claude-plugin/plugin.json +1 -1
  7. package/dist/plugin/.codex-mcp.json +1 -1
  8. package/dist/plugin/.codex-plugin/plugin.json +1 -1
  9. package/dist/plugin/.cursor-plugin/plugin.json +1 -1
  10. package/dist/plugin/.mcp.json +1 -1
  11. package/dist/plugin/README.md +7 -1
  12. package/dist/plugin/config/preference-defaults.json +1 -0
  13. package/dist/plugin/skills/muggle-do/SKILL.md +1 -0
  14. package/dist/plugin/skills/muggle-preferences/SKILL.md +1 -1
  15. package/dist/plugin/skills/muggle-preferences/ops/configure.md +1 -0
  16. package/dist/plugin/skills/muggle-preferences/preference-gates/README.md +7 -1
  17. package/dist/plugin/skills/muggle-preferences/preference-gates/frontloadQuestions.md +27 -0
  18. package/dist/plugin/skills/muggle-test/SKILL.md +1 -0
  19. package/dist/plugin/skills/muggle-test-feature-local/SKILL.md +5 -4
  20. package/dist/plugin/skills/muggle-test-import/SKILL.md +1 -0
  21. package/dist/plugin/skills/muggle-test-prepare/SKILL.md +2 -1
  22. package/dist/plugin/skills/muggle-test-regenerate-missing/SKILL.md +1 -0
  23. package/dist/release-manifest.json +4 -4
  24. package/dist/{src-BHOSJEAJ.js → src-2OO6JDTQ.js} +1 -1
  25. package/package.json +3 -3
  26. package/plugin/.claude-plugin/plugin.json +1 -1
  27. package/plugin/.codex-mcp.json +1 -1
  28. package/plugin/.codex-plugin/plugin.json +1 -1
  29. package/plugin/.cursor-plugin/plugin.json +1 -1
  30. package/plugin/.mcp.json +1 -1
  31. package/plugin/README.md +7 -1
  32. package/plugin/config/preference-defaults.json +1 -0
  33. package/plugin/skills/muggle-do/SKILL.md +1 -0
  34. package/plugin/skills/muggle-preferences/SKILL.md +1 -1
  35. package/plugin/skills/muggle-preferences/ops/configure.md +1 -0
  36. package/plugin/skills/muggle-preferences/preference-gates/README.md +7 -1
  37. package/plugin/skills/muggle-preferences/preference-gates/frontloadQuestions.md +27 -0
  38. package/plugin/skills/muggle-test/SKILL.md +1 -0
  39. package/plugin/skills/muggle-test-feature-local/SKILL.md +5 -4
  40. package/plugin/skills/muggle-test-import/SKILL.md +1 -0
  41. package/plugin/skills/muggle-test-prepare/SKILL.md +2 -1
  42. package/plugin/skills/muggle-test-regenerate-missing/SKILL.md +1 -0
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "name": "muggle-works",
3
+ "description": "Muggle Works: acceptance test agent for coding agents, with real-browser tests and screenshots on the PR.",
3
4
  "owner": {
4
5
  "name": "Muggle AI",
5
6
  "email": "support@muggle-ai.com"
@@ -9,7 +10,7 @@
9
10
  "name": "muggleai",
10
11
  "source": "./plugin",
11
12
  "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
12
- "version": "5.35.0"
13
+ "version": "5.36.0-staging.334"
13
14
  }
14
15
  ]
15
16
  }
@@ -2715,6 +2715,7 @@ var PreferenceKey = /* @__PURE__ */ ((PreferenceKey2) => {
2715
2715
  PreferenceKey2["WatcherLifetime"] = "watcherLifetime";
2716
2716
  PreferenceKey2["MaxCatchUpRebases"] = "maxCatchUpRebases";
2717
2717
  PreferenceKey2["ReusePreparePlan"] = "reusePreparePlan";
2718
+ PreferenceKey2["FrontloadQuestions"] = "frontloadQuestions";
2718
2719
  return PreferenceKey2;
2719
2720
  })(PreferenceKey || {});
2720
2721
  var PreferenceValue = /* @__PURE__ */ ((PreferenceValue2) => {
@@ -2768,6 +2769,7 @@ var DEFAULT_PREFERENCES = {
2768
2769
  ["autoInstallCiWorkflow" /* AutoInstallCiWorkflow */]: "ask" /* Ask */,
2769
2770
  ["autoInstallWatchService" /* AutoInstallWatchService */]: "ask" /* Ask */,
2770
2771
  ["reusePreparePlan" /* ReusePreparePlan */]: "always" /* Always */,
2772
+ ["frontloadQuestions" /* FrontloadQuestions */]: "always" /* Always */,
2771
2773
  ["watcherLifetime" /* WatcherLifetime */]: "7d" /* SevenDays */,
2772
2774
  ["maxCatchUpRebases" /* MaxCatchUpRebases */]: "20" /* TwentyRebases */
2773
2775
  };
@@ -2776,6 +2778,10 @@ var ALWAYS_ASK_NEVER = [
2776
2778
  "ask" /* Ask */,
2777
2779
  "never" /* Never */
2778
2780
  ];
2781
+ var ALWAYS_NEVER = [
2782
+ "always" /* Always */,
2783
+ "never" /* Never */
2784
+ ];
2779
2785
  var ALWAYS_ASK = [
2780
2786
  "always" /* Always */,
2781
2787
  "ask" /* Ask */
@@ -2821,6 +2827,7 @@ var PREFERENCE_ALLOWED_VALUES = {
2821
2827
  ["autoInstallCiWorkflow" /* AutoInstallCiWorkflow */]: ALWAYS_ASK_NEVER,
2822
2828
  ["autoInstallWatchService" /* AutoInstallWatchService */]: ALWAYS_ASK_NEVER,
2823
2829
  ["reusePreparePlan" /* ReusePreparePlan */]: ALWAYS_ASK_NEVER,
2830
+ ["frontloadQuestions" /* FrontloadQuestions */]: ALWAYS_NEVER,
2824
2831
  ["watcherLifetime" /* WatcherLifetime */]: WATCHER_LIFETIMES,
2825
2832
  ["maxCatchUpRebases" /* MaxCatchUpRebases */]: CATCH_UP_REBASE_BUDGETS
2826
2833
  };
@@ -2897,6 +2904,9 @@ var PREFERENCES_SCHEMA = {
2897
2904
  ["reusePreparePlan" /* ReusePreparePlan */]: {
2898
2905
  description: "Reuse the saved prepare plan for this stack (skip discovery, jump to check-running + smoke-test) instead of rediscovering from scratch"
2899
2906
  },
2907
+ ["frontloadQuestions" /* FrontloadQuestions */]: {
2908
+ description: "Ask every question a run can foresee in one batch before its first long-running step; after that, take a best-effort default for anything new and list it in the final report instead of blocking \u2014 decisions only the user may make stay open and are surfaced, never defaulted"
2909
+ },
2900
2910
  ["watcherLifetime" /* WatcherLifetime */]: {
2901
2911
  description: "How long a muggle-pr-followup watch loop polls before retiring itself \u2014 1d, 7d, or never (unbounded, which leaves no time-based reaper for an orphaned loop)"
2902
2912
  },
@@ -11828,6 +11838,15 @@ var ONBOARDING_CHOICE_GROUPS = [
11828
11838
  { value: "never" /* Never */, label: "Never \u2014 I'll run muggle watch install myself" }
11829
11839
  ]
11830
11840
  },
11841
+ {
11842
+ header: "Questions",
11843
+ key: "frontloadQuestions" /* FrontloadQuestions */,
11844
+ prompt: "When should a long run ask you its questions?",
11845
+ optionLabels: [
11846
+ { value: "always" /* Always */, label: "All up front \u2014 then run unattended and list any defaults it took" },
11847
+ { value: "never" /* Never */, label: "As each one comes up \u2014 the run waits for my answer" }
11848
+ ]
11849
+ },
11831
11850
  {
11832
11851
  header: "PR watcher",
11833
11852
  key: "watcherLifetime" /* WatcherLifetime */,
@@ -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, 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-3MGYJFPU.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-5E46QHM6.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';
@@ -1341,7 +1341,7 @@ async function resolveGsScreenshotUrls(report, opts) {
1341
1341
  if (gsUrls.length === 0) {
1342
1342
  return report;
1343
1343
  }
1344
- const mcps = await import('./src-BHOSJEAJ.js');
1344
+ const mcps = await import('./src-2OO6JDTQ.js');
1345
1345
  const credentials = await mcps.getCallerCredentialsAsync();
1346
1346
  if (!credentials.bearerToken && !credentials.apiKey) {
1347
1347
  stderrWrite(
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { runCli } from './chunk-4TPA2XBD.js';
3
- import './chunk-3MGYJFPU.js';
2
+ import { runCli } from './chunk-KGTP3CED.js';
3
+ import './chunk-5E46QHM6.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-4TPA2XBD.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-3MGYJFPU.js';
1
+ export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-KGTP3CED.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-5E46QHM6.js';
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "muggle",
3
3
  "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
4
- "version": "5.35.0",
4
+ "version": "5.36.0-staging.334",
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",
7
+ "@muggleai/works@5.36.0-staging.334",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.35.0",
3
+ "version": "5.36.0-staging.334",
4
4
  "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
5
5
  "author": {
6
6
  "name": "Muggle AI",
@@ -2,7 +2,7 @@
2
2
  "name": "muggle",
3
3
  "displayName": "Muggle AI",
4
4
  "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
5
- "version": "5.35.0",
5
+ "version": "5.36.0-staging.334",
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",
7
+ "@muggleai/works@5.36.0-staging.334",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -5,7 +5,13 @@ Real-browser E2E acceptance for your coding agent: test the flows you changed an
5
5
  ## Install
6
6
 
7
7
  ```
8
- /plugin marketplace add https://github.com/multiplex-ai/muggle-ai-works
8
+ /plugin install muggleai --marketplace multiplex-ai/muggle-ai-works
9
+ ```
10
+
11
+ On Claude Code before 2.1.275, add the marketplace first:
12
+
13
+ ```
14
+ /plugin marketplace add multiplex-ai/muggle-ai-works
9
15
  /plugin install muggleai@muggle-works
10
16
  ```
11
17
 
@@ -23,6 +23,7 @@
23
23
  "autoInstallCiWorkflow": "ask",
24
24
  "autoInstallWatchService": "ask",
25
25
  "reusePreparePlan": "always",
26
+ "frontloadQuestions": "always",
26
27
  "watcherLifetime": "7d",
27
28
  "maxCatchUpRebases": "20"
28
29
  }
@@ -85,6 +85,7 @@ When invoked with the directive (PR URL + slug + review ids), routes to [`../do/
85
85
 
86
86
  | Preference | Gate |
87
87
  | :--------- | :--- |
88
+ | `frontloadQuestions` | Every stage — `always` keeps Stage 1 the only questioning turn and Stage 7.5's decision open rather than asked; `never` lets a later stage ask when a question arises ([rule](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
88
89
  | `autoE2ETest` | Stage 6 — run E2E every cycle (default `always`), or fold into pre-flight |
89
90
  | `autoResolveConflicts` | On rebase conflict — `always` resolves autonomously behind a verify-or-rollback gate, `never` aborts + escalates; resolve from the configured preference (don't assume a default) |
90
91
  | `autoRouteBuildToMuggleDo` | Front-door guardrail — route build/implement/fix requests through this pipeline (build delegated to superpowers); fired by the UserPromptSubmit guardrail, default `ask` |
@@ -26,5 +26,5 @@ Pick the operation, then read its op file for the procedure.
26
26
 
27
27
  - **Current values**: session-context line `Muggle Test Preferences key=value …`, already resolved against the shipped defaults in `${CLAUDE_PLUGIN_ROOT}/config/preference-defaults.json`.
28
28
  - **Per-key files**: `preference-gates/<key>.md`. Key list = `ls preference-gates/*.md` minus `README.md`.
29
- - **Allowed values**: `always`/`never`/`ask`, except `defaultExecutionMode` (`local`/`remote`/`ask`), `autoE2ETest` (`always`/`ask`), `watcherLifetime` (`1d`/`7d`/`never`), and `maxCatchUpRebases` (a positive integer, or `never`).
29
+ - **Allowed values**: `always`/`never`/`ask`, except `defaultExecutionMode` (`local`/`remote`/`ask`), `autoE2ETest` (`always`/`ask`), `frontloadQuestions` (`always`/`never`), `watcherLifetime` (`1d`/`7d`/`never`), and `maxCatchUpRebases` (a positive integer, or `never`).
30
30
  - **Scope**: preferences are user-level. Every write lands in `~/.muggle-ai/preferences.json` and applies to every repo. If the user asks for a per-project setting, say it isn't supported and confirm before setting it everywhere.
@@ -35,6 +35,7 @@ For each option: label = key name, description = first paragraph of `preference-
35
35
  - `multiSelect: false`, `header: "Muggle Watch"` — `autoInstallWatchService`. Options: `Always — install it now and refresh it on every upgrade` (`always`), `Ask me later` (`ask` — default), `Never` (`never`).
36
36
  - `multiSelect: false`, `header: "E2E acceptance"` — `autoE2ETest`. Options: `Always run Stage 6 at the end` (`always` — default), `Ask each cycle` (`ask`). No `never` option.
37
37
  - `multiSelect: false`, `header: "Default mode"` — `defaultExecutionMode`. Options: `Local — run on my computer` (`local`), `Remote — run in the Muggle Test cloud` (`remote`), `Ask each time` (don't change).
38
+ - `multiSelect: false`, `header: "Questions"` — `frontloadQuestions`. Options: `All up front — then run unattended` (`always` — default), `As each one comes up` (`never`). No `ask` option.
38
39
  - `multiSelect: false`, `header: "PR watcher"` — `watcherLifetime`. Options: `Retire after 1 day` (`1d`), `Retire after 7 days` (`7d` — default), `Never retire` (`never`).
39
40
  - `multiSelect: false`, `header: "Rebase budget"` — `maxCatchUpRebases`. Options: `Stop after 20 rebases` (`20` — default), `Stop after 10` (`10`), `Stop after 50` (`50`), `Never stop` (`never`).
40
41
 
@@ -6,7 +6,8 @@ actually fire.
6
6
 
7
7
  Default allowed values: `always` / `never` / `ask`. Per-key overrides are noted
8
8
  in their own file: `defaultExecutionMode` (`local` / `remote` / `ask`),
9
- `autoE2ETest` (`always` / `ask`), `watcherLifetime` (`1d` / `7d` / `never`), and
9
+ `autoE2ETest` (`always` / `ask`), `frontloadQuestions` (`always` / `never`),
10
+ `watcherLifetime` (`1d` / `7d` / `never`), and
10
11
  `maxCatchUpRebases` (a positive integer, or `never`).
11
12
 
12
13
  `watcherLifetime` and `maxCatchUpRebases` are **configuration values rather than
@@ -30,6 +31,11 @@ key is never absent.
30
31
 
31
32
  `defaultExecutionMode` uses `local`/`remote` instead of `always`/`never`.
32
33
 
34
+ **When** an `ask` gate's pickers run is set by
35
+ [`frontloadQuestions`](frontloadQuestions.md): under `always` (the default) they
36
+ join the run's up-front batch and their answer is applied when the step arrives;
37
+ under `never` they run at the step itself.
38
+
33
39
  ## Silent footer (mandatory whenever a prompt is skipped)
34
40
 
35
41
  Whenever a gate resolves to a non-`ask` value and skips its picker, the footer
@@ -0,0 +1,27 @@
1
+ # `frontloadQuestions`
2
+
3
+ When a run asks its questions. Allowed values: `always` / `never` — there is no `ask`. Default `always`.
4
+
5
+ `always` moves every question a run can foresee into one up-front batch, then lets the run finish unattended. `never` keeps each question at the step that raises it.
6
+
7
+ ## Under `always`
8
+
9
+ 1. **One up-front batch.** Before the run's first long-running step — invoking `muggle-test-prepare`, any `muggle-local-execute-*` call, a remote generation, replay or bulk dispatch, a build, or a wait on a remote workflow — ask every question the run can foresee, in `AskUserQuestion` calls sent back to back with no work between them. Foreseeable includes every gate the run will fire later that resolves to `ask` (a post-run `openTestResultsAfterRun`, `postPRVisualWalkthrough`, `autoCreatePR`, `autoWatchPR`, `suggestRelated*`), asked now and applied when its step arrives. A foreseeable `ask` gate is never defaulted in place of asking: its picker goes in the batch. A gate resolving to `always` or `never` asks nothing either way.
10
+ 2. **Nothing after it.** Once the first long-running step starts, call no `AskUserQuestion` for the rest of the run. A question that surfaces anyway takes a best-effort default: the gate's shipped default, else the option the skill marks recommended, else the option that changes nothing outside this session. Record each as `Defaulted: <question> → <choice> (<reason>)`.
11
+ 3. **Decisions only the user may make are never defaulted.** Merging, paying, posting publicly, deleting user data, waiving a failing test, choosing an E2E repair: ask it in the batch when it is foreseeable. When it is not, leave it open, finish every part of the run that does not depend on it, and record it as `Open: <question>`.
12
+ 4. **One-click follow-ups become report lines.** A non-blocking prompt a skill offers after a step — "did the agent miss anything on this run?", a suggestion to add related cases — is printed as a line with its one-click path (the slash command and its argument) instead of being asked.
13
+ 5. **The final report lists them.** The run's closing message ends with a `Decisions` block: every `Defaulted:` line, then every `Open:` line, or `Decisions: none deferred`.
14
+
15
+ ## Under `never`
16
+
17
+ Each question is asked at the step that raises it, as the skill describes.
18
+
19
+ **Picker 1** — header `Question timing`, question `"Ask every question up front, then run without stopping?"`
20
+ - `All up front` — `One batch before the run starts; later decisions take a default listed in the report.` → `always`
21
+ - `As they come up` — `The run stops and waits at each question.` → `never`
22
+
23
+ **Silent action**
24
+ - `always` → `Asking everything up front — the run won't stop for questions after this`
25
+ - `never` → `Asking each question when its step comes up`
26
+
27
+ Print the silent footer once, after the up-front batch, not at every step.
@@ -52,6 +52,7 @@ Gates run per `preference-gates/README.md`.
52
52
 
53
53
  | Preference | Step | Decision it gates |
54
54
  |------------|------|-------------------|
55
+ | `frontloadQuestions` | every step | When the run asks: one up-front batch before the first long-running step, nothing after it (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
55
56
  | `autoLogin` | 3 | Reuse saved credentials when auth is required |
56
57
  | `autoSelectProject` | 4 | Reuse last-used Muggle Test project for this repo |
57
58
  | `autoSelectLocalHost` | execute-local | Reuse last-used local dev server URL for this repo |
@@ -48,6 +48,7 @@ Gates run per `preference-gates/README.md`.
48
48
 
49
49
  | Preference | Step | Decision it gates |
50
50
  |------------|------|-------------------|
51
+ | `frontloadQuestions` | every step | When the run asks: one up-front batch before the first long-running step, nothing after it (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
51
52
  | `autoLogin` | 1 | Reuse saved credentials when auth is required |
52
53
  | `autoSelectProject` | 2 | Reuse last-used Muggle Test project for this repo |
53
54
  | `autoSelectLocalHost` | 4 | Reuse last-used local dev server URL for this repo |
@@ -113,7 +114,7 @@ Prompt for projects: "Pick the project to group this test into:"
113
114
 
114
115
  ### 3. Ensure Local Services Are Ready
115
116
 
116
- **Ask first.** Prepare's grant holds ports other sessions wait for, and its lease ends four minutes after the services come up with no run. So before invoking it, resolve every question asked on the way to the first run: Step 4's URL gate, Step 5's script choice (applied after Step 4a), and Step 7's `showElectronBrowser` gate. From prepare to the first execute call, ask nothing.
117
+ **Ask first.** Prepare's grant holds ports other sessions wait for, and its lease ends four minutes after the services come up with no run. So before invoking it, resolve every question asked on the way to the first run: Step 4's URL gate, Step 5's script choice (applied after Step 4a), and Step 7's `showElectronBrowser` gate. From prepare to the first execute call, ask nothing. Under `frontloadQuestions=always` — the default, so also when the key is absent — add to this batch every later gate that resolves to `ask`: Step 8's `openTestResultsAfterRun`, Step 10's `postPRVisualWalkthrough` and `autoCreatePR`, Step 10.5's `autoWatchPR`. Ask each one's Picker 1 here, never default it; nothing is asked after the first execute call.
117
118
 
118
119
  Then invoke the `muggle:muggle-test-prepare` skill via the `Skill` tool from the checkout under test — every run, even when services look up. Live PIDs prove nothing about which code they serve: prepare syncs this checkout onto the latest base, starts sibling services from base checkouts on the latest default branch, and keeps a running service only when it still serves the right commit. It fast-exits when everything is proven. Once it reports ready, check its readiness table: this checkout's services must show this checkout as their `Source` at its current HEAD. Then proceed to Step 4.
119
120
 
@@ -172,7 +173,7 @@ The studio publishes every completed run — pass or fail — to the cloud durin
172
173
  - Gate `openTestResultsAfterRun` (per `preference-gates/README.md`):
173
174
  - `always` → open `viewUrl` automatically (`open "<viewUrl>"` on macOS or OS equivalent).
174
175
  - `never` → print the URL only.
175
- - `ask` → run Picker 1 from `preference-gates/openTestResultsAfterRun.md` via `AskUserQuestion`; map the answer back to one of the actions above.
176
+ - `ask` → under `frontloadQuestions=always`, apply the answer Step 3's batch collected; otherwise run Picker 1 from `preference-gates/openTestResultsAfterRun.md` via `AskUserQuestion`. Map the answer back to one of the actions above.
176
177
 
177
178
  ### 9. Report
178
179
 
@@ -194,7 +195,7 @@ Skip only when the run passed cleanly — the debug path is by definition about
194
195
 
195
196
  Fires after **every** Electron run, pass or fail. A run can technically pass while still containing steps the user would correct — a misclick, wrong element, or a summary that doesn't match intent. This is the user's chance to flag it before regeneration picks up elsewhere.
196
197
 
197
- **Skip if 9a already routed the user into `muggle-feedback` for this run.** Otherwise ask via `AskUserQuestion`:
198
+ **Skip if 9a already routed the user into `muggle-feedback` for this run.** Under `frontloadQuestions=always`, print the question below as a report line with its path — `/muggle-feedback <runId>` — instead of asking. Otherwise ask via `AskUserQuestion`:
198
199
 
199
200
  > "Did the agent miss or do anything wrong on this run? Your feedback regenerates the affected scripts."
200
201
 
@@ -234,7 +235,7 @@ The `/mprfollowup` shortcut starts the same watcher manually at any time.
234
235
  - Satisfy the prerequisite chain (Step 4a) before generating or replaying the target. Read it from `muggle-remote-test-case-ancestors-get` — never infer parents from `precondition` text. Generate any not-ready ancestor test-generation-only, root-first.
235
236
  - If replayable scripts exist, do not default to generation without user choice.
236
237
  - No hiding failures: surface errors and artifact paths.
237
- - **Always offer the agent-guidance reminder after every Electron run** (Step 9b) — pass or fail — unless 9a already routed the user into `muggle-feedback`. Never silently end a run without giving the user a one-click path to flag what was wrong.
238
+ - **Always offer the agent-guidance reminder after every Electron run** (Step 9b) — pass or fail — unless 9a already routed the user into `muggle-feedback`. Never silently end a run without giving the user a one-click path to flag what was wrong — under `frontloadQuestions=always` that path is a report line, not a question.
238
239
  - Replay/timeout discipline per [`../_shared/dev-loop/run.md`](../_shared/dev-loop/run.md) — never hand-build `actionScript`; always pass `timeoutMs`.
239
240
  - Use `AskUserQuestion` for every selection — project, use case, test case, script. Never ask the user to type a number.
240
241
  - Project, use case, and test case selection lists must always include "Create new ...". Include "Show full list" whenever the API returned at least one row for that step; omit "Show full list" when the list is empty (offer "Create new ..." only). For creates, use preview tools (`muggle-remote-use-case-prompt-preview`, `muggle-remote-test-case-generate-from-prompt`) before persisting.
@@ -19,6 +19,7 @@ Gates run per `preference-gates/README.md`.
19
19
 
20
20
  | Preference | Step | Decision it gates |
21
21
  |------------|------|-------------------|
22
+ | `frontloadQuestions` | every step | When the run asks: one up-front batch before the first long-running step, nothing after it (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
22
23
  | `autoLogin` | 4 | Reuse saved credentials when auth is required |
23
24
  | `autoSelectProject` | 5 | Reuse last-used Muggle Test project for this repo |
24
25
  | `suggestRelatedUseCases` | 8a | Suggest related use cases after import |
@@ -69,10 +69,11 @@ Every service runs code built on the latest base: the caller's own checkout, syn
69
69
 
70
70
  ## Preferences
71
71
 
72
- Gates run per [`preference-gates/README.md`](../muggle-preferences/preference-gates/README.md). All three resolve in the Decide phase; the agent receives outcomes, never gates.
72
+ Gates run per [`preference-gates/README.md`](../muggle-preferences/preference-gates/README.md). All of them resolve in the Decide phase; the agent receives outcomes, never gates.
73
73
 
74
74
  | Preference | Gates |
75
75
  |------------|-------|
76
+ | `frontloadQuestions` | every Decide-phase question — asked in one batch before any service starts; the runner never asks (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
76
77
  | `autoRebase` | [rebase-check](./steps/rebase-check.md) — rebase onto `origin/<base>` without asking before starting dev servers; not rebasing stops the run |
77
78
  | `reusePreparePlan` | [reuse-plan](./steps/reuse-plan.md) — reuse the saved prepare plan for this stack, or rediscover; also [e2e-instructions](./steps/e2e-instructions.md), which goes stale for the same reason |
78
79
  | `autoSelectLocalHost` | [check-running](./steps/check-running.md) — reuse the recorded dev-server URL silently, or confirm it each run |
@@ -20,6 +20,7 @@ Gates run per `preference-gates/README.md`.
20
20
 
21
21
  | Preference | Step | Decision it gates |
22
22
  |------------|------|-------------------|
23
+ | `frontloadQuestions` | every step | When the run asks: one up-front batch before the first long-running step, nothing after it (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
23
24
  | `autoLogin` | 1 | Reuse saved credentials when auth is required |
24
25
  | `autoSelectProject` | 2 | Reuse last-used Muggle Test project for this repo |
25
26
 
@@ -1,7 +1,7 @@
1
1
  {
2
- "release": "5.35.0",
3
- "buildId": "run-332-1",
4
- "commitSha": "9e9e21ceb30371ab267c84fd62346a0ae9858ce8",
5
- "buildTime": "2026-11-11T04:56:00Z",
2
+ "release": "5.36.0-staging.334",
3
+ "buildId": "run-334-1",
4
+ "commitSha": "d871bebb6d6bca13edaa4bc0d196ded8acfdb73c",
5
+ "buildTime": "2026-11-11T07:06:39Z",
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-3MGYJFPU.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-5E46QHM6.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@muggleai/works",
3
- "mcpName": "io.github.multiplex-ai/muggle",
4
- "version": "5.35.0",
3
+ "mcpName": "io.github.multiplex-ai/muggleai",
4
+ "version": "5.36.0-staging.334",
5
5
  "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
@@ -68,7 +68,7 @@
68
68
  "muggleConfig": {
69
69
  "electronAppVersion": "1.24.16",
70
70
  "downloadBaseUrl": "https://github.com/multiplex-ai/muggle-ai-works/releases/download",
71
- "runtimeTargetDefault": "production",
71
+ "runtimeTargetDefault": "staging",
72
72
  "checksumsByStream": {
73
73
  "production": {
74
74
  "win32-x64": "9645ed8e777fada8893c9f61abc1cdad827808385a68a462c4c087c02dcbaea0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "muggle",
3
3
  "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
4
- "version": "5.35.0",
4
+ "version": "5.36.0-staging.334",
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",
7
+ "@muggleai/works@5.36.0-staging.334",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.35.0",
3
+ "version": "5.36.0-staging.334",
4
4
  "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
5
5
  "author": {
6
6
  "name": "Muggle AI",
@@ -2,7 +2,7 @@
2
2
  "name": "muggle",
3
3
  "displayName": "Muggle AI",
4
4
  "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
5
- "version": "5.35.0",
5
+ "version": "5.36.0-staging.334",
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",
7
+ "@muggleai/works@5.36.0-staging.334",
8
8
  "serve"
9
9
  ]
10
10
  }
package/plugin/README.md CHANGED
@@ -5,7 +5,13 @@ Real-browser E2E acceptance for your coding agent: test the flows you changed an
5
5
  ## Install
6
6
 
7
7
  ```
8
- /plugin marketplace add https://github.com/multiplex-ai/muggle-ai-works
8
+ /plugin install muggleai --marketplace multiplex-ai/muggle-ai-works
9
+ ```
10
+
11
+ On Claude Code before 2.1.275, add the marketplace first:
12
+
13
+ ```
14
+ /plugin marketplace add multiplex-ai/muggle-ai-works
9
15
  /plugin install muggleai@muggle-works
10
16
  ```
11
17
 
@@ -23,6 +23,7 @@
23
23
  "autoInstallCiWorkflow": "ask",
24
24
  "autoInstallWatchService": "ask",
25
25
  "reusePreparePlan": "always",
26
+ "frontloadQuestions": "always",
26
27
  "watcherLifetime": "7d",
27
28
  "maxCatchUpRebases": "20"
28
29
  }
@@ -85,6 +85,7 @@ When invoked with the directive (PR URL + slug + review ids), routes to [`../do/
85
85
 
86
86
  | Preference | Gate |
87
87
  | :--------- | :--- |
88
+ | `frontloadQuestions` | Every stage — `always` keeps Stage 1 the only questioning turn and Stage 7.5's decision open rather than asked; `never` lets a later stage ask when a question arises ([rule](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
88
89
  | `autoE2ETest` | Stage 6 — run E2E every cycle (default `always`), or fold into pre-flight |
89
90
  | `autoResolveConflicts` | On rebase conflict — `always` resolves autonomously behind a verify-or-rollback gate, `never` aborts + escalates; resolve from the configured preference (don't assume a default) |
90
91
  | `autoRouteBuildToMuggleDo` | Front-door guardrail — route build/implement/fix requests through this pipeline (build delegated to superpowers); fired by the UserPromptSubmit guardrail, default `ask` |
@@ -26,5 +26,5 @@ Pick the operation, then read its op file for the procedure.
26
26
 
27
27
  - **Current values**: session-context line `Muggle Test Preferences key=value …`, already resolved against the shipped defaults in `${CLAUDE_PLUGIN_ROOT}/config/preference-defaults.json`.
28
28
  - **Per-key files**: `preference-gates/<key>.md`. Key list = `ls preference-gates/*.md` minus `README.md`.
29
- - **Allowed values**: `always`/`never`/`ask`, except `defaultExecutionMode` (`local`/`remote`/`ask`), `autoE2ETest` (`always`/`ask`), `watcherLifetime` (`1d`/`7d`/`never`), and `maxCatchUpRebases` (a positive integer, or `never`).
29
+ - **Allowed values**: `always`/`never`/`ask`, except `defaultExecutionMode` (`local`/`remote`/`ask`), `autoE2ETest` (`always`/`ask`), `frontloadQuestions` (`always`/`never`), `watcherLifetime` (`1d`/`7d`/`never`), and `maxCatchUpRebases` (a positive integer, or `never`).
30
30
  - **Scope**: preferences are user-level. Every write lands in `~/.muggle-ai/preferences.json` and applies to every repo. If the user asks for a per-project setting, say it isn't supported and confirm before setting it everywhere.
@@ -35,6 +35,7 @@ For each option: label = key name, description = first paragraph of `preference-
35
35
  - `multiSelect: false`, `header: "Muggle Watch"` — `autoInstallWatchService`. Options: `Always — install it now and refresh it on every upgrade` (`always`), `Ask me later` (`ask` — default), `Never` (`never`).
36
36
  - `multiSelect: false`, `header: "E2E acceptance"` — `autoE2ETest`. Options: `Always run Stage 6 at the end` (`always` — default), `Ask each cycle` (`ask`). No `never` option.
37
37
  - `multiSelect: false`, `header: "Default mode"` — `defaultExecutionMode`. Options: `Local — run on my computer` (`local`), `Remote — run in the Muggle Test cloud` (`remote`), `Ask each time` (don't change).
38
+ - `multiSelect: false`, `header: "Questions"` — `frontloadQuestions`. Options: `All up front — then run unattended` (`always` — default), `As each one comes up` (`never`). No `ask` option.
38
39
  - `multiSelect: false`, `header: "PR watcher"` — `watcherLifetime`. Options: `Retire after 1 day` (`1d`), `Retire after 7 days` (`7d` — default), `Never retire` (`never`).
39
40
  - `multiSelect: false`, `header: "Rebase budget"` — `maxCatchUpRebases`. Options: `Stop after 20 rebases` (`20` — default), `Stop after 10` (`10`), `Stop after 50` (`50`), `Never stop` (`never`).
40
41
 
@@ -6,7 +6,8 @@ actually fire.
6
6
 
7
7
  Default allowed values: `always` / `never` / `ask`. Per-key overrides are noted
8
8
  in their own file: `defaultExecutionMode` (`local` / `remote` / `ask`),
9
- `autoE2ETest` (`always` / `ask`), `watcherLifetime` (`1d` / `7d` / `never`), and
9
+ `autoE2ETest` (`always` / `ask`), `frontloadQuestions` (`always` / `never`),
10
+ `watcherLifetime` (`1d` / `7d` / `never`), and
10
11
  `maxCatchUpRebases` (a positive integer, or `never`).
11
12
 
12
13
  `watcherLifetime` and `maxCatchUpRebases` are **configuration values rather than
@@ -30,6 +31,11 @@ key is never absent.
30
31
 
31
32
  `defaultExecutionMode` uses `local`/`remote` instead of `always`/`never`.
32
33
 
34
+ **When** an `ask` gate's pickers run is set by
35
+ [`frontloadQuestions`](frontloadQuestions.md): under `always` (the default) they
36
+ join the run's up-front batch and their answer is applied when the step arrives;
37
+ under `never` they run at the step itself.
38
+
33
39
  ## Silent footer (mandatory whenever a prompt is skipped)
34
40
 
35
41
  Whenever a gate resolves to a non-`ask` value and skips its picker, the footer
@@ -0,0 +1,27 @@
1
+ # `frontloadQuestions`
2
+
3
+ When a run asks its questions. Allowed values: `always` / `never` — there is no `ask`. Default `always`.
4
+
5
+ `always` moves every question a run can foresee into one up-front batch, then lets the run finish unattended. `never` keeps each question at the step that raises it.
6
+
7
+ ## Under `always`
8
+
9
+ 1. **One up-front batch.** Before the run's first long-running step — invoking `muggle-test-prepare`, any `muggle-local-execute-*` call, a remote generation, replay or bulk dispatch, a build, or a wait on a remote workflow — ask every question the run can foresee, in `AskUserQuestion` calls sent back to back with no work between them. Foreseeable includes every gate the run will fire later that resolves to `ask` (a post-run `openTestResultsAfterRun`, `postPRVisualWalkthrough`, `autoCreatePR`, `autoWatchPR`, `suggestRelated*`), asked now and applied when its step arrives. A foreseeable `ask` gate is never defaulted in place of asking: its picker goes in the batch. A gate resolving to `always` or `never` asks nothing either way.
10
+ 2. **Nothing after it.** Once the first long-running step starts, call no `AskUserQuestion` for the rest of the run. A question that surfaces anyway takes a best-effort default: the gate's shipped default, else the option the skill marks recommended, else the option that changes nothing outside this session. Record each as `Defaulted: <question> → <choice> (<reason>)`.
11
+ 3. **Decisions only the user may make are never defaulted.** Merging, paying, posting publicly, deleting user data, waiving a failing test, choosing an E2E repair: ask it in the batch when it is foreseeable. When it is not, leave it open, finish every part of the run that does not depend on it, and record it as `Open: <question>`.
12
+ 4. **One-click follow-ups become report lines.** A non-blocking prompt a skill offers after a step — "did the agent miss anything on this run?", a suggestion to add related cases — is printed as a line with its one-click path (the slash command and its argument) instead of being asked.
13
+ 5. **The final report lists them.** The run's closing message ends with a `Decisions` block: every `Defaulted:` line, then every `Open:` line, or `Decisions: none deferred`.
14
+
15
+ ## Under `never`
16
+
17
+ Each question is asked at the step that raises it, as the skill describes.
18
+
19
+ **Picker 1** — header `Question timing`, question `"Ask every question up front, then run without stopping?"`
20
+ - `All up front` — `One batch before the run starts; later decisions take a default listed in the report.` → `always`
21
+ - `As they come up` — `The run stops and waits at each question.` → `never`
22
+
23
+ **Silent action**
24
+ - `always` → `Asking everything up front — the run won't stop for questions after this`
25
+ - `never` → `Asking each question when its step comes up`
26
+
27
+ Print the silent footer once, after the up-front batch, not at every step.
@@ -52,6 +52,7 @@ Gates run per `preference-gates/README.md`.
52
52
 
53
53
  | Preference | Step | Decision it gates |
54
54
  |------------|------|-------------------|
55
+ | `frontloadQuestions` | every step | When the run asks: one up-front batch before the first long-running step, nothing after it (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
55
56
  | `autoLogin` | 3 | Reuse saved credentials when auth is required |
56
57
  | `autoSelectProject` | 4 | Reuse last-used Muggle Test project for this repo |
57
58
  | `autoSelectLocalHost` | execute-local | Reuse last-used local dev server URL for this repo |
@@ -48,6 +48,7 @@ Gates run per `preference-gates/README.md`.
48
48
 
49
49
  | Preference | Step | Decision it gates |
50
50
  |------------|------|-------------------|
51
+ | `frontloadQuestions` | every step | When the run asks: one up-front batch before the first long-running step, nothing after it (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
51
52
  | `autoLogin` | 1 | Reuse saved credentials when auth is required |
52
53
  | `autoSelectProject` | 2 | Reuse last-used Muggle Test project for this repo |
53
54
  | `autoSelectLocalHost` | 4 | Reuse last-used local dev server URL for this repo |
@@ -113,7 +114,7 @@ Prompt for projects: "Pick the project to group this test into:"
113
114
 
114
115
  ### 3. Ensure Local Services Are Ready
115
116
 
116
- **Ask first.** Prepare's grant holds ports other sessions wait for, and its lease ends four minutes after the services come up with no run. So before invoking it, resolve every question asked on the way to the first run: Step 4's URL gate, Step 5's script choice (applied after Step 4a), and Step 7's `showElectronBrowser` gate. From prepare to the first execute call, ask nothing.
117
+ **Ask first.** Prepare's grant holds ports other sessions wait for, and its lease ends four minutes after the services come up with no run. So before invoking it, resolve every question asked on the way to the first run: Step 4's URL gate, Step 5's script choice (applied after Step 4a), and Step 7's `showElectronBrowser` gate. From prepare to the first execute call, ask nothing. Under `frontloadQuestions=always` — the default, so also when the key is absent — add to this batch every later gate that resolves to `ask`: Step 8's `openTestResultsAfterRun`, Step 10's `postPRVisualWalkthrough` and `autoCreatePR`, Step 10.5's `autoWatchPR`. Ask each one's Picker 1 here, never default it; nothing is asked after the first execute call.
117
118
 
118
119
  Then invoke the `muggle:muggle-test-prepare` skill via the `Skill` tool from the checkout under test — every run, even when services look up. Live PIDs prove nothing about which code they serve: prepare syncs this checkout onto the latest base, starts sibling services from base checkouts on the latest default branch, and keeps a running service only when it still serves the right commit. It fast-exits when everything is proven. Once it reports ready, check its readiness table: this checkout's services must show this checkout as their `Source` at its current HEAD. Then proceed to Step 4.
119
120
 
@@ -172,7 +173,7 @@ The studio publishes every completed run — pass or fail — to the cloud durin
172
173
  - Gate `openTestResultsAfterRun` (per `preference-gates/README.md`):
173
174
  - `always` → open `viewUrl` automatically (`open "<viewUrl>"` on macOS or OS equivalent).
174
175
  - `never` → print the URL only.
175
- - `ask` → run Picker 1 from `preference-gates/openTestResultsAfterRun.md` via `AskUserQuestion`; map the answer back to one of the actions above.
176
+ - `ask` → under `frontloadQuestions=always`, apply the answer Step 3's batch collected; otherwise run Picker 1 from `preference-gates/openTestResultsAfterRun.md` via `AskUserQuestion`. Map the answer back to one of the actions above.
176
177
 
177
178
  ### 9. Report
178
179
 
@@ -194,7 +195,7 @@ Skip only when the run passed cleanly — the debug path is by definition about
194
195
 
195
196
  Fires after **every** Electron run, pass or fail. A run can technically pass while still containing steps the user would correct — a misclick, wrong element, or a summary that doesn't match intent. This is the user's chance to flag it before regeneration picks up elsewhere.
196
197
 
197
- **Skip if 9a already routed the user into `muggle-feedback` for this run.** Otherwise ask via `AskUserQuestion`:
198
+ **Skip if 9a already routed the user into `muggle-feedback` for this run.** Under `frontloadQuestions=always`, print the question below as a report line with its path — `/muggle-feedback <runId>` — instead of asking. Otherwise ask via `AskUserQuestion`:
198
199
 
199
200
  > "Did the agent miss or do anything wrong on this run? Your feedback regenerates the affected scripts."
200
201
 
@@ -234,7 +235,7 @@ The `/mprfollowup` shortcut starts the same watcher manually at any time.
234
235
  - Satisfy the prerequisite chain (Step 4a) before generating or replaying the target. Read it from `muggle-remote-test-case-ancestors-get` — never infer parents from `precondition` text. Generate any not-ready ancestor test-generation-only, root-first.
235
236
  - If replayable scripts exist, do not default to generation without user choice.
236
237
  - No hiding failures: surface errors and artifact paths.
237
- - **Always offer the agent-guidance reminder after every Electron run** (Step 9b) — pass or fail — unless 9a already routed the user into `muggle-feedback`. Never silently end a run without giving the user a one-click path to flag what was wrong.
238
+ - **Always offer the agent-guidance reminder after every Electron run** (Step 9b) — pass or fail — unless 9a already routed the user into `muggle-feedback`. Never silently end a run without giving the user a one-click path to flag what was wrong — under `frontloadQuestions=always` that path is a report line, not a question.
238
239
  - Replay/timeout discipline per [`../_shared/dev-loop/run.md`](../_shared/dev-loop/run.md) — never hand-build `actionScript`; always pass `timeoutMs`.
239
240
  - Use `AskUserQuestion` for every selection — project, use case, test case, script. Never ask the user to type a number.
240
241
  - Project, use case, and test case selection lists must always include "Create new ...". Include "Show full list" whenever the API returned at least one row for that step; omit "Show full list" when the list is empty (offer "Create new ..." only). For creates, use preview tools (`muggle-remote-use-case-prompt-preview`, `muggle-remote-test-case-generate-from-prompt`) before persisting.
@@ -19,6 +19,7 @@ Gates run per `preference-gates/README.md`.
19
19
 
20
20
  | Preference | Step | Decision it gates |
21
21
  |------------|------|-------------------|
22
+ | `frontloadQuestions` | every step | When the run asks: one up-front batch before the first long-running step, nothing after it (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
22
23
  | `autoLogin` | 4 | Reuse saved credentials when auth is required |
23
24
  | `autoSelectProject` | 5 | Reuse last-used Muggle Test project for this repo |
24
25
  | `suggestRelatedUseCases` | 8a | Suggest related use cases after import |
@@ -69,10 +69,11 @@ Every service runs code built on the latest base: the caller's own checkout, syn
69
69
 
70
70
  ## Preferences
71
71
 
72
- Gates run per [`preference-gates/README.md`](../muggle-preferences/preference-gates/README.md). All three resolve in the Decide phase; the agent receives outcomes, never gates.
72
+ Gates run per [`preference-gates/README.md`](../muggle-preferences/preference-gates/README.md). All of them resolve in the Decide phase; the agent receives outcomes, never gates.
73
73
 
74
74
  | Preference | Gates |
75
75
  |------------|-------|
76
+ | `frontloadQuestions` | every Decide-phase question — asked in one batch before any service starts; the runner never asks (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
76
77
  | `autoRebase` | [rebase-check](./steps/rebase-check.md) — rebase onto `origin/<base>` without asking before starting dev servers; not rebasing stops the run |
77
78
  | `reusePreparePlan` | [reuse-plan](./steps/reuse-plan.md) — reuse the saved prepare plan for this stack, or rediscover; also [e2e-instructions](./steps/e2e-instructions.md), which goes stale for the same reason |
78
79
  | `autoSelectLocalHost` | [check-running](./steps/check-running.md) — reuse the recorded dev-server URL silently, or confirm it each run |
@@ -20,6 +20,7 @@ Gates run per `preference-gates/README.md`.
20
20
 
21
21
  | Preference | Step | Decision it gates |
22
22
  |------------|------|-------------------|
23
+ | `frontloadQuestions` | every step | When the run asks: one up-front batch before the first long-running step, nothing after it (see [`frontloadQuestions.md`](../muggle-preferences/preference-gates/frontloadQuestions.md)) |
23
24
  | `autoLogin` | 1 | Reuse saved credentials when auth is required |
24
25
  | `autoSelectProject` | 2 | Reuse last-used Muggle Test project for this repo |
25
26