@muggleai/works 5.26.0-staging.201 → 5.26.0-staging.203

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 (34) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/README.md +1 -1
  3. package/dist/{chunk-3SOMBMOZ.js → chunk-3XUP6R6P.js} +16 -0
  4. package/dist/{chunk-ZICCOF6H.js → chunk-7NGYZIG7.js} +2659 -2358
  5. package/dist/cli.js +2 -2
  6. package/dist/index.js +2 -2
  7. package/dist/plugin/.claude-plugin/plugin.json +1 -1
  8. package/dist/plugin/.codex-mcp.json +1 -1
  9. package/dist/plugin/.codex-plugin/plugin.json +1 -1
  10. package/dist/plugin/.cursor-plugin/plugin.json +1 -1
  11. package/dist/plugin/.mcp.json +1 -1
  12. package/dist/plugin/config/preference-defaults.json +1 -0
  13. package/dist/plugin/skills/muggle-pr-followup/reconcile.md +1 -1
  14. package/dist/plugin/skills/muggle-pr-followup/state-schemas.md +1 -1
  15. package/dist/plugin/skills/muggle-preferences/ops/configure.md +1 -0
  16. package/dist/plugin/skills/muggle-preferences/preference-gates/autoInstallWatchService.md +13 -0
  17. package/dist/plugin/skills/muggle-upgrade/SKILL.md +10 -2
  18. package/dist/release-manifest.json +3 -3
  19. package/dist/{src-62CIBCSG.js → src-MCPYIWZE.js} +1 -1
  20. package/package.json +1 -1
  21. package/plugin/.claude-plugin/plugin.json +1 -1
  22. package/plugin/.codex-mcp.json +1 -1
  23. package/plugin/.codex-plugin/plugin.json +1 -1
  24. package/plugin/.cursor-plugin/plugin.json +1 -1
  25. package/plugin/.mcp.json +1 -1
  26. package/plugin/config/preference-defaults.json +1 -0
  27. package/plugin/skills/muggle-pr-followup/reconcile.md +1 -1
  28. package/plugin/skills/muggle-pr-followup/state-schemas.md +1 -1
  29. package/plugin/skills/muggle-preferences/ops/configure.md +1 -0
  30. package/plugin/skills/muggle-preferences/preference-gates/autoInstallWatchService.md +13 -0
  31. package/plugin/skills/muggle-upgrade/SKILL.md +10 -2
  32. package/scripts/muggle-watch/README.md +18 -7
  33. package/scripts/muggle-watch/install-muggle-watch.ps1 +14 -3
  34. package/scripts/postinstall.mjs +25 -1
@@ -9,7 +9,7 @@
9
9
  "name": "muggleai",
10
10
  "source": "./plugin",
11
11
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
12
- "version": "5.26.0-staging.201"
12
+ "version": "5.26.0-staging.203"
13
13
  }
14
14
  ]
15
15
  }
