@muggleai/works 5.36.0-staging.334 → 5.36.0-staging.336

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 (44) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/AGENTS.md +1 -0
  3. package/README.md +2 -1
  4. package/dist/{chunk-5E46QHM6.js → chunk-OIFLV2QN.js} +499 -157
  5. package/dist/{chunk-KGTP3CED.js → chunk-X3GQII63.js} +2 -2
  6. package/dist/cli.js +2 -2
  7. package/dist/index.js +2 -2
  8. package/dist/plugin/.claude-plugin/plugin.json +1 -1
  9. package/dist/plugin/.codex-mcp.json +1 -1
  10. package/dist/plugin/.codex-plugin/plugin.json +1 -1
  11. package/dist/plugin/.cursor-plugin/plugin.json +1 -1
  12. package/dist/plugin/.mcp.json +1 -1
  13. package/dist/plugin/README.md +1 -0
  14. package/dist/plugin/commands/mbugreport.md +7 -0
  15. package/dist/plugin/skills/CLAUDE.md +1 -1
  16. package/dist/plugin/skills/_aliases.json +2 -1
  17. package/dist/plugin/skills/mbugreport/SKILL.md +9 -0
  18. package/dist/plugin/skills/mbugreport/agents/openai.yaml +7 -0
  19. package/dist/plugin/skills/muggle/SKILL.md +1 -0
  20. package/dist/plugin/skills/muggle-bug-report/SKILL.md +37 -0
  21. package/dist/plugin/skills/muggle-bug-report/ops/file.md +68 -0
  22. package/dist/plugin/skills/muggle-bug-report/ops/list.md +30 -0
  23. package/dist/plugin/skills/muggle-bug-report/ops/reply.md +38 -0
  24. package/dist/plugin/skills/muggle-bug-report/ops/status.md +45 -0
  25. package/dist/release-manifest.json +4 -4
  26. package/dist/{src-2OO6JDTQ.js → src-5Z6EIGHT.js} +1 -1
  27. package/package.json +1 -1
  28. package/plugin/.claude-plugin/plugin.json +1 -1
  29. package/plugin/.codex-mcp.json +1 -1
  30. package/plugin/.codex-plugin/plugin.json +1 -1
  31. package/plugin/.cursor-plugin/plugin.json +1 -1
  32. package/plugin/.mcp.json +1 -1
  33. package/plugin/README.md +1 -0
  34. package/plugin/commands/mbugreport.md +7 -0
  35. package/plugin/skills/CLAUDE.md +1 -1
  36. package/plugin/skills/_aliases.json +2 -1
  37. package/plugin/skills/mbugreport/SKILL.md +9 -0
  38. package/plugin/skills/mbugreport/agents/openai.yaml +7 -0
  39. package/plugin/skills/muggle/SKILL.md +1 -0
  40. package/plugin/skills/muggle-bug-report/SKILL.md +37 -0
  41. package/plugin/skills/muggle-bug-report/ops/file.md +68 -0
  42. package/plugin/skills/muggle-bug-report/ops/list.md +30 -0
  43. package/plugin/skills/muggle-bug-report/ops/reply.md +38 -0
  44. package/plugin/skills/muggle-bug-report/ops/status.md +45 -0
