@nicotinetool/o7-cli 1.2.0 → 1.2.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/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 +9 -6
- 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.2.
|
|
7
|
+
const VERSION = '1.2.2';
|
|
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.2.
|
|
8
|
+
const VERSION = '1.2.2';
|
|
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.2.
|
|
8
|
+
const VERSION = '1.2.2';
|
|
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.2.
|
|
7
|
+
const VERSION = '1.2.2';
|
|
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
|
@@ -187,6 +187,7 @@ MC_REPO="https://github.com/erenes1667/unified-mc.git"
|
|
|
187
187
|
if ! state_check "mc"; then
|
|
188
188
|
if [[ -d "$MC_DIR/.git" ]]; then
|
|
189
189
|
info "Mission Control already cloned. Pulling latest..."
|
|
190
|
+
git -C "$MC_DIR" stash --quiet 2>/dev/null || true
|
|
190
191
|
git -C "$MC_DIR" pull --rebase --quiet &
|
|
191
192
|
spin $! "Updating Mission Control..."
|
|
192
193
|
wait $!
|
|
@@ -248,6 +249,8 @@ if ! state_check "mc-daemon" && [[ -d "$MC_DIR" ]]; then
|
|
|
248
249
|
<string>${NODE_DIR}:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string>
|
|
249
250
|
<key>NODE_ENV</key>
|
|
250
251
|
<string>development</string>
|
|
252
|
+
<key>PORT</key>
|
|
253
|
+
<string>18790</string>
|
|
251
254
|
</dict>
|
|
252
255
|
<key>RunAtLoad</key>
|
|
253
256
|
<true/>
|
|
@@ -265,14 +268,14 @@ PLIST
|
|
|
265
268
|
launchctl load "$MC_PLIST"
|
|
266
269
|
|
|
267
270
|
sleep 5
|
|
268
|
-
if curl -s -o /dev/null -w "%{http_code}" http://localhost:
|
|
269
|
-
ok "Mission Control running at http://localhost:
|
|
271
|
+
if curl -s -o /dev/null -w "%{http_code}" http://localhost:18790 --max-time 10 | grep -qE "200|307"; then
|
|
272
|
+
ok "Mission Control running at http://localhost:18790"
|
|
270
273
|
log "OK: Mission Control daemon installed"
|
|
271
274
|
state_done "mc-daemon"
|
|
272
|
-
open "http://localhost:
|
|
275
|
+
open "http://localhost:18790" 2>/dev/null || true
|
|
273
276
|
else
|
|
274
277
|
warn "Mission Control is starting (can take 30s on first boot)"
|
|
275
|
-
info "It will be available at http://localhost:
|
|
278
|
+
info "It will be available at http://localhost:18790 shortly"
|
|
276
279
|
log "WARN: MC not yet responding, but daemon installed"
|
|
277
280
|
state_done "mc-daemon"
|
|
278
281
|
fi
|
|
@@ -304,11 +307,11 @@ done
|
|
|
304
307
|
echo
|
|
305
308
|
echo -e "${BOLD} Services:${RESET}"
|
|
306
309
|
summary_row " 🦞 OpenClaw Gateway" "localhost:18789 (auto-start)"
|
|
307
|
-
summary_row " 📊 Mission Control" "http://localhost:
|
|
310
|
+
summary_row " 📊 Mission Control" "http://localhost:18790 (auto-start)"
|
|
308
311
|
summary_row " 🛡️ Antigravity" "every 30 min (auto-heal)"
|
|
309
312
|
echo
|
|
310
313
|
echo -e "${BOLD} Quick links:${RESET}"
|
|
311
|
-
echo -e " ${CYAN}→ Mission Control:${RESET} http://localhost:
|
|
314
|
+
echo -e " ${CYAN}→ Mission Control:${RESET} http://localhost:18790"
|
|
312
315
|
echo -e " ${CYAN}→ Docs:${RESET} https://docs.openclaw.ai"
|
|
313
316
|
echo -e " ${CYAN}→ Discord:${RESET} https://discord.gg/clawd"
|
|
314
317
|
echo
|