package/README.md CHANGED
@@ -480,7 +480,7 @@ Want it hosted, with nothing to configure? [Muggle Test](https://www.muggletest.
480
480
  ```bash
481
481
  pnpm install # This repo is pnpm-only
482
482
  pnpm run build # tsup + plugin artifact
483
- pnpm test # Test suite
483
+ pnpm test # Tests impacted since origin/master, on 25% of cores (full suite in CI; MUGGLE_VITEST_FULL=1 forces it locally)
484
484
  pnpm run lint # Lint (auto-fix)
485
485
  pnpm run typecheck # Type check
486
486
  pnpm run dev # Watch mode
@@ -2507,6 +2507,7 @@ var PreferenceKey = /* @__PURE__ */ ((PreferenceKey2) => {
2507
2507
  PreferenceKey2["AutoRouteBuildToMuggleDo"] = "autoRouteBuildToMuggleDo";
2508
2508
  PreferenceKey2["AutoWatchPR"] = "autoWatchPR";
2509
2509
  PreferenceKey2["AutoInstallCiWorkflow"] = "autoInstallCiWorkflow";
2510
+ PreferenceKey2["AutoInstallWatchService"] = "autoInstallWatchService";
2510
2511
  PreferenceKey2["WatcherLifetime"] = "watcherLifetime";
2511
2512
  PreferenceKey2["MaxCatchUpRebases"] = "maxCatchUpRebases";
2512
2513
  PreferenceKey2["ReusePreparePlan"] = "reusePreparePlan";
@@ -2553,6 +2554,7 @@ var DEFAULT_PREFERENCES = {
2553
2554
  ["autoRouteBuildToMuggleDo" /* AutoRouteBuildToMuggleDo */]: "always" /* Always */,
2554
2555
  ["autoWatchPR" /* AutoWatchPR */]: "always" /* Always */,
2555
2556
  ["autoInstallCiWorkflow" /* AutoInstallCiWorkflow */]: "ask" /* Ask */,
2557
+ ["autoInstallWatchService" /* AutoInstallWatchService */]: "ask" /* Ask */,
2556
2558
  ["reusePreparePlan" /* ReusePreparePlan */]: "always" /* Always */,
2557
2559
  ["watcherLifetime" /* WatcherLifetime */]: "7d" /* SevenDays */,
2558
2560
  ["maxCatchUpRebases" /* MaxCatchUpRebases */]: "20" /* TwentyRebases */
@@ -2605,6 +2607,7 @@ var PREFERENCE_ALLOWED_VALUES = {
2605
2607
  ["autoRouteBuildToMuggleDo" /* AutoRouteBuildToMuggleDo */]: ALWAYS_ASK_NEVER,
2606
2608
  ["autoWatchPR" /* AutoWatchPR */]: ALWAYS_ASK_NEVER,
2607
2609
  ["autoInstallCiWorkflow" /* AutoInstallCiWorkflow */]: ALWAYS_ASK_NEVER,
2610
+ ["autoInstallWatchService" /* AutoInstallWatchService */]: ALWAYS_ASK_NEVER,
2608
2611
  ["reusePreparePlan" /* ReusePreparePlan */]: ALWAYS_ASK_NEVER,
2609
2612
  ["watcherLifetime" /* WatcherLifetime */]: WATCHER_LIFETIMES,
2610
2613
  ["maxCatchUpRebases" /* MaxCatchUpRebases */]: CATCH_UP_REBASE_BUDGETS
@@ -2676,6 +2679,9 @@ var PREFERENCES_SCHEMA = {
2676
2679
  ["autoInstallCiWorkflow" /* AutoInstallCiWorkflow */]: {
2677
2680
  description: "When muggle init runs in a repository, or /muggle-do opens a PR in one, that lacks .github/workflows/muggle-walkthrough.yml, add it \u2014 the CI check that fails a PR whose E2E walkthrough is missing or reports a failed or inconclusive test case"
2678
2681
  },
2682
+ ["autoInstallWatchService" /* AutoInstallWatchService */]: {
2683
+ description: "When muggle works installs or upgrades, register or refresh the Muggle Watch scheduled task \u2014 it tracks sessions and PR watchers, resumes the owner of a dead watcher, and brings idle sessions onto the installed build"
2684
+ },
2679
2685
  ["reusePreparePlan" /* ReusePreparePlan */]: {
2680
2686
  description: "Reuse the saved prepare plan for this stack (skip discovery, jump to check-running + smoke-test) instead of rediscovering from scratch"
2681
2687
  },
@@ -9415,6 +9421,16 @@ var ONBOARDING_CHOICE_GROUPS = [
9415
9421
  { value: "never" /* Never */, label: "Never \u2014 I'll run muggle ci-install myself" }
9416
9422
  ]
9417
9423
  },
9424
+ {
9425
+ header: "Muggle Watch",
9426
+ key: "autoInstallWatchService" /* AutoInstallWatchService */,
9427
+ prompt: "Run Muggle Watch in the background? Every few minutes it brings back dead PR watchers and moves idle sessions onto the newest install.",
9428
+ optionLabels: [
9429
+ { value: "always" /* Always */, label: "Always \u2014 install it now and refresh it on every upgrade" },
9430
+ { value: "ask" /* Ask */, label: "Ask me later" },
9431
+ { value: "never" /* Never */, label: "Never \u2014 I'll run scripts/muggle-watch/install-muggle-watch.ps1 myself" }
9432
+ ]
9433
+ },
9418
9434
  {
9419
9435
  header: "PR watcher",
9420
9436
  key: "watcherLifetime" /* WatcherLifetime */,