"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stopCommand = stopCommand;
const logger_1 = require("../logger");
const lockfile_1 = require("../lockfile");
function stopCommand() {
    const cwd = process.cwd();
    const result = (0, lockfile_1.stopProcess)(cwd);
    if (result === 'no-lock') {
        logger_1.logger.info('No aidev process is running in this directory.');
        return;
    }
    if (result === 'not-running') {
        logger_1.logger.info('Found a stale lock file — removed. No process was running.');
        return;
    }
    // 'killed'
    logger_1.logger.success('aidev process stopped.');
}
//# sourceMappingURL=stop.js.map