@mearl/client 2.22.2 → 2.22.3

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 CHANGED
@@ -221,7 +221,7 @@ stdout 在管道或重定向时默认输出紧凑 JSON,在交互终端默认
221
221
  需要同时读取全文时显式传 `includeBody:true`。省略正文时不返回 `postData` / `responseBody` 字段;
222
222
  未指定字段时默认返回正文。
223
223
 
224
- `send_request` 默认携带所选浏览器中匹配完整目标 URL 的未分区 Cookie,保留不同路径下的同名 Cookie;不额外拼入父站点的 host-only Cookie,也不猜测页面的 Cookie 分区。需要页面分区、页面签名或完整页面身份时,使用目标页面中的 `page_eval` 请求。
224
+ `send_request` 默认携带所选浏览器中匹配完整目标 URL 的普通 Cookie,以及目标 URL 第一方站点对应的 CHIPS Cookie。例如 `https://fbi.alibaba-inc.com/` 使用 `https://alibaba-inc.com` 分区,不依赖已打开页面。站点按协议和公共后缀列表(含私有后缀)确定;排除其他站点、其他协议、跨站祖先及不透明分区。保留不同路径下的同名 Cookie,不额外拼入父站点的 host-only Cookie。嵌入其他站点的第三方分区、页面签名或完整页面身份仍需使用目标页面中的 `page_eval` 请求。
225
225
  响应中的 `Set-Cookie` 会更新原浏览器,后续调用可以使用刷新后的登录态;`withCookies:false` 同时关闭自动携带与响应回写。扩展由 Chrome 处理响应 Cookie;CDP 的 Node 请求在返回前通过原页面的浏览器连接回写,支持 HttpOnly、默认路径、过期时间和删除。CDP 响应存在 `Set-Cookie` 时附带 `cookieSync: { updatedCount, rejectedCount, failedCount }`,不返回 Cookie 值;无法确定分区的 Partitioned 响应 Cookie 计入拒绝数。同步失败不撤销已完成的 HTTP 操作,应检查状态而非直接重发业务请求。MTop 普通请求及流式请求使用相同的响应刷新机制。
226
226
  扩展的临时凭据注入仅匹配原始完整请求 URL,重定向由 Chrome 按新 URL 选择 Cookie。CDP 的 Node 请求(含 MTop 流式请求)不自动跟随重定向,避免将原 URL 的 Cookie 或签名传到其他地址。
227
227
 
@@ -1 +1 @@
1
- export declare const PLUGIN_HOST_BUILD_ID = "e5c7f6cfb7a597a523293c0ea2929b4970aa9eb86e7aeb672f85a37c317bc258";
1
+ export declare const PLUGIN_HOST_BUILD_ID = "f5afa738e16d4788eabb1c905e798fb9df074c0b41234023d99b8faaf1c30070";
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/generate-plugin-host-build.mjs.
2
- export const PLUGIN_HOST_BUILD_ID = 'e5c7f6cfb7a597a523293c0ea2929b4970aa9eb86e7aeb672f85a37c317bc258';
2
+ export const PLUGIN_HOST_BUILD_ID = 'f5afa738e16d4788eabb1c905e798fb9df074c0b41234023d99b8faaf1c30070';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/client",
3
- "version": "2.22.2",
3
+ "version": "2.22.3",
4
4
  "description": "Unified Mearl SDK & CLI for local and remote browsers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -67,10 +67,10 @@
67
67
  "commander": "^15.0.0",
68
68
  "fastest-levenshtein": "^1.0.16",
69
69
  "ws": "^8.18.0",
70
- "@mearl/cloud-types": "2.22.2",
71
- "@mearl/provider": "2.22.2",
72
- "@mearl/agent-runtime": "2.22.2",
73
- "@mearl/daemon-core": "2.22.2"
70
+ "@mearl/cloud-types": "2.22.3",
71
+ "@mearl/provider": "2.22.3",
72
+ "@mearl/daemon-core": "2.22.3",
73
+ "@mearl/agent-runtime": "2.22.3"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/node": "^24.9.1",