@mearl/plugin-qoder 3.1.10 → 3.1.11

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 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": "7ca8e596cbede77c49b6c3f5dd86f47c31e8399d889bd9f5168979122be59d9a",
11
- "byteLength": 1104503
10
+ "sha256": "d452031f67ef3677ab022d17865a8666cc61aae6426a56ed4b3a840d3b67108f",
11
+ "byteLength": 1105256
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", executable, ...args]
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 = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/plugin-qoder",
3
- "version": "3.1.10",
3
+ "version": "3.1.11",
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.10",
31
- "@mearl/cloud-connector": "3.1.10",
32
- "@mearl/browser-core": "3.1.10",
33
- "@mearl/client": "3.1.10"
30
+ "@mearl/agent-runtime": "3.1.11",
31
+ "@mearl/browser-core": "3.1.11",
32
+ "@mearl/cloud-connector": "3.1.11",
33
+ "@mearl/client": "3.1.11"
34
34
  },
35
35
  "devDependencies": {
36
36
  "typescript": "^5.8.3",