run-spaceapp 0.1.13 → 0.1.14
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/package.json +2 -2
- package/src/cli.mjs +21 -0
- package/src/index.mjs +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "run-spaceapp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Cross-platform Docker launcher for the SpaceApp self-hosted agent workspace",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"provenance": true
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "f6956f38649503f6a9dd5c232d3d51d7bf2fa258"
|
|
50
50
|
}
|
package/src/cli.mjs
CHANGED
|
@@ -411,6 +411,27 @@ async function installCommand(args, {
|
|
|
411
411
|
);
|
|
412
412
|
return rotateCode;
|
|
413
413
|
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (profile === "light") {
|
|
417
|
+
const removeBrowserCode = await executeWithDockerDiagnostics(
|
|
418
|
+
execute,
|
|
419
|
+
composeCommand("removeBrowser", root, {
|
|
420
|
+
profile: "standard",
|
|
421
|
+
stateRoot: stagedStateRoot
|
|
422
|
+
}),
|
|
423
|
+
{ stdin, stdout, stderr },
|
|
424
|
+
{ platform, stderr }
|
|
425
|
+
);
|
|
426
|
+
if (removeBrowserCode !== 0) {
|
|
427
|
+
stderr.write(
|
|
428
|
+
"SpaceApp is ready, but the managed browser container could not be removed for the light profile.\n"
|
|
429
|
+
);
|
|
430
|
+
return removeBrowserCode;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
if (setupToken) {
|
|
414
435
|
try {
|
|
415
436
|
await persistSetupToken(root, setupToken);
|
|
416
437
|
} catch {
|
package/src/index.mjs
CHANGED
|
@@ -413,6 +413,7 @@ export function composeCommand(action, root, options = {}) {
|
|
|
413
413
|
"scripts/rotate-owner-setup-token.mjs",
|
|
414
414
|
"--stdin"
|
|
415
415
|
],
|
|
416
|
+
removeBrowser: ["rm", "--stop", "--force", "spaceapp-browser"],
|
|
416
417
|
purge: ["down", "--volumes", "--remove-orphans"]
|
|
417
418
|
};
|
|
418
419
|
let selected = actions[action];
|