@@ -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-5E46QHM6.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-OIFLV2QN.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-2OO6JDTQ.js');
1344
+ const mcps = await import('./src-5Z6EIGHT.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-KGTP3CED.js';
3
- import './chunk-5E46QHM6.js';
2
+ import { runCli } from './chunk-X3GQII63.js';
3
+ import './chunk-OIFLV2QN.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-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
+ export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-X3GQII63.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-OIFLV2QN.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.36.0-staging.334",
4
+ "version": "5.36.0-staging.336",
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.36.0-staging.334",
7
+ "@muggleai/works@5.36.0-staging.336",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.36.0-staging.334",
3
+ "version": "5.36.0-staging.336",
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.36.0-staging.334",
5
+ "version": "5.36.0-staging.336",
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.36.0-staging.334",
7
+ "@muggleai/works@5.36.0-staging.336",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -49,6 +49,7 @@ Type `muggle` to discover the full command family.
49
49
  | `/muggle:muggle-pr-visual-walkthrough` | `/mpr` | Post per-test-case dashboard links, step-by-step screenshots, and a pass/fail summary to a PR. |
50
50
  | `/muggle:muggle-pr-followup` | `/mprfollowup` | Watch one PR's review thread and dispatch the work to address incoming feedback. |
51
51
  | `/muggle:muggle-feedback` | `/mfeedback` | Flag a generated action script, or one step in it, as wrong so Muggle can analyze and regenerate affected scripts. |
52
+ | `/muggle:muggle-bug-report` | `/mbugreport` | Report a bug in Muggle AI itself to the Muggle team, with harness context you review first; list, check or reply to your reports. |
52
53
  | `/muggle:muggle-preferences` | `/mprefs` | View, set, or reset the preferences that gate Muggle Test behavior. |
53
54
  | `/muggle:muggle-status` | `/mstatus` | Health check for Electron browser test runner, MCP server, and authentication. |
54
55
  | `/muggle:muggle-repair` | `/mrepair` | Diagnose and fix broken installation automatically. |
@@ -0,0 +1,7 @@
1
+ ---
2
+ description: File, list, check, or reply to a Muggle AI bug report (alias for /muggle-bug-report)
3
+ argument-hint: [optional description of what went wrong, or list / status BUG-1234 / reply]
4
+ allowed-tools: [Skill]
5
+ ---
6
+
7
+ Invoke the `muggle-bug-report` skill via the Skill tool. Forward `$ARGUMENTS` as the skill's `args`.
@@ -50,7 +50,7 @@ Each skill sets a `model:` in its `SKILL.md` frontmatter sized to its cognitive
50
50
 
51
51
  | Model | Skills | Why this tier |
52
52
  |-------|--------|---------------|
53
- | `haiku` | `muggle`, `muggle-status`, `muggle-repair`, `muggle-upgrade`, `muggle-preferences`, `muggle-feedback`, `muggle-init`, `muggle-ci-install`, `muggle-login`, `muggle-logout`, `muggle-run-view`, `muggle-cleanup`, `muggle-register` | Routers and dumb pipes. They follow an explicit procedure with no open-ended reasoning: route intent to a downstream skill, run a fixed CLI sequence, CRUD a config file, or format a status report. |
53
+ | `haiku` | `muggle`, `muggle-status`, `muggle-repair`, `muggle-upgrade`, `muggle-preferences`, `muggle-feedback`, `muggle-bug-report`, `muggle-init`, `muggle-ci-install`, `muggle-login`, `muggle-logout`, `muggle-run-view`, `muggle-cleanup`, `muggle-register` | Routers and dumb pipes. They follow an explicit procedure with no open-ended reasoning: route intent to a downstream skill, run a fixed CLI sequence, CRUD a config file, or format a status report. |
54
54
  | `sonnet` | `muggle-pr-visual-walkthrough` (executes via the `visual-walkthrough-builder` agent), `muggle-test-regenerate-missing`, `muggle-pr-followup` | Multi-step orchestration with light judgment, short of deep reasoning: assemble run data and build a PR section with fit-vs-overflow handling; scan, filter, bulk-dispatch, and classify per-item failures into buckets; run a watcher tick across a dozen procedure files and fire the one `/muggle-do` directive its verdict calls for. More moving parts than a router, but each step is well-defined. The watcher moved up from `haiku`: its tick eval passed 3–4 of 23 scenarios there, describing the procedure instead of running it, and a tick now runs only when its token-free watch loop exits with something to act on. |
55
55
  | `opus` (explicit pin) | `muggle-test-prepare` (executes via the `test-prepare-runner` agent) | Pinned for **reliability**, not raw reasoning load: it's flaky on smaller models, and since other skills gate on the environment it readies, a wrong call is expensive. Pin explicitly rather than leaving `model:` unset so it stays on Opus even when the user's session runs a cheaper model. |
56
56
 
@@ -21,6 +21,7 @@
21
21
  "mlogin",
22
22
  "mlogout",
23
23
  "mrun",
24
- "mcleanup"
24
+ "mcleanup",
25
+ "mbugreport"
25
26
  ]
