import { WorkspaceKind } from '../types/index.js';
export function getWorkspaceKind(workspace) {
    return workspace.workspaceKind === WorkspaceKind.MAIN_DIRECTORY
        ? WorkspaceKind.MAIN_DIRECTORY
        : WorkspaceKind.WORKTREE;
}
export function isWorktreeWorkspace(workspace) {
    return getWorkspaceKind(workspace) === WorkspaceKind.WORKTREE;
}
export function isMainDirectoryWorkspace(workspace) {
    return getWorkspaceKind(workspace) === WorkspaceKind.MAIN_DIRECTORY;
}
export function getWorkspaceWorkingDir(workspace) {
    return workspace.workingDir || workspace.worktreePath;
}
//# sourceMappingURL=workspace-kind.js.map