run-spaceapp 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  Cross-platform Docker launcher for SpaceApp.
4
4
 
5
- Linux and macOS:
5
+ Linux:
6
+
7
+ ```bash
8
+ sudo npm install -g run-spaceapp && spaceapp install
9
+ ```
10
+
11
+ macOS:
6
12
 
7
13
  ```bash
8
14
  npm install -g run-spaceapp && spaceapp install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "run-spaceapp",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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/index.mjs CHANGED
@@ -22,7 +22,8 @@ import {
22
22
  const CONFIG_SCHEMA_VERSION = 2;
23
23
  const AUTO_LIGHT_MEMORY_THRESHOLD_BYTES = 12 * 1024 ** 3;
24
24
  const MIN_INSTALL_CPU_COUNT = 4;
25
- const MIN_INSTALL_MEMORY_BYTES = 8 * 1024 ** 3;
25
+ const MIN_INSTALL_MEMORY_BYTES = 8_000_000_000;
26
+ const MIN_INSTALL_MEMORY_LABEL = "8 GB";
26
27
  const MIN_INSTALL_FREE_DISK_BYTES = 15 * 1024 ** 3;
27
28
  const PROFILE_RUNTIME_SETTINGS = Object.freeze({
28
29
  light: Object.freeze({
@@ -129,7 +130,7 @@ export function installResourceChecks(resources) {
129
130
  {
130
131
  name: "Memory",
131
132
  ok: totalMemoryBytes >= MIN_INSTALL_MEMORY_BYTES,
132
- detail: `${formatGibibytes(totalMemoryBytes)} GB available; ${formatGibibytes(MIN_INSTALL_MEMORY_BYTES)} GB required`
133
+ detail: `${formatGibibytes(totalMemoryBytes)} GB available; ${MIN_INSTALL_MEMORY_LABEL} required`
133
134
  },
134
135
  {
135
136
  name: "Free disk",