@developerz.ai/ui-debugger-mcp 1.6.0 → 1.7.0

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 CHANGED
@@ -199,10 +199,10 @@ It's a **conversation**, not a remote control — five fat tools, not one-per-cl
199
199
 
200
200
  | Tool | What it does |
201
201
  |------|--------------|
202
- | `start_debug` | Open a run: `{ target, goal, url?, as?, criteria?, timeout? }`. `url` is required when the target has no configured url; `as` names a login persona. The small agent drives autonomously. Returns `{ session_id }`. |
202
+ | `start_debug` | Open a run: `{ target, goal, url?, as?, replace?, criteria?, timeout? }`. `url` is required when the target has no configured url; `as` names a login persona; `replace: true` takes over a project that already has a run. The small agent drives autonomously. Returns `{ session_id }`. |
203
203
  | `get_findings` | Poll status + structured findings (functional bugs + visual issues) + evidence. Long-poll with `wait`. A whole-object read caps each list at 20 and says so in `truncated` (`{returned, total}` per field) — pass `fields` for the full lists. |
204
204
  | `send_message` | Talk to the running agent mid-flight — add work, redirect, or answer a question. |
205
- | `describe` | List the configured targets + models for this project — including each target's auth `personas[]`. |
205
+ | `describe` | List the configured targets + models for this project — including each target's auth `personas[]` and `notes` — plus `session`: the run this project currently holds. |
206
206
  | `end_session` | Close the run, free the browser/profile. |
207
207
 
208
208
  A run is **always time-capped**: `start_debug`'s `timeout` (seconds) overrides the
@@ -241,6 +241,39 @@ rather than handing back a session that will report every page behind it as empt
241
241
  Use dev/seed credentials — this file is committed. Details in
242
242
  [`docs/idea/config.md`](docs/idea/config.md).
243
243
 
244
+ ### Telling it what's expected — `notes`
245
+
246
+ A freshly-migrated app with no seed data renders empty states everywhere, and the
247
+ driver reports *"the table is empty"* as the run's headline bug. It is right, and
248
+ it is useless. Say what's expected once, in the target:
249
+
250
+ ```jsonc
251
+ "targets": {
252
+ "dashboard": {
253
+ "adapter": "browser",
254
+ "url": "http://localhost:5173",
255
+ "notes": "needs seeded data — empty tables are expected on /new\nfirst load shows an onboarding modal; dismiss it\ndark mode is the default theme"
256
+ }
257
+ }
258
+ ```
259
+
260
+ One fact per line, on any target (web, desktop, android). Unlike the per-run
261
+ `goal`, `notes` is config: it is composed into the driver's prompt once, as its
262
+ own *"Known about this app"* section — treat these as expected, never report one
263
+ as a defect, and a screen that **contradicts** one is still worth reporting.
264
+ Capped at 1000 characters, enforced when the config loads (the prompt carrying it
265
+ is resent to the model on every step, so an essay here is paid for per step).
266
+
267
+ ### If a run is already open
268
+
269
+ One run per project (cwd), so a forgotten `end_session` used to wedge it. It
270
+ doesn't any more: `describe` reports the run this project holds
271
+ (`session: { id, status, goal }`), so a caller that lost its `session_id` — a
272
+ compacted context, a restarted client — can read it, close it, or take it over
273
+ with `start_debug({ …, replace: true })`. Being refused is still the default, and
274
+ the refusal spells out all three calls; a silent takeover would kill a healthy run
275
+ somebody else is watching.
276
+
244
277
  Every tool result carries **both** a pretty-printed text block and a typed
245
278
  `structuredContent` payload validated against a declared `outputSchema` — parse
246
279
  the structured half, don't scrape the text. Tools also declare MCP annotations
@@ -11,8 +11,9 @@
11
11
  * 2. Target addendum (web/desktop/android specifics)
12
12
  * 3. Address (optional) (which app — and only that app — is under test)
13
13
  * 4. Signed in (optional) (which auth persona the run opened as)
14
- * 5. Session story (what the smart agent wants done)
15
- * 6. Criteria (optional) (pass/fail rules for this run)
14
+ * 5. Known about this app (optional) (the target's standing `notes` — what is expected)
15
+ * 6. Session story (what the smart agent wants done)
16
+ * 7. Criteria (optional) (pass/fail rules for this run)
16
17
  */
17
18
  /** Supported target names — one per shipped adapter (web · desktop · android). */
18
19
  export type TargetName = 'web' | 'desktop' | 'android';
@@ -51,6 +52,17 @@ export interface ComposeOptions {
51
52
  persona: string;
52
53
  loginPath: string;
53
54
  };
55
+ /**
56
+ * The target's standing `notes`, one fact per line — what is EXPECTED of this
57
+ * app, so the driver stops filing it as a defect.
58
+ *
59
+ * Observed: a freshly-migrated app with no seed data renders empty states
60
+ * everywhere, and the driver correctly-but-uselessly reports "the table is
61
+ * empty" as the run's headline bug. Config-level, so it is stated once instead
62
+ * of pasted into every `goal`; capped at the config boundary
63
+ * (`TARGET_NOTES_MAX_CHARS`) because this section is resent every step.
64
+ */
65
+ notes?: string[];
54
66
  }
55
67
  /**
56
68
  * Compose the full system prompt for a debug-agent session.
@@ -11,8 +11,9 @@
11
11
  * 2. Target addendum (web/desktop/android specifics)
12
12
  * 3. Address (optional) (which app — and only that app — is under test)
13
13
  * 4. Signed in (optional) (which auth persona the run opened as)
14
- * 5. Session story (what the smart agent wants done)
15
- * 6. Criteria (optional) (pass/fail rules for this run)
14
+ * 5. Known about this app (optional) (the target's standing `notes` — what is expected)
15
+ * 6. Session story (what the smart agent wants done)
16
+ * 7. Criteria (optional) (pass/fail rules for this run)
16
17
  */
