@bigduu/bamboo-agent 2026.11.22 → 2026.11.56
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/bamboo-sidecars-v3.json +16 -16
- package/browser-runtime/host.cjs +24 -21
- package/package.json +1 -1
package/bamboo-sidecars-v3.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 3,
|
|
3
|
-
"version": "2026.11.
|
|
4
|
-
"sourceRevision": "
|
|
3
|
+
"version": "2026.11.56",
|
|
4
|
+
"sourceRevision": "4ba5fc0094b18ac5373582c88274245182508179",
|
|
5
5
|
"artifacts": [
|
|
6
6
|
{
|
|
7
7
|
"target": "aarch64-apple-darwin",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"embeddedFrontend": true,
|
|
10
10
|
"format": "raw",
|
|
11
11
|
"assetName": "bamboo-aarch64-apple-darwin",
|
|
12
|
-
"sha256": "
|
|
13
|
-
"sizeBytes":
|
|
12
|
+
"sha256": "6b66774f634d18eaecd86256d981103b3a87773debdf3fcef971e059853c5a0b",
|
|
13
|
+
"sizeBytes": 283656368
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"target": "aarch64-pc-windows-msvc",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"embeddedFrontend": true,
|
|
19
19
|
"format": "raw",
|
|
20
20
|
"assetName": "bamboo-aarch64-pc-windows-msvc.exe",
|
|
21
|
-
"sha256": "
|
|
22
|
-
"sizeBytes":
|
|
21
|
+
"sha256": "d86f502637a879b6ad07dabe1251a0945ad79e89f7e71644112fa1bedfd3c36b",
|
|
22
|
+
"sizeBytes": 230084096
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"target": "aarch64-unknown-linux-gnu",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"embeddedFrontend": true,
|
|
28
28
|
"format": "raw",
|
|
29
29
|
"assetName": "bamboo-aarch64-unknown-linux-gnu",
|
|
30
|
-
"sha256": "
|
|
31
|
-
"sizeBytes":
|
|
30
|
+
"sha256": "e7cb9d377d662962c9a090407ad8df3423581cd39419bddcb887b3f689b9d16d",
|
|
31
|
+
"sizeBytes": 310818696
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"target": "x86_64-pc-windows-msvc",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"embeddedFrontend": true,
|
|
37
37
|
"format": "raw",
|
|
38
38
|
"assetName": "bamboo-x86_64-pc-windows-msvc.exe",
|
|
39
|
-
"sha256": "
|
|
40
|
-
"sizeBytes":
|
|
39
|
+
"sha256": "b9834b72b91dfd5ecdd88df71ce97d752248042b79a1b3df34c24e2ff5be3d3f",
|
|
40
|
+
"sizeBytes": 278475264
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"target": "x86_64-unknown-linux-gnu",
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"embeddedFrontend": true,
|
|
46
46
|
"format": "raw",
|
|
47
47
|
"assetName": "bamboo-x86_64-unknown-linux-gnu",
|
|
48
|
-
"sha256": "
|
|
49
|
-
"sizeBytes":
|
|
48
|
+
"sha256": "ffc1802c1495b47e94856b4d946b57c9bdc7f3f2eaa772b0212464a6883771ae",
|
|
49
|
+
"sizeBytes": 324776216
|
|
50
50
|
}
|
|
51
51
|
],
|
|
52
52
|
"browserHost": {
|
|
53
53
|
"assetName": "bamboo-browser-host-v1.tar.gz",
|
|
54
|
-
"sha256": "
|
|
55
|
-
"sizeBytes":
|
|
54
|
+
"sha256": "cd3764b9d893bcf5322105a198360bca16d38ea0bcb1dd274f53299795638f3b",
|
|
55
|
+
"sizeBytes": 47381,
|
|
56
56
|
"files": [
|
|
57
57
|
{
|
|
58
58
|
"path": "browser-runtime/host.cjs",
|
|
59
|
-
"sha256": "
|
|
60
|
-
"sizeBytes":
|
|
59
|
+
"sha256": "acab2f270c6fe7dd369db9ac532031d39d2c8607c76e131f197b0f1a1d2e075d",
|
|
60
|
+
"sizeBytes": 196399
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"path": "browser-runtime/package-lock.json",
|
package/browser-runtime/host.cjs
CHANGED
|
@@ -584,6 +584,20 @@ function createNativeRootTracker(spawns, expectedProfile, policy = {}) {
|
|
|
584
584
|
|
|
585
585
|
const MAX_SNAPSHOT_CHARS = 80_000;
|
|
586
586
|
const MAX_HTML_CHARS = 100_000;
|
|
587
|
+
|
|
588
|
+
function boundedUnicodeText(value, maximum) {
|
|
589
|
+
let end = Math.min(value.length, maximum);
|
|
590
|
+
if (end < value.length) {
|
|
591
|
+
const before = value.charCodeAt(end - 1);
|
|
592
|
+
const after = value.charCodeAt(end);
|
|
593
|
+
// Leave the whole character out when it crosses the UTF-16 limit.
|
|
594
|
+
if (before >= 0xD800 && before <= 0xDBFF && after >= 0xDC00 && after <= 0xDFFF) {
|
|
595
|
+
end -= 1;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
return { text: value.slice(0, end).toWellFormed(), truncated: end < value.length };
|
|
599
|
+
}
|
|
600
|
+
|
|
587
601
|
const MAX_TABS = 8;
|
|
588
602
|
// Rust retires this host after 30 seconds. Leave time for state() and stdio.
|
|
589
603
|
const POINTER_ACTION_BUDGET_MS = 22_000;
|
|
@@ -1396,18 +1410,6 @@ function createChatScope({ id, generation, profileMode, context, downloadDir,
|
|
|
1396
1410
|
return value.length > maximum ? value.slice(0, maximum) : value;
|
|
1397
1411
|
}
|
|
1398
1412
|
|
|
1399
|
-
function boundedDialogText(value) {
|
|
1400
|
-
let text = '';
|
|
1401
|
-
let consumed = 0;
|
|
1402
|
-
for (const character of value) {
|
|
1403
|
-
if (consumed + character.length > MAX_DIALOG_CHARS) break;
|
|
1404
|
-
const codePoint = character.codePointAt(0);
|
|
1405
|
-
text += codePoint >= 0xD800 && codePoint <= 0xDFFF ? '\uFFFD' : character;
|
|
1406
|
-
consumed += character.length;
|
|
1407
|
-
}
|
|
1408
|
-
return { text, truncated: consumed < value.length };
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
1413
|
function staleEpochError() {
|
|
1412
1414
|
const error = new Error('browser page changed; refresh state and retry');
|
|
1413
1415
|
error.code = 'stale_epoch';
|
|
@@ -1442,8 +1444,8 @@ function createChatScope({ id, generation, profileMode, context, downloadDir,
|
|
|
1442
1444
|
function dialogState() {
|
|
1443
1445
|
const tab = requireActiveTab();
|
|
1444
1446
|
const pending = pendingDialog;
|
|
1445
|
-
const message = pending &&
|
|
1446
|
-
const defaultValue = pending &&
|
|
1447
|
+
const message = pending && boundedUnicodeText(pending.message, MAX_DIALOG_CHARS);
|
|
1448
|
+
const defaultValue = pending && boundedUnicodeText(pending.defaultValue, MAX_DIALOG_CHARS);
|
|
1447
1449
|
return {
|
|
1448
1450
|
page_epoch: epoch,
|
|
1449
1451
|
active_tab_id: tab.id,
|
|
@@ -3561,14 +3563,15 @@ function createChatScope({ id, generation, profileMode, context, downloadDir,
|
|
|
3561
3563
|
}
|
|
3562
3564
|
return stableRead(async tab => {
|
|
3563
3565
|
const page = tab.page;
|
|
3564
|
-
const snapshot =
|
|
3565
|
-
|
|
3566
|
+
const snapshot = boundedUnicodeText(
|
|
3567
|
+
await page.ariaSnapshot({ mode: 'ai', depth: 12, timeout: 10_000 }), MAX_SNAPSHOT_CHARS);
|
|
3568
|
+
const html = boundedUnicodeText(await page.content(), MAX_HTML_CHARS);
|
|
3566
3569
|
return {
|
|
3567
3570
|
title: await page.title(),
|
|
3568
|
-
snapshot:
|
|
3569
|
-
html:
|
|
3570
|
-
snapshot_truncated: snapshot.
|
|
3571
|
-
html_truncated: html.
|
|
3571
|
+
snapshot: snapshot.text,
|
|
3572
|
+
html: html.text,
|
|
3573
|
+
snapshot_truncated: snapshot.truncated,
|
|
3574
|
+
html_truncated: html.truncated,
|
|
3572
3575
|
};
|
|
3573
3576
|
});
|
|
3574
3577
|
}
|
|
@@ -4326,7 +4329,7 @@ if (require.main === module) {
|
|
|
4326
4329
|
await closeHost().catch(() => {});
|
|
4327
4330
|
});
|
|
4328
4331
|
} else {
|
|
4329
|
-
module.exports = { installScriptBlobCapture, installDownloadLinkInspector,
|
|
4332
|
+
module.exports = { installScriptBlobCapture, installDownloadLinkInspector, boundedUnicodeText,
|
|
4330
4333
|
IMAGE_BYTES, QUOTA_BYTES, ACCOUNT_KEY, macSharedStoragePlan,
|
|
4331
4334
|
validateMacStorageObservation, inspectMacSharedStorage,
|
|
4332
4335
|
validateMacStorageResetObservation, inspectMacStorageForReset,
|