@muggleai/works 5.26.0-staging.200 → 5.26.0-staging.202

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 (33) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/{chunk-IL5E5YGY.js → chunk-3XUP6R6P.js} +29 -0
  3. package/dist/{chunk-MKQYUSIW.js → chunk-RT2SICT3.js} +2647 -2346
  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/config/preference-defaults.json +1 -0
  12. package/dist/plugin/skills/muggle-pr-followup/reconcile.md +1 -1
  13. package/dist/plugin/skills/muggle-pr-followup/state-schemas.md +1 -1
  14. package/dist/plugin/skills/muggle-preferences/ops/configure.md +1 -0
  15. package/dist/plugin/skills/muggle-preferences/preference-gates/autoInstallWatchService.md +13 -0
  16. package/dist/plugin/skills/muggle-upgrade/SKILL.md +10 -2
  17. package/dist/release-manifest.json +3 -3
  18. package/dist/{src-UVZTYRQY.js → src-MCPYIWZE.js} +1 -1
  19. package/package.json +1 -1
  20. package/plugin/.claude-plugin/plugin.json +1 -1
  21. package/plugin/.codex-mcp.json +1 -1
  22. package/plugin/.codex-plugin/plugin.json +1 -1
  23. package/plugin/.cursor-plugin/plugin.json +1 -1
  24. package/plugin/.mcp.json +1 -1
  25. package/plugin/config/preference-defaults.json +1 -0
  26. package/plugin/skills/muggle-pr-followup/reconcile.md +1 -1
  27. package/plugin/skills/muggle-pr-followup/state-schemas.md +1 -1
  28. package/plugin/skills/muggle-preferences/ops/configure.md +1 -0
  29. package/plugin/skills/muggle-preferences/preference-gates/autoInstallWatchService.md +13 -0
  30. package/plugin/skills/muggle-upgrade/SKILL.md +10 -2
  31. package/scripts/muggle-watch/README.md +18 -7
  32. package/scripts/muggle-watch/install-muggle-watch.ps1 +7 -0
  33. 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.200"
12
+ "version": "5.26.0-staging.202"
13
13
  }
14
14
  ]
15
15
  }
@@ -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
  },
@@ -5072,6 +5078,15 @@ var PinnedAccountSchema = z.object({
5072
5078
  emailSecretId: MuggleEntityIdSchema.describe("Secret ID (UUID) of the secret holding the account email"),
5073
5079
  passwordSecretId: MuggleEntityIdSchema.describe("Secret ID (UUID) of the secret holding the account password")
5074
5080
  });
5081
+ var FanOutChoice = /* @__PURE__ */ ((FanOutChoice2) => {
5082
+ FanOutChoice2["FollowPolicy"] = "followPolicy";
5083
+ FanOutChoice2["PrimaryOnly"] = "primaryOnly";
5084
+ FanOutChoice2["AllNow"] = "allNow";
5085
+ return FanOutChoice2;
5086
+ })(FanOutChoice || {});
5087
+ var FanOutChoiceInputSchema = z.enum(["followPolicy" /* FollowPolicy */, "primaryOnly" /* PrimaryOnly */, "allNow" /* AllNow */]).optional().describe(
5088
+ "Optional: followPolicy (default) runs each test case's runSettings records per its lane's fan-out policy; primaryOnly runs only the primary record; allNow runs every record at once"
5089
+ );
5075
5090
  var DisplayParamsSchema = z.object({
5076
5091
  browserWindowWidth: z.number(),
5077
5092
  browserWindowHeight: z.number()
@@ -5460,6 +5475,7 @@ var WorkflowStartTestScriptReplayBulkInputSchema = z.object({
5460
5475
  limit: z.number().int().optional().describe("Optional: limit number of test cases to replay"),
5461
5476
  testCaseIds: z.array(IdSchema).optional().describe("Optional: targeted test case UUIDs to replay"),
5462
5477
  repeatPerTestCase: z.number().int().optional().describe("Optional: repeat count per test case"),
5478
+ fanOutChoice: FanOutChoiceInputSchema,
5463
5479
  workflowParams: WorkflowParamsSchema
5464
5480
  });
5465
5481
  var WorkflowGetReplayBulkBatchSummaryInputSchema = z.object({
@@ -6992,6 +7008,7 @@ var workflowTools = [
6992
7008
  limit: toolInput.limit,
6993
7009
  testCaseIds: toolInput.testCaseIds,
6994
7010
  repeatPerTestCase: toolInput.repeatPerTestCase,
7011
+ ...toolInput.fanOutChoice && { fanOutChoice: toolInput.fanOutChoice },
6995
7012
  ...toolInput.workflowParams && { workflowParams: toolInput.workflowParams }
6996
7013
  },
6997
7014
  timeoutMs: getWorkflowTimeoutMs()
@@ -9078,6 +9095,8 @@ __export(e2e_exports2, {
9078
9095
  BulkPreviewSubmitTestCaseInputSchema: () => BulkPreviewSubmitTestCaseInputSchema,
9079
9096
  BulkPreviewSubmitUseCaseInputSchema: () => BulkPreviewSubmitUseCaseInputSchema,
9080
9097
  EmptyInputSchema: () => EmptyInputSchema,
9098
+ FanOutChoice: () => FanOutChoice,
9099
+ FanOutChoiceInputSchema: () => FanOutChoiceInputSchema,
9081
9100
  GatewayError: () => GatewayError,
9082
9101
  IdSchema: () => IdSchema,
9083
9102
  LocalExecutionContextInputSchema: () => LocalExecutionContextInputSchema,
@@ -9402,6 +9421,16 @@ var ONBOARDING_CHOICE_GROUPS = [
9402
9421
  { value: "never" /* Never */, label: "Never \u2014 I'll run muggle ci-install myself" }
9403
9422
  ]
9404
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
+ },
9405
9434
  {
9406
9435
  header: "PR watcher",
9407
9436
  key: "watcherLifetime" /* WatcherLifetime */,