17
18
  import { ANDROID_ADDENDUM_PROMPT } from './android-addendum.js';
18
19
  import { debugAgentPrompt } from './debug-agent.js';
@@ -31,7 +32,7 @@ const TARGET_ADDENDA = {
31
32
  * model can orient itself without relying on positional context.
32
33
  */
33
34
  export function composeSystemPrompt(options) {
34
- const { target, story, criteria, selfLook, address, auth } = options;
35
+ const { target, story, criteria, selfLook, address, auth, notes } = options;
35
36
  const addendum = TARGET_ADDENDA[target];
36
37
  const addressSection = address
37
38
  ? `\
@@ -55,6 +56,17 @@ first step. Start on the goal.
55
56
 
56
57
  You do NOT have the credentials and CANNOT log in again. Back on \`${auth.loginPath}\` mid-run
57
58
  means the session dropped: that is a bug — \`report\` it, never retry the form.
59
+ `
60
+ : '';
61
+ const notesSection = notes && notes.length > 0
62
+ ? `\
63
+ ## Known about this app
64
+
65
+ Stated by the project, not observed by you. Treat each as TRUE and EXPECTED — NEVER
66
+ \`report\` one as a bug (an empty table you were told to expect is not a defect). A
67
+ screen that CONTRADICTS one IS worth reporting.
68
+
69
+ ${notes.map((note) => `- ${note}`).join('\n')}
58
70
  `
59
71
  : '';
60
72
  const storySection = `\
@@ -76,6 +88,7 @@ ${criteria.map((c, i) => `${i + 1}. ${c}`).join('\n')}
76
88
  addendum,
77
89
  addressSection,
78
90
  authSection,
91
+ notesSection,
79
92
  storySection,
80
93
  criteriaSection,
81
94
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"compose.js","sourceRoot":"","sources":["../../../src/agent/prompts/compose.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAKxD,2CAA2C;AAC3C,MAAM,cAAc,GAA+B;IACjD,GAAG,EAAE,mBAAmB;IACxB,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,uBAAuB;CACjC,CAAC;AAoCF;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAuB;IACzD,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAErE,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAExC,MAAM,cAAc,GAAG,OAAO;QAC5B,CAAC,CAAC;;;EAGJ,OAAO;;;;;;;CAOR;QACG,CAAC,CAAC,EAAE,CAAC;IAEP,MAAM,WAAW,GAAG,IAAI;QACtB,CAAC,CAAC;;;yBAGmB,IAAI,CAAC,OAAO,4BAA4B,IAAI,CAAC,SAAS;;;qEAGV,IAAI,CAAC,SAAS;;CAElF;QACG,CAAC,CAAC,EAAE,CAAC;IAEP,MAAM,YAAY,GAAG;;;EAGrB,KAAK,CAAC,IAAI,EAAE;CACb,CAAC;IAEA,MAAM,eAAe,GACnB,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAC7B,CAAC,CAAC;;;;;EAKN,QAAQ,CAAC,GAAG,CAA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AC,CAAC;;;yBAGmB,IAAI,CAAC,OAAO,4BAA4B,IAAI,CAAC,SAAS;;;qEAGV,IAAI,CAAC,SAAS;;CAElF;QACG,CAAC,CAAC,EAAE,CAAC;IAEP,MAAM,YAAY,GAChB,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QACvB,CAAC,CAAC;;;;;;;EAON,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;CAC5C;QACK,CAAC,CAAC,EAAE,CAAC;IAET,MAAM,YAAY,GAAG;;;EAGrB,KAAK,CAAC,IAAI,EAAE;CACb,CAAC;IAEA,MAAM,eAAe,GACnB,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAC7B,CAAC,CAAC;;;;;EAKN,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;CACpD;QACK,CAAC,CAAC,EAAE,CAAC;IAET,OAAO;QACL,gBAAgB,CAAC,QAAQ,CAAC;QAC1B,QAAQ;QACR,cAAc;QACd,WAAW;QACX,YAAY;QACZ,YAAY;QACZ,eAAe;KAChB;SACE,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;SACvC,IAAI,CAAC,WAAW,CAAC,CAAC;AACvB,CAAC"}
@@ -26,11 +26,21 @@ declare const AuthPersonaSchema: z.ZodObject<{
26
26
  submit: z.ZodString;
27
27
  expect: z.ZodOptional<z.ZodString>;
28
28
  }, z.core.$strict>;
29
+ /**
30
+ * Hard cap on a target's `notes`, in characters.
31
+ *
32
+ * The composed system prompt is resent to the provider on EVERY step, so notes are
33
+ * paid for per step, for the whole run. ~1000 characters is a dozen preconditions —
34
+ * enough for what a driver must not mistake for a bug, short of an essay. Over the
35
+ * cap fails at config validation, loud, instead of quietly inflating every step.
36
+ */
37
+ export declare const TARGET_NOTES_MAX_CHARS = 1000;
29
38
  /** Web target — CDP-driven browser. Managed (default) unless `cdpUrl` attaches. */
30
39
  export declare const WebTargetSchema: z.ZodObject<{
31
40
  adapter: z.ZodLiteral<"browser">;
32
41
  url: z.ZodOptional<z.ZodURL>;
33
42
  headless: z.ZodDefault<z.ZodBoolean>;
43
+ notes: z.ZodOptional<z.ZodString>;
34
44
  debugLogin: z.ZodOptional<z.ZodObject<{
35
45
  param: z.ZodString;
36
46
  }, z.core.$strict>>;
@@ -55,6 +65,7 @@ export declare const WebTargetSchema: z.ZodObject<{
55
65
  export declare const DesktopTargetSchema: z.ZodObject<{
56
66
  adapter: z.ZodLiteral<"desktop">;
57
67
  launch: z.ZodString;
68
+ notes: z.ZodOptional<z.ZodString>;
58
69
  window: z.ZodOptional<z.ZodObject<{
59
70
  title: z.ZodOptional<z.ZodString>;
60
71
  class: z.ZodOptional<z.ZodString>;
@@ -70,6 +81,7 @@ export declare const DesktopTargetSchema: z.ZodObject<{
70
81
  */
71
82
  export declare const AndroidTargetSchema: z.ZodObject<{
72
83
  adapter: z.ZodLiteral<"android">;
84
+ notes: z.ZodOptional<z.ZodString>;
73
85
  avd: z.ZodOptional<z.ZodString>;
74
86
  emulatorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
87
  adbSerial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -79,6 +91,7 @@ export declare const TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
79
91
  adapter: z.ZodLiteral<"browser">;
80
92
  url: z.ZodOptional<z.ZodURL>;
81
93
  headless: z.ZodDefault<z.ZodBoolean>;
94
+ notes: z.ZodOptional<z.ZodString>;
82
95
  debugLogin: z.ZodOptional<z.ZodObject<{
83
96
  param: z.ZodString;
84
97
  }, z.core.$strict>>;
@@ -94,6 +107,7 @@ export declare const TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
94
107
  }, z.core.$strict>, z.ZodObject<{
95
108
  adapter: z.ZodLiteral<"desktop">;
96
109
  launch: z.ZodString;
110
+ notes: z.ZodOptional<z.ZodString>;
97
111
  window: z.ZodOptional<z.ZodObject<{
98
112
  title: z.ZodOptional<z.ZodString>;
99
113
  class: z.ZodOptional<z.ZodString>;
@@ -101,6 +115,7 @@ export declare const TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
101
115
  display: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
116
  }, z.core.$strict>, z.ZodObject<{
103
117
  adapter: z.ZodLiteral<"android">;
118
+ notes: z.ZodOptional<z.ZodString>;
104
119
  avd: z.ZodOptional<z.ZodString>;
105
120
  emulatorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
121
  adbSerial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -117,6 +132,7 @@ export declare const ConfigSchema: z.ZodObject<{
117
132
  adapter: z.ZodLiteral<"browser">;
118
133
  url: z.ZodOptional<z.ZodURL>;
119
134
  headless: z.ZodDefault<z.ZodBoolean>;
135
+ notes: z.ZodOptional<z.ZodString>;
120
136
  debugLogin: z.ZodOptional<z.ZodObject<{
121
137
  param: z.ZodString;
122
138
  }, z.core.$strict>>;
@@ -132,6 +148,7 @@ export declare const ConfigSchema: z.ZodObject<{
132
148
  }, z.core.$strict>, z.ZodObject<{
133
149
  adapter: z.ZodLiteral<"desktop">;
134
150
  launch: z.ZodString;
151
+ notes: z.ZodOptional<z.ZodString>;
135
152
  window: z.ZodOptional<z.ZodObject<{
136
153
  title: z.ZodOptional<z.ZodString>;
137
154
  class: z.ZodOptional<z.ZodString>;
@@ -139,6 +156,7 @@ export declare const ConfigSchema: z.ZodObject<{
139
156
  display: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
157
  }, z.core.$strict>, z.ZodObject<{
141
158
  adapter: z.ZodLiteral<"android">;
159
+ notes: z.ZodOptional<z.ZodString>;
142
160
  avd: z.ZodOptional<z.ZodString>;
143
161
  emulatorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
162
  adbSerial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -45,11 +45,39 @@ const AuthPersonaSchema = z.strictObject({
45
45
  */
46
46
  expect: z.string().min(1).optional(),
47
47
  });
48
+ /**
49
+ * Hard cap on a target's `notes`, in characters.
50
+ *
51
+ * The composed system prompt is resent to the provider on EVERY step, so notes are
52
+ * paid for per step, for the whole run. ~1000 characters is a dozen preconditions —
53
+ * enough for what a driver must not mistake for a bug, short of an essay. Over the
54
+ * cap fails at config validation, loud, instead of quietly inflating every step.
55
+ */
56
+ export const TARGET_NOTES_MAX_CHARS = 1000;
57
+ /**
58
+ * Standing facts about a target — what is EXPECTED, so the driver stops reporting
59
+ * it as a defect.
60
+ *
61
+ * Per-target, not per-run: `start_debug`'s `goal` says what to do this time,
62
+ * `notes` says what is always true of this app ("needs seeded data — empty tables
63
+ * are expected on /new", "dark mode by default", "first load shows an onboarding
64
+ * modal — dismiss it"). One fact per line; composed into the prompt once, as its
65
+ * own section (see `agent/prompts/compose.ts`).
66
+ */
67
+ const TargetNotesSchema = z
68
+ .string()
69
+ .min(1)
70
+ .max(TARGET_NOTES_MAX_CHARS, {
71
+ message: `must be at most ${TARGET_NOTES_MAX_CHARS} characters — the system prompt carrying it is ` +
72
+ 'resent to the model on every step. Keep it to the preconditions a driver would ' +
73
+ 'otherwise mis-report as bugs; the per-run `goal` carries the rest.',
74
+ });
48
75
  /** Web target — CDP-driven browser. Managed (default) unless `cdpUrl` attaches. */
49
76
  export const WebTargetSchema = z.strictObject({
50
77
  adapter: z.literal('browser'),
51
78
  url: z.url().optional(), // optional: the caller ("boss") can supply it per-run via start_debug
52
79
  headless: z.boolean().default(true), // docs/idea/config.md promises headless by default
80
+ notes: TargetNotesSchema.optional(), // standing preconditions — see the schema above
53
81
  debugLogin: DebugLoginSchema.optional(),
54
82
  auth: z.record(z.string().min(1), AuthPersonaSchema).optional(), // personas, keyed by `as`
55
83
  executablePath: z.string().nullish(), // null = auto-detect Chrome/Chromium (managed)
@@ -79,6 +107,7 @@ const WindowMatchSchema = z.strictObject({
79
107
  export const DesktopTargetSchema = z.strictObject({
80
108
  adapter: z.literal('desktop'),
81
109
  launch: z.string(), // command that starts the app (managed, must stay foreground)
110
+ notes: TargetNotesSchema.optional(), // standing preconditions — see the schema above
82
111
  window: WindowMatchSchema.optional(), // which window to drive; omit → `open` must supply a title
83
112
  display: z.string().nullish(), // X11 DISPLAY, e.g. ":99" for Xvfb; null = inherit env
84
113
  });
@@ -92,6 +121,7 @@ export const DesktopTargetSchema = z.strictObject({
92
121
  export const AndroidTargetSchema = z
93
122
  .strictObject({
94
123
  adapter: z.literal('android'),
124
+ notes: TargetNotesSchema.optional(), // standing preconditions — see the schema above
95
125
  avd: z.string().optional(), // required in managed mode (see the refinement below)
96
126
  emulatorPath: z.string().nullish(), // null = auto-detect from SDK (managed)
97
127
  adbSerial: z.string().nullish(), // set → attach to a running device, no start/stop
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6FAA6F;AAC7F,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,YAAY,CAAC;IACzC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,+CAA+C;IACnE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,mDAAmD;IACvE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,mDAAmD;CACpF,CAAC,CAAC;AAEH,gEAAgE;AAChE,MAAM,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,uDAAuD;CAC3E,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH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ui-debugger-mcp";
2
- export declare const VERSION = "1.6.0";
2
+ export declare const VERSION = "1.7.0";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Public package surface. Implementation lands incrementally — see idea/ for design.
2
2
  export const NAME = 'ui-debugger-mcp';
3
- export const VERSION = '1.6.0';
3
+ export const VERSION = '1.7.0';
4
4
  //# sourceMappingURL=index.js.map
@@ -17,9 +17,11 @@ export function describeTool(service) {
17
17
  server.registerTool('describe', {
18
18
  title: 'Describe debug targets',
19
19
  description: 'List the configured targets for this project (name, adapter, managed|attach, whether wired, ' +
20
- 'web url/headless, and any named auth personas) plus the resolved per-role models and ' +
21
- 'workspace. Call this first to pick a valid target — and a valid `as` persona — for ' +
22
- 'start_debug. Pass target to narrow to one.',
20
+ "web url/headless, any named auth personas, and the target's standing notes — what is " +
21
+ 'expected of the app) plus the resolved per-role models and workspace. Call this first to ' +
22
+ 'pick a valid target — and a valid `as` persona — for start_debug. Pass target to narrow ' +
23
+ 'to one. Also reports `session`: the run this project currently holds, so a lost ' +
24
+ 'session_id can be adopted or ended instead of blocking the next start_debug.',
23
25
  annotations: {
24
26
  readOnlyHint: true,
25
27
  },
@@ -1 +1 @@
1
- {"version":3,"file":"describe.js","sourceRoot":"","sources":["../../../src/mcp/tools/describe.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,kEAAkE;AAClE,MAAM,UAAU,YAAY,CAAC,OAAiB;IAC5C,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,QAAQ,CAAC,MAAM;YACb,MAAM,CAAC,YAAY,CACjB,UAAU,EACV;gBACE,KAAK,EAAE,wBAAwB;gBAC/B,WAAW,EACT,8FAA8F;oBAC9F,uFAAuF;oBACvF,qFAAqF;oBACrF,4CA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CAAC,CAC/C,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -41,6 +41,7 @@ export declare const DescribeResultSchema: z.ZodObject<{
41
41
  url: z.ZodOptional<z.ZodString>;
42
42
  headless: z.ZodOptional<z.ZodBoolean>;
43
43
  personas: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
+ notes: z.ZodOptional<z.ZodString>;
44
45
  }, z.core.$strip>>;
45
46
  models: z.ZodObject<{
46
47
  driver: z.ZodString;
@@ -48,4 +49,13 @@ export declare const DescribeResultSchema: z.ZodObject<{
48
49
  summary: z.ZodString;
49
50
  }, z.core.$strip>;
50
51
  workspace: z.ZodString;
52
+ session: z.ZodOptional<z.ZodObject<{
53
+ id: z.ZodString;
54
+ status: z.ZodEnum<{
55
+ running: "running";
56
+ passed: "passed";
57
+ failed: "failed";
58
+ }>;
59
+ goal: z.ZodString;
60
+ }, z.core.$strip>>;
51
61
  }, z.core.$strip>;
@@ -44,6 +44,23 @@ const TargetInfoSchema = z.object({
44
44
  .optional()
45
45
  .describe('Named auth personas — the valid start_debug({as}) values for this target. Names only; ' +
46
46
  'the credentials stay in .ui-debugger-mcp.json and never reach the driver.'),
47
+ notes: z
48
+ .string()
49
+ .optional()
50
+ .describe('Standing preconditions the project declares for this app (e.g. "needs seeded data — ' +
51
+ 'empty tables are expected"). Composed into the driver\'s prompt, so it treats these ' +
52
+ 'as expected rather than reporting them as defects.'),
53
+ });
54
+ /** The run this server holds for the project — how a caller that lost its session id gets back in. */
55
+ const RunInfoSchema = z.object({
56
+ id: z
57
+ .string()
58
+ .min(1)
59
+ .describe('Session id — pass to get_findings, send_message and end_session.'),
60
+ status: z
61
+ .enum(['running', 'passed', 'failed'])
62
+ .describe('running, or the verdict it settled on (still readable, still holding the project).'),
63
+ goal: z.string().describe('The goal this run was started with.'),
47
64
  });
48
65
  /** `describe` output — the target catalog plus the resolved models + workspace. */
49
66
  export const DescribeResultSchema = z.object({
@@ -56,5 +73,8 @@ export const DescribeResultSchema = z.object({
56
73
  })
57
74
  .describe('Resolved per-role model ids.'),
58
75
  workspace: z.string().describe('Per-project workspace path; evidence lands under it.'),
76
+ session: RunInfoSchema.optional().describe('The run this project currently holds (or the last one, kept readable until it is ended or ' +
77
+ 'superseded). Absent when there is none. Use it to adopt a run whose session_id you lost — ' +
78
+ 'or to end it — instead of being blocked by start_debug.'),
59
79
  });
60
80
  //# sourceMappingURL=output.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../../../src/mcp/tools/output.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,kEAAkE;AAClE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC,0DAA0D,CAAC;CACxE,CAAkC,CAAC;AAEpC,uEAAuE;AACvE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,CAAC;SACF,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,sEAAsE,CAAC;IACnF,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC;CACnE,CAA0B,CAAC;AAE5B,oFAAoF;AACpF,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAChE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAChG,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,SAAS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C"}
@@ -19,8 +19,12 @@ export function startDebugTool(service) {
19
19
  description: 'Open a debug session: hand the small driver agent a goal for a configured target ' +
20
20
  '(e.g. "web"). It drives the UI autonomously and gathers findings (functional bugs + ' +
21
21
  'visual feedback). One run per project at a time. Returns { session_id }; then poll ' +
22
- 'get_findings, steer with send_message, and close with end_session.',
22
+ 'get_findings, steer with send_message, and close with end_session. A run is already ' +
23
+ 'active? The error names its session_id and how to read, close or replace it — and ' +
24
+ 'describe reports that id too.',
23
25
  annotations: {
26
+ // Stays `false`: the one destructive path (`replace: true`, which ends
27
+ // the active run) is never taken unless the caller asks for it by name.
24
28
  destructiveHint: false,
25
29
  openWorldHint: true,
26
30
  },
@@ -45,6 +49,14 @@ export function startDebugTool(service) {
45
49
  "target's auth map — see describe.targets[].personas). The login runs " +
46
50
  'out-of-band, so it costs the driver no steps and the credentials never enter ' +
47
51
  'its context. Omit to run signed out; an unknown name fails loud.'),
52
+ replace: z
53
+ .boolean()
54
+ .optional()
55
+ .describe('Take the project over when a run is already active: end that run (closing its ' +
56
+ 'browser and freeing the profile) and start yours. Default false — the start is ' +
57
+ 'refused instead, naming the active session_id. Use this when the active run is ' +
58
+ 'yours and you lost its id, or it is stuck; it kills a run that may still be ' +
59
+ 'working. A run held by another ui-debugger-mcp server is never replaced.'),
48
60
  criteria: z
49
61
  .string()
50
62
  .optional()
@@ -1 +1 @@
1
- {"version":3,"file":"start-debug.js","sourceRoot":"","sources":["../../../src/mcp/tools/start-debug.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,qEAAqE;AACrE,MAAM,UAAU,cAAc,CAAC,OAAiB;IAC9C,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,QAAQ,CAAC,MAAM;YACb,MAAM,CAA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CACH,CACJ,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"start-debug.js","sourceRoot":"","sources":["../../../src/mcp/tools/start-debug.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,qEAAqE;AACrE,MAAM,UAAU,cAAc,CAAC,OAAiB;IAC9C,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,QAAQ,CAAC,MAAM;YACb,MAAM,CAAC,YAAY,CACjB,aAAa,EACb;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EACT,mFAAmF;oBACnF,sFAAsF;oBACtF,qFAAqF;oBACrF,sFAAsF;oBACtF,oFAAoF;oBACpF,+BAA+B;gBACjC,WAAW,EAAE;oBACX,uEAAuE;oBACvE,wEAAwE;oBACxE,eAAe,EAAE,KAAK;oBACtB,aAAa,EAAE,IAAI;iBACpB;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,CAAC;yBACN,MAAM,EAAE;yBACR,GAAG,CAAC,CAAC,CAAC;yBACN,QAAQ,CACP,4FAA4F,CAC7F;oBACH,IAAI,EAAE,CAAC;yBACJ,MAAM,EAAE;yBACR,GAAG,CAAC,CAAC,CAAC;yBACN,QAAQ,CACP,8FAA8F,CAC/F;oBACH,GAAG,EAAE,CAAC;yBACH,GAAG,EAAE;yBACL,QAAQ,EAAE;yBACV,QAAQ,CACP,qOAAqO,CACtO;oBACH,EAAE,EAAE,CAAC;yBACF,MAAM,EAAE;yBACR,GAAG,CAAC,CAAC,CAAC;yBACN,QAAQ,EAAE;yBACV,QAAQ,CACP,8EAA8E;wBAC5E,uEAAuE;wBACvE,+EAA+E;wBAC/E,kEAAkE,CACrE;oBACH,OAAO,EAAE,CAAC;yBACP,OAAO,EAAE;yBACT,QAAQ,EAAE;yBACV,QAAQ,CACP,gFAAgF;wBAC9E,iFAAiF;wBACjF,iFAAiF;wBACjF,8EAA8E;wBAC9E,0EAA0E,CAC7E;oBACH,QAAQ,EAAE,CAAC;yBACR,MAAM,EAAE;yBACR,QAAQ,EAAE;yBACV,QAAQ,CACP,+EAA+E,CAChF;oBACH,OAAO,EAAE,CAAC;yBACP,MAAM,EAAE;yBACR,GAAG,EAAE;yBACL,QAAQ,EAAE;yBACV,GAAG,CAAC,SAAS,CAAC;yBACd,QAAQ,EAAE;yBACV,QAAQ,CACP,oPAAoP,CACrP;iBACJ;gBACD,YAAY,EAAE,iBAAiB;aAChC,EACD,KAAK,EAAE,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAC7B,YAAY,CACV,MAAM,OAAO,CAAC,KAAK,CAAC;gBAClB,GAAG,IAAI;gBACP,GAAG,CAAC,OAAO,KAAK,SAAS,IAAI,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI,EAAE,CAAC;aAC5D,CAAC,CACH,CACJ,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -29,7 +29,7 @@ import { type ResolvedConfig } from '../config/load.js';
29
29
  import type { Target } from '../config/schema.js';
30
30
  import { type Findings } from '../findings/schema.js';
31
31
  import type { SessionManager } from '../session/manager.js';
32
- import type { Session, SnapshotField } from '../session/session.js';
32
+ import type { Session, SessionStatus, SnapshotField } from '../session/session.js';
33
33
  import { type StatePort } from '../session/state-file.js';
34
34
  import type { SessionBuilder } from './session-builder.js';
35
35
  /** Default wall-clock cap on a debug run before it auto-ends (overridable per run). */
@@ -47,6 +47,18 @@ export interface StartInput {
47
47
  * loud rather than running the goal signed out.
48
48
  */
49
49
  as?: string;
50
+ /**
51
+ * Take the project over instead of being refused when a run is already active
52
+ * here: end that run first (through the `end_session` path), then start.
53
+ *
54
+ * OFF by default, and it must stay off by default — a silent takeover kills a
55
+ * healthy run its own caller is still watching. Opt in when the active run is
56
+ * yours and you lost its id (a compacted context, a crashed client) or it is
57
+ * stuck. Only ever replaces a run THIS server owns; one held by another live
58
+ * server is still refused ({@link SessionBusyError}), since its browser is not
59
+ * ours to close.
60
+ */
61
+ replace?: boolean;
50
62
  /**
51
63
  * Wall-clock cap (ms) before the run auto-ends, counted from THIS call — assembly,
52
64
  * launch and the first navigation spend it too. Defaults to
@@ -96,6 +108,25 @@ export interface TargetInfo {
96
108
  * Absent when the target has no `auth` block.
97
109
  */
98
110
  personas?: string[];
111
+ /**
112
+ * The target's standing `notes` — what is EXPECTED of this app (seeded data,
113
+ * onboarding modals, dark mode), verbatim from config. Also composed into the
114
+ * driver's prompt; surfaced here so a caller can see what the run was told.
115
+ */
116
+ notes?: string;
117
+ }
118
+ /**
119
+ * The run this server holds for the project, as `describe` reports it — the way
120
+ * back in-band for a caller that lost its `session_id` (a compacted context, a
121
+ * client restart). Without it the only recovery was the out-of-band CLI.
122
+ */
123
+ export interface RunInfo {
124
+ /** Pass to `get_findings` / `send_message` / `end_session`. */
125
+ id: string;
126
+ /** `running`, or the verdict it settled on (still readable, still holding the slot). */
127
+ status: SessionStatus;
128
+ /** The goal this run was started with — enough to tell whose run it is. */
129
+ goal: string;
99
130
  }
100
131
  /** `describe` output — configured targets plus the resolved models + workspace. */
101
132
  export interface DescribeResult {
@@ -107,6 +138,12 @@ export interface DescribeResult {
107
138
  };
108
139
  /** Resolved per-project workspace root (`<base>/<project>`) — where evidence lands. */
109
140
  workspace: string;
141
+ /**
142
+ * The active run for this project (or the retained snapshot of the last one that
143
+ * auto-ended). Absent when this server holds no run. A run another live server
144
+ * owns is NOT reported here — `start_debug` names that one in its refusal.
145
+ */
146
+ session?: RunInfo;
110
147
  }
111
148
  /** The surface the outer MCP tools call. Implemented by {@link DebugService}. */
112
149
  export interface DebugApi {
@@ -158,6 +195,12 @@ export declare class DebugService implements DebugApi {
158
195
  * `timeout` is wall-clock from HERE: the deadline is fixed on entry and the
159
196
  * remaining budget is threaded into the build and the first navigation, so a slow
160
197
  * Chrome launch spends the caller's cap instead of sitting outside it.
198
+ *
199
+ * The refusal is the default and stays the default; `replace: true` is the
200
+ * caller's explicit takeover. Either way the caller ends up with a way forward:
201
+ * the refusal names the active id and the exact calls that read, close or
202
+ * replace it, and `describe` reports that id at any time — so a lost session id
203
+ * is a detour, not the dead end that used to need the out-of-band CLI.
161
204
  */
162
205
  start(input: StartInput): Promise<StartResult>;
163
206
  /**
@@ -96,18 +96,32 @@ export class DebugService {
96
96
  * `timeout` is wall-clock from HERE: the deadline is fixed on entry and the
97
97
  * remaining budget is threaded into the build and the first navigation, so a slow
98
98
  * Chrome launch spends the caller's cap instead of sitting outside it.
99
+ *
100
+ * The refusal is the default and stays the default; `replace: true` is the
101
+ * caller's explicit takeover. Either way the caller ends up with a way forward:
102
+ * the refusal names the active id and the exact calls that read, close or
103
+ * replace it, and `describe` reports that id at any time — so a lost session id
104
+ * is a detour, not the dead end that used to need the out-of-band CLI.
99
105
  */
100
106
  async start(input) {
101
107
  const cwd = this.#cwd;
102
- if (this.#manager.has(cwd)) {
103
- throw new SessionBusyError(`A debug session ('${this.#manager.get(cwd).id}') is already active for '${cwd}'. ` +
104
- 'End it before starting another — one run per project at a time.');
105
- }
106
- // Taken synchronously (no await since the has() check) — a concurrent start
107
- // must fail here, not launch a second browser on the same profile.
108
+ // Checked first, and synchronously (no await before `#starting` is set) — a
109
+ // concurrent start must fail here, not launch a second browser on the same
110
+ // profile. Ahead of `replace` on purpose: a run that is still opening owns no
111
+ // manager slot to hand over, and racing its teardown is how a half-launched
112
+ // Chrome gets orphaned on the profile lock.
108
113
  if (this.#starting !== undefined) {
109
- throw new SessionBusyError(`A debug session is already starting for '${cwd}'. ` +
110
- 'Wait for it to open (or end it) before starting another — one run per project at a time.');
114
+ throw new SessionBusyError(`A debug session is already starting for '${cwd}' — one run per project at a time. ` +
115
+ 'Wait a moment for it to open, then describe() names it, ' +
116
+ 'get_findings({session_id}) reads it, and end_session({session_id}) closes it.');
117
+ }
118
+ if (this.#manager.has(cwd) && input.replace !== true) {
119
+ const active = this.#manager.get(cwd).id;
120
+ throw new SessionBusyError(`A debug session ('${active}') is already active for '${cwd}' — one run per project at a ` +
121
+ `time. Read what it is doing with get_findings({session_id:'${active}'}), close it with ` +
122
+ `end_session({session_id:'${active}'}), or take the project over with ` +
123
+ 'start_debug({…, replace:true}), which ends that run first. describe() reports this id ' +
124
+ 'at any time, so a lost session id never wedges the project.');
111
125
  }
112
126
  // Before anything is launched: a run built from config the caller has already
113
127
  // replaced is worse than no run — it reproduces the very failure they just fixed.
@@ -135,11 +149,15 @@ export class DebugService {
135
149
  * already came up and drops the breadcrumb, so nothing is left holding the
136
150
  * project's profile lock.
137
151
  */
138
- async #launch({ target, goal, criteria, url, as }, deadline, signal) {
152
+ async #launch({ target, goal, criteria, url, as, replace }, deadline, signal) {
139
153
  const cwd = this.#cwd;
140
154
  /** Budget left on the caller's cap; never negative — a blown budget is simply spent. */
141
155
  const remaining = () => Math.max(0, deadline - this.#now());
142
156
  await this.#assertNoForeignRun(cwd);
157
+ // The caller asked to take the project over. Before the breadcrumb, so the
158
+ // takeover's `clear()` cannot wipe the record of the run replacing it.
159
+ if (replace === true)
160
+ await this.#takeOverActive();
143
161
  const id = generateSessionId(this.#now());
144
162
  // The breadcrumb goes down BEFORE the launch, not after it: a cold Chrome start
145
163
  // takes 5-20s, and until `state.json` exists the run is invisible out-of-band —
@@ -203,6 +221,23 @@ export class DebugService {
203
221
  'is shutting down (SIGTERM, `ui-debugger-mcp stop`, or the MCP client disconnected). ' +
204
222
  'Nothing was left running; start again once the server is back.');
205
223
  }
224
+ /**
225
+ * `replace: true` — end the run this server holds for the project so the new one
226
+ * can have it. No-op when nothing is active: replacing nothing is just a start.
227
+ *
228
+ * Deliberately routed through {@link end}, the very method `end_session` calls,
229
+ * rather than a private teardown: releasing a target correctly means the managed
230
+ * browser is STOPPED while an attached one is only DISCONNECTED, the wall-clock
231
+ * timer is cleared and the breadcrumb dropped — a second implementation of that
232
+ * would drift, and the drift would show up as a leaked Chrome sitting on the
233
+ * profile lock. A teardown that throws fails the start, loudly; the manager frees
234
+ * the slot before closing, so the project is not wedged either way.
235
+ */
236
+ async #takeOverActive() {
237
+ if (!this.#manager.has(this.#cwd))
238
+ return;
239
+ await this.end({ session_id: this.#manager.get(this.#cwd).id });
240
+ }
206
241
  /**
207
242
  * Refuse to start on config this server can no longer honour.
208
243
  *
@@ -311,6 +346,7 @@ export class DebugService {
311
346
  if (target !== undefined && selected.length === 0) {
312
347
  throw new TargetNotFoundError(`target '${target}' not found in config.targets`);
313
348
  }
349
+ const session = this.#currentRun();
314
350
  return {
315
351
  targets: selected.map(([name, config]) => describeTarget(name, config)),
316
352
  models: this.#config.models,
@@ -318,8 +354,26 @@ export class DebugService {
318
354
  // this to the relative evidence paths it gets back, and `./tmp/ui-debugger-mcp`
319
355
  // would send it looking one directory short of where anything lands.
320
356
  workspace: workspacePaths(this.#cwd, this.#config.workspace).root,
357
+ ...(session && { session }),
321
358
  };
322
359
  }
360
+ /**
361
+ * The run this server holds for the project — the active one, or the retained
362
+ * snapshot of the last run that auto-ended (both are readable and both are
363
+ * `end_session`-able by their id). `undefined` when there is none.
364
+ *
365
+ * This is the in-band answer to a lost `session_id`: without it, a caller whose
366
+ * context was compacted mid-conversation could neither read the run nor close
367
+ * it, and the only recovery left was `ui-debugger-mcp stop` in a shell the
368
+ * caller may not have. A start still in flight is deliberately not reported —
369
+ * it has no id to hand out yet, and the busy error says to wait for it.
370
+ */
371
+ #currentRun() {
372
+ const session = this.#manager.has(this.#cwd) ? this.#manager.get(this.#cwd) : this.#retained;
373
+ if (session === undefined)
374
+ return undefined;
375
+ return { id: session.id, status: session.status, goal: session.story };
376
+ }
323
377
  /**
324
378
  * End the active run: abort the loop, close the adapter, free the profile lock.
325
379
  * Ending a run that already auto-ended (timeout / client death) is not an error
@@ -426,6 +480,10 @@ function describeTarget(name, target) {
426
480
  adapter: target.adapter,
427
481
  mode: isAttach(target) ? 'attach' : 'managed',
428
482
  operational: true,
483
+ // What the project declares is EXPECTED of this app — the driver already gets
484
+ // it in its prompt; the caller sees it here so "the table is empty" coming back
485
+ // as a non-finding is explainable without opening the config file.
486
+ ...(target.notes !== undefined && { notes: target.notes }),
429
487
  };
430
488
  if (target.adapter === 'browser') {
431
489
  // Persona NAMES are the discoverable half — a caller can pick a valid `as`
@@ -1 +1 @@
1
- {"version":3,"file":"debug-service.js","sourceRoot":"","sources":["../../src/services/debug-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,eAAe,EAAuB,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAiB,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGtE,OAAO,EAAE,aAAa,EAAkB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG5E,uFAAuF;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAuHlD;;;GAGG;AACH,SAAS,eAAe,CAAC,QAAkB,EAAE,MAAgC;IAC3E,MAAM,GAAG,GAAsB,EAAE,CAAC;IAClC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,2EAA2E;QAC3E,kEAAkE;QACjE,GAA+B,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,OAAO,YAAY;IACd,QAAQ,CAA0B;IAClC,OAAO,CAAiB;IACxB,IAAI,CAAS;IACb,MAAM,CAAiB;IACvB,MAAM,CAAY;IAClB,iBAAiB,CAAS;IAC1B,IAAI,CAAe;IACnB,cAAc,CAAgB;IACvC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F;AAC7F,SAAS,QAAQ,CAAC,MAAc;IAC9B,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC;IAC/D,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC;IAClE,OAAO,KAAK,CAAC;AACf,CAAC;AAED,qFAAqF;AACrF,SAAS,cAAc,CAAC,IAAY,EAAE,MAAc;IAClD,MAAM,IAAI,GAAe;QACvB,IAAI;QACJ,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;QAC7C,WAAW,EAAE,IAAI;QACjB,8EAA8E;QAC9E,gFAAgF;QAChF,mEAAmE;QACnE,GAAG,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;KAC3D,CAAC;IACF,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACjC,2EAA2E;QAC3E,8DAA8D;QAC9D,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;QAChD,OAAO;YACL,GAAG,IAAI;YACP,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC;SACzC,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -111,11 +111,15 @@ export function resolveRunTarget(target, name, url) {
111
111
  }
112
112
  return target;
113
113
  }
114
- /** Split a free-text criteria blob into per-line rules; `undefined` when empty/absent. */
115
- function splitCriteria(criteria) {
116
- if (criteria === undefined)
114
+ /**
115
+ * Split a free-text blob into per-line entries; `undefined` when empty/absent.
116
+ * Backs both the run's `criteria` and the target's standing `notes` — each is one
117
+ * rule/fact per line, rendered as a list in the composed prompt.
118
+ */
119
+ function splitLines(blob) {
120
+ if (blob === undefined)
117
121
  return undefined;
118
- const lines = criteria
122
+ const lines = blob
119
123
  .split('\n')
120
124
  .map((line) => line.trim())
121
125
  .filter((line) => line.length > 0);
@@ -186,7 +190,7 @@ export async function buildSession(deps, params) {
186
190
  // and drop the rest, so the workspace stops growing forever. `protect` pins this
187
191
  // run's dir even if the clock moved backwards since the previous one.
188
192
  await pruneSessions(workspace, { keep: SESSION_RETENTION, protect: id });
189
- const criteriaLines = splitCriteria(criteria);
193
+ const criteriaLines = splitLines(criteria);
190
194
  const address = openAddress(targetConfig);
191
195
  const origin = runOrigin(targetConfig);
192
196
  await writeFile(paths.storyMd, renderStoryMd(target, address, goal, criteriaLines), 'utf8');
@@ -219,6 +223,10 @@ export async function buildSession(deps, params) {
219
223
  address: origin ? address : undefined,
220
224
  // Name + path only — never the field values. The prompt is resent every step.
221
225
  ...(auth && { auth: { persona: auth.name, loginPath: auth.persona.path } }),
226
+ // The target's standing preconditions: config-level, so they are stated once
227
+ // here instead of re-pasted into every `goal`. Length is capped at the config
228
+ // boundary — this section rides along on every step.
229
+ notes: splitLines(targetConfig.notes),
222
230
  });
223
231
  const appendAgentLog = (line) => store.appendLog('agent', redact(`${new Date().toISOString()} ${line}`));
224
232
  // High-frequency, fire-and-forget: the agent's own log sink + per-step tool logs.
@@ -1 +1 @@
1
- {"version":3,"file":"session-builder.js","sourceRoot":"","sources":["../../src/services/session-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE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CAAC,WAAW,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,CAAC;YACzD,IAAI,CAAC,IAAI;gBAAE,OAAO;YAClB,8EAA8E;YAC9E,+EAA+E;YAC/E,+EAA+E;YAC/E,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;YAC7E,KAAK,MAAM,IAAI,IAAI,KAAK;gBAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/C,CAAC;QACD,GAAG;KACJ,CAAC;AACJ,CAAC;AAED,4FAA4F;AAC5F,SAAS,MAAM,CACb,OAAgB,EAChB,IAAkB,EAClB,MAAc,EACd,GAA2B,EAC3B,SAAkB;IAElB,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,OAAO,YAAY,CAAC,OAAO,EAAE;QAC3B,GAAG,IAAI;QACP,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC;QACnD,SAAS;QACT,GAAG;KACJ,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@developerz.ai/ui-debugger-mcp",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Autonomous UI debugging MCP server. Give a goal; a fast agent drives the browser/desktop, finds bugs + visual issues, and reports back.",
5
5
  "mcpName": "io.github.developerz-ai/ui-debugger-mcp",
6
6
  "license": "MIT",