MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / cmdStop

Function cmdStop

dev/local/cli.ts:650–679  ·  view source on GitHub ↗
(repoRoot: string, force: boolean)

Source from the content-addressed store, hash-verified

648 process.exit(1);
649 }
650 }
651
652 if (serviceNames.includes('stripe')) {
653 try {
654 execSync('stripe --version', { stdio: 'ignore' });
655 } catch {
656 console.warn('⚠ stripe CLI not found on PATH — skipping Stripe webhook forwarder.');
657 console.warn(' Install it with: brew install stripe/stripe-cli/stripe');
658 serviceNames = serviceNames.filter(name => name !== 'stripe');
659 }
660 }
661
662 // Grafana boots fine without the token; only dashboard queries fail. Treat
663 // this as advisory so devs poking around the repo don't get blocked. Check
664 // .env.local in addition to the shell so the warning doesn't fire when the
665 // token is set in the file (docker compose picks it up via the filtered
666 // compose secrets env file built from .env.local).
667 if (serviceNames.includes('grafana')) {
668 const tokenFromShell = process.env.CF_AE_TOKEN;
669 const tokenFromFile = envLocalExists ? readEnvValue(envLocalPath, 'CF_AE_TOKEN') : undefined;
670 if (!tokenFromShell && !tokenFromFile) {
671 console.warn('⚠ CF_AE_TOKEN not set — Grafana will boot but AE queries will fail.');
672 console.warn(' Create a CF user API token with "All accounts → Account Analytics: Read",');
673 console.warn(' then add CF_AE_TOKEN=<token> to .env.local. See dev/grafana/README.md.');
674 }
675 }
676
677 const hasInfra = serviceNames.some(name => getService(name).type === 'infra');
678 if (hasInfra) {
679 for (const line of collidingInfraPorts(repoRoot, serviceNames)) {
680 console.warn(`⚠ ${line}`);
681 }
682 console.log(`${BOLD}Starting infrastructure…${RESET}`);

Callers 1

mainFunction · 0.85

Calls 7

getSessionNameFunction · 0.90
sessionExistsFunction · 0.90
killSessionFunction · 0.90
findOtherKiloDevSessionsFunction · 0.90
buildInfraDownArgsFunction · 0.90
joinMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected