@nicotinetool/o7-cli 1.1.7 → 1.1.8
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 +3 -24
- 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.8';
|
|
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.8';
|
|
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.8';
|
|
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.8';
|
|
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
|
@@ -133,30 +133,9 @@ echo -e " ${BOLD}What's your role at Optimum7?${RESET}"
|
|
|
133
133
|
echo -e " ${DIM}This pre-configures the right tools for you.${RESET}"
|
|
134
134
|
echo
|
|
135
135
|
|
|
136
|
-
echo -
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
echo -e " ${CYAN}4)${RESET} 👑 Admin (full access, everything)"
|
|
140
|
-
echo -e " ${CYAN}5)${RESET} 🎛️ Custom (type your own)"
|
|
141
|
-
echo
|
|
142
|
-
ROLES=("marketing" "ppc" "dev" "admin" "custom")
|
|
143
|
-
SELECTED_ROLE=""
|
|
144
|
-
while [[ -z "$SELECTED_ROLE" ]]; do
|
|
145
|
-
echo -en "${BOLD} Pick a number or type your role: ${RESET}"
|
|
146
|
-
read -r role_input
|
|
147
|
-
case "$role_input" in
|
|
148
|
-
1) SELECTED_ROLE="marketing" ;;
|
|
149
|
-
2) SELECTED_ROLE="ppc" ;;
|
|
150
|
-
3) SELECTED_ROLE="dev" ;;
|
|
151
|
-
4) SELECTED_ROLE="admin" ;;
|
|
152
|
-
5|"") SELECTED_ROLE="custom" ;;
|
|
153
|
-
*)
|
|
154
|
-
# Free text: treat as custom role description
|
|
155
|
-
SELECTED_ROLE="custom"
|
|
156
|
-
log "CUSTOM_ROLE: ${role_input}"
|
|
157
|
-
;;
|
|
158
|
-
esac
|
|
159
|
-
done
|
|
136
|
+
echo -en "${BOLD} Type your role: ${RESET}"
|
|
137
|
+
read -r SELECTED_ROLE
|
|
138
|
+
SELECTED_ROLE="${SELECTED_ROLE:-general}"
|
|
160
139
|
ok "Role set: ${SELECTED_ROLE}"
|
|
161
140
|
log "ROLE: ${SELECTED_ROLE}"
|
|
162
141
|
|