@mearl/plugin-qoder 3.0.12 → 3.1.0

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.
@@ -7,8 +7,8 @@
7
7
  },
8
8
  "resources": {
9
9
  "runtime.cjs": {
10
- "sha256": "ff1922e7e1390cc44357212cb1b3de06ae9e4bdc837641ef39e554a1b469454c",
11
- "byteLength": 1103975
10
+ "sha256": "41e7f1bc5b6aea3e4df3653ab5d0be0efc7c2852a03dc49aea5b0931ef8fc38c",
11
+ "byteLength": 1104264
12
12
  }
13
13
  },
14
14
  "contributions": {
@@ -26905,7 +26905,6 @@ var EXTENSION_BROWSER_ACTIONS = {
26905
26905
  get_rules: true,
26906
26906
  get_capabilities: true,
26907
26907
  send_request: true,
26908
- browser_release: true,
26909
26908
  page_screenshot: true,
26910
26909
  tab_open: true,
26911
26910
  tab_close: true,
@@ -26936,7 +26935,9 @@ var EXTENSION_BROWSER_ACTIONS = {
26936
26935
  };
26937
26936
  var BROWSER_CAPABILITY_ACTIONS = {
26938
26937
  ...EXTENSION_BROWSER_ACTIONS,
26939
- page_download: true
26938
+ page_download: true,
26939
+ // Provider wire operation for releasing control while preserving its instance.
26940
+ browser_release: true
26940
26941
  };
26941
26942
 
26942
26943
  // ../browser-core/dist/agentChat.js
@@ -26969,6 +26970,8 @@ function resolveActionTimeoutSec(action, data, fallback = 15) {
26969
26970
  }
26970
26971
  if (action === "page_download")
26971
26972
  return Math.max(fallback, Math.ceil((Number(data.timeout ?? 3e4) + 1e4) / 1e3));
26973
+ if (action === "page_record" && data.operation === "stop")
26974
+ return Math.max(fallback, 60);
26972
26975
  if (action === "page_wait") {
26973
26976
  const waitMs = data.time ?? data.timeout ?? 1e4;
26974
26977
  return Math.max(fallback, Math.ceil((Number(waitMs) + 5e3) / 1e3));
@@ -26977,10 +26980,12 @@ function resolveActionTimeoutSec(action, data, fallback = 15) {
26977
26980
  return Math.max(fallback, 40);
26978
26981
  if (action === "set_cookie" && data.reload === true)
26979
26982
  return Math.max(fallback, 40);
26980
- if (action === "browser_launch")
26981
- return Math.max(fallback, 90);
26982
- if (action === "browser_close")
26983
- return Math.max(fallback, BROWSER_CLOSE_TIMEOUT_SEC);
26983
+ if (action === "browser_manage") {
26984
+ if (data.operation === "launch" || data.operation === "attach")
26985
+ return Math.max(fallback, 90);
26986
+ if (data.operation === "close" || data.operation === "detach")
26987
+ return Math.max(fallback, BROWSER_CLOSE_TIMEOUT_SEC);
26988
+ }
26984
26989
  if (action === "run_actions") {
26985
26990
  const actions = Array.isArray(data.actions) ? data.actions : [{}];
26986
26991
  const timeoutSec = actions.reduce((total, step) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/plugin-qoder",
3
- "version": "3.0.12",
3
+ "version": "3.1.0",
4
4
  "description": "Optional Qoder CLI agent and cloud connector capability for Mearl",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@agentclientprotocol/sdk": "^1.2.1",
30
- "@mearl/agent-runtime": "3.0.12",
31
- "@mearl/browser-core": "3.0.12",
32
- "@mearl/client": "3.0.12",
33
- "@mearl/cloud-connector": "3.0.12"
30
+ "@mearl/agent-runtime": "3.1.0",
31
+ "@mearl/cloud-connector": "3.1.0",
32
+ "@mearl/browser-core": "3.1.0",
33
+ "@mearl/client": "3.1.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "typescript": "^5.8.3",