unbrowse 12.2.1-preview.0 → 12.2.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -296,7 +296,10 @@ function isEgressStep(v) {
296
296
  return !!v && typeof v === "object" && v.status === "egress_required";
297
297
  }
298
298
  function isEgressWaiting(v) {
299
- return !!v && typeof v === "object" && v.status === "waiting_for_client" && typeof v.egressId === "string";
299
+ if (!v || typeof v !== "object")
300
+ return false;
301
+ const o = v;
302
+ return typeof o.egressId === "string" && o.runId === undefined && o.status !== "egress_required";
300
303
  }
301
304
  async function sendEgress(send, req) {
302
305
  const body = req.body === undefined ? undefined : req.bodyEncoding === "base64" ? base64ToBytes(req.body) : req.body;
@@ -1442,7 +1445,7 @@ ${url.toString()}`);
1442
1445
 
1443
1446
  // src/cli.ts
1444
1447
  init_src();
1445
- var VERSION = "12.2.1-preview.0";
1448
+ var VERSION = "12.2.1";
1446
1449
  var DEFAULT_ORIGIN = "https://unbrowse.ai";
1447
1450
  var HELP = `unbrowse ${VERSION} — call websites as APIs through the Unbrowse API
1448
1451
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unbrowse",
3
- "version": "12.2.1-preview.0",
3
+ "version": "12.2.1",
4
4
  "mcpName": "io.github.unbrowse-ai/unbrowse",
5
5
  "description": "Call websites as APIs: a thin CLI over the Unbrowse API.",
6
6
  "license": "MIT",