@ours.network/install 1.0.1 → 1.1.0
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/install.sh +2 -2
- package/lib/orchestrate.mjs +3 -3
- package/package.json +2 -2
package/install.sh
CHANGED
|
@@ -40,13 +40,13 @@ PKG="${OURS_INSTALL_PKG:-@ours.network/install}"
|
|
|
40
40
|
NPM_BIN="${OURS_NPM:-npm}"
|
|
41
41
|
|
|
42
42
|
# --- 1) Node.js + npm check + friendly guidance ------------------------------------------------
|
|
43
|
-
# The installer needs Node.js ≥
|
|
43
|
+
# The installer needs Node.js ≥ 22 (and npm to fetch the command). If missing, don't fail
|
|
44
44
|
# cryptically: explain what Node is and how to get it for this OS, point at nodejs.org, and exit
|
|
45
45
|
# cleanly (0) so a piped run ends gracefully rather than with a scary non-zero error.
|
|
46
46
|
if ! command -v node >/dev/null 2>&1 || ! command -v "$NPM_BIN" >/dev/null 2>&1; then
|
|
47
47
|
os="$(uname -s 2>/dev/null || echo unknown)"
|
|
48
48
|
printf '\n'
|
|
49
|
-
say "ours needs Node.js (version
|
|
49
|
+
say "ours needs Node.js (version 22 or newer, which includes npm) — it isn't installed yet."
|
|
50
50
|
say "Node.js is a common, free runtime; here's how to get it:"
|
|
51
51
|
case "$os" in
|
|
52
52
|
Darwin)
|
package/lib/orchestrate.mjs
CHANGED
|
@@ -719,7 +719,7 @@ export async function askBroker(args, effects) {
|
|
|
719
719
|
* Pre-flight: the two disasters worth catching before anything is touched.
|
|
720
720
|
*
|
|
721
721
|
* Carried over from the v2 body deliberately. Native Windows and a Node older
|
|
722
|
-
* than
|
|
722
|
+
* than 22 are not "the install went badly", they are "this cannot work here",
|
|
723
723
|
* and finding that out after the daemon package is on disk helps nobody.
|
|
724
724
|
*
|
|
725
725
|
* NOT carried over: v2 also exited when no harness was found. Under v3 the
|
|
@@ -747,8 +747,8 @@ export function runPreflight(effects) {
|
|
|
747
747
|
}
|
|
748
748
|
effects.out(ok(`Platform: ${plat.label} (supported)`));
|
|
749
749
|
const version = String(effects.nodeVersion ?? '0');
|
|
750
|
-
if (Number.parseInt(version.split('.')[0], 10) <
|
|
751
|
-
effects.out(warn(`Node.js ${version} — ours needs
|
|
750
|
+
if (Number.parseInt(version.split('.')[0], 10) < 22) {
|
|
751
|
+
effects.out(warn(`Node.js ${version} — ours needs v22 or newer. Update Node and re-run.`));
|
|
752
752
|
return { ok: false, platform: plat, node: version };
|
|
753
753
|
}
|
|
754
754
|
effects.out(ok(`Node.js ${version}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ours.network/install",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The all-in-one ours.network installer: one shared daemon, MCP, cowork, Telegram, Fleet, harness plugins, Human identity, stopped Fleet starter, progress UI, and guided next steps.",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "packages/installer"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
28
|
+
"node": ">=22"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"test": "node --test"
|