@developerz.ai/ui-debugger-mcp 1.8.0 → 1.10.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 +70 -52
- package/dist/adapters/android/adb.d.ts +19 -7
- package/dist/adapters/android/adb.js +50 -13
- package/dist/adapters/android/adb.js.map +1 -1
- package/dist/adapters/android/android-adapter.d.ts +42 -2
- package/dist/adapters/android/android-adapter.js +366 -36
- package/dist/adapters/android/android-adapter.js.map +1 -1
- package/dist/adapters/android/commands.js.map +1 -1
- package/dist/adapters/android/ports.js.map +1 -1
- package/dist/adapters/android/sdk.d.ts +65 -0
- package/dist/adapters/android/sdk.js +107 -0
- package/dist/adapters/android/sdk.js.map +1 -0
- package/dist/adapters/android/uiautomator.d.ts +23 -7
- package/dist/adapters/android/uiautomator.js +31 -7
- package/dist/adapters/android/uiautomator.js.map +1 -1
- package/dist/adapters/availability.d.ts +39 -0
- package/dist/adapters/availability.js +62 -0
- package/dist/adapters/availability.js.map +1 -0
- package/dist/adapters/browser/browser-adapter.d.ts +12 -22
- package/dist/adapters/browser/browser-adapter.js +133 -67
- package/dist/adapters/browser/browser-adapter.js.map +1 -1
- package/dist/adapters/browser/cdp.d.ts +15 -7
- package/dist/adapters/browser/cdp.js +25 -3
- package/dist/adapters/browser/cdp.js.map +1 -1
- package/dist/adapters/browser/filters.d.ts +1 -1
- package/dist/adapters/browser/filters.js.map +1 -1
- package/dist/adapters/browser/geometry.js.map +1 -1
- package/dist/adapters/browser/launch.d.ts +14 -5
- package/dist/adapters/browser/launch.js +14 -5
- package/dist/adapters/browser/launch.js.map +1 -1
- package/dist/adapters/browser/lifecycle.d.ts +58 -0
- package/dist/adapters/browser/lifecycle.js +98 -0
- package/dist/adapters/browser/lifecycle.js.map +1 -0
- package/dist/adapters/browser/log-filters.d.ts +2 -2
- package/dist/adapters/browser/log-filters.js.map +1 -1
- package/dist/adapters/browser/log-format.d.ts +14 -23
- package/dist/adapters/browser/log-format.js +16 -55
- package/dist/adapters/browser/log-format.js.map +1 -1
- package/dist/adapters/browser/tab-context.d.ts +30 -0
- package/dist/adapters/browser/tab-context.js +41 -0
- package/dist/adapters/browser/tab-context.js.map +1 -0
- package/dist/adapters/contract.d.ts +111 -5
- package/dist/adapters/contract.js +7 -2
- package/dist/adapters/contract.js.map +1 -1
- package/dist/adapters/desktop/atspi-busctl.d.ts +26 -0
- package/dist/adapters/desktop/atspi-busctl.js +330 -0
- package/dist/adapters/desktop/atspi-busctl.js.map +1 -0
- package/dist/adapters/desktop/atspi-parse.d.ts +39 -0
- package/dist/adapters/desktop/atspi-parse.js +155 -0
- package/dist/adapters/desktop/atspi-parse.js.map +1 -0
- package/dist/adapters/desktop/atspi.d.ts +75 -50
- package/dist/adapters/desktop/atspi.js +64 -285
- package/dist/adapters/desktop/atspi.js.map +1 -1
- package/dist/adapters/desktop/capture.d.ts +11 -20
- package/dist/adapters/desktop/capture.js +68 -37
- package/dist/adapters/desktop/capture.js.map +1 -1
- package/dist/adapters/desktop/desktop-adapter.d.ts +20 -2
- package/dist/adapters/desktop/desktop-adapter.js +91 -9
- package/dist/adapters/desktop/desktop-adapter.js.map +1 -1
- package/dist/adapters/desktop/input.d.ts +18 -4
- package/dist/adapters/desktop/input.js +15 -10
- package/dist/adapters/desktop/input.js.map +1 -1
- package/dist/adapters/desktop/proc.d.ts +32 -4
- package/dist/adapters/desktop/proc.js +33 -6
- package/dist/adapters/desktop/proc.js.map +1 -1
- package/dist/adapters/factory.d.ts +12 -5
- package/dist/adapters/factory.js +29 -3
- package/dist/adapters/factory.js.map +1 -1
- package/dist/adapters/log-format.d.ts +32 -0
- package/dist/adapters/log-format.js +39 -0
- package/dist/adapters/log-format.js.map +1 -0
- package/dist/agent/belt/act.d.ts +440 -21
- package/dist/agent/belt/act.js +43 -6
- package/dist/agent/belt/act.js.map +1 -1
- package/dist/agent/belt/look.d.ts +471 -14
- package/dist/agent/belt/look.js +74 -12
- package/dist/agent/belt/look.js.map +1 -1
- package/dist/agent/belt/observe.d.ts +663 -42
- package/dist/agent/belt/observe.js +76 -12
- package/dist/agent/belt/observe.js.map +1 -1
- package/dist/agent/belt/report.d.ts +754 -48
- package/dist/agent/belt/report.js +121 -38
- package/dist/agent/belt/report.js.map +1 -1
- package/dist/agent/belt/trail.d.ts +44 -16
- package/dist/agent/belt/trail.js +46 -11
- package/dist/agent/belt/trail.js.map +1 -1
- package/dist/agent/capabilities.js.map +1 -1
- package/dist/agent/fallback.d.ts +33 -0
- package/dist/agent/fallback.js +84 -0
- package/dist/agent/fallback.js.map +1 -0
- package/dist/agent/loop.d.ts +54 -52
- package/dist/agent/loop.js +173 -176
- package/dist/agent/loop.js.map +1 -1
- package/dist/agent/models.d.ts +10 -6
- package/dist/agent/models.js +15 -9
- package/dist/agent/models.js.map +1 -1
- package/dist/agent/prompts/compose.d.ts +1 -1
- package/dist/agent/prompts/debug-agent.js +45 -8
- package/dist/agent/prompts/debug-agent.js.map +1 -1
- package/dist/agent/prompts/web-addendum.d.ts +1 -1
- package/dist/agent/prompts/web-addendum.js +15 -3
- package/dist/agent/prompts/web-addendum.js.map +1 -1
- package/dist/agent/provider.d.ts +38 -0
- package/dist/agent/provider.js +55 -3
- package/dist/agent/provider.js.map +1 -1
- package/dist/boot.d.ts +64 -0
- package/dist/boot.js +145 -0
- package/dist/boot.js.map +1 -0
- package/dist/cli/chromium-libs.d.ts +262 -0
- package/dist/cli/chromium-libs.js +522 -0
- package/dist/cli/chromium-libs.js.map +1 -0
- package/dist/cli/control.js +51 -9
- package/dist/cli/control.js.map +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli/init.d.ts +54 -3
- package/dist/cli/init.js +89 -24
- package/dist/cli/init.js.map +1 -1
- package/dist/config/fingerprint.d.ts +6 -1
- package/dist/config/fingerprint.js +8 -4
- package/dist/config/fingerprint.js.map +1 -1
- package/dist/config/load.d.ts +50 -10
- package/dist/config/load.js +93 -27
- package/dist/config/load.js.map +1 -1
- package/dist/config/schema.d.ts +18 -6
- package/dist/config/schema.js +22 -7
- package/dist/config/schema.js.map +1 -1
- package/dist/errors.d.ts +14 -0
- package/dist/errors.js +18 -0
- package/dist/errors.js.map +1 -1
- package/dist/findings/schema.d.ts +44 -6
- package/dist/findings/schema.js +39 -3
- package/dist/findings/schema.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.js +4 -76
- package/dist/main.js.map +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/describe.d.ts +5 -4
- package/dist/mcp/tools/describe.js +14 -10
- package/dist/mcp/tools/describe.js.map +1 -1
- package/dist/mcp/tools/end-session.d.ts +3 -1
- package/dist/mcp/tools/end-session.js +7 -3
- package/dist/mcp/tools/end-session.js.map +1 -1
- package/dist/mcp/tools/output.d.ts +5 -4
- package/dist/mcp/tools/output.js +10 -2
- package/dist/mcp/tools/output.js.map +1 -1
- package/dist/mcp/tools/result.d.ts +10 -1
- package/dist/mcp/tools/result.js +8 -6
- package/dist/mcp/tools/result.js.map +1 -1
- package/dist/mcp/tools/start-debug.js +7 -5
- package/dist/mcp/tools/start-debug.js.map +1 -1
- package/dist/redact.d.ts +28 -0
- package/dist/redact.js +51 -0
- package/dist/redact.js.map +1 -0
- package/dist/services/catalog.d.ts +28 -0
- package/dist/services/catalog.js +65 -0
- package/dist/services/catalog.js.map +1 -0
- package/dist/services/debug-api.d.ts +172 -0
- package/dist/services/debug-api.js +9 -0
- package/dist/services/debug-api.js.map +1 -0
- package/dist/services/debug-service.d.ts +25 -173
- package/dist/services/debug-service.js +108 -175
- package/dist/services/debug-service.js.map +1 -1
- package/dist/services/login.d.ts +7 -2
- package/dist/services/login.js +210 -10
- package/dist/services/login.js.map +1 -1
- package/dist/services/retained-snapshot.d.ts +36 -0
- package/dist/services/retained-snapshot.js +63 -0
- package/dist/services/retained-snapshot.js.map +1 -0
- package/dist/services/session-builder.d.ts +26 -0
- package/dist/services/session-builder.js +46 -19
- package/dist/services/session-builder.js.map +1 -1
- package/dist/services/start-guards.d.ts +32 -0
- package/dist/services/start-guards.js +50 -0
- package/dist/services/start-guards.js.map +1 -0
- package/dist/services/summarize.d.ts +12 -3
- package/dist/services/summarize.js +13 -5
- package/dist/services/summarize.js.map +1 -1
- package/dist/session/cleanup.js.map +1 -1
- package/dist/session/findings-store.d.ts +2 -1
- package/dist/session/findings-store.js +30 -2
- package/dist/session/findings-store.js.map +1 -1
- package/dist/session/live-pointer.d.ts +19 -0
- package/dist/session/live-pointer.js +41 -0
- package/dist/session/live-pointer.js.map +1 -0
- package/dist/session/manager.d.ts +11 -1
- package/dist/session/manager.js +46 -2
- package/dist/session/manager.js.map +1 -1
- package/dist/session/owner-lock.d.ts +208 -0
- package/dist/session/owner-lock.js +499 -0
- package/dist/session/owner-lock.js.map +1 -0
- package/dist/session/process-identity.js.map +1 -1
- package/dist/session/session.js +61 -7
- package/dist/session/session.js.map +1 -1
- package/dist/session/state-file.d.ts +74 -14
- package/dist/session/state-file.js +203 -21
- package/dist/session/state-file.js.map +1 -1
- package/package.json +7 -7
- package/dist/adapters/android/android-adapter.test-helpers.d.ts +0 -52
- package/dist/adapters/android/android-adapter.test-helpers.js +0 -115
- package/dist/adapters/android/android-adapter.test-helpers.js.map +0 -1
- package/dist/mcp/server.test-helpers.d.ts +0 -23
- package/dist/mcp/server.test-helpers.js +0 -49
- package/dist/mcp/server.test-helpers.js.map +0 -1
|
@@ -5,13 +5,16 @@
|
|
|
5
5
|
* mid-flight, poll its findings, list targets, end it. Holds the cwd-keyed
|
|
6
6
|
* {@link SessionManager} (the one-run-per-project gate) and the resolved config,
|
|
7
7
|
* and delegates the heavy session assembly to an injected {@link SessionBuilder}
|
|
8
|
-
* seam — so the orchestration here unit-tests with no browser or network.
|
|
9
|
-
* handlers stay thin: validate input, call straight through to a method here.
|
|
8
|
+
* seam — so the orchestration here unit-tests with no browser or network.
|
|
10
9
|
*
|
|
11
10
|
* One run per project holds *across processes* too: the manager only knows this
|
|
12
11
|
* server's memory, so `start` also consults the `state.json` breadcrumb and
|
|
13
12
|
* refuses when another live server already owns a run here (a dead owner's stale
|
|
14
|
-
* breadcrumb never blocks).
|
|
13
|
+
* breadcrumb never blocks). That read is the FRIENDLY early refusal; the
|
|
14
|
+
* AUTHORITY is the workspace's exclusive ownership claim, taken atomically by
|
|
15
|
+
* {@link FileStatePort.record} — two servers starting in the same window both
|
|
16
|
+
* read "no foreign run", and only the claim admits one of them
|
|
17
|
+
* ({@link SessionBusyError}, before a browser is launched).
|
|
15
18
|
*
|
|
16
19
|
* Sessions are keyed by cwd, but the tools speak `session_id`. Every id-bearing
|
|
17
20
|
* call resolves the active session for the cwd and fails loud
|
|
@@ -22,14 +25,20 @@
|
|
|
22
25
|
* MCP client dying) leaves the manager, but its findings must not vanish with it:
|
|
23
26
|
* the settled session is retained so `get_findings` keeps serving its terminal
|
|
24
27
|
* snapshot. `end_session` is the explicit forget; the next `start_debug`
|
|
25
|
-
* supersedes it. The
|
|
26
|
-
*
|
|
28
|
+
* supersedes it. The snapshot holds no target resources and never gates a start.
|
|
29
|
+
*
|
|
30
|
+
* The pieces around this orchestration live in their own modules: the contract
|
|
31
|
+
* types in `debug-api.ts` (re-exported here, so no importer changes), the catalog
|
|
32
|
+
* projection in `catalog.ts`, the retained snapshot in `retained-snapshot.ts`
|
|
33
|
+
* and the start-time refusals in `start-guards.ts`.
|
|
27
34
|
*/
|
|
28
|
-
import {
|
|
29
|
-
import { ConfigError, SessionBusyError, SessionNotFoundError, SessionSettledError, TargetNotFoundError, } from '../errors.js';
|
|
35
|
+
import { SessionBusyError, SessionNotFoundError, SessionSettledError } from '../errors.js';
|
|
30
36
|
import { FindingsSchema } from '../findings/schema.js';
|
|
31
37
|
import { noopStatePort } from '../session/state-file.js';
|
|
32
38
|
import { generateSessionId, workspacePaths } from '../session/workspace.js';
|
|
39
|
+
import { selectTargets } from './catalog.js';
|
|
40
|
+
import { RetainedSnapshot } from './retained-snapshot.js';
|
|
41
|
+
import { assertConfigFresh, assertNoForeignRun } from './start-guards.js';
|
|
33
42
|
/** Default wall-clock cap on a debug run before it auto-ends (overridable per run). */
|
|
34
43
|
export const DEFAULT_SESSION_TIMEOUT_MS = 300_000;
|
|
35
44
|
/**
|
|
@@ -53,16 +62,15 @@ export class DebugService {
|
|
|
53
62
|
#state;
|
|
54
63
|
#defaultTimeoutMs;
|
|
55
64
|
#now;
|
|
65
|
+
#platform;
|
|
56
66
|
#configChanged;
|
|
57
67
|
/** Live wall-clock timer for the active run; cleared when the run ends. */
|
|
58
68
|
#timer;
|
|
59
69
|
/**
|
|
60
70
|
* The last run that auto-ended (timeout / SIGTERM / client death), kept settled
|
|
61
|
-
* and closed so `get_findings` can still read its
|
|
62
|
-
* Dropped by `end_session` (the explicit forget) and superseded by the next run.
|
|
63
|
-
* Never consulted by the one-run gate — a retained snapshot cannot block a start.
|
|
71
|
+
* and closed so `get_findings` can still read its findings. Never a gate.
|
|
64
72
|
*/
|
|
65
|
-
#retained;
|
|
73
|
+
#retained = new RetainedSnapshot();
|
|
66
74
|
/**
|
|
67
75
|
* The `start()` currently in flight (building/launching, slot not yet in the
|
|
68
76
|
* manager), or `undefined`. Set synchronously before the first await so a
|
|
@@ -70,9 +78,8 @@ export class DebugService {
|
|
|
70
78
|
* racing a second browser onto the same profile.
|
|
71
79
|
*
|
|
72
80
|
* `controller` cancels it at the next checkpoint and `settled` resolves once it
|
|
73
|
-
* has
|
|
74
|
-
*
|
|
75
|
-
* process exit with a half-launched Chrome still holding the profile lock.
|
|
81
|
+
* has torn down (it never rejects) — so {@link endActive} can abort a launch
|
|
82
|
+
* *and wait for it*, instead of exiting with a half-launched Chrome on the lock.
|
|
76
83
|
*/
|
|
77
84
|
#starting;
|
|
78
85
|
constructor(deps) {
|
|
@@ -83,6 +90,7 @@ export class DebugService {
|
|
|
83
90
|
this.#state = deps.state ?? noopStatePort;
|
|
84
91
|
this.#defaultTimeoutMs = deps.defaultTimeoutMs ?? DEFAULT_SESSION_TIMEOUT_MS;
|
|
85
92
|
this.#now = deps.now ?? (() => Date.now());
|
|
93
|
+
this.#platform = deps.platform ?? process.platform;
|
|
86
94
|
this.#configChanged = deps.configChanged ?? (() => false);
|
|
87
95
|
}
|
|
88
96
|
/**
|
|
@@ -90,26 +98,24 @@ export class DebugService {
|
|
|
90
98
|
* the target, and kick the loop off in the background. Fails loud if a run is
|
|
91
99
|
* already active for this cwd ({@link SessionBusyError}) — whether it belongs to
|
|
92
100
|
* this server (the manager / in-flight guard) or to another live one (the
|
|
93
|
-
* `state.json` breadcrumb
|
|
94
|
-
* a failed `open` tears
|
|
101
|
+
* `state.json` breadcrumb read, and then the workspace's ownership claim);
|
|
102
|
+
* never leaks a launched browser — a lost lock race or a failed `open` tears
|
|
103
|
+
* the session back down.
|
|
95
104
|
*
|
|
96
105
|
* `timeout` is wall-clock from HERE: the deadline is fixed on entry and the
|
|
97
106
|
* remaining budget is threaded into the build and the first navigation, so a slow
|
|
98
107
|
* Chrome launch spends the caller's cap instead of sitting outside it.
|
|
99
108
|
*
|
|
100
|
-
* The refusal is the default
|
|
101
|
-
*
|
|
102
|
-
* the
|
|
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.
|
|
109
|
+
* The refusal is the default; `replace: true` is the caller's explicit takeover.
|
|
110
|
+
* Either way the caller has a way forward: the refusal names the active id and
|
|
111
|
+
* the calls that read, close or replace it, and `describe` reports that id.
|
|
105
112
|
*/
|
|
106
113
|
async start(input) {
|
|
107
114
|
const cwd = this.#cwd;
|
|
108
115
|
// Checked first, and synchronously (no await before `#starting` is set) — a
|
|
109
116
|
// concurrent start must fail here, not launch a second browser on the same
|
|
110
|
-
// profile. Ahead of `replace` on purpose: a run
|
|
111
|
-
//
|
|
112
|
-
// Chrome gets orphaned on the profile lock.
|
|
117
|
+
// profile. Ahead of `replace` on purpose: a run still opening owns no manager
|
|
118
|
+
// slot to hand over, and racing its teardown orphans a half-launched Chrome.
|
|
113
119
|
if (this.#starting !== undefined) {
|
|
114
120
|
throw new SessionBusyError(`A debug session is already starting for '${cwd}' — one run per project at a time. ` +
|
|
115
121
|
'Wait a moment for it to open, then describe() names it, ' +
|
|
@@ -123,9 +129,18 @@ export class DebugService {
|
|
|
123
129
|
'start_debug({…, replace:true}), which ends that run first. describe() reports this id ' +
|
|
124
130
|
'at any time, so a lost session id never wedges the project.');
|
|
125
131
|
}
|
|
132
|
+
// The previous run's teardown is still in flight: the manager freed its slot,
|
|
133
|
+
// but its close has not settled, so the profile/browser it held is mid-release.
|
|
134
|
+
// Launching now would race the ending run for those resources — refuse until
|
|
135
|
+
// the gate lifts, naming what the caller waits on.
|
|
136
|
+
const closing = this.#manager.closingId(cwd);
|
|
137
|
+
if (closing !== undefined) {
|
|
138
|
+
throw new SessionBusyError(`The previous debug session ('${closing}') for '${cwd}' is still closing — its ` +
|
|
139
|
+
'teardown is releasing the profile lock. Wait a moment, then retry.');
|
|
140
|
+
}
|
|
126
141
|
// Before anything is launched: a run built from config the caller has already
|
|
127
142
|
// replaced is worse than no run — it reproduces the very failure they just fixed.
|
|
128
|
-
this.#
|
|
143
|
+
assertConfigFresh(this.#configChanged);
|
|
129
144
|
const deadline = this.#now() + (input.timeoutMs ?? this.#defaultTimeoutMs);
|
|
130
145
|
const controller = new AbortController();
|
|
131
146
|
const attempt = this.#launch(input, deadline, controller.signal);
|
|
@@ -145,26 +160,31 @@ export class DebugService {
|
|
|
145
160
|
/**
|
|
146
161
|
* The launch itself: breadcrumb, build, lock, open, arm. Every await is a
|
|
147
162
|
* cancellation checkpoint — `signal` is the shutdown path asking this start to
|
|
148
|
-
* stop — and every failure
|
|
149
|
-
*
|
|
150
|
-
* project's profile lock.
|
|
163
|
+
* stop — and every failure tears down whatever came up and drops the
|
|
164
|
+
* breadcrumb, so nothing is left holding the project's profile lock.
|
|
151
165
|
*/
|
|
152
166
|
async #launch({ target, goal, criteria, url, as, replace }, deadline, signal) {
|
|
153
167
|
const cwd = this.#cwd;
|
|
154
168
|
/** Budget left on the caller's cap; never negative — a blown budget is simply spent. */
|
|
155
169
|
const remaining = () => Math.max(0, deadline - this.#now());
|
|
156
|
-
|
|
170
|
+
// The friendly early refusal: another live server's breadcrumb already names a
|
|
171
|
+
// run here. It is a READ, so two servers in the same window can both see "no
|
|
172
|
+
// foreign run" — the AUTHORITATIVE admission is the claim `state.record()` takes.
|
|
173
|
+
await assertNoForeignRun(this.#state, cwd);
|
|
157
174
|
// The caller asked to take the project over. Before the breadcrumb, so the
|
|
158
175
|
// takeover's `clear()` cannot wipe the record of the run replacing it.
|
|
159
176
|
if (replace === true)
|
|
160
177
|
await this.#takeOverActive();
|
|
161
178
|
const id = generateSessionId(this.#now());
|
|
162
|
-
// The breadcrumb goes down BEFORE the launch
|
|
163
|
-
//
|
|
164
|
-
//
|
|
165
|
-
//
|
|
166
|
-
//
|
|
167
|
-
//
|
|
179
|
+
// The breadcrumb goes down BEFORE the launch: a cold Chrome start takes 5-20s,
|
|
180
|
+
// and until `state.json` exists the run is invisible out-of-band — `status`
|
|
181
|
+
// prints "no debug run recorded" and `stop` never signals, while a real browser
|
|
182
|
+
// already holds the profile lock. It fails loud (a run the CLI cannot see is a
|
|
183
|
+
// run nobody can stop) — and here that costs nothing: nothing is launched yet.
|
|
184
|
+
//
|
|
185
|
+
// Writing it also TAKES the workspace's ownership claim, the real gate: a live
|
|
186
|
+
// foreign owner refuses this write with {@link SessionBusyError} (naming its
|
|
187
|
+
// pid and session), so the loser never hides the winner's live run.
|
|
168
188
|
await this.#state.record({ sessionId: id, target, goal });
|
|
169
189
|
try {
|
|
170
190
|
this.#assertStartNotAborted(signal, id);
|
|
@@ -187,7 +207,7 @@ export class DebugService {
|
|
|
187
207
|
}
|
|
188
208
|
// This run owns the slot now — the previous run's retained snapshot is
|
|
189
209
|
// superseded (its findings.json stays on disk for the CLI / a human).
|
|
190
|
-
this.#retained
|
|
210
|
+
this.#retained.clear();
|
|
191
211
|
try {
|
|
192
212
|
await built.open(remaining());
|
|
193
213
|
this.#assertStartNotAborted(signal, id);
|
|
@@ -204,15 +224,15 @@ export class DebugService {
|
|
|
204
224
|
}
|
|
205
225
|
catch (err) {
|
|
206
226
|
// Nobody holds this id, so nothing could ever end the run — leave no
|
|
207
|
-
// `running` breadcrumb pointing the CLI at a run
|
|
208
|
-
|
|
227
|
+
// `running` breadcrumb pointing the CLI at a gone run. Scoped to THIS
|
|
228
|
+
// attempt's id: a successor that recorded itself meanwhile keeps its own.
|
|
229
|
+
await this.#state.clear(id).catch(() => undefined);
|
|
209
230
|
throw err;
|
|
210
231
|
}
|
|
211
232
|
}
|
|
212
233
|
/**
|
|
213
234
|
* Stop a start that the shutdown path has cancelled (SIGTERM, a CLI `stop`, the
|
|
214
|
-
* MCP client dying). The caller tears down whatever it had already built
|
|
215
|
-
* teardown is exactly what the abort is for.
|
|
235
|
+
* MCP client dying). The caller tears down whatever it had already built.
|
|
216
236
|
*/
|
|
217
237
|
#assertStartNotAborted(signal, id) {
|
|
218
238
|
if (!signal.aborted)
|
|
@@ -222,16 +242,14 @@ export class DebugService {
|
|
|
222
242
|
'Nothing was left running; start again once the server is back.');
|
|
223
243
|
}
|
|
224
244
|
/**
|
|
225
|
-
* `replace: true` — end the run this server holds
|
|
226
|
-
*
|
|
245
|
+
* `replace: true` — end the run this server holds so the new one can have it.
|
|
246
|
+
* No-op when nothing is active: replacing nothing is just a start.
|
|
227
247
|
*
|
|
228
|
-
* Deliberately routed through {@link end}, the very method `end_session` calls
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
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.
|
|
248
|
+
* Deliberately routed through {@link end}, the very method `end_session` calls:
|
|
249
|
+
* releasing a target correctly means the managed browser is STOPPED while an
|
|
250
|
+
* attached one is only DISCONNECTED, the timer is cleared and the breadcrumb
|
|
251
|
+
* dropped — a second implementation of that would drift, and the drift would
|
|
252
|
+
* show up as a leaked Chrome on the profile lock.
|
|
235
253
|
*/
|
|
236
254
|
async #takeOverActive() {
|
|
237
255
|
if (!this.#manager.has(this.#cwd))
|
|
@@ -239,42 +257,9 @@ export class DebugService {
|
|
|
239
257
|
await this.end({ session_id: this.#manager.get(this.#cwd).id });
|
|
240
258
|
}
|
|
241
259
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
* file, sees the identical failure, and has no way to tell a bad fix from an
|
|
246
|
-
* unread one — which is exactly how a real session burned two runs.
|
|
247
|
-
*/
|
|
248
|
-
#assertConfigFresh() {
|
|
249
|
-
if (!this.#configChanged())
|
|
250
|
-
return;
|
|
251
|
-
throw new ConfigError(`${CONFIG_FILENAME} changed on disk after this ui-debugger-mcp server started, so a run now ` +
|
|
252
|
-
'would still use the OLD settings (models, targets, urls are read once at boot). ' +
|
|
253
|
-
'Restart the MCP server to pick the new config up — in Claude Code, /mcp → reconnect ' +
|
|
254
|
-
'ui-debugger, or restart the session.');
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* The other half of the one-run gate: another *live* server process holding a
|
|
258
|
-
* run on this project. The manager only sees this process's memory, so without
|
|
259
|
-
* this a second MCP client on the same cwd would launch a second run onto the
|
|
260
|
-
* same profile/emulator and overwrite the live breadcrumb (leaving the CLI
|
|
261
|
-
* pointing at the wrong pid). A dead or PID-recycled owner does not count — a
|
|
262
|
-
* crashed server's stale `running` file must never wedge the project shut.
|
|
263
|
-
*/
|
|
264
|
-
async #assertNoForeignRun(cwd) {
|
|
265
|
-
const foreign = await this.#state.foreignRun();
|
|
266
|
-
if (foreign === null)
|
|
267
|
-
return;
|
|
268
|
-
throw new SessionBusyError(`Another ui-debugger-mcp server (pid ${foreign.pid}) already has a debug session ` +
|
|
269
|
-
`('${foreign.sessionId}') active for '${cwd}'. One run per project at a time. ` +
|
|
270
|
-
`Read what it is doing with get_findings({session_id:'${foreign.sessionId}'}) — a run ` +
|
|
271
|
-
'that has already settled is just waiting to be closed by its own client. To take the ' +
|
|
272
|
-
"project over, run 'ui-debugger-mcp stop' in this directory, then start again.");
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Arm the wall-clock cap on what is LEFT of the run's budget: auto-end the run when
|
|
276
|
-
* it fires (replaces any prior timer). `0` — the launch outlived the whole cap —
|
|
277
|
-
* ends the run on the next tick rather than granting it a fresh one.
|
|
260
|
+
* Arm the wall-clock cap on what is LEFT of the run's budget: auto-end the run
|
|
261
|
+
* when it fires (replacing any prior timer). `0` — the launch outlived the whole
|
|
262
|
+
* cap — ends the run on the next tick, not with a fresh one.
|
|
278
263
|
*/
|
|
279
264
|
#armTimeout(ms) {
|
|
280
265
|
this.#clearTimeout();
|
|
@@ -293,7 +278,7 @@ export class DebugService {
|
|
|
293
278
|
/**
|
|
294
279
|
* Queue a mid-run instruction for the active run's driver. Fails loud
|
|
295
280
|
* ({@link SessionSettledError}) once the run has settled — the loop no longer
|
|
296
|
-
* drains the inbox, so an ack then would
|
|
281
|
+
* drains the inbox, so an ack then would drop the message.
|
|
297
282
|
*/
|
|
298
283
|
send({ session_id, message }) {
|
|
299
284
|
const session = this.#require(session_id);
|
|
@@ -307,8 +292,7 @@ export class DebugService {
|
|
|
307
292
|
/**
|
|
308
293
|
* Snapshot the run's findings — optionally long-poll (`wait`) and/or project a
|
|
309
294
|
* subset (`fields`). Serves the retained terminal snapshot once the run has
|
|
310
|
-
* auto-ended, so a timed-out run's
|
|
311
|
-
* long-poll returns at once: a settled run has nothing left to wait for).
|
|
295
|
+
* auto-ended, so a timed-out run's findings stay reachable.
|
|
312
296
|
*/
|
|
313
297
|
async getFindings({ session_id, wait, fields, }) {
|
|
314
298
|
let session;
|
|
@@ -318,8 +302,7 @@ export class DebugService {
|
|
|
318
302
|
catch (error) {
|
|
319
303
|
// Our own memory has no such run — but another live server on this project
|
|
320
304
|
// might, and `start_debug` has already named that session to this caller.
|
|
321
|
-
// Answering "no such session" there is a contradiction
|
|
322
|
-
// caller into a retry loop; serve what that run has flushed instead.
|
|
305
|
+
// Answering "no such session" there is a contradiction; serve what it flushed.
|
|
323
306
|
const foreign = await this.#foreignSnapshot(session_id);
|
|
324
307
|
if (foreign)
|
|
325
308
|
return fields ? projectFindings(foreign, fields) : foreign;
|
|
@@ -328,9 +311,8 @@ export class DebugService {
|
|
|
328
311
|
return fields ? session.snapshot(fields, wait) : session.snapshot(undefined, wait);
|
|
329
312
|
}
|
|
330
313
|
/**
|
|
331
|
-
* A foreign run's findings as last flushed to disk, or `null` if this id names
|
|
332
|
-
*
|
|
333
|
-
* nothing to long-poll — the owning server is the one advancing it.
|
|
314
|
+
* A foreign run's findings as last flushed to disk, or `null` if this id names no
|
|
315
|
+
* such run — we do not own that run, so there is nothing to long-poll.
|
|
334
316
|
*/
|
|
335
317
|
async #foreignSnapshot(session_id) {
|
|
336
318
|
const raw = await this.#state.foreignFindings(session_id);
|
|
@@ -341,72 +323,65 @@ export class DebugService {
|
|
|
341
323
|
}
|
|
342
324
|
/** List configured targets (the whole catalog, or one when named) plus resolved models/workspace. */
|
|
343
325
|
describe({ target }) {
|
|
344
|
-
const
|
|
345
|
-
const selected = target === undefined ? entries : entries.filter(([name]) => name === target);
|
|
346
|
-
if (target !== undefined && selected.length === 0) {
|
|
347
|
-
throw new TargetNotFoundError(`target '${target}' not found in config.targets`);
|
|
348
|
-
}
|
|
326
|
+
const targets = selectTargets(this.#config.targets, target, this.#platform);
|
|
349
327
|
const session = this.#currentRun();
|
|
350
328
|
return {
|
|
351
|
-
targets
|
|
329
|
+
targets,
|
|
352
330
|
models: this.#config.models,
|
|
353
|
-
// The RESOLVED per-project root, not the raw config string
|
|
354
|
-
// this to the relative evidence paths it gets back, and `./tmp/ui-debugger-mcp`
|
|
355
|
-
// would send it looking one directory short of where anything lands.
|
|
331
|
+
// The RESOLVED per-project root, not the raw config string (a directory short).
|
|
356
332
|
workspace: workspacePaths(this.#cwd, this.#config.workspace).root,
|
|
357
333
|
...(session && { session }),
|
|
358
334
|
};
|
|
359
335
|
}
|
|
360
336
|
/**
|
|
361
337
|
* The run this server holds for the project — the active one, or the retained
|
|
362
|
-
* snapshot of the last run that auto-ended (both
|
|
363
|
-
*
|
|
338
|
+
* snapshot of the last run that auto-ended (both readable, both `end_session`-able
|
|
339
|
+
* by their id). `undefined` when there is none.
|
|
364
340
|
*
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
*
|
|
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.
|
|
341
|
+
* The in-band answer to a lost `session_id`: without it a compacted caller could
|
|
342
|
+
* neither read the run nor close it, and the only recovery left was the out-of-band
|
|
343
|
+
* CLI. A start still in flight is not reported — it has no id yet.
|
|
370
344
|
*/
|
|
371
345
|
#currentRun() {
|
|
372
|
-
const session = this.#manager.has(this.#cwd)
|
|
346
|
+
const session = this.#manager.has(this.#cwd)
|
|
347
|
+
? this.#manager.get(this.#cwd)
|
|
348
|
+
: this.#retained.peek();
|
|
373
349
|
if (session === undefined)
|
|
374
350
|
return undefined;
|
|
375
351
|
return { id: session.id, status: session.status, goal: session.story };
|
|
376
352
|
}
|
|
377
353
|
/**
|
|
378
354
|
* End the active run: abort the loop, close the adapter, free the profile lock.
|
|
379
|
-
* Ending a run that already auto-ended
|
|
380
|
-
*
|
|
381
|
-
* either way and stays the one explicit forget.
|
|
355
|
+
* Ending a run that already auto-ended is not an error — it just forgets the
|
|
356
|
+
* retained snapshot, so `end_session` stays the one explicit forget.
|
|
382
357
|
*/
|
|
383
358
|
async end({ session_id }) {
|
|
384
359
|
if (this.#forgetRetained(session_id))
|
|
385
360
|
return { ok: true, session_id };
|
|
386
361
|
this.#require(session_id);
|
|
387
362
|
this.#clearTimeout();
|
|
388
|
-
// Clear the breadcrumb even when the close throws: the manager frees the slot
|
|
389
|
-
// before closing, so a stale `running` state.json would make a later CLI
|
|
390
|
-
// `stop` SIGTERM a healthy server. The close error still propagates.
|
|
391
363
|
try {
|
|
392
364
|
await this.#manager.end(this.#cwd);
|
|
393
365
|
}
|
|
394
366
|
finally {
|
|
395
|
-
|
|
367
|
+
// Clear the breadcrumb even when the close throws: the manager frees the slot
|
|
368
|
+
// before closing, so a stale `running` state.json would make a later CLI
|
|
369
|
+
// `stop` SIGTERM a healthy server. The close error still propagates. Scoped
|
|
370
|
+
// to `session_id` — `#require` verified it — so a successor that records
|
|
371
|
+
// itself while this teardown is in flight is untouched.
|
|
372
|
+
await this.#state.clear(session_id);
|
|
396
373
|
}
|
|
397
374
|
return { ok: true, session_id };
|
|
398
375
|
}
|
|
399
376
|
/**
|
|
400
377
|
* End whatever run is active for this cwd, if any — the graceful-shutdown path
|
|
401
|
-
* for a SIGTERM/SIGINT, a CLI `stop`, or the wall-clock timeout firing.
|
|
402
|
-
* when nothing is running.
|
|
378
|
+
* for a SIGTERM/SIGINT, a CLI `stop`, or the wall-clock timeout firing.
|
|
403
379
|
*/
|
|
404
380
|
async endActive() {
|
|
405
381
|
this.#clearTimeout();
|
|
406
382
|
// A start still in flight owns no manager slot yet, so the check below would
|
|
407
383
|
// sail straight past a Chrome that is mid-launch: cancel it and WAIT for its
|
|
408
|
-
// teardown, or the process exits with a browser
|
|
409
|
-
// and every later run fails with "Chrome profile ... is locked".
|
|
384
|
+
// teardown, or the process exits with a browser on the profile lock.
|
|
410
385
|
const starting = this.#starting;
|
|
411
386
|
if (starting !== undefined) {
|
|
412
387
|
starting.controller.abort();
|
|
@@ -416,45 +391,36 @@ export class DebugService {
|
|
|
416
391
|
return;
|
|
417
392
|
// Nobody asked for this end, so nobody has read the results yet: retain the
|
|
418
393
|
// session (settled + closed) so `get_findings` still serves them. Captured
|
|
419
|
-
// before the close, so
|
|
420
|
-
|
|
421
|
-
|
|
394
|
+
// before the close, so a failing teardown leaves them reachable anyway.
|
|
395
|
+
const ending = this.#manager.get(this.#cwd);
|
|
396
|
+
this.#retained.retain(ending);
|
|
397
|
+
// Same contract as `end()`: the breadcrumb clears even when the close throws —
|
|
398
|
+
// scoped to the run being ENDED, never a successor's.
|
|
422
399
|
try {
|
|
423
400
|
await this.#manager.end(this.#cwd);
|
|
424
401
|
}
|
|
425
402
|
finally {
|
|
426
|
-
await this.#state.clear();
|
|
403
|
+
await this.#state.clear(ending.id);
|
|
427
404
|
}
|
|
428
405
|
}
|
|
429
406
|
/**
|
|
430
407
|
* Resolve the session a read names: the active run, or — once the manager is
|
|
431
|
-
* empty — the retained snapshot of the last auto-ended run
|
|
432
|
-
* partial findings stay readable by their id until `end_session` or the next
|
|
433
|
-
* `start_debug`. A different id still fails loud.
|
|
408
|
+
* empty — the retained snapshot of the last auto-ended run. A different id fails loud.
|
|
434
409
|
*/
|
|
435
410
|
#requireReadable(session_id) {
|
|
436
|
-
|
|
437
|
-
if (retained === undefined || this.#manager.has(this.#cwd)) {
|
|
411
|
+
if (this.#manager.has(this.#cwd) || this.#retained.peek() === undefined) {
|
|
438
412
|
return this.#require(session_id);
|
|
439
413
|
}
|
|
440
|
-
|
|
441
|
-
throw new SessionNotFoundError(`No active debug session '${session_id}' for '${this.#cwd}' (the last run '${retained.id}' ` +
|
|
442
|
-
'has ended; its findings are still readable under that id).');
|
|
443
|
-
}
|
|
444
|
-
return retained;
|
|
414
|
+
return this.#retained.requireRetained(session_id, this.#cwd);
|
|
445
415
|
}
|
|
446
416
|
/**
|
|
447
|
-
* Forget the retained snapshot when the caller's `end_session` names it — the
|
|
448
|
-
*
|
|
449
|
-
* the id was the retained one (and it is now forgotten).
|
|
417
|
+
* Forget the retained snapshot when the caller's `end_session` names it — the run
|
|
418
|
+
* is already torn down. Returns whether the id was the retained one.
|
|
450
419
|
*/
|
|
451
420
|
#forgetRetained(session_id) {
|
|
452
421
|
if (this.#manager.has(this.#cwd))
|
|
453
422
|
return false;
|
|
454
|
-
|
|
455
|
-
return false;
|
|
456
|
-
this.#retained = undefined;
|
|
457
|
-
return true;
|
|
423
|
+
return this.#retained.forget(session_id);
|
|
458
424
|
}
|
|
459
425
|
/** Resolve the active session for this cwd, asserting its id matches the caller's. */
|
|
460
426
|
#require(session_id) {
|
|
@@ -465,37 +431,4 @@ export class DebugService {
|
|
|
465
431
|
return session;
|
|
466
432
|
}
|
|
467
433
|
}
|
|
468
|
-
/** Whether a target is in attach mode (connects to a running instance, never start/stop). */
|
|
469
|
-
function isAttach(target) {
|
|
470
|
-
if (target.adapter === 'browser')
|
|
471
|
-
return target.cdpUrl != null;
|
|
472
|
-
if (target.adapter === 'android')
|
|
473
|
-
return target.adbSerial != null;
|
|
474
|
-
return false;
|
|
475
|
-
}
|
|
476
|
-
/** Project one configured target onto its public {@link TargetInfo} (no secrets). */
|
|
477
|
-
function describeTarget(name, target) {
|
|
478
|
-
const base = {
|
|
479
|
-
name,
|
|
480
|
-
adapter: target.adapter,
|
|
481
|
-
mode: isAttach(target) ? 'attach' : 'managed',
|
|
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 }),
|
|
487
|
-
};
|
|
488
|
-
if (target.adapter === 'browser') {
|
|
489
|
-
// Persona NAMES are the discoverable half — a caller can pick a valid `as`
|
|
490
|
-
// without opening the config file, and never sees the values.
|
|
491
|
-
const personas = Object.keys(target.auth ?? {});
|
|
492
|
-
return {
|
|
493
|
-
...base,
|
|
494
|
-
url: target.url,
|
|
495
|
-
headless: target.headless,
|
|
496
|
-
...(personas.length > 0 && { personas }),
|
|
497
|
-
};
|
|
498
|
-
}
|
|
499
|
-
return base;
|
|
500
|
-
}
|
|
501
434
|
//# sourceMappingURL=debug-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-service.js","sourceRoot":"","sources":["../../src/services/debug-service.ts"],"names":[],"mapp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AC;YAAE,OAAO,KAAK,CAAC;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED,sFAAsF;IACtF,QAAQ,CAAC,UAAkB;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,OAAO,CAAC,EAAE,KAAK,UAAU,EAAE,CAAC;YAC9B,MAAM,IAAI,oBAAoB,CAC5B,4BAA4B,UAAU,UAAU,IAAI,CAAC,IAAI,yBAAyB,OAAO,CAAC,EAAE,KAAK,CAClG,CAAC;QACJ,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
|
package/dist/services/login.d.ts
CHANGED
|
@@ -63,8 +63,13 @@ export interface LoginOptions extends ResolvedAuth {
|
|
|
63
63
|
loginUrl: string;
|
|
64
64
|
/** The run's remaining wall-clock budget (ms); only ever shortens the login's waits. */
|
|
65
65
|
timeoutMs?: number;
|
|
66
|
-
/**
|
|
67
|
-
|
|
66
|
+
/**
|
|
67
|
+
* Breadcrumb sink (`logs/agent.log`). The caller's sink is already secret-redacting.
|
|
68
|
+
* MAY return a promise (an awaited flush): both breadcrumbs are `await`ed, so when
|
|
69
|
+
* `performLogin` resolves — and with it the run's `open()` — the login's trail is
|
|
70
|
+
* already durable on disk, not still in flight behind a fire-and-forget write.
|
|
71
|
+
*/
|
|
72
|
+
log?: (line: string) => unknown;
|
|
68
73
|
}
|
|
69
74
|
/**
|
|
70
75
|
* Sign in as `persona`, returning the {@link Step}s to splice onto the run's trail.
|