openbot 0.2.11 → 0.2.12

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 +6 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -26,7 +26,7 @@ checkNodeVersion();
26
26
  program
27
27
  .name("openbot")
28
28
  .description("OpenBot CLI - Secure and easy configuration")
29
- .version("0.2.11");
29
+ .version("0.2.12");
30
30
  async function installPlugin(source, id, quiet = false) {
31
31
  try {
32
32
  const parsed = parsePluginInstallSource(source);
@@ -53,7 +53,11 @@ async function installAgent(source, id) {
53
53
  }
54
54
  }
55
55
  function shellEscape(arg) {
56
- return `'${arg.replace(/'/g, `'\\''`)}'`;
56
+ // Keep simple tokens readable; quote only when needed so command
57
+ // tokenization remains stable when passed through concurrently.
58
+ if (/^[A-Za-z0-9_/:=+.-]+$/.test(arg))
59
+ return arg;
60
+ return `"${arg.replace(/(["\\$`])/g, "\\$1")}"`;
57
61
  }
58
62
  program
59
63
  .command("configure")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openbot",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {