@nicotinetool/o7-cli 1.1.3 → 1.1.4
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 +1 -1
- package/bin/o7-setup.js +1 -1
- package/bin/o7.js +1 -1
- package/installer/install.sh +31 -2
- 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.4';
|
|
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.4';
|
|
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);
|
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.4';
|
|
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);
|
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.4';
|
|
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
|
@@ -51,6 +51,31 @@ fi
|
|
|
51
51
|
confirm "Ready to start?" || { echo "Aborted."; exit 0; }
|
|
52
52
|
log "=== INSTALL STARTED $(date) ==="
|
|
53
53
|
|
|
54
|
+
# ── Detect existing OpenClaw install ─────────────────────────
|
|
55
|
+
EXISTING_INSTALL=false
|
|
56
|
+
SKIP_AUTH=false
|
|
57
|
+
SKIP_GATEWAY=false
|
|
58
|
+
if [[ -f "${HOME}/.openclaw/openclaw.json" ]] && command -v openclaw &>/dev/null; then
|
|
59
|
+
EXISTING_INSTALL=true
|
|
60
|
+
echo
|
|
61
|
+
warn "Existing OpenClaw installation detected!"
|
|
62
|
+
info "Config: ~/.openclaw/openclaw.json"
|
|
63
|
+
info "Version: $(openclaw --version 2>/dev/null || echo 'unknown')"
|
|
64
|
+
echo
|
|
65
|
+
if confirm " Skip auth & gateway setup to preserve your current config?"; then
|
|
66
|
+
SKIP_AUTH=true
|
|
67
|
+
SKIP_GATEWAY=true
|
|
68
|
+
ok "Will preserve existing config. Only updating OpenClaw + Mission Control."
|
|
69
|
+
else
|
|
70
|
+
warn "Proceeding with full setup. Your existing config MAY be overwritten."
|
|
71
|
+
if ! confirm " Are you sure? This could reset your auth profiles and gateway config."; then
|
|
72
|
+
echo "Aborted. Your config is safe."
|
|
73
|
+
exit 0
|
|
74
|
+
fi
|
|
75
|
+
fi
|
|
76
|
+
echo
|
|
77
|
+
fi
|
|
78
|
+
|
|
54
79
|
# ── PHASE 2: System Checks ───────────────────────────────────
|
|
55
80
|
if ! state_check "checks"; then
|
|
56
81
|
run_all_checks || exit 1
|
|
@@ -89,7 +114,9 @@ else
|
|
|
89
114
|
fi
|
|
90
115
|
|
|
91
116
|
# ── PHASE 4: AI Model Auth ───────────────────────────────────
|
|
92
|
-
if
|
|
117
|
+
if [[ "$SKIP_AUTH" == "true" ]]; then
|
|
118
|
+
ok "Auth setup skipped — preserving existing config"
|
|
119
|
+
elif ! state_check "auth"; then
|
|
93
120
|
run_auth_setup || exit 1
|
|
94
121
|
state_done "auth"
|
|
95
122
|
else
|
|
@@ -118,7 +145,9 @@ log "ROLE: ${SELECTED_ROLE}"
|
|
|
118
145
|
# ── PHASE 6: OpenClaw Gateway Daemon ─────────────────────────
|
|
119
146
|
section 5 "OpenClaw Gateway"
|
|
120
147
|
|
|
121
|
-
if
|
|
148
|
+
if [[ "$SKIP_GATEWAY" == "true" ]]; then
|
|
149
|
+
ok "Gateway setup skipped — preserving existing config"
|
|
150
|
+
elif ! state_check "gateway"; then
|
|
122
151
|
info "Setting up OpenClaw gateway service (auto-starts on boot)..."
|
|
123
152
|
|
|
124
153
|
GATEWAY_TOKEN=$(openssl rand -base64 32 | tr -d /=+ | head -c 40)
|