26
27
  }
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: mbugreport
3
+ description: Explicit short alias for the `muggle-bug-report` skill. ONLY invoke when the user explicitly types `mbugreport` or `/mbugreport` — never auto-trigger from any other phrasing.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # mbugreport — alias for muggle-bug-report
8
+
9
+ Invoke the `muggle-bug-report` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-bug-report/SKILL.md` and follow it with those arguments.
@@ -0,0 +1,7 @@
1
+ # Codex reads this beside SKILL.md. An alias is for the user to type, never for
2
+ # the model to pick on its own: Codex's equivalent of disable-model-invocation.
3
+ interface:
4
+ display_name: "mbugreport"
5
+ short_description: "Short alias for the muggle-bug-report skill"
6
+ policy:
7
+ allow_implicit_invocation: false
@@ -49,5 +49,6 @@ If the user intent clearly matches one command, route directly — no menu neede
49
49
  - post results to PR/attach walkthrough/visual evidence on PR → `muggle-pr-visual-walkthrough`
50
50
  - watch my PR for reviews/follow up on PR reviews/babysit PR review thread → `muggle-pr-followup`
51
51
  - give feedback on a run/the test was wrong/step N didn't work/show my feedback/delete feedback → `muggle-feedback`
52
+ - report a bug in muggle/muggle itself is broken/my bug reports/status of BUG-NNNN → `muggle-bug-report`
52
53
 
53
54
  If intent is ambiguous, use `AskUserQuestion` with the most likely options rather than asking the user to type a clarification.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: muggle-bug-report
3
+ model: haiku
4
+ description: "Use when the user wants to report a bug in Muggle AI itself (a muggle command or tool erroring, a run hanging, a dashboard or billing problem), or to list, check (BUG-4821) or reply to their bug reports. Not for bugs in the user's own app, nor a generated test script step that misbehaved (muggle-feedback). Triggers on /muggle-bug-report, report a muggle bug."
5
+ ---
6
+
7
+ # Muggle Bug Report
8
+
9
+ > Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-bug-report"`.
10
+
11
+ > Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
12
+
13
+ Files a bug about Muggle AI to the Muggle team and follows it: every report gets a short id (`BUG-4821`), a ticket page on the dashboard, and in-app updates as the team works it.
14
+
15
+ ## Routing
16
+
17
+ | Intent | Op file |
18
+ |---|---|
19
+ | "report a bug" / "muggle is broken" / "file this" / no arguments | [`ops/file.md`](ops/file.md) |
20
+ | "my bug reports" / "list my tickets" | [`ops/list.md`](ops/list.md) |
21
+ | "status BUG-4821" / "what happened to my report" | [`ops/status.md`](ops/status.md) |
22
+ | "reply to BUG-4821" / "answer their question" | [`ops/reply.md`](ops/reply.md) |
23
+
24
+ If intent is ambiguous, use `AskUserQuestion` once with **File a bug / List my reports / Check one / Reply** — never ask the user to type a clarification.
25
+
26
+ ## Constraints (all ops)
27
+
28
+ - **Every tool takes the `bugReportId`, never the short id.** Turn a `BUG-NNNN` the user names into its `bugReportId` with `muggle-remote-bug-report-list`: page with `pageSize: 50`, passing `nextCursor` back as `cursor`, until an item's `shortId` matches. No match on any page → say so and show the list.
29
+ - **Screenshots are paths on this machine**: images only (png, jpg, gif, webp), at most 5, 5 MB each. Pass absolute paths in `screenshotPaths`; the tool reads and uploads them.
30
+ - **Not signed in** (`UNAUTHORIZED`): hand off to the `muggle-login` skill, then resume the op.
31
+ - **`dashboardUrl`** in each response is the ticket's page; print it with the short id.
32
+
33
+ ## Non-negotiables (all ops)
34
+
35
+ - Never file or reply without showing the user exactly what will be sent and getting a confirm.
36
+ - Never add context the context tool did not return, and never put a secret, token or password in a title, description, steps or reply. If the user's text contains one, point it out and ask them to remove it before filing.
37
+ - Show only what the response holds; never guess a ticket's status or what the team will do.
@@ -0,0 +1,68 @@
1
+ # File a bug
2
+
3
+ ## 1. Ask what went wrong
4
+
5
+ Take what the user already said from the prompt or arguments; ask only for what is missing.
6
+
7
+ - **Title** — one line. Draft it from their description and let them edit.
8
+ - **What happened** — the description, in their words.
9
+ - **Severity** — `AskUserQuestion`: **Blocker** (can't continue) / **Major** (works around it with effort) / **Minor** (cosmetic or small). Wire values: `blocker`, `major`, `minor`.
10
+ - **Steps / expected / actual** — `AskUserQuestion`: **Add steps, expected and actual** / **Skip**. When added, collect each as free text.
11
+ - **Screenshots** — `AskUserQuestion`: **Attach screenshots** / **No screenshots**. When attaching, collect absolute file paths.
12
+
13
+ ## 2. Route a script-step report to feedback
14
+
15
+ If the report is about one generated test script or one of its steps doing the wrong thing (clicked the wrong element, step N failed, wrong text typed), `AskUserQuestion`:
16
+
17
+ > "This sounds like script feedback, which regenerates the script. Which do you want?"
18
+ > - **Script feedback** — invoke the `muggle-feedback` skill via the Skill tool with the user's description as `args`, then stop.
19
+ > - **Bug report anyway**
20
+
21
+ Anything else — a command or tool error, a hang, a crash, a dashboard or billing problem — continues here.
22
+
23
+ ## 3. Gather and show context
24
+
25
+ Call `muggle-local-bug-report-context-get` with `cwd` set to the current working directory. It returns the CLI and Studio versions, operating system, last-used project and newest local run, with secret-looking values already left out.
26
+
27
+ Print the report as it will be sent:
28
+
29
+ ```
30
+ Title: <title>
31
+ Severity: <Blocker | Major | Minor>
32
+ What happened:
33
+ <description>
34
+ Steps / expected / actual: <each, or "none">
35
+ Screenshots: <file names, or "none">
36
+
37
+ Included with your report:
38
+ <each context line from the tool, plus any "left out" line>
39
+ ```
40
+
41
+ ## 4. Confirm
42
+
43
+ `AskUserQuestion`:
44
+
45
+ > "File this bug report?"
46
+ > - **File it**
47
+ > - **Edit** — ask which part, collect the change, then print §3 again
48
+ > - **Cancel** — print "Cancelled — nothing was sent." and stop
49
+
50
+ ## 5. File
51
+
52
+ Call `muggle-remote-bug-report-create` with `title`, `description`, `severity`, the optional `stepsToReproduce` / `expectedBehavior` / `actualBehavior`, `screenshotPaths`, and `clientContext` set to the tool's `clientContext` JSON block unchanged.
53
+
54
+ | Error | Response |
55
+ |---|---|
56
+ | A screenshot refused (`INVALID_ARGUMENT`) | Print the message; `AskUserQuestion`: **Fix the path** / **File without it** |
57
+ | `bug_report_rate_limited` (429) | "You have filed 10 reports in the last hour. Try again later." Stop. |
58
+ | `UNAUTHORIZED` | Hand off to `muggle-login`, then retry once |
59
+ | Anything else | Print it verbatim; nothing was filed |
60
+
61
+ ## 6. Report
62
+
63
+ ```
64
+ Filed <shortId>: <title>
65
+ Track it: <dashboardUrl>
66
+ ```
67
+
68
+ Updates arrive in the dashboard inbox. Check later with "status <shortId>".
@@ -0,0 +1,30 @@
1
+ # List bug reports
2
+
3
+ ## 1. Fetch
4
+
5
+ `muggle-remote-bug-report-list` with `pageSize: 20`. No items → print "You have not filed any bug reports." and offer `AskUserQuestion`: **File a bug** ([`file.md`](file.md)) / **Done**.
6
+
7
+ ## 2. Render
8
+
9
+ Newest activity first, as the response orders it:
10
+
11
+ | Short id | Title | Status | Severity | Last update |
12
+ |---|---|---|---|---|
13
+
14
+ - **Status** — the wire value in words: `new` → New, `triaged` → Triaged, `in_progress` → In progress, `needs_info` → Needs info, `fixed` → Fixed, `closed` → Closed.
15
+ - **Last update** — `lastActivityAtMs`, human-readable (e.g. `2 days ago`).
16
+ - Mark a **Needs info** row "waiting on you".
17
+
18
+ When `nextCursor` is set, add "More reports exist" and offer **Show more** in §3.
19
+
20
+ Print the response's `dashboardUrl` as the link to all reports.
21
+
22
+ ## 3. Offer next action
23
+
24
+ `AskUserQuestion`:
25
+
26
+ > "What next?"
27
+ > - **Open one** — pick a row, then [`status.md`](status.md)
28
+ > - **Reply to one** — pick a row, then [`reply.md`](reply.md)
29
+ > - **Show more** — only when `nextCursor` is set; fetch with `cursor: nextCursor` and append
30
+ > - **Done**
@@ -0,0 +1,38 @@
1
+ # Reply on a bug report
2
+
3
+ ## 1. Identify the report
4
+
5
+ As in [`status.md`](status.md) §1. Fetch it with `muggle-remote-bug-report-get` and print its short id, title, status and the newest timeline entry, so the user answers what was asked.
6
+
7
+ ## 2. Collect the reply
8
+
9
+ - **Message** — free text; re-ask when blank.
10
+ - **Screenshots** — `AskUserQuestion`: **Attach screenshots** / **No screenshots**. When attaching, collect absolute file paths.
11
+
12
+ ## 3. Confirm
13
+
14
+ Print the message and screenshot file names, then `AskUserQuestion`:
15
+
16
+ > "Post this reply on <shortId>?"
17
+ > - **Post it**
18
+ > - **Edit**
19
+ > - **Cancel** — print "Cancelled — nothing was sent." and stop
20
+
21
+ ## 4. Post
22
+
23
+ `muggle-remote-bug-report-reply` with `bugReportId`, `message` and `screenshotPaths`.
24
+
25
+ | Error | Response |
26
+ |---|---|
27
+ | `bug_report_reopen_window_elapsed` (409) | "This ticket closed more than 14 days ago and can't be reopened." Offer to file a new report ([`file.md`](file.md)) whose description starts with "Follow-up to <shortId>". |
28
+ | A screenshot refused (`INVALID_ARGUMENT`) | Print the message; `AskUserQuestion`: **Fix the path** / **Post without it** |
29
+ | Anything else | Print it verbatim; nothing was posted |
30
+
31
+ ## 5. Report
32
+
33
+ ```
34
+ Replied on <shortId>.
35
+ Track it: <dashboardUrl>
36
+ ```
37
+
38
+ A reply on a **Needs info**, **Fixed** or **Closed** ticket sends it back to the team as **Triaged**.
@@ -0,0 +1,45 @@
1
+ # Bug report status
2
+
3
+ ## 1. Identify the report
4
+
5
+ - A `BUG-NNNN` or `bugReportId` in the prompt → resolve it per SKILL.md's short-id constraint.
6
+ - A row from a list shown earlier → use its `bugReportId`.
7
+ - Nothing named → run [`list.md`](list.md) and let the user pick.
8
+
9
+ ## 2. Fetch
10
+
11
+ `muggle-remote-bug-report-get` with the `bugReportId`.
12
+
13
+ ## 3. Render
14
+
15
+ ```
16
+ <shortId>: <title>
17
+ Status: <status in words> (<closeReason in words, and duplicateOfShortId, when closed>)
18
+ Severity: <severity> Priority: <priority, or "not set yet">
19
+ Filed: <createdAtMs, human-readable>
20
+ Track it: <dashboardUrl>
21
+
22
+ What you reported:
23
+ <description>
24
+ <steps / expected / actual when present>
25
+ ```
26
+
27
+ Then the timeline, oldest first, one entry per activity:
28
+
29
+ - `filed` → "Filed"
30
+ - `status_change` → "<actorDisplayName>: <fromStatus> → <toStatus>" plus the message when present
31
+ - `priority_change` → "<actorDisplayName>: priority <fromPriority> → <toPriority>"
32
+ - `note` → "<actorDisplayName>: <message>"
33
+ - `filer_reply` → "You: <message>"
34
+
35
+ Add "(N screenshots)" to an entry that has them.
36
+
37
+ ## 4. Offer next action
38
+
39
+ When the status is **Needs info**, say the team is waiting on the user's answer.
40
+
41
+ `AskUserQuestion`:
42
+
43
+ > "What next?"
44
+ > - **Reply** — [`reply.md`](reply.md) with this `bugReportId`
45
+ > - **Done**
@@ -1,7 +1,7 @@
1
1
  {
2
- "release": "5.36.0-staging.334",
3
- "buildId": "run-334-1",
4
- "commitSha": "d871bebb6d6bca13edaa4bc0d196ded8acfdb73c",
5
- "buildTime": "2026-11-11T07:06:39Z",
2
+ "release": "5.36.0-staging.336",
3
+ "buildId": "run-336-1",
4
+ "commitSha": "e6d98c8df9e83a493fe7413190a49a4fd3044608",
5
+ "buildTime": "2026-11-11T09:40:14Z",
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-5E46QHM6.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-OIFLV2QN.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@muggleai/works",
3
3
  "mcpName": "io.github.multiplex-ai/muggleai",
4
- "version": "5.36.0-staging.334",
4
+ "version": "5.36.0-staging.336",
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",
@@ -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.36.0-staging.334",
4
+ "version": "5.36.0-staging.336",
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.36.0-staging.334",
7
+ "@muggleai/works@5.36.0-staging.336",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.36.0-staging.334",
3
+ "version": "5.36.0-staging.336",
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.36.0-staging.334",
5
+ "version": "5.36.0-staging.336",
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.36.0-staging.334",
7
+ "@muggleai/works@5.36.0-staging.336",
8
8
  "serve"
9
9
  ]
10
10
  }
