@poe-platform/safe-bash 0.1.700 → 0.1.701

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.
@@ -27,6 +27,10 @@ export const captureBrowserSnapshotJSON = async (page, options) => {
27
27
  }
28
28
  };
29
29
  async function capture(page, options) {
30
+ // Native snapshot initializes every frame concurrently. Admit the tree first
31
+ // so oversized pages cannot exhaust the owned transport before classification.
32
+ if (page.frames().length > MAX_SNAPSHOT_FRAMES)
33
+ throw new Error("Browser snapshot frame limit exceeded");
30
34
  await page._snapshotForAI({ timeout: options.timeoutMs });
31
35
  options.signal.throwIfAborted();
32
36
  const root = page._connection.toImpl(page).mainFrame();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poe-platform/safe-bash",
3
- "version": "0.1.700",
3
+ "version": "0.1.701",
4
4
  "description": "Extensible virtual shell with pluggable filesystems and streaming commands",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -378,7 +378,7 @@
378
378
  "access": "public"
379
379
  },
380
380
  "dependencies": {
381
- "@poe-platform/safe-fs": "0.1.700",
381
+ "@poe-platform/safe-fs": "0.1.701",
382
382
  "pako": "3.0.1",
383
383
  "@types/node": "^25.2.2",
384
384
  "@noble/hashes": "2.4.0",