run-spaceapp 0.1.1 → 0.1.3

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/package.json +1 -1
  2. package/src/cli.mjs +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "run-spaceapp",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Cross-platform Docker launcher for the SpaceApp self-hosted agent workspace",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/cli.mjs CHANGED
@@ -216,7 +216,11 @@ async function installCommand(args, {
216
216
  stdout.write(`SpaceApp is running at ${url}\n`);
217
217
  stdout.write('Next: add CLI credentials with "spaceapp credentials set <provider>".\n');
218
218
  if (noOpen) return 0;
219
- return openBrowser(url, platform, execute, { stdin, stdout, stderr });
219
+ const openCode = await openBrowser(url, platform, execute, { stdin, stdout, stderr });
220
+ if (openCode !== 0) {
221
+ stderr.write(`Could not open SpaceApp automatically. Open ${url} manually.\n`);
222
+ }
223
+ return 0;
220
224
  }
221
225
 
222
226
  function parseInstallArgs(args) {