@foldspace_npm/harness 0.1.35 → 0.1.36
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/package.json +1 -1
- package/src/cdp-ownership.mjs +4 -0
package/package.json
CHANGED
package/src/cdp-ownership.mjs
CHANGED
|
@@ -162,8 +162,12 @@ async function openCdpSocket(webSocketDebuggerUrl) {
|
|
|
162
162
|
export async function inspectCdpUserDataDir(webSocketDebuggerUrl) {
|
|
163
163
|
const session = await openCdpSocket(webSocketDebuggerUrl);
|
|
164
164
|
try {
|
|
165
|
+
// background: true - a tab opened in front raises Chrome over whatever
|
|
166
|
+
// app the human is using, on every harness command (measured 2026-10-27:
|
|
167
|
+
// 3 of 3 in front, 0 in the background).
|
|
165
168
|
const { targetId } = await session.call("Target.createTarget", {
|
|
166
169
|
url: "chrome://version/",
|
|
170
|
+
background: true,
|
|
167
171
|
});
|
|
168
172
|
const attached = await session.call("Target.attachToTarget", {
|
|
169
173
|
targetId,
|