browser-pilot-cli 0.3.0-rc.5 → 0.3.0-rc.6
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 +1 -1
- package/dist/cli.js +1 -1
- package/dist/daemon.js +5 -4
- package/docs/plans/v0.3.0-stabilization.md +6 -3
- package/docs/releases/v0.3.0-rc.6.md +24 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -182,7 +182,7 @@ A project can pin Browser Pilot locally and run the same CLI without a global
|
|
|
182
182
|
installation:
|
|
183
183
|
|
|
184
184
|
```bash
|
|
185
|
-
npm install --save-exact browser-pilot-cli@0.3.0-rc.
|
|
185
|
+
npm install --save-exact browser-pilot-cli@0.3.0-rc.6
|
|
186
186
|
npx --no-install browser-pilot tabs
|
|
187
187
|
```
|
|
188
188
|
|
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import { writeFileSync as writeFileSync2, readFileSync as readFileSync4, existsS
|
|
|
6
6
|
import { resolve as resolvePath } from "path";
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var BROWSER_PILOT_VERSION = "0.3.0-rc.
|
|
9
|
+
var BROWSER_PILOT_VERSION = "0.3.0-rc.6";
|
|
10
10
|
|
|
11
11
|
// src/protocol/errors.ts
|
|
12
12
|
var ERROR_CODES = [
|
package/dist/daemon.js
CHANGED
|
@@ -7769,9 +7769,9 @@ var MemoryControlledTargetRegistry = class {
|
|
|
7769
7769
|
(record) => record.state === "active" && record.principalId === context.principalId && record.workspaceId === context.workspaceId
|
|
7770
7770
|
).map(cloneRecord2);
|
|
7771
7771
|
}
|
|
7772
|
-
isManagedCdpTarget(browserInstanceId, cdpTargetId) {
|
|
7772
|
+
isManagedCdpTarget(browserInstanceId, cdpTargetId, browserConnectionGeneration) {
|
|
7773
7773
|
for (const record of this.records.values()) {
|
|
7774
|
-
if (record.
|
|
7774
|
+
if (record.browserInstanceId === browserInstanceId && record.cdpTargetId === cdpTargetId && record.browserConnectionGeneration === browserConnectionGeneration && record.origin !== "user_tab") return true;
|
|
7775
7775
|
}
|
|
7776
7776
|
return false;
|
|
7777
7777
|
}
|
|
@@ -10440,7 +10440,8 @@ var BrowserToolService = class {
|
|
|
10440
10440
|
profileContexts: this.profileContexts,
|
|
10441
10441
|
isExcludedTarget: (target) => this.registry.isManagedCdpTarget(
|
|
10442
10442
|
binding.instance.id,
|
|
10443
|
-
target.cdpTargetId
|
|
10443
|
+
target.cdpTargetId,
|
|
10444
|
+
binding.instance.connectionGeneration
|
|
10444
10445
|
)
|
|
10445
10446
|
}
|
|
10446
10447
|
);
|
|
@@ -14014,7 +14015,7 @@ var ManagedTargetJanitorClient = class {
|
|
|
14014
14015
|
};
|
|
14015
14016
|
|
|
14016
14017
|
// src/version.ts
|
|
14017
|
-
var BROWSER_PILOT_VERSION = "0.3.0-rc.
|
|
14018
|
+
var BROWSER_PILOT_VERSION = "0.3.0-rc.6";
|
|
14018
14019
|
|
|
14019
14020
|
// src/daemon.ts
|
|
14020
14021
|
var CLI_EXECUTABLE_PATH = publicExecutablePath(import.meta.url);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Browser Pilot v0.3.0 Stabilization Plan
|
|
2
2
|
|
|
3
3
|
Status: **In progress**
|
|
4
|
-
Candidate baseline: `v0.3.0-rc.
|
|
4
|
+
Candidate baseline: `v0.3.0-rc.5`; correction target: `v0.3.0-rc.6`, protocol `1.2`
|
|
5
5
|
|
|
6
6
|
## Goal
|
|
7
7
|
|
|
@@ -37,8 +37,11 @@ products depend on. No Agent-specific behavior enters Browser Pilot.
|
|
|
37
37
|
choices and a single authorization attempt.
|
|
38
38
|
- [x] Publish `v0.3.0-rc.4` with Broker-backed CLI browser status and verify
|
|
39
39
|
that passive discovery reports the live authorized connection.
|
|
40
|
-
- [
|
|
41
|
-
|
|
40
|
+
- [x] Publish `v0.3.0-rc.5` and verify text-targeted scrolling plus annotated
|
|
41
|
+
capture on GitHub. Managed cleanup preserved all user tabs but exposed a
|
|
42
|
+
transient closing-target inventory race.
|
|
43
|
+
- [ ] Publish `v0.3.0-rc.6` with generation-scoped managed-target tombstones and
|
|
44
|
+
rerun managed cleanup against the installed standalone release.
|
|
42
45
|
- [ ] Soak several real Agent tasks through the installed candidate.
|
|
43
46
|
- [ ] Tag `v0.3.0`, publish npm `latest`, and verify upgrade/rollback metadata.
|
|
44
47
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Browser Pilot 0.3.0-rc.6
|
|
2
|
+
|
|
3
|
+
This release candidate fixes the remaining managed-tab cleanup race found by
|
|
4
|
+
running RC.5 against a live multi-Profile Chrome browser.
|
|
5
|
+
|
|
6
|
+
- A managed target that Chrome has accepted for closure remains classified as
|
|
7
|
+
managed for the rest of that browser connection generation. If Chrome still
|
|
8
|
+
reports the physical target briefly before its asynchronous destroyed event,
|
|
9
|
+
Browser Pilot no longer reintroduces it as a transient available user tab.
|
|
10
|
+
- The tombstone is generation-scoped, so browser reconnection cannot exclude a
|
|
11
|
+
target from a later connection even if Chrome were to reuse an identifier.
|
|
12
|
+
- `bp close` and `bp close --all` therefore preserve accurate user-tab
|
|
13
|
+
inventory without implicitly acquiring a closing target.
|
|
14
|
+
|
|
15
|
+
The RC.5 soak otherwise passed its two real-site corrections: text-targeted
|
|
16
|
+
scrolling revealed the requested GitHub text with verified movement, and a
|
|
17
|
+
three-ref annotated GitHub screenshot succeeded under the site's restrictive
|
|
18
|
+
content security policy. All six eligible user tabs remained available and no
|
|
19
|
+
user tab was controlled after managed cleanup.
|
|
20
|
+
|
|
21
|
+
RC.6 keeps protocol 1.2 and the Agent-neutral CLI and stdio contracts unchanged.
|
|
22
|
+
Candidate gates passed with 277 Node tests, 109 isolated Playwright tests,
|
|
23
|
+
TypeScript type checking, all three npm distribution modes, 13 stdio
|
|
24
|
+
conformance checks, and 13 isolated Host integration checks.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-pilot-cli",
|
|
3
|
-
"version": "0.3.0-rc.
|
|
3
|
+
"version": "0.3.0-rc.6",
|
|
4
4
|
"description": "CLI tool to control your browser via Chrome DevTools Protocol",
|
|
5
5
|
"repository": "https://github.com/relixiaobo/browser-pilot",
|
|
6
6
|
"type": "module",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"docs/releases/v0.3.0-rc.3.md",
|
|
50
50
|
"docs/releases/v0.3.0-rc.4.md",
|
|
51
51
|
"docs/releases/v0.3.0-rc.5.md",
|
|
52
|
+
"docs/releases/v0.3.0-rc.6.md",
|
|
52
53
|
"README.md",
|
|
53
54
|
"LICENSE"
|
|
54
55
|
],
|