package/plugin/README.md CHANGED
@@ -49,6 +49,7 @@ Type `muggle` to discover the full command family.
49
49
  | `/muggle:muggle-pr-visual-walkthrough` | `/mpr` | Post per-test-case dashboard links, step-by-step screenshots, and a pass/fail summary to a PR. |
50
50
  | `/muggle:muggle-pr-followup` | `/mprfollowup` | Watch one PR's review thread and dispatch the work to address incoming feedback. |
51
51
  | `/muggle:muggle-feedback` | `/mfeedback` | Flag a generated action script, or one step in it, as wrong so Muggle can analyze and regenerate affected scripts. |
52
+ | `/muggle:muggle-bug-report` | `/mbugreport` | Report a bug in Muggle AI itself to the Muggle team, with harness context you review first; list, check or reply to your reports. |
52
53
  | `/muggle:muggle-preferences` | `/mprefs` | View, set, or reset the preferences that gate Muggle Test behavior. |
53
54
  | `/muggle:muggle-status` | `/mstatus` | Health check for Electron browser test runner, MCP server, and authentication. |
54
55
  | `/muggle:muggle-repair` | `/mrepair` | Diagnose and fix broken installation automatically. |
@@ -0,0 +1,7 @@
1
+ ---
2
+ description: File, list, check, or reply to a Muggle AI bug report (alias for /muggle-bug-report)
3
+ argument-hint: [optional description of what went wrong, or list / status BUG-1234 / reply]
4
+ allowed-tools: [Skill]
5
+ ---
6
+
7
+ Invoke the `muggle-bug-report` skill via the Skill tool. Forward `$ARGUMENTS` as the skill's `args`.
@@ -50,7 +50,7 @@ Each skill sets a `model:` in its `SKILL.md` frontmatter sized to its cognitive
50
50
 
