"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveDayShiftCliInvocation = resolveDayShiftCliInvocation;
exports.renderDayShiftCliCommand = renderDayShiftCliCommand;
const runtime_contract_1 = require("./runtime-contract");
/**
 * Select the runnable command prefix that matches the active Day Shift runtime.
 * Packaged releases expose the installed command; repository runtimes retain the
 * development entrypoint used by source-tree validation and tests.
 */
function resolveDayShiftCliInvocation(runtimeSource = (0, runtime_contract_1.getRuntimeProvenance)().runtimeSource) {
    return runtimeSource === 'installed-package' ? 'day-shift' : 'node dist/cli/index.js';
}
function renderDayShiftCliCommand(args, runtimeSource) {
    const normalizedArgs = args.trim();
    return normalizedArgs === ''
        ? resolveDayShiftCliInvocation(runtimeSource)
        : `${resolveDayShiftCliInvocation(runtimeSource)} ${normalizedArgs}`;
}
