@nicotinetool/o7-cli 1.1.4 → 1.1.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.
- package/bin/o7 +1 -1
- package/bin/o7-setup +8 -5
- package/bin/o7-setup.js +8 -5
- package/bin/o7.js +1 -1
- package/installer/install.sh +7 -4
- package/package.json +1 -1
package/bin/o7
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync, readFileSync, writeFileSync, unlinkSync, mkdirSync } from '
|
|
|
4
4
|
import { join, dirname } from 'path';
|
|
5
5
|
import { homedir, hostname, platform, arch, release } from 'os';
|
|
6
6
|
|
|
7
|
-
const VERSION = '1.1.
|
|
7
|
+
const VERSION = '1.1.6';
|
|
8
8
|
const O7_ADMIN_URL = 'https://o7-os-admin-production.up.railway.app';
|
|
9
9
|
const MC_DIR = process.env.O7_MC_DIR || join(homedir(), 'Projects/unified-mc');
|
|
10
10
|
const STATE_DIR = join(homedir(), '.openclaw');
|
package/bin/o7-setup
CHANGED
|
@@ -5,7 +5,7 @@ import { join, dirname } from 'path';
|
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
6
6
|
import { homedir, platform, hostname, release } from 'os';
|
|
7
7
|
|
|
8
|
-
const VERSION = '1.1.
|
|
8
|
+
const VERSION = '1.1.6';
|
|
9
9
|
const O7_ADMIN_URL = 'https://o7-os-admin-production.up.railway.app';
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
const __dirname = dirname(__filename);
|
|
@@ -63,13 +63,16 @@ if (useWizard) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
if (!useWizard) {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
const { spawn: spawnProc } = await import('child_process');
|
|
67
|
+
const exitCode = await new Promise((resolve) => {
|
|
68
|
+
const child = spawnProc('bash', [installerPath, '--profile', profile], {
|
|
68
69
|
stdio: 'inherit',
|
|
69
70
|
env: { ...process.env },
|
|
70
|
-
timeout: 600000,
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
child.on('close', resolve);
|
|
73
|
+
child.on('error', () => resolve(1));
|
|
74
|
+
});
|
|
75
|
+
if (exitCode !== 0) {
|
|
73
76
|
console.error('\nInstallation failed. Check the output above for details.');
|
|
74
77
|
process.exit(1);
|
|
75
78
|
}
|
package/bin/o7-setup.js
CHANGED
|
@@ -5,7 +5,7 @@ import { join, dirname } from 'path';
|
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
6
6
|
import { homedir, platform, hostname, release } from 'os';
|
|
7
7
|
|
|
8
|
-
const VERSION = '1.1.
|
|
8
|
+
const VERSION = '1.1.6';
|
|
9
9
|
const O7_ADMIN_URL = 'https://o7-os-admin-production.up.railway.app';
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
const __dirname = dirname(__filename);
|
|
@@ -63,13 +63,16 @@ if (useWizard) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
if (!useWizard) {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
const { spawn: spawnProc } = await import('child_process');
|
|
67
|
+
const exitCode = await new Promise((resolve) => {
|
|
68
|
+
const child = spawnProc('bash', [installerPath, '--profile', profile], {
|
|
68
69
|
stdio: 'inherit',
|
|
69
70
|
env: { ...process.env },
|
|
70
|
-
timeout: 600000,
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
child.on('close', resolve);
|
|
73
|
+
child.on('error', () => resolve(1));
|
|
74
|
+
});
|
|
75
|
+
if (exitCode !== 0) {
|
|
73
76
|
console.error('\nInstallation failed. Check the output above for details.');
|
|
74
77
|
process.exit(1);
|
|
75
78
|
}
|
package/bin/o7.js
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync, readFileSync, writeFileSync, unlinkSync, mkdirSync } from '
|
|
|
4
4
|
import { join, dirname } from 'path';
|
|
5
5
|
import { homedir, hostname, platform, arch, release } from 'os';
|
|
6
6
|
|
|
7
|
-
const VERSION = '1.1.
|
|
7
|
+
const VERSION = '1.1.6';
|
|
8
8
|
const O7_ADMIN_URL = 'https://o7-os-admin-production.up.railway.app';
|
|
9
9
|
const MC_DIR = process.env.O7_MC_DIR || join(homedir(), 'Projects/unified-mc');
|
|
10
10
|
const STATE_DIR = join(homedir(), '.openclaw');
|
package/installer/install.sh
CHANGED
|
@@ -91,10 +91,13 @@ if ! state_check "openclaw"; then
|
|
|
91
91
|
if command -v openclaw &>/dev/null; then
|
|
92
92
|
local_ver=$(openclaw --version 2>/dev/null | awk '{print $1}')
|
|
93
93
|
ok "OpenClaw already installed (${local_ver})"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
if confirm " Check for updates?"; then
|
|
95
|
+
npm install -g openclaw@latest &>/dev/null &
|
|
96
|
+
spin $! "Updating OpenClaw..."
|
|
97
|
+
wait $!
|
|
98
|
+
else
|
|
99
|
+
info "Skipping update check."
|
|
100
|
+
fi
|
|
98
101
|
else
|
|
99
102
|
info "Installing OpenClaw..."
|
|
100
103
|
npm install -g openclaw@latest &
|