51
51
  | Model | Skills | Why this tier |
52
52
  |-------|--------|---------------|
53
- | `haiku` | `muggle`, `muggle-status`, `muggle-repair`, `muggle-upgrade`, `muggle-preferences`, `muggle-feedback`, `muggle-init`, `muggle-ci-install`, `muggle-login`, `muggle-logout`, `muggle-run-view`, `muggle-cleanup`, `muggle-register` | Routers and dumb pipes. They follow an explicit procedure with no open-ended reasoning: route intent to a downstream skill, run a fixed CLI sequence, CRUD a config file, or format a status report. |
53
+ | `haiku` | `muggle`, `muggle-status`, `muggle-repair`, `muggle-upgrade`, `muggle-preferences`, `muggle-feedback`, `muggle-bug-report`, `muggle-init`, `muggle-ci-install`, `muggle-login`, `muggle-logout`, `muggle-run-view`, `muggle-cleanup`, `muggle-register` | Routers and dumb pipes. They follow an explicit procedure with no open-ended reasoning: route intent to a downstream skill, run a fixed CLI sequence, CRUD a config file, or format a status report. |
54
54
  | `sonnet` | `muggle-pr-visual-walkthrough` (executes via the `visual-walkthrough-builder` agent), `muggle-test-regenerate-missing`, `muggle-pr-followup` | Multi-step orchestration with light judgment, short of deep reasoning: assemble run data and build a PR section with fit-vs-overflow handling; scan, filter, bulk-dispatch, and classify per-item failures into buckets; run a watcher tick across a dozen procedure files and fire the one `/muggle-do` directive its verdict calls for. More moving parts than a router, but each step is well-defined. The watcher moved up from `haiku`: its tick eval passed 3–4 of 23 scenarios there, describing the procedure instead of running it, and a tick now runs only when its token-free watch loop exits with something to act on. |
