// Copyright (c) 2026 Hellmai Ltd
// SPDX-License-Identifier: AGPL-3.0-only
/**
 * Build context for wu:create cloud mode.
 *
 * When --cloud is true, the create command should:
 * - Skip ensureOnMain() validation
 * - Skip micro-worktree isolation
 * - Write and commit WU spec directly on the current branch
 *
 * @param input - Cloud create input flags
 * @returns Cloud create context with skip flags and target branch
 */
export function buildCloudCreateContext(input) {
    if (!input.cloud) {
        return {
            isCloud: false,
            skipEnsureOnMain: false,
            skipMicroWorktree: false,
            targetBranch: 'main',
        };
    }
    return {
        isCloud: true,
        skipEnsureOnMain: true,
        skipMicroWorktree: true,
        targetBranch: input.currentBranch,
    };
}
//# sourceMappingURL=wu-create-cloud.js.map