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

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 +11 -5
  2. package/package.json +1 -1
package/integrations.mjs CHANGED
@@ -36,6 +36,12 @@ function getErrorMessage(error) {
36
36
  return error instanceof Error ? error.message : String(error);
37
37
  }
38
38
 
39
+ function getCommandErrorMessage(error) {
40
+ const stderr = typeof error?.stderr === 'string' ? error.stderr.trim() : '';
41
+ const stdout = typeof error?.stdout === 'string' ? error.stdout.trim() : '';
42
+ return stderr || stdout || getErrorMessage(error);
43
+ }
44
+
39
45
  function shellQuote(value) {
40
46
  return `'${String(value).replaceAll("'", "'\\''")}'`;
41
47
  }
@@ -102,10 +108,10 @@ export const INTEGRATIONS = {
102
108
  posix: 'https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh',
103
109
  },
104
110
  postInstall: [
105
- 'rtk init -g', // Claude Code
106
- 'rtk init -g --gemini', // Gemini CLI
107
- 'rtk init -g --codex', // Codex
108
- 'rtk init -g --agent cursor', // Cursor
111
+ 'rtk init -g --auto-patch', // Claude Code
112
+ 'rtk init -g --gemini --auto-patch', // Gemini CLI
113
+ 'rtk init -g --codex', // Codex (--auto-patch is not supported)
114
+ 'rtk init -g --agent cursor', // Cursor
109
115
  ],
110
116
  teams: [], // universal — every team benefits
111
117
  requiresAuth: false,
@@ -705,7 +711,7 @@ async function runUniversalInstaller(integration, key, { silent = false, home =
705
711
  });
706
712
  } catch (e) {
707
713
  failedPostInstalls.push(finalPostCmd);
708
- if (!silent) fmt.logWarn(`Post-install step failed: ${finalPostCmd} — ${getErrorMessage(e)}`);
714
+ if (!silent) fmt.logWarn(`Post-install step failed: ${finalPostCmd} — ${getCommandErrorMessage(e)}`);
709
715
  }
710
716
  }
711
717
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.70-beta.5",
3
+ "version": "0.1.70-beta.6",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {