"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createTaskCommand = createTaskCommand;
const task_new_1 = require("../task-new");
const task_baseline_1 = require("../task-baseline");
const task_promote_1 = require("../task-promote");
const task_readiness_review_1 = require("../task-readiness-review");
const task_review_1 = require("../task-review");
const task_update_1 = require("../task-update");
const registration_1 = require("../registration");
async function createTaskCommand() {
    const { Command } = await import("commander");
    const command = new Command("task");
    command.description("Create, promote, or update task artifacts, with readiness/review helpers kept read-only and separate from writes.");
    (0, registration_1.registerCommand)(command, await (0, task_baseline_1.createTaskBaselineCommand)());
    (0, registration_1.registerCommand)(command, await (0, task_new_1.createTaskNewCommand)());
    (0, registration_1.registerCommand)(command, await (0, task_promote_1.createTaskPromoteCommand)());
    (0, registration_1.registerCommand)(command, await (0, task_readiness_review_1.createTaskReadinessReviewCommand)());
    (0, registration_1.registerCommand)(command, await (0, task_review_1.createTaskReviewCommand)());
    (0, registration_1.registerCommand)(command, await (0, task_update_1.createTaskUpdateCommand)());
    return command;
}
