@mearl/plugin-qoder 3.1.10 → 3.1.12-beta.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.
- package/dist/agent.js +2 -0
- package/dist/capability/bundle.json +2 -2
- package/dist/capability/runtime.cjs +16 -1
- package/package.json +5 -5
package/dist/agent.js
CHANGED
|
@@ -537,6 +537,7 @@ export class QoderAgentProvider {
|
|
|
537
537
|
const child = spawn(launch.command, launch.args, {
|
|
538
538
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
539
539
|
windowsHide: true,
|
|
540
|
+
windowsVerbatimArguments: launch.windowsVerbatimArguments,
|
|
540
541
|
env: createAgentChildEnv(),
|
|
541
542
|
});
|
|
542
543
|
this.process = child;
|
|
@@ -888,6 +889,7 @@ export class QoderAgentProvider {
|
|
|
888
889
|
cwd,
|
|
889
890
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
890
891
|
windowsHide: true,
|
|
892
|
+
windowsVerbatimArguments: launch.windowsVerbatimArguments,
|
|
891
893
|
env: createAgentChildEnv(),
|
|
892
894
|
});
|
|
893
895
|
let stdout = '';
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
},
|
|
8
8
|
"resources": {
|
|
9
9
|
"runtime.cjs": {
|
|
10
|
-
"sha256": "
|
|
11
|
-
"byteLength":
|
|
10
|
+
"sha256": "67c8343953c05ebf2d8bb570df9b9b53f8375904b065a5430cb8b9ac8fdbdcf6",
|
|
11
|
+
"byteLength": 1105416
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"contributions": {
|
|
@@ -25080,9 +25080,18 @@ function versionManagerExecutableCandidates(home, names, options = {}) {
|
|
|
25080
25080
|
}
|
|
25081
25081
|
function resolveSpawnCommand(executable, args, platform = process.platform, commandInterpreter = process.env.ComSpec) {
|
|
25082
25082
|
if (platform === "win32" && /\.(?:cmd|bat)$/i.test(executable)) {
|
|
25083
|
+
const metacharacters = /([()\][%!^`"<>&|;, \t*?])/g;
|
|
25084
|
+
const escape = (value) => value.replace(metacharacters, "^$1");
|
|
25085
|
+
const shim = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i.test(executable);
|
|
25086
|
+
const escapedArgs = args.map((arg) => {
|
|
25087
|
+
const quoted = `"${arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"').replace(/\\+$/, "$&$&")}"`;
|
|
25088
|
+
return shim ? escape(escape(quoted)) : escape(quoted);
|
|
25089
|
+
});
|
|
25090
|
+
const command = [escape(import_node_path2.default.win32.normalize(executable)), ...escapedArgs].join(" ");
|
|
25083
25091
|
return {
|
|
25084
25092
|
command: commandInterpreter || "cmd.exe",
|
|
25085
|
-
args: ["/d", "/s", "/c",
|
|
25093
|
+
args: ["/d", "/s", "/c", `"${command}"`],
|
|
25094
|
+
windowsVerbatimArguments: true
|
|
25086
25095
|
};
|
|
25087
25096
|
}
|
|
25088
25097
|
return { command: executable, args };
|
|
@@ -25255,6 +25264,7 @@ function probeAgentExecutable(executable, options) {
|
|
|
25255
25264
|
const child = (0, import_node_child_process.spawn)(launch.command, launch.args, {
|
|
25256
25265
|
stdio: ["ignore", "ignore", "pipe"],
|
|
25257
25266
|
windowsHide: true,
|
|
25267
|
+
windowsVerbatimArguments: launch.windowsVerbatimArguments,
|
|
25258
25268
|
env: prependNodePath()
|
|
25259
25269
|
});
|
|
25260
25270
|
const finish = (error62) => {
|
|
@@ -25818,6 +25828,7 @@ ${message}` : message;
|
|
|
25818
25828
|
const child = (0, import_node_child_process2.spawn)(launch.command, launch.args, {
|
|
25819
25829
|
stdio: ["pipe", "pipe", "pipe"],
|
|
25820
25830
|
windowsHide: true,
|
|
25831
|
+
windowsVerbatimArguments: launch.windowsVerbatimArguments,
|
|
25821
25832
|
env: prependNodePath()
|
|
25822
25833
|
});
|
|
25823
25834
|
this.process = child;
|
|
@@ -26171,6 +26182,7 @@ ${message}` : message;
|
|
|
26171
26182
|
cwd,
|
|
26172
26183
|
stdio: ["ignore", "pipe", "pipe"],
|
|
26173
26184
|
windowsHide: true,
|
|
26185
|
+
windowsVerbatimArguments: launch.windowsVerbatimArguments,
|
|
26174
26186
|
env: prependNodePath()
|
|
26175
26187
|
});
|
|
26176
26188
|
let stdout = "";
|
|
@@ -26221,6 +26233,7 @@ var REQUEST_BUFFER_MAX_FIELD_BYTES = 8 * 1024 * 1024;
|
|
|
26221
26233
|
var textEncoder = new TextEncoder();
|
|
26222
26234
|
|
|
26223
26235
|
// ../browser-core/dist/proxyPermissions.js
|
|
26236
|
+
var DOMAIN_PERMISSION_ACTION_TIMEOUT_MS = 1e5;
|
|
26224
26237
|
var ALLOWED_ORIGINS = ["*://localhost/*", "*://127.0.0.1/*"];
|
|
26225
26238
|
var ALLOWED_ORIGINS_LIST = [...ALLOWED_ORIGINS];
|
|
26226
26239
|
|
|
@@ -26971,6 +26984,8 @@ function resolveObservedActionTimeoutSec(data) {
|
|
|
26971
26984
|
return Math.max(20, Math.ceil(totalMs / 1e3));
|
|
26972
26985
|
}
|
|
26973
26986
|
function resolveActionTimeoutSec(action, data, fallback = 15) {
|
|
26987
|
+
if (action === "request_permission")
|
|
26988
|
+
return Math.max(fallback, DOMAIN_PERMISSION_ACTION_TIMEOUT_MS / 1e3);
|
|
26974
26989
|
if (action === "send_request") {
|
|
26975
26990
|
const transferTimeoutMs = data.bodyFile !== void 0 || Array.isArray(data.files) && data.files.length > 0 ? SEND_REQUEST_FILE_TRANSFER_TIMEOUT_MS : 0;
|
|
26976
26991
|
return Math.max(fallback, Math.ceil(((data.timeout ?? 3e4) + transferTimeoutMs + 5e3) / 1e3));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mearl/plugin-qoder",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12-beta.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.1.
|
|
31
|
-
"@mearl/
|
|
32
|
-
"@mearl/
|
|
33
|
-
"@mearl/client": "3.1.
|
|
30
|
+
"@mearl/agent-runtime": "3.1.12-beta.0",
|
|
31
|
+
"@mearl/browser-core": "3.1.12-beta.0",
|
|
32
|
+
"@mearl/cloud-connector": "3.1.12-beta.0",
|
|
33
|
+
"@mearl/client": "3.1.12-beta.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"typescript": "^5.8.3",
|