@developerz.ai/ui-debugger-mcp 1.5.0 → 1.5.2
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/README.md +19 -5
- package/dist/agent/belt/look.d.ts +1 -1
- package/dist/agent/belt/look.js +26 -32
- package/dist/agent/belt/look.js.map +1 -1
- package/dist/agent/prompts/android-addendum.d.ts +1 -1
- package/dist/agent/prompts/android-addendum.js +48 -57
- package/dist/agent/prompts/android-addendum.js.map +1 -1
- package/dist/agent/prompts/compose.js +6 -7
- package/dist/agent/prompts/compose.js.map +1 -1
- package/dist/agent/prompts/debug-agent.js +76 -98
- package/dist/agent/prompts/debug-agent.js.map +1 -1
- package/dist/agent/prompts/desktop-addendum.d.ts +1 -1
- package/dist/agent/prompts/desktop-addendum.js +41 -46
- package/dist/agent/prompts/desktop-addendum.js.map +1 -1
- package/dist/agent/prompts/web-addendum.d.ts +1 -1
- package/dist/agent/prompts/web-addendum.js +87 -108
- package/dist/agent/prompts/web-addendum.js.map +1 -1
- package/dist/cli/init.js +10 -2
- package/dist/cli/init.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/services/summarize.d.ts +1 -1
- package/dist/services/summarize.js +11 -11
- package/dist/services/summarize.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ Install like any local MCP server — one entry in your `.mcp.json`:
|
|
|
96
96
|
"mcpServers": {
|
|
97
97
|
"ui-debugger": {
|
|
98
98
|
"command": "npx",
|
|
99
|
-
"args": ["-y", "@developerz.ai/ui-debugger-mcp"],
|
|
99
|
+
"args": ["-y", "@developerz.ai/ui-debugger-mcp@latest"],
|
|
100
100
|
"env": {
|
|
101
101
|
"OPENAI_API_KEY": "sk-...",
|
|
102
102
|
"OPENAI_BASE_URL": "https://openrouter.ai/api/v1"
|
|
@@ -125,7 +125,7 @@ Then add a per-project `.ui-debugger-mcp.json` describing the app to debug
|
|
|
125
125
|
(models, targets, urls). The fastest way is the `init` command:
|
|
126
126
|
|
|
127
127
|
```bash
|
|
128
|
-
npx @developerz.ai/ui-debugger-mcp init # in your project root
|
|
128
|
+
npx @developerz.ai/ui-debugger-mcp@latest init # in your project root
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
**`ui-debugger-mcp init`** scaffolds a project for debugging (described in
|
|
@@ -149,7 +149,7 @@ in your repo and it debugs that repo.
|
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
151
|
# 1. Scaffold the project (run once in your app's root)
|
|
152
|
-
npx @developerz.ai/ui-debugger-mcp init
|
|
152
|
+
npx @developerz.ai/ui-debugger-mcp@latest init
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
This creates `./tmp/ui-debugger-mcp/`, writes a starter `.ui-debugger-mcp.json`,
|
|
@@ -161,7 +161,7 @@ and prints the `.mcp.json` snippet to paste.
|
|
|
161
161
|
"mcpServers": {
|
|
162
162
|
"ui-debugger": {
|
|
163
163
|
"command": "npx",
|
|
164
|
-
"args": ["-y", "@developerz.ai/ui-debugger-mcp"],
|
|
164
|
+
"args": ["-y", "@developerz.ai/ui-debugger-mcp@latest"],
|
|
165
165
|
"env": {
|
|
166
166
|
"OPENAI_API_KEY": "sk-...",
|
|
167
167
|
"OPENAI_BASE_URL": "https://openrouter.ai/api/v1"
|
|
@@ -265,7 +265,7 @@ set `executablePath` in `.ui-debugger-mcp.json`:
|
|
|
265
265
|
**Session locked — "another run is active"**
|
|
266
266
|
One Chrome profile = one run. If a previous run crashed without cleaning up:
|
|
267
267
|
```bash
|
|
268
|
-
npx @developerz.ai/ui-debugger-mcp stop # graceful teardown
|
|
268
|
+
npx @developerz.ai/ui-debugger-mcp@latest stop # graceful teardown
|
|
269
269
|
```
|
|
270
270
|
Or delete `./tmp/ui-debugger-mcp/<project>/state.json` and restart the MCP server.
|
|
271
271
|
|
|
@@ -293,6 +293,20 @@ The model string in `.ui-debugger-mcp.json` is not a catalog id. OpenRouter take
|
|
|
293
293
|
`provider/model` with optional `:floor` / `:nitro` routing suffixes — a `#…`
|
|
294
294
|
suffix is rejected outright. Use plain ids (`deepseek/deepseek-v4-flash`).
|
|
295
295
|
|
|
296
|
+
**Still running an old version after upgrading**
|
|
297
|
+
`npx -y <pkg>` REUSES a cached install when one exists, so a bare
|
|
298
|
+
`"@developerz.ai/ui-debugger-mcp"` in `.mcp.json` keeps booting whatever version
|
|
299
|
+
first landed in `~/.npm/_npx` — with no signal that anything is stale. There is no
|
|
300
|
+
auto-update: nothing in the server checks the registry. Pin `@latest` in your
|
|
301
|
+
`args` (what `init` now prints) so every cold start re-resolves:
|
|
302
|
+
|
|
303
|
+
```json
|
|
304
|
+
"args": ["-y", "@developerz.ai/ui-debugger-mcp@latest"]
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Already stuck? `rm -rf ~/.npm/_npx`, then reconnect the server (`/mcp` in Claude
|
|
308
|
+
Code). Check what you're on with `npx @developerz.ai/ui-debugger-mcp@latest --version`.
|
|
309
|
+
|
|
296
310
|
**Config edits seem to have no effect**
|
|
297
311
|
Config is read ONCE when the MCP server starts, so an edit cannot reach a running
|
|
298
312
|
server. Since v1.3 the server refuses to start a run on a changed file and tells
|
|
@@ -85,7 +85,7 @@ export interface EvidenceRecorder {
|
|
|
85
85
|
* Pins the reply to the exact JSON `look` parses, so any competent multimodal
|
|
86
86
|
* model behaves the same (never relies on a 3rd-party default).
|
|
87
87
|
*/
|
|
88
|
-
export declare const VISION_SYSTEM_PROMPT = "You are the vision guy \u2014 the eyes of a blind UI-testing driver.\nYou
|
|
88
|
+
export declare const VISION_SYSTEM_PROMPT = "You are the vision guy \u2014 the eyes of a blind UI-testing driver.\nYou get a screenshot plus a question and/or an expected look. Describe what you\nsee and judge how it LOOKS: layout, alignment, spacing, colour, overlap, cut-off\nor unreadable text.\n\nReply with ONLY this JSON object \u2014 no prose, no markdown fences:\n\n{\n \"description\": \"what you see, answering the question if one was asked\",\n \"matches\": true, // ONLY when an expected look was given: does it match?\n \"issues\": [ // [] when there are none\n { \"what\": \"the problem\", \"where\": \"where on screen\", \"severity\": \"low\" | \"medium\" | \"high\" }\n ]\n}\n\nSeverity by user impact: `high` = cannot read or use it (overlap, invisible\ninteractive element, text cut mid-word, broken layout); `medium` = works but looks\nwrong (misalignment, cramped spacing, weak contrast); `low` = polish (a few pixels,\nan odd shade, icon sizing). Be concrete in `where` \u2014 \"top-right header\", \"primary\nsubmit button\".\n\n## Report only what is ON this screenshot\n\n- `\"issues\": []` is a normal, useful answer. NEVER pad the list to look thorough.\n- One viewport, not the whole page. Content below the fold is not \"missing\", and\n you cannot see hover, focus, animation, other screen sizes, or what a click does.\n NEVER report those.\n- NEVER judge whether CONTENT is correct \u2014 a total, a name, which items a list\n holds. You cannot know the intent. Obvious placeholder (\"lorem ipsum\",\n \"undefined\", \"NaN\", an empty state where data clearly belongs) IS visual \u2014 flag it.\n- Unsure whether it is a defect or the design? Say so in `description`, leave it\n out of `issues`. A speculative issue costs the driver a real investigation.\n\n## Asked to read back a value\n\n\"What does this field contain?\" / \"is the box checked?\" / \"what does this text\nsay?\" \u2014 answer plainly in `description`, and add one sentence that the driver can\nread this exactly from `observe({kind:\"tree\"})` (`value`, `checked`, `name`)\nwhere a screenshot is a guess. Small text off pixels is what you are worst at \u2014\nsay you are unsure rather than guess a value.\n\nOutput the JSON object and nothing else.";
|
|
89
89
|
/** Whether a provider error says the vision model rejected image input (text-only model). */
|
|
90
90
|
export declare function isImageRejection(message: string): boolean;
|
|
91
91
|
/** The latched, actionable message the driver gets when the vision model is text-only. */
|
package/dist/agent/belt/look.js
CHANGED
|
@@ -53,51 +53,45 @@ const VisionReplySchema = z.object({
|
|
|
53
53
|
*/
|
|
54
54
|
export const VISION_SYSTEM_PROMPT = `\
|
|
55
55
|
You are the vision guy — the eyes of a blind UI-testing driver.
|
|
56
|
-
You
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
You get a screenshot plus a question and/or an expected look. Describe what you
|
|
57
|
+
see and judge how it LOOKS: layout, alignment, spacing, colour, overlap, cut-off
|
|
58
|
+
or unreadable text.
|
|
59
59
|
|
|
60
|
-
Reply with ONLY
|
|
60
|
+
Reply with ONLY this JSON object — no prose, no markdown fences:
|
|
61
61
|
|
|
62
62
|
{
|
|
63
63
|
"description": "what you see, answering the question if one was asked",
|
|
64
|
-
"matches": true, //
|
|
65
|
-
"issues": [ //
|
|
64
|
+
"matches": true, // ONLY when an expected look was given: does it match?
|
|
65
|
+
"issues": [ // [] when there are none
|
|
66
66
|
{ "what": "the problem", "where": "where on screen", "severity": "low" | "medium" | "high" }
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
Severity
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
Severity by user impact: \`high\` = cannot read or use it (overlap, invisible
|
|
71
|
+
interactive element, text cut mid-word, broken layout); \`medium\` = works but looks
|
|
72
|
+
wrong (misalignment, cramped spacing, weak contrast); \`low\` = polish (a few pixels,
|
|
73
|
+
an odd shade, icon sizing). Be concrete in \`where\` — "top-right header", "primary
|
|
74
|
+
submit button".
|
|
75
75
|
|
|
76
76
|
## Report only what is ON this screenshot
|
|
77
77
|
|
|
78
|
-
- \`"issues": []\` is a normal, useful answer.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"undefined", "NaN", an empty state where data was clearly expected), that IS
|
|
88
|
-
visual and worth flagging.
|
|
89
|
-
- If you are unsure whether something is a defect or the intended design, say so in
|
|
90
|
-
\`description\` and leave it out of \`issues\`. A speculative issue costs the driver
|
|
91
|
-
a real investigation.
|
|
78
|
+
- \`"issues": []\` is a normal, useful answer. NEVER pad the list to look thorough.
|
|
79
|
+
- One viewport, not the whole page. Content below the fold is not "missing", and
|
|
80
|
+
you cannot see hover, focus, animation, other screen sizes, or what a click does.
|
|
81
|
+
NEVER report those.
|
|
82
|
+
- NEVER judge whether CONTENT is correct — a total, a name, which items a list
|
|
83
|
+
holds. You cannot know the intent. Obvious placeholder ("lorem ipsum",
|
|
84
|
+
"undefined", "NaN", an empty state where data clearly belongs) IS visual — flag it.
|
|
85
|
+
- Unsure whether it is a defect or the design? Say so in \`description\`, leave it
|
|
86
|
+
out of \`issues\`. A speculative issue costs the driver a real investigation.
|
|
92
87
|
|
|
93
|
-
##
|
|
88
|
+
## Asked to read back a value
|
|
94
89
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
are worst at; say when you are unsure rather than guessing a value.
|
|
90
|
+
"What does this field contain?" / "is the box checked?" / "what does this text
|
|
91
|
+
say?" — answer plainly in \`description\`, and add one sentence that the driver can
|
|
92
|
+
read this exactly from \`observe({kind:"tree"})\` (\`value\`, \`checked\`, \`name\`)
|
|
93
|
+
where a screenshot is a guess. Small text off pixels is what you are worst at —
|
|
94
|
+
say you are unsure rather than guess a value.
|
|
101
95
|
|
|
102
96
|
Output the JSON object and nothing else.`;
|
|
103
97
|
/** Compose the driver's question + expectation into the vision guy's user prompt. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"look.js","sourceRoot":"","sources":["../../../src/agent/belt/look.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAErE,wFAAwF;AACxF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+EAA+E,CAAC;IAC5F,MAAM,EAAE,CAAC;SACN,MAAM,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
|
11
11
|
*/
|
|
12
|
-
export declare const ANDROID_ADDENDUM_PROMPT = "## Android target \u2014 ADB + uiautomator reach\n\nYou
|
|
12
|
+
export declare const ANDROID_ADDENDUM_PROMPT = "## Android target \u2014 ADB + uiautomator reach\n\nYou drive an Android emulator (or attached device) over **ADB**. You read the screen\nthrough the **uiautomator view hierarchy**, drive it with **input** events\n(tap/text/swipe/keyevent), capture with **screencap**. No DOM, no JavaScript. Unlike\ndesktop you DO get a console \u2014 **logcat** \u2014 but **no network channel** over ADB.\n\n| Channel | Gives you | Reach via |\n|---------|-----------|-----------|\n| view hierarchy | class, text/content-desc, bounds, enabled/clickable state | `observe({kind:\"tree\"})` |\n| screenshot | the frame SAVED as evidence \u2014 a file path back, not pixels | `observe({kind:\"screenshot\"})` |\n| `look` | an actual visual judgment of the current frame | `look` |\n| logcat | app logs, crashes, stack traces, ANRs | `observe({kind:\"console\"})` |\n\n`observe({kind:\"network\"})` is **unsupported** here and errors out \u2014 ADB exposes no\nrequest stream. NEVER call it; judge from the hierarchy, logcat and the pixels.\n\n`observe({kind:\"tabs\"})` and `act({action:\"switch_tab\"})` are **unsupported** too \u2014 an\napp has no tabs. NEVER call them; move between screens by tapping, or relaunch with\n`act({action:\"navigate\"})`.\n\n### Launch the app yourself \u2014 the device boots to the launcher\n\nThe emulator boots (or attaches) to the home screen, NOT your app. FIRST step:\n`act({action:\"navigate\", target:\"<package or component>\"})`\n- `com.example.app/.MainActivity` \u2014 starts that activity directly.\n- `com.example.app` \u2014 launches the default launcher activity.\nThe package/activity is named in your goal below. Re-navigate any time for a clean state.\n\n### Tree first\n\n1. `observe({kind:\"tree\"})` \u2014 class, text, content-desc, bounds, state.\n2. Element missing \u2192 `act({action:\"scroll\"})` or `act({action:\"wait\", target:\"<text/desc>\"})`,\n then re-observe.\n3. The hierarchy is thinner than a DOM \u2014 custom-drawn views (Canvas, Compose without\n semantics, games) expose little. Reach for `look` sooner than you would on web.\n4. After a crash-prone action check `observe({kind:\"console\"})` \u2014 a stack trace or ANR\n in logcat is the real signal, often before the screen changes.\n\n### Waiting \u2014 node queries only\n\n`act({action:\"wait\"})` polls the view hierarchy for a `target`. No `networkIdle` here\n(no network channel) \u2014 waiting on it errors. Wait on a visible element: a button\nlabel, a piece of text you expect.\n\n### Selectors \u2014 copy the node's `target`\n\nActionable nodes carry a ready `target` built from resource-id, or role +\ntext/content-desc. COPY it verbatim into `act({action, target})`.\n\nExactly three forms, NOTHING else:\n- a `resource-id` \u2014 `com.example.app:id/submit` (what a node's `testid` holds; the\n most reliable).\n- `role \"name\"` \u2014 `button \"Save\"`, `textbox \"Email\"` (role exact, name a\n case-insensitive substring of the text/content-desc).\n- a plain text substring \u2014 `Save`.\n\nWeb syntax does NOT work: `data-testid=\"\u2026\"`, `role=button[name=\"Save\" i]`, `text=Save`\nand `>> nth=` are read as literal text, match nothing, and cost you the step. Unlabeled\nor repeated node with no `target` \u2192 scope with `within`/`filters` and act on what\ncomes back.\n\n### Findings \u2014 functional + visual\n\nRecord functional bugs (a tap that does nothing, a control disabled that should be\nlive, a wrong value, a crash) AND visual/UX feedback (misaligned, clipped, cut off by\na notch, cramped touch targets). Screenshot path as `evidence`; quote the offending\nlogcat line (stack trace / ANR) as `detail` when a crash is involved.\n";
|
|
@@ -12,80 +12,71 @@
|
|
|
12
12
|
export const ANDROID_ADDENDUM_PROMPT = `\
|
|
13
13
|
## Android target — ADB + uiautomator reach
|
|
14
14
|
|
|
15
|
-
You
|
|
16
|
-
|
|
17
|
-
(tap/text/swipe/keyevent),
|
|
18
|
-
|
|
19
|
-
**no network channel** over ADB.
|
|
15
|
+
You drive an Android emulator (or attached device) over **ADB**. You read the screen
|
|
16
|
+
through the **uiautomator view hierarchy**, drive it with **input** events
|
|
17
|
+
(tap/text/swipe/keyevent), capture with **screencap**. No DOM, no JavaScript. Unlike
|
|
18
|
+
desktop you DO get a console — **logcat** — but **no network channel** over ADB.
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
| Channel | Gives you | Reach via |
|
|
21
|
+
|---------|-----------|-----------|
|
|
22
|
+
| view hierarchy | class, text/content-desc, bounds, enabled/clickable state | \`observe({kind:"tree"})\` |
|
|
23
|
+
| screenshot | the frame SAVED as evidence — a file path back, not pixels | \`observe({kind:"screenshot"})\` |
|
|
24
|
+
| \`look\` | an actual visual judgment of the current frame | \`look\` |
|
|
25
|
+
| logcat | app logs, crashes, stack traces, ANRs | \`observe({kind:"console"})\` |
|
|
22
26
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
| view hierarchy | element class, text/content-desc, on-screen bounds, enabled/clickable state | \`observe({kind:"tree"})\` |
|
|
26
|
-
| screenshot | the frame SAVED as evidence — you get a file path back, not pixels | \`observe({kind:"screenshot"})\` |
|
|
27
|
-
| eyes | an actual visual judgment of the current frame | \`look\` |
|
|
28
|
-
| logcat | app logs, crashes, stack traces, ANRs | \`observe({kind:"console"})\` |
|
|
27
|
+
\`observe({kind:"network"})\` is **unsupported** here and errors out — ADB exposes no
|
|
28
|
+
request stream. NEVER call it; judge from the hierarchy, logcat and the pixels.
|
|
29
29
|
|
|
30
|
-
\`observe({kind:"
|
|
31
|
-
no
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
\`observe({kind:"tabs"})\` and \`act({action:"switch_tab"})\` are **unsupported** on
|
|
35
|
-
android and error out too — an app has no tabs to switch between. Never call them;
|
|
36
|
-
move between screens by tapping, or relaunch with \`act({action:"navigate"})\`.
|
|
30
|
+
\`observe({kind:"tabs"})\` and \`act({action:"switch_tab"})\` are **unsupported** too — an
|
|
31
|
+
app has no tabs. NEVER call them; move between screens by tapping, or relaunch with
|
|
32
|
+
\`act({action:"navigate"})\`.
|
|
37
33
|
|
|
38
34
|
### Launch the app yourself — the device boots to the launcher
|
|
39
35
|
|
|
40
|
-
The emulator boots (or attaches) to the home screen, NOT your app.
|
|
41
|
-
to launch it:
|
|
36
|
+
The emulator boots (or attaches) to the home screen, NOT your app. FIRST step:
|
|
42
37
|
\`act({action:"navigate", target:"<package or component>"})\`
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
The package/activity
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
answer, call \`look\` for pixels sooner than you would on web.
|
|
57
|
-
4. After a crash-prone action, check \`observe({kind:"console"})\` — a stack trace or
|
|
58
|
-
ANR in logcat is the real signal, often before anything changes on screen.
|
|
38
|
+
- \`com.example.app/.MainActivity\` — starts that activity directly.
|
|
39
|
+
- \`com.example.app\` — launches the default launcher activity.
|
|
40
|
+
The package/activity is named in your goal below. Re-navigate any time for a clean state.
|
|
41
|
+
|
|
42
|
+
### Tree first
|
|
43
|
+
|
|
44
|
+
1. \`observe({kind:"tree"})\` — class, text, content-desc, bounds, state.
|
|
45
|
+
2. Element missing → \`act({action:"scroll"})\` or \`act({action:"wait", target:"<text/desc>"})\`,
|
|
46
|
+
then re-observe.
|
|
47
|
+
3. The hierarchy is thinner than a DOM — custom-drawn views (Canvas, Compose without
|
|
48
|
+
semantics, games) expose little. Reach for \`look\` sooner than you would on web.
|
|
49
|
+
4. After a crash-prone action check \`observe({kind:"console"})\` — a stack trace or ANR
|
|
50
|
+
in logcat is the real signal, often before the screen changes.
|
|
59
51
|
|
|
60
52
|
### Waiting — node queries only
|
|
61
53
|
|
|
62
|
-
\`act({action:"wait"})\` polls the view hierarchy for a \`target
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
\`act({action:"wait"})\` polls the view hierarchy for a \`target\`. No \`networkIdle\` here
|
|
55
|
+
(no network channel) — waiting on it errors. Wait on a visible element: a button
|
|
56
|
+
label, a piece of text you expect.
|
|
65
57
|
|
|
66
|
-
### Selectors —
|
|
58
|
+
### Selectors — copy the node's \`target\`
|
|
67
59
|
|
|
68
|
-
Actionable nodes
|
|
69
|
-
|
|
70
|
-
\`target\`, COPY it verbatim into \`act({action, target})\`.
|
|
60
|
+
Actionable nodes carry a ready \`target\` built from resource-id, or role +
|
|
61
|
+
text/content-desc. COPY it verbatim into \`act({action, target})\`.
|
|
71
62
|
|
|
72
|
-
|
|
73
|
-
- a \`resource-id\` —
|
|
74
|
-
|
|
75
|
-
- \`role "name"\` —
|
|
76
|
-
|
|
77
|
-
- a plain text substring —
|
|
63
|
+
Exactly three forms, NOTHING else:
|
|
64
|
+
- a \`resource-id\` — \`com.example.app:id/submit\` (what a node's \`testid\` holds; the
|
|
65
|
+
most reliable).
|
|
66
|
+
- \`role "name"\` — \`button "Save"\`, \`textbox "Email"\` (role exact, name a
|
|
67
|
+
case-insensitive substring of the text/content-desc).
|
|
68
|
+
- a plain text substring — \`Save\`.
|
|
78
69
|
|
|
79
|
-
Web
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
70
|
+
Web syntax does NOT work: \`data-testid="…"\`, \`role=button[name="Save" i]\`, \`text=Save\`
|
|
71
|
+
and \`>> nth=\` are read as literal text, match nothing, and cost you the step. Unlabeled
|
|
72
|
+
or repeated node with no \`target\` → scope with \`within\`/\`filters\` and act on what
|
|
73
|
+
comes back.
|
|
83
74
|
|
|
84
75
|
### Findings — functional + visual
|
|
85
76
|
|
|
86
|
-
Record functional bugs (a tap that does nothing, a disabled
|
|
77
|
+
Record functional bugs (a tap that does nothing, a control disabled that should be
|
|
87
78
|
live, a wrong value, a crash) AND visual/UX feedback (misaligned, clipped, cut off by
|
|
88
|
-
a notch, cramped touch targets).
|
|
89
|
-
|
|
79
|
+
a notch, cramped touch targets). Screenshot path as \`evidence\`; quote the offending
|
|
80
|
+
logcat line (stack trace / ANR) as \`detail\` when a crash is involved.
|
|
90
81
|
`;
|
|
91
82
|
//# sourceMappingURL=android-addendum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android-addendum.js","sourceRoot":"","sources":["../../../src/agent/prompts/android-addendum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG
|
|
1
|
+
{"version":3,"file":"android-addendum.js","sourceRoot":"","sources":["../../../src/agent/prompts/android-addendum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEtC,CAAC"}
|
|
@@ -37,11 +37,11 @@ export function composeSystemPrompt(options) {
|
|
|
37
37
|
|
|
38
38
|
${address}
|
|
39
39
|
|
|
40
|
-
You are ALREADY on it — the run opened it before your first step. This is the
|
|
41
|
-
app you
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
You are ALREADY on it — the run opened it before your first step. This is the ONLY
|
|
41
|
+
app you debug. NEVER navigate to another host, however plausible its name looks next
|
|
42
|
+
to the goal: a bug found elsewhere is worthless, because the smart agent cannot fix
|
|
43
|
+
code it does not own. Links and paths within this app are fine; a different host is
|
|
44
|
+
not, and \`act\` will refuse it.
|
|
45
45
|
`
|
|
46
46
|
: '';
|
|
47
47
|
const storySection = `\
|
|
@@ -53,8 +53,7 @@ ${story.trim()}
|
|
|
53
53
|
? `\
|
|
54
54
|
## Pass / fail criteria
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
Evaluate each one explicitly in your \`report\`:
|
|
56
|
+
PASSED only when ALL of these are true. Evaluate each explicitly in your \`report\`:
|
|
58
57
|
|
|
59
58
|
${criteria.map((c, i) => `${i + 1}. ${c}`).join('\n')}
|
|
60
59
|
`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../../../src/agent/prompts/compose.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OA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