@evoapi/evo-nexus 0.18.0 → 0.18.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.
Files changed (2) hide show
  1. package/bin/cli.mjs +31 -10
  2. package/package.json +1 -1
package/bin/cli.mjs CHANGED
@@ -187,28 +187,49 @@ async function main() {
187
187
 
188
188
  setup.on("close", (code) => {
189
189
  if (code === 0) {
190
- // Build frontend
191
- console.log(`\n ${DIM}Building dashboard frontend...${RESET}`);
190
+ // Check if setup ran in remote mode (services already started)
191
+ let isRemote = false;
192
192
  try {
193
- run("npm run build --silent", { cwd: frontendDir });
194
- console.log(` ${GREEN}✓${RESET} Dashboard built\n`);
195
- } catch {
196
- console.log(` ${YELLOW}!${RESET} Frontend build failed — run manually: cd ${targetDir}/dashboard/frontend && npm run build\n`);
193
+ isRemote = existsSync("/etc/nginx/sites-enabled/evonexus");
194
+ } catch {}
195
+
196
+ if (!isRemote) {
197
+ // Local mode: build frontend (setup already built, but ensure latest)
198
+ console.log(`\n ${DIM}Building dashboard frontend...${RESET}`);
199
+ try {
200
+ run("npm run build --silent", { cwd: frontendDir });
201
+ console.log(` ${GREEN}✓${RESET} Dashboard built\n`);
202
+ } catch {
203
+ console.log(` ${YELLOW}!${RESET} Frontend build failed — run manually: cd ${targetDir}/dashboard/frontend && npm run build\n`);
204
+ }
197
205
  }
198
206
 
199
207
  console.log(`
200
208
  ${GREEN}${BOLD}EvoNexus installed successfully!${RESET}
209
+ `);
210
+
211
+ if (isRemote) {
212
+ // Remote mode: services already running, don't suggest make dashboard-app
213
+ console.log(` ${BOLD}The dashboard is already running.${RESET}
214
+ Open the URL shown above to create your admin account.
201
215
 
202
- ${BOLD}Next steps:${RESET}
216
+ ${BOLD}Useful commands:${RESET}
217
+ ${CYAN}•${RESET} ${BOLD}./start-services.sh${RESET} — restart dashboard services
218
+ ${CYAN}•${RESET} ${BOLD}make scheduler${RESET} — start automated routines
219
+ ${CYAN}•${RESET} ${BOLD}make help${RESET} — see all available commands
220
+ `);
221
+ } else {
222
+ console.log(` ${BOLD}Next steps:${RESET}
203
223
  ${CYAN}1.${RESET} cd ${targetDir}
204
224
  ${CYAN}2.${RESET} Edit ${BOLD}.env${RESET} with your API keys
205
225
  ${CYAN}3.${RESET} ${BOLD}make dashboard-app${RESET} — start the dashboard
206
226
  ${CYAN}4.${RESET} Open ${BOLD}http://localhost:8080${RESET} and create your admin account
207
227
  ${CYAN}5.${RESET} ${BOLD}make help${RESET} — see all available commands
208
-
209
- ${DIM}Documentation: https://evonexus.evolutionfoundation.com.br/docs${RESET}
210
- ${DIM}GitHub: https://github.com/EvolutionAPI/evo-nexus${RESET}
211
228
  `);
229
+ }
230
+
231
+ console.log(` ${DIM}Documentation: https://evonexus.evolutionfoundation.com.br/docs${RESET}`);
232
+ console.log(` ${DIM}GitHub: https://github.com/EvolutionAPI/evo-nexus${RESET}\n`);
212
233
  } else {
213
234
  console.log(`\n ${RED}Setup failed (exit code ${code}).${RESET}`);
214
235
  console.log(` ${DIM}Try running manually: cd ${targetDir} && make setup${RESET}\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoapi/evo-nexus",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "description": "Unofficial open source toolkit for Claude Code — AI-powered business operating system",
5
5
  "keywords": [
6
6
  "claude-code",