55
55
  | `opus` (explicit pin) | `muggle-test-prepare` (executes via the `test-prepare-runner` agent) | Pinned for **reliability**, not raw reasoning load: it's flaky on smaller models, and since other skills gate on the environment it readies, a wrong call is expensive. Pin explicitly rather than leaving `model:` unset so it stays on Opus even when the user's session runs a cheaper model. |
56
56
 
@@ -21,6 +21,7 @@
21
21
  "mlogin",
22
22
  "mlogout",
23
23
  "mrun",
24
- "mcleanup"
24
+ "mcleanup",
25
+ "mbugreport"
25
26
  ]
26
27
  }
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: mbugreport
3
+ description: Explicit short alias for the `muggle-bug-report` skill. ONLY invoke when the user explicitly types `mbugreport` or `/mbugreport` — never auto-trigger from any other phrasing.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # mbugreport — alias for muggle-bug-report
8
+
9
+ Invoke the `muggle-bug-report` skill via the Skill tool. Forward any user-provided arguments unchanged. In a host with no Skill tool (Codex), open `../muggle-bug-report/SKILL.md` and follow it with those arguments.
@@ -0,0 +1,7 @@
1
+ # Codex reads this beside SKILL.md. An alias is for the user to type, never for
2
+ # the model to pick on its own: Codex's equivalent of disable-model-invocation.
3
+ interface:
4
+ display_name: "mbugreport"
5
+ short_description: "Short alias for the muggle-bug-report skill"
6
+ policy:
7
+ allow_implicit_invocation: false
@@ -49,5 +49,6 @@ If the user intent clearly matches one command, route directly — no menu neede
49
49
  - post results to PR/attach walkthrough/visual evidence on PR → `muggle-pr-visual-walkthrough`
