@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.
- package/.claude-plugin/marketplace.json +1 -1
- package/AGENTS.md +1 -0
- package/README.md +2 -1
- package/dist/{chunk-5E46QHM6.js → chunk-OIFLV2QN.js} +499 -157
- package/dist/{chunk-KGTP3CED.js → chunk-X3GQII63.js} +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/.codex-mcp.json +1 -1
- package/dist/plugin/.codex-plugin/plugin.json +1 -1
- package/dist/plugin/.cursor-plugin/plugin.json +1 -1
- package/dist/plugin/.mcp.json +1 -1
- package/dist/plugin/README.md +1 -0
- package/dist/plugin/commands/mbugreport.md +7 -0
- package/dist/plugin/skills/CLAUDE.md +1 -1
- package/dist/plugin/skills/_aliases.json +2 -1
- package/dist/plugin/skills/mbugreport/SKILL.md +9 -0
- package/dist/plugin/skills/mbugreport/agents/openai.yaml +7 -0
- package/dist/plugin/skills/muggle/SKILL.md +1 -0
- package/dist/plugin/skills/muggle-bug-report/SKILL.md +37 -0
- package/dist/plugin/skills/muggle-bug-report/ops/file.md +68 -0
- package/dist/plugin/skills/muggle-bug-report/ops/list.md +30 -0
- package/dist/plugin/skills/muggle-bug-report/ops/reply.md +38 -0
- package/dist/plugin/skills/muggle-bug-report/ops/status.md +45 -0
- package/dist/release-manifest.json +4 -4
- package/dist/{src-2OO6JDTQ.js → src-5Z6EIGHT.js} +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-mcp.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.cursor-plugin/plugin.json +1 -1
- package/plugin/.mcp.json +1 -1
- package/plugin/README.md +1 -0
- package/plugin/commands/mbugreport.md +7 -0
- package/plugin/skills/CLAUDE.md +1 -1
- package/plugin/skills/_aliases.json +2 -1
- package/plugin/skills/mbugreport/SKILL.md +9 -0
- package/plugin/skills/mbugreport/agents/openai.yaml +7 -0
- package/plugin/skills/muggle/SKILL.md +1 -0
- package/plugin/skills/muggle-bug-report/SKILL.md +37 -0
- package/plugin/skills/muggle-bug-report/ops/file.md +68 -0
- package/plugin/skills/muggle-bug-report/ops/list.md +30 -0
- package/plugin/skills/muggle-bug-report/ops/reply.md +38 -0
- package/plugin/skills/muggle-bug-report/ops/status.md +45 -0
|
@@ -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**
|