| 574 | process.on("SIGTERM", shutdown); |
| 575 | |
| 576 | function printBanner(config) { |
| 577 | console.log(""); |
| 578 | console.log( |
| 579 | `${c.green}${c.bold}╔══════════════════════════════════════════════════════════════╗${c.reset}`, |
| 580 | ); |
| 581 | console.log( |
| 582 | `${c.green}${c.bold}║${c.reset} ${c.bold}Agent Canvas Static-frontend Stack${c.reset} ${c.green}${c.bold}║${c.reset}`, |
| 583 | ); |
| 584 | console.log( |
| 585 | `${c.green}${c.bold}╠══════════════════════════════════════════════════════════════╣${c.reset}`, |
| 586 | ); |
| 587 | console.log( |
| 588 | `${c.green}${c.bold}║${c.reset} ${c.green}${c.bold}║${c.reset}`, |
| 589 | ); |
| 590 | console.log( |
| 591 | `${c.green}${c.bold}║${c.reset} Main UI: ${c.cyan}http://localhost:${config.ingressPort}/${c.reset}`.padEnd( |
| 592 | 75, |
| 593 | ) + `${c.green}${c.bold}║${c.reset}`, |
| 594 | ); |
| 595 | console.log( |
| 596 | `${c.green}${c.bold}║${c.reset} API Docs: ${c.cyan}http://localhost:${config.ingressPort}/api/automation/docs${c.reset}`.padEnd( |
| 597 | 75, |
| 598 | ) + `${c.green}${c.bold}║${c.reset}`, |
| 599 | ); |
| 600 | console.log( |
| 601 | `${c.green}${c.bold}║${c.reset} ${c.green}${c.bold}║${c.reset}`, |
| 602 | ); |
| 603 | console.log( |
| 604 | `${c.green}${c.bold}╚══════════════════════════════════════════════════════════════╝${c.reset}`, |
| 605 | ); |
| 606 | console.log(""); |
| 607 | console.log(`${c.dim}State directory: ${config.stateDir}${c.reset}`); |
| 608 | console.log( |
| 609 | `${c.dim}Frontend served from: ${join(config.canvasPath, "build")}${c.reset}`, |
| 610 | ); |
| 611 | console.log( |
| 612 | `${c.dim}Edit sources, then re-run \`npm run dev:static\` to rebuild.${c.reset}`, |
| 613 | ); |
| 614 | console.log(`${c.dim}Press Ctrl+C to stop${c.reset}`); |
| 615 | console.log(""); |
| 616 | } |
| 617 | |
| 618 | // ═══════════════════════════════════════════════════════════════════════════ |
| 619 | // Main |