50
50
  - watch my PR for reviews/follow up on PR reviews/babysit PR review thread → `muggle-pr-followup`
51
51
  - give feedback on a run/the test was wrong/step N didn't work/show my feedback/delete feedback → `muggle-feedback`
52
+ - report a bug in muggle/muggle itself is broken/my bug reports/status of BUG-NNNN → `muggle-bug-report`
52
53
 
53
54
  If intent is ambiguous, use `AskUserQuestion` with the most likely options rather than asking the user to type a clarification.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: muggle-bug-report
3
+ model: haiku
4
+ description: "Use when the user wants to report a bug in Muggle AI itself (a muggle command or tool erroring, a run hanging, a dashboard or billing problem), or to list, check (BUG-4821) or reply to their bug reports. Not for bugs in the user's own app, nor a generated test script step that misbehaved (muggle-feedback). Triggers on /muggle-bug-report, report a muggle bug."
5
+ ---
6
+
7
+ # Muggle Bug Report
8
+
9
+ > Telemetry first step: see [`_shared/telemetry-emit.md`](../_shared/telemetry-emit.md). Use `skillName: "muggle-bug-report"`.
10
+
11
+ > Running outside Claude Code (in Codex, for one)? Read [`../_shared/host-tool-equivalents.md`](../_shared/host-tool-equivalents.md) first — it maps the tools and paths this skill names to your host's.
12
+
13
+ Files a bug about Muggle AI to the Muggle team and follows it: every report gets a short id (`BUG-4821`), a ticket page on the dashboard, and in-app updates as the team works it.
14
+
15
+ ## Routing
16
+
17
+ | Intent | Op file |
18
+ |---|---|
19
+ | "report a bug" / "muggle is broken" / "file this" / no arguments | [`ops/file.md`](ops/file.md) |
20
+ | "my bug reports" / "list my tickets" | [`ops/list.md`](ops/list.md) |
21
+ | "status BUG-4821" / "what happened to my report" | [`ops/status.md`](ops/status.md) |
22
+ | "reply to BUG-4821" / "answer their question" | [`ops/reply.md`](ops/reply.md) |
23
+
24
+ If intent is ambiguous, use `AskUserQuestion` once with **File a bug / List my reports / Check one / Reply** — never ask the user to type a clarification.
25
+
26
+ ## Constraints (all ops)
27
+
28
+ - **Every tool takes the `bugReportId`, never the short id.** Turn a `BUG-NNNN` the user names into its `bugReportId` with `muggle-remote-bug-report-list`: page with `pageSize: 50`, passing `nextCursor` back as `cursor`, until an item's `shortId` matches. No match on any page → say so and show the list.
29
+ - **Screenshots are paths on this machine**: images only (png, jpg, gif, webp), at most 5, 5 MB each. Pass absolute paths in `screenshotPaths`; the tool reads and uploads them.
30
+ - **Not signed in** (`UNAUTHORIZED`): hand off to the `muggle-login` skill, then resume the op.
31
+ - **`dashboardUrl`** in each response is the ticket's page; print it with the short id.
32
+
33
+ ## Non-negotiables (all ops)
34
+
35
+ - Never file or reply without showing the user exactly what will be sent and getting a confirm.
36
+ - Never add context the context tool did not return, and never put a secret, token or password in a title, description, steps or reply. If the user's text contains one, point it out and ask them to remove it before filing.
37
+ - Show only what the response holds; never guess a ticket's status or what the team will do.