@ghl-ai/aw 0.1.70-beta.6 → 0.1.70-beta.7

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/integrations.mjs +14 -1
  2. package/package.json +1 -1
package/integrations.mjs CHANGED
@@ -46,6 +46,10 @@ function shellQuote(value) {
46
46
  return `'${String(value).replaceAll("'", "'\\''")}'`;
47
47
  }
48
48
 
49
+ function windowsShellQuote(value) {
50
+ return `"${String(value).replaceAll('"', '\\"')}"`;
51
+ }
52
+
49
53
  function installerEnv(home = HOME) {
50
54
  const pathEntries = [
51
55
  join(home, '.local', 'bin'),
@@ -65,6 +69,15 @@ function posixInstallerCommand(url, runner = 'bash') {
65
69
  return `bash -o pipefail -c ${shellQuote(`curl -fsSL ${shellQuote(url)} | ${runner}`)}`;
66
70
  }
67
71
 
72
+ function wslInstallerCommand(url, runner = 'sh') {
73
+ return `wsl -- bash -o pipefail -c ${windowsShellQuote(`curl -fsSL ${shellQuote(url)} | ${runner}`)}`;
74
+ }
75
+
76
+ export const __test__ = {
77
+ posixInstallerCommand,
78
+ wslInstallerCommand,
79
+ };
80
+
68
81
  // ────────────────────────────────────────────────────────────────────────────────
69
82
  // INTEGRATION REGISTRY
70
83
  // ────────────────────────────────────────────────────────────────────────────────
@@ -663,7 +676,7 @@ async function runUniversalInstaller(integration, key, { silent = false, home =
663
676
  }
664
677
 
665
678
  if (wslOk) {
666
- cmd = `wsl -- ${posixInstallerCommand(integration.scripts.posix, 'sh')}`;
679
+ cmd = wslInstallerCommand(integration.scripts.posix, 'sh');
667
680
  } else if (integration.npmPackage) {
668
681
  if (!silent) fmt.logWarn('WSL/bash not available — installing via npm instead');
669
682
  cmd = `npm install -g ${integration.npmPackage}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.70-beta.6",
3
+ "version": "0.1.70-beta.7",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {